@dxtmisha/scripts 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import { n as e, t } from "./PropertiesConfig-ChizwW5y.js";
2
- import { UI_DIRS_COMPONENTS as n, UI_DIRS_CONSTRUCTOR as r, UI_DIRS_ICONS as i, UI_DIRS_LIBRARY as a, UI_DIRS_STYLES as o, UI_DIRS_TOKENS as s, UI_DIRS_WIKI as c, UI_DIR_COMPONENTS as l, UI_DIR_CONSTRUCTOR as u, UI_DIR_DIST as d, UI_DIR_STRUCTURE as f, UI_EXTENSION_STYLE as p, UI_FILE_NAME_DESIGN as ee, UI_FILE_NAME_MEDIA as te, UI_FILE_NAME_PLUGIN as ne, UI_FILE_NAME_STYLE as re, UI_FILE_NAME_WIKI as ie, UI_FILE_PACKAGE as ae, UI_FILE_PROPERTY as oe, UI_FILE_STYLE_PROPERTIES as se, UI_FILE_STYLE_SCSS as ce, UI_KEY_CUSTOM as le, UI_PROJECT_CONSTRUCTOR_FULL_NAME as ue, UI_PROJECT_CONSTRUCTOR_NAME as m, UI_PROPERTY_FOR_PROPS as de, UI_STRUCTURE_CLASSES as fe } from "./config.js";
3
- import { a as h, i as pe, n as g, r as _, t as v } from "./propertyTypes-DflziKuR.js";
4
- import { ServerStorage as me, copyObject as he, forEach as y, getColumn as b, isFilled as x, isNull as ge, isObject as _e, isObjectNotArray as S, isSelected as C, isString as ve, replaceComponentName as ye, replaceRecursive as w, splice as be, strFill as xe, toArray as T, toCamelCase as E, toCamelCaseFirst as D, toKebabCase as O, uniqueArray as Se } from "@dxtmisha/functional-basic";
5
- import k from "typescript";
6
- import * as Ce from "sass";
1
+ import { n as e, t } from "./PropertiesConfig-BBsuNndv.js";
2
+ import { UI_DIRS_COMPONENTS as n, UI_DIRS_CONSTRUCTOR as r, UI_DIRS_ICONS as i, UI_DIRS_LIBRARY as a, UI_DIRS_STYLES as o, UI_DIRS_TOKENS as s, UI_DIRS_WIKI as c, UI_DIR_COMPONENTS as l, UI_DIR_CONSTRUCTOR as u, UI_DIR_DIST as d, UI_DIR_STRUCTURE as f, UI_EXTENSION_STYLE as p, UI_FILE_NAME_DESIGN as ee, UI_FILE_NAME_MEDIA as te, UI_FILE_NAME_PLUGIN as ne, UI_FILE_NAME_STYLE as re, UI_FILE_NAME_WIKI as ie, UI_FILE_PACKAGE as m, UI_FILE_PROPERTY as ae, UI_FILE_STYLE_PROPERTIES as oe, UI_FILE_STYLE_SCSS as se, UI_KEY_CUSTOM as ce, UI_PROJECT_CONSTRUCTOR_FULL_NAME as le, UI_PROJECT_CONSTRUCTOR_NAME as h, UI_PROPERTY_FOR_PROPS as ue, UI_STRUCTURE_CLASSES as de } from "./config.js";
3
+ import { a as g, i as fe, n as _, r as v, t as y } from "./propertyTypes-CstobYcc.js";
4
+ import { ServerStorage as pe, copyObject as me, forEach as b, getColumn as x, isArray as he, isFilled as S, isNull as ge, isObject as C, isObjectNotArray as w, isSelected as T, isString as _e, replaceComponentName as ve, replaceRecursive as E, splice as ye, strFill as be, toArray as D, toCamelCase as O, toCamelCaseFirst as k, toKebabCase as A, uniqueArray as xe } from "@dxtmisha/functional-basic";
5
+ import j from "typescript";
6
+ import * as Se from "sass";
7
7
  //#region src/functions/getComponentPaths.ts
8
- function A(e) {
8
+ function Ce(e) {
9
9
  return [...n, e];
10
10
  }
11
11
  //#endregion
@@ -31,7 +31,7 @@ var we = {
31
31
  }), console.info("end");
32
32
  }
33
33
  getFilePath(e) {
34
- return [...A(this.path), this.replacement(e)];
34
+ return [...Ce(this.path), this.replacement(e)];
35
35
  }
36
36
  getFilesSample() {
37
37
  return Object.keys(this.sample);
@@ -50,7 +50,7 @@ var we = {
50
50
  return this.sample?.[e] ?? "";
51
51
  }
52
52
  replacement(t) {
53
- return t.replace("_.gitignore.txt", ".gitignore").replace(/ComponentDoc/g, this.getName()).replace(/component-doc/g, O(this.getName())).replace(/\[project]/g, this.getProjectName()).replace(/\[path]/g, e.splitForDir(this.path).join("/"));
53
+ return t.replace("_.gitignore.txt", ".gitignore").replace(/ComponentDoc/g, this.getName()).replace(/component-doc/g, A(this.getName())).replace(/\[project]/g, this.getProjectName()).replace(/\[path]/g, e.splitForDir(this.path).join("/"));
54
54
  }
55
55
  writeFile(t, n) {
56
56
  let r = this.getFilePath(t);
@@ -62,9 +62,9 @@ var we = {
62
62
  this.getDirs().forEach((e) => new Te(e).make());
63
63
  }
64
64
  getDirs() {
65
- return e.readDirOnlyRecursive(n).filter((t) => e.readDir(A(t)).length === 0);
65
+ return e.readDirOnlyRecursive(n).filter((t) => e.readDir(Ce(t)).length === 0);
66
66
  }
67
- }, De = [".cache"], Oe = ["step"], j = "system", M = class {
67
+ }, De = [".cache"], Oe = ["step"], M = "system", N = class {
68
68
  static time = 0;
69
69
  static files = {};
70
70
  static sizes = {};
@@ -104,7 +104,7 @@ var we = {
104
104
  return [
105
105
  e.getRoot(),
106
106
  ...De,
107
- ...T(t)
107
+ ...D(t)
108
108
  ];
109
109
  }
110
110
  static getPathName(t, n, r = "json") {
@@ -124,14 +124,14 @@ var we = {
124
124
  files: this.files,
125
125
  sizes: this.sizes
126
126
  };
127
- this.writeFile([], j, e), this.console("Writes the system data");
127
+ this.writeFile([], M, e), this.console("Writes the system data");
128
128
  }
129
129
  }
130
130
  static console(e) {
131
131
  console.info("[Cache]", e);
132
132
  }
133
133
  static {
134
- let e = this.readFile([], j);
134
+ let e = this.readFile([], M);
135
135
  e && (this.time = e.time, Object.assign(this.files, e.files), Object.assign(this.sizes, e.sizes));
136
136
  }
137
137
  }, ke = {
@@ -190,7 +190,7 @@ var we = {
190
190
  _type: "var",
191
191
  _category: "root"
192
192
  }
193
- }, N = class e {
193
+ }, P = class e {
194
194
  static isConstructor(e) {
195
195
  return e === "d";
196
196
  }
@@ -198,14 +198,14 @@ var we = {
198
198
  return ["d", t.getDesignName()];
199
199
  }
200
200
  static getComponentName(e, t) {
201
- return `${e}${t ? `-${E(t)}` : ""}`;
201
+ return `${e}${t ? `-${O(t)}` : ""}`;
202
202
  }
203
203
  static getClassName(e, t) {
204
204
  return `.${this.getComponentName(e, t)}`;
205
205
  }
206
206
  static readFile(t, n) {
207
- if (e.isConstructor(t)) return he(ke);
208
- if (n) return M.read([...n, oe]);
207
+ if (e.isConstructor(t)) return me(ke);
208
+ if (n) return N.read([...n, ae]);
209
209
  }
210
210
  }, Ae = "read", je = class {
211
211
  designs;
@@ -214,11 +214,11 @@ var we = {
214
214
  constructor(e) {
215
215
  this.designs = e, this.paths = [], e.forEach((e) => {
216
216
  this.paths.push({
217
- design: O(e),
217
+ design: A(e),
218
218
  paths: this.getDir(e),
219
219
  pathsComponent: this.getDirComponents(e)
220
220
  });
221
- }), this.paths?.[1] && N.isConstructor(this.paths?.[1].design) && (delete this.paths[1], this.constructorType = !0);
221
+ }), this.paths?.[1] && P.isConstructor(this.paths?.[1].design) && (delete this.paths[1], this.constructorType = !0);
222
222
  }
223
223
  isConstructor() {
224
224
  return this.constructorType;
@@ -233,34 +233,34 @@ var we = {
233
233
  return this.paths;
234
234
  }
235
235
  to(e, t, n) {
236
- return M.get([Ae, e], `${e}-${t}`, () => {
236
+ return N.get([Ae, e], `${e}-${t}`, () => {
237
237
  let e = {}, r = this.getPath(t);
238
- return r && (e = w(e, n(r.paths, r.pathsComponent, t))), e;
238
+ return r && (e = E(e, n(r.paths, r.pathsComponent, t))), e;
239
239
  });
240
240
  }
241
241
  toAll(e, t) {
242
- return M.get([Ae], e, () => {
242
+ return N.get([Ae], e, () => {
243
243
  let n = {};
244
244
  return this.designs.forEach((r) => {
245
- n = w(n, this.to(e, r, t));
245
+ n = E(n, this.to(e, r, t));
246
246
  }), n;
247
247
  });
248
248
  }
249
249
  getDir(t) {
250
- if (!N.isConstructor(t)) return [e.getRoot(), ...s];
250
+ if (!P.isConstructor(t)) return [e.getRoot(), ...s];
251
251
  }
252
252
  getDirComponents(r) {
253
- if (!N.isConstructor(r)) return [
253
+ if (!P.isConstructor(r)) return [
254
254
  e.getRoot(),
255
255
  ...n,
256
256
  t.getProjectName()
257
257
  ];
258
258
  }
259
259
  }, Me = [
260
- _.design,
261
- _.component,
262
- _.classType
263
- ], P = class {
260
+ v.design,
261
+ v.component,
262
+ v.classType
263
+ ], F = class {
264
264
  properties;
265
265
  focusDesign;
266
266
  constructor(e) {
@@ -272,7 +272,7 @@ var we = {
272
272
  get() {
273
273
  if (this.focusDesign) {
274
274
  let e = {};
275
- return y(this.properties, (t, n) => {
275
+ return b(this.properties, (t, n) => {
276
276
  (n === "d" || n === this.focusDesign) && (e[n] = t);
277
277
  }), e;
278
278
  }
@@ -290,13 +290,13 @@ var we = {
290
290
  name: n,
291
291
  item: this.properties?.[n] ?? { value: "" }
292
292
  }];
293
- if (S(i)) {
293
+ if (w(i)) {
294
294
  let e = r, o = i?.[r], s = a?.[0]?.item;
295
295
  if (o) {
296
296
  for (let n of t) if (a.push({
297
297
  name: n,
298
298
  item: o
299
- }), s = o, e = n, o = S(o.value) ? o.value?.[n] : void 0, !o) break;
299
+ }), s = o, e = n, o = w(o.value) ? o.value?.[n] : void 0, !o) break;
300
300
  }
301
301
  if (o) return {
302
302
  design: n,
@@ -312,33 +312,33 @@ var we = {
312
312
  }
313
313
  getKeys(e) {
314
314
  let t = e.replace(/^\{|}$/gi, "").split(".");
315
- return y(t, (e) => e.match(/^&/) ? e : E(e));
315
+ return b(t, (e) => e.match(/^&/) ? e : O(e));
316
316
  }
317
317
  getName(e, t) {
318
318
  return this.getReName(e, t).replace(/\(.*?$/, "");
319
319
  }
320
320
  getReName(e, t) {
321
- return t?.[g.name] ?? t?.[g.rename] ?? e;
321
+ return t?.[_.name] ?? t?.[_.rename] ?? e;
322
322
  }
323
323
  getParentsName(e, t) {
324
- return y(e, ({ name: e, item: n }) => {
325
- if (!t || typeof n?.[g.variable] == "string" && (t.indexOf(n[g.variable]) !== -1 || Me.indexOf(n[g.variable]) !== -1)) return E(e);
324
+ return b(e, ({ name: e, item: n }) => {
325
+ if (!t || typeof n?.[_.variable] == "string" && (t.indexOf(n[_.variable]) !== -1 || Me.indexOf(n[_.variable]) !== -1)) return O(e);
326
326
  });
327
327
  }
328
328
  getMedia() {
329
329
  let e = {};
330
- return this.findCategory(v.media).forEach(({ design: t, item: n }) => {
331
- S(n.value) && Object.assign(e, { [t]: n.value });
330
+ return this.findCategory(y.media).forEach(({ design: t, item: n }) => {
331
+ w(n.value) && Object.assign(e, { [t]: n.value });
332
332
  }), e;
333
333
  }
334
334
  getLink(e, t, n, r = ".") {
335
335
  return n.match(/\?/) ? n.replace(/\?\?(?![ _-])/g, `${e}${r}${t}${r}`).replace(/\?\?(?=[ _-])/g, `${e}${r}${t}`).replace(/\?/g, `${e}${r}`) : this.getLinkByDesign(e, n);
336
336
  }
337
337
  getLinkToName(e, t, n) {
338
- return this.getLink(e, t, n, "-").replace(/[a-zA-Z]+/gi, (e) => E(e));
338
+ return this.getLink(e, t, n, "-").replace(/[a-zA-Z]+/gi, (e) => O(e));
339
339
  }
340
340
  getLinkToValue(e, t, n) {
341
- return this.getLink(e, t, n).replace(/(?<=(?<!#)\{.*?)[a-zA-Z]+(?=.*?})/gi, (e) => E(e));
341
+ return this.getLink(e, t, n).replace(/(?<=(?<!#)\{.*?)[a-zA-Z]+(?=.*?})/gi, (e) => O(e));
342
342
  }
343
343
  getLinkForName(e, t, n) {
344
344
  return this.getLink(e, t, n, "-");
@@ -347,10 +347,10 @@ var we = {
347
347
  return t.match("{") ? t?.replace(/(?<=(?<!#)\{)[^.{}]+/g, (t) => this.getDesigns().indexOf(t) === -1 ? `${e}.${t}` : t) : t;
348
348
  }
349
349
  each(e, t) {
350
- return t ? S(t.item.value) ? this.read(e, !0, t.design, t.component, t.item.value, t.item, t.parents) : [] : this.read(e);
350
+ return t ? w(t.item.value) ? this.read(e, !0, t.design, t.component, t.item.value, t.item, t.parents) : [] : this.read(e);
351
351
  }
352
352
  eachMainOnly(e, t) {
353
- return t ? S(t.item.value) ? this.read(e, !1, t.design, t.component, t.item.value, t.item, t.parents) : [] : this.read(e, !1);
353
+ return t ? w(t.item.value) ? this.read(e, !1, t.design, t.component, t.item.value, t.item, t.parents) : [] : this.read(e, !1);
354
354
  }
355
355
  find(e) {
356
356
  let t = [];
@@ -361,27 +361,27 @@ var we = {
361
361
  findCategory(e) {
362
362
  let t = [];
363
363
  return this.each((n) => {
364
- C(n.item?.[g.category], e) && t.push(n);
364
+ T(n.item?.[_.category], e) && t.push(n);
365
365
  }), t;
366
366
  }
367
367
  findVariable(e) {
368
368
  let t = [];
369
369
  return this.each((n) => {
370
- C(n.item?.[g.variable], e) && t.push(n);
370
+ T(n.item?.[_.variable], e) && t.push(n);
371
371
  }), t;
372
372
  }
373
373
  setFocusDesign(e) {
374
374
  return this.focusDesign = e, this;
375
375
  }
376
376
  write(e) {
377
- M.write(`${this.getDesigns().join("-")}-${e}`, this.properties);
377
+ N.write(`${this.getDesigns().join("-")}-${e}`, this.properties);
378
378
  }
379
379
  getIndex(e) {
380
- return `${b(e, "name").join(".")}`;
380
+ return `${x(e, "name").join(".")}`;
381
381
  }
382
382
  read(e, t = !0, n, r, i = this.properties, a, o = []) {
383
383
  let s = [], c;
384
- return y(i, (i, l) => {
384
+ return b(i, (i, l) => {
385
385
  if (this.isFocusDesign(l, n)) {
386
386
  let u = n ?? l, d = n && (r ?? l), f = [...o, {
387
387
  name: l,
@@ -397,7 +397,7 @@ var we = {
397
397
  parent: a,
398
398
  parents: o
399
399
  });
400
- p !== void 0 && s.push(p), t && S(i.value) && s.push(...this.read(e, t, u, d, i.value, i, f)), c = i;
400
+ p !== void 0 && s.push(p), t && w(i.value) && s.push(...this.read(e, t, u, d, i.value, i, f)), c = i;
401
401
  }
402
402
  }), s;
403
403
  }
@@ -409,20 +409,20 @@ var we = {
409
409
  [
410
410
  i,
411
411
  "..",
412
- m,
412
+ h,
413
413
  ...r
414
414
  ],
415
415
  ...a ? [[
416
416
  a,
417
- m,
417
+ h,
418
418
  ...r
419
419
  ]] : []
420
420
  ].find((t) => e.is(t));
421
- o && y(t, (t) => {
421
+ o && b(t, (t) => {
422
422
  let r = e.readFile([
423
423
  ...o,
424
424
  t,
425
- oe
425
+ ae
426
426
  ]);
427
427
  r && (n[t] = r);
428
428
  });
@@ -430,41 +430,41 @@ var we = {
430
430
  console.error("getConstructorProperties", e);
431
431
  }
432
432
  return n;
433
- }, F = class {
433
+ }, I = class {
434
434
  static SYMBOLS = {
435
- $: _.var,
436
- "::": _.virtual,
437
- ":": _.selector,
438
- "~": _.state,
439
- "#": _.subclass,
440
- "@@": _.linkClass,
441
- "@": _.link,
442
- "&&": _.root,
443
- "&": _.scss,
444
- "--": _.none
435
+ $: v.var,
436
+ "::": v.virtual,
437
+ ":": v.selector,
438
+ "~": v.state,
439
+ "#": v.subclass,
440
+ "@@": v.linkClass,
441
+ "@": v.link,
442
+ "&&": v.root,
443
+ "&": v.scss,
444
+ "--": v.none
445
445
  };
446
446
  static isInType(e, t) {
447
- return x(e) && x(t) ? !!C(e, t) : !1;
447
+ return S(e) && S(t) ? !!T(e, t) : !1;
448
448
  }
449
449
  static isTypeInName(e) {
450
450
  return !!e.match(this.getExpSymbols());
451
451
  }
452
452
  static isMedia(e) {
453
- return this.isInType(e, [_.media, _.mediaMax]);
453
+ return this.isInType(e, [v.media, v.mediaMax]);
454
454
  }
455
455
  static isContainer(e) {
456
- return this.isInType(e, [_.container, _.containerMax]);
456
+ return this.isInType(e, [v.container, v.containerMax]);
457
457
  }
458
458
  static isScss(e) {
459
- return e === _.scss || !!e.match(/^&(?!&)/);
459
+ return e === v.scss || !!e.match(/^&(?!&)/);
460
460
  }
461
461
  static isRoot(e) {
462
- return e === _.root || !!e.match(/^&&/);
462
+ return e === v.root || !!e.match(/^&&/);
463
463
  }
464
464
  static getTypeInName(e) {
465
465
  if (this.isTypeInName(e)) {
466
466
  let t = e.replace(this.getExpSymbols(), "$1");
467
- return t in this.SYMBOLS ? this.SYMBOLS[t] : O(t);
467
+ return t in this.SYMBOLS ? this.SYMBOLS[t] : A(t);
468
468
  }
469
469
  return null;
470
470
  }
@@ -477,7 +477,7 @@ var we = {
477
477
  static symbolsToString() {
478
478
  return Object.keys(this.SYMBOLS).join("|");
479
479
  }
480
- }, I = class {
480
+ }, L = class {
481
481
  static isSpecialKey(e) {
482
482
  return typeof e == "string" && ([
483
483
  "value",
@@ -492,19 +492,19 @@ var we = {
492
492
  return !!e.match(t.getSeparator());
493
493
  }
494
494
  static getName(e, t = !0) {
495
- let n = e.replace(F.getExpSymbols(), "$2").replace(/^[|]/, "");
496
- return this.isSeparator(n) || !t ? n : E(n);
495
+ let n = e.replace(I.getExpSymbols(), "$2").replace(/^[|]/, "");
496
+ return this.isSeparator(n) || !t ? n : O(n);
497
497
  }
498
498
  static reKey(e, t) {
499
499
  let n = this.getName(e);
500
500
  if (t) {
501
- if (F.isMedia(t) && !n.match(/^media[A-Z]/) || F.isContainer(t) && !n.match(/^container[A-Z]/)) return E(`${t}-${n}`);
502
- if (F.isScss(t)) return `&${this.getName(e, !1)}`;
503
- if (F.isRoot(t)) return this.getName(e, !1);
501
+ if (I.isMedia(t) && !n.match(/^media[A-Z]/) || I.isContainer(t) && !n.match(/^container[A-Z]/)) return O(`${t}-${n}`);
502
+ if (I.isScss(t)) return `&${this.getName(e, !1)}`;
503
+ if (I.isRoot(t)) return this.getName(e, !1);
504
504
  }
505
505
  return n;
506
506
  }
507
- }, L = class {
507
+ }, R = class {
508
508
  static isFull(e) {
509
509
  return typeof e == "string" && !!e.match(this.getExpFull());
510
510
  }
@@ -520,12 +520,12 @@ var we = {
520
520
  static getExpFull() {
521
521
  return /^=/;
522
522
  }
523
- }, R = class {
523
+ }, z = class {
524
524
  static to(e) {
525
525
  let t = {};
526
- return y(e, (e, n) => {
527
- let r = this.getItem(n, e), i = I.reKey(n, r?.[g.type]);
528
- S(r.value) && (r.value = this.to(r.value)), this.addValue(r), r[g.index] = n.replace(/^=/, ""), i in r ? t[i] = w(t[i] ?? {}, r) : t[i] = r;
526
+ return b(e, (e, n) => {
527
+ let r = this.getItem(n, e), i = L.reKey(n, r?.[_.type]);
528
+ w(r.value) && (r.value = this.to(r.value)), this.addValue(r), r[_.index] = n.replace(/^=/, ""), i in r ? t[i] = E(t[i] ?? {}, r) : t[i] = r;
529
529
  }), t;
530
530
  }
531
531
  static getItem(e, t) {
@@ -534,24 +534,24 @@ var we = {
534
534
  }
535
535
  static getValueAndSpecial(e) {
536
536
  let t = { value: e?.value || {} };
537
- return y(e, (e, n) => {
538
- I.isSpecialKey(n) ? t[n] = e : t.value[n] = e;
537
+ return b(e, (e, n) => {
538
+ L.isSpecialKey(n) ? t[n] = e : t.value[n] = e;
539
539
  }), t;
540
540
  }
541
541
  static addType(e, t) {
542
- if (!(g.type in t)) {
543
- let n = F.getTypeInName(e);
544
- n && (t[g.type] = n);
542
+ if (!(_.type in t)) {
543
+ let n = I.getTypeInName(e);
544
+ n && (t[_.type] = n);
545
545
  }
546
546
  }
547
547
  static addFull(e, t) {
548
- I.isFull(e) && (t[g.fullName] = !0), typeof t.value == "string" && (L.isFull(t.value) || e.match(/aspect/i)) && (t[g.fullValue] = !0);
548
+ L.isFull(e) && (t[_.fullName] = !0), typeof t.value == "string" && (R.isFull(t.value) || e.match(/aspect/i)) && (t[_.fullValue] = !0);
549
549
  }
550
550
  static addValue(e) {
551
- e.value = L.reValue(e.value);
551
+ e.value = R.reValue(e.value);
552
552
  }
553
553
  static toItem(e) {
554
- return typeof e != "object" || Array.isArray(e) ? { value: e } : x(e) ? !("value" in e) || S(e.value) ? this.getValueAndSpecial(e) : e : { value: {} };
554
+ return typeof e != "object" || Array.isArray(e) ? { value: e } : S(e) ? !("value" in e) || w(e.value) ? this.getValueAndSpecial(e) : e : { value: {} };
555
555
  }
556
556
  }, Pe = "settings", Fe = class {
557
557
  path;
@@ -572,13 +572,13 @@ var we = {
572
572
  return this.path.toAll(Pe, (t, n, r) => {
573
573
  let i = {};
574
574
  return n && e.readDir(n).forEach((e) => {
575
- let t = N.readFile(r, [...n, e]);
576
- x(t) && (i = w(i, R.to({ [r]: { [O(e)]: t } })));
575
+ let t = P.readFile(r, [...n, e]);
576
+ S(t) && (i = E(i, z.to({ [r]: { [A(e)]: t } })));
577
577
  }), i;
578
578
  });
579
579
  }
580
580
  getConstructors() {
581
- return R.to({ d: Ne(this.getComponentList()) });
581
+ return z.to({ d: Ne(this.getComponentList()) });
582
582
  }
583
583
  };
584
584
  //#endregion
@@ -586,16 +586,16 @@ var we = {
586
586
  function Ie(e) {
587
587
  let t = e?.$extensions?.["studio.tokens"]?.modify?.type, n = e?.$extensions?.["studio.tokens"]?.modify?.value;
588
588
  if (t) switch (t) {
589
- case "alpha": e[g.cssColorOpacity] = n?.toString() ?? "1";
589
+ case "alpha": e[_.cssColorOpacity] = n?.toString() ?? "1";
590
590
  }
591
591
  }
592
592
  //#endregion
593
593
  //#region src/classes/Properties/convector/convectorShadow.ts
594
594
  function Le(e) {
595
595
  let t = e?.value;
596
- if (_e(t)) {
596
+ if (C(t)) {
597
597
  let n = [];
598
- T(t).forEach((e) => {
598
+ D(t).forEach((e) => {
599
599
  let t = [], { type: r, color: i, x: a, y: o, blur: s, spread: c } = e, l = i.match(/^{/) ? `@ui.toCustomVarRgb(${i})` : i;
600
600
  r === "innerShadow" && t.push("inset"), t.push(a && a !== "0" && a.match(/^[0-9]+$/) ? `${a}px` : a ?? "0", o && o !== "0" && o.match(/^[0-9]+$/) ? `${o}px` : o ?? "0", s && s !== "0" && s.match(/^[0-9]+$/) ? `${s}px` : s ?? "0", c && c !== "0" && c.match(/^-?[0-9]+$/) ? `${c}px` : c ?? "0", l ?? "rgba(0, 0, 0, 1)"), n.push(t.join(" ").trim());
601
601
  }), e.value = n.join(", ");
@@ -609,22 +609,22 @@ function Re(e) {
609
609
  //#endregion
610
610
  //#region src/classes/Properties/convector/convectorTypography.ts
611
611
  function ze(e) {
612
- ve(e?.value) && (e.value = { basic: e.value });
612
+ _e(e?.value) && (e.value = { basic: e.value });
613
613
  }
614
614
  //#endregion
615
615
  //#region src/classes/Properties/PropertiesConvector.ts
616
- var z = {
616
+ var Be = {
617
617
  boxShadow: Le,
618
618
  color: Ie,
619
619
  fontFamilies: Re,
620
620
  typography: ze
621
621
  }, B = class {
622
622
  static to(e) {
623
- y(e, (e) => {
624
- e?.type && e.type in z ? z[e.type]?.(e) : e?.value && S(e.value) ? this.to(e.value) : S(e) && this.to(e);
623
+ b(e, (e) => {
624
+ e?.type && e.type in Be ? Be[e.type]?.(e) : e?.value && w(e.value) ? this.to(e.value) : w(e) && this.to(e);
625
625
  });
626
626
  }
627
- }, Be = class {
627
+ }, Ve = class {
628
628
  properties;
629
629
  root;
630
630
  constructor(e, t) {
@@ -632,14 +632,14 @@ var z = {
632
632
  }
633
633
  to(t = this.properties, n = this.root) {
634
634
  let r = {};
635
- return y(t, (t, i) => {
636
- if (typeof t.value == "string" && F.isInType(t[g.type], [_.file])) {
635
+ return b(t, (t, i) => {
636
+ if (typeof t.value == "string" && I.isInType(t[_.type], [v.file])) {
637
637
  let { path: i, link: a } = this.initLink(n, t.value), o = this.readByLink(this.read(i), a);
638
- x(o) && (B.to(o), r = w(r, this.to(R.to(o), [e.getPathDir(i)])));
639
- } else r = S(t.value) ? w(r, { [i]: {
638
+ S(o) && (B.to(o), r = E(r, this.to(z.to(o), [e.getPathDir(i)])));
639
+ } else r = w(t.value) ? E(r, { [i]: {
640
640
  ...t,
641
641
  value: this.to(t.value, n)
642
- } }) : w(r, { [i]: t });
642
+ } }) : E(r, { [i]: t });
643
643
  }), r;
644
644
  }
645
645
  getPath(e, t) {
@@ -653,7 +653,7 @@ var z = {
653
653
  };
654
654
  }
655
655
  read(t) {
656
- return e.isDir(t) ? this.readByDir(t) : M.read(t) ?? {};
656
+ return e.isDir(t) ? this.readByDir(t) : N.read(t) ?? {};
657
657
  }
658
658
  readByLink(e, t) {
659
659
  let n = e;
@@ -665,26 +665,26 @@ var z = {
665
665
  let n = e.readDir(t), r = {};
666
666
  return n?.sort(), n?.forEach((n) => {
667
667
  let i = e.parse(n);
668
- i.ext === ".json" && (r[i.name] = M.read([...t, n]) ?? {});
668
+ i.ext === ".json" && (r[i.name] = N.read([...t, n]) ?? {});
669
669
  }), r;
670
670
  }
671
671
  }, V = class {
672
672
  static is(e, n = t.getSeparatorLimit()) {
673
673
  if (n > 0) for (let t in e) {
674
- if (I.isSeparator(t)) return !0;
674
+ if (L.isSeparator(t)) return !0;
675
675
  let r = e?.[t]?.value;
676
- if (r && S(r) && this.is(r, n - 1)) return !0;
676
+ if (r && w(r) && this.is(r, n - 1)) return !0;
677
677
  }
678
678
  return !1;
679
679
  }
680
680
  static to(e) {
681
681
  let t = {};
682
- return y(e, (e, n) => {
682
+ return b(e, (e, n) => {
683
683
  let r = {
684
684
  ...e,
685
- value: S(e.value) ? this.to(e.value) : e.value
685
+ value: w(e.value) ? this.to(e.value) : e.value
686
686
  };
687
- t = I.isSeparator(n) ? w(t, this.wrap(r, this.removeBasicName(n))) : w(t, { [n]: r });
687
+ t = L.isSeparator(n) ? E(t, this.wrap(r, this.removeBasicName(n))) : E(t, { [n]: r });
688
688
  }), t;
689
689
  }
690
690
  static removeBasicName(e) {
@@ -696,16 +696,16 @@ var z = {
696
696
  return [...t].reverse().forEach((e) => {
697
697
  n = { value: { [e]: {
698
698
  ...n,
699
- [g.wrap]: !0
699
+ [_.wrap]: !0
700
700
  } } };
701
701
  }), n.value;
702
702
  }
703
- }, Ve = class {
703
+ }, He = class {
704
704
  static to(e) {
705
- y(e, (e) => {
706
- if (S(e.value) && (this.to(e.value), e?.[g.wrap])) {
705
+ b(e, (e) => {
706
+ if (w(e.value) && (this.to(e.value), e?.[_.wrap])) {
707
707
  let t = e.value, n = this.getSelectors(t);
708
- n.quantity > 1 && y(n.properties, (e, r) => {
708
+ n.quantity > 1 && b(n.properties, (e, r) => {
709
709
  if (r in t) {
710
710
  let n = t[r]?.value;
711
711
  typeof n == "string" && this.removeProperties(r, e?.values?.[n]);
@@ -716,7 +716,7 @@ var z = {
716
716
  value: n.value
717
717
  }, this.removeProperties(r, n.item));
718
718
  }
719
- }), delete e[g.wrap];
719
+ }), delete e[_.wrap];
720
720
  }
721
721
  });
722
722
  }
@@ -731,13 +731,13 @@ var z = {
731
731
  properties: {},
732
732
  quantity: 0
733
733
  };
734
- return y(e, (e) => {
735
- S(e.value) && (t.quantity++, this.addItem(t.properties, e.value));
734
+ return b(e, (e) => {
735
+ w(e.value) && (t.quantity++, this.addItem(t.properties, e.value));
736
736
  }), t;
737
737
  }
738
738
  static getMaxRepeat(e) {
739
739
  let t = 0, n;
740
- return y(e, (e, r) => {
740
+ return b(e, (e, r) => {
741
741
  e.length > 1 && (e.length > t || n === void 0) && (t = e.length, n = {
742
742
  value: r,
743
743
  item: e
@@ -748,7 +748,7 @@ var z = {
748
748
  return t in e.values || (e.values[t] = []), e.values[t];
749
749
  }
750
750
  static addItem(e, t) {
751
- y(t, (n, r) => {
751
+ b(t, (n, r) => {
752
752
  let i = this.getSelector(e, r), a = this.getValue(i, n.value);
753
753
  i.quantity++, a.push(t);
754
754
  });
@@ -756,31 +756,31 @@ var z = {
756
756
  static removeProperties(e, t) {
757
757
  t?.forEach((t) => delete t[e]);
758
758
  }
759
- }, He = "main", Ue = class {
759
+ }, Ue = "main", We = class {
760
760
  path;
761
761
  constructor(e) {
762
762
  this.path = e;
763
763
  }
764
764
  get() {
765
- return this.path.toAll(He, (e, t, n) => {
766
- let r = N.readFile(n, e);
767
- return x(r) && (B.to(r), r = R.to({ [n]: r }), e && (r = new Be(r, e).to()), V.is(r) && (r = V.to(r), Ve.to(r))), r ?? {};
765
+ return this.path.toAll(Ue, (e, t, n) => {
766
+ let r = P.readFile(n, e);
767
+ return S(r) && (B.to(r), r = z.to({ [n]: r }), e && (r = new Ve(r, e).to()), V.is(r) && (r = V.to(r), He.to(r))), r ?? {};
768
768
  });
769
769
  }
770
770
  getBySettings(e) {
771
771
  let t = this.get();
772
- return y(e, (e, n) => {
772
+ return b(e, (e, n) => {
773
773
  let r = t?.[n]?.value;
774
- r && S(r) && S(e.value) && y(e.value, (e, t) => {
774
+ r && w(r) && w(e.value) && b(e.value, (e, t) => {
775
775
  let n = r?.[t]?.value;
776
- n && S(n) && S(e.value) && y(e.value, (e, t) => {
776
+ n && w(n) && w(e.value) && b(e.value, (e, t) => {
777
777
  this.copySettings(e, n?.[t]);
778
778
  });
779
779
  });
780
780
  }), t;
781
781
  }
782
782
  copySettings(e, t) {
783
- return t && y(e, (e, n) => {
783
+ return t && b(e, (e, n) => {
784
784
  n.match(/^_/) && n in t && t[n] !== e && (t[n] = e);
785
785
  }), this;
786
786
  }
@@ -795,11 +795,11 @@ var z = {
795
795
  write() {
796
796
  this.items.write(this.FILE_CACHE);
797
797
  }
798
- }, We = class extends H {
798
+ }, Ge = class extends H {
799
799
  FILE_CACHE = "001-replace";
800
800
  init() {
801
801
  this.items.each(({ item: e }) => {
802
- e?.[g.replace] && typeof e.value == "string" && (e.value = this.getValue(this.getInfo(e[g.replace]), e.value), delete e[g.replace]);
802
+ e?.[_.replace] && typeof e.value == "string" && (e.value = this.getValue(this.getInfo(e[_.replace]), e.value), delete e[_.replace]);
803
803
  });
804
804
  }
805
805
  getInfo(e) {
@@ -816,27 +816,27 @@ var z = {
816
816
  getValue(e, t) {
817
817
  return e?.pattern ? t.replace(new RegExp(e.pattern, e.flags), e.replace) : t;
818
818
  }
819
- }, Ge = "basic", U = "palette", Ke = class extends H {
819
+ }, Ke = "basic", U = "palette", qe = class extends H {
820
820
  items;
821
821
  FILE_CACHE = "002-palette";
822
822
  palette;
823
823
  constructor(e) {
824
- super(e), this.items = e, this.palette = this.items.findCategory(v.palette);
824
+ super(e), this.items = e, this.palette = this.items.findCategory(y.palette);
825
825
  }
826
826
  init() {
827
- this.read(), this.items.findCategory(v.theme).forEach(({ design: e, name: t, item: n }) => n?.value && S(n.value) && this.read(n.value, t, e));
827
+ this.read(), this.items.findCategory(y.theme).forEach(({ design: e, name: t, item: n }) => n?.value && w(n.value) && this.read(n.value, t, e));
828
828
  }
829
829
  getParent(e, t) {
830
830
  return U in t || (t[U] = {
831
831
  value: {},
832
- [g.type]: e === v.colors ? _.classType : _.component,
833
- [g.category]: e
832
+ [_.type]: e === y.colors ? v.classType : v.component,
833
+ [_.category]: e
834
834
  }), t[U].value;
835
835
  }
836
836
  getClass(e, t) {
837
837
  return e?.[t] || (e[t] = {
838
838
  value: {},
839
- [g.type]: _.state
839
+ [_.type]: v.state
840
840
  }), e[t].value;
841
841
  }
842
842
  getName(e, t) {
@@ -846,29 +846,29 @@ var z = {
846
846
  return `{${e}.${t}}`;
847
847
  }
848
848
  getValueDefault(e, t) {
849
- let n = e?.[g.default];
850
- return x(n) ? _e(n) ? n?.[t] : n : "default";
849
+ let n = e?.[_.default];
850
+ return S(n) ? C(n) ? n?.[t] : n : "default";
851
851
  }
852
- read(e, t = Ge, n) {
852
+ read(e, t = Ke, n) {
853
853
  this.palette.forEach(({ design: r, item: i, parents: a, index: o }) => {
854
854
  if (!n || n === r) {
855
- let n = i?.[g.theme];
855
+ let n = i?.[_.theme];
856
856
  if (!n || n === t) {
857
- let n = this.getParent(e ? v.colors : v.class, e ?? a?.[0]?.item.value);
858
- n && S(i.value) && y(i.value, (e, r) => {
857
+ let n = this.getParent(e ? y.colors : y.class, e ?? a?.[0]?.item.value);
858
+ n && w(i.value) && b(i.value, (e, r) => {
859
859
  let a = this.getClass(n, r);
860
- S(e.value) && e?.[g.category] !== v.paletteNone && this.addItem(a, `${o}.${r}`, t, e.value), this.addDefault(a, t, i);
860
+ w(e.value) && e?.[_.category] !== y.paletteNone && this.addItem(a, `${o}.${r}`, t, e.value), this.addDefault(a, t, i);
861
861
  });
862
862
  }
863
863
  }
864
864
  });
865
865
  }
866
866
  addItem(e, t, n, r) {
867
- y(r, (r, i) => {
867
+ b(r, (r, i) => {
868
868
  r && (e[this.getName(n, i)] = {
869
869
  value: this.getValue(t, i),
870
- [g.type]: _.var,
871
- [g.category]: v.color
870
+ [_.type]: v.var,
871
+ [_.category]: y.color
872
872
  });
873
873
  });
874
874
  }
@@ -876,28 +876,28 @@ var z = {
876
876
  let r = this.getValueDefault(n, t), i = this.getName(t, r);
877
877
  e?.[i] && (e["sys-palette"] = {
878
878
  ...e[i],
879
- [g.fullName]: !0
879
+ [_.fullName]: !0
880
880
  });
881
881
  }
882
- }, qe = 32, Je = 24, Ye = [
883
- _.link,
884
- _.var,
885
- _.property,
886
- _.selector,
887
- _.virtual,
888
- _.scss
889
- ], Xe = class extends H {
882
+ }, Je = 32, Ye = 24, Xe = [
883
+ v.link,
884
+ v.var,
885
+ v.property,
886
+ v.selector,
887
+ v.virtual,
888
+ v.scss
889
+ ], Ze = class extends H {
890
890
  FILE_CACHE = "004-link";
891
891
  update = 1;
892
892
  ignore = [];
893
893
  links = [];
894
894
  init() {
895
- let e = qe;
895
+ let e = Je;
896
896
  for (; this.update > 0 && e-- > 0;) this.update = 0, this.read();
897
897
  }
898
898
  read(e, t, n = this.items.get(), r = []) {
899
899
  let i = [], a = !1;
900
- if (r.length > Je) return a;
900
+ if (r.length > Ye) return a;
901
901
  for (let [o, s] of Object.entries(n)) {
902
902
  let c = [...r, o];
903
903
  if (e && t && this.isType(s) && this.isValue(s.value) && !this.isIgnore(s.value)) {
@@ -917,12 +917,12 @@ var z = {
917
917
  }
918
918
  typeof l.value == "string" && this.addIgnore(l.value);
919
919
  }
920
- } else S(s.value) && this.read(e ?? o, e && (t ?? o), s.value, c) && (a = !0);
920
+ } else w(s.value) && this.read(e ?? o, e && (t ?? o), s.value, c) && (a = !0);
921
921
  }
922
922
  return i.length > 0 && this.add(r, i), a;
923
923
  }
924
924
  isType(e) {
925
- return !e?.[g.type] || F.isInType(e[g.type], Ye);
925
+ return !e?.[_.type] || I.isInType(e[_.type], Xe);
926
926
  }
927
927
  isValue(e) {
928
928
  return typeof e == "string" && !!e.match(/^{[^{}]+}$/) && !e.match(/[{?.]sys/);
@@ -934,12 +934,12 @@ var z = {
934
934
  return this.links.indexOf(e) !== -1;
935
935
  }
936
936
  isData(e) {
937
- return S(e) && Object.keys(e).length > 0;
937
+ return w(e) && Object.keys(e).length > 0;
938
938
  }
939
939
  add(e, t) {
940
940
  let n = this.items.getInfo(`{${e.join(".")}}`);
941
941
  n && t.forEach(({ name: e, data: t, properties: r }) => {
942
- n.item.value = be(r, t, e);
942
+ n.item.value = ye(r, t, e);
943
943
  });
944
944
  }
945
945
  addIgnore(e) {
@@ -948,7 +948,7 @@ var z = {
948
948
  addLink(e) {
949
949
  this.links.push(e);
950
950
  }
951
- }, W = /(?<={[^}]*?){([^{}]+)}/g, Ze = class extends H {
951
+ }, W = /(?<={[^}]*?){([^{}]+)}/g, Qe = class extends H {
952
952
  FILE_CACHE = "006-sub";
953
953
  init() {
954
954
  this.items.each((e) => {
@@ -964,41 +964,41 @@ var z = {
964
964
  return n.trim();
965
965
  }
966
966
  read({ design: e, component: t, item: n }) {
967
- t && typeof n.value == "string" && (n.value = this.getValue(e, t, n.value), n?.[g.fullValue] && (n.value = n.value.replace(/[{}]/g, "")));
967
+ t && typeof n.value == "string" && (n.value = this.getValue(e, t, n.value), n?.[_.fullValue] && (n.value = n.value.replace(/[{}]/g, "")));
968
968
  }
969
- }, Qe = [g.value, g.settingClone], $e = [_.var, _.property], et = class extends H {
969
+ }, $e = [_.value, _.settingClone], et = [v.var, v.property], tt = class extends H {
970
970
  FILE_CACHE = "007-01-clone";
971
971
  init() {
972
972
  this.items.each(({ name: e, item: t, parent: n }) => {
973
- n && t?.[g.settingClone] && this.update(t, this.findItem(n, e));
973
+ n && t?.[_.settingClone] && this.update(t, this.findItem(n, e));
974
974
  });
975
975
  }
976
976
  findItem(e, t) {
977
977
  let n = [];
978
- return S(e.value) && y(e.value, (e, r) => {
979
- r === t && $e.indexOf(e?.type ?? "") < 0 && n.push(e), n.push(...this.findItem(e, t));
978
+ return w(e.value) && b(e.value, (e, r) => {
979
+ r === t && et.indexOf(e?.type ?? "") < 0 && n.push(e), n.push(...this.findItem(e, t));
980
980
  }), n;
981
981
  }
982
982
  update(e, t) {
983
983
  let n = e.value;
984
984
  t.forEach((t) => {
985
- y(e, (e, n) => {
986
- n && !(n in t) && Qe.indexOf(n) < 0 && (t[n] = e);
987
- }), S(n) && S(t.value) && y(t.value, (e, t) => {
985
+ b(e, (e, n) => {
986
+ n && !(n in t) && $e.indexOf(n) < 0 && (t[n] = e);
987
+ }), w(n) && w(t.value) && b(t.value, (e, t) => {
988
988
  n?.[t] && this.update(n[t], [e]);
989
989
  });
990
990
  });
991
991
  }
992
- }, tt = class extends H {
992
+ }, nt = class extends H {
993
993
  FILE_CACHE = "007-03-drag";
994
994
  init() {
995
995
  this.read();
996
996
  }
997
997
  getDragSetting(e) {
998
998
  let { design: t, component: n, item: r } = e;
999
- if (n && r?.[g.dragSetting]) {
1000
- let e = r?.[g.dragSetting], i = typeof e == "object" ? e : { _all: e }, a = {};
1001
- if (y(i, (e, r) => {
999
+ if (n && r?.[_.dragSetting]) {
1000
+ let e = r?.[_.dragSetting], i = typeof e == "object" ? e : { _all: e }, a = {};
1001
+ if (b(i, (e, r) => {
1002
1002
  let i = this.items.getItem(this.items.getLink(t, n, e));
1003
1003
  i && (a[r] = {
1004
1004
  ...i,
@@ -1016,14 +1016,14 @@ var z = {
1016
1016
  if (this.read({
1017
1017
  ...e,
1018
1018
  parents: a
1019
- }), n?.[g.drag]) {
1019
+ }), n?.[_.drag]) {
1020
1020
  let i = this.getDragSetting(e), o = this.drag(a, n, i ?? {});
1021
- r && S(r.value) && o && this.toGo(n, o) && delete r.value[t];
1021
+ r && w(r.value) && o && this.toGo(n, o) && delete r.value[t];
1022
1022
  }
1023
1023
  }, e);
1024
1024
  }
1025
1025
  drag(e, n, r) {
1026
- let i = n?.[g.drag]?.split(t.getSeparator()) ?? [];
1026
+ let i = n?.[_.drag]?.split(t.getSeparator()) ?? [];
1027
1027
  if (e.length > 0) {
1028
1028
  let t = e.length - 1, a = e[t].item, o = !1;
1029
1029
  if (i.forEach((n) => {
@@ -1034,30 +1034,30 @@ var z = {
1034
1034
  case "..":
1035
1035
  o || (--t < 0 && (t = 0), a = e[t].item);
1036
1036
  break;
1037
- default: a && S(a.value) && (n in a.value || (a.value[n] = r?.[n] ?? r._all ?? { value: {} }), o = !0, a = a.value[n]);
1037
+ default: a && w(a.value) && (n in a.value || (a.value[n] = r?.[n] ?? r._all ?? { value: {} }), o = !0, a = a.value[n]);
1038
1038
  }
1039
1039
  }), a !== n) return a;
1040
1040
  }
1041
1041
  }
1042
1042
  toGo(e, t) {
1043
1043
  let n = t.value;
1044
- if (S(n)) {
1045
- if (S(e.value)) y(e.value, (e, t) => {
1046
- n?.[t] ? x(n[t].value) || (n[t].value = e.value) : n[t] = e;
1044
+ if (w(n)) {
1045
+ if (w(e.value)) b(e.value, (e, t) => {
1046
+ n?.[t] ? S(n[t].value) || (n[t].value = e.value) : n[t] = e;
1047
1047
  });
1048
1048
  else {
1049
- let t = e?.[g.index];
1050
- t && (n?.[t] ? x(n[t].value) || (n[t].value = e.value) : n[t] = e);
1049
+ let t = e?.[_.index];
1050
+ t && (n?.[t] ? S(n[t].value) || (n[t].value = e.value) : n[t] = e);
1051
1051
  }
1052
1052
  return !0;
1053
1053
  }
1054
1054
  return !1;
1055
1055
  }
1056
- }, nt = class extends H {
1056
+ }, rt = class extends H {
1057
1057
  FILE_CACHE = "007-02-remove";
1058
1058
  init() {
1059
- this.items.find(({ item: e }) => e?.[g.remove] ?? !1).forEach(({ name: e, parent: t, parents: n }) => {
1060
- t && S(t.value) && (console.warn("[Remove]", `{${b(n, "name").join(".")}.${e}}`), delete t.value[e]);
1059
+ this.items.find(({ item: e }) => e?.[_.remove] ?? !1).forEach(({ name: e, parent: t, parents: n }) => {
1060
+ t && w(t.value) && (console.warn("[Remove]", `{${x(n, "name").join(".")}.${e}}`), delete t.value[e]);
1061
1061
  });
1062
1062
  }
1063
1063
  }, G = /* @__PURE__ */ "direction.unicode-bidi.appearance.aspect-ratio.aspect-ratio-width.aspect-ratio-height.position.absolute.absolute-bottom.absolute-top.absolute-after.z-index.inset.inset-block.inset-block-start.inset-block-end.inset-inline.inset-inline-start.inset-inline-end.top.right.bottom.left.display.visibility.clear.contain.overflow.overflow-x.overflow-y.overflow-block.overflow-inline.overflow-wrap.overflow-clip-margin.overflow-anchor.float.shape-outside.shape-margin.shape-image-threshold.min-zoom.max-zoom".split("."), K = /* @__PURE__ */ "flex.flex-position.flex-flow.flex-basis.flex-direction.flex-grow.flex-shrink.flex-wrap.flex-dynamic.grid.grid-area.grid-auto-flow.grid-auto-columns.grid-auto-rows.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.grid-column.grid-column-start.grid-column-end.grid-row.grid-row-start.grid-row-end.align-content.align-items.align-self.align-tracks.justify-content.justify-items.justify-self.justify-tracks.place-content.place-items.place-self.gap.row-gap.order.masonry-auto-flow".split("."), q = [
@@ -1071,7 +1071,7 @@ var z = {
1071
1071
  "column-rule-color",
1072
1072
  "column-rule-style",
1073
1073
  "column-span"
1074
- ], rt = /* @__PURE__ */ "margin.margin-top.margin-right.margin-bottom.margin-left.margin-x.margin-y.margin-block.margin-block-start.margin-block-end.margin-inline.margin-inline-start.margin-inline-end.margin-trim.padding.padding-top.padding-right.padding-bottom.padding-left.padding-x.padding-y.padding-block.padding-block-start.padding-block-end.padding-inline.padding-inline-start.padding-inline-end".split("."), it = [
1074
+ ], it = /* @__PURE__ */ "margin.margin-top.margin-right.margin-bottom.margin-left.margin-x.margin-y.margin-block.margin-block-start.margin-block-end.margin-inline.margin-inline-start.margin-inline-end.margin-trim.padding.padding-top.padding-right.padding-bottom.padding-left.padding-x.padding-y.padding-block.padding-block-start.padding-block-end.padding-inline.padding-inline-start.padding-inline-end".split("."), at = [
1075
1075
  "box-sizing",
1076
1076
  "squared",
1077
1077
  "circle",
@@ -1091,7 +1091,7 @@ var z = {
1091
1091
  "max-inline-size",
1092
1092
  "tab-size",
1093
1093
  "field-sizing"
1094
- ], at = [
1094
+ ], ot = [
1095
1095
  "content",
1096
1096
  "content-visibility",
1097
1097
  "quotes",
@@ -1103,11 +1103,11 @@ var z = {
1103
1103
  "hyphens",
1104
1104
  "hyphenate-character",
1105
1105
  "hyphenate-limit-chars"
1106
- ], ot = /* @__PURE__ */ "font.font-family.font-size.font-weight.font-style.font-variant.font-size-adjust.font-stretch.font-synthesis.line-height.line-height-step.letter-spacing.word-spacing.text-align.text-align-all.text-align-last.text-justify.vertical-align.white-space.text-overflow.text-rendering.font-optical-sizing.font-variation-settings.box-decoration-break.widows.orphans.text-transform.text-case.text-indent.text-decoration.text-decoration-thickness.text-decoration-color.text-decoration-style.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-underline-offset.text-underline-position.font-feature-settings.font-kerning.font-language-override.font-variant-caps.font-variant-position.font-variant-ligatures.font-variant-alternates.font-variant-east-asian.font-variant-numeric.font-variant-emoji.text-orientation.text-combine-upright.writing-mode.word-break.word-wrap.text-emphasis.text-emphasis-color.text-emphasis-style.text-emphasis-position.ruby-align.ruby-position.list-style.list-style-position.list-style-type.list-style-image.paragraph-spacing".split("."), st = [
1106
+ ], st = /* @__PURE__ */ "font.font-family.font-size.font-weight.font-style.font-variant.font-size-adjust.font-stretch.font-synthesis.line-height.line-height-step.letter-spacing.word-spacing.text-align.text-align-all.text-align-last.text-justify.vertical-align.white-space.text-overflow.text-rendering.font-optical-sizing.font-variation-settings.box-decoration-break.widows.orphans.text-transform.text-case.text-indent.text-decoration.text-decoration-thickness.text-decoration-color.text-decoration-style.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-underline-offset.text-underline-position.font-feature-settings.font-kerning.font-language-override.font-variant-caps.font-variant-position.font-variant-ligatures.font-variant-alternates.font-variant-east-asian.font-variant-numeric.font-variant-emoji.text-orientation.text-combine-upright.writing-mode.word-break.word-wrap.text-emphasis.text-emphasis-color.text-emphasis-style.text-emphasis-position.ruby-align.ruby-position.list-style.list-style-position.list-style-type.list-style-image.paragraph-spacing".split("."), ct = [
1107
1107
  "math-depth",
1108
1108
  "math-shift",
1109
1109
  "math-style"
1110
- ], ct = [
1110
+ ], lt = [
1111
1111
  "palette",
1112
1112
  "palette-var",
1113
1113
  "opacity",
@@ -1117,7 +1117,7 @@ var z = {
1117
1117
  "palette-color",
1118
1118
  "accent-color",
1119
1119
  "forced-color-adjust"
1120
- ], lt = /* @__PURE__ */ "background.background-color.background-opacity.palette-background.background-image.gradient.gradient-opacity.palette-gradient.outline.outline-opacity.background-repeat.background-attachment.background-position.background-position-x.background-position-y.background-clip.background-origin.background-size.mask.mask-type.mask-mode.mask-composite.mask-image.mask-repeat.mask-position.mask-clip.mask-origin.mask-size.image-rendering.image-resolution.image-orientation.object-fit.object-position".split("."), ut = /* @__PURE__ */ "border-radius.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.border-start-start-radius.border-start-end-radius.border-end-start-radius.border-end-end-radius.border.border-width.border-style.border-color.border-opacity.palette-border.border-top.border-top-width.border-top-style.border-top-color.border-right.border-right-width.border-right-style.border-right-color.border-bottom.border-bottom-width.border-bottom-style.border-bottom-color.border-left.border-left-width.border-left-style.border-left-color.border-image.border-image-source.border-image-slice.border-image-repeat.border-image-width.border-image-outset.border-block.border-block-width.border-block-color.border-block-style.border-block-start.border-block-start-width.border-block-start-color.border-block-start-style.border-block-end.border-block-end-width.border-block-end-color.border-block-end-style.border-inline.border-inline-width.border-inline-color.border-inline-style.border-inline-end.border-inline-end-width.border-inline-end-color.border-inline-end-style.border-inline-start.border-inline-start-width.border-inline-start-color.border-inline-start-style.mask-border.mask-border-mode.mask-border-source.mask-border-slice.mask-border-repeat.mask-border-width.mask-border-outset.outline.outline-width.outline-style.outline-color.outline-opacity.outline-offset".split("."), dt = [
1120
+ ], ut = /* @__PURE__ */ "background.background-color.background-opacity.palette-background.background-image.gradient.gradient-opacity.palette-gradient.outline.outline-opacity.background-repeat.background-attachment.background-position.background-position-x.background-position-y.background-clip.background-origin.background-size.mask.mask-type.mask-mode.mask-composite.mask-image.mask-repeat.mask-position.mask-clip.mask-origin.mask-size.image-rendering.image-resolution.image-orientation.object-fit.object-position".split("."), dt = /* @__PURE__ */ "border-radius.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.border-start-start-radius.border-start-end-radius.border-end-start-radius.border-end-end-radius.border.border-width.border-style.border-color.border-opacity.palette-border.border-top.border-top-width.border-top-style.border-top-color.border-right.border-right-width.border-right-style.border-right-color.border-bottom.border-bottom-width.border-bottom-style.border-bottom-color.border-left.border-left-width.border-left-style.border-left-color.border-image.border-image-source.border-image-slice.border-image-repeat.border-image-width.border-image-outset.border-block.border-block-width.border-block-color.border-block-style.border-block-start.border-block-start-width.border-block-start-color.border-block-start-style.border-block-end.border-block-end-width.border-block-end-color.border-block-end-style.border-inline.border-inline-width.border-inline-color.border-inline-style.border-inline-end.border-inline-end-width.border-inline-end-color.border-inline-end-style.border-inline-start.border-inline-start-width.border-inline-start-color.border-inline-start-style.mask-border.mask-border-mode.mask-border-source.mask-border-slice.mask-border-repeat.mask-border-width.mask-border-outset.outline.outline-width.outline-style.outline-color.outline-opacity.outline-offset".split("."), ft = [
1121
1121
  "box-shadow",
1122
1122
  "text-shadow",
1123
1123
  "filter",
@@ -1127,7 +1127,7 @@ var z = {
1127
1127
  "mix-blend-mode",
1128
1128
  "background-blend-mode",
1129
1129
  "isolation"
1130
- ], ft = [
1130
+ ], pt = [
1131
1131
  "transform",
1132
1132
  "transform-box",
1133
1133
  "transform-style",
@@ -1140,13 +1140,13 @@ var z = {
1140
1140
  "clip-rule",
1141
1141
  "perspective",
1142
1142
  "perspective-origin"
1143
- ], pt = [
1143
+ ], mt = [
1144
1144
  "table-layout",
1145
1145
  "empty-cells",
1146
1146
  "border-collapse",
1147
1147
  "border-spacing",
1148
1148
  "caption-side"
1149
- ], mt = [
1149
+ ], ht = [
1150
1150
  "transition",
1151
1151
  "transition-delay",
1152
1152
  "transition-timing-function",
@@ -1172,7 +1172,7 @@ var z = {
1172
1172
  "offset-distance",
1173
1173
  "offset-position",
1174
1174
  "will-change"
1175
- ], ht = [
1175
+ ], gt = [
1176
1176
  "cursor",
1177
1177
  "pointer-events",
1178
1178
  "user-select",
@@ -1181,7 +1181,7 @@ var z = {
1181
1181
  "resize",
1182
1182
  "touch-action",
1183
1183
  "touch-callout"
1184
- ], gt = /* @__PURE__ */ "overscroll-behavior.overscroll-behavior-x.overscroll-behavior-y.overscroll-behavior-block.overscroll-behavior-inline.scroll-behavior.scroll-margin.scroll-margin-top.scroll-margin-right.scroll-margin-bottom.scroll-margin-left.scroll-margin-block.scroll-margin-block-start.scroll-margin-block-end.scroll-margin-inline.scroll-margin-inline-start.scroll-margin-inline-end.scroll-padding.scroll-padding-top.scroll-padding-right.scroll-padding-bottom.scroll-padding-left.scroll-padding-block.scroll-padding-block-start.scroll-padding-block-end.scroll-padding-inline.scroll-padding-inline-start.scroll-padding-inline-end.scroll-snap-type.scroll-snap-align.scroll-snap-stop.scrollbar-gutter.scrollbar-width.scrollbar-color".split("."), _t = [
1184
+ ], _t = /* @__PURE__ */ "overscroll-behavior.overscroll-behavior-x.overscroll-behavior-y.overscroll-behavior-block.overscroll-behavior-inline.scroll-behavior.scroll-margin.scroll-margin-top.scroll-margin-right.scroll-margin-bottom.scroll-margin-left.scroll-margin-block.scroll-margin-block-start.scroll-margin-block-end.scroll-margin-inline.scroll-margin-inline-start.scroll-margin-inline-end.scroll-padding.scroll-padding-top.scroll-padding-right.scroll-padding-bottom.scroll-padding-left.scroll-padding-block.scroll-padding-block-start.scroll-padding-block-end.scroll-padding-inline.scroll-padding-inline-start.scroll-padding-inline-end.scroll-snap-type.scroll-snap-align.scroll-snap-stop.scrollbar-gutter.scrollbar-width.scrollbar-color".split("."), vt = [
1185
1185
  "fill",
1186
1186
  "paint-order",
1187
1187
  "stroke",
@@ -1193,12 +1193,12 @@ var z = {
1193
1193
  "flood-color",
1194
1194
  "flood-opacity",
1195
1195
  "lighting-color"
1196
- ], vt = [
1196
+ ], yt = [
1197
1197
  "break-inside",
1198
1198
  "break-before",
1199
1199
  "break-after",
1200
1200
  "print-color-adjust"
1201
- ], yt = [
1201
+ ], bt = [
1202
1202
  "speak",
1203
1203
  "speak-as",
1204
1204
  "speak-header",
@@ -1213,7 +1213,7 @@ var z = {
1213
1213
  "voice-rate",
1214
1214
  "voice-stress",
1215
1215
  "voice-volume"
1216
- ], bt = [], xt = [
1216
+ ], xt = [], St = [
1217
1217
  "all",
1218
1218
  "clamp",
1219
1219
  "cue",
@@ -1234,7 +1234,7 @@ var z = {
1234
1234
  "rest-before",
1235
1235
  "unset",
1236
1236
  "vertically"
1237
- ], St = [
1237
+ ], Ct = [
1238
1238
  "glyph-orientation-vertical",
1239
1239
  "grid-gap",
1240
1240
  "grid-column-gap",
@@ -1245,11 +1245,10 @@ var z = {
1245
1245
  "richness",
1246
1246
  "stress",
1247
1247
  "volume"
1248
- ], Ct = [
1248
+ ], wt = [
1249
1249
  ...G,
1250
1250
  ...K,
1251
1251
  ...q,
1252
- ...rt,
1253
1252
  ...it,
1254
1253
  ...at,
1255
1254
  ...ot,
@@ -1268,8 +1267,9 @@ var z = {
1268
1267
  ...yt,
1269
1268
  ...bt,
1270
1269
  ...xt,
1271
- ...St
1272
- ], wt = /* @__PURE__ */ "root.dir.blank.empty.is.has.where.not.first-child.first-of-type.last-child.last-of-type.only-child.only-of-type.nth-child.nth-of-type.nth-col.nth-last-child.nth-last-of-type.nth-last-col.lang.target.defined.current.future.host.host-context.placeholder-shown.autofill.default.read-only.read-write.required.optional.indeterminate.checked.in-range.out-of-range.valid.invalid.any-link.link.local-link.visited.fullscreen.focus.focus-visible.focus-within.hover.active.enabled.disabled".split("."), Tt = [
1270
+ ...St,
1271
+ ...Ct
1272
+ ], Tt = /* @__PURE__ */ "root.dir.blank.empty.is.has.where.not.first-child.first-of-type.last-child.last-of-type.only-child.only-of-type.nth-child.nth-of-type.nth-col.nth-last-child.nth-last-of-type.nth-last-col.lang.target.defined.current.future.host.host-context.placeholder-shown.autofill.default.read-only.read-write.required.optional.indeterminate.checked.in-range.out-of-range.valid.invalid.any-link.link.local-link.visited.fullscreen.focus.focus-visible.focus-within.hover.active.enabled.disabled".split("."), Et = [
1273
1273
  "before",
1274
1274
  "after",
1275
1275
  "placeholder",
@@ -1277,125 +1277,125 @@ var z = {
1277
1277
  "first-letter",
1278
1278
  "first-line",
1279
1279
  "selection"
1280
- ], Et = class extends H {
1280
+ ], Dt = class extends H {
1281
1281
  FILE_CACHE = "008-variable";
1282
1282
  init() {
1283
1283
  this.items.each(({ design: e, component: t, name: n, item: r, parent: i }) => {
1284
- r[g.variable] = this.getByNone(r) ?? this.getByVarParent(i) ?? r?.[g.type] ?? this.getByCategory(r) ?? this.getByMain(e, t, n) ?? this.findType(n, r);
1284
+ r[_.variable] = this.getByNone(r) ?? this.getByVarParent(i) ?? r?.[_.type] ?? this.getByCategory(r) ?? this.getByMain(e, t, n) ?? this.findType(n, r);
1285
1285
  });
1286
1286
  }
1287
1287
  getByCategory(e) {
1288
- switch (e?.[g.category]) {
1289
- case v.root: return _.var;
1290
- case v.theme: return _.theme;
1288
+ switch (e?.[_.category]) {
1289
+ case y.root: return v.var;
1290
+ case y.theme: return v.theme;
1291
1291
  }
1292
1292
  }
1293
1293
  getByMain(e, t, n) {
1294
- if (n === e) return _.design;
1295
- if (n === t) return _.component;
1294
+ if (n === e) return v.design;
1295
+ if (n === t) return v.component;
1296
1296
  }
1297
1297
  getByProperty(e) {
1298
- return Ct.indexOf(O(e)) === -1 ? void 0 : _.property;
1298
+ return wt.indexOf(A(e)) === -1 ? void 0 : v.property;
1299
1299
  }
1300
1300
  getBySelector(e) {
1301
- return wt.indexOf(O(e)) === -1 ? void 0 : _.selector;
1301
+ return Tt.indexOf(A(e)) === -1 ? void 0 : v.selector;
1302
1302
  }
1303
1303
  getBySubclass(e) {
1304
- if (Object.keys(e).length <= 1 && !x(e.value)) return _.subclass;
1304
+ if (Object.keys(e).length <= 1 && !S(e.value)) return v.subclass;
1305
1305
  }
1306
1306
  getByVarParent(e) {
1307
- return F.isInType(e?.[g.variable], [_.var]) ? _.var : void 0;
1307
+ return I.isInType(e?.[_.variable], [v.var]) ? v.var : void 0;
1308
1308
  }
1309
1309
  getByNone(e) {
1310
- return e?.[g.type] === _.none ? _.none : void 0;
1310
+ return e?.[_.type] === v.none ? v.none : void 0;
1311
1311
  }
1312
1312
  getByVirtual(e) {
1313
- return Tt.indexOf(O(e)) === -1 ? void 0 : _.virtual;
1313
+ return Et.indexOf(A(e)) === -1 ? void 0 : v.virtual;
1314
1314
  }
1315
1315
  findType(e, t) {
1316
1316
  let n = this.items.getName(e, t);
1317
- return S(t.value) ? this.getBySubclass(t) || this.getBySelector(n) || this.getByVirtual(n) || this.getByProperty(n) || _.state : this.getByProperty(n) || _.var;
1317
+ return w(t.value) ? this.getBySubclass(t) || this.getBySelector(n) || this.getByVirtual(n) || this.getByProperty(n) || v.state : this.getByProperty(n) || v.var;
1318
1318
  }
1319
- }, Dt = [_.var, _.property], Ot = [_.classType, _.subclass], kt = class extends H {
1319
+ }, Ot = [v.var, v.property], kt = [v.classType, v.subclass], At = class extends H {
1320
1320
  FILE_CACHE = "010-similar";
1321
1321
  init() {
1322
1322
  this.items.each(({ item: e, name: t, parents: n }) => {
1323
1323
  let r = this.getParent(t, e, n);
1324
- r && (e[g.rename] = this.items.getReName(t, r), e[g.variable] = r?.[g.variable]);
1324
+ r && (e[_.rename] = this.items.getReName(t, r), e[_.variable] = r?.[_.variable]);
1325
1325
  });
1326
1326
  }
1327
1327
  getParent(e, t, n) {
1328
1328
  let r = [...n].reverse();
1329
- if (!t?.[g.type] && !t?.[g.rename] && !this.isException(t) && !this.isException(r?.[0]?.item)) {
1329
+ if (!t?.[_.type] && !t?.[_.rename] && !this.isException(t) && !this.isException(r?.[0]?.item)) {
1330
1330
  r.shift();
1331
- for (let { item: t } of r) if (S(t.value)) {
1331
+ for (let { item: t } of r) if (w(t.value)) {
1332
1332
  let n = t.value?.[e];
1333
1333
  if (this.isException(t)) break;
1334
- if (n && this.is(n) && (n?.[g.type] || n?.[g.rename])) return n;
1334
+ if (n && this.is(n) && (n?.[_.type] || n?.[_.rename])) return n;
1335
1335
  }
1336
1336
  }
1337
1337
  }
1338
1338
  is(e) {
1339
- return e?.[g.variable] ? Dt.indexOf(e?.[g.variable]) !== -1 : !1;
1339
+ return e?.[_.variable] ? Ot.indexOf(e?.[_.variable]) !== -1 : !1;
1340
1340
  }
1341
1341
  isException(e) {
1342
- return e && e?.[g.variable] ? Ot.indexOf(e[g.variable]) !== -1 : !1;
1342
+ return e && e?.[_.variable] ? kt.indexOf(e[_.variable]) !== -1 : !1;
1343
1343
  }
1344
- }, At = [_.var, _.state], jt = class extends H {
1344
+ }, jt = [v.var, v.state], Mt = class extends H {
1345
1345
  FILE_CACHE = "012-multi";
1346
1346
  init() {
1347
1347
  this.getList().forEach(({ item: e, name: t, value: n }) => {
1348
- this.read(this.items.getReName(t, e), n, e?.[g.varKey] ?? !1), e[g.variable] = _.state;
1348
+ this.read(this.items.getReName(t, e), n, e?.[_.varKey] ?? !1), e[_.variable] = v.state;
1349
1349
  });
1350
1350
  }
1351
1351
  getList() {
1352
1352
  return this.items.each((e) => {
1353
1353
  let { item: t, value: n } = e;
1354
- if (t?.[g.variable] === _.property && x(n) && S(n)) return e;
1354
+ if (t?.[_.variable] === v.property && S(n) && w(n)) return e;
1355
1355
  });
1356
1356
  }
1357
1357
  read(e, t, n) {
1358
- y(t, (t) => {
1359
- typeof t.value == "string" && t?.[g.variable] && At.indexOf(t[g.variable]) !== -1 && (t[g.variable] = _.state, t.value = { [e]: {
1358
+ b(t, (t) => {
1359
+ typeof t.value == "string" && t?.[_.variable] && jt.indexOf(t[_.variable]) !== -1 && (t[_.variable] = v.state, t.value = { [e]: {
1360
1360
  value: t.value,
1361
- [g.variable]: n ? _.var : _.property
1361
+ [_.variable]: n ? v.var : v.property
1362
1362
  } });
1363
1363
  });
1364
1364
  }
1365
- }, Mt = class extends H {
1365
+ }, Nt = class extends H {
1366
1366
  FILE_CACHE = "016-style";
1367
1367
  init() {
1368
1368
  this.items.each(({ item: e, name: t, design: n, component: r }) => {
1369
- e?.[g.style] && S(e.value) && !e.value?.custom && (e[g.variable] = _.state, e.value[le] = {
1369
+ e?.[_.style] && w(e.value) && !e.value?.custom && (e[_.variable] = v.state, e.value[ce] = {
1370
1370
  value: { [t]: {
1371
1371
  value: `{${n}.${r}.sys.${t}}`,
1372
- [g.variable]: e?.[g.varKey] ? _.var : _.property
1372
+ [_.variable]: e?.[_.varKey] ? v.var : v.property
1373
1373
  } },
1374
- [g.variable]: _.state
1374
+ [_.variable]: v.state
1375
1375
  });
1376
1376
  });
1377
1377
  }
1378
- }, Nt = class extends H {
1378
+ }, Pt = class extends H {
1379
1379
  FILE_CACHE = "018-full";
1380
1380
  init() {
1381
1381
  this.items.each(({ design: e, component: t, name: n, value: r, item: i }) => {
1382
- t && (i[g.name] = this.items.getLinkToName(e, t, this.items.getReName(n, i)), typeof r == "string" && (i[g.css] = this.items.getLinkToValue(e, t, r)));
1382
+ t && (i[_.name] = this.items.getLinkToName(e, t, this.items.getReName(n, i)), typeof r == "string" && (i[_.css] = this.items.getLinkToValue(e, t, r)));
1383
1383
  });
1384
1384
  }
1385
- }, Pt = /(?<!#)\{([^{}]+)}/gi, Ft = class extends H {
1385
+ }, Ft = /(?<!#)\{([^{}]+)}/gi, It = class extends H {
1386
1386
  FILE_CACHE = "020-var";
1387
- type = _.var;
1387
+ type = v.var;
1388
1388
  init() {
1389
1389
  this.items.findVariable(this.type).forEach((e) => {
1390
1390
  let { design: t, component: n, value: r, item: i, parents: a } = e;
1391
1391
  if (n && typeof r == "string" && r !== "") {
1392
- let o = i?.[g.css] ?? this.items.getLinkToValue(t, n, r);
1393
- i[g.name] = this.getName(e), this.isNone(a) ? i[g.css] = void 0 : (i[g.css] = this.toValue(this.toCalculator(o, i?.[g.fullValue]), i?.[g.default]), !(g.cssColorOpacity in i) && this.isColorWithOpacity(e) && (i[g.cssColorOpacity] = !0), i?.[g.important] && (i[g.css] += " !important"));
1392
+ let o = i?.[_.css] ?? this.items.getLinkToValue(t, n, r);
1393
+ i[_.name] = this.getName(e), this.isNone(a) ? i[_.css] = void 0 : (i[_.css] = this.toValue(this.toCalculator(o, i?.[_.fullValue]), i?.[_.default]), !(_.cssColorOpacity in i) && this.isColorWithOpacity(e) && (i[_.cssColorOpacity] = !0), i?.[_.important] && (i[_.css] += " !important"));
1394
1394
  }
1395
1395
  });
1396
1396
  }
1397
1397
  getName({ design: e, component: t, name: n, item: r, parents: i }) {
1398
- return t && r?.[g.fullName] ? `--${this.items.getLink(e, t, r?.[g.index] ?? n, "-")}` : `--${this.items.getParentsName(i, [_.var]).join("-")}-${E(n)}`;
1398
+ return t && r?.[_.fullName] ? `--${this.items.getLink(e, t, r?.[_.index] ?? n, "-")}` : `--${this.items.getParentsName(i, [v.var]).join("-")}-${O(n)}`;
1399
1399
  }
1400
1400
  toCalculator(e, t) {
1401
1401
  return !t && e.match(/([+*/]|(?<![\w-])-(?![\w-]))/gi) && e.match(/calc/gi) === null ? `calc(${e})` : e;
@@ -1404,94 +1404,94 @@ var z = {
1404
1404
  return this.items.getKeys(e).join("-");
1405
1405
  }
1406
1406
  toValue(e, t) {
1407
- return e.match("{") ? e.replace(Pt, (...e) => t && typeof t == "string" ? `var(--${this.toLink(e[1])}, ${this.toValue(this.toCalculator(t))})` : `var(--${this.toLink(e[1])})`) : e;
1407
+ return e.match("{") ? e.replace(Ft, (...e) => t && typeof t == "string" ? `var(--${this.toLink(e[1])}, ${this.toValue(this.toCalculator(t))})` : `var(--${this.toLink(e[1])})`) : e;
1408
1408
  }
1409
1409
  isNone(e) {
1410
- for (let t of e) if (t.item?.[g.type] === _.none) return !0;
1410
+ for (let t of e) if (t.item?.[_.type] === v.none) return !0;
1411
1411
  return !1;
1412
1412
  }
1413
1413
  isColorWithOpacity(e) {
1414
1414
  let { design: t, component: n, value: r, item: i } = e;
1415
- if (i?.[g.cssColorOpacity]) return !0;
1416
- if (n && ve(r)) {
1415
+ if (i?.[_.cssColorOpacity]) return !0;
1416
+ if (n && _e(r)) {
1417
1417
  if (r.match(/^\{[^}]+}$/)) {
1418
1418
  let e = this.items.getLink(t, n, r), i = this.items.getInfo(e);
1419
1419
  if (i) return this.isColorWithOpacity(i);
1420
- } else return L.isColorWithOpacity(r);
1420
+ } else return R.isColorWithOpacity(r);
1421
1421
  }
1422
1422
  return !1;
1423
1423
  }
1424
- }, It = class extends Ft {
1424
+ }, Lt = class extends It {
1425
1425
  FILE_CACHE = "024-property";
1426
- type = _.property;
1426
+ type = v.property;
1427
1427
  getName({ name: e, item: t }) {
1428
- return O(this.items.getReName(e, t));
1428
+ return A(this.items.getReName(e, t));
1429
1429
  }
1430
- }, Lt = class extends H {
1430
+ }, Rt = class extends H {
1431
1431
  FILE_CACHE = "028-component";
1432
1432
  init() {
1433
- this.items.findVariable([_.component, _.theme]).forEach(({ name: e, item: t, parents: n }) => {
1434
- t[g.name] = this.getName(this.items.getReName(e, t), t, n);
1433
+ this.items.findVariable([v.component, v.theme]).forEach(({ name: e, item: t, parents: n }) => {
1434
+ t[_.name] = this.getName(this.items.getReName(e, t), t, n);
1435
1435
  });
1436
1436
  }
1437
1437
  getName(e, t, n) {
1438
1438
  let r = this.items.getReName(e, t);
1439
- return t?.[g.fullName] ? `${r}` : `${this.items.getParentsName(n).join("-")}-${r}`;
1439
+ return t?.[_.fullName] ? `${r}` : `${this.items.getParentsName(n).join("-")}-${r}`;
1440
1440
  }
1441
- }, Rt = class extends H {
1441
+ }, zt = class extends H {
1442
1442
  FILE_CACHE = "030-class";
1443
1443
  init() {
1444
- this.items.findVariable(_.classType).forEach(({ name: e, item: t, parents: n }) => {
1445
- t[g.name] = this.getName(e, t, n);
1444
+ this.items.findVariable(v.classType).forEach(({ name: e, item: t, parents: n }) => {
1445
+ t[_.name] = this.getName(e, t, n);
1446
1446
  });
1447
1447
  }
1448
1448
  getName(e, t, n) {
1449
1449
  let r = this.items.getReName(e, t);
1450
- return t?.[g.fullName] ? `& .${r}` : `& .${n?.[0]?.name}-${r}`;
1450
+ return t?.[_.fullName] ? `& .${r}` : `& .${n?.[0]?.name}-${r}`;
1451
1451
  }
1452
- }, zt = class extends H {
1452
+ }, Bt = class extends H {
1453
1453
  FILE_CACHE = "032-state";
1454
1454
  init() {
1455
- this.items.findVariable([_.state]).forEach(({ name: e, item: t, parents: n }) => {
1456
- t[g.name] = this.getName(e, t, n);
1455
+ this.items.findVariable([v.state]).forEach(({ name: e, item: t, parents: n }) => {
1456
+ t[_.name] = this.getName(e, t, n);
1457
1457
  });
1458
1458
  }
1459
1459
  getName(e, t, n) {
1460
1460
  let r = this.items.getReName(e, t);
1461
- if (t?.[g.fullName]) return `&.${r}`;
1461
+ if (t?.[_.fullName]) return `&.${r}`;
1462
1462
  let i = n?.[1]?.item.value;
1463
- return !t?.[g.state] && n.length > 2 && S(i) && i?.[e] && i[e][g.variable] === _.state ? `&.${n?.[1]?.item[g.name]}--${r}` : `&--${r}`;
1463
+ return !t?.[_.state] && n.length > 2 && w(i) && i?.[e] && i[e][_.variable] === v.state ? `&.${n?.[1]?.item[_.name]}--${r}` : `&--${r}`;
1464
1464
  }
1465
- }, Bt = class extends H {
1465
+ }, Vt = class extends H {
1466
1466
  FILE_CACHE = "036-subclass";
1467
1467
  init() {
1468
- this.items.findVariable(_.subclass).forEach(({ name: e, item: t, parents: n }) => {
1468
+ this.items.findVariable(v.subclass).forEach(({ name: e, item: t, parents: n }) => {
1469
1469
  let r = this.items.getReName(e, t);
1470
- t[g.name] = this.getName(r, t, n), t[g.nameIndex] = r;
1470
+ t[_.name] = this.getName(r, t, n), t[_.nameIndex] = r;
1471
1471
  });
1472
1472
  }
1473
1473
  isParentState(e) {
1474
- let t = e?.[e.length - 1]?.item?.[g.variable] ?? _.subclass;
1474
+ let t = e?.[e.length - 1]?.item?.[_.variable] ?? v.subclass;
1475
1475
  return [
1476
- _.component,
1477
- _.subclass,
1478
- _.classType
1476
+ v.component,
1477
+ v.subclass,
1478
+ v.classType
1479
1479
  ].indexOf(t) < 0;
1480
1480
  }
1481
1481
  getName(e, t, n) {
1482
- return t?.[g.fullName] ? `& .${e}` : this.isParentState(n) ? `& .${this.items.getParentsName(n, [_.subclass]).join("__").replace("__", "-")}__${e}` : `&__${e}`;
1482
+ return t?.[_.fullName] ? `& .${e}` : this.isParentState(n) ? `& .${this.items.getParentsName(n, [v.subclass]).join("__").replace("__", "-")}__${e}` : `&__${e}`;
1483
1483
  }
1484
- }, Vt = class extends H {
1484
+ }, Ht = class extends H {
1485
1485
  FILE_CACHE = "038-root";
1486
1486
  init() {
1487
- this.items.findVariable(_.root).forEach(({ design: e, component: t, name: n, item: r }) => {
1488
- t && (r[g.name] = this.getName(e, t, this.items.getReName(n, r)));
1487
+ this.items.findVariable(v.root).forEach(({ design: e, component: t, name: n, item: r }) => {
1488
+ t && (r[_.name] = this.getName(e, t, this.items.getReName(n, r)));
1489
1489
  });
1490
1490
  }
1491
1491
  getName(e, t, n) {
1492
1492
  return `${this.items.getLink(e, t, n)} &`;
1493
1493
  }
1494
- }, Ht = class extends H {
1494
+ }, Ut = class extends H {
1495
1495
  items;
1496
1496
  FILE_CACHE = "040-media";
1497
1497
  media;
@@ -1500,36 +1500,36 @@ var z = {
1500
1500
  }
1501
1501
  init() {
1502
1502
  this.items.findVariable([
1503
- _.mediaGroup,
1504
- _.mediaMaxGroup,
1505
- _.containerGroup,
1506
- _.containerMaxGroup
1503
+ v.mediaGroup,
1504
+ v.mediaMaxGroup,
1505
+ v.containerGroup,
1506
+ v.containerMaxGroup
1507
1507
  ]).forEach(({ design: e, name: t, item: n, parent: r }) => {
1508
- r?.value && S(r.value) && (t in r.value && delete r.value[t], Object.assign(r.value, this.toValueGroup(e, t, n, this.getTypeByGroup(n))));
1508
+ r?.value && w(r.value) && (t in r.value && delete r.value[t], Object.assign(r.value, this.toValueGroup(e, t, n, this.getTypeByGroup(n))));
1509
1509
  }), this.items.findVariable([
1510
- _.media,
1511
- _.mediaMax,
1512
- _.container,
1513
- _.containerMax
1510
+ v.media,
1511
+ v.mediaMax,
1512
+ v.container,
1513
+ v.containerMax
1514
1514
  ]).forEach(({ design: e, name: t, item: n }) => {
1515
- n[g.name] = this.getName(e, t, n);
1515
+ n[_.name] = this.getName(e, t, n);
1516
1516
  });
1517
1517
  }
1518
1518
  getName(e, t, n) {
1519
1519
  let r = this.toValueForMedia(e, this.items.getReName(t, n).split(","));
1520
- return r.length > 1 ? `(min-width: ${r?.[0] || "0px"}) and (max-width: calc(${r?.[1] || "1980px"} - 1px))` : n?.[g.variable] === _.mediaMax || n?.[g.variable] === _.containerMax ? `(max-width: calc(${r?.[0] || "1980px"} - 1px))` : `(min-width: ${r?.[0] || "0px"})`;
1520
+ return r.length > 1 ? `(min-width: ${r?.[0] || "0px"}) and (max-width: calc(${r?.[1] || "1980px"} - 1px))` : n?.[_.variable] === v.mediaMax || n?.[_.variable] === v.containerMax ? `(max-width: calc(${r?.[0] || "1980px"} - 1px))` : `(min-width: ${r?.[0] || "0px"})`;
1521
1521
  }
1522
1522
  getTypeByGroup(e) {
1523
- switch (e?.[g.variable]) {
1524
- case _.containerGroup: return _.container;
1525
- case _.containerMaxGroup: return _.containerMax;
1526
- case _.mediaMaxGroup: return _.mediaMax;
1527
- default: return _.media;
1523
+ switch (e?.[_.variable]) {
1524
+ case v.containerGroup: return v.container;
1525
+ case v.containerMaxGroup: return v.containerMax;
1526
+ case v.mediaMaxGroup: return v.mediaMax;
1527
+ default: return v.media;
1528
1528
  }
1529
1529
  }
1530
1530
  toValueForMedia(e, t) {
1531
- return y(t, (t) => {
1532
- let n = E(t.replace(/^mediaMax|media|containerMax|container/, "")), r = this.media?.[e]?.[n]?.value;
1531
+ return b(t, (t) => {
1532
+ let n = O(t.replace(/^mediaMax|media|containerMax|container/, "")), r = this.media?.[e]?.[n]?.value;
1533
1533
  return typeof r == "string" && r || n;
1534
1534
  });
1535
1535
  }
@@ -1538,7 +1538,7 @@ var z = {
1538
1538
  if (i) {
1539
1539
  let e = {};
1540
1540
  return Object.keys(i).forEach((i) => {
1541
- let a = E(`${t}-${i}`), o = E(`${r}-${i}`);
1541
+ let a = O(`${t}-${i}`), o = O(`${r}-${i}`);
1542
1542
  e[a] = {
1543
1543
  value: { [o]: {
1544
1544
  value: n.value,
@@ -1547,36 +1547,35 @@ var z = {
1547
1547
  __n: o
1548
1548
  } },
1549
1549
  __i: a,
1550
- __v: _.state,
1550
+ __v: v.state,
1551
1551
  __n: `&--${a}`
1552
1552
  };
1553
1553
  }), e;
1554
1554
  }
1555
1555
  }
1556
- }, Ut = class extends H {
1556
+ }, Wt = class extends H {
1557
1557
  FILE_CACHE = "044-animate";
1558
1558
  init() {
1559
- this.items.findVariable(_.animate).forEach(({ name: e, value: t, item: n, parents: r }) => {
1560
- n[g.name] = this.getName(this.items.getReName(e, n), n, r), S(t) && y(t, (e, t) => {
1561
- e[g.variable] = _.animateFrame, e[g.name] = e?.[g.index] ?? t;
1559
+ this.items.findVariable(v.animate).forEach(({ name: e, value: t, item: n, parents: r }) => {
1560
+ n[_.name] = this.getName(this.items.getReName(e, n), n, r), w(t) && b(t, (e, t) => {
1561
+ e[_.variable] = v.animateFrame, e[_.name] = e?.[_.index] ?? t;
1562
1562
  });
1563
1563
  });
1564
1564
  }
1565
1565
  getName(e, t, n) {
1566
- return t?.[g.fullName] ? e : `${this.items.getParentsName(n).join("-")}-${e}`;
1566
+ return t?.[_.fullName] ? e : `${this.items.getParentsName(n).join("-")}-${e}`;
1567
1567
  }
1568
- }, Wt = [
1568
+ }, Gt = [
1569
1569
  {
1570
- index: _.var,
1570
+ index: v.var,
1571
1571
  value: []
1572
1572
  },
1573
1573
  {
1574
- index: _.property,
1574
+ index: v.property,
1575
1575
  value: [
1576
1576
  G,
1577
1577
  K,
1578
1578
  q,
1579
- rt,
1580
1579
  it,
1581
1580
  at,
1582
1581
  ot,
@@ -1595,50 +1594,51 @@ var z = {
1595
1594
  yt,
1596
1595
  bt,
1597
1596
  xt,
1598
- St
1597
+ St,
1598
+ Ct
1599
1599
  ]
1600
1600
  },
1601
1601
  {
1602
- index: _.virtual,
1603
- value: [Tt]
1602
+ index: v.virtual,
1603
+ value: [Et]
1604
1604
  },
1605
1605
  {
1606
- index: _.subclass,
1606
+ index: v.subclass,
1607
1607
  value: []
1608
1608
  },
1609
1609
  {
1610
- index: _.selector,
1611
- value: [wt]
1610
+ index: v.selector,
1611
+ value: [Tt]
1612
1612
  },
1613
1613
  {
1614
- index: _.state,
1614
+ index: v.state,
1615
1615
  value: []
1616
1616
  },
1617
1617
  {
1618
- index: `category-${v.theme}`,
1618
+ index: `category-${y.theme}`,
1619
1619
  value: []
1620
1620
  },
1621
1621
  {
1622
- index: `category-${v.class}`,
1622
+ index: `category-${y.class}`,
1623
1623
  value: []
1624
1624
  },
1625
1625
  {
1626
- index: _.classType,
1626
+ index: v.classType,
1627
1627
  value: []
1628
1628
  },
1629
1629
  {
1630
- index: _.component,
1630
+ index: v.component,
1631
1631
  value: []
1632
1632
  },
1633
1633
  {
1634
- index: _.scss,
1634
+ index: v.scss,
1635
1635
  value: []
1636
1636
  },
1637
1637
  {
1638
- index: _.other,
1638
+ index: v.other,
1639
1639
  value: []
1640
1640
  }
1641
- ], Gt = class extends H {
1641
+ ], Kt = class extends H {
1642
1642
  FILE_CACHE = "048-sort";
1643
1643
  init() {
1644
1644
  this.read();
@@ -1647,7 +1647,7 @@ var z = {
1647
1647
  let t = [];
1648
1648
  return this.items.eachMainOnly((e) => {
1649
1649
  let { name: n, value: r, item: i } = e, a = this.getKeys(i);
1650
- S(r) && (i.value = this.read(e)), i[g.sort] = a.index, t.push({
1650
+ w(r) && (i.value = this.read(e)), i[_.sort] = a.index, t.push({
1651
1651
  name: n,
1652
1652
  item: i,
1653
1653
  order: a.value
@@ -1655,16 +1655,16 @@ var z = {
1655
1655
  }, e), this.join(t);
1656
1656
  }
1657
1657
  getCategoryName(e) {
1658
- return `category-${e?.[g.category]}`;
1658
+ return `category-${e?.[_.category]}`;
1659
1659
  }
1660
1660
  getKeys(e) {
1661
- let t = this.getCategoryName(e), n = e?.[g.variable], r = Wt.findIndex(({ index: e }) => e === t || e === n);
1661
+ let t = this.getCategoryName(e), n = e?.[_.variable], r = Gt.findIndex(({ index: e }) => e === t || e === n);
1662
1662
  if (r !== -1) {
1663
- let t = Wt[r];
1663
+ let t = Gt[r];
1664
1664
  if (t) {
1665
- let n = t.value.findIndex((t) => t.indexOf(e?.[g.name] ?? "") !== -1), i = (r + 1) * 1e6;
1665
+ let n = t.value.findIndex((t) => t.indexOf(e?.[_.name] ?? "") !== -1), i = (r + 1) * 1e6;
1666
1666
  if (n !== -1) {
1667
- let r = t.value[n]?.findIndex((t) => t === e?.[g.name]) ?? -1;
1667
+ let r = t.value[n]?.findIndex((t) => t === e?.[_.name]) ?? -1;
1668
1668
  i += n * 1e3, i += r === -1 ? 999 : r;
1669
1669
  } else i += 999999;
1670
1670
  return {
@@ -1674,31 +1674,31 @@ var z = {
1674
1674
  }
1675
1675
  }
1676
1676
  return {
1677
- index: _.other,
1677
+ index: v.other,
1678
1678
  value: 99999999
1679
1679
  };
1680
1680
  }
1681
1681
  join(e) {
1682
1682
  let t = {};
1683
- return e.sort((e, t) => e.order - t.order), y(e, ({ name: e, item: n }) => {
1683
+ return e.sort((e, t) => e.order - t.order), b(e, ({ name: e, item: n }) => {
1684
1684
  t[e] = n;
1685
1685
  }), t;
1686
1686
  }
1687
- }, Kt = [_.var, _.property], qt = class extends H {
1687
+ }, qt = [v.var, v.property], Jt = class extends H {
1688
1688
  FILE_CACHE = "900-none";
1689
1689
  init() {
1690
- this.items.findVariable(Kt).forEach(({ name: e, value: t, parent: n, parents: r }) => {
1691
- n && !x(t) && S(t) && S(n.value) && (console.error("[None]", `{${b(r, "name").join(".")}.${e}}`), delete n.value[e]);
1690
+ this.items.findVariable(qt).forEach(({ name: e, value: t, parent: n, parents: r }) => {
1691
+ n && !S(t) && w(t) && w(n.value) && (console.error("[None]", `{${x(r, "name").join(".")}.${e}}`), delete n.value[e]);
1692
1692
  });
1693
1693
  }
1694
- }, Jt = class extends H {
1694
+ }, Yt = class extends H {
1695
1695
  FILE_CACHE = "910-duplicate";
1696
1696
  init() {
1697
1697
  let e = this.initList(), t = this.initDuplicate(e);
1698
- y(t, (e) => {
1698
+ b(t, (e) => {
1699
1699
  let t = this.getName(e.properties);
1700
1700
  Object.values(e.properties).forEach((e) => {
1701
- e.property.item[g.duplicate] = t;
1701
+ e.property.item[_.duplicate] = t;
1702
1702
  });
1703
1703
  });
1704
1704
  }
@@ -1713,11 +1713,11 @@ var z = {
1713
1713
  e.forEach((e) => {
1714
1714
  r.indexOf(e) === -1 && r.push(e);
1715
1715
  });
1716
- }), E(r.join("-"));
1716
+ }), O(r.join("-"));
1717
1717
  }
1718
1718
  findDuplicate(e, t) {
1719
1719
  let n = {};
1720
- return y(e, (e, r) => {
1720
+ return b(e, (e, r) => {
1721
1721
  let { value: i } = e;
1722
1722
  i === t && (n[r] = e);
1723
1723
  }), n;
@@ -1725,8 +1725,8 @@ var z = {
1725
1725
  initList() {
1726
1726
  let e = {}, n = t.getSeparator();
1727
1727
  return this.items.each((t) => {
1728
- if (t?.design && t?.component && S(t.value) && Object.keys(t.value).length >= 5) {
1729
- let r = b(t.parents, "name").join(n);
1728
+ if (t?.design && t?.component && w(t.value) && Object.keys(t.value).length >= 5) {
1729
+ let r = x(t.parents, "name").join(n);
1730
1730
  e[`${r}${n}${t.name}`] = {
1731
1731
  value: `${t.design}::${t.component}::${JSON.stringify(t.value)}`,
1732
1732
  property: t
@@ -1736,7 +1736,7 @@ var z = {
1736
1736
  }
1737
1737
  initDuplicate(e) {
1738
1738
  let t = [], n = [];
1739
- return y(e, ({ value: r }, i) => {
1739
+ return b(e, ({ value: r }, i) => {
1740
1740
  if (t.indexOf(i) === -1) {
1741
1741
  let i = this.findDuplicate(e, r), a = Object.keys(i);
1742
1742
  a.length > 1 && n.push({
@@ -1746,26 +1746,26 @@ var z = {
1746
1746
  }
1747
1747
  }), n;
1748
1748
  }
1749
- }, Yt = class {
1749
+ }, Xt = class {
1750
1750
  items;
1751
1751
  constructor(e) {
1752
1752
  this.items = e;
1753
1753
  }
1754
1754
  getShade() {
1755
- return y(this.items.findCategory(v.shade), ({ design: e, value: t }) => {
1756
- if (S(t)) return {
1755
+ return b(this.items.findCategory(y.shade), ({ design: e, value: t }) => {
1756
+ if (w(t)) return {
1757
1757
  design: e,
1758
- value: b(t, "value")
1758
+ value: x(t, "value")
1759
1759
  };
1760
1760
  });
1761
1761
  }
1762
1762
  getUsed() {
1763
1763
  let e = this.getList(), t = [];
1764
1764
  return this.items.each(({ design: n, component: r, value: i, item: a, parents: o }) => {
1765
- if (r && typeof i == "string" && a?.[g.variable] === _.var && a?.[g.category] !== v.color && a?.[g.name]) {
1765
+ if (r && typeof i == "string" && a?.[_.variable] === v.var && a?.[_.category] !== y.color && a?.[_.name]) {
1766
1766
  let s = this.getFocusUsed(e, n, r, i);
1767
1767
  if (s) {
1768
- let e = a[g.name], r = t.find((t) => t.name === e), i = o.find((e) => e.item[g.category] === "theme")?.name || "basic", c = `--${n}-palette-${E(`${i}-${s.match(/\.([^.{}]+)}/)?.[1]}`)}`;
1768
+ let e = a[_.name], r = t.find((t) => t.name === e), i = o.find((e) => e.item[_.category] === "theme")?.name || "basic", c = `--${n}-palette-${O(`${i}-${s.match(/\.([^.{}]+)}/)?.[1]}`)}`;
1769
1769
  r ? r.value.push(c) : t.push({
1770
1770
  name: e,
1771
1771
  value: [c]
@@ -1781,9 +1781,9 @@ var z = {
1781
1781
  if (a && a.design === t && typeof a.component == "string" && typeof a.value == "string") return this.getFocusUsed(e, a.design, a.component, a.value);
1782
1782
  }
1783
1783
  getList() {
1784
- return y(this.items.findCategory(v.color), ({ value: e }) => e);
1784
+ return b(this.items.findCategory(y.color), ({ value: e }) => e);
1785
1785
  }
1786
- }, Xt = "setDesignsDesigns", Zt = "setDesignsRoot", Qt = "setDesignsMedia", $t = "setDesignsClasses", en = "setDesignsPalette", tn = "setDesignShade", nn = "setDesignsProperties", rn = class {
1786
+ }, Zt = "setDesignsDesigns", Qt = "setDesignsRoot", $t = "setDesignsMedia", en = "setDesignsClasses", tn = "setDesignsPalette", nn = "setDesignShade", rn = "setDesignsProperties", an = class {
1787
1787
  items;
1788
1788
  constructor(e) {
1789
1789
  this.items = e;
@@ -1793,47 +1793,47 @@ var z = {
1793
1793
  return e += `${this.getDesigns()}\r\n`, e += `${this.getRoot()}\r\n`, e += `${this.getMedia()}\r\n`, e += `${this.getClasses()}\r\n`, e += `${this.getPalette()}\r\n`, e += `${this.getShade()}\r\n`, e += `${this.getProperties()}\r\n`, e;
1794
1794
  }
1795
1795
  getDesigns() {
1796
- let e = y(this.items.getDesigns(), (e) => `\r\n '${e}',`);
1797
- return this.getPropertiesValue(Xt, e.join(""));
1796
+ let e = b(this.items.getDesigns(), (e) => `\r\n '${e}',`);
1797
+ return this.getPropertiesValue(Zt, e.join(""));
1798
1798
  }
1799
1799
  getRoot() {
1800
- return this.getPropertiesValue(Zt, this.getByCategory(v.root));
1800
+ return this.getPropertiesValue(Qt, this.getByCategory(y.root));
1801
1801
  }
1802
1802
  getMedia() {
1803
1803
  let e = "";
1804
- return y(this.items.getMedia(), (t, n) => {
1805
- S(t) && y(t, (t, r) => {
1804
+ return b(this.items.getMedia(), (t, n) => {
1805
+ w(t) && b(t, (t, r) => {
1806
1806
  e += `\r\n '${n}-${r}': ${this.getValueItem(t)},`;
1807
1807
  });
1808
- }), this.getPropertiesValue(Qt, e);
1808
+ }), this.getPropertiesValue($t, e);
1809
1809
  }
1810
1810
  getClasses() {
1811
- return this.getPropertiesValue($t, this.getByCategory(["class", "theme"]));
1811
+ return this.getPropertiesValue(en, this.getByCategory(["class", "theme"]));
1812
1812
  }
1813
1813
  getPalette() {
1814
1814
  let e = "";
1815
- return new Yt(this.items).getUsed().forEach(({ name: t, value: n }) => {
1815
+ return new Xt(this.items).getUsed().forEach(({ name: t, value: n }) => {
1816
1816
  e += `\r\n '${t}': ('${n.join("', '")}'),`;
1817
- }), this.getPropertiesValue(en, e);
1817
+ }), this.getPropertiesValue(tn, e);
1818
1818
  }
1819
1819
  getShade() {
1820
1820
  let e = "";
1821
- return new Yt(this.items).getShade().forEach(({ design: t, value: n }) => {
1821
+ return new Xt(this.items).getShade().forEach(({ design: t, value: n }) => {
1822
1822
  e += `\r\n '${t}': (${n.join(",")}),`;
1823
- }), this.getPropertiesValue(tn, e);
1823
+ }), this.getPropertiesValue(nn, e);
1824
1824
  }
1825
1825
  getProperties() {
1826
- return this.getPropertiesValue(nn, this.to());
1826
+ return this.getPropertiesValue(rn, this.to());
1827
1827
  }
1828
1828
  getByCategory(e) {
1829
1829
  let t = [];
1830
1830
  return this.items.findCategory(e).forEach((e) => t.push(`\r\n '${e.index}',`)), t.join("");
1831
1831
  }
1832
1832
  getValue(e, t) {
1833
- return S(e.value) ? `value: (${this.to(e.value, `${t} `)}\r\n${t} ),` : Array.isArray(e.value) ? `value: (${e.value.join(", ")}),` : `value: ${this.getValueItem(e)},`;
1833
+ return w(e.value) ? `value: (${this.to(e.value, `${t} `)}\r\n${t} ),` : Array.isArray(e.value) ? `value: (${e.value.join(", ")}),` : `value: ${this.getValueItem(e)},`;
1834
1834
  }
1835
1835
  getValueItem(e) {
1836
- let t = e?.[g.css] || e.value;
1836
+ let t = e?.[_.css] || e.value;
1837
1837
  return typeof t == "string" ? t.match(/^#[a-zA-Z0-9]+$/) || t.match(/^([0-9]+|([0-9]+\.[0-9]+))(px|em|rem|vw|vh|%|)$/) ? `${t}` : `'${t}'` : "";
1838
1838
  }
1839
1839
  getPropertiesValue(e, t) {
@@ -1841,48 +1841,48 @@ var z = {
1841
1841
  }
1842
1842
  to(e = this.items.get(), t = " ") {
1843
1843
  let n = "";
1844
- return y(e, (e, r) => {
1845
- e?.value && e?.[g.variable] !== "none" && (n += `\r\n${t}'${r}':(`, n += `\r\n${t} index: '${r}',`, n += `\r\n${t} name: '${e?.[g.name] || r}',`, n += `\r\n${t} type: '${e?.[g.variable]}',`, (e?.[g.category] || e?.[g.variable] !== _.component) && (n += `\r\n${t} ${this.getValue(e, t)}`), e?.[g.modification] === !1 && (n += `\r\n${t} modification: false,`), e?.[g.varKey] === !0 && (n += `\r\n${t} var: true,`), n += `\r\n${t}),`);
1844
+ return b(e, (e, r) => {
1845
+ e?.value && e?.[_.variable] !== "none" && (n += `\r\n${t}'${r}':(`, n += `\r\n${t} index: '${r}',`, n += `\r\n${t} name: '${e?.[_.name] || r}',`, n += `\r\n${t} type: '${e?.[_.variable]}',`, (e?.[_.category] || e?.[_.variable] !== v.component) && (n += `\r\n${t} ${this.getValue(e, t)}`), e?.[_.modification] === !1 && (n += `\r\n${t} modification: false,`), e?.[_.varKey] === !0 && (n += `\r\n${t} var: true,`), n += `\r\n${t}),`);
1846
1846
  }), n;
1847
1847
  }
1848
- }, an = "properties", on = class {
1848
+ }, on = "properties", sn = class {
1849
1849
  designs;
1850
1850
  items;
1851
1851
  constructor() {
1852
- this.designs = N.getDesigns(), this.items = new P(this.read());
1852
+ this.designs = P.getDesigns(), this.items = new F(this.read());
1853
1853
  }
1854
1854
  get() {
1855
1855
  return this.items;
1856
1856
  }
1857
1857
  getScss() {
1858
- return M.get([], this.getPathName(), () => {
1859
- let e = new rn(this.items).get();
1858
+ return N.get([], this.getPathName(), () => {
1859
+ let e = new an(this.items).get();
1860
1860
  return console.info("[Scss]", "init"), e;
1861
1861
  }, "scss");
1862
1862
  }
1863
1863
  read() {
1864
- return M.get([], this.getPathName(), () => {
1864
+ return N.get([], this.getPathName(), () => {
1865
1865
  console.info("[Properties]", "start");
1866
1866
  let e = this.readFiles();
1867
- return this.toBasic(e), new kt(e).to(), new jt(e).to(), new Mt(e).to(), new Nt(e).to(), new Ft(e).to(), new It(e).to(), new Lt(e).to(), new Rt(e).to(), new zt(e).to(), new Bt(e).to(), new Vt(e).to(), new Ht(e).to(), new Ut(e).to(), new Gt(e).to(), new qt(e).to(), new Jt(e).to(), console.info("[Properties]", "init"), e.get();
1867
+ return this.toBasic(e), new At(e).to(), new Mt(e).to(), new Nt(e).to(), new Pt(e).to(), new It(e).to(), new Lt(e).to(), new Rt(e).to(), new zt(e).to(), new Bt(e).to(), new Vt(e).to(), new Ht(e).to(), new Ut(e).to(), new Wt(e).to(), new Kt(e).to(), new Jt(e).to(), new Yt(e).to(), console.info("[Properties]", "init"), e.get();
1868
1868
  });
1869
1869
  }
1870
1870
  getPathName() {
1871
- return `${this.designs.join("-")}-${an}`;
1871
+ return `${this.designs.join("-")}-${on}`;
1872
1872
  }
1873
1873
  readFiles() {
1874
1874
  let e = new je(this.designs), t = new Fe(e).get();
1875
- return new P(w(t, new Ue(e).getBySettings(t)));
1875
+ return new F(E(t, new We(e).getBySettings(t)));
1876
1876
  }
1877
1877
  toBasic(e) {
1878
- new We(e).to(), new Ke(e).to(), new Xe(e).to(), new Ze(e).to(), new et(e).to(), new nt(e).to(), new tt(e).to(), new Et(e).to();
1878
+ new Ge(e).to(), new qe(e).to(), new Ze(e).to(), new Qe(e).to(), new tt(e).to(), new rt(e).to(), new nt(e).to(), new Dt(e).to();
1879
1879
  }
1880
1880
  }, J = class {
1881
1881
  component;
1882
1882
  properties;
1883
1883
  items;
1884
1884
  constructor(e) {
1885
- this.component = e, this.properties = new on(), this.items = this.properties.get().getInfo(this.getLink());
1885
+ this.component = e, this.properties = new sn(), this.items = this.properties.get().getInfo(this.getLink());
1886
1886
  }
1887
1887
  get() {
1888
1888
  return this.data;
@@ -1890,7 +1890,7 @@ var z = {
1890
1890
  getLink() {
1891
1891
  return `{${t.getDesignName()}.${this.component}}`;
1892
1892
  }
1893
- }, sn = class extends J {
1893
+ }, cn = class extends J {
1894
1894
  states;
1895
1895
  data = {};
1896
1896
  constructor(e) {
@@ -1900,11 +1900,11 @@ var z = {
1900
1900
  return this.states;
1901
1901
  }
1902
1902
  isProps(e) {
1903
- let t = e?.[g.prop];
1904
- return t !== !1 && (x(t) || e?.[g.variable] === _.state || de.indexOf(e?.[g.name]) !== -1);
1903
+ let t = e?.[_.prop];
1904
+ return t !== !1 && (S(t) || e?.[_.variable] === v.state || ue.indexOf(e?.[_.name]) !== -1);
1905
1905
  }
1906
1906
  isLinkClass(e) {
1907
- return typeof e.value == "string" && e?.[g.variable] === _.linkClass;
1907
+ return typeof e.value == "string" && e?.[_.variable] === v.linkClass;
1908
1908
  }
1909
1909
  getClass(e) {
1910
1910
  return this.properties.get().getKeys(e).join(".").replace(".", "-").replace(/\./g, "--");
@@ -1914,20 +1914,20 @@ var z = {
1914
1914
  }
1915
1915
  makeState(e) {
1916
1916
  let t = [];
1917
- return x(e) && S(e) && y(e, (e, n) => {
1917
+ return S(e) && w(e) && b(e, (e, n) => {
1918
1918
  if (this.isProps(e) && t.push({
1919
1919
  index: n,
1920
- type: _.property,
1920
+ type: v.property,
1921
1921
  item: e,
1922
1922
  className: void 0,
1923
1923
  state: this.makeState(e.value)
1924
1924
  }), this.isLinkClass(e)) {
1925
- let r = e?.[g.css] || e.value;
1925
+ let r = e?.[_.css] || e.value;
1926
1926
  if (typeof r == "string") {
1927
1927
  let e = this.getClassState(r);
1928
1928
  e && t.push({
1929
1929
  index: n,
1930
- type: _.linkClass,
1930
+ type: v.linkClass,
1931
1931
  item: e,
1932
1932
  className: this.getClass(r),
1933
1933
  state: this.makeState(e.value)
@@ -1946,9 +1946,9 @@ var z = {
1946
1946
  value: [],
1947
1947
  valueAll: [],
1948
1948
  state: [],
1949
- style: !!n?.[g.style],
1950
- default: n?.[g.default],
1951
- category: n?.[g.category]
1949
+ style: !!n?.[_.style],
1950
+ default: n?.[_.default],
1951
+ category: n?.[_.category]
1952
1952
  };
1953
1953
  }), this;
1954
1954
  }
@@ -1966,8 +1966,8 @@ var z = {
1966
1966
  }), this;
1967
1967
  }
1968
1968
  makeValueUnique() {
1969
- return y(this.data, (e) => {
1970
- e.valueAll = Se(e.valueAll), x(e.value) || (e.value = [!0]), x(e.valueAll) || (e.valueAll = [!0]);
1969
+ return b(this.data, (e) => {
1970
+ e.valueAll = xe(e.valueAll), S(e.value) || (e.value = [!0]), S(e.valueAll) || (e.valueAll = [!0]);
1971
1971
  }), this;
1972
1972
  }
1973
1973
  makeValueState(e = this.states, t) {
@@ -1987,42 +1987,42 @@ var z = {
1987
1987
  }), this;
1988
1988
  }
1989
1989
  toName(e, t) {
1990
- let n = e?.[g.prop];
1991
- return E(typeof n == "string" && n || e?.[g.rename] || e?.[g.index] || t);
1990
+ let n = e?.[_.prop];
1991
+ return O(typeof n == "string" && n || e?.[_.rename] || e?.[_.index] || t);
1992
1992
  }
1993
1993
  toValue(e) {
1994
- if (x(e) && S(e)) {
1994
+ if (S(e) && w(e)) {
1995
1995
  let t = [], n = !1;
1996
- return y(e, (e, r) => {
1997
- (!(r in this.data) || e?.[g.prop]) && (e?.[g.variable] === _.state ? t.push(r) : n = !0);
1996
+ return b(e, (e, r) => {
1997
+ (!(r in this.data) || e?.[_.prop]) && (e?.[_.variable] === v.state ? t.push(r) : n = !0);
1998
1998
  }), n && t.push(!0), t;
1999
1999
  }
2000
2000
  return [!0];
2001
2001
  }
2002
- }, cn = class extends J {
2002
+ }, ln = class extends J {
2003
2003
  data = [];
2004
2004
  constructor(e) {
2005
2005
  super(e), this.data = this.make(this.items?.value);
2006
2006
  }
2007
2007
  make(e, t = []) {
2008
2008
  let n = [];
2009
- return x(e) && S(e) && y(e, (e) => {
2009
+ return S(e) && w(e) && b(e, (e) => {
2010
2010
  if (this.isClasses(e)) {
2011
2011
  let r = this.getNames(e, t);
2012
2012
  n.push({
2013
- index: E(r.join("-")),
2014
- full: e?.[g.fullName] ?? !1,
2013
+ index: O(r.join("-")),
2014
+ full: e?.[_.fullName] ?? !1,
2015
2015
  className: r.join("__")
2016
2016
  }, ...this.make(e?.value, r));
2017
2017
  }
2018
2018
  }), n;
2019
2019
  }
2020
2020
  isClasses(e) {
2021
- return !!(e?.[g.variable] === _.subclass || e?.[g.subclass]);
2021
+ return !!(e?.[_.variable] === v.subclass || e?.[_.subclass]);
2022
2022
  }
2023
2023
  getNames(e, t) {
2024
- let n = e?.[g.nameIndex] ?? e?.[g.index] ?? "";
2025
- return e?.[g.fullName] ? [n] : [...t, n];
2024
+ let n = e?.[_.nameIndex] ?? e?.[_.index] ?? "";
2025
+ return e?.[_.fullName] ? [n] : [...t, n];
2026
2026
  }
2027
2027
  }, Y = " ", X = class {
2028
2028
  static getDir() {
@@ -2032,7 +2032,7 @@ var z = {
2032
2032
  return Y;
2033
2033
  }
2034
2034
  static addSpace(e) {
2035
- return xe(Y, e);
2035
+ return be(Y, e);
2036
2036
  }
2037
2037
  static addImport(e) {
2038
2038
  return `@import "${e}";`;
@@ -2068,19 +2068,19 @@ var z = {
2068
2068
  return this.addSpace(this.treatment());
2069
2069
  }
2070
2070
  getName() {
2071
- return this.item?.[g.name] ?? "";
2071
+ return this.item?.[_.name] ?? "";
2072
2072
  }
2073
2073
  getValue() {
2074
- let e = this.item?.[g.css];
2074
+ let e = this.item?.[_.css];
2075
2075
  if (e) return e.replace(/\\#/g, "#");
2076
2076
  }
2077
2077
  addSpace(e) {
2078
- return y(e, (e) => `${this.space}${e}`);
2078
+ return b(e, (e) => `${this.space}${e}`);
2079
2079
  }
2080
2080
  addEmptyString() {
2081
2081
  return this.first ? [""] : [];
2082
2082
  }
2083
- }, ln = class extends Z {
2083
+ }, un = class extends Z {
2084
2084
  treatment() {
2085
2085
  return this.content().length > 0 ? [
2086
2086
  ...this.addEmptyString(),
@@ -2089,7 +2089,7 @@ var z = {
2089
2089
  "}"
2090
2090
  ] : [];
2091
2091
  }
2092
- }, un = class extends Z {
2092
+ }, dn = class extends Z {
2093
2093
  treatment() {
2094
2094
  return [
2095
2095
  ...this.addEmptyString(),
@@ -2098,44 +2098,44 @@ var z = {
2098
2098
  "}"
2099
2099
  ];
2100
2100
  }
2101
- }, dn = class extends Z {
2101
+ }, fn = class extends Z {
2102
2102
  treatment() {
2103
2103
  let { value: e } = this.property;
2104
- if (S(e)) {
2104
+ if (w(e)) {
2105
2105
  let t = [];
2106
- return new P(e).each(({ item: e }) => {
2107
- e?.[g.variable] === _.var && e?.[g.css] && (t.push(this.getCode(e)), e?.[g.cssColorOpacity] && t.push(this.getCodeColorOpacity(e)));
2106
+ return new F(e).each(({ item: e }) => {
2107
+ e?.[_.variable] === v.var && e?.[_.css] && (t.push(this.getCode(e)), e?.[_.cssColorOpacity] && t.push(this.getCodeColorOpacity(e)));
2108
2108
  }), t;
2109
2109
  }
2110
2110
  let { item: t } = this.property;
2111
- return t?.[g.cssColorOpacity] ? [this.getCode(), this.getCodeColorOpacity()] : [this.getCode()];
2111
+ return t?.[_.cssColorOpacity] ? [this.getCode(), this.getCodeColorOpacity()] : [this.getCode()];
2112
2112
  }
2113
2113
  getCode(e = this.item) {
2114
- let t = e?.[g.css];
2115
- return t = typeof t != "string" || t === "" ? "unset" : L.isColor(t) ? `#{ui.toColorRbg(${t})}` : t.replace(/\\#/g, "#"), `${e?.[g.name]}: ${X.toFunctionCss(t)};`;
2114
+ let t = e?.[_.css];
2115
+ return t = typeof t != "string" || t === "" ? "unset" : R.isColor(t) ? `#{ui.toColorRbg(${t})}` : t.replace(/\\#/g, "#"), `${e?.[_.name]}: ${X.toFunctionCss(t)};`;
2116
2116
  }
2117
2117
  getCodeColorOpacity(e = this.item) {
2118
- let t = e?.[g.css], n = e?.[g.cssColorOpacity];
2119
- return n && typeof n != "boolean" ? `${e?.[g.name]}-opacity: ${n};` : `${e?.[g.name]}-opacity: #{ui.toColorOpacity(${t})};`;
2118
+ let t = e?.[_.css], n = e?.[_.cssColorOpacity];
2119
+ return n && typeof n != "boolean" ? `${e?.[_.name]}-opacity: ${n};` : `${e?.[_.name]}-opacity: #{ui.toColorOpacity(${t})};`;
2120
2120
  }
2121
- }, fn = /* @__PURE__ */ "flex-position.flex-dynamic.justify-content.inset.horizon.vertically.left.right.absolute.absolute-top.absolute-bottom.absolute-after.padding-x.padding-y.padding-left.padding-right.margin-x.margin-y.margin-left.margin-right.width.height.width-basis.height-basis.aspect-ratio.aspect-ratio-width.aspect-ratio-height.squared.circle.font-size.line-height.text-align.text-overflow.clamp.text-select-none.text-case.paragraph-spacing.palette.palette-var.palette-color.palette-stroke.palette-background.palette-fill.palette-gradient.palette-border.color.color-opacity.stroke.stroke-opacity.background-color.background-opacity.background-size.fill.fill-opacity.gradient.gradient-opacity.border-color.border-opacity.outline-color.outline-opacity.translate-x.translate-y.scale.rotate".split("."), pn = class extends Z {
2121
+ }, pn = /* @__PURE__ */ "flex-position.flex-dynamic.justify-content.inset.horizon.vertically.left.right.absolute.absolute-top.absolute-bottom.absolute-after.padding-x.padding-y.padding-left.padding-right.margin-x.margin-y.margin-left.margin-right.width.height.width-basis.height-basis.aspect-ratio.aspect-ratio-width.aspect-ratio-height.squared.circle.font-size.line-height.text-align.text-overflow.clamp.text-select-none.text-case.paragraph-spacing.palette.palette-var.palette-color.palette-stroke.palette-background.palette-fill.palette-gradient.palette-border.color.color-opacity.stroke.stroke-opacity.background-color.background-opacity.background-size.fill.fill-opacity.gradient.gradient-opacity.border-color.border-opacity.outline-color.outline-opacity.translate-x.translate-y.scale.rotate".split("."), mn = class extends Z {
2122
2122
  treatment() {
2123
2123
  let e = [];
2124
- return this.property?.previous && this.property.previous?.[g.sort] !== this.item?.[g.sort] && e.push(""), this.item?.[g.varKey] && e.push(this.getVar()), e.push(this.getPropertyValue()), e;
2124
+ return this.property?.previous && this.property.previous?.[_.sort] !== this.item?.[_.sort] && e.push(""), this.item?.[_.varKey] && e.push(this.getVar()), e.push(this.getPropertyValue()), e;
2125
2125
  }
2126
2126
  getVar() {
2127
2127
  let { design: e, component: t } = this.property, n = this.getName(), r = this.getValue();
2128
- return `--${N.getComponentName(e, t)}-${n}: ${r};`;
2128
+ return `--${P.getComponentName(e, t)}-${n}: ${r};`;
2129
2129
  }
2130
2130
  getPropertyValue() {
2131
2131
  let e = this.getName(), t = this.getValue() ?? "unset";
2132
- if (this.item?.[g.modification] !== !1 && fn.indexOf(e) !== -1) return `@include ui.${E(e)}(#{${t}});${this.initAuxiliaryValue()}`;
2132
+ if (this.item?.[_.modification] !== !1 && pn.indexOf(e) !== -1) return `@include ui.${O(e)}(#{${t}});${this.initAuxiliaryValue()}`;
2133
2133
  let n = `${e}: ${X.toFunctionCss(t)}`;
2134
2134
  return e === "font-family" ? `${n}, sans-serif;` : `${n};`;
2135
2135
  }
2136
2136
  initAuxiliaryValue() {
2137
2137
  let e = this.getName(), t = this.property.parent?.value;
2138
- if (S(t)) switch (e) {
2138
+ if (w(t)) switch (e) {
2139
2139
  case "color-opacity":
2140
2140
  if (!("color" in t)) return " @include ui.color('init');";
2141
2141
  break;
@@ -2149,7 +2149,7 @@ var z = {
2149
2149
  }
2150
2150
  return "";
2151
2151
  }
2152
- }, mn = class extends Z {
2152
+ }, hn = class extends Z {
2153
2153
  treatment() {
2154
2154
  return this.content().length > 0 ? [
2155
2155
  ...this.addEmptyString(),
@@ -2160,26 +2160,26 @@ var z = {
2160
2160
  }
2161
2161
  getClassName() {
2162
2162
  let { design: e, component: t } = this.property;
2163
- return `'${N.getClassName(e, t)}'`;
2163
+ return `'${P.getClassName(e, t)}'`;
2164
2164
  }
2165
2165
  getSelector() {
2166
- let e = this.getName(), t = this.getClassName(), n = t === `'.${this.property.parent?.[g.name]}'`;
2166
+ let e = this.getName(), t = this.getClassName(), n = t === `'.${this.property.parent?.[_.name]}'`;
2167
2167
  switch (e) {
2168
2168
  case "hover":
2169
2169
  case "active":
2170
2170
  case "focus":
2171
2171
  case "disabled":
2172
2172
  case "readonly": return `@include ui.${e}${n ? "" : `(${t})`}`;
2173
- default: return `&:${O(e)}`;
2173
+ default: return `&:${A(e)}`;
2174
2174
  }
2175
2175
  }
2176
- }, hn = class extends Z {
2176
+ }, gn = class extends Z {
2177
2177
  contentType = ["after", "before"];
2178
2178
  treatment() {
2179
2179
  let e = this.getName(), t = [...this.addEmptyString(), `&::${e} {`];
2180
2180
  return this.contentType.indexOf(e) !== -1 && t.push(`${X.getSpace()}content: ' ';`), t.push(...this.content()), t.push("}"), t;
2181
2181
  }
2182
- }, gn = class extends Z {
2182
+ }, _n = class extends Z {
2183
2183
  treatment() {
2184
2184
  return [
2185
2185
  ...this.addEmptyString(),
@@ -2188,7 +2188,7 @@ var z = {
2188
2188
  "}"
2189
2189
  ];
2190
2190
  }
2191
- }, _n = class extends Z {
2191
+ }, vn = class extends Z {
2192
2192
  treatment() {
2193
2193
  return [
2194
2194
  ...this.addEmptyString(),
@@ -2197,7 +2197,7 @@ var z = {
2197
2197
  "}"
2198
2198
  ];
2199
2199
  }
2200
- }, vn = class extends Z {
2200
+ }, yn = class extends Z {
2201
2201
  treatment() {
2202
2202
  return [
2203
2203
  ...this.addEmptyString(),
@@ -2206,7 +2206,7 @@ var z = {
2206
2206
  "}"
2207
2207
  ];
2208
2208
  }
2209
- }, yn = class extends Z {
2209
+ }, bn = class extends Z {
2210
2210
  treatment() {
2211
2211
  return [
2212
2212
  ...this.addEmptyString(),
@@ -2215,11 +2215,11 @@ var z = {
2215
2215
  "}"
2216
2216
  ];
2217
2217
  }
2218
- }, bn = ["selector", "virtual"], xn = [
2218
+ }, xn = ["selector", "virtual"], Sn = [
2219
2219
  "var",
2220
2220
  "property",
2221
2221
  "scss"
2222
- ], Sn = class e {
2222
+ ], Cn = class e {
2223
2223
  space;
2224
2224
  property;
2225
2225
  parent;
@@ -2230,7 +2230,7 @@ var z = {
2230
2230
  this.space = e, this.property = t, this.parent = n, this.item = t.item;
2231
2231
  }
2232
2232
  make() {
2233
- return new P({}).eachMainOnly((t) => {
2233
+ return new F({}).eachMainOnly((t) => {
2234
2234
  let { item: n } = t;
2235
2235
  if (this.isAuxiliary() && this.isAuxiliary(n) && this.isNotBasic(n)) {
2236
2236
  let n = new e(X.increaseSpace(this.space), t, this.item).make();
@@ -2242,10 +2242,10 @@ var z = {
2242
2242
  }, this.property), this.data;
2243
2243
  }
2244
2244
  isAuxiliary(e = this.parent) {
2245
- return !!(e && bn.indexOf(e?.[g.variable]) !== -1);
2245
+ return !!(e && xn.indexOf(e?.[_.variable]) !== -1);
2246
2246
  }
2247
2247
  isNotBasic(e) {
2248
- return !(e && xn.indexOf(e?.[g.variable]) !== -1);
2248
+ return !(e && Sn.indexOf(e?.[_.variable]) !== -1);
2249
2249
  }
2250
2250
  getContent(t) {
2251
2251
  return () => new e(this.space, t, this.item).make();
@@ -2260,26 +2260,26 @@ var z = {
2260
2260
  }
2261
2261
  toByType(e) {
2262
2262
  let t = this.getArgumentsForTo(e);
2263
- switch (e.item?.[g.variable]) {
2264
- case _.var: return new dn(...t).make();
2265
- case _.property: return new pn(...t).make();
2266
- case _.selector: return new mn(...t).make();
2267
- case _.virtual: return new hn(...t).make();
2268
- case _.media:
2269
- case _.mediaMax: return new gn(...t).make();
2270
- case _.container:
2271
- case _.containerMax: return new _n(...t).make();
2272
- case _.animate: return new vn(...t).make();
2273
- case _.root: return new yn(...t).make();
2274
- case _.state:
2275
- case _.subclass:
2276
- case _.classType:
2277
- case _.scss: return new ln(...t).make();
2278
- case _.animateFrame: return new un(...t).make();
2263
+ switch (e.item?.[_.variable]) {
2264
+ case v.var: return new fn(...t).make();
2265
+ case v.property: return new mn(...t).make();
2266
+ case v.selector: return new hn(...t).make();
2267
+ case v.virtual: return new gn(...t).make();
2268
+ case v.media:
2269
+ case v.mediaMax: return new _n(...t).make();
2270
+ case v.container:
2271
+ case v.containerMax: return new vn(...t).make();
2272
+ case v.animate: return new yn(...t).make();
2273
+ case v.root: return new bn(...t).make();
2274
+ case v.state:
2275
+ case v.subclass:
2276
+ case v.classType:
2277
+ case v.scss: return new un(...t).make();
2278
+ case v.animateFrame: return new dn(...t).make();
2279
2279
  default: return [];
2280
2280
  }
2281
2281
  }
2282
- }, Cn = class extends J {
2282
+ }, wn = class extends J {
2283
2283
  data;
2284
2284
  constructor(e) {
2285
2285
  super(e), this.data = this.make();
@@ -2287,17 +2287,17 @@ var z = {
2287
2287
  make() {
2288
2288
  return this.items ? [
2289
2289
  "& {",
2290
- ...new Sn(" ", this.items).make(),
2290
+ ...new Cn(" ", this.items).make(),
2291
2291
  "}"
2292
2292
  ] : [];
2293
2293
  }
2294
- }, wn = class {
2294
+ }, Tn = class {
2295
2295
  component;
2296
2296
  items;
2297
2297
  itemsClasses;
2298
2298
  itemsStyles;
2299
2299
  constructor(e) {
2300
- this.component = E(e ?? "component");
2300
+ this.component = O(e ?? "component");
2301
2301
  }
2302
2302
  get() {
2303
2303
  return this.items === void 0 && (this.items = this.make()), this.items;
@@ -2312,42 +2312,42 @@ var z = {
2312
2312
  return t.getDesignName();
2313
2313
  }
2314
2314
  getDesignFirst() {
2315
- return D(t.getDesignName());
2315
+ return k(t.getDesignName());
2316
2316
  }
2317
2317
  getComponentName() {
2318
2318
  return this.component;
2319
2319
  }
2320
2320
  getComponentNameFirst() {
2321
- return D(this.component);
2321
+ return k(this.component);
2322
2322
  }
2323
2323
  getFullComponentName() {
2324
2324
  return `${this.getDesignFirst()}${this.getComponentNameFirst()}`;
2325
2325
  }
2326
2326
  getFileName() {
2327
- return D(this.getPathName());
2327
+ return k(this.getPathName());
2328
2328
  }
2329
2329
  getPathName() {
2330
2330
  return `${t.getDesignName()}-${this.component}`;
2331
2331
  }
2332
2332
  getPathClasses() {
2333
- return `${this.getPathName()}-${fe}`;
2333
+ return `${this.getPathName()}-${de}`;
2334
2334
  }
2335
2335
  make() {
2336
- return M.get([f], this.getPathName(), () => new sn(this.component).get());
2336
+ return N.get([f], this.getPathName(), () => new cn(this.component).get());
2337
2337
  }
2338
2338
  makeClasses() {
2339
- return M.get([f], this.getPathClasses(), () => new cn(this.component).get());
2339
+ return N.get([f], this.getPathClasses(), () => new ln(this.component).get());
2340
2340
  }
2341
2341
  makeStyles() {
2342
- return new Cn(this.component).get();
2342
+ return new wn(this.component).get();
2343
2343
  }
2344
- }, Tn = class {
2344
+ }, En = class {
2345
2345
  structure;
2346
2346
  sample;
2347
2347
  component;
2348
2348
  mark;
2349
2349
  constructor(e, t, n) {
2350
- this.structure = e, this.sample = n, this.mark = D(t), this.component = this.structure.getComponentNameFirst();
2350
+ this.structure = e, this.sample = n, this.mark = k(t), this.component = this.structure.getComponentNameFirst();
2351
2351
  }
2352
2352
  get() {
2353
2353
  return this.sample;
@@ -2356,7 +2356,7 @@ var z = {
2356
2356
  return "../../";
2357
2357
  }
2358
2358
  getNameFile(e) {
2359
- return e.replace(/\[project]/g, t.getProjectName()).replace(/\[design]/g, this.structure.getDesign()).replace(/\[Design]/g, D(this.structure.getDesign())).replace(/\[component]/g, this.structure.getComponentName()).replace(/DesignComponent/g, this.structure.getFileName()).replace(new RegExp(this.mark, "g"), this.component).replace(RegExp(`DefineSetupFn${this.component}`, "g"), "DefineSetupFnComponent");
2359
+ return e.replace(/\[project]/g, t.getProjectName()).replace(/\[design]/g, this.structure.getDesign()).replace(/\[Design]/g, k(this.structure.getDesign())).replace(/\[component]/g, this.structure.getComponentName()).replace(/DesignComponent/g, this.structure.getFileName()).replace(new RegExp(this.mark, "g"), this.component).replace(RegExp(`DefineSetupFn${this.component}`, "g"), "DefineSetupFnComponent");
2360
2360
  }
2361
2361
  replaceName() {
2362
2362
  return this.sample = this.getNameFile(this.sample), this;
@@ -2372,13 +2372,13 @@ var z = {
2372
2372
  }
2373
2373
  return this;
2374
2374
  }
2375
- replaceOnce(e = E(this.mark), t = !1) {
2375
+ replaceOnce(e = O(this.mark), t = !1) {
2376
2376
  let n = RegExp(`\\/\\/ :${e}\\.once ([^\r\n]+)([\r\n ]*)`, "g"), r = RegExp(`\\/\\* :${e}\\.once \\*\\/([\\S\\s]*?)\\/\\* :${e}\\.once\\.end \\*\\/([\r\n ]*)`, "g"), i = RegExp(`\\/\\* :${e}\\.once (.*?) \\*\\/([\r\n ]*)`, "g"), a = RegExp(`<!-- :${e}\\.once -->([\\S\\s]*?)<!-- :${e}\\.once\\.end -->([\r\n ]*)`, "g"), o = RegExp(`<!-- :${e}\\.once (.*?) -->([\r\n ]*)`, "g"), s = (...e) => typeof t == "function" ? `${t(e[1])}${e[2]}` : t ? "" : `${e[1]}${e[2]}`;
2377
2377
  return this.sample = this.sample.replace(n, s).replace(r, s).replace(i, s).replace(a, s).replace(o, s), this;
2378
2378
  }
2379
2379
  replaceType(e) {
2380
2380
  let t = "type", n = this.structure.get(), r = [];
2381
- return e && r.push(...this.getTypeForConstructor(e)), y(n, ({ name: n, valueAll: i, style: a }) => {
2381
+ return e && r.push(...this.getTypeForConstructor(e)), b(n, ({ name: n, valueAll: i, style: a }) => {
2382
2382
  let o = this.getPropTypeByValue(i, a);
2383
2383
  if (!this.initMarkAddValue(t, n, o) && !this.isNoMark(t, n)) {
2384
2384
  let t = !e && !o.match(/string|boolean/) && o.match(/'/) ? `${o}` : o;
@@ -2388,13 +2388,13 @@ var z = {
2388
2388
  }
2389
2389
  replaceDefault() {
2390
2390
  let e = "default", t = this.structure.get(), n = [];
2391
- return y(t, (t) => {
2391
+ return b(t, (t) => {
2392
2392
  t.default && !this.isNoMark(e, t.name) && n.push(`${t.name}: ${this.getDefault(t.default)}`);
2393
2393
  }), this.replaceMark(e, n, ",");
2394
2394
  }
2395
2395
  replaceProps() {
2396
2396
  let e = this.structure.get(), t = [], n = this.getIndexDefault();
2397
- return y(e, (e) => {
2397
+ return b(e, (e) => {
2398
2398
  if (!this.isNoMark("type", e.name)) {
2399
2399
  let r = this.getPropByValue(e.name, e.valueAll);
2400
2400
  e.default ? t.push(`${e.name}: {[space] type: ${r},[space] default: ${n}?.${e.name}[space]}`) : t.push(`${e.name}: ${r}`);
@@ -2403,7 +2403,7 @@ var z = {
2403
2403
  }
2404
2404
  replacePropsValues() {
2405
2405
  let e = this.structure.get(), t = [];
2406
- return y(e, (e) => {
2406
+ return b(e, (e) => {
2407
2407
  if (!this.isNoMark("type", e.name)) {
2408
2408
  let n = this.getPropValuesByValue(e.valueAll);
2409
2409
  n ? t.push(`${e.name}: [${n}]`) : e.valueAll?.indexOf("custom") !== -1 && t.push(`${e.name}: []`);
@@ -2412,7 +2412,7 @@ var z = {
2412
2412
  }
2413
2413
  replaceClasses(e = (e) => `${e.index}: string`, t = "") {
2414
2414
  let n = this.structure.getClasses(), r = [];
2415
- return y(n, (t) => r.push(e(t))), this.replaceMark("classes", r, t);
2415
+ return b(n, (t) => r.push(e(t))), this.replaceMark("classes", r, t);
2416
2416
  }
2417
2417
  replaceClassesValues() {
2418
2418
  let e = [`'${this.structure?.getPathName()}': true`, ...this.initClassesValues()];
@@ -2461,7 +2461,7 @@ var z = {
2461
2461
  return this.sample.match(/const ([a-zA-Z]*defaults[a-zA-Z]*)[ :]/)?.[1];
2462
2462
  }
2463
2463
  getTypeForConstructor(e) {
2464
- let t = b(this.structure.get(), "name"), n = [];
2464
+ let t = x(this.structure.get(), "name"), n = [];
2465
2465
  return e.match(/(?<=type[^{]+Props[^{]+{[^{}]+)(^[^\n{}/]+$)(?=[^{}]+^})/gim)?.forEach((e) => {
2466
2466
  let r = e.match(/[a-z0-9]+(?=[?:])/i)?.[0];
2467
2467
  r && t.indexOf(r) === -1 && n.push(`// [constructor] ${e.trim()}`);
@@ -2472,28 +2472,28 @@ var z = {
2472
2472
  }
2473
2473
  initClassesValues(e = this.structure.get(), t = this.structure?.getPathName() ?? "", n = []) {
2474
2474
  let r = [];
2475
- return y(e, (e) => {
2475
+ return b(e, (e) => {
2476
2476
  let { name: i, value: a, state: o } = e, s = `props.${i}`, c = "className" in e && e?.className || `${t}--${i}`, l = [
2477
2477
  ...n,
2478
2478
  this.isString(a) ? `Boolean(${s})` : s,
2479
2479
  ...this.initClassesCategory(e)
2480
2480
  ];
2481
- this.isBoolean(a) && r.push(`'${c}': ${l.join(" && ")}`, ...this.initClassesValues(o, c, l)), "style" in e && e.style && r.push(`'${c}--${le}': isFilled(${s}) && !inArray(propsValues.${i}, ${s})`), this.isString(a) && (a.length !== 1 || a[0] !== "custom") && r.push(`[\`${c.match(/-palette$/) ? `${c} ` : ""}${c}--\${${s}}\`]: inArray(propsValues.${i}, ${s})`);
2481
+ this.isBoolean(a) && r.push(`'${c}': ${l.join(" && ")}`, ...this.initClassesValues(o, c, l)), "style" in e && e.style && r.push(`'${c}--${ce}': isFilled(${s}) && !inArray(propsValues.${i}, ${s})`), this.isString(a) && (a.length !== 1 || a[0] !== "custom") && r.push(`[\`${c.match(/-palette$/) ? `${c} ` : ""}${c}--\${${s}}\`]: inArray(propsValues.${i}, ${s})`);
2482
2482
  }), r;
2483
2483
  }
2484
2484
  initClassesCategory(e) {
2485
2485
  let t = [];
2486
- return "category" in e && e.category && e.default && y(this.structure.get(), ({ name: n, category: r }) => {
2486
+ return "category" in e && e.category && e.default && b(this.structure.get(), ({ name: n, category: r }) => {
2487
2487
  e.name !== n && e.category === r && t.push(`!props.${n}`);
2488
2488
  }), t;
2489
2489
  }
2490
2490
  initStylesValues(e = this.structure.get()) {
2491
2491
  let t = [], n = this.structure?.getPathName();
2492
- return y(e, ({ name: e, style: r }) => {
2492
+ return b(e, ({ name: e, style: r }) => {
2493
2493
  r && t.push(`'--${n}-sys-${e}': props.${e} ?? null`);
2494
2494
  }), t;
2495
2495
  }
2496
- }, En = class {
2496
+ }, Dn = class {
2497
2497
  command;
2498
2498
  options;
2499
2499
  structure;
@@ -2504,34 +2504,34 @@ var z = {
2504
2504
  this.command ? (console.info(`-- ${t.getDesignName()}.${this.command}:`), await this.initMain(), console.info("-- end")) : console.info("-- not name");
2505
2505
  }
2506
2506
  isFile(t) {
2507
- return e.is([...this.dir, ...T(t)]);
2507
+ return e.is([...this.dir, ...D(t)]);
2508
2508
  }
2509
2509
  getCommand() {
2510
2510
  return this.command;
2511
2511
  }
2512
2512
  getName() {
2513
- return D(this.getCommand());
2513
+ return k(this.getCommand());
2514
2514
  }
2515
2515
  getNameMin() {
2516
- return E(this.getCommand());
2516
+ return O(this.getCommand());
2517
2517
  }
2518
2518
  getCode() {
2519
- return O(this.getCommand());
2519
+ return A(this.getCommand());
2520
2520
  }
2521
2521
  getFullName() {
2522
- return D(`${t.getDesignName()}-${this.getCommand()}`);
2522
+ return k(`${t.getDesignName()}-${this.getCommand()}`);
2523
2523
  }
2524
2524
  getProjectName() {
2525
- return D(t.getProjectName());
2525
+ return k(t.getProjectName());
2526
2526
  }
2527
2527
  getStructure() {
2528
- return this.structure ||= new wn(this.getCommand()), this.structure;
2528
+ return this.structure ||= new Tn(this.getCommand()), this.structure;
2529
2529
  }
2530
2530
  getReplace(e) {
2531
- return new Tn(this.getStructure(), this.mark, e ?? "");
2531
+ return new En(this.getStructure(), this.mark, e ?? "");
2532
2532
  }
2533
2533
  read(t) {
2534
- return e.readFile([...this.dir, ...T(t)]);
2534
+ return e.readFile([...this.dir, ...D(t)]);
2535
2535
  }
2536
2536
  readSample(e) {
2537
2537
  return this.sample?.[e];
@@ -2546,18 +2546,18 @@ var z = {
2546
2546
  this.console(t), e.write(this.dir, t, n, "");
2547
2547
  }
2548
2548
  updatePackage(t, n) {
2549
- let r = h(), i = r;
2549
+ let r = g(), i = r;
2550
2550
  if (r && i) {
2551
2551
  let a = t.split("|"), o = a.pop();
2552
2552
  for (let e of a) e in i || (i[e] = {}), i = i[e];
2553
- o && (i[o] = n), e.writeByPath(ae, r);
2553
+ o && (i[o] = n), e.writeByPath(m, r);
2554
2554
  }
2555
2555
  return this;
2556
2556
  }
2557
2557
  console(e) {
2558
2558
  console.info(`-- ${this.isFile(e) ? "update" : "create"} ${e}`);
2559
2559
  }
2560
- }, Dn = {
2560
+ }, On = {
2561
2561
  "basicTypes.ts": "",
2562
2562
  "Constructors.ts": "import type { Ref, ToRefs } from 'vue'\nimport { type ConstrEmit, type DesignComp } from '@dxtmisha/functional'\n\nimport type { ConstructorsComponents, ConstructorsEmits, ConstructorsSlots } from './types'\nimport type { ConstructorsProps } from './props'\n\n/**\n * Constructors\n */\nexport class Constructors {\n /**\n * Constructor\n * @param props input data/ входные данные\n * @param refs input data in the form of reactive elements/ входные данные в виде реактивных элементов\n * @param element input element/ элемент ввода\n * @param classDesign design name/ название дизайна\n * @param className class name/ название класса\n * @param components object for working with components/ объект для работы с компонентами\n * @param slots object for working with slots/ объект для работы со слотами\n * @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие\n */\n constructor(\n protected readonly props: ConstructorsProps,\n protected readonly refs: ToRefs<ConstructorsProps>,\n protected readonly element: Ref<HTMLElement | undefined>,\n protected readonly classDesign: string,\n protected readonly className: string,\n protected readonly components?: DesignComp<ConstructorsComponents, ConstructorsProps>,\n protected readonly slots?: ConstructorsSlots,\n protected readonly emits?: ConstrEmit<ConstructorsEmits>\n ) {\n }\n}\n",
2563
2563
  "ConstructorsDesign.tsx": "import { h, type VNode } from 'vue'\nimport {\n type ConstrOptions,\n type ConstrStyles,\n DesignConstructorAbstract\n} from '@dxtmisha/functional'\n\nimport { Constructors } from './Constructors'\n\nimport {\n type ConstructorsPropsBasic\n} from './props'\nimport {\n type ConstructorsClasses,\n type ConstructorsComponents,\n type ConstructorsEmits,\n type ConstructorsExpose,\n type ConstructorsSlots\n} from './types'\n\n/**\n * ConstructorsDesign\n */\nexport class ConstructorsDesign<\n COMP extends ConstructorsComponents,\n EXPOSE extends ConstructorsExpose,\n CLASSES extends ConstructorsClasses,\n P extends ConstructorsPropsBasic\n> extends DesignConstructorAbstract<\n HTMLDivElement,\n COMP,\n ConstructorsEmits,\n EXPOSE,\n ConstructorsSlots,\n CLASSES,\n P\n > {\n protected readonly item: Constructors\n\n /**\n * Constructor\n * @param name class name/ название класса\n * @param props properties/ свойства\n * @param options list of additional parameters/ список дополнительных параметров\n * @param ItemConstructor constructors item class/ класс элемента конструкторов\n */\n constructor(\n name: string,\n props: Readonly<P>,\n options?: ConstrOptions<COMP, ConstructorsEmits, P>,\n ItemConstructor: typeof Constructors = Constructors\n ) {\n super(\n name,\n props,\n options\n )\n\n this.item = new ItemConstructor(\n this.props,\n this.refs,\n this.element,\n this.getDesign(),\n this.getName(),\n this.components,\n this.slots,\n this.emits\n )\n\n // TODO: Method for initializing base objects\n // TODO: Метод для инициализации базовых объектов\n\n this.init()\n }\n\n /**\n * Initialization of all the necessary properties for work\n *\n * Инициализация всех необходимых свойств для работы.\n */\n protected initExpose(): EXPOSE {\n return {\n // TODO: list of properties for export\n // TODO: список свойств для экспорта\n } as EXPOSE\n }\n\n /**\n * Improvement of the obtained list of classes.\n *\n * Доработка полученного списка классов.\n */\n protected initClasses(): Partial<CLASSES> {\n return {\n main: {},\n ...{\n // :classes [!] System label / Системная метка\n // :classes [!] System label / Системная метка\n }\n } as Partial<CLASSES>\n }\n\n /**\n * Refinement of the received list of styles.\n *\n * Доработка полученного списка стилей.\n */\n protected initStyles(): ConstrStyles {\n return {\n // TODO: list of user styles\n // TODO: список пользовательских стилей\n }\n }\n\n /**\n * A method for rendering.\n *\n * Метод для рендеринга.\n */\n protected initRender(): VNode {\n // const children: any[] = []\n\n return h('div', {\n // ...this.getAttrs(),\n ref: this.element,\n class: this.classes?.value.main\n })\n }\n}\n",
@@ -2565,8 +2565,8 @@ var z = {
2565
2565
  "props.ts": "type ConstructorsPropsToken = {\n // :type [!] System label / Системная метка\n // :type [!] System label / Системная метка\n}\n\nexport type ConstructorsPropsBasic = {\n // TODO: Location for a custom property / Место для пользовательского свойства\n}\n\n/**\n * Type describing incoming properties.\n *\n * Тип, описывающий входящие свойства.\n */\nexport type ConstructorsProps = ConstructorsPropsBasic & ConstructorsPropsToken\n\n/**\n * Default value for property.\n *\n * Значение по умолчанию для свойства.\n */\nexport const defaultsConstructors = {\n // TODO: Location for a user-defined default value / Место для пользовательского значения по умолчанию\n ...{\n // :default [!] System label / Системная метка\n // :default [!] System label / Системная метка\n }\n}\n",
2566
2566
  "style.scss": "@use \"@dxtmisha/styles/properties\" as ui;\n\n@mixin mixinConstructors {\n\n}\n",
2567
2567
  "types.ts": "import type { ConstrClass } from '@dxtmisha/functional'\n\n/**\n * Interface for describing which components need to be connected for work.\n *\n * Интерфейс для описания, какие компоненты надо подключить для работы.\n */\nexport type ConstructorsComponents = {\n // componentName: object\n}\n\n/**\n * Type describing available events.\n *\n * Тип, описывающий доступные события.\n */\nexport type ConstructorsEmits = {\n // load: [value: string]\n}\n\n/**\n * Type describing available properties.\n *\n * Тип, описывающий доступные свойства.\n */\nexport interface ConstructorsExpose {\n}\n\n/**\n * Type describing available slots.\n *\n * Тип, описывающий доступные слоты.\n */\nexport interface ConstructorsSlots {\n // default? (props: any): any\n}\n\n/**\n * Type describing subclasses.\n *\n * Тип, описывающий подклассы.\n */\nexport type ConstructorsClasses = {\n main: ConstrClass\n // :classes [!] System label / Системная метка\n // :classes [!] System label / Системная метка\n}\n"
2568
- }, On = "properties.json", kn = "props.ts", An = "types.ts", jn = "basicTypes.ts", Mn = "style.scss", Nn = "Constructors.ts", Pn = "ConstructorsDesign.tsx", Fn = "index.ts", In = class extends En {
2569
- sample = Dn;
2568
+ }, kn = "properties.json", An = "props.ts", jn = "types.ts", Mn = "basicTypes.ts", Nn = "style.scss", Pn = "Constructors.ts", Fn = "ConstructorsDesign.tsx", In = "index.ts", Ln = class extends Dn {
2569
+ sample = On;
2570
2570
  mark = u;
2571
2571
  dir;
2572
2572
  constructor(t, n = {}) {
@@ -2581,22 +2581,22 @@ var z = {
2581
2581
  this.makeProperties().makeProps().makeTypes().makeTypesBasic().makeStyle().makeCode().makeMain().makeIndex().makeFilePackage().makeLibrary();
2582
2582
  }
2583
2583
  makeProperties() {
2584
- let e = On;
2584
+ let e = kn;
2585
2585
  return this.isFile(e) || this.write(e, "{\r\n}\r\n"), this;
2586
2586
  }
2587
2587
  makeProps() {
2588
- let e = kn, t = this.readDefinable(e);
2588
+ let e = An, t = this.readDefinable(e);
2589
2589
  return t.replaceType().replaceDefault().replaceProps(), this.write(e, t.get()), this;
2590
2590
  }
2591
2591
  makeTypes() {
2592
- let e = An, t = this.readDefinable(e);
2592
+ let e = jn, t = this.readDefinable(e);
2593
2593
  return t.replaceClasses(), this.write(e, t.get()), this;
2594
2594
  }
2595
2595
  makeTypesBasic() {
2596
- return this.makeFileStandard(jn);
2596
+ return this.makeFileStandard(Mn);
2597
2597
  }
2598
2598
  makeStyle() {
2599
- let e = Mn;
2599
+ let e = Nn;
2600
2600
  if (!this.isFile(e)) {
2601
2601
  let t = this.readDefinable(e);
2602
2602
  this.write(e, t.get());
@@ -2604,13 +2604,13 @@ var z = {
2604
2604
  return this;
2605
2605
  }
2606
2606
  makeCode() {
2607
- return this.makeFileStandard(Nn);
2607
+ return this.makeFileStandard(Pn);
2608
2608
  }
2609
2609
  makeMain() {
2610
- return this.makeFileStandard(Pn);
2610
+ return this.makeFileStandard(Fn);
2611
2611
  }
2612
2612
  makeIndex() {
2613
- return this.makeFileStandard(Fn);
2613
+ return this.makeFileStandard(In);
2614
2614
  }
2615
2615
  makeFileStandard(e) {
2616
2616
  let t = this.readDefinable(e);
@@ -2624,18 +2624,18 @@ var z = {
2624
2624
  }), this;
2625
2625
  }
2626
2626
  makeLibrary() {
2627
- let t = E(this.getCommand());
2628
- return e.writeByPath([...a, `${t}.ts`], `export * from '../${u}/${D(this.getCommand())}/index'
2627
+ let t = O(this.getCommand());
2628
+ return e.writeByPath([...a, `${t}.ts`], `export * from '../${u}/${k(this.getCommand())}/index'
2629
2629
  `), this;
2630
2630
  }
2631
- }, Ln = class {
2631
+ }, Rn = class {
2632
2632
  name;
2633
2633
  constructor(e) {
2634
2634
  this.name = e;
2635
2635
  }
2636
2636
  async make() {
2637
- if (M.clear(), x(this.name)) await new In(this.name).make();
2638
- else for (let e of this.getComponents()) console.log(`Constructor update: ${e}`), await new In(e).make();
2637
+ if (N.clear(), S(this.name)) await new Ln(this.name).make();
2638
+ else for (let e of this.getComponents()) console.log(`Constructor update: ${e}`), await new Ln(e).make();
2639
2639
  this.makeStyle();
2640
2640
  }
2641
2641
  getComponents() {
@@ -2644,7 +2644,7 @@ var z = {
2644
2644
  getComponentsStyle() {
2645
2645
  let e = [];
2646
2646
  return this.getComponents().forEach((t) => {
2647
- let n = D(t);
2647
+ let n = k(t);
2648
2648
  e.push(`@forward "../constructors/${n}/style";`);
2649
2649
  }), e;
2650
2650
  }
@@ -2656,23 +2656,23 @@ var z = {
2656
2656
  ];
2657
2657
  }
2658
2658
  makeStyle() {
2659
- let t = [...a, ce], n = this.getComponentsStyle();
2659
+ let t = [...a, se], n = this.getComponentsStyle();
2660
2660
  e.writeByPath(t, n.join("\r\n"));
2661
2661
  }
2662
- }, Rn = 2, zn = "image/webp", Q = "flags.webp", Bn = [
2662
+ }, zn = 2, Bn = "image/webp", Q = "flags.webp", Vn = [
2663
2663
  "src",
2664
2664
  "assets",
2665
2665
  Q
2666
- ], Vn = [
2666
+ ], Hn = [
2667
2667
  ".",
2668
2668
  "..",
2669
2669
  "assets",
2670
2670
  Q
2671
- ], Hn = [
2671
+ ], Un = [
2672
2672
  "src",
2673
2673
  "styles",
2674
2674
  "flags.css"
2675
- ], Un = ".ui-sys-flags", Wn = class {
2675
+ ], Wn = ".ui-sys-flags", Gn = class {
2676
2676
  dir;
2677
2677
  width;
2678
2678
  height;
@@ -2711,20 +2711,20 @@ var z = {
2711
2711
  }
2712
2712
  getStyle() {
2713
2713
  let e = this.columns * (this.square / this.width), t = this.getLines() * (this.square / this.height), n = `
2714
- ${Un} {
2714
+ ${Wn} {
2715
2715
  --sys-flags-width: ${this.width}px;
2716
2716
  --sys-flags-height: ${this.height}px;
2717
2717
  --sys-flags-top: ${this.top}px;
2718
2718
  --sys-flags-left: ${this.left}px;
2719
2719
  --sys-flags-lines: ${this.getLines()};
2720
2720
 
2721
- background-image: url("${Vn.join("/")}");
2721
+ background-image: url("${Hn.join("/")}");
2722
2722
  background-size: calc(100% * ${e}) calc(100% * ${t});
2723
2723
  }
2724
2724
  `.trim(), r = 100 / (this.getCanvasWidth() - this.width), i = 100 / (this.getCanvasHeight() - this.height);
2725
2725
  return this.data.forEach((e) => {
2726
2726
  n += `
2727
- ${Un}--${e.name} {
2727
+ ${Wn}--${e.name} {
2728
2728
  background-position: ${e.x * r}% ${e.y * i}%;
2729
2729
  }`;
2730
2730
  }), n;
@@ -2744,11 +2744,11 @@ ${Un}--${e.name} {
2744
2744
  this.x++, this.x >= this.columns && (this.x = 0, this.y++);
2745
2745
  }
2746
2746
  save() {
2747
- let t = this.canvas.toBuffer(zn, 64);
2748
- t && e.writeByPath(Bn, t, !1);
2747
+ let t = this.canvas.toBuffer(Bn, 64);
2748
+ t && e.writeByPath(Vn, t, !1);
2749
2749
  }
2750
2750
  saveStyle() {
2751
- e.writeByPath(Hn, this.getStyle());
2751
+ e.writeByPath(Un, this.getStyle());
2752
2752
  }
2753
2753
  async initGraphics() {
2754
2754
  let { createCanvas: e } = await import("@napi-rs/canvas");
@@ -2761,24 +2761,24 @@ ${Un}--${e.name} {
2761
2761
  return e.readDir(this.dir).filter((e) => e.endsWith(".svg"));
2762
2762
  }
2763
2763
  initSquare() {
2764
- return this.width >= this.height ? this.width * Rn : this.height * Rn;
2764
+ return this.width >= this.height ? this.width * zn : this.height * zn;
2765
2765
  }
2766
2766
  initTop() {
2767
2767
  return this.square / 2 - this.height / 2;
2768
2768
  }
2769
- }, Gn = class {
2769
+ }, Kn = class {
2770
2770
  program;
2771
2771
  checker;
2772
2772
  sourceFile;
2773
2773
  types;
2774
2774
  constructor(e = "", t = {}) {
2775
- this.program = k.createProgram([e], t), this.checker = this.program.getTypeChecker(), this.sourceFile = this.program.getSourceFiles().find((t) => t.fileName.endsWith(e));
2775
+ this.program = j.createProgram([e], t), this.checker = this.program.getTypeChecker(), this.sourceFile = this.program.getSourceFiles().find((t) => t.fileName.endsWith(e));
2776
2776
  }
2777
2777
  getTypes() {
2778
2778
  if (!this.types && this.sourceFile) {
2779
2779
  let e = [];
2780
- return k.forEachChild(this.sourceFile, (t) => {
2781
- if (k.isTypeAliasDeclaration(t) || k.isInterfaceDeclaration(t)) {
2780
+ return j.forEachChild(this.sourceFile, (t) => {
2781
+ if (j.isTypeAliasDeclaration(t) || j.isInterfaceDeclaration(t)) {
2782
2782
  let n = this.checker.getTypeAtLocation(t.name), r = [];
2783
2783
  this.checker.getPropertiesOfType(n).forEach((e) => {
2784
2784
  r.push(this.getPropInformation(t, e));
@@ -2799,29 +2799,29 @@ ${Un}--${e.name} {
2799
2799
  if (e.isUnion() && n && n.length > 0) return e.types.every((e) => e.isNumberLiteral()) ? "number" : "string";
2800
2800
  let r = this.checker.typeToString(e);
2801
2801
  if (t && (r === "any" || r === "{}" || r === "unknown")) {
2802
- let e = t.getDeclarations()?.find((e) => k.isPropertySignature(e) || k.isPropertyDeclaration(e));
2802
+ let e = t.getDeclarations()?.find((e) => j.isPropertySignature(e) || j.isPropertyDeclaration(e));
2803
2803
  e?.type && (r = e.type.getText().trim() || r);
2804
2804
  }
2805
2805
  return r.replace(/'/g, "\\'");
2806
2806
  }
2807
2807
  getPropOption(e) {
2808
2808
  if (e.isUnion()) {
2809
- let t = y(e.types, (e) => {
2809
+ let t = b(e.types, (e) => {
2810
2810
  if (e.isStringLiteral() || e.isNumberLiteral()) return String(e.value);
2811
2811
  });
2812
2812
  if (t.length > 0) return t;
2813
2813
  }
2814
2814
  }
2815
2815
  getPropOptionByNode(e) {
2816
- if (k.isUnionTypeNode(e)) {
2816
+ if (j.isUnionTypeNode(e)) {
2817
2817
  let t = [];
2818
- for (let n of e.types) k.isLiteralTypeNode(n) && k.isStringLiteral(n.literal) && t.push(n.literal.text);
2818
+ for (let n of e.types) j.isLiteralTypeNode(n) && j.isStringLiteral(n.literal) && t.push(n.literal.text);
2819
2819
  return t;
2820
2820
  }
2821
2821
  }
2822
2822
  getPropOptionByDeclarations(e) {
2823
2823
  if (e) {
2824
- for (let t of e) if ((k.isPropertySignature(t) || k.isPropertyDeclaration(t)) && t.type) {
2824
+ for (let t of e) if ((j.isPropertySignature(t) || j.isPropertyDeclaration(t)) && t.type) {
2825
2825
  let e = this.getPropOptionByNode(t.type);
2826
2826
  if (e && e.length > 0) return e;
2827
2827
  }
@@ -2829,7 +2829,7 @@ ${Un}--${e.name} {
2829
2829
  return [];
2830
2830
  }
2831
2831
  getPropInformation(e, t) {
2832
- let n = this.checker.getTypeOfSymbolAtLocation(t, e.name), r = k.displayPartsToString(t.getDocumentationComment(this.checker)).trim(), i = r.length > 0 ? r : void 0;
2832
+ let n = this.checker.getTypeOfSymbolAtLocation(t, e.name), r = j.displayPartsToString(t.getDocumentationComment(this.checker)).trim(), i = r.length > 0 ? r : void 0;
2833
2833
  return {
2834
2834
  name: t.name,
2835
2835
  type: this.getPropType(n, t),
@@ -2837,7 +2837,7 @@ ${Un}--${e.name} {
2837
2837
  description: i
2838
2838
  };
2839
2839
  }
2840
- }, Kn = {
2840
+ }, qn = {
2841
2841
  "DesignComponent.mdx": "import {Canvas, Meta} from '@storybook/addon-docs/blocks'\nimport {\n StorybookDescriptions,\n StorybookMain\n} from '@dxtmisha/wiki/storybook'\n\nimport * as Component from './DesignComponent.stories'\nimport {ComponentWikiStorybook} from './wiki'\n\n[//]: # (:documentation-import [!] System label / Системная метка)\n[//]: # (:documentation-import [!] System label / Системная метка)\n\n<Meta of={Component}/>\n<StorybookMain\n name={ComponentWikiStorybook.getName()}\n description={ComponentWikiStorybook.getDescription()}\n story={Component.Component}\n/>\n\n[//]: # (:documentation-body [!] System label / Системная метка)\n[//]: # (:documentation-body [!] System label / Системная метка)\n\n[//]: # (:documentation-events [!] System label / Системная метка)\n[//]: # (:documentation-events [!] System label / Системная метка)\n\n[//]: # (:documentation-expose [!] System label / Системная метка)\n[//]: # (:documentation-expose [!] System label / Системная метка)\n\n[//]: # (:documentation-slots [!] System label / Системная метка)\n[//]: # (:documentation-slots [!] System label / Системная метка)\n",
2842
2842
  "DesignComponent.stories.ts": "import type { Meta, StoryObj } from '@storybook/vue3-vite'\n\nimport DesignComponent from './DesignComponent.vue'\n// :component.once import { ComponentWikiStorybook } from './wiki'\n\n// :story-import [!] System label / Системная метка\n// :story-import [!] System label / Системная метка\n\nconst meta = {\n// :component.once title: '[project]/Component',\n// :component.once component: DesignComponent,\n// :component.once parameters: {\n// :component.once design: '[design]',\n// :component.once docs: {\n// :component.once description: {\n// :component.once component: ComponentWikiStorybook.getDescription()\n// :component.once }\n// :component.once }\n// :component.once },\n// :component.once argTypes: ComponentWikiStorybook.getWiki(),\n// :component.once args: ComponentWikiStorybook.getValues()\n} satisfies Meta<typeof DesignComponent>\n\nexport default meta\n\ntype Story = StoryObj<typeof meta>\n\nexport const Component: Story = {\n // :story-main [!] System label / Системная метка\n // :story-main [!] System label / Системная метка\n}\n\n// :story-items [!] System label / Системная метка\n// :story-items [!] System label / Системная метка\n",
2843
2843
  "DesignComponent.vue": "<script setup lang=\"ts\">\n// :component.once import { computed } from 'vue'\n// :component.once import {\n// :component.once inArray,\n// :component.once isFilled,\n// :component.once type ConstrClasses,\n// :component.once type ConstrStyles\n// :component.once } from '@dxtmisha/functional'\n// :component.once import {\n// :component.once ComponentDesign,\n// :component.once type ComponentEmits,\n// :component.once type ComponentSlots\n// :component.once } from '@dxtmisha/constructor/Component'\n\n// :component.once import { defaults, type ComponentProps, propsValues } from './props'\n// :component.once import './styleToken.scss'\n\n// :component.once defineOptions({\n// :component.once name: 'DesignComponent'\n// :component.once })\n\n// :component.once const emits = defineEmits<ComponentEmits>()\n// :component.once const props = withDefaults(defineProps<ComponentProps>(), defaults)\n\n// :component.once const classesToken = computed<ConstrClasses>(() => ({\n// :component.once main: {\n// :component.once // :classes-values [!] System label / Системная метка\n// :component.once // :classes-values [!] System label / Системная метка\n// :component.once }\n// :component.once }))\n// :component.once const stylesToken = computed<ConstrStyles>(() => ({\n// :component.once // :styles-values [!] System label / Системная метка\n// :component.once // :styles-values [!] System label / Системная метка\n// :component.once }))\n\n// :component.once const design = new ComponentDesign(\n// :component.once '[design].[component]',\n// :component.once props,\n// :component.once {\n// :component.once emits,\n// :component.once classes: classesToken,\n// :component.once styles: stylesToken\n// :component.once }\n// :component.once )\n\n// :component.once const render = design.render()\n\n// :component.once defineSlots<ComponentSlots>()\n// :component.once defineExpose(design.expose())\n<\/script>\n\n<!-- :component.once <template> -->\n<!-- :component.once <render/> -->\n<!-- :component.once </template> -->\n",
@@ -2847,8 +2847,8 @@ ${Un}--${e.name} {
2847
2847
  "styleToken.scss": "// :component.once @use \"../../../styles/[project]/properties\";\n@use \"@dxtmisha/styles/properties\" as ui;\n// :component.once @use \"@dxtmisha/constructor/style.scss\" as Component;\n\n@include ui.initDesignBasic('[design].[component]') {\n // Basic styles for a component\n // Базовый стили для компонента\n // :component.once @include Component.mixinComponent;\n\n // Styles from tokens\n // Стили из токенов\n // :style [!] System label / Системная метка\n // :style [!] System label / Системная метка\n\n // Here are the user styles\n // Здесь пользовательские стили\n}\n",
2848
2848
  "wiki.ts": "// :component.once import { WikiStorybook } from '@dxtmisha/wiki'\n// :component.once import { wiki, wikiDescriptions } from '@dxtmisha/wiki/media'\n\n// :component.once import { ComponentWikiData } from './wikiData'\n\n// :component.once export const ComponentWikiStorybook = new WikiStorybook(\n// :component.once ComponentWikiData.component,\n// :component.once ComponentWikiData.props,\n// :component.once ComponentWikiData.defaults,\n// :component.once ComponentWikiData.wikiDesign,\n// :component.once wiki,\n// :component.once wikiDescriptions\n// :component.once )\n",
2849
2849
  "wikiData.ts": "// :component.once import { type StorybookProps, type StorybookSlots, type WikiDataItem } from '@dxtmisha/wiki'\n\n// :component.once import { wiki[Design] } from '../../../wiki/wiki'\n// :component.once import { defaults } from './props'\n\n// :component.once const propsNames: StorybookProps = [\n// :component.once // :propsList [!] System label / Системная метка\n// :component.once // :propsList [!] System label / Системная метка\n// :component.once ]\n\n// :component.once const slotsNames: StorybookSlots = [\n// :component.once // :slotsList [!] System label / Системная метка\n// :component.once // :slotsList [!] System label / Системная метка\n// :component.once ]\n\n// :component.once const eventsNames: StorybookSlots = [\n// :component.once // :eventsList [!] System label / Системная метка\n// :component.once // :eventsList [!] System label / Системная метка\n// :component.once ]\n\n// :component.once export const ComponentWikiData: WikiDataItem = {\n// :component.once component: 'Component',\n// :component.once props: propsNames,\n// :component.once slots: slotsNames,\n// :component.once events: eventsNames,\n// :component.once defaults,\n// :component.once wikiDesign: wiki[Design]\n// :component.once }\n"
2850
- }, qn = "properties.json", Jn = "props.ts", Yn = "styleToken.scss", Xn = "DesignComponent.vue", Zn = "DesignComponentAiWiki.vue", Qn = "index.ts", $n = "index.d.ts", er = "wiki.ts", tr = "wikiData.ts", nr = "DesignComponent.stories.ts", rr = "DesignComponent.mdx", ir = class extends En {
2851
- sample = Kn;
2850
+ }, Jn = "properties.json", Yn = "props.ts", Xn = "styleToken.scss", Zn = "DesignComponent.vue", Qn = "DesignComponentAiWiki.vue", $n = "index.ts", er = "index.d.ts", tr = "wiki.ts", nr = "wikiData.ts", rr = "DesignComponent.stories.ts", ir = "DesignComponent.mdx", ar = class extends Dn {
2851
+ sample = qn;
2852
2852
  mark = "component";
2853
2853
  dir;
2854
2854
  propsType;
@@ -2868,28 +2868,28 @@ ${Un}--${e.name} {
2868
2868
  this.makeProperties().makeProps().makeStyle().makeMain().makeIndex().makeWiki().makeWikiData().makeFilePackage().makeLibrary(), await this.makeMainAi(), await this.makeStories(), await this.makeStoriesDocumentation();
2869
2869
  }
2870
2870
  makeProperties() {
2871
- let e = qn;
2871
+ let e = Jn;
2872
2872
  return this.isFile(e) || this.write(e, `{\r\n "main": "{d.${this.getStructure().getComponentName()}}"\r\n}\r\n`), this;
2873
2873
  }
2874
2874
  makeProps() {
2875
- let e = Jn, t = this.readDefinable(e), n = this.getFileConstructor(e);
2875
+ let e = Yn, t = this.readDefinable(e), n = this.getFileConstructor(e);
2876
2876
  return t.replaceType(n).replaceDefault().replaceProps().replacePropsValues(), this.write(e, t.get()), this;
2877
2877
  }
2878
2878
  makeStyle() {
2879
- let e = Yn, t = this.readDefinable(e), n = this.getStructure().getStyles();
2879
+ let e = Xn, t = this.readDefinable(e), n = this.getStructure().getStyles();
2880
2880
  return t.replaceMark("style", n), this.write(e, t.get()), this;
2881
2881
  }
2882
2882
  makeMain() {
2883
- let e = Xn, t = this.readDefinable(e);
2883
+ let e = Zn, t = this.readDefinable(e);
2884
2884
  return t.replaceClassesValues(), t.replaceStylesValues(), this.write(t.getNameFile(e), t.get()), this;
2885
2885
  }
2886
2886
  async makeMainAi() {
2887
- let e = Zn, t = this.readDefinable(e), n = this.getStructure().getDesignFirst(), r = this.getStructure().getComponentNameFirst(), i = this.getStructure().getFullComponentName(), a = await this.getWikiDescription();
2887
+ let e = Qn, t = this.readDefinable(e), n = this.getStructure().getDesignFirst(), r = this.getStructure().getComponentNameFirst(), i = this.getStructure().getFullComponentName(), a = await this.getWikiDescription();
2888
2888
  if (a?.ai) {
2889
2889
  let e = [];
2890
2890
  if (a.ai.render) {
2891
- let n = ye(a.ai.render, r, i);
2892
- a.ai.render.includes("<button") && (e.push("import { DxtTestButton } from '@dxtmisha/test'"), n = ye(n, "button", "DxtTestButton")), n && t.replaceMark("component-render", [
2891
+ let n = ve(a.ai.render, r, i);
2892
+ a.ai.render.includes("<button") && (e.push("import { DxtTestButton } from '@dxtmisha/test'"), n = ve(n, "button", "DxtTestButton")), n && t.replaceMark("component-render", [
2893
2893
  "<template #render=\"{ args, classDemo }\">",
2894
2894
  n,
2895
2895
  "</template>"
@@ -2900,15 +2900,15 @@ ${Un}--${e.name} {
2900
2900
  return this.write(t.getNameFile(e), t.get().replace("design=\"Design\"", `design="${n}"`)), this;
2901
2901
  }
2902
2902
  makeIndex() {
2903
- let e = Qn, t = this.readDefinable(e);
2903
+ let e = $n, t = this.readDefinable(e);
2904
2904
  return this.write(e, t.get()), this;
2905
2905
  }
2906
2906
  makeWiki() {
2907
- let e = er, t = this.readDefinable(e);
2907
+ let e = tr, t = this.readDefinable(e);
2908
2908
  return this.write(e, t.get()), this;
2909
2909
  }
2910
2910
  makeWikiData() {
2911
- let e = tr, t = this.getPropsList(), n = this.getSlotsList(), r = this.getEventsList(), i = this.readDefinable(e);
2911
+ let e = nr, t = this.getPropsList(), n = this.getSlotsList(), r = this.getEventsList(), i = this.readDefinable(e);
2912
2912
  if (t) {
2913
2913
  let e = [];
2914
2914
  t.sort((e, t) => e.name.localeCompare(t.name)).forEach((t) => {
@@ -2933,11 +2933,11 @@ ${Un}--${e.name} {
2933
2933
  return this.write(e, i.get()), this;
2934
2934
  }
2935
2935
  async makeStories() {
2936
- let e = nr, t = this.readDefinable(e), n = await this.getWikiDescription();
2936
+ let e = rr, t = this.readDefinable(e), n = await this.getWikiDescription();
2937
2937
  return n && this.replaceMarkStoriesRender(t, n).replaceMarkStoriesStories(t, n).replaceMarkStoriesImport(t, n), this.write(t.getNameFile(e), t.get()), this;
2938
2938
  }
2939
2939
  async makeStoriesDocumentation() {
2940
- let e = rr, t = this.readDefinable(e), n = (await this.getWikiDescription())?.documentation;
2940
+ let e = ir, t = this.readDefinable(e), n = (await this.getWikiDescription())?.documentation;
2941
2941
  return n && this.replaceMarkDocumentation(t, "import", n.import).replaceMarkDocumentation(t, "body", n.body).replaceMarkDocumentation(t, "events", n.events, "Events").replaceMarkDocumentation(t, "expose", n.expose, "Expose").replaceMarkDocumentation(t, "slots", n.slots, "Slots"), this.write(t.getNameFile(e), t.get()), this;
2942
2942
  }
2943
2943
  getFileConstructor(e) {
@@ -2954,7 +2954,7 @@ ${Un}--${e.name} {
2954
2954
  let t = e.getRootProject(), n = this.getStructure().getComponentNameFirst();
2955
2955
  if (t) return [
2956
2956
  t,
2957
- m,
2957
+ h,
2958
2958
  d,
2959
2959
  u,
2960
2960
  n
@@ -2962,7 +2962,7 @@ ${Un}--${e.name} {
2962
2962
  }
2963
2963
  getTypescriptPathsIndex() {
2964
2964
  let t = this.getTypescriptPaths();
2965
- if (t) return e.joinPath([...t, $n]);
2965
+ if (t) return e.joinPath([...t, er]);
2966
2966
  }
2967
2967
  getTypescriptPathsType() {
2968
2968
  let t = this.getTypescriptPaths();
@@ -2972,14 +2972,14 @@ ${Un}--${e.name} {
2972
2972
  if (!this.propsType) {
2973
2973
  let n = this.getTypescriptPathsIndex(), r = this.getStructure().getComponentNameFirst();
2974
2974
  if (n) {
2975
- let i = new Gn(e.joinPath([
2975
+ let i = new Kn(e.joinPath([
2976
2976
  e.getRoot(),
2977
2977
  "src",
2978
2978
  l,
2979
2979
  t.getProjectName(),
2980
2980
  r,
2981
- Jn
2982
- ]), { paths: { [`${ue}/${r}`]: [n] } });
2981
+ Yn
2982
+ ]), { paths: { [`${le}/${r}`]: [n] } });
2983
2983
  this.propsType = i.getType(`${r}Props`)?.props;
2984
2984
  }
2985
2985
  }
@@ -2995,7 +2995,7 @@ ${Un}--${e.name} {
2995
2995
  getEventsList() {
2996
2996
  if (!this.eventsType) {
2997
2997
  let e = this.getTypesFromConstructor("Emits");
2998
- e && (this.eventsType = y(e, (e) => ({
2998
+ e && (this.eventsType = b(e, (e) => ({
2999
2999
  name: e.name,
3000
3000
  type: String(e.type).replace(/([^:,[\] ]+): ([^:,[\]]+)/gi, "{ name: '$1', type: '$2' }").replace(/,{/gi, ", {"),
3001
3001
  description: e.description
@@ -3017,7 +3017,7 @@ ${Un}--${e.name} {
3017
3017
  let t = [];
3018
3018
  return e.stories.forEach((e) => {
3019
3019
  e.components && e.components.forEach((e) => {
3020
- t.push(e);
3020
+ t.includes(e) || t.push(e);
3021
3021
  });
3022
3022
  }), t;
3023
3023
  }
@@ -3025,11 +3025,11 @@ ${Un}--${e.name} {
3025
3025
  }
3026
3026
  getTypesFromConstructor(e) {
3027
3027
  let t = this.getTypescriptPathsType(), n = this.getStructure().getComponentNameFirst();
3028
- if (t) return new Gn(t).getType(`${n}${e}`)?.props;
3028
+ if (t) return new Kn(t).getType(`${n}${e}`)?.props;
3029
3029
  }
3030
3030
  toComponentName(e) {
3031
3031
  let t = this.getStructure().getDesignFirst(), n = this.getStructure().getComponentName(), r = this.getStructure().getFullComponentName();
3032
- return e.replace(/DesignComponent/g, r).trim().replace(/design-component/g, `${E(t)}-${E(n)}`).trim().replace(/<(\/?)Design/g, `<$1${t}`);
3032
+ return e.replace(/DesignComponent/g, r).trim().replace(/design-component/g, `${O(t)}-${O(n)}`).trim().replace(/<(\/?)Design/g, `<$1${t}`);
3033
3033
  }
3034
3034
  replaceMarkStoriesRender(e, t) {
3035
3035
  if (t.render) {
@@ -3057,9 +3057,9 @@ ${Un}--${e.name} {
3057
3057
  if (n.stories) {
3058
3058
  let r = t.getWikiLanguage(), i = this.getStructure().getDesignFirst(), a = this.getStructure().getFullComponentName(), o = [], s = this.getPropsList();
3059
3059
  n.stories.forEach((e) => {
3060
- if (s && e.propsName && !T(e.propsName).every((e) => s.some((t) => t.name === e))) return;
3061
- let t = e.components && y(e.components, (e) => `${i}${e}`), n = this.toComponentName(e.template);
3062
- o.push(`export const ${e.id}: Story = {`), S(e.name) && e.name?.[r] && o.push(` name: '${e.name?.[r]}',`), o.push(" render: () => ({"), o.push(` components: { ${a}${t ? `, ${t.join(", ")}` : ""} },`), e.setup && (o.push(" setup() {"), o.push(` ${e.setup.trim()}`), o.push(" },")), o.push(" template: `"), o.push(` ${n}`), o.push(" `"), o.push(" })"), o.push("}");
3060
+ if (s && e.propsName && !D(e.propsName).every((e) => s.some((t) => t.name === e))) return;
3061
+ let t = e.components && b(e.components, (e) => `${i}${e}`), n = this.toComponentName(e.template);
3062
+ o.push(`export const ${e.id}: Story = {`), w(e.name) && e.name?.[r] && o.push(` name: '${e.name?.[r]}',`), o.push(" render: () => ({"), o.push(` components: { ${a}${t ? `, ${t.join(", ")}` : ""} },`), e.setup && (o.push(" setup() {"), o.push(` ${e.setup.trim()}`), o.push(" },")), o.push(" template: `"), o.push(` ${n}`), o.push(" `"), o.push(" })"), o.push("}");
3063
3063
  }), e.replaceMark("story-items", o);
3064
3064
  }
3065
3065
  return this;
@@ -3086,7 +3086,7 @@ ${Un}--${e.name} {
3086
3086
  export * from '${t}index.js'
3087
3087
  `), this;
3088
3088
  }
3089
- }, ar = class {
3089
+ }, or = class {
3090
3090
  items;
3091
3091
  constructor() {
3092
3092
  this.items = this.initItems();
@@ -3118,12 +3118,12 @@ export * from '${t}index.js'
3118
3118
  let n = [], r = e.readDir(this.getComponentsPath()), i = t.getDesignName();
3119
3119
  return r.forEach((t) => {
3120
3120
  if (e.isDir(t)) {
3121
- let e = O(t).trim();
3121
+ let e = A(t).trim();
3122
3122
  n.push({
3123
3123
  name: e,
3124
3124
  design: i,
3125
3125
  alias: `${i}.${e}`,
3126
- codeFull: D(`${i}-${e}`),
3126
+ codeFull: k(`${i}-${e}`),
3127
3127
  dir: t
3128
3128
  });
3129
3129
  }
@@ -3135,25 +3135,25 @@ export * from '${t}index.js'
3135
3135
  components: this.getComponents()
3136
3136
  }];
3137
3137
  }
3138
- }, or = class {
3138
+ }, sr = class {
3139
3139
  items;
3140
3140
  constructor(e) {
3141
3141
  this.items = e;
3142
3142
  }
3143
3143
  init() {
3144
3144
  let e = X.addSpace(1), t = [":root {"];
3145
- return this.getList().forEach((n) => t.push(...new dn(n, e).make())), t.push("}"), [
3145
+ return this.getList().forEach((n) => t.push(...new fn(n, e).make())), t.push("}"), [
3146
3146
  X.addImportProperties(),
3147
3147
  "",
3148
3148
  this.initCalc(t.join("\r\n"))
3149
3149
  ];
3150
3150
  }
3151
3151
  getList() {
3152
- return this.items.findCategory(v.root);
3152
+ return this.items.findCategory(y.root);
3153
3153
  }
3154
3154
  getValue(e) {
3155
3155
  if (e.match(/calc\(/) && !e.match(/var\(/)) {
3156
- let t = Ce.compileString(`a{height: ${e};}`).css?.match(/height: ([^;]+);/)?.[1];
3156
+ let t = Se.compileString(`a{height: ${e};}`).css?.match(/height: ([^;]+);/)?.[1];
3157
3157
  if (t) return t;
3158
3158
  }
3159
3159
  return e;
@@ -3165,7 +3165,7 @@ export * from '${t}index.js'
3165
3165
  });
3166
3166
  return t ? this.initCalc(n) : n.replace(/calc\([^;\r\n]+/gi, (e) => this.getValue(e));
3167
3167
  }
3168
- }, sr = class {
3168
+ }, cr = class {
3169
3169
  items;
3170
3170
  constructor(e) {
3171
3171
  this.items = e;
@@ -3174,13 +3174,13 @@ export * from '${t}index.js'
3174
3174
  let e = [], t = {}, n = X.addSpace(1);
3175
3175
  return this.getList().forEach((r) => {
3176
3176
  let { value: i, item: a } = r;
3177
- if (x(i) && S(i)) {
3178
- let i = a[g.name];
3179
- e.push(X.addUse(`./classes/${O(i)}`)), t[i] = [
3177
+ if (S(i) && w(i)) {
3178
+ let i = a[_.name];
3179
+ e.push(X.addUse(`./classes/${A(i)}`)), t[i] = [
3180
3180
  X.addImportProperties(),
3181
3181
  "",
3182
3182
  `.${i} {`,
3183
- ...new Sn(n, r).make(),
3183
+ ...new Cn(n, r).make(),
3184
3184
  "}"
3185
3185
  ];
3186
3186
  }
@@ -3190,12 +3190,12 @@ export * from '${t}index.js'
3190
3190
  };
3191
3191
  }
3192
3192
  getList() {
3193
- return this.items.findCategory([v.class, v.theme]);
3193
+ return this.items.findCategory([y.class, y.theme]);
3194
3194
  }
3195
- }, cr = "vars", lr = "classes", $ = "properties", ur = "list", dr = "basic", fr = "style", pr = "main", mr = "classes", hr = class {
3195
+ }, lr = "vars", ur = "classes", $ = "properties", dr = "list", fr = "basic", pr = "style", mr = "main", hr = "classes", gr = class {
3196
3196
  properties;
3197
3197
  constructor() {
3198
- this.properties = new on();
3198
+ this.properties = new sn();
3199
3199
  }
3200
3200
  make() {
3201
3201
  return this.getByDesigns((e, t) => {
@@ -3203,29 +3203,29 @@ export * from '${t}index.js'
3203
3203
  }), this;
3204
3204
  }
3205
3205
  initRoot(t) {
3206
- let n = X.join(new or(t).init());
3207
- return e.write(X.getDir(), cr, n, p), this;
3206
+ let n = X.join(new sr(t).init());
3207
+ return e.write(X.getDir(), lr, n, p), this;
3208
3208
  }
3209
3209
  initClasses(t) {
3210
- let { data: n, classes: r } = new sr(t).init();
3211
- return y(r, (t, n) => {
3212
- e.write([...X.getDir(), mr], n, X.join(t), p);
3213
- }), e.write(X.getDir(), lr, X.join(n), p), this;
3210
+ let { data: n, classes: r } = new cr(t).init();
3211
+ return b(r, (t, n) => {
3212
+ e.write([...X.getDir(), hr], n, X.join(t), p);
3213
+ }), e.write(X.getDir(), ur, X.join(n), p), this;
3214
3214
  }
3215
3215
  initProperties(t) {
3216
- let n = new rn(t);
3216
+ let n = new an(t);
3217
3217
  return e.write(X.getDir(), $, n.get(), p), this;
3218
3218
  }
3219
3219
  initList(t) {
3220
- return e.write(X.getDir(), ur, this.removeExcess(t.get())), this;
3220
+ return e.write(X.getDir(), dr, this.removeExcess(t.get())), this;
3221
3221
  }
3222
3222
  initBasic(t) {
3223
3223
  let n = X.getDir();
3224
- return e.write(n, dr, [
3225
- `@use "./${cr}";`,
3224
+ return e.write(n, fr, [
3225
+ `@use "./${lr}";`,
3226
3226
  `@use "./${$}";`,
3227
- `@use "./${lr}";`
3228
- ].join("\r\n"), p), e.write(n, fr, [
3227
+ `@use "./${ur}";`
3228
+ ].join("\r\n"), p), e.write(n, pr, [
3229
3229
  "@use \"@dxtmisha/styles\" as variables;",
3230
3230
  `@use "./${$}";`,
3231
3231
  "",
@@ -3233,8 +3233,8 @@ export * from '${t}index.js'
3233
3233
  "",
3234
3234
  `@include variables.setDesignsDesign('${t}');`,
3235
3235
  ""
3236
- ].join("\r\n"), p), e.is([...n, `${pr}.scss`]) || e.write(n, pr, [
3237
- `@use "./${dr}";`,
3236
+ ].join("\r\n"), p), e.is([...n, `${mr}.scss`]) || e.write(n, mr, [
3237
+ `@use "./${fr}";`,
3238
3238
  `@use "@dxtmisha/styles/${$}" as ui;`,
3239
3239
  "@use \"@dxtmisha/media/style.css\";",
3240
3240
  "",
@@ -3245,23 +3245,23 @@ export * from '${t}index.js'
3245
3245
  getByDesigns(e) {
3246
3246
  let t = this.properties.get().get();
3247
3247
  this.properties.get().getDesigns().forEach((n) => {
3248
- n !== "d" && e(n, new P(t).setFocusDesign(n));
3248
+ n !== "d" && e(n, new F(t).setFocusDesign(n));
3249
3249
  });
3250
3250
  }
3251
3251
  removeExcess(e) {
3252
3252
  let t = {};
3253
- return y(e, (e, n) => {
3254
- if (e[g.variable] === _.var || S(e.value)) {
3255
- let r = S(e.value) ? this.removeExcess(e.value) : e.value;
3256
- x(r) && (t[n] = {
3257
- name: e[g.name],
3258
- type: e[g.variable],
3253
+ return b(e, (e, n) => {
3254
+ if (e[_.variable] === v.var || w(e.value)) {
3255
+ let r = w(e.value) ? this.removeExcess(e.value) : e.value;
3256
+ S(r) && (t[n] = {
3257
+ name: e[_.name],
3258
+ type: e[_.variable],
3259
3259
  value: r
3260
3260
  });
3261
3261
  }
3262
3262
  }), t;
3263
3263
  }
3264
- }, gr = class {
3264
+ }, _r = class {
3265
3265
  make() {
3266
3266
  this.initWikiFile();
3267
3267
  }
@@ -3271,12 +3271,12 @@ export * from '${t}index.js'
3271
3271
  e.write(c, ie, [
3272
3272
  "import type { StorybookArgsToList } from '@dxtmisha/wiki'",
3273
3273
  "",
3274
- `export const wiki${D(n)}: StorybookArgsToList = {}`,
3274
+ `export const wiki${k(n)}: StorybookArgsToList = {}`,
3275
3275
  ""
3276
3276
  ].join("\r\n"), "ts");
3277
3277
  }
3278
3278
  }
3279
- }, _r = class {
3279
+ }, vr = class {
3280
3280
  item;
3281
3281
  constructor(e) {
3282
3282
  this.item = e;
@@ -3305,7 +3305,7 @@ export * from '${t}index.js'
3305
3305
  this.getComponentFileNameAiWiki()
3306
3306
  ];
3307
3307
  }
3308
- }, vr = class {
3308
+ }, yr = class {
3309
3309
  items;
3310
3310
  constructor(e) {
3311
3311
  this.items = e;
@@ -3319,7 +3319,7 @@ export * from '${t}index.js'
3319
3319
  getList() {
3320
3320
  let e = [];
3321
3321
  return this.items.getComponentList().forEach((t) => {
3322
- let n = new _r(t);
3322
+ let n = new vr(t);
3323
3323
  n.isAiWiki() && e.push(n);
3324
3324
  }), e;
3325
3325
  }
@@ -3363,13 +3363,13 @@ defineOptions({
3363
3363
  </template>
3364
3364
  `);
3365
3365
  }
3366
- }, yr = class {
3366
+ }, br = class {
3367
3367
  items;
3368
3368
  constructor(e) {
3369
3369
  this.items = e;
3370
3370
  }
3371
3371
  make() {
3372
- let e = D(t.getProjectName()), n = E(t.getDesignName());
3372
+ let e = k(t.getProjectName()), n = O(t.getDesignName());
3373
3373
  this.getIconImport().length > 0 && this.items.write(te, [
3374
3374
  "import { Icons } from '@dxtmisha/functional'",
3375
3375
  "",
@@ -3385,7 +3385,7 @@ defineOptions({
3385
3385
  return e.is(n) && e.readDirRecursive(n).forEach((e) => {
3386
3386
  let n = e.replace("/", "-");
3387
3387
  t.push({
3388
- name: E(this.getIconName(n)),
3388
+ name: O(this.getIconName(n)),
3389
3389
  path: this.getIconPath(e),
3390
3390
  value: this.getIconName(n)
3391
3391
  });
@@ -3415,11 +3415,11 @@ defineOptions({
3415
3415
  e.push(`const ${t.name} = async () => (await import('${t.path}'))?.default`);
3416
3416
  }), e;
3417
3417
  }
3418
- }, br = class {
3418
+ }, xr = class {
3419
3419
  items;
3420
3420
  packageName;
3421
3421
  constructor(e) {
3422
- this.items = e, this.packageName = h()?.name;
3422
+ this.items = e, this.packageName = g()?.name;
3423
3423
  }
3424
3424
  make() {
3425
3425
  let e = this.getComponents(), n = this.getComponentsReg();
@@ -3439,7 +3439,7 @@ defineOptions({
3439
3439
  }
3440
3440
  getComponents() {
3441
3441
  let e = [];
3442
- return this.packageName && y(this.items.getComponentList(), (t) => {
3442
+ return this.packageName && b(this.items.getComponentList(), (t) => {
3443
3443
  e.push(` {
3444
3444
  name: '${t.codeFull}',
3445
3445
  reg: ${this.getReg([t.name], !0)}
@@ -3447,7 +3447,7 @@ defineOptions({
3447
3447
  }), e;
3448
3448
  }
3449
3449
  getComponentsReg() {
3450
- let e = y(this.items.getComponentList(), (e) => e.name);
3450
+ let e = b(this.items.getComponentList(), (e) => e.name);
3451
3451
  return this.getReg(e);
3452
3452
  }
3453
3453
  getDesigns() {
@@ -3458,10 +3458,10 @@ defineOptions({
3458
3458
  return n = t ? `^${n}$` : `${n}(?![\\w-])`, `/${n}/ig`;
3459
3459
  }
3460
3460
  getRegName(e) {
3461
- return y(e, (e) => O(e).replace("-", "-?")).join("|");
3461
+ return b(e, (e) => A(e).replace("-", "-?")).join("|");
3462
3462
  }
3463
3463
  getVars() {
3464
- let n = E(t.getDesignName()), r = [
3464
+ let n = O(t.getDesignName()), r = [
3465
3465
  ...o,
3466
3466
  t.getProjectName(),
3467
3467
  "vars.scss"
@@ -3476,12 +3476,12 @@ defineOptions({
3476
3476
  }
3477
3477
  });
3478
3478
  }
3479
- return Se(a);
3479
+ return xe(a);
3480
3480
  }
3481
3481
  getVarsReg() {
3482
3482
  return `/(?<=var\\(--)(${this.getVars().join("|")})/ig`;
3483
3483
  }
3484
- }, xr = class {
3484
+ }, Sr = class {
3485
3485
  items;
3486
3486
  constructor(e) {
3487
3487
  this.items = e;
@@ -3506,7 +3506,7 @@ defineOptions({
3506
3506
  " * Инициализирует плагин Vite для дизайн-системы.",
3507
3507
  " * @param options plugin options / настройки плагина",
3508
3508
  " */",
3509
- `export function ui${D(e)}VitePlugin(`,
3509
+ `export function ui${k(e)}VitePlugin(`,
3510
3510
  " options: PluginOptions = {}",
3511
3511
  "): VitePlugin {",
3512
3512
  " return new Plugin(",
@@ -3515,14 +3515,14 @@ defineOptions({
3515
3515
  " componentsReg,",
3516
3516
  " styleVarsReg,",
3517
3517
  " componentsList,",
3518
- ` 'vite-plugin-${O(e)}-ui',`,
3518
+ ` 'vite-plugin-${A(e)}-ui',`,
3519
3519
  " options",
3520
3520
  " )",
3521
3521
  " .init()",
3522
3522
  "}"
3523
3523
  ]), this;
3524
3524
  }
3525
- }, Sr = class {
3525
+ }, Cr = class {
3526
3526
  items;
3527
3527
  constructor(e) {
3528
3528
  this.items = e;
@@ -3565,26 +3565,26 @@ defineOptions({
3565
3565
  e.push(` ${t.codeFull}: typeof _${t.codeFull}`);
3566
3566
  }), e;
3567
3567
  }
3568
- }, Cr = class {
3568
+ }, wr = class {
3569
3569
  name;
3570
3570
  components;
3571
3571
  constructor(e = "") {
3572
- this.name = e, this.components = new ar();
3572
+ this.name = e, this.components = new or();
3573
3573
  }
3574
3574
  get component() {
3575
- return O(this.name).trim();
3575
+ return A(this.name).trim();
3576
3576
  }
3577
3577
  async make() {
3578
- M.clear(), new hr().make(), new gr().make(), await this.makeConstructorComponent(), this.makePackage().makeUiProperties(), new yr(this.components).make(), new br(this.components).make(), new xr(this.components).make(), new vr(this.components).make(), new Sr(this.components).make();
3578
+ N.clear(), new gr().make(), new _r().make(), await this.makeConstructorComponent(), this.makePackage().makeUiProperties(), new br(this.components).make(), new xr(this.components).make(), new Sr(this.components).make(), new yr(this.components).make(), new Cr(this.components).make();
3579
3579
  }
3580
3580
  async makeConstructorComponent() {
3581
3581
  let e = this.component;
3582
- if (e !== "") await new ir(e).make();
3583
- else for (let e of this.components.getComponentList()) console.log(`Component update: ${e.alias}`), await new ir(e.name).make();
3582
+ if (e !== "") await new ar(e).make();
3583
+ else for (let e of this.components.getComponentList()) console.log(`Component update: ${e.alias}`), await new ar(e.name).make();
3584
3584
  return this;
3585
3585
  }
3586
3586
  makePackage() {
3587
- let n = h(), r = D(t.getProjectName());
3587
+ let n = g(), r = k(t.getProjectName());
3588
3588
  return n?.exports && (n.exports["."] = {
3589
3589
  types: "./dist/library/types.d.ts",
3590
3590
  default: "./dist/library/types.js"
@@ -3602,13 +3602,13 @@ defineOptions({
3602
3602
  "*.scss",
3603
3603
  "**/*.css",
3604
3604
  "**/*.scss"
3605
- ], e.writeByPath(ae, n)), this;
3605
+ ], e.writeByPath(m, n)), this;
3606
3606
  }
3607
3607
  makeUiProperties() {
3608
- let n = D(t.getProjectName());
3609
- return e.writeByPath(se, `@forward "./src/styles/${n}/style.scss";`), this;
3608
+ let n = k(t.getProjectName());
3609
+ return e.writeByPath(oe, `@forward "./src/styles/${n}/style.scss";`), this;
3610
3610
  }
3611
- }, wr = /^(boolean|number|string|null|any|void|object|unknown|never)$/, Tr = class {
3611
+ }, Tr = class {
3612
3612
  project;
3613
3613
  path;
3614
3614
  data;
@@ -3619,7 +3619,7 @@ defineOptions({
3619
3619
  }
3620
3620
  async get() {
3621
3621
  if (this.wiki) {
3622
- let e = `${D(t.getDesignName())}${this.wiki.getName()}`, n = {
3622
+ let e = `${k(t.getDesignName())}${this.wiki.getName()}`, n = {
3623
3623
  name: e,
3624
3624
  description: this.wiki.getDescription(),
3625
3625
  source: {
@@ -3633,13 +3633,20 @@ defineOptions({
3633
3633
  return i && i.length > 0 && (n.js = { events: i }), n;
3634
3634
  }
3635
3635
  }
3636
+ getDirName() {
3637
+ return this.data.dir;
3638
+ }
3636
3639
  getProp(e) {
3637
- let t = this.prepareType(e.getType()), n = t ? this.cleanType(t) : void 0;
3640
+ let t, n = e.getOptions();
3641
+ if (n && (he(n) ? t = n.map((e) => typeof e == "string" ? `'${e}'` : String(e)).join(" | ") : C(n) && (t = Object.keys(n).map((e) => `'${e}'`).join(" | "))), !t) {
3642
+ let n = e.getType();
3643
+ t = n ? this.cleanType(n) : void 0;
3644
+ }
3638
3645
  return {
3639
3646
  name: e.getName(),
3640
3647
  description: e.getDescription(),
3641
3648
  default: e.getDefaultValue() ?? void 0,
3642
- type: n
3649
+ type: t
3643
3650
  };
3644
3651
  }
3645
3652
  getProps() {
@@ -3678,9 +3685,6 @@ defineOptions({
3678
3685
  }), t;
3679
3686
  }
3680
3687
  }
3681
- getDirName() {
3682
- return this.data.dir;
3683
- }
3684
3688
  async init() {
3685
3689
  return this.wiki = await this.initWiki(), this;
3686
3690
  }
@@ -3688,8 +3692,8 @@ defineOptions({
3688
3692
  if (!this.dataComponent) {
3689
3693
  let t = this.getPaths(["wikiData.ts"]);
3690
3694
  if (e.is(t)) try {
3691
- let e = await import(t.join("/"));
3692
- this.dataComponent = Object.values(e).find((e) => "component" in e);
3695
+ let n = await import(e.toUrl(t));
3696
+ this.dataComponent = Object.values(n).find((e) => "component" in e);
3693
3697
  } catch (e) {
3694
3698
  console.error(t, e);
3695
3699
  }
@@ -3706,14 +3710,21 @@ defineOptions({
3706
3710
  getPaths(e) {
3707
3711
  return [...this.getDirs(), ...e];
3708
3712
  }
3709
- prepareType(e) {
3710
- return e && y(e.split("|"), (e) => {
3711
- let t = e.trim();
3712
- if (t !== "undefined") return wr.test(t) ? t : `'${t}'`;
3713
- }).join(" | ");
3714
- }
3715
3713
  cleanType(e) {
3716
- return e.replace(/^\(([^()]+)\)$/, "$1").replace(/^\(([^()]+)\)\s*\|\s*undefined$/, "$1 | undefined").trim();
3714
+ let t = e.trim();
3715
+ for (t = t.replace(/\s*\|\s*undefined$/, "").trim(); t.startsWith("(") && t.endsWith(")");) {
3716
+ let e = 0, n = !0;
3717
+ for (let r = 0; r < t.length - 1; r++) {
3718
+ let i = t[r];
3719
+ if (i === "(" ? e++ : i === ")" && e--, e === 0) {
3720
+ n = !1;
3721
+ break;
3722
+ }
3723
+ }
3724
+ if (n) t = t.slice(1, -1).trim();
3725
+ else break;
3726
+ }
3727
+ return t;
3717
3728
  }
3718
3729
  async initWiki() {
3719
3730
  let e = await this.getData();
@@ -3726,15 +3737,15 @@ defineOptions({
3726
3737
  dir;
3727
3738
  components;
3728
3739
  constructor(e = "dist") {
3729
- this.dir = e, me.setErrorStatus(!0), this.components = new ar();
3740
+ this.dir = e, pe.setErrorStatus(!0), this.components = new or();
3730
3741
  }
3731
3742
  async make() {
3732
- let n = h();
3743
+ let n = g();
3733
3744
  if (console.log("[DesignWikiStorm] make"), n) {
3734
3745
  let r = {
3735
3746
  $schema: "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3736
3747
  framework: "vue",
3737
- name: D(t.getDesignName()),
3748
+ name: k(t.getDesignName()),
3738
3749
  version: n.version,
3739
3750
  "js-types-syntax": "typescript",
3740
3751
  contributions: { html: {
@@ -3746,7 +3757,7 @@ defineOptions({
3746
3757
  }
3747
3758
  }
3748
3759
  async getComponents() {
3749
- let e = h(), t = [];
3760
+ let e = g(), t = [];
3750
3761
  if (e) for (let n of this.components.getComponentList()) {
3751
3762
  let r = new Tr(e.name, this.components.getComponentsPath(), n);
3752
3763
  await r.init();
@@ -3757,4 +3768,4 @@ defineOptions({
3757
3768
  }
3758
3769
  };
3759
3770
  //#endregion
3760
- export { Ee as ComponentCreator, Ln as DesignConstructors, Wn as DesignFlags, Cr as DesignUi, Er as DesignWikiStorm, pe as PackageInit };
3771
+ export { Ee as ComponentCreator, Rn as DesignConstructors, Gn as DesignFlags, wr as DesignUi, Er as DesignWikiStorm, fe as PackageInit };