(()=>{"use strict";var e={338(e,r,t){var o=t(795);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},795(e){e.exports=window.ReactDOM}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var s=r[o]={exports:{}};return e[o](s,s.exports,t),s.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);const o=window.React;var n=t.n(o),s=t(338);const a=window.ReactJSXRuntime;function i(e){return"auto"===e||"dark"===e||"light"===e}function c({key:e="mantine-color-scheme-value"}={}){let r;return{get:r=>{if("undefined"==typeof window)return r;try{const t=window.localStorage.getItem(e);return i(t)?t:r}catch{return r}},set:r=>{try{window.localStorage.setItem(e,r)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:t=>{r=r=>{r.storageArea===window.localStorage&&r.key===e&&i(r.newValue)&&t(r.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const l=(0,o.createContext)(null);function d(){const e=(0,o.useContext)(l);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function m(){return d().getStyleNonce}function h(e){return Object.keys(e)}function u(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function p(e,{shouldScale:r=!1}={}){return function t(o){if(0===o||"0"===o)return`0${e}`;if("number"==typeof o){const t=`${o/16}${e}`;return r?u(t):t}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=>t(e)).join(",");if(o.includes(" "))return o.split(" ").map(e=>t(e)).join(" ");if(o.includes(e))return r?u(o):o;const n=o.replace("px","");if(!Number.isNaN(Number(n))){const t=`${Number(n)/16}${e}`;return r?u(t):t}}return o}}const f=p("rem",{shouldScale:!0}),y=p("em");function g(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)?function(e){let r=e.replace("#","");if(3===r.length){const e=r.split("");r=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===r.length){const e=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:e}}const t=parseInt(r,16);return{r:t>>16&255,g:t>>8&255,b:255&t,a:1}}(e):e.startsWith("rgb")?function(e){const[r,t,o,n]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:t,b:o,a:void 0===n?1:n}}(e):e.startsWith("hsl")?function(e){const r=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!r)return{r:0,g:0,b:0,a:1};const t=parseInt(r[1],10),o=parseInt(r[2],10)/100,n=parseInt(r[3],10)/100,s=r[5]?parseFloat(r[5]):void 0,a=(1-Math.abs(2*n-1))*o,i=t/60,c=a*(1-Math.abs(i%2-1)),l=n-a/2;let d,m,h;return i>=0&&i<1?(d=a,m=c,h=0):i>=1&&i<2?(d=c,m=a,h=0):i>=2&&i<3?(d=0,m=a,h=c):i>=3&&i<4?(d=0,m=c,h=a):i>=4&&i<5?(d=c,m=0,h=a):(d=a,m=0,h=c),{r:Math.round(255*(d+l)),g:Math.round(255*(m+l)),b:Math.round(255*(h+l)),a:s||1}}(e):{r:0,g:0,b:0,a:1}}function b(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*r}%)`;const{r:t,g:o,b:n,a:s}=g(e),a=1-r,i=e=>Math.round(e*a);return`rgba(${i(t)}, ${i(o)}, ${i(n)}, ${s})`}function v(e,r){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===r?e.primaryShade.dark:e.primaryShade.light}function x(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function $(e,r=.179){return!e.startsWith("var(")&&function(e){if(e.startsWith("oklch("))return(function(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}(e)||0)/100;const{r,g:t,b:o}=g(e),n=t/255,s=o/255;return.2126*x(r/255)+.7152*x(n)+.0722*x(s)}(e)>r}function w({color:e,theme:r,colorScheme:t}){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"===t?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:$("dark"===t?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===e)return{color:e,value:"dark"===t?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:$("dark"===t?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===e||"black"===e)return{color:e,value:"white"===e?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:$("white"===e?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,n]=e.split("."),s=n?Number(n):void 0,a=o in r.colors;if(a){const e=void 0!==s?r.colors[o][s]:r.colors[o][v(r,t||"light")];return{color:o,value:e,shade:s,isThemeColor:a,isLight:$(e,r.luminanceThreshold),variable:n?`--mantine-color-${o}-${s}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:$(e,r.luminanceThreshold),shade:s,variable:void 0}}function j(e,r){const t=w({color:e||r.primaryColor,theme:r});return t.variable?`var(${t.variable})`:e}function _(e,r){const t={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=j(t.from,r),n=j(t.to,r);return`linear-gradient(${t.deg}deg, ${o} 0%, ${n} 100%)`}function C(e,r){if("string"!=typeof e||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${100*(1-r)}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:t,g:o,b:n}=g(e);return`rgba(${t}, ${o}, ${n}, ${r})`}const N=C,k="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",S={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:r,variant:t,gradient:o,autoContrast:n})=>{const s=w({color:e,theme:r}),a="boolean"==typeof n?n:r.autoContrast;if("filled"===t){const r=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:r,border:`${f(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:r,border:`${f(1)} solid transparent`}:{background:e,hover:b(e,.1),color:r,border:`${f(1)} solid transparent`}}if("light"===t){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:`${f(1)} solid transparent`};const t=r.colors[s.color][s.shade];return{background:C(t,.1),hover:C(t,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${f(1)} solid transparent`}}return{background:C(e,.1),hover:C(e,.12),color:e,border:`${f(1)} solid transparent`}}return"outline"===t?s.isThemeColor?void 0===s.shade?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${f(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:C(r.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${f(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:C(e,.05),color:e,border:`${f(1)} solid ${e}`}:"subtle"===t?s.isThemeColor?void 0===s.shade?{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${f(1)} solid transparent`}:{background:"transparent",hover:C(r.colors[s.color][s.shade],.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${f(1)} solid transparent`}:{background:"transparent",hover:C(e,.12),color:e,border:`${f(1)} solid transparent`}:"transparent"===t?s.isThemeColor?void 0===s.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${f(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${f(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${f(1)} solid transparent`}:"white"===t?s.isThemeColor?void 0===s.shade?{background:"var(--mantine-color-white)",hover:b(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${f(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:b(r.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${f(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:b(r.white,.01),color:e,border:`${f(1)} solid transparent`}:"gradient"===t?{background:_(o,r),hover:_(o,r),color:"var(--mantine-color-white)",border:"none"}:"default"===t?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${f(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:f(34),lineHeight:"1.3"},h2:{fontSize:f(26),lineHeight:"1.35"},h3:{fontSize:f(22),lineHeight:"1.4"},h4:{fontSize:f(18),lineHeight:"1.45"},h5:{fontSize:f(16),lineHeight:"1.5"},h6:{fontSize:f(14),lineHeight:"1.5"}}},fontSizes:{xs:f(12),sm:f(14),md:f(16),lg:f(18),xl:f(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:f(2),sm:f(4),md:f(8),lg:f(16),xl:f(32)},spacing:{xs:f(10),sm:f(12),md:f(16),lg:f(20),xl:f(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${f(1)} ${f(3)} rgba(0, 0, 0, 0.05), 0 ${f(1)} ${f(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${f(1)} ${f(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${f(10)} ${f(15)} ${f(-5)}, rgba(0, 0, 0, 0.04) 0 ${f(7)} ${f(7)} ${f(-5)}`,md:`0 ${f(1)} ${f(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${f(20)} ${f(25)} ${f(-5)}, rgba(0, 0, 0, 0.04) 0 ${f(10)} ${f(10)} ${f(-5)}`,lg:`0 ${f(1)} ${f(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${f(28)} ${f(23)} ${f(-7)}, rgba(0, 0, 0, 0.04) 0 ${f(12)} ${f(12)} ${f(-7)}`,xl:`0 ${f(1)} ${f(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${f(36)} ${f(28)} ${f(-7)}, rgba(0, 0, 0, 0.04) 0 ${f(17)} ${f(17)} ${f(-7)}`},other:{},components:{}};function R(e){return e&&"object"==typeof e&&!Array.isArray(e)}function E(e,r){const t={...e},o=r;return R(e)&&R(r)&&Object.keys(r).forEach(r=>{R(o[r])?t[r]=r in e?E(t[r],o[r]):o[r]:t[r]=o[r]}),t}const M="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function T(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function z(e){if(!(e.primaryColor in e.colors))throw new Error("[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");if(!("object"!=typeof e.primaryShade||T(e.primaryShade.dark)&&T(e.primaryShade.light)))throw new Error(M);if("number"==typeof e.primaryShade&&!T(e.primaryShade))throw new Error(M)}const A=(0,o.createContext)(null);function F(){const e=(0,o.useContext)(A);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:r,inherit:t=!0}){const n=(0,o.useContext)(A)||S,s=(0,o.useMemo)(()=>function(e,r){if(!r)return z(e),e;const t=E(e,r);return r.fontFamily&&!r.headings?.fontFamily&&(t.headings.fontFamily=r.fontFamily),z(t),t}(t?n:S,e),[e,n,t]);return(0,a.jsx)(A.Provider,{value:s,children:r})}function L(){const e=F(),r=m(),t=h(e.breakpoints).reduce((r,t)=>{const o=e.breakpoints[t].includes("px"),n=function(e){const r=function(e){return"string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e}(e);return"number"==typeof r?r:"string"==typeof r?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?16*Number(r.replace("rem","")):r.includes("em")?16*Number(r.replace("em","")):Number(r):NaN}(e.breakpoints[t]);return`${r}@media (max-width: ${o?n-.1+"px":y(n-.1)}){.mantine-visible-from-${t} {display: none !important;}}@media (min-width: ${o?`${n}px`:y(n)}){.mantine-hidden-from-${t} {display: none !important;}}`},"");return(0,a.jsx)("style",{"data-mantine-styles":"classes",nonce:r?.(),dangerouslySetInnerHTML:{__html:t}})}function P(e){return Object.entries(e).map(([e,r])=>`${e}: ${r};`).join("")}function H(e,r){return(Array.isArray(e)?e:[e]).reduce((e,r)=>`${r}{${e}}`,r)}function W(e,r){return function({color:e,theme:r,autoContrast:t}){return("boolean"==typeof t?t:r.autoContrast)&&w({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}({color:e.colors[e.primaryColor][v(e,r)],theme:e,autoContrast:null})}function V({theme:e,color:r,colorScheme:t,name:o=r,withColorValues:n=!0}){if(!e.colors[r])return{};if("light"===t){const t=v(e,"light"),s={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${t})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${9===t?8:t+1})`,[`--mantine-color-${o}-light`]:N(e.colors[r][t],.1),[`--mantine-color-${o}-light-hover`]:N(e.colors[r][t],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${t})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${t})`,[`--mantine-color-${o}-outline-hover`]:N(e.colors[r][t],.05)};return n?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...s}:s}const s=v(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`]:N(e.colors[r][Math.max(0,s-2)],.15),[`--mantine-color-${o}-light-hover`]:N(e.colors[r][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`]:N(e.colors[r][Math.max(s-4,0)],.05)};return n?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...a}:a}function O(e,r,t){h(r).forEach(o=>Object.assign(e,{[`--mantine-${t}-${o}`]:r[o]}))}I.displayName="@mantine/core/MantineThemeProvider";const B=e=>{const r=v(e,"light"),t=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:f(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":t,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":W(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}-${r})`,"--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":W(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)"}};O(o.variables,e.breakpoints,"breakpoint"),O(o.variables,e.spacing,"spacing"),O(o.variables,e.fontSizes,"font-size"),O(o.variables,e.lineHeights,"line-height"),O(o.variables,e.shadows,"shadow"),O(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((r,t)=>{o.variables[`--mantine-primary-color-${t}`]=`var(--mantine-color-${e.primaryColor}-${t})`}),h(e.colors).forEach(r=>{const t=e.colors[r];if(function(e){return!!e&&"object"==typeof e&&"mantine-virtual-color"in e}(t))return Object.assign(o.light,V({theme:e,name:t.name,color:t.light,colorScheme:"light",withColorValues:!0})),void Object.assign(o.dark,V({theme:e,name:t.name,color:t.dark,colorScheme:"dark",withColorValues:!0}));t.forEach((e,t)=>{o.variables[`--mantine-color-${r}-${t}`]=e}),Object.assign(o.light,V({theme:e,color:r,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,V({theme:e,color:r,colorScheme:"dark",withColorValues:!1}))});const n=e.headings.sizes;return h(n).forEach(r=>{o.variables[`--mantine-${r}-font-size`]=n[r].fontSize,o.variables[`--mantine-${r}-line-height`]=n[r].lineHeight,o.variables[`--mantine-${r}-font-weight`]=n[r].fontWeight||e.headings.fontWeight}),o},q=B(S);function D({cssVariablesSelector:e,deduplicateCssVariables:r}){const t=F(),o=m(),n=function({theme:e,generator:r}){const t=B(e),o=r?.(e);return o?E(t,o):t}({theme:t,generator:d().cssVariablesResolver}),s=":root"===e&&r,i=function(e,r){const t=P(e.variables),o=t?H(r,t):"",n=P(e.dark),s=P(e.light);return`${o}${n?H(":host"===r?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,n):""}${s?H(":host"===r?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,s):""}`}(s?function(e){const r={variables:{},light:{},dark:{}};return h(e.variables).forEach(t=>{q.variables[t]!==e.variables[t]&&(r.variables[t]=e.variables[t])}),h(e.light).forEach(t=>{q.light[t]!==e.light[t]&&(r.light[t]=e.light[t])}),h(e.dark).forEach(t=>{q.dark[t]!==e.dark[t]&&(r.dark[t]=e.dark[t])}),r}(n):n,e);return i?(0,a.jsx)("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${i}${s?"":(c=e,`\n  ${c}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n  ${c}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n`)}`}}):null;var c}D.displayName="@mantine/CssVariables";const G="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function U(e,r){const t="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o="auto"!==e?e:t?"dark":"light";r()?.setAttribute("data-mantine-color-scheme",o)}function Z({theme:e,children:r,getStyleNonce:t,withStaticClasses:n=!0,withGlobalClasses:s=!0,deduplicateCssVariables:i=!0,withCssVariables:d=!0,cssVariablesSelector:m=":root",classNamesPrefix:h="mantine",colorSchemeManager:u=c(),defaultColorScheme:p="light",getRootElement:f=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:g,stylesTransform:b,env:v}){const{colorScheme:x,setColorScheme:$,clearColorScheme:w}=function({manager:e,defaultColorScheme:r,getRootElement:t,forceColorScheme:n}){const s=(0,o.useRef)(null),[a,i]=(0,o.useState)(()=>e.get(r)),c=n||a,l=(0,o.useCallback)(r=>{n||(U(r,t),i(r),e.set(r))},[e.set,c,n]),d=(0,o.useCallback)(()=>{i(r),U(r,t),e.clear()},[e.clear,r]);return(0,o.useEffect)(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),G(()=>{U(e.get(r),t)},[]),(0,o.useEffect)(()=>{if(n)return U(n,t),()=>{};void 0===n&&U(a,t),"undefined"!=typeof window&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const e=e=>{"auto"===a&&U(e.matches?"dark":"light",t)};return s.current?.addEventListener("change",e),()=>s.current?.removeEventListener("change",e)},[a,n]),{colorScheme:c,setColorScheme:l,clearColorScheme:d}}({defaultColorScheme:p,forceColorScheme:g,manager:u,getRootElement:f});return function({respectReducedMotion:e,getRootElement:r}){G(()=>{e&&r()?.setAttribute("data-respect-reduced-motion","true")},[e])}({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:f}),(0,a.jsx)(l.Provider,{value:{colorScheme:x,setColorScheme:$,clearColorScheme:w,getRootElement:f,classNamesPrefix:h,getStyleNonce:t,cssVariablesResolver:y,cssVariablesSelector:m,withStaticClasses:n,stylesTransform:b,env:v},children:(0,a.jsxs)(I,{theme:e,children:[d&&(0,a.jsx)(D,{cssVariablesSelector:m,deduplicateCssVariables:i}),s&&(0,a.jsx)(L,{}),r]})})}function J(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 r=/^[+-]?[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=>r.test(e))}return!1}function X(e,r="size",t=!0){if(void 0!==e)return J(e)?t?f(e):e:`var(--${r}-${e})`}function K(e){return Object.keys(e).reduce((r,t)=>(void 0!==e[t]&&(r[t]=e[t]),r),{})}function Q(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=Q(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}!function(){const e=console.error;console.error=(...r)=>{r.length>1&&"string"==typeof r[0]&&r[0].toLowerCase().includes("extra attributes from the server")&&"string"==typeof r[1]&&r[1].toLowerCase().includes("data-mantine-color-scheme")||e(...r)}}(),Z.displayName="@mantine/core/MantineProvider";const Y=function(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=Q(e))&&(o&&(o+=" "),o+=r);return o},ee={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"},re={};function te({theme:e,classNames:r,props:t,stylesCtx:o}){return function(e){const r={};return e.forEach(e=>{Object.entries(e).forEach(([e,t])=>{r[e]?r[e]=Y(r[e],t):r[e]=t})}),r}((Array.isArray(r)?r:[r]).map(r=>"function"==typeof r?r(e,t,o):r||re))}function oe({selector:e,stylesCtx:r,theme:t,classNames:o,props:n}){return te({theme:t,classNames:o,props:n,stylesCtx:r})[e]}function ne({theme:e,options:r,themeName:t,selector:o,classNamesPrefix:n,classNames:s,classes:a,unstyled:i,className:c,rootSelector:l,props:d,stylesCtx:m,withStaticClasses:h,headless:u,transformedStyles:p}){return Y(function({theme:e,options:r,unstyled:t}){return Y(r?.focusable&&!t&&(e.focusClassName||ee[e.focusRing]),r?.active&&!t&&e.activeClassName)}({theme:e,options:r,unstyled:i||u}),function({themeName:e,theme:r,selector:t,props:o,stylesCtx:n}){return e.map(e=>te({theme:r,classNames:r.components[e]?.classNames,props:o,stylesCtx:n})?.[t])}({theme:e,themeName:t,selector:o,props:d,stylesCtx:m}),function({options:e,classes:r,selector:t,unstyled:o}){return e?.variant&&!o?r[`${t}--${e.variant}`]:void 0}({options:r,classes:a,selector:o,unstyled:i}),oe({selector:o,stylesCtx:m,theme:e,classNames:s,props:d}),oe({selector:o,stylesCtx:m,theme:e,classNames:p,props:d}),function({selector:e,stylesCtx:r,options:t,props:o,theme:n}){return te({theme:n,classNames:t?.classNames,props:t?.props||o,stylesCtx:r})[e]}({selector:o,stylesCtx:m,options:r,props:d,theme:e}),function({rootSelector:e,selector:r,className:t}){return e===r?t:void 0}({rootSelector:l,selector:o,className:c}),function({selector:e,classes:r,unstyled:t}){return t?void 0:r[e]}({selector:o,classes:a,unstyled:i||u}),h&&!u&&function({themeName:e,classNamesPrefix:r,selector:t,withStaticClass:o}){return!1===o?[]:e.map(e=>`${r}-${e}-${t}`)}({themeName:t,classNamesPrefix:n,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function se({theme:e,styles:r,props:t,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((r,n)=>"function"==typeof n?{...r,...n(e,t,o)}:{...r,...n},{})}function ae({theme:e,themeName:r,props:t,stylesCtx:o,selector:n}){return r.map(r=>se({theme:e,styles:e.components[r]?.styles,props:t,stylesCtx:o})[n]).reduce((e,r)=>({...e,...r}),{})}function ie({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((e,t)=>({...e,...ie({style:t,theme:r})}),{}):"function"==typeof e?e(r):null==e?{}:e}function ce({vars:e,varsResolver:r,theme:t,props:o,stylesCtx:n,selector:s,themeName:a,headless:i}){return function(e){return e.reduce((e,r)=>(r&&Object.keys(r).forEach(t=>{e[t]={...e[t],...K(r[t])}}),e),{})}([i?{}:r?.(t,o,n),...a.map(e=>t.components?.[e]?.vars?.(t,o,n)),e?.(t,o,n)])?.[s]}function le({theme:e,themeName:r,selector:t,options:o,props:n,stylesCtx:s,rootSelector:a,styles:i,style:c,vars:l,varsResolver:d,headless:m,withStylesTransform:h}){return{...!h&&ae({theme:e,themeName:r,props:n,stylesCtx:s,selector:t}),...!h&&se({theme:e,styles:i,props:n,stylesCtx:s})[t],...!h&&se({theme:e,styles:o?.styles,props:o?.props||n,stylesCtx:s})[t],...ce({theme:e,props:n,stylesCtx:s,vars:l,varsResolver:d,selector:t,themeName:r,headless:m}),...a===t?ie({style:c,theme:e}):null,...ie({style:o?.style,theme:e})}}function de({name:e,classes:r,props:t,stylesCtx:o,className:n,style:s,rootSelector:a="root",unstyled:i,classNames:c,styles:l,vars:m,varsResolver:h}){const u=F(),p=d().classNamesPrefix,f=d().withStaticClasses,y=d().headless,g=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:b,getTransformedStyles:v}=function({props:e,stylesCtx:r,themeName:t}){const o=F(),n=(d().stylesTransform?.styles)?.();return{getTransformedStyles:s=>n?[...s.map(t=>n(t,{props:e,theme:o,ctx:r})),...t.map(t=>n(o.components[t]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!n}}({props:t,stylesCtx:o,themeName:g});return(e,d)=>({className:ne({theme:u,options:d,themeName:g,selector:e,classNamesPrefix:p,classNames:c,classes:r,unstyled:i,className:n,rootSelector:a,props:t,stylesCtx:o,withStaticClasses:f,headless:y,transformedStyles:v([d?.styles,l])}),style:le({theme:u,themeName:g,selector:e,options:d,props:t,stylesCtx:o,rootSelector:a,styles:l,style:s,vars:m,varsResolver:h,headless:y,withStylesTransform:b})})}function me(e){return h(e).reduce((r,t)=>{return void 0!==e[t]?`${r}${o=t,o.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}:${e[t]};`:r;var o},"").trim()}function he({selector:e,styles:r,media:t,container:o}){const n=r?me(r):"",s=Array.isArray(t)?t.map(r=>`@media${r.query}{${e}{${me(r.styles)}}}`):[],a=Array.isArray(o)?o.map(r=>`@container ${r.query}{${e}{${me(r.styles)}}}`):[];return`${n?`${e}{${n}}`:""}${s.join("")}${a.join("")}`.trim()}function ue(e){const r=m();return(0,a.jsx)("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:he(e)}})}function pe(e){return e.startsWith("data-")?e:`data-${e}`}function fe(e){return e?"string"==typeof e?{[pe(e)]:!0}:Array.isArray(e)?[...e].reduce((e,r)=>({...e,...fe(r)}),{}):(r=e,Object.keys(r).reduce((e,t)=>{const o=r[t];return void 0===o||""===o||!1===o||null===o||(e[pe(t)]=r[t]),e},{})):null;var r}function ye(e,r){return Array.isArray(e)?[...e].reduce((e,t)=>({...e,...ye(t,r)}),{}):"function"==typeof e?e(r):null==e?{}:e}function ge({theme:e,style:r,vars:t,styleProps:o}){return{...ye(r,e),...ye(t,e),...o}}const be={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 ve(e,r){const t=w({color:e,theme:r});return"dimmed"===t.color?"var(--mantine-color-dimmed)":"bright"===t.color?"var(--mantine-color-bright)":t.variable?`var(${t.variable})`:t.color}const xe={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)"},$e=["h1","h2","h3","h4","h5","h6"],we=["h1","h2","h3","h4","h5","h6"],je={color:ve,textColor:function(e,r){const t=w({color:e,theme:r});return t.isThemeColor&&void 0===t.shade?`var(--mantine-color-${t.color}-text)`:ve(e,r)},fontSize:function(e,r){return"string"==typeof e&&e in r.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&$e.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?f(e):e},spacing:function(e,r){if("number"==typeof e)return f(e);if("string"==typeof e){const t=e.replace("-","");if(!(t in r.spacing))return f(e);const o=`--mantine-spacing-${t}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e},identity:function(e){return e},size:function(e){return"number"==typeof e?f(e):e},lineHeight:function(e,r){return"string"==typeof e&&e in r.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&we.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in xe?xe[e]:e},border:function(e,r){if("number"==typeof e)return f(e);if("string"==typeof e){const[t,o,...n]=e.split(" ").filter(e=>""!==e.trim());let s=`${f(t)}`;return o&&(s+=` ${o}`),n.length>0&&(s+=` ${ve(n.join(" "),r)}`),s.trim()}return e}};function _e(e){return e.replace("(min-width: ","").replace("em)","")}function Ce(e,r){return"object"==typeof e&&null!==e&&r in e?e[r]:e}const Ne=(0,o.forwardRef)(({component:e,style:r,__vars:t,className:n,variant:s,mod:i,size:c,hiddenFrom:l,visibleFrom:m,lightHidden:u,darkHidden:p,renderRoot:f,__size:y,...g},b)=>{const v=F(),x=e||"div",{styleProps:$,rest:w}=function(e){const{m:r,mx:t,my:o,mt:n,mb:s,ml:a,mr:i,me:c,ms:l,p:d,px:m,py:h,pt:u,pb:p,pl:f,pr:y,pe:g,ps:b,bd:v,bg:x,c:$,opacity:w,ff:j,fz:_,fw:C,lts:N,ta:k,lh:S,fs:R,tt:E,td:M,w:T,miw:z,maw:A,h:F,mih:I,mah:L,bgsz:P,bgp:H,bgr:W,bga:V,pos:O,top:B,left:q,bottom:D,right:G,inset:U,display:Z,flex:J,hiddenFrom:X,visibleFrom:Q,lightHidden:Y,darkHidden:ee,sx:re,...te}=e;return{styleProps:K({m:r,mx:t,my:o,mt:n,mb:s,ml:a,mr:i,me:c,ms:l,p:d,px:m,py:h,pt:u,pb:p,pl:f,pr:y,pe:g,ps:b,bd:v,bg:x,c:$,opacity:w,ff:j,fz:_,fw:C,lts:N,ta:k,lh:S,fs:R,tt:E,td:M,w:T,miw:z,maw:A,h:F,mih:I,mah:L,bgsz:P,bgp:H,bgr:W,bga:V,pos:O,top:B,left:q,bottom:D,right:G,inset:U,display:Z,flex:J,hiddenFrom:X,visibleFrom:Q,lightHidden:Y,darkHidden:ee,sx:re}),rest:te}}(g),j=d().stylesTransform?.sx,_=j?.()?.($.sx),C=`__m__-${(0,o.useId)().replace(/:/g,"")}`,N=function({styleProps:e,data:r,theme:t}){return function({media:e,...r}){return{...r,media:Object.keys(e).sort((e,r)=>Number(_e(e))-Number(_e(r))).map(r=>({query:r,styles:e[r]}))}}(h(e).reduce((o,n)=>{if("hiddenFrom"===n||"visibleFrom"===n||"sx"===n)return o;const s=r[n],a=Array.isArray(s.property)?s.property:[s.property],i="object"==typeof(c=e[n])&&null!==c?"base"in c?c.base:void 0:c;var c;if(!function(e){if("object"!=typeof e||null===e)return!1;const r=Object.keys(e);return 1!==r.length||"base"!==r[0]}(e[n]))return a.forEach(e=>{o.inlineStyles[e]=je[s.type](i,t)}),o;o.hasResponsiveStyles=!0;const l=function(e){return"object"==typeof e&&null!==e?h(e).filter(e=>"base"!==e):[]}(e[n]);return a.forEach(r=>{i&&(o.styles[r]=je[s.type](i,t)),l.forEach(a=>{const i=`(min-width: ${t.breakpoints[a]})`;o.media[i]={...o.media[i],[r]:je[s.type](Ce(e[n],a),t)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}({styleProps:$,theme:v,data:be}),k={ref:b,style:ge({theme:v,style:r,vars:t,styleProps:N.inlineStyles}),className:Y(n,_,{[C]:N.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":p,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${m}`]:m}),"data-variant":s,"data-size":J(c)?void 0:c||void 0,size:y,...fe(i),...w};return(0,a.jsxs)(a.Fragment,{children:[N.hasResponsiveStyles&&(0,a.jsx)(ue,{selector:`.${C}`,styles:N.styles,media:N.media}),"function"==typeof f?f(k):(0,a.jsx)(x,{...k})]})});Ne.displayName="@mantine/core/Box";const ke=Ne;function Se(e){return e}var Re={root:"m_18320242","skeleton-fade":"m_299c329c"};const Ee={visible:!0,animate:!0},Me=(e,{width:r,height:t,radius:o,circle:n})=>{return{root:{"--skeleton-height":f(t),"--skeleton-width":f(n?t:r),"--skeleton-radius":n?"1000px":void 0===o?void 0:(s=o,void 0===s?"var(--mantine-radius-default)":X(s,"mantine-radius"))}};var s},Te=function(){const e=(0,o.forwardRef)((e,r)=>{const t=function(e,r,t){const o=F(),n=o.components[e]?.defaultProps;return{...r,..."function"==typeof n?n(o):n,...K(t)}}("Skeleton",Ee,e),{classNames:o,className:n,style:s,styles:i,unstyled:c,vars:l,width:d,height:m,circle:h,visible:u,radius:p,animate:f,mod:y,...g}=t,b=de({name:"Skeleton",classes:Re,props:t,className:n,style:s,classNames:o,styles:i,unstyled:c,vars:l,varsResolver:Me});return(0,a.jsx)(ke,{ref:r,...b("root"),mod:[{visible:u,animate:f},y],...g})});return e.extend=Se,e.withProps=r=>{const t=(0,o.forwardRef)((t,o)=>(0,a.jsx)(e,{...r,...t,ref:o}));return t.extend=e.extend,t.displayName=`WithProps(${e.displayName})`,t},e}();Te.classes=Re,Te.displayName="@mantine/core/Skeleton";const ze=window.wp.apiFetch;var Ae=t.n(ze);const Fe=window.wp.i18n,Ie=function({content:e}){return(0,a.jsxs)("div",{className:"eb-course-desc__content",children:[(0,a.jsx)("h2",{className:"eb-course-desc__content-title",children:(0,Fe.__)("Description","edwiser-bridge")}),(0,a.jsx)("div",{className:"eb-course-desc__content-body",dangerouslySetInnerHTML:{__html:e}})]})};function Le(){return(0,a.jsxs)("div",{className:"eb-course-desc__content",children:[(0,a.jsx)(Te,{width:130,height:32}),(0,a.jsxs)("div",{children:[(0,a.jsx)(Te,{width:"100%",height:16}),(0,a.jsx)(Te,{width:"100%",height:16,mt:4}),(0,a.jsx)(Te,{width:"30%",height:16,mt:4})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(Te,{width:"100%",height:16}),(0,a.jsx)(Te,{width:"100%",height:16,mt:4}),(0,a.jsx)(Te,{width:"70%",height:16,mt:4})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(Te,{width:"100%",height:16}),(0,a.jsx)(Te,{width:"100%",height:16,mt:4}),(0,a.jsx)(Te,{width:"30%",height:16,mt:4})]})]})}const Pe=e=>{const r=document.createElement("textarea");return r.innerHTML=e,r.value},He=()=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-layout-grid",children:[(0,a.jsx)("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),(0,a.jsx)("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),(0,a.jsx)("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),(0,a.jsx)("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]}),We=()=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-clock-icon lucide-clock",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,a.jsx)("polyline",{points:"12 6 12 12 16 14"})]}),Ve=()=>(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M16.9241 11.6321C16.7524 10.6582 16.2958 9.75704 15.612 9.04265C14.9282 8.32825 14.0479 7.83267 13.0825 7.61858C12.117 7.40449 11.1097 7.4815 10.188 7.83987C9.26635 8.19825 8.47163 8.82189 7.90437 9.63193C7.33712 10.442 7.02281 11.402 7.00119 12.3907C6.97958 13.3794 7.25163 14.3523 7.78294 15.1863C8.31425 16.0204 9.08096 16.6782 9.98611 17.0765C10.8913 17.4748 11.8942 17.5958 12.8681 17.4241M3 12.5C3 14.28 3.52784 16.0201 4.51677 17.5001C5.50571 18.9802 6.91131 20.1337 8.55585 20.8149C10.2004 21.4961 12.01 21.6743 13.7558 21.3271C15.5016 20.9798 17.1053 20.1226 18.364 18.864C19.6226 17.6053 20.4798 16.0016 20.8271 14.2558C21.1743 12.51 20.9961 10.7004 20.3149 9.05585C19.6337 7.41131 18.4802 6.00571 17.0001 5.01677C15.5201 4.02784 13.78 3.5 12 3.5M11 12.5C11 12.7652 11.1054 13.0196 11.2929 13.2071C11.4804 13.3946 11.7348 13.5 12 13.5C12.2652 13.5 12.5196 13.3946 12.7071 13.2071C12.8946 13.0196 13 12.7652 13 12.5C13 12.2348 12.8946 11.9804 12.7071 11.7929C12.5196 11.6054 12.2652 11.5 12 11.5C11.7348 11.5 11.4804 11.6054 11.2929 11.7929C11.1054 11.9804 11 12.2348 11 12.5Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),Oe=function({course:e}){return(0,a.jsx)("a",{href:e.link,target:"_blank",className:"eb-courses__course-anchor",children:(0,a.jsxs)("div",{className:"eb-courses__course-card",children:[(0,a.jsxs)("div",{className:"course-thumbnail-container",children:[(0,a.jsx)("img",{src:e.thumbnail,alt:e.title,className:"course-thumbnail"}),e.categories.length>0&&(0,a.jsxs)("div",{className:"course-category",children:[(0,a.jsx)(He,{}),(0,a.jsx)("span",{children:e.categories.map((r,t)=>(0,a.jsxs)(n().Fragment,{children:[(0,Fe.__)(Pe(r?.name),"edwiser-bridge"),t<e.categories.length-1?", ":""]},r?.id))})]})]}),(0,a.jsxs)("div",{className:"course-meta",children:[(0,a.jsxs)("div",{className:"course-content",children:[(0,a.jsx)("h3",{className:"course-title",children:(0,Fe.__)(e.title,"edwiser-bridge")}),(0,a.jsx)("p",{className:"course-excerpt",children:(0,Fe.__)(e.excerpt,"edwiser-bridge")})]}),(0,a.jsxs)("div",{className:"course-details",children:[(0,a.jsx)("div",{className:"course-price",children:e?.suspended?(0,a.jsx)("span",{className:"suspended",children:(0,Fe.__)("Suspended","edwiser-bridge")}):(0,a.jsx)(Be,{price:e.price})}),(0,a.jsx)("a",{href:e.link,className:"btn",children:(0,Fe.__)("View Details","edwiser-bridge")})]})]})]})})};function Be({price:e}){return e?.enrolled?(0,a.jsx)("span",{className:"enrolled",children:(0,Fe.__)("Enrolled","edwiser-bridge")}):"subscription"===e?.type?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"price",children:(0,Fe.__)("₹"+e?.amount,"edwiser-bridge")}),(0,a.jsx)("span",{className:"recurring",children:(0,Fe.__)("/month","edwiser-bridge")})]}):"closed"===e?.type?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{})}):0===e?.amount?(0,a.jsx)("span",{className:"price",children:(0,Fe.__)("Free","edwiser-bridge")}):null!==e?.originalAmount?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"price",children:(0,Fe.__)(e?.currency+e?.amount,"edwiser-bridge")}),(0,a.jsx)("span",{className:"original-price",children:(0,Fe.__)(e?.currency+e?.originalAmount,"edwiser-bridge")})]}):(0,a.jsx)("span",{className:"price",children:(0,Fe.__)(e?.currency+e?.amount,"edwiser-bridge")})}function qe(){return(0,a.jsxs)("div",{className:"eb-courses__course-card",children:[(0,a.jsx)("div",{className:"course-thumbnail-container",children:(0,a.jsx)(Te,{height:140,style:{borderRadius:0}})}),(0,a.jsxs)("div",{className:"course-meta",children:[(0,a.jsxs)("div",{className:"course-content",children:[(0,a.jsx)(Te,{height:20,width:"90%"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(Te,{height:12}),(0,a.jsx)(Te,{height:12,mt:6,width:"70%"})]})]}),(0,a.jsxs)("div",{className:"course-details",children:[(0,a.jsx)("div",{className:"course-price",children:(0,a.jsx)(Te,{height:28,width:80})}),(0,a.jsx)(Te,{height:18,width:80})]})]})]})}const De=function({courseCategory:e,coursePrice:r,courseAccess:t,courseStatus:o,courseCta:s}){const i={enrolled:(0,Fe.__)("Enrolled","edwiser-bridge"),suspended:(0,Fe.__)("Suspended","edwiser-bridge")};return(0,a.jsxs)("div",{className:"eb-course-desc__course-meta",children:[(0,a.jsx)("div",{className:"course-meta__header",children:(0,a.jsx)("h3",{children:(0,Fe.__)("Details","edwiser-bridge")})}),(0,a.jsxs)("div",{className:"course-meta__content",children:[(0,a.jsxs)("div",{className:"course-meta__content-top",children:[e.length>0&&(0,a.jsxs)("div",{className:"course-meta__category",children:[(0,a.jsxs)("div",{className:"label",children:[(0,a.jsx)(He,{}),(0,a.jsx)("span",{children:(0,Fe.__)("Category","edwiser-bridge")})]}),(0,a.jsx)("span",{className:"value",children:e.map((r,t)=>(0,a.jsxs)(n().Fragment,{children:[(0,Fe.__)(Pe(r?.name),"edwiser-bridge"),t<e.length-1?", ":""]},r?.id))})]}),(0,a.jsxs)("div",{className:"course-meta__course-access",children:[(0,a.jsxs)("div",{className:"label",children:[(0,a.jsx)(We,{}),(0,a.jsx)("span",{children:(0,Fe.__)("Course access","edwiser-bridge")})]}),(0,a.jsx)("span",{className:"value",children:(0,Fe.__)(t,"edwiser-bridge")})]}),("enrolled"===o||"suspended"===o)&&(0,a.jsxs)("div",{className:"course-meta__course-status",children:[(0,a.jsxs)("div",{className:"label",children:[(0,a.jsx)(Ve,{}),(0,a.jsx)("span",{children:(0,Fe.__)("Status","edwiser-bridge")})]}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)("span",{className:o,children:i[o]||o})})]}),"enrolled"!==o&&"closed"!==r?.type&&(0,a.jsxs)("div",{className:"course-meta__price",children:[(0,a.jsx)("span",{className:"label",children:(0,Fe.__)("Price","edwiser-bridge")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)(Be,{price:r})})]})]}),(0,a.jsx)("div",{className:"course-meta__content-bottom",dangerouslySetInnerHTML:{__html:s}})]})]})};function Ge(){return(0,a.jsxs)("div",{className:"eb-course-desc__course-meta",children:[(0,a.jsx)("div",{className:"course-meta__header",children:(0,a.jsx)(Te,{width:60,height:24})}),(0,a.jsxs)("div",{className:"course-meta__content",children:[(0,a.jsxs)("div",{className:"course-meta__content-top",children:[(0,a.jsxs)("div",{className:"course-meta__category",children:[(0,a.jsx)(Te,{width:90,height:24}),(0,a.jsx)(Te,{width:60,height:24})]}),(0,a.jsxs)("div",{className:"course-meta__course-access",children:[(0,a.jsx)(Te,{width:90,height:24}),(0,a.jsx)(Te,{width:60,height:24})]}),(0,a.jsxs)("div",{className:"course-meta__price",children:[(0,a.jsx)(Te,{width:35,height:24}),(0,a.jsx)(Te,{width:50,height:24})]})]}),(0,a.jsx)(Te,{width:"100%",height:40})]})]})}const Ue=function({courses:e}){return 0===e.length?null:(0,a.jsxs)("div",{className:"eb-course-desc__recom-courses-wrapper",children:[(0,a.jsx)("h2",{className:"recom-courses-title",children:(0,Fe.__)("Recommended courses","edwiser-bridge")}),(0,a.jsx)("div",{className:"recom-courses",children:e.map(e=>(0,a.jsx)(Oe,{course:e},e.id))})]})};function Ze(){return(0,a.jsxs)("div",{className:"eb-course-desc__recom-courses-wrapper",children:[(0,a.jsx)(Te,{width:250,height:32}),(0,a.jsx)("div",{className:"recom-courses",children:Array.from({length:3}).map((e,r)=>(0,a.jsx)(qe,{},r))})]})}const Je=()=>(0,a.jsx)("div",{className:"eb-course-desc__empty-state",children:(0,a.jsxs)("div",{className:"eb-course-desc__empty-state-content",children:[(0,a.jsx)("h2",{children:(0,Fe.__)("Course Not Found","edwiser-bridge")}),(0,a.jsx)("p",{children:(0,Fe.__)("Sorry, the course you are looking for is not available or may have been removed.","edwiser-bridge")})]})}),Xe=function({courseId:e,showRecommendedCourses:r}){const[t,n]=(0,o.useState)(),[s,i]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async()=>{i(!0);try{const r=await Ae()({path:`/eb/api/v1/courses/${e}`});n(r)}catch(e){console.error("Error fetching course:",e)}finally{i(!1),setTimeout(()=>{const e=new CustomEvent("eb_course_btn_loaded");window.dispatchEvent(e)},1e3)}})()},[e]),s||t?(0,a.jsx)(Z,{children:(0,a.jsxs)("div",{className:"eb-course-desc__wrapper",children:[s?(0,a.jsx)(Te,{width:320,height:32}):(0,a.jsx)("h1",{className:"eb-title",children:(0,Fe.__)(Pe(t?.title),"edwiser-bridge")}),(0,a.jsxs)("div",{className:"eb-course-desc",children:[(0,a.jsxs)("div",{className:"eb-course-desc__details",children:[(0,a.jsx)("div",{className:"eb-course-desc__course-image",children:s?(0,a.jsx)(Te,{width:"100%",height:"100%"}):(0,a.jsx)("img",{src:t?.thumbnail,alt:t?.title})}),s?(0,a.jsx)(Ge,{}):(0,a.jsx)(De,{courseCategory:t?.categories,courseAccess:t?.course_expiry?"enrolled"===t?.status?(0,Fe.sprintf)( 
(0,Fe._n)("%d Day Left","%d Days Left",t.course_expires_after_days,"edwiser-bridge"),t.course_expires_after_days):(0,Fe.sprintf)( 
(0,Fe._n)("%d Day","%d Days",t.course_expires_after_days,"edwiser-bridge"),t.course_expires_after_days):(0,Fe.__)("Lifetime","edwiser-bridge"),courseStatus:t?.status,coursePrice:t?.price,courseCta:t?.course_cta})]}),s?(0,a.jsx)(Le,{}):t?.content&&(0,a.jsx)(Ie,{content:t?.content})]}),s?(0,a.jsx)(Ze,{}):r&&t?.show_recommended_courses&&(0,a.jsx)(Ue,{courses:t?.recommended_courses})]})}):(0,a.jsx)("div",{className:"eb-course-desc__wrapper",children:(0,a.jsx)(Je,{})})};document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("eb-course-description");if(e){const r={courseId:parseInt(e.dataset.courseId,10),showRecommendedCourses:"true"===e.dataset.showRecommendedCourses};s.createRoot(e).render((0,a.jsx)(Xe,{...r}))}})})();