@mlightcad/cad-viewer 1.2.4 → 1.2.5

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.
Files changed (65) hide show
  1. package/README.md +4 -0
  2. package/dist/app/app.d.ts.map +1 -1
  3. package/dist/app/register.d.ts.map +1 -1
  4. package/dist/command/index.d.ts +0 -1
  5. package/dist/command/index.d.ts.map +1 -1
  6. package/dist/component/MlCadViewer.vue.d.ts +1 -1
  7. package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
  8. package/dist/component/common/MlBaseInputNumber.vue.d.ts +35 -0
  9. package/dist/component/common/MlBaseInputNumber.vue.d.ts.map +1 -0
  10. package/dist/component/common/index.d.ts +1 -0
  11. package/dist/component/common/index.d.ts.map +1 -1
  12. package/dist/component/index.d.ts +1 -1
  13. package/dist/component/index.d.ts.map +1 -1
  14. package/dist/component/layout/MlEntityInfo.vue.d.ts.map +1 -1
  15. package/dist/component/layout/MlLanguageSelector.vue.d.ts.map +1 -1
  16. package/dist/component/layout/MlMainMenu.vue.d.ts.map +1 -1
  17. package/dist/component/layout/index.d.ts +0 -1
  18. package/dist/component/layout/index.d.ts.map +1 -1
  19. package/dist/component/palette/MlEntityProperties.vue.d.ts +32 -0
  20. package/dist/component/palette/MlEntityProperties.vue.d.ts.map +1 -0
  21. package/dist/component/palette/MlLayerList.vue.d.ts.map +1 -0
  22. package/dist/component/{layerManager/MlLayerManager.vue.d.ts → palette/MlPaletteManager.vue.d.ts} +1 -1
  23. package/dist/component/palette/MlPaletteManager.vue.d.ts.map +1 -0
  24. package/dist/component/palette/index.d.ts +2 -0
  25. package/dist/component/palette/index.d.ts.map +1 -0
  26. package/dist/component/statusBar/MlProgress.vue.d.ts.map +1 -1
  27. package/dist/component/statusBar/MlSettingButton.vue.d.ts.map +1 -1
  28. package/dist/composable/index.d.ts +2 -0
  29. package/dist/composable/index.d.ts.map +1 -1
  30. package/dist/composable/useHover.d.ts +3260 -0
  31. package/dist/composable/useHover.d.ts.map +1 -0
  32. package/dist/composable/useLocale.d.ts +4 -3
  33. package/dist/composable/useLocale.d.ts.map +1 -1
  34. package/dist/composable/useSelectionSet.d.ts +6 -0
  35. package/dist/composable/useSelectionSet.d.ts.map +1 -0
  36. package/dist/composable/useSettings.d.ts +3 -0
  37. package/dist/composable/useSettings.d.ts.map +1 -1
  38. package/dist/index.css +1 -1
  39. package/dist/index.js +1809 -1336
  40. package/dist/locale/en/command.d.ts +0 -9
  41. package/dist/locale/en/command.d.ts.map +1 -1
  42. package/dist/locale/en/entity.d.ts +77 -0
  43. package/dist/locale/en/entity.d.ts.map +1 -1
  44. package/dist/locale/en/main.d.ts +14 -19
  45. package/dist/locale/en/main.d.ts.map +1 -1
  46. package/dist/locale/i18n.d.ts +6 -671
  47. package/dist/locale/i18n.d.ts.map +1 -1
  48. package/dist/locale/types.d.ts +2 -2
  49. package/dist/locale/types.d.ts.map +1 -1
  50. package/dist/locale/zh/command.d.ts +0 -9
  51. package/dist/locale/zh/command.d.ts.map +1 -1
  52. package/dist/locale/zh/entity.d.ts +77 -0
  53. package/dist/locale/zh/entity.d.ts.map +1 -1
  54. package/dist/locale/zh/main.d.ts +14 -19
  55. package/dist/locale/zh/main.d.ts.map +1 -1
  56. package/package.json +7 -7
  57. package/dist/command/AcApLogCmd.d.ts +0 -12
  58. package/dist/command/AcApLogCmd.d.ts.map +0 -1
  59. package/dist/component/layerManager/MlLayerList.vue.d.ts.map +0 -1
  60. package/dist/component/layerManager/MlLayerManager.vue.d.ts.map +0 -1
  61. package/dist/component/layerManager/index.d.ts +0 -2
  62. package/dist/component/layerManager/index.d.ts.map +0 -1
  63. package/dist/component/layout/MlCommandLine.vue.d.ts +0 -3
  64. package/dist/component/layout/MlCommandLine.vue.d.ts.map +0 -1
  65. /package/dist/component/{layerManager → palette}/MlLayerList.vue.d.ts +0 -0
package/dist/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import "./index.css";
2
- import { AcEdCommandStack as U, AcApDocManager as E, eventBus as Q, AcApSettingManager as Z, AcApConvertToSvgCmd as Oe, AcApQNewCmd as Re, AcApOpenCmd as He, registerWorkers as Ge, AcEdCommand as ue } from "@mlightcad/cad-simple-viewer";
2
+ import { AcEdCommandStack as K, AcApDocManager as P, AcApI18n as ae, eventBus as Q, AcApSettingManager as U, AcApConvertToSvgCmd as Ye, AcApQNewCmd as Ge, AcApOpenCmd as Xe, AcEdCommand as be } from "@mlightcad/cad-simple-viewer";
3
3
  import "element-plus/dist/index.css";
4
- import { defineComponent as z, createElementBlock as g, openBlock as u, createElementVNode as r, computed as C, watch as V, resolveComponent as S, createCommentVNode as O, createVNode as d, Transition as We, withCtx as f, withDirectives as qe, normalizeStyle as re, createBlock as B, resolveDynamicComponent as ae, toDisplayString as $, unref as p, renderSlot as ce, createTextVNode as I, vShow as Ue, reactive as Y, ref as k, onMounted as q, onUnmounted as ne, Fragment as j, renderList as K, mergeProps as je, mergeModels as ee, useCssVars as De, useModel as _e, normalizeClass as we, pushScopeId as Te, popScopeId as $e, onBeforeUnmount as Ae, withKeys as Ye, nextTick as Ke, isRef as Xe, markRaw as xe } from "vue";
5
- import { AcDbDatabaseConverterManager as Qe, acdbHostApplicationServices as Ee, AcCmPerformanceCollector as Ze } from "@mlightcad/data-model";
6
- import { useDark as Je, useToggle as et, useMediaQuery as tt, useFullscreen as nt } from "@vueuse/core";
4
+ import { defineComponent as E, createElementBlock as w, openBlock as s, createElementVNode as d, computed as T, watch as I, resolveComponent as L, createCommentVNode as O, createVNode as p, Transition as We, withCtx as f, withDirectives as Ze, normalizeStyle as me, createBlock as B, resolveDynamicComponent as re, toDisplayString as V, unref as m, renderSlot as ie, createTextVNode as R, vShow as Ue, ref as M, Fragment as G, renderList as W, reactive as q, onMounted as Z, onUnmounted as ne, mergeProps as qe, mergeModels as le, useCssVars as Ee, useModel as pe, normalizeClass as ve, pushScopeId as $e, popScopeId as Ve, onBeforeUnmount as Pe, nextTick as je, isRef as Qe, markRaw as ke } from "vue";
5
+ import { useDark as Je, useToggle as Ke, useMediaQuery as et, useFullscreen as tt } from "@vueuse/core";
6
+ import { AcDbDatabaseConverterManager as nt, acdbHostApplicationServices as Ae } from "@mlightcad/data-model";
7
7
  import ot from "element-plus/es/locale/lang/en";
8
8
  import lt from "element-plus/es/locale/lang/zh-cn";
9
- import { useI18n as R, createI18n as at } from "vue-i18n";
10
- import { ElIcon as de, ElDropdown as it, ElDropdownMenu as st, ElDropdownItem as rt, ElButtonGroup as ct, ElTooltip as ut, ElButton as dt } from "element-plus/es";
9
+ import { useI18n as Y, createI18n as at } from "vue-i18n";
10
+ import { ElInput as it, ElSelect as st, ElOption as rt, ElMessage as ee, ElTable as ct, ElProgress as ut } from "element-plus";
11
+ import { ElIcon as fe, ElTabs as dt, ElTabPane as mt, ElDropdown as pt, ElDropdownMenu as vt, ElDropdownItem as ft, ElButtonGroup as gt, ElTooltip as ht, ElButton as _t } from "element-plus/es";
11
12
  import "element-plus/es/components/base/style/css";
12
13
  import "element-plus/es/components/icon/style/css";
13
14
  import "element-plus/es/components/dropdown/style/css";
@@ -16,236 +17,237 @@ import "element-plus/es/components/dropdown-item/style/css";
16
17
  import "element-plus/es/components/tooltip/style/css";
17
18
  import "element-plus/es/components/button/style/css";
18
19
  import "element-plus/es/components/button-group/style/css";
19
- import { ElTable as mt, ElAutocomplete as pt, ElProgress as ft, ElLoading as ke, ElMessage as oe } from "element-plus";
20
+ import "element-plus/es/components/tabs/style/css";
21
+ import "element-plus/es/components/tab-pane/style/css";
20
22
  /*! Element Plus Icons Vue v2.3.1 */
21
- var vt = /* @__PURE__ */ z({
23
+ var wt = /* @__PURE__ */ E({
22
24
  name: "Bell",
23
25
  __name: "bell",
24
26
  setup(t) {
25
- return (e, n) => (u(), g("svg", {
27
+ return (e, n) => (s(), w("svg", {
26
28
  xmlns: "http://www.w3.org/2000/svg",
27
29
  viewBox: "0 0 1024 1024"
28
30
  }, [
29
- r("path", {
31
+ d("path", {
30
32
  fill: "currentColor",
31
33
  d: "M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"
32
34
  }),
33
- r("path", {
35
+ d("path", {
34
36
  fill: "currentColor",
35
37
  d: "M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"
36
38
  }),
37
- r("path", {
39
+ d("path", {
38
40
  fill: "currentColor",
39
41
  d: "M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"
40
42
  })
41
43
  ]));
42
44
  }
43
- }), he = vt, gt = /* @__PURE__ */ z({
45
+ }), ye = wt, yt = /* @__PURE__ */ E({
44
46
  name: "Check",
45
47
  __name: "check",
46
48
  setup(t) {
47
- return (e, n) => (u(), g("svg", {
49
+ return (e, n) => (s(), w("svg", {
48
50
  xmlns: "http://www.w3.org/2000/svg",
49
51
  viewBox: "0 0 1024 1024"
50
52
  }, [
51
- r("path", {
53
+ d("path", {
52
54
  fill: "currentColor",
53
55
  d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
54
56
  })
55
57
  ]));
56
58
  }
57
- }), ie = gt, ht = /* @__PURE__ */ z({
59
+ }), J = yt, bt = /* @__PURE__ */ E({
58
60
  name: "CircleCloseFilled",
59
61
  __name: "circle-close-filled",
60
62
  setup(t) {
61
- return (e, n) => (u(), g("svg", {
63
+ return (e, n) => (s(), w("svg", {
62
64
  xmlns: "http://www.w3.org/2000/svg",
63
65
  viewBox: "0 0 1024 1024"
64
66
  }, [
65
- r("path", {
67
+ d("path", {
66
68
  fill: "currentColor",
67
69
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
68
70
  })
69
71
  ]));
70
72
  }
71
- }), _t = ht, wt = /* @__PURE__ */ z({
73
+ }), xt = bt, kt = /* @__PURE__ */ E({
72
74
  name: "Close",
73
75
  __name: "close",
74
76
  setup(t) {
75
- return (e, n) => (u(), g("svg", {
77
+ return (e, n) => (s(), w("svg", {
76
78
  xmlns: "http://www.w3.org/2000/svg",
77
79
  viewBox: "0 0 1024 1024"
78
80
  }, [
79
- r("path", {
81
+ d("path", {
80
82
  fill: "currentColor",
81
83
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
82
84
  })
83
85
  ]));
84
86
  }
85
- }), ye = wt, yt = /* @__PURE__ */ z({
87
+ }), xe = kt, Mt = /* @__PURE__ */ E({
86
88
  name: "Delete",
87
89
  __name: "delete",
88
90
  setup(t) {
89
- return (e, n) => (u(), g("svg", {
91
+ return (e, n) => (s(), w("svg", {
90
92
  xmlns: "http://www.w3.org/2000/svg",
91
93
  viewBox: "0 0 1024 1024"
92
94
  }, [
93
- r("path", {
95
+ d("path", {
94
96
  fill: "currentColor",
95
97
  d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
96
98
  })
97
99
  ]));
98
100
  }
99
- }), bt = yt, xt = /* @__PURE__ */ z({
101
+ }), Ct = Mt, St = /* @__PURE__ */ E({
100
102
  name: "InfoFilled",
101
103
  __name: "info-filled",
102
104
  setup(t) {
103
- return (e, n) => (u(), g("svg", {
105
+ return (e, n) => (s(), w("svg", {
104
106
  xmlns: "http://www.w3.org/2000/svg",
105
107
  viewBox: "0 0 1024 1024"
106
108
  }, [
107
- r("path", {
109
+ d("path", {
108
110
  fill: "currentColor",
109
111
  d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
110
112
  })
111
113
  ]));
112
114
  }
113
- }), Me = xt, kt = /* @__PURE__ */ z({
115
+ }), Me = St, Lt = /* @__PURE__ */ E({
114
116
  name: "Menu",
115
117
  __name: "menu",
116
118
  setup(t) {
117
- return (e, n) => (u(), g("svg", {
119
+ return (e, n) => (s(), w("svg", {
118
120
  xmlns: "http://www.w3.org/2000/svg",
119
121
  viewBox: "0 0 1024 1024"
120
122
  }, [
121
- r("path", {
123
+ d("path", {
122
124
  fill: "currentColor",
123
125
  d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
124
126
  })
125
127
  ]));
126
128
  }
127
- }), Mt = kt, Ct = /* @__PURE__ */ z({
129
+ }), Tt = Lt, zt = /* @__PURE__ */ E({
128
130
  name: "Moon",
129
131
  __name: "moon",
130
132
  setup(t) {
131
- return (e, n) => (u(), g("svg", {
133
+ return (e, n) => (s(), w("svg", {
132
134
  xmlns: "http://www.w3.org/2000/svg",
133
135
  viewBox: "0 0 1024 1024"
134
136
  }, [
135
- r("path", {
137
+ d("path", {
136
138
  fill: "currentColor",
137
139
  d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"
138
140
  })
139
141
  ]));
140
142
  }
141
- }), St = Ct, Lt = /* @__PURE__ */ z({
143
+ }), Bt = zt, Dt = /* @__PURE__ */ E({
142
144
  name: "Operation",
143
145
  __name: "operation",
144
146
  setup(t) {
145
- return (e, n) => (u(), g("svg", {
147
+ return (e, n) => (s(), w("svg", {
146
148
  xmlns: "http://www.w3.org/2000/svg",
147
149
  viewBox: "0 0 1024 1024"
148
150
  }, [
149
- r("path", {
151
+ d("path", {
150
152
  fill: "currentColor",
151
153
  d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
152
154
  })
153
155
  ]));
154
156
  }
155
- }), zt = Lt, Bt = /* @__PURE__ */ z({
157
+ }), Et = Dt, $t = /* @__PURE__ */ E({
156
158
  name: "Setting",
157
159
  __name: "setting",
158
160
  setup(t) {
159
- return (e, n) => (u(), g("svg", {
161
+ return (e, n) => (s(), w("svg", {
160
162
  xmlns: "http://www.w3.org/2000/svg",
161
163
  viewBox: "0 0 1024 1024"
162
164
  }, [
163
- r("path", {
165
+ d("path", {
164
166
  fill: "currentColor",
165
167
  d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
166
168
  })
167
169
  ]));
168
170
  }
169
- }), Dt = Bt, Tt = /* @__PURE__ */ z({
171
+ }), Vt = $t, Pt = /* @__PURE__ */ E({
170
172
  name: "SuccessFilled",
171
173
  __name: "success-filled",
172
174
  setup(t) {
173
- return (e, n) => (u(), g("svg", {
175
+ return (e, n) => (s(), w("svg", {
174
176
  xmlns: "http://www.w3.org/2000/svg",
175
177
  viewBox: "0 0 1024 1024"
176
178
  }, [
177
- r("path", {
179
+ d("path", {
178
180
  fill: "currentColor",
179
181
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
180
182
  })
181
183
  ]));
182
184
  }
183
- }), $t = Tt, At = /* @__PURE__ */ z({
185
+ }), At = Pt, Nt = /* @__PURE__ */ E({
184
186
  name: "Sunny",
185
187
  __name: "sunny",
186
188
  setup(t) {
187
- return (e, n) => (u(), g("svg", {
189
+ return (e, n) => (s(), w("svg", {
188
190
  xmlns: "http://www.w3.org/2000/svg",
189
191
  viewBox: "0 0 1024 1024"
190
192
  }, [
191
- r("path", {
193
+ d("path", {
192
194
  fill: "currentColor",
193
195
  d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"
194
196
  })
195
197
  ]));
196
198
  }
197
- }), Et = At, Vt = /* @__PURE__ */ z({
199
+ }), It = Nt, Ft = /* @__PURE__ */ E({
198
200
  name: "WarningFilled",
199
201
  __name: "warning-filled",
200
202
  setup(t) {
201
- return (e, n) => (u(), g("svg", {
203
+ return (e, n) => (s(), w("svg", {
202
204
  xmlns: "http://www.w3.org/2000/svg",
203
205
  viewBox: "0 0 1024 1024"
204
206
  }, [
205
- r("path", {
207
+ d("path", {
206
208
  fill: "currentColor",
207
209
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
208
210
  })
209
211
  ]));
210
212
  }
211
- }), Ft = Vt, Nt = /* @__PURE__ */ z({
213
+ }), Rt = Ft, Ot = /* @__PURE__ */ E({
212
214
  name: "Warning",
213
215
  __name: "warning",
214
216
  setup(t) {
215
- return (e, n) => (u(), g("svg", {
217
+ return (e, n) => (s(), w("svg", {
216
218
  xmlns: "http://www.w3.org/2000/svg",
217
219
  viewBox: "0 0 1024 1024"
218
220
  }, [
219
- r("path", {
221
+ d("path", {
220
222
  fill: "currentColor",
221
223
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
222
224
  })
223
225
  ]));
224
226
  }
225
- }), It = Nt;
226
- const Pt = {
227
+ }), Ht = Ot;
228
+ const Yt = {
227
229
  xmlns: "http://www.w3.org/2000/svg",
228
230
  width: "1em",
229
231
  height: "1em",
230
232
  viewBox: "0 0 15 15"
231
233
  };
232
- function Ot(t, e) {
233
- return u(), g("svg", Pt, e[0] || (e[0] = [
234
- r("path", {
234
+ function Gt(t, e) {
235
+ return s(), w("svg", Yt, e[0] || (e[0] = [
236
+ d("path", {
235
237
  fill: "currentColor",
236
238
  d: "M1.417 11.667h1.916v.833H0V9.167h.833v1.916l2.5-2.5.584.584zm9.666 0-2.5-2.5.584-.584 2.5 2.5V9.167h.833V12.5H9.167v-.833zM1.417.833l2.5 2.5-.584.584-2.5-2.5v1.916H0V0h3.333v.833zm9.666 0H9.167V0H12.5v3.333h-.833V1.417l-2.5 2.5-.584-.584z"
237
239
  }, null, -1)
238
240
  ]));
239
241
  }
240
- const Ce = { render: Ot }, Rt = {
242
+ const Ce = { render: Gt }, Xt = {
241
243
  xmlns: "http://www.w3.org/2000/svg",
242
244
  width: "1em",
243
245
  height: "1em",
244
246
  viewBox: "0 0 512 512"
245
247
  };
246
- function Ht(t, e) {
247
- return u(), g("svg", Rt, e[0] || (e[0] = [
248
- r("path", {
248
+ function Wt(t, e) {
249
+ return s(), w("svg", Xt, e[0] || (e[0] = [
250
+ d("path", {
249
251
  fill: "none",
250
252
  stroke: "currentColor",
251
253
  "stroke-linecap": "round",
@@ -253,7 +255,7 @@ function Ht(t, e) {
253
255
  "stroke-width": "32",
254
256
  d: "m434.8 137.65-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"
255
257
  }, null, -1),
256
- r("path", {
258
+ d("path", {
257
259
  fill: "none",
258
260
  stroke: "currentColor",
259
261
  "stroke-linecap": "round",
@@ -263,17 +265,17 @@ function Ht(t, e) {
263
265
  }, null, -1)
264
266
  ]));
265
267
  }
266
- const Gt = { render: Ht }, Wt = {
268
+ const Zt = { render: Wt }, Ut = {
267
269
  xmlns: "http://www.w3.org/2000/svg",
268
270
  viewBox: "0 0 1024 1024"
269
271
  };
270
272
  function qt(t, e) {
271
- return u(), g("svg", Wt, e[0] || (e[0] = [
272
- r("path", {
273
+ return s(), w("svg", Ut, e[0] || (e[0] = [
274
+ d("path", {
273
275
  fill: "currentColor",
274
276
  d: "M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"
275
277
  }, null, -1),
276
- r("text", {
278
+ d("text", {
277
279
  x: "512",
278
280
  y: "580",
279
281
  fill: "currentColor",
@@ -285,311 +287,311 @@ function qt(t, e) {
285
287
  }, "ML", -1)
286
288
  ]));
287
289
  }
288
- const Ut = { render: qt }, jt = {
290
+ const jt = { render: qt }, Qt = {
289
291
  xmlns: "http://www.w3.org/2000/svg",
290
292
  width: "1em",
291
293
  height: "1em",
292
294
  viewBox: "0 0 20 20"
293
295
  };
294
- function Yt(t, e) {
295
- return u(), g("svg", jt, e[0] || (e[0] = [
296
- r("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
296
+ function Jt(t, e) {
297
+ return s(), w("svg", Qt, e[0] || (e[0] = [
298
+ d("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
297
299
  ]));
298
300
  }
299
- const Kt = { render: Yt }, Xt = {
301
+ const Kt = { render: Jt }, en = {
300
302
  xmlns: "http://www.w3.org/2000/svg",
301
303
  width: "1em",
302
304
  height: "1em",
303
305
  viewBox: "0 0 20 20"
304
306
  };
305
- function Qt(t, e) {
306
- return u(), g("svg", Xt, e[0] || (e[0] = [
307
- r("path", {
307
+ function tn(t, e) {
308
+ return s(), w("svg", en, e[0] || (e[0] = [
309
+ d("path", {
308
310
  fill: "currentColor",
309
311
  d: "M10.438 15.298h.002l4.86-4.86-9.722-4.86zM18 10l-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2L10 18 2.4 2.4z"
310
312
  }, null, -1)
311
313
  ]));
312
314
  }
313
- const Zt = { render: Qt }, Jt = {
315
+ const nn = { render: tn }, on = {
314
316
  xmlns: "http://www.w3.org/2000/svg",
315
317
  width: "1em",
316
318
  height: "1em",
317
319
  viewBox: "0 0 20 20"
318
320
  };
319
- function en(t, e) {
320
- return u(), g("svg", Jt, e[0] || (e[0] = [
321
- r("path", {
321
+ function ln(t, e) {
322
+ return s(), w("svg", on, e[0] || (e[0] = [
323
+ d("path", {
322
324
  fill: "currentColor",
323
325
  d: "M15.083 14.808a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575a8.334 8.334 0 0 1-11.525-.692 8.326 8.326 0 0 1 .233-11.542C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525m-3.55-2.608V7.208H7.208v5.584zM5.875 5.875h8.25v8.25h-8.25z"
324
326
  }, null, -1)
325
327
  ]));
326
328
  }
327
- const tn = { render: en }, nn = {
329
+ const an = { render: ln }, sn = {
328
330
  xmlns: "http://www.w3.org/2000/svg",
329
331
  width: "1em",
330
332
  height: "1em",
331
333
  viewBox: "0 0 20 20"
332
334
  };
333
- function on(t, e) {
334
- return u(), g("svg", nn, e[0] || (e[0] = [
335
- r("path", {
335
+ function rn(t, e) {
336
+ return s(), w("svg", sn, e[0] || (e[0] = [
337
+ d("path", {
336
338
  fill: "currentColor",
337
339
  d: "m9.333 14.125-3.458-3.458v3.458zm4.792-3.458-3.458 3.458h3.458zm-3.458-4.792 3.458 3.458V5.875zM5.875 9.333l3.458-3.458H5.875zm9.208 5.475a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575c-3.408 2.9-8.492 2.591-11.525-.692S.942 7.275 4.108 4.108C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525"
338
340
  }, null, -1)
339
341
  ]));
340
342
  }
341
- const ln = { render: on }, an = {
343
+ const cn = { render: rn }, un = {
342
344
  xmlns: "http://www.w3.org/2000/svg",
343
345
  width: "1em",
344
346
  height: "1em",
345
347
  viewBox: "0 0 20 20"
346
348
  };
347
- function sn(t, e) {
348
- return u(), g("svg", an, e[0] || (e[0] = [
349
- r("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
349
+ function dn(t, e) {
350
+ return s(), w("svg", un, e[0] || (e[0] = [
351
+ d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
350
352
  ]));
351
353
  }
352
- const rn = { render: sn }, cn = {
354
+ const mn = { render: dn }, pn = {
353
355
  xmlns: "http://www.w3.org/2000/svg",
354
356
  width: "1em",
355
357
  height: "1em",
356
358
  viewBox: "0 0 20 20"
357
359
  };
358
- function un(t, e) {
359
- return u(), g("svg", cn);
360
+ function vn(t, e) {
361
+ return s(), w("svg", pn);
360
362
  }
361
- const dn = { render: un }, mn = {
363
+ const fn = { render: vn }, gn = {
362
364
  xmlns: "http://www.w3.org/2000/svg",
363
365
  width: "1em",
364
366
  height: "1em",
365
367
  viewBox: "0 0 20 20"
366
368
  };
367
- function pn(t, e) {
368
- return u(), g("svg", mn, e[0] || (e[0] = [
369
- r("path", { d: "M2 9.5h16v1H2z" }, null, -1),
370
- r("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
369
+ function hn(t, e) {
370
+ return s(), w("svg", gn, e[0] || (e[0] = [
371
+ d("path", { d: "M2 9.5h16v1H2z" }, null, -1),
372
+ d("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
371
373
  ]));
372
374
  }
373
- const fn = { render: pn }, vn = {
375
+ const _n = { render: hn }, wn = {
374
376
  xmlns: "http://www.w3.org/2000/svg",
375
377
  width: "1em",
376
378
  height: "1em",
377
379
  viewBox: "0 0 20 20"
378
380
  };
379
- function gn(t, e) {
380
- return u(), g("svg", vn, e[0] || (e[0] = [
381
- r("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
382
- r("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
381
+ function yn(t, e) {
382
+ return s(), w("svg", wn, e[0] || (e[0] = [
383
+ d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
384
+ d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
383
385
  ]));
384
386
  }
385
- const hn = { render: gn }, _n = {
387
+ const bn = { render: yn }, xn = {
386
388
  xmlns: "http://www.w3.org/2000/svg",
387
389
  width: "1em",
388
390
  height: "1em",
389
391
  viewBox: "0 0 20 20"
390
392
  };
391
- function wn(t, e) {
392
- return u(), g("svg", _n, e[0] || (e[0] = [
393
- r("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
393
+ function kn(t, e) {
394
+ return s(), w("svg", xn, e[0] || (e[0] = [
395
+ d("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
394
396
  ]));
395
397
  }
396
- const yn = { render: wn }, bn = {
398
+ const Mn = { render: kn }, Cn = {
397
399
  xmlns: "http://www.w3.org/2000/svg",
398
400
  width: "1em",
399
401
  height: "1em",
400
402
  viewBox: "0 0 20 20"
401
403
  };
402
- function xn(t, e) {
403
- return u(), g("svg", bn, e[0] || (e[0] = [
404
- r("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
405
- r("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
404
+ function Sn(t, e) {
405
+ return s(), w("svg", Cn, e[0] || (e[0] = [
406
+ d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
407
+ d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
406
408
  ]));
407
409
  }
408
- const kn = { render: xn }, Mn = {
410
+ const Ln = { render: Sn }, Tn = {
409
411
  xmlns: "http://www.w3.org/2000/svg",
410
412
  width: "1em",
411
413
  height: "1em",
412
414
  viewBox: "0 0 20 20"
413
415
  };
414
- function Cn(t, e) {
415
- return u(), g("svg", Mn, e[0] || (e[0] = [
416
- r("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
416
+ function zn(t, e) {
417
+ return s(), w("svg", Tn, e[0] || (e[0] = [
418
+ d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
417
419
  ]));
418
420
  }
419
- const Sn = { render: Cn }, Ln = {
421
+ const Bn = { render: zn }, Dn = {
420
422
  xmlns: "http://www.w3.org/2000/svg",
421
423
  width: "1em",
422
424
  height: "1em",
423
425
  viewBox: "0 0 20 20"
424
426
  };
425
- function zn(t, e) {
426
- return u(), g("svg", Ln, e[0] || (e[0] = [
427
- r("path", { d: "M3 9.5h14v1H3z" }, null, -1),
428
- r("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
429
- r("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
427
+ function En(t, e) {
428
+ return s(), w("svg", Dn, e[0] || (e[0] = [
429
+ d("path", { d: "M3 9.5h14v1H3z" }, null, -1),
430
+ d("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
431
+ d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
430
432
  ]));
431
433
  }
432
- const Bn = { render: zn }, Dn = {
434
+ const $n = { render: En }, Vn = {
433
435
  xmlns: "http://www.w3.org/2000/svg",
434
436
  width: "1em",
435
437
  height: "1em",
436
438
  viewBox: "0 0 20 20"
437
439
  };
438
- function Tn(t, e) {
439
- return u(), g("svg", Dn, e[0] || (e[0] = [
440
- r("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
441
- r("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
442
- r("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
440
+ function Pn(t, e) {
441
+ return s(), w("svg", Vn, e[0] || (e[0] = [
442
+ d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
443
+ d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
444
+ d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
443
445
  ]));
444
446
  }
445
- const $n = { render: Tn }, An = {
447
+ const An = { render: Pn }, Nn = {
446
448
  xmlns: "http://www.w3.org/2000/svg",
447
449
  width: "1em",
448
450
  height: "1em",
449
451
  viewBox: "0 0 20 20"
450
452
  };
451
- function En(t, e) {
452
- return u(), g("svg", An, e[0] || (e[0] = [
453
- r("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
454
- r("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
453
+ function In(t, e) {
454
+ return s(), w("svg", Nn, e[0] || (e[0] = [
455
+ d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
456
+ d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
455
457
  ]));
456
458
  }
457
- const Vn = { render: En }, Fn = {
459
+ const Fn = { render: In }, Rn = {
458
460
  xmlns: "http://www.w3.org/2000/svg",
459
461
  width: "1em",
460
462
  height: "1em",
461
463
  viewBox: "0 0 20 20"
462
464
  };
463
- function Nn(t, e) {
464
- return u(), g("svg", Fn, e[0] || (e[0] = [
465
- r("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
466
- r("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
465
+ function On(t, e) {
466
+ return s(), w("svg", Rn, e[0] || (e[0] = [
467
+ d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
468
+ d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
467
469
  ]));
468
470
  }
469
- const In = { render: Nn }, Pn = {
471
+ const Hn = { render: On }, Yn = {
470
472
  xmlns: "http://www.w3.org/2000/svg",
471
473
  width: "1em",
472
474
  height: "1em",
473
475
  viewBox: "0 0 20 20"
474
476
  };
475
- function On(t, e) {
476
- return u(), g("svg", Pn, e[0] || (e[0] = [
477
- r("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
477
+ function Gn(t, e) {
478
+ return s(), w("svg", Yn, e[0] || (e[0] = [
479
+ d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
478
480
  ]));
479
481
  }
480
- const Rn = { render: On }, Hn = {
482
+ const Xn = { render: Gn }, Wn = {
481
483
  xmlns: "http://www.w3.org/2000/svg",
482
484
  width: "1em",
483
485
  height: "1em",
484
486
  viewBox: "0 0 20 20"
485
487
  };
486
- function Gn(t, e) {
487
- return u(), g("svg", Hn, e[0] || (e[0] = [
488
- r("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
489
- r("path", { d: "M3 9.58h14v1H3z" }, null, -1),
490
- r("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
488
+ function Zn(t, e) {
489
+ return s(), w("svg", Wn, e[0] || (e[0] = [
490
+ d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
491
+ d("path", { d: "M3 9.58h14v1H3z" }, null, -1),
492
+ d("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
491
493
  ]));
492
494
  }
493
- const Wn = { render: Gn }, qn = {
495
+ const Un = { render: Zn }, qn = {
494
496
  xmlns: "http://www.w3.org/2000/svg",
495
497
  width: "1em",
496
498
  height: "1em",
497
499
  viewBox: "0 0 20 20"
498
500
  };
499
- function Un(t, e) {
500
- return u(), g("svg", qn, e[0] || (e[0] = [
501
- r("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
502
- r("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
503
- r("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
501
+ function jn(t, e) {
502
+ return s(), w("svg", qn, e[0] || (e[0] = [
503
+ d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
504
+ d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
505
+ d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
504
506
  ]));
505
507
  }
506
- const jn = { render: Un }, Yn = {
508
+ const Qn = { render: jn }, Jn = {
507
509
  xmlns: "http://www.w3.org/2000/svg",
508
510
  width: "1em",
509
511
  height: "1em",
510
512
  viewBox: "0 0 20 20"
511
513
  };
512
514
  function Kn(t, e) {
513
- return u(), g("svg", Yn, e[0] || (e[0] = [
514
- r("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
515
- r("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
515
+ return s(), w("svg", Jn, e[0] || (e[0] = [
516
+ d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
517
+ d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
516
518
  ]));
517
519
  }
518
- const Xn = { render: Kn }, Qn = {
520
+ const eo = { render: Kn }, to = {
519
521
  xmlns: "http://www.w3.org/2000/svg",
520
522
  width: "1em",
521
523
  height: "1em",
522
524
  viewBox: "0 0 20 20"
523
525
  };
524
- function Zn(t, e) {
525
- return u(), g("svg", Qn, e[0] || (e[0] = [
526
- r("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
527
- r("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
528
- r("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
526
+ function no(t, e) {
527
+ return s(), w("svg", to, e[0] || (e[0] = [
528
+ d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
529
+ d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
530
+ d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
529
531
  ]));
530
532
  }
531
- const Jn = { render: Zn }, eo = {
533
+ const oo = { render: no }, lo = {
532
534
  xmlns: "http://www.w3.org/2000/svg",
533
535
  width: "1em",
534
536
  height: "1em",
535
537
  viewBox: "0 0 20 20"
536
538
  };
537
- function to(t, e) {
538
- return u(), g("svg", eo, e[0] || (e[0] = [
539
- r("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
540
- r("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
539
+ function ao(t, e) {
540
+ return s(), w("svg", lo, e[0] || (e[0] = [
541
+ d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
542
+ d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
541
543
  ]));
542
544
  }
543
- const no = { render: to }, oo = {
545
+ const io = { render: ao }, so = {
544
546
  xmlns: "http://www.w3.org/2000/svg",
545
547
  width: "1em",
546
548
  height: "1em",
547
549
  viewBox: "0 0 20 20"
548
550
  };
549
- function lo(t, e) {
550
- return u(), g("svg", oo, e[0] || (e[0] = [
551
- r("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
552
- r("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
553
- r("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
554
- r("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
551
+ function ro(t, e) {
552
+ return s(), w("svg", so, e[0] || (e[0] = [
553
+ d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
554
+ d("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
555
+ d("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
556
+ d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
555
557
  ]));
556
558
  }
557
- const ao = { render: lo }, io = {
559
+ const co = { render: ro }, uo = {
558
560
  xmlns: "http://www.w3.org/2000/svg",
559
561
  width: "1em",
560
562
  height: "1em",
561
563
  viewBox: "0 0 20 20"
562
564
  };
563
- function so(t, e) {
564
- return u(), g("svg", io, e[0] || (e[0] = [
565
- r("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
566
- r("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
567
- r("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
568
- r("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
565
+ function mo(t, e) {
566
+ return s(), w("svg", uo, e[0] || (e[0] = [
567
+ d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
568
+ d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
569
+ d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
570
+ d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
569
571
  ]));
570
572
  }
571
- const ro = { render: so }, co = {
573
+ const po = { render: mo }, vo = {
572
574
  xmlns: "http://www.w3.org/2000/svg",
573
575
  width: "1em",
574
576
  height: "1em",
575
577
  viewBox: "0 0 20 20"
576
578
  };
577
- function uo(t, e) {
578
- return u(), g("svg", co, e[0] || (e[0] = [
579
- r("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
580
- r("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
581
- r("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
579
+ function fo(t, e) {
580
+ return s(), w("svg", vo, e[0] || (e[0] = [
581
+ d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
582
+ d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
583
+ d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
582
584
  ]));
583
585
  }
584
- const mo = { render: uo }, po = {
586
+ const go = { render: fo }, ho = {
585
587
  key: 0,
586
588
  class: "ml-base-dialog",
587
589
  role: "dialog",
588
590
  "aria-modal": "true"
589
- }, fo = { class: "ml-base-dialog-header" }, vo = { class: "ml-base-dialog-title" }, go = {
591
+ }, _o = { class: "ml-base-dialog-header" }, wo = { class: "ml-base-dialog-title" }, yo = {
590
592
  key: 0,
591
593
  class: "ml-base-dialog-icon-wrapper"
592
- }, ho = { class: "ml-base-dialog-actions" }, _o = { class: "ml-base-dialog-body" }, wo = { class: "ml-base-dialog-footer" }, yo = /* @__PURE__ */ z({
594
+ }, bo = { class: "ml-base-dialog-actions" }, xo = { class: "ml-base-dialog-body" }, ko = { class: "ml-base-dialog-footer" }, Mo = /* @__PURE__ */ E({
593
595
  __name: "MlBaseDialog",
594
596
  props: {
595
597
  modelValue: { type: Boolean, required: !0 },
@@ -607,58 +609,58 @@ const mo = { render: uo }, po = {
607
609
  // 🔹 new event
608
610
  ],
609
611
  setup(t, { emit: e }) {
610
- const { t: n } = R(), i = t, o = e, l = C(() => i.icon ?? Ut), a = C(
612
+ const { t: n } = Y(), i = t, o = e, l = T(() => i.icon ?? jt), a = T(
611
613
  () => typeof i.width == "number" ? `${i.width}px` : i.width
612
614
  );
613
- V(
615
+ I(
614
616
  () => i.modelValue,
615
- (v, w) => {
616
- v && !w && o("open");
617
+ (_, x) => {
618
+ _ && !x && o("open");
617
619
  }
618
620
  );
619
621
  function c() {
620
622
  o("opened");
621
623
  }
622
- function s() {
624
+ function r() {
623
625
  o("ok"), o("update:modelValue", !1);
624
626
  }
625
- function m() {
627
+ function g() {
626
628
  o("cancel"), o("update:modelValue", !1);
627
629
  }
628
- return (v, w) => {
629
- const h = S("el-icon"), _ = S("el-button");
630
- return t.modelValue ? (u(), g("div", po, [
631
- r("div", {
630
+ return (_, x) => {
631
+ const h = L("el-icon"), u = L("el-button");
632
+ return t.modelValue ? (s(), w("div", ho, [
633
+ d("div", {
632
634
  class: "ml-base-dialog-overlay",
633
- onClick: m
635
+ onClick: g
634
636
  }),
635
- d(We, {
637
+ p(We, {
636
638
  name: "ml-base-dialog-fade",
637
639
  onAfterEnter: c
638
640
  }, {
639
641
  default: f(() => [
640
- qe(r("div", {
642
+ Ze(d("div", {
641
643
  class: "ml-base-dialog-container",
642
- style: re({ width: a.value })
644
+ style: me({ width: a.value })
643
645
  }, [
644
- r("div", fo, [
645
- r("div", vo, [
646
- l.value ? (u(), g("span", go, [
647
- (u(), B(ae(l.value), { class: "ml-base-dialog-icon" }))
646
+ d("div", _o, [
647
+ d("div", wo, [
648
+ l.value ? (s(), w("span", yo, [
649
+ (s(), B(re(l.value), { class: "ml-base-dialog-icon" }))
648
650
  ])) : O("", !0),
649
- r("span", null, $(t.title), 1)
651
+ d("span", null, V(t.title), 1)
650
652
  ]),
651
- r("div", ho, [
652
- d(_, {
653
+ d("div", bo, [
654
+ p(u, {
653
655
  text: "",
654
656
  size: "small",
655
657
  class: "ml-base-dialog-close",
656
- onClick: m
658
+ onClick: g
657
659
  }, {
658
660
  default: f(() => [
659
- d(h, null, {
661
+ p(h, null, {
660
662
  default: f(() => [
661
- d(p(ye))
663
+ p(m(xe))
662
664
  ]),
663
665
  _: 1
664
666
  })
@@ -667,22 +669,22 @@ const mo = { render: uo }, po = {
667
669
  })
668
670
  ])
669
671
  ]),
670
- r("div", _o, [
671
- ce(v.$slots, "default", {}, void 0, !0)
672
+ d("div", xo, [
673
+ ie(_.$slots, "default", {}, void 0, !0)
672
674
  ]),
673
- r("div", wo, [
674
- d(_, { onClick: m }, {
675
+ d("div", ko, [
676
+ p(u, { onClick: g }, {
675
677
  default: f(() => [
676
- I($(p(n)("dialog.baseDialog.cancel")), 1)
678
+ R(V(m(n)("dialog.baseDialog.cancel")), 1)
677
679
  ]),
678
680
  _: 1
679
681
  }),
680
- d(_, {
682
+ p(u, {
681
683
  type: "primary",
682
- onClick: s
684
+ onClick: r
683
685
  }, {
684
686
  default: f(() => [
685
- I($(p(n)("dialog.baseDialog.ok")), 1)
687
+ R(V(m(n)("dialog.baseDialog.ok")), 1)
686
688
  ]),
687
689
  _: 1
688
690
  })
@@ -696,14 +698,85 @@ const mo = { render: uo }, po = {
696
698
  ])) : O("", !0);
697
699
  };
698
700
  }
699
- }), G = (t, e) => {
701
+ }), X = (t, e) => {
700
702
  const n = t.__vccOpts || t;
701
703
  for (const [i, o] of e)
702
704
  n[i] = o;
703
705
  return n;
704
- }, Ve = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-cc27c9ec"]]);
705
- function bo() {
706
- const t = Y([]), e = U.instance.iterator();
706
+ }, Ne = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-cc27c9ec"]]), Co = { class: "ml-base-input-number" }, So = /* @__PURE__ */ E({
707
+ __name: "MlBaseInputNumber",
708
+ props: {
709
+ modelValue: {},
710
+ placeholder: {},
711
+ editable: { type: Boolean }
712
+ },
713
+ emits: ["change"],
714
+ setup(t, { emit: e }) {
715
+ const n = t, i = e, o = M("dec"), l = M(""), a = [
716
+ { label: "DEC", value: "dec" },
717
+ { label: "OCT", value: "oct" },
718
+ { label: "HEX", value: "hex" }
719
+ ], c = (h, u) => {
720
+ if (!h) return 0;
721
+ const b = parseInt(h, u === "hex" ? 16 : u === "oct" ? 8 : 10);
722
+ return Number.isNaN(b) ? 0 : b;
723
+ }, r = (h, u) => Number.isNaN(h) ? "" : u === "hex" ? h.toString(16).toUpperCase() : u === "oct" ? h.toString(8) : h.toString(10), g = (h, u) => {
724
+ switch (u) {
725
+ case "dec":
726
+ return h.replace(/[^0-9]/g, "");
727
+ case "oct":
728
+ return h.replace(/[^0-7]/g, "");
729
+ case "hex":
730
+ return h.replace(/[^0-9a-fA-F]/g, "");
731
+ }
732
+ }, _ = (h) => {
733
+ if (!n.editable) return;
734
+ const u = g(h, o.value);
735
+ l.value = u;
736
+ const v = c(u, o.value);
737
+ i("change", v);
738
+ }, x = () => {
739
+ l.value = r(n.modelValue, o.value);
740
+ };
741
+ return I(
742
+ () => n.modelValue,
743
+ (h) => {
744
+ l.value = r(h, o.value);
745
+ },
746
+ { immediate: !0 }
747
+ ), I(o, (h) => {
748
+ l.value = r(n.modelValue, h);
749
+ }), (h, u) => (s(), w("div", Co, [
750
+ p(m(it), {
751
+ modelValue: l.value,
752
+ "onUpdate:modelValue": u[0] || (u[0] = (v) => l.value = v),
753
+ class: "ml-base-input-number__input",
754
+ placeholder: h.placeholder,
755
+ readonly: !h.editable,
756
+ onInput: _,
757
+ onBlur: x,
758
+ clearable: ""
759
+ }, null, 8, ["modelValue", "placeholder", "readonly"]),
760
+ p(m(st), {
761
+ modelValue: o.value,
762
+ "onUpdate:modelValue": u[1] || (u[1] = (v) => o.value = v),
763
+ class: "ml-base-input-number__select",
764
+ size: "small"
765
+ }, {
766
+ default: f(() => [
767
+ (s(), w(G, null, W(a, (v) => p(m(rt), {
768
+ key: v.value,
769
+ label: v.label,
770
+ value: v.value
771
+ }, null, 8, ["label", "value"])), 64))
772
+ ]),
773
+ _: 1
774
+ }, 8, ["modelValue"])
775
+ ]));
776
+ }
777
+ }), Mi = /* @__PURE__ */ X(So, [["__scopeId", "data-v-5628dd65"]]);
778
+ function Ci() {
779
+ const t = q([]), e = K.instance.iterator();
707
780
  for (const n of e)
708
781
  t.push({
709
782
  commandName: n.command.localName,
@@ -725,44 +798,64 @@ function Se(t, e = "en-US") {
725
798
  maximumFractionDigits: 6
726
799
  }).format(t);
727
800
  }
728
- function xo(t) {
729
- const e = k(0), n = k(0);
801
+ function Lo(t) {
802
+ const e = M(0), n = M(0);
730
803
  function i(l) {
731
804
  e.value = l.x, n.value = l.y;
732
805
  }
733
- q(() => t.events.mouseMove.addEventListener(i)), ne(() => t.events.mouseMove.removeEventListener(i));
734
- const o = C(() => `${Se(e.value)}, ${Se(n.value)}`);
806
+ Z(() => t.events.mouseMove.addEventListener(i)), ne(() => t.events.mouseMove.removeEventListener(i));
807
+ const o = T(() => `${Se(e.value)}, ${Se(n.value)}`);
735
808
  return { x: e, y: n, text: o };
736
809
  }
737
- const se = Je(), ko = et(se), le = Y([]);
738
- function Mo(t) {
739
- le.find((n) => n.name === t.name) || le.push({ ...t, visible: !1 });
810
+ const de = Je(), To = Ke(de), se = q([]);
811
+ function zo(t) {
812
+ se.find((n) => n.name === t.name) || se.push({ ...t, visible: !1 });
740
813
  }
741
- function Co(t, e) {
742
- const n = le.find((i) => i.name === t);
814
+ function Bo(t, e) {
815
+ const n = se.find((i) => i.name === t);
743
816
  n && (n.visible = e);
744
817
  }
745
- function So(t) {
746
- return le.find((e) => e.name === t);
818
+ function Do(t) {
819
+ return se.find((e) => e.name === t);
747
820
  }
748
- function me() {
821
+ function ge() {
749
822
  return {
750
- dialogs: C(() => le),
751
- registerDialog: Mo,
752
- toggleDialog: Co,
753
- getDialogByName: So
823
+ dialogs: T(() => se),
824
+ registerDialog: zo,
825
+ toggleDialog: Bo,
826
+ getDialogByName: Do
754
827
  };
755
828
  }
756
- function Lo() {
757
- const t = k(/* @__PURE__ */ new Set()), e = Qe.instance;
829
+ function Eo() {
830
+ const t = M(/* @__PURE__ */ new Set()), e = nt.instance;
758
831
  for (const n of e.fileTypes)
759
832
  t.value.add(n);
760
833
  return e.events.registered.addEventListener((n) => {
761
834
  t.value.add(n.fileType);
762
835
  }), t;
763
836
  }
764
- function zo(t) {
765
- const e = Y([]), n = t.curDocument, i = (o) => {
837
+ function $o() {
838
+ const t = M(!1), e = M(null), n = M(null), i = M({ x: -1, y: -1 }), o = (a) => {
839
+ const r = P.instance.curDocument.database.tables.blockTable.modelSpace.getIdAt(a.id);
840
+ r ? (e.value = r, n.value = a.id, t.value = !0, i.value = { x: a.x, y: a.y }) : (t.value = !1, e.value = null, n.value = null);
841
+ }, l = () => {
842
+ t.value = !1, e.value = null, n.value = null;
843
+ };
844
+ return Z(() => {
845
+ const a = P.instance.curView.events;
846
+ a.hover.addEventListener(o), a.unhover.addEventListener(l);
847
+ }), ne(() => {
848
+ const a = P.instance.curView.events;
849
+ a.hover.removeEventListener(o), a.unhover.removeEventListener(l);
850
+ }), {
851
+ hovered: t,
852
+ entity: e,
853
+ id: n,
854
+ mouse: i
855
+ };
856
+ }
857
+ function Vo(t) {
858
+ const e = q([]), n = t.curDocument, i = (o) => {
766
859
  const l = o.tables.layerTable.newIterator();
767
860
  for (const a of l)
768
861
  e.push({
@@ -791,8 +884,8 @@ function zo(t) {
791
884
  e.length = 0, i(o.doc.database);
792
885
  }), e;
793
886
  }
794
- function Bo(t) {
795
- const e = Y([]), n = t.curDocument, i = (o) => {
887
+ function Po(t) {
888
+ const e = q([]), n = t.curDocument, i = (o) => {
796
889
  const l = o.dictionaries.layouts.newIterator();
797
890
  e.length = 0;
798
891
  for (const a of l)
@@ -806,7 +899,7 @@ function Bo(t) {
806
899
  };
807
900
  return i(n.database), t.events.documentActivated.addEventListener((o) => {
808
901
  e.length = 0, i(o.doc.database);
809
- }), Ee().layoutManager.events.layoutSwitched.addEventListener(
902
+ }), Ae().layoutManager.events.layoutSwitched.addEventListener(
810
903
  (o) => {
811
904
  const l = o.layout;
812
905
  e.forEach((a) => {
@@ -815,23 +908,14 @@ function Bo(t) {
815
908
  }
816
909
  ), e;
817
910
  }
818
- const Do = {
911
+ const Ao = {
819
912
  ACAD: {
820
- csvg: "Converts current drawing to SVG",
821
913
  la: "Layer properties manager",
822
- log: "Logs debug information in console",
823
914
  md: "Replaces missed fonts and images",
824
- open: "Opens an existing drawing file",
825
- pan: "Shifts the view without changing the viewing direction or magnification",
826
- pttype: "Specifies the display style and size of point objects",
827
- qnew: "Starts a new drawing",
828
- regen: "Redraw the current drawing",
829
- select: "Selects entities",
830
- zoom: "Zooms to display the maximum extents of all entities",
831
- zoomw: "Zooms to display an area specified by a rectangular window"
915
+ pttype: "Specifies the display style and size of point objects"
832
916
  },
833
917
  USER: {}
834
- }, To = {
918
+ }, No = {
835
919
  baseDialog: {
836
920
  ok: "OK",
837
921
  cancel: "Cancel"
@@ -850,8 +934,10 @@ const Do = {
850
934
  title: "Point Style",
851
935
  pointSize: "Point Size:"
852
936
  }
853
- }, $o = {
937
+ }, Io = {
854
938
  entityName: {
939
+ "2dPolyline": "2D Polyline",
940
+ "3dPolyline": "3D Polyline",
855
941
  "3PointAngularDimension": "Three Point Angular Dimension",
856
942
  AlignedDimension: "Aligned Dimension",
857
943
  Arc: "Arc",
@@ -1023,32 +1109,88 @@ const Do = {
1023
1109
  whitesmoke: "White Smoke",
1024
1110
  yellow: "Yellow",
1025
1111
  yellowgreen: "Yellow Green"
1112
+ },
1113
+ enum: {
1114
+ TopLeft: "Top Left",
1115
+ TopCenter: "Top Center",
1116
+ TopRight: "Top Right",
1117
+ MiddleLeft: "Middle Left",
1118
+ MiddleCenter: "Middle Center",
1119
+ MiddleRight: "Middle Right",
1120
+ BottomLeft: "Bottom Left",
1121
+ BottomCenter: "Bottom Center",
1122
+ BottomRight: "Bottom Right",
1123
+ LEFT_TO_RIGHT: "Left to Right",
1124
+ RIGHT_TO_LEFT: "Right to Left",
1125
+ TOP_TO_BOTTOM: "Top to Bottom",
1126
+ BOTTOM_TO_TOP: "Bottom to Top",
1127
+ BY_STYLE: "By Style"
1128
+ },
1129
+ property: {
1130
+ general: "General",
1131
+ geometry: "Geometry",
1132
+ text: "Text",
1133
+ handle: "Handle",
1134
+ color: "Color",
1135
+ layer: "Layer",
1136
+ linetype: "Linetype",
1137
+ linetypeScale: "Linetype Scale",
1138
+ lineWeight: "Lineweight",
1139
+ thickness: "Thickness",
1140
+ startX: "Start X",
1141
+ startY: "Start Y",
1142
+ startZ: "Start Z",
1143
+ endX: "End X",
1144
+ endY: "End Y",
1145
+ endZ: "End Z",
1146
+ centerX: "Center X",
1147
+ centerY: "Center Y",
1148
+ centerZ: "Center Z",
1149
+ radius: "Radius",
1150
+ normalX: "Normal X",
1151
+ normalY: "Normal Y",
1152
+ normalZ: "Normal Z",
1153
+ startAngle: "Start Angle",
1154
+ endAngle: "End Angle",
1155
+ majorAxisRadius: "Major Radius",
1156
+ minorAxisRadius: "Minor Radius",
1157
+ blockName: "Block Name",
1158
+ positionX: "Position X",
1159
+ positionY: "Position Y",
1160
+ positionZ: "Position Z",
1161
+ rotation: "Rotation",
1162
+ scaleFactorsX: "Scale X",
1163
+ scaleFactorsY: "Scale Y",
1164
+ scaleFactorsZ: "Scale Z",
1165
+ basePointX: "Base Point X",
1166
+ basePointY: "Base Point Y",
1167
+ basePointZ: "Base Point Z",
1168
+ unitDirX: "Unit Dir X",
1169
+ unitDirY: "Unit Dir Y",
1170
+ unitDirZ: "Unit Dir Z",
1171
+ contents: "Contents",
1172
+ styleName: "Style",
1173
+ attachmentPoint: "Attachment Point",
1174
+ drawingDirection: "Drawing Direction",
1175
+ textHeight: "Text Height",
1176
+ lineSpacingFactor: "Line Spacing Factor",
1177
+ definedWidth: "Defined Width",
1178
+ directionX: "Direction X",
1179
+ directionY: "Direction Y",
1180
+ directionZ: "Direction Z",
1181
+ locationX: "Location X",
1182
+ locationY: "Location Y",
1183
+ locationZ: "Location Z",
1184
+ x: "X",
1185
+ y: "Y",
1186
+ z: "Z"
1026
1187
  }
1027
- }, Ao = {
1188
+ }, Fo = {
1028
1189
  mainMenu: {
1029
1190
  new: "New Drawing",
1030
1191
  open: "Open Drawing",
1031
1192
  export: "Export to SVG"
1032
1193
  },
1033
- commandLine: {
1034
- prompt: "Type a command..."
1035
- },
1036
- progress: {
1037
- start: "Start parsing file ...",
1038
- parse: "Parsing file ...",
1039
- font: "Downloading fonts needed by this drawing ...",
1040
- ltype: "Parsing line types ...",
1041
- style: "Parsing text syltes ...",
1042
- dimstyle: "Parsing dimension styles ...",
1043
- layer: "Parsing layers ...",
1044
- vport: "Parsing viewports ...",
1045
- blockrecord: "Parsing block record ...",
1046
- header: "Parsing header ...",
1047
- block: "Parsing blocks ...",
1048
- entity: "Parsing entities ...",
1049
- object: "Parsing named dictionaries ...",
1050
- end: "Finished!"
1051
- },
1052
1194
  verticalToolbar: {
1053
1195
  select: {
1054
1196
  text: "Select",
@@ -1073,9 +1215,12 @@ const Do = {
1073
1215
  },
1074
1216
  statusBar: {
1075
1217
  setting: {
1076
- tooltip: "Display settings",
1077
- commandLine: "Command line",
1218
+ tooltip: "Display Settings",
1219
+ commandLine: "Command Line",
1078
1220
  coordinate: "Coordinate",
1221
+ entityInfo: "Entity Info",
1222
+ languageSelector: "Language Selector",
1223
+ mainMenu: "Main Menu",
1079
1224
  toolbar: "Toolbar",
1080
1225
  stats: "Statistics"
1081
1226
  },
@@ -1098,7 +1243,18 @@ const Do = {
1098
1243
  }
1099
1244
  },
1100
1245
  toolPalette: {
1246
+ entityProperties: {
1247
+ tab: "Properties",
1248
+ title: "Entity Properties",
1249
+ propertyPanel: {
1250
+ noEntitySelected: "No entity selected!",
1251
+ multipleEntitySelected: "{count} entities selected",
1252
+ propValCopied: "Property value copied",
1253
+ failedToCopyPropVal: "Failed to copy property value!"
1254
+ }
1255
+ },
1101
1256
  layerManager: {
1257
+ tab: "Layers",
1102
1258
  title: "Layer Manager",
1103
1259
  layerList: {
1104
1260
  name: "Name",
@@ -1141,23 +1297,14 @@ const Do = {
1141
1297
  parsingWarning: "Issues on Parsing Drawing"
1142
1298
  }
1143
1299
  }
1144
- }, Eo = {
1300
+ }, Ro = {
1145
1301
  ACAD: {
1146
- csvg: "转换当前图纸为SVG格式",
1147
1302
  la: "图层属性管理器",
1148
- log: "在控制台输出调试信息",
1149
1303
  md: "替换缺失的字体和图片",
1150
- open: "打开图纸",
1151
- pan: "平移视图",
1152
- pttype: "设置点的显示样式和尺寸",
1153
- qnew: "创建新图纸",
1154
- regen: "重绘图纸",
1155
- select: "选择图元",
1156
- zoom: "缩放以显示所有对象",
1157
- zoomw: "缩放以显示矩形窗口内的对象"
1304
+ pttype: "设置点的显示样式和尺寸"
1158
1305
  },
1159
1306
  USER: {}
1160
- }, Vo = {
1307
+ }, Oo = {
1161
1308
  baseDialog: {
1162
1309
  ok: "确定",
1163
1310
  cancel: "取消"
@@ -1176,8 +1323,10 @@ const Do = {
1176
1323
  title: "点样式",
1177
1324
  pointSize: "点大小:"
1178
1325
  }
1179
- }, Fo = {
1326
+ }, Ho = {
1180
1327
  entityName: {
1328
+ "2dPolyline": "二维多段线",
1329
+ "3dPolyline": "三维多段线",
1181
1330
  "3PointAngularDimension": "三点角度标注",
1182
1331
  AlignedDimension: "线性标注",
1183
1332
  Arc: "圆弧",
@@ -1349,32 +1498,88 @@ const Do = {
1349
1498
  whitesmoke: "白烟色",
1350
1499
  yellow: "黄色",
1351
1500
  yellowgreen: "黄绿色"
1501
+ },
1502
+ enum: {
1503
+ TopLeft: "左上",
1504
+ TopCenter: "中上",
1505
+ TopRight: "右上",
1506
+ MiddleLeft: "左中",
1507
+ MiddleCenter: "正中",
1508
+ MiddleRight: "右中",
1509
+ BottomLeft: "左下",
1510
+ BottomCenter: "中下",
1511
+ BottomRight: "右下",
1512
+ LEFT_TO_RIGHT: "水平左到右",
1513
+ RIGHT_TO_LEFT: "水平右到左",
1514
+ TOP_TO_BOTTOM: "垂直上到下",
1515
+ BOTTOM_TO_TOP: "垂直下到上",
1516
+ BY_STYLE: "随样式"
1517
+ },
1518
+ property: {
1519
+ general: "常规",
1520
+ geometry: "几何图形",
1521
+ text: "文字",
1522
+ handle: "句柄",
1523
+ color: "颜色",
1524
+ layer: "图层",
1525
+ linetype: "线型",
1526
+ linetypeScale: "线型比例",
1527
+ lineWeight: "线宽",
1528
+ thickness: "厚度",
1529
+ startX: "起点 X",
1530
+ startY: "起点 Y",
1531
+ startZ: "起点 Z",
1532
+ endX: "终点 X",
1533
+ endY: "终点 Y",
1534
+ endZ: "终点 Z",
1535
+ centerX: "圆心 X",
1536
+ centerY: "圆心 Y",
1537
+ centerZ: "圆心 Z",
1538
+ radius: "半径",
1539
+ normalX: "法向量 X",
1540
+ normalY: "法向量 Y",
1541
+ normalZ: "法向量 Z",
1542
+ startAngle: "起始角",
1543
+ endAngle: "终止角",
1544
+ majorAxisRadius: "长轴半径",
1545
+ minorAxisRadius: "短轴半径",
1546
+ blockName: "块名",
1547
+ positionX: "位置 X",
1548
+ positionY: "位置 Y",
1549
+ positionZ: "位置 Z",
1550
+ rotation: "旋转",
1551
+ scaleFactorsX: "缩放比例 X",
1552
+ scaleFactorsY: "缩放比例 Y",
1553
+ scaleFactorsZ: "缩放比例 Z",
1554
+ basePointX: "基点 X",
1555
+ basePointY: "基点 Y",
1556
+ basePointZ: "基点 Z",
1557
+ unitDirX: "单位方向向量 X",
1558
+ unitDirY: "单位方向向量 Y",
1559
+ unitDirZ: "单位方向向量 Z",
1560
+ contents: "内容",
1561
+ styleName: "样式",
1562
+ attachmentPoint: "对正",
1563
+ drawingDirection: "书写方向",
1564
+ textHeight: "文字高度",
1565
+ lineSpacingFactor: "行距比例",
1566
+ definedWidth: "定义的宽度",
1567
+ directionX: "方向向量 X",
1568
+ directionY: "方向向量 Y",
1569
+ directionZ: "方向向量 Z",
1570
+ locationX: "位置 X",
1571
+ locationY: "位置 Y",
1572
+ locationZ: "位置 Z",
1573
+ x: "X",
1574
+ y: "Y",
1575
+ z: "Z"
1352
1576
  }
1353
- }, No = {
1577
+ }, Yo = {
1354
1578
  mainMenu: {
1355
1579
  new: "新建图纸",
1356
1580
  open: "打开图纸",
1357
1581
  export: "导出为SVG"
1358
1582
  },
1359
- commandLine: {
1360
- prompt: "输入命令..."
1361
- },
1362
- progress: {
1363
- start: "开始解析文件...",
1364
- parse: "正在解析文件 ...",
1365
- font: "正在下载图纸所需字体...",
1366
- ltype: "正在解析线形...",
1367
- style: "正在解析文字样式...",
1368
- dimstyle: "正在解析标注样式...",
1369
- layer: "正在解析图层...",
1370
- vport: "正在解析视口...",
1371
- blockrecord: "正在解析BTRs...",
1372
- header: "正在解析文件头...",
1373
- block: "正在解析块..",
1374
- entity: "正在解析图元...",
1375
- object: "正在解析NODs...",
1376
- end: "完成!"
1377
- },
1378
1583
  verticalToolbar: {
1379
1584
  select: {
1380
1585
  text: "选择",
@@ -1402,6 +1607,9 @@ const Do = {
1402
1607
  tooltip: "显示设置",
1403
1608
  commandLine: "命令行",
1404
1609
  coordinate: "坐标",
1610
+ entityInfo: "图元信息",
1611
+ languageSelector: "语言菜单",
1612
+ mainMenu: "主菜单",
1405
1613
  toolbar: "工具栏",
1406
1614
  stats: "性能面板"
1407
1615
  },
@@ -1424,7 +1632,18 @@ const Do = {
1424
1632
  }
1425
1633
  },
1426
1634
  toolPalette: {
1635
+ entityProperties: {
1636
+ tab: "属性",
1637
+ title: "图元属性",
1638
+ propertyPanel: {
1639
+ noEntitySelected: "未选择任何图元!",
1640
+ multipleEntitySelected: "{count}个图元",
1641
+ propValCopied: "属性值已复制",
1642
+ failedToCopyPropVal: "复制属性值失败!"
1643
+ }
1644
+ },
1427
1645
  layerManager: {
1646
+ tab: "图层",
1428
1647
  title: "图层管理器",
1429
1648
  layerList: {
1430
1649
  name: "名称",
@@ -1467,83 +1686,91 @@ const Do = {
1467
1686
  parsingWarning: "解析图纸问题"
1468
1687
  }
1469
1688
  }
1470
- }, Io = () => {
1689
+ }, Go = () => {
1471
1690
  const t = localStorage.getItem("preferred_lang");
1472
1691
  return t === "en" || t === "zh" ? t : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
1473
- }, Po = {
1692
+ }, Ie = {
1474
1693
  en: {
1475
- main: Ao,
1476
- command: Do,
1477
- dialog: To,
1478
- entity: $o
1694
+ main: Fo,
1695
+ command: Ao,
1696
+ dialog: No,
1697
+ entity: Io
1479
1698
  },
1480
1699
  zh: {
1481
- main: No,
1482
- command: Eo,
1483
- dialog: Vo,
1484
- entity: Fo
1700
+ main: Yo,
1701
+ command: Ro,
1702
+ dialog: Oo,
1703
+ entity: Ho
1485
1704
  }
1486
- }, te = at({
1705
+ };
1706
+ ae.mergeLocaleMessage("en", Ie.en);
1707
+ ae.mergeLocaleMessage("zh", Ie.zh);
1708
+ const oe = at({
1487
1709
  legacy: !1,
1488
- messages: Po,
1489
- locale: Io(),
1710
+ messages: ae.messages,
1711
+ locale: Go(),
1490
1712
  fallbackLocale: "en",
1491
1713
  allowComposition: !0,
1492
1714
  globalInjection: !0
1493
- }), be = (t, e) => {
1494
- const n = te.global.t, i = `command.${t}.${e}`;
1495
- return n(i, "");
1496
- }, ri = (t) => be(U.SYSTEMT_COMMAND_GROUP_NAME, t), ci = (t) => be(U.DEFAUT_COMMAND_GROUP_NAME, t), Oo = (t) => {
1497
- const e = te.global.t, n = "entity.entityName." + t.type;
1715
+ }), Xo = (t) => {
1716
+ const e = oe.global.t, n = "entity.entityName." + t.type;
1498
1717
  return e(n, t.type, { missingWarn: !1 });
1499
- }, Ro = (t) => {
1718
+ }, Le = (t) => {
1719
+ const e = oe.global.t, n = "entity.property." + t;
1720
+ return e(n, t, { missingWarn: !1 });
1721
+ }, Te = (t) => {
1722
+ const e = oe.global.t, n = "entity.enum." + t;
1723
+ return e(n, t, { missingWarn: !0 });
1724
+ }, Wo = (t) => {
1500
1725
  if (t == "ByLayer" || t == "ByBlock")
1501
1726
  return t;
1502
1727
  {
1503
- const e = te.global.t, n = "entity.color." + t;
1728
+ const e = oe.global.t, n = "entity.color." + t;
1504
1729
  return e(n, t, { missingWarn: !1 });
1505
1730
  }
1506
- }, Ho = (t) => {
1507
- const e = te.global.t, n = "main.progress." + t.replace(/_/g, "").toLowerCase();
1508
- return e(n, t);
1509
- }, ge = "preferred_lang";
1731
+ }, Zo = (t) => {
1732
+ const e = oe.global.t, n = `main.toolPalette.${t}.title`;
1733
+ return e(n, t, { missingWarn: !1 });
1734
+ }, Uo = (t) => {
1735
+ const e = oe.global.t, n = `main.toolPalette.${t}.tab`;
1736
+ return e(n, t, { missingWarn: !1 });
1737
+ }, we = "preferred_lang";
1510
1738
  function Fe(t) {
1511
- const { locale: e } = R(), i = k((() => {
1512
- const s = localStorage.getItem(ge);
1513
- return s === "en" || s === "zh" ? s : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
1514
- })()), o = C(() => i.value), l = (s) => {
1515
- te.global.locale.value = s, i.value = s, (!t || t === "default") && localStorage.setItem(ge, s);
1739
+ const { locale: e } = Y(), i = M((() => {
1740
+ const r = localStorage.getItem(we);
1741
+ if (r === "en" || r === "zh") return r;
1742
+ const _ = navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
1743
+ return ae.setCurrentLocale(_), _;
1744
+ })()), o = T(() => i.value), l = (r) => {
1745
+ oe.global.locale.value = r, i.value = r, (!t || t === "default") && localStorage.setItem(we, r), ae.setCurrentLocale(r);
1516
1746
  }, a = () => {
1517
- localStorage.removeItem(ge);
1747
+ localStorage.removeItem(we);
1518
1748
  };
1519
- t && V(
1749
+ t && I(
1520
1750
  () => t,
1521
- (s) => {
1522
- s && s !== "default" && (i.value = s, te.global.locale.value = s, a());
1751
+ (r) => {
1752
+ r && r !== "default" && l(r);
1523
1753
  },
1524
1754
  { immediate: !0 }
1525
- ), V(
1755
+ ), I(
1526
1756
  () => e.value,
1527
- (s) => {
1528
- if (!t || t === "default") {
1529
- const m = s === "zh" ? "zh" : "en";
1530
- i.value = m;
1531
- }
1757
+ (r) => {
1758
+ (!t || t === "default") && l(r === "zh" ? "zh" : "en");
1532
1759
  }
1533
1760
  );
1534
- const c = C(() => o.value === "en" ? ot : lt);
1761
+ const c = T(() => o.value === "en" ? ot : lt);
1535
1762
  return {
1536
1763
  currentLocale: i,
1537
1764
  effectiveLocale: o,
1538
1765
  elementPlusLocale: c,
1539
1766
  setLocale: l,
1540
1767
  clearStoragePreference: a,
1541
- isControlled: C(() => !!(t && t !== "default"))
1768
+ isControlled: T(() => !!(t && t !== "default"))
1542
1769
  };
1543
1770
  }
1544
- function Ne() {
1545
- const t = Y(/* @__PURE__ */ new Map()), e = Y(/* @__PURE__ */ new Map()), n = () => {
1546
- const i = E.instance.curView.missedData, o = Z.instance.fontMapping;
1771
+ function Re() {
1772
+ const t = q(/* @__PURE__ */ new Map()), e = q(/* @__PURE__ */ new Map()), n = () => {
1773
+ const i = P.instance.curView.missedData, o = U.instance.fontMapping;
1547
1774
  t.clear(), Object.keys(i.fonts).forEach((l) => {
1548
1775
  const a = o[l];
1549
1776
  t.set(l, a || "");
@@ -1555,7 +1782,7 @@ function Ne() {
1555
1782
  });
1556
1783
  });
1557
1784
  };
1558
- return E.instance.events.documentActivated.addEventListener(() => {
1785
+ return P.instance.events.documentActivated.addEventListener(() => {
1559
1786
  n();
1560
1787
  }), Q.on("font-not-found", (i) => {
1561
1788
  n();
@@ -1564,18 +1791,18 @@ function Ne() {
1564
1791
  images: e
1565
1792
  };
1566
1793
  }
1567
- class Go {
1794
+ class qo {
1568
1795
  constructor() {
1569
- this.notifications = k([]), this.nextId = 1;
1796
+ this.notifications = M([]), this.nextId = 1;
1570
1797
  }
1571
1798
  get allNotifications() {
1572
- return C(() => this.notifications.value);
1799
+ return T(() => this.notifications.value);
1573
1800
  }
1574
1801
  get unreadCount() {
1575
- return C(() => this.notifications.value.length);
1802
+ return T(() => this.notifications.value.length);
1576
1803
  }
1577
1804
  get hasNotifications() {
1578
- return C(() => this.notifications.value.length > 0);
1805
+ return T(() => this.notifications.value.length > 0);
1579
1806
  }
1580
1807
  add(e) {
1581
1808
  const n = {
@@ -1631,43 +1858,61 @@ class Go {
1631
1858
  });
1632
1859
  }
1633
1860
  }
1634
- const P = new Go();
1635
- function pe() {
1861
+ const H = new qo();
1862
+ function he() {
1636
1863
  return {
1637
1864
  /** Reactive list of all notifications */
1638
- notifications: P.allNotifications,
1865
+ notifications: H.allNotifications,
1639
1866
  /** Reactive count of unread notifications */
1640
- unreadCount: P.unreadCount,
1867
+ unreadCount: H.unreadCount,
1641
1868
  /** Reactive boolean indicating if there are any notifications */
1642
- hasNotifications: P.hasNotifications,
1869
+ hasNotifications: H.hasNotifications,
1643
1870
  /** Add a custom notification */
1644
- add: P.add.bind(P),
1871
+ add: H.add.bind(H),
1645
1872
  /** Remove a notification by ID */
1646
- remove: P.remove.bind(P),
1873
+ remove: H.remove.bind(H),
1647
1874
  /** Clear all notifications */
1648
- clear: P.clear.bind(P),
1875
+ clear: H.clear.bind(H),
1649
1876
  /** Clear all notifications (alias for clear) */
1650
- clearAll: P.clearAll.bind(P),
1877
+ clearAll: H.clearAll.bind(H),
1651
1878
  /** Add an info notification */
1652
- info: P.info.bind(P),
1879
+ info: H.info.bind(H),
1653
1880
  /** Add a warning notification */
1654
- warning: P.warning.bind(P),
1881
+ warning: H.warning.bind(H),
1655
1882
  /** Add an error notification */
1656
- error: P.error.bind(P),
1883
+ error: H.error.bind(H),
1657
1884
  /** Add a success notification */
1658
- success: P.success.bind(P)
1885
+ success: H.success.bind(H)
1659
1886
  };
1660
1887
  }
1661
- function fe() {
1662
- const t = Y(
1663
- Z.instance.settings
1888
+ function jo() {
1889
+ const t = M([]), e = M([]), n = M([]), i = (l) => {
1890
+ e.value = l.ids, t.value = P.instance.curView.selectionSet.ids;
1891
+ }, o = (l) => {
1892
+ n.value = l.ids, t.value = P.instance.curView.selectionSet.ids;
1893
+ };
1894
+ return Z(() => {
1895
+ const l = P.instance.curView.selectionSet.events;
1896
+ l.selectionAdded.addEventListener(i), l.selectionRemoved.addEventListener(o);
1897
+ }), ne(() => {
1898
+ const l = P.instance.curView.selectionSet.events;
1899
+ l.selectionAdded.removeEventListener(i), l.selectionRemoved.removeEventListener(o);
1900
+ }), {
1901
+ selectionSet: t,
1902
+ added: e,
1903
+ removed: n
1904
+ };
1905
+ }
1906
+ function ce() {
1907
+ const t = q(
1908
+ U.instance.settings
1664
1909
  );
1665
- return Z.instance.events.modified.addEventListener((e) => {
1910
+ return U.instance.events.modified.addEventListener((e) => {
1666
1911
  t[e.key] = e.value;
1667
1912
  }), t;
1668
1913
  }
1669
- function Wo(t) {
1670
- const e = Y({}), n = t.curDocument, i = (o) => {
1914
+ function Qo(t) {
1915
+ const e = q({}), n = t.curDocument, i = (o) => {
1671
1916
  e.pdmode = o.pdmode, e.pdmode = o.pdsize;
1672
1917
  };
1673
1918
  return i(n.database), n.database.events.headerSysVarChanged.addEventListener((o) => {
@@ -1676,208 +1921,208 @@ function Wo(t) {
1676
1921
  i(o.doc.database);
1677
1922
  }), e;
1678
1923
  }
1679
- function qo() {
1680
- const t = tt("(max-width: 768px)"), e = k(!1), n = k(!1);
1681
- return q(() => {
1924
+ function Jo() {
1925
+ const t = et("(max-width: 768px)"), e = M(!1), n = M(!1);
1926
+ return Z(() => {
1682
1927
  var o;
1683
1928
  try {
1684
1929
  const l = window.navigator, a = l.maxTouchPoints ?? l.msMaxTouchPoints ?? 0, c = ((o = window.matchMedia) == null ? void 0 : o.call(window, "(pointer: coarse)").matches) ?? !1;
1685
1930
  e.value = a > 0 || c || "ontouchstart" in window;
1686
- const s = l.userAgent || "";
1931
+ const r = l.userAgent || "";
1687
1932
  n.value = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
1688
- s
1933
+ r
1689
1934
  );
1690
1935
  } catch {
1691
1936
  e.value = !1, n.value = !1;
1692
1937
  }
1693
- }), { isMobile: C(() => !!t.value && (e.value || n.value)) };
1938
+ }), { isMobile: T(() => !!t.value && (e.value || n.value)) };
1694
1939
  }
1695
- const Uo = /* @__PURE__ */ z({
1940
+ const Ko = /* @__PURE__ */ E({
1696
1941
  __name: "MlDialogManager",
1697
1942
  setup(t, { expose: e }) {
1698
- const { dialogs: n, toggleDialog: i, registerDialog: o } = me();
1943
+ const { dialogs: n, toggleDialog: i, registerDialog: o } = ge();
1699
1944
  return e({
1700
1945
  toggleDialog: i,
1701
1946
  registerDialog: o
1702
- }), (l, a) => (u(!0), g(j, null, K(p(n), (c) => (u(), g("div", {
1947
+ }), (l, a) => (s(!0), w(G, null, W(m(n), (c) => (s(), w("div", {
1703
1948
  key: c.name
1704
1949
  }, [
1705
- (u(), B(ae(c.component), je({
1950
+ (s(), B(re(c.component), qe({
1706
1951
  modelValue: c.visible,
1707
- "onUpdate:modelValue": (s) => c.visible = s
1952
+ "onUpdate:modelValue": (r) => c.visible = r
1708
1953
  }, { ref_for: !0 }, c.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
1709
1954
  ]))), 128));
1710
1955
  }
1711
- }), jo = ["accept"], Yo = /* @__PURE__ */ z({
1956
+ }), el = ["accept"], tl = /* @__PURE__ */ E({
1712
1957
  __name: "MlFileReader",
1713
1958
  emits: ["file-read"],
1714
1959
  setup(t, { emit: e }) {
1715
- const n = e, i = k(null), o = Lo(), l = C(() => {
1960
+ const n = e, i = M(null), o = Eo(), l = T(() => {
1716
1961
  const c = Array.from(o.value);
1717
- let s = "";
1718
- for (let m = 0, v = c.length; m < v; ++m)
1719
- m == v - 1 ? s += `.${c[m]}` : s += `.${c[m]}, `;
1720
- return s;
1962
+ let r = "";
1963
+ for (let g = 0, _ = c.length; g < _; ++g)
1964
+ g == _ - 1 ? r += `.${c[g]}` : r += `.${c[g]}, `;
1965
+ return r;
1721
1966
  });
1722
- q(() => {
1967
+ Z(() => {
1723
1968
  Q.on("open-file", () => {
1724
1969
  var c;
1725
1970
  (c = i.value) == null || c.click();
1726
1971
  });
1727
1972
  });
1728
1973
  const a = (c) => {
1729
- var v;
1730
- const m = (v = c.target.files) == null ? void 0 : v[0];
1731
- if (m && m.name) {
1732
- const w = new FileReader();
1733
- w.readAsArrayBuffer(m), w.onload = (h) => {
1734
- var b;
1735
- const _ = (b = h.target) == null ? void 0 : b.result;
1736
- _ && n("file-read", m.name, _);
1737
- }, w.onerror = () => {
1974
+ var _;
1975
+ const g = (_ = c.target.files) == null ? void 0 : _[0];
1976
+ if (g && g.name) {
1977
+ const x = new FileReader();
1978
+ x.readAsArrayBuffer(g), x.onload = (h) => {
1979
+ var v;
1980
+ const u = (v = h.target) == null ? void 0 : v.result;
1981
+ u && n("file-read", g.name, u);
1982
+ }, x.onerror = () => {
1738
1983
  console.error("Failed to read the file.");
1739
1984
  };
1740
1985
  }
1741
1986
  };
1742
- return (c, s) => (u(), g("input", {
1987
+ return (c, r) => (s(), w("input", {
1743
1988
  type: "file",
1744
1989
  ref_key: "fileInput",
1745
1990
  ref: i,
1746
1991
  accept: l.value,
1747
1992
  style: { display: "none" },
1748
1993
  onChange: a
1749
- }, null, 40, jo));
1994
+ }, null, 40, el));
1750
1995
  }
1751
- }), Ko = /* @__PURE__ */ z({
1996
+ }), nl = /* @__PURE__ */ E({
1752
1997
  __name: "MlToggleButton",
1753
- props: /* @__PURE__ */ ee({
1998
+ props: /* @__PURE__ */ le({
1754
1999
  size: { default: 30 },
1755
2000
  data: {}
1756
2001
  }, {
1757
2002
  modelValue: { default: !1 },
1758
2003
  modelModifiers: {}
1759
2004
  }),
1760
- emits: /* @__PURE__ */ ee(["click"], ["update:modelValue"]),
2005
+ emits: /* @__PURE__ */ le(["click"], ["update:modelValue"]),
1761
2006
  setup(t, { emit: e }) {
1762
- De((m) => ({
2007
+ Ee((g) => ({
1763
2008
  a97b120a: a.value
1764
2009
  }));
1765
- const n = t, i = _e(t, "modelValue"), o = e, l = C(() => i.value ? n.data.onIcon : n.data.offIcon), a = C(() => n.size + "px"), c = C(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
2010
+ const n = t, i = pe(t, "modelValue"), o = e, l = T(() => i.value ? n.data.onIcon : n.data.offIcon), a = T(() => n.size + "px"), c = T(() => i.value ? n.data.onTooltip : n.data.offTooltip), r = () => {
1766
2011
  o("click", i.value);
1767
2012
  };
1768
- return (m, v) => {
1769
- const w = S("el-button"), h = S("el-tooltip");
1770
- return u(), B(h, {
2013
+ return (g, _) => {
2014
+ const x = L("el-button"), h = L("el-tooltip");
2015
+ return s(), B(h, {
1771
2016
  content: c.value,
1772
2017
  "hide-after": 0
1773
2018
  }, {
1774
2019
  default: f(() => [
1775
- d(w, {
2020
+ p(x, {
1776
2021
  class: "ml-toggle-button",
1777
2022
  icon: l.value,
1778
- onClick: s
2023
+ onClick: r
1779
2024
  }, null, 8, ["icon"])
1780
2025
  ]),
1781
2026
  _: 1
1782
2027
  }, 8, ["content"]);
1783
2028
  };
1784
2029
  }
1785
- }), Ie = /* @__PURE__ */ G(Ko, [["__scopeId", "data-v-48d6b055"]]), Xo = /* @__PURE__ */ z({
2030
+ }), Oe = /* @__PURE__ */ X(nl, [["__scopeId", "data-v-48d6b055"]]), ol = /* @__PURE__ */ E({
1786
2031
  __name: "MlReplacementDlg",
1787
2032
  setup(t) {
1788
- const { t: e } = R(), { fonts: n, images: i } = Ne(), o = k(!0), l = C(() => n.size > 0 ? "font" : "image"), a = k(null), c = k([]), s = () => {
1789
- const _ = E.instance.avaiableFonts;
1790
- c.value = _.map((b) => b.name[0]);
1791
- }, m = () => {
1792
- const _ = E.instance.curDocument.database;
1793
- i.forEach((x) => {
1794
- x.file && x.ids.forEach((L) => {
1795
- const T = _.tables.blockTable.modelSpace.getIdAt(
1796
- L
2033
+ const { t: e } = Y(), { fonts: n, images: i } = Re(), o = M(!0), l = T(() => n.size > 0 ? "font" : "image"), a = M(null), c = M([]), r = () => {
2034
+ const u = P.instance.avaiableFonts;
2035
+ c.value = u.map((v) => v.name[0]);
2036
+ }, g = () => {
2037
+ const u = P.instance.curDocument.database;
2038
+ i.forEach((b) => {
2039
+ b.file && b.ids.forEach((S) => {
2040
+ const $ = u.tables.blockTable.modelSpace.getIdAt(
2041
+ S
1797
2042
  );
1798
- T.image = x.file, T.triggerModifiedEvent();
2043
+ $.image = b.file, $.triggerModifiedEvent();
1799
2044
  });
1800
2045
  });
1801
- const b = Z.instance;
1802
- n.forEach((x, L) => {
1803
- L && x && b.setFontMapping(L, x);
2046
+ const v = U.instance;
2047
+ n.forEach((b, S) => {
2048
+ S && b && v.setFontMapping(S, b);
1804
2049
  });
1805
- }, v = (_) => {
2050
+ }, _ = (u) => {
1806
2051
  a.value && (a.value.click(), a.value.onchange = () => {
1807
- w(_);
2052
+ x(u);
1808
2053
  });
1809
- }, w = (_) => {
1810
- var x, L;
1811
- const b = (L = (x = a.value) == null ? void 0 : x.files) == null ? void 0 : L[0];
1812
- b && (_.file = b);
1813
- }, h = (_, b) => {
1814
- n.set(_, b);
2054
+ }, x = (u) => {
2055
+ var b, S;
2056
+ const v = (S = (b = a.value) == null ? void 0 : b.files) == null ? void 0 : S[0];
2057
+ v && (u.file = v);
2058
+ }, h = (u, v) => {
2059
+ n.set(u, v);
1815
2060
  };
1816
- return (_, b) => {
1817
- const x = S("el-col"), L = S("el-row"), T = S("el-option"), y = S("el-select"), M = S("el-tab-pane"), D = S("el-table-column"), H = S("el-button"), N = S("el-table"), F = S("el-tabs");
1818
- return u(), B(Ve, {
1819
- title: p(e)("dialog.replacementDlg.title"),
2061
+ return (u, v) => {
2062
+ const b = L("el-col"), S = L("el-row"), $ = L("el-option"), C = L("el-select"), D = L("el-tab-pane"), k = L("el-table-column"), A = L("el-button"), N = L("el-table"), y = L("el-tabs");
2063
+ return s(), B(Ne, {
2064
+ title: m(e)("dialog.replacementDlg.title"),
1820
2065
  modelValue: o.value,
1821
- "onUpdate:modelValue": b[1] || (b[1] = (A) => o.value = A),
2066
+ "onUpdate:modelValue": v[1] || (v[1] = (z) => o.value = z),
1822
2067
  name: "ReplacementDlg",
1823
- onOk: m,
1824
- onOpen: s
2068
+ onOk: g,
2069
+ onOpen: r
1825
2070
  }, {
1826
2071
  default: f(() => [
1827
- d(F, {
2072
+ p(y, {
1828
2073
  type: "card",
1829
2074
  modelValue: l.value,
1830
- "onUpdate:modelValue": b[0] || (b[0] = (A) => l.value = A)
2075
+ "onUpdate:modelValue": v[0] || (v[0] = (z) => l.value = z)
1831
2076
  }, {
1832
2077
  default: f(() => [
1833
- p(n).size > 0 ? (u(), B(M, {
2078
+ m(n).size > 0 ? (s(), B(D, {
1834
2079
  key: 0,
1835
- label: p(e)("dialog.replacementDlg.fontTabName"),
2080
+ label: m(e)("dialog.replacementDlg.fontTabName"),
1836
2081
  name: "font"
1837
2082
  }, {
1838
2083
  default: f(() => [
1839
- r("div", null, [
1840
- d(L, null, {
2084
+ d("div", null, [
2085
+ p(S, null, {
1841
2086
  default: f(() => [
1842
- d(x, { span: 12 }, {
2087
+ p(b, { span: 12 }, {
1843
2088
  default: f(() => [
1844
- r("span", null, $(p(e)("dialog.replacementDlg.missedFont")), 1)
2089
+ d("span", null, V(m(e)("dialog.replacementDlg.missedFont")), 1)
1845
2090
  ]),
1846
2091
  _: 1
1847
2092
  }),
1848
- d(x, { span: 12 }, {
2093
+ p(b, { span: 12 }, {
1849
2094
  default: f(() => [
1850
- r("span", null, $(p(e)("dialog.replacementDlg.replacedFont")), 1)
2095
+ d("span", null, V(m(e)("dialog.replacementDlg.replacedFont")), 1)
1851
2096
  ]),
1852
2097
  _: 1
1853
2098
  })
1854
2099
  ]),
1855
2100
  _: 1
1856
2101
  }),
1857
- (u(!0), g(j, null, K(p(n), ([A, W]) => (u(), B(L, {
1858
- key: A,
2102
+ (s(!0), w(G, null, W(m(n), ([z, F]) => (s(), B(S, {
2103
+ key: z,
1859
2104
  style: { "margin-top": "10px" }
1860
2105
  }, {
1861
2106
  default: f(() => [
1862
- d(x, { span: 12 }, {
2107
+ p(b, { span: 12 }, {
1863
2108
  default: f(() => [
1864
- r("span", null, $(A), 1)
2109
+ d("span", null, V(z), 1)
1865
2110
  ]),
1866
2111
  _: 2
1867
2112
  }, 1024),
1868
- d(x, { span: 12 }, {
2113
+ p(b, { span: 12 }, {
1869
2114
  default: f(() => [
1870
- d(y, {
1871
- "model-value": W,
1872
- placeholder: p(e)("dialog.replacementDlg.selectFont"),
1873
- "onUpdate:modelValue": (X) => h(A, X),
2115
+ p(C, {
2116
+ "model-value": F,
2117
+ placeholder: m(e)("dialog.replacementDlg.selectFont"),
2118
+ "onUpdate:modelValue": (j) => h(z, j),
1874
2119
  style: { width: "100%" }
1875
2120
  }, {
1876
2121
  default: f(() => [
1877
- (u(!0), g(j, null, K(c.value, (X, Pe) => (u(), B(T, {
1878
- key: Pe,
1879
- label: X,
1880
- value: X
2122
+ (s(!0), w(G, null, W(c.value, (j, He) => (s(), B($, {
2123
+ key: He,
2124
+ label: j,
2125
+ value: j
1881
2126
  }, null, 8, ["label", "value"]))), 128))
1882
2127
  ]),
1883
2128
  _: 2
@@ -1892,38 +2137,38 @@ const Uo = /* @__PURE__ */ z({
1892
2137
  ]),
1893
2138
  _: 1
1894
2139
  }, 8, ["label"])) : O("", !0),
1895
- p(i).size > 0 ? (u(), B(M, {
2140
+ m(i).size > 0 ? (s(), B(D, {
1896
2141
  key: 1,
1897
- label: p(e)("dialog.replacementDlg.imageTabName"),
2142
+ label: m(e)("dialog.replacementDlg.imageTabName"),
1898
2143
  name: "image"
1899
2144
  }, {
1900
2145
  default: f(() => [
1901
- d(N, {
1902
- data: Array.from(p(i).values()),
2146
+ p(N, {
2147
+ data: Array.from(m(i).values()),
1903
2148
  style: { width: "100%" },
1904
2149
  "v-show": !1
1905
2150
  }, {
1906
2151
  default: f(() => [
1907
- d(D, {
1908
- label: p(e)("dialog.replacementDlg.file"),
2152
+ p(k, {
2153
+ label: m(e)("dialog.replacementDlg.file"),
1909
2154
  prop: "fileName",
1910
2155
  "min-width": 0,
1911
2156
  flex: 1
1912
2157
  }, null, 8, ["label"]),
1913
- d(D, {
1914
- label: p(e)("dialog.replacementDlg.replace"),
2158
+ p(k, {
2159
+ label: m(e)("dialog.replacementDlg.replace"),
1915
2160
  fixed: "right",
1916
2161
  width: "60"
1917
2162
  }, {
1918
- default: f(({ row: A }) => [
1919
- d(H, {
2163
+ default: f(({ row: z }) => [
2164
+ p(A, {
1920
2165
  link: "",
1921
2166
  type: "primary",
1922
2167
  size: "small",
1923
- onClick: (W) => v(A)
2168
+ onClick: (F) => _(z)
1924
2169
  }, {
1925
- default: f(() => b[2] || (b[2] = [
1926
- I(" ... ", -1)
2170
+ default: f(() => v[2] || (v[2] = [
2171
+ R(" ... ", -1)
1927
2172
  ])),
1928
2173
  _: 2,
1929
2174
  __: [2]
@@ -1934,12 +2179,12 @@ const Uo = /* @__PURE__ */ z({
1934
2179
  ]),
1935
2180
  _: 1
1936
2181
  }, 8, ["data"]),
1937
- r("input", {
2182
+ d("input", {
1938
2183
  type: "file",
1939
2184
  ref_key: "fileInput",
1940
2185
  ref: a,
1941
2186
  accept: ".png,.jpg,.jpeg",
1942
- onChange: w,
2187
+ onChange: x,
1943
2188
  style: { display: "none" }
1944
2189
  }, null, 544)
1945
2190
  ]),
@@ -1953,77 +2198,77 @@ const Uo = /* @__PURE__ */ z({
1953
2198
  }, 8, ["title", "modelValue"]);
1954
2199
  };
1955
2200
  }
1956
- }), Qo = /* @__PURE__ */ z({
2201
+ }), ll = /* @__PURE__ */ E({
1957
2202
  __name: "MlPointStyleDlg",
1958
2203
  setup(t) {
1959
- const { t: e } = R(), n = Wo(E.instance), i = k(!0), o = k(0), l = [
2204
+ const { t: e } = Y(), n = Qo(P.instance), i = M(!0), o = M(0), l = [
1960
2205
  [
1961
- { id: 0, icon: rn },
1962
- { id: 1, icon: dn },
1963
- { id: 2, icon: fn },
1964
- { id: 3, icon: hn },
1965
- { id: 4, icon: yn }
2206
+ { id: 0, icon: mn },
2207
+ { id: 1, icon: fn },
2208
+ { id: 2, icon: _n },
2209
+ { id: 3, icon: bn },
2210
+ { id: 4, icon: Mn }
1966
2211
  ],
1967
2212
  [
1968
- { id: 32, icon: kn },
1969
- { id: 33, icon: Sn },
1970
- { id: 34, icon: Bn },
1971
- { id: 35, icon: $n },
1972
- { id: 36, icon: Vn }
2213
+ { id: 32, icon: Ln },
2214
+ { id: 33, icon: Bn },
2215
+ { id: 34, icon: $n },
2216
+ { id: 35, icon: An },
2217
+ { id: 36, icon: Fn }
1973
2218
  ],
1974
2219
  [
1975
- { id: 64, icon: In },
1976
- { id: 65, icon: Rn },
1977
- { id: 66, icon: Wn },
1978
- { id: 67, icon: jn },
1979
- { id: 68, icon: Xn }
2220
+ { id: 64, icon: Hn },
2221
+ { id: 65, icon: Xn },
2222
+ { id: 66, icon: Un },
2223
+ { id: 67, icon: Qn },
2224
+ { id: 68, icon: eo }
1980
2225
  ],
1981
2226
  [
1982
- { id: 96, icon: Jn },
1983
- { id: 97, icon: no },
1984
- { id: 98, icon: ao },
1985
- { id: 99, icon: ro },
1986
- { id: 100, icon: mo }
2227
+ { id: 96, icon: oo },
2228
+ { id: 97, icon: io },
2229
+ { id: 98, icon: co },
2230
+ { id: 99, icon: po },
2231
+ { id: 100, icon: go }
1987
2232
  ]
1988
2233
  ], a = () => {
1989
2234
  n.pdmode && (o.value = n.pdmode);
1990
2235
  };
1991
2236
  a();
1992
- const c = (w, h) => l[w][h].id == o.value ? "primary" : null, s = (w, h) => {
1993
- o.value = l[w][h].id;
1994
- }, m = () => {
1995
- E.instance.curDocument.database.pdmode = o.value;
1996
- }, v = () => {
2237
+ const c = (x, h) => l[x][h].id == o.value ? "primary" : null, r = (x, h) => {
2238
+ o.value = l[x][h].id;
2239
+ }, g = () => {
2240
+ P.instance.curDocument.database.pdmode = o.value;
2241
+ }, _ = () => {
1997
2242
  a();
1998
2243
  };
1999
- return (w, h) => {
2000
- const _ = S("el-button"), b = S("el-col"), x = S("el-row");
2001
- return u(), B(Ve, {
2002
- title: p(e)("dialog.pointStyleDlg.title"),
2244
+ return (x, h) => {
2245
+ const u = L("el-button"), v = L("el-col"), b = L("el-row");
2246
+ return s(), B(Ne, {
2247
+ title: m(e)("dialog.pointStyleDlg.title"),
2003
2248
  width: 400,
2004
2249
  modelValue: i.value,
2005
- "onUpdate:modelValue": h[0] || (h[0] = (L) => i.value = L),
2250
+ "onUpdate:modelValue": h[0] || (h[0] = (S) => i.value = S),
2006
2251
  name: "PointStyleDlg",
2007
- onOk: m,
2008
- onCancel: v
2252
+ onOk: g,
2253
+ onCancel: _
2009
2254
  }, {
2010
2255
  default: f(() => [
2011
- (u(), g(j, null, K(l, (L, T) => d(x, {
2012
- key: T,
2256
+ (s(), w(G, null, W(l, (S, $) => p(b, {
2257
+ key: $,
2013
2258
  style: { "margin-top": "10px" },
2014
2259
  gutter: 6,
2015
2260
  justify: "space-between"
2016
2261
  }, {
2017
2262
  default: f(() => [
2018
- (u(!0), g(j, null, K(L, (y, M) => (u(), B(b, {
2019
- key: M,
2263
+ (s(!0), w(G, null, W(S, (C, D) => (s(), B(v, {
2264
+ key: D,
2020
2265
  span: 4
2021
2266
  }, {
2022
2267
  default: f(() => [
2023
- d(_, {
2024
- icon: y.icon,
2025
- type: c(T, M),
2026
- onClick: (D) => s(T, M),
2268
+ p(u, {
2269
+ icon: C.icon,
2270
+ type: c($, D),
2271
+ onClick: (k) => r($, D),
2027
2272
  style: { "font-size": "25px" }
2028
2273
  }, null, 8, ["icon", "type", "onClick"])
2029
2274
  ]),
@@ -2042,79 +2287,79 @@ const Uo = /* @__PURE__ */ z({
2042
2287
  try {
2043
2288
  if (typeof document < "u") {
2044
2289
  var t = document.createElement("style");
2045
- t.appendChild(document.createTextNode(".ml-dropdown-icon[data-v-3fc33b5d],.ml-dropdown-icon[data-v-3fc33b5d]:hover{outline:none;border:none}.ml-status-bar[data-v-d6a59cf0]{position:fixed;bottom:0;left:0;right:0;height:30px;display:flex;justify-content:space-between;align-items:center;background-color:var(--el-fill-color);box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-status-bar-left[data-v-d6a59cf0],.ml-status-bar-right[data-v-d6a59cf0]{display:flex;align-items:center}.ml-status-bar-left[data-v-d6a59cf0]>*{margin-right:10px}.ml-status-bar-right[data-v-d6a59cf0]>*{margin-left:10px}.ml-toggle-button[data-v-b676e93b]{border:none;padding:0;cursor:pointer;width:var(--0547f26d);height:var(--0547f26d)}.ml-vertical-toolbar-button-group[data-v-5261c686]{display:flex;flex-direction:column}.ml-horizontal-toolbar-button-group[data-v-5261c686]{display:flex;flex-direction:row}.ml-toolbar-button[data-v-5261c686]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px}.ml-toolbar-button-text[data-v-5261c686]{margin-left:0;margin-top:5px}.ml-tool-palette-dialog[data-v-8645db4f]{cursor:default;width:300px;min-width:var(--collapsed-width);position:fixed;box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-tool-palette-dialog-icon[data-v-8645db4f]{border-bottom:1px solid var(--el-border-color);cursor:default}.ml-tool-palette-dialog-icon[data-v-8645db4f]:hover{color:var(--el-color-primary)}.ml-tool-palette-dialog-layout[data-v-8645db4f]{display:flex;height:100%}.ml-tool-palette-title-bar[data-v-8645db4f]{width:var(--collapsed-width);display:flex;justify-content:left;align-items:center;cursor:move;writing-mode:vertical-rl;text-align:center;background-color:var(--el-fill-color)}.ml-tool-palette-title[data-v-8645db4f]{pointer-events:none;margin-top:10px;margin-bottom:10px;font-size:small;-webkit-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-tool-palette-content[data-v-8645db4f]{-webkit-user-select:none;user-select:none;flex-grow:1;display:flex;justify-content:space-around;background-color:var(--el-fill-color);overflow:hidden}.ml-tool-palette-dialog-layout.left .ml-tool-palette-title-bar[data-v-8645db4f]{order:1}.ml-tool-palette-dialog-layout.left .ml-tool-palette-content[data-v-8645db4f],.ml-tool-palette-dialog-layout.right .ml-tool-palette-title-bar[data-v-8645db4f]{order:2}.ml-tool-palette-dialog-layout.right .ml-tool-palette-content[data-v-8645db4f]{order:1}")), document.head.appendChild(t);
2290
+ t.appendChild(document.createTextNode(".ml-dropdown-icon[data-v-3fc33b5d],.ml-dropdown-icon[data-v-3fc33b5d]:hover{outline:none;border:none}.ml-status-bar[data-v-d6a59cf0]{position:fixed;bottom:0;left:0;right:0;height:30px;display:flex;justify-content:space-between;align-items:center;background-color:var(--el-fill-color);box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-status-bar-left[data-v-d6a59cf0],.ml-status-bar-right[data-v-d6a59cf0]{display:flex;align-items:center}.ml-status-bar-left[data-v-d6a59cf0]>*{margin-right:10px}.ml-status-bar-right[data-v-d6a59cf0]>*{margin-left:10px}.ml-toggle-button[data-v-b676e93b]{border:none;padding:0;cursor:pointer;width:var(--0547f26d);height:var(--0547f26d)}.ml-vertical-toolbar-button-group[data-v-c6504e33]{display:flex;flex-direction:column;background-color:var(--el-fill-color)}.ml-horizontal-toolbar-button-group[data-v-c6504e33]{display:flex;flex-direction:row;background-color:var(--el-fill-color)}.ml-toolbar-button[data-v-c6504e33]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px}.ml-toolbar-button-text[data-v-c6504e33]{margin-left:0;margin-top:5px}.ml-tool-palette-dialog[data-v-43098ce9]{cursor:default;width:300px;min-width:var(--collapsed-width);position:fixed;box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-tool-palette-dialog-icon[data-v-43098ce9]{border-bottom:1px solid var(--el-border-color);cursor:default}.ml-tool-palette-dialog-icon[data-v-43098ce9]:hover{color:var(--el-color-primary)}.ml-tool-palette-dialog-layout[data-v-43098ce9]{display:flex;height:100%}.ml-tool-palette-title-bar[data-v-43098ce9]{width:var(--collapsed-width);display:flex;justify-content:left;align-items:center;cursor:move;writing-mode:vertical-rl;text-align:center;background-color:var(--el-fill-color)}.ml-tool-palette-title[data-v-43098ce9]{pointer-events:none;margin-top:10px;margin-bottom:10px;font-size:small;-webkit-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-tool-palette-content[data-v-43098ce9]{-webkit-user-select:none;user-select:none;flex-grow:1;display:flex;flex-direction:column;background-color:var(--el-fill-color);overflow:hidden}.ml-tool-palette-tabs[data-v-43098ce9]{display:flex;flex-direction:column;height:100%;flex:1}.ml-tool-palette-tabs[data-v-43098ce9] .el-tabs{display:flex;flex-direction:column;height:100%}.ml-tool-palette-tabs[data-v-43098ce9] .el-tabs__header{margin:0;border-bottom:none;order:1;flex-shrink:0;position:relative}.ml-tool-palette-tabs[data-v-43098ce9] .el-tabs__content{flex:1;overflow:auto;padding:0;order:2;min-height:0;position:relative}.ml-tool-palette-tabs[data-v-43098ce9] .el-tab-pane{height:100%;overflow:auto}.ml-tool-palette-default-content[data-v-43098ce9]{flex:1;overflow:auto;display:flex;flex-direction:column}.ml-tool-palette-dialog-layout.left .ml-tool-palette-title-bar[data-v-43098ce9]{order:1}.ml-tool-palette-dialog-layout.left .ml-tool-palette-content[data-v-43098ce9],.ml-tool-palette-dialog-layout.right .ml-tool-palette-title-bar[data-v-43098ce9]{order:2}.ml-tool-palette-dialog-layout.right .ml-tool-palette-content[data-v-43098ce9]{order:1}")), document.head.appendChild(t);
2046
2291
  }
2047
2292
  } catch (e) {
2048
2293
  console.error("vite-plugin-css-injected-by-js", e);
2049
2294
  }
2050
2295
  })();
2051
- const Zo = {
2296
+ const al = {
2052
2297
  xmlns: "http://www.w3.org/2000/svg",
2053
2298
  width: "1em",
2054
2299
  height: "1em",
2055
2300
  viewBox: "0 0 1024 1024"
2056
- }, Jo = /* @__PURE__ */ r("path", {
2301
+ }, il = /* @__PURE__ */ d("path", {
2057
2302
  fill: "currentColor",
2058
2303
  d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
2059
- }, null, -1), el = [
2060
- Jo
2304
+ }, null, -1), sl = [
2305
+ il
2061
2306
  ];
2062
- function tl(t, e) {
2063
- return u(), g("svg", Zo, [...el]);
2307
+ function rl(t, e) {
2308
+ return s(), w("svg", al, [...sl]);
2064
2309
  }
2065
- const Le = { render: tl }, nl = {
2310
+ const ze = { render: rl }, cl = {
2066
2311
  xmlns: "http://www.w3.org/2000/svg",
2067
2312
  width: "1em",
2068
2313
  height: "1em",
2069
2314
  viewBox: "0 0 1024 1024"
2070
- }, ol = /* @__PURE__ */ r("path", {
2315
+ }, ul = /* @__PURE__ */ d("path", {
2071
2316
  fill: "currentColor",
2072
2317
  d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
2073
- }, null, -1), ll = [
2074
- ol
2318
+ }, null, -1), dl = [
2319
+ ul
2075
2320
  ];
2076
- function al(t, e) {
2077
- return u(), g("svg", nl, [...ll]);
2321
+ function ml(t, e) {
2322
+ return s(), w("svg", cl, [...dl]);
2078
2323
  }
2079
- const ze = { render: al }, il = /* @__PURE__ */ z({
2324
+ const Be = { render: ml }, pl = /* @__PURE__ */ E({
2080
2325
  __name: "MlCollapse",
2081
- props: /* @__PURE__ */ ee({
2326
+ props: /* @__PURE__ */ le({
2082
2327
  size: { default: 18 },
2083
2328
  reverse: { type: Boolean, default: !1 }
2084
2329
  }, {
2085
2330
  modelValue: { default: !0 },
2086
2331
  modelModifiers: {}
2087
2332
  }),
2088
- emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
2333
+ emits: /* @__PURE__ */ le(["change"], ["update:modelValue"]),
2089
2334
  setup(t, { emit: e }) {
2090
- const n = t, i = _e(t, "modelValue"), o = e, l = C(() => n.reverse ? i.value ? Le : ze : i.value ? ze : Le), a = C(() => `${n.size}px`), c = () => {
2335
+ const n = t, i = pe(t, "modelValue"), o = e, l = T(() => n.reverse ? i.value ? ze : Be : i.value ? Be : ze), a = T(() => `${n.size}px`), c = () => {
2091
2336
  o("change", i.value), i.value = !i.value;
2092
2337
  };
2093
- return (s, m) => {
2094
- const v = de;
2095
- return u(), B(v, {
2338
+ return (r, g) => {
2339
+ const _ = fe;
2340
+ return s(), B(_, {
2096
2341
  size: a.value,
2097
2342
  onClick: c
2098
2343
  }, {
2099
2344
  default: f(() => [
2100
- (u(), B(ae(l.value)))
2345
+ (s(), B(re(l.value)))
2101
2346
  ]),
2102
2347
  _: 1
2103
2348
  }, 8, ["size"]);
2104
2349
  };
2105
2350
  }
2106
- }), sl = (t) => (Te("data-v-3fc33b5d"), t = t(), $e(), t), rl = /* @__PURE__ */ sl(() => /* @__PURE__ */ r("svg", {
2351
+ }), vl = (t) => ($e("data-v-3fc33b5d"), t = t(), Ve(), t), fl = /* @__PURE__ */ vl(() => /* @__PURE__ */ d("svg", {
2107
2352
  preserveAspectRatio: "xMidYMid meet",
2108
2353
  viewBox: "0 0 24 24",
2109
2354
  width: "1.2em",
2110
2355
  height: "1.2em",
2111
2356
  "data-v-63d067da": ""
2112
2357
  }, [
2113
- /* @__PURE__ */ r("path", {
2358
+ /* @__PURE__ */ d("path", {
2114
2359
  fill: "currentColor",
2115
2360
  d: "m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"
2116
2361
  })
2117
- ], -1)), cl = /* @__PURE__ */ z({
2362
+ ], -1)), gl = /* @__PURE__ */ E({
2118
2363
  __name: "MlDropdown",
2119
2364
  props: {
2120
2365
  icon: {},
@@ -2125,21 +2370,21 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
2125
2370
  click: null
2126
2371
  },
2127
2372
  setup(t, { emit: e }) {
2128
- const n = t, i = e, o = C(() => n.items.filter((a) => a.name !== n.current)), l = (a) => {
2373
+ const n = t, i = e, o = T(() => n.items.filter((a) => a.name !== n.current)), l = (a) => {
2129
2374
  i("click", a);
2130
2375
  };
2131
2376
  return (a, c) => {
2132
- const s = de, m = rt, v = st, w = it;
2133
- return u(), B(w, { onCommand: l }, {
2377
+ const r = fe, g = ft, _ = vt, x = pt;
2378
+ return s(), B(x, { onCommand: l }, {
2134
2379
  dropdown: f(() => [
2135
- d(v, null, {
2380
+ p(_, null, {
2136
2381
  default: f(() => [
2137
- (u(!0), g(j, null, K(o.value, (h) => (u(), B(m, {
2382
+ (s(!0), w(G, null, W(o.value, (h) => (s(), B(g, {
2138
2383
  key: h.text,
2139
2384
  command: h.name
2140
2385
  }, {
2141
2386
  default: f(() => [
2142
- I($(h.text), 1)
2387
+ R(V(h.text), 1)
2143
2388
  ]),
2144
2389
  _: 2
2145
2390
  }, 1032, ["command"]))), 128))
@@ -2148,12 +2393,12 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
2148
2393
  })
2149
2394
  ]),
2150
2395
  default: f(() => [
2151
- d(s, {
2396
+ p(r, {
2152
2397
  size: "30",
2153
2398
  class: "ml-dropdown-icon"
2154
2399
  }, {
2155
2400
  default: f(() => [
2156
- rl
2401
+ fl
2157
2402
  ]),
2158
2403
  _: 1
2159
2404
  })
@@ -2162,12 +2407,12 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
2162
2407
  });
2163
2408
  };
2164
2409
  }
2165
- }), ve = (t, e) => {
2410
+ }), _e = (t, e) => {
2166
2411
  const n = t.__vccOpts || t;
2167
2412
  for (const [i, o] of e)
2168
2413
  n[i] = o;
2169
2414
  return n;
2170
- }, ul = /* @__PURE__ */ ve(cl, [["__scopeId", "data-v-3fc33b5d"]]), dl = '<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" width="1.2em" height="1.2em" data-v-63d067da=""><path fill="currentColor" d="m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"></path></svg>', ml = /* @__PURE__ */ z({
2415
+ }, hl = /* @__PURE__ */ _e(gl, [["__scopeId", "data-v-3fc33b5d"]]), _l = '<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" width="1.2em" height="1.2em" data-v-63d067da=""><path fill="currentColor" d="m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"></path></svg>', wl = /* @__PURE__ */ E({
2171
2416
  __name: "MlLanguage",
2172
2417
  props: {
2173
2418
  languages: {},
@@ -2180,28 +2425,28 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
2180
2425
  const n = t, i = e, o = (l) => {
2181
2426
  i("click", l);
2182
2427
  };
2183
- return (l, a) => (u(), B(ul, {
2184
- icon: dl,
2428
+ return (l, a) => (s(), B(hl, {
2429
+ icon: _l,
2185
2430
  items: n.languages,
2186
2431
  current: n.current,
2187
2432
  onClick: o
2188
2433
  }, null, 8, ["items", "current"]));
2189
2434
  }
2190
- }), pl = {}, fl = { class: "ml-status-bar" }, vl = { class: "ml-status-bar-left" }, gl = { class: "ml-status-bar-right" };
2191
- function hl(t, e) {
2192
- return u(), g("div", fl, [
2193
- r("div", vl, [
2194
- ce(t.$slots, "left", {}, void 0, !0)
2435
+ }), yl = {}, bl = { class: "ml-status-bar" }, xl = { class: "ml-status-bar-left" }, kl = { class: "ml-status-bar-right" };
2436
+ function Ml(t, e) {
2437
+ return s(), w("div", bl, [
2438
+ d("div", xl, [
2439
+ ie(t.$slots, "left", {}, void 0, !0)
2195
2440
  ]),
2196
- r("div", gl, [
2197
- ce(t.$slots, "right", {}, void 0, !0)
2441
+ d("div", kl, [
2442
+ ie(t.$slots, "right", {}, void 0, !0)
2198
2443
  ])
2199
2444
  ]);
2200
2445
  }
2201
- const _l = /* @__PURE__ */ ve(pl, [["render", hl], ["__scopeId", "data-v-d6a59cf0"]]), wl = {
2446
+ const Cl = /* @__PURE__ */ _e(yl, [["render", Ml], ["__scopeId", "data-v-d6a59cf0"]]), Sl = {
2202
2447
  key: 0,
2203
2448
  class: "ml-toolbar-button-text"
2204
- }, yl = /* @__PURE__ */ z({
2449
+ }, Ll = /* @__PURE__ */ E({
2205
2450
  __name: "MlToolBar",
2206
2451
  props: {
2207
2452
  items: {},
@@ -2212,7 +2457,7 @@ const _l = /* @__PURE__ */ ve(pl, [["render", hl], ["__scopeId", "data-v-d6a59cf
2212
2457
  click: null
2213
2458
  },
2214
2459
  setup(t, { emit: e }) {
2215
- const n = t, i = e, o = C(() => n.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), l = C(() => n.size === "small" ? 20 : 30), a = C(() => {
2460
+ const n = t, i = e, o = T(() => n.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), l = T(() => n.size === "small" ? 20 : 30), a = T(() => {
2216
2461
  switch (n.size) {
2217
2462
  case "small":
2218
2463
  return 30;
@@ -2220,36 +2465,36 @@ const _l = /* @__PURE__ */ ve(pl, [["render", hl], ["__scopeId", "data-v-d6a59cf
2220
2465
  return 50;
2221
2466
  }
2222
2467
  return 70;
2223
- }), c = (v) => v.description ? v.description : v.text, s = C(() => n.size === "large"), m = (v) => {
2224
- i("click", v);
2468
+ }), c = (_) => _.description ? _.description : _.text, r = T(() => n.size === "large"), g = (_) => {
2469
+ i("click", _);
2225
2470
  };
2226
- return (v, w) => {
2227
- const h = de, _ = dt, b = ut, x = ct;
2228
- return u(), B(x, {
2229
- class: we(o.value)
2471
+ return (_, x) => {
2472
+ const h = fe, u = _t, v = ht, b = gt;
2473
+ return s(), B(b, {
2474
+ class: ve(o.value)
2230
2475
  }, {
2231
2476
  default: f(() => [
2232
- (u(!0), g(j, null, K(v.items, (L, T) => (u(), B(b, {
2233
- key: L.text,
2234
- content: c(L),
2477
+ (s(!0), w(G, null, W(_.items, (S, $) => (s(), B(v, {
2478
+ key: S.text,
2479
+ content: c(S),
2235
2480
  "hide-after": 0
2236
2481
  }, {
2237
2482
  default: f(() => [
2238
- (u(), B(_, {
2483
+ (s(), B(u, {
2239
2484
  class: "ml-toolbar-button",
2240
- style: re({ width: a.value + "px", height: a.value + "px" }),
2241
- key: T,
2242
- onClick: (y) => m(L.command)
2485
+ style: me({ width: a.value + "px", height: a.value + "px" }),
2486
+ key: $,
2487
+ onClick: (C) => g(S.command)
2243
2488
  }, {
2244
2489
  default: f(() => [
2245
- r("div", null, [
2246
- d(h, { size: l.value }, {
2490
+ d("div", null, [
2491
+ p(h, { size: l.value }, {
2247
2492
  default: f(() => [
2248
- (u(), B(ae(L.icon)))
2493
+ (s(), B(re(S.icon)))
2249
2494
  ]),
2250
2495
  _: 2
2251
2496
  }, 1032, ["size"]),
2252
- s.value ? (u(), g("div", wl, $(L.text), 1)) : O("", !0)
2497
+ r.value ? (s(), w("div", Sl, V(S.text), 1)) : O("", !0)
2253
2498
  ])
2254
2499
  ]),
2255
2500
  _: 2
@@ -2262,12 +2507,12 @@ const _l = /* @__PURE__ */ ve(pl, [["render", hl], ["__scopeId", "data-v-d6a59cf
2262
2507
  }, 8, ["class"]);
2263
2508
  };
2264
2509
  }
2265
- }), bl = /* @__PURE__ */ ve(yl, [["__scopeId", "data-v-5261c686"]]), Be = 20;
2266
- function xl(t, e, n) {
2267
- const i = k(!1), o = (s) => {
2510
+ }), Tl = /* @__PURE__ */ _e(Ll, [["__scopeId", "data-v-c6504e33"]]), De = 20;
2511
+ function zl(t, e, n) {
2512
+ const i = M(!1), o = (r) => {
2268
2513
  if (n.value && t.value) {
2269
- const m = t.value.getBoundingClientRect(), v = s.clientX < m.left || s.clientX > m.right || s.clientY < m.top || s.clientY > m.bottom;
2270
- i.value = !v;
2514
+ const g = t.value.getBoundingClientRect(), _ = r.clientX < g.left || r.clientX > g.right || r.clientY < g.top || r.clientY > g.bottom;
2515
+ i.value = !_;
2271
2516
  }
2272
2517
  }, l = () => {
2273
2518
  n.value && (i.value = !0);
@@ -2276,89 +2521,89 @@ function xl(t, e, n) {
2276
2521
  }, c = () => {
2277
2522
  e.value && e.value.removeEventListener("mousemove", l), t.value && t.value.removeEventListener("mousemove", l);
2278
2523
  };
2279
- return q(() => {
2524
+ return Z(() => {
2280
2525
  window.addEventListener("mousemove", o);
2281
2526
  }), ne(() => {
2282
2527
  window.removeEventListener("mousemove", o);
2283
- }), V(n, (s) => {
2284
- s && (i.value = !1);
2285
- }), V(t, (s) => {
2286
- s ? a() : c();
2528
+ }), I(n, (r) => {
2529
+ r && (i.value = !1);
2530
+ }), I(t, (r) => {
2531
+ r ? a() : c();
2287
2532
  }), { autoOpened: i };
2288
2533
  }
2289
- function kl(t, e, n) {
2290
- const i = k(!1), o = k(null), l = k(null), a = { x: 0, y: 0 }, c = C(() => o.value == null || l.value == null ? { x: 0, y: 0 } : {
2534
+ function Bl(t, e, n) {
2535
+ const i = M(!1), o = M(null), l = M(null), a = { x: 0, y: 0 }, c = T(() => o.value == null || l.value == null ? { x: 0, y: 0 } : {
2291
2536
  x: o.value.x - l.value.x,
2292
2537
  y: o.value.y - l.value.y
2293
- }), s = () => {
2538
+ }), r = () => {
2294
2539
  if (t.value) {
2295
- const b = t.value.getBoundingClientRect();
2540
+ const v = t.value.getBoundingClientRect();
2296
2541
  l.value = {
2297
- x: b.left,
2298
- y: b.top
2542
+ x: v.left,
2543
+ y: v.top
2299
2544
  }, o.value = {
2300
- x: b.left,
2301
- y: b.top
2545
+ x: v.left,
2546
+ y: v.top
2302
2547
  };
2303
2548
  }
2304
- }, m = () => {
2305
- t.value && t.value.addEventListener("mousedown", w);
2306
- }, v = () => {
2307
- t.value && t.value.removeEventListener("mousedown", w);
2308
- }, w = (b) => {
2549
+ }, g = () => {
2550
+ t.value && t.value.addEventListener("mousedown", x);
2551
+ }, _ = () => {
2552
+ t.value && t.value.removeEventListener("mousedown", x);
2553
+ }, x = (v) => {
2309
2554
  if (t.value != null) {
2310
2555
  if (e && e.value) {
2311
- const x = e.value.getBoundingClientRect();
2312
- if (b.clientX < x.left || b.clientX > x.right || b.clientY < x.top || b.clientY > x.bottom) return;
2556
+ const b = e.value.getBoundingClientRect();
2557
+ if (v.clientX < b.left || v.clientX > b.right || v.clientY < b.top || v.clientY > b.bottom) return;
2313
2558
  }
2314
- i.value = !0, a.x = b.clientX, a.y = b.clientY, s(), document.addEventListener("mousemove", h), document.addEventListener("mouseup", _);
2559
+ i.value = !0, a.x = v.clientX, a.y = v.clientY, r(), document.addEventListener("mousemove", h), document.addEventListener("mouseup", u);
2315
2560
  }
2316
- }, h = (b) => {
2561
+ }, h = (v) => {
2317
2562
  if (i.value && l.value && o.value) {
2318
- const x = window.innerWidth, L = window.innerHeight, T = t.value, y = T.getBoundingClientRect(), M = y.width, D = y.height, H = l.value.x + (b.clientX - a.x), N = l.value.y + (b.clientY - a.y);
2563
+ const b = window.innerWidth, S = window.innerHeight, $ = t.value, C = $.getBoundingClientRect(), D = C.width, k = C.height, A = l.value.x + (v.clientX - a.x), N = l.value.y + (v.clientY - a.y);
2319
2564
  o.value.x = Math.max(
2320
2565
  n ? n.value.offset.value.left : 0,
2321
- H
2566
+ A
2322
2567
  );
2323
- const F = x - M;
2568
+ const y = b - D;
2324
2569
  o.value.x = Math.min(
2325
- n ? F - n.value.offset.value.right : F,
2570
+ n ? y - n.value.offset.value.right : y,
2326
2571
  o.value.x
2327
2572
  ), o.value.y = Math.max(
2328
2573
  n ? n.value.offset.value.top : 0,
2329
- Math.min(N, L - D)
2574
+ Math.min(N, S - k)
2330
2575
  );
2331
- const A = L - D;
2576
+ const z = S - k;
2332
2577
  o.value.y = Math.min(
2333
- n ? A - n.value.offset.value.bottom : A,
2578
+ n ? z - n.value.offset.value.bottom : z,
2334
2579
  o.value.y
2335
- ), T.style.left = o.value.x + "px", T.style.top = o.value.y + "px";
2580
+ ), $.style.left = o.value.x + "px", $.style.top = o.value.y + "px";
2336
2581
  }
2337
- }, _ = () => {
2338
- i.value = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", _);
2582
+ }, u = () => {
2583
+ i.value = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", u);
2339
2584
  };
2340
- return q(() => {
2341
- t.value && (s(), m());
2585
+ return Z(() => {
2586
+ t.value && (r(), g());
2342
2587
  }), ne(() => {
2343
- t.value && t.value.removeEventListener("mousedown", w);
2344
- }), V(t, (b) => {
2345
- b ? (s(), m()) : v();
2588
+ t.value && t.value.removeEventListener("mousedown", x);
2589
+ }), I(t, (v) => {
2590
+ v ? (r(), g()) : _();
2346
2591
  }), {
2347
2592
  isDragging: i,
2348
2593
  movement: c,
2349
2594
  position: o
2350
2595
  };
2351
2596
  }
2352
- function Ml(t, e, n) {
2353
- const i = k(!1), o = k("left"), { isDragging: l, movement: a, position: c } = kl(
2597
+ function Dl(t, e, n) {
2598
+ const i = M(!1), o = M("left"), { isDragging: l, movement: a, position: c } = Bl(
2354
2599
  t,
2355
2600
  e,
2356
2601
  n
2357
2602
  );
2358
- return V(a, (s) => {
2359
- if (s && t.value) {
2360
- const m = t.value.getBoundingClientRect();
2361
- m.left <= n.value.offset.value.left ? (o.value = "left", i.value = !0) : window.innerWidth - m.left - m.width <= n.value.offset.value.right ? (o.value = "right", i.value = !0) : i.value = !1;
2603
+ return I(a, (r) => {
2604
+ if (r && t.value) {
2605
+ const g = t.value.getBoundingClientRect();
2606
+ g.left <= n.value.offset.value.left ? (o.value = "left", i.value = !0) : window.innerWidth - g.left - g.width <= n.value.offset.value.right ? (o.value = "right", i.value = !0) : i.value = !1;
2362
2607
  }
2363
2608
  }), {
2364
2609
  docked: i,
@@ -2368,16 +2613,16 @@ function Ml(t, e, n) {
2368
2613
  position: c
2369
2614
  };
2370
2615
  }
2371
- function Cl(t, e, n, i) {
2372
- const o = k(null), l = k(null), a = k(null), c = k(null);
2373
- return V(t, (s, m) => {
2374
- o.value = m;
2375
- }), V(e, (s, m) => {
2376
- l.value = m;
2377
- }), V(n, (s, m) => {
2378
- a.value = m;
2379
- }), V(i, (s, m) => {
2380
- c.value = m;
2616
+ function El(t, e, n, i) {
2617
+ const o = M(null), l = M(null), a = M(null), c = M(null);
2618
+ return I(t, (r, g) => {
2619
+ o.value = g;
2620
+ }), I(e, (r, g) => {
2621
+ l.value = g;
2622
+ }), I(n, (r, g) => {
2623
+ a.value = g;
2624
+ }), I(i, (r, g) => {
2625
+ c.value = g;
2381
2626
  }), {
2382
2627
  lastLeft: o,
2383
2628
  lastTop: l,
@@ -2385,16 +2630,16 @@ function Cl(t, e, n, i) {
2385
2630
  lastHeight: c
2386
2631
  };
2387
2632
  }
2388
- function Sl(t, e, n, i) {
2389
- const o = k(t.value.width), l = k(t.value.left), a = C(() => t.value.width), c = C(() => t.value.left), s = C(() => n.value ? n.value.x : null);
2390
- return V([a, c], ([m, v]) => {
2391
- (o.value == null || l.value == null || e.value) && (o.value = m, l.value = v);
2392
- }), V(s, (m) => {
2393
- i.value && n.value && (l.value = m);
2633
+ function $l(t, e, n, i) {
2634
+ const o = M(t.value.width), l = M(t.value.left), a = T(() => t.value.width), c = T(() => t.value.left), r = T(() => n.value ? n.value.x : null);
2635
+ return I([a, c], ([g, _]) => {
2636
+ (o.value == null || l.value == null || e.value) && (o.value = g, l.value = _);
2637
+ }), I(r, (g) => {
2638
+ i.value && n.value && (l.value = g);
2394
2639
  }), { left: l, width: o };
2395
2640
  }
2396
- function Ll(t, e = k({ left: 0, right: 0, top: 0, bottom: 0 })) {
2397
- const n = k({});
2641
+ function Vl(t, e = M({ left: 0, right: 0, top: 0, bottom: 0 })) {
2642
+ const n = M({});
2398
2643
  let i = !1;
2399
2644
  const o = () => {
2400
2645
  if (!i && t.value) {
@@ -2402,62 +2647,62 @@ function Ll(t, e = k({ left: 0, right: 0, top: 0, bottom: 0 })) {
2402
2647
  n.value.left = Math.max(l.left, e.value.left), n.value.top = Math.max(l.top, e.value.top), n.value.width = l.width, n.value.height = l.height, i = !0;
2403
2648
  }
2404
2649
  };
2405
- return q(() => {
2650
+ return Z(() => {
2406
2651
  t.value && o();
2407
- }), V(t, (l) => {
2652
+ }), I(t, (l) => {
2408
2653
  l && o();
2409
2654
  }), {
2410
2655
  isIntialized: i,
2411
2656
  initialRect: n
2412
2657
  };
2413
2658
  }
2414
- function zl(t, e = k(!1), n = k(!1), i = k({ left: 0, right: 0, top: 0, bottom: 0 }), o = { width: 20, height: 40 }) {
2415
- const { initialRect: l } = Ll(t, i), a = k(!1);
2416
- let c = 0, s = 0, m = 0, v = 0, w = 0;
2417
- const h = 5, _ = k(null), b = (M) => {
2659
+ function Pl(t, e = M(!1), n = M(!1), i = M({ left: 0, right: 0, top: 0, bottom: 0 }), o = { width: 20, height: 40 }) {
2660
+ const { initialRect: l } = Vl(t, i), a = M(!1);
2661
+ let c = 0, r = 0, g = 0, _ = 0, x = 0;
2662
+ const h = 5, u = M(null), v = (D) => {
2418
2663
  if (!(!t.value || e.value))
2419
2664
  if (a.value) {
2420
- const D = M.clientX - v, H = M.clientY - w;
2421
- if (_.value === "left" || _.value === "left-bottom-corner") {
2422
- const N = s - D;
2423
- N > o.width && (l.value.width = N, l.value.left = c + D, t.value.style.left = l.value.left + "px", t.value.style.width = l.value.width + "px");
2665
+ const k = D.clientX - _, A = D.clientY - x;
2666
+ if (u.value === "left" || u.value === "left-bottom-corner") {
2667
+ const N = r - k;
2668
+ N > o.width && (l.value.width = N, l.value.left = c + k, t.value.style.left = l.value.left + "px", t.value.style.width = l.value.width + "px");
2424
2669
  }
2425
- if (_.value === "right" || _.value === "right-bottom-corner") {
2426
- const N = s + D;
2670
+ if (u.value === "right" || u.value === "right-bottom-corner") {
2671
+ const N = r + k;
2427
2672
  N > o.width && (l.value.width = N, t.value.style.width = l.value.width + "px");
2428
2673
  }
2429
- if (_.value === "bottom" || _.value === "left-bottom-corner" || _.value === "right-bottom-corner") {
2430
- const N = m + H;
2674
+ if (u.value === "bottom" || u.value === "left-bottom-corner" || u.value === "right-bottom-corner") {
2675
+ const N = g + A;
2431
2676
  N > o.height && (l.value.height = N, t.value.style.height = l.value.height + "px");
2432
2677
  }
2433
2678
  } else {
2434
- const D = t.value.getBoundingClientRect(), H = M.clientX - D.left, N = M.clientY - D.top, F = H <= h, A = H >= D.width - h, W = N >= D.height - h;
2435
- F && W && n.value ? (t.value.style.cursor = "nesw-resize", _.value = "left-bottom-corner") : A && W && !n.value ? (t.value.style.cursor = "nwse-resize", _.value = "right-bottom-corner") : F && n.value ? (t.value.style.cursor = "ew-resize", _.value = "left") : A && !n.value ? (t.value.style.cursor = "ew-resize", _.value = "right") : W ? (t.value.style.cursor = "ns-resize", _.value = "bottom") : (t.value.style.cursor = "", _.value = null);
2679
+ const k = t.value.getBoundingClientRect(), A = D.clientX - k.left, N = D.clientY - k.top, y = A <= h, z = A >= k.width - h, F = N >= k.height - h;
2680
+ y && F && n.value ? (t.value.style.cursor = "nesw-resize", u.value = "left-bottom-corner") : z && F && !n.value ? (t.value.style.cursor = "nwse-resize", u.value = "right-bottom-corner") : y && n.value ? (t.value.style.cursor = "ew-resize", u.value = "left") : z && !n.value ? (t.value.style.cursor = "ew-resize", u.value = "right") : F ? (t.value.style.cursor = "ns-resize", u.value = "bottom") : (t.value.style.cursor = "", u.value = null);
2436
2681
  }
2437
- }, x = (M) => {
2438
- if (!t.value || !_.value) return;
2439
- const D = t.value.getBoundingClientRect();
2440
- v = M.clientX, w = M.clientY, s = D.width, m = D.height, c = D.left, l.value.width = s, l.value.height = m, l.value.left = D.left, l.value.top = D.top, a.value = !0, document.addEventListener("mousemove", b), document.addEventListener("mouseup", L);
2441
- }, L = () => {
2442
- a.value = !1, _.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", L);
2443
- }, T = () => {
2444
- t.value && (t.value.removeEventListener("mousedown", x), t.value.removeEventListener("mousemove", b)), document.removeEventListener("mouseup", L);
2445
- }, y = () => {
2446
- t.value && (t.value.addEventListener("mousedown", x), t.value.addEventListener("mousemove", b));
2682
+ }, b = (D) => {
2683
+ if (!t.value || !u.value) return;
2684
+ const k = t.value.getBoundingClientRect();
2685
+ _ = D.clientX, x = D.clientY, r = k.width, g = k.height, c = k.left, l.value.width = r, l.value.height = g, l.value.left = k.left, l.value.top = k.top, a.value = !0, document.addEventListener("mousemove", v), document.addEventListener("mouseup", S);
2686
+ }, S = () => {
2687
+ a.value = !1, u.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", S);
2688
+ }, $ = () => {
2689
+ t.value && (t.value.removeEventListener("mousedown", b), t.value.removeEventListener("mousemove", v)), document.removeEventListener("mouseup", S);
2690
+ }, C = () => {
2691
+ t.value && (t.value.addEventListener("mousedown", b), t.value.addEventListener("mousemove", v));
2447
2692
  };
2448
- return q(() => {
2449
- t.value && y();
2450
- }), Ae(() => {
2451
- T();
2452
- }), V(t, (M) => {
2453
- M ? y() : T();
2693
+ return Z(() => {
2694
+ t.value && C();
2695
+ }), Pe(() => {
2696
+ $();
2697
+ }), I(t, (D) => {
2698
+ D ? C() : $();
2454
2699
  }), { rect: l, isResizing: a };
2455
2700
  }
2456
- function Bl(t, e, n, i) {
2701
+ function Al(t, e, n, i) {
2457
2702
  const o = () => {
2458
2703
  if (t.value) {
2459
- const s = t.value;
2460
- e.value ? s.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : s.style.transition = "width 0.3s ease";
2704
+ const r = t.value;
2705
+ e.value ? r.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : r.style.transition = "width 0.3s ease";
2461
2706
  }
2462
2707
  }, l = () => {
2463
2708
  t.value && (t.value.style.transition = "");
@@ -2466,230 +2711,526 @@ function Bl(t, e, n, i) {
2466
2711
  }, c = () => {
2467
2712
  t.value && t.value.addEventListener("transitionend", l);
2468
2713
  };
2469
- q(() => {
2714
+ Z(() => {
2470
2715
  t.value && t.value.addEventListener("transitionend", l);
2471
- }), Ae(() => {
2716
+ }), Pe(() => {
2472
2717
  t.value && t.value.removeEventListener("transitionend", l);
2473
- }), V(t, (s) => {
2474
- s ? c() : a();
2475
- }), V(n, () => {
2718
+ }), I(t, (r) => {
2719
+ r ? c() : a();
2720
+ }), I(n, () => {
2476
2721
  o();
2477
- }), V(i, () => {
2722
+ }), I(i, () => {
2478
2723
  o();
2479
2724
  });
2480
2725
  }
2481
- function Dl(t, e, n, i) {
2482
- const o = k(window.innerWidth), l = k(window.innerHeight), { docked: a, orientation: c, movement: s, position: m, isDragging: v } = Ml(
2726
+ function Nl(t, e, n, i) {
2727
+ const o = M(window.innerWidth), l = M(window.innerHeight), { docked: a, orientation: c, movement: r, position: g, isDragging: _ } = Dl(
2483
2728
  t,
2484
2729
  e,
2485
2730
  i
2486
- ), w = C(() => c.value === "right"), { rect: h, isResizing: _ } = zl(
2731
+ ), x = T(() => c.value === "right"), { rect: h, isResizing: u } = Pl(
2487
2732
  t,
2488
2733
  n,
2489
- w,
2734
+ x,
2490
2735
  i.value.offset
2491
- ), { width: b, left: x } = Sl(
2736
+ ), { width: v, left: b } = $l(
2492
2737
  h,
2493
- _,
2494
- m,
2495
- v
2496
- ), { lastTop: L, lastHeight: T } = Cl(
2497
- C(() => h.value.left),
2498
- C(() => h.value.top),
2499
- C(() => h.value.width),
2500
- C(() => h.value.height)
2501
- ), { autoOpened: y } = xl(t, e, n);
2502
- Bl(t, w, n, y);
2503
- const M = (F) => {
2738
+ u,
2739
+ g,
2740
+ _
2741
+ ), { lastTop: S, lastHeight: $ } = El(
2742
+ T(() => h.value.left),
2743
+ T(() => h.value.top),
2744
+ T(() => h.value.width),
2745
+ T(() => h.value.height)
2746
+ ), { autoOpened: C } = zl(t, e, n);
2747
+ Al(t, x, n, C);
2748
+ const D = (y) => {
2504
2749
  if (t.value) {
2505
- const A = t.value.getBoundingClientRect(), W = A.left + F;
2506
- if (w.value) {
2507
- h.value.left = W;
2508
- const X = window.innerWidth - A.width - A.left;
2509
- A.left <= 0 && X >= 0 && F < 0 && (h.value.left = Math.max(0, W)), window.innerWidth - A.width <= 0 && (h.value.left = window.innerWidth - A.width);
2750
+ const z = t.value.getBoundingClientRect(), F = z.left + y;
2751
+ if (x.value) {
2752
+ h.value.left = F;
2753
+ const j = window.innerWidth - z.width - z.left;
2754
+ z.left <= 0 && j >= 0 && y < 0 && (h.value.left = Math.max(0, F)), window.innerWidth - z.width <= 0 && (h.value.left = window.innerWidth - z.width);
2510
2755
  } else
2511
- A.left + A.width >= window.innerWidth && F < 0 && (h.value.left = Math.max(0, W));
2756
+ z.left + z.width >= window.innerWidth && y < 0 && (h.value.left = Math.max(0, F));
2512
2757
  }
2513
- }, D = () => {
2514
- const F = window.innerWidth - o.value;
2515
- o.value = window.innerWidth, l.value = window.innerHeight, M(F);
2758
+ }, k = () => {
2759
+ const y = window.innerWidth - o.value;
2760
+ o.value = window.innerWidth, l.value = window.innerHeight, D(y);
2516
2761
  };
2517
- q(() => {
2518
- window.addEventListener("resize", D);
2762
+ Z(() => {
2763
+ window.addEventListener("resize", k);
2519
2764
  }), ne(() => {
2520
- window.removeEventListener("resize", D);
2765
+ window.removeEventListener("resize", k);
2521
2766
  });
2522
- const H = (F) => {
2523
- F ? (h.value.width = Be, w.value && x.value && b.value && (h.value.left = x.value + b.value - Be)) : (h.value.width = b.value, w.value && x.value && b.value && (h.value.left = x.value));
2767
+ const A = (y) => {
2768
+ y ? (h.value.width = De, x.value && b.value && v.value && (h.value.left = b.value + v.value - De)) : (h.value.width = v.value, x.value && b.value && v.value && (h.value.left = b.value));
2524
2769
  }, N = () => {
2525
- a.value ? (h.value.top = i.value.offset.value.top, h.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (h.value.top = L.value, h.value.height = T.value);
2770
+ a.value ? (h.value.top = i.value.offset.value.top, h.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (h.value.top = S.value, h.value.height = $.value);
2526
2771
  };
2527
- return V(a, () => {
2772
+ return I(a, () => {
2528
2773
  N();
2529
- }), V(n, (F) => {
2530
- H(F);
2531
- }), V(y, (F) => {
2532
- n.value && !v.value && H(!F);
2533
- }), V(s, (F) => {
2534
- if (F && t.value) {
2535
- const A = t.value.getBoundingClientRect();
2536
- h.value.left = A.left, h.value.top = A.top;
2774
+ }), I(n, (y) => {
2775
+ A(y);
2776
+ }), I(C, (y) => {
2777
+ n.value && !_.value && A(!y);
2778
+ }), I(r, (y) => {
2779
+ if (y && t.value) {
2780
+ const z = t.value.getBoundingClientRect();
2781
+ h.value.left = z.left, h.value.top = z.top;
2537
2782
  }
2538
- }), { rect: h, orientation: c, reversed: w };
2783
+ }), { rect: h, orientation: c, reversed: x };
2539
2784
  }
2540
- const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ */ Tl(() => /* @__PURE__ */ r("svg", {
2785
+ const Il = (t) => ($e("data-v-43098ce9"), t = t(), Ve(), t), Fl = /* @__PURE__ */ Il(() => /* @__PURE__ */ d("svg", {
2541
2786
  xmlns: "http://www.w3.org/2000/svg",
2542
2787
  width: "1em",
2543
2788
  height: "1em",
2544
2789
  viewBox: "0 0 1024 1024"
2545
2790
  }, [
2546
- /* @__PURE__ */ r("path", {
2791
+ /* @__PURE__ */ d("path", {
2547
2792
  fill: "currentColor",
2548
2793
  d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
2549
2794
  })
2550
- ], -1)), Al = { class: "ml-tool-palette-title" }, El = { class: "ml-tool-palette-content" }, Vl = /* @__PURE__ */ z({
2795
+ ], -1)), Rl = { class: "ml-tool-palette-title" }, Ol = { class: "ml-tool-palette-content" }, Hl = {
2796
+ key: 1,
2797
+ class: "ml-tool-palette-default-content"
2798
+ }, Yl = /* @__PURE__ */ E({
2551
2799
  __name: "MlToolPalette",
2552
- props: /* @__PURE__ */ ee({
2800
+ props: /* @__PURE__ */ le({
2553
2801
  title: { default: "" },
2802
+ tabs: { default: void 0 },
2554
2803
  leftOffset: { default: 0 },
2555
2804
  rightOffset: { default: 0 },
2556
2805
  topOffset: { default: 0 },
2557
2806
  bottomOffset: { default: 0 }
2558
2807
  }, {
2559
2808
  modelValue: { default: !0 },
2560
- modelModifiers: {}
2809
+ modelModifiers: {},
2810
+ activeTab: { default: "" },
2811
+ activeTabModifiers: {}
2561
2812
  }),
2562
- emits: /* @__PURE__ */ ee(["close"], ["update:modelValue"]),
2813
+ emits: /* @__PURE__ */ le(["close", "tab-change", "tab-close"], ["update:modelValue", "update:activeTab"]),
2563
2814
  setup(t, { emit: e }) {
2564
- const n = t, i = _e(t, "modelValue"), o = e, l = k(!1), a = k(null), c = k(null), s = C(() => ({
2565
- offset: k({
2815
+ const n = t, i = pe(t, "modelValue"), o = pe(t, "activeTab"), l = e, a = T(() => n.tabs && n.tabs.length > 0);
2816
+ Z(() => {
2817
+ a.value && !o.value && n.tabs && n.tabs.length > 0 && (o.value = n.tabs[0].name);
2818
+ }), I(() => n.tabs, (k) => {
2819
+ k && k.length > 0 && !o.value && (o.value = k[0].name);
2820
+ }, { immediate: !0 });
2821
+ const c = M(!1), r = M(null), g = M(null), _ = T(() => ({
2822
+ offset: M({
2566
2823
  left: n.leftOffset,
2567
2824
  right: n.rightOffset,
2568
2825
  top: n.topOffset,
2569
2826
  bottom: n.bottomOffset
2570
2827
  })
2571
2828
  })), {
2572
- rect: m,
2573
- orientation: v,
2574
- reversed: w
2575
- } = Dl(c, a, l, s), h = C(() => ({
2576
- left: `${m.value.left}px`,
2577
- top: `${m.value.top}px`,
2578
- width: `${m.value.width}px`,
2579
- height: `${m.value.height}px`
2580
- })), _ = C(() => w.value ? {
2829
+ rect: x,
2830
+ orientation: h,
2831
+ reversed: u
2832
+ } = Nl(g, r, c, _), v = T(() => ({
2833
+ left: `${x.value.left}px`,
2834
+ top: `${x.value.top}px`,
2835
+ width: `${x.value.width}px`,
2836
+ height: `${x.value.height}px`
2837
+ })), b = T(() => u.value ? {
2581
2838
  borderLeft: "1px solid var(--el-border-color)",
2582
2839
  borderRight: null
2583
2840
  } : {
2584
2841
  borderLeft: null,
2585
2842
  borderRight: "1px solid var(--el-border-color)"
2586
- }), b = () => {
2843
+ }), S = T(() => {
2844
+ if (a.value && o.value && n.tabs) {
2845
+ const k = n.tabs.find((A) => A.name === o.value);
2846
+ if (k && k.title)
2847
+ return k.title;
2848
+ }
2849
+ return n.title;
2850
+ }), $ = () => {
2587
2851
  i.value = !1;
2588
- const x = c.value;
2589
- o("close", {
2590
- x: x ? x.clientLeft : 0,
2591
- y: x ? x.clientTop : 0
2852
+ const k = g.value;
2853
+ l("close", {
2854
+ x: k ? k.clientLeft : 0,
2855
+ y: k ? k.clientTop : 0
2592
2856
  });
2857
+ }, C = (k) => {
2858
+ l("tab-change", k);
2859
+ }, D = (k) => {
2860
+ if (l("tab-close", k), o.value === k && n.tabs) {
2861
+ const A = n.tabs.findIndex((N) => N.name === k);
2862
+ if (A >= 0) {
2863
+ const N = n.tabs[A + 1] || n.tabs[A - 1];
2864
+ N && (o.value = N.name);
2865
+ }
2866
+ }
2593
2867
  };
2594
- return (x, L) => {
2595
- const T = de;
2596
- return i.value ? (u(), g("div", {
2868
+ return (k, A) => {
2869
+ const N = fe, y = mt, z = dt;
2870
+ return i.value ? (s(), w("div", {
2597
2871
  key: 0,
2598
2872
  ref_key: "toolPaletteElement",
2599
- ref: c,
2600
- style: re([h.value]),
2873
+ ref: g,
2874
+ style: me([v.value]),
2601
2875
  class: "ml-tool-palette-dialog"
2602
2876
  }, [
2603
- r("div", {
2604
- class: we(["ml-tool-palette-dialog-layout", p(v)])
2877
+ d("div", {
2878
+ class: ve(["ml-tool-palette-dialog-layout", m(h)])
2605
2879
  }, [
2606
- r("div", {
2880
+ d("div", {
2607
2881
  ref_key: "titleBarElement",
2608
- ref: a,
2882
+ ref: r,
2609
2883
  class: "ml-tool-palette-title-bar",
2610
- style: re(_.value)
2884
+ style: me(b.value)
2611
2885
  }, [
2612
- d(T, {
2886
+ p(N, {
2613
2887
  size: 18,
2614
2888
  class: "ml-tool-palette-dialog-icon",
2615
- onClick: b
2889
+ onClick: $
2616
2890
  }, {
2617
2891
  default: f(() => [
2618
- $l
2892
+ Fl
2619
2893
  ]),
2620
2894
  _: 1
2621
2895
  }),
2622
- d(il, {
2896
+ p(pl, {
2623
2897
  class: "ml-tool-palette-dialog-icon",
2624
- modelValue: l.value,
2625
- "onUpdate:modelValue": L[0] || (L[0] = (y) => l.value = y),
2626
- reverse: p(w)
2898
+ modelValue: c.value,
2899
+ "onUpdate:modelValue": A[0] || (A[0] = (F) => c.value = F),
2900
+ reverse: m(u)
2627
2901
  }, null, 8, ["modelValue", "reverse"]),
2628
- r("span", Al, $(n.title), 1)
2902
+ d("span", Rl, V(S.value), 1)
2629
2903
  ], 4),
2630
- r("div", El, [
2631
- ce(x.$slots, "default", {}, void 0, !0)
2904
+ d("div", Ol, [
2905
+ a.value ? (s(), B(z, {
2906
+ key: 0,
2907
+ modelValue: o.value,
2908
+ "onUpdate:modelValue": A[1] || (A[1] = (F) => o.value = F),
2909
+ type: "border-card",
2910
+ class: "ml-tool-palette-tabs",
2911
+ onTabRemove: D,
2912
+ onTabChange: C
2913
+ }, {
2914
+ default: f(() => [
2915
+ (s(!0), w(G, null, W(n.tabs, (F) => (s(), B(y, {
2916
+ key: F.name,
2917
+ name: F.name,
2918
+ label: F.label
2919
+ }, {
2920
+ label: f(() => [
2921
+ d("span", null, V(F.label), 1)
2922
+ ]),
2923
+ default: f(() => [
2924
+ ie(k.$slots, `tab-${F.name}`, {}, void 0, !0)
2925
+ ]),
2926
+ _: 2
2927
+ }, 1032, ["name", "label"]))), 128))
2928
+ ]),
2929
+ _: 3
2930
+ }, 8, ["modelValue"])) : (s(), w("div", Hl, [
2931
+ ie(k.$slots, "default", {}, void 0, !0)
2932
+ ]))
2632
2933
  ])
2633
2934
  ], 2)
2634
2935
  ], 4)) : O("", !0);
2635
2936
  };
2636
2937
  }
2637
- }), Fl = /* @__PURE__ */ ve(Vl, [["__scopeId", "data-v-8645db4f"]]), Nl = { class: "ml-layer-list-cell" }, Il = { class: "ml-layer-list-cell" }, Pl = /* @__PURE__ */ z({
2938
+ }), Gl = /* @__PURE__ */ _e(Yl, [["__scopeId", "data-v-43098ce9"]]), Xl = { class: "ml-entity-properties" }, Wl = {
2939
+ key: 0,
2940
+ class: "ml-entity-selector"
2941
+ }, Zl = { class: "ml-cell-container" }, Ul = { key: 0 }, ql = { key: 1 }, jl = {
2942
+ key: 0,
2943
+ class: "ml-cell-value"
2944
+ }, Ql = ["title", "onDblclick"], Jl = {
2945
+ key: 2,
2946
+ class: "ml-no-entity-selected"
2947
+ }, Kl = /* @__PURE__ */ E({
2948
+ __name: "MlEntityProperties",
2949
+ props: {
2950
+ entityPropsList: {},
2951
+ editable: { type: Boolean }
2952
+ },
2953
+ emits: ["update-property"],
2954
+ setup(t, { emit: e }) {
2955
+ const { t: n } = Y(), i = t, o = e, l = M(-1);
2956
+ function a(u) {
2957
+ var b;
2958
+ const v = u.accessor.get();
2959
+ switch (u.type) {
2960
+ case "boolean":
2961
+ return v ? "True" : "False";
2962
+ case "enum": {
2963
+ const S = (b = u.options) == null ? void 0 : b.find(($) => $.value === v);
2964
+ return S && S.label ? Te(S.label) : "";
2965
+ }
2966
+ case "color":
2967
+ return String(v);
2968
+ default:
2969
+ return v != null ? String(v) : "";
2970
+ }
2971
+ }
2972
+ async function c(u) {
2973
+ const v = a(u);
2974
+ try {
2975
+ await navigator.clipboard.writeText(v), ee({
2976
+ message: n(
2977
+ "main.toolPalette.entityProperties.propertyPanel.propValCopied"
2978
+ ),
2979
+ grouping: !0,
2980
+ type: "success"
2981
+ });
2982
+ } catch (b) {
2983
+ console.error(b), ee({
2984
+ message: n(
2985
+ "main.toolPalette.entityProperties.propertyPanel.failedToCopyPropVal"
2986
+ ),
2987
+ grouping: !0,
2988
+ type: "error"
2989
+ });
2990
+ }
2991
+ }
2992
+ const r = T(() => {
2993
+ const u = i.entityPropsList;
2994
+ if (!u || u.length === 0) return [];
2995
+ if (u.length === 1) return g(u[0]);
2996
+ if (l.value >= 0) {
2997
+ const v = u[l.value];
2998
+ return g(v);
2999
+ } else {
3000
+ const v = _(u);
3001
+ return g(v);
3002
+ }
3003
+ });
3004
+ function g(u) {
3005
+ return u.groups.map((v, b) => ({
3006
+ id: `group-${b}`,
3007
+ name: v.groupName,
3008
+ isGroup: !0,
3009
+ children: v.properties.map((S, $) => ({
3010
+ ...S,
3011
+ id: `group-${b}-prop-${$}`,
3012
+ isGroup: !1
3013
+ }))
3014
+ }));
3015
+ }
3016
+ function _(u) {
3017
+ if (!u.length) return { type: "", groups: [] };
3018
+ const v = u[0], b = [];
3019
+ for (const S of v.groups) {
3020
+ const $ = [];
3021
+ for (const C of S.properties)
3022
+ u.every((k) => {
3023
+ const A = k.groups.find((y) => y.groupName === S.groupName), N = A == null ? void 0 : A.properties.find((y) => y.name === C.name);
3024
+ return N && N.accessor.get() === C.accessor.get();
3025
+ }) && $.push(C);
3026
+ $.length && b.push({
3027
+ groupName: S.groupName,
3028
+ properties: $
3029
+ });
3030
+ }
3031
+ return {
3032
+ type: v.type,
3033
+ groups: b
3034
+ };
3035
+ }
3036
+ const x = ({
3037
+ row: u,
3038
+ columnIndex: v
3039
+ }) => u.isGroup ? v === 0 ? [1, 2] : [0, 0] : [1, 1];
3040
+ function h(u, v) {
3041
+ var $;
3042
+ if (!i.editable || !(($ = i.entityPropsList) != null && $.length)) return;
3043
+ const S = (l.value >= 0 ? i.entityPropsList[l.value] : i.entityPropsList[0]).groups.find(
3044
+ (C) => C.properties.some((D) => D.name === u.name)
3045
+ );
3046
+ S && o("update-property", {
3047
+ groupName: S.groupName,
3048
+ propertyName: u.name,
3049
+ newValue: v
3050
+ });
3051
+ }
3052
+ return (u, v) => {
3053
+ const b = L("el-option"), S = L("el-select"), $ = L("el-table-column"), C = L("el-color-picker"), D = L("el-switch"), k = L("el-input-number"), A = L("el-input"), N = L("el-table");
3054
+ return s(), w("div", Xl, [
3055
+ u.entityPropsList && u.entityPropsList.length > 1 ? (s(), w("div", Wl, [
3056
+ p(S, {
3057
+ modelValue: l.value,
3058
+ "onUpdate:modelValue": v[0] || (v[0] = (y) => l.value = y),
3059
+ placeholder: "Select Entity",
3060
+ size: "small",
3061
+ style: { width: "100%", "margin-bottom": "0.5rem" }
3062
+ }, {
3063
+ default: f(() => [
3064
+ p(b, {
3065
+ label: m(n)(
3066
+ "main.toolPalette.entityProperties.propertyPanel.multipleEntitySelected",
3067
+ { count: u.entityPropsList.length }
3068
+ ),
3069
+ value: -1
3070
+ }, null, 8, ["label"]),
3071
+ (s(!0), w(G, null, W(u.entityPropsList, (y, z) => (s(), B(b, {
3072
+ key: z,
3073
+ label: y.type,
3074
+ value: z
3075
+ }, null, 8, ["label", "value"]))), 128))
3076
+ ]),
3077
+ _: 1
3078
+ }, 8, ["modelValue"])
3079
+ ])) : O("", !0),
3080
+ r.value.length ? (s(), B(N, {
3081
+ key: 1,
3082
+ data: r.value,
3083
+ "row-key": "id",
3084
+ border: "",
3085
+ size: "small",
3086
+ "default-expand-all": "",
3087
+ "tree-props": { children: "children", hasChildren: "children" },
3088
+ "show-header": !1,
3089
+ "span-method": x,
3090
+ class: "ml-entity-properties-table"
3091
+ }, {
3092
+ default: f(() => [
3093
+ p($, {
3094
+ prop: "name",
3095
+ "min-width": "auto"
3096
+ }, {
3097
+ default: f(({ row: y }) => [
3098
+ d("div", Zl, [
3099
+ d("div", {
3100
+ class: ve(["ml-cell-label", { "ml-group-row": y.isGroup }])
3101
+ }, [
3102
+ y.isGroup ? (s(), w("strong", Ul, V(m(Le)(y.name)), 1)) : (s(), w("span", ql, V(m(Le)(y.name)), 1))
3103
+ ], 2)
3104
+ ])
3105
+ ]),
3106
+ _: 1
3107
+ }),
3108
+ p($, null, {
3109
+ default: f(({ row: y }) => [
3110
+ y.isGroup ? O("", !0) : (s(), w("div", jl, [
3111
+ !u.editable || !y.editable ? (s(), w("span", {
3112
+ key: 0,
3113
+ title: a(y),
3114
+ class: "ml-readonly-value",
3115
+ onDblclick: (z) => c(y)
3116
+ }, V(a(y)), 41, Ql)) : (s(), w(G, { key: 1 }, [
3117
+ y.type === "enum" ? (s(), B(S, {
3118
+ key: 0,
3119
+ "model-value": y.accessor.get(),
3120
+ disabled: !y.editable || !u.editable,
3121
+ size: "small",
3122
+ style: { width: "100%" },
3123
+ onChange: (z) => h(y, z)
3124
+ }, {
3125
+ default: f(() => [
3126
+ (s(!0), w(G, null, W(y.options || [], (z) => (s(), B(b, {
3127
+ key: z.value,
3128
+ label: m(Te)(z.label),
3129
+ value: z.value
3130
+ }, null, 8, ["label", "value"]))), 128))
3131
+ ]),
3132
+ _: 2
3133
+ }, 1032, ["model-value", "disabled", "onChange"])) : y.type === "color" ? (s(), B(C, {
3134
+ key: 1,
3135
+ "model-value": y.accessor.get(),
3136
+ disabled: !y.editable || !u.editable,
3137
+ size: "small",
3138
+ onChange: (z) => h(y, z)
3139
+ }, null, 8, ["model-value", "disabled", "onChange"])) : y.type === "boolean" ? (s(), B(D, {
3140
+ key: 2,
3141
+ "model-value": y.accessor.get(),
3142
+ disabled: !y.editable || !u.editable,
3143
+ onChange: (z) => h(y, z)
3144
+ }, null, 8, ["model-value", "disabled", "onChange"])) : y.type === "int" ? (s(), B(k, {
3145
+ key: 3,
3146
+ "model-value": y.accessor.get(),
3147
+ disabled: !y.editable || !u.editable,
3148
+ size: "small",
3149
+ step: 1,
3150
+ precision: 0,
3151
+ onChange: (z) => h(y, z)
3152
+ }, null, 8, ["model-value", "disabled", "onChange"])) : y.type === "float" ? (s(), B(k, {
3153
+ key: 4,
3154
+ "model-value": y.accessor.get(),
3155
+ disabled: !y.editable || !u.editable,
3156
+ size: "small",
3157
+ step: 0.1,
3158
+ precision: 3,
3159
+ onChange: (z) => h(y, z)
3160
+ }, null, 8, ["model-value", "disabled", "onChange"])) : (s(), B(A, {
3161
+ key: 5,
3162
+ "model-value": y.accessor.get(),
3163
+ disabled: !y.editable || !u.editable,
3164
+ size: "small",
3165
+ onInput: (z) => h(y, z)
3166
+ }, null, 8, ["model-value", "disabled", "onInput"]))
3167
+ ], 64))
3168
+ ]))
3169
+ ]),
3170
+ _: 1
3171
+ })
3172
+ ]),
3173
+ _: 1
3174
+ }, 8, ["data"])) : (s(), w("div", Jl, V(m(n)("main.toolPalette.entityProperties.propertyPanel.noEntitySelected")), 1))
3175
+ ]);
3176
+ };
3177
+ }
3178
+ }), ea = /* @__PURE__ */ X(Kl, [["__scopeId", "data-v-a0da462f"]]), ta = { class: "ml-layer-list-cell" }, na = { class: "ml-layer-list-cell" }, oa = /* @__PURE__ */ E({
2638
3179
  __name: "MlLayerList",
2639
3180
  props: {
2640
3181
  editor: {}
2641
3182
  },
2642
3183
  setup(t) {
2643
- const { t: e } = R(), n = t, i = zo(n.editor), o = k(), l = k([]), a = (s) => {
2644
- l.value = s;
2645
- }, c = (s) => {
2646
- const m = n.editor.curDocument.database.tables.layerTable.getAt(
2647
- s.name
3184
+ const { t: e } = Y(), n = t, i = Vo(n.editor), o = M(), l = M([]), a = (r) => {
3185
+ l.value = r;
3186
+ }, c = (r) => {
3187
+ const g = n.editor.curDocument.database.tables.layerTable.getAt(
3188
+ r.name
2648
3189
  );
2649
- m && (m.isOff = !s.isOn);
3190
+ g && (g.isOff = !r.isOn);
2650
3191
  };
2651
- return (s, m) => {
2652
- const v = S("el-table-column"), w = S("el-checkbox"), h = S("el-tag");
2653
- return u(), B(p(mt), {
3192
+ return (r, g) => {
3193
+ const _ = L("el-table-column"), x = L("el-checkbox"), h = L("el-tag");
3194
+ return s(), B(m(ct), {
2654
3195
  ref_key: "multipleTableRef",
2655
3196
  ref: o,
2656
- data: p(i),
3197
+ data: m(i),
2657
3198
  class: "ml-layer-list",
2658
3199
  onSelectionChange: a
2659
3200
  }, {
2660
3201
  default: f(() => [
2661
- d(v, {
3202
+ p(_, {
2662
3203
  property: "name",
2663
- label: p(e)("main.toolPalette.layerManager.layerList.name"),
3204
+ label: m(e)("main.toolPalette.layerManager.layerList.name"),
2664
3205
  "min-width": "120",
2665
3206
  sortable: "",
2666
3207
  "show-overflow-tooltip": ""
2667
3208
  }, null, 8, ["label"]),
2668
- d(v, {
3209
+ p(_, {
2669
3210
  property: "isOn",
2670
- label: p(e)("main.toolPalette.layerManager.layerList.on"),
3211
+ label: m(e)("main.toolPalette.layerManager.layerList.on"),
2671
3212
  width: "50"
2672
3213
  }, {
2673
- default: f((_) => [
2674
- r("div", Nl, [
2675
- d(w, {
2676
- modelValue: _.row.isOn,
2677
- "onUpdate:modelValue": (b) => _.row.isOn = b,
2678
- onChange: (b) => c(_.row)
3214
+ default: f((u) => [
3215
+ d("div", ta, [
3216
+ p(x, {
3217
+ modelValue: u.row.isOn,
3218
+ "onUpdate:modelValue": (v) => u.row.isOn = v,
3219
+ onChange: (v) => c(u.row)
2679
3220
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
2680
3221
  ])
2681
3222
  ]),
2682
3223
  _: 1
2683
3224
  }, 8, ["label"]),
2684
- d(v, {
3225
+ p(_, {
2685
3226
  property: "color",
2686
- label: p(e)("main.toolPalette.layerManager.layerList.color"),
3227
+ label: m(e)("main.toolPalette.layerManager.layerList.color"),
2687
3228
  width: "70"
2688
3229
  }, {
2689
- default: f((_) => [
2690
- r("div", Il, [
2691
- d(h, {
2692
- color: _.row.color,
3230
+ default: f((u) => [
3231
+ d("div", na, [
3232
+ p(h, {
3233
+ color: u.row.color,
2693
3234
  class: "ml-layer-list-color"
2694
3235
  }, null, 8, ["color"])
2695
3236
  ])
@@ -2701,122 +3242,93 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
2701
3242
  }, 8, ["data"]);
2702
3243
  };
2703
3244
  }
2704
- }), Ol = { class: "ml-layer-list-wrapper" }, Rl = /* @__PURE__ */ z({
2705
- __name: "MlLayerManager",
3245
+ }), la = { class: "ml-layer-list-wrapper" }, aa = /* @__PURE__ */ E({
3246
+ __name: "MlPaletteManager",
2706
3247
  props: {
2707
3248
  editor: {}
2708
3249
  },
2709
3250
  setup(t) {
2710
- const e = t;
2711
- return (n, i) => (u(), B(p(Fl), {
3251
+ const e = t, n = ["layerManager", "entityProperties"], i = M(n[0]), o = T(() => n.map((c) => ({
3252
+ name: c,
3253
+ label: Uo(c),
3254
+ title: Zo(c)
3255
+ }))), { selectionSet: l } = jo(), a = T(() => {
3256
+ const c = [], r = P.instance.curDocument.database;
3257
+ return l.value.forEach((g) => {
3258
+ const _ = r.tables.blockTable.modelSpace.getIdAt(g);
3259
+ _ && c.push(_.properties);
3260
+ }), c;
3261
+ });
3262
+ return (c, r) => (s(), B(m(Gl), {
2712
3263
  class: "ml-layer-manager",
2713
- modelValue: p(J).dialogs.layerManager,
2714
- "onUpdate:modelValue": i[0] || (i[0] = (o) => p(J).dialogs.layerManager = o),
2715
- title: "Layers",
3264
+ modelValue: m(te).dialogs.layerManager,
3265
+ "onUpdate:modelValue": r[0] || (r[0] = (g) => m(te).dialogs.layerManager = g),
3266
+ "active-tab": i.value,
3267
+ "onUpdate:activeTab": r[1] || (r[1] = (g) => i.value = g),
3268
+ tabs: o.value,
2716
3269
  "bottom-offset": 30
2717
3270
  }, {
2718
- default: f(() => [
2719
- r("div", Ol, [
2720
- d(Pl, {
3271
+ "tab-layerManager": f(() => [
3272
+ d("div", la, [
3273
+ p(oa, {
2721
3274
  editor: e.editor
2722
3275
  }, null, 8, ["editor"])
2723
3276
  ])
2724
3277
  ]),
3278
+ "tab-entityProperties": f(() => [
3279
+ p(ea, { "entity-props-list": a.value }, null, 8, ["entity-props-list"])
3280
+ ]),
2725
3281
  _: 1
2726
- }, 8, ["modelValue"]));
2727
- }
2728
- }), Hl = /* @__PURE__ */ G(Rl, [["__scopeId", "data-v-d49ba2cb"]]), Gl = { class: "autocomplete-container" }, Wl = /* @__PURE__ */ z({
2729
- __name: "MlCommandLine",
2730
- setup(t) {
2731
- const { t: e } = R(), n = fe(), i = bo(), o = k(""), l = k(""), a = (m, v) => {
2732
- const w = m ? i.filter(
2733
- (h) => h.commandName.startsWith(m.toLowerCase())
2734
- ) : i;
2735
- v(w);
2736
- }, c = () => {
2737
- o.value && (E.instance.sendStringToExecute(o.value), l.value = o.value, o.value = "");
2738
- }, s = (m, v) => `${v}: ${be(m, v)}`;
2739
- return (m, v) => (u(), g("div", Gl, [
2740
- p(n).isShowCommandLine ? (u(), B(p(pt), {
2741
- key: 0,
2742
- modelValue: o.value,
2743
- "onUpdate:modelValue": v[0] || (v[0] = (w) => o.value = w),
2744
- "value-key": "commandName",
2745
- clearable: "",
2746
- "fetch-suggestions": a,
2747
- placeholder: p(e)("main.commandLine.prompt"),
2748
- debounce: 300,
2749
- "trigger-on-focus": "",
2750
- "fit-input-width": !1,
2751
- onSelect: c,
2752
- onKeydown: Ye(c, ["enter"]),
2753
- class: "autocomplete-input"
2754
- }, {
2755
- default: f(({ item: w }) => [
2756
- r("div", null, $(s(w.groupName, w.commandName)), 1)
2757
- ]),
2758
- prepend: f(() => [
2759
- I($(`> ${l.value}`), 1)
2760
- ]),
2761
- _: 1
2762
- }, 8, ["modelValue", "placeholder"])) : O("", !0)
2763
- ]));
3282
+ }, 8, ["modelValue", "active-tab", "tabs"]));
2764
3283
  }
2765
- }), ql = /* @__PURE__ */ G(Wl, [["__scopeId", "data-v-082845cb"]]), Ul = /* @__PURE__ */ z({
3284
+ }), ia = /* @__PURE__ */ X(aa, [["__scopeId", "data-v-495ab9fe"]]), ue = 8, sa = /* @__PURE__ */ E({
2766
3285
  __name: "MlEntityInfo",
2767
3286
  setup(t) {
2768
- De((x) => ({
2769
- b04b3b3c: m.value,
2770
- "477ac79a": v.value
3287
+ Ee((h) => ({
3288
+ "3e47cda4": r.value,
3289
+ "0741074e": g.value
2771
3290
  }));
2772
- const { t: e } = R(), n = k(!1), i = k(-1), o = k(-1), l = k(null), a = k(null), c = k(180), s = k(120), m = C(() => `${i.value}px`), v = C(() => `${o.value}px`), w = C(() => {
2773
- const x = E.instance.curDocument.database;
2774
- if (l.value) {
2775
- const L = x.tables.blockTable.modelSpace.getIdAt(l.value);
2776
- if (L)
2777
- return {
2778
- type: Oo(L),
2779
- color: Ro(L.color.toString()),
2780
- layer: L.layer,
2781
- lineType: L.lineType
2782
- };
3291
+ const { t: e } = Y(), n = M(null), { hovered: i, entity: o, mouse: l } = $o(), a = M(180), c = M(120), r = T(
3292
+ () => `${Math.min(Math.max(l.value.x, ue), window.innerWidth - a.value - ue)}px`
3293
+ ), g = T(
3294
+ () => `${Math.min(Math.max(l.value.y, ue), window.innerHeight - c.value - ue)}px`
3295
+ ), _ = T(() => {
3296
+ const h = o.value;
3297
+ return h ? {
3298
+ type: Xo(h),
3299
+ color: Wo(h.color.toString()),
3300
+ layer: h.layer,
3301
+ lineType: h.lineType
3302
+ } : { type: "", color: "", layer: "", lineType: "" };
3303
+ }), x = T(
3304
+ () => i.value && _.value.type !== "" && U.instance.isShowEntityInfo && !P.instance.editor.isActive
3305
+ );
3306
+ return I(x, async (h) => {
3307
+ var u;
3308
+ if (h) {
3309
+ await je();
3310
+ const v = (u = n.value) == null ? void 0 : u.$el;
3311
+ v && (a.value = v.offsetWidth, c.value = v.offsetHeight);
2783
3312
  }
2784
- return { type: "", color: "", layer: "", lineType: "" };
2785
- }), h = C(() => n.value && w.value.type !== ""), _ = async (x) => {
2786
- var N;
2787
- l.value = x.id, n.value = !0, await Ke();
2788
- const L = (N = a.value) == null ? void 0 : N.$el;
2789
- L && (c.value = L.offsetWidth, s.value = L.offsetHeight);
2790
- const T = 8, y = window.innerWidth - c.value - T, M = window.innerHeight - s.value - T, D = T, H = T;
2791
- i.value = Math.min(Math.max(x.x, D), y), o.value = Math.min(Math.max(x.y, H), M);
2792
- }, b = () => {
2793
- n.value = !1;
2794
- };
2795
- return q(() => {
2796
- const x = E.instance.curView.events;
2797
- x.hover.addEventListener(_), x.unhover.addEventListener(b);
2798
- }), ne(() => {
2799
- const x = E.instance.curView.events;
2800
- x.hover.removeEventListener(_), x.unhover.removeEventListener(b);
2801
- }), (x, L) => {
2802
- const T = S("el-text"), y = S("el-col"), M = S("el-row"), D = S("el-card");
2803
- return h.value ? (u(), B(D, {
3313
+ }), (h, u) => {
3314
+ const v = L("el-text"), b = L("el-col"), S = L("el-row"), $ = L("el-card");
3315
+ return x.value ? (s(), B($, {
2804
3316
  key: 0,
2805
3317
  ref_key: "cardRef",
2806
- ref: a,
3318
+ ref: n,
2807
3319
  class: "ml-entity-info"
2808
3320
  }, {
2809
3321
  default: f(() => [
2810
- d(M, { class: "ml-entity-info-text" }, {
3322
+ p(S, { class: "ml-entity-info-text" }, {
2811
3323
  default: f(() => [
2812
- d(y, { span: 24 }, {
3324
+ p(b, { span: 24 }, {
2813
3325
  default: f(() => [
2814
- d(T, {
3326
+ p(v, {
2815
3327
  size: "small",
2816
3328
  class: "ml-entity-info-title"
2817
3329
  }, {
2818
3330
  default: f(() => [
2819
- I($(w.value.type), 1)
3331
+ R(V(_.value.type), 1)
2820
3332
  ]),
2821
3333
  _: 1
2822
3334
  })
@@ -2826,24 +3338,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
2826
3338
  ]),
2827
3339
  _: 1
2828
3340
  }),
2829
- d(M, { class: "ml-entity-info-text" }, {
3341
+ p(S, { class: "ml-entity-info-text" }, {
2830
3342
  default: f(() => [
2831
- d(y, { span: 10 }, {
3343
+ p(b, { span: 10 }, {
2832
3344
  default: f(() => [
2833
- d(T, { size: "small" }, {
3345
+ p(v, { size: "small" }, {
2834
3346
  default: f(() => [
2835
- I($(p(e)("main.entityInfo.color")), 1)
3347
+ R(V(m(e)("main.entityInfo.color")), 1)
2836
3348
  ]),
2837
3349
  _: 1
2838
3350
  })
2839
3351
  ]),
2840
3352
  _: 1
2841
3353
  }),
2842
- d(y, { span: 14 }, {
3354
+ p(b, { span: 14 }, {
2843
3355
  default: f(() => [
2844
- d(T, { size: "small" }, {
3356
+ p(v, { size: "small" }, {
2845
3357
  default: f(() => [
2846
- I($(w.value.color), 1)
3358
+ R(V(_.value.color), 1)
2847
3359
  ]),
2848
3360
  _: 1
2849
3361
  })
@@ -2853,24 +3365,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
2853
3365
  ]),
2854
3366
  _: 1
2855
3367
  }),
2856
- d(M, { class: "ml-entity-info-text" }, {
3368
+ p(S, { class: "ml-entity-info-text" }, {
2857
3369
  default: f(() => [
2858
- d(y, { span: 10 }, {
3370
+ p(b, { span: 10 }, {
2859
3371
  default: f(() => [
2860
- d(T, { size: "small" }, {
3372
+ p(v, { size: "small" }, {
2861
3373
  default: f(() => [
2862
- I($(p(e)("main.entityInfo.layer")), 1)
3374
+ R(V(m(e)("main.entityInfo.layer")), 1)
2863
3375
  ]),
2864
3376
  _: 1
2865
3377
  })
2866
3378
  ]),
2867
3379
  _: 1
2868
3380
  }),
2869
- d(y, { span: 14 }, {
3381
+ p(b, { span: 14 }, {
2870
3382
  default: f(() => [
2871
- d(T, { size: "small" }, {
3383
+ p(v, { size: "small" }, {
2872
3384
  default: f(() => [
2873
- I($(w.value.layer), 1)
3385
+ R(V(_.value.layer), 1)
2874
3386
  ]),
2875
3387
  _: 1
2876
3388
  })
@@ -2880,24 +3392,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
2880
3392
  ]),
2881
3393
  _: 1
2882
3394
  }),
2883
- d(M, { class: "ml-entity-info-text" }, {
3395
+ p(S, { class: "ml-entity-info-text" }, {
2884
3396
  default: f(() => [
2885
- d(y, { span: 10 }, {
3397
+ p(b, { span: 10 }, {
2886
3398
  default: f(() => [
2887
- d(T, { size: "small" }, {
3399
+ p(v, { size: "small" }, {
2888
3400
  default: f(() => [
2889
- I($(p(e)("main.entityInfo.lineType")), 1)
3401
+ R(V(m(e)("main.entityInfo.lineType")), 1)
2890
3402
  ]),
2891
3403
  _: 1
2892
3404
  })
2893
3405
  ]),
2894
3406
  _: 1
2895
3407
  }),
2896
- d(y, { span: 14 }, {
3408
+ p(b, { span: 14 }, {
2897
3409
  default: f(() => [
2898
- d(T, { size: "small" }, {
3410
+ p(v, { size: "small" }, {
2899
3411
  default: f(() => [
2900
- I($(w.value.lineType), 1)
3412
+ R(V(_.value.lineType), 1)
2901
3413
  ]),
2902
3414
  _: 1
2903
3415
  })
@@ -2912,13 +3424,13 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
2912
3424
  }, 512)) : O("", !0);
2913
3425
  };
2914
3426
  }
2915
- }), jl = /* @__PURE__ */ G(Ul, [["__scopeId", "data-v-f18b63a4"]]), Yl = /* @__PURE__ */ z({
3427
+ }), ra = /* @__PURE__ */ X(sa, [["__scopeId", "data-v-d0b7631d"]]), ca = /* @__PURE__ */ E({
2916
3428
  __name: "MlLanguageSelector",
2917
3429
  props: {
2918
3430
  currentLocale: { default: void 0 }
2919
3431
  },
2920
3432
  setup(t) {
2921
- const e = t, { effectiveLocale: n, setLocale: i } = Fe(e.currentLocale), o = Y([
3433
+ const e = ce(), n = t, { effectiveLocale: i, setLocale: o } = Fe(n.currentLocale), l = q([
2922
3434
  {
2923
3435
  name: "en",
2924
3436
  text: "English"
@@ -2927,41 +3439,43 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
2927
3439
  name: "zh",
2928
3440
  text: "简体中文"
2929
3441
  }
2930
- ]), l = (a) => {
2931
- (a === "en" || a === "zh") && i(a);
3442
+ ]), a = (c) => {
3443
+ (c === "en" || c === "zh") && o(c);
2932
3444
  };
2933
- return (a, c) => (u(), B(p(ml), {
3445
+ return (c, r) => m(e).isShowLanguageSelector ? (s(), B(m(wl), {
3446
+ key: 0,
2934
3447
  class: "ml-language-selector",
2935
- languages: o,
2936
- current: p(n),
2937
- onClick: l
2938
- }, null, 8, ["languages", "current"]));
3448
+ languages: l,
3449
+ current: m(i),
3450
+ onClick: a
3451
+ }, null, 8, ["languages", "current"])) : O("", !0);
2939
3452
  }
2940
- }), Kl = /* @__PURE__ */ G(Yl, [["__scopeId", "data-v-1b9f7bc0"]]), Xl = /* @__PURE__ */ z({
3453
+ }), ua = /* @__PURE__ */ X(ca, [["__scopeId", "data-v-22a7d15f"]]), da = /* @__PURE__ */ E({
2941
3454
  __name: "MlMainMenu",
2942
3455
  setup(t) {
2943
- const { t: e } = R(), n = (i) => {
2944
- i === "Convert" ? new Oe().tirgger(E.instance.context) : i === "QNew" ? new Re().tirgger(E.instance.context) : i === "Open" && new He().tirgger(E.instance.context);
3456
+ const { t: e } = Y(), n = ce(), i = (o) => {
3457
+ o === "Convert" ? new Ye().tirgger(P.instance.context) : o === "QNew" ? new Ge().tirgger(P.instance.context) : o === "Open" && new Xe().tirgger(P.instance.context);
2945
3458
  };
2946
- return (i, o) => {
2947
- const l = S("el-icon"), a = S("el-dropdown-item"), c = S("el-dropdown-menu"), s = S("el-dropdown");
2948
- return u(), B(s, {
3459
+ return (o, l) => {
3460
+ const a = L("el-icon"), c = L("el-dropdown-item"), r = L("el-dropdown-menu"), g = L("el-dropdown");
3461
+ return m(n).isShowMainMenu ? (s(), B(g, {
3462
+ key: 0,
2949
3463
  "aria-hidden": "false",
2950
3464
  class: "ml-main-menu-container",
2951
- onCommand: n
3465
+ onCommand: i
2952
3466
  }, {
2953
3467
  dropdown: f(() => [
2954
- d(c, null, {
3468
+ p(r, null, {
2955
3469
  default: f(() => [
2956
- d(a, { command: "QNew" }, {
3470
+ p(c, { command: "QNew" }, {
2957
3471
  default: f(() => [
2958
- I($(p(e)("main.mainMenu.new")), 1)
3472
+ R(V(m(e)("main.mainMenu.new")), 1)
2959
3473
  ]),
2960
3474
  _: 1
2961
3475
  }),
2962
- d(a, { command: "Open" }, {
3476
+ p(c, { command: "Open" }, {
2963
3477
  default: f(() => [
2964
- I($(p(e)("main.mainMenu.open")), 1)
3478
+ R(V(m(e)("main.mainMenu.open")), 1)
2965
3479
  ]),
2966
3480
  _: 1
2967
3481
  })
@@ -2970,29 +3484,29 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
2970
3484
  })
2971
3485
  ]),
2972
3486
  default: f(() => [
2973
- d(l, {
3487
+ p(a, {
2974
3488
  class: "ml-main-menu-icon",
2975
3489
  size: "30"
2976
3490
  }, {
2977
3491
  default: f(() => [
2978
- d(p(Mt))
3492
+ p(m(Tt))
2979
3493
  ]),
2980
3494
  _: 1
2981
3495
  })
2982
3496
  ]),
2983
3497
  _: 1
2984
- });
3498
+ })) : O("", !0);
2985
3499
  };
2986
3500
  }
2987
- }), Ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-8c0c738e"]]), Zl = {
3501
+ }), ma = /* @__PURE__ */ X(da, [["__scopeId", "data-v-8caede15"]]), pa = {
2988
3502
  key: 0,
2989
3503
  class: "ml-vertical-toolbar-container"
2990
- }, Jl = /* @__PURE__ */ z({
3504
+ }, va = /* @__PURE__ */ E({
2991
3505
  __name: "MlToolBars",
2992
3506
  setup(t) {
2993
- const { t: e } = R(), n = fe(), i = C(() => [
3507
+ const { t: e } = Y(), n = ce(), i = T(() => [
2994
3508
  {
2995
- icon: Zt,
3509
+ icon: nn,
2996
3510
  text: e("main.verticalToolbar.select.text"),
2997
3511
  command: "select",
2998
3512
  description: e("main.verticalToolbar.select.description")
@@ -3004,28 +3518,28 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3004
3518
  description: e("main.verticalToolbar.pan.description")
3005
3519
  },
3006
3520
  {
3007
- icon: ln,
3521
+ icon: cn,
3008
3522
  text: e("main.verticalToolbar.zoomToExtent.text"),
3009
3523
  command: "zoom",
3010
3524
  description: e("main.verticalToolbar.zoomToExtent.description")
3011
3525
  },
3012
3526
  {
3013
- icon: tn,
3527
+ icon: an,
3014
3528
  text: e("main.verticalToolbar.zoomToBox.text"),
3015
3529
  command: "zoomw",
3016
3530
  description: e("main.verticalToolbar.zoomToBox.description")
3017
3531
  },
3018
3532
  {
3019
- icon: Gt,
3533
+ icon: Zt,
3020
3534
  text: e("main.verticalToolbar.layer.text"),
3021
3535
  command: "la",
3022
3536
  description: e("main.verticalToolbar.layer.description")
3023
3537
  }
3024
3538
  ]), o = (l) => {
3025
- E.instance.sendStringToExecute(l);
3539
+ P.instance.sendStringToExecute(l);
3026
3540
  };
3027
- return (l, a) => p(n).isShowToolbar ? (u(), g("div", Zl, [
3028
- d(p(bl), {
3541
+ return (l, a) => m(n).isShowToolbar ? (s(), w("div", pa, [
3542
+ p(m(Tl), {
3029
3543
  items: i.value,
3030
3544
  size: "small",
3031
3545
  direction: "vertical",
@@ -3033,72 +3547,72 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3033
3547
  }, null, 8, ["items"])
3034
3548
  ])) : O("", !0);
3035
3549
  }
3036
- }), ea = { class: "ml-notification-item-icon" }, ta = { class: "ml-notification-item-content" }, na = { class: "ml-notification-item-header" }, oa = { class: "ml-notification-item-title" }, la = { class: "ml-notification-item-actions" }, aa = {
3550
+ }), fa = { class: "ml-notification-item-icon" }, ga = { class: "ml-notification-item-content" }, ha = { class: "ml-notification-item-header" }, _a = { class: "ml-notification-item-title" }, wa = { class: "ml-notification-item-actions" }, ya = {
3037
3551
  key: 0,
3038
3552
  class: "ml-notification-item-message"
3039
- }, ia = { class: "ml-notification-item-footer" }, sa = { class: "ml-notification-item-time" }, ra = /* @__PURE__ */ z({
3553
+ }, ba = { class: "ml-notification-item-footer" }, xa = { class: "ml-notification-item-time" }, ka = /* @__PURE__ */ E({
3040
3554
  __name: "MlNotificationItem",
3041
3555
  props: {
3042
3556
  notification: {}
3043
3557
  },
3044
3558
  emits: ["close", "action"],
3045
3559
  setup(t) {
3046
- const e = t, { t: n } = R(), i = C(() => {
3560
+ const e = t, { t: n } = Y(), i = T(() => {
3047
3561
  switch (e.notification.type) {
3048
3562
  case "info":
3049
3563
  return Me;
3050
3564
  case "warning":
3051
- return Ft;
3565
+ return Rt;
3052
3566
  case "error":
3053
- return _t;
3567
+ return xt;
3054
3568
  case "success":
3055
- return $t;
3569
+ return At;
3056
3570
  default:
3057
3571
  return Me;
3058
3572
  }
3059
3573
  }), o = (a) => {
3060
3574
  a.action();
3061
3575
  }, l = (a) => {
3062
- const s = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), m = Math.floor(s / 6e4), v = Math.floor(s / 36e5), w = Math.floor(s / 864e5);
3063
- return w > 0 ? n("main.notification.time.daysAgo", { count: w }) : v > 0 ? n("main.notification.time.hoursAgo", { count: v }) : m > 0 ? n("main.notification.time.minutesAgo", { count: m }) : n("main.notification.time.justNow");
3576
+ const r = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), g = Math.floor(r / 6e4), _ = Math.floor(r / 36e5), x = Math.floor(r / 864e5);
3577
+ return x > 0 ? n("main.notification.time.daysAgo", { count: x }) : _ > 0 ? n("main.notification.time.hoursAgo", { count: _ }) : g > 0 ? n("main.notification.time.minutesAgo", { count: g }) : n("main.notification.time.justNow");
3064
3578
  };
3065
3579
  return (a, c) => {
3066
- const s = S("el-icon"), m = S("el-button");
3067
- return u(), g("div", {
3068
- class: we(["ml-notification-item", `ml-notification-item--${a.notification.type}`])
3580
+ const r = L("el-icon"), g = L("el-button");
3581
+ return s(), w("div", {
3582
+ class: ve(["ml-notification-item", `ml-notification-item--${a.notification.type}`])
3069
3583
  }, [
3070
- r("div", ea, [
3071
- d(s, null, {
3584
+ d("div", fa, [
3585
+ p(r, null, {
3072
3586
  default: f(() => [
3073
- (u(), B(ae(i.value)))
3587
+ (s(), B(re(i.value)))
3074
3588
  ]),
3075
3589
  _: 1
3076
3590
  })
3077
3591
  ]),
3078
- r("div", ta, [
3079
- r("div", na, [
3080
- r("h4", oa, $(a.notification.title), 1),
3081
- r("div", la, [
3082
- a.notification.actions && a.notification.actions.length > 0 ? (u(!0), g(j, { key: 0 }, K(a.notification.actions, (v) => (u(), B(m, {
3083
- key: v.label,
3084
- type: v.primary ? "primary" : "default",
3592
+ d("div", ga, [
3593
+ d("div", ha, [
3594
+ d("h4", _a, V(a.notification.title), 1),
3595
+ d("div", wa, [
3596
+ a.notification.actions && a.notification.actions.length > 0 ? (s(!0), w(G, { key: 0 }, W(a.notification.actions, (_) => (s(), B(g, {
3597
+ key: _.label,
3598
+ type: _.primary ? "primary" : "default",
3085
3599
  size: "small",
3086
- onClick: (w) => o(v)
3600
+ onClick: (x) => o(_)
3087
3601
  }, {
3088
3602
  default: f(() => [
3089
- I($(v.label), 1)
3603
+ R(V(_.label), 1)
3090
3604
  ]),
3091
3605
  _: 2
3092
3606
  }, 1032, ["type", "onClick"]))), 128)) : O("", !0),
3093
- d(m, {
3607
+ p(g, {
3094
3608
  text: "",
3095
3609
  size: "small",
3096
- onClick: c[0] || (c[0] = (v) => a.$emit("close"))
3610
+ onClick: c[0] || (c[0] = (_) => a.$emit("close"))
3097
3611
  }, {
3098
3612
  default: f(() => [
3099
- d(s, null, {
3613
+ p(r, null, {
3100
3614
  default: f(() => [
3101
- d(p(ye))
3615
+ p(m(xe))
3102
3616
  ]),
3103
3617
  _: 1
3104
3618
  })
@@ -3107,63 +3621,63 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3107
3621
  })
3108
3622
  ])
3109
3623
  ]),
3110
- a.notification.message ? (u(), g("p", aa, $(a.notification.message), 1)) : O("", !0),
3111
- r("div", ia, [
3112
- r("span", sa, $(l(a.notification.timestamp)), 1)
3624
+ a.notification.message ? (s(), w("p", ya, V(a.notification.message), 1)) : O("", !0),
3625
+ d("div", ba, [
3626
+ d("span", xa, V(l(a.notification.timestamp)), 1)
3113
3627
  ])
3114
3628
  ])
3115
3629
  ], 2);
3116
3630
  };
3117
3631
  }
3118
- }), ca = /* @__PURE__ */ G(ra, [["__scopeId", "data-v-e1dde915"]]), ua = { class: "ml-notification-center" }, da = { class: "ml-notification-center-header" }, ma = { class: "ml-notification-center-title" }, pa = { class: "ml-notification-center-actions" }, fa = { class: "ml-notification-center-content" }, va = {
3632
+ }), Ma = /* @__PURE__ */ X(ka, [["__scopeId", "data-v-e1dde915"]]), Ca = { class: "ml-notification-center" }, Sa = { class: "ml-notification-center-header" }, La = { class: "ml-notification-center-title" }, Ta = { class: "ml-notification-center-actions" }, za = { class: "ml-notification-center-content" }, Ba = {
3119
3633
  key: 0,
3120
3634
  class: "ml-notification-center-empty"
3121
- }, ga = {
3635
+ }, Da = {
3122
3636
  key: 1,
3123
3637
  class: "ml-notification-list"
3124
- }, ha = /* @__PURE__ */ z({
3638
+ }, Ea = /* @__PURE__ */ E({
3125
3639
  __name: "MlNotificationCenter",
3126
3640
  props: {
3127
3641
  title: {}
3128
3642
  },
3129
3643
  emits: ["close"],
3130
3644
  setup(t) {
3131
- const { t: e } = R(), n = t, i = C(
3645
+ const { t: e } = Y(), n = t, i = T(
3132
3646
  () => n.title ?? e("main.notification.center.title")
3133
- ), { notifications: o, remove: l, clearAll: a } = pe(), c = (s) => {
3134
- s.action();
3647
+ ), { notifications: o, remove: l, clearAll: a } = he(), c = (r) => {
3648
+ r.action();
3135
3649
  };
3136
- return (s, m) => {
3137
- const v = S("el-icon"), w = S("el-button"), h = S("el-tooltip");
3138
- return u(), g("div", ua, [
3139
- r("div", da, [
3140
- r("div", ma, [
3141
- d(v, { class: "ml-notification-center-icon" }, {
3650
+ return (r, g) => {
3651
+ const _ = L("el-icon"), x = L("el-button"), h = L("el-tooltip");
3652
+ return s(), w("div", Ca, [
3653
+ d("div", Sa, [
3654
+ d("div", La, [
3655
+ p(_, { class: "ml-notification-center-icon" }, {
3142
3656
  default: f(() => [
3143
- d(p(he))
3657
+ p(m(ye))
3144
3658
  ]),
3145
3659
  _: 1
3146
3660
  }),
3147
- r("span", null, $(i.value), 1)
3661
+ d("span", null, V(i.value), 1)
3148
3662
  ]),
3149
- r("div", pa, [
3150
- p(o).length > 0 ? (u(), B(h, {
3663
+ d("div", Ta, [
3664
+ m(o).length > 0 ? (s(), B(h, {
3151
3665
  key: 0,
3152
- content: p(e)("main.notification.center.clearAll"),
3666
+ content: m(e)("main.notification.center.clearAll"),
3153
3667
  "hide-after": 0
3154
3668
  }, {
3155
3669
  default: f(() => [
3156
- d(w, {
3670
+ p(x, {
3157
3671
  text: "",
3158
3672
  circle: "",
3159
3673
  size: "small",
3160
3674
  class: "ml-notification-center-clear",
3161
- onClick: p(a)
3675
+ onClick: m(a)
3162
3676
  }, {
3163
3677
  default: f(() => [
3164
- d(v, null, {
3678
+ p(_, null, {
3165
3679
  default: f(() => [
3166
- d(p(bt))
3680
+ p(m(Ct))
3167
3681
  ]),
3168
3682
  _: 1
3169
3683
  })
@@ -3173,16 +3687,16 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3173
3687
  ]),
3174
3688
  _: 1
3175
3689
  }, 8, ["content"])) : O("", !0),
3176
- d(w, {
3690
+ p(x, {
3177
3691
  text: "",
3178
3692
  size: "small",
3179
3693
  class: "ml-notification-center-close",
3180
- onClick: m[0] || (m[0] = (_) => s.$emit("close"))
3694
+ onClick: g[0] || (g[0] = (u) => r.$emit("close"))
3181
3695
  }, {
3182
3696
  default: f(() => [
3183
- d(v, null, {
3697
+ p(_, null, {
3184
3698
  default: f(() => [
3185
- d(p(ye))
3699
+ p(m(xe))
3186
3700
  ]),
3187
3701
  _: 1
3188
3702
  })
@@ -3191,20 +3705,20 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3191
3705
  })
3192
3706
  ])
3193
3707
  ]),
3194
- r("div", fa, [
3195
- p(o).length === 0 ? (u(), g("div", va, [
3196
- d(v, { class: "ml-notification-center-empty-icon" }, {
3708
+ d("div", za, [
3709
+ m(o).length === 0 ? (s(), w("div", Ba, [
3710
+ p(_, { class: "ml-notification-center-empty-icon" }, {
3197
3711
  default: f(() => [
3198
- d(p(he))
3712
+ p(m(ye))
3199
3713
  ]),
3200
3714
  _: 1
3201
3715
  }),
3202
- r("p", null, $(p(e)("main.notification.center.noNotifications")), 1)
3203
- ])) : (u(), g("div", ga, [
3204
- (u(!0), g(j, null, K(p(o), (_) => (u(), B(ca, {
3205
- key: _.id,
3206
- notification: _,
3207
- onClose: (b) => p(l)(_.id),
3716
+ d("p", null, V(m(e)("main.notification.center.noNotifications")), 1)
3717
+ ])) : (s(), w("div", Da, [
3718
+ (s(!0), w(G, null, W(m(o), (u) => (s(), B(Ma, {
3719
+ key: u.id,
3720
+ notification: u,
3721
+ onClose: (v) => m(l)(u.id),
3208
3722
  onAction: c
3209
3723
  }, null, 8, ["notification", "onClose"]))), 128))
3210
3724
  ]))
@@ -3212,45 +3726,45 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3212
3726
  ]);
3213
3727
  };
3214
3728
  }
3215
- }), _a = /* @__PURE__ */ G(ha, [["__scopeId", "data-v-bdd67bed"]]), wa = /* @__PURE__ */ z({
3729
+ }), $a = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-bdd67bed"]]), Va = /* @__PURE__ */ E({
3216
3730
  __name: "MlFullScreenButton",
3217
3731
  setup(t) {
3218
- const { t: e } = R(), { isFullscreen: n, toggle: i } = nt(), o = C(() => ({
3732
+ const { t: e } = Y(), { isFullscreen: n, toggle: i } = tt(), o = T(() => ({
3219
3733
  onIcon: Ce,
3220
3734
  offIcon: Ce,
3221
3735
  onTooltip: e("main.statusBar.fullScreen.on"),
3222
3736
  offTooltip: e("main.statusBar.fullScreen.off")
3223
- })), l = C(() => !n.value);
3224
- return (a, c) => (u(), B(p(Ie), {
3737
+ })), l = T(() => !n.value);
3738
+ return (a, c) => (s(), B(m(Oe), {
3225
3739
  modelValue: l.value,
3226
- "onUpdate:modelValue": c[0] || (c[0] = (s) => l.value = s),
3740
+ "onUpdate:modelValue": c[0] || (c[0] = (r) => l.value = r),
3227
3741
  data: o.value,
3228
- onClick: p(i)
3742
+ onClick: m(i)
3229
3743
  }, null, 8, ["modelValue", "data", "onClick"]));
3230
3744
  }
3231
- }), ya = /* @__PURE__ */ z({
3745
+ }), Pa = /* @__PURE__ */ E({
3232
3746
  __name: "MlNotificationButton",
3233
3747
  emits: ["click"],
3234
3748
  setup(t, { emit: e }) {
3235
- const { t: n } = R(), { unreadCount: i } = pe(), o = e, l = () => {
3749
+ const { t: n } = Y(), { unreadCount: i } = he(), o = e, l = () => {
3236
3750
  o("click");
3237
3751
  };
3238
3752
  return (a, c) => {
3239
- const s = S("el-badge"), m = S("el-button"), v = S("el-tooltip");
3240
- return u(), B(v, {
3241
- content: p(n)("main.statusBar.notification.tooltip"),
3753
+ const r = L("el-badge"), g = L("el-button"), _ = L("el-tooltip");
3754
+ return s(), B(_, {
3755
+ content: m(n)("main.statusBar.notification.tooltip"),
3242
3756
  "hide-after": 0
3243
3757
  }, {
3244
3758
  default: f(() => [
3245
- d(m, {
3759
+ p(g, {
3246
3760
  class: "ml-notification-button",
3247
- icon: p(he),
3761
+ icon: m(ye),
3248
3762
  onClick: l
3249
3763
  }, {
3250
3764
  default: f(() => [
3251
- p(i) > 0 ? (u(), B(s, {
3765
+ m(i) > 0 ? (s(), B(r, {
3252
3766
  key: 0,
3253
- value: p(i),
3767
+ value: m(i),
3254
3768
  max: 99,
3255
3769
  class: "ml-notification-badge"
3256
3770
  }, null, 8, ["value"])) : O("", !0)
@@ -3262,22 +3776,22 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3262
3776
  }, 8, ["content"]);
3263
3777
  };
3264
3778
  }
3265
- }), ba = /* @__PURE__ */ G(ya, [["__scopeId", "data-v-48c740b7"]]), xa = /* @__PURE__ */ z({
3779
+ }), Aa = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-48c740b7"]]), Na = /* @__PURE__ */ E({
3266
3780
  __name: "MlPointStyleButton",
3267
3781
  setup(t) {
3268
- const { t: e } = R(), n = () => {
3269
- E.instance.sendStringToExecute("pttype");
3782
+ const { t: e } = Y(), n = () => {
3783
+ P.instance.sendStringToExecute("pttype");
3270
3784
  };
3271
3785
  return (i, o) => {
3272
- const l = S("el-button"), a = S("el-tooltip");
3273
- return u(), B(a, {
3274
- content: p(e)("main.statusBar.pointStyle.tooltip"),
3786
+ const l = L("el-button"), a = L("el-tooltip");
3787
+ return s(), B(a, {
3788
+ content: m(e)("main.statusBar.pointStyle.tooltip"),
3275
3789
  "hide-after": 0
3276
3790
  }, {
3277
3791
  default: f(() => [
3278
- d(l, {
3792
+ p(l, {
3279
3793
  class: "ml-point-style-button",
3280
- icon: p(zt),
3794
+ icon: m(Et),
3281
3795
  onClick: o[0] || (o[0] = (c) => n())
3282
3796
  }, null, 8, ["icon"])
3283
3797
  ]),
@@ -3285,43 +3799,30 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3285
3799
  }, 8, ["content"]);
3286
3800
  };
3287
3801
  }
3288
- }), ka = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-29692d7d"]]), Ma = {
3802
+ }), Ia = /* @__PURE__ */ X(Na, [["__scopeId", "data-v-29692d7d"]]), Fa = {
3289
3803
  key: 0,
3290
3804
  class: "ml-progress"
3291
- }, Ca = /* @__PURE__ */ z({
3805
+ }, Ra = /* @__PURE__ */ E({
3292
3806
  __name: "MlProgress",
3293
3807
  setup(t) {
3294
- const { t: e } = R(), n = k(0), i = k(!1), { warning: o } = pe(), l = (c) => {
3295
- if (c.stage === "CONVERSION") {
3296
- const s = ke.service({
3297
- lock: !0
3298
- });
3299
- if (c.subStage) {
3300
- const m = Ho(c.subStage);
3301
- if (s.setText(m), c.subStage === "PARSE" && c.subStageStatus === "END" && c.data) {
3302
- const v = c.data;
3303
- v.unknownEntityCount > 0 && o(
3304
- e("main.notification.title.parsingWarning"),
3305
- e("main.message.unknownEntities", {
3306
- count: v.unknownEntityCount
3307
- })
3308
- );
3309
- }
3310
- }
3311
- n.value = c.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
3312
- } else if (c.stage === "FETCH_FILE") {
3313
- const s = ke.service({
3314
- lock: !0
3315
- });
3316
- s.setText(e("main.message.fetchingDrawingFile")), n.value = c.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
3808
+ const { t: e } = Y(), n = M(0), i = M(!1), { warning: o } = he(), l = (c) => {
3809
+ if (c.stage === "CONVERSION" && c.subStage && c.subStage === "PARSE" && c.subStageStatus === "END" && c.data) {
3810
+ const r = c.data;
3811
+ r.unknownEntityCount > 0 && o(
3812
+ e("main.notification.title.parsingWarning"),
3813
+ e("main.message.unknownEntities", {
3814
+ count: r.unknownEntityCount
3815
+ })
3816
+ );
3317
3817
  }
3818
+ n.value = c.percentage, n.value < 100 ? i.value = !0 : i.value = !1;
3318
3819
  }, a = (c) => `${c.toFixed(0)}%`;
3319
- return q(() => {
3820
+ return Z(() => {
3320
3821
  Q.on("open-file-progress", l);
3321
3822
  }), ne(() => {
3322
3823
  Q.off("open-file-progress", l);
3323
- }), (c, s) => i.value ? (u(), g("div", Ma, [
3324
- d(p(ft), {
3824
+ }), (c, r) => i.value ? (s(), w("div", Fa, [
3825
+ p(m(ut), {
3325
3826
  "text-inside": !0,
3326
3827
  "stroke-width": 20,
3327
3828
  percentage: n.value,
@@ -3329,59 +3830,86 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3329
3830
  }, null, 8, ["percentage"])
3330
3831
  ])) : O("", !0);
3331
3832
  }
3332
- }), Sa = /* @__PURE__ */ G(Ca, [["__scopeId", "data-v-35ad24b9"]]), La = /* @__PURE__ */ z({
3833
+ }), Oa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-7513492f"]]), Ha = /* @__PURE__ */ E({
3333
3834
  __name: "MlSettingButton",
3334
3835
  setup(t) {
3335
- const { t: e } = R(), n = fe(), i = (o) => {
3336
- o == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, Z.instance.isShowCoordinate = n.isShowCoordinate) : o == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, Z.instance.isShowCommandLine = n.isShowCommandLine) : o == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, Z.instance.isShowToolbar = n.isShowToolbar) : o == "isShowStats" && (n.isShowStats = !n.isShowStats, Z.instance.isShowStats = n.isShowStats);
3836
+ const { t: e } = Y(), n = ce(), i = (o) => {
3837
+ o == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, U.instance.isShowCoordinate = n.isShowCoordinate) : o == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, U.instance.isShowCommandLine = n.isShowCommandLine) : o == "isShowEntityInfo" ? (n.isShowEntityInfo = !n.isShowEntityInfo, U.instance.isShowEntityInfo = n.isShowEntityInfo) : o == "isShowMainMenu" ? (n.isShowMainMenu = !n.isShowMainMenu, U.instance.isShowMainMenu = n.isShowMainMenu) : o == "isShowLanguageSelector" ? (n.isShowLanguageSelector = !n.isShowLanguageSelector, U.instance.isShowLanguageSelector = n.isShowLanguageSelector) : o == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, U.instance.isShowToolbar = n.isShowToolbar) : o == "isShowStats" && (n.isShowStats = !n.isShowStats, U.instance.isShowStats = n.isShowStats);
3337
3838
  };
3338
3839
  return (o, l) => {
3339
- const a = S("el-button"), c = S("el-dropdown-item"), s = S("el-dropdown-menu"), m = S("el-dropdown"), v = S("el-tooltip");
3340
- return u(), B(v, {
3341
- content: p(e)("main.statusBar.setting.tooltip"),
3840
+ const a = L("el-button"), c = L("el-dropdown-item"), r = L("el-dropdown-menu"), g = L("el-dropdown"), _ = L("el-tooltip");
3841
+ return s(), B(_, {
3842
+ content: m(e)("main.statusBar.setting.tooltip"),
3342
3843
  "hide-after": 0
3343
3844
  }, {
3344
3845
  default: f(() => [
3345
- d(m, {
3846
+ p(g, {
3346
3847
  trigger: "click",
3347
3848
  onCommand: i
3348
3849
  }, {
3349
3850
  dropdown: f(() => [
3350
- d(s, null, {
3851
+ p(r, null, {
3351
3852
  default: f(() => [
3352
- d(c, {
3353
- icon: p(n).isShowStats ? p(ie) : "",
3853
+ p(c, {
3854
+ icon: m(n).isShowStats ? m(J) : "",
3354
3855
  command: "isShowStats"
3355
3856
  }, {
3356
3857
  default: f(() => [
3357
- I($(p(e)("main.statusBar.setting.stats")), 1)
3858
+ R(V(m(e)("main.statusBar.setting.stats")), 1)
3358
3859
  ]),
3359
3860
  _: 1
3360
3861
  }, 8, ["icon"]),
3361
- d(c, {
3362
- icon: p(n).isShowCommandLine ? p(ie) : "",
3862
+ p(c, {
3863
+ icon: m(n).isShowCommandLine ? m(J) : "",
3363
3864
  command: "isShowCommandLine"
3364
3865
  }, {
3365
3866
  default: f(() => [
3366
- I($(p(e)("main.statusBar.setting.commandLine")), 1)
3867
+ R(V(m(e)("main.statusBar.setting.commandLine")), 1)
3868
+ ]),
3869
+ _: 1
3870
+ }, 8, ["icon"]),
3871
+ p(c, {
3872
+ icon: m(n).isShowEntityInfo ? m(J) : "",
3873
+ command: "isShowEntityInfo"
3874
+ }, {
3875
+ default: f(() => [
3876
+ R(V(m(e)("main.statusBar.setting.entityInfo")), 1)
3877
+ ]),
3878
+ _: 1
3879
+ }, 8, ["icon"]),
3880
+ p(c, {
3881
+ icon: m(n).isShowMainMenu ? m(J) : "",
3882
+ command: "isShowMainMenu"
3883
+ }, {
3884
+ default: f(() => [
3885
+ R(V(m(e)("main.statusBar.setting.mainMenu")), 1)
3886
+ ]),
3887
+ _: 1
3888
+ }, 8, ["icon"]),
3889
+ p(c, {
3890
+ icon: m(n).isShowLanguageSelector ? m(J) : "",
3891
+ command: "isShowLanguageSelector"
3892
+ }, {
3893
+ default: f(() => [
3894
+ R(V(m(e)("main.statusBar.setting.languageSelector")), 1)
3367
3895
  ]),
3368
3896
  _: 1
3369
3897
  }, 8, ["icon"]),
3370
- d(c, {
3371
- icon: p(n).isShowCoordinate ? p(ie) : "",
3898
+ p(c, {
3899
+ icon: m(n).isShowCoordinate ? m(J) : "",
3372
3900
  command: "isShowCoordinate"
3373
3901
  }, {
3374
3902
  default: f(() => [
3375
- I($(p(e)("main.statusBar.setting.coordinate")), 1)
3903
+ R(V(m(e)("main.statusBar.setting.coordinate")), 1)
3376
3904
  ]),
3377
3905
  _: 1
3378
3906
  }, 8, ["icon"]),
3379
- d(c, {
3380
- icon: p(n).isShowToolbar ? p(ie) : "",
3907
+ p(c, {
3908
+ icon: m(n).isShowToolbar ? m(J) : "",
3381
3909
  command: "isShowToolbar"
3382
3910
  }, {
3383
3911
  default: f(() => [
3384
- I($(p(e)("main.statusBar.setting.toolbar")), 1)
3912
+ R(V(m(e)("main.statusBar.setting.toolbar")), 1)
3385
3913
  ]),
3386
3914
  _: 1
3387
3915
  }, 8, ["icon"])
@@ -3390,9 +3918,9 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3390
3918
  })
3391
3919
  ]),
3392
3920
  default: f(() => [
3393
- d(a, {
3921
+ p(a, {
3394
3922
  class: "ml-setting-button",
3395
- icon: p(Dt)
3923
+ icon: m(Vt)
3396
3924
  }, null, 8, ["icon"])
3397
3925
  ]),
3398
3926
  _: 1
@@ -3402,64 +3930,64 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3402
3930
  }, 8, ["content"]);
3403
3931
  };
3404
3932
  }
3405
- }), za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-666f03a3"]]), Ba = /* @__PURE__ */ z({
3933
+ }), Ya = /* @__PURE__ */ X(Ha, [["__scopeId", "data-v-a8817740"]]), Ga = /* @__PURE__ */ E({
3406
3934
  __name: "MlThemeButton",
3407
3935
  setup(t) {
3408
- const { t: e } = R(), n = C(() => ({
3409
- onIcon: Et,
3410
- offIcon: St,
3936
+ const { t: e } = Y(), n = T(() => ({
3937
+ onIcon: It,
3938
+ offIcon: Bt,
3411
3939
  onTooltip: e("main.statusBar.theme.light"),
3412
3940
  offTooltip: e("main.statusBar.theme.dark")
3413
3941
  }));
3414
- return (i, o) => (u(), B(p(Ie), {
3415
- modelValue: p(se),
3416
- "onUpdate:modelValue": o[0] || (o[0] = (l) => Xe(se) ? se.value = l : null),
3942
+ return (i, o) => (s(), B(m(Oe), {
3943
+ modelValue: m(de),
3944
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => Qe(de) ? de.value = l : null),
3417
3945
  data: n.value,
3418
- onClick: o[1] || (o[1] = (l) => p(ko)())
3946
+ onClick: o[1] || (o[1] = (l) => m(To)())
3419
3947
  }, null, 8, ["modelValue", "data"]));
3420
3948
  }
3421
- }), Da = /* @__PURE__ */ z({
3949
+ }), Xa = /* @__PURE__ */ E({
3422
3950
  __name: "MlWarningButton",
3423
3951
  setup(t) {
3424
3952
  const e = () => {
3425
- E.instance.sendStringToExecute("md");
3426
- }, { fonts: n, images: i } = Ne(), o = C(() => i.size > 0 || n.size > 0);
3953
+ P.instance.sendStringToExecute("md");
3954
+ }, { fonts: n, images: i } = Re(), o = T(() => i.size > 0 || n.size > 0);
3427
3955
  return (l, a) => {
3428
- const c = S("el-button");
3429
- return o.value ? (u(), B(c, {
3956
+ const c = L("el-button");
3957
+ return o.value ? (s(), B(c, {
3430
3958
  key: 0,
3431
3959
  class: "ml-warning-button",
3432
3960
  type: "warning",
3433
- icon: p(It),
3434
- onClick: a[0] || (a[0] = (s) => e())
3961
+ icon: m(Ht),
3962
+ onClick: a[0] || (a[0] = (r) => e())
3435
3963
  }, null, 8, ["icon"])) : O("", !0);
3436
3964
  };
3437
3965
  }
3438
- }), Ta = /* @__PURE__ */ G(Da, [["__scopeId", "data-v-3411a3ec"]]), $a = /* @__PURE__ */ z({
3966
+ }), Wa = /* @__PURE__ */ X(Xa, [["__scopeId", "data-v-3411a3ec"]]), Za = /* @__PURE__ */ E({
3439
3967
  __name: "MlStatusBar",
3440
3968
  emits: ["toggleNotificationCenter"],
3441
3969
  setup(t, { emit: e }) {
3442
- const { text: n } = xo(E.instance.curView), i = Bo(E.instance), o = fe(), { isMobile: l } = qo(), a = (m) => {
3443
- Ee().layoutManager.setCurrentLayoutBtrId(
3444
- m.blockTableRecordId
3970
+ const { text: n } = Lo(P.instance.curView), i = Po(P.instance), o = ce(), { isMobile: l } = Jo(), a = (g) => {
3971
+ Ae().layoutManager.setCurrentLayoutBtrId(
3972
+ g.blockTableRecordId
3445
3973
  );
3446
- }, c = e, s = () => {
3974
+ }, c = e, r = () => {
3447
3975
  c("toggleNotificationCenter");
3448
3976
  };
3449
- return (m, v) => {
3450
- const w = S("el-button"), h = S("el-button-group");
3451
- return u(), B(p(_l), { class: "ml-status-bar" }, {
3977
+ return (g, _) => {
3978
+ const x = L("el-button"), h = L("el-button-group");
3979
+ return s(), B(m(Cl), { class: "ml-status-bar" }, {
3452
3980
  left: f(() => [
3453
- d(h, { class: "ml-status-bar-left-button-group" }, {
3981
+ p(h, { class: "ml-status-bar-left-button-group" }, {
3454
3982
  default: f(() => [
3455
- (u(!0), g(j, null, K(p(i), (_) => (u(), B(w, {
3983
+ (s(!0), w(G, null, W(m(i), (u) => (s(), B(x, {
3456
3984
  class: "ml-status-bar-layout-button",
3457
- key: _.name,
3458
- type: _.isActive ? "primary" : "",
3459
- onClick: (b) => a(_)
3985
+ key: u.name,
3986
+ type: u.isActive ? "primary" : "",
3987
+ onClick: (v) => a(u)
3460
3988
  }, {
3461
3989
  default: f(() => [
3462
- I($(_.name), 1)
3990
+ R(V(u.name), 1)
3463
3991
  ]),
3464
3992
  _: 2
3465
3993
  }, 1032, ["type", "onClick"]))), 128))
@@ -3468,24 +3996,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3468
3996
  })
3469
3997
  ]),
3470
3998
  right: f(() => [
3471
- d(Sa),
3472
- d(h, { class: "ml-status-bar-right-button-group" }, {
3999
+ p(Oa),
4000
+ p(h, { class: "ml-status-bar-right-button-group" }, {
3473
4001
  default: f(() => [
3474
- p(o).isShowCoordinate && !p(l) ? (u(), B(w, {
4002
+ m(o).isShowCoordinate && !m(l) ? (s(), B(x, {
3475
4003
  key: 0,
3476
4004
  class: "ml-status-bar-current-pos"
3477
4005
  }, {
3478
4006
  default: f(() => [
3479
- I($(p(n)), 1)
4007
+ R(V(m(n)), 1)
3480
4008
  ]),
3481
4009
  _: 1
3482
4010
  })) : O("", !0),
3483
- d(Ta),
3484
- d(ba, { onClick: s }),
3485
- d(Ba),
3486
- d(wa),
3487
- d(ka),
3488
- d(za)
4011
+ p(Wa),
4012
+ p(Aa, { onClick: r }),
4013
+ p(Ga),
4014
+ p(Va),
4015
+ p(Ia),
4016
+ p(Ya)
3489
4017
  ]),
3490
4018
  _: 1
3491
4019
  })
@@ -3494,10 +4022,10 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3494
4022
  });
3495
4023
  };
3496
4024
  }
3497
- }), Aa = /* @__PURE__ */ G($a, [["__scopeId", "data-v-24578503"]]), Ea = {
4025
+ }), Ua = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-24578503"]]), qa = {
3498
4026
  key: 0,
3499
4027
  class: "ml-cad-viewer-container"
3500
- }, Va = { class: "ml-file-name" }, ui = /* @__PURE__ */ z({
4028
+ }, ja = { class: "ml-file-name" }, Si = /* @__PURE__ */ E({
3501
4029
  __name: "MlCadViewer",
3502
4030
  props: {
3503
4031
  locale: { default: "default" },
@@ -3508,146 +4036,143 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3508
4036
  useMainThreadDraw: { type: Boolean, default: !1 }
3509
4037
  },
3510
4038
  setup(t) {
3511
- const e = t, { t: n } = R(), { effectiveLocale: i, elementPlusLocale: o } = Fe(e.locale), { info: l, warning: a, error: c, success: s } = pe(), m = k(), v = k(null), w = C(() => v.value), h = k(!1), _ = async (y, M) => {
3512
- const D = { minimumChunkSize: 1e3 };
3513
- await E.instance.openDocument(y, M, D), J.fileName = y;
3514
- }, b = async (y) => {
4039
+ const e = t, { t: n } = Y(), { effectiveLocale: i, elementPlusLocale: o } = Fe(e.locale), { info: l, warning: a, error: c, success: r } = he(), g = M(), _ = M(null), x = T(() => _.value), h = M(!1), u = async (C, D) => {
4040
+ const k = { minimumChunkSize: 1e3 };
4041
+ await P.instance.openDocument(C, D, k), te.fileName = P.instance.curDocument.docTitle;
4042
+ }, v = async (C) => {
3515
4043
  try {
3516
- const M = { minimumChunkSize: 1e3 };
3517
- await E.instance.openUrl(y, M);
3518
- const D = y.split("/").pop();
3519
- J.fileName = D ?? "";
3520
- } catch (M) {
3521
- console.error("Failed to open file from URL:", M), oe({
3522
- message: n("main.message.failedToOpenFile", { fileName: y }),
4044
+ const D = { minimumChunkSize: 1e3 };
4045
+ await P.instance.openUrl(C, D), te.fileName = P.instance.curDocument.docTitle;
4046
+ } catch (D) {
4047
+ console.error("Failed to open file from URL:", D), ee({
4048
+ message: n("main.message.failedToOpenFile", { fileName: C }),
3523
4049
  grouping: !0,
3524
4050
  type: "error",
3525
4051
  showClose: !0
3526
4052
  });
3527
4053
  }
3528
- }, x = async (y) => {
4054
+ }, b = async (C) => {
3529
4055
  try {
3530
- const M = new FileReader();
3531
- M.readAsArrayBuffer(y);
3532
- const D = await new Promise((N, F) => {
3533
- M.onload = (A) => {
3534
- var X;
3535
- const W = (X = A.target) == null ? void 0 : X.result;
3536
- W ? N(W) : F(new Error("Failed to read file content"));
3537
- }, M.onerror = () => F(new Error("Failed to read file"));
3538
- }), H = { minimumChunkSize: 1e3 };
3539
- await E.instance.openDocument(y.name, D, H), J.fileName = y.name;
3540
- } catch (M) {
3541
- console.error("Failed to open local file:", M), oe({
3542
- message: n("main.message.failedToOpenFile", { fileName: y.name }),
4056
+ const D = new FileReader();
4057
+ D.readAsArrayBuffer(C);
4058
+ const k = await new Promise((N, y) => {
4059
+ D.onload = (z) => {
4060
+ var j;
4061
+ const F = (j = z.target) == null ? void 0 : j.result;
4062
+ F ? N(F) : y(new Error("Failed to read file content"));
4063
+ }, D.onerror = () => y(new Error("Failed to read file"));
4064
+ }), A = { minimumChunkSize: 1e3 };
4065
+ await P.instance.openDocument(C.name, k, A), te.fileName = P.instance.curDocument.docTitle;
4066
+ } catch (D) {
4067
+ console.error("Failed to open local file:", D), ee({
4068
+ message: n("main.message.failedToOpenFile", { fileName: C.name }),
3543
4069
  grouping: !0,
3544
4070
  type: "error",
3545
4071
  showClose: !0
3546
4072
  });
3547
4073
  }
3548
4074
  };
3549
- V(
4075
+ I(
3550
4076
  () => e.url,
3551
- async (y) => {
3552
- y && b(y);
4077
+ async (C) => {
4078
+ C && v(C);
3553
4079
  }
3554
- ), V(
4080
+ ), I(
3555
4081
  () => e.localFile,
3556
- async (y) => {
3557
- y && x(y);
4082
+ async (C) => {
4083
+ C && b(C);
3558
4084
  }
3559
- ), V(
4085
+ ), I(
3560
4086
  () => e.background,
3561
- (y) => {
3562
- y != null && (E.instance.curView.backgroundColor = y);
4087
+ (C) => {
4088
+ C != null && (P.instance.curView.backgroundColor = C);
3563
4089
  }
3564
- ), q(async () => {
3565
- m.value && (Ia({
3566
- canvas: m.value,
4090
+ ), Z(async () => {
4091
+ g.value && (Ka({
4092
+ canvas: g.value,
3567
4093
  baseUrl: e.baseUrl,
3568
4094
  useMainThreadDraw: e.useMainThreadDraw
3569
- }), Na(), v.value = E.instance), e.url ? b(e.url) : e.localFile && x(e.localFile), e.background != null && (E.instance.curView.backgroundColor = e.background);
3570
- }), Q.on("message", (y) => {
3571
- switch (oe({
3572
- message: y.message,
4095
+ }), _.value = P.instance), e.url ? v(e.url) : e.localFile && b(e.localFile), e.background != null && (P.instance.curView.backgroundColor = e.background);
4096
+ }), Q.on("message", (C) => {
4097
+ switch (ee({
4098
+ message: C.message,
3573
4099
  grouping: !0,
3574
- type: y.type,
4100
+ type: C.type,
3575
4101
  showClose: !0
3576
- }), y.type) {
4102
+ }), C.type) {
3577
4103
  case "success":
3578
- s("System Message", y.message);
4104
+ r("System Message", C.message);
3579
4105
  break;
3580
4106
  case "warning":
3581
- a("System Warning", y.message);
4107
+ a("System Warning", C.message);
3582
4108
  break;
3583
4109
  case "error":
3584
- c("System Error", y.message);
4110
+ c("System Error", C.message);
3585
4111
  break;
3586
4112
  default:
3587
- l("System Info", y.message);
4113
+ l("System Info", C.message);
3588
4114
  break;
3589
4115
  }
3590
- }), Q.on("fonts-not-loaded", (y) => {
3591
- const M = y.fonts.map((H) => H.fontName).join(", "), D = n("main.message.fontsNotLoaded", { fonts: M });
3592
- c(n("main.notification.title.fontNotFound"), D);
3593
- }), Q.on("fonts-not-found", (y) => {
3594
- const M = n("main.message.fontsNotFound", {
3595
- fonts: y.fonts.join(", ")
4116
+ }), Q.on("fonts-not-loaded", (C) => {
4117
+ const D = C.fonts.map((A) => A.fontName).join(", "), k = n("main.message.fontsNotLoaded", { fonts: D });
4118
+ c(n("main.notification.title.fontNotFound"), k);
4119
+ }), Q.on("fonts-not-found", (C) => {
4120
+ const D = n("main.message.fontsNotFound", {
4121
+ fonts: C.fonts.join(", ")
3596
4122
  });
3597
- a(n("main.notification.title.fontNotFound"), M);
3598
- }), Q.on("failed-to-get-avaiable-fonts", (y) => {
3599
- oe({
3600
- message: n("main.message.failedToGetAvaiableFonts", { url: y.url }),
4123
+ a(n("main.notification.title.fontNotFound"), D);
4124
+ }), Q.on("failed-to-get-avaiable-fonts", (C) => {
4125
+ ee({
4126
+ message: n("main.message.failedToGetAvaiableFonts", { url: C.url }),
3601
4127
  grouping: !0,
3602
4128
  type: "error",
3603
4129
  showClose: !0
3604
4130
  });
3605
- }), Q.on("failed-to-open-file", (y) => {
3606
- const M = n("main.message.failedToOpenFile", {
3607
- fileName: y.fileName
4131
+ }), Q.on("failed-to-open-file", (C) => {
4132
+ const D = n("main.message.failedToOpenFile", {
4133
+ fileName: C.fileName
3608
4134
  });
3609
- oe({
3610
- message: M,
4135
+ ee({
4136
+ message: D,
3611
4137
  grouping: !0,
3612
4138
  type: "error",
3613
4139
  showClose: !0
3614
- }), c("File Opening Failed", M);
4140
+ }), c("File Opening Failed", D);
3615
4141
  });
3616
- const L = () => {
4142
+ const S = () => {
3617
4143
  h.value = !h.value;
3618
- }, T = () => {
4144
+ }, $ = () => {
3619
4145
  h.value = !1;
3620
4146
  };
3621
- return (y, M) => {
3622
- const D = S("el-config-provider");
3623
- return u(), g(j, null, [
3624
- r("canvas", {
4147
+ return (C, D) => {
4148
+ const k = L("el-config-provider");
4149
+ return s(), w(G, null, [
4150
+ d("canvas", {
3625
4151
  ref_key: "canvasRef",
3626
- ref: m,
4152
+ ref: g,
3627
4153
  class: "ml-cad-canvas"
3628
4154
  }, null, 512),
3629
- v.value ? (u(), g("div", Ea, [
3630
- d(D, { locale: p(o) }, {
4155
+ _.value ? (s(), w("div", qa, [
4156
+ p(k, { locale: m(o) }, {
3631
4157
  default: f(() => [
3632
- r("header", null, [
3633
- d(p(Ql)),
3634
- d(p(Kl), { "current-locale": p(i) }, null, 8, ["current-locale"])
4158
+ d("header", null, [
4159
+ p(m(ma)),
4160
+ p(m(ua), { "current-locale": m(i) }, null, 8, ["current-locale"])
3635
4161
  ]),
3636
- r("main", null, [
3637
- r("div", Va, $(p(J).fileName), 1),
3638
- d(p(Jl)),
3639
- d(p(Hl), { editor: w.value }, null, 8, ["editor"]),
3640
- d(p(Uo))
4162
+ d("main", null, [
4163
+ d("div", ja, V(m(te).fileName), 1),
4164
+ p(m(va)),
4165
+ p(m(ia), { editor: x.value }, null, 8, ["editor"]),
4166
+ p(m(Ko))
3641
4167
  ]),
3642
- r("footer", null, [
3643
- d(p(ql)),
3644
- d(p(Aa), { onToggleNotificationCenter: L })
4168
+ d("footer", null, [
4169
+ p(m(Ua), { onToggleNotificationCenter: S })
3645
4170
  ]),
3646
- d(p(Yo), { onFileRead: _ }),
3647
- d(p(jl)),
3648
- h.value ? (u(), B(p(_a), {
4171
+ p(m(tl), { onFileRead: u }),
4172
+ p(m(ra)),
4173
+ h.value ? (s(), B(m($a), {
3649
4174
  key: 0,
3650
- onClose: T
4175
+ onClose: $
3651
4176
  })) : O("", !0)
3652
4177
  ]),
3653
4178
  _: 1
@@ -3656,152 +4181,100 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
3656
4181
  ], 64);
3657
4182
  };
3658
4183
  }
3659
- }), Fa = () => {
3660
- U.instance.addCommand(
3661
- U.SYSTEMT_COMMAND_GROUP_NAME,
3662
- "log",
3663
- "log",
3664
- new Oa()
3665
- ), U.instance.addCommand(
3666
- U.SYSTEMT_COMMAND_GROUP_NAME,
4184
+ }), Qa = () => {
4185
+ K.instance.addCommand(
4186
+ K.SYSTEMT_COMMAND_GROUP_NAME,
3667
4187
  "la",
3668
4188
  "la",
3669
- new Pa()
3670
- ), U.instance.addCommand(
3671
- U.SYSTEMT_COMMAND_GROUP_NAME,
4189
+ new ei()
4190
+ ), K.instance.addCommand(
4191
+ K.SYSTEMT_COMMAND_GROUP_NAME,
3672
4192
  "md",
3673
4193
  "md",
3674
- new Ra()
3675
- ), U.instance.addCommand(
3676
- U.SYSTEMT_COMMAND_GROUP_NAME,
4194
+ new ti()
4195
+ ), K.instance.addCommand(
4196
+ K.SYSTEMT_COMMAND_GROUP_NAME,
3677
4197
  "pttype",
3678
4198
  "pttype",
3679
- new Ha()
4199
+ new ni()
3680
4200
  );
3681
- }, Na = () => {
3682
- const { registerDialog: t } = me();
4201
+ }, Ja = () => {
4202
+ const { registerDialog: t } = ge();
3683
4203
  t({
3684
4204
  name: "ReplacementDlg",
3685
- component: xe(Xo),
4205
+ component: ke(ol),
3686
4206
  props: {}
3687
4207
  }), t({
3688
4208
  name: "PointStyleDlg",
3689
- component: xe(Qo),
4209
+ component: ke(ll),
3690
4210
  props: {}
3691
4211
  });
3692
- }, Ia = (t = {}) => {
3693
- E.createInstance(t), Ge(), Fa(), E.instance.loadDefaultFonts();
3694
- }, J = Y({
4212
+ }, Ka = (t = {}) => {
4213
+ P.createInstance(t), Qa(), Ja();
4214
+ }, te = q({
3695
4215
  fileName: "",
3696
4216
  dialogs: {
3697
4217
  layerManager: !1
3698
4218
  }
3699
4219
  });
3700
- class Pa extends ue {
3701
- execute(e) {
3702
- J.dialogs.layerManager = !0;
3703
- }
3704
- }
3705
- class Oa extends ue {
4220
+ class ei extends be {
3706
4221
  execute(e) {
3707
- this.printSelectionSet(e), this.printStats(e), this.printPerformanceData();
3708
- }
3709
- printSelectionSet(e) {
3710
- const n = e.doc.database.tables.blockTable.modelSpace;
3711
- e.view.selectionSet.ids.forEach((i) => {
3712
- const o = n.getIdAt(i);
3713
- o && console.log(o);
3714
- });
3715
- }
3716
- printStats(e) {
3717
- const n = e.view.stats.layouts;
3718
- console.log("Geometry information in current drawing:");
3719
- for (let i = 0; i < n.length; ++i) {
3720
- console.group(`Layout: ${i}`);
3721
- const o = n[i], l = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], c = o.layers.map((s) => (l[0] = s.line.indexed.geometrySize / 1024, l[1] = s.line.nonIndexed.geometrySize / 1024, l[2] = s.mesh.indexed.geometrySize / 1024, l[3] = s.mesh.nonIndexed.geometrySize / 1024, l[4] = s.point.indexed.geometrySize / 1024, l[5] = s.point.nonIndexed.geometrySize / 1024, a[0] += l[0], a[1] += l[1], a[2] += l[2], a[3] += l[3], a[4] += l[4], a[5] += l[5], {
3722
- name: s.name,
3723
- "idx line (KB)": l[0].toFixed(1),
3724
- "line (KB)": l[1].toFixed(1),
3725
- "idx mesh (KB)": l[2].toFixed(1),
3726
- "mesh (KB)": l[3].toFixed(1),
3727
- "idx point (KB)": l[4].toFixed(1),
3728
- "point (KB)": l[5].toFixed(1),
3729
- "total geo (KB)": (s.summary.totalGeometrySize / 1024).toFixed(1),
3730
- "total mapping (KB)": (s.summary.totalMappingSize / 1024).toFixed(
3731
- 1
3732
- )
3733
- }));
3734
- c.push({
3735
- name: "total",
3736
- "idx line (KB)": a[0].toFixed(1),
3737
- "line (KB)": a[1].toFixed(1),
3738
- "idx mesh (KB)": a[2].toFixed(1),
3739
- "mesh (KB)": a[3].toFixed(1),
3740
- "idx point (KB)": a[4].toFixed(1),
3741
- "point (KB)": a[5].toFixed(1),
3742
- "total geo (KB)": (o.summary.totalSize.geometry / 1024).toFixed(1),
3743
- "total mapping (KB)": (o.summary.totalSize.mapping / 1024).toFixed(
3744
- 1
3745
- )
3746
- }), console.table(c), console.groupEnd();
3747
- }
3748
- }
3749
- printPerformanceData() {
3750
- Ze.getInstance().printAll();
4222
+ te.dialogs.layerManager = !0;
3751
4223
  }
3752
4224
  }
3753
- class Ra extends ue {
4225
+ class ti extends be {
3754
4226
  execute(e) {
3755
- const { toggleDialog: n } = me();
4227
+ const { toggleDialog: n } = ge();
3756
4228
  n("ReplacementDlg", !0);
3757
4229
  }
3758
4230
  }
3759
- class Ha extends ue {
4231
+ class ni extends be {
3760
4232
  execute(e) {
3761
- const { toggleDialog: n } = me();
4233
+ const { toggleDialog: n } = ge();
3762
4234
  n("PointStyleDlg", !0);
3763
4235
  }
3764
4236
  }
3765
4237
  export {
3766
- Pa as AcApLayerStateCmd,
3767
- Oa as AcApLogCmd,
3768
- Ra as AcApMissedDataCmd,
3769
- Ha as AcApPointStyleCmd,
3770
- Ve as MlBaseDialog,
3771
- ui as MlCadViewer,
3772
- ql as MlCommandLine,
3773
- Uo as MlDialogManager,
3774
- jl as MlEntityInfo,
3775
- Yo as MlFileReader,
3776
- Kl as MlLanguageSelector,
3777
- Hl as MlLayerManager,
3778
- Ql as MlMainMenu,
3779
- _a as MlNotificationCenter,
3780
- ca as MlNotificationItem,
3781
- Qo as MlPointStyleDlg,
3782
- Xo as MlReplacementDlg,
3783
- Aa as MlStatusBar,
3784
- Ie as MlToggleButton,
3785
- Jl as MlToolBars,
3786
- be as cmdDescription,
3787
- Ro as colorName,
3788
- Ho as conversionSubStageName,
3789
- Oo as entityName,
3790
- te as i18n,
3791
- se as isDark,
3792
- ri as sysCmdDescription,
3793
- ko as toggleDark,
3794
- bo as useCommands,
3795
- xo as useCurrentPos,
3796
- me as useDialogManager,
3797
- Lo as useFileTypes,
3798
- qo as useIsMobile,
3799
- zo as useLayers,
3800
- Bo as useLayouts,
4238
+ ei as AcApLayerStateCmd,
4239
+ ti as AcApMissedDataCmd,
4240
+ ni as AcApPointStyleCmd,
4241
+ Ne as MlBaseDialog,
4242
+ Mi as MlBaseInputNumber,
4243
+ Si as MlCadViewer,
4244
+ Ko as MlDialogManager,
4245
+ ra as MlEntityInfo,
4246
+ tl as MlFileReader,
4247
+ ua as MlLanguageSelector,
4248
+ ma as MlMainMenu,
4249
+ $a as MlNotificationCenter,
4250
+ Ma as MlNotificationItem,
4251
+ ia as MlPaletteManager,
4252
+ ll as MlPointStyleDlg,
4253
+ ol as MlReplacementDlg,
4254
+ Ua as MlStatusBar,
4255
+ Oe as MlToggleButton,
4256
+ va as MlToolBars,
4257
+ Wo as colorName,
4258
+ Xo as entityName,
4259
+ Te as entityPropEnum,
4260
+ Le as entityPropName,
4261
+ oe as i18n,
4262
+ de as isDark,
4263
+ To as toggleDark,
4264
+ Uo as toolPaletteTabName,
4265
+ Zo as toolPaletteTitle,
4266
+ Ci as useCommands,
4267
+ Lo as useCurrentPos,
4268
+ ge as useDialogManager,
4269
+ Eo as useFileTypes,
4270
+ $o as useHover,
4271
+ Jo as useIsMobile,
4272
+ Vo as useLayers,
4273
+ Po as useLayouts,
3801
4274
  Fe as useLocale,
3802
- Ne as useMissedData,
3803
- pe as useNotificationCenter,
3804
- fe as useSettings,
3805
- Wo as useSystemVars,
3806
- ci as userCmdDescription
4275
+ Re as useMissedData,
4276
+ he as useNotificationCenter,
4277
+ jo as useSelectionSet,
4278
+ ce as useSettings,
4279
+ Qo as useSystemVars
3807
4280
  };