@omnsight/osint-entity-components 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.mjs +13977 -0
- package/dist/osint-entity-components.css +2 -0
- package/package.json +2 -1
- package/src/cards/MonittoringSourceCard.tsx +1 -1
- package/src/icons/Event/Select.tsx +4 -3
- package/src/icons/Organization/Select.tsx +3 -2
- package/src/icons/Person/Select.tsx +8 -7
- package/src/icons/Source/Select.tsx +4 -3
- package/src/icons/Website/Select.tsx +3 -2
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`react`);l=c(l);let u=require(`react/jsx-runtime`),d=require(`react-dom`);d=c(d);function f(e){return Object.keys(e)}function p(e){return e&&typeof e==`object`&&!Array.isArray(e)}function m(e,t){let n={...e},r=t;return p(e)&&p(t)&&Object.keys(t).forEach(t=>{p(r[t])&&t in e?n[t]=m(n[t],r[t]):n[t]=r[t]}),n}function h(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function g(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function _(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?g(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?g(n):n}}return r}return n}var v=_(`rem`,{shouldScale:!0});_(`em`);function y(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function b(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function x(e){return Array.isArray(e)||e===null?!1:typeof e==`object`?e.type!==l.Fragment:!1}function S(e){let t=(0,l.createContext)(null);return[({children:e,value:n})=>(0,u.jsx)(t.Provider,{value:n,children:e}),()=>{let n=(0,l.useContext)(t);if(n===null)throw Error(e);return n}]}function C(e=null){let t=(0,l.createContext)(e);return[({children:e,value:n})=>(0,u.jsx)(t.Provider,{value:n,children:e}),()=>(0,l.useContext)(t)]}var w={app:100,modal:200,popover:300,overlay:400,max:9999};function T(e){return w[e]}var E=()=>{};function D(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||E:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function O(e,t=`size`,n=!0){if(e!==void 0)return b(e)?n?v(e):e:`var(--${t}-${e})`}function k(e){return O(e,`mantine-spacing`)}function A(e){return e===void 0?`var(--mantine-radius-default)`:O(e,`mantine-radius`)}function j(e){return O(e,`mantine-font-size`)}function M(e){return O(e,`mantine-line-height`,!1)}function N(e){if(e)return O(e,`mantine-shadow`,!1)}function P(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function ee(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function F(e){let t=(0,l.useRef)(e);return(0,l.useEffect)(()=>{t.current=e}),(0,l.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function te(e,t){let{delay:n,flushOnUnmount:r,leading:i}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1}:t,a=F(e),o=(0,l.useRef)(0),s=(0,l.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(o.current);let r=e._isFirstCall;e._isFirstCall=!1;function s(){window.clearTimeout(o.current),o.current=0,e._isFirstCall=!0}if(i&&r){a(...t),e.flush=()=>{o.current!==0&&(s(),a(...t))},e.cancel=()=>{s()},o.current=window.setTimeout(()=>{s()},n);return}if(i&&!r){e.flush=()=>{o.current!==0&&(s(),a(...t))},e.cancel=()=>{s()},o.current=window.setTimeout(()=>{s()},n);return}let c=()=>{o.current!==0&&(s(),a(...t))};e.flush=c,e.cancel=()=>{s()},o.current=window.setTimeout(c,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return e},[a,n,i]);return(0,l.useEffect)(()=>()=>{r?s.flush():s.cancel()},[s,r]),s}var ne=[`mousedown`,`touchstart`];function I(e,t,n){let r=(0,l.useRef)(null),i=t||ne;return(0,l.useEffect)(()=>{let t=t=>{let{target:i}=t??{};if(Array.isArray(n)){let r=!document.body.contains(i)&&i?.tagName!==`HTML`;n.every(e=>!!e&&!t.composedPath().includes(e))&&!r&&e(t)}else r.current&&!r.current.contains(i)&&e(t)};return i.forEach(e=>document.addEventListener(e,t)),()=>{i.forEach(e=>document.removeEventListener(e,t))}},[r,e,n]),r}function re(e,t){try{return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function L(e,t){return typeof window<`u`&&`matchMedia`in window?window.matchMedia(e).matches:!1}function ie(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,l.useState)(n?t:L(e));return(0,l.useEffect)(()=>{try{let t=window.matchMedia(e);return i(t.matches),re(t,e=>i(e.matches))}catch{return}},[e]),r||!1}var R=typeof document<`u`?l.useLayoutEffect:l.useEffect;function ae(e,t){let n=(0,l.useRef)(!1);(0,l.useEffect)(()=>()=>{n.current=!1},[]),(0,l.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function oe({opened:e,shouldReturnFocus:t=!0}){let n=(0,l.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return ae(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};return document.addEventListener(`keydown`,a),e?n.current=document.activeElement:t&&(i=window.setTimeout(r,10)),()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var se=/input|select|textarea|button|object/,ce=`a, input, select, textarea, button, object, [tabindex]`;function le(e){return process.env.NODE_ENV===`test`?!1:e.style.display===`none`}function ue(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&!(t===document.body||t.nodeType===11);){if(le(t))return!1;t=t.parentNode}return!0}function de(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function z(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(de(e));return(se.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&ue(e)}function fe(e){let t=de(e);return(Number.isNaN(t)||t>=0)&&z(e)}function pe(e){return Array.from(e.querySelectorAll(ce)).filter(fe)}function me(e,t){let n=pe(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function he(e=!0){let t=(0,l.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(ce));t=n.find(fe)||n.find(z)||null,!t&&z(e)&&(t=e)}t?t.focus({preventScroll:!0}):process.env.NODE_ENV===`development`&&console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,l.useCallback)(r=>{e&&r!==null&&t.current!==r&&(r?(setTimeout(()=>{r.getRootNode()?n(r):process.env.NODE_ENV===`development`&&console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r):t.current=null)},[e]);return(0,l.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));let r=e=>{e.key===`Tab`&&t.current&&me(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}var ge=l.default.useId||(()=>void 0);function _e(){let e=ge();return e?`mantine-${e.replace(/:/g,``)}`:``}function ve(e){let t=_e(),[n,r]=(0,l.useState)(t);return R(()=>{r(ee())},[]),typeof e==`string`?e:typeof window>`u`?t:n}function ye(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function be(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=ye(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():ye(e,null)}),t.clear()}}}function B(...e){return(0,l.useCallback)(be(...e),e)}function xe(e){return{x:P(e.x,0,1),y:P(e.y,0,1)}}function Se(e,t,n=`ltr`){let r=(0,l.useRef)(!1),i=(0,l.useRef)(!1),a=(0,l.useRef)(0),[o,s]=(0,l.useState)(!1),c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{r.current=!0},[]),{ref:(0,l.useCallback)(o=>{if(c.current&&=(c.current(),null),!o)return;let l=({x:t,y:i})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(r.current&&o){o.style.userSelect=`none`;let r=o.getBoundingClientRect();if(r.width&&r.height){let a=P((t-r.left)/r.width,0,1);e({x:n===`ltr`?a:1-a,y:P((i-r.top)/r.height,0,1)})}}})},u=()=>{document.addEventListener(`mousemove`,h),document.addEventListener(`mouseup`,p),document.addEventListener(`touchmove`,_,{passive:!1}),document.addEventListener(`touchend`,p)},d=()=>{document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,p),document.removeEventListener(`touchmove`,_),document.removeEventListener(`touchend`,p)},f=()=>{!i.current&&r.current&&(i.current=!0,typeof t?.onScrubStart==`function`&&t.onScrubStart(),s(!0),u())},p=()=>{i.current&&r.current&&(i.current=!1,s(!1),d(),setTimeout(()=>{typeof t?.onScrubEnd==`function`&&t.onScrubEnd()},0))},m=e=>{f(),e.preventDefault(),h(e)},h=e=>l({x:e.clientX,y:e.clientY}),g=e=>{e.cancelable&&e.preventDefault(),f(),_(e)},_=e=>{e.cancelable&&e.preventDefault(),l({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY})};o.addEventListener(`mousedown`,m),o.addEventListener(`touchstart`,g,{passive:!1}),c.current=()=>{o.removeEventListener(`mousedown`,m),o.removeEventListener(`touchstart`,g)}},[n,e]),active:o}}function Ce({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,l.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function we(e,t){return ie(`(prefers-reduced-motion: reduce)`,e,t)}function Te(e){let t=(0,l.useRef)(void 0);return(0,l.useEffect)(()=>{t.current=e},[e]),t.current}function V(){let[e,t]=(0,l.useState)(!1);return R(()=>{t(typeof window<`u`&&!H()&&`EyeDropper`in window)},[]),{supported:e,open:(0,l.useCallback)((t={})=>e?new window.EyeDropper().open(t):Promise.resolve(void 0),[e])}}function H(){return navigator.userAgent.includes(`OPR`)}function U(e){let t=l.default.version;return typeof l.default.version!=`string`||t.startsWith(`18.`)?e?.ref:e?.props?.ref}function Ee(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t<r.length;t+=1){let n=r[t];if(n.shadowRoot){let t=Ee(e,n.shadowRoot);if(t)return t}}return null}function De(e,t=document){let n=[],r=t.querySelectorAll(e);n.push(...Array.from(r));let i=t.querySelectorAll(`*`);for(let t=0;t<i.length;t+=1){let r=i[t];if(r.shadowRoot){let t=De(e,r.shadowRoot);n.push(...t)}}return n}function Oe(e){if(!e)return document;let t=e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:document}function ke(e){let t=l.Children.toArray(e);return t.length!==1||!x(t[0])?null:t[0]}function W(e){return e}function Ae(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ae(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function G(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ae(e))&&(r&&(r+=` `),r+=t);return r}var je={};function Me(e){let t={};return e.forEach(e=>{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=G(t[e],n):t[e]=n})}),t}function Ne({theme:e,classNames:t,props:n,stylesCtx:r}){return Me((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||je))}function Pe({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((t,i)=>typeof i==`function`?{...t,...i(e,n,r)}:{...t,...i},{})}var Fe=(0,l.createContext)(null);function Ie(){let e=(0,l.useContext)(Fe);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function Le(){return Ie().classNamesPrefix}function Re(){return Ie().getStyleNonce}function ze(){return Ie().withStaticClasses}function Be(){return Ie().headless}function Ve(){return Ie().stylesTransform?.sx}function He(){return Ie().stylesTransform?.styles}function Ue(){return Ie().env||`default`}function We(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Ge(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Ke(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function qe(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function Je(e){return We(e)?Ge(e):e.startsWith(`rgb`)?Ke(e):e.startsWith(`hsl`)?qe(e):{r:0,g:0,b:0,a:1}}function Ye(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=Je(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function Xe(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Ze(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Qe(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function $e(e){if(e.startsWith(`oklch(`))return(Qe(e)||0)/100;let{r:t,g:n,b:r}=Je(e),i=t/255,a=n/255,o=r/255,s=Ze(i),c=Ze(a),l=Ze(o);return .2126*s+.7152*c+.0722*l}function et(e,t=.179){return e.startsWith(`var(`)?!1:$e(e)>t}function tt({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:et(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:et(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:et(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Xe(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:et(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:et(e,t.luminanceThreshold),shade:a,variable:void 0}}function nt(e,t){let n=tt({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function rt(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=nt(n.from,t),i=nt(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function it(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=Je(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var at=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=tt({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let t=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:t,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:t,border:`${v(1)} solid transparent`}:{background:e,hover:Ye(e,.1),color:t,border:`${v(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:it(n,.1),hover:it(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${v(1)} solid transparent`}}return{background:it(e,.1),hover:it(e,.12),color:e,border:`${v(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${v(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:it(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${v(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:it(e,.05),color:e,border:`${v(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:it(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${v(1)} solid transparent`}}return{background:`transparent`,hover:it(e,.12),color:e,border:`${v(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${v(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${v(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${v(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Ye(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Ye(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${v(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Ye(t.white,.01),color:e,border:`${v(1)} solid transparent`}:n===`gradient`?{background:rt(r,t),hover:rt(r,t),color:`var(--mantine-color-white)`,border:`none`}:n===`default`?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${v(1)} solid var(--mantine-color-default-border)`}:{}},ot={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`]},st=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,ct={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:ot,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:at,autoContrast:!1,luminanceThreshold:.3,fontFamily:st,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:`sm`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:st,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:v(34),lineHeight:`1.3`},h2:{fontSize:v(26),lineHeight:`1.35`},h3:{fontSize:v(22),lineHeight:`1.4`},h4:{fontSize:v(18),lineHeight:`1.45`},h5:{fontSize:v(16),lineHeight:`1.5`},h6:{fontSize:v(14),lineHeight:`1.5`}}},fontSizes:{xs:v(12),sm:v(14),md:v(16),lg:v(18),xl:v(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},radius:{xs:v(2),sm:v(4),md:v(8),lg:v(16),xl:v(32)},spacing:{xs:v(10),sm:v(12),md:v(16),lg:v(20),xl:v(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), 0 ${v(1)} ${v(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(10)} ${v(15)} ${v(-5)}, rgba(0, 0, 0, 0.04) 0 ${v(7)} ${v(7)} ${v(-5)}`,md:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(20)} ${v(25)} ${v(-5)}, rgba(0, 0, 0, 0.04) 0 ${v(10)} ${v(10)} ${v(-5)}`,lg:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(28)} ${v(23)} ${v(-7)}, rgba(0, 0, 0, 0.04) 0 ${v(12)} ${v(12)} ${v(-7)}`,xl:`0 ${v(1)} ${v(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${v(36)} ${v(28)} ${v(-7)}, rgba(0, 0, 0, 0.04) 0 ${v(17)} ${v(17)} ${v(-7)}`},other:{},components:{}},lt=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,ut=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function dt(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function ft(e){if(!(e.primaryColor in e.colors))throw Error(lt);if(typeof e.primaryShade==`object`&&(!dt(e.primaryShade.dark)||!dt(e.primaryShade.light))||typeof e.primaryShade==`number`&&!dt(e.primaryShade))throw Error(ut)}function pt(e,t){if(!t)return ft(e),e;let n=m(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings.fontFamily=t.fontFamily),ft(n),n}var mt=(0,l.createContext)(null),ht=()=>(0,l.useContext)(mt)||ct;function gt(){let e=(0,l.useContext)(mt);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function _t({theme:e,children:t,inherit:n=!0}){let r=ht(),i=(0,l.useMemo)(()=>pt(n?r:ct,e),[e,r,n]);return(0,u.jsx)(mt.Provider,{value:i,children:t})}_t.displayName=`@mantine/core/MantineThemeProvider`;function vt({classNames:e,styles:t,props:n,stylesCtx:r}){let i=gt();return{resolvedClassNames:Ne({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:Pe({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var yt={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function bt({theme:e,options:t,unstyled:n}){return G(t?.focusable&&!n&&(e.focusClassName||yt[e.focusRing]),t?.active&&!n&&e.activeClassName)}function xt({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Ne({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function St({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Ne({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function Ct({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function wt({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Tt({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function Et({themeName:e,theme:t,selector:n,props:r,stylesCtx:i}){return e.map(e=>Ne({theme:t,classNames:t.components[e]?.classNames,props:r,stylesCtx:i})?.[n])}function Dt({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function Ot({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,classNames:a,classes:o,unstyled:s,className:c,rootSelector:l,props:u,stylesCtx:d,withStaticClasses:f,headless:p,transformedStyles:m}){return G(bt({theme:e,options:t,unstyled:s||p}),Et({theme:e,themeName:n,selector:r,props:u,stylesCtx:d}),Dt({options:t,classes:o,selector:r,unstyled:s}),St({selector:r,stylesCtx:d,theme:e,classNames:a,props:u}),St({selector:r,stylesCtx:d,theme:e,classNames:m,props:u}),xt({selector:r,stylesCtx:d,options:t,props:u,theme:e}),Ct({rootSelector:l,selector:r,className:c}),wt({selector:r,classes:o,unstyled:s||p}),f&&!p&&Tt({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function kt({theme:e,themeName:t,props:n,stylesCtx:r,selector:i}){return t.map(t=>Pe({theme:e,styles:e.components[t]?.styles,props:n,stylesCtx:r})[i]).reduce((e,t)=>({...e,...t}),{})}function At({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...At({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function jt(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...y(t[n])}}),e),{})}function Mt({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:i,selector:a,themeName:o,headless:s}){return jt([s?{}:t?.(n,r,i),...o.map(e=>n.components?.[e]?.vars?.(n,r,i)),e?.(n,r,i)])?.[a]}function Nt({theme:e,themeName:t,selector:n,options:r,props:i,stylesCtx:a,rootSelector:o,styles:s,style:c,vars:l,varsResolver:u,headless:d,withStylesTransform:f}){return{...!f&&kt({theme:e,themeName:t,props:i,stylesCtx:a,selector:n}),...!f&&Pe({theme:e,styles:s,props:i,stylesCtx:a})[n],...!f&&Pe({theme:e,styles:r?.styles,props:r?.props||i,stylesCtx:a})[n],...Mt({theme:e,props:i,stylesCtx:a,vars:l,varsResolver:u,selector:n,themeName:t,headless:d}),...o===n?At({style:c,theme:e}):null,...At({style:r?.style,theme:e})}}function Pt({props:e,stylesCtx:t,themeName:n}){let r=gt(),i=He()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function K({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=gt(),m=Le(),h=ze(),g=Be(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=Pt({props:n,stylesCtx:r,themeName:_});return(e,b)=>({className:Ot({theme:p,options:b,themeName:_,selector:e,classNamesPrefix:m,classNames:c,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([b?.styles,l])}),style:Nt({theme:p,themeName:_,selector:e,options:b,props:n,stylesCtx:r,rootSelector:o,styles:l,style:a,vars:u,varsResolver:d,headless:g,withStylesTransform:v}),...f?.[e]})}function q(e,t,n){let r=gt(),i=r.components[e]?.defaultProps,a=typeof i==`function`?i(r):i;return{...t,...a,...y(n)}}function Ft(e){return f(e).reduce((t,n)=>e[n]===void 0?t:`${t}${h(n)}:${e[n]};`,``).trim()}function It({selector:e,styles:t,media:n,container:r}){let i=t?Ft(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${Ft(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${Ft(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function Lt(e){let t=Re();return(0,u.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:t?.(),dangerouslySetInnerHTML:{__html:It(e)}})}function Rt(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,p:u,px:d,py:f,pt:p,pb:m,pl:h,pr:g,pe:_,ps:v,bd:b,bdrs:x,bg:S,c:C,opacity:w,ff:T,fz:E,fw:D,lts:O,ta:k,lh:A,fs:j,tt:M,td:N,w:P,miw:ee,maw:F,h:te,mih:ne,mah:I,bgsz:re,bgp:L,bgr:ie,bga:R,pos:ae,top:oe,left:se,bottom:ce,right:le,inset:ue,display:de,flex:z,hiddenFrom:fe,visibleFrom:pe,lightHidden:me,darkHidden:he,sx:ge,..._e}=e;return{styleProps:y({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,p:u,px:d,py:f,pt:p,pb:m,pl:h,pr:g,pe:_,ps:v,bd:b,bg:S,c:C,opacity:w,ff:T,fz:E,fw:D,lts:O,ta:k,lh:A,fs:j,tt:M,td:N,w:P,miw:ee,maw:F,h:te,mih:ne,mah:I,bgsz:re,bgp:L,bgr:ie,bga:R,pos:ae,top:oe,left:se,bottom:ce,right:le,inset:ue,display:de,flex:z,bdrs:x,hiddenFrom:fe,visibleFrom:pe,lightHidden:me,darkHidden:he,sx:ge}),rest:_e}}var zt={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`},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`},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 Bt(e,t){let n=tt({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function Vt(e,t){let n=tt({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Bt(e,t)}function Ht(e,t){if(typeof e==`number`)return v(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${v(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${Bt(i.join(` `),t)}`),a.trim()}return e}var Ut={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 Wt(e){return typeof e==`string`&&e in Ut?Ut[e]:e}var Gt=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Kt(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&Gt.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?v(e):e}function qt(e){return e}var Jt=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Yt(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&Jt.includes(e)?`var(--mantine-${e}-line-height)`:e}function Xt(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?v(e):e}function Zt(e){return typeof e==`number`?v(e):e}function Qt(e,t){if(typeof e==`number`)return v(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return v(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var $t={color:Bt,textColor:Vt,fontSize:Kt,spacing:Qt,radius:Xt,identity:qt,size:Zt,lineHeight:Yt,fontFamily:Wt,border:Ht};function en(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function tn({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(en(e))-Number(en(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function nn(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return!(t.length===1&&t[0]===`base`)}function rn(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function an(e){return typeof e==`object`&&e?f(e).filter(e=>e!==`base`):[]}function on(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function sn({styleProps:e,data:t,theme:n}){return tn(f(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=rn(e[i]);if(!nn(e[i]))return o.forEach(e=>{r.inlineStyles[e]=$t[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=an(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=$t[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:$t[a.type](on(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function cn(){return`__m__-${(0,l.useId)().replace(/[:«»]/g,``)}`}function J(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...J(n,t)}),{}):typeof e==`function`?e(t):e??{}}function ln(e){return e}function un(e){return e.startsWith(`data-`)?e:`data-${e}`}function dn(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[un(n)]=e[n]),t},{})}function fn(e){return e?typeof e==`string`?{[un(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...fn(t)}),{}):dn(e):null}function pn(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...pn(n,t)}),{}):typeof e==`function`?e(t):e??{}}function mn({theme:e,style:t,vars:n,styleProps:r}){let i=pn(t,e),a=pn(n,e);return{...i,...a,...r}}var hn=(0,l.forwardRef)(({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:d,renderRoot:f,__size:p,...m},h)=>{let g=gt(),_=e||`div`,{styleProps:v,rest:y}=Rt(m),x=Ve()?.()?.(v.sx),S=cn(),C=sn({styleProps:v,theme:g,data:zt}),w={ref:h,style:mn({theme:g,style:t,vars:n,styleProps:C.inlineStyles}),className:G(r,x,{[S]:C.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":b(o)?void 0:o||void 0,size:p,...fn(a),...y};return(0,u.jsxs)(u.Fragment,{children:[C.hasResponsiveStyles&&(0,u.jsx)(Lt,{selector:`.${S}`,styles:C.styles,media:C.media}),typeof f==`function`?f(w):(0,u.jsx)(_,{...w})]})});hn.displayName=`@mantine/core/Box`;var Y=ln(hn);function gn(e){return e}function X(e){let t=(0,l.forwardRef)(e);return t.extend=gn,t.withProps=e=>{let n=(0,l.forwardRef)((n,r)=>(0,u.jsx)(t,{...e,...n,ref:r}));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function _n(e){let t=(0,l.forwardRef)(e);return t.withProps=e=>{let n=(0,l.forwardRef)((n,r)=>(0,u.jsx)(t,{...e,...n,ref:r}));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=gn,t}var vn=(0,l.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function yn(){return(0,l.useContext)(vn)}function bn(){return typeof window<`u`}function xn(e){return wn(e)?(e.nodeName||``).toLowerCase():`#document`}function Sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cn(e){return((wn(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function wn(e){return bn()?e instanceof Node||e instanceof Sn(e).Node:!1}function Z(e){return bn()?e instanceof Element||e instanceof Sn(e).Element:!1}function Tn(e){return bn()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}function En(e){return!bn()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}function Dn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Rn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function On(e){return/^(table|td|th)$/.test(xn(e))}function kn(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var An=/transform|translate|scale|rotate|perspective|filter/,jn=/paint|layout|strict|content/,Mn=e=>!!e&&e!==`none`,Nn;function Pn(e){let t=Z(e)?Rn(e):e;return Mn(t.transform)||Mn(t.translate)||Mn(t.scale)||Mn(t.rotate)||Mn(t.perspective)||!In()&&(Mn(t.backdropFilter)||Mn(t.filter))||An.test(t.willChange||``)||jn.test(t.contain||``)}function Fn(e){let t=Bn(e);for(;Tn(t)&&!Ln(t);){if(Pn(t))return t;if(kn(t))return null;t=Bn(t)}return null}function In(){return Nn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Nn}function Ln(e){return/^(html|body|#document)$/.test(xn(e))}function Rn(e){return Sn(e).getComputedStyle(e)}function zn(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bn(e){if(xn(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||En(e)&&e.host||Cn(e);return En(t)?t.host:t}function Vn(e){let t=Bn(e);return Ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tn(t)&&Dn(t)?t:Vn(t)}function Hn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Vn(e),i=r===e.ownerDocument?.body,a=Sn(r);if(i){let e=Un(a);return t.concat(a,a.visualViewport||[],Dn(r)?r:[],e&&n?Hn(e):[])}else return t.concat(r,Hn(r,[],n))}function Un(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Wn=[`top`,`right`,`bottom`,`left`],Gn=Math.min,Kn=Math.max,qn=Math.round,Jn=Math.floor,Yn=e=>({x:e,y:e}),Xn={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Zn(e,t,n){return Kn(e,Gn(t,n))}function Qn(e,t){return typeof e==`function`?e(t):e}function $n(e){return e.split(`-`)[0]}function er(e){return e.split(`-`)[1]}function tr(e){return e===`x`?`y`:`x`}function nr(e){return e===`y`?`height`:`width`}function rr(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ir(e){return tr(rr(e))}function ar(e,t,n){n===void 0&&(n=!1);let r=er(e),i=ir(e),a=nr(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=mr(o)),[o,mr(o)]}function or(e){let t=mr(e);return[sr(e),t,sr(t)]}function sr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var cr=[`left`,`right`],lr=[`right`,`left`],ur=[`top`,`bottom`],dr=[`bottom`,`top`];function fr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?lr:cr:t?cr:lr;case`left`:case`right`:return t?ur:dr;default:return[]}}function pr(e,t,n,r){let i=er(e),a=fr($n(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(sr)))),a}function mr(e){let t=$n(e);return Xn[t]+e.slice(t.length)}function hr(e){return{top:0,right:0,bottom:0,left:0,...e}}function gr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:hr(e)}function _r(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vr(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function yr(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function br(){return/apple/i.test(navigator.vendor)}function xr(){return vr().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function Sr(){return yr().includes(`jsdom/`)}var Cr=`data-floating-ui-focusable`,wr=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Tr(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Er(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&En(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Dr(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Or(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function kr(e){return e.matches(`html,body`)}function Ar(e){return e?.ownerDocument||document}function jr(e){return Tn(e)&&e.matches(wr)}function Mr(e){if(!e||Sr())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Nr(e){return e?e.hasAttribute(Cr)?e:e.querySelector(`[`+Cr+`]`)||e:null}function Pr(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Pr(e,t.id,n)])}function Fr(e){return`nativeEvent`in e}function Ir(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var Lr=typeof document<`u`?l.useLayoutEffect:function(){},Rr={...l};function zr(e){let t=l.useRef(e);return Lr(()=>{t.current=e}),t}var Br=Rr.useInsertionEffect||(e=>e());function Vr(e){let t=l.useRef(()=>{if(process.env.NODE_ENV!==`production`)throw Error(`Cannot call an event handler while rendering.`)});return Br(()=>{t.current=e}),l.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current==null?void 0:t.current(...n)},[])}function Hr(e,t,n){let{reference:r,floating:i}=e,a=rr(t),o=ir(t),s=nr(o),c=$n(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(er(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Ur(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Qn(t,e),p=gr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_r(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=_r(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Wr=50,Gr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ur},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Hr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Wr&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Hr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Kr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Qn(e,t)||{};if(l==null)return{};let d=gr(u),f={x:n,y:r},p=ir(i),m=nr(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Gn(d[_],T),D=Gn(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Zn(O,A,k),M=!c.arrow&&er(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),qr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Qn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=$n(r),_=rr(o),v=$n(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[mr(o)]:or(o)),x=p!==`none`;!d&&x&&b.push(...pr(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ar(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==rr(t))||T.every(e=>rr(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=rr(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Jr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yr(e){return Wn.some(t=>e[t]>=0)}var Xr=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Qn(e,t);switch(i){case`referenceHidden`:{let e=Jr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Yr(e)}}}case`escaped`:{let e=Jr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Yr(e)}}}default:return{}}}}};function Zr(e){let t=Gn(...e.map(e=>e.left)),n=Gn(...e.map(e=>e.top)),r=Kn(...e.map(e=>e.right)),i=Kn(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Qr(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>_r(Zr(e)))}var $r=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Qn(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=Qr(u),f=_r(Zr(u)),p=gr(s);function m(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(rr(n)===`y`){let e=d[0],t=d[d.length-1],r=$n(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=$n(n)===`left`,t=Kn(...d.map(e=>e.right)),r=Gn(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom,s=r,c=t;return{top:a,bottom:o,left:s,right:c,width:c-s,height:o-a,x:s,y:a}}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},ei=new Set([`left`,`top`]);async function ti(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=$n(n),s=er(n),c=rr(n)===`y`,l=ei.has(o)?-1:1,u=a&&c?-1:1,d=Qn(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ni=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ti(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ri=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Qn(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=rr($n(i)),p=tr(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Zn(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Zn(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ii=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Qn(e,t),u={x:n,y:r},d=rr(i),f=tr(d),p=u[f],m=u[d],h=Qn(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ei.has($n(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ai=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Qn(e,t),u=await o.detectOverflow(t,l),d=$n(i),f=er(i),p=rr(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Gn(h-u[g],v),x=Gn(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Kn(u.left,0),t=Kn(u.right,0),n=Kn(u.top,0),r=Kn(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Kn(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Kn(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function oi(e){let t=Rn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Tn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=qn(n)!==a||qn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function si(e){return Z(e)?e:e.contextElement}function ci(e){let t=si(e);if(!Tn(t))return Yn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=oi(t),o=(a?qn(n.width):n.width)/r,s=(a?qn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var li=Yn(0);function ui(e){let t=Sn(e);return!In()||!t.visualViewport?li:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function di(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sn(e)?!1:t}function fi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=si(e),o=Yn(1);t&&(r?Z(r)&&(o=ci(r)):o=ci(e));let s=di(a,n,r)?ui(a):Yn(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Sn(a),t=r&&Z(r)?Sn(r):r,n=e,i=Un(n);for(;i&&r&&t!==n;){let e=ci(i),t=i.getBoundingClientRect(),r=Rn(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Sn(i),i=Un(n)}}return _r({width:u,height:d,x:c,y:l})}function pi(e,t){let n=zn(e).scrollLeft;return t?t.left+n:fi(Cn(e)).left+n}function mi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-pi(e,n),y:n.top+t.scrollTop}}function hi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Cn(r),s=t?kn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Yn(1),u=Yn(0),d=Tn(r);if((d||!d&&!a)&&((xn(r)!==`body`||Dn(o))&&(c=zn(r)),d)){let e=fi(r);l=ci(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?mi(o,c):Yn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function gi(e){return Array.from(e.getClientRects())}function _i(e){let t=Cn(e),n=zn(e),r=e.ownerDocument.body,i=Kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+pi(e),s=-n.scrollTop;return Rn(r).direction===`rtl`&&(o+=Kn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var vi=25;function yi(e,t){let n=Sn(e),r=Cn(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=In();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=pi(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=vi&&(a-=o)}else l<=vi&&(a+=l);return{width:a,height:o,x:s,y:c}}function bi(e,t){let n=fi(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Tn(e)?ci(e):Yn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function xi(e,t,n){let r;if(t===`viewport`)r=yi(e,n);else if(t===`document`)r=_i(Cn(e));else if(Z(t))r=bi(t,n);else{let n=ui(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _r(r)}function Si(e,t){let n=Bn(e);return n===t||!Z(n)||Ln(n)?!1:Rn(n).position===`fixed`||Si(n,t)}function Ci(e,t){let n=t.get(e);if(n)return n;let r=Hn(e,[],!1).filter(e=>Z(e)&&xn(e)!==`body`),i=null,a=Rn(e).position===`fixed`,o=a?Bn(e):e;for(;Z(o)&&!Ln(o);){let t=Rn(o),n=Pn(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Dn(o)&&!n&&Si(e,o))?r=r.filter(e=>e!==o):i=t,o=Bn(o)}return t.set(e,r),r}function wi(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?kn(t)?[]:Ci(t,this._c):[].concat(n),r],o=xi(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=xi(t,a[e],i);s=Kn(n.top,s),c=Gn(n.right,c),l=Gn(n.bottom,l),u=Kn(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ti(e){let{width:t,height:n}=oi(e);return{width:t,height:n}}function Ei(e,t,n){let r=Tn(t),i=Cn(t),a=n===`fixed`,o=fi(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Yn(0);function l(){c.x=pi(i)}if(r||!r&&!a)if((xn(t)!==`body`||Dn(i))&&(s=zn(t)),r){let e=fi(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?mi(i,s):Yn(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Di(e){return Rn(e).position===`static`}function Oi(e,t){if(!Tn(e)||Rn(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Cn(e)===n&&(n=n.ownerDocument.body),n}function ki(e,t){let n=Sn(e);if(kn(e))return n;if(!Tn(e)){let t=Bn(e);for(;t&&!Ln(t);){if(Z(t)&&!Di(t))return t;t=Bn(t)}return n}let r=Oi(e,t);for(;r&&On(r)&&Di(r);)r=Oi(r,t);return r&&Ln(r)&&Di(r)&&!Pn(r)?n:r||Fn(e)||n}var Ai=async function(e){let t=this.getOffsetParent||ki,n=this.getDimensions,r=await n(e.floating);return{reference:Ei(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ji(e){return Rn(e).direction===`rtl`}var Mi={convertOffsetParentRelativeRectToViewportRelativeRect:hi,getDocumentElement:Cn,getClippingRect:wi,getOffsetParent:ki,getElementRects:Ai,getClientRects:gi,getDimensions:Ti,getScale:ci,isElement:Z,isRTL:ji};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pi(e,t){let n=null,r,i=Cn(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Jn(d),h=Jn(i.clientWidth-(u+f)),g=Jn(i.clientHeight-(d+p)),_=Jn(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Kn(0,Gn(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ni(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Fi(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=si(e),u=i||a?[...l?Hn(l):[],...t?Hn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Pi(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?fi(e):null;c&&g();function g(){let t=fi(e);h&&!Ni(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ii=ni,Li=ri,Ri=qr,zi=ai,Bi=Xr,Vi=Kr,Hi=$r,Ui=ii,Wi=(e,t,n)=>{let r=new Map,i={platform:Mi,...n},a={...i.platform,_c:r};return Gr(e,t,{...i,platform:a})},Gi=typeof document<`u`?l.useLayoutEffect:function(){};function Ki(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ki(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ki(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function qi(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ji(e,t){let n=qi(e);return Math.round(t*n)/n}function Yi(e){let t=l.useRef(e);return Gi(()=>{t.current=e}),t}function Xi(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);Ki(m,r)||h(r);let[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=l.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=l.useRef(null),T=l.useRef(null),E=l.useRef(f),D=c!=null,O=Yi(c),k=Yi(i),A=Yi(u),j=l.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),Wi(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Ki(E.current,t)&&(E.current=t,d.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);Gi(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let M=l.useRef(!1);Gi(()=>(M.current=!0,()=>{M.current=!1}),[]),Gi(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=l.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=l.useMemo(()=>({reference:S,floating:C}),[S,C]),ee=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Ji(P.floating,f.x),r=Ji(P.floating,f.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...qi(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:ee}),[f,j,N,P,ee])}var Zi=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Vi({element:r.current,padding:i}).fn(n):r?Vi({element:r,padding:i}).fn(n):{}}}},Qi=(e,t)=>{let n=Ii(e);return{name:n.name,fn:n.fn,options:[e,t]}},$i=(e,t)=>{let n=Li(e);return{name:n.name,fn:n.fn,options:[e,t]}},ea=(e,t)=>({fn:Ui(e).fn,options:[e,t]}),ta=(e,t)=>{let n=Ri(e);return{name:n.name,fn:n.fn,options:[e,t]}},na=(e,t)=>{let n=zi(e);return{name:n.name,fn:n.fn,options:[e,t]}},ra=(e,t)=>{let n=Bi(e);return{name:n.name,fn:n.fn,options:[e,t]}},ia=(e,t)=>{let n=Hi(e);return{name:n.name,fn:n.fn,options:[e,t]}},aa=(e,t)=>{let n=Zi(e);return{name:n.name,fn:n.fn,options:[e,t]}};function oa(e){let t=l.useRef(void 0),n=l.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return l.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var sa=`data-floating-ui-focusable`,ca=`active`,la=`selected`,ua=`ArrowLeft`,da=`ArrowRight`,fa=`ArrowUp`,pa=`ArrowDown`,ma=[ua,da],ha=[fa,pa];[...ma,...ha];var ga={...l},_a=!1,va=0,ya=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+ va++;function ba(){let[e,t]=l.useState(()=>_a?ya():void 0);return Lr(()=>{e??t(ya())},[]),l.useEffect(()=>{_a=!0},[]),e}var xa=ga.useId||ba,Sa;process.env.NODE_ENV!==`production`&&(Sa=new Set);function Ca(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=`Floating UI: `+n.join(` `);if(!((e=Sa)!=null&&e.has(i))){var a;(a=Sa)==null||a.add(i),console.error(i)}}function wa(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var Ta=l.createContext(null),Ea=l.createContext(null),Da=()=>l.useContext(Ta)?.id||null,Oa=()=>l.useContext(Ea);function ka(e){return`data-floating-ui-`+e}function Aa(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var ja=ka(`safe-polygon`);function Ma(e,t,n){if(n&&!Ir(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function Na(e){return typeof e==`function`?e():e}function Pa(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,m=Oa(),h=Da(),g=zr(u),_=zr(c),v=zr(n),y=zr(f),b=l.useRef(),x=l.useRef(-1),S=l.useRef(),C=l.useRef(-1),w=l.useRef(!0),T=l.useRef(!1),E=l.useRef(()=>{}),D=l.useRef(!1),O=Vr(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});l.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(Aa(x),Aa(C),w.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),l.useEffect(()=>{if(!s||!g.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=Ar(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,g,O]);let k=l.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=Ma(_.current,`close`,b.current);i&&!S.current?(Aa(x),x.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(Aa(x),r(!1,e,n))},[_,r]),A=Vr(()=>{E.current(),S.current=void 0}),j=Vr(()=>{if(T.current){let e=Ar(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(ja),T.current=!1}}),M=Vr(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);l.useEffect(()=>{if(!s)return;function e(e){if(Aa(x),w.current=!1,d&&!Ir(b.current)||Na(y.current)>0&&!Ma(_.current,`open`))return;let t=Ma(_.current,`open`,b.current);t?x.current=window.setTimeout(()=>{v.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=Ar(o.floating);if(Aa(C),D.current=!1,g.current&&i.current.floatingContext){n||Aa(x),S.current=g.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e,!0,`safe-polygon`)}});let r=S.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)};return}(b.current!==`touch`||!Er(o.floating,e.relatedTarget))&&k(e)}function a(e){M()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e)}})(e))}function c(){Aa(x)}function l(e){M()||k(e,!1)}if(Z(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),p&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),p&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,d,p,k,A,j,r,n,v,m,_,g,i,M,y]),Lr(()=>{var e;if(s&&n&&(e=g.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=o.floating;if(Z(o.domReference)&&e){var t;let n=Ar(o.floating).body;n.setAttribute(ja,``);let r=o.domReference,i=m==null||(t=m.nodesRef.current.find(e=>e.id===h))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,h,o,m,g,O]),Lr(()=>{n||(b.current=void 0,D.current=!1,A(),j())},[n,A,j]),l.useEffect(()=>()=>{A(),Aa(x),Aa(C),j()},[s,o.domReference,A,j]);let N=l.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!w.current&&!v.current&&r(!0,t,`hover`)}d&&!Ir(b.current)||n||Na(y.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(Aa(C),b.current===`touch`?i():(D.current=!0,C.current=window.setTimeout(i,Na(y.current))))}}},[d,r,n,v,y]);return l.useMemo(()=>s?{reference:N}:{},[s,N])}var Fa=()=>{},Ia=l.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Fa,setState:Fa,isInstantPhase:!1}),La=()=>l.useContext(Ia);function Ra(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=l.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=l.useRef(null),s=l.useCallback(e=>{a({currentId:e})},[]);return Lr(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,u.jsx)(Ia.Provider,{value:l.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function za(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=La(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return Lr(()=>{o&&l&&(f({delay:{open:1,close:Ma(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),Lr(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),Lr(()=>{o&&(u===Fa||!n||u(s))},[o,n,u,s]),c}var Ba={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},Va={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Ha=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Ua(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:u=`pointerdown`,referencePress:d=!1,referencePressEvent:f=`pointerdown`,ancestorScroll:p=!1,bubbles:m,capture:h}=t,g=Oa(),_=Vr(typeof c==`function`?c:()=>!1),v=typeof c==`function`?_:c,y=l.useRef(!1),{escapeKey:b,outsidePress:x}=Ha(m),{escapeKey:S,outsidePress:C}=Ha(h),w=l.useRef(!1),T=Vr(e=>{if(!n||!o||!s||e.key!==`Escape`||w.current)return;let t=a.current.floatingContext?.nodeId,i=g?Pr(g.nodesRef.current,t):[];if(!b&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,Fr(e)?e.nativeEvent:e,`escape-key`)}),E=Vr(e=>{var t;let n=()=>{var t;T(e),(t=Dr(e))==null||t.removeEventListener(`keydown`,n)};(t=Dr(e))==null||t.addEventListener(`keydown`,n)}),D=Vr(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=y.current;if(y.current=!1,u===`click`&&n||t||typeof v==`function`&&!v(e))return;let o=Dr(e),s=`[`+ka(`inert`)+`]`,c=Ar(i.floating).querySelectorAll(s),l=Z(o)?o:null;for(;l&&!Ln(l);){let e=Bn(l);if(Ln(e)||!Z(e))break;l=e}if(c.length&&Z(o)&&!kr(o)&&!Er(o,i.floating)&&Array.from(c).every(e=>!Er(l,e)))return;if(Tn(o)&&A){let t=Ln(o),n=Rn(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=g&&Pr(g.nodesRef.current,d).some(t=>Or(e,t.context?.elements.floating));if(Or(e,i.floating)||Or(e,i.domReference)||f)return;let p=g?Pr(g.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),O=Vr(e=>{var t;let n=()=>{var t;D(e),(t=Dr(e))==null||t.removeEventListener(u,n)};(t=Dr(e))==null||t.addEventListener(u,n)});l.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),w.current=!0}function l(){e=window.setTimeout(()=>{w.current=!1},In()?5:0)}let d=Ar(i.floating);s&&(d.addEventListener(`keydown`,S?E:T,S),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,l)),v&&d.addEventListener(u,C?O:D,C);let f=[];return p&&(Z(i.domReference)&&(f=Hn(i.domReference)),Z(i.floating)&&(f=f.concat(Hn(i.floating))),!Z(i.reference)&&i.reference&&i.reference.contextElement&&(f=f.concat(Hn(i.reference.contextElement)))),f=f.filter(e=>e!==d.defaultView?.visualViewport),f.forEach(e=>{e.addEventListener(`scroll`,t,{passive:!0})}),()=>{s&&(d.removeEventListener(`keydown`,S?E:T,S),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,l)),v&&d.removeEventListener(u,C?O:D,C),f.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,v,u,n,r,p,o,b,x,T,S,E,D,C,O]),l.useEffect(()=>{a.current.insideReactTree=!1},[a,v,u]);let k=l.useMemo(()=>({onKeyDown:T,...d&&{[Ba[f]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...f!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,d,f]),A=l.useMemo(()=>{function e(e){e.button===0&&(y.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[Va[u]]:()=>{a.current.insideReactTree=!0}}},[T,u,a]);return l.useMemo(()=>o?{reference:k,floating:A}:{},[o,k,A])}function Wa(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=xa(),a=l.useRef({}),[o]=l.useState(()=>wa()),s=Da()!=null;if(process.env.NODE_ENV!==`production`){let e=r.reference;e&&!Z(e)&&Ca("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`",`instead.`)}let[c,u]=l.useState(r.reference),d=Vr((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),f=l.useMemo(()=>({setPositionReference:u}),[]),p=l.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return l.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:o,floatingId:i,refs:f}),[t,d,p,o,i,f])}function Ga(e){e===void 0&&(e={});let{nodeId:t}=e,n=Wa({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=l.useState(null),[s,c]=l.useState(null),u=i?.domReference||a,d=l.useRef(null),f=Oa();Lr(()=>{u&&(d.current=u)},[u]);let p=Xi({...e,elements:{...i,...s&&{reference:s}}}),m=l.useCallback(e=>{let t=Z(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),h=l.useCallback(e=>{(Z(e)||e===null)&&(d.current=e,o(e)),(Z(p.refs.reference.current)||p.refs.reference.current===null||e!==null&&!Z(e))&&p.refs.setReference(e)},[p.refs]),g=l.useMemo(()=>({...p.refs,setReference:h,setPositionReference:m,domReference:d}),[p.refs,h,m]),_=l.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=l.useMemo(()=>({...p,...r,refs:g,elements:_,nodeId:t}),[p,g,_,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),l.useMemo(()=>({...p,context:v,refs:g,elements:_}),[p,g,_,v])}function Ka(){return xr()&&br()}function qa(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,u=l.useRef(!1),d=l.useRef(-1),f=l.useRef(!0);l.useEffect(()=>{if(!s)return;let e=Sn(o.domReference);function t(){!n&&Tn(o.domReference)&&o.domReference===Tr(Ar(o.domReference))&&(u.current=!0)}function r(){f.current=!0}function i(){f.current=!1}return e.addEventListener(`blur`,t),Ka()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),Ka()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),l.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(u.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),l.useEffect(()=>()=>{Aa(d)},[]);let p=l.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;let t=Dr(e.nativeEvent);if(c&&Z(t)){if(Ka()&&!e.relatedTarget){if(!f.current&&!jr(t))return}else if(!Mr(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){u.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=Z(t)&&t.hasAttribute(ka(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;d.current=window.setTimeout(()=>{let e=Tr(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||Er(a.current.floatingContext?.refs.floating.current,e)||Er(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return l.useMemo(()=>s?{reference:p}:{},[s,p])}function Ja(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[ca]:t,[la]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[sa]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[ca,la].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return r.get(n)?.map(e=>e(...t)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function Ya(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=l.useCallback(t=>Ja(t,e,`reference`),t),a=l.useCallback(t=>Ja(t,e,`floating`),n),o=l.useCallback(t=>Ja(t,e,`item`),r);return l.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Xa=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Za(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=xa(),c=r.domReference?.id||s,u=l.useMemo(()=>Nr(r.floating)?.id||i,[r.floating,i]),d=Xa.get(o)??o,f=Da()!=null,p=l.useMemo(()=>d===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?u:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-controls":n?u:void 0,...d===`listbox`&&{role:`combobox`},...d===`menu`&&{id:c},...d===`menu`&&f&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[d,u,f,n,c,o]),m=l.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||o===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":c}}},[d,u,c,o]),h=l.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:u+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[u,o]);return l.useMemo(()=>a?{reference:p,floating:m,item:h}:{},[a,p,m,h])}var Qa={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`},[$a,eo]=S(`ScrollArea.Root component was not found in tree`);function to(e,t){let n=F(t);R(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var no=(0,l.forwardRef)((e,t)=>{let{style:n,...r}=e,i=eo(),[a,o]=(0,l.useState)(0),[s,c]=(0,l.useState)(0),d=!!(a&&s);return to(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),to(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),d?(0,u.jsx)(`div`,{...r,ref:t,style:{...n,width:a,height:s}}):null}),ro=(0,l.forwardRef)((e,t)=>{let n=eo(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,u.jsx)(no,{...e,ref:t}):null}),io={scrollHideDelay:1e3,type:`hover`},ao=(0,l.forwardRef)((e,t)=>{let{type:n,scrollHideDelay:r,scrollbars:i,getStyles:a,...o}=q(`ScrollAreaRoot`,io,e),[s,c]=(0,l.useState)(null),[d,f]=(0,l.useState)(null),[p,m]=(0,l.useState)(null),[h,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(null),[y,b]=(0,l.useState)(0),[x,S]=(0,l.useState)(0),[C,w]=(0,l.useState)(!1),[T,E]=(0,l.useState)(!1),D=B(t,e=>c(e));return(0,u.jsx)($a,{value:{type:n,scrollHideDelay:r,scrollArea:s,viewport:d,onViewportChange:f,content:p,onContentChange:m,scrollbarX:h,onScrollbarXChange:g,scrollbarXEnabled:C,onScrollbarXEnabledChange:w,scrollbarY:_,onScrollbarYChange:v,scrollbarYEnabled:T,onScrollbarYEnabledChange:E,onCornerWidthChange:b,onCornerHeightChange:S,getStyles:a},children:(0,u.jsx)(Y,{...o,ref:D,__vars:{"--sa-corner-width":i===`xy`?`${y}px`:`0px`,"--sa-corner-height":i===`xy`?`${x}px`:`0px`}})})});ao.displayName=`@mantine/core/ScrollAreaRoot`;function oo(e,t){let n=e/t;return Number.isNaN(n)?0:n}function so(e){let t=oo(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function co(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function lo(e,[t,n]){return Math.min(n,Math.max(t,e))}function uo(e,t,n=`ltr`){let r=so(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=lo(e,n===`ltr`?[0,o]:[o*-1,0]);return co([0,o],[0,s])(c)}function fo(e,t,n,r=`ltr`){let i=so(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return co([c,l],d)(e)}function po(e,t){return e>0&&e<t}function mo(e){return e?parseInt(e,10):0}function ho(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[go,_o]=S(`ScrollAreaScrollbar was not found in tree`),vo=(0,l.forwardRef)((e,t)=>{let{sizes:n,hasThumb:r,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:o,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:d,onResize:f,...p}=e,m=eo(),[h,g]=(0,l.useState)(null),_=B(t,e=>g(e)),v=(0,l.useRef)(null),y=(0,l.useRef)(``),{viewport:b}=m,x=n.content-n.viewport,S=F(d),C=F(s),w=te(f,10),T=e=>{v.current&&c({x:e.clientX-v.current.left,y:e.clientY-v.current.top})};return(0,l.useEffect)(()=>{let e=e=>{let t=e.target;h?.contains(t)&&S(e,x)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[b,h,x,S]),(0,l.useEffect)(C,[n,C]),to(h,w),to(m.content,w),(0,u.jsx)(go,{value:{scrollbar:h,hasThumb:r,onThumbChange:F(i),onThumbPointerUp:F(a),onThumbPositionChange:C,onThumbPointerDown:F(o)},children:(0,u.jsx)(`div`,{...p,ref:_,"data-mantine-scrollbar":!0,style:{position:`absolute`,...p.style},onPointerDown:ho(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,T(e))}),onPointerMove:ho(e.onPointerMove,T),onPointerUp:ho(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=y.current,v.current=null}})})}),yo=(0,l.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,style:i,...a}=e,o=eo(),[s,c]=(0,l.useState)(),d=(0,l.useRef)(null),f=B(t,d,o.onScrollbarXChange);return(0,l.useEffect)(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,u.jsx)(vo,{"data-orientation":`horizontal`,...a,ref:f,sizes:n,style:{...i,"--sa-thumb-width":`${so(n)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),po(r,n)&&t.preventDefault()}},onResize:()=>{d.current&&o.viewport&&s&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:mo(s.paddingLeft),paddingEnd:mo(s.paddingRight)}})}})});yo.displayName=`@mantine/core/ScrollAreaScrollbarX`;var bo=(0,l.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,style:i,...a}=e,o=eo(),[s,c]=(0,l.useState)(),d=(0,l.useRef)(null),f=B(t,d,o.onScrollbarYChange);return(0,l.useEffect)(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),(0,u.jsx)(vo,{...a,"data-orientation":`vertical`,ref:f,sizes:n,style:{"--sa-thumb-height":`${so(n)}px`,...i},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),po(r,n)&&t.preventDefault()}},onResize:()=>{d.current&&o.viewport&&s&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:mo(s.paddingTop),paddingEnd:mo(s.paddingBottom)}})}})});bo.displayName=`@mantine/core/ScrollAreaScrollbarY`;var xo=(0,l.forwardRef)((e,t)=>{let{orientation:n=`vertical`,...r}=e,{dir:i}=yn(),a=eo(),o=(0,l.useRef)(null),s=(0,l.useRef)(0),[c,d]=(0,l.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=oo(c.viewport,c.content),p={...r,sizes:c,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:e=>{o.current=e},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:e=>{s.current=e}},m=(e,t)=>fo(e,s.current,c,t);return n===`horizontal`?(0,u.jsx)(yo,{...p,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=a.viewport.scrollLeft,t=uo(e,c,i);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=m(e,i))}}):n===`vertical`?(0,u.jsx)(bo,{...p,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=a.viewport.scrollTop,t=uo(e,c);c.scrollbar.size===0?o.current.style.setProperty(`--thumb-opacity`,`0`):o.current.style.setProperty(`--thumb-opacity`,`1`),o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=m(e))}}):null});xo.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;var So=(0,l.forwardRef)((e,t)=>{let n=eo(),{forceMount:r,...i}=e,[a,o]=(0,l.useState)(!1),s=e.orientation===`horizontal`,c=te(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return to(n.viewport,c),to(n.content,c),r||a?(0,u.jsx)(xo,{"data-state":a?`visible`:`hidden`,...i,ref:t}):null});So.displayName=`@mantine/core/ScrollAreaScrollbarAuto`;var Co=(0,l.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=eo(),[a,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let{scrollArea:e}=i,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),n||a?(0,u.jsx)(So,{"data-state":a?`visible`:`hidden`,...r,ref:t}):null});Co.displayName=`@mantine/core/ScrollAreaScrollbarHover`;var wo=(0,l.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=eo(),a=e.orientation===`horizontal`,[o,s]=(0,l.useState)(`hidden`),c=te(()=>s(`idle`),100);return(0,l.useEffect)(()=>{if(o===`idle`){let e=window.setTimeout(()=>s(`hidden`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[o,i.scrollHideDelay]),(0,l.useEffect)(()=>{let{viewport:e}=i,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(s(`scrolling`),c()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c]),n||o!==`hidden`?(0,u.jsx)(xo,{"data-state":o===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:ho(e.onPointerEnter,()=>s(`interacting`)),onPointerLeave:ho(e.onPointerLeave,()=>s(`idle`))}):null}),To=(0,l.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=eo(),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return(0,l.useEffect)(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,u.jsx)(Co,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,u.jsx)(wo,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,u.jsx)(So,{...r,ref:t,forceMount:n}):i.type===`always`?(0,u.jsx)(xo,{...r,ref:t}):null});To.displayName=`@mantine/core/ScrollAreaScrollbar`;function Eo(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}var Do=(0,l.forwardRef)((e,t)=>{let{style:n,...r}=e,i=eo(),a=_o(),{onThumbPositionChange:o}=a,s=B(t,e=>a.onThumbChange(e)),c=(0,l.useRef)(void 0),d=te(()=>{c.current&&=(c.current(),void 0)},100);return(0,l.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{d(),c.current||(c.current=Eo(e,o),o())};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,d,o]),(0,u.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...n},onPointerDownCapture:ho(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:ho(e.onPointerUp,a.onThumbPointerUp)})});Do.displayName=`@mantine/core/ScrollAreaThumb`;var Oo=(0,l.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=_o();return n||i.hasThumb?(0,u.jsx)(Do,{ref:t,...r}):null});Oo.displayName=`@mantine/core/ScrollAreaThumb`;var ko=(0,l.forwardRef)(({children:e,style:t,onWheel:n,...r},i)=>{let a=eo(),o=B(i,a.onViewportChange),s=e=>{if(n?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,u.jsx)(Y,{...r,ref:o,onWheel:s,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,u.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})});ko.displayName=`@mantine/core/ScrollAreaViewport`;var Ao={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},jo=W((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":v(t),"--scrollarea-over-scroll-behavior":i}}}),Mo=X((e,t)=>{let n=q(`ScrollArea`,Ao,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,scrollbarSize:c,vars:d,type:f,scrollHideDelay:p,viewportProps:m,viewportRef:h,onScrollPositionChange:g,children:_,offsetScrollbars:v,scrollbars:y,onBottomReached:b,onTopReached:x,overscrollBehavior:S,attributes:C,...w}=n,[T,E]=(0,l.useState)(!1),[D,O]=(0,l.useState)(!1),[k,A]=(0,l.useState)(!1),j=K({name:`ScrollArea`,props:n,classes:Qa,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:C,vars:d,varsResolver:jo}),M=(0,l.useRef)(null),N=oa([h,M]);return(0,l.useEffect)(()=>{if(!M.current||v!==`present`)return;let e=M.current,t=new ResizeObserver(()=>{let{scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:i}=e;O(t>n),A(r>i)});return t.observe(e),()=>t.disconnect()},[M,v]),(0,u.jsxs)(ao,{getStyles:j,type:f===`never`?`always`:f,scrollHideDelay:p,ref:t,scrollbars:y,...j(`root`),...w,children:[(0,u.jsx)(ko,{...m,...j(`viewport`,{style:m?.style}),ref:N,"data-offset-scrollbars":v===!0?`xy`:v||void 0,"data-scrollbars":y||void 0,"data-horizontal-hidden":v===`present`&&!k?`true`:void 0,"data-vertical-hidden":v===`present`&&!D?`true`:void 0,onScroll:e=>{m?.onScroll?.(e),g?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t-(n-r)>=-.8&&b?.(),t===0&&x?.()},children:_}),(y===`xy`||y===`x`)&&(0,u.jsx)(To,{...j(`scrollbar`),orientation:`horizontal`,"data-hidden":f===`never`||v===`present`&&!k?!0:void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:(0,u.jsx)(Oo,{...j(`thumb`)})}),(y===`xy`||y===`y`)&&(0,u.jsx)(To,{...j(`scrollbar`),orientation:`vertical`,"data-hidden":f===`never`||v===`present`&&!D?!0:void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:(0,u.jsx)(Oo,{...j(`thumb`)})}),(0,u.jsx)(ro,{...j(`corner`),"data-hovered":T||void 0,"data-hidden":f===`never`||void 0})]})});Mo.displayName=`@mantine/core/ScrollArea`;var No=X((e,t)=>{let{children:n,classNames:r,styles:i,scrollbarSize:a,scrollHideDelay:o,type:s,dir:c,offsetScrollbars:d,overscrollBehavior:f,viewportRef:p,onScrollPositionChange:m,unstyled:h,variant:g,viewportProps:_,scrollbars:v,style:y,vars:b,onBottomReached:x,onTopReached:S,onOverflowChange:C,...w}=q(`ScrollAreaAutosize`,Ao,e),T=(0,l.useRef)(null),E=oa([p,T]),[D,O]=(0,l.useState)(!1),k=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{if(!C)return;let e=T.current;if(!e)return;let t=()=>{let t=e.scrollHeight>e.clientHeight;t!==D&&(k.current?C?.(t):(k.current=!0,t&&C?.(!0)),O(t))};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[C,D]),(0,u.jsx)(Y,{...w,ref:t,style:[{display:`flex`,overflow:`hidden`},y],children:(0,u.jsx)(Y,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...v===`y`&&{minWidth:0},...v===`x`&&{minHeight:0},...v===`xy`&&{minWidth:0,minHeight:0},...v===!1&&{minWidth:0,minHeight:0}},children:(0,u.jsx)(Mo,{classNames:r,styles:i,scrollHideDelay:o,scrollbarSize:a,type:s,dir:c,offsetScrollbars:d,overscrollBehavior:f,viewportRef:E,onScrollPositionChange:m,unstyled:h,variant:g,viewportProps:_,vars:b,scrollbars:v,onBottomReached:x,onTopReached:S,"data-autosize":`true`,children:n})})})});Mo.classes=Qa,No.displayName=`@mantine/core/ScrollAreaAutosize`,No.classes=Qa,Mo.Autosize=No;var Po={root:`m_87cf2631`},Fo={__staticSelector:`UnstyledButton`},Io=_n((e,t)=>{let n=q(`UnstyledButton`,Fo,e),{className:r,component:i=`button`,__staticSelector:a,unstyled:o,classNames:s,styles:c,style:l,attributes:d,...f}=n;return(0,u.jsx)(Y,{...K({name:a,props:n,classes:Po,className:r,style:l,classNames:s,styles:c,unstyled:o,attributes:d})(`root`,{focusable:!0}),component:i,ref:t,type:i===`button`?`button`:void 0,...f})});Io.classes=Po,Io.displayName=`@mantine/core/UnstyledButton`;var Lo={root:`m_515a97f8`},Ro=X((e,t)=>{let n=q(`VisuallyHidden`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,attributes:l,...d}=n;return(0,u.jsx)(Y,{component:`span`,ref:t,...K({name:`VisuallyHidden`,classes:Lo,props:n,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:l})(`root`),...d})});Ro.classes=Lo,Ro.displayName=`@mantine/core/VisuallyHidden`;var zo={root:`m_1b7284a3`},Bo=W((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:A(t),"--paper-shadow":N(n)}})),Vo=_n((e,t)=>{let n=q(`Paper`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,withBorder:c,vars:l,radius:d,shadow:f,variant:p,mod:m,attributes:h,...g}=n,_=K({name:`Paper`,props:n,classes:zo,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:h,vars:l,varsResolver:Bo});return(0,u.jsx)(Y,{ref:t,mod:[{"data-with-border":c},m],..._(`root`),variant:p,...g})});Vo.classes=zo,Vo.displayName=`@mantine/core/Paper`;function Ho(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Uo(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var Wo={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Go({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[Wo[c]]:r},d=-t/2;return c===`left`?{...u,...Ho(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...Ho(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Uo(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Uo(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}var Ko=(0,l.forwardRef)(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l},d)=>{let{dir:f}=yn();return a?(0,u.jsx)(`div`,{...l,ref:d,style:{...c,...Go({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:f,arrowX:o,arrowY:s})}}):null});Ko.displayName=`@mantine/core/FloatingArrow`;function qo(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}var Jo={root:`m_9814e45f`},Yo={zIndex:T(`modal`)},Xo=W((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&it(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${v(i)})`:void 0,"--overlay-radius":a===void 0?void 0:A(a),"--overlay-z-index":o?.toString()}})),Zo=_n((e,t)=>{let n=q(`Overlay`,Yo,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,fixed:l,center:d,children:f,radius:p,zIndex:m,gradient:h,blur:g,color:_,backgroundOpacity:v,mod:y,attributes:b,...x}=n;return(0,u.jsx)(Y,{ref:t,...K({name:`Overlay`,props:n,classes:Jo,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:b,vars:c,varsResolver:Xo})(`root`),mod:[{center:d,fixed:l},y],...x,children:f})});Zo.classes=Jo,Zo.displayName=`@mantine/core/Overlay`;function Qo(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function $o({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||Qo(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=Qo(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return Qo(n)}var es={reuseTargetNode:!0},ts=X((e,t)=>{let{children:n,target:r,reuseTargetNode:i,...a}=q(`Portal`,es,e),[o,s]=(0,l.useState)(!1),c=(0,l.useRef)(null);return R(()=>(s(!0),c.current=$o({target:r,reuseTargetNode:i,...a}),ye(t,c.current),!r&&!i&&c.current&&document.body.appendChild(c.current),()=>{!r&&!i&&c.current&&document.body.removeChild(c.current)}),[r]),!o||!c.current?null:(0,d.createPortal)((0,u.jsx)(u.Fragment,{children:n}),c.current)});ts.displayName=`@mantine/core/Portal`;var ns=X(({withinPortal:e=!0,children:t,...n},r)=>Ue()===`test`||!e?(0,u.jsx)(u.Fragment,{children:t}):(0,u.jsx)(ts,{ref:r,...n,children:t}));ns.displayName=`@mantine/core/OptionalPortal`;var rs=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),is={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:{...rs(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...rs(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...rs(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...rs(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...rs(`top`),common:{transformOrigin:`top right`}}},as={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function os({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in is?{transitionProperty:is[e].transitionProperty,...i,...is[e].common,...is[e][as[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[as[t]]}}function ss({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:u}){let f=gt(),p=we(),m=f.respectReducedMotion?p:!1,[h,g]=(0,l.useState)(m?0:e),[_,v]=(0,l.useState)(r?`entered`:`exited`),y=(0,l.useRef)(-1),b=(0,l.useRef)(-1),x=(0,l.useRef)(-1);function S(){window.clearTimeout(y.current),window.clearTimeout(b.current),cancelAnimationFrame(x.current)}let C=n=>{S();let r=n?i:a,c=n?o:s,l=m?0:n?e:t;g(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),v(n?`entered`:`exited`)):x.current=requestAnimationFrame(()=>{d.default.flushSync(()=>{v(n?`pre-entering`:`pre-exiting`)}),x.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),v(n?`entering`:`exiting`),y.current=window.setTimeout(()=>{typeof c==`function`&&c(),v(n?`entered`:`exited`)},l)})})},w=e=>{if(S(),typeof(e?c:u)!=`number`){C(e);return}b.current=window.setTimeout(()=>{C(e)},e?c:u)};return ae(()=>{w(r)},[r]),(0,l.useEffect)(()=>()=>{S()},[]),{transitionDuration:h,transitionStatus:_,transitionTimingFunction:n||`ease`}}function cs({keepMounted:e,transition:t=`fade`,duration:n=250,exitDuration:r=n,mounted:i,children:a,timingFunction:o=`ease`,onExit:s,onEntered:c,onEnter:l,onExited:d,enterDelay:f,exitDelay:p}){let m=Ue(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=ss({mounted:i,exitDuration:r,duration:n,timingFunction:o,onExit:s,onEntered:c,onEnter:l,onExited:d,enterDelay:f,exitDelay:p});return h===0||m===`test`?i?(0,u.jsx)(u.Fragment,{children:a({})}):e?a({display:`none`}):null:g===`exited`?e?a({display:`none`}):null:(0,u.jsx)(u.Fragment,{children:a(os({transition:t,duration:h,state:g,timingFunction:_}))})}cs.displayName=`@mantine/core/Transition`;var[ls,us]=S(`Popover component was not found in the tree`),ds={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`};function fs({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=B(he(t),r),a=ke(e);return a?(0,l.cloneElement)(a,{[n]:i}):e}function ps(e){return(0,u.jsx)(Ro,{tabIndex:-1,"data-autofocus":!0,...e})}fs.displayName=`@mantine/core/FocusTrap`,ps.displayName=`@mantine/core/FocusTrapInitialFocus`,fs.InitialFocus=ps;var ms=X((e,t)=>{let n=q(`PopoverDropdown`,null,e),{className:r,style:i,vars:a,children:o,onKeyDownCapture:s,variant:c,classNames:l,styles:d,...f}=n,p=us(),m=oe({opened:p.opened,shouldReturnFocus:p.returnFocus}),h=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:`dialog`,tabIndex:-1}:{},g=B(t,p.floating);return p.disabled?null:(0,u.jsx)(ns,{...p.portalProps,withinPortal:p.withinPortal,children:(0,u.jsx)(cs,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||`fade`,duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:typeof p.transitionProps?.exitDuration==`number`?p.transitionProps.exitDuration:p.transitionProps?.duration,children:e=>(0,u.jsx)(fs,{active:p.trapFocus&&p.opened,innerRef:g,children:(0,u.jsxs)(Y,{...h,...f,variant:c,onKeyDownCapture:D(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:m,onKeyDown:s}),"data-position":p.placement,"data-fixed":p.floatingStrategy===`fixed`||void 0,...p.getStyles(`dropdown`,{className:r,props:n,classNames:l,styles:d,style:[{...e,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width===`target`?void 0:v(p.width),...p.referenceHidden?{display:`none`}:null},p.resolvedStyles.dropdown,d?.dropdown,i]}),children:[o,(0,u.jsx)(Ko,{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:l,styles:d})})]})})})})});ms.classes=ds,ms.displayName=`@mantine/core/PopoverDropdown`;var hs={refProp:`ref`,popupType:`dialog`},gs=X((e,t)=>{let{children:n,refProp:r,popupType:i,...a}=q(`PopoverTarget`,hs,e),o=ke(n);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=us(),u=B(c.reference,U(o),t),d=c.withRoles?{"aria-haspopup":i,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},f=o.props;return(0,l.cloneElement)(o,{...s,...d,...c.targetProps,className:G(c.targetProps.className,s.className,f.className),[r]:u,...c.controlled?null:{onClick:()=>{c.onToggle(),f.onClick?.()}}})});gs.displayName=`@mantine/core/PopoverTarget`;function _s(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function vs(e,t,n){let r=_s(e.middlewares),i=[Qi(e.offset),ra()];return e.dropdownVisible&&n!==`test`&&e.preventPositionChangeWhenVisible&&(r.flip=!1),r.flip&&i.push(typeof r.flip==`boolean`?ta():ta(r.flip)),r.shift&&i.push($i(typeof r.shift==`boolean`?{limiter:ea(),padding:5}:{limiter:ea(),padding:5,...r.shift})),r.inline&&i.push(typeof r.inline==`boolean`?ia():ia(r.inline)),i.push(aa({element:e.arrowRef,padding:e.arrowOffset})),(r.size||e.width===`target`)&&i.push(na({...typeof r.size==`boolean`?{}:r.size,apply({rects:n,availableWidth:i,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};r.size&&(typeof r.size==`object`&&r.size.apply?r.size.apply({rects:n,availableWidth:i,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${i}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),i}function ys(e){let t=Ue(),[n,r]=Ce({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),i=(0,l.useRef)(n),a=()=>{n&&!e.disabled&&r(!1)},o=()=>{e.disabled||r(!n)},s=Ga({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:vs(e,()=>s,t),whileElementsMounted:e.keepMounted?void 0:Fi});return(0,l.useEffect)(()=>{if(!(!s.refs.reference.current||!s.refs.floating.current)&&n)return Fi(s.refs.reference.current,s.refs.floating.current,s.update)},[n,s.update]),ae(()=>{e.onPositionChange?.(s.placement),e.positionRef.current=s.placement},[s.placement,e.preventPositionChangeWhenVisible]),ae(()=>{n!==i.current&&(n?e.onOpen?.():e.onClose?.()),i.current=n},[n,e.onClose,e.onOpen]),R(()=>{let t=-1;return n&&(t=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(t)}},[n,e.position]),{floating:s,controlled:typeof e.opened==`boolean`,opened:n,onClose:a,onToggle:o}}var bs={position:`bottom`,offset:8,positionDependencies:[],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:T(`popover`),__staticSelector:`Popover`,width:`max-content`},xs=W((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:A(t),"--popover-shadow":N(n)}}));function Ss(e){let t=q(`Popover`,bs,e),{children:n,position:r,offset:i,onPositionChange:a,positionDependencies:o,opened:s,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:f,width:p,middlewares:m,withArrow:h,arrowSize:g,arrowOffset:_,arrowRadius:v,arrowPosition:y,unstyled:b,classNames:x,styles:S,closeOnClickOutside:C,withinPortal:w,portalProps:T,closeOnEscape:E,clickOutsideEvents:D,trapFocus:O,onClose:k,onDismiss:A,onOpen:j,onChange:M,zIndex:N,radius:P,shadow:ee,id:F,defaultOpened:te,__staticSelector:ne,withRoles:re,disabled:L,returnFocus:ie,variant:R,keepMounted:ae,vars:oe,floatingStrategy:se,withOverlay:ce,overlayProps:le,hideDetached:ue,attributes:de,preventPositionChangeWhenVisible:z,...fe}=t,pe=K({name:ne,props:t,classes:ds,classNames:x,styles:S,unstyled:b,attributes:de,rootSelector:`dropdown`,vars:oe,varsResolver:xs}),{resolvedStyles:me}=vt({classNames:x,styles:S,props:t}),[he,ge]=(0,l.useState)(s??te??!1),_e=(0,l.useRef)(r),ye=(0,l.useRef)(null),[be,B]=(0,l.useState)(null),[xe,Se]=(0,l.useState)(null),{dir:Ce}=yn(),we=Ue(),Te=ve(F),V=ys({middlewares:m,width:p,position:qo(Ce,r),offset:typeof i==`number`?i+(h?g/2:0):i,arrowRef:ye,arrowOffset:_,onPositionChange:a,positionDependencies:o,opened:s,defaultOpened:te,onChange:M,onOpen:j,onClose:k,onDismiss:A,strategy:se,dropdownVisible:he,setDropdownVisible:ge,positionRef:_e,disabled:L,preventPositionChangeWhenVisible:z,keepMounted:ae});I(()=>{C&&(V.onClose(),A?.())},D,[be,xe]);let H=(0,l.useCallback)(e=>{B(e),V.floating.refs.setReference(e)},[V.floating.refs.setReference]),U=(0,l.useCallback)(e=>{Se(e),V.floating.refs.setFloating(e)},[V.floating.refs.setFloating]),Ee=(0,l.useCallback)(()=>{c?.onExited?.(),d?.(),ge(!1),z||(_e.current=r)},[c?.onExited,d,z,r]),De=(0,l.useCallback)(()=>{c?.onEntered?.(),f?.()},[c?.onEntered,f]);return(0,u.jsxs)(ls,{value:{returnFocus:ie,disabled:L,controlled:V.controlled,reference:H,floating:U,x:V.floating.x,y:V.floating.y,arrowX:V.floating?.middlewareData?.arrow?.x,arrowY:V.floating?.middlewareData?.arrow?.y,opened:V.opened,arrowRef:ye,transitionProps:{...c,onExited:Ee,onEntered:De},width:p,withArrow:h,arrowSize:g,arrowOffset:_,arrowRadius:v,arrowPosition:y,placement:V.floating.placement,trapFocus:O,withinPortal:w,portalProps:T,zIndex:N,radius:P,shadow:ee,closeOnEscape:E,onDismiss:A,onClose:V.onClose,onToggle:V.onToggle,getTargetId:()=>`${Te}-target`,getDropdownId:()=>`${Te}-dropdown`,withRoles:re,targetProps:fe,__staticSelector:ne,classNames:x,styles:S,unstyled:b,variant:R,keepMounted:ae,getStyles:pe,resolvedStyles:me,floatingStrategy:se,referenceHidden:ue&&we!==`test`?V.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ce&&(0,u.jsx)(cs,{transition:`fade`,mounted:V.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:e=>(0,u.jsx)(ns,{withinPortal:w,children:(0,u.jsx)(Zo,{...le,...pe(`overlay`,{className:le?.className,style:[e,le?.style]})})})})]})}Ss.Target=gs,Ss.Dropdown=ms,Ss.displayName=`@mantine/core/Popover`,Ss.extend=e=>e;var Cs={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`},ws=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsxs)(Y,{component:`span`,className:G(Cs.barsLoader,e),...t,ref:n,children:[(0,u.jsx)(`span`,{className:Cs.bar}),(0,u.jsx)(`span`,{className:Cs.bar}),(0,u.jsx)(`span`,{className:Cs.bar})]}));ws.displayName=`@mantine/core/Bars`;var Ts=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsxs)(Y,{component:`span`,className:G(Cs.dotsLoader,e),...t,ref:n,children:[(0,u.jsx)(`span`,{className:Cs.dot}),(0,u.jsx)(`span`,{className:Cs.dot}),(0,u.jsx)(`span`,{className:Cs.dot})]}));Ts.displayName=`@mantine/core/Dots`;var Es=(0,l.forwardRef)(({className:e,...t},n)=>(0,u.jsx)(Y,{component:`span`,className:G(Cs.ovalLoader,e),...t,ref:n}));Es.displayName=`@mantine/core/Oval`;var Ds={bars:ws,oval:Es,dots:Ts},Os={loaders:Ds,type:`oval`},ks=W((e,{size:t,color:n})=>({root:{"--loader-size":O(t,`loader-size`),"--loader-color":n?nt(n,e):void 0}})),As=X((e,t)=>{let n=q(`Loader`,Os,e),{size:r,color:i,type:a,vars:o,className:s,style:c,classNames:l,styles:d,unstyled:f,loaders:p,variant:m,children:h,attributes:g,..._}=n,v=K({name:`Loader`,props:n,classes:Cs,className:s,style:c,classNames:l,styles:d,unstyled:f,attributes:g,vars:o,varsResolver:ks});return h?(0,u.jsx)(Y,{...v(`root`),ref:t,..._,children:h}):(0,u.jsx)(Y,{...v(`root`),ref:t,component:p[a],variant:m,size:r,..._})});As.defaultLoaders=Ds,As.classes=Cs,As.displayName=`@mantine/core/Loader`;var js={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},Ms={orientation:`horizontal`},Ns=W((e,{borderWidth:t})=>({group:{"--ai-border-width":v(t)}})),Ps=X((e,t)=>{let n=q(`ActionIconGroup`,Ms,e),{className:r,style:i,classNames:a,styles:o,unstyled:s,orientation:c,vars:l,borderWidth:d,variant:f,mod:p,attributes:m,...h}=q(`ActionIconGroup`,Ms,e);return(0,u.jsx)(Y,{...K({name:`ActionIconGroup`,props:n,classes:js,className:r,style:i,classNames:a,styles:o,unstyled:s,attributes:m,vars:l,varsResolver:Ns,rootSelector:`group`})(`group`),ref:t,variant:f,mod:[{"data-orientation":c},p],role:`group`,...h})});Ps.classes=js,Ps.displayName=`@mantine/core/ActionIconGroup`;var Fs=W((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":O(o,`section-height`),"--section-padding-x":O(o,`section-padding-x`),"--section-fz":j(o),"--section-radius":t===void 0?void 0:A(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Is=X((e,t)=>{let n=q(`ActionIconGroupSection`,null,e),{className:r,style:i,classNames:a,styles:o,unstyled:s,vars:c,variant:l,gradient:d,radius:f,autoContrast:p,attributes:m,...h}=n;return(0,u.jsx)(Y,{...K({name:`ActionIconGroupSection`,props:n,classes:js,className:r,style:i,classNames:a,styles:o,unstyled:s,attributes:m,vars:c,varsResolver:Fs,rootSelector:`groupSection`})(`groupSection`),ref:t,variant:l,...h})});Is.classes=js,Is.displayName=`@mantine/core/ActionIconGroupSection`;var Ls=W((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":O(t,`ai-size`),"--ai-radius":n===void 0?void 0:A(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),Rs=_n((e,t)=>{let n=q(`ActionIcon`,null,e),{className:r,unstyled:i,variant:a,classNames:o,styles:s,style:c,loading:l,loaderProps:d,size:f,color:p,radius:m,__staticSelector:h,gradient:g,vars:_,children:v,disabled:y,"data-disabled":b,autoContrast:x,mod:S,attributes:C,...w}=n,T=K({name:[`ActionIcon`,h],props:n,className:r,style:c,classes:js,classNames:o,styles:s,unstyled:i,attributes:C,vars:_,varsResolver:Ls});return(0,u.jsxs)(Io,{...T(`root`,{active:!y&&!l&&!b}),...w,unstyled:i,variant:a,size:f,disabled:y||l,ref:t,mod:[{loading:l,disabled:y||b},S],children:[typeof l==`boolean`&&(0,u.jsx)(cs,{mounted:l,transition:`slide-down`,duration:150,children:e=>(0,u.jsx)(Y,{component:`span`,...T(`loader`,{style:e}),"aria-hidden":!0,children:(0,u.jsx)(As,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...d})})}),(0,u.jsx)(Y,{component:`span`,mod:{loading:l},...T(`icon`),children:v})]})});Rs.classes=js,Rs.displayName=`@mantine/core/ActionIcon`,Rs.Group=Ps,Rs.GroupSection=Is;var zs=(0,l.forwardRef)(({size:e=`var(--cb-icon-size, 70%)`,style:t,...n},r)=>(0,u.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},ref:r,...n,children:(0,u.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`})}));zs.displayName=`@mantine/core/CloseIcon`;var Bs={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},Vs={variant:`subtle`},Hs=W((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":O(t,`cb-size`),"--cb-radius":n===void 0?void 0:A(n),"--cb-icon-size":v(r)}})),Us=_n((e,t)=>{let n=q(`CloseButton`,Vs,e),{iconSize:r,children:i,vars:a,radius:o,className:s,classNames:c,style:l,styles:d,unstyled:f,"data-disabled":p,disabled:m,variant:h,icon:g,mod:_,attributes:v,__staticSelector:y,...b}=n,x=K({name:y||`CloseButton`,props:n,className:s,style:l,classes:Bs,classNames:c,styles:d,unstyled:f,attributes:v,vars:a,varsResolver:Hs});return(0,u.jsxs)(Io,{ref:t,...b,unstyled:f,variant:h,disabled:m,mod:[{disabled:m||p},_],...x(`root`,{variant:h,active:!m&&!p}),children:[g||(0,u.jsx)(zs,{}),i]})});Us.classes=Bs,Us.displayName=`@mantine/core/CloseButton`;function Ws(e){return l.Children.toArray(e).filter(Boolean)}var Gs={root:`m_4081bf90`},Ks={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},qs=W((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":k(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),Q=X((e,t)=>{let n=q(`Group`,Ks,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,children:c,gap:l,align:d,justify:f,wrap:p,grow:m,preventGrowOverflow:h,vars:g,variant:_,__size:v,mod:y,attributes:b,...x}=n,S=Ws(c),C=S.length,w=k(l??`md`);return(0,u.jsx)(Y,{...K({name:`Group`,props:n,stylesCtx:{childWidth:`calc(${100/C}% - (${w} - ${w} / ${C}))`},className:i,style:a,classes:Gs,classNames:r,styles:o,unstyled:s,attributes:b,vars:g,varsResolver:qs})(`root`),ref:t,variant:_,mod:[{grow:m},y],size:v,...x,children:S})});Q.classes=Gs,Q.displayName=`@mantine/core/Group`;var[Js,Ys]=C({size:`sm`}),Xs={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`},Zs=X((e,t)=>{let n=q(`InputClearButton`,null,e),{size:r,variant:i,vars:a,classNames:o,styles:s,...c}=n,l=Ys(),{resolvedClassNames:d,resolvedStyles:f}=vt({classNames:o,styles:s,props:n});return(0,u.jsx)(Us,{variant:i||`transparent`,ref:t,size:r||l?.size||`sm`,classNames:d,styles:f,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...c.style},...c})});Zs.displayName=`@mantine/core/InputClearButton`;var Qs={xs:7,sm:8,md:10,lg:12,xl:15};function $s({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`}){let a=e&&t;return a&&(n||r)?(0,u.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:Qs[i]},children:[a,n||r]}):n===null?null:n||a||r}var[ec,tc]=C({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),nc=W((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${j(t)} - ${v(2)})`}})),rc=X((e,t)=>{let n=q(`InputDescription`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,size:l,__staticSelector:d,__inheritStyles:f=!0,attributes:p,variant:m,...h}=q(`InputDescription`,null,n),g=tc(),_=K({name:[`InputWrapper`,d],props:n,classes:Xs,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:p,rootSelector:`description`,vars:c,varsResolver:nc});return(0,u.jsx)(Y,{component:`p`,ref:t,variant:m,size:l,...(f&&g?.getStyles||_)(`description`,g?.getStyles?{className:i,style:a}:void 0),...h})});rc.classes=Xs,rc.displayName=`@mantine/core/InputDescription`;var ic=W((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${j(t)} - ${v(2)})`}})),ac=X((e,t)=>{let n=q(`InputError`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,size:l,attributes:d,__staticSelector:f,__inheritStyles:p=!0,variant:m,...h}=n,g=K({name:[`InputWrapper`,f],props:n,classes:Xs,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:d,rootSelector:`error`,vars:c,varsResolver:ic}),_=tc();return(0,u.jsx)(Y,{component:`p`,ref:t,variant:m,size:l,...(p&&_?.getStyles||g)(`error`,_?.getStyles?{className:i,style:a}:void 0),...h})});ac.classes=Xs,ac.displayName=`@mantine/core/InputError`;var oc={labelElement:`label`},sc=W((e,{size:t})=>({label:{"--input-label-size":j(t),"--input-asterisk-color":void 0}})),cc=X((e,t)=>{let n=q(`InputLabel`,oc,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,labelElement:l,size:d,required:f,htmlFor:p,onMouseDown:m,children:h,__staticSelector:g,variant:_,mod:v,attributes:y,...b}=q(`InputLabel`,oc,n),x=K({name:[`InputWrapper`,g],props:n,classes:Xs,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:y,rootSelector:`label`,vars:c,varsResolver:sc}),S=tc(),C=S?.getStyles||x;return(0,u.jsxs)(Y,{...C(`label`,S?.getStyles?{className:i,style:a}:void 0),component:l,variant:_,size:d,ref:t,htmlFor:l===`label`?p:void 0,mod:[{required:f},v],onMouseDown:e=>{m?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...b,children:[h,f&&(0,u.jsx)(`span`,{...C(`required`),"aria-hidden":!0,children:` *`})]})});cc.classes=Xs,cc.displayName=`@mantine/core/InputLabel`;var lc=X((e,t)=>{let n=q(`InputPlaceholder`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,__staticSelector:l,variant:d,error:f,mod:p,attributes:m,...h}=n;return(0,u.jsx)(Y,{...K({name:[`InputPlaceholder`,l],props:n,classes:Xs,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:m,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!f},p],component:`span`,variant:d,ref:t,...h})});lc.classes=Xs,lc.displayName=`@mantine/core/InputPlaceholder`;function uc(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var dc={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},fc=W((e,{size:t})=>({label:{"--input-label-size":j(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${j(t)} - ${v(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${j(t)} - ${v(2)})`}})),pc=X((e,t)=>{let n=q(`InputWrapper`,dc,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,size:d,variant:f,__staticSelector:p,inputContainer:m,inputWrapperOrder:h,label:g,error:_,description:v,labelProps:y,descriptionProps:b,errorProps:x,labelElement:S,children:C,withAsterisk:w,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=n,j=K({name:[`InputWrapper`,p],props:D||n,classes:Xs,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:k,vars:c,varsResolver:fc}),M={size:d,variant:f,__staticSelector:p},N=ve(T),P=typeof w==`boolean`?w:E,ee=x?.id||`${N}-error`,F=b?.id||`${N}-description`,te=N,ne=!!_&&typeof _!=`boolean`,I=!!v,re=`${ne?ee:``} ${I?F:``}`,L=re.trim().length>0?re.trim():void 0,ie=y?.id||`${N}-label`,R=g&&(0,u.jsx)(cc,{labelElement:S,id:ie,htmlFor:te,required:P,...M,...y,children:g},`label`),ae=I&&(0,u.jsx)(rc,{...b,...M,size:b?.size||M.size,id:b?.id||F,children:v},`description`),oe=(0,u.jsx)(l.Fragment,{children:m(C)},`input`),se=ne&&(0,l.createElement)(ac,{...x,...M,size:x?.size||M.size,key:`error`,id:x?.id||ee},_),ce=h.map(e=>{switch(e){case`label`:return R;case`input`:return oe;case`description`:return ae;case`error`:return se;default:return null}});return(0,u.jsx)(ec,{value:{getStyles:j,describedBy:L,inputId:te,labelId:ie,...uc(h,{hasDescription:I,hasError:ne})},children:(0,u.jsx)(Y,{ref:t,variant:f,size:d,mod:[{error:!!_},O],...j(`root`),...A,children:ce})})});pc.classes=Xs,pc.displayName=`@mantine/core/InputWrapper`;var mc={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,size:`sm`},hc=W((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":O(t.size,`input-height`),"--input-fz":j(t.size),"--input-radius":t.radius===void 0?void 0:A(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:v(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:v(t.rightSectionWidth),"--input-padding-y":t.multiline?O(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),gc=_n((e,t)=>{let n=q(`Input`,mc,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,required:c,__staticSelector:l,__stylesApiProps:d,size:f,wrapperProps:p,error:m,disabled:h,leftSection:g,leftSectionProps:_,leftSectionWidth:v,rightSection:y,rightSectionProps:b,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:w,vars:T,pointer:E,multiline:D,radius:O,id:k,withAria:A,withErrorStyles:j,mod:M,inputSize:N,attributes:P,__clearSection:ee,__clearable:F,__defaultRightSection:te,...ne}=n,{styleProps:I,rest:re}=Rt(ne),L=tc(),ie={offsetBottom:L?.offsetBottom,offsetTop:L?.offsetTop},R=K({name:[`Input`,l],props:d||n,classes:Xs,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:P,stylesCtx:ie,rootSelector:`wrapper`,vars:T,varsResolver:hc}),ae=A?{required:c,disabled:h,"aria-invalid":!!m,"aria-describedby":L?.describedBy,id:L?.inputId||k}:{},oe=$s({__clearable:F,__clearSection:ee,rightSection:y,__defaultRightSection:te,size:f});return(0,u.jsx)(Js,{value:{size:f||`sm`},children:(0,u.jsxs)(Y,{...R(`wrapper`),...I,...p,mod:[{error:!!m&&j,pointer:E,disabled:h,multiline:D,"data-with-right-section":!!oe,"data-with-left-section":!!g},M],variant:w,size:f,children:[g&&(0,u.jsx)(`div`,{..._,"data-position":`left`,...R(`section`,{className:_?.className,style:_?.style}),children:g}),(0,u.jsx)(Y,{component:`input`,...re,...ae,ref:t,required:c,mod:{disabled:h,error:!!m&&j},variant:w,__size:N,...R(`input`)}),oe&&(0,u.jsx)(`div`,{...b,"data-position":`right`,...R(`section`,{className:b?.className,style:b?.style}),children:oe})]})})});gc.classes=Xs,gc.Wrapper=pc,gc.Label=cc,gc.Error=ac,gc.Description=rc,gc.Placeholder=lc,gc.ClearButton=Zs,gc.displayName=`@mantine/core/Input`;function _c(e,t,n){let r=q(e,t,n),{label:i,description:a,error:o,required:s,classNames:c,styles:l,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:m,labelProps:h,descriptionProps:g,wrapperProps:_,id:v,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:w,vars:T,mod:E,attributes:D,...O}=r,{styleProps:k,rest:A}=Rt(O),j={label:i,description:a,error:o,required:s,classNames:c,className:u,__staticSelector:f,__stylesApiProps:p||r,errorProps:m,labelProps:h,descriptionProps:g,unstyled:d,styles:l,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:w,id:v,mod:E,attributes:D,..._};return{...A,classNames:c,styles:l,unstyled:d,wrapperProps:{...j,...k},inputProps:{required:s,classNames:c,styles:l,unstyled:d,size:y,__staticSelector:f,__stylesApiProps:p||r,error:o,variant:w,id:v,attributes:D}}}var vc={__staticSelector:`InputBase`,withAria:!0,size:`sm`},yc=_n((e,t)=>{let{inputProps:n,wrapperProps:r,...i}=_c(`InputBase`,vc,e);return(0,u.jsx)(gc.Wrapper,{...r,children:(0,u.jsx)(gc,{...n,...i,ref:t})})});yc.classes={...gc.classes,...gc.Wrapper.classes},yc.displayName=`@mantine/core/InputBase`;var bc={root:`m_b6d8b162`};function xc(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Sc={inherit:!1},Cc=W((e,{variant:t,lineClamp:n,gradient:r,size:i,color:a})=>({root:{"--text-fz":j(i),"--text-lh":M(i),"--text-gradient":t===`gradient`?rt(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-color":a?nt(a,e):void 0}})),wc=_n((e,t)=>{let n=q(`Text`,Sc,e),{lineClamp:r,truncate:i,inline:a,inherit:o,gradient:s,span:c,__staticSelector:l,vars:d,className:f,style:p,classNames:m,styles:h,unstyled:g,variant:_,mod:v,size:y,attributes:b,...x}=n;return(0,u.jsx)(Y,{...K({name:[`Text`,l],props:n,classes:bc,className:f,style:p,classNames:m,styles:h,unstyled:g,attributes:b,vars:d,varsResolver:Cc})(`root`,{focusable:!0}),ref:t,component:c?`span`:`p`,variant:_,mod:[{"data-truncate":xc(i),"data-line-clamp":typeof r==`number`,"data-inline":a,"data-inherit":o},v],size:y,...x})});wc.classes=bc,wc.displayName=`@mantine/core/Text`;function Tc(e){return typeof e==`string`?{value:e,label:e}:`value`in e&&!(`label`in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e==`number`?{value:e.toString(),label:e.toString()}:`group`in e?{group:e.group,items:e.items.map(e=>Tc(e))}:e}function Ec(e){return e?e.map(e=>Tc(e)):[]}function Dc(e){return e.reduce((e,t)=>`group`in t?{...e,...Dc(t.items)}:(e[t.value]=t,e),{})}var Oc={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`},kc={error:null},Ac=W((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":O(t,`combobox-chevron-size`),"--combobox-chevron-color":n?nt(n,e):void 0}})),jc=X((e,t)=>{let n=q(`ComboboxChevron`,kc,e),{size:r,error:i,style:a,className:o,classNames:s,styles:c,unstyled:l,vars:d,mod:f,...p}=n,m=K({name:`ComboboxChevron`,classes:Oc,props:n,style:a,className:o,classNames:s,styles:c,unstyled:l,vars:d,varsResolver:Ac,rootSelector:`chevron`});return(0,u.jsx)(Y,{component:`svg`,...p,...m(`chevron`),size:r,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:i},f],ref:t,children:(0,u.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`})})});jc.classes=Oc,jc.displayName=`@mantine/core/ComboboxChevron`;var[Mc,Nc]=S(`Combobox component was not found in tree`),Pc=(0,l.forwardRef)(({size:e,onMouseDown:t,onClick:n,onClear:r,...i},a)=>(0,u.jsx)(gc.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{r(),n?.(e)}}));Pc.displayName=`@mantine/core/ComboboxClearButton`;var Fc=X((e,t)=>{let{classNames:n,styles:r,className:i,style:a,hidden:o,...s}=q(`ComboboxDropdown`,null,e),c=Nc();return(0,u.jsx)(Ss.Dropdown,{...s,ref:t,role:`presentation`,"data-hidden":o||void 0,...c.getStyles(`dropdown`,{className:i,style:a,classNames:n,styles:r})})});Fc.classes=Oc,Fc.displayName=`@mantine/core/ComboboxDropdown`;var Ic={refProp:`ref`},Lc=X((e,t)=>{let{children:n,refProp:r}=q(`ComboboxDropdownTarget`,Ic,e);if(Nc(),!x(n))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,u.jsx)(Ss.Target,{ref:t,refProp:r,children:n})});Lc.displayName=`@mantine/core/ComboboxDropdownTarget`;var Rc=X((e,t)=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=q(`ComboboxEmpty`,null,e);return(0,u.jsx)(Y,{ref:t,...Nc().getStyles(`empty`,{className:r,classNames:n,styles:a,style:i}),...s})});Rc.classes=Oc,Rc.displayName=`@mantine/core/ComboboxEmpty`;function zc({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:a}){let o=Nc(),[s,c]=(0,l.useState)(null),u=n=>{if(e?.(n),!o.readOnly&&t){if(n.nativeEvent.isComposing)return;if(n.nativeEvent.code===`ArrowDown`&&(n.preventDefault(),o.store.dropdownOpened?c(o.store.selectNextOption()):(o.store.openDropdown(`keyboard`),c(o.store.selectActiveOption()),o.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),n.nativeEvent.code===`ArrowUp`&&(n.preventDefault(),o.store.dropdownOpened?c(o.store.selectPreviousOption()):(o.store.openDropdown(`keyboard`),c(o.store.selectActiveOption()),o.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),n.nativeEvent.code===`Enter`||n.nativeEvent.code===`NumpadEnter`){if(n.nativeEvent.keyCode===229)return;let e=o.store.getSelectedOptionIndex();o.store.dropdownOpened&&e!==-1?(n.preventDefault(),o.store.clickSelectedOption()):i===`button`&&(n.preventDefault(),o.store.openDropdown(`keyboard`))}n.key===`Escape`&&o.store.closeDropdown(`keyboard`),n.nativeEvent.code===`Space`&&i===`button`&&(n.preventDefault(),o.store.toggleDropdown(`keyboard`))}};return{...n?{"aria-haspopup":`listbox`,"aria-expanded":r?!!(o.store.listId&&o.store.dropdownOpened):void 0,"aria-controls":o.store.dropdownOpened&&o.store.listId?o.store.listId:void 0,"aria-activedescendant":o.store.dropdownOpened&&s||void 0,autoComplete:a,"data-expanded":o.store.dropdownOpened||void 0,"data-mantine-stop-propagation":o.store.dropdownOpened||void 0}:{},onKeyDown:u}}var Bc={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Vc=X((e,t)=>{let{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:a,withExpandedAttribute:o,targetType:s,autoComplete:c,...u}=q(`ComboboxEventsTarget`,Bc,e),d=ke(n);if(!d)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let f=Nc();return(0,l.cloneElement)(d,{...zc({targetType:s,withAriaAttributes:a,withKeyboardNavigation:i,withExpandedAttribute:o,onKeyDown:d.props.onKeyDown,autoComplete:c}),...u,[r]:B(t,f.store.targetRef,U(d))})});Vc.displayName=`@mantine/core/ComboboxEventsTarget`;var Hc=X((e,t)=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=q(`ComboboxFooter`,null,e);return(0,u.jsx)(Y,{ref:t,...Nc().getStyles(`footer`,{className:r,classNames:n,style:i,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})});Hc.classes=Oc,Hc.displayName=`@mantine/core/ComboboxFooter`;var Uc=X((e,t)=>{let{classNames:n,className:r,style:i,styles:a,vars:o,children:s,label:c,id:l,...d}=q(`ComboboxGroup`,null,e),f=Nc(),p=ve(l);return(0,u.jsxs)(Y,{ref:t,role:`group`,"aria-labelledby":c?p:void 0,...f.getStyles(`group`,{className:r,classNames:n,style:i,styles:a}),...d,children:[c&&(0,u.jsx)(`div`,{id:p,...f.getStyles(`groupLabel`,{classNames:n,styles:a}),children:c}),s]})});Uc.classes=Oc,Uc.displayName=`@mantine/core/ComboboxGroup`;var Wc=X((e,t)=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=q(`ComboboxHeader`,null,e);return(0,u.jsx)(Y,{ref:t,...Nc().getStyles(`header`,{className:r,classNames:n,style:i,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})});Wc.classes=Oc,Wc.displayName=`@mantine/core/ComboboxHeader`;function Gc({value:e,valuesDivider:t=`,`,...n}){return(0,u.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e||``,...n})}Gc.displayName=`@mantine/core/ComboboxHiddenInput`;var Kc=X((e,t)=>{let n=q(`ComboboxOption`,null,e),{classNames:r,className:i,style:a,styles:o,vars:s,onClick:c,id:d,active:f,onMouseDown:p,onMouseOver:m,disabled:h,selected:g,mod:_,...v}=n,y=Nc(),b=(0,l.useId)(),x=d||b;return(0,u.jsx)(Y,{...y.getStyles(`option`,{className:i,classNames:r,styles:o,style:a}),...v,ref:t,id:x,mod:[`combobox-option`,{"combobox-active":f,"combobox-disabled":h,"combobox-selected":g},_],role:`option`,onClick:e=>{h?e.preventDefault():(y.onOptionSubmit?.(n.value,n),c?.(e))},onMouseDown:e=>{e.preventDefault(),p?.(e)},onMouseOver:e=>{y.resetSelectionOnOptionHover&&y.store.resetSelectedOption(),m?.(e)}})});Kc.classes=Oc,Kc.displayName=`@mantine/core/ComboboxOption`;var qc=X((e,t)=>{let{classNames:n,className:r,style:i,styles:a,id:o,onMouseDown:s,labelledBy:c,...d}=q(`ComboboxOptions`,null,e),f=Nc(),p=ve(o);return(0,l.useEffect)(()=>{f.store.setListId(p)},[p]),(0,u.jsx)(Y,{ref:t,...f.getStyles(`options`,{className:r,style:i,classNames:n,styles:a}),...d,id:p,role:`listbox`,"aria-labelledby":c,onMouseDown:e=>{e.preventDefault(),s?.(e)}})});qc.classes=Oc,qc.displayName=`@mantine/core/ComboboxOptions`;var Jc={withAriaAttributes:!0,withKeyboardNavigation:!0},Yc=X((e,t)=>{let{classNames:n,styles:r,unstyled:i,vars:a,withAriaAttributes:o,onKeyDown:s,withKeyboardNavigation:c,size:l,...d}=q(`ComboboxSearch`,Jc,e),f=Nc(),p=f.getStyles(`search`),m=zc({targetType:`input`,withAriaAttributes:o,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:s,autoComplete:`off`});return(0,u.jsx)(gc,{ref:B(t,f.store.searchRef),classNames:[{input:p.className},n],styles:[{input:p.style},r],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});Yc.classes=Oc,Yc.displayName=`@mantine/core/ComboboxSearch`;var Xc={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Zc=X((e,t)=>{let{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:a,withExpandedAttribute:o,targetType:s,autoComplete:c,...d}=q(`ComboboxTarget`,Xc,e),f=ke(n);if(!f)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let p=Nc(),m=(0,l.cloneElement)(f,{...zc({targetType:s,withAriaAttributes:a,withKeyboardNavigation:i,withExpandedAttribute:o,onKeyDown:f.props.onKeyDown,autoComplete:c}),...d});return(0,u.jsx)(Ss.Target,{ref:B(t,p.store.targetRef),children:m})});Zc.displayName=`@mantine/core/ComboboxTarget`;function Qc(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function $c(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function el(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function tl({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=Ce({value:t,defaultValue:e,finalValue:!1,onChange:n}),u=(0,l.useRef)(null),d=(0,l.useRef)(-1),f=(0,l.useRef)(null),p=(0,l.useRef)(null),m=(0,l.useRef)(-1),h=(0,l.useRef)(-1),g=(0,l.useRef)(-1),_=(0,l.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),v=(0,l.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),y=(0,l.useCallback)((e=`unknown`)=>{s?v(e):_(e)},[v,_,s]),b=(0,l.useCallback)(()=>{let e=Oe(p.current),t=Ee(`#${u.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),x=(0,l.useCallback)(e=>{let t=Oe(p.current),n=Ee(`#${u.current}`,t),r=n?De(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return d.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(b(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,b]),S=(0,l.useCallback)(()=>{let e=Oe(p.current),t=Ee(`#${u.current} [data-combobox-active]`,e);return x(t?De(`#${u.current} [data-combobox-option]`,e).findIndex(e=>e===t):0)},[x]),C=(0,l.useCallback)(()=>{let e=Oe(p.current),t=De(`#${u.current} [data-combobox-option]`,e);return x($c(d.current,t,a))},[x,a]),w=(0,l.useCallback)(()=>{let e=Oe(p.current),t=De(`#${u.current} [data-combobox-option]`,e);return x(Qc(d.current,t,a))},[x,a]),T=(0,l.useCallback)(()=>{let e=Oe(p.current);return x(el(De(`#${u.current} [data-combobox-option]`,e)))},[x]),E=(0,l.useCallback)((e=`selected`,t)=>{g.current=window.setTimeout(()=>{let n=Oe(p.current),r=De(`#${u.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));d.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),D=(0,l.useCallback)(()=>{d.current=-1,b()},[b]),O=(0,l.useCallback)(()=>{let e=Oe(p.current);(De(`#${u.current} [data-combobox-option]`,e)?.[d.current])?.click()},[]),k=(0,l.useCallback)(e=>{u.current=e},[]),A=(0,l.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),j=(0,l.useCallback)(()=>{h.current=window.setTimeout(()=>p.current?.focus(),0)},[]),M=(0,l.useCallback)(()=>d.current,[]);return(0,l.useEffect)(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(h.current),window.clearTimeout(g.current)},[]),{dropdownOpened:s,openDropdown:_,closeDropdown:v,toggleDropdown:y,selectedOptionIndex:d.current,getSelectedOptionIndex:M,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:w,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:u.current,setListId:k,clickSelectedOption:O,searchRef:f,focusSearchInput:A,targetRef:p,focusTarget:j}}var nl={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},rl=W((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":j(t),"--combobox-option-padding":O(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:v(n),"--combobox-option-fz":j(t),"--combobox-option-padding":O(t,`combobox-option-padding`)}}));function $(e){let t=q(`Combobox`,nl,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:d,dropdownPadding:f,resetSelectionOnOptionHover:p,__staticSelector:m,readOnly:h,attributes:g,..._}=t,v=tl(),y=o||v,b=K({name:m||`Combobox`,classes:Oc,props:t,classNames:n,styles:r,unstyled:i,attributes:g,vars:s,varsResolver:rl}),x=()=>{l?.(),y.closeDropdown()};return(0,u.jsx)(Mc,{value:{getStyles:b,store:y,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:p,readOnly:h},children:(0,u.jsx)(Ss,{opened:y.dropdownOpened,preventPositionChangeWhenVisible:!1,..._,onChange:e=>!e&&x(),withRoles:!1,unstyled:i,children:a})})}$.extend=e=>e,$.classes=Oc,$.displayName=`@mantine/core/Combobox`,$.Target=Zc,$.Dropdown=Fc,$.Options=qc,$.Option=Kc,$.Search=Yc,$.Empty=Rc,$.Chevron=jc,$.Footer=Hc,$.Header=Wc,$.EventsTarget=Vc,$.DropdownTarget=Lc,$.Group=Uc,$.ClearButton=Pc,$.HiddenInput=Gc;function il({size:e,style:t,...n}){return(0,u.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e===void 0?t:{width:v(e),height:v(e),...t},"aria-hidden":!0,...n,children:(0,u.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 al(e){return`group`in e}function ol({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;al(o)&&i.push({group:o.group,items:ol({options:o.items,search:t,limit:n-i.length})}),al(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function sl(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function cl(e,t=new Set){if(Array.isArray(e))for(let n of e)if(al(n))cl(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(typeof n.value!=`string`)throw Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function ll(e,t){return Array.isArray(e)?e.includes(t):e===t}function ul({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!al(e)){let s=ll(r,e.value),c=t&&(s?(0,u.jsx)(il,{className:Oc.optionsDropdownCheckIcon}):n?(0,u.jsx)(`div`,{className:Oc.optionsDropdownCheckPlaceholder}):null),l=(0,u.jsxs)(u.Fragment,{children:[i===`left`&&c,(0,u.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,u.jsx)($.Option,{value:e.value,disabled:e.disabled,className:G({[Oc.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,u.jsx)(ul,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},e.value));return(0,u.jsx)($.Group,{label:e.group,children:s})}function dl({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,withScrollArea:s=!0,filterOptions:c=!0,withCheckIcon:l=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){cl(e);let b=typeof i==`string`?(r||ol)({options:e,search:c?i:``,limit:a??1/0}):e,x=sl(b),S=b.map(e=>(0,u.jsx)(ul,{data:e,withCheckIcon:l,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},al(e)?e.group:e.value));return(0,u.jsx)($.Dropdown,{hidden:t||n&&x,"data-composed":!0,children:(0,u.jsxs)($.Options,{labelledBy:g,"aria-label":y,children:[s?(0,u.jsx)(Mo.Autosize,{mah:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:S}):S,x&&m&&(0,u.jsx)($.Empty,{children:m})]})})}var fl={group:`m_11def92b`,root:`m_f85678b6`,image:`m_11f8ac07`,placeholder:`m_104cd71f`},pl=(0,l.createContext)(null),ml=pl.Provider;function hl(){return{withinGroup:!!(0,l.useContext)(pl)}}var gl=W((e,{spacing:t})=>({group:{"--ag-spacing":k(t)}})),_l=X((e,t)=>{let n=q(`AvatarGroup`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,spacing:l,attributes:d,...f}=n;return(0,u.jsx)(ml,{value:!0,children:(0,u.jsx)(Y,{ref:t,...K({name:`AvatarGroup`,classes:fl,props:n,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:d,vars:c,varsResolver:gl,rootSelector:`group`})(`group`),...f})})});_l.classes=fl,_l.displayName=`@mantine/core/AvatarGroup`;function vl(e){return(0,u.jsx)(`svg`,{...e,"data-avatar-placeholder-icon":!0,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,u.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 yl(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}var bl=[`blue`,`cyan`,`grape`,`green`,`indigo`,`lime`,`orange`,`pink`,`red`,`teal`,`violet`];function xl(e,t=bl){let n=yl(e);return t[Math.abs(n)%t.length]}function Sl(e,t=2){let n=e.split(` `);return n.length===1?e.slice(0,t).toUpperCase():n.map(e=>e[0]).slice(0,t).join(``).toUpperCase()}var Cl=W((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o,name:s,allowedInitialsColors:c})=>{let l=a===`initials`&&typeof s==`string`?xl(s,c):a,u=e.variantColorResolver({color:l||`gray`,theme:e,gradient:i,variant:r||`light`,autoContrast:o});return{root:{"--avatar-size":O(t,`avatar-size`),"--avatar-radius":n===void 0?void 0:A(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}}),wl=_n((e,t)=>{let n=q(`Avatar`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,src:d,alt:f,radius:p,color:m,gradient:h,imageProps:g,children:_,autoContrast:v,mod:y,name:b,allowedInitialsColors:x,attributes:S,...C}=n,w=hl(),[T,E]=(0,l.useState)(!d),D=K({name:`Avatar`,props:n,classes:fl,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:S,vars:c,varsResolver:Cl});return(0,l.useEffect)(()=>E(!d),[d]),(0,u.jsx)(Y,{...D(`root`),mod:[{"within-group":w.withinGroup},y],ref:t,...C,children:T||!d?(0,u.jsx)(`span`,{...D(`placeholder`),title:f,children:_||typeof b==`string`&&Sl(b)||(0,u.jsx)(vl,{})}):(0,u.jsx)(`img`,{...g,...D(`image`),src:d,alt:f,onError:e=>{E(!0),g?.onError?.(e)}})})});wl.classes=fl,wl.displayName=`@mantine/core/Avatar`,wl.Group=_l;var Tl={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},El=W((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":O(a,`badge-height`),"--badge-padding-x":O(a,`badge-padding-x`),"--badge-fz":O(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:A(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?nt(n,e):void 0}}}),Dl=_n((e,t)=>{let n=q(`Badge`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,radius:l,color:d,gradient:f,leftSection:p,rightSection:m,children:h,variant:g,fullWidth:_,autoContrast:v,circle:y,mod:b,attributes:x,...S}=n,C=K({name:`Badge`,props:n,classes:Tl,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:x,vars:c,varsResolver:El});return(0,u.jsxs)(Y,{variant:g,mod:[{block:_,circle:y,"with-right-section":!!m,"with-left-section":!!p},b],...C(`root`,{variant:g}),ref:t,...S,children:[p&&(0,u.jsx)(`span`,{...C(`section`),"data-position":`left`,children:p}),(0,u.jsx)(`span`,{...C(`label`),children:h}),m&&(0,u.jsx)(`span`,{...C(`section`),"data-position":`right`,children:m})]})});Dl.classes=Tl,Dl.displayName=`@mantine/core/Badge`;var Ol={root:`m_de3d2490`,colorOverlay:`m_862f3d1b`,shadowOverlay:`m_98ae7f22`,alphaOverlay:`m_95709ac0`,childrenOverlay:`m_93e74e3`},kl={withShadow:!0},Al=W((e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:A(t),"--cs-size":v(n)}})),jl=_n((e,t)=>{let n=q(`ColorSwatch`,kl,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,color:l,size:d,radius:f,withShadow:p,children:m,variant:h,attributes:g,..._}=q(`ColorSwatch`,kl,n),v=K({name:`ColorSwatch`,props:n,classes:Ol,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:g,vars:c,varsResolver:Al});return(0,u.jsxs)(Y,{ref:t,variant:h,size:d,...v(`root`,{focusable:!0}),..._,children:[(0,u.jsx)(`span`,{...v(`alphaOverlay`)}),p&&(0,u.jsx)(`span`,{...v(`shadowOverlay`)}),(0,u.jsx)(`span`,{...v(`colorOverlay`,{style:{backgroundColor:l}})}),(0,u.jsx)(`span`,{...v(`childrenOverlay`),children:m})]})});jl.classes=Ol,jl.displayName=`@mantine/core/ColorSwatch`;var[Ml,Nl]=C(null),Pl={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`},Fl=(0,l.forwardRef)(({position:e,...t},n)=>(0,u.jsx)(Y,{ref:n,__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...t}));Fl.displayName=`@mantine/core/ColorPickerThumb`;var Il=X((e,t)=>{let n=q(`ColorSlider`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,onChange:d,onChangeEnd:f,maxValue:p,round:m,size:h=`md`,focusable:g=!0,value:_,overlays:y,thumbColor:b=`transparent`,onScrubStart:x,onScrubEnd:S,__staticSelector:C=`ColorPicker`,attributes:w,...T}=n,E=K({name:C,classes:Pl,props:n,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:w}),D=Nl()?.getStyles||E,O=gt(),[k,A]=(0,l.useState)({y:0,x:_/p}),j=(0,l.useRef)(k),M=e=>m?Math.round(e*p):e*p,{ref:N}=Se(({x:e,y:t})=>{j.current={x:e,y:t},d?.(M(e))},{onScrubEnd:()=>{let{x:e}=j.current;f?.(M(e)),S?.()},onScrubStart:x});ae(()=>{A({y:0,x:_/p})},[_]);let P=(e,t)=>{e.preventDefault();let n=xe(t);d?.(M(n.x)),f?.(M(n.x))},ee=e=>{switch(e.key){case`ArrowRight`:P(e,{x:k.x+.05,y:k.y});break;case`ArrowLeft`:P(e,{x:k.x-.05,y:k.y});break}},F=y.map((e,t)=>(0,l.createElement)(`div`,{...D(`sliderOverlay`),style:e,key:t}));return(0,u.jsxs)(Y,{...T,ref:B(N,t),...D(`slider`),role:`slider`,"aria-valuenow":_,"aria-valuemax":p,"aria-valuemin":0,tabIndex:g?0:-1,onKeyDown:ee,"data-focus-ring":O.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${h})`},children:[F,(0,u.jsx)(Fl,{position:k,...D(`thumb`,{style:{top:v(1),background:b}})})]})});Il.displayName=`@mantine/core/ColorSlider`;function Ll(e,t=0,n=10**t){return Math.round(n*e)/n}function Rl({h:e,s:t,l:n,a:r}){let i=t*((n<50?n:100-n)/100);return{h:e,s:i>0?2*i/(n+i)*100:0,v:n+i,a:r}}var zl={grad:360/400,turn:360,rad:360/(Math.PI*2)};function Bl(e,t=`deg`){return Number(e)*(zl[t]||1)}var Vl=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function Hl(e){let t=Vl.exec(e);return t?Rl({h:Bl(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}function Ul({r:e,g:t,b:n,a:r}){let i=Math.max(e,t,n),a=i-Math.min(e,t,n),o=a?i===e?(t-n)/a:i===t?2+(n-e)/a:4+(e-t)/a:0;return{h:Ll(60*(o<0?o+6:o),3),s:Ll(i?a/i*100:0,3),v:Ll(i/255*100,3),a:r}}function Wl(e){let t=e[0]===`#`?e.slice(1):e;return t.length===3?Ul({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):Ul({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function Gl(e){let t=e[0]===`#`?e.slice(1):e,n=e=>Ll(parseInt(e,16)/255,3);if(t.length===4){let e=t.slice(0,3),r=n(t[3]+t[3]);return{...Wl(e),a:r}}let r=t.slice(0,6),i=n(t.slice(6,8));return{...Wl(r),a:i}}var Kl=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function ql(e){let t=Kl.exec(e);return t?Ul({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}var Jl={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},Yl={hex:Wl,hexa:Gl,rgb:ql,rgba:ql,hsl:Hl,hsla:Hl};function Xl(e){for(let[,t]of Object.entries(Jl))if(t.test(e))return!0;return!1}function Zl(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};let t=e.trim();for(let[e,n]of Object.entries(Jl))if(n.test(t))return Yl[e](t);return{h:0,s:0,v:0,a:1}}var Ql=(0,l.forwardRef)((e,t)=>{let{value:n,onChange:r,onChangeEnd:i,color:a,...o}=q(`AlphaSlider`,null,e);return(0,u.jsx)(Il,{...o,ref:t,value:n,onChange:e=>r?.(Ll(e,2)),onChangeEnd:e=>i?.(Ll(e,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:`${v(8)} ${v(8)}`,backgroundPosition:`0 0, 0 ${v(4)}, ${v(4)} ${v(-4)}, ${v(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${a})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${v(1)} inset, rgb(0, 0, 0, .15) 0 0 ${v(4)} inset`}]})});Ql.displayName=`@mantine/core/AlphaSlider`;function $l({h:e,s:t,v:n,a:r}){let i=e/360*6,a=t/100,o=n/100,s=Math.floor(i),c=o*(1-a),l=o*(1-(i-s)*a),u=o*(1-(1-i+s)*a),d=s%6;return{r:Ll([o,l,c,c,u,o][d]*255),g:Ll([u,o,o,l,c,c][d]*255),b:Ll([c,c,u,o,o,l][d]*255),a:Ll(r,2)}}function eu(e,t){let{r:n,g:r,b:i,a}=$l(e);return t?`rgba(${n}, ${r}, ${i}, ${Ll(a,2)})`:`rgb(${n}, ${r}, ${i})`}function tu({h:e,s:t,v:n,a:r},i){let a=(200-t)*n/100,o={h:Math.round(e),s:Math.round(a>0&&a<200?t*n/100/(a<=100?a:200-a)*100:0),l:Math.round(a/2)};return i?`hsla(${o.h}, ${o.s}%, ${o.l}%, ${Ll(r,2)})`:`hsl(${o.h}, ${o.s}%, ${o.l}%)`}function nu(e){let t=e.toString(16);return t.length<2?`0${t}`:t}function ru(e){let{r:t,g:n,b:r}=$l(e);return`#${nu(t)}${nu(n)}${nu(r)}`}function iu(e){let t=Math.round(e.a*255);return`${ru(e)}${nu(t)}`}var au={hex:ru,hexa:e=>iu(e),rgb:e=>eu(e,!1),rgba:e=>eu(e,!0),hsl:e=>tu(e,!1),hsla:e=>tu(e,!0)};function ou(e,t){return t?e in au?au[e](t):au.hex(t):`#000000`}var su=(0,l.forwardRef)((e,t)=>{let{value:n,onChange:r,onChangeEnd:i,color:a,...o}=q(`HueSlider`,{},e);return(0,u.jsx)(Il,{...o,ref:t,value:n,onChange:r,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 ${v(1)} inset, rgb(0, 0, 0, .15) 0 0 ${v(4)} inset`}]})});su.displayName=`@mantine/core/HueSlider`;function cu({className:e,onChange:t,onChangeEnd:n,value:r,saturationLabel:i,focusable:a=!0,size:o,color:s,onScrubStart:c,onScrubEnd:d,...f}){let{getStyles:p}=Nl(),[m,h]=(0,l.useState)({x:r.s/100,y:1-r.v/100}),g=(0,l.useRef)(m),{ref:_}=Se(({x:e,y:n})=>{g.current={x:e,y:n},t({s:Math.round(e*100),v:Math.round((1-n)*100)})},{onScrubEnd:()=>{let{x:e,y:t}=g.current;n({s:Math.round(e*100),v:Math.round((1-t)*100)}),d?.()},onScrubStart:c});(0,l.useEffect)(()=>{h({x:r.s/100,y:1-r.v/100})},[r.s,r.v]);let v=(e,r)=>{e.preventDefault();let i=xe(r);t({s:Math.round(i.x*100),v:Math.round((1-i.y)*100)}),n({s:Math.round(i.x*100),v:Math.round((1-i.y)*100)})},y=e=>{switch(e.key){case`ArrowUp`:v(e,{y:m.y-.05,x:m.x});break;case`ArrowDown`:v(e,{y:m.y+.05,x:m.x});break;case`ArrowRight`:v(e,{x:m.x+.05,y:m.y});break;case`ArrowLeft`:v(e,{x:m.x-.05,y:m.y});break}};return(0,u.jsxs)(Y,{...p(`saturation`),ref:_,...f,role:`slider`,"aria-label":i,"aria-valuenow":m.x,"aria-valuetext":ou(`rgba`,r),tabIndex:a?0:-1,onKeyDown:y,children:[(0,u.jsx)(`div`,{...p(`saturationOverlay`,{style:{backgroundColor:`hsl(${r.h}, 100%, 50%)`}})}),(0,u.jsx)(`div`,{...p(`saturationOverlay`,{style:{backgroundImage:`linear-gradient(90deg, #fff, transparent)`}})}),(0,u.jsx)(`div`,{...p(`saturationOverlay`,{style:{backgroundImage:`linear-gradient(0deg, #000, transparent)`}})}),(0,u.jsx)(Fl,{position:m,...p(`thumb`,{style:{backgroundColor:s}})})]})}cu.displayName=`@mantine/core/Saturation`;var lu=(0,l.forwardRef)(({className:e,datatype:t,setValue:n,onChangeEnd:r,size:i,focusable:a,data:o,swatchesPerRow:s,value:c,...d},f)=>{let p=Nl(),m=o.map((e,t)=>(0,l.createElement)(jl,{...p.getStyles(`swatch`),unstyled:p.unstyled,component:`button`,type:`button`,color:e,key:t,radius:`sm`,onClick:()=>{n(e),r?.(e)},"aria-label":e,tabIndex:a?0:-1,"data-swatch":!0},c===e&&(0,u.jsx)(il,{size:`35%`,color:$e(e)<.5?`white`:`black`})));return(0,u.jsx)(Y,{...p.getStyles(`swatches`),ref:f,...d,children:m})});lu.displayName=`@mantine/core/Swatches`;var uu={swatchesPerRow:7,withPicker:!0,focusable:!0,size:`md`,__staticSelector:`ColorPicker`},du=W((e,{size:t,swatchesPerRow:n})=>({wrapper:{"--cp-preview-size":O(t,`cp-preview-size`),"--cp-width":O(t,`cp-width`),"--cp-body-spacing":k(t),"--cp-swatch-size":`${100/n}%`,"--cp-thumb-size":O(t,`cp-thumb-size`),"--cp-saturation-height":O(t,`cp-saturation-height`)}})),fu=X((e,t)=>{let n=q(`ColorPicker`,uu,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,format:d=`hex`,value:f,defaultValue:p,onChange:m,onChangeEnd:h,withPicker:g,size:_,saturationLabel:v,hueLabel:y,alphaLabel:b,focusable:x,swatches:S,swatchesPerRow:C,fullWidth:w,onColorSwatchClick:T,__staticSelector:E,mod:D,attributes:O,...k}=n,A=K({name:E,props:n,classes:Pl,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:O,rootSelector:`wrapper`,vars:c,varsResolver:du}),j=(0,l.useRef)(d||`hex`),M=(0,l.useRef)(``),N=(0,l.useRef)(-1),P=(0,l.useRef)(!1),ee=d===`hexa`||d===`rgba`||d===`hsla`,[F,te,ne]=Ce({value:f,defaultValue:p,finalValue:`#FFFFFF`,onChange:m}),[I,re]=(0,l.useState)(Zl(F)),L=()=>{window.clearTimeout(N.current),P.current=!0},ie=()=>{window.clearTimeout(N.current),N.current=window.setTimeout(()=>{P.current=!1},200)},R=e=>{re(t=>{let n={...t,...e};return M.current=ou(j.current,n),n}),te(M.current)};return ae(()=>{typeof f==`string`&&Xl(f)&&!P.current&&re(Zl(f))},[f]),ae(()=>{j.current=d||`hex`,te(ou(j.current,I))},[d]),(0,u.jsx)(Ml,{value:{getStyles:A,unstyled:s},children:(0,u.jsxs)(Y,{ref:t,...A(`wrapper`),size:_,mod:[{"full-width":w},D],...k,children:[g&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(cu,{value:I,onChange:R,onChangeEnd:({s:e,v:t})=>h?.(ou(j.current,{...I,s:e,v:t})),color:F,size:_,focusable:x,saturationLabel:v,onScrubStart:L,onScrubEnd:ie}),(0,u.jsxs)(`div`,{...A(`body`),children:[(0,u.jsxs)(`div`,{...A(`sliders`),children:[(0,u.jsx)(su,{value:I.h,onChange:e=>R({h:e}),onChangeEnd:e=>h?.(ou(j.current,{...I,h:e})),size:_,focusable:x,"aria-label":y,onScrubStart:L,onScrubEnd:ie}),ee&&(0,u.jsx)(Ql,{value:I.a,onChange:e=>R({a:e}),onChangeEnd:e=>{h?.(ou(j.current,{...I,a:e}))},size:_,color:ou(`hex`,I),focusable:x,"aria-label":b,onScrubStart:L,onScrubEnd:ie})]}),ee&&(0,u.jsx)(jl,{color:F,radius:`sm`,size:`var(--cp-preview-size)`,...A(`preview`)})]})]}),Array.isArray(S)&&(0,u.jsx)(lu,{data:S,swatchesPerRow:C,focusable:x,setValue:te,value:F,onChangeEnd:e=>{let t=ou(d,Zl(e));T?.(t),h?.(t),ne||re(Zl(e))}})]})})});fu.classes=Pl,fu.displayName=`@mantine/core/ColorPicker`;var pu={eyeDropperIcon:`m_b077c2bc`,eyeDropperButton:`m_66a028b5`,colorPreview:`m_c5ccdcab`,dropdown:`m_5ece2cd7`};function mu({style:e,...t}){return(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,style:{width:`var(--ci-eye-dropper-icon-size)`,height:`var(--ci-eye-dropper-icon-size)`,...e},viewBox:`0 0 24 24`,strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,...t,children:[(0,u.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,u.jsx)(`path`,{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}),(0,u.jsx)(`path`,{d:`M12 3l0 4`}),(0,u.jsx)(`path`,{d:`M12 21l0 -3`}),(0,u.jsx)(`path`,{d:`M3 12l4 0`}),(0,u.jsx)(`path`,{d:`M21 12l-3 0`}),(0,u.jsx)(`path`,{d:`M12 12l0 .01`})]})}var hu={format:`hex`,fixOnBlur:!0,withPreview:!0,swatchesPerRow:7,withPicker:!0,popoverProps:{transitionProps:{transition:`fade`,duration:0}},withEyeDropper:!0,size:`sm`},gu=W((e,{size:t})=>({eyeDropperIcon:{"--ci-eye-dropper-icon-size":O(t,`ci-eye-dropper-icon-size`)},eyeDropperButton:{"--ci-button-size":O(t,`ci-button-size`)},colorPreview:{"--ci-preview-size":O(t,`ci-preview-size`)}})),_u=X((e,t)=>{let n=q(`ColorInput`,hu,e),{classNames:r,styles:i,unstyled:a,disallowInput:o,fixOnBlur:s,popoverProps:c,withPreview:d,withEyeDropper:f,eyeDropperIcon:p,closeOnColorSwatchClick:m,eyeDropperButtonProps:h,value:g,defaultValue:_,onChange:v,onChangeEnd:y,onClick:b,onFocus:x,onBlur:S,inputProps:C,format:w=`hex`,wrapperProps:T,readOnly:E,withPicker:D,swatches:O,disabled:k,leftSection:A,rightSection:j,swatchesPerRow:M,...N}=_c(`ColorInput`,hu,e),P=K({name:`ColorInput`,props:n,classes:pu,classNames:r,styles:i,unstyled:a,rootSelector:`wrapper`,vars:n.vars,varsResolver:gu}),{resolvedClassNames:ee,resolvedStyles:F}=vt({classNames:r,styles:i,props:n}),[te,ne]=(0,l.useState)(!1),[I,re]=(0,l.useState)(``),[L,ie]=Ce({value:g,defaultValue:_,finalValue:``,onChange:v}),{supported:R,open:oe}=V(),se=(0,u.jsx)(Rs,{...h,...P(`eyeDropperButton`,{className:h?.className,style:h?.style}),variant:`subtle`,color:`gray`,unstyled:a,onClick:()=>oe().then(e=>{if(e?.sRGBHex){let t=ou(w,Zl(e.sRGBHex));ie(t),y?.(t)}}).catch(()=>{}),children:p||(0,u.jsx)(mu,{...P(`eyeDropperIcon`)})}),ce=e=>{x?.(e),ne(!0)},le=e=>{s&&ie(I),S?.(e),ne(!1)},ue=e=>{b?.(e),ne(!0)};return(0,l.useEffect)(()=>{(Xl(L)||L.trim()===``)&&re(L)},[L]),ae(()=>{Xl(L)&&ie(ou(w,Zl(L)))},[w]),(0,u.jsx)(gc.Wrapper,{...T,classNames:ee,styles:F,__staticSelector:`ColorInput`,children:(0,u.jsxs)(Ss,{__staticSelector:`ColorInput`,position:`bottom-start`,offset:5,opened:te,...c,classNames:ee,styles:F,unstyled:a,withRoles:!1,disabled:E||D===!1&&(!Array.isArray(O)||O.length===0),children:[(0,u.jsx)(Ss.Target,{children:(0,u.jsx)(gc,{autoComplete:`off`,...N,...C,classNames:ee,styles:F,disabled:k,ref:t,__staticSelector:`ColorInput`,onFocus:ce,onBlur:le,onClick:ue,spellCheck:!1,value:L,onChange:e=>{let t=e.currentTarget.value;ie(t),Xl(t)&&y?.(ou(w,Zl(t)))},leftSection:A||(d?(0,u.jsx)(jl,{color:Xl(L)?L:`#fff`,size:`var(--ci-preview-size)`,...P(`colorPreview`)}):null),readOnly:o||E,pointer:o,unstyled:a,rightSection:j||(f&&!k&&!E&&R?se:null)})}),(0,u.jsx)(Ss.Dropdown,{onMouseDown:e=>e.preventDefault(),className:pu.dropdown,children:(0,u.jsx)(fu,{__staticSelector:`ColorInput`,value:L,onChange:ie,onChangeEnd:y,format:w,swatches:O,swatchesPerRow:M,withPicker:D,size:C.size,focusable:!1,unstyled:a,styles:F,classNames:ee,onColorSwatchClick:()=>m&&ne(!1),attributes:T.attributes})})]})})});_u.classes=yc.classes,_u.displayName=`@mantine/core/ColorInput`;var vu={duration:100,transition:`fade`};function yu(e,t){return{...vu,...t,...e}}var bu={tooltip:`m_1b3c8819`,arrow:`m_f898399f`};function xu({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,l.useState)(n),a=(0,l.useRef)(null),{x:o,y:s,elements:c,refs:u,update:d,placement:f}=Ga({placement:t,middleware:[$i({crossAxis:!0,padding:5,rootBoundary:`document`})]}),p=f.includes(`right`)?e:t.includes(`left`)?e*-1:0,m=f.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,h=(0,l.useCallback)(({clientX:e,clientY:t})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+p,top:t+m,right:e,bottom:t}}})},[c.reference]);return(0,l.useEffect)(()=>{if(u.floating.current){let e=a.current;e.addEventListener(`mousemove`,h);let t=Hn(u.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,d)}),()=>{e.removeEventListener(`mousemove`,h),t.forEach(e=>{e.removeEventListener(`scroll`,d)})}}},[c.reference,u.floating.current,d,h,r]),{handleMouseMove:h,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:u.setFloating}}var Su={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:T(`popover`)},Cu=W((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:A(t),"--tooltip-bg":n?nt(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),wu=X((e,t)=>{let n=q(`TooltipFloating`,Su,e),{children:r,refProp:i,withinPortal:a,style:o,className:s,classNames:c,styles:d,unstyled:f,radius:p,color:m,label:h,offset:g,position:_,multiline:v,zIndex:y,disabled:b,defaultOpened:x,variant:S,vars:C,portalProps:w,attributes:T,...E}=n,D=gt(),O=K({name:`TooltipFloating`,props:n,classes:bu,className:s,style:o,classNames:c,styles:d,unstyled:f,attributes:T,rootSelector:`tooltip`,vars:C,varsResolver:Cu}),{handleMouseMove:k,x:A,y:j,opened:M,boundaryRef:N,floating:P,setOpened:ee}=xu({offset:g,position:_,defaultOpened:x}),F=ke(r);if(!F)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let te=B(N,U(F),t),ne=F.props,I=e=>{ne.onMouseEnter?.(e),k(e),ee(!0)},re=e=>{ne.onMouseLeave?.(e),ee(!1)};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ns,{...w,withinPortal:a,children:(0,u.jsx)(Y,{...E,...O(`tooltip`,{style:{...J(o,D),zIndex:y,display:!b&&M?`block`:`none`,top:(j&&Math.round(j))??``,left:(A&&Math.round(A))??``}}),variant:S,ref:P,mod:{multiline:v},children:h})}),(0,l.cloneElement)(F,{...ne,[i]:te,onMouseEnter:I,onMouseLeave:re})]})});wu.classes=bu,wu.displayName=`@mantine/core/TooltipFloating`;var Tu=(0,l.createContext)(!1),Eu=Tu.Provider,Du=()=>(0,l.useContext)(Tu),Ou={openDelay:0,closeDelay:0};function ku(e){let{openDelay:t,closeDelay:n,children:r}=q(`TooltipGroup`,Ou,e);return(0,u.jsx)(Eu,{value:!0,children:(0,u.jsx)(Ra,{delay:{open:t,close:n},children:r})})}ku.displayName=`@mantine/core/TooltipGroup`,ku.extend=e=>e;function Au(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function ju(e){let t=Au(e.middlewares),n=[Qi(e.offset)];return t.shift&&n.push($i(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?ta():ta(t.flip)),n.push(aa({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?ia():ia(t.inline)):e.inline&&n.push(ia()),n}function Mu(e){let[t,n]=(0,l.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=Du(),a=ve(),o=(0,l.useCallback)(e=>{n(e),e&&_(a)},[a]),{x:s,y:c,context:u,refs:d,placement:f,middlewareData:{arrow:{x:p,y:m}={}}}=Ga({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:ju(e),whileElementsMounted:Fi}),{delay:h,currentId:g,setCurrentId:_}=za(u,{id:a}),{getReferenceProps:v,getFloatingProps:y}=Ya([Pa(u,{enabled:e.events?.hover,delay:i?h:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),qa(u,{enabled:e.events?.focus,visibleOnly:!0}),Za(u,{role:`tooltip`}),Ua(u,{enabled:e.opened===void 0})]);ae(()=>{e.onPositionChange?.(f)},[f]);let b=r&&g&&g!==a;return{x:s,y:c,arrowX:p,arrowY:m,reference:d.setReference,floating:d.setFloating,getFloatingProps:y,getReferenceProps:v,isGroupPhase:b,opened:r,placement:f}}var Nu={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:T(`popover`),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},Pu=W((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:A(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),Fu=X((e,t)=>{let n=q(`Tooltip`,Nu,e),{children:r,position:i,refProp:a,label:o,openDelay:s,closeDelay:c,onPositionChange:d,opened:f,defaultOpened:p,withinPortal:m,radius:h,color:g,classNames:_,styles:v,unstyled:y,style:b,className:x,withArrow:S,arrowSize:C,arrowOffset:w,arrowRadius:T,arrowPosition:E,offset:D,transitionProps:O,multiline:k,events:A,zIndex:j,disabled:M,positionDependencies:N,onClick:P,onMouseEnter:ee,onMouseLeave:F,inline:te,variant:ne,keepMounted:I,vars:re,portalProps:L,mod:ie,floatingStrategy:R,middlewares:ae,autoContrast:oe,attributes:se,target:ce,...le}=q(`Tooltip`,Nu,n),{dir:ue}=yn(),de=(0,l.useRef)(null),z=Mu({position:qo(ue,i),closeDelay:c,openDelay:s,onPositionChange:d,opened:f,defaultOpened:p,events:A,arrowRef:de,arrowOffset:w,offset:typeof D==`number`?D+(S?C/2:0):D,positionDependencies:[...N,ce??r],inline:te,strategy:R,middlewares:ae});(0,l.useEffect)(()=>{let e=ce instanceof HTMLElement?ce:typeof ce==`string`?document.querySelector(ce):ce?.current||null;e&&z.reference(e)},[ce,z]);let fe=K({name:`Tooltip`,props:n,classes:bu,className:x,style:b,classNames:_,styles:v,unstyled:y,attributes:se,rootSelector:`tooltip`,vars:re,varsResolver:Pu}),pe=ke(r);if(!ce&&!pe)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);if(ce){let e=yu(O,{duration:100,transition:`fade`});return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ns,{...L,withinPortal:m,children:(0,u.jsx)(cs,{...e,keepMounted:I,mounted:!M&&!!z.opened,duration:z.isGroupPhase?10:e.duration,children:e=>(0,u.jsxs)(Y,{...le,"data-fixed":R===`fixed`||void 0,variant:ne,mod:[{multiline:k},ie],...z.getFloatingProps({ref:z.floating,className:fe(`tooltip`).className,style:{...fe(`tooltip`).style,...e,zIndex:j,top:z.y??0,left:z.x??0}}),children:[o,(0,u.jsx)(Ko,{ref:de,arrowX:z.arrowX,arrowY:z.arrowY,visible:S,position:z.placement,arrowSize:C,arrowOffset:w,arrowRadius:T,arrowPosition:E,...fe(`arrow`)})]})})})})}let me=pe.props,he=B(z.reference,U(pe),t),ge=yu(O,{duration:100,transition:`fade`});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ns,{...L,withinPortal:m,children:(0,u.jsx)(cs,{...ge,keepMounted:I,mounted:!M&&!!z.opened,duration:z.isGroupPhase?10:ge.duration,children:e=>(0,u.jsxs)(Y,{...le,"data-fixed":R===`fixed`||void 0,variant:ne,mod:[{multiline:k},ie],...z.getFloatingProps({ref:z.floating,className:fe(`tooltip`).className,style:{...fe(`tooltip`).style,...e,zIndex:j,top:z.y??0,left:z.x??0}}),children:[o,(0,u.jsx)(Ko,{ref:de,arrowX:z.arrowX,arrowY:z.arrowY,visible:S,position:z.placement,arrowSize:C,arrowOffset:w,arrowRadius:T,arrowPosition:E,...fe(`arrow`)})]})})}),(0,l.cloneElement)(pe,z.getReferenceProps({onClick:P,onMouseEnter:ee,onMouseLeave:F,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,...me,className:G(x,me.className),[a]:he}))]})});Fu.classes=bu,Fu.displayName=`@mantine/core/Tooltip`,Fu.Floating=wu,Fu.Group=ku;function Iu({size:e,thickness:t,sum:n,value:r,root:i,offset:a}){let o=(e*.9-t*2)/2,s=Math.PI*o*2/100,c=i||r===void 0?`${(100-n)*s}, ${n*s}`:`${r*s}, ${(100-r)*s}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:o||0,transform:i?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function Lu({size:e,value:t,offset:n,sum:r,thickness:i,root:a,color:o,lineRoundCaps:s,tooltip:c,getStyles:l,display:d,...f}){let p=gt();return(0,u.jsx)(Fu.Floating,{disabled:!c,label:c,children:(0,u.jsx)(Y,{component:`circle`,...f,...l(`curve`),__vars:{"--curve-color":o?nt(o,p):void 0},fill:`none`,strokeLinecap:s?`round`:`butt`,...Iu({sum:r,size:e,thickness:i,value:t,offset:n,root:a})})})}Lu.displayName=`@mantine/core/Curve`;function Ru({size:e,thickness:t,sections:n,renderRoundedLineCaps:r,rootColor:i}){let a=n.reduce((e,t)=>e+t.value,0),o=Math.PI*((e*.9-t*2)/2)*2,s=o,c=[],l=[];for(let e=0;e<n.length;e+=1)c.push({sum:a,offset:s,data:n[e],root:!1}),s-=n[e].value/100*o;if(c.push({sum:a,offset:s,data:{color:i},root:!0}),l.push({...c[c.length-1],lineRoundCaps:!1}),c.length>2){l.push({...c[0],lineRoundCaps:r}),l.push({...c[c.length-2],lineRoundCaps:r});for(let e=1;e<=c.length-3;e+=1)l.push({...c[e],lineRoundCaps:!1})}else l.push({...c[0],lineRoundCaps:r});return l}var zu={root:`m_b32e4812`,svg:`m_d43b5134`,curve:`m_b1ca1fbf`,label:`m_b23f9dc4`};function Bu(e,t){return Math.min(e||12,(t||120)/4)}var Vu={size:120,thickness:12},Hu=W((e,{size:t,thickness:n,transitionDuration:r})=>({root:{"--rp-size":v(t),"--rp-label-offset":v(n*2),"--rp-transition-duration":r?`${r}ms`:void 0}})),Uu=X((e,t)=>{let n=q(`RingProgress`,Vu,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,label:d,sections:f,size:p,thickness:m,roundCaps:h,rootColor:g,transitionDuration:_,attributes:v,...y}=n,b=K({name:`RingProgress`,classes:zu,props:n,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:v,vars:c,varsResolver:Hu}),x=Bu(m,p),S=Ru({size:p,thickness:x,sections:f,renderRoundedLineCaps:h,rootColor:g}).map(({data:e,sum:t,root:n,lineRoundCaps:r,offset:i},a)=>(0,l.createElement)(Lu,{...e,key:a,size:p,thickness:x,sum:t,offset:i,color:e?.color,root:n,lineRoundCaps:r,getStyles:b}));return(0,u.jsxs)(Y,{...b(`root`),size:p,ref:t,...y,children:[(0,u.jsx)(`svg`,{...b(`svg`),children:S}),d&&(0,u.jsx)(`div`,{...b(`label`),children:d})]})});Uu.classes=zu,Uu.displayName=`@mantine/core/RingProgress`;var Wu={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Gu=X((e,t)=>{let n=q(`Select`,Wu,e),{classNames:r,styles:i,unstyled:a,vars:o,dropdownOpened:s,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:f,onFocus:p,onBlur:m,onClick:h,onChange:g,data:_,value:v,defaultValue:y,selectFirstOptionOnChange:b,selectFirstOptionOnDropdownOpen:x,onOptionSubmit:S,comboboxProps:C,readOnly:w,disabled:T,filter:E,limit:D,withScrollArea:O,maxDropdownHeight:k,size:A,searchable:j,rightSection:M,checkIconPosition:N,withCheckIcon:P,withAlignedLabels:ee,nothingFoundMessage:F,name:te,form:ne,searchValue:I,defaultSearchValue:re,onSearchChange:L,allowDeselect:ie,error:R,rightSectionPointerEvents:ae,id:oe,clearable:se,clearButtonProps:ce,hiddenInputProps:le,renderOption:ue,onClear:de,autoComplete:z,scrollAreaProps:fe,__defaultRightSection:pe,__clearSection:me,__clearable:he,chevronColor:ge,autoSelectOnBlur:_e,openOnFocus:ye,attributes:be,...B}=n,xe=(0,l.useMemo)(()=>Ec(_),[_]),Se=(0,l.useRef)({}),we=(0,l.useMemo)(()=>Dc(xe),[xe]),V=ve(oe),[H,U,Ee]=Ce({value:v,defaultValue:y,finalValue:null,onChange:g}),De=typeof H==`string`?H in we?we[H]:Se.current[H]:void 0,Oe=Te(De),[ke,W,Ae]=Ce({value:I,defaultValue:re,finalValue:De?De.label:``,onChange:L}),G=tl({opened:s,defaultOpened:c,onDropdownOpen:()=>{f?.(),x?G.selectFirstOption():G.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(G.resetSelectedOption,0)}}),je=e=>{W(e),G.resetSelectedOption()},{resolvedClassNames:Me,resolvedStyles:Ne}=vt({props:n,styles:i,classNames:r});(0,l.useEffect)(()=>{b&&G.selectFirstOption()},[b,ke]),(0,l.useEffect)(()=>{v===null&&je(``),typeof v==`string`&&De&&(Oe?.value!==De.value||Oe?.label!==De.label)&&je(De.label)},[v,De]),(0,l.useEffect)(()=>{!Ee&&!Ae&&je(typeof H==`string`?H in we?we[H]?.label:Se.current[H]?.label||``:``)},[we,H]),(0,l.useEffect)(()=>{H&&H in we&&(Se.current[H]=we[H])},[we,H]);let Pe=(0,u.jsx)($.ClearButton,{...ce,onClear:()=>{U(null,null),je(``),de?.()}}),Fe=se&&!!H&&!T&&!w;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)($,{store:G,__staticSelector:`Select`,classNames:Me,styles:Ne,unstyled:a,readOnly:w,size:A,attributes:be,keepMounted:_e,onOptionSubmit:e=>{S?.(e);let t=ie&&we[e].value===H?null:we[e],n=t?t.value:null;n!==H&&U(n,t),!Ee&&je(typeof n==`string`&&t?.label||``),G.closeDropdown()},...C,children:[(0,u.jsx)($.Target,{targetType:j?`input`:`button`,autoComplete:z,children:(0,u.jsx)(yc,{id:V,ref:t,__defaultRightSection:(0,u.jsx)($.Chevron,{size:A,error:R,unstyled:a,color:ge}),__clearSection:Pe,__clearable:Fe,rightSection:M,rightSectionPointerEvents:ae||`none`,...B,size:A,__staticSelector:`Select`,disabled:T,readOnly:w||!j,value:ke,onChange:e=>{je(e.currentTarget.value),G.openDropdown(),b&&G.selectFirstOption()},onFocus:e=>{ye&&j&&G.openDropdown(),p?.(e)},onBlur:e=>{_e&&G.clickSelectedOption(),j&&G.closeDropdown();let t=typeof H==`string`&&(H in we?we[H]:Se.current[H]);je(t&&t.label||``),m?.(e)},onClick:e=>{j?G.openDropdown():G.toggleDropdown(),h?.(e)},classNames:Me,styles:Ne,unstyled:a,pointer:!j,error:R,attributes:be})}),(0,u.jsx)(dl,{data:xe,hidden:w||T,filter:E,search:ke,limit:D,hiddenWhenEmpty:!F,withScrollArea:O,maxDropdownHeight:k,filterOptions:!!j&&De?.label!==ke,value:H,checkIconPosition:N,withCheckIcon:P,withAlignedLabels:ee,nothingFoundMessage:F,unstyled:a,labelId:B.label?`${V}-label`:void 0,"aria-label":B.label?void 0:B[`aria-label`],renderOption:ue,scrollAreaProps:fe})]}),(0,u.jsx)($.HiddenInput,{value:H,name:te,form:ne,disabled:T,...le})]})});Gu.classes={...yc.classes,...$.classes},Gu.displayName=`@mantine/core/Select`;var Ku={root:`m_6d731127`},qu={gap:`md`,align:`stretch`,justify:`flex-start`},Ju=W((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":k(t),"--stack-align":n,"--stack-justify":r}})),Yu=X((e,t)=>{let n=q(`Stack`,qu,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,align:l,justify:d,gap:f,variant:p,attributes:m,...h}=n;return(0,u.jsx)(Y,{ref:t,...K({name:`Stack`,props:n,classes:Ku,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:m,vars:c,varsResolver:Ju})(`root`),variant:p,...h})});Yu.classes=Ku,Yu.displayName=`@mantine/core/Stack`;var Xu={root:`m_7341320d`},Zu=W((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":O(t,`ti-size`),"--ti-radius":n===void 0?void 0:A(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),Qu=X((e,t)=>{let n=q(`ThemeIcon`,null,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,autoContrast:l,attributes:d,...f}=n;return(0,u.jsx)(Y,{ref:t,...K({name:`ThemeIcon`,classes:Xu,props:n,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:d,vars:c,varsResolver:Zu})(`root`),...f})});Qu.classes=Xu,Qu.displayName=`@mantine/core/ThemeIcon`;var $u=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],ed=[`xs`,`sm`,`md`,`lg`,`xl`];function td(e,t){let n=t===void 0?`h${e}`:t;return $u.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:ed.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:v(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var nd={root:`m_8a5d1357`},rd={order:1},id=W((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=td(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),ad=X((e,t)=>{let n=q(`Title`,rd,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,order:c,vars:l,size:d,variant:f,lineClamp:p,textWrap:m,mod:h,attributes:g,..._}=n,v=K({name:`Title`,props:n,classes:nd,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:g,vars:l,varsResolver:id});return[1,2,3,4,5,6].includes(c)?(0,u.jsx)(Y,{...v(`root`),component:`h${c}`,variant:f,ref:t,mod:[{order:c,"data-line-clamp":typeof p==`number`},h],size:d,..._}):null});ad.classes=nd,ad.displayName=`@mantine/core/Title`;var od=({children:e,avatarOnOpen:t,avatarOnClose:n})=>{let[r,i]=(0,l.useState)(!1);return(0,u.jsxs)(Ss,{opened:r,onChange:i,position:`bottom`,withArrow:!0,shadow:`md`,width:60,withinPortal:!0,children:[(0,u.jsx)(Ss.Target,{children:(0,u.jsx)(Rs,{variant:`light`,color:`blue`,size:`lg`,radius:`xl`,onClick:()=>i(e=>!e),children:r?t:n})}),(0,u.jsx)(Ss.Dropdown,{style:{padding:5,backgroundColor:`transparent`,border:`none`,boxShadow:`none`},children:(0,u.jsx)(Yu,{gap:8,style:{backgroundColor:`transparent`,padding:5},children:e})})]})},sd=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);md(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},cd={},ld=(e,t,n,r)=>{md(n)&&cd[n]||(md(n)&&(cd[n]=new Date),sd(e,t,n,r))},ud=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},dd=(e,t,n)=>{e.loadNamespaces(t,ud(e,n))},fd=(e,t,n,r)=>{if(md(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return dd(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,ud(e,r))},pd=(e,t,n={})=>!t.languages||!t.languages.length?(ld(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),md=e=>typeof e==`string`,hd=e=>typeof e==`object`&&!!e,gd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,_d={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},vd=e=>_d[e],yd={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(gd,vd),transDefaultProps:void 0},bd=()=>yd,xd,Sd=()=>xd,Cd=(0,l.createContext)(),wd=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},Td=o((e=>{var t=require(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Ed=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=require(`react`),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),Dd=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Td():t.exports=Ed()}))(),Od={t:(e,t)=>{if(md(t))return t;if(hd(t)&&md(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},kd=()=>()=>{},Ad=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,l.useContext)(Cd)||{},a=n||r||Sd();a&&!a.reportNamespaces&&(a.reportNamespaces=new wd),a||ld(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let o=(0,l.useMemo)(()=>({...bd(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,u=e||i||a?.options?.defaultNS,d=md(u)?[u]:u||[`translation`],f=(0,l.useMemo)(()=>d,d);a?.reportNamespaces?.addUsedNamespaces?.(f);let p=(0,l.useRef)(0),m=(0,l.useCallback)(e=>{if(!a)return kd;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{p.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),h=(0,l.useRef)(),g=(0,l.useCallback)(()=>{if(!a)return Od;let e=!!(a.isInitialized||a.initializedStoreOnce)&&f.every(e=>pd(e,a,o)),n=t.lng||a.language,r=p.current,i=h.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?f:f[0],c),ready:e,lng:n,keyPrefix:c,revision:r};return h.current=s,s},[a,f,c,o,t.lng]),[_,v]=(0,l.useState)(0),{t:y,ready:b}=(0,Dd.useSyncExternalStore)(m,g,g);(0,l.useEffect)(()=>{if(a&&!b&&!s){let e=()=>v(e=>e+1);t.lng?fd(a,t.lng,f,e):dd(a,f,e)}},[a,t.lng,f,b,s,_]);let x=a||{},S=(0,l.useRef)(null),C=(0,l.useRef)(),w=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,`__original`,{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},T=(0,l.useMemo)(()=>{let e=x,t=e?.language,n=e;e&&(S.current&&S.current.__original===e&&C.current===t?n=S.current:(n=w(e),S.current=n,C.current=t));let r=!b&&!s?(...e)=>(ld(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),y(...e)):y,i=[r,n,b];return i.t=r,i.i18n=n,i.ready=b,i},[y,x,b,x.resolvedLanguage,x.language,x.languages]);if(a&&s&&!b)throw new Promise(e=>{let n=()=>e();t.lng?fd(a,t.lng,f,n):dd(a,f,n)});return T},jd=({children:e})=>{let{t}=Ad();return(0,u.jsx)(wl.Group,{children:e.length===0?(0,u.jsx)(wc,{c:`dimmed`,size:`sm`,fs:`italic`,children:t(`common.notFound`)}):e})};function Md({title:e,titleId:t,...n},r){return l.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?l.createElement(`title`,{id:t},e):null,l.createElement(`path`,{d:`M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z`}))}var Nd=l.forwardRef(Md),Pd=()=>(0,u.jsx)(Fu,{label:`X`,withArrow:!0,children:(0,u.jsx)(wl,{size:`md`,radius:`xl`,color:`gray`,variant:`light`,children:(0,u.jsx)(Nd,{})})},`notfound`),Fd=({children:e})=>(0,u.jsx)(wl.Group,{children:e.length===0?(0,u.jsx)(Pd,{}):e}),Id=({relation:e,children:t})=>{let{t:n}=Ad();if(!e)return(0,u.jsx)(u.Fragment,{children:t});let r=e.confidence||0,i=`red`;r>=80?i=`green`:r>=50&&(i=`yellow`);let a=e=>{if(!e)return`N/A`;try{return new Date(e*1e3).toLocaleString(void 0,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,hour12:!1})}catch{return`Invalid Date`}};return(0,u.jsxs)(Yu,{gap:`xs`,p:4,children:[(0,u.jsxs)(Q,{justify:`space-between`,align:`center`,children:[(0,u.jsx)(wc,{fw:700,size:`sm`,style:{lineHeight:1},children:e.label||n(`tooltip.relation`)}),(0,u.jsxs)(Q,{gap:4,children:[(0,u.jsx)(wc,{size:`xs`,c:`dimmed`,children:n(`tooltip.confidence`)}),(0,u.jsx)(Uu,{size:36,thickness:3,roundCaps:!0,sections:[{value:e.confidence||0,color:i}],label:(0,u.jsx)(wc,{c:i,fw:700,ta:`center`,size:`xs`,style:{fontSize:9},children:e.confidence||0})})]})]}),(0,u.jsx)(Y,{children:t}),(0,u.jsxs)(Q,{justify:`space-between`,mt:4,children:[(0,u.jsxs)(wc,{size:`xs`,c:`dimmed`,style:{fontSize:v(10)},children:[n(`tooltip.createdDate`),`: `,a(e.created_at)]}),(0,u.jsxs)(wc,{size:`xs`,c:`dimmed`,style:{fontSize:v(10)},children:[n(`tooltip.updatedDate`),`: `,a(e.updated_at)]})]})]})};function Ld({title:e,titleId:t,...n},r){return l.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?l.createElement(`title`,{id:t},e):null,l.createElement(`path`,{fillRule:`evenodd`,d:`M4.5 2.25a.75.75 0 0 0 0 1.5v16.5h-.75a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5h-.75V3.75a.75.75 0 0 0 0-1.5h-15ZM9 6a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5H9Zm-.75 3.75A.75.75 0 0 1 9 9h1.5a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM9 12a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5H9Zm3.75-5.25A.75.75 0 0 1 13.5 6H15a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM13.5 9a.75.75 0 0 0 0 1.5H15A.75.75 0 0 0 15 9h-1.5Zm-.75 3.75a.75.75 0 0 1 .75-.75H15a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM9 19.5v-2.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 9 19.5Z`,clipRule:`evenodd`}))}var Rd=l.forwardRef(Ld);function zd({title:e,titleId:t,...n},r){return l.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?l.createElement(`title`,{id:t},e):null,l.createElement(`path`,{d:`M12.75 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM7.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.25 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM9.75 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.5 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM12.75 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM14.25 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z`}),l.createElement(`path`,{fillRule:`evenodd`,d:`M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z`,clipRule:`evenodd`}))}var Bd=l.forwardRef(zd);function Vd({title:e,titleId:t,...n},r){return l.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?l.createElement(`title`,{id:t},e):null,l.createElement(`path`,{d:`M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625Z`}),l.createElement(`path`,{d:`M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z`}))}var Hd=l.forwardRef(Vd);function Ud({title:e,titleId:t,...n},r){return l.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?l.createElement(`title`,{id:t},e):null,l.createElement(`path`,{d:`M21.721 12.752a9.711 9.711 0 0 0-.945-5.003 12.754 12.754 0 0 1-4.339 2.708 18.991 18.991 0 0 1-.214 4.772 17.165 17.165 0 0 0 5.498-2.477ZM14.634 15.55a17.324 17.324 0 0 0 .332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 0 0 .332 4.647 17.385 17.385 0 0 0 5.268 0ZM9.772 17.119a18.963 18.963 0 0 0 4.456 0A17.182 17.182 0 0 1 12 21.724a17.18 17.18 0 0 1-2.228-4.605ZM7.777 15.23a18.87 18.87 0 0 1-.214-4.774 12.753 12.753 0 0 1-4.34-2.708 9.711 9.711 0 0 0-.944 5.004 17.165 17.165 0 0 0 5.498 2.477ZM21.356 14.752a9.765 9.765 0 0 1-7.478 6.817 18.64 18.64 0 0 0 1.988-4.718 18.627 18.627 0 0 0 5.49-2.098ZM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 0 0 1.988 4.718 9.765 9.765 0 0 1-7.478-6.816ZM13.878 2.43a9.755 9.755 0 0 1 6.116 3.986 11.267 11.267 0 0 1-3.746 2.504 18.63 18.63 0 0 0-2.37-6.49ZM12 2.276a17.152 17.152 0 0 1 2.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0 1 12 2.276ZM10.122 2.43a18.629 18.629 0 0 0-2.37 6.49 11.266 11.266 0 0 1-3.746-2.504 9.754 9.754 0 0 1 6.116-3.985Z`}))}var Wd=l.forwardRef(Ud);function Gd({title:e,titleId:t,...n},r){return l.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?l.createElement(`title`,{id:t},e):null,l.createElement(`path`,{fillRule:`evenodd`,d:`M19.902 4.098a3.75 3.75 0 0 0-5.304 0l-4.5 4.5a3.75 3.75 0 0 0 1.035 6.037.75.75 0 0 1-.646 1.353 5.25 5.25 0 0 1-1.449-8.45l4.5-4.5a5.25 5.25 0 1 1 7.424 7.424l-1.757 1.757a.75.75 0 1 1-1.06-1.06l1.757-1.757a3.75 3.75 0 0 0 0-5.304Zm-7.389 4.267a.75.75 0 0 1 1-.353 5.25 5.25 0 0 1 1.449 8.45l-4.5 4.5a5.25 5.25 0 1 1-7.424-7.424l1.757-1.757a.75.75 0 1 1 1.06 1.06l-1.757 1.757a3.75 3.75 0 1 0 5.304 5.304l4.5-4.5a3.75 3.75 0 0 0-1.035-6.037.75.75 0 0 1-.354-1Z`,clipRule:`evenodd`}))}var Kd=l.forwardRef(Gd);function qd({title:e,titleId:t,...n},r){return l.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?l.createElement(`title`,{id:t},e):null,l.createElement(`path`,{fillRule:`evenodd`,d:`M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z`,clipRule:`evenodd`}))}var Jd=l.forwardRef(qd),Yd=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=(e,t,n)=>{typeof n==`string`||n instanceof Blob?e.append(t,n):n instanceof Date?e.append(t,n.toISOString()):e.append(t,JSON.stringify(n))},n=(e,t,n)=>{typeof n==`string`?e.append(t,n):e.append(t,JSON.stringify(n))};e.formDataBodySerializer={bodySerializer:e=>{let n=new FormData;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>t(n,e,r)):t(n,e,r))}),n}},e.jsonBodySerializer={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},e.urlSearchParamsBodySerializer={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>n(t,e,r)):n(t,e,r))}),t.toString()}}})),Xd=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildClientParams=void 0;var t=Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`}),n=(e,t)=>{t||=new Map;for(let r of e)`in`in r?r.key&&t.set(r.key,{in:r.in,map:r.map}):`key`in r?t.set(r.key,{map:r.map}):r.args&&n(r.args,t);return t},r=e=>{for(let[t,n]of Object.entries(e))n&&typeof n==`object`&&!Array.isArray(n)&&!Object.keys(n).length&&delete e[t]};e.buildClientParams=(e,i)=>{let a={body:{},headers:{},path:{},query:{}},o=n(i),s;for(let[n,r]of e.entries())if(i[n]&&(s=i[n]),s)if(`in`in s)if(s.key){let e=o.get(s.key),t=e.map||s.key;e.in&&(a[e.in][t]=r)}else a.body=r;else for(let[e,n]of Object.entries(r??{})){let r=o.get(e);if(r)if(r.in){let t=r.map||e;a[r.in][t]=n}else a[r.map]=n;else{let r=t.find(([t])=>e.startsWith(t));if(r){let[t,i]=r;a[i][e.slice(t.length)]=n}else if(`allowExtra`in s&&s.allowExtra){for(let[t,r]of Object.entries(s.allowExtra))if(r){a[t][e]=n;break}}}}return r(a),a}})),Zd=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeQueryKeyValue=e.stringifyToJsonValue=e.queryKeyJsonReplacer=void 0,e.queryKeyJsonReplacer=(e,t)=>{if(!(t===void 0||typeof t==`function`||typeof t==`symbol`))return typeof t==`bigint`?t.toString():t instanceof Date?t.toISOString():t},e.stringifyToJsonValue=t=>{try{let n=JSON.stringify(t,e.queryKeyJsonReplacer);return n===void 0?void 0:JSON.parse(n)}catch{return}};var t=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},n=e=>{let t=Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t)),n={};for(let[e,r]of t){let t=n[e];if(t===void 0){n[e]=r;continue}Array.isArray(t)?t.push(r):n[e]=[t,r]}return n};e.serializeQueryKeyValue=r=>{if(r===null)return null;if(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)return r;if(!(r===void 0||typeof r==`function`||typeof r==`symbol`)){if(typeof r==`bigint`)return r.toString();if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return(0,e.stringifyToJsonValue)(r);if(typeof URLSearchParams<`u`&&r instanceof URLSearchParams)return n(r);if(t(r))return(0,e.stringifyToJsonValue)(r)}}})),Qd=o(((e,t)=>{function n(e,t){return function(){return e.apply(t,arguments)}}var{toString:r}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:a,toStringTag:o}=Symbol,s=(e=>t=>{let n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),c=e=>(e=e.toLowerCase(),t=>s(t)===e),l=e=>t=>typeof t===e,{isArray:u}=Array,d=l(`undefined`);function f(e){return e!==null&&!d(e)&&e.constructor!==null&&!d(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var p=c(`ArrayBuffer`);function m(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t}var h=l(`string`),g=l(`function`),_=l(`number`),v=e=>typeof e==`object`&&!!e,y=e=>e===!0||e===!1,b=e=>{if(s(e)!==`object`)return!1;let t=i(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(o in e)&&!(a in e)},x=e=>{if(!v(e)||f(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},S=c(`Date`),C=c(`File`),w=e=>!!(e&&e.uri!==void 0),T=e=>e&&e.getParts!==void 0,E=c(`Blob`),D=c(`FileList`),O=e=>v(e)&&g(e.pipe);function k(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var A=k(),j=A.FormData===void 0?void 0:A.FormData,M=e=>{let t;return e&&(j&&e instanceof j||g(e.append)&&((t=s(e))===`formdata`||t===`object`&&g(e.toString)&&e.toString()===`[object FormData]`))},N=c(`URLSearchParams`),[P,ee,F,te]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(c),ne=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function I(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),u(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(f(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function re(e,t){if(f(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var L=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ie=e=>!d(e)&&e!==L;function R(){let{caseless:e,skipUndefined:t}=ie(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&re(n,i)||i;b(n[a])&&b(r)?n[a]=R(n[a],r):b(r)?n[a]=R({},r):u(r)?n[a]=r.slice():(!t||!d(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&I(arguments[e],r);return n}var ae=(e,t,r,{allOwnKeys:i}={})=>(I(t,(t,i)=>{r&&g(t)?Object.defineProperty(e,i,{value:n(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),oe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),se=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},ce=(e,t,n,r)=>{let a,o,s,c={};if(t||={},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},le=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},ue=e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!_(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},de=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&i(Uint8Array)),z=(e,t)=>{let n=(e&&e[a]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},fe=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pe=c(`HTMLFormElement`),me=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ge=c(`RegExp`),_e=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};I(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ve=e=>{_e(e,(t,n)=>{if(g(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(g(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},ye=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return u(e)?r(e):r(String(e).split(t)),n},be=()=>{},B=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function xe(e){return!!(e&&g(e.append)&&e[o]===`FormData`&&e[a])}var Se=e=>{let t=Array(10),n=(e,r)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(f(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=u(e)?[]:{};return I(e,(e,t)=>{let a=n(e,r+1);!d(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},Ce=c(`AsyncFunction`),we=e=>e&&(v(e)||g(e))&&g(e.then)&&g(e.catch),Te=((e,t)=>e?setImmediate:t?((e,t)=>(L.addEventListener(`message`,({source:n,data:r})=>{n===L&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),L.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,g(L.postMessage)),V={isArray:u,isArrayBuffer:p,isBuffer:f,isFormData:M,isArrayBufferView:m,isString:h,isNumber:_,isBoolean:y,isObject:v,isPlainObject:b,isEmptyObject:x,isReadableStream:P,isRequest:ee,isResponse:F,isHeaders:te,isUndefined:d,isDate:S,isFile:C,isReactNativeBlob:w,isReactNative:T,isBlob:E,isRegExp:ge,isFunction:g,isStream:O,isURLSearchParams:N,isTypedArray:de,isFileList:D,forEach:I,merge:R,extend:ae,trim:ne,stripBOM:oe,inherits:se,toFlatObject:ce,kindOf:s,kindOfTest:c,endsWith:le,toArray:ue,forEachEntry:z,matchAll:fe,isHTMLForm:pe,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:_e,freezeMethods:ve,toObjectSet:ye,toCamelCase:me,noop:be,toFiniteNumber:B,findKey:re,global:L,isContextDefined:ie,isSpecCompliantForm:xe,toJSONObject:Se,isAsyncFn:Ce,isThenable:we,setImmediate:Te,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(L):typeof process<`u`&&process.nextTick||Te,isIterable:e=>e!=null&&g(e[a])},H=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}};H.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,H.ERR_BAD_OPTION=`ERR_BAD_OPTION`,H.ECONNABORTED=`ECONNABORTED`,H.ETIMEDOUT=`ETIMEDOUT`,H.ERR_NETWORK=`ERR_NETWORK`,H.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,H.ERR_DEPRECATED=`ERR_DEPRECATED`,H.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,H.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,H.ERR_CANCELED=`ERR_CANCELED`,H.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,H.ERR_INVALID_URL=`ERR_INVALID_URL`;var U=H,Ee=null;function De(e){return V.isPlainObject(e)||V.isArray(e)}function Oe(e){return V.endsWith(e,`[]`)?e.slice(0,-2):e}function ke(e,t,n){return e?e.concat(t).map(function(e,t){return e=Oe(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function W(e){return V.isArray(e)&&!e.some(De)}var Ae=V.toFlatObject(V,{},null,function(e){return/^is[A-Z]/.test(e)});function G(e,t,n){if(!V.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!V.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(V.isDate(e))return e.toISOString();if(V.isBoolean(e))return e.toString();if(!s&&V.isBlob(e))throw new U(`Blob is not supported. Use a Buffer instead.`);return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(V.isReactNative(t)&&V.isReactNativeBlob(e))return t.append(ke(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(V.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&W(e)||(V.isFileList(e)||V.endsWith(n,`[]`))&&(s=V.toArray(e)))return n=Oe(n),s.forEach(function(e,r){!(V.isUndefined(e)||e===null)&&t.append(o===!0?ke([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return De(e)?!0:(t.append(ke(i,n,a),c(e)),!1)}let u=[],d=Object.assign(Ae,{defaultVisitor:l,convertValue:c,isVisitable:De});function f(e,n){if(!V.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),V.forEach(e,function(e,r){(!(V.isUndefined(e)||e===null)&&i.call(t,e,V.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!V.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function je(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Me(e,t){this._pairs=[],e&&G(e,this,t)}var Ne=Me.prototype;Ne.append=function(e,t){this._pairs.push([e,t])},Ne.toString=function(e){let t=e?function(t){return e.call(this,t,je)}:je;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Pe(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Fe(e,t,n){if(!t)return e;let r=n&&n.encode||Pe,i=V.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):V.isURLSearchParams(t)?t.toString():new Me(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Ie=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){V.forEach(this.handlers,function(t){t!==null&&e(t)})}},Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Re={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Me,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},ze=typeof window<`u`&&typeof document<`u`,Be=typeof navigator==`object`&&navigator||void 0,Ve=ze&&(!Be||[`ReactNative`,`NativeScript`,`NS`].indexOf(Be.product)<0),He=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Ue=ze&&window.location.href||`http://localhost`,We={...Object.freeze({__proto__:null,hasBrowserEnv:ze,hasStandardBrowserWebWorkerEnv:He,hasStandardBrowserEnv:Ve,navigator:Be,origin:Ue}),...Re};function Ge(e,t){return G(e,new We.classes.URLSearchParams,{visitor:function(e,t,n,r){return We.isNode&&V.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Ke(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function qe(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Je(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&V.isArray(r)?r.length:a,s?(V.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!V.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&V.isArray(r[a])&&(r[a]=qe(r[a])),!o)}if(V.isFormData(e)&&V.isFunction(e.entries)){let n={};return V.forEachEntry(e,(e,r)=>{t(Ke(e),r,n,0)}),n}return null}function Ye(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Xe={transitional:Le,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=V.isObject(e);if(i&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(Je(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Ge(e,this.formSerializer).toString();if((a=V.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return G(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),Ye(e)):e}],transformResponse:[function(e){let t=this.transitional||Xe.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?U.from(e,U.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{Xe.headers[e]={}});var Ze=Xe,Qe=V.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),$e=e=>{let t={},n,r,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Qe[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},et=Symbol(`internals`);function tt(e){return e&&String(e).trim().toLowerCase()}function nt(e){return e===!1||e==null?e:V.isArray(e)?e.map(nt):String(e)}function rt(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var it=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function at(e,t,n,r,i){if(V.isFunction(r))return r.call(this,t,n);if(i&&(t=n),V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function ot(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function st(e,t){let n=V.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var ct=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=tt(t);if(!i)throw Error(`header name must be a non-empty string`);let a=V.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=nt(e))}let a=(e,t)=>V.forEach(e,(e,n)=>i(e,n,t));if(V.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(V.isString(e)&&(e=e.trim())&&!it(e))a($e(e),t);else if(V.isObject(e)&&V.isIterable(e)){let n={},r,i;for(let t of e){if(!V.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?V.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=tt(e),e){let n=V.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return rt(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=tt(e),e){let n=V.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||at(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=tt(e),e){let i=V.findKey(n,e);i&&(!t||at(n,n[i],i,t))&&(delete n[i],r=!0)}}return V.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||at(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return V.forEach(this,(r,i)=>{let a=V.findKey(n,i);if(a){t[a]=nt(r),delete t[i];return}let o=e?ot(i):String(i).trim();o!==i&&delete t[i],t[o]=nt(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return V.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&V.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[et]=this[et]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=tt(e);t[r]||(st(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}};ct.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),V.reduceDescriptors(ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),V.freezeMethods(ct);var lt=ct;function ut(e,t){let n=this||Ze,r=t||n,i=lt.from(r.headers),a=r.data;return V.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function dt(e){return!!(e&&e.__CANCEL__)}var ft=class extends U{constructor(e,t,n){super(e??`canceled`,U.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function pt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U(`Request failed with status code `+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function mt(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function ht(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function gt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var _t=(e,t,n=3)=>{let r=0,i=ht(50,250);return gt(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},vt=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yt=e=>(...t)=>V.asap(()=>e(...t)),bt=We.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,We.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(We.origin),We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent)):()=>!0,xt=We.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&s.push(`path=${r}`),V.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),V.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function St(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Ct(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function wt(e,t,n){let r=!St(t);return e&&(r||n==0)?Ct(e,t):t}var Tt=e=>e instanceof lt?{...e}:e;function Et(e,t){t||={};let n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function i(e,t,n,i){if(!V.isUndefined(t))return r(e,t,n,i);if(!V.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!V.isUndefined(t))return r(void 0,t)}function o(e,t){if(!V.isUndefined(t))return r(void 0,t);if(!V.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Tt(e),Tt(t),n,!0)};return V.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=V.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);V.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Dt=e=>{let t=Et({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=lt.from(o),t.url=Fe(wt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),V.isFormData(n)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(V.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(We.hasStandardBrowserEnv&&(r&&V.isFunction(r)&&(r=r(t)),r||r!==!1&&bt(t.url))){let e=i&&a&&xt.read(a);e&&o.set(i,e)}return t},Ot=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Dt(e),i=r.data,a=lt.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=lt.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());pt(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new U(`Request aborted`,U.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new U(t&&t.message?t.message:`Network Error`,U.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Le;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new U(t,i.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&V.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),V.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=_t(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=_t(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new ft(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=mt(r.url);if(_&&We.protocols.indexOf(_)===-1){n(new U(`Unsupported protocol `+_+`:`,U.ERR_BAD_REQUEST,e));return}h.send(i||null)})},kt=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof U?t:new ft(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new U(`timeout of ${t}ms exceeded`,U.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>V.asap(o),s}},At=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},jt=async function*(e,t){for await(let n of Mt(e))yield*At(n,t)},Mt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Nt=(e,t,n,r)=>{let i=jt(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Pt=64*1024,{isFunction:K}=V,q=(({Request:e,Response:t})=>({Request:e,Response:t}))(V.global),{ReadableStream:Ft,TextEncoder:It}=V.global,Lt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rt=e=>{e=V.merge.call({skipUndefined:!0},q,e);let{fetch:t,Request:n,Response:r}=e,i=t?K(t):typeof fetch==`function`,a=K(n),o=K(r);if(!i)return!1;let s=i&&K(Ft),c=i&&(typeof It==`function`?(e=>t=>e.encode(t))(new It):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&Lt(()=>{let e=!1,t=new n(We.origin,{body:new Ft,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return e&&!t}),u=o&&s&&Lt(()=>V.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new U(`Response type '${e}' is not supported`,U.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new n(We.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e+=``),V.isString(e))return(await c(e)).byteLength},p=async(e,t)=>V.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=Dt(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=kt([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),T;try{if(g&&l&&o!==`get`&&o!==`head`&&(T=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(V.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=vt(T,_t(yt(g)));s=Nt(e.body,Pt,t,n)}}V.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=V.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&vt(t,_t(yt(h),!0))||[];f=new r(Nt(f.body,Pt,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let E=await d[V.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{pt(t,n,{data:E,headers:lt.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new U(`Network Error`,U.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):U.from(t,t&&t.code,e,C,t&&t.response)}}},zt=new Map,Bt=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=zt;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Rt(t)),l=c;return c};Bt();var Vt={http:Ee,xhr:Ot,fetch:{get:Bt}};V.forEach(Vt,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Ht=e=>`- ${e}`,Ut=e=>V.isFunction(e)||e===null||e===!1;function Wt(e,t){e=V.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Ut(r)&&(i=Vt[(n=String(r)).toLowerCase()],i===void 0))throw new U(`Unknown adapter '${n}'`);if(i&&(V.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new U(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
|
+
`+e.map(Ht).join(`
|
|
5
|
+
`):` `+Ht(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Gt={getAdapter:Wt,adapters:Vt};function Kt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ft(null,e)}function qt(e){return Kt(e),e.headers=lt.from(e.headers),e.data=ut.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Gt.getAdapter(e.adapter||Ze.adapter,e)(e).then(function(t){return Kt(e),t.data=ut.call(e,e.transformResponse,t),t.headers=lt.from(t.headers),t},function(t){return dt(t)||(Kt(e),t&&t.response&&(t.response.data=ut.call(e,e.transformResponse,t.response),t.response.headers=lt.from(t.response.headers))),Promise.reject(t)})}var Jt=`1.13.6`,Yt={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Yt[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Xt={};Yt.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Jt+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new U(r(i,` has been removed`+(t?` in `+t:``)),U.ERR_DEPRECATED);return t&&!Xt[i]&&(Xt[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},Yt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Zt(e,t,n){if(typeof e!=`object`)throw new U(`options must be an object`,U.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new U(`option `+a+` must be `+n,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U(`Unknown option `+a,U.ERR_BAD_OPTION)}}var Qt={assertOptions:Zt,validators:Yt},$t=Qt.validators,en=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ie,response:new Ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
|
|
6
|
+
`+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Et(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Qt.assertOptions(n,{silentJSONParsing:$t.transitional($t.boolean),forcedJSONParsing:$t.transitional($t.boolean),clarifyTimeoutError:$t.transitional($t.boolean),legacyInterceptorReqResOrdering:$t.transitional($t.boolean)},!1),r!=null&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:Qt.assertOptions(r,{encode:$t.function,serialize:$t.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Qt.assertOptions(t,{baseUrl:$t.spelling(`baseURL`),withXsrfToken:$t.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=lt.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Le;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[qt.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=qt.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Et(this.defaults,e),Fe(wt(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};V.forEach([`delete`,`get`,`head`,`options`],function(e){en.prototype[e]=function(t,n){return this.request(Et(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(Et(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}en.prototype[e]=t(),en.prototype[e+`Form`]=t(!0)});var tn=en,nn=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new ft(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function rn(e){return function(t){return e.apply(null,t)}}function an(e){return V.isObject(e)&&e.isAxiosError===!0}var on={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(on).forEach(([e,t])=>{on[t]=e});var sn=on;function cn(e){let t=new tn(e),r=n(tn.prototype.request,t);return V.extend(r,tn.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return cn(Et(e,t))},r}var J=cn(Ze);J.Axios=tn,J.CanceledError=ft,J.CancelToken=nn,J.isCancel=dt,J.VERSION=Jt,J.toFormData=G,J.AxiosError=U,J.Cancel=J.CanceledError,J.all=function(e){return Promise.all(e)},J.spread=rn,J.isAxiosError=an,J.mergeConfig=Et,J.AxiosHeaders=lt,J.formToJSON=e=>Je(V.isHTMLForm(e)?new FormData(e):e),J.getAdapter=Gt.getAdapter,J.HttpStatusCode=sn,J.default=J,t.exports=J})),$d=o((e=>{var t=e&&e.__await||function(e){return this instanceof t?(this.v=e,this):new t(e)},n=e&&e.__asyncGenerator||function(e,n,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,n||[]),a,o=[];return a=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),c(`next`),c(`throw`),c(`return`,s),a[Symbol.asyncIterator]=function(){return this},a;function s(e){return function(t){return Promise.resolve(t).then(e,f)}}function c(e,t){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||l(e,t)})},t&&(a[e]=t(a[e])))}function l(e,t){try{u(i[e](t))}catch(e){p(o[0][3],e)}}function u(e){e.value instanceof t?Promise.resolve(e.value.v).then(d,f):p(o[0][2],e)}function d(e){l(`next`,e)}function f(e){l(`throw`,e)}function p(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}},r=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,`__esModule`,{value:!0}),e.createSseClient=void 0,e.createSseClient=e=>{var{onRequest:i,onSseError:a,onSseEvent:o,responseTransformer:s,responseValidator:c,sseDefaultRetryDelay:l,sseMaxRetryAttempts:u,sseMaxRetryDelay:d,sseSleepFn:f,url:p}=e,m=r(e,[`onRequest`,`onSseError`,`onSseEvent`,`responseTransformer`,`responseValidator`,`sseDefaultRetryDelay`,`sseMaxRetryAttempts`,`sseMaxRetryDelay`,`sseSleepFn`,`url`]);let h,g=f??(e=>new Promise(t=>setTimeout(t,e)));return{stream:function(){return n(this,arguments,function*(){let e=l??3e3,n=0,r=m.signal??new AbortController().signal;for(;!r.aborted;){n++;let l=m.headers instanceof Headers?m.headers:new Headers(m.headers);h!==void 0&&l.set(`Last-Event-ID`,h);try{let n=Object.assign(Object.assign({redirect:`follow`},m),{body:m.serializedBody,headers:l,signal:r}),a=new Request(p,n);i&&(a=yield t(i(p,n)));let u=yield t((m.fetch??globalThis.fetch)(a));if(!u.ok)throw Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw Error(`No body in SSE response`);let d=u.body.pipeThrough(new TextDecoderStream).getReader(),f=``,g=()=>{try{d.cancel()}catch{}};r.addEventListener(`abort`,g);try{for(;;){let{done:n,value:r}=yield t(d.read());if(n)break;f+=r,f=f.replace(/\r\n/g,`
|
|
7
|
+
`).replace(/\r/g,`
|
|
8
|
+
`);let i=f.split(`
|
|
9
|
+
|
|
10
|
+
`);f=i.pop()??``;for(let n of i){let r=n.split(`
|
|
11
|
+
`),i=[],a;for(let t of r)if(t.startsWith(`data:`))i.push(t.replace(/^data:\s*/,``));else if(t.startsWith(`event:`))a=t.replace(/^event:\s*/,``);else if(t.startsWith(`id:`))h=t.replace(/^id:\s*/,``);else if(t.startsWith(`retry:`)){let n=Number.parseInt(t.replace(/^retry:\s*/,``),10);Number.isNaN(n)||(e=n)}let l,u=!1;if(i.length){let e=i.join(`
|
|
12
|
+
`);try{l=JSON.parse(e),u=!0}catch{l=e}}u&&(c&&(yield t(c(l))),s&&(l=yield t(s(l)))),o?.({data:l,event:a,id:h,retry:e}),i.length&&(yield yield t(l))}}}finally{r.removeEventListener(`abort`,g),d.releaseLock()}break}catch(r){if(a?.(r),u!==void 0&&n>=u)break;yield t(g(Math.min(e*2**(n-1),d??3e4)))}}})}()}}})),ef=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeObjectParam=e.serializePrimitiveParam=e.serializeArrayParam=e.separatorObjectExplode=e.separatorArrayNoExplode=e.separatorArrayExplode=void 0,e.separatorArrayExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.separatorArrayNoExplode=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},e.separatorObjectExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.serializeArrayParam=({allowReserved:t,explode:n,name:r,style:i,value:a})=>{if(!n){let n=(t?a:a.map(e=>encodeURIComponent(e))).join((0,e.separatorArrayNoExplode)(i));switch(i){case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;case`simple`:return n;default:return`${r}=${n}`}}let o=(0,e.separatorArrayExplode)(i),s=a.map(n=>i===`label`||i===`simple`?t?n:encodeURIComponent(n):(0,e.serializePrimitiveParam)({allowReserved:t,name:r,value:n})).join(o);return i===`label`||i===`matrix`?o+s:s},e.serializePrimitiveParam=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},e.serializeObjectParam=({allowReserved:t,explode:n,name:r,style:i,value:a,valueOnly:o})=>{if(a instanceof Date)return o?a.toISOString():`${r}=${a.toISOString()}`;if(i!==`deepObject`&&!n){let e=[];Object.entries(a).forEach(([n,r])=>{e=[...e,n,t?r:encodeURIComponent(r)]});let n=e.join(`,`);switch(i){case`form`:return`${r}=${n}`;case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;default:return n}}let s=(0,e.separatorObjectExplode)(i),c=Object.entries(a).map(([n,a])=>(0,e.serializePrimitiveParam)({allowReserved:t,name:i===`deepObject`?`${r}[${n}]`:n,value:a})).join(s);return i===`label`||i===`matrix`?s+c:c}})),tf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getUrl=e.defaultPathSerializer=e.PATH_PARAM_RE=void 0,e.getValidRequestBody=n;var t=ef();e.PATH_PARAM_RE=/\{[^{}]+\}/g,e.defaultPathSerializer=({path:n,url:r})=>{let i=r,a=r.match(e.PATH_PARAM_RE);if(a)for(let e of a){let r=!1,a=e.substring(1,e.length-1),o=`simple`;a.endsWith(`*`)&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(`.`)?(a=a.substring(1),o=`label`):a.startsWith(`;`)&&(a=a.substring(1),o=`matrix`);let s=n[a];if(s==null)continue;if(Array.isArray(s)){i=i.replace(e,(0,t.serializeArrayParam)({explode:r,name:a,style:o,value:s}));continue}if(typeof s==`object`){i=i.replace(e,(0,t.serializeObjectParam)({explode:r,name:a,style:o,value:s,valueOnly:!0}));continue}if(o===`matrix`){i=i.replace(e,`;${(0,t.serializePrimitiveParam)({name:a,value:s})}`);continue}let c=encodeURIComponent(o===`label`?`.${s}`:s);i=i.replace(e,c)}return i},e.getUrl=({baseUrl:t,path:n,query:r,querySerializer:i,url:a})=>{let o=a.startsWith(`/`)?a:`/${a}`,s=(t??``)+o;n&&(s=(0,e.defaultPathSerializer)({path:n,url:s}));let c=r?i(r):``;return c.startsWith(`?`)&&(c=c.substring(1)),c&&(s+=`?${c}`),s};function n(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}})),nf=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.getAuthToken=void 0,e.getAuthToken=(e,n)=>t(void 0,void 0,void 0,function*(){let t=typeof n==`function`?yield n(e):n;if(t)return e.scheme===`bearer`?`Bearer ${t}`:e.scheme===`basic`?`Basic ${btoa(t)}`:t})})),rf=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.mergeHeaders=e.axiosHeadersKeywords=e.mergeConfigs=e.buildUrl=e.setAuthParams=e.createQuerySerializer=void 0;var r=nf(),i=ef(),a=tf();e.createQuerySerializer=(e={})=>{var{parameters:t={}}=e,r=n(e,[`parameters`]);return e=>{let n=[];if(e&&typeof e==`object`)for(let a in e){let o=e[a];if(o==null)continue;let s=t[a]||r;if(Array.isArray(o)){let e=(0,i.serializeArrayParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`form`,value:o},s.array));e&&n.push(e)}else if(typeof o==`object`){let e=(0,i.serializeObjectParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`deepObject`,value:o},s.object));e&&n.push(e)}else{let e=(0,i.serializePrimitiveParam)({allowReserved:s.allowReserved,name:a,value:o});e&&n.push(e)}}return n.join(`&`)}};var o=(e,t)=>t?t in e.headers||e.query?.[t]?!0:`Cookie`in e.headers&&e.headers.Cookie&&typeof e.headers.Cookie==`string`?e.headers.Cookie.includes(`${t}=`):!1:!1;e.setAuthParams=e=>t(void 0,void 0,void 0,function*(){var{security:t}=e,i=n(e,[`security`]);for(let e of t){if(o(i,e.name))continue;let t=yield(0,r.getAuthToken)(e,i.auth);if(!t)continue;let n=e.name??`Authorization`;switch(e.in){case`query`:i.query||={},i.query[n]=t;break;case`cookie`:{let e=`${n}=${t}`;`Cookie`in i.headers&&i.headers.Cookie?i.headers.Cookie=`${i.headers.Cookie}; ${e}`:i.headers.Cookie=e;break}default:i.headers[n]=t;break}}}),e.buildUrl=t=>{let n=t.axios?.defaults?.baseURL,r=t.baseURL&&typeof t.baseURL==`string`?t.baseURL:n;return(0,a.getUrl)({baseUrl:r,path:t.path,query:t.paramsSerializer?void 0:t.query,querySerializer:typeof t.querySerializer==`function`?t.querySerializer:(0,e.createQuerySerializer)(t.querySerializer),url:t.url})},e.mergeConfigs=(t,n)=>{let r=Object.assign(Object.assign({},t),n);return r.headers=(0,e.mergeHeaders)(t.headers,n.headers),r},e.axiosHeadersKeywords=[`common`,`delete`,`get`,`head`,`patch`,`post`,`put`],e.mergeHeaders=(...t)=>{let n={};for(let r of t){if(!r||typeof r!=`object`)continue;let t=Object.entries(r);for(let[r,i]of t)if(e.axiosHeadersKeywords.includes(r)&&typeof i==`object`)n[r]=Object.assign(Object.assign({},n[r]),i);else if(i===null)delete n[r];else if(Array.isArray(i))for(let e of i)n[r]=[...n[r]??[],e];else i!==void 0&&(n[r]=typeof i==`object`?JSON.stringify(i):i)}return n},e.createConfig=(e={})=>Object.assign({},e)})),af=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.createClient=void 0;var i=r(Qd()),a=$d(),o=tf(),s=rf();e.createClient=(e={})=>{let r=(0,s.mergeConfigs)((0,s.createConfig)(),e),c;if(r.axios&&!(`Axios`in r.axios))c=r.axios;else{let{auth:e}=r,t=n(r,[`auth`]);c=i.default.create(t)}let l=()=>Object.assign({},r),u=e=>(r=(0,s.mergeConfigs)(r,e),c.defaults=Object.assign(Object.assign(Object.assign({},c.defaults),r),{headers:(0,s.mergeHeaders)(c.defaults.headers,r.headers)}),l()),d=e=>t(void 0,void 0,void 0,function*(){let t=Object.assign(Object.assign(Object.assign({},r),e),{axios:e.axios??r.axios??c,headers:(0,s.mergeHeaders)(r.headers,e.headers)});return t.security&&(yield(0,s.setAuthParams)(Object.assign(Object.assign({},t),{security:t.security}))),t.requestValidator&&(yield t.requestValidator(t)),t.body!==void 0&&t.bodySerializer&&(t.body=t.bodySerializer(t.body)),{opts:t,url:(0,s.buildUrl)(t)}}),f=e=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(e);try{let e=t.axios,{auth:i}=t,a=n(t,[`auth`]),s=yield e(Object.assign(Object.assign({},a),{baseURL:``,data:(0,o.getValidRequestBody)(t),headers:t.headers,params:t.paramsSerializer?t.query:void 0,url:r})),{data:c}=s;return t.responseType===`json`&&(t.responseValidator&&(yield t.responseValidator(c)),t.responseTransformer&&(c=yield t.responseTransformer(c))),Object.assign(Object.assign({},s),{data:c??{}})}catch(e){let n=e;if(t.throwOnError)throw n;return n.error=n.response?.data??{},n}}),p=e=>t=>f(Object.assign(Object.assign({},t),{method:e})),m=e=>n=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(n);return(0,a.createSseClient)(Object.assign(Object.assign({},t),{body:t.body,headers:t.headers,method:e,serializedBody:(0,o.getValidRequestBody)(t),signal:t.signal,url:r}))});return{buildUrl:e=>(0,s.buildUrl)(Object.assign(Object.assign({axios:c},r),e)),connect:p(`CONNECT`),delete:p(`DELETE`),get:p(`GET`),getConfig:l,head:p(`HEAD`),instance:c,options:p(`OPTIONS`),patch:p(`PATCH`),post:p(`POST`),put:p(`PUT`),request:f,setConfig:u,sse:{connect:m(`CONNECT`),delete:m(`DELETE`),get:m(`GET`),head:m(`HEAD`),options:m(`OPTIONS`),patch:m(`PATCH`),post:m(`POST`),put:m(`PUT`),trace:m(`TRACE`)},trace:p(`TRACE`)}}})),of=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.createClient=e.serializeQueryKeyValue=e.buildClientParams=e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=Yd();Object.defineProperty(e,`formDataBodySerializer`,{enumerable:!0,get:function(){return t.formDataBodySerializer}}),Object.defineProperty(e,`jsonBodySerializer`,{enumerable:!0,get:function(){return t.jsonBodySerializer}}),Object.defineProperty(e,`urlSearchParamsBodySerializer`,{enumerable:!0,get:function(){return t.urlSearchParamsBodySerializer}});var n=Xd();Object.defineProperty(e,`buildClientParams`,{enumerable:!0,get:function(){return n.buildClientParams}});var r=Zd();Object.defineProperty(e,`serializeQueryKeyValue`,{enumerable:!0,get:function(){return r.serializeQueryKeyValue}});var i=af();Object.defineProperty(e,`createClient`,{enumerable:!0,get:function(){return i.createClient}});var a=rf();Object.defineProperty(e,`createConfig`,{enumerable:!0,get:function(){return a.createConfig}})})),sf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.client=void 0;var t=of();e.client=(0,t.createClient)((0,t.createConfig)())})),cf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.healthCheck=e.deleteEntity=e.updateViewPermissions=e.updateRelationPermissions=e.updateSourcePermissions=e.updateWebsitePermissions=e.updateEventPermissions=e.updateOrganizationPermissions=e.updatePersonPermissions=e.queryViews=e.updateView=e.getView=e.deleteView=e.connectEntityToView=e.getViewEntities=e.updateRelation=e.getRelation=e.deleteRelation=e.updateSource=e.getSource=e.updateWebsite=e.getWebsite=e.updateEvent=e.getEvent=e.updateOrganization=e.getOrganization=e.updatePerson=e.getPerson=e.createView=e.createRelation=e.createSource=e.createWebsite=e.createEvent=e.createOrganization=e.createPerson=void 0;var t=sf();e.createPerson=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/person`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createOrganization=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/organization`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createEvent=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/event`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createWebsite=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/website`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createSource=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/source`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createRelation=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/relation`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createView=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/view`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getPerson=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/person/{id}`},e)),e.updatePerson=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/person/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getOrganization=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/organization/{id}`},e)),e.updateOrganization=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/organization/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getEvent=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/event/{id}`},e)),e.updateEvent=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/event/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getWebsite=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/website/{id}`},e)),e.updateWebsite=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/website/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getSource=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/source/{id}`},e)),e.updateSource=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/source/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteRelation=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/relation/{id}`},e)),e.getRelation=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/relation/{id}`},e)),e.updateRelation=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/relation/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getViewEntities=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/view/{id}/entities`},e)),e.connectEntityToView=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}/entities`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteView=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/view/{id}`},e)),e.getView=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/view/{id}`},e)),e.updateView=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.queryViews=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/views`},e)),e.updatePersonPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/person/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateOrganizationPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/organization/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateEventPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/event/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateWebsitePermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/website/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateSourcePermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/source/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateRelationPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/relation/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateViewPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteEntity=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/entity/{id}`},e)),e.healthCheck=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/health/osint/crud`},e))}));o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateWebsitePermissions=e.updateWebsite=e.updateViewPermissions=e.updateView=e.updateSourcePermissions=e.updateSource=e.updateRelationPermissions=e.updateRelation=e.updatePersonPermissions=e.updatePerson=e.updateOrganizationPermissions=e.updateOrganization=e.updateEventPermissions=e.updateEvent=e.queryViews=e.healthCheck=e.getWebsite=e.getViewEntities=e.getView=e.getSource=e.getRelation=e.getPerson=e.getOrganization=e.getEvent=e.deleteView=e.deleteRelation=e.deleteEntity=e.createWebsite=e.createView=e.createSource=e.createRelation=e.createPerson=e.createOrganization=e.createEvent=e.connectEntityToView=void 0;var t=cf();Object.defineProperty(e,`connectEntityToView`,{enumerable:!0,get:function(){return t.connectEntityToView}}),Object.defineProperty(e,`createEvent`,{enumerable:!0,get:function(){return t.createEvent}}),Object.defineProperty(e,`createOrganization`,{enumerable:!0,get:function(){return t.createOrganization}}),Object.defineProperty(e,`createPerson`,{enumerable:!0,get:function(){return t.createPerson}}),Object.defineProperty(e,`createRelation`,{enumerable:!0,get:function(){return t.createRelation}}),Object.defineProperty(e,`createSource`,{enumerable:!0,get:function(){return t.createSource}}),Object.defineProperty(e,`createView`,{enumerable:!0,get:function(){return t.createView}}),Object.defineProperty(e,`createWebsite`,{enumerable:!0,get:function(){return t.createWebsite}}),Object.defineProperty(e,`deleteEntity`,{enumerable:!0,get:function(){return t.deleteEntity}}),Object.defineProperty(e,`deleteRelation`,{enumerable:!0,get:function(){return t.deleteRelation}}),Object.defineProperty(e,`deleteView`,{enumerable:!0,get:function(){return t.deleteView}}),Object.defineProperty(e,`getEvent`,{enumerable:!0,get:function(){return t.getEvent}}),Object.defineProperty(e,`getOrganization`,{enumerable:!0,get:function(){return t.getOrganization}}),Object.defineProperty(e,`getPerson`,{enumerable:!0,get:function(){return t.getPerson}}),Object.defineProperty(e,`getRelation`,{enumerable:!0,get:function(){return t.getRelation}}),Object.defineProperty(e,`getSource`,{enumerable:!0,get:function(){return t.getSource}}),Object.defineProperty(e,`getView`,{enumerable:!0,get:function(){return t.getView}}),Object.defineProperty(e,`getViewEntities`,{enumerable:!0,get:function(){return t.getViewEntities}}),Object.defineProperty(e,`getWebsite`,{enumerable:!0,get:function(){return t.getWebsite}}),Object.defineProperty(e,`healthCheck`,{enumerable:!0,get:function(){return t.healthCheck}}),Object.defineProperty(e,`queryViews`,{enumerable:!0,get:function(){return t.queryViews}}),Object.defineProperty(e,`updateEvent`,{enumerable:!0,get:function(){return t.updateEvent}}),Object.defineProperty(e,`updateEventPermissions`,{enumerable:!0,get:function(){return t.updateEventPermissions}}),Object.defineProperty(e,`updateOrganization`,{enumerable:!0,get:function(){return t.updateOrganization}}),Object.defineProperty(e,`updateOrganizationPermissions`,{enumerable:!0,get:function(){return t.updateOrganizationPermissions}}),Object.defineProperty(e,`updatePerson`,{enumerable:!0,get:function(){return t.updatePerson}}),Object.defineProperty(e,`updatePersonPermissions`,{enumerable:!0,get:function(){return t.updatePersonPermissions}}),Object.defineProperty(e,`updateRelation`,{enumerable:!0,get:function(){return t.updateRelation}}),Object.defineProperty(e,`updateRelationPermissions`,{enumerable:!0,get:function(){return t.updateRelationPermissions}}),Object.defineProperty(e,`updateSource`,{enumerable:!0,get:function(){return t.updateSource}}),Object.defineProperty(e,`updateSourcePermissions`,{enumerable:!0,get:function(){return t.updateSourcePermissions}}),Object.defineProperty(e,`updateView`,{enumerable:!0,get:function(){return t.updateView}}),Object.defineProperty(e,`updateViewPermissions`,{enumerable:!0,get:function(){return t.updateViewPermissions}}),Object.defineProperty(e,`updateWebsite`,{enumerable:!0,get:function(){return t.updateWebsite}}),Object.defineProperty(e,`updateWebsitePermissions`,{enumerable:!0,get:function(){return t.updateWebsitePermissions}})}))();var lf=[{value:`announcement`,label:`announcement`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M18.5 10H22v2h-3.5zm.05-1.17 1.5-1 1.5-1L21 6l-.55-.83-1.5 1-1.5 1L18 8zm0 4.34L18 14l-.55.83 1.5 1 1.5 1L21 16l.55-.83-1.5-1zM15 8.18V4c0-.37-.2-.71-.53-.88s-.72-.15-1.03.05L7.69 7h-1.7c-2.21 0-4 1.79-4 4 0 1.52.86 2.82 2.1 3.5l1.94 6.77 1.92-.55-1.64-5.73h1.37l5.75 3.83c.17.11.36.17.55.17.16 0 .32-.04.47-.12.33-.17.53-.51.53-.88v-4.18c1.16-.41 2-1.51 2-2.82s-.84-2.4-2-2.82Zm-2 7.95-4.45-2.96A1 1 0 0 0 8 13H6c-1.1 0-2-.9-2-2s.9-2 2-2h2c.2 0 .39-.06.55-.17L13 5.87z`})})},{value:`conversation`,label:`conversation`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,children:[(0,u.jsx)(`path`,{d:`m12.593 23.258-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z`}),(0,u.jsx)(`path`,{fill:`currentColor`,d:`M6.857 2.445C8 3.278 8.89 4.415 9.65 5.503l.442.644.417.615a1.504 1.504 0 0 1-.256 1.986l-1.951 1.449a.48.48 0 0 0-.142.616c.442.803 1.228 1.999 2.128 2.899s2.153 1.738 3.012 2.23a.483.483 0 0 0 .644-.162l1.27-1.933a1.503 1.503 0 0 1 2.056-.332l.663.459c1.239.86 2.57 1.837 3.588 3.14a1.47 1.47 0 0 1 .189 1.484c-.837 1.953-2.955 3.616-5.158 3.535l-.3-.017-.233-.02-.258-.03-.281-.038-.305-.05-.16-.03-.336-.072-.176-.04-.366-.094-.385-.11-.402-.13c-1.846-.626-4.189-1.856-6.593-4.26s-3.633-4.746-4.259-6.592l-.13-.402-.11-.385-.094-.366-.078-.346a12 12 0 0 1-.063-.326l-.05-.305-.04-.281-.029-.258-.02-.233-.016-.3c-.081-2.196 1.6-4.329 3.544-5.162a1.47 1.47 0 0 1 1.445.159m8.135 3.595.116.013a3.5 3.5 0 0 1 2.858 2.96 1 1 0 0 1-1.958.393l-.023-.115a1.5 1.5 0 0 0-1.07-1.233l-.155-.035a1 1 0 0 1 .232-1.983M15 3a6 6 0 0 1 6 6 1 1 0 0 1-1.993.117L19 9a4 4 0 0 0-3.738-3.991L15 5a1 1 0 1 1 0-2`})]})})},{value:`trade`,label:`trade`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M3.005 3.003h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1v-16a1 1 0 0 1 1-1m9 6h-4v2h9l-5-5zm-5 4 5 5v-3h4v-2z`})})},{value:`oil`,label:`oil`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M21 13v-2h-2V5h2V3H3v2h2v6H3v2h2v6H3v2h18v-2h-2v-6zm-9 3c-1.66 0-3-1.32-3-2.95 0-1.3.52-1.67 3-4.55 2.47 2.86 3 3.24 3 4.55 0 1.63-1.34 2.95-3 2.95`})})},{value:`exchange`,label:`exchange`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,children:[(0,u.jsx)(`path`,{d:`M20 13V8h-5`}),(0,u.jsx)(`path`,{d:`m20 8-5 5c-.883.883-1.324 1.324-1.865 1.373q-.135.012-.27 0c-.541-.05-.982-.49-1.865-1.373s-1.324-1.324-1.865-1.373a1.5 1.5 0 0 0-.27 0c-.541.05-.982.49-1.865 1.373l-3 3`})]})})},{value:`supplychain-risk`,label:`supplychain-risk`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 32 32`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M28.457 3.54a5.26 5.26 0 0 0-7.44 0L18.04 6.518a5.27 5.27 0 0 0-1.301 5.293l2.484-2.484c.329-.329.722-.55 1.14-.666l2.886-2.887a2.104 2.104 0 1 1 2.976 2.977l-2.585 2.585a2.58 2.58 0 0 1-.753 1.654l-2.365 2.364a5.26 5.26 0 0 0 4.959-1.393l2.976-2.977a5.26 5.26 0 0 0 0-7.442`}),(0,u.jsx)(`path`,{d:`m22.18 12.282-3.927 3.926-.003.002c-.47.469-1.355.343-1.974-.28-.62-.623-.74-1.507-.27-1.976l.038-.035 3.886-3.886a1.59 1.59 0 0 1 2.25 0 1.59 1.59 0 0 1 0 2.249M11.782 16.73a5.26 5.26 0 0 0-5.266 1.31L3.54 21.018a5.263 5.263 0 0 0 7.44 7.442l2.977-2.976a5.26 5.26 0 0 0 1.388-4.989L12.85 22.99a2.58 2.58 0 0 1-1.612.747l-2.49 2.49a2.11 2.11 0 0 1-2.976 0 2.11 2.11 0 0 1 0-2.977l2.737-2.737a2.6 2.6 0 0 1 .678-1.186z`}),(0,u.jsx)(`path`,{d:`M9.894 20.034a1.59 1.59 0 0 0 0 2.249 1.595 1.595 0 0 0 2.249 0l3.231-3.232.052-.047c.471-.469.35-1.354-.27-1.977-.619-.623-1.503-.748-1.974-.28l-.042.045-.003-.002zM12.01 4.762a1 1 0 1 0-1.94.487l.96 2.964a1 1 0 1 0 1.94-.487zm-7.717.487a.996.996 0 0 1 1.414 0l4 4.02a1.01 1.01 0 0 1 0 1.421.996.996 0 0 1-1.414 0l-4-4.02a1.01 1.01 0 0 1 0-1.421m-.018 5.774a1.006 1.006 0 0 0-.55 1.933l3.5 1.005a1.006 1.006 0 0 0 .55-1.933zm24.686 9.263a1 1 0 0 1-1.236.69l-3.5-1.004a1.006 1.006 0 0 1 .55-1.933l3.5 1.005c.53.152.838.709.686 1.242m-2.668 6.465a.996.996 0 0 0 1.414 0 1.01 1.01 0 0 0 0-1.421l-4-4.02a.996.996 0 0 0-1.414 0 1.01 1.01 0 0 0 0 1.42zm-5.09 1.219a1 1 0 0 1-1.213-.732l-.96-2.964a1 1 0 1 1 1.94-.488l.96 2.965a1.005 1.005 0 0 1-.727 1.219`})]})},{value:`ship`,label:`ship`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 64 64`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M25.755 34.964h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451m5.365 0h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451M20 29.04h1.327v2.722H20zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.367 0h1.326v2.722h-1.326zm3.363 0h1.327v2.722h-1.327zm3.365 0h1.327v2.722h-1.327zM13.604 13.073a7 7 0 0 1-.882-.88l-.348-.431-.542.09c-.929.157-1.818.15-2.7-.121a5.6 5.6 0 0 1-1.315-.605c-.443-.262-.856-.597-1.288-.984.056.591.309 1.139.634 1.649.344.495.788.954 1.332 1.284.932.594 2.081.771 3.149.66.303.299.613.534.967.759.487.308 1.03.534 1.597.663 1.138.254 2.363.009 3.186-.686-1.073-.027-1.963-.237-2.722-.668a6.4 6.4 0 0 1-1.068-.73m11.543 3.474a2.9 2.9 0 0 1-.761-.484 3.2 3.2 0 0 1-.53-.604 3.7 3.7 0 0 1-.361-.659l-.288-.771-.782.173c-.75.165-1.463.257-2.158.16-.693-.091-1.417-.401-2.113-1.055-.023.983.674 1.954 1.638 2.434.744.37 1.566.459 2.338.385.123.178.258.339.416.503.332.329.744.596 1.191.741.907.298 1.848.084 2.465-.458-.4-.122-.752-.216-1.055-.365`}),(0,u.jsx)(`path`,{d:`M56.561 51.763c.12-3.085.999-4.501 2.327-6.646l.32-.517c2.471-4.02 3.308-7.156 2.486-9.325-.564-1.493-1.703-1.989-2.018-2.101-1.518-.654-3.778-1.002-6.539-1.002-1.209 0-3.064.078-5.445.402v-5.809h-3.649v-2.674h-8.006l-2.777-5.6c-.109-.047-.223-.081-.334-.123a3.2 3.2 0 0 0-1.767-2.534 5.03 5.03 0 0 0-3.091-4.452 5.83 5.83 0 0 0-5.444-3.752q-.665.001-1.31.152a6.72 6.72 0 0 0-4.742-2.177C15.187 3.391 12.739 2 10.106 2 5.892 2 2.463 5.456 2.463 9.704c0 4.246 3.428 7.702 7.643 7.702a7.5 7.5 0 0 0 1.525-.157 6.66 6.66 0 0 0 4.734 1.959 6.66 6.66 0 0 0 3.058-.739c.938.62 2.03.958 3.168.965a4.9 4.9 0 0 0 2.449 1.433l-.402 3.227H20.88l-4.46 1.53v2.87l-2.737 1.257v5.185h2.683v2.225l-6.259 3.153v6.14c-3.893 1.11-6.329 1.449-6.378 1.455l-.803.106v3.753H2V62h59.077V51.767H56.56zM23.21 17.979c-.193.026-.385.06-.585.06a4.44 4.44 0 0 1-3.101-1.268 5.32 5.32 0 0 1-3.159 1.042 5.34 5.34 0 0 1-4.264-2.134 6.2 6.2 0 0 1-1.995.332c-3.457 0-6.258-2.823-6.258-6.307s2.801-6.309 6.258-6.309c2.51 0 4.668 1.491 5.666 3.64a5.35 5.35 0 0 1 5.059 2.376 4.4 4.4 0 0 1 1.794-.384c2.113 0 3.872 1.481 4.34 3.467a3.594 3.594 0 0 1 2.813 3.517c0 .318-.053.62-.131.914.045-.003.087-.013.131-.013.711 0 1.318.421 1.607 1.025a9 9 0 0 0-1.607-.153c-1.414 0-3.281.341-4.471.932l-.094.755a3.6 3.6 0 0 1-2.003-1.492m-5.056 9.717h28.615v5.018a47 47 0 0 0-2.218.391H18.154zm15.234 8.781a73 73 0 0 0-7.457 3.506 82 82 0 0 1-5.094 2.521v-8.469h19.787a63 63 0 0 0-3.764 1.151.44.44 0 0 0-.375-.222h-2.683a.45.45 0 0 0-.446.451v.901q.001.086.032.161M17.26 40.261c0-.248.184-.535.405-.642l1.873-.88c.223-.106.404.011.404.259v2.043a.7.7 0 0 1-.418.608l-1.845.694c-.231.087-.42-.045-.42-.293zm-3.13 1.471c0-.248.184-.537.406-.642l1.426-.67c.222-.105.404.012.404.26v1.706a.7.7 0 0 1-.418.608l-1.397.526c-.23.086-.42-.046-.42-.294v-1.494zM11 43.202c0-.248.184-.535.406-.64l1.426-.671c.222-.105.404.012.404.26v1.414a.7.7 0 0 1-.418.608l-1.397.525c-.23.086-.42-.045-.42-.293v-1.203zm-6.229 6.424c2.654-.458 11.47-2.302 22.031-8.003 12.682-6.85 22.642-7.589 26.336-7.589 2.496 0 4.57.307 5.84.864l.107.038c.005.002.59.22.885 1.001.096.252.174.612.178 1.094a6.5 6.5 0 0 0-1.75-1.079c-5.538-1.563-18.201-.427-32.242 7.156C16.114 48.53 7.52 49.816 4.771 50.103zm49.813 6.507c-3.188.634-16.266 3.075-28.256 3.075-6.394 0-11.487-.687-15.141-2.04-1.406-.521-3.584-1.54-6.416-4.384v-1.779c2.787-.285 11.582-1.581 21.806-7.102 13.619-7.354 26.186-8.55 31.494-7.112.564.229 1.369.665 1.961 1.384-.238 1.25-.895 3.008-2.395 5.446l-.314.511c-1.379 2.223-2.468 3.98-2.606 7.546a98 98 0 0 0-.133 4.455`})]})},{value:`truck`,label:`truck`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M4 4a2 2 0 0 0-2 2v9a1 1 0 0 0 1 1h.535a3.5 3.5 0 1 0 6.93 0h3.07a3.5 3.5 0 1 0 6.93 0H21a1 1 0 0 0 1-1v-4a1 1 0 0 0-.106-.447l-2-4A1 1 0 0 0 19 6h-5a2 2 0 0 0-2-2zm14.192 11.59.016.02a1.5 1.5 0 1 1-.016-.021Zm-10 0 .016.02a1.5 1.5 0 1 1-.016-.021Zm5.806-5.572v-2.02h4.396l1 2.02z`,clipRule:`evenodd`})})},{value:`train`,label:`train`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M384 32h-64a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16h-64c-16 0-32 16-32 32v288c0 23.92 160 80 160 80s160-56.74 160-80V64c0-16-16-32-32-32M256 352a48 48 0 1 1 48-48 48 48 0 0 1-48 48m112-152a8 8 0 0 1-8 8H152a8 8 0 0 1-8-8v-80a8 8 0 0 1 8-8h208a8 8 0 0 1 8 8Z`}),(0,u.jsx)(`path`,{d:`m314 432 15.32 16H182.58L198 432l-32-13-76.62 77h45.2l16-16h210.74l16 16h45.3l-76.36-77.75z`})]})},{value:`crime`,label:`crime`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20.24 6.76c-1.84-1.85-4.59-2.23-6.82-1.17l-.96-.96a.996.996 0 0 0-1.41 0l-.08.09C10.83 3.75 10 3 9 3c-1.1 0-2 .9-2 2 0 .09 0 .18.03.26C6.42 5.61 6 6.25 6 7c0 .46.16.87.42 1.21A.97.97 0 0 0 6 9v1.35c-2.33.82-4 3.04-4 5.65 0 3.31 2.69 6 6 6s6-2.69 6-6a5.99 5.99 0 0 0-4-5.65V9a.97.97 0 0 0-.42-.79c.26-.34.42-.75.42-1.21 0-.09 0-.18-.03-.26.18-.1.33-.24.46-.36C11.36 6.88 12 7.86 12 9v.08c.13.07.25.17.38.25.19-.42.45-.83.79-1.16a4.01 4.01 0 0 1 5.66 0 4.01 4.01 0 0 1 0 5.66c-.8.8-1.83 1.17-2.9 1.17.07.32.07.66.07 1s-.03.67-.07 1c1.57 0 3.12-.57 4.31-1.76a5.98 5.98 0 0 0 0-8.48M9 4c.55 0 1 .45 1 1 0 .33-.17.61-.42.79C9.22 5.31 8.65 5 8 5c0-.55.45-1 1-1M7.42 6.21c.36.48.93.79 1.58.79 0 .55-.45 1-1 1s-1-.45-1-1c0-.33.17-.61.42-.79M12 16c0 2.21-1.79 4-4 4s-4-1.79-4-4 1.79-4 4-4 4 1.79 4 4`})})},{value:`shot`,label:`shot`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`m79.238 115.768-28.51 67.863h406.15l-.273-67.862h-263.83v55.605h-15v-55.605h-16.68v55.605H146.1v-55.605h-17.434v55.605h-15v-55.605H79.238zm387.834 15.96v40.66h18.688v-40.66zM56.768 198.63l20.566 32.015L28.894 406.5l101.68 7.174 21.54-97.996h115.74l14.664-80.252 174.55-3.873-.13-32.922H56.767zm206.672 37.22-11.17 61.142h-96.05l12.98-59.05 12.53-.278-2.224 35.5 14.262 13.576 1.003-33.65 24.69-16.264 43.98-.976z`})})},{value:`bomb`,label:`bomb`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M288.625 19.625C252.95 45.54 233.16 81.95 226.655 126.938l41.095 23.687c9.348-5.82 17.33-12.415 24.22-19.656 4.383 22.757 20.633 45.578 39.874 56.686l65.5 37.813c24.465 14.124 54.433 9.697 73.812-8.907l7.97 4.593 17.312-30-7.938-4.594c6.426-26.087-4.752-54.28-29.22-68.406l-65.5-37.812c-19.76-11.41-48.63-13.89-70.78-5.53 2.947-10.077 5.108-20.605 6.688-31.47l-41.063-23.72zm12.313 174.97c-49.957 19.17-84.558 55.62-106.313 106.31l40.688 40.72c12.79-3.888 24.24-9.11 34.593-15.438-2 28.05 9.847 59.878 28.906 78.938l64.907 64.906c24.242 24.245 60.782 28.477 89.342 12.75l7.875 7.876 29.72-29.72-7.844-7.873c15.736-28.564 11.465-65.097-12.782-89.344l-64.905-64.908c-19.58-19.58-52.628-31.56-81.22-28.718 6.62-10.884 12.457-22.543 17.72-34.78l-40.688-40.72zm-182.157.655c-35.453-.015-68.357 12.318-99 35.22l12.72 47.468c11.113 2.584 21.805 3.602 32.156 3.343-13.452 19.88-18.267 48.465-12.312 70.69l20.28 75.686c7.576 28.27 32.77 46.972 60.595 47.53l2.468 9.19 34.656-9.282-2.47-9.188c23.81-14.4 36.262-43.205 28.69-71.47l-20.25-75.686c-6.117-22.822-25.445-45.77-47.783-55.875 9.534-5.22 18.83-11.36 27.94-18.156l-12.72-47.44c-8.458-1.34-16.787-2.027-24.97-2.03`})})},{value:`missile`,label:`missile`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M490.74 21.411c-8.947.782-20.72 3.22-33.566 7.781-16.386 5.82-34.345 14.758-50.969 25.893l26.783 36.525c15.712-12.52 29.853-26.925 40.428-40.757 8.265-10.811 14.055-21.243 17.324-29.442m-99.265 44.026L57.609 310.24l8.28 11.291 83.062-60.906 10.643 14.516-83.063 60.906 8.28 11.29 333.865-244.806zm-18.252 92.746L203.164 282.876l13.924 7.15L375.855 173.61zm-48.602 75.316-35.775 26.234c3.899 3.046 8.821 4.856 14.213 4.856 12.809 0 23-10.191 23-23 0-2.855-.51-5.579-1.438-8.09m-255.267 7.527L21.26 260.67l25.705 35.057 65.54-48.057zm226.705 40.948v30.615h14v-30.615a41 41 0 0 1-7 .615c-2.386 0-4.723-.219-7-.615m-135.065 31.822-65.54 48.058 25.706 35.06 33.194-39.964zm-117.9 7.09-11.291 8.279 27.2 37.096 11.29-8.28zm236.965 9.703v78h46v-78zm-18 54.336-61.426 71.664h23.709l37.717-44.004zm82 0v27.66l37.716 44.004h23.71zm-192 89.664v16h94v-16zm208 0v16h94v-16z`})})},{value:`plane`,label:`plane`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20.56 3.91c.59.59.59 1.54 0 2.12l-3.89 3.89 2.12 9.19-1.41 1.42-3.88-7.43L9.6 17l.36 2.47-1.07 1.06-1.76-3.18-3.19-1.77L5 14.5l2.5.37L11.37 11 3.94 7.09l1.42-1.41 9.19 2.12 3.89-3.89c.56-.58 1.56-.58 2.12 0`})})},{value:`naval`,label:`naval`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`m496.616 372.639 70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361M192 128h256v87.531l-118.208-37.995a32 32 0 0 0-19.584 0L192 215.531z`})})},{value:`tank`,label:`tank`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20 12H4v-1h2l1-5h5l1 5h7zm-6.78-5 .4 2H22V7zM22 16a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3 3 3 0 0 1 3-3h14a3 3 0 0 1 3 3M6 16a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1m7 0a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1m7 0a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1`})})},{value:`infantry`,label:`infantry`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 32 32`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M30 12.46c-.019-.762-.624-1.368-1.367-1.45a20 20 0 0 0-1.6.104c-1.016.106-2.044.284-2.714.515-.615.212-1.87.775-3.484 1.527-.91.424-1.92.902-2.978 1.402-.81.383-1.647.779-2.488 1.174-1.937.91-3.889 1.811-5.537 2.521-1.63.702-3.017 1.241-3.798 1.394-.964.189-2.438.357-3.563.408q-.152.44-.341.865c-.09.18-.13.38-.13.6A1.5 1.5 0 0 0 3.5 23c2.813 0 4.099-.576 6.607-1.701l.153-.069 12.7-5.72.614-.278C25.373 14.416 26.288 14 28.49 14c.85 0 1.53-.69 1.51-1.54`}),(0,u.jsx)(`path`,{d:`m26.93 10.12.26-.026C25.413 5.364 20.848 2 15.5 2 8.65 2 3 7.67 3 14.5v2.56a8.7 8.7 0 0 1-.234 1.978c1.006-.063 2.24-.209 3.075-.372.657-.129 1.942-.62 3.595-1.331 1.633-.703 3.572-1.6 5.508-2.508.835-.392 1.671-.788 2.48-1.17l.002-.001c1.061-.502 2.077-.982 2.987-1.406 1.596-.744 2.904-1.333 3.58-1.566.78-.27 1.898-.456 2.937-.564M18.836 26l-.6-2.1H13.26L14 26z`}),(0,u.jsx)(`path`,{d:`M17.685 21.9h.575c.882 0 1.678.592 1.921 1.445l.599 2.095a1.99 1.99 0 0 1-.324 1.765c-.264.348-.636.6-1.05.718l.364 1.277c.12.4-.18.8-.6.8h-3.61a.75.75 0 0 1-.72-.54L14.424 28H14a2.02 2.02 0 0 1-1.886-1.319l-.004-.01-.748-2.121-.004-.013a2.01 2.01 0 0 1 .275-1.807 2.04 2.04 0 0 1 1.073-.75l-.19-.669 4.43-1.996zM18.86 27h.017a1.02 1.02 0 0 0 .783-.4 1 1 0 0 0 .16-.88l-.6-2.1a1.01 1.01 0 0 0-.96-.72h-5a1.03 1.03 0 0 0-.82.42 1 1 0 0 0-.13.91l.74 2.1q.015.042.035.083c.169.354.525.587.915.587z`})]})},{value:`intelligence`,label:`intelligence`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M17 13a4 4 0 0 1 0 8c-2.142 0-4-1.79-4-4h-2a4 4 0 1 1-.535-2h3.07A4 4 0 0 1 17 13M2 12v-2h2V7a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3h2v2z`})})}],uf=({event:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=lf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Bd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},df=({data:e,value:t,onChange:n})=>{let{t:r}=Ad(),i=lf.map(e=>({...e,label:r(`event.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(uf,{event:e}),defaultValue:i[0].value,value:t??``,onChange:n,data:i,style:{flex:1}})},ff=({value:e,onChange:t})=>{let n=[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`];return(0,u.jsx)(_u,{defaultValue:n[0],value:e??``,onChange:t,swatches:n,style:{flex:1}})},pf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(df,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(ff,{value:String(e.attributes?.icon_color),onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),mf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 14 14`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M6.58.39a.5.5 0 0 0-.5.5v1.62H4.1c-.188-.49-.627-.757-1.272-.757-.88 0-1.375.495-1.375 1.375s.495 1.376 1.375 1.376c.64 0 1.077-.263 1.267-.745H6.08v.969H4.912a.625.625 0 0 0 0 1.25h1.167v.632H2.731c-.193-.474-.627-.732-1.262-.732-.88 0-1.375.495-1.375 1.375S.589 8.63 1.469 8.63c.651 0 1.091-.271 1.276-.769H6.08v2.851h-.817V9.297a.625.625 0 0 0-.625-.625H3.52a.625.625 0 1 0 0 1.25h.492v.79h-.72c-.19-.484-.627-.748-1.268-.748-.88 0-1.376.495-1.376 1.376s.495 1.375 1.376 1.375c.644 0 1.082-.266 1.27-.754H6.08v1.148a.5.5 0 0 0 .5.5h3.75a2 2 0 0 0 2-2V9.848q.16-.013.31-.045a1.9 1.9 0 0 0 .709-.32c.514-.36.646-.998.505-1.516-.428-1.566-.937-3.207-1.78-4.557a8 8 0 0 0-.383-.56C10.585 1.378 8.987.39 6.58.39m4.13 6.11a.625.625 0 0 0-1.25 0v.165a.625.625 0 0 0 1.25 0z`,clipRule:`evenodd`})}),hf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M17.504 7.501H7.5v10.003h10.003z`}),(0,u.jsx)(`path`,{d:`M21.505 5.5v-2h-2v-2h-2.001v2h-2v-2h-2.001v2h-2v-2H9.501v2h-2v-2H5.5v2h-2v2h-2v2.001h2v2h-2v2.001h2v2h-2v2.001h2v2h-2v2.001h2v2h2v2.001h2.001v-2h2v2h2.001v-2h2v2h2.001v-2h2v2h2.001v-2h2v-2h2.001v-2.001h-2v-2h2v-2.001h-2v-2h2V9.501h-2v-2h2V5.5zm-2 14.004H5.5V5.501h14.003z`})]}),gf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M5.998 3a7 7 0 0 1 6.913 5.895A6.48 6.48 0 0 1 17.498 7h4.5v2.5a6.5 6.5 0 0 1-6.5 6.5h-2.5v5h-2v-8h-2a7 7 0 0 1-7-7V3zm14 6h-2.5a4.5 4.5 0 0 0-4.5 4.5v.5h2.5a4.5 4.5 0 0 0 4.5-4.5zm-14-4h-2v1a5 5 0 0 0 5 5h2v-1a5 5 0 0 0-5-5`})}),_f=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M4 18v2h4v-2zm0-4v2h10v-2zm6 4v2h4v-2zm6-4v2h4v-2zm0 4v2h4v-2zM2 22V8l5 4V8l5 4V8l5 4 1-10h3l1 10v10z`})}),vf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 16 16`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M6.002 4a1.998 1.998 0 1 1 3.996 0 1.998 1.998 0 0 1-3.996 0M8 3.002a.998.998 0 1 0 0 1.996.998.998 0 0 0 0-1.996M11 4.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m1.5-.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1m-9-1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M3 4.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0M4.268 7A2 2 0 0 0 4 8H2v2.5a1.5 1.5 0 0 0 2.096 1.377c.074.331.19.647.34.942A2.5 2.5 0 0 1 1 10.5V8a1 1 0 0 1 1-1zm7.296 5.819A2.5 2.5 0 0 0 15 10.5V8a1 1 0 0 0-1-1h-2.268c.17.294.268.635.268 1h2v2.5a1.5 1.5 0 0 1-2.096 1.377 4 4 0 0 1-.34.942M6 6.999a1 1 0 0 0-1 1V11a3 3 0 1 0 6 0V8a1 1 0 0 0-1-1zm0 1h4V11a2 2 0 1 1-4 0z`})}),yf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,children:[(0,u.jsx)(`path`,{d:`m12.593 23.258-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z`}),(0,u.jsx)(`path`,{fill:`currentColor`,d:`M21 7a1 1 0 0 1 .117 1.993L21 9v10a1 1 0 0 1 .117 1.993L21 21H3a1 1 0 0 1-.117-1.993L3 19V9a1 1 0 0 1-.117-1.993L3 7zm-2 2H5v10h2v-7a1 1 0 1 1 2 0v7h2v-7a1 1 0 1 1 2 0v7h2v-7a1 1 0 1 1 2 0v7h2zm-1-5a1 1 0 1 1 0 2H6a1 1 0 0 1 0-2z`})]})}),bf=[{value:`company`,label:`company`,icon:Rd},{value:`government`,label:`government`,icon:yf},{value:`military`,label:`military`,icon:vf},{value:`manufacturing`,label:`manufacturing`,icon:_f},{value:`agriculture`,label:`agriculture`,icon:gf},{value:`semi-conductor`,label:`semi-conductor`,icon:hf},{value:`technology`,label:`technology`,icon:mf}],xf=({organization:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=bf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Rd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Sf=({data:e,value:t,onChange:n})=>{let{t:r}=Ad(),i=bf.map(e=>({...e,label:r(`organization.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(xf,{organization:e}),defaultValue:i[0].value,value:t??``,onChange:n,data:i,style:{flex:1}})},Cf=({value:e,onChange:t})=>{let n=[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`];return(0,u.jsx)(_u,{defaultValue:n[0],value:e??``,onChange:t,swatches:n,style:{flex:1}})},wf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Sf,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Cf,{value:String(e.attributes?.icon_color),onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Tf=[{value:`professional`,label:`professional`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M12 3c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4m4 10.54c0 1.06-.28 3.53-2.19 6.29L13 15l.94-1.88c-.62-.07-1.27-.12-1.94-.12s-1.32.05-1.94.12L11 15l-.81 4.83C8.28 17.07 8 14.6 8 13.54c-2.39.7-4 1.96-4 3.46v4h16v-4c0-1.5-1.6-2.76-4-3.46`})})},{value:`gov-official`,label:`gov-official`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M16 14.5c0 1.1-.3 3.5-2.2 6.3L13 16l.9-1.9c-.6 0-1.2-.1-1.9-.1s-1.3.1-1.9.1L11 16l-.8 4.8C8.3 18.1 8 15.6 8 14.5c-2.4.7-4 2-4 3.5v4h16v-4c0-1.5-1.6-2.8-4-3.5M6 4.5C6 3.1 8.7 2 12 2s6 1.1 6 2.5c0 .4-.2.7-.5 1-.9-.9-3-1.5-5.5-1.5s-4.6.6-5.5 1.5c-.3-.3-.5-.6-.5-1m9.9 2.9c.1.2.1.4.1.6 0 2.2-1.8 4-4 4s-4-1.8-4-4c0-.2 0-.4.1-.6 1 .4 2.4.6 3.9.6s2.9-.2 3.9-.6m.7-1.3c-1.1.5-2.7.9-4.6.9s-3.5-.4-4.6-.9C8.1 5.5 9.8 5 12 5s3.9.5 4.6 1.1`})})},{value:`school-personel`,label:`school-personel`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M16 8c0 2.21-1.79 4-4 4s-4-1.79-4-4l.11-.94L5 5.5 12 2l7 3.5v5h-1V6l-2.11 1.06zm-4 6c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4`})})}],Ef=({person:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=Tf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Jd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Df=({data:e,value:t,onChange:n})=>{let{t:r}=Ad(),i=Tf.map(e=>({...e,label:r(`person.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(Ef,{person:e}),defaultValue:i[0].value,value:t??``,onChange:n,data:i,style:{flex:1}})},Of=({value:e,onChange:t})=>{let n=[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`];return(0,u.jsx)(_u,{defaultValue:n[0],value:e??``,onChange:t,swatches:n,style:{flex:1}})},kf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Df,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Of,{value:String(e.attributes?.icon_color),onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Af=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M14.25 2.5a.25.25 0 0 0-.25-.25H7A2.75 2.75 0 0 0 4.25 5v14A2.75 2.75 0 0 0 7 21.75h10A2.75 2.75 0 0 0 19.75 19V9.147a.25.25 0 0 0-.25-.25H15a.75.75 0 0 1-.75-.75zm.75 9.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5z`,clipRule:`evenodd`}),(0,u.jsx)(`path`,{d:`M15.75 2.824c0-.184.193-.301.336-.186q.182.147.323.342l3.013 4.197c.068.096-.006.22-.124.22H16a.25.25 0 0 1-.25-.25z`})]}),jf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M8 6h9v2H8z`}),(0,u.jsx)(`path`,{d:`M20 2H6C4.35 2 3 3.35 3 5v14c0 1.65 1.35 3 3 3h15v-2H6c-.55 0-1-.45-1-1s.45-1 1-1h14c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-6 14H6c-.35 0-.69.07-1 .18V5c0-.55.45-1 1-1h13v12z`})]}),Mf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeMiterlimit:10,strokeWidth:.5,d:`M19.2 7.3c-1.9-.4-3.3-2-3.4-3.9v-.3h-3.1v12.5c0 1.5-1.2 2.6-2.6 2.6-.8 0-1.6-.4-2.1-1h0c-1-1.2-.8-2.9.4-3.8.6-.4 1.1-.4 1.8-.4V9.8c-3.2-.4-5.5 1.8-6 4.9-.2 1.8.3 3.5 1.6 4.8 2.2 2.3 5.9 2.3 8.2.1 1.1-1.1 1.7-2.6 1.7-4.1V9.2c1.3.9 2.8 1.4 4.4 1.4V7.4c-.3 0-.6 0-.9-.1`})}),Nf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M14 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm3 2h-2v6h2z`,clipRule:`evenodd`}),(0,u.jsx)(`path`,{d:`M6 7a1 1 0 0 0 0 2h4a1 1 0 1 0 0-2zm0 4a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2zm-1 5a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M4 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm16 2H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1`,clipRule:`evenodd`})]}),Pf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeMiterlimit:10,children:[(0,u.jsx)(`path`,{d:`M2.5 23.5h19l2-2v-20h-19v20zm0 0-2-2v-13h2v11`}),(0,u.jsx)(`path`,{d:`M13.5 4.5h-6v7h6zm3 1h4m-4 3h4m-4 3h4m-13 3h13m-13 3h13m-13 3h13`})]})}),Ff=[{value:`news`,label:`news`,icon:Pf},{value:`website`,label:`website`,icon:Nf},{value:`social-media`,label:`social-media`,icon:Mf},{value:`book`,label:`book`,icon:jf},{value:`paper`,label:`paper`,icon:Af}],If=({source:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#ababab`),i=Ff.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Hd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Lf=({data:e,value:t,onChange:n})=>{let{t:r}=Ad(),i=Ff.map(e=>({...e,label:r(`source.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(If,{source:e}),defaultValue:i[0].value,value:t??``,onChange:n,data:i,style:{flex:1}})},Rf=({value:e,onChange:t})=>{let n=[`#ababab`,`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#7950f2`];return(0,u.jsx)(_u,{defaultValue:n[0],value:e??``,onChange:t,swatches:n,style:{flex:1}})},zf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Lf,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Rf,{value:String(e.attributes?.icon_color??``),onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Bf=[{value:`company`,label:`company`,icon:Rd},{value:`government`,label:`government`,icon:yf},{value:`news`,label:`news`,icon:Pf},{value:`forum`,label:`forum`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M17 12V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v14l4-4h10a1 1 0 0 0 1-1m4-6h-2v9H6v2a1 1 0 0 0 1 1h11l4 4V7a1 1 0 0 0-1-1`})})}],Vf=({website:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=Bf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Wd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Hf=({data:e,value:t,onChange:n})=>{let{t:r}=Ad(),i=Bf.map(e=>({...e,label:r(`website.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(Vf,{website:e}),defaultValue:i[0].value,value:t??``,onChange:n,data:i,style:{flex:1}})},Uf=({value:e,onChange:t})=>{let n=[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`];return(0,u.jsx)(_u,{defaultValue:n[0],value:e??``,onChange:t,swatches:n,style:{flex:1}})},Wf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Hf,{data:e,value:e.title,onChange:n=>{t({...e,title:n||void 0})}}),(0,u.jsx)(Uf,{value:String(e.attributes?.icon_color),onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Gf=({event:e,background:t,withBorder:n=!0,action:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{p:`xs`,bg:t,withBorder:n,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.title||i(`event.title`)}),e.happened_at&&(0,u.jsx)(wc,{c:`dimmed`,children:new Date(e.happened_at*1e3).toLocaleString()}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`event.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),r]})})},Kf=({person:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`person.name`)}),e.role&&(0,u.jsx)(wc,{c:`dimmed`,children:e.role||i(`person.role`)}),e.aliases&&(0,u.jsxs)(wc,{truncate:`end`,children:[i(`person.aliases`),`: `,e.aliases.join(`, `)]}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},qf=({organization:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`organization.name`)}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Jf=({website:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.title||i(`website.title`)}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`website.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Yf=({source:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`source.name`)}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`source.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Xf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=(e,t,n)=>{typeof n==`string`||n instanceof Blob?e.append(t,n):n instanceof Date?e.append(t,n.toISOString()):e.append(t,JSON.stringify(n))},n=(e,t,n)=>{typeof n==`string`?e.append(t,n):e.append(t,JSON.stringify(n))};e.formDataBodySerializer={bodySerializer:e=>{let n=new FormData;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>t(n,e,r)):t(n,e,r))}),n}},e.jsonBodySerializer={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},e.urlSearchParamsBodySerializer={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>n(t,e,r)):n(t,e,r))}),t.toString()}}})),Zf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildClientParams=void 0;var t=Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`}),n=(e,t)=>{t||=new Map;for(let r of e)`in`in r?r.key&&t.set(r.key,{in:r.in,map:r.map}):`key`in r?t.set(r.key,{map:r.map}):r.args&&n(r.args,t);return t},r=e=>{for(let[t,n]of Object.entries(e))n&&typeof n==`object`&&!Array.isArray(n)&&!Object.keys(n).length&&delete e[t]};e.buildClientParams=(e,i)=>{let a={body:{},headers:{},path:{},query:{}},o=n(i),s;for(let[n,r]of e.entries())if(i[n]&&(s=i[n]),s)if(`in`in s)if(s.key){let e=o.get(s.key),t=e.map||s.key;e.in&&(a[e.in][t]=r)}else a.body=r;else for(let[e,n]of Object.entries(r??{})){let r=o.get(e);if(r)if(r.in){let t=r.map||e;a[r.in][t]=n}else a[r.map]=n;else{let r=t.find(([t])=>e.startsWith(t));if(r){let[t,i]=r;a[i][e.slice(t.length)]=n}else if(`allowExtra`in s&&s.allowExtra){for(let[t,r]of Object.entries(s.allowExtra))if(r){a[t][e]=n;break}}}}return r(a),a}})),Qf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeQueryKeyValue=e.stringifyToJsonValue=e.queryKeyJsonReplacer=void 0,e.queryKeyJsonReplacer=(e,t)=>{if(!(t===void 0||typeof t==`function`||typeof t==`symbol`))return typeof t==`bigint`?t.toString():t instanceof Date?t.toISOString():t},e.stringifyToJsonValue=t=>{try{let n=JSON.stringify(t,e.queryKeyJsonReplacer);return n===void 0?void 0:JSON.parse(n)}catch{return}};var t=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},n=e=>{let t=Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t)),n={};for(let[e,r]of t){let t=n[e];if(t===void 0){n[e]=r;continue}Array.isArray(t)?t.push(r):n[e]=[t,r]}return n};e.serializeQueryKeyValue=r=>{if(r===null)return null;if(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)return r;if(!(r===void 0||typeof r==`function`||typeof r==`symbol`)){if(typeof r==`bigint`)return r.toString();if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return(0,e.stringifyToJsonValue)(r);if(typeof URLSearchParams<`u`&&r instanceof URLSearchParams)return n(r);if(t(r))return(0,e.stringifyToJsonValue)(r)}}})),$f=o((e=>{var t=e&&e.__await||function(e){return this instanceof t?(this.v=e,this):new t(e)},n=e&&e.__asyncGenerator||function(e,n,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,n||[]),a,o=[];return a=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),c(`next`),c(`throw`),c(`return`,s),a[Symbol.asyncIterator]=function(){return this},a;function s(e){return function(t){return Promise.resolve(t).then(e,f)}}function c(e,t){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||l(e,t)})},t&&(a[e]=t(a[e])))}function l(e,t){try{u(i[e](t))}catch(e){p(o[0][3],e)}}function u(e){e.value instanceof t?Promise.resolve(e.value.v).then(d,f):p(o[0][2],e)}function d(e){l(`next`,e)}function f(e){l(`throw`,e)}function p(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}},r=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,`__esModule`,{value:!0}),e.createSseClient=void 0,e.createSseClient=e=>{var{onRequest:i,onSseError:a,onSseEvent:o,responseTransformer:s,responseValidator:c,sseDefaultRetryDelay:l,sseMaxRetryAttempts:u,sseMaxRetryDelay:d,sseSleepFn:f,url:p}=e,m=r(e,[`onRequest`,`onSseError`,`onSseEvent`,`responseTransformer`,`responseValidator`,`sseDefaultRetryDelay`,`sseMaxRetryAttempts`,`sseMaxRetryDelay`,`sseSleepFn`,`url`]);let h,g=f??(e=>new Promise(t=>setTimeout(t,e)));return{stream:function(){return n(this,arguments,function*(){let e=l??3e3,n=0,r=m.signal??new AbortController().signal;for(;!r.aborted;){n++;let l=m.headers instanceof Headers?m.headers:new Headers(m.headers);h!==void 0&&l.set(`Last-Event-ID`,h);try{let n=Object.assign(Object.assign({redirect:`follow`},m),{body:m.serializedBody,headers:l,signal:r}),a=new Request(p,n);i&&(a=yield t(i(p,n)));let u=yield t((m.fetch??globalThis.fetch)(a));if(!u.ok)throw Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw Error(`No body in SSE response`);let d=u.body.pipeThrough(new TextDecoderStream).getReader(),f=``,g=()=>{try{d.cancel()}catch{}};r.addEventListener(`abort`,g);try{for(;;){let{done:n,value:r}=yield t(d.read());if(n)break;f+=r,f=f.replace(/\r\n/g,`
|
|
13
|
+
`).replace(/\r/g,`
|
|
14
|
+
`);let i=f.split(`
|
|
15
|
+
|
|
16
|
+
`);f=i.pop()??``;for(let n of i){let r=n.split(`
|
|
17
|
+
`),i=[],a;for(let t of r)if(t.startsWith(`data:`))i.push(t.replace(/^data:\s*/,``));else if(t.startsWith(`event:`))a=t.replace(/^event:\s*/,``);else if(t.startsWith(`id:`))h=t.replace(/^id:\s*/,``);else if(t.startsWith(`retry:`)){let n=Number.parseInt(t.replace(/^retry:\s*/,``),10);Number.isNaN(n)||(e=n)}let l,u=!1;if(i.length){let e=i.join(`
|
|
18
|
+
`);try{l=JSON.parse(e),u=!0}catch{l=e}}u&&(c&&(yield t(c(l))),s&&(l=yield t(s(l)))),o?.({data:l,event:a,id:h,retry:e}),i.length&&(yield yield t(l))}}}finally{r.removeEventListener(`abort`,g),d.releaseLock()}break}catch(r){if(a?.(r),u!==void 0&&n>=u)break;yield t(g(Math.min(e*2**(n-1),d??3e4)))}}})}()}}})),ep=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeObjectParam=e.serializePrimitiveParam=e.serializeArrayParam=e.separatorObjectExplode=e.separatorArrayNoExplode=e.separatorArrayExplode=void 0,e.separatorArrayExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.separatorArrayNoExplode=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},e.separatorObjectExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.serializeArrayParam=({allowReserved:t,explode:n,name:r,style:i,value:a})=>{if(!n){let n=(t?a:a.map(e=>encodeURIComponent(e))).join((0,e.separatorArrayNoExplode)(i));switch(i){case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;case`simple`:return n;default:return`${r}=${n}`}}let o=(0,e.separatorArrayExplode)(i),s=a.map(n=>i===`label`||i===`simple`?t?n:encodeURIComponent(n):(0,e.serializePrimitiveParam)({allowReserved:t,name:r,value:n})).join(o);return i===`label`||i===`matrix`?o+s:s},e.serializePrimitiveParam=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},e.serializeObjectParam=({allowReserved:t,explode:n,name:r,style:i,value:a,valueOnly:o})=>{if(a instanceof Date)return o?a.toISOString():`${r}=${a.toISOString()}`;if(i!==`deepObject`&&!n){let e=[];Object.entries(a).forEach(([n,r])=>{e=[...e,n,t?r:encodeURIComponent(r)]});let n=e.join(`,`);switch(i){case`form`:return`${r}=${n}`;case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;default:return n}}let s=(0,e.separatorObjectExplode)(i),c=Object.entries(a).map(([n,a])=>(0,e.serializePrimitiveParam)({allowReserved:t,name:i===`deepObject`?`${r}[${n}]`:n,value:a})).join(s);return i===`label`||i===`matrix`?s+c:c}})),tp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getUrl=e.defaultPathSerializer=e.PATH_PARAM_RE=void 0,e.getValidRequestBody=n;var t=ep();e.PATH_PARAM_RE=/\{[^{}]+\}/g,e.defaultPathSerializer=({path:n,url:r})=>{let i=r,a=r.match(e.PATH_PARAM_RE);if(a)for(let e of a){let r=!1,a=e.substring(1,e.length-1),o=`simple`;a.endsWith(`*`)&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(`.`)?(a=a.substring(1),o=`label`):a.startsWith(`;`)&&(a=a.substring(1),o=`matrix`);let s=n[a];if(s==null)continue;if(Array.isArray(s)){i=i.replace(e,(0,t.serializeArrayParam)({explode:r,name:a,style:o,value:s}));continue}if(typeof s==`object`){i=i.replace(e,(0,t.serializeObjectParam)({explode:r,name:a,style:o,value:s,valueOnly:!0}));continue}if(o===`matrix`){i=i.replace(e,`;${(0,t.serializePrimitiveParam)({name:a,value:s})}`);continue}let c=encodeURIComponent(o===`label`?`.${s}`:s);i=i.replace(e,c)}return i},e.getUrl=({baseUrl:t,path:n,query:r,querySerializer:i,url:a})=>{let o=a.startsWith(`/`)?a:`/${a}`,s=(t??``)+o;n&&(s=(0,e.defaultPathSerializer)({path:n,url:s}));let c=r?i(r):``;return c.startsWith(`?`)&&(c=c.substring(1)),c&&(s+=`?${c}`),s};function n(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}})),np=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.getAuthToken=void 0,e.getAuthToken=(e,n)=>t(void 0,void 0,void 0,function*(){let t=typeof n==`function`?yield n(e):n;if(t)return e.scheme===`bearer`?`Bearer ${t}`:e.scheme===`basic`?`Basic ${btoa(t)}`:t})})),rp=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.mergeHeaders=e.axiosHeadersKeywords=e.mergeConfigs=e.buildUrl=e.setAuthParams=e.createQuerySerializer=void 0;var r=np(),i=ep(),a=tp();e.createQuerySerializer=(e={})=>{var{parameters:t={}}=e,r=n(e,[`parameters`]);return e=>{let n=[];if(e&&typeof e==`object`)for(let a in e){let o=e[a];if(o==null)continue;let s=t[a]||r;if(Array.isArray(o)){let e=(0,i.serializeArrayParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`form`,value:o},s.array));e&&n.push(e)}else if(typeof o==`object`){let e=(0,i.serializeObjectParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`deepObject`,value:o},s.object));e&&n.push(e)}else{let e=(0,i.serializePrimitiveParam)({allowReserved:s.allowReserved,name:a,value:o});e&&n.push(e)}}return n.join(`&`)}};var o=(e,t)=>t?t in e.headers||e.query?.[t]?!0:`Cookie`in e.headers&&e.headers.Cookie&&typeof e.headers.Cookie==`string`?e.headers.Cookie.includes(`${t}=`):!1:!1;e.setAuthParams=e=>t(void 0,void 0,void 0,function*(){var{security:t}=e,i=n(e,[`security`]);for(let e of t){if(o(i,e.name))continue;let t=yield(0,r.getAuthToken)(e,i.auth);if(!t)continue;let n=e.name??`Authorization`;switch(e.in){case`query`:i.query||={},i.query[n]=t;break;case`cookie`:{let e=`${n}=${t}`;`Cookie`in i.headers&&i.headers.Cookie?i.headers.Cookie=`${i.headers.Cookie}; ${e}`:i.headers.Cookie=e;break}default:i.headers[n]=t;break}}}),e.buildUrl=t=>{let n=t.axios?.defaults?.baseURL,r=t.baseURL&&typeof t.baseURL==`string`?t.baseURL:n;return(0,a.getUrl)({baseUrl:r,path:t.path,query:t.paramsSerializer?void 0:t.query,querySerializer:typeof t.querySerializer==`function`?t.querySerializer:(0,e.createQuerySerializer)(t.querySerializer),url:t.url})},e.mergeConfigs=(t,n)=>{let r=Object.assign(Object.assign({},t),n);return r.headers=(0,e.mergeHeaders)(t.headers,n.headers),r},e.axiosHeadersKeywords=[`common`,`delete`,`get`,`head`,`patch`,`post`,`put`],e.mergeHeaders=(...t)=>{let n={};for(let r of t){if(!r||typeof r!=`object`)continue;let t=Object.entries(r);for(let[r,i]of t)if(e.axiosHeadersKeywords.includes(r)&&typeof i==`object`)n[r]=Object.assign(Object.assign({},n[r]),i);else if(i===null)delete n[r];else if(Array.isArray(i))for(let e of i)n[r]=[...n[r]??[],e];else i!==void 0&&(n[r]=typeof i==`object`?JSON.stringify(i):i)}return n},e.createConfig=(e={})=>Object.assign({},e)})),ip=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.createClient=void 0;var i=r(Qd()),a=$f(),o=tp(),s=rp();e.createClient=(e={})=>{let r=(0,s.mergeConfigs)((0,s.createConfig)(),e),c;if(r.axios&&!(`Axios`in r.axios))c=r.axios;else{let{auth:e}=r,t=n(r,[`auth`]);c=i.default.create(t)}let l=()=>Object.assign({},r),u=e=>(r=(0,s.mergeConfigs)(r,e),c.defaults=Object.assign(Object.assign(Object.assign({},c.defaults),r),{headers:(0,s.mergeHeaders)(c.defaults.headers,r.headers)}),l()),d=e=>t(void 0,void 0,void 0,function*(){let t=Object.assign(Object.assign(Object.assign({},r),e),{axios:e.axios??r.axios??c,headers:(0,s.mergeHeaders)(r.headers,e.headers)});return t.security&&(yield(0,s.setAuthParams)(Object.assign(Object.assign({},t),{security:t.security}))),t.requestValidator&&(yield t.requestValidator(t)),t.body!==void 0&&t.bodySerializer&&(t.body=t.bodySerializer(t.body)),{opts:t,url:(0,s.buildUrl)(t)}}),f=e=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(e);try{let e=t.axios,{auth:i}=t,a=n(t,[`auth`]),s=yield e(Object.assign(Object.assign({},a),{baseURL:``,data:(0,o.getValidRequestBody)(t),headers:t.headers,params:t.paramsSerializer?t.query:void 0,url:r})),{data:c}=s;return t.responseType===`json`&&(t.responseValidator&&(yield t.responseValidator(c)),t.responseTransformer&&(c=yield t.responseTransformer(c))),Object.assign(Object.assign({},s),{data:c??{}})}catch(e){let n=e;if(t.throwOnError)throw n;return n.error=n.response?.data??{},n}}),p=e=>t=>f(Object.assign(Object.assign({},t),{method:e})),m=e=>n=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(n);return(0,a.createSseClient)(Object.assign(Object.assign({},t),{body:t.body,headers:t.headers,method:e,serializedBody:(0,o.getValidRequestBody)(t),signal:t.signal,url:r}))});return{buildUrl:e=>(0,s.buildUrl)(Object.assign(Object.assign({axios:c},r),e)),connect:p(`CONNECT`),delete:p(`DELETE`),get:p(`GET`),getConfig:l,head:p(`HEAD`),instance:c,options:p(`OPTIONS`),patch:p(`PATCH`),post:p(`POST`),put:p(`PUT`),request:f,setConfig:u,sse:{connect:m(`CONNECT`),delete:m(`DELETE`),get:m(`GET`),head:m(`HEAD`),options:m(`OPTIONS`),patch:m(`PATCH`),post:m(`POST`),put:m(`PUT`),trace:m(`TRACE`)},trace:p(`TRACE`)}}})),ap=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.createClient=e.serializeQueryKeyValue=e.buildClientParams=e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=Xf();Object.defineProperty(e,`formDataBodySerializer`,{enumerable:!0,get:function(){return t.formDataBodySerializer}}),Object.defineProperty(e,`jsonBodySerializer`,{enumerable:!0,get:function(){return t.jsonBodySerializer}}),Object.defineProperty(e,`urlSearchParamsBodySerializer`,{enumerable:!0,get:function(){return t.urlSearchParamsBodySerializer}});var n=Zf();Object.defineProperty(e,`buildClientParams`,{enumerable:!0,get:function(){return n.buildClientParams}});var r=Qf();Object.defineProperty(e,`serializeQueryKeyValue`,{enumerable:!0,get:function(){return r.serializeQueryKeyValue}});var i=ip();Object.defineProperty(e,`createClient`,{enumerable:!0,get:function(){return i.createClient}});var a=rp();Object.defineProperty(e,`createConfig`,{enumerable:!0,get:function(){return a.createConfig}})})),op=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.client=void 0;var t=ap();e.client=(0,t.createClient)((0,t.createConfig)())})),sp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createMonitorTrigger=e.getMonitorTrigger=e.deleteMonitorTrigger=e.updateMonitoringSource=e.getMonitoringSource=e.deleteMonitoringSource=e.getMonitoringSourceViews=e.createMonitoringSource=e.getMonitoringSourcesByUser=e.healthCheck=void 0;var t=op();e.healthCheck=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/health/monitoring`},e)),e.getMonitoringSourcesByUser=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources`},e)),e.createMonitoringSource=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/monitoring-sources`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getMonitoringSourceViews=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}/views`},e)),e.deleteMonitoringSource=e=>(e.client??t.client).delete(Object.assign({url:`/monitoring-sources/{id}`},e)),e.getMonitoringSource=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}`},e)),e.updateMonitoringSource=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteMonitorTrigger=e=>(e?.client??t.client).delete(Object.assign({url:`/monitor-triggers`},e)),e.getMonitorTrigger=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/monitor-triggers`},e)),e.createMonitorTrigger=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/monitor-triggers`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)}))}));o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateMonitoringSource=e.healthCheck=e.getMonitorTrigger=e.getMonitoringSourceViews=e.getMonitoringSourcesByUser=e.getMonitoringSource=e.deleteMonitorTrigger=e.deleteMonitoringSource=e.createMonitorTrigger=e.createMonitoringSource=void 0;var t=sp();Object.defineProperty(e,`createMonitoringSource`,{enumerable:!0,get:function(){return t.createMonitoringSource}}),Object.defineProperty(e,`createMonitorTrigger`,{enumerable:!0,get:function(){return t.createMonitorTrigger}}),Object.defineProperty(e,`deleteMonitoringSource`,{enumerable:!0,get:function(){return t.deleteMonitoringSource}}),Object.defineProperty(e,`deleteMonitorTrigger`,{enumerable:!0,get:function(){return t.deleteMonitorTrigger}}),Object.defineProperty(e,`getMonitoringSource`,{enumerable:!0,get:function(){return t.getMonitoringSource}}),Object.defineProperty(e,`getMonitoringSourcesByUser`,{enumerable:!0,get:function(){return t.getMonitoringSourcesByUser}}),Object.defineProperty(e,`getMonitoringSourceViews`,{enumerable:!0,get:function(){return t.getMonitoringSourceViews}}),Object.defineProperty(e,`getMonitorTrigger`,{enumerable:!0,get:function(){return t.getMonitorTrigger}}),Object.defineProperty(e,`healthCheck`,{enumerable:!0,get:function(){return t.healthCheck}}),Object.defineProperty(e,`updateMonitoringSource`,{enumerable:!0,get:function(){return t.updateMonitoringSource}})}))();var cp=({monitoringSource:e,background:t,withBorder:n=!0,action:r})=>{let{t:i}=Ad(),a=e.reliability||0,o=a<50?`red`:a<80?`yellow`:`green`;return(0,u.jsx)(Vo,{p:`xs`,bg:t,withBorder:n,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`monitoringSource.name`)}),e.reliability&&(0,u.jsx)(Uu,{size:36,thickness:3,roundCaps:!0,sections:[{value:a,color:o}],label:(0,u.jsx)(wc,{c:o,fw:700,ta:`center`,size:`xs`,style:{fontSize:9},children:`${a}%`})})]}),e.type&&(0,u.jsx)(wc,{c:`dimmed`,children:e.type||i(`monitoringSource.type`)}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`monitoringSource.description`)})})]}),r]})})},lp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Gf,{event:e,withBorder:!1,background:`transparent`})}),up=({data:e,relation:t,renderTooltip:n=lp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(uf,{event:e})})},e._id),dp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(qf,{organization:e,withBorder:!1,background:`transparent`})}),fp=({data:e,relation:t,renderTooltip:n=dp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{alt:e.name||``,className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(xf,{organization:e})})},e._id),pp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Kf,{person:e,withBorder:!1,background:`transparent`})}),mp=({data:e,relation:t,renderTooltip:n=pp})=>(0,u.jsx)(Fu,{label:n(e,t),position:`top`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{alt:e.name||``,className:`entity-avatar`,radius:`xl`,size:`md`,children:(0,u.jsx)(Ef,{person:e})})},e._id),hp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Yf,{source:e,withBorder:!1,background:`transparent`})}),gp=({data:e,relation:t,renderTooltip:n=hp})=>(0,u.jsx)(Fu,{label:n(e,t),position:`left`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(If,{source:e})})},e._id),_p=({data:e,relation:t,renderTooltip:n=hp})=>(0,u.jsxs)(Q,{wrap:`nowrap`,gap:0,children:[(0,u.jsx)(Fu,{label:n(e,t),openDelay:500,withArrow:!0,multiline:!0,children:(0,u.jsx)(wc,{size:`sm`,fw:500,truncate:`end`,children:e.name||e.url})}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,children:(0,u.jsx)(If,{source:e})})]}),vp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Jf,{website:e,withBorder:!1,background:`transparent`})}),yp=({data:e,relation:t,renderTooltip:n=vp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(Vf,{website:e})})},e._id);exports.AvatarDropdown=od,exports.AvatarRowList=jd,exports.AvatarSpan=Fd,exports.EmptyAvatar=Pd,exports.EventAvatar=up,exports.EventCard=Gf,exports.EventColorSelector=ff,exports.EventIcon=uf,exports.EventIconSelect=pf,exports.EventIconSelector=df,exports.MonitoringSourceCard=cp,exports.OrganizationAvatar=fp,exports.OrganizationCard=qf,exports.OrganizationColorSelector=Cf,exports.OrganizationIcon=xf,exports.OrganizationIconSelect=wf,exports.OrganizationIconSelector=Sf,exports.PersonAvatar=mp,exports.PersonCard=Kf,exports.PersonColorSelector=Of,exports.PersonIcon=Ef,exports.PersonIconSelect=kf,exports.PersonIconSelector=Df,exports.RelationTooltip=Id,exports.SourceAvatar=gp,exports.SourceAvatarRow=_p,exports.SourceCard=Yf,exports.SourceColorSelector=Rf,exports.SourceIcon=If,exports.SourceIconSelect=zf,exports.SourceIconSelector=Lf,exports.WebsiteAvatar=yp,exports.WebsiteCard=Jf,exports.WebsiteColorSelector=Uf,exports.WebsiteIcon=Vf,exports.WebsiteIconSelect=Wf,exports.WebsiteIconSelector=Hf;
|