@voidly-io/design-system 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/dist/components/index.d.ts +66 -6
- package/dist/components/index.js +6 -6
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @voidly-io/design-system
|
|
2
2
|
|
|
3
|
+
## Providers
|
|
4
|
+
|
|
5
|
+
Components with translated labels must be rendered below a React Intl provider.
|
|
6
|
+
Use `createVIntl` to create a provider and a type-safe hook for the application's
|
|
7
|
+
messages. Define the factory once at module scope and export the returned APIs:
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { createVIntl } from "@voidly-io/design-system/components";
|
|
11
|
+
|
|
12
|
+
const messages = {
|
|
13
|
+
en: {
|
|
14
|
+
"app.welcome": "Welcome, {name}!",
|
|
15
|
+
},
|
|
16
|
+
de: {
|
|
17
|
+
"app.welcome": "Willkommen, {name}!",
|
|
18
|
+
},
|
|
19
|
+
} as const;
|
|
20
|
+
|
|
21
|
+
export const { VIntlProvider, useVIntl } = createVIntl(messages);
|
|
22
|
+
|
|
23
|
+
export function App() {
|
|
24
|
+
return (
|
|
25
|
+
<VIntlProvider locale="en">
|
|
26
|
+
<Welcome />
|
|
27
|
+
</VIntlProvider>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function Welcome() {
|
|
32
|
+
const { t } = useVIntl();
|
|
33
|
+
|
|
34
|
+
return <h1>{t("app.welcome", { name: "Voidly" })}</h1>;
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`useVIntl` accepts both application and bundled design-system message IDs. It
|
|
39
|
+
type-checks IDs and required interpolation values. Every locale must contain all
|
|
40
|
+
message IDs defined by the English catalog.
|
|
41
|
+
|
|
42
|
+
An application's existing `IntlProvider` from `react-intl` can be used instead.
|
|
43
|
+
The application and design system must resolve the same `react-intl` installation
|
|
44
|
+
so that they share one React context.
|
|
45
|
+
|
|
3
46
|
## Development
|
|
4
47
|
|
|
5
48
|
- Install dependencies:
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h as VSpacing, s as VColorNames } from "../index-CGrwGcSL.js";
|
|
2
2
|
import React$1 from "react";
|
|
3
|
+
import { PrimitiveType } from "react-intl";
|
|
3
4
|
import { BundledLanguage } from "shiki/bundle/web";
|
|
4
5
|
import { ExternalToast } from "sonner";
|
|
5
6
|
|
|
@@ -135,8 +136,22 @@ declare function VGrid(props: {
|
|
|
135
136
|
}): import("react/jsx-runtime").JSX.Element;
|
|
136
137
|
//#endregion
|
|
137
138
|
//#region src/internal/intl/VIntlFiles.d.ts
|
|
139
|
+
type Locales = "en" | "de";
|
|
138
140
|
declare const IntlFiles: {
|
|
139
|
-
en: {
|
|
141
|
+
readonly en: {
|
|
142
|
+
"component.vcode.copy_failed": string;
|
|
143
|
+
"component.vcode.copy_success": string;
|
|
144
|
+
"component.vcode.copy_to_clipboard": string;
|
|
145
|
+
"component.vcode.toggle_wrap": string;
|
|
146
|
+
"component.vcode.download_file": string;
|
|
147
|
+
"component.vcode.collapse_code": string;
|
|
148
|
+
"component.vcode.view_code": string;
|
|
149
|
+
"component.vchip.copy_failed": string;
|
|
150
|
+
"component.vchip.copy_success": string;
|
|
151
|
+
"component.vchip.copy_to_clipboard": string;
|
|
152
|
+
"component.verrorbox.retry": string;
|
|
153
|
+
};
|
|
154
|
+
readonly de: {
|
|
140
155
|
"component.vcode.copy_failed": string;
|
|
141
156
|
"component.vcode.copy_success": string;
|
|
142
157
|
"component.vcode.copy_to_clipboard": string;
|
|
@@ -150,12 +165,57 @@ declare const IntlFiles: {
|
|
|
150
165
|
"component.verrorbox.retry": string;
|
|
151
166
|
};
|
|
152
167
|
};
|
|
168
|
+
type BuiltInMessageIDs = keyof typeof IntlFiles.en;
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/internal/intl/VIntlTypes.d.ts
|
|
171
|
+
type IntlMessageCatalog = Record<string, string>;
|
|
172
|
+
type MessageIDsFor<AdditionalMessages extends IntlMessageCatalog> = BuiltInMessageIDs | Extract<keyof AdditionalMessages, string>;
|
|
173
|
+
/**
|
|
174
|
+
* Returns a union type "param1" | "param2" for the placeholders in
|
|
175
|
+
* the given <Translation> = "Hello {param1}, how are you {param2}?"
|
|
176
|
+
*/
|
|
177
|
+
type Placeholders<Translation extends string> = Translation extends `${string}{${infer Placeholder}}${infer Rest}` ? Placeholder | Placeholders<Rest> : never;
|
|
178
|
+
/**
|
|
179
|
+
* Converts the union type "param1" | "param2" to an object type { param1: PrimitiveType, param2: PrimitiveType }
|
|
180
|
+
*/
|
|
181
|
+
type ParamsForTranslation<Translation extends string> = Placeholders<Translation> extends never ? never : { [Key in Placeholders<Translation>]: PrimitiveType };
|
|
182
|
+
type TranslationForID<ID extends MessageIDsFor<AdditionalMessages>, AdditionalMessages extends IntlMessageCatalog = Record<never, never>> = ID extends keyof AdditionalMessages ? AdditionalMessages[ID] : ID extends BuiltInMessageIDs ? (typeof IntlFiles.en)[ID & BuiltInMessageIDs] : string;
|
|
183
|
+
/**
|
|
184
|
+
* Builds the param type for a given messageId.
|
|
185
|
+
*/
|
|
186
|
+
type ParamsForID<ID extends MessageIDsFor<AdditionalMessages>, AdditionalMessages extends IntlMessageCatalog = Record<never, never>> = MessageIDsFor<AdditionalMessages> extends ID ? never : ParamsForTranslation<TranslationForID<ID, AdditionalMessages> & string>;
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region node_modules/intl-messageformat/index.d.ts
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region packages/intl-messageformat/formatters.d.ts
|
|
191
|
+
declare global {
|
|
192
|
+
namespace FormatjsIntl {
|
|
193
|
+
interface Message {}
|
|
194
|
+
interface IntlConfig {}
|
|
195
|
+
interface Formats {}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
type PrimitiveType$1 = string | number | bigint | boolean | null | undefined | Date;
|
|
153
199
|
//#endregion
|
|
154
200
|
//#region src/components/VIntlProvider.d.ts
|
|
155
|
-
|
|
156
|
-
children: React.ReactNode;
|
|
157
|
-
locale:
|
|
158
|
-
|
|
201
|
+
type VIntlProviderProps = {
|
|
202
|
+
children: React.ReactNode; /** The locale to be used by the provider. */
|
|
203
|
+
locale: Locales; /** The messages for all locales. */
|
|
204
|
+
messages: { [locale in Locales]: IntlMessageCatalog };
|
|
205
|
+
};
|
|
206
|
+
declare function VIntlProvider(props: VIntlProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
207
|
+
/**
|
|
208
|
+
* Creates an intl provider and hook that share the inferred application
|
|
209
|
+
* message IDs and interpolation parameters.
|
|
210
|
+
*/
|
|
211
|
+
declare function createVIntl<const MessagesByLocale extends Record<Locales, IntlMessageCatalog>>(messages: MessagesByLocale & { [Locale in Locales]: Record<Extract<keyof MessagesByLocale["en"], string>, string> }): {
|
|
212
|
+
readonly VIntlProvider: (props: Omit<VIntlProviderProps, "messages">) => import("react/jsx-runtime").JSX.Element;
|
|
213
|
+
readonly useVIntl: () => {
|
|
214
|
+
locale: string;
|
|
215
|
+
t: <ID extends MessageIDsFor<MessagesByLocale["en"]>, Params extends ParamsForID<ID, MessagesByLocale["en"]>>(...parameters: [Params] extends [never] ? [messageId: ID, values?: Record<string, PrimitiveType$1>] : [messageId: ID, values: Params]) => TranslationForID<ID, MessagesByLocale["en"]>;
|
|
216
|
+
tHtml: <ID extends MessageIDsFor<MessagesByLocale["en"]>, Params extends ParamsForID<ID, MessagesByLocale["en"]>>(...parameters: [Params] extends [never] ? [messageId: ID, values?: Record<string, PrimitiveType$1>] : [messageId: ID, values: Params]) => import("react/jsx-runtime").JSX.Element;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
159
219
|
//#endregion
|
|
160
220
|
//#region src/components/VCode.d.ts
|
|
161
221
|
declare function VCode(props: {
|
|
@@ -223,4 +283,4 @@ declare function showVToast(options: {
|
|
|
223
283
|
};
|
|
224
284
|
declare function VToast(): import("react/jsx-runtime").JSX.Element;
|
|
225
285
|
//#endregion
|
|
226
|
-
export { VAlert, VCard, VChip, VCode, VErrorBox, VFlex, VGrid, VIntlProvider, VLoading, VTheme, type VThemeMode, VThemeProvider, VToast, showVToast, useVTheme };
|
|
286
|
+
export { VAlert, VCard, VChip, VCode, VErrorBox, VFlex, VGrid, VIntlProvider, VLoading, VTheme, type VThemeMode, VThemeProvider, VToast, createVIntl, showVToast, useVTheme };
|
package/dist/components/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import '../style.css';
|
|
2
|
-
import{a as e,i as t,n,o as r,r as i,t as a}from"../tokens-j5mBBFwP.js";import{i as o,t as s}from"../utils-DuPu69iK.js";import{c}from"react/compiler-runtime";import{ArrowPathIcon as l,CheckIcon as u,ExclamationCircleIcon as d,ExclamationTriangleIcon as f}from"@heroicons/react/20/solid";import{ArrowDownTrayIcon as p,ArrowTurnDownLeftIcon as m,ArrowTurnRightUpIcon as h,ChevronUpIcon as g,ClipboardDocumentIcon as _,DocumentIcon as v,InformationCircleIcon as y}from"@heroicons/react/24/outline";import{Alert as b,AlertTitle as ee,Button as
|
|
3
|
-
${Object.entries(t).map(([e,t])=>`${
|
|
2
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"../tokens-j5mBBFwP.js";import{i as o,t as s}from"../utils-DuPu69iK.js";import{c}from"react/compiler-runtime";import{ArrowPathIcon as l,CheckIcon as u,ExclamationCircleIcon as d,ExclamationTriangleIcon as f}from"@heroicons/react/20/solid";import{ArrowDownTrayIcon as p,ArrowTurnDownLeftIcon as m,ArrowTurnRightUpIcon as h,ChevronUpIcon as g,ClipboardDocumentIcon as _,DocumentIcon as v,InformationCircleIcon as y}from"@heroicons/react/24/outline";import{Alert as b,AlertTitle as ee,Button as te,IconButton as x,ThemeProvider as S,Tooltip as C,alpha as w,createTheme as T,darken as E,lighten as D,styled as ne,useMediaQuery as O,useTheme as k}from"@mui/material";import{Fragment as re,createContext as ie,createElement as A,forwardRef as j,useContext as ae,useEffect as oe,useLayoutEffect as se,useState as ce}from"react";import{Fragment as le,jsx as M,jsxs as N}from"react/jsx-runtime";import{GeistMono as P}from"geist/font/mono";import{GeistSans as F}from"geist/font/sans";import ue from"@mui/material/CssBaseline";import{FormattedMessage as I,IntlProvider as L,useIntl as R}from"react-intl";import{toJsxRuntime as z}from"hast-util-to-jsx-runtime";import{codeToHast as de}from"shiki/bundle/web";import{Toaster as fe,toast as B}from"sonner";const V={width:18,height:18},H={success:M(u,{style:V}),info:M(y,{style:V}),warning:M(f,{style:V}),error:M(d,{style:V})};function U(e){let t=c(8),n=e.hideIcon?!1:e.icon?e.icon:H[e.type],r;t[0]===e.title?r=t[1]:(r=e.title&&M(ee,{children:e.title}),t[0]=e.title,t[1]=r);let i;return t[2]!==e.children||t[3]!==e.style||t[4]!==e.type||t[5]!==n||t[6]!==r?(i=N(b,{severity:e.type,icon:n,style:e.style,children:[r,e.children]}),t[2]=e.children,t[3]=e.style,t[4]=e.type,t[5]=n,t[6]=r,t[7]=i):i=t[7],i}var W={container:`oY0XGG_container`,dot:`oY0XGG_dot`,inner:`oY0XGG_inner`,rotate:`oY0XGG_rotate`,"shift-left":`oY0XGG_shift-left`,"shift-right":`oY0XGG_shift-right`,svg:`oY0XGG_svg`},G={container:`z7PbZq_container`,inner:`z7PbZq_inner`,wobble:`z7PbZq_wobble`};const pe=e=>{let t=c(9),{size:n,color:r,speed:i,stroke:a,bgOpacity:o}=e,s=n===void 0?80:n,l=r===void 0?`black`:r,u=i===void 0?1.75:i,d=a===void 0?5:a,f=o===void 0?.1:o,p=s+`px`,m=u+`s`,h=d+`px`,g=f+``,_;t[0]!==l||t[1]!==p||t[2]!==m||t[3]!==h||t[4]!==g?(_={"--uib-size":p,"--uib-color":l,"--uib-speed":m,"--uib-stroke":h,"--uib-bg-opacity":g},t[0]=l,t[1]=p,t[2]=m,t[3]=h,t[4]=g,t[5]=_):_=t[5];let v=_,y;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=M(`div`,{className:G.inner}),t[6]=y):y=t[6];let b;return t[7]===v?b=t[8]:(b=M(`div`,{className:G.container,style:v,children:y}),t[7]=v,t[8]=b),b};function K(e){let t=c(20),{size:n,color:r,speed:i}=e,a=n===void 0?40:n,o=r===void 0?`black`:r,s=i===void 0?.9:i,l=parseInt(a+``),u=l/2,d=a+`px`,f=s+`s`,p;t[0]!==o||t[1]!==d||t[2]!==f?(p={"--uib-size":d,"--uib-color":o,"--uib-speed":f},t[0]=o,t[1]=d,t[2]=f,t[3]=p):p=t[3];let m=p,h=`0 0 ${a} ${u}`,g,_;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=M(`circle`,{className:W.dot}),g=M(`circle`,{className:W.dot}),t[4]=g,t[5]=_):(g=t[4],_=t[5]);let v=l/8,y;t[6]===v?y=t[7]:(y=M(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:v,result:`blur`}),t[6]=v,t[7]=y);let b,ee;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=M(`feColorMatrix`,{in:`blur`,mode:`matrix`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7`,result:`ooze`}),ee=M(`feBlend`,{in:`SourceGraphic`,in2:`ooze`}),t[8]=b,t[9]=ee):(b=t[8],ee=t[9]);let te;t[10]===y?te=t[11]:(te=M(`defs`,{children:N(`filter`,{id:`uib-jelly-filter`,children:[y,b,ee]})}),t[10]=y,t[11]=te);let x;t[12]!==u||t[13]!==a||t[14]!==te||t[15]!==h?(x=M(`div`,{className:W.inner,children:N(`svg`,{className:W.svg,x:`0px`,y:`0px`,viewBox:h,height:u,width:a,preserveAspectRatio:`xMidYMid meet`,children:[_,g,te]})}),t[12]=u,t[13]=a,t[14]=te,t[15]=h,t[16]=x):x=t[16];let S;return t[17]!==x||t[18]!==m?(S=M(`div`,{className:W.container,style:m,children:x}),t[17]=x,t[18]=m,t[19]=S):S=t[19],S}function q(e){let t=c(7),i;t[0]===e.style?i=t[1]:(i={display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:n[`--v-border-radius`],...e.style},t[0]=e.style,t[1]=i);let a;t[2]===e.type?a=t[3]:(a=e.type?.name===`jelly`?M(K,{color:r[`--v-accents-1000`],size:e.type.dotSize??40,speed:`0.9`}):M(pe,{color:r[`--v-accents-1000`],size:e.type?.width??104,speed:`1.75`}),t[2]=e.type,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=M(`div`,{style:i,children:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}const me=j(function(e,t){let n=c(15),i,o,s,l,u;n[0]===e?(i=n[1],o=n[2],s=n[3],l=n[4],u=n[5]):({selected:l,padding:o,style:u,children:i,...s}=e,n[0]=e,n[1]=i,n[2]=o,n[3]=s,n[4]=l,n[5]=u);let d=`1px solid ${l?r[`--v-blue-700`]:r[`--v-strokes`]}`,f=o??24,p;n[6]!==u||n[7]!==d||n[8]!==f?(p={borderRadius:a[`--v-border-radius`],border:d,display:`flex`,alignItems:`flex-start`,flexDirection:`column`,justifyContent:`space-between`,background:r[`--v-background-200`],gap:24,overflow:`hidden`,padding:f,...u},n[6]=u,n[7]=d,n[8]=f,n[9]=p):p=n[9];let m;return n[10]!==i||n[11]!==t||n[12]!==s||n[13]!==p?(m=M(`div`,{...s,ref:t,style:p,children:i}),n[10]=i,n[11]=t,n[12]=s,n[13]=p,n[14]=m):m=n[14],m});function J(e){let t=X();return e===`dark`&&(t=Z()),t}function Y(e){return`${e.startsWith(`--`)?``:`--`}${e.split(/(?=[A-Z])/).join(`-`).toLowerCase()}`}function he(e){let t=J(e);return`:root {
|
|
3
|
+
${Object.entries(t).map(([e,t])=>`${Y(e)}: ${t};`).join(`
|
|
4
4
|
`)}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.dark-theme {
|
|
8
8
|
color: ${r[`--v-foreground`]};
|
|
9
|
-
${Object.entries(
|
|
9
|
+
${Object.entries(J(`dark`)).map(([e,t])=>`${Y(e)}: ${t};`).join(`
|
|
10
10
|
`)}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.light-theme {
|
|
14
14
|
color: ${r[`--v-foreground`]};
|
|
15
|
-
${Object.entries(
|
|
15
|
+
${Object.entries(J(`light`)).map(([e,t])=>`${Y(e)}: ${t};`).join(`
|
|
16
16
|
`)}
|
|
17
17
|
}
|
|
18
|
-
`}function
|
|
18
|
+
`}function ge(e){let n=c(5),i;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=M(`style`,{children:`
|
|
19
19
|
html,
|
|
20
20
|
body {
|
|
21
21
|
max-width: 100vw;
|
|
@@ -241,4 +241,4 @@ import{a as e,i as t,n,o as r,r as i,t as a}from"../tokens-j5mBBFwP.js";import{i
|
|
|
241
241
|
input[type="search"]::-webkit-search-cancel-button,
|
|
242
242
|
input[type="search"]::-webkit-search-results-button,
|
|
243
243
|
input[type="search"]::-webkit-search-results-decoration { display: none; }
|
|
244
|
-
`}),n[0]=i):i=n[0];let a;n[1]===e.theme?a=n[2]:(a=ge(e.theme),n[1]=e.theme,n[2]=a);let o;return n[3]===a?o=n[4]:(o=F(se,{children:[i,P(`style`,{children:a})]}),n[3]=a,n[4]=o),o}function Z(){let t=`#2050ff`;t+``,t+``,t+``;let n=O(t,.2),r=`#e60000`,o=`#E0E0E0`,s=D(o,.5),c=D(o,.2),l=O(o,.2),u=O(o,.4),d=`#e8e8e8`,f=`#e77700`;return{...e.light,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#2050ff1a`,colorPrimary500Alpha15:`#2050ff26`,colorPrimary500Alpha20:`#2050ff33`,colorPrimary700:n,colorGrey100:s,colorGrey300:c,colorGrey500:o,colorGrey700:l,colorGrey900:u,colorPurple900:`#a027ff`,colorPurple900Alpha10:T(`#a027ff`,.1),colorPink900:`#e43a99`,colorPink900Alpha:`#e43a9914`,colorWarning:f,colorMarker:`rgb(244 125 27 / 39%) 4%, rgb(215 106 40 / 15%)`,borderRadius:`6px`,colorBlack:`#000000`,colorStrokes:d,colorStrokesLight:O(d,.5),linkColor:n,linkColorHover:O(n,.25),colorWhite:`#FFFFFF`,bodyBackground:`#fcfcfc`,bodyColor:`#444`,bodyColorAlpha50:T(`#444`,.5),bodyColorStrong:`#000`,inputBackground:`#fff`,inputBackgroundDisabled:`rgb(250, 250, 250)`,inputColor:`#000`,inputColorDisabled:s,inputBorder:`#e8e8e8`,inputHoverBorder:D(`#e8e8e8`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px rgba(50, 132, 255, 0.1)`,buttonContainedPrimaryColor:`#fff`,buttonContainedPrimaryColorHover:`#fff`,buttonContainedPrimaryBackground:`#0a0a0a`,buttonContainedPrimaryBackgroundHover:O(`#0a0a0a`,.1),buttonContainedPrimaryBorder:O(`#0a0a0a`,.1),buttonContainedPrimaryBorderHover:O(`#0a0a0a`,.2),buttonContainedSecondaryColor:`#fff`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:O(`#0a0a0a`,.1),buttonContainedSecondaryBorder:`#0a0a0a`,buttonContainedSecondaryBorderHover:O(`#0a0a0a`,.1),buttonOutlinedColor:`rgba(0, 0, 0, 0.9)`,buttonOutlinedColorHover:`rgba(0, 0, 0, 1)`,buttonOutlinedBackground:`#fafafa`,buttonOutlinedBackgroundHover:`#fff`,buttonOutlinedBorder:`#e8e8e8`,buttonOutlinedBorderHover:D(`#e8e8e8`,.1),buttonDisabledColor:c,buttonDisabledBackground:u,buttonDisabledBorder:o,checkboxBackground:t,checkboxLabelColor:`rgba(0, 0, 0, 0.9)`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,error:r,errorAlpha10:T(r,.1),errorAlpha15:T(r,.15),errorAlpha20:T(r,.2),success:`#11c12fff`,switchThumb:`#fff`,switchTrack:c,switchTrackChecked:t,iconButtonColor:O(`#05102b`,.4),iconButtonColorHover:`#05102b`,accentBackgroundColor:`#fff`,accentBackgroundColorStrong:D(`#fff`,.05),alertInfoBackground:O(t,.9),alertInfoColor:t,alertInfoBorder:`hsl(221, 91%, 91%)`,alertSuccessBackground:`hsl(143, 85%, 96%)`,alertSuccessColor:`hsl(140, 100%, 27%)`,alertSuccessBorder:`hsl(145, 92%, 91%)`,alertWarningBackground:O(f,.95),alertWarningColor:f,alertWarningBorder:O(f,.8),alertErrorBackground:`hsl(359, 100%, 97%)`,alertErrorColor:`hsl(360, 100%, 45%)`,alertErrorBorder:`hsl(359, 100%, 94%)`,sidebarBackground:`#fff`,sidebarActiveColor:`#000`,sidebarActiveBackground:T(`#000`,.05),sidebarActiveBackgroundHover:T(n,.075),sidebarColor:e.light[`--v-accents-700`],sidebarLinkHoverBackground:`rgba(0, 0, 0, 0.05)`,sidebarLinkHoverColor:`rgba(0, 0, 0, 0.9)`,tableSortIconBackground:e.light[`--v-blue-200`],tableSortIconColor:e.light[`--v-blue-700`],tableBorderColor:`rgba(0, 0, 0, 0.1)`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:c,dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:`#2c5dbf0f`,dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:T(u,.5),selectionColor:`#fff`,selectionBackground:t,boxShadow:`0px 5px 5px -3px rgb(0 0 0 / 0%), 0px 8px 10px 1px rgb(0 0 0 / 2%), 0px 3px 14px 2px rgba(0,0,0,0.12)`,boxShadow2:`0 14px 20px -4px rgba(50,50,93,0.05), 0 8px 16px -8px rgba(0,0,0,0.05)`,boxShadow3:`0 14px 20px -4px rgba(229, 239, 250, 1)`,boxShadow4:`0 1px 2px 0 rgba(0,0,0,.05)`,boxShadowError:`0 14px 20px -4px rgba(255, 18, 18, 0.05), 0 8px 16px -8px rgba(255, 0, 0, 0.05)`,keystrokePreviewColor:s,keystrokePreviewBackground:`rgba(0, 0, 0, 0.03)`,dottedBackgroundDotsColor:`#00000016`,blockEditorSidebarGroupHeaderBackground:`#fafafa`,blockEditorSidebarGroupHeaderBackgroundHover:`#f2f2f2`,blockEditorSidebarGroupHeaderColor:`#000`,upgradeToProBannerBackground:`#0a0a0a`,upgradeToProBannerBackgroundHover:O(`#0a0a0a`,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid #0a0a0a`}}function Q(){let t=`#006eff`;t+``,t+``,t+``;let n=D(t,.4),r=O(t,.2),o=`hsl(360, 100%, 45%)`,s=`#444`,c=D(s,.8),l=D(s,.4),u=O(s,.4),d=O(s,.8),f=`#2a2a2a`,p=`#ff9700`;return{...e.dark,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#006eff1a`,colorPrimary500Alpha15:`#006eff26`,colorPrimary500Alpha20:`#006eff33`,colorPrimary700:r,colorGrey100:d,colorGrey300:u,colorGrey500:s,colorGrey700:l,colorGrey900:c,colorPurple900:`#c068ff`,colorPurple900Alpha10:T(`#c068ff`,.1),colorPink900:`#ff1e9c`,colorPink900Alpha:`#ff1e9c1f`,colorWarning:p,colorMarker:`${T(t,.4)} 4%, ${T(t,.15)}`,borderRadius:`6px`,colorBlack:`#fff`,colorStrokes:f,colorStrokesLight:D(f,.5),linkColor:r,linkColorHover:O(r,.25),colorWhite:`#0e0e0e`,bodyBackground:e.dark[`--v-background-100`],bodyColor:`#a1a1a1`,bodyColorAlpha50:T(`#fff`,.5),bodyColorStrong:`#fff`,inputBackground:`#0a0a0a`,inputBackgroundDisabled:`#ffffff14`,inputColor:`#fff`,inputColorDisabled:d,inputBorder:`#2a2a2a`,inputHoverBorder:O(`#2a2a2a`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px ${T(t,.2)}`,buttonContainedPrimaryColor:`#000`,buttonContainedPrimaryColorHover:`#000`,buttonContainedPrimaryBackground:`#fff`,buttonContainedPrimaryBackgroundHover:D(`#fff`,.1),buttonContainedPrimaryBorder:`#fff`,buttonContainedPrimaryBorderHover:D(`#fff`,.1),buttonContainedSecondaryColor:`#e3e3e3`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:O(`#0a0a0a`,.1),buttonContainedSecondaryBorder:f,buttonContainedSecondaryBorderHover:O(f,.1),buttonOutlinedColor:`#e3e3e3`,buttonOutlinedColorHover:`#fff`,buttonOutlinedBackground:`#0a0a0a`,buttonOutlinedBackgroundHover:O(`#0a0a0a`,.1),buttonOutlinedBorder:f,buttonOutlinedBorderHover:O(f,.1),buttonDisabledColor:l,buttonDisabledBackground:c,buttonDisabledBorder:l,checkboxBackground:t,checkboxLabelColor:`#fff`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,error:o,errorAlpha10:T(o,.1),errorAlpha15:T(o,.15),errorAlpha20:T(o,.2),success:`#1ce853`,switchThumb:`#fff`,switchTrack:`#30363d`,switchTrackChecked:t,iconButtonColor:D(`#fff`,.2),iconButtonColorHover:`#fff`,accentBackgroundColor:`#0a0a0a`,accentBackgroundColorStrong:`#0e0e0e`,alertInfoBackground:`rgb(11 20 38)`,alertInfoColor:r,alertInfoBorder:D(t,.6),alertSuccessBackground:`hsl(150, 100%, 6%)`,alertSuccessColor:`#59f380`,alertSuccessBorder:`hsl(147, 100%, 12%)`,alertWarningBackground:D(p,.85),alertWarningColor:p,alertWarningBorder:D(p,.5),alertErrorBackground:`hsl(358, 76%, 5%)`,alertErrorColor:`#f00`,alertErrorBorder:`hsl(357, 89%, 16%)`,sidebarBackground:e.dark[`--v-background-200`],sidebarActiveColor:`#fff`,sidebarActiveBackground:T(`#fff`,.05),sidebarActiveBackgroundHover:T(r,.075),sidebarColor:e.dark[`--v-accents-700`],sidebarLinkHoverBackground:`rgba(255, 255, 255, 0.05)`,sidebarLinkHoverColor:`#fff`,tableSortIconBackground:e.dark[`--v-blue-200`],tableSortIconColor:e.dark[`--v-blue-700`],tableBorderColor:`#292d31`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:T(s,.5),dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:T(s,.05),dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:T(s,.05),selectionColor:`#fff`,selectionBackground:n,boxShadow:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow2:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow3:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow4:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadowError:`0px 0px 60px 0px rgba(255, 0, 0, 0.15)`,keystrokePreviewColor:d,keystrokePreviewBackground:`rgba(255, 255, 255, 0.03)`,dottedBackgroundDotsColor:`#ffffff16`,blockEditorSidebarGroupHeaderBackground:`#1a1a1a`,blockEditorSidebarGroupHeaderBackgroundHover:`#262626`,blockEditorSidebarGroupHeaderColor:`#fff`,upgradeToProBannerBackground:t,upgradeToProBannerBackgroundHover:O(t,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid ${t}`}}function $(e){return{color:e.color,background:e.background,border:`1px solid ${e.borderColor}`,"&:hover":{color:e.colorHover,border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover,boxShadow:`0px 2px 4px -1px rgb(0 0 0 / 8%), 0px 4px 5px 0px rgb(0 0 0 / 7%), 0px 1px 10px 0px rgba(0,0,0,0.12)`},"&:active":{border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover},"&:disabled":{color:e.theme.colorGrey100,border:`1px solid ${e.theme.colorGrey500}`,background:e.theme.colorGrey500}}}const ve=t=>{let n=t===`light`?Z():Q();return E({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,header:1140,defaultScreenSize:1024}},typography:{fontFamily:[L.style?.fontFamily??`"Geist Sans"`,`Arial`].join(`, `)},palette:{error:{main:n.error},primary:{main:n.colorPrimary500},secondary:{main:n.colorPrimary500},mode:t},components:{MuiChip:{styleOverrides:{root:{padding:`6px 14px`,borderRadius:9999,fontSize:10,fontWeight:700,lineHeight:`12px`,height:`auto`,borderWidth:1,borderStyle:`solid`,"&:active":{boxShadow:`none`},".MuiChip-label":{display:`flex`,alignItems:`center`,gap:4,padding:0},svg:{width:16,marginRight:4}},colorPrimary:{backgroundColor:n.alertInfoBackground,borderColor:n.alertInfoBorder,color:n.alertInfoColor,"&:hover:not(&.no-hover-effect)":{backgroundColor:n.alertInfoBackground}},colorSuccess:{backgroundColor:n.alertSuccessBackground,borderColor:n.alertSuccessBorder,color:n.alertSuccessColor,"&:hover":{backgroundColor:n.alertSuccessBackground}},colorError:{backgroundColor:n.alertErrorBackground,borderColor:n.alertErrorBorder,color:n.alertErrorColor,"&:hover":{backgroundColor:n.alertErrorBackground}}}},MuiInputLabel:{styleOverrides:{root:{marginLeft:2}}},MuiSkeleton:{defaultProps:{variant:`rounded`,animation:`wave`},styleOverrides:{root:{borderRadius:n.borderRadius,backgroundColor:t===`light`?`rgba(0, 0, 0, 0.11)`:`rgba(255, 255, 255, 0.11)`,"&::after":{background:t===`light`?`linear-gradient(90deg, transparent, rgb(0, 0, 0, 0.04), transparent)`:`linear-gradient(90deg, transparent, rgb(255, 255, 255, 0.04), transparent)`}}}},MuiMenu:{styleOverrides:{paper:{transition:`none !important`}}},MuiListItemText:{styleOverrides:{root:{fontSize:13,".MuiTypography-root":{fontSize:13}}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:`0 !important`,width:16,marginRight:8}}},MuiMenuItem:{defaultProps:{disableRipple:!0},styleOverrides:{root:{fontSize:14,paddingLeft:20,paddingRight:20,color:n[`--v-accents-700`],svg:{height:16},"&:hover":{background:n[`--v-accents-200`],color:n[`--v-foreground`]},"&.Mui-selected":{background:`${n.sidebarActiveBackground} !important`,color:`${n.sidebarActiveColor} !important`,"&:hover":{background:`${n.sidebarActiveBackground} !important`,color:`${n.sidebarActiveColor} !important`}},"&.Mui-focusVisible":{background:`none`,"&:hover":{background:n.sidebarLinkHoverBackground,color:n.sidebarLinkHoverColor}}}}},MuiSelect:{styleOverrides:{root:{fontWeight:500}}},MuiSvgIcon:{styleOverrides:{root:{"&.MuiSelect-icon":{color:n.inputBorder},"&.MuiStepIcon-root.Mui-completed":{fill:n.success}}}},MuiCssBaseline:{styleOverrides:{html:{backgroundColor:n.bodyBackground,color:n.bodyColor},body:{backgroundColor:n.bodyBackground,color:n.bodyColor,fontSize:14}}},MuiAccordion:{defaultProps:{disableGutters:!0},styleOverrides:{root:{margin:`0`,background:`none`,boxShadow:`none`,color:n.bodyColor,border:`1px solid ${n.colorStrokes}`,borderRadius:n.borderRadius,":hover":{borderColor:n[`--v-blue-700`]},":first-of-type":{borderRadius:n.borderRadius},":last-of-type":{borderRadius:n.borderRadius},svg:{transition:`0.2s ease-out transform`},".MuiAccordionSummary-root":{fontWeight:500,borderRadius:n.borderRadius,padding:`12px 24px`,color:n.bodyColorStrong,minHeight:0,":hover":{background:n.accentBackgroundColor}},".MuiAccordionSummary-content":{margin:`6px 0px`},".MuiAccordionDetails-root":{padding:`8px 24px 24px`},"&:before":{opacity:0},"&.Mui-expanded":{".MuiAccordionSummary-root":{svg:{transform:`rotate(180deg)`}}}}}},MuiRadio:{styleOverrides:{root:{color:n.inputBorder}}},MuiTable:{styleOverrides:{root:{border:`1px solid ${n.colorStrokes}`,borderRadius:n.borderRadius,borderCollapse:`separate`,overflow:`hidden`,background:n.accentBackgroundColor,".MuiTableCell-root.MuiTableCell-head":{fontWeight:600,color:n[`--v-accents-1000`],background:n[`--v-accents-100`]},".MuiTableCell-root":{borderBottom:`1px solid ${n.colorStrokes}`,fontSize:13,color:n.bodyColor,padding:`8px 16px`,height:57}}}},MuiToggleButtonGroup:{styleOverrides:{root:{padding:`4px 0px`,borderRadius:`8px`,overflow:`hidden`,border:`1px solid ${n.colorStrokes}`,background:n[`--v-background`]}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:11,marginLeft:0,marginRight:0}}},MuiToggleButton:{styleOverrides:{root:{borderRadius:`6px !important`,fontSize:13,fontWeight:500,lineHeight:`18px`,textTransform:`none`,flexGrow:1,color:n[`--v-foreground`],padding:`8px 16px`,margin:`0 4px`,border:0,svg:{fontSize:16},"&:hover":{background:n[`--v-accents-200`]},"&.Mui-selected":{background:n[`--v-accents-200`],color:n[`--v-foreground`],"&:hover":{background:n[`--v-accents-200`]}}},sizeSmall:{padding:`5px 12px`,fontSize:13}}},MuiAlert:{styleOverrides:{root:{fontSize:`14px`,padding:`12px 24px`},icon:{padding:`8px 0`,marginRight:24,color:`inherit !important`},message:{padding:`6px 0`},standardSuccess:{background:n.alertSuccessBackground,border:`1px solid ${n.alertSuccessBorder}`,borderRadius:n.borderRadius,color:n.alertSuccessColor},standardWarning:{background:n.alertWarningBackground,border:`1px solid ${n.alertWarningBorder}`,borderRadius:n.borderRadius,color:n.alertWarningColor},standardError:{background:n.alertErrorBackground,border:`1px solid ${n.alertErrorBorder}`,borderRadius:n.borderRadius,color:n.alertErrorColor},standardInfo:{background:n.alertInfoBackground,border:`1px solid ${n.alertInfoBorder}`,borderRadius:n.borderRadius,color:n.alertInfoColor}}},MuiAlertTitle:{styleOverrides:{root:{marginTop:0}}},MuiFormLabel:{styleOverrides:{root:{color:n.checkboxLabelColor,marginLeft:n.checkboxLabelMargin,fontSize:n.checkboxLabelFontSize,fontWeight:400,"& a":{color:n.linkColor,fontWeight:500,"&:hover":{color:n.linkColorHover}}}}},MuiTableRow:{styleOverrides:{root:{"&:last-child > td":{borderBottom:0},"&.MuiTableRow-hover":{cursor:`pointer`,"&:hover":{background:t===`light`?`rgba(0, 0, 0, 0.01)`:`rgba(255, 255, 255, 0.03)`}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:`1px solid ${n.colorStrokes}`},head:{padding:`11.5px 16px`,whiteSpace:`nowrap`}}},MuiCheckbox:{styleOverrides:{colorPrimary:{"&.Mui-checked input + span":{background:n.checkboxBackground,borderColor:n.checkboxBackground},"&.MuiCheckbox-indeterminate input + span":{background:n.checkboxBackground,borderColor:n.checkboxBackground}}}},MuiSwitch:{styleOverrides:{track:({ownerState:e})=>({opacity:1,borderRadius:20,background:n.switchTrack,".Mui-checked.Mui-checked:not(.Mui-disabled) + &":{background:n.switchTrackChecked,opacity:1},...e.disabled&&{".Mui-checked.Mui-checked + &":{background:n.switchTrack,opacity:.4}},...e.color===`secondary`&&{opacity:.75,borderRadius:20,background:n.switchTrack,".Mui-checked.Mui-checked + &":{background:n.switchTrack,opacity:1}}}),thumb:({ownerState:e})=>({color:n.switchThumb,...e.color===`secondary`&&{color:n.colorPrimary700},...e.disabled&&{opacity:.8}}),disabled:()=>({".Mui-checked.Mui-checked + &":{background:n.colorPrimary700,opacity:.5}})}},MuiAutocomplete:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`},styleOverrides:{root:{background:n.inputBackground,color:n.inputColor,fieldset:{borderRadius:n.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiOutlinedInput-root":{padding:`10px 14px`},"& .MuiOutlinedInput-root .MuiAutocomplete-input":{padding:0,fontSize:13}},listbox:{"& .MuiAutocomplete-option":{fontSize:15}}}},MuiInputBase:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`,autoComplete:`off`},styleOverrides:{root:{background:n.inputBackground,color:n.inputColor,fieldset:{borderRadius:n.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:n.inputColorDisabled},"& .MuiOutlinedInput-input":{fontSize:13},"&.MuiOutlinedInput-root":{paddingRight:`10px`,"& fieldset":{borderColor:n.inputBorder},"&:hover fieldset":{borderColor:n.inputHoverBorder},"&.Mui-focused fieldset":{borderColor:n.inputActiveBorder,borderWidth:1,boxShadow:n.inputActiveShadow},"&.Mui-disabled":{background:n.inputBackgroundDisabled,"& fieldset":{borderColor:n.colorStrokes}}}}}},MuiOutlinedInput:{styleOverrides:{input:{fontSize:14,padding:`10px 14px`},inputSizeSmall:{padding:`8px 14px`,fontSize:12}}},MuiIconButton:{styleOverrides:{root:{color:n.iconButtonColor,borderRadius:n.borderRadius,"&:hover":{color:n.iconButtonColorHover}}}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{boxShadow:`none`,borderRadius:0,"& .MuiButtonGroup-firstButton":{border:`1px solid ${n.buttonContainedPrimaryBorder}`},"& .MuiSvgIcon-root":{height:20}}}},MuiInputAdornment:{styleOverrides:{root:{color:n.iconButtonColor,".MuiTypography-root":{fontSize:13},marginRight:`0 !important`}}},MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:{transition:`none !important`,".MuiChip-root":{background:n.colorPrimary500,color:t===`light`?n.colorWhite:n.colorBlack,"&:hover":{background:n.colorPrimary500}}}}},MuiButton:{defaultProps:{disableRipple:!0,disableElevation:!0},variants:[{props:{variant:`link`},style:{color:n.linkColor,padding:0,minWidth:`auto`,height:`fit-content`,"& .MuiTouchRipple-root":{display:`none`},"&:hover":{color:n.linkColorHover,background:`none`},"&:active":{color:n.linkColorHover,background:`none`},"&:disabled":{color:n.colorGrey500,background:`none`},"&.MuiButton-linkError":{color:n.error,"&:hover":{color:O(n.error,.25)}}}}],styleOverrides:{root:{":hover, :focus":{boxShadow:`none !important`},textTransform:`unset`,padding:`10px 28px`,fontSize:14,lineHeight:`16px`,fontWeight:500,borderRadius:n.borderRadius,boxShadow:`none`,"svg:first-child":{width:16,flexShrink:0},whiteSpace:`nowrap`,display:`flex`,gap:8,"&.Mui-disabled":{background:`${n.buttonDisabledBackground} !important`,color:`${n.buttonDisabledColor} !important`,border:`1px solid ${n.buttonDisabledBorder} !important`}},sizeSmall:{padding:`8px 16px`,fontSize:13},outlinedPrimary:$({theme:n,color:n.buttonOutlinedColor,colorHover:n.buttonOutlinedColorHover,background:n.buttonOutlinedBackground,backgroundHover:n.buttonOutlinedBackgroundHover,borderColor:n.buttonOutlinedBorder,borderColorHover:n.buttonOutlinedBorderHover}),containedInfo:$({theme:n,color:`#fff`,colorHover:`#fff`,background:n.colorPrimary500,backgroundHover:n.colorPrimary700,borderColor:n.colorPrimary500,borderColorHover:n.colorPrimary700}),containedPrimary:$({theme:n,color:n.buttonContainedPrimaryColor,colorHover:n.buttonContainedPrimaryColorHover,background:n.buttonContainedPrimaryBackground,backgroundHover:n.buttonContainedPrimaryBackgroundHover,borderColor:n.buttonContainedPrimaryBorder,borderColorHover:n.buttonContainedPrimaryBorderHover}),containedWarning:{"&:hover":{background:O(n.colorWarning,.1)},"&:disabled":{color:n.colorGrey700,background:n.colorWhite}},containedError:{"&:hover":{background:O(n.error,.1)},"&:disabled":{color:n.colorGrey700,background:n.colorWhite}},containedSecondary:$({theme:n,color:n.buttonContainedSecondaryColor,colorHover:n.buttonContainedSecondaryColorHover,background:n.buttonContainedSecondaryBackground,backgroundHover:n.buttonContainedSecondaryBackgroundHover,borderColor:n.buttonContainedSecondaryBorder,borderColorHover:n.buttonContainedSecondaryBorderHover}),textPrimary:{color:n.buttonOutlinedColor,"&:hover":{color:O(n.buttonOutlinedColor,.2)},"&:active":{color:O(n.buttonOutlinedColor,.2)},"&:disabled":{color:n.colorGrey500}},textWarning:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertWarningColor}},outlinedWarning:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertWarningColor}},textError:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertErrorColor}},outlinedError:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertErrorColor}},startIcon:{marginRight:12,height:0,display:`flex`,alignItems:`center`},endIcon:{marginLeft:12,height:0,display:`flex`,alignItems:`center`},sizeLarge:{padding:`16px 32px !important`,fontSize:16}}},MuiSnackbarContent:{styleOverrides:{root:{minWidth:`auto !important`,padding:0,background:`none`,borderRadius:n.borderRadius,fontWeight:500,boxShadow:r[`--v-box-shadow-1`]},message:{padding:0}}},MuiPopover:{defaultProps:{disableScrollLock:!0},styleOverrides:{paper:{background:n.accentBackgroundColor,color:n.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiTooltip:{styleOverrides:{tooltip:{background:e.dark[`--v-accents-100`],border:`1px solid ${e.dark[`--v-strokes`]}`,color:e.dark[`--v-foreground`],boxShadow:r[`--v-box-shadow-1`],fontSize:13,lineHeight:`20px`,padding:`8px 16px`}}},MuiDialog:{defaultProps:{disableScrollLock:!0},styleOverrides:{root:{zIndex:100},paper:{background:n.accentBackgroundColor,color:n.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiStep:{styleOverrides:{root:{padding:`0px 20px`,"&.MuiStep-vertical":{padding:0},"&:first-child":{paddingLeft:0},"&:last-child":{paddingRight:0}}}},MuiStepLabel:{styleOverrides:{iconContainer:{paddingRight:12},label:{color:n.bodyColor,"&.Mui-active":{color:n.colorPrimary700},"&.Mui-completed":{color:n.success}}}},MuiStepIcon:{styleOverrides:{root:{fill:t===`dark`?n.colorGrey500:n.bodyColor,"&.Mui-active":{fill:n.colorPrimary500}}}},MuiTabs:{styleOverrides:{indicator:{display:`none`}}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:{flexGrow:1,textTransform:`none`,color:n.bodyColor,maxWidth:`none`,borderRight:`1px solid ${r[`--v-strokes`]}`,"&.Mui-selected":{color:n.bodyColor,borderBottom:`1px solid transparent`},"&:not(.Mui-selected)":{background:n.accentBackgroundColor,borderBottom:`1px solid ${r[`--v-strokes`]}`},"&:last-child":{borderRight:0}}}},MuiFormControlLabel:{defaultProps:{labelPlacement:`start`},styleOverrides:{label:{marginRight:8,fontSize:14}}},MuiTablePagination:{styleOverrides:{root:{color:n.bodyColor,"& .MuiIconButton-root":{color:`${n.bodyColor} !important`,"&.Mui-disabled":{opacity:.3}},"& .MuiTablePagination-select":{fontSize:`12px !important`},"& .MuiTablePagination-actions":{".MuiSvgIcon-root":{width:20}}},select:{color:`${n.bodyColor} !important`,fontWeight:`400 !important`},selectIcon:{color:`${n.bodyColor} !important`},displayedRows:{fontSize:12},selectLabel:{fontSize:12}}}}})};function ye(e){let t=c(9),n=xe();if(!o())return null;let r;t[0]===n.theme?r=t[1]:(r=ve(n.theme),t[0]=n.theme,t[1]=r);let i;t[2]===n.theme?i=t[3]:(i=P(_e,{theme:n.theme}),t[2]=n.theme,t[3]=i);let a;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=P(ce,{}),t[4]=a):a=t[4];let s;return t[5]!==e.children||t[6]!==r||t[7]!==i?(s=F(C,{theme:r,children:[i,a,e.children]}),t[5]=e.children,t[6]=r,t[7]=i,t[8]=s):s=t[8],s}const be=re(null);function xe(){let e=N(be);if(!e)throw Error(`useVTheme must be used within a VThemeProvider`);return e}function Se(e){let t=c(7),[n,r]=oe(e.defaultTheme??`light`),i;t[0]===n?i=t[1]:(i={theme:n,setTheme:r},t[0]=n,t[1]=i);let a;t[2]===e.children?a=t[3]:(a=P(ye,{children:P(`div`,{className:`${L.className} ${L.variable} ${I.className} ${I.variable}`,children:e.children})}),t[2]=e.children,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=P(be.Provider,{value:i,children:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function Ce(e){let t=c(3),n=e.theme===`dark`?`dark-theme`:`light-theme`,r;return t[0]!==e.children||t[1]!==n?(r=P(`div`,{className:n,children:e.children}),t[0]=e.children,t[1]=n,t[2]=r):r=t[2],r}const we=te(`div`)(e=>({"&:hover":e.$styleHover}));function Te(e){let t=A(),n=k(t.breakpoints.down(`sm`)),r=k(t.breakpoints.down(`md`)),i=Object.fromEntries([[`padding`,e.padding],[`paddingTop`,e.paddingTop],[`paddingBottom`,e.paddingBottom],[`paddingLeft`,e.paddingLeft],[`paddingRight`,e.paddingRight]].filter(([,e])=>e!==void 0)),a=r&&e.gapMdDown?e.gapMdDown:e.gap;return P(we,{style:{display:`flex`,flexDirection:n&&e.flexDirectionSmDown?e.flexDirectionSmDown:r&&e.flexDirectionMdDown?e.flexDirectionMdDown:e.flexDirection,margin:e.margin,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,...i,gap:a,rowGap:e.rowGap||a,columnGap:e.columnGap||a,alignItems:e.alignItems,justifyContent:e.justifyContent,flexWrap:e.flexWrap,flexGrow:e.flexGrow,flexShrink:e.flexShrink,flexBasis:e.flexBasis,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,minHeight:e.minHeight,maxHeight:e.maxHeight,gridColumn:n&&e.gridColumnSpanSmDown?`span ${e.gridColumnSpanSmDown}`:r&&e.gridColumnSpanMdDown?`span ${e.gridColumnSpanMdDown}`:e.gridColumnSpan?`span ${e.gridColumnSpan}`:void 0,color:e.color?`var(${e.color})`:void 0,...e.style},$styleHover:e.styleHover,ref:e.containerRef,onClick:e.onClick,children:e.children})}function Ee(e){let t=c(22),n=A(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=k(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=k(a),s=i&&e.columnsSmDown?e.columnsSmDown:o&&e.columnsMdDown?e.columnsMdDown:e.columns,l=e.rowGap||e.gap,u=e.columnGap||e.gap,d=typeof e.padding==`number`?e.padding:e.padding?.top,f=typeof e.padding==`number`?e.padding:e.padding?.bottom,p=typeof e.padding==`number`?e.padding:e.padding?.left,m=typeof e.padding==`number`?e.padding:e.padding?.right,h=typeof e.margin==`number`?e.margin:e.margin?.top,g=typeof e.margin==`number`?e.margin:e.margin?.bottom,_=typeof e.margin==`number`?e.margin:e.margin?.left,v=typeof e.margin==`number`?e.margin:e.margin?.right,y;t[4]!==s||t[5]!==e.alignItems||t[6]!==e.gap||t[7]!==e.maxWidth||t[8]!==_||t[9]!==v||t[10]!==l||t[11]!==u||t[12]!==d||t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==h||t[17]!==g?(y={display:`grid`,gridTemplateColumns:s,gap:e.gap,rowGap:l,columnGap:u,paddingTop:d,paddingBottom:f,paddingLeft:p,paddingRight:m,marginTop:h,marginBottom:g,marginLeft:_,marginRight:v,alignItems:e.alignItems,maxWidth:e.maxWidth},t[4]=s,t[5]=e.alignItems,t[6]=e.gap,t[7]=e.maxWidth,t[8]=_,t[9]=v,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p,t[15]=m,t[16]=h,t[17]=g,t[18]=y):y=t[18];let b;return t[19]!==e.children||t[20]!==y?(b=P(`div`,{style:y,children:e.children}),t[19]=e.children,t[20]=y,t[21]=b):b=t[21],b}const De={en:{"component.vcode.copy_failed":`Copy to clipboard failed.`,"component.vcode.copy_success":`Copied to clipboard.`,"component.vcode.copy_to_clipboard":`Copy to clipboard`,"component.vcode.toggle_wrap":`Toggle line wrap`,"component.vcode.download_file":`Download file`,"component.vcode.collapse_code":`Collapse code`,"component.vcode.view_code":`View Code`,"component.vchip.copy_failed":`Copy to clipboard failed.`,"component.vchip.copy_success":`Copied to clipboard`,"component.vchip.copy_to_clipboard":`Copy to clipboard`,"component.verrorbox.retry":`Retry`}},Oe=V(),ke=e=>De[e];function Ae(e){let t=c(8),n;t[0]===e.locale?n=t[1]:(n=()=>B({locale:e.locale,messages:ke(e.locale)},Oe),t[0]=e.locale,t[1]=n);let[r,i]=oe(n),a,o;t[2]===e.locale?(a=t[3],o=t[4]):(a=()=>{i(B({locale:e.locale,messages:ke(e.locale)},Oe))},o=[e.locale],t[2]=e.locale,t[3]=a,t[4]=o),ie(a,o);let s;return t[5]!==r||t[6]!==e.children?(s=P(z,{value:r,children:e.children}),t[5]=r,t[6]=e.children,t[7]=s):s=t[7],s}function je(){let e=c(5),t=le(),n;e[0]===t?n=e[1]:(n=function(...e){let[n,r]=e;return t.formatMessage({id:n},r)},e[0]=t,e[1]=n);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=function(...e){let[t,n]=e;return P(R,{id:t,values:{...n}},t)},e[2]=r):r=e[2];let i;return e[3]===n?i=e[4]:(i={t:n,tHtml:r},e[3]=n,e[4]=i),i}const Me={strong:r[`--v-accents-100`],error:r[`--v-red-700`],disabled:r[`--v-accents-700`]},Ne={300:300,400:400,500:500,600:600,700:700,800:800,900:900};function Pe(e){let t=c(12),n=A(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=k(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=k(a),s=e.type?`v-text-${e.type}`:void 0,l=e.color?Me[e.color]||`var(${e.color})`:void 0,u=e.weight?Ne[e.weight]:void 0,d=e.component===`ul`?14:void 0,f=i&&e.textAlignSmDown?e.textAlignSmDown:o&&e.textAlignMdDown?e.textAlignMdDown:e.textAlign,p=e.breakWord?`break-word`:void 0,m;return t[4]!==e||t[5]!==s||t[6]!==l||t[7]!==u||t[8]!==d||t[9]!==f||t[10]!==p?(m=j(e.component,{className:s,style:{color:l,fontWeight:u,paddingLeft:d,textAlign:f,width:e.width,maxWidth:e.maxWidth,wordBreak:p,...e.noWrapEllipsis?{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`}:{},...e.style},"data-testid":e[`data-testid`],onClick:e.onClick},e.children),t[4]=e,t[5]=s,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function Fe(e){let t=e.durationInMs===`infinite`?9999999999:e.durationInMs||8e3,n,r={description:e.description,duration:t};return e.id&&(r.id=e.id),setTimeout(()=>{n=e.type===`info`?W.info(e.title,r):e.type===`success`?W.success(e.title,r):e.type===`warning`?W.warning(e.title,r):e.type===`error`?W.error(e.title,r):e.type===`loading`?W.loading(e.title,r):W.info(e.title,r)}),{dismiss:()=>{W.dismiss(n)}}}function Ie(){let e=c(2),{theme:t}=xe(),n;return e[0]===t?n=e[1]:(n=P(U,{richColors:!0,theme:t,visibleToasts:4,position:`top-center`,closeButton:!0}),e[0]=t,e[1]=n),n}const Le=r[`--v-accents-500`],Re=2e3;async function ze(e){return ue(await H(e.code,{lang:e.lang,theme:`github-dark-default`,transformers:[{code(e){let t=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${t}font-family: var(--font-geist-mono);`},line(e,t){let n=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${n}display:block;padding-left:3.5em;line-height:20px`,e.children.unshift({type:`element`,tagName:`span`,properties:{style:`margin-left:-3.5em;color:${r[`--v-accents-500`]};user-select:none;display:inline-block;width:2em;margin-right:1.5em;text-align:right`},children:[{type:`text`,value:String(t)}]})}}]}),{Fragment:ne,jsx:P,jsxs:F,components:{pre:t=>P(`pre`,{...t,style:{...t.style,padding:`14px 16px`,fontSize:13,lineHeight:0,overflow:`auto`,whiteSpace:e.wrap?`pre-wrap`:`pre`,margin:0,background:r[`--v-accents-100`],borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`],maxHeight:e.maxHeight}})}})}function Be(e){let t=c(94),i=je(),[a,o]=oe(null),[l,d]=oe(!1),[f,y]=oe(!1),[b,ee]=oe(e.defaultCollapsed??!1),C=e.collapsed??b,T;t[0]===e?T=t[1]:(T=t=>{e.collapsed===void 0&&ee(t),e.onCollapsedChange?.(t)},t[0]=e,t[1]=T);let E=T,D,O;t[2]!==e.content||t[3]!==e.lang||t[4]!==e.maxHeight||t[5]!==l?(D=()=>{ze({code:e.content,lang:e.lang,wrap:l,maxHeight:e.maxHeight}).then(o)},O=[e.content,e.lang,e.maxHeight,l],t[2]=e.content,t[3]=e.lang,t[4]=e.maxHeight,t[5]=l,t[6]=D,t[7]=O):(D=t[6],O=t[7]),ae(D,O);let te,k;t[8]===f?(te=t[9],k=t[10]):(te=()=>{if(!f)return;let e=window.setTimeout(()=>y(!1),Re);return()=>window.clearTimeout(e)},k=[f],t[8]=f,t[9]=te,t[10]=k),ie(te,k);let A;t[11]===e.style?A=t[12]:(A={position:`relative`,minHeight:128,...e.style},t[11]=e.style,t[12]=A);let ne;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(ne={background:r[`--v-background`],borderTopLeftRadius:n[`--v-border-radius`],borderTopRightRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-strokes`]}`,color:Le},t[13]=ne):ne=t[13];let re;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(re=P(v,{height:16,width:16,style:{marginRight:8}}),t[14]=re):re=t[14];let j;t[15]===e.title?j=t[16]:(j=F(Te,{alignItems:`center`,gap:8,children:[re,P(Pe,{component:`span`,type:`copy-13`,weight:`400`,children:e.title})]}),t[15]=e.title,t[16]=j);let M;t[17]!==C||t[18]!==E||t[19]!==i?(M=!C&&P(w,{title:i.t(`component.vcode.collapse_code`),placement:`top`,children:P(S,{"aria-label":i.t(`component.vcode.collapse_code`),"aria-expanded":!0,onClick:()=>E(!0),style:{border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Le},children:P(g,{height:16,width:16})})}),t[17]=C,t[18]=E,t[19]=i,t[20]=M):M=t[20];let N;t[21]===i?N=t[22]:(N=i.t(`component.vcode.download_file`),t[21]=i,t[22]=N);let se;t[23]===i?se=t[24]:(se=i.t(`component.vcode.download_file`),t[23]=i,t[24]=se);let I;t[25]!==e.content||t[26]!==e.title?(I=()=>{let t=new Blob([e.content],{type:`text/plain`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=e.title,r.click(),URL.revokeObjectURL(n)},t[25]=e.content,t[26]=e.title,t[27]=I):I=t[27];let L,ce;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(L={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Le},ce=P(p,{height:16,width:16}),t[28]=L,t[29]=ce):(L=t[28],ce=t[29]);let R;t[30]!==se||t[31]!==I?(R=P(S,{"aria-label":se,onClick:I,style:L,children:ce}),t[30]=se,t[31]=I,t[32]=R):R=t[32];let z;t[33]!==N||t[34]!==R?(z=P(w,{title:N,placement:`top`,children:R}),t[33]=N,t[34]=R,t[35]=z):z=t[35];let B;t[36]===i?B=t[37]:(B=i.t(`component.vcode.toggle_wrap`),t[36]=i,t[37]=B);let V;t[38]===i?V=t[39]:(V=i.t(`component.vcode.toggle_wrap`),t[38]=i,t[39]=V);let le,ue;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(le=()=>d(Ve),ue={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Le},t[40]=le,t[41]=ue):(le=t[40],ue=t[41]);let H;t[42]===l?H=t[43]:(H=P(l?h:m,{height:16,width:16}),t[42]=l,t[43]=H);let U;t[44]!==V||t[45]!==H?(U=P(S,{"aria-label":V,onClick:le,style:ue,children:H}),t[44]=V,t[45]=H,t[46]=U):U=t[46];let W;t[47]!==B||t[48]!==U?(W=P(w,{title:B,placement:`top`,children:U}),t[47]=B,t[48]=U,t[49]=W):W=t[49];let G;t[50]!==f||t[51]!==i?(G=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[50]=f,t[51]=i,t[52]=G):G=t[52];let K;t[53]!==f||t[54]!==i?(K=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[53]=f,t[54]=i,t[55]=K):K=t[55];let q;t[56]!==e.content||t[57]!==i?(q=async t=>{t.stopPropagation();try{await s.copyToClipboard(e.content),y(!0),Fe({type:`success`,title:i.t(`component.vcode.copy_success`),durationInMs:Re})}catch{Fe({type:`error`,title:i.t(`component.vcode.copy_failed`)})}},t[56]=e.content,t[57]=i,t[58]=q):q=t[58];let J;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(J={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Le},t[59]=J):J=t[59];let Y;t[60]===f?Y=t[61]:(Y=P(f?u:_,{height:16,width:16}),t[60]=f,t[61]=Y);let X;t[62]!==K||t[63]!==q||t[64]!==Y?(X=P(S,{"aria-label":K,onClick:q,style:J,children:Y}),t[62]=K,t[63]=q,t[64]=Y,t[65]=X):X=t[65];let de;t[66]!==G||t[67]!==X?(de=P(w,{title:G,placement:`top`,children:X}),t[66]=G,t[67]=X,t[68]=de):de=t[68];let fe;t[69]!==z||t[70]!==W||t[71]!==de||t[72]!==M?(fe=F(Te,{alignItems:`center`,gap:8,children:[M,z,W,de]}),t[69]=z,t[70]=W,t[71]=de,t[72]=M,t[73]=fe):fe=t[73];let pe;t[74]!==fe||t[75]!==j?(pe=F(Te,{style:ne,gap:40,alignItems:`center`,justifyContent:`space-between`,padding:`6px 12px 6px 16px`,children:[j,fe]}),t[74]=fe,t[75]=j,t[76]=pe):pe=t[76];let me=C?110:void 0,he=C?`hidden`:void 0,ge;t[77]!==me||t[78]!==he?(ge={position:`relative`,maxHeight:me,overflow:he,borderLeft:`1px solid ${r[`--v-strokes`]}`,borderBottom:`1px solid ${r[`--v-strokes`]}`,borderRight:`1px solid ${r[`--v-strokes`]}`,borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`]},t[77]=me,t[78]=he,t[79]=ge):ge=t[79];let _e;t[80]!==C||t[81]!==E||t[82]!==i?(_e=C&&P(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(180deg, rgb(0 0 0 / 45%), rgb(0 0 0 / 90%))`},children:P(x,{variant:`outlined`,size:`small`,"aria-expanded":!1,onClick:()=>E(!1),style:{background:r[`--v-background`]},children:i.t(`component.vcode.view_code`)})}),t[80]=C,t[81]=E,t[82]=i,t[83]=_e):_e=t[83];let Z;t[84]!==a||t[85]!==ge||t[86]!==_e?(Z=F(`div`,{style:ge,children:[a,_e]}),t[84]=a,t[85]=ge,t[86]=_e,t[87]=Z):Z=t[87];let Q;t[88]!==pe||t[89]!==Z?(Q=F(Ce,{theme:`dark`,children:[pe,Z]}),t[88]=pe,t[89]=Z,t[90]=Q):Q=t[90];let $;return t[91]!==Q||t[92]!==A?($=P(Te,{flexDirection:`column`,style:A,children:Q}),t[91]=Q,t[92]=A,t[93]=$):$=t[93],$}function Ve(e){return!e}const He=te(`span`)(e=>({...e.$style,"&:hover":e.$styleHover})),Ue=`medium`,We=2e3;function Ge(e){let t=je(),[n,i]=oe(!1);ie(()=>{if(!n)return;let e=window.setTimeout(()=>i(!1),We);return()=>window.clearTimeout(e)},[n]);let a={color:r[`--v-blue-700`],border:r[`--v-blue-500`],background:r[`--v-blue-100`],backgroundHover:r[`--v-blue-200`]};`type`in e?e.type===`error`?(a.color=r[`--v-red-700`],a.border=r[`--v-red-500`],a.background=r[`--v-red-100`],a.backgroundHover=r[`--v-red-200`]):e.type===`success`&&(a.color=r[`--v-green-700`],a.border=r[`--v-green-500`],a.background=r[`--v-green-100`],a.backgroundHover=r[`--v-green-200`]):(a.color=e.color,a.border=e.border,a.background=e.background,a.backgroundHover=e.backgroundHover||e.background);let o={small:{padding:`3px 8px`,fontSize:10},medium:{padding:`6px 14px`,fontSize:11},large:{padding:`9px 20px`,fontSize:12}};return P(w,{title:e.tooltip??``,placement:e.tooltipPlacement??`top`,children:P(He,{$style:{border:`1px solid ${a.border}`,color:a.color,background:a.background,padding:o[e.size??Ue].padding,borderRadius:9999,fontSize:o[e.size??Ue].fontSize,fontWeight:600,lineHeight:`12px`,display:`inline-block`,cursor:e.onClick?`pointer`:`default`,...e.style},onClick:t=>{t.stopPropagation(),e.onClick?.()},$styleHover:{background:a.backgroundHover},children:F(Te,{gap:8,alignItems:`center`,children:[e.content,e.showCopyButton&&P(w,{title:n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),placement:`top`,children:P(S,{"aria-label":n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),onClick:async n=>{n.stopPropagation();let r=e.copyText?.trim();if(r)try{await s.copyToClipboard(r),i(!0),Fe({type:`success`,title:e.copyToastTitle??t.t(`component.vchip.copy_success`),durationInMs:We})}catch{Fe({type:`error`,title:t.t(`component.vchip.copy_failed`)})}},style:{border:`none`,background:`transparent`,padding:0,margin:0,display:`flex`,alignItems:`center`,color:a.color},children:P(n?u:_,{height:12,width:12})})})]})})})}function Ke(e){let t=c(21),i=je(),a=e.onRetry,o=e.size===`small`?`18px ${a?20:28}px 18px 28px`:`14px ${a?20:28}px 14px 28px`,s;t[0]===e.singleLine?s=t[1]:(s=e.singleLine?{whiteSpace:`nowrap`,minWidth:0,flexGrow:1}:{},t[0]=e.singleLine,t[1]=s);let u;t[2]!==e.style||t[3]!==o||t[4]!==s?(u={color:r[`--v-red-700`],background:r[`--v-red-200`],borderRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-red-700`]}`,padding:o,display:`flex`,alignItems:`center`,justifyContent:`space-between`,fontSize:13,fontWeight:400,lineHeight:`15px`,maxWidth:`100%`,...s,...e.style},t[2]=e.style,t[3]=o,t[4]=s,t[5]=u):u=t[5];let d=a?12:0,f;t[6]===d?f=t[7]:(f={marginRight:d,overflow:`hidden`,textOverflow:`ellipsis`},t[6]=d,t[7]=f);let p;t[8]!==e.children||t[9]!==f?(p=P(`div`,{style:f,children:e.children}),t[8]=e.children,t[9]=f,t[10]=p):p=t[10];let m;t[11]!==e||t[12]!==i?(m=e.onRetry&&P(w,{title:i.t(`component.verrorbox.retry`),placement:`bottom`,children:P(S,{onClick:t=>{t.stopPropagation(),e.onRetry?.()},style:{marginLeft:`auto`,color:r[`--v-red-700`]},children:P(l,{style:{width:16}})})}),t[11]=e,t[12]=i,t[13]=m):m=t[13];let h;t[14]!==u||t[15]!==p||t[16]!==m?(h=F(`div`,{style:u,children:[p,m]}),t[14]=u,t[15]=p,t[16]=m,t[17]=h):h=t[17];let g;return t[18]!==e.tooltip||t[19]!==h?(g=P(w,{title:e.tooltip,placement:`top`,children:h}),t[18]=e.tooltip,t[19]=h,t[20]=g):g=t[20],g}export{q as VAlert,pe as VCard,Ge as VChip,Be as VCode,Ke as VErrorBox,Te as VFlex,Ee as VGrid,Ae as VIntlProvider,fe as VLoading,Ce as VTheme,Se as VThemeProvider,Ie as VToast,Fe as showVToast,xe as useVTheme};
|
|
244
|
+
`}),n[0]=i):i=n[0];let a;n[1]===e.theme?a=n[2]:(a=he(e.theme),n[1]=e.theme,n[2]=a);let o;return n[3]===a?o=n[4]:(o=N(le,{children:[i,M(`style`,{children:a})]}),n[3]=a,n[4]=o),o}function X(){let t=`#2050ff`;t+``,t+``,t+``;let n=D(t,.2),r=`#e60000`,o=`#E0E0E0`,s=E(o,.5),c=E(o,.2),l=D(o,.2),u=D(o,.4),d=`#e8e8e8`,f=`#e77700`;return{...e.light,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#2050ff1a`,colorPrimary500Alpha15:`#2050ff26`,colorPrimary500Alpha20:`#2050ff33`,colorPrimary700:n,colorGrey100:s,colorGrey300:c,colorGrey500:o,colorGrey700:l,colorGrey900:u,colorPurple900:`#a027ff`,colorPurple900Alpha10:w(`#a027ff`,.1),colorPink900:`#e43a99`,colorPink900Alpha:`#e43a9914`,colorWarning:f,colorMarker:`rgb(244 125 27 / 39%) 4%, rgb(215 106 40 / 15%)`,borderRadius:`6px`,colorBlack:`#000000`,colorStrokes:d,colorStrokesLight:D(d,.5),linkColor:n,linkColorHover:D(n,.25),colorWhite:`#FFFFFF`,bodyBackground:`#fcfcfc`,bodyColor:`#444`,bodyColorAlpha50:w(`#444`,.5),bodyColorStrong:`#000`,inputBackground:`#fff`,inputBackgroundDisabled:`rgb(250, 250, 250)`,inputColor:`#000`,inputColorDisabled:s,inputBorder:`#e8e8e8`,inputHoverBorder:E(`#e8e8e8`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px rgba(50, 132, 255, 0.1)`,buttonContainedPrimaryColor:`#fff`,buttonContainedPrimaryColorHover:`#fff`,buttonContainedPrimaryBackground:`#0a0a0a`,buttonContainedPrimaryBackgroundHover:D(`#0a0a0a`,.1),buttonContainedPrimaryBorder:D(`#0a0a0a`,.1),buttonContainedPrimaryBorderHover:D(`#0a0a0a`,.2),buttonContainedSecondaryColor:`#fff`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:D(`#0a0a0a`,.1),buttonContainedSecondaryBorder:`#0a0a0a`,buttonContainedSecondaryBorderHover:D(`#0a0a0a`,.1),buttonOutlinedColor:`rgba(0, 0, 0, 0.9)`,buttonOutlinedColorHover:`rgba(0, 0, 0, 1)`,buttonOutlinedBackground:`#fafafa`,buttonOutlinedBackgroundHover:`#fff`,buttonOutlinedBorder:`#e8e8e8`,buttonOutlinedBorderHover:E(`#e8e8e8`,.1),buttonDisabledColor:c,buttonDisabledBackground:u,buttonDisabledBorder:o,checkboxBackground:t,checkboxLabelColor:`rgba(0, 0, 0, 0.9)`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,error:r,errorAlpha10:w(r,.1),errorAlpha15:w(r,.15),errorAlpha20:w(r,.2),success:`#11c12fff`,switchThumb:`#fff`,switchTrack:c,switchTrackChecked:t,iconButtonColor:D(`#05102b`,.4),iconButtonColorHover:`#05102b`,accentBackgroundColor:`#fff`,accentBackgroundColorStrong:E(`#fff`,.05),alertInfoBackground:D(t,.9),alertInfoColor:t,alertInfoBorder:`hsl(221, 91%, 91%)`,alertSuccessBackground:`hsl(143, 85%, 96%)`,alertSuccessColor:`hsl(140, 100%, 27%)`,alertSuccessBorder:`hsl(145, 92%, 91%)`,alertWarningBackground:D(f,.95),alertWarningColor:f,alertWarningBorder:D(f,.8),alertErrorBackground:`hsl(359, 100%, 97%)`,alertErrorColor:`hsl(360, 100%, 45%)`,alertErrorBorder:`hsl(359, 100%, 94%)`,sidebarBackground:`#fff`,sidebarActiveColor:`#000`,sidebarActiveBackground:w(`#000`,.05),sidebarActiveBackgroundHover:w(n,.075),sidebarColor:e.light[`--v-accents-700`],sidebarLinkHoverBackground:`rgba(0, 0, 0, 0.05)`,sidebarLinkHoverColor:`rgba(0, 0, 0, 0.9)`,tableSortIconBackground:e.light[`--v-blue-200`],tableSortIconColor:e.light[`--v-blue-700`],tableBorderColor:`rgba(0, 0, 0, 0.1)`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:c,dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:`#2c5dbf0f`,dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:w(u,.5),selectionColor:`#fff`,selectionBackground:t,boxShadow:`0px 5px 5px -3px rgb(0 0 0 / 0%), 0px 8px 10px 1px rgb(0 0 0 / 2%), 0px 3px 14px 2px rgba(0,0,0,0.12)`,boxShadow2:`0 14px 20px -4px rgba(50,50,93,0.05), 0 8px 16px -8px rgba(0,0,0,0.05)`,boxShadow3:`0 14px 20px -4px rgba(229, 239, 250, 1)`,boxShadow4:`0 1px 2px 0 rgba(0,0,0,.05)`,boxShadowError:`0 14px 20px -4px rgba(255, 18, 18, 0.05), 0 8px 16px -8px rgba(255, 0, 0, 0.05)`,keystrokePreviewColor:s,keystrokePreviewBackground:`rgba(0, 0, 0, 0.03)`,dottedBackgroundDotsColor:`#00000016`,blockEditorSidebarGroupHeaderBackground:`#fafafa`,blockEditorSidebarGroupHeaderBackgroundHover:`#f2f2f2`,blockEditorSidebarGroupHeaderColor:`#000`,upgradeToProBannerBackground:`#0a0a0a`,upgradeToProBannerBackgroundHover:D(`#0a0a0a`,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid #0a0a0a`}}function Z(){let t=`#006eff`;t+``,t+``,t+``;let n=E(t,.4),r=D(t,.2),o=`hsl(360, 100%, 45%)`,s=`#444`,c=E(s,.8),l=E(s,.4),u=D(s,.4),d=D(s,.8),f=`#2a2a2a`,p=`#ff9700`;return{...e.dark,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#006eff1a`,colorPrimary500Alpha15:`#006eff26`,colorPrimary500Alpha20:`#006eff33`,colorPrimary700:r,colorGrey100:d,colorGrey300:u,colorGrey500:s,colorGrey700:l,colorGrey900:c,colorPurple900:`#c068ff`,colorPurple900Alpha10:w(`#c068ff`,.1),colorPink900:`#ff1e9c`,colorPink900Alpha:`#ff1e9c1f`,colorWarning:p,colorMarker:`${w(t,.4)} 4%, ${w(t,.15)}`,borderRadius:`6px`,colorBlack:`#fff`,colorStrokes:f,colorStrokesLight:E(f,.5),linkColor:r,linkColorHover:D(r,.25),colorWhite:`#0e0e0e`,bodyBackground:e.dark[`--v-background-100`],bodyColor:`#a1a1a1`,bodyColorAlpha50:w(`#fff`,.5),bodyColorStrong:`#fff`,inputBackground:`#0a0a0a`,inputBackgroundDisabled:`#ffffff14`,inputColor:`#fff`,inputColorDisabled:d,inputBorder:`#2a2a2a`,inputHoverBorder:D(`#2a2a2a`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px ${w(t,.2)}`,buttonContainedPrimaryColor:`#000`,buttonContainedPrimaryColorHover:`#000`,buttonContainedPrimaryBackground:`#fff`,buttonContainedPrimaryBackgroundHover:E(`#fff`,.1),buttonContainedPrimaryBorder:`#fff`,buttonContainedPrimaryBorderHover:E(`#fff`,.1),buttonContainedSecondaryColor:`#e3e3e3`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:D(`#0a0a0a`,.1),buttonContainedSecondaryBorder:f,buttonContainedSecondaryBorderHover:D(f,.1),buttonOutlinedColor:`#e3e3e3`,buttonOutlinedColorHover:`#fff`,buttonOutlinedBackground:`#0a0a0a`,buttonOutlinedBackgroundHover:D(`#0a0a0a`,.1),buttonOutlinedBorder:f,buttonOutlinedBorderHover:D(f,.1),buttonDisabledColor:l,buttonDisabledBackground:c,buttonDisabledBorder:l,checkboxBackground:t,checkboxLabelColor:`#fff`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,error:o,errorAlpha10:w(o,.1),errorAlpha15:w(o,.15),errorAlpha20:w(o,.2),success:`#1ce853`,switchThumb:`#fff`,switchTrack:`#30363d`,switchTrackChecked:t,iconButtonColor:E(`#fff`,.2),iconButtonColorHover:`#fff`,accentBackgroundColor:`#0a0a0a`,accentBackgroundColorStrong:`#0e0e0e`,alertInfoBackground:`rgb(11 20 38)`,alertInfoColor:r,alertInfoBorder:E(t,.6),alertSuccessBackground:`hsl(150, 100%, 6%)`,alertSuccessColor:`#59f380`,alertSuccessBorder:`hsl(147, 100%, 12%)`,alertWarningBackground:E(p,.85),alertWarningColor:p,alertWarningBorder:E(p,.5),alertErrorBackground:`hsl(358, 76%, 5%)`,alertErrorColor:`#f00`,alertErrorBorder:`hsl(357, 89%, 16%)`,sidebarBackground:e.dark[`--v-background-200`],sidebarActiveColor:`#fff`,sidebarActiveBackground:w(`#fff`,.05),sidebarActiveBackgroundHover:w(r,.075),sidebarColor:e.dark[`--v-accents-700`],sidebarLinkHoverBackground:`rgba(255, 255, 255, 0.05)`,sidebarLinkHoverColor:`#fff`,tableSortIconBackground:e.dark[`--v-blue-200`],tableSortIconColor:e.dark[`--v-blue-700`],tableBorderColor:`#292d31`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:w(s,.5),dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:w(s,.05),dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:w(s,.05),selectionColor:`#fff`,selectionBackground:n,boxShadow:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow2:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow3:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow4:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadowError:`0px 0px 60px 0px rgba(255, 0, 0, 0.15)`,keystrokePreviewColor:d,keystrokePreviewBackground:`rgba(255, 255, 255, 0.03)`,dottedBackgroundDotsColor:`#ffffff16`,blockEditorSidebarGroupHeaderBackground:`#1a1a1a`,blockEditorSidebarGroupHeaderBackgroundHover:`#262626`,blockEditorSidebarGroupHeaderColor:`#fff`,upgradeToProBannerBackground:t,upgradeToProBannerBackgroundHover:D(t,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid ${t}`}}function Q(e){return{color:e.color,background:e.background,border:`1px solid ${e.borderColor}`,"&:hover":{color:e.colorHover,border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover,boxShadow:`0px 2px 4px -1px rgb(0 0 0 / 8%), 0px 4px 5px 0px rgb(0 0 0 / 7%), 0px 1px 10px 0px rgba(0,0,0,0.12)`},"&:active":{border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover},"&:disabled":{color:e.theme.colorGrey100,border:`1px solid ${e.theme.colorGrey500}`,background:e.theme.colorGrey500}}}const $=t=>{let n=t===`light`?X():Z();return T({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,header:1140,defaultScreenSize:1024}},typography:{fontFamily:[F.style?.fontFamily??`"Geist Sans"`,`Arial`].join(`, `)},palette:{error:{main:n.error},primary:{main:n.colorPrimary500},secondary:{main:n.colorPrimary500},mode:t},components:{MuiChip:{styleOverrides:{root:{padding:`6px 14px`,borderRadius:9999,fontSize:10,fontWeight:700,lineHeight:`12px`,height:`auto`,borderWidth:1,borderStyle:`solid`,"&:active":{boxShadow:`none`},".MuiChip-label":{display:`flex`,alignItems:`center`,gap:4,padding:0},svg:{width:16,marginRight:4}},colorPrimary:{backgroundColor:n.alertInfoBackground,borderColor:n.alertInfoBorder,color:n.alertInfoColor,"&:hover:not(&.no-hover-effect)":{backgroundColor:n.alertInfoBackground}},colorSuccess:{backgroundColor:n.alertSuccessBackground,borderColor:n.alertSuccessBorder,color:n.alertSuccessColor,"&:hover":{backgroundColor:n.alertSuccessBackground}},colorError:{backgroundColor:n.alertErrorBackground,borderColor:n.alertErrorBorder,color:n.alertErrorColor,"&:hover":{backgroundColor:n.alertErrorBackground}}}},MuiInputLabel:{styleOverrides:{root:{marginLeft:2}}},MuiSkeleton:{defaultProps:{variant:`rounded`,animation:`wave`},styleOverrides:{root:{borderRadius:n.borderRadius,backgroundColor:t===`light`?`rgba(0, 0, 0, 0.11)`:`rgba(255, 255, 255, 0.11)`,"&::after":{background:t===`light`?`linear-gradient(90deg, transparent, rgb(0, 0, 0, 0.04), transparent)`:`linear-gradient(90deg, transparent, rgb(255, 255, 255, 0.04), transparent)`}}}},MuiMenu:{styleOverrides:{paper:{transition:`none !important`}}},MuiListItemText:{styleOverrides:{root:{fontSize:13,".MuiTypography-root":{fontSize:13}}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:`0 !important`,width:16,marginRight:8}}},MuiMenuItem:{defaultProps:{disableRipple:!0},styleOverrides:{root:{fontSize:14,paddingLeft:20,paddingRight:20,color:n[`--v-accents-700`],svg:{height:16},"&:hover":{background:n[`--v-accents-200`],color:n[`--v-foreground`]},"&.Mui-selected":{background:`${n.sidebarActiveBackground} !important`,color:`${n.sidebarActiveColor} !important`,"&:hover":{background:`${n.sidebarActiveBackground} !important`,color:`${n.sidebarActiveColor} !important`}},"&.Mui-focusVisible":{background:`none`,"&:hover":{background:n.sidebarLinkHoverBackground,color:n.sidebarLinkHoverColor}}}}},MuiSelect:{styleOverrides:{root:{fontWeight:500}}},MuiSvgIcon:{styleOverrides:{root:{"&.MuiSelect-icon":{color:n.inputBorder},"&.MuiStepIcon-root.Mui-completed":{fill:n.success}}}},MuiCssBaseline:{styleOverrides:{html:{backgroundColor:n.bodyBackground,color:n.bodyColor},body:{backgroundColor:n.bodyBackground,color:n.bodyColor,fontSize:14}}},MuiAccordion:{defaultProps:{disableGutters:!0},styleOverrides:{root:{margin:`0`,background:`none`,boxShadow:`none`,color:n.bodyColor,border:`1px solid ${n.colorStrokes}`,borderRadius:n.borderRadius,":hover":{borderColor:n[`--v-blue-700`]},":first-of-type":{borderRadius:n.borderRadius},":last-of-type":{borderRadius:n.borderRadius},svg:{transition:`0.2s ease-out transform`},".MuiAccordionSummary-root":{fontWeight:500,borderRadius:n.borderRadius,padding:`12px 24px`,color:n.bodyColorStrong,minHeight:0,":hover":{background:n.accentBackgroundColor}},".MuiAccordionSummary-content":{margin:`6px 0px`},".MuiAccordionDetails-root":{padding:`8px 24px 24px`},"&:before":{opacity:0},"&.Mui-expanded":{".MuiAccordionSummary-root":{svg:{transform:`rotate(180deg)`}}}}}},MuiRadio:{styleOverrides:{root:{color:n.inputBorder}}},MuiTable:{styleOverrides:{root:{border:`1px solid ${n.colorStrokes}`,borderRadius:n.borderRadius,borderCollapse:`separate`,overflow:`hidden`,background:n.accentBackgroundColor,".MuiTableCell-root.MuiTableCell-head":{fontWeight:600,color:n[`--v-accents-1000`],background:n[`--v-accents-100`]},".MuiTableCell-root":{borderBottom:`1px solid ${n.colorStrokes}`,fontSize:13,color:n.bodyColor,padding:`8px 16px`,height:57}}}},MuiToggleButtonGroup:{styleOverrides:{root:{padding:`4px 0px`,borderRadius:`8px`,overflow:`hidden`,border:`1px solid ${n.colorStrokes}`,background:n[`--v-background`]}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:11,marginLeft:0,marginRight:0}}},MuiToggleButton:{styleOverrides:{root:{borderRadius:`6px !important`,fontSize:13,fontWeight:500,lineHeight:`18px`,textTransform:`none`,flexGrow:1,color:n[`--v-foreground`],padding:`8px 16px`,margin:`0 4px`,border:0,svg:{fontSize:16},"&:hover":{background:n[`--v-accents-200`]},"&.Mui-selected":{background:n[`--v-accents-200`],color:n[`--v-foreground`],"&:hover":{background:n[`--v-accents-200`]}}},sizeSmall:{padding:`5px 12px`,fontSize:13}}},MuiAlert:{styleOverrides:{root:{fontSize:`14px`,padding:`12px 24px`},icon:{padding:`8px 0`,marginRight:24,color:`inherit !important`},message:{padding:`6px 0`},standardSuccess:{background:n.alertSuccessBackground,border:`1px solid ${n.alertSuccessBorder}`,borderRadius:n.borderRadius,color:n.alertSuccessColor},standardWarning:{background:n.alertWarningBackground,border:`1px solid ${n.alertWarningBorder}`,borderRadius:n.borderRadius,color:n.alertWarningColor},standardError:{background:n.alertErrorBackground,border:`1px solid ${n.alertErrorBorder}`,borderRadius:n.borderRadius,color:n.alertErrorColor},standardInfo:{background:n.alertInfoBackground,border:`1px solid ${n.alertInfoBorder}`,borderRadius:n.borderRadius,color:n.alertInfoColor}}},MuiAlertTitle:{styleOverrides:{root:{marginTop:0}}},MuiFormLabel:{styleOverrides:{root:{color:n.checkboxLabelColor,marginLeft:n.checkboxLabelMargin,fontSize:n.checkboxLabelFontSize,fontWeight:400,"& a":{color:n.linkColor,fontWeight:500,"&:hover":{color:n.linkColorHover}}}}},MuiTableRow:{styleOverrides:{root:{"&:last-child > td":{borderBottom:0},"&.MuiTableRow-hover":{cursor:`pointer`,"&:hover":{background:t===`light`?`rgba(0, 0, 0, 0.01)`:`rgba(255, 255, 255, 0.03)`}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:`1px solid ${n.colorStrokes}`},head:{padding:`11.5px 16px`,whiteSpace:`nowrap`}}},MuiCheckbox:{styleOverrides:{colorPrimary:{"&.Mui-checked input + span":{background:n.checkboxBackground,borderColor:n.checkboxBackground},"&.MuiCheckbox-indeterminate input + span":{background:n.checkboxBackground,borderColor:n.checkboxBackground}}}},MuiSwitch:{styleOverrides:{track:({ownerState:e})=>({opacity:1,borderRadius:20,background:n.switchTrack,".Mui-checked.Mui-checked:not(.Mui-disabled) + &":{background:n.switchTrackChecked,opacity:1},...e.disabled&&{".Mui-checked.Mui-checked + &":{background:n.switchTrack,opacity:.4}},...e.color===`secondary`&&{opacity:.75,borderRadius:20,background:n.switchTrack,".Mui-checked.Mui-checked + &":{background:n.switchTrack,opacity:1}}}),thumb:({ownerState:e})=>({color:n.switchThumb,...e.color===`secondary`&&{color:n.colorPrimary700},...e.disabled&&{opacity:.8}}),disabled:()=>({".Mui-checked.Mui-checked + &":{background:n.colorPrimary700,opacity:.5}})}},MuiAutocomplete:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`},styleOverrides:{root:{background:n.inputBackground,color:n.inputColor,fieldset:{borderRadius:n.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiOutlinedInput-root":{padding:`10px 14px`},"& .MuiOutlinedInput-root .MuiAutocomplete-input":{padding:0,fontSize:13}},listbox:{"& .MuiAutocomplete-option":{fontSize:15}}}},MuiInputBase:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`,autoComplete:`off`},styleOverrides:{root:{background:n.inputBackground,color:n.inputColor,fieldset:{borderRadius:n.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:n.inputColorDisabled},"& .MuiOutlinedInput-input":{fontSize:13},"&.MuiOutlinedInput-root":{paddingRight:`10px`,"& fieldset":{borderColor:n.inputBorder},"&:hover fieldset":{borderColor:n.inputHoverBorder},"&.Mui-focused fieldset":{borderColor:n.inputActiveBorder,borderWidth:1,boxShadow:n.inputActiveShadow},"&.Mui-disabled":{background:n.inputBackgroundDisabled,"& fieldset":{borderColor:n.colorStrokes}}}}}},MuiOutlinedInput:{styleOverrides:{input:{fontSize:14,padding:`10px 14px`},inputSizeSmall:{padding:`8px 14px`,fontSize:12}}},MuiIconButton:{styleOverrides:{root:{color:n.iconButtonColor,borderRadius:n.borderRadius,"&:hover":{color:n.iconButtonColorHover}}}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{boxShadow:`none`,borderRadius:0,"& .MuiButtonGroup-firstButton":{border:`1px solid ${n.buttonContainedPrimaryBorder}`},"& .MuiSvgIcon-root":{height:20}}}},MuiInputAdornment:{styleOverrides:{root:{color:n.iconButtonColor,".MuiTypography-root":{fontSize:13},marginRight:`0 !important`}}},MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:{transition:`none !important`,".MuiChip-root":{background:n.colorPrimary500,color:t===`light`?n.colorWhite:n.colorBlack,"&:hover":{background:n.colorPrimary500}}}}},MuiButton:{defaultProps:{disableRipple:!0,disableElevation:!0},variants:[{props:{variant:`link`},style:{color:n.linkColor,padding:0,minWidth:`auto`,height:`fit-content`,"& .MuiTouchRipple-root":{display:`none`},"&:hover":{color:n.linkColorHover,background:`none`},"&:active":{color:n.linkColorHover,background:`none`},"&:disabled":{color:n.colorGrey500,background:`none`},"&.MuiButton-linkError":{color:n.error,"&:hover":{color:D(n.error,.25)}}}}],styleOverrides:{root:{":hover, :focus":{boxShadow:`none !important`},textTransform:`unset`,padding:`10px 28px`,fontSize:14,lineHeight:`16px`,fontWeight:500,borderRadius:n.borderRadius,boxShadow:`none`,"svg:first-child":{width:16,flexShrink:0},whiteSpace:`nowrap`,display:`flex`,gap:8,"&.Mui-disabled":{background:`${n.buttonDisabledBackground} !important`,color:`${n.buttonDisabledColor} !important`,border:`1px solid ${n.buttonDisabledBorder} !important`}},sizeSmall:{padding:`8px 16px`,fontSize:13},outlinedPrimary:Q({theme:n,color:n.buttonOutlinedColor,colorHover:n.buttonOutlinedColorHover,background:n.buttonOutlinedBackground,backgroundHover:n.buttonOutlinedBackgroundHover,borderColor:n.buttonOutlinedBorder,borderColorHover:n.buttonOutlinedBorderHover}),containedInfo:Q({theme:n,color:`#fff`,colorHover:`#fff`,background:n.colorPrimary500,backgroundHover:n.colorPrimary700,borderColor:n.colorPrimary500,borderColorHover:n.colorPrimary700}),containedPrimary:Q({theme:n,color:n.buttonContainedPrimaryColor,colorHover:n.buttonContainedPrimaryColorHover,background:n.buttonContainedPrimaryBackground,backgroundHover:n.buttonContainedPrimaryBackgroundHover,borderColor:n.buttonContainedPrimaryBorder,borderColorHover:n.buttonContainedPrimaryBorderHover}),containedWarning:{"&:hover":{background:D(n.colorWarning,.1)},"&:disabled":{color:n.colorGrey700,background:n.colorWhite}},containedError:{"&:hover":{background:D(n.error,.1)},"&:disabled":{color:n.colorGrey700,background:n.colorWhite}},containedSecondary:Q({theme:n,color:n.buttonContainedSecondaryColor,colorHover:n.buttonContainedSecondaryColorHover,background:n.buttonContainedSecondaryBackground,backgroundHover:n.buttonContainedSecondaryBackgroundHover,borderColor:n.buttonContainedSecondaryBorder,borderColorHover:n.buttonContainedSecondaryBorderHover}),textPrimary:{color:n.buttonOutlinedColor,"&:hover":{color:D(n.buttonOutlinedColor,.2)},"&:active":{color:D(n.buttonOutlinedColor,.2)},"&:disabled":{color:n.colorGrey500}},textWarning:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertWarningColor}},outlinedWarning:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertWarningColor}},textError:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertErrorColor}},outlinedError:{"& .MuiLoadingButton-loadingIndicator":{color:n.alertErrorColor}},startIcon:{marginRight:12,height:0,display:`flex`,alignItems:`center`},endIcon:{marginLeft:12,height:0,display:`flex`,alignItems:`center`},sizeLarge:{padding:`16px 32px !important`,fontSize:16}}},MuiSnackbarContent:{styleOverrides:{root:{minWidth:`auto !important`,padding:0,background:`none`,borderRadius:n.borderRadius,fontWeight:500,boxShadow:r[`--v-box-shadow-1`]},message:{padding:0}}},MuiPopover:{defaultProps:{disableScrollLock:!0},styleOverrides:{paper:{background:n.accentBackgroundColor,color:n.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiTooltip:{styleOverrides:{tooltip:{background:e.dark[`--v-accents-100`],border:`1px solid ${e.dark[`--v-strokes`]}`,color:e.dark[`--v-foreground`],boxShadow:r[`--v-box-shadow-1`],fontSize:13,lineHeight:`20px`,padding:`8px 16px`}}},MuiDialog:{defaultProps:{disableScrollLock:!0},styleOverrides:{root:{zIndex:100},paper:{background:n.accentBackgroundColor,color:n.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiStep:{styleOverrides:{root:{padding:`0px 20px`,"&.MuiStep-vertical":{padding:0},"&:first-child":{paddingLeft:0},"&:last-child":{paddingRight:0}}}},MuiStepLabel:{styleOverrides:{iconContainer:{paddingRight:12},label:{color:n.bodyColor,"&.Mui-active":{color:n.colorPrimary700},"&.Mui-completed":{color:n.success}}}},MuiStepIcon:{styleOverrides:{root:{fill:t===`dark`?n.colorGrey500:n.bodyColor,"&.Mui-active":{fill:n.colorPrimary500}}}},MuiTabs:{styleOverrides:{indicator:{display:`none`}}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:{flexGrow:1,textTransform:`none`,color:n.bodyColor,maxWidth:`none`,borderRight:`1px solid ${r[`--v-strokes`]}`,"&.Mui-selected":{color:n.bodyColor,borderBottom:`1px solid transparent`},"&:not(.Mui-selected)":{background:n.accentBackgroundColor,borderBottom:`1px solid ${r[`--v-strokes`]}`},"&:last-child":{borderRight:0}}}},MuiFormControlLabel:{defaultProps:{labelPlacement:`start`},styleOverrides:{label:{marginRight:8,fontSize:14}}},MuiTablePagination:{styleOverrides:{root:{color:n.bodyColor,"& .MuiIconButton-root":{color:`${n.bodyColor} !important`,"&.Mui-disabled":{opacity:.3}},"& .MuiTablePagination-select":{fontSize:`12px !important`},"& .MuiTablePagination-actions":{".MuiSvgIcon-root":{width:20}}},select:{color:`${n.bodyColor} !important`,fontWeight:`400 !important`},selectIcon:{color:`${n.bodyColor} !important`},displayedRows:{fontSize:12},selectLabel:{fontSize:12}}}}})};function _e(e){let t=c(9),n=ye();if(!o())return null;let r;t[0]===n.theme?r=t[1]:(r=$(n.theme),t[0]=n.theme,t[1]=r);let i;t[2]===n.theme?i=t[3]:(i=M(ge,{theme:n.theme}),t[2]=n.theme,t[3]=i);let a;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=M(ue,{}),t[4]=a):a=t[4];let s;return t[5]!==e.children||t[6]!==r||t[7]!==i?(s=N(S,{theme:r,children:[i,a,e.children]}),t[5]=e.children,t[6]=r,t[7]=i,t[8]=s):s=t[8],s}const ve=ie(null);function ye(){let e=ae(ve);if(!e)throw Error(`useVTheme must be used within a VThemeProvider`);return e}function be(e){let t=c(7),[n,r]=ce(e.defaultTheme??`light`),i;t[0]===n?i=t[1]:(i={theme:n,setTheme:r},t[0]=n,t[1]=i);let a;t[2]===e.children?a=t[3]:(a=M(_e,{children:M(`div`,{className:`${F.className} ${F.variable} ${P.className} ${P.variable}`,children:e.children})}),t[2]=e.children,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=M(ve.Provider,{value:i,children:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function xe(e){let t=c(3),n=e.theme===`dark`?`dark-theme`:`light-theme`,r;return t[0]!==e.children||t[1]!==n?(r=M(`div`,{className:n,children:e.children}),t[0]=e.children,t[1]=n,t[2]=r):r=t[2],r}const Se=ne(`div`)(e=>({"&:hover":e.$styleHover}));function Ce(e){let t=k(),n=O(t.breakpoints.down(`sm`)),r=O(t.breakpoints.down(`md`)),i=Object.fromEntries([[`padding`,e.padding],[`paddingTop`,e.paddingTop],[`paddingBottom`,e.paddingBottom],[`paddingLeft`,e.paddingLeft],[`paddingRight`,e.paddingRight]].filter(([,e])=>e!==void 0)),a=r&&e.gapMdDown?e.gapMdDown:e.gap;return M(Se,{style:{display:`flex`,flexDirection:n&&e.flexDirectionSmDown?e.flexDirectionSmDown:r&&e.flexDirectionMdDown?e.flexDirectionMdDown:e.flexDirection,margin:e.margin,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,...i,gap:a,rowGap:e.rowGap||a,columnGap:e.columnGap||a,alignItems:e.alignItems,justifyContent:e.justifyContent,flexWrap:e.flexWrap,flexGrow:e.flexGrow,flexShrink:e.flexShrink,flexBasis:e.flexBasis,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,minHeight:e.minHeight,maxHeight:e.maxHeight,gridColumn:n&&e.gridColumnSpanSmDown?`span ${e.gridColumnSpanSmDown}`:r&&e.gridColumnSpanMdDown?`span ${e.gridColumnSpanMdDown}`:e.gridColumnSpan?`span ${e.gridColumnSpan}`:void 0,color:e.color?`var(${e.color})`:void 0,...e.style},$styleHover:e.styleHover,ref:e.containerRef,onClick:e.onClick,children:e.children})}function we(e){let t=c(22),n=k(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=O(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=O(a),s=i&&e.columnsSmDown?e.columnsSmDown:o&&e.columnsMdDown?e.columnsMdDown:e.columns,l=e.rowGap||e.gap,u=e.columnGap||e.gap,d=typeof e.padding==`number`?e.padding:e.padding?.top,f=typeof e.padding==`number`?e.padding:e.padding?.bottom,p=typeof e.padding==`number`?e.padding:e.padding?.left,m=typeof e.padding==`number`?e.padding:e.padding?.right,h=typeof e.margin==`number`?e.margin:e.margin?.top,g=typeof e.margin==`number`?e.margin:e.margin?.bottom,_=typeof e.margin==`number`?e.margin:e.margin?.left,v=typeof e.margin==`number`?e.margin:e.margin?.right,y;t[4]!==s||t[5]!==e.alignItems||t[6]!==e.gap||t[7]!==e.maxWidth||t[8]!==_||t[9]!==v||t[10]!==l||t[11]!==u||t[12]!==d||t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==h||t[17]!==g?(y={display:`grid`,gridTemplateColumns:s,gap:e.gap,rowGap:l,columnGap:u,paddingTop:d,paddingBottom:f,paddingLeft:p,paddingRight:m,marginTop:h,marginBottom:g,marginLeft:_,marginRight:v,alignItems:e.alignItems,maxWidth:e.maxWidth},t[4]=s,t[5]=e.alignItems,t[6]=e.gap,t[7]=e.maxWidth,t[8]=_,t[9]=v,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p,t[15]=m,t[16]=h,t[17]=g,t[18]=y):y=t[18];let b;return t[19]!==e.children||t[20]!==y?(b=M(`div`,{style:y,children:e.children}),t[19]=e.children,t[20]=y,t[21]=b):b=t[21],b}const Te={en:{"component.vcode.copy_failed":`Copy to clipboard failed.`,"component.vcode.copy_success":`Copied to clipboard.`,"component.vcode.copy_to_clipboard":`Copy to clipboard`,"component.vcode.toggle_wrap":`Toggle line wrap`,"component.vcode.download_file":`Download file`,"component.vcode.collapse_code":`Collapse code`,"component.vcode.view_code":`View Code`,"component.vchip.copy_failed":`Copy to clipboard failed.`,"component.vchip.copy_success":`Copied to clipboard`,"component.vchip.copy_to_clipboard":`Copy to clipboard`,"component.verrorbox.retry":`Retry`},de:{"component.vcode.copy_failed":`Kopieren in die Zwischenablage fehlgeschlagen.`,"component.vcode.copy_success":`In die Zwischenablage kopiert.`,"component.vcode.copy_to_clipboard":`In die Zwischenablage kopieren`,"component.vcode.toggle_wrap":`Zeilenumbruch umschalten`,"component.vcode.download_file":`Datei herunterladen`,"component.vcode.collapse_code":`Code einklappen`,"component.vcode.view_code":`Code anzeigen`,"component.vchip.copy_failed":`Kopieren in die Zwischenablage fehlgeschlagen.`,"component.vchip.copy_success":`In die Zwischenablage kopiert`,"component.vchip.copy_to_clipboard":`In die Zwischenablage kopieren`,"component.verrorbox.retry":`Erneut versuchen`}};function Ee(){return function(){let e=R();return{locale:e.locale,t:function(...t){let[n,r]=t;return e.formatMessage({id:n},r)},tHtml:function(...e){let[t,n]=e;return M(I,{id:t,values:{...n}},t)}}}}const De=Ee();function Oe(e){let t=c(7),n=e.messages[e.locale]??e.messages.en,r=Te[e.locale],i;t[0]!==n||t[1]!==r?(i={...r,...n},t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i,o;return t[3]!==a||t[4]!==e.children||t[5]!==e.locale?(o=M(L,{locale:e.locale,messages:a,children:e.children}),t[3]=a,t[4]=e.children,t[5]=e.locale,t[6]=o):o=t[6],o}function ke(e){let t=Ee();function n(t){let n=c(2),r;return n[0]===t?r=n[1]:(r=M(Oe,{...t,messages:e}),n[0]=t,n[1]=r),r}return{VIntlProvider:n,useVIntl:t}}const Ae={strong:r[`--v-accents-100`],error:r[`--v-red-700`],disabled:r[`--v-accents-700`]},je={300:300,400:400,500:500,600:600,700:700,800:800,900:900};function Me(e){let t=c(12),n=k(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=O(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=O(a),s=e.type?`v-text-${e.type}`:void 0,l=e.color?Ae[e.color]||`var(${e.color})`:void 0,u=e.weight?je[e.weight]:void 0,d=e.component===`ul`?14:void 0,f=i&&e.textAlignSmDown?e.textAlignSmDown:o&&e.textAlignMdDown?e.textAlignMdDown:e.textAlign,p=e.breakWord?`break-word`:void 0,m;return t[4]!==e||t[5]!==s||t[6]!==l||t[7]!==u||t[8]!==d||t[9]!==f||t[10]!==p?(m=A(e.component,{className:s,style:{color:l,fontWeight:u,paddingLeft:d,textAlign:f,width:e.width,maxWidth:e.maxWidth,wordBreak:p,...e.noWrapEllipsis?{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`}:{},...e.style},"data-testid":e[`data-testid`],onClick:e.onClick},e.children),t[4]=e,t[5]=s,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function Ne(e){let t=e.durationInMs===`infinite`?9999999999:e.durationInMs||8e3,n,r={description:e.description,duration:t};return e.id&&(r.id=e.id),setTimeout(()=>{n=e.type===`info`?B.info(e.title,r):e.type===`success`?B.success(e.title,r):e.type===`warning`?B.warning(e.title,r):e.type===`error`?B.error(e.title,r):e.type===`loading`?B.loading(e.title,r):B.info(e.title,r)}),{dismiss:()=>{B.dismiss(n)}}}function Pe(){let e=c(2),{theme:t}=ye(),n;return e[0]===t?n=e[1]:(n=M(fe,{richColors:!0,theme:t,visibleToasts:4,position:`top-center`,closeButton:!0}),e[0]=t,e[1]=n),n}const Fe=r[`--v-accents-500`],Ie=2e3;async function Le(e){return z(await de(e.code,{lang:e.lang,theme:`github-dark-default`,transformers:[{code(e){let t=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${t}font-family: var(--font-geist-mono);`},line(e,t){let n=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${n}display:block;padding-left:3.5em;line-height:20px`,e.children.unshift({type:`element`,tagName:`span`,properties:{style:`margin-left:-3.5em;color:${r[`--v-accents-500`]};user-select:none;display:inline-block;width:2em;margin-right:1.5em;text-align:right`},children:[{type:`text`,value:String(t)}]})}}]}),{Fragment:re,jsx:M,jsxs:N,components:{pre:t=>M(`pre`,{...t,style:{...t.style,padding:`14px 16px`,fontSize:13,lineHeight:0,overflow:`auto`,whiteSpace:e.wrap?`pre-wrap`:`pre`,margin:0,background:r[`--v-accents-100`],borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`],maxHeight:e.maxHeight}})}})}function Re(e){let t=c(94),i=De(),[a,o]=ce(null),[l,d]=ce(!1),[f,y]=ce(!1),[b,ee]=ce(e.defaultCollapsed??!1),S=e.collapsed??b,w;t[0]===e?w=t[1]:(w=t=>{e.collapsed===void 0&&ee(t),e.onCollapsedChange?.(t)},t[0]=e,t[1]=w);let T=w,E,D;t[2]!==e.content||t[3]!==e.lang||t[4]!==e.maxHeight||t[5]!==l?(E=()=>{Le({code:e.content,lang:e.lang,wrap:l,maxHeight:e.maxHeight}).then(o)},D=[e.content,e.lang,e.maxHeight,l],t[2]=e.content,t[3]=e.lang,t[4]=e.maxHeight,t[5]=l,t[6]=E,t[7]=D):(E=t[6],D=t[7]),se(E,D);let ne,O;t[8]===f?(ne=t[9],O=t[10]):(ne=()=>{if(!f)return;let e=window.setTimeout(()=>y(!1),Ie);return()=>window.clearTimeout(e)},O=[f],t[8]=f,t[9]=ne,t[10]=O),oe(ne,O);let k;t[11]===e.style?k=t[12]:(k={position:`relative`,minHeight:128,...e.style},t[11]=e.style,t[12]=k);let re;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(re={background:r[`--v-background`],borderTopLeftRadius:n[`--v-border-radius`],borderTopRightRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-strokes`]}`,color:Fe},t[13]=re):re=t[13];let ie;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(ie=M(v,{height:16,width:16,style:{marginRight:8}}),t[14]=ie):ie=t[14];let A;t[15]===e.title?A=t[16]:(A=N(Ce,{alignItems:`center`,gap:8,children:[ie,M(Me,{component:`span`,type:`copy-13`,weight:`400`,children:e.title})]}),t[15]=e.title,t[16]=A);let j;t[17]!==S||t[18]!==T||t[19]!==i?(j=!S&&M(C,{title:i.t(`component.vcode.collapse_code`),placement:`top`,children:M(x,{"aria-label":i.t(`component.vcode.collapse_code`),"aria-expanded":!0,onClick:()=>T(!0),style:{border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Fe},children:M(g,{height:16,width:16})})}),t[17]=S,t[18]=T,t[19]=i,t[20]=j):j=t[20];let ae;t[21]===i?ae=t[22]:(ae=i.t(`component.vcode.download_file`),t[21]=i,t[22]=ae);let le;t[23]===i?le=t[24]:(le=i.t(`component.vcode.download_file`),t[23]=i,t[24]=le);let P;t[25]!==e.content||t[26]!==e.title?(P=()=>{let t=new Blob([e.content],{type:`text/plain`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=e.title,r.click(),URL.revokeObjectURL(n)},t[25]=e.content,t[26]=e.title,t[27]=P):P=t[27];let F,ue;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(F={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Fe},ue=M(p,{height:16,width:16}),t[28]=F,t[29]=ue):(F=t[28],ue=t[29]);let I;t[30]!==le||t[31]!==P?(I=M(x,{"aria-label":le,onClick:P,style:F,children:ue}),t[30]=le,t[31]=P,t[32]=I):I=t[32];let L;t[33]!==ae||t[34]!==I?(L=M(C,{title:ae,placement:`top`,children:I}),t[33]=ae,t[34]=I,t[35]=L):L=t[35];let R;t[36]===i?R=t[37]:(R=i.t(`component.vcode.toggle_wrap`),t[36]=i,t[37]=R);let z;t[38]===i?z=t[39]:(z=i.t(`component.vcode.toggle_wrap`),t[38]=i,t[39]=z);let de,fe;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>d(ze),fe={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Fe},t[40]=de,t[41]=fe):(de=t[40],fe=t[41]);let B;t[42]===l?B=t[43]:(B=M(l?h:m,{height:16,width:16}),t[42]=l,t[43]=B);let V;t[44]!==z||t[45]!==B?(V=M(x,{"aria-label":z,onClick:de,style:fe,children:B}),t[44]=z,t[45]=B,t[46]=V):V=t[46];let H;t[47]!==R||t[48]!==V?(H=M(C,{title:R,placement:`top`,children:V}),t[47]=R,t[48]=V,t[49]=H):H=t[49];let U;t[50]!==f||t[51]!==i?(U=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[50]=f,t[51]=i,t[52]=U):U=t[52];let W;t[53]!==f||t[54]!==i?(W=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[53]=f,t[54]=i,t[55]=W):W=t[55];let G;t[56]!==e.content||t[57]!==i?(G=async t=>{t.stopPropagation();try{await s.copyToClipboard(e.content),y(!0),Ne({type:`success`,title:i.t(`component.vcode.copy_success`),durationInMs:Ie})}catch{Ne({type:`error`,title:i.t(`component.vcode.copy_failed`)})}},t[56]=e.content,t[57]=i,t[58]=G):G=t[58];let pe;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(pe={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Fe},t[59]=pe):pe=t[59];let K;t[60]===f?K=t[61]:(K=M(f?u:_,{height:16,width:16}),t[60]=f,t[61]=K);let q;t[62]!==W||t[63]!==G||t[64]!==K?(q=M(x,{"aria-label":W,onClick:G,style:pe,children:K}),t[62]=W,t[63]=G,t[64]=K,t[65]=q):q=t[65];let me;t[66]!==U||t[67]!==q?(me=M(C,{title:U,placement:`top`,children:q}),t[66]=U,t[67]=q,t[68]=me):me=t[68];let J;t[69]!==L||t[70]!==H||t[71]!==me||t[72]!==j?(J=N(Ce,{alignItems:`center`,gap:8,children:[j,L,H,me]}),t[69]=L,t[70]=H,t[71]=me,t[72]=j,t[73]=J):J=t[73];let Y;t[74]!==J||t[75]!==A?(Y=N(Ce,{style:re,gap:40,alignItems:`center`,justifyContent:`space-between`,padding:`6px 12px 6px 16px`,children:[A,J]}),t[74]=J,t[75]=A,t[76]=Y):Y=t[76];let he=S?110:void 0,ge=S?`hidden`:void 0,X;t[77]!==he||t[78]!==ge?(X={position:`relative`,maxHeight:he,overflow:ge,borderLeft:`1px solid ${r[`--v-strokes`]}`,borderBottom:`1px solid ${r[`--v-strokes`]}`,borderRight:`1px solid ${r[`--v-strokes`]}`,borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`]},t[77]=he,t[78]=ge,t[79]=X):X=t[79];let Z;t[80]!==S||t[81]!==T||t[82]!==i?(Z=S&&M(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(180deg, rgb(0 0 0 / 45%), rgb(0 0 0 / 90%))`},children:M(te,{variant:`outlined`,size:`small`,"aria-expanded":!1,onClick:()=>T(!1),style:{background:r[`--v-background`]},children:i.t(`component.vcode.view_code`)})}),t[80]=S,t[81]=T,t[82]=i,t[83]=Z):Z=t[83];let Q;t[84]!==a||t[85]!==X||t[86]!==Z?(Q=N(`div`,{style:X,children:[a,Z]}),t[84]=a,t[85]=X,t[86]=Z,t[87]=Q):Q=t[87];let $;t[88]!==Y||t[89]!==Q?($=N(xe,{theme:`dark`,children:[Y,Q]}),t[88]=Y,t[89]=Q,t[90]=$):$=t[90];let _e;return t[91]!==$||t[92]!==k?(_e=M(Ce,{flexDirection:`column`,style:k,children:$}),t[91]=$,t[92]=k,t[93]=_e):_e=t[93],_e}function ze(e){return!e}const Be=ne(`span`)(e=>({...e.$style,"&:hover":e.$styleHover})),Ve=`medium`,He=2e3;function Ue(e){let t=De(),[n,i]=ce(!1);oe(()=>{if(!n)return;let e=window.setTimeout(()=>i(!1),He);return()=>window.clearTimeout(e)},[n]);let a={color:r[`--v-blue-700`],border:r[`--v-blue-500`],background:r[`--v-blue-100`],backgroundHover:r[`--v-blue-200`]};`type`in e?e.type===`error`?(a.color=r[`--v-red-700`],a.border=r[`--v-red-500`],a.background=r[`--v-red-100`],a.backgroundHover=r[`--v-red-200`]):e.type===`success`&&(a.color=r[`--v-green-700`],a.border=r[`--v-green-500`],a.background=r[`--v-green-100`],a.backgroundHover=r[`--v-green-200`]):(a.color=e.color,a.border=e.border,a.background=e.background,a.backgroundHover=e.backgroundHover||e.background);let o={small:{padding:`3px 8px`,fontSize:10},medium:{padding:`6px 14px`,fontSize:11},large:{padding:`9px 20px`,fontSize:12}};return M(C,{title:e.tooltip??``,placement:e.tooltipPlacement??`top`,children:M(Be,{$style:{border:`1px solid ${a.border}`,color:a.color,background:a.background,padding:o[e.size??Ve].padding,borderRadius:9999,fontSize:o[e.size??Ve].fontSize,fontWeight:600,lineHeight:`12px`,display:`inline-block`,cursor:e.onClick?`pointer`:`default`,...e.style},onClick:t=>{t.stopPropagation(),e.onClick?.()},$styleHover:{background:a.backgroundHover},children:N(Ce,{gap:8,alignItems:`center`,children:[e.content,e.showCopyButton&&M(C,{title:n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),placement:`top`,children:M(x,{"aria-label":n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),onClick:async n=>{n.stopPropagation();let r=e.copyText?.trim();if(r)try{await s.copyToClipboard(r),i(!0),Ne({type:`success`,title:e.copyToastTitle??t.t(`component.vchip.copy_success`),durationInMs:He})}catch{Ne({type:`error`,title:t.t(`component.vchip.copy_failed`)})}},style:{border:`none`,background:`transparent`,padding:0,margin:0,display:`flex`,alignItems:`center`,color:a.color},children:M(n?u:_,{height:12,width:12})})})]})})})}function We(e){let t=c(21),i=De(),a=e.onRetry,o=e.size===`small`?`18px ${a?20:28}px 18px 28px`:`14px ${a?20:28}px 14px 28px`,s;t[0]===e.singleLine?s=t[1]:(s=e.singleLine?{whiteSpace:`nowrap`,minWidth:0,flexGrow:1}:{},t[0]=e.singleLine,t[1]=s);let u;t[2]!==e.style||t[3]!==o||t[4]!==s?(u={color:r[`--v-red-700`],background:r[`--v-red-200`],borderRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-red-700`]}`,padding:o,display:`flex`,alignItems:`center`,justifyContent:`space-between`,fontSize:13,fontWeight:400,lineHeight:`15px`,maxWidth:`100%`,...s,...e.style},t[2]=e.style,t[3]=o,t[4]=s,t[5]=u):u=t[5];let d=a?12:0,f;t[6]===d?f=t[7]:(f={marginRight:d,overflow:`hidden`,textOverflow:`ellipsis`},t[6]=d,t[7]=f);let p;t[8]!==e.children||t[9]!==f?(p=M(`div`,{style:f,children:e.children}),t[8]=e.children,t[9]=f,t[10]=p):p=t[10];let m;t[11]!==e||t[12]!==i?(m=e.onRetry&&M(C,{title:i.t(`component.verrorbox.retry`),placement:`bottom`,children:M(x,{onClick:t=>{t.stopPropagation(),e.onRetry?.()},style:{marginLeft:`auto`,color:r[`--v-red-700`]},children:M(l,{style:{width:16}})})}),t[11]=e,t[12]=i,t[13]=m):m=t[13];let h;t[14]!==u||t[15]!==p||t[16]!==m?(h=N(`div`,{style:u,children:[p,m]}),t[14]=u,t[15]=p,t[16]=m,t[17]=h):h=t[17];let g;return t[18]!==e.tooltip||t[19]!==h?(g=M(C,{title:e.tooltip,placement:`top`,children:h}),t[18]=e.tooltip,t[19]=h,t[20]=g):g=t[20],g}export{U as VAlert,me as VCard,Ue as VChip,Re as VCode,We as VErrorBox,Ce as VFlex,we as VGrid,Oe as VIntlProvider,q as VLoading,xe as VTheme,be as VThemeProvider,Pe as VToast,ke as createVIntl,Ne as showVToast,ye as useVTheme};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidly-io/design-system",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.40",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "Private",
|
|
7
7
|
"exports": {
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@mui/material": "^7.0.0",
|
|
34
34
|
"react": "^19.2.0",
|
|
35
|
-
"react-dom": "^19.2.0"
|
|
35
|
+
"react-dom": "^19.2.0",
|
|
36
|
+
"react-intl": ">=10.0.0 <11.0.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@chromatic-com/storybook": "5.2.1",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"babel-plugin-react-compiler": "1.0.0",
|
|
55
56
|
"bumpp": "11.1.0",
|
|
56
57
|
"playwright": "1.61.1",
|
|
58
|
+
"react-intl": "10.1.7",
|
|
57
59
|
"storybook": "10.5.3",
|
|
58
60
|
"tsdown": "0.22.0",
|
|
59
61
|
"typescript": "6.0.3",
|
|
@@ -64,9 +66,11 @@
|
|
|
64
66
|
"dependencies": {
|
|
65
67
|
"@heroicons/react": "2.2.0",
|
|
66
68
|
"hast-util-to-jsx-runtime": "2.3.6",
|
|
67
|
-
"react-intl": "10.1.7",
|
|
68
69
|
"shiki": "4.3.1",
|
|
69
70
|
"sonner": "2.0.7",
|
|
70
71
|
"geist": "1.7.0"
|
|
72
|
+
},
|
|
73
|
+
"inlinedDependencies": {
|
|
74
|
+
"intl-messageformat": "11.2.6"
|
|
71
75
|
}
|
|
72
76
|
}
|