| Server IP : 69.72.244.102 / Your IP : 216.73.216.164 Web Server : LiteSpeed System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : konzalta ( 1271) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/konzalta/public_html/wp-content/plugins/edwiser-bridge/blocks/build/orders/ |
Upload File : |
(()=>{"use strict";var e,t,r,o={350:(e,t,r)=>{const o=window.wp.blocks,n=window.wp.i18n,s=window.wp.blockEditor,a=window.wp.components,i=window.React;var l=r.t(i,2);const c=window.ReactJSXRuntime;function d(e){return"auto"===e||"dark"===e||"light"===e}function u({key:e="mantine-color-scheme-value"}={}){let t;return{get:t=>{if("undefined"==typeof window)return t;try{const r=window.localStorage.getItem(e);return d(r)?r:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:r=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&d(t.newValue)&&r(t.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const p=(0,i.createContext)(null);function m(){const e=(0,i.useContext)(p);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function f(){return m().getStyleNonce}function h(e){return Object.keys(e)}function b(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function g(e,{shouldScale:t=!1}={}){return function r(o){if(0===o||"0"===o)return`0${e}`;if("number"==typeof o){const r=`${o/16}${e}`;return t?b(r):r}if("string"==typeof o){if(""===o)return o;if(o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map((e=>r(e))).join(",");if(o.includes(" "))return o.split(" ").map((e=>r(e))).join(" ");if(o.includes(e))return t?b(o):o;const n=o.replace("px","");if(!Number.isNaN(Number(n))){const r=`${Number(n)/16}${e}`;return t?b(r):r}}return o}}const y=g("rem",{shouldScale:!0}),v=g("em");function w(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){const 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}}const r=parseInt(t,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:1}}(e):e.startsWith("rgb")?function(e){const[t,r,o,n]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:r,b:o,a:n||1}}(e):e.startsWith("hsl")?function(e){const 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};const r=parseInt(t[1],10),o=parseInt(t[2],10)/100,n=parseInt(t[3],10)/100,s=t[5]?parseFloat(t[5]):void 0,a=(1-Math.abs(2*n-1))*o,i=r/60,l=a*(1-Math.abs(i%2-1)),c=n-a/2;let d,u,p;return i>=0&&i<1?(d=a,u=l,p=0):i>=1&&i<2?(d=l,u=a,p=0):i>=2&&i<3?(d=0,u=a,p=l):i>=3&&i<4?(d=0,u=l,p=a):i>=4&&i<5?(d=l,u=0,p=a):(d=a,u=0,p=l),{r:Math.round(255*(d+c)),g:Math.round(255*(u+c)),b:Math.round(255*(p+c)),a:s||1}}(e):{r:0,g:0,b:0,a:1}}function x(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;const{r,g:o,b:n,a:s}=w(e),a=1-t,i=e=>Math.round(e*a);return`rgba(${i(r)}, ${i(o)}, ${i(n)}, ${s})`}function _(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}function C(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function S(e,t=.179){return!e.startsWith("var(")&&function(e){if(e.startsWith("oklch("))return(function(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}(e)||0)/100;const{r:t,g:r,b:o}=w(e),n=r/255,s=o/255;return.2126*C(t/255)+.7152*C(n)+.0722*C(s)}(e)>t}function N({color:e,theme:t,colorScheme:r}){if("string"!=typeof e)throw new Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got "+typeof e);if("bright"===e)return{color:e,value:"dark"===r?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:S("dark"===r?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===e)return{color:e,value:"dark"===r?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:S("dark"===r?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===e||"black"===e)return{color:e,value:"white"===e?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:S("white"===e?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,n]=e.split("."),s=n?Number(n):void 0,a=o in t.colors;if(a){const e=void 0!==s?t.colors[o][s]:t.colors[o][_(t,r||"light")];return{color:o,value:e,shade:s,isThemeColor:a,isLight:S(e,t.luminanceThreshold),variable:n?`--mantine-color-${o}-${s}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:S(e,t.luminanceThreshold),shade:s,variable:void 0}}function j(e,t){const r=N({color:e||t.primaryColor,theme:t});return r.variable?`var(${r.variable})`:e}function P(e,t){const r={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg||t.defaultGradient.deg||0},o=j(r.from,t),n=j(r.to,t);return`linear-gradient(${r.deg}deg, ${o} 0%, ${n} 100%)`}function k(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${100*(1-t)}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r,g:o,b:n}=w(e);return`rgba(${r}, ${o}, ${n}, ${t})`}const $=k,T="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",E={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{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"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:({color:e,theme:t,variant:r,gradient:o,autoContrast:n})=>{const s=N({color:e,theme:t}),a="boolean"==typeof n?n:t.autoContrast;if("filled"===r){const t=a&&s.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return s.isThemeColor?void 0===s.shade?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:t,border:`${y(1)} solid transparent`}:{background:`var(--mantine-color-${s.color}-${s.shade})`,hover:`var(--mantine-color-${s.color}-${9===s.shade?8:s.shade+1})`,color:t,border:`${y(1)} solid transparent`}:{background:e,hover:x(e,.1),color:t,border:`${y(1)} solid transparent`}}if("light"===r){if(s.isThemeColor){if(void 0===s.shade)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${y(1)} solid transparent`};const r=t.colors[s.color][s.shade];return{background:k(r,.1),hover:k(r,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${y(1)} solid transparent`}}return{background:k(e,.1),hover:k(e,.12),color:e,border:`${y(1)} solid transparent`}}return"outline"===r?s.isThemeColor?void 0===s.shade?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${y(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:k(t.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${y(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:k(e,.05),color:e,border:`${y(1)} solid ${e}`}:"subtle"===r?s.isThemeColor?void 0===s.shade?{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${y(1)} solid transparent`}:{background:"transparent",hover:k(t.colors[s.color][s.shade],.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${y(1)} solid transparent`}:{background:"transparent",hover:k(e,.12),color:e,border:`${y(1)} solid transparent`}:"transparent"===r?s.isThemeColor?void 0===s.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${y(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${y(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${y(1)} solid transparent`}:"white"===r?s.isThemeColor?void 0===s.shade?{background:"var(--mantine-color-white)",hover:x(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${y(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:x(t.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${y(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:x(t.white,.01),color:e,border:`${y(1)} solid transparent`}:"gradient"===r?{background:P(o,t),hover:P(o,t),color:"var(--mantine-color-white)",border:"none"}:"default"===r?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${y(1)} solid var(--mantine-color-default-border)`}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:T,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:T,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:y(34),lineHeight:"1.3"},h2:{fontSize:y(26),lineHeight:"1.35"},h3:{fontSize:y(22),lineHeight:"1.4"},h4:{fontSize:y(18),lineHeight:"1.45"},h5:{fontSize:y(16),lineHeight:"1.5"},h6:{fontSize:y(14),lineHeight:"1.5"}}},fontSizes:{xs:y(12),sm:y(14),md:y(16),lg:y(18),xl:y(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:y(2),sm:y(4),md:y(8),lg:y(16),xl:y(32)},spacing:{xs:y(10),sm:y(12),md:y(16),lg:y(20),xl:y(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${y(1)} ${y(3)} rgba(0, 0, 0, 0.05), 0 ${y(1)} ${y(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${y(1)} ${y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${y(10)} ${y(15)} ${y(-5)}, rgba(0, 0, 0, 0.04) 0 ${y(7)} ${y(7)} ${y(-5)}`,md:`0 ${y(1)} ${y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${y(20)} ${y(25)} ${y(-5)}, rgba(0, 0, 0, 0.04) 0 ${y(10)} ${y(10)} ${y(-5)}`,lg:`0 ${y(1)} ${y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${y(28)} ${y(23)} ${y(-7)}, rgba(0, 0, 0, 0.04) 0 ${y(12)} ${y(12)} ${y(-7)}`,xl:`0 ${y(1)} ${y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${y(36)} ${y(28)} ${y(-7)}, rgba(0, 0, 0, 0.04) 0 ${y(17)} ${y(17)} ${y(-7)}`},other:{},components:{}};function R(e){return e&&"object"==typeof e&&!Array.isArray(e)}function O(e,t){const r={...e},o=t;return R(e)&&R(t)&&Object.keys(t).forEach((t=>{R(o[t])?r[t]=t in e?O(r[t],o[t]):o[t]:r[t]=o[t]})),r}const D="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function A(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function z(e){if(!(e.primaryColor in e.colors))throw new Error("[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");if(!("object"!=typeof e.primaryShade||A(e.primaryShade.dark)&&A(e.primaryShade.light)))throw new Error(D);if("number"==typeof e.primaryShade&&!A(e.primaryShade))throw new Error(D)}const L=(0,i.createContext)(null);function I(){const e=(0,i.useContext)(L);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function M({theme:e,children:t,inherit:r=!0}){const o=(0,i.useContext)(L)||E,n=(0,i.useMemo)((()=>function(e,t){if(!t)return z(e),e;const r=O(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(r.headings.fontFamily=t.fontFamily),z(r),r}(r?o:E,e)),[e,o,r]);return(0,c.jsx)(L.Provider,{value:n,children:t})}function F(){const e=I(),t=f(),r=h(e.breakpoints).reduce(((t,r)=>{const o=e.breakpoints[r].includes("px"),n=function(e){const t=function(e){return"string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e}(e);return"number"==typeof t?t:"string"==typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):NaN}(e.breakpoints[r]);return`${t}@media (max-width: ${o?n-.1+"px":v(n-.1)}) {.mantine-visible-from-${r} {display: none !important;}}@media (min-width: ${o?`${n}px`:v(n)}) {.mantine-hidden-from-${r} {display: none !important;}}`}),"");return(0,c.jsx)("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:r}})}function W(e){return Object.entries(e).map((([e,t])=>`${e}: ${t};`)).join("")}function H(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,t)=>`${t}{${e}}`),t)}function B({color:e,theme:t,autoContrast:r}){return("boolean"==typeof r?r:t.autoContrast)&&N({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function V(e,t){return B({color:e.colors[e.primaryColor][_(e,t)],theme:e,autoContrast:null})}function Y({theme:e,color:t,colorScheme:r,name:o=t,withColorValues:n=!0}){if(!e.colors[t])return{};if("light"===r){const r=_(e,"light"),s={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${r})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${9===r?8:r+1})`,[`--mantine-color-${o}-light`]:$(e.colors[t][r],.1),[`--mantine-color-${o}-light-hover`]:$(e.colors[t][r],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${r})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${r})`,[`--mantine-color-${o}-outline-hover`]:$(e.colors[t][r],.05)};return n?{[`--mantine-color-${o}-0`]:e.colors[t][0],[`--mantine-color-${o}-1`]:e.colors[t][1],[`--mantine-color-${o}-2`]:e.colors[t][2],[`--mantine-color-${o}-3`]:e.colors[t][3],[`--mantine-color-${o}-4`]:e.colors[t][4],[`--mantine-color-${o}-5`]:e.colors[t][5],[`--mantine-color-${o}-6`]:e.colors[t][6],[`--mantine-color-${o}-7`]:e.colors[t][7],[`--mantine-color-${o}-8`]:e.colors[t][8],[`--mantine-color-${o}-9`]:e.colors[t][9],...s}:s}const s=_(e,"dark"),a={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${9===s?8:s+1})`,[`--mantine-color-${o}-light`]:$(e.colors[t][Math.max(0,s-2)],.15),[`--mantine-color-${o}-light-hover`]:$(e.colors[t][Math.max(0,s-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(s-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(s-4,0)})`,[`--mantine-color-${o}-outline-hover`]:$(e.colors[t][Math.max(s-4,0)],.05)};return n?{[`--mantine-color-${o}-0`]:e.colors[t][0],[`--mantine-color-${o}-1`]:e.colors[t][1],[`--mantine-color-${o}-2`]:e.colors[t][2],[`--mantine-color-${o}-3`]:e.colors[t][3],[`--mantine-color-${o}-4`]:e.colors[t][4],[`--mantine-color-${o}-5`]:e.colors[t][5],[`--mantine-color-${o}-6`]:e.colors[t][6],[`--mantine-color-${o}-7`]:e.colors[t][7],[`--mantine-color-${o}-8`]:e.colors[t][8],[`--mantine-color-${o}-9`]:e.colors[t][9],...a}:a}function q(e,t,r){h(t).forEach((o=>Object.assign(e,{[`--mantine-${r}-${o}`]:t[o]})))}M.displayName="@mantine/core/MantineThemeProvider";const U=e=>{const t=_(e,"light"),r=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:y(e.defaultRadius),o={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":V(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":V(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};q(o.variables,e.breakpoints,"breakpoint"),q(o.variables,e.spacing,"spacing"),q(o.variables,e.fontSizes,"font-size"),q(o.variables,e.lineHeights,"line-height"),q(o.variables,e.shadows,"shadow"),q(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach(((t,r)=>{o.variables[`--mantine-primary-color-${r}`]=`var(--mantine-color-${e.primaryColor}-${r})`})),h(e.colors).forEach((t=>{const r=e.colors[t];if(function(e){return!!e&&"object"==typeof e&&"mantine-virtual-color"in e}(r))return Object.assign(o.light,Y({theme:e,name:r.name,color:r.light,colorScheme:"light",withColorValues:!0})),void Object.assign(o.dark,Y({theme:e,name:r.name,color:r.dark,colorScheme:"dark",withColorValues:!0}));r.forEach(((e,r)=>{o.variables[`--mantine-color-${t}-${r}`]=e})),Object.assign(o.light,Y({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,Y({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))}));const n=e.headings.sizes;return h(n).forEach((t=>{o.variables[`--mantine-${t}-font-size`]=n[t].fontSize,o.variables[`--mantine-${t}-line-height`]=n[t].lineHeight,o.variables[`--mantine-${t}-font-weight`]=n[t].fontWeight||e.headings.fontWeight})),o},X=U(E);function K({cssVariablesSelector:e,deduplicateCssVariables:t}){const r=I(),o=f(),n=function({theme:e,generator:t}){const r=U(e),o=t?.(e);return o?O(r,o):r}({theme:r,generator:m().cssVariablesResolver}),s=":root"===e&&t,a=function(e,t){const r=W(e.variables),o=r?H(t,r):"",n=W(e.dark),s=W(e.light);return`${o}${n?H(":host"===t?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,n):""}${s?H(":host"===t?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,s):""}`}(s?function(e){const t={variables:{},light:{},dark:{}};return h(e.variables).forEach((r=>{X.variables[r]!==e.variables[r]&&(t.variables[r]=e.variables[r])})),h(e.light).forEach((r=>{X.light[r]!==e.light[r]&&(t.light[r]=e.light[r])})),h(e.dark).forEach((r=>{X.dark[r]!==e.dark[r]&&(t.dark[r]=e.dark[r])})),t}(n):n,e);return a?(0,c.jsx)("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${a}${s?"":(i=e,`\n ${i}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n ${i}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n`)}`}}):null;var i}K.displayName="@mantine/CssVariables";const G="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function Z(e,t){const r="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o="auto"!==e?e:r?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",o)}function J({theme:e,children:t,getStyleNonce:r,withStaticClasses:o=!0,withGlobalClasses:n=!0,deduplicateCssVariables:s=!0,withCssVariables:a=!0,cssVariablesSelector:l=":root",classNamesPrefix:d="mantine",colorSchemeManager:m=u(),defaultColorScheme:f="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:b,forceColorScheme:g,stylesTransform:y}){const{colorScheme:v,setColorScheme:w,clearColorScheme:x}=function({manager:e,defaultColorScheme:t,getRootElement:r,forceColorScheme:o}){const n=(0,i.useRef)(null),[s,a]=(0,i.useState)((()=>e.get(t))),l=o||s,c=(0,i.useCallback)((t=>{o||(Z(t,r),a(t),e.set(t))}),[e.set,l,o]),d=(0,i.useCallback)((()=>{a(t),Z(t,r),e.clear()}),[e.clear,t]);return(0,i.useEffect)((()=>(e.subscribe(c),e.unsubscribe)),[e.subscribe,e.unsubscribe]),G((()=>{Z(e.get(t),r)}),[]),(0,i.useEffect)((()=>{if(o)return Z(o,r),()=>{};void 0===o&&Z(s,r),"undefined"!=typeof window&&"matchMedia"in window&&(n.current=window.matchMedia("(prefers-color-scheme: dark)"));const e=e=>{"auto"===s&&Z(e.matches?"dark":"light",r)};return n.current?.addEventListener("change",e),()=>n.current?.removeEventListener("change",e)}),[s,o]),{colorScheme:l,setColorScheme:c,clearColorScheme:d}}({defaultColorScheme:f,forceColorScheme:g,manager:m,getRootElement:h});return function({respectReducedMotion:e,getRootElement:t}){G((()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")}),[e])}({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:h}),(0,c.jsx)(p.Provider,{value:{colorScheme:v,setColorScheme:w,clearColorScheme:x,getRootElement:h,classNamesPrefix:d,getStyleNonce:r,cssVariablesResolver:b,cssVariablesSelector:l,withStaticClasses:o,stylesTransform:y},children:(0,c.jsxs)(M,{theme:e,children:[a&&(0,c.jsx)(K,{cssVariablesSelector:l,deduplicateCssVariables:s}),n&&(0,c.jsx)(F,{}),t]})})}!function(){const e=console.error;console.error=(...t)=>{t.length>1&&"string"==typeof t[0]&&t[0].toLowerCase().includes("extra attributes from the server")&&"string"==typeof t[1]&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}(),J.displayName="@mantine/core/MantineProvider";const Q=i["useId".toString()]||(()=>{});function ee(e){const t=function(){const e=Q();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[r,o]=(0,i.useState)(t);return G((()=>{o(function(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}())}),[]),"string"==typeof e?e:"undefined"==typeof window?t:r}function te({value:e,defaultValue:t,finalValue:r,onChange:o=()=>{}}){const[n,s]=(0,i.useState)(void 0!==t?t:r);return void 0!==e?[e,o,!0]:[n,(e,...t)=>{s(e),o?.(e,...t)},!1]}function re(e,t){return r=>{if("string"!=typeof r||0===r.trim().length)throw new Error(t);return`${e}-${r}`}}function oe(e){if("number"==typeof e)return!0;if("string"==typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;const 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 ne(e,t="size",r=!0){if(void 0!==e)return oe(e)?r?y(e):e:`var(--${t}-${e})`}function se(e){return ne(e,"mantine-spacing")}function ae(e){return void 0===e?"var(--mantine-radius-default)":ne(e,"mantine-radius")}function ie(e){return ne(e,"mantine-font-size")}function le(e){if(e)return ne(e,"mantine-shadow",!1)}function ce(e,t){return"boolean"==typeof e?e:t.autoContrast}function de(e){return Object.keys(e).reduce(((t,r)=>(void 0!==e[r]&&(t[r]=e[r]),t)),{})}function ue(e,t,r){const o=I(),n=o.components[e]?.defaultProps;return{...t,..."function"==typeof n?n(o):n,...de(r)}}function pe(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=pe(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const me=function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=pe(e))&&(o&&(o+=" "),o+=t);return o},fe={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"},he={};function be({theme:e,classNames:t,props:r,stylesCtx:o}){return function(e){const t={};return e.forEach((e=>{Object.entries(e).forEach((([e,r])=>{t[e]?t[e]=me(t[e],r):t[e]=r}))})),t}((Array.isArray(t)?t:[t]).map((t=>"function"==typeof t?t(e,r,o):t||he)))}function ge({selector:e,stylesCtx:t,theme:r,classNames:o,props:n}){return be({theme:r,classNames:o,props:n,stylesCtx:t})[e]}function ye({theme:e,options:t,themeName:r,selector:o,classNamesPrefix:n,classNames:s,classes:a,unstyled:i,className:l,rootSelector:c,props:d,stylesCtx:u,withStaticClasses:p,headless:m,transformedStyles:f}){return me(function({theme:e,options:t,unstyled:r}){return me(t?.focusable&&!r&&(e.focusClassName||fe[e.focusRing]),t?.active&&!r&&e.activeClassName)}({theme:e,options:t,unstyled:i||m}),function({themeName:e,theme:t,selector:r,props:o,stylesCtx:n}){return e.map((e=>be({theme:t,classNames:t.components[e]?.classNames,props:o,stylesCtx:n})?.[r]))}({theme:e,themeName:r,selector:o,props:d,stylesCtx:u}),function({options:e,classes:t,selector:r,unstyled:o}){return e?.variant&&!o?t[`${r}--${e.variant}`]:void 0}({options:t,classes:a,selector:o,unstyled:i}),ge({selector:o,stylesCtx:u,theme:e,classNames:s,props:d}),ge({selector:o,stylesCtx:u,theme:e,classNames:f,props:d}),function({selector:e,stylesCtx:t,options:r,props:o,theme:n}){return be({theme:n,classNames:r?.classNames,props:r?.props||o,stylesCtx:t})[e]}({selector:o,stylesCtx:u,options:t,props:d,theme:e}),function({rootSelector:e,selector:t,className:r}){return e===t?r:void 0}({rootSelector:c,selector:o,className:l}),function({selector:e,classes:t,unstyled:r}){return r?void 0:t[e]}({selector:o,classes:a,unstyled:i||m}),p&&!m&&function({themeName:e,classNamesPrefix:t,selector:r,withStaticClass:o}){return!1===o?[]:e.map((e=>`${t}-${e}-${r}`))}({themeName:r,classNamesPrefix:n,selector:o,withStaticClass:t?.withStaticClass}),t?.className)}function ve({theme:e,styles:t,props:r,stylesCtx:o}){return(Array.isArray(t)?t:[t]).reduce(((t,n)=>"function"==typeof n?{...t,...n(e,r,o)}:{...t,...n}),{})}function we({theme:e,themeName:t,props:r,stylesCtx:o,selector:n}){return t.map((t=>ve({theme:e,styles:e.components[t]?.styles,props:r,stylesCtx:o})[n])).reduce(((e,t)=>({...e,...t})),{})}function xe({style:e,theme:t}){return Array.isArray(e)?[...e].reduce(((e,r)=>({...e,...xe({style:r,theme:t})})),{}):"function"==typeof e?e(t):null==e?{}:e}function _e({vars:e,varsResolver:t,theme:r,props:o,stylesCtx:n,selector:s,themeName:a,headless:i}){return function(e){return e.reduce(((e,t)=>(t&&Object.keys(t).forEach((r=>{e[r]={...e[r],...de(t[r])}})),e)),{})}([i?{}:t?.(r,o,n),...a.map((e=>r.components?.[e]?.vars?.(r,o,n))),e?.(r,o,n)])?.[s]}function Ce({theme:e,themeName:t,selector:r,options:o,props:n,stylesCtx:s,rootSelector:a,styles:i,style:l,vars:c,varsResolver:d,headless:u,withStylesTransform:p}){return{...!p&&we({theme:e,themeName:t,props:n,stylesCtx:s,selector:r}),...!p&&ve({theme:e,styles:i,props:n,stylesCtx:s})[r],...!p&&ve({theme:e,styles:o?.styles,props:o?.props||n,stylesCtx:s})[r],..._e({theme:e,props:n,stylesCtx:s,vars:c,varsResolver:d,selector:r,themeName:t,headless:u}),...a===r?xe({style:l,theme:e}):null,...xe({style:o?.style,theme:e})}}function Se({name:e,classes:t,props:r,stylesCtx:o,className:n,style:s,rootSelector:a="root",unstyled:i,classNames:l,styles:c,vars:d,varsResolver:u}){const p=I(),f=m().classNamesPrefix,h=m().withStaticClasses,b=m().headless,g=(Array.isArray(e)?e:[e]).filter((e=>e)),{withStylesTransform:y,getTransformedStyles:v}=function({props:e,stylesCtx:t,themeName:r}){const o=I(),n=(m().stylesTransform?.styles)?.();return{getTransformedStyles:s=>n?[...s.map((r=>n(r,{props:e,theme:o,ctx:t}))),...r.map((r=>n(o.components[r]?.styles,{props:e,theme:o,ctx:t})))].filter(Boolean):[],withStylesTransform:!!n}}({props:r,stylesCtx:o,themeName:g});return(e,m)=>({className:ye({theme:p,options:m,themeName:g,selector:e,classNamesPrefix:f,classNames:l,classes:t,unstyled:i,className:n,rootSelector:a,props:r,stylesCtx:o,withStaticClasses:h,headless:b,transformedStyles:v([m?.styles,c])}),style:Ce({theme:p,themeName:g,selector:e,options:m,props:r,stylesCtx:o,rootSelector:a,styles:c,style:s,vars:d,varsResolver:u,headless:b,withStylesTransform:y})})}function Ne(e){return h(e).reduce(((t,r)=>{return void 0!==e[r]?`${t}${o=r,o.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}:${e[r]};`:t;var o}),"").trim()}function je({selector:e,styles:t,media:r,container:o}){const n=t?Ne(t):"",s=Array.isArray(r)?r.map((t=>`@media${t.query}{${e}{${Ne(t.styles)}}}`)):[],a=Array.isArray(o)?o.map((t=>`@container ${t.query}{${e}{${Ne(t.styles)}}}`)):[];return`${n?`${e}{${n}}`:""}${s.join("")}${a.join("")}`.trim()}function Pe(e){const t=f();return(0,c.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:je(e)}})}function ke(e){return e.startsWith("data-")?e:`data-${e}`}function $e(e){return e?"string"==typeof e?{[ke(e)]:!0}:Array.isArray(e)?[...e].reduce(((e,t)=>({...e,...$e(t)})),{}):(t=e,Object.keys(t).reduce(((e,r)=>{const o=t[r];return void 0===o||""===o||!1===o||null===o||(e[ke(r)]=t[r]),e}),{})):null;var t}function Te(e,t){return Array.isArray(e)?[...e].reduce(((e,r)=>({...e,...Te(r,t)})),{}):"function"==typeof e?e(t):null==e?{}:e}function Ee({theme:e,style:t,vars:r,styleProps:o}){return{...Te(t,e),...Te(r,e),...o}}function Re(e){const{m:t,mx:r,my:o,mt:n,mb:s,ml:a,mr:i,me:l,ms:c,p:d,px:u,py:p,pt:m,pb:f,pl:h,pr:b,pe:g,ps:y,bd:v,bg:w,c:x,opacity:_,ff:C,fz:S,fw:N,lts:j,ta:P,lh:k,fs:$,tt:T,td:E,w:R,miw:O,maw:D,h:A,mih:z,mah:L,bgsz:I,bgp:M,bgr:F,bga:W,pos:H,top:B,left:V,bottom:Y,right:q,inset:U,display:X,flex:K,hiddenFrom:G,visibleFrom:Z,lightHidden:J,darkHidden:Q,sx:ee,...te}=e;return{styleProps:de({m:t,mx:r,my:o,mt:n,mb:s,ml:a,mr:i,me:l,ms:c,p:d,px:u,py:p,pt:m,pb:f,pl:h,pr:b,pe:g,ps:y,bd:v,bg:w,c:x,opacity:_,ff:C,fz:S,fw:N,lts:j,ta:P,lh:k,fs:$,tt:T,td:E,w:R,miw:O,maw:D,h:A,mih:z,mah:L,bgsz:I,bgp:M,bgr:F,bga:W,pos:H,top:B,left:V,bottom:Y,right:q,inset:U,display:X,flex:K,hiddenFrom:G,visibleFrom:Z,lightHidden:J,darkHidden:Q,sx:ee}),rest:te}}const Oe={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"},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 De(e,t){const r=N({color:e,theme:t});return"dimmed"===r.color?"var(--mantine-color-dimmed)":"bright"===r.color?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}const Ae={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)"},ze=["h1","h2","h3","h4","h5","h6"],Le=["h1","h2","h3","h4","h5","h6"],Ie={color:De,textColor:function(e,t){const r=N({color:e,theme:t});return r.isThemeColor&&void 0===r.shade?`var(--mantine-color-${r.color}-text)`:De(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&ze.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?y(e):e},spacing:function(e,t){if("number"==typeof e)return y(e);if("string"==typeof e){const r=e.replace("-","");if(!(r in t.spacing))return y(e);const o=`--mantine-spacing-${r}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e},identity:function(e){return e},size:function(e){return"number"==typeof e?y(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&Le.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in Ae?Ae[e]:e},border:function(e,t){if("number"==typeof e)return y(e);if("string"==typeof e){const[r,o,...n]=e.split(" ").filter((e=>""!==e.trim()));let s=`${y(r)}`;return o&&(s+=` ${o}`),n.length>0&&(s+=` ${De(n.join(" "),t)}`),s.trim()}return e}};function Me(e){return e.replace("(min-width: ","").replace("em)","")}function Fe(e,t){return"object"==typeof e&&null!==e&&t in e?e[t]:e}const We=(0,i.forwardRef)((({component:e,style:t,__vars:r,className:o,variant:n,mod:s,size:a,hiddenFrom:l,visibleFrom:d,lightHidden:u,darkHidden:p,renderRoot:f,__size:b,...g},y)=>{const v=I(),w=e||"div",{styleProps:x,rest:_}=Re(g),C=m().stylesTransform?.sx,S=C?.()?.(x.sx),N=`__m__-${(0,i.useId)().replace(/:/g,"")}`,j=function({styleProps:e,data:t,theme:r}){return function({media:e,...t}){return{...t,media:Object.keys(e).sort(((e,t)=>Number(Me(e))-Number(Me(t)))).map((t=>({query:t,styles:e[t]})))}}(h(e).reduce(((o,n)=>{if("hiddenFrom"===n||"visibleFrom"===n||"sx"===n)return o;const s=t[n],a=Array.isArray(s.property)?s.property:[s.property],i="object"==typeof(l=e[n])&&null!==l?"base"in l?l.base:void 0:l;var l;if(!function(e){if("object"!=typeof e||null===e)return!1;const t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(e[n]))return a.forEach((e=>{o.inlineStyles[e]=Ie[s.type](i,r)})),o;o.hasResponsiveStyles=!0;const c=function(e){return"object"==typeof e&&null!==e?h(e).filter((e=>"base"!==e)):[]}(e[n]);return a.forEach((t=>{i&&(o.styles[t]=Ie[s.type](i,r)),c.forEach((a=>{const i=`(min-width: ${r.breakpoints[a]})`;o.media[i]={...o.media[i],[t]:Ie[s.type](Fe(e[n],a),r)}}))})),o}),{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}({styleProps:x,theme:v,data:Oe}),P={ref:y,style:Ee({theme:v,style:t,vars:r,styleProps:j.inlineStyles}),className:me(o,S,{[N]:j.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":p,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${d}`]:d}),"data-variant":n,"data-size":oe(a)?void 0:a||void 0,size:b,...$e(s),..._};return(0,c.jsxs)(c.Fragment,{children:[j.hasResponsiveStyles&&(0,c.jsx)(Pe,{selector:`.${N}`,styles:j.styles,media:j.media}),"function"==typeof f?f(P):(0,c.jsx)(w,{...P})]})}));We.displayName="@mantine/core/Box";const He=We;function Be(e){return e}function Ve(e){const t=(0,i.forwardRef)(e);return t.extend=Be,t.withProps=e=>{const r=(0,i.forwardRef)(((r,o)=>(0,c.jsx)(t,{...e,...r,ref:o})));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function Ye(e){const t=(0,i.createContext)(null);return[({children:e,value:r})=>(0,c.jsx)(t.Provider,{value:r,children:e}),()=>{const r=(0,i.useContext)(t);if(null===r)throw new Error(e);return r}]}const[qe,Ue]=Ye("Tabs component was not found in the tree");var Xe={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Ke={},Ge=Ve(((e,t)=>{const r=ue("TabsList",Ke,e),{children:o,className:n,grow:s,justify:a,classNames:i,styles:l,style:d,mod:u,...p}=r,m=Ue();return(0,c.jsx)(He,{...p,...m.getStyles("list",{className:n,style:d,classNames:i,styles:l,props:r,variant:m.variant}),ref:t,role:"tablist",variant:m.variant,mod:[{grow:s,orientation:m.orientation,placement:"vertical"===m.orientation&&m.placement,inverted:m.inverted},u],"aria-orientation":m.orientation,__vars:{"--tabs-justify":a},children:o})}));Ge.classes=Xe,Ge.displayName="@mantine/core/TabsList";const Ze={},Je=Ve(((e,t)=>{const r=ue("TabsPanel",Ze,e),{children:o,className:n,value:s,classNames:a,styles:i,style:l,mod:d,keepMounted:u,...p}=r,m=Ue(),f=m.value===s,h=m.keepMounted||u||f?o:null;return(0,c.jsx)(He,{...p,...m.getStyles("panel",{className:n,classNames:a,styles:i,style:[l,f?void 0:{display:"none"}],props:r}),ref:t,mod:[{orientation:m.orientation},d],role:"tabpanel",id:m.getPanelId(s),"aria-labelledby":m.getTabId(s),children:h})}));function Qe(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function et({parentSelector:e,siblingSelector:t,onKeyDown:r,loop:o=!0,activateOnFocus:n=!1,dir:s="rtl",orientation:a}){return i=>{r?.(i);const l=Array.from(Qe(i.currentTarget,e)?.querySelectorAll(t)||[]).filter((t=>function(e,t,r){return Qe(e,r)===Qe(t,r)}(i.currentTarget,t,e))),c=l.findIndex((e=>i.currentTarget===e)),d=function(e,t,r){for(let r=e+1;r<t.length;r+=1)if(!t[r].disabled)return r;if(r)for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e;return e}(c,l,o),u=function(e,t,r){for(let r=e-1;r>=0;r-=1)if(!t[r].disabled)return r;if(r)for(let e=t.length-1;e>-1;e-=1)if(!t[e].disabled)return e;return e}(c,l,o),p="rtl"===s?u:d,m="rtl"===s?d:u;switch(i.key){case"ArrowRight":"horizontal"===a&&(i.stopPropagation(),i.preventDefault(),l[p].focus(),n&&l[p].click());break;case"ArrowLeft":"horizontal"===a&&(i.stopPropagation(),i.preventDefault(),l[m].focus(),n&&l[m].click());break;case"ArrowUp":"vertical"===a&&(i.stopPropagation(),i.preventDefault(),l[u].focus(),n&&l[u].click());break;case"ArrowDown":"vertical"===a&&(i.stopPropagation(),i.preventDefault(),l[d].focus(),n&&l[d].click());break;case"Home":i.stopPropagation(),i.preventDefault(),!l[0].disabled&&l[0].focus();break;case"End":{i.stopPropagation(),i.preventDefault();const e=l.length-1;!l[e].disabled&&l[e].focus();break}}}}Je.classes=Xe,Je.displayName="@mantine/core/TabsPanel";const tt=(0,i.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function rt(){return(0,i.useContext)(tt)}function ot(e){const t=(0,i.forwardRef)(e);return t.withProps=e=>{const r=(0,i.forwardRef)(((r,o)=>(0,c.jsx)(t,{...e,...r,ref:o})));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=Be,t}var nt={root:"m_87cf2631"};const st={__staticSelector:"UnstyledButton"},at=ot(((e,t)=>{const r=ue("UnstyledButton",st,e),{className:o,component:n="button",__staticSelector:s,unstyled:a,classNames:i,styles:l,style:d,...u}=r,p=Se({name:s,props:r,classes:nt,className:o,style:d,classNames:i,styles:l,unstyled:a});return(0,c.jsx)(He,{...p("root",{focusable:!0}),component:n,ref:t,type:"button"===n?"button":void 0,...u})}));at.classes=nt,at.displayName="@mantine/core/UnstyledButton";const it={},lt=Ve(((e,t)=>{const r=ue("TabsTab",it,e),{className:o,children:n,rightSection:s,leftSection:a,value:i,onClick:l,onKeyDown:d,disabled:u,color:p,style:m,classNames:f,styles:h,vars:b,mod:g,tabIndex:y,...v}=r,w=I(),{dir:x}=rt(),_=Ue(),C=i===_.value,S={classNames:f,styles:h,props:r};return(0,c.jsxs)(at,{...v,..._.getStyles("tab",{className:o,style:m,variant:_.variant,...S}),disabled:u,unstyled:_.unstyled,variant:_.variant,mod:[{active:C,disabled:u,orientation:_.orientation,inverted:_.inverted,placement:"vertical"===_.orientation&&_.placement},g],ref:t,role:"tab",id:_.getTabId(i),"aria-selected":C,tabIndex:void 0!==y?y:C||null===_.value?0:-1,"aria-controls":_.getPanelId(i),onClick:e=>{_.onChange(_.allowTabDeactivation&&i===_.value?null:i),l?.(e)},__vars:{"--tabs-color":p?j(p,w):void 0},onKeyDown:et({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:_.activateTabWithKeyboard,loop:_.loop,orientation:_.orientation||"horizontal",dir:x,onKeyDown:d}),children:[a&&(0,c.jsx)("span",{..._.getStyles("tabSection",S),"data-position":"left",children:a}),n&&(0,c.jsx)("span",{..._.getStyles("tabLabel",S),children:n}),s&&(0,c.jsx)("span",{..._.getStyles("tabSection",S),"data-position":"right",children:s})]})}));lt.classes=Xe,lt.displayName="@mantine/core/TabsTab";const ct="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",dt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},ut=(e,{radius:t,color:r,autoContrast:o})=>({root:{"--tabs-radius":ae(t),"--tabs-color":j(r,e),"--tabs-text-color":ce(o,e)?B({color:r,theme:e,autoContrast:o}):void 0}}),pt=Ve(((e,t)=>{const r=ue("Tabs",dt,e),{defaultValue:o,value:n,onChange:s,orientation:a,children:i,loop:l,id:d,activateTabWithKeyboard:u,allowTabDeactivation:p,variant:m,color:f,radius:h,inverted:b,placement:g,keepMounted:y,classNames:v,styles:w,unstyled:x,className:_,style:C,vars:S,autoContrast:N,mod:j,...P}=r,k=ee(d),[$,T]=te({value:n,defaultValue:o,finalValue:null,onChange:s}),E=Se({name:"Tabs",props:r,classes:Xe,className:_,style:C,classNames:v,styles:w,unstyled:x,vars:S,varsResolver:ut});return(0,c.jsx)(qe,{value:{placement:g,value:$,orientation:a,id:k,loop:l,activateTabWithKeyboard:u,getTabId:re(`${k}-tab`,ct),getPanelId:re(`${k}-panel`,ct),onChange:T,allowTabDeactivation:p,variant:m,color:f,radius:h,inverted:b,keepMounted:y,unstyled:x,getStyles:E},children:(0,c.jsx)(He,{ref:t,id:k,variant:m,mod:[{orientation:a,inverted:"horizontal"===a&&b,placement:"vertical"===a&&g},j],...E("root"),...P,children:i})})}));function mt({classNames:e,styles:t,props:r,stylesCtx:o}){const n=I();return{resolvedClassNames:be({theme:n,classNames:e,props:r,stylesCtx:o||void 0}),resolvedStyles:ve({theme:n,styles:t,props:r,stylesCtx:o||void 0})}}function ft(e){return"string"==typeof e?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:"number"==typeof e?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map((e=>ft(e)))}:e}function ht(e){return e?e.map((e=>ft(e))):[]}function bt(e){return e.reduce(((e,t)=>"group"in t?{...e,...bt(t.items)}:(e[t.value]=t,e)),{})}pt.classes=Xe,pt.displayName="@mantine/core/Tabs",pt.Tab=lt,pt.Panel=Je,pt.List=Ge;const gt=["mousedown","touchstart"],yt={app:100,modal:200,popover:300,overlay:400,max:9999};function vt(e){return yt[e]}function wt(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,r]=t.split("-"),o="right"===e?"left":"right";return void 0===r?o:`${o}-${r}`}return t}var xt={root:"m_9814e45f"};const _t={zIndex:vt("modal")},Ct=(e,{gradient:t,color:r,backgroundOpacity:o,blur:n,radius:s,zIndex:a})=>({root:{"--overlay-bg":t||(void 0!==r||void 0!==o)&&k(r||"#000",o??.6)||void 0,"--overlay-filter":n?`blur(${y(n)})`:void 0,"--overlay-radius":void 0===s?void 0:ae(s),"--overlay-z-index":a?.toString()}}),St=ot(((e,t)=>{const r=ue("Overlay",_t,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,fixed:d,center:u,children:p,radius:m,zIndex:f,gradient:h,blur:b,color:g,backgroundOpacity:y,mod:v,...w}=r,x=Se({name:"Overlay",props:r,classes:xt,className:n,style:s,classNames:o,styles:a,unstyled:i,vars:l,varsResolver:Ct});return(0,c.jsx)(He,{ref:t,...x("root"),mod:[{center:u,fixed:d},v],...w,children:p})}));St.classes=xt,St.displayName="@mantine/core/Overlay";const Nt=window.ReactDOM;function jt(e,t){if("function"==typeof e)return e(t);"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}function Pt(...e){return(0,i.useCallback)(function(...e){const t=new Map;return r=>{if(e.forEach((e=>{const o=jt(e,r);o&&t.set(e,o)})),t.size>0)return()=>{e.forEach((e=>{const r=t.get(e);r?r():jt(e,null)})),t.clear()}}}(...e),e)}const kt={},$t=(0,i.forwardRef)(((e,t)=>{const{children:r,target:o,...n}=ue("Portal",kt,e),[s,a]=(0,i.useState)(!1),l=(0,i.useRef)(null);return G((()=>(a(!0),l.current=o?"string"==typeof o?document.querySelector(o):o:function(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"==typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"==typeof e.style&&Object.assign(t.style,e.style),"string"==typeof e.id&&t.setAttribute("id",e.id),t}(n),jt(t,l.current),!o&&l.current&&document.body.appendChild(l.current),()=>{!o&&l.current&&document.body.removeChild(l.current)})),[o]),s&&l.current?(0,Nt.createPortal)((0,c.jsx)(c.Fragment,{children:r}),l.current):null}));function Tt({withinPortal:e=!0,children:t,...r}){return e?(0,c.jsx)($t,{...r,children:t}):(0,c.jsx)(c.Fragment,{children:t})}$t.displayName="@mantine/core/Portal",Tt.displayName="@mantine/core/OptionalPortal";const Et=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${"bottom"===e?10:-10}px)`},transitionProperty:"transform, opacity"}),Rt={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:{...Et("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Et("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Et("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Et("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Et("top"),common:{transformOrigin:"top right"}}},Ot={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Dt({transition:e,state:t,duration:r,timingFunction:o}){const n={transitionDuration:`${r}ms`,transitionTimingFunction:o};return"string"==typeof e?e in Rt?{transitionProperty:Rt[e].transitionProperty,...n,...Rt[e].common,...Rt[e][Ot[t]]}:{}:{transitionProperty:e.transitionProperty,...n,...e.common,...e[Ot[t]]}}function At(e,t){const r=(0,i.useRef)(!1);(0,i.useEffect)((()=>()=>{r.current=!1}),[]),(0,i.useEffect)((()=>{if(r.current)return e();r.current=!0}),t)}function zt({duration:e,exitDuration:t,timingFunction:r,mounted:o,onEnter:n,onExit:s,onEntered:a,onExited:l,enterDelay:c,exitDelay:d}){const u=I(),p=function(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[o,n]=(0,i.useState)(r?t:function(e){return"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e)),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if("matchMedia"in window)return s.current=window.matchMedia(e),n(s.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(r){return e.addListener(t),()=>e.removeListener(t)}}(s.current,(e=>n(e.matches)))}),[e]),o}("(prefers-reduced-motion: reduce)",undefined,undefined);const m=!!u.respectReducedMotion&&p,[f,h]=(0,i.useState)(m?0:e),[b,g]=(0,i.useState)(o?"entered":"exited"),y=(0,i.useRef)(-1),v=(0,i.useRef)(-1),w=(0,i.useRef)(-1),x=r=>{const o=r?n:s,i=r?a:l;window.clearTimeout(y.current);const c=m?0:r?e:t;h(c),0===c?("function"==typeof o&&o(),"function"==typeof i&&i(),g(r?"entered":"exited")):w.current=requestAnimationFrame((()=>{Nt.flushSync((()=>{g(r?"pre-entering":"pre-exiting")})),w.current=requestAnimationFrame((()=>{"function"==typeof o&&o(),g(r?"entering":"exiting"),y.current=window.setTimeout((()=>{"function"==typeof i&&i(),g(r?"entered":"exited")}),c)}))}))};return At((()=>{var e;e=o,window.clearTimeout(v.current),"number"==typeof(e?c:d)?v.current=window.setTimeout((()=>{x(e)}),e?c:d):x(e)}),[o]),(0,i.useEffect)((()=>()=>{window.clearTimeout(y.current),cancelAnimationFrame(w.current)}),[]),{transitionDuration:f,transitionStatus:b,transitionTimingFunction:r||"ease"}}function Lt({keepMounted:e,transition:t="fade",duration:r=250,exitDuration:o=r,mounted:n,children:s,timingFunction:a="ease",onExit:i,onEntered:l,onEnter:d,onExited:u,enterDelay:p,exitDelay:m}){const{transitionDuration:f,transitionStatus:h,transitionTimingFunction:b}=zt({mounted:n,exitDuration:o,duration:r,timingFunction:a,onExit:i,onEntered:l,onEnter:d,onExited:u,enterDelay:p,exitDelay:m});return 0===f?n?(0,c.jsx)(c.Fragment,{children:s({})}):e?s({display:"none"}):null:"exited"===h?e?s({display:"none"}):null:(0,c.jsx)(c.Fragment,{children:s(Dt({transition:t,duration:f,state:h,timingFunction:b}))})}Lt.displayName="@mantine/core/Transition";const[It,Mt]=Ye("Popover component was not found in the tree"),Ft=()=>{};function Wt(e,t={active:!0}){return"function"==typeof e&&t.active?r=>{"Escape"===r.key&&(e(r),t.onTrigger?.())}:t.onKeyDown||Ft}function Ht(e,t,r,o){return"center"===e||"center"===o?{top:t}:"end"===e?{bottom:r}:"start"===e?{top:r}:{}}function Bt(e,t,r,o,n){return"center"===e||"center"===o?{left:t}:"end"===e?{["ltr"===n?"right":"left"]:r}:"start"===e?{["ltr"===n?"left":"right"]:r}:{}}const Vt={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Yt({position:e,arrowSize:t,arrowOffset:r,arrowRadius:o,arrowPosition:n,arrowX:s,arrowY:a,dir:i}){const[l,c="center"]=e.split("-"),d={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[Vt[l]]:o},u=-t/2;return"left"===l?{...d,...Ht(c,a,r,n),right:u,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===l?{...d,...Ht(c,a,r,n),left:u,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===l?{...d,...Bt(c,s,r,n,i),bottom:u,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===l?{...d,...Bt(c,s,r,n,i),top:u,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const qt=(0,i.forwardRef)((({position:e,arrowSize:t,arrowOffset:r,arrowRadius:o,arrowPosition:n,visible:s,arrowX:a,arrowY:i,style:l,...d},u)=>{const{dir:p}=rt();return s?(0,c.jsx)("div",{...d,ref:u,style:{...l,...Yt({position:e,arrowSize:t,arrowOffset:r,arrowRadius:o,arrowPosition:n,dir:p,arrowX:a,arrowY:i})}}):null}));qt.displayName="@mantine/core/FloatingArrow";const Ut=/input|select|textarea|button|object/,Xt="a, input, select, textarea, button, object, [tabindex]";function Kt(e){return"none"===e.style.display}function Gt(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function Zt(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(Gt(e));return(Ut.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if(Kt(t))return!1;t=t.parentNode}return!0}(e)}function Jt(e){const t=Gt(e);return(Number.isNaN(t)||t>=0)&&Zt(e)}function Qt(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==i.Fragment}var er={root:"m_515a97f8"};const tr={},rr=Ve(((e,t)=>{const r=ue("VisuallyHidden",tr,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,...d}=r,u=Se({name:"VisuallyHidden",classes:er,props:r,className:n,style:s,classNames:o,styles:a,unstyled:i});return(0,c.jsx)(He,{component:"span",ref:t,...u("root"),...d})}));function or({children:e,active:t=!0,refProp:r="ref",innerRef:o}){const n=function(e=!0){const t=(0,i.useRef)(null),r=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const r=Array.from(e.querySelectorAll(Xt));t=r.find(Jt)||r.find(Zt)||null,!t&&Zt(e)&&(t=e)}t&&t.focus({preventScroll:!0})},o=(0,i.useCallback)((o=>{e&&null!==o&&t.current!==o&&(o?(setTimeout((()=>{o.getRootNode()&&r(o)})),t.current=o):t.current=null)}),[e]);return(0,i.useEffect)((()=>{if(!e)return;t.current&&setTimeout((()=>r(t.current)));const o=e=>{"Tab"===e.key&&t.current&&function(e,t){const r=(o=e,Array.from(o.querySelectorAll(Xt)).filter(Jt));var o;if(!r.length)return void t.preventDefault();const n=r[t.shiftKey?0:r.length-1],s=e.getRootNode();let a=n===s.activeElement||e===s.activeElement;const i=s.activeElement;if("INPUT"===i.tagName&&"radio"===i.getAttribute("type")){const e=r.filter((e=>"radio"===e.getAttribute("type")&&e.getAttribute("name")===i.getAttribute("name")));a=e.includes(n)}if(!a)return;t.preventDefault();const l=r[t.shiftKey?r.length-1:0];l&&l.focus()}(t.current,e)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)}),[e]),o}(t),s=Pt(n,o);return Qt(e)?(0,i.cloneElement)(e,{[r]:s}):e}function nr(e){return(0,c.jsx)(rr,{tabIndex:-1,"data-autofocus":!0,...e})}rr.classes=er,rr.displayName="@mantine/core/VisuallyHidden",or.displayName="@mantine/core/FocusTrap",nr.displayName="@mantine/core/FocusTrapInitialFocus",or.InitialFocus=nr;var sr={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const ar={},ir=Ve(((e,t)=>{const r=ue("PopoverDropdown",ar,e),{className:o,style:n,vars:s,children:a,onKeyDownCapture:l,variant:d,classNames:u,styles:p,...m}=r,f=Mt(),h=function({opened:e,shouldReturnFocus:t=!0}){const r=(0,i.useRef)(null),o=()=>{r.current&&"focus"in r.current&&"function"==typeof r.current.focus&&r.current?.focus({preventScroll:!0})};return At((()=>{let n=-1;const s=e=>{"Tab"===e.key&&window.clearTimeout(n)};return document.addEventListener("keydown",s),e?r.current=document.activeElement:t&&(n=window.setTimeout(o,10)),()=>{window.clearTimeout(n),document.removeEventListener("keydown",s)}}),[e,t]),o}({opened:f.opened,shouldReturnFocus:f.returnFocus}),b=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},g=Pt(t,f.floating);return f.disabled?null:(0,c.jsx)(Tt,{...f.portalProps,withinPortal:f.withinPortal,children:(0,c.jsx)(Lt,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:"number"==typeof f.transitionProps?.exitDuration?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,c.jsx)(or,{active:f.trapFocus&&f.opened,innerRef:g,children:(0,c.jsxs)(He,{...b,...m,variant:d,onKeyDownCapture:Wt(f.onClose,{active:f.closeOnEscape,onTrigger:h,onKeyDown:l}),"data-position":f.placement,"data-fixed":"fixed"===f.floatingStrategy||void 0,...f.getStyles("dropdown",{className:o,props:r,classNames:u,styles:p,style:[{...e,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:"target"===f.width?void 0:y(f.width)},f.resolvedStyles.dropdown,p?.dropdown,n]}),children:[a,(0,c.jsx)(qt,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:r,classNames:u,styles:p})})]})})})})}));function lr(e){const t=i.version;return"string"!=typeof i.version||t.startsWith("18.")?e?.ref:e?.props?.ref}ir.classes=sr,ir.displayName="@mantine/core/PopoverDropdown";const cr={refProp:"ref",popupType:"dialog"},dr=Ve(((e,t)=>{const{children:r,refProp:o,popupType:n,...s}=ue("PopoverTarget",cr,e);if(!Qt(r))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=s,l=Mt(),c=Pt(l.reference,lr(r),t),d=l.withRoles?{"aria-haspopup":n,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return(0,i.cloneElement)(r,{...a,...d,...l.targetProps,className:me(l.targetProps.className,a.className,r.props.className),[o]:c,...l.controlled?null:{onClick:l.onToggle}})}));dr.displayName="@mantine/core/PopoverTarget";const ur=Math.min,pr=Math.max,mr=Math.round,fr=Math.floor,hr=e=>({x:e,y:e}),br={left:"right",right:"left",bottom:"top",top:"bottom"},gr={start:"end",end:"start"};function yr(e,t,r){return pr(e,ur(t,r))}function vr(e,t){return"function"==typeof e?e(t):e}function wr(e){return e.split("-")[0]}function xr(e){return e.split("-")[1]}function _r(e){return"x"===e?"y":"x"}function Cr(e){return"y"===e?"height":"width"}function Sr(e){return["top","bottom"].includes(wr(e))?"y":"x"}function Nr(e){return _r(Sr(e))}function jr(e){return e.replace(/start|end/g,(e=>gr[e]))}function Pr(e){return e.replace(/left|right|bottom|top/g,(e=>br[e]))}function kr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $r(e){const{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function Tr(e,t,r){let{reference:o,floating:n}=e;const s=Sr(t),a=Nr(t),i=Cr(a),l=wr(t),c="y"===s,d=o.x+o.width/2-n.width/2,u=o.y+o.height/2-n.height/2,p=o[i]/2-n[i]/2;let m;switch(l){case"top":m={x:d,y:o.y-n.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-n.width,y:u};break;default:m={x:o.x,y:o.y}}switch(xr(t)){case"start":m[a]-=p*(r&&c?-1:1);break;case"end":m[a]+=p*(r&&c?-1:1)}return m}async function Er(e,t){var r;void 0===t&&(t={});const{x:o,y:n,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=vr(t,e),f=kr(m),h=i[p?"floating"===u?"reference":"floating":u],b=$r(await s.getClippingRect({element:null==(r=await(null==s.isElement?void 0:s.isElement(h)))||r?h:h.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),g="floating"===u?{x:o,y:n,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(i.floating)),v=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},w=$r(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:y,strategy:l}):g);return{top:(b.top-w.top+f.top)/v.y,bottom:(w.bottom-b.bottom+f.bottom)/v.y,left:(b.left-w.left+f.left)/v.x,right:(w.right-b.right+f.right)/v.x}}function Rr(e){const t=ur(...e.map((e=>e.left))),r=ur(...e.map((e=>e.top)));return{x:t,y:r,width:pr(...e.map((e=>e.right)))-t,height:pr(...e.map((e=>e.bottom)))-r}}function Or(){return"undefined"!=typeof window}function Dr(e){return Lr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ar(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function zr(e){var t;return null==(t=(Lr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Lr(e){return!!Or()&&(e instanceof Node||e instanceof Ar(e).Node)}function Ir(e){return!!Or()&&(e instanceof Element||e instanceof Ar(e).Element)}function Mr(e){return!!Or()&&(e instanceof HTMLElement||e instanceof Ar(e).HTMLElement)}function Fr(e){return!(!Or()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ar(e).ShadowRoot)}function Wr(e){const{overflow:t,overflowX:r,overflowY:o,display:n}=Ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(n)}function Hr(e){return["table","td","th"].includes(Dr(e))}function Br(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Vr(e){const t=Yr(),r=Ir(e)?Ur(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Yr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qr(e){return["html","body","#document"].includes(Dr(e))}function Ur(e){return Ar(e).getComputedStyle(e)}function Xr(e){return Ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kr(e){if("html"===Dr(e))return e;const t=e.assignedSlot||e.parentNode||Fr(e)&&e.host||zr(e);return Fr(t)?t.host:t}function Gr(e){const t=Kr(e);return qr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mr(t)&&Wr(t)?t:Gr(t)}function Zr(e,t,r){var o;void 0===t&&(t=[]),void 0===r&&(r=!0);const n=Gr(e),s=n===(null==(o=e.ownerDocument)?void 0:o.body),a=Ar(n);if(s){const e=Jr(a);return t.concat(a,a.visualViewport||[],Wr(n)?n:[],e&&r?Zr(e):[])}return t.concat(n,Zr(n,[],r))}function Jr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qr(e){const t=Ur(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=Mr(e),s=n?e.offsetWidth:r,a=n?e.offsetHeight:o,i=mr(r)!==s||mr(o)!==a;return i&&(r=s,o=a),{width:r,height:o,$:i}}function eo(e){return Ir(e)?e:e.contextElement}function to(e){const t=eo(e);if(!Mr(t))return hr(1);const r=t.getBoundingClientRect(),{width:o,height:n,$:s}=Qr(t);let a=(s?mr(r.width):r.width)/o,i=(s?mr(r.height):r.height)/n;return a&&Number.isFinite(a)||(a=1),i&&Number.isFinite(i)||(i=1),{x:a,y:i}}const ro=hr(0);function oo(e){const t=Ar(e);return Yr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ro}function no(e,t,r,o){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=e.getBoundingClientRect(),s=eo(e);let a=hr(1);t&&(o?Ir(o)&&(a=to(o)):a=to(e));const i=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Ar(e))&&t}(s,r,o)?oo(s):hr(0);let l=(n.left+i.x)/a.x,c=(n.top+i.y)/a.y,d=n.width/a.x,u=n.height/a.y;if(s){const e=Ar(s),t=o&&Ir(o)?Ar(o):o;let r=e,n=Jr(r);for(;n&&o&&t!==r;){const e=to(n),t=n.getBoundingClientRect(),o=Ur(n),s=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=s,c+=a,r=Ar(n),n=Jr(r)}}return $r({width:d,height:u,x:l,y:c})}function so(e,t){const r=Xr(e).scrollLeft;return t?t.left+r:no(zr(e)).left+r}function ao(e,t,r){void 0===r&&(r=!1);const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-(r?0:so(e,o)),y:o.top+t.scrollTop}}function io(e,t,r){let o;if("viewport"===t)o=function(e,t){const r=Ar(e),o=zr(e),n=r.visualViewport;let s=o.clientWidth,a=o.clientHeight,i=0,l=0;if(n){s=n.width,a=n.height;const e=Yr();(!e||e&&"fixed"===t)&&(i=n.offsetLeft,l=n.offsetTop)}return{width:s,height:a,x:i,y:l}}(e,r);else if("document"===t)o=function(e){const t=zr(e),r=Xr(e),o=e.ownerDocument.body,n=pr(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=pr(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+so(e);const i=-r.scrollTop;return"rtl"===Ur(o).direction&&(a+=pr(t.clientWidth,o.clientWidth)-n),{width:n,height:s,x:a,y:i}}(zr(e));else if(Ir(t))o=function(e,t){const r=no(e,!0,"fixed"===t),o=r.top+e.clientTop,n=r.left+e.clientLeft,s=Mr(e)?to(e):hr(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:n*s.x,y:o*s.y}}(t,r);else{const r=oo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return $r(o)}function lo(e,t){const r=Kr(e);return!(r===t||!Ir(r)||qr(r))&&("fixed"===Ur(r).position||lo(r,t))}function co(e,t,r){const o=Mr(t),n=zr(t),s="fixed"===r,a=no(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=hr(0);if(o||!o&&!s)if(("body"!==Dr(t)||Wr(n))&&(i=Xr(t)),o){const e=no(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&(l.x=so(n));const c=!n||o||s?hr(0):ao(n,i);return{x:a.left+i.scrollLeft-l.x-c.x,y:a.top+i.scrollTop-l.y-c.y,width:a.width,height:a.height}}function uo(e){return"static"===Ur(e).position}function po(e,t){if(!Mr(e)||"fixed"===Ur(e).position)return null;if(t)return t(e);let r=e.offsetParent;return zr(e)===r&&(r=r.ownerDocument.body),r}function mo(e,t){const r=Ar(e);if(Br(e))return r;if(!Mr(e)){let t=Kr(e);for(;t&&!qr(t);){if(Ir(t)&&!uo(t))return t;t=Kr(t)}return r}let o=po(e,t);for(;o&&Hr(o)&&uo(o);)o=po(o,t);return o&&qr(o)&&uo(o)&&!Vr(o)?r:o||function(e){let t=Kr(e);for(;Mr(t)&&!qr(t);){if(Vr(t))return t;if(Br(t))return null;t=Kr(t)}return null}(e)||r}const fo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e;const s="fixed"===n,a=zr(o),i=!!t&&Br(t.floating);if(o===a||i&&s)return r;let l={scrollLeft:0,scrollTop:0},c=hr(1);const d=hr(0),u=Mr(o);if((u||!u&&!s)&&(("body"!==Dr(o)||Wr(a))&&(l=Xr(o)),Mr(o))){const e=no(o);c=to(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const p=!a||u||s?hr(0):ao(a,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:zr,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e;const s=[..."clippingAncestors"===r?Br(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let o=Zr(e,[],!1).filter((e=>Ir(e)&&"body"!==Dr(e))),n=null;const s="fixed"===Ur(e).position;let a=s?Kr(e):e;for(;Ir(a)&&!qr(a);){const t=Ur(a),r=Vr(a);r||"fixed"!==t.position||(n=null),(s?!r&&!n:!r&&"static"===t.position&&n&&["absolute","fixed"].includes(n.position)||Wr(a)&&!r&&lo(e,a))?o=o.filter((e=>e!==a)):n=t,a=Kr(a)}return t.set(e,o),o}(t,this._c):[].concat(r),o],a=s[0],i=s.reduce(((e,r)=>{const o=io(t,r,n);return e.top=pr(o.top,e.top),e.right=ur(o.right,e.right),e.bottom=ur(o.bottom,e.bottom),e.left=pr(o.left,e.left),e}),io(t,a,n));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:mo,getElementRects:async function(e){const t=this.getOffsetParent||mo,r=this.getDimensions,o=await r(e.floating);return{reference:co(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Qr(e);return{width:t,height:r}},getScale:to,isElement:Ir,isRTL:function(e){return"rtl"===Ur(e).direction}};function ho(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const bo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:n,y:s,placement:a,middlewareData:i}=t,l=await async function(e,t){const{placement:r,platform:o,elements:n}=e,s=await(null==o.isRTL?void 0:o.isRTL(n.floating)),a=wr(r),i=xr(r),l="y"===Sr(r),c=["left","top"].includes(a)?-1:1,d=s&&l?-1:1,u=vr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof f&&(m="end"===i?-1*f:f),l?{x:m*d,y:p*c}:{x:p*c,y:m*d}}(t,e);return a===(null==(r=i.offset)?void 0:r.placement)&&null!=(o=i.arrow)&&o.alignmentOffset?{}:{x:n+l.x,y:s+l.y,data:{...l,placement:a}}}}},go=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:n}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=vr(e,t),c={x:r,y:o},d=await Er(t,l),u=Sr(wr(n)),p=_r(u);let m=c[p],f=c[u];if(s){const e="y"===p?"bottom":"right";m=yr(m+d["y"===p?"top":"left"],m,m-d[e])}if(a){const e="y"===u?"bottom":"right";f=yr(f+d["y"===u?"top":"left"],f,f-d[e])}const h=i.fn({...t,[p]:m,[u]:f});return{...h,data:{x:h.x-r,y:h.y-o,enabled:{[p]:s,[u]:a}}}}}},yo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:n,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...b}=vr(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};const g=wr(n),y=Sr(i),v=wr(i)===i,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(v||!h?[Pr(i)]:function(e){const t=Pr(e);return[jr(e),t,jr(t)]}(i)),_="none"!==f;!p&&_&&x.push(...function(e,t,r,o){const n=xr(e);let s=function(e,t,r){const o=["left","right"],n=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?n:o:t?o:n;case"left":case"right":return t?s:a;default:return[]}}(wr(e),"start"===r,o);return n&&(s=s.map((e=>e+"-"+n)),t&&(s=s.concat(s.map(jr)))),s}(i,h,f,w));const C=[i,...x],S=await Er(t,b),N=[];let j=(null==(o=s.flip)?void 0:o.overflows)||[];if(d&&N.push(S[g]),u){const e=function(e,t,r){void 0===r&&(r=!1);const o=xr(e),n=Nr(e),s=Cr(n);let a="x"===n?o===(r?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Pr(a)),[a,Pr(a)]}(n,a,w);N.push(S[e[0]],S[e[1]])}if(j=[...j,{placement:n,overflows:N}],!N.every((e=>e<=0))){var P,k;const e=((null==(P=s.flip)?void 0:P.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let r=null==(k=j.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!r)switch(m){case"bestFit":{var $;const e=null==($=j.filter((e=>{if(_){const t=Sr(e.placement);return t===y||"y"===t}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])?void 0:$[0];e&&(r=e);break}case"initialPlacement":r=i}if(n!==r)return{reset:{placement:r}}}return{}}}},vo=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:n,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...c}=vr(e,t),d=await Er(t,c),u=wr(n),p=xr(n),m="y"===Sr(n),{width:f,height:h}=s.floating;let b,g;"top"===u||"bottom"===u?(b=u,g=p===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,b="end"===p?"top":"bottom");const y=h-d.top-d.bottom,v=f-d.left-d.right,w=ur(h-d[b],y),x=ur(f-d[g],v),_=!t.middlewareData.shift;let C=w,S=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(S=v),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(C=y),_&&!p){const e=pr(d.left,0),t=pr(d.right,0),r=pr(d.top,0),o=pr(d.bottom,0);m?S=f-2*(0!==e||0!==t?e+t:pr(d.left,d.right)):C=h-2*(0!==r||0!==o?r+o:pr(d.top,d.bottom))}await l({...t,availableWidth:S,availableHeight:C});const N=await a.getDimensions(i.floating);return f!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}},wo=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:n,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:d=0}=vr(e,t)||{};if(null==c)return{};const u=kr(d),p={x:r,y:o},m=Nr(n),f=Cr(m),h=await a.getDimensions(c),b="y"===m,g=b?"top":"left",y=b?"bottom":"right",v=b?"clientHeight":"clientWidth",w=s.reference[f]+s.reference[m]-p[m]-s.floating[f],x=p[m]-s.reference[m],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=_?_[v]:0;C&&await(null==a.isElement?void 0:a.isElement(_))||(C=i.floating[v]||s.floating[f]);const S=w/2-x/2,N=C/2-h[f]/2-1,j=ur(u[g],N),P=ur(u[y],N),k=j,$=C-h[f]-P,T=C/2-h[f]/2+S,E=yr(k,T,$),R=!l.arrow&&null!=xr(n)&&T!==E&&s.reference[f]/2-(T<k?j:P)-h[f]/2<0,O=R?T<k?T-k:T-$:0;return{[m]:p[m]+O,data:{[m]:E,centerOffset:T-E-O,...R&&{alignmentOffset:O}},reset:R}}}),xo=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:o,rects:n,platform:s,strategy:a}=t,{padding:i=2,x:l,y:c}=vr(e,t),d=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(o.reference))||[]),u=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),r=[];let o=null;for(let e=0;e<t.length;e++){const n=t[e];!o||n.y-o.y>o.height/2?r.push([n]):r[r.length-1].push(n),o=n}return r.map((e=>$r(Rr(e))))}(d),p=$r(Rr(d)),m=kr(i),f=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=l&&null!=c)return u.find((e=>l>e.left-m.left&&l<e.right+m.right&&c>e.top-m.top&&c<e.bottom+m.bottom))||p;if(u.length>=2){if("y"===Sr(r)){const e=u[0],t=u[u.length-1],o="top"===wr(r),n=e.top,s=t.bottom,a=o?e.left:t.left,i=o?e.right:t.right;return{top:n,bottom:s,left:a,right:i,width:i-a,height:s-n,x:a,y:n}}const e="left"===wr(r),t=pr(...u.map((e=>e.right))),o=ur(...u.map((e=>e.left))),n=u.filter((r=>e?r.left===o:r.right===t)),s=n[0].top,a=n[n.length-1].bottom;return{top:s,bottom:a,left:o,right:t,width:t-o,height:a-s,x:o,y:s}}return p}},floating:o.floating,strategy:a});return n.reference.x!==f.reference.x||n.reference.y!==f.reference.y||n.reference.width!==f.reference.width||n.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}},_o=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:n,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=vr(e,t),d={x:r,y:o},u=Sr(n),p=_r(u);let m=d[p],f=d[u];const h=vr(i,t),b="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===p?"height":"width",t=s.reference[p]-s.floating[e]+b.mainAxis,r=s.reference[p]+s.reference[e]-b.mainAxis;m<t?m=t:m>r&&(m=r)}if(c){var g,y;const e="y"===p?"width":"height",t=["top","left"].includes(wr(n)),r=s.reference[u]-s.floating[e]+(t&&(null==(g=a.offset)?void 0:g[u])||0)+(t?0:b.crossAxis),o=s.reference[u]+s.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[u])||0)-(t?b.crossAxis:0);f<r?f=r:f>o&&(f=o)}return{[p]:m,[u]:f}}}},Co=(e,t,r)=>{const o=new Map,n={platform:fo,...r},s={...n.platform,_c:o};return(async(e,t,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:u}=Tr(c,o,l),p=o,m={},f=0;for(let r=0;r<i.length;r++){const{name:s,fn:h}=i[r],{x:b,y:g,data:y,reset:v}=await h({x:d,y:u,initialPlacement:o,placement:p,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=b?b:d,u=null!=g?g:u,m={...m,[s]:{...m[s],...y}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:n}):v.rects),({x:d,y:u}=Tr(c,p,l))),r=-1)}return{x:d,y:u,placement:p,strategy:n,middlewareData:m}})(e,t,{...n,platform:s})};var So="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function No(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,o,n;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;0!=o--;)if(!No(e[o],t[o]))return!1;return!0}if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;0!=o--;)if(!{}.hasOwnProperty.call(t,n[o]))return!1;for(o=r;0!=o--;){const r=n[o];if(!("_owner"===r&&e.$$typeof||No(e[r],t[r])))return!1}return!0}return e!=e&&t!=t}function jo(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Po(e,t){const r=jo(e);return Math.round(t*r)/r}function ko(e){const t=i.useRef(e);return So((()=>{t.current=e})),t}const $o=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:o}="function"==typeof e?e(t):e;return r&&(n=r,{}.hasOwnProperty.call(n,"current"))?null!=r.current?wo({element:r.current,padding:o}).fn(t):{}:r?wo({element:r,padding:o}).fn(t):{};var n}}),To=(e,t)=>({...bo(e),options:[e,t]}),Eo=(e,t)=>({..._o(e),options:[e,t]}),Ro=(e,t)=>({...yo(e),options:[e,t]}),Oo=(e,t)=>({...xo(e),options:[e,t]}),Do={...l},Ao=Do.useInsertionEffect||(e=>e());var zo="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;let Lo=!1,Io=0;const Mo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Io++,Fo=Do.useId||function(){const[e,t]=i.useState((()=>Lo?Mo():void 0));return zo((()=>{null==e&&t(Mo())}),[]),i.useEffect((()=>{Lo=!0}),[]),e};const Wo=i.createContext(null),Ho=i.createContext(null);function Bo(e){void 0===e&&(e={});const{nodeId:t}=e,r=function(e){const{open:t=!1,onOpenChange:r,elements:o}=e,n=Fo(),s=i.useRef({}),[a]=i.useState((()=>function(){const e=new Map;return{emit(t,r){var o;null==(o=e.get(t))||o.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var o;e.set(t,(null==(o=e.get(t))?void 0:o.filter((e=>e!==r)))||[])}}}())),l=null!=((null==(f=i.useContext(Wo))?void 0:f.id)||null),[c,d]=i.useState(o.reference),u=function(e){const t=i.useRef((()=>{}));return Ao((()=>{t.current=e})),i.useCallback((function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return null==t.current?void 0:t.current(...r)}),[])}(((e,t,o)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:o,nested:l}),null==r||r(e,t,o)})),p=i.useMemo((()=>({setPositionReference:d})),[]),m=i.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);var f;return i.useMemo((()=>({dataRef:s,open:t,onOpenChange:u,elements:m,events:a,floatingId:n,refs:p})),[t,u,m,a,n,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,n=o.elements,[s,a]=i.useState(null),[l,c]=i.useState(null),d=(null==n?void 0:n.domReference)||s,u=i.useRef(null),p=i.useContext(Ho);zo((()=>{d&&(u.current=d)}),[d]);const m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:n,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=i.useState(o);No(m,o)||f(o);const[h,b]=i.useState(null),[g,y]=i.useState(null),v=i.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[]),w=i.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=s||h,_=a||g,C=i.useRef(null),S=i.useRef(null),N=i.useRef(u),j=null!=c,P=ko(c),k=ko(n),$=ko(d),T=i.useCallback((()=>{if(!C.current||!S.current)return;const e={placement:t,strategy:r,middleware:m};k.current&&(e.platform=k.current),Co(C.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==$.current};E.current&&!No(N.current,t)&&(N.current=t,Nt.flushSync((()=>{p(t)})))}))}),[m,t,r,k,$]);So((()=>{!1===d&&N.current.isPositioned&&(N.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const E=i.useRef(!1);So((()=>(E.current=!0,()=>{E.current=!1})),[]),So((()=>{if(x&&(C.current=x),_&&(S.current=_),x&&_){if(P.current)return P.current(x,_,T);T()}}),[x,_,T,P,j]);const R=i.useMemo((()=>({reference:C,floating:S,setReference:v,setFloating:w})),[v,w]),O=i.useMemo((()=>({reference:x,floating:_})),[x,_]),D=i.useMemo((()=>{const e={position:r,left:0,top:0};if(!O.floating)return e;const t=Po(O.floating,u.x),o=Po(O.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...jo(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:o}}),[r,l,O.floating,u.x,u.y]);return i.useMemo((()=>({...u,update:T,refs:R,elements:O,floatingStyles:D})),[u,T,R,O,D])}({...e,elements:{...n,...l&&{reference:l}}}),f=i.useCallback((e=>{const t=Ir(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),m.refs.setReference(t)}),[m.refs]),h=i.useCallback((e=>{(Ir(e)||null===e)&&(u.current=e,a(e)),(Ir(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!Ir(e))&&m.refs.setReference(e)}),[m.refs]),b=i.useMemo((()=>({...m.refs,setReference:h,setPositionReference:f,domReference:u})),[m.refs,h,f]),g=i.useMemo((()=>({...m.elements,domReference:d})),[m.elements,d]),y=i.useMemo((()=>({...m,...o,refs:b,elements:g,nodeId:t})),[m,b,g,t,o]);return zo((()=>{o.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),i.useMemo((()=>({...m,context:y,refs:b,elements:g})),[m,b,g,y])}function Vo(e,t){const r=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),o=[To(e.offset)];return r.shift&&o.push((e=>({...go(e),options:[e,void 0]}))("boolean"==typeof r.shift?{limiter:Eo(),padding:5}:{limiter:Eo(),padding:5,...r.shift})),r.flip&&o.push("boolean"==typeof r.flip?Ro():Ro(r.flip)),r.inline&&o.push("boolean"==typeof r.inline?Oo():Oo(r.inline)),o.push((e=>({...$o(e),options:[e,void 0]}))({element:e.arrowRef,padding:e.arrowOffset})),(r.size||"target"===e.width)&&o.push((e=>({...vo(e),options:[e,void 0]}))({..."boolean"==typeof r.size?{}:r.size,apply({rects:o,availableWidth:n,availableHeight:s,...a}){const i=t(),l=i.refs.floating.current?.style??{};r.size&&("object"==typeof r.size&&r.size.apply?r.size.apply({rects:o,availableWidth:n,availableHeight:s,...a}):Object.assign(l,{maxWidth:`${n}px`,maxHeight:`${s}px`})),"target"===e.width&&Object.assign(l,{width:`${o.reference.width}px`})}})),o}function Yo(e){const[t,r]=te({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),o=(0,i.useRef)(t),n=Bo({strategy:e.strategy,placement:e.position,middleware:Vo(e,(()=>n))});return function({opened:e,floating:t,position:r,positionDependencies:o}){const[n,s]=(0,i.useState)(0);(0,i.useEffect)((()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return function(e,t,r,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=eo(e),d=n||s?[...c?Zr(c):[],...Zr(t)]:[];d.forEach((e=>{n&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)}));const u=c&&i?function(e,t){let r,o=null;const n=zr(e);function s(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}return function a(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:m}=c;if(i||t(),!p||!m)return;const f={rootMargin:-fr(u)+"px "+-fr(n.clientWidth-(d+p))+"px "+-fr(n.clientHeight-(u+m))+"px "+-fr(d)+"px",threshold:pr(0,ur(1,l))||1};let h=!0;function b(t){const o=t[0].intersectionRatio;if(o!==l){if(!h)return a();o?a(!1,o):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==o||ho(c,e.getBoundingClientRect())||a(),h=!1}try{o=new IntersectionObserver(b,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(b,f)}o.observe(e)}(!0),s}(c,r):null;let p,m=-1,f=null;a&&(f=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),c&&!l&&f.observe(c),f.observe(t));let h=l?no(e):null;return l&&function t(){const o=no(e);h&&!ho(h,o)&&r(),h=o,p=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach((e=>{n&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}(t.refs.reference.current,t.refs.floating.current,t.update)}),[t.refs.reference.current,t.refs.floating.current,e,n,r]),At((()=>{t.update()}),o),At((()=>{s((e=>e+1))}),[e])}({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:n}),At((()=>{e.onPositionChange?.(n.placement)}),[n.placement]),At((()=>{t!==o.current&&(t?e.onOpen?.():e.onClose?.()),o.current=t}),[t,e.onClose,e.onOpen]),{floating:n,controlled:"boolean"==typeof e.opened,opened:t,onClose:()=>{t&&r(!1)},onToggle:()=>r(!t)}}const qo={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,clickOutsideEvents:["mousedown","touchstart"],zIndex:vt("popover"),__staticSelector:"Popover",width:"max-content"},Uo=(e,{radius:t,shadow:r})=>({dropdown:{"--popover-radius":void 0===t?void 0:ae(t),"--popover-shadow":le(r)}});function Xo(e){const t=ue("Popover",qo,e),{children:r,position:o,offset:n,onPositionChange:s,positionDependencies:a,opened:l,transitionProps:d,onExitTransitionEnd:u,onEnterTransitionEnd:p,width:m,middlewares:f,withArrow:h,arrowSize:b,arrowOffset:g,arrowRadius:y,arrowPosition:v,unstyled:w,classNames:x,styles:_,closeOnClickOutside:C,withinPortal:S,portalProps:N,closeOnEscape:j,clickOutsideEvents:P,trapFocus:k,onClose:$,onOpen:T,onChange:E,zIndex:R,radius:O,shadow:D,id:A,defaultOpened:z,__staticSelector:L,withRoles:I,disabled:M,returnFocus:F,variant:W,keepMounted:H,vars:B,floatingStrategy:V,withOverlay:Y,overlayProps:q,...U}=t,X=Se({name:L,props:t,classes:sr,classNames:x,styles:_,unstyled:w,rootSelector:"dropdown",vars:B,varsResolver:Uo}),{resolvedStyles:K}=mt({classNames:x,styles:_,props:t}),G=(0,i.useRef)(null),[Z,J]=(0,i.useState)(null),[Q,te]=(0,i.useState)(null),{dir:re}=rt(),oe=ee(A),ne=Yo({middlewares:f,width:m,position:wt(re,o),offset:"number"==typeof n?n+(h?b/2:0):n,arrowRef:G,arrowOffset:g,onPositionChange:s,positionDependencies:a,opened:l,defaultOpened:z,onChange:E,onOpen:T,onClose:$,strategy:V});!function(e,t,r){const o=(0,i.useRef)(null);(0,i.useEffect)((()=>{const n=t=>{const{target:n}=t??{};if(Array.isArray(r)){const o=n?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(n)&&"HTML"!==n.tagName;r.every((e=>!!e&&!t.composedPath().includes(e)))&&!o&&e()}else o.current&&!o.current.contains(n)&&e()};return(t||gt).forEach((e=>document.addEventListener(e,n))),()=>{(t||gt).forEach((e=>document.removeEventListener(e,n)))}}),[o,e,r])}((()=>C&&ne.onClose()),P,[Z,Q]);const se=(0,i.useCallback)((e=>{J(e),ne.floating.refs.setReference(e)}),[ne.floating.refs.setReference]),ae=(0,i.useCallback)((e=>{te(e),ne.floating.refs.setFloating(e)}),[ne.floating.refs.setFloating]),ie=(0,i.useCallback)((()=>{d?.onExited?.(),u?.()}),[d?.onExited,u]),le=(0,i.useCallback)((()=>{d?.onEntered?.(),p?.()}),[d?.onEntered,p]);return(0,c.jsxs)(It,{value:{returnFocus:F,disabled:M,controlled:ne.controlled,reference:se,floating:ae,x:ne.floating.x,y:ne.floating.y,arrowX:ne.floating?.middlewareData?.arrow?.x,arrowY:ne.floating?.middlewareData?.arrow?.y,opened:ne.opened,arrowRef:G,transitionProps:{...d,onExited:ie,onEntered:le},width:m,withArrow:h,arrowSize:b,arrowOffset:g,arrowRadius:y,arrowPosition:v,placement:ne.floating.placement,trapFocus:k,withinPortal:S,portalProps:N,zIndex:R,radius:O,shadow:D,closeOnEscape:j,onClose:ne.onClose,onToggle:ne.onToggle,getTargetId:()=>`${oe}-target`,getDropdownId:()=>`${oe}-dropdown`,withRoles:I,targetProps:U,__staticSelector:L,classNames:x,styles:_,unstyled:w,variant:W,keepMounted:H,getStyles:X,resolvedStyles:K,floatingStrategy:V},children:[r,Y&&(0,c.jsx)(Lt,{transition:"fade",mounted:ne.opened,duration:d?.duration||250,exitDuration:d?.exitDuration||250,children:e=>(0,c.jsx)(Tt,{withinPortal:S,children:(0,c.jsx)(St,{...q,...X("overlay",{className:q?.className,style:[e,q?.style]})})})})]})}Xo.Target=dr,Xo.Dropdown=ir,Xo.displayName="@mantine/core/Popover",Xo.extend=e=>e;const[Ko,Go]=Ye("Combobox component was not found in tree");var Zo={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"};const Jo={error:null},Qo=(e,{size:t,color:r})=>({chevron:{"--combobox-chevron-size":ne(t,"combobox-chevron-size"),"--combobox-chevron-color":r?j(r,e):void 0}}),en=Ve(((e,t)=>{const r=ue("ComboboxChevron",Jo,e),{size:o,error:n,style:s,className:a,classNames:i,styles:l,unstyled:d,vars:u,mod:p,...m}=r,f=Se({name:"ComboboxChevron",classes:Zo,props:r,style:s,className:a,classNames:i,styles:l,unstyled:d,vars:u,varsResolver:Qo,rootSelector:"chevron"});return(0,c.jsx)(He,{component:"svg",...m,...f("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:n},p],ref:t,children:(0,c.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"})})}));function tn(e=null){const t=(0,i.createContext)(e);return[({children:e,value:r})=>(0,c.jsx)(t.Provider,{value:r,children:e}),()=>(0,i.useContext)(t)]}en.classes=Zo,en.displayName="@mantine/core/ComboboxChevron";const[rn,on]=tn({size:"sm"}),nn=(0,i.forwardRef)((({size:e="var(--cb-icon-size, 70%)",style:t,...r},o)=>(0,c.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:o,...r,children:(0,c.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"})})));nn.displayName="@mantine/core/CloseIcon";var sn={root:"m_86a44da5","root--subtle":"m_220c80f2"};const an={variant:"subtle"},ln=(e,{size:t,radius:r,iconSize:o})=>({root:{"--cb-size":ne(t,"cb-size"),"--cb-radius":void 0===r?void 0:ae(r),"--cb-icon-size":y(o)}}),cn=ot(((e,t)=>{const r=ue("CloseButton",an,e),{iconSize:o,children:n,vars:s,radius:a,className:i,classNames:l,style:d,styles:u,unstyled:p,"data-disabled":m,disabled:f,variant:h,icon:b,mod:g,__staticSelector:y,...v}=r,w=Se({name:y||"CloseButton",props:r,className:i,style:d,classes:sn,classNames:l,styles:u,unstyled:p,vars:s,varsResolver:ln});return(0,c.jsxs)(at,{ref:t,...v,unstyled:p,variant:h,disabled:f,mod:[{disabled:f||m},g],...w("root",{variant:h,active:!f&&!m}),children:[b||(0,c.jsx)(nn,{}),n]})}));cn.classes=sn,cn.displayName="@mantine/core/CloseButton";const dn={},un=Ve(((e,t)=>{const r=ue("InputClearButton",dn,e),{size:o,variant:n,vars:s,classNames:a,styles:i,...l}=r,d=on(),{resolvedClassNames:u,resolvedStyles:p}=mt({classNames:a,styles:i,props:r});return(0,c.jsx)(cn,{variant:n||"transparent",ref:t,size:o||d?.size||"sm",classNames:u,styles:p,__staticSelector:"InputClearButton",...l})}));un.displayName="@mantine/core/InputClearButton";const[pn,mn]=tn({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var fn={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const hn={},bn=(e,{size:t})=>({description:{"--input-description-size":void 0===t?void 0:`calc(${ie(t)} - ${y(2)})`}}),gn=Ve(((e,t)=>{const r=ue("InputDescription",hn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:m,...f}=ue("InputDescription",hn,r),h=mn(),b=Se({name:["InputWrapper",u],props:r,classes:fn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"description",vars:l,varsResolver:bn}),g=p&&h?.getStyles||b;return(0,c.jsx)(He,{component:"p",ref:t,variant:m,size:d,...g("description",h?.getStyles?{className:n,style:s}:void 0),...f})}));gn.classes=fn,gn.displayName="@mantine/core/InputDescription";const yn={},vn=(e,{size:t})=>({error:{"--input-error-size":void 0===t?void 0:`calc(${ie(t)} - ${y(2)})`}}),wn=Ve(((e,t)=>{const r=ue("InputError",yn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:m,...f}=r,h=Se({name:["InputWrapper",u],props:r,classes:fn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"error",vars:l,varsResolver:vn}),b=mn(),g=p&&b?.getStyles||h;return(0,c.jsx)(He,{component:"p",ref:t,variant:m,size:d,...g("error",b?.getStyles?{className:n,style:s}:void 0),...f})}));wn.classes=fn,wn.displayName="@mantine/core/InputError";const xn={labelElement:"label"},Cn=(e,{size:t})=>({label:{"--input-label-size":ie(t),"--input-asterisk-color":void 0}}),Sn=Ve(((e,t)=>{const r=ue("InputLabel",xn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,labelElement:d,size:u,required:p,htmlFor:m,onMouseDown:f,children:h,__staticSelector:b,variant:g,mod:y,...v}=ue("InputLabel",xn,r),w=Se({name:["InputWrapper",b],props:r,classes:fn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"label",vars:l,varsResolver:Cn}),x=mn(),_=x?.getStyles||w;return(0,c.jsxs)(He,{..._("label",x?.getStyles?{className:n,style:s}:void 0),component:d,variant:g,size:u,ref:t,htmlFor:"label"===d?m:void 0,mod:[{required:p},y],onMouseDown:e=>{f?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...v,children:[h,p&&(0,c.jsx)("span",{..._("required"),"aria-hidden":!0,children:" *"})]})}));Sn.classes=fn,Sn.displayName="@mantine/core/InputLabel";const Nn={},jn=Ve(((e,t)=>{const r=ue("InputPlaceholder",Nn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,__staticSelector:d,variant:u,error:p,mod:m,...f}=ue("InputPlaceholder",Nn,r),h=Se({name:["InputPlaceholder",d],props:r,classes:fn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"placeholder"});return(0,c.jsx)(He,{...h("placeholder"),mod:[{error:!!p},m],component:"span",variant:u,ref:t,...f})}));function Pn(e,{hasDescription:t,hasError:r}){const o=e.findIndex((e=>"input"===e)),n=e.slice(0,o),s=e.slice(o+1),a=t&&n.includes("description")||r&&n.includes("error");return{offsetBottom:t&&s.includes("description")||r&&s.includes("error"),offsetTop:a}}jn.classes=fn,jn.displayName="@mantine/core/InputPlaceholder";const kn={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},$n=(e,{size:t})=>({label:{"--input-label-size":ie(t),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===t?void 0:`calc(${ie(t)} - ${y(2)})`},description:{"--input-description-size":void 0===t?void 0:`calc(${ie(t)} - ${y(2)})`}}),Tn=Ve(((e,t)=>{const r=ue("InputWrapper",kn,e),{classNames:o,className:n,style:s,styles:a,unstyled:l,vars:d,size:u,variant:p,__staticSelector:m,inputContainer:f,inputWrapperOrder:h,label:b,error:g,description:y,labelProps:v,descriptionProps:w,errorProps:x,labelElement:_,children:C,withAsterisk:S,id:N,required:j,__stylesApiProps:P,mod:k,...$}=r,T=Se({name:["InputWrapper",m],props:P||r,classes:fn,className:n,style:s,classNames:o,styles:a,unstyled:l,vars:d,varsResolver:$n}),E={size:u,variant:p,__staticSelector:m},R=ee(N),O="boolean"==typeof S?S:j,D=x?.id||`${R}-error`,A=w?.id||`${R}-description`,z=R,L=!!g&&"boolean"!=typeof g,I=!!y,M=`${L?D:""} ${I?A:""}`,F=M.trim().length>0?M.trim():void 0,W=v?.id||`${R}-label`,H=b&&(0,c.jsx)(Sn,{labelElement:_,id:W,htmlFor:z,required:O,...E,...v,children:b},"label"),B=I&&(0,c.jsx)(gn,{...w,...E,size:w?.size||E.size,id:w?.id||A,children:y},"description"),V=(0,c.jsx)(i.Fragment,{children:f(C)},"input"),Y=L&&(0,i.createElement)(wn,{...x,...E,size:x?.size||E.size,key:"error",id:x?.id||D},g),q=h.map((e=>{switch(e){case"label":return H;case"input":return V;case"description":return B;case"error":return Y;default:return null}}));return(0,c.jsx)(pn,{value:{getStyles:T,describedBy:F,inputId:z,labelId:W,...Pn(h,{hasDescription:I,hasError:L})},children:(0,c.jsx)(He,{ref:t,variant:p,size:u,mod:[{error:!!g},k],...T("root"),...$,children:q})})}));Tn.classes=fn,Tn.displayName="@mantine/core/InputWrapper";const En={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},Rn=(e,t,r)=>({wrapper:{"--input-margin-top":r.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":r.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":ne(t.size,"input-height"),"--input-fz":ie(t.size),"--input-radius":void 0===t.radius?void 0:ae(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?y(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?y(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?ne(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),On=ot(((e,t)=>{const r=ue("Input",En,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,required:l,__staticSelector:d,__stylesApiProps:u,size:p,wrapperProps:m,error:f,disabled:h,leftSection:b,leftSectionProps:g,leftSectionWidth:y,rightSection:v,rightSectionProps:w,rightSectionWidth:x,rightSectionPointerEvents:_,leftSectionPointerEvents:C,variant:S,vars:N,pointer:j,multiline:P,radius:k,id:$,withAria:T,withErrorStyles:E,mod:R,inputSize:O,__clearSection:D,__clearable:A,__defaultRightSection:z,...L}=r,{styleProps:I,rest:M}=Re(L),F=mn(),W=Se({name:["Input",d],props:u||r,classes:fn,className:n,style:s,classNames:o,styles:a,unstyled:i,stylesCtx:{offsetBottom:F?.offsetBottom,offsetTop:F?.offsetTop},rootSelector:"wrapper",vars:N,varsResolver:Rn}),H=T?{required:l,disabled:h,"aria-invalid":!!f,"aria-describedby":F?.describedBy,id:F?.inputId||$}:{},B=v||A&&D||z;return(0,c.jsx)(rn,{value:{size:p||"sm"},children:(0,c.jsxs)(He,{...W("wrapper"),...I,...m,mod:[{error:!!f&&E,pointer:j,disabled:h,multiline:P,"data-with-right-section":!!v,"data-with-left-section":!!b},R],variant:S,size:p,children:[b&&(0,c.jsx)("div",{...g,"data-position":"left",...W("section",{className:g?.className,style:g?.style}),children:b}),(0,c.jsx)(He,{component:"input",...M,...H,ref:t,required:l,mod:{disabled:h,error:!!f&&E},variant:S,__size:O,...W("input")}),B&&(0,c.jsx)("div",{...w,"data-position":"right",...W("section",{className:w?.className,style:w?.style}),children:B})]})})}));On.classes=fn,On.Wrapper=Tn,On.Label=Sn,On.Error=wn,On.Description=gn,On.Placeholder=jn,On.ClearButton=un,On.displayName="@mantine/core/Input";const Dn=(0,i.forwardRef)((({size:e,onMouseDown:t,onClick:r,onClear:o,...n},s)=>(0,c.jsx)(On.ClearButton,{ref:s,tabIndex:-1,"aria-hidden":!0,...n,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{o(),r?.(e)}})));Dn.displayName="@mantine/core/ComboboxClearButton";const An={},zn=Ve(((e,t)=>{const{classNames:r,styles:o,className:n,style:s,hidden:a,...i}=ue("ComboboxDropdown",An,e),l=Go();return(0,c.jsx)(Xo.Dropdown,{...i,ref:t,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:n,style:s,classNames:r,styles:o})})}));zn.classes=Zo,zn.displayName="@mantine/core/ComboboxDropdown";const Ln={refProp:"ref"},In=Ve(((e,t)=>{const{children:r,refProp:o}=ue("ComboboxDropdownTarget",Ln,e);if(Go(),!Qt(r))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,c.jsx)(Xo.Target,{ref:t,refProp:o,children:r})}));In.displayName="@mantine/core/ComboboxDropdownTarget";const Mn={},Fn=Ve(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,...i}=ue("ComboboxEmpty",Mn,e),l=Go();return(0,c.jsx)(He,{ref:t,...l.getStyles("empty",{className:o,classNames:r,styles:s,style:n}),...i})}));function Wn({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:r,withExpandedAttribute:o,targetType:n,autoComplete:s}){const a=Go(),[l,c]=(0,i.useState)(null);return{...r?{"aria-haspopup":"listbox","aria-expanded":o&&!(!a.store.listId||!a.store.dropdownOpened)||void 0,"aria-controls":a.store.dropdownOpened?a.store.listId:void 0,"aria-activedescendant":a.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:r=>{if(e?.(r),!a.readOnly&&t){if(r.nativeEvent.isComposing)return;if("ArrowDown"===r.nativeEvent.code&&(r.preventDefault(),a.store.dropdownOpened?c(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),c(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===r.nativeEvent.code&&(r.preventDefault(),a.store.dropdownOpened?c(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),c(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===r.nativeEvent.code||"NumpadEnter"===r.nativeEvent.code){if(229===r.nativeEvent.keyCode)return;const e=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&-1!==e?(r.preventDefault(),a.store.clickSelectedOption()):"button"===n&&(r.preventDefault(),a.store.openDropdown("keyboard"))}"Escape"===r.key&&a.store.closeDropdown("keyboard"),"Space"===r.nativeEvent.code&&"button"===n&&(r.preventDefault(),a.store.toggleDropdown("keyboard"))}}}}Fn.classes=Zo,Fn.displayName="@mantine/core/ComboboxEmpty";const Hn={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Bn=Ve(((e,t)=>{const{children:r,refProp:o,withKeyboardNavigation:n,withAriaAttributes:s,withExpandedAttribute:a,targetType:l,autoComplete:c,...d}=ue("ComboboxEventsTarget",Hn,e);if(!Qt(r))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=Go(),p=Wn({targetType:l,withAriaAttributes:s,withKeyboardNavigation:n,withExpandedAttribute:a,onKeyDown:r.props.onKeyDown,autoComplete:c});return(0,i.cloneElement)(r,{...p,...d,[o]:Pt(t,u.store.targetRef,lr(r))})}));Bn.displayName="@mantine/core/ComboboxEventsTarget";const Vn={},Yn=Ve(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,...i}=ue("ComboboxFooter",Vn,e),l=Go();return(0,c.jsx)(He,{ref:t,...l.getStyles("footer",{className:o,classNames:r,style:n,styles:s}),...i,onMouseDown:e=>{e.preventDefault()}})}));Yn.classes=Zo,Yn.displayName="@mantine/core/ComboboxFooter";const qn={},Un=Ve(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,children:i,label:l,...d}=ue("ComboboxGroup",qn,e),u=Go();return(0,c.jsxs)(He,{ref:t,...u.getStyles("group",{className:o,classNames:r,style:n,styles:s}),...d,children:[l&&(0,c.jsx)("div",{...u.getStyles("groupLabel",{classNames:r,styles:s}),children:l}),i]})}));Un.classes=Zo,Un.displayName="@mantine/core/ComboboxGroup";const Xn={},Kn=Ve(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,...i}=ue("ComboboxHeader",Xn,e),l=Go();return(0,c.jsx)(He,{ref:t,...l.getStyles("header",{className:o,classNames:r,style:n,styles:s}),...i,onMouseDown:e=>{e.preventDefault()}})}));function Gn({value:e,valuesDivider:t=",",...r}){return(0,c.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...r})}Kn.classes=Zo,Kn.displayName="@mantine/core/ComboboxHeader",Gn.displayName="@mantine/core/ComboboxHiddenInput";const Zn={},Jn=Ve(((e,t)=>{const r=ue("ComboboxOption",Zn,e),{classNames:o,className:n,style:s,styles:a,vars:l,onClick:d,id:u,active:p,onMouseDown:m,onMouseOver:f,disabled:h,selected:b,mod:g,...y}=r,v=Go(),w=(0,i.useId)(),x=u||w;return(0,c.jsx)(He,{...v.getStyles("option",{className:n,classNames:o,styles:a,style:s}),...y,ref:t,id:x,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":h,"combobox-selected":b},g],role:"option",onClick:e=>{h?e.preventDefault():(v.onOptionSubmit?.(r.value,r),d?.(e))},onMouseDown:e=>{e.preventDefault(),m?.(e)},onMouseOver:e=>{v.resetSelectionOnOptionHover&&v.store.resetSelectedOption(),f?.(e)}})}));Jn.classes=Zo,Jn.displayName="@mantine/core/ComboboxOption";const Qn={},es=Ve(((e,t)=>{const r=ue("ComboboxOptions",Qn,e),{classNames:o,className:n,style:s,styles:a,id:l,onMouseDown:d,labelledBy:u,...p}=r,m=Go(),f=ee(l);return(0,i.useEffect)((()=>{m.store.setListId(f)}),[f]),(0,c.jsx)(He,{ref:t,...m.getStyles("options",{className:n,style:s,classNames:o,styles:a}),...p,id:f,role:"listbox","aria-labelledby":u,onMouseDown:e=>{e.preventDefault(),d?.(e)}})}));es.classes=Zo,es.displayName="@mantine/core/ComboboxOptions";const ts={withAriaAttributes:!0,withKeyboardNavigation:!0},rs=Ve(((e,t)=>{const r=ue("ComboboxSearch",ts,e),{classNames:o,styles:n,unstyled:s,vars:a,withAriaAttributes:i,onKeyDown:l,withKeyboardNavigation:d,size:u,...p}=r,m=Go(),f=m.getStyles("search"),h=Wn({targetType:"input",withAriaAttributes:i,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return(0,c.jsx)(On,{ref:Pt(t,m.store.searchRef),classNames:[{input:f.className},o],styles:[{input:f.style},n],size:u||m.size,...h,...p,__staticSelector:"Combobox"})}));rs.classes=Zo,rs.displayName="@mantine/core/ComboboxSearch";const os={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},ns=Ve(((e,t)=>{const{children:r,refProp:o,withKeyboardNavigation:n,withAriaAttributes:s,withExpandedAttribute:a,targetType:l,autoComplete:d,...u}=ue("ComboboxTarget",os,e);if(!Qt(r))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const p=Go(),m=Wn({targetType:l,withAriaAttributes:s,withKeyboardNavigation:n,withExpandedAttribute:a,onKeyDown:r.props.onKeyDown,autoComplete:d}),f=(0,i.cloneElement)(r,{...m,...u});return(0,c.jsx)(Xo.Target,{ref:Pt(t,p.store.targetRef),children:f})}));function ss({defaultOpened:e,opened:t,onOpenedChange:r,onDropdownClose:o,onDropdownOpen:n,loop:s=!0,scrollBehavior:a="instant"}={}){const[l,c]=te({value:t,defaultValue:e,finalValue:!1,onChange:r}),d=(0,i.useRef)(null),u=(0,i.useRef)(-1),p=(0,i.useRef)(null),m=(0,i.useRef)(null),f=(0,i.useRef)(-1),h=(0,i.useRef)(-1),b=(0,i.useRef)(-1),g=(0,i.useCallback)(((e="unknown")=>{l||(c(!0),n?.(e))}),[c,n,l]),y=(0,i.useCallback)(((e="unknown")=>{l&&(c(!1),o?.(e))}),[c,o,l]),v=(0,i.useCallback)(((e="unknown")=>{l?y(e):g(e)}),[y,g,l]),w=(0,i.useCallback)((()=>{const e=document.querySelector(`#${d.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")}),[]),x=(0,i.useCallback)((e=>{const t=document.getElementById(d.current),r=t?.querySelectorAll("[data-combobox-option]");if(!r)return null;const o=e>=r.length?0:e<0?r.length-1:e;return u.current=o,r?.[o]&&!r[o].hasAttribute("data-combobox-disabled")?(w(),r[o].setAttribute("data-combobox-selected","true"),r[o].setAttribute("aria-selected","true"),r[o].scrollIntoView({block:"nearest",behavior:a}),r[o].id):null}),[a,w]),_=(0,i.useCallback)((()=>{const e=document.querySelector(`#${d.current} [data-combobox-active]`);if(e){const t=document.querySelectorAll(`#${d.current} [data-combobox-option]`),r=Array.from(t).findIndex((t=>t===e));return x(r)}return x(0)}),[x]),C=(0,i.useCallback)((()=>x(function(e,t,r){for(let r=e+1;r<t.length;r+=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(r)for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),s))),[x,s]),S=(0,i.useCallback)((()=>x(function(e,t,r){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(r)for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),s))),[x,s]),N=(0,i.useCallback)((()=>x(function(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}(document.querySelectorAll(`#${d.current} [data-combobox-option]`)))),[x]),j=(0,i.useCallback)(((e="selected",t)=>{b.current=window.setTimeout((()=>{const r=document.querySelectorAll(`#${d.current} [data-combobox-option]`),o=Array.from(r).findIndex((t=>t.hasAttribute(`data-combobox-${e}`)));u.current=o,t?.scrollIntoView&&r[o]?.scrollIntoView({block:"nearest",behavior:a})}),0)}),[]),P=(0,i.useCallback)((()=>{u.current=-1,w()}),[w]),k=(0,i.useCallback)((()=>{const e=document.querySelectorAll(`#${d.current} [data-combobox-option]`),t=e?.[u.current];t?.click()}),[]),$=(0,i.useCallback)((e=>{d.current=e}),[]),T=(0,i.useCallback)((()=>{f.current=window.setTimeout((()=>p.current.focus()),0)}),[]),E=(0,i.useCallback)((()=>{h.current=window.setTimeout((()=>m.current.focus()),0)}),[]),R=(0,i.useCallback)((()=>u.current),[]);return(0,i.useEffect)((()=>()=>{window.clearTimeout(f.current),window.clearTimeout(h.current),window.clearTimeout(b.current)}),[]),{dropdownOpened:l,openDropdown:g,closeDropdown:y,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:R,selectOption:x,selectFirstOption:N,selectActiveOption:_,selectNextOption:C,selectPreviousOption:S,resetSelectedOption:P,updateSelectedOptionIndex:j,listId:d.current,setListId:$,clickSelectedOption:k,searchRef:p,focusSearchInput:T,targetRef:m,focusTarget:E}}ns.displayName="@mantine/core/ComboboxTarget";const as={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},is=(e,{size:t,dropdownPadding:r})=>({options:{"--combobox-option-fz":ie(t),"--combobox-option-padding":ne(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===r?void 0:y(r),"--combobox-option-fz":ie(t),"--combobox-option-padding":ne(t,"combobox-option-padding")}});function ls(e){const t=ue("Combobox",as,e),{classNames:r,styles:o,unstyled:n,children:s,store:a,vars:i,onOptionSubmit:l,onClose:d,size:u,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:f,readOnly:h,...b}=t,g=ss(),y=a||g,v=Se({name:f||"Combobox",classes:Zo,props:t,classNames:r,styles:o,unstyled:n,vars:i,varsResolver:is});return(0,c.jsx)(Ko,{value:{getStyles:v,store:y,onOptionSubmit:l,size:u,resetSelectionOnOptionHover:m,readOnly:h},children:(0,c.jsx)(Xo,{opened:y.dropdownOpened,...b,onChange:e=>!e&&(d?.(),void y.closeDropdown()),withRoles:!1,unstyled:n,children:s})})}function cs({size:e,style:t,...r}){const o=void 0!==e?{width:y(e),height:y(e),...t}:t;return(0,c.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...r,children:(0,c.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"})})}ls.extend=e=>e,ls.classes=Zo,ls.displayName="@mantine/core/Combobox",ls.Target=ns,ls.Dropdown=zn,ls.Options=es,ls.Option=Jn,ls.Search=rs,ls.Empty=Fn,ls.Chevron=en,ls.Footer=Yn,ls.Header=Kn,ls.EventsTarget=Bn,ls.DropdownTarget=In,ls.Group=Un,ls.ClearButton=Dn,ls.HiddenInput=Gn;const[ds,us]=Ye("ScrollArea.Root component was not found in tree");function ps(e){const t=(0,i.useRef)(e);return(0,i.useEffect)((()=>{t.current=e})),(0,i.useMemo)((()=>(...e)=>t.current?.(...e)),[])}function ms(e,t){const r=ps(t);G((()=>{let t=0;if(e){const o=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)}));return o.observe(e),()=>{window.cancelAnimationFrame(t),o.unobserve(e)}}}),[e,r])}const fs=(0,i.forwardRef)(((e,t)=>{const{style:r,...o}=e,n=us(),[s,a]=(0,i.useState)(0),[l,d]=(0,i.useState)(0),u=Boolean(s&&l);return ms(n.scrollbarX,(()=>{const e=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(e),d(e)})),ms(n.scrollbarY,(()=>{const e=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(e),a(e)})),u?(0,c.jsx)("div",{...o,ref:t,style:{...r,width:s,height:l}}):null})),hs=(0,i.forwardRef)(((e,t)=>{const r=us(),o=Boolean(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&o?(0,c.jsx)(fs,{...e,ref:t}):null})),bs={scrollHideDelay:1e3,type:"hover"},gs=(0,i.forwardRef)(((e,t)=>{const r=ue("ScrollAreaRoot",bs,e),{type:o,scrollHideDelay:n,scrollbars:s,...a}=r,[l,d]=(0,i.useState)(null),[u,p]=(0,i.useState)(null),[m,f]=(0,i.useState)(null),[h,b]=(0,i.useState)(null),[g,y]=(0,i.useState)(null),[v,w]=(0,i.useState)(0),[x,_]=(0,i.useState)(0),[C,S]=(0,i.useState)(!1),[N,j]=(0,i.useState)(!1),P=Pt(t,(e=>d(e)));return(0,c.jsx)(ds,{value:{type:o,scrollHideDelay:n,scrollArea:l,viewport:u,onViewportChange:p,content:m,onContentChange:f,scrollbarX:h,onScrollbarXChange:b,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:N,onScrollbarYEnabledChange:j,onCornerWidthChange:w,onCornerHeightChange:_},children:(0,c.jsx)(He,{...a,ref:P,__vars:{"--sa-corner-width":"xy"!==s?"0px":`${v}px`,"--sa-corner-height":"xy"!==s?"0px":`${x}px`}})})}));gs.displayName="@mantine/core/ScrollAreaRoot";const ys=()=>{};function vs(e,t){const r="number"==typeof t?t:t.delay,o="number"!=typeof t&&t.flushOnUnmount,n=ps(e),s=(0,i.useRef)(0),a=Object.assign((0,i.useCallback)(((...e)=>{window.clearTimeout(s.current);const t=()=>{0!==s.current&&(s.current=0,n(...e))};a.flush=t,s.current=window.setTimeout(t,r)}),[n,r]),{flush:ys});return(0,i.useEffect)((()=>()=>{window.clearTimeout(s.current),o&&a.flush()}),[a,o]),a}function ws(e,t){const r=e/t;return Number.isNaN(r)?0:r}function xs(e){const t=ws(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function _s(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function Cs(e,t,r="ltr"){const o=xs(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-n,a=t.content-t.viewport,i=s-o,l=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,"ltr"===r?[0,a]:[-1*a,0]);return _s([0,a],[0,i])(l)}function Ss(e,t){return e>0&&e<t}function Ns(e){return e?parseInt(e,10):0}function js(e,t,{checkForDefaultPrevented:r=!0}={}){return o=>{e?.(o),!1!==r&&o.defaultPrevented||t?.(o)}}const[Ps,ks]=Ye("ScrollAreaScrollbar was not found in tree"),$s=(0,i.forwardRef)(((e,t)=>{const{sizes:r,hasThumb:o,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:d,onWheelScroll:u,onResize:p,...m}=e,f=us(),[h,b]=(0,i.useState)(null),g=Pt(t,(e=>b(e))),y=(0,i.useRef)(null),v=(0,i.useRef)(""),{viewport:w}=f,x=r.content-r.viewport,_=ps(u),C=ps(l),S=vs(p,10),N=e=>{if(y.current){const t=e.clientX-y.current.left,r=e.clientY-y.current.top;d({x:t,y:r})}};return(0,i.useEffect)((()=>{const e=e=>{const t=e.target,r=h?.contains(t);r&&_(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[w,h,x,_]),(0,i.useEffect)(C,[r,C]),ms(h,S),ms(f.content,S),(0,c.jsx)(Ps,{value:{scrollbar:h,hasThumb:o,onThumbChange:ps(n),onThumbPointerUp:ps(s),onThumbPositionChange:C,onThumbPointerDown:ps(a)},children:(0,c.jsx)("div",{...m,ref:g,"data-mantine-scrollbar":!0,style:{position:"absolute",...m.style},onPointerDown:js(e.onPointerDown,(e=>{e.preventDefault(),0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",N(e))})),onPointerMove:js(e.onPointerMove,N),onPointerUp:js(e.onPointerUp,(e=>{e.preventDefault();const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,y.current=null}))})})})),Ts=(0,i.forwardRef)(((e,t)=>{const{sizes:r,onSizesChange:o,style:n,...s}=e,a=us(),[l,d]=(0,i.useState)(),u=(0,i.useRef)(null),p=Pt(t,u,a.onScrollbarXChange);return(0,i.useEffect)((()=>{u.current&&d(getComputedStyle(u.current))}),[u]),(0,c.jsx)($s,{"data-orientation":"horizontal",...s,ref:p,sizes:r,style:{...n,"--sa-thumb-width":`${xs(r)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(a.viewport){const o=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(o),Ss(o,r)&&t.preventDefault()}},onResize:()=>{u.current&&a.viewport&&l&&o({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Ns(l.paddingLeft),paddingEnd:Ns(l.paddingRight)}})}})}));Ts.displayName="@mantine/core/ScrollAreaScrollbarX";const Es=(0,i.forwardRef)(((e,t)=>{const{sizes:r,onSizesChange:o,style:n,...s}=e,a=us(),[l,d]=(0,i.useState)(),u=(0,i.useRef)(null),p=Pt(t,u,a.onScrollbarYChange);return(0,i.useEffect)((()=>{u.current&&d(window.getComputedStyle(u.current))}),[]),(0,c.jsx)($s,{...s,"data-orientation":"vertical",ref:p,sizes:r,style:{"--sa-thumb-height":`${xs(r)}px`,...n},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(a.viewport){const o=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(o),Ss(o,r)&&t.preventDefault()}},onResize:()=>{u.current&&a.viewport&&l&&o({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Ns(l.paddingTop),paddingEnd:Ns(l.paddingBottom)}})}})}));Es.displayName="@mantine/core/ScrollAreaScrollbarY";const Rs=(0,i.forwardRef)(((e,t)=>{const{orientation:r="vertical",...o}=e,{dir:n}=rt(),s=us(),a=(0,i.useRef)(null),l=(0,i.useRef)(0),[d,u]=(0,i.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=ws(d.viewport,d.content),m={...o,sizes:d,onSizesChange:u,hasThumb:Boolean(p>0&&p<1),onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:e=>{l.current=e}},f=(e,t)=>function(e,t,r,o="ltr"){const n=xs(r),s=t||n/2,a=n-s,i=r.scrollbar.paddingStart+s,l=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport;return _s([i,l],"ltr"===o?[0,c]:[-1*c,0])(e)}(e,l.current,d,t);return"horizontal"===r?(0,c.jsx)(Ts,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&a.current){const e=Cs(s.viewport.scrollLeft,d,n);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollLeft=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollLeft=f(e,n))}}):"vertical"===r?(0,c.jsx)(Es,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&a.current){const e=Cs(s.viewport.scrollTop,d);0===d.scrollbar.size?a.current.style.setProperty("--thumb-opacity","0"):a.current.style.setProperty("--thumb-opacity","1"),a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollTop=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollTop=f(e))}}):null}));Rs.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Os=(0,i.forwardRef)(((e,t)=>{const r=us(),{forceMount:o,...n}=e,[s,a]=(0,i.useState)(!1),l="horizontal"===e.orientation,d=vs((()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;a(l?e:t)}}),10);return ms(r.viewport,d),ms(r.content,d),o||s?(0,c.jsx)(Rs,{"data-state":s?"visible":"hidden",...n,ref:t}):null}));Os.displayName="@mantine/core/ScrollAreaScrollbarAuto";const Ds=(0,i.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=us(),[s,a]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const{scrollArea:e}=n;let t=0;if(e){const r=()=>{window.clearTimeout(t),a(!0)},o=()=>{t=window.setTimeout((()=>a(!1)),n.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",o),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",o)}}}),[n.scrollArea,n.scrollHideDelay]),r||s?(0,c.jsx)(Os,{"data-state":s?"visible":"hidden",...o,ref:t}):null}));Ds.displayName="@mantine/core/ScrollAreaScrollbarHover";const As=(0,i.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=us(),s="horizontal"===e.orientation,[a,l]=(0,i.useState)("hidden"),d=vs((()=>l("idle")),100);return(0,i.useEffect)((()=>{if("idle"===a){const e=window.setTimeout((()=>l("hidden")),n.scrollHideDelay);return()=>window.clearTimeout(e)}}),[a,n.scrollHideDelay]),(0,i.useEffect)((()=>{const{viewport:e}=n,t=s?"scrollLeft":"scrollTop";if(e){let r=e[t];const o=()=>{const o=e[t];r!==o&&(l("scrolling"),d()),r=o};return e.addEventListener("scroll",o),()=>e.removeEventListener("scroll",o)}}),[n.viewport,s,d]),r||"hidden"!==a?(0,c.jsx)(Rs,{"data-state":"hidden"===a?"hidden":"visible",...o,ref:t,onPointerEnter:js(e.onPointerEnter,(()=>l("interacting"))),onPointerLeave:js(e.onPointerLeave,(()=>l("idle")))}):null})),zs=(0,i.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=us(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=n,l="horizontal"===e.orientation;return(0,i.useEffect)((()=>(l?s(!0):a(!0),()=>{l?s(!1):a(!1)})),[l,s,a]),"hover"===n.type?(0,c.jsx)(Ds,{...o,ref:t,forceMount:r}):"scroll"===n.type?(0,c.jsx)(As,{...o,ref:t,forceMount:r}):"auto"===n.type?(0,c.jsx)(Os,{...o,ref:t,forceMount:r}):"always"===n.type?(0,c.jsx)(Rs,{...o,ref:t}):null}));zs.displayName="@mantine/core/ScrollAreaScrollbar";const Ls=(0,i.forwardRef)(((e,t)=>{const{style:r,...o}=e,n=us(),s=ks(),{onThumbPositionChange:a}=s,l=Pt(t,(e=>s.onThumbChange(e))),d=(0,i.useRef)(void 0),u=vs((()=>{d.current&&(d.current(),d.current=void 0)}),100);return(0,i.useEffect)((()=>{const{viewport:e}=n;if(e){const t=()=>{if(u(),!d.current){const t=function(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},o=0;return function n(){const s={left:e.scrollLeft,top:e.scrollTop},a=r.left!==s.left,i=r.top!==s.top;(a||i)&&t(),r=s,o=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(o)}(e,a);d.current=t,a()}};return a(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[n.viewport,u,a]),(0,c.jsx)("div",{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...r},onPointerDownCapture:js(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),r=e.clientX-t.left,o=e.clientY-t.top;s.onThumbPointerDown({x:r,y:o})})),onPointerUp:js(e.onPointerUp,s.onThumbPointerUp)})}));Ls.displayName="@mantine/core/ScrollAreaThumb";const Is=(0,i.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=ks();return r||n.hasThumb?(0,c.jsx)(Ls,{ref:t,...o}):null}));Is.displayName="@mantine/core/ScrollAreaThumb";const Ms=(0,i.forwardRef)((({children:e,style:t,...r},o)=>{const n=us(),s=Pt(o,n.onViewportChange);return(0,c.jsx)(He,{...r,ref:s,style:{overflowX:n.scrollbarXEnabled?"scroll":"hidden",overflowY:n.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,c.jsx)("div",{style:{minWidth:"100%",display:"table"},ref:n.onContentChange,children:e})})}));Ms.displayName="@mantine/core/ScrollAreaViewport";var Fs={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Ws={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Hs=(e,{scrollbarSize:t})=>({root:{"--scrollarea-scrollbar-size":y(t)}}),Bs=Ve(((e,t)=>{const r=ue("ScrollArea",Ws,e),{classNames:o,className:n,style:s,styles:a,unstyled:l,scrollbarSize:d,vars:u,type:p,scrollHideDelay:m,viewportProps:f,viewportRef:h,onScrollPositionChange:b,children:g,offsetScrollbars:y,scrollbars:v,onBottomReached:w,onTopReached:x,..._}=r,[C,S]=(0,i.useState)(!1),N=Se({name:"ScrollArea",props:r,classes:Fs,className:n,style:s,classNames:o,styles:a,unstyled:l,vars:u,varsResolver:Hs});return(0,c.jsxs)(gs,{type:"never"===p?"always":p,scrollHideDelay:m,ref:t,scrollbars:v,...N("root"),..._,children:[(0,c.jsx)(Ms,{...f,...N("viewport",{style:f?.style}),ref:h,"data-offset-scrollbars":!0===y?"xy":y||void 0,"data-scrollbars":v||void 0,onScroll:e=>{f?.onScroll?.(e),b?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});const{scrollTop:t,scrollHeight:r,clientHeight:o}=e.currentTarget;t-(r-o)>=0&&w?.(),0===t&&x?.()},children:g}),("xy"===v||"x"===v)&&(0,c.jsx)(zs,{...N("scrollbar"),orientation:"horizontal","data-hidden":"never"===p||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:(0,c.jsx)(Is,{...N("thumb")})}),("xy"===v||"y"===v)&&(0,c.jsx)(zs,{...N("scrollbar"),orientation:"vertical","data-hidden":"never"===p||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:(0,c.jsx)(Is,{...N("thumb")})}),(0,c.jsx)(hs,{...N("corner"),"data-hovered":C||void 0,"data-hidden":"never"===p||void 0})]})}));Bs.displayName="@mantine/core/ScrollArea";const Vs=Ve(((e,t)=>{const{children:r,classNames:o,styles:n,scrollbarSize:s,scrollHideDelay:a,type:i,dir:l,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:p,unstyled:m,variant:f,viewportProps:h,scrollbars:b,style:g,vars:y,onBottomReached:v,onTopReached:w,...x}=ue("ScrollAreaAutosize",Ws,e);return(0,c.jsx)(He,{...x,ref:t,style:[{display:"flex",overflow:"auto"},g],children:(0,c.jsx)(He,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,c.jsx)(Bs,{classNames:o,styles:n,scrollHideDelay:a,scrollbarSize:s,type:i,dir:l,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:p,unstyled:m,variant:f,viewportProps:h,vars:y,scrollbars:b,onBottomReached:v,onTopReached:w,children:r})})})}));function Ys(e){return"group"in e}function qs({options:e,search:t,limit:r}){const o=t.trim().toLowerCase(),n=[];for(let s=0;s<e.length;s+=1){const a=e[s];if(n.length===r)return n;Ys(a)&&n.push({group:a.group,items:qs({options:a.items,search:t,limit:r-n.length})}),Ys(a)||a.label.toLowerCase().includes(o)&&n.push(a)}return n}function Us(e,t=new Set){if(Array.isArray(e))for(const r of e)if(Ys(r))Us(r.items,t);else{if(void 0===r.value)throw new Error("[@mantine/core] Each option must have value property");if("string"!=typeof r.value)throw new Error("[@mantine/core] Option value must be a string, other data formats are not supported, got "+typeof r.value);if(t.has(r.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);t.add(r.value)}}function Xs({data:e,withCheckIcon:t,value:r,checkIconPosition:o,unstyled:n,renderOption:s}){if(!Ys(e)){const a=function(e,t){return Array.isArray(e)?e.includes(t):e===t}(r,e.value),i=t&&a&&(0,c.jsx)(cs,{className:Zo.optionsDropdownCheckIcon}),l=(0,c.jsxs)(c.Fragment,{children:["left"===o&&i,(0,c.jsx)("span",{children:e.label}),"right"===o&&i]});return(0,c.jsx)(ls.Option,{value:e.value,disabled:e.disabled,className:me({[Zo.optionsDropdownOption]:!n}),"data-reverse":"right"===o||void 0,"data-checked":a||void 0,"aria-selected":a,active:a,children:"function"==typeof s?s({option:e,checked:a}):l})}const a=e.items.map((e=>(0,c.jsx)(Xs,{data:e,value:r,unstyled:n,withCheckIcon:t,checkIconPosition:o,renderOption:s},e.value)));return(0,c.jsx)(ls.Group,{label:e.group,children:a})}function Ks({data:e,hidden:t,hiddenWhenEmpty:r,filter:o,search:n,limit:s,maxDropdownHeight:a,withScrollArea:i=!0,filterOptions:l=!0,withCheckIcon:d=!1,value:u,checkIconPosition:p,nothingFoundMessage:m,unstyled:f,labelId:h,renderOption:b,scrollAreaProps:g,"aria-label":y}){Us(e);const v="string"==typeof n?(o||qs)({options:e,search:l?n:"",limit:s??1/0}):e,w=function(e){if(0===e.length)return!0;for(const t of e){if(!("group"in t))return!1;if(t.items.length>0)return!1}return!0}(v),x=v.map((e=>(0,c.jsx)(Xs,{data:e,withCheckIcon:d,value:u,checkIconPosition:p,unstyled:f,renderOption:b},Ys(e)?e.group:e.value)));return(0,c.jsx)(ls.Dropdown,{hidden:t||r&&w,children:(0,c.jsxs)(ls.Options,{labelledBy:h,"aria-label":y,children:[i?(0,c.jsx)(Bs.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...g,children:x}):x,w&&m&&(0,c.jsx)(ls.Empty,{children:m})]})})}Bs.classes=Fs,Vs.displayName="@mantine/core/ScrollAreaAutosize",Vs.classes=Fs,Bs.Autosize=Vs;const Gs={__staticSelector:"InputBase",withAria:!0},Zs=ot(((e,t)=>{const{inputProps:r,wrapperProps:o,...n}=function(e,t,r){const o=ue("InputBase",t,r),{label:n,description:s,error:a,required:i,classNames:l,styles:c,className:d,unstyled:u,__staticSelector:p,__stylesApiProps:m,errorProps:f,labelProps:h,descriptionProps:b,wrapperProps:g,id:y,size:v,style:w,inputContainer:x,inputWrapperOrder:_,withAsterisk:C,variant:S,vars:N,mod:j,...P}=o,{styleProps:k,rest:$}=Re(P);return{...$,classNames:l,styles:c,unstyled:u,wrapperProps:{...{label:n,description:s,error:a,required:i,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||o,errorProps:f,labelProps:h,descriptionProps:b,unstyled:u,styles:c,size:v,style:w,inputContainer:x,inputWrapperOrder:_,withAsterisk:C,variant:S,id:y,mod:j,...g},...k},inputProps:{required:i,classNames:l,styles:c,unstyled:u,size:v,__staticSelector:p,__stylesApiProps:m||o,error:a,variant:S,id:y}}}(0,Gs,e);return(0,c.jsx)(On.Wrapper,{...o,children:(0,c.jsx)(On,{...r,...n,ref:t})})}));Zs.classes={...On.classes,...On.Wrapper.classes},Zs.displayName="@mantine/core/InputBase";const Js={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Qs=Ve(((e,t)=>{const r=ue("Select",Js,e),{classNames:o,styles:n,unstyled:s,vars:a,dropdownOpened:l,defaultDropdownOpened:d,onDropdownClose:u,onDropdownOpen:p,onFocus:m,onBlur:f,onClick:h,onChange:b,data:g,value:y,defaultValue:v,selectFirstOptionOnChange:w,onOptionSubmit:x,comboboxProps:_,readOnly:C,disabled:S,filter:N,limit:j,withScrollArea:P,maxDropdownHeight:k,size:$,searchable:T,rightSection:E,checkIconPosition:R,withCheckIcon:O,nothingFoundMessage:D,name:A,form:z,searchValue:L,defaultSearchValue:I,onSearchChange:M,allowDeselect:F,error:W,rightSectionPointerEvents:H,id:B,clearable:V,clearButtonProps:Y,hiddenInputProps:q,renderOption:U,onClear:X,autoComplete:K,scrollAreaProps:G,__defaultRightSection:Z,__clearSection:J,__clearable:Q,chevronColor:re,...oe}=r,ne=(0,i.useMemo)((()=>ht(g)),[g]),se=(0,i.useMemo)((()=>bt(ne)),[ne]),ae=ee(B),[ie,le,ce]=te({value:y,defaultValue:v,finalValue:null,onChange:b}),de="string"==typeof ie?se[ie]:void 0,pe=function(e){const t=(0,i.useRef)(void 0);return(0,i.useEffect)((()=>{t.current=e}),[e]),t.current}(de),[me,fe]=te({value:L,defaultValue:I,finalValue:de?de.label:"",onChange:M}),he=ss({opened:l,defaultOpened:d,onDropdownOpen:()=>{p?.(),he.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),he.resetSelectedOption()}}),{resolvedClassNames:be,resolvedStyles:ge}=mt({props:r,styles:n,classNames:o});(0,i.useEffect)((()=>{w&&he.selectFirstOption()}),[w,ie]),(0,i.useEffect)((()=>{null===y&&fe(""),"string"!=typeof y||!de||pe?.value===de.value&&pe?.label===de.label||fe(de.label)}),[y,de]);const ye=(0,c.jsx)(ls.ClearButton,{...Y,onClear:()=>{le(null,null),fe(""),X?.()}}),ve=V&&!!ie&&!S&&!C;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(ls,{store:he,__staticSelector:"Select",classNames:be,styles:ge,unstyled:s,readOnly:C,onOptionSubmit:e=>{x?.(e);const t=F&&se[e].value===ie?null:se[e],r=t?t.value:null;r!==ie&&le(r,t),!ce&&fe("string"==typeof r&&t?.label||""),he.closeDropdown()},size:$,..._,children:[(0,c.jsx)(ls.Target,{targetType:T?"input":"button",autoComplete:K,children:(0,c.jsx)(Zs,{id:ae,ref:t,__defaultRightSection:(0,c.jsx)(ls.Chevron,{size:$,error:W,unstyled:s,color:re}),__clearSection:ye,__clearable:ve,rightSection:E,rightSectionPointerEvents:H||(ve?"all":"none"),...oe,size:$,__staticSelector:"Select",disabled:S,readOnly:C||!T,value:me,onChange:e=>{fe(e.currentTarget.value),he.openDropdown(),w&&he.selectFirstOption()},onFocus:e=>{T&&he.openDropdown(),m?.(e)},onBlur:e=>{T&&he.closeDropdown(),fe(null!=ie&&se[ie]?.label||""),f?.(e)},onClick:e=>{T?he.openDropdown():he.toggleDropdown(),h?.(e)},classNames:be,styles:ge,unstyled:s,pointer:!T,error:W})}),(0,c.jsx)(Ks,{data:ne,hidden:C||S,filter:N,search:me,limit:j,hiddenWhenEmpty:!D,withScrollArea:P,maxDropdownHeight:k,filterOptions:T&&de?.label!==me,value:ie,checkIconPosition:R,withCheckIcon:O,nothingFoundMessage:D,unstyled:s,labelId:oe.label?`${ae}-label`:void 0,"aria-label":oe.label?void 0:oe["aria-label"],renderOption:U,scrollAreaProps:G})]}),(0,c.jsx)(ls.HiddenInput,{value:ie,name:A,form:z,disabled:S,...q})]})}));Qs.classes={...Zs.classes,...ls.classes},Qs.displayName="@mantine/core/Select";const ea={},ta=Ve(((e,t)=>{const r=ue("TextInput",ea,e);return(0,c.jsx)(Zs,{component:"input",ref:t,...r,__staticSelector:"TextInput"})}));ta.classes=Zs.classes,ta.displayName="@mantine/core/TextInput";var ra={root:"m_4081bf90"};const oa={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},na=(e,{grow:t,preventGrowOverflow:r,gap:o,align:n,justify:s,wrap:a},{childWidth:i})=>({root:{"--group-child-width":t&&r?i:void 0,"--group-gap":se(o),"--group-align":n,"--group-justify":s,"--group-wrap":a}}),sa=Ve(((e,t)=>{const r=ue("Group",oa,e),{classNames:o,className:n,style:s,styles:a,unstyled:l,children:d,gap:u,align:p,justify:m,wrap:f,grow:h,preventGrowOverflow:b,vars:g,variant:y,__size:v,mod:w,...x}=r,_=function(e){return i.Children.toArray(e).filter(Boolean)}(d),C=_.length,S=se(u??"md"),N=Se({name:"Group",props:r,stylesCtx:{childWidth:`calc(${100/C}% - (${S} - ${S} / ${C}))`},className:n,style:s,classes:ra,classNames:o,styles:a,unstyled:l,vars:g,varsResolver:na});return(0,c.jsx)(He,{...N("root"),ref:t,variant:y,mod:[{grow:h},w],size:v,...x,children:_})}));sa.classes=ra,sa.displayName="@mantine/core/Group";const[aa,ia]=Ye("Pagination.Root component was not found in tree");var la={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const ca={withPadding:!0},da=Ve(((e,t)=>{const r=ue("PaginationControl",ca,e),{classNames:o,className:n,style:s,styles:a,vars:i,active:l,disabled:d,withPadding:u,mod:p,...m}=r,f=ia(),h=d||f.disabled;return(0,c.jsx)(at,{ref:t,disabled:h,mod:[{active:l,disabled:h,"with-padding":u},p],...f.getStyles("control",{className:n,style:s,classNames:o,styles:a,active:!h}),...m})}));function ua({style:e,children:t,path:r,...o}){return(0,c.jsx)("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...e},...o,children:(0,c.jsx)("path",{d:r,fill:"currentColor"})})}da.classes=la,da.displayName="@mantine/core/PaginationControl";const pa={icon:e=>(0,c.jsx)(ua,{...e,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"})},ma=Ve(((e,t)=>{const r=ue("PaginationDots",pa,e),{classNames:o,className:n,style:s,styles:a,vars:i,icon:l,...d}=r,u=ia(),p=l;return(0,c.jsx)(He,{ref:t,...u.getStyles("dots",{className:n,style:s,styles:a,classNames:o}),...d,children:(0,c.jsx)(p,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})}));function fa({icon:e,name:t,action:r,type:o}){const n={icon:e},s=(0,i.forwardRef)(((e,s)=>{const{icon:a,...i}=ue(t,n,e),l=a,d=ia(),u="next"===o?d.active===d.total:1===d.active;return(0,c.jsx)(da,{disabled:d.disabled||u,ref:s,onClick:d[r],withPadding:!1,...i,children:(0,c.jsx)(l,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})}));return s.displayName=`@mantine/core/${t}`,s}ma.classes=la,ma.displayName="@mantine/core/PaginationDots";const ha=fa({icon:e=>(0,c.jsx)(ua,{...e,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),name:"PaginationNext",action:"onNext",type:"next"}),ba=fa({icon:e=>(0,c.jsx)(ua,{...e,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),name:"PaginationPrevious",action:"onPrevious",type:"previous"}),ga=fa({icon:e=>(0,c.jsx)(ua,{...e,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),name:"PaginationFirst",action:"onFirst",type:"previous"}),ya=fa({icon:e=>(0,c.jsx)(ua,{...e,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),name:"PaginationLast",action:"onLast",type:"next"});function va({dotsIcon:e}){const t=ia(),r=t.range.map(((r,o)=>"dots"===r?(0,c.jsx)(ma,{icon:e},o):(0,c.jsx)(da,{active:r===t.active,"aria-current":r===t.active?"page":void 0,onClick:()=>t.onChange(r),disabled:t.disabled,...t.getItemProps?.(r),children:t.getItemProps?.(r)?.children??r},o)));return(0,c.jsx)(c.Fragment,{children:r})}function wa(e,t){const r=t-e+1;return Array.from({length:r},((t,r)=>r+e))}va.displayName="@mantine/core/PaginationItems";const xa="dots";function _a({total:e,siblings:t=1,boundaries:r=1,page:o,initialPage:n=1,onChange:s}){const a=Math.max(Math.trunc(e),0),[l,c]=te({value:o,onChange:s,defaultValue:n,finalValue:n}),d=e=>{c(e<=0?1:e>a?a:e)};return{range:(0,i.useMemo)((()=>{if(2*t+3+2*r>=a)return wa(1,a);const e=Math.max(l-t,r),o=Math.min(l+t,a-r),n=e>r+2,s=o<a-(r+1);if(!n&&s)return[...wa(1,2*t+r+2),xa,...wa(a-(r-1),a)];if(n&&!s){const e=r+1+2*t;return[...wa(1,r),xa,...wa(a-e,a)]}return[...wa(1,r),xa,...wa(e,o),xa,...wa(a-r+1,a)]}),[a,t,l]),active:l,setPage:d,next:()=>d(l+1),previous:()=>d(l-1),first:()=>d(1),last:()=>d(a)}}function Ca(e,t){return r=>{e?.(r),t?.(r)}}const Sa={siblings:1,boundaries:1},Na=(e,{size:t,radius:r,color:o,autoContrast:n})=>({root:{"--pagination-control-radius":void 0===r?void 0:ae(r),"--pagination-control-size":ne(t,"pagination-control-size"),"--pagination-control-fz":ie(t),"--pagination-active-bg":o?j(o,e):void 0,"--pagination-active-color":ce(n,e)?B({color:o,theme:e,autoContrast:n}):void 0}}),ja=Ve(((e,t)=>{const r=ue("PaginationRoot",Sa,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,total:d,value:u,defaultValue:p,onChange:m,disabled:f,siblings:h,boundaries:b,color:g,radius:y,onNextPage:v,onPreviousPage:w,onFirstPage:x,onLastPage:_,getItemProps:C,autoContrast:S,...N}=r,j=Se({name:"Pagination",classes:la,props:r,className:n,style:s,classNames:o,styles:a,unstyled:i,vars:l,varsResolver:Na}),{range:P,setPage:k,next:$,previous:T,active:E,first:R,last:O}=_a({page:u,initialPage:p,onChange:m,total:d,siblings:h,boundaries:b}),D=Ca(v,$),A=Ca(w,T),z=Ca(x,R),L=Ca(_,O);return(0,c.jsx)(aa,{value:{total:d,range:P,active:E,disabled:f,getItemProps:C,onChange:k,onNext:D,onPrevious:A,onFirst:z,onLast:L,getStyles:j},children:(0,c.jsx)(He,{ref:t,...j("root"),...N})})}));ja.classes=la,ja.displayName="@mantine/core/PaginationRoot";const Pa={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},ka=Ve(((e,t)=>{const r=ue("Pagination",Pa,e),{withEdges:o,withControls:n,getControlProps:s,nextIcon:a,previousIcon:i,lastIcon:l,firstIcon:d,dotsIcon:u,total:p,gap:m,hideWithOnePage:f,withPages:h,...b}=r;return p<=0||f&&1===p?null:(0,c.jsx)(ja,{ref:t,total:p,...b,children:(0,c.jsxs)(sa,{gap:m,children:[o&&(0,c.jsx)(ga,{icon:d,...s?.("first")}),n&&(0,c.jsx)(ba,{icon:i,...s?.("previous")}),h&&(0,c.jsx)(va,{dotsIcon:u}),n&&(0,c.jsx)(ha,{icon:a,...s?.("next")}),o&&(0,c.jsx)(ya,{icon:l,...s?.("last")})]})})}));ka.classes=la,ka.displayName="@mantine/core/Pagination",ka.Root=ja,ka.Control=da,ka.Dots=ma,ka.First=ga,ka.Last=ya,ka.Next=ha,ka.Previous=ba,ka.Items=va;var $a={root:"m_18320242","skeleton-fade":"m_299c329c"};const Ta={visible:!0,animate:!0},Ea=(e,{width:t,height:r,radius:o,circle:n})=>({root:{"--skeleton-height":y(r),"--skeleton-width":y(n?r:t),"--skeleton-radius":n?"1000px":void 0===o?void 0:ae(o)}}),Ra=Ve(((e,t)=>{const r=ue("Skeleton",Ta,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:l,width:d,height:u,circle:p,visible:m,radius:f,animate:h,mod:b,...g}=r,y=Se({name:"Skeleton",classes:$a,props:r,className:n,style:s,classNames:o,styles:a,unstyled:i,vars:l,varsResolver:Ea});return(0,c.jsx)(He,{ref:t,...y("root"),mod:[{visible:m,animate:h},b],...g})}));Ra.classes=$a,Ra.displayName="@mantine/core/Skeleton";const Oa=()=>(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-chevron-down-icon lucide-chevron-down",children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),Da=()=>(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-list-ordered-icon lucide-list-ordered",children:[(0,c.jsx)("path",{d:"M10 12h11"}),(0,c.jsx)("path",{d:"M10 18h11"}),(0,c.jsx)("path",{d:"M10 6h11"}),(0,c.jsx)("path",{d:"M4 10h2"}),(0,c.jsx)("path",{d:"M4 6h1v4"}),(0,c.jsx)("path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"})]}),Aa=()=>(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-search-icon lucide-search",children:[(0,c.jsx)("path",{d:"m21 21-4.34-4.34"}),(0,c.jsx)("circle",{cx:"11",cy:"11",r:"8"})]}),za=()=>(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x-icon lucide-x",children:[(0,c.jsx)("path",{d:"M18 6 6 18"}),(0,c.jsx)("path",{d:"m6 6 12 12"})]}),La=()=>(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-arrow-left-icon lucide-arrow-left",children:[(0,c.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,c.jsx)("path",{d:"M19 12H5"})]}),Ia=window.wp.apiFetch;var Ma=r.n(Ia);const Fa=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},Wa=function(){const{orders:e,isLoading:t}=((e=!0)=>{const[t,r]=(0,i.useState)([]),[o,n]=(0,i.useState)(e),[s,a]=(0,i.useState)(0);return(0,i.useEffect)((()=>{e?(async()=>{n(!0);try{const e=await Ma()({path:"/eb/api/v1/user-account/orders"});r(e.orders||[]),a(e.total_orders||0)}catch(e){console.error("Error fetching orders data:",e)}finally{n(!1)}})():n(!1)}),[e]),{orders:t,totalOrders:s,isLoading:o}})(),[r,o]=(0,i.useState)(""),[s,a]=(0,i.useState)(null),[l,d]=(0,i.useState)(!1),[u,p]=(0,i.useState)(1),[m,f]=(0,i.useState)(10),h=e=>{s!==e?(a(e),d(!1)):l?(a(null),d(!1)):d(!0)},b=e=>{const t=s===e,r=l;return(0,c.jsxs)("div",{className:"eb-orders__table-header-item-icon",children:[(0,c.jsx)("div",{style:{color:t&&!r?"#008b91":"#abbebe"},children:"▲"}),(0,c.jsx)("div",{style:{color:t&&r?"#008b91":"#abbebe"},children:"▼"})]})},g=(0,i.useMemo)((()=>{let t=e.filter((e=>{const t=r.toLowerCase(),o=e.courses&&e.courses.some((e=>e.title&&e.title.toLowerCase().includes(t))),n=v(e.date),s=n&&n.toLowerCase().includes(t),a=e.eb_order_id&&e.eb_order_id.toString().includes(t),i=e.status&&e.status.toLowerCase().includes(t);return o||s||a||i}));return s&&t.sort(((e,t)=>{let r=e[s],o=t[s];return"date"===s&&(r=new Date(r),o=new Date(o)),"courses"===s&&(r=e.courses&&e.courses.length>0?e.courses[0].title:"",o=t.courses&&t.courses.length>0?t.courses[0].title:""),r<o?l?1:-1:r>o?l?-1:1:0})),t}),[e,r,s,l]),y=(0,i.useMemo)((()=>{if("all"===m)return g;const e=(u-1)*m,t=e+m;return g.slice(e,t)}),[g,u,m]);function v(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}return t?(0,c.jsx)(Ha,{}):(0,c.jsxs)("div",{className:"eb-user-account__eb-orders",children:[(0,c.jsxs)("div",{className:"eb-orders__filter",children:[(0,c.jsx)(Qs,{value:m.toString(),onChange:e=>{f("all"===e?"all":Number(e)),p(1)},data:[{value:"5",label:(0,n.__)("5 per page","edwiser-bridge")},{value:"10",label:(0,n.__)("10 per page","edwiser-bridge")},{value:"25",label:(0,n.__)("25 per page","edwiser-bridge")},{value:"all",label:(0,n.__)("All","edwiser-bridge")}],comboboxProps:{withinPortal:!1},checkIconPosition:"right",maxDropdownHeight:350,rightSection:(0,c.jsx)(Oa,{}),leftSection:(0,c.jsx)(Da,{}),allowDeselect:!1}),(0,c.jsx)(ta,{placeholder:(0,n.__)("Search by course name, date, order ID, or status...","edwiser-bridge"),value:r,onChange:e=>{p(1),o(e.currentTarget.value)},leftSection:(0,c.jsx)(Aa,{}),leftSectionPointerEvents:"none"})]}),0===g.length?(0,c.jsxs)("div",{className:"eb-orders__empty-state",children:[(0,c.jsx)("h4",{className:"eb-orders__empty-state-title",children:(0,n.__)("No orders found","edwiser-bridge")}),(0,c.jsx)("p",{className:"eb-orders__empty-state-description",children:r?(0,n.__)("No orders match your search criteria. Try adjusting your search terms.","edwiser-bridge"):(0,n.__)("You haven't placed any orders yet. Browse our products to get started!","edwiser-bridge")})]}):(0,c.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,c.jsxs)("table",{className:"eb-orders__table",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{className:"eb-orders__table-header",children:[(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--order-id",onClick:()=>h("eb_order_id"),children:(0,c.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,n.__)("Order ID","edwiser-bridge"),b("eb_order_id")]})}),(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--course",onClick:()=>h("courses"),children:(0,c.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,n.__)("Course","edwiser-bridge"),b("courses")]})}),(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--date",onClick:()=>h("date"),children:(0,c.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,n.__)("Date","edwiser-bridge"),b("date")]})}),(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--status",onClick:()=>h("status"),children:(0,c.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,n.__)("Status","edwiser-bridge"),b("status")]})})]})}),(0,c.jsx)("tbody",{children:y.map((e=>(0,c.jsxs)("tr",{className:"eb-orders__table-row",children:[(0,c.jsxs)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--order-id",children:["#",e.eb_order_id]}),(0,c.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--course",children:e.courses&&e.courses.length>0?(0,c.jsx)("ul",{className:"eb-user-order-courses",children:e.courses.map(((e,t)=>(0,c.jsx)("li",{children:e.link?(0,c.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"eb-orders__course-link",children:Fa(e.title)}):(0,c.jsx)("span",{children:e.title})},t)))}):(0,c.jsx)("span",{children:(0,n.__)("No courses available","edwiser-bridge")})}),(0,c.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--date",children:v(e.date)}),(0,c.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--status",children:e.status})]},e.eb_order_id)))})]})}),g.length>0&&(0,c.jsxs)("div",{className:"eb-orders__pagination",children:[(0,c.jsx)("span",{className:"eb-orders__pagination-text",children:"all"===m?(0,c.jsxs)(c.Fragment,{children:[(0,n.__)("Showing all","edwiser-bridge")," ",g.length," ",(0,n.__)("entries","edwiser-bridge")]}):(0,c.jsxs)(c.Fragment,{children:[(0,n.__)("Showing","edwiser-bridge")," ",Math.min((u-1)*m+1,g.length)," ",(0,n.__)("to","edwiser-bridge")," ",Math.min(u*m,g.length)," ",(0,n.__)("of","edwiser-bridge")," ",g.length," ",(0,n.__)("entries","edwiser-bridge")]})}),"all"!==m&&(0,c.jsx)(ka,{total:Math.ceil(g.length/m),value:u,onChange:p,size:"sm"})]})]})},Ha=()=>(0,c.jsxs)("div",{className:"eb-user-account__orders",children:[(0,c.jsxs)("div",{className:"eb-orders__filter",children:[(0,c.jsx)(Ra,{width:160,height:36}),(0,c.jsx)(Ra,{width:280,height:36})]}),(0,c.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,c.jsx)(Ra,{width:"100%",height:480})}),(0,c.jsxs)("div",{className:"eb-orders__pagination",children:[(0,c.jsx)(Ra,{width:180,height:20}),(0,c.jsx)(Ra,{width:240,height:32})]})]}),Ba=({order:e,onClose:t,isLoading:r=!1})=>{return e?(0,c.jsx)("div",{className:"eb-order-details",children:r?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Ra,{height:40,width:120}),(0,c.jsx)("div",{className:"eb-order-details__content",style:{marginTop:"24px"},children:(0,c.jsx)(Ra,{height:450,width:"100%"})})]}):e&&e.detailsHtml?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"eb-order-details__header",children:[(0,c.jsxs)("button",{className:"eb-order-details__back-button",onClick:t,"aria-label":(0,n.__)("Back to orders","edwiser-bridge"),children:[(0,c.jsx)(La,{})," ",(0,n.__)("Back to Orders","edwiser-bridge")]}),(0,c.jsxs)("div",{className:"eb-order-details__meta",children:[(0,n.__)("Order","edwiser-bridge")," ",(0,c.jsxs)("strong",{children:["#",e.id]})," ",(0,n.__)("was placed on","edwiser-bridge")," ",(0,c.jsx)("strong",{children:(o=e.date_created,new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}))})," ",(0,n.__)("and is currently","edwiser-bridge")," ",(0,c.jsx)("strong",{style:{textTransform:"capitalize"},children:(0,n.__)(e.status,"edwiser-bridge")})]})]}),(0,c.jsx)("div",{className:"eb-order-details__woocommerce-content",dangerouslySetInnerHTML:{__html:e.detailsHtml}})]}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:"eb-order-details__content",children:(0,c.jsxs)("div",{className:"eb-order-details__error",children:[(0,c.jsx)("h4",{children:(0,n.__)("Failed to load order details","edwiser-bridge")}),(0,c.jsx)("p",{children:(0,n.__)("There was an error loading the order details.","edwiser-bridge")}),(0,c.jsxs)("button",{className:"eb-order-details__back-button",onClick:t,"aria-label":(0,n.__)("Back to orders","edwiser-bridge"),children:[(0,c.jsx)(La,{})," ",(0,n.__)("Back to Orders","edwiser-bridge")]})]})})})}):null;var o},Va=function(){const{orders:e,isLoading:t,totalOrders:r,totalPages:o,currentPage:s,perPage:a,setCurrentPage:l,setPerPage:d,search:u,setSearch:p,orderBy:m,setOrderBy:f,order:h,setOrder:b}=((e=!0)=>{const[t,r]=(0,i.useState)([]),[o,n]=(0,i.useState)(e),[s,a]=(0,i.useState)(0),[l,c]=(0,i.useState)(1),[d,u]=(0,i.useState)(10),[p,m]=(0,i.useState)(0),[f,h]=(0,i.useState)(""),[b,g]=(0,i.useState)("date"),[y,v]=(0,i.useState)("desc"),w=(0,i.useCallback)((()=>{const e=new URLSearchParams;return e.append("page",l.toString()),e.append("per_page",d.toString()),e.append("orderby",b),e.append("order",y),e.append("status","pending,processing,on-hold,completed,cancelled,refunded,failed"),f&&e.append("search",f),e.toString()}),[l,d,f,b,y]),x=(0,i.useCallback)((async()=>{if(e){n(!0);try{let e=null;if(window.ebCurrentUser?.ID)e=window.ebCurrentUser.ID;else try{e=(await Ma()({path:"/wp/v2/users/me"})).id}catch(e){return console.error("Error fetching user ID:",e),r([]),a(0),m(0),void n(!1)}const t=`/eb/api/v1/user-account/wc-orders?${w()}`,o=await Ma()({path:t,parse:!1});m(parseInt(o.headers.get("X-WP-TotalPages"))),a(parseInt(o.headers.get("X-WP-Total")));const s=await o.json();r(s)}catch(e){console.error("Error fetching WooCommerce orders:",e),r([]),a(0)}finally{n(!1)}}else n(!1)}),[e,w]);return(0,i.useEffect)((()=>{x()}),[x]),{orders:t,totalOrders:s,totalPages:p,isLoading:o,currentPage:l,perPage:d,setCurrentPage:c,setPerPage:u,search:f,setSearch:h,orderBy:b,setOrderBy:g,order:y,setOrder:v}})(),[g,y]=(0,i.useState)(m),[v,w]=(0,i.useState)("desc"===h),[x,_]=(0,i.useState)(u),[C,S]=(0,i.useState)({type:"",text:""}),[N,j]=(0,i.useState)(null),[P,k]=(0,i.useState)(!1),[$,T]=(0,i.useState)(!1),E=(e=>{const[t,r]=(0,i.useState)(e);return(0,i.useEffect)((()=>{const t=setTimeout((()=>{r(e)}),300);return()=>{clearTimeout(t)}}),[e,300]),t})(x);(0,i.useEffect)((()=>{if("true"===new URLSearchParams(window.location.search).get("cancelled")){S({type:"success",text:(0,n.__)("Your order was cancelled.","edwiser-bridge")});const e=new URL(window.location);e.searchParams.delete("cancelled"),window.history.replaceState({},"",e);const t=setTimeout((()=>{S({type:"",text:""})}),5e3);return()=>clearTimeout(t)}}),[]),(0,i.useEffect)((()=>{E!==u&&p(E)}),[E,u,p]),(0,i.useEffect)((()=>{_(u)}),[u]),(0,i.useEffect)((()=>{y(m),w("desc"===h)}),[m,h]);const R=e=>{g!==e?(y(e),w(!1),f(e),b("asc")):v?"date"===e?(w(!1),b("asc")):(y("date"),w(!0),f("date"),b("desc")):(w(!0),b("desc"))},O=e=>{const t=g===e,r=v;return(0,c.jsxs)("div",{className:"eb-orders__table-header-item-icon",children:[(0,c.jsx)("div",{style:{color:t&&!r?"#008b91":"#abbebe"},children:"▲"}),(0,c.jsx)("div",{style:{color:t&&r?"#008b91":"#abbebe"},children:"▼"})]})},D=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),A=e=>{const t=parseFloat(e.total)||0,r=(e.refunds||[]).reduce(((e,t)=>e+Math.abs(parseFloat(t.total))),0),o=t-r,n=e.currency;return r>0?(0,c.jsxs)("span",{className:"eb-orders__total-with-refund",children:[(0,c.jsx)("span",{className:"eb-orders__original-total",children:D(t,n)})," ",(0,c.jsx)("span",{className:"eb-orders__net-total",children:D(o,n)})]}):(0,c.jsx)("strong",{children:D(t,n)})};return(0,c.jsxs)("div",{className:"eb-user-account__wc-orders",children:[!P&&(0,c.jsxs)("div",{className:"eb-orders__filter",children:[(0,c.jsx)(Qs,{value:a===r?"all":a.toString(),onChange:e=>{d("all"===e?r:Number(e)),l(1)},data:[{value:"5",label:(0,n.__)("5 per page","edwiser-bridge")},{value:"10",label:(0,n.__)("10 per page","edwiser-bridge")},{value:"25",label:(0,n.__)("25 per page","edwiser-bridge")},{value:"all",label:(0,n.__)("All","edwiser-bridge")}],comboboxProps:{withinPortal:!1},checkIconPosition:"right",maxDropdownHeight:350,rightSection:(0,c.jsx)(Oa,{}),leftSection:(0,c.jsx)(Da,{}),allowDeselect:!1}),(0,c.jsx)(ta,{placeholder:(0,n.__)("Search by product name","edwiser-bridge"),value:x,onChange:e=>{l(1),_(e.currentTarget.value)},leftSection:(0,c.jsx)(Aa,{}),leftSectionPointerEvents:"none"})]}),C.text&&(0,c.jsxs)("div",{className:`eb-orders__notice eb-orders__notice--${C.type} eb-orders__notice--animated`,children:[(0,c.jsx)("span",{className:"eb-orders__notice-text",children:C.text}),(0,c.jsx)("button",{type:"button",className:"eb-orders__notice-close",onClick:()=>{S({type:"",text:""})},"aria-label":(0,n.__)("Close notice","edwiser-bridge"),children:(0,c.jsx)(za,{})})]}),!P&&(t?(0,c.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,c.jsx)(Ra,{width:"100%",height:480})}):0===e.length?(0,c.jsxs)("div",{className:"eb-orders__empty-state",children:[(0,c.jsx)("h4",{className:"eb-orders__empty-state-title",children:(0,n.__)("No orders found","edwiser-bridge")}),(0,c.jsx)("p",{className:"eb-orders__empty-state-description",children:x?(0,c.jsxs)(c.Fragment,{children:[(0,n.__)("No orders matching your search","edwiser-bridge")," ",(0,n.__)("for","edwiser-bridge")," ",x]}):(0,n.__)("You haven't placed any orders yet. Browse our products to get started!","edwiser-bridge")})]}):(0,c.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,c.jsxs)("table",{className:"eb-orders__table",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{className:"eb-orders__table-header",children:[(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--order-id",onClick:()=>R("id"),children:(0,c.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,n.__)("Order","edwiser-bridge"),O("id")]})}),(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--total",children:(0,c.jsx)("div",{className:"eb-orders__table-header-item-content",children:(0,n.__)("Total","edwiser-bridge")})}),(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--date",onClick:()=>R("date"),children:(0,c.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,n.__)("Date","edwiser-bridge"),O("date")]})}),(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--status",children:(0,c.jsx)("div",{className:"eb-orders__table-header-item-content",children:(0,n.__)("Status","edwiser-bridge")})}),(0,c.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--actions",children:(0,c.jsx)("div",{className:"eb-orders__table-header-item-content",children:(0,n.__)("Actions","edwiser-bridge")})})]})}),(0,c.jsx)("tbody",{children:e.map((e=>{return(0,c.jsxs)("tr",{className:"eb-orders__table-row",children:[(0,c.jsxs)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--order-id",children:["#",e.number||e.id]}),(0,c.jsxs)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--total",children:[A(e)," ",(0,n.__)(" for","edwiser-bridge")," ",e.line_items.reduce(((e,t)=>e+t.quantity),0)," ",(0,n.__)("items","edwiser-bridge")]}),(0,c.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--date",children:(t=e.date_created,new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}))}),(0,c.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--status",children:(0,c.jsx)("span",{className:`eb-orders__status eb-orders__status--${e.status}`,children:e.status})}),(0,c.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--actions",children:(0,c.jsxs)("div",{className:"row-actions",children:[["pending","failed"].includes(e.status)&&e.needs_payment&&(0,c.jsx)("a",{href:e.payment_url,rel:"noopener noreferrer",children:(0,n.__)("Pay","edwiser-bridge")}),(0,c.jsx)("button",{type:"button",className:"eb-orders__view-button",onClick:()=>(async e=>{try{T(!0),k(!0),j(e);const t=new FormData;t.append("action","eb_get_order_details"),t.append("order_id",e.id),t.append("nonce",window.eb_order_details?.nonce||"");const r=await fetch(window.eb_order_details?.ajax_url||"/wp-admin/admin-ajax.php",{method:"POST",body:t});if(!r.ok)throw new Error("Failed to fetch order details");const o=await r.json();o.success&&o.data?.html?j({...e,detailsHtml:o.data.html}):j({...e,detailsHtml:""})}catch(e){console.error("Error loading order details:",e)}finally{T(!1)}})(e),children:(0,n.__)("View","edwiser-bridge")}),["pending","processing"].includes(e.status)&&"subscription"!==e.created_via&&!e.meta_data?.some((e=>"_subscription_renewal"===e.key))&&e.is_editable&&(0,c.jsx)("a",{href:`${window.wc_add_to_cart_params?.cart_url||"/"}?cancel_order=true&order=${e.order_key}&order_id=${e.id}&redirect=${encodeURIComponent(`${window.location.href}${window.location.href.includes("?")?"&":"?"}cancelled=true`)}&_wpnonce=${window.wc_params?.cancel_order_nonce||""}`,rel:"noopener noreferrer",children:(0,n.__)("Cancel","edwiser-bridge")})]})})]},e.id);var t}))})]})})),!P&&e.length>0&&!t&&(0,c.jsxs)("div",{className:"eb-orders__pagination",children:[(0,c.jsxs)("span",{className:"eb-orders__pagination-text",children:[(0,n.__)("Showing","edwiser-bridge")," ",Math.min((s-1)*a+1,r)," ",(0,n.__)("to","edwiser-bridge")," ",Math.min(s*a,r)," ",(0,n.__)("of","edwiser-bridge")," ",r," ",(0,n.__)("entries","edwiser-bridge")]}),(0,c.jsx)(ka,{total:o,value:s,onChange:l,size:"sm"})]}),P&&N&&(0,c.jsx)(Ba,{order:N,onClose:()=>{k(!1),j(null),T(!1)},isLoading:$})]})},Ya=function({pageTitle:e,hidePageTitle:t,enableEdwiserOrders:r,enableWooCommerceOrders:o,defaultTab:s}){const[a,l]=(0,i.useState)(s||"eb-orders");return(0,i.useEffect)((()=>{const e=new URLSearchParams(window.location.search).get("order-type"),t=[];r&&t.push("eb-orders"),o&&t.push("wc-orders"),e&&t.includes(e)?l(e):t.length>0&&!e&&l(t[0])}),[r,o]),(0,c.jsx)(J,{children:(0,c.jsxs)("div",{className:"eb-user-account__orders",children:[!t&&(0,c.jsx)("h3",{className:"eb-orders__title",children:e}),r&&o&&(0,c.jsxs)(pt,{value:a,onChange:e=>{l(e);const t=new URL(window.location);t.searchParams.set("order-type",e),window.history.replaceState({},"",t)},style:{marginTop:"3em"},children:[(0,c.jsxs)(pt.List,{children:[(0,c.jsx)(pt.Tab,{value:"eb-orders",children:(0,n.__)("Edwiser Orders","edwiser-bridge")}),(0,c.jsx)(pt.Tab,{value:"wc-orders",children:(0,n.__)("WooCommerce Orders","edwiser-bridge")})]}),(0,c.jsx)(pt.Panel,{value:"eb-orders",children:(0,c.jsx)(Wa,{})}),(0,c.jsx)(pt.Panel,{value:"wc-orders",children:(0,c.jsx)(Va,{})})]}),r&&!o&&(0,c.jsx)("div",{style:{marginTop:"3em"},children:(0,c.jsx)(Wa,{})}),o&&!r&&(0,c.jsx)("div",{style:{marginTop:"3em"},children:(0,c.jsx)(Va,{})})]})})},qa=JSON.parse('{"UU":"edwiser-bridge/orders"}');(0,o.registerBlockType)(qa.UU,{edit:function({attributes:e,setAttributes:t}){return(0,c.jsxs)("div",{...(0,s.useBlockProps)(),children:[(0,c.jsx)(s.InspectorControls,{children:(0,c.jsxs)(a.PanelBody,{title:(0,n.__)("Orders Settings","edwiser-bridge"),initialOpen:!0,children:[(0,c.jsx)(a.ToggleControl,{label:(0,n.__)("Hide Page Title","edwiser-bridge"),checked:e.hidePageTitle,onChange:e=>t({hidePageTitle:e})}),(0,c.jsx)("fieldset",{style:{marginTop:"8px"},children:(0,c.jsx)(a.TextControl,{label:(0,n.__)("Page Title","edwiser-bridge"),type:"text",value:e.pageTitle,onChange:e=>t({pageTitle:e})})}),(0,c.jsxs)("fieldset",{style:{marginTop:"16px"},children:[(0,c.jsx)("legend",{style:{fontSize:"13px",fontWeight:"bold",marginBottom:"8px",color:"#1e1e1e"},children:(0,n.__)("Order Sources","edwiser-bridge")}),(0,c.jsx)(a.ToggleControl,{label:(0,n.__)("Enable Edwiser Bridge Orders","edwiser-bridge"),checked:e.enableEdwiserOrders,onChange:e=>t({enableEdwiserOrders:e})}),(0,c.jsx)(a.ToggleControl,{label:(0,n.__)("Enable WooCommerce Orders","edwiser-bridge"),checked:e.enableWooCommerceOrders,onChange:e=>t({enableWooCommerceOrders:e})})]}),e.enableEdwiserOrders&&e.enableWooCommerceOrders&&(0,c.jsx)("fieldset",{style:{marginTop:"16px"},children:(0,c.jsx)(a.SelectControl,{label:(0,n.__)("Default Tab","edwiser-bridge"),value:e.defaultTab,onChange:e=>t({defaultTab:e}),options:[{value:"eb-orders",label:(0,n.__)("Edwiser Orders","edwiser-bridge")},{value:"wc-orders",label:(0,n.__)("WooCommerce Orders","edwiser-bridge")}]})})]})}),(0,c.jsx)(Ya,{...e})]})},save:function({attributes:e,clientId:t}){return(0,c.jsx)("div",{...s.useBlockProps.save(),children:(0,c.jsx)("div",{id:`eb-orders-${t}`,"data-page-title":e.pageTitle||"","data-hide-page-title":e.hidePageTitle,"data-enable-edwiser-orders":e.enableEdwiserOrders,"data-enable-woo-commerce-orders":e.enableWooCommerceOrders,"data-default-tab":e.defaultTab})})}})}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,s),r.exports}s.m=o,e=[],s.O=(t,r,o,n)=>{if(!r){var a=1/0;for(d=0;d<e.length;d++){for(var[r,o,n]=e[d],i=!0,l=0;l<r.length;l++)(!1&n||a>=n)&&Object.keys(s.O).every((e=>s.O[e](r[l])))?r.splice(l--,1):(i=!1,n<a&&(a=n));if(i){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[r,o,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var n=Object.create(null);s.r(n);var a={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(n,a),n},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={973:0,425:0};s.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,i,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(l)var d=l(s)}for(t&&t(r);c<a.length;c++)n=a[c],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},r=globalThis.webpackChunkedwiser_bridge_blocks=globalThis.webpackChunkedwiser_bridge_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=s.O(void 0,[425],(()=>s(350)));a=s.O(a)})();