From d4558667f6e5a9115ebd1e308b248db77b9722f7 Mon Sep 17 00:00:00 2001 From: egutierrez Date: Fri, 29 May 2026 15:18:59 +0200 Subject: [PATCH] feat(jira): menu 'Jira' (rename) + modal con tabs Importar/Comprobar columnas UI: - Menu avatar dropdown: 'Importar de Jira' -> 'Jira' (renombrado). - ImportJiraModal.tsx eliminado. Sustituido por JiraModal.tsx con Mantine Tabs: * 'Importar de Jira': UI heredada del modal anterior intacta. * 'Comprobar columnas': nueva. Lista cards linked y muestra desincronizadas (kanban col vs Jira status actual). Por cada row: kanban col + expected jira status + jira status real. Checkbox multi-select + boton 'Sincronizar' que empuja Jira al status correcto (kanban gana). Backend: - GET /api/jira/check-columns: walk cards.jira_key != ''. Por cada uno GET /rest/api/3/issue/{key}?fields=status. Compara status real vs status_map. Devuelve {rows[], total, mismatches, in_sync, status_map, reverse_map}. - POST /api/jira/reconcile-columns {card_ids[], direction:'kanban-wins'}: reusa jiraHandler.transitionToStatus para empujar cada issue al status del status_map de su columna kanban actual + actualiza cards.jira_last_status. - Helper listLinkedCardsForCheck en jira_import.go. Direction='kanban-wins' default. Reverse direction (jira-wins) no soportado por ahora: mover cards desde el server tiene efectos colaterales (eventos, notificaciones, timers) que no quiero disparar masivos sin pensar. --- .../{index-Zozqj0rw.js => index-Be_Ib5cu.js} | 309 ++++++------ backend/dist/index.html | 2 +- backend/handlers.go | 3 + backend/jira_import.go | 209 ++++++++ frontend/src/App.tsx | 8 +- frontend/src/api.ts | 42 ++ frontend/src/components/ImportJiraModal.tsx | 279 ----------- frontend/src/components/JiraModal.tsx | 455 ++++++++++++++++++ 8 files changed, 871 insertions(+), 436 deletions(-) rename backend/dist/assets/{index-Zozqj0rw.js => index-Be_Ib5cu.js} (62%) delete mode 100644 frontend/src/components/ImportJiraModal.tsx create mode 100644 frontend/src/components/JiraModal.tsx diff --git a/backend/dist/assets/index-Zozqj0rw.js b/backend/dist/assets/index-Be_Ib5cu.js similarity index 62% rename from backend/dist/assets/index-Zozqj0rw.js rename to backend/dist/assets/index-Be_Ib5cu.js index 0e4eada..af6ca62 100644 --- a/backend/dist/assets/index-Zozqj0rw.js +++ b/backend/dist/assets/index-Be_Ib5cu.js @@ -1,4 +1,4 @@ -function GK(e,n){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=t(r);fetch(r.href,a)}})();var Xv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vk={exports:{}},gh={};/** +function GK(e,n){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=t(r);fetch(r.href,a)}})();var Xv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gk={exports:{}},gh={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ function GK(e,n){for(var t=0;t{gk(i[r])&&r in e?t[r]=Y6(t[r],i[r]):t[r]=i[r]}),t}function XK(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function ZK(e){var n;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(n=e.match(/^calc\((.*?)\)$/))==null?void 0:n[1].split("*")[0].trim()}function lm(e){const n=ZK(e);return typeof n=="number"?n:typeof n=="string"?n.includes("calc")||n.includes("var")?n:n.includes("px")?Number(n.replace("px","")):n.includes("rem")?Number(n.replace("rem",""))*16:n.includes("em")?Number(n.replace("em",""))*16:Number(n):NaN}function $T(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function $z(e,{shouldScale:n=!1}={}){function t(i){if(i===0||i==="0")return`0${e}`;if(typeof i=="number"){const r=`${i/16}${e}`;return n?$T(r):r}if(typeof i=="string"){if(i===""||i.startsWith("calc(")||i.startsWith("clamp(")||i.includes("rgba("))return i;if(i.includes(","))return i.split(",").map(a=>t(a)).join(",");if(i.includes(" "))return i.split(" ").map(a=>t(a)).join(" ");const r=i.replace("px","");if(!Number.isNaN(Number(r))){const a=`${Number(r)/16}${e}`;return n?$T(a):a}}return i}return t}const ve=$z("rem",{shouldScale:!0}),Vg=$z("em");function Bu(e){return Object.keys(e).reduce((n,t)=>(e[t]!==void 0&&(n[t]=e[t]),n),{})}function zz(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const n=/^[+-]?[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(t=>n.test(t))}return!1}var yk={exports:{}},Nn={};/** + */var NT;function YK(){if(NT)return gh;NT=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(i,r,a){var o=null;if(a!==void 0&&(o=""+a),r.key!==void 0&&(o=""+r.key),"key"in r){a={};for(var l in r)l!=="key"&&(a[l]=r[l])}else a=r;return r=a.ref,{$$typeof:e,type:i,key:o,ref:r!==void 0?r:null,props:a}}return gh.Fragment=n,gh.jsx=t,gh.jsxs=t,gh}var $T;function KK(){return $T||($T=1,gk.exports=YK()),gk.exports}var v=KK();function zt(e){return Object.keys(e)}function yk(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Y6(e,n){const t={...e},i=n;return yk(e)&&yk(n)&&Object.keys(n).forEach(r=>{yk(i[r])&&r in e?t[r]=Y6(t[r],i[r]):t[r]=i[r]}),t}function XK(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function ZK(e){var n;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(n=e.match(/^calc\((.*?)\)$/))==null?void 0:n[1].split("*")[0].trim()}function lm(e){const n=ZK(e);return typeof n=="number"?n:typeof n=="string"?n.includes("calc")||n.includes("var")?n:n.includes("px")?Number(n.replace("px","")):n.includes("rem")?Number(n.replace("rem",""))*16:n.includes("em")?Number(n.replace("em",""))*16:Number(n):NaN}function zT(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function zz(e,{shouldScale:n=!1}={}){function t(i){if(i===0||i==="0")return`0${e}`;if(typeof i=="number"){const r=`${i/16}${e}`;return n?zT(r):r}if(typeof i=="string"){if(i===""||i.startsWith("calc(")||i.startsWith("clamp(")||i.includes("rgba("))return i;if(i.includes(","))return i.split(",").map(a=>t(a)).join(",");if(i.includes(" "))return i.split(" ").map(a=>t(a)).join(" ");const r=i.replace("px","");if(!Number.isNaN(Number(r))){const a=`${Number(r)/16}${e}`;return n?zT(a):a}}return i}return t}const ve=zz("rem",{shouldScale:!0}),Vg=zz("em");function Fu(e){return Object.keys(e).reduce((n,t)=>(e[t]!==void 0&&(n[t]=e[t]),n),{})}function Lz(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const n=/^[+-]?[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(t=>n.test(t))}return!1}var bk={exports:{}},$n={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ function GK(e,n){for(var t=0;t{const i=x.use(n);if(i===null)throw new Error(e);return i}]}function IT(e,n){return t=>{if(typeof t!="string"||t.trim().length===0)throw new Error(n);return`${e}-${t}`}}function Wg(e,n){let t=e;for(;(t=t.parentElement)&&!t.matches(n););return t}function JK(e,n,t){for(let i=e-1;i>=0;i-=1)if(!n[i].disabled)return i;if(t){for(let i=n.length-1;i>-1;i-=1)if(!n[i].disabled)return i}return e}function eX(e,n,t){for(let i=e+1;i{var b;t==null||t(l);const u=Array.from(((b=Wg(l.currentTarget,e))==null?void 0:b.querySelectorAll(n))||[]).filter(w=>nX(l.currentTarget,w,e)),f=u.findIndex(w=>l.currentTarget===w),h=eX(f,u,i),d=JK(f,u,i),p=a==="rtl"?d:h,g=a==="rtl"?h:d;switch(l.key){case"ArrowRight":o==="horizontal"&&(l.stopPropagation(),l.preventDefault(),u[p].focus(),r&&u[p].click());break;case"ArrowLeft":o==="horizontal"&&(l.stopPropagation(),l.preventDefault(),u[g].focus(),r&&u[g].click());break;case"ArrowUp":o==="vertical"&&(l.stopPropagation(),l.preventDefault(),u[d].focus(),r&&u[d].click());break;case"ArrowDown":o==="vertical"&&(l.stopPropagation(),l.preventDefault(),u[h].focus(),r&&u[h].click());break;case"Home":l.stopPropagation(),l.preventDefault(),!u[0].disabled&&u[0].focus();break;case"End":{l.stopPropagation(),l.preventDefault();const w=u.length-1;!u[w].disabled&&u[w].focus();break}}}}const tX={app:100,modal:200,popover:300,overlay:400,max:9999};function xa(e){return tX[e]}const jS=()=>{};function iX(e,n={active:!0}){return typeof e!="function"||!n.active?n.onKeyDown||jS:t=>{var i;t.key==="Escape"&&(e(t),(i=n.onTrigger)==null||i.call(n))}}function Ln(e,n="size",t=!0){if(e!==void 0)return zz(e)?t?ve(e):e:`var(--${n}-${e})`}function Yt(e){return Ln(e,"mantine-spacing")}function qt(e){return e===void 0?"var(--mantine-radius-default)":Ln(e,"mantine-radius")}function ai(e){return Ln(e,"mantine-font-size")}function rX(e){return Ln(e,"mantine-line-height",!1)}function Q6(e){if(e)return Ln(e,"mantine-shadow",!1)}function bi(e,n){return t=>{e==null||e(t),n==null||n(t)}}function J6(e,n){return e in n?lm(n[e]):lm(e)}function um(e,n){const t=e.map(i=>({value:i,px:J6(i,n)}));return t.sort((i,r)=>i.px-r.px),t}function Wr(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function aX(e,n,t){var i;return t?Array.from(((i=Wg(t,n))==null?void 0:i.querySelectorAll(e))||[]).findIndex(r=>r===t):null}function Jo(e,n,t){return n===void 0&&t===void 0?e:n!==void 0&&t===void 0?Math.max(e,n):Math.min(n===void 0&&t!==void 0?e:Math.max(e,n),t)}function ml(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function zh(e){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useMemo(()=>((...t)=>{var i;return(i=n.current)==null?void 0:i.call(n,...t)}),[])}function _y(e,n){const{delay:t,flushOnUnmount:i,leading:r,maxWait:a}=typeof n=="number"?{delay:n,flushOnUnmount:!1,leading:!1,maxWait:void 0}:n,o=zh(e),l=x.useRef(0),u=x.useRef(0),f=x.useRef(null),h=x.useMemo(()=>{const d=Object.assign((...p)=>{window.clearTimeout(l.current),f.current=p;const g=d._isFirstCall;d._isFirstCall=!1;function b(){window.clearTimeout(l.current),window.clearTimeout(u.current),l.current=0,u.current=0,d._isFirstCall=!0,d._hasPendingCallback=!1}function w(){a!==void 0&&u.current===0&&(u.current=window.setTimeout(()=>{if(l.current!==0){const S=f.current;b(),o(...S)}},a))}if(r&&g){o(...p);const S=()=>{b()},j=()=>{l.current!==0&&(b(),o(...p))},T=()=>{b()};d.flush=j,d.cancel=T,l.current=window.setTimeout(S,t),w();return}if(r&&!g){d._hasPendingCallback=!0;const S=()=>{l.current!==0&&(b(),o(...p))},j=()=>{b()};d.flush=S,d.cancel=j;const T=()=>{b()};l.current=window.setTimeout(T,t),w();return}d._hasPendingCallback=!0;const k=()=>{l.current!==0&&(b(),o(...p))},_=()=>{b()};d.flush=k,d.cancel=_,l.current=window.setTimeout(k,t),w()},{flush:()=>{},cancel:()=>{},isPending:()=>d._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return d},[o,t,r,a]);return x.useEffect(()=>()=>{i?h.flush():h.cancel()},[h,i]),h}const oX=["mousedown","touchstart"];function sX(e,n,t,i=!0){const r=x.useRef(null),a=n||oX,o=x.useEffectEvent(u=>{const{target:f}=u??{};if(!document.body.contains(f)&&(f==null?void 0:f.tagName)!=="HTML")return;const h=u.composedPath();Array.isArray(t)?t.every(d=>!!d&&!h.includes(d))&&e(u):r.current&&!h.includes(r.current)&&e(u)}),l=a.join(",");return x.useEffect(()=>{if(!i)return;const u=l.split(",");return u.forEach(f=>document.addEventListener(f,o)),()=>{u.forEach(f=>document.removeEventListener(f,o))}},[l,i]),r}function lX(e={}){const n=e.timeout??2e3,[t,i]=x.useState(null),[r,a]=x.useState(!1),o=x.useRef(null);x.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);const l=h=>{window.clearTimeout(o.current),o.current=window.setTimeout(()=>a(!1),n),a(h)};return{copy:h=>{"clipboard"in navigator?navigator.clipboard.writeText(h).then(()=>{i(null),l(!0)}).catch(d=>i(d)):i(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),i(null),window.clearTimeout(o.current)},error:t,copied:r}}function uX(e,n){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function cX(e,n,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){const[i,r]=x.useState(t?n:uX(e));return x.useEffect(()=>{try{if("matchMedia"in window){const a=window.matchMedia(e);r(a.matches);const o=l=>r(l.matches);return a.addEventListener("change",o),()=>{a.removeEventListener("change",o)}}}catch{return}},[e]),i||!1}const ps=typeof document<"u"?x.useLayoutEffect:x.useEffect;function os(e,n){const t=x.useRef(!1);x.useEffect(()=>()=>{t.current=!1},[]),x.useEffect(()=>{if(t.current)return e();t.current=!0},n)}function Iz({opened:e,shouldReturnFocus:n=!0}){const t=x.useRef(null),i=()=>{var r;t.current&&"focus"in t.current&&typeof t.current.focus=="function"&&((r=t.current)==null||r.focus({preventScroll:!0}))};return os(()=>{let r=-1;const a=o=>{o.key==="Tab"&&window.clearTimeout(r)};if(document.addEventListener("keydown",a),e)t.current=document.activeElement;else if(n){const o=document.activeElement;r=window.setTimeout(()=>{const l=document.activeElement;(l===null||l===document.body||l===o)&&i()},10)}return()=>{window.clearTimeout(r),document.removeEventListener("keydown",a)}},[e,n]),i}const fX=/input|select|textarea|button|object/,Bz="a, input, select, textarea, button, object, [tabindex]";function dX(e){return e.style.display==="none"}function hX(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(dX(n))return!1;n=n.parentNode}return!0}function Fz(e){let n=e.getAttribute("tabindex");return n===null&&(n=void 0),parseInt(n,10)}function AS(e){const n=e.nodeName.toLowerCase(),t=!Number.isNaN(Fz(e));return(fX.test(n)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||t)&&hX(e)}function qz(e){const n=Fz(e);return(Number.isNaN(n)||n>=0)&&AS(e)}function mX(e){return Array.from(e.querySelectorAll(Bz)).filter(qz)}function pX(e,n){const t=mX(e);if(!t.length){n.preventDefault();return}const i=t[n.shiftKey?0:t.length-1],r=e.getRootNode();let a=i===r.activeElement||e===r.activeElement;const o=r.activeElement;if(o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(a=t.filter(u=>u.getAttribute("type")==="radio"&&u.getAttribute("name")===o.getAttribute("name")).includes(i)),!a)return;n.preventDefault();const l=t[n.shiftKey?t.length-1:0];l&&l.focus()}function vX(e=!0){const n=x.useRef(null),t=r=>{let a=r.querySelector("[data-autofocus]");if(!a){const o=Array.from(r.querySelectorAll(Bz));a=o.find(qz)||o.find(AS)||null,!a&&AS(r)&&(a=r)}a?a.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",r)},i=x.useCallback(r=>{if(e){if(r===null){n.current=null;return}n.current!==r&&(setTimeout(()=>{r.getRootNode()?t(r):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",r)}),n.current=r)}},[e]);return x.useEffect(()=>{if(!e)return;n.current&&setTimeout(()=>{n.current&&t(n.current)});const r=a=>{a.key==="Tab"&&n.current&&pX(n.current,a)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),i}const gX=e=>(e+1)%1e6;function yX(){const[,e]=x.useReducer(gX,0);return e}function Pi(e){const[n,t]=x.useState(`mantine-${x.useId().replace(/:/g,"")}`);return ps(()=>{t(ml())},[]),typeof e=="string"?e:n}function Hz(e,n,t){const i=x.useEffectEvent(n);x.useEffect(()=>(window.addEventListener(e,i,t),()=>window.removeEventListener(e,i,t)),[e])}function cm(e,n){if(typeof e=="function")return e(n);typeof e=="object"&&e!==null&&"current"in e&&(e.current=n)}function bX(...e){const n=new Map;return t=>{if(e.forEach(i=>{const r=cm(i,t);r&&n.set(i,r)}),n.size>0)return()=>{e.forEach(i=>{const r=n.get(i);r&&typeof r=="function"?r():cm(i,null)}),n.clear()}}}function Ht(...e){return x.useCallback(bX(...e),e)}function Uz(e){return{x:Jo(e.x,0,1),y:Jo(e.y,0,1)}}function Vz(e,n,t="ltr"){const i=x.useRef(!1),r=x.useRef(!1),a=x.useRef(0),o=x.useRef(null),[l,u]=x.useState(!1);return x.useEffect(()=>(i.current=!0,()=>{var f;(f=o.current)==null||f.call(o)}),[]),{ref:x.useCallback(f=>{const h=({x:j,y:T})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(i.current&&f){f.style.userSelect="none";const A=f.getBoundingClientRect();if(A.width&&A.height){const O=Jo((j-A.left)/A.width,0,1);e({x:t==="ltr"?O:1-O,y:Jo((T-A.top)/A.height,0,1)})}}})},d=()=>{document.addEventListener("mousemove",k),document.addEventListener("mouseup",b),document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",b)},p=()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",b)},g=()=>{!r.current&&i.current&&(r.current=!0,typeof(n==null?void 0:n.onScrubStart)=="function"&&n.onScrubStart(),u(!0),d())},b=()=>{r.current&&i.current&&(r.current=!1,u(!1),p(),setTimeout(()=>{typeof(n==null?void 0:n.onScrubEnd)=="function"&&n.onScrubEnd()},0))},w=j=>{g(),j.preventDefault(),k(j)},k=j=>h({x:j.clientX,y:j.clientY}),_=j=>{j.cancelable&&j.preventDefault(),g(),S(j)},S=j=>{j.cancelable&&j.preventDefault(),h({x:j.changedTouches[0].clientX,y:j.changedTouches[0].clientY})};return f==null||f.addEventListener("mousedown",w),f==null||f.addEventListener("touchstart",_,{passive:!1}),o.current=()=>{p(),cancelAnimationFrame(a.current)},()=>{f&&(f.removeEventListener("mousedown",w),f.removeEventListener("touchstart",_))}},[t,e]),active:l}}function Ai({value:e,defaultValue:n,finalValue:t,onChange:i=()=>{}}){const[r,a]=x.useState(n!==void 0?n:t),o=(l,...u)=>{a(l),i==null||i(l,...u)};return e!==void 0?[e,i,!0]:[r,o,!1]}function eC(e,n){return cX("(prefers-reduced-motion: reduce)",e,n)}function Wz(e=!1,n={}){const[t,i]=x.useState(e),r=x.useCallback(()=>{i(o=>{var l;return o||((l=n.onOpen)==null||l.call(n),!0)})},[n.onOpen]),a=x.useCallback(()=>{i(o=>{var l;return o&&((l=n.onClose)==null||l.call(n),!1)})},[n.onClose]);return[t,{open:r,close:a,toggle:x.useCallback(()=>{t?a():r()},[a,r,t]),set:i}]}function wX(e){const n=x.useRef(void 0);return x.useEffect(()=>{n.current=e},[e]),n.current}var bk={exports:{}},Yi={};/** + */var LT;function QK(){if(LT)return $n;LT=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),p=Symbol.iterator;function g(G){return G===null||typeof G!="object"?null:(G=p&&G[p]||G["@@iterator"],typeof G=="function"?G:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,k={};function _(G,V,B){this.props=G,this.context=V,this.refs=k,this.updater=B||b}_.prototype.isReactComponent={},_.prototype.setState=function(G,V){if(typeof G!="object"&&typeof G!="function"&&G!=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,G,V,"setState")},_.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function x(){}x.prototype=_.prototype;function C(G,V,B){this.props=G,this.context=V,this.refs=k,this.updater=B||b}var T=C.prototype=new x;T.constructor=C,w(T,_.prototype),T.isPureReactComponent=!0;var A=Array.isArray;function O(){}var M={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function q(G,V,B){var Q=B.ref;return{$$typeof:e,type:G,key:V,ref:Q!==void 0?Q:null,props:B}}function R(G,V){return q(G.type,V,G.props)}function I(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function z(G){var V={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(B){return V[B]})}var W=/\/+/g;function U(G,V){return typeof G=="object"&&G!==null&&G.key!=null?z(""+G.key):V.toString(36)}function N(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(O,O):(G.status="pending",G.then(function(V){G.status==="pending"&&(G.status="fulfilled",G.value=V)},function(V){G.status==="pending"&&(G.status="rejected",G.reason=V)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function D(G,V,B,Q,ie){var re=typeof G;(re==="undefined"||re==="boolean")&&(G=null);var Z=!1;if(G===null)Z=!0;else switch(re){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(G.$$typeof){case e:case n:Z=!0;break;case h:return Z=G._init,D(Z(G._payload),V,B,Q,ie)}}if(Z)return ie=ie(G),Z=Q===""?"."+U(G,0):Q,A(ie)?(B="",Z!=null&&(B=Z.replace(W,"$&/")+"/"),D(ie,V,B,"",function(se){return se})):ie!=null&&(I(ie)&&(ie=R(ie,B+(ie.key==null||G&&G.key===ie.key?"":(""+ie.key).replace(W,"$&/")+"/")+Z)),V.push(ie)),1;Z=0;var le=Q===""?".":Q+":";if(A(G))for(var ee=0;ee{const i=S.use(n);if(i===null)throw new Error(e);return i}]}function BT(e,n){return t=>{if(typeof t!="string"||t.trim().length===0)throw new Error(n);return`${e}-${t}`}}function Wg(e,n){let t=e;for(;(t=t.parentElement)&&!t.matches(n););return t}function JK(e,n,t){for(let i=e-1;i>=0;i-=1)if(!n[i].disabled)return i;if(t){for(let i=n.length-1;i>-1;i-=1)if(!n[i].disabled)return i}return e}function eX(e,n,t){for(let i=e+1;i{var b;t==null||t(l);const u=Array.from(((b=Wg(l.currentTarget,e))==null?void 0:b.querySelectorAll(n))||[]).filter(w=>nX(l.currentTarget,w,e)),f=u.findIndex(w=>l.currentTarget===w),h=eX(f,u,i),d=JK(f,u,i),p=a==="rtl"?d:h,g=a==="rtl"?h:d;switch(l.key){case"ArrowRight":o==="horizontal"&&(l.stopPropagation(),l.preventDefault(),u[p].focus(),r&&u[p].click());break;case"ArrowLeft":o==="horizontal"&&(l.stopPropagation(),l.preventDefault(),u[g].focus(),r&&u[g].click());break;case"ArrowUp":o==="vertical"&&(l.stopPropagation(),l.preventDefault(),u[d].focus(),r&&u[d].click());break;case"ArrowDown":o==="vertical"&&(l.stopPropagation(),l.preventDefault(),u[h].focus(),r&&u[h].click());break;case"Home":l.stopPropagation(),l.preventDefault(),!u[0].disabled&&u[0].focus();break;case"End":{l.stopPropagation(),l.preventDefault();const w=u.length-1;!u[w].disabled&&u[w].focus();break}}}}const tX={app:100,modal:200,popover:300,overlay:400,max:9999};function xa(e){return tX[e]}const AS=()=>{};function iX(e,n={active:!0}){return typeof e!="function"||!n.active?n.onKeyDown||AS:t=>{var i;t.key==="Escape"&&(e(t),(i=n.onTrigger)==null||i.call(n))}}function In(e,n="size",t=!0){if(e!==void 0)return Lz(e)?t?ve(e):e:`var(--${n}-${e})`}function Kt(e){return In(e,"mantine-spacing")}function Ut(e){return e===void 0?"var(--mantine-radius-default)":In(e,"mantine-radius")}function ai(e){return In(e,"mantine-font-size")}function rX(e){return In(e,"mantine-line-height",!1)}function Q6(e){if(e)return In(e,"mantine-shadow",!1)}function bi(e,n){return t=>{e==null||e(t),n==null||n(t)}}function J6(e,n){return e in n?lm(n[e]):lm(e)}function um(e,n){const t=e.map(i=>({value:i,px:J6(i,n)}));return t.sort((i,r)=>i.px-r.px),t}function Gr(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function aX(e,n,t){var i;return t?Array.from(((i=Wg(t,n))==null?void 0:i.querySelectorAll(e))||[]).findIndex(r=>r===t):null}function Jo(e,n,t){return n===void 0&&t===void 0?e:n!==void 0&&t===void 0?Math.max(e,n):Math.min(n===void 0&&t!==void 0?e:Math.max(e,n),t)}function ml(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function zh(e){const n=S.useRef(e);return S.useEffect(()=>{n.current=e}),S.useMemo(()=>((...t)=>{var i;return(i=n.current)==null?void 0:i.call(n,...t)}),[])}function xy(e,n){const{delay:t,flushOnUnmount:i,leading:r,maxWait:a}=typeof n=="number"?{delay:n,flushOnUnmount:!1,leading:!1,maxWait:void 0}:n,o=zh(e),l=S.useRef(0),u=S.useRef(0),f=S.useRef(null),h=S.useMemo(()=>{const d=Object.assign((...p)=>{window.clearTimeout(l.current),f.current=p;const g=d._isFirstCall;d._isFirstCall=!1;function b(){window.clearTimeout(l.current),window.clearTimeout(u.current),l.current=0,u.current=0,d._isFirstCall=!0,d._hasPendingCallback=!1}function w(){a!==void 0&&u.current===0&&(u.current=window.setTimeout(()=>{if(l.current!==0){const x=f.current;b(),o(...x)}},a))}if(r&&g){o(...p);const x=()=>{b()},C=()=>{l.current!==0&&(b(),o(...p))},T=()=>{b()};d.flush=C,d.cancel=T,l.current=window.setTimeout(x,t),w();return}if(r&&!g){d._hasPendingCallback=!0;const x=()=>{l.current!==0&&(b(),o(...p))},C=()=>{b()};d.flush=x,d.cancel=C;const T=()=>{b()};l.current=window.setTimeout(T,t),w();return}d._hasPendingCallback=!0;const k=()=>{l.current!==0&&(b(),o(...p))},_=()=>{b()};d.flush=k,d.cancel=_,l.current=window.setTimeout(k,t),w()},{flush:()=>{},cancel:()=>{},isPending:()=>d._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return d},[o,t,r,a]);return S.useEffect(()=>()=>{i?h.flush():h.cancel()},[h,i]),h}const oX=["mousedown","touchstart"];function sX(e,n,t,i=!0){const r=S.useRef(null),a=n||oX,o=S.useEffectEvent(u=>{const{target:f}=u??{};if(!document.body.contains(f)&&(f==null?void 0:f.tagName)!=="HTML")return;const h=u.composedPath();Array.isArray(t)?t.every(d=>!!d&&!h.includes(d))&&e(u):r.current&&!h.includes(r.current)&&e(u)}),l=a.join(",");return S.useEffect(()=>{if(!i)return;const u=l.split(",");return u.forEach(f=>document.addEventListener(f,o)),()=>{u.forEach(f=>document.removeEventListener(f,o))}},[l,i]),r}function lX(e={}){const n=e.timeout??2e3,[t,i]=S.useState(null),[r,a]=S.useState(!1),o=S.useRef(null);S.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);const l=h=>{window.clearTimeout(o.current),o.current=window.setTimeout(()=>a(!1),n),a(h)};return{copy:h=>{"clipboard"in navigator?navigator.clipboard.writeText(h).then(()=>{i(null),l(!0)}).catch(d=>i(d)):i(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),i(null),window.clearTimeout(o.current)},error:t,copied:r}}function uX(e,n){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function cX(e,n,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){const[i,r]=S.useState(t?n:uX(e));return S.useEffect(()=>{try{if("matchMedia"in window){const a=window.matchMedia(e);r(a.matches);const o=l=>r(l.matches);return a.addEventListener("change",o),()=>{a.removeEventListener("change",o)}}}catch{return}},[e]),i||!1}const ps=typeof document<"u"?S.useLayoutEffect:S.useEffect;function os(e,n){const t=S.useRef(!1);S.useEffect(()=>()=>{t.current=!1},[]),S.useEffect(()=>{if(t.current)return e();t.current=!0},n)}function Bz({opened:e,shouldReturnFocus:n=!0}){const t=S.useRef(null),i=()=>{var r;t.current&&"focus"in t.current&&typeof t.current.focus=="function"&&((r=t.current)==null||r.focus({preventScroll:!0}))};return os(()=>{let r=-1;const a=o=>{o.key==="Tab"&&window.clearTimeout(r)};if(document.addEventListener("keydown",a),e)t.current=document.activeElement;else if(n){const o=document.activeElement;r=window.setTimeout(()=>{const l=document.activeElement;(l===null||l===document.body||l===o)&&i()},10)}return()=>{window.clearTimeout(r),document.removeEventListener("keydown",a)}},[e,n]),i}const fX=/input|select|textarea|button|object/,Fz="a, input, select, textarea, button, object, [tabindex]";function dX(e){return e.style.display==="none"}function hX(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(dX(n))return!1;n=n.parentNode}return!0}function qz(e){let n=e.getAttribute("tabindex");return n===null&&(n=void 0),parseInt(n,10)}function OS(e){const n=e.nodeName.toLowerCase(),t=!Number.isNaN(qz(e));return(fX.test(n)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||t)&&hX(e)}function Hz(e){const n=qz(e);return(Number.isNaN(n)||n>=0)&&OS(e)}function mX(e){return Array.from(e.querySelectorAll(Fz)).filter(Hz)}function pX(e,n){const t=mX(e);if(!t.length){n.preventDefault();return}const i=t[n.shiftKey?0:t.length-1],r=e.getRootNode();let a=i===r.activeElement||e===r.activeElement;const o=r.activeElement;if(o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(a=t.filter(u=>u.getAttribute("type")==="radio"&&u.getAttribute("name")===o.getAttribute("name")).includes(i)),!a)return;n.preventDefault();const l=t[n.shiftKey?t.length-1:0];l&&l.focus()}function vX(e=!0){const n=S.useRef(null),t=r=>{let a=r.querySelector("[data-autofocus]");if(!a){const o=Array.from(r.querySelectorAll(Fz));a=o.find(Hz)||o.find(OS)||null,!a&&OS(r)&&(a=r)}a?a.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",r)},i=S.useCallback(r=>{if(e){if(r===null){n.current=null;return}n.current!==r&&(setTimeout(()=>{r.getRootNode()?t(r):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",r)}),n.current=r)}},[e]);return S.useEffect(()=>{if(!e)return;n.current&&setTimeout(()=>{n.current&&t(n.current)});const r=a=>{a.key==="Tab"&&n.current&&pX(n.current,a)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),i}const gX=e=>(e+1)%1e6;function yX(){const[,e]=S.useReducer(gX,0);return e}function Pi(e){const[n,t]=S.useState(`mantine-${S.useId().replace(/:/g,"")}`);return ps(()=>{t(ml())},[]),typeof e=="string"?e:n}function Uz(e,n,t){const i=S.useEffectEvent(n);S.useEffect(()=>(window.addEventListener(e,i,t),()=>window.removeEventListener(e,i,t)),[e])}function cm(e,n){if(typeof e=="function")return e(n);typeof e=="object"&&e!==null&&"current"in e&&(e.current=n)}function bX(...e){const n=new Map;return t=>{if(e.forEach(i=>{const r=cm(i,t);r&&n.set(i,r)}),n.size>0)return()=>{e.forEach(i=>{const r=n.get(i);r&&typeof r=="function"?r():cm(i,null)}),n.clear()}}}function Vt(...e){return S.useCallback(bX(...e),e)}function Vz(e){return{x:Jo(e.x,0,1),y:Jo(e.y,0,1)}}function Wz(e,n,t="ltr"){const i=S.useRef(!1),r=S.useRef(!1),a=S.useRef(0),o=S.useRef(null),[l,u]=S.useState(!1);return S.useEffect(()=>(i.current=!0,()=>{var f;(f=o.current)==null||f.call(o)}),[]),{ref:S.useCallback(f=>{const h=({x:C,y:T})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(i.current&&f){f.style.userSelect="none";const A=f.getBoundingClientRect();if(A.width&&A.height){const O=Jo((C-A.left)/A.width,0,1);e({x:t==="ltr"?O:1-O,y:Jo((T-A.top)/A.height,0,1)})}}})},d=()=>{document.addEventListener("mousemove",k),document.addEventListener("mouseup",b),document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",b)},p=()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",b)},g=()=>{!r.current&&i.current&&(r.current=!0,typeof(n==null?void 0:n.onScrubStart)=="function"&&n.onScrubStart(),u(!0),d())},b=()=>{r.current&&i.current&&(r.current=!1,u(!1),p(),setTimeout(()=>{typeof(n==null?void 0:n.onScrubEnd)=="function"&&n.onScrubEnd()},0))},w=C=>{g(),C.preventDefault(),k(C)},k=C=>h({x:C.clientX,y:C.clientY}),_=C=>{C.cancelable&&C.preventDefault(),g(),x(C)},x=C=>{C.cancelable&&C.preventDefault(),h({x:C.changedTouches[0].clientX,y:C.changedTouches[0].clientY})};return f==null||f.addEventListener("mousedown",w),f==null||f.addEventListener("touchstart",_,{passive:!1}),o.current=()=>{p(),cancelAnimationFrame(a.current)},()=>{f&&(f.removeEventListener("mousedown",w),f.removeEventListener("touchstart",_))}},[t,e]),active:l}}function Ai({value:e,defaultValue:n,finalValue:t,onChange:i=()=>{}}){const[r,a]=S.useState(n!==void 0?n:t),o=(l,...u)=>{a(l),i==null||i(l,...u)};return e!==void 0?[e,i,!0]:[r,o,!1]}function eC(e,n){return cX("(prefers-reduced-motion: reduce)",e,n)}function Gz(e=!1,n={}){const[t,i]=S.useState(e),r=S.useCallback(()=>{i(o=>{var l;return o||((l=n.onOpen)==null||l.call(n),!0)})},[n.onOpen]),a=S.useCallback(()=>{i(o=>{var l;return o&&((l=n.onClose)==null||l.call(n),!1)})},[n.onClose]);return[t,{open:r,close:a,toggle:S.useCallback(()=>{t?a():r()},[a,r,t]),set:i}]}function wX(e){const n=S.useRef(void 0);return S.useEffect(()=>{n.current=e},[e]),n.current}var wk={exports:{}},Yi={};/** * @license React * react-dom.production.js * @@ -22,16 +22,16 @@ function GK(e,n){for(var t=0;t"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),bk.exports=kX(),bk.exports}var sl=Gz();const Lh=yt(sl);function _X(e,n){window.dispatchEvent(new CustomEvent(e,{detail:n}))}function xX(e){function n(i){const r=Object.keys(i).reduce((a,o)=>(a[`${e}:${o}`]=l=>i[o](l.detail),a),{});ps(()=>(Object.keys(r).forEach(a=>{window.removeEventListener(a,r[a]),window.addEventListener(a,r[a])}),()=>Object.keys(r).forEach(a=>{window.removeEventListener(a,r[a])})),[r])}function t(i){return(...r)=>_X(`${e}:${String(i)}`,r[0])}return[n,t]}var SX={};function CX(){return"development"}function xy(e){var t;const n=J.version;return typeof J.version!="string"||n.startsWith("18.")?e==null?void 0:e.ref:(t=e==null?void 0:e.props)==null?void 0:t.ref}function Eg(e,n=document){const t=n.querySelector(e);if(t)return t;const i=n.querySelectorAll("*");for(let r=0;r{Object.entries(t).forEach(([i,r])=>{n[i]?n[i]=vn(n[i],r):n[i]=r})}),n}function fm({theme:e,classNames:n,props:t,stylesCtx:i}){return AX((Array.isArray(n)?n:[n]).map(r=>typeof r=="function"?r(e,t,i):r||jX))}function Gg({theme:e,styles:n,props:t,stylesCtx:i}){const r=Array.isArray(n)?n:[n],a={};for(const o of r)typeof o=="function"?Object.assign(a,o(e,t,i)):o&&Object.assign(a,o);return a}function qT(e){return e==="auto"||e==="dark"||e==="light"}function OX({key:e="mantine-color-scheme-value"}={}){let n;return{get:t=>{if(typeof window>"u")return t;try{const i=window.localStorage.getItem(e);return qT(i)?i:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(i){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",i)}},subscribe:t=>{n=i=>{i.storageArea===window.localStorage&&i.key===e&&qT(i.newValue)&&t(i.newValue)},window.addEventListener("storage",n)},unsubscribe:()=>{window.removeEventListener("storage",n)},clear:()=>{window.localStorage.removeItem(e)}}}function dm(e,n){return typeof e.primaryShade=="number"?e.primaryShade:n==="dark"?e.primaryShade.dark:e.primaryShade.light}function TX(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function EX(e){let n=e.replace("#","");if(n.length===3){const i=n.split("");n=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}if(n.length===8){const i=parseInt(n.slice(6,8),16)/255;return{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:i}}const t=parseInt(n,16);return{r:t>>16&255,g:t>>8&255,b:t&255,a:1}}function MX(e){const[n,t,i,r]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:n,g:t,b:i,a:r===void 0?1:r}}function DX(e){const n=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!n)return{r:0,g:0,b:0,a:1};const t=parseInt(n[1],10),i=parseInt(n[2],10)/100,r=parseInt(n[3],10)/100,a=n[5]?parseFloat(n[5]):void 0,o=(1-Math.abs(2*r-1))*i,l=t/60,u=o*(1-Math.abs(l%2-1)),f=r-o/2;let h,d,p;return l>=0&&l<1?(h=o,d=u,p=0):l>=1&&l<2?(h=u,d=o,p=0):l>=2&&l<3?(h=0,d=o,p=u):l>=3&&l<4?(h=0,d=u,p=o):l>=4&&l<5?(h=u,d=0,p=o):(h=o,d=0,p=u),{r:Math.round((h+f)*255),g:Math.round((d+f)*255),b:Math.round((p+f)*255),a:a||1}}function nC(e){return TX(e)?EX(e):e.startsWith("rgb")?MX(e):e.startsWith("hsl")?DX(e):{r:0,g:0,b:0,a:1}}function wk(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function RX(e){const n=e.match(/oklch\((.*?)%\s/);return n?parseFloat(n[1]):null}function Kz(e){if(e.startsWith("oklch("))return(RX(e)||0)/100;const{r:n,g:t,b:i}=nC(e),r=n/255,a=t/255,o=i/255,l=wk(r),u=wk(a),f=wk(o);return .2126*l+.7152*u+.0722*f}function yh(e,n=.179){return e.startsWith("var(")?!1:Kz(e)>n}function vs({color:e,theme:n,colorScheme:t}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:t==="dark"?n.white:n.black,shade:void 0,isThemeColor:!1,isLight:yh(t==="dark"?n.white:n.black,n.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:t==="dark"?n.colors.dark[2]:n.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:yh(t==="dark"?n.colors.dark[2]:n.colors.gray[6],n.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?n.white:n.black,shade:void 0,isThemeColor:!1,isLight:yh(e==="white"?n.white:n.black,n.luminanceThreshold),variable:`--mantine-color-${e}`};const[i,r]=e.split("."),a=r?Number(r):void 0,o=i in n.colors;if(o){const l=a!==void 0?n.colors[i][a]:n.colors[i][dm(n,t||"light")];return{color:i,value:l,shade:a,isThemeColor:o,isLight:yh(l,n.luminanceThreshold),variable:r?`--mantine-color-${i}-${a}`:`--mantine-color-${i}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:yh(e,n.luminanceThreshold),shade:a,variable:void 0}}function ft(e,n){const t=vs({color:e||n.primaryColor,theme:n});return t.variable?`var(${t.variable})`:e}function vu(e,n){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${n*100}%)`;const{r:t,g:i,b:r,a}=nC(e),o=1-n,l=u=>Math.round(u*o);return`rgba(${l(t)}, ${l(i)}, ${l(r)}, ${a})`}function OS(e,n){const t={from:(e==null?void 0:e.from)||n.defaultGradient.from,to:(e==null?void 0:e.to)||n.defaultGradient.to,deg:(e==null?void 0:e.deg)??n.defaultGradient.deg??0},i=ft(t.from,n),r=ft(t.to,n);return`linear-gradient(${t.deg}deg, ${i} 0%, ${r} 100%)`}function nl(e,n){if(typeof e!="string"||n>1||n<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${(1-n)*100}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${n})`):e.replace(")",` / ${n})`);const{r:t,g:i,b:r}=nC(e);return`rgba(${t}, ${i}, ${r}, ${n})`}const HT=nl,PX=({color:e,theme:n,variant:t,gradient:i,autoContrast:r})=>{const a=vs({color:e,theme:n}),o=typeof r=="boolean"?r:n.autoContrast;if(t==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(t==="filled"){const l=o&&a.isLight?"var(--mantine-color-black)":"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:l,border:`${ve(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:l,border:`${ve(1)} solid transparent`}:{background:e,hover:vu(e,.1),color:l,border:`${ve(1)} solid transparent`}}if(t==="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:`${ve(1)} solid transparent`};const l=n.colors[a.color][a.shade];return{background:l,hover:vu(l,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${ve(1)} solid transparent`}}return{background:nl(e,.1),hover:nl(e,.12),color:e,border:`${ve(1)} solid transparent`}}if(t==="outline")return a.isThemeColor?a.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${ve(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:nl(n.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${ve(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:"transparent",hover:nl(e,.05),color:e,border:`${ve(1)} solid ${e}`};if(t==="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:`${ve(1)} solid transparent`};const l=n.colors[a.color][a.shade];return{background:"transparent",hover:nl(l,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${ve(1)} solid transparent`}}return{background:"transparent",hover:nl(e,.12),color:e,border:`${ve(1)} solid transparent`}}return t==="transparent"?a.isThemeColor?a.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${ve(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${ve(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${ve(1)} solid transparent`}:t==="white"?a.isThemeColor?a.shade===void 0?{background:"var(--mantine-color-white)",hover:vu(n.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${ve(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:vu(n.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${ve(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:vu(n.white,.01),color:e,border:`${ve(1)} solid transparent`}:t==="gradient"?{background:OS(i,n),hover:OS(i,n),color:"var(--mantine-color-white)",border:"none"}:t==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${ve(1)} solid var(--mantine-color-default-border)`}:{}};function If({color:e,theme:n,autoContrast:t}){return(typeof t=="boolean"?t:n.autoContrast)&&vs({color:e||n.primaryColor,theme:n}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function UT(e,n){return If({color:e.colors[e.primaryColor][dm(e,n)],theme:e,autoContrast:null})}function ap(e,n){return typeof e=="boolean"?e:n.autoContrast}const Xz=x.createContext(null);function wo(){const e=x.use(Xz);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function NX(){return wo().cssVariablesResolver}function $X(){return wo().classNamesPrefix}function tC(){return wo().getStyleNonce}function zX(){return wo().withStaticClasses}function LX(){return wo().headless}function IX(){var e;return(e=wo().stylesTransform)==null?void 0:e.sx}function BX(){var e;return(e=wo().stylesTransform)==null?void 0:e.styles}function op(){return wo().env||"default"}function FX(){return wo().deduplicateInlineStyles}function Mc(e,n){var r,a;const t=typeof window<"u"&&"matchMedia"in window&&((r=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:r.matches),i=e!=="auto"?e:t?"dark":"light";(a=n())==null||a.setAttribute("data-mantine-color-scheme",i)}function qX({manager:e,defaultColorScheme:n,getRootElement:t,forceColorScheme:i}){const r=x.useRef(null),[a,o]=x.useState(()=>e.get(n)),l=i||a,u=x.useCallback(h=>{i||(Mc(h,t),o(h),e.set(h))},[e.set,l,i]),f=x.useCallback(()=>{o(n),Mc(n,t),e.clear()},[e.clear,n]);return x.useEffect(()=>(e.subscribe(u),e.unsubscribe),[e.subscribe,e.unsubscribe]),ps(()=>{Mc(e.get(n),t)},[]),x.useEffect(()=>{var d;if(i)return Mc(i,t),()=>{};i===void 0&&Mc(a,t),typeof window<"u"&&"matchMedia"in window&&(r.current=window.matchMedia("(prefers-color-scheme: dark)"));const h=p=>{a==="auto"&&Mc(p.matches?"dark":"light",t)};return(d=r.current)==null||d.addEventListener("change",h),()=>{var p;return(p=r.current)==null?void 0:p.removeEventListener("change",h)}},[a,i]),{colorScheme:l,setColorScheme:u,clearColorScheme:f}}const HX={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"]},VT="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",iC={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:HX,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:PX,autoContrast:!1,luminanceThreshold:.3,fontFamily:VT,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:VT,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:ve(34),lineHeight:"1.3"},h2:{fontSize:ve(26),lineHeight:"1.35"},h3:{fontSize:ve(22),lineHeight:"1.4"},h4:{fontSize:ve(18),lineHeight:"1.45"},h5:{fontSize:ve(16),lineHeight:"1.5"},h6:{fontSize:ve(14),lineHeight:"1.5"}}},fontSizes:{xs:ve(12),sm:ve(14),md:ve(16),lg:ve(18),xl:ve(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:ve(2),sm:ve(4),md:ve(8),lg:ve(16),xl:ve(32)},spacing:{xs:ve(10),sm:ve(12),md:ve(16),lg:ve(20),xl:ve(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), 0 ${ve(1)} ${ve(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(10)} ${ve(15)} ${ve(-5)}, rgba(0, 0, 0, 0.04) 0 ${ve(7)} ${ve(7)} ${ve(-5)}`,md:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(20)} ${ve(25)} ${ve(-5)}, rgba(0, 0, 0, 0.04) 0 ${ve(10)} ${ve(10)} ${ve(-5)}`,lg:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(28)} ${ve(23)} ${ve(-7)}, rgba(0, 0, 0, 0.04) 0 ${ve(12)} ${ve(12)} ${ve(-7)}`,xl:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(36)} ${ve(28)} ${ve(-7)}, rgba(0, 0, 0, 0.04) 0 ${ve(17)} ${ve(17)} ${ve(-7)}`},other:{},components:{}},UX="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",WT="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function kk(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function GT(e){if(!(e.primaryColor in e.colors))throw new Error(UX);if(typeof e.primaryShade=="object"&&(!kk(e.primaryShade.dark)||!kk(e.primaryShade.light)))throw new Error(WT);if(typeof e.primaryShade=="number"&&!kk(e.primaryShade))throw new Error(WT)}function VX(e,n){var i;if(!n)return GT(e),e;const t=Y6(e,n);return n.fontFamily&&!((i=n.headings)!=null&&i.fontFamily)&&(t.headings.fontFamily=n.fontFamily),GT(t),t}const rC=x.createContext(null),WX=()=>x.use(rC)||iC;function ci(){const e=x.use(rC);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Zz({theme:e,children:n,inherit:t=!0}){const i=WX();return v.jsx(rC,{value:x.useMemo(()=>VX(t?i:iC,e),[e,i,t]),children:n})}Zz.displayName="@mantine/core/MantineThemeProvider";function _k(e){return Object.entries(e).map(([n,t])=>`${n}: ${t};`).join("")}function Qz(e,n){const t=n?[n]:[":root",":host"],i=_k(e.variables),r=i?`${t.join(", ")}{${i}}`:"",a=_k(e.dark),o=_k(e.light),l=u=>t.map(f=>f===":host"?`${f}([data-mantine-color-scheme="${u}"])`:`${f}[data-mantine-color-scheme="${u}"]`).join(", ");return`${r} + */var FT;function kX(){if(FT)return Yi;FT=1;var e=K6();function n(u){var f="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),wk.exports=kX(),wk.exports}var sl=Yz();const Lh=yt(sl);function _X(e,n){window.dispatchEvent(new CustomEvent(e,{detail:n}))}function xX(e){function n(i){const r=Object.keys(i).reduce((a,o)=>(a[`${e}:${o}`]=l=>i[o](l.detail),a),{});ps(()=>(Object.keys(r).forEach(a=>{window.removeEventListener(a,r[a]),window.addEventListener(a,r[a])}),()=>Object.keys(r).forEach(a=>{window.removeEventListener(a,r[a])})),[r])}function t(i){return(...r)=>_X(`${e}:${String(i)}`,r[0])}return[n,t]}var SX={};function CX(){return"development"}function Sy(e){var t;const n=J.version;return typeof J.version!="string"||n.startsWith("18.")?e==null?void 0:e.ref:(t=e==null?void 0:e.props)==null?void 0:t.ref}function Eg(e,n=document){const t=n.querySelector(e);if(t)return t;const i=n.querySelectorAll("*");for(let r=0;r{Object.entries(t).forEach(([i,r])=>{n[i]?n[i]=vn(n[i],r):n[i]=r})}),n}function fm({theme:e,classNames:n,props:t,stylesCtx:i}){return AX((Array.isArray(n)?n:[n]).map(r=>typeof r=="function"?r(e,t,i):r||jX))}function Gg({theme:e,styles:n,props:t,stylesCtx:i}){const r=Array.isArray(n)?n:[n],a={};for(const o of r)typeof o=="function"?Object.assign(a,o(e,t,i)):o&&Object.assign(a,o);return a}function HT(e){return e==="auto"||e==="dark"||e==="light"}function OX({key:e="mantine-color-scheme-value"}={}){let n;return{get:t=>{if(typeof window>"u")return t;try{const i=window.localStorage.getItem(e);return HT(i)?i:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(i){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",i)}},subscribe:t=>{n=i=>{i.storageArea===window.localStorage&&i.key===e&&HT(i.newValue)&&t(i.newValue)},window.addEventListener("storage",n)},unsubscribe:()=>{window.removeEventListener("storage",n)},clear:()=>{window.localStorage.removeItem(e)}}}function dm(e,n){return typeof e.primaryShade=="number"?e.primaryShade:n==="dark"?e.primaryShade.dark:e.primaryShade.light}function TX(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function EX(e){let n=e.replace("#","");if(n.length===3){const i=n.split("");n=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}if(n.length===8){const i=parseInt(n.slice(6,8),16)/255;return{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:i}}const t=parseInt(n,16);return{r:t>>16&255,g:t>>8&255,b:t&255,a:1}}function MX(e){const[n,t,i,r]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:n,g:t,b:i,a:r===void 0?1:r}}function DX(e){const n=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!n)return{r:0,g:0,b:0,a:1};const t=parseInt(n[1],10),i=parseInt(n[2],10)/100,r=parseInt(n[3],10)/100,a=n[5]?parseFloat(n[5]):void 0,o=(1-Math.abs(2*r-1))*i,l=t/60,u=o*(1-Math.abs(l%2-1)),f=r-o/2;let h,d,p;return l>=0&&l<1?(h=o,d=u,p=0):l>=1&&l<2?(h=u,d=o,p=0):l>=2&&l<3?(h=0,d=o,p=u):l>=3&&l<4?(h=0,d=u,p=o):l>=4&&l<5?(h=u,d=0,p=o):(h=o,d=0,p=u),{r:Math.round((h+f)*255),g:Math.round((d+f)*255),b:Math.round((p+f)*255),a:a||1}}function nC(e){return TX(e)?EX(e):e.startsWith("rgb")?MX(e):e.startsWith("hsl")?DX(e):{r:0,g:0,b:0,a:1}}function kk(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function RX(e){const n=e.match(/oklch\((.*?)%\s/);return n?parseFloat(n[1]):null}function Xz(e){if(e.startsWith("oklch("))return(RX(e)||0)/100;const{r:n,g:t,b:i}=nC(e),r=n/255,a=t/255,o=i/255,l=kk(r),u=kk(a),f=kk(o);return .2126*l+.7152*u+.0722*f}function yh(e,n=.179){return e.startsWith("var(")?!1:Xz(e)>n}function vs({color:e,theme:n,colorScheme:t}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:t==="dark"?n.white:n.black,shade:void 0,isThemeColor:!1,isLight:yh(t==="dark"?n.white:n.black,n.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:t==="dark"?n.colors.dark[2]:n.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:yh(t==="dark"?n.colors.dark[2]:n.colors.gray[6],n.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?n.white:n.black,shade:void 0,isThemeColor:!1,isLight:yh(e==="white"?n.white:n.black,n.luminanceThreshold),variable:`--mantine-color-${e}`};const[i,r]=e.split("."),a=r?Number(r):void 0,o=i in n.colors;if(o){const l=a!==void 0?n.colors[i][a]:n.colors[i][dm(n,t||"light")];return{color:i,value:l,shade:a,isThemeColor:o,isLight:yh(l,n.luminanceThreshold),variable:r?`--mantine-color-${i}-${a}`:`--mantine-color-${i}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:yh(e,n.luminanceThreshold),shade:a,variable:void 0}}function ft(e,n){const t=vs({color:e||n.primaryColor,theme:n});return t.variable?`var(${t.variable})`:e}function vu(e,n){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${n*100}%)`;const{r:t,g:i,b:r,a}=nC(e),o=1-n,l=u=>Math.round(u*o);return`rgba(${l(t)}, ${l(i)}, ${l(r)}, ${a})`}function TS(e,n){const t={from:(e==null?void 0:e.from)||n.defaultGradient.from,to:(e==null?void 0:e.to)||n.defaultGradient.to,deg:(e==null?void 0:e.deg)??n.defaultGradient.deg??0},i=ft(t.from,n),r=ft(t.to,n);return`linear-gradient(${t.deg}deg, ${i} 0%, ${r} 100%)`}function nl(e,n){if(typeof e!="string"||n>1||n<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${(1-n)*100}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${n})`):e.replace(")",` / ${n})`);const{r:t,g:i,b:r}=nC(e);return`rgba(${t}, ${i}, ${r}, ${n})`}const UT=nl,PX=({color:e,theme:n,variant:t,gradient:i,autoContrast:r})=>{const a=vs({color:e,theme:n}),o=typeof r=="boolean"?r:n.autoContrast;if(t==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(t==="filled"){const l=o&&a.isLight?"var(--mantine-color-black)":"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:l,border:`${ve(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:l,border:`${ve(1)} solid transparent`}:{background:e,hover:vu(e,.1),color:l,border:`${ve(1)} solid transparent`}}if(t==="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:`${ve(1)} solid transparent`};const l=n.colors[a.color][a.shade];return{background:l,hover:vu(l,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${ve(1)} solid transparent`}}return{background:nl(e,.1),hover:nl(e,.12),color:e,border:`${ve(1)} solid transparent`}}if(t==="outline")return a.isThemeColor?a.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${ve(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:nl(n.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${ve(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:"transparent",hover:nl(e,.05),color:e,border:`${ve(1)} solid ${e}`};if(t==="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:`${ve(1)} solid transparent`};const l=n.colors[a.color][a.shade];return{background:"transparent",hover:nl(l,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${ve(1)} solid transparent`}}return{background:"transparent",hover:nl(e,.12),color:e,border:`${ve(1)} solid transparent`}}return t==="transparent"?a.isThemeColor?a.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${ve(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${ve(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${ve(1)} solid transparent`}:t==="white"?a.isThemeColor?a.shade===void 0?{background:"var(--mantine-color-white)",hover:vu(n.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${ve(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:vu(n.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${ve(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:vu(n.white,.01),color:e,border:`${ve(1)} solid transparent`}:t==="gradient"?{background:TS(i,n),hover:TS(i,n),color:"var(--mantine-color-white)",border:"none"}:t==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${ve(1)} solid var(--mantine-color-default-border)`}:{}};function If({color:e,theme:n,autoContrast:t}){return(typeof t=="boolean"?t:n.autoContrast)&&vs({color:e||n.primaryColor,theme:n}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function VT(e,n){return If({color:e.colors[e.primaryColor][dm(e,n)],theme:e,autoContrast:null})}function ap(e,n){return typeof e=="boolean"?e:n.autoContrast}const Zz=S.createContext(null);function wo(){const e=S.use(Zz);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function NX(){return wo().cssVariablesResolver}function $X(){return wo().classNamesPrefix}function tC(){return wo().getStyleNonce}function zX(){return wo().withStaticClasses}function LX(){return wo().headless}function IX(){var e;return(e=wo().stylesTransform)==null?void 0:e.sx}function BX(){var e;return(e=wo().stylesTransform)==null?void 0:e.styles}function op(){return wo().env||"default"}function FX(){return wo().deduplicateInlineStyles}function Dc(e,n){var r,a;const t=typeof window<"u"&&"matchMedia"in window&&((r=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:r.matches),i=e!=="auto"?e:t?"dark":"light";(a=n())==null||a.setAttribute("data-mantine-color-scheme",i)}function qX({manager:e,defaultColorScheme:n,getRootElement:t,forceColorScheme:i}){const r=S.useRef(null),[a,o]=S.useState(()=>e.get(n)),l=i||a,u=S.useCallback(h=>{i||(Dc(h,t),o(h),e.set(h))},[e.set,l,i]),f=S.useCallback(()=>{o(n),Dc(n,t),e.clear()},[e.clear,n]);return S.useEffect(()=>(e.subscribe(u),e.unsubscribe),[e.subscribe,e.unsubscribe]),ps(()=>{Dc(e.get(n),t)},[]),S.useEffect(()=>{var d;if(i)return Dc(i,t),()=>{};i===void 0&&Dc(a,t),typeof window<"u"&&"matchMedia"in window&&(r.current=window.matchMedia("(prefers-color-scheme: dark)"));const h=p=>{a==="auto"&&Dc(p.matches?"dark":"light",t)};return(d=r.current)==null||d.addEventListener("change",h),()=>{var p;return(p=r.current)==null?void 0:p.removeEventListener("change",h)}},[a,i]),{colorScheme:l,setColorScheme:u,clearColorScheme:f}}const HX={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"]},WT="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",iC={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:HX,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:PX,autoContrast:!1,luminanceThreshold:.3,fontFamily:WT,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:WT,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:ve(34),lineHeight:"1.3"},h2:{fontSize:ve(26),lineHeight:"1.35"},h3:{fontSize:ve(22),lineHeight:"1.4"},h4:{fontSize:ve(18),lineHeight:"1.45"},h5:{fontSize:ve(16),lineHeight:"1.5"},h6:{fontSize:ve(14),lineHeight:"1.5"}}},fontSizes:{xs:ve(12),sm:ve(14),md:ve(16),lg:ve(18),xl:ve(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:ve(2),sm:ve(4),md:ve(8),lg:ve(16),xl:ve(32)},spacing:{xs:ve(10),sm:ve(12),md:ve(16),lg:ve(20),xl:ve(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), 0 ${ve(1)} ${ve(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(10)} ${ve(15)} ${ve(-5)}, rgba(0, 0, 0, 0.04) 0 ${ve(7)} ${ve(7)} ${ve(-5)}`,md:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(20)} ${ve(25)} ${ve(-5)}, rgba(0, 0, 0, 0.04) 0 ${ve(10)} ${ve(10)} ${ve(-5)}`,lg:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(28)} ${ve(23)} ${ve(-7)}, rgba(0, 0, 0, 0.04) 0 ${ve(12)} ${ve(12)} ${ve(-7)}`,xl:`0 ${ve(1)} ${ve(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ve(36)} ${ve(28)} ${ve(-7)}, rgba(0, 0, 0, 0.04) 0 ${ve(17)} ${ve(17)} ${ve(-7)}`},other:{},components:{}},UX="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",GT="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function _k(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function YT(e){if(!(e.primaryColor in e.colors))throw new Error(UX);if(typeof e.primaryShade=="object"&&(!_k(e.primaryShade.dark)||!_k(e.primaryShade.light)))throw new Error(GT);if(typeof e.primaryShade=="number"&&!_k(e.primaryShade))throw new Error(GT)}function VX(e,n){var i;if(!n)return YT(e),e;const t=Y6(e,n);return n.fontFamily&&!((i=n.headings)!=null&&i.fontFamily)&&(t.headings.fontFamily=n.fontFamily),YT(t),t}const rC=S.createContext(null),WX=()=>S.use(rC)||iC;function ci(){const e=S.use(rC);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Qz({theme:e,children:n,inherit:t=!0}){const i=WX();return v.jsx(rC,{value:S.useMemo(()=>VX(t?i:iC,e),[e,i,t]),children:n})}Qz.displayName="@mantine/core/MantineThemeProvider";function xk(e){return Object.entries(e).map(([n,t])=>`${n}: ${t};`).join("")}function Jz(e,n){const t=n?[n]:[":root",":host"],i=xk(e.variables),r=i?`${t.join(", ")}{${i}}`:"",a=xk(e.dark),o=xk(e.light),l=u=>t.map(f=>f===":host"?`${f}([data-mantine-color-scheme="${u}"])`:`${f}[data-mantine-color-scheme="${u}"]`).join(", ");return`${r} ${a?`${l("dark")}{${a}}`:""} -${o?`${l("light")}{${o}}`:""}`}function Zv({theme:e,color:n,colorScheme:t,name:i=n,withColorValues:r=!0}){if(!e.colors[n])return{};if(t==="light"){const l=dm(e,"light"),u={[`--mantine-color-${i}-text`]:`var(--mantine-color-${i}-filled)`,[`--mantine-color-${i}-filled`]:`var(--mantine-color-${i}-${l})`,[`--mantine-color-${i}-filled-hover`]:`var(--mantine-color-${i}-${l===9?8:l+1})`,[`--mantine-color-${i}-light`]:`var(--mantine-color-${i}-1)`,[`--mantine-color-${i}-light-hover`]:`var(--mantine-color-${i}-2)`,[`--mantine-color-${i}-light-color`]:`var(--mantine-color-${i}-9)`,[`--mantine-color-${i}-outline`]:`var(--mantine-color-${i}-${l})`,[`--mantine-color-${i}-outline-hover`]:HT(e.colors[n][l],.05)};return r?{[`--mantine-color-${i}-0`]:e.colors[n][0],[`--mantine-color-${i}-1`]:e.colors[n][1],[`--mantine-color-${i}-2`]:e.colors[n][2],[`--mantine-color-${i}-3`]:e.colors[n][3],[`--mantine-color-${i}-4`]:e.colors[n][4],[`--mantine-color-${i}-5`]:e.colors[n][5],[`--mantine-color-${i}-6`]:e.colors[n][6],[`--mantine-color-${i}-7`]:e.colors[n][7],[`--mantine-color-${i}-8`]:e.colors[n][8],[`--mantine-color-${i}-9`]:e.colors[n][9],...u}:u}const a=dm(e,"dark"),o={[`--mantine-color-${i}-text`]:`var(--mantine-color-${i}-4)`,[`--mantine-color-${i}-filled`]:`var(--mantine-color-${i}-${a})`,[`--mantine-color-${i}-filled-hover`]:`var(--mantine-color-${i}-${a===9?8:a+1})`,[`--mantine-color-${i}-light`]:vu(e.colors[n][9],.5),[`--mantine-color-${i}-light-hover`]:vu(e.colors[n][9],.3),[`--mantine-color-${i}-light-color`]:`var(--mantine-color-${i}-0)`,[`--mantine-color-${i}-outline`]:`var(--mantine-color-${i}-${Math.max(a-4,0)})`,[`--mantine-color-${i}-outline-hover`]:HT(e.colors[n][Math.max(a-4,0)],.05)};return r?{[`--mantine-color-${i}-0`]:e.colors[n][0],[`--mantine-color-${i}-1`]:e.colors[n][1],[`--mantine-color-${i}-2`]:e.colors[n][2],[`--mantine-color-${i}-3`]:e.colors[n][3],[`--mantine-color-${i}-4`]:e.colors[n][4],[`--mantine-color-${i}-5`]:e.colors[n][5],[`--mantine-color-${i}-6`]:e.colors[n][6],[`--mantine-color-${i}-7`]:e.colors[n][7],[`--mantine-color-${i}-8`]:e.colors[n][8],[`--mantine-color-${i}-9`]:e.colors[n][9],...o}:o}function GX(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function su(e,n,t){$t(n).forEach(i=>Object.assign(e,{[`--mantine-${t}-${i}`]:n[i]}))}const Jz=e=>{const n=dm(e,"light"),t=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:ve(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":t,"--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":UT(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-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${n})`,"--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":UT(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-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)"}};su(i.variables,e.breakpoints,"breakpoint"),su(i.variables,e.spacing,"spacing"),su(i.variables,e.fontSizes,"font-size"),su(i.variables,e.lineHeights,"line-height"),su(i.variables,e.shadows,"shadow"),su(i.variables,e.radius,"radius"),su(i.variables,e.fontWeights,"font-weight"),e.colors[e.primaryColor].forEach((a,o)=>{i.variables[`--mantine-primary-color-${o}`]=`var(--mantine-color-${e.primaryColor}-${o})`}),$t(e.colors).forEach(a=>{const o=e.colors[a];if(GX(o)){Object.assign(i.light,Zv({theme:e,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),Object.assign(i.dark,Zv({theme:e,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));return}o.forEach((l,u)=>{i.variables[`--mantine-color-${a}-${u}`]=l}),Object.assign(i.light,Zv({theme:e,color:a,colorScheme:"light",withColorValues:!1})),Object.assign(i.dark,Zv({theme:e,color:a,colorScheme:"dark",withColorValues:!1}))});const r=e.headings.sizes;return $t(r).forEach(a=>{i.variables[`--mantine-${a}-font-size`]=r[a].fontSize,i.variables[`--mantine-${a}-line-height`]=r[a].lineHeight,i.variables[`--mantine-${a}-font-weight`]=r[a].fontWeight||e.headings.fontWeight}),i};function YX(){const e=ci(),n=tC(),t=$t(e.breakpoints).reduce((i,r)=>{const a=e.breakpoints[r].includes("px"),o=lm(e.breakpoints[r]);return`${i}@media (max-width: ${a?`${o-.1}px`:Vg(o-.1)}) {.mantine-visible-from-${r} {display: none !important;}}@media (min-width: ${a?`${o}px`:Vg(o)}) {.mantine-hidden-from-${r} {display: none !important;}}`},"");return v.jsx("style",{"data-mantine-styles":"classes",nonce:n==null?void 0:n(),dangerouslySetInnerHTML:{__html:t}})}function KX({theme:e,generator:n}){const t=Jz(e),i=n==null?void 0:n(e);return i?Y6(t,i):t}const xk=Jz(iC);function XX(e){const n={variables:{},light:{},dark:{}};return $t(e.variables).forEach(t=>{xk.variables[t]!==e.variables[t]&&(n.variables[t]=e.variables[t])}),$t(e.light).forEach(t=>{xk.light[t]!==e.light[t]&&(n.light[t]=e.light[t])}),$t(e.dark).forEach(t=>{xk.dark[t]!==e.dark[t]&&(n.dark[t]=e.dark[t])}),n}function ZX(e){return Qz({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},e)}function eL({cssVariablesSelector:e,deduplicateCssVariables:n}){const t=ci(),i=tC(),r=KX({theme:t,generator:NX()}),a=(e===void 0||e===":root"||e===":host")&&n,o=Qz(a?XX(r):r,e);return o?v.jsx("style",{"data-mantine-styles":!0,nonce:i==null?void 0:i(),dangerouslySetInnerHTML:{__html:`${o}${a?"":ZX(e)}`}}):null}eL.displayName="@mantine/CssVariables";function QX({respectReducedMotion:e,getRootElement:n}){ps(()=>{var t;e&&((t=n())==null||t.setAttribute("data-respect-reduced-motion","true"))},[e])}function nL({theme:e,children:n,getStyleNonce:t,withStaticClasses:i=!0,withGlobalClasses:r=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:l,classNamesPrefix:u="mantine",colorSchemeManager:f=OX(),defaultColorScheme:h="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:g,stylesTransform:b,env:w,deduplicateInlineStyles:k=!1}){const{colorScheme:_,setColorScheme:S,clearColorScheme:j}=qX({defaultColorScheme:h,forceColorScheme:g,manager:f,getRootElement:d});return QX({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),v.jsx(Xz,{value:{colorScheme:_,setColorScheme:S,clearColorScheme:j,getRootElement:d,classNamesPrefix:u,getStyleNonce:t,cssVariablesResolver:p,cssVariablesSelector:l??":root",withStaticClasses:i,stylesTransform:b,env:w,deduplicateInlineStyles:k},children:v.jsxs(Zz,{theme:e,children:[o&&v.jsx(eL,{cssVariablesSelector:l,deduplicateCssVariables:a}),r&&v.jsx(YX,{}),n]})})}nL.displayName="@mantine/core/MantineProvider";function ye(e,n,t){var o;const i=ci(),r=(o=i.components[e])==null?void 0:o.defaultProps,a=typeof r=="function"?r(i):r;return{...n,...a,...Bu(t)}}function Wi({classNames:e,styles:n,props:t,stylesCtx:i}){const r=ci();return{resolvedClassNames:e===void 0?void 0:fm({theme:r,classNames:e,props:t,stylesCtx:i||void 0}),resolvedStyles:n===void 0?void 0:Gg({theme:r,styles:n,props:t,stylesCtx:i||void 0})}}const JX={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function eZ({theme:e,options:n,unstyled:t}){return vn((n==null?void 0:n.focusable)&&!t&&(e.focusClassName||JX[e.focusRing]),(n==null?void 0:n.active)&&!t&&e.activeClassName)}function nZ({selector:e,stylesCtx:n,options:t,props:i,theme:r}){return fm({theme:r,classNames:t==null?void 0:t.classNames,props:(t==null?void 0:t.props)||i,stylesCtx:n})[e]}function tZ({selector:e,stylesCtx:n,theme:t,classNames:i,props:r}){return fm({theme:t,classNames:i,props:r,stylesCtx:n})[e]}function iZ({rootSelector:e,selector:n,className:t}){return e===n?t:void 0}function rZ({selector:e,classes:n,unstyled:t}){return t?void 0:n[e]}function aZ({themeName:e,classNamesPrefix:n,selector:t,withStaticClass:i}){return i===!1?[]:e.map(r=>`${n}-${r}-${t}`)}function oZ({options:e,classes:n,selector:t,unstyled:i}){return e!=null&&e.variant&&!i?n[`${t}--${e.variant}`]:void 0}function sZ({theme:e,options:n,themeName:t,selector:i,classNamesPrefix:r,resolvedClassNames:a,resolvedThemeClassNames:o,classes:l,unstyled:u,className:f,rootSelector:h,props:d,stylesCtx:p,withStaticClasses:g,headless:b,transformedStyles:w}){return vn(eZ({theme:e,options:n,unstyled:u||b}),o.map(k=>k[i]),oZ({options:n,classes:l,selector:i,unstyled:u||b}),a[i],tZ({selector:i,stylesCtx:p,theme:e,classNames:w,props:d}),nZ({selector:i,stylesCtx:p,options:n,props:d,theme:e}),iZ({rootSelector:h,selector:i,className:f}),rZ({selector:i,classes:l,unstyled:u||b}),g&&!b&&aZ({themeName:t,classNamesPrefix:r,selector:i,withStaticClass:n==null?void 0:n.withStaticClass}),n==null?void 0:n.className)}function aC({style:e,theme:n}){return Array.isArray(e)?e.reduce((t,i)=>({...t,...aC({style:i,theme:n})}),{}):typeof e=="function"?e(n):e??{}}function lZ({theme:e,selector:n,options:t,props:i,stylesCtx:r,rootSelector:a,withStylesTransform:o,resolvedStyles:l,resolvedThemeStyles:u,resolvedVars:f,resolvedRootStyle:h}){return{...u[n],...l[n],...!o&&Gg({theme:e,styles:t==null?void 0:t.styles,props:(t==null?void 0:t.props)||i,stylesCtx:r})[n],...f[n],...a===n?h:null,...aC({style:t==null?void 0:t.style,theme:e})}}function uZ(e){return e.reduce((n,t)=>(t&&Object.keys(t).forEach(i=>{n[i]={...n[i],...Bu(t[i])}}),n),{})}function cZ({props:e,stylesCtx:n,themeName:t,theme:i}){var o;const r=(o=BX())==null?void 0:o();return{getTransformedStyles:l=>r?[...l.map(u=>r(u,{props:e,theme:i,ctx:n})),...t.map(u=>{var f;return r((f=i.components[u])==null?void 0:f.styles,{props:e,theme:i,ctx:n})})].filter(Boolean):[],withStylesTransform:!!r}}function Ze({name:e,classes:n,props:t,stylesCtx:i,className:r,style:a,rootSelector:o="root",unstyled:l,classNames:u,styles:f,vars:h,varsResolver:d,attributes:p}){var P;const g=ci(),b=$X(),w=zX(),k=LX(),_=(Array.isArray(e)?e:[e]).filter(L=>L),{withStylesTransform:S,getTransformedStyles:j}=cZ({props:t,stylesCtx:i,themeName:_,theme:g}),T=fm({theme:g,classNames:u,props:t,stylesCtx:i}),A=_.map(L=>{var U;return fm({theme:g,classNames:(U=g.components[L])==null?void 0:U.classNames,props:t,stylesCtx:i})}),O=S?{}:Gg({theme:g,styles:f,props:t,stylesCtx:i}),M={};if(!S)for(const L of _){const U=Gg({theme:g,styles:(P=g.components[L])==null?void 0:P.styles,props:t,stylesCtx:i});for(const G of Object.keys(U))M[G]={...M[G],...U[G]}}const $=uZ([k?{}:d==null?void 0:d(g,t,i),..._.map(L=>{var U,G,B;return(B=(G=(U=g.components)==null?void 0:U[L])==null?void 0:G.vars)==null?void 0:B.call(G,g,t,i)}),h==null?void 0:h(g,t,i)]),q=aC({style:a,theme:g});return(L,U)=>({...p==null?void 0:p[L],className:sZ({theme:g,options:U,themeName:_,selector:L,classNamesPrefix:b,resolvedClassNames:T,resolvedThemeClassNames:A,classes:n,unstyled:l,className:r,rootSelector:o,props:t,stylesCtx:i,withStaticClasses:w,headless:k,transformedStyles:j([U==null?void 0:U.styles,f])}),style:lZ({theme:g,selector:L,options:U,props:t,stylesCtx:i,rootSelector:o,withStylesTransform:S,resolvedStyles:O,resolvedThemeStyles:M,resolvedVars:$,resolvedRootStyle:q})})}function Yh(e){return $t(e).reduce((n,t)=>e[t]!==void 0?`${n}${XK(t)}:${e[t]};`:n,"").trim()}function fZ({selector:e,styles:n,media:t,container:i}){const r=n?Yh(n):"",a=Array.isArray(t)?t.map(l=>`@media${l.query}{${e}{${Yh(l.styles)}}}`):[],o=Array.isArray(i)?i.map(l=>`@container ${l.query}{${e}{${Yh(l.styles)}}}`):[];return`${r?`${e}{${r}}`:""}${a.join("")}${o.join("")}`.trim()}function dZ(e){let n=5381;for(let t=0;t>>0).toString(36)}function Bf({deduplicate:e,...n}){const t=tC(),i=fZ(n);return e?v.jsx("style",{href:`mantine-${dZ(i)}`,precedence:"mantine",nonce:t==null?void 0:t(),children:i}):v.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:i}})}function hZ(e){let n=5381;for(let t=0;t>>0).toString(36)}function mZ(e,n){return`__mdi__-${hZ(`${e?Yh(e):""}|${Array.isArray(n)?n.map(t=>`${t.query}:${Yh(t.styles)}`).join("|"):""}`)}`}function Fu(e){const{m:n,mx:t,my:i,mt:r,mb:a,ml:o,mr:l,me:u,ms:f,mis:h,mie:d,p,px:g,py:b,pt:w,pb:k,pl:_,pr:S,pe:j,ps:T,pis:A,pie:O,bd:M,bdrs:$,bg:q,c:P,opacity:L,ff:U,fz:G,fw:B,lts:R,ta:D,lh:z,fs:H,tt:Y,td:N,w:W,miw:V,maw:I,h:Q,mih:ie,mah:re,bgsz:Z,bgp:le,bgr:ee,bga:se,pos:ke,top:te,left:$e,bottom:xe,right:Ae,inset:ze,display:we,flex:Ce,hiddenFrom:Ne,visibleFrom:he,lightHidden:He,darkHidden:Ye,sx:We,...Qe}=e;return{styleProps:Bu({m:n,mx:t,my:i,mt:r,mb:a,ml:o,mr:l,me:u,ms:f,mis:h,mie:d,p,px:g,py:b,pt:w,pb:k,pl:_,pr:S,pis:A,pie:O,pe:j,ps:T,bd:M,bg:q,c:P,opacity:L,ff:U,fz:G,fw:B,lts:R,ta:D,lh:z,fs:H,tt:Y,td:N,w:W,miw:V,maw:I,h:Q,mih:ie,mah:re,bgsz:Z,bgp:le,bgr:ee,bga:se,pos:ke,top:te,left:$e,bottom:xe,right:Ae,inset:ze,display:we,flex:Ce,bdrs:$,hiddenFrom:Ne,visibleFrom:he,lightHidden:He,darkHidden:Ye,sx:We}),rest:Qe}}const pZ={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 oC(e,n){const t=vs({color:e,theme:n});return t.color==="dimmed"?"var(--mantine-color-dimmed)":t.color==="bright"?"var(--mantine-color-bright)":t.variable?`var(${t.variable})`:t.color}function vZ(e,n){const t=vs({color:e,theme:n});return t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-text)`:oC(e,n)}function gZ(e,n){if(typeof e=="number")return ve(e);if(typeof e=="string"){const[t,i,...r]=e.split(" ").filter(o=>o.trim()!=="");let a=`${ve(t)}`;return i&&(a+=` ${i}`),r.length>0&&(a+=` ${oC(r.join(" "),n)}`),a.trim()}return e}const YT={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 yZ(e){return typeof e=="string"&&e in YT?YT[e]:e}const bZ=["h1","h2","h3","h4","h5","h6"];function wZ(e,n){return typeof e=="string"&&e in n.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&bZ.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?ve(e):e}function kZ(e){return e}const _Z=["h1","h2","h3","h4","h5","h6"];function xZ(e,n){return typeof e=="string"&&e in n.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&_Z.includes(e)?`var(--mantine-${e}-line-height)`:e}function SZ(e,n){return typeof e=="string"&&e in n.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?ve(e):e}function CZ(e){return typeof e=="number"?ve(e):e}function jZ(e,n){if(typeof e=="number")return ve(e);if(typeof e=="string"){const t=e.replace("-","");if(!(t in n.spacing))return ve(e);const i=`--mantine-spacing-${t}`;return e.startsWith("-")?`calc(var(${i}) * -1)`:`var(${i})`}return e}const Sk={color:oC,textColor:vZ,fontSize:wZ,spacing:jZ,radius:SZ,identity:kZ,size:CZ,lineHeight:xZ,fontFamily:yZ,border:gZ};function KT(e){return e.replace("(min-width: ","").replace("em)","")}function AZ({media:e,...n}){const t=Object.keys(e).sort((i,r)=>Number(KT(i))-Number(KT(r))).map(i=>({query:i,styles:e[i]}));return{...n,media:t}}function OZ(e){if(typeof e!="object"||e===null)return!1;const n=Object.keys(e);return!(n.length===1&&n[0]==="base")}function TZ(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function EZ(e){return typeof e=="object"&&e!==null?$t(e).filter(n=>n!=="base"):[]}function MZ(e,n){return typeof e=="object"&&e!==null&&n in e?e[n]:e}function DZ({styleProps:e,data:n,theme:t}){return AZ($t(e).reduce((i,r)=>{if(r==="hiddenFrom"||r==="visibleFrom"||r==="sx")return i;const a=n[r],o=Array.isArray(a.property)?a.property:[a.property],l=TZ(e[r]);if(!OZ(e[r]))return o.forEach(f=>{i.inlineStyles[f]=Sk[a.type](l,t)}),i;i.hasResponsiveStyles=!0;const u=EZ(e[r]);return o.forEach(f=>{l!=null&&(i.styles[f]=Sk[a.type](l,t)),u.forEach(h=>{const d=`(min-width: ${t.breakpoints[h]})`;i.media[d]={...i.media[d],[f]:Sk[a.type](MZ(e[r],h),t)}})}),i},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Sy(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function tL(e,n){return Array.isArray(e)?[...e].reduce((t,i)=>({...t,...tL(i,n)}),{}):typeof e=="function"?e(n):e??{}}function RZ(e){return e}const PZ=RZ;function iL(e){return e}function Pe(e){const n=e;return n.extend=iL,n.withProps=t=>{const i=r=>v.jsx(n,{...t,...r});return i.extend=n.extend,i.displayName=`WithProps(${n.displayName})`,i},n}function sp(e){return Pe(e)}function ki(e){const n=e;return n.withProps=t=>{const i=r=>v.jsx(n,{...t,...r});return i.extend=n.extend,i.displayName=`WithProps(${n.displayName})`,i},n.extend=iL,n}function rL(e){return`data-${(e.startsWith("data-")?e.slice(5):e).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function NZ(e){return Object.keys(e).reduce((n,t)=>{const i=e[t];return i===void 0||i===""||i===!1||i===null||(n[rL(t)]=e[t]),n},{})}function aL(e){return e?typeof e=="string"?{[rL(e)]:!0}:Array.isArray(e)?[...e].reduce((n,t)=>({...n,...aL(t)}),{}):NZ(e):null}function TS(e,n){return Array.isArray(e)?[...e].reduce((t,i)=>({...t,...TS(i,n)}),{}):typeof e=="function"?e(n):e??{}}function $Z({theme:e,style:n,vars:t,styleProps:i}){const r=TS(n,e),a=TS(t,e);return{...r,...a,...i}}function oL({component:e,style:n,__vars:t,className:i,variant:r,mod:a,size:o,hiddenFrom:l,visibleFrom:u,lightHidden:f,darkHidden:h,renderRoot:d,__size:p,ref:g,...b}){var q,P;const w=ci(),k=e||"div",{styleProps:_,rest:S}=Fu(b),j=(P=(q=IX())==null?void 0:q())==null?void 0:P(_.sx),T=Sy(),A=DZ({styleProps:_,theme:w,data:pZ}),O=FX(),M=O&&A.hasResponsiveStyles?mZ(A.styles,A.media):T,$={ref:g,style:$Z({theme:w,style:n,vars:t,styleProps:A.inlineStyles}),className:vn(i,j,{[M]:A.hasResponsiveStyles,"mantine-light-hidden":f,"mantine-dark-hidden":h,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${u}`]:u}),"data-variant":r,"data-size":zz(o)?void 0:o||void 0,size:p,...aL(a),...S};return v.jsxs(v.Fragment,{children:[A.hasResponsiveStyles&&v.jsx(Bf,{selector:`.${M}`,styles:A.styles,media:A.media,deduplicate:O}),typeof d=="function"?d($):v.jsx(k,{...$})]})}oL.displayName="@mantine/core/Box";const fe=PZ(oL),zZ=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function qu(){return x.use(zZ)}const[LZ,Sa]=Ar("ScrollArea.Root component was not found in tree");function bl(e,n){const t=x.useEffectEvent(n);ps(()=>{let i=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(t)});return r.observe(e),()=>{window.cancelAnimationFrame(i),r.unobserve(e)}}},[e])}function IZ(e){const{style:n,...t}=e,i=Sa(),[r,a]=x.useState(0),[o,l]=x.useState(0),u=!!(r&&o);return bl(i.scrollbarX,()=>{var h;const f=((h=i.scrollbarX)==null?void 0:h.offsetHeight)||0;i.onCornerHeightChange(f),l(f)}),bl(i.scrollbarY,()=>{var h;const f=((h=i.scrollbarY)==null?void 0:h.offsetWidth)||0;i.onCornerWidthChange(f),a(f)}),u?v.jsx("div",{...t,style:{...n,width:r,height:o}}):null}function BZ(e){const n=Sa(),t=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&t?v.jsx(IZ,{...e}):null}const FZ={scrollHideDelay:1e3,type:"hover"};function sL(e){const{type:n,scrollHideDelay:t,scrollbars:i,getStyles:r,ref:a,...o}=ye("ScrollAreaRoot",FZ,e),[l,u]=x.useState(null),[f,h]=x.useState(null),[d,p]=x.useState(null),[g,b]=x.useState(null),[w,k]=x.useState(null),[_,S]=x.useState(0),[j,T]=x.useState(0),[A,O]=x.useState(!1),[M,$]=x.useState(!1),q=Ht(a,P=>u(P));return v.jsx(LZ,{value:{type:n,scrollHideDelay:t,scrollArea:l,viewport:f,onViewportChange:h,content:d,onContentChange:p,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:A,onScrollbarXEnabledChange:O,scrollbarY:w,onScrollbarYChange:k,scrollbarYEnabled:M,onScrollbarYEnabledChange:$,onCornerWidthChange:S,onCornerHeightChange:T,getStyles:r},children:v.jsx(fe,{...o,ref:q,__vars:{"--sa-corner-width":i!=="xy"?"0px":`${_}px`,"--sa-corner-height":i!=="xy"?"0px":`${j}px`}})})}sL.displayName="@mantine/core/ScrollAreaRoot";function lL(e,n){const t=e/n;return Number.isNaN(t)?0:t}function Cy(e){const n=lL(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-t)*n;return Math.max(i,18)}function uL(e,n){return t=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const i=(n[1]-n[0])/(e[1]-e[0]);return n[0]+i*(t-e[0])}}function qZ(e,[n,t]){return Math.min(t,Math.max(n,e))}function XT(e,n,t="ltr"){const i=Cy(n),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=n.scrollbar.size-r,o=n.content-n.viewport,l=a-i,u=qZ(e,t==="ltr"?[0,o]:[o*-1,0]);return uL([0,o],[0,l])(u)}function HZ(e,n,t,i="ltr"){const r=Cy(t),a=r/2,o=n||a,l=r-o,u=t.scrollbar.paddingStart+o,f=t.scrollbar.size-t.scrollbar.paddingEnd-l,h=t.content-t.viewport,d=i==="ltr"?[0,h]:[h*-1,0];return uL([u,f],d)(e)}function cL(e,n){return e>0&&e{e==null||e(i),(t===!1||!i.defaultPrevented)&&(n==null||n(i))}}const[UZ,fL]=Ar("ScrollAreaScrollbar was not found in tree");function dL(e){const{sizes:n,hasThumb:t,onThumbChange:i,onThumbPointerUp:r,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:l,onWheelScroll:u,onResize:f,ref:h,...d}=e,p=Sa(),[g,b]=x.useState(null),w=Ht(h,$=>b($)),k=x.useRef(null),_=x.useRef(""),{viewport:S}=p,j=n.content-n.viewport,T=x.useEffectEvent(u),A=zh(o),O=_y(f,10),M=$=>{k.current&&l({x:$.clientX-k.current.left,y:$.clientY-k.current.top})};return x.useEffect(()=>{const $=q=>{const P=q.target;g!=null&&g.contains(P)&&T(q,j)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[S,g,j]),x.useEffect(A,[n,A]),bl(g,O),bl(p.content,O),v.jsx(UZ,{value:{scrollbar:g,hasThumb:t,onThumbChange:zh(i),onThumbPointerUp:zh(r),onThumbPositionChange:A,onThumbPointerDown:zh(a)},children:v.jsx("div",{...d,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Cu(e.onPointerDown,$=>{$.preventDefault(),$.button===0&&($.target.setPointerCapture($.pointerId),k.current=g.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M($))}),onPointerMove:Cu(e.onPointerMove,M),onPointerUp:Cu(e.onPointerUp,$=>{const q=$.target;q.hasPointerCapture($.pointerId)&&($.preventDefault(),q.releasePointerCapture($.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,k.current=null}})})}const hL=e=>{const{sizes:n,onSizesChange:t,style:i,ref:r,...a}=e,o=Sa(),[l,u]=x.useState(),f=x.useRef(null),h=Ht(r,f,o.onScrollbarXChange);return x.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),v.jsx(dL,{"data-orientation":"horizontal",...a,ref:h,sizes:n,style:{...i,"--sa-thumb-width":`${Cy(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(o.viewport){const g=o.viewport.scrollLeft+d.deltaX;e.onWheelScroll(g),cL(g,p)&&d.preventDefault()}},onResize:()=>{f.current&&o.viewport&&l&&t({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Yg(l.paddingLeft),paddingEnd:Yg(l.paddingRight)}})}})};hL.displayName="@mantine/core/ScrollAreaScrollbarX";function mL(e){const{sizes:n,onSizesChange:t,style:i,ref:r,...a}=e,o=Sa(),[l,u]=x.useState(),f=x.useRef(null),h=Ht(r,f,o.onScrollbarYChange);return x.useEffect(()=>{f.current&&u(window.getComputedStyle(f.current))},[]),v.jsx(dL,{...a,"data-orientation":"vertical",ref:h,sizes:n,style:{"--sa-thumb-height":`${Cy(n)}px`,...i},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(o.viewport){const g=o.viewport.scrollTop+d.deltaY;e.onWheelScroll(g),cL(g,p)&&d.preventDefault()}},onResize:()=>{f.current&&o.viewport&&l&&t({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Yg(l.paddingTop),paddingEnd:Yg(l.paddingBottom)}})}})}mL.displayName="@mantine/core/ScrollAreaScrollbarY";function jy(e){const{orientation:n="vertical",...t}=e,{dir:i}=qu(),r=Sa(),a=x.useRef(null),o=x.useRef(0),[l,u]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=lL(l.viewport,l.content),h={...t,sizes:l,onSizesChange:u,hasThumb:f>0&&f<1,onThumbChange:p=>{a.current=p},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:p=>{o.current=p}},d=(p,g)=>HZ(p,o.current,l,g);return n==="horizontal"?v.jsx(hL,{...h,onThumbPositionChange:()=>{if(r.viewport&&a.current){const p=r.viewport.scrollLeft,g=XT(p,l,i);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:p=>{r.viewport&&(r.viewport.scrollLeft=p)},onDragScroll:p=>{r.viewport&&(r.viewport.scrollLeft=d(p,i))}}):n==="vertical"?v.jsx(mL,{...h,onThumbPositionChange:()=>{if(r.viewport&&a.current){const p=r.viewport.scrollTop,g=XT(p,l);l.scrollbar.size===0?a.current.style.setProperty("--thumb-opacity","0"):a.current.style.setProperty("--thumb-opacity","1"),a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:p=>{r.viewport&&(r.viewport.scrollTop=p)},onDragScroll:p=>{r.viewport&&(r.viewport.scrollTop=d(p))}}):null}jy.displayName="@mantine/core/ScrollAreaScrollbarVisible";function sC(e){const n=Sa(),{forceMount:t,...i}=e,[r,a]=x.useState(!1),o=e.orientation==="horizontal",l=_y(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{scrollArea:o}=i;let l=0;if(o){const u=()=>{window.clearTimeout(l),a(!0)},f=()=>{l=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",u),o.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),o.removeEventListener("pointerenter",u),o.removeEventListener("pointerleave",f)}}},[i.scrollArea,i.scrollHideDelay]),n||r?v.jsx(sC,{"data-state":r?"visible":"hidden",...t}):null}pL.displayName="@mantine/core/ScrollAreaScrollbarHover";function VZ(e){const{forceMount:n,...t}=e,i=Sa(),r=e.orientation==="horizontal",[a,o]=x.useState("hidden"),l=_y(()=>o("idle"),100);return x.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>o("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay]),x.useEffect(()=>{const{viewport:u}=i,f=r?"scrollLeft":"scrollTop";if(u){let h=u[f];const d=()=>{const p=u[f];h!==p&&(o("scrolling"),l()),h=p};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[i.viewport,r,l]),n||a!=="hidden"?v.jsx(jy,{"data-state":a==="hidden"?"hidden":"visible",...t,onPointerEnter:Cu(e.onPointerEnter,()=>o("interacting")),onPointerLeave:Cu(e.onPointerLeave,()=>o("idle"))}):null}function ES(e){const{forceMount:n,...t}=e,i=Sa(),{onScrollbarXEnabledChange:r,onScrollbarYEnabledChange:a}=i,o=e.orientation==="horizontal";return x.useEffect(()=>(o?r(!0):a(!0),()=>{o?r(!1):a(!1)}),[o,r,a]),i.type==="hover"?v.jsx(pL,{...t,forceMount:n}):i.type==="scroll"?v.jsx(VZ,{...t,forceMount:n}):i.type==="auto"?v.jsx(sC,{...t,forceMount:n}):i.type==="always"?v.jsx(jy,{...t}):null}ES.displayName="@mantine/core/ScrollAreaScrollbar";function WZ(e,n=()=>{}){let t={left:e.scrollLeft,top:e.scrollTop},i=0;return(function r(){const a={left:e.scrollLeft,top:e.scrollTop},o=t.left!==a.left,l=t.top!==a.top;(o||l)&&n(),t=a,i=window.requestAnimationFrame(r)})(),()=>window.cancelAnimationFrame(i)}function vL(e){const{style:n,ref:t,...i}=e,r=Sa(),a=fL(),{onThumbPositionChange:o}=a,l=Ht(t,h=>a.onThumbChange(h)),u=x.useRef(void 0),f=_y(()=>{u.current&&(u.current(),u.current=void 0)},100);return x.useEffect(()=>{const{viewport:h}=r;if(h){const d=()=>{f(),u.current||(u.current=WZ(h,o),o())};return o(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[r.viewport,f,o]),v.jsx("div",{"data-state":a.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Cu(e.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),p=h.clientX-d.left,g=h.clientY-d.top;a.onThumbPointerDown({x:p,y:g})}),onPointerUp:Cu(e.onPointerUp,a.onThumbPointerUp)})}vL.displayName="@mantine/core/ScrollAreaThumb";function MS(e){const{forceMount:n,...t}=e,i=fL();return n||i.hasThumb?v.jsx(vL,{...t}):null}MS.displayName="@mantine/core/ScrollAreaThumb";function gL({children:e,style:n,ref:t,onWheel:i,...r}){const a=Sa(),o=Ht(t,a.onViewportChange),l=u=>{if(i==null||i(u),a.scrollbarXEnabled&&a.viewport&&u.shiftKey){const{scrollTop:f,scrollHeight:h,clientHeight:d,scrollWidth:p,clientWidth:g}=a.viewport,b=f<1,w=f>=h-d-1;p>g&&(b||w)&&u.stopPropagation()}};return v.jsx(fe,{...r,ref:o,onWheel:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...n},children:v.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})}gL.displayName="@mantine/core/ScrollAreaViewport";var lC={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function Ay(){return typeof window<"u"}function Ff(e){return yL(e)?(e.nodeName||"").toLowerCase():"#document"}function Cr(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function ko(e){var n;return(n=(yL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function yL(e){return Ay()?e instanceof Node||e instanceof Cr(e).Node:!1}function Kt(e){return Ay()?e instanceof Element||e instanceof Cr(e).Element:!1}function Ca(e){return Ay()?e instanceof HTMLElement||e instanceof Cr(e).HTMLElement:!1}function DS(e){return!Ay()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cr(e).ShadowRoot}function lp(e){const{overflow:n,overflowX:t,overflowY:i,display:r}=ka(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+t)&&r!=="inline"&&r!=="contents"}function GZ(e){return/^(table|td|th)$/.test(Ff(e))}function Oy(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const YZ=/transform|translate|scale|rotate|perspective|filter/,KZ=/paint|layout|strict|content/,lu=e=>!!e&&e!=="none";let Ck;function uC(e){const n=Kt(e)?ka(e):e;return lu(n.transform)||lu(n.translate)||lu(n.scale)||lu(n.rotate)||lu(n.perspective)||!Ty()&&(lu(n.backdropFilter)||lu(n.filter))||YZ.test(n.willChange||"")||KZ.test(n.contain||"")}function XZ(e){let n=ss(e);for(;Ca(n)&&!es(n);){if(uC(n))return n;if(Oy(n))return null;n=ss(n)}return null}function Ty(){return Ck==null&&(Ck=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ck}function es(e){return/^(html|body|#document)$/.test(Ff(e))}function ka(e){return Cr(e).getComputedStyle(e)}function Ey(e){return Kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ss(e){if(Ff(e)==="html")return e;const n=e.assignedSlot||e.parentNode||DS(e)&&e.host||ko(e);return DS(n)?n.host:n}function bL(e){const n=ss(e);return es(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ca(n)&&lp(n)?n:bL(n)}function ns(e,n,t){var i;n===void 0&&(n=[]),t===void 0&&(t=!0);const r=bL(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),o=Cr(r);if(a){const l=RS(o);return n.concat(o,o.visualViewport||[],lp(r)?r:[],l&&t?ns(l):[])}else return n.concat(r,ns(r,[],t))}function RS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ZZ=["top","right","bottom","left"],Ha=Math.min,Zi=Math.max,Kg=Math.round,Qv=Math.floor,ao=e=>({x:e,y:e}),QZ={left:"right",right:"left",bottom:"top",top:"bottom"};function PS(e,n,t){return Zi(e,Ha(n,t))}function fo(e,n){return typeof e=="function"?e(n):e}function Ua(e){return e.split("-")[0]}function qf(e){return e.split("-")[1]}function cC(e){return e==="x"?"y":"x"}function fC(e){return e==="y"?"height":"width"}function Ia(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function dC(e){return cC(Ia(e))}function JZ(e,n,t){t===void 0&&(t=!1);const i=qf(e),r=dC(e),a=fC(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(o=Xg(o)),[o,Xg(o)]}function eQ(e){const n=Xg(e);return[NS(e),n,NS(n)]}function NS(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ZT=["left","right"],QT=["right","left"],nQ=["top","bottom"],tQ=["bottom","top"];function iQ(e,n,t){switch(e){case"top":case"bottom":return t?n?QT:ZT:n?ZT:QT;case"left":case"right":return n?nQ:tQ;default:return[]}}function rQ(e,n,t,i){const r=qf(e);let a=iQ(Ua(e),t==="start",i);return r&&(a=a.map(o=>o+"-"+r),n&&(a=a.concat(a.map(NS)))),a}function Xg(e){const n=Ua(e);return QZ[n]+e.slice(n.length)}function aQ(e){return{top:0,right:0,bottom:0,left:0,...e}}function hC(e){return typeof e!="number"?aQ(e):{top:e,right:e,bottom:e,left:e}}function of(e){const{x:n,y:t,width:i,height:r}=e;return{width:i,height:r,top:t,left:n,right:n+i,bottom:t+r,x:n,y:t}}function oQ(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function sQ(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(n=>{let{brand:t,version:i}=n;return t+"/"+i}).join(" "):navigator.userAgent}function lQ(){return/apple/i.test(navigator.vendor)}function uQ(){return oQ().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function cQ(){return sQ().includes("jsdom/")}const JT="data-floating-ui-focusable",fQ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function eE(e){let n=e.activeElement;for(;((t=n)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;n=n.shadowRoot.activeElement}return n}function hm(e,n){if(!e||!n)return!1;const t=n.getRootNode==null?void 0:n.getRootNode();if(e.contains(n))return!0;if(t&&DS(t)){let i=n;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Hc(e){return"composedPath"in e?e.composedPath()[0]:e.target}function jk(e,n){if(n==null)return!1;if("composedPath"in e)return e.composedPath().includes(n);const t=e;return t.target!=null&&n.contains(t.target)}function dQ(e){return e.matches("html,body")}function yu(e){return(e==null?void 0:e.ownerDocument)||document}function hQ(e){return Ca(e)&&e.matches(fQ)}function mQ(e){if(!e||cQ())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function pQ(e){return e?e.hasAttribute(JT)?e:e.querySelector("["+JT+"]")||e:null}function Mg(e,n,t){return t===void 0&&(t=!0),e.filter(r=>{var a;return r.parentId===n&&(!t||((a=r.context)==null?void 0:a.open))}).flatMap(r=>[r,...Mg(e,r.id,t)])}function vQ(e){return"nativeEvent"in e}function $S(e,n){const t=["mouse","pen"];return t.push("",void 0),t.includes(e)}var gQ=typeof document<"u",yQ=function(){},oo=gQ?x.useLayoutEffect:yQ;const bQ={...Lz};function Jv(e){const n=x.useRef(e);return oo(()=>{n.current=e}),n}const wQ=bQ.useInsertionEffect,kQ=wQ||(e=>e());function no(e){const n=x.useRef(()=>{});return kQ(()=>{n.current=e}),x.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:o}=t,l=o.detectOverflow?o:{...o,detectOverflow:_Q},u=await(o.isRTL==null?void 0:o.isRTL(n));let f=await o.getElementRects({reference:e,floating:n,strategy:r}),{x:h,y:d}=nE(f,i,u),p=i,g=0;const b={};for(let w=0;w({name:"arrow",options:e,async fn(n){const{x:t,y:i,placement:r,rects:a,platform:o,elements:l,middlewareData:u}=n,{element:f,padding:h=0}=fo(e,n)||{};if(f==null)return{};const d=hC(h),p={x:t,y:i},g=dC(r),b=fC(g),w=await o.getDimensions(f),k=g==="y",_=k?"top":"left",S=k?"bottom":"right",j=k?"clientHeight":"clientWidth",T=a.reference[b]+a.reference[g]-p[g]-a.floating[b],A=p[g]-a.reference[g],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(f));let M=O?O[j]:0;(!M||!await(o.isElement==null?void 0:o.isElement(O)))&&(M=l.floating[j]||a.floating[b]);const $=T/2-A/2,q=M/2-w[b]/2-1,P=Ha(d[_],q),L=Ha(d[S],q),U=P,G=M-w[b]-L,B=M/2-w[b]/2+$,R=PS(U,B,G),D=!u.arrow&&qf(r)!=null&&B!==R&&a.reference[b]/2-(BB<=0)){var L,U;const B=(((L=a.flip)==null?void 0:L.index)||0)+1,R=M[B];if(R&&(!(d==="alignment"?S!==Ia(R):!1)||P.every(H=>Ia(H.placement)===S?H.overflows[0]>0:!0)))return{data:{index:B,overflows:P},reset:{placement:R}};let D=(U=P.filter(z=>z.overflows[0]<=0).sort((z,H)=>z.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!D)switch(g){case"bestFit":{var G;const z=(G=P.filter(H=>{if(O){const Y=Ia(H.placement);return Y===S||Y==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(Y=>Y>0).reduce((Y,N)=>Y+N,0)]).sort((H,Y)=>H[1]-Y[1])[0])==null?void 0:G[0];z&&(D=z);break}case"initialPlacement":D=l;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function tE(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function iE(e){return ZZ.some(n=>e[n]>=0)}const AQ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:t,platform:i}=n,{strategy:r="referenceHidden",...a}=fo(e,n);switch(r){case"referenceHidden":{const o=await i.detectOverflow(n,{...a,elementContext:"reference"}),l=tE(o,t.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:iE(l)}}}case"escaped":{const o=await i.detectOverflow(n,{...a,altBoundary:!0}),l=tE(o,t.floating);return{data:{escapedOffsets:l,escaped:iE(l)}}}default:return{}}}}};function wL(e){const n=Ha(...e.map(a=>a.left)),t=Ha(...e.map(a=>a.top)),i=Zi(...e.map(a=>a.right)),r=Zi(...e.map(a=>a.bottom));return{x:n,y:t,width:i-n,height:r-t}}function OQ(e){const n=e.slice().sort((r,a)=>r.y-a.y),t=[];let i=null;for(let r=0;ri.height/2?t.push([a]):t[t.length-1].push(a),i=a}return t.map(r=>of(wL(r)))}const TQ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(n){const{placement:t,elements:i,rects:r,platform:a,strategy:o}=n,{padding:l=2,x:u,y:f}=fo(e,n),h=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(i.reference))||[]),d=OQ(h),p=of(wL(h)),g=hC(l);function b(){if(d.length===2&&d[0].left>d[1].right&&u!=null&&f!=null)return d.find(k=>u>k.left-g.left&&uk.top-g.top&&f=2){if(Ia(t)==="y"){const P=d[0],L=d[d.length-1],U=Ua(t)==="top",G=P.top,B=L.bottom,R=U?P.left:L.left,D=U?P.right:L.right,z=D-R,H=B-G;return{top:G,bottom:B,left:R,right:D,width:z,height:H,x:R,y:G}}const k=Ua(t)==="left",_=Zi(...d.map(P=>P.right)),S=Ha(...d.map(P=>P.left)),j=d.filter(P=>k?P.left===S:P.right===_),T=j[0].top,A=j[j.length-1].bottom,O=S,M=_,$=M-O,q=A-T;return{top:T,bottom:A,left:O,right:M,width:$,height:q,x:O,y:T}}return p}const w=await a.getElementRects({reference:{getBoundingClientRect:b},floating:i.floating,strategy:o});return r.reference.x!==w.reference.x||r.reference.y!==w.reference.y||r.reference.width!==w.reference.width||r.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},kL=new Set(["left","top"]);async function EQ(e,n){const{placement:t,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Ua(t),l=qf(t),u=Ia(t)==="y",f=kL.has(o)?-1:1,h=a&&u?-1:1,d=fo(n,e);let{mainAxis:p,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),u?{x:g*h,y:p*f}:{x:p*f,y:g*h}}const MQ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,i;const{x:r,y:a,placement:o,middlewareData:l}=n,u=await EQ(n,e);return o===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:r+u.x,y:a+u.y,data:{...u,placement:o}}}}},DQ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:t,y:i,placement:r,platform:a}=n,{mainAxis:o=!0,crossAxis:l=!1,limiter:u={fn:_=>{let{x:S,y:j}=_;return{x:S,y:j}}},...f}=fo(e,n),h={x:t,y:i},d=await a.detectOverflow(n,f),p=Ia(Ua(r)),g=cC(p);let b=h[g],w=h[p];if(o){const _=g==="y"?"top":"left",S=g==="y"?"bottom":"right",j=b+d[_],T=b-d[S];b=PS(j,b,T)}if(l){const _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",j=w+d[_],T=w-d[S];w=PS(j,w,T)}const k=u.fn({...n,[g]:b,[p]:w});return{...k,data:{x:k.x-t,y:k.y-i,enabled:{[g]:o,[p]:l}}}}}},RQ=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:t,y:i,placement:r,rects:a,middlewareData:o}=n,{offset:l=0,mainAxis:u=!0,crossAxis:f=!0}=fo(e,n),h={x:t,y:i},d=Ia(r),p=cC(d);let g=h[p],b=h[d];const w=fo(l,n),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const j=p==="y"?"height":"width",T=a.reference[p]-a.floating[j]+k.mainAxis,A=a.reference[p]+a.reference[j]-k.mainAxis;gA&&(g=A)}if(f){var _,S;const j=p==="y"?"width":"height",T=kL.has(Ua(r)),A=a.reference[d]-a.floating[j]+(T&&((_=o.offset)==null?void 0:_[d])||0)+(T?0:k.crossAxis),O=a.reference[d]+a.reference[j]+(T?0:((S=o.offset)==null?void 0:S[d])||0)-(T?k.crossAxis:0);bO&&(b=O)}return{[p]:g,[d]:b}}}},PQ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var t,i;const{placement:r,rects:a,platform:o,elements:l}=n,{apply:u=()=>{},...f}=fo(e,n),h=await o.detectOverflow(n,f),d=Ua(r),p=qf(r),g=Ia(r)==="y",{width:b,height:w}=a.floating;let k,_;d==="top"||d==="bottom"?(k=d,_=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(_=d,k=p==="end"?"top":"bottom");const S=w-h.top-h.bottom,j=b-h.left-h.right,T=Ha(w-h[k],S),A=Ha(b-h[_],j),O=!n.middlewareData.shift;let M=T,$=A;if((t=n.middlewareData.shift)!=null&&t.enabled.x&&($=j),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(M=S),O&&!p){const P=Zi(h.left,0),L=Zi(h.right,0),U=Zi(h.top,0),G=Zi(h.bottom,0);g?$=b-2*(P!==0||L!==0?P+L:Zi(h.left,h.right)):M=w-2*(U!==0||G!==0?U+G:Zi(h.top,h.bottom))}await u({...n,availableWidth:$,availableHeight:M});const q=await o.getDimensions(l.floating);return b!==q.width||w!==q.height?{reset:{rects:!0}}:{}}}};function _L(e){const n=ka(e);let t=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const r=Ca(e),a=r?e.offsetWidth:t,o=r?e.offsetHeight:i,l=Kg(t)!==a||Kg(i)!==o;return l&&(t=a,i=o),{width:t,height:i,$:l}}function mC(e){return Kt(e)?e:e.contextElement}function Xc(e){const n=mC(e);if(!Ca(n))return ao(1);const t=n.getBoundingClientRect(),{width:i,height:r,$:a}=_L(n);let o=(a?Kg(t.width):t.width)/i,l=(a?Kg(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const NQ=ao(0);function xL(e){const n=Cr(e);return!Ty()||!n.visualViewport?NQ:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function $Q(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==Cr(e)?!1:n}function Ou(e,n,t,i){n===void 0&&(n=!1),t===void 0&&(t=!1);const r=e.getBoundingClientRect(),a=mC(e);let o=ao(1);n&&(i?Kt(i)&&(o=Xc(i)):o=Xc(e));const l=$Q(a,t,i)?xL(a):ao(0);let u=(r.left+l.x)/o.x,f=(r.top+l.y)/o.y,h=r.width/o.x,d=r.height/o.y;if(a){const p=Cr(a),g=i&&Kt(i)?Cr(i):i;let b=p,w=RS(b);for(;w&&i&&g!==b;){const k=Xc(w),_=w.getBoundingClientRect(),S=ka(w),j=_.left+(w.clientLeft+parseFloat(S.paddingLeft))*k.x,T=_.top+(w.clientTop+parseFloat(S.paddingTop))*k.y;u*=k.x,f*=k.y,h*=k.x,d*=k.y,u+=j,f+=T,b=Cr(w),w=RS(b)}}return of({width:h,height:d,x:u,y:f})}function My(e,n){const t=Ey(e).scrollLeft;return n?n.left+t:Ou(ko(e)).left+t}function SL(e,n){const t=e.getBoundingClientRect(),i=t.left+n.scrollLeft-My(e,t),r=t.top+n.scrollTop;return{x:i,y:r}}function zQ(e){let{elements:n,rect:t,offsetParent:i,strategy:r}=e;const a=r==="fixed",o=ko(i),l=n?Oy(n.floating):!1;if(i===o||l&&a)return t;let u={scrollLeft:0,scrollTop:0},f=ao(1);const h=ao(0),d=Ca(i);if((d||!d&&!a)&&((Ff(i)!=="body"||lp(o))&&(u=Ey(i)),d)){const g=Ou(i);f=Xc(i),h.x=g.x+i.clientLeft,h.y=g.y+i.clientTop}const p=o&&!d&&!a?SL(o,u):ao(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:t.y*f.y-u.scrollTop*f.y+h.y+p.y}}function LQ(e){return Array.from(e.getClientRects())}function IQ(e){const n=ko(e),t=Ey(e),i=e.ownerDocument.body,r=Zi(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),a=Zi(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let o=-t.scrollLeft+My(e);const l=-t.scrollTop;return ka(i).direction==="rtl"&&(o+=Zi(n.clientWidth,i.clientWidth)-r),{width:r,height:a,x:o,y:l}}const rE=25;function BQ(e,n){const t=Cr(e),i=ko(e),r=t.visualViewport;let a=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){a=r.width,o=r.height;const h=Ty();(!h||h&&n==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}const f=My(i);if(f<=0){const h=i.ownerDocument,d=h.body,p=getComputedStyle(d),g=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(i.clientWidth-d.clientWidth-g);b<=rE&&(a-=b)}else f<=rE&&(a+=f);return{width:a,height:o,x:l,y:u}}function FQ(e,n){const t=Ou(e,!0,n==="fixed"),i=t.top+e.clientTop,r=t.left+e.clientLeft,a=Ca(e)?Xc(e):ao(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,u=r*a.x,f=i*a.y;return{width:o,height:l,x:u,y:f}}function aE(e,n,t){let i;if(n==="viewport")i=BQ(e,t);else if(n==="document")i=IQ(ko(e));else if(Kt(n))i=FQ(n,t);else{const r=xL(e);i={x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}return of(i)}function CL(e,n){const t=ss(e);return t===n||!Kt(t)||es(t)?!1:ka(t).position==="fixed"||CL(t,n)}function qQ(e,n){const t=n.get(e);if(t)return t;let i=ns(e,[],!1).filter(l=>Kt(l)&&Ff(l)!=="body"),r=null;const a=ka(e).position==="fixed";let o=a?ss(e):e;for(;Kt(o)&&!es(o);){const l=ka(o),u=uC(o);!u&&l.position==="fixed"&&(r=null),(a?!u&&!r:!u&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||lp(o)&&!u&&CL(e,o))?i=i.filter(h=>h!==o):r=l,o=ss(o)}return n.set(e,i),i}function HQ(e){let{element:n,boundary:t,rootBoundary:i,strategy:r}=e;const o=[...t==="clippingAncestors"?Oy(n)?[]:qQ(n,this._c):[].concat(t),i],l=aE(n,o[0],r);let u=l.top,f=l.right,h=l.bottom,d=l.left;for(let p=1;p{o(!1,1e-7)},1e3)}M===1&&!AL(f,e.getBoundingClientRect())&&o(),T=!1}try{t=new IntersectionObserver(A,{...j,root:r.ownerDocument})}catch{t=new IntersectionObserver(A,j)}t.observe(e)}return o(!0),a}function zS(e,n,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,f=mC(e),h=r||a?[...f?ns(f):[],...n?ns(n):[]]:[];h.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});const d=f&&l?KQ(f,t):null;let p=-1,g=null;o&&(g=new ResizeObserver(_=>{let[S]=_;S&&S.target===f&&g&&n&&(g.unobserve(n),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var j;(j=g)==null||j.observe(n)})),t()}),f&&!u&&g.observe(f),n&&g.observe(n));let b,w=u?Ou(e):null;u&&k();function k(){const _=Ou(e);w&&!AL(w,_)&&t(),w=_,b=requestAnimationFrame(k)}return t(),()=>{var _;h.forEach(S=>{r&&S.removeEventListener("scroll",t),a&&S.removeEventListener("resize",t)}),d==null||d(),(_=g)==null||_.disconnect(),g=null,u&&cancelAnimationFrame(b)}}const XQ=MQ,ZQ=DQ,QQ=jQ,JQ=PQ,eJ=AQ,sE=CQ,nJ=TQ,tJ=RQ,iJ=(e,n,t)=>{const i=new Map,r={platform:YQ,...t},a={...r.platform,_c:i};return SQ(e,n,{...r,platform:a})};var rJ=typeof document<"u",aJ=function(){},Dg=rJ?x.useLayoutEffect:aJ;function Zg(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,i,r;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(i=t;i--!==0;)if(!Zg(e[i],n[i]))return!1;return!0}if(r=Object.keys(e),t=r.length,t!==Object.keys(n).length)return!1;for(i=t;i--!==0;)if(!{}.hasOwnProperty.call(n,r[i]))return!1;for(i=t;i--!==0;){const a=r[i];if(!(a==="_owner"&&e.$$typeof)&&!Zg(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function OL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lE(e,n){const t=OL(e);return Math.round(n*t)/t}function Ok(e){const n=x.useRef(e);return Dg(()=>{n.current=e}),n}function oJ(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:u,open:f}=e,[h,d]=x.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=x.useState(i);Zg(p,i)||g(i);const[b,w]=x.useState(null),[k,_]=x.useState(null),S=x.useCallback(H=>{H!==O.current&&(O.current=H,w(H))},[]),j=x.useCallback(H=>{H!==M.current&&(M.current=H,_(H))},[]),T=a||b,A=o||k,O=x.useRef(null),M=x.useRef(null),$=x.useRef(h),q=u!=null,P=Ok(u),L=Ok(r),U=Ok(f),G=x.useCallback(()=>{if(!O.current||!M.current)return;const H={placement:n,strategy:t,middleware:p};L.current&&(H.platform=L.current),iJ(O.current,M.current,H).then(Y=>{const N={...Y,isPositioned:U.current!==!1};B.current&&!Zg($.current,N)&&($.current=N,sl.flushSync(()=>{d(N)}))})},[p,n,t,L,U]);Dg(()=>{f===!1&&$.current.isPositioned&&($.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[f]);const B=x.useRef(!1);Dg(()=>(B.current=!0,()=>{B.current=!1}),[]),Dg(()=>{if(T&&(O.current=T),A&&(M.current=A),T&&A){if(P.current)return P.current(T,A,G);G()}},[T,A,G,P,q]);const R=x.useMemo(()=>({reference:O,floating:M,setReference:S,setFloating:j}),[S,j]),D=x.useMemo(()=>({reference:T,floating:A}),[T,A]),z=x.useMemo(()=>{const H={position:t,left:0,top:0};if(!D.floating)return H;const Y=lE(D.floating,h.x),N=lE(D.floating,h.y);return l?{...H,transform:"translate("+Y+"px, "+N+"px)",...OL(D.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:Y,top:N}},[t,l,D.floating,h.x,h.y]);return x.useMemo(()=>({...h,update:G,refs:R,elements:D,floatingStyles:z}),[h,G,R,D,z])}const sJ=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:i,padding:r}=typeof e=="function"?e(t):e;return i&&n(i)?i.current!=null?sE({element:i.current,padding:r}).fn(t):{}:i?sE({element:i,padding:r}).fn(t):{}}}},TL=(e,n)=>{const t=XQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},pC=(e,n)=>{const t=ZQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},uE=(e,n)=>({fn:tJ(e).fn,options:[e,n]}),Qg=(e,n)=>{const t=QQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},lJ=(e,n)=>{const t=JQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},uJ=(e,n)=>{const t=eJ(e);return{name:t.name,fn:t.fn,options:[e,n]}},Kh=(e,n)=>{const t=nJ(e);return{name:t.name,fn:t.fn,options:[e,n]}},EL=(e,n)=>{const t=sJ(e);return{name:t.name,fn:t.fn,options:[e,n]}};function ML(e){const n=x.useRef(void 0),t=x.useCallback(i=>{const r=e.map(a=>{if(a!=null){if(typeof a=="function"){const o=a,l=o(i);return typeof l=="function"?l:()=>{o(null)}}return a.current=i,()=>{a.current=null}}});return()=>{r.forEach(a=>a==null?void 0:a())}},e);return x.useMemo(()=>e.every(i=>i==null)?null:i=>{n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=t(i))},e)}const cJ="data-floating-ui-focusable",cE="active",fE="selected",fJ={...Lz};let dE=!1,dJ=0;const hE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dJ++;function hJ(){const[e,n]=x.useState(()=>dE?hE():void 0);return oo(()=>{e==null&&n(hE())},[]),x.useEffect(()=>{dE=!0},[]),e}const mJ=fJ.useId,DL=mJ||hJ;function pJ(){const e=new Map;return{emit(n,t){var i;(i=e.get(n))==null||i.forEach(r=>r(t))},on(n,t){e.has(n)||e.set(n,new Set),e.get(n).add(t)},off(n,t){var i;(i=e.get(n))==null||i.delete(t)}}}const vJ=x.createContext(null),gJ=x.createContext(null),vC=()=>{var e;return((e=x.useContext(vJ))==null?void 0:e.id)||null},gC=()=>x.useContext(gJ);function yC(e){return"data-floating-ui-"+e}function da(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const mE=yC("safe-polygon");function Rg(e,n,t){if(t&&!$S(t))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const i=e();return typeof i=="number"?i:i==null?void 0:i[n]}return e==null?void 0:e[n]}function Tk(e){return typeof e=="function"?e():e}function RL(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,dataRef:r,events:a,elements:o}=e,{enabled:l=!0,delay:u=0,handleClose:f=null,mouseOnly:h=!1,restMs:d=0,move:p=!0}=n,g=gC(),b=vC(),w=Jv(f),k=Jv(u),_=Jv(t),S=Jv(d),j=x.useRef(),T=x.useRef(-1),A=x.useRef(),O=x.useRef(-1),M=x.useRef(!0),$=x.useRef(!1),q=x.useRef(()=>{}),P=x.useRef(!1),L=no(()=>{var z;const H=(z=r.current.openEvent)==null?void 0:z.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"});x.useEffect(()=>{if(!l)return;function z(H){let{open:Y}=H;Y||(da(T),da(O),M.current=!0,P.current=!1)}return a.on("openchange",z),()=>{a.off("openchange",z)}},[l,a]),x.useEffect(()=>{if(!l||!w.current||!t)return;function z(Y){L()&&i(!1,Y,"hover")}const H=yu(o.floating).documentElement;return H.addEventListener("mouseleave",z),()=>{H.removeEventListener("mouseleave",z)}},[o.floating,t,i,l,w,L]);const U=x.useCallback(function(z,H,Y){H===void 0&&(H=!0),Y===void 0&&(Y="hover");const N=Rg(k.current,"close",j.current);N&&!A.current?(da(T),T.current=window.setTimeout(()=>i(!1,z,Y),N)):H&&(da(T),i(!1,z,Y))},[k,i]),G=no(()=>{q.current(),A.current=void 0}),B=no(()=>{if($.current){const z=yu(o.floating).body;z.style.pointerEvents="",z.removeAttribute(mE),$.current=!1}}),R=no(()=>r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1);x.useEffect(()=>{if(!l)return;function z(V){if(da(T),M.current=!1,h&&!$S(j.current)||Tk(S.current)>0&&!Rg(k.current,"open"))return;const I=Rg(k.current,"open",j.current);I?T.current=window.setTimeout(()=>{_.current||i(!0,V,"hover")},I):t||i(!0,V,"hover")}function H(V){if(R()){B();return}q.current();const I=yu(o.floating);if(da(O),P.current=!1,w.current&&r.current.floatingContext){t||da(T),A.current=w.current({...r.current.floatingContext,tree:g,x:V.clientX,y:V.clientY,onClose(){B(),G(),R()||U(V,!0,"safe-polygon")}});const ie=A.current;I.addEventListener("mousemove",ie),q.current=()=>{I.removeEventListener("mousemove",ie)};return}(j.current==="touch"?!hm(o.floating,V.relatedTarget):!0)&&U(V)}function Y(V){R()||r.current.floatingContext&&(w.current==null||w.current({...r.current.floatingContext,tree:g,x:V.clientX,y:V.clientY,onClose(){B(),G(),R()||U(V)}})(V))}function N(){da(T)}function W(V){R()||U(V,!1)}if(Kt(o.domReference)){const V=o.domReference,I=o.floating;return t&&V.addEventListener("mouseleave",Y),p&&V.addEventListener("mousemove",z,{once:!0}),V.addEventListener("mouseenter",z),V.addEventListener("mouseleave",H),I&&(I.addEventListener("mouseleave",Y),I.addEventListener("mouseenter",N),I.addEventListener("mouseleave",W)),()=>{t&&V.removeEventListener("mouseleave",Y),p&&V.removeEventListener("mousemove",z),V.removeEventListener("mouseenter",z),V.removeEventListener("mouseleave",H),I&&(I.removeEventListener("mouseleave",Y),I.removeEventListener("mouseenter",N),I.removeEventListener("mouseleave",W))}}},[o,l,e,h,p,U,G,B,i,t,_,g,k,w,r,R,S]),oo(()=>{var z;if(l&&t&&(z=w.current)!=null&&(z=z.__options)!=null&&z.blockPointerEvents&&L()){$.current=!0;const Y=o.floating;if(Kt(o.domReference)&&Y){var H;const N=yu(o.floating).body;N.setAttribute(mE,"");const W=o.domReference,V=g==null||(H=g.nodesRef.current.find(I=>I.id===b))==null||(H=H.context)==null?void 0:H.elements.floating;return V&&(V.style.pointerEvents=""),N.style.pointerEvents="none",W.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{N.style.pointerEvents="",W.style.pointerEvents="",Y.style.pointerEvents=""}}}},[l,t,b,o,g,w,L]),oo(()=>{t||(j.current=void 0,P.current=!1,G(),B())},[t,G,B]),x.useEffect(()=>()=>{G(),da(T),da(O),B()},[l,o.domReference,G,B]);const D=x.useMemo(()=>{function z(H){j.current=H.pointerType}return{onPointerDown:z,onPointerEnter:z,onMouseMove(H){const{nativeEvent:Y}=H;function N(){!M.current&&!_.current&&i(!0,Y,"hover")}h&&!$S(j.current)||t||Tk(S.current)===0||P.current&&H.movementX**2+H.movementY**2<2||(da(O),j.current==="touch"?N():(P.current=!0,O.current=window.setTimeout(N,Tk(S.current))))}}},[h,i,t,_,S]);return x.useMemo(()=>l?{reference:D}:{},[l,D])}const LS=()=>{},PL=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:LS,setState:LS,isInstantPhase:!1}),yJ=()=>x.useContext(PL);function NL(e){const{children:n,delay:t,timeoutMs:i=0}=e,[r,a]=x.useReducer((u,f)=>({...u,...f}),{delay:t,timeoutMs:i,initialDelay:t,currentId:null,isInstantPhase:!1}),o=x.useRef(null),l=x.useCallback(u=>{a({currentId:u})},[]);return oo(()=>{r.currentId?o.current===null?o.current=r.currentId:r.isInstantPhase||a({isInstantPhase:!0}):(r.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[r.currentId,r.isInstantPhase]),v.jsx(PL.Provider,{value:x.useMemo(()=>({...r,setState:a,setCurrentId:l}),[r,l]),children:n})}function $L(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,floatingId:r}=e,{id:a,enabled:o=!0}=n,l=a??r,u=yJ(),{currentId:f,setCurrentId:h,initialDelay:d,setState:p,timeoutMs:g}=u;return oo(()=>{o&&f&&(p({delay:{open:1,close:Rg(d,"close")}}),f!==l&&i(!1))},[o,l,i,p,f,d]),oo(()=>{function b(){i(!1),p({delay:d,currentId:null})}if(o&&f&&!t&&f===l){if(g){const w=window.setTimeout(b,g);return()=>{clearTimeout(w)}}b()}},[o,t,p,f,l,i,d,g]),oo(()=>{o&&(h===LS||!t||h(l))},[o,t,h,l]),u}const bJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},wJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},pE=e=>{var n,t;return{escapeKey:typeof e=="boolean"?e:(n=e==null?void 0:e.escapeKey)!=null?n:!1,outsidePress:typeof e=="boolean"?e:(t=e==null?void 0:e.outsidePress)!=null?t:!0}};function zL(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,elements:r,dataRef:a}=e,{enabled:o=!0,escapeKey:l=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:g,capture:b}=n,w=gC(),k=no(typeof u=="function"?u:()=>!1),_=typeof u=="function"?k:u,S=x.useRef(!1),{escapeKey:j,outsidePress:T}=pE(g),{escapeKey:A,outsidePress:O}=pE(b),M=x.useRef(!1),$=no(B=>{var R;if(!t||!o||!l||B.key!=="Escape"||M.current)return;const D=(R=a.current.floatingContext)==null?void 0:R.nodeId,z=w?Mg(w.nodesRef.current,D):[];if(!j&&(B.stopPropagation(),z.length>0)){let H=!0;if(z.forEach(Y=>{var N;if((N=Y.context)!=null&&N.open&&!Y.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}i(!1,vQ(B)?B.nativeEvent:B,"escape-key")}),q=no(B=>{var R;const D=()=>{var z;$(B),(z=Hc(B))==null||z.removeEventListener("keydown",D)};(R=Hc(B))==null||R.addEventListener("keydown",D)}),P=no(B=>{var R;const D=a.current.insideReactTree;a.current.insideReactTree=!1;const z=S.current;if(S.current=!1,f==="click"&&z||D||typeof _=="function"&&!_(B))return;const H=Hc(B),Y="["+yC("inert")+"]",N=yu(r.floating).querySelectorAll(Y);let W=Kt(H)?H:null;for(;W&&!es(W);){const ie=ss(W);if(es(ie)||!Kt(ie))break;W=ie}if(N.length&&Kt(H)&&!dQ(H)&&!hm(H,r.floating)&&Array.from(N).every(ie=>!hm(W,ie)))return;if(Ca(H)&&G){const ie=es(H),re=ka(H),Z=/auto|scroll/,le=ie||Z.test(re.overflowX),ee=ie||Z.test(re.overflowY),se=le&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,ke=ee&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,te=re.direction==="rtl",$e=ke&&(te?B.offsetX<=H.offsetWidth-H.clientWidth:B.offsetX>H.clientWidth),xe=se&&B.offsetY>H.clientHeight;if($e||xe)return}const V=(R=a.current.floatingContext)==null?void 0:R.nodeId,I=w&&Mg(w.nodesRef.current,V).some(ie=>{var re;return jk(B,(re=ie.context)==null?void 0:re.elements.floating)});if(jk(B,r.floating)||jk(B,r.domReference)||I)return;const Q=w?Mg(w.nodesRef.current,V):[];if(Q.length>0){let ie=!0;if(Q.forEach(re=>{var Z;if((Z=re.context)!=null&&Z.open&&!re.context.dataRef.current.__outsidePressBubbles){ie=!1;return}}),!ie)return}i(!1,B,"outside-press")}),L=no(B=>{var R;const D=()=>{var z;P(B),(z=Hc(B))==null||z.removeEventListener(f,D)};(R=Hc(B))==null||R.addEventListener(f,D)});x.useEffect(()=>{if(!t||!o)return;a.current.__escapeKeyBubbles=j,a.current.__outsidePressBubbles=T;let B=-1;function R(N){i(!1,N,"ancestor-scroll")}function D(){window.clearTimeout(B),M.current=!0}function z(){B=window.setTimeout(()=>{M.current=!1},Ty()?5:0)}const H=yu(r.floating);l&&(H.addEventListener("keydown",A?q:$,A),H.addEventListener("compositionstart",D),H.addEventListener("compositionend",z)),_&&H.addEventListener(f,O?L:P,O);let Y=[];return p&&(Kt(r.domReference)&&(Y=ns(r.domReference)),Kt(r.floating)&&(Y=Y.concat(ns(r.floating))),!Kt(r.reference)&&r.reference&&r.reference.contextElement&&(Y=Y.concat(ns(r.reference.contextElement)))),Y=Y.filter(N=>{var W;return N!==((W=H.defaultView)==null?void 0:W.visualViewport)}),Y.forEach(N=>{N.addEventListener("scroll",R,{passive:!0})}),()=>{l&&(H.removeEventListener("keydown",A?q:$,A),H.removeEventListener("compositionstart",D),H.removeEventListener("compositionend",z)),_&&H.removeEventListener(f,O?L:P,O),Y.forEach(N=>{N.removeEventListener("scroll",R)}),window.clearTimeout(B)}},[a,r,l,_,f,t,i,p,o,j,T,$,A,q,P,O,L]),x.useEffect(()=>{a.current.insideReactTree=!1},[a,_,f]);const U=x.useMemo(()=>({onKeyDown:$,...h&&{[bJ[d]]:B=>{i(!1,B.nativeEvent,"reference-press")},...d!=="click"&&{onClick(B){i(!1,B.nativeEvent,"reference-press")}}}}),[$,i,h,d]),G=x.useMemo(()=>{function B(R){R.button===0&&(S.current=!0)}return{onKeyDown:$,onMouseDown:B,onMouseUp:B,[wJ[f]]:()=>{a.current.insideReactTree=!0}}},[$,f,a]);return x.useMemo(()=>o?{reference:U,floating:G}:{},[o,U,G])}function kJ(e){const{open:n=!1,onOpenChange:t,elements:i}=e,r=DL(),a=x.useRef({}),[o]=x.useState(()=>pJ()),l=vC()!=null,[u,f]=x.useState(i.reference),h=no((g,b,w)=>{a.current.openEvent=g?b:void 0,o.emit("openchange",{open:g,event:b,reason:w,nested:l}),t==null||t(g,b,w)}),d=x.useMemo(()=>({setPositionReference:f}),[]),p=x.useMemo(()=>({reference:u||i.reference||null,floating:i.floating||null,domReference:i.reference}),[u,i.reference,i.floating]);return x.useMemo(()=>({dataRef:a,open:n,onOpenChange:h,elements:p,events:o,floatingId:r,refs:d}),[n,h,p,o,r,d])}function Dy(e){e===void 0&&(e={});const{nodeId:n}=e,t=kJ({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||t,r=i.elements,[a,o]=x.useState(null),[l,u]=x.useState(null),h=(r==null?void 0:r.domReference)||a,d=x.useRef(null),p=gC();oo(()=>{h&&(d.current=h)},[h]);const g=oJ({...e,elements:{...r,...l&&{reference:l}}}),b=x.useCallback(j=>{const T=Kt(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;u(T),g.refs.setReference(T)},[g.refs]),w=x.useCallback(j=>{(Kt(j)||j===null)&&(d.current=j,o(j)),(Kt(g.refs.reference.current)||g.refs.reference.current===null||j!==null&&!Kt(j))&&g.refs.setReference(j)},[g.refs]),k=x.useMemo(()=>({...g.refs,setReference:w,setPositionReference:b,domReference:d}),[g.refs,w,b]),_=x.useMemo(()=>({...g.elements,domReference:h}),[g.elements,h]),S=x.useMemo(()=>({...g,...i,refs:k,elements:_,nodeId:n}),[g,k,_,n,i]);return oo(()=>{i.dataRef.current.floatingContext=S;const j=p==null?void 0:p.nodesRef.current.find(T=>T.id===n);j&&(j.context=S)}),x.useMemo(()=>({...g,context:S,refs:k,elements:_}),[g,k,_,S])}function Ek(){return uQ()&&lQ()}function _J(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,events:r,dataRef:a,elements:o}=e,{enabled:l=!0,visibleOnly:u=!0}=n,f=x.useRef(!1),h=x.useRef(-1),d=x.useRef(!0);x.useEffect(()=>{if(!l)return;const g=Cr(o.domReference);function b(){!t&&Ca(o.domReference)&&o.domReference===eE(yu(o.domReference))&&(f.current=!0)}function w(){d.current=!0}function k(){d.current=!1}return g.addEventListener("blur",b),Ek()&&(g.addEventListener("keydown",w,!0),g.addEventListener("pointerdown",k,!0)),()=>{g.removeEventListener("blur",b),Ek()&&(g.removeEventListener("keydown",w,!0),g.removeEventListener("pointerdown",k,!0))}},[o.domReference,t,l]),x.useEffect(()=>{if(!l)return;function g(b){let{reason:w}=b;(w==="reference-press"||w==="escape-key")&&(f.current=!0)}return r.on("openchange",g),()=>{r.off("openchange",g)}},[r,l]),x.useEffect(()=>()=>{da(h)},[]);const p=x.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(g){if(f.current)return;const b=Hc(g.nativeEvent);if(u&&Kt(b)){if(Ek()&&!g.relatedTarget){if(!d.current&&!hQ(b))return}else if(!mQ(b))return}i(!0,g.nativeEvent,"focus")},onBlur(g){f.current=!1;const b=g.relatedTarget,w=g.nativeEvent,k=Kt(b)&&b.hasAttribute(yC("focus-guard"))&&b.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var _;const S=eE(o.domReference?o.domReference.ownerDocument:document);!b&&S===o.domReference||hm((_=a.current.floatingContext)==null?void 0:_.refs.floating.current,S)||hm(o.domReference,S)||k||i(!1,w,"focus")})}}),[a,o.domReference,i,u]);return x.useMemo(()=>l?{reference:p}:{},[l,p])}function Mk(e,n,t){const i=new Map,r=t==="item";let a=e;if(r&&e){const{[cE]:o,[fE]:l,...u}=e;a=u}return{...t==="floating"&&{tabIndex:-1,[cJ]:""},...a,...n.map(o=>{const l=o?o[t]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(u=>{let[f,h]=u;if(!(r&&[cE,fE].includes(f)))if(f.indexOf("on")===0){if(i.has(f)||i.set(f,[]),typeof h=="function"){var d;(d=i.get(f))==null||d.push(h),o[f]=function(){for(var p,g=arguments.length,b=new Array(g),w=0;wk(...b)).find(k=>k!==void 0)}}}else o[f]=h}),o),{})}}function LL(e){e===void 0&&(e=[]);const n=e.map(l=>l==null?void 0:l.reference),t=e.map(l=>l==null?void 0:l.floating),i=e.map(l=>l==null?void 0:l.item),r=x.useCallback(l=>Mk(l,e,"reference"),n),a=x.useCallback(l=>Mk(l,e,"floating"),t),o=x.useCallback(l=>Mk(l,e,"item"),i);return x.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:o}),[r,a,o])}const xJ=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function IL(e,n){var t,i;n===void 0&&(n={});const{open:r,elements:a,floatingId:o}=e,{enabled:l=!0,role:u="dialog"}=n,f=DL(),h=((t=a.domReference)==null?void 0:t.id)||f,d=x.useMemo(()=>{var S;return((S=pQ(a.floating))==null?void 0:S.id)||o},[a.floating,o]),p=(i=xJ.get(u))!=null?i:u,b=vC()!=null,w=x.useMemo(()=>p==="tooltip"||u==="label"?{["aria-"+(u==="label"?"labelledby":"describedby")]:r?d:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":r?d:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:h},...p==="menu"&&b&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[p,d,b,r,h,u]),k=x.useMemo(()=>{const S={id:d,...p&&{role:p}};return p==="tooltip"||u==="label"?S:{...S,...p==="menu"&&{"aria-labelledby":h}}},[p,d,h,u]),_=x.useCallback(S=>{let{active:j,selected:T}=S;const A={role:"option",...j&&{id:d+"-fui-option"}};switch(u){case"select":case"combobox":return{...A,"aria-selected":T}}return{}},[d,u]);return x.useMemo(()=>l?{reference:w,floating:k,item:_}:{},[l,w,k,_])}const BL={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},FL=(e,{scrollbarSize:n,overscrollBehavior:t,scrollbars:i})=>{let r=t;return t&&i&&(i==="x"?r=`${t} auto`:i==="y"&&(r=`auto ${t}`)),{root:{"--scrollarea-scrollbar-size":ve(n),"--scrollarea-over-scroll-behavior":r}}},ur=Pe(e=>{const n=ye("ScrollArea",BL,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,scrollbarSize:l,vars:u,type:f,scrollHideDelay:h,viewportProps:d,viewportRef:p,onScrollPositionChange:g,children:b,offsetScrollbars:w,scrollbars:k,onBottomReached:_,onTopReached:S,onLeftReached:j,onRightReached:T,overscrollBehavior:A,startScrollPosition:O,attributes:M,...$}=n,[q,P]=x.useState(!1),[L,U]=x.useState(!1),[G,B]=x.useState(!1),R=x.useRef(!0),D=x.useRef(!1),z=x.useRef(!0),H=x.useRef(!1),Y=Ze({name:"ScrollArea",props:n,classes:lC,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:M,vars:u,varsResolver:FL}),N=x.useRef(null),[W,V]=x.useState(null),I=ML([p,N,x.useCallback(Q=>{V(ie=>ie===Q?ie:Q)},[])]);return bl(w==="present"?W:null,()=>{const Q=N.current;Q&&(U(Q.scrollHeight>Q.clientHeight),B(Q.scrollWidth>Q.clientWidth))}),ps(()=>{O&&N.current&&N.current.scrollTo({left:O.x??0,top:O.y??0})},[]),v.jsxs(sL,{getStyles:Y,type:f==="never"?"always":f,scrollHideDelay:h,scrollbars:k,...Y("root"),...$,children:[v.jsx(gL,{...d,...Y("viewport",{style:d==null?void 0:d.style}),ref:I,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!G?"true":void 0,"data-vertical-hidden":w==="present"&&!L?"true":void 0,onScroll:Q=>{var Ae;(Ae=d==null?void 0:d.onScroll)==null||Ae.call(d,Q),g==null||g({x:Q.currentTarget.scrollLeft,y:Q.currentTarget.scrollTop});const{scrollTop:ie,scrollHeight:re,clientHeight:Z,scrollLeft:le,scrollWidth:ee,clientWidth:se}=Q.currentTarget,ke=ie-(re-Z)>=-.8,te=ie===0;ke&&!D.current&&(_==null||_()),te&&!R.current&&(S==null||S()),D.current=ke,R.current=te;const $e=le-(ee-se)>=-.8,xe=le===0;$e&&!H.current&&(T==null||T()),xe&&!z.current&&(j==null||j()),H.current=$e,z.current=xe},children:b}),(k==="xy"||k==="x")&&v.jsx(ES,{...Y("scrollbar"),orientation:"horizontal","data-hidden":f==="never"||w==="present"&&!G?!0:void 0,forceMount:!0,onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:v.jsx(MS,{...Y("thumb")})}),(k==="xy"||k==="y")&&v.jsx(ES,{...Y("scrollbar"),orientation:"vertical","data-hidden":f==="never"||w==="present"&&!L?!0:void 0,forceMount:!0,onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:v.jsx(MS,{...Y("thumb")})}),v.jsx(BZ,{...Y("corner"),"data-hovered":q||void 0,"data-hidden":f==="never"||void 0})]})});ur.displayName="@mantine/core/ScrollArea";const bC=Pe(e=>{const{children:n,classNames:t,styles:i,scrollbarSize:r,scrollHideDelay:a,type:o,dir:l,offsetScrollbars:u,overscrollBehavior:f,viewportRef:h,onScrollPositionChange:d,unstyled:p,variant:g,viewportProps:b,scrollbars:w,style:k,vars:_,onBottomReached:S,onTopReached:j,startScrollPosition:T,onOverflowChange:A,...O}=ye("ScrollAreaAutosize",BL,e),M=x.useRef(null),[$,q]=x.useState(null),P=ML([h,M,x.useCallback(B=>{q(R=>R===B?R:B)},[])]),L=x.useRef(!1),U=x.useRef(!1),G=x.useEffectEvent(()=>{const B=M.current;if(!B||!A)return;const R=B.scrollHeight>B.clientHeight;R!==L.current&&(U.current?A(R):(U.current=!0,R&&A(!0)),L.current=R)});return bl(A?$:null,G),v.jsx(fe,{...O,variant:g,style:[{display:"flex",overflow:"hidden"},k],children:v.jsx(fe,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...w==="y"&&{minWidth:0},...w==="x"&&{minHeight:0},...w==="xy"&&{minWidth:0,minHeight:0},...w===!1&&{minWidth:0,minHeight:0}},children:v.jsx(ur,{classNames:t,styles:i,scrollHideDelay:a,scrollbarSize:r,type:o,dir:l,offsetScrollbars:u,overscrollBehavior:f,viewportRef:P,onScrollPositionChange:d,unstyled:p,variant:g,viewportProps:b,vars:_,scrollbars:w,onBottomReached:S,onTopReached:j,startScrollPosition:T,"data-autosize":"true",children:n})})})});ur.classes=lC;ur.varsResolver=FL;bC.displayName="@mantine/core/ScrollAreaAutosize";bC.classes=lC;ur.Autosize=bC;var qL={root:"m_87cf2631"};const SJ={__staticSelector:"UnstyledButton"},Et=ki(e=>{const n=ye("UnstyledButton",SJ,e),{className:t,component:i="button",__staticSelector:r,unstyled:a,classNames:o,styles:l,style:u,attributes:f,...h}=n;return v.jsx(fe,{...Ze({name:r,props:n,classes:qL,className:t,style:u,classNames:o,styles:l,unstyled:a,attributes:f})("root",{focusable:!0}),component:i,type:i==="button"?"button":void 0,...h})});Et.classes=qL;Et.displayName="@mantine/core/UnstyledButton";var HL={root:"m_515a97f8"};const wC=Pe(e=>{const n=ye("VisuallyHidden",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,attributes:u,...f}=n;return v.jsx(fe,{component:"span",...Ze({name:"VisuallyHidden",classes:HL,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:u})("root"),...f})});wC.classes=HL;wC.displayName="@mantine/core/VisuallyHidden";var UL={root:"m_1b7284a3"};const VL=(e,{radius:n,shadow:t})=>({root:{"--paper-radius":n===void 0?void 0:qt(n),"--paper-shadow":Q6(t)}}),Tt=ki(e=>{const n=ye("Paper",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,withBorder:l,vars:u,radius:f,shadow:h,variant:d,mod:p,attributes:g,...b}=n,w=Ze({name:"Paper",props:n,classes:UL,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,vars:u,varsResolver:VL});return v.jsx(fe,{mod:[{"data-with-border":l},p],...w("root"),variant:d,...b})});Tt.classes=UL;Tt.varsResolver=VL;Tt.displayName="@mantine/core/Paper";function vE(e,n,t,i){return e==="center"||i==="center"?{top:n}:e==="end"?{bottom:t}:e==="start"?{top:t}:{}}function gE(e,n,t,i,r){return e==="center"||i==="center"?{left:n}:e==="end"?{[r==="ltr"?"right":"left"]:t}:e==="start"?{[r==="ltr"?"left":"right"]:t}:{}}const CJ={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function jJ({position:e,arrowSize:n,arrowOffset:t,arrowRadius:i,arrowPosition:r,arrowX:a,arrowY:o,dir:l}){const[u,f="center"]=e.split("-"),h={width:n,height:n,transform:"rotate(45deg)",position:"absolute",[CJ[u]]:i},d=-n/2;return u==="left"?{...h,...vE(f,o,t,r),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:u==="right"?{...h,...vE(f,o,t,r),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:u==="top"?{...h,...gE(f,a,t,r,l),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:u==="bottom"?{...h,...gE(f,a,t,r,l),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function Jg({position:e,arrowSize:n,arrowOffset:t,arrowRadius:i,arrowPosition:r,visible:a,arrowX:o,arrowY:l,style:u,...f}){const{dir:h}=qu();return a?v.jsx("div",{...f,style:{...u,...jJ({position:e,arrowSize:n,arrowOffset:t,arrowRadius:i,arrowPosition:r,dir:h,arrowX:o,arrowY:l})}}):null}Jg.displayName="@mantine/core/FloatingArrow";function WL(e,n){if(e==="rtl"&&(n.includes("right")||n.includes("left"))){const[t,i]=n.split("-"),r=t==="right"?"left":"right";return i===void 0?r:`${r}-${i}`}return n}function GL({open:e,close:n,openDelay:t,closeDelay:i}){const r=x.useRef(-1),a=x.useRef(-1),o=()=>{window.clearTimeout(r.current),window.clearTimeout(a.current)},l=()=>{o(),t===0||t===void 0?e():r.current=window.setTimeout(e,t)},u=()=>{o(),i===0||i===void 0?n():a.current=window.setTimeout(n,i)};return x.useEffect(()=>o,[]),{openDropdown:l,closeDropdown:u}}var YL={root:"m_9814e45f"};const AJ={zIndex:xa("modal")},KL=(e,{gradient:n,color:t,backgroundOpacity:i,blur:r,radius:a,zIndex:o})=>({root:{"--overlay-bg":n||(t!==void 0||i!==void 0)&&nl(t||"#000",i??.6)||void 0,"--overlay-filter":r?`blur(${ve(r)})`:void 0,"--overlay-radius":a===void 0?void 0:qt(a),"--overlay-z-index":o==null?void 0:o.toString()}}),up=ki(e=>{const n=ye("Overlay",AJ,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,fixed:u,center:f,children:h,radius:d,zIndex:p,gradient:g,blur:b,color:w,backgroundOpacity:k,mod:_,attributes:S,...j}=n;return v.jsx(fe,{...Ze({name:"Overlay",props:n,classes:YL,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:S,vars:l,varsResolver:KL})("root"),mod:[{center:f,fixed:u},_],...j,children:h})});up.classes=YL;up.varsResolver=KL;up.displayName="@mantine/core/Overlay";function Dk(e){const n=document.createElement("div");return n.setAttribute("data-portal","true"),typeof e.className=="string"&&n.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(n.style,e.style),typeof e.id=="string"&&n.setAttribute("id",e.id),n}function OJ({target:e,reuseTargetNode:n,...t}){if(e)return typeof e=="string"?document.querySelector(e)||Dk(t):e;if(n){const i=document.querySelector("[data-mantine-shared-portal-node]");if(i)return i;const r=Dk(t);return r.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(r),r}return Dk(t)}const TJ={reuseTargetNode:!0},XL=Pe(e=>{const{children:n,target:t,reuseTargetNode:i,ref:r,...a}=ye("Portal",TJ,e),[o,l]=x.useState(!1),u=x.useRef(null);return ps(()=>(l(!0),u.current=OJ({target:t,reuseTargetNode:i,...a}),cm(r,u.current),!t&&!i&&u.current&&document.body.appendChild(u.current),()=>{!t&&!i&&u.current&&document.body.removeChild(u.current)}),[t]),!o||!u.current?null:sl.createPortal(v.jsx(v.Fragment,{children:n}),u.current)});XL.displayName="@mantine/core/Portal";const wl=Pe(({withinPortal:e=!0,children:n,...t})=>op()==="test"||!e?v.jsx(v.Fragment,{children:n}):v.jsx(XL,{...t,children:n}));wl.displayName="@mantine/core/OptionalPortal";const bh=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),eg={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:{...bh("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...bh("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...bh("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...bh("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...bh("top"),common:{transformOrigin:"top right"}}},yE={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function bE({transition:e,state:n,duration:t,timingFunction:i}){const r={WebkitBackfaceVisibility:"hidden",transitionDuration:`${t}ms`,transitionTimingFunction:i};return typeof e=="string"?e in eg?{transitionProperty:eg[e].transitionProperty,...r,...eg[e].common,...eg[e][yE[n]]}:{}:{transitionProperty:e.transitionProperty,...r,...e.common,...e[yE[n]]}}function EJ({duration:e,exitDuration:n,timingFunction:t,mounted:i,onEnter:r,onExit:a,onEntered:o,onExited:l,enterDelay:u,exitDelay:f}){const h=ci(),d=eC(),p=h.respectReducedMotion?d:!1,[g,b]=x.useState(p?0:e),[w,k]=x.useState(i?"entered":"exited"),_=x.useRef(-1),S=x.useRef(-1),j=x.useRef(-1);function T(){window.clearTimeout(_.current),window.clearTimeout(S.current),cancelAnimationFrame(j.current)}const A=M=>{T();const $=M?r:a,q=M?o:l,P=p?0:M?e:n;b(P),P===0?(typeof $=="function"&&$(),typeof q=="function"&&q(),k(M?"entered":"exited")):j.current=requestAnimationFrame(()=>{Lh.flushSync(()=>{k(M?"pre-entering":"pre-exiting")}),j.current=requestAnimationFrame(()=>{typeof $=="function"&&$(),k(M?"entering":"exiting"),_.current=window.setTimeout(()=>{typeof q=="function"&&q(),k(M?"entered":"exited")},P)})})},O=M=>{if(T(),typeof(M?u:f)!="number"){A(M);return}S.current=window.setTimeout(()=>{A(M)},M?u:f)};return os(()=>{O(i)},[i]),x.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:w,transitionTimingFunction:t||"ease"}}function ls({keepMounted:e,transition:n="fade",duration:t=250,exitDuration:i=t,mounted:r,children:a,timingFunction:o="ease",onExit:l,onEntered:u,onEnter:f,onExited:h,enterDelay:d,exitDelay:p}){const g=op(),{transitionDuration:b,transitionStatus:w,transitionTimingFunction:k}=EJ({mounted:r,exitDuration:i,duration:t,timingFunction:o,onExit:l,onEntered:u,onEnter:f,onExited:h,enterDelay:d,exitDelay:p});if(g==="test")return r?v.jsx(v.Fragment,{children:a({})}):e?a({display:"none"}):null;if(b===0)return e?v.jsx(x.Activity,{mode:r?"visible":"hidden",children:a({})}):r?v.jsx(v.Fragment,{children:a({})}):null;const _=w==="exited";return e?v.jsx(x.Activity,{mode:_?"hidden":"visible",children:a(_?{}:bE({transition:n,duration:b,state:w,timingFunction:k}))}):_?null:v.jsx(v.Fragment,{children:a(bE({transition:n,duration:b,state:w,timingFunction:k}))})}ls.displayName="@mantine/core/Transition";const MJ={duration:100,transition:"fade"};function wE(e,n){return{...MJ,...n,...e}}const[DJ,ZL]=Ar("Popover component was not found in the tree");function Ry({children:e,active:n=!0,refProp:t="ref",innerRef:i}){const r=Ht(vX(n),i),a=Cl(e);return a?x.cloneElement(a,{[t]:r}):e}function QL(e){return v.jsx(wC,{tabIndex:-1,"data-autofocus":!0,...e})}Ry.displayName="@mantine/core/FocusTrap";QL.displayName="@mantine/core/FocusTrapInitialFocus";Ry.InitialFocus=QL;var JL={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const kC=Pe(e=>{var k,_,S,j;const n=ye("PopoverDropdown",null,e),{className:t,style:i,vars:r,children:a,onKeyDownCapture:o,variant:l,classNames:u,styles:f,ref:h,...d}=n,p=ZL(),g=Iz({opened:p.opened,shouldReturnFocus:p.returnFocus}),b=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=Ht(h,p.floating);return p.disabled?null:v.jsx(wl,{...p.portalProps,withinPortal:p.withinPortal,children:v.jsx(ls,{mounted:p.opened,...p.transitionProps,transition:((k=p.transitionProps)==null?void 0:k.transition)||"fade",duration:((_=p.transitionProps)==null?void 0:_.duration)??150,keepMounted:p.keepMounted,exitDuration:typeof((S=p.transitionProps)==null?void 0:S.exitDuration)=="number"?p.transitionProps.exitDuration:(j=p.transitionProps)==null?void 0:j.duration,children:T=>{var A;return v.jsx(Ry,{active:p.trapFocus&&p.opened,innerRef:w,children:v.jsxs(fe,{...b,...d,variant:l,onKeyDownCapture:iX(()=>{var O,M;(O=p.onClose)==null||O.call(p),(M=p.onDismiss)==null||M.call(p)},{active:p.closeOnEscape,onTrigger:g,onKeyDown:o}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:t,props:n,classNames:u,styles:f,style:[{...T,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:ve(p.width),...p.referenceHidden?{display:"none"}:null},(A=p.resolvedStyles)==null?void 0:A.dropdown,f==null?void 0:f.dropdown,i]}),children:[a,v.jsx(Jg,{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:n,classNames:u,styles:f})})]})})}})})});kC.classes=JL;kC.displayName="@mantine/core/PopoverDropdown";const RJ={refProp:"ref",popupType:"dialog"},eI=Pe(e=>{const{children:n,refProp:t,popupType:i,ref:r,...a}=ye("PopoverTarget",RJ,e),o=Cl(n);if(!o)throw new 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");const l=a,u=ZL(),f=Ht(u.reference,xy(o),r),h=u.withRoles?{"aria-haspopup":i,"aria-expanded":u.opened,"aria-controls":u.opened?u.getDropdownId():void 0,id:u.getTargetId()}:{},d=o.props;return x.cloneElement(o,{...l,...h,...u.targetProps,className:vn(u.targetProps.className,l.className,d.className),[t]:f,...u.controlled?null:{onClick:p=>{var g;u.onToggle(),(g=d.onClick)==null||g.call(d,p)}}})});eI.displayName="@mantine/core/PopoverTarget";function PJ(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function NJ(e,n,t){const i=PJ(e.middlewares),r=[TL(e.offset),uJ()];return e.dropdownVisible&&t!=="test"&&e.preventPositionChangeWhenVisible&&(i.flip=!1),i.flip&&r.push(typeof i.flip=="boolean"?Qg():Qg(i.flip)),i.shift&&r.push(pC(typeof i.shift=="boolean"?{limiter:uE(),padding:5}:{limiter:uE(),padding:5,...i.shift})),i.inline&&r.push(typeof i.inline=="boolean"?Kh():Kh(i.inline)),r.push(EL({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width==="target")&&r.push(lJ({...typeof i.size=="boolean"?{}:i.size,apply({rects:a,availableWidth:o,availableHeight:l,...u}){var h;const f=((h=n().refs.floating.current)==null?void 0:h.style)??{};i.size&&(typeof i.size=="object"&&i.size.apply?i.size.apply({rects:a,availableWidth:o,availableHeight:l,...u}):Object.assign(f,{maxWidth:`${o}px`,maxHeight:`${l}px`})),e.width==="target"&&Object.assign(f,{width:`${a.reference.width}px`})}})),r}function $J(e){const n=op(),[t,i]=Ai({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=x.useRef(t),a=()=>{t&&!e.disabled&&i(!1)},o=()=>{e.disabled||i(!t)},l=Dy({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:NJ(e,()=>l,n),whileElementsMounted:e.keepMounted?void 0:zS});return x.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&t)return zS(l.refs.reference.current,l.refs.floating.current,l.update)},[t,l.update]),os(()=>{var u;(u=e.onPositionChange)==null||u.call(e,l.placement),e.positionRef.current=l.placement},[l.placement,e.preventPositionChangeWhenVisible]),os(()=>{var u,f;t!==r.current&&(t?(f=e.onOpen)==null||f.call(e):(u=e.onClose)==null||u.call(e)),r.current=t},[t,e.onClose,e.onOpen]),ps(()=>{let u=-1;return t&&(u=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(u)}},[t,e.position]),{floating:l,controlled:typeof e.opened=="boolean",opened:t,onClose:a,onToggle:o}}const zJ={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,clickOutsideEvents:["mousedown","touchstart"],zIndex:xa("popover"),__staticSelector:"Popover",width:"max-content"},nI=(e,{radius:n,shadow:t})=>({dropdown:{"--popover-radius":n===void 0?void 0:qt(n),"--popover-shadow":Q6(t)}});function Sn(e){var an,pn,Dn,bn,sn,nn,$n;const n=ye("Popover",zJ,e),{children:t,position:i,offset:r,onPositionChange:a,opened:o,transitionProps:l,onExitTransitionEnd:u,onEnterTransitionEnd:f,width:h,middlewares:d,withArrow:p,arrowSize:g,arrowOffset:b,arrowRadius:w,arrowPosition:k,unstyled:_,classNames:S,styles:j,closeOnClickOutside:T,withinPortal:A,portalProps:O,closeOnEscape:M,clickOutsideEvents:$,trapFocus:q,onClose:P,onDismiss:L,onOpen:U,onChange:G,zIndex:B,radius:R,shadow:D,id:z,defaultOpened:H,__staticSelector:Y,withRoles:N,disabled:W,returnFocus:V,variant:I,keepMounted:Q,vars:ie,floatingStrategy:re,withOverlay:Z,overlayProps:le,hideDetached:ee,attributes:se,preventPositionChangeWhenVisible:ke,...te}=n,$e=Ze({name:Y,props:n,classes:JL,classNames:S,styles:j,unstyled:_,attributes:se,rootSelector:"dropdown",vars:ie,varsResolver:nI}),{resolvedStyles:xe}=Wi({classNames:S,styles:j,props:n}),[Ae,ze]=x.useState(o??H??!1),we=x.useRef(i),Ce=x.useRef(null),[Ne,he]=x.useState(null),[He,Ye]=x.useState(null),{dir:We}=qu(),Qe=op(),Je=Pi(z),oe=$J({middlewares:d,width:h,position:WL(We,i),offset:typeof r=="number"?r+(p?g/2:0):r,arrowRef:Ce,arrowOffset:b,onPositionChange:a,opened:o,defaultOpened:H,onChange:G,onOpen:U,onClose:P,onDismiss:L,strategy:re,dropdownVisible:Ae,setDropdownVisible:ze,positionRef:we,disabled:W,preventPositionChangeWhenVisible:ke,keepMounted:Q});sX(()=>{T&&(oe.onClose(),L==null||L())},$,[Ne,He]);const be=x.useCallback(De=>{he(De),oe.floating.refs.setReference(De)},[oe.floating.refs.setReference]),Ke=x.useCallback(De=>{Ye(De),oe.floating.refs.setFloating(De)},[oe.floating.refs.setFloating]),en=x.useCallback(()=>{var De;(De=l==null?void 0:l.onExited)==null||De.call(l),u==null||u(),ze(!1),ke||(we.current=i)},[l==null?void 0:l.onExited,u,ke,i]),je=x.useCallback(()=>{var De;(De=l==null?void 0:l.onEntered)==null||De.call(l),f==null||f()},[l==null?void 0:l.onEntered,f]);return v.jsxs(DJ,{value:{returnFocus:V,disabled:W,controlled:oe.controlled,reference:be,floating:Ke,x:oe.floating.x,y:oe.floating.y,arrowX:(Dn=(pn=(an=oe.floating)==null?void 0:an.middlewareData)==null?void 0:pn.arrow)==null?void 0:Dn.x,arrowY:(nn=(sn=(bn=oe.floating)==null?void 0:bn.middlewareData)==null?void 0:sn.arrow)==null?void 0:nn.y,opened:oe.opened,arrowRef:Ce,transitionProps:{...l,onExited:en,onEntered:je},width:h,withArrow:p,arrowSize:g,arrowOffset:b,arrowRadius:w,arrowPosition:k,placement:oe.floating.placement,trapFocus:q,withinPortal:A,portalProps:O,zIndex:B,radius:R,shadow:D,closeOnEscape:M,onDismiss:L,onClose:oe.onClose,onToggle:oe.onToggle,getTargetId:()=>Je,getDropdownId:()=>`${Je}-dropdown`,withRoles:N,targetProps:te,__staticSelector:Y,classNames:S,styles:j,unstyled:_,variant:I,keepMounted:Q,getStyles:$e,resolvedStyles:xe,floatingStrategy:re,referenceHidden:ee&&Qe!=="test"?($n=oe.floating.middlewareData.hide)==null?void 0:$n.referenceHidden:!1},children:[t,Z&&v.jsx(ls,{transition:"fade",mounted:oe.opened,duration:(l==null?void 0:l.duration)||250,exitDuration:(l==null?void 0:l.exitDuration)||250,children:De=>v.jsx(wl,{withinPortal:A,children:v.jsx(up,{...le,...$e("overlay",{className:le==null?void 0:le.className,style:[De,le==null?void 0:le.style]})})})})]})}Sn.Target=eI;Sn.Dropdown=kC;Sn.varsResolver=nI;Sn.displayName="@mantine/core/Popover";Sn.extend=e=>e;Sn.withProps=e=>{const n=t=>v.jsx(Sn,{...e,...t});return n.extend=Sn.extend,n.displayName=`WithProps(${Sn.displayName})`,n};var Ba={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"};const tI=({className:e,...n})=>v.jsxs(fe,{component:"span",className:vn(Ba.barsLoader,e),...n,children:[v.jsx("span",{className:Ba.bar}),v.jsx("span",{className:Ba.bar}),v.jsx("span",{className:Ba.bar})]});tI.displayName="@mantine/core/Bars";const iI=({className:e,...n})=>v.jsxs(fe,{component:"span",className:vn(Ba.dotsLoader,e),...n,children:[v.jsx("span",{className:Ba.dot}),v.jsx("span",{className:Ba.dot}),v.jsx("span",{className:Ba.dot})]});iI.displayName="@mantine/core/Dots";const rI=({className:e,...n})=>v.jsx(fe,{component:"span",className:vn(Ba.ovalLoader,e),...n});rI.displayName="@mantine/core/Oval";const aI={bars:tI,oval:rI,dots:iI},LJ={loaders:aI,type:"oval"},oI=(e,{size:n,color:t})=>({root:{"--loader-size":Ln(n,"loader-size"),"--loader-color":t?ft(t,e):void 0}}),Zt=Pe(e=>{const n=ye("Loader",LJ,e),{size:t,color:i,type:r,vars:a,className:o,style:l,classNames:u,styles:f,unstyled:h,loaders:d,variant:p,children:g,attributes:b,...w}=n,k=Ze({name:"Loader",props:n,classes:Ba,className:o,style:l,classNames:u,styles:f,unstyled:h,attributes:b,vars:a,varsResolver:oI});return g?v.jsx(fe,{...k("root"),...w,children:g}):v.jsx(fe,{...k("root"),component:d[r],variant:p,size:t,...w})});Zt.defaultLoaders=aI;Zt.classes=Ba;Zt.varsResolver=oI;Zt.displayName="@mantine/core/Loader";var Hf={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const kE={orientation:"horizontal"},sI=(e,{borderWidth:n})=>({group:{"--ai-border-width":ve(n)}}),Py=Pe(e=>{const n=ye("ActionIconGroup",kE,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,orientation:l,vars:u,borderWidth:f,variant:h,mod:d,attributes:p,...g}=ye("ActionIconGroup",kE,e);return v.jsx(fe,{...Ze({name:"ActionIconGroup",props:n,classes:Hf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:p,vars:u,varsResolver:sI,rootSelector:"group"})("group"),variant:h,mod:[{"data-orientation":l},d],role:"group",...g})});Py.classes=Hf;Py.varsResolver=sI;Py.displayName="@mantine/core/ActionIconGroup";const lI=(e,{radius:n,color:t,gradient:i,variant:r,autoContrast:a,size:o})=>{const l=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:a});return{groupSection:{"--section-height":Ln(o,"section-height"),"--section-padding-x":Ln(o,"section-padding-x"),"--section-fz":ai(o),"--section-radius":n===void 0?void 0:qt(n),"--section-bg":t||r?l.background:void 0,"--section-color":l.color,"--section-bd":t||r?l.border:void 0}}},Ny=Pe(e=>{const n=ye("ActionIconGroupSection",null,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,vars:l,variant:u,gradient:f,radius:h,autoContrast:d,attributes:p,...g}=n;return v.jsx(fe,{...Ze({name:"ActionIconGroupSection",props:n,classes:Hf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:p,vars:l,varsResolver:lI,rootSelector:"groupSection"})("groupSection"),variant:u,...g})});Ny.classes=Hf;Ny.varsResolver=lI;Ny.displayName="@mantine/core/ActionIconGroupSection";const uI=(e,{size:n,radius:t,variant:i,gradient:r,color:a,autoContrast:o})=>{const l=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:r,variant:i||"filled",autoContrast:o});return{root:{"--ai-size":Ln(n,"ai-size"),"--ai-radius":t===void 0?void 0:qt(t),"--ai-bg":a||i?l.background:void 0,"--ai-hover":a||i?l.hover:void 0,"--ai-hover-color":a||i?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":a||i?l.border:void 0}}},Jn=ki(e=>{const n=ye("ActionIcon",null,e),{className:t,unstyled:i,variant:r,classNames:a,styles:o,style:l,loading:u,loaderProps:f,size:h,color:d,radius:p,__staticSelector:g,gradient:b,vars:w,children:k,disabled:_,"data-disabled":S,autoContrast:j,mod:T,attributes:A,...O}=n,M=Ze({name:["ActionIcon",g],props:n,className:t,style:l,classes:Hf,classNames:a,styles:o,unstyled:i,attributes:A,vars:w,varsResolver:uI});return v.jsxs(Et,{...M("root",{active:!_&&!u&&!S}),...O,unstyled:i,variant:r,size:h,disabled:_||u,mod:[{loading:u,disabled:_||S},T],children:[typeof u=="boolean"&&v.jsx(ls,{mounted:u,transition:"slide-down",duration:150,children:$=>v.jsx(fe,{component:"span",...M("loader",{style:$}),"aria-hidden":!0,children:v.jsx(Zt,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...f})})}),v.jsx(fe,{component:"span",mod:{loading:u},...M("icon"),children:k})]})});Jn.classes=Hf;Jn.varsResolver=uI;Jn.displayName="@mantine/core/ActionIcon";Jn.Group=Py;Jn.GroupSection=Ny;function cI({size:e="var(--cb-icon-size, 70%)",style:n,...t}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:e,height:e},...t,children:v.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"})})}cI.displayName="@mantine/core/CloseIcon";var fI={root:"m_86a44da5","root--subtle":"m_220c80f2"};const IJ={variant:"subtle"},dI=(e,{size:n,radius:t,iconSize:i})=>({root:{"--cb-size":Ln(n,"cb-size"),"--cb-radius":t===void 0?void 0:qt(t),"--cb-icon-size":ve(i)}}),jl=ki(e=>{const n=ye("CloseButton",IJ,e),{iconSize:t,children:i,vars:r,radius:a,className:o,classNames:l,style:u,styles:f,unstyled:h,"data-disabled":d,disabled:p,variant:g,icon:b,mod:w,attributes:k,__staticSelector:_,...S}=n,j=Ze({name:_||"CloseButton",props:n,className:o,style:u,classes:fI,classNames:l,styles:f,unstyled:h,attributes:k,vars:r,varsResolver:dI});return v.jsxs(Et,{...S,unstyled:h,variant:g,disabled:p,mod:[{disabled:p||d},w],...j("root",{variant:g,active:!p&&!d}),children:[b||v.jsx(cI,{}),i]})});jl.classes=fI;jl.varsResolver=dI;jl.displayName="@mantine/core/CloseButton";function BJ(e){return x.Children.toArray(e).filter(Boolean)}var hI={root:"m_4081bf90"};const FJ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},mI=(e,{grow:n,preventGrowOverflow:t,gap:i,align:r,justify:a,wrap:o},{childWidth:l})=>({root:{"--group-child-width":n&&t?l:void 0,"--group-gap":Yt(i),"--group-align":r,"--group-justify":a,"--group-wrap":o}}),Ee=Pe(e=>{const n=ye("Group",FJ,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,children:l,gap:u,align:f,justify:h,wrap:d,grow:p,preventGrowOverflow:g,vars:b,variant:w,__size:k,mod:_,attributes:S,...j}=n,T=BJ(l),A=T.length,O=Yt(u??"md");return v.jsx(fe,{...Ze({name:"Group",props:n,stylesCtx:{childWidth:`calc(${100/A}% - (${O} - ${O} / ${A}))`},className:i,style:r,classes:hI,classNames:t,styles:a,unstyled:o,attributes:S,vars:b,varsResolver:mI})("root"),variant:w,mod:[{grow:p},_],size:k,...j,children:T})});Ee.classes=hI;Ee.varsResolver=mI;Ee.displayName="@mantine/core/Group";const[qJ,gs]=Ar("ModalBase component was not found in tree");function HJ({opened:e,transitionDuration:n}){const[t,i]=x.useState(e),r=x.useRef(-1),a=eC()?0:n;return x.useEffect(()=>(e?(i(!0),window.clearTimeout(r.current)):a===0?i(!1):r.current=window.setTimeout(()=>i(!1),a),()=>window.clearTimeout(r.current)),[e,a]),t}function UJ({id:e,transitionProps:n,opened:t,trapFocus:i,closeOnEscape:r,onClose:a,returnFocus:o}){const l=Pi(e),[u,f]=x.useState(!1),[h,d]=x.useState(!1),p=HJ({opened:t,transitionDuration:typeof(n==null?void 0:n.duration)=="number"?n==null?void 0:n.duration:200});return Hz("keydown",g=>{var b;g.key==="Escape"&&r&&!g.isComposing&&t&&((b=g.target)==null?void 0:b.getAttribute("data-mantine-stop-propagation"))!=="true"&&a()},{capture:!0}),Iz({opened:t,shouldReturnFocus:i&&o}),{_id:l,titleMounted:u,bodyMounted:h,shouldLockScroll:p,setTitleMounted:f,setBodyMounted:d}}var to=function(){return to=Object.assign||function(n){for(var t,i=1,r=arguments.length;i"u")return see;var n=lee(e),t=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-t+n[2]-n[0])}},cee=yI(),Zc="data-scroll-locked",fee=function(e,n,t,i){var r=e.left,a=e.top,o=e.right,l=e.gap;return t===void 0&&(t="margin"),` +${o?`${l("light")}{${o}}`:""}`}function Zv({theme:e,color:n,colorScheme:t,name:i=n,withColorValues:r=!0}){if(!e.colors[n])return{};if(t==="light"){const l=dm(e,"light"),u={[`--mantine-color-${i}-text`]:`var(--mantine-color-${i}-filled)`,[`--mantine-color-${i}-filled`]:`var(--mantine-color-${i}-${l})`,[`--mantine-color-${i}-filled-hover`]:`var(--mantine-color-${i}-${l===9?8:l+1})`,[`--mantine-color-${i}-light`]:`var(--mantine-color-${i}-1)`,[`--mantine-color-${i}-light-hover`]:`var(--mantine-color-${i}-2)`,[`--mantine-color-${i}-light-color`]:`var(--mantine-color-${i}-9)`,[`--mantine-color-${i}-outline`]:`var(--mantine-color-${i}-${l})`,[`--mantine-color-${i}-outline-hover`]:UT(e.colors[n][l],.05)};return r?{[`--mantine-color-${i}-0`]:e.colors[n][0],[`--mantine-color-${i}-1`]:e.colors[n][1],[`--mantine-color-${i}-2`]:e.colors[n][2],[`--mantine-color-${i}-3`]:e.colors[n][3],[`--mantine-color-${i}-4`]:e.colors[n][4],[`--mantine-color-${i}-5`]:e.colors[n][5],[`--mantine-color-${i}-6`]:e.colors[n][6],[`--mantine-color-${i}-7`]:e.colors[n][7],[`--mantine-color-${i}-8`]:e.colors[n][8],[`--mantine-color-${i}-9`]:e.colors[n][9],...u}:u}const a=dm(e,"dark"),o={[`--mantine-color-${i}-text`]:`var(--mantine-color-${i}-4)`,[`--mantine-color-${i}-filled`]:`var(--mantine-color-${i}-${a})`,[`--mantine-color-${i}-filled-hover`]:`var(--mantine-color-${i}-${a===9?8:a+1})`,[`--mantine-color-${i}-light`]:vu(e.colors[n][9],.5),[`--mantine-color-${i}-light-hover`]:vu(e.colors[n][9],.3),[`--mantine-color-${i}-light-color`]:`var(--mantine-color-${i}-0)`,[`--mantine-color-${i}-outline`]:`var(--mantine-color-${i}-${Math.max(a-4,0)})`,[`--mantine-color-${i}-outline-hover`]:UT(e.colors[n][Math.max(a-4,0)],.05)};return r?{[`--mantine-color-${i}-0`]:e.colors[n][0],[`--mantine-color-${i}-1`]:e.colors[n][1],[`--mantine-color-${i}-2`]:e.colors[n][2],[`--mantine-color-${i}-3`]:e.colors[n][3],[`--mantine-color-${i}-4`]:e.colors[n][4],[`--mantine-color-${i}-5`]:e.colors[n][5],[`--mantine-color-${i}-6`]:e.colors[n][6],[`--mantine-color-${i}-7`]:e.colors[n][7],[`--mantine-color-${i}-8`]:e.colors[n][8],[`--mantine-color-${i}-9`]:e.colors[n][9],...o}:o}function GX(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function su(e,n,t){zt(n).forEach(i=>Object.assign(e,{[`--mantine-${t}-${i}`]:n[i]}))}const eL=e=>{const n=dm(e,"light"),t=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:ve(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":t,"--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":VT(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-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${n})`,"--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":VT(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-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)"}};su(i.variables,e.breakpoints,"breakpoint"),su(i.variables,e.spacing,"spacing"),su(i.variables,e.fontSizes,"font-size"),su(i.variables,e.lineHeights,"line-height"),su(i.variables,e.shadows,"shadow"),su(i.variables,e.radius,"radius"),su(i.variables,e.fontWeights,"font-weight"),e.colors[e.primaryColor].forEach((a,o)=>{i.variables[`--mantine-primary-color-${o}`]=`var(--mantine-color-${e.primaryColor}-${o})`}),zt(e.colors).forEach(a=>{const o=e.colors[a];if(GX(o)){Object.assign(i.light,Zv({theme:e,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),Object.assign(i.dark,Zv({theme:e,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));return}o.forEach((l,u)=>{i.variables[`--mantine-color-${a}-${u}`]=l}),Object.assign(i.light,Zv({theme:e,color:a,colorScheme:"light",withColorValues:!1})),Object.assign(i.dark,Zv({theme:e,color:a,colorScheme:"dark",withColorValues:!1}))});const r=e.headings.sizes;return zt(r).forEach(a=>{i.variables[`--mantine-${a}-font-size`]=r[a].fontSize,i.variables[`--mantine-${a}-line-height`]=r[a].lineHeight,i.variables[`--mantine-${a}-font-weight`]=r[a].fontWeight||e.headings.fontWeight}),i};function YX(){const e=ci(),n=tC(),t=zt(e.breakpoints).reduce((i,r)=>{const a=e.breakpoints[r].includes("px"),o=lm(e.breakpoints[r]);return`${i}@media (max-width: ${a?`${o-.1}px`:Vg(o-.1)}) {.mantine-visible-from-${r} {display: none !important;}}@media (min-width: ${a?`${o}px`:Vg(o)}) {.mantine-hidden-from-${r} {display: none !important;}}`},"");return v.jsx("style",{"data-mantine-styles":"classes",nonce:n==null?void 0:n(),dangerouslySetInnerHTML:{__html:t}})}function KX({theme:e,generator:n}){const t=eL(e),i=n==null?void 0:n(e);return i?Y6(t,i):t}const Sk=eL(iC);function XX(e){const n={variables:{},light:{},dark:{}};return zt(e.variables).forEach(t=>{Sk.variables[t]!==e.variables[t]&&(n.variables[t]=e.variables[t])}),zt(e.light).forEach(t=>{Sk.light[t]!==e.light[t]&&(n.light[t]=e.light[t])}),zt(e.dark).forEach(t=>{Sk.dark[t]!==e.dark[t]&&(n.dark[t]=e.dark[t])}),n}function ZX(e){return Jz({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},e)}function nL({cssVariablesSelector:e,deduplicateCssVariables:n}){const t=ci(),i=tC(),r=KX({theme:t,generator:NX()}),a=(e===void 0||e===":root"||e===":host")&&n,o=Jz(a?XX(r):r,e);return o?v.jsx("style",{"data-mantine-styles":!0,nonce:i==null?void 0:i(),dangerouslySetInnerHTML:{__html:`${o}${a?"":ZX(e)}`}}):null}nL.displayName="@mantine/CssVariables";function QX({respectReducedMotion:e,getRootElement:n}){ps(()=>{var t;e&&((t=n())==null||t.setAttribute("data-respect-reduced-motion","true"))},[e])}function tL({theme:e,children:n,getStyleNonce:t,withStaticClasses:i=!0,withGlobalClasses:r=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:l,classNamesPrefix:u="mantine",colorSchemeManager:f=OX(),defaultColorScheme:h="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:g,stylesTransform:b,env:w,deduplicateInlineStyles:k=!1}){const{colorScheme:_,setColorScheme:x,clearColorScheme:C}=qX({defaultColorScheme:h,forceColorScheme:g,manager:f,getRootElement:d});return QX({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),v.jsx(Zz,{value:{colorScheme:_,setColorScheme:x,clearColorScheme:C,getRootElement:d,classNamesPrefix:u,getStyleNonce:t,cssVariablesResolver:p,cssVariablesSelector:l??":root",withStaticClasses:i,stylesTransform:b,env:w,deduplicateInlineStyles:k},children:v.jsxs(Qz,{theme:e,children:[o&&v.jsx(nL,{cssVariablesSelector:l,deduplicateCssVariables:a}),r&&v.jsx(YX,{}),n]})})}tL.displayName="@mantine/core/MantineProvider";function ye(e,n,t){var o;const i=ci(),r=(o=i.components[e])==null?void 0:o.defaultProps,a=typeof r=="function"?r(i):r;return{...n,...a,...Fu(t)}}function Wi({classNames:e,styles:n,props:t,stylesCtx:i}){const r=ci();return{resolvedClassNames:e===void 0?void 0:fm({theme:r,classNames:e,props:t,stylesCtx:i||void 0}),resolvedStyles:n===void 0?void 0:Gg({theme:r,styles:n,props:t,stylesCtx:i||void 0})}}const JX={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function eZ({theme:e,options:n,unstyled:t}){return vn((n==null?void 0:n.focusable)&&!t&&(e.focusClassName||JX[e.focusRing]),(n==null?void 0:n.active)&&!t&&e.activeClassName)}function nZ({selector:e,stylesCtx:n,options:t,props:i,theme:r}){return fm({theme:r,classNames:t==null?void 0:t.classNames,props:(t==null?void 0:t.props)||i,stylesCtx:n})[e]}function tZ({selector:e,stylesCtx:n,theme:t,classNames:i,props:r}){return fm({theme:t,classNames:i,props:r,stylesCtx:n})[e]}function iZ({rootSelector:e,selector:n,className:t}){return e===n?t:void 0}function rZ({selector:e,classes:n,unstyled:t}){return t?void 0:n[e]}function aZ({themeName:e,classNamesPrefix:n,selector:t,withStaticClass:i}){return i===!1?[]:e.map(r=>`${n}-${r}-${t}`)}function oZ({options:e,classes:n,selector:t,unstyled:i}){return e!=null&&e.variant&&!i?n[`${t}--${e.variant}`]:void 0}function sZ({theme:e,options:n,themeName:t,selector:i,classNamesPrefix:r,resolvedClassNames:a,resolvedThemeClassNames:o,classes:l,unstyled:u,className:f,rootSelector:h,props:d,stylesCtx:p,withStaticClasses:g,headless:b,transformedStyles:w}){return vn(eZ({theme:e,options:n,unstyled:u||b}),o.map(k=>k[i]),oZ({options:n,classes:l,selector:i,unstyled:u||b}),a[i],tZ({selector:i,stylesCtx:p,theme:e,classNames:w,props:d}),nZ({selector:i,stylesCtx:p,options:n,props:d,theme:e}),iZ({rootSelector:h,selector:i,className:f}),rZ({selector:i,classes:l,unstyled:u||b}),g&&!b&&aZ({themeName:t,classNamesPrefix:r,selector:i,withStaticClass:n==null?void 0:n.withStaticClass}),n==null?void 0:n.className)}function aC({style:e,theme:n}){return Array.isArray(e)?e.reduce((t,i)=>({...t,...aC({style:i,theme:n})}),{}):typeof e=="function"?e(n):e??{}}function lZ({theme:e,selector:n,options:t,props:i,stylesCtx:r,rootSelector:a,withStylesTransform:o,resolvedStyles:l,resolvedThemeStyles:u,resolvedVars:f,resolvedRootStyle:h}){return{...u[n],...l[n],...!o&&Gg({theme:e,styles:t==null?void 0:t.styles,props:(t==null?void 0:t.props)||i,stylesCtx:r})[n],...f[n],...a===n?h:null,...aC({style:t==null?void 0:t.style,theme:e})}}function uZ(e){return e.reduce((n,t)=>(t&&Object.keys(t).forEach(i=>{n[i]={...n[i],...Fu(t[i])}}),n),{})}function cZ({props:e,stylesCtx:n,themeName:t,theme:i}){var o;const r=(o=BX())==null?void 0:o();return{getTransformedStyles:l=>r?[...l.map(u=>r(u,{props:e,theme:i,ctx:n})),...t.map(u=>{var f;return r((f=i.components[u])==null?void 0:f.styles,{props:e,theme:i,ctx:n})})].filter(Boolean):[],withStylesTransform:!!r}}function Ze({name:e,classes:n,props:t,stylesCtx:i,className:r,style:a,rootSelector:o="root",unstyled:l,classNames:u,styles:f,vars:h,varsResolver:d,attributes:p}){var R;const g=ci(),b=$X(),w=zX(),k=LX(),_=(Array.isArray(e)?e:[e]).filter(I=>I),{withStylesTransform:x,getTransformedStyles:C}=cZ({props:t,stylesCtx:i,themeName:_,theme:g}),T=fm({theme:g,classNames:u,props:t,stylesCtx:i}),A=_.map(I=>{var z;return fm({theme:g,classNames:(z=g.components[I])==null?void 0:z.classNames,props:t,stylesCtx:i})}),O=x?{}:Gg({theme:g,styles:f,props:t,stylesCtx:i}),M={};if(!x)for(const I of _){const z=Gg({theme:g,styles:(R=g.components[I])==null?void 0:R.styles,props:t,stylesCtx:i});for(const W of Object.keys(z))M[W]={...M[W],...z[W]}}const $=uZ([k?{}:d==null?void 0:d(g,t,i),..._.map(I=>{var z,W,U;return(U=(W=(z=g.components)==null?void 0:z[I])==null?void 0:W.vars)==null?void 0:U.call(W,g,t,i)}),h==null?void 0:h(g,t,i)]),q=aC({style:a,theme:g});return(I,z)=>({...p==null?void 0:p[I],className:sZ({theme:g,options:z,themeName:_,selector:I,classNamesPrefix:b,resolvedClassNames:T,resolvedThemeClassNames:A,classes:n,unstyled:l,className:r,rootSelector:o,props:t,stylesCtx:i,withStaticClasses:w,headless:k,transformedStyles:C([z==null?void 0:z.styles,f])}),style:lZ({theme:g,selector:I,options:z,props:t,stylesCtx:i,rootSelector:o,withStylesTransform:x,resolvedStyles:O,resolvedThemeStyles:M,resolvedVars:$,resolvedRootStyle:q})})}function Yh(e){return zt(e).reduce((n,t)=>e[t]!==void 0?`${n}${XK(t)}:${e[t]};`:n,"").trim()}function fZ({selector:e,styles:n,media:t,container:i}){const r=n?Yh(n):"",a=Array.isArray(t)?t.map(l=>`@media${l.query}{${e}{${Yh(l.styles)}}}`):[],o=Array.isArray(i)?i.map(l=>`@container ${l.query}{${e}{${Yh(l.styles)}}}`):[];return`${r?`${e}{${r}}`:""}${a.join("")}${o.join("")}`.trim()}function dZ(e){let n=5381;for(let t=0;t>>0).toString(36)}function Bf({deduplicate:e,...n}){const t=tC(),i=fZ(n);return e?v.jsx("style",{href:`mantine-${dZ(i)}`,precedence:"mantine",nonce:t==null?void 0:t(),children:i}):v.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:i}})}function hZ(e){let n=5381;for(let t=0;t>>0).toString(36)}function mZ(e,n){return`__mdi__-${hZ(`${e?Yh(e):""}|${Array.isArray(n)?n.map(t=>`${t.query}:${Yh(t.styles)}`).join("|"):""}`)}`}function qu(e){const{m:n,mx:t,my:i,mt:r,mb:a,ml:o,mr:l,me:u,ms:f,mis:h,mie:d,p,px:g,py:b,pt:w,pb:k,pl:_,pr:x,pe:C,ps:T,pis:A,pie:O,bd:M,bdrs:$,bg:q,c:R,opacity:I,ff:z,fz:W,fw:U,lts:N,ta:D,lh:L,fs:H,tt:Y,td:P,w:G,miw:V,maw:B,h:Q,mih:ie,mah:re,bgsz:Z,bgp:le,bgr:ee,bga:se,pos:ke,top:te,left:$e,bottom:xe,right:Oe,inset:ze,display:we,flex:Ce,hiddenFrom:Ne,visibleFrom:he,lightHidden:He,darkHidden:Ye,sx:We,...Qe}=e;return{styleProps:Fu({m:n,mx:t,my:i,mt:r,mb:a,ml:o,mr:l,me:u,ms:f,mis:h,mie:d,p,px:g,py:b,pt:w,pb:k,pl:_,pr:x,pis:A,pie:O,pe:C,ps:T,bd:M,bg:q,c:R,opacity:I,ff:z,fz:W,fw:U,lts:N,ta:D,lh:L,fs:H,tt:Y,td:P,w:G,miw:V,maw:B,h:Q,mih:ie,mah:re,bgsz:Z,bgp:le,bgr:ee,bga:se,pos:ke,top:te,left:$e,bottom:xe,right:Oe,inset:ze,display:we,flex:Ce,bdrs:$,hiddenFrom:Ne,visibleFrom:he,lightHidden:He,darkHidden:Ye,sx:We}),rest:Qe}}const pZ={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 oC(e,n){const t=vs({color:e,theme:n});return t.color==="dimmed"?"var(--mantine-color-dimmed)":t.color==="bright"?"var(--mantine-color-bright)":t.variable?`var(${t.variable})`:t.color}function vZ(e,n){const t=vs({color:e,theme:n});return t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-text)`:oC(e,n)}function gZ(e,n){if(typeof e=="number")return ve(e);if(typeof e=="string"){const[t,i,...r]=e.split(" ").filter(o=>o.trim()!=="");let a=`${ve(t)}`;return i&&(a+=` ${i}`),r.length>0&&(a+=` ${oC(r.join(" "),n)}`),a.trim()}return e}const KT={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 yZ(e){return typeof e=="string"&&e in KT?KT[e]:e}const bZ=["h1","h2","h3","h4","h5","h6"];function wZ(e,n){return typeof e=="string"&&e in n.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&bZ.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?ve(e):e}function kZ(e){return e}const _Z=["h1","h2","h3","h4","h5","h6"];function xZ(e,n){return typeof e=="string"&&e in n.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&_Z.includes(e)?`var(--mantine-${e}-line-height)`:e}function SZ(e,n){return typeof e=="string"&&e in n.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?ve(e):e}function CZ(e){return typeof e=="number"?ve(e):e}function jZ(e,n){if(typeof e=="number")return ve(e);if(typeof e=="string"){const t=e.replace("-","");if(!(t in n.spacing))return ve(e);const i=`--mantine-spacing-${t}`;return e.startsWith("-")?`calc(var(${i}) * -1)`:`var(${i})`}return e}const Ck={color:oC,textColor:vZ,fontSize:wZ,spacing:jZ,radius:SZ,identity:kZ,size:CZ,lineHeight:xZ,fontFamily:yZ,border:gZ};function XT(e){return e.replace("(min-width: ","").replace("em)","")}function AZ({media:e,...n}){const t=Object.keys(e).sort((i,r)=>Number(XT(i))-Number(XT(r))).map(i=>({query:i,styles:e[i]}));return{...n,media:t}}function OZ(e){if(typeof e!="object"||e===null)return!1;const n=Object.keys(e);return!(n.length===1&&n[0]==="base")}function TZ(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function EZ(e){return typeof e=="object"&&e!==null?zt(e).filter(n=>n!=="base"):[]}function MZ(e,n){return typeof e=="object"&&e!==null&&n in e?e[n]:e}function DZ({styleProps:e,data:n,theme:t}){return AZ(zt(e).reduce((i,r)=>{if(r==="hiddenFrom"||r==="visibleFrom"||r==="sx")return i;const a=n[r],o=Array.isArray(a.property)?a.property:[a.property],l=TZ(e[r]);if(!OZ(e[r]))return o.forEach(f=>{i.inlineStyles[f]=Ck[a.type](l,t)}),i;i.hasResponsiveStyles=!0;const u=EZ(e[r]);return o.forEach(f=>{l!=null&&(i.styles[f]=Ck[a.type](l,t)),u.forEach(h=>{const d=`(min-width: ${t.breakpoints[h]})`;i.media[d]={...i.media[d],[f]:Ck[a.type](MZ(e[r],h),t)}})}),i},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Cy(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function iL(e,n){return Array.isArray(e)?[...e].reduce((t,i)=>({...t,...iL(i,n)}),{}):typeof e=="function"?e(n):e??{}}function RZ(e){return e}const PZ=RZ;function rL(e){return e}function Pe(e){const n=e;return n.extend=rL,n.withProps=t=>{const i=r=>v.jsx(n,{...t,...r});return i.extend=n.extend,i.displayName=`WithProps(${n.displayName})`,i},n}function sp(e){return Pe(e)}function ki(e){const n=e;return n.withProps=t=>{const i=r=>v.jsx(n,{...t,...r});return i.extend=n.extend,i.displayName=`WithProps(${n.displayName})`,i},n.extend=rL,n}function aL(e){return`data-${(e.startsWith("data-")?e.slice(5):e).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function NZ(e){return Object.keys(e).reduce((n,t)=>{const i=e[t];return i===void 0||i===""||i===!1||i===null||(n[aL(t)]=e[t]),n},{})}function oL(e){return e?typeof e=="string"?{[aL(e)]:!0}:Array.isArray(e)?[...e].reduce((n,t)=>({...n,...oL(t)}),{}):NZ(e):null}function ES(e,n){return Array.isArray(e)?[...e].reduce((t,i)=>({...t,...ES(i,n)}),{}):typeof e=="function"?e(n):e??{}}function $Z({theme:e,style:n,vars:t,styleProps:i}){const r=ES(n,e),a=ES(t,e);return{...r,...a,...i}}function sL({component:e,style:n,__vars:t,className:i,variant:r,mod:a,size:o,hiddenFrom:l,visibleFrom:u,lightHidden:f,darkHidden:h,renderRoot:d,__size:p,ref:g,...b}){var q,R;const w=ci(),k=e||"div",{styleProps:_,rest:x}=qu(b),C=(R=(q=IX())==null?void 0:q())==null?void 0:R(_.sx),T=Cy(),A=DZ({styleProps:_,theme:w,data:pZ}),O=FX(),M=O&&A.hasResponsiveStyles?mZ(A.styles,A.media):T,$={ref:g,style:$Z({theme:w,style:n,vars:t,styleProps:A.inlineStyles}),className:vn(i,C,{[M]:A.hasResponsiveStyles,"mantine-light-hidden":f,"mantine-dark-hidden":h,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${u}`]:u}),"data-variant":r,"data-size":Lz(o)?void 0:o||void 0,size:p,...oL(a),...x};return v.jsxs(v.Fragment,{children:[A.hasResponsiveStyles&&v.jsx(Bf,{selector:`.${M}`,styles:A.styles,media:A.media,deduplicate:O}),typeof d=="function"?d($):v.jsx(k,{...$})]})}sL.displayName="@mantine/core/Box";const de=PZ(sL),zZ=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Hu(){return S.use(zZ)}const[LZ,Sa]=Or("ScrollArea.Root component was not found in tree");function bl(e,n){const t=S.useEffectEvent(n);ps(()=>{let i=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(t)});return r.observe(e),()=>{window.cancelAnimationFrame(i),r.unobserve(e)}}},[e])}function IZ(e){const{style:n,...t}=e,i=Sa(),[r,a]=S.useState(0),[o,l]=S.useState(0),u=!!(r&&o);return bl(i.scrollbarX,()=>{var h;const f=((h=i.scrollbarX)==null?void 0:h.offsetHeight)||0;i.onCornerHeightChange(f),l(f)}),bl(i.scrollbarY,()=>{var h;const f=((h=i.scrollbarY)==null?void 0:h.offsetWidth)||0;i.onCornerWidthChange(f),a(f)}),u?v.jsx("div",{...t,style:{...n,width:r,height:o}}):null}function BZ(e){const n=Sa(),t=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&t?v.jsx(IZ,{...e}):null}const FZ={scrollHideDelay:1e3,type:"hover"};function lL(e){const{type:n,scrollHideDelay:t,scrollbars:i,getStyles:r,ref:a,...o}=ye("ScrollAreaRoot",FZ,e),[l,u]=S.useState(null),[f,h]=S.useState(null),[d,p]=S.useState(null),[g,b]=S.useState(null),[w,k]=S.useState(null),[_,x]=S.useState(0),[C,T]=S.useState(0),[A,O]=S.useState(!1),[M,$]=S.useState(!1),q=Vt(a,R=>u(R));return v.jsx(LZ,{value:{type:n,scrollHideDelay:t,scrollArea:l,viewport:f,onViewportChange:h,content:d,onContentChange:p,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:A,onScrollbarXEnabledChange:O,scrollbarY:w,onScrollbarYChange:k,scrollbarYEnabled:M,onScrollbarYEnabledChange:$,onCornerWidthChange:x,onCornerHeightChange:T,getStyles:r},children:v.jsx(de,{...o,ref:q,__vars:{"--sa-corner-width":i!=="xy"?"0px":`${_}px`,"--sa-corner-height":i!=="xy"?"0px":`${C}px`}})})}lL.displayName="@mantine/core/ScrollAreaRoot";function uL(e,n){const t=e/n;return Number.isNaN(t)?0:t}function jy(e){const n=uL(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-t)*n;return Math.max(i,18)}function cL(e,n){return t=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const i=(n[1]-n[0])/(e[1]-e[0]);return n[0]+i*(t-e[0])}}function qZ(e,[n,t]){return Math.min(t,Math.max(n,e))}function ZT(e,n,t="ltr"){const i=jy(n),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=n.scrollbar.size-r,o=n.content-n.viewport,l=a-i,u=qZ(e,t==="ltr"?[0,o]:[o*-1,0]);return cL([0,o],[0,l])(u)}function HZ(e,n,t,i="ltr"){const r=jy(t),a=r/2,o=n||a,l=r-o,u=t.scrollbar.paddingStart+o,f=t.scrollbar.size-t.scrollbar.paddingEnd-l,h=t.content-t.viewport,d=i==="ltr"?[0,h]:[h*-1,0];return cL([u,f],d)(e)}function fL(e,n){return e>0&&e{e==null||e(i),(t===!1||!i.defaultPrevented)&&(n==null||n(i))}}const[UZ,dL]=Or("ScrollAreaScrollbar was not found in tree");function hL(e){const{sizes:n,hasThumb:t,onThumbChange:i,onThumbPointerUp:r,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:l,onWheelScroll:u,onResize:f,ref:h,...d}=e,p=Sa(),[g,b]=S.useState(null),w=Vt(h,$=>b($)),k=S.useRef(null),_=S.useRef(""),{viewport:x}=p,C=n.content-n.viewport,T=S.useEffectEvent(u),A=zh(o),O=xy(f,10),M=$=>{k.current&&l({x:$.clientX-k.current.left,y:$.clientY-k.current.top})};return S.useEffect(()=>{const $=q=>{const R=q.target;g!=null&&g.contains(R)&&T(q,C)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[x,g,C]),S.useEffect(A,[n,A]),bl(g,O),bl(p.content,O),v.jsx(UZ,{value:{scrollbar:g,hasThumb:t,onThumbChange:zh(i),onThumbPointerUp:zh(r),onThumbPositionChange:A,onThumbPointerDown:zh(a)},children:v.jsx("div",{...d,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Cu(e.onPointerDown,$=>{$.preventDefault(),$.button===0&&($.target.setPointerCapture($.pointerId),k.current=g.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M($))}),onPointerMove:Cu(e.onPointerMove,M),onPointerUp:Cu(e.onPointerUp,$=>{const q=$.target;q.hasPointerCapture($.pointerId)&&($.preventDefault(),q.releasePointerCapture($.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,k.current=null}})})}const mL=e=>{const{sizes:n,onSizesChange:t,style:i,ref:r,...a}=e,o=Sa(),[l,u]=S.useState(),f=S.useRef(null),h=Vt(r,f,o.onScrollbarXChange);return S.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),v.jsx(hL,{"data-orientation":"horizontal",...a,ref:h,sizes:n,style:{...i,"--sa-thumb-width":`${jy(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(o.viewport){const g=o.viewport.scrollLeft+d.deltaX;e.onWheelScroll(g),fL(g,p)&&d.preventDefault()}},onResize:()=>{f.current&&o.viewport&&l&&t({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Yg(l.paddingLeft),paddingEnd:Yg(l.paddingRight)}})}})};mL.displayName="@mantine/core/ScrollAreaScrollbarX";function pL(e){const{sizes:n,onSizesChange:t,style:i,ref:r,...a}=e,o=Sa(),[l,u]=S.useState(),f=S.useRef(null),h=Vt(r,f,o.onScrollbarYChange);return S.useEffect(()=>{f.current&&u(window.getComputedStyle(f.current))},[]),v.jsx(hL,{...a,"data-orientation":"vertical",ref:h,sizes:n,style:{"--sa-thumb-height":`${jy(n)}px`,...i},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(o.viewport){const g=o.viewport.scrollTop+d.deltaY;e.onWheelScroll(g),fL(g,p)&&d.preventDefault()}},onResize:()=>{f.current&&o.viewport&&l&&t({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Yg(l.paddingTop),paddingEnd:Yg(l.paddingBottom)}})}})}pL.displayName="@mantine/core/ScrollAreaScrollbarY";function Ay(e){const{orientation:n="vertical",...t}=e,{dir:i}=Hu(),r=Sa(),a=S.useRef(null),o=S.useRef(0),[l,u]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=uL(l.viewport,l.content),h={...t,sizes:l,onSizesChange:u,hasThumb:f>0&&f<1,onThumbChange:p=>{a.current=p},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:p=>{o.current=p}},d=(p,g)=>HZ(p,o.current,l,g);return n==="horizontal"?v.jsx(mL,{...h,onThumbPositionChange:()=>{if(r.viewport&&a.current){const p=r.viewport.scrollLeft,g=ZT(p,l,i);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:p=>{r.viewport&&(r.viewport.scrollLeft=p)},onDragScroll:p=>{r.viewport&&(r.viewport.scrollLeft=d(p,i))}}):n==="vertical"?v.jsx(pL,{...h,onThumbPositionChange:()=>{if(r.viewport&&a.current){const p=r.viewport.scrollTop,g=ZT(p,l);l.scrollbar.size===0?a.current.style.setProperty("--thumb-opacity","0"):a.current.style.setProperty("--thumb-opacity","1"),a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:p=>{r.viewport&&(r.viewport.scrollTop=p)},onDragScroll:p=>{r.viewport&&(r.viewport.scrollTop=d(p))}}):null}Ay.displayName="@mantine/core/ScrollAreaScrollbarVisible";function sC(e){const n=Sa(),{forceMount:t,...i}=e,[r,a]=S.useState(!1),o=e.orientation==="horizontal",l=xy(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{scrollArea:o}=i;let l=0;if(o){const u=()=>{window.clearTimeout(l),a(!0)},f=()=>{l=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",u),o.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),o.removeEventListener("pointerenter",u),o.removeEventListener("pointerleave",f)}}},[i.scrollArea,i.scrollHideDelay]),n||r?v.jsx(sC,{"data-state":r?"visible":"hidden",...t}):null}vL.displayName="@mantine/core/ScrollAreaScrollbarHover";function VZ(e){const{forceMount:n,...t}=e,i=Sa(),r=e.orientation==="horizontal",[a,o]=S.useState("hidden"),l=xy(()=>o("idle"),100);return S.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>o("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay]),S.useEffect(()=>{const{viewport:u}=i,f=r?"scrollLeft":"scrollTop";if(u){let h=u[f];const d=()=>{const p=u[f];h!==p&&(o("scrolling"),l()),h=p};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[i.viewport,r,l]),n||a!=="hidden"?v.jsx(Ay,{"data-state":a==="hidden"?"hidden":"visible",...t,onPointerEnter:Cu(e.onPointerEnter,()=>o("interacting")),onPointerLeave:Cu(e.onPointerLeave,()=>o("idle"))}):null}function MS(e){const{forceMount:n,...t}=e,i=Sa(),{onScrollbarXEnabledChange:r,onScrollbarYEnabledChange:a}=i,o=e.orientation==="horizontal";return S.useEffect(()=>(o?r(!0):a(!0),()=>{o?r(!1):a(!1)}),[o,r,a]),i.type==="hover"?v.jsx(vL,{...t,forceMount:n}):i.type==="scroll"?v.jsx(VZ,{...t,forceMount:n}):i.type==="auto"?v.jsx(sC,{...t,forceMount:n}):i.type==="always"?v.jsx(Ay,{...t}):null}MS.displayName="@mantine/core/ScrollAreaScrollbar";function WZ(e,n=()=>{}){let t={left:e.scrollLeft,top:e.scrollTop},i=0;return(function r(){const a={left:e.scrollLeft,top:e.scrollTop},o=t.left!==a.left,l=t.top!==a.top;(o||l)&&n(),t=a,i=window.requestAnimationFrame(r)})(),()=>window.cancelAnimationFrame(i)}function gL(e){const{style:n,ref:t,...i}=e,r=Sa(),a=dL(),{onThumbPositionChange:o}=a,l=Vt(t,h=>a.onThumbChange(h)),u=S.useRef(void 0),f=xy(()=>{u.current&&(u.current(),u.current=void 0)},100);return S.useEffect(()=>{const{viewport:h}=r;if(h){const d=()=>{f(),u.current||(u.current=WZ(h,o),o())};return o(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[r.viewport,f,o]),v.jsx("div",{"data-state":a.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Cu(e.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),p=h.clientX-d.left,g=h.clientY-d.top;a.onThumbPointerDown({x:p,y:g})}),onPointerUp:Cu(e.onPointerUp,a.onThumbPointerUp)})}gL.displayName="@mantine/core/ScrollAreaThumb";function DS(e){const{forceMount:n,...t}=e,i=dL();return n||i.hasThumb?v.jsx(gL,{...t}):null}DS.displayName="@mantine/core/ScrollAreaThumb";function yL({children:e,style:n,ref:t,onWheel:i,...r}){const a=Sa(),o=Vt(t,a.onViewportChange),l=u=>{if(i==null||i(u),a.scrollbarXEnabled&&a.viewport&&u.shiftKey){const{scrollTop:f,scrollHeight:h,clientHeight:d,scrollWidth:p,clientWidth:g}=a.viewport,b=f<1,w=f>=h-d-1;p>g&&(b||w)&&u.stopPropagation()}};return v.jsx(de,{...r,ref:o,onWheel:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...n},children:v.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})}yL.displayName="@mantine/core/ScrollAreaViewport";var lC={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function Oy(){return typeof window<"u"}function Ff(e){return bL(e)?(e.nodeName||"").toLowerCase():"#document"}function jr(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function ko(e){var n;return(n=(bL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function bL(e){return Oy()?e instanceof Node||e instanceof jr(e).Node:!1}function Xt(e){return Oy()?e instanceof Element||e instanceof jr(e).Element:!1}function Ca(e){return Oy()?e instanceof HTMLElement||e instanceof jr(e).HTMLElement:!1}function RS(e){return!Oy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jr(e).ShadowRoot}function lp(e){const{overflow:n,overflowX:t,overflowY:i,display:r}=ka(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+t)&&r!=="inline"&&r!=="contents"}function GZ(e){return/^(table|td|th)$/.test(Ff(e))}function Ty(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const YZ=/transform|translate|scale|rotate|perspective|filter/,KZ=/paint|layout|strict|content/,lu=e=>!!e&&e!=="none";let jk;function uC(e){const n=Xt(e)?ka(e):e;return lu(n.transform)||lu(n.translate)||lu(n.scale)||lu(n.rotate)||lu(n.perspective)||!Ey()&&(lu(n.backdropFilter)||lu(n.filter))||YZ.test(n.willChange||"")||KZ.test(n.contain||"")}function XZ(e){let n=ss(e);for(;Ca(n)&&!es(n);){if(uC(n))return n;if(Ty(n))return null;n=ss(n)}return null}function Ey(){return jk==null&&(jk=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),jk}function es(e){return/^(html|body|#document)$/.test(Ff(e))}function ka(e){return jr(e).getComputedStyle(e)}function My(e){return Xt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ss(e){if(Ff(e)==="html")return e;const n=e.assignedSlot||e.parentNode||RS(e)&&e.host||ko(e);return RS(n)?n.host:n}function wL(e){const n=ss(e);return es(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ca(n)&&lp(n)?n:wL(n)}function ns(e,n,t){var i;n===void 0&&(n=[]),t===void 0&&(t=!0);const r=wL(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),o=jr(r);if(a){const l=PS(o);return n.concat(o,o.visualViewport||[],lp(r)?r:[],l&&t?ns(l):[])}else return n.concat(r,ns(r,[],t))}function PS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ZZ=["top","right","bottom","left"],Ha=Math.min,Zi=Math.max,Kg=Math.round,Qv=Math.floor,oo=e=>({x:e,y:e}),QZ={left:"right",right:"left",bottom:"top",top:"bottom"};function NS(e,n,t){return Zi(e,Ha(n,t))}function ho(e,n){return typeof e=="function"?e(n):e}function Ua(e){return e.split("-")[0]}function qf(e){return e.split("-")[1]}function cC(e){return e==="x"?"y":"x"}function fC(e){return e==="y"?"height":"width"}function Ia(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function dC(e){return cC(Ia(e))}function JZ(e,n,t){t===void 0&&(t=!1);const i=qf(e),r=dC(e),a=fC(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(o=Xg(o)),[o,Xg(o)]}function eQ(e){const n=Xg(e);return[$S(e),n,$S(n)]}function $S(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const QT=["left","right"],JT=["right","left"],nQ=["top","bottom"],tQ=["bottom","top"];function iQ(e,n,t){switch(e){case"top":case"bottom":return t?n?JT:QT:n?QT:JT;case"left":case"right":return n?nQ:tQ;default:return[]}}function rQ(e,n,t,i){const r=qf(e);let a=iQ(Ua(e),t==="start",i);return r&&(a=a.map(o=>o+"-"+r),n&&(a=a.concat(a.map($S)))),a}function Xg(e){const n=Ua(e);return QZ[n]+e.slice(n.length)}function aQ(e){return{top:0,right:0,bottom:0,left:0,...e}}function hC(e){return typeof e!="number"?aQ(e):{top:e,right:e,bottom:e,left:e}}function sf(e){const{x:n,y:t,width:i,height:r}=e;return{width:i,height:r,top:t,left:n,right:n+i,bottom:t+r,x:n,y:t}}function oQ(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function sQ(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(n=>{let{brand:t,version:i}=n;return t+"/"+i}).join(" "):navigator.userAgent}function lQ(){return/apple/i.test(navigator.vendor)}function uQ(){return oQ().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function cQ(){return sQ().includes("jsdom/")}const eE="data-floating-ui-focusable",fQ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function nE(e){let n=e.activeElement;for(;((t=n)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;n=n.shadowRoot.activeElement}return n}function hm(e,n){if(!e||!n)return!1;const t=n.getRootNode==null?void 0:n.getRootNode();if(e.contains(n))return!0;if(t&&RS(t)){let i=n;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Uc(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ak(e,n){if(n==null)return!1;if("composedPath"in e)return e.composedPath().includes(n);const t=e;return t.target!=null&&n.contains(t.target)}function dQ(e){return e.matches("html,body")}function yu(e){return(e==null?void 0:e.ownerDocument)||document}function hQ(e){return Ca(e)&&e.matches(fQ)}function mQ(e){if(!e||cQ())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function pQ(e){return e?e.hasAttribute(eE)?e:e.querySelector("["+eE+"]")||e:null}function Mg(e,n,t){return t===void 0&&(t=!0),e.filter(r=>{var a;return r.parentId===n&&(!t||((a=r.context)==null?void 0:a.open))}).flatMap(r=>[r,...Mg(e,r.id,t)])}function vQ(e){return"nativeEvent"in e}function zS(e,n){const t=["mouse","pen"];return t.push("",void 0),t.includes(e)}var gQ=typeof document<"u",yQ=function(){},so=gQ?S.useLayoutEffect:yQ;const bQ={...Iz};function Jv(e){const n=S.useRef(e);return so(()=>{n.current=e}),n}const wQ=bQ.useInsertionEffect,kQ=wQ||(e=>e());function to(e){const n=S.useRef(()=>{});return kQ(()=>{n.current=e}),S.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:o}=t,l=o.detectOverflow?o:{...o,detectOverflow:_Q},u=await(o.isRTL==null?void 0:o.isRTL(n));let f=await o.getElementRects({reference:e,floating:n,strategy:r}),{x:h,y:d}=tE(f,i,u),p=i,g=0;const b={};for(let w=0;w({name:"arrow",options:e,async fn(n){const{x:t,y:i,placement:r,rects:a,platform:o,elements:l,middlewareData:u}=n,{element:f,padding:h=0}=ho(e,n)||{};if(f==null)return{};const d=hC(h),p={x:t,y:i},g=dC(r),b=fC(g),w=await o.getDimensions(f),k=g==="y",_=k?"top":"left",x=k?"bottom":"right",C=k?"clientHeight":"clientWidth",T=a.reference[b]+a.reference[g]-p[g]-a.floating[b],A=p[g]-a.reference[g],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(f));let M=O?O[C]:0;(!M||!await(o.isElement==null?void 0:o.isElement(O)))&&(M=l.floating[C]||a.floating[b]);const $=T/2-A/2,q=M/2-w[b]/2-1,R=Ha(d[_],q),I=Ha(d[x],q),z=R,W=M-w[b]-I,U=M/2-w[b]/2+$,N=NS(z,U,W),D=!u.arrow&&qf(r)!=null&&U!==N&&a.reference[b]/2-(UU<=0)){var I,z;const U=(((I=a.flip)==null?void 0:I.index)||0)+1,N=M[U];if(N&&(!(d==="alignment"?x!==Ia(N):!1)||R.every(H=>Ia(H.placement)===x?H.overflows[0]>0:!0)))return{data:{index:U,overflows:R},reset:{placement:N}};let D=(z=R.filter(L=>L.overflows[0]<=0).sort((L,H)=>L.overflows[1]-H.overflows[1])[0])==null?void 0:z.placement;if(!D)switch(g){case"bestFit":{var W;const L=(W=R.filter(H=>{if(O){const Y=Ia(H.placement);return Y===x||Y==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(Y=>Y>0).reduce((Y,P)=>Y+P,0)]).sort((H,Y)=>H[1]-Y[1])[0])==null?void 0:W[0];L&&(D=L);break}case"initialPlacement":D=l;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function iE(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function rE(e){return ZZ.some(n=>e[n]>=0)}const AQ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:t,platform:i}=n,{strategy:r="referenceHidden",...a}=ho(e,n);switch(r){case"referenceHidden":{const o=await i.detectOverflow(n,{...a,elementContext:"reference"}),l=iE(o,t.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:rE(l)}}}case"escaped":{const o=await i.detectOverflow(n,{...a,altBoundary:!0}),l=iE(o,t.floating);return{data:{escapedOffsets:l,escaped:rE(l)}}}default:return{}}}}};function kL(e){const n=Ha(...e.map(a=>a.left)),t=Ha(...e.map(a=>a.top)),i=Zi(...e.map(a=>a.right)),r=Zi(...e.map(a=>a.bottom));return{x:n,y:t,width:i-n,height:r-t}}function OQ(e){const n=e.slice().sort((r,a)=>r.y-a.y),t=[];let i=null;for(let r=0;ri.height/2?t.push([a]):t[t.length-1].push(a),i=a}return t.map(r=>sf(kL(r)))}const TQ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(n){const{placement:t,elements:i,rects:r,platform:a,strategy:o}=n,{padding:l=2,x:u,y:f}=ho(e,n),h=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(i.reference))||[]),d=OQ(h),p=sf(kL(h)),g=hC(l);function b(){if(d.length===2&&d[0].left>d[1].right&&u!=null&&f!=null)return d.find(k=>u>k.left-g.left&&uk.top-g.top&&f=2){if(Ia(t)==="y"){const R=d[0],I=d[d.length-1],z=Ua(t)==="top",W=R.top,U=I.bottom,N=z?R.left:I.left,D=z?R.right:I.right,L=D-N,H=U-W;return{top:W,bottom:U,left:N,right:D,width:L,height:H,x:N,y:W}}const k=Ua(t)==="left",_=Zi(...d.map(R=>R.right)),x=Ha(...d.map(R=>R.left)),C=d.filter(R=>k?R.left===x:R.right===_),T=C[0].top,A=C[C.length-1].bottom,O=x,M=_,$=M-O,q=A-T;return{top:T,bottom:A,left:O,right:M,width:$,height:q,x:O,y:T}}return p}const w=await a.getElementRects({reference:{getBoundingClientRect:b},floating:i.floating,strategy:o});return r.reference.x!==w.reference.x||r.reference.y!==w.reference.y||r.reference.width!==w.reference.width||r.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},_L=new Set(["left","top"]);async function EQ(e,n){const{placement:t,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Ua(t),l=qf(t),u=Ia(t)==="y",f=_L.has(o)?-1:1,h=a&&u?-1:1,d=ho(n,e);let{mainAxis:p,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),u?{x:g*h,y:p*f}:{x:p*f,y:g*h}}const MQ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,i;const{x:r,y:a,placement:o,middlewareData:l}=n,u=await EQ(n,e);return o===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:r+u.x,y:a+u.y,data:{...u,placement:o}}}}},DQ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:t,y:i,placement:r,platform:a}=n,{mainAxis:o=!0,crossAxis:l=!1,limiter:u={fn:_=>{let{x,y:C}=_;return{x,y:C}}},...f}=ho(e,n),h={x:t,y:i},d=await a.detectOverflow(n,f),p=Ia(Ua(r)),g=cC(p);let b=h[g],w=h[p];if(o){const _=g==="y"?"top":"left",x=g==="y"?"bottom":"right",C=b+d[_],T=b-d[x];b=NS(C,b,T)}if(l){const _=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=w+d[_],T=w-d[x];w=NS(C,w,T)}const k=u.fn({...n,[g]:b,[p]:w});return{...k,data:{x:k.x-t,y:k.y-i,enabled:{[g]:o,[p]:l}}}}}},RQ=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:t,y:i,placement:r,rects:a,middlewareData:o}=n,{offset:l=0,mainAxis:u=!0,crossAxis:f=!0}=ho(e,n),h={x:t,y:i},d=Ia(r),p=cC(d);let g=h[p],b=h[d];const w=ho(l,n),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const C=p==="y"?"height":"width",T=a.reference[p]-a.floating[C]+k.mainAxis,A=a.reference[p]+a.reference[C]-k.mainAxis;gA&&(g=A)}if(f){var _,x;const C=p==="y"?"width":"height",T=_L.has(Ua(r)),A=a.reference[d]-a.floating[C]+(T&&((_=o.offset)==null?void 0:_[d])||0)+(T?0:k.crossAxis),O=a.reference[d]+a.reference[C]+(T?0:((x=o.offset)==null?void 0:x[d])||0)-(T?k.crossAxis:0);bO&&(b=O)}return{[p]:g,[d]:b}}}},PQ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var t,i;const{placement:r,rects:a,platform:o,elements:l}=n,{apply:u=()=>{},...f}=ho(e,n),h=await o.detectOverflow(n,f),d=Ua(r),p=qf(r),g=Ia(r)==="y",{width:b,height:w}=a.floating;let k,_;d==="top"||d==="bottom"?(k=d,_=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(_=d,k=p==="end"?"top":"bottom");const x=w-h.top-h.bottom,C=b-h.left-h.right,T=Ha(w-h[k],x),A=Ha(b-h[_],C),O=!n.middlewareData.shift;let M=T,$=A;if((t=n.middlewareData.shift)!=null&&t.enabled.x&&($=C),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(M=x),O&&!p){const R=Zi(h.left,0),I=Zi(h.right,0),z=Zi(h.top,0),W=Zi(h.bottom,0);g?$=b-2*(R!==0||I!==0?R+I:Zi(h.left,h.right)):M=w-2*(z!==0||W!==0?z+W:Zi(h.top,h.bottom))}await u({...n,availableWidth:$,availableHeight:M});const q=await o.getDimensions(l.floating);return b!==q.width||w!==q.height?{reset:{rects:!0}}:{}}}};function xL(e){const n=ka(e);let t=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const r=Ca(e),a=r?e.offsetWidth:t,o=r?e.offsetHeight:i,l=Kg(t)!==a||Kg(i)!==o;return l&&(t=a,i=o),{width:t,height:i,$:l}}function mC(e){return Xt(e)?e:e.contextElement}function Zc(e){const n=mC(e);if(!Ca(n))return oo(1);const t=n.getBoundingClientRect(),{width:i,height:r,$:a}=xL(n);let o=(a?Kg(t.width):t.width)/i,l=(a?Kg(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const NQ=oo(0);function SL(e){const n=jr(e);return!Ey()||!n.visualViewport?NQ:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function $Q(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==jr(e)?!1:n}function Ou(e,n,t,i){n===void 0&&(n=!1),t===void 0&&(t=!1);const r=e.getBoundingClientRect(),a=mC(e);let o=oo(1);n&&(i?Xt(i)&&(o=Zc(i)):o=Zc(e));const l=$Q(a,t,i)?SL(a):oo(0);let u=(r.left+l.x)/o.x,f=(r.top+l.y)/o.y,h=r.width/o.x,d=r.height/o.y;if(a){const p=jr(a),g=i&&Xt(i)?jr(i):i;let b=p,w=PS(b);for(;w&&i&&g!==b;){const k=Zc(w),_=w.getBoundingClientRect(),x=ka(w),C=_.left+(w.clientLeft+parseFloat(x.paddingLeft))*k.x,T=_.top+(w.clientTop+parseFloat(x.paddingTop))*k.y;u*=k.x,f*=k.y,h*=k.x,d*=k.y,u+=C,f+=T,b=jr(w),w=PS(b)}}return sf({width:h,height:d,x:u,y:f})}function Dy(e,n){const t=My(e).scrollLeft;return n?n.left+t:Ou(ko(e)).left+t}function CL(e,n){const t=e.getBoundingClientRect(),i=t.left+n.scrollLeft-Dy(e,t),r=t.top+n.scrollTop;return{x:i,y:r}}function zQ(e){let{elements:n,rect:t,offsetParent:i,strategy:r}=e;const a=r==="fixed",o=ko(i),l=n?Ty(n.floating):!1;if(i===o||l&&a)return t;let u={scrollLeft:0,scrollTop:0},f=oo(1);const h=oo(0),d=Ca(i);if((d||!d&&!a)&&((Ff(i)!=="body"||lp(o))&&(u=My(i)),d)){const g=Ou(i);f=Zc(i),h.x=g.x+i.clientLeft,h.y=g.y+i.clientTop}const p=o&&!d&&!a?CL(o,u):oo(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:t.y*f.y-u.scrollTop*f.y+h.y+p.y}}function LQ(e){return Array.from(e.getClientRects())}function IQ(e){const n=ko(e),t=My(e),i=e.ownerDocument.body,r=Zi(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),a=Zi(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let o=-t.scrollLeft+Dy(e);const l=-t.scrollTop;return ka(i).direction==="rtl"&&(o+=Zi(n.clientWidth,i.clientWidth)-r),{width:r,height:a,x:o,y:l}}const aE=25;function BQ(e,n){const t=jr(e),i=ko(e),r=t.visualViewport;let a=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){a=r.width,o=r.height;const h=Ey();(!h||h&&n==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}const f=Dy(i);if(f<=0){const h=i.ownerDocument,d=h.body,p=getComputedStyle(d),g=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(i.clientWidth-d.clientWidth-g);b<=aE&&(a-=b)}else f<=aE&&(a+=f);return{width:a,height:o,x:l,y:u}}function FQ(e,n){const t=Ou(e,!0,n==="fixed"),i=t.top+e.clientTop,r=t.left+e.clientLeft,a=Ca(e)?Zc(e):oo(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,u=r*a.x,f=i*a.y;return{width:o,height:l,x:u,y:f}}function oE(e,n,t){let i;if(n==="viewport")i=BQ(e,t);else if(n==="document")i=IQ(ko(e));else if(Xt(n))i=FQ(n,t);else{const r=SL(e);i={x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}return sf(i)}function jL(e,n){const t=ss(e);return t===n||!Xt(t)||es(t)?!1:ka(t).position==="fixed"||jL(t,n)}function qQ(e,n){const t=n.get(e);if(t)return t;let i=ns(e,[],!1).filter(l=>Xt(l)&&Ff(l)!=="body"),r=null;const a=ka(e).position==="fixed";let o=a?ss(e):e;for(;Xt(o)&&!es(o);){const l=ka(o),u=uC(o);!u&&l.position==="fixed"&&(r=null),(a?!u&&!r:!u&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||lp(o)&&!u&&jL(e,o))?i=i.filter(h=>h!==o):r=l,o=ss(o)}return n.set(e,i),i}function HQ(e){let{element:n,boundary:t,rootBoundary:i,strategy:r}=e;const o=[...t==="clippingAncestors"?Ty(n)?[]:qQ(n,this._c):[].concat(t),i],l=oE(n,o[0],r);let u=l.top,f=l.right,h=l.bottom,d=l.left;for(let p=1;p{o(!1,1e-7)},1e3)}M===1&&!OL(f,e.getBoundingClientRect())&&o(),T=!1}try{t=new IntersectionObserver(A,{...C,root:r.ownerDocument})}catch{t=new IntersectionObserver(A,C)}t.observe(e)}return o(!0),a}function LS(e,n,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,f=mC(e),h=r||a?[...f?ns(f):[],...n?ns(n):[]]:[];h.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});const d=f&&l?KQ(f,t):null;let p=-1,g=null;o&&(g=new ResizeObserver(_=>{let[x]=_;x&&x.target===f&&g&&n&&(g.unobserve(n),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(n)})),t()}),f&&!u&&g.observe(f),n&&g.observe(n));let b,w=u?Ou(e):null;u&&k();function k(){const _=Ou(e);w&&!OL(w,_)&&t(),w=_,b=requestAnimationFrame(k)}return t(),()=>{var _;h.forEach(x=>{r&&x.removeEventListener("scroll",t),a&&x.removeEventListener("resize",t)}),d==null||d(),(_=g)==null||_.disconnect(),g=null,u&&cancelAnimationFrame(b)}}const XQ=MQ,ZQ=DQ,QQ=jQ,JQ=PQ,eJ=AQ,lE=CQ,nJ=TQ,tJ=RQ,iJ=(e,n,t)=>{const i=new Map,r={platform:YQ,...t},a={...r.platform,_c:i};return SQ(e,n,{...r,platform:a})};var rJ=typeof document<"u",aJ=function(){},Dg=rJ?S.useLayoutEffect:aJ;function Zg(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,i,r;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(i=t;i--!==0;)if(!Zg(e[i],n[i]))return!1;return!0}if(r=Object.keys(e),t=r.length,t!==Object.keys(n).length)return!1;for(i=t;i--!==0;)if(!{}.hasOwnProperty.call(n,r[i]))return!1;for(i=t;i--!==0;){const a=r[i];if(!(a==="_owner"&&e.$$typeof)&&!Zg(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function TL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uE(e,n){const t=TL(e);return Math.round(n*t)/t}function Tk(e){const n=S.useRef(e);return Dg(()=>{n.current=e}),n}function oJ(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:u,open:f}=e,[h,d]=S.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=S.useState(i);Zg(p,i)||g(i);const[b,w]=S.useState(null),[k,_]=S.useState(null),x=S.useCallback(H=>{H!==O.current&&(O.current=H,w(H))},[]),C=S.useCallback(H=>{H!==M.current&&(M.current=H,_(H))},[]),T=a||b,A=o||k,O=S.useRef(null),M=S.useRef(null),$=S.useRef(h),q=u!=null,R=Tk(u),I=Tk(r),z=Tk(f),W=S.useCallback(()=>{if(!O.current||!M.current)return;const H={placement:n,strategy:t,middleware:p};I.current&&(H.platform=I.current),iJ(O.current,M.current,H).then(Y=>{const P={...Y,isPositioned:z.current!==!1};U.current&&!Zg($.current,P)&&($.current=P,sl.flushSync(()=>{d(P)}))})},[p,n,t,I,z]);Dg(()=>{f===!1&&$.current.isPositioned&&($.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[f]);const U=S.useRef(!1);Dg(()=>(U.current=!0,()=>{U.current=!1}),[]),Dg(()=>{if(T&&(O.current=T),A&&(M.current=A),T&&A){if(R.current)return R.current(T,A,W);W()}},[T,A,W,R,q]);const N=S.useMemo(()=>({reference:O,floating:M,setReference:x,setFloating:C}),[x,C]),D=S.useMemo(()=>({reference:T,floating:A}),[T,A]),L=S.useMemo(()=>{const H={position:t,left:0,top:0};if(!D.floating)return H;const Y=uE(D.floating,h.x),P=uE(D.floating,h.y);return l?{...H,transform:"translate("+Y+"px, "+P+"px)",...TL(D.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:Y,top:P}},[t,l,D.floating,h.x,h.y]);return S.useMemo(()=>({...h,update:W,refs:N,elements:D,floatingStyles:L}),[h,W,N,D,L])}const sJ=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:i,padding:r}=typeof e=="function"?e(t):e;return i&&n(i)?i.current!=null?lE({element:i.current,padding:r}).fn(t):{}:i?lE({element:i,padding:r}).fn(t):{}}}},EL=(e,n)=>{const t=XQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},pC=(e,n)=>{const t=ZQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},cE=(e,n)=>({fn:tJ(e).fn,options:[e,n]}),Qg=(e,n)=>{const t=QQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},lJ=(e,n)=>{const t=JQ(e);return{name:t.name,fn:t.fn,options:[e,n]}},uJ=(e,n)=>{const t=eJ(e);return{name:t.name,fn:t.fn,options:[e,n]}},Kh=(e,n)=>{const t=nJ(e);return{name:t.name,fn:t.fn,options:[e,n]}},ML=(e,n)=>{const t=sJ(e);return{name:t.name,fn:t.fn,options:[e,n]}};function DL(e){const n=S.useRef(void 0),t=S.useCallback(i=>{const r=e.map(a=>{if(a!=null){if(typeof a=="function"){const o=a,l=o(i);return typeof l=="function"?l:()=>{o(null)}}return a.current=i,()=>{a.current=null}}});return()=>{r.forEach(a=>a==null?void 0:a())}},e);return S.useMemo(()=>e.every(i=>i==null)?null:i=>{n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=t(i))},e)}const cJ="data-floating-ui-focusable",fE="active",dE="selected",fJ={...Iz};let hE=!1,dJ=0;const mE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dJ++;function hJ(){const[e,n]=S.useState(()=>hE?mE():void 0);return so(()=>{e==null&&n(mE())},[]),S.useEffect(()=>{hE=!0},[]),e}const mJ=fJ.useId,RL=mJ||hJ;function pJ(){const e=new Map;return{emit(n,t){var i;(i=e.get(n))==null||i.forEach(r=>r(t))},on(n,t){e.has(n)||e.set(n,new Set),e.get(n).add(t)},off(n,t){var i;(i=e.get(n))==null||i.delete(t)}}}const vJ=S.createContext(null),gJ=S.createContext(null),vC=()=>{var e;return((e=S.useContext(vJ))==null?void 0:e.id)||null},gC=()=>S.useContext(gJ);function yC(e){return"data-floating-ui-"+e}function da(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const pE=yC("safe-polygon");function Rg(e,n,t){if(t&&!zS(t))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const i=e();return typeof i=="number"?i:i==null?void 0:i[n]}return e==null?void 0:e[n]}function Ek(e){return typeof e=="function"?e():e}function PL(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,dataRef:r,events:a,elements:o}=e,{enabled:l=!0,delay:u=0,handleClose:f=null,mouseOnly:h=!1,restMs:d=0,move:p=!0}=n,g=gC(),b=vC(),w=Jv(f),k=Jv(u),_=Jv(t),x=Jv(d),C=S.useRef(),T=S.useRef(-1),A=S.useRef(),O=S.useRef(-1),M=S.useRef(!0),$=S.useRef(!1),q=S.useRef(()=>{}),R=S.useRef(!1),I=to(()=>{var L;const H=(L=r.current.openEvent)==null?void 0:L.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"});S.useEffect(()=>{if(!l)return;function L(H){let{open:Y}=H;Y||(da(T),da(O),M.current=!0,R.current=!1)}return a.on("openchange",L),()=>{a.off("openchange",L)}},[l,a]),S.useEffect(()=>{if(!l||!w.current||!t)return;function L(Y){I()&&i(!1,Y,"hover")}const H=yu(o.floating).documentElement;return H.addEventListener("mouseleave",L),()=>{H.removeEventListener("mouseleave",L)}},[o.floating,t,i,l,w,I]);const z=S.useCallback(function(L,H,Y){H===void 0&&(H=!0),Y===void 0&&(Y="hover");const P=Rg(k.current,"close",C.current);P&&!A.current?(da(T),T.current=window.setTimeout(()=>i(!1,L,Y),P)):H&&(da(T),i(!1,L,Y))},[k,i]),W=to(()=>{q.current(),A.current=void 0}),U=to(()=>{if($.current){const L=yu(o.floating).body;L.style.pointerEvents="",L.removeAttribute(pE),$.current=!1}}),N=to(()=>r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1);S.useEffect(()=>{if(!l)return;function L(V){if(da(T),M.current=!1,h&&!zS(C.current)||Ek(x.current)>0&&!Rg(k.current,"open"))return;const B=Rg(k.current,"open",C.current);B?T.current=window.setTimeout(()=>{_.current||i(!0,V,"hover")},B):t||i(!0,V,"hover")}function H(V){if(N()){U();return}q.current();const B=yu(o.floating);if(da(O),R.current=!1,w.current&&r.current.floatingContext){t||da(T),A.current=w.current({...r.current.floatingContext,tree:g,x:V.clientX,y:V.clientY,onClose(){U(),W(),N()||z(V,!0,"safe-polygon")}});const ie=A.current;B.addEventListener("mousemove",ie),q.current=()=>{B.removeEventListener("mousemove",ie)};return}(C.current==="touch"?!hm(o.floating,V.relatedTarget):!0)&&z(V)}function Y(V){N()||r.current.floatingContext&&(w.current==null||w.current({...r.current.floatingContext,tree:g,x:V.clientX,y:V.clientY,onClose(){U(),W(),N()||z(V)}})(V))}function P(){da(T)}function G(V){N()||z(V,!1)}if(Xt(o.domReference)){const V=o.domReference,B=o.floating;return t&&V.addEventListener("mouseleave",Y),p&&V.addEventListener("mousemove",L,{once:!0}),V.addEventListener("mouseenter",L),V.addEventListener("mouseleave",H),B&&(B.addEventListener("mouseleave",Y),B.addEventListener("mouseenter",P),B.addEventListener("mouseleave",G)),()=>{t&&V.removeEventListener("mouseleave",Y),p&&V.removeEventListener("mousemove",L),V.removeEventListener("mouseenter",L),V.removeEventListener("mouseleave",H),B&&(B.removeEventListener("mouseleave",Y),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",G))}}},[o,l,e,h,p,z,W,U,i,t,_,g,k,w,r,N,x]),so(()=>{var L;if(l&&t&&(L=w.current)!=null&&(L=L.__options)!=null&&L.blockPointerEvents&&I()){$.current=!0;const Y=o.floating;if(Xt(o.domReference)&&Y){var H;const P=yu(o.floating).body;P.setAttribute(pE,"");const G=o.domReference,V=g==null||(H=g.nodesRef.current.find(B=>B.id===b))==null||(H=H.context)==null?void 0:H.elements.floating;return V&&(V.style.pointerEvents=""),P.style.pointerEvents="none",G.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{P.style.pointerEvents="",G.style.pointerEvents="",Y.style.pointerEvents=""}}}},[l,t,b,o,g,w,I]),so(()=>{t||(C.current=void 0,R.current=!1,W(),U())},[t,W,U]),S.useEffect(()=>()=>{W(),da(T),da(O),U()},[l,o.domReference,W,U]);const D=S.useMemo(()=>{function L(H){C.current=H.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(H){const{nativeEvent:Y}=H;function P(){!M.current&&!_.current&&i(!0,Y,"hover")}h&&!zS(C.current)||t||Ek(x.current)===0||R.current&&H.movementX**2+H.movementY**2<2||(da(O),C.current==="touch"?P():(R.current=!0,O.current=window.setTimeout(P,Ek(x.current))))}}},[h,i,t,_,x]);return S.useMemo(()=>l?{reference:D}:{},[l,D])}const IS=()=>{},NL=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:IS,setState:IS,isInstantPhase:!1}),yJ=()=>S.useContext(NL);function $L(e){const{children:n,delay:t,timeoutMs:i=0}=e,[r,a]=S.useReducer((u,f)=>({...u,...f}),{delay:t,timeoutMs:i,initialDelay:t,currentId:null,isInstantPhase:!1}),o=S.useRef(null),l=S.useCallback(u=>{a({currentId:u})},[]);return so(()=>{r.currentId?o.current===null?o.current=r.currentId:r.isInstantPhase||a({isInstantPhase:!0}):(r.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[r.currentId,r.isInstantPhase]),v.jsx(NL.Provider,{value:S.useMemo(()=>({...r,setState:a,setCurrentId:l}),[r,l]),children:n})}function zL(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,floatingId:r}=e,{id:a,enabled:o=!0}=n,l=a??r,u=yJ(),{currentId:f,setCurrentId:h,initialDelay:d,setState:p,timeoutMs:g}=u;return so(()=>{o&&f&&(p({delay:{open:1,close:Rg(d,"close")}}),f!==l&&i(!1))},[o,l,i,p,f,d]),so(()=>{function b(){i(!1),p({delay:d,currentId:null})}if(o&&f&&!t&&f===l){if(g){const w=window.setTimeout(b,g);return()=>{clearTimeout(w)}}b()}},[o,t,p,f,l,i,d,g]),so(()=>{o&&(h===IS||!t||h(l))},[o,t,h,l]),u}const bJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},wJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},vE=e=>{var n,t;return{escapeKey:typeof e=="boolean"?e:(n=e==null?void 0:e.escapeKey)!=null?n:!1,outsidePress:typeof e=="boolean"?e:(t=e==null?void 0:e.outsidePress)!=null?t:!0}};function LL(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,elements:r,dataRef:a}=e,{enabled:o=!0,escapeKey:l=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:g,capture:b}=n,w=gC(),k=to(typeof u=="function"?u:()=>!1),_=typeof u=="function"?k:u,x=S.useRef(!1),{escapeKey:C,outsidePress:T}=vE(g),{escapeKey:A,outsidePress:O}=vE(b),M=S.useRef(!1),$=to(U=>{var N;if(!t||!o||!l||U.key!=="Escape"||M.current)return;const D=(N=a.current.floatingContext)==null?void 0:N.nodeId,L=w?Mg(w.nodesRef.current,D):[];if(!C&&(U.stopPropagation(),L.length>0)){let H=!0;if(L.forEach(Y=>{var P;if((P=Y.context)!=null&&P.open&&!Y.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}i(!1,vQ(U)?U.nativeEvent:U,"escape-key")}),q=to(U=>{var N;const D=()=>{var L;$(U),(L=Uc(U))==null||L.removeEventListener("keydown",D)};(N=Uc(U))==null||N.addEventListener("keydown",D)}),R=to(U=>{var N;const D=a.current.insideReactTree;a.current.insideReactTree=!1;const L=x.current;if(x.current=!1,f==="click"&&L||D||typeof _=="function"&&!_(U))return;const H=Uc(U),Y="["+yC("inert")+"]",P=yu(r.floating).querySelectorAll(Y);let G=Xt(H)?H:null;for(;G&&!es(G);){const ie=ss(G);if(es(ie)||!Xt(ie))break;G=ie}if(P.length&&Xt(H)&&!dQ(H)&&!hm(H,r.floating)&&Array.from(P).every(ie=>!hm(G,ie)))return;if(Ca(H)&&W){const ie=es(H),re=ka(H),Z=/auto|scroll/,le=ie||Z.test(re.overflowX),ee=ie||Z.test(re.overflowY),se=le&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,ke=ee&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,te=re.direction==="rtl",$e=ke&&(te?U.offsetX<=H.offsetWidth-H.clientWidth:U.offsetX>H.clientWidth),xe=se&&U.offsetY>H.clientHeight;if($e||xe)return}const V=(N=a.current.floatingContext)==null?void 0:N.nodeId,B=w&&Mg(w.nodesRef.current,V).some(ie=>{var re;return Ak(U,(re=ie.context)==null?void 0:re.elements.floating)});if(Ak(U,r.floating)||Ak(U,r.domReference)||B)return;const Q=w?Mg(w.nodesRef.current,V):[];if(Q.length>0){let ie=!0;if(Q.forEach(re=>{var Z;if((Z=re.context)!=null&&Z.open&&!re.context.dataRef.current.__outsidePressBubbles){ie=!1;return}}),!ie)return}i(!1,U,"outside-press")}),I=to(U=>{var N;const D=()=>{var L;R(U),(L=Uc(U))==null||L.removeEventListener(f,D)};(N=Uc(U))==null||N.addEventListener(f,D)});S.useEffect(()=>{if(!t||!o)return;a.current.__escapeKeyBubbles=C,a.current.__outsidePressBubbles=T;let U=-1;function N(P){i(!1,P,"ancestor-scroll")}function D(){window.clearTimeout(U),M.current=!0}function L(){U=window.setTimeout(()=>{M.current=!1},Ey()?5:0)}const H=yu(r.floating);l&&(H.addEventListener("keydown",A?q:$,A),H.addEventListener("compositionstart",D),H.addEventListener("compositionend",L)),_&&H.addEventListener(f,O?I:R,O);let Y=[];return p&&(Xt(r.domReference)&&(Y=ns(r.domReference)),Xt(r.floating)&&(Y=Y.concat(ns(r.floating))),!Xt(r.reference)&&r.reference&&r.reference.contextElement&&(Y=Y.concat(ns(r.reference.contextElement)))),Y=Y.filter(P=>{var G;return P!==((G=H.defaultView)==null?void 0:G.visualViewport)}),Y.forEach(P=>{P.addEventListener("scroll",N,{passive:!0})}),()=>{l&&(H.removeEventListener("keydown",A?q:$,A),H.removeEventListener("compositionstart",D),H.removeEventListener("compositionend",L)),_&&H.removeEventListener(f,O?I:R,O),Y.forEach(P=>{P.removeEventListener("scroll",N)}),window.clearTimeout(U)}},[a,r,l,_,f,t,i,p,o,C,T,$,A,q,R,O,I]),S.useEffect(()=>{a.current.insideReactTree=!1},[a,_,f]);const z=S.useMemo(()=>({onKeyDown:$,...h&&{[bJ[d]]:U=>{i(!1,U.nativeEvent,"reference-press")},...d!=="click"&&{onClick(U){i(!1,U.nativeEvent,"reference-press")}}}}),[$,i,h,d]),W=S.useMemo(()=>{function U(N){N.button===0&&(x.current=!0)}return{onKeyDown:$,onMouseDown:U,onMouseUp:U,[wJ[f]]:()=>{a.current.insideReactTree=!0}}},[$,f,a]);return S.useMemo(()=>o?{reference:z,floating:W}:{},[o,z,W])}function kJ(e){const{open:n=!1,onOpenChange:t,elements:i}=e,r=RL(),a=S.useRef({}),[o]=S.useState(()=>pJ()),l=vC()!=null,[u,f]=S.useState(i.reference),h=to((g,b,w)=>{a.current.openEvent=g?b:void 0,o.emit("openchange",{open:g,event:b,reason:w,nested:l}),t==null||t(g,b,w)}),d=S.useMemo(()=>({setPositionReference:f}),[]),p=S.useMemo(()=>({reference:u||i.reference||null,floating:i.floating||null,domReference:i.reference}),[u,i.reference,i.floating]);return S.useMemo(()=>({dataRef:a,open:n,onOpenChange:h,elements:p,events:o,floatingId:r,refs:d}),[n,h,p,o,r,d])}function Ry(e){e===void 0&&(e={});const{nodeId:n}=e,t=kJ({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||t,r=i.elements,[a,o]=S.useState(null),[l,u]=S.useState(null),h=(r==null?void 0:r.domReference)||a,d=S.useRef(null),p=gC();so(()=>{h&&(d.current=h)},[h]);const g=oJ({...e,elements:{...r,...l&&{reference:l}}}),b=S.useCallback(C=>{const T=Xt(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;u(T),g.refs.setReference(T)},[g.refs]),w=S.useCallback(C=>{(Xt(C)||C===null)&&(d.current=C,o(C)),(Xt(g.refs.reference.current)||g.refs.reference.current===null||C!==null&&!Xt(C))&&g.refs.setReference(C)},[g.refs]),k=S.useMemo(()=>({...g.refs,setReference:w,setPositionReference:b,domReference:d}),[g.refs,w,b]),_=S.useMemo(()=>({...g.elements,domReference:h}),[g.elements,h]),x=S.useMemo(()=>({...g,...i,refs:k,elements:_,nodeId:n}),[g,k,_,n,i]);return so(()=>{i.dataRef.current.floatingContext=x;const C=p==null?void 0:p.nodesRef.current.find(T=>T.id===n);C&&(C.context=x)}),S.useMemo(()=>({...g,context:x,refs:k,elements:_}),[g,k,_,x])}function Mk(){return uQ()&&lQ()}function _J(e,n){n===void 0&&(n={});const{open:t,onOpenChange:i,events:r,dataRef:a,elements:o}=e,{enabled:l=!0,visibleOnly:u=!0}=n,f=S.useRef(!1),h=S.useRef(-1),d=S.useRef(!0);S.useEffect(()=>{if(!l)return;const g=jr(o.domReference);function b(){!t&&Ca(o.domReference)&&o.domReference===nE(yu(o.domReference))&&(f.current=!0)}function w(){d.current=!0}function k(){d.current=!1}return g.addEventListener("blur",b),Mk()&&(g.addEventListener("keydown",w,!0),g.addEventListener("pointerdown",k,!0)),()=>{g.removeEventListener("blur",b),Mk()&&(g.removeEventListener("keydown",w,!0),g.removeEventListener("pointerdown",k,!0))}},[o.domReference,t,l]),S.useEffect(()=>{if(!l)return;function g(b){let{reason:w}=b;(w==="reference-press"||w==="escape-key")&&(f.current=!0)}return r.on("openchange",g),()=>{r.off("openchange",g)}},[r,l]),S.useEffect(()=>()=>{da(h)},[]);const p=S.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(g){if(f.current)return;const b=Uc(g.nativeEvent);if(u&&Xt(b)){if(Mk()&&!g.relatedTarget){if(!d.current&&!hQ(b))return}else if(!mQ(b))return}i(!0,g.nativeEvent,"focus")},onBlur(g){f.current=!1;const b=g.relatedTarget,w=g.nativeEvent,k=Xt(b)&&b.hasAttribute(yC("focus-guard"))&&b.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var _;const x=nE(o.domReference?o.domReference.ownerDocument:document);!b&&x===o.domReference||hm((_=a.current.floatingContext)==null?void 0:_.refs.floating.current,x)||hm(o.domReference,x)||k||i(!1,w,"focus")})}}),[a,o.domReference,i,u]);return S.useMemo(()=>l?{reference:p}:{},[l,p])}function Dk(e,n,t){const i=new Map,r=t==="item";let a=e;if(r&&e){const{[fE]:o,[dE]:l,...u}=e;a=u}return{...t==="floating"&&{tabIndex:-1,[cJ]:""},...a,...n.map(o=>{const l=o?o[t]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(u=>{let[f,h]=u;if(!(r&&[fE,dE].includes(f)))if(f.indexOf("on")===0){if(i.has(f)||i.set(f,[]),typeof h=="function"){var d;(d=i.get(f))==null||d.push(h),o[f]=function(){for(var p,g=arguments.length,b=new Array(g),w=0;wk(...b)).find(k=>k!==void 0)}}}else o[f]=h}),o),{})}}function IL(e){e===void 0&&(e=[]);const n=e.map(l=>l==null?void 0:l.reference),t=e.map(l=>l==null?void 0:l.floating),i=e.map(l=>l==null?void 0:l.item),r=S.useCallback(l=>Dk(l,e,"reference"),n),a=S.useCallback(l=>Dk(l,e,"floating"),t),o=S.useCallback(l=>Dk(l,e,"item"),i);return S.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:o}),[r,a,o])}const xJ=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function BL(e,n){var t,i;n===void 0&&(n={});const{open:r,elements:a,floatingId:o}=e,{enabled:l=!0,role:u="dialog"}=n,f=RL(),h=((t=a.domReference)==null?void 0:t.id)||f,d=S.useMemo(()=>{var x;return((x=pQ(a.floating))==null?void 0:x.id)||o},[a.floating,o]),p=(i=xJ.get(u))!=null?i:u,b=vC()!=null,w=S.useMemo(()=>p==="tooltip"||u==="label"?{["aria-"+(u==="label"?"labelledby":"describedby")]:r?d:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":r?d:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:h},...p==="menu"&&b&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[p,d,b,r,h,u]),k=S.useMemo(()=>{const x={id:d,...p&&{role:p}};return p==="tooltip"||u==="label"?x:{...x,...p==="menu"&&{"aria-labelledby":h}}},[p,d,h,u]),_=S.useCallback(x=>{let{active:C,selected:T}=x;const A={role:"option",...C&&{id:d+"-fui-option"}};switch(u){case"select":case"combobox":return{...A,"aria-selected":T}}return{}},[d,u]);return S.useMemo(()=>l?{reference:w,floating:k,item:_}:{},[l,w,k,_])}const FL={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},qL=(e,{scrollbarSize:n,overscrollBehavior:t,scrollbars:i})=>{let r=t;return t&&i&&(i==="x"?r=`${t} auto`:i==="y"&&(r=`auto ${t}`)),{root:{"--scrollarea-scrollbar-size":ve(n),"--scrollarea-over-scroll-behavior":r}}},cr=Pe(e=>{const n=ye("ScrollArea",FL,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,scrollbarSize:l,vars:u,type:f,scrollHideDelay:h,viewportProps:d,viewportRef:p,onScrollPositionChange:g,children:b,offsetScrollbars:w,scrollbars:k,onBottomReached:_,onTopReached:x,onLeftReached:C,onRightReached:T,overscrollBehavior:A,startScrollPosition:O,attributes:M,...$}=n,[q,R]=S.useState(!1),[I,z]=S.useState(!1),[W,U]=S.useState(!1),N=S.useRef(!0),D=S.useRef(!1),L=S.useRef(!0),H=S.useRef(!1),Y=Ze({name:"ScrollArea",props:n,classes:lC,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:M,vars:u,varsResolver:qL}),P=S.useRef(null),[G,V]=S.useState(null),B=DL([p,P,S.useCallback(Q=>{V(ie=>ie===Q?ie:Q)},[])]);return bl(w==="present"?G:null,()=>{const Q=P.current;Q&&(z(Q.scrollHeight>Q.clientHeight),U(Q.scrollWidth>Q.clientWidth))}),ps(()=>{O&&P.current&&P.current.scrollTo({left:O.x??0,top:O.y??0})},[]),v.jsxs(lL,{getStyles:Y,type:f==="never"?"always":f,scrollHideDelay:h,scrollbars:k,...Y("root"),...$,children:[v.jsx(yL,{...d,...Y("viewport",{style:d==null?void 0:d.style}),ref:B,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!W?"true":void 0,"data-vertical-hidden":w==="present"&&!I?"true":void 0,onScroll:Q=>{var Oe;(Oe=d==null?void 0:d.onScroll)==null||Oe.call(d,Q),g==null||g({x:Q.currentTarget.scrollLeft,y:Q.currentTarget.scrollTop});const{scrollTop:ie,scrollHeight:re,clientHeight:Z,scrollLeft:le,scrollWidth:ee,clientWidth:se}=Q.currentTarget,ke=ie-(re-Z)>=-.8,te=ie===0;ke&&!D.current&&(_==null||_()),te&&!N.current&&(x==null||x()),D.current=ke,N.current=te;const $e=le-(ee-se)>=-.8,xe=le===0;$e&&!H.current&&(T==null||T()),xe&&!L.current&&(C==null||C()),H.current=$e,L.current=xe},children:b}),(k==="xy"||k==="x")&&v.jsx(MS,{...Y("scrollbar"),orientation:"horizontal","data-hidden":f==="never"||w==="present"&&!W?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:v.jsx(DS,{...Y("thumb")})}),(k==="xy"||k==="y")&&v.jsx(MS,{...Y("scrollbar"),orientation:"vertical","data-hidden":f==="never"||w==="present"&&!I?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:v.jsx(DS,{...Y("thumb")})}),v.jsx(BZ,{...Y("corner"),"data-hovered":q||void 0,"data-hidden":f==="never"||void 0})]})});cr.displayName="@mantine/core/ScrollArea";const bC=Pe(e=>{const{children:n,classNames:t,styles:i,scrollbarSize:r,scrollHideDelay:a,type:o,dir:l,offsetScrollbars:u,overscrollBehavior:f,viewportRef:h,onScrollPositionChange:d,unstyled:p,variant:g,viewportProps:b,scrollbars:w,style:k,vars:_,onBottomReached:x,onTopReached:C,startScrollPosition:T,onOverflowChange:A,...O}=ye("ScrollAreaAutosize",FL,e),M=S.useRef(null),[$,q]=S.useState(null),R=DL([h,M,S.useCallback(U=>{q(N=>N===U?N:U)},[])]),I=S.useRef(!1),z=S.useRef(!1),W=S.useEffectEvent(()=>{const U=M.current;if(!U||!A)return;const N=U.scrollHeight>U.clientHeight;N!==I.current&&(z.current?A(N):(z.current=!0,N&&A(!0)),I.current=N)});return bl(A?$:null,W),v.jsx(de,{...O,variant:g,style:[{display:"flex",overflow:"hidden"},k],children:v.jsx(de,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...w==="y"&&{minWidth:0},...w==="x"&&{minHeight:0},...w==="xy"&&{minWidth:0,minHeight:0},...w===!1&&{minWidth:0,minHeight:0}},children:v.jsx(cr,{classNames:t,styles:i,scrollHideDelay:a,scrollbarSize:r,type:o,dir:l,offsetScrollbars:u,overscrollBehavior:f,viewportRef:R,onScrollPositionChange:d,unstyled:p,variant:g,viewportProps:b,vars:_,scrollbars:w,onBottomReached:x,onTopReached:C,startScrollPosition:T,"data-autosize":"true",children:n})})})});cr.classes=lC;cr.varsResolver=qL;bC.displayName="@mantine/core/ScrollAreaAutosize";bC.classes=lC;cr.Autosize=bC;var HL={root:"m_87cf2631"};const SJ={__staticSelector:"UnstyledButton"},Mt=ki(e=>{const n=ye("UnstyledButton",SJ,e),{className:t,component:i="button",__staticSelector:r,unstyled:a,classNames:o,styles:l,style:u,attributes:f,...h}=n;return v.jsx(de,{...Ze({name:r,props:n,classes:HL,className:t,style:u,classNames:o,styles:l,unstyled:a,attributes:f})("root",{focusable:!0}),component:i,type:i==="button"?"button":void 0,...h})});Mt.classes=HL;Mt.displayName="@mantine/core/UnstyledButton";var UL={root:"m_515a97f8"};const wC=Pe(e=>{const n=ye("VisuallyHidden",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,attributes:u,...f}=n;return v.jsx(de,{component:"span",...Ze({name:"VisuallyHidden",classes:UL,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:u})("root"),...f})});wC.classes=UL;wC.displayName="@mantine/core/VisuallyHidden";var VL={root:"m_1b7284a3"};const WL=(e,{radius:n,shadow:t})=>({root:{"--paper-radius":n===void 0?void 0:Ut(n),"--paper-shadow":Q6(t)}}),Et=ki(e=>{const n=ye("Paper",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,withBorder:l,vars:u,radius:f,shadow:h,variant:d,mod:p,attributes:g,...b}=n,w=Ze({name:"Paper",props:n,classes:VL,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,vars:u,varsResolver:WL});return v.jsx(de,{mod:[{"data-with-border":l},p],...w("root"),variant:d,...b})});Et.classes=VL;Et.varsResolver=WL;Et.displayName="@mantine/core/Paper";function gE(e,n,t,i){return e==="center"||i==="center"?{top:n}:e==="end"?{bottom:t}:e==="start"?{top:t}:{}}function yE(e,n,t,i,r){return e==="center"||i==="center"?{left:n}:e==="end"?{[r==="ltr"?"right":"left"]:t}:e==="start"?{[r==="ltr"?"left":"right"]:t}:{}}const CJ={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function jJ({position:e,arrowSize:n,arrowOffset:t,arrowRadius:i,arrowPosition:r,arrowX:a,arrowY:o,dir:l}){const[u,f="center"]=e.split("-"),h={width:n,height:n,transform:"rotate(45deg)",position:"absolute",[CJ[u]]:i},d=-n/2;return u==="left"?{...h,...gE(f,o,t,r),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:u==="right"?{...h,...gE(f,o,t,r),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:u==="top"?{...h,...yE(f,a,t,r,l),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:u==="bottom"?{...h,...yE(f,a,t,r,l),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function Jg({position:e,arrowSize:n,arrowOffset:t,arrowRadius:i,arrowPosition:r,visible:a,arrowX:o,arrowY:l,style:u,...f}){const{dir:h}=Hu();return a?v.jsx("div",{...f,style:{...u,...jJ({position:e,arrowSize:n,arrowOffset:t,arrowRadius:i,arrowPosition:r,dir:h,arrowX:o,arrowY:l})}}):null}Jg.displayName="@mantine/core/FloatingArrow";function GL(e,n){if(e==="rtl"&&(n.includes("right")||n.includes("left"))){const[t,i]=n.split("-"),r=t==="right"?"left":"right";return i===void 0?r:`${r}-${i}`}return n}function YL({open:e,close:n,openDelay:t,closeDelay:i}){const r=S.useRef(-1),a=S.useRef(-1),o=()=>{window.clearTimeout(r.current),window.clearTimeout(a.current)},l=()=>{o(),t===0||t===void 0?e():r.current=window.setTimeout(e,t)},u=()=>{o(),i===0||i===void 0?n():a.current=window.setTimeout(n,i)};return S.useEffect(()=>o,[]),{openDropdown:l,closeDropdown:u}}var KL={root:"m_9814e45f"};const AJ={zIndex:xa("modal")},XL=(e,{gradient:n,color:t,backgroundOpacity:i,blur:r,radius:a,zIndex:o})=>({root:{"--overlay-bg":n||(t!==void 0||i!==void 0)&&nl(t||"#000",i??.6)||void 0,"--overlay-filter":r?`blur(${ve(r)})`:void 0,"--overlay-radius":a===void 0?void 0:Ut(a),"--overlay-z-index":o==null?void 0:o.toString()}}),up=ki(e=>{const n=ye("Overlay",AJ,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,fixed:u,center:f,children:h,radius:d,zIndex:p,gradient:g,blur:b,color:w,backgroundOpacity:k,mod:_,attributes:x,...C}=n;return v.jsx(de,{...Ze({name:"Overlay",props:n,classes:KL,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:x,vars:l,varsResolver:XL})("root"),mod:[{center:f,fixed:u},_],...C,children:h})});up.classes=KL;up.varsResolver=XL;up.displayName="@mantine/core/Overlay";function Rk(e){const n=document.createElement("div");return n.setAttribute("data-portal","true"),typeof e.className=="string"&&n.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(n.style,e.style),typeof e.id=="string"&&n.setAttribute("id",e.id),n}function OJ({target:e,reuseTargetNode:n,...t}){if(e)return typeof e=="string"?document.querySelector(e)||Rk(t):e;if(n){const i=document.querySelector("[data-mantine-shared-portal-node]");if(i)return i;const r=Rk(t);return r.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(r),r}return Rk(t)}const TJ={reuseTargetNode:!0},ZL=Pe(e=>{const{children:n,target:t,reuseTargetNode:i,ref:r,...a}=ye("Portal",TJ,e),[o,l]=S.useState(!1),u=S.useRef(null);return ps(()=>(l(!0),u.current=OJ({target:t,reuseTargetNode:i,...a}),cm(r,u.current),!t&&!i&&u.current&&document.body.appendChild(u.current),()=>{!t&&!i&&u.current&&document.body.removeChild(u.current)}),[t]),!o||!u.current?null:sl.createPortal(v.jsx(v.Fragment,{children:n}),u.current)});ZL.displayName="@mantine/core/Portal";const wl=Pe(({withinPortal:e=!0,children:n,...t})=>op()==="test"||!e?v.jsx(v.Fragment,{children:n}):v.jsx(ZL,{...t,children:n}));wl.displayName="@mantine/core/OptionalPortal";const bh=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),eg={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:{...bh("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...bh("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...bh("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...bh("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...bh("top"),common:{transformOrigin:"top right"}}},bE={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function wE({transition:e,state:n,duration:t,timingFunction:i}){const r={WebkitBackfaceVisibility:"hidden",transitionDuration:`${t}ms`,transitionTimingFunction:i};return typeof e=="string"?e in eg?{transitionProperty:eg[e].transitionProperty,...r,...eg[e].common,...eg[e][bE[n]]}:{}:{transitionProperty:e.transitionProperty,...r,...e.common,...e[bE[n]]}}function EJ({duration:e,exitDuration:n,timingFunction:t,mounted:i,onEnter:r,onExit:a,onEntered:o,onExited:l,enterDelay:u,exitDelay:f}){const h=ci(),d=eC(),p=h.respectReducedMotion?d:!1,[g,b]=S.useState(p?0:e),[w,k]=S.useState(i?"entered":"exited"),_=S.useRef(-1),x=S.useRef(-1),C=S.useRef(-1);function T(){window.clearTimeout(_.current),window.clearTimeout(x.current),cancelAnimationFrame(C.current)}const A=M=>{T();const $=M?r:a,q=M?o:l,R=p?0:M?e:n;b(R),R===0?(typeof $=="function"&&$(),typeof q=="function"&&q(),k(M?"entered":"exited")):C.current=requestAnimationFrame(()=>{Lh.flushSync(()=>{k(M?"pre-entering":"pre-exiting")}),C.current=requestAnimationFrame(()=>{typeof $=="function"&&$(),k(M?"entering":"exiting"),_.current=window.setTimeout(()=>{typeof q=="function"&&q(),k(M?"entered":"exited")},R)})})},O=M=>{if(T(),typeof(M?u:f)!="number"){A(M);return}x.current=window.setTimeout(()=>{A(M)},M?u:f)};return os(()=>{O(i)},[i]),S.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:w,transitionTimingFunction:t||"ease"}}function ls({keepMounted:e,transition:n="fade",duration:t=250,exitDuration:i=t,mounted:r,children:a,timingFunction:o="ease",onExit:l,onEntered:u,onEnter:f,onExited:h,enterDelay:d,exitDelay:p}){const g=op(),{transitionDuration:b,transitionStatus:w,transitionTimingFunction:k}=EJ({mounted:r,exitDuration:i,duration:t,timingFunction:o,onExit:l,onEntered:u,onEnter:f,onExited:h,enterDelay:d,exitDelay:p});if(g==="test")return r?v.jsx(v.Fragment,{children:a({})}):e?a({display:"none"}):null;if(b===0)return e?v.jsx(S.Activity,{mode:r?"visible":"hidden",children:a({})}):r?v.jsx(v.Fragment,{children:a({})}):null;const _=w==="exited";return e?v.jsx(S.Activity,{mode:_?"hidden":"visible",children:a(_?{}:wE({transition:n,duration:b,state:w,timingFunction:k}))}):_?null:v.jsx(v.Fragment,{children:a(wE({transition:n,duration:b,state:w,timingFunction:k}))})}ls.displayName="@mantine/core/Transition";const MJ={duration:100,transition:"fade"};function kE(e,n){return{...MJ,...n,...e}}const[DJ,QL]=Or("Popover component was not found in the tree");function Py({children:e,active:n=!0,refProp:t="ref",innerRef:i}){const r=Vt(vX(n),i),a=Cl(e);return a?S.cloneElement(a,{[t]:r}):e}function JL(e){return v.jsx(wC,{tabIndex:-1,"data-autofocus":!0,...e})}Py.displayName="@mantine/core/FocusTrap";JL.displayName="@mantine/core/FocusTrapInitialFocus";Py.InitialFocus=JL;var eI={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const kC=Pe(e=>{var k,_,x,C;const n=ye("PopoverDropdown",null,e),{className:t,style:i,vars:r,children:a,onKeyDownCapture:o,variant:l,classNames:u,styles:f,ref:h,...d}=n,p=QL(),g=Bz({opened:p.opened,shouldReturnFocus:p.returnFocus}),b=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=Vt(h,p.floating);return p.disabled?null:v.jsx(wl,{...p.portalProps,withinPortal:p.withinPortal,children:v.jsx(ls,{mounted:p.opened,...p.transitionProps,transition:((k=p.transitionProps)==null?void 0:k.transition)||"fade",duration:((_=p.transitionProps)==null?void 0:_.duration)??150,keepMounted:p.keepMounted,exitDuration:typeof((x=p.transitionProps)==null?void 0:x.exitDuration)=="number"?p.transitionProps.exitDuration:(C=p.transitionProps)==null?void 0:C.duration,children:T=>{var A;return v.jsx(Py,{active:p.trapFocus&&p.opened,innerRef:w,children:v.jsxs(de,{...b,...d,variant:l,onKeyDownCapture:iX(()=>{var O,M;(O=p.onClose)==null||O.call(p),(M=p.onDismiss)==null||M.call(p)},{active:p.closeOnEscape,onTrigger:g,onKeyDown:o}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:t,props:n,classNames:u,styles:f,style:[{...T,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:ve(p.width),...p.referenceHidden?{display:"none"}:null},(A=p.resolvedStyles)==null?void 0:A.dropdown,f==null?void 0:f.dropdown,i]}),children:[a,v.jsx(Jg,{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:n,classNames:u,styles:f})})]})})}})})});kC.classes=eI;kC.displayName="@mantine/core/PopoverDropdown";const RJ={refProp:"ref",popupType:"dialog"},nI=Pe(e=>{const{children:n,refProp:t,popupType:i,ref:r,...a}=ye("PopoverTarget",RJ,e),o=Cl(n);if(!o)throw new 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");const l=a,u=QL(),f=Vt(u.reference,Sy(o),r),h=u.withRoles?{"aria-haspopup":i,"aria-expanded":u.opened,"aria-controls":u.opened?u.getDropdownId():void 0,id:u.getTargetId()}:{},d=o.props;return S.cloneElement(o,{...l,...h,...u.targetProps,className:vn(u.targetProps.className,l.className,d.className),[t]:f,...u.controlled?null:{onClick:p=>{var g;u.onToggle(),(g=d.onClick)==null||g.call(d,p)}}})});nI.displayName="@mantine/core/PopoverTarget";function PJ(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function NJ(e,n,t){const i=PJ(e.middlewares),r=[EL(e.offset),uJ()];return e.dropdownVisible&&t!=="test"&&e.preventPositionChangeWhenVisible&&(i.flip=!1),i.flip&&r.push(typeof i.flip=="boolean"?Qg():Qg(i.flip)),i.shift&&r.push(pC(typeof i.shift=="boolean"?{limiter:cE(),padding:5}:{limiter:cE(),padding:5,...i.shift})),i.inline&&r.push(typeof i.inline=="boolean"?Kh():Kh(i.inline)),r.push(ML({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width==="target")&&r.push(lJ({...typeof i.size=="boolean"?{}:i.size,apply({rects:a,availableWidth:o,availableHeight:l,...u}){var h;const f=((h=n().refs.floating.current)==null?void 0:h.style)??{};i.size&&(typeof i.size=="object"&&i.size.apply?i.size.apply({rects:a,availableWidth:o,availableHeight:l,...u}):Object.assign(f,{maxWidth:`${o}px`,maxHeight:`${l}px`})),e.width==="target"&&Object.assign(f,{width:`${a.reference.width}px`})}})),r}function $J(e){const n=op(),[t,i]=Ai({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=S.useRef(t),a=()=>{t&&!e.disabled&&i(!1)},o=()=>{e.disabled||i(!t)},l=Ry({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:NJ(e,()=>l,n),whileElementsMounted:e.keepMounted?void 0:LS});return S.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&t)return LS(l.refs.reference.current,l.refs.floating.current,l.update)},[t,l.update]),os(()=>{var u;(u=e.onPositionChange)==null||u.call(e,l.placement),e.positionRef.current=l.placement},[l.placement,e.preventPositionChangeWhenVisible]),os(()=>{var u,f;t!==r.current&&(t?(f=e.onOpen)==null||f.call(e):(u=e.onClose)==null||u.call(e)),r.current=t},[t,e.onClose,e.onOpen]),ps(()=>{let u=-1;return t&&(u=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(u)}},[t,e.position]),{floating:l,controlled:typeof e.opened=="boolean",opened:t,onClose:a,onToggle:o}}const zJ={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,clickOutsideEvents:["mousedown","touchstart"],zIndex:xa("popover"),__staticSelector:"Popover",width:"max-content"},tI=(e,{radius:n,shadow:t})=>({dropdown:{"--popover-radius":n===void 0?void 0:Ut(n),"--popover-shadow":Q6(t)}});function Sn(e){var an,pn,Dn,wn,ln,tn,zn;const n=ye("Popover",zJ,e),{children:t,position:i,offset:r,onPositionChange:a,opened:o,transitionProps:l,onExitTransitionEnd:u,onEnterTransitionEnd:f,width:h,middlewares:d,withArrow:p,arrowSize:g,arrowOffset:b,arrowRadius:w,arrowPosition:k,unstyled:_,classNames:x,styles:C,closeOnClickOutside:T,withinPortal:A,portalProps:O,closeOnEscape:M,clickOutsideEvents:$,trapFocus:q,onClose:R,onDismiss:I,onOpen:z,onChange:W,zIndex:U,radius:N,shadow:D,id:L,defaultOpened:H,__staticSelector:Y,withRoles:P,disabled:G,returnFocus:V,variant:B,keepMounted:Q,vars:ie,floatingStrategy:re,withOverlay:Z,overlayProps:le,hideDetached:ee,attributes:se,preventPositionChangeWhenVisible:ke,...te}=n,$e=Ze({name:Y,props:n,classes:eI,classNames:x,styles:C,unstyled:_,attributes:se,rootSelector:"dropdown",vars:ie,varsResolver:tI}),{resolvedStyles:xe}=Wi({classNames:x,styles:C,props:n}),[Oe,ze]=S.useState(o??H??!1),we=S.useRef(i),Ce=S.useRef(null),[Ne,he]=S.useState(null),[He,Ye]=S.useState(null),{dir:We}=Hu(),Qe=op(),Je=Pi(L),oe=$J({middlewares:d,width:h,position:GL(We,i),offset:typeof r=="number"?r+(p?g/2:0):r,arrowRef:Ce,arrowOffset:b,onPositionChange:a,opened:o,defaultOpened:H,onChange:W,onOpen:z,onClose:R,onDismiss:I,strategy:re,dropdownVisible:Oe,setDropdownVisible:ze,positionRef:we,disabled:G,preventPositionChangeWhenVisible:ke,keepMounted:Q});sX(()=>{T&&(oe.onClose(),I==null||I())},$,[Ne,He]);const be=S.useCallback(De=>{he(De),oe.floating.refs.setReference(De)},[oe.floating.refs.setReference]),Ke=S.useCallback(De=>{Ye(De),oe.floating.refs.setFloating(De)},[oe.floating.refs.setFloating]),en=S.useCallback(()=>{var De;(De=l==null?void 0:l.onExited)==null||De.call(l),u==null||u(),ze(!1),ke||(we.current=i)},[l==null?void 0:l.onExited,u,ke,i]),Ae=S.useCallback(()=>{var De;(De=l==null?void 0:l.onEntered)==null||De.call(l),f==null||f()},[l==null?void 0:l.onEntered,f]);return v.jsxs(DJ,{value:{returnFocus:V,disabled:G,controlled:oe.controlled,reference:be,floating:Ke,x:oe.floating.x,y:oe.floating.y,arrowX:(Dn=(pn=(an=oe.floating)==null?void 0:an.middlewareData)==null?void 0:pn.arrow)==null?void 0:Dn.x,arrowY:(tn=(ln=(wn=oe.floating)==null?void 0:wn.middlewareData)==null?void 0:ln.arrow)==null?void 0:tn.y,opened:oe.opened,arrowRef:Ce,transitionProps:{...l,onExited:en,onEntered:Ae},width:h,withArrow:p,arrowSize:g,arrowOffset:b,arrowRadius:w,arrowPosition:k,placement:oe.floating.placement,trapFocus:q,withinPortal:A,portalProps:O,zIndex:U,radius:N,shadow:D,closeOnEscape:M,onDismiss:I,onClose:oe.onClose,onToggle:oe.onToggle,getTargetId:()=>Je,getDropdownId:()=>`${Je}-dropdown`,withRoles:P,targetProps:te,__staticSelector:Y,classNames:x,styles:C,unstyled:_,variant:B,keepMounted:Q,getStyles:$e,resolvedStyles:xe,floatingStrategy:re,referenceHidden:ee&&Qe!=="test"?(zn=oe.floating.middlewareData.hide)==null?void 0:zn.referenceHidden:!1},children:[t,Z&&v.jsx(ls,{transition:"fade",mounted:oe.opened,duration:(l==null?void 0:l.duration)||250,exitDuration:(l==null?void 0:l.exitDuration)||250,children:De=>v.jsx(wl,{withinPortal:A,children:v.jsx(up,{...le,...$e("overlay",{className:le==null?void 0:le.className,style:[De,le==null?void 0:le.style]})})})})]})}Sn.Target=nI;Sn.Dropdown=kC;Sn.varsResolver=tI;Sn.displayName="@mantine/core/Popover";Sn.extend=e=>e;Sn.withProps=e=>{const n=t=>v.jsx(Sn,{...e,...t});return n.extend=Sn.extend,n.displayName=`WithProps(${Sn.displayName})`,n};var Ba={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"};const iI=({className:e,...n})=>v.jsxs(de,{component:"span",className:vn(Ba.barsLoader,e),...n,children:[v.jsx("span",{className:Ba.bar}),v.jsx("span",{className:Ba.bar}),v.jsx("span",{className:Ba.bar})]});iI.displayName="@mantine/core/Bars";const rI=({className:e,...n})=>v.jsxs(de,{component:"span",className:vn(Ba.dotsLoader,e),...n,children:[v.jsx("span",{className:Ba.dot}),v.jsx("span",{className:Ba.dot}),v.jsx("span",{className:Ba.dot})]});rI.displayName="@mantine/core/Dots";const aI=({className:e,...n})=>v.jsx(de,{component:"span",className:vn(Ba.ovalLoader,e),...n});aI.displayName="@mantine/core/Oval";const oI={bars:iI,oval:aI,dots:rI},LJ={loaders:oI,type:"oval"},sI=(e,{size:n,color:t})=>({root:{"--loader-size":In(n,"loader-size"),"--loader-color":t?ft(t,e):void 0}}),Ht=Pe(e=>{const n=ye("Loader",LJ,e),{size:t,color:i,type:r,vars:a,className:o,style:l,classNames:u,styles:f,unstyled:h,loaders:d,variant:p,children:g,attributes:b,...w}=n,k=Ze({name:"Loader",props:n,classes:Ba,className:o,style:l,classNames:u,styles:f,unstyled:h,attributes:b,vars:a,varsResolver:sI});return g?v.jsx(de,{...k("root"),...w,children:g}):v.jsx(de,{...k("root"),component:d[r],variant:p,size:t,...w})});Ht.defaultLoaders=oI;Ht.classes=Ba;Ht.varsResolver=sI;Ht.displayName="@mantine/core/Loader";var Hf={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const _E={orientation:"horizontal"},lI=(e,{borderWidth:n})=>({group:{"--ai-border-width":ve(n)}}),Ny=Pe(e=>{const n=ye("ActionIconGroup",_E,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,orientation:l,vars:u,borderWidth:f,variant:h,mod:d,attributes:p,...g}=ye("ActionIconGroup",_E,e);return v.jsx(de,{...Ze({name:"ActionIconGroup",props:n,classes:Hf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:p,vars:u,varsResolver:lI,rootSelector:"group"})("group"),variant:h,mod:[{"data-orientation":l},d],role:"group",...g})});Ny.classes=Hf;Ny.varsResolver=lI;Ny.displayName="@mantine/core/ActionIconGroup";const uI=(e,{radius:n,color:t,gradient:i,variant:r,autoContrast:a,size:o})=>{const l=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:a});return{groupSection:{"--section-height":In(o,"section-height"),"--section-padding-x":In(o,"section-padding-x"),"--section-fz":ai(o),"--section-radius":n===void 0?void 0:Ut(n),"--section-bg":t||r?l.background:void 0,"--section-color":l.color,"--section-bd":t||r?l.border:void 0}}},$y=Pe(e=>{const n=ye("ActionIconGroupSection",null,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,vars:l,variant:u,gradient:f,radius:h,autoContrast:d,attributes:p,...g}=n;return v.jsx(de,{...Ze({name:"ActionIconGroupSection",props:n,classes:Hf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:p,vars:l,varsResolver:uI,rootSelector:"groupSection"})("groupSection"),variant:u,...g})});$y.classes=Hf;$y.varsResolver=uI;$y.displayName="@mantine/core/ActionIconGroupSection";const cI=(e,{size:n,radius:t,variant:i,gradient:r,color:a,autoContrast:o})=>{const l=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:r,variant:i||"filled",autoContrast:o});return{root:{"--ai-size":In(n,"ai-size"),"--ai-radius":t===void 0?void 0:Ut(t),"--ai-bg":a||i?l.background:void 0,"--ai-hover":a||i?l.hover:void 0,"--ai-hover-color":a||i?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":a||i?l.border:void 0}}},Jn=ki(e=>{const n=ye("ActionIcon",null,e),{className:t,unstyled:i,variant:r,classNames:a,styles:o,style:l,loading:u,loaderProps:f,size:h,color:d,radius:p,__staticSelector:g,gradient:b,vars:w,children:k,disabled:_,"data-disabled":x,autoContrast:C,mod:T,attributes:A,...O}=n,M=Ze({name:["ActionIcon",g],props:n,className:t,style:l,classes:Hf,classNames:a,styles:o,unstyled:i,attributes:A,vars:w,varsResolver:cI});return v.jsxs(Mt,{...M("root",{active:!_&&!u&&!x}),...O,unstyled:i,variant:r,size:h,disabled:_||u,mod:[{loading:u,disabled:_||x},T],children:[typeof u=="boolean"&&v.jsx(ls,{mounted:u,transition:"slide-down",duration:150,children:$=>v.jsx(de,{component:"span",...M("loader",{style:$}),"aria-hidden":!0,children:v.jsx(Ht,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...f})})}),v.jsx(de,{component:"span",mod:{loading:u},...M("icon"),children:k})]})});Jn.classes=Hf;Jn.varsResolver=cI;Jn.displayName="@mantine/core/ActionIcon";Jn.Group=Ny;Jn.GroupSection=$y;function fI({size:e="var(--cb-icon-size, 70%)",style:n,...t}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:e,height:e},...t,children:v.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"})})}fI.displayName="@mantine/core/CloseIcon";var dI={root:"m_86a44da5","root--subtle":"m_220c80f2"};const IJ={variant:"subtle"},hI=(e,{size:n,radius:t,iconSize:i})=>({root:{"--cb-size":In(n,"cb-size"),"--cb-radius":t===void 0?void 0:Ut(t),"--cb-icon-size":ve(i)}}),jl=ki(e=>{const n=ye("CloseButton",IJ,e),{iconSize:t,children:i,vars:r,radius:a,className:o,classNames:l,style:u,styles:f,unstyled:h,"data-disabled":d,disabled:p,variant:g,icon:b,mod:w,attributes:k,__staticSelector:_,...x}=n,C=Ze({name:_||"CloseButton",props:n,className:o,style:u,classes:dI,classNames:l,styles:f,unstyled:h,attributes:k,vars:r,varsResolver:hI});return v.jsxs(Mt,{...x,unstyled:h,variant:g,disabled:p,mod:[{disabled:p||d},w],...C("root",{variant:g,active:!p&&!d}),children:[b||v.jsx(fI,{}),i]})});jl.classes=dI;jl.varsResolver=hI;jl.displayName="@mantine/core/CloseButton";function BJ(e){return S.Children.toArray(e).filter(Boolean)}var mI={root:"m_4081bf90"};const FJ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},pI=(e,{grow:n,preventGrowOverflow:t,gap:i,align:r,justify:a,wrap:o},{childWidth:l})=>({root:{"--group-child-width":n&&t?l:void 0,"--group-gap":Kt(i),"--group-align":r,"--group-justify":a,"--group-wrap":o}}),je=Pe(e=>{const n=ye("Group",FJ,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,children:l,gap:u,align:f,justify:h,wrap:d,grow:p,preventGrowOverflow:g,vars:b,variant:w,__size:k,mod:_,attributes:x,...C}=n,T=BJ(l),A=T.length,O=Kt(u??"md");return v.jsx(de,{...Ze({name:"Group",props:n,stylesCtx:{childWidth:`calc(${100/A}% - (${O} - ${O} / ${A}))`},className:i,style:r,classes:mI,classNames:t,styles:a,unstyled:o,attributes:x,vars:b,varsResolver:pI})("root"),variant:w,mod:[{grow:p},_],size:k,...C,children:T})});je.classes=mI;je.varsResolver=pI;je.displayName="@mantine/core/Group";const[qJ,gs]=Or("ModalBase component was not found in tree");function HJ({opened:e,transitionDuration:n}){const[t,i]=S.useState(e),r=S.useRef(-1),a=eC()?0:n;return S.useEffect(()=>(e?(i(!0),window.clearTimeout(r.current)):a===0?i(!1):r.current=window.setTimeout(()=>i(!1),a),()=>window.clearTimeout(r.current)),[e,a]),t}function UJ({id:e,transitionProps:n,opened:t,trapFocus:i,closeOnEscape:r,onClose:a,returnFocus:o}){const l=Pi(e),[u,f]=S.useState(!1),[h,d]=S.useState(!1),p=HJ({opened:t,transitionDuration:typeof(n==null?void 0:n.duration)=="number"?n==null?void 0:n.duration:200});return Uz("keydown",g=>{var b;g.key==="Escape"&&r&&!g.isComposing&&t&&((b=g.target)==null?void 0:b.getAttribute("data-mantine-stop-propagation"))!=="true"&&a()},{capture:!0}),Bz({opened:t,shouldReturnFocus:i&&o}),{_id:l,titleMounted:u,bodyMounted:h,shouldLockScroll:p,setTitleMounted:f,setBodyMounted:d}}var io=function(){return io=Object.assign||function(n){for(var t,i=1,r=arguments.length;i"u")return see;var n=lee(e),t=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-t+n[2]-n[0])}},cee=bI(),Qc="data-scroll-locked",fee=function(e,n,t,i){var r=e.left,a=e.top,o=e.right,l=e.gap;return t===void 0&&(t="margin"),` .`.concat(WJ,` { overflow: hidden `).concat(i,`; padding-right: `).concat(l,"px ").concat(i,`; } - body[`).concat(Zc,`] { + body[`).concat(Qc,`] { overflow: hidden `).concat(i,`; overscroll-behavior: contain; `).concat([n&&"position: relative ".concat(i,";"),t==="margin"&&` @@ -60,13 +60,13 @@ ${o?`${l("light")}{${o}}`:""}`}function Zv({theme:e,color:n,colorScheme:t,name:i margin-right: 0 `).concat(i,`; } - body[`).concat(Zc,`] { + body[`).concat(Qc,`] { `).concat(GJ,": ").concat(l,`px; } -`)},xE=function(){var e=parseInt(document.body.getAttribute(Zc)||"0",10);return isFinite(e)?e:0},dee=function(){x.useEffect(function(){return document.body.setAttribute(Zc,(xE()+1).toString()),function(){var e=xE()-1;e<=0?document.body.removeAttribute(Zc):document.body.setAttribute(Zc,e.toString())}},[])},hee=function(e){var n=e.noRelative,t=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;dee();var a=x.useMemo(function(){return uee(r)},[r]);return x.createElement(cee,{styles:fee(a,!n,r,t?"":"!important")})},IS=!1;if(typeof window<"u")try{var ng=Object.defineProperty({},"passive",{get:function(){return IS=!0,!0}});window.addEventListener("test",ng,ng),window.removeEventListener("test",ng,ng)}catch{IS=!1}var Dc=IS?{passive:!1}:!1,mee=function(e){return e.tagName==="TEXTAREA"},bI=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[n]!=="hidden"&&!(t.overflowY===t.overflowX&&!mee(e)&&t[n]==="visible")},pee=function(e){return bI(e,"overflowY")},vee=function(e){return bI(e,"overflowX")},SE=function(e,n){var t=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=wI(e,i);if(r){var a=kI(e,i),o=a[1],l=a[2];if(o>l)return!0}i=i.parentNode}while(i&&i!==t.body);return!1},gee=function(e){var n=e.scrollTop,t=e.scrollHeight,i=e.clientHeight;return[n,t,i]},yee=function(e){var n=e.scrollLeft,t=e.scrollWidth,i=e.clientWidth;return[n,t,i]},wI=function(e,n){return e==="v"?pee(n):vee(n)},kI=function(e,n){return e==="v"?gee(n):yee(n)},bee=function(e,n){return e==="h"&&n==="rtl"?-1:1},wee=function(e,n,t,i,r){var a=bee(e,window.getComputedStyle(n).direction),o=a*i,l=t.target,u=n.contains(l),f=!1,h=o>0,d=0,p=0;do{if(!l)break;var g=kI(e,l),b=g[0],w=g[1],k=g[2],_=w-k-a*b;(b||_)&&wI(e,l)&&(d+=_,p+=b);var S=l.parentNode;l=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!u&&l!==document.body||u&&(n.contains(l)||n===l));return(h&&Math.abs(d)<1||!h&&Math.abs(p)<1)&&(f=!0),f},tg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},CE=function(e){return[e.deltaX,e.deltaY]},jE=function(e){return e&&"current"in e?e.current:e},kee=function(e,n){return e[0]===n[0]&&e[1]===n[1]},_ee=function(e){return` +`)},SE=function(){var e=parseInt(document.body.getAttribute(Qc)||"0",10);return isFinite(e)?e:0},dee=function(){S.useEffect(function(){return document.body.setAttribute(Qc,(SE()+1).toString()),function(){var e=SE()-1;e<=0?document.body.removeAttribute(Qc):document.body.setAttribute(Qc,e.toString())}},[])},hee=function(e){var n=e.noRelative,t=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;dee();var a=S.useMemo(function(){return uee(r)},[r]);return S.createElement(cee,{styles:fee(a,!n,r,t?"":"!important")})},BS=!1;if(typeof window<"u")try{var ng=Object.defineProperty({},"passive",{get:function(){return BS=!0,!0}});window.addEventListener("test",ng,ng),window.removeEventListener("test",ng,ng)}catch{BS=!1}var Rc=BS?{passive:!1}:!1,mee=function(e){return e.tagName==="TEXTAREA"},wI=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[n]!=="hidden"&&!(t.overflowY===t.overflowX&&!mee(e)&&t[n]==="visible")},pee=function(e){return wI(e,"overflowY")},vee=function(e){return wI(e,"overflowX")},CE=function(e,n){var t=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=kI(e,i);if(r){var a=_I(e,i),o=a[1],l=a[2];if(o>l)return!0}i=i.parentNode}while(i&&i!==t.body);return!1},gee=function(e){var n=e.scrollTop,t=e.scrollHeight,i=e.clientHeight;return[n,t,i]},yee=function(e){var n=e.scrollLeft,t=e.scrollWidth,i=e.clientWidth;return[n,t,i]},kI=function(e,n){return e==="v"?pee(n):vee(n)},_I=function(e,n){return e==="v"?gee(n):yee(n)},bee=function(e,n){return e==="h"&&n==="rtl"?-1:1},wee=function(e,n,t,i,r){var a=bee(e,window.getComputedStyle(n).direction),o=a*i,l=t.target,u=n.contains(l),f=!1,h=o>0,d=0,p=0;do{if(!l)break;var g=_I(e,l),b=g[0],w=g[1],k=g[2],_=w-k-a*b;(b||_)&&kI(e,l)&&(d+=_,p+=b);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&l!==document.body||u&&(n.contains(l)||n===l));return(h&&Math.abs(d)<1||!h&&Math.abs(p)<1)&&(f=!0),f},tg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jE=function(e){return[e.deltaX,e.deltaY]},AE=function(e){return e&&"current"in e?e.current:e},kee=function(e,n){return e[0]===n[0]&&e[1]===n[1]},_ee=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},xee=0,Rc=[];function See(e){var n=x.useRef([]),t=x.useRef([0,0]),i=x.useRef(),r=x.useState(xee++)[0],a=x.useState(yI)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var w=VJ([e.lockRef.current],(e.shards||[]).map(jE),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=x.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!o.current.allowPinchZoom;var _=tg(w),S=t.current,j="deltaX"in w?w.deltaX:S[0]-_[0],T="deltaY"in w?w.deltaY:S[1]-_[1],A,O=w.target,M=Math.abs(j)>Math.abs(T)?"h":"v";if("touches"in w&&M==="h"&&O.type==="range")return!1;var $=window.getSelection(),q=$&&$.anchorNode,P=q?q===O||q.contains(O):!1;if(P)return!1;var L=SE(M,O);if(!L)return!0;if(L?A=M:(A=M==="v"?"h":"v",L=SE(M,O)),!L)return!1;if(!i.current&&"changedTouches"in w&&(j||T)&&(i.current=A),!A)return!0;var U=i.current||A;return wee(U,k,w,U==="h"?j:T)},[]),u=x.useCallback(function(w){var k=w;if(!(!Rc.length||Rc[Rc.length-1]!==a)){var _="deltaY"in k?CE(k):tg(k),S=n.current.filter(function(A){return A.name===k.type&&(A.target===k.target||k.target===A.shadowParent)&&kee(A.delta,_)})[0];if(S&&S.should){k.cancelable&&k.preventDefault();return}if(!S){var j=(o.current.shards||[]).map(jE).filter(Boolean).filter(function(A){return A.contains(k.target)}),T=j.length>0?l(k,j[0]):!o.current.noIsolation;T&&k.cancelable&&k.preventDefault()}}},[]),f=x.useCallback(function(w,k,_,S){var j={name:w,delta:k,target:_,should:S,shadowParent:Cee(_)};n.current.push(j),setTimeout(function(){n.current=n.current.filter(function(T){return T!==j})},1)},[]),h=x.useCallback(function(w){t.current=tg(w),i.current=void 0},[]),d=x.useCallback(function(w){f(w.type,CE(w),w.target,l(w,e.lockRef.current))},[]),p=x.useCallback(function(w){f(w.type,tg(w),w.target,l(w,e.lockRef.current))},[]);x.useEffect(function(){return Rc.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Dc),document.addEventListener("touchmove",u,Dc),document.addEventListener("touchstart",h,Dc),function(){Rc=Rc.filter(function(w){return w!==a}),document.removeEventListener("wheel",u,Dc),document.removeEventListener("touchmove",u,Dc),document.removeEventListener("touchstart",h,Dc)}},[]);var g=e.removeScrollBar,b=e.inert;return x.createElement(x.Fragment,null,b?x.createElement(a,{styles:_ee(r)}):null,g?x.createElement(hee,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cee(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const jee=eee(gI,See);var Tu=x.forwardRef(function(e,n){return x.createElement($y,to({},e,{ref:n,sideCar:jee}))});Tu.classNames=$y.classNames;function _I({keepMounted:e,opened:n,onClose:t,id:i,transitionProps:r,onExitTransitionEnd:a,onEnterTransitionEnd:o,trapFocus:l,closeOnEscape:u,returnFocus:f,closeOnClickOutside:h,withinPortal:d,portalProps:p,lockScroll:g,children:b,zIndex:w,shadow:k,padding:_,__vars:S,unstyled:j,removeScrollProps:T,...A}){const{_id:O,titleMounted:M,bodyMounted:$,shouldLockScroll:q,setTitleMounted:P,setBodyMounted:L}=UJ({id:i,transitionProps:r,opened:n,trapFocus:l,closeOnEscape:u,onClose:t,returnFocus:f}),{key:U,...G}=T||{};return v.jsx(wl,{...p,withinPortal:d,children:v.jsx(qJ,{value:{opened:n,onClose:t,closeOnClickOutside:h,onExitTransitionEnd:a,onEnterTransitionEnd:o,transitionProps:{...r,keepMounted:e},getTitleId:()=>`${O}-title`,getBodyId:()=>`${O}-body`,titleMounted:M,bodyMounted:$,setTitleMounted:P,setBodyMounted:L,trapFocus:l,closeOnEscape:u,zIndex:w,unstyled:j},children:v.jsx(Tu,{enabled:q&&g,...G,children:v.jsx(fe,{...A,id:O,__vars:{...S,"--mb-z-index":(w||xa("modal")).toString(),"--mb-shadow":Q6(k),"--mb-padding":Yt(_)},children:b})},U)})})}_I.displayName="@mantine/core/ModalBase";function Aee(){const e=gs();return x.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var sf={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function xI({className:e,...n}){const t=Aee(),i=gs();return v.jsx(fe,{id:t,className:vn({[sf.body]:!i.unstyled},e),...n})}xI.displayName="@mantine/core/ModalBaseBody";function SI({className:e,onClick:n,...t}){const i=gs();return v.jsx(jl,{...t,onClick:r=>{i.onClose(),n==null||n(r)},className:vn({[sf.close]:!i.unstyled},e),unstyled:i.unstyled})}SI.displayName="@mantine/core/ModalBaseCloseButton";function CI({transitionProps:e,className:n,innerProps:t,onKeyDown:i,style:r,ref:a,...o}){const l=gs();return v.jsx(ls,{mounted:l.opened,transition:"pop",...l.transitionProps,onExited:()=>{var u,f,h;(u=l.onExitTransitionEnd)==null||u.call(l),(h=(f=l.transitionProps)==null?void 0:f.onExited)==null||h.call(f)},onEntered:()=>{var u,f,h;(u=l.onEnterTransitionEnd)==null||u.call(l),(h=(f=l.transitionProps)==null?void 0:f.onEntered)==null||h.call(f)},...e,children:u=>v.jsx("div",{...t,className:vn({[sf.inner]:!l.unstyled},t.className),children:v.jsx(Ry,{active:l.opened&&l.trapFocus,innerRef:a,children:v.jsx(Tt,{...o,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,style:[r,u],className:vn({[sf.content]:!l.unstyled},n),unstyled:l.unstyled,children:o.children})})})})}CI.displayName="@mantine/core/ModalBaseContent";function jI({className:e,...n}){const t=gs();return v.jsx(fe,{component:"header",className:vn({[sf.header]:!t.unstyled},e),...n})}jI.displayName="@mantine/core/ModalBaseHeader";const Oee={duration:200,timingFunction:"ease",transition:"fade"};function Tee(e){const n=gs();return{...Oee,...n.transitionProps,...e}}function AI({onClick:e,transitionProps:n,style:t,visible:i,...r}){const a=gs(),o=Tee(n);return v.jsx(ls,{mounted:i!==void 0?i:a.opened,...o,transition:"fade",children:l=>v.jsx(up,{fixed:!0,style:[t,l],zIndex:a.zIndex,unstyled:a.unstyled,onClick:u=>{e==null||e(u),a.closeOnClickOutside&&a.onClose()},...r})})}AI.displayName="@mantine/core/ModalBaseOverlay";function Eee(){const e=gs();return x.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function OI({className:e,...n}){const t=Eee(),i=gs();return v.jsx(fe,{component:"h2",className:vn({[sf.title]:!i.unstyled},e),id:t,...n})}OI.displayName="@mantine/core/ModalBaseTitle";function Mee({children:e}){return v.jsx(v.Fragment,{children:e})}const TI=x.createContext({size:"sm"}),EI=Pe(e=>{const n=ye("InputClearButton",null,e),{size:t,variant:i,vars:r,classNames:a,styles:o,...l}=n,u=x.use(TI),{resolvedClassNames:f,resolvedStyles:h}=Wi({classNames:a,styles:o,props:n});return v.jsx(jl,{variant:i||"transparent",size:t||(u==null?void 0:u.size)||"sm",classNames:f,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...l.style},...l})});EI.displayName="@mantine/core/InputClearButton";const Dee={xs:7,sm:8,md:10,lg:12,xl:15};function Ree({__clearable:e,__clearSection:n,rightSection:t,__defaultRightSection:i,size:r="sm",__clearSectionMode:a="both"}){const o=e&&n;return a==="rightSection"?t===null?null:t||i:a==="clear"?t===null?null:o||i:o&&(t||i)?v.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:Dee[r]},children:[o,t||i]}):t===null?null:t||o||i}const Hu=x.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ja={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const MI=(e,{size:n})=>({description:{"--input-description-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`}}),cp=Pe(e=>{const n=ye("InputDescription",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,__inheritStyles:f=!0,attributes:h,...d}=ye("InputDescription",null,n),p=x.use(Hu),g=Ze({name:["InputWrapper",u],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,rootSelector:"description",vars:l,varsResolver:MI});return v.jsx(fe,{component:"p",...(f&&(p==null?void 0:p.getStyles)||g)("description",p!=null&&p.getStyles?{className:i,style:r}:void 0),...d})});cp.classes=ja;cp.varsResolver=MI;cp.displayName="@mantine/core/InputDescription";const DI=(e,{size:n})=>({error:{"--input-error-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`}}),fp=Pe(e=>{const n=ye("InputError",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,attributes:u,__staticSelector:f,__inheritStyles:h=!0,...d}=n,p=Ze({name:["InputWrapper",f],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:u,rootSelector:"error",vars:l,varsResolver:DI}),g=x.use(Hu);return v.jsx(fe,{component:"p",...(h&&(g==null?void 0:g.getStyles)||p)("error",g!=null&&g.getStyles?{className:i,style:r}:void 0),...d})});fp.classes=ja;fp.varsResolver=DI;fp.displayName="@mantine/core/InputError";const Pee={labelElement:"label"},RI=(e,{size:n})=>({label:{"--input-label-size":ai(n),"--input-asterisk-color":void 0}}),dp=Pe(e=>{const n=ye("InputLabel",Pee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,labelElement:u,required:f,htmlFor:h,onMouseDown:d,children:p,__staticSelector:g,mod:b,attributes:w,...k}=n,_=Ze({name:["InputWrapper",g],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,rootSelector:"label",vars:l,varsResolver:RI}),S=x.use(Hu),j=(S==null?void 0:S.getStyles)||_;return v.jsxs(fe,{...j("label",S!=null&&S.getStyles?{className:i,style:r}:void 0),component:u,htmlFor:u==="label"?h:void 0,mod:[{required:f},b],onMouseDown:T=>{d==null||d(T),!T.defaultPrevented&&T.detail>1&&T.preventDefault()},...k,children:[p,f&&v.jsx("span",{...j("required"),"aria-hidden":!0,children:" *"})]})});dp.classes=ja;dp.varsResolver=RI;dp.displayName="@mantine/core/InputLabel";const _C=Pe(e=>{const n=ye("InputPlaceholder",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,error:f,mod:h,attributes:d,...p}=n;return v.jsx(fe,{...Ze({name:["InputPlaceholder",u],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:d,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!f},h],component:"span",...p})});_C.classes=ja;_C.displayName="@mantine/core/InputPlaceholder";function Nee(e,{hasDescription:n,hasError:t}){const i=e.findIndex(l=>l==="input"),r=e.slice(0,i),a=e.slice(i+1),o=n&&r.includes("description")||t&&r.includes("error");return{offsetBottom:n&&a.includes("description")||t&&a.includes("error"),offsetTop:o}}const $ee={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},PI=(e,{size:n})=>({label:{"--input-label-size":ai(n),"--input-asterisk-color":void 0},error:{"--input-error-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`},description:{"--input-description-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`}}),zy=Pe(e=>{const n=ye("InputWrapper",$ee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,variant:f,__staticSelector:h,inputContainer:d,inputWrapperOrder:p,label:g,error:b,description:w,labelProps:k,descriptionProps:_,errorProps:S,labelElement:j,children:T,withAsterisk:A,id:O,required:M,__stylesApiProps:$,mod:q,attributes:P,...L}=n,U=Ze({name:["InputWrapper",h],props:$||n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:P,vars:l,varsResolver:PI}),G={size:u,variant:f,__staticSelector:h},B=Pi(O),R=typeof A=="boolean"?A:M,D=(S==null?void 0:S.id)||`${B}-error`,z=(_==null?void 0:_.id)||`${B}-description`,H=B,Y=!!b&&typeof b!="boolean",N=!!w,W=`${Y?D:""} ${N?z:""}`,V=W.trim().length>0?W.trim():void 0,I=(k==null?void 0:k.id)||`${B}-label`,Q=g&&v.jsx(dp,{labelElement:j,id:I,htmlFor:H,required:R,...G,...k,children:g},"label"),ie=N&&v.jsx(cp,{..._,...G,size:(_==null?void 0:_.size)||G.size,id:(_==null?void 0:_.id)||z,children:w},"description"),re=v.jsx(x.Fragment,{children:d(T)},"input"),Z=Y&&x.createElement(fp,{...S,...G,size:(S==null?void 0:S.size)||G.size,key:"error",id:(S==null?void 0:S.id)||D},b),le=p.map(ee=>{switch(ee){case"label":return Q;case"input":return re;case"description":return ie;case"error":return Z;default:return null}});return v.jsx(Hu,{value:{getStyles:U,describedBy:V,inputId:H,labelId:I,...Nee(p,{hasDescription:N,hasError:Y})},children:v.jsx(fe,{variant:f,size:u,mod:[{error:!!b},q],id:j==="label"?void 0:O,...U("root"),...L,children:le})})});zy.classes=ja;zy.varsResolver=PI;zy.displayName="@mantine/core/InputWrapper";const zee={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},NI=(e,n,t)=>({wrapper:{"--input-margin-top":t.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":t.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Ln(n.size,"input-height"),"--input-fz":ai(n.size),"--input-radius":n.radius===void 0?void 0:qt(n.radius),"--input-left-section-width":n.leftSectionWidth!==void 0?ve(n.leftSectionWidth):void 0,"--input-right-section-width":n.rightSectionWidth!==void 0?ve(n.rightSectionWidth):void 0,"--input-padding-y":n.multiline?Ln(n.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":n.leftSectionPointerEvents,"--input-right-section-pointer-events":n.rightSectionPointerEvents}}),Xt=ki(e=>{const n=ye("Input",zee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,required:l,__staticSelector:u,__stylesApiProps:f,size:h,wrapperProps:d,error:p,disabled:g,leftSection:b,leftSectionProps:w,leftSectionWidth:k,rightSection:_,rightSectionProps:S,rightSectionWidth:j,rightSectionPointerEvents:T,leftSectionPointerEvents:A,variant:O,vars:M,pointer:$,multiline:q,radius:P,id:L,withAria:U,withErrorStyles:G,mod:B,inputSize:R,attributes:D,__clearSection:z,__clearable:H,__clearSectionMode:Y,__defaultRightSection:N,loading:W,loadingPosition:V,rootRef:I,...Q}=n,{styleProps:ie,rest:re}=Fu(Q),Z=x.use(Hu),le={offsetBottom:Z==null?void 0:Z.offsetBottom,offsetTop:Z==null?void 0:Z.offsetTop},ee=Ze({name:["Input",u],props:f||n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:D,stylesCtx:le,rootSelector:"wrapper",vars:M,varsResolver:NI}),se=U?{required:l,disabled:g,"aria-invalid":p?!0:void 0,"aria-describedby":Z==null?void 0:Z.describedBy,id:(Z==null?void 0:Z.inputId)||L}:{},ke=W?v.jsx(Zt,{size:V==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,te=W&&V==="left"?ke:b,$e=Ree({__clearable:H,__clearSection:z,rightSection:W&&V==="right"?ke:_,__defaultRightSection:N,size:h,__clearSectionMode:Y});return v.jsx(TI,{value:{size:h||"sm"},children:v.jsxs(fe,{ref:I,...ee("wrapper"),...ie,...d,mod:[{error:!!p&&G,pointer:$,disabled:g,multiline:q,"data-with-right-section":!!$e,"data-with-left-section":!!te},B],variant:O,size:h,children:[te&&v.jsx("div",{...w,"data-position":"left",...ee("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:te}),v.jsx(fe,{component:"input",...re,...se,required:l,mod:{disabled:g,error:!!p&&G},variant:O,__size:R,...ee("input")}),$e&&v.jsx("div",{...S,"data-position":"right",...ee("section",{className:S==null?void 0:S.className,style:S==null?void 0:S.style}),children:$e})]})})});Xt.classes=ja;Xt.varsResolver=NI;Xt.Wrapper=zy;Xt.Label=dp;Xt.Error=fp;Xt.Description=cp;Xt.Placeholder=_C;Xt.ClearButton=EI;Xt.displayName="@mantine/core/Input";function $I(e,n,t){const i=ye(e,n,t),{label:r,description:a,error:o,required:l,classNames:u,styles:f,className:h,unstyled:d,__staticSelector:p,__stylesApiProps:g,errorProps:b,labelProps:w,descriptionProps:k,wrapperProps:_,id:S,size:j,style:T,inputContainer:A,inputWrapperOrder:O,withAsterisk:M,variant:$,vars:q,mod:P,attributes:L,...U}=i,{styleProps:G,rest:B}=Fu(U),R={label:r,description:a,error:o,required:l,classNames:u,className:h,__staticSelector:p,__stylesApiProps:g||i,errorProps:b,labelProps:w,descriptionProps:k,unstyled:d,styles:f,size:j,style:T,inputContainer:A,inputWrapperOrder:O,withAsterisk:M,variant:$,id:S,mod:P,attributes:L,..._};return{...B,classNames:u,styles:f,unstyled:d,wrapperProps:{...R,...G},inputProps:{required:l,classNames:u,styles:f,unstyled:d,size:j,__staticSelector:p,__stylesApiProps:g||i,error:o,variant:$,id:S,attributes:L}}}const Lee={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ni=ki(e=>{const{inputProps:n,wrapperProps:t,...i}=$I("InputBase",Lee,e);return v.jsx(Xt.Wrapper,{...t,children:v.jsx(Xt,{...n,...i})})});Ni.classes={...Xt.classes,...Xt.Wrapper.classes};Ni.displayName="@mantine/core/InputBase";function e1({style:e,size:n=16,...t}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:ve(n),height:ve(n),display:"block"},...t,children:v.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"})})}e1.displayName="@mantine/core/AccordionChevron";var zI={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const LI=(e,{radius:n,color:t,variant:i,autoContrast:r})=>{const a=e.variantColorResolver({color:t||e.primaryColor,theme:e,variant:i||"light",autoContrast:r});return{root:{"--alert-radius":n===void 0?void 0:qt(n),"--alert-bg":t||i?a.background:void 0,"--alert-color":a.color,"--alert-bd":t||i?a.border:void 0}}},kl=Pe(e=>{const n=ye("Alert",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,radius:u,color:f,title:h,children:d,id:p,icon:g,withCloseButton:b,onClose:w,closeButtonLabel:k,variant:_,autoContrast:S,role:j,attributes:T,...A}=n,O=Ze({name:"Alert",classes:zI,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:T,vars:l,varsResolver:LI}),M=Pi(p),$=h&&`${M}-title`||void 0,q=`${M}-body`;return v.jsx(fe,{id:M,...O("root",{variant:_}),variant:_,...A,role:j||"alert","aria-describedby":d?q:void 0,"aria-labelledby":h?$:void 0,children:v.jsxs("div",{...O("wrapper"),children:[g&&v.jsx("div",{...O("icon"),children:g}),v.jsxs("div",{...O("body"),children:[h&&v.jsx("div",{...O("title"),"data-with-close-button":b||void 0,children:v.jsx("span",{id:$,...O("label"),children:h})}),d&&v.jsx("div",{id:q,...O("message"),"data-variant":_,children:d})]}),b&&v.jsx(jl,{...O("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:o})]})})});kl.classes=zI;kl.varsResolver=LI;kl.displayName="@mantine/core/Alert";var II={root:"m_b6d8b162"};function Iee(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const Bee={inherit:!1},BI=(e,{variant:n,lineClamp:t,gradient:i,size:r})=>({root:{"--text-fz":ai(r),"--text-lh":rX(r),"--text-gradient":n==="gradient"?OS(i,e):void 0,"--text-line-clamp":typeof t=="number"?t.toString():void 0}}),de=ki(e=>{const n=ye("Text",Bee,e),{lineClamp:t,truncate:i,inline:r,inherit:a,gradient:o,span:l,__staticSelector:u,vars:f,className:h,style:d,classNames:p,styles:g,unstyled:b,variant:w,mod:k,size:_,attributes:S,...j}=n;return v.jsx(fe,{...Ze({name:["Text",u],props:n,classes:II,className:h,style:d,classNames:p,styles:g,unstyled:b,attributes:S,vars:f,varsResolver:BI})("root",{focusable:!0}),component:l?"span":"p",variant:w,mod:[{"data-truncate":Iee(i),"data-line-clamp":typeof t=="number","data-inline":r,"data-inherit":a},k],size:_,...j})});de.classes=II;de.varsResolver=BI;de.displayName="@mantine/core/Text";var FI={root:"m_849cf0da"};const Fee={underline:"hover"},ho=ki(e=>{const{underline:n,className:t,unstyled:i,mod:r,...a}=ye("Anchor",Fee,e);return v.jsx(de,{component:"a",className:vn({[FI.root]:!i},t),...a,mod:[{underline:n},r],__staticSelector:"Anchor",unstyled:i})});ho.classes=FI;ho.displayName="@mantine/core/Anchor";const[qee,Uf]=Ar("AppShell was not found in tree");var Al={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const xC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellAside",null,e),d=Uf();return d.disabled?null:v.jsx(fe,{component:"aside",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("aside",{className:vn({[Tu.classNames.zeroRight]:d.offsetScrollbars},t),classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-aside-z-index":`calc(${u??d.zIndex} + 1)`}})});xC.classes=Al;xC.displayName="@mantine/core/AppShellAside";const SC=Pe(e=>{var p;const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellFooter",null,e),d=Uf();return d.disabled?null:v.jsx(fe,{component:"footer",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("footer",{className:vn({[Tu.classNames.zeroRight]:d.offsetScrollbars},t),classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-footer-z-index":(p=u??d.zIndex)==null?void 0:p.toString()}})});SC.classes=Al;SC.displayName="@mantine/core/AppShellFooter";const CC=Pe(e=>{var p;const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellHeader",null,e),d=Uf();return d.disabled?null:v.jsx(fe,{component:"header",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("header",{className:vn({[Tu.classNames.zeroRight]:d.offsetScrollbars},t),classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-header-z-index":(p=u??d.zIndex)==null?void 0:p.toString()}})});CC.classes=Al;CC.displayName="@mantine/core/AppShellHeader";const jC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("AppShellMain",null,e);return v.jsx(fe,{component:"main",...Uf().getStyles("main",{className:t,style:i,classNames:n,styles:r}),...o})});jC.classes=Al;jC.displayName="@mantine/core/AppShellMain";const AC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellNavbar",null,e),d=Uf();return d.disabled?null:v.jsx(fe,{component:"nav",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("navbar",{className:t,classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-navbar-z-index":`calc(${u??d.zIndex} + 1)`}})});AC.classes=Al;AC.displayName="@mantine/core/AppShellNavbar";const OC=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,grow:o,mod:l,...u}=ye("AppShellSection",null,e),f=Uf();return v.jsx(fe,{mod:[{grow:o},l],...f.getStyles("section",{className:t,style:i,classNames:n,styles:r}),...u})});OC.classes=Al;OC.displayName="@mantine/core/AppShellSection";function hp(e){return typeof e=="object"?e.base:e}function mp(e){const n=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||n}function pp(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Hee({baseStyles:e,minMediaStyles:n,maxMediaStyles:t,aside:i,theme:r,mode:a}){var f,h,d;const o=i==null?void 0:i.width,l="translateX(var(--app-shell-aside-width))",u="translateX(calc(var(--app-shell-aside-width) * -1))";if(i!=null&&i.breakpoint&&!((f=i==null?void 0:i.collapsed)!=null&&f.mobile)&&(t[i==null?void 0:i.breakpoint]=t[i==null?void 0:i.breakpoint]||{},a==="fixed"?(t[i==null?void 0:i.breakpoint]["--app-shell-aside-width"]="100%",t[i==null?void 0:i.breakpoint]["--app-shell-aside-offset"]="0px"):(t[i==null?void 0:i.breakpoint]["--app-shell-aside-width"]="0px",t[i==null?void 0:i.breakpoint]["--app-shell-aside-offset"]="0px")),mp(o)){const p=ve(hp(o));e["--app-shell-aside-width"]=p,e["--app-shell-aside-offset"]=p}if(pp(o)&&(typeof o.base<"u"&&(e["--app-shell-aside-width"]=ve(o.base),e["--app-shell-aside-offset"]=ve(o.base)),$t(o).forEach(p=>{p!=="base"&&(n[p]=n[p]||{},n[p]["--app-shell-aside-width"]=ve(o[p]),n[p]["--app-shell-aside-offset"]=ve(o[p]))})),i!=null&&i.breakpoint&&a==="static"&&(n[i.breakpoint]=n[i.breakpoint]||{},n[i.breakpoint]["--app-shell-aside-position"]="sticky",n[i.breakpoint]["--app-shell-aside-grid-row"]="2",n[i.breakpoint]["--app-shell-aside-grid-column"]="3",n[i.breakpoint]["--app-shell-main-column-end"]="3"),(h=i==null?void 0:i.collapsed)!=null&&h.desktop){const p=i.breakpoint;n[p]=n[p]||{},n[p]["--app-shell-aside-transform"]=l,n[p]["--app-shell-aside-transform-rtl"]=u,a==="fixed"?n[p]["--app-shell-aside-offset"]="0px !important":(n[p]["--app-shell-aside-width"]="0px",n[p]["--app-shell-aside-display"]="none",n[p]["--app-shell-main-column-end"]="-1"),n[p]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((d=i==null?void 0:i.collapsed)!=null&&d.mobile){const p=J6(i.breakpoint,r.breakpoints)-.1;t[p]=t[p]||{},a==="fixed"?(t[p]["--app-shell-aside-width"]="100%",t[p]["--app-shell-aside-offset"]="0px"):t[p]["--app-shell-aside-width"]="0px",t[p]["--app-shell-aside-transform"]=l,t[p]["--app-shell-aside-transform-rtl"]=u,t[p]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Uee({baseStyles:e,minMediaStyles:n,footer:t,mode:i}){const r=t==null?void 0:t.height,a="translateY(var(--app-shell-footer-height))",o=i==="static"?!0:(t==null?void 0:t.offset)??!0;if(i==="static"&&t&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),mp(r)){const l=ve(hp(r));e["--app-shell-footer-height"]=l,o&&(e["--app-shell-footer-offset"]=l)}pp(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=ve(r.base),o&&(e["--app-shell-footer-offset"]=ve(r.base))),$t(r).forEach(l=>{l!=="base"&&(n[l]=n[l]||{},n[l]["--app-shell-footer-height"]=ve(r[l]),o&&(n[l]["--app-shell-footer-offset"]=ve(r[l])))})),t!=null&&t.collapsed&&(e["--app-shell-footer-transform"]=a,i==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Vee({baseStyles:e,minMediaStyles:n,header:t,mode:i}){const r=t==null?void 0:t.height,a="translateY(calc(var(--app-shell-header-height) * -1))",o=i==="static"?!0:(t==null?void 0:t.offset)??!0;if(i==="static"&&t&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),mp(r)){const l=ve(hp(r));e["--app-shell-header-height"]=l,o&&(e["--app-shell-header-offset"]=l)}pp(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=ve(r.base),o&&(e["--app-shell-header-offset"]=ve(r.base))),$t(r).forEach(l=>{l!=="base"&&(n[l]=n[l]||{},n[l]["--app-shell-header-height"]=ve(r[l]),o&&(n[l]["--app-shell-header-offset"]=ve(r[l])))})),t!=null&&t.collapsed&&(e["--app-shell-header-transform"]=a,i==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Wee({baseStyles:e,minMediaStyles:n,maxMediaStyles:t,navbar:i,theme:r,mode:a}){var f,h,d;const o=i==null?void 0:i.width,l="translateX(calc(var(--app-shell-navbar-width) * -1))",u="translateX(var(--app-shell-navbar-width))";if(i!=null&&i.breakpoint&&!((f=i==null?void 0:i.collapsed)!=null&&f.mobile)&&(t[i==null?void 0:i.breakpoint]=t[i==null?void 0:i.breakpoint]||{},t[i==null?void 0:i.breakpoint]["--app-shell-navbar-offset"]="0px",t[i==null?void 0:i.breakpoint]["--app-shell-navbar-width"]="100%",a==="static"&&(t[i==null?void 0:i.breakpoint]["--app-shell-navbar-grid-width"]="0px")),mp(o)){const p=ve(hp(o));e["--app-shell-navbar-width"]=p,e["--app-shell-navbar-offset"]=p,a==="static"&&(e["--app-shell-navbar-grid-width"]=p)}if(pp(o)&&(typeof o.base<"u"&&(e["--app-shell-navbar-width"]=ve(o.base),e["--app-shell-navbar-offset"]=ve(o.base),a==="static"&&(e["--app-shell-navbar-grid-width"]=ve(o.base))),$t(o).forEach(p=>{p!=="base"&&(n[p]=n[p]||{},n[p]["--app-shell-navbar-width"]=ve(o[p]),n[p]["--app-shell-navbar-offset"]=ve(o[p]),a==="static"&&(n[p]["--app-shell-navbar-grid-width"]=ve(o[p])))})),i!=null&&i.breakpoint&&a==="static"&&(n[i.breakpoint]=n[i.breakpoint]||{},n[i.breakpoint]["--app-shell-navbar-position"]="sticky",n[i.breakpoint]["--app-shell-navbar-grid-row"]="2",n[i.breakpoint]["--app-shell-navbar-grid-column"]="1",n[i.breakpoint]["--app-shell-main-column-start"]="2"),(h=i==null?void 0:i.collapsed)!=null&&h.desktop){const p=i.breakpoint;n[p]=n[p]||{},n[p]["--app-shell-navbar-transform"]=l,n[p]["--app-shell-navbar-transform-rtl"]=u,a==="fixed"?n[p]["--app-shell-navbar-offset"]="0px !important":(n[p]["--app-shell-navbar-width"]="0px",n[p]["--app-shell-navbar-display"]="none",n[p]["--app-shell-main-column-start"]="1")}if((d=i==null?void 0:i.collapsed)!=null&&d.mobile){const p=J6(i.breakpoint,r.breakpoints)-.1;t[p]=t[p]||{},t[p]["--app-shell-navbar-width"]="100%",t[p]["--app-shell-navbar-offset"]="0px",a==="static"&&(t[p]["--app-shell-navbar-grid-width"]="0px"),t[p]["--app-shell-navbar-transform"]=l,t[p]["--app-shell-navbar-transform-rtl"]=u}}function $k(e){return Number(e)===0?"0px":Yt(e)}function Gee({padding:e,baseStyles:n,minMediaStyles:t}){mp(e)&&(n["--app-shell-padding"]=$k(hp(e))),pp(e)&&(e.base&&(n["--app-shell-padding"]=$k(e.base)),$t(e).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-padding"]=$k(e[i]))}))}function Yee({navbar:e,header:n,footer:t,aside:i,padding:r,theme:a,mode:o}){const l={},u={},f={};o==="static"&&(f["--app-shell-main-grid-column"]="1 / -1",f["--app-shell-main-grid-row"]="2"),Wee({baseStyles:f,minMediaStyles:l,maxMediaStyles:u,navbar:e,theme:a,mode:o}),Hee({baseStyles:f,minMediaStyles:l,maxMediaStyles:u,aside:i,theme:a,mode:o}),Vee({baseStyles:f,minMediaStyles:l,header:n,mode:o}),Uee({baseStyles:f,minMediaStyles:l,footer:t,mode:o}),Gee({baseStyles:f,minMediaStyles:l,padding:r});const h=um($t(l),a.breakpoints).map(p=>({query:`(min-width: ${Vg(p.px)})`,styles:l[p.value]})),d=um($t(u),a.breakpoints).map(p=>({query:`(max-width: ${Vg(p.px)})`,styles:u[p.value]}));return{baseStyles:f,media:[...h,...d]}}function Kee({navbar:e,header:n,aside:t,footer:i,padding:r,mode:a,selector:o}){const l=ci(),u=wo(),{media:f,baseStyles:h}=Yee({navbar:e,header:n,footer:i,aside:t,padding:r,theme:l,mode:a});return v.jsx(Bf,{media:f,styles:h,selector:o||u.cssVariablesSelector})}function Xee({transitionDuration:e,disabled:n}){const[t,i]=x.useState(!0),r=x.useRef(-1),a=x.useRef(-1);return Hz("resize",()=>{i(!0),clearTimeout(r.current),r.current=window.setTimeout(()=>x.startTransition(()=>{i(!1)}),200)}),ps(()=>{i(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>x.startTransition(()=>{i(!1)}),e||0)},[n,e]),t}const Zee={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:xa("app"),mode:"fixed"},qI=(e,{transitionDuration:n,transitionTimingFunction:t})=>({root:{"--app-shell-transition-duration":`${n}ms`,"--app-shell-transition-timing-function":t}}),xr=Pe(e=>{const n=ye("AppShell",Zee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,navbar:u,withBorder:f,padding:h,transitionDuration:d,transitionTimingFunction:p,header:g,zIndex:b,layout:w,disabled:k,aside:_,footer:S,offsetScrollbars:j=!0,mode:T,mod:A,attributes:O,id:M,...$}=n,q=Ze({name:"AppShell",classes:Al,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:O,vars:l,varsResolver:qI}),P=Xee({disabled:k,transitionDuration:d}),L=Pi(M);return v.jsxs(qee,{value:{getStyles:q,withBorder:f,zIndex:b,disabled:k,offsetScrollbars:j,mode:T},children:[v.jsx(Kee,{navbar:u,header:g,aside:_,footer:S,padding:h,mode:T,selector:T==="static"?`#${L}`:void 0}),v.jsx(fe,{...q("root"),id:L,mod:[{resizing:P,layout:w,disabled:k,mode:T},A],...$})]})});xr.classes=Al;xr.varsResolver=qI;xr.displayName="@mantine/core/AppShell";xr.Navbar=AC;xr.Header=CC;xr.Main=jC;xr.Aside=xC;xr.Footer=SC;xr.Section=OC;function HI(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(n=>HI(n))}:typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"?{value:e,label:`${e}`}:e}function Ly(e){return e?e.map(n=>HI(n)):[]}function vp(e){return e.reduce((n,t)=>"group"in t?{...n,...vp(t.items)}:(n[`${t.value}`]=t,n),{})}var lr={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"};const Qee={error:null},UI=(e,{size:n,color:t})=>({chevron:{"--combobox-chevron-size":Ln(n,"combobox-chevron-size"),"--combobox-chevron-color":t?ft(t,e):void 0}}),Iy=Pe(e=>{const n=ye("ComboboxChevron",Qee,e),{size:t,error:i,style:r,className:a,classNames:o,styles:l,unstyled:u,vars:f,attributes:h,mod:d,...p}=n,g=Ze({name:"ComboboxChevron",classes:lr,props:n,style:r,className:a,classNames:o,styles:l,unstyled:u,vars:f,varsResolver:UI,attributes:h,rootSelector:"chevron"});return v.jsx(fe,{component:"svg",...p,...g("chevron"),size:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},d],children:v.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"})})});Iy.classes=lr;Iy.varsResolver=UI;Iy.displayName="@mantine/core/ComboboxChevron";const[Jee,Aa]=Ar("Combobox component was not found in tree");function VI({onMouseDown:e,onClick:n,onClear:t,...i}){return v.jsx(Xt.ClearButton,{tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:r=>{r.preventDefault(),e==null||e(r)},onClick:r=>{t(),n==null||n(r)}})}VI.displayName="@mantine/core/ComboboxClearButton";const TC=Pe(e=>{const{classNames:n,styles:t,className:i,style:r,hidden:a,...o}=ye("ComboboxDropdown",null,e),l=Aa();return v.jsx(Sn.Dropdown,{...o,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:i,style:r,classNames:n,styles:t})})});TC.classes=lr;TC.displayName="@mantine/core/ComboboxDropdown";const ene={refProp:"ref"},WI=Pe(e=>{const{children:n,refProp:t,ref:i}=ye("ComboboxDropdownTarget",ene,e);if(Aa(),!X6(n))throw new 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 v.jsx(Sn.Target,{ref:i,refProp:t,children:n})});WI.displayName="@mantine/core/ComboboxDropdownTarget";const EC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ComboboxEmpty",null,e);return v.jsx(fe,{...Aa().getStyles("empty",{className:t,classNames:n,styles:r,style:i}),...o})});EC.classes=lr;EC.displayName="@mantine/core/ComboboxEmpty";function MC({onKeyDown:e,onClick:n,withKeyboardNavigation:t,withAriaAttributes:i,withExpandedAttribute:r,targetType:a,autoComplete:o}){const l=Aa(),[u,f]=x.useState(null),h=g=>{if(e==null||e(g),!l.readOnly&&t){if(g.nativeEvent.isComposing)return;if(g.nativeEvent.code==="ArrowDown"&&(g.preventDefault(),l.store.dropdownOpened?f(l.store.selectNextOption()):(l.store.openDropdown("keyboard"),f(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="ArrowUp"&&(g.preventDefault(),l.store.dropdownOpened?f(l.store.selectPreviousOption()):(l.store.openDropdown("keyboard"),f(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="Enter"||g.nativeEvent.code==="NumpadEnter"){if(g.nativeEvent.keyCode===229)return;const b=l.store.getSelectedOptionIndex();l.store.dropdownOpened&&b!==-1?(g.preventDefault(),l.store.clickSelectedOption()):a==="button"&&(g.preventDefault(),l.store.openDropdown("keyboard"))}g.key==="Escape"&&l.store.closeDropdown("keyboard"),g.nativeEvent.code==="Space"&&a==="button"&&(g.preventDefault(),l.store.toggleDropdown("keyboard"))}};return{...i?{...r?{role:"combobox"}:{},"aria-haspopup":"listbox","aria-expanded":r?!!(l.store.listId&&l.store.dropdownOpened):void 0,"aria-controls":l.store.dropdownOpened&&l.store.listId?l.store.listId:void 0,"aria-activedescendant":l.store.dropdownOpened&&u||void 0,autoComplete:o,"data-expanded":l.store.dropdownOpened||void 0,"data-mantine-stop-propagation":l.store.dropdownOpened||void 0}:{},onKeyDown:h,onClick:g=>{a==="button"&&g.currentTarget.focus(),n==null||n(g)}}}const nne={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},GI=Pe(e=>{const{children:n,refProp:t,withKeyboardNavigation:i,withAriaAttributes:r,withExpandedAttribute:a,targetType:o,autoComplete:l,ref:u,...f}=ye("ComboboxEventsTarget",nne,e),h=Cl(n);if(!h)throw new 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");const d=Aa();return x.cloneElement(h,{...MC({targetType:o,withAriaAttributes:r,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:h.props.onKeyDown,onClick:h.props.onClick,autoComplete:l}),...f,[t]:Ht(u,d.store.targetRef,xy(h))})});GI.displayName="@mantine/core/ComboboxEventsTarget";const DC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ComboboxFooter",null,e);return v.jsx(fe,{...Aa().getStyles("footer",{className:t,classNames:n,style:i,styles:r}),...o,onMouseDown:l=>{l.preventDefault()}})});DC.classes=lr;DC.displayName="@mantine/core/ComboboxFooter";const RC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,children:o,label:l,id:u,...f}=ye("ComboboxGroup",null,e),h=Aa(),d=Pi(u);return v.jsxs(fe,{role:"group","aria-labelledby":l?d:void 0,...h.getStyles("group",{className:t,classNames:n,style:i,styles:r}),...f,children:[l&&v.jsx("div",{id:d,...h.getStyles("groupLabel",{classNames:n,styles:r}),children:l}),o]})});RC.classes=lr;RC.displayName="@mantine/core/ComboboxGroup";const PC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ComboboxHeader",null,e);return v.jsx(fe,{...Aa().getStyles("header",{className:t,classNames:n,style:i,styles:r}),...o,onMouseDown:l=>{l.preventDefault()}})});PC.classes=lr;PC.displayName="@mantine/core/ComboboxHeader";function YI({value:e,valuesDivider:n=",",...t}){return v.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(n):e?`${e}`:"",...t})}YI.displayName="@mantine/core/ComboboxHiddenInput";const NC=Pe(e=>{const n=ye("ComboboxOption",null,e),{classNames:t,className:i,style:r,styles:a,vars:o,onClick:l,id:u,active:f,onMouseDown:h,onMouseOver:d,disabled:p,selected:g,mod:b,...w}=n,k=Aa(),_=x.useId(),S=u||_;return v.jsx(fe,{...k.getStyles("option",{className:i,classNames:t,styles:a,style:r}),...w,id:S,mod:["combobox-option",{"combobox-active":f,"combobox-disabled":p,"combobox-selected":g},b],role:"option",onClick:j=>{var T;p?j.preventDefault():((T=k.onOptionSubmit)==null||T.call(k,n.value,n),l==null||l(j))},onMouseDown:j=>{j.preventDefault(),h==null||h(j)},onMouseOver:j=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),d==null||d(j)}})});NC.classes=lr;NC.displayName="@mantine/core/ComboboxOption";const $C=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,id:a,onMouseDown:o,labelledBy:l,...u}=ye("ComboboxOptions",null,e),f=Aa(),h=Pi(a);return x.useEffect(()=>{f.store.setListId(h)},[h]),v.jsx(fe,{...f.getStyles("options",{className:t,style:i,classNames:n,styles:r}),...u,id:h,role:"listbox","aria-labelledby":l,onMouseDown:d=>{d.preventDefault(),o==null||o(d)}})});$C.classes=lr;$C.displayName="@mantine/core/ComboboxOptions";const tne={withAriaAttributes:!0,withKeyboardNavigation:!0},zC=Pe(e=>{const{classNames:n,styles:t,unstyled:i,vars:r,withAriaAttributes:a,onKeyDown:o,onClick:l,withKeyboardNavigation:u,size:f,ref:h,...d}=ye("ComboboxSearch",tne,e),p=Aa(),g=p.getStyles("search"),b=MC({targetType:"input",withAriaAttributes:a,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:o,onClick:l,autoComplete:"off"});return v.jsx(Xt,{ref:Ht(h,p.store.searchRef),classNames:[{input:g.className},n],styles:[{input:g.style},t],size:f||p.size,...b,...d,__staticSelector:"Combobox"})});zC.classes=lr;zC.displayName="@mantine/core/ComboboxSearch";const ine={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},KI=Pe(e=>{const{children:n,refProp:t,withKeyboardNavigation:i,withAriaAttributes:r,withExpandedAttribute:a,targetType:o,autoComplete:l,ref:u,...f}=ye("ComboboxTarget",ine,e),h=Cl(n);if(!h)throw new 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");const d=Aa(),p=x.cloneElement(h,{...MC({targetType:o,withAriaAttributes:r,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:h.props.onKeyDown,onClick:h.props.onClick,autoComplete:l}),...f});return v.jsx(Sn.Target,{refProp:t,ref:Ht(u,d.store.targetRef),children:p})});KI.displayName="@mantine/core/ComboboxTarget";function rne(e,n,t){for(let i=e-1;i>=0;i-=1)if(!n[i].hasAttribute("data-combobox-disabled"))return i;if(t){for(let i=n.length-1;i>-1;i-=1)if(!n[i].hasAttribute("data-combobox-disabled"))return i}return e}function ane(e,n,t){for(let i=e+1;i{l||(u(!0),r==null||r(D))},[u,r,l]),_=x.useCallback((D="unknown")=>{l&&(u(!1),i==null||i(D))},[u,i,l]),S=x.useCallback((D="unknown")=>{l?_(D):k(D)},[_,k,l]),j=x.useCallback(()=>{const D=Uo(p.current),z=Eg(`#${f.current} [data-combobox-selected]`,D);z==null||z.removeAttribute("data-combobox-selected"),z==null||z.removeAttribute("aria-selected")},[]),T=x.useCallback(D=>{const z=Uo(p.current),H=Eg(`#${f.current}`,z),Y=H?Go("[data-combobox-option]",H):null;if(!Y)return null;const N=D>=Y.length?0:D<0?Y.length-1:D;return h.current=N,Y!=null&&Y[N]&&!Y[N].hasAttribute("data-combobox-disabled")?(j(),Y[N].setAttribute("data-combobox-selected","true"),Y[N].setAttribute("aria-selected","true"),Y[N].scrollIntoView({block:"nearest",behavior:o}),Y[N].id):null},[o,j]),A=x.useCallback(()=>{const D=Uo(p.current),z=Eg(`#${f.current} [data-combobox-active]`,D);return T(z?Go(`#${f.current} [data-combobox-option]`,D).findIndex(H=>H===z):0)},[T]),O=x.useCallback(()=>{const D=Uo(p.current),z=Go(`#${f.current} [data-combobox-option]`,D);return T(ane(h.current,z,a))},[T,a]),M=x.useCallback(()=>{const D=Uo(p.current),z=Go(`#${f.current} [data-combobox-option]`,D);return T(rne(h.current,z,a))},[T,a]),$=x.useCallback(()=>{const D=Uo(p.current);return T(one(Go(`#${f.current} [data-combobox-option]`,D)))},[T]),q=x.useCallback((D="selected",z)=>{var H;if(typeof D=="number"){h.current=D;const Y=Uo(p.current),N=Go(`#${f.current} [data-combobox-option]`,Y);z!=null&&z.scrollIntoView&&((H=N[D])==null||H.scrollIntoView({block:"nearest",behavior:o}));return}w.current=window.setTimeout(()=>{var V;const Y=Uo(p.current),N=Go(`#${f.current} [data-combobox-option]`,Y),W=N.findIndex(I=>I.hasAttribute(`data-combobox-${D}`));h.current=W,z!=null&&z.scrollIntoView&&((V=N[W])==null||V.scrollIntoView({block:"nearest",behavior:o}))},0)},[]),P=x.useCallback(()=>{h.current=-1,j()},[j]),L=x.useCallback(()=>{var z,H;const D=Uo(p.current);(H=(z=Go(`#${f.current} [data-combobox-option]`,D))==null?void 0:z[h.current])==null||H.click()},[]),U=x.useCallback(D=>{f.current=D},[]),G=x.useCallback(()=>{g.current=window.setTimeout(()=>{var D;return(D=d.current)==null?void 0:D.focus()},0)},[]),B=x.useCallback(()=>{b.current=window.setTimeout(()=>{var D;return(D=p.current)==null?void 0:D.focus()},0)},[]),R=x.useCallback(()=>h.current,[]);return x.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(w.current)},[]),{dropdownOpened:l,openDropdown:k,closeDropdown:_,toggleDropdown:S,selectedOptionIndex:h.current,getSelectedOptionIndex:R,selectOption:T,selectFirstOption:$,selectActiveOption:A,selectNextOption:O,selectPreviousOption:M,resetSelectedOption:P,updateSelectedOptionIndex:q,listId:f.current,setListId:U,clickSelectedOption:L,searchRef:d,focusSearchInput:G,targetRef:p,focusTarget:B}}const sne={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},XI=(e,{size:n,dropdownPadding:t})=>({options:{"--combobox-option-fz":ai(n),"--combobox-option-padding":Ln(n,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:ve(t),"--combobox-option-fz":ai(n),"--combobox-option-padding":Ln(n,"combobox-option-padding")}}),On=e=>{const n=ye("Combobox",sne,e),{classNames:t,styles:i,unstyled:r,children:a,store:o,vars:l,onOptionSubmit:u,onClose:f,size:h,dropdownPadding:d,resetSelectionOnOptionHover:p,__staticSelector:g,readOnly:b,attributes:w,...k}=n,_=Vf(),S=o||_,j=Ze({name:g||"Combobox",classes:lr,props:n,classNames:t,styles:i,unstyled:r,attributes:w,vars:l,varsResolver:XI}),T=()=>{f==null||f(),S.closeDropdown()};return v.jsx(Jee,{value:{getStyles:j,store:S,onOptionSubmit:u,size:h,resetSelectionOnOptionHover:p,readOnly:b},children:v.jsx(Sn,{opened:S.dropdownOpened,preventPositionChangeWhenVisible:!1,...k,onChange:A=>!A&&T(),withRoles:!1,unstyled:r,children:a})})},lne=e=>e;On.extend=lne;On.classes=lr;On.varsResolver=XI;On.displayName="@mantine/core/Combobox";On.Target=KI;On.Dropdown=TC;On.Options=$C;On.Option=NC;On.Search=zC;On.Empty=EC;On.Chevron=Iy;On.Footer=DC;On.Header=PC;On.EventsTarget=GI;On.DropdownTarget=WI;On.Group=RC;On.ClearButton=VI;On.HiddenInput=YI;function une({children:e,role:n}){const t=x.use(Hu);return t?v.jsx("div",{role:n,"aria-labelledby":t.labelId,"aria-describedby":t.describedBy,children:e}):v.jsx(v.Fragment,{children:e})}const LC=x.createContext(null),cne={hiddenInputValuesSeparator:","},IC=sp((e=>{const{value:n,defaultValue:t,onChange:i,size:r,wrapperProps:a,children:o,readOnly:l,name:u,hiddenInputValuesSeparator:f,hiddenInputProps:h,maxSelectedValues:d,disabled:p,...g}=ye("CheckboxGroup",cne,e),[b,w]=Ai({value:n,defaultValue:t,finalValue:[],onChange:i}),k=j=>{const T=typeof j=="string"?j:j.currentTarget.value;if(l)return;const A=b.includes(T);!A&&d&&b.length>=d||w(A?b.filter(O=>O!==T):[...b,T])},_=j=>{if(p)return!0;if(!d)return!1;const T=b.includes(j),A=b.length>=d;return!T&&A},S=b.join(f);return v.jsx(LC,{value:{value:b,onChange:k,size:r,isDisabled:_},children:v.jsxs(Xt.Wrapper,{size:r,...a,...g,labelElement:"div",__staticSelector:"CheckboxGroup",children:[v.jsx(une,{role:"group",children:o}),v.jsx("input",{type:"hidden",name:u,value:S,...h})]})})}));IC.classes=Xt.Wrapper.classes;IC.displayName="@mantine/core/CheckboxGroup";var ZI={card:"m_26775b0a"};const QI=x.createContext(null),fne={withBorder:!0},JI=(e,{radius:n})=>({card:{"--card-radius":qt(n)}}),By=Pe(e=>{const n=ye("CheckboxCard",fne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,checked:u,mod:f,withBorder:h,value:d,onClick:p,defaultChecked:g,onChange:b,attributes:w,...k}=n,_=Ze({name:"CheckboxCard",classes:ZI,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l,varsResolver:JI,rootSelector:"card"}),S=x.use(LC),[j,T]=Ai({value:typeof u=="boolean"?u:S?S.value.includes(d||""):void 0,defaultValue:g,finalValue:!1,onChange:b});return v.jsx(QI,{value:{checked:j},children:v.jsx(Et,{mod:[{"with-border":h,checked:j},f],..._("card"),...k,role:"checkbox","aria-checked":j,onClick:A=>{p==null||p(A),S==null||S.onChange(d||""),T(!j)}})})});By.displayName="@mantine/core/CheckboxCard";By.classes=ZI;By.varsResolver=JI;function BC({size:e,style:n,...t}){return v.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e!==void 0?{width:ve(e),height:ve(e),...n}:n,"aria-hidden":!0,...t,children:v.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 eB({indeterminate:e,...n}){return e?v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...n,children:v.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):v.jsx(BC,{...n})}var nB={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const dne={icon:eB,variant:"filled",radius:"sm"},tB=(e,{radius:n,color:t,size:i,iconColor:r,variant:a,autoContrast:o})=>{const l=vs({color:t||e.primaryColor,theme:e}),u=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":Ln(i,"checkbox-size"),"--checkbox-radius":n===void 0?void 0:qt(n),"--checkbox-color":a==="outline"?u:ft(t,e),"--checkbox-icon-color":r?ft(r,e):ap(o,e)?If({color:t,theme:e,autoContrast:o}):void 0}}},Fy=Pe(e=>{const n=ye("CheckboxIndicator",dne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,icon:u,indeterminate:f,radius:h,color:d,iconColor:p,autoContrast:g,checked:b,mod:w,variant:k,disabled:_,attributes:S,...j}=n,T=Ze({name:"CheckboxIndicator",classes:nB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:S,vars:l,varsResolver:tB,rootSelector:"indicator"}),A=x.use(QI),O=typeof b=="boolean"||typeof f=="boolean"?b||f:(A==null?void 0:A.checked)||!1;return v.jsx(fe,{...T("indicator",{variant:k}),variant:k,mod:[{checked:O,disabled:_},w],...j,children:v.jsx(u,{indeterminate:f,...T("icon")})})});Fy.displayName="@mantine/core/CheckboxIndicator";Fy.classes=nB;Fy.varsResolver=tB;var iB={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const hne=iB;function rB({__staticSelector:e,__stylesApiProps:n,className:t,classNames:i,styles:r,unstyled:a,children:o,label:l,description:u,id:f,disabled:h,error:d,size:p,labelPosition:g="left",bodyElement:b="div",labelElement:w="label",variant:k,style:_,vars:S,mod:j,attributes:T,...A}){const O=Ze({name:e,props:n,className:t,style:_,classes:iB,classNames:i,styles:r,unstyled:a,attributes:T});return v.jsx(fe,{...O("root"),__vars:{"--label-fz":ai(p),"--label-lh":Ln(p,"label-lh")},mod:[{"label-position":g},j],variant:k,size:p,...A,children:v.jsxs(fe,{component:b,htmlFor:b==="label"?f:void 0,...O("body"),children:[o,v.jsxs("div",{...O("labelWrapper"),"data-disabled":h||void 0,children:[l&&v.jsx(fe,{component:w,htmlFor:w==="label"?f:void 0,...O("label"),"data-disabled":h||void 0,children:l}),u&&v.jsx(Xt.Description,{size:p,__inheritStyles:!1,...O("description"),children:u}),d&&typeof d!="boolean"&&v.jsx(Xt.Error,{size:p,__inheritStyles:!1,...O("error"),children:d})]})]})})}rB.displayName="@mantine/core/InlineInput";var aB={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const mne={labelPosition:"right",icon:eB,withErrorStyles:!0,variant:"filled",radius:"sm"},oB=(e,{radius:n,color:t,size:i,iconColor:r,variant:a,autoContrast:o})=>{const l=vs({color:t||e.primaryColor,theme:e}),u=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":Ln(i,"checkbox-size"),"--checkbox-radius":n===void 0?void 0:qt(n),"--checkbox-color":a==="outline"?u:ft(t,e),"--checkbox-icon-color":r?ft(r,e):ap(o,e)?If({color:t,theme:e,autoContrast:o}):void 0}}},Gr=Pe(e=>{var Z;const n=ye("Checkbox",mne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,label:f,id:h,size:d,radius:p,wrapperProps:g,checked:b,labelPosition:w,description:k,error:_,disabled:S,variant:j,indeterminate:T,icon:A,rootRef:O,iconColor:M,onChange:$,autoContrast:q,mod:P,attributes:L,readOnly:U,onClick:G,withErrorStyles:B,ref:R,...D}=n,z=x.useRef(null),H=x.use(LC),Y=d||(H==null?void 0:H.size),N=Ze({name:"Checkbox",props:n,classes:aB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:L,vars:l,varsResolver:oB}),{styleProps:W,rest:V}=Fu(D),I=Pi(h),Q={checked:(H==null?void 0:H.value.includes(V.value))??b,onChange:le=>{H==null||H.onChange(le),$==null||$(le)}},ie=((Z=H==null?void 0:H.isDisabled)==null?void 0:Z.call(H,V.value))??!1,re=S||ie;return x.useEffect(()=>{z.current&&(z.current.indeterminate=T||!1,T?z.current.setAttribute("data-indeterminate","true"):z.current.removeAttribute("data-indeterminate"))},[T]),v.jsx(rB,{...N("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:I,size:Y,labelPosition:w,label:f,description:k,error:_,disabled:re,classNames:t,styles:a,unstyled:o,"data-checked":Q.checked||b||void 0,variant:j,ref:O,mod:P,attributes:L,inert:V.inert,...W,...g,children:v.jsxs(fe,{...N("inner"),mod:{"data-label-position":w},children:[v.jsx(fe,{component:"input",id:I,ref:Ht(z,R),mod:{error:!!_},...N("input",{focusable:!0,variant:j}),...V,...Q,disabled:re,inert:V.inert,type:"checkbox",onClick:le=>{U&&le.preventDefault(),G==null||G(le)}}),v.jsx(A,{indeterminate:T,...N("icon")})]})})});Gr.classes={...aB,...hne};Gr.varsResolver=oB;Gr.displayName="@mantine/core/Checkbox";Gr.Group=IC;Gr.Indicator=Fy;Gr.Card=By;function Eu(e){return"group"in e}function sB({options:e,search:n,limit:t}){const i=n.trim().toLowerCase(),r=[];for(let a=0;a0)return!1;return!0}function lB(e,n=new Set){if(Array.isArray(e))for(const t of e)if(Eu(t))lB(t.items,n);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(n.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);n.add(t.value)}}function vne(e,n){return Array.isArray(e)?e.includes(n):e===n}function uB({data:e,withCheckIcon:n,withAlignedLabels:t,value:i,checkIconPosition:r,unstyled:a,renderOption:o}){if(!Eu(e)){const u=vne(i,e.value),f=n&&(u?v.jsx(BC,{className:lr.optionsDropdownCheckIcon}):t?v.jsx("div",{className:lr.optionsDropdownCheckPlaceholder}):null),h=v.jsxs(v.Fragment,{children:[r==="left"&&f,v.jsx("span",{children:e.label}),r==="right"&&f]});return v.jsx(On.Option,{value:e.value,disabled:e.disabled,className:vn({[lr.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":u||void 0,"aria-selected":u,active:u,children:typeof o=="function"?o({option:e,checked:u}):h})}const l=e.items.map(u=>v.jsx(uB,{data:u,value:i,unstyled:a,withCheckIcon:n,withAlignedLabels:t,checkIconPosition:r,renderOption:o},`${u.value}`));return v.jsx(On.Group,{label:e.group,children:l})}function qy({data:e,hidden:n,hiddenWhenEmpty:t,filter:i,search:r,limit:a,maxDropdownHeight:o,withScrollArea:l=!0,filterOptions:u=!0,withCheckIcon:f=!1,withAlignedLabels:h=!1,value:d,checkIconPosition:p,nothingFoundMessage:g,unstyled:b,labelId:w,renderOption:k,scrollAreaProps:_,"aria-label":S}){lB(e);const j=typeof r=="string"?(i||sB)({options:e,search:u?r:"",limit:a??1/0}):e,T=pne(j),A=j.map(O=>v.jsx(uB,{data:O,withCheckIcon:f,withAlignedLabels:h,value:d,checkIconPosition:p,unstyled:b,renderOption:k},Eu(O)?O.group:`${O.value}`));return v.jsx(On.Dropdown,{hidden:n||t&&T,"data-composed":!0,children:v.jsxs(On.Options,{labelledBy:w,"aria-label":S,children:[l?v.jsx(ur.Autosize,{mah:o??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",..._,children:A}):A,T&&g&&v.jsx(On.Empty,{children:g})]})})}const Hy=Pe(e=>{const n=ye("Autocomplete",{size:"sm"},e),{classNames:t,styles:i,unstyled:r,vars:a,dropdownOpened:o,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:f,onFocus:h,onBlur:d,onClick:p,onChange:g,data:b,value:w,defaultValue:k,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:S,onOptionSubmit:j,comboboxProps:T,readOnly:A,disabled:O,filter:M,limit:$,withScrollArea:q,maxDropdownHeight:P,size:L,id:U,renderOption:G,autoComplete:B,scrollAreaProps:R,onClear:D,clearButtonProps:z,error:H,clearable:Y,clearSectionMode:N,rightSection:W,autoSelectOnBlur:V,openOnFocus:I=!0,attributes:Q,...ie}=n,re=Pi(U),Z=Ly(b),le=vp(Z),[ee,se]=Ai({value:w,defaultValue:k,finalValue:"",onChange:g}),ke=Vf({opened:o,defaultOpened:l,onDropdownOpen:()=>{f==null||f(),S&&ke.selectFirstOption()},onDropdownClose:()=>{u==null||u(),setTimeout(ke.resetSelectedOption,0)}}),te=ze=>{se(ze),ke.resetSelectedOption()},{resolvedClassNames:$e,resolvedStyles:xe}=Wi({props:n,styles:i,classNames:t});x.useEffect(()=>{_&&ke.selectFirstOption()},[_,ee]);const Ae=v.jsx(On.ClearButton,{...z,onClear:()=>{te(""),D==null||D()}});return v.jsxs(On,{store:ke,__staticSelector:"Autocomplete",classNames:$e,styles:xe,unstyled:r,readOnly:A,size:L,attributes:Q,keepMounted:V,onOptionSubmit:ze=>{j==null||j(ze),te(le[ze].label),ke.closeDropdown()},...T,children:[v.jsx(On.Target,{autoComplete:B,withExpandedAttribute:!0,children:v.jsx(Ni,{...ie,size:L,__staticSelector:"Autocomplete",__clearSection:Ae,__clearable:Y&&!!ee&&!O&&!A,__clearSectionMode:N,rightSection:W,disabled:O,readOnly:A,value:ee,error:H,onChange:ze=>{te(ze.currentTarget.value),ke.openDropdown(),_&&ke.selectFirstOption()},onFocus:ze=>{I&&ke.openDropdown(),h==null||h(ze)},onBlur:ze=>{V&&ke.clickSelectedOption(),ke.closeDropdown(),d==null||d(ze)},onClick:ze=>{ke.openDropdown(),p==null||p(ze)},classNames:$e,styles:xe,unstyled:r,attributes:Q,id:re})}),v.jsx(qy,{data:Z,hidden:A||O,filter:M,search:ee,limit:$,hiddenWhenEmpty:!0,withScrollArea:q,maxDropdownHeight:P,unstyled:r,labelId:ie.label?`${re}-label`:void 0,"aria-label":ie.label?void 0:ie["aria-label"],renderOption:G,scrollAreaProps:R})]})});Hy.classes={...Ni.classes,...On.classes};Hy.displayName="@mantine/core/Autocomplete";var Uy={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const cB=x.createContext({withinGroup:!1}),fB=(e,{spacing:n})=>({group:{"--ag-spacing":Yt(n)}}),Vy=Pe(e=>{const n=ye("AvatarGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,spacing:u,attributes:f,...h}=n;return v.jsx(cB,{value:{withinGroup:!0},children:v.jsx(fe,{...Ze({name:"AvatarGroup",classes:Uy,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:f,vars:l,varsResolver:fB,rootSelector:"group"})("group"),...h})})});Vy.classes=Uy;Vy.varsResolver=fB;Vy.displayName="@mantine/core/AvatarGroup";function gne(e){return v.jsx("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function yne(e){let n=0;for(let t=0;ti[0]).slice(0,n).join("").toUpperCase()}const dB=(e,{size:n,radius:t,variant:i,gradient:r,color:a,autoContrast:o,name:l,allowedInitialsColors:u})=>{const f=a==="initials"&&typeof l=="string"?wne(l,u):a,h=e.variantColorResolver({color:f||"gray",theme:e,gradient:r,variant:i||"light",autoContrast:o});return{root:{"--avatar-size":Ln(n,"avatar-size"),"--avatar-radius":t===void 0?void 0:qt(t),"--avatar-bg":f||i?h.background:void 0,"--avatar-color":f||i?h.color:void 0,"--avatar-bd":f||i?h.border:void 0}}},mo=ki(e=>{const n=ye("Avatar",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,src:u,alt:f,radius:h,color:d,gradient:p,imageProps:g,children:b,autoContrast:w,mod:k,name:_,allowedInitialsColors:S,attributes:j,...T}=n,A=x.use(cB),[O,M]=x.useState(!u),$=Ze({name:"Avatar",props:n,classes:Uy,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:j,vars:l,varsResolver:dB});return x.useEffect(()=>M(!u),[u]),v.jsx(fe,{...$("root"),mod:[{"within-group":A.withinGroup},k],...T,children:O||!u?v.jsx("span",{...$("placeholder"),title:f,children:b||typeof _=="string"&&kne(_)||v.jsx(gne,{})}):v.jsx("img",{...g,...$("image"),src:u,alt:f,onError:q=>{var P;M(!0),(P=g==null?void 0:g.onError)==null||P.call(g,q)}})})});mo.classes=Uy;mo.varsResolver=dB;mo.displayName="@mantine/core/Avatar";mo.Group=Vy;var hB={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const mB=(e,{radius:n,color:t,gradient:i,variant:r,size:a,autoContrast:o,circle:l})=>{const u=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:o});return{root:{"--badge-height":Ln(a,"badge-height"),"--badge-padding-x":Ln(a,"badge-padding-x"),"--badge-fz":Ln(a,"badge-fz"),"--badge-radius":l||n===void 0?void 0:qt(n),"--badge-bg":t||r?u.background:void 0,"--badge-color":t||r?u.color:void 0,"--badge-bd":t||r?u.border:void 0,"--badge-dot-color":r==="dot"?ft(t,e):void 0}}},Gn=ki(e=>{const n=ye("Badge",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,radius:u,color:f,gradient:h,leftSection:d,rightSection:p,children:g,variant:b,fullWidth:w,autoContrast:k,circle:_,mod:S,attributes:j,...T}=n,A=Ze({name:"Badge",props:n,classes:hB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:j,vars:l,varsResolver:mB});return v.jsxs(fe,{variant:b,mod:[{block:w,circle:_,"with-right-section":!!p,"with-left-section":!!d},S],...A("root",{variant:b}),...T,children:[d&&v.jsx("span",{...A("section"),"data-position":"left",children:d}),v.jsx("span",{...A("label"),children:g}),p&&v.jsx("span",{...A("section"),"data-position":"right",children:p})]})});Gn.classes=hB;Gn.varsResolver=mB;Gn.displayName="@mantine/core/Badge";var Wf={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const AE={orientation:"horizontal"},pB=(e,{borderWidth:n})=>({group:{"--button-border-width":ve(n)}}),Wy=Pe(e=>{const n=ye("ButtonGroup",AE,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,orientation:l,vars:u,borderWidth:f,mod:h,attributes:d,...p}=ye("ButtonGroup",AE,e);return v.jsx(fe,{...Ze({name:"ButtonGroup",props:n,classes:Wf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:d,vars:u,varsResolver:pB,rootSelector:"group"})("group"),mod:[{"data-orientation":l},h],role:"group",...p})});Wy.classes=Wf;Wy.varsResolver=pB;Wy.displayName="@mantine/core/ButtonGroup";const vB=(e,{radius:n,color:t,gradient:i,variant:r,autoContrast:a,size:o})=>{const l=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:a});return{groupSection:{"--section-height":Ln(o,"section-height"),"--section-padding-x":Ln(o,"section-padding-x"),"--section-fz":o!=null&&o.includes("compact")?ai(o.replace("compact-","")):ai(o),"--section-radius":n===void 0?void 0:qt(n),"--section-bg":t||r?l.background:void 0,"--section-color":l.color,"--section-bd":t||r?l.border:void 0}}},Gy=Pe(e=>{const n=ye("ButtonGroupSection",null,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,vars:l,gradient:u,radius:f,autoContrast:h,attributes:d,...p}=n;return v.jsx(fe,{...Ze({name:"ButtonGroupSection",props:n,classes:Wf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:d,vars:l,varsResolver:vB,rootSelector:"groupSection"})("groupSection"),...p})});Gy.classes=Wf;Gy.varsResolver=vB;Gy.displayName="@mantine/core/ButtonGroupSection";const _ne={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ve(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},gB=(e,{radius:n,color:t,gradient:i,variant:r,size:a,justify:o,autoContrast:l})=>{const u=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:l});return{root:{"--button-justify":o,"--button-height":Ln(a,"button-height"),"--button-padding-x":Ln(a,"button-padding-x"),"--button-fz":a!=null&&a.includes("compact")?ai(a.replace("compact-","")):ai(a),"--button-radius":n===void 0?void 0:qt(n),"--button-bg":t||r?u.background:void 0,"--button-hover":t||r?u.hover:void 0,"--button-color":u.color,"--button-bd":t||r?u.border:void 0,"--button-hover-color":t||r?u.hoverColor:void 0}}},Yn=ki(e=>{const n=ye("Button",null,e),{style:t,vars:i,className:r,color:a,disabled:o,children:l,leftSection:u,rightSection:f,fullWidth:h,variant:d,radius:p,loading:g,loaderProps:b,gradient:w,classNames:k,styles:_,unstyled:S,"data-disabled":j,autoContrast:T,mod:A,attributes:O,...M}=n,$=Ze({name:"Button",props:n,classes:Wf,className:r,style:t,classNames:k,styles:_,unstyled:S,attributes:O,vars:i,varsResolver:gB}),q=!!u,P=!!f;return v.jsxs(Et,{...$("root",{active:!o&&!g&&!j}),unstyled:S,variant:d,disabled:o||g,mod:[{disabled:o||j,loading:g,block:h,"with-left-section":q,"with-right-section":P},A],...M,children:[typeof g=="boolean"&&v.jsx(ls,{mounted:g,transition:_ne,duration:150,children:L=>v.jsx(fe,{component:"span",...$("loader",{style:L}),"aria-hidden":!0,children:v.jsx(Zt,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...b})})}),v.jsxs("span",{...$("inner"),children:[u&&v.jsx(fe,{component:"span",...$("section"),mod:{position:"left"},children:u}),v.jsx(fe,{component:"span",mod:{loading:g},...$("label"),children:l}),f&&v.jsx(fe,{component:"span",...$("section"),mod:{position:"right"},children:f})]})]})});Yn.classes=Wf;Yn.varsResolver=gB;Yn.displayName="@mantine/core/Button";Yn.Group=Wy;Yn.GroupSection=Gy;const[xne,Sne]=Ar("Card component was not found in tree");var FC={root:"m_e615b15f",section:"m_599a2148"};const Yy=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,withBorder:o,inheritPadding:l,mod:u,...f}=ye("CardSection",null,e),h=Sne();return v.jsx(fe,{mod:[{"with-border":o,"inherit-padding":l},u],...h.getStyles("section",{className:t,style:i,styles:r,classNames:n}),...f})});Yy.classes=FC;Yy.displayName="@mantine/core/CardSection";const yB=(e,{padding:n})=>({root:{"--card-padding":Yt(n)}}),Cne={orientation:"vertical"},za=ki(e=>{const n=ye("Card",Cne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,padding:f,attributes:h,orientation:d,...p}=n,g=Ze({name:"Card",props:n,classes:FC,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,varsResolver:yB}),b=x.Children.toArray(u),w=b.map((k,_)=>{var S;return typeof k=="object"&&k&&"type"in k&&(k.type===Yy||((S=k.type)==null?void 0:S.displayName)==="@mantine/core/CardSection")?x.cloneElement(k,{"data-orientation":d,"data-first-section":_===0||void 0,"data-last-section":_===b.length-1||void 0}):k});return v.jsx(xne,{value:{getStyles:g},children:v.jsx(Tt,{unstyled:o,"data-orientation":d,...g("root"),...p,children:w})})});za.classes=FC;za.varsResolver=yB;za.displayName="@mantine/core/Card";za.Section=Yy;var bB={root:"m_4451eb3a"};const Gf=ki(e=>{const n=ye("Center",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,inline:u,mod:f,attributes:h,...d}=n,p=Ze({name:"Center",props:n,classes:bB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l});return v.jsx(fe,{mod:[{inline:u},f],...p("root"),...d})});Gf.classes=bB;Gf.displayName="@mantine/core/Center";var wB={root:"m_b183c0a2"};const kB=(e,{color:n})=>({root:{"--code-bg":n?ft(n,e):void 0}}),pl=Pe(e=>{const n=ye("Code",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,block:f,mod:h,attributes:d,...p}=n,g=Ze({name:"Code",props:n,classes:wB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:d,vars:l,varsResolver:kB});return v.jsx(fe,{component:f?"pre":"code",mod:[{block:f},h],...g("root"),...p,dir:"ltr"})});pl.classes=wB;pl.varsResolver=kB;pl.displayName="@mantine/core/Code";var _B={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const OE={withShadow:!0},xB=(e,{radius:n,size:t})=>({root:{"--cs-radius":n===void 0?void 0:qt(n),"--cs-size":ve(t)}}),Yf=ki(e=>{const n=ye("ColorSwatch",OE,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,radius:f,withShadow:h,children:d,attributes:p,...g}=ye("ColorSwatch",OE,n),b=Ze({name:"ColorSwatch",props:n,classes:_B,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:p,vars:l,varsResolver:xB});return v.jsxs(fe,{...b("root",{focusable:!0}),...g,children:[v.jsx("span",{...b("alphaOverlay")}),h&&v.jsx("span",{...b("shadowOverlay")}),v.jsx("span",{...b("colorOverlay",{style:{backgroundColor:u}})}),v.jsx("span",{...b("childrenOverlay"),children:d})]})});Yf.classes=_B;Yf.varsResolver=xB;Yf.displayName="@mantine/core/ColorSwatch";function ga(e,n=0,t=10**n){return Math.round(t*e)/t}function jne({h:e,s:n,l:t,a:i}){const r=n*((t<50?t:100-t)/100);return{h:e,s:r>0?2*r/(t+r)*100:0,v:t+r,a:i}}const Ane={grad:360/400,turn:360,rad:360/(Math.PI*2)};function One(e,n="deg"){return Number(e)*(Ane[n]||1)}const Tne=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function TE(e){const n=Tne.exec(e);return n?jne({h:One(n[1],n[2]),s:Number(n[3]),l:Number(n[4]),a:n[5]===void 0?1:Number(n[5])/(n[6]?100:1)}):{h:0,s:0,v:0,a:1}}function BS({r:e,g:n,b:t,a:i}){const r=Math.max(e,n,t),a=r-Math.min(e,n,t),o=a?r===e?(n-t)/a:r===n?2+(t-e)/a:4+(e-n)/a:0;return{h:ga(60*(o<0?o+6:o),3),s:ga(r?a/r*100:0,3),v:ga(r/255*100,3),a:i}}function FS(e){const n=e[0]==="#"?e.slice(1):e;return n.length===3?BS({r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:1}):BS({r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:1})}function Ene(e){const n=e[0]==="#"?e.slice(1):e,t=a=>ga(parseInt(a,16)/255,3);if(n.length===4){const a=n.slice(0,3),o=t(n[3]+n[3]);return{...FS(a),a:o}}const i=n.slice(0,6),r=t(n.slice(6,8));return{...FS(i),a:r}}const Mne=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function EE(e){const n=Mne.exec(e);return n?BS({r:Number(n[1])/(n[2]?100/255:1),g:Number(n[3])/(n[4]?100/255:1),b:Number(n[5])/(n[6]?100/255:1),a:n[7]===void 0?1:Number(n[7])/(n[8]?100:1)}):{h:0,s:0,v:0,a:1}}const SB={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},Dne={hex:FS,hexa:Ene,rgb:EE,rgba:EE,hsl:TE,hsla:TE};function Rne(e){for(const[,n]of Object.entries(SB))if(n.test(e))return!0;return!1}function ig(e){if(typeof e!="string")return{h:0,s:0,v:0,a:1};if(e==="transparent")return{h:0,s:0,v:0,a:0};const n=e.trim();for(const[t,i]of Object.entries(SB))if(i.test(n))return Dne[t](n);return{h:0,s:0,v:0,a:1}}const Ky=x.createContext(null);function qC({position:e,...n}){return v.jsx(fe,{__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...n})}qC.displayName="@mantine/core/ColorPickerThumb";var Xy={wrapper:"m_fee9c77",preview:"m_9dddfbac",body:"m_bffecc3e",sliders:"m_3283bb96",thumb:"m_40d572ba",swatch:"m_d8ee6fd8",swatches:"m_5711e686",saturation:"m_202a296e",saturationOverlay:"m_11b3db02",slider:"m_d856d47d",sliderOverlay:"m_8f327113"};const Kf=Pe(e=>{var H;const n=ye("ColorSlider",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,onChange:u,onChangeEnd:f,maxValue:h,round:d,size:p="md",focusable:g=!0,value:b,overlays:w,thumbColor:k="transparent",onScrubStart:_,onScrubEnd:S,__staticSelector:j="ColorPicker",attributes:T,ref:A,...O}=n,M=Ze({name:j,classes:Xy,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:T,rootSelector:"slider"}),$=((H=x.use(Ky))==null?void 0:H.getStyles)||M,q=ci(),[P,L]=x.useState({y:0,x:b/h}),U=x.useRef(P),G=Y=>d?Math.round(Y*h):Y*h,{ref:B}=Vz(({x:Y,y:N})=>{U.current={x:Y,y:N},u==null||u(G(Y))},{onScrubEnd:()=>{const{x:Y}=U.current;f==null||f(G(Y)),S==null||S()},onScrubStart:_});os(()=>{L({y:0,x:b/h})},[b]);const R=(Y,N)=>{Y.preventDefault();const W=Uz(N);u==null||u(G(W.x)),f==null||f(G(W.x))},D=Y=>{switch(Y.key){case"ArrowRight":R(Y,{x:P.x+.05,y:P.y});break;case"ArrowLeft":R(Y,{x:P.x-.05,y:P.y});break}},z=w.map((Y,N)=>x.createElement("div",{...$("sliderOverlay"),style:Y,key:N}));return v.jsxs(fe,{...O,ref:Ht(B,A),...$("slider"),size:p,role:"slider","aria-valuenow":b,"aria-valuemax":h,"aria-valuemin":0,tabIndex:g?0:-1,onKeyDown:D,"data-focus-ring":q.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${p})`},children:[z,v.jsx(qC,{position:P,...$("thumb",{style:{top:ve(1),background:k}})})]})});Kf.displayName="@mantine/core/ColorSlider";Kf.classes=Xy;const Pne={__staticSelector:"AlphaSlider"},HC=Pe(e=>{const{value:n,onChange:t,onChangeEnd:i,color:r,...a}=ye("AlphaSlider",Pne,e);return v.jsx(Kf,{...a,value:n,onChange:o=>t==null?void 0:t(ga(o,2)),onChangeEnd:o=>i==null?void 0:i(ga(o,2)),maxValue:1,round:!1,"data-alpha":!0,overlays:[{backgroundImage:"linear-gradient(45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--slider-checkers) 75%)",backgroundSize:`${ve(8)} ${ve(8)}`,backgroundPosition:`0 0, 0 ${ve(4)}, ${ve(4)} ${ve(-4)}, ${ve(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${r})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${ve(1)} inset, rgb(0, 0, 0, .15) 0 0 ${ve(4)} inset`}]})});HC.displayName="@mantine/core/AlphaSlider";HC.classes=Kf.classes;function CB({h:e,s:n,v:t,a:i}){const r=e/360*6,a=n/100,o=t/100,l=Math.floor(r),u=o*(1-a),f=o*(1-(r-l)*a),h=o*(1-(1-r+l)*a),d=l%6;return{r:ga([o,f,u,u,h,o][d]*255),g:ga([h,o,o,f,u,u][d]*255),b:ga([u,u,h,o,o,f][d]*255),a:ga(i,2)}}function ME(e,n){const{r:t,g:i,b:r,a}=CB(e);return n?`rgba(${t}, ${i}, ${r}, ${ga(a,2)})`:`rgb(${t}, ${i}, ${r})`}function DE({h:e,s:n,v:t,a:i},r){const a=(200-n)*t/100,o={h:Math.round(e),s:Math.round(a>0&&a<200?n*t/100/(a<=100?a:200-a)*100:0),l:Math.round(a/2)};return r?`hsla(${o.h}, ${o.s}%, ${o.l}%, ${ga(i,2)})`:`hsl(${o.h}, ${o.s}%, ${o.l}%)`}function $g(e){const n=e.toString(16);return n.length<2?`0${n}`:n}function jB(e){const{r:n,g:t,b:i}=CB(e);return`#${$g(n)}${$g(t)}${$g(i)}`}function Nne(e){const n=Math.round(e.a*255);return`${jB(e)}${$g(n)}`}const zk={hex:jB,hexa:e=>Nne(e),rgb:e=>ME(e,!1),rgba:e=>ME(e,!0),hsl:e=>DE(e,!1),hsla:e=>DE(e,!0)};function Js(e,n){return n?e in zk?zk[e](n):zk.hex(n):"#000000"}const $ne={__staticSelector:"HueSlider"},UC=Pe(e=>{const{value:n,onChange:t,onChangeEnd:i,color:r,...a}=ye("HueSlider",$ne,e);return v.jsx(Kf,{...a,value:n,onChange:t,onChangeEnd:i,maxValue:360,thumbColor:`hsl(${n}, 100%, 50%)`,round:!0,"data-hue":!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${ve(1)} inset, rgb(0, 0, 0, .15) 0 0 ${ve(4)} inset`}]})});UC.displayName="@mantine/core/HueSlider";UC.classes=Kf.classes;function AB({className:e,onChange:n,onChangeEnd:t,value:i,saturationLabel:r,focusable:a=!0,size:o,color:l,onScrubStart:u,onScrubEnd:f,...h}){const{getStyles:d}=x.use(Ky),[p,g]=x.useState({x:i.s/100,y:1-i.v/100}),b=x.useRef(p),{ref:w}=Vz(({x:S,y:j})=>{b.current={x:S,y:j},n({s:Math.round(S*100),v:Math.round((1-j)*100)})},{onScrubEnd:()=>{const{x:S,y:j}=b.current;t({s:Math.round(S*100),v:Math.round((1-j)*100)}),f==null||f()},onScrubStart:u});x.useEffect(()=>{g({x:i.s/100,y:1-i.v/100})},[i.s,i.v]);const k=(S,j)=>{S.preventDefault();const T=Uz(j);n({s:Math.round(T.x*100),v:Math.round((1-T.y)*100)}),t({s:Math.round(T.x*100),v:Math.round((1-T.y)*100)})},_=S=>{switch(S.key){case"ArrowUp":k(S,{y:p.y-.05,x:p.x});break;case"ArrowDown":k(S,{y:p.y+.05,x:p.x});break;case"ArrowRight":k(S,{x:p.x+.05,y:p.y});break;case"ArrowLeft":k(S,{x:p.x-.05,y:p.y});break}};return v.jsxs(fe,{...d("saturation"),ref:w,...h,role:"slider","aria-label":r,"aria-valuenow":p.x,"aria-valuetext":Js("rgba",i),tabIndex:a?0:-1,onKeyDown:_,children:[v.jsx("div",{...d("saturationOverlay",{style:{backgroundColor:`hsl(${i.h}, 100%, 50%)`}})}),v.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}})}),v.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}})}),v.jsx(qC,{position:p,...d("thumb",{style:{backgroundColor:l}})})]})}AB.displayName="@mantine/core/Saturation";function OB({className:e,datatype:n,setValue:t,onChangeEnd:i,size:r,focusable:a,data:o,swatchesPerRow:l,value:u,...f}){const h=x.use(Ky),d=o.map((p,g)=>x.createElement(Yf,{...h.getStyles("swatch"),unstyled:h.unstyled,component:"button",type:"button",color:p,key:g,radius:"sm",onClick:()=>{t(p),i==null||i(p)},"aria-label":p,tabIndex:a?0:-1,"data-swatch":!0},u===p&&v.jsx(BC,{size:"35%",color:Kz(p)<.5?"white":"black"})));return v.jsx(fe,{...h.getStyles("swatches"),...f,children:d})}OB.displayName="@mantine/core/Swatches";const zne={swatchesPerRow:7,withPicker:!0,focusable:!0,size:"md",__staticSelector:"ColorPicker"},TB=(e,{size:n,swatchesPerRow:t})=>({wrapper:{"--cp-preview-size":Ln(n,"cp-preview-size"),"--cp-width":Ln(n,"cp-width"),"--cp-body-spacing":Yt(n),"--cp-swatch-size":`${100/t}%`,"--cp-thumb-size":Ln(n,"cp-thumb-size"),"--cp-saturation-height":Ln(n,"cp-saturation-height")}}),Zy=Pe(e=>{const n=ye("ColorPicker",zne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,format:u="hex",value:f,defaultValue:h,onChange:d,onChangeEnd:p,withPicker:g,size:b,saturationLabel:w,hueLabel:k,alphaLabel:_,focusable:S,swatches:j,swatchesPerRow:T,fullWidth:A,onColorSwatchClick:O,__staticSelector:M,mod:$,attributes:q,name:P,hiddenInputProps:L,...U}=n,G=Ze({name:M,props:n,classes:Xy,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:q,rootSelector:"wrapper",vars:l,varsResolver:TB}),B=x.useRef(u||"hex"),R=x.useRef(""),D=x.useRef(-1),z=x.useRef(!1),H=u==="hexa"||u==="rgba"||u==="hsla",[Y,N,W]=Ai({value:f,defaultValue:h,finalValue:"#FFFFFF",onChange:d}),[V,I]=x.useState(ig(Y)),Q=()=>{window.clearTimeout(D.current),z.current=!0},ie=()=>{window.clearTimeout(D.current),D.current=window.setTimeout(()=>{z.current=!1},200)},re=Z=>{I(le=>{const ee={...le,...Z};return R.current=Js(B.current,ee),ee}),N(R.current)};return os(()=>{typeof f=="string"&&Rne(f)&&!z.current&&I(ig(f))},[f]),os(()=>{B.current=u||"hex",N(Js(B.current,V))},[u]),v.jsx(Ky,{value:{getStyles:G,unstyled:o},children:v.jsxs(fe,{...G("wrapper"),size:b,mod:[{"full-width":A},$],...U,children:[P&&v.jsx("input",{type:"hidden",name:P,value:Y,...L}),g&&v.jsxs(v.Fragment,{children:[v.jsx(AB,{value:V,onChange:re,onChangeEnd:({s:Z,v:le})=>p==null?void 0:p(Js(B.current,{...V,s:Z,v:le})),color:Y,size:b,focusable:S,saturationLabel:w,onScrubStart:Q,onScrubEnd:ie}),v.jsxs("div",{...G("body"),children:[v.jsxs("div",{...G("sliders"),children:[v.jsx(UC,{value:V.h,onChange:Z=>re({h:Z}),onChangeEnd:Z=>p==null?void 0:p(Js(B.current,{...V,h:Z})),size:b,focusable:S,"aria-label":k,onScrubStart:Q,onScrubEnd:ie}),H&&v.jsx(HC,{value:V.a,onChange:Z=>re({a:Z}),onChangeEnd:Z=>{p==null||p(Js(B.current,{...V,a:Z}))},size:b,color:Js("hex",V),focusable:S,"aria-label":_,onScrubStart:Q,onScrubEnd:ie})]}),H&&v.jsx(Yf,{color:Y,radius:"sm",size:"var(--cp-preview-size)",...G("preview")})]})]}),Array.isArray(j)&&v.jsx(OB,{data:j,swatchesPerRow:T,focusable:S,setValue:N,value:Y,onChangeEnd:Z=>{const le=Js(u,ig(Z));O==null||O(le),p==null||p(le),W||I(ig(Z))}})]})})});Zy.classes=Xy;Zy.varsResolver=TB;Zy.displayName="@mantine/core/ColorPicker";const Lne={timeout:1e3};function qS(e){const{children:n,timeout:t,value:i,...r}=ye("CopyButton",Lne,e),a=lX({timeout:t}),o=()=>a.copy(i);return v.jsx(v.Fragment,{children:n({copy:o,copied:a.copied,...r})})}qS.displayName="@mantine/core/CopyButton";var EB={root:"m_3eebeb36",label:"m_9e365f20"};const Ine={orientation:"horizontal"},MB=(e,{color:n,variant:t,size:i})=>({root:{"--divider-color":n?ft(n,e):void 0,"--divider-border-style":t,"--divider-size":Ln(i,"divider-size")}}),us=Pe(e=>{const n=ye("Divider",Ine,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,orientation:f,label:h,labelPosition:d,mod:p,attributes:g,...b}=n,w=Ze({name:"Divider",classes:EB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,vars:l,varsResolver:MB});return v.jsx(fe,{mod:[{orientation:f,withLabel:!!h},p],role:"separator",...w("root"),...b,children:h&&v.jsx(fe,{component:"span",mod:{position:d},...w("label"),children:h})})});us.classes=EB;us.varsResolver=MB;us.displayName="@mantine/core/Divider";const VC=sp(e=>{const{onChange:n,children:t,multiple:i,accept:r,name:a,form:o,resetRef:l,disabled:u,capture:f,inputProps:h,ref:d,...p}=ye("FileButton",null,e),g=x.useRef(null),b=()=>{var _;!u&&((_=g.current)==null||_.click())},w=_=>{if(_.currentTarget.files===null)return n(i?[]:null);n(i?Array.from(_.currentTarget.files):_.currentTarget.files[0]||null)};return cm(l,()=>{g.current&&(g.current.value="")}),v.jsxs(v.Fragment,{children:[v.jsx("input",{style:{display:"none"},type:"file",accept:r,multiple:i,onChange:w,ref:Ht(d,g),name:a,form:o,capture:f,...h}),t({onClick:b,...p})]})});VC.displayName="@mantine/core/FileButton";const[RE,DB]=Ar("Grid component was not found in tree"),HS=(e,n)=>{if(e==="content")return"auto";if(e==="auto")return"0rem";if(e)return e===n?"100%":`calc(${100*e/n}% - ${(n-e)/n} * var(--grid-column-gap))`},PE=(e,n,t)=>t||e==="auto"?"100%":e==="content"?"unset":HS(e,n),NE=(e,n)=>{if(e)return e==="auto"||n?"1":"auto"},$E=(e,n)=>{if(e===0)return"0";if(e)return`calc(${100*e/n}% + ${e/n} * var(--grid-column-gap))`};function Bne({span:e,order:n,offset:t,align:i,selector:r}){var g;const a=ci(),o=DB(),l=o.breakpoints||a.breakpoints,u=Wr(e),f=u===void 0?12:u,h=Bu({"--col-order":(g=Wr(n))==null?void 0:g.toString(),"--col-flex-grow":NE(f,o.grow),"--col-flex-basis":HS(f,o.columns),"--col-width":f==="content"?"auto":void 0,"--col-max-width":PE(f,o.columns,o.grow),"--col-offset":$E(Wr(t),o.columns),"--col-align-self":Wr(i)}),d=$t(l).reduce((b,w)=>{var k;return b[w]||(b[w]={}),typeof n=="object"&&n[w]!==void 0&&(b[w]["--col-order"]=(k=n[w])==null?void 0:k.toString()),typeof e=="object"&&e[w]!==void 0&&(b[w]["--col-flex-grow"]=NE(e[w],o.grow),b[w]["--col-flex-basis"]=HS(e[w],o.columns),b[w]["--col-width"]=e[w]==="content"?"auto":void 0,b[w]["--col-max-width"]=PE(e[w],o.columns,o.grow)),typeof t=="object"&&t[w]!==void 0&&(b[w]["--col-offset"]=$E(t[w],o.columns)),typeof i=="object"&&i[w]!==void 0&&(b[w]["--col-align-self"]=i[w]),b},{}),p=um($t(d),l).filter(b=>$t(d[b.value]).length>0).map(b=>({query:o.type==="container"?`mantine-grid (min-width: ${l[b.value]})`:`(min-width: ${l[b.value]})`,styles:d[b.value]}));return v.jsx(Bf,{styles:h,media:o.type==="container"?void 0:p,container:o.type==="container"?p:void 0,selector:r})}var WC={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const Fne={span:12},GC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,span:o,order:l,offset:u,align:f,...h}=ye("GridCol",Fne,e),d=DB(),p=Sy();return v.jsxs(v.Fragment,{children:[v.jsx(Bne,{selector:`.${p}`,span:o,order:l,offset:u,align:f}),v.jsx(fe,{...d.getStyles("col",{className:vn(t,p),style:i,classNames:n,styles:r}),...h})]})});GC.classes=WC;GC.displayName="@mantine/core/GridCol";function zE({gap:e,rowGap:n,columnGap:t,selector:i,breakpoints:r,type:a}){const o=ci(),l=r||o.breakpoints,u=Bu({"--grid-gap":Yt(Wr(e)),"--grid-row-gap":Yt(Wr(n)),"--grid-column-gap":Yt(Wr(t))}),f=$t(l).reduce((d,p)=>(d[p]||(d[p]={}),typeof e=="object"&&e[p]!==void 0&&(d[p]["--grid-gap"]=Yt(e[p])),typeof n=="object"&&n[p]!==void 0&&(d[p]["--grid-row-gap"]=Yt(n[p])),typeof t=="object"&&t[p]!==void 0&&(d[p]["--grid-column-gap"]=Yt(t[p])),d),{}),h=um($t(f),l).filter(d=>$t(f[d.value]).length>0).map(d=>({query:a==="container"?`mantine-grid (min-width: ${l[d.value]})`:`(min-width: ${l[d.value]})`,styles:f[d.value]}));return v.jsx(Bf,{styles:u,media:a==="container"?void 0:h,container:a==="container"?h:void 0,selector:i})}const qne={gap:"md",columns:12},RB=(e,{justify:n,align:t,overflow:i})=>({root:{"--grid-justify":n,"--grid-align":t,"--grid-overflow":i}}),Hr=Pe(e=>{const n=ye("Grid",qne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,grow:u,gap:f,rowGap:h,columnGap:d,columns:p,align:g,justify:b,children:w,breakpoints:k,type:_,attributes:S,...j}=n,T=Ze({name:"Grid",classes:WC,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:S,vars:l,varsResolver:RB}),A=Sy();return _==="container"&&k?v.jsxs(RE,{value:{getStyles:T,grow:u,columns:p,breakpoints:k,type:_},children:[v.jsx(zE,{selector:`.${A}`,...n}),v.jsx("div",{...T("container"),children:v.jsx(fe,{...T("root",{className:A}),...j,children:v.jsx("div",{...T("inner"),children:w})})})]}):v.jsxs(RE,{value:{getStyles:T,grow:u,columns:p,breakpoints:k,type:_},children:[v.jsx(zE,{selector:`.${A}`,...n}),v.jsx(fe,{...T("root",{className:A}),...j,children:v.jsx("div",{...T("inner"),children:w})})]})});Hr.classes=WC;Hr.varsResolver=RB;Hr.displayName="@mantine/core/Grid";Hr.Col=GC;const[Hne,PB]=Ar("HoverCard component was not found in the tree"),Qy=x.createContext({withinGroup:!1}),Une={openDelay:0,closeDelay:0};function YC(e){const{openDelay:n,closeDelay:t,children:i}=ye("HoverCardGroup",Une,e);return v.jsx(Qy,{value:{withinGroup:!0},children:v.jsx(NL,{delay:{open:n,close:t},children:i})})}YC.displayName="@mantine/core/HoverCardGroup";YC.extend=e=>e;function NB(e){const{children:n,onMouseEnter:t,onMouseLeave:i,...r}=ye("HoverCardDropdown",null,e),a=PB();if(x.use(Qy).withinGroup&&a.getFloatingProps&&a.floating){const u=a.getFloatingProps();return v.jsx(Sn.Dropdown,{ref:a.floating,...u,onMouseEnter:bi(t,u.onMouseEnter),onMouseLeave:bi(i,u.onMouseLeave),...r,children:n})}const o=bi(t,a.openDropdown),l=bi(i,a.closeDropdown);return v.jsx(Sn.Dropdown,{onMouseEnter:o,onMouseLeave:l,...r,children:n})}NB.displayName="@mantine/core/HoverCardDropdown";const Vne={refProp:"ref"};function $B(e){const{children:n,refProp:t,eventPropsWrapperName:i,...r}=ye("HoverCardTarget",Vne,e),a=Cl(n);if(!a)throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const o=PB();if(x.use(Qy).withinGroup&&o.getReferenceProps&&o.reference){const u=o.getReferenceProps();return v.jsx(Sn.Target,{refProp:t,...r,children:x.cloneElement(a,i?{[i]:{...u,ref:o.reference}}:{...u,ref:o.reference})})}const l={onMouseEnter:bi(a.props.onMouseEnter,o.openDropdown),onMouseLeave:bi(a.props.onMouseLeave,o.closeDropdown)};return v.jsx(Sn.Target,{refProp:t,...r,children:x.cloneElement(a,i?{[i]:l}:l)})}$B.displayName="@mantine/core/HoverCardTarget";function Wne(e){const[n,t]=x.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:n,r=x.use(Qy).withinGroup,a=Pi(),o=x.useRef(-1),l=x.useRef(-1),u=x.useCallback(()=>{window.clearTimeout(o.current),window.clearTimeout(l.current)},[]),f=x.useCallback(S=>{var j,T;t(S),S?(g(a),(j=e.onOpen)==null||j.call(e)):(T=e.onClose)==null||T.call(e)},[a,e.onOpen,e.onClose]),{context:h,refs:d}=Dy({open:i,onOpenChange:f}),{delay:p,setCurrentId:g}=$L(h,{id:a}),{getReferenceProps:b,getFloatingProps:w}=LL([RL(h,{enabled:!0,delay:r?p:{open:e.openDelay,close:e.closeDelay}}),IL(h,{role:"dialog"}),zL(h,{enabled:r})]),k=x.useCallback(()=>{r||(u(),e.openDelay===0||e.openDelay===void 0?f(!0):o.current=window.setTimeout(()=>f(!0),e.openDelay))},[r,u,e.openDelay,f]),_=x.useCallback(()=>{r||(u(),e.closeDelay===0||e.closeDelay===void 0?f(!1):l.current=window.setTimeout(()=>f(!1),e.closeDelay))},[r,u,e.closeDelay,f]);return x.useEffect(()=>()=>u(),[u]),{opened:i,reference:d.setReference,floating:d.setFloating,getReferenceProps:b,getFloatingProps:w,openDropdown:k,closeDropdown:_}}const Gne={openDelay:0,closeDelay:150,initiallyOpened:!1};function vl(e){const{children:n,onOpen:t,onClose:i,openDelay:r,closeDelay:a,initiallyOpened:o,...l}=ye("HoverCard",Gne,e),u=Wne({openDelay:r,closeDelay:a,defaultOpened:o,onOpen:t,onClose:i});return v.jsx(Hne,{value:{openDropdown:u.openDropdown,closeDropdown:u.closeDropdown,getReferenceProps:u.getReferenceProps,getFloatingProps:u.getFloatingProps,reference:u.reference,floating:u.floating},children:v.jsx(Sn,{...l,opened:u.opened,__staticSelector:"HoverCard",children:n})})}vl.displayName="@mantine/core/HoverCard";vl.Target=$B;vl.Dropdown=NB;vl.Group=YC;vl.extend=e=>e;var zB={root:"m_9e117634"};const LB=(e,{radius:n,fit:t})=>({root:{"--image-radius":n===void 0?void 0:qt(n),"--image-object-fit":t}}),Xf=ki(e=>{const n=ye("Image",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,onError:u,src:f,radius:h,fit:d,fallbackSrc:p,mod:g,attributes:b,...w}=n,[k,_]=x.useState(!f);x.useEffect(()=>_(!f),[f]);const S=Ze({name:"Image",classes:zB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:l,varsResolver:LB});return k&&p?v.jsx(fe,{component:"img",src:p,...S("root"),onError:u,mod:["fallback",g],...w}):v.jsx(fe,{component:"img",...S("root"),src:f,onError:j=>{u==null||u(j),_(!0)},mod:g,...w})});Xf.classes=zB;Xf.varsResolver=LB;Xf.displayName="@mantine/core/Image";function Yne(e="top-end",n=0){const t={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},i=typeof n=="number"?n:n.x,r=typeof n=="number"?n:n.y,a=ve(i),o=ve(r),[l,u]=e.split("-");return l==="top"&&(t["--indicator-top"]=o,t["--indicator-translate-y"]="-50%"),l==="middle"&&(t["--indicator-top"]="50%",t["--indicator-translate-y"]="-50%"),l==="bottom"&&(t["--indicator-bottom"]=o,t["--indicator-translate-y"]="50%"),u==="start"&&(t["--indicator-left"]=a,t["--indicator-translate-x"]="-50%"),u==="center"&&(t["--indicator-left"]="50%",t["--indicator-translate-x"]="-50%"),u==="end"&&(t["--indicator-right"]=a,t["--indicator-translate-x"]="50%"),t}var IB={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const Kne={position:"top-end",offset:0,showZero:!0},BB=(e,{color:n,position:t,offset:i,size:r,radius:a,zIndex:o,autoContrast:l})=>({root:{"--indicator-color":n?ft(n,e):void 0,"--indicator-text-color":ap(l,e)?If({color:n,theme:e,autoContrast:l}):void 0,"--indicator-size":ve(r),"--indicator-radius":a===void 0?void 0:qt(a),"--indicator-z-index":o==null?void 0:o.toString(),...Yne(t,i)}}),Jy=Pe(e=>{const n=ye("Indicator",Kne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,position:f,offset:h,inline:d,label:p,radius:g,color:b,withBorder:w,disabled:k,processing:_,zIndex:S,autoContrast:j,maxValue:T,showZero:A,mod:O,attributes:M,...$}=n,q=Ze({name:"Indicator",classes:IB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:M,vars:l,varsResolver:BB}),P=!A&&(p===0||p==="0"),L=T!==void 0&&typeof p=="number"&&p>T?`${T}+`:p;return v.jsxs(fe,{...q("root"),mod:[{inline:d},O],...$,children:[!k&&!P&&v.jsx(fe,{mod:{"with-label":!!p,"with-border":w,processing:_},...q("indicator"),children:L}),u]})});Jy.classes=IB;Jy.varsResolver=BB;Jy.displayName="@mantine/core/Indicator";const Xne=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],LE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"};function IE(e){Object.keys(LE).forEach(n=>{e.style.setProperty(n,LE[n],"important")})}function Zne(e){const n=window.getComputedStyle(e);if(n===null)return null;const t={};for(const i of Xne)t[i]=n[i];return t.boxSizing===""?null:{sizingStyle:t,paddingSize:parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),borderSize:parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth)}}let Mi=null;function Qne(e,n,t=1,i=1/0){Mi||(Mi=document.createElement("textarea"),Mi.setAttribute("tabindex","-1"),Mi.setAttribute("aria-hidden","true"),Mi.setAttribute("aria-label","autosize measurement"),IE(Mi)),Mi.parentNode===null&&document.body.appendChild(Mi);const{paddingSize:r,borderSize:a,sizingStyle:o}=e,{boxSizing:l}=o;Object.keys(o).forEach(p=>{Mi.style[p]=o[p]}),IE(Mi),Mi.value=n;let u=l==="border-box"?Mi.scrollHeight+a:Mi.scrollHeight-r;Mi.value=n,u=l==="border-box"?Mi.scrollHeight+a:Mi.scrollHeight-r,Mi.value="x";const f=Mi.scrollHeight-r;let h=f*t;l==="border-box"&&(h=h+r+a),u=Math.max(h,u);let d=f*i;return l==="border-box"&&(d=d+r+a),u=Math.min(d,u),[u,f]}function Jne({maxRows:e,minRows:n,onChange:t,ref:i,...r}){const a=r.value!==void 0,o=x.useRef(null),l=Ht(o,i),u=x.useRef(0),f=()=>{const d=o.current;if(!d)return;const p=Zne(d);if(!p)return;const[g]=Qne(p,d.value||d.placeholder||"x",n,e);u.current!==g&&(u.current=g,d.style.setProperty("height",`${g}px`,"important"))},h=d=>{a||f(),t==null||t(d)};return x.useLayoutEffect(f),x.useEffect(()=>{const d=()=>f();return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),x.useEffect(()=>{const d=()=>f();return document.fonts.addEventListener("loadingdone",d),()=>document.fonts.removeEventListener("loadingdone",d)},[]),x.useEffect(()=>{const d=p=>{var g;if(((g=o.current)==null?void 0:g.form)===p.target&&!a){const b=o.current.value;requestAnimationFrame(()=>{o.current&&b!==o.current.value&&f()})}};return document.body.addEventListener("reset",d),()=>document.body.removeEventListener("reset",d)},[a]),v.jsx("textarea",{...r,onChange:h,ref:l})}const ete={size:"sm"},_l=Pe(e=>{const{autosize:n,maxRows:t,minRows:i,__staticSelector:r,resize:a,...o}=ye("Textarea",ete,e),l=n&&CX()!=="test",u=l?{maxRows:t,minRows:i}:{};return v.jsx(Ni,{component:l?Jne:"textarea",...o,__staticSelector:r||"Textarea",multiline:!0,"data-no-overflow":n&&t===void 0||void 0,__vars:{"--input-resize":a},...u})});_l.classes=Ni.classes;_l.displayName="@mantine/core/Textarea";function BE(e,n){if(typeof e=="string"&&e.trim().length===0)return!0;try{return n(e),!0}catch{return!1}}const nte={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm",indentSpaces:2},KC=Pe(e=>{const{value:n,defaultValue:t,onChange:i,formatOnBlur:r,validationError:a,serialize:o,deserialize:l,onFocus:u,onBlur:f,readOnly:h,error:d,indentSpaces:p,...g}=ye("JsonInput",nte,e),[b,w]=Ai({value:n,defaultValue:t,finalValue:"",onChange:i}),[k,_]=x.useState(BE(b,l)),S=T=>{u==null||u(T),_(!0)},j=T=>{f==null||f(T);const A=BE(T.currentTarget.value,l);r&&!h&&A&&T.currentTarget.value.trim()!==""&&w(o(l(T.currentTarget.value),null,p)),_(A)};return v.jsx(_l,{value:b,onChange:T=>w(T.currentTarget.value),onFocus:S,onBlur:j,readOnly:h,...g,autoComplete:"off",__staticSelector:"JsonInput",error:k?d:a||!0,"data-monospace":!0})});KC.classes=Ni.classes;KC.displayName="@mantine/core/JsonInput";const[tte,Ol]=Ar("Menu component was not found in the tree");var Tl={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const XC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("MenuDivider",null,e);return v.jsx(fe,{...Ol().getStyles("divider",{className:t,style:i,styles:r,classNames:n}),...o})});XC.classes=Tl;XC.displayName="@mantine/core/MenuDivider";const ZC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,onMouseEnter:o,onMouseLeave:l,onKeyDown:u,children:f,ref:h,...d}=ye("MenuDropdown",null,e),p=x.useRef(null),g=Ol(),b=bi(u,_=>{var S,j;(_.key==="ArrowUp"||_.key==="ArrowDown")&&(_.preventDefault(),(j=(S=p.current)==null?void 0:S.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||j.focus())}),w=bi(o,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),k=bi(l,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return v.jsxs(Sn.Dropdown,{...d,onMouseEnter:w,onMouseLeave:k,role:"menu","aria-orientation":"vertical",ref:Ht(h,p),...g.getStyles("dropdown",{className:t,style:i,styles:r,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[g.withInitialFocusPlaceholder&&v.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),f]})});ZC.classes=Tl;ZC.displayName="@mantine/core/MenuDropdown";const mm=x.createContext(null),QC=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,color:o,closeMenuOnClick:l,leftSection:u,rightSection:f,children:h,disabled:d,"data-disabled":p,ref:g,...b}=ye("MenuItem",null,e),w=Ol(),k=x.use(mm),_=ci(),{dir:S}=qu(),j=x.useRef(null),T=b,A=bi(T.onClick,()=>{p||(typeof l=="boolean"?l&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),O=o?_.variantColorResolver({color:o,theme:_,variant:"light"}):void 0,M=o?vs({color:o,theme:_}):null,$=bi(T.onKeyDown,q=>{q.key==="ArrowLeft"&&k&&(k.close(),k.focusParentItem())});return v.jsxs(Et,{onMouseDown:q=>q.preventDefault(),...b,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:t,style:i,styles:r,classNames:n}),ref:Ht(j,g),role:"menuitem",disabled:d,"data-menu-item":!0,"data-disabled":d||p||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:Z6({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:S,orientation:"vertical",onKeyDown:$}),__vars:{"--menu-item-color":M!=null&&M.isThemeColor&&(M==null?void 0:M.shade)===void 0?`var(--mantine-color-${M.color}-6)`:O==null?void 0:O.color,"--menu-item-hover":O==null?void 0:O.hover},children:[u&&v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"left",children:u}),h&&v.jsx("div",{...w.getStyles("itemLabel",{styles:r,classNames:n}),children:h}),f&&v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"right",children:f})]})});QC.classes=Tl;QC.displayName="@mantine/core/MenuItem";const JC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("MenuLabel",null,e);return v.jsx(fe,{...Ol().getStyles("label",{className:t,style:i,styles:r,classNames:n}),...o})});JC.classes=Tl;JC.displayName="@mantine/core/MenuLabel";const e9=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,onMouseEnter:o,onMouseLeave:l,onKeyDown:u,children:f,ref:h,...d}=ye("MenuSubDropdown",null,e),p=x.useRef(null),g=Ol(),b=x.use(mm),w=bi(o,b==null?void 0:b.open),k=bi(l,b==null?void 0:b.close);return v.jsx(Sn.Dropdown,{...d,onMouseEnter:w,onMouseLeave:k,role:"menu","aria-orientation":"vertical",ref:Ht(h,p),...g.getStyles("dropdown",{className:t,style:i,styles:r,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:f})});e9.classes=Tl;e9.displayName="@mantine/core/MenuSubDropdown";const n9=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,color:o,leftSection:l,rightSection:u,children:f,disabled:h,"data-disabled":d,closeMenuOnClick:p,ref:g,...b}=ye("MenuSubItem",null,e),w=Ol(),k=x.use(mm),_=ci(),{dir:S}=qu(),j=x.useRef(null),T=b,A=o?_.variantColorResolver({color:o,theme:_,variant:"light"}):void 0,O=o?vs({color:o,theme:_}):null,M=bi(T.onKeyDown,L=>{L.key==="ArrowRight"&&(k==null||k.open(),k==null||k.focusFirstItem()),L.key==="ArrowLeft"&&(k!=null&&k.parentContext)&&(k.parentContext.close(),k.parentContext.focusParentItem())}),$=bi(T.onClick,()=>{!d&&p&&w.closeDropdownImmediately()}),q=bi(T.onMouseEnter,k==null?void 0:k.open),P=bi(T.onMouseLeave,k==null?void 0:k.close);return v.jsxs(Et,{onMouseDown:L=>L.preventDefault(),...b,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:t,style:i,styles:r,classNames:n}),ref:Ht(j,g),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||d||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:q,onMouseLeave:P,onClick:$,onKeyDown:Z6({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:S,orientation:"vertical",onKeyDown:M}),__vars:{"--menu-item-color":O!=null&&O.isThemeColor&&(O==null?void 0:O.shade)===void 0?`var(--mantine-color-${O.color}-6)`:A==null?void 0:A.color,"--menu-item-hover":A==null?void 0:A.hover},children:[l&&v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"left",children:l}),f&&v.jsx("div",{...w.getStyles("itemLabel",{styles:r,classNames:n}),children:f}),v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"right",children:u||v.jsx(e1,{...w.getStyles("chevron"),size:14})})]})});n9.classes=Tl;n9.displayName="@mantine/core/MenuSubItem";function FB({children:e,refProp:n}){if(!X6(e))throw new 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 Ol(),v.jsx(Sn.Target,{refProp:n,popupType:"menu",children:e})}FB.displayName="@mantine/core/MenuSubTarget";const ite={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Zf(e){const{children:n,closeDelay:t,openDelay:i,...r}=ye("MenuSub",ite,e),a=Pi(),[o,{open:l,close:u}]=Wz(!1),f=x.use(mm),{openDropdown:h,closeDropdown:d}=GL({open:l,close:u,closeDelay:t,openDelay:i}),p=()=>window.setTimeout(()=>{var b,w;(w=(b=document.getElementById(`${a}-dropdown`))==null?void 0:b.querySelectorAll("[data-menu-item]:not([data-disabled])")[0])==null||w.focus()},16),g=()=>window.setTimeout(()=>{var b;(b=document.getElementById(`${a}-target`))==null||b.focus()},16);return v.jsx(mm,{value:{opened:o,close:d,open:h,focusFirstItem:p,focusParentItem:g,parentContext:f},children:v.jsx(Sn,{opened:o,withinPortal:!1,withArrow:!1,id:a,...r,children:n})})}Zf.extend=e=>e;Zf.displayName="@mantine/core/MenuSub";Zf.Target=FB;Zf.Dropdown=e9;Zf.Item=n9;const rte={refProp:"ref"};function qB(e){const{children:n,refProp:t,...i}=ye("MenuTarget",rte,e),r=Cl(n);if(!r)throw new 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");const a=Ol(),o=r.props,l=bi(o.onClick,()=>{a.trigger==="click"?a.toggleDropdown():a.trigger==="click-hover"&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),u=bi(o.onMouseEnter,()=>(a.trigger==="hover"||a.trigger==="click-hover")&&a.openDropdown()),f=bi(o.onMouseLeave,()=>{(a.trigger==="hover"||a.trigger==="click-hover"&&!a.openedViaClick)&&a.closeDropdown()});return v.jsx(Sn.Target,{refProp:t,popupType:"menu",...i,children:x.cloneElement(r,{onClick:l,onMouseEnter:u,onMouseLeave:f,"data-expanded":a.opened?!0:void 0})})}qB.displayName="@mantine/core/MenuTarget";const ate={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1},zn=Pe(e=>{const n=ye("Menu",ate,e),{children:t,onOpen:i,onClose:r,opened:a,defaultOpened:o,trapFocus:l,onChange:u,closeOnItemClick:f,loop:h,closeOnEscape:d,trigger:p,openDelay:g,closeDelay:b,classNames:w,styles:k,unstyled:_,variant:S,vars:j,menuItemTabIndex:T,keepMounted:A,withInitialFocusPlaceholder:O,attributes:M,...$}=n,q=Ze({name:"Menu",classes:Tl,props:n,classNames:w,styles:k,unstyled:_,attributes:M}),[P,L]=Ai({value:a,defaultValue:o,finalValue:!1,onChange:u}),[U,G]=x.useState(!1),B=()=>{L(!1),G(!1),P&&(r==null||r())},R=()=>{L(!0),!P&&(i==null||i())},D=()=>{P?B():R()},{openDropdown:z,closeDropdown:H}=GL({open:R,close:B,closeDelay:b,openDelay:g}),Y=V=>aX("[data-menu-item]","[data-menu-dropdown]",V),{resolvedClassNames:N,resolvedStyles:W}=Wi({classNames:w,styles:k,props:n});return v.jsx(tte,{value:{getStyles:q,opened:P,toggleDropdown:D,getItemIndex:Y,openedViaClick:U,setOpenedViaClick:G,closeOnItemClick:f,closeDropdown:p==="click"?B:H,openDropdown:p==="click"?R:z,closeDropdownImmediately:B,loop:h,trigger:p,unstyled:_,menuItemTabIndex:T,withInitialFocusPlaceholder:O},children:v.jsx(Sn,{returnFocus:!0,...$,opened:P,onChange:D,defaultOpened:o,trapFocus:A?!1:l,closeOnEscape:d,__staticSelector:"Menu",classNames:N,styles:W,unstyled:_,variant:S,keepMounted:A,children:t})})});zn.displayName="@mantine/core/Menu";zn.classes=Tl;zn.Item=QC;zn.Label=JC;zn.Dropdown=ZC;zn.Target=qB;zn.Divider=XC;zn.Sub=Zf;const[ote,Qf]=Ar("Modal component was not found in tree");var ys={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const e0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalBody",null,e);return v.jsx(xI,{...Qf().getStyles("body",{classNames:n,style:i,styles:r,className:t}),...o})});e0.classes=ys;e0.displayName="@mantine/core/ModalBody";const n0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalCloseButton",null,e);return v.jsx(SI,{...Qf().getStyles("close",{classNames:n,style:i,styles:r,className:t}),...o})});n0.classes=ys;n0.displayName="@mantine/core/ModalCloseButton";const t0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,children:o,__hidden:l,...u}=ye("ModalContent",null,e),f=Qf(),h=f.scrollAreaComponent||Mee;return v.jsx(CI,{...f.getStyles("content",{className:t,style:i,styles:r,classNames:n}),innerProps:f.getStyles("inner",{className:t,style:i,styles:r,classNames:n}),"data-full-screen":f.fullScreen||void 0,"data-modal-content":!0,"data-hidden":l||void 0,...u,children:v.jsx(h,{style:{maxHeight:f.fullScreen?"100dvh":`calc(100dvh - (${ve(f.yOffset)} * 2))`},children:o})})});t0.classes=ys;t0.displayName="@mantine/core/ModalContent";const i0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalHeader",null,e);return v.jsx(jI,{...Qf().getStyles("header",{classNames:n,style:i,styles:r,className:t}),...o})});i0.classes=ys;i0.displayName="@mantine/core/ModalHeader";const r0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalOverlay",null,e);return v.jsx(AI,{...Qf().getStyles("overlay",{classNames:n,style:i,styles:r,className:t}),...o})});r0.classes=ys;r0.displayName="@mantine/core/ModalOverlay";const ste={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:xa("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},HB=(e,{radius:n,size:t,yOffset:i,xOffset:r})=>({root:{"--modal-radius":n===void 0?void 0:qt(n),"--modal-size":Ln(t,"modal-size"),"--modal-y-offset":ve(i),"--modal-x-offset":ve(r)}}),gp=Pe(e=>{const n=ye("ModalRoot",ste,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,yOffset:u,scrollAreaComponent:f,radius:h,fullScreen:d,centered:p,xOffset:g,__staticSelector:b,attributes:w,...k}=n,_=Ze({name:b,classes:ys,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l,varsResolver:HB});return v.jsx(ote,{value:{yOffset:u,scrollAreaComponent:f,getStyles:_,fullScreen:d},children:v.jsx(_I,{..._("root"),"data-full-screen":d||void 0,"data-centered":p||void 0,"data-offset-scrollbars":f===ur.Autosize||void 0,unstyled:o,...k})})});gp.classes=ys;gp.varsResolver=HB;gp.displayName="@mantine/core/ModalRoot";const UB=x.createContext(null);function VB({children:e}){const[n,t]=x.useState([]),[i,r]=x.useState(xa("modal"));return v.jsx(UB,{value:{stack:n,addModal:(a,o)=>{t(l=>[...new Set([...l,a])]),r(l=>typeof o=="number"&&typeof l=="number"?Math.max(l,o):l)},removeModal:a=>t(o=>o.filter(l=>l!==a)),getZIndex:a=>`calc(${i} + ${n.indexOf(a)} + 1)`,currentId:n[n.length-1],maxZIndex:i},children:e})}VB.displayName="@mantine/core/ModalStack";const a0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalTitle",null,e);return v.jsx(OI,{...Qf().getStyles("title",{classNames:n,style:i,styles:r,className:t}),...o})});a0.classes=ys;a0.displayName="@mantine/core/ModalTitle";const lte={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:xa("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Gi=Pe(e=>{const{title:n,withOverlay:t,overlayProps:i,withCloseButton:r,closeButtonProps:a,children:o,radius:l,opened:u,stackId:f,zIndex:h,...d}=ye("Modal",lte,e),p=x.use(UB),g=!!n||r,b=p&&f?{closeOnEscape:p.currentId===f,trapFocus:p.currentId===f,zIndex:p.getZIndex(f)}:{},w=t===!1?!1:f&&p?p.currentId===f:u;return x.useEffect(()=>{p&&f&&(u?p.addModal(f,h||xa("modal")):p.removeModal(f))},[u,f,h]),v.jsxs(gp,{radius:l,opened:u,zIndex:p&&f?p.getZIndex(f):h,...d,...b,children:[t&&v.jsx(r0,{visible:w,transitionProps:p&&f?{duration:0}:void 0,...i}),v.jsxs(t0,{radius:l,__hidden:p&&f&&u?f!==p.currentId:!1,children:[g&&v.jsxs(i0,{children:[n&&v.jsx(a0,{children:n}),r&&v.jsx(n0,{...a})]}),v.jsx(e0,{children:o})]})]})});Gi.classes=ys;Gi.displayName="@mantine/core/Modal";Gi.Root=gp;Gi.Overlay=r0;Gi.Content=t0;Gi.Body=e0;Gi.Header=i0;Gi.Title=a0;Gi.CloseButton=n0;Gi.Stack=VB;const o0=x.createContext(null);var s0={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const WB=x.createContext(null),GB=(e,{gap:n},{size:t})=>({group:{"--pg-gap":n!==void 0?Ln(n):Ln(t,"pg-gap")}}),l0=Pe(e=>{var b;const n=ye("PillGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,disabled:f,attributes:h,...d}=n,p=((b=x.use(o0))==null?void 0:b.size)||u||void 0,g=Ze({name:"PillGroup",classes:s0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,varsResolver:GB,stylesCtx:{size:p},rootSelector:"group"});return v.jsx(WB,{value:{size:p,disabled:f},children:v.jsx(fe,{size:p,...g("group"),...d})})});l0.classes=s0;l0.varsResolver=GB;l0.displayName="@mantine/core/PillGroup";const ute={variant:"default"},YB=(e,{radius:n},{size:t})=>({root:{"--pill-fz":Ln(t,"pill-fz"),"--pill-height":Ln(t,"pill-height"),"--pill-radius":n===void 0?void 0:qt(n)}}),xl=Pe(e=>{const n=ye("Pill",ute,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,variant:u,children:f,withRemoveButton:h,onRemove:d,removeButtonProps:p,radius:g,size:b,disabled:w,mod:k,attributes:_,...S}=n,j=x.use(WB),T=x.use(o0),A=b||(j==null?void 0:j.size)||void 0,O=(T==null?void 0:T.variant)==="filled"?"contrast":u||"default",M=Ze({name:"Pill",classes:s0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:_,vars:l,varsResolver:YB,stylesCtx:{size:A}});return v.jsxs(fe,{component:"span",variant:O,size:A,...M("root",{variant:O}),mod:[{"with-remove":h&&!w,disabled:w||(j==null?void 0:j.disabled)},k],...S,children:[v.jsx("span",{...M("label"),children:f}),h&&v.jsx(jl,{variant:"transparent",radius:g,tabIndex:-1,"aria-hidden":!0,unstyled:o,...p,...M("remove",{className:p==null?void 0:p.className,style:p==null?void 0:p.style}),onMouseDown:$=>{var q;$.preventDefault(),$.stopPropagation(),(q=p==null?void 0:p.onMouseDown)==null||q.call(p,$)},onClick:$=>{var q;$.stopPropagation(),d==null||d(),(q=p==null?void 0:p.onClick)==null||q.call(p,$)}})]})});xl.classes=s0;xl.varsResolver=YB;xl.displayName="@mantine/core/Pill";xl.Group=l0;var KB={field:"m_45c4369d"};const cte={type:"visible"},t9=Pe(e=>{const n=ye("PillsInputField",cte,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,type:u,disabled:f,id:h,pointer:d,mod:p,attributes:g,ref:b,...w}=n,k=x.use(o0),_=x.use(Hu),S=Ze({name:"PillsInputField",classes:KB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,rootSelector:"field"}),j=f||(k==null?void 0:k.disabled);return v.jsx(fe,{component:"input",ref:Ht(b,k==null?void 0:k.fieldRef),"data-type":u,disabled:j,mod:[{disabled:j,pointer:d},p],...S("field"),...w,id:(_==null?void 0:_.inputId)||h,"aria-invalid":k==null?void 0:k.hasError,"aria-describedby":_==null?void 0:_.describedBy,type:"text",onMouseDown:T=>!d&&T.stopPropagation()})});t9.classes=KB;t9.displayName="@mantine/core/PillsInputField";const fte={size:"sm"},Mu=Pe(e=>{const{children:n,onMouseDown:t,onClick:i,size:r,disabled:a,__staticSelector:o,error:l,variant:u,...f}=ye("PillsInput",fte,e),h=x.useRef(null);return v.jsx(o0,{value:{fieldRef:h,size:r,disabled:a,hasError:!!l,variant:u},children:v.jsx(Ni,{size:r,error:l,variant:u,component:"div","data-no-overflow":!0,onMouseDown:d=>{var p;d.preventDefault(),t==null||t(d),(p=h.current)==null||p.focus()},onClick:d=>{var p,g;d.preventDefault(),(p=d.currentTarget.closest("fieldset"))!=null&&p.disabled||((g=h.current)==null||g.focus(),i==null||i(d))},...f,multiline:!0,disabled:a,__staticSelector:o||"PillsInput",withAria:!1,children:n})})});Mu.displayName="@mantine/core/PillsInput";Mu.classes=Ni.classes;Mu.Field=t9;function Lk(e){return typeof e=="string"?e.trim().toLowerCase():e}function dte({data:e,value:n}){const t=n.map(Lk);return e.reduce((i,r)=>(Eu(r)?i.push({group:r.group,items:r.items.filter(a=>t.indexOf(Lk(a.value))===-1)}):t.indexOf(Lk(r.value))===-1&&i.push(r),i),[])}const FE={xs:41,sm:50,md:60,lg:72,xl:89},hte={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:",",clearSearchOnChange:!0,openOnFocus:!0,size:"sm"},u0=sp(e=>{const n=ye("MultiSelect",hte,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,value:f,defaultValue:h,onChange:d,onKeyDown:p,variant:g,data:b,dropdownOpened:w,defaultDropdownOpened:k,onDropdownOpen:_,onDropdownClose:S,selectFirstOptionOnChange:j,selectFirstOptionOnDropdownOpen:T,onOptionSubmit:A,comboboxProps:O,filter:M,limit:$,withScrollArea:q,maxDropdownHeight:P,searchValue:L,defaultSearchValue:U,onSearchChange:G,readOnly:B,disabled:R,onFocus:D,onBlur:z,radius:H,rightSection:Y,rightSectionWidth:N,rightSectionPointerEvents:W,rightSectionProps:V,leftSection:I,leftSectionWidth:Q,leftSectionPointerEvents:ie,leftSectionProps:re,inputContainer:Z,inputWrapperOrder:le,withAsterisk:ee,labelProps:se,descriptionProps:ke,errorProps:te,wrapperProps:$e,description:xe,label:Ae,error:ze,maxValues:we,searchable:Ce,nothingFoundMessage:Ne,withCheckIcon:he,withAlignedLabels:He,checkIconPosition:Ye,hidePickedOptions:We,withErrorStyles:Qe,name:Je,form:oe,id:be,clearable:Ke,clearSectionMode:en,clearButtonProps:je,hiddenInputProps:an,placeholder:pn,hiddenInputValuesDivider:Dn,required:bn,mod:sn,renderOption:nn,renderPill:$n,onRemove:De,onClear:Fe,onMaxValues:Vn,scrollAreaProps:En,chevronColor:gn,attributes:xn,clearSearchOnChange:at,openOnFocus:Mt,loading:qe,loadingPosition:Ue,...In}=n,ot=Pi(be),Pn=Ly(b),rn=vp(Pn),on=x.useRef({}),ln=Vf({opened:w,defaultOpened:k,onDropdownOpen:()=>{_==null||_(),T&&ln.selectFirstOption()},onDropdownClose:()=>{S==null||S(),ln.resetSelectedOption()}}),{styleProps:Kn,rest:{type:Xn,autoComplete:Lt,...Rn}}=Fu(In),[Mn,Qn]=Ai({value:f,defaultValue:h,finalValue:[],onChange:d}),[Dt,fi]=Ai({value:L,defaultValue:U,finalValue:"",onChange:G}),zi=cn=>{fi(cn),ln.resetSelectedOption()},Ya=Ze({name:"MultiSelect",classes:{},props:n,classNames:t,styles:a,unstyled:o,attributes:xn}),{resolvedClassNames:Co,resolvedStyles:Ta}=Wi({props:n,styles:a,classNames:t}),dr=cn=>{p==null||p(cn),cn.key===" "&&!Ce&&(cn.preventDefault(),ln.toggleDropdown()),cn.key==="Backspace"&&Dt.length===0&&Mn.length>0&&(De==null||De(Mn[Mn.length-1]),Qn(Mn.slice(0,Mn.length-1)))},jo=Mn.map((cn,Mr)=>{var Kr;const Ao=rn[`${cn}`]||on.current[`${cn}`];return $n?v.jsx(x.Fragment,{children:$n({option:Ao,value:cn,onRemove:()=>{Qn(Mn.filter(Xr=>cn!==Xr)),De==null||De(cn)},disabled:R})},`${cn}-${Mr}`):v.jsx(xl,{withRemoveButton:!B&&!((Kr=rn[`${cn}`])!=null&&Kr.disabled),onRemove:()=>{Qn(Mn.filter(Xr=>cn!==Xr)),De==null||De(cn)},unstyled:o,disabled:R,...Ya("pill"),children:(Ao==null?void 0:Ao.label)||cn},`${cn}-${Mr}`)});x.useEffect(()=>{j&&ln.selectFirstOption()},[j,Dt]),x.useEffect(()=>{Mn.forEach(cn=>{`${cn}`in rn&&(on.current[`${cn}`]=rn[`${cn}`])})},[rn,Mn]);const Er=v.jsx(On.ClearButton,{...je,onClear:()=>{Fe==null||Fe(),Qn([]),zi("")}}),hr=dte({data:Pn,value:Mn}),yn=Ke&&Mn.length>0&&!R&&!B,oi=yn?{paddingInlineEnd:FE[u]??FE.sm}:void 0;return v.jsxs(v.Fragment,{children:[v.jsxs(On,{store:ln,classNames:Co,styles:Ta,unstyled:o,size:u,readOnly:B,__staticSelector:"MultiSelect",attributes:xn,onOptionSubmit:cn=>{A==null||A(cn),at&&zi(""),ln.updateSelectedOptionIndex("selected"),Mn.includes(rn[`${cn}`].value)?(Qn(Mn.filter(Mr=>Mr!==rn[`${cn}`].value)),De==null||De(rn[`${cn}`].value)):Mn.lengthCe?ln.openDropdown():ln.toggleDropdown(),"data-expanded":ln.dropdownOpened||void 0,id:ot,required:bn,mod:sn,attributes:xn,children:v.jsxs(xl.Group,{attributes:xn,disabled:R,unstyled:o,...Ya("pillsList",{style:oi}),children:[jo,v.jsx(On.EventsTarget,{autoComplete:Lt,withExpandedAttribute:!0,children:v.jsx(Mu.Field,{...Rn,id:ot,placeholder:pn,type:!Ce&&!pn?"hidden":"visible",...Ya("inputField"),unstyled:o,onFocus:cn=>{D==null||D(cn),Mt&&Ce&&ln.openDropdown()},onBlur:cn=>{z==null||z(cn),ln.closeDropdown(),zi("")},onKeyDown:dr,value:Dt,onChange:cn=>{zi(cn.currentTarget.value),Ce&&ln.openDropdown(),j&&ln.selectFirstOption()},disabled:R,readOnly:B||!Ce,pointer:!Ce})})]})})}),v.jsx(qy,{data:We?hr:Pn,hidden:B||R,filter:M,search:Dt,limit:$,hiddenWhenEmpty:!Ne,withScrollArea:q,maxDropdownHeight:P,filterOptions:Ce,value:Mn,checkIconPosition:Ye,withCheckIcon:he,withAlignedLabels:He,nothingFoundMessage:Ne,unstyled:o,labelId:Ae?`${ot}-label`:void 0,"aria-label":Ae?void 0:In["aria-label"],renderOption:nn,scrollAreaProps:En})]}),v.jsx(On.HiddenInput,{name:Je,valuesDivider:Dn,value:Mn,form:oe,disabled:R,...an})]})});u0.classes={...Ni.classes,...On.classes};u0.displayName="@mantine/core/MultiSelect";var XB={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const mte={withCloseButton:!0},ZB=(e,{radius:n,color:t})=>({root:{"--notification-radius":n===void 0?void 0:qt(n),"--notification-color":t?ft(t,e):void 0}}),c0=Pe(e=>{const n=ye("Notification",mte,e),{className:t,color:i,radius:r,loading:a,withCloseButton:o,withBorder:l,title:u,icon:f,children:h,onClose:d,closeButtonProps:p,classNames:g,style:b,styles:w,unstyled:k,vars:_,mod:S,loaderProps:j,role:T,attributes:A,...O}=n,M=Ze({name:"Notification",classes:XB,props:n,className:t,style:b,classNames:g,styles:w,unstyled:k,attributes:A,vars:_,varsResolver:ZB});return v.jsxs(fe,{...M("root"),mod:[{"data-with-icon":!!f||a,"data-with-border":l},S],role:T||"alert",...O,children:[f&&!a&&v.jsx("div",{...M("icon"),children:f}),a&&v.jsx(Zt,{size:28,color:i,...M("loader"),...j}),v.jsxs("div",{...M("body"),children:[u&&v.jsx("div",{...M("title"),children:u}),v.jsx(fe,{...M("description"),mod:{"data-with-title":!!u},children:h})]}),o&&v.jsx(jl,{iconSize:16,color:"gray",...p,unstyled:k,onClick:$=>{var q;(q=p==null?void 0:p.onClick)==null||q.call(p,$),d==null||d()},...M("closeButton")})]})});c0.classes=XB;c0.varsResolver=ZB;c0.displayName="@mantine/core/Notification";function QB(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r=l?r=r+HE("0",o-l):r=(r.substring(0,o)||"0")+"."+r.substring(o),t+r}function UE(e,n,t){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||t)&&n,r=i9(e),a=r.beforeDecimal,o=r.afterDecimal,l=r.hasNegation,u=parseFloat("0."+(o||"0")),f=o.length<=n?"0."+o:u.toFixed(n),h=f.split("."),d=a;a&&Number(h[0])&&(d=a.split("").reverse().reduce(function(w,k,_){return w.length>_?(Number(w[0])+Number(k)).toString()+w.substring(1,w.length):k+w},h[0]));var p=nF(h[1]||"",n,t),g=l?"-":"",b=i?".":"";return""+g+d+b+p}function gu(e,n){if(e.value=e.value,e!==null){if(e.createTextRange){var t=e.createTextRange();return t.move("character",n),t.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(n,n),!0):(e.focus(),!1)}}var iF=pte(function(e,n){for(var t=0,i=0,r=e.length,a=n.length;e[t]===n[t]&&tt&&r-i>t;)i++;return{from:{start:t,end:r-i},to:{start:t,end:a-i}}}),wte=function(e,n){var t=Math.min(e.selectionStart,n);return{from:{start:t,end:e.selectionEnd},to:{start:t,end:n}}};function kte(e,n,t){return Math.min(Math.max(e,n),t)}function Ik(e){return Math.max(e.selectionStart,e.selectionEnd)}function _te(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function xte(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Ste(e){var n=e.currentValue,t=e.formattedValue,i=e.currentValueIndex,r=e.formattedValueIndex;return n[i]===t[r]}function Cte(e,n,t,i,r,a,o){o===void 0&&(o=Ste);var l=r.findIndex(function(T){return T}),u=e.slice(0,l);!n&&!t.startsWith(u)&&(n=u,t=u+t,i=i+u.length);for(var f=t.length,h=e.length,d={},p=new Array(f),g=0;g0&&p[_]===-1;)_--;var j=_===-1||p[_]===-1?0:p[_]+1;return j>S?S:i-j=0&&!t[n];)n--;n===-1&&(n=t.indexOf(!0))}else{for(;n<=r&&!t[n];)n++;n>r&&(n=t.lastIndexOf(!0))}return n===-1&&(n=r),n}function jte(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),t=0,i=n.length;tM.length-o.length||OL||d>e.length-o.length)&&(P=d),e=e.substring(0,P),e=Ete(j?"-"+e:e,r),e=(e.match(Mte(b))||[]).join("");var U=e.indexOf(b);e=e.replace(new RegExp(eF(b),"g"),function(z,H){return H===U?".":""});var G=i9(e,r),B=G.beforeDecimal,R=G.afterDecimal,D=G.addNegation;return f.end-f.startMath.abs(T)?"h":"v";if("touches"in w&&M==="h"&&O.type==="range")return!1;var $=window.getSelection(),q=$&&$.anchorNode,R=q?q===O||q.contains(O):!1;if(R)return!1;var I=CE(M,O);if(!I)return!0;if(I?A=M:(A=M==="v"?"h":"v",I=CE(M,O)),!I)return!1;if(!i.current&&"changedTouches"in w&&(C||T)&&(i.current=A),!A)return!0;var z=i.current||A;return wee(z,k,w,z==="h"?C:T)},[]),u=S.useCallback(function(w){var k=w;if(!(!Pc.length||Pc[Pc.length-1]!==a)){var _="deltaY"in k?jE(k):tg(k),x=n.current.filter(function(A){return A.name===k.type&&(A.target===k.target||k.target===A.shadowParent)&&kee(A.delta,_)})[0];if(x&&x.should){k.cancelable&&k.preventDefault();return}if(!x){var C=(o.current.shards||[]).map(AE).filter(Boolean).filter(function(A){return A.contains(k.target)}),T=C.length>0?l(k,C[0]):!o.current.noIsolation;T&&k.cancelable&&k.preventDefault()}}},[]),f=S.useCallback(function(w,k,_,x){var C={name:w,delta:k,target:_,should:x,shadowParent:Cee(_)};n.current.push(C),setTimeout(function(){n.current=n.current.filter(function(T){return T!==C})},1)},[]),h=S.useCallback(function(w){t.current=tg(w),i.current=void 0},[]),d=S.useCallback(function(w){f(w.type,jE(w),w.target,l(w,e.lockRef.current))},[]),p=S.useCallback(function(w){f(w.type,tg(w),w.target,l(w,e.lockRef.current))},[]);S.useEffect(function(){return Pc.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Rc),document.addEventListener("touchmove",u,Rc),document.addEventListener("touchstart",h,Rc),function(){Pc=Pc.filter(function(w){return w!==a}),document.removeEventListener("wheel",u,Rc),document.removeEventListener("touchmove",u,Rc),document.removeEventListener("touchstart",h,Rc)}},[]);var g=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(a,{styles:_ee(r)}):null,g?S.createElement(hee,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cee(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const jee=eee(yI,See);var Tu=S.forwardRef(function(e,n){return S.createElement(zy,io({},e,{ref:n,sideCar:jee}))});Tu.classNames=zy.classNames;function xI({keepMounted:e,opened:n,onClose:t,id:i,transitionProps:r,onExitTransitionEnd:a,onEnterTransitionEnd:o,trapFocus:l,closeOnEscape:u,returnFocus:f,closeOnClickOutside:h,withinPortal:d,portalProps:p,lockScroll:g,children:b,zIndex:w,shadow:k,padding:_,__vars:x,unstyled:C,removeScrollProps:T,...A}){const{_id:O,titleMounted:M,bodyMounted:$,shouldLockScroll:q,setTitleMounted:R,setBodyMounted:I}=UJ({id:i,transitionProps:r,opened:n,trapFocus:l,closeOnEscape:u,onClose:t,returnFocus:f}),{key:z,...W}=T||{};return v.jsx(wl,{...p,withinPortal:d,children:v.jsx(qJ,{value:{opened:n,onClose:t,closeOnClickOutside:h,onExitTransitionEnd:a,onEnterTransitionEnd:o,transitionProps:{...r,keepMounted:e},getTitleId:()=>`${O}-title`,getBodyId:()=>`${O}-body`,titleMounted:M,bodyMounted:$,setTitleMounted:R,setBodyMounted:I,trapFocus:l,closeOnEscape:u,zIndex:w,unstyled:C},children:v.jsx(Tu,{enabled:q&&g,...W,children:v.jsx(de,{...A,id:O,__vars:{...x,"--mb-z-index":(w||xa("modal")).toString(),"--mb-shadow":Q6(k),"--mb-padding":Kt(_)},children:b})},z)})})}xI.displayName="@mantine/core/ModalBase";function Aee(){const e=gs();return S.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var lf={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function SI({className:e,...n}){const t=Aee(),i=gs();return v.jsx(de,{id:t,className:vn({[lf.body]:!i.unstyled},e),...n})}SI.displayName="@mantine/core/ModalBaseBody";function CI({className:e,onClick:n,...t}){const i=gs();return v.jsx(jl,{...t,onClick:r=>{i.onClose(),n==null||n(r)},className:vn({[lf.close]:!i.unstyled},e),unstyled:i.unstyled})}CI.displayName="@mantine/core/ModalBaseCloseButton";function jI({transitionProps:e,className:n,innerProps:t,onKeyDown:i,style:r,ref:a,...o}){const l=gs();return v.jsx(ls,{mounted:l.opened,transition:"pop",...l.transitionProps,onExited:()=>{var u,f,h;(u=l.onExitTransitionEnd)==null||u.call(l),(h=(f=l.transitionProps)==null?void 0:f.onExited)==null||h.call(f)},onEntered:()=>{var u,f,h;(u=l.onEnterTransitionEnd)==null||u.call(l),(h=(f=l.transitionProps)==null?void 0:f.onEntered)==null||h.call(f)},...e,children:u=>v.jsx("div",{...t,className:vn({[lf.inner]:!l.unstyled},t.className),children:v.jsx(Py,{active:l.opened&&l.trapFocus,innerRef:a,children:v.jsx(Et,{...o,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,style:[r,u],className:vn({[lf.content]:!l.unstyled},n),unstyled:l.unstyled,children:o.children})})})})}jI.displayName="@mantine/core/ModalBaseContent";function AI({className:e,...n}){const t=gs();return v.jsx(de,{component:"header",className:vn({[lf.header]:!t.unstyled},e),...n})}AI.displayName="@mantine/core/ModalBaseHeader";const Oee={duration:200,timingFunction:"ease",transition:"fade"};function Tee(e){const n=gs();return{...Oee,...n.transitionProps,...e}}function OI({onClick:e,transitionProps:n,style:t,visible:i,...r}){const a=gs(),o=Tee(n);return v.jsx(ls,{mounted:i!==void 0?i:a.opened,...o,transition:"fade",children:l=>v.jsx(up,{fixed:!0,style:[t,l],zIndex:a.zIndex,unstyled:a.unstyled,onClick:u=>{e==null||e(u),a.closeOnClickOutside&&a.onClose()},...r})})}OI.displayName="@mantine/core/ModalBaseOverlay";function Eee(){const e=gs();return S.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function TI({className:e,...n}){const t=Eee(),i=gs();return v.jsx(de,{component:"h2",className:vn({[lf.title]:!i.unstyled},e),id:t,...n})}TI.displayName="@mantine/core/ModalBaseTitle";function Mee({children:e}){return v.jsx(v.Fragment,{children:e})}const EI=S.createContext({size:"sm"}),MI=Pe(e=>{const n=ye("InputClearButton",null,e),{size:t,variant:i,vars:r,classNames:a,styles:o,...l}=n,u=S.use(EI),{resolvedClassNames:f,resolvedStyles:h}=Wi({classNames:a,styles:o,props:n});return v.jsx(jl,{variant:i||"transparent",size:t||(u==null?void 0:u.size)||"sm",classNames:f,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...l.style},...l})});MI.displayName="@mantine/core/InputClearButton";const Dee={xs:7,sm:8,md:10,lg:12,xl:15};function Ree({__clearable:e,__clearSection:n,rightSection:t,__defaultRightSection:i,size:r="sm",__clearSectionMode:a="both"}){const o=e&&n;return a==="rightSection"?t===null?null:t||i:a==="clear"?t===null?null:o||i:o&&(t||i)?v.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:Dee[r]},children:[o,t||i]}):t===null?null:t||o||i}const Uu=S.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ja={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const DI=(e,{size:n})=>({description:{"--input-description-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`}}),cp=Pe(e=>{const n=ye("InputDescription",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,__inheritStyles:f=!0,attributes:h,...d}=ye("InputDescription",null,n),p=S.use(Uu),g=Ze({name:["InputWrapper",u],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,rootSelector:"description",vars:l,varsResolver:DI});return v.jsx(de,{component:"p",...(f&&(p==null?void 0:p.getStyles)||g)("description",p!=null&&p.getStyles?{className:i,style:r}:void 0),...d})});cp.classes=ja;cp.varsResolver=DI;cp.displayName="@mantine/core/InputDescription";const RI=(e,{size:n})=>({error:{"--input-error-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`}}),fp=Pe(e=>{const n=ye("InputError",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,attributes:u,__staticSelector:f,__inheritStyles:h=!0,...d}=n,p=Ze({name:["InputWrapper",f],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:u,rootSelector:"error",vars:l,varsResolver:RI}),g=S.use(Uu);return v.jsx(de,{component:"p",...(h&&(g==null?void 0:g.getStyles)||p)("error",g!=null&&g.getStyles?{className:i,style:r}:void 0),...d})});fp.classes=ja;fp.varsResolver=RI;fp.displayName="@mantine/core/InputError";const Pee={labelElement:"label"},PI=(e,{size:n})=>({label:{"--input-label-size":ai(n),"--input-asterisk-color":void 0}}),dp=Pe(e=>{const n=ye("InputLabel",Pee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,labelElement:u,required:f,htmlFor:h,onMouseDown:d,children:p,__staticSelector:g,mod:b,attributes:w,...k}=n,_=Ze({name:["InputWrapper",g],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,rootSelector:"label",vars:l,varsResolver:PI}),x=S.use(Uu),C=(x==null?void 0:x.getStyles)||_;return v.jsxs(de,{...C("label",x!=null&&x.getStyles?{className:i,style:r}:void 0),component:u,htmlFor:u==="label"?h:void 0,mod:[{required:f},b],onMouseDown:T=>{d==null||d(T),!T.defaultPrevented&&T.detail>1&&T.preventDefault()},...k,children:[p,f&&v.jsx("span",{...C("required"),"aria-hidden":!0,children:" *"})]})});dp.classes=ja;dp.varsResolver=PI;dp.displayName="@mantine/core/InputLabel";const _C=Pe(e=>{const n=ye("InputPlaceholder",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,error:f,mod:h,attributes:d,...p}=n;return v.jsx(de,{...Ze({name:["InputPlaceholder",u],props:n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:d,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!f},h],component:"span",...p})});_C.classes=ja;_C.displayName="@mantine/core/InputPlaceholder";function Nee(e,{hasDescription:n,hasError:t}){const i=e.findIndex(l=>l==="input"),r=e.slice(0,i),a=e.slice(i+1),o=n&&r.includes("description")||t&&r.includes("error");return{offsetBottom:n&&a.includes("description")||t&&a.includes("error"),offsetTop:o}}const $ee={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},NI=(e,{size:n})=>({label:{"--input-label-size":ai(n),"--input-asterisk-color":void 0},error:{"--input-error-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`},description:{"--input-description-size":n===void 0?void 0:`calc(${ai(n)} - ${ve(2)})`}}),Ly=Pe(e=>{const n=ye("InputWrapper",$ee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,variant:f,__staticSelector:h,inputContainer:d,inputWrapperOrder:p,label:g,error:b,description:w,labelProps:k,descriptionProps:_,errorProps:x,labelElement:C,children:T,withAsterisk:A,id:O,required:M,__stylesApiProps:$,mod:q,attributes:R,...I}=n,z=Ze({name:["InputWrapper",h],props:$||n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:R,vars:l,varsResolver:NI}),W={size:u,variant:f,__staticSelector:h},U=Pi(O),N=typeof A=="boolean"?A:M,D=(x==null?void 0:x.id)||`${U}-error`,L=(_==null?void 0:_.id)||`${U}-description`,H=U,Y=!!b&&typeof b!="boolean",P=!!w,G=`${Y?D:""} ${P?L:""}`,V=G.trim().length>0?G.trim():void 0,B=(k==null?void 0:k.id)||`${U}-label`,Q=g&&v.jsx(dp,{labelElement:C,id:B,htmlFor:H,required:N,...W,...k,children:g},"label"),ie=P&&v.jsx(cp,{..._,...W,size:(_==null?void 0:_.size)||W.size,id:(_==null?void 0:_.id)||L,children:w},"description"),re=v.jsx(S.Fragment,{children:d(T)},"input"),Z=Y&&S.createElement(fp,{...x,...W,size:(x==null?void 0:x.size)||W.size,key:"error",id:(x==null?void 0:x.id)||D},b),le=p.map(ee=>{switch(ee){case"label":return Q;case"input":return re;case"description":return ie;case"error":return Z;default:return null}});return v.jsx(Uu,{value:{getStyles:z,describedBy:V,inputId:H,labelId:B,...Nee(p,{hasDescription:P,hasError:Y})},children:v.jsx(de,{variant:f,size:u,mod:[{error:!!b},q],id:C==="label"?void 0:O,...z("root"),...I,children:le})})});Ly.classes=ja;Ly.varsResolver=NI;Ly.displayName="@mantine/core/InputWrapper";const zee={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},$I=(e,n,t)=>({wrapper:{"--input-margin-top":t.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":t.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":In(n.size,"input-height"),"--input-fz":ai(n.size),"--input-radius":n.radius===void 0?void 0:Ut(n.radius),"--input-left-section-width":n.leftSectionWidth!==void 0?ve(n.leftSectionWidth):void 0,"--input-right-section-width":n.rightSectionWidth!==void 0?ve(n.rightSectionWidth):void 0,"--input-padding-y":n.multiline?In(n.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":n.leftSectionPointerEvents,"--input-right-section-pointer-events":n.rightSectionPointerEvents}}),Zt=ki(e=>{const n=ye("Input",zee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,required:l,__staticSelector:u,__stylesApiProps:f,size:h,wrapperProps:d,error:p,disabled:g,leftSection:b,leftSectionProps:w,leftSectionWidth:k,rightSection:_,rightSectionProps:x,rightSectionWidth:C,rightSectionPointerEvents:T,leftSectionPointerEvents:A,variant:O,vars:M,pointer:$,multiline:q,radius:R,id:I,withAria:z,withErrorStyles:W,mod:U,inputSize:N,attributes:D,__clearSection:L,__clearable:H,__clearSectionMode:Y,__defaultRightSection:P,loading:G,loadingPosition:V,rootRef:B,...Q}=n,{styleProps:ie,rest:re}=qu(Q),Z=S.use(Uu),le={offsetBottom:Z==null?void 0:Z.offsetBottom,offsetTop:Z==null?void 0:Z.offsetTop},ee=Ze({name:["Input",u],props:f||n,classes:ja,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:D,stylesCtx:le,rootSelector:"wrapper",vars:M,varsResolver:$I}),se=z?{required:l,disabled:g,"aria-invalid":p?!0:void 0,"aria-describedby":Z==null?void 0:Z.describedBy,id:(Z==null?void 0:Z.inputId)||I}:{},ke=G?v.jsx(Ht,{size:V==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,te=G&&V==="left"?ke:b,$e=Ree({__clearable:H,__clearSection:L,rightSection:G&&V==="right"?ke:_,__defaultRightSection:P,size:h,__clearSectionMode:Y});return v.jsx(EI,{value:{size:h||"sm"},children:v.jsxs(de,{ref:B,...ee("wrapper"),...ie,...d,mod:[{error:!!p&&W,pointer:$,disabled:g,multiline:q,"data-with-right-section":!!$e,"data-with-left-section":!!te},U],variant:O,size:h,children:[te&&v.jsx("div",{...w,"data-position":"left",...ee("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:te}),v.jsx(de,{component:"input",...re,...se,required:l,mod:{disabled:g,error:!!p&&W},variant:O,__size:N,...ee("input")}),$e&&v.jsx("div",{...x,"data-position":"right",...ee("section",{className:x==null?void 0:x.className,style:x==null?void 0:x.style}),children:$e})]})})});Zt.classes=ja;Zt.varsResolver=$I;Zt.Wrapper=Ly;Zt.Label=dp;Zt.Error=fp;Zt.Description=cp;Zt.Placeholder=_C;Zt.ClearButton=MI;Zt.displayName="@mantine/core/Input";function zI(e,n,t){const i=ye(e,n,t),{label:r,description:a,error:o,required:l,classNames:u,styles:f,className:h,unstyled:d,__staticSelector:p,__stylesApiProps:g,errorProps:b,labelProps:w,descriptionProps:k,wrapperProps:_,id:x,size:C,style:T,inputContainer:A,inputWrapperOrder:O,withAsterisk:M,variant:$,vars:q,mod:R,attributes:I,...z}=i,{styleProps:W,rest:U}=qu(z),N={label:r,description:a,error:o,required:l,classNames:u,className:h,__staticSelector:p,__stylesApiProps:g||i,errorProps:b,labelProps:w,descriptionProps:k,unstyled:d,styles:f,size:C,style:T,inputContainer:A,inputWrapperOrder:O,withAsterisk:M,variant:$,id:x,mod:R,attributes:I,..._};return{...U,classNames:u,styles:f,unstyled:d,wrapperProps:{...N,...W},inputProps:{required:l,classNames:u,styles:f,unstyled:d,size:C,__staticSelector:p,__stylesApiProps:g||i,error:o,variant:$,id:x,attributes:I}}}const Lee={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ni=ki(e=>{const{inputProps:n,wrapperProps:t,...i}=zI("InputBase",Lee,e);return v.jsx(Zt.Wrapper,{...t,children:v.jsx(Zt,{...n,...i})})});Ni.classes={...Zt.classes,...Zt.Wrapper.classes};Ni.displayName="@mantine/core/InputBase";function e1({style:e,size:n=16,...t}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:ve(n),height:ve(n),display:"block"},...t,children:v.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"})})}e1.displayName="@mantine/core/AccordionChevron";var LI={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const II=(e,{radius:n,color:t,variant:i,autoContrast:r})=>{const a=e.variantColorResolver({color:t||e.primaryColor,theme:e,variant:i||"light",autoContrast:r});return{root:{"--alert-radius":n===void 0?void 0:Ut(n),"--alert-bg":t||i?a.background:void 0,"--alert-color":a.color,"--alert-bd":t||i?a.border:void 0}}},kl=Pe(e=>{const n=ye("Alert",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,radius:u,color:f,title:h,children:d,id:p,icon:g,withCloseButton:b,onClose:w,closeButtonLabel:k,variant:_,autoContrast:x,role:C,attributes:T,...A}=n,O=Ze({name:"Alert",classes:LI,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:T,vars:l,varsResolver:II}),M=Pi(p),$=h&&`${M}-title`||void 0,q=`${M}-body`;return v.jsx(de,{id:M,...O("root",{variant:_}),variant:_,...A,role:C||"alert","aria-describedby":d?q:void 0,"aria-labelledby":h?$:void 0,children:v.jsxs("div",{...O("wrapper"),children:[g&&v.jsx("div",{...O("icon"),children:g}),v.jsxs("div",{...O("body"),children:[h&&v.jsx("div",{...O("title"),"data-with-close-button":b||void 0,children:v.jsx("span",{id:$,...O("label"),children:h})}),d&&v.jsx("div",{id:q,...O("message"),"data-variant":_,children:d})]}),b&&v.jsx(jl,{...O("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:o})]})})});kl.classes=LI;kl.varsResolver=II;kl.displayName="@mantine/core/Alert";var BI={root:"m_b6d8b162"};function Iee(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const Bee={inherit:!1},FI=(e,{variant:n,lineClamp:t,gradient:i,size:r})=>({root:{"--text-fz":ai(r),"--text-lh":rX(r),"--text-gradient":n==="gradient"?TS(i,e):void 0,"--text-line-clamp":typeof t=="number"?t.toString():void 0}}),fe=ki(e=>{const n=ye("Text",Bee,e),{lineClamp:t,truncate:i,inline:r,inherit:a,gradient:o,span:l,__staticSelector:u,vars:f,className:h,style:d,classNames:p,styles:g,unstyled:b,variant:w,mod:k,size:_,attributes:x,...C}=n;return v.jsx(de,{...Ze({name:["Text",u],props:n,classes:BI,className:h,style:d,classNames:p,styles:g,unstyled:b,attributes:x,vars:f,varsResolver:FI})("root",{focusable:!0}),component:l?"span":"p",variant:w,mod:[{"data-truncate":Iee(i),"data-line-clamp":typeof t=="number","data-inline":r,"data-inherit":a},k],size:_,...C})});fe.classes=BI;fe.varsResolver=FI;fe.displayName="@mantine/core/Text";var qI={root:"m_849cf0da"};const Fee={underline:"hover"},Va=ki(e=>{const{underline:n,className:t,unstyled:i,mod:r,...a}=ye("Anchor",Fee,e);return v.jsx(fe,{component:"a",className:vn({[qI.root]:!i},t),...a,mod:[{underline:n},r],__staticSelector:"Anchor",unstyled:i})});Va.classes=qI;Va.displayName="@mantine/core/Anchor";const[qee,Uf]=Or("AppShell was not found in tree");var Al={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const xC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellAside",null,e),d=Uf();return d.disabled?null:v.jsx(de,{component:"aside",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("aside",{className:vn({[Tu.classNames.zeroRight]:d.offsetScrollbars},t),classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-aside-z-index":`calc(${u??d.zIndex} + 1)`}})});xC.classes=Al;xC.displayName="@mantine/core/AppShellAside";const SC=Pe(e=>{var p;const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellFooter",null,e),d=Uf();return d.disabled?null:v.jsx(de,{component:"footer",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("footer",{className:vn({[Tu.classNames.zeroRight]:d.offsetScrollbars},t),classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-footer-z-index":(p=u??d.zIndex)==null?void 0:p.toString()}})});SC.classes=Al;SC.displayName="@mantine/core/AppShellFooter";const CC=Pe(e=>{var p;const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellHeader",null,e),d=Uf();return d.disabled?null:v.jsx(de,{component:"header",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("header",{className:vn({[Tu.classNames.zeroRight]:d.offsetScrollbars},t),classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-header-z-index":(p=u??d.zIndex)==null?void 0:p.toString()}})});CC.classes=Al;CC.displayName="@mantine/core/AppShellHeader";const jC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("AppShellMain",null,e);return v.jsx(de,{component:"main",...Uf().getStyles("main",{className:t,style:i,classNames:n,styles:r}),...o})});jC.classes=Al;jC.displayName="@mantine/core/AppShellMain";const AC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,unstyled:a,vars:o,withBorder:l,zIndex:u,mod:f,...h}=ye("AppShellNavbar",null,e),d=Uf();return d.disabled?null:v.jsx(de,{component:"nav",mod:[{"with-border":l??d.withBorder},f],...d.getStyles("navbar",{className:t,classNames:n,styles:r,style:i}),...h,__vars:{"--app-shell-navbar-z-index":`calc(${u??d.zIndex} + 1)`}})});AC.classes=Al;AC.displayName="@mantine/core/AppShellNavbar";const OC=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,grow:o,mod:l,...u}=ye("AppShellSection",null,e),f=Uf();return v.jsx(de,{mod:[{grow:o},l],...f.getStyles("section",{className:t,style:i,classNames:n,styles:r}),...u})});OC.classes=Al;OC.displayName="@mantine/core/AppShellSection";function hp(e){return typeof e=="object"?e.base:e}function mp(e){const n=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||n}function pp(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Hee({baseStyles:e,minMediaStyles:n,maxMediaStyles:t,aside:i,theme:r,mode:a}){var f,h,d;const o=i==null?void 0:i.width,l="translateX(var(--app-shell-aside-width))",u="translateX(calc(var(--app-shell-aside-width) * -1))";if(i!=null&&i.breakpoint&&!((f=i==null?void 0:i.collapsed)!=null&&f.mobile)&&(t[i==null?void 0:i.breakpoint]=t[i==null?void 0:i.breakpoint]||{},a==="fixed"?(t[i==null?void 0:i.breakpoint]["--app-shell-aside-width"]="100%",t[i==null?void 0:i.breakpoint]["--app-shell-aside-offset"]="0px"):(t[i==null?void 0:i.breakpoint]["--app-shell-aside-width"]="0px",t[i==null?void 0:i.breakpoint]["--app-shell-aside-offset"]="0px")),mp(o)){const p=ve(hp(o));e["--app-shell-aside-width"]=p,e["--app-shell-aside-offset"]=p}if(pp(o)&&(typeof o.base<"u"&&(e["--app-shell-aside-width"]=ve(o.base),e["--app-shell-aside-offset"]=ve(o.base)),zt(o).forEach(p=>{p!=="base"&&(n[p]=n[p]||{},n[p]["--app-shell-aside-width"]=ve(o[p]),n[p]["--app-shell-aside-offset"]=ve(o[p]))})),i!=null&&i.breakpoint&&a==="static"&&(n[i.breakpoint]=n[i.breakpoint]||{},n[i.breakpoint]["--app-shell-aside-position"]="sticky",n[i.breakpoint]["--app-shell-aside-grid-row"]="2",n[i.breakpoint]["--app-shell-aside-grid-column"]="3",n[i.breakpoint]["--app-shell-main-column-end"]="3"),(h=i==null?void 0:i.collapsed)!=null&&h.desktop){const p=i.breakpoint;n[p]=n[p]||{},n[p]["--app-shell-aside-transform"]=l,n[p]["--app-shell-aside-transform-rtl"]=u,a==="fixed"?n[p]["--app-shell-aside-offset"]="0px !important":(n[p]["--app-shell-aside-width"]="0px",n[p]["--app-shell-aside-display"]="none",n[p]["--app-shell-main-column-end"]="-1"),n[p]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((d=i==null?void 0:i.collapsed)!=null&&d.mobile){const p=J6(i.breakpoint,r.breakpoints)-.1;t[p]=t[p]||{},a==="fixed"?(t[p]["--app-shell-aside-width"]="100%",t[p]["--app-shell-aside-offset"]="0px"):t[p]["--app-shell-aside-width"]="0px",t[p]["--app-shell-aside-transform"]=l,t[p]["--app-shell-aside-transform-rtl"]=u,t[p]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Uee({baseStyles:e,minMediaStyles:n,footer:t,mode:i}){const r=t==null?void 0:t.height,a="translateY(var(--app-shell-footer-height))",o=i==="static"?!0:(t==null?void 0:t.offset)??!0;if(i==="static"&&t&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),mp(r)){const l=ve(hp(r));e["--app-shell-footer-height"]=l,o&&(e["--app-shell-footer-offset"]=l)}pp(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=ve(r.base),o&&(e["--app-shell-footer-offset"]=ve(r.base))),zt(r).forEach(l=>{l!=="base"&&(n[l]=n[l]||{},n[l]["--app-shell-footer-height"]=ve(r[l]),o&&(n[l]["--app-shell-footer-offset"]=ve(r[l])))})),t!=null&&t.collapsed&&(e["--app-shell-footer-transform"]=a,i==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Vee({baseStyles:e,minMediaStyles:n,header:t,mode:i}){const r=t==null?void 0:t.height,a="translateY(calc(var(--app-shell-header-height) * -1))",o=i==="static"?!0:(t==null?void 0:t.offset)??!0;if(i==="static"&&t&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),mp(r)){const l=ve(hp(r));e["--app-shell-header-height"]=l,o&&(e["--app-shell-header-offset"]=l)}pp(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=ve(r.base),o&&(e["--app-shell-header-offset"]=ve(r.base))),zt(r).forEach(l=>{l!=="base"&&(n[l]=n[l]||{},n[l]["--app-shell-header-height"]=ve(r[l]),o&&(n[l]["--app-shell-header-offset"]=ve(r[l])))})),t!=null&&t.collapsed&&(e["--app-shell-header-transform"]=a,i==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Wee({baseStyles:e,minMediaStyles:n,maxMediaStyles:t,navbar:i,theme:r,mode:a}){var f,h,d;const o=i==null?void 0:i.width,l="translateX(calc(var(--app-shell-navbar-width) * -1))",u="translateX(var(--app-shell-navbar-width))";if(i!=null&&i.breakpoint&&!((f=i==null?void 0:i.collapsed)!=null&&f.mobile)&&(t[i==null?void 0:i.breakpoint]=t[i==null?void 0:i.breakpoint]||{},t[i==null?void 0:i.breakpoint]["--app-shell-navbar-offset"]="0px",t[i==null?void 0:i.breakpoint]["--app-shell-navbar-width"]="100%",a==="static"&&(t[i==null?void 0:i.breakpoint]["--app-shell-navbar-grid-width"]="0px")),mp(o)){const p=ve(hp(o));e["--app-shell-navbar-width"]=p,e["--app-shell-navbar-offset"]=p,a==="static"&&(e["--app-shell-navbar-grid-width"]=p)}if(pp(o)&&(typeof o.base<"u"&&(e["--app-shell-navbar-width"]=ve(o.base),e["--app-shell-navbar-offset"]=ve(o.base),a==="static"&&(e["--app-shell-navbar-grid-width"]=ve(o.base))),zt(o).forEach(p=>{p!=="base"&&(n[p]=n[p]||{},n[p]["--app-shell-navbar-width"]=ve(o[p]),n[p]["--app-shell-navbar-offset"]=ve(o[p]),a==="static"&&(n[p]["--app-shell-navbar-grid-width"]=ve(o[p])))})),i!=null&&i.breakpoint&&a==="static"&&(n[i.breakpoint]=n[i.breakpoint]||{},n[i.breakpoint]["--app-shell-navbar-position"]="sticky",n[i.breakpoint]["--app-shell-navbar-grid-row"]="2",n[i.breakpoint]["--app-shell-navbar-grid-column"]="1",n[i.breakpoint]["--app-shell-main-column-start"]="2"),(h=i==null?void 0:i.collapsed)!=null&&h.desktop){const p=i.breakpoint;n[p]=n[p]||{},n[p]["--app-shell-navbar-transform"]=l,n[p]["--app-shell-navbar-transform-rtl"]=u,a==="fixed"?n[p]["--app-shell-navbar-offset"]="0px !important":(n[p]["--app-shell-navbar-width"]="0px",n[p]["--app-shell-navbar-display"]="none",n[p]["--app-shell-main-column-start"]="1")}if((d=i==null?void 0:i.collapsed)!=null&&d.mobile){const p=J6(i.breakpoint,r.breakpoints)-.1;t[p]=t[p]||{},t[p]["--app-shell-navbar-width"]="100%",t[p]["--app-shell-navbar-offset"]="0px",a==="static"&&(t[p]["--app-shell-navbar-grid-width"]="0px"),t[p]["--app-shell-navbar-transform"]=l,t[p]["--app-shell-navbar-transform-rtl"]=u}}function zk(e){return Number(e)===0?"0px":Kt(e)}function Gee({padding:e,baseStyles:n,minMediaStyles:t}){mp(e)&&(n["--app-shell-padding"]=zk(hp(e))),pp(e)&&(e.base&&(n["--app-shell-padding"]=zk(e.base)),zt(e).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-padding"]=zk(e[i]))}))}function Yee({navbar:e,header:n,footer:t,aside:i,padding:r,theme:a,mode:o}){const l={},u={},f={};o==="static"&&(f["--app-shell-main-grid-column"]="1 / -1",f["--app-shell-main-grid-row"]="2"),Wee({baseStyles:f,minMediaStyles:l,maxMediaStyles:u,navbar:e,theme:a,mode:o}),Hee({baseStyles:f,minMediaStyles:l,maxMediaStyles:u,aside:i,theme:a,mode:o}),Vee({baseStyles:f,minMediaStyles:l,header:n,mode:o}),Uee({baseStyles:f,minMediaStyles:l,footer:t,mode:o}),Gee({baseStyles:f,minMediaStyles:l,padding:r});const h=um(zt(l),a.breakpoints).map(p=>({query:`(min-width: ${Vg(p.px)})`,styles:l[p.value]})),d=um(zt(u),a.breakpoints).map(p=>({query:`(max-width: ${Vg(p.px)})`,styles:u[p.value]}));return{baseStyles:f,media:[...h,...d]}}function Kee({navbar:e,header:n,aside:t,footer:i,padding:r,mode:a,selector:o}){const l=ci(),u=wo(),{media:f,baseStyles:h}=Yee({navbar:e,header:n,footer:i,aside:t,padding:r,theme:l,mode:a});return v.jsx(Bf,{media:f,styles:h,selector:o||u.cssVariablesSelector})}function Xee({transitionDuration:e,disabled:n}){const[t,i]=S.useState(!0),r=S.useRef(-1),a=S.useRef(-1);return Uz("resize",()=>{i(!0),clearTimeout(r.current),r.current=window.setTimeout(()=>S.startTransition(()=>{i(!1)}),200)}),ps(()=>{i(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>S.startTransition(()=>{i(!1)}),e||0)},[n,e]),t}const Zee={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:xa("app"),mode:"fixed"},HI=(e,{transitionDuration:n,transitionTimingFunction:t})=>({root:{"--app-shell-transition-duration":`${n}ms`,"--app-shell-transition-timing-function":t}}),Sr=Pe(e=>{const n=ye("AppShell",Zee,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,navbar:u,withBorder:f,padding:h,transitionDuration:d,transitionTimingFunction:p,header:g,zIndex:b,layout:w,disabled:k,aside:_,footer:x,offsetScrollbars:C=!0,mode:T,mod:A,attributes:O,id:M,...$}=n,q=Ze({name:"AppShell",classes:Al,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:O,vars:l,varsResolver:HI}),R=Xee({disabled:k,transitionDuration:d}),I=Pi(M);return v.jsxs(qee,{value:{getStyles:q,withBorder:f,zIndex:b,disabled:k,offsetScrollbars:C,mode:T},children:[v.jsx(Kee,{navbar:u,header:g,aside:_,footer:x,padding:h,mode:T,selector:T==="static"?`#${I}`:void 0}),v.jsx(de,{...q("root"),id:I,mod:[{resizing:R,layout:w,disabled:k,mode:T},A],...$})]})});Sr.classes=Al;Sr.varsResolver=HI;Sr.displayName="@mantine/core/AppShell";Sr.Navbar=AC;Sr.Header=CC;Sr.Main=jC;Sr.Aside=xC;Sr.Footer=SC;Sr.Section=OC;function UI(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(n=>UI(n))}:typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"?{value:e,label:`${e}`}:e}function Iy(e){return e?e.map(n=>UI(n)):[]}function vp(e){return e.reduce((n,t)=>"group"in t?{...n,...vp(t.items)}:(n[`${t.value}`]=t,n),{})}var ur={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"};const Qee={error:null},VI=(e,{size:n,color:t})=>({chevron:{"--combobox-chevron-size":In(n,"combobox-chevron-size"),"--combobox-chevron-color":t?ft(t,e):void 0}}),By=Pe(e=>{const n=ye("ComboboxChevron",Qee,e),{size:t,error:i,style:r,className:a,classNames:o,styles:l,unstyled:u,vars:f,attributes:h,mod:d,...p}=n,g=Ze({name:"ComboboxChevron",classes:ur,props:n,style:r,className:a,classNames:o,styles:l,unstyled:u,vars:f,varsResolver:VI,attributes:h,rootSelector:"chevron"});return v.jsx(de,{component:"svg",...p,...g("chevron"),size:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},d],children:v.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"})})});By.classes=ur;By.varsResolver=VI;By.displayName="@mantine/core/ComboboxChevron";const[Jee,Aa]=Or("Combobox component was not found in tree");function WI({onMouseDown:e,onClick:n,onClear:t,...i}){return v.jsx(Zt.ClearButton,{tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:r=>{r.preventDefault(),e==null||e(r)},onClick:r=>{t(),n==null||n(r)}})}WI.displayName="@mantine/core/ComboboxClearButton";const TC=Pe(e=>{const{classNames:n,styles:t,className:i,style:r,hidden:a,...o}=ye("ComboboxDropdown",null,e),l=Aa();return v.jsx(Sn.Dropdown,{...o,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:i,style:r,classNames:n,styles:t})})});TC.classes=ur;TC.displayName="@mantine/core/ComboboxDropdown";const ene={refProp:"ref"},GI=Pe(e=>{const{children:n,refProp:t,ref:i}=ye("ComboboxDropdownTarget",ene,e);if(Aa(),!X6(n))throw new 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 v.jsx(Sn.Target,{ref:i,refProp:t,children:n})});GI.displayName="@mantine/core/ComboboxDropdownTarget";const EC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ComboboxEmpty",null,e);return v.jsx(de,{...Aa().getStyles("empty",{className:t,classNames:n,styles:r,style:i}),...o})});EC.classes=ur;EC.displayName="@mantine/core/ComboboxEmpty";function MC({onKeyDown:e,onClick:n,withKeyboardNavigation:t,withAriaAttributes:i,withExpandedAttribute:r,targetType:a,autoComplete:o}){const l=Aa(),[u,f]=S.useState(null),h=g=>{if(e==null||e(g),!l.readOnly&&t){if(g.nativeEvent.isComposing)return;if(g.nativeEvent.code==="ArrowDown"&&(g.preventDefault(),l.store.dropdownOpened?f(l.store.selectNextOption()):(l.store.openDropdown("keyboard"),f(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="ArrowUp"&&(g.preventDefault(),l.store.dropdownOpened?f(l.store.selectPreviousOption()):(l.store.openDropdown("keyboard"),f(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="Enter"||g.nativeEvent.code==="NumpadEnter"){if(g.nativeEvent.keyCode===229)return;const b=l.store.getSelectedOptionIndex();l.store.dropdownOpened&&b!==-1?(g.preventDefault(),l.store.clickSelectedOption()):a==="button"&&(g.preventDefault(),l.store.openDropdown("keyboard"))}g.key==="Escape"&&l.store.closeDropdown("keyboard"),g.nativeEvent.code==="Space"&&a==="button"&&(g.preventDefault(),l.store.toggleDropdown("keyboard"))}};return{...i?{...r?{role:"combobox"}:{},"aria-haspopup":"listbox","aria-expanded":r?!!(l.store.listId&&l.store.dropdownOpened):void 0,"aria-controls":l.store.dropdownOpened&&l.store.listId?l.store.listId:void 0,"aria-activedescendant":l.store.dropdownOpened&&u||void 0,autoComplete:o,"data-expanded":l.store.dropdownOpened||void 0,"data-mantine-stop-propagation":l.store.dropdownOpened||void 0}:{},onKeyDown:h,onClick:g=>{a==="button"&&g.currentTarget.focus(),n==null||n(g)}}}const nne={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},YI=Pe(e=>{const{children:n,refProp:t,withKeyboardNavigation:i,withAriaAttributes:r,withExpandedAttribute:a,targetType:o,autoComplete:l,ref:u,...f}=ye("ComboboxEventsTarget",nne,e),h=Cl(n);if(!h)throw new 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");const d=Aa();return S.cloneElement(h,{...MC({targetType:o,withAriaAttributes:r,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:h.props.onKeyDown,onClick:h.props.onClick,autoComplete:l}),...f,[t]:Vt(u,d.store.targetRef,Sy(h))})});YI.displayName="@mantine/core/ComboboxEventsTarget";const DC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ComboboxFooter",null,e);return v.jsx(de,{...Aa().getStyles("footer",{className:t,classNames:n,style:i,styles:r}),...o,onMouseDown:l=>{l.preventDefault()}})});DC.classes=ur;DC.displayName="@mantine/core/ComboboxFooter";const RC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,children:o,label:l,id:u,...f}=ye("ComboboxGroup",null,e),h=Aa(),d=Pi(u);return v.jsxs(de,{role:"group","aria-labelledby":l?d:void 0,...h.getStyles("group",{className:t,classNames:n,style:i,styles:r}),...f,children:[l&&v.jsx("div",{id:d,...h.getStyles("groupLabel",{classNames:n,styles:r}),children:l}),o]})});RC.classes=ur;RC.displayName="@mantine/core/ComboboxGroup";const PC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ComboboxHeader",null,e);return v.jsx(de,{...Aa().getStyles("header",{className:t,classNames:n,style:i,styles:r}),...o,onMouseDown:l=>{l.preventDefault()}})});PC.classes=ur;PC.displayName="@mantine/core/ComboboxHeader";function KI({value:e,valuesDivider:n=",",...t}){return v.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(n):e?`${e}`:"",...t})}KI.displayName="@mantine/core/ComboboxHiddenInput";const NC=Pe(e=>{const n=ye("ComboboxOption",null,e),{classNames:t,className:i,style:r,styles:a,vars:o,onClick:l,id:u,active:f,onMouseDown:h,onMouseOver:d,disabled:p,selected:g,mod:b,...w}=n,k=Aa(),_=S.useId(),x=u||_;return v.jsx(de,{...k.getStyles("option",{className:i,classNames:t,styles:a,style:r}),...w,id:x,mod:["combobox-option",{"combobox-active":f,"combobox-disabled":p,"combobox-selected":g},b],role:"option",onClick:C=>{var T;p?C.preventDefault():((T=k.onOptionSubmit)==null||T.call(k,n.value,n),l==null||l(C))},onMouseDown:C=>{C.preventDefault(),h==null||h(C)},onMouseOver:C=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),d==null||d(C)}})});NC.classes=ur;NC.displayName="@mantine/core/ComboboxOption";const $C=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,id:a,onMouseDown:o,labelledBy:l,...u}=ye("ComboboxOptions",null,e),f=Aa(),h=Pi(a);return S.useEffect(()=>{f.store.setListId(h)},[h]),v.jsx(de,{...f.getStyles("options",{className:t,style:i,classNames:n,styles:r}),...u,id:h,role:"listbox","aria-labelledby":l,onMouseDown:d=>{d.preventDefault(),o==null||o(d)}})});$C.classes=ur;$C.displayName="@mantine/core/ComboboxOptions";const tne={withAriaAttributes:!0,withKeyboardNavigation:!0},zC=Pe(e=>{const{classNames:n,styles:t,unstyled:i,vars:r,withAriaAttributes:a,onKeyDown:o,onClick:l,withKeyboardNavigation:u,size:f,ref:h,...d}=ye("ComboboxSearch",tne,e),p=Aa(),g=p.getStyles("search"),b=MC({targetType:"input",withAriaAttributes:a,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:o,onClick:l,autoComplete:"off"});return v.jsx(Zt,{ref:Vt(h,p.store.searchRef),classNames:[{input:g.className},n],styles:[{input:g.style},t],size:f||p.size,...b,...d,__staticSelector:"Combobox"})});zC.classes=ur;zC.displayName="@mantine/core/ComboboxSearch";const ine={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},XI=Pe(e=>{const{children:n,refProp:t,withKeyboardNavigation:i,withAriaAttributes:r,withExpandedAttribute:a,targetType:o,autoComplete:l,ref:u,...f}=ye("ComboboxTarget",ine,e),h=Cl(n);if(!h)throw new 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");const d=Aa(),p=S.cloneElement(h,{...MC({targetType:o,withAriaAttributes:r,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:h.props.onKeyDown,onClick:h.props.onClick,autoComplete:l}),...f});return v.jsx(Sn.Target,{refProp:t,ref:Vt(u,d.store.targetRef),children:p})});XI.displayName="@mantine/core/ComboboxTarget";function rne(e,n,t){for(let i=e-1;i>=0;i-=1)if(!n[i].hasAttribute("data-combobox-disabled"))return i;if(t){for(let i=n.length-1;i>-1;i-=1)if(!n[i].hasAttribute("data-combobox-disabled"))return i}return e}function ane(e,n,t){for(let i=e+1;i{l||(u(!0),r==null||r(D))},[u,r,l]),_=S.useCallback((D="unknown")=>{l&&(u(!1),i==null||i(D))},[u,i,l]),x=S.useCallback((D="unknown")=>{l?_(D):k(D)},[_,k,l]),C=S.useCallback(()=>{const D=Uo(p.current),L=Eg(`#${f.current} [data-combobox-selected]`,D);L==null||L.removeAttribute("data-combobox-selected"),L==null||L.removeAttribute("aria-selected")},[]),T=S.useCallback(D=>{const L=Uo(p.current),H=Eg(`#${f.current}`,L),Y=H?Go("[data-combobox-option]",H):null;if(!Y)return null;const P=D>=Y.length?0:D<0?Y.length-1:D;return h.current=P,Y!=null&&Y[P]&&!Y[P].hasAttribute("data-combobox-disabled")?(C(),Y[P].setAttribute("data-combobox-selected","true"),Y[P].setAttribute("aria-selected","true"),Y[P].scrollIntoView({block:"nearest",behavior:o}),Y[P].id):null},[o,C]),A=S.useCallback(()=>{const D=Uo(p.current),L=Eg(`#${f.current} [data-combobox-active]`,D);return T(L?Go(`#${f.current} [data-combobox-option]`,D).findIndex(H=>H===L):0)},[T]),O=S.useCallback(()=>{const D=Uo(p.current),L=Go(`#${f.current} [data-combobox-option]`,D);return T(ane(h.current,L,a))},[T,a]),M=S.useCallback(()=>{const D=Uo(p.current),L=Go(`#${f.current} [data-combobox-option]`,D);return T(rne(h.current,L,a))},[T,a]),$=S.useCallback(()=>{const D=Uo(p.current);return T(one(Go(`#${f.current} [data-combobox-option]`,D)))},[T]),q=S.useCallback((D="selected",L)=>{var H;if(typeof D=="number"){h.current=D;const Y=Uo(p.current),P=Go(`#${f.current} [data-combobox-option]`,Y);L!=null&&L.scrollIntoView&&((H=P[D])==null||H.scrollIntoView({block:"nearest",behavior:o}));return}w.current=window.setTimeout(()=>{var V;const Y=Uo(p.current),P=Go(`#${f.current} [data-combobox-option]`,Y),G=P.findIndex(B=>B.hasAttribute(`data-combobox-${D}`));h.current=G,L!=null&&L.scrollIntoView&&((V=P[G])==null||V.scrollIntoView({block:"nearest",behavior:o}))},0)},[]),R=S.useCallback(()=>{h.current=-1,C()},[C]),I=S.useCallback(()=>{var L,H;const D=Uo(p.current);(H=(L=Go(`#${f.current} [data-combobox-option]`,D))==null?void 0:L[h.current])==null||H.click()},[]),z=S.useCallback(D=>{f.current=D},[]),W=S.useCallback(()=>{g.current=window.setTimeout(()=>{var D;return(D=d.current)==null?void 0:D.focus()},0)},[]),U=S.useCallback(()=>{b.current=window.setTimeout(()=>{var D;return(D=p.current)==null?void 0:D.focus()},0)},[]),N=S.useCallback(()=>h.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(w.current)},[]),{dropdownOpened:l,openDropdown:k,closeDropdown:_,toggleDropdown:x,selectedOptionIndex:h.current,getSelectedOptionIndex:N,selectOption:T,selectFirstOption:$,selectActiveOption:A,selectNextOption:O,selectPreviousOption:M,resetSelectedOption:R,updateSelectedOptionIndex:q,listId:f.current,setListId:z,clickSelectedOption:I,searchRef:d,focusSearchInput:W,targetRef:p,focusTarget:U}}const sne={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},ZI=(e,{size:n,dropdownPadding:t})=>({options:{"--combobox-option-fz":ai(n),"--combobox-option-padding":In(n,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:ve(t),"--combobox-option-fz":ai(n),"--combobox-option-padding":In(n,"combobox-option-padding")}}),On=e=>{const n=ye("Combobox",sne,e),{classNames:t,styles:i,unstyled:r,children:a,store:o,vars:l,onOptionSubmit:u,onClose:f,size:h,dropdownPadding:d,resetSelectionOnOptionHover:p,__staticSelector:g,readOnly:b,attributes:w,...k}=n,_=Vf(),x=o||_,C=Ze({name:g||"Combobox",classes:ur,props:n,classNames:t,styles:i,unstyled:r,attributes:w,vars:l,varsResolver:ZI}),T=()=>{f==null||f(),x.closeDropdown()};return v.jsx(Jee,{value:{getStyles:C,store:x,onOptionSubmit:u,size:h,resetSelectionOnOptionHover:p,readOnly:b},children:v.jsx(Sn,{opened:x.dropdownOpened,preventPositionChangeWhenVisible:!1,...k,onChange:A=>!A&&T(),withRoles:!1,unstyled:r,children:a})})},lne=e=>e;On.extend=lne;On.classes=ur;On.varsResolver=ZI;On.displayName="@mantine/core/Combobox";On.Target=XI;On.Dropdown=TC;On.Options=$C;On.Option=NC;On.Search=zC;On.Empty=EC;On.Chevron=By;On.Footer=DC;On.Header=PC;On.EventsTarget=YI;On.DropdownTarget=GI;On.Group=RC;On.ClearButton=WI;On.HiddenInput=KI;function une({children:e,role:n}){const t=S.use(Uu);return t?v.jsx("div",{role:n,"aria-labelledby":t.labelId,"aria-describedby":t.describedBy,children:e}):v.jsx(v.Fragment,{children:e})}const LC=S.createContext(null),cne={hiddenInputValuesSeparator:","},IC=sp((e=>{const{value:n,defaultValue:t,onChange:i,size:r,wrapperProps:a,children:o,readOnly:l,name:u,hiddenInputValuesSeparator:f,hiddenInputProps:h,maxSelectedValues:d,disabled:p,...g}=ye("CheckboxGroup",cne,e),[b,w]=Ai({value:n,defaultValue:t,finalValue:[],onChange:i}),k=C=>{const T=typeof C=="string"?C:C.currentTarget.value;if(l)return;const A=b.includes(T);!A&&d&&b.length>=d||w(A?b.filter(O=>O!==T):[...b,T])},_=C=>{if(p)return!0;if(!d)return!1;const T=b.includes(C),A=b.length>=d;return!T&&A},x=b.join(f);return v.jsx(LC,{value:{value:b,onChange:k,size:r,isDisabled:_},children:v.jsxs(Zt.Wrapper,{size:r,...a,...g,labelElement:"div",__staticSelector:"CheckboxGroup",children:[v.jsx(une,{role:"group",children:o}),v.jsx("input",{type:"hidden",name:u,value:x,...h})]})})}));IC.classes=Zt.Wrapper.classes;IC.displayName="@mantine/core/CheckboxGroup";var QI={card:"m_26775b0a"};const JI=S.createContext(null),fne={withBorder:!0},eB=(e,{radius:n})=>({card:{"--card-radius":Ut(n)}}),Fy=Pe(e=>{const n=ye("CheckboxCard",fne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,checked:u,mod:f,withBorder:h,value:d,onClick:p,defaultChecked:g,onChange:b,attributes:w,...k}=n,_=Ze({name:"CheckboxCard",classes:QI,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l,varsResolver:eB,rootSelector:"card"}),x=S.use(LC),[C,T]=Ai({value:typeof u=="boolean"?u:x?x.value.includes(d||""):void 0,defaultValue:g,finalValue:!1,onChange:b});return v.jsx(JI,{value:{checked:C},children:v.jsx(Mt,{mod:[{"with-border":h,checked:C},f],..._("card"),...k,role:"checkbox","aria-checked":C,onClick:A=>{p==null||p(A),x==null||x.onChange(d||""),T(!C)}})})});Fy.displayName="@mantine/core/CheckboxCard";Fy.classes=QI;Fy.varsResolver=eB;function BC({size:e,style:n,...t}){return v.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e!==void 0?{width:ve(e),height:ve(e),...n}:n,"aria-hidden":!0,...t,children:v.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 nB({indeterminate:e,...n}){return e?v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...n,children:v.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):v.jsx(BC,{...n})}var tB={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const dne={icon:nB,variant:"filled",radius:"sm"},iB=(e,{radius:n,color:t,size:i,iconColor:r,variant:a,autoContrast:o})=>{const l=vs({color:t||e.primaryColor,theme:e}),u=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":In(i,"checkbox-size"),"--checkbox-radius":n===void 0?void 0:Ut(n),"--checkbox-color":a==="outline"?u:ft(t,e),"--checkbox-icon-color":r?ft(r,e):ap(o,e)?If({color:t,theme:e,autoContrast:o}):void 0}}},qy=Pe(e=>{const n=ye("CheckboxIndicator",dne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,icon:u,indeterminate:f,radius:h,color:d,iconColor:p,autoContrast:g,checked:b,mod:w,variant:k,disabled:_,attributes:x,...C}=n,T=Ze({name:"CheckboxIndicator",classes:tB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:x,vars:l,varsResolver:iB,rootSelector:"indicator"}),A=S.use(JI),O=typeof b=="boolean"||typeof f=="boolean"?b||f:(A==null?void 0:A.checked)||!1;return v.jsx(de,{...T("indicator",{variant:k}),variant:k,mod:[{checked:O,disabled:_},w],...C,children:v.jsx(u,{indeterminate:f,...T("icon")})})});qy.displayName="@mantine/core/CheckboxIndicator";qy.classes=tB;qy.varsResolver=iB;var rB={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const hne=rB;function aB({__staticSelector:e,__stylesApiProps:n,className:t,classNames:i,styles:r,unstyled:a,children:o,label:l,description:u,id:f,disabled:h,error:d,size:p,labelPosition:g="left",bodyElement:b="div",labelElement:w="label",variant:k,style:_,vars:x,mod:C,attributes:T,...A}){const O=Ze({name:e,props:n,className:t,style:_,classes:rB,classNames:i,styles:r,unstyled:a,attributes:T});return v.jsx(de,{...O("root"),__vars:{"--label-fz":ai(p),"--label-lh":In(p,"label-lh")},mod:[{"label-position":g},C],variant:k,size:p,...A,children:v.jsxs(de,{component:b,htmlFor:b==="label"?f:void 0,...O("body"),children:[o,v.jsxs("div",{...O("labelWrapper"),"data-disabled":h||void 0,children:[l&&v.jsx(de,{component:w,htmlFor:w==="label"?f:void 0,...O("label"),"data-disabled":h||void 0,children:l}),u&&v.jsx(Zt.Description,{size:p,__inheritStyles:!1,...O("description"),children:u}),d&&typeof d!="boolean"&&v.jsx(Zt.Error,{size:p,__inheritStyles:!1,...O("error"),children:d})]})]})})}aB.displayName="@mantine/core/InlineInput";var oB={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const mne={labelPosition:"right",icon:nB,withErrorStyles:!0,variant:"filled",radius:"sm"},sB=(e,{radius:n,color:t,size:i,iconColor:r,variant:a,autoContrast:o})=>{const l=vs({color:t||e.primaryColor,theme:e}),u=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":In(i,"checkbox-size"),"--checkbox-radius":n===void 0?void 0:Ut(n),"--checkbox-color":a==="outline"?u:ft(t,e),"--checkbox-icon-color":r?ft(r,e):ap(o,e)?If({color:t,theme:e,autoContrast:o}):void 0}}},nr=Pe(e=>{var Z;const n=ye("Checkbox",mne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,label:f,id:h,size:d,radius:p,wrapperProps:g,checked:b,labelPosition:w,description:k,error:_,disabled:x,variant:C,indeterminate:T,icon:A,rootRef:O,iconColor:M,onChange:$,autoContrast:q,mod:R,attributes:I,readOnly:z,onClick:W,withErrorStyles:U,ref:N,...D}=n,L=S.useRef(null),H=S.use(LC),Y=d||(H==null?void 0:H.size),P=Ze({name:"Checkbox",props:n,classes:oB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:I,vars:l,varsResolver:sB}),{styleProps:G,rest:V}=qu(D),B=Pi(h),Q={checked:(H==null?void 0:H.value.includes(V.value))??b,onChange:le=>{H==null||H.onChange(le),$==null||$(le)}},ie=((Z=H==null?void 0:H.isDisabled)==null?void 0:Z.call(H,V.value))??!1,re=x||ie;return S.useEffect(()=>{L.current&&(L.current.indeterminate=T||!1,T?L.current.setAttribute("data-indeterminate","true"):L.current.removeAttribute("data-indeterminate"))},[T]),v.jsx(aB,{...P("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:B,size:Y,labelPosition:w,label:f,description:k,error:_,disabled:re,classNames:t,styles:a,unstyled:o,"data-checked":Q.checked||b||void 0,variant:C,ref:O,mod:R,attributes:I,inert:V.inert,...G,...g,children:v.jsxs(de,{...P("inner"),mod:{"data-label-position":w},children:[v.jsx(de,{component:"input",id:B,ref:Vt(L,N),mod:{error:!!_},...P("input",{focusable:!0,variant:C}),...V,...Q,disabled:re,inert:V.inert,type:"checkbox",onClick:le=>{z&&le.preventDefault(),W==null||W(le)}}),v.jsx(A,{indeterminate:T,...P("icon")})]})})});nr.classes={...oB,...hne};nr.varsResolver=sB;nr.displayName="@mantine/core/Checkbox";nr.Group=IC;nr.Indicator=qy;nr.Card=Fy;function Eu(e){return"group"in e}function lB({options:e,search:n,limit:t}){const i=n.trim().toLowerCase(),r=[];for(let a=0;a0)return!1;return!0}function uB(e,n=new Set){if(Array.isArray(e))for(const t of e)if(Eu(t))uB(t.items,n);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(n.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);n.add(t.value)}}function vne(e,n){return Array.isArray(e)?e.includes(n):e===n}function cB({data:e,withCheckIcon:n,withAlignedLabels:t,value:i,checkIconPosition:r,unstyled:a,renderOption:o}){if(!Eu(e)){const u=vne(i,e.value),f=n&&(u?v.jsx(BC,{className:ur.optionsDropdownCheckIcon}):t?v.jsx("div",{className:ur.optionsDropdownCheckPlaceholder}):null),h=v.jsxs(v.Fragment,{children:[r==="left"&&f,v.jsx("span",{children:e.label}),r==="right"&&f]});return v.jsx(On.Option,{value:e.value,disabled:e.disabled,className:vn({[ur.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":u||void 0,"aria-selected":u,active:u,children:typeof o=="function"?o({option:e,checked:u}):h})}const l=e.items.map(u=>v.jsx(cB,{data:u,value:i,unstyled:a,withCheckIcon:n,withAlignedLabels:t,checkIconPosition:r,renderOption:o},`${u.value}`));return v.jsx(On.Group,{label:e.group,children:l})}function Hy({data:e,hidden:n,hiddenWhenEmpty:t,filter:i,search:r,limit:a,maxDropdownHeight:o,withScrollArea:l=!0,filterOptions:u=!0,withCheckIcon:f=!1,withAlignedLabels:h=!1,value:d,checkIconPosition:p,nothingFoundMessage:g,unstyled:b,labelId:w,renderOption:k,scrollAreaProps:_,"aria-label":x}){uB(e);const C=typeof r=="string"?(i||lB)({options:e,search:u?r:"",limit:a??1/0}):e,T=pne(C),A=C.map(O=>v.jsx(cB,{data:O,withCheckIcon:f,withAlignedLabels:h,value:d,checkIconPosition:p,unstyled:b,renderOption:k},Eu(O)?O.group:`${O.value}`));return v.jsx(On.Dropdown,{hidden:n||t&&T,"data-composed":!0,children:v.jsxs(On.Options,{labelledBy:w,"aria-label":x,children:[l?v.jsx(cr.Autosize,{mah:o??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",..._,children:A}):A,T&&g&&v.jsx(On.Empty,{children:g})]})})}const Uy=Pe(e=>{const n=ye("Autocomplete",{size:"sm"},e),{classNames:t,styles:i,unstyled:r,vars:a,dropdownOpened:o,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:f,onFocus:h,onBlur:d,onClick:p,onChange:g,data:b,value:w,defaultValue:k,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:x,onOptionSubmit:C,comboboxProps:T,readOnly:A,disabled:O,filter:M,limit:$,withScrollArea:q,maxDropdownHeight:R,size:I,id:z,renderOption:W,autoComplete:U,scrollAreaProps:N,onClear:D,clearButtonProps:L,error:H,clearable:Y,clearSectionMode:P,rightSection:G,autoSelectOnBlur:V,openOnFocus:B=!0,attributes:Q,...ie}=n,re=Pi(z),Z=Iy(b),le=vp(Z),[ee,se]=Ai({value:w,defaultValue:k,finalValue:"",onChange:g}),ke=Vf({opened:o,defaultOpened:l,onDropdownOpen:()=>{f==null||f(),x&&ke.selectFirstOption()},onDropdownClose:()=>{u==null||u(),setTimeout(ke.resetSelectedOption,0)}}),te=ze=>{se(ze),ke.resetSelectedOption()},{resolvedClassNames:$e,resolvedStyles:xe}=Wi({props:n,styles:i,classNames:t});S.useEffect(()=>{_&&ke.selectFirstOption()},[_,ee]);const Oe=v.jsx(On.ClearButton,{...L,onClear:()=>{te(""),D==null||D()}});return v.jsxs(On,{store:ke,__staticSelector:"Autocomplete",classNames:$e,styles:xe,unstyled:r,readOnly:A,size:I,attributes:Q,keepMounted:V,onOptionSubmit:ze=>{C==null||C(ze),te(le[ze].label),ke.closeDropdown()},...T,children:[v.jsx(On.Target,{autoComplete:U,withExpandedAttribute:!0,children:v.jsx(Ni,{...ie,size:I,__staticSelector:"Autocomplete",__clearSection:Oe,__clearable:Y&&!!ee&&!O&&!A,__clearSectionMode:P,rightSection:G,disabled:O,readOnly:A,value:ee,error:H,onChange:ze=>{te(ze.currentTarget.value),ke.openDropdown(),_&&ke.selectFirstOption()},onFocus:ze=>{B&&ke.openDropdown(),h==null||h(ze)},onBlur:ze=>{V&&ke.clickSelectedOption(),ke.closeDropdown(),d==null||d(ze)},onClick:ze=>{ke.openDropdown(),p==null||p(ze)},classNames:$e,styles:xe,unstyled:r,attributes:Q,id:re})}),v.jsx(Hy,{data:Z,hidden:A||O,filter:M,search:ee,limit:$,hiddenWhenEmpty:!0,withScrollArea:q,maxDropdownHeight:R,unstyled:r,labelId:ie.label?`${re}-label`:void 0,"aria-label":ie.label?void 0:ie["aria-label"],renderOption:W,scrollAreaProps:N})]})});Uy.classes={...Ni.classes,...On.classes};Uy.displayName="@mantine/core/Autocomplete";var Vy={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const fB=S.createContext({withinGroup:!1}),dB=(e,{spacing:n})=>({group:{"--ag-spacing":Kt(n)}}),Wy=Pe(e=>{const n=ye("AvatarGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,spacing:u,attributes:f,...h}=n;return v.jsx(fB,{value:{withinGroup:!0},children:v.jsx(de,{...Ze({name:"AvatarGroup",classes:Vy,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:f,vars:l,varsResolver:dB,rootSelector:"group"})("group"),...h})})});Wy.classes=Vy;Wy.varsResolver=dB;Wy.displayName="@mantine/core/AvatarGroup";function gne(e){return v.jsx("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function yne(e){let n=0;for(let t=0;ti[0]).slice(0,n).join("").toUpperCase()}const hB=(e,{size:n,radius:t,variant:i,gradient:r,color:a,autoContrast:o,name:l,allowedInitialsColors:u})=>{const f=a==="initials"&&typeof l=="string"?wne(l,u):a,h=e.variantColorResolver({color:f||"gray",theme:e,gradient:r,variant:i||"light",autoContrast:o});return{root:{"--avatar-size":In(n,"avatar-size"),"--avatar-radius":t===void 0?void 0:Ut(t),"--avatar-bg":f||i?h.background:void 0,"--avatar-color":f||i?h.color:void 0,"--avatar-bd":f||i?h.border:void 0}}},mo=ki(e=>{const n=ye("Avatar",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,src:u,alt:f,radius:h,color:d,gradient:p,imageProps:g,children:b,autoContrast:w,mod:k,name:_,allowedInitialsColors:x,attributes:C,...T}=n,A=S.use(fB),[O,M]=S.useState(!u),$=Ze({name:"Avatar",props:n,classes:Vy,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:C,vars:l,varsResolver:hB});return S.useEffect(()=>M(!u),[u]),v.jsx(de,{...$("root"),mod:[{"within-group":A.withinGroup},k],...T,children:O||!u?v.jsx("span",{...$("placeholder"),title:f,children:b||typeof _=="string"&&kne(_)||v.jsx(gne,{})}):v.jsx("img",{...g,...$("image"),src:u,alt:f,onError:q=>{var R;M(!0),(R=g==null?void 0:g.onError)==null||R.call(g,q)}})})});mo.classes=Vy;mo.varsResolver=hB;mo.displayName="@mantine/core/Avatar";mo.Group=Wy;var mB={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const pB=(e,{radius:n,color:t,gradient:i,variant:r,size:a,autoContrast:o,circle:l})=>{const u=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:o});return{root:{"--badge-height":In(a,"badge-height"),"--badge-padding-x":In(a,"badge-padding-x"),"--badge-fz":In(a,"badge-fz"),"--badge-radius":l||n===void 0?void 0:Ut(n),"--badge-bg":t||r?u.background:void 0,"--badge-color":t||r?u.color:void 0,"--badge-bd":t||r?u.border:void 0,"--badge-dot-color":r==="dot"?ft(t,e):void 0}}},Nn=ki(e=>{const n=ye("Badge",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,radius:u,color:f,gradient:h,leftSection:d,rightSection:p,children:g,variant:b,fullWidth:w,autoContrast:k,circle:_,mod:x,attributes:C,...T}=n,A=Ze({name:"Badge",props:n,classes:mB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:C,vars:l,varsResolver:pB});return v.jsxs(de,{variant:b,mod:[{block:w,circle:_,"with-right-section":!!p,"with-left-section":!!d},x],...A("root",{variant:b}),...T,children:[d&&v.jsx("span",{...A("section"),"data-position":"left",children:d}),v.jsx("span",{...A("label"),children:g}),p&&v.jsx("span",{...A("section"),"data-position":"right",children:p})]})});Nn.classes=mB;Nn.varsResolver=pB;Nn.displayName="@mantine/core/Badge";var Wf={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const OE={orientation:"horizontal"},vB=(e,{borderWidth:n})=>({group:{"--button-border-width":ve(n)}}),Gy=Pe(e=>{const n=ye("ButtonGroup",OE,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,orientation:l,vars:u,borderWidth:f,mod:h,attributes:d,...p}=ye("ButtonGroup",OE,e);return v.jsx(de,{...Ze({name:"ButtonGroup",props:n,classes:Wf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:d,vars:u,varsResolver:vB,rootSelector:"group"})("group"),mod:[{"data-orientation":l},h],role:"group",...p})});Gy.classes=Wf;Gy.varsResolver=vB;Gy.displayName="@mantine/core/ButtonGroup";const gB=(e,{radius:n,color:t,gradient:i,variant:r,autoContrast:a,size:o})=>{const l=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:a});return{groupSection:{"--section-height":In(o,"section-height"),"--section-padding-x":In(o,"section-padding-x"),"--section-fz":o!=null&&o.includes("compact")?ai(o.replace("compact-","")):ai(o),"--section-radius":n===void 0?void 0:Ut(n),"--section-bg":t||r?l.background:void 0,"--section-color":l.color,"--section-bd":t||r?l.border:void 0}}},Yy=Pe(e=>{const n=ye("ButtonGroupSection",null,e),{className:t,style:i,classNames:r,styles:a,unstyled:o,vars:l,gradient:u,radius:f,autoContrast:h,attributes:d,...p}=n;return v.jsx(de,{...Ze({name:"ButtonGroupSection",props:n,classes:Wf,className:t,style:i,classNames:r,styles:a,unstyled:o,attributes:d,vars:l,varsResolver:gB,rootSelector:"groupSection"})("groupSection"),...p})});Yy.classes=Wf;Yy.varsResolver=gB;Yy.displayName="@mantine/core/ButtonGroupSection";const _ne={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ve(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},yB=(e,{radius:n,color:t,gradient:i,variant:r,size:a,justify:o,autoContrast:l})=>{const u=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:l});return{root:{"--button-justify":o,"--button-height":In(a,"button-height"),"--button-padding-x":In(a,"button-padding-x"),"--button-fz":a!=null&&a.includes("compact")?ai(a.replace("compact-","")):ai(a),"--button-radius":n===void 0?void 0:Ut(n),"--button-bg":t||r?u.background:void 0,"--button-hover":t||r?u.hover:void 0,"--button-color":u.color,"--button-bd":t||r?u.border:void 0,"--button-hover-color":t||r?u.hoverColor:void 0}}},Vn=ki(e=>{const n=ye("Button",null,e),{style:t,vars:i,className:r,color:a,disabled:o,children:l,leftSection:u,rightSection:f,fullWidth:h,variant:d,radius:p,loading:g,loaderProps:b,gradient:w,classNames:k,styles:_,unstyled:x,"data-disabled":C,autoContrast:T,mod:A,attributes:O,...M}=n,$=Ze({name:"Button",props:n,classes:Wf,className:r,style:t,classNames:k,styles:_,unstyled:x,attributes:O,vars:i,varsResolver:yB}),q=!!u,R=!!f;return v.jsxs(Mt,{...$("root",{active:!o&&!g&&!C}),unstyled:x,variant:d,disabled:o||g,mod:[{disabled:o||C,loading:g,block:h,"with-left-section":q,"with-right-section":R},A],...M,children:[typeof g=="boolean"&&v.jsx(ls,{mounted:g,transition:_ne,duration:150,children:I=>v.jsx(de,{component:"span",...$("loader",{style:I}),"aria-hidden":!0,children:v.jsx(Ht,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...b})})}),v.jsxs("span",{...$("inner"),children:[u&&v.jsx(de,{component:"span",...$("section"),mod:{position:"left"},children:u}),v.jsx(de,{component:"span",mod:{loading:g},...$("label"),children:l}),f&&v.jsx(de,{component:"span",...$("section"),mod:{position:"right"},children:f})]})]})});Vn.classes=Wf;Vn.varsResolver=yB;Vn.displayName="@mantine/core/Button";Vn.Group=Gy;Vn.GroupSection=Yy;const[xne,Sne]=Or("Card component was not found in tree");var FC={root:"m_e615b15f",section:"m_599a2148"};const Ky=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,withBorder:o,inheritPadding:l,mod:u,...f}=ye("CardSection",null,e),h=Sne();return v.jsx(de,{mod:[{"with-border":o,"inherit-padding":l},u],...h.getStyles("section",{className:t,style:i,styles:r,classNames:n}),...f})});Ky.classes=FC;Ky.displayName="@mantine/core/CardSection";const bB=(e,{padding:n})=>({root:{"--card-padding":Kt(n)}}),Cne={orientation:"vertical"},za=ki(e=>{const n=ye("Card",Cne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,padding:f,attributes:h,orientation:d,...p}=n,g=Ze({name:"Card",props:n,classes:FC,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,varsResolver:bB}),b=S.Children.toArray(u),w=b.map((k,_)=>{var x;return typeof k=="object"&&k&&"type"in k&&(k.type===Ky||((x=k.type)==null?void 0:x.displayName)==="@mantine/core/CardSection")?S.cloneElement(k,{"data-orientation":d,"data-first-section":_===0||void 0,"data-last-section":_===b.length-1||void 0}):k});return v.jsx(xne,{value:{getStyles:g},children:v.jsx(Et,{unstyled:o,"data-orientation":d,...g("root"),...p,children:w})})});za.classes=FC;za.varsResolver=bB;za.displayName="@mantine/core/Card";za.Section=Ky;var wB={root:"m_4451eb3a"};const Gf=ki(e=>{const n=ye("Center",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,inline:u,mod:f,attributes:h,...d}=n,p=Ze({name:"Center",props:n,classes:wB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l});return v.jsx(de,{mod:[{inline:u},f],...p("root"),...d})});Gf.classes=wB;Gf.displayName="@mantine/core/Center";var kB={root:"m_b183c0a2"};const _B=(e,{color:n})=>({root:{"--code-bg":n?ft(n,e):void 0}}),pl=Pe(e=>{const n=ye("Code",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,block:f,mod:h,attributes:d,...p}=n,g=Ze({name:"Code",props:n,classes:kB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:d,vars:l,varsResolver:_B});return v.jsx(de,{component:f?"pre":"code",mod:[{block:f},h],...g("root"),...p,dir:"ltr"})});pl.classes=kB;pl.varsResolver=_B;pl.displayName="@mantine/core/Code";var xB={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const TE={withShadow:!0},SB=(e,{radius:n,size:t})=>({root:{"--cs-radius":n===void 0?void 0:Ut(n),"--cs-size":ve(t)}}),Yf=ki(e=>{const n=ye("ColorSwatch",TE,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,radius:f,withShadow:h,children:d,attributes:p,...g}=ye("ColorSwatch",TE,n),b=Ze({name:"ColorSwatch",props:n,classes:xB,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:p,vars:l,varsResolver:SB});return v.jsxs(de,{...b("root",{focusable:!0}),...g,children:[v.jsx("span",{...b("alphaOverlay")}),h&&v.jsx("span",{...b("shadowOverlay")}),v.jsx("span",{...b("colorOverlay",{style:{backgroundColor:u}})}),v.jsx("span",{...b("childrenOverlay"),children:d})]})});Yf.classes=xB;Yf.varsResolver=SB;Yf.displayName="@mantine/core/ColorSwatch";function ga(e,n=0,t=10**n){return Math.round(t*e)/t}function jne({h:e,s:n,l:t,a:i}){const r=n*((t<50?t:100-t)/100);return{h:e,s:r>0?2*r/(t+r)*100:0,v:t+r,a:i}}const Ane={grad:360/400,turn:360,rad:360/(Math.PI*2)};function One(e,n="deg"){return Number(e)*(Ane[n]||1)}const Tne=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function EE(e){const n=Tne.exec(e);return n?jne({h:One(n[1],n[2]),s:Number(n[3]),l:Number(n[4]),a:n[5]===void 0?1:Number(n[5])/(n[6]?100:1)}):{h:0,s:0,v:0,a:1}}function FS({r:e,g:n,b:t,a:i}){const r=Math.max(e,n,t),a=r-Math.min(e,n,t),o=a?r===e?(n-t)/a:r===n?2+(t-e)/a:4+(e-n)/a:0;return{h:ga(60*(o<0?o+6:o),3),s:ga(r?a/r*100:0,3),v:ga(r/255*100,3),a:i}}function qS(e){const n=e[0]==="#"?e.slice(1):e;return n.length===3?FS({r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:1}):FS({r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:1})}function Ene(e){const n=e[0]==="#"?e.slice(1):e,t=a=>ga(parseInt(a,16)/255,3);if(n.length===4){const a=n.slice(0,3),o=t(n[3]+n[3]);return{...qS(a),a:o}}const i=n.slice(0,6),r=t(n.slice(6,8));return{...qS(i),a:r}}const Mne=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function ME(e){const n=Mne.exec(e);return n?FS({r:Number(n[1])/(n[2]?100/255:1),g:Number(n[3])/(n[4]?100/255:1),b:Number(n[5])/(n[6]?100/255:1),a:n[7]===void 0?1:Number(n[7])/(n[8]?100:1)}):{h:0,s:0,v:0,a:1}}const CB={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},Dne={hex:qS,hexa:Ene,rgb:ME,rgba:ME,hsl:EE,hsla:EE};function Rne(e){for(const[,n]of Object.entries(CB))if(n.test(e))return!0;return!1}function ig(e){if(typeof e!="string")return{h:0,s:0,v:0,a:1};if(e==="transparent")return{h:0,s:0,v:0,a:0};const n=e.trim();for(const[t,i]of Object.entries(CB))if(i.test(n))return Dne[t](n);return{h:0,s:0,v:0,a:1}}const Xy=S.createContext(null);function qC({position:e,...n}){return v.jsx(de,{__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...n})}qC.displayName="@mantine/core/ColorPickerThumb";var Zy={wrapper:"m_fee9c77",preview:"m_9dddfbac",body:"m_bffecc3e",sliders:"m_3283bb96",thumb:"m_40d572ba",swatch:"m_d8ee6fd8",swatches:"m_5711e686",saturation:"m_202a296e",saturationOverlay:"m_11b3db02",slider:"m_d856d47d",sliderOverlay:"m_8f327113"};const Kf=Pe(e=>{var H;const n=ye("ColorSlider",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,onChange:u,onChangeEnd:f,maxValue:h,round:d,size:p="md",focusable:g=!0,value:b,overlays:w,thumbColor:k="transparent",onScrubStart:_,onScrubEnd:x,__staticSelector:C="ColorPicker",attributes:T,ref:A,...O}=n,M=Ze({name:C,classes:Zy,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:T,rootSelector:"slider"}),$=((H=S.use(Xy))==null?void 0:H.getStyles)||M,q=ci(),[R,I]=S.useState({y:0,x:b/h}),z=S.useRef(R),W=Y=>d?Math.round(Y*h):Y*h,{ref:U}=Wz(({x:Y,y:P})=>{z.current={x:Y,y:P},u==null||u(W(Y))},{onScrubEnd:()=>{const{x:Y}=z.current;f==null||f(W(Y)),x==null||x()},onScrubStart:_});os(()=>{I({y:0,x:b/h})},[b]);const N=(Y,P)=>{Y.preventDefault();const G=Vz(P);u==null||u(W(G.x)),f==null||f(W(G.x))},D=Y=>{switch(Y.key){case"ArrowRight":N(Y,{x:R.x+.05,y:R.y});break;case"ArrowLeft":N(Y,{x:R.x-.05,y:R.y});break}},L=w.map((Y,P)=>S.createElement("div",{...$("sliderOverlay"),style:Y,key:P}));return v.jsxs(de,{...O,ref:Vt(U,A),...$("slider"),size:p,role:"slider","aria-valuenow":b,"aria-valuemax":h,"aria-valuemin":0,tabIndex:g?0:-1,onKeyDown:D,"data-focus-ring":q.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${p})`},children:[L,v.jsx(qC,{position:R,...$("thumb",{style:{top:ve(1),background:k}})})]})});Kf.displayName="@mantine/core/ColorSlider";Kf.classes=Zy;const Pne={__staticSelector:"AlphaSlider"},HC=Pe(e=>{const{value:n,onChange:t,onChangeEnd:i,color:r,...a}=ye("AlphaSlider",Pne,e);return v.jsx(Kf,{...a,value:n,onChange:o=>t==null?void 0:t(ga(o,2)),onChangeEnd:o=>i==null?void 0:i(ga(o,2)),maxValue:1,round:!1,"data-alpha":!0,overlays:[{backgroundImage:"linear-gradient(45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--slider-checkers) 75%)",backgroundSize:`${ve(8)} ${ve(8)}`,backgroundPosition:`0 0, 0 ${ve(4)}, ${ve(4)} ${ve(-4)}, ${ve(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${r})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${ve(1)} inset, rgb(0, 0, 0, .15) 0 0 ${ve(4)} inset`}]})});HC.displayName="@mantine/core/AlphaSlider";HC.classes=Kf.classes;function jB({h:e,s:n,v:t,a:i}){const r=e/360*6,a=n/100,o=t/100,l=Math.floor(r),u=o*(1-a),f=o*(1-(r-l)*a),h=o*(1-(1-r+l)*a),d=l%6;return{r:ga([o,f,u,u,h,o][d]*255),g:ga([h,o,o,f,u,u][d]*255),b:ga([u,u,h,o,o,f][d]*255),a:ga(i,2)}}function DE(e,n){const{r:t,g:i,b:r,a}=jB(e);return n?`rgba(${t}, ${i}, ${r}, ${ga(a,2)})`:`rgb(${t}, ${i}, ${r})`}function RE({h:e,s:n,v:t,a:i},r){const a=(200-n)*t/100,o={h:Math.round(e),s:Math.round(a>0&&a<200?n*t/100/(a<=100?a:200-a)*100:0),l:Math.round(a/2)};return r?`hsla(${o.h}, ${o.s}%, ${o.l}%, ${ga(i,2)})`:`hsl(${o.h}, ${o.s}%, ${o.l}%)`}function $g(e){const n=e.toString(16);return n.length<2?`0${n}`:n}function AB(e){const{r:n,g:t,b:i}=jB(e);return`#${$g(n)}${$g(t)}${$g(i)}`}function Nne(e){const n=Math.round(e.a*255);return`${AB(e)}${$g(n)}`}const Lk={hex:AB,hexa:e=>Nne(e),rgb:e=>DE(e,!1),rgba:e=>DE(e,!0),hsl:e=>RE(e,!1),hsla:e=>RE(e,!0)};function Js(e,n){return n?e in Lk?Lk[e](n):Lk.hex(n):"#000000"}const $ne={__staticSelector:"HueSlider"},UC=Pe(e=>{const{value:n,onChange:t,onChangeEnd:i,color:r,...a}=ye("HueSlider",$ne,e);return v.jsx(Kf,{...a,value:n,onChange:t,onChangeEnd:i,maxValue:360,thumbColor:`hsl(${n}, 100%, 50%)`,round:!0,"data-hue":!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${ve(1)} inset, rgb(0, 0, 0, .15) 0 0 ${ve(4)} inset`}]})});UC.displayName="@mantine/core/HueSlider";UC.classes=Kf.classes;function OB({className:e,onChange:n,onChangeEnd:t,value:i,saturationLabel:r,focusable:a=!0,size:o,color:l,onScrubStart:u,onScrubEnd:f,...h}){const{getStyles:d}=S.use(Xy),[p,g]=S.useState({x:i.s/100,y:1-i.v/100}),b=S.useRef(p),{ref:w}=Wz(({x,y:C})=>{b.current={x,y:C},n({s:Math.round(x*100),v:Math.round((1-C)*100)})},{onScrubEnd:()=>{const{x,y:C}=b.current;t({s:Math.round(x*100),v:Math.round((1-C)*100)}),f==null||f()},onScrubStart:u});S.useEffect(()=>{g({x:i.s/100,y:1-i.v/100})},[i.s,i.v]);const k=(x,C)=>{x.preventDefault();const T=Vz(C);n({s:Math.round(T.x*100),v:Math.round((1-T.y)*100)}),t({s:Math.round(T.x*100),v:Math.round((1-T.y)*100)})},_=x=>{switch(x.key){case"ArrowUp":k(x,{y:p.y-.05,x:p.x});break;case"ArrowDown":k(x,{y:p.y+.05,x:p.x});break;case"ArrowRight":k(x,{x:p.x+.05,y:p.y});break;case"ArrowLeft":k(x,{x:p.x-.05,y:p.y});break}};return v.jsxs(de,{...d("saturation"),ref:w,...h,role:"slider","aria-label":r,"aria-valuenow":p.x,"aria-valuetext":Js("rgba",i),tabIndex:a?0:-1,onKeyDown:_,children:[v.jsx("div",{...d("saturationOverlay",{style:{backgroundColor:`hsl(${i.h}, 100%, 50%)`}})}),v.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}})}),v.jsx("div",{...d("saturationOverlay",{style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}})}),v.jsx(qC,{position:p,...d("thumb",{style:{backgroundColor:l}})})]})}OB.displayName="@mantine/core/Saturation";function TB({className:e,datatype:n,setValue:t,onChangeEnd:i,size:r,focusable:a,data:o,swatchesPerRow:l,value:u,...f}){const h=S.use(Xy),d=o.map((p,g)=>S.createElement(Yf,{...h.getStyles("swatch"),unstyled:h.unstyled,component:"button",type:"button",color:p,key:g,radius:"sm",onClick:()=>{t(p),i==null||i(p)},"aria-label":p,tabIndex:a?0:-1,"data-swatch":!0},u===p&&v.jsx(BC,{size:"35%",color:Xz(p)<.5?"white":"black"})));return v.jsx(de,{...h.getStyles("swatches"),...f,children:d})}TB.displayName="@mantine/core/Swatches";const zne={swatchesPerRow:7,withPicker:!0,focusable:!0,size:"md",__staticSelector:"ColorPicker"},EB=(e,{size:n,swatchesPerRow:t})=>({wrapper:{"--cp-preview-size":In(n,"cp-preview-size"),"--cp-width":In(n,"cp-width"),"--cp-body-spacing":Kt(n),"--cp-swatch-size":`${100/t}%`,"--cp-thumb-size":In(n,"cp-thumb-size"),"--cp-saturation-height":In(n,"cp-saturation-height")}}),Qy=Pe(e=>{const n=ye("ColorPicker",zne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,format:u="hex",value:f,defaultValue:h,onChange:d,onChangeEnd:p,withPicker:g,size:b,saturationLabel:w,hueLabel:k,alphaLabel:_,focusable:x,swatches:C,swatchesPerRow:T,fullWidth:A,onColorSwatchClick:O,__staticSelector:M,mod:$,attributes:q,name:R,hiddenInputProps:I,...z}=n,W=Ze({name:M,props:n,classes:Zy,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:q,rootSelector:"wrapper",vars:l,varsResolver:EB}),U=S.useRef(u||"hex"),N=S.useRef(""),D=S.useRef(-1),L=S.useRef(!1),H=u==="hexa"||u==="rgba"||u==="hsla",[Y,P,G]=Ai({value:f,defaultValue:h,finalValue:"#FFFFFF",onChange:d}),[V,B]=S.useState(ig(Y)),Q=()=>{window.clearTimeout(D.current),L.current=!0},ie=()=>{window.clearTimeout(D.current),D.current=window.setTimeout(()=>{L.current=!1},200)},re=Z=>{B(le=>{const ee={...le,...Z};return N.current=Js(U.current,ee),ee}),P(N.current)};return os(()=>{typeof f=="string"&&Rne(f)&&!L.current&&B(ig(f))},[f]),os(()=>{U.current=u||"hex",P(Js(U.current,V))},[u]),v.jsx(Xy,{value:{getStyles:W,unstyled:o},children:v.jsxs(de,{...W("wrapper"),size:b,mod:[{"full-width":A},$],...z,children:[R&&v.jsx("input",{type:"hidden",name:R,value:Y,...I}),g&&v.jsxs(v.Fragment,{children:[v.jsx(OB,{value:V,onChange:re,onChangeEnd:({s:Z,v:le})=>p==null?void 0:p(Js(U.current,{...V,s:Z,v:le})),color:Y,size:b,focusable:x,saturationLabel:w,onScrubStart:Q,onScrubEnd:ie}),v.jsxs("div",{...W("body"),children:[v.jsxs("div",{...W("sliders"),children:[v.jsx(UC,{value:V.h,onChange:Z=>re({h:Z}),onChangeEnd:Z=>p==null?void 0:p(Js(U.current,{...V,h:Z})),size:b,focusable:x,"aria-label":k,onScrubStart:Q,onScrubEnd:ie}),H&&v.jsx(HC,{value:V.a,onChange:Z=>re({a:Z}),onChangeEnd:Z=>{p==null||p(Js(U.current,{...V,a:Z}))},size:b,color:Js("hex",V),focusable:x,"aria-label":_,onScrubStart:Q,onScrubEnd:ie})]}),H&&v.jsx(Yf,{color:Y,radius:"sm",size:"var(--cp-preview-size)",...W("preview")})]})]}),Array.isArray(C)&&v.jsx(TB,{data:C,swatchesPerRow:T,focusable:x,setValue:P,value:Y,onChangeEnd:Z=>{const le=Js(u,ig(Z));O==null||O(le),p==null||p(le),G||B(ig(Z))}})]})})});Qy.classes=Zy;Qy.varsResolver=EB;Qy.displayName="@mantine/core/ColorPicker";const Lne={timeout:1e3};function HS(e){const{children:n,timeout:t,value:i,...r}=ye("CopyButton",Lne,e),a=lX({timeout:t}),o=()=>a.copy(i);return v.jsx(v.Fragment,{children:n({copy:o,copied:a.copied,...r})})}HS.displayName="@mantine/core/CopyButton";var MB={root:"m_3eebeb36",label:"m_9e365f20"};const Ine={orientation:"horizontal"},DB=(e,{color:n,variant:t,size:i})=>({root:{"--divider-color":n?ft(n,e):void 0,"--divider-border-style":t,"--divider-size":In(i,"divider-size")}}),us=Pe(e=>{const n=ye("Divider",Ine,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,color:u,orientation:f,label:h,labelPosition:d,mod:p,attributes:g,...b}=n,w=Ze({name:"Divider",classes:MB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,vars:l,varsResolver:DB});return v.jsx(de,{mod:[{orientation:f,withLabel:!!h},p],role:"separator",...w("root"),...b,children:h&&v.jsx(de,{component:"span",mod:{position:d},...w("label"),children:h})})});us.classes=MB;us.varsResolver=DB;us.displayName="@mantine/core/Divider";const VC=sp(e=>{const{onChange:n,children:t,multiple:i,accept:r,name:a,form:o,resetRef:l,disabled:u,capture:f,inputProps:h,ref:d,...p}=ye("FileButton",null,e),g=S.useRef(null),b=()=>{var _;!u&&((_=g.current)==null||_.click())},w=_=>{if(_.currentTarget.files===null)return n(i?[]:null);n(i?Array.from(_.currentTarget.files):_.currentTarget.files[0]||null)};return cm(l,()=>{g.current&&(g.current.value="")}),v.jsxs(v.Fragment,{children:[v.jsx("input",{style:{display:"none"},type:"file",accept:r,multiple:i,onChange:w,ref:Vt(d,g),name:a,form:o,capture:f,...h}),t({onClick:b,...p})]})});VC.displayName="@mantine/core/FileButton";const[PE,RB]=Or("Grid component was not found in tree"),US=(e,n)=>{if(e==="content")return"auto";if(e==="auto")return"0rem";if(e)return e===n?"100%":`calc(${100*e/n}% - ${(n-e)/n} * var(--grid-column-gap))`},NE=(e,n,t)=>t||e==="auto"?"100%":e==="content"?"unset":US(e,n),$E=(e,n)=>{if(e)return e==="auto"||n?"1":"auto"},zE=(e,n)=>{if(e===0)return"0";if(e)return`calc(${100*e/n}% + ${e/n} * var(--grid-column-gap))`};function Bne({span:e,order:n,offset:t,align:i,selector:r}){var g;const a=ci(),o=RB(),l=o.breakpoints||a.breakpoints,u=Gr(e),f=u===void 0?12:u,h=Fu({"--col-order":(g=Gr(n))==null?void 0:g.toString(),"--col-flex-grow":$E(f,o.grow),"--col-flex-basis":US(f,o.columns),"--col-width":f==="content"?"auto":void 0,"--col-max-width":NE(f,o.columns,o.grow),"--col-offset":zE(Gr(t),o.columns),"--col-align-self":Gr(i)}),d=zt(l).reduce((b,w)=>{var k;return b[w]||(b[w]={}),typeof n=="object"&&n[w]!==void 0&&(b[w]["--col-order"]=(k=n[w])==null?void 0:k.toString()),typeof e=="object"&&e[w]!==void 0&&(b[w]["--col-flex-grow"]=$E(e[w],o.grow),b[w]["--col-flex-basis"]=US(e[w],o.columns),b[w]["--col-width"]=e[w]==="content"?"auto":void 0,b[w]["--col-max-width"]=NE(e[w],o.columns,o.grow)),typeof t=="object"&&t[w]!==void 0&&(b[w]["--col-offset"]=zE(t[w],o.columns)),typeof i=="object"&&i[w]!==void 0&&(b[w]["--col-align-self"]=i[w]),b},{}),p=um(zt(d),l).filter(b=>zt(d[b.value]).length>0).map(b=>({query:o.type==="container"?`mantine-grid (min-width: ${l[b.value]})`:`(min-width: ${l[b.value]})`,styles:d[b.value]}));return v.jsx(Bf,{styles:h,media:o.type==="container"?void 0:p,container:o.type==="container"?p:void 0,selector:r})}var WC={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const Fne={span:12},GC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,span:o,order:l,offset:u,align:f,...h}=ye("GridCol",Fne,e),d=RB(),p=Cy();return v.jsxs(v.Fragment,{children:[v.jsx(Bne,{selector:`.${p}`,span:o,order:l,offset:u,align:f}),v.jsx(de,{...d.getStyles("col",{className:vn(t,p),style:i,classNames:n,styles:r}),...h})]})});GC.classes=WC;GC.displayName="@mantine/core/GridCol";function LE({gap:e,rowGap:n,columnGap:t,selector:i,breakpoints:r,type:a}){const o=ci(),l=r||o.breakpoints,u=Fu({"--grid-gap":Kt(Gr(e)),"--grid-row-gap":Kt(Gr(n)),"--grid-column-gap":Kt(Gr(t))}),f=zt(l).reduce((d,p)=>(d[p]||(d[p]={}),typeof e=="object"&&e[p]!==void 0&&(d[p]["--grid-gap"]=Kt(e[p])),typeof n=="object"&&n[p]!==void 0&&(d[p]["--grid-row-gap"]=Kt(n[p])),typeof t=="object"&&t[p]!==void 0&&(d[p]["--grid-column-gap"]=Kt(t[p])),d),{}),h=um(zt(f),l).filter(d=>zt(f[d.value]).length>0).map(d=>({query:a==="container"?`mantine-grid (min-width: ${l[d.value]})`:`(min-width: ${l[d.value]})`,styles:f[d.value]}));return v.jsx(Bf,{styles:u,media:a==="container"?void 0:h,container:a==="container"?h:void 0,selector:i})}const qne={gap:"md",columns:12},PB=(e,{justify:n,align:t,overflow:i})=>({root:{"--grid-justify":n,"--grid-align":t,"--grid-overflow":i}}),Ur=Pe(e=>{const n=ye("Grid",qne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,grow:u,gap:f,rowGap:h,columnGap:d,columns:p,align:g,justify:b,children:w,breakpoints:k,type:_,attributes:x,...C}=n,T=Ze({name:"Grid",classes:WC,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:x,vars:l,varsResolver:PB}),A=Cy();return _==="container"&&k?v.jsxs(PE,{value:{getStyles:T,grow:u,columns:p,breakpoints:k,type:_},children:[v.jsx(LE,{selector:`.${A}`,...n}),v.jsx("div",{...T("container"),children:v.jsx(de,{...T("root",{className:A}),...C,children:v.jsx("div",{...T("inner"),children:w})})})]}):v.jsxs(PE,{value:{getStyles:T,grow:u,columns:p,breakpoints:k,type:_},children:[v.jsx(LE,{selector:`.${A}`,...n}),v.jsx(de,{...T("root",{className:A}),...C,children:v.jsx("div",{...T("inner"),children:w})})]})});Ur.classes=WC;Ur.varsResolver=PB;Ur.displayName="@mantine/core/Grid";Ur.Col=GC;const[Hne,NB]=Or("HoverCard component was not found in the tree"),Jy=S.createContext({withinGroup:!1}),Une={openDelay:0,closeDelay:0};function YC(e){const{openDelay:n,closeDelay:t,children:i}=ye("HoverCardGroup",Une,e);return v.jsx(Jy,{value:{withinGroup:!0},children:v.jsx($L,{delay:{open:n,close:t},children:i})})}YC.displayName="@mantine/core/HoverCardGroup";YC.extend=e=>e;function $B(e){const{children:n,onMouseEnter:t,onMouseLeave:i,...r}=ye("HoverCardDropdown",null,e),a=NB();if(S.use(Jy).withinGroup&&a.getFloatingProps&&a.floating){const u=a.getFloatingProps();return v.jsx(Sn.Dropdown,{ref:a.floating,...u,onMouseEnter:bi(t,u.onMouseEnter),onMouseLeave:bi(i,u.onMouseLeave),...r,children:n})}const o=bi(t,a.openDropdown),l=bi(i,a.closeDropdown);return v.jsx(Sn.Dropdown,{onMouseEnter:o,onMouseLeave:l,...r,children:n})}$B.displayName="@mantine/core/HoverCardDropdown";const Vne={refProp:"ref"};function zB(e){const{children:n,refProp:t,eventPropsWrapperName:i,...r}=ye("HoverCardTarget",Vne,e),a=Cl(n);if(!a)throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const o=NB();if(S.use(Jy).withinGroup&&o.getReferenceProps&&o.reference){const u=o.getReferenceProps();return v.jsx(Sn.Target,{refProp:t,...r,children:S.cloneElement(a,i?{[i]:{...u,ref:o.reference}}:{...u,ref:o.reference})})}const l={onMouseEnter:bi(a.props.onMouseEnter,o.openDropdown),onMouseLeave:bi(a.props.onMouseLeave,o.closeDropdown)};return v.jsx(Sn.Target,{refProp:t,...r,children:S.cloneElement(a,i?{[i]:l}:l)})}zB.displayName="@mantine/core/HoverCardTarget";function Wne(e){const[n,t]=S.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:n,r=S.use(Jy).withinGroup,a=Pi(),o=S.useRef(-1),l=S.useRef(-1),u=S.useCallback(()=>{window.clearTimeout(o.current),window.clearTimeout(l.current)},[]),f=S.useCallback(x=>{var C,T;t(x),x?(g(a),(C=e.onOpen)==null||C.call(e)):(T=e.onClose)==null||T.call(e)},[a,e.onOpen,e.onClose]),{context:h,refs:d}=Ry({open:i,onOpenChange:f}),{delay:p,setCurrentId:g}=zL(h,{id:a}),{getReferenceProps:b,getFloatingProps:w}=IL([PL(h,{enabled:!0,delay:r?p:{open:e.openDelay,close:e.closeDelay}}),BL(h,{role:"dialog"}),LL(h,{enabled:r})]),k=S.useCallback(()=>{r||(u(),e.openDelay===0||e.openDelay===void 0?f(!0):o.current=window.setTimeout(()=>f(!0),e.openDelay))},[r,u,e.openDelay,f]),_=S.useCallback(()=>{r||(u(),e.closeDelay===0||e.closeDelay===void 0?f(!1):l.current=window.setTimeout(()=>f(!1),e.closeDelay))},[r,u,e.closeDelay,f]);return S.useEffect(()=>()=>u(),[u]),{opened:i,reference:d.setReference,floating:d.setFloating,getReferenceProps:b,getFloatingProps:w,openDropdown:k,closeDropdown:_}}const Gne={openDelay:0,closeDelay:150,initiallyOpened:!1};function vl(e){const{children:n,onOpen:t,onClose:i,openDelay:r,closeDelay:a,initiallyOpened:o,...l}=ye("HoverCard",Gne,e),u=Wne({openDelay:r,closeDelay:a,defaultOpened:o,onOpen:t,onClose:i});return v.jsx(Hne,{value:{openDropdown:u.openDropdown,closeDropdown:u.closeDropdown,getReferenceProps:u.getReferenceProps,getFloatingProps:u.getFloatingProps,reference:u.reference,floating:u.floating},children:v.jsx(Sn,{...l,opened:u.opened,__staticSelector:"HoverCard",children:n})})}vl.displayName="@mantine/core/HoverCard";vl.Target=zB;vl.Dropdown=$B;vl.Group=YC;vl.extend=e=>e;var LB={root:"m_9e117634"};const IB=(e,{radius:n,fit:t})=>({root:{"--image-radius":n===void 0?void 0:Ut(n),"--image-object-fit":t}}),Xf=ki(e=>{const n=ye("Image",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,onError:u,src:f,radius:h,fit:d,fallbackSrc:p,mod:g,attributes:b,...w}=n,[k,_]=S.useState(!f);S.useEffect(()=>_(!f),[f]);const x=Ze({name:"Image",classes:LB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:l,varsResolver:IB});return k&&p?v.jsx(de,{component:"img",src:p,...x("root"),onError:u,mod:["fallback",g],...w}):v.jsx(de,{component:"img",...x("root"),src:f,onError:C=>{u==null||u(C),_(!0)},mod:g,...w})});Xf.classes=LB;Xf.varsResolver=IB;Xf.displayName="@mantine/core/Image";function Yne(e="top-end",n=0){const t={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},i=typeof n=="number"?n:n.x,r=typeof n=="number"?n:n.y,a=ve(i),o=ve(r),[l,u]=e.split("-");return l==="top"&&(t["--indicator-top"]=o,t["--indicator-translate-y"]="-50%"),l==="middle"&&(t["--indicator-top"]="50%",t["--indicator-translate-y"]="-50%"),l==="bottom"&&(t["--indicator-bottom"]=o,t["--indicator-translate-y"]="50%"),u==="start"&&(t["--indicator-left"]=a,t["--indicator-translate-x"]="-50%"),u==="center"&&(t["--indicator-left"]="50%",t["--indicator-translate-x"]="-50%"),u==="end"&&(t["--indicator-right"]=a,t["--indicator-translate-x"]="50%"),t}var BB={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const Kne={position:"top-end",offset:0,showZero:!0},FB=(e,{color:n,position:t,offset:i,size:r,radius:a,zIndex:o,autoContrast:l})=>({root:{"--indicator-color":n?ft(n,e):void 0,"--indicator-text-color":ap(l,e)?If({color:n,theme:e,autoContrast:l}):void 0,"--indicator-size":ve(r),"--indicator-radius":a===void 0?void 0:Ut(a),"--indicator-z-index":o==null?void 0:o.toString(),...Yne(t,i)}}),e0=Pe(e=>{const n=ye("Indicator",Kne,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,position:f,offset:h,inline:d,label:p,radius:g,color:b,withBorder:w,disabled:k,processing:_,zIndex:x,autoContrast:C,maxValue:T,showZero:A,mod:O,attributes:M,...$}=n,q=Ze({name:"Indicator",classes:BB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:M,vars:l,varsResolver:FB}),R=!A&&(p===0||p==="0"),I=T!==void 0&&typeof p=="number"&&p>T?`${T}+`:p;return v.jsxs(de,{...q("root"),mod:[{inline:d},O],...$,children:[!k&&!R&&v.jsx(de,{mod:{"with-label":!!p,"with-border":w,processing:_},...q("indicator"),children:I}),u]})});e0.classes=BB;e0.varsResolver=FB;e0.displayName="@mantine/core/Indicator";const Xne=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],IE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"};function BE(e){Object.keys(IE).forEach(n=>{e.style.setProperty(n,IE[n],"important")})}function Zne(e){const n=window.getComputedStyle(e);if(n===null)return null;const t={};for(const i of Xne)t[i]=n[i];return t.boxSizing===""?null:{sizingStyle:t,paddingSize:parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),borderSize:parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth)}}let Mi=null;function Qne(e,n,t=1,i=1/0){Mi||(Mi=document.createElement("textarea"),Mi.setAttribute("tabindex","-1"),Mi.setAttribute("aria-hidden","true"),Mi.setAttribute("aria-label","autosize measurement"),BE(Mi)),Mi.parentNode===null&&document.body.appendChild(Mi);const{paddingSize:r,borderSize:a,sizingStyle:o}=e,{boxSizing:l}=o;Object.keys(o).forEach(p=>{Mi.style[p]=o[p]}),BE(Mi),Mi.value=n;let u=l==="border-box"?Mi.scrollHeight+a:Mi.scrollHeight-r;Mi.value=n,u=l==="border-box"?Mi.scrollHeight+a:Mi.scrollHeight-r,Mi.value="x";const f=Mi.scrollHeight-r;let h=f*t;l==="border-box"&&(h=h+r+a),u=Math.max(h,u);let d=f*i;return l==="border-box"&&(d=d+r+a),u=Math.min(d,u),[u,f]}function Jne({maxRows:e,minRows:n,onChange:t,ref:i,...r}){const a=r.value!==void 0,o=S.useRef(null),l=Vt(o,i),u=S.useRef(0),f=()=>{const d=o.current;if(!d)return;const p=Zne(d);if(!p)return;const[g]=Qne(p,d.value||d.placeholder||"x",n,e);u.current!==g&&(u.current=g,d.style.setProperty("height",`${g}px`,"important"))},h=d=>{a||f(),t==null||t(d)};return S.useLayoutEffect(f),S.useEffect(()=>{const d=()=>f();return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),S.useEffect(()=>{const d=()=>f();return document.fonts.addEventListener("loadingdone",d),()=>document.fonts.removeEventListener("loadingdone",d)},[]),S.useEffect(()=>{const d=p=>{var g;if(((g=o.current)==null?void 0:g.form)===p.target&&!a){const b=o.current.value;requestAnimationFrame(()=>{o.current&&b!==o.current.value&&f()})}};return document.body.addEventListener("reset",d),()=>document.body.removeEventListener("reset",d)},[a]),v.jsx("textarea",{...r,onChange:h,ref:l})}const ete={size:"sm"},_l=Pe(e=>{const{autosize:n,maxRows:t,minRows:i,__staticSelector:r,resize:a,...o}=ye("Textarea",ete,e),l=n&&CX()!=="test",u=l?{maxRows:t,minRows:i}:{};return v.jsx(Ni,{component:l?Jne:"textarea",...o,__staticSelector:r||"Textarea",multiline:!0,"data-no-overflow":n&&t===void 0||void 0,__vars:{"--input-resize":a},...u})});_l.classes=Ni.classes;_l.displayName="@mantine/core/Textarea";function FE(e,n){if(typeof e=="string"&&e.trim().length===0)return!0;try{return n(e),!0}catch{return!1}}const nte={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm",indentSpaces:2},KC=Pe(e=>{const{value:n,defaultValue:t,onChange:i,formatOnBlur:r,validationError:a,serialize:o,deserialize:l,onFocus:u,onBlur:f,readOnly:h,error:d,indentSpaces:p,...g}=ye("JsonInput",nte,e),[b,w]=Ai({value:n,defaultValue:t,finalValue:"",onChange:i}),[k,_]=S.useState(FE(b,l)),x=T=>{u==null||u(T),_(!0)},C=T=>{f==null||f(T);const A=FE(T.currentTarget.value,l);r&&!h&&A&&T.currentTarget.value.trim()!==""&&w(o(l(T.currentTarget.value),null,p)),_(A)};return v.jsx(_l,{value:b,onChange:T=>w(T.currentTarget.value),onFocus:x,onBlur:C,readOnly:h,...g,autoComplete:"off",__staticSelector:"JsonInput",error:k?d:a||!0,"data-monospace":!0})});KC.classes=Ni.classes;KC.displayName="@mantine/core/JsonInput";const[tte,Ol]=Or("Menu component was not found in the tree");var Tl={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const XC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("MenuDivider",null,e);return v.jsx(de,{...Ol().getStyles("divider",{className:t,style:i,styles:r,classNames:n}),...o})});XC.classes=Tl;XC.displayName="@mantine/core/MenuDivider";const ZC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,onMouseEnter:o,onMouseLeave:l,onKeyDown:u,children:f,ref:h,...d}=ye("MenuDropdown",null,e),p=S.useRef(null),g=Ol(),b=bi(u,_=>{var x,C;(_.key==="ArrowUp"||_.key==="ArrowDown")&&(_.preventDefault(),(C=(x=p.current)==null?void 0:x.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||C.focus())}),w=bi(o,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),k=bi(l,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return v.jsxs(Sn.Dropdown,{...d,onMouseEnter:w,onMouseLeave:k,role:"menu","aria-orientation":"vertical",ref:Vt(h,p),...g.getStyles("dropdown",{className:t,style:i,styles:r,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[g.withInitialFocusPlaceholder&&v.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),f]})});ZC.classes=Tl;ZC.displayName="@mantine/core/MenuDropdown";const mm=S.createContext(null),QC=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,color:o,closeMenuOnClick:l,leftSection:u,rightSection:f,children:h,disabled:d,"data-disabled":p,ref:g,...b}=ye("MenuItem",null,e),w=Ol(),k=S.use(mm),_=ci(),{dir:x}=Hu(),C=S.useRef(null),T=b,A=bi(T.onClick,()=>{p||(typeof l=="boolean"?l&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),O=o?_.variantColorResolver({color:o,theme:_,variant:"light"}):void 0,M=o?vs({color:o,theme:_}):null,$=bi(T.onKeyDown,q=>{q.key==="ArrowLeft"&&k&&(k.close(),k.focusParentItem())});return v.jsxs(Mt,{onMouseDown:q=>q.preventDefault(),...b,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:t,style:i,styles:r,classNames:n}),ref:Vt(C,g),role:"menuitem",disabled:d,"data-menu-item":!0,"data-disabled":d||p||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:Z6({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:x,orientation:"vertical",onKeyDown:$}),__vars:{"--menu-item-color":M!=null&&M.isThemeColor&&(M==null?void 0:M.shade)===void 0?`var(--mantine-color-${M.color}-6)`:O==null?void 0:O.color,"--menu-item-hover":O==null?void 0:O.hover},children:[u&&v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"left",children:u}),h&&v.jsx("div",{...w.getStyles("itemLabel",{styles:r,classNames:n}),children:h}),f&&v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"right",children:f})]})});QC.classes=Tl;QC.displayName="@mantine/core/MenuItem";const JC=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("MenuLabel",null,e);return v.jsx(de,{...Ol().getStyles("label",{className:t,style:i,styles:r,classNames:n}),...o})});JC.classes=Tl;JC.displayName="@mantine/core/MenuLabel";const e9=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,onMouseEnter:o,onMouseLeave:l,onKeyDown:u,children:f,ref:h,...d}=ye("MenuSubDropdown",null,e),p=S.useRef(null),g=Ol(),b=S.use(mm),w=bi(o,b==null?void 0:b.open),k=bi(l,b==null?void 0:b.close);return v.jsx(Sn.Dropdown,{...d,onMouseEnter:w,onMouseLeave:k,role:"menu","aria-orientation":"vertical",ref:Vt(h,p),...g.getStyles("dropdown",{className:t,style:i,styles:r,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:f})});e9.classes=Tl;e9.displayName="@mantine/core/MenuSubDropdown";const n9=ki(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,color:o,leftSection:l,rightSection:u,children:f,disabled:h,"data-disabled":d,closeMenuOnClick:p,ref:g,...b}=ye("MenuSubItem",null,e),w=Ol(),k=S.use(mm),_=ci(),{dir:x}=Hu(),C=S.useRef(null),T=b,A=o?_.variantColorResolver({color:o,theme:_,variant:"light"}):void 0,O=o?vs({color:o,theme:_}):null,M=bi(T.onKeyDown,I=>{I.key==="ArrowRight"&&(k==null||k.open(),k==null||k.focusFirstItem()),I.key==="ArrowLeft"&&(k!=null&&k.parentContext)&&(k.parentContext.close(),k.parentContext.focusParentItem())}),$=bi(T.onClick,()=>{!d&&p&&w.closeDropdownImmediately()}),q=bi(T.onMouseEnter,k==null?void 0:k.open),R=bi(T.onMouseLeave,k==null?void 0:k.close);return v.jsxs(Mt,{onMouseDown:I=>I.preventDefault(),...b,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:t,style:i,styles:r,classNames:n}),ref:Vt(C,g),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||d||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:q,onMouseLeave:R,onClick:$,onKeyDown:Z6({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:x,orientation:"vertical",onKeyDown:M}),__vars:{"--menu-item-color":O!=null&&O.isThemeColor&&(O==null?void 0:O.shade)===void 0?`var(--mantine-color-${O.color}-6)`:A==null?void 0:A.color,"--menu-item-hover":A==null?void 0:A.hover},children:[l&&v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"left",children:l}),f&&v.jsx("div",{...w.getStyles("itemLabel",{styles:r,classNames:n}),children:f}),v.jsx("div",{...w.getStyles("itemSection",{styles:r,classNames:n}),"data-position":"right",children:u||v.jsx(e1,{...w.getStyles("chevron"),size:14})})]})});n9.classes=Tl;n9.displayName="@mantine/core/MenuSubItem";function qB({children:e,refProp:n}){if(!X6(e))throw new 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 Ol(),v.jsx(Sn.Target,{refProp:n,popupType:"menu",children:e})}qB.displayName="@mantine/core/MenuSubTarget";const ite={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Zf(e){const{children:n,closeDelay:t,openDelay:i,...r}=ye("MenuSub",ite,e),a=Pi(),[o,{open:l,close:u}]=Gz(!1),f=S.use(mm),{openDropdown:h,closeDropdown:d}=YL({open:l,close:u,closeDelay:t,openDelay:i}),p=()=>window.setTimeout(()=>{var b,w;(w=(b=document.getElementById(`${a}-dropdown`))==null?void 0:b.querySelectorAll("[data-menu-item]:not([data-disabled])")[0])==null||w.focus()},16),g=()=>window.setTimeout(()=>{var b;(b=document.getElementById(`${a}-target`))==null||b.focus()},16);return v.jsx(mm,{value:{opened:o,close:d,open:h,focusFirstItem:p,focusParentItem:g,parentContext:f},children:v.jsx(Sn,{opened:o,withinPortal:!1,withArrow:!1,id:a,...r,children:n})})}Zf.extend=e=>e;Zf.displayName="@mantine/core/MenuSub";Zf.Target=qB;Zf.Dropdown=e9;Zf.Item=n9;const rte={refProp:"ref"};function HB(e){const{children:n,refProp:t,...i}=ye("MenuTarget",rte,e),r=Cl(n);if(!r)throw new 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");const a=Ol(),o=r.props,l=bi(o.onClick,()=>{a.trigger==="click"?a.toggleDropdown():a.trigger==="click-hover"&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),u=bi(o.onMouseEnter,()=>(a.trigger==="hover"||a.trigger==="click-hover")&&a.openDropdown()),f=bi(o.onMouseLeave,()=>{(a.trigger==="hover"||a.trigger==="click-hover"&&!a.openedViaClick)&&a.closeDropdown()});return v.jsx(Sn.Target,{refProp:t,popupType:"menu",...i,children:S.cloneElement(r,{onClick:l,onMouseEnter:u,onMouseLeave:f,"data-expanded":a.opened?!0:void 0})})}HB.displayName="@mantine/core/MenuTarget";const ate={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1},Ln=Pe(e=>{const n=ye("Menu",ate,e),{children:t,onOpen:i,onClose:r,opened:a,defaultOpened:o,trapFocus:l,onChange:u,closeOnItemClick:f,loop:h,closeOnEscape:d,trigger:p,openDelay:g,closeDelay:b,classNames:w,styles:k,unstyled:_,variant:x,vars:C,menuItemTabIndex:T,keepMounted:A,withInitialFocusPlaceholder:O,attributes:M,...$}=n,q=Ze({name:"Menu",classes:Tl,props:n,classNames:w,styles:k,unstyled:_,attributes:M}),[R,I]=Ai({value:a,defaultValue:o,finalValue:!1,onChange:u}),[z,W]=S.useState(!1),U=()=>{I(!1),W(!1),R&&(r==null||r())},N=()=>{I(!0),!R&&(i==null||i())},D=()=>{R?U():N()},{openDropdown:L,closeDropdown:H}=YL({open:N,close:U,closeDelay:b,openDelay:g}),Y=V=>aX("[data-menu-item]","[data-menu-dropdown]",V),{resolvedClassNames:P,resolvedStyles:G}=Wi({classNames:w,styles:k,props:n});return v.jsx(tte,{value:{getStyles:q,opened:R,toggleDropdown:D,getItemIndex:Y,openedViaClick:z,setOpenedViaClick:W,closeOnItemClick:f,closeDropdown:p==="click"?U:H,openDropdown:p==="click"?N:L,closeDropdownImmediately:U,loop:h,trigger:p,unstyled:_,menuItemTabIndex:T,withInitialFocusPlaceholder:O},children:v.jsx(Sn,{returnFocus:!0,...$,opened:R,onChange:D,defaultOpened:o,trapFocus:A?!1:l,closeOnEscape:d,__staticSelector:"Menu",classNames:P,styles:G,unstyled:_,variant:x,keepMounted:A,children:t})})});Ln.displayName="@mantine/core/Menu";Ln.classes=Tl;Ln.Item=QC;Ln.Label=JC;Ln.Dropdown=ZC;Ln.Target=HB;Ln.Divider=XC;Ln.Sub=Zf;const[ote,Qf]=Or("Modal component was not found in tree");var ys={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const n0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalBody",null,e);return v.jsx(SI,{...Qf().getStyles("body",{classNames:n,style:i,styles:r,className:t}),...o})});n0.classes=ys;n0.displayName="@mantine/core/ModalBody";const t0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalCloseButton",null,e);return v.jsx(CI,{...Qf().getStyles("close",{classNames:n,style:i,styles:r,className:t}),...o})});t0.classes=ys;t0.displayName="@mantine/core/ModalCloseButton";const i0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,children:o,__hidden:l,...u}=ye("ModalContent",null,e),f=Qf(),h=f.scrollAreaComponent||Mee;return v.jsx(jI,{...f.getStyles("content",{className:t,style:i,styles:r,classNames:n}),innerProps:f.getStyles("inner",{className:t,style:i,styles:r,classNames:n}),"data-full-screen":f.fullScreen||void 0,"data-modal-content":!0,"data-hidden":l||void 0,...u,children:v.jsx(h,{style:{maxHeight:f.fullScreen?"100dvh":`calc(100dvh - (${ve(f.yOffset)} * 2))`},children:o})})});i0.classes=ys;i0.displayName="@mantine/core/ModalContent";const r0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalHeader",null,e);return v.jsx(AI,{...Qf().getStyles("header",{classNames:n,style:i,styles:r,className:t}),...o})});r0.classes=ys;r0.displayName="@mantine/core/ModalHeader";const a0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalOverlay",null,e);return v.jsx(OI,{...Qf().getStyles("overlay",{classNames:n,style:i,styles:r,className:t}),...o})});a0.classes=ys;a0.displayName="@mantine/core/ModalOverlay";const ste={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:xa("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},UB=(e,{radius:n,size:t,yOffset:i,xOffset:r})=>({root:{"--modal-radius":n===void 0?void 0:Ut(n),"--modal-size":In(t,"modal-size"),"--modal-y-offset":ve(i),"--modal-x-offset":ve(r)}}),gp=Pe(e=>{const n=ye("ModalRoot",ste,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,yOffset:u,scrollAreaComponent:f,radius:h,fullScreen:d,centered:p,xOffset:g,__staticSelector:b,attributes:w,...k}=n,_=Ze({name:b,classes:ys,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l,varsResolver:UB});return v.jsx(ote,{value:{yOffset:u,scrollAreaComponent:f,getStyles:_,fullScreen:d},children:v.jsx(xI,{..._("root"),"data-full-screen":d||void 0,"data-centered":p||void 0,"data-offset-scrollbars":f===cr.Autosize||void 0,unstyled:o,...k})})});gp.classes=ys;gp.varsResolver=UB;gp.displayName="@mantine/core/ModalRoot";const VB=S.createContext(null);function WB({children:e}){const[n,t]=S.useState([]),[i,r]=S.useState(xa("modal"));return v.jsx(VB,{value:{stack:n,addModal:(a,o)=>{t(l=>[...new Set([...l,a])]),r(l=>typeof o=="number"&&typeof l=="number"?Math.max(l,o):l)},removeModal:a=>t(o=>o.filter(l=>l!==a)),getZIndex:a=>`calc(${i} + ${n.indexOf(a)} + 1)`,currentId:n[n.length-1],maxZIndex:i},children:e})}WB.displayName="@mantine/core/ModalStack";const o0=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,...o}=ye("ModalTitle",null,e);return v.jsx(TI,{...Qf().getStyles("title",{classNames:n,style:i,styles:r,className:t}),...o})});o0.classes=ys;o0.displayName="@mantine/core/ModalTitle";const lte={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:xa("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Gi=Pe(e=>{const{title:n,withOverlay:t,overlayProps:i,withCloseButton:r,closeButtonProps:a,children:o,radius:l,opened:u,stackId:f,zIndex:h,...d}=ye("Modal",lte,e),p=S.use(VB),g=!!n||r,b=p&&f?{closeOnEscape:p.currentId===f,trapFocus:p.currentId===f,zIndex:p.getZIndex(f)}:{},w=t===!1?!1:f&&p?p.currentId===f:u;return S.useEffect(()=>{p&&f&&(u?p.addModal(f,h||xa("modal")):p.removeModal(f))},[u,f,h]),v.jsxs(gp,{radius:l,opened:u,zIndex:p&&f?p.getZIndex(f):h,...d,...b,children:[t&&v.jsx(a0,{visible:w,transitionProps:p&&f?{duration:0}:void 0,...i}),v.jsxs(i0,{radius:l,__hidden:p&&f&&u?f!==p.currentId:!1,children:[g&&v.jsxs(r0,{children:[n&&v.jsx(o0,{children:n}),r&&v.jsx(t0,{...a})]}),v.jsx(n0,{children:o})]})]})});Gi.classes=ys;Gi.displayName="@mantine/core/Modal";Gi.Root=gp;Gi.Overlay=a0;Gi.Content=i0;Gi.Body=n0;Gi.Header=r0;Gi.Title=o0;Gi.CloseButton=t0;Gi.Stack=WB;const s0=S.createContext(null);var l0={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const GB=S.createContext(null),YB=(e,{gap:n},{size:t})=>({group:{"--pg-gap":n!==void 0?In(n):In(t,"pg-gap")}}),u0=Pe(e=>{var b;const n=ye("PillGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,disabled:f,attributes:h,...d}=n,p=((b=S.use(s0))==null?void 0:b.size)||u||void 0,g=Ze({name:"PillGroup",classes:l0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,varsResolver:YB,stylesCtx:{size:p},rootSelector:"group"});return v.jsx(GB,{value:{size:p,disabled:f},children:v.jsx(de,{size:p,...g("group"),...d})})});u0.classes=l0;u0.varsResolver=YB;u0.displayName="@mantine/core/PillGroup";const ute={variant:"default"},KB=(e,{radius:n},{size:t})=>({root:{"--pill-fz":In(t,"pill-fz"),"--pill-height":In(t,"pill-height"),"--pill-radius":n===void 0?void 0:Ut(n)}}),xl=Pe(e=>{const n=ye("Pill",ute,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,variant:u,children:f,withRemoveButton:h,onRemove:d,removeButtonProps:p,radius:g,size:b,disabled:w,mod:k,attributes:_,...x}=n,C=S.use(GB),T=S.use(s0),A=b||(C==null?void 0:C.size)||void 0,O=(T==null?void 0:T.variant)==="filled"?"contrast":u||"default",M=Ze({name:"Pill",classes:l0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:_,vars:l,varsResolver:KB,stylesCtx:{size:A}});return v.jsxs(de,{component:"span",variant:O,size:A,...M("root",{variant:O}),mod:[{"with-remove":h&&!w,disabled:w||(C==null?void 0:C.disabled)},k],...x,children:[v.jsx("span",{...M("label"),children:f}),h&&v.jsx(jl,{variant:"transparent",radius:g,tabIndex:-1,"aria-hidden":!0,unstyled:o,...p,...M("remove",{className:p==null?void 0:p.className,style:p==null?void 0:p.style}),onMouseDown:$=>{var q;$.preventDefault(),$.stopPropagation(),(q=p==null?void 0:p.onMouseDown)==null||q.call(p,$)},onClick:$=>{var q;$.stopPropagation(),d==null||d(),(q=p==null?void 0:p.onClick)==null||q.call(p,$)}})]})});xl.classes=l0;xl.varsResolver=KB;xl.displayName="@mantine/core/Pill";xl.Group=u0;var XB={field:"m_45c4369d"};const cte={type:"visible"},t9=Pe(e=>{const n=ye("PillsInputField",cte,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,type:u,disabled:f,id:h,pointer:d,mod:p,attributes:g,ref:b,...w}=n,k=S.use(s0),_=S.use(Uu),x=Ze({name:"PillsInputField",classes:XB,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,rootSelector:"field"}),C=f||(k==null?void 0:k.disabled);return v.jsx(de,{component:"input",ref:Vt(b,k==null?void 0:k.fieldRef),"data-type":u,disabled:C,mod:[{disabled:C,pointer:d},p],...x("field"),...w,id:(_==null?void 0:_.inputId)||h,"aria-invalid":k==null?void 0:k.hasError,"aria-describedby":_==null?void 0:_.describedBy,type:"text",onMouseDown:T=>!d&&T.stopPropagation()})});t9.classes=XB;t9.displayName="@mantine/core/PillsInputField";const fte={size:"sm"},Mu=Pe(e=>{const{children:n,onMouseDown:t,onClick:i,size:r,disabled:a,__staticSelector:o,error:l,variant:u,...f}=ye("PillsInput",fte,e),h=S.useRef(null);return v.jsx(s0,{value:{fieldRef:h,size:r,disabled:a,hasError:!!l,variant:u},children:v.jsx(Ni,{size:r,error:l,variant:u,component:"div","data-no-overflow":!0,onMouseDown:d=>{var p;d.preventDefault(),t==null||t(d),(p=h.current)==null||p.focus()},onClick:d=>{var p,g;d.preventDefault(),(p=d.currentTarget.closest("fieldset"))!=null&&p.disabled||((g=h.current)==null||g.focus(),i==null||i(d))},...f,multiline:!0,disabled:a,__staticSelector:o||"PillsInput",withAria:!1,children:n})})});Mu.displayName="@mantine/core/PillsInput";Mu.classes=Ni.classes;Mu.Field=t9;function Ik(e){return typeof e=="string"?e.trim().toLowerCase():e}function dte({data:e,value:n}){const t=n.map(Ik);return e.reduce((i,r)=>(Eu(r)?i.push({group:r.group,items:r.items.filter(a=>t.indexOf(Ik(a.value))===-1)}):t.indexOf(Ik(r.value))===-1&&i.push(r),i),[])}const qE={xs:41,sm:50,md:60,lg:72,xl:89},hte={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:",",clearSearchOnChange:!0,openOnFocus:!0,size:"sm"},c0=sp(e=>{const n=ye("MultiSelect",hte,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,value:f,defaultValue:h,onChange:d,onKeyDown:p,variant:g,data:b,dropdownOpened:w,defaultDropdownOpened:k,onDropdownOpen:_,onDropdownClose:x,selectFirstOptionOnChange:C,selectFirstOptionOnDropdownOpen:T,onOptionSubmit:A,comboboxProps:O,filter:M,limit:$,withScrollArea:q,maxDropdownHeight:R,searchValue:I,defaultSearchValue:z,onSearchChange:W,readOnly:U,disabled:N,onFocus:D,onBlur:L,radius:H,rightSection:Y,rightSectionWidth:P,rightSectionPointerEvents:G,rightSectionProps:V,leftSection:B,leftSectionWidth:Q,leftSectionPointerEvents:ie,leftSectionProps:re,inputContainer:Z,inputWrapperOrder:le,withAsterisk:ee,labelProps:se,descriptionProps:ke,errorProps:te,wrapperProps:$e,description:xe,label:Oe,error:ze,maxValues:we,searchable:Ce,nothingFoundMessage:Ne,withCheckIcon:he,withAlignedLabels:He,checkIconPosition:Ye,hidePickedOptions:We,withErrorStyles:Qe,name:Je,form:oe,id:be,clearable:Ke,clearSectionMode:en,clearButtonProps:Ae,hiddenInputProps:an,placeholder:pn,hiddenInputValuesDivider:Dn,required:wn,mod:ln,renderOption:tn,renderPill:zn,onRemove:De,onClear:Fe,onMaxValues:Gn,scrollAreaProps:En,chevronColor:gn,attributes:xn,clearSearchOnChange:at,openOnFocus:Dt,loading:qe,loadingPosition:Ue,...Bn}=n,ot=Pi(be),Pn=Iy(b),rn=vp(Pn),on=S.useRef({}),un=Vf({opened:w,defaultOpened:k,onDropdownOpen:()=>{_==null||_(),T&&un.selectFirstOption()},onDropdownClose:()=>{x==null||x(),un.resetSelectedOption()}}),{styleProps:Kn,rest:{type:Xn,autoComplete:It,...Rn}}=qu(Bn),[Mn,Qn]=Ai({value:f,defaultValue:h,finalValue:[],onChange:d}),[Rt,fi]=Ai({value:I,defaultValue:z,finalValue:"",onChange:W}),zi=fn=>{fi(fn),un.resetSelectedOption()},Ka=Ze({name:"MultiSelect",classes:{},props:n,classNames:t,styles:a,unstyled:o,attributes:xn}),{resolvedClassNames:Co,resolvedStyles:Ta}=Wi({props:n,styles:a,classNames:t}),hr=fn=>{p==null||p(fn),fn.key===" "&&!Ce&&(fn.preventDefault(),un.toggleDropdown()),fn.key==="Backspace"&&Rt.length===0&&Mn.length>0&&(De==null||De(Mn[Mn.length-1]),Qn(Mn.slice(0,Mn.length-1)))},jo=Mn.map((fn,Dr)=>{var Kr;const Ao=rn[`${fn}`]||on.current[`${fn}`];return zn?v.jsx(S.Fragment,{children:zn({option:Ao,value:fn,onRemove:()=>{Qn(Mn.filter(Xr=>fn!==Xr)),De==null||De(fn)},disabled:N})},`${fn}-${Dr}`):v.jsx(xl,{withRemoveButton:!U&&!((Kr=rn[`${fn}`])!=null&&Kr.disabled),onRemove:()=>{Qn(Mn.filter(Xr=>fn!==Xr)),De==null||De(fn)},unstyled:o,disabled:N,...Ka("pill"),children:(Ao==null?void 0:Ao.label)||fn},`${fn}-${Dr}`)});S.useEffect(()=>{C&&un.selectFirstOption()},[C,Rt]),S.useEffect(()=>{Mn.forEach(fn=>{`${fn}`in rn&&(on.current[`${fn}`]=rn[`${fn}`])})},[rn,Mn]);const Mr=v.jsx(On.ClearButton,{...Ae,onClear:()=>{Fe==null||Fe(),Qn([]),zi("")}}),mr=dte({data:Pn,value:Mn}),yn=Ke&&Mn.length>0&&!N&&!U,oi=yn?{paddingInlineEnd:qE[u]??qE.sm}:void 0;return v.jsxs(v.Fragment,{children:[v.jsxs(On,{store:un,classNames:Co,styles:Ta,unstyled:o,size:u,readOnly:U,__staticSelector:"MultiSelect",attributes:xn,onOptionSubmit:fn=>{A==null||A(fn),at&&zi(""),un.updateSelectedOptionIndex("selected"),Mn.includes(rn[`${fn}`].value)?(Qn(Mn.filter(Dr=>Dr!==rn[`${fn}`].value)),De==null||De(rn[`${fn}`].value)):Mn.lengthCe?un.openDropdown():un.toggleDropdown(),"data-expanded":un.dropdownOpened||void 0,id:ot,required:wn,mod:ln,attributes:xn,children:v.jsxs(xl.Group,{attributes:xn,disabled:N,unstyled:o,...Ka("pillsList",{style:oi}),children:[jo,v.jsx(On.EventsTarget,{autoComplete:It,withExpandedAttribute:!0,children:v.jsx(Mu.Field,{...Rn,id:ot,placeholder:pn,type:!Ce&&!pn?"hidden":"visible",...Ka("inputField"),unstyled:o,onFocus:fn=>{D==null||D(fn),Dt&&Ce&&un.openDropdown()},onBlur:fn=>{L==null||L(fn),un.closeDropdown(),zi("")},onKeyDown:hr,value:Rt,onChange:fn=>{zi(fn.currentTarget.value),Ce&&un.openDropdown(),C&&un.selectFirstOption()},disabled:N,readOnly:U||!Ce,pointer:!Ce})})]})})}),v.jsx(Hy,{data:We?mr:Pn,hidden:U||N,filter:M,search:Rt,limit:$,hiddenWhenEmpty:!Ne,withScrollArea:q,maxDropdownHeight:R,filterOptions:Ce,value:Mn,checkIconPosition:Ye,withCheckIcon:he,withAlignedLabels:He,nothingFoundMessage:Ne,unstyled:o,labelId:Oe?`${ot}-label`:void 0,"aria-label":Oe?void 0:Bn["aria-label"],renderOption:tn,scrollAreaProps:En})]}),v.jsx(On.HiddenInput,{name:Je,valuesDivider:Dn,value:Mn,form:oe,disabled:N,...an})]})});c0.classes={...Ni.classes,...On.classes};c0.displayName="@mantine/core/MultiSelect";var ZB={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const mte={withCloseButton:!0},QB=(e,{radius:n,color:t})=>({root:{"--notification-radius":n===void 0?void 0:Ut(n),"--notification-color":t?ft(t,e):void 0}}),f0=Pe(e=>{const n=ye("Notification",mte,e),{className:t,color:i,radius:r,loading:a,withCloseButton:o,withBorder:l,title:u,icon:f,children:h,onClose:d,closeButtonProps:p,classNames:g,style:b,styles:w,unstyled:k,vars:_,mod:x,loaderProps:C,role:T,attributes:A,...O}=n,M=Ze({name:"Notification",classes:ZB,props:n,className:t,style:b,classNames:g,styles:w,unstyled:k,attributes:A,vars:_,varsResolver:QB});return v.jsxs(de,{...M("root"),mod:[{"data-with-icon":!!f||a,"data-with-border":l},x],role:T||"alert",...O,children:[f&&!a&&v.jsx("div",{...M("icon"),children:f}),a&&v.jsx(Ht,{size:28,color:i,...M("loader"),...C}),v.jsxs("div",{...M("body"),children:[u&&v.jsx("div",{...M("title"),children:u}),v.jsx(de,{...M("description"),mod:{"data-with-title":!!u},children:h})]}),o&&v.jsx(jl,{iconSize:16,color:"gray",...p,unstyled:k,onClick:$=>{var q;(q=p==null?void 0:p.onClick)==null||q.call(p,$),d==null||d()},...M("closeButton")})]})});f0.classes=ZB;f0.varsResolver=QB;f0.displayName="@mantine/core/Notification";function JB(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r=l?r=r+UE("0",o-l):r=(r.substring(0,o)||"0")+"."+r.substring(o),t+r}function VE(e,n,t){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||t)&&n,r=i9(e),a=r.beforeDecimal,o=r.afterDecimal,l=r.hasNegation,u=parseFloat("0."+(o||"0")),f=o.length<=n?"0."+o:u.toFixed(n),h=f.split("."),d=a;a&&Number(h[0])&&(d=a.split("").reverse().reduce(function(w,k,_){return w.length>_?(Number(w[0])+Number(k)).toString()+w.substring(1,w.length):k+w},h[0]));var p=tF(h[1]||"",n,t),g=l?"-":"",b=i?".":"";return""+g+d+b+p}function gu(e,n){if(e.value=e.value,e!==null){if(e.createTextRange){var t=e.createTextRange();return t.move("character",n),t.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(n,n),!0):(e.focus(),!1)}}var rF=pte(function(e,n){for(var t=0,i=0,r=e.length,a=n.length;e[t]===n[t]&&tt&&r-i>t;)i++;return{from:{start:t,end:r-i},to:{start:t,end:a-i}}}),wte=function(e,n){var t=Math.min(e.selectionStart,n);return{from:{start:t,end:e.selectionEnd},to:{start:t,end:n}}};function kte(e,n,t){return Math.min(Math.max(e,n),t)}function Bk(e){return Math.max(e.selectionStart,e.selectionEnd)}function _te(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function xte(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Ste(e){var n=e.currentValue,t=e.formattedValue,i=e.currentValueIndex,r=e.formattedValueIndex;return n[i]===t[r]}function Cte(e,n,t,i,r,a,o){o===void 0&&(o=Ste);var l=r.findIndex(function(T){return T}),u=e.slice(0,l);!n&&!t.startsWith(u)&&(n=u,t=u+t,i=i+u.length);for(var f=t.length,h=e.length,d={},p=new Array(f),g=0;g0&&p[_]===-1;)_--;var C=_===-1||p[_]===-1?0:p[_]+1;return C>x?x:i-C=0&&!t[n];)n--;n===-1&&(n=t.indexOf(!0))}else{for(;n<=r&&!t[n];)n++;n>r&&(n=t.lastIndexOf(!0))}return n===-1&&(n=r),n}function jte(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),t=0,i=n.length;tM.length-o.length||OI||d>e.length-o.length)&&(R=d),e=e.substring(0,R),e=Ete(C?"-"+e:e,r),e=(e.match(Mte(b))||[]).join("");var z=e.indexOf(b);e=e.replace(new RegExp(nF(b),"g"),function(L,H){return H===z?".":""});var W=i9(e,r),U=W.beforeDecimal,N=W.afterDecimal,D=W.addNegation;return f.end-f.startW?!1:N>=ie.start&&Nt?t:e}function Bte(e){return e.toString().replace(".","").length}function Fte(e,n){return(typeof e=="number"?e=n)&&(t===void 0||e<=t)}const Hk={size:"sm",step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},sF=(e,{size:n})=>({controls:{"--ni-chevron-size":Ln(n,"ni-chevron-size")}});function Hte(e,n,t){const i=e.toString(),r=aF.test(i),a=i.replace(/^0+(?=\d)/,""),o=parseFloat(a);if(Number.isNaN(o))return a;if(o>Number.MAX_SAFE_INTEGER)return n!==void 0?n:a;const l=Jo(o,t,n);return r?`${l.toString().replace(/^0+(?=\d)/,"")}.`:l}function Ute(e,n){if(e===""||e==="-")return e;const t=Ih(e);return t===null?e:n.clampBehavior==="blur"?zg(t,n.min,n.max):t}const vm=sp(e=>{const n=ye("NumberInput",Hk,e),{className:t,classNames:i,styles:r,unstyled:a,vars:o,onChange:l,onValueChange:u,value:f,defaultValue:h,max:d,min:p,step:g,hideControls:b,rightSection:w,isAllowed:k,clampBehavior:_,onBlur:S,allowDecimal:j,decimalScale:T,onKeyDown:A,onKeyDownCapture:O,handlersRef:M,startValue:$,disabled:q,rightSectionPointerEvents:P,allowNegative:L,readOnly:U,size:G,rightSectionWidth:B,stepHoldInterval:R,stepHoldDelay:D,allowLeadingZeros:z,withKeyboardEvents:H,trimLeadingZeroesOnBlur:Y,allowedDecimalSeparators:N,selectAllOnFocus:W,onMinReached:V,onMaxReached:I,onFocus:Q,attributes:ie,ref:re,...Z}=n,le=L??!0,ee=z??!0,se=Ze({name:"NumberInput",classes:US,props:n,classNames:i,styles:r,unstyled:a,attributes:ie,vars:o,varsResolver:sF}),{resolvedClassNames:ke,resolvedStyles:te}=Wi({classNames:i,styles:r,props:n}),$e=x.useRef(Bk(f)||Bk(h)?"bigint":"number");Bk(f)?$e.current="bigint":typeof f=="number"&&($e.current="number");const xe=$e.current==="bigint",[Ae,ze]=Ai({value:f,defaultValue:h,finalValue:"",onChange:l}),we=D!==void 0&&R!==void 0,Ce=x.useRef(null),Ne=x.useRef(null),he=x.useRef(0),He=typeof p=="number"?p:void 0,Ye=typeof d=="number"?d:void 0,We=typeof g=="number"?g:Hk.step,Qe=typeof $=="number"?$:Hk.startValue,Je=rg(p),oe=rg(d),be=rg(g)??BigInt(1),Ke=rg($)??BigInt(0),en=qe=>!oF(qe,le)||ee&&YE.test(qe)?qe:Ih(qe)??qe,je=qe=>{const Ue=Number(qe);return Number.isSafeInteger(Ue)?Ue:void 0},an=(qe,Ue)=>{Ue.source==="event"&&ze(xe?en(qe.value):Fte(qe.floatValue,qe.value)&&!Lte.test(qe.value)&&!(ee&&YE.test(qe.value))&&!Ite.test(qe.value)&&!aF.test(qe.value)?qe.floatValue:qe.value),u==null||u(qe,Ue)},pn=qe=>{const Ue=String(qe).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Ue?Math.max(0,(Ue[1]?Ue[1].length:0)-(Ue[2]?+Ue[2]:0)):0},Dn=qe=>{Ce.current&&typeof qe<"u"&&Ce.current.setSelectionRange(qe,qe)},bn=x.useRef(jS);bn.current=()=>{if(xe){if(!qk(Ae,le))return;let on;const ln=Ae;if(typeof ln=="bigint"){const Xn=ln+be;oe!==void 0&&Xn>oe&&(I==null||I()),on=oe!==void 0&&Xn>oe?oe:Xn}else if(typeof ln=="string"&&ln!==""){const Xn=Ih(ln);if(Xn===null)return;const Lt=Xn+be;oe!==void 0&&Lt>oe&&(I==null||I()),on=oe!==void 0&&Lt>oe?oe:Lt}else on=zg(Ke,Je,oe);const Kn=on.toString();ze(on),u==null||u({floatValue:je(on),formattedValue:Kn,value:Kn},{source:"increment"}),setTimeout(()=>{var Xn;return Dn((Xn=Ce.current)==null?void 0:Xn.value.length)},0);return}if(!Fk(Ae))return;let qe;const Ue=pn(Ae),In=pn(We),ot=Math.max(Ue,In),Pn=10**ot;if(!VS(Ae)&&(typeof Ae!="number"||Number.isNaN(Ae)))qe=Jo(Qe,He,Ye);else if(Ye!==void 0){const on=(Math.round(Number(Ae)*Pn)+Math.round(We*Pn))/Pn;on>Ye&&(I==null||I()),qe=on<=Ye?on:Ye}else qe=(Math.round(Number(Ae)*Pn)+Math.round(We*Pn))/Pn;const rn=qe.toFixed(ot);ze(parseFloat(rn)),u==null||u({floatValue:parseFloat(rn),formattedValue:rn,value:rn},{source:"increment"}),setTimeout(()=>{var on;return Dn((on=Ce.current)==null?void 0:on.value.length)},0)};const sn=x.useRef(jS);sn.current=()=>{if(xe){if(!qk(Ae,le))return;let ln;const Kn=Je!==void 0?Je:le?void 0:BigInt(0),Xn=Ae;if(typeof Xn=="bigint"){const Rn=Xn-be;Kn!==void 0&&Rn{var Rn;return Dn((Rn=Ce.current)==null?void 0:Rn.value.length)},0);return}if(!Fk(Ae))return;let qe;const Ue=He!==void 0?He:le?Number.MIN_SAFE_INTEGER:0,In=pn(Ae),ot=pn(We),Pn=Math.max(In,ot),rn=10**Pn;if(!VS(Ae)&&typeof Ae!="number"||Number.isNaN(Ae))qe=Jo(Qe,Ue,Ye);else{const ln=(Math.round(Number(Ae)*rn)-Math.round(We*rn))/rn;Ue!==void 0&&ln{var ln;return Dn((ln=Ce.current)==null?void 0:ln.value.length)},0)};const nn=qe=>{var Pn,rn,on;const Ue=qe.clipboardData.getData("text"),In=Z.decimalSeparator||".",ot=(N||[".",","]).filter(ln=>ln!==In);if(ot.some(ln=>Ue.includes(ln))){qe.preventDefault();let ln=Ue;ot.forEach(Xn=>{ln=ln.split(Xn).join(In)});const Kn=Ce.current;if(Kn){const Xn=Kn.selectionStart??0,Lt=Kn.selectionEnd??0,Rn=Kn.value,Mn=Rn.substring(0,Xn)+ln+Rn.substring(Lt);(rn=(Pn=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:Pn.set)==null||rn.call(Kn,Mn),Kn.dispatchEvent(new Event("change",{bubbles:!0}));const Qn=Xn+ln.length;setTimeout(()=>Dn(Qn),0)}}(on=Z.onPaste)==null||on.call(Z,qe)},$n=qe=>{var Ue,In;A==null||A(qe),!(U||!H)&&(qe.key==="ArrowUp"&&(qe.preventDefault(),(Ue=bn.current)==null||Ue.call(bn)),qe.key==="ArrowDown"&&(qe.preventDefault(),(In=sn.current)==null||In.call(sn)))},De=qe=>{if(O==null||O(qe),qe.key==="Backspace"){const Ue=Ce.current;Ue&&Ue.selectionStart===0&&Ue.selectionStart===Ue.selectionEnd&&(qe.preventDefault(),window.setTimeout(()=>Dn(0),0))}},Fe=qe=>{W&&setTimeout(()=>qe.currentTarget.select(),0),Q==null||Q(qe)},Vn=qe=>{let Ue=Ae;xe?(_==="blur"&&typeof Ue=="bigint"&&(Ue=zg(Ue,Je,oe)),Y&&typeof Ue=="string"&&(Ue=Ute(Ue,{min:Je,max:oe,clampBehavior:_}))):(_==="blur"&&typeof Ue=="number"&&(Ue=Jo(Ue,He,Ye)),Y&&typeof Ue=="string"&&pn(Ue)<15&&(Ue=Hte(Ue,Ye,He))),Ae!==Ue&&ze(Ue),S==null||S(qe)};cm(M,{increment:bn.current,decrement:sn.current});const En=qe=>{var Ue,In;qe?(Ue=bn.current)==null||Ue.call(bn):(In=sn.current)==null||In.call(sn),he.current+=1},gn=qe=>{if(En(qe),we){const Ue=typeof R=="number"?R:R(he.current);Ne.current=window.setTimeout(()=>gn(qe),Ue)}},xn=(qe,Ue)=>{var In;qe.preventDefault(),(In=Ce.current)==null||In.focus(),En(Ue),we&&(Ne.current=window.setTimeout(()=>gn(Ue),D))},at=()=>{Ne.current&&window.clearTimeout(Ne.current),Ne.current=null,he.current=0},Mt=v.jsxs("div",{...se("controls"),children:[v.jsx(Et,{...se("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof Ae=="number"&&Ye!==void 0&&Ae>=Ye||typeof Ae=="bigint"&&oe!==void 0&&Ae>=oe,mod:{direction:"up"},onMouseDown:qe=>qe.preventDefault(),onPointerDown:qe=>{xn(qe,!0)},onPointerUp:at,onPointerLeave:at,children:v.jsx(GE,{direction:"up"})}),v.jsx(Et,{...se("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof Ae=="number"&&He!==void 0&&Ae<=He||typeof Ae=="bigint"&&Je!==void 0&&Ae<=Je,mod:{direction:"down"},onMouseDown:qe=>qe.preventDefault(),onPointerDown:qe=>{xn(qe,!1)},onPointerUp:at,onPointerLeave:at,children:v.jsx(GE,{direction:"down"})})]});return v.jsx(Ni,{component:zte,allowNegative:L,className:vn(US.root,t),size:G,...Z,inputMode:xe?"numeric":"decimal",readOnly:U,disabled:q,value:typeof Ae=="bigint"?Ae.toString():Ae,getInputRef:Ht(re,Ce),onValueChange:an,rightSection:b||U||!(xe?qk(Ae,le):Fk(Ae))?w:w||Mt,classNames:ke,styles:te,unstyled:a,__staticSelector:"NumberInput",decimalScale:xe?0:j?T:0,onPaste:nn,onFocus:Fe,onKeyDown:$n,onKeyDownCapture:De,rightSectionPointerEvents:P??(q?"none":void 0),rightSectionWidth:B??`var(--ni-right-section-width-${G||"sm"})`,allowLeadingZeros:z,allowedDecimalSeparators:N,onBlur:Vn,attributes:ie,isAllowed:qe=>{if(!(!k||k(qe)))return!1;if(_!=="strict")return!0;if(!xe)return qte(qe.floatValue,He,Ye);if(qe.value===""||qe.value==="-")return!0;const Ue=Ih(qe.value);return Ue===null?!0:(Je===void 0||Ue>=Je)&&(oe===void 0||Ue<=oe)}})});vm.classes={...Ni.classes,...US};vm.varsResolver=sF;vm.displayName="@mantine/core/NumberInput";function Vte({reveal:e}){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:e?v.jsxs(v.Fragment,{children:[v.jsx("path",{fill:"none",d:"M0 0h256v256H0z"}),v.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M48 40l160 176M154.91 157.6a40 40 0 01-53.82-59.2M135.53 88.71a40 40 0 0132.3 35.53"}),v.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 00-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0054-12.6"})]}):v.jsxs(v.Fragment,{children:[v.jsx("path",{fill:"none",d:"M0 0h256v256H0z"}),v.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72z"}),v.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]})})}var WS={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const Wte={visibilityToggleIcon:Vte,size:"sm"},lF=(e,{size:n})=>({root:{"--psi-icon-size":Ln(n,"psi-icon-size"),"--psi-button-size":Ln(n,"psi-button-size")}}),d0=Pe(e=>{const n=ye("PasswordInput",Wte,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,required:u,error:f,leftSection:h,disabled:d,id:p,variant:g,inputContainer:b,description:w,label:k,size:_,errorProps:S,descriptionProps:j,labelProps:T,withAsterisk:A,inputWrapperOrder:O,wrapperProps:M,radius:$,rightSection:q,rightSectionWidth:P,rightSectionPointerEvents:L,leftSectionWidth:U,visible:G,defaultVisible:B,onVisibilityChange:R,visibilityToggleIcon:D,visibilityToggleButtonProps:z,rightSectionProps:H,leftSectionProps:Y,leftSectionPointerEvents:N,withErrorStyles:W,mod:V,attributes:I,...Q}=n,ie=Pi(p),[re,Z]=Ai({value:G,defaultValue:B,finalValue:!1,onChange:R}),le=()=>Z(!re),ee=Ze({name:"PasswordInput",classes:WS,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:I,vars:l,varsResolver:lF}),{resolvedClassNames:se,resolvedStyles:ke}=Wi({classNames:t,styles:a,props:n}),{styleProps:te,rest:$e}=Fu(Q),xe=(S==null?void 0:S.id)||`${ie}-error`,Ae=(j==null?void 0:j.id)||`${ie}-description`,ze=`${f&&typeof f!="boolean"?xe:""} ${w?Ae:""}`,we=ze.trim().length>0?ze.trim():void 0,Ce=v.jsx(Jn,{...ee("visibilityToggle"),disabled:d,radius:$,"aria-pressed":re,tabIndex:-1,"aria-label":"Toggle password visibility",...z,variant:(z==null?void 0:z.variant)??"subtle",color:"gray",unstyled:o,onTouchEnd:Ne=>{var he;Ne.preventDefault(),(he=z==null?void 0:z.onTouchEnd)==null||he.call(z,Ne),le()},onMouseDown:Ne=>{var he;Ne.preventDefault(),(he=z==null?void 0:z.onMouseDown)==null||he.call(z,Ne),le()},onKeyDown:Ne=>{var he;(he=z==null?void 0:z.onKeyDown)==null||he.call(z,Ne),Ne.key===" "&&(Ne.preventDefault(),le())},children:v.jsx(D,{reveal:re})});return v.jsx(Xt.Wrapper,{required:u,id:ie,label:k,error:f,description:w,size:_,classNames:se,styles:ke,__staticSelector:"PasswordInput",__stylesApiProps:n,unstyled:o,withAsterisk:A,inputWrapperOrder:O,inputContainer:b,variant:g,labelProps:{...T,htmlFor:ie},descriptionProps:{...j,id:Ae},errorProps:{...S,id:xe},mod:V,attributes:I,...ee("root"),...te,...M,children:v.jsx(Xt,{component:"div",error:f,leftSection:h,size:_,classNames:{...se,input:vn(WS.input,se==null?void 0:se.input)},styles:ke,radius:$,disabled:d,__staticSelector:"PasswordInput",__stylesApiProps:n,rightSectionWidth:P,rightSection:q??Ce,variant:g,unstyled:o,leftSectionWidth:U,rightSectionPointerEvents:L||"all",rightSectionProps:H,leftSectionProps:Y,leftSectionPointerEvents:N,withAria:!1,withErrorStyles:W,attributes:I,children:v.jsx("input",{required:u,"data-invalid":!!f||void 0,"data-with-left-section":!!h||void 0,...ee("innerInput"),disabled:d,id:ie,...$e,"aria-describedby":we,autoComplete:$e.autoComplete||"off",type:re?"text":"password"})})})});d0.classes={...Ni.classes,...WS};d0.varsResolver=lF;d0.displayName="@mantine/core/PasswordInput";function Gte({offset:e,position:n,defaultOpened:t}){const[i,r]=x.useState(t),a=x.useRef(null),{x:o,y:l,elements:u,refs:f,update:h,placement:d}=Dy({placement:n,middleware:[pC({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=d.includes("right")?e:n.includes("left")?e*-1:0,g=d.includes("bottom")?e:n.includes("top")?e*-1:0,b=x.useCallback(({clientX:w,clientY:k})=>{f.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:k,left:w+p,top:k+g,right:w,bottom:k}}})},[u.reference]);return x.useEffect(()=>{if(f.floating.current){const w=a.current;w.addEventListener("mousemove",b);const k=ns(f.floating.current);return k.forEach(_=>{_.addEventListener("scroll",h)}),()=>{w.removeEventListener("mousemove",b),k.forEach(_=>{_.removeEventListener("scroll",h)})}}},[u.reference,f.floating.current,h,b,i]),{handleMouseMove:b,x:o,y:l,opened:i,setOpened:r,boundaryRef:a,floating:f.setFloating}}var h0={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Yte={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:xa("popover")},uF=(e,{radius:n,color:t})=>({tooltip:{"--tooltip-radius":n===void 0?void 0:qt(n),"--tooltip-bg":t?ft(t,e):void 0,"--tooltip-color":t?"var(--mantine-color-white)":void 0}}),m0=Pe(e=>{const n=ye("TooltipFloating",Yte,e),{children:t,refProp:i,withinPortal:r,style:a,className:o,classNames:l,styles:u,unstyled:f,radius:h,color:d,label:p,offset:g,position:b,multiline:w,zIndex:k,disabled:_,defaultOpened:S,variant:j,vars:T,portalProps:A,attributes:O,ref:M,...$}=n,q=ci(),P=Ze({name:"TooltipFloating",props:n,classes:h0,className:o,style:a,classNames:l,styles:u,unstyled:f,attributes:O,rootSelector:"tooltip",vars:T,varsResolver:uF}),{handleMouseMove:L,x:U,y:G,opened:B,boundaryRef:R,floating:D,setOpened:z}=Gte({offset:g,position:b,defaultOpened:S}),H=Cl(t);if(!H)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Y=Ht(R,xy(H),M),N=H.props,W=I=>{var Q;(Q=N.onMouseEnter)==null||Q.call(N,I),L(I),z(!0)},V=I=>{var Q;(Q=N.onMouseLeave)==null||Q.call(N,I),z(!1)};return v.jsxs(v.Fragment,{children:[v.jsx(wl,{...A,withinPortal:r,children:v.jsx(fe,{...$,...P("tooltip",{style:{...tL(a,q),zIndex:k,display:!_&&B?"block":"none",top:(G&&Math.round(G))??"",left:(U&&Math.round(U))??""}}),variant:j,ref:D,mod:{multiline:w},children:p})}),x.cloneElement(H,{...N,[i]:Y,onMouseEnter:W,onMouseLeave:V})]})});m0.classes=h0;m0.varsResolver=uF;m0.displayName="@mantine/core/TooltipFloating";const cF=x.createContext({withinGroup:!1}),Kte={openDelay:0,closeDelay:0};function r9(e){const{openDelay:n,closeDelay:t,children:i}=ye("TooltipGroup",Kte,e);return v.jsx(cF,{value:{withinGroup:!0},children:v.jsx(NL,{delay:{open:n,close:t},children:i})})}r9.displayName="@mantine/core/TooltipGroup";r9.extend=e=>e;function Xte(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function Zte(e){const n=Xte(e.middlewares),t=[TL(e.offset)];return n.shift&&t.push(pC(typeof n.shift=="boolean"?{padding:8}:{padding:8,...n.shift})),n.flip&&t.push(typeof n.flip=="boolean"?Qg():Qg(n.flip)),t.push(EL({element:e.arrowRef,padding:e.arrowOffset})),n.inline?t.push(typeof n.inline=="boolean"?Kh():Kh(n.inline)):e.inline&&t.push(Kh()),t}function Qte(e){var T,A,O;const[n,t]=x.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:n,r=x.use(cF).withinGroup,a=Pi(),o=x.useCallback(M=>{t(M),M&&k(a)},[a]),{x:l,y:u,context:f,refs:h,placement:d,middlewareData:{arrow:{x:p,y:g}={}}}=Dy({strategy:e.strategy,placement:e.position,open:i,onOpenChange:o,middleware:Zte(e),whileElementsMounted:zS}),{delay:b,currentId:w,setCurrentId:k}=$L(f,{id:a}),{getReferenceProps:_,getFloatingProps:S}=LL([RL(f,{enabled:(T=e.events)==null?void 0:T.hover,delay:r?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((A=e.events)!=null&&A.touch)}),_J(f,{enabled:(O=e.events)==null?void 0:O.focus,visibleOnly:!0}),IL(f,{role:"tooltip"}),zL(f,{enabled:typeof e.opened>"u"})]);os(()=>{var M;(M=e.onPositionChange)==null||M.call(e,d)},[d]);const j=i&&w&&w!==a;return{x:l,y:u,arrowX:p,arrowY:g,reference:h.setReference,floating:h.setFloating,getFloatingProps:S,getReferenceProps:_,isGroupPhase:j,opened:i,placement:d}}const Jte={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:xa("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},fF=(e,{radius:n,color:t,variant:i,autoContrast:r})=>{const a=e.variantColorResolver({theme:e,color:t||e.primaryColor,autoContrast:r,variant:i||"filled"});return{tooltip:{"--tooltip-radius":n===void 0?void 0:qt(n),"--tooltip-bg":t?a.background:void 0,"--tooltip-color":t?a.color:void 0}}},wt=Pe(e=>{const n=ye("Tooltip",Jte,e),{children:t,position:i,refProp:r,label:a,openDelay:o,closeDelay:l,onPositionChange:u,opened:f,defaultOpened:h,withinPortal:d,radius:p,color:g,classNames:b,styles:w,unstyled:k,style:_,className:S,withArrow:j,arrowSize:T,arrowOffset:A,arrowRadius:O,arrowPosition:M,offset:$,transitionProps:q,multiline:P,events:L,zIndex:U,disabled:G,onClick:B,onMouseEnter:R,onMouseLeave:D,inline:z,variant:H,keepMounted:Y,vars:N,portalProps:W,mod:V,floatingStrategy:I,middlewares:Q,autoContrast:ie,attributes:re,target:Z,ref:le,...ee}=n,{dir:se}=qu(),ke=x.useRef(null),te=Qte({position:WL(se,i),closeDelay:l,openDelay:o,onPositionChange:u,opened:f,defaultOpened:h,events:L,arrowRef:ke,arrowOffset:A,offset:typeof $=="number"?$+(j?T/2:0):$,inline:z,strategy:I,middlewares:Q});x.useEffect(()=>{const Ne=Z instanceof HTMLElement?Z:typeof Z=="string"?document.querySelector(Z):(Z==null?void 0:Z.current)||null;Ne&&te.reference(Ne)},[Z,te]);const $e=Ze({name:"Tooltip",props:n,classes:h0,className:S,style:_,classNames:b,styles:w,unstyled:k,attributes:re,rootSelector:"tooltip",vars:N,varsResolver:fF}),xe=Cl(t);if(!Z&&!xe)throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Ae=$e("tooltip");if(Z){const Ne=wE(q,{duration:100,transition:"fade"});return v.jsx(v.Fragment,{children:v.jsx(wl,{...W,withinPortal:d,children:v.jsx(ls,{...Ne,keepMounted:Y,mounted:!G&&!!te.opened,duration:te.isGroupPhase?10:Ne.duration,children:he=>v.jsxs(fe,{...ee,"data-fixed":I==="fixed"||void 0,variant:H,mod:[{multiline:P},V],...Ae,...te.getFloatingProps({ref:te.floating,className:Ae.className,style:{...Ae.style,...he,zIndex:U,top:te.y??0,left:te.x??0}}),children:[a,v.jsx(Jg,{ref:ke,arrowX:te.arrowX,arrowY:te.arrowY,visible:j,position:te.placement,arrowSize:T,arrowOffset:A,arrowRadius:O,arrowPosition:M,...$e("arrow")})]})})})})}const ze=xe.props,we=Ht(te.reference,xy(xe),le),Ce=wE(q,{duration:100,transition:"fade"});return v.jsxs(v.Fragment,{children:[v.jsx(wl,{...W,withinPortal:d,children:v.jsx(ls,{...Ce,keepMounted:Y,mounted:!G&&!!te.opened,duration:te.isGroupPhase?10:Ce.duration,children:Ne=>v.jsxs(fe,{...ee,"data-fixed":I==="fixed"||void 0,variant:H,mod:[{multiline:P},V],...te.getFloatingProps({ref:te.floating,className:$e("tooltip").className,style:{...$e("tooltip").style,...Ne,zIndex:U,top:te.y??0,left:te.x??0}}),children:[a,v.jsx(Jg,{ref:ke,arrowX:te.arrowX,arrowY:te.arrowY,visible:j,position:te.placement,arrowSize:T,arrowOffset:A,arrowRadius:O,arrowPosition:M,...$e("arrow")})]})})}),x.cloneElement(xe,te.getReferenceProps({onClick:B,onMouseEnter:R,onMouseLeave:D,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,...ze,className:vn(S,ze.className),[r]:we}))]})});wt.classes=h0;wt.varsResolver=fF;wt.displayName="@mantine/core/Tooltip";wt.Floating=m0;wt.Group=r9;const eie={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},jr=sp(e=>{const n=ye("Select",eie,e),{classNames:t,styles:i,unstyled:r,vars:a,dropdownOpened:o,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:f,onFocus:h,onBlur:d,onClick:p,onChange:g,data:b,value:w,defaultValue:k,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:S,onOptionSubmit:j,comboboxProps:T,readOnly:A,disabled:O,filter:M,limit:$,withScrollArea:q,maxDropdownHeight:P,size:L,searchable:U,rightSection:G,checkIconPosition:B,withCheckIcon:R,withAlignedLabels:D,nothingFoundMessage:z,name:H,form:Y,searchValue:N,defaultSearchValue:W,onSearchChange:V,allowDeselect:I,error:Q,rightSectionPointerEvents:ie,id:re,clearable:Z,clearSectionMode:le,clearButtonProps:ee,hiddenInputProps:se,renderOption:ke,onClear:te,autoComplete:$e,scrollAreaProps:xe,__defaultRightSection:Ae,__clearSection:ze,__clearable:we,chevronColor:Ce,autoSelectOnBlur:Ne,openOnFocus:he,attributes:He,...Ye}=n,We=x.useMemo(()=>Ly(b),[b]),Qe=x.useRef({}),Je=x.useMemo(()=>vp(We),[We]),oe=Pi(re),[be,Ke,en]=Ai({value:w,defaultValue:k,finalValue:null,onChange:g}),je=be!=null?`${be}`in Je?Je[`${be}`]:Qe.current[`${be}`]:void 0,an=wX(je),[pn,Dn,bn]=Ai({value:N,defaultValue:W,finalValue:je?je.label:"",onChange:V}),sn=Vf({opened:o,defaultOpened:l,onDropdownOpen:()=>{f==null||f(),S?sn.selectFirstOption():sn.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),setTimeout(sn.resetSelectedOption,0)}}),nn=En=>{Dn(En),sn.resetSelectedOption()},{resolvedClassNames:$n,resolvedStyles:De}=Wi({props:n,styles:i,classNames:t});x.useEffect(()=>{_&&sn.selectFirstOption()},[_,pn]),x.useEffect(()=>{w===null&&nn(""),w!=null&&je&&((an==null?void 0:an.value)!==je.value||(an==null?void 0:an.label)!==je.label)&&nn(je.label)},[w,je]),x.useEffect(()=>{var En,gn;!en&&!bn&&nn(be!=null?`${be}`in Je?(En=Je[`${be}`])==null?void 0:En.label:((gn=Qe.current[`${be}`])==null?void 0:gn.label)||"":"")},[Je,be]),x.useEffect(()=>{be&&`${be}`in Je&&(Qe.current[`${be}`]=Je[`${be}`])},[Je,be]);const Fe=v.jsx(On.ClearButton,{...ee,onClear:()=>{Ke(null,null),nn(""),te==null||te()}}),Vn=Z&&!!be&&!O&&!A;return v.jsxs(v.Fragment,{children:[v.jsxs(On,{store:sn,__staticSelector:"Select",classNames:$n,styles:De,unstyled:r,readOnly:A,size:L,attributes:He,keepMounted:Ne,onOptionSubmit:En=>{j==null||j(En);const gn=I&&`${Je[En].value}`==`${be}`?null:Je[En],xn=gn?gn.value:null;xn!==be&&Ke(xn,gn),!en&&nn(xn!=null&&(gn==null?void 0:gn.label)||""),sn.closeDropdown()},...T,children:[v.jsx(On.Target,{targetType:U?"input":"button",autoComplete:$e,withExpandedAttribute:!0,children:v.jsx(Ni,{id:oe,__defaultRightSection:v.jsx(On.Chevron,{size:L,error:Q,unstyled:r,color:Ce}),__clearSection:Fe,__clearable:Vn,__clearSectionMode:le,rightSection:G,rightSectionPointerEvents:ie||"none",...Ye,size:L,__staticSelector:"Select",disabled:O,readOnly:A||!U,value:pn,onChange:En=>{nn(En.currentTarget.value),sn.openDropdown(),_&&sn.selectFirstOption()},onFocus:En=>{he&&U&&sn.openDropdown(),h==null||h(En)},onBlur:En=>{Ne&&sn.clickSelectedOption(),U&&sn.closeDropdown();const gn=be!=null&&(`${be}`in Je?Je[`${be}`]:Qe.current[`${be}`]);nn(gn&&gn.label||""),d==null||d(En)},onClick:En=>{U?sn.openDropdown():sn.toggleDropdown(),p==null||p(En)},classNames:$n,styles:De,unstyled:r,pointer:!U,error:Q,attributes:He})}),v.jsx(qy,{data:We,hidden:A||O,filter:M,search:pn,limit:$,hiddenWhenEmpty:!z,withScrollArea:q,maxDropdownHeight:P,filterOptions:!!U&&(je==null?void 0:je.label)!==pn,value:be,checkIconPosition:B,withCheckIcon:R,withAlignedLabels:D,nothingFoundMessage:z,unstyled:r,labelId:Ye.label?`${oe}-label`:void 0,"aria-label":Ye.label?void 0:Ye["aria-label"],renderOption:ke,scrollAreaProps:xe})]}),v.jsx(On.HiddenInput,{value:be,name:H,form:Y,disabled:O,...se})]})});jr.classes={...Ni.classes,...On.classes};jr.displayName="@mantine/core/Select";function dF(e){if(e!==void 0)return typeof e=="number"?ve(e):e}function nie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i,autoRows:r,selector:a}){var d;const o=ci(),l=n===void 0?e:n,u=i!==void 0,f=Bu({"--sg-spacing-x":Yt(Wr(e)),"--sg-spacing-y":Yt(Wr(l)),"--sg-auto-rows":r,...u?{"--sg-min-col-width":dF(i)}:{"--sg-cols":(d=Wr(t))==null?void 0:d.toString()}}),h=$t(o.breakpoints).reduce((p,g)=>(p[g]||(p[g]={}),typeof e=="object"&&e[g]!==void 0&&(p[g]["--sg-spacing-x"]=Yt(e[g])),typeof l=="object"&&l[g]!==void 0&&(p[g]["--sg-spacing-y"]=Yt(l[g])),!u&&typeof t=="object"&&t[g]!==void 0&&(p[g]["--sg-cols"]=t[g]),p),{});return v.jsx(Bf,{styles:f,media:um($t(h),o.breakpoints).filter(p=>$t(h[p.value]).length>0).map(p=>({query:`(min-width: ${o.breakpoints[p.value]})`,styles:h[p.value]})),selector:a})}function Uk(e){return typeof e=="object"&&e!==null?$t(e):[]}function tie(e){return e.sort((n,t)=>lm(n)-lm(t))}function iie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i}){return tie(Array.from(new Set([...Uk(e),...Uk(n),...i!==void 0?[]:Uk(t)])))}function rie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i,autoRows:r,selector:a}){var d;const o=n===void 0?e:n,l=i!==void 0,u=Bu({"--sg-spacing-x":Yt(Wr(e)),"--sg-spacing-y":Yt(Wr(o)),"--sg-auto-rows":r,...l?{"--sg-min-col-width":dF(i)}:{"--sg-cols":(d=Wr(t))==null?void 0:d.toString()}}),f=iie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i}),h=f.reduce((p,g)=>(p[g]||(p[g]={}),typeof e=="object"&&e[g]!==void 0&&(p[g]["--sg-spacing-x"]=Yt(e[g])),typeof o=="object"&&o[g]!==void 0&&(p[g]["--sg-spacing-y"]=Yt(o[g])),!l&&typeof t=="object"&&t[g]!==void 0&&(p[g]["--sg-cols"]=t[g]),p),{});return v.jsx(Bf,{styles:u,container:f.map(p=>({query:`simple-grid (min-width: ${p})`,styles:h[p]})),selector:a})}var hF={container:"m_925c2d2c",root:"m_2415a157"};const aie={cols:1,spacing:"md",type:"media"},Ko=Pe(e=>{const n=ye("SimpleGrid",aie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,cols:u,verticalSpacing:f,spacing:h,type:d,minColWidth:p,autoFlow:g,autoRows:b,attributes:w,...k}=n,_=Ze({name:"SimpleGrid",classes:hF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l}),S=Sy(),j=p!==void 0?g||"auto-fill":void 0;return d==="container"?v.jsxs(v.Fragment,{children:[v.jsx(rie,{...n,selector:`.${S}`}),v.jsx("div",{..._("container"),children:v.jsx(fe,{..._("root",{className:S}),...k,"data-auto-cols":j})})]}):v.jsxs(v.Fragment,{children:[v.jsx(nie,{...n,selector:`.${S}`}),v.jsx(fe,{..._("root",{className:S}),...k,"data-auto-cols":j})]})});Ko.classes=hF;Ko.displayName="@mantine/core/SimpleGrid";var mF={root:"m_6d731127"};const oie={gap:"md",align:"stretch",justify:"flex-start"},pF=(e,{gap:n,align:t,justify:i})=>({root:{"--stack-gap":Yt(n),"--stack-align":t,"--stack-justify":i}}),kn=Pe(e=>{const n=ye("Stack",oie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,align:u,justify:f,gap:h,variant:d,attributes:p,...g}=n;return v.jsx(fe,{...Ze({name:"Stack",props:n,classes:mF,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:p,vars:l,varsResolver:pF})("root"),variant:d,...g})});kn.classes=mF;kn.varsResolver=pF;kn.displayName="@mantine/core/Stack";const[sie,lie]=Ar("Table component was not found in the tree");var yp={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function uie(e,n){if(!n)return;const t={};return n.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),n.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),n.striped&&e.striped&&(t["data-striped"]=e.striped),n.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),n.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),n.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function Uu(e,n){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,i=Pe(r=>{const a=ye(t,{},r),{classNames:o,className:l,style:u,styles:f,...h}=a,d=lie();return v.jsx(fe,{component:e,...uie(d,n),...d.getStyles(e,{className:l,classNames:o,style:u,styles:f,props:a}),...h})});return i.displayName=`@mantine/core/${t}`,i.classes=yp,i}const GS=Uu("th",{columnBorder:!0}),vF=Uu("td",{columnBorder:!0}),Lg=Uu("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),gF=Uu("thead",{stickyHeader:!0}),yF=Uu("tbody"),bF=Uu("tfoot"),wF=Uu("caption",{captionSide:!0}),cie={type:"scrollarea"},kF=(e,{minWidth:n,maxHeight:t,type:i})=>({scrollContainer:{"--table-min-width":ve(n),"--table-max-height":ve(t),"--table-overflow":i==="native"?"auto":void 0}}),p0=Pe(e=>{const n=ye("TableScrollContainer",cie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,minWidth:f,maxHeight:h,type:d,scrollAreaProps:p,attributes:g,...b}=n,w=Ze({name:"TableScrollContainer",classes:yp,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,vars:l,varsResolver:kF,rootSelector:"scrollContainer"});return v.jsx(fe,{component:d==="scrollarea"?ur:"div",...d==="scrollarea"?h?{offsetScrollbars:"xy",...p}:{offsetScrollbars:"x",...p}:{},...w("scrollContainer"),...b,children:v.jsx("div",{...w("scrollContainerInner"),children:u})})});p0.classes=yp;p0.varsResolver=kF;p0.displayName="@mantine/core/TableScrollContainer";function a9({data:e}){return v.jsxs(v.Fragment,{children:[e.caption&&v.jsx(wF,{children:e.caption}),e.head&&v.jsx(gF,{children:v.jsx(Lg,{children:e.head.map((n,t)=>v.jsx(GS,{children:n},t))})}),e.body&&v.jsx(yF,{children:e.body.map((n,t)=>v.jsx(Lg,{children:n.map((i,r)=>v.jsx(vF,{children:i},r))},t))}),e.foot&&v.jsx(bF,{children:v.jsx(Lg,{children:e.foot.map((n,t)=>v.jsx(GS,{children:n},t))})})]})}a9.displayName="@mantine/core/TableDataRenderer";const fie={withRowBorders:!0,verticalSpacing:7},_F=(e,{layout:n,captionSide:t,horizontalSpacing:i,verticalSpacing:r,borderColor:a,stripedColor:o,highlightOnHoverColor:l,striped:u,highlightOnHover:f,stickyHeaderOffset:h,stickyHeader:d})=>({table:{"--table-layout":n,"--table-caption-side":t,"--table-horizontal-spacing":Yt(i),"--table-vertical-spacing":Yt(r),"--table-border-color":a?ft(a,e):void 0,"--table-striped-color":u&&o?ft(o,e):void 0,"--table-highlight-on-hover-color":f&&l?ft(l,e):void 0,"--table-sticky-header-offset":d?ve(h):void 0}}),Xe=Pe(e=>{const n=ye("Table",fie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,horizontalSpacing:u,verticalSpacing:f,captionSide:h,stripedColor:d,highlightOnHoverColor:p,striped:g,highlightOnHover:b,withColumnBorders:w,withRowBorders:k,withTableBorder:_,borderColor:S,layout:j,data:T,children:A,stickyHeader:O,stickyHeaderOffset:M,mod:$,tabularNums:q,attributes:P,...L}=n,U=Ze({name:"Table",props:n,className:i,style:r,classes:yp,classNames:t,styles:a,unstyled:o,attributes:P,rootSelector:"table",vars:l,varsResolver:_F});return v.jsx(sie,{value:{getStyles:U,stickyHeader:O,striped:g===!0?"odd":g||void 0,highlightOnHover:b,withColumnBorders:w,withRowBorders:k,captionSide:h||"bottom"},children:v.jsx(fe,{component:"table",mod:[{"data-with-table-border":_,"data-tabular-nums":q},$],...U("table"),...L,children:A||!!T&&v.jsx(a9,{data:T})})})});Xe.classes=yp;Xe.varsResolver=_F;Xe.displayName="@mantine/core/Table";Xe.Td=vF;Xe.Th=GS;Xe.Tr=Lg;Xe.Thead=gF;Xe.Tbody=yF;Xe.Tfoot=bF;Xe.Caption=wF;Xe.ScrollContainer=p0;Xe.DataRenderer=a9;const[die,o9]=Ar("Tabs component was not found in the tree");var bp={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const s9=Pe(e=>{const n=ye("TabsList",null,e),{children:t,className:i,grow:r,justify:a,classNames:o,styles:l,style:u,mod:f,...h}=n,d=o9();return v.jsx(fe,{...d.getStyles("list",{className:i,style:u,classNames:o,styles:l,props:n,variant:d.variant}),role:"tablist",variant:d.variant,mod:[{grow:r,orientation:d.orientation,placement:d.orientation==="vertical"&&d.placement,inverted:d.inverted},f],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...h,children:t})});s9.classes=bp;s9.displayName="@mantine/core/TabsList";const l9=Pe(e=>{const n=ye("TabsPanel",null,e),{children:t,className:i,value:r,classNames:a,styles:o,style:l,mod:u,keepMounted:f,...h}=n,d=op(),p=o9(),g=p.value===r,b=p.keepMounted||f,w=p.keepMountedMode!=="display-none",k=b&&w&&d!=="test"?v.jsx(x.Activity,{mode:g?"visible":"hidden",children:t}):b||g?t:null;return v.jsx(fe,{...p.getStyles("panel",{className:i,classNames:a,styles:o,style:[l,g?void 0:{display:"none"}],props:n}),mod:[{orientation:p.orientation},u],role:"tabpanel",id:p.getPanelId(r),"aria-labelledby":p.getTabId(r),...h,children:k})});l9.classes=bp;l9.displayName="@mantine/core/TabsPanel";const u9=Pe(e=>{const n=ye("TabsTab",null,e),{className:t,children:i,rightSection:r,leftSection:a,value:o,onClick:l,onKeyDown:u,disabled:f,color:h,style:d,classNames:p,styles:g,vars:b,mod:w,tabIndex:k,..._}=n,S=ci(),{dir:j}=qu(),T=o9(),A=o===T.value,O=$=>{T.onChange(T.allowTabDeactivation&&o===T.value?null:o),l==null||l($)},M={classNames:p,styles:g,props:n};return v.jsxs(Et,{...T.getStyles("tab",{className:t,style:d,variant:T.variant,...M}),disabled:f,unstyled:T.unstyled,variant:T.variant,mod:[{active:A,disabled:f,orientation:T.orientation,inverted:T.inverted,placement:T.orientation==="vertical"&&T.placement},w],role:"tab",id:T.getTabId(o),"aria-selected":A,tabIndex:k!==void 0?k:A||T.value===null?0:-1,"aria-controls":T.getPanelId(o),onClick:O,__vars:{"--tabs-color":h?ft(h,S):void 0},onKeyDown:Z6({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:T.activateTabWithKeyboard,loop:T.loop,orientation:T.orientation||"horizontal",dir:j,onKeyDown:u}),..._,children:[a&&v.jsx("span",{...T.getStyles("tabSection",M),"data-position":"left",children:a}),i&&v.jsx("span",{...T.getStyles("tabLabel",M),children:i}),r&&v.jsx("span",{...T.getStyles("tabSection",M),"data-position":"right",children:r})]})});u9.classes=bp;u9.displayName="@mantine/core/TabsTab";const KE="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",hie={keepMounted:!0,keepMountedMode:"activity",orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},xF=(e,{radius:n,color:t,autoContrast:i})=>({root:{"--tabs-radius":qt(n),"--tabs-color":ft(t,e),"--tabs-text-color":ap(i,e)?If({color:t,theme:e,autoContrast:i}):void 0}}),Gt=Pe(e=>{const n=ye("Tabs",hie,e),{defaultValue:t,value:i,onChange:r,orientation:a,children:o,loop:l,id:u,activateTabWithKeyboard:f,allowTabDeactivation:h,variant:d,color:p,radius:g,inverted:b,placement:w,keepMounted:k,keepMountedMode:_,classNames:S,styles:j,unstyled:T,className:A,style:O,vars:M,autoContrast:$,mod:q,attributes:P,...L}=n,U=Pi(u),[G,B]=Ai({value:i,defaultValue:t,finalValue:null,onChange:r}),R=Ze({name:"Tabs",props:n,classes:bp,className:A,style:O,classNames:S,styles:j,unstyled:T,attributes:P,vars:M,varsResolver:xF});return v.jsx(die,{value:{placement:w,value:G,orientation:a,id:U,loop:l,activateTabWithKeyboard:f,getTabId:IT(`${U}-tab`,KE),getPanelId:IT(`${U}-panel`,KE),onChange:B,allowTabDeactivation:h,variant:d,color:p,radius:g,inverted:b,keepMounted:k,keepMountedMode:_,unstyled:T,getStyles:R},children:v.jsx(fe,{id:U,variant:d,mod:[{orientation:a,inverted:a==="horizontal"&&b,placement:a==="vertical"&&w},q],...R("root"),...L,children:o})})});Gt.classes=bp;Gt.varsResolver=xF;Gt.displayName="@mantine/core/Tabs";Gt.Tab=u9;Gt.Panel=l9;Gt.List=s9;function mie({data:e,value:n}){const t=n.map(i=>i.trim().toLowerCase());return e.reduce((i,r)=>(Eu(r)?i.push({group:r.group,items:r.items.filter(a=>t.indexOf(a.label.toLowerCase().trim())===-1)}):t.indexOf(r.label.toLowerCase().trim())===-1&&i.push(r),i),[])}function pie(e,n){return e?n.split(new RegExp(`[${e.join("")}]`)).map(t=>t.trim()).filter(t=>t!==""):[n]}function XE({splitChars:e,allowDuplicates:n,maxTags:t,value:i,currentTags:r,isDuplicate:a,onDuplicate:o}){const l=pie(e,i),u=[];if(n)u.push(...r,...l);else{u.push(...r);for(const f of l)(a?h=>a(h,u):h=>u.some(d=>d.toLowerCase()===h.toLowerCase()))(f)?o==null||o(f):u.push(f)}return t?u.slice(0,t):u}const vie={maxTags:1/0,acceptValueOnBlur:!0,splitChars:[","],hiddenInputValuesDivider:",",openOnFocus:!0,size:"sm"},c9=Pe(e=>{const n=ye("TagsInput",vie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,value:f,defaultValue:h,onChange:d,onKeyDown:p,maxTags:g,allowDuplicates:b,onDuplicate:w,variant:k,data:_,dropdownOpened:S,defaultDropdownOpened:j,onDropdownOpen:T,onDropdownClose:A,selectFirstOptionOnChange:O,selectFirstOptionOnDropdownOpen:M,onOptionSubmit:$,comboboxProps:q,filter:P,limit:L,withScrollArea:U,maxDropdownHeight:G,searchValue:B,defaultSearchValue:R,onSearchChange:D,readOnly:z,disabled:H,splitChars:Y,onFocus:N,onBlur:W,onPaste:V,radius:I,rightSection:Q,rightSectionWidth:ie,rightSectionPointerEvents:re,rightSectionProps:Z,leftSection:le,leftSectionWidth:ee,leftSectionPointerEvents:se,leftSectionProps:ke,inputContainer:te,inputWrapperOrder:$e,withAsterisk:xe,required:Ae,labelProps:ze,descriptionProps:we,errorProps:Ce,wrapperProps:Ne,description:he,label:He,error:Ye,withErrorStyles:We,name:Qe,form:Je,id:oe,clearable:be,clearSectionMode:Ke,clearButtonProps:en,hiddenInputProps:je,hiddenInputValuesDivider:an,mod:pn,renderOption:Dn,renderPill:bn,onRemove:sn,onClear:nn,onMaxTags:$n,scrollAreaProps:De,acceptValueOnBlur:Fe,isDuplicate:Vn,openOnFocus:En,attributes:gn,ref:xn,loading:at,loadingPosition:Mt,...qe}=n,Ue=Pi(oe),In=Ly(_),ot=vp(In),Pn=x.useRef(null),rn=Ht(Pn,xn),on=Vf({opened:S,defaultOpened:j,onDropdownOpen:()=>{T==null||T(),M&&on.selectFirstOption()},onDropdownClose:()=>{A==null||A(),on.resetSelectedOption()}}),{styleProps:ln,rest:{type:Kn,autoComplete:Xn,...Lt}}=Fu(qe),[Rn,Mn]=Ai({value:f,defaultValue:h,finalValue:[],onChange:d}),[Qn,Dt]=Ai({value:B,defaultValue:R,finalValue:"",onChange:D}),fi=yn=>{Dt(yn),on.resetSelectedOption()},zi=Ze({name:"TagsInput",classes:{},props:n,classNames:t,styles:a,unstyled:o}),{resolvedClassNames:Ya,resolvedStyles:Co}=Wi({props:n,styles:a,classNames:t}),Ta=yn=>{if((Vn?Vn(yn,Rn):Rn.some(oi=>oi.toLowerCase()===yn.toLowerCase()))&&(w==null||w(yn),!b)){fi("");return}if(Rn.length>=g){$n==null||$n(yn);return}$==null||$(yn),fi(""),yn.length>0&&Mn([...Rn,yn])},dr=yn=>{if(p==null||p(yn),yn.isPropagationStopped())return;const oi=Qn.trim(),{length:cn}=oi;if(Y.includes(yn.key)&&cn>0&&(Mn(XE({splitChars:Y,allowDuplicates:b,maxTags:g,value:Qn,currentTags:Rn,isDuplicate:Vn,onDuplicate:w})),fi(""),yn.preventDefault()),yn.key==="Enter"&&cn>0&&!yn.nativeEvent.isComposing){if(yn.preventDefault(),document.querySelector(`#${on.listId} [data-combobox-option][data-combobox-selected]`))return;Ta(oi)}yn.key==="Backspace"&&cn===0&&Rn.length>0&&!yn.nativeEvent.isComposing&&!z&&(sn==null||sn(Rn[Rn.length-1]),Mn(Rn.slice(0,Rn.length-1)))},jo=yn=>{V==null||V(yn),yn.preventDefault(),yn.clipboardData&&(Mn(XE({splitChars:Y,allowDuplicates:b,maxTags:g,value:`${Qn}${yn.clipboardData.getData("text/plain")}`,currentTags:Rn,isDuplicate:Vn,onDuplicate:w})),fi(""))},Er=Rn.map((yn,oi)=>{const cn=()=>{const Mr=Rn.slice();Mr.splice(oi,1),Mn(Mr),sn==null||sn(yn)};return bn?v.jsx(x.Fragment,{children:bn({option:ot[yn]||{value:yn,label:yn,disabled:!1},value:yn,onRemove:cn,disabled:H||z})},`${yn}-${oi}`):v.jsx(xl,{withRemoveButton:!z,onRemove:cn,unstyled:o,disabled:H,attributes:gn,...zi("pill"),children:yn},`${yn}-${oi}`)});x.useEffect(()=>{O&&on.selectFirstOption()},[O,Rn,Qn]);const hr=v.jsx(On.ClearButton,{...en,onClear:()=>{var yn;Mn([]),fi(""),(yn=Pn.current)==null||yn.focus(),on.openDropdown(),nn==null||nn()}});return v.jsxs(v.Fragment,{children:[v.jsxs(On,{store:on,classNames:Ya,styles:Co,unstyled:o,size:u,readOnly:z,__staticSelector:"TagsInput",attributes:gn,onOptionSubmit:yn=>{$==null||$(yn),fi(""),Rn.length>=g?$n==null||$n(yn):Mn([...Rn,ot[yn].value]),on.resetSelectedOption()},...q,children:[v.jsx(On.DropdownTarget,{children:v.jsx(Mu,{...ln,__staticSelector:"TagsInput",classNames:Ya,styles:Co,unstyled:o,size:u,className:i,style:r,variant:k,disabled:H,radius:I,rightSection:Q,__clearSection:hr,__clearable:be&&Rn.length>0&&!H&&!z,__clearSectionMode:Ke,rightSectionWidth:ie,rightSectionPointerEvents:re,rightSectionProps:Z,leftSection:le,leftSectionWidth:ee,leftSectionPointerEvents:se,leftSectionProps:ke,loading:at,loadingPosition:Mt,inputContainer:te,inputWrapperOrder:$e,withAsterisk:xe,required:Ae,labelProps:ze,descriptionProps:we,errorProps:Ce,wrapperProps:Ne,description:he,label:He,error:Ye,withErrorStyles:We,__stylesApiProps:{...n,multiline:!0},id:Ue,mod:pn,attributes:gn,children:v.jsxs(xl.Group,{disabled:H,unstyled:o,...zi("pillsList"),children:[Er,v.jsx(On.EventsTarget,{autoComplete:Xn,withExpandedAttribute:!0,children:v.jsx(Mu.Field,{...Lt,ref:rn,...zi("inputField"),unstyled:o,onKeyDown:dr,onFocus:yn=>{N==null||N(yn),En&&on.openDropdown()},onBlur:yn=>{W==null||W(yn),Fe&&Ta(Qn),on.closeDropdown()},onPaste:jo,value:Qn,onChange:yn=>fi(yn.currentTarget.value),required:Ae&&Rn.length===0,disabled:H,readOnly:z,id:Ue})})]})})}),v.jsx(qy,{data:mie({data:In,value:Rn}),hidden:z||H,filter:P,search:Qn,limit:L,hiddenWhenEmpty:!0,withScrollArea:U,maxDropdownHeight:G,unstyled:o,labelId:He?`${Ue}-label`:void 0,"aria-label":He?void 0:qe["aria-label"],renderOption:Dn,scrollAreaProps:De})]}),v.jsx(On.HiddenInput,{name:Qe,form:Je,value:Rn,valuesDivider:an,disabled:H,...je})]})});c9.classes={...Ni.classes,...On.classes};c9.displayName="@mantine/core/TagsInput";const or=Pe(e=>v.jsx(Ni,{component:"input",...ye("TextInput",null,e),__staticSelector:"TextInput"}));or.classes=Ni.classes;or.displayName="@mantine/core/TextInput";const[gie,yie]=Ar("Timeline component was not found in tree");var f9={root:"m_43657ece",itemTitle:"m_2ebe8099",item:"m_436178ff",itemBullet:"m_8affcee1",itemBody:"m_540e8f41"};const d9=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,__active:o,__align:l,__lineActive:u,__vars:f,bullet:h,radius:d,color:p,lineVariant:g,children:b,title:w,mod:k,..._}=ye("TimelineItem",null,e),S=yie(),j=ci(),T={classNames:n,styles:r};return v.jsxs(fe,{...S.getStyles("item",{...T,className:t,style:i}),mod:[{"line-active":u,active:o},k],__vars:{"--tli-radius":d!==void 0?qt(d):void 0,"--tli-color":p?ft(p,j):void 0,"--tli-border-style":g||void 0},..._,children:[v.jsx(fe,{...S.getStyles("itemBullet",T),mod:{"with-child":!!h,align:l,active:o},children:h}),v.jsxs("div",{...S.getStyles("itemBody",T),children:[w&&v.jsx("div",{...S.getStyles("itemTitle",T),children:w}),v.jsx("div",{...S.getStyles("itemContent",T),children:b})]})]})});d9.classes=f9;d9.displayName="@mantine/core/TimelineItem";const bie={active:-1,align:"left"},SF=(e,{bulletSize:n,lineWidth:t,radius:i,color:r,autoContrast:a})=>({root:{"--tl-bullet-size":ve(n),"--tl-line-width":ve(t),"--tl-radius":i===void 0?void 0:qt(i),"--tl-color":r?ft(r,e):void 0,"--tl-icon-color":ap(a,e)?If({color:r,theme:e,autoContrast:a}):void 0}}),uf=Pe(e=>{const n=ye("Timeline",bie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,active:f,color:h,radius:d,bulletSize:p,align:g,lineWidth:b,reverseActive:w,mod:k,autoContrast:_,attributes:S,...j}=n,T=Ze({name:"Timeline",classes:f9,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:S,vars:l,varsResolver:SF}),A=x.Children.toArray(u),O=A.map((M,$)=>{var q,P;return x.cloneElement(M,{unstyled:o,__align:g,__active:((q=M.props)==null?void 0:q.active)||(w?f>=A.length-$-1:f>=$),__lineActive:((P=M.props)==null?void 0:P.lineActive)||(w?f>=A.length-$-1:f-1>=$)})});return v.jsx(gie,{value:{getStyles:T},children:v.jsx(fe,{...T("root"),mod:[{align:g},k],...j,children:O})})});uf.classes=f9;uf.varsResolver=SF;uf.displayName="@mantine/core/Timeline";uf.Item=d9;const wie=["h1","h2","h3","h4","h5","h6"],kie=["xs","sm","md","lg","xl"];function _ie(e,n){const t=n!==void 0?n:`h${e}`;return wie.includes(t)?{fontSize:`var(--mantine-${t}-font-size)`,fontWeight:`var(--mantine-${t}-font-weight)`,lineHeight:`var(--mantine-${t}-line-height)`}:kie.includes(t)?{fontSize:`var(--mantine-font-size-${t})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:ve(t),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var CF={root:"m_8a5d1357"};const xie={order:1},jF=(e,{order:n,size:t,lineClamp:i,textWrap:r})=>{const a=_ie(n||1,t);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof i=="number"?i.toString():void 0,"--title-text-wrap":r}}},El=Pe(e=>{const n=ye("Title",xie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,order:l,vars:u,size:f,variant:h,lineClamp:d,textWrap:p,mod:g,attributes:b,...w}=n,k=Ze({name:"Title",props:n,classes:CF,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:u,varsResolver:jF});return[1,2,3,4,5,6].includes(l)?v.jsx(fe,{...k("root"),component:`h${l}`,variant:h,mod:[{order:l,"data-line-clamp":typeof d=="number"},g],size:f,...w}):null});El.classes=CF;El.varsResolver=jF;El.displayName="@mantine/core/Title";const h9=x.createContext(null);h9.displayName="@mantine/modals/ModalsContext";function Sie(){const e=x.use(h9);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}const[Cie,Vu]=xX("mantine-modals"),jie=e=>{const n=e.modalId||ml();return Vu("openModal")({...e,modalId:n}),n},Aie=e=>{const n=e.modalId||ml();return Vu("openConfirmModal")({...e,modalId:n}),n},Oie=e=>{const n=e.modalId||ml();return Vu("openContextModal")({...e,modalId:n}),n},Tie=Vu("closeModal"),Eie=Vu("closeAllModals"),Mie=e=>Vu("updateModal")(e),Die=e=>Vu("updateContextModal")(e),Ra={open:jie,close:Tie,closeAll:Eie,openConfirmModal:Aie,openContextModal:Oie,updateModal:Mie,updateContextModal:Die};function Rie({id:e,cancelProps:n,confirmProps:t,labels:i={cancel:"",confirm:""},closeOnConfirm:r=!0,closeOnCancel:a=!0,groupProps:o,onCancel:l,onConfirm:u,children:f}){const{cancel:h,confirm:d}=i,p=Sie(),g=w=>{typeof(n==null?void 0:n.onClick)=="function"&&(n==null||n.onClick(w)),typeof l=="function"&&l(),a&&p.closeModal(e)},b=w=>{typeof(t==null?void 0:t.onClick)=="function"&&(t==null||t.onClick(w)),typeof u=="function"&&u(),r&&p.closeModal(e)};return v.jsxs(v.Fragment,{children:[f&&v.jsx(fe,{mb:"md",children:f}),v.jsxs(Ee,{mt:f?0:"md",justify:"flex-end",...o,children:[v.jsx(Yn,{variant:"default",...n,onClick:g,children:(n==null?void 0:n.children)||h}),v.jsx(Yn,{...t,onClick:b,children:(t==null?void 0:t.children)||d})]})]})}function ZE(e,n){var t,i,r,a;n&&e.type==="confirm"&&((i=(t=e.props).onCancel)==null||i.call(t)),(a=(r=e.props).onClose)==null||a.call(r)}function Pie(e,n){var t;switch(n.type){case"OPEN":return{current:n.modal,modals:[...e.modals,n.modal]};case"CLOSE":{if(!e.modals.find(r=>r.id===n.modalId))return e;const i=e.modals.filter(r=>r.id!==n.modalId);return{current:i[i.length-1]||e.current,modals:i}}case"CLOSE_ALL":return e.modals.length?{current:e.current,modals:[]}:e;case"UPDATE":{const{modalId:i,newProps:r}=n,a=e.modals.map(l=>l.id!==i?l:l.type==="content"||l.type==="confirm"?{...l,props:{...l.props,...r}}:l.type==="context"?{...l,props:{...l.props,...r,innerProps:{...l.props.innerProps,...r.innerProps}}}:l),o=((t=e.current)==null?void 0:t.id)===i&&a.find(l=>l.id===i)||e.current;return{...e,modals:a,current:o}}default:return e}}function Nie(e){if(!e)return{confirmProps:{},modalProps:{}};const{id:n,children:t,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:l,confirmProps:u,groupProps:f,labels:h,...d}=e;return{confirmProps:{id:n,children:t,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:l,confirmProps:u,groupProps:f,labels:h},modalProps:{id:n,...d}}}function $ie({children:e,modalProps:n,labels:t,modals:i}){const[r,a]=x.useReducer(Pie,{modals:[],current:null}),o=x.useRef(r);o.current=r;const l=x.useRef(!1),u=x.useCallback(j=>{l.current||(l.current=!0,o.current.modals.concat().reverse().forEach(T=>{ZE(T,j)}),l.current=!1),a({type:"CLOSE_ALL",canceled:j})},[o,a]),f=x.useCallback(({modalId:j,...T})=>{const A=j||ml();return a({type:"OPEN",modal:{id:A,type:"content",props:T}}),A},[a]),h=x.useCallback(({modalId:j,...T})=>{const A=j||ml();return a({type:"OPEN",modal:{id:A,type:"confirm",props:T}}),A},[a]),d=x.useCallback((j,{modalId:T,...A})=>{const O=T||ml();return a({type:"OPEN",modal:{id:O,type:"context",props:A,ctx:j}}),O},[a]),p=x.useCallback((j,T)=>{if(!l.current){const A=o.current.modals.find(O=>O.id===j);A&&(l.current=!0,ZE(A,T),l.current=!1)}a({type:"CLOSE",modalId:j,canceled:T})},[o,a]),g=x.useCallback(({modalId:j,...T})=>{a({type:"UPDATE",modalId:j,newProps:T})},[a]),b=x.useCallback(({modalId:j,...T})=>{a({type:"UPDATE",modalId:j,newProps:T})},[a]);Cie({openModal:f,openConfirmModal:h,openContextModal:({modal:j,...T})=>d(j,T),closeModal:p,closeContextModal:p,closeAllModals:u,updateModal:g,updateContextModal:b});const w={modalProps:n||{},modals:r.modals,openModal:f,openConfirmModal:h,openContextModal:d,closeModal:p,closeContextModal:p,closeAll:u,updateModal:g,updateContextModal:b},k=()=>{const j=o.current.current;switch(j==null?void 0:j.type){case"context":{const{innerProps:T,...A}=j.props,O=i[j.ctx];return{modalProps:A,content:v.jsx(O,{innerProps:T,context:w,id:j.id})}}case"confirm":{const{modalProps:T,confirmProps:A}=Nie(j.props);return{modalProps:T,content:v.jsx(Rie,{...A,id:j.id,labels:j.props.labels||t})}}case"content":{const{children:T,...A}=j.props;return{modalProps:A,content:T}}default:return{modalProps:{},content:null}}},{modalProps:_,content:S}=k();return v.jsxs(h9,{value:w,children:[v.jsx(Gi,{zIndex:xa("modal")+1,...n,..._,opened:r.modals.length>0,onClose:()=>{var j;return p((j=r.current)==null?void 0:j.id)},children:S}),e]})}function zie(e){let n=e,t=!1;const i=new Set;return{getState(){return n},updateState(r){n=typeof r=="function"?r(n):r},setState(r){this.updateState(r),i.forEach(a=>a(n))},initialize(r){t||(n=r,t=!0)},subscribe(r){return i.add(r),()=>i.delete(r)}}}function Lie(e){return x.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function Iie(e,n,t){const i=[],r=[],a={};for(const o of e){const l=o.position||n;a[l]=a[l]||0,a[l]+=1,a[l]<=t?r.push(o):i.push(o)}return{notifications:r,queue:i}}const Bie=()=>zie({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Wu=Bie(),Fie=(e=Wu)=>Lie(e);function Jf(e,n){const t=e.getState(),i=Iie(n([...t.notifications,...t.queue]),t.defaultPosition,t.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:t.limit,defaultPosition:t.defaultPosition})}function qie(e,n=Wu){const t=e.id||ml();return Jf(n,i=>e.id&&i.some(r=>r.id===e.id)?i:[...i,{...e,id:t}]),t}function AF(e,n=Wu){return Jf(n,t=>t.filter(i=>{var r;return i.id===e?((r=i.onClose)==null||r.call(i,i),!1):!0})),e}function Hie(e,n=Wu){return Jf(n,t=>t.map(i=>i.id===e.id?{...i,...e}:i)),e.id}function Uie(e=Wu){Jf(e,()=>[])}function Vie(e=Wu){Jf(e,n=>n.slice(0,e.getState().limit))}const hn={show:qie,hide:AF,update:Hie,clean:Uie,cleanQueue:Vie,updateState:Jf},OF=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function Wie(e,n){return e.reduce((t,i)=>(t[i.position||n].push(i),t),OF.reduce((t,i)=>(t[i]=[],t),{}))}const QE={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},Gie={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function Yie({state:e,maxHeight:n,position:t,transitionDuration:i}){const[r,a]=t.split("-"),o=a==="center"?`${r}-center`:a,l={opacity:0,maxHeight:n,transform:QE[o],transitionDuration:`${i}ms, ${i}ms, ${i}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},u={opacity:1,transform:Gie[o]},f={opacity:0,maxHeight:0,transform:QE[o]};return{...l,...{entering:u,entered:u,exiting:f,exited:f}[e]}}function Kie(e,n){return typeof n=="number"?n:n===!1||e===!1?!1:e}function TF({data:e,onHide:n,autoClose:t,paused:i,onHoverStart:r,onHoverEnd:a,...o}){const{autoClose:l,message:u,onOpen:f,...h}=e,d=Kie(t,e.autoClose),p=x.useRef(-1),[g,b]=x.useState(!1),w=()=>window.clearTimeout(p.current),k=()=>{n(e.id),w()},_=()=>{w(),typeof d=="number"&&(p.current=window.setTimeout(k,d))},S=()=>{b(!0),r==null||r()},j=()=>{b(!1),a==null||a()};return x.useEffect(()=>{var T;(T=e.onOpen)==null||T.call(e,e)},[]),x.useEffect(()=>(_(),w),[d]),x.useEffect(()=>(i||g?w():_(),w),[i,g]),v.jsx(c0,{...o,...h,onClose:k,onMouseEnter:S,onMouseLeave:j,children:u})}TF.displayName="@mantine/notifications/NotificationContainer";var EF={root:"m_b37d9ac7",notification:"m_5ed0edd0"};function YS(){return YS=Object.assign?Object.assign.bind():function(e){for(var n=1;n({root:{"--notifications-z-index":n==null?void 0:n.toString(),"--notifications-container-width":ve(t)}}),_o=Pe(e=>{const n=ye("Notifications",lre,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,attributes:u,position:f,autoClose:h,transitionDuration:d,containerWidth:p,notificationMaxHeight:g,limit:b,zIndex:w,store:k,portalProps:_,withinPortal:S,pauseResetOnHover:j,...T}=n,A=ci(),O=Fie(k),M=yX(),$=eC(),q=x.useRef({}),P=x.useRef(0),[L,U]=x.useState(0),G=x.useCallback(()=>U(Y=>Y+1),[]),B=x.useCallback(()=>U(Y=>Math.max(0,Y-1)),[]),R=A.respectReducedMotion&&$?1:d,D=Ze({name:"Notifications",classes:EF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:u,vars:l,varsResolver:RF});x.useEffect(()=>{k==null||k.updateState(Y=>({...Y,limit:b||5,defaultPosition:f}))},[b,f]),os(()=>{O.notifications.length>P.current&&setTimeout(()=>M(),0),P.current=O.notifications.length},[O.notifications]);const z=Wie(O.notifications,f),H=OF.reduce((Y,N)=>(Y[N]=z[N].map(({style:W,...V})=>v.jsx(sre,{timeout:R,onEnter:()=>q.current[V.id].offsetHeight,nodeRef:{current:q.current[V.id]},children:I=>v.jsx(TF,{ref:Q=>{Q&&(q.current[V.id]=Q)},data:V,onHide:Q=>AF(Q,k),autoClose:h,paused:j==="all"?L>0:!1,onHoverStart:G,onHoverEnd:B,...D("notification",{style:{...Yie({state:I,position:N,transitionDuration:R,maxHeight:g}),...W}})})},V.id)),Y),{});return v.jsxs(wl,{withinPortal:S,..._,children:[v.jsx(fe,{...D("root"),"data-position":"top-center",...T,children:v.jsx(tl,{children:H["top-center"]})}),v.jsx(fe,{...D("root"),"data-position":"top-left",...T,children:v.jsx(tl,{children:H["top-left"]})}),v.jsx(fe,{...D("root",{className:Tu.classNames.fullWidth}),"data-position":"top-right",...T,children:v.jsx(tl,{children:H["top-right"]})}),v.jsx(fe,{...D("root",{className:Tu.classNames.fullWidth}),"data-position":"bottom-right",...T,children:v.jsx(tl,{children:H["bottom-right"]})}),v.jsx(fe,{...D("root"),"data-position":"bottom-left",...T,children:v.jsx(tl,{children:H["bottom-left"]})}),v.jsx(fe,{...D("root"),"data-position":"bottom-center",...T,children:v.jsx(tl,{children:H["bottom-center"]})})]})});_o.classes=EF;_o.varsResolver=RF;_o.displayName="@mantine/notifications/Notifications";_o.show=hn.show;_o.hide=hn.hide;_o.update=hn.update;_o.clean=hn.clean;_o.cleanQueue=hn.cleanQueue;_o.updateState=hn.updateState;var Yk={exports:{}},wh={},Kk={exports:{}},Xk={};/** + `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function $te(e){e=Nte(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var n=e.suffix,t=e.allowNegative,i=e.allowLeadingZeros,r=e.onKeyDown;r===void 0&&(r=al);var a=e.onBlur;a===void 0&&(a=al);var o=e.thousandSeparator,l=e.decimalScale,u=e.fixedDecimalScale,f=e.prefix;f===void 0&&(f="");var h=e.defaultValue,d=e.value,p=e.valueIsNumericString,g=e.onValueChange,b=JB(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),w=d0(e),k=w.decimalSeparator,_=w.allowedDecimalSeparators,x=function(D){return GE(D,e)},C=function(D,L){return Rte(D,L,e)},T=ll(d)?h:d,A=p??Dte(T,f,n);ll(d)?ll(h)||(A=A||typeof h=="number"):A=A||typeof d=="number";var O=function(D){return eF(D)?D:(typeof D=="number"&&(D=iF(D)),A&&typeof l=="number"?VE(D,l,!!u):D)},M=aF(O(d),O(h),!!A,x,C,g),$=M[0],q=$.numAsString,R=$.formattedValue,I=M[1],z=function(D){var L=D.target,H=D.key,Y=L.selectionStart,P=L.selectionEnd,G=L.value;if(G===void 0&&(G=""),(H==="Backspace"||H==="Delete")&&PG?!1:P>=ie.start&&Pt?t:e}function Bte(e){return e.toString().replace(".","").length}function Fte(e,n){return(typeof e=="number"?e=n)&&(t===void 0||e<=t)}const Uk={size:"sm",step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},lF=(e,{size:n})=>({controls:{"--ni-chevron-size":In(n,"ni-chevron-size")}});function Hte(e,n,t){const i=e.toString(),r=oF.test(i),a=i.replace(/^0+(?=\d)/,""),o=parseFloat(a);if(Number.isNaN(o))return a;if(o>Number.MAX_SAFE_INTEGER)return n!==void 0?n:a;const l=Jo(o,t,n);return r?`${l.toString().replace(/^0+(?=\d)/,"")}.`:l}function Ute(e,n){if(e===""||e==="-")return e;const t=Ih(e);return t===null?e:n.clampBehavior==="blur"?zg(t,n.min,n.max):t}const vm=sp(e=>{const n=ye("NumberInput",Uk,e),{className:t,classNames:i,styles:r,unstyled:a,vars:o,onChange:l,onValueChange:u,value:f,defaultValue:h,max:d,min:p,step:g,hideControls:b,rightSection:w,isAllowed:k,clampBehavior:_,onBlur:x,allowDecimal:C,decimalScale:T,onKeyDown:A,onKeyDownCapture:O,handlersRef:M,startValue:$,disabled:q,rightSectionPointerEvents:R,allowNegative:I,readOnly:z,size:W,rightSectionWidth:U,stepHoldInterval:N,stepHoldDelay:D,allowLeadingZeros:L,withKeyboardEvents:H,trimLeadingZeroesOnBlur:Y,allowedDecimalSeparators:P,selectAllOnFocus:G,onMinReached:V,onMaxReached:B,onFocus:Q,attributes:ie,ref:re,...Z}=n,le=I??!0,ee=L??!0,se=Ze({name:"NumberInput",classes:VS,props:n,classNames:i,styles:r,unstyled:a,attributes:ie,vars:o,varsResolver:lF}),{resolvedClassNames:ke,resolvedStyles:te}=Wi({classNames:i,styles:r,props:n}),$e=S.useRef(Fk(f)||Fk(h)?"bigint":"number");Fk(f)?$e.current="bigint":typeof f=="number"&&($e.current="number");const xe=$e.current==="bigint",[Oe,ze]=Ai({value:f,defaultValue:h,finalValue:"",onChange:l}),we=D!==void 0&&N!==void 0,Ce=S.useRef(null),Ne=S.useRef(null),he=S.useRef(0),He=typeof p=="number"?p:void 0,Ye=typeof d=="number"?d:void 0,We=typeof g=="number"?g:Uk.step,Qe=typeof $=="number"?$:Uk.startValue,Je=rg(p),oe=rg(d),be=rg(g)??BigInt(1),Ke=rg($)??BigInt(0),en=qe=>!sF(qe,le)||ee&&KE.test(qe)?qe:Ih(qe)??qe,Ae=qe=>{const Ue=Number(qe);return Number.isSafeInteger(Ue)?Ue:void 0},an=(qe,Ue)=>{Ue.source==="event"&&ze(xe?en(qe.value):Fte(qe.floatValue,qe.value)&&!Lte.test(qe.value)&&!(ee&&KE.test(qe.value))&&!Ite.test(qe.value)&&!oF.test(qe.value)?qe.floatValue:qe.value),u==null||u(qe,Ue)},pn=qe=>{const Ue=String(qe).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Ue?Math.max(0,(Ue[1]?Ue[1].length:0)-(Ue[2]?+Ue[2]:0)):0},Dn=qe=>{Ce.current&&typeof qe<"u"&&Ce.current.setSelectionRange(qe,qe)},wn=S.useRef(AS);wn.current=()=>{if(xe){if(!Hk(Oe,le))return;let on;const un=Oe;if(typeof un=="bigint"){const Xn=un+be;oe!==void 0&&Xn>oe&&(B==null||B()),on=oe!==void 0&&Xn>oe?oe:Xn}else if(typeof un=="string"&&un!==""){const Xn=Ih(un);if(Xn===null)return;const It=Xn+be;oe!==void 0&&It>oe&&(B==null||B()),on=oe!==void 0&&It>oe?oe:It}else on=zg(Ke,Je,oe);const Kn=on.toString();ze(on),u==null||u({floatValue:Ae(on),formattedValue:Kn,value:Kn},{source:"increment"}),setTimeout(()=>{var Xn;return Dn((Xn=Ce.current)==null?void 0:Xn.value.length)},0);return}if(!qk(Oe))return;let qe;const Ue=pn(Oe),Bn=pn(We),ot=Math.max(Ue,Bn),Pn=10**ot;if(!WS(Oe)&&(typeof Oe!="number"||Number.isNaN(Oe)))qe=Jo(Qe,He,Ye);else if(Ye!==void 0){const on=(Math.round(Number(Oe)*Pn)+Math.round(We*Pn))/Pn;on>Ye&&(B==null||B()),qe=on<=Ye?on:Ye}else qe=(Math.round(Number(Oe)*Pn)+Math.round(We*Pn))/Pn;const rn=qe.toFixed(ot);ze(parseFloat(rn)),u==null||u({floatValue:parseFloat(rn),formattedValue:rn,value:rn},{source:"increment"}),setTimeout(()=>{var on;return Dn((on=Ce.current)==null?void 0:on.value.length)},0)};const ln=S.useRef(AS);ln.current=()=>{if(xe){if(!Hk(Oe,le))return;let un;const Kn=Je!==void 0?Je:le?void 0:BigInt(0),Xn=Oe;if(typeof Xn=="bigint"){const Rn=Xn-be;Kn!==void 0&&Rn{var Rn;return Dn((Rn=Ce.current)==null?void 0:Rn.value.length)},0);return}if(!qk(Oe))return;let qe;const Ue=He!==void 0?He:le?Number.MIN_SAFE_INTEGER:0,Bn=pn(Oe),ot=pn(We),Pn=Math.max(Bn,ot),rn=10**Pn;if(!WS(Oe)&&typeof Oe!="number"||Number.isNaN(Oe))qe=Jo(Qe,Ue,Ye);else{const un=(Math.round(Number(Oe)*rn)-Math.round(We*rn))/rn;Ue!==void 0&&un{var un;return Dn((un=Ce.current)==null?void 0:un.value.length)},0)};const tn=qe=>{var Pn,rn,on;const Ue=qe.clipboardData.getData("text"),Bn=Z.decimalSeparator||".",ot=(P||[".",","]).filter(un=>un!==Bn);if(ot.some(un=>Ue.includes(un))){qe.preventDefault();let un=Ue;ot.forEach(Xn=>{un=un.split(Xn).join(Bn)});const Kn=Ce.current;if(Kn){const Xn=Kn.selectionStart??0,It=Kn.selectionEnd??0,Rn=Kn.value,Mn=Rn.substring(0,Xn)+un+Rn.substring(It);(rn=(Pn=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:Pn.set)==null||rn.call(Kn,Mn),Kn.dispatchEvent(new Event("change",{bubbles:!0}));const Qn=Xn+un.length;setTimeout(()=>Dn(Qn),0)}}(on=Z.onPaste)==null||on.call(Z,qe)},zn=qe=>{var Ue,Bn;A==null||A(qe),!(z||!H)&&(qe.key==="ArrowUp"&&(qe.preventDefault(),(Ue=wn.current)==null||Ue.call(wn)),qe.key==="ArrowDown"&&(qe.preventDefault(),(Bn=ln.current)==null||Bn.call(ln)))},De=qe=>{if(O==null||O(qe),qe.key==="Backspace"){const Ue=Ce.current;Ue&&Ue.selectionStart===0&&Ue.selectionStart===Ue.selectionEnd&&(qe.preventDefault(),window.setTimeout(()=>Dn(0),0))}},Fe=qe=>{G&&setTimeout(()=>qe.currentTarget.select(),0),Q==null||Q(qe)},Gn=qe=>{let Ue=Oe;xe?(_==="blur"&&typeof Ue=="bigint"&&(Ue=zg(Ue,Je,oe)),Y&&typeof Ue=="string"&&(Ue=Ute(Ue,{min:Je,max:oe,clampBehavior:_}))):(_==="blur"&&typeof Ue=="number"&&(Ue=Jo(Ue,He,Ye)),Y&&typeof Ue=="string"&&pn(Ue)<15&&(Ue=Hte(Ue,Ye,He))),Oe!==Ue&&ze(Ue),x==null||x(qe)};cm(M,{increment:wn.current,decrement:ln.current});const En=qe=>{var Ue,Bn;qe?(Ue=wn.current)==null||Ue.call(wn):(Bn=ln.current)==null||Bn.call(ln),he.current+=1},gn=qe=>{if(En(qe),we){const Ue=typeof N=="number"?N:N(he.current);Ne.current=window.setTimeout(()=>gn(qe),Ue)}},xn=(qe,Ue)=>{var Bn;qe.preventDefault(),(Bn=Ce.current)==null||Bn.focus(),En(Ue),we&&(Ne.current=window.setTimeout(()=>gn(Ue),D))},at=()=>{Ne.current&&window.clearTimeout(Ne.current),Ne.current=null,he.current=0},Dt=v.jsxs("div",{...se("controls"),children:[v.jsx(Mt,{...se("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof Oe=="number"&&Ye!==void 0&&Oe>=Ye||typeof Oe=="bigint"&&oe!==void 0&&Oe>=oe,mod:{direction:"up"},onMouseDown:qe=>qe.preventDefault(),onPointerDown:qe=>{xn(qe,!0)},onPointerUp:at,onPointerLeave:at,children:v.jsx(YE,{direction:"up"})}),v.jsx(Mt,{...se("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof Oe=="number"&&He!==void 0&&Oe<=He||typeof Oe=="bigint"&&Je!==void 0&&Oe<=Je,mod:{direction:"down"},onMouseDown:qe=>qe.preventDefault(),onPointerDown:qe=>{xn(qe,!1)},onPointerUp:at,onPointerLeave:at,children:v.jsx(YE,{direction:"down"})})]});return v.jsx(Ni,{component:zte,allowNegative:I,className:vn(VS.root,t),size:W,...Z,inputMode:xe?"numeric":"decimal",readOnly:z,disabled:q,value:typeof Oe=="bigint"?Oe.toString():Oe,getInputRef:Vt(re,Ce),onValueChange:an,rightSection:b||z||!(xe?Hk(Oe,le):qk(Oe))?w:w||Dt,classNames:ke,styles:te,unstyled:a,__staticSelector:"NumberInput",decimalScale:xe?0:C?T:0,onPaste:tn,onFocus:Fe,onKeyDown:zn,onKeyDownCapture:De,rightSectionPointerEvents:R??(q?"none":void 0),rightSectionWidth:U??`var(--ni-right-section-width-${W||"sm"})`,allowLeadingZeros:L,allowedDecimalSeparators:P,onBlur:Gn,attributes:ie,isAllowed:qe=>{if(!(!k||k(qe)))return!1;if(_!=="strict")return!0;if(!xe)return qte(qe.floatValue,He,Ye);if(qe.value===""||qe.value==="-")return!0;const Ue=Ih(qe.value);return Ue===null?!0:(Je===void 0||Ue>=Je)&&(oe===void 0||Ue<=oe)}})});vm.classes={...Ni.classes,...VS};vm.varsResolver=lF;vm.displayName="@mantine/core/NumberInput";function Vte({reveal:e}){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:e?v.jsxs(v.Fragment,{children:[v.jsx("path",{fill:"none",d:"M0 0h256v256H0z"}),v.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M48 40l160 176M154.91 157.6a40 40 0 01-53.82-59.2M135.53 88.71a40 40 0 0132.3 35.53"}),v.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 00-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0054-12.6"})]}):v.jsxs(v.Fragment,{children:[v.jsx("path",{fill:"none",d:"M0 0h256v256H0z"}),v.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16",d:"M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72z"}),v.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]})})}var GS={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const Wte={visibilityToggleIcon:Vte,size:"sm"},uF=(e,{size:n})=>({root:{"--psi-icon-size":In(n,"psi-icon-size"),"--psi-button-size":In(n,"psi-button-size")}}),h0=Pe(e=>{const n=ye("PasswordInput",Wte,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,required:u,error:f,leftSection:h,disabled:d,id:p,variant:g,inputContainer:b,description:w,label:k,size:_,errorProps:x,descriptionProps:C,labelProps:T,withAsterisk:A,inputWrapperOrder:O,wrapperProps:M,radius:$,rightSection:q,rightSectionWidth:R,rightSectionPointerEvents:I,leftSectionWidth:z,visible:W,defaultVisible:U,onVisibilityChange:N,visibilityToggleIcon:D,visibilityToggleButtonProps:L,rightSectionProps:H,leftSectionProps:Y,leftSectionPointerEvents:P,withErrorStyles:G,mod:V,attributes:B,...Q}=n,ie=Pi(p),[re,Z]=Ai({value:W,defaultValue:U,finalValue:!1,onChange:N}),le=()=>Z(!re),ee=Ze({name:"PasswordInput",classes:GS,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:B,vars:l,varsResolver:uF}),{resolvedClassNames:se,resolvedStyles:ke}=Wi({classNames:t,styles:a,props:n}),{styleProps:te,rest:$e}=qu(Q),xe=(x==null?void 0:x.id)||`${ie}-error`,Oe=(C==null?void 0:C.id)||`${ie}-description`,ze=`${f&&typeof f!="boolean"?xe:""} ${w?Oe:""}`,we=ze.trim().length>0?ze.trim():void 0,Ce=v.jsx(Jn,{...ee("visibilityToggle"),disabled:d,radius:$,"aria-pressed":re,tabIndex:-1,"aria-label":"Toggle password visibility",...L,variant:(L==null?void 0:L.variant)??"subtle",color:"gray",unstyled:o,onTouchEnd:Ne=>{var he;Ne.preventDefault(),(he=L==null?void 0:L.onTouchEnd)==null||he.call(L,Ne),le()},onMouseDown:Ne=>{var he;Ne.preventDefault(),(he=L==null?void 0:L.onMouseDown)==null||he.call(L,Ne),le()},onKeyDown:Ne=>{var he;(he=L==null?void 0:L.onKeyDown)==null||he.call(L,Ne),Ne.key===" "&&(Ne.preventDefault(),le())},children:v.jsx(D,{reveal:re})});return v.jsx(Zt.Wrapper,{required:u,id:ie,label:k,error:f,description:w,size:_,classNames:se,styles:ke,__staticSelector:"PasswordInput",__stylesApiProps:n,unstyled:o,withAsterisk:A,inputWrapperOrder:O,inputContainer:b,variant:g,labelProps:{...T,htmlFor:ie},descriptionProps:{...C,id:Oe},errorProps:{...x,id:xe},mod:V,attributes:B,...ee("root"),...te,...M,children:v.jsx(Zt,{component:"div",error:f,leftSection:h,size:_,classNames:{...se,input:vn(GS.input,se==null?void 0:se.input)},styles:ke,radius:$,disabled:d,__staticSelector:"PasswordInput",__stylesApiProps:n,rightSectionWidth:R,rightSection:q??Ce,variant:g,unstyled:o,leftSectionWidth:z,rightSectionPointerEvents:I||"all",rightSectionProps:H,leftSectionProps:Y,leftSectionPointerEvents:P,withAria:!1,withErrorStyles:G,attributes:B,children:v.jsx("input",{required:u,"data-invalid":!!f||void 0,"data-with-left-section":!!h||void 0,...ee("innerInput"),disabled:d,id:ie,...$e,"aria-describedby":we,autoComplete:$e.autoComplete||"off",type:re?"text":"password"})})})});h0.classes={...Ni.classes,...GS};h0.varsResolver=uF;h0.displayName="@mantine/core/PasswordInput";function Gte({offset:e,position:n,defaultOpened:t}){const[i,r]=S.useState(t),a=S.useRef(null),{x:o,y:l,elements:u,refs:f,update:h,placement:d}=Ry({placement:n,middleware:[pC({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=d.includes("right")?e:n.includes("left")?e*-1:0,g=d.includes("bottom")?e:n.includes("top")?e*-1:0,b=S.useCallback(({clientX:w,clientY:k})=>{f.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:k,left:w+p,top:k+g,right:w,bottom:k}}})},[u.reference]);return S.useEffect(()=>{if(f.floating.current){const w=a.current;w.addEventListener("mousemove",b);const k=ns(f.floating.current);return k.forEach(_=>{_.addEventListener("scroll",h)}),()=>{w.removeEventListener("mousemove",b),k.forEach(_=>{_.removeEventListener("scroll",h)})}}},[u.reference,f.floating.current,h,b,i]),{handleMouseMove:b,x:o,y:l,opened:i,setOpened:r,boundaryRef:a,floating:f.setFloating}}var m0={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Yte={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:xa("popover")},cF=(e,{radius:n,color:t})=>({tooltip:{"--tooltip-radius":n===void 0?void 0:Ut(n),"--tooltip-bg":t?ft(t,e):void 0,"--tooltip-color":t?"var(--mantine-color-white)":void 0}}),p0=Pe(e=>{const n=ye("TooltipFloating",Yte,e),{children:t,refProp:i,withinPortal:r,style:a,className:o,classNames:l,styles:u,unstyled:f,radius:h,color:d,label:p,offset:g,position:b,multiline:w,zIndex:k,disabled:_,defaultOpened:x,variant:C,vars:T,portalProps:A,attributes:O,ref:M,...$}=n,q=ci(),R=Ze({name:"TooltipFloating",props:n,classes:m0,className:o,style:a,classNames:l,styles:u,unstyled:f,attributes:O,rootSelector:"tooltip",vars:T,varsResolver:cF}),{handleMouseMove:I,x:z,y:W,opened:U,boundaryRef:N,floating:D,setOpened:L}=Gte({offset:g,position:b,defaultOpened:x}),H=Cl(t);if(!H)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Y=Vt(N,Sy(H),M),P=H.props,G=B=>{var Q;(Q=P.onMouseEnter)==null||Q.call(P,B),I(B),L(!0)},V=B=>{var Q;(Q=P.onMouseLeave)==null||Q.call(P,B),L(!1)};return v.jsxs(v.Fragment,{children:[v.jsx(wl,{...A,withinPortal:r,children:v.jsx(de,{...$,...R("tooltip",{style:{...iL(a,q),zIndex:k,display:!_&&U?"block":"none",top:(W&&Math.round(W))??"",left:(z&&Math.round(z))??""}}),variant:C,ref:D,mod:{multiline:w},children:p})}),S.cloneElement(H,{...P,[i]:Y,onMouseEnter:G,onMouseLeave:V})]})});p0.classes=m0;p0.varsResolver=cF;p0.displayName="@mantine/core/TooltipFloating";const fF=S.createContext({withinGroup:!1}),Kte={openDelay:0,closeDelay:0};function r9(e){const{openDelay:n,closeDelay:t,children:i}=ye("TooltipGroup",Kte,e);return v.jsx(fF,{value:{withinGroup:!0},children:v.jsx($L,{delay:{open:n,close:t},children:i})})}r9.displayName="@mantine/core/TooltipGroup";r9.extend=e=>e;function Xte(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function Zte(e){const n=Xte(e.middlewares),t=[EL(e.offset)];return n.shift&&t.push(pC(typeof n.shift=="boolean"?{padding:8}:{padding:8,...n.shift})),n.flip&&t.push(typeof n.flip=="boolean"?Qg():Qg(n.flip)),t.push(ML({element:e.arrowRef,padding:e.arrowOffset})),n.inline?t.push(typeof n.inline=="boolean"?Kh():Kh(n.inline)):e.inline&&t.push(Kh()),t}function Qte(e){var T,A,O;const[n,t]=S.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:n,r=S.use(fF).withinGroup,a=Pi(),o=S.useCallback(M=>{t(M),M&&k(a)},[a]),{x:l,y:u,context:f,refs:h,placement:d,middlewareData:{arrow:{x:p,y:g}={}}}=Ry({strategy:e.strategy,placement:e.position,open:i,onOpenChange:o,middleware:Zte(e),whileElementsMounted:LS}),{delay:b,currentId:w,setCurrentId:k}=zL(f,{id:a}),{getReferenceProps:_,getFloatingProps:x}=IL([PL(f,{enabled:(T=e.events)==null?void 0:T.hover,delay:r?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((A=e.events)!=null&&A.touch)}),_J(f,{enabled:(O=e.events)==null?void 0:O.focus,visibleOnly:!0}),BL(f,{role:"tooltip"}),LL(f,{enabled:typeof e.opened>"u"})]);os(()=>{var M;(M=e.onPositionChange)==null||M.call(e,d)},[d]);const C=i&&w&&w!==a;return{x:l,y:u,arrowX:p,arrowY:g,reference:h.setReference,floating:h.setFloating,getFloatingProps:x,getReferenceProps:_,isGroupPhase:C,opened:i,placement:d}}const Jte={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:xa("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},dF=(e,{radius:n,color:t,variant:i,autoContrast:r})=>{const a=e.variantColorResolver({theme:e,color:t||e.primaryColor,autoContrast:r,variant:i||"filled"});return{tooltip:{"--tooltip-radius":n===void 0?void 0:Ut(n),"--tooltip-bg":t?a.background:void 0,"--tooltip-color":t?a.color:void 0}}},kt=Pe(e=>{const n=ye("Tooltip",Jte,e),{children:t,position:i,refProp:r,label:a,openDelay:o,closeDelay:l,onPositionChange:u,opened:f,defaultOpened:h,withinPortal:d,radius:p,color:g,classNames:b,styles:w,unstyled:k,style:_,className:x,withArrow:C,arrowSize:T,arrowOffset:A,arrowRadius:O,arrowPosition:M,offset:$,transitionProps:q,multiline:R,events:I,zIndex:z,disabled:W,onClick:U,onMouseEnter:N,onMouseLeave:D,inline:L,variant:H,keepMounted:Y,vars:P,portalProps:G,mod:V,floatingStrategy:B,middlewares:Q,autoContrast:ie,attributes:re,target:Z,ref:le,...ee}=n,{dir:se}=Hu(),ke=S.useRef(null),te=Qte({position:GL(se,i),closeDelay:l,openDelay:o,onPositionChange:u,opened:f,defaultOpened:h,events:I,arrowRef:ke,arrowOffset:A,offset:typeof $=="number"?$+(C?T/2:0):$,inline:L,strategy:B,middlewares:Q});S.useEffect(()=>{const Ne=Z instanceof HTMLElement?Z:typeof Z=="string"?document.querySelector(Z):(Z==null?void 0:Z.current)||null;Ne&&te.reference(Ne)},[Z,te]);const $e=Ze({name:"Tooltip",props:n,classes:m0,className:x,style:_,classNames:b,styles:w,unstyled:k,attributes:re,rootSelector:"tooltip",vars:P,varsResolver:dF}),xe=Cl(t);if(!Z&&!xe)throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Oe=$e("tooltip");if(Z){const Ne=kE(q,{duration:100,transition:"fade"});return v.jsx(v.Fragment,{children:v.jsx(wl,{...G,withinPortal:d,children:v.jsx(ls,{...Ne,keepMounted:Y,mounted:!W&&!!te.opened,duration:te.isGroupPhase?10:Ne.duration,children:he=>v.jsxs(de,{...ee,"data-fixed":B==="fixed"||void 0,variant:H,mod:[{multiline:R},V],...Oe,...te.getFloatingProps({ref:te.floating,className:Oe.className,style:{...Oe.style,...he,zIndex:z,top:te.y??0,left:te.x??0}}),children:[a,v.jsx(Jg,{ref:ke,arrowX:te.arrowX,arrowY:te.arrowY,visible:C,position:te.placement,arrowSize:T,arrowOffset:A,arrowRadius:O,arrowPosition:M,...$e("arrow")})]})})})})}const ze=xe.props,we=Vt(te.reference,Sy(xe),le),Ce=kE(q,{duration:100,transition:"fade"});return v.jsxs(v.Fragment,{children:[v.jsx(wl,{...G,withinPortal:d,children:v.jsx(ls,{...Ce,keepMounted:Y,mounted:!W&&!!te.opened,duration:te.isGroupPhase?10:Ce.duration,children:Ne=>v.jsxs(de,{...ee,"data-fixed":B==="fixed"||void 0,variant:H,mod:[{multiline:R},V],...te.getFloatingProps({ref:te.floating,className:$e("tooltip").className,style:{...$e("tooltip").style,...Ne,zIndex:z,top:te.y??0,left:te.x??0}}),children:[a,v.jsx(Jg,{ref:ke,arrowX:te.arrowX,arrowY:te.arrowY,visible:C,position:te.placement,arrowSize:T,arrowOffset:A,arrowRadius:O,arrowPosition:M,...$e("arrow")})]})})}),S.cloneElement(xe,te.getReferenceProps({onClick:U,onMouseEnter:N,onMouseLeave:D,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,...ze,className:vn(x,ze.className),[r]:we}))]})});kt.classes=m0;kt.varsResolver=dF;kt.displayName="@mantine/core/Tooltip";kt.Floating=p0;kt.Group=r9;const eie={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},Ar=sp(e=>{const n=ye("Select",eie,e),{classNames:t,styles:i,unstyled:r,vars:a,dropdownOpened:o,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:f,onFocus:h,onBlur:d,onClick:p,onChange:g,data:b,value:w,defaultValue:k,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:x,onOptionSubmit:C,comboboxProps:T,readOnly:A,disabled:O,filter:M,limit:$,withScrollArea:q,maxDropdownHeight:R,size:I,searchable:z,rightSection:W,checkIconPosition:U,withCheckIcon:N,withAlignedLabels:D,nothingFoundMessage:L,name:H,form:Y,searchValue:P,defaultSearchValue:G,onSearchChange:V,allowDeselect:B,error:Q,rightSectionPointerEvents:ie,id:re,clearable:Z,clearSectionMode:le,clearButtonProps:ee,hiddenInputProps:se,renderOption:ke,onClear:te,autoComplete:$e,scrollAreaProps:xe,__defaultRightSection:Oe,__clearSection:ze,__clearable:we,chevronColor:Ce,autoSelectOnBlur:Ne,openOnFocus:he,attributes:He,...Ye}=n,We=S.useMemo(()=>Iy(b),[b]),Qe=S.useRef({}),Je=S.useMemo(()=>vp(We),[We]),oe=Pi(re),[be,Ke,en]=Ai({value:w,defaultValue:k,finalValue:null,onChange:g}),Ae=be!=null?`${be}`in Je?Je[`${be}`]:Qe.current[`${be}`]:void 0,an=wX(Ae),[pn,Dn,wn]=Ai({value:P,defaultValue:G,finalValue:Ae?Ae.label:"",onChange:V}),ln=Vf({opened:o,defaultOpened:l,onDropdownOpen:()=>{f==null||f(),x?ln.selectFirstOption():ln.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),setTimeout(ln.resetSelectedOption,0)}}),tn=En=>{Dn(En),ln.resetSelectedOption()},{resolvedClassNames:zn,resolvedStyles:De}=Wi({props:n,styles:i,classNames:t});S.useEffect(()=>{_&&ln.selectFirstOption()},[_,pn]),S.useEffect(()=>{w===null&&tn(""),w!=null&&Ae&&((an==null?void 0:an.value)!==Ae.value||(an==null?void 0:an.label)!==Ae.label)&&tn(Ae.label)},[w,Ae]),S.useEffect(()=>{var En,gn;!en&&!wn&&tn(be!=null?`${be}`in Je?(En=Je[`${be}`])==null?void 0:En.label:((gn=Qe.current[`${be}`])==null?void 0:gn.label)||"":"")},[Je,be]),S.useEffect(()=>{be&&`${be}`in Je&&(Qe.current[`${be}`]=Je[`${be}`])},[Je,be]);const Fe=v.jsx(On.ClearButton,{...ee,onClear:()=>{Ke(null,null),tn(""),te==null||te()}}),Gn=Z&&!!be&&!O&&!A;return v.jsxs(v.Fragment,{children:[v.jsxs(On,{store:ln,__staticSelector:"Select",classNames:zn,styles:De,unstyled:r,readOnly:A,size:I,attributes:He,keepMounted:Ne,onOptionSubmit:En=>{C==null||C(En);const gn=B&&`${Je[En].value}`==`${be}`?null:Je[En],xn=gn?gn.value:null;xn!==be&&Ke(xn,gn),!en&&tn(xn!=null&&(gn==null?void 0:gn.label)||""),ln.closeDropdown()},...T,children:[v.jsx(On.Target,{targetType:z?"input":"button",autoComplete:$e,withExpandedAttribute:!0,children:v.jsx(Ni,{id:oe,__defaultRightSection:v.jsx(On.Chevron,{size:I,error:Q,unstyled:r,color:Ce}),__clearSection:Fe,__clearable:Gn,__clearSectionMode:le,rightSection:W,rightSectionPointerEvents:ie||"none",...Ye,size:I,__staticSelector:"Select",disabled:O,readOnly:A||!z,value:pn,onChange:En=>{tn(En.currentTarget.value),ln.openDropdown(),_&&ln.selectFirstOption()},onFocus:En=>{he&&z&&ln.openDropdown(),h==null||h(En)},onBlur:En=>{Ne&&ln.clickSelectedOption(),z&&ln.closeDropdown();const gn=be!=null&&(`${be}`in Je?Je[`${be}`]:Qe.current[`${be}`]);tn(gn&&gn.label||""),d==null||d(En)},onClick:En=>{z?ln.openDropdown():ln.toggleDropdown(),p==null||p(En)},classNames:zn,styles:De,unstyled:r,pointer:!z,error:Q,attributes:He})}),v.jsx(Hy,{data:We,hidden:A||O,filter:M,search:pn,limit:$,hiddenWhenEmpty:!L,withScrollArea:q,maxDropdownHeight:R,filterOptions:!!z&&(Ae==null?void 0:Ae.label)!==pn,value:be,checkIconPosition:U,withCheckIcon:N,withAlignedLabels:D,nothingFoundMessage:L,unstyled:r,labelId:Ye.label?`${oe}-label`:void 0,"aria-label":Ye.label?void 0:Ye["aria-label"],renderOption:ke,scrollAreaProps:xe})]}),v.jsx(On.HiddenInput,{value:be,name:H,form:Y,disabled:O,...se})]})});Ar.classes={...Ni.classes,...On.classes};Ar.displayName="@mantine/core/Select";function hF(e){if(e!==void 0)return typeof e=="number"?ve(e):e}function nie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i,autoRows:r,selector:a}){var d;const o=ci(),l=n===void 0?e:n,u=i!==void 0,f=Fu({"--sg-spacing-x":Kt(Gr(e)),"--sg-spacing-y":Kt(Gr(l)),"--sg-auto-rows":r,...u?{"--sg-min-col-width":hF(i)}:{"--sg-cols":(d=Gr(t))==null?void 0:d.toString()}}),h=zt(o.breakpoints).reduce((p,g)=>(p[g]||(p[g]={}),typeof e=="object"&&e[g]!==void 0&&(p[g]["--sg-spacing-x"]=Kt(e[g])),typeof l=="object"&&l[g]!==void 0&&(p[g]["--sg-spacing-y"]=Kt(l[g])),!u&&typeof t=="object"&&t[g]!==void 0&&(p[g]["--sg-cols"]=t[g]),p),{});return v.jsx(Bf,{styles:f,media:um(zt(h),o.breakpoints).filter(p=>zt(h[p.value]).length>0).map(p=>({query:`(min-width: ${o.breakpoints[p.value]})`,styles:h[p.value]})),selector:a})}function Vk(e){return typeof e=="object"&&e!==null?zt(e):[]}function tie(e){return e.sort((n,t)=>lm(n)-lm(t))}function iie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i}){return tie(Array.from(new Set([...Vk(e),...Vk(n),...i!==void 0?[]:Vk(t)])))}function rie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i,autoRows:r,selector:a}){var d;const o=n===void 0?e:n,l=i!==void 0,u=Fu({"--sg-spacing-x":Kt(Gr(e)),"--sg-spacing-y":Kt(Gr(o)),"--sg-auto-rows":r,...l?{"--sg-min-col-width":hF(i)}:{"--sg-cols":(d=Gr(t))==null?void 0:d.toString()}}),f=iie({spacing:e,verticalSpacing:n,cols:t,minColWidth:i}),h=f.reduce((p,g)=>(p[g]||(p[g]={}),typeof e=="object"&&e[g]!==void 0&&(p[g]["--sg-spacing-x"]=Kt(e[g])),typeof o=="object"&&o[g]!==void 0&&(p[g]["--sg-spacing-y"]=Kt(o[g])),!l&&typeof t=="object"&&t[g]!==void 0&&(p[g]["--sg-cols"]=t[g]),p),{});return v.jsx(Bf,{styles:u,container:f.map(p=>({query:`simple-grid (min-width: ${p})`,styles:h[p]})),selector:a})}var mF={container:"m_925c2d2c",root:"m_2415a157"};const aie={cols:1,spacing:"md",type:"media"},Ko=Pe(e=>{const n=ye("SimpleGrid",aie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,cols:u,verticalSpacing:f,spacing:h,type:d,minColWidth:p,autoFlow:g,autoRows:b,attributes:w,...k}=n,_=Ze({name:"SimpleGrid",classes:mF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l}),x=Cy(),C=p!==void 0?g||"auto-fill":void 0;return d==="container"?v.jsxs(v.Fragment,{children:[v.jsx(rie,{...n,selector:`.${x}`}),v.jsx("div",{..._("container"),children:v.jsx(de,{..._("root",{className:x}),...k,"data-auto-cols":C})})]}):v.jsxs(v.Fragment,{children:[v.jsx(nie,{...n,selector:`.${x}`}),v.jsx(de,{..._("root",{className:x}),...k,"data-auto-cols":C})]})});Ko.classes=mF;Ko.displayName="@mantine/core/SimpleGrid";var pF={root:"m_6d731127"};const oie={gap:"md",align:"stretch",justify:"flex-start"},vF=(e,{gap:n,align:t,justify:i})=>({root:{"--stack-gap":Kt(n),"--stack-align":t,"--stack-justify":i}}),bn=Pe(e=>{const n=ye("Stack",oie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,align:u,justify:f,gap:h,variant:d,attributes:p,...g}=n;return v.jsx(de,{...Ze({name:"Stack",props:n,classes:pF,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:p,vars:l,varsResolver:vF})("root"),variant:d,...g})});bn.classes=pF;bn.varsResolver=vF;bn.displayName="@mantine/core/Stack";const[sie,lie]=Or("Table component was not found in the tree");var yp={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function uie(e,n){if(!n)return;const t={};return n.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),n.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),n.striped&&e.striped&&(t["data-striped"]=e.striped),n.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),n.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),n.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function Vu(e,n){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,i=Pe(r=>{const a=ye(t,{},r),{classNames:o,className:l,style:u,styles:f,...h}=a,d=lie();return v.jsx(de,{component:e,...uie(d,n),...d.getStyles(e,{className:l,classNames:o,style:u,styles:f,props:a}),...h})});return i.displayName=`@mantine/core/${t}`,i.classes=yp,i}const YS=Vu("th",{columnBorder:!0}),gF=Vu("td",{columnBorder:!0}),Lg=Vu("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),yF=Vu("thead",{stickyHeader:!0}),bF=Vu("tbody"),wF=Vu("tfoot"),kF=Vu("caption",{captionSide:!0}),cie={type:"scrollarea"},_F=(e,{minWidth:n,maxHeight:t,type:i})=>({scrollContainer:{"--table-min-width":ve(n),"--table-max-height":ve(t),"--table-overflow":i==="native"?"auto":void 0}}),v0=Pe(e=>{const n=ye("TableScrollContainer",cie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,minWidth:f,maxHeight:h,type:d,scrollAreaProps:p,attributes:g,...b}=n,w=Ze({name:"TableScrollContainer",classes:yp,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:g,vars:l,varsResolver:_F,rootSelector:"scrollContainer"});return v.jsx(de,{component:d==="scrollarea"?cr:"div",...d==="scrollarea"?h?{offsetScrollbars:"xy",...p}:{offsetScrollbars:"x",...p}:{},...w("scrollContainer"),...b,children:v.jsx("div",{...w("scrollContainerInner"),children:u})})});v0.classes=yp;v0.varsResolver=_F;v0.displayName="@mantine/core/TableScrollContainer";function a9({data:e}){return v.jsxs(v.Fragment,{children:[e.caption&&v.jsx(kF,{children:e.caption}),e.head&&v.jsx(yF,{children:v.jsx(Lg,{children:e.head.map((n,t)=>v.jsx(YS,{children:n},t))})}),e.body&&v.jsx(bF,{children:e.body.map((n,t)=>v.jsx(Lg,{children:n.map((i,r)=>v.jsx(gF,{children:i},r))},t))}),e.foot&&v.jsx(wF,{children:v.jsx(Lg,{children:e.foot.map((n,t)=>v.jsx(YS,{children:n},t))})})]})}a9.displayName="@mantine/core/TableDataRenderer";const fie={withRowBorders:!0,verticalSpacing:7},xF=(e,{layout:n,captionSide:t,horizontalSpacing:i,verticalSpacing:r,borderColor:a,stripedColor:o,highlightOnHoverColor:l,striped:u,highlightOnHover:f,stickyHeaderOffset:h,stickyHeader:d})=>({table:{"--table-layout":n,"--table-caption-side":t,"--table-horizontal-spacing":Kt(i),"--table-vertical-spacing":Kt(r),"--table-border-color":a?ft(a,e):void 0,"--table-striped-color":u&&o?ft(o,e):void 0,"--table-highlight-on-hover-color":f&&l?ft(l,e):void 0,"--table-sticky-header-offset":d?ve(h):void 0}}),Xe=Pe(e=>{const n=ye("Table",fie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,horizontalSpacing:u,verticalSpacing:f,captionSide:h,stripedColor:d,highlightOnHoverColor:p,striped:g,highlightOnHover:b,withColumnBorders:w,withRowBorders:k,withTableBorder:_,borderColor:x,layout:C,data:T,children:A,stickyHeader:O,stickyHeaderOffset:M,mod:$,tabularNums:q,attributes:R,...I}=n,z=Ze({name:"Table",props:n,className:i,style:r,classes:yp,classNames:t,styles:a,unstyled:o,attributes:R,rootSelector:"table",vars:l,varsResolver:xF});return v.jsx(sie,{value:{getStyles:z,stickyHeader:O,striped:g===!0?"odd":g||void 0,highlightOnHover:b,withColumnBorders:w,withRowBorders:k,captionSide:h||"bottom"},children:v.jsx(de,{component:"table",mod:[{"data-with-table-border":_,"data-tabular-nums":q},$],...z("table"),...I,children:A||!!T&&v.jsx(a9,{data:T})})})});Xe.classes=yp;Xe.varsResolver=xF;Xe.displayName="@mantine/core/Table";Xe.Td=gF;Xe.Th=YS;Xe.Tr=Lg;Xe.Thead=yF;Xe.Tbody=bF;Xe.Tfoot=wF;Xe.Caption=kF;Xe.ScrollContainer=v0;Xe.DataRenderer=a9;const[die,o9]=Or("Tabs component was not found in the tree");var bp={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const s9=Pe(e=>{const n=ye("TabsList",null,e),{children:t,className:i,grow:r,justify:a,classNames:o,styles:l,style:u,mod:f,...h}=n,d=o9();return v.jsx(de,{...d.getStyles("list",{className:i,style:u,classNames:o,styles:l,props:n,variant:d.variant}),role:"tablist",variant:d.variant,mod:[{grow:r,orientation:d.orientation,placement:d.orientation==="vertical"&&d.placement,inverted:d.inverted},f],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...h,children:t})});s9.classes=bp;s9.displayName="@mantine/core/TabsList";const l9=Pe(e=>{const n=ye("TabsPanel",null,e),{children:t,className:i,value:r,classNames:a,styles:o,style:l,mod:u,keepMounted:f,...h}=n,d=op(),p=o9(),g=p.value===r,b=p.keepMounted||f,w=p.keepMountedMode!=="display-none",k=b&&w&&d!=="test"?v.jsx(S.Activity,{mode:g?"visible":"hidden",children:t}):b||g?t:null;return v.jsx(de,{...p.getStyles("panel",{className:i,classNames:a,styles:o,style:[l,g?void 0:{display:"none"}],props:n}),mod:[{orientation:p.orientation},u],role:"tabpanel",id:p.getPanelId(r),"aria-labelledby":p.getTabId(r),...h,children:k})});l9.classes=bp;l9.displayName="@mantine/core/TabsPanel";const u9=Pe(e=>{const n=ye("TabsTab",null,e),{className:t,children:i,rightSection:r,leftSection:a,value:o,onClick:l,onKeyDown:u,disabled:f,color:h,style:d,classNames:p,styles:g,vars:b,mod:w,tabIndex:k,..._}=n,x=ci(),{dir:C}=Hu(),T=o9(),A=o===T.value,O=$=>{T.onChange(T.allowTabDeactivation&&o===T.value?null:o),l==null||l($)},M={classNames:p,styles:g,props:n};return v.jsxs(Mt,{...T.getStyles("tab",{className:t,style:d,variant:T.variant,...M}),disabled:f,unstyled:T.unstyled,variant:T.variant,mod:[{active:A,disabled:f,orientation:T.orientation,inverted:T.inverted,placement:T.orientation==="vertical"&&T.placement},w],role:"tab",id:T.getTabId(o),"aria-selected":A,tabIndex:k!==void 0?k:A||T.value===null?0:-1,"aria-controls":T.getPanelId(o),onClick:O,__vars:{"--tabs-color":h?ft(h,x):void 0},onKeyDown:Z6({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:T.activateTabWithKeyboard,loop:T.loop,orientation:T.orientation||"horizontal",dir:C,onKeyDown:u}),..._,children:[a&&v.jsx("span",{...T.getStyles("tabSection",M),"data-position":"left",children:a}),i&&v.jsx("span",{...T.getStyles("tabLabel",M),children:i}),r&&v.jsx("span",{...T.getStyles("tabSection",M),"data-position":"right",children:r})]})});u9.classes=bp;u9.displayName="@mantine/core/TabsTab";const XE="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",hie={keepMounted:!0,keepMountedMode:"activity",orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},SF=(e,{radius:n,color:t,autoContrast:i})=>({root:{"--tabs-radius":Ut(n),"--tabs-color":ft(t,e),"--tabs-text-color":ap(i,e)?If({color:t,theme:e,autoContrast:i}):void 0}}),wt=Pe(e=>{const n=ye("Tabs",hie,e),{defaultValue:t,value:i,onChange:r,orientation:a,children:o,loop:l,id:u,activateTabWithKeyboard:f,allowTabDeactivation:h,variant:d,color:p,radius:g,inverted:b,placement:w,keepMounted:k,keepMountedMode:_,classNames:x,styles:C,unstyled:T,className:A,style:O,vars:M,autoContrast:$,mod:q,attributes:R,...I}=n,z=Pi(u),[W,U]=Ai({value:i,defaultValue:t,finalValue:null,onChange:r}),N=Ze({name:"Tabs",props:n,classes:bp,className:A,style:O,classNames:x,styles:C,unstyled:T,attributes:R,vars:M,varsResolver:SF});return v.jsx(die,{value:{placement:w,value:W,orientation:a,id:z,loop:l,activateTabWithKeyboard:f,getTabId:BT(`${z}-tab`,XE),getPanelId:BT(`${z}-panel`,XE),onChange:U,allowTabDeactivation:h,variant:d,color:p,radius:g,inverted:b,keepMounted:k,keepMountedMode:_,unstyled:T,getStyles:N},children:v.jsx(de,{id:z,variant:d,mod:[{orientation:a,inverted:a==="horizontal"&&b,placement:a==="vertical"&&w},q],...N("root"),...I,children:o})})});wt.classes=bp;wt.varsResolver=SF;wt.displayName="@mantine/core/Tabs";wt.Tab=u9;wt.Panel=l9;wt.List=s9;function mie({data:e,value:n}){const t=n.map(i=>i.trim().toLowerCase());return e.reduce((i,r)=>(Eu(r)?i.push({group:r.group,items:r.items.filter(a=>t.indexOf(a.label.toLowerCase().trim())===-1)}):t.indexOf(r.label.toLowerCase().trim())===-1&&i.push(r),i),[])}function pie(e,n){return e?n.split(new RegExp(`[${e.join("")}]`)).map(t=>t.trim()).filter(t=>t!==""):[n]}function ZE({splitChars:e,allowDuplicates:n,maxTags:t,value:i,currentTags:r,isDuplicate:a,onDuplicate:o}){const l=pie(e,i),u=[];if(n)u.push(...r,...l);else{u.push(...r);for(const f of l)(a?h=>a(h,u):h=>u.some(d=>d.toLowerCase()===h.toLowerCase()))(f)?o==null||o(f):u.push(f)}return t?u.slice(0,t):u}const vie={maxTags:1/0,acceptValueOnBlur:!0,splitChars:[","],hiddenInputValuesDivider:",",openOnFocus:!0,size:"sm"},c9=Pe(e=>{const n=ye("TagsInput",vie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,size:u,value:f,defaultValue:h,onChange:d,onKeyDown:p,maxTags:g,allowDuplicates:b,onDuplicate:w,variant:k,data:_,dropdownOpened:x,defaultDropdownOpened:C,onDropdownOpen:T,onDropdownClose:A,selectFirstOptionOnChange:O,selectFirstOptionOnDropdownOpen:M,onOptionSubmit:$,comboboxProps:q,filter:R,limit:I,withScrollArea:z,maxDropdownHeight:W,searchValue:U,defaultSearchValue:N,onSearchChange:D,readOnly:L,disabled:H,splitChars:Y,onFocus:P,onBlur:G,onPaste:V,radius:B,rightSection:Q,rightSectionWidth:ie,rightSectionPointerEvents:re,rightSectionProps:Z,leftSection:le,leftSectionWidth:ee,leftSectionPointerEvents:se,leftSectionProps:ke,inputContainer:te,inputWrapperOrder:$e,withAsterisk:xe,required:Oe,labelProps:ze,descriptionProps:we,errorProps:Ce,wrapperProps:Ne,description:he,label:He,error:Ye,withErrorStyles:We,name:Qe,form:Je,id:oe,clearable:be,clearSectionMode:Ke,clearButtonProps:en,hiddenInputProps:Ae,hiddenInputValuesDivider:an,mod:pn,renderOption:Dn,renderPill:wn,onRemove:ln,onClear:tn,onMaxTags:zn,scrollAreaProps:De,acceptValueOnBlur:Fe,isDuplicate:Gn,openOnFocus:En,attributes:gn,ref:xn,loading:at,loadingPosition:Dt,...qe}=n,Ue=Pi(oe),Bn=Iy(_),ot=vp(Bn),Pn=S.useRef(null),rn=Vt(Pn,xn),on=Vf({opened:x,defaultOpened:C,onDropdownOpen:()=>{T==null||T(),M&&on.selectFirstOption()},onDropdownClose:()=>{A==null||A(),on.resetSelectedOption()}}),{styleProps:un,rest:{type:Kn,autoComplete:Xn,...It}}=qu(qe),[Rn,Mn]=Ai({value:f,defaultValue:h,finalValue:[],onChange:d}),[Qn,Rt]=Ai({value:U,defaultValue:N,finalValue:"",onChange:D}),fi=yn=>{Rt(yn),on.resetSelectedOption()},zi=Ze({name:"TagsInput",classes:{},props:n,classNames:t,styles:a,unstyled:o}),{resolvedClassNames:Ka,resolvedStyles:Co}=Wi({props:n,styles:a,classNames:t}),Ta=yn=>{if((Gn?Gn(yn,Rn):Rn.some(oi=>oi.toLowerCase()===yn.toLowerCase()))&&(w==null||w(yn),!b)){fi("");return}if(Rn.length>=g){zn==null||zn(yn);return}$==null||$(yn),fi(""),yn.length>0&&Mn([...Rn,yn])},hr=yn=>{if(p==null||p(yn),yn.isPropagationStopped())return;const oi=Qn.trim(),{length:fn}=oi;if(Y.includes(yn.key)&&fn>0&&(Mn(ZE({splitChars:Y,allowDuplicates:b,maxTags:g,value:Qn,currentTags:Rn,isDuplicate:Gn,onDuplicate:w})),fi(""),yn.preventDefault()),yn.key==="Enter"&&fn>0&&!yn.nativeEvent.isComposing){if(yn.preventDefault(),document.querySelector(`#${on.listId} [data-combobox-option][data-combobox-selected]`))return;Ta(oi)}yn.key==="Backspace"&&fn===0&&Rn.length>0&&!yn.nativeEvent.isComposing&&!L&&(ln==null||ln(Rn[Rn.length-1]),Mn(Rn.slice(0,Rn.length-1)))},jo=yn=>{V==null||V(yn),yn.preventDefault(),yn.clipboardData&&(Mn(ZE({splitChars:Y,allowDuplicates:b,maxTags:g,value:`${Qn}${yn.clipboardData.getData("text/plain")}`,currentTags:Rn,isDuplicate:Gn,onDuplicate:w})),fi(""))},Mr=Rn.map((yn,oi)=>{const fn=()=>{const Dr=Rn.slice();Dr.splice(oi,1),Mn(Dr),ln==null||ln(yn)};return wn?v.jsx(S.Fragment,{children:wn({option:ot[yn]||{value:yn,label:yn,disabled:!1},value:yn,onRemove:fn,disabled:H||L})},`${yn}-${oi}`):v.jsx(xl,{withRemoveButton:!L,onRemove:fn,unstyled:o,disabled:H,attributes:gn,...zi("pill"),children:yn},`${yn}-${oi}`)});S.useEffect(()=>{O&&on.selectFirstOption()},[O,Rn,Qn]);const mr=v.jsx(On.ClearButton,{...en,onClear:()=>{var yn;Mn([]),fi(""),(yn=Pn.current)==null||yn.focus(),on.openDropdown(),tn==null||tn()}});return v.jsxs(v.Fragment,{children:[v.jsxs(On,{store:on,classNames:Ka,styles:Co,unstyled:o,size:u,readOnly:L,__staticSelector:"TagsInput",attributes:gn,onOptionSubmit:yn=>{$==null||$(yn),fi(""),Rn.length>=g?zn==null||zn(yn):Mn([...Rn,ot[yn].value]),on.resetSelectedOption()},...q,children:[v.jsx(On.DropdownTarget,{children:v.jsx(Mu,{...un,__staticSelector:"TagsInput",classNames:Ka,styles:Co,unstyled:o,size:u,className:i,style:r,variant:k,disabled:H,radius:B,rightSection:Q,__clearSection:mr,__clearable:be&&Rn.length>0&&!H&&!L,__clearSectionMode:Ke,rightSectionWidth:ie,rightSectionPointerEvents:re,rightSectionProps:Z,leftSection:le,leftSectionWidth:ee,leftSectionPointerEvents:se,leftSectionProps:ke,loading:at,loadingPosition:Dt,inputContainer:te,inputWrapperOrder:$e,withAsterisk:xe,required:Oe,labelProps:ze,descriptionProps:we,errorProps:Ce,wrapperProps:Ne,description:he,label:He,error:Ye,withErrorStyles:We,__stylesApiProps:{...n,multiline:!0},id:Ue,mod:pn,attributes:gn,children:v.jsxs(xl.Group,{disabled:H,unstyled:o,...zi("pillsList"),children:[Mr,v.jsx(On.EventsTarget,{autoComplete:Xn,withExpandedAttribute:!0,children:v.jsx(Mu.Field,{...It,ref:rn,...zi("inputField"),unstyled:o,onKeyDown:hr,onFocus:yn=>{P==null||P(yn),En&&on.openDropdown()},onBlur:yn=>{G==null||G(yn),Fe&&Ta(Qn),on.closeDropdown()},onPaste:jo,value:Qn,onChange:yn=>fi(yn.currentTarget.value),required:Oe&&Rn.length===0,disabled:H,readOnly:L,id:Ue})})]})})}),v.jsx(Hy,{data:mie({data:Bn,value:Rn}),hidden:L||H,filter:R,search:Qn,limit:I,hiddenWhenEmpty:!0,withScrollArea:z,maxDropdownHeight:W,unstyled:o,labelId:He?`${Ue}-label`:void 0,"aria-label":He?void 0:qe["aria-label"],renderOption:Dn,scrollAreaProps:De})]}),v.jsx(On.HiddenInput,{name:Qe,form:Je,value:Rn,valuesDivider:an,disabled:H,...Ae})]})});c9.classes={...Ni.classes,...On.classes};c9.displayName="@mantine/core/TagsInput";const sr=Pe(e=>v.jsx(Ni,{component:"input",...ye("TextInput",null,e),__staticSelector:"TextInput"}));sr.classes=Ni.classes;sr.displayName="@mantine/core/TextInput";const[gie,yie]=Or("Timeline component was not found in tree");var f9={root:"m_43657ece",itemTitle:"m_2ebe8099",item:"m_436178ff",itemBullet:"m_8affcee1",itemBody:"m_540e8f41"};const d9=Pe(e=>{const{classNames:n,className:t,style:i,styles:r,vars:a,__active:o,__align:l,__lineActive:u,__vars:f,bullet:h,radius:d,color:p,lineVariant:g,children:b,title:w,mod:k,..._}=ye("TimelineItem",null,e),x=yie(),C=ci(),T={classNames:n,styles:r};return v.jsxs(de,{...x.getStyles("item",{...T,className:t,style:i}),mod:[{"line-active":u,active:o},k],__vars:{"--tli-radius":d!==void 0?Ut(d):void 0,"--tli-color":p?ft(p,C):void 0,"--tli-border-style":g||void 0},..._,children:[v.jsx(de,{...x.getStyles("itemBullet",T),mod:{"with-child":!!h,align:l,active:o},children:h}),v.jsxs("div",{...x.getStyles("itemBody",T),children:[w&&v.jsx("div",{...x.getStyles("itemTitle",T),children:w}),v.jsx("div",{...x.getStyles("itemContent",T),children:b})]})]})});d9.classes=f9;d9.displayName="@mantine/core/TimelineItem";const bie={active:-1,align:"left"},CF=(e,{bulletSize:n,lineWidth:t,radius:i,color:r,autoContrast:a})=>({root:{"--tl-bullet-size":ve(n),"--tl-line-width":ve(t),"--tl-radius":i===void 0?void 0:Ut(i),"--tl-color":r?ft(r,e):void 0,"--tl-icon-color":ap(a,e)?If({color:r,theme:e,autoContrast:a}):void 0}}),cf=Pe(e=>{const n=ye("Timeline",bie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,children:u,active:f,color:h,radius:d,bulletSize:p,align:g,lineWidth:b,reverseActive:w,mod:k,autoContrast:_,attributes:x,...C}=n,T=Ze({name:"Timeline",classes:f9,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:x,vars:l,varsResolver:CF}),A=S.Children.toArray(u),O=A.map((M,$)=>{var q,R;return S.cloneElement(M,{unstyled:o,__align:g,__active:((q=M.props)==null?void 0:q.active)||(w?f>=A.length-$-1:f>=$),__lineActive:((R=M.props)==null?void 0:R.lineActive)||(w?f>=A.length-$-1:f-1>=$)})});return v.jsx(gie,{value:{getStyles:T},children:v.jsx(de,{...T("root"),mod:[{align:g},k],...C,children:O})})});cf.classes=f9;cf.varsResolver=CF;cf.displayName="@mantine/core/Timeline";cf.Item=d9;const wie=["h1","h2","h3","h4","h5","h6"],kie=["xs","sm","md","lg","xl"];function _ie(e,n){const t=n!==void 0?n:`h${e}`;return wie.includes(t)?{fontSize:`var(--mantine-${t}-font-size)`,fontWeight:`var(--mantine-${t}-font-weight)`,lineHeight:`var(--mantine-${t}-line-height)`}:kie.includes(t)?{fontSize:`var(--mantine-font-size-${t})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:ve(t),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var jF={root:"m_8a5d1357"};const xie={order:1},AF=(e,{order:n,size:t,lineClamp:i,textWrap:r})=>{const a=_ie(n||1,t);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof i=="number"?i.toString():void 0,"--title-text-wrap":r}}},El=Pe(e=>{const n=ye("Title",xie,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,order:l,vars:u,size:f,variant:h,lineClamp:d,textWrap:p,mod:g,attributes:b,...w}=n,k=Ze({name:"Title",props:n,classes:jF,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:u,varsResolver:AF});return[1,2,3,4,5,6].includes(l)?v.jsx(de,{...k("root"),component:`h${l}`,variant:h,mod:[{order:l,"data-line-clamp":typeof d=="number"},g],size:f,...w}):null});El.classes=jF;El.varsResolver=AF;El.displayName="@mantine/core/Title";const h9=S.createContext(null);h9.displayName="@mantine/modals/ModalsContext";function Sie(){const e=S.use(h9);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}const[Cie,Wu]=xX("mantine-modals"),jie=e=>{const n=e.modalId||ml();return Wu("openModal")({...e,modalId:n}),n},Aie=e=>{const n=e.modalId||ml();return Wu("openConfirmModal")({...e,modalId:n}),n},Oie=e=>{const n=e.modalId||ml();return Wu("openContextModal")({...e,modalId:n}),n},Tie=Wu("closeModal"),Eie=Wu("closeAllModals"),Mie=e=>Wu("updateModal")(e),Die=e=>Wu("updateContextModal")(e),Ra={open:jie,close:Tie,closeAll:Eie,openConfirmModal:Aie,openContextModal:Oie,updateModal:Mie,updateContextModal:Die};function Rie({id:e,cancelProps:n,confirmProps:t,labels:i={cancel:"",confirm:""},closeOnConfirm:r=!0,closeOnCancel:a=!0,groupProps:o,onCancel:l,onConfirm:u,children:f}){const{cancel:h,confirm:d}=i,p=Sie(),g=w=>{typeof(n==null?void 0:n.onClick)=="function"&&(n==null||n.onClick(w)),typeof l=="function"&&l(),a&&p.closeModal(e)},b=w=>{typeof(t==null?void 0:t.onClick)=="function"&&(t==null||t.onClick(w)),typeof u=="function"&&u(),r&&p.closeModal(e)};return v.jsxs(v.Fragment,{children:[f&&v.jsx(de,{mb:"md",children:f}),v.jsxs(je,{mt:f?0:"md",justify:"flex-end",...o,children:[v.jsx(Vn,{variant:"default",...n,onClick:g,children:(n==null?void 0:n.children)||h}),v.jsx(Vn,{...t,onClick:b,children:(t==null?void 0:t.children)||d})]})]})}function QE(e,n){var t,i,r,a;n&&e.type==="confirm"&&((i=(t=e.props).onCancel)==null||i.call(t)),(a=(r=e.props).onClose)==null||a.call(r)}function Pie(e,n){var t;switch(n.type){case"OPEN":return{current:n.modal,modals:[...e.modals,n.modal]};case"CLOSE":{if(!e.modals.find(r=>r.id===n.modalId))return e;const i=e.modals.filter(r=>r.id!==n.modalId);return{current:i[i.length-1]||e.current,modals:i}}case"CLOSE_ALL":return e.modals.length?{current:e.current,modals:[]}:e;case"UPDATE":{const{modalId:i,newProps:r}=n,a=e.modals.map(l=>l.id!==i?l:l.type==="content"||l.type==="confirm"?{...l,props:{...l.props,...r}}:l.type==="context"?{...l,props:{...l.props,...r,innerProps:{...l.props.innerProps,...r.innerProps}}}:l),o=((t=e.current)==null?void 0:t.id)===i&&a.find(l=>l.id===i)||e.current;return{...e,modals:a,current:o}}default:return e}}function Nie(e){if(!e)return{confirmProps:{},modalProps:{}};const{id:n,children:t,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:l,confirmProps:u,groupProps:f,labels:h,...d}=e;return{confirmProps:{id:n,children:t,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:l,confirmProps:u,groupProps:f,labels:h},modalProps:{id:n,...d}}}function $ie({children:e,modalProps:n,labels:t,modals:i}){const[r,a]=S.useReducer(Pie,{modals:[],current:null}),o=S.useRef(r);o.current=r;const l=S.useRef(!1),u=S.useCallback(C=>{l.current||(l.current=!0,o.current.modals.concat().reverse().forEach(T=>{QE(T,C)}),l.current=!1),a({type:"CLOSE_ALL",canceled:C})},[o,a]),f=S.useCallback(({modalId:C,...T})=>{const A=C||ml();return a({type:"OPEN",modal:{id:A,type:"content",props:T}}),A},[a]),h=S.useCallback(({modalId:C,...T})=>{const A=C||ml();return a({type:"OPEN",modal:{id:A,type:"confirm",props:T}}),A},[a]),d=S.useCallback((C,{modalId:T,...A})=>{const O=T||ml();return a({type:"OPEN",modal:{id:O,type:"context",props:A,ctx:C}}),O},[a]),p=S.useCallback((C,T)=>{if(!l.current){const A=o.current.modals.find(O=>O.id===C);A&&(l.current=!0,QE(A,T),l.current=!1)}a({type:"CLOSE",modalId:C,canceled:T})},[o,a]),g=S.useCallback(({modalId:C,...T})=>{a({type:"UPDATE",modalId:C,newProps:T})},[a]),b=S.useCallback(({modalId:C,...T})=>{a({type:"UPDATE",modalId:C,newProps:T})},[a]);Cie({openModal:f,openConfirmModal:h,openContextModal:({modal:C,...T})=>d(C,T),closeModal:p,closeContextModal:p,closeAllModals:u,updateModal:g,updateContextModal:b});const w={modalProps:n||{},modals:r.modals,openModal:f,openConfirmModal:h,openContextModal:d,closeModal:p,closeContextModal:p,closeAll:u,updateModal:g,updateContextModal:b},k=()=>{const C=o.current.current;switch(C==null?void 0:C.type){case"context":{const{innerProps:T,...A}=C.props,O=i[C.ctx];return{modalProps:A,content:v.jsx(O,{innerProps:T,context:w,id:C.id})}}case"confirm":{const{modalProps:T,confirmProps:A}=Nie(C.props);return{modalProps:T,content:v.jsx(Rie,{...A,id:C.id,labels:C.props.labels||t})}}case"content":{const{children:T,...A}=C.props;return{modalProps:A,content:T}}default:return{modalProps:{},content:null}}},{modalProps:_,content:x}=k();return v.jsxs(h9,{value:w,children:[v.jsx(Gi,{zIndex:xa("modal")+1,...n,..._,opened:r.modals.length>0,onClose:()=>{var C;return p((C=r.current)==null?void 0:C.id)},children:x}),e]})}function zie(e){let n=e,t=!1;const i=new Set;return{getState(){return n},updateState(r){n=typeof r=="function"?r(n):r},setState(r){this.updateState(r),i.forEach(a=>a(n))},initialize(r){t||(n=r,t=!0)},subscribe(r){return i.add(r),()=>i.delete(r)}}}function Lie(e){return S.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function Iie(e,n,t){const i=[],r=[],a={};for(const o of e){const l=o.position||n;a[l]=a[l]||0,a[l]+=1,a[l]<=t?r.push(o):i.push(o)}return{notifications:r,queue:i}}const Bie=()=>zie({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Gu=Bie(),Fie=(e=Gu)=>Lie(e);function Jf(e,n){const t=e.getState(),i=Iie(n([...t.notifications,...t.queue]),t.defaultPosition,t.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:t.limit,defaultPosition:t.defaultPosition})}function qie(e,n=Gu){const t=e.id||ml();return Jf(n,i=>e.id&&i.some(r=>r.id===e.id)?i:[...i,{...e,id:t}]),t}function OF(e,n=Gu){return Jf(n,t=>t.filter(i=>{var r;return i.id===e?((r=i.onClose)==null||r.call(i,i),!1):!0})),e}function Hie(e,n=Gu){return Jf(n,t=>t.map(i=>i.id===e.id?{...i,...e}:i)),e.id}function Uie(e=Gu){Jf(e,()=>[])}function Vie(e=Gu){Jf(e,n=>n.slice(0,e.getState().limit))}const sn={show:qie,hide:OF,update:Hie,clean:Uie,cleanQueue:Vie,updateState:Jf},TF=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function Wie(e,n){return e.reduce((t,i)=>(t[i.position||n].push(i),t),TF.reduce((t,i)=>(t[i]=[],t),{}))}const JE={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},Gie={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function Yie({state:e,maxHeight:n,position:t,transitionDuration:i}){const[r,a]=t.split("-"),o=a==="center"?`${r}-center`:a,l={opacity:0,maxHeight:n,transform:JE[o],transitionDuration:`${i}ms, ${i}ms, ${i}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},u={opacity:1,transform:Gie[o]},f={opacity:0,maxHeight:0,transform:JE[o]};return{...l,...{entering:u,entered:u,exiting:f,exited:f}[e]}}function Kie(e,n){return typeof n=="number"?n:n===!1||e===!1?!1:e}function EF({data:e,onHide:n,autoClose:t,paused:i,onHoverStart:r,onHoverEnd:a,...o}){const{autoClose:l,message:u,onOpen:f,...h}=e,d=Kie(t,e.autoClose),p=S.useRef(-1),[g,b]=S.useState(!1),w=()=>window.clearTimeout(p.current),k=()=>{n(e.id),w()},_=()=>{w(),typeof d=="number"&&(p.current=window.setTimeout(k,d))},x=()=>{b(!0),r==null||r()},C=()=>{b(!1),a==null||a()};return S.useEffect(()=>{var T;(T=e.onOpen)==null||T.call(e,e)},[]),S.useEffect(()=>(_(),w),[d]),S.useEffect(()=>(i||g?w():_(),w),[i,g]),v.jsx(f0,{...o,...h,onClose:k,onMouseEnter:x,onMouseLeave:C,children:u})}EF.displayName="@mantine/notifications/NotificationContainer";var MF={root:"m_b37d9ac7",notification:"m_5ed0edd0"};function KS(){return KS=Object.assign?Object.assign.bind():function(e){for(var n=1;n({root:{"--notifications-z-index":n==null?void 0:n.toString(),"--notifications-container-width":ve(t)}}),_o=Pe(e=>{const n=ye("Notifications",lre,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,attributes:u,position:f,autoClose:h,transitionDuration:d,containerWidth:p,notificationMaxHeight:g,limit:b,zIndex:w,store:k,portalProps:_,withinPortal:x,pauseResetOnHover:C,...T}=n,A=ci(),O=Fie(k),M=yX(),$=eC(),q=S.useRef({}),R=S.useRef(0),[I,z]=S.useState(0),W=S.useCallback(()=>z(Y=>Y+1),[]),U=S.useCallback(()=>z(Y=>Math.max(0,Y-1)),[]),N=A.respectReducedMotion&&$?1:d,D=Ze({name:"Notifications",classes:MF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:u,vars:l,varsResolver:PF});S.useEffect(()=>{k==null||k.updateState(Y=>({...Y,limit:b||5,defaultPosition:f}))},[b,f]),os(()=>{O.notifications.length>R.current&&setTimeout(()=>M(),0),R.current=O.notifications.length},[O.notifications]);const L=Wie(O.notifications,f),H=TF.reduce((Y,P)=>(Y[P]=L[P].map(({style:G,...V})=>v.jsx(sre,{timeout:N,onEnter:()=>q.current[V.id].offsetHeight,nodeRef:{current:q.current[V.id]},children:B=>v.jsx(EF,{ref:Q=>{Q&&(q.current[V.id]=Q)},data:V,onHide:Q=>OF(Q,k),autoClose:h,paused:C==="all"?I>0:!1,onHoverStart:W,onHoverEnd:U,...D("notification",{style:{...Yie({state:B,position:P,transitionDuration:N,maxHeight:g}),...G}})})},V.id)),Y),{});return v.jsxs(wl,{withinPortal:x,..._,children:[v.jsx(de,{...D("root"),"data-position":"top-center",...T,children:v.jsx(tl,{children:H["top-center"]})}),v.jsx(de,{...D("root"),"data-position":"top-left",...T,children:v.jsx(tl,{children:H["top-left"]})}),v.jsx(de,{...D("root",{className:Tu.classNames.fullWidth}),"data-position":"top-right",...T,children:v.jsx(tl,{children:H["top-right"]})}),v.jsx(de,{...D("root",{className:Tu.classNames.fullWidth}),"data-position":"bottom-right",...T,children:v.jsx(tl,{children:H["bottom-right"]})}),v.jsx(de,{...D("root"),"data-position":"bottom-left",...T,children:v.jsx(tl,{children:H["bottom-left"]})}),v.jsx(de,{...D("root"),"data-position":"bottom-center",...T,children:v.jsx(tl,{children:H["bottom-center"]})})]})});_o.classes=MF;_o.varsResolver=PF;_o.displayName="@mantine/notifications/Notifications";_o.show=sn.show;_o.hide=sn.hide;_o.update=sn.update;_o.clean=sn.clean;_o.cleanQueue=sn.cleanQueue;_o.updateState=sn.updateState;var Kk={exports:{}},wh={},Xk={exports:{}},Zk={};/** * @license React * scheduler.production.js * @@ -82,7 +82,7 @@ ${o?`${l("light")}{${o}}`:""}`}function Zv({theme:e,color:n,colorScheme:t,name:i * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var iM;function ure(){return iM||(iM=1,(function(e){function n(D,z){var H=D.length;D.push(z);e:for(;0>>1,N=D[Y];if(0>>1;Yr(I,H))Qr(ie,I)?(D[Y]=ie,D[Q]=H,Y=Q):(D[Y]=I,D[V]=H,Y=V);else if(Qr(ie,H))D[Y]=ie,D[Q]=H,Y=Q;else break e}}return z}function r(D,z){var H=D.sortIndex-z.sortIndex;return H!==0?H:D.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],f=[],h=1,d=null,p=3,g=!1,b=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function T(D){for(var z=t(f);z!==null;){if(z.callback===null)i(f);else if(z.startTime<=D)i(f),z.sortIndex=z.expirationTime,n(u,z);else break;z=t(f)}}function A(D){if(w=!1,T(D),!b)if(t(u)!==null)b=!0,O||(O=!0,U());else{var z=t(f);z!==null&&R(A,z.startTime-D)}}var O=!1,M=-1,$=5,q=-1;function P(){return k?!0:!(e.unstable_now()-q<$)}function L(){if(k=!1,O){var D=e.unstable_now();q=D;var z=!0;try{e:{b=!1,w&&(w=!1,S(M),M=-1),g=!0;var H=p;try{n:{for(T(D),d=t(u);d!==null&&!(d.expirationTime>D&&P());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,p=d.priorityLevel;var N=Y(d.expirationTime<=D);if(D=e.unstable_now(),typeof N=="function"){d.callback=N,T(D),z=!0;break n}d===t(u)&&i(u),T(D)}else i(u);d=t(u)}if(d!==null)z=!0;else{var W=t(f);W!==null&&R(A,W.startTime-D),z=!1}}break e}finally{d=null,p=H,g=!1}z=void 0}}finally{z?U():O=!1}}}var U;if(typeof j=="function")U=function(){j(L)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,B=G.port2;G.port1.onmessage=L,U=function(){B.postMessage(null)}}else U=function(){_(L,0)};function R(D,z){M=_(function(){D(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125Y?(D.sortIndex=H,n(f,D),t(u)===null&&D===t(f)&&(w?(S(M),M=-1):w=!0,R(A,H-Y))):(D.sortIndex=N,n(u,D),b||g||(b=!0,O||(O=!0,U()))),D},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(D){var z=p;return function(){var H=p;p=z;try{return D.apply(this,arguments)}finally{p=H}}}})(Xk)),Xk}var rM;function cre(){return rM||(rM=1,Kk.exports=ure()),Kk.exports}/** + */var rM;function ure(){return rM||(rM=1,(function(e){function n(D,L){var H=D.length;D.push(L);e:for(;0>>1,P=D[Y];if(0>>1;Yr(B,H))Qr(ie,B)?(D[Y]=ie,D[Q]=H,Y=Q):(D[Y]=B,D[V]=H,Y=V);else if(Qr(ie,H))D[Y]=ie,D[Q]=H,Y=Q;else break e}}return L}function r(D,L){var H=D.sortIndex-L.sortIndex;return H!==0?H:D.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],f=[],h=1,d=null,p=3,g=!1,b=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function T(D){for(var L=t(f);L!==null;){if(L.callback===null)i(f);else if(L.startTime<=D)i(f),L.sortIndex=L.expirationTime,n(u,L);else break;L=t(f)}}function A(D){if(w=!1,T(D),!b)if(t(u)!==null)b=!0,O||(O=!0,z());else{var L=t(f);L!==null&&N(A,L.startTime-D)}}var O=!1,M=-1,$=5,q=-1;function R(){return k?!0:!(e.unstable_now()-q<$)}function I(){if(k=!1,O){var D=e.unstable_now();q=D;var L=!0;try{e:{b=!1,w&&(w=!1,x(M),M=-1),g=!0;var H=p;try{n:{for(T(D),d=t(u);d!==null&&!(d.expirationTime>D&&R());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,p=d.priorityLevel;var P=Y(d.expirationTime<=D);if(D=e.unstable_now(),typeof P=="function"){d.callback=P,T(D),L=!0;break n}d===t(u)&&i(u),T(D)}else i(u);d=t(u)}if(d!==null)L=!0;else{var G=t(f);G!==null&&N(A,G.startTime-D),L=!1}}break e}finally{d=null,p=H,g=!1}L=void 0}}finally{L?z():O=!1}}}var z;if(typeof C=="function")z=function(){C(I)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,U=W.port2;W.port1.onmessage=I,z=function(){U.postMessage(null)}}else z=function(){_(I,0)};function N(D,L){M=_(function(){D(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125Y?(D.sortIndex=H,n(f,D),t(u)===null&&D===t(f)&&(w?(x(M),M=-1):w=!0,N(A,H-Y))):(D.sortIndex=P,n(u,D),b||g||(b=!0,O||(O=!0,z()))),D},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(D){var L=p;return function(){var H=p;p=L;try{return D.apply(this,arguments)}finally{p=H}}}})(Zk)),Zk}var aM;function cre(){return aM||(aM=1,Xk.exports=ure()),Xk.exports}/** * @license React * react-dom-client.production.js * @@ -90,410 +90,415 @@ ${o?`${l("light")}{${o}}`:""}`}function Zv({theme:e,color:n,colorScheme:t,name:i * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var aM;function fre(){if(aM)return wh;aM=1;var e=cre(),n=K6(),t=Gz();function i(s){var c="https://react.dev/errors/"+s;if(1N||(s.current=Y[N],Y[N]=null,N--)}function I(s,c){N++,Y[N]=s.current,s.current=c}var Q=W(null),ie=W(null),re=W(null),Z=W(null);function le(s,c){switch(I(re,c),I(ie,s),I(Q,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?iT(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=iT(c),s=rT(c,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}V(Q),I(Q,s)}function ee(){V(Q),V(ie),V(re)}function se(s){s.memoizedState!==null&&I(Z,s);var c=Q.current,m=rT(c,s.type);c!==m&&(I(ie,s),I(Q,m))}function ke(s){ie.current===s&&(V(Q),V(ie)),Z.current===s&&(V(Z),hh._currentValue=H)}var te,$e;function xe(s){if(te===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);te=c&&c[1]||"",$e=-1P||(s.current=Y[P],Y[P]=null,P--)}function B(s,c){P++,Y[P]=s.current,s.current=c}var Q=G(null),ie=G(null),re=G(null),Z=G(null);function le(s,c){switch(B(re,c),B(ie,s),B(Q,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?rT(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=rT(c),s=aT(c,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}V(Q),B(Q,s)}function ee(){V(Q),V(ie),V(re)}function se(s){s.memoizedState!==null&&B(Z,s);var c=Q.current,m=aT(c,s.type);c!==m&&(B(ie,s),B(Q,m))}function ke(s){ie.current===s&&(V(Q),V(ie)),Z.current===s&&(V(Z),hh._currentValue=H)}var te,$e;function xe(s){if(te===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);te=c&&c[1]||"",$e=-1)":-1C||ne[y]!==pe[C]){var Oe=` -`+ne[y].replace(" at new "," at ");return s.displayName&&Oe.includes("")&&(Oe=Oe.replace("",s.displayName)),Oe}while(1<=y&&0<=C);break}}}finally{Ae=!1,Error.prepareStackTrace=m}return(m=s?s.displayName||s.name:"")?xe(m):""}function we(s,c){switch(s.tag){case 26:case 27:case 5:return xe(s.type);case 16:return xe("Lazy");case 13:return s.child!==c&&c!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return ze(s.type,!1);case 11:return ze(s.type.render,!1);case 1:return ze(s.type,!0);case 31:return xe("Activity");default:return""}}function Ce(s){try{var c="",m=null;do c+=we(s,m),m=s,s=s.return;while(s);return c}catch(y){return` +`);for(j=y=0;yj||ne[y]!==pe[j]){var Te=` +`+ne[y].replace(" at new "," at ");return s.displayName&&Te.includes("")&&(Te=Te.replace("",s.displayName)),Te}while(1<=y&&0<=j);break}}}finally{Oe=!1,Error.prepareStackTrace=m}return(m=s?s.displayName||s.name:"")?xe(m):""}function we(s,c){switch(s.tag){case 26:case 27:case 5:return xe(s.type);case 16:return xe("Lazy");case 13:return s.child!==c&&c!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return ze(s.type,!1);case 11:return ze(s.type.render,!1);case 1:return ze(s.type,!0);case 31:return xe("Activity");default:return""}}function Ce(s){try{var c="",m=null;do c+=we(s,m),m=s,s=s.return;while(s);return c}catch(y){return` Error generating stack: `+y.message+` -`+y.stack}}var Ne=Object.prototype.hasOwnProperty,he=e.unstable_scheduleCallback,He=e.unstable_cancelCallback,Ye=e.unstable_shouldYield,We=e.unstable_requestPaint,Qe=e.unstable_now,Je=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,be=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,en=e.unstable_LowPriority,je=e.unstable_IdlePriority,an=e.log,pn=e.unstable_setDisableYieldValue,Dn=null,bn=null;function sn(s){if(typeof an=="function"&&pn(s),bn&&typeof bn.setStrictMode=="function")try{bn.setStrictMode(Dn,s)}catch{}}var nn=Math.clz32?Math.clz32:Fe,$n=Math.log,De=Math.LN2;function Fe(s){return s>>>=0,s===0?32:31-($n(s)/De|0)|0}var Vn=256,En=262144,gn=4194304;function xn(s){var c=s&42;if(c!==0)return c;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function at(s,c,m){var y=s.pendingLanes;if(y===0)return 0;var C=0,E=s.suspendedLanes,F=s.pingedLanes;s=s.warmLanes;var K=y&134217727;return K!==0?(y=K&~E,y!==0?C=xn(y):(F&=K,F!==0?C=xn(F):m||(m=K&~s,m!==0&&(C=xn(m))))):(K=y&~E,K!==0?C=xn(K):F!==0?C=xn(F):m||(m=y&~s,m!==0&&(C=xn(m)))),C===0?0:c!==0&&c!==C&&(c&E)===0&&(E=C&-C,m=c&-c,E>=m||E===32&&(m&4194048)!==0)?c:C}function Mt(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function qe(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 Ue(){var s=gn;return gn<<=1,(gn&62914560)===0&&(gn=4194304),s}function In(s){for(var c=[],m=0;31>m;m++)c.push(s);return c}function ot(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Pn(s,c,m,y,C,E){var F=s.pendingLanes;s.pendingLanes=m,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=m,s.entangledLanes&=m,s.errorRecoveryDisabledLanes&=m,s.shellSuspendCounter=0;var K=s.entanglements,ne=s.expirationTimes,pe=s.hiddenUpdates;for(m=F&~m;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var qp=/[\n"\\]/g;function mr(s){return s.replace(qp,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function _d(s,c,m,y,C,E,F,K){s.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?s.type=F:s.removeAttribute("type"),c!=null?F==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+tr(c)):s.value!==""+tr(c)&&(s.value=""+tr(c)):F!=="submit"&&F!=="reset"||s.removeAttribute("value"),c!=null?Sd(s,F,tr(c)):m!=null?Sd(s,F,tr(m)):y!=null&&s.removeAttribute("value"),C==null&&E!=null&&(s.defaultChecked=!!E),C!=null&&(s.checked=C&&typeof C!="function"&&typeof C!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?s.name=""+tr(K):s.removeAttribute("name")}function xd(s,c,m,y,C,E,F,K){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(s.type=E),c!=null||m!=null){if(!(E!=="submit"&&E!=="reset"||c!=null)){wd(s);return}m=m!=null?""+tr(m):"",c=c!=null?""+tr(c):m,K||c===s.value||(s.value=c),s.defaultValue=c}y=y??C,y=typeof y!="function"&&typeof y!="symbol"&&!!y,s.checked=K?s.checked:!!y,s.defaultChecked=!!y,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(s.name=F),wd(s)}function Sd(s,c,m){c==="number"&&ql(s.ownerDocument)===s||s.defaultValue===""+m||(s.defaultValue=""+m)}function Ka(s,c,m,y){if(s=s.options,c){c={};for(var C=0;C"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ce=!1;if(X)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){ce=!0}}),window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,_e)}catch{ce=!1}var Ie=null,fn=null,Wn=null;function ht(){if(Wn)return Wn;var s,c=fn,m=c.length,y,C="value"in Ie?Ie.value:Ie.textContent,E=C.length;for(s=0;s=Pd),cA=" ",fA=!1;function dA(s,c){switch(s){case"keyup":return pY.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var tc=!1;function gY(s,c){switch(s){case"compositionend":return hA(c);case"keypress":return c.which!==32?null:(fA=!0,cA);case"textInput":return s=c.data,s===cA&&fA?null:s;default:return null}}function yY(s,c){if(tc)return s==="compositionend"||!_b&&dA(s,c)?(s=ht(),Wn=fn=Ie=null,tc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:m,offset:c-s};s=y}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=kA(m)}}function xA(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?xA(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function SA(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=ql(s.document);c instanceof s.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)s=c.contentWindow;else break;c=ql(s.document)}return c}function Cb(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var jY=X&&"documentMode"in document&&11>=document.documentMode,ic=null,jb=null,Ld=null,Ab=!1;function CA(s,c,m){var y=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Ab||ic==null||ic!==ql(y)||(y=ic,"selectionStart"in y&&Cb(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Ld&&zd(Ld,y)||(Ld=y,y=Nv(jb,"onSelect"),0>=F,C-=F,Xa=1<<32-nn(c)+C|m<qn?(lt=mn,mn=null):lt=mn.sibling;var vt=ge(ue,mn,me[qn],Me);if(vt===null){mn===null&&(mn=lt);break}s&&mn&&vt.alternate===null&&c(ue,mn),ae=E(vt,ae,qn),pt===null?wn=vt:pt.sibling=vt,pt=vt,mn=lt}if(qn===me.length)return m(ue,mn),ut&&Eo(ue,qn),wn;if(mn===null){for(;qnqn?(lt=mn,mn=null):lt=mn.sibling;var Zs=ge(ue,mn,vt.value,Me);if(Zs===null){mn===null&&(mn=lt);break}s&&mn&&Zs.alternate===null&&c(ue,mn),ae=E(Zs,ae,qn),pt===null?wn=Zs:pt.sibling=Zs,pt=Zs,mn=lt}if(vt.done)return m(ue,mn),ut&&Eo(ue,qn),wn;if(mn===null){for(;!vt.done;qn++,vt=me.next())vt=Re(ue,vt.value,Me),vt!==null&&(ae=E(vt,ae,qn),pt===null?wn=vt:pt.sibling=vt,pt=vt);return ut&&Eo(ue,qn),wn}for(mn=y(mn);!vt.done;qn++,vt=me.next())vt=Se(mn,ue,qn,vt.value,Me),vt!==null&&(s&&vt.alternate!==null&&mn.delete(vt.key===null?qn:vt.key),ae=E(vt,ae,qn),pt===null?wn=vt:pt.sibling=vt,pt=vt);return s&&mn.forEach(function(WK){return c(ue,WK)}),ut&&Eo(ue,qn),wn}function At(ue,ae,me,Me){if(typeof me=="object"&&me!==null&&me.type===w&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case g:e:{for(var wn=me.key;ae!==null;){if(ae.key===wn){if(wn=me.type,wn===w){if(ae.tag===7){m(ue,ae.sibling),Me=C(ae,me.props.children),Me.return=ue,ue=Me;break e}}else if(ae.elementType===wn||typeof wn=="object"&&wn!==null&&wn.$$typeof===$&&eu(wn)===ae.type){m(ue,ae.sibling),Me=C(ae,me.props),Ud(Me,me),Me.return=ue,ue=Me;break e}m(ue,ae);break}else c(ue,ae);ae=ae.sibling}me.type===w?(Me=Kl(me.props.children,ue.mode,Me,me.key),Me.return=ue,ue=Me):(Me=Qp(me.type,me.key,me.props,null,ue.mode,Me),Ud(Me,me),Me.return=ue,ue=Me)}return F(ue);case b:e:{for(wn=me.key;ae!==null;){if(ae.key===wn)if(ae.tag===4&&ae.stateNode.containerInfo===me.containerInfo&&ae.stateNode.implementation===me.implementation){m(ue,ae.sibling),Me=C(ae,me.children||[]),Me.return=ue,ue=Me;break e}else{m(ue,ae);break}else c(ue,ae);ae=ae.sibling}Me=Pb(me,ue.mode,Me),Me.return=ue,ue=Me}return F(ue);case $:return me=eu(me),At(ue,ae,me,Me)}if(R(me))return dn(ue,ae,me,Me);if(U(me)){if(wn=U(me),typeof wn!="function")throw Error(i(150));return me=wn.call(me),jn(ue,ae,me,Me)}if(typeof me.then=="function")return At(ue,ae,av(me),Me);if(me.$$typeof===j)return At(ue,ae,nv(ue,me),Me);ov(ue,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(me=""+me,ae!==null&&ae.tag===6?(m(ue,ae.sibling),Me=C(ae,me),Me.return=ue,ue=Me):(m(ue,ae),Me=Rb(me,ue.mode,Me),Me.return=ue,ue=Me),F(ue)):m(ue,ae)}return function(ue,ae,me,Me){try{Hd=0;var wn=At(ue,ae,me,Me);return mc=null,wn}catch(mn){if(mn===hc||mn===iv)throw mn;var pt=Pr(29,mn,null,ue.mode);return pt.lanes=Me,pt.return=ue,pt}finally{}}}var tu=YA(!0),KA=YA(!1),Ps=!1;function Wb(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gb(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ns(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function $s(s,c,m){var y=s.updateQueue;if(y===null)return null;if(y=y.shared,(bt&2)!==0){var C=y.pending;return C===null?c.next=c:(c.next=C.next,C.next=c),y.pending=c,c=Zp(s),DA(s,null,m),c}return Xp(s,y,c,m),Zp(s)}function Vd(s,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var y=c.lanes;y&=s.pendingLanes,m|=y,c.lanes=m,on(s,m)}}function Yb(s,c){var m=s.updateQueue,y=s.alternate;if(y!==null&&(y=y.updateQueue,m===y)){var C=null,E=null;if(m=m.firstBaseUpdate,m!==null){do{var F={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};E===null?C=E=F:E=E.next=F,m=m.next}while(m!==null);E===null?C=E=c:E=E.next=c}else C=E=c;m={baseState:y.baseState,firstBaseUpdate:C,lastBaseUpdate:E,shared:y.shared,callbacks:y.callbacks},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=c:s.next=c,m.lastBaseUpdate=c}var Kb=!1;function Wd(){if(Kb){var s=dc;if(s!==null)throw s}}function Gd(s,c,m,y){Kb=!1;var C=s.updateQueue;Ps=!1;var E=C.firstBaseUpdate,F=C.lastBaseUpdate,K=C.shared.pending;if(K!==null){C.shared.pending=null;var ne=K,pe=ne.next;ne.next=null,F===null?E=pe:F.next=pe,F=ne;var Oe=s.alternate;Oe!==null&&(Oe=Oe.updateQueue,K=Oe.lastBaseUpdate,K!==F&&(K===null?Oe.firstBaseUpdate=pe:K.next=pe,Oe.lastBaseUpdate=ne))}if(E!==null){var Re=C.baseState;F=0,Oe=pe=ne=null,K=E;do{var ge=K.lane&-536870913,Se=ge!==K.lane;if(Se?(st&ge)===ge:(y&ge)===ge){ge!==0&&ge===fc&&(Kb=!0),Oe!==null&&(Oe=Oe.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var dn=s,jn=K;ge=c;var At=m;switch(jn.tag){case 1:if(dn=jn.payload,typeof dn=="function"){Re=dn.call(At,Re,ge);break e}Re=dn;break e;case 3:dn.flags=dn.flags&-65537|128;case 0:if(dn=jn.payload,ge=typeof dn=="function"?dn.call(At,Re,ge):dn,ge==null)break e;Re=d({},Re,ge);break e;case 2:Ps=!0}}ge=K.callback,ge!==null&&(s.flags|=64,Se&&(s.flags|=8192),Se=C.callbacks,Se===null?C.callbacks=[ge]:Se.push(ge))}else Se={lane:ge,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Oe===null?(pe=Oe=Se,ne=Re):Oe=Oe.next=Se,F|=ge;if(K=K.next,K===null){if(K=C.shared.pending,K===null)break;Se=K,K=Se.next,Se.next=null,C.lastBaseUpdate=Se,C.shared.pending=null}}while(!0);Oe===null&&(ne=Re),C.baseState=ne,C.firstBaseUpdate=pe,C.lastBaseUpdate=Oe,E===null&&(C.shared.lanes=0),Fs|=F,s.lanes=F,s.memoizedState=Re}}function XA(s,c){if(typeof s!="function")throw Error(i(191,s));s.call(c)}function ZA(s,c){var m=s.callbacks;if(m!==null)for(s.callbacks=null,s=0;sE?E:8;var F=D.T,K={};D.T=K,mw(s,!1,c,m);try{var ne=C(),pe=D.S;if(pe!==null&&pe(K,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var Oe=NY(ne,y);Xd(s,c,Oe,Ir(s))}else Xd(s,c,y,Ir(s))}catch(Re){Xd(s,c,{then:function(){},status:"rejected",reason:Re},Ir())}finally{z.p=E,F!==null&&K.types!==null&&(F.types=K.types),D.T=F}}function FY(){}function dw(s,c,m,y){if(s.tag!==5)throw Error(i(476));var C=TO(s).queue;OO(s,C,c,H,m===null?FY:function(){return EO(s),m(y)})}function TO(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:H},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:m},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function EO(s){var c=TO(s);c.next===null&&(c=s.alternate.memoizedState),Xd(s,c.next.queue,{},Ir())}function hw(){return Ii(hh)}function MO(){return ui().memoizedState}function DO(){return ui().memoizedState}function qY(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var m=Ir();s=Ns(m);var y=$s(c,s,m);y!==null&&(kr(y,c,m),Vd(y,c,m)),c={cache:qb()},s.payload=c;return}c=c.return}}function HY(s,c,m){var y=Ir();m={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},vv(s)?PO(c,m):(m=Mb(s,c,m,y),m!==null&&(kr(m,s,y),NO(m,c,y)))}function RO(s,c,m){var y=Ir();Xd(s,c,m,y)}function Xd(s,c,m,y){var C={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(vv(s))PO(c,C);else{var E=s.alternate;if(s.lanes===0&&(E===null||E.lanes===0)&&(E=c.lastRenderedReducer,E!==null))try{var F=c.lastRenderedState,K=E(F,m);if(C.hasEagerState=!0,C.eagerState=K,Rr(K,F))return Xp(s,c,C,0),Pt===null&&Kp(),!1}catch{}finally{}if(m=Mb(s,c,C,y),m!==null)return kr(m,s,y),NO(m,c,y),!0}return!1}function mw(s,c,m,y){if(y={lane:2,revertLane:Ww(),gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},vv(s)){if(c)throw Error(i(479))}else c=Mb(s,m,y,2),c!==null&&kr(c,s,2)}function vv(s){var c=s.alternate;return s===Bn||c!==null&&c===Bn}function PO(s,c){vc=uv=!0;var m=s.pending;m===null?c.next=c:(c.next=m.next,m.next=c),s.pending=c}function NO(s,c,m){if((m&4194048)!==0){var y=c.lanes;y&=s.pendingLanes,m|=y,c.lanes=m,on(s,m)}}var Zd={readContext:Ii,use:dv,useCallback:ni,useContext:ni,useEffect:ni,useImperativeHandle:ni,useLayoutEffect:ni,useInsertionEffect:ni,useMemo:ni,useReducer:ni,useRef:ni,useState:ni,useDebugValue:ni,useDeferredValue:ni,useTransition:ni,useSyncExternalStore:ni,useId:ni,useHostTransitionStatus:ni,useFormState:ni,useActionState:ni,useOptimistic:ni,useMemoCache:ni,useCacheRefresh:ni};Zd.useEffectEvent=ni;var $O={readContext:Ii,use:dv,useCallback:function(s,c){return rr().memoizedState=[s,c===void 0?null:c],s},useContext:Ii,useEffect:bO,useImperativeHandle:function(s,c,m){m=m!=null?m.concat([s]):null,mv(4194308,4,xO.bind(null,c,s),m)},useLayoutEffect:function(s,c){return mv(4194308,4,s,c)},useInsertionEffect:function(s,c){mv(4,2,s,c)},useMemo:function(s,c){var m=rr();c=c===void 0?null:c;var y=s();if(iu){sn(!0);try{s()}finally{sn(!1)}}return m.memoizedState=[y,c],y},useReducer:function(s,c,m){var y=rr();if(m!==void 0){var C=m(c);if(iu){sn(!0);try{m(c)}finally{sn(!1)}}}else C=c;return y.memoizedState=y.baseState=C,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:C},y.queue=s,s=s.dispatch=HY.bind(null,Bn,s),[y.memoizedState,s]},useRef:function(s){var c=rr();return s={current:s},c.memoizedState=s},useState:function(s){s=sw(s);var c=s.queue,m=RO.bind(null,Bn,c);return c.dispatch=m,[s.memoizedState,m]},useDebugValue:cw,useDeferredValue:function(s,c){var m=rr();return fw(m,s,c)},useTransition:function(){var s=sw(!1);return s=OO.bind(null,Bn,s.queue,!0,!1),rr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,m){var y=Bn,C=rr();if(ut){if(m===void 0)throw Error(i(407));m=m()}else{if(m=c(),Pt===null)throw Error(i(349));(st&127)!==0||iO(y,c,m)}C.memoizedState=m;var E={value:m,getSnapshot:c};return C.queue=E,bO(aO.bind(null,y,E,s),[s]),y.flags|=2048,yc(9,{destroy:void 0},rO.bind(null,y,E,m,c),null),m},useId:function(){var s=rr(),c=Pt.identifierPrefix;if(ut){var m=Za,y=Xa;m=(y&~(1<<32-nn(y)-1)).toString(32)+m,c="_"+c+"R_"+m,m=cv++,0<\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof y.is=="string"?F.createElement("select",{is:y.is}):F.createElement("select"),y.multiple?E.multiple=!0:y.size&&(E.size=y.size);break;default:E=typeof y.is=="string"?F.createElement(C,{is:y.is}):F.createElement(C)}}E[Qn]=c,E[Dt]=y;e:for(F=c.child;F!==null;){if(F.tag===5||F.tag===6)E.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===c)break e;for(;F.sibling===null;){if(F.return===null||F.return===c)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}c.stateNode=E;e:switch(Fi(E,C,y),C){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}y&&$o(c)}}return Vt(c),Ow(c,c.type,s===null?null:s.memoizedProps,c.pendingProps,m),null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==y&&$o(c);else{if(typeof y!="string"&&c.stateNode===null)throw Error(i(166));if(s=re.current,uc(c)){if(s=c.stateNode,m=c.memoizedProps,y=null,C=Li,C!==null)switch(C.tag){case 27:case 5:y=C.memoizedProps}s[Qn]=c,s=!!(s.nodeValue===m||y!==null&&y.suppressHydrationWarning===!0||nT(s.nodeValue,m)),s||Ds(c,!0)}else s=$v(s).createTextNode(y),s[Qn]=c,c.stateNode=s}return Vt(c),null;case 31:if(m=c.memoizedState,s===null||s.memoizedState!==null){if(y=uc(c),m!==null){if(s===null){if(!y)throw Error(i(318));if(s=c.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(557));s[Qn]=c}else Xl(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Vt(c),s=!1}else m=Lb(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=m),s=!0;if(!s)return c.flags&256?($r(c),c):($r(c),null);if((c.flags&128)!==0)throw Error(i(558))}return Vt(c),null;case 13:if(y=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(C=uc(c),y!==null&&y.dehydrated!==null){if(s===null){if(!C)throw Error(i(318));if(C=c.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(i(317));C[Qn]=c}else Xl(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Vt(c),C=!1}else C=Lb(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=C),C=!0;if(!C)return c.flags&256?($r(c),c):($r(c),null)}return $r(c),(c.flags&128)!==0?(c.lanes=m,c):(m=y!==null,s=s!==null&&s.memoizedState!==null,m&&(y=c.child,C=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(C=y.alternate.memoizedState.cachePool.pool),E=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(E=y.memoizedState.cachePool.pool),E!==C&&(y.flags|=2048)),m!==s&&m&&(c.child.flags|=8192),kv(c,c.updateQueue),Vt(c),null);case 4:return ee(),s===null&&Xw(c.stateNode.containerInfo),Vt(c),null;case 10:return Do(c.type),Vt(c),null;case 19:if(V(li),y=c.memoizedState,y===null)return Vt(c),null;if(C=(c.flags&128)!==0,E=y.rendering,E===null)if(C)Jd(y,!1);else{if(ti!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(E=lv(s),E!==null){for(c.flags|=128,Jd(y,!1),s=E.updateQueue,c.updateQueue=s,kv(c,s),c.subtreeFlags=0,s=m,m=c.child;m!==null;)RA(m,s),m=m.sibling;return I(li,li.current&1|2),ut&&Eo(c,y.treeForkCount),c.child}s=s.sibling}y.tail!==null&&Qe()>jv&&(c.flags|=128,C=!0,Jd(y,!1),c.lanes=4194304)}else{if(!C)if(s=lv(E),s!==null){if(c.flags|=128,C=!0,s=s.updateQueue,c.updateQueue=s,kv(c,s),Jd(y,!0),y.tail===null&&y.tailMode==="hidden"&&!E.alternate&&!ut)return Vt(c),null}else 2*Qe()-y.renderingStartTime>jv&&m!==536870912&&(c.flags|=128,C=!0,Jd(y,!1),c.lanes=4194304);y.isBackwards?(E.sibling=c.child,c.child=E):(s=y.last,s!==null?s.sibling=E:c.child=E,y.last=E)}return y.tail!==null?(s=y.tail,y.rendering=s,y.tail=s.sibling,y.renderingStartTime=Qe(),s.sibling=null,m=li.current,I(li,C?m&1|2:m&1),ut&&Eo(c,y.treeForkCount),s):(Vt(c),null);case 22:case 23:return $r(c),Zb(),y=c.memoizedState!==null,s!==null?s.memoizedState!==null!==y&&(c.flags|=8192):y&&(c.flags|=8192),y?(m&536870912)!==0&&(c.flags&128)===0&&(Vt(c),c.subtreeFlags&6&&(c.flags|=8192)):Vt(c),m=c.updateQueue,m!==null&&kv(c,m.retryQueue),m=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==m&&(c.flags|=2048),s!==null&&V(Jl),null;case 24:return m=null,s!==null&&(m=s.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),Do(hi),Vt(c),null;case 25:return null;case 30:return null}throw Error(i(156,c.tag))}function YY(s,c){switch($b(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Do(hi),ee(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return ke(c),null;case 31:if(c.memoizedState!==null){if($r(c),c.alternate===null)throw Error(i(340));Xl()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 13:if($r(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(i(340));Xl()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return V(li),null;case 4:return ee(),null;case 10:return Do(c.type),null;case 22:case 23:return $r(c),Zb(),s!==null&&V(Jl),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return Do(hi),null;case 25:return null;default:return null}}function o5(s,c){switch($b(c),c.tag){case 3:Do(hi),ee();break;case 26:case 27:case 5:ke(c);break;case 4:ee();break;case 31:c.memoizedState!==null&&$r(c);break;case 13:$r(c);break;case 19:V(li);break;case 10:Do(c.type);break;case 22:case 23:$r(c),Zb(),s!==null&&V(Jl);break;case 24:Do(hi)}}function eh(s,c){try{var m=c.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var C=y.next;m=C;do{if((m.tag&s)===s){y=void 0;var E=m.create,F=m.inst;y=E(),F.destroy=y}m=m.next}while(m!==C)}}catch(K){St(c,c.return,K)}}function Is(s,c,m){try{var y=c.updateQueue,C=y!==null?y.lastEffect:null;if(C!==null){var E=C.next;y=E;do{if((y.tag&s)===s){var F=y.inst,K=F.destroy;if(K!==void 0){F.destroy=void 0,C=c;var ne=m,pe=K;try{pe()}catch(Oe){St(C,ne,Oe)}}}y=y.next}while(y!==E)}}catch(Oe){St(c,c.return,Oe)}}function s5(s){var c=s.updateQueue;if(c!==null){var m=s.stateNode;try{ZA(c,m)}catch(y){St(s,s.return,y)}}}function l5(s,c,m){m.props=ru(s.type,s.memoizedProps),m.state=s.memoizedState;try{m.componentWillUnmount()}catch(y){St(s,c,y)}}function nh(s,c){try{var m=s.ref;if(m!==null){switch(s.tag){case 26:case 27:case 5:var y=s.stateNode;break;case 30:y=s.stateNode;break;default:y=s.stateNode}typeof m=="function"?s.refCleanup=m(y):m.current=y}}catch(C){St(s,c,C)}}function Qa(s,c){var m=s.ref,y=s.refCleanup;if(m!==null)if(typeof y=="function")try{y()}catch(C){St(s,c,C)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(C){St(s,c,C)}else m.current=null}function u5(s){var c=s.type,m=s.memoizedProps,y=s.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&y.focus();break e;case"img":m.src?y.src=m.src:m.srcSet&&(y.srcset=m.srcSet)}}catch(C){St(s,s.return,C)}}function Tw(s,c,m){try{var y=s.stateNode;vK(y,s.type,m,c),y[Dt]=c}catch(C){St(s,s.return,C)}}function c5(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Ws(s.type)||s.tag===4}function Ew(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||c5(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Ws(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Mw(s,c,m){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(s,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(s),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=Zr));else if(y!==4&&(y===27&&Ws(s.type)&&(m=s.stateNode,c=null),s=s.child,s!==null))for(Mw(s,c,m),s=s.sibling;s!==null;)Mw(s,c,m),s=s.sibling}function _v(s,c,m){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?m.insertBefore(s,c):m.appendChild(s);else if(y!==4&&(y===27&&Ws(s.type)&&(m=s.stateNode),s=s.child,s!==null))for(_v(s,c,m),s=s.sibling;s!==null;)_v(s,c,m),s=s.sibling}function f5(s){var c=s.stateNode,m=s.memoizedProps;try{for(var y=s.type,C=c.attributes;C.length;)c.removeAttributeNode(C[0]);Fi(c,y,m),c[Qn]=s,c[Dt]=m}catch(E){St(s,s.return,E)}}var zo=!1,vi=!1,Dw=!1,d5=typeof WeakSet=="function"?WeakSet:Set,Ei=null;function KY(s,c){if(s=s.containerInfo,Jw=Hv,s=SA(s),Cb(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var y=m.getSelection&&m.getSelection();if(y&&y.rangeCount!==0){m=y.anchorNode;var C=y.anchorOffset,E=y.focusNode;y=y.focusOffset;try{m.nodeType,E.nodeType}catch{m=null;break e}var F=0,K=-1,ne=-1,pe=0,Oe=0,Re=s,ge=null;n:for(;;){for(var Se;Re!==m||C!==0&&Re.nodeType!==3||(K=F+C),Re!==E||y!==0&&Re.nodeType!==3||(ne=F+y),Re.nodeType===3&&(F+=Re.nodeValue.length),(Se=Re.firstChild)!==null;)ge=Re,Re=Se;for(;;){if(Re===s)break n;if(ge===m&&++pe===C&&(K=F),ge===E&&++Oe===y&&(ne=F),(Se=Re.nextSibling)!==null)break;Re=ge,ge=Re.parentNode}Re=Se}m=K===-1||ne===-1?null:{start:K,end:ne}}else m=null}m=m||{start:0,end:0}}else m=null;for(ek={focusedElem:s,selectionRange:m},Hv=!1,Ei=c;Ei!==null;)if(c=Ei,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Ei=s;else for(;Ei!==null;){switch(c=Ei,E=c.alternate,s=c.flags,c.tag){case 0:if((s&4)!==0&&(s=c.updateQueue,s=s!==null?s.events:null,s!==null))for(m=0;m title"))),Fi(E,y,m),E[Qn]=s,cn(E),y=E;break e;case"link":var F=yT("link","href",C).get(y+(m.href||""));if(F){for(var K=0;KAt&&(F=At,At=jn,jn=F);var ue=_A(K,jn),ae=_A(K,At);if(ue&&ae&&(Se.rangeCount!==1||Se.anchorNode!==ue.node||Se.anchorOffset!==ue.offset||Se.focusNode!==ae.node||Se.focusOffset!==ae.offset)){var me=Re.createRange();me.setStart(ue.node,ue.offset),Se.removeAllRanges(),jn>At?(Se.addRange(me),Se.extend(ae.node,ae.offset)):(me.setEnd(ae.node,ae.offset),Se.addRange(me))}}}}for(Re=[],Se=K;Se=Se.parentNode;)Se.nodeType===1&&Re.push({element:Se,left:Se.scrollLeft,top:Se.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;Km?32:m,D.T=null,m=Iw,Iw=null;var E=Hs,F=qo;if(_i=0,xc=Hs=null,qo=0,(bt&6)!==0)throw Error(i(331));var K=bt;if(bt|=4,x5(E.current),w5(E,E.current,F,m),bt=K,sh(0,!1),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(Dn,E)}catch{}return!0}finally{z.p=C,D.T=y,F5(s,c)}}function H5(s,c,m){c=ta(m,c),c=yw(s.stateNode,c,2),s=$s(s,c,2),s!==null&&(ot(s,2),Ja(s))}function St(s,c,m){if(s.tag===3)H5(s,s,m);else for(;c!==null;){if(c.tag===3){H5(c,s,m);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(qs===null||!qs.has(y))){s=ta(m,s),m=UO(2),y=$s(c,m,2),y!==null&&(VO(m,y,c,s),ot(y,2),Ja(y));break}}c=c.return}}function Hw(s,c,m){var y=s.pingCache;if(y===null){y=s.pingCache=new QY;var C=new Set;y.set(c,C)}else C=y.get(c),C===void 0&&(C=new Set,y.set(c,C));C.has(m)||(Nw=!0,C.add(m),s=iK.bind(null,s,c,m),c.then(s,s))}function iK(s,c,m){var y=s.pingCache;y!==null&&y.delete(c),s.pingedLanes|=s.suspendedLanes&m,s.warmLanes&=~m,Pt===s&&(st&m)===m&&(ti===4||ti===3&&(st&62914560)===st&&300>Qe()-Cv?(bt&2)===0&&Sc(s,0):$w|=m,_c===st&&(_c=0)),Ja(s)}function U5(s,c){c===0&&(c=Ue()),s=Yl(s,c),s!==null&&(ot(s,c),Ja(s))}function rK(s){var c=s.memoizedState,m=0;c!==null&&(m=c.retryLane),U5(s,m)}function aK(s,c){var m=0;switch(s.tag){case 31:case 13:var y=s.stateNode,C=s.memoizedState;C!==null&&(m=C.retryLane);break;case 19:y=s.stateNode;break;case 22:y=s.stateNode._retryCache;break;default:throw Error(i(314))}y!==null&&y.delete(c),U5(s,m)}function oK(s,c){return he(s,c)}var Dv=null,jc=null,Uw=!1,Rv=!1,Vw=!1,Vs=0;function Ja(s){s!==jc&&s.next===null&&(jc===null?Dv=jc=s:jc=jc.next=s),Rv=!0,Uw||(Uw=!0,lK())}function sh(s,c){if(!Vw&&Rv){Vw=!0;do for(var m=!1,y=Dv;y!==null;){if(s!==0){var C=y.pendingLanes;if(C===0)var E=0;else{var F=y.suspendedLanes,K=y.pingedLanes;E=(1<<31-nn(42|s)+1)-1,E&=C&~(F&~K),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(m=!0,Y5(y,E))}else E=st,E=at(y,y===Pt?E:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(E&3)===0||Mt(y,E)||(m=!0,Y5(y,E));y=y.next}while(m);Vw=!1}}function sK(){V5()}function V5(){Rv=Uw=!1;var s=0;Vs!==0&&yK()&&(s=Vs);for(var c=Qe(),m=null,y=Dv;y!==null;){var C=y.next,E=W5(y,c);E===0?(y.next=null,m===null?Dv=C:m.next=C,C===null&&(jc=m)):(m=y,(s!==0||(E&3)!==0)&&(Rv=!0)),y=C}_i!==0&&_i!==5||sh(s),Vs!==0&&(Vs=0)}function W5(s,c){for(var m=s.suspendedLanes,y=s.pingedLanes,C=s.expirationTimes,E=s.pendingLanes&-62914561;0K)break;var Oe=ne.transferSize,Re=ne.initiatorType;Oe&&tT(Re)&&(ne=ne.responseEnd,F+=Oe*(ne"u"?null:document;function mT(s,c,m){var y=Ac;if(y&&typeof c=="string"&&c){var C=mr(c);C='link[rel="'+s+'"][href="'+C+'"]',typeof m=="string"&&(C+='[crossorigin="'+m+'"]'),hT.has(C)||(hT.add(C),s={rel:s,crossOrigin:m,href:c},y.querySelector(C)===null&&(c=y.createElement("link"),Fi(c,"link",s),cn(c),y.head.appendChild(c)))}}function AK(s){Ho.D(s),mT("dns-prefetch",s,null)}function OK(s,c){Ho.C(s,c),mT("preconnect",s,c)}function TK(s,c,m){Ho.L(s,c,m);var y=Ac;if(y&&s&&c){var C='link[rel="preload"][as="'+mr(c)+'"]';c==="image"&&m&&m.imageSrcSet?(C+='[imagesrcset="'+mr(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(C+='[imagesizes="'+mr(m.imageSizes)+'"]')):C+='[href="'+mr(s)+'"]';var E=C;switch(c){case"style":E=Oc(s);break;case"script":E=Tc(s)}la.has(E)||(s=d({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:s,as:c},m),la.set(E,s),y.querySelector(C)!==null||c==="style"&&y.querySelector(fh(E))||c==="script"&&y.querySelector(dh(E))||(c=y.createElement("link"),Fi(c,"link",s),cn(c),y.head.appendChild(c)))}}function EK(s,c){Ho.m(s,c);var m=Ac;if(m&&s){var y=c&&typeof c.as=="string"?c.as:"script",C='link[rel="modulepreload"][as="'+mr(y)+'"][href="'+mr(s)+'"]',E=C;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Tc(s)}if(!la.has(E)&&(s=d({rel:"modulepreload",href:s},c),la.set(E,s),m.querySelector(C)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(dh(E)))return}y=m.createElement("link"),Fi(y,"link",s),cn(y),m.head.appendChild(y)}}}function MK(s,c,m){Ho.S(s,c,m);var y=Ac;if(y&&s){var C=oi(y).hoistableStyles,E=Oc(s);c=c||"default";var F=C.get(E);if(!F){var K={loading:0,preload:null};if(F=y.querySelector(fh(E)))K.loading=5;else{s=d({rel:"stylesheet",href:s,"data-precedence":c},m),(m=la.get(E))&&sk(s,m);var ne=F=y.createElement("link");cn(ne),Fi(ne,"link",s),ne._p=new Promise(function(pe,Oe){ne.onload=pe,ne.onerror=Oe}),ne.addEventListener("load",function(){K.loading|=1}),ne.addEventListener("error",function(){K.loading|=2}),K.loading|=4,Lv(F,c,y)}F={type:"stylesheet",instance:F,count:1,state:K},C.set(E,F)}}}function DK(s,c){Ho.X(s,c);var m=Ac;if(m&&s){var y=oi(m).hoistableScripts,C=Tc(s),E=y.get(C);E||(E=m.querySelector(dh(C)),E||(s=d({src:s,async:!0},c),(c=la.get(C))&&lk(s,c),E=m.createElement("script"),cn(E),Fi(E,"link",s),m.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},y.set(C,E))}}function RK(s,c){Ho.M(s,c);var m=Ac;if(m&&s){var y=oi(m).hoistableScripts,C=Tc(s),E=y.get(C);E||(E=m.querySelector(dh(C)),E||(s=d({src:s,async:!0,type:"module"},c),(c=la.get(C))&&lk(s,c),E=m.createElement("script"),cn(E),Fi(E,"link",s),m.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},y.set(C,E))}}function pT(s,c,m,y){var C=(C=re.current)?zv(C):null;if(!C)throw Error(i(446));switch(s){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(c=Oc(m.href),m=oi(C).hoistableStyles,y=m.get(c),y||(y={type:"style",instance:null,count:0,state:null},m.set(c,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){s=Oc(m.href);var E=oi(C).hoistableStyles,F=E.get(s);if(F||(C=C.ownerDocument||C,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(s,F),(E=C.querySelector(fh(s)))&&!E._p&&(F.instance=E,F.state.loading=5),la.has(s)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},la.set(s,m),E||PK(C,s,m,F.state))),c&&y===null)throw Error(i(528,""));return F}if(c&&y!==null)throw Error(i(529,""));return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Tc(m),m=oi(C).hoistableScripts,y=m.get(c),y||(y={type:"script",instance:null,count:0,state:null},m.set(c,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,s))}}function Oc(s){return'href="'+mr(s)+'"'}function fh(s){return'link[rel="stylesheet"]['+s+"]"}function vT(s){return d({},s,{"data-precedence":s.precedence,precedence:null})}function PK(s,c,m,y){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?y.loading=1:(c=s.createElement("link"),y.preload=c,c.addEventListener("load",function(){return y.loading|=1}),c.addEventListener("error",function(){return y.loading|=2}),Fi(c,"link",m),cn(c),s.head.appendChild(c))}function Tc(s){return'[src="'+mr(s)+'"]'}function dh(s){return"script[async]"+s}function gT(s,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var y=s.querySelector('style[data-href~="'+mr(m.href)+'"]');if(y)return c.instance=y,cn(y),y;var C=d({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return y=(s.ownerDocument||s).createElement("style"),cn(y),Fi(y,"style",C),Lv(y,m.precedence,s),c.instance=y;case"stylesheet":C=Oc(m.href);var E=s.querySelector(fh(C));if(E)return c.state.loading|=4,c.instance=E,cn(E),E;y=vT(m),(C=la.get(C))&&sk(y,C),E=(s.ownerDocument||s).createElement("link"),cn(E);var F=E;return F._p=new Promise(function(K,ne){F.onload=K,F.onerror=ne}),Fi(E,"link",y),c.state.loading|=4,Lv(E,m.precedence,s),c.instance=E;case"script":return E=Tc(m.src),(C=s.querySelector(dh(E)))?(c.instance=C,cn(C),C):(y=m,(C=la.get(E))&&(y=d({},m),lk(y,C)),s=s.ownerDocument||s,C=s.createElement("script"),cn(C),Fi(C,"link",y),s.head.appendChild(C),c.instance=C);case"void":return null;default:throw Error(i(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(y=c.instance,c.state.loading|=4,Lv(y,m.precedence,s));return c.instance}function Lv(s,c,m){for(var y=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=y.length?y[y.length-1]:null,E=C,F=0;F title"):null)}function NK(s,c,m){if(m===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function wT(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function $K(s,c,m,y){if(m.type==="stylesheet"&&(typeof y.media!="string"||matchMedia(y.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var C=Oc(y.href),E=c.querySelector(fh(C));if(E){c=E._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(s.count++,s=Bv.bind(s),c.then(s,s)),m.state.loading|=4,m.instance=E,cn(E);return}E=c.ownerDocument||c,y=vT(y),(C=la.get(C))&&sk(y,C),E=E.createElement("link"),cn(E);var F=E;F._p=new Promise(function(K,ne){F.onload=K,F.onerror=ne}),Fi(E,"link",y),m.instance=E}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(m,c),(c=m.state.preload)&&(m.state.loading&3)===0&&(s.count++,m=Bv.bind(s),c.addEventListener("load",m),c.addEventListener("error",m))}}var uk=0;function zK(s,c){return s.stylesheets&&s.count===0&&qv(s,s.stylesheets),0uk?50:800)+c);return s.unsuspend=m,function(){s.unsuspend=null,clearTimeout(y),clearTimeout(C)}}:null}function Bv(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qv(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Fv=null;function qv(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Fv=new Map,c.forEach(LK,s),Fv=null,Bv.call(s))}function LK(s,c){if(!(c.state.loading&4)){var m=Fv.get(s);if(m)var y=m.get(null);else{m=new Map,Fv.set(s,m);for(var C=s.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Yk.exports=fre(),Yk.exports}var hre=dre();class p9 extends Error{constructor(n,t){super(t),this.status=n,this.name="HTTPError"}}async function mre(e,n,t){const i=await fetch(`${t}${e}`,{credentials:"include",...n,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}});if(!i.ok){const r=await i.json().catch(()=>({Message:i.statusText}));throw new p9(i.status,r.Message??r.message??i.statusText)}if(i.status!==204)return i.json()}const PF="/api";function _n(e,n){return mre(e,n,PF)}function sM(){return _n("/board")}function pre(){return _n("/flags")}function NF(){return _n("/version")}function vre(e){return _n("/columns",{method:"POST",body:JSON.stringify({name:e})})}function uu(e,n){return _n(`/columns/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function gre(e){return _n(`/columns/${e}`,{method:"DELETE"})}function yre(e){return _n("/columns/reorder",{method:"POST",body:JSON.stringify({ids:e})})}function bre(e){return _n("/cards",{method:"POST",body:JSON.stringify(e)})}function Nc(e,n){return _n(`/cards/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function wre(e){return _n(`/cards/${e}`,{method:"DELETE"})}function Zk(e,n){return _n(`/cards/${e}/stickers`,{method:"PUT",body:JSON.stringify({stickers:n})})}function lM(){return _n("/trash")}function kre(e){return _n(`/cards/${e}/restore`,{method:"POST"})}function _re(e){return _n(`/cards/${e}/purge`,{method:"DELETE"})}function uM(){return _n("/archive")}function xre(e){return _n(`/cards/${e}/archive`,{method:"POST"})}function Sre(e){return _n(`/cards/${e}/unarchive`,{method:"POST"})}function Cre(e,n){const t=new URLSearchParams({date:e});return _n(`/reports/daily?${t.toString()}`)}function jre(e){return _n(`/reports/daily/summary?date=${encodeURIComponent(e)}`)}function Are(e,n){const t=new URLSearchParams({date:e});return _n(`/reports/daily/summary?${t.toString()}`,{method:"POST"})}function Ore(e){return _n(`/settings/${encodeURIComponent(e)}`)}function Tre(e,n){return _n(`/settings/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify({value:n})})}function Ere(e,n,t){return _n(`/cards/${e}/move`,{method:"POST",body:JSON.stringify({column_id:n,ordered_ids:t})})}function Mre(e){return _n(`/cards/${e}/history`)}function Dre(e){return _n(`/cards/${e}/messages`)}function cM(e,n){return _n(`/cards/${e}/messages`,{method:"POST",body:JSON.stringify({body:n})})}function Rre(e,n){return _n(`/cards/${e}/messages/${n}`,{method:"DELETE"})}function Pre(e){return _n(`/cards/${e}/duplicate`,{method:"POST"})}function Nre(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/chat/ws`}function $re(e){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/cards/${e}/chat/ws`}function $F(e=!1){return _n(`/notifications${e?"?unread=1":""}`)}function zF(){return _n("/notifications/unread-count")}function zre(e){return _n(`/notifications/${e}/read`,{method:"POST"})}function Lre(){return _n("/notifications/read-all",{method:"POST"})}function Ire(){return _n("/modules")}function Bre(e){return _n("/modules",{method:"POST",body:JSON.stringify(e)})}function Fre(e,n){return _n(`/modules/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function qre(e){return _n(`/modules/${e}`,{method:"DELETE"})}function Hre(e,n=100){return _n(`/modules/${e}/logs?limit=${n}`)}function fM(e,n){const t={method:"POST"};return n&&(t.body=JSON.stringify(n)),_n(`/modules/${e}/test`,t)}function Ure(e,n,t){return new Promise((i,r)=>{const a=new WebSocket(Nre());let o=!1;const l=u=>{if(!o){o=!0;try{a.close()}catch{}u?r(u):i()}};a.onopen=()=>{a.send(JSON.stringify({messages:e}))},a.onmessage=u=>{try{const f=JSON.parse(typeof u.data=="string"?u.data:"");n(f),(f.type==="done"||f.type==="error")&&l(f.type==="error"?new Error(f.error):void 0)}catch(f){l(f)}},a.onerror=()=>l(new Error("websocket error")),a.onclose=()=>l()})}function dM(e,n){return _n("/auth/login",{method:"POST",body:JSON.stringify({username:e,password:n})})}function Vre(e,n,t){return _n("/auth/register",{method:"POST",body:JSON.stringify({username:e,password:n,display_name:t})})}function Wre(){return _n("/auth/logout",{method:"POST"})}function Gre(){return _n("/me")}function hM(e){return _n("/me",{method:"PATCH",body:JSON.stringify(e)})}function LF(){return _n("/users")}function IF(){return _n("/tags")}function Yre(){return _n("/requesters")}function Kre(e){return _n(`/cards/${e}/files`)}async function v9(e,n,t="upload"){const i=new FormData;i.append("file",n),i.append("source",t);const r=await fetch(`${PF}/cards/${e}/files`,{method:"POST",credentials:"same-origin",body:i});if(!r.ok){let a=`upload failed: ${r.status}`;try{const o=await r.json();(o.Message||o.message)&&(a=o.Message||o.message||a)}catch{}throw new p9(r.status,a)}return await r.json()}function Xre(e){return _n(`/files/${e}`,{method:"DELETE"})}function Zre(e){return _n("/mcp-tokens",{method:"POST",body:JSON.stringify({name:e})})}function Qre(){return _n("/mcp-tokens")}function Jre(e){return _n(`/mcp-tokens/${e}`,{method:"DELETE"})}function eae(e){return _n(`/cards/${e}/jira-sync`)}function nae(e){const n=new URLSearchParams;e!=null&&e.includeImported&&n.set("include_imported","true"),n.set("limit",String(e.limit));const t=n.toString();return _n(`/jira/issues${t?`?${t}`:""}`)}function tae(e,n){return _n("/jira/import",{method:"POST",body:JSON.stringify({issue_keys:e,fallback_column_id:n||""})})}function BF(e){const n=new URLSearchParams;e.from&&n.set("from",e.from),e.to&&n.set("to",e.to),e.assignee_id&&n.set("assignee_id",e.assignee_id),e.requester&&n.set("requester",e.requester),e.tags&&e.tags.length>0&&n.set("tags",e.tags.join(","));const t=n.toString();return _n(`/metrics${t?`?${t}`:""}`)}const FF=x.createContext(null);function iae({children:e}){const[n,t]=x.useState(null),[i,r]=x.useState(!0);x.useEffect(()=>{Gre().then(t).catch(u=>{(!(u instanceof p9)||u.status!==401)&&console.warn("getMe failed",u)}).finally(()=>r(!1))},[]);const a=x.useCallback(async(u,f)=>{const h=await dM(u,f);t(h)},[]),o=x.useCallback(async(u,f,h)=>{await Vre(u,f,h);const d=await dM(u,f);t(d)},[]),l=x.useCallback(async()=>{await Wre(),t(null)},[]);return v.jsx(FF.Provider,{value:{user:n,loading:i,login:a,register:o,logout:l,setUser:t},children:e})}function g9(){const e=x.useContext(FF);if(!e)throw new Error("useAuth: missing AuthProvider");return e}function rae(){for(var e=arguments.length,n=new Array(e),t=0;ti=>{n.forEach(r=>r(i))},n)}const v0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ed(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function y9(e){return"nodeType"in e}function fr(e){var n,t;return e?ed(e)?e:y9(e)&&(n=(t=e.ownerDocument)==null?void 0:t.defaultView)!=null?n:window:window}function b9(e){const{Document:n}=fr(e);return e instanceof n}function wp(e){return ed(e)?!1:e instanceof fr(e).HTMLElement}function qF(e){return e instanceof fr(e).SVGElement}function nd(e){return e?ed(e)?e.document:y9(e)?b9(e)?e:wp(e)||qF(e)?e.ownerDocument:document:document:document}const Va=v0?x.useLayoutEffect:x.useEffect;function g0(e){const n=x.useRef(e);return Va(()=>{n.current=e}),x.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r{e.current=setInterval(i,r)},[]),t=x.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,t]}function gm(e,n){n===void 0&&(n=[e]);const t=x.useRef(e);return Va(()=>{t.current!==e&&(t.current=e)},n),t}function kp(e,n){const t=x.useRef();return x.useMemo(()=>{const i=e(t.current);return t.current=i,i},[...n])}function t1(e){const n=g0(e),t=x.useRef(null),i=x.useCallback(r=>{r!==t.current&&(n==null||n(r,t.current)),t.current=r},[]);return[t,i]}function i1(e){const n=x.useRef();return x.useEffect(()=>{n.current=e},[e]),n.current}let Qk={};function _p(e,n){return x.useMemo(()=>{if(n)return n;const t=Qk[e]==null?0:Qk[e]+1;return Qk[e]=t,e+"-"+t},[e,n])}function HF(e){return function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r{const l=Object.entries(o);for(const[u,f]of l){const h=a[u];h!=null&&(a[u]=h+e*f)}return a},{...n})}}const Qc=HF(1),ym=HF(-1);function oae(e){return"clientX"in e&&"clientY"in e}function y0(e){if(!e)return!1;const{KeyboardEvent:n}=fr(e.target);return n&&e instanceof n}function sae(e){if(!e)return!1;const{TouchEvent:n}=fr(e.target);return n&&e instanceof n}function r1(e){if(sae(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return oae(e)?{x:e.clientX,y:e.clientY}:null}const po=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[po.Translate.toString(e),po.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:i}=e;return n+" "+t+"ms "+i}}}),mM="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lae(e){return e.matches(mM)?e:e.querySelector(mM)}const uae={display:"none"};function cae(e){let{id:n,value:t}=e;return J.createElement("div",{id:n,style:uae},t)}function fae(e){let{id:n,announcement:t,ariaLiveType:i="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return J.createElement("div",{id:n,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function dae(){const[e,n]=x.useState("");return{announce:x.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}const UF=x.createContext(null);function hae(e){const n=x.useContext(UF);x.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of ");return n(e)},[e,n])}function mae(){const[e]=x.useState(()=>new Set),n=x.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[x.useCallback(i=>{let{type:r,event:a}=i;e.forEach(o=>{var l;return(l=o[r])==null?void 0:l.call(o,a)})},[e]),n]}const pae={draggable:` +`+y.stack}}var Ne=Object.prototype.hasOwnProperty,he=e.unstable_scheduleCallback,He=e.unstable_cancelCallback,Ye=e.unstable_shouldYield,We=e.unstable_requestPaint,Qe=e.unstable_now,Je=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,be=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,en=e.unstable_LowPriority,Ae=e.unstable_IdlePriority,an=e.log,pn=e.unstable_setDisableYieldValue,Dn=null,wn=null;function ln(s){if(typeof an=="function"&&pn(s),wn&&typeof wn.setStrictMode=="function")try{wn.setStrictMode(Dn,s)}catch{}}var tn=Math.clz32?Math.clz32:Fe,zn=Math.log,De=Math.LN2;function Fe(s){return s>>>=0,s===0?32:31-(zn(s)/De|0)|0}var Gn=256,En=262144,gn=4194304;function xn(s){var c=s&42;if(c!==0)return c;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function at(s,c,m){var y=s.pendingLanes;if(y===0)return 0;var j=0,E=s.suspendedLanes,F=s.pingedLanes;s=s.warmLanes;var K=y&134217727;return K!==0?(y=K&~E,y!==0?j=xn(y):(F&=K,F!==0?j=xn(F):m||(m=K&~s,m!==0&&(j=xn(m))))):(K=y&~E,K!==0?j=xn(K):F!==0?j=xn(F):m||(m=y&~s,m!==0&&(j=xn(m)))),j===0?0:c!==0&&c!==j&&(c&E)===0&&(E=j&-j,m=c&-c,E>=m||E===32&&(m&4194048)!==0)?c:j}function Dt(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function qe(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 Ue(){var s=gn;return gn<<=1,(gn&62914560)===0&&(gn=4194304),s}function Bn(s){for(var c=[],m=0;31>m;m++)c.push(s);return c}function ot(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Pn(s,c,m,y,j,E){var F=s.pendingLanes;s.pendingLanes=m,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=m,s.entangledLanes&=m,s.errorRecoveryDisabledLanes&=m,s.shellSuspendCounter=0;var K=s.entanglements,ne=s.expirationTimes,pe=s.hiddenUpdates;for(m=F&~m;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var qp=/[\n"\\]/g;function pr(s){return s.replace(qp,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function _d(s,c,m,y,j,E,F,K){s.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?s.type=F:s.removeAttribute("type"),c!=null?F==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+ir(c)):s.value!==""+ir(c)&&(s.value=""+ir(c)):F!=="submit"&&F!=="reset"||s.removeAttribute("value"),c!=null?Sd(s,F,ir(c)):m!=null?Sd(s,F,ir(m)):y!=null&&s.removeAttribute("value"),j==null&&E!=null&&(s.defaultChecked=!!E),j!=null&&(s.checked=j&&typeof j!="function"&&typeof j!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?s.name=""+ir(K):s.removeAttribute("name")}function xd(s,c,m,y,j,E,F,K){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(s.type=E),c!=null||m!=null){if(!(E!=="submit"&&E!=="reset"||c!=null)){wd(s);return}m=m!=null?""+ir(m):"",c=c!=null?""+ir(c):m,K||c===s.value||(s.value=c),s.defaultValue=c}y=y??j,y=typeof y!="function"&&typeof y!="symbol"&&!!y,s.checked=K?s.checked:!!y,s.defaultChecked=!!y,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(s.name=F),wd(s)}function Sd(s,c,m){c==="number"&&ql(s.ownerDocument)===s||s.defaultValue===""+m||(s.defaultValue=""+m)}function Xa(s,c,m,y){if(s=s.options,c){c={};for(var j=0;j"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ce=!1;if(X)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){ce=!0}}),window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,_e)}catch{ce=!1}var Ie=null,dn=null,Yn=null;function ht(){if(Yn)return Yn;var s,c=dn,m=c.length,y,j="value"in Ie?Ie.value:Ie.textContent,E=j.length;for(s=0;s=Pd),fA=" ",dA=!1;function hA(s,c){switch(s){case"keyup":return pY.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ic=!1;function gY(s,c){switch(s){case"compositionend":return mA(c);case"keypress":return c.which!==32?null:(dA=!0,fA);case"textInput":return s=c.data,s===fA&&dA?null:s;default:return null}}function yY(s,c){if(ic)return s==="compositionend"||!xb&&hA(s,c)?(s=ht(),Yn=dn=Ie=null,ic=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:m,offset:c-s};s=y}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=_A(m)}}function SA(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?SA(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function CA(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=ql(s.document);c instanceof s.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)s=c.contentWindow;else break;c=ql(s.document)}return c}function jb(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var jY=X&&"documentMode"in document&&11>=document.documentMode,rc=null,Ab=null,Ld=null,Ob=!1;function jA(s,c,m){var y=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Ob||rc==null||rc!==ql(y)||(y=rc,"selectionStart"in y&&jb(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Ld&&zd(Ld,y)||(Ld=y,y=Nv(Ab,"onSelect"),0>=F,j-=F,Za=1<<32-tn(c)+j|m<Hn?(lt=mn,mn=null):lt=mn.sibling;var vt=ge(ue,mn,me[Hn],Me);if(vt===null){mn===null&&(mn=lt);break}s&&mn&&vt.alternate===null&&c(ue,mn),ae=E(vt,ae,Hn),pt===null?_n=vt:pt.sibling=vt,pt=vt,mn=lt}if(Hn===me.length)return m(ue,mn),ut&&Eo(ue,Hn),_n;if(mn===null){for(;HnHn?(lt=mn,mn=null):lt=mn.sibling;var Zs=ge(ue,mn,vt.value,Me);if(Zs===null){mn===null&&(mn=lt);break}s&&mn&&Zs.alternate===null&&c(ue,mn),ae=E(Zs,ae,Hn),pt===null?_n=Zs:pt.sibling=Zs,pt=Zs,mn=lt}if(vt.done)return m(ue,mn),ut&&Eo(ue,Hn),_n;if(mn===null){for(;!vt.done;Hn++,vt=me.next())vt=Re(ue,vt.value,Me),vt!==null&&(ae=E(vt,ae,Hn),pt===null?_n=vt:pt.sibling=vt,pt=vt);return ut&&Eo(ue,Hn),_n}for(mn=y(mn);!vt.done;Hn++,vt=me.next())vt=Se(mn,ue,Hn,vt.value,Me),vt!==null&&(s&&vt.alternate!==null&&mn.delete(vt.key===null?Hn:vt.key),ae=E(vt,ae,Hn),pt===null?_n=vt:pt.sibling=vt,pt=vt);return s&&mn.forEach(function(WK){return c(ue,WK)}),ut&&Eo(ue,Hn),_n}function Ot(ue,ae,me,Me){if(typeof me=="object"&&me!==null&&me.type===w&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case g:e:{for(var _n=me.key;ae!==null;){if(ae.key===_n){if(_n=me.type,_n===w){if(ae.tag===7){m(ue,ae.sibling),Me=j(ae,me.props.children),Me.return=ue,ue=Me;break e}}else if(ae.elementType===_n||typeof _n=="object"&&_n!==null&&_n.$$typeof===$&&eu(_n)===ae.type){m(ue,ae.sibling),Me=j(ae,me.props),Ud(Me,me),Me.return=ue,ue=Me;break e}m(ue,ae);break}else c(ue,ae);ae=ae.sibling}me.type===w?(Me=Kl(me.props.children,ue.mode,Me,me.key),Me.return=ue,ue=Me):(Me=Qp(me.type,me.key,me.props,null,ue.mode,Me),Ud(Me,me),Me.return=ue,ue=Me)}return F(ue);case b:e:{for(_n=me.key;ae!==null;){if(ae.key===_n)if(ae.tag===4&&ae.stateNode.containerInfo===me.containerInfo&&ae.stateNode.implementation===me.implementation){m(ue,ae.sibling),Me=j(ae,me.children||[]),Me.return=ue,ue=Me;break e}else{m(ue,ae);break}else c(ue,ae);ae=ae.sibling}Me=Nb(me,ue.mode,Me),Me.return=ue,ue=Me}return F(ue);case $:return me=eu(me),Ot(ue,ae,me,Me)}if(N(me))return hn(ue,ae,me,Me);if(z(me)){if(_n=z(me),typeof _n!="function")throw Error(i(150));return me=_n.call(me),jn(ue,ae,me,Me)}if(typeof me.then=="function")return Ot(ue,ae,av(me),Me);if(me.$$typeof===C)return Ot(ue,ae,nv(ue,me),Me);ov(ue,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(me=""+me,ae!==null&&ae.tag===6?(m(ue,ae.sibling),Me=j(ae,me),Me.return=ue,ue=Me):(m(ue,ae),Me=Pb(me,ue.mode,Me),Me.return=ue,ue=Me),F(ue)):m(ue,ae)}return function(ue,ae,me,Me){try{Hd=0;var _n=Ot(ue,ae,me,Me);return pc=null,_n}catch(mn){if(mn===mc||mn===iv)throw mn;var pt=Nr(29,mn,null,ue.mode);return pt.lanes=Me,pt.return=ue,pt}finally{}}}var tu=KA(!0),XA=KA(!1),Ps=!1;function Gb(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yb(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ns(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function $s(s,c,m){var y=s.updateQueue;if(y===null)return null;if(y=y.shared,(bt&2)!==0){var j=y.pending;return j===null?c.next=c:(c.next=j.next,j.next=c),y.pending=c,c=Zp(s),RA(s,null,m),c}return Xp(s,y,c,m),Zp(s)}function Vd(s,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var y=c.lanes;y&=s.pendingLanes,m|=y,c.lanes=m,on(s,m)}}function Kb(s,c){var m=s.updateQueue,y=s.alternate;if(y!==null&&(y=y.updateQueue,m===y)){var j=null,E=null;if(m=m.firstBaseUpdate,m!==null){do{var F={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};E===null?j=E=F:E=E.next=F,m=m.next}while(m!==null);E===null?j=E=c:E=E.next=c}else j=E=c;m={baseState:y.baseState,firstBaseUpdate:j,lastBaseUpdate:E,shared:y.shared,callbacks:y.callbacks},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=c:s.next=c,m.lastBaseUpdate=c}var Xb=!1;function Wd(){if(Xb){var s=hc;if(s!==null)throw s}}function Gd(s,c,m,y){Xb=!1;var j=s.updateQueue;Ps=!1;var E=j.firstBaseUpdate,F=j.lastBaseUpdate,K=j.shared.pending;if(K!==null){j.shared.pending=null;var ne=K,pe=ne.next;ne.next=null,F===null?E=pe:F.next=pe,F=ne;var Te=s.alternate;Te!==null&&(Te=Te.updateQueue,K=Te.lastBaseUpdate,K!==F&&(K===null?Te.firstBaseUpdate=pe:K.next=pe,Te.lastBaseUpdate=ne))}if(E!==null){var Re=j.baseState;F=0,Te=pe=ne=null,K=E;do{var ge=K.lane&-536870913,Se=ge!==K.lane;if(Se?(st&ge)===ge:(y&ge)===ge){ge!==0&&ge===dc&&(Xb=!0),Te!==null&&(Te=Te.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var hn=s,jn=K;ge=c;var Ot=m;switch(jn.tag){case 1:if(hn=jn.payload,typeof hn=="function"){Re=hn.call(Ot,Re,ge);break e}Re=hn;break e;case 3:hn.flags=hn.flags&-65537|128;case 0:if(hn=jn.payload,ge=typeof hn=="function"?hn.call(Ot,Re,ge):hn,ge==null)break e;Re=d({},Re,ge);break e;case 2:Ps=!0}}ge=K.callback,ge!==null&&(s.flags|=64,Se&&(s.flags|=8192),Se=j.callbacks,Se===null?j.callbacks=[ge]:Se.push(ge))}else Se={lane:ge,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Te===null?(pe=Te=Se,ne=Re):Te=Te.next=Se,F|=ge;if(K=K.next,K===null){if(K=j.shared.pending,K===null)break;Se=K,K=Se.next,Se.next=null,j.lastBaseUpdate=Se,j.shared.pending=null}}while(!0);Te===null&&(ne=Re),j.baseState=ne,j.firstBaseUpdate=pe,j.lastBaseUpdate=Te,E===null&&(j.shared.lanes=0),Fs|=F,s.lanes=F,s.memoizedState=Re}}function ZA(s,c){if(typeof s!="function")throw Error(i(191,s));s.call(c)}function QA(s,c){var m=s.callbacks;if(m!==null)for(s.callbacks=null,s=0;sE?E:8;var F=D.T,K={};D.T=K,pw(s,!1,c,m);try{var ne=j(),pe=D.S;if(pe!==null&&pe(K,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var Te=NY(ne,y);Xd(s,c,Te,Br(s))}else Xd(s,c,y,Br(s))}catch(Re){Xd(s,c,{then:function(){},status:"rejected",reason:Re},Br())}finally{L.p=E,F!==null&&K.types!==null&&(F.types=K.types),D.T=F}}function FY(){}function hw(s,c,m,y){if(s.tag!==5)throw Error(i(476));var j=EO(s).queue;TO(s,j,c,H,m===null?FY:function(){return MO(s),m(y)})}function EO(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:H},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:m},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function MO(s){var c=EO(s);c.next===null&&(c=s.alternate.memoizedState),Xd(s,c.next.queue,{},Br())}function mw(){return Ii(hh)}function DO(){return ui().memoizedState}function RO(){return ui().memoizedState}function qY(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var m=Br();s=Ns(m);var y=$s(c,s,m);y!==null&&(_r(y,c,m),Vd(y,c,m)),c={cache:Hb()},s.payload=c;return}c=c.return}}function HY(s,c,m){var y=Br();m={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},vv(s)?NO(c,m):(m=Db(s,c,m,y),m!==null&&(_r(m,s,y),$O(m,c,y)))}function PO(s,c,m){var y=Br();Xd(s,c,m,y)}function Xd(s,c,m,y){var j={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(vv(s))NO(c,j);else{var E=s.alternate;if(s.lanes===0&&(E===null||E.lanes===0)&&(E=c.lastRenderedReducer,E!==null))try{var F=c.lastRenderedState,K=E(F,m);if(j.hasEagerState=!0,j.eagerState=K,Pr(K,F))return Xp(s,c,j,0),Nt===null&&Kp(),!1}catch{}finally{}if(m=Db(s,c,j,y),m!==null)return _r(m,s,y),$O(m,c,y),!0}return!1}function pw(s,c,m,y){if(y={lane:2,revertLane:Gw(),gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},vv(s)){if(c)throw Error(i(479))}else c=Db(s,m,y,2),c!==null&&_r(c,s,2)}function vv(s){var c=s.alternate;return s===Fn||c!==null&&c===Fn}function NO(s,c){gc=uv=!0;var m=s.pending;m===null?c.next=c:(c.next=m.next,m.next=c),s.pending=c}function $O(s,c,m){if((m&4194048)!==0){var y=c.lanes;y&=s.pendingLanes,m|=y,c.lanes=m,on(s,m)}}var Zd={readContext:Ii,use:dv,useCallback:ni,useContext:ni,useEffect:ni,useImperativeHandle:ni,useLayoutEffect:ni,useInsertionEffect:ni,useMemo:ni,useReducer:ni,useRef:ni,useState:ni,useDebugValue:ni,useDeferredValue:ni,useTransition:ni,useSyncExternalStore:ni,useId:ni,useHostTransitionStatus:ni,useFormState:ni,useActionState:ni,useOptimistic:ni,useMemoCache:ni,useCacheRefresh:ni};Zd.useEffectEvent=ni;var zO={readContext:Ii,use:dv,useCallback:function(s,c){return ar().memoizedState=[s,c===void 0?null:c],s},useContext:Ii,useEffect:wO,useImperativeHandle:function(s,c,m){m=m!=null?m.concat([s]):null,mv(4194308,4,SO.bind(null,c,s),m)},useLayoutEffect:function(s,c){return mv(4194308,4,s,c)},useInsertionEffect:function(s,c){mv(4,2,s,c)},useMemo:function(s,c){var m=ar();c=c===void 0?null:c;var y=s();if(iu){ln(!0);try{s()}finally{ln(!1)}}return m.memoizedState=[y,c],y},useReducer:function(s,c,m){var y=ar();if(m!==void 0){var j=m(c);if(iu){ln(!0);try{m(c)}finally{ln(!1)}}}else j=c;return y.memoizedState=y.baseState=j,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:j},y.queue=s,s=s.dispatch=HY.bind(null,Fn,s),[y.memoizedState,s]},useRef:function(s){var c=ar();return s={current:s},c.memoizedState=s},useState:function(s){s=lw(s);var c=s.queue,m=PO.bind(null,Fn,c);return c.dispatch=m,[s.memoizedState,m]},useDebugValue:fw,useDeferredValue:function(s,c){var m=ar();return dw(m,s,c)},useTransition:function(){var s=lw(!1);return s=TO.bind(null,Fn,s.queue,!0,!1),ar().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,m){var y=Fn,j=ar();if(ut){if(m===void 0)throw Error(i(407));m=m()}else{if(m=c(),Nt===null)throw Error(i(349));(st&127)!==0||rO(y,c,m)}j.memoizedState=m;var E={value:m,getSnapshot:c};return j.queue=E,wO(oO.bind(null,y,E,s),[s]),y.flags|=2048,bc(9,{destroy:void 0},aO.bind(null,y,E,m,c),null),m},useId:function(){var s=ar(),c=Nt.identifierPrefix;if(ut){var m=Qa,y=Za;m=(y&~(1<<32-tn(y)-1)).toString(32)+m,c="_"+c+"R_"+m,m=cv++,0<\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof y.is=="string"?F.createElement("select",{is:y.is}):F.createElement("select"),y.multiple?E.multiple=!0:y.size&&(E.size=y.size);break;default:E=typeof y.is=="string"?F.createElement(j,{is:y.is}):F.createElement(j)}}E[Qn]=c,E[Rt]=y;e:for(F=c.child;F!==null;){if(F.tag===5||F.tag===6)E.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===c)break e;for(;F.sibling===null;){if(F.return===null||F.return===c)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}c.stateNode=E;e:switch(Fi(E,j,y),j){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}y&&$o(c)}}return Gt(c),Tw(c,c.type,s===null?null:s.memoizedProps,c.pendingProps,m),null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==y&&$o(c);else{if(typeof y!="string"&&c.stateNode===null)throw Error(i(166));if(s=re.current,cc(c)){if(s=c.stateNode,m=c.memoizedProps,y=null,j=Li,j!==null)switch(j.tag){case 27:case 5:y=j.memoizedProps}s[Qn]=c,s=!!(s.nodeValue===m||y!==null&&y.suppressHydrationWarning===!0||tT(s.nodeValue,m)),s||Ds(c,!0)}else s=$v(s).createTextNode(y),s[Qn]=c,c.stateNode=s}return Gt(c),null;case 31:if(m=c.memoizedState,s===null||s.memoizedState!==null){if(y=cc(c),m!==null){if(s===null){if(!y)throw Error(i(318));if(s=c.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(557));s[Qn]=c}else Xl(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Gt(c),s=!1}else m=Ib(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=m),s=!0;if(!s)return c.flags&256?(zr(c),c):(zr(c),null);if((c.flags&128)!==0)throw Error(i(558))}return Gt(c),null;case 13:if(y=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(j=cc(c),y!==null&&y.dehydrated!==null){if(s===null){if(!j)throw Error(i(318));if(j=c.memoizedState,j=j!==null?j.dehydrated:null,!j)throw Error(i(317));j[Qn]=c}else Xl(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Gt(c),j=!1}else j=Ib(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=j),j=!0;if(!j)return c.flags&256?(zr(c),c):(zr(c),null)}return zr(c),(c.flags&128)!==0?(c.lanes=m,c):(m=y!==null,s=s!==null&&s.memoizedState!==null,m&&(y=c.child,j=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(j=y.alternate.memoizedState.cachePool.pool),E=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(E=y.memoizedState.cachePool.pool),E!==j&&(y.flags|=2048)),m!==s&&m&&(c.child.flags|=8192),kv(c,c.updateQueue),Gt(c),null);case 4:return ee(),s===null&&Zw(c.stateNode.containerInfo),Gt(c),null;case 10:return Do(c.type),Gt(c),null;case 19:if(V(li),y=c.memoizedState,y===null)return Gt(c),null;if(j=(c.flags&128)!==0,E=y.rendering,E===null)if(j)Jd(y,!1);else{if(ti!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(E=lv(s),E!==null){for(c.flags|=128,Jd(y,!1),s=E.updateQueue,c.updateQueue=s,kv(c,s),c.subtreeFlags=0,s=m,m=c.child;m!==null;)PA(m,s),m=m.sibling;return B(li,li.current&1|2),ut&&Eo(c,y.treeForkCount),c.child}s=s.sibling}y.tail!==null&&Qe()>jv&&(c.flags|=128,j=!0,Jd(y,!1),c.lanes=4194304)}else{if(!j)if(s=lv(E),s!==null){if(c.flags|=128,j=!0,s=s.updateQueue,c.updateQueue=s,kv(c,s),Jd(y,!0),y.tail===null&&y.tailMode==="hidden"&&!E.alternate&&!ut)return Gt(c),null}else 2*Qe()-y.renderingStartTime>jv&&m!==536870912&&(c.flags|=128,j=!0,Jd(y,!1),c.lanes=4194304);y.isBackwards?(E.sibling=c.child,c.child=E):(s=y.last,s!==null?s.sibling=E:c.child=E,y.last=E)}return y.tail!==null?(s=y.tail,y.rendering=s,y.tail=s.sibling,y.renderingStartTime=Qe(),s.sibling=null,m=li.current,B(li,j?m&1|2:m&1),ut&&Eo(c,y.treeForkCount),s):(Gt(c),null);case 22:case 23:return zr(c),Qb(),y=c.memoizedState!==null,s!==null?s.memoizedState!==null!==y&&(c.flags|=8192):y&&(c.flags|=8192),y?(m&536870912)!==0&&(c.flags&128)===0&&(Gt(c),c.subtreeFlags&6&&(c.flags|=8192)):Gt(c),m=c.updateQueue,m!==null&&kv(c,m.retryQueue),m=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==m&&(c.flags|=2048),s!==null&&V(Jl),null;case 24:return m=null,s!==null&&(m=s.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),Do(hi),Gt(c),null;case 25:return null;case 30:return null}throw Error(i(156,c.tag))}function YY(s,c){switch(zb(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Do(hi),ee(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return ke(c),null;case 31:if(c.memoizedState!==null){if(zr(c),c.alternate===null)throw Error(i(340));Xl()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 13:if(zr(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(i(340));Xl()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return V(li),null;case 4:return ee(),null;case 10:return Do(c.type),null;case 22:case 23:return zr(c),Qb(),s!==null&&V(Jl),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return Do(hi),null;case 25:return null;default:return null}}function s5(s,c){switch(zb(c),c.tag){case 3:Do(hi),ee();break;case 26:case 27:case 5:ke(c);break;case 4:ee();break;case 31:c.memoizedState!==null&&zr(c);break;case 13:zr(c);break;case 19:V(li);break;case 10:Do(c.type);break;case 22:case 23:zr(c),Qb(),s!==null&&V(Jl);break;case 24:Do(hi)}}function eh(s,c){try{var m=c.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var j=y.next;m=j;do{if((m.tag&s)===s){y=void 0;var E=m.create,F=m.inst;y=E(),F.destroy=y}m=m.next}while(m!==j)}}catch(K){Ct(c,c.return,K)}}function Is(s,c,m){try{var y=c.updateQueue,j=y!==null?y.lastEffect:null;if(j!==null){var E=j.next;y=E;do{if((y.tag&s)===s){var F=y.inst,K=F.destroy;if(K!==void 0){F.destroy=void 0,j=c;var ne=m,pe=K;try{pe()}catch(Te){Ct(j,ne,Te)}}}y=y.next}while(y!==E)}}catch(Te){Ct(c,c.return,Te)}}function l5(s){var c=s.updateQueue;if(c!==null){var m=s.stateNode;try{QA(c,m)}catch(y){Ct(s,s.return,y)}}}function u5(s,c,m){m.props=ru(s.type,s.memoizedProps),m.state=s.memoizedState;try{m.componentWillUnmount()}catch(y){Ct(s,c,y)}}function nh(s,c){try{var m=s.ref;if(m!==null){switch(s.tag){case 26:case 27:case 5:var y=s.stateNode;break;case 30:y=s.stateNode;break;default:y=s.stateNode}typeof m=="function"?s.refCleanup=m(y):m.current=y}}catch(j){Ct(s,c,j)}}function Ja(s,c){var m=s.ref,y=s.refCleanup;if(m!==null)if(typeof y=="function")try{y()}catch(j){Ct(s,c,j)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(j){Ct(s,c,j)}else m.current=null}function c5(s){var c=s.type,m=s.memoizedProps,y=s.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&y.focus();break e;case"img":m.src?y.src=m.src:m.srcSet&&(y.srcset=m.srcSet)}}catch(j){Ct(s,s.return,j)}}function Ew(s,c,m){try{var y=s.stateNode;vK(y,s.type,m,c),y[Rt]=c}catch(j){Ct(s,s.return,j)}}function f5(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Ws(s.type)||s.tag===4}function Mw(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||f5(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Ws(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Dw(s,c,m){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(s,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(s),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=Zr));else if(y!==4&&(y===27&&Ws(s.type)&&(m=s.stateNode,c=null),s=s.child,s!==null))for(Dw(s,c,m),s=s.sibling;s!==null;)Dw(s,c,m),s=s.sibling}function _v(s,c,m){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?m.insertBefore(s,c):m.appendChild(s);else if(y!==4&&(y===27&&Ws(s.type)&&(m=s.stateNode),s=s.child,s!==null))for(_v(s,c,m),s=s.sibling;s!==null;)_v(s,c,m),s=s.sibling}function d5(s){var c=s.stateNode,m=s.memoizedProps;try{for(var y=s.type,j=c.attributes;j.length;)c.removeAttributeNode(j[0]);Fi(c,y,m),c[Qn]=s,c[Rt]=m}catch(E){Ct(s,s.return,E)}}var zo=!1,vi=!1,Rw=!1,h5=typeof WeakSet=="function"?WeakSet:Set,Ei=null;function KY(s,c){if(s=s.containerInfo,ek=Hv,s=CA(s),jb(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var y=m.getSelection&&m.getSelection();if(y&&y.rangeCount!==0){m=y.anchorNode;var j=y.anchorOffset,E=y.focusNode;y=y.focusOffset;try{m.nodeType,E.nodeType}catch{m=null;break e}var F=0,K=-1,ne=-1,pe=0,Te=0,Re=s,ge=null;n:for(;;){for(var Se;Re!==m||j!==0&&Re.nodeType!==3||(K=F+j),Re!==E||y!==0&&Re.nodeType!==3||(ne=F+y),Re.nodeType===3&&(F+=Re.nodeValue.length),(Se=Re.firstChild)!==null;)ge=Re,Re=Se;for(;;){if(Re===s)break n;if(ge===m&&++pe===j&&(K=F),ge===E&&++Te===y&&(ne=F),(Se=Re.nextSibling)!==null)break;Re=ge,ge=Re.parentNode}Re=Se}m=K===-1||ne===-1?null:{start:K,end:ne}}else m=null}m=m||{start:0,end:0}}else m=null;for(nk={focusedElem:s,selectionRange:m},Hv=!1,Ei=c;Ei!==null;)if(c=Ei,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Ei=s;else for(;Ei!==null;){switch(c=Ei,E=c.alternate,s=c.flags,c.tag){case 0:if((s&4)!==0&&(s=c.updateQueue,s=s!==null?s.events:null,s!==null))for(m=0;m title"))),Fi(E,y,m),E[Qn]=s,fn(E),y=E;break e;case"link":var F=bT("link","href",j).get(y+(m.href||""));if(F){for(var K=0;KOt&&(F=Ot,Ot=jn,jn=F);var ue=xA(K,jn),ae=xA(K,Ot);if(ue&&ae&&(Se.rangeCount!==1||Se.anchorNode!==ue.node||Se.anchorOffset!==ue.offset||Se.focusNode!==ae.node||Se.focusOffset!==ae.offset)){var me=Re.createRange();me.setStart(ue.node,ue.offset),Se.removeAllRanges(),jn>Ot?(Se.addRange(me),Se.extend(ae.node,ae.offset)):(me.setEnd(ae.node,ae.offset),Se.addRange(me))}}}}for(Re=[],Se=K;Se=Se.parentNode;)Se.nodeType===1&&Re.push({element:Se,left:Se.scrollLeft,top:Se.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;Km?32:m,D.T=null,m=Bw,Bw=null;var E=Hs,F=qo;if(_i=0,Sc=Hs=null,qo=0,(bt&6)!==0)throw Error(i(331));var K=bt;if(bt|=4,S5(E.current),k5(E,E.current,F,m),bt=K,sh(0,!1),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(Dn,E)}catch{}return!0}finally{L.p=j,D.T=y,q5(s,c)}}function U5(s,c,m){c=ta(m,c),c=bw(s.stateNode,c,2),s=$s(s,c,2),s!==null&&(ot(s,2),eo(s))}function Ct(s,c,m){if(s.tag===3)U5(s,s,m);else for(;c!==null;){if(c.tag===3){U5(c,s,m);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(qs===null||!qs.has(y))){s=ta(m,s),m=VO(2),y=$s(c,m,2),y!==null&&(WO(m,y,c,s),ot(y,2),eo(y));break}}c=c.return}}function Uw(s,c,m){var y=s.pingCache;if(y===null){y=s.pingCache=new QY;var j=new Set;y.set(c,j)}else j=y.get(c),j===void 0&&(j=new Set,y.set(c,j));j.has(m)||($w=!0,j.add(m),s=iK.bind(null,s,c,m),c.then(s,s))}function iK(s,c,m){var y=s.pingCache;y!==null&&y.delete(c),s.pingedLanes|=s.suspendedLanes&m,s.warmLanes&=~m,Nt===s&&(st&m)===m&&(ti===4||ti===3&&(st&62914560)===st&&300>Qe()-Cv?(bt&2)===0&&Cc(s,0):zw|=m,xc===st&&(xc=0)),eo(s)}function V5(s,c){c===0&&(c=Ue()),s=Yl(s,c),s!==null&&(ot(s,c),eo(s))}function rK(s){var c=s.memoizedState,m=0;c!==null&&(m=c.retryLane),V5(s,m)}function aK(s,c){var m=0;switch(s.tag){case 31:case 13:var y=s.stateNode,j=s.memoizedState;j!==null&&(m=j.retryLane);break;case 19:y=s.stateNode;break;case 22:y=s.stateNode._retryCache;break;default:throw Error(i(314))}y!==null&&y.delete(c),V5(s,m)}function oK(s,c){return he(s,c)}var Dv=null,Ac=null,Vw=!1,Rv=!1,Ww=!1,Vs=0;function eo(s){s!==Ac&&s.next===null&&(Ac===null?Dv=Ac=s:Ac=Ac.next=s),Rv=!0,Vw||(Vw=!0,lK())}function sh(s,c){if(!Ww&&Rv){Ww=!0;do for(var m=!1,y=Dv;y!==null;){if(s!==0){var j=y.pendingLanes;if(j===0)var E=0;else{var F=y.suspendedLanes,K=y.pingedLanes;E=(1<<31-tn(42|s)+1)-1,E&=j&~(F&~K),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(m=!0,K5(y,E))}else E=st,E=at(y,y===Nt?E:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(E&3)===0||Dt(y,E)||(m=!0,K5(y,E));y=y.next}while(m);Ww=!1}}function sK(){W5()}function W5(){Rv=Vw=!1;var s=0;Vs!==0&&yK()&&(s=Vs);for(var c=Qe(),m=null,y=Dv;y!==null;){var j=y.next,E=G5(y,c);E===0?(y.next=null,m===null?Dv=j:m.next=j,j===null&&(Ac=m)):(m=y,(s!==0||(E&3)!==0)&&(Rv=!0)),y=j}_i!==0&&_i!==5||sh(s),Vs!==0&&(Vs=0)}function G5(s,c){for(var m=s.suspendedLanes,y=s.pingedLanes,j=s.expirationTimes,E=s.pendingLanes&-62914561;0K)break;var Te=ne.transferSize,Re=ne.initiatorType;Te&&iT(Re)&&(ne=ne.responseEnd,F+=Te*(ne"u"?null:document;function pT(s,c,m){var y=Oc;if(y&&typeof c=="string"&&c){var j=pr(c);j='link[rel="'+s+'"][href="'+j+'"]',typeof m=="string"&&(j+='[crossorigin="'+m+'"]'),mT.has(j)||(mT.add(j),s={rel:s,crossOrigin:m,href:c},y.querySelector(j)===null&&(c=y.createElement("link"),Fi(c,"link",s),fn(c),y.head.appendChild(c)))}}function AK(s){Ho.D(s),pT("dns-prefetch",s,null)}function OK(s,c){Ho.C(s,c),pT("preconnect",s,c)}function TK(s,c,m){Ho.L(s,c,m);var y=Oc;if(y&&s&&c){var j='link[rel="preload"][as="'+pr(c)+'"]';c==="image"&&m&&m.imageSrcSet?(j+='[imagesrcset="'+pr(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(j+='[imagesizes="'+pr(m.imageSizes)+'"]')):j+='[href="'+pr(s)+'"]';var E=j;switch(c){case"style":E=Tc(s);break;case"script":E=Ec(s)}la.has(E)||(s=d({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:s,as:c},m),la.set(E,s),y.querySelector(j)!==null||c==="style"&&y.querySelector(fh(E))||c==="script"&&y.querySelector(dh(E))||(c=y.createElement("link"),Fi(c,"link",s),fn(c),y.head.appendChild(c)))}}function EK(s,c){Ho.m(s,c);var m=Oc;if(m&&s){var y=c&&typeof c.as=="string"?c.as:"script",j='link[rel="modulepreload"][as="'+pr(y)+'"][href="'+pr(s)+'"]',E=j;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Ec(s)}if(!la.has(E)&&(s=d({rel:"modulepreload",href:s},c),la.set(E,s),m.querySelector(j)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(dh(E)))return}y=m.createElement("link"),Fi(y,"link",s),fn(y),m.head.appendChild(y)}}}function MK(s,c,m){Ho.S(s,c,m);var y=Oc;if(y&&s){var j=oi(y).hoistableStyles,E=Tc(s);c=c||"default";var F=j.get(E);if(!F){var K={loading:0,preload:null};if(F=y.querySelector(fh(E)))K.loading=5;else{s=d({rel:"stylesheet",href:s,"data-precedence":c},m),(m=la.get(E))&&lk(s,m);var ne=F=y.createElement("link");fn(ne),Fi(ne,"link",s),ne._p=new Promise(function(pe,Te){ne.onload=pe,ne.onerror=Te}),ne.addEventListener("load",function(){K.loading|=1}),ne.addEventListener("error",function(){K.loading|=2}),K.loading|=4,Lv(F,c,y)}F={type:"stylesheet",instance:F,count:1,state:K},j.set(E,F)}}}function DK(s,c){Ho.X(s,c);var m=Oc;if(m&&s){var y=oi(m).hoistableScripts,j=Ec(s),E=y.get(j);E||(E=m.querySelector(dh(j)),E||(s=d({src:s,async:!0},c),(c=la.get(j))&&uk(s,c),E=m.createElement("script"),fn(E),Fi(E,"link",s),m.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},y.set(j,E))}}function RK(s,c){Ho.M(s,c);var m=Oc;if(m&&s){var y=oi(m).hoistableScripts,j=Ec(s),E=y.get(j);E||(E=m.querySelector(dh(j)),E||(s=d({src:s,async:!0,type:"module"},c),(c=la.get(j))&&uk(s,c),E=m.createElement("script"),fn(E),Fi(E,"link",s),m.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},y.set(j,E))}}function vT(s,c,m,y){var j=(j=re.current)?zv(j):null;if(!j)throw Error(i(446));switch(s){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(c=Tc(m.href),m=oi(j).hoistableStyles,y=m.get(c),y||(y={type:"style",instance:null,count:0,state:null},m.set(c,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){s=Tc(m.href);var E=oi(j).hoistableStyles,F=E.get(s);if(F||(j=j.ownerDocument||j,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(s,F),(E=j.querySelector(fh(s)))&&!E._p&&(F.instance=E,F.state.loading=5),la.has(s)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},la.set(s,m),E||PK(j,s,m,F.state))),c&&y===null)throw Error(i(528,""));return F}if(c&&y!==null)throw Error(i(529,""));return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Ec(m),m=oi(j).hoistableScripts,y=m.get(c),y||(y={type:"script",instance:null,count:0,state:null},m.set(c,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,s))}}function Tc(s){return'href="'+pr(s)+'"'}function fh(s){return'link[rel="stylesheet"]['+s+"]"}function gT(s){return d({},s,{"data-precedence":s.precedence,precedence:null})}function PK(s,c,m,y){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?y.loading=1:(c=s.createElement("link"),y.preload=c,c.addEventListener("load",function(){return y.loading|=1}),c.addEventListener("error",function(){return y.loading|=2}),Fi(c,"link",m),fn(c),s.head.appendChild(c))}function Ec(s){return'[src="'+pr(s)+'"]'}function dh(s){return"script[async]"+s}function yT(s,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var y=s.querySelector('style[data-href~="'+pr(m.href)+'"]');if(y)return c.instance=y,fn(y),y;var j=d({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return y=(s.ownerDocument||s).createElement("style"),fn(y),Fi(y,"style",j),Lv(y,m.precedence,s),c.instance=y;case"stylesheet":j=Tc(m.href);var E=s.querySelector(fh(j));if(E)return c.state.loading|=4,c.instance=E,fn(E),E;y=gT(m),(j=la.get(j))&&lk(y,j),E=(s.ownerDocument||s).createElement("link"),fn(E);var F=E;return F._p=new Promise(function(K,ne){F.onload=K,F.onerror=ne}),Fi(E,"link",y),c.state.loading|=4,Lv(E,m.precedence,s),c.instance=E;case"script":return E=Ec(m.src),(j=s.querySelector(dh(E)))?(c.instance=j,fn(j),j):(y=m,(j=la.get(E))&&(y=d({},m),uk(y,j)),s=s.ownerDocument||s,j=s.createElement("script"),fn(j),Fi(j,"link",y),s.head.appendChild(j),c.instance=j);case"void":return null;default:throw Error(i(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(y=c.instance,c.state.loading|=4,Lv(y,m.precedence,s));return c.instance}function Lv(s,c,m){for(var y=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),j=y.length?y[y.length-1]:null,E=j,F=0;F title"):null)}function NK(s,c,m){if(m===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function kT(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function $K(s,c,m,y){if(m.type==="stylesheet"&&(typeof y.media!="string"||matchMedia(y.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var j=Tc(y.href),E=c.querySelector(fh(j));if(E){c=E._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(s.count++,s=Bv.bind(s),c.then(s,s)),m.state.loading|=4,m.instance=E,fn(E);return}E=c.ownerDocument||c,y=gT(y),(j=la.get(j))&&lk(y,j),E=E.createElement("link"),fn(E);var F=E;F._p=new Promise(function(K,ne){F.onload=K,F.onerror=ne}),Fi(E,"link",y),m.instance=E}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(m,c),(c=m.state.preload)&&(m.state.loading&3)===0&&(s.count++,m=Bv.bind(s),c.addEventListener("load",m),c.addEventListener("error",m))}}var ck=0;function zK(s,c){return s.stylesheets&&s.count===0&&qv(s,s.stylesheets),0ck?50:800)+c);return s.unsuspend=m,function(){s.unsuspend=null,clearTimeout(y),clearTimeout(j)}}:null}function Bv(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qv(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Fv=null;function qv(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Fv=new Map,c.forEach(LK,s),Fv=null,Bv.call(s))}function LK(s,c){if(!(c.state.loading&4)){var m=Fv.get(s);if(m)var y=m.get(null);else{m=new Map,Fv.set(s,m);for(var j=s.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Kk.exports=fre(),Kk.exports}var hre=dre();class p9 extends Error{constructor(n,t){super(t),this.status=n,this.name="HTTPError"}}async function mre(e,n,t){const i=await fetch(`${t}${e}`,{credentials:"include",...n,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}});if(!i.ok){const r=await i.json().catch(()=>({Message:i.statusText}));throw new p9(i.status,r.Message??r.message??i.statusText)}if(i.status!==204)return i.json()}const NF="/api";function kn(e,n){return mre(e,n,NF)}function lM(){return kn("/board")}function pre(){return kn("/flags")}function $F(){return kn("/version")}function vre(e){return kn("/columns",{method:"POST",body:JSON.stringify({name:e})})}function uu(e,n){return kn(`/columns/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function gre(e){return kn(`/columns/${e}`,{method:"DELETE"})}function yre(e){return kn("/columns/reorder",{method:"POST",body:JSON.stringify({ids:e})})}function bre(e){return kn("/cards",{method:"POST",body:JSON.stringify(e)})}function $c(e,n){return kn(`/cards/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function wre(e){return kn(`/cards/${e}`,{method:"DELETE"})}function Qk(e,n){return kn(`/cards/${e}/stickers`,{method:"PUT",body:JSON.stringify({stickers:n})})}function uM(){return kn("/trash")}function kre(e){return kn(`/cards/${e}/restore`,{method:"POST"})}function _re(e){return kn(`/cards/${e}/purge`,{method:"DELETE"})}function cM(){return kn("/archive")}function xre(e){return kn(`/cards/${e}/archive`,{method:"POST"})}function Sre(e){return kn(`/cards/${e}/unarchive`,{method:"POST"})}function Cre(e,n){const t=new URLSearchParams({date:e});return kn(`/reports/daily?${t.toString()}`)}function jre(e){return kn(`/reports/daily/summary?date=${encodeURIComponent(e)}`)}function Are(e,n){const t=new URLSearchParams({date:e});return kn(`/reports/daily/summary?${t.toString()}`,{method:"POST"})}function Ore(e){return kn(`/settings/${encodeURIComponent(e)}`)}function Tre(e,n){return kn(`/settings/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify({value:n})})}function Ere(e,n,t){return kn(`/cards/${e}/move`,{method:"POST",body:JSON.stringify({column_id:n,ordered_ids:t})})}function Mre(e){return kn(`/cards/${e}/history`)}function Dre(e){return kn(`/cards/${e}/messages`)}function fM(e,n){return kn(`/cards/${e}/messages`,{method:"POST",body:JSON.stringify({body:n})})}function Rre(e,n){return kn(`/cards/${e}/messages/${n}`,{method:"DELETE"})}function Pre(e){return kn(`/cards/${e}/duplicate`,{method:"POST"})}function Nre(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/chat/ws`}function $re(e){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/cards/${e}/chat/ws`}function zF(e=!1){return kn(`/notifications${e?"?unread=1":""}`)}function LF(){return kn("/notifications/unread-count")}function zre(e){return kn(`/notifications/${e}/read`,{method:"POST"})}function Lre(){return kn("/notifications/read-all",{method:"POST"})}function Ire(){return kn("/modules")}function Bre(e){return kn("/modules",{method:"POST",body:JSON.stringify(e)})}function Fre(e,n){return kn(`/modules/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function qre(e){return kn(`/modules/${e}`,{method:"DELETE"})}function Hre(e,n=100){return kn(`/modules/${e}/logs?limit=${n}`)}function dM(e,n){const t={method:"POST"};return n&&(t.body=JSON.stringify(n)),kn(`/modules/${e}/test`,t)}function Ure(e,n,t){return new Promise((i,r)=>{const a=new WebSocket(Nre());let o=!1;const l=u=>{if(!o){o=!0;try{a.close()}catch{}u?r(u):i()}};a.onopen=()=>{a.send(JSON.stringify({messages:e}))},a.onmessage=u=>{try{const f=JSON.parse(typeof u.data=="string"?u.data:"");n(f),(f.type==="done"||f.type==="error")&&l(f.type==="error"?new Error(f.error):void 0)}catch(f){l(f)}},a.onerror=()=>l(new Error("websocket error")),a.onclose=()=>l()})}function hM(e,n){return kn("/auth/login",{method:"POST",body:JSON.stringify({username:e,password:n})})}function Vre(e,n,t){return kn("/auth/register",{method:"POST",body:JSON.stringify({username:e,password:n,display_name:t})})}function Wre(){return kn("/auth/logout",{method:"POST"})}function Gre(){return kn("/me")}function mM(e){return kn("/me",{method:"PATCH",body:JSON.stringify(e)})}function IF(){return kn("/users")}function BF(){return kn("/tags")}function Yre(){return kn("/requesters")}function Kre(e){return kn(`/cards/${e}/files`)}async function v9(e,n,t="upload"){const i=new FormData;i.append("file",n),i.append("source",t);const r=await fetch(`${NF}/cards/${e}/files`,{method:"POST",credentials:"same-origin",body:i});if(!r.ok){let a=`upload failed: ${r.status}`;try{const o=await r.json();(o.Message||o.message)&&(a=o.Message||o.message||a)}catch{}throw new p9(r.status,a)}return await r.json()}function Xre(e){return kn(`/files/${e}`,{method:"DELETE"})}function Zre(e){return kn("/mcp-tokens",{method:"POST",body:JSON.stringify({name:e})})}function Qre(){return kn("/mcp-tokens")}function Jre(e){return kn(`/mcp-tokens/${e}`,{method:"DELETE"})}function eae(e){return kn(`/cards/${e}/jira-sync`)}function nae(e){const n=new URLSearchParams;e!=null&&e.includeImported&&n.set("include_imported","true"),n.set("limit",String(e.limit));const t=n.toString();return kn(`/jira/issues${t?`?${t}`:""}`)}function tae(e,n){return kn("/jira/import",{method:"POST",body:JSON.stringify({issue_keys:e,fallback_column_id:n||""})})}function iae(){return kn("/jira/check-columns")}function rae(e){return kn("/jira/reconcile-columns",{method:"POST",body:JSON.stringify({card_ids:e,direction:"kanban-wins"})})}function FF(e){const n=new URLSearchParams;e.from&&n.set("from",e.from),e.to&&n.set("to",e.to),e.assignee_id&&n.set("assignee_id",e.assignee_id),e.requester&&n.set("requester",e.requester),e.tags&&e.tags.length>0&&n.set("tags",e.tags.join(","));const t=n.toString();return kn(`/metrics${t?`?${t}`:""}`)}const qF=S.createContext(null);function aae({children:e}){const[n,t]=S.useState(null),[i,r]=S.useState(!0);S.useEffect(()=>{Gre().then(t).catch(u=>{(!(u instanceof p9)||u.status!==401)&&console.warn("getMe failed",u)}).finally(()=>r(!1))},[]);const a=S.useCallback(async(u,f)=>{const h=await hM(u,f);t(h)},[]),o=S.useCallback(async(u,f,h)=>{await Vre(u,f,h);const d=await hM(u,f);t(d)},[]),l=S.useCallback(async()=>{await Wre(),t(null)},[]);return v.jsx(qF.Provider,{value:{user:n,loading:i,login:a,register:o,logout:l,setUser:t},children:e})}function g9(){const e=S.useContext(qF);if(!e)throw new Error("useAuth: missing AuthProvider");return e}function oae(){for(var e=arguments.length,n=new Array(e),t=0;ti=>{n.forEach(r=>r(i))},n)}const g0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ed(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function y9(e){return"nodeType"in e}function dr(e){var n,t;return e?ed(e)?e:y9(e)&&(n=(t=e.ownerDocument)==null?void 0:t.defaultView)!=null?n:window:window}function b9(e){const{Document:n}=dr(e);return e instanceof n}function wp(e){return ed(e)?!1:e instanceof dr(e).HTMLElement}function HF(e){return e instanceof dr(e).SVGElement}function nd(e){return e?ed(e)?e.document:y9(e)?b9(e)?e:wp(e)||HF(e)?e.ownerDocument:document:document:document}const Wa=g0?S.useLayoutEffect:S.useEffect;function y0(e){const n=S.useRef(e);return Wa(()=>{n.current=e}),S.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r{e.current=setInterval(i,r)},[]),t=S.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,t]}function gm(e,n){n===void 0&&(n=[e]);const t=S.useRef(e);return Wa(()=>{t.current!==e&&(t.current=e)},n),t}function kp(e,n){const t=S.useRef();return S.useMemo(()=>{const i=e(t.current);return t.current=i,i},[...n])}function t1(e){const n=y0(e),t=S.useRef(null),i=S.useCallback(r=>{r!==t.current&&(n==null||n(r,t.current)),t.current=r},[]);return[t,i]}function i1(e){const n=S.useRef();return S.useEffect(()=>{n.current=e},[e]),n.current}let Jk={};function _p(e,n){return S.useMemo(()=>{if(n)return n;const t=Jk[e]==null?0:Jk[e]+1;return Jk[e]=t,e+"-"+t},[e,n])}function UF(e){return function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r{const l=Object.entries(o);for(const[u,f]of l){const h=a[u];h!=null&&(a[u]=h+e*f)}return a},{...n})}}const Jc=UF(1),ym=UF(-1);function lae(e){return"clientX"in e&&"clientY"in e}function b0(e){if(!e)return!1;const{KeyboardEvent:n}=dr(e.target);return n&&e instanceof n}function uae(e){if(!e)return!1;const{TouchEvent:n}=dr(e.target);return n&&e instanceof n}function r1(e){if(uae(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return lae(e)?{x:e.clientX,y:e.clientY}:null}const po=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[po.Translate.toString(e),po.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:i}=e;return n+" "+t+"ms "+i}}}),pM="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function cae(e){return e.matches(pM)?e:e.querySelector(pM)}const fae={display:"none"};function dae(e){let{id:n,value:t}=e;return J.createElement("div",{id:n,style:fae},t)}function hae(e){let{id:n,announcement:t,ariaLiveType:i="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return J.createElement("div",{id:n,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function mae(){const[e,n]=S.useState("");return{announce:S.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}const VF=S.createContext(null);function pae(e){const n=S.useContext(VF);S.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of ");return n(e)},[e,n])}function vae(){const[e]=S.useState(()=>new Set),n=S.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[S.useCallback(i=>{let{type:r,event:a}=i;e.forEach(o=>{var l;return(l=o[r])==null?void 0:l.call(o,a)})},[e]),n]}const gae={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. - `},vae={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function gae(e){let{announcements:n=vae,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=pae}=e;const{announce:a,announcement:o}=dae(),l=_p("DndLiveRegion"),[u,f]=x.useState(!1);if(x.useEffect(()=>{f(!0)},[]),hae(x.useMemo(()=>({onDragStart(d){let{active:p}=d;a(n.onDragStart({active:p}))},onDragMove(d){let{active:p,over:g}=d;n.onDragMove&&a(n.onDragMove({active:p,over:g}))},onDragOver(d){let{active:p,over:g}=d;a(n.onDragOver({active:p,over:g}))},onDragEnd(d){let{active:p,over:g}=d;a(n.onDragEnd({active:p,over:g}))},onDragCancel(d){let{active:p,over:g}=d;a(n.onDragCancel({active:p,over:g}))}}),[a,n])),!u)return null;const h=J.createElement(J.Fragment,null,J.createElement(cae,{id:i,value:r.draggable}),J.createElement(fae,{id:l,announcement:o}));return t?sl.createPortal(h,t):h}var Ci;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ci||(Ci={}));function a1(){}function pM(e,n){return x.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function yae(){for(var e=arguments.length,n=new Array(e),t=0;t[...n].filter(i=>i!=null),[...n])}const Wa=Object.freeze({x:0,y:0});function w9(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function bae(e,n){const t=r1(e);if(!t)return"0 0";const i={x:(t.x-n.left)/n.width*100,y:(t.y-n.top)/n.height*100};return i.x+"% "+i.y+"%"}function k9(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return t-i}function wae(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return i-t}function ZS(e){let{left:n,top:t,height:i,width:r}=e;return[{x:n,y:t},{x:n+r,y:t},{x:n,y:t+i},{x:n+r,y:t+i}]}function VF(e,n){if(!e||e.length===0)return null;const[t]=e;return t[n]}function vM(e,n,t){return n===void 0&&(n=e.left),t===void 0&&(t=e.top),{x:n+e.width*.5,y:t+e.height*.5}}const kae=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=vM(n,n.left,n.top),a=[];for(const o of i){const{id:l}=o,u=t.get(l);if(u){const f=w9(vM(u),r);a.push({id:l,data:{droppableContainer:o,value:f}})}}return a.sort(k9)},WF=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=ZS(n),a=[];for(const o of i){const{id:l}=o,u=t.get(l);if(u){const f=ZS(u),h=r.reduce((p,g,b)=>p+w9(f[b],g),0),d=Number((h/4).toFixed(4));a.push({id:l,data:{droppableContainer:o,value:d}})}}return a.sort(k9)};function _ae(e,n){const t=Math.max(n.top,e.top),i=Math.max(n.left,e.left),r=Math.min(n.left+n.width,e.left+e.width),a=Math.min(n.top+n.height,e.top+e.height),o=r-i,l=a-t;if(i{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=[];for(const a of i){const{id:o}=a,l=t.get(o);if(l){const u=_ae(l,n);u>0&&r.push({id:o,data:{droppableContainer:a,value:u}})}}return r.sort(wae)};function xae(e,n){const{top:t,left:i,bottom:r,right:a}=n;return t<=e.y&&e.y<=r&&i<=e.x&&e.x<=a}const Sae=e=>{let{droppableContainers:n,droppableRects:t,pointerCoordinates:i}=e;if(!i)return[];const r=[];for(const a of n){const{id:o}=a,l=t.get(o);if(l&&xae(i,l)){const f=ZS(l).reduce((d,p)=>d+w9(i,p),0),h=Number((f/4).toFixed(4));r.push({id:o,data:{droppableContainer:a,value:h}})}}return r.sort(k9)};function Cae(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}function YF(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:Wa}function jae(e){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a({...o,top:o.top+e*l.y,bottom:o.bottom+e*l.y,left:o.left+e*l.x,right:o.right+e*l.x}),{...t})}}const Aae=jae(1);function KF(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function Oae(e,n,t){const i=KF(n);if(!i)return e;const{scaleX:r,scaleY:a,x:o,y:l}=i,u=e.left-o-(1-r)*parseFloat(t),f=e.top-l-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),h=r?e.width/r:e.width,d=a?e.height/a:e.height;return{width:h,height:d,top:f,right:u+h,bottom:f+d,left:u}}const Tae={ignoreTransform:!1};function td(e,n){n===void 0&&(n=Tae);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:f,transformOrigin:h}=fr(e).getComputedStyle(e);f&&(t=Oae(t,f,h))}const{top:i,left:r,width:a,height:o,bottom:l,right:u}=t;return{top:i,left:r,width:a,height:o,bottom:l,right:u}}function gM(e){return td(e,{ignoreTransform:!0})}function Eae(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}function Mae(e,n){return n===void 0&&(n=fr(e).getComputedStyle(e)),n.position==="fixed"}function Dae(e,n){n===void 0&&(n=fr(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=n[r];return typeof a=="string"?t.test(a):!1})}function b0(e,n){const t=[];function i(r){if(n!=null&&t.length>=n||!r)return t;if(b9(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!wp(r)||qF(r)||t.includes(r))return t;const a=fr(e).getComputedStyle(r);return r!==e&&Dae(r,a)&&t.push(r),Mae(r,a)?t:i(r.parentNode)}return e?i(e):t}function XF(e){const[n]=b0(e,1);return n??null}function Jk(e){return!v0||!e?null:ed(e)?e:y9(e)?b9(e)||e===nd(e).scrollingElement?window:wp(e)?e:null:null}function ZF(e){return ed(e)?e.scrollX:e.scrollLeft}function QF(e){return ed(e)?e.scrollY:e.scrollTop}function QS(e){return{x:ZF(e),y:QF(e)}}var Ri;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ri||(Ri={}));function JF(e){return!v0||!e?!1:e===document.scrollingElement}function eq(e){const n={x:0,y:0},t=JF(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height},r=e.scrollTop<=n.y,a=e.scrollLeft<=n.x,o=e.scrollTop>=i.y,l=e.scrollLeft>=i.x;return{isTop:r,isLeft:a,isBottom:o,isRight:l,maxScroll:i,minScroll:n}}const Rae={x:.2,y:.2};function Pae(e,n,t,i,r){let{top:a,left:o,right:l,bottom:u}=t;i===void 0&&(i=10),r===void 0&&(r=Rae);const{isTop:f,isBottom:h,isLeft:d,isRight:p}=eq(e),g={x:0,y:0},b={x:0,y:0},w={height:n.height*r.y,width:n.width*r.x};return!f&&a<=n.top+w.height?(g.y=Ri.Backward,b.y=i*Math.abs((n.top+w.height-a)/w.height)):!h&&u>=n.bottom-w.height&&(g.y=Ri.Forward,b.y=i*Math.abs((n.bottom-w.height-u)/w.height)),!p&&l>=n.right-w.width?(g.x=Ri.Forward,b.x=i*Math.abs((n.right-w.width-l)/w.width)):!d&&o<=n.left+w.width&&(g.x=Ri.Backward,b.x=i*Math.abs((n.left+w.width-o)/w.width)),{direction:g,speed:b}}function Nae(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:n,left:t,right:i,bottom:r}=e.getBoundingClientRect();return{top:n,left:t,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}function nq(e){return e.reduce((n,t)=>Qc(n,QS(t)),Wa)}function $ae(e){return e.reduce((n,t)=>n+ZF(t),0)}function zae(e){return e.reduce((n,t)=>n+QF(t),0)}function tq(e,n){if(n===void 0&&(n=td),!e)return;const{top:t,left:i,bottom:r,right:a}=n(e);XF(e)&&(r<=0||a<=0||t>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Lae=[["x",["left","right"],$ae],["y",["top","bottom"],zae]];class _9{constructor(n,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=b0(t),r=nq(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[a,o,l]of Lae)for(const u of o)Object.defineProperty(this,u,{get:()=>{const f=l(i),h=r[a]-f;return this.rect[u]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Xh{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...t)})},this.target=n}add(n,t,i){var r;(r=this.target)==null||r.addEventListener(n,t,i),this.listeners.push([n,t,i])}}function Iae(e){const{EventTarget:n}=fr(e);return e instanceof n?e:nd(e)}function e_(e,n){const t=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(t**2+i**2)>n:"x"in n&&"y"in n?t>n.x&&i>n.y:"x"in n?t>n.x:"y"in n?i>n.y:!1}var ma;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ma||(ma={}));function yM(e){e.preventDefault()}function Bae(e){e.stopPropagation()}var ct;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ct||(ct={}));const iq={start:[ct.Space,ct.Enter],cancel:[ct.Esc],end:[ct.Space,ct.Enter,ct.Tab]},Fae=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case ct.Right:return{...t,x:t.x+25};case ct.Left:return{...t,x:t.x-25};case ct.Down:return{...t,y:t.y+25};case ct.Up:return{...t,y:t.y-25}}};class x9{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:t}}=n;this.props=n,this.listeners=new Xh(nd(t)),this.windowListeners=new Xh(fr(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ma.Resize,this.handleCancel),this.windowListeners.add(ma.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ma.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:t}=this.props,i=n.node.current;i&&tq(i),t(Wa)}handleKeyDown(n){if(y0(n)){const{active:t,context:i,options:r}=this.props,{keyboardCodes:a=iq,coordinateGetter:o=Fae,scrollBehavior:l="smooth"}=r,{code:u}=n;if(a.end.includes(u)){this.handleEnd(n);return}if(a.cancel.includes(u)){this.handleCancel(n);return}const{collisionRect:f}=i.current,h=f?{x:f.left,y:f.top}:Wa;this.referenceCoordinates||(this.referenceCoordinates=h);const d=o(n,{active:t,context:i.current,currentCoordinates:h});if(d){const p=ym(d,h),g={x:0,y:0},{scrollableAncestors:b}=i.current;for(const w of b){const k=n.code,{isTop:_,isRight:S,isLeft:j,isBottom:T,maxScroll:A,minScroll:O}=eq(w),M=Nae(w),$={x:Math.min(k===ct.Right?M.right-M.width/2:M.right,Math.max(k===ct.Right?M.left:M.left+M.width/2,d.x)),y:Math.min(k===ct.Down?M.bottom-M.height/2:M.bottom,Math.max(k===ct.Down?M.top:M.top+M.height/2,d.y))},q=k===ct.Right&&!S||k===ct.Left&&!j,P=k===ct.Down&&!T||k===ct.Up&&!_;if(q&&$.x!==d.x){const L=w.scrollLeft+p.x,U=k===ct.Right&&L<=A.x||k===ct.Left&&L>=O.x;if(U&&!p.y){w.scrollTo({left:L,behavior:l});return}U?g.x=w.scrollLeft-L:g.x=k===ct.Right?w.scrollLeft-A.x:w.scrollLeft-O.x,g.x&&w.scrollBy({left:-g.x,behavior:l});break}else if(P&&$.y!==d.y){const L=w.scrollTop+p.y,U=k===ct.Down&&L<=A.y||k===ct.Up&&L>=O.y;if(U&&!p.x){w.scrollTo({top:L,behavior:l});return}U?g.y=w.scrollTop-L:g.y=k===ct.Down?w.scrollTop-A.y:w.scrollTop-O.y,g.y&&w.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(n,Qc(ym(d,this.referenceCoordinates),g))}}}handleMove(n,t){const{onMove:i}=this.props;n.preventDefault(),i(t)}handleEnd(n){const{onEnd:t}=this.props;n.preventDefault(),this.detach(),t()}handleCancel(n){const{onCancel:t}=this.props;n.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}x9.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:i=iq,onActivation:r}=n,{active:a}=t;const{code:o}=e.nativeEvent;if(i.start.includes(o)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function bM(e){return!!(e&&"distance"in e)}function wM(e){return!!(e&&"delay"in e)}class S9{constructor(n,t,i){var r;i===void 0&&(i=Iae(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=t;const{event:a}=n,{target:o}=a;this.props=n,this.events=t,this.document=nd(o),this.documentListeners=new Xh(this.document),this.listeners=new Xh(i),this.windowListeners=new Xh(fr(o)),this.initialCoordinates=(r=r1(a))!=null?r:Wa,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:t,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ma.Resize,this.handleCancel),this.windowListeners.add(ma.DragStart,yM),this.windowListeners.add(ma.VisibilityChange,this.handleCancel),this.windowListeners.add(ma.ContextMenu,yM),this.documentListeners.add(ma.Keydown,this.handleKeydown),t){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(wM(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(bM(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,t){const{active:i,onPending:r}=this.props;r(i,n,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:n}=this,{onStart:t}=this.props;n&&(this.activated=!0,this.documentListeners.add(ma.Click,Bae,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ma.SelectionChange,this.removeTextSelection),t(n))}handleMove(n){var t;const{activated:i,initialCoordinates:r,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!r)return;const u=(t=r1(n))!=null?t:Wa,f=ym(r,u);if(!i&&l){if(bM(l)){if(l.tolerance!=null&&e_(f,l.tolerance))return this.handleCancel();if(e_(f,l.distance))return this.handleStart()}if(wM(l)&&e_(f,l.tolerance))return this.handleCancel();this.handlePending(l,f);return}n.cancelable&&n.preventDefault(),o(u)}handleEnd(){const{onAbort:n,onEnd:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleCancel(){const{onAbort:n,onCancel:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleKeydown(n){n.code===ct.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const qae={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class C9 extends S9{constructor(n){const{event:t}=n,i=nd(t.target);super(n,qae,i)}}C9.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return!t.isPrimary||t.button!==0?!1:(i==null||i({event:t}),!0)}}];const Hae={move:{name:"mousemove"},end:{name:"mouseup"}};var JS;(function(e){e[e.RightClick=2]="RightClick"})(JS||(JS={}));class Uae extends S9{constructor(n){super(n,Hae,nd(n.event.target))}}Uae.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return t.button===JS.RightClick?!1:(i==null||i({event:t}),!0)}}];const n_={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Vae extends S9{constructor(n){super(n,n_)}static setup(){return window.addEventListener(n_.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(n_.move.name,n)};function n(){}}}Vae.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;const{touches:r}=t;return r.length>1?!1:(i==null||i({event:t}),!0)}}];var Zh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Zh||(Zh={}));var o1;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(o1||(o1={}));function Wae(e){let{acceleration:n,activator:t=Zh.Pointer,canScroll:i,draggingRect:r,enabled:a,interval:o=5,order:l=o1.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:h,delta:d,threshold:p}=e;const g=Yae({delta:d,disabled:!a}),[b,w]=aae(),k=x.useRef({x:0,y:0}),_=x.useRef({x:0,y:0}),S=x.useMemo(()=>{switch(t){case Zh.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Zh.DraggableRect:return r}},[t,r,u]),j=x.useRef(null),T=x.useCallback(()=>{const O=j.current;if(!O)return;const M=k.current.x*_.current.x,$=k.current.y*_.current.y;O.scrollBy(M,$)},[]),A=x.useMemo(()=>l===o1.TreeOrder?[...f].reverse():f,[l,f]);x.useEffect(()=>{if(!a||!f.length||!S){w();return}for(const O of A){if((i==null?void 0:i(O))===!1)continue;const M=f.indexOf(O),$=h[M];if(!$)continue;const{direction:q,speed:P}=Pae(O,$,S,n,p);for(const L of["x","y"])g[L][q[L]]||(P[L]=0,q[L]=0);if(P.x>0||P.y>0){w(),j.current=O,b(T,o),k.current=P,_.current=q;return}}k.current={x:0,y:0},_.current={x:0,y:0},w()},[n,T,i,w,a,o,JSON.stringify(S),JSON.stringify(g),b,f,A,h,JSON.stringify(p)])}const Gae={x:{[Ri.Backward]:!1,[Ri.Forward]:!1},y:{[Ri.Backward]:!1,[Ri.Forward]:!1}};function Yae(e){let{delta:n,disabled:t}=e;const i=i1(n);return kp(r=>{if(t||!i||!r)return Gae;const a={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[Ri.Backward]:r.x[Ri.Backward]||a.x===-1,[Ri.Forward]:r.x[Ri.Forward]||a.x===1},y:{[Ri.Backward]:r.y[Ri.Backward]||a.y===-1,[Ri.Forward]:r.y[Ri.Forward]||a.y===1}}},[t,n,i])}function Kae(e,n){const t=n!=null?e.get(n):void 0,i=t?t.node.current:null;return kp(r=>{var a;return n==null?null:(a=i??r)!=null?a:null},[i,n])}function Xae(e,n){return x.useMemo(()=>e.reduce((t,i)=>{const{sensor:r}=i,a=r.activators.map(o=>({eventName:o.eventName,handler:n(o.handler,i)}));return[...t,...a]},[]),[e,n])}var bm;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(bm||(bm={}));var e4;(function(e){e.Optimized="optimized"})(e4||(e4={}));const kM=new Map;function Zae(e,n){let{dragging:t,dependencies:i,config:r}=n;const[a,o]=x.useState(null),{frequency:l,measure:u,strategy:f}=r,h=x.useRef(e),d=k(),p=gm(d),g=x.useCallback(function(_){_===void 0&&(_=[]),!p.current&&o(S=>S===null?_:S.concat(_.filter(j=>!S.includes(j))))},[p]),b=x.useRef(null),w=kp(_=>{if(d&&!t)return kM;if(!_||_===kM||h.current!==e||a!=null){const S=new Map;for(let j of e){if(!j)continue;if(a&&a.length>0&&!a.includes(j.id)&&j.rect.current){S.set(j.id,j.rect.current);continue}const T=j.node.current,A=T?new _9(u(T),T):null;j.rect.current=A,A&&S.set(j.id,A)}return S}return _},[e,a,t,d,u]);return x.useEffect(()=>{h.current=e},[e]),x.useEffect(()=>{d||g()},[t,d]),x.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),x.useEffect(()=>{d||typeof l!="number"||b.current!==null||(b.current=setTimeout(()=>{g(),b.current=null},l))},[l,d,g,...i]),{droppableRects:w,measureDroppableContainers:g,measuringScheduled:a!=null};function k(){switch(f){case bm.Always:return!1;case bm.BeforeDragging:return t;default:return!t}}}function j9(e,n){return kp(t=>e?t||(typeof n=="function"?n(e):e):null,[n,e])}function Qae(e,n){return j9(e,n)}function Jae(e){let{callback:n,disabled:t}=e;const i=g0(n),r=x.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(i)},[i,t]);return x.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function w0(e){let{callback:n,disabled:t}=e;const i=g0(n),r=x.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(i)},[t]);return x.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function eoe(e){return new _9(td(e),e)}function _M(e,n,t){n===void 0&&(n=eoe);const[i,r]=x.useState(null);function a(){r(u=>{if(!e)return null;if(e.isConnected===!1){var f;return(f=u??t)!=null?f:null}const h=n(e);return JSON.stringify(u)===JSON.stringify(h)?u:h})}const o=Jae({callback(u){if(e)for(const f of u){const{type:h,target:d}=f;if(h==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),l=w0({callback:a});return Va(()=>{a(),e?(l==null||l.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),o==null||o.disconnect())},[e]),i}function noe(e){const n=j9(e);return YF(e,n)}const xM=[];function toe(e){const n=x.useRef(e),t=kp(i=>e?i&&i!==xM&&e&&n.current&&e.parentNode===n.current.parentNode?i:b0(e):xM,[e]);return x.useEffect(()=>{n.current=e},[e]),t}function ioe(e){const[n,t]=x.useState(null),i=x.useRef(e),r=x.useCallback(a=>{const o=Jk(a.target);o&&t(l=>l?(l.set(o,QS(o)),new Map(l)):null)},[]);return x.useEffect(()=>{const a=i.current;if(e!==a){o(a);const l=e.map(u=>{const f=Jk(u);return f?(f.addEventListener("scroll",r,{passive:!0}),[f,QS(f)]):null}).filter(u=>u!=null);t(l.length?new Map(l):null),i.current=e}return()=>{o(e),o(a)};function o(l){l.forEach(u=>{const f=Jk(u);f==null||f.removeEventListener("scroll",r)})}},[r,e]),x.useMemo(()=>e.length?n?Array.from(n.values()).reduce((a,o)=>Qc(a,o),Wa):nq(e):Wa,[e,n])}function SM(e,n){n===void 0&&(n=[]);const t=x.useRef(null);return x.useEffect(()=>{t.current=null},n),x.useEffect(()=>{const i=e!==Wa;i&&!t.current&&(t.current=e),!i&&t.current&&(t.current=null)},[e]),t.current?ym(e,t.current):Wa}function roe(e){x.useEffect(()=>{if(!v0)return;const n=e.map(t=>{let{sensor:i}=t;return i.setup==null?void 0:i.setup()});return()=>{for(const t of n)t==null||t()}},e.map(n=>{let{sensor:t}=n;return t}))}function aoe(e,n){return x.useMemo(()=>e.reduce((t,i)=>{let{eventName:r,handler:a}=i;return t[r]=o=>{a(o,n)},t},{}),[e,n])}function rq(e){return x.useMemo(()=>e?Eae(e):null,[e])}const CM=[];function ooe(e,n){n===void 0&&(n=td);const[t]=e,i=rq(t?fr(t):null),[r,a]=x.useState(CM);function o(){a(()=>e.length?e.map(u=>JF(u)?i:new _9(n(u),u)):CM)}const l=w0({callback:o});return Va(()=>{l==null||l.disconnect(),o(),e.forEach(u=>l==null?void 0:l.observe(u))},[e]),r}function aq(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return wp(n)?n:e}function soe(e){let{measure:n}=e;const[t,i]=x.useState(null),r=x.useCallback(f=>{for(const{target:h}of f)if(wp(h)){i(d=>{const p=n(h);return d?{...d,width:p.width,height:p.height}:p});break}},[n]),a=w0({callback:r}),o=x.useCallback(f=>{const h=aq(f);a==null||a.disconnect(),h&&(a==null||a.observe(h)),i(h?n(h):null)},[n,a]),[l,u]=t1(o);return x.useMemo(()=>({nodeRef:l,rect:t,setRef:u}),[t,l,u])}const loe=[{sensor:C9,options:{}},{sensor:x9,options:{}}],uoe={current:{}},Ig={draggable:{measure:gM},droppable:{measure:gM,strategy:bm.WhileDragging,frequency:e4.Optimized},dragOverlay:{measure:td}};class Qh extends Map{get(n){var t;return n!=null&&(t=super.get(n))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:t}=n;return!t})}getNodeFor(n){var t,i;return(t=(i=this.get(n))==null?void 0:i.node.current)!=null?t:void 0}}const coe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:a1},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ig,measureDroppableContainers:a1,windowRect:null,measuringScheduled:!1},oq={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:a1,draggableNodes:new Map,over:null,measureDroppableContainers:a1},xp=x.createContext(oq),sq=x.createContext(coe);function foe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qh}}}function doe(e,n){switch(n.type){case Ci.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case Ci.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case Ci.DragEnd:case Ci.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ci.RegisterDroppable:{const{element:t}=n,{id:i}=t,r=new Qh(e.droppable.containers);return r.set(i,t),{...e,droppable:{...e.droppable,containers:r}}}case Ci.SetDroppableDisabled:{const{id:t,key:i,disabled:r}=n,a=e.droppable.containers.get(t);if(!a||i!==a.key)return e;const o=new Qh(e.droppable.containers);return o.set(t,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:o}}}case Ci.UnregisterDroppable:{const{id:t,key:i}=n,r=e.droppable.containers.get(t);if(!r||i!==r.key)return e;const a=new Qh(e.droppable.containers);return a.delete(t),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function hoe(e){let{disabled:n}=e;const{active:t,activatorEvent:i,draggableNodes:r}=x.useContext(xp),a=i1(i),o=i1(t==null?void 0:t.id);return x.useEffect(()=>{if(!n&&!i&&a&&o!=null){if(!y0(a)||document.activeElement===a.target)return;const l=r.get(o);if(!l)return;const{activatorNode:u,node:f}=l;if(!u.current&&!f.current)return;requestAnimationFrame(()=>{for(const h of[u.current,f.current]){if(!h)continue;const d=lae(h);if(d){d.focus();break}}})}},[i,n,r,o,a]),null}function lq(e,n){let{transform:t,...i}=n;return e!=null&&e.length?e.reduce((r,a)=>a({transform:r,...i}),t):t}function moe(e){return x.useMemo(()=>({draggable:{...Ig.draggable,...e==null?void 0:e.draggable},droppable:{...Ig.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ig.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function poe(e){let{activeNode:n,measure:t,initialRect:i,config:r=!0}=e;const a=x.useRef(!1),{x:o,y:l}=typeof r=="boolean"?{x:r,y:r}:r;Va(()=>{if(!o&&!l||!n){a.current=!1;return}if(a.current||!i)return;const f=n==null?void 0:n.node.current;if(!f||f.isConnected===!1)return;const h=t(f),d=YF(h,i);if(o||(d.x=0),l||(d.y=0),a.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=XF(f);p&&p.scrollBy({top:d.y,left:d.x})}},[n,o,l,i,t])}const k0=x.createContext({...Wa,scaleX:1,scaleY:1});var il;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(il||(il={}));const voe=x.memo(function(n){var t,i,r,a;let{id:o,accessibility:l,autoScroll:u=!0,children:f,sensors:h=loe,collisionDetection:d=GF,measuring:p,modifiers:g,...b}=n;const w=x.useReducer(doe,void 0,foe),[k,_]=w,[S,j]=mae(),[T,A]=x.useState(il.Uninitialized),O=T===il.Initialized,{draggable:{active:M,nodes:$,translate:q},droppable:{containers:P}}=k,L=M!=null?$.get(M):null,U=x.useRef({initial:null,translated:null}),G=x.useMemo(()=>{var gn;return M!=null?{id:M,data:(gn=L==null?void 0:L.data)!=null?gn:uoe,rect:U}:null},[M,L]),B=x.useRef(null),[R,D]=x.useState(null),[z,H]=x.useState(null),Y=gm(b,Object.values(b)),N=_p("DndDescribedBy",o),W=x.useMemo(()=>P.getEnabled(),[P]),V=moe(p),{droppableRects:I,measureDroppableContainers:Q,measuringScheduled:ie}=Zae(W,{dragging:O,dependencies:[q.x,q.y],config:V.droppable}),re=Kae($,M),Z=x.useMemo(()=>z?r1(z):null,[z]),le=En(),ee=Qae(re,V.draggable.measure);poe({activeNode:M!=null?$.get(M):null,config:le.layoutShiftCompensation,initialRect:ee,measure:V.draggable.measure});const se=_M(re,V.draggable.measure,ee),ke=_M(re?re.parentElement:null),te=x.useRef({activatorEvent:null,active:null,activeNode:re,collisionRect:null,collisions:null,droppableRects:I,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=P.getNodeFor((t=te.current.over)==null?void 0:t.id),xe=soe({measure:V.dragOverlay.measure}),Ae=(i=xe.nodeRef.current)!=null?i:re,ze=O?(r=xe.rect)!=null?r:se:null,we=!!(xe.nodeRef.current&&xe.rect),Ce=noe(we?null:se),Ne=rq(Ae?fr(Ae):null),he=toe(O?$e??re:null),He=ooe(he),Ye=lq(g,{transform:{x:q.x-Ce.x,y:q.y-Ce.y,scaleX:1,scaleY:1},activatorEvent:z,active:G,activeNodeRect:se,containerNodeRect:ke,draggingNodeRect:ze,over:te.current.over,overlayNodeRect:xe.rect,scrollableAncestors:he,scrollableAncestorRects:He,windowRect:Ne}),We=Z?Qc(Z,q):null,Qe=ioe(he),Je=SM(Qe),oe=SM(Qe,[se]),be=Qc(Ye,Je),Ke=ze?Aae(ze,Ye):null,en=G&&Ke?d({active:G,collisionRect:Ke,droppableRects:I,droppableContainers:W,pointerCoordinates:We}):null,je=VF(en,"id"),[an,pn]=x.useState(null),Dn=we?Ye:Qc(Ye,oe),bn=Cae(Dn,(a=an==null?void 0:an.rect)!=null?a:null,se),sn=x.useRef(null),nn=x.useCallback((gn,xn)=>{let{sensor:at,options:Mt}=xn;if(B.current==null)return;const qe=$.get(B.current);if(!qe)return;const Ue=gn.nativeEvent,In=new at({active:B.current,activeNode:qe,event:Ue,options:Mt,context:te,onAbort(Pn){if(!$.get(Pn))return;const{onDragAbort:on}=Y.current,ln={id:Pn};on==null||on(ln),S({type:"onDragAbort",event:ln})},onPending(Pn,rn,on,ln){if(!$.get(Pn))return;const{onDragPending:Xn}=Y.current,Lt={id:Pn,constraint:rn,initialCoordinates:on,offset:ln};Xn==null||Xn(Lt),S({type:"onDragPending",event:Lt})},onStart(Pn){const rn=B.current;if(rn==null)return;const on=$.get(rn);if(!on)return;const{onDragStart:ln}=Y.current,Kn={activatorEvent:Ue,active:{id:rn,data:on.data,rect:U}};sl.unstable_batchedUpdates(()=>{ln==null||ln(Kn),A(il.Initializing),_({type:Ci.DragStart,initialCoordinates:Pn,active:rn}),S({type:"onDragStart",event:Kn}),D(sn.current),H(Ue)})},onMove(Pn){_({type:Ci.DragMove,coordinates:Pn})},onEnd:ot(Ci.DragEnd),onCancel:ot(Ci.DragCancel)});sn.current=In;function ot(Pn){return async function(){const{active:on,collisions:ln,over:Kn,scrollAdjustedTranslate:Xn}=te.current;let Lt=null;if(on&&Xn){const{cancelDrop:Rn}=Y.current;Lt={activatorEvent:Ue,active:on,collisions:ln,delta:Xn,over:Kn},Pn===Ci.DragEnd&&typeof Rn=="function"&&await Promise.resolve(Rn(Lt))&&(Pn=Ci.DragCancel)}B.current=null,sl.unstable_batchedUpdates(()=>{_({type:Pn}),A(il.Uninitialized),pn(null),D(null),H(null),sn.current=null;const Rn=Pn===Ci.DragEnd?"onDragEnd":"onDragCancel";if(Lt){const Mn=Y.current[Rn];Mn==null||Mn(Lt),S({type:Rn,event:Lt})}})}}},[$]),$n=x.useCallback((gn,xn)=>(at,Mt)=>{const qe=at.nativeEvent,Ue=$.get(Mt);if(B.current!==null||!Ue||qe.dndKit||qe.defaultPrevented)return;const In={active:Ue};gn(at,xn.options,In)===!0&&(qe.dndKit={capturedBy:xn.sensor},B.current=Mt,nn(at,xn))},[$,nn]),De=Xae(h,$n);roe(h),Va(()=>{se&&T===il.Initializing&&A(il.Initialized)},[se,T]),x.useEffect(()=>{const{onDragMove:gn}=Y.current,{active:xn,activatorEvent:at,collisions:Mt,over:qe}=te.current;if(!xn||!at)return;const Ue={active:xn,activatorEvent:at,collisions:Mt,delta:{x:be.x,y:be.y},over:qe};sl.unstable_batchedUpdates(()=>{gn==null||gn(Ue),S({type:"onDragMove",event:Ue})})},[be.x,be.y]),x.useEffect(()=>{const{active:gn,activatorEvent:xn,collisions:at,droppableContainers:Mt,scrollAdjustedTranslate:qe}=te.current;if(!gn||B.current==null||!xn||!qe)return;const{onDragOver:Ue}=Y.current,In=Mt.get(je),ot=In&&In.rect.current?{id:In.id,rect:In.rect.current,data:In.data,disabled:In.disabled}:null,Pn={active:gn,activatorEvent:xn,collisions:at,delta:{x:qe.x,y:qe.y},over:ot};sl.unstable_batchedUpdates(()=>{pn(ot),Ue==null||Ue(Pn),S({type:"onDragOver",event:Pn})})},[je]),Va(()=>{te.current={activatorEvent:z,active:G,activeNode:re,collisionRect:Ke,collisions:en,droppableRects:I,draggableNodes:$,draggingNode:Ae,draggingNodeRect:ze,droppableContainers:P,over:an,scrollableAncestors:he,scrollAdjustedTranslate:be},U.current={initial:ze,translated:Ke}},[G,re,en,Ke,$,Ae,ze,I,P,an,he,be]),Wae({...le,delta:q,draggingRect:Ke,pointerCoordinates:We,scrollableAncestors:he,scrollableAncestorRects:He});const Fe=x.useMemo(()=>({active:G,activeNode:re,activeNodeRect:se,activatorEvent:z,collisions:en,containerNodeRect:ke,dragOverlay:xe,draggableNodes:$,droppableContainers:P,droppableRects:I,over:an,measureDroppableContainers:Q,scrollableAncestors:he,scrollableAncestorRects:He,measuringConfiguration:V,measuringScheduled:ie,windowRect:Ne}),[G,re,se,z,en,ke,xe,$,P,I,an,Q,he,He,V,ie,Ne]),Vn=x.useMemo(()=>({activatorEvent:z,activators:De,active:G,activeNodeRect:se,ariaDescribedById:{draggable:N},dispatch:_,draggableNodes:$,over:an,measureDroppableContainers:Q}),[z,De,G,se,_,N,$,an,Q]);return J.createElement(UF.Provider,{value:j},J.createElement(xp.Provider,{value:Vn},J.createElement(sq.Provider,{value:Fe},J.createElement(k0.Provider,{value:bn},f)),J.createElement(hoe,{disabled:(l==null?void 0:l.restoreFocus)===!1})),J.createElement(gae,{...l,hiddenTextDescribedById:N}));function En(){const gn=(R==null?void 0:R.autoScrollEnabled)===!1,xn=typeof u=="object"?u.enabled===!1:u===!1,at=O&&!gn&&!xn;return typeof u=="object"?{...u,enabled:at}:{enabled:at}}}),goe=x.createContext(null),jM="button",yoe="Draggable";function boe(e){let{id:n,data:t,disabled:i=!1,attributes:r}=e;const a=_p(yoe),{activators:o,activatorEvent:l,active:u,activeNodeRect:f,ariaDescribedById:h,draggableNodes:d,over:p}=x.useContext(xp),{role:g=jM,roleDescription:b="draggable",tabIndex:w=0}=r??{},k=(u==null?void 0:u.id)===n,_=x.useContext(k?k0:goe),[S,j]=t1(),[T,A]=t1(),O=aoe(o,n),M=gm(t);Va(()=>(d.set(n,{id:n,key:a,node:S,activatorNode:T,data:M}),()=>{const q=d.get(n);q&&q.key===a&&d.delete(n)}),[d,n]);const $=x.useMemo(()=>({role:g,tabIndex:w,"aria-disabled":i,"aria-pressed":k&&g===jM?!0:void 0,"aria-roledescription":b,"aria-describedby":h.draggable}),[i,g,w,k,b,h.draggable]);return{active:u,activatorEvent:l,activeNodeRect:f,attributes:$,isDragging:k,listeners:i?void 0:O,node:S,over:p,setNodeRef:j,setActivatorNodeRef:A,transform:_}}function uq(){return x.useContext(sq)}const woe="Droppable",koe={timeout:25};function _oe(e){let{data:n,disabled:t=!1,id:i,resizeObserverConfig:r}=e;const a=_p(woe),{active:o,dispatch:l,over:u,measureDroppableContainers:f}=x.useContext(xp),h=x.useRef({disabled:t}),d=x.useRef(!1),p=x.useRef(null),g=x.useRef(null),{disabled:b,updateMeasurementsFor:w,timeout:k}={...koe,...r},_=gm(w??i),S=x.useCallback(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{f(Array.isArray(_.current)?_.current:[_.current]),g.current=null},k)},[k]),j=w0({callback:S,disabled:b||!o}),T=x.useCallback(($,q)=>{j&&(q&&(j.unobserve(q),d.current=!1),$&&j.observe($))},[j]),[A,O]=t1(T),M=gm(n);return x.useEffect(()=>{!j||!A.current||(j.disconnect(),d.current=!1,j.observe(A.current))},[A,j]),x.useEffect(()=>(l({type:Ci.RegisterDroppable,element:{id:i,key:a,disabled:t,node:A,rect:p,data:M}}),()=>l({type:Ci.UnregisterDroppable,key:a,id:i})),[i]),x.useEffect(()=>{t!==h.current.disabled&&(l({type:Ci.SetDroppableDisabled,id:i,key:a,disabled:t}),h.current.disabled=t)},[i,a,t,l]),{active:o,rect:p,isOver:(u==null?void 0:u.id)===i,node:A,over:u,setNodeRef:O}}function xoe(e){let{animation:n,children:t}=e;const[i,r]=x.useState(null),[a,o]=x.useState(null),l=i1(t);return!t&&!i&&l&&r(l),Va(()=>{if(!a)return;const u=i==null?void 0:i.key,f=i==null?void 0:i.props.id;if(u==null||f==null){r(null);return}Promise.resolve(n(f,a)).then(()=>{r(null)})},[n,i,a]),J.createElement(J.Fragment,null,t,i?x.cloneElement(i,{ref:o}):null)}const Soe={x:0,y:0,scaleX:1,scaleY:1};function Coe(e){let{children:n}=e;return J.createElement(xp.Provider,{value:oq},J.createElement(k0.Provider,{value:Soe},n))}const joe={position:"fixed",touchAction:"none"},Aoe=e=>y0(e)?"transform 250ms ease":void 0,Ooe=x.forwardRef((e,n)=>{let{as:t,activatorEvent:i,adjustScale:r,children:a,className:o,rect:l,style:u,transform:f,transition:h=Aoe}=e;if(!l)return null;const d=r?f:{...f,scaleX:1,scaleY:1},p={...joe,width:l.width,height:l.height,top:l.top,left:l.left,transform:po.Transform.toString(d),transformOrigin:r&&i?bae(i,l):void 0,transition:typeof h=="function"?h(i):h,...u};return J.createElement(t,{className:o,style:p,ref:n},a)}),Toe=e=>n=>{let{active:t,dragOverlay:i}=n;const r={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[l,u]of Object.entries(a.active))u!==void 0&&(r[l]=t.node.style.getPropertyValue(l),t.node.style.setProperty(l,u));if(a!=null&&a.dragOverlay)for(const[l,u]of Object.entries(a.dragOverlay))u!==void 0&&i.node.style.setProperty(l,u);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&i.node.classList.add(o.dragOverlay),function(){for(const[u,f]of Object.entries(r))t.node.style.setProperty(u,f);o!=null&&o.active&&t.node.classList.remove(o.active)}},Eoe=e=>{let{transform:{initial:n,final:t}}=e;return[{transform:po.Transform.toString(n)},{transform:po.Transform.toString(t)}]},Moe={duration:250,easing:"ease",keyframes:Eoe,sideEffects:Toe({styles:{active:{opacity:"0"}}})};function Doe(e){let{config:n,draggableNodes:t,droppableContainers:i,measuringConfiguration:r}=e;return g0((a,o)=>{if(n===null)return;const l=t.get(a);if(!l)return;const u=l.node.current;if(!u)return;const f=aq(o);if(!f)return;const{transform:h}=fr(o).getComputedStyle(o),d=KF(h);if(!d)return;const p=typeof n=="function"?n:Roe(n);return tq(u,r.draggable.measure),p({active:{id:a,data:l.data,node:u,rect:r.draggable.measure(u)},draggableNodes:t,dragOverlay:{node:o,rect:r.dragOverlay.measure(f)},droppableContainers:i,measuringConfiguration:r,transform:d})})}function Roe(e){const{duration:n,easing:t,sideEffects:i,keyframes:r}={...Moe,...e};return a=>{let{active:o,dragOverlay:l,transform:u,...f}=a;if(!n)return;const h={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},d={scaleX:u.scaleX!==1?o.rect.width*u.scaleX/l.rect.width:1,scaleY:u.scaleY!==1?o.rect.height*u.scaleY/l.rect.height:1},p={x:u.x-h.x,y:u.y-h.y,...d},g=r({...f,active:o,dragOverlay:l,transform:{initial:u,final:p}}),[b]=g,w=g[g.length-1];if(JSON.stringify(b)===JSON.stringify(w))return;const k=i==null?void 0:i({active:o,dragOverlay:l,...f}),_=l.node.animate(g,{duration:n,easing:t,fill:"forwards"});return new Promise(S=>{_.onfinish=()=>{k==null||k(),S()}})}}let AM=0;function Poe(e){return x.useMemo(()=>{if(e!=null)return AM++,AM},[e])}const Noe=J.memo(e=>{let{adjustScale:n=!1,children:t,dropAnimation:i,style:r,transition:a,modifiers:o,wrapperElement:l="div",className:u,zIndex:f=999}=e;const{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:g,draggableNodes:b,droppableContainers:w,dragOverlay:k,over:_,measuringConfiguration:S,scrollableAncestors:j,scrollableAncestorRects:T,windowRect:A}=uq(),O=x.useContext(k0),M=Poe(d==null?void 0:d.id),$=lq(o,{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:g,draggingNodeRect:k.rect,over:_,overlayNodeRect:k.rect,scrollableAncestors:j,scrollableAncestorRects:T,transform:O,windowRect:A}),q=j9(p),P=Doe({config:i,draggableNodes:b,droppableContainers:w,measuringConfiguration:S}),L=q?k.setRef:void 0;return J.createElement(Coe,null,J.createElement(xoe,{animation:P},d&&M?J.createElement(Ooe,{key:M,id:d.id,ref:L,as:l,activatorEvent:h,adjustScale:n,className:u,transition:a,rect:q,style:{zIndex:f,...r},transform:$},t):null))});function s1(e,n,t){const i=e.slice();return i.splice(t<0?i.length+t:t,0,i.splice(n,1)[0]),i}function $oe(e,n){return e.reduce((t,i,r)=>{const a=n.get(i);return a&&(t[r]=a),t},Array(e.length))}function ag(e){return e!==null&&e>=0}function zoe(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t{var n;let{rects:t,activeNodeRect:i,activeIndex:r,overIndex:a,index:o}=e;const l=(n=t[r])!=null?n:i;if(!l)return null;const u=Boe(t,o,r);if(o===r){const f=t[a];return f?{x:rr&&o<=a?{x:-l.width-u,y:0,...og}:o=a?{x:l.width+u,y:0,...og}:{x:0,y:0,...og}};function Boe(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return!i||!r&&!a?0:t{let{rects:n,activeIndex:t,overIndex:i,index:r}=e;const a=s1(n,i,t),o=n[r],l=a[r];return!l||!o?null:{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}},sg={scaleX:1,scaleY:1},fq=e=>{var n;let{activeIndex:t,activeNodeRect:i,index:r,rects:a,overIndex:o}=e;const l=(n=a[t])!=null?n:i;if(!l)return null;if(r===t){const f=a[o];return f?{x:0,y:tt&&r<=o?{x:0,y:-l.height-u,...sg}:r=o?{x:0,y:l.height+u,...sg}:{x:0,y:0,...sg}};function Foe(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return i?ti.map(O=>typeof O=="object"&&"id"in O?O.id:O),[i]),b=o!=null,w=o?g.indexOf(o.id):-1,k=f?g.indexOf(f.id):-1,_=x.useRef(g),S=!zoe(g,_.current),j=k!==-1&&w===-1||S,T=Loe(a);Va(()=>{S&&b&&h(g)},[S,g,b,h]),x.useEffect(()=>{_.current=g},[g]);const A=x.useMemo(()=>({activeIndex:w,containerId:d,disabled:T,disableTransforms:j,items:g,overIndex:k,useDragOverlay:p,sortedRects:$oe(g,u),strategy:r}),[w,d,T.draggable,T.droppable,j,g,k,u,p,r]);return J.createElement(hq.Provider,{value:A},n)}const qoe=e=>{let{id:n,items:t,activeIndex:i,overIndex:r}=e;return s1(t,i,r).indexOf(n)},Hoe=e=>{let{containerId:n,isSorting:t,wasDragging:i,index:r,items:a,newIndex:o,previousItems:l,previousContainerId:u,transition:f}=e;return!f||!i||l!==a&&r===o?!1:t?!0:o!==r&&n===u},Uoe={duration:200,easing:"ease"},mq="transform",Voe=po.Transition.toString({property:mq,duration:0,easing:"linear"}),Woe={roleDescription:"sortable"};function Goe(e){let{disabled:n,index:t,node:i,rect:r}=e;const[a,o]=x.useState(null),l=x.useRef(t);return Va(()=>{if(!n&&t!==l.current&&i.current){const u=r.current;if(u){const f=td(i.current,{ignoreTransform:!0}),h={x:u.left-f.left,y:u.top-f.top,scaleX:u.width/f.width,scaleY:u.height/f.height};(h.x||h.y)&&o(h)}}t!==l.current&&(l.current=t)},[n,t,i,r]),x.useEffect(()=>{a&&o(null)},[a]),a}function pq(e){let{animateLayoutChanges:n=Hoe,attributes:t,disabled:i,data:r,getNewIndex:a=qoe,id:o,strategy:l,resizeObserverConfig:u,transition:f=Uoe}=e;const{items:h,containerId:d,activeIndex:p,disabled:g,disableTransforms:b,sortedRects:w,overIndex:k,useDragOverlay:_,strategy:S}=x.useContext(hq),j=Yoe(i,g),T=h.indexOf(o),A=x.useMemo(()=>({sortable:{containerId:d,index:T,items:h},...r}),[d,r,T,h]),O=x.useMemo(()=>h.slice(h.indexOf(o)),[h,o]),{rect:M,node:$,isOver:q,setNodeRef:P}=_oe({id:o,data:A,disabled:j.droppable,resizeObserverConfig:{updateMeasurementsFor:O,...u}}),{active:L,activatorEvent:U,activeNodeRect:G,attributes:B,setNodeRef:R,listeners:D,isDragging:z,over:H,setActivatorNodeRef:Y,transform:N}=boe({id:o,data:A,attributes:{...Woe,...t},disabled:j.draggable}),W=rae(P,R),V=!!L,I=V&&!b&&ag(p)&&ag(k),Q=!_&&z,ie=Q&&I?N:null,Z=I?ie??(l??S)({rects:w,activeNodeRect:G,activeIndex:p,overIndex:k,index:T}):null,le=ag(p)&&ag(k)?a({id:o,items:h,activeIndex:p,overIndex:k}):T,ee=L==null?void 0:L.id,se=x.useRef({activeId:ee,items:h,newIndex:le,containerId:d}),ke=h!==se.current.items,te=n({active:L,containerId:d,isDragging:z,isSorting:V,id:o,index:T,items:h,newIndex:se.current.newIndex,previousItems:se.current.items,previousContainerId:se.current.containerId,transition:f,wasDragging:se.current.activeId!=null}),$e=Goe({disabled:!te,index:T,node:$,rect:M});return x.useEffect(()=>{V&&se.current.newIndex!==le&&(se.current.newIndex=le),d!==se.current.containerId&&(se.current.containerId=d),h!==se.current.items&&(se.current.items=h)},[V,le,d,h]),x.useEffect(()=>{if(ee===se.current.activeId)return;if(ee!=null&&se.current.activeId==null){se.current.activeId=ee;return}const Ae=setTimeout(()=>{se.current.activeId=ee},50);return()=>clearTimeout(Ae)},[ee]),{active:L,activeIndex:p,attributes:B,data:A,rect:M,index:T,newIndex:le,items:h,isOver:q,isSorting:V,isDragging:z,listeners:D,node:$,overIndex:k,over:H,setNodeRef:W,setActivatorNodeRef:Y,setDroppableNodeRef:P,setDraggableNodeRef:R,transform:$e??Z,transition:xe()};function xe(){if($e||ke&&se.current.newIndex===T)return Voe;if(!(Q&&!y0(U)||!f)&&(V||te))return po.Transition.toString({...f,property:mq})}}function Yoe(e,n){var t,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(t=e==null?void 0:e.draggable)!=null?t:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}function l1(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const Koe=[ct.Down,ct.Right,ct.Up,ct.Left],Xoe=(e,n)=>{let{context:{active:t,collisionRect:i,droppableRects:r,droppableContainers:a,over:o,scrollableAncestors:l}}=n;if(Koe.includes(e.code)){if(e.preventDefault(),!t||!i)return;const u=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const p=r.get(d.id);if(p)switch(e.code){case ct.Down:i.topp.top&&u.push(d);break;case ct.Left:i.left>p.left&&u.push(d);break;case ct.Right:i.left1&&(h=f[1].id),h!=null){const d=a.get(t.id),p=a.get(h),g=p?r.get(p.id):null,b=p==null?void 0:p.node.current;if(b&&g&&d&&p){const k=b0(b).some((O,M)=>l[M]!==O),_=vq(d,p),S=Zoe(d,p),j=k||!_?{x:0,y:0}:{x:S?i.width-g.width:0,y:S?i.height-g.height:0},T={x:g.left,y:g.top};return j.x&&j.y?T:ym(T,j)}}}};function vq(e,n){return!l1(e)||!l1(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function Zoe(e,n){return!l1(e)||!l1(n)||!vq(e,n)?!1:e.data.current.sortable.index=R?B:""+Array(R+1-z.length).join(D)+B},T={s:j,z:function(B){var R=-B.utcOffset(),D=Math.abs(R),z=Math.floor(D/60),H=D%60;return(R<=0?"+":"-")+j(z,2,"0")+":"+j(H,2,"0")},m:function B(R,D){if(R.date()1)return B(N[0])}else{var W=R.name;O[W]=R,H=W}return!z&&H&&(A=H),H||!z&&A},P=function(B,R){if($(B))return B.clone();var D=typeof R=="object"?R:{};return D.date=B,D.args=arguments,new U(D)},L=T;L.l=q,L.i=$,L.w=function(B,R){return P(B,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var U=(function(){function B(D){this.$L=q(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[M]=!0}var R=B.prototype;return R.parse=function(D){this.$d=(function(z){var H=z.date,Y=z.utc;if(H===null)return new Date(NaN);if(L.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var N=H.match(k);if(N){var W=N[2]-1||0,V=(N[7]||"0").substring(0,3);return Y?new Date(Date.UTC(N[1],W,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)):new Date(N[1],W,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)}}return new Date(H)})(D),this.init()},R.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},R.$utils=function(){return L},R.isValid=function(){return this.$d.toString()!==w},R.isSame=function(D,z){var H=P(D);return this.startOf(z)<=H&&H<=this.endOf(z)},R.isAfter=function(D,z){return P(D)Be(o).locale(t).format(i);return e==="default"?n===null?"":a(n):e==="multiple"?n.map(a).join(", "):e==="range"&&Array.isArray(n)?n[0]&&n[1]?`${a(n[0])} ${r} ${a(n[1])}`:n[0]?`${a(n[0])} ${r} `:"":""}function tse({formatter:e,...n}){return(e||nse)(n)}function ise({direction:e,levelIndex:n,rowIndex:t,cellIndex:i,size:r}){switch(e){case"up":return n===0&&t===0?null:t===0?{levelIndex:n-1,rowIndex:i<=r[n-1][r[n-1].length-1]-1?r[n-1].length-1:r[n-1].length-2,cellIndex:i}:{levelIndex:n,rowIndex:t-1,cellIndex:i};case"down":return t===r[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:i}:t===r[n].length-2&&i>=r[n][r[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:i}:{levelIndex:n,rowIndex:t+1,cellIndex:i};case"left":return n===0&&t===0&&i===0?null:t===0&&i===0?{levelIndex:n-1,rowIndex:r[n-1].length-1,cellIndex:r[n-1][r[n-1].length-1]-1}:i===0?{levelIndex:n,rowIndex:t-1,cellIndex:r[n][t-1]-1}:{levelIndex:n,rowIndex:t,cellIndex:i-1};case"right":return t===r[n].length-1&&i===r[n][t]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:i===r[n][t]-1?{levelIndex:n,rowIndex:t+1,cellIndex:0}:{levelIndex:n,rowIndex:t,cellIndex:i+1};default:return{levelIndex:n,rowIndex:t,cellIndex:i}}}function gq({controlsRef:e,direction:n,levelIndex:t,rowIndex:i,cellIndex:r,size:a}){var u,f,h;const o=ise({direction:n,size:a,rowIndex:i,cellIndex:r,levelIndex:t});if(!o)return;const l=(h=(f=(u=e.current)==null?void 0:u[o.levelIndex])==null?void 0:f[o.rowIndex])==null?void 0:h[o.cellIndex];l&&(l.disabled||l.getAttribute("data-hidden")||l.getAttribute("data-outside")?gq({controlsRef:e,direction:n,levelIndex:o.levelIndex,cellIndex:o.cellIndex,rowIndex:o.rowIndex,size:a}):l.focus())}function rse(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function ase(e){var n;return(n=e.current)==null?void 0:n.map(t=>t.map(i=>i.length))}function A9({controlsRef:e,levelIndex:n,rowIndex:t,cellIndex:i,event:r}){const a=rse(r.key);a&&(r.preventDefault(),gq({controlsRef:e,direction:a,levelIndex:n,rowIndex:t,cellIndex:i,size:ase(e)}))}function Ji(e){return e==null||e===""?e:Be(e).format("YYYY-MM-DD")}function yq(e){return e==null||e===""?e:Be(e).format("YYYY-MM-DD HH:mm:ss")}function t4({minDate:e,maxDate:n}){const t=Be();return!e&&!n?Ji(t):e&&Be(t).isBefore(e)?Ji(e):n&&Be(t).isAfter(n)?Ji(n):Ji(t)}const ose={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},sse=x.createContext(ose);function Ml(){const e=x.use(sse),n=x.useCallback(a=>a||e.locale,[e.locale]),t=x.useCallback(a=>typeof a=="number"?a:e.firstDayOfWeek,[e.firstDayOfWeek]),i=x.useCallback(a=>Array.isArray(a)?a:e.weekendDays,[e.weekendDays]),r=x.useCallback(a=>typeof a=="string"?a:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:n,getFirstDayOfWeek:t,getWeekendDays:i,getLabelSeparator:r}}function lse({value:e,type:n,withTime:t}){const i=t?yq:Ji;if(n==="range"&&Array.isArray(e)){const r=i(e[0]),a=i(e[1]);return r?a?`${r} – ${a}`:`${r} –`:""}return n==="multiple"&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?i(e):""}function bq({value:e,type:n,name:t,form:i,withTime:r=!1}){return v.jsx("input",{type:"hidden",value:lse({value:e,type:n,withTime:r}),name:t,form:i})}bq.displayName="@mantine/dates/HiddenDatesInput";var wq={day:"m_396ce5cb"};const kq=(e,{size:n})=>({day:{"--day-size":Ln(n,"day-size")}}),_0=Pe(e=>{const n=ye("Day",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,date:u,disabled:f,__staticSelector:h,weekend:d,outside:p,selected:g,renderDay:b,inRange:w,firstInRange:k,lastInRange:_,hidden:S,static:j,highlightToday:T,fullWidth:A,attributes:O,...M}=n;return v.jsx(Et,{...Ze({name:h||"Day",classes:wq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:O,vars:l,varsResolver:kq,rootSelector:"day"})("day",{style:S?{display:"none"}:void 0}),component:j?"div":"button",disabled:f,"data-today":Be(u).isSame(new Date,"day")||void 0,"data-hidden":S||void 0,"data-highlight-today":T||void 0,"data-disabled":f||void 0,"data-weekend":!f&&!p&&d||void 0,"data-outside":!f&&p||void 0,"data-selected":!f&&g||void 0,"data-in-range":w&&!f||void 0,"data-first-in-range":k&&!f||void 0,"data-last-in-range":_&&!f||void 0,"data-static":j||void 0,"data-full-width":A||void 0,unstyled:o,...M,children:(b==null?void 0:b(u))||Be(u).date()})});_0.classes=wq;_0.varsResolver=kq;_0.displayName="@mantine/dates/Day";function use({locale:e,format:n="dd",firstDayOfWeek:t=1}){const i=Be().day(t),r=[];for(let a=0;a<7;a+=1)typeof n=="string"?r.push(Be(i).add(a,"days").locale(e).format(n)):r.push(n(Be(i).add(a,"days").format("YYYY-MM-DD")));return r}var _q={weekday:"m_18a3eca"};const xq=(e,{size:n})=>({weekdaysRow:{"--wr-fz":ai(n),"--wr-spacing":Yt(n)}}),x0=Pe(e=>{const n=ye("WeekdaysRow",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,locale:u,firstDayOfWeek:f,weekdayFormat:h,cellComponent:d="th",__staticSelector:p,withWeekNumbers:g,attributes:b,...w}=n,k=Ze({name:p||"WeekdaysRow",classes:_q,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:l,varsResolver:xq,rootSelector:"weekdaysRow"}),_=Ml(),S=use({locale:_.getLocale(u),format:h,firstDayOfWeek:_.getFirstDayOfWeek(f)}).map((j,T)=>v.jsx(d,{...k("weekday"),children:j},T));return v.jsxs(fe,{component:"tr",...k("weekdaysRow"),...w,children:[g&&v.jsx(d,{...k("weekday"),children:"#"}),S]})});x0.classes=_q;x0.varsResolver=xq;x0.displayName="@mantine/dates/WeekdaysRow";function cse(e,n=1){let t=Be(e);if(!t.isValid())return t;const i=n===0?6:n-1;for(;t.day()!==i;)t=t.add(1,"day");return t.format("YYYY-MM-DD")}function fse(e,n=1){let t=Be(e);for(;t.day()!==n;)t=t.subtract(1,"day");return t.format("YYYY-MM-DD")}function dse({month:e,firstDayOfWeek:n=1,consistentWeeks:t}){const i=Be(Be(e).subtract(Be(e).date()-1,"day").format("YYYY-M-D")),r=i.format("YYYY-MM-DD"),a=cse(i.add(+i.daysInMonth()-1,"day").format("YYYY-MM-DD"),n),o=[];let l=Be(fse(r,n));for(;Be(l).isBefore(a,"day");){const u=[];for(let f=0;f<7;f+=1)u.push(l.format("YYYY-MM-DD")),l=l.add(1,"day");o.push(u)}if(t&&o.length<6){const u=o[o.length-1],f=u[u.length-1];let h=Be(f).add(1,"day");for(;o.length<6;){const d=[];for(let p=0;p<7;p+=1)d.push(h.format("YYYY-MM-DD")),h=h.add(1,"day");o.push(d)}}return o}function O9(e,n){return Be(e).format("YYYY-MM")===Be(n).format("YYYY-MM")}function Sq(e,n){return n?Be(e).isAfter(Be(n).subtract(1,"day"),"day"):!0}function Cq(e,n){return n?Be(e).isBefore(Be(n).add(1,"day"),"day"):!0}function hse({dates:e,minDate:n,maxDate:t,getDayProps:i,excludeDate:r,hideOutsideDates:a,month:o}){const l=e.flat().filter(h=>{var d;return Cq(h,t)&&Sq(h,n)&&!(r!=null&&r(h))&&!((d=i==null?void 0:i(h))!=null&&d.disabled)&&(!a||O9(h,o))}),u=l.find(h=>{var d;return(d=i==null?void 0:i(h))==null?void 0:d.selected});if(u)return u;const f=l.find(h=>Be().isSame(h,"date"));return f||l[0]}var Fg={exports:{}},mse=Fg.exports,TM;function pse(){return TM||(TM=1,(function(e,n){(function(t,i){e.exports=i()})(mse,(function(){var t="day";return function(i,r,a){var o=function(f){return f.add(4-f.isoWeekday(),t)},l=r.prototype;l.isoWeekYear=function(){return o(this).year()},l.isoWeek=function(f){if(!this.$utils().u(f))return this.add(7*(f-this.isoWeek()),t);var h,d,p,g,b=o(this),w=(h=this.isoWeekYear(),d=this.$u,p=(d?a.utc:a)().year(h).startOf("year"),g=4-p.isoWeekday(),p.isoWeekday()>4&&(g+=7),p.add(g,t));return b.diff(w,"week")+1},l.isoWeekday=function(f){return this.$utils().u(f)?this.day()||7:this.day(this.day()%7?f:f-7)};var u=l.startOf;l.startOf=function(f,h){var d=this.$utils(),p=!!d.u(h)||h;return d.p(f)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(f,h)}}}))})(Fg)),Fg.exports}var vse=pse();const gse=yt(vse);Be.extend(gse);function yse(e){return Be(e.find(n=>Be(n).day()===1)).isoWeek()}var jq={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const bse={withCellSpacing:!0},Aq=(e,{size:n})=>({weekNumber:{"--wn-fz":ai(n),"--wn-size":Ln(n,"wn-size")}}),Sp=Pe(e=>{const n=ye("Month",bse,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,locale:f,firstDayOfWeek:h,weekdayFormat:d,month:p,weekendDays:g,getDayProps:b,excludeDate:w,minDate:k,maxDate:_,renderDay:S,hideOutsideDates:j,hideWeekdays:T,getDayAriaLabel:A,static:O,__getDayRef:M,__onDayKeyDown:$,__onDayClick:q,__onDayMouseEnter:P,__preventFocus:L,__stopPropagation:U,withCellSpacing:G,size:B,highlightToday:R,withWeekNumbers:D,fullWidth:z,attributes:H,...Y}=n,N=Ze({name:u||"Month",classes:jq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:H,vars:l,varsResolver:Aq,rootSelector:"month"}),W=Ml(),V=dse({month:p,firstDayOfWeek:W.getFirstDayOfWeek(h),consistentWeeks:W.consistentWeeks}),I=hse({dates:V,minDate:Ji(k),maxDate:Ji(_),getDayProps:b,excludeDate:w,hideOutsideDates:j,month:p}),{resolvedClassNames:Q,resolvedStyles:ie}=Wi({classNames:t,styles:a,props:n}),re=V.map((Z,le)=>{const ee=Z.map((se,ke)=>{const te=!O9(se,p),$e=(A==null?void 0:A(se))||Be(se).locale(f||W.locale).format("D MMMM YYYY"),xe=b==null?void 0:b(se),Ae=Be(se).isSame(I,"date");return v.jsx("td",{...N("monthCell"),"data-with-spacing":G||void 0,children:v.jsx(_0,{__staticSelector:u||"Month",classNames:Q,styles:ie,attributes:H,unstyled:o,"data-mantine-stop-propagation":U||void 0,highlightToday:R,renderDay:S,date:se,size:B,weekend:W.getWeekendDays(g).includes(Be(se).get("day")),outside:te,hidden:j?te:!1,"aria-label":$e,static:O,fullWidth:z,disabled:(w==null?void 0:w(se))||!Cq(se,Ji(_))||!Sq(se,Ji(k)),ref:ze=>{ze&&(M==null||M(le,ke,ze))},...xe,onKeyDown:ze=>{var we;(we=xe==null?void 0:xe.onKeyDown)==null||we.call(xe,ze),$==null||$(ze,{rowIndex:le,cellIndex:ke,date:se})},onMouseEnter:ze=>{var we;(we=xe==null?void 0:xe.onMouseEnter)==null||we.call(xe,ze),P==null||P(ze,se)},onClick:ze=>{var we;(we=xe==null?void 0:xe.onClick)==null||we.call(xe,ze),q==null||q(ze,se)},onMouseDown:ze=>{var we;(we=xe==null?void 0:xe.onMouseDown)==null||we.call(xe,ze),L&&ze.preventDefault()},tabIndex:L||!Ae?-1:0})},se.toString())});return v.jsxs("tr",{...N("monthRow"),children:[D&&v.jsx("td",{...N("weekNumber"),children:yse(Z)}),ee]},le)});return v.jsxs(fe,{component:"table",...N("month"),size:B,"data-full-width":z||void 0,...Y,children:[!T&&v.jsx("thead",{...N("monthThead"),children:v.jsx(x0,{__staticSelector:u||"Month",locale:f,firstDayOfWeek:h,weekdayFormat:d,withWeekNumbers:D,size:B,classNames:Q,styles:ie,unstyled:o,attributes:H})}),v.jsx("tbody",{...N("monthTbody"),children:re})]})});Sp.classes=jq;Sp.varsResolver=Aq;Sp.displayName="@mantine/dates/Month";var Oq={pickerControl:"m_dc6a3c71"};const Tq=(e,{size:n})=>({pickerControl:{"--dpc-fz":ai(n),"--dpc-size":Ln(n,"dpc-size")}}),Cp=Pe(e=>{const n=ye("PickerControl",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,firstInRange:u,lastInRange:f,inRange:h,__staticSelector:d,selected:p,disabled:g,fullWidth:b,attributes:w,...k}=n;return v.jsx(Et,{...Ze({name:d||"PickerControl",classes:Oq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l,varsResolver:Tq,rootSelector:"pickerControl"})("pickerControl"),unstyled:o,"data-picker-control":!0,"data-full-width":b||void 0,"data-selected":p&&!g||void 0,"data-disabled":g||void 0,"data-in-range":h&&!g&&!p||void 0,"data-first-in-range":u&&!g||void 0,"data-last-in-range":f&&!g||void 0,disabled:g,...k})});Cp.classes=Oq;Cp.varsResolver=Tq;Cp.displayName="@mantine/dates/PickerControl";function Eq({year:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&Be(e).isBefore(n,"year")||t&&Be(e).isAfter(t,"year"))}function wse({years:e,minDate:n,maxDate:t,getYearControlProps:i}){const r=e.flat().filter(l=>{var u;return!Eq({year:l,minDate:n,maxDate:t})&&!((u=i==null?void 0:i(l))!=null&&u.disabled)}),a=r.find(l=>{var u;return(u=i==null?void 0:i(l))==null?void 0:u.selected});if(a)return a;const o=r.find(l=>Be().isSame(l,"year"));return o||r[0]}function Mq(e){const n=Be(e).year(),t=n-n%10;let i=0;const r=[[],[],[],[]];for(let a=0;a<4;a+=1){const o=a===3?1:3;for(let l=0;l{const n=ye("YearsList",kse,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,decade:u,yearsListFormat:f,locale:h,minDate:d,maxDate:p,getYearControlProps:g,__staticSelector:b,__getControlRef:w,__onControlKeyDown:k,__onControlClick:_,__onControlMouseEnter:S,__preventFocus:j,__stopPropagation:T,withCellSpacing:A,fullWidth:O,size:M,attributes:$,...q}=n,P=Ze({name:b||"YearsList",classes:Dq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:$,vars:l,rootSelector:"yearsList"}),L=Ml(),U=Mq(u),G=wse({years:U,minDate:d,maxDate:p,getYearControlProps:g}),B=U.map((R,D)=>{const z=R.map((H,Y)=>{const N=g==null?void 0:g(H),W=Be(H).isSame(G,"year");return v.jsx("td",{...P("yearsListCell"),"data-with-spacing":A||void 0,children:v.jsx(Cp,{...P("yearsListControl"),size:M,unstyled:o,fullWidth:O,"data-mantine-stop-propagation":T||void 0,disabled:Eq({year:H,minDate:d,maxDate:p}),ref:V=>{V&&(w==null||w(D,Y,V))},...N,onKeyDown:V=>{var I;(I=N==null?void 0:N.onKeyDown)==null||I.call(N,V),k==null||k(V,{rowIndex:D,cellIndex:Y,date:H})},onClick:V=>{var I;(I=N==null?void 0:N.onClick)==null||I.call(N,V),_==null||_(V,H)},onMouseEnter:V=>{var I;(I=N==null?void 0:N.onMouseEnter)==null||I.call(N,V),S==null||S(V,H)},onMouseDown:V=>{var I;(I=N==null?void 0:N.onMouseDown)==null||I.call(N,V),j&&V.preventDefault()},tabIndex:j||!W?-1:0,children:(N==null?void 0:N.children)??Be(H).locale(L.getLocale(h)).format(f)})},Y)});return v.jsx("tr",{...P("yearsListRow"),children:z},D)});return v.jsx(fe,{component:"table",size:M,...P("yearsList"),"data-full-width":O||void 0,...q,children:v.jsx("tbody",{children:B})})});S0.classes=Dq;S0.displayName="@mantine/dates/YearsList";function Rq({month:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&Be(e).isBefore(n,"month")||t&&Be(e).isAfter(t,"month"))}function _se({months:e,minDate:n,maxDate:t,getMonthControlProps:i}){const r=e.flat().filter(l=>{var u;return!Rq({month:l,minDate:n,maxDate:t})&&!((u=i==null?void 0:i(l))!=null&&u.disabled)}),a=r.find(l=>{var u;return(u=i==null?void 0:i(l))==null?void 0:u.selected});if(a)return a;const o=r.find(l=>Be().isSame(l,"month"));return o||r[0]}function xse(e){const n=Be(e).startOf("year").toDate(),t=[[],[],[],[]];let i=0;for(let r=0;r<4;r+=1)for(let a=0;a<3;a+=1)t[r].push(Be(n).add(i,"months").format("YYYY-MM-DD")),i+=1;return t}var Pq={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Sse={monthsListFormat:"MMM",withCellSpacing:!0},C0=Pe(e=>{const n=ye("MonthsList",Sse,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,year:f,monthsListFormat:h,locale:d,minDate:p,maxDate:g,getMonthControlProps:b,__getControlRef:w,__onControlKeyDown:k,__onControlClick:_,__onControlMouseEnter:S,__preventFocus:j,__stopPropagation:T,withCellSpacing:A,fullWidth:O,size:M,attributes:$,...q}=n,P=Ze({name:u||"MonthsList",classes:Pq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:$,vars:l,rootSelector:"monthsList"}),L=Ml(),U=xse(f),G=_se({months:U,minDate:Ji(p),maxDate:Ji(g),getMonthControlProps:b}),B=U.map((R,D)=>{const z=R.map((H,Y)=>{const N=b==null?void 0:b(H),W=Be(H).isSame(G,"month");return v.jsx("td",{...P("monthsListCell"),"data-with-spacing":A||void 0,children:v.jsx(Cp,{...P("monthsListControl"),size:M,unstyled:o,fullWidth:O,__staticSelector:u||"MonthsList","data-mantine-stop-propagation":T||void 0,disabled:Rq({month:H,minDate:Ji(p),maxDate:Ji(g)}),ref:V=>{V&&(w==null||w(D,Y,V))},...N,onKeyDown:V=>{var I;(I=N==null?void 0:N.onKeyDown)==null||I.call(N,V),k==null||k(V,{rowIndex:D,cellIndex:Y,date:H})},onClick:V=>{var I;(I=N==null?void 0:N.onClick)==null||I.call(N,V),_==null||_(V,H)},onMouseEnter:V=>{var I;(I=N==null?void 0:N.onMouseEnter)==null||I.call(N,V),S==null||S(V,H)},onMouseDown:V=>{var I;(I=N==null?void 0:N.onMouseDown)==null||I.call(N,V),j&&V.preventDefault()},tabIndex:j||!W?-1:0,children:(N==null?void 0:N.children)??Be(H).locale(L.getLocale(d)).format(h)})},Y)});return v.jsx("tr",{...P("monthsListRow"),children:z},D)});return v.jsx(fe,{component:"table",size:M,...P("monthsList"),"data-full-width":O||void 0,...q,children:v.jsx("tbody",{children:B})})});C0.classes=Pq;C0.displayName="@mantine/dates/MonthsList";var Nq={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Cse={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},$q=(e,{size:n})=>({calendarHeader:{"--dch-control-size":Ln(n,"dch-control-size"),"--dch-fz":ai(n)}}),ws=Pe(e=>{const n=ye("CalendarHeader",Cse,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,nextIcon:u,previousIcon:f,nextLabel:h,previousLabel:d,onNext:p,onPrevious:g,onLevelClick:b,label:w,nextDisabled:k,previousDisabled:_,hasNextLevel:S,levelControlAriaLabel:j,withNext:T,withPrevious:A,headerControlsOrder:O,fullWidth:M,__staticSelector:$,__preventFocus:q,__stopPropagation:P,attributes:L,...U}=n,G=Ze({name:$||"CalendarHeader",classes:Nq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:L,vars:l,varsResolver:$q,rootSelector:"calendarHeader"}),B=q?Y=>Y.preventDefault():void 0,R=A&&x.createElement(Et,{...G("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":d,onClick:g,unstyled:o,onMouseDown:B,disabled:_,"data-disabled":_||void 0,tabIndex:q||_?-1:0,"data-mantine-stop-propagation":P||void 0},f||v.jsx(e1,{...G("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),D=x.createElement(Et,{component:S?"button":"div",...G("calendarHeaderLevel"),key:"level",onClick:S?b:void 0,unstyled:o,onMouseDown:S?B:void 0,disabled:!S,"data-static":!S||void 0,"aria-label":j,tabIndex:q||!S?-1:0,"data-mantine-stop-propagation":P||void 0},w),z=T&&x.createElement(Et,{...G("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":h,onClick:p,unstyled:o,onMouseDown:B,disabled:k,"data-disabled":k||void 0,tabIndex:q||k?-1:0,"data-mantine-stop-propagation":P||void 0},u||v.jsx(e1,{...G("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),H=O.map(Y=>Y==="previous"?R:Y==="level"?D:Y==="next"?z:null);return v.jsx(fe,{...G("calendarHeader"),"data-full-width":M||void 0,...U,children:H})});ws.classes=Nq;ws.varsResolver=$q;ws.displayName="@mantine/dates/CalendarHeader";function jse(e){const n=Mq(e);return[n[0][0],n[3][0]]}const Ase={decadeLabelFormat:"YYYY"},j0=Pe(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:S,nextDisabled:j,previousDisabled:T,levelControlAriaLabel:A,withNext:O,withPrevious:M,headerControlsOrder:$,decadeLabelFormat:q,classNames:P,styles:L,unstyled:U,__staticSelector:G,__stopPropagation:B,size:R,fullWidth:D,attributes:z,...H}=ye("DecadeLevel",Ase,e),Y=Ml(),[N,W]=jse(n),V={__staticSelector:G||"DecadeLevel",classNames:P,styles:L,unstyled:U,size:R,attributes:z},I=typeof j=="boolean"?j:r?!Be(W).endOf("year").isBefore(r):!1,Q=typeof T=="boolean"?T:i?!Be(N).startOf("year").isAfter(i):!1,ie=(re,Z)=>Be(re).locale(t||Y.locale).format(Z);return v.jsxs(fe,{"data-decade-level":!0,size:R,...H,children:[v.jsx(ws,{label:typeof q=="function"?q(N,W):`${ie(N,q)} – ${ie(W,q)}`,__preventFocus:p,__stopPropagation:B,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:S,nextDisabled:I,previousDisabled:Q,hasNextLevel:!1,levelControlAriaLabel:A,withNext:O,withPrevious:M,headerControlsOrder:$,fullWidth:D,...V}),v.jsx(S0,{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:B,withCellSpacing:d,fullWidth:D,...V})]})});j0.classes={...S0.classes,...ws.classes};j0.displayName="@mantine/dates/DecadeLevel";const Ose={yearLabelFormat:"YYYY"},A0=Pe(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:S,onLevelClick:j,nextDisabled:T,previousDisabled:A,hasNextLevel:O,levelControlAriaLabel:M,withNext:$,withPrevious:q,headerControlsOrder:P,yearLabelFormat:L,__staticSelector:U,__stopPropagation:G,size:B,classNames:R,styles:D,unstyled:z,fullWidth:H,attributes:Y,...N}=ye("YearLevel",Ose,e),W=Ml(),V={__staticSelector:U||"YearLevel",classNames:R,styles:D,unstyled:z,size:B,attributes:Y},I=typeof T=="boolean"?T:r?!Be(n).endOf("year").isBefore(r):!1,Q=typeof A=="boolean"?A:i?!Be(n).startOf("year").isAfter(i):!1;return v.jsxs(fe,{"data-year-level":!0,size:B,...N,children:[v.jsx(ws,{label:typeof L=="function"?L(n):Be(n).locale(t||W.locale).format(L),__preventFocus:p,__stopPropagation:G,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:S,onLevelClick:j,nextDisabled:I,previousDisabled:Q,hasNextLevel:O,levelControlAriaLabel:M,withNext:$,withPrevious:q,headerControlsOrder:P,fullWidth:H,...V}),v.jsx(C0,{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:G,withCellSpacing:d,fullWidth:H,...V})]})});A0.classes={...ws.classes,...C0.classes};A0.displayName="@mantine/dates/YearLevel";const Tse={monthLabelFormat:"MMMM YYYY"},O0=Pe(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__getDayRef:b,__onDayKeyDown:w,__onDayClick:k,__onDayMouseEnter:_,withCellSpacing:S,highlightToday:j,withWeekNumbers:T,__preventFocus:A,__stopPropagation:O,nextIcon:M,previousIcon:$,nextLabel:q,previousLabel:P,onNext:L,onPrevious:U,onLevelClick:G,nextDisabled:B,previousDisabled:R,hasNextLevel:D,levelControlAriaLabel:z,withNext:H,withPrevious:Y,headerControlsOrder:N,monthLabelFormat:W,classNames:V,styles:I,unstyled:Q,__staticSelector:ie,size:re,static:Z,fullWidth:le,attributes:ee,...se}=ye("MonthLevel",Tse,e),ke=Ml(),te={__staticSelector:ie||"MonthLevel",classNames:V,styles:I,unstyled:Q,size:re,attributes:ee},$e=typeof B=="boolean"?B:f?!Be(n).endOf("month").isBefore(f):!1,xe=typeof R=="boolean"?R:u?!Be(n).startOf("month").isAfter(u):!1;return v.jsxs(fe,{"data-month-level":!0,size:re,...se,children:[v.jsx(ws,{label:typeof W=="function"?W(n):Be(n).locale(t||ke.locale).format(W),__preventFocus:A,__stopPropagation:O,nextIcon:M,previousIcon:$,nextLabel:q,previousLabel:P,onNext:L,onPrevious:U,onLevelClick:G,nextDisabled:$e,previousDisabled:xe,hasNextLevel:D,levelControlAriaLabel:z,withNext:H,withPrevious:Y,headerControlsOrder:N,fullWidth:le,...te}),v.jsx(Sp,{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__getDayRef:b,__onDayKeyDown:w,__onDayClick:k,__onDayMouseEnter:_,__preventFocus:A,__stopPropagation:O,static:Z,withCellSpacing:S,highlightToday:j,withWeekNumbers:T,fullWidth:le,...te})]})});O0.classes={...Sp.classes,...ws.classes};O0.displayName="@mantine/dates/MonthLevel";var zq={levelsGroup:"m_30b26e33"};const Dl=Pe(e=>{const n=ye("LevelsGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,fullWidth:f,attributes:h,...d}=n;return v.jsx(fe,{...Ze({name:u||"LevelsGroup",classes:zq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,rootSelector:"levelsGroup"})("levelsGroup"),"data-full-width":f||void 0,...d})});Dl.classes=zq;Dl.displayName="@mantine/dates/LevelsGroup";const Ese={numberOfColumns:1},T0=Pe(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:f,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,nextDisabled:_,previousDisabled:S,headerControlsOrder:j,classNames:T,styles:A,unstyled:O,__staticSelector:M,__stopPropagation:$,numberOfColumns:q,levelControlAriaLabel:P,decadeLabelFormat:L,size:U,fullWidth:G,vars:B,attributes:R,...D}=ye("DecadeLevelGroup",Ese,e),z=x.useRef([]),H=Array(q).fill(0).map((Y,N)=>{const W=Be(n).add(N*10,"years").format("YYYY-MM-DD");return v.jsx(j0,{size:U,yearsListFormat:a,decade:W,withNext:N===q-1,withPrevious:N===0,decadeLabelFormat:L,__onControlClick:l,__onControlMouseEnter:u,__onControlKeyDown:(V,I)=>A9({levelIndex:N,rowIndex:I.rowIndex,cellIndex:I.cellIndex,event:V,controlsRef:z}),__getControlRef:(V,I,Q)=>{Array.isArray(z.current[N])||(z.current[N]=[]),Array.isArray(z.current[N][V])||(z.current[N][V]=[]),z.current[N][V][I]=Q},levelControlAriaLabel:typeof P=="function"?P(W):P,locale:t,minDate:i,maxDate:r,__preventFocus:h,__stopPropagation:$,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,nextDisabled:_,previousDisabled:S,getYearControlProps:o,__staticSelector:M||"DecadeLevelGroup",classNames:T,styles:A,unstyled:O,withCellSpacing:f,headerControlsOrder:j,fullWidth:G,attributes:R},N)});return v.jsx(Dl,{classNames:T,styles:A,__staticSelector:M||"DecadeLevelGroup",size:U,unstyled:O,fullWidth:G,attributes:R,...D,children:H})});T0.classes={...Dl.classes,...j0.classes};T0.displayName="@mantine/dates/DecadeLevelGroup";const Mse={numberOfColumns:1},E0=Pe(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:f,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,onLevelClick:_,nextDisabled:S,previousDisabled:j,hasNextLevel:T,headerControlsOrder:A,classNames:O,styles:M,unstyled:$,__staticSelector:q,__stopPropagation:P,numberOfColumns:L,levelControlAriaLabel:U,yearLabelFormat:G,size:B,fullWidth:R,vars:D,attributes:z,...H}=ye("YearLevelGroup",Mse,e),Y=x.useRef([]),N=Array(L).fill(0).map((W,V)=>{const I=Be(n).add(V,"years").format("YYYY-MM-DD");return v.jsx(A0,{size:B,monthsListFormat:a,year:I,withNext:V===L-1,withPrevious:V===0,yearLabelFormat:G,__stopPropagation:P,__onControlClick:l,__onControlMouseEnter:u,__onControlKeyDown:(Q,ie)=>A9({levelIndex:V,rowIndex:ie.rowIndex,cellIndex:ie.cellIndex,event:Q,controlsRef:Y}),__getControlRef:(Q,ie,re)=>{Array.isArray(Y.current[V])||(Y.current[V]=[]),Array.isArray(Y.current[V][Q])||(Y.current[V][Q]=[]),Y.current[V][Q][ie]=re},levelControlAriaLabel:typeof U=="function"?U(I):U,locale:t,minDate:i,maxDate:r,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,onLevelClick:_,nextDisabled:S,previousDisabled:j,hasNextLevel:T,getMonthControlProps:o,classNames:O,styles:M,unstyled:$,__staticSelector:q||"YearLevelGroup",withCellSpacing:f,headerControlsOrder:A,fullWidth:R,attributes:z},V)});return v.jsx(Dl,{classNames:O,styles:M,__staticSelector:q||"YearLevelGroup",size:B,unstyled:$,fullWidth:R,attributes:z,...H,children:N})});E0.classes={...A0.classes,...Dl.classes};E0.displayName="@mantine/dates/YearLevelGroup";const Dse={numberOfColumns:1},M0=Pe(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__onDayClick:b,__onDayMouseEnter:w,withCellSpacing:k,highlightToday:_,withWeekNumbers:S,__preventFocus:j,nextIcon:T,previousIcon:A,nextLabel:O,previousLabel:M,onNext:$,onPrevious:q,onLevelClick:P,nextDisabled:L,previousDisabled:U,hasNextLevel:G,headerControlsOrder:B,classNames:R,styles:D,unstyled:z,numberOfColumns:H,levelControlAriaLabel:Y,monthLabelFormat:N,__staticSelector:W,__stopPropagation:V,size:I,static:Q,fullWidth:ie,vars:re,attributes:Z,...le}=ye("MonthLevelGroup",Dse,e),ee=x.useRef([]),se=Array(H).fill(0).map((ke,te)=>{const $e=Be(n).add(te,"months").format("YYYY-MM-DD");return v.jsx(O0,{month:$e,withNext:te===H-1,withPrevious:te===0,monthLabelFormat:N,__stopPropagation:V,__onDayClick:b,__onDayMouseEnter:w,__onDayKeyDown:(xe,Ae)=>A9({levelIndex:te,rowIndex:Ae.rowIndex,cellIndex:Ae.cellIndex,event:xe,controlsRef:ee}),__getDayRef:(xe,Ae,ze)=>{Array.isArray(ee.current[te])||(ee.current[te]=[]),Array.isArray(ee.current[te][xe])||(ee.current[te][xe]=[]),ee.current[te][xe][Ae]=ze},levelControlAriaLabel:typeof Y=="function"?Y($e):Y,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__preventFocus:j,nextIcon:T,previousIcon:A,nextLabel:O,previousLabel:M,onNext:$,onPrevious:q,onLevelClick:P,nextDisabled:L,previousDisabled:U,hasNextLevel:G,classNames:R,styles:D,unstyled:z,__staticSelector:W||"MonthLevelGroup",size:I,static:Q,withCellSpacing:k,highlightToday:_,withWeekNumbers:S,headerControlsOrder:B,fullWidth:ie,attributes:Z},te)});return v.jsx(Dl,{classNames:R,styles:D,__staticSelector:W||"MonthLevelGroup",size:I,fullWidth:ie,attributes:Z,...le,children:se})});M0.classes={...Dl.classes,...O0.classes};M0.displayName="@mantine/dates/MonthLevelGroup";var Lq={input:"m_6fa5e2aa"};const id=Pe(e=>{const{inputProps:n,wrapperProps:t,placeholder:i,classNames:r,styles:a,unstyled:o,popoverProps:l,modalProps:u,dropdownType:f,children:h,formattedValue:d,dropdownHandlers:p,dropdownOpened:g,onClick:b,clearable:w,clearSectionMode:k,onClear:_,clearButtonProps:S,rightSection:j,shouldClear:T,readOnly:A,disabled:O,value:M,name:$,form:q,type:P,onDropdownClose:L,withTime:U,...G}=$I("PickerInputBase",{size:"sm"},e),B=v.jsx(Xt.ClearButton,{onClick:_,unstyled:o,...S}),R=()=>{P==="range"&&Array.isArray(M)&&M[0]&&!M[1]&&_(),p.close()};return v.jsxs(v.Fragment,{children:[f==="modal"&&!A&&v.jsx(Gi,{opened:g,onClose:R,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:o,...u,children:h}),v.jsx(Xt.Wrapper,{...t,children:v.jsxs(Sn,{position:"bottom-start",opened:g,trapFocus:!0,returnFocus:!1,unstyled:o,onClose:L,...l,disabled:(l==null?void 0:l.disabled)||f==="modal"||A,onChange:D=>{var z;D||((z=l==null?void 0:l.onClose)==null||z.call(l),R())},children:[v.jsx(Sn.Target,{children:v.jsx(Xt,{"data-dates-input":!0,"data-read-only":A||void 0,disabled:O,component:"button",type:"button",multiline:!0,onClick:D=>{b==null||b(D),p.toggle()},__clearSection:B,__clearable:w&&T&&!A&&!O,__clearSectionMode:k,rightSection:j,...n,classNames:{...r,input:vn(Lq.input,r==null?void 0:r.input)},...G,children:d||v.jsx(Xt.Placeholder,{error:n.error,unstyled:o,classNames:r,styles:a,__staticSelector:n.__staticSelector,children:i})})}),v.jsx(Sn.Dropdown,{"data-dates-dropdown":!0,children:h})]})}),v.jsx(bq,{value:M,name:$,form:q,type:P,withTime:U})]})});id.classes=Lq;id.displayName="@mantine/dates/PickerInputBase";const EM=e=>e==="range"?[null,null]:e==="multiple"?[]:null,MM=(e,n)=>{const t=n?yq:Ji;return Array.isArray(e)?e.map(t):t(e)};function T9({type:e,value:n,defaultValue:t,onChange:i,withTime:r=!1}){const a=x.useRef(e),[o,l,u]=Ai({value:MM(n,r),defaultValue:MM(t,r),finalValue:EM(e),onChange:i});let f=o;return a.current!==e&&(a.current=e,n===void 0&&(f=t!==void 0?t:EM(e),l(f))),[f,l,u]}function t_(e,n){return e?e==="month"?0:e==="year"?1:2:n||0}function Rse(e){return e===0?"month":e===1?"year":"decade"}function kh(e,n,t){return Rse(Jo(t_(e,0),t_(n,0),t_(t,2)))}const Pse={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},rd=Pe(e=>{const n=ye("Calendar",Pse,e),{vars:t,maxLevel:i,minLevel:r,defaultLevel:a,level:o,onLevelChange:l,date:u,defaultDate:f,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:g,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:S,onMonthMouseEnter:j,headerControlsOrder:T,__updateDateOnYearSelect:A,__updateDateOnMonthSelect:O,__setDateRef:M,__setLevelRef:$,firstDayOfWeek:q,weekdayFormat:P,weekendDays:L,getDayProps:U,excludeDate:G,renderDay:B,hideOutsideDates:R,hideWeekdays:D,getDayAriaLabel:z,monthLabelFormat:H,nextIcon:Y,previousIcon:N,__onDayClick:W,__onDayMouseEnter:V,withCellSpacing:I,highlightToday:Q,withWeekNumbers:ie,monthsListFormat:re,getMonthControlProps:Z,yearLabelFormat:le,yearsListFormat:ee,getYearControlProps:se,decadeLabelFormat:ke,classNames:te,styles:$e,unstyled:xe,minDate:Ae,maxDate:ze,locale:we,__staticSelector:Ce,size:Ne,__preventFocus:he,__stopPropagation:He,onNextDecade:Ye,onPreviousDecade:We,onNextYear:Qe,onPreviousYear:Je,onNextMonth:oe,onPreviousMonth:be,static:Ke,enableKeyboardNavigation:en,fullWidth:je,attributes:an,ref:pn,...Dn}=n,{resolvedClassNames:bn,resolvedStyles:sn}=Wi({classNames:te,styles:$e,props:n}),[nn,$n]=Ai({value:o?kh(o,r,i):void 0,defaultValue:a?kh(a,r,i):void 0,finalValue:kh(void 0,r,i),onChange:l}),[De,Fe]=T9({type:"default",value:Ji(u),defaultValue:Ji(f),onChange:h});x.useImperativeHandle(M,()=>rn=>{Fe(rn)}),x.useImperativeHandle($,()=>rn=>{$n(rn)});const Vn={__staticSelector:Ce||"Calendar",styles:sn,classNames:bn,unstyled:xe,size:Ne,attributes:an},En=p||d||1,gn=x.useRef(null);if(gn.current===null){const rn=new Date;gn.current=Ae&&Be(rn).isAfter(Ae)?Ae:Be(rn).format("YYYY-MM-DD")}const xn=De||gn.current,at=()=>{const rn=Be(xn).add(En,"month").format("YYYY-MM-DD");oe==null||oe(rn),Fe(rn)},Mt=()=>{const rn=Be(xn).subtract(En,"month").format("YYYY-MM-DD");be==null||be(rn),Fe(rn)},qe=()=>{const rn=Be(xn).add(En,"year").format("YYYY-MM-DD");Qe==null||Qe(rn),Fe(rn)},Ue=()=>{const rn=Be(xn).subtract(En,"year").format("YYYY-MM-DD");Je==null||Je(rn),Fe(rn)},In=()=>{const rn=Be(xn).add(10*En,"year").format("YYYY-MM-DD");Ye==null||Ye(rn),Fe(rn)},ot=()=>{const rn=Be(xn).subtract(10*En,"year").format("YYYY-MM-DD");We==null||We(rn),Fe(rn)},Pn=x.useRef(null);return x.useEffect(()=>{if(!en||Ke)return;const rn=on=>{var Xn;if(!((Xn=Pn.current)!=null&&Xn.contains(document.activeElement)))return;const ln=on.ctrlKey||on.metaKey,Kn=on.shiftKey;switch(on.key){case"ArrowUp":ln&&Kn?(on.preventDefault(),ot()):ln&&(on.preventDefault(),Ue());break;case"ArrowDown":ln&&Kn?(on.preventDefault(),In()):ln&&(on.preventDefault(),qe());break;case"y":case"Y":nn==="month"&&(on.preventDefault(),$n("year"));break}};return document.addEventListener("keydown",rn),()=>{document.removeEventListener("keydown",rn)}},[en,Ke,nn,qe,Ue,In,ot]),v.jsxs(fe,{ref:Ht(Pn,pn),size:Ne,"data-calendar":!0,"data-full-width":je||void 0,...Dn,children:[nn==="month"&&v.jsx(M0,{month:xn,minDate:Ae,maxDate:ze,firstDayOfWeek:q,weekdayFormat:P,weekendDays:L,getDayProps:U,excludeDate:G,renderDay:B,hideOutsideDates:R,hideWeekdays:D,getDayAriaLabel:z,onNext:at,onPrevious:Mt,hasNextLevel:i!=="month",onLevelClick:()=>$n("year"),numberOfColumns:d,locale:we,levelControlAriaLabel:g==null?void 0:g.monthLevelControl,nextLabel:(g==null?void 0:g.nextMonth)??b,nextIcon:Y,previousLabel:(g==null?void 0:g.previousMonth)??w,previousIcon:N,monthLabelFormat:H,__onDayClick:W,__onDayMouseEnter:V,__preventFocus:he,__stopPropagation:He,static:Ke,withCellSpacing:I,highlightToday:Q,withWeekNumbers:ie,headerControlsOrder:T,fullWidth:je,...Vn}),nn==="year"&&v.jsx(E0,{year:xn,numberOfColumns:d,minDate:Ae,maxDate:ze,monthsListFormat:re,getMonthControlProps:Z,locale:we,onNext:qe,onPrevious:Ue,hasNextLevel:i!=="month"&&i!=="year",onLevelClick:()=>$n("decade"),levelControlAriaLabel:g==null?void 0:g.yearLevelControl,nextLabel:(g==null?void 0:g.nextYear)??b,nextIcon:Y,previousLabel:(g==null?void 0:g.previousYear)??w,previousIcon:N,yearLabelFormat:le,__onControlMouseEnter:j,__onControlClick:(rn,on)=>{O&&Fe(on),$n(kh("month",r,i)),_==null||_(on)},__preventFocus:he,__stopPropagation:He,withCellSpacing:I,headerControlsOrder:T,fullWidth:je,...Vn}),nn==="decade"&&v.jsx(T0,{decade:xn,minDate:Ae,maxDate:ze,yearsListFormat:ee,getYearControlProps:se,locale:we,onNext:In,onPrevious:ot,numberOfColumns:d,nextLabel:(g==null?void 0:g.nextDecade)??b,nextIcon:Y,previousLabel:(g==null?void 0:g.previousDecade)??w,previousIcon:N,decadeLabelFormat:ke,__onControlMouseEnter:S,__onControlClick:(rn,on)=>{A&&Fe(on),$n(kh("year",r,i)),k==null||k(on)},__preventFocus:he,__stopPropagation:He,withCellSpacing:I,headerControlsOrder:T,fullWidth:je,...Vn})]})});rd.classes={...T0.classes,...E0.classes,...M0.classes};rd.displayName="@mantine/dates/Calendar";function D0(e){const{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:u,defaultDate:f,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:g,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:S,onMonthMouseEnter:j,onNextMonth:T,onPreviousMonth:A,onNextYear:O,onPreviousYear:M,onNextDecade:$,onPreviousDecade:q,withCellSpacing:P,highlightToday:L,__updateDateOnYearSelect:U,__updateDateOnMonthSelect:G,__setDateRef:B,__setLevelRef:R,withWeekNumbers:D,headerControlsOrder:z,firstDayOfWeek:H,weekdayFormat:Y,weekendDays:N,getDayProps:W,excludeDate:V,renderDay:I,hideOutsideDates:Q,hideWeekdays:ie,getDayAriaLabel:re,monthLabelFormat:Z,monthsListFormat:le,getMonthControlProps:ee,yearLabelFormat:se,yearsListFormat:ke,getYearControlProps:te,decadeLabelFormat:$e,allowSingleDateInRange:xe,allowDeselect:Ae,minDate:ze,maxDate:we,locale:Ce,...Ne}=e;return{calendarProps:{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:u,defaultDate:f,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:g,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:S,onMonthMouseEnter:j,onNextMonth:T,onPreviousMonth:A,onNextYear:O,onPreviousYear:M,onNextDecade:$,onPreviousDecade:q,withCellSpacing:P,highlightToday:L,__updateDateOnYearSelect:U,__updateDateOnMonthSelect:G,__setDateRef:B,withWeekNumbers:D,headerControlsOrder:z,firstDayOfWeek:H,weekdayFormat:Y,weekendDays:N,getDayProps:W,excludeDate:V,renderDay:I,hideOutsideDates:Q,hideWeekdays:ie,getDayAriaLabel:re,monthLabelFormat:Z,monthsListFormat:le,getMonthControlProps:ee,yearLabelFormat:se,yearsListFormat:ke,getYearControlProps:te,decadeLabelFormat:$e,allowSingleDateInRange:xe,allowDeselect:Ae,minDate:ze,maxDate:we,locale:Ce},others:Ne}}function DM(e,n){const t=[...n].sort((i,r)=>Be(i).isAfter(Be(r))?1:-1);return Be(t[0]).startOf("day").subtract(1,"ms").isBefore(e)&&Be(t[1]).endOf("day").add(1,"ms").isAfter(e)}function Iq({type:e,level:n,value:t,defaultValue:i,onChange:r,allowSingleDateInRange:a,allowDeselect:o,onMouseLeave:l}){const[u,f]=T9({type:e,value:t,defaultValue:i,onChange:r}),[h,d]=x.useState(e==="range"&&u[0]&&!u[1]?u[0]:null),[p,g]=x.useState(null),b=A=>{if(e==="range"){if(h&&!u[1]){if(Be(A).isSame(h,n)&&!a){d(null),g(null),f([null,null]);return}const O=[A,h];O.sort((M,$)=>Be(M).isAfter(Be($))?1:-1),f(O),g(null),d(null);return}if(u[0]&&!u[1]&&Be(A).isSame(u[0],n)&&!a){d(null),g(null),f([null,null]);return}f([A,null]),g(null),d(A);return}if(e==="multiple"){u.some(O=>Be(O).isSame(A,n))?f(u.filter(O=>!Be(O).isSame(A,n))):f([...u,A]);return}u&&o&&Be(A).isSame(u,n)?f(null):f(A)},w=A=>h&&p?DM(A,[p,h]):u[0]&&u[1]?DM(A,u):!1,k=e==="range"?A=>{l==null||l(A),g(null)}:l,_=A=>u[0]&&Be(A).isSame(u[0],n)?!(p&&Be(p).isBefore(u[0])):!1,S=A=>u[1]?Be(A).isSame(u[1],n):!u[0]||!p?!1:Be(p).isBefore(u[0])&&Be(A).isSame(u[0],n),j=A=>{if(e==="range")return{selected:u.some(M=>M&&Be(M).isSame(A,n)),inRange:w(A),firstInRange:_(A),lastInRange:S(A),"data-autofocus":!!u[0]&&Be(u[0]).isSame(A,n)||void 0};if(e==="multiple")return{selected:u.some(M=>M&&Be(M).isSame(A,n)),"data-autofocus":!!u[0]&&Be(u[0]).isSame(A,n)||void 0};const O=Be(u).isSame(A,n);return{selected:O,"data-autofocus":O||void 0}},T=e==="range"&&h?g:()=>{};return x.useEffect(()=>{if(e==="range")if(u[0]&&!u[1])d(u[0]);else{const A=u[0]==null&&u[1]==null,O=u[0]!=null&&u[1]!=null;(A||O)&&(d(null),g(null))}},[u]),{onDateChange:b,onRootMouseLeave:k,onHoveredDateChange:T,getControlProps:j,_value:u,setValue:f}}var Bq={monthPickerRoot:"m_53c9e871",presetsList:"m_cccb8ff3",presetButton:"m_7b4fbf50"};const Fq=(e,{size:n})=>({monthPickerRoot:{"--preset-font-size":ai(n)}}),Nse={type:"default"},jp=Pe(e=>{const n=ye("MonthPicker",Nse,e),{classNames:t,styles:i,vars:r,type:a,defaultValue:o,value:l,onChange:u,__staticSelector:f,getMonthControlProps:h,allowSingleDateInRange:d,allowDeselect:p,onMouseLeave:g,onMonthSelect:b,__updateDateOnMonthSelect:w,__onPresetSelect:k,__stopPropagation:_,presets:S,className:j,style:T,unstyled:A,size:O,attributes:M,onLevelChange:$,...q}=n,{calendarProps:P,others:L}=D0(q),U=x.useRef(null),G=x.useRef(null),B=Ze({name:f||"MonthPicker",classes:Bq,props:n,className:j,style:T,classNames:t,styles:i,unstyled:A,attributes:M,rootSelector:S?"monthPickerRoot":void 0,varsResolver:Fq,vars:r}),{onDateChange:R,onRootMouseLeave:D,onHoveredDateChange:z,getControlProps:H,setValue:Y}=Iq({type:a,level:"month",allowDeselect:p,allowSingleDateInRange:d,value:l,defaultValue:o,onChange:u,onMouseLeave:g}),{resolvedClassNames:N,resolvedStyles:W}=Wi({classNames:t,styles:i,props:n}),V=v.jsx(rd,{classNames:N,styles:W,size:O,...P,...S?{}:L,minLevel:"year",__updateDateOnMonthSelect:w??!1,__staticSelector:f||"MonthPicker",onMouseLeave:D,onMonthMouseEnter:(ie,re)=>z(re),onMonthSelect:ie=>{R(ie),b==null||b(ie)},getMonthControlProps:ie=>({...H(ie),...h==null?void 0:h(ie)}),onLevelChange:$,__setDateRef:U,__setLevelRef:G,__stopPropagation:_,attributes:M,...S?{}:{className:j,style:T}});if(!S)return V;const I=ie=>{var Z,le;const re=Array.isArray(ie)?ie[0]:ie;re!==void 0&&((Z=U.current)==null||Z.call(U,re),(le=G.current)==null||le.call(G,"year"),k?k(re):Y(ie))},Q=S.map((ie,re)=>v.jsx(Et,{...B("presetButton"),onClick:()=>I(ie.value),onMouseDown:Z=>Z.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:ie.label},re));return v.jsxs(fe,{...B("monthPickerRoot"),size:O,...L,children:[v.jsx("div",{...B("presetsList"),children:Q}),V]})});jp.classes={...rd.classes,...Bq};jp.varsResolver=Fq;jp.displayName="@mantine/dates/MonthPicker";var $se={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const qq=(e,{size:n})=>({datePickerRoot:{"--preset-font-size":ai(n)}}),zse={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},Ap=Pe(e=>{const n=ye("DatePicker",zse,e),{allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l,classNames:u,styles:f,__staticSelector:h,__onDayClick:d,__onDayMouseEnter:p,__onPresetSelect:g,__stopPropagation:b,presets:w,className:k,style:_,unstyled:S,size:j,vars:T,attributes:A,...O}=n,{calendarProps:M,others:$}=D0(O),q=x.useRef(null),P=x.useRef(null),L=Ze({name:h||"DatePicker",classes:$se,props:n,className:k,style:_,classNames:u,styles:f,unstyled:S,attributes:A,rootSelector:w?"datePickerRoot":void 0,varsResolver:qq,vars:T}),{onDateChange:U,onRootMouseLeave:G,onHoveredDateChange:B,getControlProps:R,_value:D,setValue:z}=Iq({type:$.type,level:"day",allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l}),{resolvedClassNames:H,resolvedStyles:Y}=Wi({classNames:u,styles:f,props:n}),N=v.jsx(rd,{classNames:H,styles:Y,__staticSelector:h||"DatePicker",onMouseLeave:G,size:j,...M,...w?{}:$,__stopPropagation:b,__setDateRef:q,__setLevelRef:P,minLevel:M.minLevel||"month",__onDayMouseEnter:(I,Q)=>{B(Q),p==null||p(I,Q)},__onDayClick:(I,Q)=>{U(Q),d==null||d(I,Q)},getDayProps:I=>{var Q;return{...R(I),...(Q=M.getDayProps)==null?void 0:Q.call(M,I)}},getMonthControlProps:I=>{var Q;return{selected:typeof D=="string"?O9(I,D):!1,...(Q=M.getMonthControlProps)==null?void 0:Q.call(M,I)}},getYearControlProps:I=>{var Q;return{selected:typeof D=="string"?Be(I).isSame(D,"year"):!1,...(Q=M.getYearControlProps)==null?void 0:Q.call(M,I)}},hideOutsideDates:M.hideOutsideDates??M.numberOfColumns!==1,attributes:A,...w?{}:{className:k,style:_}});if(!w)return N;const W=I=>{var ie,re;const Q=Array.isArray(I)?I[0]:I;Q!==void 0&&((ie=q.current)==null||ie.call(q,Q),(re=P.current)==null||re.call(P,"month"),g?g(Q):z(I))},V=w.map((I,Q)=>v.jsx(Et,{...L("presetButton"),onClick:()=>W(I.value),onMouseDown:ie=>ie.preventDefault(),"data-mantine-stop-propagation":b||void 0,children:I.label},Q));return v.jsxs(fe,{...L("datePickerRoot"),size:j,...$,children:[v.jsx("div",{...L("presetsList"),children:V}),N]})});Ap.classes=rd.classes;Ap.varsResolver=qq;Ap.displayName="@mantine/dates/DatePicker";function Hq({type:e,value:n,defaultValue:t,onChange:i,locale:r,format:a,closeOnChange:o,sortDates:l,labelSeparator:u,valueFormatter:f}){const h=Ml(),[d,p]=Wz(!1),[g,b]=T9({type:e,value:n,defaultValue:t,onChange:i}),w=tse({type:e,date:g,locale:h.getLocale(r),format:a,labelSeparator:h.getLabelSeparator(u),formatter:f}),k=S=>{o&&(e==="default"&&p.close(),e==="range"&&S[0]&&S[1]&&p.close()),b(l&&e==="multiple"?[...S].sort((j,T)=>Be(j).isAfter(Be(T))?1:-1):S)};return{_value:g,setValue:k,onClear:()=>k(e==="range"?[null,null]:e==="multiple"?[]:null),shouldClear:e==="range"?!!g[0]:e==="multiple"?g.length>0:g!==null,formattedValue:w,dropdownOpened:d,dropdownHandlers:p}}const Lse={type:"default",size:"sm",valueFormat:"MMMM YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},E9=Pe(e=>{const n=ye("MonthPickerInput",Lse,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:u,classNames:f,styles:h,unstyled:d,closeOnChange:p,size:g,variant:b,dropdownType:w,sortDates:k,minDate:_,maxDate:S,vars:j,valueFormatter:T,presets:A,attributes:O,...M}=n,{resolvedClassNames:$,resolvedStyles:q}=Wi({classNames:f,styles:h,props:n}),{calendarProps:P,others:L}=D0(M),{_value:U,setValue:G,formattedValue:B,dropdownHandlers:R,dropdownOpened:D,onClear:z,shouldClear:H}=Hq({type:t,value:i,defaultValue:r,onChange:a,locale:u,format:o,labelSeparator:l,closeOnChange:p,sortDates:k,valueFormatter:T});return v.jsx(id,{formattedValue:B,dropdownOpened:D,dropdownHandlers:R,classNames:$,styles:q,unstyled:d,onClear:z,shouldClear:H,value:U,size:g,variant:b,dropdownType:w,...L,attributes:O,type:t,__staticSelector:"MonthPickerInput",children:v.jsx(jp,{...P,size:g,variant:b,type:t,value:U,defaultDate:P.defaultDate||(Array.isArray(U)?U[0]||t4({maxDate:S,minDate:_}):U||t4({maxDate:S,minDate:_})),onChange:G,locale:u,classNames:$,styles:q,unstyled:d,__staticSelector:"MonthPickerInput",__stopPropagation:w==="popover",minDate:_,maxDate:S,presets:A,attributes:O})})});E9.classes={...id.classes,...jp.classes};E9.displayName="@mantine/dates/MonthPickerInput";const Ise={type:"default",size:"sm",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},Du=Pe(e=>{const n=ye("DatePickerInput",Ise,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:u,classNames:f,styles:h,unstyled:d,closeOnChange:p,size:g,variant:b,dropdownType:w,sortDates:k,minDate:_,maxDate:S,vars:j,defaultDate:T,valueFormatter:A,presets:O,attributes:M,...$}=n,{resolvedClassNames:q,resolvedStyles:P}=Wi({classNames:f,styles:h,props:n}),{calendarProps:L,others:U}=D0($),{_value:G,setValue:B,formattedValue:R,dropdownHandlers:D,dropdownOpened:z,onClear:H,shouldClear:Y}=Hq({type:t,value:i,defaultValue:r,onChange:a,locale:u,format:o,labelSeparator:l,closeOnChange:p,sortDates:k,valueFormatter:A}),N=Array.isArray(G)?G[0]||T:G||T;return v.jsx(id,{formattedValue:R,dropdownOpened:z,dropdownHandlers:D,classNames:q,styles:P,unstyled:d,onClear:H,shouldClear:Y,value:G,size:g,variant:b,dropdownType:w,...U,type:t,__staticSelector:"DatePickerInput",attributes:M,children:v.jsx(Ap,{...L,size:g,variant:b,type:t,value:G,defaultDate:N||t4({maxDate:S,minDate:_}),onChange:B,locale:u,classNames:q,styles:P,unstyled:d,__staticSelector:"DatePickerInput",__stopPropagation:w==="popover",minDate:_,maxDate:S,presets:O,attributes:M})})});Du.classes={...id.classes,...Ap.classes};Du.displayName="@mantine/dates/DatePickerInput";/** + `},yae={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function bae(e){let{announcements:n=yae,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=gae}=e;const{announce:a,announcement:o}=mae(),l=_p("DndLiveRegion"),[u,f]=S.useState(!1);if(S.useEffect(()=>{f(!0)},[]),pae(S.useMemo(()=>({onDragStart(d){let{active:p}=d;a(n.onDragStart({active:p}))},onDragMove(d){let{active:p,over:g}=d;n.onDragMove&&a(n.onDragMove({active:p,over:g}))},onDragOver(d){let{active:p,over:g}=d;a(n.onDragOver({active:p,over:g}))},onDragEnd(d){let{active:p,over:g}=d;a(n.onDragEnd({active:p,over:g}))},onDragCancel(d){let{active:p,over:g}=d;a(n.onDragCancel({active:p,over:g}))}}),[a,n])),!u)return null;const h=J.createElement(J.Fragment,null,J.createElement(dae,{id:i,value:r.draggable}),J.createElement(hae,{id:l,announcement:o}));return t?sl.createPortal(h,t):h}var Ci;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ci||(Ci={}));function a1(){}function vM(e,n){return S.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function wae(){for(var e=arguments.length,n=new Array(e),t=0;t[...n].filter(i=>i!=null),[...n])}const Ga=Object.freeze({x:0,y:0});function w9(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function kae(e,n){const t=r1(e);if(!t)return"0 0";const i={x:(t.x-n.left)/n.width*100,y:(t.y-n.top)/n.height*100};return i.x+"% "+i.y+"%"}function k9(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return t-i}function _ae(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return i-t}function QS(e){let{left:n,top:t,height:i,width:r}=e;return[{x:n,y:t},{x:n+r,y:t},{x:n,y:t+i},{x:n+r,y:t+i}]}function WF(e,n){if(!e||e.length===0)return null;const[t]=e;return t[n]}function gM(e,n,t){return n===void 0&&(n=e.left),t===void 0&&(t=e.top),{x:n+e.width*.5,y:t+e.height*.5}}const xae=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=gM(n,n.left,n.top),a=[];for(const o of i){const{id:l}=o,u=t.get(l);if(u){const f=w9(gM(u),r);a.push({id:l,data:{droppableContainer:o,value:f}})}}return a.sort(k9)},GF=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=QS(n),a=[];for(const o of i){const{id:l}=o,u=t.get(l);if(u){const f=QS(u),h=r.reduce((p,g,b)=>p+w9(f[b],g),0),d=Number((h/4).toFixed(4));a.push({id:l,data:{droppableContainer:o,value:d}})}}return a.sort(k9)};function Sae(e,n){const t=Math.max(n.top,e.top),i=Math.max(n.left,e.left),r=Math.min(n.left+n.width,e.left+e.width),a=Math.min(n.top+n.height,e.top+e.height),o=r-i,l=a-t;if(i{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=[];for(const a of i){const{id:o}=a,l=t.get(o);if(l){const u=Sae(l,n);u>0&&r.push({id:o,data:{droppableContainer:a,value:u}})}}return r.sort(_ae)};function Cae(e,n){const{top:t,left:i,bottom:r,right:a}=n;return t<=e.y&&e.y<=r&&i<=e.x&&e.x<=a}const jae=e=>{let{droppableContainers:n,droppableRects:t,pointerCoordinates:i}=e;if(!i)return[];const r=[];for(const a of n){const{id:o}=a,l=t.get(o);if(l&&Cae(i,l)){const f=QS(l).reduce((d,p)=>d+w9(i,p),0),h=Number((f/4).toFixed(4));r.push({id:o,data:{droppableContainer:a,value:h}})}}return r.sort(k9)};function Aae(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}function KF(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:Ga}function Oae(e){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a({...o,top:o.top+e*l.y,bottom:o.bottom+e*l.y,left:o.left+e*l.x,right:o.right+e*l.x}),{...t})}}const Tae=Oae(1);function XF(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function Eae(e,n,t){const i=XF(n);if(!i)return e;const{scaleX:r,scaleY:a,x:o,y:l}=i,u=e.left-o-(1-r)*parseFloat(t),f=e.top-l-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),h=r?e.width/r:e.width,d=a?e.height/a:e.height;return{width:h,height:d,top:f,right:u+h,bottom:f+d,left:u}}const Mae={ignoreTransform:!1};function td(e,n){n===void 0&&(n=Mae);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:f,transformOrigin:h}=dr(e).getComputedStyle(e);f&&(t=Eae(t,f,h))}const{top:i,left:r,width:a,height:o,bottom:l,right:u}=t;return{top:i,left:r,width:a,height:o,bottom:l,right:u}}function yM(e){return td(e,{ignoreTransform:!0})}function Dae(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}function Rae(e,n){return n===void 0&&(n=dr(e).getComputedStyle(e)),n.position==="fixed"}function Pae(e,n){n===void 0&&(n=dr(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=n[r];return typeof a=="string"?t.test(a):!1})}function w0(e,n){const t=[];function i(r){if(n!=null&&t.length>=n||!r)return t;if(b9(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!wp(r)||HF(r)||t.includes(r))return t;const a=dr(e).getComputedStyle(r);return r!==e&&Pae(r,a)&&t.push(r),Rae(r,a)?t:i(r.parentNode)}return e?i(e):t}function ZF(e){const[n]=w0(e,1);return n??null}function e_(e){return!g0||!e?null:ed(e)?e:y9(e)?b9(e)||e===nd(e).scrollingElement?window:wp(e)?e:null:null}function QF(e){return ed(e)?e.scrollX:e.scrollLeft}function JF(e){return ed(e)?e.scrollY:e.scrollTop}function JS(e){return{x:QF(e),y:JF(e)}}var Ri;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ri||(Ri={}));function eq(e){return!g0||!e?!1:e===document.scrollingElement}function nq(e){const n={x:0,y:0},t=eq(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height},r=e.scrollTop<=n.y,a=e.scrollLeft<=n.x,o=e.scrollTop>=i.y,l=e.scrollLeft>=i.x;return{isTop:r,isLeft:a,isBottom:o,isRight:l,maxScroll:i,minScroll:n}}const Nae={x:.2,y:.2};function $ae(e,n,t,i,r){let{top:a,left:o,right:l,bottom:u}=t;i===void 0&&(i=10),r===void 0&&(r=Nae);const{isTop:f,isBottom:h,isLeft:d,isRight:p}=nq(e),g={x:0,y:0},b={x:0,y:0},w={height:n.height*r.y,width:n.width*r.x};return!f&&a<=n.top+w.height?(g.y=Ri.Backward,b.y=i*Math.abs((n.top+w.height-a)/w.height)):!h&&u>=n.bottom-w.height&&(g.y=Ri.Forward,b.y=i*Math.abs((n.bottom-w.height-u)/w.height)),!p&&l>=n.right-w.width?(g.x=Ri.Forward,b.x=i*Math.abs((n.right-w.width-l)/w.width)):!d&&o<=n.left+w.width&&(g.x=Ri.Backward,b.x=i*Math.abs((n.left+w.width-o)/w.width)),{direction:g,speed:b}}function zae(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:n,left:t,right:i,bottom:r}=e.getBoundingClientRect();return{top:n,left:t,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}function tq(e){return e.reduce((n,t)=>Jc(n,JS(t)),Ga)}function Lae(e){return e.reduce((n,t)=>n+QF(t),0)}function Iae(e){return e.reduce((n,t)=>n+JF(t),0)}function iq(e,n){if(n===void 0&&(n=td),!e)return;const{top:t,left:i,bottom:r,right:a}=n(e);ZF(e)&&(r<=0||a<=0||t>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Bae=[["x",["left","right"],Lae],["y",["top","bottom"],Iae]];class _9{constructor(n,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=w0(t),r=tq(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[a,o,l]of Bae)for(const u of o)Object.defineProperty(this,u,{get:()=>{const f=l(i),h=r[a]-f;return this.rect[u]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Xh{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...t)})},this.target=n}add(n,t,i){var r;(r=this.target)==null||r.addEventListener(n,t,i),this.listeners.push([n,t,i])}}function Fae(e){const{EventTarget:n}=dr(e);return e instanceof n?e:nd(e)}function n_(e,n){const t=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(t**2+i**2)>n:"x"in n&&"y"in n?t>n.x&&i>n.y:"x"in n?t>n.x:"y"in n?i>n.y:!1}var ma;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ma||(ma={}));function bM(e){e.preventDefault()}function qae(e){e.stopPropagation()}var ct;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ct||(ct={}));const rq={start:[ct.Space,ct.Enter],cancel:[ct.Esc],end:[ct.Space,ct.Enter,ct.Tab]},Hae=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case ct.Right:return{...t,x:t.x+25};case ct.Left:return{...t,x:t.x-25};case ct.Down:return{...t,y:t.y+25};case ct.Up:return{...t,y:t.y-25}}};class x9{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:t}}=n;this.props=n,this.listeners=new Xh(nd(t)),this.windowListeners=new Xh(dr(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ma.Resize,this.handleCancel),this.windowListeners.add(ma.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ma.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:t}=this.props,i=n.node.current;i&&iq(i),t(Ga)}handleKeyDown(n){if(b0(n)){const{active:t,context:i,options:r}=this.props,{keyboardCodes:a=rq,coordinateGetter:o=Hae,scrollBehavior:l="smooth"}=r,{code:u}=n;if(a.end.includes(u)){this.handleEnd(n);return}if(a.cancel.includes(u)){this.handleCancel(n);return}const{collisionRect:f}=i.current,h=f?{x:f.left,y:f.top}:Ga;this.referenceCoordinates||(this.referenceCoordinates=h);const d=o(n,{active:t,context:i.current,currentCoordinates:h});if(d){const p=ym(d,h),g={x:0,y:0},{scrollableAncestors:b}=i.current;for(const w of b){const k=n.code,{isTop:_,isRight:x,isLeft:C,isBottom:T,maxScroll:A,minScroll:O}=nq(w),M=zae(w),$={x:Math.min(k===ct.Right?M.right-M.width/2:M.right,Math.max(k===ct.Right?M.left:M.left+M.width/2,d.x)),y:Math.min(k===ct.Down?M.bottom-M.height/2:M.bottom,Math.max(k===ct.Down?M.top:M.top+M.height/2,d.y))},q=k===ct.Right&&!x||k===ct.Left&&!C,R=k===ct.Down&&!T||k===ct.Up&&!_;if(q&&$.x!==d.x){const I=w.scrollLeft+p.x,z=k===ct.Right&&I<=A.x||k===ct.Left&&I>=O.x;if(z&&!p.y){w.scrollTo({left:I,behavior:l});return}z?g.x=w.scrollLeft-I:g.x=k===ct.Right?w.scrollLeft-A.x:w.scrollLeft-O.x,g.x&&w.scrollBy({left:-g.x,behavior:l});break}else if(R&&$.y!==d.y){const I=w.scrollTop+p.y,z=k===ct.Down&&I<=A.y||k===ct.Up&&I>=O.y;if(z&&!p.x){w.scrollTo({top:I,behavior:l});return}z?g.y=w.scrollTop-I:g.y=k===ct.Down?w.scrollTop-A.y:w.scrollTop-O.y,g.y&&w.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(n,Jc(ym(d,this.referenceCoordinates),g))}}}handleMove(n,t){const{onMove:i}=this.props;n.preventDefault(),i(t)}handleEnd(n){const{onEnd:t}=this.props;n.preventDefault(),this.detach(),t()}handleCancel(n){const{onCancel:t}=this.props;n.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}x9.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:i=rq,onActivation:r}=n,{active:a}=t;const{code:o}=e.nativeEvent;if(i.start.includes(o)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function wM(e){return!!(e&&"distance"in e)}function kM(e){return!!(e&&"delay"in e)}class S9{constructor(n,t,i){var r;i===void 0&&(i=Fae(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=t;const{event:a}=n,{target:o}=a;this.props=n,this.events=t,this.document=nd(o),this.documentListeners=new Xh(this.document),this.listeners=new Xh(i),this.windowListeners=new Xh(dr(o)),this.initialCoordinates=(r=r1(a))!=null?r:Ga,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:t,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ma.Resize,this.handleCancel),this.windowListeners.add(ma.DragStart,bM),this.windowListeners.add(ma.VisibilityChange,this.handleCancel),this.windowListeners.add(ma.ContextMenu,bM),this.documentListeners.add(ma.Keydown,this.handleKeydown),t){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(kM(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(wM(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,t){const{active:i,onPending:r}=this.props;r(i,n,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:n}=this,{onStart:t}=this.props;n&&(this.activated=!0,this.documentListeners.add(ma.Click,qae,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ma.SelectionChange,this.removeTextSelection),t(n))}handleMove(n){var t;const{activated:i,initialCoordinates:r,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!r)return;const u=(t=r1(n))!=null?t:Ga,f=ym(r,u);if(!i&&l){if(wM(l)){if(l.tolerance!=null&&n_(f,l.tolerance))return this.handleCancel();if(n_(f,l.distance))return this.handleStart()}if(kM(l)&&n_(f,l.tolerance))return this.handleCancel();this.handlePending(l,f);return}n.cancelable&&n.preventDefault(),o(u)}handleEnd(){const{onAbort:n,onEnd:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleCancel(){const{onAbort:n,onCancel:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleKeydown(n){n.code===ct.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Uae={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class C9 extends S9{constructor(n){const{event:t}=n,i=nd(t.target);super(n,Uae,i)}}C9.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return!t.isPrimary||t.button!==0?!1:(i==null||i({event:t}),!0)}}];const Vae={move:{name:"mousemove"},end:{name:"mouseup"}};var e4;(function(e){e[e.RightClick=2]="RightClick"})(e4||(e4={}));class Wae extends S9{constructor(n){super(n,Vae,nd(n.event.target))}}Wae.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return t.button===e4.RightClick?!1:(i==null||i({event:t}),!0)}}];const t_={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Gae extends S9{constructor(n){super(n,t_)}static setup(){return window.addEventListener(t_.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(t_.move.name,n)};function n(){}}}Gae.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;const{touches:r}=t;return r.length>1?!1:(i==null||i({event:t}),!0)}}];var Zh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Zh||(Zh={}));var o1;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(o1||(o1={}));function Yae(e){let{acceleration:n,activator:t=Zh.Pointer,canScroll:i,draggingRect:r,enabled:a,interval:o=5,order:l=o1.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:h,delta:d,threshold:p}=e;const g=Xae({delta:d,disabled:!a}),[b,w]=sae(),k=S.useRef({x:0,y:0}),_=S.useRef({x:0,y:0}),x=S.useMemo(()=>{switch(t){case Zh.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Zh.DraggableRect:return r}},[t,r,u]),C=S.useRef(null),T=S.useCallback(()=>{const O=C.current;if(!O)return;const M=k.current.x*_.current.x,$=k.current.y*_.current.y;O.scrollBy(M,$)},[]),A=S.useMemo(()=>l===o1.TreeOrder?[...f].reverse():f,[l,f]);S.useEffect(()=>{if(!a||!f.length||!x){w();return}for(const O of A){if((i==null?void 0:i(O))===!1)continue;const M=f.indexOf(O),$=h[M];if(!$)continue;const{direction:q,speed:R}=$ae(O,$,x,n,p);for(const I of["x","y"])g[I][q[I]]||(R[I]=0,q[I]=0);if(R.x>0||R.y>0){w(),C.current=O,b(T,o),k.current=R,_.current=q;return}}k.current={x:0,y:0},_.current={x:0,y:0},w()},[n,T,i,w,a,o,JSON.stringify(x),JSON.stringify(g),b,f,A,h,JSON.stringify(p)])}const Kae={x:{[Ri.Backward]:!1,[Ri.Forward]:!1},y:{[Ri.Backward]:!1,[Ri.Forward]:!1}};function Xae(e){let{delta:n,disabled:t}=e;const i=i1(n);return kp(r=>{if(t||!i||!r)return Kae;const a={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[Ri.Backward]:r.x[Ri.Backward]||a.x===-1,[Ri.Forward]:r.x[Ri.Forward]||a.x===1},y:{[Ri.Backward]:r.y[Ri.Backward]||a.y===-1,[Ri.Forward]:r.y[Ri.Forward]||a.y===1}}},[t,n,i])}function Zae(e,n){const t=n!=null?e.get(n):void 0,i=t?t.node.current:null;return kp(r=>{var a;return n==null?null:(a=i??r)!=null?a:null},[i,n])}function Qae(e,n){return S.useMemo(()=>e.reduce((t,i)=>{const{sensor:r}=i,a=r.activators.map(o=>({eventName:o.eventName,handler:n(o.handler,i)}));return[...t,...a]},[]),[e,n])}var bm;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(bm||(bm={}));var n4;(function(e){e.Optimized="optimized"})(n4||(n4={}));const _M=new Map;function Jae(e,n){let{dragging:t,dependencies:i,config:r}=n;const[a,o]=S.useState(null),{frequency:l,measure:u,strategy:f}=r,h=S.useRef(e),d=k(),p=gm(d),g=S.useCallback(function(_){_===void 0&&(_=[]),!p.current&&o(x=>x===null?_:x.concat(_.filter(C=>!x.includes(C))))},[p]),b=S.useRef(null),w=kp(_=>{if(d&&!t)return _M;if(!_||_===_M||h.current!==e||a!=null){const x=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){x.set(C.id,C.rect.current);continue}const T=C.node.current,A=T?new _9(u(T),T):null;C.rect.current=A,A&&x.set(C.id,A)}return x}return _},[e,a,t,d,u]);return S.useEffect(()=>{h.current=e},[e]),S.useEffect(()=>{d||g()},[t,d]),S.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),S.useEffect(()=>{d||typeof l!="number"||b.current!==null||(b.current=setTimeout(()=>{g(),b.current=null},l))},[l,d,g,...i]),{droppableRects:w,measureDroppableContainers:g,measuringScheduled:a!=null};function k(){switch(f){case bm.Always:return!1;case bm.BeforeDragging:return t;default:return!t}}}function j9(e,n){return kp(t=>e?t||(typeof n=="function"?n(e):e):null,[n,e])}function eoe(e,n){return j9(e,n)}function noe(e){let{callback:n,disabled:t}=e;const i=y0(n),r=S.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(i)},[i,t]);return S.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function k0(e){let{callback:n,disabled:t}=e;const i=y0(n),r=S.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(i)},[t]);return S.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function toe(e){return new _9(td(e),e)}function xM(e,n,t){n===void 0&&(n=toe);const[i,r]=S.useState(null);function a(){r(u=>{if(!e)return null;if(e.isConnected===!1){var f;return(f=u??t)!=null?f:null}const h=n(e);return JSON.stringify(u)===JSON.stringify(h)?u:h})}const o=noe({callback(u){if(e)for(const f of u){const{type:h,target:d}=f;if(h==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),l=k0({callback:a});return Wa(()=>{a(),e?(l==null||l.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),o==null||o.disconnect())},[e]),i}function ioe(e){const n=j9(e);return KF(e,n)}const SM=[];function roe(e){const n=S.useRef(e),t=kp(i=>e?i&&i!==SM&&e&&n.current&&e.parentNode===n.current.parentNode?i:w0(e):SM,[e]);return S.useEffect(()=>{n.current=e},[e]),t}function aoe(e){const[n,t]=S.useState(null),i=S.useRef(e),r=S.useCallback(a=>{const o=e_(a.target);o&&t(l=>l?(l.set(o,JS(o)),new Map(l)):null)},[]);return S.useEffect(()=>{const a=i.current;if(e!==a){o(a);const l=e.map(u=>{const f=e_(u);return f?(f.addEventListener("scroll",r,{passive:!0}),[f,JS(f)]):null}).filter(u=>u!=null);t(l.length?new Map(l):null),i.current=e}return()=>{o(e),o(a)};function o(l){l.forEach(u=>{const f=e_(u);f==null||f.removeEventListener("scroll",r)})}},[r,e]),S.useMemo(()=>e.length?n?Array.from(n.values()).reduce((a,o)=>Jc(a,o),Ga):tq(e):Ga,[e,n])}function CM(e,n){n===void 0&&(n=[]);const t=S.useRef(null);return S.useEffect(()=>{t.current=null},n),S.useEffect(()=>{const i=e!==Ga;i&&!t.current&&(t.current=e),!i&&t.current&&(t.current=null)},[e]),t.current?ym(e,t.current):Ga}function ooe(e){S.useEffect(()=>{if(!g0)return;const n=e.map(t=>{let{sensor:i}=t;return i.setup==null?void 0:i.setup()});return()=>{for(const t of n)t==null||t()}},e.map(n=>{let{sensor:t}=n;return t}))}function soe(e,n){return S.useMemo(()=>e.reduce((t,i)=>{let{eventName:r,handler:a}=i;return t[r]=o=>{a(o,n)},t},{}),[e,n])}function aq(e){return S.useMemo(()=>e?Dae(e):null,[e])}const jM=[];function loe(e,n){n===void 0&&(n=td);const[t]=e,i=aq(t?dr(t):null),[r,a]=S.useState(jM);function o(){a(()=>e.length?e.map(u=>eq(u)?i:new _9(n(u),u)):jM)}const l=k0({callback:o});return Wa(()=>{l==null||l.disconnect(),o(),e.forEach(u=>l==null?void 0:l.observe(u))},[e]),r}function oq(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return wp(n)?n:e}function uoe(e){let{measure:n}=e;const[t,i]=S.useState(null),r=S.useCallback(f=>{for(const{target:h}of f)if(wp(h)){i(d=>{const p=n(h);return d?{...d,width:p.width,height:p.height}:p});break}},[n]),a=k0({callback:r}),o=S.useCallback(f=>{const h=oq(f);a==null||a.disconnect(),h&&(a==null||a.observe(h)),i(h?n(h):null)},[n,a]),[l,u]=t1(o);return S.useMemo(()=>({nodeRef:l,rect:t,setRef:u}),[t,l,u])}const coe=[{sensor:C9,options:{}},{sensor:x9,options:{}}],foe={current:{}},Ig={draggable:{measure:yM},droppable:{measure:yM,strategy:bm.WhileDragging,frequency:n4.Optimized},dragOverlay:{measure:td}};class Qh extends Map{get(n){var t;return n!=null&&(t=super.get(n))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:t}=n;return!t})}getNodeFor(n){var t,i;return(t=(i=this.get(n))==null?void 0:i.node.current)!=null?t:void 0}}const doe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:a1},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ig,measureDroppableContainers:a1,windowRect:null,measuringScheduled:!1},sq={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:a1,draggableNodes:new Map,over:null,measureDroppableContainers:a1},xp=S.createContext(sq),lq=S.createContext(doe);function hoe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qh}}}function moe(e,n){switch(n.type){case Ci.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case Ci.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case Ci.DragEnd:case Ci.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ci.RegisterDroppable:{const{element:t}=n,{id:i}=t,r=new Qh(e.droppable.containers);return r.set(i,t),{...e,droppable:{...e.droppable,containers:r}}}case Ci.SetDroppableDisabled:{const{id:t,key:i,disabled:r}=n,a=e.droppable.containers.get(t);if(!a||i!==a.key)return e;const o=new Qh(e.droppable.containers);return o.set(t,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:o}}}case Ci.UnregisterDroppable:{const{id:t,key:i}=n,r=e.droppable.containers.get(t);if(!r||i!==r.key)return e;const a=new Qh(e.droppable.containers);return a.delete(t),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function poe(e){let{disabled:n}=e;const{active:t,activatorEvent:i,draggableNodes:r}=S.useContext(xp),a=i1(i),o=i1(t==null?void 0:t.id);return S.useEffect(()=>{if(!n&&!i&&a&&o!=null){if(!b0(a)||document.activeElement===a.target)return;const l=r.get(o);if(!l)return;const{activatorNode:u,node:f}=l;if(!u.current&&!f.current)return;requestAnimationFrame(()=>{for(const h of[u.current,f.current]){if(!h)continue;const d=cae(h);if(d){d.focus();break}}})}},[i,n,r,o,a]),null}function uq(e,n){let{transform:t,...i}=n;return e!=null&&e.length?e.reduce((r,a)=>a({transform:r,...i}),t):t}function voe(e){return S.useMemo(()=>({draggable:{...Ig.draggable,...e==null?void 0:e.draggable},droppable:{...Ig.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ig.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function goe(e){let{activeNode:n,measure:t,initialRect:i,config:r=!0}=e;const a=S.useRef(!1),{x:o,y:l}=typeof r=="boolean"?{x:r,y:r}:r;Wa(()=>{if(!o&&!l||!n){a.current=!1;return}if(a.current||!i)return;const f=n==null?void 0:n.node.current;if(!f||f.isConnected===!1)return;const h=t(f),d=KF(h,i);if(o||(d.x=0),l||(d.y=0),a.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=ZF(f);p&&p.scrollBy({top:d.y,left:d.x})}},[n,o,l,i,t])}const _0=S.createContext({...Ga,scaleX:1,scaleY:1});var il;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(il||(il={}));const yoe=S.memo(function(n){var t,i,r,a;let{id:o,accessibility:l,autoScroll:u=!0,children:f,sensors:h=coe,collisionDetection:d=YF,measuring:p,modifiers:g,...b}=n;const w=S.useReducer(moe,void 0,hoe),[k,_]=w,[x,C]=vae(),[T,A]=S.useState(il.Uninitialized),O=T===il.Initialized,{draggable:{active:M,nodes:$,translate:q},droppable:{containers:R}}=k,I=M!=null?$.get(M):null,z=S.useRef({initial:null,translated:null}),W=S.useMemo(()=>{var gn;return M!=null?{id:M,data:(gn=I==null?void 0:I.data)!=null?gn:foe,rect:z}:null},[M,I]),U=S.useRef(null),[N,D]=S.useState(null),[L,H]=S.useState(null),Y=gm(b,Object.values(b)),P=_p("DndDescribedBy",o),G=S.useMemo(()=>R.getEnabled(),[R]),V=voe(p),{droppableRects:B,measureDroppableContainers:Q,measuringScheduled:ie}=Jae(G,{dragging:O,dependencies:[q.x,q.y],config:V.droppable}),re=Zae($,M),Z=S.useMemo(()=>L?r1(L):null,[L]),le=En(),ee=eoe(re,V.draggable.measure);goe({activeNode:M!=null?$.get(M):null,config:le.layoutShiftCompensation,initialRect:ee,measure:V.draggable.measure});const se=xM(re,V.draggable.measure,ee),ke=xM(re?re.parentElement:null),te=S.useRef({activatorEvent:null,active:null,activeNode:re,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=R.getNodeFor((t=te.current.over)==null?void 0:t.id),xe=uoe({measure:V.dragOverlay.measure}),Oe=(i=xe.nodeRef.current)!=null?i:re,ze=O?(r=xe.rect)!=null?r:se:null,we=!!(xe.nodeRef.current&&xe.rect),Ce=ioe(we?null:se),Ne=aq(Oe?dr(Oe):null),he=roe(O?$e??re:null),He=loe(he),Ye=uq(g,{transform:{x:q.x-Ce.x,y:q.y-Ce.y,scaleX:1,scaleY:1},activatorEvent:L,active:W,activeNodeRect:se,containerNodeRect:ke,draggingNodeRect:ze,over:te.current.over,overlayNodeRect:xe.rect,scrollableAncestors:he,scrollableAncestorRects:He,windowRect:Ne}),We=Z?Jc(Z,q):null,Qe=aoe(he),Je=CM(Qe),oe=CM(Qe,[se]),be=Jc(Ye,Je),Ke=ze?Tae(ze,Ye):null,en=W&&Ke?d({active:W,collisionRect:Ke,droppableRects:B,droppableContainers:G,pointerCoordinates:We}):null,Ae=WF(en,"id"),[an,pn]=S.useState(null),Dn=we?Ye:Jc(Ye,oe),wn=Aae(Dn,(a=an==null?void 0:an.rect)!=null?a:null,se),ln=S.useRef(null),tn=S.useCallback((gn,xn)=>{let{sensor:at,options:Dt}=xn;if(U.current==null)return;const qe=$.get(U.current);if(!qe)return;const Ue=gn.nativeEvent,Bn=new at({active:U.current,activeNode:qe,event:Ue,options:Dt,context:te,onAbort(Pn){if(!$.get(Pn))return;const{onDragAbort:on}=Y.current,un={id:Pn};on==null||on(un),x({type:"onDragAbort",event:un})},onPending(Pn,rn,on,un){if(!$.get(Pn))return;const{onDragPending:Xn}=Y.current,It={id:Pn,constraint:rn,initialCoordinates:on,offset:un};Xn==null||Xn(It),x({type:"onDragPending",event:It})},onStart(Pn){const rn=U.current;if(rn==null)return;const on=$.get(rn);if(!on)return;const{onDragStart:un}=Y.current,Kn={activatorEvent:Ue,active:{id:rn,data:on.data,rect:z}};sl.unstable_batchedUpdates(()=>{un==null||un(Kn),A(il.Initializing),_({type:Ci.DragStart,initialCoordinates:Pn,active:rn}),x({type:"onDragStart",event:Kn}),D(ln.current),H(Ue)})},onMove(Pn){_({type:Ci.DragMove,coordinates:Pn})},onEnd:ot(Ci.DragEnd),onCancel:ot(Ci.DragCancel)});ln.current=Bn;function ot(Pn){return async function(){const{active:on,collisions:un,over:Kn,scrollAdjustedTranslate:Xn}=te.current;let It=null;if(on&&Xn){const{cancelDrop:Rn}=Y.current;It={activatorEvent:Ue,active:on,collisions:un,delta:Xn,over:Kn},Pn===Ci.DragEnd&&typeof Rn=="function"&&await Promise.resolve(Rn(It))&&(Pn=Ci.DragCancel)}U.current=null,sl.unstable_batchedUpdates(()=>{_({type:Pn}),A(il.Uninitialized),pn(null),D(null),H(null),ln.current=null;const Rn=Pn===Ci.DragEnd?"onDragEnd":"onDragCancel";if(It){const Mn=Y.current[Rn];Mn==null||Mn(It),x({type:Rn,event:It})}})}}},[$]),zn=S.useCallback((gn,xn)=>(at,Dt)=>{const qe=at.nativeEvent,Ue=$.get(Dt);if(U.current!==null||!Ue||qe.dndKit||qe.defaultPrevented)return;const Bn={active:Ue};gn(at,xn.options,Bn)===!0&&(qe.dndKit={capturedBy:xn.sensor},U.current=Dt,tn(at,xn))},[$,tn]),De=Qae(h,zn);ooe(h),Wa(()=>{se&&T===il.Initializing&&A(il.Initialized)},[se,T]),S.useEffect(()=>{const{onDragMove:gn}=Y.current,{active:xn,activatorEvent:at,collisions:Dt,over:qe}=te.current;if(!xn||!at)return;const Ue={active:xn,activatorEvent:at,collisions:Dt,delta:{x:be.x,y:be.y},over:qe};sl.unstable_batchedUpdates(()=>{gn==null||gn(Ue),x({type:"onDragMove",event:Ue})})},[be.x,be.y]),S.useEffect(()=>{const{active:gn,activatorEvent:xn,collisions:at,droppableContainers:Dt,scrollAdjustedTranslate:qe}=te.current;if(!gn||U.current==null||!xn||!qe)return;const{onDragOver:Ue}=Y.current,Bn=Dt.get(Ae),ot=Bn&&Bn.rect.current?{id:Bn.id,rect:Bn.rect.current,data:Bn.data,disabled:Bn.disabled}:null,Pn={active:gn,activatorEvent:xn,collisions:at,delta:{x:qe.x,y:qe.y},over:ot};sl.unstable_batchedUpdates(()=>{pn(ot),Ue==null||Ue(Pn),x({type:"onDragOver",event:Pn})})},[Ae]),Wa(()=>{te.current={activatorEvent:L,active:W,activeNode:re,collisionRect:Ke,collisions:en,droppableRects:B,draggableNodes:$,draggingNode:Oe,draggingNodeRect:ze,droppableContainers:R,over:an,scrollableAncestors:he,scrollAdjustedTranslate:be},z.current={initial:ze,translated:Ke}},[W,re,en,Ke,$,Oe,ze,B,R,an,he,be]),Yae({...le,delta:q,draggingRect:Ke,pointerCoordinates:We,scrollableAncestors:he,scrollableAncestorRects:He});const Fe=S.useMemo(()=>({active:W,activeNode:re,activeNodeRect:se,activatorEvent:L,collisions:en,containerNodeRect:ke,dragOverlay:xe,draggableNodes:$,droppableContainers:R,droppableRects:B,over:an,measureDroppableContainers:Q,scrollableAncestors:he,scrollableAncestorRects:He,measuringConfiguration:V,measuringScheduled:ie,windowRect:Ne}),[W,re,se,L,en,ke,xe,$,R,B,an,Q,he,He,V,ie,Ne]),Gn=S.useMemo(()=>({activatorEvent:L,activators:De,active:W,activeNodeRect:se,ariaDescribedById:{draggable:P},dispatch:_,draggableNodes:$,over:an,measureDroppableContainers:Q}),[L,De,W,se,_,P,$,an,Q]);return J.createElement(VF.Provider,{value:C},J.createElement(xp.Provider,{value:Gn},J.createElement(lq.Provider,{value:Fe},J.createElement(_0.Provider,{value:wn},f)),J.createElement(poe,{disabled:(l==null?void 0:l.restoreFocus)===!1})),J.createElement(bae,{...l,hiddenTextDescribedById:P}));function En(){const gn=(N==null?void 0:N.autoScrollEnabled)===!1,xn=typeof u=="object"?u.enabled===!1:u===!1,at=O&&!gn&&!xn;return typeof u=="object"?{...u,enabled:at}:{enabled:at}}}),boe=S.createContext(null),AM="button",woe="Draggable";function koe(e){let{id:n,data:t,disabled:i=!1,attributes:r}=e;const a=_p(woe),{activators:o,activatorEvent:l,active:u,activeNodeRect:f,ariaDescribedById:h,draggableNodes:d,over:p}=S.useContext(xp),{role:g=AM,roleDescription:b="draggable",tabIndex:w=0}=r??{},k=(u==null?void 0:u.id)===n,_=S.useContext(k?_0:boe),[x,C]=t1(),[T,A]=t1(),O=soe(o,n),M=gm(t);Wa(()=>(d.set(n,{id:n,key:a,node:x,activatorNode:T,data:M}),()=>{const q=d.get(n);q&&q.key===a&&d.delete(n)}),[d,n]);const $=S.useMemo(()=>({role:g,tabIndex:w,"aria-disabled":i,"aria-pressed":k&&g===AM?!0:void 0,"aria-roledescription":b,"aria-describedby":h.draggable}),[i,g,w,k,b,h.draggable]);return{active:u,activatorEvent:l,activeNodeRect:f,attributes:$,isDragging:k,listeners:i?void 0:O,node:x,over:p,setNodeRef:C,setActivatorNodeRef:A,transform:_}}function cq(){return S.useContext(lq)}const _oe="Droppable",xoe={timeout:25};function Soe(e){let{data:n,disabled:t=!1,id:i,resizeObserverConfig:r}=e;const a=_p(_oe),{active:o,dispatch:l,over:u,measureDroppableContainers:f}=S.useContext(xp),h=S.useRef({disabled:t}),d=S.useRef(!1),p=S.useRef(null),g=S.useRef(null),{disabled:b,updateMeasurementsFor:w,timeout:k}={...xoe,...r},_=gm(w??i),x=S.useCallback(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{f(Array.isArray(_.current)?_.current:[_.current]),g.current=null},k)},[k]),C=k0({callback:x,disabled:b||!o}),T=S.useCallback(($,q)=>{C&&(q&&(C.unobserve(q),d.current=!1),$&&C.observe($))},[C]),[A,O]=t1(T),M=gm(n);return S.useEffect(()=>{!C||!A.current||(C.disconnect(),d.current=!1,C.observe(A.current))},[A,C]),S.useEffect(()=>(l({type:Ci.RegisterDroppable,element:{id:i,key:a,disabled:t,node:A,rect:p,data:M}}),()=>l({type:Ci.UnregisterDroppable,key:a,id:i})),[i]),S.useEffect(()=>{t!==h.current.disabled&&(l({type:Ci.SetDroppableDisabled,id:i,key:a,disabled:t}),h.current.disabled=t)},[i,a,t,l]),{active:o,rect:p,isOver:(u==null?void 0:u.id)===i,node:A,over:u,setNodeRef:O}}function Coe(e){let{animation:n,children:t}=e;const[i,r]=S.useState(null),[a,o]=S.useState(null),l=i1(t);return!t&&!i&&l&&r(l),Wa(()=>{if(!a)return;const u=i==null?void 0:i.key,f=i==null?void 0:i.props.id;if(u==null||f==null){r(null);return}Promise.resolve(n(f,a)).then(()=>{r(null)})},[n,i,a]),J.createElement(J.Fragment,null,t,i?S.cloneElement(i,{ref:o}):null)}const joe={x:0,y:0,scaleX:1,scaleY:1};function Aoe(e){let{children:n}=e;return J.createElement(xp.Provider,{value:sq},J.createElement(_0.Provider,{value:joe},n))}const Ooe={position:"fixed",touchAction:"none"},Toe=e=>b0(e)?"transform 250ms ease":void 0,Eoe=S.forwardRef((e,n)=>{let{as:t,activatorEvent:i,adjustScale:r,children:a,className:o,rect:l,style:u,transform:f,transition:h=Toe}=e;if(!l)return null;const d=r?f:{...f,scaleX:1,scaleY:1},p={...Ooe,width:l.width,height:l.height,top:l.top,left:l.left,transform:po.Transform.toString(d),transformOrigin:r&&i?kae(i,l):void 0,transition:typeof h=="function"?h(i):h,...u};return J.createElement(t,{className:o,style:p,ref:n},a)}),Moe=e=>n=>{let{active:t,dragOverlay:i}=n;const r={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[l,u]of Object.entries(a.active))u!==void 0&&(r[l]=t.node.style.getPropertyValue(l),t.node.style.setProperty(l,u));if(a!=null&&a.dragOverlay)for(const[l,u]of Object.entries(a.dragOverlay))u!==void 0&&i.node.style.setProperty(l,u);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&i.node.classList.add(o.dragOverlay),function(){for(const[u,f]of Object.entries(r))t.node.style.setProperty(u,f);o!=null&&o.active&&t.node.classList.remove(o.active)}},Doe=e=>{let{transform:{initial:n,final:t}}=e;return[{transform:po.Transform.toString(n)},{transform:po.Transform.toString(t)}]},Roe={duration:250,easing:"ease",keyframes:Doe,sideEffects:Moe({styles:{active:{opacity:"0"}}})};function Poe(e){let{config:n,draggableNodes:t,droppableContainers:i,measuringConfiguration:r}=e;return y0((a,o)=>{if(n===null)return;const l=t.get(a);if(!l)return;const u=l.node.current;if(!u)return;const f=oq(o);if(!f)return;const{transform:h}=dr(o).getComputedStyle(o),d=XF(h);if(!d)return;const p=typeof n=="function"?n:Noe(n);return iq(u,r.draggable.measure),p({active:{id:a,data:l.data,node:u,rect:r.draggable.measure(u)},draggableNodes:t,dragOverlay:{node:o,rect:r.dragOverlay.measure(f)},droppableContainers:i,measuringConfiguration:r,transform:d})})}function Noe(e){const{duration:n,easing:t,sideEffects:i,keyframes:r}={...Roe,...e};return a=>{let{active:o,dragOverlay:l,transform:u,...f}=a;if(!n)return;const h={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},d={scaleX:u.scaleX!==1?o.rect.width*u.scaleX/l.rect.width:1,scaleY:u.scaleY!==1?o.rect.height*u.scaleY/l.rect.height:1},p={x:u.x-h.x,y:u.y-h.y,...d},g=r({...f,active:o,dragOverlay:l,transform:{initial:u,final:p}}),[b]=g,w=g[g.length-1];if(JSON.stringify(b)===JSON.stringify(w))return;const k=i==null?void 0:i({active:o,dragOverlay:l,...f}),_=l.node.animate(g,{duration:n,easing:t,fill:"forwards"});return new Promise(x=>{_.onfinish=()=>{k==null||k(),x()}})}}let OM=0;function $oe(e){return S.useMemo(()=>{if(e!=null)return OM++,OM},[e])}const zoe=J.memo(e=>{let{adjustScale:n=!1,children:t,dropAnimation:i,style:r,transition:a,modifiers:o,wrapperElement:l="div",className:u,zIndex:f=999}=e;const{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:g,draggableNodes:b,droppableContainers:w,dragOverlay:k,over:_,measuringConfiguration:x,scrollableAncestors:C,scrollableAncestorRects:T,windowRect:A}=cq(),O=S.useContext(_0),M=$oe(d==null?void 0:d.id),$=uq(o,{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:g,draggingNodeRect:k.rect,over:_,overlayNodeRect:k.rect,scrollableAncestors:C,scrollableAncestorRects:T,transform:O,windowRect:A}),q=j9(p),R=Poe({config:i,draggableNodes:b,droppableContainers:w,measuringConfiguration:x}),I=q?k.setRef:void 0;return J.createElement(Aoe,null,J.createElement(Coe,{animation:R},d&&M?J.createElement(Eoe,{key:M,id:d.id,ref:I,as:l,activatorEvent:h,adjustScale:n,className:u,transition:a,rect:q,style:{zIndex:f,...r},transform:$},t):null))});function s1(e,n,t){const i=e.slice();return i.splice(t<0?i.length+t:t,0,i.splice(n,1)[0]),i}function Loe(e,n){return e.reduce((t,i,r)=>{const a=n.get(i);return a&&(t[r]=a),t},Array(e.length))}function ag(e){return e!==null&&e>=0}function Ioe(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t{var n;let{rects:t,activeNodeRect:i,activeIndex:r,overIndex:a,index:o}=e;const l=(n=t[r])!=null?n:i;if(!l)return null;const u=qoe(t,o,r);if(o===r){const f=t[a];return f?{x:rr&&o<=a?{x:-l.width-u,y:0,...og}:o=a?{x:l.width+u,y:0,...og}:{x:0,y:0,...og}};function qoe(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return!i||!r&&!a?0:t{let{rects:n,activeIndex:t,overIndex:i,index:r}=e;const a=s1(n,i,t),o=n[r],l=a[r];return!l||!o?null:{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}},sg={scaleX:1,scaleY:1},dq=e=>{var n;let{activeIndex:t,activeNodeRect:i,index:r,rects:a,overIndex:o}=e;const l=(n=a[t])!=null?n:i;if(!l)return null;if(r===t){const f=a[o];return f?{x:0,y:tt&&r<=o?{x:0,y:-l.height-u,...sg}:r=o?{x:0,y:l.height+u,...sg}:{x:0,y:0,...sg}};function Hoe(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return i?ti.map(O=>typeof O=="object"&&"id"in O?O.id:O),[i]),b=o!=null,w=o?g.indexOf(o.id):-1,k=f?g.indexOf(f.id):-1,_=S.useRef(g),x=!Ioe(g,_.current),C=k!==-1&&w===-1||x,T=Boe(a);Wa(()=>{x&&b&&h(g)},[x,g,b,h]),S.useEffect(()=>{_.current=g},[g]);const A=S.useMemo(()=>({activeIndex:w,containerId:d,disabled:T,disableTransforms:C,items:g,overIndex:k,useDragOverlay:p,sortedRects:Loe(g,u),strategy:r}),[w,d,T.draggable,T.droppable,C,g,k,u,p,r]);return J.createElement(mq.Provider,{value:A},n)}const Uoe=e=>{let{id:n,items:t,activeIndex:i,overIndex:r}=e;return s1(t,i,r).indexOf(n)},Voe=e=>{let{containerId:n,isSorting:t,wasDragging:i,index:r,items:a,newIndex:o,previousItems:l,previousContainerId:u,transition:f}=e;return!f||!i||l!==a&&r===o?!1:t?!0:o!==r&&n===u},Woe={duration:200,easing:"ease"},pq="transform",Goe=po.Transition.toString({property:pq,duration:0,easing:"linear"}),Yoe={roleDescription:"sortable"};function Koe(e){let{disabled:n,index:t,node:i,rect:r}=e;const[a,o]=S.useState(null),l=S.useRef(t);return Wa(()=>{if(!n&&t!==l.current&&i.current){const u=r.current;if(u){const f=td(i.current,{ignoreTransform:!0}),h={x:u.left-f.left,y:u.top-f.top,scaleX:u.width/f.width,scaleY:u.height/f.height};(h.x||h.y)&&o(h)}}t!==l.current&&(l.current=t)},[n,t,i,r]),S.useEffect(()=>{a&&o(null)},[a]),a}function vq(e){let{animateLayoutChanges:n=Voe,attributes:t,disabled:i,data:r,getNewIndex:a=Uoe,id:o,strategy:l,resizeObserverConfig:u,transition:f=Woe}=e;const{items:h,containerId:d,activeIndex:p,disabled:g,disableTransforms:b,sortedRects:w,overIndex:k,useDragOverlay:_,strategy:x}=S.useContext(mq),C=Xoe(i,g),T=h.indexOf(o),A=S.useMemo(()=>({sortable:{containerId:d,index:T,items:h},...r}),[d,r,T,h]),O=S.useMemo(()=>h.slice(h.indexOf(o)),[h,o]),{rect:M,node:$,isOver:q,setNodeRef:R}=Soe({id:o,data:A,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:O,...u}}),{active:I,activatorEvent:z,activeNodeRect:W,attributes:U,setNodeRef:N,listeners:D,isDragging:L,over:H,setActivatorNodeRef:Y,transform:P}=koe({id:o,data:A,attributes:{...Yoe,...t},disabled:C.draggable}),G=oae(R,N),V=!!I,B=V&&!b&&ag(p)&&ag(k),Q=!_&&L,ie=Q&&B?P:null,Z=B?ie??(l??x)({rects:w,activeNodeRect:W,activeIndex:p,overIndex:k,index:T}):null,le=ag(p)&&ag(k)?a({id:o,items:h,activeIndex:p,overIndex:k}):T,ee=I==null?void 0:I.id,se=S.useRef({activeId:ee,items:h,newIndex:le,containerId:d}),ke=h!==se.current.items,te=n({active:I,containerId:d,isDragging:L,isSorting:V,id:o,index:T,items:h,newIndex:se.current.newIndex,previousItems:se.current.items,previousContainerId:se.current.containerId,transition:f,wasDragging:se.current.activeId!=null}),$e=Koe({disabled:!te,index:T,node:$,rect:M});return S.useEffect(()=>{V&&se.current.newIndex!==le&&(se.current.newIndex=le),d!==se.current.containerId&&(se.current.containerId=d),h!==se.current.items&&(se.current.items=h)},[V,le,d,h]),S.useEffect(()=>{if(ee===se.current.activeId)return;if(ee!=null&&se.current.activeId==null){se.current.activeId=ee;return}const Oe=setTimeout(()=>{se.current.activeId=ee},50);return()=>clearTimeout(Oe)},[ee]),{active:I,activeIndex:p,attributes:U,data:A,rect:M,index:T,newIndex:le,items:h,isOver:q,isSorting:V,isDragging:L,listeners:D,node:$,overIndex:k,over:H,setNodeRef:G,setActivatorNodeRef:Y,setDroppableNodeRef:R,setDraggableNodeRef:N,transform:$e??Z,transition:xe()};function xe(){if($e||ke&&se.current.newIndex===T)return Goe;if(!(Q&&!b0(z)||!f)&&(V||te))return po.Transition.toString({...f,property:pq})}}function Xoe(e,n){var t,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(t=e==null?void 0:e.draggable)!=null?t:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}function l1(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const Zoe=[ct.Down,ct.Right,ct.Up,ct.Left],Qoe=(e,n)=>{let{context:{active:t,collisionRect:i,droppableRects:r,droppableContainers:a,over:o,scrollableAncestors:l}}=n;if(Zoe.includes(e.code)){if(e.preventDefault(),!t||!i)return;const u=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const p=r.get(d.id);if(p)switch(e.code){case ct.Down:i.topp.top&&u.push(d);break;case ct.Left:i.left>p.left&&u.push(d);break;case ct.Right:i.left1&&(h=f[1].id),h!=null){const d=a.get(t.id),p=a.get(h),g=p?r.get(p.id):null,b=p==null?void 0:p.node.current;if(b&&g&&d&&p){const k=w0(b).some((O,M)=>l[M]!==O),_=gq(d,p),x=Joe(d,p),C=k||!_?{x:0,y:0}:{x:x?i.width-g.width:0,y:x?i.height-g.height:0},T={x:g.left,y:g.top};return C.x&&C.y?T:ym(T,C)}}}};function gq(e,n){return!l1(e)||!l1(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function Joe(e,n){return!l1(e)||!l1(n)||!gq(e,n)?!1:e.data.current.sortable.index=N?U:""+Array(N+1-L.length).join(D)+U},T={s:C,z:function(U){var N=-U.utcOffset(),D=Math.abs(N),L=Math.floor(D/60),H=D%60;return(N<=0?"+":"-")+C(L,2,"0")+":"+C(H,2,"0")},m:function U(N,D){if(N.date()1)return U(P[0])}else{var G=N.name;O[G]=N,H=G}return!L&&H&&(A=H),H||!L&&A},R=function(U,N){if($(U))return U.clone();var D=typeof N=="object"?N:{};return D.date=U,D.args=arguments,new z(D)},I=T;I.l=q,I.i=$,I.w=function(U,N){return R(U,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var z=(function(){function U(D){this.$L=q(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[M]=!0}var N=U.prototype;return N.parse=function(D){this.$d=(function(L){var H=L.date,Y=L.utc;if(H===null)return new Date(NaN);if(I.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var P=H.match(k);if(P){var G=P[2]-1||0,V=(P[7]||"0").substring(0,3);return Y?new Date(Date.UTC(P[1],G,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)):new Date(P[1],G,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)}}return new Date(H)})(D),this.init()},N.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},N.$utils=function(){return I},N.isValid=function(){return this.$d.toString()!==w},N.isSame=function(D,L){var H=R(D);return this.startOf(L)<=H&&H<=this.endOf(L)},N.isAfter=function(D,L){return R(D)Be(o).locale(t).format(i);return e==="default"?n===null?"":a(n):e==="multiple"?n.map(a).join(", "):e==="range"&&Array.isArray(n)?n[0]&&n[1]?`${a(n[0])} ${r} ${a(n[1])}`:n[0]?`${a(n[0])} ${r} `:"":""}function rse({formatter:e,...n}){return(e||ise)(n)}function ase({direction:e,levelIndex:n,rowIndex:t,cellIndex:i,size:r}){switch(e){case"up":return n===0&&t===0?null:t===0?{levelIndex:n-1,rowIndex:i<=r[n-1][r[n-1].length-1]-1?r[n-1].length-1:r[n-1].length-2,cellIndex:i}:{levelIndex:n,rowIndex:t-1,cellIndex:i};case"down":return t===r[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:i}:t===r[n].length-2&&i>=r[n][r[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:i}:{levelIndex:n,rowIndex:t+1,cellIndex:i};case"left":return n===0&&t===0&&i===0?null:t===0&&i===0?{levelIndex:n-1,rowIndex:r[n-1].length-1,cellIndex:r[n-1][r[n-1].length-1]-1}:i===0?{levelIndex:n,rowIndex:t-1,cellIndex:r[n][t-1]-1}:{levelIndex:n,rowIndex:t,cellIndex:i-1};case"right":return t===r[n].length-1&&i===r[n][t]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:i===r[n][t]-1?{levelIndex:n,rowIndex:t+1,cellIndex:0}:{levelIndex:n,rowIndex:t,cellIndex:i+1};default:return{levelIndex:n,rowIndex:t,cellIndex:i}}}function yq({controlsRef:e,direction:n,levelIndex:t,rowIndex:i,cellIndex:r,size:a}){var u,f,h;const o=ase({direction:n,size:a,rowIndex:i,cellIndex:r,levelIndex:t});if(!o)return;const l=(h=(f=(u=e.current)==null?void 0:u[o.levelIndex])==null?void 0:f[o.rowIndex])==null?void 0:h[o.cellIndex];l&&(l.disabled||l.getAttribute("data-hidden")||l.getAttribute("data-outside")?yq({controlsRef:e,direction:n,levelIndex:o.levelIndex,cellIndex:o.cellIndex,rowIndex:o.rowIndex,size:a}):l.focus())}function ose(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function sse(e){var n;return(n=e.current)==null?void 0:n.map(t=>t.map(i=>i.length))}function A9({controlsRef:e,levelIndex:n,rowIndex:t,cellIndex:i,event:r}){const a=ose(r.key);a&&(r.preventDefault(),yq({controlsRef:e,direction:a,levelIndex:n,rowIndex:t,cellIndex:i,size:sse(e)}))}function Ji(e){return e==null||e===""?e:Be(e).format("YYYY-MM-DD")}function bq(e){return e==null||e===""?e:Be(e).format("YYYY-MM-DD HH:mm:ss")}function i4({minDate:e,maxDate:n}){const t=Be();return!e&&!n?Ji(t):e&&Be(t).isBefore(e)?Ji(e):n&&Be(t).isAfter(n)?Ji(n):Ji(t)}const lse={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},use=S.createContext(lse);function Ml(){const e=S.use(use),n=S.useCallback(a=>a||e.locale,[e.locale]),t=S.useCallback(a=>typeof a=="number"?a:e.firstDayOfWeek,[e.firstDayOfWeek]),i=S.useCallback(a=>Array.isArray(a)?a:e.weekendDays,[e.weekendDays]),r=S.useCallback(a=>typeof a=="string"?a:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:n,getFirstDayOfWeek:t,getWeekendDays:i,getLabelSeparator:r}}function cse({value:e,type:n,withTime:t}){const i=t?bq:Ji;if(n==="range"&&Array.isArray(e)){const r=i(e[0]),a=i(e[1]);return r?a?`${r} – ${a}`:`${r} –`:""}return n==="multiple"&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?i(e):""}function wq({value:e,type:n,name:t,form:i,withTime:r=!1}){return v.jsx("input",{type:"hidden",value:cse({value:e,type:n,withTime:r}),name:t,form:i})}wq.displayName="@mantine/dates/HiddenDatesInput";var kq={day:"m_396ce5cb"};const _q=(e,{size:n})=>({day:{"--day-size":In(n,"day-size")}}),x0=Pe(e=>{const n=ye("Day",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,date:u,disabled:f,__staticSelector:h,weekend:d,outside:p,selected:g,renderDay:b,inRange:w,firstInRange:k,lastInRange:_,hidden:x,static:C,highlightToday:T,fullWidth:A,attributes:O,...M}=n;return v.jsx(Mt,{...Ze({name:h||"Day",classes:kq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:O,vars:l,varsResolver:_q,rootSelector:"day"})("day",{style:x?{display:"none"}:void 0}),component:C?"div":"button",disabled:f,"data-today":Be(u).isSame(new Date,"day")||void 0,"data-hidden":x||void 0,"data-highlight-today":T||void 0,"data-disabled":f||void 0,"data-weekend":!f&&!p&&d||void 0,"data-outside":!f&&p||void 0,"data-selected":!f&&g||void 0,"data-in-range":w&&!f||void 0,"data-first-in-range":k&&!f||void 0,"data-last-in-range":_&&!f||void 0,"data-static":C||void 0,"data-full-width":A||void 0,unstyled:o,...M,children:(b==null?void 0:b(u))||Be(u).date()})});x0.classes=kq;x0.varsResolver=_q;x0.displayName="@mantine/dates/Day";function fse({locale:e,format:n="dd",firstDayOfWeek:t=1}){const i=Be().day(t),r=[];for(let a=0;a<7;a+=1)typeof n=="string"?r.push(Be(i).add(a,"days").locale(e).format(n)):r.push(n(Be(i).add(a,"days").format("YYYY-MM-DD")));return r}var xq={weekday:"m_18a3eca"};const Sq=(e,{size:n})=>({weekdaysRow:{"--wr-fz":ai(n),"--wr-spacing":Kt(n)}}),S0=Pe(e=>{const n=ye("WeekdaysRow",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,locale:u,firstDayOfWeek:f,weekdayFormat:h,cellComponent:d="th",__staticSelector:p,withWeekNumbers:g,attributes:b,...w}=n,k=Ze({name:p||"WeekdaysRow",classes:xq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:l,varsResolver:Sq,rootSelector:"weekdaysRow"}),_=Ml(),x=fse({locale:_.getLocale(u),format:h,firstDayOfWeek:_.getFirstDayOfWeek(f)}).map((C,T)=>v.jsx(d,{...k("weekday"),children:C},T));return v.jsxs(de,{component:"tr",...k("weekdaysRow"),...w,children:[g&&v.jsx(d,{...k("weekday"),children:"#"}),x]})});S0.classes=xq;S0.varsResolver=Sq;S0.displayName="@mantine/dates/WeekdaysRow";function dse(e,n=1){let t=Be(e);if(!t.isValid())return t;const i=n===0?6:n-1;for(;t.day()!==i;)t=t.add(1,"day");return t.format("YYYY-MM-DD")}function hse(e,n=1){let t=Be(e);for(;t.day()!==n;)t=t.subtract(1,"day");return t.format("YYYY-MM-DD")}function mse({month:e,firstDayOfWeek:n=1,consistentWeeks:t}){const i=Be(Be(e).subtract(Be(e).date()-1,"day").format("YYYY-M-D")),r=i.format("YYYY-MM-DD"),a=dse(i.add(+i.daysInMonth()-1,"day").format("YYYY-MM-DD"),n),o=[];let l=Be(hse(r,n));for(;Be(l).isBefore(a,"day");){const u=[];for(let f=0;f<7;f+=1)u.push(l.format("YYYY-MM-DD")),l=l.add(1,"day");o.push(u)}if(t&&o.length<6){const u=o[o.length-1],f=u[u.length-1];let h=Be(f).add(1,"day");for(;o.length<6;){const d=[];for(let p=0;p<7;p+=1)d.push(h.format("YYYY-MM-DD")),h=h.add(1,"day");o.push(d)}}return o}function O9(e,n){return Be(e).format("YYYY-MM")===Be(n).format("YYYY-MM")}function Cq(e,n){return n?Be(e).isAfter(Be(n).subtract(1,"day"),"day"):!0}function jq(e,n){return n?Be(e).isBefore(Be(n).add(1,"day"),"day"):!0}function pse({dates:e,minDate:n,maxDate:t,getDayProps:i,excludeDate:r,hideOutsideDates:a,month:o}){const l=e.flat().filter(h=>{var d;return jq(h,t)&&Cq(h,n)&&!(r!=null&&r(h))&&!((d=i==null?void 0:i(h))!=null&&d.disabled)&&(!a||O9(h,o))}),u=l.find(h=>{var d;return(d=i==null?void 0:i(h))==null?void 0:d.selected});if(u)return u;const f=l.find(h=>Be().isSame(h,"date"));return f||l[0]}var Fg={exports:{}},vse=Fg.exports,EM;function gse(){return EM||(EM=1,(function(e,n){(function(t,i){e.exports=i()})(vse,(function(){var t="day";return function(i,r,a){var o=function(f){return f.add(4-f.isoWeekday(),t)},l=r.prototype;l.isoWeekYear=function(){return o(this).year()},l.isoWeek=function(f){if(!this.$utils().u(f))return this.add(7*(f-this.isoWeek()),t);var h,d,p,g,b=o(this),w=(h=this.isoWeekYear(),d=this.$u,p=(d?a.utc:a)().year(h).startOf("year"),g=4-p.isoWeekday(),p.isoWeekday()>4&&(g+=7),p.add(g,t));return b.diff(w,"week")+1},l.isoWeekday=function(f){return this.$utils().u(f)?this.day()||7:this.day(this.day()%7?f:f-7)};var u=l.startOf;l.startOf=function(f,h){var d=this.$utils(),p=!!d.u(h)||h;return d.p(f)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(f,h)}}}))})(Fg)),Fg.exports}var yse=gse();const bse=yt(yse);Be.extend(bse);function wse(e){return Be(e.find(n=>Be(n).day()===1)).isoWeek()}var Aq={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const kse={withCellSpacing:!0},Oq=(e,{size:n})=>({weekNumber:{"--wn-fz":ai(n),"--wn-size":In(n,"wn-size")}}),Sp=Pe(e=>{const n=ye("Month",kse,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,locale:f,firstDayOfWeek:h,weekdayFormat:d,month:p,weekendDays:g,getDayProps:b,excludeDate:w,minDate:k,maxDate:_,renderDay:x,hideOutsideDates:C,hideWeekdays:T,getDayAriaLabel:A,static:O,__getDayRef:M,__onDayKeyDown:$,__onDayClick:q,__onDayMouseEnter:R,__preventFocus:I,__stopPropagation:z,withCellSpacing:W,size:U,highlightToday:N,withWeekNumbers:D,fullWidth:L,attributes:H,...Y}=n,P=Ze({name:u||"Month",classes:Aq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:H,vars:l,varsResolver:Oq,rootSelector:"month"}),G=Ml(),V=mse({month:p,firstDayOfWeek:G.getFirstDayOfWeek(h),consistentWeeks:G.consistentWeeks}),B=pse({dates:V,minDate:Ji(k),maxDate:Ji(_),getDayProps:b,excludeDate:w,hideOutsideDates:C,month:p}),{resolvedClassNames:Q,resolvedStyles:ie}=Wi({classNames:t,styles:a,props:n}),re=V.map((Z,le)=>{const ee=Z.map((se,ke)=>{const te=!O9(se,p),$e=(A==null?void 0:A(se))||Be(se).locale(f||G.locale).format("D MMMM YYYY"),xe=b==null?void 0:b(se),Oe=Be(se).isSame(B,"date");return v.jsx("td",{...P("monthCell"),"data-with-spacing":W||void 0,children:v.jsx(x0,{__staticSelector:u||"Month",classNames:Q,styles:ie,attributes:H,unstyled:o,"data-mantine-stop-propagation":z||void 0,highlightToday:N,renderDay:x,date:se,size:U,weekend:G.getWeekendDays(g).includes(Be(se).get("day")),outside:te,hidden:C?te:!1,"aria-label":$e,static:O,fullWidth:L,disabled:(w==null?void 0:w(se))||!jq(se,Ji(_))||!Cq(se,Ji(k)),ref:ze=>{ze&&(M==null||M(le,ke,ze))},...xe,onKeyDown:ze=>{var we;(we=xe==null?void 0:xe.onKeyDown)==null||we.call(xe,ze),$==null||$(ze,{rowIndex:le,cellIndex:ke,date:se})},onMouseEnter:ze=>{var we;(we=xe==null?void 0:xe.onMouseEnter)==null||we.call(xe,ze),R==null||R(ze,se)},onClick:ze=>{var we;(we=xe==null?void 0:xe.onClick)==null||we.call(xe,ze),q==null||q(ze,se)},onMouseDown:ze=>{var we;(we=xe==null?void 0:xe.onMouseDown)==null||we.call(xe,ze),I&&ze.preventDefault()},tabIndex:I||!Oe?-1:0})},se.toString())});return v.jsxs("tr",{...P("monthRow"),children:[D&&v.jsx("td",{...P("weekNumber"),children:wse(Z)}),ee]},le)});return v.jsxs(de,{component:"table",...P("month"),size:U,"data-full-width":L||void 0,...Y,children:[!T&&v.jsx("thead",{...P("monthThead"),children:v.jsx(S0,{__staticSelector:u||"Month",locale:f,firstDayOfWeek:h,weekdayFormat:d,withWeekNumbers:D,size:U,classNames:Q,styles:ie,unstyled:o,attributes:H})}),v.jsx("tbody",{...P("monthTbody"),children:re})]})});Sp.classes=Aq;Sp.varsResolver=Oq;Sp.displayName="@mantine/dates/Month";var Tq={pickerControl:"m_dc6a3c71"};const Eq=(e,{size:n})=>({pickerControl:{"--dpc-fz":ai(n),"--dpc-size":In(n,"dpc-size")}}),Cp=Pe(e=>{const n=ye("PickerControl",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,firstInRange:u,lastInRange:f,inRange:h,__staticSelector:d,selected:p,disabled:g,fullWidth:b,attributes:w,...k}=n;return v.jsx(Mt,{...Ze({name:d||"PickerControl",classes:Tq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l,varsResolver:Eq,rootSelector:"pickerControl"})("pickerControl"),unstyled:o,"data-picker-control":!0,"data-full-width":b||void 0,"data-selected":p&&!g||void 0,"data-disabled":g||void 0,"data-in-range":h&&!g&&!p||void 0,"data-first-in-range":u&&!g||void 0,"data-last-in-range":f&&!g||void 0,disabled:g,...k})});Cp.classes=Tq;Cp.varsResolver=Eq;Cp.displayName="@mantine/dates/PickerControl";function Mq({year:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&Be(e).isBefore(n,"year")||t&&Be(e).isAfter(t,"year"))}function _se({years:e,minDate:n,maxDate:t,getYearControlProps:i}){const r=e.flat().filter(l=>{var u;return!Mq({year:l,minDate:n,maxDate:t})&&!((u=i==null?void 0:i(l))!=null&&u.disabled)}),a=r.find(l=>{var u;return(u=i==null?void 0:i(l))==null?void 0:u.selected});if(a)return a;const o=r.find(l=>Be().isSame(l,"year"));return o||r[0]}function Dq(e){const n=Be(e).year(),t=n-n%10;let i=0;const r=[[],[],[],[]];for(let a=0;a<4;a+=1){const o=a===3?1:3;for(let l=0;l{const n=ye("YearsList",xse,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,decade:u,yearsListFormat:f,locale:h,minDate:d,maxDate:p,getYearControlProps:g,__staticSelector:b,__getControlRef:w,__onControlKeyDown:k,__onControlClick:_,__onControlMouseEnter:x,__preventFocus:C,__stopPropagation:T,withCellSpacing:A,fullWidth:O,size:M,attributes:$,...q}=n,R=Ze({name:b||"YearsList",classes:Rq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:$,vars:l,rootSelector:"yearsList"}),I=Ml(),z=Dq(u),W=_se({years:z,minDate:d,maxDate:p,getYearControlProps:g}),U=z.map((N,D)=>{const L=N.map((H,Y)=>{const P=g==null?void 0:g(H),G=Be(H).isSame(W,"year");return v.jsx("td",{...R("yearsListCell"),"data-with-spacing":A||void 0,children:v.jsx(Cp,{...R("yearsListControl"),size:M,unstyled:o,fullWidth:O,"data-mantine-stop-propagation":T||void 0,disabled:Mq({year:H,minDate:d,maxDate:p}),ref:V=>{V&&(w==null||w(D,Y,V))},...P,onKeyDown:V=>{var B;(B=P==null?void 0:P.onKeyDown)==null||B.call(P,V),k==null||k(V,{rowIndex:D,cellIndex:Y,date:H})},onClick:V=>{var B;(B=P==null?void 0:P.onClick)==null||B.call(P,V),_==null||_(V,H)},onMouseEnter:V=>{var B;(B=P==null?void 0:P.onMouseEnter)==null||B.call(P,V),x==null||x(V,H)},onMouseDown:V=>{var B;(B=P==null?void 0:P.onMouseDown)==null||B.call(P,V),C&&V.preventDefault()},tabIndex:C||!G?-1:0,children:(P==null?void 0:P.children)??Be(H).locale(I.getLocale(h)).format(f)})},Y)});return v.jsx("tr",{...R("yearsListRow"),children:L},D)});return v.jsx(de,{component:"table",size:M,...R("yearsList"),"data-full-width":O||void 0,...q,children:v.jsx("tbody",{children:U})})});C0.classes=Rq;C0.displayName="@mantine/dates/YearsList";function Pq({month:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&Be(e).isBefore(n,"month")||t&&Be(e).isAfter(t,"month"))}function Sse({months:e,minDate:n,maxDate:t,getMonthControlProps:i}){const r=e.flat().filter(l=>{var u;return!Pq({month:l,minDate:n,maxDate:t})&&!((u=i==null?void 0:i(l))!=null&&u.disabled)}),a=r.find(l=>{var u;return(u=i==null?void 0:i(l))==null?void 0:u.selected});if(a)return a;const o=r.find(l=>Be().isSame(l,"month"));return o||r[0]}function Cse(e){const n=Be(e).startOf("year").toDate(),t=[[],[],[],[]];let i=0;for(let r=0;r<4;r+=1)for(let a=0;a<3;a+=1)t[r].push(Be(n).add(i,"months").format("YYYY-MM-DD")),i+=1;return t}var Nq={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const jse={monthsListFormat:"MMM",withCellSpacing:!0},j0=Pe(e=>{const n=ye("MonthsList",jse,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,year:f,monthsListFormat:h,locale:d,minDate:p,maxDate:g,getMonthControlProps:b,__getControlRef:w,__onControlKeyDown:k,__onControlClick:_,__onControlMouseEnter:x,__preventFocus:C,__stopPropagation:T,withCellSpacing:A,fullWidth:O,size:M,attributes:$,...q}=n,R=Ze({name:u||"MonthsList",classes:Nq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:$,vars:l,rootSelector:"monthsList"}),I=Ml(),z=Cse(f),W=Sse({months:z,minDate:Ji(p),maxDate:Ji(g),getMonthControlProps:b}),U=z.map((N,D)=>{const L=N.map((H,Y)=>{const P=b==null?void 0:b(H),G=Be(H).isSame(W,"month");return v.jsx("td",{...R("monthsListCell"),"data-with-spacing":A||void 0,children:v.jsx(Cp,{...R("monthsListControl"),size:M,unstyled:o,fullWidth:O,__staticSelector:u||"MonthsList","data-mantine-stop-propagation":T||void 0,disabled:Pq({month:H,minDate:Ji(p),maxDate:Ji(g)}),ref:V=>{V&&(w==null||w(D,Y,V))},...P,onKeyDown:V=>{var B;(B=P==null?void 0:P.onKeyDown)==null||B.call(P,V),k==null||k(V,{rowIndex:D,cellIndex:Y,date:H})},onClick:V=>{var B;(B=P==null?void 0:P.onClick)==null||B.call(P,V),_==null||_(V,H)},onMouseEnter:V=>{var B;(B=P==null?void 0:P.onMouseEnter)==null||B.call(P,V),x==null||x(V,H)},onMouseDown:V=>{var B;(B=P==null?void 0:P.onMouseDown)==null||B.call(P,V),C&&V.preventDefault()},tabIndex:C||!G?-1:0,children:(P==null?void 0:P.children)??Be(H).locale(I.getLocale(d)).format(h)})},Y)});return v.jsx("tr",{...R("monthsListRow"),children:L},D)});return v.jsx(de,{component:"table",size:M,...R("monthsList"),"data-full-width":O||void 0,...q,children:v.jsx("tbody",{children:U})})});j0.classes=Nq;j0.displayName="@mantine/dates/MonthsList";var $q={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Ase={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},zq=(e,{size:n})=>({calendarHeader:{"--dch-control-size":In(n,"dch-control-size"),"--dch-fz":ai(n)}}),ws=Pe(e=>{const n=ye("CalendarHeader",Ase,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,nextIcon:u,previousIcon:f,nextLabel:h,previousLabel:d,onNext:p,onPrevious:g,onLevelClick:b,label:w,nextDisabled:k,previousDisabled:_,hasNextLevel:x,levelControlAriaLabel:C,withNext:T,withPrevious:A,headerControlsOrder:O,fullWidth:M,__staticSelector:$,__preventFocus:q,__stopPropagation:R,attributes:I,...z}=n,W=Ze({name:$||"CalendarHeader",classes:$q,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:I,vars:l,varsResolver:zq,rootSelector:"calendarHeader"}),U=q?Y=>Y.preventDefault():void 0,N=A&&S.createElement(Mt,{...W("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":d,onClick:g,unstyled:o,onMouseDown:U,disabled:_,"data-disabled":_||void 0,tabIndex:q||_?-1:0,"data-mantine-stop-propagation":R||void 0},f||v.jsx(e1,{...W("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),D=S.createElement(Mt,{component:x?"button":"div",...W("calendarHeaderLevel"),key:"level",onClick:x?b:void 0,unstyled:o,onMouseDown:x?U:void 0,disabled:!x,"data-static":!x||void 0,"aria-label":C,tabIndex:q||!x?-1:0,"data-mantine-stop-propagation":R||void 0},w),L=T&&S.createElement(Mt,{...W("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":h,onClick:p,unstyled:o,onMouseDown:U,disabled:k,"data-disabled":k||void 0,tabIndex:q||k?-1:0,"data-mantine-stop-propagation":R||void 0},u||v.jsx(e1,{...W("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),H=O.map(Y=>Y==="previous"?N:Y==="level"?D:Y==="next"?L:null);return v.jsx(de,{...W("calendarHeader"),"data-full-width":M||void 0,...z,children:H})});ws.classes=$q;ws.varsResolver=zq;ws.displayName="@mantine/dates/CalendarHeader";function Ose(e){const n=Dq(e);return[n[0][0],n[3][0]]}const Tse={decadeLabelFormat:"YYYY"},A0=Pe(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:x,nextDisabled:C,previousDisabled:T,levelControlAriaLabel:A,withNext:O,withPrevious:M,headerControlsOrder:$,decadeLabelFormat:q,classNames:R,styles:I,unstyled:z,__staticSelector:W,__stopPropagation:U,size:N,fullWidth:D,attributes:L,...H}=ye("DecadeLevel",Tse,e),Y=Ml(),[P,G]=Ose(n),V={__staticSelector:W||"DecadeLevel",classNames:R,styles:I,unstyled:z,size:N,attributes:L},B=typeof C=="boolean"?C:r?!Be(G).endOf("year").isBefore(r):!1,Q=typeof T=="boolean"?T:i?!Be(P).startOf("year").isAfter(i):!1,ie=(re,Z)=>Be(re).locale(t||Y.locale).format(Z);return v.jsxs(de,{"data-decade-level":!0,size:N,...H,children:[v.jsx(ws,{label:typeof q=="function"?q(P,G):`${ie(P,q)} – ${ie(G,q)}`,__preventFocus:p,__stopPropagation:U,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:x,nextDisabled:B,previousDisabled:Q,hasNextLevel:!1,levelControlAriaLabel:A,withNext:O,withPrevious:M,headerControlsOrder:$,fullWidth:D,...V}),v.jsx(C0,{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:U,withCellSpacing:d,fullWidth:D,...V})]})});A0.classes={...C0.classes,...ws.classes};A0.displayName="@mantine/dates/DecadeLevel";const Ese={yearLabelFormat:"YYYY"},O0=Pe(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:x,onLevelClick:C,nextDisabled:T,previousDisabled:A,hasNextLevel:O,levelControlAriaLabel:M,withNext:$,withPrevious:q,headerControlsOrder:R,yearLabelFormat:I,__staticSelector:z,__stopPropagation:W,size:U,classNames:N,styles:D,unstyled:L,fullWidth:H,attributes:Y,...P}=ye("YearLevel",Ese,e),G=Ml(),V={__staticSelector:z||"YearLevel",classNames:N,styles:D,unstyled:L,size:U,attributes:Y},B=typeof T=="boolean"?T:r?!Be(n).endOf("year").isBefore(r):!1,Q=typeof A=="boolean"?A:i?!Be(n).startOf("year").isAfter(i):!1;return v.jsxs(de,{"data-year-level":!0,size:U,...P,children:[v.jsx(ws,{label:typeof I=="function"?I(n):Be(n).locale(t||G.locale).format(I),__preventFocus:p,__stopPropagation:W,nextIcon:g,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:x,onLevelClick:C,nextDisabled:B,previousDisabled:Q,hasNextLevel:O,levelControlAriaLabel:M,withNext:$,withPrevious:q,headerControlsOrder:R,fullWidth:H,...V}),v.jsx(j0,{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:u,__onControlClick:f,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:W,withCellSpacing:d,fullWidth:H,...V})]})});O0.classes={...ws.classes,...j0.classes};O0.displayName="@mantine/dates/YearLevel";const Mse={monthLabelFormat:"MMMM YYYY"},T0=Pe(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__getDayRef:b,__onDayKeyDown:w,__onDayClick:k,__onDayMouseEnter:_,withCellSpacing:x,highlightToday:C,withWeekNumbers:T,__preventFocus:A,__stopPropagation:O,nextIcon:M,previousIcon:$,nextLabel:q,previousLabel:R,onNext:I,onPrevious:z,onLevelClick:W,nextDisabled:U,previousDisabled:N,hasNextLevel:D,levelControlAriaLabel:L,withNext:H,withPrevious:Y,headerControlsOrder:P,monthLabelFormat:G,classNames:V,styles:B,unstyled:Q,__staticSelector:ie,size:re,static:Z,fullWidth:le,attributes:ee,...se}=ye("MonthLevel",Mse,e),ke=Ml(),te={__staticSelector:ie||"MonthLevel",classNames:V,styles:B,unstyled:Q,size:re,attributes:ee},$e=typeof U=="boolean"?U:f?!Be(n).endOf("month").isBefore(f):!1,xe=typeof N=="boolean"?N:u?!Be(n).startOf("month").isAfter(u):!1;return v.jsxs(de,{"data-month-level":!0,size:re,...se,children:[v.jsx(ws,{label:typeof G=="function"?G(n):Be(n).locale(t||ke.locale).format(G),__preventFocus:A,__stopPropagation:O,nextIcon:M,previousIcon:$,nextLabel:q,previousLabel:R,onNext:I,onPrevious:z,onLevelClick:W,nextDisabled:$e,previousDisabled:xe,hasNextLevel:D,levelControlAriaLabel:L,withNext:H,withPrevious:Y,headerControlsOrder:P,fullWidth:le,...te}),v.jsx(Sp,{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__getDayRef:b,__onDayKeyDown:w,__onDayClick:k,__onDayMouseEnter:_,__preventFocus:A,__stopPropagation:O,static:Z,withCellSpacing:x,highlightToday:C,withWeekNumbers:T,fullWidth:le,...te})]})});T0.classes={...Sp.classes,...ws.classes};T0.displayName="@mantine/dates/MonthLevel";var Lq={levelsGroup:"m_30b26e33"};const Dl=Pe(e=>{const n=ye("LevelsGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:u,fullWidth:f,attributes:h,...d}=n;return v.jsx(de,{...Ze({name:u||"LevelsGroup",classes:Lq,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,rootSelector:"levelsGroup"})("levelsGroup"),"data-full-width":f||void 0,...d})});Dl.classes=Lq;Dl.displayName="@mantine/dates/LevelsGroup";const Dse={numberOfColumns:1},E0=Pe(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:f,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,nextDisabled:_,previousDisabled:x,headerControlsOrder:C,classNames:T,styles:A,unstyled:O,__staticSelector:M,__stopPropagation:$,numberOfColumns:q,levelControlAriaLabel:R,decadeLabelFormat:I,size:z,fullWidth:W,vars:U,attributes:N,...D}=ye("DecadeLevelGroup",Dse,e),L=S.useRef([]),H=Array(q).fill(0).map((Y,P)=>{const G=Be(n).add(P*10,"years").format("YYYY-MM-DD");return v.jsx(A0,{size:z,yearsListFormat:a,decade:G,withNext:P===q-1,withPrevious:P===0,decadeLabelFormat:I,__onControlClick:l,__onControlMouseEnter:u,__onControlKeyDown:(V,B)=>A9({levelIndex:P,rowIndex:B.rowIndex,cellIndex:B.cellIndex,event:V,controlsRef:L}),__getControlRef:(V,B,Q)=>{Array.isArray(L.current[P])||(L.current[P]=[]),Array.isArray(L.current[P][V])||(L.current[P][V]=[]),L.current[P][V][B]=Q},levelControlAriaLabel:typeof R=="function"?R(G):R,locale:t,minDate:i,maxDate:r,__preventFocus:h,__stopPropagation:$,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,nextDisabled:_,previousDisabled:x,getYearControlProps:o,__staticSelector:M||"DecadeLevelGroup",classNames:T,styles:A,unstyled:O,withCellSpacing:f,headerControlsOrder:C,fullWidth:W,attributes:N},P)});return v.jsx(Dl,{classNames:T,styles:A,__staticSelector:M||"DecadeLevelGroup",size:z,unstyled:O,fullWidth:W,attributes:N,...D,children:H})});E0.classes={...Dl.classes,...A0.classes};E0.displayName="@mantine/dates/DecadeLevelGroup";const Rse={numberOfColumns:1},M0=Pe(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:f,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,onLevelClick:_,nextDisabled:x,previousDisabled:C,hasNextLevel:T,headerControlsOrder:A,classNames:O,styles:M,unstyled:$,__staticSelector:q,__stopPropagation:R,numberOfColumns:I,levelControlAriaLabel:z,yearLabelFormat:W,size:U,fullWidth:N,vars:D,attributes:L,...H}=ye("YearLevelGroup",Rse,e),Y=S.useRef([]),P=Array(I).fill(0).map((G,V)=>{const B=Be(n).add(V,"years").format("YYYY-MM-DD");return v.jsx(O0,{size:U,monthsListFormat:a,year:B,withNext:V===I-1,withPrevious:V===0,yearLabelFormat:W,__stopPropagation:R,__onControlClick:l,__onControlMouseEnter:u,__onControlKeyDown:(Q,ie)=>A9({levelIndex:V,rowIndex:ie.rowIndex,cellIndex:ie.cellIndex,event:Q,controlsRef:Y}),__getControlRef:(Q,ie,re)=>{Array.isArray(Y.current[V])||(Y.current[V]=[]),Array.isArray(Y.current[V][Q])||(Y.current[V][Q]=[]),Y.current[V][Q][ie]=re},levelControlAriaLabel:typeof z=="function"?z(B):z,locale:t,minDate:i,maxDate:r,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:g,previousLabel:b,onNext:w,onPrevious:k,onLevelClick:_,nextDisabled:x,previousDisabled:C,hasNextLevel:T,getMonthControlProps:o,classNames:O,styles:M,unstyled:$,__staticSelector:q||"YearLevelGroup",withCellSpacing:f,headerControlsOrder:A,fullWidth:N,attributes:L},V)});return v.jsx(Dl,{classNames:O,styles:M,__staticSelector:q||"YearLevelGroup",size:U,unstyled:$,fullWidth:N,attributes:L,...H,children:P})});M0.classes={...O0.classes,...Dl.classes};M0.displayName="@mantine/dates/YearLevelGroup";const Pse={numberOfColumns:1},D0=Pe(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__onDayClick:b,__onDayMouseEnter:w,withCellSpacing:k,highlightToday:_,withWeekNumbers:x,__preventFocus:C,nextIcon:T,previousIcon:A,nextLabel:O,previousLabel:M,onNext:$,onPrevious:q,onLevelClick:R,nextDisabled:I,previousDisabled:z,hasNextLevel:W,headerControlsOrder:U,classNames:N,styles:D,unstyled:L,numberOfColumns:H,levelControlAriaLabel:Y,monthLabelFormat:P,__staticSelector:G,__stopPropagation:V,size:B,static:Q,fullWidth:ie,vars:re,attributes:Z,...le}=ye("MonthLevelGroup",Pse,e),ee=S.useRef([]),se=Array(H).fill(0).map((ke,te)=>{const $e=Be(n).add(te,"months").format("YYYY-MM-DD");return v.jsx(T0,{month:$e,withNext:te===H-1,withPrevious:te===0,monthLabelFormat:P,__stopPropagation:V,__onDayClick:b,__onDayMouseEnter:w,__onDayKeyDown:(xe,Oe)=>A9({levelIndex:te,rowIndex:Oe.rowIndex,cellIndex:Oe.cellIndex,event:xe,controlsRef:ee}),__getDayRef:(xe,Oe,ze)=>{Array.isArray(ee.current[te])||(ee.current[te]=[]),Array.isArray(ee.current[te][xe])||(ee.current[te][xe]=[]),ee.current[te][xe][Oe]=ze},levelControlAriaLabel:typeof Y=="function"?Y($e):Y,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:u,maxDate:f,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:g,__preventFocus:C,nextIcon:T,previousIcon:A,nextLabel:O,previousLabel:M,onNext:$,onPrevious:q,onLevelClick:R,nextDisabled:I,previousDisabled:z,hasNextLevel:W,classNames:N,styles:D,unstyled:L,__staticSelector:G||"MonthLevelGroup",size:B,static:Q,withCellSpacing:k,highlightToday:_,withWeekNumbers:x,headerControlsOrder:U,fullWidth:ie,attributes:Z},te)});return v.jsx(Dl,{classNames:N,styles:D,__staticSelector:G||"MonthLevelGroup",size:B,fullWidth:ie,attributes:Z,...le,children:se})});D0.classes={...Dl.classes,...T0.classes};D0.displayName="@mantine/dates/MonthLevelGroup";var Iq={input:"m_6fa5e2aa"};const id=Pe(e=>{const{inputProps:n,wrapperProps:t,placeholder:i,classNames:r,styles:a,unstyled:o,popoverProps:l,modalProps:u,dropdownType:f,children:h,formattedValue:d,dropdownHandlers:p,dropdownOpened:g,onClick:b,clearable:w,clearSectionMode:k,onClear:_,clearButtonProps:x,rightSection:C,shouldClear:T,readOnly:A,disabled:O,value:M,name:$,form:q,type:R,onDropdownClose:I,withTime:z,...W}=zI("PickerInputBase",{size:"sm"},e),U=v.jsx(Zt.ClearButton,{onClick:_,unstyled:o,...x}),N=()=>{R==="range"&&Array.isArray(M)&&M[0]&&!M[1]&&_(),p.close()};return v.jsxs(v.Fragment,{children:[f==="modal"&&!A&&v.jsx(Gi,{opened:g,onClose:N,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:o,...u,children:h}),v.jsx(Zt.Wrapper,{...t,children:v.jsxs(Sn,{position:"bottom-start",opened:g,trapFocus:!0,returnFocus:!1,unstyled:o,onClose:I,...l,disabled:(l==null?void 0:l.disabled)||f==="modal"||A,onChange:D=>{var L;D||((L=l==null?void 0:l.onClose)==null||L.call(l),N())},children:[v.jsx(Sn.Target,{children:v.jsx(Zt,{"data-dates-input":!0,"data-read-only":A||void 0,disabled:O,component:"button",type:"button",multiline:!0,onClick:D=>{b==null||b(D),p.toggle()},__clearSection:U,__clearable:w&&T&&!A&&!O,__clearSectionMode:k,rightSection:C,...n,classNames:{...r,input:vn(Iq.input,r==null?void 0:r.input)},...W,children:d||v.jsx(Zt.Placeholder,{error:n.error,unstyled:o,classNames:r,styles:a,__staticSelector:n.__staticSelector,children:i})})}),v.jsx(Sn.Dropdown,{"data-dates-dropdown":!0,children:h})]})}),v.jsx(wq,{value:M,name:$,form:q,type:R,withTime:z})]})});id.classes=Iq;id.displayName="@mantine/dates/PickerInputBase";const MM=e=>e==="range"?[null,null]:e==="multiple"?[]:null,DM=(e,n)=>{const t=n?bq:Ji;return Array.isArray(e)?e.map(t):t(e)};function T9({type:e,value:n,defaultValue:t,onChange:i,withTime:r=!1}){const a=S.useRef(e),[o,l,u]=Ai({value:DM(n,r),defaultValue:DM(t,r),finalValue:MM(e),onChange:i});let f=o;return a.current!==e&&(a.current=e,n===void 0&&(f=t!==void 0?t:MM(e),l(f))),[f,l,u]}function i_(e,n){return e?e==="month"?0:e==="year"?1:2:n||0}function Nse(e){return e===0?"month":e===1?"year":"decade"}function kh(e,n,t){return Nse(Jo(i_(e,0),i_(n,0),i_(t,2)))}const $se={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},rd=Pe(e=>{const n=ye("Calendar",$se,e),{vars:t,maxLevel:i,minLevel:r,defaultLevel:a,level:o,onLevelChange:l,date:u,defaultDate:f,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:g,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:x,onMonthMouseEnter:C,headerControlsOrder:T,__updateDateOnYearSelect:A,__updateDateOnMonthSelect:O,__setDateRef:M,__setLevelRef:$,firstDayOfWeek:q,weekdayFormat:R,weekendDays:I,getDayProps:z,excludeDate:W,renderDay:U,hideOutsideDates:N,hideWeekdays:D,getDayAriaLabel:L,monthLabelFormat:H,nextIcon:Y,previousIcon:P,__onDayClick:G,__onDayMouseEnter:V,withCellSpacing:B,highlightToday:Q,withWeekNumbers:ie,monthsListFormat:re,getMonthControlProps:Z,yearLabelFormat:le,yearsListFormat:ee,getYearControlProps:se,decadeLabelFormat:ke,classNames:te,styles:$e,unstyled:xe,minDate:Oe,maxDate:ze,locale:we,__staticSelector:Ce,size:Ne,__preventFocus:he,__stopPropagation:He,onNextDecade:Ye,onPreviousDecade:We,onNextYear:Qe,onPreviousYear:Je,onNextMonth:oe,onPreviousMonth:be,static:Ke,enableKeyboardNavigation:en,fullWidth:Ae,attributes:an,ref:pn,...Dn}=n,{resolvedClassNames:wn,resolvedStyles:ln}=Wi({classNames:te,styles:$e,props:n}),[tn,zn]=Ai({value:o?kh(o,r,i):void 0,defaultValue:a?kh(a,r,i):void 0,finalValue:kh(void 0,r,i),onChange:l}),[De,Fe]=T9({type:"default",value:Ji(u),defaultValue:Ji(f),onChange:h});S.useImperativeHandle(M,()=>rn=>{Fe(rn)}),S.useImperativeHandle($,()=>rn=>{zn(rn)});const Gn={__staticSelector:Ce||"Calendar",styles:ln,classNames:wn,unstyled:xe,size:Ne,attributes:an},En=p||d||1,gn=S.useRef(null);if(gn.current===null){const rn=new Date;gn.current=Oe&&Be(rn).isAfter(Oe)?Oe:Be(rn).format("YYYY-MM-DD")}const xn=De||gn.current,at=()=>{const rn=Be(xn).add(En,"month").format("YYYY-MM-DD");oe==null||oe(rn),Fe(rn)},Dt=()=>{const rn=Be(xn).subtract(En,"month").format("YYYY-MM-DD");be==null||be(rn),Fe(rn)},qe=()=>{const rn=Be(xn).add(En,"year").format("YYYY-MM-DD");Qe==null||Qe(rn),Fe(rn)},Ue=()=>{const rn=Be(xn).subtract(En,"year").format("YYYY-MM-DD");Je==null||Je(rn),Fe(rn)},Bn=()=>{const rn=Be(xn).add(10*En,"year").format("YYYY-MM-DD");Ye==null||Ye(rn),Fe(rn)},ot=()=>{const rn=Be(xn).subtract(10*En,"year").format("YYYY-MM-DD");We==null||We(rn),Fe(rn)},Pn=S.useRef(null);return S.useEffect(()=>{if(!en||Ke)return;const rn=on=>{var Xn;if(!((Xn=Pn.current)!=null&&Xn.contains(document.activeElement)))return;const un=on.ctrlKey||on.metaKey,Kn=on.shiftKey;switch(on.key){case"ArrowUp":un&&Kn?(on.preventDefault(),ot()):un&&(on.preventDefault(),Ue());break;case"ArrowDown":un&&Kn?(on.preventDefault(),Bn()):un&&(on.preventDefault(),qe());break;case"y":case"Y":tn==="month"&&(on.preventDefault(),zn("year"));break}};return document.addEventListener("keydown",rn),()=>{document.removeEventListener("keydown",rn)}},[en,Ke,tn,qe,Ue,Bn,ot]),v.jsxs(de,{ref:Vt(Pn,pn),size:Ne,"data-calendar":!0,"data-full-width":Ae||void 0,...Dn,children:[tn==="month"&&v.jsx(D0,{month:xn,minDate:Oe,maxDate:ze,firstDayOfWeek:q,weekdayFormat:R,weekendDays:I,getDayProps:z,excludeDate:W,renderDay:U,hideOutsideDates:N,hideWeekdays:D,getDayAriaLabel:L,onNext:at,onPrevious:Dt,hasNextLevel:i!=="month",onLevelClick:()=>zn("year"),numberOfColumns:d,locale:we,levelControlAriaLabel:g==null?void 0:g.monthLevelControl,nextLabel:(g==null?void 0:g.nextMonth)??b,nextIcon:Y,previousLabel:(g==null?void 0:g.previousMonth)??w,previousIcon:P,monthLabelFormat:H,__onDayClick:G,__onDayMouseEnter:V,__preventFocus:he,__stopPropagation:He,static:Ke,withCellSpacing:B,highlightToday:Q,withWeekNumbers:ie,headerControlsOrder:T,fullWidth:Ae,...Gn}),tn==="year"&&v.jsx(M0,{year:xn,numberOfColumns:d,minDate:Oe,maxDate:ze,monthsListFormat:re,getMonthControlProps:Z,locale:we,onNext:qe,onPrevious:Ue,hasNextLevel:i!=="month"&&i!=="year",onLevelClick:()=>zn("decade"),levelControlAriaLabel:g==null?void 0:g.yearLevelControl,nextLabel:(g==null?void 0:g.nextYear)??b,nextIcon:Y,previousLabel:(g==null?void 0:g.previousYear)??w,previousIcon:P,yearLabelFormat:le,__onControlMouseEnter:C,__onControlClick:(rn,on)=>{O&&Fe(on),zn(kh("month",r,i)),_==null||_(on)},__preventFocus:he,__stopPropagation:He,withCellSpacing:B,headerControlsOrder:T,fullWidth:Ae,...Gn}),tn==="decade"&&v.jsx(E0,{decade:xn,minDate:Oe,maxDate:ze,yearsListFormat:ee,getYearControlProps:se,locale:we,onNext:Bn,onPrevious:ot,numberOfColumns:d,nextLabel:(g==null?void 0:g.nextDecade)??b,nextIcon:Y,previousLabel:(g==null?void 0:g.previousDecade)??w,previousIcon:P,decadeLabelFormat:ke,__onControlMouseEnter:x,__onControlClick:(rn,on)=>{A&&Fe(on),zn(kh("year",r,i)),k==null||k(on)},__preventFocus:he,__stopPropagation:He,withCellSpacing:B,headerControlsOrder:T,fullWidth:Ae,...Gn})]})});rd.classes={...E0.classes,...M0.classes,...D0.classes};rd.displayName="@mantine/dates/Calendar";function R0(e){const{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:u,defaultDate:f,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:g,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:x,onMonthMouseEnter:C,onNextMonth:T,onPreviousMonth:A,onNextYear:O,onPreviousYear:M,onNextDecade:$,onPreviousDecade:q,withCellSpacing:R,highlightToday:I,__updateDateOnYearSelect:z,__updateDateOnMonthSelect:W,__setDateRef:U,__setLevelRef:N,withWeekNumbers:D,headerControlsOrder:L,firstDayOfWeek:H,weekdayFormat:Y,weekendDays:P,getDayProps:G,excludeDate:V,renderDay:B,hideOutsideDates:Q,hideWeekdays:ie,getDayAriaLabel:re,monthLabelFormat:Z,monthsListFormat:le,getMonthControlProps:ee,yearLabelFormat:se,yearsListFormat:ke,getYearControlProps:te,decadeLabelFormat:$e,allowSingleDateInRange:xe,allowDeselect:Oe,minDate:ze,maxDate:we,locale:Ce,...Ne}=e;return{calendarProps:{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:u,defaultDate:f,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:g,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:x,onMonthMouseEnter:C,onNextMonth:T,onPreviousMonth:A,onNextYear:O,onPreviousYear:M,onNextDecade:$,onPreviousDecade:q,withCellSpacing:R,highlightToday:I,__updateDateOnYearSelect:z,__updateDateOnMonthSelect:W,__setDateRef:U,withWeekNumbers:D,headerControlsOrder:L,firstDayOfWeek:H,weekdayFormat:Y,weekendDays:P,getDayProps:G,excludeDate:V,renderDay:B,hideOutsideDates:Q,hideWeekdays:ie,getDayAriaLabel:re,monthLabelFormat:Z,monthsListFormat:le,getMonthControlProps:ee,yearLabelFormat:se,yearsListFormat:ke,getYearControlProps:te,decadeLabelFormat:$e,allowSingleDateInRange:xe,allowDeselect:Oe,minDate:ze,maxDate:we,locale:Ce},others:Ne}}function RM(e,n){const t=[...n].sort((i,r)=>Be(i).isAfter(Be(r))?1:-1);return Be(t[0]).startOf("day").subtract(1,"ms").isBefore(e)&&Be(t[1]).endOf("day").add(1,"ms").isAfter(e)}function Bq({type:e,level:n,value:t,defaultValue:i,onChange:r,allowSingleDateInRange:a,allowDeselect:o,onMouseLeave:l}){const[u,f]=T9({type:e,value:t,defaultValue:i,onChange:r}),[h,d]=S.useState(e==="range"&&u[0]&&!u[1]?u[0]:null),[p,g]=S.useState(null),b=A=>{if(e==="range"){if(h&&!u[1]){if(Be(A).isSame(h,n)&&!a){d(null),g(null),f([null,null]);return}const O=[A,h];O.sort((M,$)=>Be(M).isAfter(Be($))?1:-1),f(O),g(null),d(null);return}if(u[0]&&!u[1]&&Be(A).isSame(u[0],n)&&!a){d(null),g(null),f([null,null]);return}f([A,null]),g(null),d(A);return}if(e==="multiple"){u.some(O=>Be(O).isSame(A,n))?f(u.filter(O=>!Be(O).isSame(A,n))):f([...u,A]);return}u&&o&&Be(A).isSame(u,n)?f(null):f(A)},w=A=>h&&p?RM(A,[p,h]):u[0]&&u[1]?RM(A,u):!1,k=e==="range"?A=>{l==null||l(A),g(null)}:l,_=A=>u[0]&&Be(A).isSame(u[0],n)?!(p&&Be(p).isBefore(u[0])):!1,x=A=>u[1]?Be(A).isSame(u[1],n):!u[0]||!p?!1:Be(p).isBefore(u[0])&&Be(A).isSame(u[0],n),C=A=>{if(e==="range")return{selected:u.some(M=>M&&Be(M).isSame(A,n)),inRange:w(A),firstInRange:_(A),lastInRange:x(A),"data-autofocus":!!u[0]&&Be(u[0]).isSame(A,n)||void 0};if(e==="multiple")return{selected:u.some(M=>M&&Be(M).isSame(A,n)),"data-autofocus":!!u[0]&&Be(u[0]).isSame(A,n)||void 0};const O=Be(u).isSame(A,n);return{selected:O,"data-autofocus":O||void 0}},T=e==="range"&&h?g:()=>{};return S.useEffect(()=>{if(e==="range")if(u[0]&&!u[1])d(u[0]);else{const A=u[0]==null&&u[1]==null,O=u[0]!=null&&u[1]!=null;(A||O)&&(d(null),g(null))}},[u]),{onDateChange:b,onRootMouseLeave:k,onHoveredDateChange:T,getControlProps:C,_value:u,setValue:f}}var Fq={monthPickerRoot:"m_53c9e871",presetsList:"m_cccb8ff3",presetButton:"m_7b4fbf50"};const qq=(e,{size:n})=>({monthPickerRoot:{"--preset-font-size":ai(n)}}),zse={type:"default"},jp=Pe(e=>{const n=ye("MonthPicker",zse,e),{classNames:t,styles:i,vars:r,type:a,defaultValue:o,value:l,onChange:u,__staticSelector:f,getMonthControlProps:h,allowSingleDateInRange:d,allowDeselect:p,onMouseLeave:g,onMonthSelect:b,__updateDateOnMonthSelect:w,__onPresetSelect:k,__stopPropagation:_,presets:x,className:C,style:T,unstyled:A,size:O,attributes:M,onLevelChange:$,...q}=n,{calendarProps:R,others:I}=R0(q),z=S.useRef(null),W=S.useRef(null),U=Ze({name:f||"MonthPicker",classes:Fq,props:n,className:C,style:T,classNames:t,styles:i,unstyled:A,attributes:M,rootSelector:x?"monthPickerRoot":void 0,varsResolver:qq,vars:r}),{onDateChange:N,onRootMouseLeave:D,onHoveredDateChange:L,getControlProps:H,setValue:Y}=Bq({type:a,level:"month",allowDeselect:p,allowSingleDateInRange:d,value:l,defaultValue:o,onChange:u,onMouseLeave:g}),{resolvedClassNames:P,resolvedStyles:G}=Wi({classNames:t,styles:i,props:n}),V=v.jsx(rd,{classNames:P,styles:G,size:O,...R,...x?{}:I,minLevel:"year",__updateDateOnMonthSelect:w??!1,__staticSelector:f||"MonthPicker",onMouseLeave:D,onMonthMouseEnter:(ie,re)=>L(re),onMonthSelect:ie=>{N(ie),b==null||b(ie)},getMonthControlProps:ie=>({...H(ie),...h==null?void 0:h(ie)}),onLevelChange:$,__setDateRef:z,__setLevelRef:W,__stopPropagation:_,attributes:M,...x?{}:{className:C,style:T}});if(!x)return V;const B=ie=>{var Z,le;const re=Array.isArray(ie)?ie[0]:ie;re!==void 0&&((Z=z.current)==null||Z.call(z,re),(le=W.current)==null||le.call(W,"year"),k?k(re):Y(ie))},Q=x.map((ie,re)=>v.jsx(Mt,{...U("presetButton"),onClick:()=>B(ie.value),onMouseDown:Z=>Z.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:ie.label},re));return v.jsxs(de,{...U("monthPickerRoot"),size:O,...I,children:[v.jsx("div",{...U("presetsList"),children:Q}),V]})});jp.classes={...rd.classes,...Fq};jp.varsResolver=qq;jp.displayName="@mantine/dates/MonthPicker";var Lse={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const Hq=(e,{size:n})=>({datePickerRoot:{"--preset-font-size":ai(n)}}),Ise={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},Ap=Pe(e=>{const n=ye("DatePicker",Ise,e),{allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l,classNames:u,styles:f,__staticSelector:h,__onDayClick:d,__onDayMouseEnter:p,__onPresetSelect:g,__stopPropagation:b,presets:w,className:k,style:_,unstyled:x,size:C,vars:T,attributes:A,...O}=n,{calendarProps:M,others:$}=R0(O),q=S.useRef(null),R=S.useRef(null),I=Ze({name:h||"DatePicker",classes:Lse,props:n,className:k,style:_,classNames:u,styles:f,unstyled:x,attributes:A,rootSelector:w?"datePickerRoot":void 0,varsResolver:Hq,vars:T}),{onDateChange:z,onRootMouseLeave:W,onHoveredDateChange:U,getControlProps:N,_value:D,setValue:L}=Bq({type:$.type,level:"day",allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l}),{resolvedClassNames:H,resolvedStyles:Y}=Wi({classNames:u,styles:f,props:n}),P=v.jsx(rd,{classNames:H,styles:Y,__staticSelector:h||"DatePicker",onMouseLeave:W,size:C,...M,...w?{}:$,__stopPropagation:b,__setDateRef:q,__setLevelRef:R,minLevel:M.minLevel||"month",__onDayMouseEnter:(B,Q)=>{U(Q),p==null||p(B,Q)},__onDayClick:(B,Q)=>{z(Q),d==null||d(B,Q)},getDayProps:B=>{var Q;return{...N(B),...(Q=M.getDayProps)==null?void 0:Q.call(M,B)}},getMonthControlProps:B=>{var Q;return{selected:typeof D=="string"?O9(B,D):!1,...(Q=M.getMonthControlProps)==null?void 0:Q.call(M,B)}},getYearControlProps:B=>{var Q;return{selected:typeof D=="string"?Be(B).isSame(D,"year"):!1,...(Q=M.getYearControlProps)==null?void 0:Q.call(M,B)}},hideOutsideDates:M.hideOutsideDates??M.numberOfColumns!==1,attributes:A,...w?{}:{className:k,style:_}});if(!w)return P;const G=B=>{var ie,re;const Q=Array.isArray(B)?B[0]:B;Q!==void 0&&((ie=q.current)==null||ie.call(q,Q),(re=R.current)==null||re.call(R,"month"),g?g(Q):L(B))},V=w.map((B,Q)=>v.jsx(Mt,{...I("presetButton"),onClick:()=>G(B.value),onMouseDown:ie=>ie.preventDefault(),"data-mantine-stop-propagation":b||void 0,children:B.label},Q));return v.jsxs(de,{...I("datePickerRoot"),size:C,...$,children:[v.jsx("div",{...I("presetsList"),children:V}),P]})});Ap.classes=rd.classes;Ap.varsResolver=Hq;Ap.displayName="@mantine/dates/DatePicker";function Uq({type:e,value:n,defaultValue:t,onChange:i,locale:r,format:a,closeOnChange:o,sortDates:l,labelSeparator:u,valueFormatter:f}){const h=Ml(),[d,p]=Gz(!1),[g,b]=T9({type:e,value:n,defaultValue:t,onChange:i}),w=rse({type:e,date:g,locale:h.getLocale(r),format:a,labelSeparator:h.getLabelSeparator(u),formatter:f}),k=x=>{o&&(e==="default"&&p.close(),e==="range"&&x[0]&&x[1]&&p.close()),b(l&&e==="multiple"?[...x].sort((C,T)=>Be(C).isAfter(Be(T))?1:-1):x)};return{_value:g,setValue:k,onClear:()=>k(e==="range"?[null,null]:e==="multiple"?[]:null),shouldClear:e==="range"?!!g[0]:e==="multiple"?g.length>0:g!==null,formattedValue:w,dropdownOpened:d,dropdownHandlers:p}}const Bse={type:"default",size:"sm",valueFormat:"MMMM YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},E9=Pe(e=>{const n=ye("MonthPickerInput",Bse,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:u,classNames:f,styles:h,unstyled:d,closeOnChange:p,size:g,variant:b,dropdownType:w,sortDates:k,minDate:_,maxDate:x,vars:C,valueFormatter:T,presets:A,attributes:O,...M}=n,{resolvedClassNames:$,resolvedStyles:q}=Wi({classNames:f,styles:h,props:n}),{calendarProps:R,others:I}=R0(M),{_value:z,setValue:W,formattedValue:U,dropdownHandlers:N,dropdownOpened:D,onClear:L,shouldClear:H}=Uq({type:t,value:i,defaultValue:r,onChange:a,locale:u,format:o,labelSeparator:l,closeOnChange:p,sortDates:k,valueFormatter:T});return v.jsx(id,{formattedValue:U,dropdownOpened:D,dropdownHandlers:N,classNames:$,styles:q,unstyled:d,onClear:L,shouldClear:H,value:z,size:g,variant:b,dropdownType:w,...I,attributes:O,type:t,__staticSelector:"MonthPickerInput",children:v.jsx(jp,{...R,size:g,variant:b,type:t,value:z,defaultDate:R.defaultDate||(Array.isArray(z)?z[0]||i4({maxDate:x,minDate:_}):z||i4({maxDate:x,minDate:_})),onChange:W,locale:u,classNames:$,styles:q,unstyled:d,__staticSelector:"MonthPickerInput",__stopPropagation:w==="popover",minDate:_,maxDate:x,presets:A,attributes:O})})});E9.classes={...id.classes,...jp.classes};E9.displayName="@mantine/dates/MonthPickerInput";const Fse={type:"default",size:"sm",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},Du=Pe(e=>{const n=ye("DatePickerInput",Fse,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:u,classNames:f,styles:h,unstyled:d,closeOnChange:p,size:g,variant:b,dropdownType:w,sortDates:k,minDate:_,maxDate:x,vars:C,defaultDate:T,valueFormatter:A,presets:O,attributes:M,...$}=n,{resolvedClassNames:q,resolvedStyles:R}=Wi({classNames:f,styles:h,props:n}),{calendarProps:I,others:z}=R0($),{_value:W,setValue:U,formattedValue:N,dropdownHandlers:D,dropdownOpened:L,onClear:H,shouldClear:Y}=Uq({type:t,value:i,defaultValue:r,onChange:a,locale:u,format:o,labelSeparator:l,closeOnChange:p,sortDates:k,valueFormatter:A}),P=Array.isArray(W)?W[0]||T:W||T;return v.jsx(id,{formattedValue:N,dropdownOpened:L,dropdownHandlers:D,classNames:q,styles:R,unstyled:d,onClear:H,shouldClear:Y,value:W,size:g,variant:b,dropdownType:w,...z,type:t,__staticSelector:"DatePickerInput",attributes:M,children:v.jsx(Ap,{...I,size:g,variant:b,type:t,value:W,defaultDate:P||i4({maxDate:x,minDate:_}),onChange:U,locale:u,classNames:q,styles:R,unstyled:d,__staticSelector:"DatePickerInput",__stopPropagation:w==="popover",minDate:_,maxDate:x,presets:O,attributes:M})})});Du.classes={...id.classes,...Ap.classes};Du.displayName="@mantine/dates/DatePickerInput";/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */var Bse={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"}};/** + */var qse={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"}};/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const tn=(e,n,t,i)=>{const r=x.forwardRef(({color:a="currentColor",size:o=24,stroke:l=2,title:u,className:f,children:h,...d},p)=>x.createElement("svg",{ref:p,...Bse[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${n}`,f].join(" "),strokeWidth:l,stroke:a,...d},[u&&x.createElement("title",{key:"svg-title"},u),...i.map(([g,b])=>x.createElement(g,b)),...Array.isArray(h)?h:[h]]));return r.displayName=`${t}`,r};/** + */const nn=(e,n,t,i)=>{const r=S.forwardRef(({color:a="currentColor",size:o=24,stroke:l=2,title:u,className:f,children:h,...d},p)=>S.createElement("svg",{ref:p,...qse[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${n}`,f].join(" "),strokeWidth:l,stroke:a,...d},[u&&S.createElement("title",{key:"svg-title"},u),...i.map(([g,b])=>S.createElement(g,b)),...Array.isArray(h)?h:[h]]));return r.displayName=`${t}`,r};/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Fse=[["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"}]],qse=tn("outline","alert-circle","AlertCircle",Fse);/** + */const Hse=[["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"}]],Use=nn("outline","alert-circle","AlertCircle",Hse);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Hse=[["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"}]],i4=tn("outline","alert-triangle","AlertTriangle",Hse);/** + */const Vse=[["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"}]],u1=nn("outline","alert-triangle","AlertTriangle",Vse);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Use=[["path",{d:"M8 4h11a2 2 0 1 1 0 4h-7m-4 0h-3a2 2 0 0 1 -.826 -3.822",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 1.824 -1.18m.176 -3.82v-7",key:"svg-1"}],["path",{d:"M10 12h2",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],Vse=tn("outline","archive-off","ArchiveOff",Use);/** + */const Wse=[["path",{d:"M8 4h11a2 2 0 1 1 0 4h-7m-4 0h-3a2 2 0 0 1 -.826 -3.822",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 1.824 -1.18m.176 -3.82v-7",key:"svg-1"}],["path",{d:"M10 12h2",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],Gse=nn("outline","archive-off","ArchiveOff",Wse);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Wse=[["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]],Uq=tn("outline","archive","Archive",Wse);/** + */const Yse=[["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]],Vq=nn("outline","archive","Archive",Yse);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Gse=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],u1=tn("outline","arrow-back-up","ArrowBackUp",Gse);/** + */const Kse=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],c1=nn("outline","arrow-back-up","ArrowBackUp",Kse);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Yse=[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M3 12l18 0",key:"svg-2"}]],Kse=tn("outline","arrows-horizontal","ArrowsHorizontal",Yse);/** + */const Xse=[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M3 12l18 0",key:"svg-2"}]],Zse=nn("outline","arrows-horizontal","ArrowsHorizontal",Xse);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Xse=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M16 12v1.5a2.5 2.5 0 0 0 5 0v-1.5a9 9 0 1 0 -5.5 8.28",key:"svg-1"}]],Zse=tn("outline","at","At",Xse);/** + */const Qse=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M16 12v1.5a2.5 2.5 0 0 0 5 0v-1.5a9 9 0 1 0 -5.5 8.28",key:"svg-1"}]],Jse=nn("outline","at","At",Qse);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Qse=[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]],Jse=tn("outline","bell","Bell",Qse);/** + */const ele=[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]],nle=nn("outline","bell","Bell",ele);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const ele=[["path",{d:"M20 4h-9v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5a1 1 0 0 1 1 1v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5v-9",key:"svg-0"}],["path",{d:"M15 8h-8v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5a1 1 0 0 1 1 1v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5v-8a1 1 0 0 0 -1 -1",key:"svg-1"}],["path",{d:"M11 12h-8v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5a1 1 0 0 1 1 1v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5v-8a1 1 0 0 0 -1 -1",key:"svg-2"}]],M9=tn("outline","brand-jira","BrandJira",ele);/** + */const tle=[["path",{d:"M20 4h-9v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5a1 1 0 0 1 1 1v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5v-9",key:"svg-0"}],["path",{d:"M15 8h-8v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5a1 1 0 0 1 1 1v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5v-8a1 1 0 0 0 -1 -1",key:"svg-1"}],["path",{d:"M11 12h-8v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5a1 1 0 0 1 1 1v1.5a2.5 2.5 0 0 0 2.5 2.5h1.5v-8a1 1 0 0 0 -1 -1",key:"svg-2"}]],M9=nn("outline","brand-jira","BrandJira",tle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const nle=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}]],Vq=tn("outline","calendar-due","CalendarDue",nle);/** + */const ile=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}]],Wq=nn("outline","calendar-due","CalendarDue",ile);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const tle=[["path",{d:"M9 5h9a2 2 0 0 1 2 2v9m-.184 3.839a2 2 0 0 1 -1.816 1.161h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 1.158 -1.815",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v1",key:"svg-2"}],["path",{d:"M4 11h7m4 0h5",key:"svg-3"}],["path",{d:"M3 3l18 18",key:"svg-4"}]],ile=tn("outline","calendar-off","CalendarOff",tle);/** + */const rle=[["path",{d:"M9 5h9a2 2 0 0 1 2 2v9m-.184 3.839a2 2 0 0 1 -1.816 1.161h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 1.158 -1.815",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v1",key:"svg-2"}],["path",{d:"M4 11h7m4 0h5",key:"svg-3"}],["path",{d:"M3 3l18 18",key:"svg-4"}]],ale=nn("outline","calendar-off","CalendarOff",rle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const rle=[["path",{d:"M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4",key:"svg-0"}],["path",{d:"M18 14v4h4",key:"svg-1"}],["path",{d:"M14 18a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-2"}],["path",{d:"M15 3v4",key:"svg-3"}],["path",{d:"M7 3v4",key:"svg-4"}],["path",{d:"M3 11h16",key:"svg-5"}]],ale=tn("outline","calendar-stats","CalendarStats",rle);/** + */const ole=[["path",{d:"M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4",key:"svg-0"}],["path",{d:"M18 14v4h4",key:"svg-1"}],["path",{d:"M14 18a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-2"}],["path",{d:"M15 3v4",key:"svg-3"}],["path",{d:"M7 3v4",key:"svg-4"}],["path",{d:"M3 11h16",key:"svg-5"}]],sle=nn("outline","calendar-stats","CalendarStats",ole);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const ole=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]],sle=tn("outline","calendar","Calendar",ole);/** + */const lle=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]],ule=nn("outline","calendar","Calendar",lle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const lle=[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]],ule=tn("outline","chart-bar","ChartBar",lle);/** + */const cle=[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]],fle=nn("outline","chart-bar","ChartBar",cle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const cle=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],cs=tn("outline","check","Check",cle);/** + */const dle=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],cs=nn("outline","check","Check",dle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const fle=[["path",{d:"M9 11l3 3l8 -8",key:"svg-0"}],["path",{d:"M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9",key:"svg-1"}]],wm=tn("outline","checkbox","Checkbox",fle);/** + */const hle=[["path",{d:"M9 11l3 3l8 -8",key:"svg-0"}],["path",{d:"M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9",key:"svg-1"}]],wm=nn("outline","checkbox","Checkbox",hle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const dle=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],r4=tn("outline","chevron-down","ChevronDown",dle);/** + */const mle=[["path",{d:"M7 12l5 5l10 -10",key:"svg-0"}],["path",{d:"M2 12l5 5m5 -5l5 -5",key:"svg-1"}]],ple=nn("outline","checks","Checks",mle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const hle=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],a4=tn("outline","chevron-right","ChevronRight",hle);/** + */const vle=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],r4=nn("outline","chevron-down","ChevronDown",vle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const mle=[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2",key:"svg-1"}],["path",{d:"M9 12l.01 0",key:"svg-2"}],["path",{d:"M13 12l2 0",key:"svg-3"}],["path",{d:"M9 16l.01 0",key:"svg-4"}],["path",{d:"M13 16l2 0",key:"svg-5"}]],RM=tn("outline","clipboard-list","ClipboardList",mle);/** + */const gle=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],a4=nn("outline","chevron-right","ChevronRight",gle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const ple=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12l3 2",key:"svg-1"}],["path",{d:"M12 7v5",key:"svg-2"}]],vle=tn("outline","clock-hour-4","ClockHour4",ple);/** + */const yle=[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2",key:"svg-1"}],["path",{d:"M9 12l.01 0",key:"svg-2"}],["path",{d:"M13 12l2 0",key:"svg-3"}],["path",{d:"M9 16l.01 0",key:"svg-4"}],["path",{d:"M13 16l2 0",key:"svg-5"}]],PM=nn("outline","clipboard-list","ClipboardList",yle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const gle=[["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"}]],c1=tn("outline","clock","Clock",gle);/** + */const ble=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12l3 2",key:"svg-1"}],["path",{d:"M12 7v5",key:"svg-2"}]],wle=nn("outline","clock-hour-4","ClockHour4",ble);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const yle=[["path",{d:"M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-16",key:"svg-0"}],["path",{d:"M9 3v18",key:"svg-1"}],["path",{d:"M15 3v18",key:"svg-2"}]],ble=tn("outline","columns-3","Columns3",yle);/** + */const kle=[["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"}]],f1=nn("outline","clock","Clock",kle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const wle=[["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"}]],o4=tn("outline","copy","Copy",wle);/** + */const _le=[["path",{d:"M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-16",key:"svg-0"}],["path",{d:"M9 3v18",key:"svg-1"}],["path",{d:"M15 3v18",key:"svg-2"}]],xle=nn("outline","columns-3","Columns3",_le);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const kle=[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-0"}],["path",{d:"M8 8.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-1"}],["path",{d:"M15 8.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-2"}],["path",{d:"M15 15.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-3"}],["path",{d:"M8 15.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-4"}],["path",{d:"M11.5 12a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-5"}]],_le=tn("outline","dice-5","Dice5",kle);/** + */const Sle=[["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"}]],o4=nn("outline","copy","Copy",Sle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const xle=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],Wq=tn("outline","dots-vertical","DotsVertical",xle);/** + */const Cle=[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-0"}],["path",{d:"M8 8.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-1"}],["path",{d:"M15 8.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-2"}],["path",{d:"M15 15.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-3"}],["path",{d:"M8 15.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-4"}],["path",{d:"M11.5 12a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-5"}]],jle=nn("outline","dice-5","Dice5",Cle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Sle=[["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"}]],Gq=tn("outline","download","Download",Sle);/** + */const Ale=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],Gq=nn("outline","dots-vertical","DotsVertical",Ale);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Cle=[["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"}]],Fh=tn("outline","edit","Edit",Cle);/** + */const Ole=[["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"}]],D9=nn("outline","download","Download",Ole);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const jle=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],Ale=tn("outline","external-link","ExternalLink",jle);/** + */const Tle=[["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"}]],Fh=nn("outline","edit","Edit",Tle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Ole=[["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:"M8 11h8v7h-8l0 -7",key:"svg-2"}],["path",{d:"M8 15h8",key:"svg-3"}],["path",{d:"M11 11v7",key:"svg-4"}]],Tle=tn("outline","file-spreadsheet","FileSpreadsheet",Ole);/** + */const Ele=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],Mle=nn("outline","external-link","ExternalLink",Ele);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Ele=[["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"}]],Mle=tn("outline","file-text","FileText",Ele);/** + */const Dle=[["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:"M8 11h8v7h-8l0 -7",key:"svg-2"}],["path",{d:"M8 15h8",key:"svg-3"}],["path",{d:"M11 11v7",key:"svg-4"}]],Rle=nn("outline","file-spreadsheet","FileSpreadsheet",Dle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Dle=[["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"}]],Rle=tn("outline","file-type-pdf","FileTypePdf",Dle);/** + */const Ple=[["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"}]],Nle=nn("outline","file-text","FileText",Ple);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Ple=[["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"}]],Nle=tn("outline","file","File",Ple);/** + */const $le=[["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"}]],zle=nn("outline","file-type-pdf","FileTypePdf",$le);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const $le=[["path",{d:"M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]],Yq=tn("outline","grip-vertical","GripVertical",$le);/** + */const Lle=[["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"}]],Ile=nn("outline","file","File",Lle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const zle=[["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"}]],Lle=tn("outline","history","History",zle);/** + */const Ble=[["path",{d:"M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]],Yq=nn("outline","grip-vertical","GripVertical",Ble);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Ile=[["path",{d:"M6.5 7h11",key:"svg-0"}],["path",{d:"M6.5 17h11",key:"svg-1"}],["path",{d:"M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1",key:"svg-2"}],["path",{d:"M6 4v2a6 6 0 1 0 12 0v-2a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1",key:"svg-3"}]],f1=tn("outline","hourglass","Hourglass",Ile);/** + */const Fle=[["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"}]],qle=nn("outline","history","History",Fle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Ble=[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-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.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]],Fle=tn("outline","key","Key",Ble);/** + */const Hle=[["path",{d:"M6.5 7h11",key:"svg-0"}],["path",{d:"M6.5 17h11",key:"svg-1"}],["path",{d:"M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1",key:"svg-2"}],["path",{d:"M6 4v2a6 6 0 1 0 12 0v-2a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1",key:"svg-3"}]],d1=nn("outline","hourglass","Hourglass",Hle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const qle=[["path",{d:"M4 4l6 0",key:"svg-0"}],["path",{d:"M14 4l6 0",key:"svg-1"}],["path",{d:"M4 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8",key:"svg-2"}],["path",{d:"M14 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-3"}]],s4=tn("outline","layout-kanban","LayoutKanban",qle);/** + */const Ule=[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-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.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]],Vle=nn("outline","key","Key",Ule);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Hle=[["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"}]],Ule=tn("outline","link","Link",Hle);/** + */const Wle=[["path",{d:"M4 4l6 0",key:"svg-0"}],["path",{d:"M14 4l6 0",key:"svg-1"}],["path",{d:"M4 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8",key:"svg-2"}],["path",{d:"M14 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-3"}]],s4=nn("outline","layout-kanban","LayoutKanban",Wle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Vle=[["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"}]],Kq=tn("outline","lock-open","LockOpen",Vle);/** + */const Gle=[["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"}]],Yle=nn("outline","link","Link",Gle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Wle=[["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"}]],ul=tn("outline","lock","Lock",Wle);/** + */const Kle=[["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"}]],Kq=nn("outline","lock-open","LockOpen",Kle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Gle=[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]],Yle=tn("outline","logout","Logout",Gle);/** + */const Xle=[["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"}]],ul=nn("outline","lock","Lock",Xle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Kle=[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l16 0",key:"svg-2"}]],Xle=tn("outline","menu-2","Menu2",Kle);/** + */const Zle=[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]],Qle=nn("outline","logout","Logout",Zle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Zle=[["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-0"}],["path",{d:"M9.5 9h.01",key:"svg-1"}],["path",{d:"M14.5 9h.01",key:"svg-2"}],["path",{d:"M9.5 13a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],Xq=tn("outline","message-chatbot","MessageChatbot",Zle);/** + */const Jle=[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l16 0",key:"svg-2"}]],eue=nn("outline","menu-2","Menu2",Jle);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Qle=[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-2"}]],Zq=tn("outline","message","Message",Qle);/** + */const nue=[["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-0"}],["path",{d:"M9.5 9h.01",key:"svg-1"}],["path",{d:"M14.5 9h.01",key:"svg-2"}],["path",{d:"M9.5 13a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],Xq=nn("outline","message-chatbot","MessageChatbot",nue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Jle=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10l.01 0",key:"svg-1"}],["path",{d:"M15 10l.01 0",key:"svg-2"}],["path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],eue=tn("outline","mood-smile","MoodSmile",Jle);/** + */const tue=[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-2"}]],Zq=nn("outline","message","Message",tue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const nue=[["path",{d:"M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25",key:"svg-0"}],["path",{d:"M7.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}]],D9=tn("outline","palette","Palette",nue);/** + */const iue=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10l.01 0",key:"svg-1"}],["path",{d:"M15 10l.01 0",key:"svg-2"}],["path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],rue=nn("outline","mood-smile","MoodSmile",iue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const tue=[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]],Qq=tn("outline","paperclip","Paperclip",tue);/** + */const aue=[["path",{d:"M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25",key:"svg-0"}],["path",{d:"M7.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}]],R9=nn("outline","palette","Palette",aue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const iue=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],rue=tn("outline","pencil","Pencil",iue);/** + */const oue=[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]],Qq=nn("outline","paperclip","Paperclip",oue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const aue=[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]],oue=tn("outline","photo","Photo",aue);/** + */const sue=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],lue=nn("outline","pencil","Pencil",sue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const sue=[["path",{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5",key:"svg-0"}],["path",{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5",key:"svg-1"}],["path",{d:"M3 21l2.5 -2.5",key:"svg-2"}],["path",{d:"M18.5 5.5l2.5 -2.5",key:"svg-3"}],["path",{d:"M10 11l-2 2",key:"svg-4"}],["path",{d:"M13 14l-2 2",key:"svg-5"}]],lue=tn("outline","plug-connected","PlugConnected",sue);/** + */const uue=[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]],cue=nn("outline","photo","Photo",uue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const uue=[["path",{d:"M9.785 6l8.215 8.215l-2.054 2.054a5.81 5.81 0 1 1 -8.215 -8.215l2.054 -2.054",key:"svg-0"}],["path",{d:"M4 20l3.5 -3.5",key:"svg-1"}],["path",{d:"M15 4l-3.5 3.5",key:"svg-2"}],["path",{d:"M20 9l-3.5 3.5",key:"svg-3"}]],Jq=tn("outline","plug","Plug",uue);/** + */const fue=[["path",{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5",key:"svg-0"}],["path",{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5",key:"svg-1"}],["path",{d:"M3 21l2.5 -2.5",key:"svg-2"}],["path",{d:"M18.5 5.5l2.5 -2.5",key:"svg-3"}],["path",{d:"M10 11l-2 2",key:"svg-4"}],["path",{d:"M13 14l-2 2",key:"svg-5"}]],due=nn("outline","plug-connected","PlugConnected",fue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const cue=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],cf=tn("outline","plus","Plus",cue);/** + */const hue=[["path",{d:"M9.785 6l8.215 8.215l-2.054 2.054a5.81 5.81 0 1 1 -8.215 -8.215l2.054 -2.054",key:"svg-0"}],["path",{d:"M4 20l3.5 -3.5",key:"svg-1"}],["path",{d:"M15 4l-3.5 3.5",key:"svg-2"}],["path",{d:"M20 9l-3.5 3.5",key:"svg-3"}]],Jq=nn("outline","plug","Plug",hue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const fue=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],ff=tn("outline","refresh","Refresh",fue);/** + */const mue=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],ff=nn("outline","plus","Plus",mue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const due=[["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"}]],eH=tn("outline","search","Search",due);/** + */const pue=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],Ru=nn("outline","refresh","Refresh",pue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const hue=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],nH=tn("outline","send","Send",hue);/** + */const vue=[["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"}]],eH=nn("outline","search","Search",vue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const mue=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],pue=tn("outline","settings","Settings",mue);/** + */const gue=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],nH=nn("outline","send","Send",gue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const vue=[["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"}]],gue=tn("outline","sparkles","Sparkles",vue);/** + */const yue=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],bue=nn("outline","settings","Settings",yue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const yue=[["path",{d:"M6.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3",key:"svg-1"}]],bue=tn("outline","tag","Tag",yue);/** + */const wue=[["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"}]],kue=nn("outline","sparkles","Sparkles",wue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const wue=[["path",{d:"M20 8.04l-12.122 12.124a2.857 2.857 0 1 1 -4.041 -4.04l12.122 -12.124",key:"svg-0"}],["path",{d:"M7 13h8",key:"svg-1"}],["path",{d:"M19 15l1.5 1.6a2 2 0 1 1 -3 0l1.5 -1.6",key:"svg-2"}],["path",{d:"M15 3l6 6",key:"svg-3"}]],kue=tn("outline","test-pipe","TestPipe",wue);/** + */const _ue=[["path",{d:"M6.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3",key:"svg-1"}]],xue=nn("outline","tag","Tag",_ue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const _ue=[["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"}]],xue=tn("outline","trash-x","TrashX",_ue);/** + */const Sue=[["path",{d:"M20 8.04l-12.122 12.124a2.857 2.857 0 1 1 -4.041 -4.04l12.122 -12.124",key:"svg-0"}],["path",{d:"M7 13h8",key:"svg-1"}],["path",{d:"M19 15l1.5 1.6a2 2 0 1 1 -3 0l1.5 -1.6",key:"svg-2"}],["path",{d:"M15 3l6 6",key:"svg-3"}]],Cue=nn("outline","test-pipe","TestPipe",Sue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Sue=[["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"}]],vo=tn("outline","trash","Trash",Sue);/** + */const jue=[["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"}]],Aue=nn("outline","trash-x","TrashX",jue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Cue=[["path",{d:"M3 17l6 -6l4 4l8 -8",key:"svg-0"}],["path",{d:"M14 7l7 0l0 7",key:"svg-1"}]],l4=tn("outline","trending-up","TrendingUp",Cue);/** + */const Oue=[["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"}]],vo=nn("outline","trash","Trash",Oue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const jue=[["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"}]],Aue=tn("outline","upload","Upload",jue);/** + */const Tue=[["path",{d:"M3 17l6 -6l4 4l8 -8",key:"svg-0"}],["path",{d:"M14 7l7 0l0 7",key:"svg-1"}]],l4=nn("outline","trending-up","TrendingUp",Tue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Oue=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-1"}],["path",{d:"M15 19l2 2l4 -4",key:"svg-2"}]],Tue=tn("outline","user-check","UserCheck",Oue);/** + */const Eue=[["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"}]],Mue=nn("outline","upload","Upload",Eue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Eue=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855",key:"svg-2"}]],Mue=tn("outline","user-circle","UserCircle",Eue);/** + */const Due=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-1"}],["path",{d:"M15 19l2 2l4 -4",key:"svg-2"}]],Rue=nn("outline","user-check","UserCheck",Due);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Due=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.348 0 .686 .045 1.009 .128",key:"svg-1"}],["path",{d:"M16 19h6",key:"svg-2"}]],Rue=tn("outline","user-minus","UserMinus",Due);/** + */const Pue=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855",key:"svg-2"}]],Nue=nn("outline","user-circle","UserCircle",Pue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Pue=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]],Nue=tn("outline","user-plus","UserPlus",Pue);/** + */const $ue=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.348 0 .686 .045 1.009 .128",key:"svg-1"}],["path",{d:"M16 19h6",key:"svg-2"}]],zue=nn("outline","user-minus","UserMinus",$ue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const $ue=[["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1",key:"svg-1"}],["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-2"}]],zue=tn("outline","user-square","UserSquare",$ue);/** + */const Lue=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]],Iue=nn("outline","user-plus","UserPlus",Lue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Lue=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],Iue=tn("outline","user","User",Lue);/** + */const Bue=[["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1",key:"svg-1"}],["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-2"}]],Fue=nn("outline","user-square","UserSquare",Bue);/** * @license @tabler/icons-react v3.42.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const Bue=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],qh=tn("outline","x","X",Bue);function Fue(e,n,t){const i=e.replace(/]/g,"");return t?`![${i}](${n})`:`[${i}](${n})`}function tH({initial:e,submitLabel:n="Guardar",users:t=[],requesterOptions:i=[],tagOptions:r=[],cardId:a,onFileUploaded:o,onSubmit:l,onCancel:u}){const[f,h]=x.useState((e==null?void 0:e.requester)??""),[d,p]=x.useState((e==null?void 0:e.title)??""),[g,b]=x.useState((e==null?void 0:e.description)??""),[w,k]=x.useState((e==null?void 0:e.assignee_id)??null),[_,S]=x.useState((e==null?void 0:e.tags)??[]),[j,T]=x.useState(!1),[A,O]=x.useState(!1),M=x.useRef(null),$=async R=>{R==null||R.preventDefault();const D=d.trim();D&&await l({requester:f.trim(),title:D,description:g,assignee_id:w,tags:_})},q=R=>{R.key==="Enter"&&(R.ctrlKey||R.metaKey)&&(R.preventDefault(),$())},P=R=>{const D=M.current;if(!D){b(I=>I?I+` -`+R:R);return}const z=D.selectionStart??g.length,H=D.selectionEnd??g.length,Y=g.slice(0,z),N=g.slice(H),W=Y&&!Y.endsWith(` + */const que=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],Hue=nn("outline","user","User",que);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Uue=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],qh=nn("outline","x","X",Uue);function Vue(e,n,t){const i=e.replace(/]/g,"");return t?`![${i}](${n})`:`[${i}](${n})`}function tH({initial:e,submitLabel:n="Guardar",users:t=[],requesterOptions:i=[],tagOptions:r=[],cardId:a,onFileUploaded:o,onSubmit:l,onCancel:u}){const[f,h]=S.useState((e==null?void 0:e.requester)??""),[d,p]=S.useState((e==null?void 0:e.title)??""),[g,b]=S.useState((e==null?void 0:e.description)??""),[w,k]=S.useState((e==null?void 0:e.assignee_id)??null),[_,x]=S.useState((e==null?void 0:e.tags)??[]),[C,T]=S.useState(!1),[A,O]=S.useState(!1),M=S.useRef(null),$=async N=>{N==null||N.preventDefault();const D=d.trim();D&&await l({requester:f.trim(),title:D,description:g,assignee_id:w,tags:_})},q=N=>{N.key==="Enter"&&(N.ctrlKey||N.metaKey)&&(N.preventDefault(),$())},R=N=>{const D=M.current;if(!D){b(B=>B?B+` +`+N:N);return}const L=D.selectionStart??g.length,H=D.selectionEnd??g.length,Y=g.slice(0,L),P=g.slice(H),G=Y&&!Y.endsWith(` `)?` -`:"",V=Y+W+R+N;b(V),queueMicrotask(()=>{D.focus();const I=(Y+W+R).length;D.setSelectionRange(I,I)})},L=async R=>{if(!a){hn.show({color:"yellow",message:"Guarda la tarjeta antes de subir archivos."});return}O(!0);try{for(const D of Array.from(R))try{const z=await v9(a,D,"description");P(Fue(z.filename,z.url,z.mime.startsWith("image/"))),o==null||o()}catch(z){hn.show({color:"red",message:`${D.name}: ${z.message}`})}}finally{O(!1)}},U=R=>{R.preventDefault(),T(!1),!(!R.dataTransfer.files||R.dataTransfer.files.length===0)&&L(R.dataTransfer.files)},G=R=>{a&&R.dataTransfer.types.includes("Files")&&(R.preventDefault(),T(!0))},B=R=>{R.preventDefault(),T(!1)};return v.jsx("form",{onSubmit:$,children:v.jsxs(kn,{gap:"sm",children:[v.jsx(_l,{label:"Tarea",value:d,onChange:R=>p(R.currentTarget.value),tabIndex:1,required:!0,autoComplete:"off","data-autofocus":!0,autosize:!0,minRows:1,maxRows:4,onKeyDown:R=>{R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),$())}}),v.jsx(Hy,{label:"Solicitante",value:f,onChange:h,data:i,tabIndex:2,autoComplete:"off","data-field":"requester",placeholder:"Empieza a escribir y elige uno existente",limit:10,onKeyDown:R=>{R.key==="Enter"&&R.preventDefault()}}),v.jsxs(fe,{onDrop:U,onDragOver:G,onDragLeave:B,style:{position:"relative",outline:j?"2px dashed var(--mantine-color-blue-5)":void 0,outlineOffset:j?2:void 0,borderRadius:4},children:[v.jsx(_l,{ref:M,label:"Descripcion",value:g,onChange:R=>b(R.currentTarget.value),tabIndex:3,autosize:!0,minRows:3,maxRows:8,onKeyDown:q,description:a?"Ctrl+Enter para guardar. Arrastra archivos para adjuntar.":"Ctrl+Enter para guardar"}),(j||A)&&v.jsx(fe,{style:{position:"absolute",inset:0,background:"rgba(34,139,230,0.08)",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",borderRadius:4},children:v.jsx(de,{size:"sm",fw:500,c:"blue",children:A?"Subiendo...":"Suelta para adjuntar"})})]}),v.jsx(jr,{label:"Asignar a",placeholder:"Sin asignar",value:w,onChange:R=>k(R),data:t.map(R=>({value:R.id,label:R.display_name||R.username})),clearable:!0,searchable:!0,tabIndex:4}),v.jsx(c9,{label:"Tags",value:_,onChange:S,data:r,clearable:!0,tabIndex:5,placeholder:"Enter para añadir; sugiere existentes",splitChars:[","," "]}),v.jsxs(Ee,{justify:"flex-end",gap:"xs",mt:"xs",children:[v.jsx(Yn,{variant:"subtle",color:"gray",tabIndex:7,type:"button",onClick:u,children:"Cancelar"}),v.jsx(Yn,{tabIndex:6,type:"submit",disabled:!d.trim(),children:n})]})]})})}function que(e,n){if(n.length===0)throw new Error("palette must not be empty");let t=0;for(let i=0;i>>0;return n[t%n.length]}const R9=new Set(["blue","cyan","teal","green","lime","yellow","orange","red","pink","grape","violet","indigo","gray","dark"]);function P9(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e)}function iH(e){return e?P9(e)?`color-mix(in srgb, ${e} 18%, var(--mantine-color-dark-6))`:R9.has(e)?`color-mix(in srgb, var(--mantine-color-${e}-9) 18%, var(--mantine-color-dark-6))`:"var(--mantine-color-dark-6)":"var(--mantine-color-dark-6)"}function N9(e){return e?P9(e)?`color-mix(in srgb, ${e} 30%, var(--mantine-color-dark-4))`:R9.has(e)?`color-mix(in srgb, var(--mantine-color-${e}-7) 30%, var(--mantine-color-dark-4))`:"var(--mantine-color-dark-4)":"var(--mantine-color-dark-4)"}function Hue(e){return e?P9(e)?e:R9.has(e)?`var(--mantine-color-${e}-7)`:"var(--mantine-color-dark-3)":"var(--mantine-color-dark-3)"}const rH=[{value:"",label:"Default"},{value:"blue",label:"Azul"},{value:"cyan",label:"Cian"},{value:"teal",label:"Teal"},{value:"green",label:"Verde"},{value:"lime",label:"Lima"},{value:"yellow",label:"Amarillo"},{value:"orange",label:"Naranja"},{value:"red",label:"Rojo"},{value:"pink",label:"Rosa"},{value:"grape",label:"Uva"},{value:"violet",label:"Violeta"},{value:"indigo",label:"Indigo"},{value:"gray",label:"Gris"},{value:"#0ea5e9",label:"Sky"},{value:"#14b8a6",label:"Esmeralda"},{value:"#84cc16",label:"Lima fluor"},{value:"#ec4899",label:"Magenta"},{value:"#a855f7",label:"Lavanda"},{value:"#f97316",label:"Mandarina"},{value:"#dc2626",label:"Rubi"},{value:"#0891b2",label:"Petroleo"},{value:"#fde047",label:"Limon"},{value:"#10b981",label:"Menta"},{value:"#fb7185",label:"Coral"},{value:"#6366f1",label:"Iris"},{value:"#94a3b8",label:"Pizarra"}],Uue=rH,Vue=["blue","cyan","teal","green","lime","yellow","orange","red","pink","grape","violet","indigo"];function Ru(e){return que(e,Vue)}const u4=6e4,Hh=60*u4,Wc=24*Hh,lg=7*Wc,i_=30*Wc;function ei(e){if(!Number.isFinite(e)||e<0)return"0m";if(et&&n.push({kind:"text",value:e.slice(t,i.index)}),i[1]){const r=Wue(i[3]);r?n.push({kind:"img",alt:i[2]||"",url:r}):n.push({kind:"text",value:i[0]})}else if(i[4]){const r=aH(i[6]);r?n.push({kind:"link",label:i[5],url:r}):n.push({kind:"text",value:i[0]})}t=r_.lastIndex}return t{i.length!==0&&(r.push(v.jsx(de,{size:n,style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:i.map((l,u)=>v.jsx(x.Fragment,{children:l},u))},`t-${a++}`)),i.length=0)};for(const l of t)l.kind==="img"?(o(),r.push(v.jsx(ho,{href:l.url,target:"_blank",rel:"noopener noreferrer",children:v.jsx(Xf,{src:l.url,alt:l.alt,maw:220,mah:220,fit:"contain",radius:"sm"})},`i-${a++}`))):l.kind==="link"?i.push(v.jsx(ho,{href:l.url,target:"_blank",rel:"noopener noreferrer",children:l.label},`l-${a++}`)):i.push(l.value);return o(),v.jsx(v.Fragment,{children:r})}function Kue(e,n,t){const i=e.replace(/]/g,"");return t.startsWith("image/")?`![${i}](${n})`:`[${i}](${n})`}const Xue=4e3,Zue=1500;function Que(e,n){for(let t=n-1;t>=0&&n-t<=64;t--){const i=e[t];if(i==="@"){if(t===0||/\s/.test(e[t-1])){const r=e.slice(t+1,n);if(/^[a-z0-9_.-]*$/i.test(r))return{start:t,query:r.toLowerCase()}}return null}if(/\s/.test(i))return null}return null}function Jue({cardId:e,users:n,currentUserId:t,onMessagesChange:i,onFileUploaded:r,highlightMessageId:a}){const[o,l]=x.useState([]),[u,f]=x.useState(!0),[h,d]=x.useState(""),[p,g]=x.useState(!1),[b,w]=x.useState(!1),[k,_]=x.useState(!1),[S,j]=x.useState({}),[T,A]=x.useState(null),O=x.useRef(null),M=x.useRef(null),$=x.useRef(null),q=x.useRef(0),P=x.useMemo(()=>new Map(n.map(Z=>[Z.id,Z])),[n]),L=x.useCallback(async()=>{try{const Z=await Dre(e);l(Z),i==null||i(Z)}catch(Z){hn.show({color:"red",message:Z.message})}finally{f(!1)}},[e,i]);x.useEffect(()=>{L()},[L]),x.useEffect(()=>{const Z=new WebSocket($re(e));return M.current=Z,Z.onmessage=le=>{try{const ee=JSON.parse(le.data);ee.type==="message.created"&&ee.message?l(se=>{if(se.some(te=>te.id===ee.message.id))return se;const ke=[...se,ee.message];return i==null||i(ke),ke}):ee.type==="typing"&&ee.user_id?j(se=>({...se,[ee.user_id]:Date.now()})):ee.type==="error"&&hn.show({color:"red",message:ee.error})}catch{}},Z.onerror=()=>{},()=>{Z.close(),M.current=null}},[e,i]),x.useEffect(()=>{const Z=setInterval(()=>{const le=Date.now();j(ee=>{const se={};for(const[ke,te]of Object.entries(ee))le-teclearInterval(Z)},[]),x.useEffect(()=>{O.current&&O.current.scrollTo({top:O.current.scrollHeight,behavior:"smooth"})},[o.length]);const[U,G]=x.useState(null);x.useEffect(()=>{if(!a||!o.some(ee=>ee.id===a))return;const Z=document.querySelector(`[data-msg-id="${a}"]`);Z&&Z instanceof HTMLElement&&Z.scrollIntoView({behavior:"smooth",block:"center"}),G(a);const le=setTimeout(()=>G(null),2200);return()=>clearTimeout(le)},[a,o]);const B=()=>{const Z=M.current;if(!Z||Z.readyState!==WebSocket.OPEN)return;const le=Date.now();le-q.currentA(null)}),D=x.useMemo(()=>T?n.filter(Z=>Z.username.toLowerCase().startsWith(T.query)).slice(0,8):[],[n,T]);x.useEffect(()=>{T&&D.length>0?(R.openDropdown(),R.selectFirstOption()):R.closeDropdown()},[T==null?void 0:T.query,D.length]);const z=Z=>{if(!T)return;const le=h.slice(0,T.start),ee=h.slice(T.start+1+T.query.length),se=`@${Z} `,ke=le+se+ee;d(ke),A(null),requestAnimationFrame(()=>{const te=$.current;if(!te)return;const $e=(le+se).length;te.focus(),te.setSelectionRange($e,$e)})},H=async()=>{const Z=h.trim();if(!Z||p)return;g(!0);const le=M.current;try{if(le&&le.readyState===WebSocket.OPEN)le.send(JSON.stringify({type:"send",body:Z})),d("");else{const ee=await cM(e,Z);l(se=>[...se,ee]),i==null||i([...o,ee]),d("")}}catch(ee){hn.show({color:"red",message:ee.message})}finally{g(!1)}},Y=async Z=>{try{await Rre(e,Z);const le=o.filter(ee=>ee.id!==Z);l(le),i==null||i(le)}catch(le){hn.show({color:"red",message:le.message})}},N=Z=>{d(Z.currentTarget.value),B();const le=Z.currentTarget.selectionStart??Z.currentTarget.value.length;A(Que(Z.currentTarget.value,le))},W=Z=>{if(T&&D.length>0&&(Z.key==="Enter"||Z.key==="Tab")){Z.preventDefault();const le=R.getSelectedOptionIndex(),ee=D[Math.max(0,le)];ee&&z(ee.username);return}if(T&&Z.key==="Escape"){A(null);return}Z.key==="Enter"&&!Z.shiftKey&&(Z.preventDefault(),H())},V=async Z=>{w(!0);try{for(const le of Array.from(Z))try{const ee=await v9(e,le,"chat"),se=Kue(ee.filename,ee.url,ee.mime),ke=await cM(e,se);l(te=>{const $e=[...te,ke];return i==null||i($e),$e}),r==null||r()}catch(ee){hn.show({color:"red",message:`${le.name}: ${ee.message}`})}}finally{w(!1)}},I=Z=>{Z.preventDefault(),_(!1),!(!Z.dataTransfer.files||Z.dataTransfer.files.length===0)&&V(Z.dataTransfer.files)},Q=Z=>{Z.dataTransfer.types.includes("Files")&&(Z.preventDefault(),_(!0))},ie=Z=>{Z.preventDefault(),_(!1)},re=Object.keys(S).filter(Z=>Z!==t).map(Z=>{const le=P.get(Z);return(le==null?void 0:le.display_name)||(le==null?void 0:le.username)||"alguien"});return v.jsxs(kn,{gap:"xs",style:{height:"100%",minHeight:0,position:"relative",outline:k?"2px dashed var(--mantine-color-blue-5)":void 0,outlineOffset:k?-2:void 0,borderRadius:4},onDrop:I,onDragOver:Q,onDragLeave:ie,children:[v.jsx(ur,{viewportRef:O,style:{flex:1,minHeight:200},type:"auto",offsetScrollbars:!0,children:u?v.jsx(Ee,{justify:"center",p:"md",children:v.jsx(Zt,{size:"sm"})}):o.length===0?v.jsx(de,{size:"sm",c:"dimmed",ta:"center",p:"md",children:"Sin mensajes aun. Escribe el primero o arrastra un archivo."}):v.jsx(kn,{gap:6,p:4,children:o.map(Z=>{const le=Z.author_id?P.get(Z.author_id):null,ee=Z.author_id&&Z.author_id===t,se=le?le.display_name||le.username:"Anonimo",ke=U===Z.id;return v.jsx(Tt,{withBorder:!0,p:"xs",radius:"sm","data-msg-id":Z.id,bg:ke?"var(--mantine-color-yellow-light)":ee?"var(--mantine-color-blue-light)":void 0,style:{transition:"background-color 600ms ease",boxShadow:ke?"0 0 0 2px var(--mantine-color-yellow-5)":void 0},children:v.jsxs(Ee,{gap:6,wrap:"nowrap",align:"flex-start",children:[v.jsx(mo,{size:22,radius:"xl",color:(le==null?void 0:le.color)||Ru(se),children:se.slice(0,2).toUpperCase()}),v.jsxs(fe,{style:{flex:1,minWidth:0},children:[v.jsxs(Ee,{gap:6,wrap:"nowrap",justify:"space-between",children:[v.jsxs(Ee,{gap:6,wrap:"nowrap",children:[v.jsx(de,{size:"xs",fw:600,children:se}),v.jsx(de,{size:"xs",c:"dimmed",children:Sl(Z.created_at)})]}),ee&&v.jsx(wt,{label:"Borrar",withArrow:!0,children:v.jsx(Jn,{size:"xs",variant:"subtle",color:"red",onClick:()=>Y(Z.id),children:v.jsx(vo,{size:12})})})]}),v.jsx(kn,{gap:4,children:v.jsx(Yue,{text:Z.body})})]})]})},Z.id)})})}),re.length>0&&v.jsx(de,{size:"xs",c:"dimmed",px:6,children:re.length===1?`${re[0]} esta escribiendo...`:`${re.slice(0,2).join(", ")}${re.length>2?"...":""} estan escribiendo...`}),v.jsxs(On,{store:R,onOptionSubmit:Z=>z(Z),position:"top-start",withinPortal:!1,children:[v.jsx(On.DropdownTarget,{children:v.jsxs(Ee,{gap:"xs",align:"flex-end",children:[v.jsx(_l,{ref:$,value:h,onChange:N,onKeyDown:W,placeholder:"Escribe un mensaje (Enter = enviar, @ para mencionar). Arrastra archivos o usa el clip.",autosize:!0,minRows:1,maxRows:6,style:{flex:1},disabled:p}),v.jsx(VC,{onChange:Z=>Z&&V([Z]),disabled:b,children:Z=>v.jsx(wt,{label:"Adjuntar archivo",withArrow:!0,children:v.jsx(Jn,{size:"lg",variant:"subtle",color:"gray","aria-label":"Adjuntar",loading:b,...Z,children:v.jsx(Qq,{size:16})})})}),v.jsx(wt,{label:"Enviar",withArrow:!0,children:v.jsx(Jn,{size:"lg",variant:"filled",color:"blue",onClick:H,disabled:!h.trim()||p,"aria-label":"Enviar",children:v.jsx(nH,{size:16})})})]})}),v.jsx(On.Dropdown,{hidden:!T||D.length===0,children:v.jsx(On.Options,{children:D.map(Z=>v.jsx(On.Option,{value:Z.username,children:v.jsxs(Ee,{gap:6,wrap:"nowrap",children:[v.jsx(mo,{size:18,radius:"xl",color:Z.color||Ru(Z.username),children:(Z.display_name||Z.username).slice(0,2).toUpperCase()}),v.jsxs(de,{size:"sm",fw:600,children:["@",Z.username]}),Z.display_name&&Z.display_name!==Z.username&&v.jsx(de,{size:"xs",c:"dimmed",children:Z.display_name})]})},Z.id))})})]}),(k||b)&&v.jsx(fe,{style:{position:"absolute",inset:0,background:"rgba(34,139,230,0.08)",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",borderRadius:4},children:v.jsx(de,{size:"sm",fw:500,c:"blue",children:b?"Subiendo...":"Suelta para adjuntar"})})]})}function ece(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(2)} MB`}function nce(e){return e.startsWith("image/")}function tce(e,n=18){const t=e.toLowerCase();return t.startsWith("image/")?v.jsx(oue,{size:n}):t==="application/pdf"?v.jsx(Rle,{size:n}):t.includes("spreadsheet")||t.includes("excel")||t==="text/csv"||t==="application/vnd.ms-excel"?v.jsx(Tle,{size:n}):t.startsWith("text/")?v.jsx(Mle,{size:n}):v.jsx(Nle,{size:n})}function ice(e){return e==="description"?{color:"blue",label:"descripcion"}:e==="chat"?{color:"teal",label:"chat"}:{color:"gray",label:"subido"}}function rce({cardId:e,refreshKey:n}){const[t,i]=x.useState([]),[r,a]=x.useState(!0),[o,l]=x.useState(!1),u=x.useCallback(async()=>{try{const d=await Kre(e);i(d)}catch(d){hn.show({color:"red",message:d.message})}finally{a(!1)}},[e]);x.useEffect(()=>{u()},[u,n]);const f=async d=>{if(d){l(!0);try{const p=await v9(e,d,"upload");i(g=>[...g,p])}catch(p){hn.show({color:"red",message:p.message})}finally{l(!1)}}},h=async d=>{if(window.confirm("¿Borrar este archivo?"))try{await Xre(d),i(p=>p.filter(g=>g.id!==d))}catch(p){hn.show({color:"red",message:p.message})}};return v.jsxs(kn,{gap:"xs",p:4,children:[v.jsxs(Ee,{justify:"space-between",children:[v.jsxs(de,{size:"xs",c:"dimmed",children:[t.length," archivo",t.length===1?"":"s"]}),v.jsx(VC,{onChange:f,disabled:o,children:d=>v.jsx(Yn,{size:"xs",variant:"light",leftSection:v.jsx(Aue,{size:14}),loading:o,...d,children:"Subir"})})]}),r?v.jsx(Ee,{justify:"center",p:"md",children:v.jsx(Zt,{size:"sm"})}):t.length===0?v.jsxs(kn,{gap:"xs",p:"md",align:"center",justify:"center",style:{minHeight:160},children:[v.jsx(de,{size:"sm",c:"dimmed",children:"Sin archivos"}),v.jsx(de,{size:"xs",c:"dimmed",ta:"center",children:"Sube archivos con el boton, arrastra al chat o a la descripcion."})]}):v.jsx(kn,{gap:6,children:t.map(d=>{const p=ice(d.source);return v.jsx(Tt,{withBorder:!0,p:"xs",radius:"sm",children:v.jsxs(Ee,{gap:"xs",wrap:"nowrap",align:"flex-start",children:[nce(d.mime)?v.jsx(ho,{href:d.url,target:"_blank",rel:"noopener noreferrer",children:v.jsx(Xf,{src:d.url,alt:d.filename,w:64,h:64,fit:"cover",radius:"sm"})}):v.jsx(fe,{style:{width:64,height:64,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--mantine-color-gray-1)",borderRadius:4},children:tce(d.mime,28)}),v.jsxs(fe,{style:{flex:1,minWidth:0},children:[v.jsx(ho,{href:d.url,target:"_blank",rel:"noopener noreferrer",size:"sm",style:{wordBreak:"break-all"},children:d.filename}),v.jsxs(Ee,{gap:6,mt:4,children:[v.jsx(Gn,{size:"xs",variant:"light",color:p.color,children:p.label}),v.jsx(de,{size:"xs",c:"dimmed",children:ece(d.size)}),v.jsx(de,{size:"xs",c:"dimmed",children:d.mime||"?"})]})]}),v.jsxs(Ee,{gap:4,wrap:"nowrap",children:[v.jsx(wt,{label:"Descargar",withArrow:!0,children:v.jsx(Jn,{component:"a",href:d.url,download:d.filename,variant:"subtle",size:"sm","aria-label":"Descargar",children:v.jsx(Gq,{size:14})})}),v.jsx(wt,{label:"Borrar",withArrow:!0,children:v.jsx(Jn,{variant:"subtle",color:"red",size:"sm",onClick:()=>h(d.id),"aria-label":"Borrar",children:v.jsx(vo,{size:14})})})]})]})},d.id)})})]})}const PM=/(https?:\/\/[^\s<>()"']+)/gi;function a_(e,n){if(!n)return[];const t=[],i=new Set;let r;for(PM.lastIndex=0;(r=PM.exec(n))!==null;){let a=r[1];a=a.replace(/[.,;:!?)\]}>]+$/,""),!i.has(a)&&(i.add(a),t.push({url:a,source:e,context:n}))}return t}function ace(e){try{return new URL(e).hostname}catch{return e}}function oce({card:e,messages:n}){const t=x.useMemo(()=>{const a=[...a_("title",e.title),...a_("description",e.description),...n.flatMap(l=>a_("chat",l.body))],o=new Set;return a.filter(l=>o.has(l.url)?!1:(o.add(l.url),!0))},[e.title,e.description,n]);if(t.length===0)return v.jsxs(kn,{gap:"xs",p:"md",align:"center",justify:"center",style:{minHeight:200},children:[v.jsx(de,{size:"sm",c:"dimmed",children:"Sin enlaces detectados"}),v.jsx(de,{size:"xs",c:"dimmed",ta:"center",children:"Pega URLs en el titulo, descripcion o chat y apareceran aqui."})]});const i=a=>a==="title"?"grape":a==="description"?"blue":"teal",r=a=>a==="title"?"titulo":a==="description"?"descripcion":"chat";return v.jsx(kn,{gap:6,p:4,children:t.map(a=>v.jsx(Tt,{withBorder:!0,p:"xs",radius:"sm",children:v.jsxs(Ee,{gap:"xs",wrap:"nowrap",justify:"space-between",align:"flex-start",children:[v.jsxs(fe,{style:{flex:1,minWidth:0},children:[v.jsx(ho,{href:a.url,target:"_blank",rel:"noopener noreferrer",size:"sm",style:{wordBreak:"break-all"},children:v.jsxs(Ee,{gap:4,wrap:"nowrap",align:"center",children:[v.jsx(Ale,{size:12}),v.jsx("span",{children:ace(a.url)})]})}),v.jsx(de,{size:"xs",c:"dimmed",style:{wordBreak:"break-all"},children:a.url})]}),v.jsx(Gn,{size:"xs",variant:"light",color:i(a.source),children:r(a.source)})]})},a.url))})}function sce({card:e,users:n,currentUserId:t,requesterOptions:i,tagOptions:r,onSubmit:a,onCancel:o,highlightMessageId:l}){const[u,f]=x.useState([]),[h,d]=x.useState(e),[p,g]=x.useState(0),b=async k=>{d(_=>({..._,title:k.title,description:k.description,requester:k.requester,tags:k.tags,assignee_id:k.assignee_id})),await a(k)},w=()=>g(k=>k+1);return v.jsxs(Ee,{align:"stretch",gap:"md",wrap:"nowrap",style:{minHeight:460},children:[v.jsx(fe,{style:{flex:"1 1 0",minWidth:320},children:v.jsx(tH,{users:n,requesterOptions:i,tagOptions:r,initial:{requester:h.requester,title:h.title,description:h.description,assignee_id:h.assignee_id,tags:h.tags||[]},submitLabel:"Guardar",cardId:h.id,onFileUploaded:w,onSubmit:b,onCancel:o})}),v.jsx(us,{orientation:"vertical"}),v.jsx(fe,{style:{flex:"1 1 0",minWidth:320,display:"flex",flexDirection:"column"},children:v.jsxs(Gt,{defaultValue:"chat",keepMounted:!1,style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[v.jsxs(Gt.List,{children:[v.jsx(Gt.Tab,{value:"chat",leftSection:v.jsx(Zq,{size:14}),children:"Chat"}),v.jsx(Gt.Tab,{value:"links",leftSection:v.jsx(Ule,{size:14}),children:"Enlaces"}),v.jsx(Gt.Tab,{value:"files",leftSection:v.jsx(Qq,{size:14}),children:"Archivos"})]}),v.jsxs(fe,{pt:"xs",style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[v.jsx(Gt.Panel,{value:"chat",style:{flex:1,minHeight:0,display:"flex"},children:v.jsx(fe,{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",width:"100%"},children:v.jsx(Jue,{cardId:h.id,users:n,currentUserId:t,onMessagesChange:f,onFileUploaded:w,highlightMessageId:l})})}),v.jsx(Gt.Panel,{value:"links",children:v.jsx(oce,{card:h,messages:u})}),v.jsx(Gt.Panel,{value:"files",children:v.jsx(rce,{cardId:h.id,refreshKey:p})})]})]})})]})}function lce(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const uce=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cce=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fce={};function NM(e,n){return(fce.jsx?cce:uce).test(e)}const dce=/[ \t\n\f\r]/g;function hce(e){return typeof e=="object"?e.type==="text"?$M(e.value):!1:$M(e)}function $M(e){return e.replace(dce,"")===""}class Op{constructor(n,t,i){this.normal=t,this.property=n,i&&(this.space=i)}}Op.prototype.normal={};Op.prototype.property={};Op.prototype.space=void 0;function oH(e,n){const t={},i={};for(const r of e)Object.assign(t,r.property),Object.assign(i,r.normal);return new Op(t,i,n)}function c4(e){return e.toLowerCase()}class Or{constructor(n,t){this.attribute=t,this.property=n}}Or.prototype.attribute="";Or.prototype.booleanish=!1;Or.prototype.boolean=!1;Or.prototype.commaOrSpaceSeparated=!1;Or.prototype.commaSeparated=!1;Or.prototype.defined=!1;Or.prototype.mustUseProperty=!1;Or.prototype.number=!1;Or.prototype.overloadedBoolean=!1;Or.prototype.property="";Or.prototype.spaceSeparated=!1;Or.prototype.space=void 0;let mce=0;const Hn=Gu(),gi=Gu(),f4=Gu(),Ve=Gu(),It=Gu(),Jc=Gu(),Br=Gu();function Gu(){return 2**++mce}const d4=Object.freeze(Object.defineProperty({__proto__:null,boolean:Hn,booleanish:gi,commaOrSpaceSeparated:Br,commaSeparated:Jc,number:Ve,overloadedBoolean:f4,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),o_=Object.keys(d4);class $9 extends Or{constructor(n,t,i,r){let a=-1;if(super(n,t),zM(this,"space",r),typeof i=="number")for(;++a4&&t.slice(0,4)==="data"&&bce.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(LM,_ce);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!LM.test(a)){let o=a.replace(yce,kce);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}r=$9}return new r(i,n)}function kce(e){return"-"+e.toLowerCase()}function _ce(e){return e.charAt(1).toUpperCase()}const xce=oH([sH,pce,cH,fH,dH],"html"),z9=oH([sH,vce,cH,fH,dH],"svg");function Sce(e){return e.join(" ").trim()}var $c={},s_,IM;function Cce(){if(IM)return s_;IM=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,u=` -`,f="/",h="*",d="",p="comment",g="declaration";function b(k,_){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];_=_||{};var S=1,j=1;function T(B){var R=B.match(n);R&&(S+=R.length);var D=B.lastIndexOf(u);j=~D?B.length-D:j+B.length}function A(){var B={line:S,column:j};return function(R){return R.position=new O(B),q(),R}}function O(B){this.start=B,this.end={line:S,column:j},this.source=_.source}O.prototype.content=k;function M(B){var R=new Error(_.source+":"+S+":"+j+": "+B);if(R.reason=B,R.filename=_.source,R.line=S,R.column=j,R.source=k,!_.silent)throw R}function $(B){var R=B.exec(k);if(R){var D=R[0];return T(D),k=k.slice(D.length),R}}function q(){$(t)}function P(B){var R;for(B=B||[];R=L();)R!==!1&&B.push(R);return B}function L(){var B=A();if(!(f!=k.charAt(0)||h!=k.charAt(1))){for(var R=2;d!=k.charAt(R)&&(h!=k.charAt(R)||f!=k.charAt(R+1));)++R;if(R+=2,d===k.charAt(R-1))return M("End of comment missing");var D=k.slice(2,R-2);return j+=2,T(D),k=k.slice(R),j+=2,B({type:p,comment:D})}}function U(){var B=A(),R=$(i);if(R){if(L(),!$(r))return M("property missing ':'");var D=$(a),z=B({type:g,property:w(R[0].replace(e,d)),value:D?w(D[0].replace(e,d)):d});return $(o),z}}function G(){var B=[];P(B);for(var R;R=U();)R!==!1&&(B.push(R),P(B));return B}return q(),G()}function w(k){return k?k.replace(l,d):d}return s_=b,s_}var BM;function jce(){if(BM)return $c;BM=1;var e=$c&&$c.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($c,"__esModule",{value:!0}),$c.default=t;const n=e(Cce());function t(i,r){let a=null;if(!i||typeof i!="string")return a;const o=(0,n.default)(i),l=typeof r=="function";return o.forEach(u=>{if(u.type!=="declaration")return;const{property:f,value:h}=u;l?r(f,h,u):h&&(a=a||{},a[f]=h)}),a}return $c}var _h={},FM;function Ace(){if(FM)return _h;FM=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,a=function(f){return!f||t.test(f)||e.test(f)},o=function(f,h){return h.toUpperCase()},l=function(f,h){return"".concat(h,"-")},u=function(f,h){return h===void 0&&(h={}),a(f)?f:(f=f.toLowerCase(),h.reactCompat?f=f.replace(r,l):f=f.replace(i,l),f.replace(n,o))};return _h.camelCase=u,_h}var xh,qM;function Oce(){if(qM)return xh;qM=1;var e=xh&&xh.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},n=e(jce()),t=Ace();function i(r,a){var o={};return!r||typeof r!="string"||(0,n.default)(r,function(l,u){l&&u&&(o[(0,t.camelCase)(l,a)]=u)}),o}return i.default=i,xh=i,xh}var Tce=Oce();const Ece=yt(Tce),hH=mH("end"),L9=mH("start");function mH(e){return n;function n(t){const i=t&&t.position&&t.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Mce(e){const n=L9(e),t=hH(e);if(n&&t)return{start:n,end:t}}function Jh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?HM(e.position):"start"in e||"end"in e?HM(e):"line"in e||"column"in e?h4(e):""}function h4(e){return UM(e&&e.line)+":"+UM(e&&e.column)}function HM(e){return h4(e&&e.start)+"-"+h4(e&&e.end)}function UM(e){return e&&typeof e=="number"?e:1}class nr extends Error{constructor(n,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?r=n:!a.cause&&n&&(o=!0,r=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?a.ruleId=i:(a.source=i.slice(0,u),a.ruleId=i.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Jh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nr.prototype.file="";nr.prototype.name="";nr.prototype.reason="";nr.prototype.message="";nr.prototype.stack="";nr.prototype.column=void 0;nr.prototype.line=void 0;nr.prototype.ancestors=void 0;nr.prototype.cause=void 0;nr.prototype.fatal=void 0;nr.prototype.place=void 0;nr.prototype.ruleId=void 0;nr.prototype.source=void 0;const I9={}.hasOwnProperty,Dce=new Map,Rce=/[A-Z]/g,Pce=new Set(["table","tbody","thead","tfoot","tr"]),Nce=new Set(["td","th"]),pH="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $ce(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Uce(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Hce(t,n.jsx,n.jsxs)}const r={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?z9:xce,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=vH(r,e,void 0);return a&&typeof a!="string"?a:r.create(e,r.Fragment,{children:a||void 0},void 0)}function vH(e,n,t){if(n.type==="element")return zce(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Lce(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Bce(e,n,t);if(n.type==="mdxjsEsm")return Ice(e,n);if(n.type==="root")return Fce(e,n,t);if(n.type==="text")return qce(e,n)}function zce(e,n,t){const i=e.schema;let r=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=z9,e.schema=r),e.ancestors.push(n);const a=yH(e,n.tagName,!1),o=Vce(e,n);let l=F9(e,n);return Pce.has(n.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!hce(u):!0})),gH(e,o,a,n),B9(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function Lce(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}km(e,n.position)}function Ice(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);km(e,n.position)}function Bce(e,n,t){const i=e.schema;let r=i;n.name==="svg"&&i.space==="html"&&(r=z9,e.schema=r),e.ancestors.push(n);const a=n.name===null?e.Fragment:yH(e,n.name,!0),o=Wce(e,n),l=F9(e,n);return gH(e,o,a,n),B9(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function Fce(e,n,t){const i={};return B9(i,F9(e,n)),e.create(n,e.Fragment,i,t)}function qce(e,n){return n.value}function gH(e,n,t,i){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=i)}function B9(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Hce(e,n,t){return i;function i(r,a,o,l){const f=Array.isArray(o.children)?t:n;return l?f(a,o,l):f(a,o)}}function Uce(e,n){return t;function t(i,r,a,o){const l=Array.isArray(a.children),u=L9(i);return n(r,a,o,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Vce(e,n){const t={};let i,r;for(r in n.properties)if(r!=="children"&&I9.call(n.properties,r)){const a=Gce(e,r,n.properties[r]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Nce.has(n.tagName)?i=l:t[o]=l}}if(i){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return t}function Wce(e,n){const t={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(t,e.evaluater.evaluateExpression(l.argument))}else km(e,n.position);else{const r=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const l=i.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else km(e,n.position);else a=i.value===null?!0:i.value;t[r]=a}return t}function F9(e,n){const t=[];let i=-1;const r=e.passKeys?new Map:Dce;for(;++ir?0:r+n:n=n>r?r:n,t=t>0?t:0,i.length<1e4)o=Array.from(i),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a0?(Yr(e,e.length,0,n),e):n}const GM={}.hasOwnProperty;function wH(e){const n={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ar=Rl(/[A-Za-z]/),er=Rl(/[\dA-Za-z]/),tfe=Rl(/[#-'*+\--9=?A-Z^-~]/);function d1(e){return e!==null&&(e<32||e===127)}const m4=Rl(/\d/),ife=Rl(/[\dA-Fa-f]/),rfe=Rl(/[!-/:-@[-`{-~]/);function Cn(e){return e!==null&&e<-2}function zt(e){return e!==null&&(e<0||e===32)}function rt(e){return e===-2||e===-1||e===32}const R0=Rl(new RegExp("\\p{P}|\\p{S}","u")),Pu=Rl(/\s/);function Rl(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function od(e){const n=[];let t=-1,i=0,r=0;for(;++t55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),r=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(i,t),encodeURIComponent(o)),i=t+r+1,o=""),r&&(t+=r,r=0)}return n.join("")+e.slice(i)}function dt(e,n,t,i){const r=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(u){return rt(u)?(e.enter(t),l(u)):n(u)}function l(u){return rt(u)&&a++o))return;const M=n.events.length;let $=M,q,P;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(q){P=n.events[$][1].end;break}q=!0}for(_(i),O=M;Oj;){const A=t[T];n.containerState=A[1],A[0].exit.call(n,e)}t.length=j}function S(){r.write([null]),a=void 0,r=void 0,n.containerState._closeFlow=void 0}}function ufe(e,n,t){return dt(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function df(e){if(e===null||zt(e)||Pu(e))return 1;if(R0(e))return 2}function P0(e,n,t){const i=[];let r=-1;for(;++r1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const d={...e[i][1].end},p={...e[t][1].start};KM(d,-u),KM(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[t][1].start={...l.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=va(f,[["enter",e[i][1],n],["exit",e[i][1],n]])),f=va(f,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",a,n]]),f=va(f,P0(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),f=va(f,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,f=va(f,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,Yr(e,i-1,t-i+3,f),t=i+f.length-h-2;break}}for(t=-1;++t0&&rt(O)?dt(e,S,"linePrefix",a+1)(O):S(O)}function S(O){return O===null||Cn(O)?e.check(XM,w,T)(O):(e.enter("codeFlowValue"),j(O))}function j(O){return O===null||Cn(O)?(e.exit("codeFlowValue"),S(O)):(e.consume(O),j)}function T(O){return e.exit("codeFenced"),n(O)}function A(O,M,$){let q=0;return P;function P(R){return O.enter("lineEnding"),O.consume(R),O.exit("lineEnding"),L}function L(R){return O.enter("codeFencedFence"),rt(R)?dt(O,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):U(R)}function U(R){return R===l?(O.enter("codeFencedFenceSequence"),G(R)):$(R)}function G(R){return R===l?(q++,O.consume(R),G):q>=o?(O.exit("codeFencedFenceSequence"),rt(R)?dt(O,B,"whitespace")(R):B(R)):$(R)}function B(R){return R===null||Cn(R)?(O.exit("codeFencedFence"),M(R)):$(R)}}}function kfe(e,n,t){const i=this;return r;function r(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}const u_={name:"codeIndented",tokenize:xfe},_fe={partial:!0,tokenize:Sfe};function xfe(e,n,t){const i=this;return r;function r(f){return e.enter("codeIndented"),dt(e,a,"linePrefix",5)(f)}function a(f){const h=i.events[i.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(f):t(f)}function o(f){return f===null?u(f):Cn(f)?e.attempt(_fe,o,u)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||Cn(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),l)}function u(f){return e.exit("codeIndented"),n(f)}}function Sfe(e,n,t){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?t(o):Cn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):dt(e,a,"linePrefix",5)(o)}function a(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):Cn(o)?r(o):t(o)}}const Cfe={name:"codeText",previous:Afe,resolve:jfe,tokenize:Ofe};function jfe(e){let n=e.length-4,t=3,i,r;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,t,i){const r=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Sh(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Sh(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Sh(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(o):e.interrupt(i.parser.constructs.flow,t,n)(o)}}function jH(e,n,t,i,r,a,o,l,u){const f=u||Number.POSITIVE_INFINITY;let h=0;return d;function d(_){return _===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(_),e.exit(a),p):_===null||_===32||_===41||d1(_)?t(_):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(_))}function p(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(r),e.exit(i),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===62?(e.exit("chunkString"),e.exit(l),p(_)):_===null||_===60||Cn(_)?t(_):(e.consume(_),_===92?b:g)}function b(_){return _===60||_===62||_===92?(e.consume(_),g):g(_)}function w(_){return!h&&(_===null||_===41||zt(_))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),n(_)):h999||g===null||g===91||g===93&&!u||g===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(g):g===93?(e.exit(a),e.enter(r),e.consume(g),e.exit(r),e.exit(i),n):Cn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||g===91||g===93||Cn(g)||l++>999?(e.exit("chunkString"),h(g)):(e.consume(g),u||(u=!rt(g)),g===92?p:d)}function p(g){return g===91||g===92||g===93?(e.consume(g),l++,d):d(g)}}function OH(e,n,t,i,r,a){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(i),e.enter(r),e.consume(p),e.exit(r),o=p===40?41:p,u):t(p)}function u(p){return p===o?(e.enter(r),e.consume(p),e.exit(r),e.exit(i),n):(e.enter(a),f(p))}function f(p){return p===o?(e.exit(a),u(o)):p===null?t(p):Cn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),dt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||Cn(p)?(e.exit("chunkString"),f(p)):(e.consume(p),p===92?d:h)}function d(p){return p===o||p===92?(e.consume(p),h):h(p)}}function em(e,n){let t;return i;function i(r){return Cn(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t=!0,i):rt(r)?dt(e,i,t?"linePrefix":"lineSuffix")(r):n(r)}}const $fe={name:"definition",tokenize:Lfe},zfe={partial:!0,tokenize:Ife};function Lfe(e,n,t){const i=this;let r;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return AH.call(i,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return r=qa(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):t(g)}function u(g){return zt(g)?em(e,f)(g):f(g)}function f(g){return jH(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function h(g){return e.attempt(zfe,d,d)(g)}function d(g){return rt(g)?dt(e,p,"whitespace")(g):p(g)}function p(g){return g===null||Cn(g)?(e.exit("definition"),i.parser.defined.push(r),n(g)):t(g)}}function Ife(e,n,t){return i;function i(l){return zt(l)?em(e,r)(l):t(l)}function r(l){return OH(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return rt(l)?dt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Cn(l)?n(l):t(l)}}const Bfe={name:"hardBreakEscape",tokenize:Ffe};function Ffe(e,n,t){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return Cn(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const qfe={name:"headingAtx",resolve:Hfe,tokenize:Ufe};function Hfe(e,n){let t=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},a={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},Yr(e,i,t-i+1,[["enter",r,n],["enter",a,n],["exit",a,n],["exit",r,n]])),e}function Ufe(e,n,t){let i=0;return r;function r(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&i++<6?(e.consume(h),o):h===null||zt(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),u(h)):h===null||Cn(h)?(e.exit("atxHeading"),n(h)):rt(h)?dt(e,l,"whitespace")(h):(e.enter("atxHeadingText"),f(h))}function u(h){return h===35?(e.consume(h),u):(e.exit("atxHeadingSequence"),l(h))}function f(h){return h===null||h===35||zt(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),f)}}const Vfe=["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"],QM=["pre","script","style","textarea"],Wfe={concrete:!0,name:"htmlFlow",resolveTo:Kfe,tokenize:Xfe},Gfe={partial:!0,tokenize:Qfe},Yfe={partial:!0,tokenize:Zfe};function Kfe(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Xfe(e,n,t){const i=this;let r,a,o,l,u;return f;function f(I){return h(I)}function h(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),d}function d(I){return I===33?(e.consume(I),p):I===47?(e.consume(I),a=!0,w):I===63?(e.consume(I),r=3,i.interrupt?n:N):ar(I)?(e.consume(I),o=String.fromCharCode(I),k):t(I)}function p(I){return I===45?(e.consume(I),r=2,g):I===91?(e.consume(I),r=5,l=0,b):ar(I)?(e.consume(I),r=4,i.interrupt?n:N):t(I)}function g(I){return I===45?(e.consume(I),i.interrupt?n:N):t(I)}function b(I){const Q="CDATA[";return I===Q.charCodeAt(l++)?(e.consume(I),l===Q.length?i.interrupt?n:U:b):t(I)}function w(I){return ar(I)?(e.consume(I),o=String.fromCharCode(I),k):t(I)}function k(I){if(I===null||I===47||I===62||zt(I)){const Q=I===47,ie=o.toLowerCase();return!Q&&!a&&QM.includes(ie)?(r=1,i.interrupt?n(I):U(I)):Vfe.includes(o.toLowerCase())?(r=6,Q?(e.consume(I),_):i.interrupt?n(I):U(I)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(I):a?S(I):j(I))}return I===45||er(I)?(e.consume(I),o+=String.fromCharCode(I),k):t(I)}function _(I){return I===62?(e.consume(I),i.interrupt?n:U):t(I)}function S(I){return rt(I)?(e.consume(I),S):P(I)}function j(I){return I===47?(e.consume(I),P):I===58||I===95||ar(I)?(e.consume(I),T):rt(I)?(e.consume(I),j):P(I)}function T(I){return I===45||I===46||I===58||I===95||er(I)?(e.consume(I),T):A(I)}function A(I){return I===61?(e.consume(I),O):rt(I)?(e.consume(I),A):j(I)}function O(I){return I===null||I===60||I===61||I===62||I===96?t(I):I===34||I===39?(e.consume(I),u=I,M):rt(I)?(e.consume(I),O):$(I)}function M(I){return I===u?(e.consume(I),u=null,q):I===null||Cn(I)?t(I):(e.consume(I),M)}function $(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||zt(I)?A(I):(e.consume(I),$)}function q(I){return I===47||I===62||rt(I)?j(I):t(I)}function P(I){return I===62?(e.consume(I),L):t(I)}function L(I){return I===null||Cn(I)?U(I):rt(I)?(e.consume(I),L):t(I)}function U(I){return I===45&&r===2?(e.consume(I),D):I===60&&r===1?(e.consume(I),z):I===62&&r===4?(e.consume(I),W):I===63&&r===3?(e.consume(I),N):I===93&&r===5?(e.consume(I),Y):Cn(I)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Gfe,V,G)(I)):I===null||Cn(I)?(e.exit("htmlFlowData"),G(I)):(e.consume(I),U)}function G(I){return e.check(Yfe,B,V)(I)}function B(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),R}function R(I){return I===null||Cn(I)?G(I):(e.enter("htmlFlowData"),U(I))}function D(I){return I===45?(e.consume(I),N):U(I)}function z(I){return I===47?(e.consume(I),o="",H):U(I)}function H(I){if(I===62){const Q=o.toLowerCase();return QM.includes(Q)?(e.consume(I),W):U(I)}return ar(I)&&o.length<8?(e.consume(I),o+=String.fromCharCode(I),H):U(I)}function Y(I){return I===93?(e.consume(I),N):U(I)}function N(I){return I===62?(e.consume(I),W):I===45&&r===2?(e.consume(I),N):U(I)}function W(I){return I===null||Cn(I)?(e.exit("htmlFlowData"),V(I)):(e.consume(I),W)}function V(I){return e.exit("htmlFlow"),n(I)}}function Zfe(e,n,t){const i=this;return r;function r(o){return Cn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}function Qfe(e,n,t){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Tp,n,t)}}const Jfe={name:"htmlText",tokenize:ede};function ede(e,n,t){const i=this;let r,a,o;return l;function l(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),f):N===47?(e.consume(N),A):N===63?(e.consume(N),j):ar(N)?(e.consume(N),$):t(N)}function f(N){return N===45?(e.consume(N),h):N===91?(e.consume(N),a=0,b):ar(N)?(e.consume(N),S):t(N)}function h(N){return N===45?(e.consume(N),g):t(N)}function d(N){return N===null?t(N):N===45?(e.consume(N),p):Cn(N)?(o=d,z(N)):(e.consume(N),d)}function p(N){return N===45?(e.consume(N),g):d(N)}function g(N){return N===62?D(N):N===45?p(N):d(N)}function b(N){const W="CDATA[";return N===W.charCodeAt(a++)?(e.consume(N),a===W.length?w:b):t(N)}function w(N){return N===null?t(N):N===93?(e.consume(N),k):Cn(N)?(o=w,z(N)):(e.consume(N),w)}function k(N){return N===93?(e.consume(N),_):w(N)}function _(N){return N===62?D(N):N===93?(e.consume(N),_):w(N)}function S(N){return N===null||N===62?D(N):Cn(N)?(o=S,z(N)):(e.consume(N),S)}function j(N){return N===null?t(N):N===63?(e.consume(N),T):Cn(N)?(o=j,z(N)):(e.consume(N),j)}function T(N){return N===62?D(N):j(N)}function A(N){return ar(N)?(e.consume(N),O):t(N)}function O(N){return N===45||er(N)?(e.consume(N),O):M(N)}function M(N){return Cn(N)?(o=M,z(N)):rt(N)?(e.consume(N),M):D(N)}function $(N){return N===45||er(N)?(e.consume(N),$):N===47||N===62||zt(N)?q(N):t(N)}function q(N){return N===47?(e.consume(N),D):N===58||N===95||ar(N)?(e.consume(N),P):Cn(N)?(o=q,z(N)):rt(N)?(e.consume(N),q):D(N)}function P(N){return N===45||N===46||N===58||N===95||er(N)?(e.consume(N),P):L(N)}function L(N){return N===61?(e.consume(N),U):Cn(N)?(o=L,z(N)):rt(N)?(e.consume(N),L):q(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?t(N):N===34||N===39?(e.consume(N),r=N,G):Cn(N)?(o=U,z(N)):rt(N)?(e.consume(N),U):(e.consume(N),B)}function G(N){return N===r?(e.consume(N),r=void 0,R):N===null?t(N):Cn(N)?(o=G,z(N)):(e.consume(N),G)}function B(N){return N===null||N===34||N===39||N===60||N===61||N===96?t(N):N===47||N===62||zt(N)?q(N):(e.consume(N),B)}function R(N){return N===47||N===62||zt(N)?q(N):t(N)}function D(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),n):t(N)}function z(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),H}function H(N){return rt(N)?dt(e,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Y(N)}function Y(N){return e.enter("htmlTextData"),o(N)}}const U9={name:"labelEnd",resolveAll:rde,resolveTo:ade,tokenize:ode},nde={tokenize:sde},tde={tokenize:lde},ide={tokenize:ude};function rde(e){let n=-1;const t=[];for(;++n=3&&(f===null||Cn(f))?(e.exit("thematicBreak"),n(f)):t(f)}function u(f){return f===r?(e.consume(f),i++,u):(e.exit("thematicBreakSequence"),rt(f)?dt(e,l,"whitespace")(f):l(f))}}const _r={continuation:{tokenize:bde},exit:kde,name:"list",tokenize:yde},vde={partial:!0,tokenize:_de},gde={partial:!0,tokenize:wde};function yde(e,n,t){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(g){const b=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:m4(g)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(qg,t,f)(g):f(g);if(!i.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return t(g)}function u(g){return m4(g)&&++o<10?(e.consume(g),u):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),f(g)):t(g)}function f(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,e.check(Tp,i.interrupt?t:h,e.attempt(vde,p,d))}function h(g){return i.containerState.initialBlankLine=!0,a++,p(g)}function d(g){return rt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):t(g)}function p(g){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(g)}}function bde(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Tp,r,a);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,dt(e,n,"listItemIndent",i.containerState.size+1)(l)}function a(l){return i.containerState.furtherBlankLines||!rt(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(gde,n,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,dt(e,e.attempt(_r,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function wde(e,n,t){const i=this;return dt(e,r,"listItemIndent",i.containerState.size+1);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):t(a)}}function kde(e){e.exit(this.containerState.type)}function _de(e,n,t){const i=this;return dt(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const o=i.events[i.events.length-1];return!rt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const JM={name:"setextUnderline",resolveTo:xde,tokenize:Sde};function xde(e,n){let t=e.length,i,r,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(r=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end={...e[a][1].end}):e[i][1]=o,e.push(["exit",o,n]),e}function Sde(e,n,t){const i=this;let r;return a;function a(f){let h=i.events.length,d;for(;h--;)if(i.events[h][1].type!=="lineEnding"&&i.events[h][1].type!=="linePrefix"&&i.events[h][1].type!=="content"){d=i.events[h][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=f,o(f)):t(f)}function o(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===r?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),rt(f)?dt(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||Cn(f)?(e.exit("setextHeadingLine"),n(f)):t(f)}}const Cde={tokenize:jde};function jde(e){const n=this,t=e.attempt(Tp,i,e.attempt(this.parser.constructs.flowInitial,r,dt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Mfe,r)),"linePrefix")));return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ade={resolveAll:EH()},Ode=TH("string"),Tde=TH("text");function TH(e){return{resolveAll:EH(e==="text"?Ede:void 0),tokenize:n};function n(t){const i=this,r=this.parser.constructs[e],a=t.attempt(r,o,l);return o;function o(h){return f(h)?a(h):l(h)}function l(h){if(h===null){t.consume(h);return}return t.enter("data"),t.consume(h),u}function u(h){return f(h)?(t.exit("data"),a(h)):(t.consume(h),u)}function f(h){if(h===null)return!0;const d=r[h];let p=-1;if(d)for(;++p-1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}a>0&&o.push(e[r].slice(0,a))}return o}function Hde(e,n){let t=-1;const i=[];let r;for(;++t{D.focus();const B=(Y+G+N).length;D.setSelectionRange(B,B)})},I=async N=>{if(!a){sn.show({color:"yellow",message:"Guarda la tarjeta antes de subir archivos."});return}O(!0);try{for(const D of Array.from(N))try{const L=await v9(a,D,"description");R(Vue(L.filename,L.url,L.mime.startsWith("image/"))),o==null||o()}catch(L){sn.show({color:"red",message:`${D.name}: ${L.message}`})}}finally{O(!1)}},z=N=>{N.preventDefault(),T(!1),!(!N.dataTransfer.files||N.dataTransfer.files.length===0)&&I(N.dataTransfer.files)},W=N=>{a&&N.dataTransfer.types.includes("Files")&&(N.preventDefault(),T(!0))},U=N=>{N.preventDefault(),T(!1)};return v.jsx("form",{onSubmit:$,children:v.jsxs(bn,{gap:"sm",children:[v.jsx(_l,{label:"Tarea",value:d,onChange:N=>p(N.currentTarget.value),tabIndex:1,required:!0,autoComplete:"off","data-autofocus":!0,autosize:!0,minRows:1,maxRows:4,onKeyDown:N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),$())}}),v.jsx(Uy,{label:"Solicitante",value:f,onChange:h,data:i,tabIndex:2,autoComplete:"off","data-field":"requester",placeholder:"Empieza a escribir y elige uno existente",limit:10,onKeyDown:N=>{N.key==="Enter"&&N.preventDefault()}}),v.jsxs(de,{onDrop:z,onDragOver:W,onDragLeave:U,style:{position:"relative",outline:C?"2px dashed var(--mantine-color-blue-5)":void 0,outlineOffset:C?2:void 0,borderRadius:4},children:[v.jsx(_l,{ref:M,label:"Descripcion",value:g,onChange:N=>b(N.currentTarget.value),tabIndex:3,autosize:!0,minRows:3,maxRows:8,onKeyDown:q,description:a?"Ctrl+Enter para guardar. Arrastra archivos para adjuntar.":"Ctrl+Enter para guardar"}),(C||A)&&v.jsx(de,{style:{position:"absolute",inset:0,background:"rgba(34,139,230,0.08)",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",borderRadius:4},children:v.jsx(fe,{size:"sm",fw:500,c:"blue",children:A?"Subiendo...":"Suelta para adjuntar"})})]}),v.jsx(Ar,{label:"Asignar a",placeholder:"Sin asignar",value:w,onChange:N=>k(N),data:t.map(N=>({value:N.id,label:N.display_name||N.username})),clearable:!0,searchable:!0,tabIndex:4}),v.jsx(c9,{label:"Tags",value:_,onChange:x,data:r,clearable:!0,tabIndex:5,placeholder:"Enter para añadir; sugiere existentes",splitChars:[","," "]}),v.jsxs(je,{justify:"flex-end",gap:"xs",mt:"xs",children:[v.jsx(Vn,{variant:"subtle",color:"gray",tabIndex:7,type:"button",onClick:u,children:"Cancelar"}),v.jsx(Vn,{tabIndex:6,type:"submit",disabled:!d.trim(),children:n})]})]})})}function Wue(e,n){if(n.length===0)throw new Error("palette must not be empty");let t=0;for(let i=0;i>>0;return n[t%n.length]}const P9=new Set(["blue","cyan","teal","green","lime","yellow","orange","red","pink","grape","violet","indigo","gray","dark"]);function N9(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e)}function iH(e){return e?N9(e)?`color-mix(in srgb, ${e} 18%, var(--mantine-color-dark-6))`:P9.has(e)?`color-mix(in srgb, var(--mantine-color-${e}-9) 18%, var(--mantine-color-dark-6))`:"var(--mantine-color-dark-6)":"var(--mantine-color-dark-6)"}function $9(e){return e?N9(e)?`color-mix(in srgb, ${e} 30%, var(--mantine-color-dark-4))`:P9.has(e)?`color-mix(in srgb, var(--mantine-color-${e}-7) 30%, var(--mantine-color-dark-4))`:"var(--mantine-color-dark-4)":"var(--mantine-color-dark-4)"}function Gue(e){return e?N9(e)?e:P9.has(e)?`var(--mantine-color-${e}-7)`:"var(--mantine-color-dark-3)":"var(--mantine-color-dark-3)"}const rH=[{value:"",label:"Default"},{value:"blue",label:"Azul"},{value:"cyan",label:"Cian"},{value:"teal",label:"Teal"},{value:"green",label:"Verde"},{value:"lime",label:"Lima"},{value:"yellow",label:"Amarillo"},{value:"orange",label:"Naranja"},{value:"red",label:"Rojo"},{value:"pink",label:"Rosa"},{value:"grape",label:"Uva"},{value:"violet",label:"Violeta"},{value:"indigo",label:"Indigo"},{value:"gray",label:"Gris"},{value:"#0ea5e9",label:"Sky"},{value:"#14b8a6",label:"Esmeralda"},{value:"#84cc16",label:"Lima fluor"},{value:"#ec4899",label:"Magenta"},{value:"#a855f7",label:"Lavanda"},{value:"#f97316",label:"Mandarina"},{value:"#dc2626",label:"Rubi"},{value:"#0891b2",label:"Petroleo"},{value:"#fde047",label:"Limon"},{value:"#10b981",label:"Menta"},{value:"#fb7185",label:"Coral"},{value:"#6366f1",label:"Iris"},{value:"#94a3b8",label:"Pizarra"}],Yue=rH,Kue=["blue","cyan","teal","green","lime","yellow","orange","red","pink","grape","violet","indigo"];function Pu(e){return Wue(e,Kue)}const u4=6e4,Hh=60*u4,Gc=24*Hh,lg=7*Gc,r_=30*Gc;function ei(e){if(!Number.isFinite(e)||e<0)return"0m";if(et&&n.push({kind:"text",value:e.slice(t,i.index)}),i[1]){const r=Xue(i[3]);r?n.push({kind:"img",alt:i[2]||"",url:r}):n.push({kind:"text",value:i[0]})}else if(i[4]){const r=aH(i[6]);r?n.push({kind:"link",label:i[5],url:r}):n.push({kind:"text",value:i[0]})}t=a_.lastIndex}return t{i.length!==0&&(r.push(v.jsx(fe,{size:n,style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:i.map((l,u)=>v.jsx(S.Fragment,{children:l},u))},`t-${a++}`)),i.length=0)};for(const l of t)l.kind==="img"?(o(),r.push(v.jsx(Va,{href:l.url,target:"_blank",rel:"noopener noreferrer",children:v.jsx(Xf,{src:l.url,alt:l.alt,maw:220,mah:220,fit:"contain",radius:"sm"})},`i-${a++}`))):l.kind==="link"?i.push(v.jsx(Va,{href:l.url,target:"_blank",rel:"noopener noreferrer",children:l.label},`l-${a++}`)):i.push(l.value);return o(),v.jsx(v.Fragment,{children:r})}function Jue(e,n,t){const i=e.replace(/]/g,"");return t.startsWith("image/")?`![${i}](${n})`:`[${i}](${n})`}const ece=4e3,nce=1500;function tce(e,n){for(let t=n-1;t>=0&&n-t<=64;t--){const i=e[t];if(i==="@"){if(t===0||/\s/.test(e[t-1])){const r=e.slice(t+1,n);if(/^[a-z0-9_.-]*$/i.test(r))return{start:t,query:r.toLowerCase()}}return null}if(/\s/.test(i))return null}return null}function ice({cardId:e,users:n,currentUserId:t,onMessagesChange:i,onFileUploaded:r,highlightMessageId:a}){const[o,l]=S.useState([]),[u,f]=S.useState(!0),[h,d]=S.useState(""),[p,g]=S.useState(!1),[b,w]=S.useState(!1),[k,_]=S.useState(!1),[x,C]=S.useState({}),[T,A]=S.useState(null),O=S.useRef(null),M=S.useRef(null),$=S.useRef(null),q=S.useRef(0),R=S.useMemo(()=>new Map(n.map(Z=>[Z.id,Z])),[n]),I=S.useCallback(async()=>{try{const Z=await Dre(e);l(Z),i==null||i(Z)}catch(Z){sn.show({color:"red",message:Z.message})}finally{f(!1)}},[e,i]);S.useEffect(()=>{I()},[I]),S.useEffect(()=>{const Z=new WebSocket($re(e));return M.current=Z,Z.onmessage=le=>{try{const ee=JSON.parse(le.data);ee.type==="message.created"&&ee.message?l(se=>{if(se.some(te=>te.id===ee.message.id))return se;const ke=[...se,ee.message];return i==null||i(ke),ke}):ee.type==="typing"&&ee.user_id?C(se=>({...se,[ee.user_id]:Date.now()})):ee.type==="error"&&sn.show({color:"red",message:ee.error})}catch{}},Z.onerror=()=>{},()=>{Z.close(),M.current=null}},[e,i]),S.useEffect(()=>{const Z=setInterval(()=>{const le=Date.now();C(ee=>{const se={};for(const[ke,te]of Object.entries(ee))le-teclearInterval(Z)},[]),S.useEffect(()=>{O.current&&O.current.scrollTo({top:O.current.scrollHeight,behavior:"smooth"})},[o.length]);const[z,W]=S.useState(null);S.useEffect(()=>{if(!a||!o.some(ee=>ee.id===a))return;const Z=document.querySelector(`[data-msg-id="${a}"]`);Z&&Z instanceof HTMLElement&&Z.scrollIntoView({behavior:"smooth",block:"center"}),W(a);const le=setTimeout(()=>W(null),2200);return()=>clearTimeout(le)},[a,o]);const U=()=>{const Z=M.current;if(!Z||Z.readyState!==WebSocket.OPEN)return;const le=Date.now();le-q.currentA(null)}),D=S.useMemo(()=>T?n.filter(Z=>Z.username.toLowerCase().startsWith(T.query)).slice(0,8):[],[n,T]);S.useEffect(()=>{T&&D.length>0?(N.openDropdown(),N.selectFirstOption()):N.closeDropdown()},[T==null?void 0:T.query,D.length]);const L=Z=>{if(!T)return;const le=h.slice(0,T.start),ee=h.slice(T.start+1+T.query.length),se=`@${Z} `,ke=le+se+ee;d(ke),A(null),requestAnimationFrame(()=>{const te=$.current;if(!te)return;const $e=(le+se).length;te.focus(),te.setSelectionRange($e,$e)})},H=async()=>{const Z=h.trim();if(!Z||p)return;g(!0);const le=M.current;try{if(le&&le.readyState===WebSocket.OPEN)le.send(JSON.stringify({type:"send",body:Z})),d("");else{const ee=await fM(e,Z);l(se=>[...se,ee]),i==null||i([...o,ee]),d("")}}catch(ee){sn.show({color:"red",message:ee.message})}finally{g(!1)}},Y=async Z=>{try{await Rre(e,Z);const le=o.filter(ee=>ee.id!==Z);l(le),i==null||i(le)}catch(le){sn.show({color:"red",message:le.message})}},P=Z=>{d(Z.currentTarget.value),U();const le=Z.currentTarget.selectionStart??Z.currentTarget.value.length;A(tce(Z.currentTarget.value,le))},G=Z=>{if(T&&D.length>0&&(Z.key==="Enter"||Z.key==="Tab")){Z.preventDefault();const le=N.getSelectedOptionIndex(),ee=D[Math.max(0,le)];ee&&L(ee.username);return}if(T&&Z.key==="Escape"){A(null);return}Z.key==="Enter"&&!Z.shiftKey&&(Z.preventDefault(),H())},V=async Z=>{w(!0);try{for(const le of Array.from(Z))try{const ee=await v9(e,le,"chat"),se=Jue(ee.filename,ee.url,ee.mime),ke=await fM(e,se);l(te=>{const $e=[...te,ke];return i==null||i($e),$e}),r==null||r()}catch(ee){sn.show({color:"red",message:`${le.name}: ${ee.message}`})}}finally{w(!1)}},B=Z=>{Z.preventDefault(),_(!1),!(!Z.dataTransfer.files||Z.dataTransfer.files.length===0)&&V(Z.dataTransfer.files)},Q=Z=>{Z.dataTransfer.types.includes("Files")&&(Z.preventDefault(),_(!0))},ie=Z=>{Z.preventDefault(),_(!1)},re=Object.keys(x).filter(Z=>Z!==t).map(Z=>{const le=R.get(Z);return(le==null?void 0:le.display_name)||(le==null?void 0:le.username)||"alguien"});return v.jsxs(bn,{gap:"xs",style:{height:"100%",minHeight:0,position:"relative",outline:k?"2px dashed var(--mantine-color-blue-5)":void 0,outlineOffset:k?-2:void 0,borderRadius:4},onDrop:B,onDragOver:Q,onDragLeave:ie,children:[v.jsx(cr,{viewportRef:O,style:{flex:1,minHeight:200},type:"auto",offsetScrollbars:!0,children:u?v.jsx(je,{justify:"center",p:"md",children:v.jsx(Ht,{size:"sm"})}):o.length===0?v.jsx(fe,{size:"sm",c:"dimmed",ta:"center",p:"md",children:"Sin mensajes aun. Escribe el primero o arrastra un archivo."}):v.jsx(bn,{gap:6,p:4,children:o.map(Z=>{const le=Z.author_id?R.get(Z.author_id):null,ee=Z.author_id&&Z.author_id===t,se=le?le.display_name||le.username:"Anonimo",ke=z===Z.id;return v.jsx(Et,{withBorder:!0,p:"xs",radius:"sm","data-msg-id":Z.id,bg:ke?"var(--mantine-color-yellow-light)":ee?"var(--mantine-color-blue-light)":void 0,style:{transition:"background-color 600ms ease",boxShadow:ke?"0 0 0 2px var(--mantine-color-yellow-5)":void 0},children:v.jsxs(je,{gap:6,wrap:"nowrap",align:"flex-start",children:[v.jsx(mo,{size:22,radius:"xl",color:(le==null?void 0:le.color)||Pu(se),children:se.slice(0,2).toUpperCase()}),v.jsxs(de,{style:{flex:1,minWidth:0},children:[v.jsxs(je,{gap:6,wrap:"nowrap",justify:"space-between",children:[v.jsxs(je,{gap:6,wrap:"nowrap",children:[v.jsx(fe,{size:"xs",fw:600,children:se}),v.jsx(fe,{size:"xs",c:"dimmed",children:Sl(Z.created_at)})]}),ee&&v.jsx(kt,{label:"Borrar",withArrow:!0,children:v.jsx(Jn,{size:"xs",variant:"subtle",color:"red",onClick:()=>Y(Z.id),children:v.jsx(vo,{size:12})})})]}),v.jsx(bn,{gap:4,children:v.jsx(Que,{text:Z.body})})]})]})},Z.id)})})}),re.length>0&&v.jsx(fe,{size:"xs",c:"dimmed",px:6,children:re.length===1?`${re[0]} esta escribiendo...`:`${re.slice(0,2).join(", ")}${re.length>2?"...":""} estan escribiendo...`}),v.jsxs(On,{store:N,onOptionSubmit:Z=>L(Z),position:"top-start",withinPortal:!1,children:[v.jsx(On.DropdownTarget,{children:v.jsxs(je,{gap:"xs",align:"flex-end",children:[v.jsx(_l,{ref:$,value:h,onChange:P,onKeyDown:G,placeholder:"Escribe un mensaje (Enter = enviar, @ para mencionar). Arrastra archivos o usa el clip.",autosize:!0,minRows:1,maxRows:6,style:{flex:1},disabled:p}),v.jsx(VC,{onChange:Z=>Z&&V([Z]),disabled:b,children:Z=>v.jsx(kt,{label:"Adjuntar archivo",withArrow:!0,children:v.jsx(Jn,{size:"lg",variant:"subtle",color:"gray","aria-label":"Adjuntar",loading:b,...Z,children:v.jsx(Qq,{size:16})})})}),v.jsx(kt,{label:"Enviar",withArrow:!0,children:v.jsx(Jn,{size:"lg",variant:"filled",color:"blue",onClick:H,disabled:!h.trim()||p,"aria-label":"Enviar",children:v.jsx(nH,{size:16})})})]})}),v.jsx(On.Dropdown,{hidden:!T||D.length===0,children:v.jsx(On.Options,{children:D.map(Z=>v.jsx(On.Option,{value:Z.username,children:v.jsxs(je,{gap:6,wrap:"nowrap",children:[v.jsx(mo,{size:18,radius:"xl",color:Z.color||Pu(Z.username),children:(Z.display_name||Z.username).slice(0,2).toUpperCase()}),v.jsxs(fe,{size:"sm",fw:600,children:["@",Z.username]}),Z.display_name&&Z.display_name!==Z.username&&v.jsx(fe,{size:"xs",c:"dimmed",children:Z.display_name})]})},Z.id))})})]}),(k||b)&&v.jsx(de,{style:{position:"absolute",inset:0,background:"rgba(34,139,230,0.08)",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",borderRadius:4},children:v.jsx(fe,{size:"sm",fw:500,c:"blue",children:b?"Subiendo...":"Suelta para adjuntar"})})]})}function rce(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(2)} MB`}function ace(e){return e.startsWith("image/")}function oce(e,n=18){const t=e.toLowerCase();return t.startsWith("image/")?v.jsx(cue,{size:n}):t==="application/pdf"?v.jsx(zle,{size:n}):t.includes("spreadsheet")||t.includes("excel")||t==="text/csv"||t==="application/vnd.ms-excel"?v.jsx(Rle,{size:n}):t.startsWith("text/")?v.jsx(Nle,{size:n}):v.jsx(Ile,{size:n})}function sce(e){return e==="description"?{color:"blue",label:"descripcion"}:e==="chat"?{color:"teal",label:"chat"}:{color:"gray",label:"subido"}}function lce({cardId:e,refreshKey:n}){const[t,i]=S.useState([]),[r,a]=S.useState(!0),[o,l]=S.useState(!1),u=S.useCallback(async()=>{try{const d=await Kre(e);i(d)}catch(d){sn.show({color:"red",message:d.message})}finally{a(!1)}},[e]);S.useEffect(()=>{u()},[u,n]);const f=async d=>{if(d){l(!0);try{const p=await v9(e,d,"upload");i(g=>[...g,p])}catch(p){sn.show({color:"red",message:p.message})}finally{l(!1)}}},h=async d=>{if(window.confirm("¿Borrar este archivo?"))try{await Xre(d),i(p=>p.filter(g=>g.id!==d))}catch(p){sn.show({color:"red",message:p.message})}};return v.jsxs(bn,{gap:"xs",p:4,children:[v.jsxs(je,{justify:"space-between",children:[v.jsxs(fe,{size:"xs",c:"dimmed",children:[t.length," archivo",t.length===1?"":"s"]}),v.jsx(VC,{onChange:f,disabled:o,children:d=>v.jsx(Vn,{size:"xs",variant:"light",leftSection:v.jsx(Mue,{size:14}),loading:o,...d,children:"Subir"})})]}),r?v.jsx(je,{justify:"center",p:"md",children:v.jsx(Ht,{size:"sm"})}):t.length===0?v.jsxs(bn,{gap:"xs",p:"md",align:"center",justify:"center",style:{minHeight:160},children:[v.jsx(fe,{size:"sm",c:"dimmed",children:"Sin archivos"}),v.jsx(fe,{size:"xs",c:"dimmed",ta:"center",children:"Sube archivos con el boton, arrastra al chat o a la descripcion."})]}):v.jsx(bn,{gap:6,children:t.map(d=>{const p=sce(d.source);return v.jsx(Et,{withBorder:!0,p:"xs",radius:"sm",children:v.jsxs(je,{gap:"xs",wrap:"nowrap",align:"flex-start",children:[ace(d.mime)?v.jsx(Va,{href:d.url,target:"_blank",rel:"noopener noreferrer",children:v.jsx(Xf,{src:d.url,alt:d.filename,w:64,h:64,fit:"cover",radius:"sm"})}):v.jsx(de,{style:{width:64,height:64,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--mantine-color-gray-1)",borderRadius:4},children:oce(d.mime,28)}),v.jsxs(de,{style:{flex:1,minWidth:0},children:[v.jsx(Va,{href:d.url,target:"_blank",rel:"noopener noreferrer",size:"sm",style:{wordBreak:"break-all"},children:d.filename}),v.jsxs(je,{gap:6,mt:4,children:[v.jsx(Nn,{size:"xs",variant:"light",color:p.color,children:p.label}),v.jsx(fe,{size:"xs",c:"dimmed",children:rce(d.size)}),v.jsx(fe,{size:"xs",c:"dimmed",children:d.mime||"?"})]})]}),v.jsxs(je,{gap:4,wrap:"nowrap",children:[v.jsx(kt,{label:"Descargar",withArrow:!0,children:v.jsx(Jn,{component:"a",href:d.url,download:d.filename,variant:"subtle",size:"sm","aria-label":"Descargar",children:v.jsx(D9,{size:14})})}),v.jsx(kt,{label:"Borrar",withArrow:!0,children:v.jsx(Jn,{variant:"subtle",color:"red",size:"sm",onClick:()=>h(d.id),"aria-label":"Borrar",children:v.jsx(vo,{size:14})})})]})]})},d.id)})})]})}const NM=/(https?:\/\/[^\s<>()"']+)/gi;function o_(e,n){if(!n)return[];const t=[],i=new Set;let r;for(NM.lastIndex=0;(r=NM.exec(n))!==null;){let a=r[1];a=a.replace(/[.,;:!?)\]}>]+$/,""),!i.has(a)&&(i.add(a),t.push({url:a,source:e,context:n}))}return t}function uce(e){try{return new URL(e).hostname}catch{return e}}function cce({card:e,messages:n}){const t=S.useMemo(()=>{const a=[...o_("title",e.title),...o_("description",e.description),...n.flatMap(l=>o_("chat",l.body))],o=new Set;return a.filter(l=>o.has(l.url)?!1:(o.add(l.url),!0))},[e.title,e.description,n]);if(t.length===0)return v.jsxs(bn,{gap:"xs",p:"md",align:"center",justify:"center",style:{minHeight:200},children:[v.jsx(fe,{size:"sm",c:"dimmed",children:"Sin enlaces detectados"}),v.jsx(fe,{size:"xs",c:"dimmed",ta:"center",children:"Pega URLs en el titulo, descripcion o chat y apareceran aqui."})]});const i=a=>a==="title"?"grape":a==="description"?"blue":"teal",r=a=>a==="title"?"titulo":a==="description"?"descripcion":"chat";return v.jsx(bn,{gap:6,p:4,children:t.map(a=>v.jsx(Et,{withBorder:!0,p:"xs",radius:"sm",children:v.jsxs(je,{gap:"xs",wrap:"nowrap",justify:"space-between",align:"flex-start",children:[v.jsxs(de,{style:{flex:1,minWidth:0},children:[v.jsx(Va,{href:a.url,target:"_blank",rel:"noopener noreferrer",size:"sm",style:{wordBreak:"break-all"},children:v.jsxs(je,{gap:4,wrap:"nowrap",align:"center",children:[v.jsx(Mle,{size:12}),v.jsx("span",{children:uce(a.url)})]})}),v.jsx(fe,{size:"xs",c:"dimmed",style:{wordBreak:"break-all"},children:a.url})]}),v.jsx(Nn,{size:"xs",variant:"light",color:i(a.source),children:r(a.source)})]})},a.url))})}function fce({card:e,users:n,currentUserId:t,requesterOptions:i,tagOptions:r,onSubmit:a,onCancel:o,highlightMessageId:l}){const[u,f]=S.useState([]),[h,d]=S.useState(e),[p,g]=S.useState(0),b=async k=>{d(_=>({..._,title:k.title,description:k.description,requester:k.requester,tags:k.tags,assignee_id:k.assignee_id})),await a(k)},w=()=>g(k=>k+1);return v.jsxs(je,{align:"stretch",gap:"md",wrap:"nowrap",style:{minHeight:460},children:[v.jsx(de,{style:{flex:"1 1 0",minWidth:320},children:v.jsx(tH,{users:n,requesterOptions:i,tagOptions:r,initial:{requester:h.requester,title:h.title,description:h.description,assignee_id:h.assignee_id,tags:h.tags||[]},submitLabel:"Guardar",cardId:h.id,onFileUploaded:w,onSubmit:b,onCancel:o})}),v.jsx(us,{orientation:"vertical"}),v.jsx(de,{style:{flex:"1 1 0",minWidth:320,display:"flex",flexDirection:"column"},children:v.jsxs(wt,{defaultValue:"chat",keepMounted:!1,style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[v.jsxs(wt.List,{children:[v.jsx(wt.Tab,{value:"chat",leftSection:v.jsx(Zq,{size:14}),children:"Chat"}),v.jsx(wt.Tab,{value:"links",leftSection:v.jsx(Yle,{size:14}),children:"Enlaces"}),v.jsx(wt.Tab,{value:"files",leftSection:v.jsx(Qq,{size:14}),children:"Archivos"})]}),v.jsxs(de,{pt:"xs",style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[v.jsx(wt.Panel,{value:"chat",style:{flex:1,minHeight:0,display:"flex"},children:v.jsx(de,{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",width:"100%"},children:v.jsx(ice,{cardId:h.id,users:n,currentUserId:t,onMessagesChange:f,onFileUploaded:w,highlightMessageId:l})})}),v.jsx(wt.Panel,{value:"links",children:v.jsx(cce,{card:h,messages:u})}),v.jsx(wt.Panel,{value:"files",children:v.jsx(lce,{cardId:h.id,refreshKey:p})})]})]})})]})}function dce(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const hce=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mce=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pce={};function $M(e,n){return(pce.jsx?mce:hce).test(e)}const vce=/[ \t\n\f\r]/g;function gce(e){return typeof e=="object"?e.type==="text"?zM(e.value):!1:zM(e)}function zM(e){return e.replace(vce,"")===""}class Op{constructor(n,t,i){this.normal=t,this.property=n,i&&(this.space=i)}}Op.prototype.normal={};Op.prototype.property={};Op.prototype.space=void 0;function oH(e,n){const t={},i={};for(const r of e)Object.assign(t,r.property),Object.assign(i,r.normal);return new Op(t,i,n)}function c4(e){return e.toLowerCase()}class Tr{constructor(n,t){this.attribute=t,this.property=n}}Tr.prototype.attribute="";Tr.prototype.booleanish=!1;Tr.prototype.boolean=!1;Tr.prototype.commaOrSpaceSeparated=!1;Tr.prototype.commaSeparated=!1;Tr.prototype.defined=!1;Tr.prototype.mustUseProperty=!1;Tr.prototype.number=!1;Tr.prototype.overloadedBoolean=!1;Tr.prototype.property="";Tr.prototype.spaceSeparated=!1;Tr.prototype.space=void 0;let yce=0;const Un=Yu(),gi=Yu(),f4=Yu(),Ve=Yu(),Bt=Yu(),ef=Yu(),Fr=Yu();function Yu(){return 2**++yce}const d4=Object.freeze(Object.defineProperty({__proto__:null,boolean:Un,booleanish:gi,commaOrSpaceSeparated:Fr,commaSeparated:ef,number:Ve,overloadedBoolean:f4,spaceSeparated:Bt},Symbol.toStringTag,{value:"Module"})),s_=Object.keys(d4);class z9 extends Tr{constructor(n,t,i,r){let a=-1;if(super(n,t),LM(this,"space",r),typeof i=="number")for(;++a4&&t.slice(0,4)==="data"&&xce.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(IM,jce);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!IM.test(a)){let o=a.replace(_ce,Cce);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}r=z9}return new r(i,n)}function Cce(e){return"-"+e.toLowerCase()}function jce(e){return e.charAt(1).toUpperCase()}const Ace=oH([sH,bce,cH,fH,dH],"html"),L9=oH([sH,wce,cH,fH,dH],"svg");function Oce(e){return e.join(" ").trim()}var zc={},l_,BM;function Tce(){if(BM)return l_;BM=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,u=` +`,f="/",h="*",d="",p="comment",g="declaration";function b(k,_){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];_=_||{};var x=1,C=1;function T(U){var N=U.match(n);N&&(x+=N.length);var D=U.lastIndexOf(u);C=~D?U.length-D:C+U.length}function A(){var U={line:x,column:C};return function(N){return N.position=new O(U),q(),N}}function O(U){this.start=U,this.end={line:x,column:C},this.source=_.source}O.prototype.content=k;function M(U){var N=new Error(_.source+":"+x+":"+C+": "+U);if(N.reason=U,N.filename=_.source,N.line=x,N.column=C,N.source=k,!_.silent)throw N}function $(U){var N=U.exec(k);if(N){var D=N[0];return T(D),k=k.slice(D.length),N}}function q(){$(t)}function R(U){var N;for(U=U||[];N=I();)N!==!1&&U.push(N);return U}function I(){var U=A();if(!(f!=k.charAt(0)||h!=k.charAt(1))){for(var N=2;d!=k.charAt(N)&&(h!=k.charAt(N)||f!=k.charAt(N+1));)++N;if(N+=2,d===k.charAt(N-1))return M("End of comment missing");var D=k.slice(2,N-2);return C+=2,T(D),k=k.slice(N),C+=2,U({type:p,comment:D})}}function z(){var U=A(),N=$(i);if(N){if(I(),!$(r))return M("property missing ':'");var D=$(a),L=U({type:g,property:w(N[0].replace(e,d)),value:D?w(D[0].replace(e,d)):d});return $(o),L}}function W(){var U=[];R(U);for(var N;N=z();)N!==!1&&(U.push(N),R(U));return U}return q(),W()}function w(k){return k?k.replace(l,d):d}return l_=b,l_}var FM;function Ece(){if(FM)return zc;FM=1;var e=zc&&zc.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(zc,"__esModule",{value:!0}),zc.default=t;const n=e(Tce());function t(i,r){let a=null;if(!i||typeof i!="string")return a;const o=(0,n.default)(i),l=typeof r=="function";return o.forEach(u=>{if(u.type!=="declaration")return;const{property:f,value:h}=u;l?r(f,h,u):h&&(a=a||{},a[f]=h)}),a}return zc}var _h={},qM;function Mce(){if(qM)return _h;qM=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,a=function(f){return!f||t.test(f)||e.test(f)},o=function(f,h){return h.toUpperCase()},l=function(f,h){return"".concat(h,"-")},u=function(f,h){return h===void 0&&(h={}),a(f)?f:(f=f.toLowerCase(),h.reactCompat?f=f.replace(r,l):f=f.replace(i,l),f.replace(n,o))};return _h.camelCase=u,_h}var xh,HM;function Dce(){if(HM)return xh;HM=1;var e=xh&&xh.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},n=e(Ece()),t=Mce();function i(r,a){var o={};return!r||typeof r!="string"||(0,n.default)(r,function(l,u){l&&u&&(o[(0,t.camelCase)(l,a)]=u)}),o}return i.default=i,xh=i,xh}var Rce=Dce();const Pce=yt(Rce),hH=mH("end"),I9=mH("start");function mH(e){return n;function n(t){const i=t&&t.position&&t.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Nce(e){const n=I9(e),t=hH(e);if(n&&t)return{start:n,end:t}}function Jh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?UM(e.position):"start"in e||"end"in e?UM(e):"line"in e||"column"in e?h4(e):""}function h4(e){return VM(e&&e.line)+":"+VM(e&&e.column)}function UM(e){return h4(e&&e.start)+"-"+h4(e&&e.end)}function VM(e){return e&&typeof e=="number"?e:1}class tr extends Error{constructor(n,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?r=n:!a.cause&&n&&(o=!0,r=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?a.ruleId=i:(a.source=i.slice(0,u),a.ruleId=i.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Jh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}tr.prototype.file="";tr.prototype.name="";tr.prototype.reason="";tr.prototype.message="";tr.prototype.stack="";tr.prototype.column=void 0;tr.prototype.line=void 0;tr.prototype.ancestors=void 0;tr.prototype.cause=void 0;tr.prototype.fatal=void 0;tr.prototype.place=void 0;tr.prototype.ruleId=void 0;tr.prototype.source=void 0;const B9={}.hasOwnProperty,$ce=new Map,zce=/[A-Z]/g,Lce=new Set(["table","tbody","thead","tfoot","tr"]),Ice=new Set(["td","th"]),pH="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Bce(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Yce(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Gce(t,n.jsx,n.jsxs)}const r={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?L9:Ace,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=vH(r,e,void 0);return a&&typeof a!="string"?a:r.create(e,r.Fragment,{children:a||void 0},void 0)}function vH(e,n,t){if(n.type==="element")return Fce(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return qce(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Uce(e,n,t);if(n.type==="mdxjsEsm")return Hce(e,n);if(n.type==="root")return Vce(e,n,t);if(n.type==="text")return Wce(e,n)}function Fce(e,n,t){const i=e.schema;let r=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=L9,e.schema=r),e.ancestors.push(n);const a=yH(e,n.tagName,!1),o=Kce(e,n);let l=q9(e,n);return Lce.has(n.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!gce(u):!0})),gH(e,o,a,n),F9(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function qce(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}km(e,n.position)}function Hce(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);km(e,n.position)}function Uce(e,n,t){const i=e.schema;let r=i;n.name==="svg"&&i.space==="html"&&(r=L9,e.schema=r),e.ancestors.push(n);const a=n.name===null?e.Fragment:yH(e,n.name,!0),o=Xce(e,n),l=q9(e,n);return gH(e,o,a,n),F9(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function Vce(e,n,t){const i={};return F9(i,q9(e,n)),e.create(n,e.Fragment,i,t)}function Wce(e,n){return n.value}function gH(e,n,t,i){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=i)}function F9(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Gce(e,n,t){return i;function i(r,a,o,l){const f=Array.isArray(o.children)?t:n;return l?f(a,o,l):f(a,o)}}function Yce(e,n){return t;function t(i,r,a,o){const l=Array.isArray(a.children),u=I9(i);return n(r,a,o,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Kce(e,n){const t={};let i,r;for(r in n.properties)if(r!=="children"&&B9.call(n.properties,r)){const a=Zce(e,r,n.properties[r]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Ice.has(n.tagName)?i=l:t[o]=l}}if(i){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return t}function Xce(e,n){const t={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(t,e.evaluater.evaluateExpression(l.argument))}else km(e,n.position);else{const r=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const l=i.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else km(e,n.position);else a=i.value===null?!0:i.value;t[r]=a}return t}function q9(e,n){const t=[];let i=-1;const r=e.passKeys?new Map:$ce;for(;++ir?0:r+n:n=n>r?r:n,t=t>0?t:0,i.length<1e4)o=Array.from(i),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a0?(Yr(e,e.length,0,n),e):n}const YM={}.hasOwnProperty;function wH(e){const n={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const or=Rl(/[A-Za-z]/),er=Rl(/[\dA-Za-z]/),ofe=Rl(/[#-'*+\--9=?A-Z^-~]/);function h1(e){return e!==null&&(e<32||e===127)}const m4=Rl(/\d/),sfe=Rl(/[\dA-Fa-f]/),lfe=Rl(/[!-/:-@[-`{-~]/);function Cn(e){return e!==null&&e<-2}function Lt(e){return e!==null&&(e<0||e===32)}function rt(e){return e===-2||e===-1||e===32}const P0=Rl(new RegExp("\\p{P}|\\p{S}","u")),Nu=Rl(/\s/);function Rl(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function od(e){const n=[];let t=-1,i=0,r=0;for(;++t55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),r=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(i,t),encodeURIComponent(o)),i=t+r+1,o=""),r&&(t+=r,r=0)}return n.join("")+e.slice(i)}function dt(e,n,t,i){const r=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(u){return rt(u)?(e.enter(t),l(u)):n(u)}function l(u){return rt(u)&&a++o))return;const M=n.events.length;let $=M,q,R;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(q){R=n.events[$][1].end;break}q=!0}for(_(i),O=M;OC;){const A=t[T];n.containerState=A[1],A[0].exit.call(n,e)}t.length=C}function x(){r.write([null]),a=void 0,r=void 0,n.containerState._closeFlow=void 0}}function hfe(e,n,t){return dt(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function df(e){if(e===null||Lt(e)||Nu(e))return 1;if(P0(e))return 2}function N0(e,n,t){const i=[];let r=-1;for(;++r1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const d={...e[i][1].end},p={...e[t][1].start};XM(d,-u),XM(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[t][1].start={...l.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=va(f,[["enter",e[i][1],n],["exit",e[i][1],n]])),f=va(f,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",a,n]]),f=va(f,N0(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),f=va(f,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,f=va(f,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,Yr(e,i-1,t-i+3,f),t=i+f.length-h-2;break}}for(t=-1;++t0&&rt(O)?dt(e,x,"linePrefix",a+1)(O):x(O)}function x(O){return O===null||Cn(O)?e.check(ZM,w,T)(O):(e.enter("codeFlowValue"),C(O))}function C(O){return O===null||Cn(O)?(e.exit("codeFlowValue"),x(O)):(e.consume(O),C)}function T(O){return e.exit("codeFenced"),n(O)}function A(O,M,$){let q=0;return R;function R(N){return O.enter("lineEnding"),O.consume(N),O.exit("lineEnding"),I}function I(N){return O.enter("codeFencedFence"),rt(N)?dt(O,z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):z(N)}function z(N){return N===l?(O.enter("codeFencedFenceSequence"),W(N)):$(N)}function W(N){return N===l?(q++,O.consume(N),W):q>=o?(O.exit("codeFencedFenceSequence"),rt(N)?dt(O,U,"whitespace")(N):U(N)):$(N)}function U(N){return N===null||Cn(N)?(O.exit("codeFencedFence"),M(N)):$(N)}}}function Cfe(e,n,t){const i=this;return r;function r(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}const c_={name:"codeIndented",tokenize:Afe},jfe={partial:!0,tokenize:Ofe};function Afe(e,n,t){const i=this;return r;function r(f){return e.enter("codeIndented"),dt(e,a,"linePrefix",5)(f)}function a(f){const h=i.events[i.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(f):t(f)}function o(f){return f===null?u(f):Cn(f)?e.attempt(jfe,o,u)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||Cn(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),l)}function u(f){return e.exit("codeIndented"),n(f)}}function Ofe(e,n,t){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?t(o):Cn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):dt(e,a,"linePrefix",5)(o)}function a(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):Cn(o)?r(o):t(o)}}const Tfe={name:"codeText",previous:Mfe,resolve:Efe,tokenize:Dfe};function Efe(e){let n=e.length-4,t=3,i,r;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,t,i){const r=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Sh(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Sh(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Sh(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(o):e.interrupt(i.parser.constructs.flow,t,n)(o)}}function jH(e,n,t,i,r,a,o,l,u){const f=u||Number.POSITIVE_INFINITY;let h=0;return d;function d(_){return _===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(_),e.exit(a),p):_===null||_===32||_===41||h1(_)?t(_):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(_))}function p(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(r),e.exit(i),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===62?(e.exit("chunkString"),e.exit(l),p(_)):_===null||_===60||Cn(_)?t(_):(e.consume(_),_===92?b:g)}function b(_){return _===60||_===62||_===92?(e.consume(_),g):g(_)}function w(_){return!h&&(_===null||_===41||Lt(_))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),n(_)):h999||g===null||g===91||g===93&&!u||g===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(g):g===93?(e.exit(a),e.enter(r),e.consume(g),e.exit(r),e.exit(i),n):Cn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||g===91||g===93||Cn(g)||l++>999?(e.exit("chunkString"),h(g)):(e.consume(g),u||(u=!rt(g)),g===92?p:d)}function p(g){return g===91||g===92||g===93?(e.consume(g),l++,d):d(g)}}function OH(e,n,t,i,r,a){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(i),e.enter(r),e.consume(p),e.exit(r),o=p===40?41:p,u):t(p)}function u(p){return p===o?(e.enter(r),e.consume(p),e.exit(r),e.exit(i),n):(e.enter(a),f(p))}function f(p){return p===o?(e.exit(a),u(o)):p===null?t(p):Cn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),dt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||Cn(p)?(e.exit("chunkString"),f(p)):(e.consume(p),p===92?d:h)}function d(p){return p===o||p===92?(e.consume(p),h):h(p)}}function em(e,n){let t;return i;function i(r){return Cn(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t=!0,i):rt(r)?dt(e,i,t?"linePrefix":"lineSuffix")(r):n(r)}}const Bfe={name:"definition",tokenize:qfe},Ffe={partial:!0,tokenize:Hfe};function qfe(e,n,t){const i=this;let r;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return AH.call(i,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return r=qa(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):t(g)}function u(g){return Lt(g)?em(e,f)(g):f(g)}function f(g){return jH(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function h(g){return e.attempt(Ffe,d,d)(g)}function d(g){return rt(g)?dt(e,p,"whitespace")(g):p(g)}function p(g){return g===null||Cn(g)?(e.exit("definition"),i.parser.defined.push(r),n(g)):t(g)}}function Hfe(e,n,t){return i;function i(l){return Lt(l)?em(e,r)(l):t(l)}function r(l){return OH(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return rt(l)?dt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Cn(l)?n(l):t(l)}}const Ufe={name:"hardBreakEscape",tokenize:Vfe};function Vfe(e,n,t){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return Cn(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const Wfe={name:"headingAtx",resolve:Gfe,tokenize:Yfe};function Gfe(e,n){let t=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},a={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},Yr(e,i,t-i+1,[["enter",r,n],["enter",a,n],["exit",a,n],["exit",r,n]])),e}function Yfe(e,n,t){let i=0;return r;function r(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&i++<6?(e.consume(h),o):h===null||Lt(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),u(h)):h===null||Cn(h)?(e.exit("atxHeading"),n(h)):rt(h)?dt(e,l,"whitespace")(h):(e.enter("atxHeadingText"),f(h))}function u(h){return h===35?(e.consume(h),u):(e.exit("atxHeadingSequence"),l(h))}function f(h){return h===null||h===35||Lt(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),f)}}const Kfe=["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"],JM=["pre","script","style","textarea"],Xfe={concrete:!0,name:"htmlFlow",resolveTo:Jfe,tokenize:ede},Zfe={partial:!0,tokenize:tde},Qfe={partial:!0,tokenize:nde};function Jfe(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ede(e,n,t){const i=this;let r,a,o,l,u;return f;function f(B){return h(B)}function h(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,w):B===63?(e.consume(B),r=3,i.interrupt?n:P):or(B)?(e.consume(B),o=String.fromCharCode(B),k):t(B)}function p(B){return B===45?(e.consume(B),r=2,g):B===91?(e.consume(B),r=5,l=0,b):or(B)?(e.consume(B),r=4,i.interrupt?n:P):t(B)}function g(B){return B===45?(e.consume(B),i.interrupt?n:P):t(B)}function b(B){const Q="CDATA[";return B===Q.charCodeAt(l++)?(e.consume(B),l===Q.length?i.interrupt?n:z:b):t(B)}function w(B){return or(B)?(e.consume(B),o=String.fromCharCode(B),k):t(B)}function k(B){if(B===null||B===47||B===62||Lt(B)){const Q=B===47,ie=o.toLowerCase();return!Q&&!a&&JM.includes(ie)?(r=1,i.interrupt?n(B):z(B)):Kfe.includes(o.toLowerCase())?(r=6,Q?(e.consume(B),_):i.interrupt?n(B):z(B)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(B):a?x(B):C(B))}return B===45||er(B)?(e.consume(B),o+=String.fromCharCode(B),k):t(B)}function _(B){return B===62?(e.consume(B),i.interrupt?n:z):t(B)}function x(B){return rt(B)?(e.consume(B),x):R(B)}function C(B){return B===47?(e.consume(B),R):B===58||B===95||or(B)?(e.consume(B),T):rt(B)?(e.consume(B),C):R(B)}function T(B){return B===45||B===46||B===58||B===95||er(B)?(e.consume(B),T):A(B)}function A(B){return B===61?(e.consume(B),O):rt(B)?(e.consume(B),A):C(B)}function O(B){return B===null||B===60||B===61||B===62||B===96?t(B):B===34||B===39?(e.consume(B),u=B,M):rt(B)?(e.consume(B),O):$(B)}function M(B){return B===u?(e.consume(B),u=null,q):B===null||Cn(B)?t(B):(e.consume(B),M)}function $(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Lt(B)?A(B):(e.consume(B),$)}function q(B){return B===47||B===62||rt(B)?C(B):t(B)}function R(B){return B===62?(e.consume(B),I):t(B)}function I(B){return B===null||Cn(B)?z(B):rt(B)?(e.consume(B),I):t(B)}function z(B){return B===45&&r===2?(e.consume(B),D):B===60&&r===1?(e.consume(B),L):B===62&&r===4?(e.consume(B),G):B===63&&r===3?(e.consume(B),P):B===93&&r===5?(e.consume(B),Y):Cn(B)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Zfe,V,W)(B)):B===null||Cn(B)?(e.exit("htmlFlowData"),W(B)):(e.consume(B),z)}function W(B){return e.check(Qfe,U,V)(B)}function U(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),N}function N(B){return B===null||Cn(B)?W(B):(e.enter("htmlFlowData"),z(B))}function D(B){return B===45?(e.consume(B),P):z(B)}function L(B){return B===47?(e.consume(B),o="",H):z(B)}function H(B){if(B===62){const Q=o.toLowerCase();return JM.includes(Q)?(e.consume(B),G):z(B)}return or(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),H):z(B)}function Y(B){return B===93?(e.consume(B),P):z(B)}function P(B){return B===62?(e.consume(B),G):B===45&&r===2?(e.consume(B),P):z(B)}function G(B){return B===null||Cn(B)?(e.exit("htmlFlowData"),V(B)):(e.consume(B),G)}function V(B){return e.exit("htmlFlow"),n(B)}}function nde(e,n,t){const i=this;return r;function r(o){return Cn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}function tde(e,n,t){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Tp,n,t)}}const ide={name:"htmlText",tokenize:rde};function rde(e,n,t){const i=this;let r,a,o;return l;function l(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),u}function u(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),A):P===63?(e.consume(P),C):or(P)?(e.consume(P),$):t(P)}function f(P){return P===45?(e.consume(P),h):P===91?(e.consume(P),a=0,b):or(P)?(e.consume(P),x):t(P)}function h(P){return P===45?(e.consume(P),g):t(P)}function d(P){return P===null?t(P):P===45?(e.consume(P),p):Cn(P)?(o=d,L(P)):(e.consume(P),d)}function p(P){return P===45?(e.consume(P),g):d(P)}function g(P){return P===62?D(P):P===45?p(P):d(P)}function b(P){const G="CDATA[";return P===G.charCodeAt(a++)?(e.consume(P),a===G.length?w:b):t(P)}function w(P){return P===null?t(P):P===93?(e.consume(P),k):Cn(P)?(o=w,L(P)):(e.consume(P),w)}function k(P){return P===93?(e.consume(P),_):w(P)}function _(P){return P===62?D(P):P===93?(e.consume(P),_):w(P)}function x(P){return P===null||P===62?D(P):Cn(P)?(o=x,L(P)):(e.consume(P),x)}function C(P){return P===null?t(P):P===63?(e.consume(P),T):Cn(P)?(o=C,L(P)):(e.consume(P),C)}function T(P){return P===62?D(P):C(P)}function A(P){return or(P)?(e.consume(P),O):t(P)}function O(P){return P===45||er(P)?(e.consume(P),O):M(P)}function M(P){return Cn(P)?(o=M,L(P)):rt(P)?(e.consume(P),M):D(P)}function $(P){return P===45||er(P)?(e.consume(P),$):P===47||P===62||Lt(P)?q(P):t(P)}function q(P){return P===47?(e.consume(P),D):P===58||P===95||or(P)?(e.consume(P),R):Cn(P)?(o=q,L(P)):rt(P)?(e.consume(P),q):D(P)}function R(P){return P===45||P===46||P===58||P===95||er(P)?(e.consume(P),R):I(P)}function I(P){return P===61?(e.consume(P),z):Cn(P)?(o=I,L(P)):rt(P)?(e.consume(P),I):q(P)}function z(P){return P===null||P===60||P===61||P===62||P===96?t(P):P===34||P===39?(e.consume(P),r=P,W):Cn(P)?(o=z,L(P)):rt(P)?(e.consume(P),z):(e.consume(P),U)}function W(P){return P===r?(e.consume(P),r=void 0,N):P===null?t(P):Cn(P)?(o=W,L(P)):(e.consume(P),W)}function U(P){return P===null||P===34||P===39||P===60||P===61||P===96?t(P):P===47||P===62||Lt(P)?q(P):(e.consume(P),U)}function N(P){return P===47||P===62||Lt(P)?q(P):t(P)}function D(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),n):t(P)}function L(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),H}function H(P){return rt(P)?dt(e,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Y(P)}function Y(P){return e.enter("htmlTextData"),o(P)}}const V9={name:"labelEnd",resolveAll:lde,resolveTo:ude,tokenize:cde},ade={tokenize:fde},ode={tokenize:dde},sde={tokenize:hde};function lde(e){let n=-1;const t=[];for(;++n=3&&(f===null||Cn(f))?(e.exit("thematicBreak"),n(f)):t(f)}function u(f){return f===r?(e.consume(f),i++,u):(e.exit("thematicBreakSequence"),rt(f)?dt(e,l,"whitespace")(f):l(f))}}const xr={continuation:{tokenize:xde},exit:Cde,name:"list",tokenize:_de},wde={partial:!0,tokenize:jde},kde={partial:!0,tokenize:Sde};function _de(e,n,t){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(g){const b=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:m4(g)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(qg,t,f)(g):f(g);if(!i.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return t(g)}function u(g){return m4(g)&&++o<10?(e.consume(g),u):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),f(g)):t(g)}function f(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,e.check(Tp,i.interrupt?t:h,e.attempt(wde,p,d))}function h(g){return i.containerState.initialBlankLine=!0,a++,p(g)}function d(g){return rt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):t(g)}function p(g){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(g)}}function xde(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Tp,r,a);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,dt(e,n,"listItemIndent",i.containerState.size+1)(l)}function a(l){return i.containerState.furtherBlankLines||!rt(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(kde,n,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,dt(e,e.attempt(xr,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Sde(e,n,t){const i=this;return dt(e,r,"listItemIndent",i.containerState.size+1);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):t(a)}}function Cde(e){e.exit(this.containerState.type)}function jde(e,n,t){const i=this;return dt(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const o=i.events[i.events.length-1];return!rt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const e8={name:"setextUnderline",resolveTo:Ade,tokenize:Ode};function Ade(e,n){let t=e.length,i,r,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(r=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end={...e[a][1].end}):e[i][1]=o,e.push(["exit",o,n]),e}function Ode(e,n,t){const i=this;let r;return a;function a(f){let h=i.events.length,d;for(;h--;)if(i.events[h][1].type!=="lineEnding"&&i.events[h][1].type!=="linePrefix"&&i.events[h][1].type!=="content"){d=i.events[h][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=f,o(f)):t(f)}function o(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===r?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),rt(f)?dt(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||Cn(f)?(e.exit("setextHeadingLine"),n(f)):t(f)}}const Tde={tokenize:Ede};function Ede(e){const n=this,t=e.attempt(Tp,i,e.attempt(this.parser.constructs.flowInitial,r,dt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Nfe,r)),"linePrefix")));return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Mde={resolveAll:EH()},Dde=TH("string"),Rde=TH("text");function TH(e){return{resolveAll:EH(e==="text"?Pde:void 0),tokenize:n};function n(t){const i=this,r=this.parser.constructs[e],a=t.attempt(r,o,l);return o;function o(h){return f(h)?a(h):l(h)}function l(h){if(h===null){t.consume(h);return}return t.enter("data"),t.consume(h),u}function u(h){return f(h)?(t.exit("data"),a(h)):(t.consume(h),u)}function f(h){if(h===null)return!0;const d=r[h];let p=-1;if(d)for(;++p-1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}a>0&&o.push(e[r].slice(0,a))}return o}function Gde(e,n){let t=-1;const i=[];let r;for(;++t0){const an=Ke.tokenStack[Ke.tokenStack.length-1];(an[1]||n8).call(Ke,void 0,an[0])}for(be.position={start:Qs(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:Qs(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je0&&(i.className=["language-"+r[0]]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function ihe(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function rhe(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ahe(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),r=od(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let o,l=e.footnoteCounts.get(i);l===void 0?(l=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(i,l);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,u);const f={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,f),e.applyData(n,f)}function ohe(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function she(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function RH(e,n){const t=n.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const r=e.all(n),a=r[0];a&&a.type==="text"?a.value="["+a.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function lhe(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return RH(e,n);const r={src:od(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function uhe(e,n){const t={src:od(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,i),e.applyData(n,i)}function che(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,i),e.applyData(n,i)}function fhe(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return RH(e,n);const r={href:od(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function dhe(e,n){const t={href:od(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function hhe(e,n,t){const i=e.all(n),r=t?mhe(t):PH(n),a={},o=[];if(typeof n.checked=="boolean"){const h=i[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l0){const an=Ke.tokenStack[Ke.tokenStack.length-1];(an[1]||t8).call(Ke,void 0,an[0])}for(be.position={start:Qs(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:Qs(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae0&&(i.className=["language-"+r[0]]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function she(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function lhe(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function uhe(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),r=od(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let o,l=e.footnoteCounts.get(i);l===void 0?(l=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(i,l);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,u);const f={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,f),e.applyData(n,f)}function che(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function fhe(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function RH(e,n){const t=n.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const r=e.all(n),a=r[0];a&&a.type==="text"?a.value="["+a.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function dhe(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return RH(e,n);const r={src:od(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function hhe(e,n){const t={src:od(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,i),e.applyData(n,i)}function mhe(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,i),e.applyData(n,i)}function phe(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return RH(e,n);const r={href:od(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function vhe(e,n){const t={href:od(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function ghe(e,n,t){const i=e.all(n),r=t?yhe(t):PH(n),a={},o=[];if(typeof n.checked=="boolean"){const h=i[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l1}function phe(e,n){const t={},i=e.all(n);let r=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++r0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},l=L9(n.children[1]),u=hH(n.children[n.children.length-1]);l&&u&&(o.position={start:l,end:u}),r.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function whe(e,n,t){const i=t?t.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,l=o?o.length:n.children.length;let u=-1;const f=[];for(;++u0,!0),i[0]),r=i.index+i[0].length,i=t.exec(n);return a.push(r8(n.slice(r),r>0,!1)),a.join("")}function r8(e,n,t){let i=0,r=e.length;if(n){let a=e.codePointAt(i);for(;a===t8||a===i8;)i++,a=e.codePointAt(i)}if(t){let a=e.codePointAt(r-1);for(;a===t8||a===i8;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function xhe(e,n){const t={type:"text",value:_he(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function She(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Che={blockquote:ehe,break:nhe,code:the,delete:ihe,emphasis:rhe,footnoteReference:ahe,heading:ohe,html:she,imageReference:lhe,image:uhe,inlineCode:che,linkReference:fhe,link:dhe,listItem:hhe,list:phe,paragraph:vhe,root:ghe,strong:yhe,table:bhe,tableCell:khe,tableRow:whe,text:xhe,thematicBreak:She,toml:ug,yaml:ug,definition:ug,footnoteDefinition:ug};function ug(){}const NH=-1,N0=0,nm=1,h1=2,V9=3,W9=4,G9=5,Y9=6,$H=7,zH=8,jhe=typeof self=="object"?self:globalThis,a8=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new jhe[e](n)},Ahe=(e,n)=>{const t=(r,a)=>(e.set(a,r),r),i=r=>{if(e.has(r))return e.get(r);const[a,o]=n[r];switch(a){case N0:case NH:return t(o,r);case nm:{const l=t([],r);for(const u of o)l.push(i(u));return l}case h1:{const l=t({},r);for(const[u,f]of o)l[i(u)]=i(f);return l}case V9:return t(new Date(o),r);case W9:{const{source:l,flags:u}=o;return t(new RegExp(l,u),r)}case G9:{const l=t(new Map,r);for(const[u,f]of o)l.set(i(u),i(f));return l}case Y9:{const l=t(new Set,r);for(const u of o)l.add(i(u));return l}case $H:{const{name:l,message:u}=o;return t(a8(l,u),r)}case zH:return t(BigInt(o),r);case"BigInt":return t(Object(BigInt(o)),r);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return t(new DataView(l),o)}}return t(a8(a,o),r)};return i},o8=e=>Ahe(new Map,e)(0),zc="",{toString:Ohe}={},{keys:The}=Object,Ch=e=>{const n=typeof e;if(n!=="object"||!e)return[N0,n];const t=Ohe.call(e).slice(8,-1);switch(t){case"Array":return[nm,zc];case"Object":return[h1,zc];case"Date":return[V9,zc];case"RegExp":return[W9,zc];case"Map":return[G9,zc];case"Set":return[Y9,zc];case"DataView":return[nm,t]}return t.includes("Array")?[nm,t]:t.includes("Error")?[$H,t]:[h1,t]},cg=([e,n])=>e===N0&&(n==="function"||n==="symbol"),Ehe=(e,n,t,i)=>{const r=(o,l)=>{const u=i.push(o)-1;return t.set(l,u),u},a=o=>{if(t.has(o))return t.get(o);let[l,u]=Ch(o);switch(l){case N0:{let h=o;switch(u){case"bigint":l=zH,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return r([NH],o)}return r([l,h],o)}case nm:{if(u){let p=o;return u==="DataView"?p=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(o)),r([u,[...p]],o)}const h=[],d=r([l,h],o);for(const p of o)h.push(a(p));return d}case h1:{if(u)switch(u){case"BigInt":return r([u,o.toString()],o);case"Boolean":case"Number":case"String":return r([u,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const h=[],d=r([l,h],o);for(const p of The(o))(e||!cg(Ch(o[p])))&&h.push([a(p),a(o[p])]);return d}case V9:return r([l,o.toISOString()],o);case W9:{const{source:h,flags:d}=o;return r([l,{source:h,flags:d}],o)}case G9:{const h=[],d=r([l,h],o);for(const[p,g]of o)(e||!(cg(Ch(p))||cg(Ch(g))))&&h.push([a(p),a(g)]);return d}case Y9:{const h=[],d=r([l,h],o);for(const p of o)(e||!cg(Ch(p)))&&h.push(a(p));return d}}const{message:f}=o;return r([l,{name:u,message:f}],o)};return a},s8=(e,{json:n,lossy:t}={})=>{const i=[];return Ehe(!(n||t),!!n,new Map,i)(e),i},m1=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?o8(s8(e,n)):structuredClone(e):(e,n)=>o8(s8(e,n));function Mhe(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Dhe(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Rhe(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Mhe,i=e.options.footnoteBackLabel||Dhe,r=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let S=typeof t=="string"?t:t(u,g);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(u,g),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const k=h[h.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const S=k.children[k.children.length-1];S&&S.type==="text"?S.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...b)}else h.push(...b);const _={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(h,!0)};e.patch(f,_),l.push(_)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...m1(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:` +`});const f={type:"element",tagName:"li",properties:a,children:o};return e.patch(n,f),e.applyData(n,f)}function yhe(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let i=-1;for(;!n&&++i1}function bhe(e,n){const t={},i=e.all(n);let r=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++r0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},l=I9(n.children[1]),u=hH(n.children[n.children.length-1]);l&&u&&(o.position={start:l,end:u}),r.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function She(e,n,t){const i=t?t.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,l=o?o.length:n.children.length;let u=-1;const f=[];for(;++u0,!0),i[0]),r=i.index+i[0].length,i=t.exec(n);return a.push(a8(n.slice(r),r>0,!1)),a.join("")}function a8(e,n,t){let i=0,r=e.length;if(n){let a=e.codePointAt(i);for(;a===i8||a===r8;)i++,a=e.codePointAt(i)}if(t){let a=e.codePointAt(r-1);for(;a===i8||a===r8;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function Ahe(e,n){const t={type:"text",value:jhe(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Ohe(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const The={blockquote:rhe,break:ahe,code:ohe,delete:she,emphasis:lhe,footnoteReference:uhe,heading:che,html:fhe,imageReference:dhe,image:hhe,inlineCode:mhe,linkReference:phe,link:vhe,listItem:ghe,list:bhe,paragraph:whe,root:khe,strong:_he,table:xhe,tableCell:Che,tableRow:She,text:Ahe,thematicBreak:Ohe,toml:ug,yaml:ug,definition:ug,footnoteDefinition:ug};function ug(){}const NH=-1,$0=0,nm=1,m1=2,W9=3,G9=4,Y9=5,K9=6,$H=7,zH=8,Ehe=typeof self=="object"?self:globalThis,o8=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Ehe[e](n)},Mhe=(e,n)=>{const t=(r,a)=>(e.set(a,r),r),i=r=>{if(e.has(r))return e.get(r);const[a,o]=n[r];switch(a){case $0:case NH:return t(o,r);case nm:{const l=t([],r);for(const u of o)l.push(i(u));return l}case m1:{const l=t({},r);for(const[u,f]of o)l[i(u)]=i(f);return l}case W9:return t(new Date(o),r);case G9:{const{source:l,flags:u}=o;return t(new RegExp(l,u),r)}case Y9:{const l=t(new Map,r);for(const[u,f]of o)l.set(i(u),i(f));return l}case K9:{const l=t(new Set,r);for(const u of o)l.add(i(u));return l}case $H:{const{name:l,message:u}=o;return t(o8(l,u),r)}case zH:return t(BigInt(o),r);case"BigInt":return t(Object(BigInt(o)),r);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return t(new DataView(l),o)}}return t(o8(a,o),r)};return i},s8=e=>Mhe(new Map,e)(0),Lc="",{toString:Dhe}={},{keys:Rhe}=Object,Ch=e=>{const n=typeof e;if(n!=="object"||!e)return[$0,n];const t=Dhe.call(e).slice(8,-1);switch(t){case"Array":return[nm,Lc];case"Object":return[m1,Lc];case"Date":return[W9,Lc];case"RegExp":return[G9,Lc];case"Map":return[Y9,Lc];case"Set":return[K9,Lc];case"DataView":return[nm,t]}return t.includes("Array")?[nm,t]:t.includes("Error")?[$H,t]:[m1,t]},cg=([e,n])=>e===$0&&(n==="function"||n==="symbol"),Phe=(e,n,t,i)=>{const r=(o,l)=>{const u=i.push(o)-1;return t.set(l,u),u},a=o=>{if(t.has(o))return t.get(o);let[l,u]=Ch(o);switch(l){case $0:{let h=o;switch(u){case"bigint":l=zH,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return r([NH],o)}return r([l,h],o)}case nm:{if(u){let p=o;return u==="DataView"?p=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(o)),r([u,[...p]],o)}const h=[],d=r([l,h],o);for(const p of o)h.push(a(p));return d}case m1:{if(u)switch(u){case"BigInt":return r([u,o.toString()],o);case"Boolean":case"Number":case"String":return r([u,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const h=[],d=r([l,h],o);for(const p of Rhe(o))(e||!cg(Ch(o[p])))&&h.push([a(p),a(o[p])]);return d}case W9:return r([l,o.toISOString()],o);case G9:{const{source:h,flags:d}=o;return r([l,{source:h,flags:d}],o)}case Y9:{const h=[],d=r([l,h],o);for(const[p,g]of o)(e||!(cg(Ch(p))||cg(Ch(g))))&&h.push([a(p),a(g)]);return d}case K9:{const h=[],d=r([l,h],o);for(const p of o)(e||!cg(Ch(p)))&&h.push(a(p));return d}}const{message:f}=o;return r([l,{name:u,message:f}],o)};return a},l8=(e,{json:n,lossy:t}={})=>{const i=[];return Phe(!(n||t),!!n,new Map,i)(e),i},p1=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?s8(l8(e,n)):structuredClone(e):(e,n)=>s8(l8(e,n));function Nhe(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function $he(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function zhe(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Nhe,i=e.options.footnoteBackLabel||$he,r=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let x=typeof t=="string"?t:t(u,g);typeof x=="string"&&(x={type:"text",value:x}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(u,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const k=h[h.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const x=k.children[k.children.length-1];x&&x.type==="text"?x.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...b)}else h.push(...b);const _={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(h,!0)};e.patch(f,_),l.push(_)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...p1(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` -`}]}}const $0=(function(e){if(e==null)return zhe;if(typeof e=="function")return z0(e);if(typeof e=="object")return Array.isArray(e)?Phe(e):Nhe(e);if(typeof e=="string")return $he(e);throw new Error("Expected function, string, or object as test")});function Phe(e){const n=[];let t=-1;for(;++t":""))+")"})}return p;function p(){let g=LH,b,w,k;if((!n||a(u,f,h[h.length-1]||void 0))&&(g=Fhe(t(u,h)),g[0]===v4))return g;if("children"in u&&u.children){const _=u;if(_.children&&g[0]!==Bhe)for(w=(i?_.children.length:-1)+o,k=h.concat(_);w>-1&&w<_.children.length;){const S=_.children[w];if(b=l(S,w,k)(),b[0]===v4)return b;w=typeof b[1]=="number"?b[1]:w+o}}return g}}}function Fhe(e){return Array.isArray(e)?e:typeof e=="number"?[Ihe,e]:e==null?LH:[e]}function K9(e,n,t,i){let r,a,o;typeof n=="function"&&typeof t!="function"?(a=void 0,o=n,r=t):(a=n,o=t,r=i),IH(e,a,l,r);function l(u,f){const h=f[f.length-1],d=h?h.children.indexOf(u):void 0;return o(u,d,h)}}const g4={}.hasOwnProperty,qhe={};function Hhe(e,n){const t=n||qhe,i=new Map,r=new Map,a=new Map,o={...Che,...t.handlers},l={all:f,applyData:Vhe,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:o,one:u,options:t,patch:Uhe,wrap:Ghe};return K9(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?i:r,p=String(h.identifier).toUpperCase();d.has(p)||d.set(p,h)}}),l;function u(h,d){const p=h.type,g=l.handlers[p];if(g4.call(l.handlers,p)&&g)return g(l,h,d);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in h){const{children:w,...k}=h,_=m1(k);return _.children=l.all(h),_}return m1(h)}return(l.options.unknownHandler||Whe)(l,h,d)}function f(h){const d=[];if("children"in h){const p=h.children;let g=-1;for(;++g":""))+")"})}return p;function p(){let g=LH,b,w,k;if((!n||a(u,f,h[h.length-1]||void 0))&&(g=Vhe(t(u,h)),g[0]===v4))return g;if("children"in u&&u.children){const _=u;if(_.children&&g[0]!==Uhe)for(w=(i?_.children.length:-1)+o,k=h.concat(_);w>-1&&w<_.children.length;){const x=_.children[w];if(b=l(x,w,k)(),b[0]===v4)return b;w=typeof b[1]=="number"?b[1]:w+o}}return g}}}function Vhe(e){return Array.isArray(e)?e:typeof e=="number"?[Hhe,e]:e==null?LH:[e]}function X9(e,n,t,i){let r,a,o;typeof n=="function"&&typeof t!="function"?(a=void 0,o=n,r=t):(a=n,o=t,r=i),IH(e,a,l,r);function l(u,f){const h=f[f.length-1],d=h?h.children.indexOf(u):void 0;return o(u,d,h)}}const g4={}.hasOwnProperty,Whe={};function Ghe(e,n){const t=n||Whe,i=new Map,r=new Map,a=new Map,o={...The,...t.handlers},l={all:f,applyData:Khe,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:o,one:u,options:t,patch:Yhe,wrap:Zhe};return X9(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?i:r,p=String(h.identifier).toUpperCase();d.has(p)||d.set(p,h)}}),l;function u(h,d){const p=h.type,g=l.handlers[p];if(g4.call(l.handlers,p)&&g)return g(l,h,d);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in h){const{children:w,...k}=h,_=p1(k);return _.children=l.all(h),_}return p1(h)}return(l.options.unknownHandler||Xhe)(l,h,d)}function f(h){const d=[];if("children"in h){const p=h.children;let g=-1;for(;++g0&&t.push({type:"text",value:` -`}),t}function l8(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function u8(e,n){const t=Hhe(e,n),i=t.one(e,void 0),r=Rhe(t),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&a.children.push({type:"text",value:` -`},r),a}function Yhe(e,n){return e&&"run"in e?async function(t,i){const r=u8(t,{file:i,...n});await e.run(r,i)}:function(t,i){return u8(t,{file:i,...e||n})}}function c8(e){if(e)throw e}var f_,f8;function Khe(){if(f8)return f_;f8=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},a=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var h=e.call(f,"constructor"),d=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!h&&!d)return!1;var p;for(p in f);return typeof p>"u"||e.call(f,p)},o=function(f,h){t&&h.name==="__proto__"?t(f,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):f[h.name]=h.newValue},l=function(f,h){if(h==="__proto__")if(e.call(f,h)){if(i)return i(f,h).value}else return;return f[h]};return f_=function u(){var f,h,d,p,g,b,w=arguments[0],k=1,_=arguments.length,S=!1;for(typeof w=="boolean"&&(S=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<_;++k)if(f=arguments[k],f!=null)for(h in f)d=l(w,h),p=l(f,h),w!==p&&(S&&p&&(a(p)||(g=r(p)))?(g?(g=!1,b=d&&r(d)?d:[]):b=d&&a(d)?d:{},o(w,{name:h,newValue:u(S,b,p)})):typeof p<"u"&&o(w,{name:h,newValue:p}));return w},f_}var Xhe=Khe();const d_=yt(Xhe);function y4(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Zhe(){const e=[],n={run:t,use:i};return n;function t(...r){let a=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(u,...f){const h=e[++a];let d=-1;if(u){o(u);return}for(;++do.length;let u;l&&o.push(r);try{u=e.apply(this,o)}catch(f){const h=f;if(l&&t)throw h;return r(h)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,r):u instanceof Error?r(u):a(u))}function r(o,...l){t||(t=!0,n(o,...l))}function a(o){r(null,o)}}const eo={basename:Jhe,dirname:eme,extname:nme,join:tme,sep:"/"};function Jhe(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ep(e);let t=0,i=-1,r=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(t,i)}if(n===e)return"";let o=-1,l=n.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else o<0&&(a=!0,o=r+1),l>-1&&(e.codePointAt(r)===n.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return t===i?i=o:i<0&&(i=e.length),e.slice(t,i)}function eme(e){if(Ep(e),e.length===0)return".";let n=-1,t=e.length,i;for(;--t;)if(e.codePointAt(t)===47){if(i){n=t;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function nme(e){Ep(e);let n=e.length,t=-1,i=0,r=-1,a=0,o;for(;n--;){const l=e.codePointAt(n);if(l===47){if(o){i=n+1;break}continue}t<0&&(o=!0,t=n+1),l===46?r<0?r=n:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===i+1?"":e.slice(r,t)}function tme(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function rme(e,n){let t="",i=0,r=-1,a=0,o=-1,l,u;for(;++o<=e.length;){if(o2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",i=0):(t=t.slice(0,u),i=t.length-1-t.lastIndexOf("/")),r=o,a=0;continue}}else if(t.length>0){t="",i=0,r=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+e.slice(r+1,o):t=e.slice(r+1,o),i=o-r-1;r=o,a=0}else l===46&&a>-1?a++:a=-1}return t}function Ep(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ame={cwd:ome};function ome(){return"/"}function b4(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function sme(e){if(typeof e=="string")e=new URL(e);else if(!b4(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return lme(e)}function lme(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let t=-1;for(;++t0){let[g,...b]=h;const w=i[p][1];y4(w)&&y4(g)&&(g=d_(!0,w,g)),i[p]=[f,g,...b]}}}}const dme=new X9().freeze();function v_(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function g_(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function y_(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function h8(e){if(!y4(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function m8(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function fg(e){return hme(e)?e:new BH(e)}function hme(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mme(e){return typeof e=="string"||pme(e)}function pme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vme="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",p8=[],v8={allowDangerousHtml:!0},gme=/^(https?|ircs?|mailto|xmpp)$/i,yme=[{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 bme(e){const n=wme(e),t=kme(e);return _me(n.runSync(n.parse(t),t),e)}function wme(e){const n=e.rehypePlugins||p8,t=e.remarkPlugins||p8,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...v8}:v8;return dme().use(Jde).use(t).use(Yhe,i).use(n)}function kme(e){const n=e.children||"",t=new BH;return typeof n=="string"&&(t.value=n),t}function _me(e,n){const t=n.allowedElements,i=n.allowElement,r=n.components,a=n.disallowedElements,o=n.skipHtml,l=n.unwrapDisallowed,u=n.urlTransform||xme;for(const h of yme)Object.hasOwn(n,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+vme+h.id,void 0);return K9(e,f),$ce(e,{Fragment:v.Fragment,components:r,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function f(h,d,p){if(h.type==="raw"&&p&&typeof d=="number")return o?p.children.splice(d,1):p.children[d]={type:"text",value:h.value},d;if(h.type==="element"){let g;for(g in l_)if(Object.hasOwn(l_,g)&&Object.hasOwn(h.properties,g)){const b=h.properties[g],w=l_[g];(w===null||w.includes(h.tagName))&&(h.properties[g]=u(String(b||""),g,h))}}if(h.type==="element"){let g=t?!t.includes(h.tagName):a?a.includes(h.tagName):!1;if(!g&&i&&typeof d=="number"&&(g=!i(h,d,p)),g&&p&&typeof d=="number")return l&&h.children?p.children.splice(d,1,...h.children):p.children.splice(d,1),d}}}function xme(e){const n=e.indexOf(":"),t=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return n===-1||r!==-1&&n>r||t!==-1&&n>t||i!==-1&&n>i||gme.test(e.slice(0,n))?e:""}function g8(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,r=t.indexOf(n);for(;r!==-1;)i++,r=t.indexOf(n,r+n.length);return i}function Sme(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Cme(e,n,t){const r=$0((t||{}).ignore||[]),a=jme(n);let o=-1;for(;++o0?{type:"text",value:O}:void 0),O===!1?p.lastIndex=T+1:(b!==T&&S.push({type:"text",value:f.value.slice(b,T)}),Array.isArray(O)?S.push(...O):O&&S.push(O),b=T+j[0].length,_=!0),!p.global)break;j=p.exec(f.value)}return _?(b?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],i=t.indexOf(")");const r=g8(e,"(");let a=g8(e,")");for(;i!==-1&&r>a;)e+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),a++;return[e,t]}function FH(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Pu(t)||R0(t))&&(!n||t!==47)}qH.peek=Kme;function Fme(){this.buffer()}function qme(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Hme(){this.buffer()}function Ume(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Vme(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qa(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Wme(e){this.exit(e)}function Gme(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qa(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Yme(e){this.exit(e)}function Kme(){return"["}function qH(e,n,t,i){const r=t.createTracker(i);let a=r.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=r.move(t.safe(t.associationId(e),{after:"]",before:a})),l(),o(),a+=r.move("]"),a}function Xme(){return{enter:{gfmFootnoteCallString:Fme,gfmFootnoteCall:qme,gfmFootnoteDefinitionLabelString:Hme,gfmFootnoteDefinition:Ume},exit:{gfmFootnoteCallString:Vme,gfmFootnoteCall:Wme,gfmFootnoteDefinitionLabelString:Gme,gfmFootnoteDefinition:Yme}}}function Zme(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:qH},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(i,r,a,o){const l=a.createTracker(o);let u=l.move("[^");const f=a.enter("footnoteDefinition"),h=a.enter("label");return u+=l.move(a.safe(a.associationId(i),{before:u,after:"]"})),h(),u+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),u+=l.move((n?` -`:" ")+a.indentLines(a.containerFlow(i,l.current()),n?HH:Qme))),f(),u}}function Qme(e,n,t){return n===0?e:HH(e,n,t)}function HH(e,n,t){return(t?"":" ")+e}const Jme=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];UH.peek=rpe;function epe(){return{canContainEols:["delete"],enter:{strikethrough:tpe},exit:{strikethrough:ipe}}}function npe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Jme}],handlers:{delete:UH}}}function tpe(e){this.enter({type:"delete",children:[]},e)}function ipe(e){this.exit(e)}function UH(e,n,t,i){const r=t.createTracker(i),a=t.enter("strikethrough");let o=r.move("~~");return o+=t.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),a(),o}function rpe(){return"~"}function ape(e){return e.length}function ope(e,n){const t=n||{},i=(t.align||[]).concat(),r=t.stringLength||ape,a=[],o=[],l=[],u=[];let f=0,h=-1;for(;++hf&&(f=e[h].length);++_u[_])&&(u[_]=j)}w.push(S)}o[h]=w,l[h]=k}let d=-1;if(typeof i=="object"&&"length"in i)for(;++du[d]&&(u[d]=S),g[d]=S),p[d]=j}o.splice(1,0,p),l.splice(1,0,g),h=-1;const b=[];for(;++h "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),upe);return r(),o}function upe(e,n,t){return">"+(t?"":" ")+e}function cpe(e,n){return b8(e,n.inConstruct,!0)&&!b8(e,n.notInConstruct,!1)}function b8(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++io&&(o=a):a=1,r=i+n.length,i=t.indexOf(n,r);return o}function dpe(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function hpe(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function mpe(e,n,t,i){const r=hpe(t),a=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(dpe(e,t)){const d=t.enter("codeIndented"),p=t.indentLines(a,ppe);return d(),p}const l=t.createTracker(i),u=r.repeat(Math.max(fpe(a,r)+1,3)),f=t.enter("codeFenced");let h=l.move(u);if(e.lang){const d=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:` +`}),t}function u8(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function c8(e,n){const t=Ghe(e,n),i=t.one(e,void 0),r=zhe(t),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&a.children.push({type:"text",value:` +`},r),a}function Qhe(e,n){return e&&"run"in e?async function(t,i){const r=c8(t,{file:i,...n});await e.run(r,i)}:function(t,i){return c8(t,{file:i,...e||n})}}function f8(e){if(e)throw e}var d_,d8;function Jhe(){if(d8)return d_;d8=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},a=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var h=e.call(f,"constructor"),d=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!h&&!d)return!1;var p;for(p in f);return typeof p>"u"||e.call(f,p)},o=function(f,h){t&&h.name==="__proto__"?t(f,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):f[h.name]=h.newValue},l=function(f,h){if(h==="__proto__")if(e.call(f,h)){if(i)return i(f,h).value}else return;return f[h]};return d_=function u(){var f,h,d,p,g,b,w=arguments[0],k=1,_=arguments.length,x=!1;for(typeof w=="boolean"&&(x=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<_;++k)if(f=arguments[k],f!=null)for(h in f)d=l(w,h),p=l(f,h),w!==p&&(x&&p&&(a(p)||(g=r(p)))?(g?(g=!1,b=d&&r(d)?d:[]):b=d&&a(d)?d:{},o(w,{name:h,newValue:u(x,b,p)})):typeof p<"u"&&o(w,{name:h,newValue:p}));return w},d_}var eme=Jhe();const h_=yt(eme);function y4(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function nme(){const e=[],n={run:t,use:i};return n;function t(...r){let a=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(u,...f){const h=e[++a];let d=-1;if(u){o(u);return}for(;++do.length;let u;l&&o.push(r);try{u=e.apply(this,o)}catch(f){const h=f;if(l&&t)throw h;return r(h)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,r):u instanceof Error?r(u):a(u))}function r(o,...l){t||(t=!0,n(o,...l))}function a(o){r(null,o)}}const no={basename:ime,dirname:rme,extname:ame,join:ome,sep:"/"};function ime(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ep(e);let t=0,i=-1,r=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(t,i)}if(n===e)return"";let o=-1,l=n.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else o<0&&(a=!0,o=r+1),l>-1&&(e.codePointAt(r)===n.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return t===i?i=o:i<0&&(i=e.length),e.slice(t,i)}function rme(e){if(Ep(e),e.length===0)return".";let n=-1,t=e.length,i;for(;--t;)if(e.codePointAt(t)===47){if(i){n=t;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function ame(e){Ep(e);let n=e.length,t=-1,i=0,r=-1,a=0,o;for(;n--;){const l=e.codePointAt(n);if(l===47){if(o){i=n+1;break}continue}t<0&&(o=!0,t=n+1),l===46?r<0?r=n:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===i+1?"":e.slice(r,t)}function ome(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function lme(e,n){let t="",i=0,r=-1,a=0,o=-1,l,u;for(;++o<=e.length;){if(o2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",i=0):(t=t.slice(0,u),i=t.length-1-t.lastIndexOf("/")),r=o,a=0;continue}}else if(t.length>0){t="",i=0,r=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+e.slice(r+1,o):t=e.slice(r+1,o),i=o-r-1;r=o,a=0}else l===46&&a>-1?a++:a=-1}return t}function Ep(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ume={cwd:cme};function cme(){return"/"}function b4(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fme(e){if(typeof e=="string")e=new URL(e);else if(!b4(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return dme(e)}function dme(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let t=-1;for(;++t0){let[g,...b]=h;const w=i[p][1];y4(w)&&y4(g)&&(g=h_(!0,w,g)),i[p]=[f,g,...b]}}}}const vme=new Z9().freeze();function g_(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function y_(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function b_(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function m8(e){if(!y4(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function p8(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function fg(e){return gme(e)?e:new BH(e)}function gme(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function yme(e){return typeof e=="string"||bme(e)}function bme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wme="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",v8=[],g8={allowDangerousHtml:!0},kme=/^(https?|ircs?|mailto|xmpp)$/i,_me=[{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 xme(e){const n=Sme(e),t=Cme(e);return jme(n.runSync(n.parse(t),t),e)}function Sme(e){const n=e.rehypePlugins||v8,t=e.remarkPlugins||v8,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...g8}:g8;return vme().use(ihe).use(t).use(Qhe,i).use(n)}function Cme(e){const n=e.children||"",t=new BH;return typeof n=="string"&&(t.value=n),t}function jme(e,n){const t=n.allowedElements,i=n.allowElement,r=n.components,a=n.disallowedElements,o=n.skipHtml,l=n.unwrapDisallowed,u=n.urlTransform||Ame;for(const h of _me)Object.hasOwn(n,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+wme+h.id,void 0);return X9(e,f),Bce(e,{Fragment:v.Fragment,components:r,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function f(h,d,p){if(h.type==="raw"&&p&&typeof d=="number")return o?p.children.splice(d,1):p.children[d]={type:"text",value:h.value},d;if(h.type==="element"){let g;for(g in u_)if(Object.hasOwn(u_,g)&&Object.hasOwn(h.properties,g)){const b=h.properties[g],w=u_[g];(w===null||w.includes(h.tagName))&&(h.properties[g]=u(String(b||""),g,h))}}if(h.type==="element"){let g=t?!t.includes(h.tagName):a?a.includes(h.tagName):!1;if(!g&&i&&typeof d=="number"&&(g=!i(h,d,p)),g&&p&&typeof d=="number")return l&&h.children?p.children.splice(d,1,...h.children):p.children.splice(d,1),d}}}function Ame(e){const n=e.indexOf(":"),t=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return n===-1||r!==-1&&n>r||t!==-1&&n>t||i!==-1&&n>i||kme.test(e.slice(0,n))?e:""}function y8(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,r=t.indexOf(n);for(;r!==-1;)i++,r=t.indexOf(n,r+n.length);return i}function Ome(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Tme(e,n,t){const r=z0((t||{}).ignore||[]),a=Eme(n);let o=-1;for(;++o0?{type:"text",value:O}:void 0),O===!1?p.lastIndex=T+1:(b!==T&&x.push({type:"text",value:f.value.slice(b,T)}),Array.isArray(O)?x.push(...O):O&&x.push(O),b=T+C[0].length,_=!0),!p.global)break;C=p.exec(f.value)}return _?(b?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],i=t.indexOf(")");const r=y8(e,"(");let a=y8(e,")");for(;i!==-1&&r>a;)e+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),a++;return[e,t]}function FH(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Nu(t)||P0(t))&&(!n||t!==47)}qH.peek=Jme;function Vme(){this.buffer()}function Wme(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Gme(){this.buffer()}function Yme(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Kme(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qa(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Xme(e){this.exit(e)}function Zme(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qa(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Qme(e){this.exit(e)}function Jme(){return"["}function qH(e,n,t,i){const r=t.createTracker(i);let a=r.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=r.move(t.safe(t.associationId(e),{after:"]",before:a})),l(),o(),a+=r.move("]"),a}function epe(){return{enter:{gfmFootnoteCallString:Vme,gfmFootnoteCall:Wme,gfmFootnoteDefinitionLabelString:Gme,gfmFootnoteDefinition:Yme},exit:{gfmFootnoteCallString:Kme,gfmFootnoteCall:Xme,gfmFootnoteDefinitionLabelString:Zme,gfmFootnoteDefinition:Qme}}}function npe(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:qH},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(i,r,a,o){const l=a.createTracker(o);let u=l.move("[^");const f=a.enter("footnoteDefinition"),h=a.enter("label");return u+=l.move(a.safe(a.associationId(i),{before:u,after:"]"})),h(),u+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),u+=l.move((n?` +`:" ")+a.indentLines(a.containerFlow(i,l.current()),n?HH:tpe))),f(),u}}function tpe(e,n,t){return n===0?e:HH(e,n,t)}function HH(e,n,t){return(t?"":" ")+e}const ipe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];UH.peek=lpe;function rpe(){return{canContainEols:["delete"],enter:{strikethrough:ope},exit:{strikethrough:spe}}}function ape(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ipe}],handlers:{delete:UH}}}function ope(e){this.enter({type:"delete",children:[]},e)}function spe(e){this.exit(e)}function UH(e,n,t,i){const r=t.createTracker(i),a=t.enter("strikethrough");let o=r.move("~~");return o+=t.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),a(),o}function lpe(){return"~"}function upe(e){return e.length}function cpe(e,n){const t=n||{},i=(t.align||[]).concat(),r=t.stringLength||upe,a=[],o=[],l=[],u=[];let f=0,h=-1;for(;++hf&&(f=e[h].length);++_u[_])&&(u[_]=C)}w.push(x)}o[h]=w,l[h]=k}let d=-1;if(typeof i=="object"&&"length"in i)for(;++du[d]&&(u[d]=x),g[d]=x),p[d]=C}o.splice(1,0,p),l.splice(1,0,g),h=-1;const b=[];for(;++h "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),hpe);return r(),o}function hpe(e,n,t){return">"+(t?"":" ")+e}function mpe(e,n){return w8(e,n.inConstruct,!0)&&!w8(e,n.notInConstruct,!1)}function w8(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++io&&(o=a):a=1,r=i+n.length,i=t.indexOf(n,r);return o}function vpe(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function gpe(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function ype(e,n,t,i){const r=gpe(t),a=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(vpe(e,t)){const d=t.enter("codeIndented"),p=t.indentLines(a,bpe);return d(),p}const l=t.createTracker(i),u=r.repeat(Math.max(ppe(a,r)+1,3)),f=t.enter("codeFenced");let h=l.move(u);if(e.lang){const d=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:` `,encode:["`"],...l.current()})),d()}return h+=l.move(` `),a&&(h+=l.move(a+` -`)),h+=l.move(u),f(),h}function ppe(e,n,t){return(t?"":" ")+e}function Z9(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function vpe(e,n,t,i){const r=Z9(t),a=r==='"'?"Quote":"Apostrophe",o=t.enter("definition");let l=t.enter("label");const u=t.createTracker(i);let f=u.move("[");return f+=u.move(t.safe(t.associationId(e),{before:f,after:"]",...u.current()})),f+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(t.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=t.enter("destinationRaw"),f+=u.move(t.safe(e.url,{before:f,after:e.title?" ":` -`,...u.current()}))),l(),e.title&&(l=t.enter(`title${a}`),f+=u.move(" "+r),f+=u.move(t.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),o(),f}function gpe(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function _m(e){return"&#x"+e.toString(16).toUpperCase()+";"}function p1(e,n,t){const i=df(e),r=df(n);return i===void 0?r===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}VH.peek=ype;function VH(e,n,t,i){const r=gpe(t),a=t.enter("emphasis"),o=t.createTracker(i),l=o.move(r);let u=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),h=p1(i.before.charCodeAt(i.before.length-1),f,r);h.inside&&(u=_m(f)+u.slice(1));const d=u.charCodeAt(u.length-1),p=p1(i.after.charCodeAt(0),d,r);p.inside&&(u=u.slice(0,-1)+_m(d));const g=o.move(r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+u+g}function ype(e,n,t){return t.options.emphasis||"*"}function bpe(e,n){let t=!1;return K9(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,v4}),!!((!e.depth||e.depth<3)&&q9(e)&&(n.options.setext||t))}function wpe(e,n,t,i){const r=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(i);if(bpe(e,t)){const h=t.enter("headingSetext"),d=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:` +`)),h+=l.move(u),f(),h}function bpe(e,n,t){return(t?"":" ")+e}function Q9(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function wpe(e,n,t,i){const r=Q9(t),a=r==='"'?"Quote":"Apostrophe",o=t.enter("definition");let l=t.enter("label");const u=t.createTracker(i);let f=u.move("[");return f+=u.move(t.safe(t.associationId(e),{before:f,after:"]",...u.current()})),f+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(t.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=t.enter("destinationRaw"),f+=u.move(t.safe(e.url,{before:f,after:e.title?" ":` +`,...u.current()}))),l(),e.title&&(l=t.enter(`title${a}`),f+=u.move(" "+r),f+=u.move(t.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),o(),f}function kpe(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function _m(e){return"&#x"+e.toString(16).toUpperCase()+";"}function v1(e,n,t){const i=df(e),r=df(n);return i===void 0?r===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}VH.peek=_pe;function VH(e,n,t,i){const r=kpe(t),a=t.enter("emphasis"),o=t.createTracker(i),l=o.move(r);let u=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),h=v1(i.before.charCodeAt(i.before.length-1),f,r);h.inside&&(u=_m(f)+u.slice(1));const d=u.charCodeAt(u.length-1),p=v1(i.after.charCodeAt(0),d,r);p.inside&&(u=u.slice(0,-1)+_m(d));const g=o.move(r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+u+g}function _pe(e,n,t){return t.options.emphasis||"*"}function xpe(e,n){let t=!1;return X9(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,v4}),!!((!e.depth||e.depth<3)&&H9(e)&&(n.options.setext||t))}function Spe(e,n,t,i){const r=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(i);if(xpe(e,t)){const h=t.enter("headingSetext"),d=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:` `,after:` `});return d(),h(),p+` `+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const o="#".repeat(r),l=t.enter("headingAtx"),u=t.enter("phrasing");a.move(o+" ");let f=t.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(f)&&(f=_m(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,t.options.closeAtx&&(f+=" "+o),u(),l(),f}WH.peek=kpe;function WH(e){return e.value||""}function kpe(){return"<"}GH.peek=_pe;function GH(e,n,t,i){const r=Z9(t),a=r==='"'?"Quote":"Apostrophe",o=t.enter("image");let l=t.enter("label");const u=t.createTracker(i);let f=u.move("![");return f+=u.move(t.safe(e.alt,{before:f,after:"]",...u.current()})),f+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(t.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=t.enter("destinationRaw"),f+=u.move(t.safe(e.url,{before:f,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=t.enter(`title${a}`),f+=u.move(" "+r),f+=u.move(t.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),f+=u.move(")"),o(),f}function _pe(){return"!"}YH.peek=xpe;function YH(e,n,t,i){const r=e.referenceType,a=t.enter("imageReference");let o=t.enter("label");const l=t.createTracker(i);let u=l.move("![");const f=t.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:u,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!f||f!==d?u+=l.move(d+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function xpe(){return"!"}KH.peek=Spe;function KH(e,n,t){let i=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a\u007F]/.test(e.url))}ZH.peek=Cpe;function ZH(e,n,t,i){const r=Z9(t),a=r==='"'?"Quote":"Apostrophe",o=t.createTracker(i);let l,u;if(XH(e,t)){const h=t.stack;t.stack=[],l=t.enter("autolink");let d=o.move("<");return d+=o.move(t.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),t.stack=h,d}l=t.enter("link"),u=t.enter("label");let f=o.move("[");return f+=o.move(t.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(t.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(u=t.enter("destinationRaw"),f+=o.move(t.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=t.enter(`title${a}`),f+=o.move(" "+r),f+=o.move(t.safe(e.title,{before:f,after:r,...o.current()})),f+=o.move(r),u()),f+=o.move(")"),l(),f}function Cpe(e,n,t){return XH(e,t)?"<":"["}QH.peek=jpe;function QH(e,n,t,i){const r=e.referenceType,a=t.enter("linkReference");let o=t.enter("label");const l=t.createTracker(i);let u=l.move("[");const f=t.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:u,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!f||f!==d?u+=l.move(d+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function jpe(){return"["}function Q9(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Ape(e){const n=Q9(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Ope(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function JH(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Tpe(e,n,t,i){const r=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?Ope(t):Q9(t);const l=e.ordered?o==="."?")":".":Ape(t);let u=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),JH(t)===o&&h){let d=-1;for(;++d-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(r==="tab"||r==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=t.createTracker(i);l.move(a+" ".repeat(o-a.length)),l.shift(o);const u=t.enter("listItem"),f=t.indentLines(t.containerFlow(e,l.current()),h);return u(),f;function h(d,p,g){return p?(g?"":" ".repeat(o))+d:(g?a:a+" ".repeat(o-a.length))+d}}function Dpe(e,n,t,i){const r=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,i);return a(),r(),o}const Rpe=$0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ppe(e,n,t,i){return(e.children.some(function(o){return Rpe(o)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}function Npe(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}eU.peek=$pe;function eU(e,n,t,i){const r=Npe(t),a=t.enter("strong"),o=t.createTracker(i),l=o.move(r+r);let u=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),h=p1(i.before.charCodeAt(i.before.length-1),f,r);h.inside&&(u=_m(f)+u.slice(1));const d=u.charCodeAt(u.length-1),p=p1(i.after.charCodeAt(0),d,r);p.inside&&(u=u.slice(0,-1)+_m(d));const g=o.move(r+r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+u+g}function $pe(e,n,t){return t.options.strong||"*"}function zpe(e,n,t,i){return t.safe(e.value,i)}function Lpe(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Ipe(e,n,t){const i=(JH(t)+(t.options.ruleSpaces?" ":"")).repeat(Lpe(t));return t.options.ruleSpaces?i.slice(0,-1):i}const nU={blockquote:lpe,break:w8,code:mpe,definition:vpe,emphasis:VH,hardBreak:w8,heading:wpe,html:WH,image:GH,imageReference:YH,inlineCode:KH,link:ZH,linkReference:QH,list:Tpe,listItem:Mpe,paragraph:Dpe,root:Ppe,strong:eU,text:zpe,thematicBreak:Ipe};function Bpe(){return{enter:{table:Fpe,tableData:k8,tableHeader:k8,tableRow:Hpe},exit:{codeText:Upe,table:qpe,tableData:__,tableHeader:__,tableRow:__}}}function Fpe(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function qpe(e){this.exit(e),this.data.inTable=void 0}function Hpe(e){this.enter({type:"tableRow",children:[]},e)}function __(e){this.exit(e)}function k8(e){this.enter({type:"tableCell",children:[]},e)}function Upe(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Vpe));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Vpe(e,n){return n==="|"?n:e}function Wpe(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,r=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:u,tableRow:l}};function o(g,b,w,k){return f(h(g,w,k),g.align)}function l(g,b,w,k){const _=d(g,w,k),S=f([_]);return S.slice(0,S.indexOf(` -`))}function u(g,b,w,k){const _=w.enter("tableCell"),S=w.enter("phrasing"),j=w.containerPhrasing(g,{...k,before:a,after:a});return S(),_(),j}function f(g,b){return ope(g,{align:b,alignDelimiters:i,padding:t,stringLength:r})}function h(g,b,w){const k=g.children;let _=-1;const S=[],j=b.enter("table");for(;++_0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const cve={tokenize:yve,partial:!0};function fve(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:pve,continuation:{tokenize:vve},exit:gve}},text:{91:{name:"gfmFootnoteCall",tokenize:mve},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dve,resolveTo:hve}}}}function dve(e,n,t){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const u=i.events[r][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return t(u);const f=qa(i.sliceSerialize({start:o.end,end:i.now()}));return f.codePointAt(0)!==94||!a.includes(f.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function hve(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",r,n],["exit",r,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...l),e}function mve(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,o;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?t(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(d){if(a>999||d===93&&!o||d===null||d===91||zt(d))return t(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(qa(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(d)}return zt(d)||(o=!0),a++,e.consume(d),d===92?h:f}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function pve(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,o=0,l;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||zt(b))return t(b);if(b===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return a=qa(i.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return zt(b)||(l=!0),o++,e.consume(b),b===92?d:h}function d(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),r.includes(a)||r.push(a),dt(e,g,"gfmFootnoteDefinitionWhitespace")):t(b)}function g(b){return n(b)}}function vve(e,n,t){return e.check(Tp,n,e.attempt(cve,n,t))}function gve(e){e.exit("gfmFootnoteDefinition")}function yve(e,n,t){const i=this;return dt(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function bve(e){let t=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let u=-1;for(;++u1?u(b):(o.consume(b),d++,g);if(d<2&&!t)return u(b);const k=o.exit("strikethroughSequenceTemporary"),_=df(b);return k._open=!_||_===2&&!!w,k._close=!w||w===2&&!!_,l(b)}}}class wve{constructor(){this.map=[]}add(n,t,i){kve(this,n,t,i)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const i=[];for(;t>0;)t-=1,i.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];i.push(n.slice()),n.length=0;let r=i.pop();for(;r;){for(const a of r)n.push(a);r=i.pop()}this.map.length=0}}function kve(e,n,t,i){let r=0;if(!(t===0&&i.length===0)){for(;r-1;){const B=i.events[L][1].type;if(B==="lineEnding"||B==="linePrefix")L--;else break}const U=L>-1?i.events[L][1].type:null,G=U==="tableHead"||U==="tableRow"?O:u;return G===O&&i.parser.lazy[i.now().line]?t(P):G(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),f(P)}function f(P){return P===124||(o=!0,a+=1),h(P)}function h(P){return P===null?t(P):Cn(P)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):t(P):rt(P)?dt(e,h,"whitespace")(P):(a+=1,o&&(o=!1,r+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||zt(P)?(e.exit("data"),h(P)):(e.consume(P),P===92?p:d)}function p(P){return P===92||P===124?(e.consume(P),d):d(P)}function g(P){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(P):(e.enter("tableDelimiterRow"),o=!1,rt(P)?dt(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?k(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),w):A(P)}function w(P){return rt(P)?dt(e,k,"whitespace")(P):k(P)}function k(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),_):P===45?(a+=1,_(P)):P===null||Cn(P)?T(P):A(P)}function _(P){return P===45?(e.enter("tableDelimiterFiller"),S(P)):A(P)}function S(P){return P===45?(e.consume(P),S):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(P))}function j(P){return rt(P)?dt(e,T,"whitespace")(P):T(P)}function T(P){return P===124?b(P):P===null||Cn(P)?!o||r!==a?A(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(P)):A(P)}function A(P){return t(P)}function O(P){return e.enter("tableRow"),M(P)}function M(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),M):P===null||Cn(P)?(e.exit("tableRow"),n(P)):rt(P)?dt(e,M,"whitespace")(P):(e.enter("data"),$(P))}function $(P){return P===null||P===124||zt(P)?(e.exit("data"),M(P)):(e.consume(P),P===92?q:$)}function q(P){return P===92||P===124?(e.consume(P),$):$(P)}}function Cve(e,n){let t=-1,i=!0,r=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,f,h,d;const p=new wve;for(;++tt[2]+1){const b=t[2]+1,w=t[3]-t[2]-1;e.add(b,w,[])}}e.add(t[3]+1,0,[["exit",d,n]])}return r!==void 0&&(a.end=Object.assign({},Vc(n.events,r)),e.add(r,0,[["exit",a,n]]),a=void 0),a}function x8(e,n,t,i,r){const a=[],o=Vc(n.events,t);r&&(r.end=Object.assign({},o),a.push(["exit",r,n])),i.end=Object.assign({},o),a.push(["exit",i,n]),e.add(t+1,0,a)}function Vc(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const jve={name:"tasklistCheck",tokenize:Ove};function Ave(){return{text:{91:jve}}}function Ove(e,n,t){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return zt(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):t(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(u)}function l(u){return Cn(u)?n(u):rt(u)?e.check({tokenize:Tve},n,t)(u):t(u)}}function Tve(e,n,t){return dt(e,i,"whitespace");function i(r){return r===null?t(r):n(r)}}function Eve(e){return wH([nve(),fve(),bve(e),xve(),Ave()])}const Mve={};function Dve(e){const n=this,t=e||Mve,i=n.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(Eve(t)),a.push(Zpe()),o.push(Qpe(t))}const k4="kanban_chat_v1";function Rve(){try{const e=localStorage.getItem(k4);if(!e)return[];const n=JSON.parse(e);if(Array.isArray(n))return n}catch{}return[]}function Pve({onBoardChange:e}){const[n,t]=x.useState(()=>Rve()),[i,r]=x.useState(""),[a,o]=x.useState(!1),[l,u]=x.useState(""),[f,h]=x.useState([]),d=x.useRef(null);x.useEffect(()=>{localStorage.setItem(k4,JSON.stringify(n))},[n]),x.useEffect(()=>{var w;(w=d.current)==null||w.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[n,l,f,a]);const p=async()=>{const w=i.trim();if(!w||a)return;const k={role:"user",content:w,ts:Date.now()},_=[...n,k];t(_),r(""),o(!0),u(""),h([]);let S="";const j=[];let T=!1;const A=O=>{switch(O.type){case"delta":S+=O.text,u(S);break;case"tool_use":{const M={tool:O.tool,ok:!0,input:O.input};j.push(M),h([...j]);break}case"tool_result":{for(let M=j.length-1;M>=0;M--){const $=j[M];if($.error===void 0&&$.ok){O.is_error&&($.ok=!1,$.error=O.result||"tool error");break}}h([...j]);break}case"result":O.text&&S.trim()===""&&(S=O.text,u(S));break;case"done":O.board_changed&&(T=!0);break;case"error":S=`Error: ${O.error}`,u(S);break}};try{const O=_.map(M=>({role:M.role,content:M.content}));await Ure(O,A)}catch(O){const M=O.message;hn.show({color:"red",message:M}),S=S||`Error: ${M}`}finally{const O={role:"assistant",content:S,ts:Date.now(),tool_calls:j.length>0?j:void 0};t(M=>[...M,O]),u(""),h([]),o(!1),T&&e()}},g=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),p())},b=()=>{t([]),localStorage.removeItem(k4)};return v.jsxs(kn,{gap:0,h:"100%",children:[v.jsxs(Ee,{justify:"space-between",p:"xs",style:{borderBottom:"1px solid var(--mantine-color-dark-4)"},children:[v.jsxs(Ee,{gap:6,children:[v.jsx(Xq,{size:18}),v.jsx(de,{fw:600,size:"sm",children:"Asistente"})]}),v.jsx(wt,{label:"Limpiar conversacion",withArrow:!0,children:v.jsx(Jn,{variant:"subtle",color:"gray",size:"sm",onClick:b,disabled:n.length===0,children:v.jsx(vo,{size:14})})})]}),v.jsx(ur,{viewportRef:d,style:{flex:1},type:"auto",p:"xs",children:v.jsxs(kn,{gap:"xs",children:[n.length===0&&!a&&v.jsxs(de,{size:"sm",c:"dimmed",ta:"center",mt:"md",children:["Escribe algo. Ejemplos:",v.jsx("br",{}),'- "crea columna Backlog"',v.jsx("br",{}),'- "anade tarjeta para revisar PR de Lucas en Doing"',v.jsx("br",{}),'- "que hay en Doing?"']}),n.map((w,k)=>v.jsx(S8,{msg:w},k)),a&&v.jsx(S8,{msg:{role:"assistant",content:l,ts:Date.now(),tool_calls:f.length>0?f:void 0},streaming:!0}),a&&l===""&&f.length===0&&v.jsxs(Ee,{gap:6,pl:"xs",children:[v.jsx(Zt,{size:"xs"}),v.jsx(de,{size:"xs",c:"dimmed",children:"Pensando..."})]})]})}),v.jsx(kn,{gap:4,p:"xs",style:{borderTop:"1px solid var(--mantine-color-dark-4)"},children:v.jsxs(Ee,{align:"flex-end",gap:4,wrap:"nowrap",children:[v.jsx(_l,{placeholder:"Pide algo... (Enter envia, Shift+Enter newline)",value:i,onChange:w=>r(w.currentTarget.value),onKeyDown:g,disabled:a,autosize:!0,minRows:1,maxRows:6,style:{flex:1}}),v.jsx(Jn,{size:"lg",variant:"filled",onClick:p,disabled:!i.trim()||a,"aria-label":"Send",children:a?v.jsx(Zt,{size:"xs",color:"white"}):v.jsx(nH,{size:16})})]})})]})}function S8({msg:e,streaming:n=!1}){const t=e.role==="user";return v.jsx(Tt,{p:"xs",radius:"md",withBorder:!0,bg:t?"blue.9":"dark.6",style:{alignSelf:t?"flex-end":"flex-start",maxWidth:"92%"},children:v.jsxs(kn,{gap:4,children:[e.content&&v.jsx(fe,{className:"kanban-md",style:{fontSize:13,lineHeight:1.45,color:"var(--mantine-color-text)"},children:v.jsx(bme,{remarkPlugins:[Dve],children:e.content})}),n&&e.content&&v.jsx(fe,{style:{display:"inline-block",width:8,height:14,background:"currentColor",opacity:.6}}),e.tool_calls&&e.tool_calls.length>0&&v.jsx(Ee,{gap:4,wrap:"wrap",children:e.tool_calls.map((i,r)=>v.jsxs(Gn,{size:"xs",color:i.ok?"teal":"red",variant:"light",title:i.error||"",leftSection:i.ok&&n?v.jsx(Zt,{size:8,color:"teal"}):null,children:[i.tool,!i.ok&&i.error?`: ${i.error}`:""]},r))})]})})}const Nve=["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];function $ve({users:e,cards:n,onJumpToCard:t,onOpenDailyReport:i}){const[r,a]=x.useState(null),[o,l]=x.useState(new Date),[u,f]=x.useState(null),[h,d]=x.useState(null),[p,g]=x.useState(!1);x.useEffect(()=>{let j=!1;g(!0);const T=Be(o).startOf("month").format("YYYY-MM-DD"),A=Be(o).endOf("month").format("YYYY-MM-DD");return BF({from:T,to:A,assignee_id:u||void 0}).then(O=>{j||d(O)}).finally(()=>{j||g(!1)}),()=>{j=!0}},[o,u]);const b=x.useMemo(()=>e.map(j=>({value:j.id,label:j.display_name||j.username})),[e]),w=x.useMemo(()=>{const j=new Map;if(!h)return j;for(const T of h.created_daily){const A=j.get(T.date)??{created:0,done:0,deadlines:[]};A.created=T.count,j.set(T.date,A)}for(const T of h.throughput_daily){const A=j.get(T.date)??{created:0,done:0,deadlines:[]};A.done=T.count,j.set(T.date,A)}for(const T of n){if(!T.deadline||T.deleted_at)continue;const A=T.deadline.slice(0,10),O=j.get(A)??{created:0,done:0,deadlines:[]};O.deadlines.push(T),j.set(A,O)}return j},[h,n]),k=x.useMemo(()=>{const j=Be(o).startOf("month"),T=Be(o).endOf("month"),A=(j.day()+6)%7,O=[];for(let M=0;MArray.from(w.values()).reduce((j,T)=>j+T.created,0),[w]),S=x.useMemo(()=>Array.from(w.values()).reduce((j,T)=>j+T.done,0),[w]);return v.jsx(fe,{p:"md",children:v.jsxs(kn,{gap:"md",children:[v.jsxs(Ee,{justify:"space-between",children:[v.jsx(El,{order:3,children:"Calendario"}),v.jsxs(Ee,{gap:"xs",wrap:"nowrap",children:[v.jsx(E9,{label:"Mes",size:"xs",value:o,onChange:j=>j&&l(typeof j=="string"?new Date(j):j),style:{minWidth:160},clearable:!1}),v.jsx(jr,{label:"Asignado",size:"xs",placeholder:"Todos",value:u,onChange:f,data:b,clearable:!0,searchable:!0,style:{minWidth:180}})]})]}),v.jsxs(Ee,{gap:"md",children:[v.jsx(Tt,{withBorder:!0,p:"sm",radius:"md",children:v.jsxs(Ee,{gap:6,children:[v.jsx(cf,{size:14,color:"var(--mantine-color-blue-5)"}),v.jsx(de,{size:"sm",fw:600,children:_}),v.jsx(de,{size:"xs",c:"dimmed",children:"creadas"})]})}),v.jsx(Tt,{withBorder:!0,p:"sm",radius:"md",children:v.jsxs(Ee,{gap:6,children:[v.jsx(wm,{size:14,color:"var(--mantine-color-green-5)"}),v.jsx(de,{size:"sm",fw:600,children:S}),v.jsx(de,{size:"xs",c:"dimmed",children:"hechas"})]})})]}),p&&!h?v.jsx(Gf,{p:"xl",children:v.jsx(Zt,{})}):v.jsxs(Tt,{withBorder:!0,p:"md",radius:"md",children:[v.jsx(Ko,{cols:7,spacing:4,mb:4,children:Nve.map(j=>v.jsx(de,{size:"xs",c:"dimmed",ta:"center",fw:600,children:j},j))}),v.jsx(Ko,{cols:7,spacing:4,children:k.map((j,T)=>{if(!j.date)return v.jsx(fe,{style:{minHeight:72}},T);const A=w.get(j.date)??{created:0,done:0,deadlines:[]},O=parseInt(j.date.slice(8,10),10),M=j.date===Be().format("YYYY-MM-DD"),$=Be().startOf("day").valueOf(),P=Be(j.date).startOf("day").valueOf()<$;return v.jsx(Tt,{p:6,withBorder:!0,radius:"sm",style:{minHeight:72,borderColor:M?"var(--mantine-color-blue-5)":void 0,background:A.done>0?"rgba(81, 207, 102, 0.08)":A.created>0?"rgba(34, 139, 230, 0.06)":void 0},children:v.jsxs(kn,{gap:2,children:[v.jsx(Et,{onClick:()=>j.date&&(i==null?void 0:i(j.date)),title:"Ver reporte diario",style:{alignSelf:"flex-start"},"data-test":`calendar-day-${j.date}`,children:v.jsx(de,{size:"xs",fw:M?700:500,c:M?"blue":void 0,td:i?"underline":void 0,style:{cursor:i?"pointer":"default"},children:O})}),A.created>0&&v.jsxs(Ee,{gap:3,wrap:"nowrap",children:[v.jsx(cf,{size:10,color:"var(--mantine-color-blue-5)"}),v.jsx(de,{size:"xs",c:"blue",children:A.created})]}),A.done>0&&v.jsxs(Ee,{gap:3,wrap:"nowrap",children:[v.jsx(wm,{size:10,color:"var(--mantine-color-green-5)"}),v.jsx(de,{size:"xs",c:"green",children:A.done})]}),A.deadlines.length>0&&v.jsxs(Sn,{opened:r===j.date,onChange:L=>a(L?j.date:null),position:"bottom",withArrow:!0,shadow:"md",width:280,children:[v.jsx(Sn.Target,{children:v.jsx(Et,{onClick:()=>a(r===j.date?null:j.date),style:{textAlign:"left"},children:v.jsx(kn,{gap:1,children:v.jsxs(Ee,{gap:3,wrap:"nowrap",children:[v.jsx(f1,{size:10,color:P?"var(--mantine-color-red-5)":"var(--mantine-color-orange-5)"}),v.jsxs(de,{size:"xs",c:P?"red":"orange",fw:700,td:"underline",children:[A.deadlines.length," deadline",A.deadlines.length===1?"":"s"]})]})})})}),v.jsx(Sn.Dropdown,{p:6,children:v.jsxs(kn,{gap:2,children:[v.jsxs(de,{size:"xs",c:"dimmed",fw:600,mb:2,children:["Vencen el ",Be(j.date).format("DD/MM/YYYY")]}),A.deadlines.map(L=>v.jsx(Et,{onClick:()=>{a(null),t==null||t(L.id)},style:{padding:"4px 6px",borderRadius:4,background:"var(--mantine-color-dark-6)"},children:v.jsxs(Ee,{gap:6,wrap:"nowrap",children:[v.jsxs(de,{size:"xs",c:"dimmed",ff:"monospace",children:["#",String(L.seq_num).padStart(5,"0")]}),v.jsx(de,{size:"xs",lineClamp:1,title:L.title,children:L.title})]})},L.id))]})})]})]})},T)})})]})]})})}function cU(e){return e?e.reduce((n,t)=>{const i=t.name.search(/\./);if(i>=0){const r=t.name.substring(i+1);return n[r]=t.label,n}return n[t.name]=t.label,n},{}):{}}var zve={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItemColor:"m_b30369b5",tooltipItem:"m_3de8964e",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function Lve(e){return e.map(n=>{if(!n.payload||n.payload[n.name])return n;const t=n.name.search(/\./);if(t>=0){const i=n.name.substring(0,t),r={...n.payload[i]},a=Object.entries(n.payload).reduce((o,l)=>{const[u,f]=l;return u===i?o:{...o,[u]:f}},{});return{...n,name:n.name.substring(t+1),payload:{...a,...r}}}return n})}function Ive(e,n){const t=Lve(e.filter(i=>i.fill!=="none"||!i.color));return n?t.filter(i=>i.name===n):t}function C8(e,n){return n==="radial"||n==="scatter"?Array.isArray(e.value)?e.value[1]-e.value[0]:e.value:Array.isArray(e.payload[e.dataKey])?e.payload[e.dataKey][1]-e.payload[e.dataKey][0]:e.payload[e.name]}const Bve={type:"area",showColor:!0},ej=Pe(e=>{var P,L;const n=ye("ChartTooltip",Bve,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:u,label:f,unit:h,type:d,segmentId:p,mod:g,series:b,valueFormatter:w,showColor:k,attributes:_,...S}=n,j=ci(),T=Ze({name:"ChartTooltip",classes:zve,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:_});if(!u)return null;const A=Ive(u,p),O=d==="scatter"?(L=(P=u[0])==null?void 0:P.payload)==null?void 0:L.name:null,M=cU(b),$=f||O,q=A.map(U=>v.jsxs("div",{"data-type":d,...T("tooltipItem"),children:[v.jsxs("div",{...T("tooltipItemBody"),children:[k&&v.jsx("svg",{...T("tooltipItemColor"),children:v.jsx("circle",{r:6,fill:ft(U.color,j),width:12,height:12,cx:6,cy:6})}),v.jsx("div",{...T("tooltipItemName"),children:M[U.name]||U.name})]}),v.jsxs("div",{...T("tooltipItemData"),children:[typeof w=="function"?w(C8(U,d)):C8(U,d),h||U.unit]})]},(U==null?void 0:U.key)??U.name));return v.jsxs(fe,{...T("tooltip"),mod:[{type:d},g],...S,children:[$&&v.jsx("div",{...T("tooltipLabel"),children:$}),v.jsx("div",{...T("tooltipBody"),children:q})]})});ej.displayName="@mantine/charts/ChartTooltip";var fU={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};function Fve(e){return e.map(n=>{var i;const t=(i=n.dataKey)==null?void 0:i.split(".").pop();return{...n,dataKey:t,payload:{...n.payload,name:t,dataKey:t}}})}function qve(e){return Fve(e.filter(n=>n.color!=="none"))}const L0=Pe(e=>{const n=ye("ChartLegend",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:u,onHighlight:f,legendPosition:h,mod:d,series:p,showColor:g,centered:b,attributes:w,...k}=n,_=Ze({name:"ChartLegend",classes:fU,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,rootSelector:"legend"});if(!u)return null;const S=qve(u),j=cU(p),T=S.map((A,O)=>v.jsxs("div",{..._("legendItem"),onMouseEnter:()=>f(A.dataKey),onMouseLeave:()=>f(null),"data-without-color":g===!1||void 0,children:[v.jsx(Yf,{color:A.color,size:12,..._("legendItemColor"),withShadow:!1}),v.jsx("p",{..._("legendItemName"),children:j[A.dataKey]||A.dataKey})]},O));return v.jsx(fe,{mod:[{position:h,centered:b},d],..._("legend"),...k,children:T})});L0.displayName="@mantine/charts/ChartLegend";L0.classes=fU;function Hve({x:e,y:n,value:t,valueFormatter:i}){return v.jsx("g",{transform:`translate(${e},${n})`,children:v.jsx("text",{x:0,y:0,dy:-8,dx:-10,textAnchor:"start",fill:"var(--chart-text-color, var(--mantine-color-dimmed))",fontSize:8,children:i?i(t):t})})}var I0={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"},x_,j8;function Tr(){if(j8)return x_;j8=1;var e=Array.isArray;return x_=e,x_}var S_,A8;function dU(){if(A8)return S_;A8=1;var e=typeof Xv=="object"&&Xv&&Xv.Object===Object&&Xv;return S_=e,S_}var C_,O8;function So(){if(O8)return C_;O8=1;var e=dU(),n=typeof self=="object"&&self&&self.Object===Object&&self,t=e||n||Function("return this")();return C_=t,C_}var j_,T8;function Mp(){if(T8)return j_;T8=1;var e=So(),n=e.Symbol;return j_=n,j_}var A_,E8;function Uve(){if(E8)return A_;E8=1;var e=Mp(),n=Object.prototype,t=n.hasOwnProperty,i=n.toString,r=e?e.toStringTag:void 0;function a(o){var l=t.call(o,r),u=o[r];try{o[r]=void 0;var f=!0}catch{}var h=i.call(o);return f&&(l?o[r]=u:delete o[r]),h}return A_=a,A_}var O_,M8;function Vve(){if(M8)return O_;M8=1;var e=Object.prototype,n=e.toString;function t(i){return n.call(i)}return O_=t,O_}var T_,D8;function _s(){if(D8)return T_;D8=1;var e=Mp(),n=Uve(),t=Vve(),i="[object Null]",r="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?r:i:a&&a in Object(l)?n(l):t(l)}return T_=o,T_}var E_,R8;function xs(){if(R8)return E_;R8=1;function e(n){return n!=null&&typeof n=="object"}return E_=e,E_}var M_,P8;function sd(){if(P8)return M_;P8=1;var e=_s(),n=xs(),t="[object Symbol]";function i(r){return typeof r=="symbol"||n(r)&&e(r)==t}return M_=i,M_}var D_,N8;function nj(){if(N8)return D_;N8=1;var e=Tr(),n=sd(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function r(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||n(a)?!0:i.test(a)||!t.test(a)||o!=null&&a in Object(o)}return D_=r,D_}var R_,$8;function Pl(){if($8)return R_;$8=1;function e(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}return R_=e,R_}var P_,z8;function tj(){if(z8)return P_;z8=1;var e=_s(),n=Pl(),t="[object AsyncFunction]",i="[object Function]",r="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!n(l))return!1;var u=e(l);return u==i||u==r||u==t||u==a}return P_=o,P_}var N_,L8;function Wve(){if(L8)return N_;L8=1;var e=So(),n=e["__core-js_shared__"];return N_=n,N_}var $_,I8;function Gve(){if(I8)return $_;I8=1;var e=Wve(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function t(i){return!!n&&n in i}return $_=t,$_}var z_,B8;function hU(){if(B8)return z_;B8=1;var e=Function.prototype,n=e.toString;function t(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return z_=t,z_}var L_,F8;function Yve(){if(F8)return L_;F8=1;var e=tj(),n=Gve(),t=Pl(),i=hU(),r=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,u=o.toString,f=l.hasOwnProperty,h=RegExp("^"+u.call(f).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!t(p)||n(p))return!1;var g=e(p)?h:a;return g.test(i(p))}return L_=d,L_}var I_,q8;function Kve(){if(q8)return I_;q8=1;function e(n,t){return n==null?void 0:n[t]}return I_=e,I_}var B_,H8;function Yu(){if(H8)return B_;H8=1;var e=Yve(),n=Kve();function t(i,r){var a=n(i,r);return e(a)?a:void 0}return B_=t,B_}var F_,U8;function B0(){if(U8)return F_;U8=1;var e=Yu(),n=e(Object,"create");return F_=n,F_}var q_,V8;function Xve(){if(V8)return q_;V8=1;var e=B0();function n(){this.__data__=e?e(null):{},this.size=0}return q_=n,q_}var H_,W8;function Zve(){if(W8)return H_;W8=1;function e(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}return H_=e,H_}var U_,G8;function Qve(){if(G8)return U_;G8=1;var e=B0(),n="__lodash_hash_undefined__",t=Object.prototype,i=t.hasOwnProperty;function r(a){var o=this.__data__;if(e){var l=o[a];return l===n?void 0:l}return i.call(o,a)?o[a]:void 0}return U_=r,U_}var V_,Y8;function Jve(){if(Y8)return V_;Y8=1;var e=B0(),n=Object.prototype,t=n.hasOwnProperty;function i(r){var a=this.__data__;return e?a[r]!==void 0:t.call(a,r)}return V_=i,V_}var W_,K8;function ege(){if(K8)return W_;K8=1;var e=B0(),n="__lodash_hash_undefined__";function t(i,r){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=e&&r===void 0?n:r,this}return W_=t,W_}var G_,X8;function nge(){if(X8)return G_;X8=1;var e=Xve(),n=Zve(),t=Qve(),i=Jve(),r=ege();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l-1}return J_=n,J_}var e2,iD;function oge(){if(iD)return e2;iD=1;var e=F0();function n(t,i){var r=this.__data__,a=e(r,t);return a<0?(++this.size,r.push([t,i])):r[a][1]=i,this}return e2=n,e2}var n2,rD;function q0(){if(rD)return n2;rD=1;var e=tge(),n=ige(),t=rge(),i=age(),r=oge();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l",...u.current()})),f+=u.move(">")):(l=t.enter("destinationRaw"),f+=u.move(t.safe(e.url,{before:f,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=t.enter(`title${a}`),f+=u.move(" "+r),f+=u.move(t.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),f+=u.move(")"),o(),f}function jpe(){return"!"}YH.peek=Ape;function YH(e,n,t,i){const r=e.referenceType,a=t.enter("imageReference");let o=t.enter("label");const l=t.createTracker(i);let u=l.move("![");const f=t.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:u,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!f||f!==d?u+=l.move(d+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Ape(){return"!"}KH.peek=Ope;function KH(e,n,t){let i=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a\u007F]/.test(e.url))}ZH.peek=Tpe;function ZH(e,n,t,i){const r=Q9(t),a=r==='"'?"Quote":"Apostrophe",o=t.createTracker(i);let l,u;if(XH(e,t)){const h=t.stack;t.stack=[],l=t.enter("autolink");let d=o.move("<");return d+=o.move(t.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),t.stack=h,d}l=t.enter("link"),u=t.enter("label");let f=o.move("[");return f+=o.move(t.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(t.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(u=t.enter("destinationRaw"),f+=o.move(t.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=t.enter(`title${a}`),f+=o.move(" "+r),f+=o.move(t.safe(e.title,{before:f,after:r,...o.current()})),f+=o.move(r),u()),f+=o.move(")"),l(),f}function Tpe(e,n,t){return XH(e,t)?"<":"["}QH.peek=Epe;function QH(e,n,t,i){const r=e.referenceType,a=t.enter("linkReference");let o=t.enter("label");const l=t.createTracker(i);let u=l.move("[");const f=t.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:u,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!f||f!==d?u+=l.move(d+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Epe(){return"["}function J9(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Mpe(e){const n=J9(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Dpe(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function JH(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Rpe(e,n,t,i){const r=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?Dpe(t):J9(t);const l=e.ordered?o==="."?")":".":Mpe(t);let u=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),JH(t)===o&&h){let d=-1;for(;++d-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(r==="tab"||r==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=t.createTracker(i);l.move(a+" ".repeat(o-a.length)),l.shift(o);const u=t.enter("listItem"),f=t.indentLines(t.containerFlow(e,l.current()),h);return u(),f;function h(d,p,g){return p?(g?"":" ".repeat(o))+d:(g?a:a+" ".repeat(o-a.length))+d}}function $pe(e,n,t,i){const r=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,i);return a(),r(),o}const zpe=z0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Lpe(e,n,t,i){return(e.children.some(function(o){return zpe(o)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}function Ipe(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}eU.peek=Bpe;function eU(e,n,t,i){const r=Ipe(t),a=t.enter("strong"),o=t.createTracker(i),l=o.move(r+r);let u=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),h=v1(i.before.charCodeAt(i.before.length-1),f,r);h.inside&&(u=_m(f)+u.slice(1));const d=u.charCodeAt(u.length-1),p=v1(i.after.charCodeAt(0),d,r);p.inside&&(u=u.slice(0,-1)+_m(d));const g=o.move(r+r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+u+g}function Bpe(e,n,t){return t.options.strong||"*"}function Fpe(e,n,t,i){return t.safe(e.value,i)}function qpe(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Hpe(e,n,t){const i=(JH(t)+(t.options.ruleSpaces?" ":"")).repeat(qpe(t));return t.options.ruleSpaces?i.slice(0,-1):i}const nU={blockquote:dpe,break:k8,code:ype,definition:wpe,emphasis:VH,hardBreak:k8,heading:Spe,html:WH,image:GH,imageReference:YH,inlineCode:KH,link:ZH,linkReference:QH,list:Rpe,listItem:Npe,paragraph:$pe,root:Lpe,strong:eU,text:Fpe,thematicBreak:Hpe};function Upe(){return{enter:{table:Vpe,tableData:_8,tableHeader:_8,tableRow:Gpe},exit:{codeText:Ype,table:Wpe,tableData:x_,tableHeader:x_,tableRow:x_}}}function Vpe(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Wpe(e){this.exit(e),this.data.inTable=void 0}function Gpe(e){this.enter({type:"tableRow",children:[]},e)}function x_(e){this.exit(e)}function _8(e){this.enter({type:"tableCell",children:[]},e)}function Ype(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Kpe));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Kpe(e,n){return n==="|"?n:e}function Xpe(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,r=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:u,tableRow:l}};function o(g,b,w,k){return f(h(g,w,k),g.align)}function l(g,b,w,k){const _=d(g,w,k),x=f([_]);return x.slice(0,x.indexOf(` +`))}function u(g,b,w,k){const _=w.enter("tableCell"),x=w.enter("phrasing"),C=w.containerPhrasing(g,{...k,before:a,after:a});return x(),_(),C}function f(g,b){return cpe(g,{align:b,alignDelimiters:i,padding:t,stringLength:r})}function h(g,b,w){const k=g.children;let _=-1;const x=[],C=b.enter("table");for(;++_0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const mve={tokenize:_ve,partial:!0};function pve(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:bve,continuation:{tokenize:wve},exit:kve}},text:{91:{name:"gfmFootnoteCall",tokenize:yve},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:vve,resolveTo:gve}}}}function vve(e,n,t){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const u=i.events[r][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return t(u);const f=qa(i.sliceSerialize({start:o.end,end:i.now()}));return f.codePointAt(0)!==94||!a.includes(f.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function gve(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",r,n],["exit",r,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...l),e}function yve(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,o;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?t(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(d){if(a>999||d===93&&!o||d===null||d===91||Lt(d))return t(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(qa(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(d)}return Lt(d)||(o=!0),a++,e.consume(d),d===92?h:f}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function bve(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,o=0,l;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||Lt(b))return t(b);if(b===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return a=qa(i.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Lt(b)||(l=!0),o++,e.consume(b),b===92?d:h}function d(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),r.includes(a)||r.push(a),dt(e,g,"gfmFootnoteDefinitionWhitespace")):t(b)}function g(b){return n(b)}}function wve(e,n,t){return e.check(Tp,n,e.attempt(mve,n,t))}function kve(e){e.exit("gfmFootnoteDefinition")}function _ve(e,n,t){const i=this;return dt(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function xve(e){let t=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let u=-1;for(;++u1?u(b):(o.consume(b),d++,g);if(d<2&&!t)return u(b);const k=o.exit("strikethroughSequenceTemporary"),_=df(b);return k._open=!_||_===2&&!!w,k._close=!w||w===2&&!!_,l(b)}}}class Sve{constructor(){this.map=[]}add(n,t,i){Cve(this,n,t,i)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const i=[];for(;t>0;)t-=1,i.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];i.push(n.slice()),n.length=0;let r=i.pop();for(;r;){for(const a of r)n.push(a);r=i.pop()}this.map.length=0}}function Cve(e,n,t,i){let r=0;if(!(t===0&&i.length===0)){for(;r-1;){const U=i.events[I][1].type;if(U==="lineEnding"||U==="linePrefix")I--;else break}const z=I>-1?i.events[I][1].type:null,W=z==="tableHead"||z==="tableRow"?O:u;return W===O&&i.parser.lazy[i.now().line]?t(R):W(R)}function u(R){return e.enter("tableHead"),e.enter("tableRow"),f(R)}function f(R){return R===124||(o=!0,a+=1),h(R)}function h(R){return R===null?t(R):Cn(R)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),g):t(R):rt(R)?dt(e,h,"whitespace")(R):(a+=1,o&&(o=!1,r+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||Lt(R)?(e.exit("data"),h(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function g(R){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(R):(e.enter("tableDelimiterRow"),o=!1,rt(R)?dt(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):b(R))}function b(R){return R===45||R===58?k(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),w):A(R)}function w(R){return rt(R)?dt(e,k,"whitespace")(R):k(R)}function k(R){return R===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),_):R===45?(a+=1,_(R)):R===null||Cn(R)?T(R):A(R)}function _(R){return R===45?(e.enter("tableDelimiterFiller"),x(R)):A(R)}function x(R){return R===45?(e.consume(R),x):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(R))}function C(R){return rt(R)?dt(e,T,"whitespace")(R):T(R)}function T(R){return R===124?b(R):R===null||Cn(R)?!o||r!==a?A(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(R)):A(R)}function A(R){return t(R)}function O(R){return e.enter("tableRow"),M(R)}function M(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),M):R===null||Cn(R)?(e.exit("tableRow"),n(R)):rt(R)?dt(e,M,"whitespace")(R):(e.enter("data"),$(R))}function $(R){return R===null||R===124||Lt(R)?(e.exit("data"),M(R)):(e.consume(R),R===92?q:$)}function q(R){return R===92||R===124?(e.consume(R),$):$(R)}}function Tve(e,n){let t=-1,i=!0,r=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,f,h,d;const p=new Sve;for(;++tt[2]+1){const b=t[2]+1,w=t[3]-t[2]-1;e.add(b,w,[])}}e.add(t[3]+1,0,[["exit",d,n]])}return r!==void 0&&(a.end=Object.assign({},Wc(n.events,r)),e.add(r,0,[["exit",a,n]]),a=void 0),a}function S8(e,n,t,i,r){const a=[],o=Wc(n.events,t);r&&(r.end=Object.assign({},o),a.push(["exit",r,n])),i.end=Object.assign({},o),a.push(["exit",i,n]),e.add(t+1,0,a)}function Wc(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const Eve={name:"tasklistCheck",tokenize:Dve};function Mve(){return{text:{91:Eve}}}function Dve(e,n,t){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Lt(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):t(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(u)}function l(u){return Cn(u)?n(u):rt(u)?e.check({tokenize:Rve},n,t)(u):t(u)}}function Rve(e,n,t){return dt(e,i,"whitespace");function i(r){return r===null?t(r):n(r)}}function Pve(e){return wH([ave(),pve(),xve(e),Ave(),Mve()])}const Nve={};function $ve(e){const n=this,t=e||Nve,i=n.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(Pve(t)),a.push(nve()),o.push(tve(t))}const k4="kanban_chat_v1";function zve(){try{const e=localStorage.getItem(k4);if(!e)return[];const n=JSON.parse(e);if(Array.isArray(n))return n}catch{}return[]}function Lve({onBoardChange:e}){const[n,t]=S.useState(()=>zve()),[i,r]=S.useState(""),[a,o]=S.useState(!1),[l,u]=S.useState(""),[f,h]=S.useState([]),d=S.useRef(null);S.useEffect(()=>{localStorage.setItem(k4,JSON.stringify(n))},[n]),S.useEffect(()=>{var w;(w=d.current)==null||w.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[n,l,f,a]);const p=async()=>{const w=i.trim();if(!w||a)return;const k={role:"user",content:w,ts:Date.now()},_=[...n,k];t(_),r(""),o(!0),u(""),h([]);let x="";const C=[];let T=!1;const A=O=>{switch(O.type){case"delta":x+=O.text,u(x);break;case"tool_use":{const M={tool:O.tool,ok:!0,input:O.input};C.push(M),h([...C]);break}case"tool_result":{for(let M=C.length-1;M>=0;M--){const $=C[M];if($.error===void 0&&$.ok){O.is_error&&($.ok=!1,$.error=O.result||"tool error");break}}h([...C]);break}case"result":O.text&&x.trim()===""&&(x=O.text,u(x));break;case"done":O.board_changed&&(T=!0);break;case"error":x=`Error: ${O.error}`,u(x);break}};try{const O=_.map(M=>({role:M.role,content:M.content}));await Ure(O,A)}catch(O){const M=O.message;sn.show({color:"red",message:M}),x=x||`Error: ${M}`}finally{const O={role:"assistant",content:x,ts:Date.now(),tool_calls:C.length>0?C:void 0};t(M=>[...M,O]),u(""),h([]),o(!1),T&&e()}},g=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),p())},b=()=>{t([]),localStorage.removeItem(k4)};return v.jsxs(bn,{gap:0,h:"100%",children:[v.jsxs(je,{justify:"space-between",p:"xs",style:{borderBottom:"1px solid var(--mantine-color-dark-4)"},children:[v.jsxs(je,{gap:6,children:[v.jsx(Xq,{size:18}),v.jsx(fe,{fw:600,size:"sm",children:"Asistente"})]}),v.jsx(kt,{label:"Limpiar conversacion",withArrow:!0,children:v.jsx(Jn,{variant:"subtle",color:"gray",size:"sm",onClick:b,disabled:n.length===0,children:v.jsx(vo,{size:14})})})]}),v.jsx(cr,{viewportRef:d,style:{flex:1},type:"auto",p:"xs",children:v.jsxs(bn,{gap:"xs",children:[n.length===0&&!a&&v.jsxs(fe,{size:"sm",c:"dimmed",ta:"center",mt:"md",children:["Escribe algo. Ejemplos:",v.jsx("br",{}),'- "crea columna Backlog"',v.jsx("br",{}),'- "anade tarjeta para revisar PR de Lucas en Doing"',v.jsx("br",{}),'- "que hay en Doing?"']}),n.map((w,k)=>v.jsx(C8,{msg:w},k)),a&&v.jsx(C8,{msg:{role:"assistant",content:l,ts:Date.now(),tool_calls:f.length>0?f:void 0},streaming:!0}),a&&l===""&&f.length===0&&v.jsxs(je,{gap:6,pl:"xs",children:[v.jsx(Ht,{size:"xs"}),v.jsx(fe,{size:"xs",c:"dimmed",children:"Pensando..."})]})]})}),v.jsx(bn,{gap:4,p:"xs",style:{borderTop:"1px solid var(--mantine-color-dark-4)"},children:v.jsxs(je,{align:"flex-end",gap:4,wrap:"nowrap",children:[v.jsx(_l,{placeholder:"Pide algo... (Enter envia, Shift+Enter newline)",value:i,onChange:w=>r(w.currentTarget.value),onKeyDown:g,disabled:a,autosize:!0,minRows:1,maxRows:6,style:{flex:1}}),v.jsx(Jn,{size:"lg",variant:"filled",onClick:p,disabled:!i.trim()||a,"aria-label":"Send",children:a?v.jsx(Ht,{size:"xs",color:"white"}):v.jsx(nH,{size:16})})]})})]})}function C8({msg:e,streaming:n=!1}){const t=e.role==="user";return v.jsx(Et,{p:"xs",radius:"md",withBorder:!0,bg:t?"blue.9":"dark.6",style:{alignSelf:t?"flex-end":"flex-start",maxWidth:"92%"},children:v.jsxs(bn,{gap:4,children:[e.content&&v.jsx(de,{className:"kanban-md",style:{fontSize:13,lineHeight:1.45,color:"var(--mantine-color-text)"},children:v.jsx(xme,{remarkPlugins:[$ve],children:e.content})}),n&&e.content&&v.jsx(de,{style:{display:"inline-block",width:8,height:14,background:"currentColor",opacity:.6}}),e.tool_calls&&e.tool_calls.length>0&&v.jsx(je,{gap:4,wrap:"wrap",children:e.tool_calls.map((i,r)=>v.jsxs(Nn,{size:"xs",color:i.ok?"teal":"red",variant:"light",title:i.error||"",leftSection:i.ok&&n?v.jsx(Ht,{size:8,color:"teal"}):null,children:[i.tool,!i.ok&&i.error?`: ${i.error}`:""]},r))})]})})}const Ive=["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];function Bve({users:e,cards:n,onJumpToCard:t,onOpenDailyReport:i}){const[r,a]=S.useState(null),[o,l]=S.useState(new Date),[u,f]=S.useState(null),[h,d]=S.useState(null),[p,g]=S.useState(!1);S.useEffect(()=>{let C=!1;g(!0);const T=Be(o).startOf("month").format("YYYY-MM-DD"),A=Be(o).endOf("month").format("YYYY-MM-DD");return FF({from:T,to:A,assignee_id:u||void 0}).then(O=>{C||d(O)}).finally(()=>{C||g(!1)}),()=>{C=!0}},[o,u]);const b=S.useMemo(()=>e.map(C=>({value:C.id,label:C.display_name||C.username})),[e]),w=S.useMemo(()=>{const C=new Map;if(!h)return C;for(const T of h.created_daily){const A=C.get(T.date)??{created:0,done:0,deadlines:[]};A.created=T.count,C.set(T.date,A)}for(const T of h.throughput_daily){const A=C.get(T.date)??{created:0,done:0,deadlines:[]};A.done=T.count,C.set(T.date,A)}for(const T of n){if(!T.deadline||T.deleted_at)continue;const A=T.deadline.slice(0,10),O=C.get(A)??{created:0,done:0,deadlines:[]};O.deadlines.push(T),C.set(A,O)}return C},[h,n]),k=S.useMemo(()=>{const C=Be(o).startOf("month"),T=Be(o).endOf("month"),A=(C.day()+6)%7,O=[];for(let M=0;MArray.from(w.values()).reduce((C,T)=>C+T.created,0),[w]),x=S.useMemo(()=>Array.from(w.values()).reduce((C,T)=>C+T.done,0),[w]);return v.jsx(de,{p:"md",children:v.jsxs(bn,{gap:"md",children:[v.jsxs(je,{justify:"space-between",children:[v.jsx(El,{order:3,children:"Calendario"}),v.jsxs(je,{gap:"xs",wrap:"nowrap",children:[v.jsx(E9,{label:"Mes",size:"xs",value:o,onChange:C=>C&&l(typeof C=="string"?new Date(C):C),style:{minWidth:160},clearable:!1}),v.jsx(Ar,{label:"Asignado",size:"xs",placeholder:"Todos",value:u,onChange:f,data:b,clearable:!0,searchable:!0,style:{minWidth:180}})]})]}),v.jsxs(je,{gap:"md",children:[v.jsx(Et,{withBorder:!0,p:"sm",radius:"md",children:v.jsxs(je,{gap:6,children:[v.jsx(ff,{size:14,color:"var(--mantine-color-blue-5)"}),v.jsx(fe,{size:"sm",fw:600,children:_}),v.jsx(fe,{size:"xs",c:"dimmed",children:"creadas"})]})}),v.jsx(Et,{withBorder:!0,p:"sm",radius:"md",children:v.jsxs(je,{gap:6,children:[v.jsx(wm,{size:14,color:"var(--mantine-color-green-5)"}),v.jsx(fe,{size:"sm",fw:600,children:x}),v.jsx(fe,{size:"xs",c:"dimmed",children:"hechas"})]})})]}),p&&!h?v.jsx(Gf,{p:"xl",children:v.jsx(Ht,{})}):v.jsxs(Et,{withBorder:!0,p:"md",radius:"md",children:[v.jsx(Ko,{cols:7,spacing:4,mb:4,children:Ive.map(C=>v.jsx(fe,{size:"xs",c:"dimmed",ta:"center",fw:600,children:C},C))}),v.jsx(Ko,{cols:7,spacing:4,children:k.map((C,T)=>{if(!C.date)return v.jsx(de,{style:{minHeight:72}},T);const A=w.get(C.date)??{created:0,done:0,deadlines:[]},O=parseInt(C.date.slice(8,10),10),M=C.date===Be().format("YYYY-MM-DD"),$=Be().startOf("day").valueOf(),R=Be(C.date).startOf("day").valueOf()<$;return v.jsx(Et,{p:6,withBorder:!0,radius:"sm",style:{minHeight:72,borderColor:M?"var(--mantine-color-blue-5)":void 0,background:A.done>0?"rgba(81, 207, 102, 0.08)":A.created>0?"rgba(34, 139, 230, 0.06)":void 0},children:v.jsxs(bn,{gap:2,children:[v.jsx(Mt,{onClick:()=>C.date&&(i==null?void 0:i(C.date)),title:"Ver reporte diario",style:{alignSelf:"flex-start"},"data-test":`calendar-day-${C.date}`,children:v.jsx(fe,{size:"xs",fw:M?700:500,c:M?"blue":void 0,td:i?"underline":void 0,style:{cursor:i?"pointer":"default"},children:O})}),A.created>0&&v.jsxs(je,{gap:3,wrap:"nowrap",children:[v.jsx(ff,{size:10,color:"var(--mantine-color-blue-5)"}),v.jsx(fe,{size:"xs",c:"blue",children:A.created})]}),A.done>0&&v.jsxs(je,{gap:3,wrap:"nowrap",children:[v.jsx(wm,{size:10,color:"var(--mantine-color-green-5)"}),v.jsx(fe,{size:"xs",c:"green",children:A.done})]}),A.deadlines.length>0&&v.jsxs(Sn,{opened:r===C.date,onChange:I=>a(I?C.date:null),position:"bottom",withArrow:!0,shadow:"md",width:280,children:[v.jsx(Sn.Target,{children:v.jsx(Mt,{onClick:()=>a(r===C.date?null:C.date),style:{textAlign:"left"},children:v.jsx(bn,{gap:1,children:v.jsxs(je,{gap:3,wrap:"nowrap",children:[v.jsx(d1,{size:10,color:R?"var(--mantine-color-red-5)":"var(--mantine-color-orange-5)"}),v.jsxs(fe,{size:"xs",c:R?"red":"orange",fw:700,td:"underline",children:[A.deadlines.length," deadline",A.deadlines.length===1?"":"s"]})]})})})}),v.jsx(Sn.Dropdown,{p:6,children:v.jsxs(bn,{gap:2,children:[v.jsxs(fe,{size:"xs",c:"dimmed",fw:600,mb:2,children:["Vencen el ",Be(C.date).format("DD/MM/YYYY")]}),A.deadlines.map(I=>v.jsx(Mt,{onClick:()=>{a(null),t==null||t(I.id)},style:{padding:"4px 6px",borderRadius:4,background:"var(--mantine-color-dark-6)"},children:v.jsxs(je,{gap:6,wrap:"nowrap",children:[v.jsxs(fe,{size:"xs",c:"dimmed",ff:"monospace",children:["#",String(I.seq_num).padStart(5,"0")]}),v.jsx(fe,{size:"xs",lineClamp:1,title:I.title,children:I.title})]})},I.id))]})})]})]})},T)})})]})]})})}function cU(e){return e?e.reduce((n,t)=>{const i=t.name.search(/\./);if(i>=0){const r=t.name.substring(i+1);return n[r]=t.label,n}return n[t.name]=t.label,n},{}):{}}var Fve={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItemColor:"m_b30369b5",tooltipItem:"m_3de8964e",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function qve(e){return e.map(n=>{if(!n.payload||n.payload[n.name])return n;const t=n.name.search(/\./);if(t>=0){const i=n.name.substring(0,t),r={...n.payload[i]},a=Object.entries(n.payload).reduce((o,l)=>{const[u,f]=l;return u===i?o:{...o,[u]:f}},{});return{...n,name:n.name.substring(t+1),payload:{...a,...r}}}return n})}function Hve(e,n){const t=qve(e.filter(i=>i.fill!=="none"||!i.color));return n?t.filter(i=>i.name===n):t}function j8(e,n){return n==="radial"||n==="scatter"?Array.isArray(e.value)?e.value[1]-e.value[0]:e.value:Array.isArray(e.payload[e.dataKey])?e.payload[e.dataKey][1]-e.payload[e.dataKey][0]:e.payload[e.name]}const Uve={type:"area",showColor:!0},nj=Pe(e=>{var R,I;const n=ye("ChartTooltip",Uve,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:u,label:f,unit:h,type:d,segmentId:p,mod:g,series:b,valueFormatter:w,showColor:k,attributes:_,...x}=n,C=ci(),T=Ze({name:"ChartTooltip",classes:Fve,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:_});if(!u)return null;const A=Hve(u,p),O=d==="scatter"?(I=(R=u[0])==null?void 0:R.payload)==null?void 0:I.name:null,M=cU(b),$=f||O,q=A.map(z=>v.jsxs("div",{"data-type":d,...T("tooltipItem"),children:[v.jsxs("div",{...T("tooltipItemBody"),children:[k&&v.jsx("svg",{...T("tooltipItemColor"),children:v.jsx("circle",{r:6,fill:ft(z.color,C),width:12,height:12,cx:6,cy:6})}),v.jsx("div",{...T("tooltipItemName"),children:M[z.name]||z.name})]}),v.jsxs("div",{...T("tooltipItemData"),children:[typeof w=="function"?w(j8(z,d)):j8(z,d),h||z.unit]})]},(z==null?void 0:z.key)??z.name));return v.jsxs(de,{...T("tooltip"),mod:[{type:d},g],...x,children:[$&&v.jsx("div",{...T("tooltipLabel"),children:$}),v.jsx("div",{...T("tooltipBody"),children:q})]})});nj.displayName="@mantine/charts/ChartTooltip";var fU={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};function Vve(e){return e.map(n=>{var i;const t=(i=n.dataKey)==null?void 0:i.split(".").pop();return{...n,dataKey:t,payload:{...n.payload,name:t,dataKey:t}}})}function Wve(e){return Vve(e.filter(n=>n.color!=="none"))}const I0=Pe(e=>{const n=ye("ChartLegend",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:u,onHighlight:f,legendPosition:h,mod:d,series:p,showColor:g,centered:b,attributes:w,...k}=n,_=Ze({name:"ChartLegend",classes:fU,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,rootSelector:"legend"});if(!u)return null;const x=Wve(u),C=cU(p),T=x.map((A,O)=>v.jsxs("div",{..._("legendItem"),onMouseEnter:()=>f(A.dataKey),onMouseLeave:()=>f(null),"data-without-color":g===!1||void 0,children:[v.jsx(Yf,{color:A.color,size:12,..._("legendItemColor"),withShadow:!1}),v.jsx("p",{..._("legendItemName"),children:C[A.dataKey]||A.dataKey})]},O));return v.jsx(de,{mod:[{position:h,centered:b},d],..._("legend"),...k,children:T})});I0.displayName="@mantine/charts/ChartLegend";I0.classes=fU;function Gve({x:e,y:n,value:t,valueFormatter:i}){return v.jsx("g",{transform:`translate(${e},${n})`,children:v.jsx("text",{x:0,y:0,dy:-8,dx:-10,textAnchor:"start",fill:"var(--chart-text-color, var(--mantine-color-dimmed))",fontSize:8,children:i?i(t):t})})}var B0={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"},S_,A8;function Er(){if(A8)return S_;A8=1;var e=Array.isArray;return S_=e,S_}var C_,O8;function dU(){if(O8)return C_;O8=1;var e=typeof Xv=="object"&&Xv&&Xv.Object===Object&&Xv;return C_=e,C_}var j_,T8;function So(){if(T8)return j_;T8=1;var e=dU(),n=typeof self=="object"&&self&&self.Object===Object&&self,t=e||n||Function("return this")();return j_=t,j_}var A_,E8;function Mp(){if(E8)return A_;E8=1;var e=So(),n=e.Symbol;return A_=n,A_}var O_,M8;function Yve(){if(M8)return O_;M8=1;var e=Mp(),n=Object.prototype,t=n.hasOwnProperty,i=n.toString,r=e?e.toStringTag:void 0;function a(o){var l=t.call(o,r),u=o[r];try{o[r]=void 0;var f=!0}catch{}var h=i.call(o);return f&&(l?o[r]=u:delete o[r]),h}return O_=a,O_}var T_,D8;function Kve(){if(D8)return T_;D8=1;var e=Object.prototype,n=e.toString;function t(i){return n.call(i)}return T_=t,T_}var E_,R8;function _s(){if(R8)return E_;R8=1;var e=Mp(),n=Yve(),t=Kve(),i="[object Null]",r="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?r:i:a&&a in Object(l)?n(l):t(l)}return E_=o,E_}var M_,P8;function xs(){if(P8)return M_;P8=1;function e(n){return n!=null&&typeof n=="object"}return M_=e,M_}var D_,N8;function sd(){if(N8)return D_;N8=1;var e=_s(),n=xs(),t="[object Symbol]";function i(r){return typeof r=="symbol"||n(r)&&e(r)==t}return D_=i,D_}var R_,$8;function tj(){if($8)return R_;$8=1;var e=Er(),n=sd(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function r(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||n(a)?!0:i.test(a)||!t.test(a)||o!=null&&a in Object(o)}return R_=r,R_}var P_,z8;function Pl(){if(z8)return P_;z8=1;function e(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}return P_=e,P_}var N_,L8;function ij(){if(L8)return N_;L8=1;var e=_s(),n=Pl(),t="[object AsyncFunction]",i="[object Function]",r="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!n(l))return!1;var u=e(l);return u==i||u==r||u==t||u==a}return N_=o,N_}var $_,I8;function Xve(){if(I8)return $_;I8=1;var e=So(),n=e["__core-js_shared__"];return $_=n,$_}var z_,B8;function Zve(){if(B8)return z_;B8=1;var e=Xve(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function t(i){return!!n&&n in i}return z_=t,z_}var L_,F8;function hU(){if(F8)return L_;F8=1;var e=Function.prototype,n=e.toString;function t(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return L_=t,L_}var I_,q8;function Qve(){if(q8)return I_;q8=1;var e=ij(),n=Zve(),t=Pl(),i=hU(),r=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,u=o.toString,f=l.hasOwnProperty,h=RegExp("^"+u.call(f).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!t(p)||n(p))return!1;var g=e(p)?h:a;return g.test(i(p))}return I_=d,I_}var B_,H8;function Jve(){if(H8)return B_;H8=1;function e(n,t){return n==null?void 0:n[t]}return B_=e,B_}var F_,U8;function Ku(){if(U8)return F_;U8=1;var e=Qve(),n=Jve();function t(i,r){var a=n(i,r);return e(a)?a:void 0}return F_=t,F_}var q_,V8;function F0(){if(V8)return q_;V8=1;var e=Ku(),n=e(Object,"create");return q_=n,q_}var H_,W8;function ege(){if(W8)return H_;W8=1;var e=F0();function n(){this.__data__=e?e(null):{},this.size=0}return H_=n,H_}var U_,G8;function nge(){if(G8)return U_;G8=1;function e(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}return U_=e,U_}var V_,Y8;function tge(){if(Y8)return V_;Y8=1;var e=F0(),n="__lodash_hash_undefined__",t=Object.prototype,i=t.hasOwnProperty;function r(a){var o=this.__data__;if(e){var l=o[a];return l===n?void 0:l}return i.call(o,a)?o[a]:void 0}return V_=r,V_}var W_,K8;function ige(){if(K8)return W_;K8=1;var e=F0(),n=Object.prototype,t=n.hasOwnProperty;function i(r){var a=this.__data__;return e?a[r]!==void 0:t.call(a,r)}return W_=i,W_}var G_,X8;function rge(){if(X8)return G_;X8=1;var e=F0(),n="__lodash_hash_undefined__";function t(i,r){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=e&&r===void 0?n:r,this}return G_=t,G_}var Y_,Z8;function age(){if(Z8)return Y_;Z8=1;var e=ege(),n=nge(),t=tge(),i=ige(),r=rge();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l-1}return e2=n,e2}var n2,rD;function cge(){if(rD)return n2;rD=1;var e=q0();function n(t,i){var r=this.__data__,a=e(r,t);return a<0?(++this.size,r.push([t,i])):r[a][1]=i,this}return n2=n,n2}var t2,aD;function H0(){if(aD)return t2;aD=1;var e=oge(),n=sge(),t=lge(),i=uge(),r=cge();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l0?1:-1},wu=function(n){return Nu(n)&&n.indexOf("%")===n.length-1},Ge=function(n){return Tge(n)&&!ud(n)},Ege=function(n){return Zn(n)},ji=function(n){return Ge(n)||Nu(n)},Mge=0,cd=function(n){var t=++Mge;return"".concat(n||"").concat(t)},$u=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ge(n)&&!Nu(n))return i;var a;if(wu(n)){var o=n.indexOf("%");a=t*parseFloat(n.slice(0,o))/100}else a=+n;return ud(a)&&(a=i),r&&a>t&&(a=t),a},ol=function(n){if(!n)return null;var t=Object.keys(n);return t&&t.length?n[t[0]]:null},Dge=function(n){if(!Array.isArray(n))return!1;for(var t=n.length,i={},r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Ige(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function x4(e){"@babel/helpers - typeof";return x4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},x4(e)}var DD={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ts=function(n){return typeof n=="string"?n:n?n.displayName||n.name||"Component":""},RD=null,A2=null,uj=function e(n){if(n===RD&&Array.isArray(A2))return A2;var t=[];return x.Children.forEach(n,function(i){Zn(i)||(Cge.isFragment(i)?t=t.concat(e(i.props.children)):t.push(i))}),A2=t,RD=n,t};function wa(e,n){var t=[],i=[];return Array.isArray(n)?i=n.map(function(r){return ts(r)}):i=[ts(n)],uj(e).forEach(function(r){var a=ba(r,"type.displayName")||ba(r,"type.name");i.indexOf(a)!==-1&&t.push(r)}),t}function Ur(e,n){var t=wa(e,n);return t&&t[0]}var PD=function(n){if(!n||!n.props)return!1;var t=n.props,i=t.width,r=t.height;return!(!Ge(i)||i<=0||!Ge(r)||r<=0)},Bge=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Fge=function(n){return n&&n.type&&Nu(n.type)&&Bge.indexOf(n.type)>=0},bU=function(n){return n&&x4(n)==="object"&&"clipDot"in n},qge=function(n,t,i,r){var a,o=(a=j2==null?void 0:j2[r])!==null&&a!==void 0?a:[];return t.startsWith("data-")||!Fn(n)&&(r&&o.includes(t)||Nge.includes(t))||i&&lj.includes(t)},Un=function(n,t,i){if(!n||typeof n=="function"||typeof n=="boolean")return null;var r=n;if(x.isValidElement(n)&&(r=n.props),!ld(r))return null;var a={};return Object.keys(r).forEach(function(o){var l;qge((l=r)===null||l===void 0?void 0:l[o],o,t,i)&&(a[o]=r[o])}),a},S4=function e(n,t){if(n===t)return!0;var i=x.Children.count(n);if(i!==x.Children.count(t))return!1;if(i===0)return!0;if(i===1)return ND(Array.isArray(n)?n[0]:n,Array.isArray(t)?t[0]:t);for(var r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Gge(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function j4(e){var n=e.children,t=e.width,i=e.height,r=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,f=Wge(e,Vge),h=r||{width:t,height:i,x:0,y:0},d=vn("recharts-surface",a);return J.createElement("svg",C4({},Un(f,!0,"svg"),{className:d,width:t,height:i,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),J.createElement("title",null,l),J.createElement("desc",null,u),n)}var Yge=["children","className"];function A4(){return A4=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Xge(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var Ft=J.forwardRef(function(e,n){var t=e.children,i=e.className,r=Kge(e,Yge),a=vn("recharts-layer",i);return J.createElement("g",A4({className:a},Un(r,!0),{ref:n}),t)}),is=function(n,t){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;aa?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(a);++r=a?t:e(t,i,r)}return T2=n,T2}var E2,ID;function wU(){if(ID)return E2;ID=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+r+a+"]");function u(f){return l.test(f)}return E2=u,E2}var M2,BD;function Jge(){if(BD)return M2;BD=1;function e(n){return n.split("")}return M2=e,M2}var D2,FD;function e1e(){if(FD)return D2;FD=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+r+"]",u="\\ud83c[\\udffb-\\udfff]",f="(?:"+l+"|"+u+")",h="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",b=f+"?",w="["+a+"]?",k="(?:"+g+"(?:"+[h,d,p].join("|")+")"+w+b+")*",_=w+b+k,S="(?:"+[h+l+"?",l,d,p,o].join("|")+")",j=RegExp(u+"(?="+u+")|"+S+_,"g");function T(A){return A.match(j)||[]}return D2=T,D2}var R2,qD;function n1e(){if(qD)return R2;qD=1;var e=Jge(),n=wU(),t=e1e();function i(r){return n(r)?t(r):e(r)}return R2=i,R2}var P2,HD;function t1e(){if(HD)return P2;HD=1;var e=Qge(),n=wU(),t=n1e(),i=pU();function r(a){return function(o){o=i(o);var l=n(o)?t(o):void 0,u=l?l[0]:o.charAt(0),f=l?e(l,1).join(""):o.slice(1);return u[a]()+f}}return P2=r,P2}var N2,UD;function i1e(){if(UD)return N2;UD=1;var e=t1e(),n=e("toUpperCase");return N2=n,N2}var r1e=i1e();const V0=yt(r1e);function Bt(e){return function(){return e}}const kU=Math.cos,b1=Math.sin,Ga=Math.sqrt,w1=Math.PI,W0=2*w1,O4=Math.PI,T4=2*O4,mu=1e-6,a1e=T4-mu;function _U(e){this._+=e[0];for(let n=1,t=e.length;n=0))throw new Error(`invalid digits: ${e}`);if(n>15)return _U;const t=10**n;return function(i){this._+=i[0];for(let r=1,a=i.length;rmu)if(!(Math.abs(d*u-f*h)>mu)||!a)this._append`L${this._x1=n},${this._y1=t}`;else{let g=i-o,b=r-l,w=u*u+f*f,k=g*g+b*b,_=Math.sqrt(w),S=Math.sqrt(p),j=a*Math.tan((O4-Math.acos((w+p-k)/(2*_*S)))/2),T=j/S,A=j/_;Math.abs(T-1)>mu&&this._append`L${n+T*h},${t+T*d}`,this._append`A${a},${a},0,0,${+(d*g>h*b)},${this._x1=n+A*u},${this._y1=t+A*f}`}}arc(n,t,i,r,a,o){if(n=+n,t=+t,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(r),u=i*Math.sin(r),f=n+l,h=t+u,d=1^o,p=o?r-a:a-r;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>mu||Math.abs(this._y1-h)>mu)&&this._append`L${f},${h}`,i&&(p<0&&(p=p%T4+T4),p>a1e?this._append`A${i},${i},0,1,${d},${n-l},${t-u}A${i},${i},0,1,${d},${this._x1=f},${this._y1=h}`:p>mu&&this._append`A${i},${i},0,${+(p>=O4)},${d},${this._x1=n+i*Math.cos(a)},${this._y1=t+i*Math.sin(a)}`)}rect(n,t,i,r){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function cj(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const i=Math.floor(t);if(!(i>=0))throw new RangeError(`invalid digits: ${t}`);n=i}return e},()=>new s1e(n)}function fj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xU(e){this._context=e}xU.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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function G0(e){return new xU(e)}function SU(e){return e[0]}function CU(e){return e[1]}function jU(e,n){var t=Bt(!0),i=null,r=G0,a=null,o=cj(l);e=typeof e=="function"?e:e===void 0?SU:Bt(e),n=typeof n=="function"?n:n===void 0?CU:Bt(n);function l(u){var f,h=(u=fj(u)).length,d,p=!1,g;for(i==null&&(a=r(g=o())),f=0;f<=h;++f)!(f=g;--b)l.point(j[b],T[b]);l.lineEnd(),l.areaEnd()}_&&(j[p]=+e(k,p,d),T[p]=+n(k,p,d),l.point(i?+i(k,p,d):j[p],t?+t(k,p,d):T[p]))}if(S)return l=null,S+""||null}function h(){return jU().defined(r).curve(o).context(a)}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:Bt(+d),i=null,f):e},f.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Bt(+d),f):e},f.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:Bt(+d),f):i},f.y=function(d){return arguments.length?(n=typeof d=="function"?d:Bt(+d),t=null,f):n},f.y0=function(d){return arguments.length?(n=typeof d=="function"?d:Bt(+d),f):n},f.y1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:Bt(+d),f):t},f.lineX0=f.lineY0=function(){return h().x(e).y(n)},f.lineY1=function(){return h().x(e).y(t)},f.lineX1=function(){return h().x(i).y(n)},f.defined=function(d){return arguments.length?(r=typeof d=="function"?d:Bt(!!d),f):r},f.curve=function(d){return arguments.length?(o=d,a!=null&&(l=o(a)),f):o},f.context=function(d){return arguments.length?(d==null?a=l=null:l=o(a=d),f):a},f}class AU{constructor(n,t){this._context=n,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(n,t){switch(n=+n,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+n)/2,this._y0,this._x0,t,n,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,n,this._y0,n,t);break}}this._x0=n,this._y0=t}}function l1e(e){return new AU(e,!0)}function u1e(e){return new AU(e,!1)}const dj={draw(e,n){const t=Ga(n/w1);e.moveTo(t,0),e.arc(0,0,t,0,W0)}},c1e={draw(e,n){const t=Ga(n/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},OU=Ga(1/3),f1e=OU*2,d1e={draw(e,n){const t=Ga(n/f1e),i=t*OU;e.moveTo(0,-t),e.lineTo(i,0),e.lineTo(0,t),e.lineTo(-i,0),e.closePath()}},h1e={draw(e,n){const t=Ga(n),i=-t/2;e.rect(i,i,t,t)}},m1e=.8908130915292852,TU=b1(w1/10)/b1(7*w1/10),p1e=b1(W0/10)*TU,v1e=-kU(W0/10)*TU,g1e={draw(e,n){const t=Ga(n*m1e),i=p1e*t,r=v1e*t;e.moveTo(0,-t),e.lineTo(i,r);for(let a=1;a<5;++a){const o=W0*a/5,l=kU(o),u=b1(o);e.lineTo(u*t,-l*t),e.lineTo(l*i-u*r,u*i+l*r)}e.closePath()}},$2=Ga(3),y1e={draw(e,n){const t=-Ga(n/($2*3));e.moveTo(0,t*2),e.lineTo(-$2*t,-t),e.lineTo($2*t,-t),e.closePath()}},ua=-.5,ca=Ga(3)/2,E4=1/Ga(12),b1e=(E4/2+1)*3,w1e={draw(e,n){const t=Ga(n/b1e),i=t/2,r=t*E4,a=i,o=t*E4+t,l=-a,u=o;e.moveTo(i,r),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(ua*i-ca*r,ca*i+ua*r),e.lineTo(ua*a-ca*o,ca*a+ua*o),e.lineTo(ua*l-ca*u,ca*l+ua*u),e.lineTo(ua*i+ca*r,ua*r-ca*i),e.lineTo(ua*a+ca*o,ua*o-ca*a),e.lineTo(ua*l+ca*u,ua*u-ca*l),e.closePath()}};function k1e(e,n){let t=null,i=cj(r);e=typeof e=="function"?e:Bt(e||dj),n=typeof n=="function"?n:Bt(n===void 0?64:+n);function r(){let a;if(t||(t=a=i()),e.apply(this,arguments).draw(t,+n.apply(this,arguments)),a)return t=null,a+""||null}return r.type=function(a){return arguments.length?(e=typeof a=="function"?a:Bt(a),r):e},r.size=function(a){return arguments.length?(n=typeof a=="function"?a:Bt(+a),r):n},r.context=function(a){return arguments.length?(t=a??null,r):t},r}function k1(){}function _1(e,n,t){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+n)/6,(e._y0+4*e._y1+t)/6)}function EU(e){this._context=e}EU.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:_1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);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:_1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function _1e(e){return new EU(e)}function MU(e){this._context=e}MU.prototype={areaStart:k1,areaEnd:k1,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);break}}},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._x2=e,this._y2=n;break;case 1:this._point=2,this._x3=e,this._y3=n;break;case 2:this._point=3,this._x4=e,this._y4=n,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+n)/6);break;default:_1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function x1e(e){return new MU(e)}function DU(e){this._context=e}DU.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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 3:this._point=4;default:_1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function S1e(e){return new DU(e)}function RU(e){this._context=e}RU.prototype={areaStart:k1,areaEnd:k1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,n){e=+e,n=+n,this._point?this._context.lineTo(e,n):(this._point=1,this._context.moveTo(e,n))}};function C1e(e){return new RU(e)}function VD(e){return e<0?-1:1}function WD(e,n,t){var i=e._x1-e._x0,r=n-e._x1,a=(e._y1-e._y0)/(i||r<0&&-0),o=(t-e._y1)/(r||i<0&&-0),l=(a*r+o*i)/(i+r);return(VD(a)+VD(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function GD(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function z2(e,n,t){var i=e._x0,r=e._y0,a=e._x1,o=e._y1,l=(a-i)/3;e._context.bezierCurveTo(i+l,r+l*n,a-l,o-l*t,a,o)}function x1(e){this._context=e}x1.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:z2(this,this._t0,GD(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,z2(this,GD(this,t=WD(this,e,n)),t);break;default:z2(this,this._t0,t=WD(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function PU(e){this._context=new NU(e)}(PU.prototype=Object.create(x1.prototype)).point=function(e,n){x1.prototype.point.call(this,n,e)};function NU(e){this._context=e}NU.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,i,r,a){this._context.bezierCurveTo(n,e,i,t,a,r)}};function j1e(e){return new x1(e)}function A1e(e){return new PU(e)}function $U(e){this._context=e}$U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var i=YD(e),r=YD(n),a=0,o=1;o=0;--n)r[n]=(o[n]-r[n+1])/a[n];for(a[t-1]=(e[t]+r[t-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function T1e(e){return new Y0(e,.5)}function E1e(e){return new Y0(e,0)}function M1e(e){return new Y0(e,1)}function hf(e,n){if((o=e.length)>1)for(var t=1,i,r,a=e[n[0]],o,l=a.length;t=0;)t[n]=n;return t}function D1e(e,n){return e[n]}function R1e(e){const n=[];return n.key=e,n}function P1e(){var e=Bt([]),n=M4,t=hf,i=D1e;function r(a){var o=Array.from(e.apply(this,arguments),R1e),l,u=o.length,f=-1,h;for(const d of a)for(l=0,++f;l0){for(var t,i,r=0,a=e[0].length,o;r0){for(var t=0,i=e[n[0]],r,a=i.length;t0)||!((a=(r=e[n[0]]).length)>0))){for(var t=0,i=1,r,a,o;i=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function H1e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var zU={symbolCircle:dj,symbolCross:c1e,symbolDiamond:d1e,symbolSquare:h1e,symbolStar:g1e,symbolTriangle:y1e,symbolWye:w1e},U1e=Math.PI/180,V1e=function(n){var t="symbol".concat(V0(n));return zU[t]||dj},W1e=function(n,t,i){if(t==="area")return n;switch(i){case"cross":return 5*n*n/9;case"diamond":return .5*n*n/Math.sqrt(3);case"square":return n*n;case"star":{var r=18*U1e;return 1.25*n*n*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*n*n/4;case"wye":return(21-10*Math.sqrt(3))*n*n/8;default:return Math.PI*n*n/4}},G1e=function(n,t){zU["symbol".concat(V0(n))]=t},hj=function(n){var t=n.type,i=t===void 0?"circle":t,r=n.size,a=r===void 0?64:r,o=n.sizeType,l=o===void 0?"area":o,u=q1e(n,L1e),f=XD(XD({},u),{},{type:i,size:a,sizeType:l}),h=function(){var k=V1e(i),_=k1e().type(k).size(W1e(a,l,i));return _()},d=f.className,p=f.cx,g=f.cy,b=Un(f,!0);return p===+p&&g===+g&&a===+a?J.createElement("path",D4({},b,{className:vn("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(g,")"),d:h()})):null};hj.registerSymbol=G1e;function mf(e){"@babel/helpers - typeof";return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mf(e)}function R4(){return R4=Object.assign?Object.assign.bind():function(e){for(var n=1;n0?1:-1},wu=function(n){return $u(n)&&n.indexOf("%")===n.length-1},Ge=function(n){return Rge(n)&&!ud(n)},Pge=function(n){return Zn(n)},ji=function(n){return Ge(n)||$u(n)},Nge=0,cd=function(n){var t=++Nge;return"".concat(n||"").concat(t)},zu=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ge(n)&&!$u(n))return i;var a;if(wu(n)){var o=n.indexOf("%");a=t*parseFloat(n.slice(0,o))/100}else a=+n;return ud(a)&&(a=i),r&&a>t&&(a=t),a},ol=function(n){if(!n)return null;var t=Object.keys(n);return t&&t.length?n[t[0]]:null},$ge=function(n){if(!Array.isArray(n))return!1;for(var t=n.length,i={},r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Hge(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function x4(e){"@babel/helpers - typeof";return x4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},x4(e)}var RD={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ts=function(n){return typeof n=="string"?n:n?n.displayName||n.name||"Component":""},PD=null,O2=null,cj=function e(n){if(n===PD&&Array.isArray(O2))return O2;var t=[];return S.Children.forEach(n,function(i){Zn(i)||(Tge.isFragment(i)?t=t.concat(e(i.props.children)):t.push(i))}),O2=t,PD=n,t};function wa(e,n){var t=[],i=[];return Array.isArray(n)?i=n.map(function(r){return ts(r)}):i=[ts(n)],cj(e).forEach(function(r){var a=ba(r,"type.displayName")||ba(r,"type.name");i.indexOf(a)!==-1&&t.push(r)}),t}function Vr(e,n){var t=wa(e,n);return t&&t[0]}var ND=function(n){if(!n||!n.props)return!1;var t=n.props,i=t.width,r=t.height;return!(!Ge(i)||i<=0||!Ge(r)||r<=0)},Uge=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Vge=function(n){return n&&n.type&&$u(n.type)&&Uge.indexOf(n.type)>=0},bU=function(n){return n&&x4(n)==="object"&&"clipDot"in n},Wge=function(n,t,i,r){var a,o=(a=A2==null?void 0:A2[r])!==null&&a!==void 0?a:[];return t.startsWith("data-")||!qn(n)&&(r&&o.includes(t)||Ige.includes(t))||i&&uj.includes(t)},Wn=function(n,t,i){if(!n||typeof n=="function"||typeof n=="boolean")return null;var r=n;if(S.isValidElement(n)&&(r=n.props),!ld(r))return null;var a={};return Object.keys(r).forEach(function(o){var l;Wge((l=r)===null||l===void 0?void 0:l[o],o,t,i)&&(a[o]=r[o])}),a},S4=function e(n,t){if(n===t)return!0;var i=S.Children.count(n);if(i!==S.Children.count(t))return!1;if(i===0)return!0;if(i===1)return $D(Array.isArray(n)?n[0]:n,Array.isArray(t)?t[0]:t);for(var r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Zge(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function j4(e){var n=e.children,t=e.width,i=e.height,r=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,f=Xge(e,Kge),h=r||{width:t,height:i,x:0,y:0},d=vn("recharts-surface",a);return J.createElement("svg",C4({},Wn(f,!0,"svg"),{className:d,width:t,height:i,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),J.createElement("title",null,l),J.createElement("desc",null,u),n)}var Qge=["children","className"];function A4(){return A4=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function e1e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var qt=J.forwardRef(function(e,n){var t=e.children,i=e.className,r=Jge(e,Qge),a=vn("recharts-layer",i);return J.createElement("g",A4({className:a},Wn(r,!0),{ref:n}),t)}),is=function(n,t){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;aa?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(a);++r=a?t:e(t,i,r)}return E2=n,E2}var M2,BD;function wU(){if(BD)return M2;BD=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+r+a+"]");function u(f){return l.test(f)}return M2=u,M2}var D2,FD;function i1e(){if(FD)return D2;FD=1;function e(n){return n.split("")}return D2=e,D2}var R2,qD;function r1e(){if(qD)return R2;qD=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+r+"]",u="\\ud83c[\\udffb-\\udfff]",f="(?:"+l+"|"+u+")",h="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",b=f+"?",w="["+a+"]?",k="(?:"+g+"(?:"+[h,d,p].join("|")+")"+w+b+")*",_=w+b+k,x="(?:"+[h+l+"?",l,d,p,o].join("|")+")",C=RegExp(u+"(?="+u+")|"+x+_,"g");function T(A){return A.match(C)||[]}return R2=T,R2}var P2,HD;function a1e(){if(HD)return P2;HD=1;var e=i1e(),n=wU(),t=r1e();function i(r){return n(r)?t(r):e(r)}return P2=i,P2}var N2,UD;function o1e(){if(UD)return N2;UD=1;var e=t1e(),n=wU(),t=a1e(),i=pU();function r(a){return function(o){o=i(o);var l=n(o)?t(o):void 0,u=l?l[0]:o.charAt(0),f=l?e(l,1).join(""):o.slice(1);return u[a]()+f}}return N2=r,N2}var $2,VD;function s1e(){if(VD)return $2;VD=1;var e=o1e(),n=e("toUpperCase");return $2=n,$2}var l1e=s1e();const W0=yt(l1e);function Ft(e){return function(){return e}}const kU=Math.cos,w1=Math.sin,Ya=Math.sqrt,k1=Math.PI,G0=2*k1,O4=Math.PI,T4=2*O4,mu=1e-6,u1e=T4-mu;function _U(e){this._+=e[0];for(let n=1,t=e.length;n=0))throw new Error(`invalid digits: ${e}`);if(n>15)return _U;const t=10**n;return function(i){this._+=i[0];for(let r=1,a=i.length;rmu)if(!(Math.abs(d*u-f*h)>mu)||!a)this._append`L${this._x1=n},${this._y1=t}`;else{let g=i-o,b=r-l,w=u*u+f*f,k=g*g+b*b,_=Math.sqrt(w),x=Math.sqrt(p),C=a*Math.tan((O4-Math.acos((w+p-k)/(2*_*x)))/2),T=C/x,A=C/_;Math.abs(T-1)>mu&&this._append`L${n+T*h},${t+T*d}`,this._append`A${a},${a},0,0,${+(d*g>h*b)},${this._x1=n+A*u},${this._y1=t+A*f}`}}arc(n,t,i,r,a,o){if(n=+n,t=+t,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(r),u=i*Math.sin(r),f=n+l,h=t+u,d=1^o,p=o?r-a:a-r;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>mu||Math.abs(this._y1-h)>mu)&&this._append`L${f},${h}`,i&&(p<0&&(p=p%T4+T4),p>u1e?this._append`A${i},${i},0,1,${d},${n-l},${t-u}A${i},${i},0,1,${d},${this._x1=f},${this._y1=h}`:p>mu&&this._append`A${i},${i},0,${+(p>=O4)},${d},${this._x1=n+i*Math.cos(a)},${this._y1=t+i*Math.sin(a)}`)}rect(n,t,i,r){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function fj(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const i=Math.floor(t);if(!(i>=0))throw new RangeError(`invalid digits: ${t}`);n=i}return e},()=>new f1e(n)}function dj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xU(e){this._context=e}xU.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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function Y0(e){return new xU(e)}function SU(e){return e[0]}function CU(e){return e[1]}function jU(e,n){var t=Ft(!0),i=null,r=Y0,a=null,o=fj(l);e=typeof e=="function"?e:e===void 0?SU:Ft(e),n=typeof n=="function"?n:n===void 0?CU:Ft(n);function l(u){var f,h=(u=dj(u)).length,d,p=!1,g;for(i==null&&(a=r(g=o())),f=0;f<=h;++f)!(f=g;--b)l.point(C[b],T[b]);l.lineEnd(),l.areaEnd()}_&&(C[p]=+e(k,p,d),T[p]=+n(k,p,d),l.point(i?+i(k,p,d):C[p],t?+t(k,p,d):T[p]))}if(x)return l=null,x+""||null}function h(){return jU().defined(r).curve(o).context(a)}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ft(+d),i=null,f):e},f.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ft(+d),f):e},f.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:Ft(+d),f):i},f.y=function(d){return arguments.length?(n=typeof d=="function"?d:Ft(+d),t=null,f):n},f.y0=function(d){return arguments.length?(n=typeof d=="function"?d:Ft(+d),f):n},f.y1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:Ft(+d),f):t},f.lineX0=f.lineY0=function(){return h().x(e).y(n)},f.lineY1=function(){return h().x(e).y(t)},f.lineX1=function(){return h().x(i).y(n)},f.defined=function(d){return arguments.length?(r=typeof d=="function"?d:Ft(!!d),f):r},f.curve=function(d){return arguments.length?(o=d,a!=null&&(l=o(a)),f):o},f.context=function(d){return arguments.length?(d==null?a=l=null:l=o(a=d),f):a},f}class AU{constructor(n,t){this._context=n,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(n,t){switch(n=+n,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+n)/2,this._y0,this._x0,t,n,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,n,this._y0,n,t);break}}this._x0=n,this._y0=t}}function d1e(e){return new AU(e,!0)}function h1e(e){return new AU(e,!1)}const hj={draw(e,n){const t=Ya(n/k1);e.moveTo(t,0),e.arc(0,0,t,0,G0)}},m1e={draw(e,n){const t=Ya(n/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},OU=Ya(1/3),p1e=OU*2,v1e={draw(e,n){const t=Ya(n/p1e),i=t*OU;e.moveTo(0,-t),e.lineTo(i,0),e.lineTo(0,t),e.lineTo(-i,0),e.closePath()}},g1e={draw(e,n){const t=Ya(n),i=-t/2;e.rect(i,i,t,t)}},y1e=.8908130915292852,TU=w1(k1/10)/w1(7*k1/10),b1e=w1(G0/10)*TU,w1e=-kU(G0/10)*TU,k1e={draw(e,n){const t=Ya(n*y1e),i=b1e*t,r=w1e*t;e.moveTo(0,-t),e.lineTo(i,r);for(let a=1;a<5;++a){const o=G0*a/5,l=kU(o),u=w1(o);e.lineTo(u*t,-l*t),e.lineTo(l*i-u*r,u*i+l*r)}e.closePath()}},z2=Ya(3),_1e={draw(e,n){const t=-Ya(n/(z2*3));e.moveTo(0,t*2),e.lineTo(-z2*t,-t),e.lineTo(z2*t,-t),e.closePath()}},ua=-.5,ca=Ya(3)/2,E4=1/Ya(12),x1e=(E4/2+1)*3,S1e={draw(e,n){const t=Ya(n/x1e),i=t/2,r=t*E4,a=i,o=t*E4+t,l=-a,u=o;e.moveTo(i,r),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(ua*i-ca*r,ca*i+ua*r),e.lineTo(ua*a-ca*o,ca*a+ua*o),e.lineTo(ua*l-ca*u,ca*l+ua*u),e.lineTo(ua*i+ca*r,ua*r-ca*i),e.lineTo(ua*a+ca*o,ua*o-ca*a),e.lineTo(ua*l+ca*u,ua*u-ca*l),e.closePath()}};function C1e(e,n){let t=null,i=fj(r);e=typeof e=="function"?e:Ft(e||hj),n=typeof n=="function"?n:Ft(n===void 0?64:+n);function r(){let a;if(t||(t=a=i()),e.apply(this,arguments).draw(t,+n.apply(this,arguments)),a)return t=null,a+""||null}return r.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ft(a),r):e},r.size=function(a){return arguments.length?(n=typeof a=="function"?a:Ft(+a),r):n},r.context=function(a){return arguments.length?(t=a??null,r):t},r}function _1(){}function x1(e,n,t){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+n)/6,(e._y0+4*e._y1+t)/6)}function EU(e){this._context=e}EU.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:x1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);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:x1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function j1e(e){return new EU(e)}function MU(e){this._context=e}MU.prototype={areaStart:_1,areaEnd:_1,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);break}}},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._x2=e,this._y2=n;break;case 1:this._point=2,this._x3=e,this._y3=n;break;case 2:this._point=3,this._x4=e,this._y4=n,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+n)/6);break;default:x1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function A1e(e){return new MU(e)}function DU(e){this._context=e}DU.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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 3:this._point=4;default:x1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function O1e(e){return new DU(e)}function RU(e){this._context=e}RU.prototype={areaStart:_1,areaEnd:_1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,n){e=+e,n=+n,this._point?this._context.lineTo(e,n):(this._point=1,this._context.moveTo(e,n))}};function T1e(e){return new RU(e)}function WD(e){return e<0?-1:1}function GD(e,n,t){var i=e._x1-e._x0,r=n-e._x1,a=(e._y1-e._y0)/(i||r<0&&-0),o=(t-e._y1)/(r||i<0&&-0),l=(a*r+o*i)/(i+r);return(WD(a)+WD(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function YD(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function L2(e,n,t){var i=e._x0,r=e._y0,a=e._x1,o=e._y1,l=(a-i)/3;e._context.bezierCurveTo(i+l,r+l*n,a-l,o-l*t,a,o)}function S1(e){this._context=e}S1.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:L2(this,this._t0,YD(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,L2(this,YD(this,t=GD(this,e,n)),t);break;default:L2(this,this._t0,t=GD(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function PU(e){this._context=new NU(e)}(PU.prototype=Object.create(S1.prototype)).point=function(e,n){S1.prototype.point.call(this,n,e)};function NU(e){this._context=e}NU.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,i,r,a){this._context.bezierCurveTo(n,e,i,t,a,r)}};function E1e(e){return new S1(e)}function M1e(e){return new PU(e)}function $U(e){this._context=e}$U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var i=KD(e),r=KD(n),a=0,o=1;o=0;--n)r[n]=(o[n]-r[n+1])/a[n];for(a[t-1]=(e[t]+r[t-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function R1e(e){return new K0(e,.5)}function P1e(e){return new K0(e,0)}function N1e(e){return new K0(e,1)}function hf(e,n){if((o=e.length)>1)for(var t=1,i,r,a=e[n[0]],o,l=a.length;t=0;)t[n]=n;return t}function $1e(e,n){return e[n]}function z1e(e){const n=[];return n.key=e,n}function L1e(){var e=Ft([]),n=M4,t=hf,i=$1e;function r(a){var o=Array.from(e.apply(this,arguments),z1e),l,u=o.length,f=-1,h;for(const d of a)for(l=0,++f;l0){for(var t,i,r=0,a=e[0].length,o;r0){for(var t=0,i=e[n[0]],r,a=i.length;t0)||!((a=(r=e[n[0]]).length)>0))){for(var t=0,i=1,r,a,o;i=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function G1e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var zU={symbolCircle:hj,symbolCross:m1e,symbolDiamond:v1e,symbolSquare:g1e,symbolStar:k1e,symbolTriangle:_1e,symbolWye:S1e},Y1e=Math.PI/180,K1e=function(n){var t="symbol".concat(W0(n));return zU[t]||hj},X1e=function(n,t,i){if(t==="area")return n;switch(i){case"cross":return 5*n*n/9;case"diamond":return .5*n*n/Math.sqrt(3);case"square":return n*n;case"star":{var r=18*Y1e;return 1.25*n*n*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*n*n/4;case"wye":return(21-10*Math.sqrt(3))*n*n/8;default:return Math.PI*n*n/4}},Z1e=function(n,t){zU["symbol".concat(W0(n))]=t},mj=function(n){var t=n.type,i=t===void 0?"circle":t,r=n.size,a=r===void 0?64:r,o=n.sizeType,l=o===void 0?"area":o,u=W1e(n,q1e),f=ZD(ZD({},u),{},{type:i,size:a,sizeType:l}),h=function(){var k=K1e(i),_=C1e().type(k).size(X1e(a,l,i));return _()},d=f.className,p=f.cx,g=f.cy,b=Wn(f,!0);return p===+p&&g===+g&&a===+a?J.createElement("path",D4({},b,{className:vn("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(g,")"),d:h()})):null};mj.registerSymbol=Z1e;function mf(e){"@babel/helpers - typeof";return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mf(e)}function R4(){return R4=Object.assign?Object.assign.bind():function(e){for(var n=1;n`);var S=g.inactive?f:g.color;return J.createElement("li",R4({className:k,style:d,key:"legend-item-".concat(b)},y1(i.props,g,b)),J.createElement(j4,{width:o,height:o,viewBox:h,style:p},i.renderIcon(g)),J.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},w?w(_,g,b):_))})}},{key:"render",value:function(){var i=this.props,r=i.payload,a=i.layout,o=i.align;if(!r||!r.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return J.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(x.PureComponent);Sm(mj,"displayName","Legend");Sm(mj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var L2,QD;function iye(){if(QD)return L2;QD=1;var e=q0();function n(){this.__data__=new e,this.size=0}return L2=n,L2}var I2,JD;function rye(){if(JD)return I2;JD=1;function e(n){var t=this.__data__,i=t.delete(n);return this.size=t.size,i}return I2=e,I2}var B2,e7;function aye(){if(e7)return B2;e7=1;function e(n){return this.__data__.get(n)}return B2=e,B2}var F2,n7;function oye(){if(n7)return F2;n7=1;function e(n){return this.__data__.has(n)}return F2=e,F2}var q2,t7;function sye(){if(t7)return q2;t7=1;var e=q0(),n=rj(),t=aj(),i=200;function r(a,o){var l=this.__data__;if(l instanceof e){var u=l.__data__;if(!n||u.lengthg))return!1;var w=d.get(o),k=d.get(l);if(w&&k)return w==l&&k==o;var _=-1,S=!0,j=u&r?new e:void 0;for(d.set(o,l),d.set(l,o);++_-1&&i%1==0&&i-1&&t%1==0&&t<=e}return cx=n,cx}var fx,j7;function wye(){if(j7)return fx;j7=1;var e=_s(),n=yj(),t=xs(),i="[object Arguments]",r="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",p="[object RegExp]",g="[object Set]",b="[object String]",w="[object WeakMap]",k="[object ArrayBuffer]",_="[object DataView]",S="[object Float32Array]",j="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",$="[object Uint8ClampedArray]",q="[object Uint16Array]",P="[object Uint32Array]",L={};L[S]=L[j]=L[T]=L[A]=L[O]=L[M]=L[$]=L[q]=L[P]=!0,L[i]=L[r]=L[k]=L[a]=L[_]=L[o]=L[l]=L[u]=L[f]=L[h]=L[d]=L[p]=L[g]=L[b]=L[w]=!1;function U(G){return t(G)&&n(G.length)&&!!L[e(G)]}return fx=U,fx}var dx,A7;function GU(){if(A7)return dx;A7=1;function e(n){return function(t){return n(t)}}return dx=e,dx}var Vh={exports:{}};Vh.exports;var O7;function kye(){return O7||(O7=1,(function(e,n){var t=dU(),i=n&&!n.nodeType&&n,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a&&t.process,l=(function(){try{var u=r&&r.require&&r.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(Vh,Vh.exports)),Vh.exports}var hx,T7;function YU(){if(T7)return hx;T7=1;var e=wye(),n=GU(),t=kye(),i=t&&t.isTypedArray,r=i?n(i):e;return hx=r,hx}var mx,E7;function _ye(){if(E7)return mx;E7=1;var e=gye(),n=vj(),t=Tr(),i=WU(),r=gj(),a=YU(),o=Object.prototype,l=o.hasOwnProperty;function u(f,h){var d=t(f),p=!d&&n(f),g=!d&&!p&&i(f),b=!d&&!p&&!g&&a(f),w=d||p||g||b,k=w?e(f.length,String):[],_=k.length;for(var S in f)(h||l.call(f,S))&&!(w&&(S=="length"||g&&(S=="offset"||S=="parent")||b&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||r(S,_)))&&k.push(S);return k}return mx=u,mx}var px,M7;function xye(){if(M7)return px;M7=1;var e=Object.prototype;function n(t){var i=t&&t.constructor,r=typeof i=="function"&&i.prototype||e;return t===r}return px=n,px}var vx,D7;function KU(){if(D7)return vx;D7=1;function e(n,t){return function(i){return n(t(i))}}return vx=e,vx}var gx,R7;function Sye(){if(R7)return gx;R7=1;var e=KU(),n=e(Object.keys,Object);return gx=n,gx}var yx,P7;function Cye(){if(P7)return yx;P7=1;var e=xye(),n=Sye(),t=Object.prototype,i=t.hasOwnProperty;function r(a){if(!e(a))return n(a);var o=[];for(var l in Object(a))i.call(a,l)&&l!="constructor"&&o.push(l);return o}return yx=r,yx}var bx,N7;function Dp(){if(N7)return bx;N7=1;var e=tj(),n=yj();function t(i){return i!=null&&n(i.length)&&!e(i)}return bx=t,bx}var wx,$7;function K0(){if($7)return wx;$7=1;var e=_ye(),n=Cye(),t=Dp();function i(r){return t(r)?e(r):n(r)}return wx=i,wx}var kx,z7;function jye(){if(z7)return kx;z7=1;var e=hye(),n=vye(),t=K0();function i(r){return e(r,t,n)}return kx=i,kx}var _x,L7;function Aye(){if(L7)return _x;L7=1;var e=jye(),n=1,t=Object.prototype,i=t.hasOwnProperty;function r(a,o,l,u,f,h){var d=l&n,p=e(a),g=p.length,b=e(o),w=b.length;if(g!=w&&!d)return!1;for(var k=g;k--;){var _=p[k];if(!(d?_ in o:i.call(o,_)))return!1}var S=h.get(a),j=h.get(o);if(S&&j)return S==o&&j==a;var T=!0;h.set(a,o),h.set(o,a);for(var A=d;++k-1}return Yx=n,Yx}var Kx,fR;function Gye(){if(fR)return Kx;fR=1;function e(n,t,i){for(var r=-1,a=n==null?0:n.length;++r=o){var _=f?null:r(u);if(_)return a(_);b=!1,p=i,k=new e}else k=f?[]:w;e:for(;++d=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function l0e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function u0e(e){return e.value}function c0e(e,n){if(J.isValidElement(e))return J.cloneElement(e,n);if(typeof e=="function")return J.createElement(e,n);n.ref;var t=s0e(n,Jye);return J.createElement(mj,t)}var bR=1,rs=(function(e){function n(){var t;e0e(this,n);for(var i=arguments.length,r=new Array(i),a=0;abR||Math.abs(r.height-this.lastBoundingBox.height)>bR)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height,i&&i(r)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Vo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var r=this.props,a=r.layout,o=r.align,l=r.verticalAlign,u=r.margin,f=r.chartWidth,h=r.chartHeight,d,p;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(o==="center"&&a==="vertical"){var g=this.getBBoxSnapshot();d={left:((f||0)-g.width)/2}}else d=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();p={top:((h||0)-b.height)/2}}else p=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Vo(Vo({},d),p)}},{key:"render",value:function(){var i=this,r=this.props,a=r.content,o=r.width,l=r.height,u=r.wrapperStyle,f=r.payloadUniqBy,h=r.payload,d=Vo(Vo({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return J.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){i.wrapperNode=g}},c0e(a,Vo(Vo({},this.props),{},{payload:eV(h,f,u0e)})))}}],[{key:"getWithHeight",value:function(i,r){var a=Vo(Vo({},this.defaultProps),i.props),o=a.layout;return o==="vertical"&&Ge(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||r}:null}}])})(x.PureComponent);X0(rs,"displayName","Legend");X0(rs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var e3,wR;function f0e(){if(wR)return e3;wR=1;var e=Mp(),n=vj(),t=Tr(),i=e?e.isConcatSpreadable:void 0;function r(a){return t(a)||n(a)||!!(i&&a&&a[i])}return e3=r,e3}var n3,kR;function iV(){if(kR)return n3;kR=1;var e=VU(),n=f0e();function t(i,r,a,o,l){var u=-1,f=i.length;for(a||(a=n),l||(l=[]);++u0&&a(h)?r>1?t(h,r-1,a,o,l):e(l,h):o||(l[l.length]=h)}return l}return n3=t,n3}var t3,_R;function d0e(){if(_R)return t3;_R=1;function e(n){return function(t,i,r){for(var a=-1,o=Object(t),l=r(t),u=l.length;u--;){var f=l[n?u:++a];if(i(o[f],f,o)===!1)break}return t}}return t3=e,t3}var i3,xR;function h0e(){if(xR)return i3;xR=1;var e=d0e(),n=e();return i3=n,i3}var r3,SR;function rV(){if(SR)return r3;SR=1;var e=h0e(),n=K0();function t(i,r){return i&&e(i,r,n)}return r3=t,r3}var a3,CR;function m0e(){if(CR)return a3;CR=1;var e=Dp();function n(t,i){return function(r,a){if(r==null)return r;if(!e(r))return t(r,a);for(var o=r.length,l=i?o:-1,u=Object(r);(i?l--:++li||l&&u&&h&&!f&&!d||a&&u&&h||!r&&h||!o)return 1;if(!a&&!l&&!d&&t=f)return h;var d=r[a];return h*(d=="desc"?-1:1)}}return t.index-i.index}return c3=n,c3}var f3,MR;function y0e(){if(MR)return f3;MR=1;var e=oj(),n=sj(),t=Nl(),i=aV(),r=p0e(),a=GU(),o=g0e(),l=fd(),u=Tr();function f(h,d,p){d.length?d=e(d,function(w){return u(w)?function(k){return n(k,w.length===1?w[0]:w)}:w}):d=[l];var g=-1;d=e(d,a(t));var b=i(h,function(w,k,_){var S=e(d,function(j){return j(w)});return{criteria:S,index:++g,value:w}});return r(b,function(w,k){return o(w,k,p)})}return f3=f,f3}var d3,DR;function b0e(){if(DR)return d3;DR=1;function e(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}return d3=e,d3}var h3,RR;function w0e(){if(RR)return h3;RR=1;var e=b0e(),n=Math.max;function t(i,r,a){return r=n(r===void 0?i.length-1:r,0),function(){for(var o=arguments,l=-1,u=n(o.length-r,0),f=Array(u);++l0){if(++a>=e)return arguments[0]}else a=0;return r.apply(void 0,arguments)}}return g3=i,g3}var y3,LR;function S0e(){if(LR)return y3;LR=1;var e=_0e(),n=x0e(),t=n(e);return y3=t,y3}var b3,IR;function C0e(){if(IR)return b3;IR=1;var e=fd(),n=w0e(),t=S0e();function i(r,a){return t(n(r,a,e),r+"")}return b3=i,b3}var w3,BR;function Z0(){if(BR)return w3;BR=1;var e=ij(),n=Dp(),t=gj(),i=Pl();function r(a,o,l){if(!i(l))return!1;var u=typeof o;return(u=="number"?n(l)&&t(o,l.length):u=="string"&&o in l)?e(l[o],a):!1}return w3=r,w3}var k3,FR;function j0e(){if(FR)return k3;FR=1;var e=iV(),n=y0e(),t=C0e(),i=Z0(),r=t(function(a,o){if(a==null)return[];var l=o.length;return l>1&&i(a,o[0],o[1])?o=[]:l>2&&i(o[0],o[1],o[2])&&(o=[o[0]]),n(a,e(o,1),[])});return k3=r,k3}var A0e=j0e();const kj=yt(A0e);function Cm(e){"@babel/helpers - typeof";return Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function $4(){return $4=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=n.x),"".concat(jh,"-left"),Ge(t)&&n&&Ge(n.x)&&t=n.y),"".concat(jh,"-top"),Ge(i)&&n&&Ge(n.y)&&iw?Math.max(h,u[i]):Math.max(d,u[i])}function q0e(e){var n=e.translateX,t=e.translateY,i=e.useTranslate3d;return{transform:i?"translate3d(".concat(n,"px, ").concat(t,"px, 0)"):"translate(".concat(n,"px, ").concat(t,"px)")}}function H0e(e){var n=e.allowEscapeViewBox,t=e.coordinate,i=e.offsetTopLeft,r=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,f,h,d;return o.height>0&&o.width>0&&t?(h=UR({allowEscapeViewBox:n,coordinate:t,key:"x",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),d=UR({allowEscapeViewBox:n,coordinate:t,key:"y",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),f=q0e({translateX:h,translateY:d,useTranslate3d:l})):f=B0e,{cssProperties:f,cssClasses:F0e({translateX:h,translateY:d,coordinate:t})}}function vf(e){"@babel/helpers - typeof";return vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vf(e)}function VR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function WR(e){for(var n=1;nGR||Math.abs(i.height-this.state.lastBoundingBox.height)>GR)&&this.setState({lastBoundingBox:{width:i.width,height:i.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,r;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,r=this.props,a=r.active,o=r.allowEscapeViewBox,l=r.animationDuration,u=r.animationEasing,f=r.children,h=r.coordinate,d=r.hasPayload,p=r.isAnimationActive,g=r.offset,b=r.position,w=r.reverseDirection,k=r.useTranslate3d,_=r.viewBox,S=r.wrapperStyle,j=H0e({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:g,position:b,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:k,viewBox:_}),T=j.cssClasses,A=j.cssProperties,O=WR(WR({transition:p&&a?"transform ".concat(l,"ms ").concat(u):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},S);return J.createElement("div",{tabIndex:-1,className:T,style:O,ref:function($){i.wrapperNode=$}},f)}}])})(x.PureComponent),J0e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ku={isSsr:J0e()};function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gf(e)}function YR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function KR(e){for(var n=1;n0;return J.createElement(Q0e,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:p,active:a,coordinate:h,hasPayload:O,offset:g,position:k,reverseDirection:_,useTranslate3d:S,viewBox:j,wrapperStyle:T},ube(f,KR(KR({},this.props),{},{payload:A})))}}])})(x.PureComponent);_j(pa,"displayName","Tooltip");_j(pa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ku.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var x3,XR;function cbe(){if(XR)return x3;XR=1;var e=So(),n=function(){return e.Date.now()};return x3=n,x3}var S3,ZR;function fbe(){if(ZR)return S3;ZR=1;var e=/\s/;function n(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}return S3=n,S3}var C3,QR;function dbe(){if(QR)return C3;QR=1;var e=fbe(),n=/^\s+/;function t(i){return i&&i.slice(0,e(i)+1).replace(n,"")}return C3=t,C3}var j3,JR;function fV(){if(JR)return j3;JR=1;var e=dbe(),n=Pl(),t=sd(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function u(f){if(typeof f=="number")return f;if(t(f))return i;if(n(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=n(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var d=a.test(f);return d||o.test(f)?l(f.slice(2),d?2:8):r.test(f)?i:+f}return j3=u,j3}var A3,eP;function hbe(){if(eP)return A3;eP=1;var e=Pl(),n=cbe(),t=fV(),i="Expected a function",r=Math.max,a=Math.min;function o(l,u,f){var h,d,p,g,b,w,k=0,_=!1,S=!1,j=!0;if(typeof l!="function")throw new TypeError(i);u=t(u)||0,e(f)&&(_=!!f.leading,S="maxWait"in f,p=S?r(t(f.maxWait)||0,u):p,j="trailing"in f?!!f.trailing:j);function T(G){var B=h,R=d;return h=d=void 0,k=G,g=l.apply(R,B),g}function A(G){return k=G,b=setTimeout($,u),_?T(G):g}function O(G){var B=G-w,R=G-k,D=u-B;return S?a(D,p-R):D}function M(G){var B=G-w,R=G-k;return w===void 0||B>=u||B<0||S&&R>=p}function $(){var G=n();if(M(G))return q(G);b=setTimeout($,O(G))}function q(G){return b=void 0,j&&h?T(G):(h=d=void 0,g)}function P(){b!==void 0&&clearTimeout(b),k=0,h=w=d=b=void 0}function L(){return b===void 0?g:q(n())}function U(){var G=n(),B=M(G);if(h=arguments,d=this,w=G,B){if(b===void 0)return A(w);if(S)return clearTimeout(b),b=setTimeout($,u),T(w)}return b===void 0&&(b=setTimeout($,u)),g}return U.cancel=P,U.flush=L,U}return A3=o,A3}var O3,nP;function mbe(){if(nP)return O3;nP=1;var e=hbe(),n=Pl(),t="Expected a function";function i(r,a,o){var l=!0,u=!0;if(typeof r!="function")throw new TypeError(t);return n(o)&&(l="leading"in o?!!o.leading:l,u="trailing"in o?!!o.trailing:u),e(r,a,{leading:l,maxWait:a,trailing:u})}return O3=i,O3}var pbe=mbe();const dV=yt(pbe);function Am(e){"@babel/helpers - typeof";return Am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function tP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function pg(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t0&&(G=dV(G,w,{trailing:!0,leading:!1}));var B=new ResizeObserver(G),R=A.current.getBoundingClientRect(),D=R.width,z=R.height;return L(D,z),B.observe(A.current),function(){B.disconnect()}},[L,w]);var U=x.useMemo(function(){var G=q.containerWidth,B=q.containerHeight;if(G<0||B<0)return null;is(wu(o)||wu(u),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,u),is(!t||t>0,"The aspect(%s) must be greater than zero.",t);var R=wu(o)?G:o,D=wu(u)?B:u;t&&t>0&&(R?D=R/t:D&&(R=D*t),p&&D>p&&(D=p)),is(R>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, + A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(i.type==="rect")return J.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(fa/8,"h").concat(fa,"v").concat(fa*3/4,"h").concat(-fa,"z"),className:"recharts-legend-icon"});if(J.isValidElement(i.legendIcon)){var f=Q1e({},i);return delete f.legendIcon,J.cloneElement(i.legendIcon,f)}return J.createElement(mj,{fill:u,cx:a,cy:a,size:fa,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,r=this.props,a=r.payload,o=r.iconSize,l=r.layout,u=r.formatter,f=r.inactiveColor,h={x:0,y:0,width:fa,height:fa},d={display:l==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(g,b){var w=g.formatter||u,k=vn(Sm(Sm({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",g.inactive));if(g.type==="none")return null;var _=qn(g.value)?null:g.value;is(!qn(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var x=g.inactive?f:g.color;return J.createElement("li",R4({className:k,style:d,key:"legend-item-".concat(b)},b1(i.props,g,b)),J.createElement(j4,{width:o,height:o,viewBox:h,style:p},i.renderIcon(g)),J.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},w?w(_,g,b):_))})}},{key:"render",value:function(){var i=this.props,r=i.payload,a=i.layout,o=i.align;if(!r||!r.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return J.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(S.PureComponent);Sm(pj,"displayName","Legend");Sm(pj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var I2,JD;function sye(){if(JD)return I2;JD=1;var e=H0();function n(){this.__data__=new e,this.size=0}return I2=n,I2}var B2,e7;function lye(){if(e7)return B2;e7=1;function e(n){var t=this.__data__,i=t.delete(n);return this.size=t.size,i}return B2=e,B2}var F2,n7;function uye(){if(n7)return F2;n7=1;function e(n){return this.__data__.get(n)}return F2=e,F2}var q2,t7;function cye(){if(t7)return q2;t7=1;function e(n){return this.__data__.has(n)}return q2=e,q2}var H2,i7;function fye(){if(i7)return H2;i7=1;var e=H0(),n=aj(),t=oj(),i=200;function r(a,o){var l=this.__data__;if(l instanceof e){var u=l.__data__;if(!n||u.lengthg))return!1;var w=d.get(o),k=d.get(l);if(w&&k)return w==l&&k==o;var _=-1,x=!0,C=u&r?new e:void 0;for(d.set(o,l),d.set(l,o);++_-1&&i%1==0&&i-1&&t%1==0&&t<=e}return fx=n,fx}var dx,A7;function Sye(){if(A7)return dx;A7=1;var e=_s(),n=bj(),t=xs(),i="[object Arguments]",r="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",p="[object RegExp]",g="[object Set]",b="[object String]",w="[object WeakMap]",k="[object ArrayBuffer]",_="[object DataView]",x="[object Float32Array]",C="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",$="[object Uint8ClampedArray]",q="[object Uint16Array]",R="[object Uint32Array]",I={};I[x]=I[C]=I[T]=I[A]=I[O]=I[M]=I[$]=I[q]=I[R]=!0,I[i]=I[r]=I[k]=I[a]=I[_]=I[o]=I[l]=I[u]=I[f]=I[h]=I[d]=I[p]=I[g]=I[b]=I[w]=!1;function z(W){return t(W)&&n(W.length)&&!!I[e(W)]}return dx=z,dx}var hx,O7;function GU(){if(O7)return hx;O7=1;function e(n){return function(t){return n(t)}}return hx=e,hx}var Vh={exports:{}};Vh.exports;var T7;function Cye(){return T7||(T7=1,(function(e,n){var t=dU(),i=n&&!n.nodeType&&n,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a&&t.process,l=(function(){try{var u=r&&r.require&&r.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(Vh,Vh.exports)),Vh.exports}var mx,E7;function YU(){if(E7)return mx;E7=1;var e=Sye(),n=GU(),t=Cye(),i=t&&t.isTypedArray,r=i?n(i):e;return mx=r,mx}var px,M7;function jye(){if(M7)return px;M7=1;var e=kye(),n=gj(),t=Er(),i=WU(),r=yj(),a=YU(),o=Object.prototype,l=o.hasOwnProperty;function u(f,h){var d=t(f),p=!d&&n(f),g=!d&&!p&&i(f),b=!d&&!p&&!g&&a(f),w=d||p||g||b,k=w?e(f.length,String):[],_=k.length;for(var x in f)(h||l.call(f,x))&&!(w&&(x=="length"||g&&(x=="offset"||x=="parent")||b&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||r(x,_)))&&k.push(x);return k}return px=u,px}var vx,D7;function Aye(){if(D7)return vx;D7=1;var e=Object.prototype;function n(t){var i=t&&t.constructor,r=typeof i=="function"&&i.prototype||e;return t===r}return vx=n,vx}var gx,R7;function KU(){if(R7)return gx;R7=1;function e(n,t){return function(i){return n(t(i))}}return gx=e,gx}var yx,P7;function Oye(){if(P7)return yx;P7=1;var e=KU(),n=e(Object.keys,Object);return yx=n,yx}var bx,N7;function Tye(){if(N7)return bx;N7=1;var e=Aye(),n=Oye(),t=Object.prototype,i=t.hasOwnProperty;function r(a){if(!e(a))return n(a);var o=[];for(var l in Object(a))i.call(a,l)&&l!="constructor"&&o.push(l);return o}return bx=r,bx}var wx,$7;function Dp(){if($7)return wx;$7=1;var e=ij(),n=bj();function t(i){return i!=null&&n(i.length)&&!e(i)}return wx=t,wx}var kx,z7;function X0(){if(z7)return kx;z7=1;var e=jye(),n=Tye(),t=Dp();function i(r){return t(r)?e(r):n(r)}return kx=i,kx}var _x,L7;function Eye(){if(L7)return _x;L7=1;var e=gye(),n=wye(),t=X0();function i(r){return e(r,t,n)}return _x=i,_x}var xx,I7;function Mye(){if(I7)return xx;I7=1;var e=Eye(),n=1,t=Object.prototype,i=t.hasOwnProperty;function r(a,o,l,u,f,h){var d=l&n,p=e(a),g=p.length,b=e(o),w=b.length;if(g!=w&&!d)return!1;for(var k=g;k--;){var _=p[k];if(!(d?_ in o:i.call(o,_)))return!1}var x=h.get(a),C=h.get(o);if(x&&C)return x==o&&C==a;var T=!0;h.set(a,o),h.set(o,a);for(var A=d;++k-1}return Kx=n,Kx}var Xx,dR;function Zye(){if(dR)return Xx;dR=1;function e(n,t,i){for(var r=-1,a=n==null?0:n.length;++r=o){var _=f?null:r(u);if(_)return a(_);b=!1,p=i,k=new e}else k=f?[]:w;e:for(;++d=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function d0e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function h0e(e){return e.value}function m0e(e,n){if(J.isValidElement(e))return J.cloneElement(e,n);if(typeof e=="function")return J.createElement(e,n);n.ref;var t=f0e(n,i0e);return J.createElement(pj,t)}var wR=1,rs=(function(e){function n(){var t;r0e(this,n);for(var i=arguments.length,r=new Array(i),a=0;awR||Math.abs(r.height-this.lastBoundingBox.height)>wR)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height,i&&i(r)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Vo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var r=this.props,a=r.layout,o=r.align,l=r.verticalAlign,u=r.margin,f=r.chartWidth,h=r.chartHeight,d,p;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(o==="center"&&a==="vertical"){var g=this.getBBoxSnapshot();d={left:((f||0)-g.width)/2}}else d=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();p={top:((h||0)-b.height)/2}}else p=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Vo(Vo({},d),p)}},{key:"render",value:function(){var i=this,r=this.props,a=r.content,o=r.width,l=r.height,u=r.wrapperStyle,f=r.payloadUniqBy,h=r.payload,d=Vo(Vo({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return J.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){i.wrapperNode=g}},m0e(a,Vo(Vo({},this.props),{},{payload:eV(h,f,h0e)})))}}],[{key:"getWithHeight",value:function(i,r){var a=Vo(Vo({},this.defaultProps),i.props),o=a.layout;return o==="vertical"&&Ge(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||r}:null}}])})(S.PureComponent);Z0(rs,"displayName","Legend");Z0(rs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var n3,kR;function p0e(){if(kR)return n3;kR=1;var e=Mp(),n=gj(),t=Er(),i=e?e.isConcatSpreadable:void 0;function r(a){return t(a)||n(a)||!!(i&&a&&a[i])}return n3=r,n3}var t3,_R;function iV(){if(_R)return t3;_R=1;var e=VU(),n=p0e();function t(i,r,a,o,l){var u=-1,f=i.length;for(a||(a=n),l||(l=[]);++u0&&a(h)?r>1?t(h,r-1,a,o,l):e(l,h):o||(l[l.length]=h)}return l}return t3=t,t3}var i3,xR;function v0e(){if(xR)return i3;xR=1;function e(n){return function(t,i,r){for(var a=-1,o=Object(t),l=r(t),u=l.length;u--;){var f=l[n?u:++a];if(i(o[f],f,o)===!1)break}return t}}return i3=e,i3}var r3,SR;function g0e(){if(SR)return r3;SR=1;var e=v0e(),n=e();return r3=n,r3}var a3,CR;function rV(){if(CR)return a3;CR=1;var e=g0e(),n=X0();function t(i,r){return i&&e(i,r,n)}return a3=t,a3}var o3,jR;function y0e(){if(jR)return o3;jR=1;var e=Dp();function n(t,i){return function(r,a){if(r==null)return r;if(!e(r))return t(r,a);for(var o=r.length,l=i?o:-1,u=Object(r);(i?l--:++li||l&&u&&h&&!f&&!d||a&&u&&h||!r&&h||!o)return 1;if(!a&&!l&&!d&&t=f)return h;var d=r[a];return h*(d=="desc"?-1:1)}}return t.index-i.index}return f3=n,f3}var d3,DR;function _0e(){if(DR)return d3;DR=1;var e=sj(),n=lj(),t=Nl(),i=aV(),r=b0e(),a=GU(),o=k0e(),l=fd(),u=Er();function f(h,d,p){d.length?d=e(d,function(w){return u(w)?function(k){return n(k,w.length===1?w[0]:w)}:w}):d=[l];var g=-1;d=e(d,a(t));var b=i(h,function(w,k,_){var x=e(d,function(C){return C(w)});return{criteria:x,index:++g,value:w}});return r(b,function(w,k){return o(w,k,p)})}return d3=f,d3}var h3,RR;function x0e(){if(RR)return h3;RR=1;function e(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}return h3=e,h3}var m3,PR;function S0e(){if(PR)return m3;PR=1;var e=x0e(),n=Math.max;function t(i,r,a){return r=n(r===void 0?i.length-1:r,0),function(){for(var o=arguments,l=-1,u=n(o.length-r,0),f=Array(u);++l0){if(++a>=e)return arguments[0]}else a=0;return r.apply(void 0,arguments)}}return y3=i,y3}var b3,IR;function O0e(){if(IR)return b3;IR=1;var e=j0e(),n=A0e(),t=n(e);return b3=t,b3}var w3,BR;function T0e(){if(BR)return w3;BR=1;var e=fd(),n=S0e(),t=O0e();function i(r,a){return t(n(r,a,e),r+"")}return w3=i,w3}var k3,FR;function Q0(){if(FR)return k3;FR=1;var e=rj(),n=Dp(),t=yj(),i=Pl();function r(a,o,l){if(!i(l))return!1;var u=typeof o;return(u=="number"?n(l)&&t(o,l.length):u=="string"&&o in l)?e(l[o],a):!1}return k3=r,k3}var _3,qR;function E0e(){if(qR)return _3;qR=1;var e=iV(),n=_0e(),t=T0e(),i=Q0(),r=t(function(a,o){if(a==null)return[];var l=o.length;return l>1&&i(a,o[0],o[1])?o=[]:l>2&&i(o[0],o[1],o[2])&&(o=[o[0]]),n(a,e(o,1),[])});return _3=r,_3}var M0e=E0e();const _j=yt(M0e);function Cm(e){"@babel/helpers - typeof";return Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function $4(){return $4=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=n.x),"".concat(jh,"-left"),Ge(t)&&n&&Ge(n.x)&&t=n.y),"".concat(jh,"-top"),Ge(i)&&n&&Ge(n.y)&&iw?Math.max(h,u[i]):Math.max(d,u[i])}function W0e(e){var n=e.translateX,t=e.translateY,i=e.useTranslate3d;return{transform:i?"translate3d(".concat(n,"px, ").concat(t,"px, 0)"):"translate(".concat(n,"px, ").concat(t,"px)")}}function G0e(e){var n=e.allowEscapeViewBox,t=e.coordinate,i=e.offsetTopLeft,r=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,f,h,d;return o.height>0&&o.width>0&&t?(h=VR({allowEscapeViewBox:n,coordinate:t,key:"x",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),d=VR({allowEscapeViewBox:n,coordinate:t,key:"y",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),f=W0e({translateX:h,translateY:d,useTranslate3d:l})):f=U0e,{cssProperties:f,cssClasses:V0e({translateX:h,translateY:d,coordinate:t})}}function vf(e){"@babel/helpers - typeof";return vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vf(e)}function WR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function GR(e){for(var n=1;nYR||Math.abs(i.height-this.state.lastBoundingBox.height)>YR)&&this.setState({lastBoundingBox:{width:i.width,height:i.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,r;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,r=this.props,a=r.active,o=r.allowEscapeViewBox,l=r.animationDuration,u=r.animationEasing,f=r.children,h=r.coordinate,d=r.hasPayload,p=r.isAnimationActive,g=r.offset,b=r.position,w=r.reverseDirection,k=r.useTranslate3d,_=r.viewBox,x=r.wrapperStyle,C=G0e({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:g,position:b,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:k,viewBox:_}),T=C.cssClasses,A=C.cssProperties,O=GR(GR({transition:p&&a?"transform ".concat(l,"ms ").concat(u):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return J.createElement("div",{tabIndex:-1,className:T,style:O,ref:function($){i.wrapperNode=$}},f)}}])})(S.PureComponent),ibe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Xu={isSsr:ibe()};function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gf(e)}function KR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function XR(e){for(var n=1;n0;return J.createElement(tbe,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:p,active:a,coordinate:h,hasPayload:O,offset:g,position:k,reverseDirection:_,useTranslate3d:x,viewBox:C,wrapperStyle:T},hbe(f,XR(XR({},this.props),{},{payload:A})))}}])})(S.PureComponent);xj(pa,"displayName","Tooltip");xj(pa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Xu.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var S3,ZR;function mbe(){if(ZR)return S3;ZR=1;var e=So(),n=function(){return e.Date.now()};return S3=n,S3}var C3,QR;function pbe(){if(QR)return C3;QR=1;var e=/\s/;function n(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}return C3=n,C3}var j3,JR;function vbe(){if(JR)return j3;JR=1;var e=pbe(),n=/^\s+/;function t(i){return i&&i.slice(0,e(i)+1).replace(n,"")}return j3=t,j3}var A3,eP;function fV(){if(eP)return A3;eP=1;var e=vbe(),n=Pl(),t=sd(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function u(f){if(typeof f=="number")return f;if(t(f))return i;if(n(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=n(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var d=a.test(f);return d||o.test(f)?l(f.slice(2),d?2:8):r.test(f)?i:+f}return A3=u,A3}var O3,nP;function gbe(){if(nP)return O3;nP=1;var e=Pl(),n=mbe(),t=fV(),i="Expected a function",r=Math.max,a=Math.min;function o(l,u,f){var h,d,p,g,b,w,k=0,_=!1,x=!1,C=!0;if(typeof l!="function")throw new TypeError(i);u=t(u)||0,e(f)&&(_=!!f.leading,x="maxWait"in f,p=x?r(t(f.maxWait)||0,u):p,C="trailing"in f?!!f.trailing:C);function T(W){var U=h,N=d;return h=d=void 0,k=W,g=l.apply(N,U),g}function A(W){return k=W,b=setTimeout($,u),_?T(W):g}function O(W){var U=W-w,N=W-k,D=u-U;return x?a(D,p-N):D}function M(W){var U=W-w,N=W-k;return w===void 0||U>=u||U<0||x&&N>=p}function $(){var W=n();if(M(W))return q(W);b=setTimeout($,O(W))}function q(W){return b=void 0,C&&h?T(W):(h=d=void 0,g)}function R(){b!==void 0&&clearTimeout(b),k=0,h=w=d=b=void 0}function I(){return b===void 0?g:q(n())}function z(){var W=n(),U=M(W);if(h=arguments,d=this,w=W,U){if(b===void 0)return A(w);if(x)return clearTimeout(b),b=setTimeout($,u),T(w)}return b===void 0&&(b=setTimeout($,u)),g}return z.cancel=R,z.flush=I,z}return O3=o,O3}var T3,tP;function ybe(){if(tP)return T3;tP=1;var e=gbe(),n=Pl(),t="Expected a function";function i(r,a,o){var l=!0,u=!0;if(typeof r!="function")throw new TypeError(t);return n(o)&&(l="leading"in o?!!o.leading:l,u="trailing"in o?!!o.trailing:u),e(r,a,{leading:l,maxWait:a,trailing:u})}return T3=i,T3}var bbe=ybe();const dV=yt(bbe);function Am(e){"@babel/helpers - typeof";return Am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function iP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function pg(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t0&&(W=dV(W,w,{trailing:!0,leading:!1}));var U=new ResizeObserver(W),N=A.current.getBoundingClientRect(),D=N.width,L=N.height;return I(D,L),U.observe(A.current),function(){U.disconnect()}},[I,w]);var z=S.useMemo(function(){var W=q.containerWidth,U=q.containerHeight;if(W<0||U<0)return null;is(wu(o)||wu(u),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,u),is(!t||t>0,"The aspect(%s) must be greater than zero.",t);var N=wu(o)?W:o,D=wu(u)?U:u;t&&t>0&&(N?D=N/t:D&&(N=D*t),p&&D>p&&(D=p)),is(N>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,R,D,o,u,h,d,t);var z=!Array.isArray(g)&&ts(g.type).endsWith("Chart");return J.Children.map(g,function(H){return J.isValidElement(H)?x.cloneElement(H,pg({width:R,height:D},z?{style:pg({height:"100%",width:"100%",maxHeight:D,maxWidth:R},H.props.style)}:{})):H})},[t,g,u,p,d,h,q,o]);return J.createElement("div",{id:k?"".concat(k):void 0,className:vn("recharts-responsive-container",_),style:pg(pg({},T),{},{width:o,height:u,minWidth:h,minHeight:d,maxHeight:p}),ref:A},U)}),hV=function(n){return null};hV.displayName="Cell";function Om(e){"@babel/helpers - typeof";return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function rP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function B4(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:{};if(n==null||Ku.isSsr)return{width:0,height:0};var i=Tbe(t),r=JSON.stringify({text:n,copyStyle:i});if(Lc.widthCache[r])return Lc.widthCache[r];try{var a=document.getElementById(aP);a||(a=document.createElement("span"),a.setAttribute("id",aP),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=B4(B4({},Obe),i);Object.assign(a.style,o),a.textContent="".concat(n);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return Lc.widthCache[r]=u,++Lc.cacheCount>Abe&&(Lc.cacheCount=0,Lc.widthCache={}),u}catch{return{width:0,height:0}}},Ebe=function(n){return{top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft}};function Tm(e){"@babel/helpers - typeof";return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function O1(e,n){return Pbe(e)||Rbe(e,n)||Dbe(e,n)||Mbe()}function Mbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dbe(e,n){if(e){if(typeof e=="string")return oP(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return oP(e,n)}}function oP(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Ybe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function dP(e,n){return Qbe(e)||Zbe(e,n)||Xbe(e,n)||Kbe()}function Kbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xbe(e,n){if(e){if(typeof e=="string")return hP(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hP(e,n)}}function hP(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(D,z){var H=z.word,Y=z.width,N=D[D.length-1];if(N&&(r==null||a||N.width+Y+iz.width?D:z})};if(!h)return g;for(var w="…",k=function(R){var D=d.slice(0,R),z=gV({breakAll:f,style:u,children:D+w}).wordsWithComputedWidth,H=p(z),Y=H.length>o||b(H).width>Number(r);return[Y,H]},_=0,S=d.length-1,j=0,T;_<=S&&j<=d.length-1;){var A=Math.floor((_+S)/2),O=A-1,M=k(O),$=dP(M,2),q=$[0],P=$[1],L=k(A),U=dP(L,1),G=U[0];if(!q&&!G&&(_=A+1),q&&G&&(S=A-1),!q&&G){T=P;break}j++}return T||g},mP=function(n){var t=Zn(n)?[]:n.toString().split(vV);return[{words:t}]},ewe=function(n){var t=n.width,i=n.scaleToFit,r=n.children,a=n.style,o=n.breakAll,l=n.maxLines;if((t||i)&&!Ku.isSsr){var u,f,h=gV({breakAll:o,children:r,style:a});if(h){var d=h.wordsWithComputedWidth,p=h.spaceWidth;u=d,f=p}else return mP(r);return Jbe({breakAll:o,children:r,maxLines:l,style:a},u,f,t,i)}return mP(r)},pP="#808080",T1=function(n){var t=n.x,i=t===void 0?0:t,r=n.y,a=r===void 0?0:r,o=n.lineHeight,l=o===void 0?"1em":o,u=n.capHeight,f=u===void 0?"0.71em":u,h=n.scaleToFit,d=h===void 0?!1:h,p=n.textAnchor,g=p===void 0?"start":p,b=n.verticalAnchor,w=b===void 0?"end":b,k=n.fill,_=k===void 0?pP:k,S=fP(n,Wbe),j=x.useMemo(function(){return ewe({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:d,style:S.style,width:S.width})},[S.breakAll,S.children,S.maxLines,d,S.style,S.width]),T=S.dx,A=S.dy,O=S.angle,M=S.className,$=S.breakAll,q=fP(S,Gbe);if(!ji(i)||!ji(a))return null;var P=i+(Ge(T)?T:0),L=a+(Ge(A)?A:0),U;switch(w){case"start":U=T3("calc(".concat(f,")"));break;case"middle":U=T3("calc(".concat((j.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:U=T3("calc(".concat(j.length-1," * -").concat(l,")"));break}var G=[];if(d){var B=j[0].width,R=S.width;G.push("scale(".concat((Ge(R)?R/B:1)/B,")"))}return O&&G.push("rotate(".concat(O,", ").concat(P,", ").concat(L,")")),G.length&&(q.transform=G.join(" ")),J.createElement("text",F4({},Un(q,!0),{x:P,y:L,className:vn("recharts-text",M),textAnchor:g,fill:_.includes("url")?pP:_}),j.map(function(D,z){var H=D.words.join($?"":" ");return J.createElement("tspan",{x:P,dy:z===0?U:l,key:"".concat(H,"-").concat(z)},H)}))};function gl(e,n){return e==null||n==null?NaN:en?1:e>=n?0:NaN}function nwe(e,n){return e==null||n==null?NaN:ne?1:n>=e?0:NaN}function Sj(e){let n,t,i;e.length!==2?(n=gl,t=(l,u)=>gl(e(l),u),i=(l,u)=>e(l)-u):(n=e===gl||e===nwe?e:twe,t=e,i=e);function r(l,u,f=0,h=l.length){if(f>>1;t(l[d],u)<0?f=d+1:h=d}while(f>>1;t(l[d],u)<=0?f=d+1:h=d}while(ff&&i(l[d-1],u)>-i(l[d],u)?d-1:d}return{left:r,center:o,right:a}}function twe(){return 0}function yV(e){return e===null?NaN:+e}function*iwe(e,n){for(let t of e)t!=null&&(t=+t)>=t&&(yield t)}const rwe=Sj(gl),Rp=rwe.right;Sj(yV).center;class vP extends Map{constructor(n,t=swe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[i,r]of n)this.set(i,r)}get(n){return super.get(gP(this,n))}has(n){return super.has(gP(this,n))}set(n,t){return super.set(awe(this,n),t)}delete(n){return super.delete(owe(this,n))}}function gP({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):t}function awe({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):(e.set(i,t),t)}function owe({_intern:e,_key:n},t){const i=n(t);return e.has(i)&&(t=e.get(i),e.delete(i)),t}function swe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lwe(e=gl){if(e===gl)return bV;if(typeof e!="function")throw new TypeError("compare is not a function");return(n,t)=>{const i=e(n,t);return i||i===0?i:(e(t,t)===0)-(e(n,n)===0)}}function bV(e,n){return(e==null||!(e>=e))-(n==null||!(n>=n))||(en?1:0)}const uwe=Math.sqrt(50),cwe=Math.sqrt(10),fwe=Math.sqrt(2);function E1(e,n,t){const i=(n-e)/Math.max(0,t),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=uwe?10:a>=cwe?5:a>=fwe?2:1;let l,u,f;return r<0?(f=Math.pow(10,-r)/o,l=Math.round(e*f),u=Math.round(n*f),l/fn&&--u,f=-f):(f=Math.pow(10,r)*o,l=Math.round(e/f),u=Math.round(n/f),l*fn&&--u),u0))return[];if(e===n)return[e];const i=n=r))return[];const l=a-r+1,u=new Array(l);if(i)if(o<0)for(let f=0;f=i)&&(t=i);return t}function bP(e,n){let t;for(const i of e)i!=null&&(t>i||t===void 0&&i>=i)&&(t=i);return t}function wV(e,n,t=0,i=1/0,r){if(n=Math.floor(n),t=Math.floor(Math.max(0,t)),i=Math.floor(Math.min(e.length-1,i)),!(t<=n&&n<=i))return e;for(r=r===void 0?bV:lwe(r);i>t;){if(i-t>600){const u=i-t+1,f=n-t+1,h=Math.log(u),d=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*d*(u-d)/u)*(f-u/2<0?-1:1),g=Math.max(t,Math.floor(n-f*d/u+p)),b=Math.min(i,Math.floor(n+(u-f)*d/u+p));wV(e,n,g,b,r)}const a=e[n];let o=t,l=i;for(Ah(e,t,n),r(e[i],a)>0&&Ah(e,t,i);o0;)--l}r(e[t],a)===0?Ah(e,t,l):(++l,Ah(e,l,i)),l<=n&&(t=l+1),n<=l&&(i=l-1)}return e}function Ah(e,n,t){const i=e[n];e[n]=e[t],e[t]=i}function dwe(e,n,t){if(e=Float64Array.from(iwe(e)),!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return bP(e);if(n>=1)return yP(e);var i,r=(i-1)*n,a=Math.floor(r),o=yP(wV(e,a).subarray(0,a+1)),l=bP(e.subarray(a+1));return o+(l-o)*(r-a)}}function hwe(e,n,t=yV){if(!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return+t(e[0],0,e);if(n>=1)return+t(e[i-1],i-1,e);var i,r=(i-1)*n,a=Math.floor(r),o=+t(e[a],a,e),l=+t(e[a+1],a+1,e);return o+(l-o)*(r-a)}}function mwe(e,n,t){e=+e,n=+n,t=(r=arguments.length)<2?(n=e,e=0,1):r<3?1:+t;for(var i=-1,r=Math.max(0,Math.ceil((n-e)/t))|0,a=new Array(r);++i>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?gg(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?gg(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=vwe.exec(e))?new Sr(n[1],n[2],n[3],1):(n=gwe.exec(e))?new Sr(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=ywe.exec(e))?gg(n[1],n[2],n[3],n[4]):(n=bwe.exec(e))?gg(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=wwe.exec(e))?jP(n[1],n[2]/100,n[3]/100,1):(n=kwe.exec(e))?jP(n[1],n[2]/100,n[3]/100,n[4]):wP.hasOwnProperty(e)?xP(wP[e]):e==="transparent"?new Sr(NaN,NaN,NaN,0):null}function xP(e){return new Sr(e>>16&255,e>>8&255,e&255,1)}function gg(e,n,t,i){return i<=0&&(e=n=t=NaN),new Sr(e,n,t,i)}function Swe(e){return e instanceof Pp||(e=Rm(e)),e?(e=e.rgb(),new Sr(e.r,e.g,e.b,e.opacity)):new Sr}function W4(e,n,t,i){return arguments.length===1?Swe(e):new Sr(e,n,t,i??1)}function Sr(e,n,t,i){this.r=+e,this.g=+n,this.b=+t,this.opacity=+i}jj(Sr,W4,_V(Pp,{brighter(e){return e=e==null?M1:Math.pow(M1,e),new Sr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mm:Math.pow(Mm,e),new Sr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Sr(ju(this.r),ju(this.g),ju(this.b),D1(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:SP,formatHex:SP,formatHex8:Cwe,formatRgb:CP,toString:CP}));function SP(){return`#${ku(this.r)}${ku(this.g)}${ku(this.b)}`}function Cwe(){return`#${ku(this.r)}${ku(this.g)}${ku(this.b)}${ku((isNaN(this.opacity)?1:this.opacity)*255)}`}function CP(){const e=D1(this.opacity);return`${e===1?"rgb(":"rgba("}${ju(this.r)}, ${ju(this.g)}, ${ju(this.b)}${e===1?")":`, ${e})`}`}function D1(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ju(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ku(e){return e=ju(e),(e<16?"0":"")+e.toString(16)}function jP(e,n,t,i){return i<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new La(e,n,t,i)}function xV(e){if(e instanceof La)return new La(e.h,e.s,e.l,e.opacity);if(e instanceof Pp||(e=Rm(e)),!e)return new La;if(e instanceof La)return e;e=e.rgb();var n=e.r/255,t=e.g/255,i=e.b/255,r=Math.min(n,t,i),a=Math.max(n,t,i),o=NaN,l=a-r,u=(a+r)/2;return l?(n===a?o=(t-i)/l+(t0&&u<1?0:o,new La(o,l,u,e.opacity)}function jwe(e,n,t,i){return arguments.length===1?xV(e):new La(e,n,t,i??1)}function La(e,n,t,i){this.h=+e,this.s=+n,this.l=+t,this.opacity=+i}jj(La,jwe,_V(Pp,{brighter(e){return e=e==null?M1:Math.pow(M1,e),new La(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mm:Math.pow(Mm,e),new La(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*n,r=2*t-i;return new Sr(E3(e>=240?e-240:e+120,r,i),E3(e,r,i),E3(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new La(AP(this.h),yg(this.s),yg(this.l),D1(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(){const e=D1(this.opacity);return`${e===1?"hsl(":"hsla("}${AP(this.h)}, ${yg(this.s)*100}%, ${yg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AP(e){return e=(e||0)%360,e<0?e+360:e}function yg(e){return Math.max(0,Math.min(1,e||0))}function E3(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const Aj=e=>()=>e;function Awe(e,n){return function(t){return e+t*n}}function Owe(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(i){return Math.pow(e+i*n,t)}}function Twe(e){return(e=+e)==1?SV:function(n,t){return t-n?Owe(n,t,e):Aj(isNaN(n)?t:n)}}function SV(e,n){var t=n-e;return t?Awe(e,t):Aj(isNaN(e)?n:e)}const OP=(function e(n){var t=Twe(n);function i(r,a){var o=t((r=W4(r)).r,(a=W4(a)).r),l=t(r.g,a.g),u=t(r.b,a.b),f=SV(r.opacity,a.opacity);return function(h){return r.r=o(h),r.g=l(h),r.b=u(h),r.opacity=f(h),r+""}}return i.gamma=e,i})(1);function Ewe(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,i=n.slice(),r;return function(a){for(r=0;rt&&(a=n.slice(t,a),l[o]?l[o]+=a:l[++o]=a),(i=i[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,u.push({i:o,x:R1(i,r)})),t=M3.lastIndex;return tn&&(t=e,e=n,n=t),function(i){return Math.max(e,Math.min(n,i))}}function Fwe(e,n,t){var i=e[0],r=e[1],a=n[0],o=n[1];return r2?qwe:Fwe,u=f=null,d}function d(p){return p==null||isNaN(p=+p)?a:(u||(u=l(e.map(i),n,t)))(i(o(p)))}return d.invert=function(p){return o(r((f||(f=l(n,e.map(i),R1)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,P1),h()):e.slice()},d.range=function(p){return arguments.length?(n=Array.from(p),h()):n.slice()},d.rangeRound=function(p){return n=Array.from(p),t=Oj,h()},d.clamp=function(p){return arguments.length?(o=p?!0:sr,h()):o!==sr},d.interpolate=function(p){return arguments.length?(t=p,h()):t},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,g){return i=p,r=g,h()}}function Tj(){return Q0()(sr,sr)}function Hwe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function N1(e,n){if(!isFinite(e)||e===0)return null;var t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"),i=e.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+e.slice(t+1)]}function yf(e){return e=N1(Math.abs(e)),e?e[1]:NaN}function Uwe(e,n){return function(t,i){for(var r=t.length,a=[],o=0,l=e[0],u=0;r>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(t.substring(r-=l,r+l)),!((u+=l+1)>i));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}}function Vwe(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var Wwe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pm(e){if(!(n=Wwe.exec(e)))throw new Error("invalid format: "+e);var n;return new Ej({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Pm.prototype=Ej.prototype;function Ej(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+""}Ej.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 Gwe(e){e:for(var n=e.length,t=1,i=-1,r;t0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(r+1):e}var $1;function Ywe(e,n){var t=N1(e,n);if(!t)return $1=void 0,e.toPrecision(n);var i=t[0],r=t[1],a=r-($1=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+N1(e,Math.max(0,n+a-1))[0]}function EP(e,n){var t=N1(e,n);if(!t)return e+"";var i=t[0],r=t[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const MP={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Hwe,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>EP(e*100,n),r:EP,s:Ywe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function DP(e){return e}var RP=Array.prototype.map,PP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kwe(e){var n=e.grouping===void 0||e.thousands===void 0?DP:Uwe(RP.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",r=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?DP:Vwe(RP.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(d,p){d=Pm(d);var g=d.fill,b=d.align,w=d.sign,k=d.symbol,_=d.zero,S=d.width,j=d.comma,T=d.precision,A=d.trim,O=d.type;O==="n"?(j=!0,O="g"):MP[O]||(T===void 0&&(T=12),A=!0,O="g"),(_||g==="0"&&b==="=")&&(_=!0,g="0",b="=");var M=(p&&p.prefix!==void 0?p.prefix:"")+(k==="$"?t:k==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),$=(k==="$"?i:/[%p]/.test(O)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),q=MP[O],P=/[defgprs%]/.test(O);T=T===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function L(U){var G=M,B=$,R,D,z;if(O==="c")B=q(U)+B,U="";else{U=+U;var H=U<0||1/U<0;if(U=isNaN(U)?u:q(Math.abs(U),T),A&&(U=Gwe(U)),H&&+U==0&&w!=="+"&&(H=!1),G=(H?w==="("?w:l:w==="-"||w==="("?"":w)+G,B=(O==="s"&&!isNaN(U)&&$1!==void 0?PP[8+$1/3]:"")+B+(H&&w==="("?")":""),P){for(R=-1,D=U.length;++Rz||z>57){B=(z===46?r+U.slice(R+1):U.slice(R))+B,U=U.slice(0,R);break}}}j&&!_&&(U=n(U,1/0));var Y=G.length+U.length+B.length,N=Y>1)+G+U+B+N.slice(Y);break;default:U=N+G+U+B;break}return a(U)}return L.toString=function(){return d+""},L}function h(d,p){var g=Math.max(-8,Math.min(8,Math.floor(yf(p)/3)))*3,b=Math.pow(10,-g),w=f((d=Pm(d),d.type="f",d),{suffix:PP[8+g/3]});return function(k){return w(b*k)}}return{format:f,formatPrefix:h}}var bg,Mj,CV;Xwe({thousands:",",grouping:[3],currency:["$",""]});function Xwe(e){return bg=Kwe(e),Mj=bg.format,CV=bg.formatPrefix,bg}function Zwe(e){return Math.max(0,-yf(Math.abs(e)))}function Qwe(e,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yf(n)/3)))*3-yf(Math.abs(e)))}function Jwe(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,yf(n)-yf(e))+1}function jV(e,n,t,i){var r=U4(e,n,t),a;switch(i=Pm(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(n));return i.precision==null&&!isNaN(a=Qwe(r,o))&&(i.precision=a),CV(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=Jwe(r,Math.max(Math.abs(e),Math.abs(n))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=Zwe(r))&&(i.precision=a-(i.type==="%")*2);break}}return Mj(i)}function $l(e){var n=e.domain;return e.ticks=function(t){var i=n();return q4(i[0],i[i.length-1],t??10)},e.tickFormat=function(t,i){var r=n();return jV(r[0],r[r.length-1],t??10,i)},e.nice=function(t){t==null&&(t=10);var i=n(),r=0,a=i.length-1,o=i[r],l=i[a],u,f,h=10;for(l0;){if(f=H4(o,l,t),f===u)return i[r]=o,i[a]=l,n(i);if(f>0)o=Math.floor(o/f)*f,l=Math.ceil(l/f)*f;else if(f<0)o=Math.ceil(o*f)/f,l=Math.floor(l*f)/f;else break;u=f}return e},e}function z1(){var e=Tj();return e.copy=function(){return Np(e,z1())},Oa.apply(e,arguments),$l(e)}function AV(e){var n;function t(i){return i==null||isNaN(i=+i)?n:i}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(e=Array.from(i,P1),t):e.slice()},t.unknown=function(i){return arguments.length?(n=i,t):n},t.copy=function(){return AV(e).unknown(n)},e=arguments.length?Array.from(e,P1):[0,1],$l(t)}function OV(e,n){e=e.slice();var t=0,i=e.length-1,r=e[t],a=e[i],o;return aMath.pow(e,n)}function rke(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),n=>Math.log(n)/e)}function zP(e){return(n,t)=>-e(-n,t)}function Dj(e){const n=e(NP,$P),t=n.domain;let i=10,r,a;function o(){return r=rke(i),a=ike(i),t()[0]<0?(r=zP(r),a=zP(a),e(eke,nke)):e(NP,$P),n}return n.base=function(l){return arguments.length?(i=+l,o()):i},n.domain=function(l){return arguments.length?(t(l),o()):t()},n.ticks=l=>{const u=t();let f=u[0],h=u[u.length-1];const d=h0){for(;p<=g;++p)for(b=1;bh)break;_.push(w)}}else for(;p<=g;++p)for(b=i-1;b>=1;--b)if(w=p>0?b/a(-p):b*a(p),!(wh)break;_.push(w)}_.length*2{if(l==null&&(l=10),u==null&&(u=i===10?"s":","),typeof u!="function"&&(!(i%1)&&(u=Pm(u)).precision==null&&(u.trim=!0),u=Mj(u)),l===1/0)return u;const f=Math.max(1,i*l/n.ticks().length);return h=>{let d=h/a(Math.round(r(h)));return d*it(OV(t(),{floor:l=>a(Math.floor(r(l))),ceil:l=>a(Math.ceil(r(l)))})),n}function TV(){const e=Dj(Q0()).domain([1,10]);return e.copy=()=>Np(e,TV()).base(e.base()),Oa.apply(e,arguments),e}function LP(e){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/e))}}function IP(e){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*e}}function Rj(e){var n=1,t=e(LP(n),IP(n));return t.constant=function(i){return arguments.length?e(LP(n=+i),IP(n)):n},$l(t)}function EV(){var e=Rj(Q0());return e.copy=function(){return Np(e,EV()).constant(e.constant())},Oa.apply(e,arguments)}function BP(e){return function(n){return n<0?-Math.pow(-n,e):Math.pow(n,e)}}function ake(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function oke(e){return e<0?-e*e:e*e}function Pj(e){var n=e(sr,sr),t=1;function i(){return t===1?e(sr,sr):t===.5?e(ake,oke):e(BP(t),BP(1/t))}return n.exponent=function(r){return arguments.length?(t=+r,i()):t},$l(n)}function Nj(){var e=Pj(Q0());return e.copy=function(){return Np(e,Nj()).exponent(e.exponent())},Oa.apply(e,arguments),e}function ske(){return Nj.apply(null,arguments).exponent(.5)}function FP(e){return Math.sign(e)*e*e}function lke(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function MV(){var e=Tj(),n=[0,1],t=!1,i;function r(a){var o=lke(e(a));return isNaN(o)?i:t?Math.round(o):o}return r.invert=function(a){return e.invert(FP(a))},r.domain=function(a){return arguments.length?(e.domain(a),r):e.domain()},r.range=function(a){return arguments.length?(e.range((n=Array.from(a,P1)).map(FP)),r):n.slice()},r.rangeRound=function(a){return r.range(a).round(!0)},r.round=function(a){return arguments.length?(t=!!a,r):t},r.clamp=function(a){return arguments.length?(e.clamp(a),r):e.clamp()},r.unknown=function(a){return arguments.length?(i=a,r):i},r.copy=function(){return MV(e.domain(),n).round(t).clamp(e.clamp()).unknown(i)},Oa.apply(r,arguments),$l(r)}function DV(){var e=[],n=[],t=[],i;function r(){var o=0,l=Math.max(1,n.length);for(t=new Array(l-1);++o0?t[l-1]:e[0],l=t?[i[t-1],n]:[i[f-1],i[f]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return i.slice()},o.copy=function(){return RV().domain([e,n]).range(r).unknown(a)},Oa.apply($l(o),arguments)}function PV(){var e=[.5],n=[0,1],t,i=1;function r(a){return a!=null&&a<=a?n[Rp(e,a,0,i)]:t}return r.domain=function(a){return arguments.length?(e=Array.from(a),i=Math.min(e.length,n.length-1),r):e.slice()},r.range=function(a){return arguments.length?(n=Array.from(a),i=Math.min(e.length,n.length-1),r):n.slice()},r.invertExtent=function(a){var o=n.indexOf(a);return[e[o-1],e[o]]},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return PV().domain(e).range(n).unknown(t)},Oa.apply(r,arguments)}const D3=new Date,R3=new Date;function Oi(e,n,t,i){function r(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return r.floor=a=>(e(a=new Date(+a)),a),r.ceil=a=>(e(a=new Date(a-1)),n(a,1),e(a),a),r.round=a=>{const o=r(a),l=r.ceil(a);return a-o(n(a=new Date(+a),o==null?1:Math.floor(o)),a),r.range=(a,o,l)=>{const u=[];if(a=r.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let f;do u.push(f=new Date(+a)),n(a,l),e(a);while(fOi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;n(o,-1),!a(o););else for(;--l>=0;)for(;n(o,1),!a(o););}),t&&(r.count=(a,o)=>(D3.setTime(+a),R3.setTime(+o),e(D3),e(R3),Math.floor(t(D3,R3))),r.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?r.filter(i?o=>i(o)%a===0:o=>r.count(0,o)%a===0):r)),r}const L1=Oi(()=>{},(e,n)=>{e.setTime(+e+n)},(e,n)=>n-e);L1.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oi(n=>{n.setTime(Math.floor(n/e)*e)},(n,t)=>{n.setTime(+n+t*e)},(n,t)=>(t-n)/e):L1);L1.range;const Xo=1e3,ya=Xo*60,Zo=ya*60,fs=Zo*24,$j=fs*7,qP=fs*30,P3=fs*365,_u=Oi(e=>{e.setTime(e-e.getMilliseconds())},(e,n)=>{e.setTime(+e+n*Xo)},(e,n)=>(n-e)/Xo,e=>e.getUTCSeconds());_u.range;const zj=Oi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xo)},(e,n)=>{e.setTime(+e+n*ya)},(e,n)=>(n-e)/ya,e=>e.getMinutes());zj.range;const Lj=Oi(e=>{e.setUTCSeconds(0,0)},(e,n)=>{e.setTime(+e+n*ya)},(e,n)=>(n-e)/ya,e=>e.getUTCMinutes());Lj.range;const Ij=Oi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xo-e.getMinutes()*ya)},(e,n)=>{e.setTime(+e+n*Zo)},(e,n)=>(n-e)/Zo,e=>e.getHours());Ij.range;const Bj=Oi(e=>{e.setUTCMinutes(0,0,0)},(e,n)=>{e.setTime(+e+n*Zo)},(e,n)=>(n-e)/Zo,e=>e.getUTCHours());Bj.range;const $p=Oi(e=>e.setHours(0,0,0,0),(e,n)=>e.setDate(e.getDate()+n),(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ya)/fs,e=>e.getDate()-1);$p.range;const J0=Oi(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/fs,e=>e.getUTCDate()-1);J0.range;const NV=Oi(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/fs,e=>Math.floor(e/fs));NV.range;function Xu(e){return Oi(n=>{n.setDate(n.getDate()-(n.getDay()+7-e)%7),n.setHours(0,0,0,0)},(n,t)=>{n.setDate(n.getDate()+t*7)},(n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*ya)/$j)}const eb=Xu(0),I1=Xu(1),uke=Xu(2),cke=Xu(3),bf=Xu(4),fke=Xu(5),dke=Xu(6);eb.range;I1.range;uke.range;cke.range;bf.range;fke.range;dke.range;function Zu(e){return Oi(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-e)%7),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t*7)},(n,t)=>(t-n)/$j)}const nb=Zu(0),B1=Zu(1),hke=Zu(2),mke=Zu(3),wf=Zu(4),pke=Zu(5),vke=Zu(6);nb.range;B1.range;hke.range;mke.range;wf.range;pke.range;vke.range;const Fj=Oi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,n)=>{e.setMonth(e.getMonth()+n)},(e,n)=>n.getMonth()-e.getMonth()+(n.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Fj.range;const qj=Oi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCMonth(e.getUTCMonth()+n)},(e,n)=>n.getUTCMonth()-e.getUTCMonth()+(n.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());qj.range;const ds=Oi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n)},(e,n)=>n.getFullYear()-e.getFullYear(),e=>e.getFullYear());ds.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oi(n=>{n.setFullYear(Math.floor(n.getFullYear()/e)*e),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,t)=>{n.setFullYear(n.getFullYear()+t*e)});ds.range;const hs=Oi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n)},(e,n)=>n.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());hs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oi(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/e)*e),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCFullYear(n.getUTCFullYear()+t*e)});hs.range;function $V(e,n,t,i,r,a){const o=[[_u,1,Xo],[_u,5,5*Xo],[_u,15,15*Xo],[_u,30,30*Xo],[a,1,ya],[a,5,5*ya],[a,15,15*ya],[a,30,30*ya],[r,1,Zo],[r,3,3*Zo],[r,6,6*Zo],[r,12,12*Zo],[i,1,fs],[i,2,2*fs],[t,1,$j],[n,1,qP],[n,3,3*qP],[e,1,P3]];function l(f,h,d){const p=hk).right(o,p);if(g===o.length)return e.every(U4(f/P3,h/P3,d));if(g===0)return L1.every(Math.max(U4(f,h,d),1));const[b,w]=o[p/o[g-1][2]53)return null;"w"in te||(te.w=1),"Z"in te?(xe=$3(Oh(te.y,0,1)),Ae=xe.getUTCDay(),xe=Ae>4||Ae===0?B1.ceil(xe):B1(xe),xe=J0.offset(xe,(te.V-1)*7),te.y=xe.getUTCFullYear(),te.m=xe.getUTCMonth(),te.d=xe.getUTCDate()+(te.w+6)%7):(xe=N3(Oh(te.y,0,1)),Ae=xe.getDay(),xe=Ae>4||Ae===0?I1.ceil(xe):I1(xe),xe=$p.offset(xe,(te.V-1)*7),te.y=xe.getFullYear(),te.m=xe.getMonth(),te.d=xe.getDate()+(te.w+6)%7)}else("W"in te||"U"in te)&&("w"in te||(te.w="u"in te?te.u%7:"W"in te?1:0),Ae="Z"in te?$3(Oh(te.y,0,1)).getUTCDay():N3(Oh(te.y,0,1)).getDay(),te.m=0,te.d="W"in te?(te.w+6)%7+te.W*7-(Ae+5)%7:te.w+te.U*7-(Ae+6)%7);return"Z"in te?(te.H+=te.Z/100|0,te.M+=te.Z%100,$3(te)):N3(te)}}function $(ee,se,ke,te){for(var $e=0,xe=se.length,Ae=ke.length,ze,we;$e=Ae)return-1;if(ze=se.charCodeAt($e++),ze===37){if(ze=se.charAt($e++),we=A[ze in HP?se.charAt($e++):ze],!we||(te=we(ee,ke,te))<0)return-1}else if(ze!=ke.charCodeAt(te++))return-1}return te}function q(ee,se,ke){var te=f.exec(se.slice(ke));return te?(ee.p=h.get(te[0].toLowerCase()),ke+te[0].length):-1}function P(ee,se,ke){var te=g.exec(se.slice(ke));return te?(ee.w=b.get(te[0].toLowerCase()),ke+te[0].length):-1}function L(ee,se,ke){var te=d.exec(se.slice(ke));return te?(ee.w=p.get(te[0].toLowerCase()),ke+te[0].length):-1}function U(ee,se,ke){var te=_.exec(se.slice(ke));return te?(ee.m=S.get(te[0].toLowerCase()),ke+te[0].length):-1}function G(ee,se,ke){var te=w.exec(se.slice(ke));return te?(ee.m=k.get(te[0].toLowerCase()),ke+te[0].length):-1}function B(ee,se,ke){return $(ee,n,se,ke)}function R(ee,se,ke){return $(ee,t,se,ke)}function D(ee,se,ke){return $(ee,i,se,ke)}function z(ee){return o[ee.getDay()]}function H(ee){return a[ee.getDay()]}function Y(ee){return u[ee.getMonth()]}function N(ee){return l[ee.getMonth()]}function W(ee){return r[+(ee.getHours()>=12)]}function V(ee){return 1+~~(ee.getMonth()/3)}function I(ee){return o[ee.getUTCDay()]}function Q(ee){return a[ee.getUTCDay()]}function ie(ee){return u[ee.getUTCMonth()]}function re(ee){return l[ee.getUTCMonth()]}function Z(ee){return r[+(ee.getUTCHours()>=12)]}function le(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var se=O(ee+="",j);return se.toString=function(){return ee},se},parse:function(ee){var se=M(ee+="",!1);return se.toString=function(){return ee},se},utcFormat:function(ee){var se=O(ee+="",T);return se.toString=function(){return ee},se},utcParse:function(ee){var se=M(ee+="",!0);return se.toString=function(){return ee},se}}}var HP={"-":"",_:" ",0:"0"},$i=/^\s*\d+/,_ke=/^%/,xke=/[\\^$*+?|[\]().{}]/g;function gt(e,n,t){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a[n.toLowerCase(),t]))}function Cke(e,n,t){var i=$i.exec(n.slice(t,t+1));return i?(e.w=+i[0],t+i[0].length):-1}function jke(e,n,t){var i=$i.exec(n.slice(t,t+1));return i?(e.u=+i[0],t+i[0].length):-1}function Ake(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.U=+i[0],t+i[0].length):-1}function Oke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.V=+i[0],t+i[0].length):-1}function Tke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.W=+i[0],t+i[0].length):-1}function UP(e,n,t){var i=$i.exec(n.slice(t,t+4));return i?(e.y=+i[0],t+i[0].length):-1}function VP(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function Eke(e,n,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(t,t+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function Mke(e,n,t){var i=$i.exec(n.slice(t,t+1));return i?(e.q=i[0]*3-3,t+i[0].length):-1}function Dke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.m=i[0]-1,t+i[0].length):-1}function WP(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.d=+i[0],t+i[0].length):-1}function Rke(e,n,t){var i=$i.exec(n.slice(t,t+3));return i?(e.m=0,e.d=+i[0],t+i[0].length):-1}function GP(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.H=+i[0],t+i[0].length):-1}function Pke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.M=+i[0],t+i[0].length):-1}function Nke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.S=+i[0],t+i[0].length):-1}function $ke(e,n,t){var i=$i.exec(n.slice(t,t+3));return i?(e.L=+i[0],t+i[0].length):-1}function zke(e,n,t){var i=$i.exec(n.slice(t,t+6));return i?(e.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function Lke(e,n,t){var i=_ke.exec(n.slice(t,t+1));return i?t+i[0].length:-1}function Ike(e,n,t){var i=$i.exec(n.slice(t));return i?(e.Q=+i[0],t+i[0].length):-1}function Bke(e,n,t){var i=$i.exec(n.slice(t));return i?(e.s=+i[0],t+i[0].length):-1}function YP(e,n){return gt(e.getDate(),n,2)}function Fke(e,n){return gt(e.getHours(),n,2)}function qke(e,n){return gt(e.getHours()%12||12,n,2)}function Hke(e,n){return gt(1+$p.count(ds(e),e),n,3)}function zV(e,n){return gt(e.getMilliseconds(),n,3)}function Uke(e,n){return zV(e,n)+"000"}function Vke(e,n){return gt(e.getMonth()+1,n,2)}function Wke(e,n){return gt(e.getMinutes(),n,2)}function Gke(e,n){return gt(e.getSeconds(),n,2)}function Yke(e){var n=e.getDay();return n===0?7:n}function Kke(e,n){return gt(eb.count(ds(e)-1,e),n,2)}function LV(e){var n=e.getDay();return n>=4||n===0?bf(e):bf.ceil(e)}function Xke(e,n){return e=LV(e),gt(bf.count(ds(e),e)+(ds(e).getDay()===4),n,2)}function Zke(e){return e.getDay()}function Qke(e,n){return gt(I1.count(ds(e)-1,e),n,2)}function Jke(e,n){return gt(e.getFullYear()%100,n,2)}function e_e(e,n){return e=LV(e),gt(e.getFullYear()%100,n,2)}function n_e(e,n){return gt(e.getFullYear()%1e4,n,4)}function t_e(e,n){var t=e.getDay();return e=t>=4||t===0?bf(e):bf.ceil(e),gt(e.getFullYear()%1e4,n,4)}function i_e(e){var n=e.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+gt(n/60|0,"0",2)+gt(n%60,"0",2)}function KP(e,n){return gt(e.getUTCDate(),n,2)}function r_e(e,n){return gt(e.getUTCHours(),n,2)}function a_e(e,n){return gt(e.getUTCHours()%12||12,n,2)}function o_e(e,n){return gt(1+J0.count(hs(e),e),n,3)}function IV(e,n){return gt(e.getUTCMilliseconds(),n,3)}function s_e(e,n){return IV(e,n)+"000"}function l_e(e,n){return gt(e.getUTCMonth()+1,n,2)}function u_e(e,n){return gt(e.getUTCMinutes(),n,2)}function c_e(e,n){return gt(e.getUTCSeconds(),n,2)}function f_e(e){var n=e.getUTCDay();return n===0?7:n}function d_e(e,n){return gt(nb.count(hs(e)-1,e),n,2)}function BV(e){var n=e.getUTCDay();return n>=4||n===0?wf(e):wf.ceil(e)}function h_e(e,n){return e=BV(e),gt(wf.count(hs(e),e)+(hs(e).getUTCDay()===4),n,2)}function m_e(e){return e.getUTCDay()}function p_e(e,n){return gt(B1.count(hs(e)-1,e),n,2)}function v_e(e,n){return gt(e.getUTCFullYear()%100,n,2)}function g_e(e,n){return e=BV(e),gt(e.getUTCFullYear()%100,n,2)}function y_e(e,n){return gt(e.getUTCFullYear()%1e4,n,4)}function b_e(e,n){var t=e.getUTCDay();return e=t>=4||t===0?wf(e):wf.ceil(e),gt(e.getUTCFullYear()%1e4,n,4)}function w_e(){return"+0000"}function XP(){return"%"}function ZP(e){return+e}function QP(e){return Math.floor(+e/1e3)}var Ic,FV,qV;k_e({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 k_e(e){return Ic=kke(e),FV=Ic.format,Ic.parse,qV=Ic.utcFormat,Ic.utcParse,Ic}function __e(e){return new Date(e)}function x_e(e){return e instanceof Date?+e:+new Date(+e)}function Hj(e,n,t,i,r,a,o,l,u,f){var h=Tj(),d=h.invert,p=h.domain,g=f(".%L"),b=f(":%S"),w=f("%I:%M"),k=f("%I %p"),_=f("%a %d"),S=f("%b %d"),j=f("%B"),T=f("%Y");function A(O){return(u(O)n(r/(e.length-1)))},t.quantiles=function(i){return Array.from({length:i+1},(r,a)=>dwe(e,a/i))},t.copy=function(){return WV(n).domain(e)},Ss.apply(t,arguments)}function ib(){var e=0,n=.5,t=1,i=1,r,a,o,l,u,f=sr,h,d=!1,p;function g(w){return isNaN(w=+w)?p:(w=.5+((w=+h(w))-a)*(i*wt}return L3=e,L3}var I3,tN;function T_e(){if(tN)return I3;tN=1;var e=XV(),n=O_e(),t=fd();function i(r){return r&&r.length?e(r,t,n):void 0}return I3=i,I3}var E_e=T_e();const cl=yt(E_e);var B3,iN;function M_e(){if(iN)return B3;iN=1;function e(n,t){return ne.e^a.s<0?1:-1;for(i=a.d.length,r=e.d.length,n=0,t=ie.d[n]^a.s<0?1:-1;return i===r?0:i>r^a.s<0?1:-1};un.decimalPlaces=un.dp=function(){var e=this,n=e.d.length-1,t=(n-e.e)*Wt;if(n=e.d[n],n)for(;n%10==0;n/=10)t--;return t<0?0:t};un.dividedBy=un.div=function(e){return as(this,new this.constructor(e))};un.dividedToIntegerBy=un.idiv=function(e){var n=this,t=n.constructor;return Nt(as(n,new t(e),0,1),t.precision)};un.equals=un.eq=function(e){return!this.cmp(e)};un.exponent=function(){return wi(this)};un.greaterThan=un.gt=function(e){return this.cmp(e)>0};un.greaterThanOrEqualTo=un.gte=function(e){return this.cmp(e)>=0};un.isInteger=un.isint=function(){return this.e>this.d.length-2};un.isNegative=un.isneg=function(){return this.s<0};un.isPositive=un.ispos=function(){return this.s>0};un.isZero=function(){return this.s===0};un.lessThan=un.lt=function(e){return this.cmp(e)<0};un.lessThanOrEqualTo=un.lte=function(e){return this.cmp(e)<1};un.logarithm=un.log=function(e){var n,t=this,i=t.constructor,r=i.precision,a=r+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(Vr))throw Error(_a+"NaN");if(t.s<1)throw Error(_a+(t.s?"NaN":"-Infinity"));return t.eq(Vr)?new i(0):(Jt=!1,n=as(Nm(t,a),Nm(e,a),a),Jt=!0,Nt(n,r))};un.minus=un.sub=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?eW(n,e):QV(n,(e.s=-e.s,e))};un.modulo=un.mod=function(e){var n,t=this,i=t.constructor,r=i.precision;if(e=new i(e),!e.s)throw Error(_a+"NaN");return t.s?(Jt=!1,n=as(t,e,0,1).times(e),Jt=!0,t.minus(n)):Nt(new i(t),r)};un.naturalExponential=un.exp=function(){return JV(this)};un.naturalLogarithm=un.ln=function(){return Nm(this)};un.negated=un.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};un.plus=un.add=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?QV(n,e):eW(n,(e.s=-e.s,e))};un.precision=un.sd=function(e){var n,t,i,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Au+e);if(n=wi(r)+1,i=r.d.length-1,t=i*Wt+1,i=r.d[i],i){for(;i%10==0;i/=10)t--;for(i=r.d[0];i>=10;i/=10)t++}return e&&n>t?n:t};un.squareRoot=un.sqrt=function(){var e,n,t,i,r,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(_a+"NaN")}for(e=wi(l),Jt=!1,r=Math.sqrt(+l),r==0||r==1/0?(n=io(l.d),(n.length+e)%2==0&&(n+="0"),r=Math.sqrt(n),e=md((e+1)/2)-(e<0||e%2),r==1/0?n="5e"+e:(n=r.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),i=new u(n)):i=new u(r.toString()),t=u.precision,r=o=t+3;;)if(a=i,i=a.plus(as(l,a,o+2)).times(.5),io(a.d).slice(0,o)===(n=io(i.d)).slice(0,o)){if(n=n.slice(o-3,o+1),r==o&&n=="4999"){if(Nt(a,t+1,0),a.times(a).eq(l)){i=a;break}}else if(n!="9999")break;o+=4}return Jt=!0,Nt(i,t)};un.times=un.mul=function(e){var n,t,i,r,a,o,l,u,f,h=this,d=h.constructor,p=h.d,g=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,t=h.e+e.e,u=p.length,f=g.length,u=0;){for(n=0,r=u+i;r>i;)l=a[r]+g[i]*p[r-i-1]+n,a[r--]=l%Di|0,n=l/Di|0;a[r]=(a[r]+n)%Di|0}for(;!a[--o];)a.pop();return n?++t:a.shift(),e.d=a,e.e=t,Jt?Nt(e,d.precision):e};un.toDecimalPlaces=un.todp=function(e,n){var t=this,i=t.constructor;return t=new i(t),e===void 0?t:(go(e,0,hd),n===void 0?n=i.rounding:go(n,0,8),Nt(t,e+wi(t)+1,n))};un.toExponential=function(e,n){var t,i=this,r=i.constructor;return e===void 0?t=zu(i,!0):(go(e,0,hd),n===void 0?n=r.rounding:go(n,0,8),i=Nt(new r(i),e+1,n),t=zu(i,!0,e+1)),t};un.toFixed=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?zu(r):(go(e,0,hd),n===void 0?n=a.rounding:go(n,0,8),i=Nt(new a(r),e+wi(r)+1,n),t=zu(i.abs(),!1,e+wi(i)+1),r.isneg()&&!r.isZero()?"-"+t:t)};un.toInteger=un.toint=function(){var e=this,n=e.constructor;return Nt(new n(e),wi(e)+1,n.rounding)};un.toNumber=function(){return+this};un.toPower=un.pow=function(e){var n,t,i,r,a,o,l=this,u=l.constructor,f=12,h=+(e=new u(e));if(!e.s)return new u(Vr);if(l=new u(l),!l.s){if(e.s<1)throw Error(_a+"Infinity");return l}if(l.eq(Vr))return l;if(i=u.precision,e.eq(Vr))return Nt(l,i);if(n=e.e,t=e.d.length-1,o=n>=t,a=l.s,o){if((t=h<0?-h:h)<=ZV){for(r=new u(Vr),n=Math.ceil(i/Wt+4),Jt=!1;t%2&&(r=r.times(l),uN(r.d,n)),t=md(t/2),t!==0;)l=l.times(l),uN(l.d,n);return Jt=!0,e.s<0?new u(Vr).div(r):Nt(r,i)}}else if(a<0)throw Error(_a+"NaN");return a=a<0&&e.d[Math.max(n,t)]&1?-1:1,l.s=1,Jt=!1,r=e.times(Nm(l,i+f)),Jt=!0,r=JV(r),r.s=a,r};un.toPrecision=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?(t=wi(r),i=zu(r,t<=a.toExpNeg||t>=a.toExpPos)):(go(e,1,hd),n===void 0?n=a.rounding:go(n,0,8),r=Nt(new a(r),e,n),t=wi(r),i=zu(r,e<=t||t<=a.toExpNeg,e)),i};un.toSignificantDigits=un.tosd=function(e,n){var t=this,i=t.constructor;return e===void 0?(e=i.precision,n=i.rounding):(go(e,1,hd),n===void 0?n=i.rounding:go(n,0,8)),Nt(new i(t),e,n)};un.toString=un.valueOf=un.val=un.toJSON=un[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,n=wi(e),t=e.constructor;return zu(e,n<=t.toExpNeg||n>=t.toExpPos)};function QV(e,n){var t,i,r,a,o,l,u,f,h=e.constructor,d=h.precision;if(!e.s||!n.s)return n.s||(n=new h(e)),Jt?Nt(n,d):n;if(u=e.d,f=n.d,o=e.e,r=n.e,u=u.slice(),a=o-r,a){for(a<0?(i=u,a=-a,l=f.length):(i=f,r=o,l=u.length),o=Math.ceil(d/Wt),l=o>l?o+1:l+1,a>l&&(a=l,i.length=1),i.reverse();a--;)i.push(0);i.reverse()}for(l=u.length,a=f.length,l-a<0&&(a=l,i=f,f=u,u=i),t=0;a;)t=(u[--a]=u[a]+f[a]+t)/Di|0,u[a]%=Di;for(t&&(u.unshift(t),++r),l=u.length;u[--l]==0;)u.pop();return n.d=u,n.e=r,Jt?Nt(n,d):n}function go(e,n,t){if(e!==~~e||et)throw Error(Au+e)}function io(e){var n,t,i,r=e.length-1,a="",o=e[0];if(r>0){for(a+=o,n=1;no?1:-1;else for(l=u=0;lr[l]?1:-1;break}return u}function t(i,r,a){for(var o=0;a--;)i[a]-=o,o=i[a]1;)i.shift()}return function(i,r,a,o){var l,u,f,h,d,p,g,b,w,k,_,S,j,T,A,O,M,$,q=i.constructor,P=i.s==r.s?1:-1,L=i.d,U=r.d;if(!i.s)return new q(i);if(!r.s)throw Error(_a+"Division by zero");for(u=i.e-r.e,M=U.length,A=L.length,g=new q(P),b=g.d=[],f=0;U[f]==(L[f]||0);)++f;if(U[f]>(L[f]||0)&&--u,a==null?S=a=q.precision:o?S=a+(wi(i)-wi(r))+1:S=a,S<0)return new q(0);if(S=S/Wt+2|0,f=0,M==1)for(h=0,U=U[0],S++;(f1&&(U=e(U,h),L=e(L,h),M=U.length,A=L.length),T=M,w=L.slice(0,M),k=w.length;k=Di/2&&++O;do h=0,l=n(U,w,M,k),l<0?(_=w[0],M!=k&&(_=_*Di+(w[1]||0)),h=_/O|0,h>1?(h>=Di&&(h=Di-1),d=e(U,h),p=d.length,k=w.length,l=n(d,w,p,k),l==1&&(h--,t(d,M16)throw Error(Wj+wi(e));if(!e.s)return new h(Vr);for(Jt=!1,l=d,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),f+=5;for(i=Math.log(pu(2,f))/Math.LN10*2+5|0,l+=i,t=r=a=new h(Vr),h.precision=l;;){if(r=Nt(r.times(e),l),t=t.times(++u),o=a.plus(as(r,t,l)),io(o.d).slice(0,l)===io(a.d).slice(0,l)){for(;f--;)a=Nt(a.times(a),l);return h.precision=d,n==null?(Jt=!0,Nt(a,d)):a}a=o}}function wi(e){for(var n=e.e*Wt,t=e.d[0];t>=10;t/=10)n++;return n}function V3(e,n,t){if(n>e.LN10.sd())throw Jt=!0,t&&(e.precision=t),Error(_a+"LN10 precision limit exceeded");return Nt(new e(e.LN10),n)}function rl(e){for(var n="";e--;)n+="0";return n}function Nm(e,n){var t,i,r,a,o,l,u,f,h,d=1,p=10,g=e,b=g.d,w=g.constructor,k=w.precision;if(g.s<1)throw Error(_a+(g.s?"NaN":"-Infinity"));if(g.eq(Vr))return new w(0);if(n==null?(Jt=!1,f=k):f=n,g.eq(10))return n==null&&(Jt=!0),V3(w,f);if(f+=p,w.precision=f,t=io(b),i=t.charAt(0),a=wi(g),Math.abs(a)<15e14){for(;i<7&&i!=1||i==1&&t.charAt(1)>3;)g=g.times(e),t=io(g.d),i=t.charAt(0),d++;a=wi(g),i>1?(g=new w("0."+t),a++):g=new w(i+"."+t.slice(1))}else return u=V3(w,f+2,k).times(a+""),g=Nm(new w(i+"."+t.slice(1)),f-p).plus(u),w.precision=k,n==null?(Jt=!0,Nt(g,k)):g;for(l=o=g=as(g.minus(Vr),g.plus(Vr),f),h=Nt(g.times(g),f),r=3;;){if(o=Nt(o.times(h),f),u=l.plus(as(o,new w(r),f)),io(u.d).slice(0,f)===io(l.d).slice(0,f))return l=l.times(2),a!==0&&(l=l.plus(V3(w,f+2,k).times(a+""))),l=as(l,new w(d),f),w.precision=k,n==null?(Jt=!0,Nt(l,k)):l;l=u,r+=2}}function lN(e,n){var t,i,r;for((t=n.indexOf("."))>-1&&(n=n.replace(".","")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charCodeAt(i)===48;)++i;for(r=n.length;n.charCodeAt(r-1)===48;)--r;if(n=n.slice(i,r),n){if(r-=i,t=t-i-1,e.e=md(t/Wt),e.d=[],i=(t+1)%Wt,t<0&&(i+=Wt),iF1||e.e<-F1))throw Error(Wj+t)}else e.s=0,e.e=0,e.d=[0];return e}function Nt(e,n,t){var i,r,a,o,l,u,f,h,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(i=n-o,i<0)i+=Wt,r=n,f=d[h=0];else{if(h=Math.ceil((i+1)/Wt),a=d.length,h>=a)return e;for(f=a=d[h],o=1;a>=10;a/=10)o++;i%=Wt,r=i-Wt+o}if(t!==void 0&&(a=pu(10,o-r-1),l=f/a%10|0,u=n<0||d[h+1]!==void 0||f%a,u=t<4?(l||u)&&(t==0||t==(e.s<0?3:2)):l>5||l==5&&(t==4||u||t==6&&(i>0?r>0?f/pu(10,o-r):0:d[h-1])%10&1||t==(e.s<0?8:7))),n<1||!d[0])return u?(a=wi(e),d.length=1,n=n-a-1,d[0]=pu(10,(Wt-n%Wt)%Wt),e.e=md(-n/Wt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(i==0?(d.length=h,a=1,h--):(d.length=h+1,a=pu(10,Wt-i),d[h]=r>0?(f/pu(10,o-r)%pu(10,r)|0)*a:0),u)for(;;)if(h==0){(d[0]+=a)==Di&&(d[0]=1,++e.e);break}else{if(d[h]+=a,d[h]!=Di)break;d[h--]=0,a=1}for(i=d.length;d[--i]===0;)d.pop();if(Jt&&(e.e>F1||e.e<-F1))throw Error(Wj+wi(e));return e}function eW(e,n){var t,i,r,a,o,l,u,f,h,d,p=e.constructor,g=p.precision;if(!e.s||!n.s)return n.s?n.s=-n.s:n=new p(e),Jt?Nt(n,g):n;if(u=e.d,d=n.d,i=n.e,f=e.e,u=u.slice(),o=f-i,o){for(h=o<0,h?(t=u,o=-o,l=d.length):(t=d,i=f,l=u.length),r=Math.max(Math.ceil(g/Wt),l)+2,o>r&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for(r=u.length,l=d.length,h=r0;--r)u[l++]=0;for(r=d.length;r>o;){if(u[--r]0?a=a.charAt(0)+"."+a.slice(1)+rl(i):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(r<0?"e":"e+")+r):r<0?(a="0."+rl(-r-1)+a,t&&(i=t-o)>0&&(a+=rl(i))):r>=o?(a+=rl(r+1-o),t&&(i=t-r-1)>0&&(a=a+"."+rl(i))):((i=r+1)0&&(r+1===o&&(a+="."),a+=rl(i))),e.s<0?"-"+a:a}function uN(e,n){if(e.length>n)return e.length=n,!0}function nW(e){var n,t,i;function r(a){var o=this;if(!(o instanceof r))return new r(a);if(o.constructor=r,a instanceof r){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Au+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return lN(o,a.toString())}else if(typeof a!="string")throw Error(Au+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,F_e.test(a))lN(o,a);else throw Error(Au+a)}if(r.prototype=un,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.clone=nW,r.config=r.set=q_e,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=r[n+1]&&i<=r[n+2])this[t]=i;else throw Error(Au+t+": "+i);if((i=e[t="LN10"])!==void 0)if(i==Math.LN10)this[t]=new this(i);else throw Error(Au+t+": "+i);return this}var Gj=nW(B_e);Vr=new Gj(1);const Ot=Gj;function H_e(e){return G_e(e)||W_e(e)||V_e(e)||U_e()}function U_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V_e(e,n){if(e){if(typeof e=="string")return K4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K4(e,n)}}function W_e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function G_e(e){if(Array.isArray(e))return K4(e)}function K4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=n?t.apply(void 0,r):e(n-o,cN(function(){for(var l=arguments.length,u=new Array(l),f=0;fe.length)&&(n=e.length);for(var t=0,i=new Array(n);t"u"||!(Symbol.iterator in Object(e)))){var t=[],i=!0,r=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(t.push(l.value),!(n&&t.length===n));i=!0);}catch(u){r=!0,a=u}finally{try{!i&&o.return!=null&&o.return()}finally{if(r)throw a}}return t}}function l2e(e){if(Array.isArray(e))return e}function oW(e){var n=$m(e,2),t=n[0],i=n[1],r=t,a=i;return t>i&&(r=i,a=t),[r,a]}function sW(e,n,t){if(e.lte(0))return new Ot(0);var i=ob.getDigitCount(e.toNumber()),r=new Ot(10).pow(i),a=e.div(r),o=i!==1?.05:.1,l=new Ot(Math.ceil(a.div(o).toNumber())).add(t).mul(o),u=l.mul(r);return n?u:new Ot(Math.ceil(u))}function u2e(e,n,t){var i=1,r=new Ot(e);if(!r.isint()&&t){var a=Math.abs(e);a<1?(i=new Ot(10).pow(ob.getDigitCount(e)-1),r=new Ot(Math.floor(r.div(i).toNumber())).mul(i)):a>1&&(r=new Ot(Math.floor(e)))}else e===0?r=new Ot(Math.floor((n-1)/2)):t||(r=new Ot(Math.floor(e)));var o=Math.floor((n-1)/2),l=Z_e(X_e(function(u){return r.add(new Ot(u-o).mul(i)).toNumber()}),X4);return l(0,n)}function lW(e,n,t,i){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-e)/(t-1)))return{step:new Ot(0),tickMin:new Ot(0),tickMax:new Ot(0)};var a=sW(new Ot(n).sub(e).div(t-1),i,r),o;e<=0&&n>=0?o=new Ot(0):(o=new Ot(e).add(n).div(2),o=o.sub(new Ot(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new Ot(n).sub(o).div(a).toNumber()),f=l+u+1;return f>t?lW(e,n,t,i,r+1):(f0?u+(t-f):u,l=n>0?l:l+(t-f)),{step:a,tickMin:o.sub(new Ot(l).mul(a)),tickMax:o.add(new Ot(u).mul(a))})}function c2e(e){var n=$m(e,2),t=n[0],i=n[1],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),l=oW([t,i]),u=$m(l,2),f=u[0],h=u[1];if(f===-1/0||h===1/0){var d=h===1/0?[f].concat(Q4(X4(0,r-1).map(function(){return 1/0}))):[].concat(Q4(X4(0,r-1).map(function(){return-1/0})),[h]);return t>i?Z4(d):d}if(f===h)return u2e(f,r,a);var p=lW(f,h,o,a),g=p.step,b=p.tickMin,w=p.tickMax,k=ob.rangeStep(b,w.add(new Ot(.1).mul(g)),g);return t>i?Z4(k):k}function f2e(e,n){var t=$m(e,2),i=t[0],r=t[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=oW([i,r]),l=$m(o,2),u=l[0],f=l[1];if(u===-1/0||f===1/0)return[i,r];if(u===f)return[u];var h=Math.max(n,2),d=sW(new Ot(f).sub(u).div(h-1),a,0),p=[].concat(Q4(ob.rangeStep(new Ot(u),new Ot(f).sub(new Ot(.99).mul(d)),d)),[f]);return i>r?Z4(p):p}var d2e=rW(c2e),h2e=rW(f2e),m2e="Invariant failed";function Lu(e,n){throw new Error(m2e)}var p2e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_f(e)}function q1(){return q1=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function _2e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function x2e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S2e(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(t=i==null?void 0:i.length)!==null&&t!==void 0?t:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,f=0;f0?r[f-1].coordinate:r[l-1].coordinate,d=r[f].coordinate,p=f>=l-1?r[0].coordinate:r[f+1].coordinate,g=void 0;if(Fa(d-h)!==Fa(p-d)){var b=[];if(Fa(p-d)===Fa(u[1]-u[0])){g=p;var w=d+u[1]-u[0];b[0]=Math.min(w,(w+h)/2),b[1]=Math.max(w,(w+h)/2)}else{g=h;var k=p+u[1]-u[0];b[0]=Math.min(d,(k+d)/2),b[1]=Math.max(d,(k+d)/2)}var _=[Math.min(d,(g+d)/2),Math.max(d,(g+d)/2)];if(n>_[0]&&n<=_[1]||n>=b[0]&&n<=b[1]){o=r[f].index;break}}else{var S=Math.min(h,p),j=Math.max(h,p);if(n>(S+d)/2&&n<=(j+d)/2){o=r[f].index;break}}}else for(var T=0;T0&&T(i[T].coordinate+i[T-1].coordinate)/2&&n<=(i[T].coordinate+i[T+1].coordinate)/2||T===l-1&&n>(i[T].coordinate+i[T-1].coordinate)/2){o=i[T].index;break}return o},Yj=function(n){var t,i=n,r=i.type.displayName,a=(t=n.type)!==null&&t!==void 0&&t.defaultProps?ii(ii({},n.type.defaultProps),n.props):n.props,o=a.stroke,l=a.fill,u;switch(r){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},F2e=function(n){var t=n.barSize,i=n.totalSize,r=n.stackGroups,a=r===void 0?{}:r;if(!a)return{};for(var o={},l=Object.keys(a),u=0,f=l.length;u=0});if(_&&_.length){var S=_[0].type.defaultProps,j=S!==void 0?ii(ii({},S),_[0].props):_[0].props,T=j.barSize,A=j[k];o[A]||(o[A]=[]);var O=Zn(T)?t:T;o[A].push({item:_[0],stackList:_.slice(1),barSize:Zn(O)?void 0:$u(O,i,0)})}}return o},q2e=function(n){var t=n.barGap,i=n.barCategoryGap,r=n.bandSize,a=n.sizeList,o=a===void 0?[]:a,l=n.maxBarSize,u=o.length;if(u<1)return null;var f=$u(t,r,0,!0),h,d=[];if(o[0].barSize===+o[0].barSize){var p=!1,g=r/u,b=o.reduce(function(T,A){return T+A.barSize||0},0);b+=(u-1)*f,b>=r&&(b-=(u-1)*f,f=0),b>=r&&g>0&&(p=!0,g*=.9,b=u*g);var w=(r-b)/2>>0,k={offset:w-f,size:0};h=o.reduce(function(T,A){var O={item:A.item,position:{offset:k.offset+k.size+f,size:p?g:A.barSize}},M=[].concat(hN(T),[O]);return k=M[M.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function($){M.push({item:$,position:k})}),M},d)}else{var _=$u(i,r,0,!0);r-2*_-(u-1)*f<=0&&(f=0);var S=(r-2*_-(u-1)*f)/u;S>1&&(S>>=0);var j=l===+l?Math.min(S,l):S;h=o.reduce(function(T,A,O){var M=[].concat(hN(T),[{item:A.item,position:{offset:_+(S+f)*O+(S-j)/2,size:j}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function($){M.push({item:$,position:M[M.length-1].position})}),M},d)}return h},H2e=function(n,t,i,r){var a=i.children,o=i.width,l=i.margin,u=o-(l.left||0)-(l.right||0),f=dW({children:a,legendWidth:u});if(f){var h=r||{},d=h.width,p=h.height,g=f.align,b=f.verticalAlign,w=f.layout;if((w==="vertical"||w==="horizontal"&&b==="middle")&&g!=="center"&&Ge(n[g]))return ii(ii({},n),{},tf({},g,n[g]+(d||0)));if((w==="horizontal"||w==="vertical"&&g==="center")&&b!=="middle"&&Ge(n[b]))return ii(ii({},n),{},tf({},b,n[b]+(p||0)))}return n},U2e=function(n,t,i){return Zn(t)?!0:n==="horizontal"?t==="yAxis":n==="vertical"||i==="x"?t==="xAxis":i==="y"?t==="yAxis":!0},hW=function(n,t,i,r,a){var o=t.props.children,l=wa(o,zp).filter(function(f){return U2e(r,a,f.props.direction)});if(l&&l.length){var u=l.map(function(f){return f.props.dataKey});return n.reduce(function(f,h){var d=cr(h,i);if(Zn(d))return f;var p=Array.isArray(d)?[rb(d),cl(d)]:[d,d],g=u.reduce(function(b,w){var k=cr(h,w,0),_=p[0]-Math.abs(Array.isArray(k)?k[0]:k),S=p[1]+Math.abs(Array.isArray(k)?k[1]:k);return[Math.min(_,b[0]),Math.max(S,b[1])]},[1/0,-1/0]);return[Math.min(g[0],f[0]),Math.max(g[1],f[1])]},[1/0,-1/0])}return null},V2e=function(n,t,i,r,a){var o=t.map(function(l){return hW(n,l,i,a,r)}).filter(function(l){return!Zn(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},mW=function(n,t,i,r,a){var o=t.map(function(u){var f=u.props.dataKey;return i==="number"&&f&&hW(n,u,f,r)||rm(n,f,i,a)});if(i==="number")return o.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,f){for(var h=0,d=f.length;h=2?Fa(l[0]-l[1])*2*f:f,t&&(n.ticks||n.niceTicks)){var h=(n.ticks||n.niceTicks).map(function(d){var p=a?a.indexOf(d):d;return{coordinate:r(p)+f,value:d,offset:f}});return h.filter(function(d){return!ud(d.coordinate)})}return n.isCategorical&&n.categoricalDomain?n.categoricalDomain.map(function(d,p){return{coordinate:r(d)+f,value:d,index:p,offset:f}}):r.ticks&&!i?r.ticks(n.tickCount).map(function(d){return{coordinate:r(d)+f,value:d,offset:f}}):r.domain().map(function(d,p){return{coordinate:r(d)+f,value:a?a[d]:d,index:p,offset:f}})},W3=new WeakMap,wg=function(n,t){if(typeof t!="function")return n;W3.has(n)||W3.set(n,new WeakMap);var i=W3.get(n);if(i.has(t))return i.get(t);var r=function(){n.apply(void 0,arguments),t.apply(void 0,arguments)};return i.set(t,r),r},W2e=function(n,t,i){var r=n.scale,a=n.type,o=n.layout,l=n.axisType;if(r==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Em(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:z1(),realScaleType:"linear"}:a==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!i)?{scale:im(),realScaleType:"point"}:a==="category"?{scale:Em(),realScaleType:"band"}:{scale:z1(),realScaleType:"linear"};if(Nu(r)){var u="scale".concat(V0(r));return{scale:(JP[u]||im)(),realScaleType:JP[u]?u:"point"}}return Fn(r)?{scale:r}:{scale:im(),realScaleType:"point"}},pN=1e-4,G2e=function(n){var t=n.domain();if(!(!t||t.length<=2)){var i=t.length,r=n.range(),a=Math.min(r[0],r[1])-pN,o=Math.max(r[0],r[1])+pN,l=n(t[0]),u=n(t[i-1]);(lo||uo)&&n.domain([t[0],t[i-1]])}},Y2e=function(n,t){if(!n)return null;for(var i=0,r=n.length;ir)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]=0?(n[l][i][0]=a,n[l][i][1]=a+u,a=n[l][i][1]):(n[l][i][0]=o,n[l][i][1]=o+u,o=n[l][i][1])}},Z2e=function(n){var t=n.length;if(!(t<=0))for(var i=0,r=n[0].length;i=0?(n[o][i][0]=a,n[o][i][1]=a+l,a=n[o][i][1]):(n[o][i][0]=0,n[o][i][1]=0)}},Q2e={sign:X2e,expand:N1e,none:hf,silhouette:$1e,wiggle:z1e,positive:Z2e},J2e=function(n,t,i){var r=t.map(function(l){return l.props.dataKey}),a=Q2e[i],o=P1e().keys(r).value(function(l,u){return+cr(l,u,0)}).order(M4).offset(a);return o(n)},exe=function(n,t,i,r,a,o){if(!n)return null;var l=o?t.reverse():t,u={},f=l.reduce(function(d,p){var g,b=(g=p.type)!==null&&g!==void 0&&g.defaultProps?ii(ii({},p.type.defaultProps),p.props):p.props,w=b.stackId,k=b.hide;if(k)return d;var _=b[i],S=d[_]||{hasStack:!1,stackGroups:{}};if(ji(w)){var j=S.stackGroups[w]||{numericAxisId:i,cateAxisId:r,items:[]};j.items.push(p),S.hasStack=!0,S.stackGroups[w]=j}else S.stackGroups[cd("_stackId_")]={numericAxisId:i,cateAxisId:r,items:[p]};return ii(ii({},d),{},tf({},_,S))},u),h={};return Object.keys(f).reduce(function(d,p){var g=f[p];if(g.hasStack){var b={};g.stackGroups=Object.keys(g.stackGroups).reduce(function(w,k){var _=g.stackGroups[k];return ii(ii({},w),{},tf({},k,{numericAxisId:i,cateAxisId:r,items:_.items,stackedData:J2e(n,_.items,a)}))},b)}return ii(ii({},d),{},tf({},p,g))},h)},nxe=function(n,t){var i=t.realScaleType,r=t.type,a=t.tickCount,o=t.originalDomain,l=t.allowDecimals,u=i||t.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var f=n.domain();if(!f.length)return null;var h=d2e(f,a,l);return n.domain([rb(h),cl(h)]),{niceTicks:h}}if(a&&r==="number"){var d=n.domain(),p=h2e(d,a,l);return{niceTicks:p}}return null};function U1(e){var n=e.axis,t=e.ticks,i=e.bandSize,r=e.entry,a=e.index,o=e.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Zn(r[n.dataKey])){var l=v1(t,"value",r[n.dataKey]);if(l)return l.coordinate+i/2}return t[a]?t[a].coordinate+i/2:null}var u=cr(r,Zn(o)?n.dataKey:o);return Zn(u)?null:n.scale(u)}var vN=function(n){var t=n.axis,i=n.ticks,r=n.offset,a=n.bandSize,o=n.entry,l=n.index;if(t.type==="category")return i[l]?i[l].coordinate+r:null;var u=cr(o,t.dataKey,t.domain[l]);return Zn(u)?null:t.scale(u)-a/2+r},txe=function(n){var t=n.numericAxis,i=t.scale.domain();if(t.type==="number"){var r=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);return r<=0&&a>=0?0:a<0?a:r}return i[0]},ixe=function(n,t){var i,r=(i=n.type)!==null&&i!==void 0&&i.defaultProps?ii(ii({},n.type.defaultProps),n.props):n.props,a=r.stackId;if(ji(a)){var o=t[a];if(o){var l=o.items.indexOf(n);return l>=0?o.stackedData[l]:null}}return null},rxe=function(n){return n.reduce(function(t,i){return[rb(i.concat([t[0]]).filter(Ge)),cl(i.concat([t[1]]).filter(Ge))]},[1/0,-1/0])},gW=function(n,t,i){return Object.keys(n).reduce(function(r,a){var o=n[a],l=o.stackedData,u=l.reduce(function(f,h){var d=rxe(h.slice(t,i+1));return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},gN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,t6=function(n,t,i){if(Fn(n))return n(t,i);if(!Array.isArray(n))return t;var r=[];if(Ge(n[0]))r[0]=i?n[0]:Math.min(n[0],t[0]);else if(gN.test(n[0])){var a=+gN.exec(n[0])[1];r[0]=t[0]-a}else Fn(n[0])?r[0]=n[0](t[0]):r[0]=t[0];if(Ge(n[1]))r[1]=i?n[1]:Math.max(n[1],t[1]);else if(yN.test(n[1])){var o=+yN.exec(n[1])[1];r[1]=t[1]+o}else Fn(n[1])?r[1]=n[1](t[1]):r[1]=t[1];return r},V1=function(n,t,i){if(n&&n.scale&&n.scale.bandwidth){var r=n.scale.bandwidth();if(!i||r>0)return r}if(n&&t&&t.length>=2){for(var a=kj(t,function(d){return d.coordinate}),o=1/0,l=1,u=a.length;lo&&(f=2*Math.PI-f),{radius:l,angle:lxe(f),angleInRadian:f}},fxe=function(n){var t=n.startAngle,i=n.endAngle,r=Math.floor(t/360),a=Math.floor(i/360),o=Math.min(r,a);return{startAngle:t-o*360,endAngle:i-o*360}},dxe=function(n,t){var i=t.startAngle,r=t.endAngle,a=Math.floor(i/360),o=Math.floor(r/360),l=Math.min(a,o);return n+l*360},_N=function(n,t){var i=n.x,r=n.y,a=cxe({x:i,y:r},t),o=a.radius,l=a.angle,u=t.innerRadius,f=t.outerRadius;if(of)return!1;if(o===0)return!0;var h=fxe(t),d=h.startAngle,p=h.endAngle,g=l,b;if(d<=p){for(;g>p;)g-=360;for(;g=d&&g<=p}else{for(;g>d;)g-=360;for(;g=p&&g<=d}return b?kN(kN({},t),{},{radius:o,angle:dxe(g,t)}):null};function Bm(e){"@babel/helpers - typeof";return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}var hxe=["offset"];function mxe(e){return yxe(e)||gxe(e)||vxe(e)||pxe()}function pxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vxe(e,n){if(e){if(typeof e=="string")return i6(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i6(e,n)}}function gxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yxe(e){if(Array.isArray(e))return i6(e)}function i6(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function wxe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function xN(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Si(e){for(var n=1;n=0?1:-1,j,T;r==="insideStart"?(j=g+S*o,T=w):r==="insideEnd"?(j=b-S*o,T=!w):r==="end"&&(j=b+S*o,T=w),T=_<=0?T:!T;var A=Vi(f,h,k,j),O=Vi(f,h,k,j+(T?1:-1)*359),M="M".concat(A.x,",").concat(A.y,` + height and width.`,N,D,o,u,h,d,t);var L=!Array.isArray(g)&&ts(g.type).endsWith("Chart");return J.Children.map(g,function(H){return J.isValidElement(H)?S.cloneElement(H,pg({width:N,height:D},L?{style:pg({height:"100%",width:"100%",maxHeight:D,maxWidth:N},H.props.style)}:{})):H})},[t,g,u,p,d,h,q,o]);return J.createElement("div",{id:k?"".concat(k):void 0,className:vn("recharts-responsive-container",_),style:pg(pg({},T),{},{width:o,height:u,minWidth:h,minHeight:d,maxHeight:p}),ref:A},z)}),hV=function(n){return null};hV.displayName="Cell";function Om(e){"@babel/helpers - typeof";return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function aP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function B4(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:{};if(n==null||Xu.isSsr)return{width:0,height:0};var i=Rbe(t),r=JSON.stringify({text:n,copyStyle:i});if(Ic.widthCache[r])return Ic.widthCache[r];try{var a=document.getElementById(oP);a||(a=document.createElement("span"),a.setAttribute("id",oP),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=B4(B4({},Dbe),i);Object.assign(a.style,o),a.textContent="".concat(n);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return Ic.widthCache[r]=u,++Ic.cacheCount>Mbe&&(Ic.cacheCount=0,Ic.widthCache={}),u}catch{return{width:0,height:0}}},Pbe=function(n){return{top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft}};function Tm(e){"@babel/helpers - typeof";return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function T1(e,n){return Lbe(e)||zbe(e,n)||$be(e,n)||Nbe()}function Nbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $be(e,n){if(e){if(typeof e=="string")return sP(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sP(e,n)}}function sP(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Qbe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function hP(e,n){return twe(e)||nwe(e,n)||ewe(e,n)||Jbe()}function Jbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ewe(e,n){if(e){if(typeof e=="string")return mP(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mP(e,n)}}function mP(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(D,L){var H=L.word,Y=L.width,P=D[D.length-1];if(P&&(r==null||a||P.width+Y+iL.width?D:L})};if(!h)return g;for(var w="…",k=function(N){var D=d.slice(0,N),L=gV({breakAll:f,style:u,children:D+w}).wordsWithComputedWidth,H=p(L),Y=H.length>o||b(H).width>Number(r);return[Y,H]},_=0,x=d.length-1,C=0,T;_<=x&&C<=d.length-1;){var A=Math.floor((_+x)/2),O=A-1,M=k(O),$=hP(M,2),q=$[0],R=$[1],I=k(A),z=hP(I,1),W=z[0];if(!q&&!W&&(_=A+1),q&&W&&(x=A-1),!q&&W){T=R;break}C++}return T||g},pP=function(n){var t=Zn(n)?[]:n.toString().split(vV);return[{words:t}]},rwe=function(n){var t=n.width,i=n.scaleToFit,r=n.children,a=n.style,o=n.breakAll,l=n.maxLines;if((t||i)&&!Xu.isSsr){var u,f,h=gV({breakAll:o,children:r,style:a});if(h){var d=h.wordsWithComputedWidth,p=h.spaceWidth;u=d,f=p}else return pP(r);return iwe({breakAll:o,children:r,maxLines:l,style:a},u,f,t,i)}return pP(r)},vP="#808080",E1=function(n){var t=n.x,i=t===void 0?0:t,r=n.y,a=r===void 0?0:r,o=n.lineHeight,l=o===void 0?"1em":o,u=n.capHeight,f=u===void 0?"0.71em":u,h=n.scaleToFit,d=h===void 0?!1:h,p=n.textAnchor,g=p===void 0?"start":p,b=n.verticalAnchor,w=b===void 0?"end":b,k=n.fill,_=k===void 0?vP:k,x=dP(n,Xbe),C=S.useMemo(function(){return rwe({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:d,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,d,x.style,x.width]),T=x.dx,A=x.dy,O=x.angle,M=x.className,$=x.breakAll,q=dP(x,Zbe);if(!ji(i)||!ji(a))return null;var R=i+(Ge(T)?T:0),I=a+(Ge(A)?A:0),z;switch(w){case"start":z=E3("calc(".concat(f,")"));break;case"middle":z=E3("calc(".concat((C.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:z=E3("calc(".concat(C.length-1," * -").concat(l,")"));break}var W=[];if(d){var U=C[0].width,N=x.width;W.push("scale(".concat((Ge(N)?N/U:1)/U,")"))}return O&&W.push("rotate(".concat(O,", ").concat(R,", ").concat(I,")")),W.length&&(q.transform=W.join(" ")),J.createElement("text",F4({},Wn(q,!0),{x:R,y:I,className:vn("recharts-text",M),textAnchor:g,fill:_.includes("url")?vP:_}),C.map(function(D,L){var H=D.words.join($?"":" ");return J.createElement("tspan",{x:R,dy:L===0?z:l,key:"".concat(H,"-").concat(L)},H)}))};function gl(e,n){return e==null||n==null?NaN:en?1:e>=n?0:NaN}function awe(e,n){return e==null||n==null?NaN:ne?1:n>=e?0:NaN}function Cj(e){let n,t,i;e.length!==2?(n=gl,t=(l,u)=>gl(e(l),u),i=(l,u)=>e(l)-u):(n=e===gl||e===awe?e:owe,t=e,i=e);function r(l,u,f=0,h=l.length){if(f>>1;t(l[d],u)<0?f=d+1:h=d}while(f>>1;t(l[d],u)<=0?f=d+1:h=d}while(ff&&i(l[d-1],u)>-i(l[d],u)?d-1:d}return{left:r,center:o,right:a}}function owe(){return 0}function yV(e){return e===null?NaN:+e}function*swe(e,n){for(let t of e)t!=null&&(t=+t)>=t&&(yield t)}const lwe=Cj(gl),Rp=lwe.right;Cj(yV).center;class gP extends Map{constructor(n,t=fwe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[i,r]of n)this.set(i,r)}get(n){return super.get(yP(this,n))}has(n){return super.has(yP(this,n))}set(n,t){return super.set(uwe(this,n),t)}delete(n){return super.delete(cwe(this,n))}}function yP({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):t}function uwe({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):(e.set(i,t),t)}function cwe({_intern:e,_key:n},t){const i=n(t);return e.has(i)&&(t=e.get(i),e.delete(i)),t}function fwe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function dwe(e=gl){if(e===gl)return bV;if(typeof e!="function")throw new TypeError("compare is not a function");return(n,t)=>{const i=e(n,t);return i||i===0?i:(e(t,t)===0)-(e(n,n)===0)}}function bV(e,n){return(e==null||!(e>=e))-(n==null||!(n>=n))||(en?1:0)}const hwe=Math.sqrt(50),mwe=Math.sqrt(10),pwe=Math.sqrt(2);function M1(e,n,t){const i=(n-e)/Math.max(0,t),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=hwe?10:a>=mwe?5:a>=pwe?2:1;let l,u,f;return r<0?(f=Math.pow(10,-r)/o,l=Math.round(e*f),u=Math.round(n*f),l/fn&&--u,f=-f):(f=Math.pow(10,r)*o,l=Math.round(e/f),u=Math.round(n/f),l*fn&&--u),u0))return[];if(e===n)return[e];const i=n=r))return[];const l=a-r+1,u=new Array(l);if(i)if(o<0)for(let f=0;f=i)&&(t=i);return t}function wP(e,n){let t;for(const i of e)i!=null&&(t>i||t===void 0&&i>=i)&&(t=i);return t}function wV(e,n,t=0,i=1/0,r){if(n=Math.floor(n),t=Math.floor(Math.max(0,t)),i=Math.floor(Math.min(e.length-1,i)),!(t<=n&&n<=i))return e;for(r=r===void 0?bV:dwe(r);i>t;){if(i-t>600){const u=i-t+1,f=n-t+1,h=Math.log(u),d=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*d*(u-d)/u)*(f-u/2<0?-1:1),g=Math.max(t,Math.floor(n-f*d/u+p)),b=Math.min(i,Math.floor(n+(u-f)*d/u+p));wV(e,n,g,b,r)}const a=e[n];let o=t,l=i;for(Ah(e,t,n),r(e[i],a)>0&&Ah(e,t,i);o0;)--l}r(e[t],a)===0?Ah(e,t,l):(++l,Ah(e,l,i)),l<=n&&(t=l+1),n<=l&&(i=l-1)}return e}function Ah(e,n,t){const i=e[n];e[n]=e[t],e[t]=i}function vwe(e,n,t){if(e=Float64Array.from(swe(e)),!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return wP(e);if(n>=1)return bP(e);var i,r=(i-1)*n,a=Math.floor(r),o=bP(wV(e,a).subarray(0,a+1)),l=wP(e.subarray(a+1));return o+(l-o)*(r-a)}}function gwe(e,n,t=yV){if(!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return+t(e[0],0,e);if(n>=1)return+t(e[i-1],i-1,e);var i,r=(i-1)*n,a=Math.floor(r),o=+t(e[a],a,e),l=+t(e[a+1],a+1,e);return o+(l-o)*(r-a)}}function ywe(e,n,t){e=+e,n=+n,t=(r=arguments.length)<2?(n=e,e=0,1):r<3?1:+t;for(var i=-1,r=Math.max(0,Math.ceil((n-e)/t))|0,a=new Array(r);++i>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?gg(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?gg(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=wwe.exec(e))?new Cr(n[1],n[2],n[3],1):(n=kwe.exec(e))?new Cr(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=_we.exec(e))?gg(n[1],n[2],n[3],n[4]):(n=xwe.exec(e))?gg(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Swe.exec(e))?AP(n[1],n[2]/100,n[3]/100,1):(n=Cwe.exec(e))?AP(n[1],n[2]/100,n[3]/100,n[4]):kP.hasOwnProperty(e)?SP(kP[e]):e==="transparent"?new Cr(NaN,NaN,NaN,0):null}function SP(e){return new Cr(e>>16&255,e>>8&255,e&255,1)}function gg(e,n,t,i){return i<=0&&(e=n=t=NaN),new Cr(e,n,t,i)}function Owe(e){return e instanceof Pp||(e=Rm(e)),e?(e=e.rgb(),new Cr(e.r,e.g,e.b,e.opacity)):new Cr}function W4(e,n,t,i){return arguments.length===1?Owe(e):new Cr(e,n,t,i??1)}function Cr(e,n,t,i){this.r=+e,this.g=+n,this.b=+t,this.opacity=+i}Aj(Cr,W4,_V(Pp,{brighter(e){return e=e==null?D1:Math.pow(D1,e),new Cr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mm:Math.pow(Mm,e),new Cr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cr(ju(this.r),ju(this.g),ju(this.b),R1(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:CP,formatHex:CP,formatHex8:Twe,formatRgb:jP,toString:jP}));function CP(){return`#${ku(this.r)}${ku(this.g)}${ku(this.b)}`}function Twe(){return`#${ku(this.r)}${ku(this.g)}${ku(this.b)}${ku((isNaN(this.opacity)?1:this.opacity)*255)}`}function jP(){const e=R1(this.opacity);return`${e===1?"rgb(":"rgba("}${ju(this.r)}, ${ju(this.g)}, ${ju(this.b)}${e===1?")":`, ${e})`}`}function R1(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ju(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ku(e){return e=ju(e),(e<16?"0":"")+e.toString(16)}function AP(e,n,t,i){return i<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new La(e,n,t,i)}function xV(e){if(e instanceof La)return new La(e.h,e.s,e.l,e.opacity);if(e instanceof Pp||(e=Rm(e)),!e)return new La;if(e instanceof La)return e;e=e.rgb();var n=e.r/255,t=e.g/255,i=e.b/255,r=Math.min(n,t,i),a=Math.max(n,t,i),o=NaN,l=a-r,u=(a+r)/2;return l?(n===a?o=(t-i)/l+(t0&&u<1?0:o,new La(o,l,u,e.opacity)}function Ewe(e,n,t,i){return arguments.length===1?xV(e):new La(e,n,t,i??1)}function La(e,n,t,i){this.h=+e,this.s=+n,this.l=+t,this.opacity=+i}Aj(La,Ewe,_V(Pp,{brighter(e){return e=e==null?D1:Math.pow(D1,e),new La(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mm:Math.pow(Mm,e),new La(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*n,r=2*t-i;return new Cr(M3(e>=240?e-240:e+120,r,i),M3(e,r,i),M3(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new La(OP(this.h),yg(this.s),yg(this.l),R1(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(){const e=R1(this.opacity);return`${e===1?"hsl(":"hsla("}${OP(this.h)}, ${yg(this.s)*100}%, ${yg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function OP(e){return e=(e||0)%360,e<0?e+360:e}function yg(e){return Math.max(0,Math.min(1,e||0))}function M3(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const Oj=e=>()=>e;function Mwe(e,n){return function(t){return e+t*n}}function Dwe(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(i){return Math.pow(e+i*n,t)}}function Rwe(e){return(e=+e)==1?SV:function(n,t){return t-n?Dwe(n,t,e):Oj(isNaN(n)?t:n)}}function SV(e,n){var t=n-e;return t?Mwe(e,t):Oj(isNaN(e)?n:e)}const TP=(function e(n){var t=Rwe(n);function i(r,a){var o=t((r=W4(r)).r,(a=W4(a)).r),l=t(r.g,a.g),u=t(r.b,a.b),f=SV(r.opacity,a.opacity);return function(h){return r.r=o(h),r.g=l(h),r.b=u(h),r.opacity=f(h),r+""}}return i.gamma=e,i})(1);function Pwe(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,i=n.slice(),r;return function(a){for(r=0;rt&&(a=n.slice(t,a),l[o]?l[o]+=a:l[++o]=a),(i=i[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,u.push({i:o,x:P1(i,r)})),t=D3.lastIndex;return tn&&(t=e,e=n,n=t),function(i){return Math.max(e,Math.min(n,i))}}function Vwe(e,n,t){var i=e[0],r=e[1],a=n[0],o=n[1];return r2?Wwe:Vwe,u=f=null,d}function d(p){return p==null||isNaN(p=+p)?a:(u||(u=l(e.map(i),n,t)))(i(o(p)))}return d.invert=function(p){return o(r((f||(f=l(n,e.map(i),P1)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,N1),h()):e.slice()},d.range=function(p){return arguments.length?(n=Array.from(p),h()):n.slice()},d.rangeRound=function(p){return n=Array.from(p),t=Tj,h()},d.clamp=function(p){return arguments.length?(o=p?!0:lr,h()):o!==lr},d.interpolate=function(p){return arguments.length?(t=p,h()):t},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,g){return i=p,r=g,h()}}function Ej(){return J0()(lr,lr)}function Gwe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $1(e,n){if(!isFinite(e)||e===0)return null;var t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"),i=e.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+e.slice(t+1)]}function yf(e){return e=$1(Math.abs(e)),e?e[1]:NaN}function Ywe(e,n){return function(t,i){for(var r=t.length,a=[],o=0,l=e[0],u=0;r>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(t.substring(r-=l,r+l)),!((u+=l+1)>i));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}}function Kwe(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var Xwe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pm(e){if(!(n=Xwe.exec(e)))throw new Error("invalid format: "+e);var n;return new Mj({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Pm.prototype=Mj.prototype;function Mj(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+""}Mj.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 Zwe(e){e:for(var n=e.length,t=1,i=-1,r;t0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(r+1):e}var z1;function Qwe(e,n){var t=$1(e,n);if(!t)return z1=void 0,e.toPrecision(n);var i=t[0],r=t[1],a=r-(z1=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+$1(e,Math.max(0,n+a-1))[0]}function MP(e,n){var t=$1(e,n);if(!t)return e+"";var i=t[0],r=t[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const DP={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Gwe,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>MP(e*100,n),r:MP,s:Qwe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function RP(e){return e}var PP=Array.prototype.map,NP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Jwe(e){var n=e.grouping===void 0||e.thousands===void 0?RP:Ywe(PP.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",r=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?RP:Kwe(PP.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(d,p){d=Pm(d);var g=d.fill,b=d.align,w=d.sign,k=d.symbol,_=d.zero,x=d.width,C=d.comma,T=d.precision,A=d.trim,O=d.type;O==="n"?(C=!0,O="g"):DP[O]||(T===void 0&&(T=12),A=!0,O="g"),(_||g==="0"&&b==="=")&&(_=!0,g="0",b="=");var M=(p&&p.prefix!==void 0?p.prefix:"")+(k==="$"?t:k==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),$=(k==="$"?i:/[%p]/.test(O)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),q=DP[O],R=/[defgprs%]/.test(O);T=T===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function I(z){var W=M,U=$,N,D,L;if(O==="c")U=q(z)+U,z="";else{z=+z;var H=z<0||1/z<0;if(z=isNaN(z)?u:q(Math.abs(z),T),A&&(z=Zwe(z)),H&&+z==0&&w!=="+"&&(H=!1),W=(H?w==="("?w:l:w==="-"||w==="("?"":w)+W,U=(O==="s"&&!isNaN(z)&&z1!==void 0?NP[8+z1/3]:"")+U+(H&&w==="("?")":""),R){for(N=-1,D=z.length;++NL||L>57){U=(L===46?r+z.slice(N+1):z.slice(N))+U,z=z.slice(0,N);break}}}C&&!_&&(z=n(z,1/0));var Y=W.length+z.length+U.length,P=Y>1)+W+z+U+P.slice(Y);break;default:z=P+W+z+U;break}return a(z)}return I.toString=function(){return d+""},I}function h(d,p){var g=Math.max(-8,Math.min(8,Math.floor(yf(p)/3)))*3,b=Math.pow(10,-g),w=f((d=Pm(d),d.type="f",d),{suffix:NP[8+g/3]});return function(k){return w(b*k)}}return{format:f,formatPrefix:h}}var bg,Dj,CV;eke({thousands:",",grouping:[3],currency:["$",""]});function eke(e){return bg=Jwe(e),Dj=bg.format,CV=bg.formatPrefix,bg}function nke(e){return Math.max(0,-yf(Math.abs(e)))}function tke(e,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yf(n)/3)))*3-yf(Math.abs(e)))}function ike(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,yf(n)-yf(e))+1}function jV(e,n,t,i){var r=U4(e,n,t),a;switch(i=Pm(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(n));return i.precision==null&&!isNaN(a=tke(r,o))&&(i.precision=a),CV(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=ike(r,Math.max(Math.abs(e),Math.abs(n))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=nke(r))&&(i.precision=a-(i.type==="%")*2);break}}return Dj(i)}function $l(e){var n=e.domain;return e.ticks=function(t){var i=n();return q4(i[0],i[i.length-1],t??10)},e.tickFormat=function(t,i){var r=n();return jV(r[0],r[r.length-1],t??10,i)},e.nice=function(t){t==null&&(t=10);var i=n(),r=0,a=i.length-1,o=i[r],l=i[a],u,f,h=10;for(l0;){if(f=H4(o,l,t),f===u)return i[r]=o,i[a]=l,n(i);if(f>0)o=Math.floor(o/f)*f,l=Math.ceil(l/f)*f;else if(f<0)o=Math.ceil(o*f)/f,l=Math.floor(l*f)/f;else break;u=f}return e},e}function L1(){var e=Ej();return e.copy=function(){return Np(e,L1())},Oa.apply(e,arguments),$l(e)}function AV(e){var n;function t(i){return i==null||isNaN(i=+i)?n:i}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(e=Array.from(i,N1),t):e.slice()},t.unknown=function(i){return arguments.length?(n=i,t):n},t.copy=function(){return AV(e).unknown(n)},e=arguments.length?Array.from(e,N1):[0,1],$l(t)}function OV(e,n){e=e.slice();var t=0,i=e.length-1,r=e[t],a=e[i],o;return aMath.pow(e,n)}function lke(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),n=>Math.log(n)/e)}function LP(e){return(n,t)=>-e(-n,t)}function Rj(e){const n=e($P,zP),t=n.domain;let i=10,r,a;function o(){return r=lke(i),a=ske(i),t()[0]<0?(r=LP(r),a=LP(a),e(rke,ake)):e($P,zP),n}return n.base=function(l){return arguments.length?(i=+l,o()):i},n.domain=function(l){return arguments.length?(t(l),o()):t()},n.ticks=l=>{const u=t();let f=u[0],h=u[u.length-1];const d=h0){for(;p<=g;++p)for(b=1;bh)break;_.push(w)}}else for(;p<=g;++p)for(b=i-1;b>=1;--b)if(w=p>0?b/a(-p):b*a(p),!(wh)break;_.push(w)}_.length*2{if(l==null&&(l=10),u==null&&(u=i===10?"s":","),typeof u!="function"&&(!(i%1)&&(u=Pm(u)).precision==null&&(u.trim=!0),u=Dj(u)),l===1/0)return u;const f=Math.max(1,i*l/n.ticks().length);return h=>{let d=h/a(Math.round(r(h)));return d*it(OV(t(),{floor:l=>a(Math.floor(r(l))),ceil:l=>a(Math.ceil(r(l)))})),n}function TV(){const e=Rj(J0()).domain([1,10]);return e.copy=()=>Np(e,TV()).base(e.base()),Oa.apply(e,arguments),e}function IP(e){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/e))}}function BP(e){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*e}}function Pj(e){var n=1,t=e(IP(n),BP(n));return t.constant=function(i){return arguments.length?e(IP(n=+i),BP(n)):n},$l(t)}function EV(){var e=Pj(J0());return e.copy=function(){return Np(e,EV()).constant(e.constant())},Oa.apply(e,arguments)}function FP(e){return function(n){return n<0?-Math.pow(-n,e):Math.pow(n,e)}}function uke(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cke(e){return e<0?-e*e:e*e}function Nj(e){var n=e(lr,lr),t=1;function i(){return t===1?e(lr,lr):t===.5?e(uke,cke):e(FP(t),FP(1/t))}return n.exponent=function(r){return arguments.length?(t=+r,i()):t},$l(n)}function $j(){var e=Nj(J0());return e.copy=function(){return Np(e,$j()).exponent(e.exponent())},Oa.apply(e,arguments),e}function fke(){return $j.apply(null,arguments).exponent(.5)}function qP(e){return Math.sign(e)*e*e}function dke(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function MV(){var e=Ej(),n=[0,1],t=!1,i;function r(a){var o=dke(e(a));return isNaN(o)?i:t?Math.round(o):o}return r.invert=function(a){return e.invert(qP(a))},r.domain=function(a){return arguments.length?(e.domain(a),r):e.domain()},r.range=function(a){return arguments.length?(e.range((n=Array.from(a,N1)).map(qP)),r):n.slice()},r.rangeRound=function(a){return r.range(a).round(!0)},r.round=function(a){return arguments.length?(t=!!a,r):t},r.clamp=function(a){return arguments.length?(e.clamp(a),r):e.clamp()},r.unknown=function(a){return arguments.length?(i=a,r):i},r.copy=function(){return MV(e.domain(),n).round(t).clamp(e.clamp()).unknown(i)},Oa.apply(r,arguments),$l(r)}function DV(){var e=[],n=[],t=[],i;function r(){var o=0,l=Math.max(1,n.length);for(t=new Array(l-1);++o0?t[l-1]:e[0],l=t?[i[t-1],n]:[i[f-1],i[f]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return i.slice()},o.copy=function(){return RV().domain([e,n]).range(r).unknown(a)},Oa.apply($l(o),arguments)}function PV(){var e=[.5],n=[0,1],t,i=1;function r(a){return a!=null&&a<=a?n[Rp(e,a,0,i)]:t}return r.domain=function(a){return arguments.length?(e=Array.from(a),i=Math.min(e.length,n.length-1),r):e.slice()},r.range=function(a){return arguments.length?(n=Array.from(a),i=Math.min(e.length,n.length-1),r):n.slice()},r.invertExtent=function(a){var o=n.indexOf(a);return[e[o-1],e[o]]},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return PV().domain(e).range(n).unknown(t)},Oa.apply(r,arguments)}const R3=new Date,P3=new Date;function Oi(e,n,t,i){function r(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return r.floor=a=>(e(a=new Date(+a)),a),r.ceil=a=>(e(a=new Date(a-1)),n(a,1),e(a),a),r.round=a=>{const o=r(a),l=r.ceil(a);return a-o(n(a=new Date(+a),o==null?1:Math.floor(o)),a),r.range=(a,o,l)=>{const u=[];if(a=r.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let f;do u.push(f=new Date(+a)),n(a,l),e(a);while(fOi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;n(o,-1),!a(o););else for(;--l>=0;)for(;n(o,1),!a(o););}),t&&(r.count=(a,o)=>(R3.setTime(+a),P3.setTime(+o),e(R3),e(P3),Math.floor(t(R3,P3))),r.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?r.filter(i?o=>i(o)%a===0:o=>r.count(0,o)%a===0):r)),r}const I1=Oi(()=>{},(e,n)=>{e.setTime(+e+n)},(e,n)=>n-e);I1.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oi(n=>{n.setTime(Math.floor(n/e)*e)},(n,t)=>{n.setTime(+n+t*e)},(n,t)=>(t-n)/e):I1);I1.range;const Xo=1e3,ya=Xo*60,Zo=ya*60,fs=Zo*24,zj=fs*7,HP=fs*30,N3=fs*365,_u=Oi(e=>{e.setTime(e-e.getMilliseconds())},(e,n)=>{e.setTime(+e+n*Xo)},(e,n)=>(n-e)/Xo,e=>e.getUTCSeconds());_u.range;const Lj=Oi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xo)},(e,n)=>{e.setTime(+e+n*ya)},(e,n)=>(n-e)/ya,e=>e.getMinutes());Lj.range;const Ij=Oi(e=>{e.setUTCSeconds(0,0)},(e,n)=>{e.setTime(+e+n*ya)},(e,n)=>(n-e)/ya,e=>e.getUTCMinutes());Ij.range;const Bj=Oi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xo-e.getMinutes()*ya)},(e,n)=>{e.setTime(+e+n*Zo)},(e,n)=>(n-e)/Zo,e=>e.getHours());Bj.range;const Fj=Oi(e=>{e.setUTCMinutes(0,0,0)},(e,n)=>{e.setTime(+e+n*Zo)},(e,n)=>(n-e)/Zo,e=>e.getUTCHours());Fj.range;const $p=Oi(e=>e.setHours(0,0,0,0),(e,n)=>e.setDate(e.getDate()+n),(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ya)/fs,e=>e.getDate()-1);$p.range;const eb=Oi(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/fs,e=>e.getUTCDate()-1);eb.range;const NV=Oi(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/fs,e=>Math.floor(e/fs));NV.range;function Zu(e){return Oi(n=>{n.setDate(n.getDate()-(n.getDay()+7-e)%7),n.setHours(0,0,0,0)},(n,t)=>{n.setDate(n.getDate()+t*7)},(n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*ya)/zj)}const nb=Zu(0),B1=Zu(1),hke=Zu(2),mke=Zu(3),bf=Zu(4),pke=Zu(5),vke=Zu(6);nb.range;B1.range;hke.range;mke.range;bf.range;pke.range;vke.range;function Qu(e){return Oi(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-e)%7),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t*7)},(n,t)=>(t-n)/zj)}const tb=Qu(0),F1=Qu(1),gke=Qu(2),yke=Qu(3),wf=Qu(4),bke=Qu(5),wke=Qu(6);tb.range;F1.range;gke.range;yke.range;wf.range;bke.range;wke.range;const qj=Oi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,n)=>{e.setMonth(e.getMonth()+n)},(e,n)=>n.getMonth()-e.getMonth()+(n.getFullYear()-e.getFullYear())*12,e=>e.getMonth());qj.range;const Hj=Oi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCMonth(e.getUTCMonth()+n)},(e,n)=>n.getUTCMonth()-e.getUTCMonth()+(n.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Hj.range;const ds=Oi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n)},(e,n)=>n.getFullYear()-e.getFullYear(),e=>e.getFullYear());ds.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oi(n=>{n.setFullYear(Math.floor(n.getFullYear()/e)*e),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,t)=>{n.setFullYear(n.getFullYear()+t*e)});ds.range;const hs=Oi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n)},(e,n)=>n.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());hs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oi(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/e)*e),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCFullYear(n.getUTCFullYear()+t*e)});hs.range;function $V(e,n,t,i,r,a){const o=[[_u,1,Xo],[_u,5,5*Xo],[_u,15,15*Xo],[_u,30,30*Xo],[a,1,ya],[a,5,5*ya],[a,15,15*ya],[a,30,30*ya],[r,1,Zo],[r,3,3*Zo],[r,6,6*Zo],[r,12,12*Zo],[i,1,fs],[i,2,2*fs],[t,1,zj],[n,1,HP],[n,3,3*HP],[e,1,N3]];function l(f,h,d){const p=hk).right(o,p);if(g===o.length)return e.every(U4(f/N3,h/N3,d));if(g===0)return I1.every(Math.max(U4(f,h,d),1));const[b,w]=o[p/o[g-1][2]53)return null;"w"in te||(te.w=1),"Z"in te?(xe=z3(Oh(te.y,0,1)),Oe=xe.getUTCDay(),xe=Oe>4||Oe===0?F1.ceil(xe):F1(xe),xe=eb.offset(xe,(te.V-1)*7),te.y=xe.getUTCFullYear(),te.m=xe.getUTCMonth(),te.d=xe.getUTCDate()+(te.w+6)%7):(xe=$3(Oh(te.y,0,1)),Oe=xe.getDay(),xe=Oe>4||Oe===0?B1.ceil(xe):B1(xe),xe=$p.offset(xe,(te.V-1)*7),te.y=xe.getFullYear(),te.m=xe.getMonth(),te.d=xe.getDate()+(te.w+6)%7)}else("W"in te||"U"in te)&&("w"in te||(te.w="u"in te?te.u%7:"W"in te?1:0),Oe="Z"in te?z3(Oh(te.y,0,1)).getUTCDay():$3(Oh(te.y,0,1)).getDay(),te.m=0,te.d="W"in te?(te.w+6)%7+te.W*7-(Oe+5)%7:te.w+te.U*7-(Oe+6)%7);return"Z"in te?(te.H+=te.Z/100|0,te.M+=te.Z%100,z3(te)):$3(te)}}function $(ee,se,ke,te){for(var $e=0,xe=se.length,Oe=ke.length,ze,we;$e=Oe)return-1;if(ze=se.charCodeAt($e++),ze===37){if(ze=se.charAt($e++),we=A[ze in UP?se.charAt($e++):ze],!we||(te=we(ee,ke,te))<0)return-1}else if(ze!=ke.charCodeAt(te++))return-1}return te}function q(ee,se,ke){var te=f.exec(se.slice(ke));return te?(ee.p=h.get(te[0].toLowerCase()),ke+te[0].length):-1}function R(ee,se,ke){var te=g.exec(se.slice(ke));return te?(ee.w=b.get(te[0].toLowerCase()),ke+te[0].length):-1}function I(ee,se,ke){var te=d.exec(se.slice(ke));return te?(ee.w=p.get(te[0].toLowerCase()),ke+te[0].length):-1}function z(ee,se,ke){var te=_.exec(se.slice(ke));return te?(ee.m=x.get(te[0].toLowerCase()),ke+te[0].length):-1}function W(ee,se,ke){var te=w.exec(se.slice(ke));return te?(ee.m=k.get(te[0].toLowerCase()),ke+te[0].length):-1}function U(ee,se,ke){return $(ee,n,se,ke)}function N(ee,se,ke){return $(ee,t,se,ke)}function D(ee,se,ke){return $(ee,i,se,ke)}function L(ee){return o[ee.getDay()]}function H(ee){return a[ee.getDay()]}function Y(ee){return u[ee.getMonth()]}function P(ee){return l[ee.getMonth()]}function G(ee){return r[+(ee.getHours()>=12)]}function V(ee){return 1+~~(ee.getMonth()/3)}function B(ee){return o[ee.getUTCDay()]}function Q(ee){return a[ee.getUTCDay()]}function ie(ee){return u[ee.getUTCMonth()]}function re(ee){return l[ee.getUTCMonth()]}function Z(ee){return r[+(ee.getUTCHours()>=12)]}function le(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var se=O(ee+="",C);return se.toString=function(){return ee},se},parse:function(ee){var se=M(ee+="",!1);return se.toString=function(){return ee},se},utcFormat:function(ee){var se=O(ee+="",T);return se.toString=function(){return ee},se},utcParse:function(ee){var se=M(ee+="",!0);return se.toString=function(){return ee},se}}}var UP={"-":"",_:" ",0:"0"},$i=/^\s*\d+/,jke=/^%/,Ake=/[\\^$*+?|[\]().{}]/g;function gt(e,n,t){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a[n.toLowerCase(),t]))}function Tke(e,n,t){var i=$i.exec(n.slice(t,t+1));return i?(e.w=+i[0],t+i[0].length):-1}function Eke(e,n,t){var i=$i.exec(n.slice(t,t+1));return i?(e.u=+i[0],t+i[0].length):-1}function Mke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.U=+i[0],t+i[0].length):-1}function Dke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.V=+i[0],t+i[0].length):-1}function Rke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.W=+i[0],t+i[0].length):-1}function VP(e,n,t){var i=$i.exec(n.slice(t,t+4));return i?(e.y=+i[0],t+i[0].length):-1}function WP(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function Pke(e,n,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(t,t+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function Nke(e,n,t){var i=$i.exec(n.slice(t,t+1));return i?(e.q=i[0]*3-3,t+i[0].length):-1}function $ke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.m=i[0]-1,t+i[0].length):-1}function GP(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.d=+i[0],t+i[0].length):-1}function zke(e,n,t){var i=$i.exec(n.slice(t,t+3));return i?(e.m=0,e.d=+i[0],t+i[0].length):-1}function YP(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.H=+i[0],t+i[0].length):-1}function Lke(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.M=+i[0],t+i[0].length):-1}function Ike(e,n,t){var i=$i.exec(n.slice(t,t+2));return i?(e.S=+i[0],t+i[0].length):-1}function Bke(e,n,t){var i=$i.exec(n.slice(t,t+3));return i?(e.L=+i[0],t+i[0].length):-1}function Fke(e,n,t){var i=$i.exec(n.slice(t,t+6));return i?(e.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function qke(e,n,t){var i=jke.exec(n.slice(t,t+1));return i?t+i[0].length:-1}function Hke(e,n,t){var i=$i.exec(n.slice(t));return i?(e.Q=+i[0],t+i[0].length):-1}function Uke(e,n,t){var i=$i.exec(n.slice(t));return i?(e.s=+i[0],t+i[0].length):-1}function KP(e,n){return gt(e.getDate(),n,2)}function Vke(e,n){return gt(e.getHours(),n,2)}function Wke(e,n){return gt(e.getHours()%12||12,n,2)}function Gke(e,n){return gt(1+$p.count(ds(e),e),n,3)}function zV(e,n){return gt(e.getMilliseconds(),n,3)}function Yke(e,n){return zV(e,n)+"000"}function Kke(e,n){return gt(e.getMonth()+1,n,2)}function Xke(e,n){return gt(e.getMinutes(),n,2)}function Zke(e,n){return gt(e.getSeconds(),n,2)}function Qke(e){var n=e.getDay();return n===0?7:n}function Jke(e,n){return gt(nb.count(ds(e)-1,e),n,2)}function LV(e){var n=e.getDay();return n>=4||n===0?bf(e):bf.ceil(e)}function e_e(e,n){return e=LV(e),gt(bf.count(ds(e),e)+(ds(e).getDay()===4),n,2)}function n_e(e){return e.getDay()}function t_e(e,n){return gt(B1.count(ds(e)-1,e),n,2)}function i_e(e,n){return gt(e.getFullYear()%100,n,2)}function r_e(e,n){return e=LV(e),gt(e.getFullYear()%100,n,2)}function a_e(e,n){return gt(e.getFullYear()%1e4,n,4)}function o_e(e,n){var t=e.getDay();return e=t>=4||t===0?bf(e):bf.ceil(e),gt(e.getFullYear()%1e4,n,4)}function s_e(e){var n=e.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+gt(n/60|0,"0",2)+gt(n%60,"0",2)}function XP(e,n){return gt(e.getUTCDate(),n,2)}function l_e(e,n){return gt(e.getUTCHours(),n,2)}function u_e(e,n){return gt(e.getUTCHours()%12||12,n,2)}function c_e(e,n){return gt(1+eb.count(hs(e),e),n,3)}function IV(e,n){return gt(e.getUTCMilliseconds(),n,3)}function f_e(e,n){return IV(e,n)+"000"}function d_e(e,n){return gt(e.getUTCMonth()+1,n,2)}function h_e(e,n){return gt(e.getUTCMinutes(),n,2)}function m_e(e,n){return gt(e.getUTCSeconds(),n,2)}function p_e(e){var n=e.getUTCDay();return n===0?7:n}function v_e(e,n){return gt(tb.count(hs(e)-1,e),n,2)}function BV(e){var n=e.getUTCDay();return n>=4||n===0?wf(e):wf.ceil(e)}function g_e(e,n){return e=BV(e),gt(wf.count(hs(e),e)+(hs(e).getUTCDay()===4),n,2)}function y_e(e){return e.getUTCDay()}function b_e(e,n){return gt(F1.count(hs(e)-1,e),n,2)}function w_e(e,n){return gt(e.getUTCFullYear()%100,n,2)}function k_e(e,n){return e=BV(e),gt(e.getUTCFullYear()%100,n,2)}function __e(e,n){return gt(e.getUTCFullYear()%1e4,n,4)}function x_e(e,n){var t=e.getUTCDay();return e=t>=4||t===0?wf(e):wf.ceil(e),gt(e.getUTCFullYear()%1e4,n,4)}function S_e(){return"+0000"}function ZP(){return"%"}function QP(e){return+e}function JP(e){return Math.floor(+e/1e3)}var Bc,FV,qV;C_e({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 C_e(e){return Bc=Cke(e),FV=Bc.format,Bc.parse,qV=Bc.utcFormat,Bc.utcParse,Bc}function j_e(e){return new Date(e)}function A_e(e){return e instanceof Date?+e:+new Date(+e)}function Uj(e,n,t,i,r,a,o,l,u,f){var h=Ej(),d=h.invert,p=h.domain,g=f(".%L"),b=f(":%S"),w=f("%I:%M"),k=f("%I %p"),_=f("%a %d"),x=f("%b %d"),C=f("%B"),T=f("%Y");function A(O){return(u(O)n(r/(e.length-1)))},t.quantiles=function(i){return Array.from({length:i+1},(r,a)=>vwe(e,a/i))},t.copy=function(){return WV(n).domain(e)},Ss.apply(t,arguments)}function rb(){var e=0,n=.5,t=1,i=1,r,a,o,l,u,f=lr,h,d=!1,p;function g(w){return isNaN(w=+w)?p:(w=.5+((w=+h(w))-a)*(i*wt}return I3=e,I3}var B3,iN;function R_e(){if(iN)return B3;iN=1;var e=XV(),n=D_e(),t=fd();function i(r){return r&&r.length?e(r,t,n):void 0}return B3=i,B3}var P_e=R_e();const cl=yt(P_e);var F3,rN;function N_e(){if(rN)return F3;rN=1;function e(n,t){return ne.e^a.s<0?1:-1;for(i=a.d.length,r=e.d.length,n=0,t=ie.d[n]^a.s<0?1:-1;return i===r?0:i>r^a.s<0?1:-1};cn.decimalPlaces=cn.dp=function(){var e=this,n=e.d.length-1,t=(n-e.e)*Yt;if(n=e.d[n],n)for(;n%10==0;n/=10)t--;return t<0?0:t};cn.dividedBy=cn.div=function(e){return as(this,new this.constructor(e))};cn.dividedToIntegerBy=cn.idiv=function(e){var n=this,t=n.constructor;return $t(as(n,new t(e),0,1),t.precision)};cn.equals=cn.eq=function(e){return!this.cmp(e)};cn.exponent=function(){return wi(this)};cn.greaterThan=cn.gt=function(e){return this.cmp(e)>0};cn.greaterThanOrEqualTo=cn.gte=function(e){return this.cmp(e)>=0};cn.isInteger=cn.isint=function(){return this.e>this.d.length-2};cn.isNegative=cn.isneg=function(){return this.s<0};cn.isPositive=cn.ispos=function(){return this.s>0};cn.isZero=function(){return this.s===0};cn.lessThan=cn.lt=function(e){return this.cmp(e)<0};cn.lessThanOrEqualTo=cn.lte=function(e){return this.cmp(e)<1};cn.logarithm=cn.log=function(e){var n,t=this,i=t.constructor,r=i.precision,a=r+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(Wr))throw Error(_a+"NaN");if(t.s<1)throw Error(_a+(t.s?"NaN":"-Infinity"));return t.eq(Wr)?new i(0):(Jt=!1,n=as(Nm(t,a),Nm(e,a),a),Jt=!0,$t(n,r))};cn.minus=cn.sub=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?eW(n,e):QV(n,(e.s=-e.s,e))};cn.modulo=cn.mod=function(e){var n,t=this,i=t.constructor,r=i.precision;if(e=new i(e),!e.s)throw Error(_a+"NaN");return t.s?(Jt=!1,n=as(t,e,0,1).times(e),Jt=!0,t.minus(n)):$t(new i(t),r)};cn.naturalExponential=cn.exp=function(){return JV(this)};cn.naturalLogarithm=cn.ln=function(){return Nm(this)};cn.negated=cn.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};cn.plus=cn.add=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?QV(n,e):eW(n,(e.s=-e.s,e))};cn.precision=cn.sd=function(e){var n,t,i,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Au+e);if(n=wi(r)+1,i=r.d.length-1,t=i*Yt+1,i=r.d[i],i){for(;i%10==0;i/=10)t--;for(i=r.d[0];i>=10;i/=10)t++}return e&&n>t?n:t};cn.squareRoot=cn.sqrt=function(){var e,n,t,i,r,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(_a+"NaN")}for(e=wi(l),Jt=!1,r=Math.sqrt(+l),r==0||r==1/0?(n=ro(l.d),(n.length+e)%2==0&&(n+="0"),r=Math.sqrt(n),e=md((e+1)/2)-(e<0||e%2),r==1/0?n="5e"+e:(n=r.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),i=new u(n)):i=new u(r.toString()),t=u.precision,r=o=t+3;;)if(a=i,i=a.plus(as(l,a,o+2)).times(.5),ro(a.d).slice(0,o)===(n=ro(i.d)).slice(0,o)){if(n=n.slice(o-3,o+1),r==o&&n=="4999"){if($t(a,t+1,0),a.times(a).eq(l)){i=a;break}}else if(n!="9999")break;o+=4}return Jt=!0,$t(i,t)};cn.times=cn.mul=function(e){var n,t,i,r,a,o,l,u,f,h=this,d=h.constructor,p=h.d,g=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,t=h.e+e.e,u=p.length,f=g.length,u=0;){for(n=0,r=u+i;r>i;)l=a[r]+g[i]*p[r-i-1]+n,a[r--]=l%Di|0,n=l/Di|0;a[r]=(a[r]+n)%Di|0}for(;!a[--o];)a.pop();return n?++t:a.shift(),e.d=a,e.e=t,Jt?$t(e,d.precision):e};cn.toDecimalPlaces=cn.todp=function(e,n){var t=this,i=t.constructor;return t=new i(t),e===void 0?t:(go(e,0,hd),n===void 0?n=i.rounding:go(n,0,8),$t(t,e+wi(t)+1,n))};cn.toExponential=function(e,n){var t,i=this,r=i.constructor;return e===void 0?t=Lu(i,!0):(go(e,0,hd),n===void 0?n=r.rounding:go(n,0,8),i=$t(new r(i),e+1,n),t=Lu(i,!0,e+1)),t};cn.toFixed=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?Lu(r):(go(e,0,hd),n===void 0?n=a.rounding:go(n,0,8),i=$t(new a(r),e+wi(r)+1,n),t=Lu(i.abs(),!1,e+wi(i)+1),r.isneg()&&!r.isZero()?"-"+t:t)};cn.toInteger=cn.toint=function(){var e=this,n=e.constructor;return $t(new n(e),wi(e)+1,n.rounding)};cn.toNumber=function(){return+this};cn.toPower=cn.pow=function(e){var n,t,i,r,a,o,l=this,u=l.constructor,f=12,h=+(e=new u(e));if(!e.s)return new u(Wr);if(l=new u(l),!l.s){if(e.s<1)throw Error(_a+"Infinity");return l}if(l.eq(Wr))return l;if(i=u.precision,e.eq(Wr))return $t(l,i);if(n=e.e,t=e.d.length-1,o=n>=t,a=l.s,o){if((t=h<0?-h:h)<=ZV){for(r=new u(Wr),n=Math.ceil(i/Yt+4),Jt=!1;t%2&&(r=r.times(l),cN(r.d,n)),t=md(t/2),t!==0;)l=l.times(l),cN(l.d,n);return Jt=!0,e.s<0?new u(Wr).div(r):$t(r,i)}}else if(a<0)throw Error(_a+"NaN");return a=a<0&&e.d[Math.max(n,t)]&1?-1:1,l.s=1,Jt=!1,r=e.times(Nm(l,i+f)),Jt=!0,r=JV(r),r.s=a,r};cn.toPrecision=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?(t=wi(r),i=Lu(r,t<=a.toExpNeg||t>=a.toExpPos)):(go(e,1,hd),n===void 0?n=a.rounding:go(n,0,8),r=$t(new a(r),e,n),t=wi(r),i=Lu(r,e<=t||t<=a.toExpNeg,e)),i};cn.toSignificantDigits=cn.tosd=function(e,n){var t=this,i=t.constructor;return e===void 0?(e=i.precision,n=i.rounding):(go(e,1,hd),n===void 0?n=i.rounding:go(n,0,8)),$t(new i(t),e,n)};cn.toString=cn.valueOf=cn.val=cn.toJSON=cn[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,n=wi(e),t=e.constructor;return Lu(e,n<=t.toExpNeg||n>=t.toExpPos)};function QV(e,n){var t,i,r,a,o,l,u,f,h=e.constructor,d=h.precision;if(!e.s||!n.s)return n.s||(n=new h(e)),Jt?$t(n,d):n;if(u=e.d,f=n.d,o=e.e,r=n.e,u=u.slice(),a=o-r,a){for(a<0?(i=u,a=-a,l=f.length):(i=f,r=o,l=u.length),o=Math.ceil(d/Yt),l=o>l?o+1:l+1,a>l&&(a=l,i.length=1),i.reverse();a--;)i.push(0);i.reverse()}for(l=u.length,a=f.length,l-a<0&&(a=l,i=f,f=u,u=i),t=0;a;)t=(u[--a]=u[a]+f[a]+t)/Di|0,u[a]%=Di;for(t&&(u.unshift(t),++r),l=u.length;u[--l]==0;)u.pop();return n.d=u,n.e=r,Jt?$t(n,d):n}function go(e,n,t){if(e!==~~e||et)throw Error(Au+e)}function ro(e){var n,t,i,r=e.length-1,a="",o=e[0];if(r>0){for(a+=o,n=1;no?1:-1;else for(l=u=0;lr[l]?1:-1;break}return u}function t(i,r,a){for(var o=0;a--;)i[a]-=o,o=i[a]1;)i.shift()}return function(i,r,a,o){var l,u,f,h,d,p,g,b,w,k,_,x,C,T,A,O,M,$,q=i.constructor,R=i.s==r.s?1:-1,I=i.d,z=r.d;if(!i.s)return new q(i);if(!r.s)throw Error(_a+"Division by zero");for(u=i.e-r.e,M=z.length,A=I.length,g=new q(R),b=g.d=[],f=0;z[f]==(I[f]||0);)++f;if(z[f]>(I[f]||0)&&--u,a==null?x=a=q.precision:o?x=a+(wi(i)-wi(r))+1:x=a,x<0)return new q(0);if(x=x/Yt+2|0,f=0,M==1)for(h=0,z=z[0],x++;(f1&&(z=e(z,h),I=e(I,h),M=z.length,A=I.length),T=M,w=I.slice(0,M),k=w.length;k=Di/2&&++O;do h=0,l=n(z,w,M,k),l<0?(_=w[0],M!=k&&(_=_*Di+(w[1]||0)),h=_/O|0,h>1?(h>=Di&&(h=Di-1),d=e(z,h),p=d.length,k=w.length,l=n(d,w,p,k),l==1&&(h--,t(d,M16)throw Error(Gj+wi(e));if(!e.s)return new h(Wr);for(Jt=!1,l=d,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),f+=5;for(i=Math.log(pu(2,f))/Math.LN10*2+5|0,l+=i,t=r=a=new h(Wr),h.precision=l;;){if(r=$t(r.times(e),l),t=t.times(++u),o=a.plus(as(r,t,l)),ro(o.d).slice(0,l)===ro(a.d).slice(0,l)){for(;f--;)a=$t(a.times(a),l);return h.precision=d,n==null?(Jt=!0,$t(a,d)):a}a=o}}function wi(e){for(var n=e.e*Yt,t=e.d[0];t>=10;t/=10)n++;return n}function W3(e,n,t){if(n>e.LN10.sd())throw Jt=!0,t&&(e.precision=t),Error(_a+"LN10 precision limit exceeded");return $t(new e(e.LN10),n)}function rl(e){for(var n="";e--;)n+="0";return n}function Nm(e,n){var t,i,r,a,o,l,u,f,h,d=1,p=10,g=e,b=g.d,w=g.constructor,k=w.precision;if(g.s<1)throw Error(_a+(g.s?"NaN":"-Infinity"));if(g.eq(Wr))return new w(0);if(n==null?(Jt=!1,f=k):f=n,g.eq(10))return n==null&&(Jt=!0),W3(w,f);if(f+=p,w.precision=f,t=ro(b),i=t.charAt(0),a=wi(g),Math.abs(a)<15e14){for(;i<7&&i!=1||i==1&&t.charAt(1)>3;)g=g.times(e),t=ro(g.d),i=t.charAt(0),d++;a=wi(g),i>1?(g=new w("0."+t),a++):g=new w(i+"."+t.slice(1))}else return u=W3(w,f+2,k).times(a+""),g=Nm(new w(i+"."+t.slice(1)),f-p).plus(u),w.precision=k,n==null?(Jt=!0,$t(g,k)):g;for(l=o=g=as(g.minus(Wr),g.plus(Wr),f),h=$t(g.times(g),f),r=3;;){if(o=$t(o.times(h),f),u=l.plus(as(o,new w(r),f)),ro(u.d).slice(0,f)===ro(l.d).slice(0,f))return l=l.times(2),a!==0&&(l=l.plus(W3(w,f+2,k).times(a+""))),l=as(l,new w(d),f),w.precision=k,n==null?(Jt=!0,$t(l,k)):l;l=u,r+=2}}function uN(e,n){var t,i,r;for((t=n.indexOf("."))>-1&&(n=n.replace(".","")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charCodeAt(i)===48;)++i;for(r=n.length;n.charCodeAt(r-1)===48;)--r;if(n=n.slice(i,r),n){if(r-=i,t=t-i-1,e.e=md(t/Yt),e.d=[],i=(t+1)%Yt,t<0&&(i+=Yt),iq1||e.e<-q1))throw Error(Gj+t)}else e.s=0,e.e=0,e.d=[0];return e}function $t(e,n,t){var i,r,a,o,l,u,f,h,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(i=n-o,i<0)i+=Yt,r=n,f=d[h=0];else{if(h=Math.ceil((i+1)/Yt),a=d.length,h>=a)return e;for(f=a=d[h],o=1;a>=10;a/=10)o++;i%=Yt,r=i-Yt+o}if(t!==void 0&&(a=pu(10,o-r-1),l=f/a%10|0,u=n<0||d[h+1]!==void 0||f%a,u=t<4?(l||u)&&(t==0||t==(e.s<0?3:2)):l>5||l==5&&(t==4||u||t==6&&(i>0?r>0?f/pu(10,o-r):0:d[h-1])%10&1||t==(e.s<0?8:7))),n<1||!d[0])return u?(a=wi(e),d.length=1,n=n-a-1,d[0]=pu(10,(Yt-n%Yt)%Yt),e.e=md(-n/Yt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(i==0?(d.length=h,a=1,h--):(d.length=h+1,a=pu(10,Yt-i),d[h]=r>0?(f/pu(10,o-r)%pu(10,r)|0)*a:0),u)for(;;)if(h==0){(d[0]+=a)==Di&&(d[0]=1,++e.e);break}else{if(d[h]+=a,d[h]!=Di)break;d[h--]=0,a=1}for(i=d.length;d[--i]===0;)d.pop();if(Jt&&(e.e>q1||e.e<-q1))throw Error(Gj+wi(e));return e}function eW(e,n){var t,i,r,a,o,l,u,f,h,d,p=e.constructor,g=p.precision;if(!e.s||!n.s)return n.s?n.s=-n.s:n=new p(e),Jt?$t(n,g):n;if(u=e.d,d=n.d,i=n.e,f=e.e,u=u.slice(),o=f-i,o){for(h=o<0,h?(t=u,o=-o,l=d.length):(t=d,i=f,l=u.length),r=Math.max(Math.ceil(g/Yt),l)+2,o>r&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for(r=u.length,l=d.length,h=r0;--r)u[l++]=0;for(r=d.length;r>o;){if(u[--r]0?a=a.charAt(0)+"."+a.slice(1)+rl(i):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(r<0?"e":"e+")+r):r<0?(a="0."+rl(-r-1)+a,t&&(i=t-o)>0&&(a+=rl(i))):r>=o?(a+=rl(r+1-o),t&&(i=t-r-1)>0&&(a=a+"."+rl(i))):((i=r+1)0&&(r+1===o&&(a+="."),a+=rl(i))),e.s<0?"-"+a:a}function cN(e,n){if(e.length>n)return e.length=n,!0}function nW(e){var n,t,i;function r(a){var o=this;if(!(o instanceof r))return new r(a);if(o.constructor=r,a instanceof r){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Au+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return uN(o,a.toString())}else if(typeof a!="string")throw Error(Au+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,V_e.test(a))uN(o,a);else throw Error(Au+a)}if(r.prototype=cn,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.clone=nW,r.config=r.set=W_e,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=r[n+1]&&i<=r[n+2])this[t]=i;else throw Error(Au+t+": "+i);if((i=e[t="LN10"])!==void 0)if(i==Math.LN10)this[t]=new this(i);else throw Error(Au+t+": "+i);return this}var Yj=nW(U_e);Wr=new Yj(1);const Tt=Yj;function G_e(e){return Z_e(e)||X_e(e)||K_e(e)||Y_e()}function Y_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K_e(e,n){if(e){if(typeof e=="string")return K4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K4(e,n)}}function X_e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Z_e(e){if(Array.isArray(e))return K4(e)}function K4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=n?t.apply(void 0,r):e(n-o,fN(function(){for(var l=arguments.length,u=new Array(l),f=0;fe.length)&&(n=e.length);for(var t=0,i=new Array(n);t"u"||!(Symbol.iterator in Object(e)))){var t=[],i=!0,r=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(t.push(l.value),!(n&&t.length===n));i=!0);}catch(u){r=!0,a=u}finally{try{!i&&o.return!=null&&o.return()}finally{if(r)throw a}}return t}}function d2e(e){if(Array.isArray(e))return e}function oW(e){var n=$m(e,2),t=n[0],i=n[1],r=t,a=i;return t>i&&(r=i,a=t),[r,a]}function sW(e,n,t){if(e.lte(0))return new Tt(0);var i=sb.getDigitCount(e.toNumber()),r=new Tt(10).pow(i),a=e.div(r),o=i!==1?.05:.1,l=new Tt(Math.ceil(a.div(o).toNumber())).add(t).mul(o),u=l.mul(r);return n?u:new Tt(Math.ceil(u))}function h2e(e,n,t){var i=1,r=new Tt(e);if(!r.isint()&&t){var a=Math.abs(e);a<1?(i=new Tt(10).pow(sb.getDigitCount(e)-1),r=new Tt(Math.floor(r.div(i).toNumber())).mul(i)):a>1&&(r=new Tt(Math.floor(e)))}else e===0?r=new Tt(Math.floor((n-1)/2)):t||(r=new Tt(Math.floor(e)));var o=Math.floor((n-1)/2),l=n2e(e2e(function(u){return r.add(new Tt(u-o).mul(i)).toNumber()}),X4);return l(0,n)}function lW(e,n,t,i){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-e)/(t-1)))return{step:new Tt(0),tickMin:new Tt(0),tickMax:new Tt(0)};var a=sW(new Tt(n).sub(e).div(t-1),i,r),o;e<=0&&n>=0?o=new Tt(0):(o=new Tt(e).add(n).div(2),o=o.sub(new Tt(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new Tt(n).sub(o).div(a).toNumber()),f=l+u+1;return f>t?lW(e,n,t,i,r+1):(f0?u+(t-f):u,l=n>0?l:l+(t-f)),{step:a,tickMin:o.sub(new Tt(l).mul(a)),tickMax:o.add(new Tt(u).mul(a))})}function m2e(e){var n=$m(e,2),t=n[0],i=n[1],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),l=oW([t,i]),u=$m(l,2),f=u[0],h=u[1];if(f===-1/0||h===1/0){var d=h===1/0?[f].concat(Q4(X4(0,r-1).map(function(){return 1/0}))):[].concat(Q4(X4(0,r-1).map(function(){return-1/0})),[h]);return t>i?Z4(d):d}if(f===h)return h2e(f,r,a);var p=lW(f,h,o,a),g=p.step,b=p.tickMin,w=p.tickMax,k=sb.rangeStep(b,w.add(new Tt(.1).mul(g)),g);return t>i?Z4(k):k}function p2e(e,n){var t=$m(e,2),i=t[0],r=t[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=oW([i,r]),l=$m(o,2),u=l[0],f=l[1];if(u===-1/0||f===1/0)return[i,r];if(u===f)return[u];var h=Math.max(n,2),d=sW(new Tt(f).sub(u).div(h-1),a,0),p=[].concat(Q4(sb.rangeStep(new Tt(u),new Tt(f).sub(new Tt(.99).mul(d)),d)),[f]);return i>r?Z4(p):p}var v2e=rW(m2e),g2e=rW(p2e),y2e="Invariant failed";function Iu(e,n){throw new Error(y2e)}var b2e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_f(e)}function H1(){return H1=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function j2e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function A2e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function O2e(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(t=i==null?void 0:i.length)!==null&&t!==void 0?t:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,f=0;f0?r[f-1].coordinate:r[l-1].coordinate,d=r[f].coordinate,p=f>=l-1?r[0].coordinate:r[f+1].coordinate,g=void 0;if(Fa(d-h)!==Fa(p-d)){var b=[];if(Fa(p-d)===Fa(u[1]-u[0])){g=p;var w=d+u[1]-u[0];b[0]=Math.min(w,(w+h)/2),b[1]=Math.max(w,(w+h)/2)}else{g=h;var k=p+u[1]-u[0];b[0]=Math.min(d,(k+d)/2),b[1]=Math.max(d,(k+d)/2)}var _=[Math.min(d,(g+d)/2),Math.max(d,(g+d)/2)];if(n>_[0]&&n<=_[1]||n>=b[0]&&n<=b[1]){o=r[f].index;break}}else{var x=Math.min(h,p),C=Math.max(h,p);if(n>(x+d)/2&&n<=(C+d)/2){o=r[f].index;break}}}else for(var T=0;T0&&T(i[T].coordinate+i[T-1].coordinate)/2&&n<=(i[T].coordinate+i[T+1].coordinate)/2||T===l-1&&n>(i[T].coordinate+i[T-1].coordinate)/2){o=i[T].index;break}return o},Kj=function(n){var t,i=n,r=i.type.displayName,a=(t=n.type)!==null&&t!==void 0&&t.defaultProps?ii(ii({},n.type.defaultProps),n.props):n.props,o=a.stroke,l=a.fill,u;switch(r){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},V2e=function(n){var t=n.barSize,i=n.totalSize,r=n.stackGroups,a=r===void 0?{}:r;if(!a)return{};for(var o={},l=Object.keys(a),u=0,f=l.length;u=0});if(_&&_.length){var x=_[0].type.defaultProps,C=x!==void 0?ii(ii({},x),_[0].props):_[0].props,T=C.barSize,A=C[k];o[A]||(o[A]=[]);var O=Zn(T)?t:T;o[A].push({item:_[0],stackList:_.slice(1),barSize:Zn(O)?void 0:zu(O,i,0)})}}return o},W2e=function(n){var t=n.barGap,i=n.barCategoryGap,r=n.bandSize,a=n.sizeList,o=a===void 0?[]:a,l=n.maxBarSize,u=o.length;if(u<1)return null;var f=zu(t,r,0,!0),h,d=[];if(o[0].barSize===+o[0].barSize){var p=!1,g=r/u,b=o.reduce(function(T,A){return T+A.barSize||0},0);b+=(u-1)*f,b>=r&&(b-=(u-1)*f,f=0),b>=r&&g>0&&(p=!0,g*=.9,b=u*g);var w=(r-b)/2>>0,k={offset:w-f,size:0};h=o.reduce(function(T,A){var O={item:A.item,position:{offset:k.offset+k.size+f,size:p?g:A.barSize}},M=[].concat(mN(T),[O]);return k=M[M.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function($){M.push({item:$,position:k})}),M},d)}else{var _=zu(i,r,0,!0);r-2*_-(u-1)*f<=0&&(f=0);var x=(r-2*_-(u-1)*f)/u;x>1&&(x>>=0);var C=l===+l?Math.min(x,l):x;h=o.reduce(function(T,A,O){var M=[].concat(mN(T),[{item:A.item,position:{offset:_+(x+f)*O+(x-C)/2,size:C}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function($){M.push({item:$,position:M[M.length-1].position})}),M},d)}return h},G2e=function(n,t,i,r){var a=i.children,o=i.width,l=i.margin,u=o-(l.left||0)-(l.right||0),f=dW({children:a,legendWidth:u});if(f){var h=r||{},d=h.width,p=h.height,g=f.align,b=f.verticalAlign,w=f.layout;if((w==="vertical"||w==="horizontal"&&b==="middle")&&g!=="center"&&Ge(n[g]))return ii(ii({},n),{},rf({},g,n[g]+(d||0)));if((w==="horizontal"||w==="vertical"&&g==="center")&&b!=="middle"&&Ge(n[b]))return ii(ii({},n),{},rf({},b,n[b]+(p||0)))}return n},Y2e=function(n,t,i){return Zn(t)?!0:n==="horizontal"?t==="yAxis":n==="vertical"||i==="x"?t==="xAxis":i==="y"?t==="yAxis":!0},hW=function(n,t,i,r,a){var o=t.props.children,l=wa(o,zp).filter(function(f){return Y2e(r,a,f.props.direction)});if(l&&l.length){var u=l.map(function(f){return f.props.dataKey});return n.reduce(function(f,h){var d=fr(h,i);if(Zn(d))return f;var p=Array.isArray(d)?[ab(d),cl(d)]:[d,d],g=u.reduce(function(b,w){var k=fr(h,w,0),_=p[0]-Math.abs(Array.isArray(k)?k[0]:k),x=p[1]+Math.abs(Array.isArray(k)?k[1]:k);return[Math.min(_,b[0]),Math.max(x,b[1])]},[1/0,-1/0]);return[Math.min(g[0],f[0]),Math.max(g[1],f[1])]},[1/0,-1/0])}return null},K2e=function(n,t,i,r,a){var o=t.map(function(l){return hW(n,l,i,a,r)}).filter(function(l){return!Zn(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},mW=function(n,t,i,r,a){var o=t.map(function(u){var f=u.props.dataKey;return i==="number"&&f&&hW(n,u,f,r)||rm(n,f,i,a)});if(i==="number")return o.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,f){for(var h=0,d=f.length;h=2?Fa(l[0]-l[1])*2*f:f,t&&(n.ticks||n.niceTicks)){var h=(n.ticks||n.niceTicks).map(function(d){var p=a?a.indexOf(d):d;return{coordinate:r(p)+f,value:d,offset:f}});return h.filter(function(d){return!ud(d.coordinate)})}return n.isCategorical&&n.categoricalDomain?n.categoricalDomain.map(function(d,p){return{coordinate:r(d)+f,value:d,index:p,offset:f}}):r.ticks&&!i?r.ticks(n.tickCount).map(function(d){return{coordinate:r(d)+f,value:d,offset:f}}):r.domain().map(function(d,p){return{coordinate:r(d)+f,value:a?a[d]:d,index:p,offset:f}})},G3=new WeakMap,wg=function(n,t){if(typeof t!="function")return n;G3.has(n)||G3.set(n,new WeakMap);var i=G3.get(n);if(i.has(t))return i.get(t);var r=function(){n.apply(void 0,arguments),t.apply(void 0,arguments)};return i.set(t,r),r},X2e=function(n,t,i){var r=n.scale,a=n.type,o=n.layout,l=n.axisType;if(r==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Em(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:L1(),realScaleType:"linear"}:a==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!i)?{scale:im(),realScaleType:"point"}:a==="category"?{scale:Em(),realScaleType:"band"}:{scale:L1(),realScaleType:"linear"};if($u(r)){var u="scale".concat(W0(r));return{scale:(eN[u]||im)(),realScaleType:eN[u]?u:"point"}}return qn(r)?{scale:r}:{scale:im(),realScaleType:"point"}},vN=1e-4,Z2e=function(n){var t=n.domain();if(!(!t||t.length<=2)){var i=t.length,r=n.range(),a=Math.min(r[0],r[1])-vN,o=Math.max(r[0],r[1])+vN,l=n(t[0]),u=n(t[i-1]);(lo||uo)&&n.domain([t[0],t[i-1]])}},Q2e=function(n,t){if(!n)return null;for(var i=0,r=n.length;ir)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]=0?(n[l][i][0]=a,n[l][i][1]=a+u,a=n[l][i][1]):(n[l][i][0]=o,n[l][i][1]=o+u,o=n[l][i][1])}},nxe=function(n){var t=n.length;if(!(t<=0))for(var i=0,r=n[0].length;i=0?(n[o][i][0]=a,n[o][i][1]=a+l,a=n[o][i][1]):(n[o][i][0]=0,n[o][i][1]=0)}},txe={sign:exe,expand:I1e,none:hf,silhouette:B1e,wiggle:F1e,positive:nxe},ixe=function(n,t,i){var r=t.map(function(l){return l.props.dataKey}),a=txe[i],o=L1e().keys(r).value(function(l,u){return+fr(l,u,0)}).order(M4).offset(a);return o(n)},rxe=function(n,t,i,r,a,o){if(!n)return null;var l=o?t.reverse():t,u={},f=l.reduce(function(d,p){var g,b=(g=p.type)!==null&&g!==void 0&&g.defaultProps?ii(ii({},p.type.defaultProps),p.props):p.props,w=b.stackId,k=b.hide;if(k)return d;var _=b[i],x=d[_]||{hasStack:!1,stackGroups:{}};if(ji(w)){var C=x.stackGroups[w]||{numericAxisId:i,cateAxisId:r,items:[]};C.items.push(p),x.hasStack=!0,x.stackGroups[w]=C}else x.stackGroups[cd("_stackId_")]={numericAxisId:i,cateAxisId:r,items:[p]};return ii(ii({},d),{},rf({},_,x))},u),h={};return Object.keys(f).reduce(function(d,p){var g=f[p];if(g.hasStack){var b={};g.stackGroups=Object.keys(g.stackGroups).reduce(function(w,k){var _=g.stackGroups[k];return ii(ii({},w),{},rf({},k,{numericAxisId:i,cateAxisId:r,items:_.items,stackedData:ixe(n,_.items,a)}))},b)}return ii(ii({},d),{},rf({},p,g))},h)},axe=function(n,t){var i=t.realScaleType,r=t.type,a=t.tickCount,o=t.originalDomain,l=t.allowDecimals,u=i||t.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var f=n.domain();if(!f.length)return null;var h=v2e(f,a,l);return n.domain([ab(h),cl(h)]),{niceTicks:h}}if(a&&r==="number"){var d=n.domain(),p=g2e(d,a,l);return{niceTicks:p}}return null};function V1(e){var n=e.axis,t=e.ticks,i=e.bandSize,r=e.entry,a=e.index,o=e.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Zn(r[n.dataKey])){var l=g1(t,"value",r[n.dataKey]);if(l)return l.coordinate+i/2}return t[a]?t[a].coordinate+i/2:null}var u=fr(r,Zn(o)?n.dataKey:o);return Zn(u)?null:n.scale(u)}var gN=function(n){var t=n.axis,i=n.ticks,r=n.offset,a=n.bandSize,o=n.entry,l=n.index;if(t.type==="category")return i[l]?i[l].coordinate+r:null;var u=fr(o,t.dataKey,t.domain[l]);return Zn(u)?null:t.scale(u)-a/2+r},oxe=function(n){var t=n.numericAxis,i=t.scale.domain();if(t.type==="number"){var r=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);return r<=0&&a>=0?0:a<0?a:r}return i[0]},sxe=function(n,t){var i,r=(i=n.type)!==null&&i!==void 0&&i.defaultProps?ii(ii({},n.type.defaultProps),n.props):n.props,a=r.stackId;if(ji(a)){var o=t[a];if(o){var l=o.items.indexOf(n);return l>=0?o.stackedData[l]:null}}return null},lxe=function(n){return n.reduce(function(t,i){return[ab(i.concat([t[0]]).filter(Ge)),cl(i.concat([t[1]]).filter(Ge))]},[1/0,-1/0])},gW=function(n,t,i){return Object.keys(n).reduce(function(r,a){var o=n[a],l=o.stackedData,u=l.reduce(function(f,h){var d=lxe(h.slice(t,i+1));return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},yN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,t6=function(n,t,i){if(qn(n))return n(t,i);if(!Array.isArray(n))return t;var r=[];if(Ge(n[0]))r[0]=i?n[0]:Math.min(n[0],t[0]);else if(yN.test(n[0])){var a=+yN.exec(n[0])[1];r[0]=t[0]-a}else qn(n[0])?r[0]=n[0](t[0]):r[0]=t[0];if(Ge(n[1]))r[1]=i?n[1]:Math.max(n[1],t[1]);else if(bN.test(n[1])){var o=+bN.exec(n[1])[1];r[1]=t[1]+o}else qn(n[1])?r[1]=n[1](t[1]):r[1]=t[1];return r},W1=function(n,t,i){if(n&&n.scale&&n.scale.bandwidth){var r=n.scale.bandwidth();if(!i||r>0)return r}if(n&&t&&t.length>=2){for(var a=_j(t,function(d){return d.coordinate}),o=1/0,l=1,u=a.length;lo&&(f=2*Math.PI-f),{radius:l,angle:dxe(f),angleInRadian:f}},pxe=function(n){var t=n.startAngle,i=n.endAngle,r=Math.floor(t/360),a=Math.floor(i/360),o=Math.min(r,a);return{startAngle:t-o*360,endAngle:i-o*360}},vxe=function(n,t){var i=t.startAngle,r=t.endAngle,a=Math.floor(i/360),o=Math.floor(r/360),l=Math.min(a,o);return n+l*360},xN=function(n,t){var i=n.x,r=n.y,a=mxe({x:i,y:r},t),o=a.radius,l=a.angle,u=t.innerRadius,f=t.outerRadius;if(of)return!1;if(o===0)return!0;var h=pxe(t),d=h.startAngle,p=h.endAngle,g=l,b;if(d<=p){for(;g>p;)g-=360;for(;g=d&&g<=p}else{for(;g>d;)g-=360;for(;g=p&&g<=d}return b?_N(_N({},t),{},{radius:o,angle:vxe(g,t)}):null};function Bm(e){"@babel/helpers - typeof";return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}var gxe=["offset"];function yxe(e){return _xe(e)||kxe(e)||wxe(e)||bxe()}function bxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wxe(e,n){if(e){if(typeof e=="string")return i6(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i6(e,n)}}function kxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _xe(e){if(Array.isArray(e))return i6(e)}function i6(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Sxe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function SN(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Si(e){for(var n=1;n=0?1:-1,C,T;r==="insideStart"?(C=g+x*o,T=w):r==="insideEnd"?(C=b-x*o,T=!w):r==="end"&&(C=b+x*o,T=w),T=_<=0?T:!T;var A=Vi(f,h,k,C),O=Vi(f,h,k,C+(T?1:-1)*359),M="M".concat(A.x,",").concat(A.y,` A`).concat(k,",").concat(k,",0,1,").concat(T?0:1,`, - `).concat(O.x,",").concat(O.y),$=Zn(n.id)?cd("recharts-radial-line-"):n.id;return J.createElement("text",Fm({},i,{dominantBaseline:"central",className:vn("recharts-radial-bar-label",l)}),J.createElement("defs",null,J.createElement("path",{id:$,d:M})),J.createElement("textPath",{xlinkHref:"#".concat($)},t))},Axe=function(n){var t=n.viewBox,i=n.offset,r=n.position,a=t,o=a.cx,l=a.cy,u=a.innerRadius,f=a.outerRadius,h=a.startAngle,d=a.endAngle,p=(h+d)/2;if(r==="outside"){var g=Vi(o,l,f+i,p),b=g.x,w=g.y;return{x:b,y:w,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var k=(u+f)/2,_=Vi(o,l,k,p),S=_.x,j=_.y;return{x:S,y:j,textAnchor:"middle",verticalAnchor:"middle"}},Oxe=function(n){var t=n.viewBox,i=n.parentViewBox,r=n.offset,a=n.position,o=t,l=o.x,u=o.y,f=o.width,h=o.height,d=h>=0?1:-1,p=d*r,g=d>0?"end":"start",b=d>0?"start":"end",w=f>=0?1:-1,k=w*r,_=w>0?"end":"start",S=w>0?"start":"end";if(a==="top"){var j={x:l+f/2,y:u-d*r,textAnchor:"middle",verticalAnchor:g};return Si(Si({},j),i?{height:Math.max(u-i.y,0),width:f}:{})}if(a==="bottom"){var T={x:l+f/2,y:u+h+p,textAnchor:"middle",verticalAnchor:b};return Si(Si({},T),i?{height:Math.max(i.y+i.height-(u+h),0),width:f}:{})}if(a==="left"){var A={x:l-k,y:u+h/2,textAnchor:_,verticalAnchor:"middle"};return Si(Si({},A),i?{width:Math.max(A.x-i.x,0),height:h}:{})}if(a==="right"){var O={x:l+f+k,y:u+h/2,textAnchor:S,verticalAnchor:"middle"};return Si(Si({},O),i?{width:Math.max(i.x+i.width-O.x,0),height:h}:{})}var M=i?{width:f,height:h}:{};return a==="insideLeft"?Si({x:l+k,y:u+h/2,textAnchor:S,verticalAnchor:"middle"},M):a==="insideRight"?Si({x:l+f-k,y:u+h/2,textAnchor:_,verticalAnchor:"middle"},M):a==="insideTop"?Si({x:l+f/2,y:u+p,textAnchor:"middle",verticalAnchor:b},M):a==="insideBottom"?Si({x:l+f/2,y:u+h-p,textAnchor:"middle",verticalAnchor:g},M):a==="insideTopLeft"?Si({x:l+k,y:u+p,textAnchor:S,verticalAnchor:b},M):a==="insideTopRight"?Si({x:l+f-k,y:u+p,textAnchor:_,verticalAnchor:b},M):a==="insideBottomLeft"?Si({x:l+k,y:u+h-p,textAnchor:S,verticalAnchor:g},M):a==="insideBottomRight"?Si({x:l+f-k,y:u+h-p,textAnchor:_,verticalAnchor:g},M):ld(a)&&(Ge(a.x)||wu(a.x))&&(Ge(a.y)||wu(a.y))?Si({x:l+$u(a.x,f),y:u+$u(a.y,h),textAnchor:"end",verticalAnchor:"end"},M):Si({x:l+f/2,y:u+h/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Txe=function(n){return"cx"in n&&Ge(n.cx)};function ri(e){var n=e.offset,t=n===void 0?5:n,i=bxe(e,hxe),r=Si({offset:t},i),a=r.viewBox,o=r.position,l=r.value,u=r.children,f=r.content,h=r.className,d=h===void 0?"":h,p=r.textBreakAll;if(!a||Zn(l)&&Zn(u)&&!x.isValidElement(f)&&!Fn(f))return null;if(x.isValidElement(f))return x.cloneElement(f,r);var g;if(Fn(f)){if(g=x.createElement(f,r),x.isValidElement(g))return g}else g=Sxe(r);var b=Txe(a),w=Un(r,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return jxe(r,g,w);var k=b?Axe(r):Oxe(r);return J.createElement(T1,Fm({className:vn("recharts-label",d)},w,k,{breakAll:p}),g)}ri.displayName="Label";var bW=function(n){var t=n.cx,i=n.cy,r=n.angle,a=n.startAngle,o=n.endAngle,l=n.r,u=n.radius,f=n.innerRadius,h=n.outerRadius,d=n.x,p=n.y,g=n.top,b=n.left,w=n.width,k=n.height,_=n.clockWise,S=n.labelViewBox;if(S)return S;if(Ge(w)&&Ge(k)){if(Ge(d)&&Ge(p))return{x:d,y:p,width:w,height:k};if(Ge(g)&&Ge(b))return{x:g,y:b,width:w,height:k}}return Ge(d)&&Ge(p)?{x:d,y:p,width:0,height:0}:Ge(t)&&Ge(i)?{cx:t,cy:i,startAngle:a||r||0,endAngle:o||r||0,innerRadius:f||0,outerRadius:h||u||l||0,clockWise:_}:n.viewBox?n.viewBox:{}},Exe=function(n,t){return n?n===!0?J.createElement(ri,{key:"label-implicit",viewBox:t}):ji(n)?J.createElement(ri,{key:"label-implicit",viewBox:t,value:n}):x.isValidElement(n)?n.type===ri?x.cloneElement(n,{key:"label-implicit",viewBox:t}):J.createElement(ri,{key:"label-implicit",content:n,viewBox:t}):Fn(n)?J.createElement(ri,{key:"label-implicit",content:n,viewBox:t}):ld(n)?J.createElement(ri,Fm({viewBox:t},n,{key:"label-implicit"})):null:null},Mxe=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!n||!n.children&&i&&!n.label)return null;var r=n.children,a=bW(n),o=wa(r,ri).map(function(u,f){return x.cloneElement(u,{viewBox:t||a,key:"label-".concat(f)})});if(!i)return o;var l=Exe(n.label,t||a);return[l].concat(mxe(o))};ri.parseViewBox=bW;ri.renderCallByParent=Mxe;var G3,SN;function Dxe(){if(SN)return G3;SN=1;function e(n){var t=n==null?0:n.length;return t?n[t-1]:void 0}return G3=e,G3}var Rxe=Dxe();const Pxe=yt(Rxe);function qm(e){"@babel/helpers - typeof";return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qm(e)}var Nxe=["valueAccessor"],$xe=["data","dataKey","clockWise","id","textBreakAll"];function zxe(e){return Fxe(e)||Bxe(e)||Ixe(e)||Lxe()}function Lxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ixe(e,n){if(e){if(typeof e=="string")return r6(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r6(e,n)}}function Bxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fxe(e){if(Array.isArray(e))return r6(e)}function r6(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Vxe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var Wxe=function(n){return Array.isArray(n.value)?Pxe(n.value):n.value};function lo(e){var n=e.valueAccessor,t=n===void 0?Wxe:n,i=AN(e,Nxe),r=i.data,a=i.dataKey,o=i.clockWise,l=i.id,u=i.textBreakAll,f=AN(i,$xe);return!r||!r.length?null:J.createElement(Ft,{className:"recharts-label-list"},r.map(function(h,d){var p=Zn(a)?t(h,d):cr(h&&h.payload,a),g=Zn(l)?{}:{id:"".concat(l,"-").concat(d)};return J.createElement(ri,G1({},Un(h,!0),f,g,{parentViewBox:h.parentViewBox,value:p,textBreakAll:u,viewBox:ri.parseViewBox(Zn(o)?h:jN(jN({},h),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}lo.displayName="LabelList";function Gxe(e,n){return e?e===!0?J.createElement(lo,{key:"labelList-implicit",data:n}):J.isValidElement(e)||Fn(e)?J.createElement(lo,{key:"labelList-implicit",data:n,content:e}):ld(e)?J.createElement(lo,G1({data:n},e,{key:"labelList-implicit"})):null:null}function Yxe(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&t&&!e.label)return null;var i=e.children,r=wa(i,lo).map(function(o,l){return x.cloneElement(o,{data:n,key:"labelList-".concat(l)})});if(!t)return r;var a=Gxe(e.label,n);return[a].concat(zxe(r))}lo.renderCallByParent=Yxe;function Hm(e){"@babel/helpers - typeof";return Hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hm(e)}function a6(){return a6=Object.assign?Object.assign.bind():function(e){for(var n=1;n=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var k=(u+f)/2,_=Vi(o,l,k,p),x=_.x,C=_.y;return{x,y:C,textAnchor:"middle",verticalAnchor:"middle"}},Dxe=function(n){var t=n.viewBox,i=n.parentViewBox,r=n.offset,a=n.position,o=t,l=o.x,u=o.y,f=o.width,h=o.height,d=h>=0?1:-1,p=d*r,g=d>0?"end":"start",b=d>0?"start":"end",w=f>=0?1:-1,k=w*r,_=w>0?"end":"start",x=w>0?"start":"end";if(a==="top"){var C={x:l+f/2,y:u-d*r,textAnchor:"middle",verticalAnchor:g};return Si(Si({},C),i?{height:Math.max(u-i.y,0),width:f}:{})}if(a==="bottom"){var T={x:l+f/2,y:u+h+p,textAnchor:"middle",verticalAnchor:b};return Si(Si({},T),i?{height:Math.max(i.y+i.height-(u+h),0),width:f}:{})}if(a==="left"){var A={x:l-k,y:u+h/2,textAnchor:_,verticalAnchor:"middle"};return Si(Si({},A),i?{width:Math.max(A.x-i.x,0),height:h}:{})}if(a==="right"){var O={x:l+f+k,y:u+h/2,textAnchor:x,verticalAnchor:"middle"};return Si(Si({},O),i?{width:Math.max(i.x+i.width-O.x,0),height:h}:{})}var M=i?{width:f,height:h}:{};return a==="insideLeft"?Si({x:l+k,y:u+h/2,textAnchor:x,verticalAnchor:"middle"},M):a==="insideRight"?Si({x:l+f-k,y:u+h/2,textAnchor:_,verticalAnchor:"middle"},M):a==="insideTop"?Si({x:l+f/2,y:u+p,textAnchor:"middle",verticalAnchor:b},M):a==="insideBottom"?Si({x:l+f/2,y:u+h-p,textAnchor:"middle",verticalAnchor:g},M):a==="insideTopLeft"?Si({x:l+k,y:u+p,textAnchor:x,verticalAnchor:b},M):a==="insideTopRight"?Si({x:l+f-k,y:u+p,textAnchor:_,verticalAnchor:b},M):a==="insideBottomLeft"?Si({x:l+k,y:u+h-p,textAnchor:x,verticalAnchor:g},M):a==="insideBottomRight"?Si({x:l+f-k,y:u+h-p,textAnchor:_,verticalAnchor:g},M):ld(a)&&(Ge(a.x)||wu(a.x))&&(Ge(a.y)||wu(a.y))?Si({x:l+zu(a.x,f),y:u+zu(a.y,h),textAnchor:"end",verticalAnchor:"end"},M):Si({x:l+f/2,y:u+h/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Rxe=function(n){return"cx"in n&&Ge(n.cx)};function ri(e){var n=e.offset,t=n===void 0?5:n,i=xxe(e,gxe),r=Si({offset:t},i),a=r.viewBox,o=r.position,l=r.value,u=r.children,f=r.content,h=r.className,d=h===void 0?"":h,p=r.textBreakAll;if(!a||Zn(l)&&Zn(u)&&!S.isValidElement(f)&&!qn(f))return null;if(S.isValidElement(f))return S.cloneElement(f,r);var g;if(qn(f)){if(g=S.createElement(f,r),S.isValidElement(g))return g}else g=Oxe(r);var b=Rxe(a),w=Wn(r,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Exe(r,g,w);var k=b?Mxe(r):Dxe(r);return J.createElement(E1,Fm({className:vn("recharts-label",d)},w,k,{breakAll:p}),g)}ri.displayName="Label";var bW=function(n){var t=n.cx,i=n.cy,r=n.angle,a=n.startAngle,o=n.endAngle,l=n.r,u=n.radius,f=n.innerRadius,h=n.outerRadius,d=n.x,p=n.y,g=n.top,b=n.left,w=n.width,k=n.height,_=n.clockWise,x=n.labelViewBox;if(x)return x;if(Ge(w)&&Ge(k)){if(Ge(d)&&Ge(p))return{x:d,y:p,width:w,height:k};if(Ge(g)&&Ge(b))return{x:g,y:b,width:w,height:k}}return Ge(d)&&Ge(p)?{x:d,y:p,width:0,height:0}:Ge(t)&&Ge(i)?{cx:t,cy:i,startAngle:a||r||0,endAngle:o||r||0,innerRadius:f||0,outerRadius:h||u||l||0,clockWise:_}:n.viewBox?n.viewBox:{}},Pxe=function(n,t){return n?n===!0?J.createElement(ri,{key:"label-implicit",viewBox:t}):ji(n)?J.createElement(ri,{key:"label-implicit",viewBox:t,value:n}):S.isValidElement(n)?n.type===ri?S.cloneElement(n,{key:"label-implicit",viewBox:t}):J.createElement(ri,{key:"label-implicit",content:n,viewBox:t}):qn(n)?J.createElement(ri,{key:"label-implicit",content:n,viewBox:t}):ld(n)?J.createElement(ri,Fm({viewBox:t},n,{key:"label-implicit"})):null:null},Nxe=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!n||!n.children&&i&&!n.label)return null;var r=n.children,a=bW(n),o=wa(r,ri).map(function(u,f){return S.cloneElement(u,{viewBox:t||a,key:"label-".concat(f)})});if(!i)return o;var l=Pxe(n.label,t||a);return[l].concat(yxe(o))};ri.parseViewBox=bW;ri.renderCallByParent=Nxe;var Y3,CN;function $xe(){if(CN)return Y3;CN=1;function e(n){var t=n==null?0:n.length;return t?n[t-1]:void 0}return Y3=e,Y3}var zxe=$xe();const Lxe=yt(zxe);function qm(e){"@babel/helpers - typeof";return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qm(e)}var Ixe=["valueAccessor"],Bxe=["data","dataKey","clockWise","id","textBreakAll"];function Fxe(e){return Vxe(e)||Uxe(e)||Hxe(e)||qxe()}function qxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hxe(e,n){if(e){if(typeof e=="string")return r6(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r6(e,n)}}function Uxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vxe(e){if(Array.isArray(e))return r6(e)}function r6(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Kxe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var Xxe=function(n){return Array.isArray(n.value)?Lxe(n.value):n.value};function uo(e){var n=e.valueAccessor,t=n===void 0?Xxe:n,i=ON(e,Ixe),r=i.data,a=i.dataKey,o=i.clockWise,l=i.id,u=i.textBreakAll,f=ON(i,Bxe);return!r||!r.length?null:J.createElement(qt,{className:"recharts-label-list"},r.map(function(h,d){var p=Zn(a)?t(h,d):fr(h&&h.payload,a),g=Zn(l)?{}:{id:"".concat(l,"-").concat(d)};return J.createElement(ri,Y1({},Wn(h,!0),f,g,{parentViewBox:h.parentViewBox,value:p,textBreakAll:u,viewBox:ri.parseViewBox(Zn(o)?h:AN(AN({},h),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}uo.displayName="LabelList";function Zxe(e,n){return e?e===!0?J.createElement(uo,{key:"labelList-implicit",data:n}):J.isValidElement(e)||qn(e)?J.createElement(uo,{key:"labelList-implicit",data:n,content:e}):ld(e)?J.createElement(uo,Y1({data:n},e,{key:"labelList-implicit"})):null:null}function Qxe(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&t&&!e.label)return null;var i=e.children,r=wa(i,uo).map(function(o,l){return S.cloneElement(o,{data:n,key:"labelList-".concat(l)})});if(!t)return r;var a=Zxe(e.label,n);return[a].concat(Fxe(r))}uo.renderCallByParent=Qxe;function Hm(e){"@babel/helpers - typeof";return Hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hm(e)}function a6(){return a6=Object.assign?Object.assign.bind():function(e){for(var n=1;n180),",").concat(+(o>f),`, `).concat(d.x,",").concat(d.y,` `);if(r>0){var g=Vi(t,i,r,o),b=Vi(t,i,r,f);p+="L ".concat(b.x,",").concat(b.y,` A `).concat(r,",").concat(r,`,0, `).concat(+(Math.abs(u)>180),",").concat(+(o<=f),`, - `).concat(g.x,",").concat(g.y," Z")}else p+="L ".concat(t,",").concat(i," Z");return p},Jxe=function(n){var t=n.cx,i=n.cy,r=n.innerRadius,a=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,h=n.endAngle,d=Fa(h-f),p=kg({cx:t,cy:i,radius:a,angle:f,sign:d,cornerRadius:o,cornerIsExternal:u}),g=p.circleTangency,b=p.lineTangency,w=p.theta,k=kg({cx:t,cy:i,radius:a,angle:h,sign:-d,cornerRadius:o,cornerIsExternal:u}),_=k.circleTangency,S=k.lineTangency,j=k.theta,T=u?Math.abs(f-h):Math.abs(f-h)-w-j;if(T<0)return l?"M ".concat(b.x,",").concat(b.y,` + `).concat(g.x,",").concat(g.y," Z")}else p+="L ".concat(t,",").concat(i," Z");return p},i3e=function(n){var t=n.cx,i=n.cy,r=n.innerRadius,a=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,h=n.endAngle,d=Fa(h-f),p=kg({cx:t,cy:i,radius:a,angle:f,sign:d,cornerRadius:o,cornerIsExternal:u}),g=p.circleTangency,b=p.lineTangency,w=p.theta,k=kg({cx:t,cy:i,radius:a,angle:h,sign:-d,cornerRadius:o,cornerIsExternal:u}),_=k.circleTangency,x=k.lineTangency,C=k.theta,T=u?Math.abs(f-h):Math.abs(f-h)-w-C;if(T<0)return l?"M ".concat(b.x,",").concat(b.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 `):wW({cx:t,cy:i,innerRadius:r,outerRadius:a,startAngle:f,endAngle:h});var A="M ".concat(b.x,",").concat(b.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(g.x,",").concat(g.y,` A`).concat(a,",").concat(a,",0,").concat(+(T>180),",").concat(+(d<0),",").concat(_.x,",").concat(_.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(S.x,",").concat(S.y,` - `);if(r>0){var O=kg({cx:t,cy:i,radius:r,angle:f,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),M=O.circleTangency,$=O.lineTangency,q=O.theta,P=kg({cx:t,cy:i,radius:r,angle:h,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),L=P.circleTangency,U=P.lineTangency,G=P.theta,B=u?Math.abs(f-h):Math.abs(f-h)-q-G;if(B<0&&o===0)return"".concat(A,"L").concat(t,",").concat(i,"Z");A+="L".concat(U.x,",").concat(U.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(L.x,",").concat(L.y,` - A`).concat(r,",").concat(r,",0,").concat(+(B>180),",").concat(+(d>0),",").concat(M.x,",").concat(M.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat($.x,",").concat($.y,"Z")}else A+="L".concat(t,",").concat(i,"Z");return A},e3e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},kW=function(n){var t=TN(TN({},e3e),n),i=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,u=t.forceCornerRadius,f=t.cornerIsExternal,h=t.startAngle,d=t.endAngle,p=t.className;if(o0&&Math.abs(h-d)<360?k=Jxe({cx:i,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(w,b/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:h,endAngle:d}):k=wW({cx:i,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:d}),J.createElement("path",a6({},Un(t,!0),{className:g,d:k,role:"img"}))};function Um(e){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function o6(){return o6=Object.assign?Object.assign.bind():function(e){for(var n=1;nl3e.call(e,n));function Qu(e,n){return e===n||!e&&!n&&e!==e&&n!==n}const f3e="__v",d3e="__o",h3e="_owner",{getOwnPropertyDescriptor:PN,keys:NN}=Object;function m3e(e,n){return e.byteLength===n.byteLength&&Y1(new Uint8Array(e),new Uint8Array(n))}function p3e(e,n,t){let i=e.length;if(n.length!==i)return!1;for(;i-- >0;)if(!t.equals(e[i],n[i],i,i,e,n,t))return!1;return!0}function v3e(e,n){return e.byteLength===n.byteLength&&Y1(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function g3e(e,n){return Qu(e.getTime(),n.getTime())}function y3e(e,n){return e.name===n.name&&e.message===n.message&&e.cause===n.cause&&e.stack===n.stack}function b3e(e,n){return e===n}function $N(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.entries();let o,l,u=0;for(;(o=a.next())&&!o.done;){const f=n.entries();let h=!1,d=0;for(;(l=f.next())&&!l.done;){if(r[d]){d++;continue}const p=o.value,g=l.value;if(t.equals(p[0],g[0],u,d,e,n,t)&&t.equals(p[1],g[1],p[0],g[0],e,n,t)){h=r[d]=!0;break}d++}if(!h)return!1;u++}return!0}const w3e=Qu;function k3e(e,n,t){const i=NN(e);let r=i.length;if(NN(n).length!==r)return!1;for(;r-- >0;)if(!_W(e,n,t,i[r]))return!1;return!0}function Rh(e,n,t){const i=RN(e);let r=i.length;if(RN(n).length!==r)return!1;let a,o,l;for(;r-- >0;)if(a=i[r],!_W(e,n,t,a)||(o=PN(e,a),l=PN(n,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function _3e(e,n){return Qu(e.valueOf(),n.valueOf())}function x3e(e,n){return e.source===n.source&&e.flags===n.flags}function zN(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.values();let o,l;for(;(o=a.next())&&!o.done;){const u=n.values();let f=!1,h=0;for(;(l=u.next())&&!l.done;){if(!r[h]&&t.equals(o.value,l.value,o.value,l.value,e,n,t)){f=r[h]=!0;break}h++}if(!f)return!1}return!0}function Y1(e,n){let t=e.byteLength;if(n.byteLength!==t||e.byteOffset!==n.byteOffset)return!1;for(;t-- >0;)if(e[t]!==n[t])return!1;return!0}function S3e(e,n){return e.hostname===n.hostname&&e.pathname===n.pathname&&e.protocol===n.protocol&&e.port===n.port&&e.hash===n.hash&&e.username===n.username&&e.password===n.password}function _W(e,n,t,i){return(i===h3e||i===d3e||i===f3e)&&(e.$$typeof||n.$$typeof)?!0:c3e(n,i)&&t.equals(e[i],n[i],i,i,e,n,t)}const C3e="[object ArrayBuffer]",j3e="[object Arguments]",A3e="[object Boolean]",O3e="[object DataView]",T3e="[object Date]",E3e="[object Error]",M3e="[object Map]",D3e="[object Number]",R3e="[object Object]",P3e="[object RegExp]",N3e="[object Set]",$3e="[object String]",z3e={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},L3e="[object URL]",I3e=Object.prototype.toString;function B3e({areArrayBuffersEqual:e,areArraysEqual:n,areDataViewsEqual:t,areDatesEqual:i,areErrorsEqual:r,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:f,areRegExpsEqual:h,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:g,unknownTagComparators:b}){return function(k,_,S){if(k===_)return!0;if(k==null||_==null)return!1;const j=typeof k;if(j!==typeof _)return!1;if(j!=="object")return j==="number"?l(k,_,S):j==="function"?a(k,_,S):!1;const T=k.constructor;if(T!==_.constructor)return!1;if(T===Object)return u(k,_,S);if(Array.isArray(k))return n(k,_,S);if(T===Date)return i(k,_,S);if(T===RegExp)return h(k,_,S);if(T===Map)return o(k,_,S);if(T===Set)return d(k,_,S);const A=I3e.call(k);if(A===T3e)return i(k,_,S);if(A===P3e)return h(k,_,S);if(A===M3e)return o(k,_,S);if(A===N3e)return d(k,_,S);if(A===R3e)return typeof k.then!="function"&&typeof _.then!="function"&&u(k,_,S);if(A===L3e)return g(k,_,S);if(A===E3e)return r(k,_,S);if(A===j3e)return u(k,_,S);if(z3e[A])return p(k,_,S);if(A===C3e)return e(k,_,S);if(A===O3e)return t(k,_,S);if(A===A3e||A===D3e||A===$3e)return f(k,_,S);if(b){let O=b[A];if(!O){const M=u3e(k);M&&(O=b[M])}if(O)return O(k,_,S)}return!1}}function F3e({circular:e,createCustomConfig:n,strict:t}){let i={areArrayBuffersEqual:m3e,areArraysEqual:t?Rh:p3e,areDataViewsEqual:v3e,areDatesEqual:g3e,areErrorsEqual:y3e,areFunctionsEqual:b3e,areMapsEqual:t?Y3($N,Rh):$N,areNumbersEqual:w3e,areObjectsEqual:t?Rh:k3e,arePrimitiveWrappersEqual:_3e,areRegExpsEqual:x3e,areSetsEqual:t?Y3(zN,Rh):zN,areTypedArraysEqual:t?Y3(Y1,Rh):Y1,areUrlsEqual:S3e,unknownTagComparators:void 0};if(n&&(i=Object.assign({},i,n(i))),e){const r=xg(i.areArraysEqual),a=xg(i.areMapsEqual),o=xg(i.areObjectsEqual),l=xg(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:r,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return i}function q3e(e){return function(n,t,i,r,a,o,l){return e(n,t,l)}}function H3e({circular:e,comparator:n,createState:t,equals:i,strict:r}){if(t)return function(l,u){const{cache:f=e?new WeakMap:void 0,meta:h}=t();return n(l,u,{cache:f,equals:i,meta:h,strict:r})};if(e)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:r})};const a={cache:void 0,equals:i,meta:void 0,strict:r};return function(l,u){return n(l,u,a)}}const U3e=Ll();Ll({strict:!0});Ll({circular:!0});Ll({circular:!0,strict:!0});Ll({createInternalComparator:()=>Qu});Ll({strict:!0,createInternalComparator:()=>Qu});Ll({circular:!0,createInternalComparator:()=>Qu});Ll({circular:!0,createInternalComparator:()=>Qu,strict:!0});function Ll(e={}){const{circular:n=!1,createInternalComparator:t,createState:i,strict:r=!1}=e,a=F3e(e),o=B3e(a),l=t?t(o):q3e(o);return H3e({circular:n,comparator:o,createState:i,equals:l,strict:r})}function V3e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function LN(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=-1,i=function r(a){t<0&&(t=a),a-t>n?(e(a),t=-1):V3e(r)};requestAnimationFrame(i)}function s6(e){"@babel/helpers - typeof";return s6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s6(e)}function W3e(e){return X3e(e)||K3e(e)||Y3e(e)||G3e()}function G3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y3e(e,n){if(e){if(typeof e=="string")return IN(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return IN(e,n)}}function IN(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);te.length)&&(n=e.length);for(var t=0,i=new Array(n);t1?1:_<0?0:_},w=function(_){for(var S=_>1?1:_,j=S,T=0;T<8;++T){var A=d(j)-S,O=g(j);if(Math.abs(A-S)0&&arguments[0]!==void 0?arguments[0]:{},t=n.stiff,i=t===void 0?100:t,r=n.damping,a=r===void 0?8:r,o=n.dt,l=o===void 0?17:o,u=function(h,d,p){var g=-(h-d)*i,b=p*a,w=p+(g-b)*l/1e3,k=p*l/1e3+h;return Math.abs(k-d)e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function ASe(e,n){if(e==null)return{};var t={},i=Object.keys(e),r,a;for(a=0;a=0)&&(t[r]=e[r]);return t}function K3(e){return MSe(e)||ESe(e)||TSe(e)||OSe()}function OSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TSe(e,n){if(e){if(typeof e=="string")return d6(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d6(e,n)}}function ESe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MSe(e){if(Array.isArray(e))return d6(e)}function d6(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z1(e){return Z1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Z1(e)}var yo=(function(e){$Se(t,e);var n=zSe(t);function t(i,r){var a;DSe(this,t),a=n.call(this,i,r);var o=a.props,l=o.isActive,u=o.attributeName,f=o.from,h=o.to,d=o.steps,p=o.children,g=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(p6(a)),a.changeStyle=a.changeStyle.bind(p6(a)),!l||g<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:h}),m6(a);if(d&&d.length)a.state={style:d[0].style};else if(f){if(typeof p=="function")return a.state={style:f},m6(a);a.state={style:u?Wh({},u,f):f}}else a.state={style:{}};return a}return PSe(t,[{key:"componentDidMount",value:function(){var r=this.props,a=r.isActive,o=r.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(r){var a=this.props,o=a.isActive,l=a.canBegin,u=a.attributeName,f=a.shouldReAnimate,h=a.to,d=a.from,p=this.state.style;if(l){if(!o){var g={style:u?Wh({},u,h):h};this.state&&p&&(u&&p[u]!==h||!u&&p!==h)&&this.setState(g);return}if(!(U3e(r.to,h)&&r.canBegin&&r.isActive)){var b=!r.canBegin||!r.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=b||f?d:r.to;if(this.state&&p){var k={style:u?Wh({},u,w):w};(u&&p[u]!==w||!u&&p!==w)&&this.setState(k)}this.runAnimation(Pa(Pa({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var r=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),r&&r()}},{key:"handleStyleChange",value:function(r){this.changeStyle(r)}},{key:"changeStyle",value:function(r){this.mounted&&this.setState({style:r})}},{key:"runJSAnimation",value:function(r){var a=this,o=r.from,l=r.to,u=r.duration,f=r.easing,h=r.begin,d=r.onAnimationEnd,p=r.onAnimationStart,g=SSe(o,l,hSe(f),u,this.changeStyle),b=function(){a.stopJSAnimation=g()};this.manager.start([p,h,b,u,d])}},{key:"runStepAnimation",value:function(r){var a=this,o=r.steps,l=r.begin,u=r.onAnimationStart,f=o[0],h=f.style,d=f.duration,p=d===void 0?0:d,g=function(w,k,_){if(_===0)return w;var S=k.duration,j=k.easing,T=j===void 0?"ease":j,A=k.style,O=k.properties,M=k.onAnimationEnd,$=_>0?o[_-1]:k,q=O||Object.keys(A);if(typeof T=="function"||T==="spring")return[].concat(K3(w),[a.runJSAnimation.bind(a,{from:$.style,to:A,duration:S,easing:T}),S]);var P=qN(q,S,T),L=Pa(Pa(Pa({},$.style),A),{},{transition:P});return[].concat(K3(w),[L,S,M]).filter(nSe)};return this.manager.start([u].concat(K3(o.reduce(g,[h,Math.max(p,l)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=Z3e());var a=r.begin,o=r.duration,l=r.attributeName,u=r.to,f=r.easing,h=r.onAnimationStart,d=r.onAnimationEnd,p=r.steps,g=r.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof f=="function"||typeof g=="function"||f==="spring"){this.runJSAnimation(r);return}if(p.length>1){this.runStepAnimation(r);return}var w=l?Wh({},l,u):u,k=qN(Object.keys(w),o,f);b.start([h,a,Pa(Pa({},w),{},{transition:k}),o,d])}},{key:"render",value:function(){var r=this.props,a=r.children;r.begin;var o=r.duration;r.attributeName,r.easing;var l=r.isActive;r.steps,r.from,r.to,r.canBegin,r.onAnimationEnd,r.shouldReAnimate,r.onAnimationReStart;var u=jSe(r,CSe),f=x.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||f===0||o<=0)return a;var d=function(g){var b=g.props,w=b.style,k=w===void 0?{}:w,_=b.className,S=x.cloneElement(g,Pa(Pa({},u),{},{style:Pa(Pa({},k),h),className:_}));return S};return f===1?d(x.Children.only(a)):J.createElement("div",null,x.Children.map(a,function(p){return d(p)}))}}]),t})(x.PureComponent);yo.displayName="Animate";yo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};yo.propTypes={from:kt.oneOfType([kt.object,kt.string]),to:kt.oneOfType([kt.object,kt.string]),attributeName:kt.string,duration:kt.number,begin:kt.number,easing:kt.oneOfType([kt.string,kt.func]),steps:kt.arrayOf(kt.shape({duration:kt.number.isRequired,style:kt.object.isRequired,easing:kt.oneOfType([kt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),kt.func]),properties:kt.arrayOf("string"),onAnimationEnd:kt.func})),children:kt.oneOfType([kt.node,kt.func]),isActive:kt.bool,canBegin:kt.bool,onAnimationEnd:kt.func,shouldReAnimate:kt.bool,onAnimationStart:kt.func,onAnimationReStart:kt.func};function Gm(e){"@babel/helpers - typeof";return Gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gm(e)}function Q1(){return Q1=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0?1:-1,u=i>=0?1:-1,f=r>=0&&i>=0||r<0&&i<0?1:0,h;if(o>0&&a instanceof Array){for(var d=[0,0,0,0],p=0,g=4;po?o:a[p];h="M".concat(n,",").concat(t+l*d[0]),d[0]>0&&(h+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(f,",").concat(n+u*d[0],",").concat(t)),h+="L ".concat(n+i-u*d[1],",").concat(t),d[1]>0&&(h+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(f,`, + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(x.x,",").concat(x.y,` + `);if(r>0){var O=kg({cx:t,cy:i,radius:r,angle:f,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),M=O.circleTangency,$=O.lineTangency,q=O.theta,R=kg({cx:t,cy:i,radius:r,angle:h,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),I=R.circleTangency,z=R.lineTangency,W=R.theta,U=u?Math.abs(f-h):Math.abs(f-h)-q-W;if(U<0&&o===0)return"".concat(A,"L").concat(t,",").concat(i,"Z");A+="L".concat(z.x,",").concat(z.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(I.x,",").concat(I.y,` + A`).concat(r,",").concat(r,",0,").concat(+(U>180),",").concat(+(d>0),",").concat(M.x,",").concat(M.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat($.x,",").concat($.y,"Z")}else A+="L".concat(t,",").concat(i,"Z");return A},r3e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},kW=function(n){var t=EN(EN({},r3e),n),i=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,u=t.forceCornerRadius,f=t.cornerIsExternal,h=t.startAngle,d=t.endAngle,p=t.className;if(o0&&Math.abs(h-d)<360?k=i3e({cx:i,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(w,b/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:h,endAngle:d}):k=wW({cx:i,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:d}),J.createElement("path",a6({},Wn(t,!0),{className:g,d:k,role:"img"}))};function Um(e){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function o6(){return o6=Object.assign?Object.assign.bind():function(e){for(var n=1;nd3e.call(e,n));function Ju(e,n){return e===n||!e&&!n&&e!==e&&n!==n}const p3e="__v",v3e="__o",g3e="_owner",{getOwnPropertyDescriptor:NN,keys:$N}=Object;function y3e(e,n){return e.byteLength===n.byteLength&&K1(new Uint8Array(e),new Uint8Array(n))}function b3e(e,n,t){let i=e.length;if(n.length!==i)return!1;for(;i-- >0;)if(!t.equals(e[i],n[i],i,i,e,n,t))return!1;return!0}function w3e(e,n){return e.byteLength===n.byteLength&&K1(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function k3e(e,n){return Ju(e.getTime(),n.getTime())}function _3e(e,n){return e.name===n.name&&e.message===n.message&&e.cause===n.cause&&e.stack===n.stack}function x3e(e,n){return e===n}function zN(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.entries();let o,l,u=0;for(;(o=a.next())&&!o.done;){const f=n.entries();let h=!1,d=0;for(;(l=f.next())&&!l.done;){if(r[d]){d++;continue}const p=o.value,g=l.value;if(t.equals(p[0],g[0],u,d,e,n,t)&&t.equals(p[1],g[1],p[0],g[0],e,n,t)){h=r[d]=!0;break}d++}if(!h)return!1;u++}return!0}const S3e=Ju;function C3e(e,n,t){const i=$N(e);let r=i.length;if($N(n).length!==r)return!1;for(;r-- >0;)if(!_W(e,n,t,i[r]))return!1;return!0}function Rh(e,n,t){const i=PN(e);let r=i.length;if(PN(n).length!==r)return!1;let a,o,l;for(;r-- >0;)if(a=i[r],!_W(e,n,t,a)||(o=NN(e,a),l=NN(n,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function j3e(e,n){return Ju(e.valueOf(),n.valueOf())}function A3e(e,n){return e.source===n.source&&e.flags===n.flags}function LN(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.values();let o,l;for(;(o=a.next())&&!o.done;){const u=n.values();let f=!1,h=0;for(;(l=u.next())&&!l.done;){if(!r[h]&&t.equals(o.value,l.value,o.value,l.value,e,n,t)){f=r[h]=!0;break}h++}if(!f)return!1}return!0}function K1(e,n){let t=e.byteLength;if(n.byteLength!==t||e.byteOffset!==n.byteOffset)return!1;for(;t-- >0;)if(e[t]!==n[t])return!1;return!0}function O3e(e,n){return e.hostname===n.hostname&&e.pathname===n.pathname&&e.protocol===n.protocol&&e.port===n.port&&e.hash===n.hash&&e.username===n.username&&e.password===n.password}function _W(e,n,t,i){return(i===g3e||i===v3e||i===p3e)&&(e.$$typeof||n.$$typeof)?!0:m3e(n,i)&&t.equals(e[i],n[i],i,i,e,n,t)}const T3e="[object ArrayBuffer]",E3e="[object Arguments]",M3e="[object Boolean]",D3e="[object DataView]",R3e="[object Date]",P3e="[object Error]",N3e="[object Map]",$3e="[object Number]",z3e="[object Object]",L3e="[object RegExp]",I3e="[object Set]",B3e="[object String]",F3e={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},q3e="[object URL]",H3e=Object.prototype.toString;function U3e({areArrayBuffersEqual:e,areArraysEqual:n,areDataViewsEqual:t,areDatesEqual:i,areErrorsEqual:r,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:f,areRegExpsEqual:h,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:g,unknownTagComparators:b}){return function(k,_,x){if(k===_)return!0;if(k==null||_==null)return!1;const C=typeof k;if(C!==typeof _)return!1;if(C!=="object")return C==="number"?l(k,_,x):C==="function"?a(k,_,x):!1;const T=k.constructor;if(T!==_.constructor)return!1;if(T===Object)return u(k,_,x);if(Array.isArray(k))return n(k,_,x);if(T===Date)return i(k,_,x);if(T===RegExp)return h(k,_,x);if(T===Map)return o(k,_,x);if(T===Set)return d(k,_,x);const A=H3e.call(k);if(A===R3e)return i(k,_,x);if(A===L3e)return h(k,_,x);if(A===N3e)return o(k,_,x);if(A===I3e)return d(k,_,x);if(A===z3e)return typeof k.then!="function"&&typeof _.then!="function"&&u(k,_,x);if(A===q3e)return g(k,_,x);if(A===P3e)return r(k,_,x);if(A===E3e)return u(k,_,x);if(F3e[A])return p(k,_,x);if(A===T3e)return e(k,_,x);if(A===D3e)return t(k,_,x);if(A===M3e||A===$3e||A===B3e)return f(k,_,x);if(b){let O=b[A];if(!O){const M=h3e(k);M&&(O=b[M])}if(O)return O(k,_,x)}return!1}}function V3e({circular:e,createCustomConfig:n,strict:t}){let i={areArrayBuffersEqual:y3e,areArraysEqual:t?Rh:b3e,areDataViewsEqual:w3e,areDatesEqual:k3e,areErrorsEqual:_3e,areFunctionsEqual:x3e,areMapsEqual:t?K3(zN,Rh):zN,areNumbersEqual:S3e,areObjectsEqual:t?Rh:C3e,arePrimitiveWrappersEqual:j3e,areRegExpsEqual:A3e,areSetsEqual:t?K3(LN,Rh):LN,areTypedArraysEqual:t?K3(K1,Rh):K1,areUrlsEqual:O3e,unknownTagComparators:void 0};if(n&&(i=Object.assign({},i,n(i))),e){const r=xg(i.areArraysEqual),a=xg(i.areMapsEqual),o=xg(i.areObjectsEqual),l=xg(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:r,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return i}function W3e(e){return function(n,t,i,r,a,o,l){return e(n,t,l)}}function G3e({circular:e,comparator:n,createState:t,equals:i,strict:r}){if(t)return function(l,u){const{cache:f=e?new WeakMap:void 0,meta:h}=t();return n(l,u,{cache:f,equals:i,meta:h,strict:r})};if(e)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:r})};const a={cache:void 0,equals:i,meta:void 0,strict:r};return function(l,u){return n(l,u,a)}}const Y3e=Ll();Ll({strict:!0});Ll({circular:!0});Ll({circular:!0,strict:!0});Ll({createInternalComparator:()=>Ju});Ll({strict:!0,createInternalComparator:()=>Ju});Ll({circular:!0,createInternalComparator:()=>Ju});Ll({circular:!0,createInternalComparator:()=>Ju,strict:!0});function Ll(e={}){const{circular:n=!1,createInternalComparator:t,createState:i,strict:r=!1}=e,a=V3e(e),o=U3e(a),l=t?t(o):W3e(o);return G3e({circular:n,comparator:o,createState:i,equals:l,strict:r})}function K3e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function IN(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=-1,i=function r(a){t<0&&(t=a),a-t>n?(e(a),t=-1):K3e(r)};requestAnimationFrame(i)}function s6(e){"@babel/helpers - typeof";return s6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s6(e)}function X3e(e){return eSe(e)||J3e(e)||Q3e(e)||Z3e()}function Z3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q3e(e,n){if(e){if(typeof e=="string")return BN(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return BN(e,n)}}function BN(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);te.length)&&(n=e.length);for(var t=0,i=new Array(n);t1?1:_<0?0:_},w=function(_){for(var x=_>1?1:_,C=x,T=0;T<8;++T){var A=d(C)-x,O=g(C);if(Math.abs(A-x)0&&arguments[0]!==void 0?arguments[0]:{},t=n.stiff,i=t===void 0?100:t,r=n.damping,a=r===void 0?8:r,o=n.dt,l=o===void 0?17:o,u=function(h,d,p){var g=-(h-d)*i,b=p*a,w=p+(g-b)*l/1e3,k=p*l/1e3+h;return Math.abs(k-d)e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function MSe(e,n){if(e==null)return{};var t={},i=Object.keys(e),r,a;for(a=0;a=0)&&(t[r]=e[r]);return t}function X3(e){return NSe(e)||PSe(e)||RSe(e)||DSe()}function DSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RSe(e,n){if(e){if(typeof e=="string")return d6(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d6(e,n)}}function PSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NSe(e){if(Array.isArray(e))return d6(e)}function d6(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Q1(e){return Q1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q1(e)}var yo=(function(e){BSe(t,e);var n=FSe(t);function t(i,r){var a;$Se(this,t),a=n.call(this,i,r);var o=a.props,l=o.isActive,u=o.attributeName,f=o.from,h=o.to,d=o.steps,p=o.children,g=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(p6(a)),a.changeStyle=a.changeStyle.bind(p6(a)),!l||g<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:h}),m6(a);if(d&&d.length)a.state={style:d[0].style};else if(f){if(typeof p=="function")return a.state={style:f},m6(a);a.state={style:u?Wh({},u,f):f}}else a.state={style:{}};return a}return LSe(t,[{key:"componentDidMount",value:function(){var r=this.props,a=r.isActive,o=r.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(r){var a=this.props,o=a.isActive,l=a.canBegin,u=a.attributeName,f=a.shouldReAnimate,h=a.to,d=a.from,p=this.state.style;if(l){if(!o){var g={style:u?Wh({},u,h):h};this.state&&p&&(u&&p[u]!==h||!u&&p!==h)&&this.setState(g);return}if(!(Y3e(r.to,h)&&r.canBegin&&r.isActive)){var b=!r.canBegin||!r.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=b||f?d:r.to;if(this.state&&p){var k={style:u?Wh({},u,w):w};(u&&p[u]!==w||!u&&p!==w)&&this.setState(k)}this.runAnimation(Pa(Pa({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var r=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),r&&r()}},{key:"handleStyleChange",value:function(r){this.changeStyle(r)}},{key:"changeStyle",value:function(r){this.mounted&&this.setState({style:r})}},{key:"runJSAnimation",value:function(r){var a=this,o=r.from,l=r.to,u=r.duration,f=r.easing,h=r.begin,d=r.onAnimationEnd,p=r.onAnimationStart,g=OSe(o,l,gSe(f),u,this.changeStyle),b=function(){a.stopJSAnimation=g()};this.manager.start([p,h,b,u,d])}},{key:"runStepAnimation",value:function(r){var a=this,o=r.steps,l=r.begin,u=r.onAnimationStart,f=o[0],h=f.style,d=f.duration,p=d===void 0?0:d,g=function(w,k,_){if(_===0)return w;var x=k.duration,C=k.easing,T=C===void 0?"ease":C,A=k.style,O=k.properties,M=k.onAnimationEnd,$=_>0?o[_-1]:k,q=O||Object.keys(A);if(typeof T=="function"||T==="spring")return[].concat(X3(w),[a.runJSAnimation.bind(a,{from:$.style,to:A,duration:x,easing:T}),x]);var R=HN(q,x,T),I=Pa(Pa(Pa({},$.style),A),{},{transition:R});return[].concat(X3(w),[I,x,M]).filter(aSe)};return this.manager.start([u].concat(X3(o.reduce(g,[h,Math.max(p,l)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=nSe());var a=r.begin,o=r.duration,l=r.attributeName,u=r.to,f=r.easing,h=r.onAnimationStart,d=r.onAnimationEnd,p=r.steps,g=r.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof f=="function"||typeof g=="function"||f==="spring"){this.runJSAnimation(r);return}if(p.length>1){this.runStepAnimation(r);return}var w=l?Wh({},l,u):u,k=HN(Object.keys(w),o,f);b.start([h,a,Pa(Pa({},w),{},{transition:k}),o,d])}},{key:"render",value:function(){var r=this.props,a=r.children;r.begin;var o=r.duration;r.attributeName,r.easing;var l=r.isActive;r.steps,r.from,r.to,r.canBegin,r.onAnimationEnd,r.shouldReAnimate,r.onAnimationReStart;var u=ESe(r,TSe),f=S.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||f===0||o<=0)return a;var d=function(g){var b=g.props,w=b.style,k=w===void 0?{}:w,_=b.className,x=S.cloneElement(g,Pa(Pa({},u),{},{style:Pa(Pa({},k),h),className:_}));return x};return f===1?d(S.Children.only(a)):J.createElement("div",null,S.Children.map(a,function(p){return d(p)}))}}]),t})(S.PureComponent);yo.displayName="Animate";yo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};yo.propTypes={from:_t.oneOfType([_t.object,_t.string]),to:_t.oneOfType([_t.object,_t.string]),attributeName:_t.string,duration:_t.number,begin:_t.number,easing:_t.oneOfType([_t.string,_t.func]),steps:_t.arrayOf(_t.shape({duration:_t.number.isRequired,style:_t.object.isRequired,easing:_t.oneOfType([_t.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),_t.func]),properties:_t.arrayOf("string"),onAnimationEnd:_t.func})),children:_t.oneOfType([_t.node,_t.func]),isActive:_t.bool,canBegin:_t.bool,onAnimationEnd:_t.func,shouldReAnimate:_t.bool,onAnimationStart:_t.func,onAnimationReStart:_t.func};function Gm(e){"@babel/helpers - typeof";return Gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gm(e)}function J1(){return J1=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0?1:-1,u=i>=0?1:-1,f=r>=0&&i>=0||r<0&&i<0?1:0,h;if(o>0&&a instanceof Array){for(var d=[0,0,0,0],p=0,g=4;po?o:a[p];h="M".concat(n,",").concat(t+l*d[0]),d[0]>0&&(h+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(f,",").concat(n+u*d[0],",").concat(t)),h+="L ".concat(n+i-u*d[1],",").concat(t),d[1]>0&&(h+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(f,`, `).concat(n+i,",").concat(t+l*d[1])),h+="L ".concat(n+i,",").concat(t+r-l*d[2]),d[2]>0&&(h+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(f,`, `).concat(n+i-u*d[2],",").concat(t+r)),h+="L ".concat(n+u*d[3],",").concat(t+r),d[3]>0&&(h+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(f,`, `).concat(n,",").concat(t+r-l*d[3])),h+="Z"}else if(o>0&&a===+a&&a>0){var b=Math.min(o,a);h="M ".concat(n,",").concat(t+l*b,` @@ -555,20 +560,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L `).concat(n+i,",").concat(t+r-l*b,` A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(n+i-u*b,",").concat(t+r,` L `).concat(n+u*b,",").concat(t+r,` - A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(n,",").concat(t+r-l*b," Z")}else h="M ".concat(n,",").concat(t," h ").concat(i," v ").concat(r," h ").concat(-i," Z");return h},GSe=function(n,t){if(!n||!t)return!1;var i=n.x,r=n.y,a=t.x,o=t.y,l=t.width,u=t.height;if(Math.abs(l)>0&&Math.abs(u)>0){var f=Math.min(a,a+l),h=Math.max(a,a+l),d=Math.min(o,o+u),p=Math.max(o,o+u);return i>=f&&i<=h&&r>=d&&r<=p}return!1},YSe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ym=function(n){var t=XN(XN({},YSe),n),i=x.useRef(),r=x.useState(-1),a=ISe(r,2),o=a[0],l=a[1];x.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var T=i.current.getTotalLength();T&&l(T)}catch{}},[]);var u=t.x,f=t.y,h=t.width,d=t.height,p=t.radius,g=t.className,b=t.animationEasing,w=t.animationDuration,k=t.animationBegin,_=t.isAnimationActive,S=t.isUpdateAnimationActive;if(u!==+u||f!==+f||h!==+h||d!==+d||h===0||d===0)return null;var j=vn("recharts-rectangle",g);return S?J.createElement(yo,{canBegin:o>0,from:{width:h,height:d,x:u,y:f},to:{width:h,height:d,x:u,y:f},duration:w,animationEasing:b,isActive:S},function(T){var A=T.width,O=T.height,M=T.x,$=T.y;return J.createElement(yo,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:k,duration:w,isActive:_,easing:b},J.createElement("path",Q1({},Un(t,!0),{className:j,d:ZN(M,$,A,O,p),ref:i})))}):J.createElement("path",Q1({},Un(t,!0),{className:j,d:ZN(u,f,h,d,p)}))};function v6(){return v6=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function n4e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var t4e=function(n,t,i,r,a,o){return"M".concat(n,",").concat(a,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(i)},i4e=function(n){var t=n.x,i=t===void 0?0:t,r=n.y,a=r===void 0?0:r,o=n.top,l=o===void 0?0:o,u=n.left,f=u===void 0?0:u,h=n.width,d=h===void 0?0:h,p=n.height,g=p===void 0?0:p,b=n.className,w=e4e(n,KSe),k=XSe({x:i,y:a,top:l,left:f,width:d,height:g},w);return!Ge(i)||!Ge(a)||!Ge(d)||!Ge(g)||!Ge(l)||!Ge(f)?null:J.createElement("path",g6({},Un(k,!0),{className:vn("recharts-cross",b),d:t4e(i,a,d,g,l,f)}))},X3,JN;function r4e(){if(JN)return X3;JN=1;var e=KU(),n=e(Object.getPrototypeOf,Object);return X3=n,X3}var Z3,e$;function a4e(){if(e$)return Z3;e$=1;var e=_s(),n=r4e(),t=xs(),i="[object Object]",r=Function.prototype,a=Object.prototype,o=r.toString,l=a.hasOwnProperty,u=o.call(Object);function f(h){if(!t(h)||e(h)!=i)return!1;var d=n(h);if(d===null)return!0;var p=l.call(d,"constructor")&&d.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==u}return Z3=f,Z3}var o4e=a4e();const s4e=yt(o4e);var Q3,n$;function l4e(){if(n$)return Q3;n$=1;var e=_s(),n=xs(),t="[object Boolean]";function i(r){return r===!0||r===!1||n(r)&&e(r)==t}return Q3=i,Q3}var u4e=l4e();const c4e=yt(u4e);function Xm(e){"@babel/helpers - typeof";return Xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xm(e)}function J1(){return J1=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:f},to:{upperWidth:h,lowerWidth:d,height:p,x:u,y:f},duration:w,animationEasing:b,isActive:_},function(j){var T=j.upperWidth,A=j.lowerWidth,O=j.height,M=j.x,$=j.y;return J.createElement(yo,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:k,duration:w,easing:b},J.createElement("path",J1({},Un(t,!0),{className:S,d:a$(M,$,T,A,O),ref:i})))}):J.createElement("g",null,J.createElement("path",J1({},Un(t,!0),{className:S,d:a$(u,f,h,d,p)})))},k4e=["option","shapeType","propTransformer","activeClassName","isActive"];function Zm(e){"@babel/helpers - typeof";return Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zm(e)}function _4e(e,n){if(e==null)return{};var t=x4e(e,n),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function x4e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function o$(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function ey(e){for(var n=1;n0&&i.handleDrag(r.changedTouches[0])}),qr(i,"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var r=i.props,a=r.endIndex,o=r.onDragEnd,l=r.startIndex;o==null||o({endIndex:a,startIndex:l})}),i.detachDragEndListener()}),qr(i,"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),qr(i,"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),qr(i,"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),qr(i,"handleSlideDragStart",function(r){var a=v$(r)?r.changedTouches[0]:r;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(i,"startX"),endX:i.handleTravellerDragStart.bind(i,"endX")},i.state={},i}return Z4e(n,e),G4e(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var r=i.startX,a=i.endX,o=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,h=f.length-1,d=Math.min(r,a),p=Math.max(r,a),g=n.getIndexInRange(o,d),b=n.getIndexInRange(o,p);return{startIndex:g-g%u,endIndex:b===h?h:b-b%u}}},{key:"getTextOfTick",value:function(i){var r=this.props,a=r.data,o=r.tickFormatter,l=r.dataKey,u=cr(a[i],l,i);return Fn(o)?o(u,i):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var r=this.state,a=r.slideMoveStartX,o=r.startX,l=r.endX,u=this.props,f=u.x,h=u.width,d=u.travellerWidth,p=u.startIndex,g=u.endIndex,b=u.onChange,w=i.pageX-a;w>0?w=Math.min(w,f+h-d-l,f+h-d-o):w<0&&(w=Math.max(w,f-o,f-l));var k=this.getIndex({startX:o+w,endX:l+w});(k.startIndex!==p||k.endIndex!==g)&&b&&b(k),this.setState({startX:o+w,endX:l+w,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,r){var a=v$(r)?r.changedTouches[0]:r;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var r=this.state,a=r.brushMoveStartX,o=r.movingTravellerId,l=r.endX,u=r.startX,f=this.state[o],h=this.props,d=h.x,p=h.width,g=h.travellerWidth,b=h.onChange,w=h.gap,k=h.data,_={startX:this.state.startX,endX:this.state.endX},S=i.pageX-a;S>0?S=Math.min(S,d+p-g-f):S<0&&(S=Math.max(S,d-f)),_[o]=f+S;var j=this.getIndex(_),T=j.startIndex,A=j.endIndex,O=function(){var $=k.length-1;return o==="startX"&&(l>u?T%w===0:A%w===0)||lu?A%w===0:T%w===0)||l>u&&A===$};this.setState(qr(qr({},o,f+S),"brushMoveStartX",i.pageX),function(){b&&O()&&b(j)})}},{key:"handleTravellerMoveKeyboard",value:function(i,r){var a=this,o=this.state,l=o.scaleValues,u=o.startX,f=o.endX,h=this.state[r],d=l.indexOf(h);if(d!==-1){var p=d+i;if(!(p===-1||p>=l.length)){var g=l[p];r==="startX"&&g>=f||r==="endX"&&g<=u||this.setState(qr({},r,g),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,r=i.x,a=i.y,o=i.width,l=i.height,u=i.fill,f=i.stroke;return J.createElement("rect",{stroke:f,fill:u,x:r,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var i=this.props,r=i.x,a=i.y,o=i.width,l=i.height,u=i.data,f=i.children,h=i.padding,d=x.Children.only(f);return d?J.cloneElement(d,{x:r,y:a,width:o,height:l,margin:h,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(i,r){var a,o,l=this,u=this.props,f=u.y,h=u.travellerWidth,d=u.height,p=u.traveller,g=u.ariaLabel,b=u.data,w=u.startIndex,k=u.endIndex,_=Math.max(i,this.props.x),S=iS(iS({},Un(this.props,!1)),{},{x:_,y:f,width:h,height:d}),j=g||"Min value: ".concat((a=b[w])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=b[k])===null||o===void 0?void 0:o.name);return J.createElement(Ft,{tabIndex:0,role:"slider","aria-label":j,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),l.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,r))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(p,S))}},{key:"renderSlide",value:function(i,r){var a=this.props,o=a.y,l=a.height,u=a.stroke,f=a.travellerWidth,h=Math.min(i,r)+f,d=Math.max(Math.abs(r-i)-f,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:h,y:o,width:d,height:l})}},{key:"renderText",value:function(){var i=this.props,r=i.startIndex,a=i.endIndex,o=i.y,l=i.height,u=i.travellerWidth,f=i.stroke,h=this.state,d=h.startX,p=h.endX,g=5,b={pointerEvents:"none",fill:f};return J.createElement(Ft,{className:"recharts-brush-texts"},J.createElement(T1,ty({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-g,y:o+l/2},b),this.getTextOfTick(r)),J.createElement(T1,ty({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+u+g,y:o+l/2},b),this.getTextOfTick(a)))}},{key:"render",value:function(){var i=this.props,r=i.data,a=i.className,o=i.children,l=i.x,u=i.y,f=i.width,h=i.height,d=i.alwaysShowText,p=this.state,g=p.startX,b=p.endX,w=p.isTextActive,k=p.isSlideMoving,_=p.isTravellerMoving,S=p.isTravellerFocused;if(!r||!r.length||!Ge(l)||!Ge(u)||!Ge(f)||!Ge(h)||f<=0||h<=0)return null;var j=vn("recharts-brush",a),T=J.Children.count(o)===1,A=V4e("userSelect","none");return J.createElement(Ft,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(g,b),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(b,"endX"),(w||k||_||S||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var r=i.x,a=i.y,o=i.width,l=i.height,u=i.stroke,f=Math.floor(a+l/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:r,y:a,width:o,height:l,fill:u,stroke:"none"}),J.createElement("line",{x1:r+1,y1:f,x2:r+o-1,y2:f,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:r+1,y1:f+2,x2:r+o-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,r){var a;return J.isValidElement(i)?a=J.cloneElement(i,r):Fn(i)?a=i(r):a=n.renderDefaultTraveller(r),a}},{key:"getDerivedStateFromProps",value:function(i,r){var a=i.data,o=i.width,l=i.x,u=i.travellerWidth,f=i.updateId,h=i.startIndex,d=i.endIndex;if(a!==r.prevData||f!==r.prevUpdateId)return iS({prevData:a,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:o},a&&a.length?J4e({data:a,width:o,x:l,travellerWidth:u,startIndex:h,endIndex:d}):{scale:null,scaleValues:null});if(r.scale&&(o!==r.prevWidth||l!==r.prevX||u!==r.prevTravellerWidth)){r.scale.range([l,l+o-u]);var p=r.scale.domain().map(function(g){return r.scale(g)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:o,startX:r.scale(i.startIndex),endX:r.scale(i.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(i,r){for(var a=i.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);i[u]>r?l=u:o=u}return r>=i[l]?l:o}}])})(x.PureComponent);qr(Cf,"displayName","Brush");qr(Cf,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var rS,g$;function e6e(){if(g$)return rS;g$=1;var e=wj();function n(t,i){var r;return e(t,function(a,o,l){return r=i(a,o,l),!r}),!!r}return rS=n,rS}var aS,y$;function n6e(){if(y$)return aS;y$=1;var e=qU(),n=Nl(),t=e6e(),i=Tr(),r=Z0();function a(o,l,u){var f=i(o)?e:t;return u&&r(o,l,u)&&(l=void 0),f(o,n(l,3))}return aS=a,aS}var t6e=n6e();const i6e=yt(t6e);var uo=function(n,t){var i=n.alwaysShow,r=n.ifOverflow;return i&&(r="extendDomain"),r===t},oS,b$;function r6e(){if(b$)return oS;b$=1;var e=oV();function n(t,i,r){i=="__proto__"&&e?e(t,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[i]=r}return oS=n,oS}var sS,w$;function a6e(){if(w$)return sS;w$=1;var e=r6e(),n=rV(),t=Nl();function i(r,a){var o={};return a=t(a,3),n(r,function(l,u,f){e(o,u,a(l,u,f))}),o}return sS=i,sS}var o6e=a6e();const s6e=yt(o6e);var lS,k$;function l6e(){if(k$)return lS;k$=1;function e(n,t){for(var i=-1,r=n==null?0:n.length;++i=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function g6e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function y6e(e,n){var t=e.x,i=e.y,r=v6e(e,d6e),a="".concat(t),o=parseInt(a,10),l="".concat(i),u=parseInt(l,10),f="".concat(n.height||r.height),h=parseInt(f,10),d="".concat(n.width||r.width),p=parseInt(d,10);return Ph(Ph(Ph(Ph(Ph({},n),r),o?{x:o}:{}),u?{y:u}:{}),{},{height:h,width:p,name:n.name,radius:n.radius})}function C$(e){return J.createElement(E4e,b6({shapeType:"rectangle",propTransformer:y6e,activeClassName:"recharts-active-bar"},e))}var b6e=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(i,r){if(typeof n=="number")return n;var a=Ge(i)||Ege(i);return a?n(i,r):(a||Lu(),t)}},w6e=["value","background"],PW;function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jf(e)}function k6e(e,n){if(e==null)return{};var t=_6e(e,n),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function _6e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var n=1;n0&&Math.abs(R)0&&Math.abs(B)0&&(G=Math.min((Q||0)-(B[ie-1]||0),G))}),Number.isFinite(G)){var R=G/U,D=w.layout==="vertical"?i.height:i.width;if(w.padding==="gap"&&(M=R*D/2),w.padding==="no-gap"){var z=$u(n.barCategoryGap,R*D),H=R*D/2;M=H-z-(H-z)/D*z}}}r==="xAxis"?$=[i.left+(j.left||0)+(M||0),i.left+i.width-(j.right||0)-(M||0)]:r==="yAxis"?$=u==="horizontal"?[i.top+i.height-(j.bottom||0),i.top+(j.top||0)]:[i.top+(j.top||0)+(M||0),i.top+i.height-(j.bottom||0)-(M||0)]:$=w.range,A&&($=[$[1],$[0]]);var Y=W2e(w,a,p),N=Y.scale,W=Y.realScaleType;N.domain(_).range($),G2e(N);var V=nxe(N,Na(Na({},w),{},{realScaleType:W}));r==="xAxis"?(L=k==="top"&&!T||k==="bottom"&&T,q=i.left,P=d[O]-L*w.height):r==="yAxis"&&(L=k==="left"&&!T||k==="right"&&T,q=d[O]-L*w.width,P=i.top);var I=Na(Na(Na({},w),V),{},{realScaleType:W,x:q,y:P,scale:N,width:r==="xAxis"?i.width:w.width,height:r==="yAxis"?i.height:w.height});return I.bandSize=V1(I,V),!w.hide&&r==="xAxis"?d[O]+=(L?-1:1)*I.height:w.hide||(d[O]+=(L?-1:1)*I.width),Na(Na({},g),{},cb({},b,I))},{})},LW=function(n,t){var i=n.x,r=n.y,a=t.x,o=t.y;return{x:Math.min(i,a),y:Math.min(r,o),width:Math.abs(a-i),height:Math.abs(o-r)}},R6e=function(n){var t=n.x1,i=n.y1,r=n.x2,a=n.y2;return LW({x:t,y:i},{x:r,y:a})},IW=(function(){function e(n){E6e(this,e),this.scale=n}return M6e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.bandAware,a=i.position;if(t!==void 0){if(a)switch(a){case"start":return this.scale(t);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(t)+l}default:return this.scale(t)}if(r){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+u}return this.scale(t)}}},{key:"isInRange",value:function(t){var i=this.range(),r=i[0],a=i[i.length-1];return r<=a?t>=r&&t<=a:t>=a&&t<=r}}],[{key:"create",value:function(t){return new e(t)}}])})();cb(IW,"EPS",1e-4);var Xj=function(n){var t=Object.keys(n).reduce(function(i,r){return Na(Na({},i),{},cb({},r,IW.create(n[r])))},{});return Na(Na({},t),{},{apply:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return s6e(r,function(u,f){return t[f].apply(u,{bandAware:o,position:l})})},isInRange:function(r){return RW(r,function(a,o){return t[o].isInRange(a)})}})};function P6e(e){return(e%180+180)%180}var N6e=function(n){var t=n.width,i=n.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=P6e(r),o=a*Math.PI/180,l=Math.atan(i/t),u=o>l&&o-1?u[f?a[h]:h]:void 0}}return fS=i,fS}var dS,M$;function z6e(){if(M$)return dS;M$=1;var e=TW();function n(t){var i=e(t),r=i%1;return i===i?r?i-r:i:0}return dS=n,dS}var hS,D$;function L6e(){if(D$)return hS;D$=1;var e=JU(),n=Nl(),t=z6e(),i=Math.max;function r(a,o,l){var u=a==null?0:a.length;if(!u)return-1;var f=l==null?0:t(l);return f<0&&(f=i(u+f,0)),e(a,n(o,3),f)}return hS=r,hS}var mS,R$;function I6e(){if(R$)return mS;R$=1;var e=$6e(),n=L6e(),t=e(n);return mS=t,mS}var B6e=I6e();const F6e=yt(B6e);var q6e=mU();const H6e=yt(q6e);var U6e=H6e(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Zj=x.createContext(void 0),Qj=x.createContext(void 0),BW=x.createContext(void 0),FW=x.createContext({}),qW=x.createContext(void 0),HW=x.createContext(0),UW=x.createContext(0),P$=function(n){var t=n.state,i=t.xAxisMap,r=t.yAxisMap,a=t.offset,o=n.clipPathId,l=n.children,u=n.width,f=n.height,h=U6e(a);return J.createElement(Zj.Provider,{value:i},J.createElement(Qj.Provider,{value:r},J.createElement(FW.Provider,{value:a},J.createElement(BW.Provider,{value:h},J.createElement(qW.Provider,{value:o},J.createElement(HW.Provider,{value:f},J.createElement(UW.Provider,{value:u},l)))))))},V6e=function(){return x.useContext(qW)},VW=function(n){var t=x.useContext(Zj);t==null&&Lu();var i=t[n];return i==null&&Lu(),i},W6e=function(){var n=x.useContext(Zj);return ol(n)},G6e=function(){var n=x.useContext(Qj),t=F6e(n,function(i){return RW(i.domain,Number.isFinite)});return t||ol(n)},WW=function(n){var t=x.useContext(Qj);t==null&&Lu();var i=t[n];return i==null&&Lu(),i},Y6e=function(){var n=x.useContext(BW);return n},K6e=function(){return x.useContext(FW)},Jj=function(){return x.useContext(UW)},eA=function(){return x.useContext(HW)};function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Af(e)}function X6e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Z6e(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);te*r)return!1;var a=t();return e*(n-e*a/2-i)>=0&&e*(n+e*a/2-r)<=0}function DCe(e,n){return JW(e,n+1)}function RCe(e,n,t,i,r){for(var a=(i||[]).slice(),o=n.start,l=n.end,u=0,f=1,h=o,d=function(){var b=i==null?void 0:i[u];if(b===void 0)return{v:JW(i,f)};var w=u,k,_=function(){return k===void 0&&(k=t(b,w)),k},S=b.coordinate,j=u===0||uy(e,S,_,h,l);j||(u=0,h=o,f+=1),j&&(h=S+e*(_()/2+r),u+=f)},p;f<=a.length;)if(p=d(),p)return p.v;return[]}function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tp(e)}function q$(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Xi(e){for(var n=1;n0?g.coordinate-k*e:g.coordinate})}else a[p]=g=Xi(Xi({},g),{},{tickCoord:g.coordinate});var _=uy(e,g.tickCoord,w,l,u);_&&(u=g.tickCoord-e*(w()/2+r),a[p]=Xi(Xi({},g),{},{isShow:!0}))},h=o-1;h>=0;h--)f(h);return a}function LCe(e,n,t,i,r,a){var o=(i||[]).slice(),l=o.length,u=n.start,f=n.end;if(a){var h=i[l-1],d=t(h,l-1),p=e*(h.coordinate+e*d/2-f);o[l-1]=h=Xi(Xi({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate});var g=uy(e,h.tickCoord,function(){return d},u,f);g&&(f=h.tickCoord-e*(d/2+r),o[l-1]=Xi(Xi({},h),{},{isShow:!0}))}for(var b=a?l-1:l,w=function(S){var j=o[S],T,A=function(){return T===void 0&&(T=t(j,S)),T};if(S===0){var O=e*(j.coordinate-e*A()/2-u);o[S]=j=Xi(Xi({},j),{},{tickCoord:O<0?j.coordinate-O*e:j.coordinate})}else o[S]=j=Xi(Xi({},j),{},{tickCoord:j.coordinate});var M=uy(e,j.tickCoord,A,u,f);M&&(u=j.tickCoord+e*(A()/2+r),o[S]=Xi(Xi({},j),{},{isShow:!0}))},k=0;k=2?Fa(r[1].coordinate-r[0].coordinate):1,_=MCe(a,k,g);return u==="equidistantPreserveStart"?RCe(k,_,w,r,o):(u==="preserveStart"||u==="preserveStartEnd"?p=LCe(k,_,w,r,o,u==="preserveStartEnd"):p=zCe(k,_,w,r,o),p.filter(function(S){return S.isShow}))}var ICe=["viewBox"],BCe=["viewBox"],FCe=["ticks"];function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ef(e)}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function qCe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function HCe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function U$(e,n){for(var t=0;t0?u(this.props):u(g)),o<=0||l<=0||!b||!b.length?null:J.createElement(Ft,{className:vn("recharts-cartesian-axis",f),ref:function(k){i.layerReference=k}},a&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),ri.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,r,a){var o,l=vn(r.className,"recharts-cartesian-axis-tick-value");return J.isValidElement(i)?o=J.cloneElement(i,xi(xi({},r),{},{className:l})):Fn(i)?o=i(xi(xi({},r),{},{className:l})):o=J.createElement(T1,Yc({},r,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(x.Component);iA(pd,"displayName","CartesianAxis");iA(pd,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var XCe=["x1","y1","x2","y2","key"],ZCe=["offset"];function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Iu(e)}function V$(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Qi(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function n9e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var t9e=function(n){var t=n.fill;if(!t||t==="none")return null;var i=n.fillOpacity,r=n.x,a=n.y,o=n.width,l=n.height,u=n.ry;return J.createElement("rect",{x:r,y:a,ry:u,width:o,height:l,stroke:"none",fill:t,fillOpacity:i,className:"recharts-cartesian-grid-bg"})};function tG(e,n){var t;if(J.isValidElement(e))t=J.cloneElement(e,n);else if(Fn(e))t=e(n);else{var i=n.x1,r=n.y1,a=n.x2,o=n.y2,l=n.key,u=W$(n,XCe),f=Un(u,!1);f.offset;var h=W$(f,ZCe);t=J.createElement("line",xu({},h,{x1:i,y1:r,x2:a,y2:o,fill:"none",key:l}))}return t}function i9e(e){var n=e.x,t=e.width,i=e.horizontal,r=i===void 0?!0:i,a=e.horizontalPoints;if(!r||!a||!a.length)return null;var o=a.map(function(l,u){var f=Qi(Qi({},e),{},{x1:n,y1:l,x2:n+t,y2:l,key:"line-".concat(u),index:u});return tG(r,f)});return J.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function r9e(e){var n=e.y,t=e.height,i=e.vertical,r=i===void 0?!0:i,a=e.verticalPoints;if(!r||!a||!a.length)return null;var o=a.map(function(l,u){var f=Qi(Qi({},e),{},{x1:l,y1:n,x2:l,y2:n+t,key:"line-".concat(u),index:u});return tG(r,f)});return J.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function a9e(e){var n=e.horizontalFill,t=e.fillOpacity,i=e.x,r=e.y,a=e.width,o=e.height,l=e.horizontalPoints,u=e.horizontal,f=u===void 0?!0:u;if(!f||!n||!n.length)return null;var h=l.map(function(p){return Math.round(p+r-r)}).sort(function(p,g){return p-g});r!==h[0]&&h.unshift(0);var d=h.map(function(p,g){var b=!h[g+1],w=b?r+o-p:h[g+1]-p;if(w<=0)return null;var k=g%n.length;return J.createElement("rect",{key:"react-".concat(g),y:p,x:i,height:w,width:a,stroke:"none",fill:n[k],fillOpacity:t,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function o9e(e){var n=e.vertical,t=n===void 0?!0:n,i=e.verticalFill,r=e.fillOpacity,a=e.x,o=e.y,l=e.width,u=e.height,f=e.verticalPoints;if(!t||!i||!i.length)return null;var h=f.map(function(p){return Math.round(p+a-a)}).sort(function(p,g){return p-g});a!==h[0]&&h.unshift(0);var d=h.map(function(p,g){var b=!h[g+1],w=b?a+l-p:h[g+1]-p;if(w<=0)return null;var k=g%i.length;return J.createElement("rect",{key:"react-".concat(g),x:p,y:o,width:w,height:u,stroke:"none",fill:i[k],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var s9e=function(n,t){var i=n.xAxis,r=n.width,a=n.height,o=n.offset;return vW(tA(Qi(Qi(Qi({},pd.defaultProps),i),{},{ticks:Qo(i,!0),viewBox:{x:0,y:0,width:r,height:a}})),o.left,o.left+o.width,t)},l9e=function(n,t){var i=n.yAxis,r=n.width,a=n.height,o=n.offset;return vW(tA(Qi(Qi(Qi({},pd.defaultProps),i),{},{ticks:Qo(i,!0),viewBox:{x:0,y:0,width:r,height:a}})),o.top,o.top+o.height,t)},Bc={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function pb(e){var n,t,i,r,a,o,l=Jj(),u=eA(),f=K6e(),h=Qi(Qi({},e),{},{stroke:(n=e.stroke)!==null&&n!==void 0?n:Bc.stroke,fill:(t=e.fill)!==null&&t!==void 0?t:Bc.fill,horizontal:(i=e.horizontal)!==null&&i!==void 0?i:Bc.horizontal,horizontalFill:(r=e.horizontalFill)!==null&&r!==void 0?r:Bc.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Bc.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Bc.verticalFill,x:Ge(e.x)?e.x:f.left,y:Ge(e.y)?e.y:f.top,width:Ge(e.width)?e.width:f.width,height:Ge(e.height)?e.height:f.height}),d=h.x,p=h.y,g=h.width,b=h.height,w=h.syncWithTicks,k=h.horizontalValues,_=h.verticalValues,S=W6e(),j=G6e();if(!Ge(g)||g<=0||!Ge(b)||b<=0||!Ge(d)||d!==+d||!Ge(p)||p!==+p)return null;var T=h.verticalCoordinatesGenerator||s9e,A=h.horizontalCoordinatesGenerator||l9e,O=h.horizontalPoints,M=h.verticalPoints;if((!O||!O.length)&&Fn(A)){var $=k&&k.length,q=A({yAxis:j?Qi(Qi({},j),{},{ticks:$?k:j.ticks}):void 0,width:l,height:u,offset:f},$?!0:w);is(Array.isArray(q),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Iu(q),"]")),Array.isArray(q)&&(O=q)}if((!M||!M.length)&&Fn(T)){var P=_&&_.length,L=T({xAxis:S?Qi(Qi({},S),{},{ticks:P?_:S.ticks}):void 0,width:l,height:u,offset:f},P?!0:w);is(Array.isArray(L),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Iu(L),"]")),Array.isArray(L)&&(M=L)}return J.createElement("g",{className:"recharts-cartesian-grid"},J.createElement(t9e,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),J.createElement(i9e,xu({},h,{offset:f,horizontalPoints:O,xAxis:S,yAxis:j})),J.createElement(r9e,xu({},h,{offset:f,verticalPoints:M,xAxis:S,yAxis:j})),J.createElement(a9e,xu({},h,{horizontalPoints:O})),J.createElement(o9e,xu({},h,{verticalPoints:M})))}pb.displayName="CartesianGrid";var u9e=["type","layout","connectNulls","ref"],c9e=["key"];function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mf(e)}function G$(e,n){if(e==null)return{};var t=f9e(e,n),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function f9e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function om(){return om=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);td){g=[].concat(Fc(u.slice(0,b)),[d-w]);break}var k=g.length%2===0?[0,p]:[p];return[].concat(Fc(n.repeat(u,h)),Fc(g),k).map(function(_){return"".concat(_,"px")}).join(", ")}),$a(t,"id",cd("recharts-line-")),$a(t,"pathRef",function(o){t.mainCurve=o}),$a(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),$a(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return k9e(n,e),g9e(n,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();this.setState({totalLength:i})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();i!==this.state.totalLength&&this.setState({totalLength:i})}}},{key:"getTotalLength",value:function(){var i=this.mainCurve;try{return i&&i.getTotalLength&&i.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(i,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,u=a.yAxis,f=a.layout,h=a.children,d=wa(h,zp);if(!d)return null;var p=function(w,k){return{x:w.x,y:w.y,value:w.value,errorVal:cr(w.payload,k)}},g={clipPath:i?"url(#clipPath-".concat(r,")"):null};return J.createElement(Ft,g,d.map(function(b){return J.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:o,xAxis:l,yAxis:u,layout:f,dataPointFormatter:p})}))}},{key:"renderDots",value:function(i,r,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.dot,f=l.points,h=l.dataKey,d=Un(this.props,!1),p=Un(u,!0),g=f.map(function(w,k){var _=Fr(Fr(Fr({key:"dot-".concat(k),r:3},d),p),{},{index:k,cx:w.x,cy:w.y,value:w.value,dataKey:h,payload:w.payload,points:f});return n.renderDotItem(u,_)}),b={clipPath:i?"url(#clipPath-".concat(r?"":"dots-").concat(a,")"):null};return J.createElement(Ft,om({className:"recharts-line-dots",key:"dots"},b),g)}},{key:"renderCurveStatically",value:function(i,r,a,o){var l=this.props,u=l.type,f=l.layout,h=l.connectNulls;l.ref;var d=G$(l,u9e),p=Fr(Fr(Fr({},Un(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(a,")"):null,points:i},o),{},{type:u,layout:f,connectNulls:h});return J.createElement(rf,om({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(i,r){var a=this,o=this.props,l=o.points,u=o.strokeDasharray,f=o.isAnimationActive,h=o.animationBegin,d=o.animationDuration,p=o.animationEasing,g=o.animationId,b=o.animateNewValues,w=o.width,k=o.height,_=this.state,S=_.prevPoints,j=_.totalLength;return J.createElement(yo,{begin:h,duration:d,isActive:f,easing:p,from:{t:0},to:{t:1},key:"line-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(T){var A=T.t;if(S){var O=S.length/l.length,M=l.map(function(U,G){var B=Math.floor(G*O);if(S[B]){var R=S[B],D=Ui(R.x,U.x),z=Ui(R.y,U.y);return Fr(Fr({},U),{},{x:D(A),y:z(A)})}if(b){var H=Ui(w*2,U.x),Y=Ui(k/2,U.y);return Fr(Fr({},U),{},{x:H(A),y:Y(A)})}return Fr(Fr({},U),{},{x:U.x,y:U.y})});return a.renderCurveStatically(M,i,r)}var $=Ui(0,j),q=$(A),P;if(u){var L="".concat(u).split(/[,\s]+/gim).map(function(U){return parseFloat(U)});P=a.getStrokeDasharray(q,j,L)}else P=a.generateSimpleStrokeDasharray(j,q);return a.renderCurveStatically(l,i,r,{strokeDasharray:P})})}},{key:"renderCurve",value:function(i,r){var a=this.props,o=a.points,l=a.isAnimationActive,u=this.state,f=u.prevPoints,h=u.totalLength;return l&&o&&o.length&&(!f&&h>0||!kf(f,o))?this.renderCurveWithAnimation(i,r):this.renderCurveStatically(o,i,r)}},{key:"render",value:function(){var i,r=this.props,a=r.hide,o=r.dot,l=r.points,u=r.className,f=r.xAxis,h=r.yAxis,d=r.top,p=r.left,g=r.width,b=r.height,w=r.isAnimationActive,k=r.id;if(a||!l||!l.length)return null;var _=this.state.isAnimationFinished,S=l.length===1,j=vn("recharts-line",u),T=f&&f.allowDataOverflow,A=h&&h.allowDataOverflow,O=T||A,M=Zn(k)?this.id:k,$=(i=Un(o,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},q=$.r,P=q===void 0?3:q,L=$.strokeWidth,U=L===void 0?2:L,G=bU(o)?o:{},B=G.clipDot,R=B===void 0?!0:B,D=P*2+U;return J.createElement(Ft,{className:j},T||A?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(M)},J.createElement("rect",{x:T?p:p-g/2,y:A?d:d-b/2,width:T?g:g*2,height:A?b:b*2})),!R&&J.createElement("clipPath",{id:"clipPath-dots-".concat(M)},J.createElement("rect",{x:p-D/2,y:d-D/2,width:g+D,height:b+D}))):null,!S&&this.renderCurve(O,M),this.renderErrorBar(O,M),(S||o)&&this.renderDots(O,R,M),(!w||_)&&lo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(i,r){return i.animationId!==r.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,prevPoints:r.curPoints}:i.points!==r.curPoints?{curPoints:i.points}:null}},{key:"repeat",value:function(i,r){for(var a=i.length%2!==0?[].concat(Fc(i),[0]):i,o=[],l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function C9e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var n=1;n0||!kf(h,o)||!kf(d,l))?this.renderAreaWithAnimation(i,r):this.renderAreaStatically(o,l,i,r)}},{key:"render",value:function(){var i,r=this.props,a=r.hide,o=r.dot,l=r.points,u=r.className,f=r.top,h=r.left,d=r.xAxis,p=r.yAxis,g=r.width,b=r.height,w=r.isAnimationActive,k=r.id;if(a||!l||!l.length)return null;var _=this.state.isAnimationFinished,S=l.length===1,j=vn("recharts-area",u),T=d&&d.allowDataOverflow,A=p&&p.allowDataOverflow,O=T||A,M=Zn(k)?this.id:k,$=(i=Un(o,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},q=$.r,P=q===void 0?3:q,L=$.strokeWidth,U=L===void 0?2:L,G=bU(o)?o:{},B=G.clipDot,R=B===void 0?!0:B,D=P*2+U;return J.createElement(Ft,{className:j},T||A?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(M)},J.createElement("rect",{x:T?h:h-g/2,y:A?f:f-b/2,width:T?g:g*2,height:A?b:b*2})),!R&&J.createElement("clipPath",{id:"clipPath-dots-".concat(M)},J.createElement("rect",{x:h-D/2,y:f-D/2,width:g+D,height:b+D}))):null,S?null:this.renderArea(O,M),(o||S)&&this.renderDots(O,R,M),(!w||_)&&lo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(i,r){return i.animationId!==r.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,curBaseLine:i.baseLine,prevPoints:r.curPoints,prevBaseLine:r.curBaseLine}:i.points!==r.curPoints||i.baseLine!==r.curBaseLine?{curPoints:i.points,curBaseLine:i.baseLine}:null}}])})(x.PureComponent);aG=ms;ro(ms,"displayName","Area");ro(ms,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ku.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ro(ms,"getBaseValue",function(e,n,t,i){var r=e.layout,a=e.baseValue,o=n.props.baseValue,l=o??a;if(Ge(l)&&typeof l=="number")return l;var u=r==="horizontal"?i:t,f=u.scale.domain();if(u.type==="number"){var h=Math.max(f[0],f[1]),d=Math.min(f[0],f[1]);return l==="dataMin"?d:l==="dataMax"||h<0?h:Math.max(Math.min(f[0],f[1]),0)}return l==="dataMin"?f[0]:l==="dataMax"?f[1]:f[0]});ro(ms,"getComposedData",function(e){var n=e.props,t=e.item,i=e.xAxis,r=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,u=e.dataKey,f=e.stackedData,h=e.dataStartIndex,d=e.displayedData,p=e.offset,g=n.layout,b=f&&f.length,w=aG.getBaseValue(n,t,i,r),k=g==="horizontal",_=!1,S=d.map(function(T,A){var O;b?O=f[h+A]:(O=cr(T,u),Array.isArray(O)?_=!0:O=[w,O]);var M=O[1]==null||b&&cr(T,u)==null;return k?{x:U1({axis:i,ticks:a,bandSize:l,entry:T,index:A}),y:M?null:r.scale(O[1]),value:O,payload:T}:{x:M?null:i.scale(O[1]),y:U1({axis:r,ticks:o,bandSize:l,entry:T,index:A}),value:O,payload:T}}),j;return b||_?j=S.map(function(T){var A=Array.isArray(T.value)?T.value[0]:null;return k?{x:T.x,y:A!=null&&T.y!=null?r.scale(A):null}:{x:A!=null?i.scale(A):null,y:T.y}}):j=k?r.scale(w):i.scale(w),el({points:S,baseLine:j,layout:g,isRange:_},p)});ro(ms,"renderDotItem",function(e,n){var t;if(J.isValidElement(e))t=J.cloneElement(e,n);else if(Fn(e))t=e(n);else{var i=vn("recharts-area-dot",typeof e!="boolean"?e.className:""),r=n.key,a=oG(n,S9e);t=J.createElement(sb,Su({},a,{key:r,className:i}))}return t});function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rf(e)}function R9e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function P9e(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function kje(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function _je(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function xje(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);t0?o:n&&n.length&&Ge(r)&&Ge(a)?n.slice(r,a+1):[]};function kG(e){return e==="number"?[0,"auto"]:void 0}var I6=function(n,t,i,r){var a=n.graphicalItems,o=n.tooltipAxis,l=vb(t,n);return i<0||!a||!a.length||i>=l.length?null:a.reduce(function(u,f){var h,d=(h=f.props.data)!==null&&h!==void 0?h:t;d&&n.dataStartIndex+n.dataEndIndex!==0&&n.dataEndIndex-n.dataStartIndex>=i&&(d=d.slice(n.dataStartIndex,n.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var g=d===void 0?l:d;p=v1(g,o.dataKey,r)}else p=d&&d[i]||l[i];return p?[].concat($f(u),[yW(f,p)]):u},[])},rz=function(n,t,i,r){var a=r||{x:n.chartX,y:n.chartY},o=Nje(a,i),l=n.orderedTooltipTicks,u=n.tooltipAxis,f=n.tooltipTicks,h=B2e(o,l,f,u);if(h>=0&&f){var d=f[h]&&f[h].value,p=I6(n,t,h,d),g=$je(i,l,h,a);return{activeTooltipIndex:h,activeLabel:d,activePayload:p,activeCoordinate:g}}return null},zje=function(n,t){var i=t.axes,r=t.graphicalItems,a=t.axisType,o=t.axisIdKey,l=t.stackGroups,u=t.dataStartIndex,f=t.dataEndIndex,h=n.layout,d=n.children,p=n.stackOffset,g=pW(h,a);return i.reduce(function(b,w){var k,_=w.type.defaultProps!==void 0?Te(Te({},w.type.defaultProps),w.props):w.props,S=_.type,j=_.dataKey,T=_.allowDataOverflow,A=_.allowDuplicatedCategory,O=_.scale,M=_.ticks,$=_.includeHidden,q=_[o];if(b[q])return b;var P=vb(n.data,{graphicalItems:r.filter(function(V){var I,Q=o in V.props?V.props[o]:(I=V.type.defaultProps)===null||I===void 0?void 0:I[o];return Q===q}),dataStartIndex:u,dataEndIndex:f}),L=P.length,U,G,B;uje(_.domain,T,S)&&(U=t6(_.domain,null,T),g&&(S==="number"||O!=="auto")&&(B=rm(P,j,"category")));var R=kG(S);if(!U||U.length===0){var D,z=(D=_.domain)!==null&&D!==void 0?D:R;if(j){if(U=rm(P,j,S),S==="category"&&g){var H=Dge(U);A&&H?(G=U,U=ny(0,L)):A||(U=bN(z,U,w).reduce(function(V,I){return V.indexOf(I)>=0?V:[].concat($f(V),[I])},[]))}else if(S==="category")A?U=U.filter(function(V){return V!==""&&!Zn(V)}):U=bN(z,U,w).reduce(function(V,I){return V.indexOf(I)>=0||I===""||Zn(I)?V:[].concat($f(V),[I])},[]);else if(S==="number"){var Y=V2e(P,r.filter(function(V){var I,Q,ie=o in V.props?V.props[o]:(I=V.type.defaultProps)===null||I===void 0?void 0:I[o],re="hide"in V.props?V.props.hide:(Q=V.type.defaultProps)===null||Q===void 0?void 0:Q.hide;return ie===q&&($||!re)}),j,a,h);Y&&(U=Y)}g&&(S==="number"||O!=="auto")&&(B=rm(P,j,"category"))}else g?U=ny(0,L):l&&l[q]&&l[q].hasStack&&S==="number"?U=p==="expand"?[0,1]:gW(l[q].stackGroups,u,f):U=mW(P,r.filter(function(V){var I=o in V.props?V.props[o]:V.type.defaultProps[o],Q="hide"in V.props?V.props.hide:V.type.defaultProps.hide;return I===q&&($||!Q)}),S,h,!0);if(S==="number")U=$6(d,U,q,a,M),z&&(U=t6(z,U,T));else if(S==="category"&&z){var N=z,W=U.every(function(V){return N.indexOf(V)>=0});W&&(U=N)}}return Te(Te({},b),{},Tn({},q,Te(Te({},_),{},{axisType:a,domain:U,categoricalDomain:B,duplicateDomain:G,originalDomain:(k=_.domain)!==null&&k!==void 0?k:R,isCategorical:g,layout:h})))},{})},Lje=function(n,t){var i=t.graphicalItems,r=t.Axis,a=t.axisType,o=t.axisIdKey,l=t.stackGroups,u=t.dataStartIndex,f=t.dataEndIndex,h=n.layout,d=n.children,p=vb(n.data,{graphicalItems:i,dataStartIndex:u,dataEndIndex:f}),g=p.length,b=pW(h,a),w=-1;return i.reduce(function(k,_){var S=_.type.defaultProps!==void 0?Te(Te({},_.type.defaultProps),_.props):_.props,j=S[o],T=kG("number");if(!k[j]){w++;var A;return b?A=ny(0,g):l&&l[j]&&l[j].hasStack?(A=gW(l[j].stackGroups,u,f),A=$6(d,A,j,a)):(A=t6(T,mW(p,i.filter(function(O){var M,$,q=o in O.props?O.props[o]:(M=O.type.defaultProps)===null||M===void 0?void 0:M[o],P="hide"in O.props?O.props.hide:($=O.type.defaultProps)===null||$===void 0?void 0:$.hide;return q===j&&!P}),"number",h),r.defaultProps.allowDataOverflow),A=$6(d,A,j,a)),Te(Te({},k),{},Tn({},j,Te(Te({axisType:a},r.defaultProps),{},{hide:!0,orientation:ba(Rje,"".concat(a,".").concat(w%2),null),domain:A,originalDomain:T,isCategorical:b,layout:h})))}return k},{})},Ije=function(n,t){var i=t.axisType,r=i===void 0?"xAxis":i,a=t.AxisComp,o=t.graphicalItems,l=t.stackGroups,u=t.dataStartIndex,f=t.dataEndIndex,h=n.children,d="".concat(r,"Id"),p=wa(h,a),g={};return p&&p.length?g=zje(n,{axes:p,graphicalItems:o,axisType:r,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f}):o&&o.length&&(g=Lje(n,{Axis:a,graphicalItems:o,axisType:r,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f})),g},Bje=function(n){var t=ol(n),i=Qo(t,!1,!0);return{tooltipTicks:i,orderedTooltipTicks:kj(i,function(r){return r.coordinate}),tooltipAxis:t,tooltipAxisBandSize:V1(t,i)}},az=function(n){var t=n.children,i=n.defaultShowTooltip,r=Ur(t,Cf),a=0,o=0;return n.data&&n.data.length!==0&&(o=n.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(a=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!i}},Fje=function(n){return!n||!n.length?!1:n.some(function(t){var i=ts(t&&t.type);return i&&i.indexOf("Bar")>=0})},oz=function(n){return n==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:n==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:n==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},qje=function(n,t){var i=n.props,r=n.graphicalItems,a=n.xAxisMap,o=a===void 0?{}:a,l=n.yAxisMap,u=l===void 0?{}:l,f=i.width,h=i.height,d=i.children,p=i.margin||{},g=Ur(d,Cf),b=Ur(d,rs),w=Object.keys(u).reduce(function(A,O){var M=u[O],$=M.orientation;return!M.mirror&&!M.hide?Te(Te({},A),{},Tn({},$,A[$]+M.width)):A},{left:p.left||0,right:p.right||0}),k=Object.keys(o).reduce(function(A,O){var M=o[O],$=M.orientation;return!M.mirror&&!M.hide?Te(Te({},A),{},Tn({},$,ba(A,"".concat($))+M.height)):A},{top:p.top||0,bottom:p.bottom||0}),_=Te(Te({},k),w),S=_.bottom;g&&(_.bottom+=g.props.height||Cf.defaultProps.height),b&&t&&(_=H2e(_,r,i,t));var j=f-_.left-_.right,T=h-_.top-_.bottom;return Te(Te({brushBottom:S},_),{},{width:Math.max(j,0),height:Math.max(T,0)})},Hje=function(n,t){if(t==="xAxis")return n[t].width;if(t==="yAxis")return n[t].height},rA=function(n){var t=n.chartName,i=n.GraphicalChild,r=n.defaultTooltipEventType,a=r===void 0?"axis":r,o=n.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=n.axisComponents,f=n.legendContent,h=n.formatAxisMap,d=n.defaultProps,p=function(_,S){var j=S.graphicalItems,T=S.stackGroups,A=S.offset,O=S.updateId,M=S.dataStartIndex,$=S.dataEndIndex,q=_.barSize,P=_.layout,L=_.barGap,U=_.barCategoryGap,G=_.maxBarSize,B=oz(P),R=B.numericAxisName,D=B.cateAxisName,z=Fje(j),H=[];return j.forEach(function(Y,N){var W=vb(_.data,{graphicalItems:[Y],dataStartIndex:M,dataEndIndex:$}),V=Y.type.defaultProps!==void 0?Te(Te({},Y.type.defaultProps),Y.props):Y.props,I=V.dataKey,Q=V.maxBarSize,ie=V["".concat(R,"Id")],re=V["".concat(D,"Id")],Z={},le=u.reduce(function(He,Ye){var We=S["".concat(Ye.axisType,"Map")],Qe=V["".concat(Ye.axisType,"Id")];We&&We[Qe]||Ye.axisType==="zAxis"||Lu();var Je=We[Qe];return Te(Te({},He),{},Tn(Tn({},Ye.axisType,Je),"".concat(Ye.axisType,"Ticks"),Qo(Je)))},Z),ee=le[D],se=le["".concat(D,"Ticks")],ke=T&&T[ie]&&T[ie].hasStack&&ixe(Y,T[ie].stackGroups),te=ts(Y.type).indexOf("Bar")>=0,$e=V1(ee,se),xe=[],Ae=z&&F2e({barSize:q,stackGroups:T,totalSize:Hje(le,D)});if(te){var ze,we,Ce=Zn(Q)?G:Q,Ne=(ze=(we=V1(ee,se,!0))!==null&&we!==void 0?we:Ce)!==null&&ze!==void 0?ze:0;xe=q2e({barGap:L,barCategoryGap:U,bandSize:Ne!==$e?Ne:$e,sizeList:Ae[re],maxBarSize:Ce}),Ne!==$e&&(xe=xe.map(function(He){return Te(Te({},He),{},{position:Te(Te({},He.position),{},{offset:He.position.offset-Ne/2})})}))}var he=Y&&Y.type&&Y.type.getComposedData;he&&H.push({props:Te(Te({},he(Te(Te({},le),{},{displayedData:W,props:_,dataKey:I,item:Y,bandSize:$e,barPosition:xe,offset:A,stackedData:ke,layout:P,dataStartIndex:M,dataEndIndex:$}))),{},Tn(Tn(Tn({key:Y.key||"item-".concat(N)},R,le[R]),D,le[D]),"animationId",O)),childIndex:Uge(Y,_.children),item:Y})}),H},g=function(_,S){var j=_.props,T=_.dataStartIndex,A=_.dataEndIndex,O=_.updateId;if(!PD({props:j}))return null;var M=j.children,$=j.layout,q=j.stackOffset,P=j.data,L=j.reverseStackOrder,U=oz($),G=U.numericAxisName,B=U.cateAxisName,R=wa(M,i),D=exe(P,R,"".concat(G,"Id"),"".concat(B,"Id"),q,L),z=u.reduce(function(V,I){var Q="".concat(I.axisType,"Map");return Te(Te({},V),{},Tn({},Q,Ije(j,Te(Te({},I),{},{graphicalItems:R,stackGroups:I.axisType===G&&D,dataStartIndex:T,dataEndIndex:A}))))},{}),H=qje(Te(Te({},z),{},{props:j,graphicalItems:R}),S==null?void 0:S.legendBBox);Object.keys(z).forEach(function(V){z[V]=h(j,z[V],H,V.replace("Map",""),t)});var Y=z["".concat(B,"Map")],N=Bje(Y),W=p(j,Te(Te({},z),{},{dataStartIndex:T,dataEndIndex:A,updateId:O,graphicalItems:R,stackGroups:D,offset:H}));return Te(Te({formattedGraphicalItems:W,graphicalItems:R,offset:H,stackGroups:D},N),z)},b=(function(k){function _(S){var j,T,A;return _je(this,_),A=Cje(this,_,[S]),Tn(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Tn(A,"accessibilityManager",new lje),Tn(A,"handleLegendBBoxUpdate",function(O){if(O){var M=A.state,$=M.dataStartIndex,q=M.dataEndIndex,P=M.updateId;A.setState(Te({legendBBox:O},g({props:A.props,dataStartIndex:$,dataEndIndex:q,updateId:P},Te(Te({},A.state),{},{legendBBox:O}))))}}),Tn(A,"handleReceiveSyncEvent",function(O,M,$){if(A.props.syncId===O){if($===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(M)}}),Tn(A,"handleBrushChange",function(O){var M=O.startIndex,$=O.endIndex;if(M!==A.state.dataStartIndex||$!==A.state.dataEndIndex){var q=A.state.updateId;A.setState(function(){return Te({dataStartIndex:M,dataEndIndex:$},g({props:A.props,dataStartIndex:M,dataEndIndex:$,updateId:q},A.state))}),A.triggerSyncEvent({dataStartIndex:M,dataEndIndex:$})}}),Tn(A,"handleMouseEnter",function(O){var M=A.getMouseInfo(O);if(M){var $=Te(Te({},M),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var q=A.props.onMouseEnter;Fn(q)&&q($,O)}}),Tn(A,"triggeredAfterMouseMove",function(O){var M=A.getMouseInfo(O),$=M?Te(Te({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState($),A.triggerSyncEvent($);var q=A.props.onMouseMove;Fn(q)&&q($,O)}),Tn(A,"handleItemMouseEnter",function(O){A.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),Tn(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Tn(A,"handleMouseMove",function(O){O.persist(),A.throttleTriggeredAfterMouseMove(O)}),Tn(A,"handleMouseLeave",function(O){A.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};A.setState(M),A.triggerSyncEvent(M);var $=A.props.onMouseLeave;Fn($)&&$(M,O)}),Tn(A,"handleOuterEvent",function(O){var M=Hge(O),$=ba(A.props,"".concat(M));if(M&&Fn($)){var q,P;/.*touch.*/i.test(M)?P=A.getMouseInfo(O.changedTouches[0]):P=A.getMouseInfo(O),$((q=P)!==null&&q!==void 0?q:{},O)}}),Tn(A,"handleClick",function(O){var M=A.getMouseInfo(O);if(M){var $=Te(Te({},M),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var q=A.props.onClick;Fn(q)&&q($,O)}}),Tn(A,"handleMouseDown",function(O){var M=A.props.onMouseDown;if(Fn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"handleMouseUp",function(O){var M=A.props.onMouseUp;if(Fn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),Tn(A,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseDown(O.changedTouches[0])}),Tn(A,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseUp(O.changedTouches[0])}),Tn(A,"handleDoubleClick",function(O){var M=A.props.onDoubleClick;if(Fn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"handleContextMenu",function(O){var M=A.props.onContextMenu;if(Fn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"triggerSyncEvent",function(O){A.props.syncId!==void 0&&gS.emit(yS,A.props.syncId,O,A.eventEmitterSymbol)}),Tn(A,"applySyncEvent",function(O){var M=A.props,$=M.layout,q=M.syncMethod,P=A.state.updateId,L=O.dataStartIndex,U=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)A.setState(Te({dataStartIndex:L,dataEndIndex:U},g({props:A.props,dataStartIndex:L,dataEndIndex:U,updateId:P},A.state)));else if(O.activeTooltipIndex!==void 0){var G=O.chartX,B=O.chartY,R=O.activeTooltipIndex,D=A.state,z=D.offset,H=D.tooltipTicks;if(!z)return;if(typeof q=="function")R=q(H,O);else if(q==="value"){R=-1;for(var Y=0;Y=0){var ke,te;if(G.dataKey&&!G.allowDuplicatedCategory){var $e=typeof G.dataKey=="function"?se:"payload.".concat(G.dataKey.toString());ke=v1(Y,$e,R),te=N&&W&&v1(W,$e,R)}else ke=Y==null?void 0:Y[B],te=N&&W&&W[B];if(re||ie){var xe=O.props.activeIndex!==void 0?O.props.activeIndex:B;return[x.cloneElement(O,Te(Te(Te({},q.props),le),{},{activeIndex:xe})),null,null]}if(!Zn(ke))return[ee].concat($f(A.renderActivePoints({item:q,activePoint:ke,basePoint:te,childIndex:B,isRange:N})))}else{var Ae,ze=(Ae=A.getItemByXY(A.state.activeCoordinate))!==null&&Ae!==void 0?Ae:{graphicalItem:ee},we=ze.graphicalItem,Ce=we.item,Ne=Ce===void 0?O:Ce,he=we.childIndex,He=Te(Te(Te({},q.props),le),{},{activeIndex:he});return[x.cloneElement(Ne,He),null,null]}return N?[ee,null,null]:[ee,null]}),Tn(A,"renderCustomized",function(O,M,$){return x.cloneElement(O,Te(Te({key:"recharts-customized-".concat($)},A.props),A.state))}),Tn(A,"renderMap",{CartesianGrid:{handler:Cg,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:Cg},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:Cg},YAxis:{handler:Cg},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((j=S.id)!==null&&j!==void 0?j:cd("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=dV(A.triggeredAfterMouseMove,(T=S.throttleDelay)!==null&&T!==void 0?T:1e3/60),A.state={},A}return Oje(_,k),Sje(_,[{key:"componentDidMount",value:function(){var j,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var j=this.props,T=j.children,A=j.data,O=j.height,M=j.layout,$=Ur(T,pa);if($){var q=$.props.defaultIndex;if(!(typeof q!="number"||q<0||q>this.state.tooltipTicks.length-1)){var P=this.state.tooltipTicks[q]&&this.state.tooltipTicks[q].value,L=I6(this.state,A,q,P),U=this.state.tooltipTicks[q].coordinate,G=(this.state.offset.top+O)/2,B=M==="horizontal",R=B?{x:U,y:G}:{y:U,x:G},D=this.state.formattedGraphicalItems.find(function(H){var Y=H.item;return Y.type.name==="Scatter"});D&&(R=Te(Te({},R),D.props.points[q].tooltipPosition),L=D.props.points[q].tooltipPayload);var z={activeTooltipIndex:q,isTooltipActive:!0,activeLabel:P,activePayload:L,activeCoordinate:R};this.setState(z),this.renderCursor($),this.accessibilityManager.setIndex(q)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var A,O;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(j){S4([Ur(j.children,pa)],[Ur(this.props.children,pa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=Ur(this.props.children,pa);if(j&&typeof j.props.shared=="boolean"){var T=j.props.shared?"axis":"item";return l.indexOf(T)>=0?T:a}return a}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var T=this.container,A=T.getBoundingClientRect(),O=Ebe(A),M={chartX:Math.round(j.pageX-O.left),chartY:Math.round(j.pageY-O.top)},$=A.width/T.offsetWidth||1,q=this.inRange(M.chartX,M.chartY,$);if(!q)return null;var P=this.state,L=P.xAxisMap,U=P.yAxisMap,G=this.getTooltipEventType(),B=rz(this.state,this.props.data,this.props.layout,q);if(G!=="axis"&&L&&U){var R=ol(L).scale,D=ol(U).scale,z=R&&R.invert?R.invert(M.chartX):null,H=D&&D.invert?D.invert(M.chartY):null;return Te(Te({},M),{},{xValue:z,yValue:H},B)}return B?Te(Te({},M),B):null}},{key:"inRange",value:function(j,T){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,M=j/A,$=T/A;if(O==="horizontal"||O==="vertical"){var q=this.state.offset,P=M>=q.left&&M<=q.left+q.width&&$>=q.top&&$<=q.top+q.height;return P?{x:M,y:$}:null}var L=this.state,U=L.angleAxisMap,G=L.radiusAxisMap;if(U&&G){var B=ol(U);return _N({x:M,y:$},B)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,T=this.getTooltipEventType(),A=Ur(j,pa),O={};A&&T==="axis"&&(A.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var M=g1(this.props,this.handleOuterEvent);return Te(Te({},M),O)}},{key:"addListener",value:function(){gS.on(yS,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){gS.removeListener(yS,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,T,A){for(var O=this.state.formattedGraphicalItems,M=0,$=O.length;M<$;M++){var q=O[M];if(q.item===j||q.props.key===j.key||T===ts(q.item.type)&&A===q.childIndex)return q}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,T=this.state.offset,A=T.left,O=T.top,M=T.height,$=T.width;return J.createElement("defs",null,J.createElement("clipPath",{id:j},J.createElement("rect",{x:A,y:O,height:M,width:$})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function(T,A){var O=nz(A,2),M=O[0],$=O[1];return Te(Te({},T),{},Tn({},M,$.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function(T,A){var O=nz(A,2),M=O[0],$=O[1];return Te(Te({},T),{},Tn({},M,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[j])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(j){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[j])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(j){var T=this.state,A=T.formattedGraphicalItems,O=T.activeItem;if(A&&A.length)for(var M=0,$=A.length;M<$;M++){var q=A[M],P=q.props,L=q.item,U=L.type.defaultProps!==void 0?Te(Te({},L.type.defaultProps),L.props):L.props,G=ts(L.type);if(G==="Bar"){var B=(P.data||[]).find(function(H){return GSe(j,H)});if(B)return{graphicalItem:q,payload:B}}else if(G==="RadialBar"){var R=(P.data||[]).find(function(H){return _N(j,H)});if(R)return{graphicalItem:q,payload:R}}else if(lb(q,O)||ub(q,O)||Qm(q,O)){var D=z4e({graphicalItem:q,activeTooltipItem:O,itemData:U.data}),z=U.activeIndex===void 0?D:U.activeIndex;return{graphicalItem:Te(Te({},q),{},{childIndex:z}),payload:Qm(q,O)?U.data[D]:q.props.data[D]}}}return null}},{key:"render",value:function(){var j=this;if(!PD(this))return null;var T=this.props,A=T.children,O=T.className,M=T.width,$=T.height,q=T.style,P=T.compact,L=T.title,U=T.desc,G=tz(T,gje),B=Un(G,!1);if(P)return J.createElement(P$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement(j4,Kc({},B,{width:M,height:$,title:L,desc:U}),this.renderClipPath(),$D(A,this.renderMap)));if(this.props.accessibilityLayer){var R,D;B.tabIndex=(R=this.props.tabIndex)!==null&&R!==void 0?R:0,B.role=(D=this.props.role)!==null&&D!==void 0?D:"application",B.onKeyDown=function(H){j.accessibilityManager.keyboardEvent(H)},B.onFocus=function(){j.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return J.createElement(P$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement("div",Kc({className:vn("recharts-wrapper",O),style:Te({position:"relative",cursor:"default",width:M,height:$},q)},z,{ref:function(Y){j.container=Y}}),J.createElement(j4,Kc({},B,{width:M,height:$,title:L,desc:U,style:Pje}),this.renderClipPath(),$D(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(x.Component);Tn(b,"displayName",t),Tn(b,"defaultProps",Te({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Tn(b,"getDerivedStateFromProps",function(k,_){var S=k.dataKey,j=k.data,T=k.children,A=k.width,O=k.height,M=k.layout,$=k.stackOffset,q=k.margin,P=_.dataStartIndex,L=_.dataEndIndex;if(_.updateId===void 0){var U=az(k);return Te(Te(Te({},U),{},{updateId:0},g(Te(Te({props:k},U),{},{updateId:0}),_)),{},{prevDataKey:S,prevData:j,prevWidth:A,prevHeight:O,prevLayout:M,prevStackOffset:$,prevMargin:q,prevChildren:T})}if(S!==_.prevDataKey||j!==_.prevData||A!==_.prevWidth||O!==_.prevHeight||M!==_.prevLayout||$!==_.prevStackOffset||!ef(q,_.prevMargin)){var G=az(k),B={chartX:_.chartX,chartY:_.chartY,isTooltipActive:_.isTooltipActive},R=Te(Te({},rz(_,j,M)),{},{updateId:_.updateId+1}),D=Te(Te(Te({},G),B),R);return Te(Te(Te({},D),g(Te({props:k},D),_)),{},{prevDataKey:S,prevData:j,prevWidth:A,prevHeight:O,prevLayout:M,prevStackOffset:$,prevMargin:q,prevChildren:T})}if(!S4(T,_.prevChildren)){var z,H,Y,N,W=Ur(T,Cf),V=W&&(z=(H=W.props)===null||H===void 0?void 0:H.startIndex)!==null&&z!==void 0?z:P,I=W&&(Y=(N=W.props)===null||N===void 0?void 0:N.endIndex)!==null&&Y!==void 0?Y:L,Q=V!==P||I!==L,ie=!Zn(j),re=ie&&!Q?_.updateId:_.updateId+1;return Te(Te({updateId:re},g(Te(Te({props:k},_),{},{updateId:re,dataStartIndex:V,dataEndIndex:I}),_)),{},{prevChildren:T,dataStartIndex:V,dataEndIndex:I})}return null}),Tn(b,"renderActiveDot",function(k,_,S){var j;return x.isValidElement(k)?j=x.cloneElement(k,_):Fn(k)?j=k(_):j=J.createElement(sb,_),J.createElement(Ft,{className:"recharts-active-dot",key:S},j)});var w=x.forwardRef(function(_,S){return J.createElement(b,Kc({},_,{ref:S}))});return w.displayName=b.displayName,w},Uje=rA({chartName:"LineChart",GraphicalChild:Ip,axisComponents:[{axisType:"xAxis",AxisComp:Il},{axisType:"yAxis",AxisComp:bo}],formatAxisMap:Kj}),Vje=rA({chartName:"BarChart",GraphicalChild:Ju,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Il},{axisType:"yAxis",AxisComp:bo}],formatAxisMap:Kj}),Wje=rA({chartName:"AreaChart",GraphicalChild:ms,axisComponents:[{axisType:"xAxis",AxisComp:Il},{axisType:"yAxis",AxisComp:bo}],formatAxisMap:Kj});function Gje(e){return`${(e*100).toFixed(0)}%`}const Yje={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",type:"default"},_G=(e,{textColor:n,gridColor:t,cursorFill:i,barLabelColor:r})=>({root:{"--chart-text-color":n?ft(n,e):void 0,"--chart-grid-color":t?ft(t,e):void 0,"--chart-cursor-fill":i?ft(i,e):void 0,"--chart-bar-label-color":r?ft(r,e):void 0}});function Kje(e,n){let t=0,i=0;return e.map(r=>{if(r.standalone)for(const a in r)typeof r[a]=="number"&&a!==n&&(r[a]=[0,r[a]]);else for(const a in r)typeof r[a]=="number"&&a!==n&&(i+=r[a],r[a]=[t,i],t=i);return r})}function Xje(e,n){return typeof e=="function"?e(n).fill:e==null?void 0:e.fill}const dl=Pe(e=>{const n=ye("BarChart",Yje,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,data:u,withLegend:f,legendProps:h,series:d,onMouseLeave:p,dataKey:g,withTooltip:b,withXAxis:w,withYAxis:k,gridAxis:_,tickLine:S,xAxisProps:j,yAxisProps:T,unit:A,tooltipAnimationDuration:O,strokeDasharray:M,gridProps:$,tooltipProps:q,referenceLines:P,fillOpacity:L,barChartProps:U,type:G,orientation:B,dir:R,valueFormatter:D,children:z,barProps:H,xAxisLabel:Y,yAxisLabel:N,withBarValueLabel:W,valueLabelProps:V,withRightYAxis:I,rightYAxisLabel:Q,rightYAxisProps:ie,minBarSize:re,maxBarWidth:Z,mod:le,getBarColor:ee,gridColor:se,textColor:ke,attributes:te,...$e}=n,xe=ci(),Ae=_!=="none"&&(S==="x"||S==="xy"),ze=_!=="none"&&(S==="y"||S==="xy"),[we,Ce]=x.useState(null),Ne=we!==null,he=G==="stacked"||G==="percent",He=G==="percent"?Gje:D,Ye=je=>{Ce(null),p==null||p(je)},{resolvedClassNames:We,resolvedStyles:Qe}=Wi({classNames:t,styles:a,props:n}),Je=G==="waterfall"?Kje(u,g):u,oe=Ze({name:"BarChart",classes:I0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:te,vars:l,varsResolver:_G}),be=d.map(je=>{const an=ft(je.color,xe),pn=Ne&&we!==je.name,Dn=typeof H=="function"?H(je):H,bn=Dn==null?void 0:Dn.shape;return x.createElement(Ju,{...oe("bar"),key:je.name,name:je.name,dataKey:je.name,fill:an,stroke:an,isAnimationActive:!1,fillOpacity:pn?.1:L,strokeOpacity:pn?.2:0,stackId:he?"stack":je.stackId||void 0,yAxisId:je.yAxisId||void 0,minPointSize:re,...Dn,shape:sn=>{const nn=sn.payload,$n=nn!=null&&nn.color?ft(nn.color,xe):typeof ee=="function"?ft(ee(nn==null?void 0:nn[je.name],je),xe):Xje(H,je)||an,De={...sn,fill:$n};return typeof bn=="function"?bn(De):J.isValidElement(bn)?J.cloneElement(bn,De):typeof bn=="object"&&bn?v.jsx(Ym,{...De,...bn}):v.jsx(Ym,{...De})}},W&&v.jsx(lo,{position:B==="vertical"?"right":"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:sn=>He==null?void 0:He(sn),...typeof V=="function"?V(je):V}))}),Ke=P==null?void 0:P.map((je,an)=>{const pn=ft(je.color,xe);return v.jsx(Lp,{stroke:je.color?pn:"var(--chart-grid-color)",strokeWidth:1,yAxisId:je.yAxisId||void 0,...je,label:{fill:je.color?pn:"currentColor",fontSize:12,position:je.labelPosition??"insideBottomLeft",...typeof je.label=="object"?je.label:{value:je.label}},...oe("referenceLine")},an)}),en={axisLine:!1,...B==="vertical"?{dataKey:g,type:"category"}:{type:"number"},tickLine:ze?{stroke:"currentColor"}:!1,allowDecimals:!0,unit:A,tickFormatter:B==="vertical"?void 0:He,...oe("axis")};return v.jsx(fe,{...oe("root"),onMouseLeave:Ye,dir:R||"ltr",mod:[{orientation:B},le],...$e,children:v.jsx(xj,{...oe("container"),children:v.jsxs(Vje,{data:Je,stackOffset:G==="percent"?"expand":void 0,layout:B,maxBarSize:Z,margin:{bottom:Y?30:void 0,left:N?10:void 0,right:N?5:void 0},...U,children:[f&&v.jsx(rs,{verticalAlign:"top",content:je=>v.jsx(L0,{payload:je.payload,onHighlight:Ce,legendPosition:(h==null?void 0:h.verticalAlign)||"top",classNames:We,styles:Qe,series:d,showColor:G!=="waterfall",attributes:te}),...h}),v.jsxs(Il,{hide:!w,...B==="vertical"?{type:"number"}:{dataKey:g},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:Ae?{stroke:"currentColor"}:!1,minTickGap:5,tickFormatter:B==="vertical"?He:void 0,...oe("axis"),...j,children:[Y&&v.jsx(ri,{position:"insideBottom",offset:-20,fontSize:12,...oe("axisLabel"),children:Y}),j==null?void 0:j.children]}),v.jsxs(bo,{orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!k,...en,...T,children:[N&&v.jsx(ri,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...oe("axisLabel"),children:N}),T==null?void 0:T.children]}),v.jsxs(bo,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!I,...en,...ie,children:[Q&&v.jsx(ri,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...oe("axisLabel"),children:Q}),T==null?void 0:T.children]}),v.jsx(pb,{strokeDasharray:M,vertical:_==="y"||_==="xy",horizontal:_==="x"||_==="xy",...oe("grid"),...$}),b&&v.jsx(pa,{animationDuration:O,isAnimationActive:O!==0,position:B==="vertical"?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:M,fill:"var(--chart-cursor-fill)"},content:({label:je,payload:an,labelFormatter:pn})=>v.jsx(ej,{label:pn&&an?pn(je,an):je,payload:an,type:G==="waterfall"?"scatter":void 0,unit:A,classNames:We,styles:Qe,series:d,valueFormatter:D,attributes:te}),...q}),be,Ke,z]})})})});dl.displayName="@mantine/charts/BarChart";dl.classes=I0;dl.varsResolver=_G;const Zje={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},xG=(e,{textColor:n,gridColor:t})=>({root:{"--chart-text-color":n?ft(n,e):void 0,"--chart-grid-color":t?ft(t,e):void 0}}),gb=Pe(e=>{const n=ye("LineChart",Zje,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,data:u,withLegend:f,legendProps:h,series:d,onMouseLeave:p,dataKey:g,withTooltip:b,withXAxis:w,withYAxis:k,gridAxis:_,tickLine:S,xAxisProps:j,yAxisProps:T,unit:A,tooltipAnimationDuration:O,strokeDasharray:M,gridProps:$,tooltipProps:q,referenceLines:P,withDots:L,dotProps:U,activeDotProps:G,strokeWidth:B,lineChartProps:R,connectNulls:D,fillOpacity:z,curveType:H,orientation:Y,dir:N,valueFormatter:W,children:V,lineProps:I,xAxisLabel:Q,yAxisLabel:ie,type:re,gradientStops:Z,withRightYAxis:le,rightYAxisLabel:ee,rightYAxisProps:se,withPointLabels:ke,attributes:te,gridColor:$e,...xe}=n,Ae=ci(),ze=_!=="none"&&(S==="x"||S==="xy"),we=_!=="none"&&(S==="y"||S==="xy"),[Ce,Ne]=x.useState(null),he=Ce!==null,He=je=>{Ne(null),p==null||p(je)},{resolvedClassNames:Ye,resolvedStyles:We}=Wi({classNames:t,styles:a,props:n}),Qe=Ze({name:"LineChart",classes:I0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:te,vars:l,varsResolver:xG}),Je=`line-chart-gradient-${Pi()}`,oe=Z==null?void 0:Z.map(je=>v.jsx("stop",{offset:`${je.offset}%`,stopColor:ft(je.color,Ae)},je.color)),be=d.map(je=>{const an=ft(je.color,Ae),pn=he&&Ce!==je.name;return x.createElement(Ip,{...Qe("line"),key:je.name,name:je.name,dataKey:je.name,dot:L?{fillOpacity:pn?0:1,strokeOpacity:pn?0:1,strokeWidth:1,fill:re==="gradient"?"var(--mantine-color-gray-7)":an,stroke:re==="gradient"?"white":an,...U}:!1,activeDot:L?{fill:re==="gradient"?"var(--mantine-color-gray-7)":an,stroke:re==="gradient"?"white":an,...G}:!1,fill:an,stroke:re==="gradient"?`url(#${Je})`:an,strokeWidth:B,isAnimationActive:!1,fillOpacity:pn?0:z,strokeOpacity:pn?.5:z,connectNulls:D,type:je.curveType??H,strokeDasharray:je.strokeDasharray,yAxisId:je.yAxisId||void 0,label:ke?v.jsx(Hve,{valueFormatter:W}):void 0,...typeof I=="function"?I(je):I})}),Ke=P==null?void 0:P.map((je,an)=>{const pn=ft(je.color,Ae);return v.jsx(Lp,{stroke:je.color?pn:"var(--chart-grid-color)",strokeWidth:1,yAxisId:je.yAxisId||void 0,...je,label:{fill:je.color?pn:"currentColor",fontSize:12,position:je.labelPosition??"insideBottomLeft",...typeof je.label=="object"?je.label:{value:je.label}},...Qe("referenceLine")},an)}),en={axisLine:!1,...Y==="vertical"?{dataKey:g,type:"category"}:{type:"number"},tickLine:we?{stroke:"currentColor"}:!1,allowDecimals:!0,unit:A,tickFormatter:Y==="vertical"?void 0:W,...Qe("axis")};return v.jsx(fe,{...Qe("root"),onMouseLeave:He,dir:N||"ltr",...xe,children:v.jsx(xj,{...Qe("container"),children:v.jsxs(Uje,{data:u,layout:Y,margin:{bottom:Q?30:void 0,left:ie?10:void 0,right:ie?5:void 0},...R,children:[re==="gradient"&&v.jsx("defs",{children:v.jsx("linearGradient",{id:Je,x1:"0",y1:"0",x2:"0",y2:"1",children:oe})}),f&&v.jsx(rs,{verticalAlign:"top",content:je=>v.jsx(L0,{payload:je.payload,onHighlight:Ne,legendPosition:(h==null?void 0:h.verticalAlign)||"top",classNames:Ye,styles:We,series:d,showColor:re!=="gradient",attributes:te}),...h}),v.jsxs(Il,{hide:!w,...Y==="vertical"?{type:"number"}:{dataKey:g},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:ze?{stroke:"currentColor"}:!1,minTickGap:5,tickFormatter:Y==="vertical"?W:void 0,...Qe("axis"),...j,children:[Q&&v.jsx(ri,{position:"insideBottom",offset:-20,fontSize:12,...Qe("axisLabel"),children:Q}),j==null?void 0:j.children]}),v.jsxs(bo,{tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!k,...en,...T,children:[ie&&v.jsx(ri,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Qe("axisLabel"),children:ie}),T==null?void 0:T.children]}),v.jsxs(bo,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!le,...en,...se,children:[ee&&v.jsx(ri,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Qe("axisLabel"),children:ee}),T==null?void 0:T.children]}),v.jsx(pb,{strokeDasharray:M,vertical:_==="y"||_==="xy",horizontal:_==="x"||_==="xy",...Qe("grid"),...$}),b&&v.jsx(pa,{animationDuration:O,isAnimationActive:O!==0,position:Y==="vertical"?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:M},content:({label:je,payload:an,labelFormatter:pn})=>v.jsx(ej,{label:pn&&an?pn(je,an):je,payload:an,unit:A,classNames:Ye,styles:We,series:d,valueFormatter:W,showColor:re!=="gradient",attributes:te}),...q}),be,Ke,V]})})})});gb.displayName="@mantine/charts/LineChart";gb.classes=I0;gb.varsResolver=xG;const sz="daily_report_prompt",wS="Eres un coach de equipo. Resume el reporte diario en un MAXIMO de 4 frases cortas, mencionando: (1) total de tareas hechas y quien destaco, (2) cualquier card reabierta o deadline vencido que merezca atencion, (3) cards estancadas criticas (30+ dias) si las hay, (4) una frase corta de animo o aviso si toca. Tono natural, primera persona del plural, sin emojis. No inventes datos; usa solo los del JSON del reporte.";function Qje(e){try{return new Date(e+"T00:00:00").toLocaleDateString("es-ES",{weekday:"long",day:"2-digit",month:"long",year:"numeric"})}catch{return e}}function qc({label:e,value:n,color:t,icon:i,sub:r}){return v.jsxs(Tt,{p:"sm",withBorder:!0,radius:"md",children:[v.jsxs(Ee,{gap:6,mb:2,align:"center",children:[i,v.jsx(de,{size:"xs",c:"dimmed",tt:"uppercase",fw:600,children:e})]}),v.jsx(de,{fz:28,fw:700,c:t,children:n}),r&&v.jsx(de,{size:"xs",c:"dimmed",children:r})]})}function jg({title:e,rows:n,emptyText:t,withAvatar:i=!1}){return v.jsxs(za,{withBorder:!0,radius:"md",p:"sm",children:[v.jsx(de,{fw:600,size:"sm",mb:6,children:e}),n.length===0?v.jsx(de,{size:"xs",c:"dimmed",children:t}):v.jsx(kn,{gap:4,children:n.map((r,a)=>v.jsxs(Ee,{gap:6,wrap:"nowrap",justify:"space-between",children:[v.jsxs(Ee,{gap:6,wrap:"nowrap",style:{minWidth:0,flex:1},children:[i&&v.jsx(mo,{size:22,radius:"xl",color:Ru(r.name||String(a)),children:(r.name||"?").slice(0,2).toUpperCase()}),v.jsx(de,{size:"sm",truncate:!0,children:r.name||"(sin nombre)"})]}),v.jsx(Gn,{size:"sm",variant:"light",color:a===0?"teal":"gray",children:r.count})]},(r.user_id||r.name)+a))})]})}function Jje({date:e,onJumpToCard:n}){const[t,i]=x.useState(null),[r,a]=x.useState(null),[o,l]=x.useState(null),[u,f]=x.useState(!1),[h,d]=x.useState(null),[p,g]=x.useState(!1),[b,w]=x.useState(""),[k,_]=x.useState(null),[S,j]=x.useState(null);x.useEffect(()=>{i(null),a(null),Cre(e).then(i).catch(R=>a(R.message)),l(null),d(null),jre(e).then(R=>l(R.exists?R:null)).catch(()=>{})},[e]);const T=async()=>{f(!0),d(null);try{const R=await Are(e);l({...R,exists:!0})}catch(R){d(R.message)}finally{f(!1)}},A=async()=>{try{const R=await Ore(sz);w(R.value||wS)}catch{w(wS)}g(!0)},O=async()=>{await Tre(sz,b),g(!1)},M=()=>w(wS),$=x.useMemo(()=>t?t.hourly_moves.map((R,D)=>({hora:String(D).padStart(2,"0")+":00",movimientos:R})):[],[t]),q=x.useMemo(()=>{if(!t)return[];const R=new Set;for(const D of t.done_cards)D.requester&&R.add(D.requester);return Array.from(R).sort()},[t]),P=x.useMemo(()=>{if(!t)return[];const R=new Map;for(const D of t.done_cards)D.assignee_id&&R.set(D.assignee_id,D.assignee_name||D.assignee_id);return Array.from(R.entries()).map(([D,z])=>({value:D,label:z}))},[t]),L=x.useMemo(()=>t?t.done_cards.filter(R=>!(k&&R.requester!==k||S&&R.assignee_id!==S)):[],[t,k,S]),U=()=>{if(!t)return;const R=window.open("","_blank");if(!R)return;const D=window.location.origin,z=(()=>{try{return new Date(t.date+"T00:00:00").toLocaleDateString("es-ES",{weekday:"long",day:"2-digit",month:"long",year:"numeric"})}catch{return t.date}})(),H=[];if(k&&H.push(`solicitante=${k}`),S){const V=P.find(I=>I.value===S);H.push(`asignado=${(V==null?void 0:V.label)||S}`)}const Y=V=>V.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),N=L.map(V=>{const I=(V.tags||[]).map(Y).join(", "),Q=`${D}/?card=${V.id}`;return` + A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(n,",").concat(t+r-l*b," Z")}else h="M ".concat(n,",").concat(t," h ").concat(i," v ").concat(r," h ").concat(-i," Z");return h},ZSe=function(n,t){if(!n||!t)return!1;var i=n.x,r=n.y,a=t.x,o=t.y,l=t.width,u=t.height;if(Math.abs(l)>0&&Math.abs(u)>0){var f=Math.min(a,a+l),h=Math.max(a,a+l),d=Math.min(o,o+u),p=Math.max(o,o+u);return i>=f&&i<=h&&r>=d&&r<=p}return!1},QSe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ym=function(n){var t=ZN(ZN({},QSe),n),i=S.useRef(),r=S.useState(-1),a=HSe(r,2),o=a[0],l=a[1];S.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var T=i.current.getTotalLength();T&&l(T)}catch{}},[]);var u=t.x,f=t.y,h=t.width,d=t.height,p=t.radius,g=t.className,b=t.animationEasing,w=t.animationDuration,k=t.animationBegin,_=t.isAnimationActive,x=t.isUpdateAnimationActive;if(u!==+u||f!==+f||h!==+h||d!==+d||h===0||d===0)return null;var C=vn("recharts-rectangle",g);return x?J.createElement(yo,{canBegin:o>0,from:{width:h,height:d,x:u,y:f},to:{width:h,height:d,x:u,y:f},duration:w,animationEasing:b,isActive:x},function(T){var A=T.width,O=T.height,M=T.x,$=T.y;return J.createElement(yo,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:k,duration:w,isActive:_,easing:b},J.createElement("path",J1({},Wn(t,!0),{className:C,d:QN(M,$,A,O,p),ref:i})))}):J.createElement("path",J1({},Wn(t,!0),{className:C,d:QN(u,f,h,d,p)}))};function v6(){return v6=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function a4e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var o4e=function(n,t,i,r,a,o){return"M".concat(n,",").concat(a,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(i)},s4e=function(n){var t=n.x,i=t===void 0?0:t,r=n.y,a=r===void 0?0:r,o=n.top,l=o===void 0?0:o,u=n.left,f=u===void 0?0:u,h=n.width,d=h===void 0?0:h,p=n.height,g=p===void 0?0:p,b=n.className,w=r4e(n,JSe),k=e4e({x:i,y:a,top:l,left:f,width:d,height:g},w);return!Ge(i)||!Ge(a)||!Ge(d)||!Ge(g)||!Ge(l)||!Ge(f)?null:J.createElement("path",g6({},Wn(k,!0),{className:vn("recharts-cross",b),d:o4e(i,a,d,g,l,f)}))},Z3,e$;function l4e(){if(e$)return Z3;e$=1;var e=KU(),n=e(Object.getPrototypeOf,Object);return Z3=n,Z3}var Q3,n$;function u4e(){if(n$)return Q3;n$=1;var e=_s(),n=l4e(),t=xs(),i="[object Object]",r=Function.prototype,a=Object.prototype,o=r.toString,l=a.hasOwnProperty,u=o.call(Object);function f(h){if(!t(h)||e(h)!=i)return!1;var d=n(h);if(d===null)return!0;var p=l.call(d,"constructor")&&d.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==u}return Q3=f,Q3}var c4e=u4e();const f4e=yt(c4e);var J3,t$;function d4e(){if(t$)return J3;t$=1;var e=_s(),n=xs(),t="[object Boolean]";function i(r){return r===!0||r===!1||n(r)&&e(r)==t}return J3=i,J3}var h4e=d4e();const m4e=yt(h4e);function Xm(e){"@babel/helpers - typeof";return Xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xm(e)}function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:f},to:{upperWidth:h,lowerWidth:d,height:p,x:u,y:f},duration:w,animationEasing:b,isActive:_},function(C){var T=C.upperWidth,A=C.lowerWidth,O=C.height,M=C.x,$=C.y;return J.createElement(yo,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:k,duration:w,easing:b},J.createElement("path",ey({},Wn(t,!0),{className:x,d:o$(M,$,T,A,O),ref:i})))}):J.createElement("g",null,J.createElement("path",ey({},Wn(t,!0),{className:x,d:o$(u,f,h,d,p)})))},C4e=["option","shapeType","propTransformer","activeClassName","isActive"];function Zm(e){"@babel/helpers - typeof";return Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zm(e)}function j4e(e,n){if(e==null)return{};var t=A4e(e,n),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function A4e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function s$(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function ny(e){for(var n=1;n0&&i.handleDrag(r.changedTouches[0])}),Hr(i,"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var r=i.props,a=r.endIndex,o=r.onDragEnd,l=r.startIndex;o==null||o({endIndex:a,startIndex:l})}),i.detachDragEndListener()}),Hr(i,"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),Hr(i,"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),Hr(i,"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),Hr(i,"handleSlideDragStart",function(r){var a=g$(r)?r.changedTouches[0]:r;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(i,"startX"),endX:i.handleTravellerDragStart.bind(i,"endX")},i.state={},i}return n6e(n,e),Z4e(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var r=i.startX,a=i.endX,o=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,h=f.length-1,d=Math.min(r,a),p=Math.max(r,a),g=n.getIndexInRange(o,d),b=n.getIndexInRange(o,p);return{startIndex:g-g%u,endIndex:b===h?h:b-b%u}}},{key:"getTextOfTick",value:function(i){var r=this.props,a=r.data,o=r.tickFormatter,l=r.dataKey,u=fr(a[i],l,i);return qn(o)?o(u,i):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var r=this.state,a=r.slideMoveStartX,o=r.startX,l=r.endX,u=this.props,f=u.x,h=u.width,d=u.travellerWidth,p=u.startIndex,g=u.endIndex,b=u.onChange,w=i.pageX-a;w>0?w=Math.min(w,f+h-d-l,f+h-d-o):w<0&&(w=Math.max(w,f-o,f-l));var k=this.getIndex({startX:o+w,endX:l+w});(k.startIndex!==p||k.endIndex!==g)&&b&&b(k),this.setState({startX:o+w,endX:l+w,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,r){var a=g$(r)?r.changedTouches[0]:r;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var r=this.state,a=r.brushMoveStartX,o=r.movingTravellerId,l=r.endX,u=r.startX,f=this.state[o],h=this.props,d=h.x,p=h.width,g=h.travellerWidth,b=h.onChange,w=h.gap,k=h.data,_={startX:this.state.startX,endX:this.state.endX},x=i.pageX-a;x>0?x=Math.min(x,d+p-g-f):x<0&&(x=Math.max(x,d-f)),_[o]=f+x;var C=this.getIndex(_),T=C.startIndex,A=C.endIndex,O=function(){var $=k.length-1;return o==="startX"&&(l>u?T%w===0:A%w===0)||lu?A%w===0:T%w===0)||l>u&&A===$};this.setState(Hr(Hr({},o,f+x),"brushMoveStartX",i.pageX),function(){b&&O()&&b(C)})}},{key:"handleTravellerMoveKeyboard",value:function(i,r){var a=this,o=this.state,l=o.scaleValues,u=o.startX,f=o.endX,h=this.state[r],d=l.indexOf(h);if(d!==-1){var p=d+i;if(!(p===-1||p>=l.length)){var g=l[p];r==="startX"&&g>=f||r==="endX"&&g<=u||this.setState(Hr({},r,g),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,r=i.x,a=i.y,o=i.width,l=i.height,u=i.fill,f=i.stroke;return J.createElement("rect",{stroke:f,fill:u,x:r,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var i=this.props,r=i.x,a=i.y,o=i.width,l=i.height,u=i.data,f=i.children,h=i.padding,d=S.Children.only(f);return d?J.cloneElement(d,{x:r,y:a,width:o,height:l,margin:h,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(i,r){var a,o,l=this,u=this.props,f=u.y,h=u.travellerWidth,d=u.height,p=u.traveller,g=u.ariaLabel,b=u.data,w=u.startIndex,k=u.endIndex,_=Math.max(i,this.props.x),x=rS(rS({},Wn(this.props,!1)),{},{x:_,y:f,width:h,height:d}),C=g||"Min value: ".concat((a=b[w])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=b[k])===null||o===void 0?void 0:o.name);return J.createElement(qt,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),l.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,r))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(p,x))}},{key:"renderSlide",value:function(i,r){var a=this.props,o=a.y,l=a.height,u=a.stroke,f=a.travellerWidth,h=Math.min(i,r)+f,d=Math.max(Math.abs(r-i)-f,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:h,y:o,width:d,height:l})}},{key:"renderText",value:function(){var i=this.props,r=i.startIndex,a=i.endIndex,o=i.y,l=i.height,u=i.travellerWidth,f=i.stroke,h=this.state,d=h.startX,p=h.endX,g=5,b={pointerEvents:"none",fill:f};return J.createElement(qt,{className:"recharts-brush-texts"},J.createElement(E1,iy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-g,y:o+l/2},b),this.getTextOfTick(r)),J.createElement(E1,iy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+u+g,y:o+l/2},b),this.getTextOfTick(a)))}},{key:"render",value:function(){var i=this.props,r=i.data,a=i.className,o=i.children,l=i.x,u=i.y,f=i.width,h=i.height,d=i.alwaysShowText,p=this.state,g=p.startX,b=p.endX,w=p.isTextActive,k=p.isSlideMoving,_=p.isTravellerMoving,x=p.isTravellerFocused;if(!r||!r.length||!Ge(l)||!Ge(u)||!Ge(f)||!Ge(h)||f<=0||h<=0)return null;var C=vn("recharts-brush",a),T=J.Children.count(o)===1,A=K4e("userSelect","none");return J.createElement(qt,{className:C,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(g,b),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(b,"endX"),(w||k||_||x||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var r=i.x,a=i.y,o=i.width,l=i.height,u=i.stroke,f=Math.floor(a+l/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:r,y:a,width:o,height:l,fill:u,stroke:"none"}),J.createElement("line",{x1:r+1,y1:f,x2:r+o-1,y2:f,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:r+1,y1:f+2,x2:r+o-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,r){var a;return J.isValidElement(i)?a=J.cloneElement(i,r):qn(i)?a=i(r):a=n.renderDefaultTraveller(r),a}},{key:"getDerivedStateFromProps",value:function(i,r){var a=i.data,o=i.width,l=i.x,u=i.travellerWidth,f=i.updateId,h=i.startIndex,d=i.endIndex;if(a!==r.prevData||f!==r.prevUpdateId)return rS({prevData:a,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:o},a&&a.length?i6e({data:a,width:o,x:l,travellerWidth:u,startIndex:h,endIndex:d}):{scale:null,scaleValues:null});if(r.scale&&(o!==r.prevWidth||l!==r.prevX||u!==r.prevTravellerWidth)){r.scale.range([l,l+o-u]);var p=r.scale.domain().map(function(g){return r.scale(g)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:o,startX:r.scale(i.startIndex),endX:r.scale(i.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(i,r){for(var a=i.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);i[u]>r?l=u:o=u}return r>=i[l]?l:o}}])})(S.PureComponent);Hr(Cf,"displayName","Brush");Hr(Cf,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var aS,y$;function r6e(){if(y$)return aS;y$=1;var e=kj();function n(t,i){var r;return e(t,function(a,o,l){return r=i(a,o,l),!r}),!!r}return aS=n,aS}var oS,b$;function a6e(){if(b$)return oS;b$=1;var e=qU(),n=Nl(),t=r6e(),i=Er(),r=Q0();function a(o,l,u){var f=i(o)?e:t;return u&&r(o,l,u)&&(l=void 0),f(o,n(l,3))}return oS=a,oS}var o6e=a6e();const s6e=yt(o6e);var co=function(n,t){var i=n.alwaysShow,r=n.ifOverflow;return i&&(r="extendDomain"),r===t},sS,w$;function l6e(){if(w$)return sS;w$=1;var e=oV();function n(t,i,r){i=="__proto__"&&e?e(t,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[i]=r}return sS=n,sS}var lS,k$;function u6e(){if(k$)return lS;k$=1;var e=l6e(),n=rV(),t=Nl();function i(r,a){var o={};return a=t(a,3),n(r,function(l,u,f){e(o,u,a(l,u,f))}),o}return lS=i,lS}var c6e=u6e();const f6e=yt(c6e);var uS,_$;function d6e(){if(_$)return uS;_$=1;function e(n,t){for(var i=-1,r=n==null?0:n.length;++i=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function k6e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function _6e(e,n){var t=e.x,i=e.y,r=w6e(e,v6e),a="".concat(t),o=parseInt(a,10),l="".concat(i),u=parseInt(l,10),f="".concat(n.height||r.height),h=parseInt(f,10),d="".concat(n.width||r.width),p=parseInt(d,10);return Ph(Ph(Ph(Ph(Ph({},n),r),o?{x:o}:{}),u?{y:u}:{}),{},{height:h,width:p,name:n.name,radius:n.radius})}function j$(e){return J.createElement(P4e,b6({shapeType:"rectangle",propTransformer:_6e,activeClassName:"recharts-active-bar"},e))}var x6e=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(i,r){if(typeof n=="number")return n;var a=Ge(i)||Pge(i);return a?n(i,r):(a||Iu(),t)}},S6e=["value","background"],PW;function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jf(e)}function C6e(e,n){if(e==null)return{};var t=j6e(e,n),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function j6e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var n=1;n0&&Math.abs(N)0&&Math.abs(U)0&&(W=Math.min((Q||0)-(U[ie-1]||0),W))}),Number.isFinite(W)){var N=W/z,D=w.layout==="vertical"?i.height:i.width;if(w.padding==="gap"&&(M=N*D/2),w.padding==="no-gap"){var L=zu(n.barCategoryGap,N*D),H=N*D/2;M=H-L-(H-L)/D*L}}}r==="xAxis"?$=[i.left+(C.left||0)+(M||0),i.left+i.width-(C.right||0)-(M||0)]:r==="yAxis"?$=u==="horizontal"?[i.top+i.height-(C.bottom||0),i.top+(C.top||0)]:[i.top+(C.top||0)+(M||0),i.top+i.height-(C.bottom||0)-(M||0)]:$=w.range,A&&($=[$[1],$[0]]);var Y=X2e(w,a,p),P=Y.scale,G=Y.realScaleType;P.domain(_).range($),Z2e(P);var V=axe(P,Na(Na({},w),{},{realScaleType:G}));r==="xAxis"?(I=k==="top"&&!T||k==="bottom"&&T,q=i.left,R=d[O]-I*w.height):r==="yAxis"&&(I=k==="left"&&!T||k==="right"&&T,q=d[O]-I*w.width,R=i.top);var B=Na(Na(Na({},w),V),{},{realScaleType:G,x:q,y:R,scale:P,width:r==="xAxis"?i.width:w.width,height:r==="yAxis"?i.height:w.height});return B.bandSize=W1(B,V),!w.hide&&r==="xAxis"?d[O]+=(I?-1:1)*B.height:w.hide||(d[O]+=(I?-1:1)*B.width),Na(Na({},g),{},fb({},b,B))},{})},LW=function(n,t){var i=n.x,r=n.y,a=t.x,o=t.y;return{x:Math.min(i,a),y:Math.min(r,o),width:Math.abs(a-i),height:Math.abs(o-r)}},z6e=function(n){var t=n.x1,i=n.y1,r=n.x2,a=n.y2;return LW({x:t,y:i},{x:r,y:a})},IW=(function(){function e(n){P6e(this,e),this.scale=n}return N6e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.bandAware,a=i.position;if(t!==void 0){if(a)switch(a){case"start":return this.scale(t);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(t)+l}default:return this.scale(t)}if(r){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+u}return this.scale(t)}}},{key:"isInRange",value:function(t){var i=this.range(),r=i[0],a=i[i.length-1];return r<=a?t>=r&&t<=a:t>=a&&t<=r}}],[{key:"create",value:function(t){return new e(t)}}])})();fb(IW,"EPS",1e-4);var Zj=function(n){var t=Object.keys(n).reduce(function(i,r){return Na(Na({},i),{},fb({},r,IW.create(n[r])))},{});return Na(Na({},t),{},{apply:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return f6e(r,function(u,f){return t[f].apply(u,{bandAware:o,position:l})})},isInRange:function(r){return RW(r,function(a,o){return t[o].isInRange(a)})}})};function L6e(e){return(e%180+180)%180}var I6e=function(n){var t=n.width,i=n.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=L6e(r),o=a*Math.PI/180,l=Math.atan(i/t),u=o>l&&o-1?u[f?a[h]:h]:void 0}}return dS=i,dS}var hS,D$;function F6e(){if(D$)return hS;D$=1;var e=TW();function n(t){var i=e(t),r=i%1;return i===i?r?i-r:i:0}return hS=n,hS}var mS,R$;function q6e(){if(R$)return mS;R$=1;var e=JU(),n=Nl(),t=F6e(),i=Math.max;function r(a,o,l){var u=a==null?0:a.length;if(!u)return-1;var f=l==null?0:t(l);return f<0&&(f=i(u+f,0)),e(a,n(o,3),f)}return mS=r,mS}var pS,P$;function H6e(){if(P$)return pS;P$=1;var e=B6e(),n=q6e(),t=e(n);return pS=t,pS}var U6e=H6e();const V6e=yt(U6e);var W6e=mU();const G6e=yt(W6e);var Y6e=G6e(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Qj=S.createContext(void 0),Jj=S.createContext(void 0),BW=S.createContext(void 0),FW=S.createContext({}),qW=S.createContext(void 0),HW=S.createContext(0),UW=S.createContext(0),N$=function(n){var t=n.state,i=t.xAxisMap,r=t.yAxisMap,a=t.offset,o=n.clipPathId,l=n.children,u=n.width,f=n.height,h=Y6e(a);return J.createElement(Qj.Provider,{value:i},J.createElement(Jj.Provider,{value:r},J.createElement(FW.Provider,{value:a},J.createElement(BW.Provider,{value:h},J.createElement(qW.Provider,{value:o},J.createElement(HW.Provider,{value:f},J.createElement(UW.Provider,{value:u},l)))))))},K6e=function(){return S.useContext(qW)},VW=function(n){var t=S.useContext(Qj);t==null&&Iu();var i=t[n];return i==null&&Iu(),i},X6e=function(){var n=S.useContext(Qj);return ol(n)},Z6e=function(){var n=S.useContext(Jj),t=V6e(n,function(i){return RW(i.domain,Number.isFinite)});return t||ol(n)},WW=function(n){var t=S.useContext(Jj);t==null&&Iu();var i=t[n];return i==null&&Iu(),i},Q6e=function(){var n=S.useContext(BW);return n},J6e=function(){return S.useContext(FW)},eA=function(){return S.useContext(UW)},nA=function(){return S.useContext(HW)};function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Af(e)}function eCe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function nCe(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);te*r)return!1;var a=t();return e*(n-e*a/2-i)>=0&&e*(n+e*a/2-r)<=0}function $Ce(e,n){return JW(e,n+1)}function zCe(e,n,t,i,r){for(var a=(i||[]).slice(),o=n.start,l=n.end,u=0,f=1,h=o,d=function(){var b=i==null?void 0:i[u];if(b===void 0)return{v:JW(i,f)};var w=u,k,_=function(){return k===void 0&&(k=t(b,w)),k},x=b.coordinate,C=u===0||cy(e,x,_,h,l);C||(u=0,h=o,f+=1),C&&(h=x+e*(_()/2+r),u+=f)},p;f<=a.length;)if(p=d(),p)return p.v;return[]}function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tp(e)}function H$(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Xi(e){for(var n=1;n0?g.coordinate-k*e:g.coordinate})}else a[p]=g=Xi(Xi({},g),{},{tickCoord:g.coordinate});var _=cy(e,g.tickCoord,w,l,u);_&&(u=g.tickCoord-e*(w()/2+r),a[p]=Xi(Xi({},g),{},{isShow:!0}))},h=o-1;h>=0;h--)f(h);return a}function qCe(e,n,t,i,r,a){var o=(i||[]).slice(),l=o.length,u=n.start,f=n.end;if(a){var h=i[l-1],d=t(h,l-1),p=e*(h.coordinate+e*d/2-f);o[l-1]=h=Xi(Xi({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate});var g=cy(e,h.tickCoord,function(){return d},u,f);g&&(f=h.tickCoord-e*(d/2+r),o[l-1]=Xi(Xi({},h),{},{isShow:!0}))}for(var b=a?l-1:l,w=function(x){var C=o[x],T,A=function(){return T===void 0&&(T=t(C,x)),T};if(x===0){var O=e*(C.coordinate-e*A()/2-u);o[x]=C=Xi(Xi({},C),{},{tickCoord:O<0?C.coordinate-O*e:C.coordinate})}else o[x]=C=Xi(Xi({},C),{},{tickCoord:C.coordinate});var M=cy(e,C.tickCoord,A,u,f);M&&(u=C.tickCoord+e*(A()/2+r),o[x]=Xi(Xi({},C),{},{isShow:!0}))},k=0;k=2?Fa(r[1].coordinate-r[0].coordinate):1,_=NCe(a,k,g);return u==="equidistantPreserveStart"?zCe(k,_,w,r,o):(u==="preserveStart"||u==="preserveStartEnd"?p=qCe(k,_,w,r,o,u==="preserveStartEnd"):p=FCe(k,_,w,r,o),p.filter(function(x){return x.isShow}))}var HCe=["viewBox"],UCe=["viewBox"],VCe=["ticks"];function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ef(e)}function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function WCe(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function GCe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function V$(e,n){for(var t=0;t0?u(this.props):u(g)),o<=0||l<=0||!b||!b.length?null:J.createElement(qt,{className:vn("recharts-cartesian-axis",f),ref:function(k){i.layerReference=k}},a&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),ri.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,r,a){var o,l=vn(r.className,"recharts-cartesian-axis-tick-value");return J.isValidElement(i)?o=J.cloneElement(i,xi(xi({},r),{},{className:l})):qn(i)?o=i(xi(xi({},r),{},{className:l})):o=J.createElement(E1,Kc({},r,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(S.Component);rA(pd,"displayName","CartesianAxis");rA(pd,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var e9e=["x1","y1","x2","y2","key"],n9e=["offset"];function Bu(e){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bu(e)}function W$(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Qi(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function a9e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var o9e=function(n){var t=n.fill;if(!t||t==="none")return null;var i=n.fillOpacity,r=n.x,a=n.y,o=n.width,l=n.height,u=n.ry;return J.createElement("rect",{x:r,y:a,ry:u,width:o,height:l,stroke:"none",fill:t,fillOpacity:i,className:"recharts-cartesian-grid-bg"})};function tG(e,n){var t;if(J.isValidElement(e))t=J.cloneElement(e,n);else if(qn(e))t=e(n);else{var i=n.x1,r=n.y1,a=n.x2,o=n.y2,l=n.key,u=G$(n,e9e),f=Wn(u,!1);f.offset;var h=G$(f,n9e);t=J.createElement("line",xu({},h,{x1:i,y1:r,x2:a,y2:o,fill:"none",key:l}))}return t}function s9e(e){var n=e.x,t=e.width,i=e.horizontal,r=i===void 0?!0:i,a=e.horizontalPoints;if(!r||!a||!a.length)return null;var o=a.map(function(l,u){var f=Qi(Qi({},e),{},{x1:n,y1:l,x2:n+t,y2:l,key:"line-".concat(u),index:u});return tG(r,f)});return J.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function l9e(e){var n=e.y,t=e.height,i=e.vertical,r=i===void 0?!0:i,a=e.verticalPoints;if(!r||!a||!a.length)return null;var o=a.map(function(l,u){var f=Qi(Qi({},e),{},{x1:l,y1:n,x2:l,y2:n+t,key:"line-".concat(u),index:u});return tG(r,f)});return J.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function u9e(e){var n=e.horizontalFill,t=e.fillOpacity,i=e.x,r=e.y,a=e.width,o=e.height,l=e.horizontalPoints,u=e.horizontal,f=u===void 0?!0:u;if(!f||!n||!n.length)return null;var h=l.map(function(p){return Math.round(p+r-r)}).sort(function(p,g){return p-g});r!==h[0]&&h.unshift(0);var d=h.map(function(p,g){var b=!h[g+1],w=b?r+o-p:h[g+1]-p;if(w<=0)return null;var k=g%n.length;return J.createElement("rect",{key:"react-".concat(g),y:p,x:i,height:w,width:a,stroke:"none",fill:n[k],fillOpacity:t,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function c9e(e){var n=e.vertical,t=n===void 0?!0:n,i=e.verticalFill,r=e.fillOpacity,a=e.x,o=e.y,l=e.width,u=e.height,f=e.verticalPoints;if(!t||!i||!i.length)return null;var h=f.map(function(p){return Math.round(p+a-a)}).sort(function(p,g){return p-g});a!==h[0]&&h.unshift(0);var d=h.map(function(p,g){var b=!h[g+1],w=b?a+l-p:h[g+1]-p;if(w<=0)return null;var k=g%i.length;return J.createElement("rect",{key:"react-".concat(g),x:p,y:o,width:w,height:u,stroke:"none",fill:i[k],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var f9e=function(n,t){var i=n.xAxis,r=n.width,a=n.height,o=n.offset;return vW(iA(Qi(Qi(Qi({},pd.defaultProps),i),{},{ticks:Qo(i,!0),viewBox:{x:0,y:0,width:r,height:a}})),o.left,o.left+o.width,t)},d9e=function(n,t){var i=n.yAxis,r=n.width,a=n.height,o=n.offset;return vW(iA(Qi(Qi(Qi({},pd.defaultProps),i),{},{ticks:Qo(i,!0),viewBox:{x:0,y:0,width:r,height:a}})),o.top,o.top+o.height,t)},Fc={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function vb(e){var n,t,i,r,a,o,l=eA(),u=nA(),f=J6e(),h=Qi(Qi({},e),{},{stroke:(n=e.stroke)!==null&&n!==void 0?n:Fc.stroke,fill:(t=e.fill)!==null&&t!==void 0?t:Fc.fill,horizontal:(i=e.horizontal)!==null&&i!==void 0?i:Fc.horizontal,horizontalFill:(r=e.horizontalFill)!==null&&r!==void 0?r:Fc.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Fc.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Fc.verticalFill,x:Ge(e.x)?e.x:f.left,y:Ge(e.y)?e.y:f.top,width:Ge(e.width)?e.width:f.width,height:Ge(e.height)?e.height:f.height}),d=h.x,p=h.y,g=h.width,b=h.height,w=h.syncWithTicks,k=h.horizontalValues,_=h.verticalValues,x=X6e(),C=Z6e();if(!Ge(g)||g<=0||!Ge(b)||b<=0||!Ge(d)||d!==+d||!Ge(p)||p!==+p)return null;var T=h.verticalCoordinatesGenerator||f9e,A=h.horizontalCoordinatesGenerator||d9e,O=h.horizontalPoints,M=h.verticalPoints;if((!O||!O.length)&&qn(A)){var $=k&&k.length,q=A({yAxis:C?Qi(Qi({},C),{},{ticks:$?k:C.ticks}):void 0,width:l,height:u,offset:f},$?!0:w);is(Array.isArray(q),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Bu(q),"]")),Array.isArray(q)&&(O=q)}if((!M||!M.length)&&qn(T)){var R=_&&_.length,I=T({xAxis:x?Qi(Qi({},x),{},{ticks:R?_:x.ticks}):void 0,width:l,height:u,offset:f},R?!0:w);is(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Bu(I),"]")),Array.isArray(I)&&(M=I)}return J.createElement("g",{className:"recharts-cartesian-grid"},J.createElement(o9e,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),J.createElement(s9e,xu({},h,{offset:f,horizontalPoints:O,xAxis:x,yAxis:C})),J.createElement(l9e,xu({},h,{offset:f,verticalPoints:M,xAxis:x,yAxis:C})),J.createElement(u9e,xu({},h,{horizontalPoints:O})),J.createElement(c9e,xu({},h,{verticalPoints:M})))}vb.displayName="CartesianGrid";var h9e=["type","layout","connectNulls","ref"],m9e=["key"];function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mf(e)}function Y$(e,n){if(e==null)return{};var t=p9e(e,n),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function p9e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function om(){return om=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);td){g=[].concat(qc(u.slice(0,b)),[d-w]);break}var k=g.length%2===0?[0,p]:[p];return[].concat(qc(n.repeat(u,h)),qc(g),k).map(function(_){return"".concat(_,"px")}).join(", ")}),$a(t,"id",cd("recharts-line-")),$a(t,"pathRef",function(o){t.mainCurve=o}),$a(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),$a(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return C9e(n,e),k9e(n,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();this.setState({totalLength:i})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();i!==this.state.totalLength&&this.setState({totalLength:i})}}},{key:"getTotalLength",value:function(){var i=this.mainCurve;try{return i&&i.getTotalLength&&i.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(i,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,u=a.yAxis,f=a.layout,h=a.children,d=wa(h,zp);if(!d)return null;var p=function(w,k){return{x:w.x,y:w.y,value:w.value,errorVal:fr(w.payload,k)}},g={clipPath:i?"url(#clipPath-".concat(r,")"):null};return J.createElement(qt,g,d.map(function(b){return J.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:o,xAxis:l,yAxis:u,layout:f,dataPointFormatter:p})}))}},{key:"renderDots",value:function(i,r,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.dot,f=l.points,h=l.dataKey,d=Wn(this.props,!1),p=Wn(u,!0),g=f.map(function(w,k){var _=qr(qr(qr({key:"dot-".concat(k),r:3},d),p),{},{index:k,cx:w.x,cy:w.y,value:w.value,dataKey:h,payload:w.payload,points:f});return n.renderDotItem(u,_)}),b={clipPath:i?"url(#clipPath-".concat(r?"":"dots-").concat(a,")"):null};return J.createElement(qt,om({className:"recharts-line-dots",key:"dots"},b),g)}},{key:"renderCurveStatically",value:function(i,r,a,o){var l=this.props,u=l.type,f=l.layout,h=l.connectNulls;l.ref;var d=Y$(l,h9e),p=qr(qr(qr({},Wn(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(a,")"):null,points:i},o),{},{type:u,layout:f,connectNulls:h});return J.createElement(af,om({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(i,r){var a=this,o=this.props,l=o.points,u=o.strokeDasharray,f=o.isAnimationActive,h=o.animationBegin,d=o.animationDuration,p=o.animationEasing,g=o.animationId,b=o.animateNewValues,w=o.width,k=o.height,_=this.state,x=_.prevPoints,C=_.totalLength;return J.createElement(yo,{begin:h,duration:d,isActive:f,easing:p,from:{t:0},to:{t:1},key:"line-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(T){var A=T.t;if(x){var O=x.length/l.length,M=l.map(function(z,W){var U=Math.floor(W*O);if(x[U]){var N=x[U],D=Ui(N.x,z.x),L=Ui(N.y,z.y);return qr(qr({},z),{},{x:D(A),y:L(A)})}if(b){var H=Ui(w*2,z.x),Y=Ui(k/2,z.y);return qr(qr({},z),{},{x:H(A),y:Y(A)})}return qr(qr({},z),{},{x:z.x,y:z.y})});return a.renderCurveStatically(M,i,r)}var $=Ui(0,C),q=$(A),R;if(u){var I="".concat(u).split(/[,\s]+/gim).map(function(z){return parseFloat(z)});R=a.getStrokeDasharray(q,C,I)}else R=a.generateSimpleStrokeDasharray(C,q);return a.renderCurveStatically(l,i,r,{strokeDasharray:R})})}},{key:"renderCurve",value:function(i,r){var a=this.props,o=a.points,l=a.isAnimationActive,u=this.state,f=u.prevPoints,h=u.totalLength;return l&&o&&o.length&&(!f&&h>0||!kf(f,o))?this.renderCurveWithAnimation(i,r):this.renderCurveStatically(o,i,r)}},{key:"render",value:function(){var i,r=this.props,a=r.hide,o=r.dot,l=r.points,u=r.className,f=r.xAxis,h=r.yAxis,d=r.top,p=r.left,g=r.width,b=r.height,w=r.isAnimationActive,k=r.id;if(a||!l||!l.length)return null;var _=this.state.isAnimationFinished,x=l.length===1,C=vn("recharts-line",u),T=f&&f.allowDataOverflow,A=h&&h.allowDataOverflow,O=T||A,M=Zn(k)?this.id:k,$=(i=Wn(o,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},q=$.r,R=q===void 0?3:q,I=$.strokeWidth,z=I===void 0?2:I,W=bU(o)?o:{},U=W.clipDot,N=U===void 0?!0:U,D=R*2+z;return J.createElement(qt,{className:C},T||A?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(M)},J.createElement("rect",{x:T?p:p-g/2,y:A?d:d-b/2,width:T?g:g*2,height:A?b:b*2})),!N&&J.createElement("clipPath",{id:"clipPath-dots-".concat(M)},J.createElement("rect",{x:p-D/2,y:d-D/2,width:g+D,height:b+D}))):null,!x&&this.renderCurve(O,M),this.renderErrorBar(O,M),(x||o)&&this.renderDots(O,N,M),(!w||_)&&uo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(i,r){return i.animationId!==r.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,prevPoints:r.curPoints}:i.points!==r.curPoints?{curPoints:i.points}:null}},{key:"repeat",value:function(i,r){for(var a=i.length%2!==0?[].concat(qc(i),[0]):i,o=[],l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function T9e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var n=1;n0||!kf(h,o)||!kf(d,l))?this.renderAreaWithAnimation(i,r):this.renderAreaStatically(o,l,i,r)}},{key:"render",value:function(){var i,r=this.props,a=r.hide,o=r.dot,l=r.points,u=r.className,f=r.top,h=r.left,d=r.xAxis,p=r.yAxis,g=r.width,b=r.height,w=r.isAnimationActive,k=r.id;if(a||!l||!l.length)return null;var _=this.state.isAnimationFinished,x=l.length===1,C=vn("recharts-area",u),T=d&&d.allowDataOverflow,A=p&&p.allowDataOverflow,O=T||A,M=Zn(k)?this.id:k,$=(i=Wn(o,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},q=$.r,R=q===void 0?3:q,I=$.strokeWidth,z=I===void 0?2:I,W=bU(o)?o:{},U=W.clipDot,N=U===void 0?!0:U,D=R*2+z;return J.createElement(qt,{className:C},T||A?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(M)},J.createElement("rect",{x:T?h:h-g/2,y:A?f:f-b/2,width:T?g:g*2,height:A?b:b*2})),!N&&J.createElement("clipPath",{id:"clipPath-dots-".concat(M)},J.createElement("rect",{x:h-D/2,y:f-D/2,width:g+D,height:b+D}))):null,x?null:this.renderArea(O,M),(o||x)&&this.renderDots(O,N,M),(!w||_)&&uo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(i,r){return i.animationId!==r.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,curBaseLine:i.baseLine,prevPoints:r.curPoints,prevBaseLine:r.curBaseLine}:i.points!==r.curPoints||i.baseLine!==r.curBaseLine?{curPoints:i.points,curBaseLine:i.baseLine}:null}}])})(S.PureComponent);aG=ms;ao(ms,"displayName","Area");ao(ms,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Xu.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ao(ms,"getBaseValue",function(e,n,t,i){var r=e.layout,a=e.baseValue,o=n.props.baseValue,l=o??a;if(Ge(l)&&typeof l=="number")return l;var u=r==="horizontal"?i:t,f=u.scale.domain();if(u.type==="number"){var h=Math.max(f[0],f[1]),d=Math.min(f[0],f[1]);return l==="dataMin"?d:l==="dataMax"||h<0?h:Math.max(Math.min(f[0],f[1]),0)}return l==="dataMin"?f[0]:l==="dataMax"?f[1]:f[0]});ao(ms,"getComposedData",function(e){var n=e.props,t=e.item,i=e.xAxis,r=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,u=e.dataKey,f=e.stackedData,h=e.dataStartIndex,d=e.displayedData,p=e.offset,g=n.layout,b=f&&f.length,w=aG.getBaseValue(n,t,i,r),k=g==="horizontal",_=!1,x=d.map(function(T,A){var O;b?O=f[h+A]:(O=fr(T,u),Array.isArray(O)?_=!0:O=[w,O]);var M=O[1]==null||b&&fr(T,u)==null;return k?{x:V1({axis:i,ticks:a,bandSize:l,entry:T,index:A}),y:M?null:r.scale(O[1]),value:O,payload:T}:{x:M?null:i.scale(O[1]),y:V1({axis:r,ticks:o,bandSize:l,entry:T,index:A}),value:O,payload:T}}),C;return b||_?C=x.map(function(T){var A=Array.isArray(T.value)?T.value[0]:null;return k?{x:T.x,y:A!=null&&T.y!=null?r.scale(A):null}:{x:A!=null?i.scale(A):null,y:T.y}}):C=k?r.scale(w):i.scale(w),el({points:x,baseLine:C,layout:g,isRange:_},p)});ao(ms,"renderDotItem",function(e,n){var t;if(J.isValidElement(e))t=J.cloneElement(e,n);else if(qn(e))t=e(n);else{var i=vn("recharts-area-dot",typeof e!="boolean"?e.className:""),r=n.key,a=oG(n,O9e);t=J.createElement(lb,Su({},a,{key:r,className:i}))}return t});function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rf(e)}function z9e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function L9e(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Cje(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function jje(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Aje(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);t0?o:n&&n.length&&Ge(r)&&Ge(a)?n.slice(r,a+1):[]};function kG(e){return e==="number"?[0,"auto"]:void 0}var I6=function(n,t,i,r){var a=n.graphicalItems,o=n.tooltipAxis,l=gb(t,n);return i<0||!a||!a.length||i>=l.length?null:a.reduce(function(u,f){var h,d=(h=f.props.data)!==null&&h!==void 0?h:t;d&&n.dataStartIndex+n.dataEndIndex!==0&&n.dataEndIndex-n.dataStartIndex>=i&&(d=d.slice(n.dataStartIndex,n.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var g=d===void 0?l:d;p=g1(g,o.dataKey,r)}else p=d&&d[i]||l[i];return p?[].concat($f(u),[yW(f,p)]):u},[])},az=function(n,t,i,r){var a=r||{x:n.chartX,y:n.chartY},o=Ije(a,i),l=n.orderedTooltipTicks,u=n.tooltipAxis,f=n.tooltipTicks,h=U2e(o,l,f,u);if(h>=0&&f){var d=f[h]&&f[h].value,p=I6(n,t,h,d),g=Bje(i,l,h,a);return{activeTooltipIndex:h,activeLabel:d,activePayload:p,activeCoordinate:g}}return null},Fje=function(n,t){var i=t.axes,r=t.graphicalItems,a=t.axisType,o=t.axisIdKey,l=t.stackGroups,u=t.dataStartIndex,f=t.dataEndIndex,h=n.layout,d=n.children,p=n.stackOffset,g=pW(h,a);return i.reduce(function(b,w){var k,_=w.type.defaultProps!==void 0?Ee(Ee({},w.type.defaultProps),w.props):w.props,x=_.type,C=_.dataKey,T=_.allowDataOverflow,A=_.allowDuplicatedCategory,O=_.scale,M=_.ticks,$=_.includeHidden,q=_[o];if(b[q])return b;var R=gb(n.data,{graphicalItems:r.filter(function(V){var B,Q=o in V.props?V.props[o]:(B=V.type.defaultProps)===null||B===void 0?void 0:B[o];return Q===q}),dataStartIndex:u,dataEndIndex:f}),I=R.length,z,W,U;hje(_.domain,T,x)&&(z=t6(_.domain,null,T),g&&(x==="number"||O!=="auto")&&(U=rm(R,C,"category")));var N=kG(x);if(!z||z.length===0){var D,L=(D=_.domain)!==null&&D!==void 0?D:N;if(C){if(z=rm(R,C,x),x==="category"&&g){var H=$ge(z);A&&H?(W=z,z=ty(0,I)):A||(z=wN(L,z,w).reduce(function(V,B){return V.indexOf(B)>=0?V:[].concat($f(V),[B])},[]))}else if(x==="category")A?z=z.filter(function(V){return V!==""&&!Zn(V)}):z=wN(L,z,w).reduce(function(V,B){return V.indexOf(B)>=0||B===""||Zn(B)?V:[].concat($f(V),[B])},[]);else if(x==="number"){var Y=K2e(R,r.filter(function(V){var B,Q,ie=o in V.props?V.props[o]:(B=V.type.defaultProps)===null||B===void 0?void 0:B[o],re="hide"in V.props?V.props.hide:(Q=V.type.defaultProps)===null||Q===void 0?void 0:Q.hide;return ie===q&&($||!re)}),C,a,h);Y&&(z=Y)}g&&(x==="number"||O!=="auto")&&(U=rm(R,C,"category"))}else g?z=ty(0,I):l&&l[q]&&l[q].hasStack&&x==="number"?z=p==="expand"?[0,1]:gW(l[q].stackGroups,u,f):z=mW(R,r.filter(function(V){var B=o in V.props?V.props[o]:V.type.defaultProps[o],Q="hide"in V.props?V.props.hide:V.type.defaultProps.hide;return B===q&&($||!Q)}),x,h,!0);if(x==="number")z=$6(d,z,q,a,M),L&&(z=t6(L,z,T));else if(x==="category"&&L){var P=L,G=z.every(function(V){return P.indexOf(V)>=0});G&&(z=P)}}return Ee(Ee({},b),{},Tn({},q,Ee(Ee({},_),{},{axisType:a,domain:z,categoricalDomain:U,duplicateDomain:W,originalDomain:(k=_.domain)!==null&&k!==void 0?k:N,isCategorical:g,layout:h})))},{})},qje=function(n,t){var i=t.graphicalItems,r=t.Axis,a=t.axisType,o=t.axisIdKey,l=t.stackGroups,u=t.dataStartIndex,f=t.dataEndIndex,h=n.layout,d=n.children,p=gb(n.data,{graphicalItems:i,dataStartIndex:u,dataEndIndex:f}),g=p.length,b=pW(h,a),w=-1;return i.reduce(function(k,_){var x=_.type.defaultProps!==void 0?Ee(Ee({},_.type.defaultProps),_.props):_.props,C=x[o],T=kG("number");if(!k[C]){w++;var A;return b?A=ty(0,g):l&&l[C]&&l[C].hasStack?(A=gW(l[C].stackGroups,u,f),A=$6(d,A,C,a)):(A=t6(T,mW(p,i.filter(function(O){var M,$,q=o in O.props?O.props[o]:(M=O.type.defaultProps)===null||M===void 0?void 0:M[o],R="hide"in O.props?O.props.hide:($=O.type.defaultProps)===null||$===void 0?void 0:$.hide;return q===C&&!R}),"number",h),r.defaultProps.allowDataOverflow),A=$6(d,A,C,a)),Ee(Ee({},k),{},Tn({},C,Ee(Ee({axisType:a},r.defaultProps),{},{hide:!0,orientation:ba(zje,"".concat(a,".").concat(w%2),null),domain:A,originalDomain:T,isCategorical:b,layout:h})))}return k},{})},Hje=function(n,t){var i=t.axisType,r=i===void 0?"xAxis":i,a=t.AxisComp,o=t.graphicalItems,l=t.stackGroups,u=t.dataStartIndex,f=t.dataEndIndex,h=n.children,d="".concat(r,"Id"),p=wa(h,a),g={};return p&&p.length?g=Fje(n,{axes:p,graphicalItems:o,axisType:r,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f}):o&&o.length&&(g=qje(n,{Axis:a,graphicalItems:o,axisType:r,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f})),g},Uje=function(n){var t=ol(n),i=Qo(t,!1,!0);return{tooltipTicks:i,orderedTooltipTicks:_j(i,function(r){return r.coordinate}),tooltipAxis:t,tooltipAxisBandSize:W1(t,i)}},oz=function(n){var t=n.children,i=n.defaultShowTooltip,r=Vr(t,Cf),a=0,o=0;return n.data&&n.data.length!==0&&(o=n.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(a=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!i}},Vje=function(n){return!n||!n.length?!1:n.some(function(t){var i=ts(t&&t.type);return i&&i.indexOf("Bar")>=0})},sz=function(n){return n==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:n==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:n==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Wje=function(n,t){var i=n.props,r=n.graphicalItems,a=n.xAxisMap,o=a===void 0?{}:a,l=n.yAxisMap,u=l===void 0?{}:l,f=i.width,h=i.height,d=i.children,p=i.margin||{},g=Vr(d,Cf),b=Vr(d,rs),w=Object.keys(u).reduce(function(A,O){var M=u[O],$=M.orientation;return!M.mirror&&!M.hide?Ee(Ee({},A),{},Tn({},$,A[$]+M.width)):A},{left:p.left||0,right:p.right||0}),k=Object.keys(o).reduce(function(A,O){var M=o[O],$=M.orientation;return!M.mirror&&!M.hide?Ee(Ee({},A),{},Tn({},$,ba(A,"".concat($))+M.height)):A},{top:p.top||0,bottom:p.bottom||0}),_=Ee(Ee({},k),w),x=_.bottom;g&&(_.bottom+=g.props.height||Cf.defaultProps.height),b&&t&&(_=G2e(_,r,i,t));var C=f-_.left-_.right,T=h-_.top-_.bottom;return Ee(Ee({brushBottom:x},_),{},{width:Math.max(C,0),height:Math.max(T,0)})},Gje=function(n,t){if(t==="xAxis")return n[t].width;if(t==="yAxis")return n[t].height},aA=function(n){var t=n.chartName,i=n.GraphicalChild,r=n.defaultTooltipEventType,a=r===void 0?"axis":r,o=n.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=n.axisComponents,f=n.legendContent,h=n.formatAxisMap,d=n.defaultProps,p=function(_,x){var C=x.graphicalItems,T=x.stackGroups,A=x.offset,O=x.updateId,M=x.dataStartIndex,$=x.dataEndIndex,q=_.barSize,R=_.layout,I=_.barGap,z=_.barCategoryGap,W=_.maxBarSize,U=sz(R),N=U.numericAxisName,D=U.cateAxisName,L=Vje(C),H=[];return C.forEach(function(Y,P){var G=gb(_.data,{graphicalItems:[Y],dataStartIndex:M,dataEndIndex:$}),V=Y.type.defaultProps!==void 0?Ee(Ee({},Y.type.defaultProps),Y.props):Y.props,B=V.dataKey,Q=V.maxBarSize,ie=V["".concat(N,"Id")],re=V["".concat(D,"Id")],Z={},le=u.reduce(function(He,Ye){var We=x["".concat(Ye.axisType,"Map")],Qe=V["".concat(Ye.axisType,"Id")];We&&We[Qe]||Ye.axisType==="zAxis"||Iu();var Je=We[Qe];return Ee(Ee({},He),{},Tn(Tn({},Ye.axisType,Je),"".concat(Ye.axisType,"Ticks"),Qo(Je)))},Z),ee=le[D],se=le["".concat(D,"Ticks")],ke=T&&T[ie]&&T[ie].hasStack&&sxe(Y,T[ie].stackGroups),te=ts(Y.type).indexOf("Bar")>=0,$e=W1(ee,se),xe=[],Oe=L&&V2e({barSize:q,stackGroups:T,totalSize:Gje(le,D)});if(te){var ze,we,Ce=Zn(Q)?W:Q,Ne=(ze=(we=W1(ee,se,!0))!==null&&we!==void 0?we:Ce)!==null&&ze!==void 0?ze:0;xe=W2e({barGap:I,barCategoryGap:z,bandSize:Ne!==$e?Ne:$e,sizeList:Oe[re],maxBarSize:Ce}),Ne!==$e&&(xe=xe.map(function(He){return Ee(Ee({},He),{},{position:Ee(Ee({},He.position),{},{offset:He.position.offset-Ne/2})})}))}var he=Y&&Y.type&&Y.type.getComposedData;he&&H.push({props:Ee(Ee({},he(Ee(Ee({},le),{},{displayedData:G,props:_,dataKey:B,item:Y,bandSize:$e,barPosition:xe,offset:A,stackedData:ke,layout:R,dataStartIndex:M,dataEndIndex:$}))),{},Tn(Tn(Tn({key:Y.key||"item-".concat(P)},N,le[N]),D,le[D]),"animationId",O)),childIndex:Yge(Y,_.children),item:Y})}),H},g=function(_,x){var C=_.props,T=_.dataStartIndex,A=_.dataEndIndex,O=_.updateId;if(!ND({props:C}))return null;var M=C.children,$=C.layout,q=C.stackOffset,R=C.data,I=C.reverseStackOrder,z=sz($),W=z.numericAxisName,U=z.cateAxisName,N=wa(M,i),D=rxe(R,N,"".concat(W,"Id"),"".concat(U,"Id"),q,I),L=u.reduce(function(V,B){var Q="".concat(B.axisType,"Map");return Ee(Ee({},V),{},Tn({},Q,Hje(C,Ee(Ee({},B),{},{graphicalItems:N,stackGroups:B.axisType===W&&D,dataStartIndex:T,dataEndIndex:A}))))},{}),H=Wje(Ee(Ee({},L),{},{props:C,graphicalItems:N}),x==null?void 0:x.legendBBox);Object.keys(L).forEach(function(V){L[V]=h(C,L[V],H,V.replace("Map",""),t)});var Y=L["".concat(U,"Map")],P=Uje(Y),G=p(C,Ee(Ee({},L),{},{dataStartIndex:T,dataEndIndex:A,updateId:O,graphicalItems:N,stackGroups:D,offset:H}));return Ee(Ee({formattedGraphicalItems:G,graphicalItems:N,offset:H,stackGroups:D},P),L)},b=(function(k){function _(x){var C,T,A;return jje(this,_),A=Tje(this,_,[x]),Tn(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Tn(A,"accessibilityManager",new dje),Tn(A,"handleLegendBBoxUpdate",function(O){if(O){var M=A.state,$=M.dataStartIndex,q=M.dataEndIndex,R=M.updateId;A.setState(Ee({legendBBox:O},g({props:A.props,dataStartIndex:$,dataEndIndex:q,updateId:R},Ee(Ee({},A.state),{},{legendBBox:O}))))}}),Tn(A,"handleReceiveSyncEvent",function(O,M,$){if(A.props.syncId===O){if($===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(M)}}),Tn(A,"handleBrushChange",function(O){var M=O.startIndex,$=O.endIndex;if(M!==A.state.dataStartIndex||$!==A.state.dataEndIndex){var q=A.state.updateId;A.setState(function(){return Ee({dataStartIndex:M,dataEndIndex:$},g({props:A.props,dataStartIndex:M,dataEndIndex:$,updateId:q},A.state))}),A.triggerSyncEvent({dataStartIndex:M,dataEndIndex:$})}}),Tn(A,"handleMouseEnter",function(O){var M=A.getMouseInfo(O);if(M){var $=Ee(Ee({},M),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var q=A.props.onMouseEnter;qn(q)&&q($,O)}}),Tn(A,"triggeredAfterMouseMove",function(O){var M=A.getMouseInfo(O),$=M?Ee(Ee({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState($),A.triggerSyncEvent($);var q=A.props.onMouseMove;qn(q)&&q($,O)}),Tn(A,"handleItemMouseEnter",function(O){A.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),Tn(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Tn(A,"handleMouseMove",function(O){O.persist(),A.throttleTriggeredAfterMouseMove(O)}),Tn(A,"handleMouseLeave",function(O){A.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};A.setState(M),A.triggerSyncEvent(M);var $=A.props.onMouseLeave;qn($)&&$(M,O)}),Tn(A,"handleOuterEvent",function(O){var M=Gge(O),$=ba(A.props,"".concat(M));if(M&&qn($)){var q,R;/.*touch.*/i.test(M)?R=A.getMouseInfo(O.changedTouches[0]):R=A.getMouseInfo(O),$((q=R)!==null&&q!==void 0?q:{},O)}}),Tn(A,"handleClick",function(O){var M=A.getMouseInfo(O);if(M){var $=Ee(Ee({},M),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var q=A.props.onClick;qn(q)&&q($,O)}}),Tn(A,"handleMouseDown",function(O){var M=A.props.onMouseDown;if(qn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"handleMouseUp",function(O){var M=A.props.onMouseUp;if(qn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),Tn(A,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseDown(O.changedTouches[0])}),Tn(A,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseUp(O.changedTouches[0])}),Tn(A,"handleDoubleClick",function(O){var M=A.props.onDoubleClick;if(qn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"handleContextMenu",function(O){var M=A.props.onContextMenu;if(qn(M)){var $=A.getMouseInfo(O);M($,O)}}),Tn(A,"triggerSyncEvent",function(O){A.props.syncId!==void 0&&yS.emit(bS,A.props.syncId,O,A.eventEmitterSymbol)}),Tn(A,"applySyncEvent",function(O){var M=A.props,$=M.layout,q=M.syncMethod,R=A.state.updateId,I=O.dataStartIndex,z=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)A.setState(Ee({dataStartIndex:I,dataEndIndex:z},g({props:A.props,dataStartIndex:I,dataEndIndex:z,updateId:R},A.state)));else if(O.activeTooltipIndex!==void 0){var W=O.chartX,U=O.chartY,N=O.activeTooltipIndex,D=A.state,L=D.offset,H=D.tooltipTicks;if(!L)return;if(typeof q=="function")N=q(H,O);else if(q==="value"){N=-1;for(var Y=0;Y=0){var ke,te;if(W.dataKey&&!W.allowDuplicatedCategory){var $e=typeof W.dataKey=="function"?se:"payload.".concat(W.dataKey.toString());ke=g1(Y,$e,N),te=P&&G&&g1(G,$e,N)}else ke=Y==null?void 0:Y[U],te=P&&G&&G[U];if(re||ie){var xe=O.props.activeIndex!==void 0?O.props.activeIndex:U;return[S.cloneElement(O,Ee(Ee(Ee({},q.props),le),{},{activeIndex:xe})),null,null]}if(!Zn(ke))return[ee].concat($f(A.renderActivePoints({item:q,activePoint:ke,basePoint:te,childIndex:U,isRange:P})))}else{var Oe,ze=(Oe=A.getItemByXY(A.state.activeCoordinate))!==null&&Oe!==void 0?Oe:{graphicalItem:ee},we=ze.graphicalItem,Ce=we.item,Ne=Ce===void 0?O:Ce,he=we.childIndex,He=Ee(Ee(Ee({},q.props),le),{},{activeIndex:he});return[S.cloneElement(Ne,He),null,null]}return P?[ee,null,null]:[ee,null]}),Tn(A,"renderCustomized",function(O,M,$){return S.cloneElement(O,Ee(Ee({key:"recharts-customized-".concat($)},A.props),A.state))}),Tn(A,"renderMap",{CartesianGrid:{handler:Cg,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:Cg},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:Cg},YAxis:{handler:Cg},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((C=x.id)!==null&&C!==void 0?C:cd("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=dV(A.triggeredAfterMouseMove,(T=x.throttleDelay)!==null&&T!==void 0?T:1e3/60),A.state={},A}return Dje(_,k),Oje(_,[{key:"componentDidMount",value:function(){var C,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var C=this.props,T=C.children,A=C.data,O=C.height,M=C.layout,$=Vr(T,pa);if($){var q=$.props.defaultIndex;if(!(typeof q!="number"||q<0||q>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[q]&&this.state.tooltipTicks[q].value,I=I6(this.state,A,q,R),z=this.state.tooltipTicks[q].coordinate,W=(this.state.offset.top+O)/2,U=M==="horizontal",N=U?{x:z,y:W}:{y:z,x:W},D=this.state.formattedGraphicalItems.find(function(H){var Y=H.item;return Y.type.name==="Scatter"});D&&(N=Ee(Ee({},N),D.props.points[q].tooltipPosition),I=D.props.points[q].tooltipPayload);var L={activeTooltipIndex:q,isTooltipActive:!0,activeLabel:R,activePayload:I,activeCoordinate:N};this.setState(L),this.renderCursor($),this.accessibilityManager.setIndex(q)}}}},{key:"getSnapshotBeforeUpdate",value:function(C,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==C.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==C.margin){var A,O;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(C){S4([Vr(C.children,pa)],[Vr(this.props.children,pa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var C=Vr(this.props.children,pa);if(C&&typeof C.props.shared=="boolean"){var T=C.props.shared?"axis":"item";return l.indexOf(T)>=0?T:a}return a}},{key:"getMouseInfo",value:function(C){if(!this.container)return null;var T=this.container,A=T.getBoundingClientRect(),O=Pbe(A),M={chartX:Math.round(C.pageX-O.left),chartY:Math.round(C.pageY-O.top)},$=A.width/T.offsetWidth||1,q=this.inRange(M.chartX,M.chartY,$);if(!q)return null;var R=this.state,I=R.xAxisMap,z=R.yAxisMap,W=this.getTooltipEventType(),U=az(this.state,this.props.data,this.props.layout,q);if(W!=="axis"&&I&&z){var N=ol(I).scale,D=ol(z).scale,L=N&&N.invert?N.invert(M.chartX):null,H=D&&D.invert?D.invert(M.chartY):null;return Ee(Ee({},M),{},{xValue:L,yValue:H},U)}return U?Ee(Ee({},M),U):null}},{key:"inRange",value:function(C,T){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,M=C/A,$=T/A;if(O==="horizontal"||O==="vertical"){var q=this.state.offset,R=M>=q.left&&M<=q.left+q.width&&$>=q.top&&$<=q.top+q.height;return R?{x:M,y:$}:null}var I=this.state,z=I.angleAxisMap,W=I.radiusAxisMap;if(z&&W){var U=ol(z);return xN({x:M,y:$},U)}return null}},{key:"parseEventsOfWrapper",value:function(){var C=this.props.children,T=this.getTooltipEventType(),A=Vr(C,pa),O={};A&&T==="axis"&&(A.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var M=y1(this.props,this.handleOuterEvent);return Ee(Ee({},M),O)}},{key:"addListener",value:function(){yS.on(bS,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){yS.removeListener(bS,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(C,T,A){for(var O=this.state.formattedGraphicalItems,M=0,$=O.length;M<$;M++){var q=O[M];if(q.item===C||q.props.key===C.key||T===ts(q.item.type)&&A===q.childIndex)return q}return null}},{key:"renderClipPath",value:function(){var C=this.clipPathId,T=this.state.offset,A=T.left,O=T.top,M=T.height,$=T.width;return J.createElement("defs",null,J.createElement("clipPath",{id:C},J.createElement("rect",{x:A,y:O,height:M,width:$})))}},{key:"getXScales",value:function(){var C=this.state.xAxisMap;return C?Object.entries(C).reduce(function(T,A){var O=tz(A,2),M=O[0],$=O[1];return Ee(Ee({},T),{},Tn({},M,$.scale))},{}):null}},{key:"getYScales",value:function(){var C=this.state.yAxisMap;return C?Object.entries(C).reduce(function(T,A){var O=tz(A,2),M=O[0],$=O[1];return Ee(Ee({},T),{},Tn({},M,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(C){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[C])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(C){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[C])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(C){var T=this.state,A=T.formattedGraphicalItems,O=T.activeItem;if(A&&A.length)for(var M=0,$=A.length;M<$;M++){var q=A[M],R=q.props,I=q.item,z=I.type.defaultProps!==void 0?Ee(Ee({},I.type.defaultProps),I.props):I.props,W=ts(I.type);if(W==="Bar"){var U=(R.data||[]).find(function(H){return ZSe(C,H)});if(U)return{graphicalItem:q,payload:U}}else if(W==="RadialBar"){var N=(R.data||[]).find(function(H){return xN(C,H)});if(N)return{graphicalItem:q,payload:N}}else if(ub(q,O)||cb(q,O)||Qm(q,O)){var D=F4e({graphicalItem:q,activeTooltipItem:O,itemData:z.data}),L=z.activeIndex===void 0?D:z.activeIndex;return{graphicalItem:Ee(Ee({},q),{},{childIndex:L}),payload:Qm(q,O)?z.data[D]:q.props.data[D]}}}return null}},{key:"render",value:function(){var C=this;if(!ND(this))return null;var T=this.props,A=T.children,O=T.className,M=T.width,$=T.height,q=T.style,R=T.compact,I=T.title,z=T.desc,W=iz(T,kje),U=Wn(W,!1);if(R)return J.createElement(N$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement(j4,Xc({},U,{width:M,height:$,title:I,desc:z}),this.renderClipPath(),zD(A,this.renderMap)));if(this.props.accessibilityLayer){var N,D;U.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,U.role=(D=this.props.role)!==null&&D!==void 0?D:"application",U.onKeyDown=function(H){C.accessibilityManager.keyboardEvent(H)},U.onFocus=function(){C.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return J.createElement(N$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement("div",Xc({className:vn("recharts-wrapper",O),style:Ee({position:"relative",cursor:"default",width:M,height:$},q)},L,{ref:function(Y){C.container=Y}}),J.createElement(j4,Xc({},U,{width:M,height:$,title:I,desc:z,style:Lje}),this.renderClipPath(),zD(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(S.Component);Tn(b,"displayName",t),Tn(b,"defaultProps",Ee({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Tn(b,"getDerivedStateFromProps",function(k,_){var x=k.dataKey,C=k.data,T=k.children,A=k.width,O=k.height,M=k.layout,$=k.stackOffset,q=k.margin,R=_.dataStartIndex,I=_.dataEndIndex;if(_.updateId===void 0){var z=oz(k);return Ee(Ee(Ee({},z),{},{updateId:0},g(Ee(Ee({props:k},z),{},{updateId:0}),_)),{},{prevDataKey:x,prevData:C,prevWidth:A,prevHeight:O,prevLayout:M,prevStackOffset:$,prevMargin:q,prevChildren:T})}if(x!==_.prevDataKey||C!==_.prevData||A!==_.prevWidth||O!==_.prevHeight||M!==_.prevLayout||$!==_.prevStackOffset||!nf(q,_.prevMargin)){var W=oz(k),U={chartX:_.chartX,chartY:_.chartY,isTooltipActive:_.isTooltipActive},N=Ee(Ee({},az(_,C,M)),{},{updateId:_.updateId+1}),D=Ee(Ee(Ee({},W),U),N);return Ee(Ee(Ee({},D),g(Ee({props:k},D),_)),{},{prevDataKey:x,prevData:C,prevWidth:A,prevHeight:O,prevLayout:M,prevStackOffset:$,prevMargin:q,prevChildren:T})}if(!S4(T,_.prevChildren)){var L,H,Y,P,G=Vr(T,Cf),V=G&&(L=(H=G.props)===null||H===void 0?void 0:H.startIndex)!==null&&L!==void 0?L:R,B=G&&(Y=(P=G.props)===null||P===void 0?void 0:P.endIndex)!==null&&Y!==void 0?Y:I,Q=V!==R||B!==I,ie=!Zn(C),re=ie&&!Q?_.updateId:_.updateId+1;return Ee(Ee({updateId:re},g(Ee(Ee({props:k},_),{},{updateId:re,dataStartIndex:V,dataEndIndex:B}),_)),{},{prevChildren:T,dataStartIndex:V,dataEndIndex:B})}return null}),Tn(b,"renderActiveDot",function(k,_,x){var C;return S.isValidElement(k)?C=S.cloneElement(k,_):qn(k)?C=k(_):C=J.createElement(lb,_),J.createElement(qt,{className:"recharts-active-dot",key:x},C)});var w=S.forwardRef(function(_,x){return J.createElement(b,Xc({},_,{ref:x}))});return w.displayName=b.displayName,w},Yje=aA({chartName:"LineChart",GraphicalChild:Ip,axisComponents:[{axisType:"xAxis",AxisComp:Il},{axisType:"yAxis",AxisComp:bo}],formatAxisMap:Xj}),Kje=aA({chartName:"BarChart",GraphicalChild:ec,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Il},{axisType:"yAxis",AxisComp:bo}],formatAxisMap:Xj}),Xje=aA({chartName:"AreaChart",GraphicalChild:ms,axisComponents:[{axisType:"xAxis",AxisComp:Il},{axisType:"yAxis",AxisComp:bo}],formatAxisMap:Xj});function Zje(e){return`${(e*100).toFixed(0)}%`}const Qje={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",type:"default"},_G=(e,{textColor:n,gridColor:t,cursorFill:i,barLabelColor:r})=>({root:{"--chart-text-color":n?ft(n,e):void 0,"--chart-grid-color":t?ft(t,e):void 0,"--chart-cursor-fill":i?ft(i,e):void 0,"--chart-bar-label-color":r?ft(r,e):void 0}});function Jje(e,n){let t=0,i=0;return e.map(r=>{if(r.standalone)for(const a in r)typeof r[a]=="number"&&a!==n&&(r[a]=[0,r[a]]);else for(const a in r)typeof r[a]=="number"&&a!==n&&(i+=r[a],r[a]=[t,i],t=i);return r})}function eAe(e,n){return typeof e=="function"?e(n).fill:e==null?void 0:e.fill}const dl=Pe(e=>{const n=ye("BarChart",Qje,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,data:u,withLegend:f,legendProps:h,series:d,onMouseLeave:p,dataKey:g,withTooltip:b,withXAxis:w,withYAxis:k,gridAxis:_,tickLine:x,xAxisProps:C,yAxisProps:T,unit:A,tooltipAnimationDuration:O,strokeDasharray:M,gridProps:$,tooltipProps:q,referenceLines:R,fillOpacity:I,barChartProps:z,type:W,orientation:U,dir:N,valueFormatter:D,children:L,barProps:H,xAxisLabel:Y,yAxisLabel:P,withBarValueLabel:G,valueLabelProps:V,withRightYAxis:B,rightYAxisLabel:Q,rightYAxisProps:ie,minBarSize:re,maxBarWidth:Z,mod:le,getBarColor:ee,gridColor:se,textColor:ke,attributes:te,...$e}=n,xe=ci(),Oe=_!=="none"&&(x==="x"||x==="xy"),ze=_!=="none"&&(x==="y"||x==="xy"),[we,Ce]=S.useState(null),Ne=we!==null,he=W==="stacked"||W==="percent",He=W==="percent"?Zje:D,Ye=Ae=>{Ce(null),p==null||p(Ae)},{resolvedClassNames:We,resolvedStyles:Qe}=Wi({classNames:t,styles:a,props:n}),Je=W==="waterfall"?Jje(u,g):u,oe=Ze({name:"BarChart",classes:B0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:te,vars:l,varsResolver:_G}),be=d.map(Ae=>{const an=ft(Ae.color,xe),pn=Ne&&we!==Ae.name,Dn=typeof H=="function"?H(Ae):H,wn=Dn==null?void 0:Dn.shape;return S.createElement(ec,{...oe("bar"),key:Ae.name,name:Ae.name,dataKey:Ae.name,fill:an,stroke:an,isAnimationActive:!1,fillOpacity:pn?.1:I,strokeOpacity:pn?.2:0,stackId:he?"stack":Ae.stackId||void 0,yAxisId:Ae.yAxisId||void 0,minPointSize:re,...Dn,shape:ln=>{const tn=ln.payload,zn=tn!=null&&tn.color?ft(tn.color,xe):typeof ee=="function"?ft(ee(tn==null?void 0:tn[Ae.name],Ae),xe):eAe(H,Ae)||an,De={...ln,fill:zn};return typeof wn=="function"?wn(De):J.isValidElement(wn)?J.cloneElement(wn,De):typeof wn=="object"&&wn?v.jsx(Ym,{...De,...wn}):v.jsx(Ym,{...De})}},G&&v.jsx(uo,{position:U==="vertical"?"right":"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:ln=>He==null?void 0:He(ln),...typeof V=="function"?V(Ae):V}))}),Ke=R==null?void 0:R.map((Ae,an)=>{const pn=ft(Ae.color,xe);return v.jsx(Lp,{stroke:Ae.color?pn:"var(--chart-grid-color)",strokeWidth:1,yAxisId:Ae.yAxisId||void 0,...Ae,label:{fill:Ae.color?pn:"currentColor",fontSize:12,position:Ae.labelPosition??"insideBottomLeft",...typeof Ae.label=="object"?Ae.label:{value:Ae.label}},...oe("referenceLine")},an)}),en={axisLine:!1,...U==="vertical"?{dataKey:g,type:"category"}:{type:"number"},tickLine:ze?{stroke:"currentColor"}:!1,allowDecimals:!0,unit:A,tickFormatter:U==="vertical"?void 0:He,...oe("axis")};return v.jsx(de,{...oe("root"),onMouseLeave:Ye,dir:N||"ltr",mod:[{orientation:U},le],...$e,children:v.jsx(Sj,{...oe("container"),children:v.jsxs(Kje,{data:Je,stackOffset:W==="percent"?"expand":void 0,layout:U,maxBarSize:Z,margin:{bottom:Y?30:void 0,left:P?10:void 0,right:P?5:void 0},...z,children:[f&&v.jsx(rs,{verticalAlign:"top",content:Ae=>v.jsx(I0,{payload:Ae.payload,onHighlight:Ce,legendPosition:(h==null?void 0:h.verticalAlign)||"top",classNames:We,styles:Qe,series:d,showColor:W!=="waterfall",attributes:te}),...h}),v.jsxs(Il,{hide:!w,...U==="vertical"?{type:"number"}:{dataKey:g},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:Oe?{stroke:"currentColor"}:!1,minTickGap:5,tickFormatter:U==="vertical"?He:void 0,...oe("axis"),...C,children:[Y&&v.jsx(ri,{position:"insideBottom",offset:-20,fontSize:12,...oe("axisLabel"),children:Y}),C==null?void 0:C.children]}),v.jsxs(bo,{orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!k,...en,...T,children:[P&&v.jsx(ri,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...oe("axisLabel"),children:P}),T==null?void 0:T.children]}),v.jsxs(bo,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!B,...en,...ie,children:[Q&&v.jsx(ri,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...oe("axisLabel"),children:Q}),T==null?void 0:T.children]}),v.jsx(vb,{strokeDasharray:M,vertical:_==="y"||_==="xy",horizontal:_==="x"||_==="xy",...oe("grid"),...$}),b&&v.jsx(pa,{animationDuration:O,isAnimationActive:O!==0,position:U==="vertical"?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:M,fill:"var(--chart-cursor-fill)"},content:({label:Ae,payload:an,labelFormatter:pn})=>v.jsx(nj,{label:pn&&an?pn(Ae,an):Ae,payload:an,type:W==="waterfall"?"scatter":void 0,unit:A,classNames:We,styles:Qe,series:d,valueFormatter:D,attributes:te}),...q}),be,Ke,L]})})})});dl.displayName="@mantine/charts/BarChart";dl.classes=B0;dl.varsResolver=_G;const nAe={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},xG=(e,{textColor:n,gridColor:t})=>({root:{"--chart-text-color":n?ft(n,e):void 0,"--chart-grid-color":t?ft(t,e):void 0}}),yb=Pe(e=>{const n=ye("LineChart",nAe,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,data:u,withLegend:f,legendProps:h,series:d,onMouseLeave:p,dataKey:g,withTooltip:b,withXAxis:w,withYAxis:k,gridAxis:_,tickLine:x,xAxisProps:C,yAxisProps:T,unit:A,tooltipAnimationDuration:O,strokeDasharray:M,gridProps:$,tooltipProps:q,referenceLines:R,withDots:I,dotProps:z,activeDotProps:W,strokeWidth:U,lineChartProps:N,connectNulls:D,fillOpacity:L,curveType:H,orientation:Y,dir:P,valueFormatter:G,children:V,lineProps:B,xAxisLabel:Q,yAxisLabel:ie,type:re,gradientStops:Z,withRightYAxis:le,rightYAxisLabel:ee,rightYAxisProps:se,withPointLabels:ke,attributes:te,gridColor:$e,...xe}=n,Oe=ci(),ze=_!=="none"&&(x==="x"||x==="xy"),we=_!=="none"&&(x==="y"||x==="xy"),[Ce,Ne]=S.useState(null),he=Ce!==null,He=Ae=>{Ne(null),p==null||p(Ae)},{resolvedClassNames:Ye,resolvedStyles:We}=Wi({classNames:t,styles:a,props:n}),Qe=Ze({name:"LineChart",classes:B0,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:te,vars:l,varsResolver:xG}),Je=`line-chart-gradient-${Pi()}`,oe=Z==null?void 0:Z.map(Ae=>v.jsx("stop",{offset:`${Ae.offset}%`,stopColor:ft(Ae.color,Oe)},Ae.color)),be=d.map(Ae=>{const an=ft(Ae.color,Oe),pn=he&&Ce!==Ae.name;return S.createElement(Ip,{...Qe("line"),key:Ae.name,name:Ae.name,dataKey:Ae.name,dot:I?{fillOpacity:pn?0:1,strokeOpacity:pn?0:1,strokeWidth:1,fill:re==="gradient"?"var(--mantine-color-gray-7)":an,stroke:re==="gradient"?"white":an,...z}:!1,activeDot:I?{fill:re==="gradient"?"var(--mantine-color-gray-7)":an,stroke:re==="gradient"?"white":an,...W}:!1,fill:an,stroke:re==="gradient"?`url(#${Je})`:an,strokeWidth:U,isAnimationActive:!1,fillOpacity:pn?0:L,strokeOpacity:pn?.5:L,connectNulls:D,type:Ae.curveType??H,strokeDasharray:Ae.strokeDasharray,yAxisId:Ae.yAxisId||void 0,label:ke?v.jsx(Gve,{valueFormatter:G}):void 0,...typeof B=="function"?B(Ae):B})}),Ke=R==null?void 0:R.map((Ae,an)=>{const pn=ft(Ae.color,Oe);return v.jsx(Lp,{stroke:Ae.color?pn:"var(--chart-grid-color)",strokeWidth:1,yAxisId:Ae.yAxisId||void 0,...Ae,label:{fill:Ae.color?pn:"currentColor",fontSize:12,position:Ae.labelPosition??"insideBottomLeft",...typeof Ae.label=="object"?Ae.label:{value:Ae.label}},...Qe("referenceLine")},an)}),en={axisLine:!1,...Y==="vertical"?{dataKey:g,type:"category"}:{type:"number"},tickLine:we?{stroke:"currentColor"}:!1,allowDecimals:!0,unit:A,tickFormatter:Y==="vertical"?void 0:G,...Qe("axis")};return v.jsx(de,{...Qe("root"),onMouseLeave:He,dir:P||"ltr",...xe,children:v.jsx(Sj,{...Qe("container"),children:v.jsxs(Yje,{data:u,layout:Y,margin:{bottom:Q?30:void 0,left:ie?10:void 0,right:ie?5:void 0},...N,children:[re==="gradient"&&v.jsx("defs",{children:v.jsx("linearGradient",{id:Je,x1:"0",y1:"0",x2:"0",y2:"1",children:oe})}),f&&v.jsx(rs,{verticalAlign:"top",content:Ae=>v.jsx(I0,{payload:Ae.payload,onHighlight:Ne,legendPosition:(h==null?void 0:h.verticalAlign)||"top",classNames:Ye,styles:We,series:d,showColor:re!=="gradient",attributes:te}),...h}),v.jsxs(Il,{hide:!w,...Y==="vertical"?{type:"number"}:{dataKey:g},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:ze?{stroke:"currentColor"}:!1,minTickGap:5,tickFormatter:Y==="vertical"?G:void 0,...Qe("axis"),...C,children:[Q&&v.jsx(ri,{position:"insideBottom",offset:-20,fontSize:12,...Qe("axisLabel"),children:Q}),C==null?void 0:C.children]}),v.jsxs(bo,{tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!k,...en,...T,children:[ie&&v.jsx(ri,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Qe("axisLabel"),children:ie}),T==null?void 0:T.children]}),v.jsxs(bo,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!le,...en,...se,children:[ee&&v.jsx(ri,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Qe("axisLabel"),children:ee}),T==null?void 0:T.children]}),v.jsx(vb,{strokeDasharray:M,vertical:_==="y"||_==="xy",horizontal:_==="x"||_==="xy",...Qe("grid"),...$}),b&&v.jsx(pa,{animationDuration:O,isAnimationActive:O!==0,position:Y==="vertical"?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:M},content:({label:Ae,payload:an,labelFormatter:pn})=>v.jsx(nj,{label:pn&&an?pn(Ae,an):Ae,payload:an,unit:A,classNames:Ye,styles:We,series:d,valueFormatter:G,showColor:re!=="gradient",attributes:te}),...q}),be,Ke,V]})})})});yb.displayName="@mantine/charts/LineChart";yb.classes=B0;yb.varsResolver=xG;const lz="daily_report_prompt",kS="Eres un coach de equipo. Resume el reporte diario en un MAXIMO de 4 frases cortas, mencionando: (1) total de tareas hechas y quien destaco, (2) cualquier card reabierta o deadline vencido que merezca atencion, (3) cards estancadas criticas (30+ dias) si las hay, (4) una frase corta de animo o aviso si toca. Tono natural, primera persona del plural, sin emojis. No inventes datos; usa solo los del JSON del reporte.";function tAe(e){try{return new Date(e+"T00:00:00").toLocaleDateString("es-ES",{weekday:"long",day:"2-digit",month:"long",year:"numeric"})}catch{return e}}function Hc({label:e,value:n,color:t,icon:i,sub:r}){return v.jsxs(Et,{p:"sm",withBorder:!0,radius:"md",children:[v.jsxs(je,{gap:6,mb:2,align:"center",children:[i,v.jsx(fe,{size:"xs",c:"dimmed",tt:"uppercase",fw:600,children:e})]}),v.jsx(fe,{fz:28,fw:700,c:t,children:n}),r&&v.jsx(fe,{size:"xs",c:"dimmed",children:r})]})}function jg({title:e,rows:n,emptyText:t,withAvatar:i=!1}){return v.jsxs(za,{withBorder:!0,radius:"md",p:"sm",children:[v.jsx(fe,{fw:600,size:"sm",mb:6,children:e}),n.length===0?v.jsx(fe,{size:"xs",c:"dimmed",children:t}):v.jsx(bn,{gap:4,children:n.map((r,a)=>v.jsxs(je,{gap:6,wrap:"nowrap",justify:"space-between",children:[v.jsxs(je,{gap:6,wrap:"nowrap",style:{minWidth:0,flex:1},children:[i&&v.jsx(mo,{size:22,radius:"xl",color:Pu(r.name||String(a)),children:(r.name||"?").slice(0,2).toUpperCase()}),v.jsx(fe,{size:"sm",truncate:!0,children:r.name||"(sin nombre)"})]}),v.jsx(Nn,{size:"sm",variant:"light",color:a===0?"teal":"gray",children:r.count})]},(r.user_id||r.name)+a))})]})}function iAe({date:e,onJumpToCard:n}){const[t,i]=S.useState(null),[r,a]=S.useState(null),[o,l]=S.useState(null),[u,f]=S.useState(!1),[h,d]=S.useState(null),[p,g]=S.useState(!1),[b,w]=S.useState(""),[k,_]=S.useState(null),[x,C]=S.useState(null);S.useEffect(()=>{i(null),a(null),Cre(e).then(i).catch(N=>a(N.message)),l(null),d(null),jre(e).then(N=>l(N.exists?N:null)).catch(()=>{})},[e]);const T=async()=>{f(!0),d(null);try{const N=await Are(e);l({...N,exists:!0})}catch(N){d(N.message)}finally{f(!1)}},A=async()=>{try{const N=await Ore(lz);w(N.value||kS)}catch{w(kS)}g(!0)},O=async()=>{await Tre(lz,b),g(!1)},M=()=>w(kS),$=S.useMemo(()=>t?t.hourly_moves.map((N,D)=>({hora:String(D).padStart(2,"0")+":00",movimientos:N})):[],[t]),q=S.useMemo(()=>{if(!t)return[];const N=new Set;for(const D of t.done_cards)D.requester&&N.add(D.requester);return Array.from(N).sort()},[t]),R=S.useMemo(()=>{if(!t)return[];const N=new Map;for(const D of t.done_cards)D.assignee_id&&N.set(D.assignee_id,D.assignee_name||D.assignee_id);return Array.from(N.entries()).map(([D,L])=>({value:D,label:L}))},[t]),I=S.useMemo(()=>t?t.done_cards.filter(N=>!(k&&N.requester!==k||x&&N.assignee_id!==x)):[],[t,k,x]),z=()=>{if(!t)return;const N=window.open("","_blank");if(!N)return;const D=window.location.origin,L=(()=>{try{return new Date(t.date+"T00:00:00").toLocaleDateString("es-ES",{weekday:"long",day:"2-digit",month:"long",year:"numeric"})}catch{return t.date}})(),H=[];if(k&&H.push(`solicitante=${k}`),x){const V=R.find(B=>B.value===x);H.push(`asignado=${(V==null?void 0:V.label)||x}`)}const Y=V=>V.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),P=I.map(V=>{const B=(V.tags||[]).map(Y).join(", "),Q=`${D}/?card=${V.id}`;return` ${String(V.seq_num).padStart(5,"0")} ${Y(V.title)} ${Y(V.requester||"")} ${Y(V.assignee_name||"")} - ${Y(I)} + ${Y(B)} ${ei(V.lead_time_ms)} - `}).join(""),W=` + `}).join(""),G=` Reporte ${t.date} -

Reporte diario · ${Y(z)}

+

Reporte diario · ${Y(L)}

${Y(t.date)} · ${Y(t.tz)}${H.length?" · filtros: "+H.map(Y).join(", "):""}
-
Hechas
${L.length}
+
Hechas
${I.length}
Lead time avg
${ei(t.lead_time.avg_ms)}
Deadlines on-time
${t.deadlines.met}/${t.deadlines.met+t.deadlines.missed}
Reabiertas
${t.kpis.reopened}
@@ -606,11 +611,11 @@ ${o!=null&&o.summary?`

Lead time - ${N||'Sin tareas que cumplan el filtro.'} + ${P||'Sin tareas que cumplan el filtro.'}

Generado por kanban · ${Y(D)}
+ diff --git a/backend/handlers.go b/backend/handlers.go index 07c8c36..1b29baf 100644 --- a/backend/handlers.go +++ b/backend/handlers.go @@ -707,6 +707,9 @@ func apiRoutes(db *DB, chatWorkdir string, logger *ChatLogger, internalToken str // Jira import: list issues not yet in kanban + bulk import. {Method: "GET", Path: "/api/jira/issues", Handler: handleListJiraIssues(db)}, {Method: "POST", Path: "/api/jira/import", Handler: handleImportJiraIssues(db)}, + // Jira column-sync check: detect drift between kanban col ↔ Jira status. + {Method: "GET", Path: "/api/jira/check-columns", Handler: handleCheckJiraColumns(db)}, + {Method: "POST", Path: "/api/jira/reconcile-columns", Handler: handleReconcileJiraColumns(db)}, } } diff --git a/backend/jira_import.go b/backend/jira_import.go index af89efc..24a685a 100644 --- a/backend/jira_import.go +++ b/backend/jira_import.go @@ -38,6 +38,40 @@ type jiraIssueOut struct { IssueTypeIcon string `json:"issue_type_icon,omitempty"` } +// linkedCardForCheck is the projection used by the check-columns endpoint. +// We only need fields visible in the report table. +type linkedCardForCheck struct { + ID string + Title string + JiraKey string + ColumnID string + ColumnName string +} + +func listLinkedCardsForCheck(db *DB) ([]linkedCardForCheck, error) { + rows, err := db.conn.Query(` +SELECT c.id, c.title, c.jira_key, c.column_id, col.name +FROM cards c +JOIN columns col ON col.id = c.column_id +WHERE c.jira_key != '' + AND c.deleted_at IS NULL +ORDER BY c.jira_key ASC +`) + if err != nil { + return nil, err + } + defer rows.Close() + out := []linkedCardForCheck{} + for rows.Next() { + var c linkedCardForCheck + if err := rows.Scan(&c.ID, &c.Title, &c.JiraKey, &c.ColumnID, &c.ColumnName); err != nil { + return nil, err + } + out = append(out, c) + } + return out, rows.Err() +} + // activeJiraModule returns the first enabled Jira module + its decoded config, // or an error if no module is configured. The handlers below need both the // credentials and the status_map to operate. @@ -245,6 +279,181 @@ func handleListJiraIssues(db *DB) http.HandlerFunc { }) } +// jiraCheckRow is one row of the check-columns report. +type jiraCheckRow struct { + CardID string `json:"card_id"` + JiraKey string `json:"jira_key"` + Title string `json:"title"` + KanbanColumnID string `json:"kanban_column_id"` + KanbanColumnName string `json:"kanban_column_name"` + JiraStatusName string `json:"jira_status_name"` + ExpectedKanbanCol string `json:"expected_kanban_col"` // kanban col that matches the current Jira status (reverse status_map) + ExpectedJiraStat string `json:"expected_jira_status"` // jira status that matches the current kanban col (status_map) + Mismatch bool `json:"mismatch"` + IssueURL string `json:"issue_url"` +} + +// handleCheckJiraColumns walks every linked card, fetches its current Jira +// status, and reports whether the kanban column ↔ Jira status mapping is in +// sync. Used by the "Comprobar columnas" tab in the Jira modal. +// +// Performance note: one Jira REST call per linked card. With 127 cards that +// is ~127 round-trips — slow (≈30s end-to-end) but tolerable as an admin op. +// A future optimisation could batch via /search/jql with key IN (...) and a +// fields=status projection. +func handleCheckJiraColumns(db *DB) http.HandlerFunc { + return requireAdmin(db, func(w http.ResponseWriter, r *http.Request) { + _, cfg, err := activeJiraModule(db) + if err != nil { + badRequest(w, err.Error()) + return + } + cards, err := listLinkedCardsForCheck(db) + if err != nil { + serverError(w, err) + return + } + statusToCol := reverseStatusMap(cfg) + + ctx, cancel := context.WithTimeout(r.Context(), moduleHTTPTimeout*5) + defer cancel() + + rows := make([]jiraCheckRow, 0, len(cards)) + var mismatches int + for _, c := range cards { + var iss struct { + Fields struct { + Status struct { + Name string `json:"name"` + } `json:"status"` + } `json:"fields"` + } + if _, err := jiraGET(ctx, cfg, "/rest/api/3/issue/"+url.PathEscape(c.JiraKey)+"?fields=status", &iss); err != nil { + rows = append(rows, jiraCheckRow{ + CardID: c.ID, + JiraKey: c.JiraKey, + Title: c.Title, + KanbanColumnID: c.ColumnID, + KanbanColumnName: c.ColumnName, + JiraStatusName: "(fetch failed: " + err.Error() + ")", + Mismatch: true, + IssueURL: cfg.BaseURL + "/browse/" + c.JiraKey, + }) + mismatches++ + continue + } + expectedCol := statusToCol[strings.ToLower(iss.Fields.Status.Name)] + expectedStat := cfg.StatusMap[c.ColumnName] + mm := !strings.EqualFold(iss.Fields.Status.Name, expectedStat) + if mm { + mismatches++ + } + rows = append(rows, jiraCheckRow{ + CardID: c.ID, + JiraKey: c.JiraKey, + Title: c.Title, + KanbanColumnID: c.ColumnID, + KanbanColumnName: c.ColumnName, + JiraStatusName: iss.Fields.Status.Name, + ExpectedKanbanCol: expectedCol, + ExpectedJiraStat: expectedStat, + Mismatch: mm, + IssueURL: cfg.BaseURL + "/browse/" + c.JiraKey, + }) + } + infra.HTTPJSONResponse(w, http.StatusOK, map[string]interface{}{ + "rows": rows, + "total": len(rows), + "mismatches": mismatches, + "in_sync": len(rows) - mismatches, + "status_map": cfg.StatusMap, + "reverse_map": statusToCol, + }) + }) +} + +// reconcileRequest is the body shape for POST /api/jira/reconcile-columns. +// direction=kanban-wins → push Jira to match kanban (the only mode for now; +// reverse is risky because moving cards in kanban can trigger downstream +// notifications/timers). +type reconcileRequest struct { + CardIDs []string `json:"card_ids"` + Direction string `json:"direction"` // currently only "kanban-wins" +} + +// handleReconcileJiraColumns transitions each requested issue so its status +// matches the current kanban column (kanban as source of truth). Reuses +// the dispatcher's transitionToStatus helper for consistency with the +// regular card.moved path. Per-card result. +func handleReconcileJiraColumns(db *DB) http.HandlerFunc { + return requireAdmin(db, func(w http.ResponseWriter, r *http.Request) { + var body reconcileRequest + if err := infra.HTTPParseBody(r, &body, maxBodyBytes); err != nil { + badRequest(w, err.Error()) + return + } + if len(body.CardIDs) == 0 { + badRequest(w, "card_ids required") + return + } + if body.Direction == "" { + body.Direction = "kanban-wins" + } + if body.Direction != "kanban-wins" { + badRequest(w, "only direction=kanban-wins is supported") + return + } + _, cfg, err := activeJiraModule(db) + if err != nil { + badRequest(w, err.Error()) + return + } + + h := &jiraHandler{} + ctx, cancel := context.WithTimeout(r.Context(), moduleHTTPTimeout*time.Duration(len(body.CardIDs)+1)) + defer cancel() + + results := make([]map[string]interface{}, 0, len(body.CardIDs)) + for _, cid := range body.CardIDs { + res := map[string]interface{}{"card_id": cid} + card, cerr := db.getCardForJira(cid) + if cerr != nil { + res["status"] = "error" + res["error"] = cerr.Error() + results = append(results, res) + continue + } + if card.JiraKey == "" { + res["status"] = "skipped" + res["error"] = "card has no jira_key" + results = append(results, res) + continue + } + if _, ok := cfg.StatusMap[card.ColumnName]; !ok { + res["status"] = "skipped" + res["error"] = "no status_map entry for column " + card.ColumnName + results = append(results, res) + continue + } + status, terr := h.transitionToStatus(ctx, cfg, card.JiraKey, card.ColumnName) + if terr != nil { + res["status"] = "error" + res["error"] = terr.Error() + res["http"] = status + results = append(results, res) + continue + } + now := time.Now().UTC().Format(time.RFC3339) + _ = db.updateCardJiraSync(cid, cfg.StatusMap[card.ColumnName], now, "") + res["status"] = "fixed" + res["jira_key"] = card.JiraKey + res["jira_status"] = cfg.StatusMap[card.ColumnName] + results = append(results, res) + } + infra.HTTPJSONResponse(w, http.StatusOK, map[string]interface{}{"results": results}) + }) +} + // handleImportJiraIssues creates a kanban card for each requested issue_key // and links it to the existing Jira issue (sets jira_key directly, so the // dispatcher will treat any future kanban edits as updates instead of trying diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ce90223..3fa37c3 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -87,7 +87,7 @@ import { colorBg, colorBorder } from "./components/colors"; import { NotificationsBell } from "./components/NotificationsBell"; import { ModulesModal } from "./components/ModulesModal"; import { MCPTokensModal } from "./components/MCPTokensModal"; -import { ImportJiraModal } from "./components/ImportJiraModal"; +import { JiraModal } from "./components/JiraModal"; import { useEventStream } from "./hooks/useEventStream"; import type { Board, Card, CardColor, Column, ColumnLocation, Notification, User } from "./types"; @@ -1304,7 +1304,7 @@ export function App() { leftSection={} onClick={() => setJiraImportOpen(true)} > - Importar de Jira + Jira )} setModulesOpen(false)} /> )} {auth.user?.is_admin && board && ( - setJiraImportOpen(false)} columns={board.columns} - onImported={() => reload()} + onMutated={() => reload()} /> )} setMcpTokensOpen(false)} /> diff --git a/frontend/src/api.ts b/frontend/src/api.ts index e152bef..28d3977 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -565,6 +565,48 @@ export function importJiraIssues(issueKeys: string[], fallbackColumnId?: string) }); } +export interface JiraCheckRow { + card_id: string; + jira_key: string; + title: string; + kanban_column_id: string; + kanban_column_name: string; + jira_status_name: string; + expected_kanban_col: string; + expected_jira_status: string; + mismatch: boolean; + issue_url: string; +} + +export interface JiraCheckResponse { + rows: JiraCheckRow[]; + total: number; + mismatches: number; + in_sync: number; + status_map: Record; + reverse_map: Record; +} + +export function checkJiraColumns(): Promise { + return fetchJSON("/jira/check-columns"); +} + +export interface JiraReconcileResult { + card_id: string; + status: "fixed" | "skipped" | "error"; + jira_key?: string; + jira_status?: string; + error?: string; + http?: number; +} + +export function reconcileJiraColumns(cardIds: string[]): Promise<{ results: JiraReconcileResult[] }> { + return fetchJSON("/jira/reconcile-columns", { + method: "POST", + body: JSON.stringify({ card_ids: cardIds, direction: "kanban-wins" }), + }); +} + export function getMetrics(f: MetricsFilter): Promise { const qs = new URLSearchParams(); if (f.from) qs.set("from", f.from); diff --git a/frontend/src/components/ImportJiraModal.tsx b/frontend/src/components/ImportJiraModal.tsx deleted file mode 100644 index c4fd158..0000000 --- a/frontend/src/components/ImportJiraModal.tsx +++ /dev/null @@ -1,279 +0,0 @@ -import { - Anchor, - Badge, - Box, - Button, - Checkbox, - Group, - Image, - Loader, - Modal, - Select, - Stack, - Text, - TextInput, - Tooltip, -} from "@mantine/core"; -import { notifications } from "@mantine/notifications"; -import { IconBrandJira, IconRefresh, IconSearch } from "@tabler/icons-react"; -import { useEffect, useMemo, useState } from "react"; -import * as api from "../api"; -import type { JiraIssue } from "../api"; -import type { Column } from "../types"; - -interface Props { - opened: boolean; - onClose: () => void; - columns: Column[]; - onImported?: () => void; -} - -// ImportJiraModal lists every issue on the configured Jira board and lets the -// admin pick which ones to materialise as kanban cards. Issues already linked -// to a card are hidden by default and re-shown by toggling "Mostrar -// importadas". Each new card lands in the column whose status_map matches the -// issue's current status; the fallback column picker covers statuses without -// a mapping (e.g. Jira Backlog → kanban "HACIENDO"). -export function ImportJiraModal({ opened, onClose, columns, onImported }: Props) { - const [issues, setIssues] = useState(null); - const [loading, setLoading] = useState(false); - const [importing, setImporting] = useState(false); - const [selected, setSelected] = useState>(new Set()); - const [showImported, setShowImported] = useState(false); - const [query, setQuery] = useState(""); - const [fallbackColumn, setFallbackColumn] = useState(""); - const [boardId, setBoardId] = useState(null); - const [projectKey, setProjectKey] = useState(""); - const [error, setError] = useState(null); - - const reload = async () => { - setLoading(true); - setError(null); - try { - const r = await api.listJiraIssues({ includeImported: showImported, limit: 200 }); - setIssues(r.issues); - setBoardId(r.board_id); - setProjectKey(r.project_key); - // Clear selection of any keys that disappeared from the new list. - setSelected((prev) => { - const validKeys = new Set(r.issues.map((i) => i.key)); - const next = new Set(); - for (const k of prev) if (validKeys.has(k)) next.add(k); - return next; - }); - } catch (e) { - setError((e as Error).message); - setIssues([]); - } finally { - setLoading(false); - } - }; - - useEffect(() => { - if (opened) reload(); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [opened, showImported]); - - // Default the fallback column to the first board column (operator can change - // it via the Select). We only set it once columns are available. - useEffect(() => { - if (!fallbackColumn && columns.length > 0) { - const boardCol = columns.find((c) => c.location !== "sidebar") || columns[0]; - setFallbackColumn(boardCol.id); - } - }, [columns, fallbackColumn]); - - const visible = useMemo(() => { - if (!issues) return []; - const q = query.trim().toLowerCase(); - if (!q) return issues; - return issues.filter( - (i) => - i.key.toLowerCase().includes(q) || - i.summary.toLowerCase().includes(q) || - i.assignee.toLowerCase().includes(q) || - i.status_name.toLowerCase().includes(q), - ); - }, [issues, query]); - - const toggle = (key: string) => { - setSelected((prev) => { - const next = new Set(prev); - if (next.has(key)) next.delete(key); - else next.add(key); - return next; - }); - }; - - const toggleAll = () => { - const importable = visible.filter((i) => !i.already_imported); - if (selected.size === importable.length && importable.length > 0) { - setSelected(new Set()); - } else { - setSelected(new Set(importable.map((i) => i.key))); - } - }; - - const doImport = async () => { - if (selected.size === 0) return; - setImporting(true); - try { - const res = await api.importJiraIssues(Array.from(selected), fallbackColumn || undefined); - const ok = res.results.filter((r) => r.status === "imported").length; - const skip = res.results.filter((r) => r.status === "skipped").length; - const err = res.results.filter((r) => r.status === "error"); - const msg = `${ok} importadas` + (skip > 0 ? ` · ${skip} omitidas` : "") + (err.length > 0 ? ` · ${err.length} con error` : ""); - notifications.show({ - color: err.length > 0 ? "yellow" : "green", - message: msg, - autoClose: 5000, - }); - if (err.length > 0) { - console.warn("import errors", err); - } - setSelected(new Set()); - await reload(); - onImported?.(); - } catch (e) { - notifications.show({ color: "red", message: (e as Error).message }); - } finally { - setImporting(false); - } - }; - - const columnOptions = columns.map((c) => ({ value: c.id, label: c.name })); - - return ( - - - - Importar tareas de Jira{boardId ? ` · board ${boardId}` : ""}{projectKey ? ` (${projectKey})` : ""} - - - } - size="xl" - > - - - setQuery(e.currentTarget.value)} - leftSection={} - style={{ flex: 1 }} - /> - - - - - - setShowImported(e.currentTarget.checked)} - /> - setFallbackColumn(v || "")} + allowDeselect={false} + w={260} + size="xs" + /> + + + {error && {error}} + + + {loading && !issues ? ( + + ) : visible.length === 0 ? ( + + {issues?.length === 0 ? "No hay issues sin importar en el board." : "Ninguna issue coincide con el filtro."} + + ) : ( + + + 0 && selected.size === visible.filter((i) => !i.already_imported).length} + indeterminate={selected.size > 0 && selected.size < visible.filter((i) => !i.already_imported).length} + onChange={toggleAll} + /> + {visible.length} issues · {selected.size} seleccionadas + + {visible.map((iss) => ( + + toggle(iss.key)} /> + {iss.issue_type_icon && {iss.issue_type}} + + + {iss.key} + {iss.summary} + + + {iss.status_name} + {iss.issue_type} + {iss.assignee && · {iss.assignee}} + {iss.already_imported && ya en kanban} + {!iss.already_imported && !iss.mapped_column_id && sin mapping (usa fallback)} + + + + ))} + + )} + + + + + + + ); +} + +// --------------------------------------------------------------------------- +// Comprobar columnas: detects drift between kanban column ↔ Jira status. +// --------------------------------------------------------------------------- + +function CheckTab({ onReconciled }: { onReconciled?: () => void }) { + const [data, setData] = useState(null); + const [loading, setLoading] = useState(false); + const [fixing, setFixing] = useState(false); + const [selected, setSelected] = useState>(new Set()); + const [onlyMismatch, setOnlyMismatch] = useState(true); + const [error, setError] = useState(null); + + const reload = async () => { + setLoading(true); + setError(null); + try { + const r = await api.checkJiraColumns(); + setData(r); + // After a refresh, drop selections that no longer apply. + setSelected((prev) => { + const validIds = new Set(r.rows.filter((x) => x.mismatch).map((x) => x.card_id)); + const next = new Set(); + for (const id of prev) if (validIds.has(id)) next.add(id); + return next; + }); + } catch (e) { + setError((e as Error).message); + setData(null); + } finally { + setLoading(false); + } + }; + + useEffect(() => { + reload(); + }, []); + + const visible = useMemo(() => { + if (!data) return []; + return onlyMismatch ? data.rows.filter((r) => r.mismatch) : data.rows; + }, [data, onlyMismatch]); + + const toggle = (id: string) => { + setSelected((prev) => { + const next = new Set(prev); + if (next.has(id)) next.delete(id); + else next.add(id); + return next; + }); + }; + + const toggleAll = () => { + const fixable = visible.filter((r) => r.mismatch).map((r) => r.card_id); + if (selected.size === fixable.length && fixable.length > 0) { + setSelected(new Set()); + } else { + setSelected(new Set(fixable)); + } + }; + + const doFix = async () => { + if (selected.size === 0) return; + setFixing(true); + try { + const res = await api.reconcileJiraColumns(Array.from(selected)); + const ok = res.results.filter((r) => r.status === "fixed").length; + const skip = res.results.filter((r) => r.status === "skipped").length; + const err = res.results.filter((r) => r.status === "error"); + const msg = `${ok} sincronizadas` + (skip > 0 ? ` · ${skip} omitidas` : "") + (err.length > 0 ? ` · ${err.length} con error` : ""); + notifications.show({ + color: err.length > 0 ? "yellow" : "green", + message: msg, + autoClose: 5000, + }); + if (err.length > 0) console.warn("reconcile errors", err); + setSelected(new Set()); + await reload(); + onReconciled?.(); + } catch (e) { + notifications.show({ color: "red", message: (e as Error).message }); + } finally { + setFixing(false); + } + }; + + return ( + + + Compara la columna kanban de cada card con el status actual de su Jira issue. Lo hace + consultando Jira en vivo (1 request por card) — puede tardar varios segundos con + muchas cards. + + {data && ( + + {data.in_sync} en sync + {data.mismatches > 0 && ( + }> + {data.mismatches} desincronizadas + + )} + {data.total} totales + + )} + + setOnlyMismatch(e.currentTarget.checked)} + /> + + + + {error && {error}} + + + {loading && !data ? ( + + ) : visible.length === 0 ? ( + + {data && data.mismatches === 0 + ? "Todas las cards estan en su columna correcta. ✅" + : "No hay rows que mostrar con el filtro actual."} + + ) : ( + + + 0 && selected.size === visible.filter((r) => r.mismatch).length} + indeterminate={selected.size > 0 && selected.size < visible.filter((r) => r.mismatch).length} + onChange={toggleAll} + /> + + {visible.length} rows · {selected.size} seleccionadas para sync + + + {visible.map((row) => ( + + toggle(row.card_id)} /> + + + {row.jira_key} + {row.title} + + + kanban: {row.kanban_column_name} + → esperado Jira: {row.expected_jira_status || "(sin mapeo)"} + + jira: {row.jira_status_name} + + + + + ))} + + )} + + + + Fix = transicionar Jira al status que matchea la columna kanban (kanban gana) + + + + ); +} + +// --------------------------------------------------------------------------- + +function badgeColor(status: string): string { + const s = status.toLowerCase(); + if (s.includes("done") || s.includes("hecho") || s.includes("closed")) return "green"; + if (s.includes("progress") || s.includes("doing")) return "blue"; + if (s.includes("implementado") || s.includes("review")) return "violet"; + if (s.includes("creado") || s.includes("backlog") || s.includes("nuevo")) return "gray"; + return "yellow"; +}