| 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={338:(e,t,r)=>{var o=r(795);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot},795:e=>{e.exports=window.ReactDOM}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var s=Object.create(null);n.r(s);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(s,a),s},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};const s=window.React;var a=n.t(s,2),i=n(338);const l=window.ReactJSXRuntime;function c(e){return"auto"===e||"dark"===e||"light"===e}function d({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 c(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&&c(t.newValue)&&r(t.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const u=(0,s.createContext)(null);function p(){const e=(0,s.useContext)(u);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function m(){return p().getStyleNonce}function f(e){return Object.keys(e)}function h(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function y(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?h(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?h(o):o;const n=o.replace("px","");if(!Number.isNaN(Number(n))){const r=`${Number(n)/16}${e}`;return t?h(r):r}}return o}}const b=y("rem",{shouldScale:!0}),g=y("em");function v(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 w(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;const{r,g:o,b:n,a:s}=v(e),a=1-t,i=e=>Math.round(e*a);return`rgba(${i(r)}, ${i(o)}, ${i(n)}, ${s})`}function x(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}function _(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}=v(e),n=r/255,s=o/255;return.2126*_(t/255)+.7152*_(n)+.0722*_(s)}(e)>t}function C({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][x(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 N(e,t){const r=C({color:e||t.primaryColor,theme:t});return r.variable?`var(${r.variable})`:e}function j(e,t){const r={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg||t.defaultGradient.deg||0},o=N(r.from,t),n=N(r.to,t);return`linear-gradient(${r.deg}deg, ${o} 0%, ${n} 100%)`}function P(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}=v(e);return`rgba(${r}, ${o}, ${n}, ${t})`}const $=P,k="-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=C({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:`${b(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:`${b(1)} solid transparent`}:{background:e,hover:w(e,.1),color:t,border:`${b(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:`${b(1)} solid transparent`};const r=t.colors[s.color][s.shade];return{background:P(r,.1),hover:P(r,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${b(1)} solid transparent`}}return{background:P(e,.1),hover:P(e,.12),color:e,border:`${b(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:`${b(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:P(t.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${b(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:P(e,.05),color:e,border:`${b(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:`${b(1)} solid transparent`}:{background:"transparent",hover:P(t.colors[s.color][s.shade],.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${b(1)} solid transparent`}:{background:"transparent",hover:P(e,.12),color:e,border:`${b(1)} solid transparent`}:"transparent"===r?s.isThemeColor?void 0===s.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${b(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${b(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${b(1)} solid transparent`}:"white"===r?s.isThemeColor?void 0===s.shade?{background:"var(--mantine-color-white)",hover:w(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${b(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:w(t.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${b(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:w(t.white,.01),color:e,border:`${b(1)} solid transparent`}:"gradient"===r?{background:j(o,t),hover:j(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:`${b(1)} solid var(--mantine-color-default-border)`}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:k,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:k,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:b(34),lineHeight:"1.3"},h2:{fontSize:b(26),lineHeight:"1.35"},h3:{fontSize:b(22),lineHeight:"1.4"},h4:{fontSize:b(18),lineHeight:"1.45"},h5:{fontSize:b(16),lineHeight:"1.5"},h6:{fontSize:b(14),lineHeight:"1.5"}}},fontSizes:{xs:b(12),sm:b(14),md:b(16),lg:b(18),xl:b(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:b(2),sm:b(4),md:b(8),lg:b(16),xl:b(32)},spacing:{xs:b(10),sm:b(12),md:b(16),lg:b(20),xl:b(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), 0 ${b(1)} ${b(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(10)} ${b(15)} ${b(-5)}, rgba(0, 0, 0, 0.04) 0 ${b(7)} ${b(7)} ${b(-5)}`,md:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(20)} ${b(25)} ${b(-5)}, rgba(0, 0, 0, 0.04) 0 ${b(10)} ${b(10)} ${b(-5)}`,lg:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(28)} ${b(23)} ${b(-7)}, rgba(0, 0, 0, 0.04) 0 ${b(12)} ${b(12)} ${b(-7)}`,xl:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(36)} ${b(28)} ${b(-7)}, rgba(0, 0, 0, 0.04) 0 ${b(17)} ${b(17)} ${b(-7)}`},other:{},components:{}};function T(e){return e&&"object"==typeof e&&!Array.isArray(e)}function R(e,t){const r={...e},o=t;return T(e)&&T(t)&&Object.keys(t).forEach((t=>{T(o[t])?r[t]=t in e?R(r[t],o[t]):o[t]:r[t]=o[t]})),r}const O="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function D(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function A(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||D(e.primaryShade.dark)&&D(e.primaryShade.light)))throw new Error(O);if("number"==typeof e.primaryShade&&!D(e.primaryShade))throw new Error(O)}const z=(0,s.createContext)(null);function L(){const e=(0,s.useContext)(z);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 I({theme:e,children:t,inherit:r=!0}){const o=(0,s.useContext)(z)||E,n=(0,s.useMemo)((()=>function(e,t){if(!t)return A(e),e;const r=R(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(r.headings.fontFamily=t.fontFamily),A(r),r}(r?o:E,e)),[e,o,r]);return(0,l.jsx)(z.Provider,{value:n,children:t})}function M(){const e=L(),t=m(),r=f(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":g(n-.1)}) {.mantine-visible-from-${r} {display: none !important;}}@media (min-width: ${o?`${n}px`:g(n)}) {.mantine-hidden-from-${r} {display: none !important;}}`}),"");return(0,l.jsx)("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:r}})}function F(e){return Object.entries(e).map((([e,t])=>`${e}: ${t};`)).join("")}function W(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,t)=>`${t}{${e}}`),t)}function H({color:e,theme:t,autoContrast:r}){return("boolean"==typeof r?r:t.autoContrast)&&C({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function B(e,t){return H({color:e.colors[e.primaryColor][x(e,t)],theme:e,autoContrast:null})}function V({theme:e,color:t,colorScheme:r,name:o=t,withColorValues:n=!0}){if(!e.colors[t])return{};if("light"===r){const r=x(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=x(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 Y(e,t,r){f(t).forEach((o=>Object.assign(e,{[`--mantine-${r}-${o}`]:t[o]})))}I.displayName="@mantine/core/MantineThemeProvider";const q=e=>{const t=x(e,"light"),r=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:b(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":B(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":B(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)"}};Y(o.variables,e.breakpoints,"breakpoint"),Y(o.variables,e.spacing,"spacing"),Y(o.variables,e.fontSizes,"font-size"),Y(o.variables,e.lineHeights,"line-height"),Y(o.variables,e.shadows,"shadow"),Y(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach(((t,r)=>{o.variables[`--mantine-primary-color-${r}`]=`var(--mantine-color-${e.primaryColor}-${r})`})),f(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,V({theme:e,name:r.name,color:r.light,colorScheme:"light",withColorValues:!0})),void Object.assign(o.dark,V({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,V({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,V({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))}));const n=e.headings.sizes;return f(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=q(E);function U({cssVariablesSelector:e,deduplicateCssVariables:t}){const r=L(),o=m(),n=function({theme:e,generator:t}){const r=q(e),o=t?.(e);return o?R(r,o):r}({theme:r,generator:p().cssVariablesResolver}),s=":root"===e&&t,a=function(e,t){const r=F(e.variables),o=r?W(t,r):"",n=F(e.dark),s=F(e.light);return`${o}${n?W(":host"===t?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,n):""}${s?W(":host"===t?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,s):""}`}(s?function(e){const t={variables:{},light:{},dark:{}};return f(e.variables).forEach((r=>{X.variables[r]!==e.variables[r]&&(t.variables[r]=e.variables[r])})),f(e.light).forEach((r=>{X.light[r]!==e.light[r]&&(t.light[r]=e.light[r])})),f(e.dark).forEach((r=>{X.dark[r]!==e.dark[r]&&(t.dark[r]=e.dark[r])})),t}(n):n,e);return a?(0,l.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}U.displayName="@mantine/CssVariables";const K="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function G(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 Z({theme:e,children:t,getStyleNonce:r,withStaticClasses:o=!0,withGlobalClasses:n=!0,deduplicateCssVariables:a=!0,withCssVariables:i=!0,cssVariablesSelector:c=":root",classNamesPrefix:p="mantine",colorSchemeManager:m=d(),defaultColorScheme:f="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:b,stylesTransform:g}){const{colorScheme:v,setColorScheme:w,clearColorScheme:x}=function({manager:e,defaultColorScheme:t,getRootElement:r,forceColorScheme:o}){const n=(0,s.useRef)(null),[a,i]=(0,s.useState)((()=>e.get(t))),l=o||a,c=(0,s.useCallback)((t=>{o||(G(t,r),i(t),e.set(t))}),[e.set,l,o]),d=(0,s.useCallback)((()=>{i(t),G(t,r),e.clear()}),[e.clear,t]);return(0,s.useEffect)((()=>(e.subscribe(c),e.unsubscribe)),[e.subscribe,e.unsubscribe]),K((()=>{G(e.get(t),r)}),[]),(0,s.useEffect)((()=>{if(o)return G(o,r),()=>{};void 0===o&&G(a,r),"undefined"!=typeof window&&"matchMedia"in window&&(n.current=window.matchMedia("(prefers-color-scheme: dark)"));const e=e=>{"auto"===a&&G(e.matches?"dark":"light",r)};return n.current?.addEventListener("change",e),()=>n.current?.removeEventListener("change",e)}),[a,o]),{colorScheme:l,setColorScheme:c,clearColorScheme:d}}({defaultColorScheme:f,forceColorScheme:b,manager:m,getRootElement:h});return function({respectReducedMotion:e,getRootElement:t}){K((()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")}),[e])}({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:h}),(0,l.jsx)(u.Provider,{value:{colorScheme:v,setColorScheme:w,clearColorScheme:x,getRootElement:h,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:y,cssVariablesSelector:c,withStaticClasses:o,stylesTransform:g},children:(0,l.jsxs)(I,{theme:e,children:[i&&(0,l.jsx)(U,{cssVariablesSelector:c,deduplicateCssVariables:a}),n&&(0,l.jsx)(M,{}),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)}}(),Z.displayName="@mantine/core/MantineProvider";const J=s["useId".toString()]||(()=>{});function Q(e){const t=function(){const e=J();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[r,o]=(0,s.useState)(t);return K((()=>{o(function(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}())}),[]),"string"==typeof e?e:"undefined"==typeof window?t:r}function ee({value:e,defaultValue:t,finalValue:r,onChange:o=()=>{}}){const[n,a]=(0,s.useState)(void 0!==t?t:r);return void 0!==e?[e,o,!0]:[n,(e,...t)=>{a(e),o?.(e,...t)},!1]}function te(e,t){return r=>{if("string"!=typeof r||0===r.trim().length)throw new Error(t);return`${e}-${r}`}}function re(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 oe(e,t="size",r=!0){if(void 0!==e)return re(e)?r?b(e):e:`var(--${t}-${e})`}function ne(e){return oe(e,"mantine-spacing")}function se(e){return void 0===e?"var(--mantine-radius-default)":oe(e,"mantine-radius")}function ae(e){return oe(e,"mantine-font-size")}function ie(e){if(e)return oe(e,"mantine-shadow",!1)}function le(e,t){return"boolean"==typeof e?e:t.autoContrast}function ce(e){return Object.keys(e).reduce(((t,r)=>(void 0!==e[r]&&(t[r]=e[r]),t)),{})}function de(e,t,r){const o=L(),n=o.components[e]?.defaultProps;return{...t,..."function"==typeof n?n(o):n,...ce(r)}}function ue(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=ue(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const pe=function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ue(e))&&(o&&(o+=" "),o+=t);return o},me={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"},fe={};function he({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]=pe(t[e],r):t[e]=r}))})),t}((Array.isArray(t)?t:[t]).map((t=>"function"==typeof t?t(e,r,o):t||fe)))}function ye({selector:e,stylesCtx:t,theme:r,classNames:o,props:n}){return he({theme:r,classNames:o,props:n,stylesCtx:t})[e]}function be({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 pe(function({theme:e,options:t,unstyled:r}){return pe(t?.focusable&&!r&&(e.focusClassName||me[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=>he({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}),ye({selector:o,stylesCtx:u,theme:e,classNames:s,props:d}),ye({selector:o,stylesCtx:u,theme:e,classNames:f,props:d}),function({selector:e,stylesCtx:t,options:r,props:o,theme:n}){return he({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 ge({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 ve({theme:e,themeName:t,props:r,stylesCtx:o,selector:n}){return t.map((t=>ge({theme:e,styles:e.components[t]?.styles,props:r,stylesCtx:o})[n])).reduce(((e,t)=>({...e,...t})),{})}function we({style:e,theme:t}){return Array.isArray(e)?[...e].reduce(((e,r)=>({...e,...we({style:r,theme:t})})),{}):"function"==typeof e?e(t):null==e?{}:e}function xe({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],...ce(t[r])}})),e)),{})}([i?{}:t?.(r,o,n),...a.map((e=>r.components?.[e]?.vars?.(r,o,n))),e?.(r,o,n)])?.[s]}function _e({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&&ve({theme:e,themeName:t,props:n,stylesCtx:s,selector:r}),...!p&&ge({theme:e,styles:i,props:n,stylesCtx:s})[r],...!p&&ge({theme:e,styles:o?.styles,props:o?.props||n,stylesCtx:s})[r],...xe({theme:e,props:n,stylesCtx:s,vars:c,varsResolver:d,selector:r,themeName:t,headless:u}),...a===r?we({style:l,theme:e}):null,...we({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 m=L(),f=p().classNamesPrefix,h=p().withStaticClasses,y=p().headless,b=(Array.isArray(e)?e:[e]).filter((e=>e)),{withStylesTransform:g,getTransformedStyles:v}=function({props:e,stylesCtx:t,themeName:r}){const o=L(),n=(p().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:b});return(e,p)=>({className:be({theme:m,options:p,themeName:b,selector:e,classNamesPrefix:f,classNames:l,classes:t,unstyled:i,className:n,rootSelector:a,props:r,stylesCtx:o,withStaticClasses:h,headless:y,transformedStyles:v([p?.styles,c])}),style:_e({theme:m,themeName:b,selector:e,options:p,props:r,stylesCtx:o,rootSelector:a,styles:c,style:s,vars:d,varsResolver:u,headless:y,withStylesTransform:g})})}function Ce(e){return f(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 Ne({selector:e,styles:t,media:r,container:o}){const n=t?Ce(t):"",s=Array.isArray(r)?r.map((t=>`@media${t.query}{${e}{${Ce(t.styles)}}}`)):[],a=Array.isArray(o)?o.map((t=>`@container ${t.query}{${e}{${Ce(t.styles)}}}`)):[];return`${n?`${e}{${n}}`:""}${s.join("")}${a.join("")}`.trim()}function je(e){const t=m();return(0,l.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:Ne(e)}})}function Pe(e){return e.startsWith("data-")?e:`data-${e}`}function $e(e){return e?"string"==typeof e?{[Pe(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[Pe(r)]=t[r]),e}),{})):null;var t}function ke(e,t){return Array.isArray(e)?[...e].reduce(((e,r)=>({...e,...ke(r,t)})),{}):"function"==typeof e?e(t):null==e?{}:e}function Ee({theme:e,style:t,vars:r,styleProps:o}){return{...ke(t,e),...ke(r,e),...o}}function Te(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:y,pe:b,ps:g,bd:v,bg:w,c:x,opacity:_,ff:S,fz:C,fw:N,lts:j,ta:P,lh:$,fs:k,tt:E,td:T,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:X,display:U,flex:K,hiddenFrom:G,visibleFrom:Z,lightHidden:J,darkHidden:Q,sx:ee,...te}=e;return{styleProps:ce({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:y,pe:b,ps:g,bd:v,bg:w,c:x,opacity:_,ff:S,fz:C,fw:N,lts:j,ta:P,lh:$,fs:k,tt:E,td:T,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:X,display:U,flex:K,hiddenFrom:G,visibleFrom:Z,lightHidden:J,darkHidden:Q,sx:ee}),rest:te}}const Re={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 Oe(e,t){const r=C({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 De={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)"},Ae=["h1","h2","h3","h4","h5","h6"],ze=["h1","h2","h3","h4","h5","h6"],Le={color:Oe,textColor:function(e,t){const r=C({color:e,theme:t});return r.isThemeColor&&void 0===r.shade?`var(--mantine-color-${r.color}-text)`:Oe(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&Ae.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?b(e):e},spacing:function(e,t){if("number"==typeof e)return b(e);if("string"==typeof e){const r=e.replace("-","");if(!(r in t.spacing))return b(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?b(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&ze.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in De?De[e]:e},border:function(e,t){if("number"==typeof e)return b(e);if("string"==typeof e){const[r,o,...n]=e.split(" ").filter((e=>""!==e.trim()));let s=`${b(r)}`;return o&&(s+=` ${o}`),n.length>0&&(s+=` ${Oe(n.join(" "),t)}`),s.trim()}return e}};function Ie(e){return e.replace("(min-width: ","").replace("em)","")}function Me(e,t){return"object"==typeof e&&null!==e&&t in e?e[t]:e}const Fe=(0,s.forwardRef)((({component:e,style:t,__vars:r,className:o,variant:n,mod:a,size:i,hiddenFrom:c,visibleFrom:d,lightHidden:u,darkHidden:m,renderRoot:h,__size:y,...b},g)=>{const v=L(),w=e||"div",{styleProps:x,rest:_}=Te(b),S=p().stylesTransform?.sx,C=S?.()?.(x.sx),N=`__m__-${(0,s.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(Ie(e))-Number(Ie(t)))).map((t=>({query:t,styles:e[t]})))}}(f(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]=Le[s.type](i,r)})),o;o.hasResponsiveStyles=!0;const c=function(e){return"object"==typeof e&&null!==e?f(e).filter((e=>"base"!==e)):[]}(e[n]);return a.forEach((t=>{i&&(o.styles[t]=Le[s.type](i,r)),c.forEach((a=>{const i=`(min-width: ${r.breakpoints[a]})`;o.media[i]={...o.media[i],[t]:Le[s.type](Me(e[n],a),r)}}))})),o}),{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}({styleProps:x,theme:v,data:Re}),P={ref:g,style:Ee({theme:v,style:t,vars:r,styleProps:j.inlineStyles}),className:pe(o,C,{[N]:j.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":m,[`mantine-hidden-from-${c}`]:c,[`mantine-visible-from-${d}`]:d}),"data-variant":n,"data-size":re(i)?void 0:i||void 0,size:y,...$e(a),..._};return(0,l.jsxs)(l.Fragment,{children:[j.hasResponsiveStyles&&(0,l.jsx)(je,{selector:`.${N}`,styles:j.styles,media:j.media}),"function"==typeof h?h(P):(0,l.jsx)(w,{...P})]})}));Fe.displayName="@mantine/core/Box";const We=Fe;function He(e){return e}function Be(e){const t=(0,s.forwardRef)(e);return t.extend=He,t.withProps=e=>{const r=(0,s.forwardRef)(((r,o)=>(0,l.jsx)(t,{...e,...r,ref:o})));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function Ve(e){const t=(0,s.createContext)(null);return[({children:e,value:r})=>(0,l.jsx)(t.Provider,{value:r,children:e}),()=>{const r=(0,s.useContext)(t);if(null===r)throw new Error(e);return r}]}const[Ye,qe]=Ve("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 Ue={},Ke=Be(((e,t)=>{const r=de("TabsList",Ue,e),{children:o,className:n,grow:s,justify:a,classNames:i,styles:c,style:d,mod:u,...p}=r,m=qe();return(0,l.jsx)(We,{...p,...m.getStyles("list",{className:n,style:d,classNames:i,styles:c,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})}));Ke.classes=Xe,Ke.displayName="@mantine/core/TabsList";const Ge={},Ze=Be(((e,t)=>{const r=de("TabsPanel",Ge,e),{children:o,className:n,value:s,classNames:a,styles:i,style:c,mod:d,keepMounted:u,...p}=r,m=qe(),f=m.value===s,h=m.keepMounted||u||f?o:null;return(0,l.jsx)(We,{...p,...m.getStyles("panel",{className:n,classNames:a,styles:i,style:[c,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 Je(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function Qe({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(Je(i.currentTarget,e)?.querySelectorAll(t)||[]).filter((t=>function(e,t,r){return Je(e,r)===Je(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}}}}Ze.classes=Xe,Ze.displayName="@mantine/core/TabsPanel";const et=(0,s.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function tt(){return(0,s.useContext)(et)}function rt(e){const t=(0,s.forwardRef)(e);return t.withProps=e=>{const r=(0,s.forwardRef)(((r,o)=>(0,l.jsx)(t,{...e,...r,ref:o})));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=He,t}var ot={root:"m_87cf2631"};const nt={__staticSelector:"UnstyledButton"},st=rt(((e,t)=>{const r=de("UnstyledButton",nt,e),{className:o,component:n="button",__staticSelector:s,unstyled:a,classNames:i,styles:c,style:d,...u}=r,p=Se({name:s,props:r,classes:ot,className:o,style:d,classNames:i,styles:c,unstyled:a});return(0,l.jsx)(We,{...p("root",{focusable:!0}),component:n,ref:t,type:"button"===n?"button":void 0,...u})}));st.classes=ot,st.displayName="@mantine/core/UnstyledButton";const at={},it=Be(((e,t)=>{const r=de("TabsTab",at,e),{className:o,children:n,rightSection:s,leftSection:a,value:i,onClick:c,onKeyDown:d,disabled:u,color:p,style:m,classNames:f,styles:h,vars:y,mod:b,tabIndex:g,...v}=r,w=L(),{dir:x}=tt(),_=qe(),S=i===_.value,C={classNames:f,styles:h,props:r};return(0,l.jsxs)(st,{...v,..._.getStyles("tab",{className:o,style:m,variant:_.variant,...C}),disabled:u,unstyled:_.unstyled,variant:_.variant,mod:[{active:S,disabled:u,orientation:_.orientation,inverted:_.inverted,placement:"vertical"===_.orientation&&_.placement},b],ref:t,role:"tab",id:_.getTabId(i),"aria-selected":S,tabIndex:void 0!==g?g:S||null===_.value?0:-1,"aria-controls":_.getPanelId(i),onClick:e=>{_.onChange(_.allowTabDeactivation&&i===_.value?null:i),c?.(e)},__vars:{"--tabs-color":p?N(p,w):void 0},onKeyDown:Qe({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:_.activateTabWithKeyboard,loop:_.loop,orientation:_.orientation||"horizontal",dir:x,onKeyDown:d}),children:[a&&(0,l.jsx)("span",{..._.getStyles("tabSection",C),"data-position":"left",children:a}),n&&(0,l.jsx)("span",{..._.getStyles("tabLabel",C),children:n}),s&&(0,l.jsx)("span",{..._.getStyles("tabSection",C),"data-position":"right",children:s})]})}));it.classes=Xe,it.displayName="@mantine/core/TabsTab";const lt="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",ct={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},dt=(e,{radius:t,color:r,autoContrast:o})=>({root:{"--tabs-radius":se(t),"--tabs-color":N(r,e),"--tabs-text-color":le(o,e)?H({color:r,theme:e,autoContrast:o}):void 0}}),ut=Be(((e,t)=>{const r=de("Tabs",ct,e),{defaultValue:o,value:n,onChange:s,orientation:a,children:i,loop:c,id:d,activateTabWithKeyboard:u,allowTabDeactivation:p,variant:m,color:f,radius:h,inverted:y,placement:b,keepMounted:g,classNames:v,styles:w,unstyled:x,className:_,style:S,vars:C,autoContrast:N,mod:j,...P}=r,$=Q(d),[k,E]=ee({value:n,defaultValue:o,finalValue:null,onChange:s}),T=Se({name:"Tabs",props:r,classes:Xe,className:_,style:S,classNames:v,styles:w,unstyled:x,vars:C,varsResolver:dt});return(0,l.jsx)(Ye,{value:{placement:b,value:k,orientation:a,id:$,loop:c,activateTabWithKeyboard:u,getTabId:te(`${$}-tab`,lt),getPanelId:te(`${$}-panel`,lt),onChange:E,allowTabDeactivation:p,variant:m,color:f,radius:h,inverted:y,keepMounted:g,unstyled:x,getStyles:T},children:(0,l.jsx)(We,{ref:t,id:$,variant:m,mod:[{orientation:a,inverted:"horizontal"===a&&y,placement:"vertical"===a&&b},j],...T("root"),...P,children:i})})}));function pt({classNames:e,styles:t,props:r,stylesCtx:o}){const n=L();return{resolvedClassNames:he({theme:n,classNames:e,props:r,stylesCtx:o||void 0}),resolvedStyles:ge({theme:n,styles:t,props:r,stylesCtx:o||void 0})}}function mt(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=>mt(e)))}:e}function ft(e){return e?e.map((e=>mt(e))):[]}function ht(e){return e.reduce(((e,t)=>"group"in t?{...e,...ht(t.items)}:(e[t.value]=t,e)),{})}ut.classes=Xe,ut.displayName="@mantine/core/Tabs",ut.Tab=it,ut.Panel=Ze,ut.List=Ke;const yt=["mousedown","touchstart"],bt={app:100,modal:200,popover:300,overlay:400,max:9999};function gt(e){return bt[e]}function vt(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 wt={root:"m_9814e45f"};const xt={zIndex:gt("modal")},_t=(e,{gradient:t,color:r,backgroundOpacity:o,blur:n,radius:s,zIndex:a})=>({root:{"--overlay-bg":t||(void 0!==r||void 0!==o)&&P(r||"#000",o??.6)||void 0,"--overlay-filter":n?`blur(${b(n)})`:void 0,"--overlay-radius":void 0===s?void 0:se(s),"--overlay-z-index":a?.toString()}}),St=rt(((e,t)=>{const r=de("Overlay",xt,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,fixed:d,center:u,children:p,radius:m,zIndex:f,gradient:h,blur:y,color:b,backgroundOpacity:g,mod:v,...w}=r,x=Se({name:"Overlay",props:r,classes:wt,className:n,style:s,classNames:o,styles:a,unstyled:i,vars:c,varsResolver:_t});return(0,l.jsx)(We,{ref:t,...x("root"),mod:[{center:u,fixed:d},v],...w,children:p})}));St.classes=wt,St.displayName="@mantine/core/Overlay";var Ct=n(795);function Nt(e,t){if("function"==typeof e)return e(t);"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}function jt(...e){return(0,s.useCallback)(function(...e){const t=new Map;return r=>{if(e.forEach((e=>{const o=Nt(e,r);o&&t.set(e,o)})),t.size>0)return()=>{e.forEach((e=>{const r=t.get(e);r?r():Nt(e,null)})),t.clear()}}}(...e),e)}const Pt={},$t=(0,s.forwardRef)(((e,t)=>{const{children:r,target:o,...n}=de("Portal",Pt,e),[a,i]=(0,s.useState)(!1),c=(0,s.useRef)(null);return K((()=>(i(!0),c.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),Nt(t,c.current),!o&&c.current&&document.body.appendChild(c.current),()=>{!o&&c.current&&document.body.removeChild(c.current)})),[o]),a&&c.current?(0,Ct.createPortal)((0,l.jsx)(l.Fragment,{children:r}),c.current):null}));function kt({withinPortal:e=!0,children:t,...r}){return e?(0,l.jsx)($t,{...r,children:t}):(0,l.jsx)(l.Fragment,{children:t})}$t.displayName="@mantine/core/Portal",kt.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"}),Tt={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"}}},Rt={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Ot({transition:e,state:t,duration:r,timingFunction:o}){const n={transitionDuration:`${r}ms`,transitionTimingFunction:o};return"string"==typeof e?e in Tt?{transitionProperty:Tt[e].transitionProperty,...n,...Tt[e].common,...Tt[e][Rt[t]]}:{}:{transitionProperty:e.transitionProperty,...n,...e.common,...e[Rt[t]]}}function Dt(e,t){const r=(0,s.useRef)(!1);(0,s.useEffect)((()=>()=>{r.current=!1}),[]),(0,s.useEffect)((()=>{if(r.current)return e();r.current=!0}),t)}function At({duration:e,exitDuration:t,timingFunction:r,mounted:o,onEnter:n,onExit:a,onEntered:i,onExited:l,enterDelay:c,exitDelay:d}){const u=L(),p=function(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[o,n]=(0,s.useState)(r?t:function(e){return"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e)),a=(0,s.useRef)(null);return(0,s.useEffect)((()=>{if("matchMedia"in window)return a.current=window.matchMedia(e),n(a.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(r){return e.addListener(t),()=>e.removeListener(t)}}(a.current,(e=>n(e.matches)))}),[e]),o}("(prefers-reduced-motion: reduce)",undefined,undefined);const m=!!u.respectReducedMotion&&p,[f,h]=(0,s.useState)(m?0:e),[y,b]=(0,s.useState)(o?"entered":"exited"),g=(0,s.useRef)(-1),v=(0,s.useRef)(-1),w=(0,s.useRef)(-1),x=r=>{const o=r?n:a,s=r?i:l;window.clearTimeout(g.current);const c=m?0:r?e:t;h(c),0===c?("function"==typeof o&&o(),"function"==typeof s&&s(),b(r?"entered":"exited")):w.current=requestAnimationFrame((()=>{Ct.flushSync((()=>{b(r?"pre-entering":"pre-exiting")})),w.current=requestAnimationFrame((()=>{"function"==typeof o&&o(),b(r?"entering":"exiting"),g.current=window.setTimeout((()=>{"function"==typeof s&&s(),b(r?"entered":"exited")}),c)}))}))};return Dt((()=>{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,s.useEffect)((()=>()=>{window.clearTimeout(g.current),cancelAnimationFrame(w.current)}),[]),{transitionDuration:f,transitionStatus:y,transitionTimingFunction:r||"ease"}}function zt({keepMounted:e,transition:t="fade",duration:r=250,exitDuration:o=r,mounted:n,children:s,timingFunction:a="ease",onExit:i,onEntered:c,onEnter:d,onExited:u,enterDelay:p,exitDelay:m}){const{transitionDuration:f,transitionStatus:h,transitionTimingFunction:y}=At({mounted:n,exitDuration:o,duration:r,timingFunction:a,onExit:i,onEntered:c,onEnter:d,onExited:u,enterDelay:p,exitDelay:m});return 0===f?n?(0,l.jsx)(l.Fragment,{children:s({})}):e?s({display:"none"}):null:"exited"===h?e?s({display:"none"}):null:(0,l.jsx)(l.Fragment,{children:s(Ot({transition:t,duration:f,state:h,timingFunction:y}))})}zt.displayName="@mantine/core/Transition";const[Lt,It]=Ve("Popover component was not found in the tree"),Mt=()=>{};function Ft(e,t={active:!0}){return"function"==typeof e&&t.active?r=>{"Escape"===r.key&&(e(r),t.onTrigger?.())}:t.onKeyDown||Mt}function Wt(e,t,r,o){return"center"===e||"center"===o?{top:t}:"end"===e?{bottom:r}:"start"===e?{top:r}:{}}function Ht(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 Bt={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Vt({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",[Bt[l]]:o},u=-t/2;return"left"===l?{...d,...Wt(c,a,r,n),right:u,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===l?{...d,...Wt(c,a,r,n),left:u,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===l?{...d,...Ht(c,s,r,n,i),bottom:u,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===l?{...d,...Ht(c,s,r,n,i),top:u,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Yt=(0,s.forwardRef)((({position:e,arrowSize:t,arrowOffset:r,arrowRadius:o,arrowPosition:n,visible:s,arrowX:a,arrowY:i,style:c,...d},u)=>{const{dir:p}=tt();return s?(0,l.jsx)("div",{...d,ref:u,style:{...c,...Vt({position:e,arrowSize:t,arrowOffset:r,arrowRadius:o,arrowPosition:n,dir:p,arrowX:a,arrowY:i})}}):null}));Yt.displayName="@mantine/core/FloatingArrow";const qt=/input|select|textarea|button|object/,Xt="a, input, select, textarea, button, object, [tabindex]";function Ut(e){return"none"===e.style.display}function Kt(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function Gt(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(Kt(e));return(qt.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(Ut(t))return!1;t=t.parentNode}return!0}(e)}function Zt(e){const t=Kt(e);return(Number.isNaN(t)||t>=0)&&Gt(e)}function Jt(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==s.Fragment}var Qt={root:"m_515a97f8"};const er={},tr=Be(((e,t)=>{const r=de("VisuallyHidden",er,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,...d}=r,u=Se({name:"VisuallyHidden",classes:Qt,props:r,className:n,style:s,classNames:o,styles:a,unstyled:i});return(0,l.jsx)(We,{component:"span",ref:t,...u("root"),...d})}));function rr({children:e,active:t=!0,refProp:r="ref",innerRef:o}){const n=function(e=!0){const t=(0,s.useRef)(null),r=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const r=Array.from(e.querySelectorAll(Xt));t=r.find(Zt)||r.find(Gt)||null,!t&&Gt(e)&&(t=e)}t&&t.focus({preventScroll:!0})},o=(0,s.useCallback)((o=>{e&&null!==o&&t.current!==o&&(o?(setTimeout((()=>{o.getRootNode()&&r(o)})),t.current=o):t.current=null)}),[e]);return(0,s.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(Zt));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),a=jt(n,o);return Jt(e)?(0,s.cloneElement)(e,{[r]:a}):e}function or(e){return(0,l.jsx)(tr,{tabIndex:-1,"data-autofocus":!0,...e})}tr.classes=Qt,tr.displayName="@mantine/core/VisuallyHidden",rr.displayName="@mantine/core/FocusTrap",or.displayName="@mantine/core/FocusTrapInitialFocus",rr.InitialFocus=or;var nr={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const sr={},ar=Be(((e,t)=>{const r=de("PopoverDropdown",sr,e),{className:o,style:n,vars:a,children:i,onKeyDownCapture:c,variant:d,classNames:u,styles:p,...m}=r,f=It(),h=function({opened:e,shouldReturnFocus:t=!0}){const r=(0,s.useRef)(null),o=()=>{r.current&&"focus"in r.current&&"function"==typeof r.current.focus&&r.current?.focus({preventScroll:!0})};return Dt((()=>{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}),y=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},g=jt(t,f.floating);return f.disabled?null:(0,l.jsx)(kt,{...f.portalProps,withinPortal:f.withinPortal,children:(0,l.jsx)(zt,{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,l.jsx)(rr,{active:f.trapFocus&&f.opened,innerRef:g,children:(0,l.jsxs)(We,{...y,...m,variant:d,onKeyDownCapture:Ft(f.onClose,{active:f.closeOnEscape,onTrigger:h,onKeyDown:c}),"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:b(f.width)},f.resolvedStyles.dropdown,p?.dropdown,n]}),children:[i,(0,l.jsx)(Yt,{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 ir(e){const t=s.version;return"string"!=typeof s.version||t.startsWith("18.")?e?.ref:e?.props?.ref}ar.classes=nr,ar.displayName="@mantine/core/PopoverDropdown";const lr={refProp:"ref",popupType:"dialog"},cr=Be(((e,t)=>{const{children:r,refProp:o,popupType:n,...a}=de("PopoverTarget",lr,e);if(!Jt(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 i=a,l=It(),c=jt(l.reference,ir(r),t),d=l.withRoles?{"aria-haspopup":n,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return(0,s.cloneElement)(r,{...i,...d,...l.targetProps,className:pe(l.targetProps.className,i.className,r.props.className),[o]:c,...l.controlled?null:{onClick:l.onToggle}})}));cr.displayName="@mantine/core/PopoverTarget";const dr=Math.min,ur=Math.max,pr=Math.round,mr=Math.floor,fr=e=>({x:e,y:e}),hr={left:"right",right:"left",bottom:"top",top:"bottom"},yr={start:"end",end:"start"};function br(e,t,r){return ur(e,dr(t,r))}function gr(e,t){return"function"==typeof e?e(t):e}function vr(e){return e.split("-")[0]}function wr(e){return e.split("-")[1]}function xr(e){return"x"===e?"y":"x"}function _r(e){return"y"===e?"height":"width"}function Sr(e){return["top","bottom"].includes(vr(e))?"y":"x"}function Cr(e){return xr(Sr(e))}function Nr(e){return e.replace(/start|end/g,(e=>yr[e]))}function jr(e){return e.replace(/left|right|bottom|top/g,(e=>hr[e]))}function Pr(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 kr(e,t,r){let{reference:o,floating:n}=e;const s=Sr(t),a=Cr(t),i=_r(a),l=vr(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(wr(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}=gr(t,e),f=Pr(m),h=i[p?"floating"===u?"reference":"floating":u],y=$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})),b="floating"===u?{x:o,y:n,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==s.getOffsetParent?void 0:s.getOffsetParent(i.floating)),v=await(null==s.isElement?void 0:s.isElement(g))&&await(null==s.getScale?void 0:s.getScale(g))||{x:1,y:1},w=$r(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:g,strategy:l}):b);return{top:(y.top-w.top+f.top)/v.y,bottom:(w.bottom-y.bottom+f.bottom)/v.y,left:(y.left-w.left+f.left)/v.x,right:(w.right-y.right+f.right)/v.x}}function Tr(e){const t=dr(...e.map((e=>e.left))),r=dr(...e.map((e=>e.top)));return{x:t,y:r,width:ur(...e.map((e=>e.right)))-t,height:ur(...e.map((e=>e.bottom)))-r}}function Rr(){return"undefined"!=typeof window}function Or(e){return zr(e)?(e.nodeName||"").toLowerCase():"#document"}function Dr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ar(e){var t;return null==(t=(zr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zr(e){return!!Rr()&&(e instanceof Node||e instanceof Dr(e).Node)}function Lr(e){return!!Rr()&&(e instanceof Element||e instanceof Dr(e).Element)}function Ir(e){return!!Rr()&&(e instanceof HTMLElement||e instanceof Dr(e).HTMLElement)}function Mr(e){return!(!Rr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Dr(e).ShadowRoot)}function Fr(e){const{overflow:t,overflowX:r,overflowY:o,display:n}=qr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(n)}function Wr(e){return["table","td","th"].includes(Or(e))}function Hr(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Br(e){const t=Vr(),r=Lr(e)?qr(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 Vr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yr(e){return["html","body","#document"].includes(Or(e))}function qr(e){return Dr(e).getComputedStyle(e)}function Xr(e){return Lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ur(e){if("html"===Or(e))return e;const t=e.assignedSlot||e.parentNode||Mr(e)&&e.host||Ar(e);return Mr(t)?t.host:t}function Kr(e){const t=Ur(e);return Yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ir(t)&&Fr(t)?t:Kr(t)}function Gr(e,t,r){var o;void 0===t&&(t=[]),void 0===r&&(r=!0);const n=Kr(e),s=n===(null==(o=e.ownerDocument)?void 0:o.body),a=Dr(n);if(s){const e=Zr(a);return t.concat(a,a.visualViewport||[],Fr(n)?n:[],e&&r?Gr(e):[])}return t.concat(n,Gr(n,[],r))}function Zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jr(e){const t=qr(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=Ir(e),s=n?e.offsetWidth:r,a=n?e.offsetHeight:o,i=pr(r)!==s||pr(o)!==a;return i&&(r=s,o=a),{width:r,height:o,$:i}}function Qr(e){return Lr(e)?e:e.contextElement}function eo(e){const t=Qr(e);if(!Ir(t))return fr(1);const r=t.getBoundingClientRect(),{width:o,height:n,$:s}=Jr(t);let a=(s?pr(r.width):r.width)/o,i=(s?pr(r.height):r.height)/n;return a&&Number.isFinite(a)||(a=1),i&&Number.isFinite(i)||(i=1),{x:a,y:i}}const to=fr(0);function ro(e){const t=Dr(e);return Vr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:to}function oo(e,t,r,o){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=e.getBoundingClientRect(),s=Qr(e);let a=fr(1);t&&(o?Lr(o)&&(a=eo(o)):a=eo(e));const i=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Dr(e))&&t}(s,r,o)?ro(s):fr(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=Dr(s),t=o&&Lr(o)?Dr(o):o;let r=e,n=Zr(r);for(;n&&o&&t!==r;){const e=eo(n),t=n.getBoundingClientRect(),o=qr(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=Dr(n),n=Zr(r)}}return $r({width:d,height:u,x:l,y:c})}function no(e,t){const r=Xr(e).scrollLeft;return t?t.left+r:oo(Ar(e)).left+r}function so(e,t,r){void 0===r&&(r=!1);const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-(r?0:no(e,o)),y:o.top+t.scrollTop}}function ao(e,t,r){let o;if("viewport"===t)o=function(e,t){const r=Dr(e),o=Ar(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=Vr();(!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=Ar(e),r=Xr(e),o=e.ownerDocument.body,n=ur(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ur(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+no(e);const i=-r.scrollTop;return"rtl"===qr(o).direction&&(a+=ur(t.clientWidth,o.clientWidth)-n),{width:n,height:s,x:a,y:i}}(Ar(e));else if(Lr(t))o=function(e,t){const r=oo(e,!0,"fixed"===t),o=r.top+e.clientTop,n=r.left+e.clientLeft,s=Ir(e)?eo(e):fr(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=ro(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return $r(o)}function io(e,t){const r=Ur(e);return!(r===t||!Lr(r)||Yr(r))&&("fixed"===qr(r).position||io(r,t))}function lo(e,t,r){const o=Ir(t),n=Ar(t),s="fixed"===r,a=oo(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=fr(0);if(o||!o&&!s)if(("body"!==Or(t)||Fr(n))&&(i=Xr(t)),o){const e=oo(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&(l.x=no(n));const c=!n||o||s?fr(0):so(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 co(e){return"static"===qr(e).position}function uo(e,t){if(!Ir(e)||"fixed"===qr(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Ar(e)===r&&(r=r.ownerDocument.body),r}function po(e,t){const r=Dr(e);if(Hr(e))return r;if(!Ir(e)){let t=Ur(e);for(;t&&!Yr(t);){if(Lr(t)&&!co(t))return t;t=Ur(t)}return r}let o=uo(e,t);for(;o&&Wr(o)&&co(o);)o=uo(o,t);return o&&Yr(o)&&co(o)&&!Br(o)?r:o||function(e){let t=Ur(e);for(;Ir(t)&&!Yr(t);){if(Br(t))return t;if(Hr(t))return null;t=Ur(t)}return null}(e)||r}const mo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e;const s="fixed"===n,a=Ar(o),i=!!t&&Hr(t.floating);if(o===a||i&&s)return r;let l={scrollLeft:0,scrollTop:0},c=fr(1);const d=fr(0),u=Ir(o);if((u||!u&&!s)&&(("body"!==Or(o)||Fr(a))&&(l=Xr(o)),Ir(o))){const e=oo(o);c=eo(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const p=!a||u||s?fr(0):so(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:Ar,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e;const s=[..."clippingAncestors"===r?Hr(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let o=Gr(e,[],!1).filter((e=>Lr(e)&&"body"!==Or(e))),n=null;const s="fixed"===qr(e).position;let a=s?Ur(e):e;for(;Lr(a)&&!Yr(a);){const t=qr(a),r=Br(a);r||"fixed"!==t.position||(n=null),(s?!r&&!n:!r&&"static"===t.position&&n&&["absolute","fixed"].includes(n.position)||Fr(a)&&!r&&io(e,a))?o=o.filter((e=>e!==a)):n=t,a=Ur(a)}return t.set(e,o),o}(t,this._c):[].concat(r),o],a=s[0],i=s.reduce(((e,r)=>{const o=ao(t,r,n);return e.top=ur(o.top,e.top),e.right=dr(o.right,e.right),e.bottom=dr(o.bottom,e.bottom),e.left=ur(o.left,e.left),e}),ao(t,a,n));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:po,getElementRects:async function(e){const t=this.getOffsetParent||po,r=this.getDimensions,o=await r(e.floating);return{reference:lo(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}=Jr(e);return{width:t,height:r}},getScale:eo,isElement:Lr,isRTL:function(e){return"rtl"===qr(e).direction}};function fo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const ho=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=vr(r),i=wr(r),l="y"===Sr(r),c=["left","top"].includes(a)?-1:1,d=s&&l?-1:1,u=gr(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}}}}},yo=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}=gr(e,t),c={x:r,y:o},d=await Er(t,l),u=Sr(vr(n)),p=xr(u);let m=c[p],f=c[u];if(s){const e="y"===p?"bottom":"right";m=br(m+d["y"===p?"top":"left"],m,m-d[e])}if(a){const e="y"===u?"bottom":"right";f=br(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}}}}}},bo=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,...y}=gr(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};const b=vr(n),g=Sr(i),v=vr(i)===i,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(v||!h?[jr(i)]:function(e){const t=jr(e);return[Nr(e),t,Nr(t)]}(i)),_="none"!==f;!p&&_&&x.push(...function(e,t,r,o){const n=wr(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[]}}(vr(e),"start"===r,o);return n&&(s=s.map((e=>e+"-"+n)),t&&(s=s.concat(s.map(Nr)))),s}(i,h,f,w));const S=[i,...x],C=await Er(t,y),N=[];let j=(null==(o=s.flip)?void 0:o.overflows)||[];if(d&&N.push(C[b]),u){const e=function(e,t,r){void 0===r&&(r=!1);const o=wr(e),n=Cr(e),s=_r(n);let a="x"===n?o===(r?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=jr(a)),[a,jr(a)]}(n,a,w);N.push(C[e[0]],C[e[1]])}if(j=[...j,{placement:n,overflows:N}],!N.every((e=>e<=0))){var P,$;const e=((null==(P=s.flip)?void 0:P.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let r=null==($=j.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:$.placement;if(!r)switch(m){case"bestFit":{var k;const e=null==(k=j.filter((e=>{if(_){const t=Sr(e.placement);return t===g||"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:k[0];e&&(r=e);break}case"initialPlacement":r=i}if(n!==r)return{reset:{placement:r}}}return{}}}},go=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}=gr(e,t),d=await Er(t,c),u=vr(n),p=wr(n),m="y"===Sr(n),{width:f,height:h}=s.floating;let y,b;"top"===u||"bottom"===u?(y=u,b=p===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=u,y="end"===p?"top":"bottom");const g=h-d.top-d.bottom,v=f-d.left-d.right,w=dr(h-d[y],g),x=dr(f-d[b],v),_=!t.middlewareData.shift;let S=w,C=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(C=v),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(S=g),_&&!p){const e=ur(d.left,0),t=ur(d.right,0),r=ur(d.top,0),o=ur(d.bottom,0);m?C=f-2*(0!==e||0!==t?e+t:ur(d.left,d.right)):S=h-2*(0!==r||0!==o?r+o:ur(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:S});const N=await a.getDimensions(i.floating);return f!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}},vo=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}=gr(e,t)||{};if(null==c)return{};const u=Pr(d),p={x:r,y:o},m=Cr(n),f=_r(m),h=await a.getDimensions(c),y="y"===m,b=y?"top":"left",g=y?"bottom":"right",v=y?"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 S=_?_[v]:0;S&&await(null==a.isElement?void 0:a.isElement(_))||(S=i.floating[v]||s.floating[f]);const C=w/2-x/2,N=S/2-h[f]/2-1,j=dr(u[b],N),P=dr(u[g],N),$=j,k=S-h[f]-P,E=S/2-h[f]/2+C,T=br($,E,k),R=!l.arrow&&null!=wr(n)&&E!==T&&s.reference[f]/2-(E<$?j:P)-h[f]/2<0,O=R?E<$?E-$:E-k:0;return{[m]:p[m]+O,data:{[m]:T,centerOffset:E-T-O,...R&&{alignmentOffset:O}},reset:R}}}),wo=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}=gr(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(Tr(e))))}(d),p=$r(Tr(d)),m=Pr(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"===vr(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"===vr(r),t=ur(...u.map((e=>e.right))),o=dr(...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}}:{}}}},xo=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}=gr(e,t),d={x:r,y:o},u=Sr(n),p=xr(u);let m=d[p],f=d[u];const h=gr(i,t),y="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]+y.mainAxis,r=s.reference[p]+s.reference[e]-y.mainAxis;m<t?m=t:m>r&&(m=r)}if(c){var b,g;const e="y"===p?"width":"height",t=["top","left"].includes(vr(n)),r=s.reference[u]-s.floating[e]+(t&&(null==(b=a.offset)?void 0:b[u])||0)+(t?0:y.crossAxis),o=s.reference[u]+s.reference[e]+(t?0:(null==(g=a.offset)?void 0:g[u])||0)-(t?y.crossAxis:0);f<r?f=r:f>o&&(f=o)}return{[p]:m,[u]:f}}}},_o=(e,t,r)=>{const o=new Map,n={platform:mo,...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}=kr(c,o,l),p=o,m={},f=0;for(let r=0;r<i.length;r++){const{name:s,fn:h}=i[r],{x:y,y:b,data:g,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!=y?y:d,u=null!=b?b:u,m={...m,[s]:{...m[s],...g}},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}=kr(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?s.useLayoutEffect:s.useEffect;function Co(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(!Co(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||Co(e[r],t[r])))return!1}return!0}return e!=e&&t!=t}function No(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jo(e,t){const r=No(e);return Math.round(t*r)/r}function Po(e){const t=s.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?vo({element:r.current,padding:o}).fn(t):{}:r?vo({element:r,padding:o}).fn(t):{};var n}}),ko=(e,t)=>({...ho(e),options:[e,t]}),Eo=(e,t)=>({...xo(e),options:[e,t]}),To=(e,t)=>({...bo(e),options:[e,t]}),Ro=(e,t)=>({...wo(e),options:[e,t]}),Oo={...a},Do=Oo.useInsertionEffect||(e=>e());var Ao="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;let zo=!1,Lo=0;const Io=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Lo++,Mo=Oo.useId||function(){const[e,t]=s.useState((()=>zo?Io():void 0));return Ao((()=>{null==e&&t(Io())}),[]),s.useEffect((()=>{zo=!0}),[]),e};const Fo=s.createContext(null),Wo=s.createContext(null);function Ho(e){void 0===e&&(e={});const{nodeId:t}=e,r=function(e){const{open:t=!1,onOpenChange:r,elements:o}=e,n=Mo(),a=s.useRef({}),[i]=s.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=s.useContext(Fo))?void 0:f.id)||null),[c,d]=s.useState(o.reference),u=function(e){const t=s.useRef((()=>{}));return Do((()=>{t.current=e})),s.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)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:o,nested:l}),null==r||r(e,t,o)})),p=s.useMemo((()=>({setPositionReference:d})),[]),m=s.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);var f;return s.useMemo((()=>({dataRef:a,open:t,onOpenChange:u,elements:m,events:i,floatingId:n,refs:p})),[t,u,m,i,n,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,n=o.elements,[a,i]=s.useState(null),[l,c]=s.useState(null),d=(null==n?void 0:n.domReference)||a,u=s.useRef(null),p=s.useContext(Wo);Ao((()=>{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:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,p]=s.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=s.useState(o);Co(m,o)||f(o);const[h,y]=s.useState(null),[b,g]=s.useState(null),v=s.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),w=s.useCallback((e=>{e!==C.current&&(C.current=e,g(e))}),[]),x=a||h,_=i||b,S=s.useRef(null),C=s.useRef(null),N=s.useRef(u),j=null!=c,P=Po(c),$=Po(n),k=Po(d),E=s.useCallback((()=>{if(!S.current||!C.current)return;const e={placement:t,strategy:r,middleware:m};$.current&&(e.platform=$.current),_o(S.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==k.current};T.current&&!Co(N.current,t)&&(N.current=t,Ct.flushSync((()=>{p(t)})))}))}),[m,t,r,$,k]);So((()=>{!1===d&&N.current.isPositioned&&(N.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const T=s.useRef(!1);So((()=>(T.current=!0,()=>{T.current=!1})),[]),So((()=>{if(x&&(S.current=x),_&&(C.current=_),x&&_){if(P.current)return P.current(x,_,E);E()}}),[x,_,E,P,j]);const R=s.useMemo((()=>({reference:S,floating:C,setReference:v,setFloating:w})),[v,w]),O=s.useMemo((()=>({reference:x,floating:_})),[x,_]),D=s.useMemo((()=>{const e={position:r,left:0,top:0};if(!O.floating)return e;const t=jo(O.floating,u.x),o=jo(O.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...No(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:o}}),[r,l,O.floating,u.x,u.y]);return s.useMemo((()=>({...u,update:E,refs:R,elements:O,floatingStyles:D})),[u,E,R,O,D])}({...e,elements:{...n,...l&&{reference:l}}}),f=s.useCallback((e=>{const t=Lr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),m.refs.setReference(t)}),[m.refs]),h=s.useCallback((e=>{(Lr(e)||null===e)&&(u.current=e,i(e)),(Lr(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!Lr(e))&&m.refs.setReference(e)}),[m.refs]),y=s.useMemo((()=>({...m.refs,setReference:h,setPositionReference:f,domReference:u})),[m.refs,h,f]),b=s.useMemo((()=>({...m.elements,domReference:d})),[m.elements,d]),g=s.useMemo((()=>({...m,...o,refs:y,elements:b,nodeId:t})),[m,y,b,t,o]);return Ao((()=>{o.dataRef.current.floatingContext=g;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=g)})),s.useMemo((()=>({...m,context:g,refs:y,elements:b})),[m,y,b,g])}function Bo(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=[ko(e.offset)];return r.shift&&o.push((e=>({...yo(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?To():To(r.flip)),r.inline&&o.push("boolean"==typeof r.inline?Ro():Ro(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=>({...go(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 Vo(e){const[t,r]=ee({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),o=(0,s.useRef)(t),n=Ho({strategy:e.strategy,placement:e.position,middleware:Bo(e,(()=>n))});return function({opened:e,floating:t,position:r,positionDependencies:o}){const[n,a]=(0,s.useState)(0);(0,s.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=Qr(e),d=n||s?[...c?Gr(c):[],...Gr(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=Ar(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:-mr(u)+"px "+-mr(n.clientWidth-(d+p))+"px "+-mr(n.clientHeight-(u+m))+"px "+-mr(d)+"px",threshold:ur(0,dr(1,l))||1};let h=!0;function y(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||fo(c,e.getBoundingClientRect())||a(),h=!1}try{o=new IntersectionObserver(y,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(y,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?oo(e):null;return l&&function t(){const o=oo(e);h&&!fo(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]),Dt((()=>{t.update()}),o),Dt((()=>{a((e=>e+1))}),[e])}({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:n}),Dt((()=>{e.onPositionChange?.(n.placement)}),[n.placement]),Dt((()=>{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 Yo={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:gt("popover"),__staticSelector:"Popover",width:"max-content"},qo=(e,{radius:t,shadow:r})=>({dropdown:{"--popover-radius":void 0===t?void 0:se(t),"--popover-shadow":ie(r)}});function Xo(e){const t=de("Popover",Yo,e),{children:r,position:o,offset:n,onPositionChange:a,positionDependencies:i,opened:c,transitionProps:d,onExitTransitionEnd:u,onEnterTransitionEnd:p,width:m,middlewares:f,withArrow:h,arrowSize:y,arrowOffset:b,arrowRadius:g,arrowPosition:v,unstyled:w,classNames:x,styles:_,closeOnClickOutside:S,withinPortal:C,portalProps:N,closeOnEscape:j,clickOutsideEvents:P,trapFocus:$,onClose:k,onOpen:E,onChange:T,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,...X}=t,U=Se({name:L,props:t,classes:nr,classNames:x,styles:_,unstyled:w,rootSelector:"dropdown",vars:B,varsResolver:qo}),{resolvedStyles:K}=pt({classNames:x,styles:_,props:t}),G=(0,s.useRef)(null),[Z,J]=(0,s.useState)(null),[ee,te]=(0,s.useState)(null),{dir:re}=tt(),oe=Q(A),ne=Vo({middlewares:f,width:m,position:vt(re,o),offset:"number"==typeof n?n+(h?y/2:0):n,arrowRef:G,arrowOffset:b,onPositionChange:a,positionDependencies:i,opened:c,defaultOpened:z,onChange:T,onOpen:E,onClose:k,strategy:V});!function(e,t,r){const o=(0,s.useRef)(null);(0,s.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||yt).forEach((e=>document.addEventListener(e,n))),()=>{(t||yt).forEach((e=>document.removeEventListener(e,n)))}}),[o,e,r])}((()=>S&&ne.onClose()),P,[Z,ee]);const se=(0,s.useCallback)((e=>{J(e),ne.floating.refs.setReference(e)}),[ne.floating.refs.setReference]),ae=(0,s.useCallback)((e=>{te(e),ne.floating.refs.setFloating(e)}),[ne.floating.refs.setFloating]),ie=(0,s.useCallback)((()=>{d?.onExited?.(),u?.()}),[d?.onExited,u]),le=(0,s.useCallback)((()=>{d?.onEntered?.(),p?.()}),[d?.onEntered,p]);return(0,l.jsxs)(Lt,{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:y,arrowOffset:b,arrowRadius:g,arrowPosition:v,placement:ne.floating.placement,trapFocus:$,withinPortal:C,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:X,__staticSelector:L,classNames:x,styles:_,unstyled:w,variant:W,keepMounted:H,getStyles:U,resolvedStyles:K,floatingStrategy:V},children:[r,Y&&(0,l.jsx)(zt,{transition:"fade",mounted:ne.opened,duration:d?.duration||250,exitDuration:d?.exitDuration||250,children:e=>(0,l.jsx)(kt,{withinPortal:C,children:(0,l.jsx)(St,{...q,...U("overlay",{className:q?.className,style:[e,q?.style]})})})})]})}Xo.Target=cr,Xo.Dropdown=ar,Xo.displayName="@mantine/core/Popover",Xo.extend=e=>e;const[Uo,Ko]=Ve("Combobox component was not found in tree");var Go={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 Zo={error:null},Jo=(e,{size:t,color:r})=>({chevron:{"--combobox-chevron-size":oe(t,"combobox-chevron-size"),"--combobox-chevron-color":r?N(r,e):void 0}}),Qo=Be(((e,t)=>{const r=de("ComboboxChevron",Zo,e),{size:o,error:n,style:s,className:a,classNames:i,styles:c,unstyled:d,vars:u,mod:p,...m}=r,f=Se({name:"ComboboxChevron",classes:Go,props:r,style:s,className:a,classNames:i,styles:c,unstyled:d,vars:u,varsResolver:Jo,rootSelector:"chevron"});return(0,l.jsx)(We,{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,l.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 en(e=null){const t=(0,s.createContext)(e);return[({children:e,value:r})=>(0,l.jsx)(t.Provider,{value:r,children:e}),()=>(0,s.useContext)(t)]}Qo.classes=Go,Qo.displayName="@mantine/core/ComboboxChevron";const[tn,rn]=en({size:"sm"}),on=(0,s.forwardRef)((({size:e="var(--cb-icon-size, 70%)",style:t,...r},o)=>(0,l.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,l.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"})})));on.displayName="@mantine/core/CloseIcon";var nn={root:"m_86a44da5","root--subtle":"m_220c80f2"};const sn={variant:"subtle"},an=(e,{size:t,radius:r,iconSize:o})=>({root:{"--cb-size":oe(t,"cb-size"),"--cb-radius":void 0===r?void 0:se(r),"--cb-icon-size":b(o)}}),ln=rt(((e,t)=>{const r=de("CloseButton",sn,e),{iconSize:o,children:n,vars:s,radius:a,className:i,classNames:c,style:d,styles:u,unstyled:p,"data-disabled":m,disabled:f,variant:h,icon:y,mod:b,__staticSelector:g,...v}=r,w=Se({name:g||"CloseButton",props:r,className:i,style:d,classes:nn,classNames:c,styles:u,unstyled:p,vars:s,varsResolver:an});return(0,l.jsxs)(st,{ref:t,...v,unstyled:p,variant:h,disabled:f,mod:[{disabled:f||m},b],...w("root",{variant:h,active:!f&&!m}),children:[y||(0,l.jsx)(on,{}),n]})}));ln.classes=nn,ln.displayName="@mantine/core/CloseButton";const cn={},dn=Be(((e,t)=>{const r=de("InputClearButton",cn,e),{size:o,variant:n,vars:s,classNames:a,styles:i,...c}=r,d=rn(),{resolvedClassNames:u,resolvedStyles:p}=pt({classNames:a,styles:i,props:r});return(0,l.jsx)(ln,{variant:n||"transparent",ref:t,size:o||d?.size||"sm",classNames:u,styles:p,__staticSelector:"InputClearButton",...c})}));dn.displayName="@mantine/core/InputClearButton";const[un,pn]=en({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var mn={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 fn={},hn=(e,{size:t})=>({description:{"--input-description-size":void 0===t?void 0:`calc(${ae(t)} - ${b(2)})`}}),yn=Be(((e,t)=>{const r=de("InputDescription",fn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:m,...f}=de("InputDescription",fn,r),h=pn(),y=Se({name:["InputWrapper",u],props:r,classes:mn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"description",vars:c,varsResolver:hn}),b=p&&h?.getStyles||y;return(0,l.jsx)(We,{component:"p",ref:t,variant:m,size:d,...b("description",h?.getStyles?{className:n,style:s}:void 0),...f})}));yn.classes=mn,yn.displayName="@mantine/core/InputDescription";const bn={},gn=(e,{size:t})=>({error:{"--input-error-size":void 0===t?void 0:`calc(${ae(t)} - ${b(2)})`}}),vn=Be(((e,t)=>{const r=de("InputError",bn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:m,...f}=r,h=Se({name:["InputWrapper",u],props:r,classes:mn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"error",vars:c,varsResolver:gn}),y=pn(),b=p&&y?.getStyles||h;return(0,l.jsx)(We,{component:"p",ref:t,variant:m,size:d,...b("error",y?.getStyles?{className:n,style:s}:void 0),...f})}));vn.classes=mn,vn.displayName="@mantine/core/InputError";const wn={labelElement:"label"},xn=(e,{size:t})=>({label:{"--input-label-size":ae(t),"--input-asterisk-color":void 0}}),Sn=Be(((e,t)=>{const r=de("InputLabel",wn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,labelElement:d,size:u,required:p,htmlFor:m,onMouseDown:f,children:h,__staticSelector:y,variant:b,mod:g,...v}=de("InputLabel",wn,r),w=Se({name:["InputWrapper",y],props:r,classes:mn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"label",vars:c,varsResolver:xn}),x=pn(),_=x?.getStyles||w;return(0,l.jsxs)(We,{..._("label",x?.getStyles?{className:n,style:s}:void 0),component:d,variant:b,size:u,ref:t,htmlFor:"label"===d?m:void 0,mod:[{required:p},g],onMouseDown:e=>{f?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...v,children:[h,p&&(0,l.jsx)("span",{..._("required"),"aria-hidden":!0,children:" *"})]})}));Sn.classes=mn,Sn.displayName="@mantine/core/InputLabel";const Cn={},Nn=Be(((e,t)=>{const r=de("InputPlaceholder",Cn,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,__staticSelector:d,variant:u,error:p,mod:m,...f}=de("InputPlaceholder",Cn,r),h=Se({name:["InputPlaceholder",d],props:r,classes:mn,className:n,style:s,classNames:o,styles:a,unstyled:i,rootSelector:"placeholder"});return(0,l.jsx)(We,{...h("placeholder"),mod:[{error:!!p},m],component:"span",variant:u,ref:t,...f})}));function jn(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}}Nn.classes=mn,Nn.displayName="@mantine/core/InputPlaceholder";const Pn={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},$n=(e,{size:t})=>({label:{"--input-label-size":ae(t),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===t?void 0:`calc(${ae(t)} - ${b(2)})`},description:{"--input-description-size":void 0===t?void 0:`calc(${ae(t)} - ${b(2)})`}}),kn=Be(((e,t)=>{const r=de("InputWrapper",Pn,e),{classNames:o,className:n,style:a,styles:i,unstyled:c,vars:d,size:u,variant:p,__staticSelector:m,inputContainer:f,inputWrapperOrder:h,label:y,error:b,description:g,labelProps:v,descriptionProps:w,errorProps:x,labelElement:_,children:S,withAsterisk:C,id:N,required:j,__stylesApiProps:P,mod:$,...k}=r,E=Se({name:["InputWrapper",m],props:P||r,classes:mn,className:n,style:a,classNames:o,styles:i,unstyled:c,vars:d,varsResolver:$n}),T={size:u,variant:p,__staticSelector:m},R=Q(N),O="boolean"==typeof C?C:j,D=x?.id||`${R}-error`,A=w?.id||`${R}-description`,z=R,L=!!b&&"boolean"!=typeof b,I=!!g,M=`${L?D:""} ${I?A:""}`,F=M.trim().length>0?M.trim():void 0,W=v?.id||`${R}-label`,H=y&&(0,l.jsx)(Sn,{labelElement:_,id:W,htmlFor:z,required:O,...T,...v,children:y},"label"),B=I&&(0,l.jsx)(yn,{...w,...T,size:w?.size||T.size,id:w?.id||A,children:g},"description"),V=(0,l.jsx)(s.Fragment,{children:f(S)},"input"),Y=L&&(0,s.createElement)(vn,{...x,...T,size:x?.size||T.size,key:"error",id:x?.id||D},b),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,l.jsx)(un,{value:{getStyles:E,describedBy:F,inputId:z,labelId:W,...jn(h,{hasDescription:I,hasError:L})},children:(0,l.jsx)(We,{ref:t,variant:p,size:u,mod:[{error:!!b},$],...E("root"),...k,children:q})})}));kn.classes=mn,kn.displayName="@mantine/core/InputWrapper";const En={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},Tn=(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":oe(t.size,"input-height"),"--input-fz":ae(t.size),"--input-radius":void 0===t.radius?void 0:se(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?b(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?b(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?oe(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),Rn=rt(((e,t)=>{const r=de("Input",En,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,required:c,__staticSelector:d,__stylesApiProps:u,size:p,wrapperProps:m,error:f,disabled:h,leftSection:y,leftSectionProps:b,leftSectionWidth:g,rightSection:v,rightSectionProps:w,rightSectionWidth:x,rightSectionPointerEvents:_,leftSectionPointerEvents:S,variant:C,vars:N,pointer:j,multiline:P,radius:$,id:k,withAria:E,withErrorStyles:T,mod:R,inputSize:O,__clearSection:D,__clearable:A,__defaultRightSection:z,...L}=r,{styleProps:I,rest:M}=Te(L),F=pn(),W=Se({name:["Input",d],props:u||r,classes:mn,className:n,style:s,classNames:o,styles:a,unstyled:i,stylesCtx:{offsetBottom:F?.offsetBottom,offsetTop:F?.offsetTop},rootSelector:"wrapper",vars:N,varsResolver:Tn}),H=E?{required:c,disabled:h,"aria-invalid":!!f,"aria-describedby":F?.describedBy,id:F?.inputId||k}:{},B=v||A&&D||z;return(0,l.jsx)(tn,{value:{size:p||"sm"},children:(0,l.jsxs)(We,{...W("wrapper"),...I,...m,mod:[{error:!!f&&T,pointer:j,disabled:h,multiline:P,"data-with-right-section":!!v,"data-with-left-section":!!y},R],variant:C,size:p,children:[y&&(0,l.jsx)("div",{...b,"data-position":"left",...W("section",{className:b?.className,style:b?.style}),children:y}),(0,l.jsx)(We,{component:"input",...M,...H,ref:t,required:c,mod:{disabled:h,error:!!f&&T},variant:C,__size:O,...W("input")}),B&&(0,l.jsx)("div",{...w,"data-position":"right",...W("section",{className:w?.className,style:w?.style}),children:B})]})})}));Rn.classes=mn,Rn.Wrapper=kn,Rn.Label=Sn,Rn.Error=vn,Rn.Description=yn,Rn.Placeholder=Nn,Rn.ClearButton=dn,Rn.displayName="@mantine/core/Input";const On=(0,s.forwardRef)((({size:e,onMouseDown:t,onClick:r,onClear:o,...n},s)=>(0,l.jsx)(Rn.ClearButton,{ref:s,tabIndex:-1,"aria-hidden":!0,...n,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{o(),r?.(e)}})));On.displayName="@mantine/core/ComboboxClearButton";const Dn={},An=Be(((e,t)=>{const{classNames:r,styles:o,className:n,style:s,hidden:a,...i}=de("ComboboxDropdown",Dn,e),c=Ko();return(0,l.jsx)(Xo.Dropdown,{...i,ref:t,role:"presentation","data-hidden":a||void 0,...c.getStyles("dropdown",{className:n,style:s,classNames:r,styles:o})})}));An.classes=Go,An.displayName="@mantine/core/ComboboxDropdown";const zn={refProp:"ref"},Ln=Be(((e,t)=>{const{children:r,refProp:o}=de("ComboboxDropdownTarget",zn,e);if(Ko(),!Jt(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,l.jsx)(Xo.Target,{ref:t,refProp:o,children:r})}));Ln.displayName="@mantine/core/ComboboxDropdownTarget";const In={},Mn=Be(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,...i}=de("ComboboxEmpty",In,e),c=Ko();return(0,l.jsx)(We,{ref:t,...c.getStyles("empty",{className:o,classNames:r,styles:s,style:n}),...i})}));function Fn({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:r,withExpandedAttribute:o,targetType:n,autoComplete:a}){const i=Ko(),[l,c]=(0,s.useState)(null);return{...r?{"aria-haspopup":"listbox","aria-expanded":o&&!(!i.store.listId||!i.store.dropdownOpened)||void 0,"aria-controls":i.store.dropdownOpened?i.store.listId:void 0,"aria-activedescendant":i.store.dropdownOpened&&l||void 0,autoComplete:a,"data-expanded":i.store.dropdownOpened||void 0,"data-mantine-stop-propagation":i.store.dropdownOpened||void 0}:{},onKeyDown:r=>{if(e?.(r),!i.readOnly&&t){if(r.nativeEvent.isComposing)return;if("ArrowDown"===r.nativeEvent.code&&(r.preventDefault(),i.store.dropdownOpened?c(i.store.selectNextOption()):(i.store.openDropdown("keyboard"),c(i.store.selectActiveOption()),i.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===r.nativeEvent.code&&(r.preventDefault(),i.store.dropdownOpened?c(i.store.selectPreviousOption()):(i.store.openDropdown("keyboard"),c(i.store.selectActiveOption()),i.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===r.nativeEvent.code||"NumpadEnter"===r.nativeEvent.code){if(229===r.nativeEvent.keyCode)return;const e=i.store.getSelectedOptionIndex();i.store.dropdownOpened&&-1!==e?(r.preventDefault(),i.store.clickSelectedOption()):"button"===n&&(r.preventDefault(),i.store.openDropdown("keyboard"))}"Escape"===r.key&&i.store.closeDropdown("keyboard"),"Space"===r.nativeEvent.code&&"button"===n&&(r.preventDefault(),i.store.toggleDropdown("keyboard"))}}}}Mn.classes=Go,Mn.displayName="@mantine/core/ComboboxEmpty";const Wn={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Hn=Be(((e,t)=>{const{children:r,refProp:o,withKeyboardNavigation:n,withAriaAttributes:a,withExpandedAttribute:i,targetType:l,autoComplete:c,...d}=de("ComboboxEventsTarget",Wn,e);if(!Jt(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=Ko(),p=Fn({targetType:l,withAriaAttributes:a,withKeyboardNavigation:n,withExpandedAttribute:i,onKeyDown:r.props.onKeyDown,autoComplete:c});return(0,s.cloneElement)(r,{...p,...d,[o]:jt(t,u.store.targetRef,ir(r))})}));Hn.displayName="@mantine/core/ComboboxEventsTarget";const Bn={},Vn=Be(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,...i}=de("ComboboxFooter",Bn,e),c=Ko();return(0,l.jsx)(We,{ref:t,...c.getStyles("footer",{className:o,classNames:r,style:n,styles:s}),...i,onMouseDown:e=>{e.preventDefault()}})}));Vn.classes=Go,Vn.displayName="@mantine/core/ComboboxFooter";const Yn={},qn=Be(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,children:i,label:c,...d}=de("ComboboxGroup",Yn,e),u=Ko();return(0,l.jsxs)(We,{ref:t,...u.getStyles("group",{className:o,classNames:r,style:n,styles:s}),...d,children:[c&&(0,l.jsx)("div",{...u.getStyles("groupLabel",{classNames:r,styles:s}),children:c}),i]})}));qn.classes=Go,qn.displayName="@mantine/core/ComboboxGroup";const Xn={},Un=Be(((e,t)=>{const{classNames:r,className:o,style:n,styles:s,vars:a,...i}=de("ComboboxHeader",Xn,e),c=Ko();return(0,l.jsx)(We,{ref:t,...c.getStyles("header",{className:o,classNames:r,style:n,styles:s}),...i,onMouseDown:e=>{e.preventDefault()}})}));function Kn({value:e,valuesDivider:t=",",...r}){return(0,l.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...r})}Un.classes=Go,Un.displayName="@mantine/core/ComboboxHeader",Kn.displayName="@mantine/core/ComboboxHiddenInput";const Gn={},Zn=Be(((e,t)=>{const r=de("ComboboxOption",Gn,e),{classNames:o,className:n,style:a,styles:i,vars:c,onClick:d,id:u,active:p,onMouseDown:m,onMouseOver:f,disabled:h,selected:y,mod:b,...g}=r,v=Ko(),w=(0,s.useId)(),x=u||w;return(0,l.jsx)(We,{...v.getStyles("option",{className:n,classNames:o,styles:i,style:a}),...g,ref:t,id:x,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":h,"combobox-selected":y},b],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)}})}));Zn.classes=Go,Zn.displayName="@mantine/core/ComboboxOption";const Jn={},Qn=Be(((e,t)=>{const r=de("ComboboxOptions",Jn,e),{classNames:o,className:n,style:a,styles:i,id:c,onMouseDown:d,labelledBy:u,...p}=r,m=Ko(),f=Q(c);return(0,s.useEffect)((()=>{m.store.setListId(f)}),[f]),(0,l.jsx)(We,{ref:t,...m.getStyles("options",{className:n,style:a,classNames:o,styles:i}),...p,id:f,role:"listbox","aria-labelledby":u,onMouseDown:e=>{e.preventDefault(),d?.(e)}})}));Qn.classes=Go,Qn.displayName="@mantine/core/ComboboxOptions";const es={withAriaAttributes:!0,withKeyboardNavigation:!0},ts=Be(((e,t)=>{const r=de("ComboboxSearch",es,e),{classNames:o,styles:n,unstyled:s,vars:a,withAriaAttributes:i,onKeyDown:c,withKeyboardNavigation:d,size:u,...p}=r,m=Ko(),f=m.getStyles("search"),h=Fn({targetType:"input",withAriaAttributes:i,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return(0,l.jsx)(Rn,{ref:jt(t,m.store.searchRef),classNames:[{input:f.className},o],styles:[{input:f.style},n],size:u||m.size,...h,...p,__staticSelector:"Combobox"})}));ts.classes=Go,ts.displayName="@mantine/core/ComboboxSearch";const rs={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},os=Be(((e,t)=>{const{children:r,refProp:o,withKeyboardNavigation:n,withAriaAttributes:a,withExpandedAttribute:i,targetType:c,autoComplete:d,...u}=de("ComboboxTarget",rs,e);if(!Jt(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=Ko(),m=Fn({targetType:c,withAriaAttributes:a,withKeyboardNavigation:n,withExpandedAttribute:i,onKeyDown:r.props.onKeyDown,autoComplete:d}),f=(0,s.cloneElement)(r,{...m,...u});return(0,l.jsx)(Xo.Target,{ref:jt(t,p.store.targetRef),children:f})}));function ns({defaultOpened:e,opened:t,onOpenedChange:r,onDropdownClose:o,onDropdownOpen:n,loop:a=!0,scrollBehavior:i="instant"}={}){const[l,c]=ee({value:t,defaultValue:e,finalValue:!1,onChange:r}),d=(0,s.useRef)(null),u=(0,s.useRef)(-1),p=(0,s.useRef)(null),m=(0,s.useRef)(null),f=(0,s.useRef)(-1),h=(0,s.useRef)(-1),y=(0,s.useRef)(-1),b=(0,s.useCallback)(((e="unknown")=>{l||(c(!0),n?.(e))}),[c,n,l]),g=(0,s.useCallback)(((e="unknown")=>{l&&(c(!1),o?.(e))}),[c,o,l]),v=(0,s.useCallback)(((e="unknown")=>{l?g(e):b(e)}),[g,b,l]),w=(0,s.useCallback)((()=>{const e=document.querySelector(`#${d.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")}),[]),x=(0,s.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:i}),r[o].id):null}),[i,w]),_=(0,s.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]),S=(0,s.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]`),a))),[x,a]),C=(0,s.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]`),a))),[x,a]),N=(0,s.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,s.useCallback)(((e="selected",t)=>{y.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:i})}),0)}),[]),P=(0,s.useCallback)((()=>{u.current=-1,w()}),[w]),$=(0,s.useCallback)((()=>{const e=document.querySelectorAll(`#${d.current} [data-combobox-option]`),t=e?.[u.current];t?.click()}),[]),k=(0,s.useCallback)((e=>{d.current=e}),[]),E=(0,s.useCallback)((()=>{f.current=window.setTimeout((()=>p.current.focus()),0)}),[]),T=(0,s.useCallback)((()=>{h.current=window.setTimeout((()=>m.current.focus()),0)}),[]),R=(0,s.useCallback)((()=>u.current),[]);return(0,s.useEffect)((()=>()=>{window.clearTimeout(f.current),window.clearTimeout(h.current),window.clearTimeout(y.current)}),[]),{dropdownOpened:l,openDropdown:b,closeDropdown:g,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:R,selectOption:x,selectFirstOption:N,selectActiveOption:_,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:P,updateSelectedOptionIndex:j,listId:d.current,setListId:k,clickSelectedOption:$,searchRef:p,focusSearchInput:E,targetRef:m,focusTarget:T}}os.displayName="@mantine/core/ComboboxTarget";const ss={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},as=(e,{size:t,dropdownPadding:r})=>({options:{"--combobox-option-fz":ae(t),"--combobox-option-padding":oe(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===r?void 0:b(r),"--combobox-option-fz":ae(t),"--combobox-option-padding":oe(t,"combobox-option-padding")}});function is(e){const t=de("Combobox",ss,e),{classNames:r,styles:o,unstyled:n,children:s,store:a,vars:i,onOptionSubmit:c,onClose:d,size:u,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:f,readOnly:h,...y}=t,b=ns(),g=a||b,v=Se({name:f||"Combobox",classes:Go,props:t,classNames:r,styles:o,unstyled:n,vars:i,varsResolver:as});return(0,l.jsx)(Uo,{value:{getStyles:v,store:g,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:m,readOnly:h},children:(0,l.jsx)(Xo,{opened:g.dropdownOpened,...y,onChange:e=>!e&&(d?.(),void g.closeDropdown()),withRoles:!1,unstyled:n,children:s})})}function ls({size:e,style:t,...r}){const o=void 0!==e?{width:b(e),height:b(e),...t}:t;return(0,l.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...r,children:(0,l.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"})})}is.extend=e=>e,is.classes=Go,is.displayName="@mantine/core/Combobox",is.Target=os,is.Dropdown=An,is.Options=Qn,is.Option=Zn,is.Search=ts,is.Empty=Mn,is.Chevron=Qo,is.Footer=Vn,is.Header=Un,is.EventsTarget=Hn,is.DropdownTarget=Ln,is.Group=qn,is.ClearButton=On,is.HiddenInput=Kn;const[cs,ds]=Ve("ScrollArea.Root component was not found in tree");function us(e){const t=(0,s.useRef)(e);return(0,s.useEffect)((()=>{t.current=e})),(0,s.useMemo)((()=>(...e)=>t.current?.(...e)),[])}function ps(e,t){const r=us(t);K((()=>{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 ms=(0,s.forwardRef)(((e,t)=>{const{style:r,...o}=e,n=ds(),[a,i]=(0,s.useState)(0),[c,d]=(0,s.useState)(0),u=Boolean(a&&c);return ps(n.scrollbarX,(()=>{const e=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(e),d(e)})),ps(n.scrollbarY,(()=>{const e=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(e),i(e)})),u?(0,l.jsx)("div",{...o,ref:t,style:{...r,width:a,height:c}}):null})),fs=(0,s.forwardRef)(((e,t)=>{const r=ds(),o=Boolean(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&o?(0,l.jsx)(ms,{...e,ref:t}):null})),hs={scrollHideDelay:1e3,type:"hover"},ys=(0,s.forwardRef)(((e,t)=>{const r=de("ScrollAreaRoot",hs,e),{type:o,scrollHideDelay:n,scrollbars:a,...i}=r,[c,d]=(0,s.useState)(null),[u,p]=(0,s.useState)(null),[m,f]=(0,s.useState)(null),[h,y]=(0,s.useState)(null),[b,g]=(0,s.useState)(null),[v,w]=(0,s.useState)(0),[x,_]=(0,s.useState)(0),[S,C]=(0,s.useState)(!1),[N,j]=(0,s.useState)(!1),P=jt(t,(e=>d(e)));return(0,l.jsx)(cs,{value:{type:o,scrollHideDelay:n,scrollArea:c,viewport:u,onViewportChange:p,content:m,onContentChange:f,scrollbarX:h,onScrollbarXChange:y,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:b,onScrollbarYChange:g,scrollbarYEnabled:N,onScrollbarYEnabledChange:j,onCornerWidthChange:w,onCornerHeightChange:_},children:(0,l.jsx)(We,{...i,ref:P,__vars:{"--sa-corner-width":"xy"!==a?"0px":`${v}px`,"--sa-corner-height":"xy"!==a?"0px":`${x}px`}})})}));ys.displayName="@mantine/core/ScrollAreaRoot";const bs=()=>{};function gs(e,t){const r="number"==typeof t?t:t.delay,o="number"!=typeof t&&t.flushOnUnmount,n=us(e),a=(0,s.useRef)(0),i=Object.assign((0,s.useCallback)(((...e)=>{window.clearTimeout(a.current);const t=()=>{0!==a.current&&(a.current=0,n(...e))};i.flush=t,a.current=window.setTimeout(t,r)}),[n,r]),{flush:bs});return(0,s.useEffect)((()=>()=>{window.clearTimeout(a.current),o&&i.flush()}),[i,o]),i}function vs(e,t){const r=e/t;return Number.isNaN(r)?0:r}function ws(e){const t=vs(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function xs(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 _s(e,t,r="ltr"){const o=ws(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 xs([0,a],[0,i])(l)}function Ss(e,t){return e>0&&e<t}function Cs(e){return e?parseInt(e,10):0}function Ns(e,t,{checkForDefaultPrevented:r=!0}={}){return o=>{e?.(o),!1!==r&&o.defaultPrevented||t?.(o)}}const[js,Ps]=Ve("ScrollAreaScrollbar was not found in tree"),$s=(0,s.forwardRef)(((e,t)=>{const{sizes:r,hasThumb:o,onThumbChange:n,onThumbPointerUp:a,onThumbPointerDown:i,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:u,onResize:p,...m}=e,f=ds(),[h,y]=(0,s.useState)(null),b=jt(t,(e=>y(e))),g=(0,s.useRef)(null),v=(0,s.useRef)(""),{viewport:w}=f,x=r.content-r.viewport,_=us(u),S=us(c),C=gs(p,10),N=e=>{if(g.current){const t=e.clientX-g.current.left,r=e.clientY-g.current.top;d({x:t,y:r})}};return(0,s.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,s.useEffect)(S,[r,S]),ps(h,C),ps(f.content,C),(0,l.jsx)(js,{value:{scrollbar:h,hasThumb:o,onThumbChange:us(n),onThumbPointerUp:us(a),onThumbPositionChange:S,onThumbPointerDown:us(i)},children:(0,l.jsx)("div",{...m,ref:b,"data-mantine-scrollbar":!0,style:{position:"absolute",...m.style},onPointerDown:Ns(e.onPointerDown,(e=>{e.preventDefault(),0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",N(e))})),onPointerMove:Ns(e.onPointerMove,N),onPointerUp:Ns(e.onPointerUp,(e=>{e.preventDefault();const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,g.current=null}))})})})),ks=(0,s.forwardRef)(((e,t)=>{const{sizes:r,onSizesChange:o,style:n,...a}=e,i=ds(),[c,d]=(0,s.useState)(),u=(0,s.useRef)(null),p=jt(t,u,i.onScrollbarXChange);return(0,s.useEffect)((()=>{u.current&&d(getComputedStyle(u.current))}),[u]),(0,l.jsx)($s,{"data-orientation":"horizontal",...a,ref:p,sizes:r,style:{...n,"--sa-thumb-width":`${ws(r)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(i.viewport){const o=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(o),Ss(o,r)&&t.preventDefault()}},onResize:()=>{u.current&&i.viewport&&c&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Cs(c.paddingLeft),paddingEnd:Cs(c.paddingRight)}})}})}));ks.displayName="@mantine/core/ScrollAreaScrollbarX";const Es=(0,s.forwardRef)(((e,t)=>{const{sizes:r,onSizesChange:o,style:n,...a}=e,i=ds(),[c,d]=(0,s.useState)(),u=(0,s.useRef)(null),p=jt(t,u,i.onScrollbarYChange);return(0,s.useEffect)((()=>{u.current&&d(window.getComputedStyle(u.current))}),[]),(0,l.jsx)($s,{...a,"data-orientation":"vertical",ref:p,sizes:r,style:{"--sa-thumb-height":`${ws(r)}px`,...n},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(i.viewport){const o=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(o),Ss(o,r)&&t.preventDefault()}},onResize:()=>{u.current&&i.viewport&&c&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Cs(c.paddingTop),paddingEnd:Cs(c.paddingBottom)}})}})}));Es.displayName="@mantine/core/ScrollAreaScrollbarY";const Ts=(0,s.forwardRef)(((e,t)=>{const{orientation:r="vertical",...o}=e,{dir:n}=tt(),a=ds(),i=(0,s.useRef)(null),c=(0,s.useRef)(0),[d,u]=(0,s.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=vs(d.viewport,d.content),m={...o,sizes:d,onSizesChange:u,hasThumb:Boolean(p>0&&p<1),onThumbChange:e=>{i.current=e},onThumbPointerUp:()=>{c.current=0},onThumbPointerDown:e=>{c.current=e}},f=(e,t)=>function(e,t,r,o="ltr"){const n=ws(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 xs([i,l],"ltr"===o?[0,c]:[-1*c,0])(e)}(e,c.current,d,t);return"horizontal"===r?(0,l.jsx)(ks,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const e=_s(a.viewport.scrollLeft,d,n);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=f(e,n))}}):"vertical"===r?(0,l.jsx)(Es,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const e=_s(a.viewport.scrollTop,d);0===d.scrollbar.size?i.current.style.setProperty("--thumb-opacity","0"):i.current.style.setProperty("--thumb-opacity","1"),i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=f(e))}}):null}));Ts.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Rs=(0,s.forwardRef)(((e,t)=>{const r=ds(),{forceMount:o,...n}=e,[a,i]=(0,s.useState)(!1),c="horizontal"===e.orientation,d=gs((()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;i(c?e:t)}}),10);return ps(r.viewport,d),ps(r.content,d),o||a?(0,l.jsx)(Ts,{"data-state":a?"visible":"hidden",...n,ref:t}):null}));Rs.displayName="@mantine/core/ScrollAreaScrollbarAuto";const Os=(0,s.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=ds(),[a,i]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const{scrollArea:e}=n;let t=0;if(e){const r=()=>{window.clearTimeout(t),i(!0)},o=()=>{t=window.setTimeout((()=>i(!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||a?(0,l.jsx)(Rs,{"data-state":a?"visible":"hidden",...o,ref:t}):null}));Os.displayName="@mantine/core/ScrollAreaScrollbarHover";const Ds=(0,s.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=ds(),a="horizontal"===e.orientation,[i,c]=(0,s.useState)("hidden"),d=gs((()=>c("idle")),100);return(0,s.useEffect)((()=>{if("idle"===i){const e=window.setTimeout((()=>c("hidden")),n.scrollHideDelay);return()=>window.clearTimeout(e)}}),[i,n.scrollHideDelay]),(0,s.useEffect)((()=>{const{viewport:e}=n,t=a?"scrollLeft":"scrollTop";if(e){let r=e[t];const o=()=>{const o=e[t];r!==o&&(c("scrolling"),d()),r=o};return e.addEventListener("scroll",o),()=>e.removeEventListener("scroll",o)}}),[n.viewport,a,d]),r||"hidden"!==i?(0,l.jsx)(Ts,{"data-state":"hidden"===i?"hidden":"visible",...o,ref:t,onPointerEnter:Ns(e.onPointerEnter,(()=>c("interacting"))),onPointerLeave:Ns(e.onPointerLeave,(()=>c("idle")))}):null})),As=(0,s.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=ds(),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=n,c="horizontal"===e.orientation;return(0,s.useEffect)((()=>(c?a(!0):i(!0),()=>{c?a(!1):i(!1)})),[c,a,i]),"hover"===n.type?(0,l.jsx)(Os,{...o,ref:t,forceMount:r}):"scroll"===n.type?(0,l.jsx)(Ds,{...o,ref:t,forceMount:r}):"auto"===n.type?(0,l.jsx)(Rs,{...o,ref:t,forceMount:r}):"always"===n.type?(0,l.jsx)(Ts,{...o,ref:t}):null}));As.displayName="@mantine/core/ScrollAreaScrollbar";const zs=(0,s.forwardRef)(((e,t)=>{const{style:r,...o}=e,n=ds(),a=Ps(),{onThumbPositionChange:i}=a,c=jt(t,(e=>a.onThumbChange(e))),d=(0,s.useRef)(void 0),u=gs((()=>{d.current&&(d.current(),d.current=void 0)}),100);return(0,s.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,i);d.current=t,i()}};return i(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[n.viewport,u,i]),(0,l.jsx)("div",{"data-state":a.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...r},onPointerDownCapture:Ns(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),r=e.clientX-t.left,o=e.clientY-t.top;a.onThumbPointerDown({x:r,y:o})})),onPointerUp:Ns(e.onPointerUp,a.onThumbPointerUp)})}));zs.displayName="@mantine/core/ScrollAreaThumb";const Ls=(0,s.forwardRef)(((e,t)=>{const{forceMount:r,...o}=e,n=Ps();return r||n.hasThumb?(0,l.jsx)(zs,{ref:t,...o}):null}));Ls.displayName="@mantine/core/ScrollAreaThumb";const Is=(0,s.forwardRef)((({children:e,style:t,...r},o)=>{const n=ds(),s=jt(o,n.onViewportChange);return(0,l.jsx)(We,{...r,ref:s,style:{overflowX:n.scrollbarXEnabled?"scroll":"hidden",overflowY:n.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,l.jsx)("div",{style:{minWidth:"100%",display:"table"},ref:n.onContentChange,children:e})})}));Is.displayName="@mantine/core/ScrollAreaViewport";var Ms={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Fs={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Ws=(e,{scrollbarSize:t})=>({root:{"--scrollarea-scrollbar-size":b(t)}}),Hs=Be(((e,t)=>{const r=de("ScrollArea",Fs,e),{classNames:o,className:n,style:a,styles:i,unstyled:c,scrollbarSize:d,vars:u,type:p,scrollHideDelay:m,viewportProps:f,viewportRef:h,onScrollPositionChange:y,children:b,offsetScrollbars:g,scrollbars:v,onBottomReached:w,onTopReached:x,..._}=r,[S,C]=(0,s.useState)(!1),N=Se({name:"ScrollArea",props:r,classes:Ms,className:n,style:a,classNames:o,styles:i,unstyled:c,vars:u,varsResolver:Ws});return(0,l.jsxs)(ys,{type:"never"===p?"always":p,scrollHideDelay:m,ref:t,scrollbars:v,...N("root"),..._,children:[(0,l.jsx)(Is,{...f,...N("viewport",{style:f?.style}),ref:h,"data-offset-scrollbars":!0===g?"xy":g||void 0,"data-scrollbars":v||void 0,onScroll:e=>{f?.onScroll?.(e),y?.({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:b}),("xy"===v||"x"===v)&&(0,l.jsx)(As,{...N("scrollbar"),orientation:"horizontal","data-hidden":"never"===p||void 0,forceMount:!0,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:(0,l.jsx)(Ls,{...N("thumb")})}),("xy"===v||"y"===v)&&(0,l.jsx)(As,{...N("scrollbar"),orientation:"vertical","data-hidden":"never"===p||void 0,forceMount:!0,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:(0,l.jsx)(Ls,{...N("thumb")})}),(0,l.jsx)(fs,{...N("corner"),"data-hovered":S||void 0,"data-hidden":"never"===p||void 0})]})}));Hs.displayName="@mantine/core/ScrollArea";const Bs=Be(((e,t)=>{const{children:r,classNames:o,styles:n,scrollbarSize:s,scrollHideDelay:a,type:i,dir:c,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:p,unstyled:m,variant:f,viewportProps:h,scrollbars:y,style:b,vars:g,onBottomReached:v,onTopReached:w,...x}=de("ScrollAreaAutosize",Fs,e);return(0,l.jsx)(We,{...x,ref:t,style:[{display:"flex",overflow:"auto"},b],children:(0,l.jsx)(We,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,l.jsx)(Hs,{classNames:o,styles:n,scrollHideDelay:a,scrollbarSize:s,type:i,dir:c,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:p,unstyled:m,variant:f,viewportProps:h,vars:g,scrollbars:y,onBottomReached:v,onTopReached:w,children:r})})})}));function Vs(e){return"group"in e}function Ys({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;Vs(a)&&n.push({group:a.group,items:Ys({options:a.items,search:t,limit:r-n.length})}),Vs(a)||a.label.toLowerCase().includes(o)&&n.push(a)}return n}function qs(e,t=new Set){if(Array.isArray(e))for(const r of e)if(Vs(r))qs(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(!Vs(e)){const a=function(e,t){return Array.isArray(e)?e.includes(t):e===t}(r,e.value),i=t&&a&&(0,l.jsx)(ls,{className:Go.optionsDropdownCheckIcon}),c=(0,l.jsxs)(l.Fragment,{children:["left"===o&&i,(0,l.jsx)("span",{children:e.label}),"right"===o&&i]});return(0,l.jsx)(is.Option,{value:e.value,disabled:e.disabled,className:pe({[Go.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}):c})}const a=e.items.map((e=>(0,l.jsx)(Xs,{data:e,value:r,unstyled:n,withCheckIcon:t,checkIconPosition:o,renderOption:s},e.value)));return(0,l.jsx)(is.Group,{label:e.group,children:a})}function Us({data:e,hidden:t,hiddenWhenEmpty:r,filter:o,search:n,limit:s,maxDropdownHeight:a,withScrollArea:i=!0,filterOptions:c=!0,withCheckIcon:d=!1,value:u,checkIconPosition:p,nothingFoundMessage:m,unstyled:f,labelId:h,renderOption:y,scrollAreaProps:b,"aria-label":g}){qs(e);const v="string"==typeof n?(o||Ys)({options:e,search:c?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,l.jsx)(Xs,{data:e,withCheckIcon:d,value:u,checkIconPosition:p,unstyled:f,renderOption:y},Vs(e)?e.group:e.value)));return(0,l.jsx)(is.Dropdown,{hidden:t||r&&w,children:(0,l.jsxs)(is.Options,{labelledBy:h,"aria-label":g,children:[i?(0,l.jsx)(Hs.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...b,children:x}):x,w&&m&&(0,l.jsx)(is.Empty,{children:m})]})})}Hs.classes=Ms,Bs.displayName="@mantine/core/ScrollAreaAutosize",Bs.classes=Ms,Hs.Autosize=Bs;const Ks={__staticSelector:"InputBase",withAria:!0},Gs=rt(((e,t)=>{const{inputProps:r,wrapperProps:o,...n}=function(e,t,r){const o=de("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:y,wrapperProps:b,id:g,size:v,style:w,inputContainer:x,inputWrapperOrder:_,withAsterisk:S,variant:C,vars:N,mod:j,...P}=o,{styleProps:$,rest:k}=Te(P);return{...k,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:y,unstyled:u,styles:c,size:v,style:w,inputContainer:x,inputWrapperOrder:_,withAsterisk:S,variant:C,id:g,mod:j,...b},...$},inputProps:{required:i,classNames:l,styles:c,unstyled:u,size:v,__staticSelector:p,__stylesApiProps:m||o,error:a,variant:C,id:g}}}(0,Ks,e);return(0,l.jsx)(Rn.Wrapper,{...o,children:(0,l.jsx)(Rn,{...r,...n,ref:t})})}));Gs.classes={...Rn.classes,...Rn.Wrapper.classes},Gs.displayName="@mantine/core/InputBase";const Zs={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Js=Be(((e,t)=>{const r=de("Select",Zs,e),{classNames:o,styles:n,unstyled:a,vars:i,dropdownOpened:c,defaultDropdownOpened:d,onDropdownClose:u,onDropdownOpen:p,onFocus:m,onBlur:f,onClick:h,onChange:y,data:b,value:g,defaultValue:v,selectFirstOptionOnChange:w,onOptionSubmit:x,comboboxProps:_,readOnly:S,disabled:C,filter:N,limit:j,withScrollArea:P,maxDropdownHeight:$,size:k,searchable:E,rightSection:T,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:X,onClear:U,autoComplete:K,scrollAreaProps:G,__defaultRightSection:Z,__clearSection:J,__clearable:te,chevronColor:re,...oe}=r,ne=(0,s.useMemo)((()=>ft(b)),[b]),se=(0,s.useMemo)((()=>ht(ne)),[ne]),ae=Q(B),[ie,le,ce]=ee({value:g,defaultValue:v,finalValue:null,onChange:y}),ue="string"==typeof ie?se[ie]:void 0,pe=function(e){const t=(0,s.useRef)(void 0);return(0,s.useEffect)((()=>{t.current=e}),[e]),t.current}(ue),[me,fe]=ee({value:L,defaultValue:I,finalValue:ue?ue.label:"",onChange:M}),he=ns({opened:c,defaultOpened:d,onDropdownOpen:()=>{p?.(),he.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),he.resetSelectedOption()}}),{resolvedClassNames:ye,resolvedStyles:be}=pt({props:r,styles:n,classNames:o});(0,s.useEffect)((()=>{w&&he.selectFirstOption()}),[w,ie]),(0,s.useEffect)((()=>{null===g&&fe(""),"string"!=typeof g||!ue||pe?.value===ue.value&&pe?.label===ue.label||fe(ue.label)}),[g,ue]);const ge=(0,l.jsx)(is.ClearButton,{...Y,onClear:()=>{le(null,null),fe(""),U?.()}}),ve=V&&!!ie&&!C&&!S;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(is,{store:he,__staticSelector:"Select",classNames:ye,styles:be,unstyled:a,readOnly:S,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:k,..._,children:[(0,l.jsx)(is.Target,{targetType:E?"input":"button",autoComplete:K,children:(0,l.jsx)(Gs,{id:ae,ref:t,__defaultRightSection:(0,l.jsx)(is.Chevron,{size:k,error:W,unstyled:a,color:re}),__clearSection:ge,__clearable:ve,rightSection:T,rightSectionPointerEvents:H||(ve?"all":"none"),...oe,size:k,__staticSelector:"Select",disabled:C,readOnly:S||!E,value:me,onChange:e=>{fe(e.currentTarget.value),he.openDropdown(),w&&he.selectFirstOption()},onFocus:e=>{E&&he.openDropdown(),m?.(e)},onBlur:e=>{E&&he.closeDropdown(),fe(null!=ie&&se[ie]?.label||""),f?.(e)},onClick:e=>{E?he.openDropdown():he.toggleDropdown(),h?.(e)},classNames:ye,styles:be,unstyled:a,pointer:!E,error:W})}),(0,l.jsx)(Us,{data:ne,hidden:S||C,filter:N,search:me,limit:j,hiddenWhenEmpty:!D,withScrollArea:P,maxDropdownHeight:$,filterOptions:E&&ue?.label!==me,value:ie,checkIconPosition:R,withCheckIcon:O,nothingFoundMessage:D,unstyled:a,labelId:oe.label?`${ae}-label`:void 0,"aria-label":oe.label?void 0:oe["aria-label"],renderOption:X,scrollAreaProps:G})]}),(0,l.jsx)(is.HiddenInput,{value:ie,name:A,form:z,disabled:C,...q})]})}));Js.classes={...Gs.classes,...is.classes},Js.displayName="@mantine/core/Select";const Qs={},ea=Be(((e,t)=>{const r=de("TextInput",Qs,e);return(0,l.jsx)(Gs,{component:"input",ref:t,...r,__staticSelector:"TextInput"})}));ea.classes=Gs.classes,ea.displayName="@mantine/core/TextInput";var ta={root:"m_4081bf90"};const ra={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},oa=(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":ne(o),"--group-align":n,"--group-justify":s,"--group-wrap":a}}),na=Be(((e,t)=>{const r=de("Group",ra,e),{classNames:o,className:n,style:a,styles:i,unstyled:c,children:d,gap:u,align:p,justify:m,wrap:f,grow:h,preventGrowOverflow:y,vars:b,variant:g,__size:v,mod:w,...x}=r,_=function(e){return s.Children.toArray(e).filter(Boolean)}(d),S=_.length,C=ne(u??"md"),N=Se({name:"Group",props:r,stylesCtx:{childWidth:`calc(${100/S}% - (${C} - ${C} / ${S}))`},className:n,style:a,classes:ta,classNames:o,styles:i,unstyled:c,vars:b,varsResolver:oa});return(0,l.jsx)(We,{...N("root"),ref:t,variant:g,mod:[{grow:h},w],size:v,...x,children:_})}));na.classes=ta,na.displayName="@mantine/core/Group";const[sa,aa]=Ve("Pagination.Root component was not found in tree");var ia={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const la={withPadding:!0},ca=Be(((e,t)=>{const r=de("PaginationControl",la,e),{classNames:o,className:n,style:s,styles:a,vars:i,active:c,disabled:d,withPadding:u,mod:p,...m}=r,f=aa(),h=d||f.disabled;return(0,l.jsx)(st,{ref:t,disabled:h,mod:[{active:c,disabled:h,"with-padding":u},p],...f.getStyles("control",{className:n,style:s,classNames:o,styles:a,active:!h}),...m})}));function da({style:e,children:t,path:r,...o}){return(0,l.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,l.jsx)("path",{d:r,fill:"currentColor"})})}ca.classes=ia,ca.displayName="@mantine/core/PaginationControl";const ua={icon:e=>(0,l.jsx)(da,{...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"})},pa=Be(((e,t)=>{const r=de("PaginationDots",ua,e),{classNames:o,className:n,style:s,styles:a,vars:i,icon:c,...d}=r,u=aa(),p=c;return(0,l.jsx)(We,{ref:t,...u.getStyles("dots",{className:n,style:s,styles:a,classNames:o}),...d,children:(0,l.jsx)(p,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})}));function ma({icon:e,name:t,action:r,type:o}){const n={icon:e},a=(0,s.forwardRef)(((e,s)=>{const{icon:a,...i}=de(t,n,e),c=a,d=aa(),u="next"===o?d.active===d.total:1===d.active;return(0,l.jsx)(ca,{disabled:d.disabled||u,ref:s,onClick:d[r],withPadding:!1,...i,children:(0,l.jsx)(c,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})}));return a.displayName=`@mantine/core/${t}`,a}pa.classes=ia,pa.displayName="@mantine/core/PaginationDots";const fa=ma({icon:e=>(0,l.jsx)(da,{...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"}),ha=ma({icon:e=>(0,l.jsx)(da,{...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"}),ya=ma({icon:e=>(0,l.jsx)(da,{...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"}),ba=ma({icon:e=>(0,l.jsx)(da,{...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 ga({dotsIcon:e}){const t=aa(),r=t.range.map(((r,o)=>"dots"===r?(0,l.jsx)(pa,{icon:e},o):(0,l.jsx)(ca,{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,l.jsx)(l.Fragment,{children:r})}function va(e,t){const r=t-e+1;return Array.from({length:r},((t,r)=>r+e))}ga.displayName="@mantine/core/PaginationItems";const wa="dots";function xa({total:e,siblings:t=1,boundaries:r=1,page:o,initialPage:n=1,onChange:a}){const i=Math.max(Math.trunc(e),0),[l,c]=ee({value:o,onChange:a,defaultValue:n,finalValue:n}),d=e=>{c(e<=0?1:e>i?i:e)};return{range:(0,s.useMemo)((()=>{if(2*t+3+2*r>=i)return va(1,i);const e=Math.max(l-t,r),o=Math.min(l+t,i-r),n=e>r+2,s=o<i-(r+1);if(!n&&s)return[...va(1,2*t+r+2),wa,...va(i-(r-1),i)];if(n&&!s){const e=r+1+2*t;return[...va(1,r),wa,...va(i-e,i)]}return[...va(1,r),wa,...va(e,o),wa,...va(i-r+1,i)]}),[i,t,l]),active:l,setPage:d,next:()=>d(l+1),previous:()=>d(l-1),first:()=>d(1),last:()=>d(i)}}function _a(e,t){return r=>{e?.(r),t?.(r)}}const Sa={siblings:1,boundaries:1},Ca=(e,{size:t,radius:r,color:o,autoContrast:n})=>({root:{"--pagination-control-radius":void 0===r?void 0:se(r),"--pagination-control-size":oe(t,"pagination-control-size"),"--pagination-control-fz":ae(t),"--pagination-active-bg":o?N(o,e):void 0,"--pagination-active-color":le(n,e)?H({color:o,theme:e,autoContrast:n}):void 0}}),Na=Be(((e,t)=>{const r=de("PaginationRoot",Sa,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,total:d,value:u,defaultValue:p,onChange:m,disabled:f,siblings:h,boundaries:y,color:b,radius:g,onNextPage:v,onPreviousPage:w,onFirstPage:x,onLastPage:_,getItemProps:S,autoContrast:C,...N}=r,j=Se({name:"Pagination",classes:ia,props:r,className:n,style:s,classNames:o,styles:a,unstyled:i,vars:c,varsResolver:Ca}),{range:P,setPage:$,next:k,previous:E,active:T,first:R,last:O}=xa({page:u,initialPage:p,onChange:m,total:d,siblings:h,boundaries:y}),D=_a(v,k),A=_a(w,E),z=_a(x,R),L=_a(_,O);return(0,l.jsx)(sa,{value:{total:d,range:P,active:T,disabled:f,getItemProps:S,onChange:$,onNext:D,onPrevious:A,onFirst:z,onLast:L,getStyles:j},children:(0,l.jsx)(We,{ref:t,...j("root"),...N})})}));Na.classes=ia,Na.displayName="@mantine/core/PaginationRoot";const ja={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},Pa=Be(((e,t)=>{const r=de("Pagination",ja,e),{withEdges:o,withControls:n,getControlProps:s,nextIcon:a,previousIcon:i,lastIcon:c,firstIcon:d,dotsIcon:u,total:p,gap:m,hideWithOnePage:f,withPages:h,...y}=r;return p<=0||f&&1===p?null:(0,l.jsx)(Na,{ref:t,total:p,...y,children:(0,l.jsxs)(na,{gap:m,children:[o&&(0,l.jsx)(ya,{icon:d,...s?.("first")}),n&&(0,l.jsx)(ha,{icon:i,...s?.("previous")}),h&&(0,l.jsx)(ga,{dotsIcon:u}),n&&(0,l.jsx)(fa,{icon:a,...s?.("next")}),o&&(0,l.jsx)(ba,{icon:c,...s?.("last")})]})})}));Pa.classes=ia,Pa.displayName="@mantine/core/Pagination",Pa.Root=Na,Pa.Control=ca,Pa.Dots=pa,Pa.First=ya,Pa.Last=ba,Pa.Next=fa,Pa.Previous=ha,Pa.Items=ga;var $a={root:"m_18320242","skeleton-fade":"m_299c329c"};const ka={visible:!0,animate:!0},Ea=(e,{width:t,height:r,radius:o,circle:n})=>({root:{"--skeleton-height":b(r),"--skeleton-width":b(n?r:t),"--skeleton-radius":n?"1000px":void 0===o?void 0:se(o)}}),Ta=Be(((e,t)=>{const r=de("Skeleton",ka,e),{classNames:o,className:n,style:s,styles:a,unstyled:i,vars:c,width:d,height:u,circle:p,visible:m,radius:f,animate:h,mod:y,...b}=r,g=Se({name:"Skeleton",classes:$a,props:r,className:n,style:s,classNames:o,styles:a,unstyled:i,vars:c,varsResolver:Ea});return(0,l.jsx)(We,{ref:t,...g("root"),mod:[{visible:m,animate:h},y],...b})}));Ta.classes=$a,Ta.displayName="@mantine/core/Skeleton";const Ra=()=>(0,l.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,l.jsx)("path",{d:"m6 9 6 6 6-6"})}),Oa=()=>(0,l.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,l.jsx)("path",{d:"M10 12h11"}),(0,l.jsx)("path",{d:"M10 18h11"}),(0,l.jsx)("path",{d:"M10 6h11"}),(0,l.jsx)("path",{d:"M4 10h2"}),(0,l.jsx)("path",{d:"M4 6h1v4"}),(0,l.jsx)("path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"})]}),Da=()=>(0,l.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,l.jsx)("path",{d:"m21 21-4.34-4.34"}),(0,l.jsx)("circle",{cx:"11",cy:"11",r:"8"})]}),Aa=()=>(0,l.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,l.jsx)("path",{d:"M18 6 6 18"}),(0,l.jsx)("path",{d:"m6 6 12 12"})]}),za=()=>(0,l.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,l.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,l.jsx)("path",{d:"M19 12H5"})]}),La=window.wp.i18n,Ia=window.wp.apiFetch;var Ma=n.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,s.useState)([]),[o,n]=(0,s.useState)(e),[a,i]=(0,s.useState)(0);return(0,s.useEffect)((()=>{e?(async()=>{n(!0);try{const e=await Ma()({path:"/eb/api/v1/user-account/orders"});r(e.orders||[]),i(e.total_orders||0)}catch(e){console.error("Error fetching orders data:",e)}finally{n(!1)}})():n(!1)}),[e]),{orders:t,totalOrders:a,isLoading:o}})(),[r,o]=(0,s.useState)(""),[n,a]=(0,s.useState)(null),[i,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(1),[p,m]=(0,s.useState)(10),f=e=>{n!==e?(a(e),c(!1)):i?(a(null),c(!1)):c(!0)},h=e=>{const t=n===e,r=i;return(0,l.jsxs)("div",{className:"eb-orders__table-header-item-icon",children:[(0,l.jsx)("div",{style:{color:t&&!r?"#008b91":"#abbebe"},children:"▲"}),(0,l.jsx)("div",{style:{color:t&&r?"#008b91":"#abbebe"},children:"▼"})]})},y=(0,s.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=g(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 n&&t.sort(((e,t)=>{let r=e[n],o=t[n];return"date"===n&&(r=new Date(r),o=new Date(o)),"courses"===n&&(r=e.courses&&e.courses.length>0?e.courses[0].title:"",o=t.courses&&t.courses.length>0?t.courses[0].title:""),r<o?i?1:-1:r>o?i?-1:1:0})),t}),[e,r,n,i]),b=(0,s.useMemo)((()=>{if("all"===p)return y;const e=(d-1)*p,t=e+p;return y.slice(e,t)}),[y,d,p]);function g(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}return t?(0,l.jsx)(Ha,{}):(0,l.jsxs)("div",{className:"eb-user-account__eb-orders",children:[(0,l.jsxs)("div",{className:"eb-orders__filter",children:[(0,l.jsx)(Js,{value:p.toString(),onChange:e=>{m("all"===e?"all":Number(e)),u(1)},data:[{value:"5",label:(0,La.__)("5 per page","edwiser-bridge")},{value:"10",label:(0,La.__)("10 per page","edwiser-bridge")},{value:"25",label:(0,La.__)("25 per page","edwiser-bridge")},{value:"all",label:(0,La.__)("All","edwiser-bridge")}],comboboxProps:{withinPortal:!1},checkIconPosition:"right",maxDropdownHeight:350,rightSection:(0,l.jsx)(Ra,{}),leftSection:(0,l.jsx)(Oa,{}),allowDeselect:!1}),(0,l.jsx)(ea,{placeholder:(0,La.__)("Search by course name, date, order ID, or status...","edwiser-bridge"),value:r,onChange:e=>{u(1),o(e.currentTarget.value)},leftSection:(0,l.jsx)(Da,{}),leftSectionPointerEvents:"none"})]}),0===y.length?(0,l.jsxs)("div",{className:"eb-orders__empty-state",children:[(0,l.jsx)("h4",{className:"eb-orders__empty-state-title",children:(0,La.__)("No orders found","edwiser-bridge")}),(0,l.jsx)("p",{className:"eb-orders__empty-state-description",children:r?(0,La.__)("No orders match your search criteria. Try adjusting your search terms.","edwiser-bridge"):(0,La.__)("You haven't placed any orders yet. Browse our products to get started!","edwiser-bridge")})]}):(0,l.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,l.jsxs)("table",{className:"eb-orders__table",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"eb-orders__table-header",children:[(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--order-id",onClick:()=>f("eb_order_id"),children:(0,l.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,La.__)("Order ID","edwiser-bridge"),h("eb_order_id")]})}),(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--course",onClick:()=>f("courses"),children:(0,l.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,La.__)("Course","edwiser-bridge"),h("courses")]})}),(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--date",onClick:()=>f("date"),children:(0,l.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,La.__)("Date","edwiser-bridge"),h("date")]})}),(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--status",onClick:()=>f("status"),children:(0,l.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,La.__)("Status","edwiser-bridge"),h("status")]})})]})}),(0,l.jsx)("tbody",{children:b.map((e=>(0,l.jsxs)("tr",{className:"eb-orders__table-row",children:[(0,l.jsxs)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--order-id",children:["#",e.eb_order_id]}),(0,l.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--course",children:e.courses&&e.courses.length>0?(0,l.jsx)("ul",{className:"eb-user-order-courses",children:e.courses.map(((e,t)=>(0,l.jsx)("li",{children:e.link?(0,l.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"eb-orders__course-link",children:Fa(e.title)}):(0,l.jsx)("span",{children:e.title})},t)))}):(0,l.jsx)("span",{children:(0,La.__)("No courses available","edwiser-bridge")})}),(0,l.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--date",children:g(e.date)}),(0,l.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--status",children:e.status})]},e.eb_order_id)))})]})}),y.length>0&&(0,l.jsxs)("div",{className:"eb-orders__pagination",children:[(0,l.jsx)("span",{className:"eb-orders__pagination-text",children:"all"===p?(0,l.jsxs)(l.Fragment,{children:[(0,La.__)("Showing all","edwiser-bridge")," ",y.length," ",(0,La.__)("entries","edwiser-bridge")]}):(0,l.jsxs)(l.Fragment,{children:[(0,La.__)("Showing","edwiser-bridge")," ",Math.min((d-1)*p+1,y.length)," ",(0,La.__)("to","edwiser-bridge")," ",Math.min(d*p,y.length)," ",(0,La.__)("of","edwiser-bridge")," ",y.length," ",(0,La.__)("entries","edwiser-bridge")]})}),"all"!==p&&(0,l.jsx)(Pa,{total:Math.ceil(y.length/p),value:d,onChange:u,size:"sm"})]})]})},Ha=()=>(0,l.jsxs)("div",{className:"eb-user-account__orders",children:[(0,l.jsxs)("div",{className:"eb-orders__filter",children:[(0,l.jsx)(Ta,{width:160,height:36}),(0,l.jsx)(Ta,{width:280,height:36})]}),(0,l.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,l.jsx)(Ta,{width:"100%",height:480})}),(0,l.jsxs)("div",{className:"eb-orders__pagination",children:[(0,l.jsx)(Ta,{width:180,height:20}),(0,l.jsx)(Ta,{width:240,height:32})]})]}),Ba=({order:e,onClose:t,isLoading:r=!1})=>{return e?(0,l.jsx)("div",{className:"eb-order-details",children:r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Ta,{height:40,width:120}),(0,l.jsx)("div",{className:"eb-order-details__content",style:{marginTop:"24px"},children:(0,l.jsx)(Ta,{height:450,width:"100%"})})]}):e&&e.detailsHtml?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"eb-order-details__header",children:[(0,l.jsxs)("button",{className:"eb-order-details__back-button",onClick:t,"aria-label":(0,La.__)("Back to orders","edwiser-bridge"),children:[(0,l.jsx)(za,{})," ",(0,La.__)("Back to Orders","edwiser-bridge")]}),(0,l.jsxs)("div",{className:"eb-order-details__meta",children:[(0,La.__)("Order","edwiser-bridge")," ",(0,l.jsxs)("strong",{children:["#",e.id]})," ",(0,La.__)("was placed on","edwiser-bridge")," ",(0,l.jsx)("strong",{children:(o=e.date_created,new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}))})," ",(0,La.__)("and is currently","edwiser-bridge")," ",(0,l.jsx)("strong",{style:{textTransform:"capitalize"},children:(0,La.__)(e.status,"edwiser-bridge")})]})]}),(0,l.jsx)("div",{className:"eb-order-details__woocommerce-content",dangerouslySetInnerHTML:{__html:e.detailsHtml}})]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"eb-order-details__content",children:(0,l.jsxs)("div",{className:"eb-order-details__error",children:[(0,l.jsx)("h4",{children:(0,La.__)("Failed to load order details","edwiser-bridge")}),(0,l.jsx)("p",{children:(0,La.__)("There was an error loading the order details.","edwiser-bridge")}),(0,l.jsxs)("button",{className:"eb-order-details__back-button",onClick:t,"aria-label":(0,La.__)("Back to orders","edwiser-bridge"),children:[(0,l.jsx)(za,{})," ",(0,La.__)("Back to Orders","edwiser-bridge")]})]})})})}):null;var o},Va=function(){const{orders:e,isLoading:t,totalOrders:r,totalPages:o,currentPage:n,perPage:a,setCurrentPage:i,setPerPage:c,search:d,setSearch:u,orderBy:p,setOrderBy:m,order:f,setOrder:h}=((e=!0)=>{const[t,r]=(0,s.useState)([]),[o,n]=(0,s.useState)(e),[a,i]=(0,s.useState)(0),[l,c]=(0,s.useState)(1),[d,u]=(0,s.useState)(10),[p,m]=(0,s.useState)(0),[f,h]=(0,s.useState)(""),[y,b]=(0,s.useState)("date"),[g,v]=(0,s.useState)("desc"),w=(0,s.useCallback)((()=>{const e=new URLSearchParams;return e.append("page",l.toString()),e.append("per_page",d.toString()),e.append("orderby",y),e.append("order",g),e.append("status","pending,processing,on-hold,completed,cancelled,refunded,failed"),f&&e.append("search",f),e.toString()}),[l,d,f,y,g]),x=(0,s.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([]),i(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"))),i(parseInt(o.headers.get("X-WP-Total")));const s=await o.json();r(s)}catch(e){console.error("Error fetching WooCommerce orders:",e),r([]),i(0)}finally{n(!1)}}else n(!1)}),[e,w]);return(0,s.useEffect)((()=>{x()}),[x]),{orders:t,totalOrders:a,totalPages:p,isLoading:o,currentPage:l,perPage:d,setCurrentPage:c,setPerPage:u,search:f,setSearch:h,orderBy:y,setOrderBy:b,order:g,setOrder:v}})(),[y,b]=(0,s.useState)(p),[g,v]=(0,s.useState)("desc"===f),[w,x]=(0,s.useState)(d),[_,S]=(0,s.useState)({type:"",text:""}),[C,N]=(0,s.useState)(null),[j,P]=(0,s.useState)(!1),[$,k]=(0,s.useState)(!1),E=(e=>{const[t,r]=(0,s.useState)(e);return(0,s.useEffect)((()=>{const t=setTimeout((()=>{r(e)}),300);return()=>{clearTimeout(t)}}),[e,300]),t})(w);(0,s.useEffect)((()=>{if("true"===new URLSearchParams(window.location.search).get("cancelled")){S({type:"success",text:(0,La.__)("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,s.useEffect)((()=>{E!==d&&u(E)}),[E,d,u]),(0,s.useEffect)((()=>{x(d)}),[d]),(0,s.useEffect)((()=>{b(p),v("desc"===f)}),[p,f]);const T=e=>{y!==e?(b(e),v(!1),m(e),h("asc")):g?"date"===e?(v(!1),h("asc")):(b("date"),v(!0),m("date"),h("desc")):(v(!0),h("desc"))},R=e=>{const t=y===e,r=g;return(0,l.jsxs)("div",{className:"eb-orders__table-header-item-icon",children:[(0,l.jsx)("div",{style:{color:t&&!r?"#008b91":"#abbebe"},children:"▲"}),(0,l.jsx)("div",{style:{color:t&&r?"#008b91":"#abbebe"},children:"▼"})]})},O=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),D=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,l.jsxs)("span",{className:"eb-orders__total-with-refund",children:[(0,l.jsx)("span",{className:"eb-orders__original-total",children:O(t,n)})," ",(0,l.jsx)("span",{className:"eb-orders__net-total",children:O(o,n)})]}):(0,l.jsx)("strong",{children:O(t,n)})};return(0,l.jsxs)("div",{className:"eb-user-account__wc-orders",children:[!j&&(0,l.jsxs)("div",{className:"eb-orders__filter",children:[(0,l.jsx)(Js,{value:a===r?"all":a.toString(),onChange:e=>{c("all"===e?r:Number(e)),i(1)},data:[{value:"5",label:(0,La.__)("5 per page","edwiser-bridge")},{value:"10",label:(0,La.__)("10 per page","edwiser-bridge")},{value:"25",label:(0,La.__)("25 per page","edwiser-bridge")},{value:"all",label:(0,La.__)("All","edwiser-bridge")}],comboboxProps:{withinPortal:!1},checkIconPosition:"right",maxDropdownHeight:350,rightSection:(0,l.jsx)(Ra,{}),leftSection:(0,l.jsx)(Oa,{}),allowDeselect:!1}),(0,l.jsx)(ea,{placeholder:(0,La.__)("Search by product name","edwiser-bridge"),value:w,onChange:e=>{i(1),x(e.currentTarget.value)},leftSection:(0,l.jsx)(Da,{}),leftSectionPointerEvents:"none"})]}),_.text&&(0,l.jsxs)("div",{className:`eb-orders__notice eb-orders__notice--${_.type} eb-orders__notice--animated`,children:[(0,l.jsx)("span",{className:"eb-orders__notice-text",children:_.text}),(0,l.jsx)("button",{type:"button",className:"eb-orders__notice-close",onClick:()=>{S({type:"",text:""})},"aria-label":(0,La.__)("Close notice","edwiser-bridge"),children:(0,l.jsx)(Aa,{})})]}),!j&&(t?(0,l.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,l.jsx)(Ta,{width:"100%",height:480})}):0===e.length?(0,l.jsxs)("div",{className:"eb-orders__empty-state",children:[(0,l.jsx)("h4",{className:"eb-orders__empty-state-title",children:(0,La.__)("No orders found","edwiser-bridge")}),(0,l.jsx)("p",{className:"eb-orders__empty-state-description",children:w?(0,l.jsxs)(l.Fragment,{children:[(0,La.__)("No orders matching your search","edwiser-bridge")," ",(0,La.__)("for","edwiser-bridge")," ",w]}):(0,La.__)("You haven't placed any orders yet. Browse our products to get started!","edwiser-bridge")})]}):(0,l.jsx)("div",{className:"eb-orders__table-wrapper",children:(0,l.jsxs)("table",{className:"eb-orders__table",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"eb-orders__table-header",children:[(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--order-id",onClick:()=>T("id"),children:(0,l.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,La.__)("Order","edwiser-bridge"),R("id")]})}),(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--total",children:(0,l.jsx)("div",{className:"eb-orders__table-header-item-content",children:(0,La.__)("Total","edwiser-bridge")})}),(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--date",onClick:()=>T("date"),children:(0,l.jsxs)("div",{className:"eb-orders__table-header-item-content",children:[(0,La.__)("Date","edwiser-bridge"),R("date")]})}),(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--status",children:(0,l.jsx)("div",{className:"eb-orders__table-header-item-content",children:(0,La.__)("Status","edwiser-bridge")})}),(0,l.jsx)("th",{className:"eb-orders__table-header-item eb-orders__table-header-item--actions",children:(0,l.jsx)("div",{className:"eb-orders__table-header-item-content",children:(0,La.__)("Actions","edwiser-bridge")})})]})}),(0,l.jsx)("tbody",{children:e.map((e=>{return(0,l.jsxs)("tr",{className:"eb-orders__table-row",children:[(0,l.jsxs)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--order-id",children:["#",e.number||e.id]}),(0,l.jsxs)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--total",children:[D(e)," ",(0,La.__)(" for","edwiser-bridge")," ",e.line_items.reduce(((e,t)=>e+t.quantity),0)," ",(0,La.__)("items","edwiser-bridge")]}),(0,l.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,l.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--status",children:(0,l.jsx)("span",{className:`eb-orders__status eb-orders__status--${e.status}`,children:e.status})}),(0,l.jsx)("td",{className:"eb-orders__table-row-item eb-orders__table-row-item--actions",children:(0,l.jsxs)("div",{className:"row-actions",children:[["pending","failed"].includes(e.status)&&e.needs_payment&&(0,l.jsx)("a",{href:e.payment_url,rel:"noopener noreferrer",children:(0,La.__)("Pay","edwiser-bridge")}),(0,l.jsx)("button",{type:"button",className:"eb-orders__view-button",onClick:()=>(async e=>{try{k(!0),P(!0),N(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?N({...e,detailsHtml:o.data.html}):N({...e,detailsHtml:""})}catch(e){console.error("Error loading order details:",e)}finally{k(!1)}})(e),children:(0,La.__)("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,l.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,La.__)("Cancel","edwiser-bridge")})]})})]},e.id);var t}))})]})})),!j&&e.length>0&&!t&&(0,l.jsxs)("div",{className:"eb-orders__pagination",children:[(0,l.jsxs)("span",{className:"eb-orders__pagination-text",children:[(0,La.__)("Showing","edwiser-bridge")," ",Math.min((n-1)*a+1,r)," ",(0,La.__)("to","edwiser-bridge")," ",Math.min(n*a,r)," ",(0,La.__)("of","edwiser-bridge")," ",r," ",(0,La.__)("entries","edwiser-bridge")]}),(0,l.jsx)(Pa,{total:o,value:n,onChange:i,size:"sm"})]}),j&&C&&(0,l.jsx)(Ba,{order:C,onClose:()=>{P(!1),N(null),k(!1)},isLoading:$})]})},Ya=function({pageTitle:e,hidePageTitle:t,enableEdwiserOrders:r,enableWooCommerceOrders:o,defaultTab:n}){const[a,i]=(0,s.useState)(n||"eb-orders");return(0,s.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)?i(e):t.length>0&&!e&&i(t[0])}),[r,o]),(0,l.jsx)(Z,{children:(0,l.jsxs)("div",{className:"eb-user-account__orders",children:[!t&&(0,l.jsx)("h3",{className:"eb-orders__title",children:e}),r&&o&&(0,l.jsxs)(ut,{value:a,onChange:e=>{i(e);const t=new URL(window.location);t.searchParams.set("order-type",e),window.history.replaceState({},"",t)},style:{marginTop:"3em"},children:[(0,l.jsxs)(ut.List,{children:[(0,l.jsx)(ut.Tab,{value:"eb-orders",children:(0,La.__)("Edwiser Orders","edwiser-bridge")}),(0,l.jsx)(ut.Tab,{value:"wc-orders",children:(0,La.__)("WooCommerce Orders","edwiser-bridge")})]}),(0,l.jsx)(ut.Panel,{value:"eb-orders",children:(0,l.jsx)(Wa,{})}),(0,l.jsx)(ut.Panel,{value:"wc-orders",children:(0,l.jsx)(Va,{})})]}),r&&!o&&(0,l.jsx)("div",{style:{marginTop:"3em"},children:(0,l.jsx)(Wa,{})}),o&&!r&&(0,l.jsx)("div",{style:{marginTop:"3em"},children:(0,l.jsx)(Va,{})})]})})};document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll('[id^="eb-orders-"]').forEach((e=>{if(e){const t={pageTitle:e.dataset.pageTitle||"",hidePageTitle:"true"===e.dataset.hidePageTitle,enableEdwiserOrders:"true"===e.dataset.enableEdwiserOrders,enableWooCommerceOrders:"true"===e.dataset.enableWooCommerceOrders,defaultTab:e.dataset.defaultTab||"eb-orders"};i.createRoot(e).render((0,l.jsx)(Ya,{...t}))}}))}))})();