@vaebe/ccui 2.0.0-beta.0

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 (189) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +31 -0
  3. package/affix/ccui-cli.css +2 -0
  4. package/affix/index.es.js +132 -0
  5. package/affix/index.umd.js +1 -0
  6. package/alert/ccui-cli.css +2 -0
  7. package/alert/index.es.js +127 -0
  8. package/alert/index.umd.js +1 -0
  9. package/anchor/ccui-cli.css +2 -0
  10. package/anchor/index.es.js +160 -0
  11. package/anchor/index.umd.js +1 -0
  12. package/avatar/ccui-cli.css +2 -0
  13. package/avatar/index.es.js +235 -0
  14. package/avatar/index.umd.js +1 -0
  15. package/badge/ccui-cli.css +2 -0
  16. package/badge/index.es.js +146 -0
  17. package/badge/index.umd.js +1 -0
  18. package/breadcrumb/ccui-cli.css +2 -0
  19. package/breadcrumb/index.es.js +89 -0
  20. package/breadcrumb/index.umd.js +1 -0
  21. package/button/ccui-cli.css +2 -0
  22. package/button/index.es.js +1236 -0
  23. package/button/index.umd.js +1 -0
  24. package/button-3d/ccui-cli.css +2 -0
  25. package/button-3d/index.es.js +80 -0
  26. package/button-3d/index.umd.js +1 -0
  27. package/calendar/ccui-cli.css +2 -0
  28. package/calendar/index.es.js +450 -0
  29. package/calendar/index.umd.js +1 -0
  30. package/card/ccui-cli.css +2 -0
  31. package/card/index.es.js +78 -0
  32. package/card/index.umd.js +1 -0
  33. package/ccui-cli.css +2 -0
  34. package/check-box/ccui-cli.css +2 -0
  35. package/check-box/index.es.js +173 -0
  36. package/check-box/index.umd.js +1 -0
  37. package/collapse/ccui-cli.css +2 -0
  38. package/collapse/index.es.js +176 -0
  39. package/collapse/index.umd.js +1 -0
  40. package/config-provider/index.es.js +204 -0
  41. package/config-provider/index.umd.js +1 -0
  42. package/date-picker/ccui-cli.css +2 -0
  43. package/date-picker/index.es.js +2447 -0
  44. package/date-picker/index.umd.js +1 -0
  45. package/descriptions/ccui-cli.css +2 -0
  46. package/descriptions/index.es.js +175 -0
  47. package/descriptions/index.umd.js +1 -0
  48. package/divider/ccui-cli.css +2 -0
  49. package/divider/index.es.js +78 -0
  50. package/divider/index.umd.js +1 -0
  51. package/drawer/ccui-cli.css +2 -0
  52. package/drawer/index.es.js +1320 -0
  53. package/drawer/index.umd.js +1 -0
  54. package/dropdown/ccui-cli.css +2 -0
  55. package/dropdown/index.es.js +606 -0
  56. package/dropdown/index.umd.js +1 -0
  57. package/empty/ccui-cli.css +2 -0
  58. package/empty/index.es.js +173 -0
  59. package/empty/index.umd.js +1 -0
  60. package/flex/ccui-cli.css +2 -0
  61. package/flex/index.es.js +87 -0
  62. package/flex/index.umd.js +1 -0
  63. package/float-button/ccui-cli.css +2 -0
  64. package/float-button/index.es.js +169 -0
  65. package/float-button/index.umd.js +1 -0
  66. package/form/ccui-cli.css +2 -0
  67. package/form/index.es.js +752 -0
  68. package/form/index.umd.js +1 -0
  69. package/grid/ccui-cli.css +2 -0
  70. package/grid/index.es.js +207 -0
  71. package/grid/index.umd.js +1 -0
  72. package/icon/ccui-cli.css +2 -0
  73. package/icon/index.es.js +1228 -0
  74. package/icon/index.umd.js +1 -0
  75. package/image/ccui-cli.css +2 -0
  76. package/image/index.es.js +276 -0
  77. package/image/index.umd.js +1 -0
  78. package/index.d.ts +7 -0
  79. package/input/ccui-cli.css +2 -0
  80. package/input/index.es.js +1293 -0
  81. package/input/index.umd.js +1 -0
  82. package/input-number/ccui-cli.css +2 -0
  83. package/input-number/index.es.js +263 -0
  84. package/input-number/index.umd.js +1 -0
  85. package/layout/ccui-cli.css +2 -0
  86. package/layout/index.es.js +184 -0
  87. package/layout/index.umd.js +1 -0
  88. package/masonry/ccui-cli.css +2 -0
  89. package/masonry/index.es.js +119 -0
  90. package/masonry/index.umd.js +1 -0
  91. package/menu/ccui-cli.css +2 -0
  92. package/menu/index.es.js +385 -0
  93. package/menu/index.umd.js +1 -0
  94. package/message/ccui-cli.css +2 -0
  95. package/message/index.es.js +351 -0
  96. package/message/index.umd.js +1 -0
  97. package/modal/ccui-cli.css +2 -0
  98. package/modal/index.es.js +1553 -0
  99. package/modal/index.umd.js +1 -0
  100. package/notification/ccui-cli.css +2 -0
  101. package/notification/index.es.js +347 -0
  102. package/notification/index.umd.js +1 -0
  103. package/nuxt/components/category.js +2 -0
  104. package/nuxt/components/install.js +2 -0
  105. package/nuxt/components/status.js +2 -0
  106. package/nuxt/components/title.js +2 -0
  107. package/nuxt/index.js +13 -0
  108. package/package.json +53 -0
  109. package/pagination/ccui-cli.css +2 -0
  110. package/pagination/index.es.js +296 -0
  111. package/pagination/index.umd.js +1 -0
  112. package/popconfirm/ccui-cli.css +2 -0
  113. package/popconfirm/index.es.js +735 -0
  114. package/popconfirm/index.umd.js +1 -0
  115. package/popover/ccui-cli.css +2 -0
  116. package/popover/index.es.js +530 -0
  117. package/popover/index.umd.js +1 -0
  118. package/progress/ccui-cli.css +2 -0
  119. package/progress/index.es.js +167 -0
  120. package/progress/index.umd.js +1 -0
  121. package/radio/ccui-cli.css +2 -0
  122. package/radio/index.es.js +157 -0
  123. package/radio/index.umd.js +1 -0
  124. package/rate/ccui-cli.css +2 -0
  125. package/rate/index.es.js +115 -0
  126. package/rate/index.umd.js +1 -0
  127. package/result/ccui-cli.css +2 -0
  128. package/result/index.es.js +90 -0
  129. package/result/index.umd.js +1 -0
  130. package/segmented/ccui-cli.css +2 -0
  131. package/segmented/index.es.js +99 -0
  132. package/segmented/index.umd.js +1 -0
  133. package/select/ccui-cli.css +2 -0
  134. package/select/index.es.js +1885 -0
  135. package/select/index.umd.js +1 -0
  136. package/skeleton/ccui-cli.css +2 -0
  137. package/skeleton/index.es.js +117 -0
  138. package/skeleton/index.umd.js +1 -0
  139. package/slider/ccui-cli.css +2 -0
  140. package/slider/index.es.js +1071 -0
  141. package/slider/index.umd.js +1 -0
  142. package/space/ccui-cli.css +2 -0
  143. package/space/index.es.js +108 -0
  144. package/space/index.umd.js +1 -0
  145. package/spin/ccui-cli.css +2 -0
  146. package/spin/index.es.js +86 -0
  147. package/spin/index.umd.js +1 -0
  148. package/splitter/ccui-cli.css +2 -0
  149. package/splitter/index.es.js +198 -0
  150. package/splitter/index.umd.js +1 -0
  151. package/status/ccui-cli.css +2 -0
  152. package/status/index.es.js +44 -0
  153. package/status/index.umd.js +1 -0
  154. package/steps/ccui-cli.css +2 -0
  155. package/steps/index.es.js +118 -0
  156. package/steps/index.umd.js +1 -0
  157. package/switch/ccui-cli.css +2 -0
  158. package/switch/index.es.js +118 -0
  159. package/switch/index.umd.js +1 -0
  160. package/table/ccui-cli.css +2 -0
  161. package/table/index.es.js +553 -0
  162. package/table/index.umd.js +1 -0
  163. package/tabs/ccui-cli.css +2 -0
  164. package/tabs/index.es.js +128 -0
  165. package/tabs/index.umd.js +1 -0
  166. package/tag/ccui-cli.css +2 -0
  167. package/tag/index.es.js +116 -0
  168. package/tag/index.umd.js +1 -0
  169. package/theme/darkTheme.css +352 -0
  170. package/theme/theme.scss +703 -0
  171. package/timeline/ccui-cli.css +2 -0
  172. package/timeline/index.es.js +113 -0
  173. package/timeline/index.umd.js +1 -0
  174. package/tooltip/ccui-cli.css +2 -0
  175. package/tooltip/index.es.js +423 -0
  176. package/tooltip/index.umd.js +1 -0
  177. package/tree/ccui-cli.css +2 -0
  178. package/tree/index.es.js +810 -0
  179. package/tree/index.umd.js +1 -0
  180. package/typography/ccui-cli.css +2 -0
  181. package/typography/index.es.js +270 -0
  182. package/typography/index.umd.js +1 -0
  183. package/util/index.es.js +78 -0
  184. package/util/index.umd.js +1 -0
  185. package/vue-ccui.es.js +18989 -0
  186. package/vue-ccui.umd.js +1 -0
  187. package/watermark/ccui-cli.css +2 -0
  188. package/watermark/index.es.js +179 -0
  189. package/watermark/index.umd.js +1 -0
@@ -0,0 +1,2447 @@
1
+ import * as e from "vue";
2
+ import { Fragment as t, Teleport as n, Transition as r, computed as i, createTextVNode as a, createVNode as o, defineComponent as s, h as c, inject as l, nextTick as u, onMounted as d, onUnmounted as f, ref as p, shallowRef as m, watch as h } from "vue";
3
+ import { autoUpdate as g, computePosition as _, flip as v, offset as y, shift as b } from "@floating-ui/dom";
4
+ //#region \0rolldown/runtime.js
5
+ var x = Object.create, S = Object.defineProperty, C = Object.getOwnPropertyDescriptor, w = Object.getOwnPropertyNames, T = Object.getPrototypeOf, E = Object.prototype.hasOwnProperty, D = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ee = (e, t) => {
6
+ let n = {};
7
+ for (var r in e) S(n, r, {
8
+ get: e[r],
9
+ enumerable: !0
10
+ });
11
+ return t || S(n, Symbol.toStringTag, { value: "Module" }), n;
12
+ }, O = (e, t, n, r) => {
13
+ if (t && typeof t == "object" || typeof t == "function") for (var i = w(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !E.call(e, s) && s !== n && S(e, s, {
14
+ get: ((e) => t[e]).bind(null, s),
15
+ enumerable: !(r = C(t, s)) || r.enumerable
16
+ });
17
+ return e;
18
+ }, k = (e, t, n) => (O(e, t, "default"), n && O(n, t, "default")), A = (e, t, n) => (n = e == null ? {} : x(T(e)), O(t || !e || !e.__esModule ? S(n, "default", {
19
+ value: e,
20
+ enumerable: !0
21
+ }) : n, e)), j = /* @__PURE__ */ A((/* @__PURE__ */ D(((e, t) => {
22
+ (function(n, r) {
23
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
24
+ })(e, (function() {
25
+ var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
26
+ name: "en",
27
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
28
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
29
+ ordinal: function(e) {
30
+ var t = [
31
+ "th",
32
+ "st",
33
+ "nd",
34
+ "rd"
35
+ ], n = e % 100;
36
+ return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
37
+ }
38
+ }, _ = function(e, t, n) {
39
+ var r = String(e);
40
+ return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
41
+ }, v = {
42
+ s: _,
43
+ z: function(e) {
44
+ var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
45
+ return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
46
+ },
47
+ m: function e(t, n) {
48
+ if (t.date() < n.date()) return -e(n, t);
49
+ var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
50
+ return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
51
+ },
52
+ a: function(e) {
53
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
54
+ },
55
+ p: function(e) {
56
+ return {
57
+ M: l,
58
+ y: d,
59
+ w: c,
60
+ d: s,
61
+ D: f,
62
+ h: o,
63
+ m: a,
64
+ s: i,
65
+ ms: r,
66
+ Q: u
67
+ }[e] || String(e || "").toLowerCase().replace(/s$/, "");
68
+ },
69
+ u: function(e) {
70
+ return e === void 0;
71
+ }
72
+ }, y = "en", b = {};
73
+ b[y] = g;
74
+ var x = "$isDayjsObject", S = function(e) {
75
+ return e instanceof E || !(!e || !e[x]);
76
+ }, C = function e(t, n, r) {
77
+ var i;
78
+ if (!t) return y;
79
+ if (typeof t == "string") {
80
+ var a = t.toLowerCase();
81
+ b[a] && (i = a), n && (b[a] = n, i = a);
82
+ var o = t.split("-");
83
+ if (!i && o.length > 1) return e(o[0]);
84
+ } else {
85
+ var s = t.name;
86
+ b[s] = t, i = s;
87
+ }
88
+ return !r && i && (y = i), i || !r && y;
89
+ }, w = function(e, t) {
90
+ if (S(e)) return e.clone();
91
+ var n = typeof t == "object" ? t : {};
92
+ return n.date = e, n.args = arguments, new E(n);
93
+ }, T = v;
94
+ T.l = C, T.i = S, T.w = function(e, t) {
95
+ return w(e, {
96
+ locale: t.$L,
97
+ utc: t.$u,
98
+ x: t.$x,
99
+ $offset: t.$offset
100
+ });
101
+ };
102
+ var E = function() {
103
+ function g(e) {
104
+ this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
105
+ }
106
+ var _ = g.prototype;
107
+ return _.parse = function(e) {
108
+ this.$d = function(e) {
109
+ var t = e.date, n = e.utc;
110
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
111
+ if (T.u(t)) return /* @__PURE__ */ new Date();
112
+ if (t instanceof Date) return new Date(t);
113
+ if (typeof t == "string" && !/Z$/i.test(t)) {
114
+ var r = t.match(m);
115
+ if (r) {
116
+ var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
117
+ return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
118
+ }
119
+ }
120
+ return new Date(t);
121
+ }(e), this.init();
122
+ }, _.init = function() {
123
+ var e = this.$d;
124
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
125
+ }, _.$utils = function() {
126
+ return T;
127
+ }, _.isValid = function() {
128
+ return this.$d.toString() !== p;
129
+ }, _.isSame = function(e, t) {
130
+ var n = w(e);
131
+ return this.startOf(t) <= n && n <= this.endOf(t);
132
+ }, _.isAfter = function(e, t) {
133
+ return w(e) < this.startOf(t);
134
+ }, _.isBefore = function(e, t) {
135
+ return this.endOf(t) < w(e);
136
+ }, _.$g = function(e, t, n) {
137
+ return T.u(e) ? this[t] : this.set(n, e);
138
+ }, _.unix = function() {
139
+ return Math.floor(this.valueOf() / 1e3);
140
+ }, _.valueOf = function() {
141
+ return this.$d.getTime();
142
+ }, _.startOf = function(e, t) {
143
+ var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
144
+ var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
145
+ return r ? i : i.endOf(s);
146
+ }, m = function(e, t) {
147
+ return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
148
+ 0,
149
+ 0,
150
+ 0,
151
+ 0
152
+ ] : [
153
+ 23,
154
+ 59,
155
+ 59,
156
+ 999
157
+ ]).slice(t)), n);
158
+ }, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
159
+ switch (u) {
160
+ case d: return r ? p(1, 0) : p(31, 11);
161
+ case l: return r ? p(1, g) : p(0, g + 1);
162
+ case c:
163
+ var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
164
+ return p(r ? _ - b : _ + (6 - b), g);
165
+ case s:
166
+ case f: return m(v + "Hours", 0);
167
+ case o: return m(v + "Minutes", 1);
168
+ case a: return m(v + "Seconds", 2);
169
+ case i: return m(v + "Milliseconds", 3);
170
+ default: return this.clone();
171
+ }
172
+ }, _.endOf = function(e) {
173
+ return this.startOf(e, !1);
174
+ }, _.$set = function(e, t) {
175
+ var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
176
+ if (c === l || c === d) {
177
+ var h = this.clone().set(f, 1);
178
+ h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
179
+ } else p && this.$d[p](m);
180
+ return this.init(), this;
181
+ }, _.set = function(e, t) {
182
+ return this.clone().$set(e, t);
183
+ }, _.get = function(e) {
184
+ return this[T.p(e)]();
185
+ }, _.add = function(r, u) {
186
+ var f, p = this;
187
+ r = Number(r);
188
+ var m = T.p(u), h = function(e) {
189
+ var t = w(p);
190
+ return T.w(t.date(t.date() + Math.round(e * r)), p);
191
+ };
192
+ if (m === l) return this.set(l, this.$M + r);
193
+ if (m === d) return this.set(d, this.$y + r);
194
+ if (m === s) return h(1);
195
+ if (m === c) return h(7);
196
+ var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
197
+ return T.w(_, this);
198
+ }, _.subtract = function(e, t) {
199
+ return this.add(-1 * e, t);
200
+ }, _.format = function(e) {
201
+ var t = this, n = this.$locale();
202
+ if (!this.isValid()) return n.invalidDate || p;
203
+ var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
204
+ return e && (e[n] || e(t, r)) || i[n].slice(0, a);
205
+ }, f = function(e) {
206
+ return T.s(a % 12 || 12, e, "0");
207
+ }, m = u || function(e, t, n) {
208
+ var r = e < 12 ? "AM" : "PM";
209
+ return n ? r.toLowerCase() : r;
210
+ };
211
+ return r.replace(h, (function(e, r) {
212
+ return r || function(e) {
213
+ switch (e) {
214
+ case "YY": return String(t.$y).slice(-2);
215
+ case "YYYY": return T.s(t.$y, 4, "0");
216
+ case "M": return s + 1;
217
+ case "MM": return T.s(s + 1, 2, "0");
218
+ case "MMM": return d(n.monthsShort, s, l, 3);
219
+ case "MMMM": return d(l, s);
220
+ case "D": return t.$D;
221
+ case "DD": return T.s(t.$D, 2, "0");
222
+ case "d": return String(t.$W);
223
+ case "dd": return d(n.weekdaysMin, t.$W, c, 2);
224
+ case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
225
+ case "dddd": return c[t.$W];
226
+ case "H": return String(a);
227
+ case "HH": return T.s(a, 2, "0");
228
+ case "h": return f(1);
229
+ case "hh": return f(2);
230
+ case "a": return m(a, o, !0);
231
+ case "A": return m(a, o, !1);
232
+ case "m": return String(o);
233
+ case "mm": return T.s(o, 2, "0");
234
+ case "s": return String(t.$s);
235
+ case "ss": return T.s(t.$s, 2, "0");
236
+ case "SSS": return T.s(t.$ms, 3, "0");
237
+ case "Z": return i;
238
+ }
239
+ return null;
240
+ }(e) || i.replace(":", "");
241
+ }));
242
+ }, _.utcOffset = function() {
243
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
244
+ }, _.diff = function(r, f, p) {
245
+ var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
246
+ return T.m(h, _);
247
+ };
248
+ switch (g) {
249
+ case d:
250
+ m = b() / 12;
251
+ break;
252
+ case l:
253
+ m = b();
254
+ break;
255
+ case u:
256
+ m = b() / 3;
257
+ break;
258
+ case c:
259
+ m = (y - v) / 6048e5;
260
+ break;
261
+ case s:
262
+ m = (y - v) / 864e5;
263
+ break;
264
+ case o:
265
+ m = y / n;
266
+ break;
267
+ case a:
268
+ m = y / t;
269
+ break;
270
+ case i:
271
+ m = y / e;
272
+ break;
273
+ default: m = y;
274
+ }
275
+ return p ? m : T.a(m);
276
+ }, _.daysInMonth = function() {
277
+ return this.endOf(l).$D;
278
+ }, _.$locale = function() {
279
+ return b[this.$L];
280
+ }, _.locale = function(e, t) {
281
+ if (!e) return this.$L;
282
+ var n = this.clone(), r = C(e, t, !0);
283
+ return r && (n.$L = r), n;
284
+ }, _.clone = function() {
285
+ return T.w(this.$d, this);
286
+ }, _.toDate = function() {
287
+ return new Date(this.valueOf());
288
+ }, _.toJSON = function() {
289
+ return this.isValid() ? this.toISOString() : null;
290
+ }, _.toISOString = function() {
291
+ return this.$d.toISOString();
292
+ }, _.toString = function() {
293
+ return this.$d.toUTCString();
294
+ }, g;
295
+ }(), D = E.prototype;
296
+ return w.prototype = D, [
297
+ ["$ms", r],
298
+ ["$s", i],
299
+ ["$m", a],
300
+ ["$H", o],
301
+ ["$W", s],
302
+ ["$M", l],
303
+ ["$y", d],
304
+ ["$D", f]
305
+ ].forEach((function(e) {
306
+ D[e[1]] = function(t) {
307
+ return this.$g(t, e[0], e[1]);
308
+ };
309
+ })), w.extend = function(e, t) {
310
+ return e.$i ||= (e(t, E, w), !0), w;
311
+ }, w.locale = C, w.isDayjs = S, w.unix = function(e) {
312
+ return w(1e3 * e);
313
+ }, w.en = b[y], w.Ls = b, w.p = {}, w;
314
+ }));
315
+ })))(), 1);
316
+ function te() {
317
+ return typeof window < "u";
318
+ }
319
+ function ne(e) {
320
+ return N(e) ? (e.nodeName || "").toLowerCase() : "#document";
321
+ }
322
+ function M(e) {
323
+ var t;
324
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
325
+ }
326
+ function N(e) {
327
+ return te() ? e instanceof Node || e instanceof M(e).Node : !1;
328
+ }
329
+ //#endregion
330
+ //#region ../../node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.33_typescript@5.9.3_/node_modules/vue-demi/lib/index.mjs
331
+ var P = /* @__PURE__ */ ee({
332
+ Vue: () => e,
333
+ Vue2: () => void 0,
334
+ del: () => re,
335
+ install: () => I,
336
+ isVue2: () => !1,
337
+ isVue3: () => !0,
338
+ set: () => L
339
+ });
340
+ import * as F from "vue";
341
+ k(P, F);
342
+ function I() {}
343
+ function L(e, t, n) {
344
+ return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
345
+ }
346
+ function re(e, t) {
347
+ if (Array.isArray(e)) {
348
+ e.splice(t, 1);
349
+ return;
350
+ }
351
+ delete e[t];
352
+ }
353
+ //#endregion
354
+ //#region ../../node_modules/.pnpm/@floating-ui+vue@1.1.9_vue@3.5.33_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
355
+ function ie(e) {
356
+ return typeof e == "object" && !!e && "$el" in e;
357
+ }
358
+ function ae(e) {
359
+ if (ie(e)) {
360
+ let t = e.$el;
361
+ return N(t) && ne(t) === "#comment" ? null : t;
362
+ }
363
+ return e;
364
+ }
365
+ function R(e) {
366
+ return typeof e == "function" ? e() : (0, P.unref)(e);
367
+ }
368
+ function oe(e) {
369
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
370
+ }
371
+ function z(e, t) {
372
+ let n = oe(e);
373
+ return Math.round(t * n) / n;
374
+ }
375
+ function se(e, t, n) {
376
+ n === void 0 && (n = {});
377
+ let r = n.whileElementsMounted, i = (0, P.computed)(() => R(n.open) ?? !0), a = (0, P.computed)(() => R(n.middleware)), o = (0, P.computed)(() => R(n.placement) ?? "bottom"), s = (0, P.computed)(() => R(n.strategy) ?? "absolute"), c = (0, P.computed)(() => R(n.transform) ?? !0), l = (0, P.computed)(() => ae(e.value)), u = (0, P.computed)(() => ae(t.value)), d = (0, P.ref)(0), f = (0, P.ref)(0), p = (0, P.ref)(s.value), m = (0, P.ref)(o.value), h = (0, P.shallowRef)({}), g = (0, P.ref)(!1), v = (0, P.computed)(() => {
378
+ let e = {
379
+ position: p.value,
380
+ left: "0",
381
+ top: "0"
382
+ };
383
+ if (!u.value) return e;
384
+ let t = z(u.value, d.value), n = z(u.value, f.value);
385
+ return c.value ? {
386
+ ...e,
387
+ transform: "translate(" + t + "px, " + n + "px)",
388
+ ...oe(u.value) >= 1.5 && { willChange: "transform" }
389
+ } : {
390
+ position: p.value,
391
+ left: t + "px",
392
+ top: n + "px"
393
+ };
394
+ }), y;
395
+ function b() {
396
+ if (l.value == null || u.value == null) return;
397
+ let e = i.value;
398
+ _(l.value, u.value, {
399
+ middleware: a.value,
400
+ placement: o.value,
401
+ strategy: s.value
402
+ }).then((t) => {
403
+ d.value = t.x, f.value = t.y, p.value = t.strategy, m.value = t.placement, h.value = t.middlewareData, g.value = e !== !1;
404
+ });
405
+ }
406
+ function x() {
407
+ typeof y == "function" && (y(), y = void 0);
408
+ }
409
+ function S() {
410
+ if (x(), r === void 0) {
411
+ b();
412
+ return;
413
+ }
414
+ if (l.value != null && u.value != null) {
415
+ y = r(l.value, u.value, b);
416
+ return;
417
+ }
418
+ }
419
+ function C() {
420
+ i.value || (g.value = !1);
421
+ }
422
+ return (0, P.watch)([
423
+ a,
424
+ o,
425
+ s,
426
+ i
427
+ ], b, { flush: "sync" }), (0, P.watch)([l, u], S, { flush: "sync" }), (0, P.watch)(i, C, { flush: "sync" }), (0, P.getCurrentScope)() && (0, P.onScopeDispose)(x), {
428
+ x: (0, P.shallowReadonly)(d),
429
+ y: (0, P.shallowReadonly)(f),
430
+ strategy: (0, P.shallowReadonly)(p),
431
+ placement: (0, P.shallowReadonly)(m),
432
+ middlewareData: (0, P.shallowReadonly)(h),
433
+ isPositioned: (0, P.shallowReadonly)(g),
434
+ floatingStyles: v,
435
+ update: b
436
+ };
437
+ }
438
+ //#endregion
439
+ //#region ../ccui/ui/shared/hooks/use-namespace.ts
440
+ function B(e, t, n) {
441
+ let r = e;
442
+ return t && (r += `__${t}`), n && (r += `--${n}`), r;
443
+ }
444
+ function ce(e, t = !1) {
445
+ let n = t ? `.ccui-${e}` : `ccui-${e}`;
446
+ return {
447
+ b: () => B(n),
448
+ e: (e) => e ? B(n, e) : "",
449
+ m: (e) => e ? B(n, "", e) : "",
450
+ em: (e, t) => e && t ? B(n, e, t) : "",
451
+ is: (e) => `is-${e}`
452
+ };
453
+ }
454
+ //#endregion
455
+ //#region ../ccui/ui/locale/zh-CN.ts
456
+ var le = {
457
+ locale: "zh-CN",
458
+ Modal: {
459
+ okText: "确 定",
460
+ cancelText: "取 消",
461
+ justOkText: "知道了"
462
+ },
463
+ Popconfirm: {
464
+ okText: "确 定",
465
+ cancelText: "取 消"
466
+ },
467
+ Empty: { description: "暂无数据" },
468
+ AutoComplete: { notFoundContent: "暂无数据" },
469
+ Mentions: { notFoundContent: "暂无数据" },
470
+ Cascader: { notFoundContent: "暂无数据" },
471
+ TreeSelect: { notFoundContent: "暂无数据" },
472
+ Select: { notFoundContent: "暂无数据" },
473
+ Pagination: {
474
+ itemsPerPage: "条/页",
475
+ jumpTo: "跳至",
476
+ page: "页",
477
+ prevPage: "上一页",
478
+ nextPage: "下一页",
479
+ total: "共 {total} 条"
480
+ },
481
+ Image: {
482
+ loading: "加载中",
483
+ error: "加载失败"
484
+ },
485
+ DatePicker: {
486
+ placeholder: "请选择日期",
487
+ rangePlaceholder: ["开始日期", "结束日期"],
488
+ timePlaceholder: "请选择时间",
489
+ weekdaysShort: [
490
+ "日",
491
+ "一",
492
+ "二",
493
+ "三",
494
+ "四",
495
+ "五",
496
+ "六"
497
+ ],
498
+ panelLabelFormat: "YYYY 年 M 月",
499
+ monthNamesShort: [
500
+ "1 月",
501
+ "2 月",
502
+ "3 月",
503
+ "4 月",
504
+ "5 月",
505
+ "6 月",
506
+ "7 月",
507
+ "8 月",
508
+ "9 月",
509
+ "10 月",
510
+ "11 月",
511
+ "12 月"
512
+ ],
513
+ quarterNames: [
514
+ "一季度",
515
+ "二季度",
516
+ "三季度",
517
+ "四季度"
518
+ ],
519
+ weekFormat: "{weekYear} 年第 {weekNumber} 周",
520
+ weekHeader: "周",
521
+ now: "此刻",
522
+ ok: "确定",
523
+ prevYearLabel: "前一年",
524
+ prevMonthLabel: "上个月",
525
+ nextYearLabel: "后一年",
526
+ nextMonthLabel: "下个月",
527
+ clearLabel: "清除"
528
+ }
529
+ }, V = Symbol("ccui-config");
530
+ //#endregion
531
+ //#region ../ccui/ui/config-provider/src/config-provider.tsx
532
+ function ue() {
533
+ return l(V, {
534
+ prefixCls: "ccui",
535
+ componentSize: "middle",
536
+ locale: le,
537
+ direction: "ltr",
538
+ theme: void 0,
539
+ iconPrefixCls: "ccui-icon"
540
+ });
541
+ }
542
+ //#endregion
543
+ //#region ../ccui/ui/form/src/form-types.ts
544
+ var de = Symbol("ccuiFormItem"), H = /^[a-z0-9]+(-[a-z0-9]+)*$/, U = (e, t, n, r = "") => {
545
+ let i = e.split(":");
546
+ if (e.slice(0, 1) === "@") {
547
+ if (i.length < 2 || i.length > 3) return null;
548
+ r = i.shift().slice(1);
549
+ }
550
+ if (i.length > 3 || !i.length) return null;
551
+ if (i.length > 1) {
552
+ let e = i.pop(), n = i.pop(), a = {
553
+ provider: i.length > 0 ? i[0] : r,
554
+ prefix: n,
555
+ name: e
556
+ };
557
+ return t && !W(a) ? null : a;
558
+ }
559
+ let a = i[0], o = a.split("-");
560
+ if (o.length > 1) {
561
+ let e = {
562
+ provider: r,
563
+ prefix: o.shift(),
564
+ name: o.join("-")
565
+ };
566
+ return t && !W(e) ? null : e;
567
+ }
568
+ if (n && r === "") {
569
+ let e = {
570
+ provider: r,
571
+ prefix: "",
572
+ name: a
573
+ };
574
+ return t && !W(e, n) ? null : e;
575
+ }
576
+ return null;
577
+ }, W = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
578
+ function fe(e, t) {
579
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
580
+ function a(e) {
581
+ if (n[e]) return i[e] = [];
582
+ if (!(e in i)) {
583
+ i[e] = null;
584
+ let t = r[e] && r[e].parent, n = t && a(t);
585
+ n && (i[e] = [t].concat(n));
586
+ }
587
+ return i[e];
588
+ }
589
+ return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
590
+ }
591
+ var G = Object.freeze({
592
+ left: 0,
593
+ top: 0,
594
+ width: 16,
595
+ height: 16
596
+ }), K = Object.freeze({
597
+ rotate: 0,
598
+ vFlip: !1,
599
+ hFlip: !1
600
+ }), q = Object.freeze({
601
+ ...G,
602
+ ...K
603
+ }), pe = Object.freeze({
604
+ ...q,
605
+ body: "",
606
+ hidden: !1
607
+ });
608
+ function me(e, t) {
609
+ let n = {};
610
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
611
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
612
+ return r && (n.rotate = r), n;
613
+ }
614
+ function he(e, t) {
615
+ let n = me(e, t);
616
+ for (let r in pe) r in K ? r in e && !(r in n) && (n[r] = K[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
617
+ return n;
618
+ }
619
+ function ge(e, t, n) {
620
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
621
+ function o(e) {
622
+ a = he(r[e] || i[e], a);
623
+ }
624
+ return o(t), n.forEach(o), he(e, a);
625
+ }
626
+ function _e(e, t) {
627
+ let n = [];
628
+ if (typeof e != "object" || typeof e.icons != "object") return n;
629
+ e.not_found instanceof Array && e.not_found.forEach((e) => {
630
+ t(e, null), n.push(e);
631
+ });
632
+ let r = fe(e);
633
+ for (let i in r) {
634
+ let a = r[i];
635
+ a && (t(i, ge(e, i, a)), n.push(i));
636
+ }
637
+ return n;
638
+ }
639
+ var ve = {
640
+ provider: "",
641
+ aliases: {},
642
+ not_found: {},
643
+ ...G
644
+ };
645
+ function ye(e, t) {
646
+ for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
647
+ return !0;
648
+ }
649
+ function be(e) {
650
+ if (typeof e != "object" || !e) return null;
651
+ let t = e;
652
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ye(e, ve)) return null;
653
+ let n = t.icons;
654
+ for (let e in n) {
655
+ let t = n[e];
656
+ if (!e || typeof t.body != "string" || !ye(t, pe)) return null;
657
+ }
658
+ let r = t.aliases || Object.create(null);
659
+ for (let e in r) {
660
+ let t = r[e], i = t.parent;
661
+ if (!e || typeof i != "string" || !n[i] && !r[i] || !ye(t, pe)) return null;
662
+ }
663
+ return t;
664
+ }
665
+ var xe = Object.create(null);
666
+ function Se(e, t) {
667
+ return {
668
+ provider: e,
669
+ prefix: t,
670
+ icons: Object.create(null),
671
+ missing: /* @__PURE__ */ new Set()
672
+ };
673
+ }
674
+ function J(e, t) {
675
+ let n = xe[e] || (xe[e] = Object.create(null));
676
+ return n[t] || (n[t] = Se(e, t));
677
+ }
678
+ function Ce(e, t) {
679
+ return be(t) ? _e(t, (t, n) => {
680
+ n ? e.icons[t] = n : e.missing.add(t);
681
+ }) : [];
682
+ }
683
+ function we(e, t, n) {
684
+ try {
685
+ if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
686
+ } catch {}
687
+ return !1;
688
+ }
689
+ var Y = !1;
690
+ function Te(e) {
691
+ return typeof e == "boolean" && (Y = e), Y;
692
+ }
693
+ function Ee(e) {
694
+ let t = typeof e == "string" ? U(e, !0, Y) : e;
695
+ if (t) {
696
+ let e = J(t.provider, t.prefix), n = t.name;
697
+ return e.icons[n] || (e.missing.has(n) ? null : void 0);
698
+ }
699
+ }
700
+ function De(e, t) {
701
+ let n = U(e, !0, Y);
702
+ if (!n) return !1;
703
+ let r = J(n.provider, n.prefix);
704
+ return t ? we(r, n.name, t) : (r.missing.add(n.name), !0);
705
+ }
706
+ function Oe(e, t) {
707
+ if (typeof e != "object") return !1;
708
+ if (typeof t != "string" && (t = e.provider || ""), Y && !t && !e.prefix) {
709
+ let t = !1;
710
+ return be(e) && (e.prefix = "", _e(e, (e, n) => {
711
+ De(e, n) && (t = !0);
712
+ })), t;
713
+ }
714
+ let n = e.prefix;
715
+ return W({
716
+ prefix: n,
717
+ name: "a"
718
+ }) ? !!Ce(J(t, n), e) : !1;
719
+ }
720
+ var ke = Object.freeze({
721
+ width: null,
722
+ height: null
723
+ }), Ae = Object.freeze({
724
+ ...ke,
725
+ ...K
726
+ }), je = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Me = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
727
+ function X(e, t, n) {
728
+ if (t === 1) return e;
729
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
730
+ if (typeof e != "string") return e;
731
+ let r = e.split(je);
732
+ if (r === null || !r.length) return e;
733
+ let i = [], a = r.shift(), o = Me.test(a);
734
+ for (;;) {
735
+ if (o) {
736
+ let e = parseFloat(a);
737
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
738
+ } else i.push(a);
739
+ if (a = r.shift(), a === void 0) return i.join("");
740
+ o = !o;
741
+ }
742
+ }
743
+ function Ne(e, t = "defs") {
744
+ let n = "", r = e.indexOf("<" + t);
745
+ for (; r >= 0;) {
746
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
747
+ if (i === -1 || a === -1) break;
748
+ let o = e.indexOf(">", a);
749
+ if (o === -1) break;
750
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
751
+ }
752
+ return {
753
+ defs: n,
754
+ content: e
755
+ };
756
+ }
757
+ function Pe(e, t) {
758
+ return e ? "<defs>" + e + "</defs>" + t : t;
759
+ }
760
+ function Fe(e, t, n) {
761
+ let r = Ne(e);
762
+ return Pe(r.defs, t + r.content + n);
763
+ }
764
+ var Ie = (e) => e === "unset" || e === "undefined" || e === "none";
765
+ function Le(e, t) {
766
+ let n = {
767
+ ...q,
768
+ ...e
769
+ }, r = {
770
+ ...Ae,
771
+ ...t
772
+ }, i = {
773
+ left: n.left,
774
+ top: n.top,
775
+ width: n.width,
776
+ height: n.height
777
+ }, a = n.body;
778
+ [n, r].forEach((e) => {
779
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
780
+ n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
781
+ let s;
782
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
783
+ case 1:
784
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
785
+ break;
786
+ case 2:
787
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
788
+ break;
789
+ case 3:
790
+ s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
791
+ break;
792
+ }
793
+ o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = Fe(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
794
+ });
795
+ let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
796
+ o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = X(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? X(u, l / c) : s === "auto" ? l : s);
797
+ let f = {}, p = (e, t) => {
798
+ Ie(t) || (f[e] = t.toString());
799
+ };
800
+ p("width", u), p("height", d);
801
+ let m = [
802
+ i.left,
803
+ i.top,
804
+ c,
805
+ l
806
+ ];
807
+ return f.viewBox = m.join(" "), {
808
+ attributes: f,
809
+ viewBox: m,
810
+ body: a
811
+ };
812
+ }
813
+ var Re = /\sid="(\S+)"/g, ze = /* @__PURE__ */ new Map();
814
+ function Be(e) {
815
+ e = e.replace(/[0-9]+$/, "") || "a";
816
+ let t = ze.get(e) || 0;
817
+ return ze.set(e, t + 1), t ? `${e}${t}` : e;
818
+ }
819
+ function Ve(e) {
820
+ let t = [], n;
821
+ for (; n = Re.exec(e);) t.push(n[1]);
822
+ if (!t.length) return e;
823
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
824
+ return t.forEach((t) => {
825
+ let n = Be(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
826
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
827
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
828
+ }
829
+ var He = Object.create(null);
830
+ function Ue(e, t) {
831
+ He[e] = t;
832
+ }
833
+ function We(e) {
834
+ return He[e] || He[""];
835
+ }
836
+ function Ge(e) {
837
+ let t;
838
+ if (typeof e.resources == "string") t = [e.resources];
839
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
840
+ return {
841
+ resources: t,
842
+ path: e.path || "/",
843
+ maxURL: e.maxURL || 500,
844
+ rotate: e.rotate || 750,
845
+ timeout: e.timeout || 5e3,
846
+ random: e.random === !0,
847
+ index: e.index || 0,
848
+ dataAfterTimeout: e.dataAfterTimeout !== !1
849
+ };
850
+ }
851
+ for (var Ke = Object.create(null), qe = ["https://api.simplesvg.com", "https://api.unisvg.com"], Je = []; qe.length > 0;) qe.length === 1 || Math.random() > .5 ? Je.push(qe.shift()) : Je.push(qe.pop());
852
+ Ke[""] = Ge({ resources: ["https://api.iconify.design"].concat(Je) });
853
+ function Ye(e, t) {
854
+ let n = Ge(t);
855
+ return n === null ? !1 : (Ke[e] = n, !0);
856
+ }
857
+ function Xe(e) {
858
+ return Ke[e];
859
+ }
860
+ var Ze = (() => {
861
+ let e;
862
+ try {
863
+ if (e = fetch, typeof e == "function") return e;
864
+ } catch {}
865
+ })();
866
+ function Qe(e, t) {
867
+ let n = Xe(e);
868
+ if (!n) return 0;
869
+ let r;
870
+ if (!n.maxURL) r = 0;
871
+ else {
872
+ let e = 0;
873
+ n.resources.forEach((t) => {
874
+ e = Math.max(e, t.length);
875
+ });
876
+ let i = t + ".json?icons=";
877
+ r = n.maxURL - e - n.path.length - i.length;
878
+ }
879
+ return r;
880
+ }
881
+ function $e(e) {
882
+ return e === 404;
883
+ }
884
+ var et = (e, t, n) => {
885
+ let r = [], i = Qe(e, t), a = "icons", o = {
886
+ type: a,
887
+ provider: e,
888
+ prefix: t,
889
+ icons: []
890
+ }, s = 0;
891
+ return n.forEach((n, c) => {
892
+ s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
893
+ type: a,
894
+ provider: e,
895
+ prefix: t,
896
+ icons: []
897
+ }, s = n.length), o.icons.push(n);
898
+ }), r.push(o), r;
899
+ };
900
+ function tt(e) {
901
+ if (typeof e == "string") {
902
+ let t = Xe(e);
903
+ if (t) return t.path;
904
+ }
905
+ return "/";
906
+ }
907
+ var nt = {
908
+ prepare: et,
909
+ send: (e, t, n) => {
910
+ if (!Ze) {
911
+ n("abort", 424);
912
+ return;
913
+ }
914
+ let r = tt(t.provider);
915
+ switch (t.type) {
916
+ case "icons": {
917
+ let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
918
+ r += e + ".json?" + i.toString();
919
+ break;
920
+ }
921
+ case "custom": {
922
+ let e = t.uri;
923
+ r += e.slice(0, 1) === "/" ? e.slice(1) : e;
924
+ break;
925
+ }
926
+ default:
927
+ n("abort", 400);
928
+ return;
929
+ }
930
+ let i = 503;
931
+ Ze(e + r).then((e) => {
932
+ let t = e.status;
933
+ if (t !== 200) {
934
+ setTimeout(() => {
935
+ n($e(t) ? "abort" : "next", t);
936
+ });
937
+ return;
938
+ }
939
+ return i = 501, e.json();
940
+ }).then((e) => {
941
+ if (typeof e != "object" || !e) {
942
+ setTimeout(() => {
943
+ e === 404 ? n("abort", e) : n("next", i);
944
+ });
945
+ return;
946
+ }
947
+ setTimeout(() => {
948
+ n("success", e);
949
+ });
950
+ }).catch(() => {
951
+ n("next", i);
952
+ });
953
+ }
954
+ };
955
+ function rt(e, t) {
956
+ e.forEach((e) => {
957
+ let n = e.loaderCallbacks;
958
+ n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
959
+ });
960
+ }
961
+ function it(e) {
962
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
963
+ e.pendingCallbacksFlag = !1;
964
+ let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
965
+ if (!t.length) return;
966
+ let n = !1, r = e.provider, i = e.prefix;
967
+ t.forEach((t) => {
968
+ let a = t.icons, o = a.pending.length;
969
+ a.pending = a.pending.filter((t) => {
970
+ if (t.prefix !== i) return !0;
971
+ let o = t.name;
972
+ if (e.icons[o]) a.loaded.push({
973
+ provider: r,
974
+ prefix: i,
975
+ name: o
976
+ });
977
+ else if (e.missing.has(o)) a.missing.push({
978
+ provider: r,
979
+ prefix: i,
980
+ name: o
981
+ });
982
+ else return n = !0, !0;
983
+ return !1;
984
+ }), a.pending.length !== o && (n || rt([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
985
+ });
986
+ }));
987
+ }
988
+ var at = 0;
989
+ function ot(e, t, n) {
990
+ let r = at++, i = rt.bind(null, n, r);
991
+ if (!t.pending.length) return i;
992
+ let a = {
993
+ id: r,
994
+ icons: t,
995
+ callback: e,
996
+ abort: i
997
+ };
998
+ return n.forEach((e) => {
999
+ (e.loaderCallbacks ||= []).push(a);
1000
+ }), i;
1001
+ }
1002
+ function st(e) {
1003
+ let t = {
1004
+ loaded: [],
1005
+ missing: [],
1006
+ pending: []
1007
+ }, n = Object.create(null);
1008
+ e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
1009
+ let r = {
1010
+ provider: "",
1011
+ prefix: "",
1012
+ name: ""
1013
+ };
1014
+ return e.forEach((e) => {
1015
+ if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
1016
+ r = e;
1017
+ let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = J(i, a)), l;
1018
+ l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
1019
+ let u = {
1020
+ provider: i,
1021
+ prefix: a,
1022
+ name: o
1023
+ };
1024
+ l.push(u);
1025
+ }), t;
1026
+ }
1027
+ function ct(e, t = !0, n = !1) {
1028
+ let r = [];
1029
+ return e.forEach((e) => {
1030
+ let i = typeof e == "string" ? U(e, t, n) : e;
1031
+ i && r.push(i);
1032
+ }), r;
1033
+ }
1034
+ var lt = {
1035
+ resources: [],
1036
+ index: 0,
1037
+ timeout: 2e3,
1038
+ rotate: 750,
1039
+ random: !1,
1040
+ dataAfterTimeout: !1
1041
+ };
1042
+ function ut(e, t, n, r) {
1043
+ let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
1044
+ if (e.random) {
1045
+ let t = e.resources.slice(0);
1046
+ for (o = []; t.length > 1;) {
1047
+ let e = Math.floor(Math.random() * t.length);
1048
+ o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
1049
+ }
1050
+ o = o.concat(t);
1051
+ } else o = e.resources.slice(a).concat(e.resources.slice(0, a));
1052
+ let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
1053
+ typeof r == "function" && p.push(r);
1054
+ function m() {
1055
+ d &&= (clearTimeout(d), null);
1056
+ }
1057
+ function h() {
1058
+ c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
1059
+ e.status === "pending" && (e.status = "aborted");
1060
+ }), f = [];
1061
+ }
1062
+ function g(e, t) {
1063
+ t && (p = []), typeof e == "function" && p.push(e);
1064
+ }
1065
+ function _() {
1066
+ return {
1067
+ startTime: s,
1068
+ payload: t,
1069
+ status: c,
1070
+ queriesSent: l,
1071
+ queriesPending: f.length,
1072
+ subscribe: g,
1073
+ abort: h
1074
+ };
1075
+ }
1076
+ function v() {
1077
+ c = "failed", p.forEach((e) => {
1078
+ e(void 0, u);
1079
+ });
1080
+ }
1081
+ function y() {
1082
+ f.forEach((e) => {
1083
+ e.status === "pending" && (e.status = "aborted");
1084
+ }), f = [];
1085
+ }
1086
+ function b(t, n, r) {
1087
+ let i = n !== "success";
1088
+ switch (f = f.filter((e) => e !== t), c) {
1089
+ case "pending": break;
1090
+ case "failed":
1091
+ if (i || !e.dataAfterTimeout) return;
1092
+ break;
1093
+ default: return;
1094
+ }
1095
+ if (n === "abort") {
1096
+ u = r, v();
1097
+ return;
1098
+ }
1099
+ if (i) {
1100
+ u = r, f.length || (o.length ? x() : v());
1101
+ return;
1102
+ }
1103
+ if (m(), y(), !e.random) {
1104
+ let n = e.resources.indexOf(t.resource);
1105
+ n !== -1 && n !== e.index && (e.index = n);
1106
+ }
1107
+ c = "completed", p.forEach((e) => {
1108
+ e(r);
1109
+ });
1110
+ }
1111
+ function x() {
1112
+ if (c !== "pending") return;
1113
+ m();
1114
+ let r = o.shift();
1115
+ if (r === void 0) {
1116
+ if (f.length) {
1117
+ d = setTimeout(() => {
1118
+ m(), c === "pending" && (y(), v());
1119
+ }, e.timeout);
1120
+ return;
1121
+ }
1122
+ v();
1123
+ return;
1124
+ }
1125
+ let i = {
1126
+ status: "pending",
1127
+ resource: r,
1128
+ callback: (e, t) => {
1129
+ b(i, e, t);
1130
+ }
1131
+ };
1132
+ f.push(i), l++, d = setTimeout(x, e.rotate), n(r, t, i.callback);
1133
+ }
1134
+ return setTimeout(x), _;
1135
+ }
1136
+ function dt(e) {
1137
+ let t = {
1138
+ ...lt,
1139
+ ...e
1140
+ }, n = [];
1141
+ function r() {
1142
+ n = n.filter((e) => e().status === "pending");
1143
+ }
1144
+ function i(e, i, a) {
1145
+ let o = ut(t, e, i, (e, t) => {
1146
+ r(), a && a(e, t);
1147
+ });
1148
+ return n.push(o), o;
1149
+ }
1150
+ function a(e) {
1151
+ return n.find((t) => e(t)) || null;
1152
+ }
1153
+ return {
1154
+ query: i,
1155
+ find: a,
1156
+ setIndex: (e) => {
1157
+ t.index = e;
1158
+ },
1159
+ getIndex: () => t.index,
1160
+ cleanup: r
1161
+ };
1162
+ }
1163
+ function ft() {}
1164
+ var pt = Object.create(null);
1165
+ function mt(e) {
1166
+ if (!pt[e]) {
1167
+ let t = Xe(e);
1168
+ if (!t) return;
1169
+ pt[e] = {
1170
+ config: t,
1171
+ redundancy: dt(t)
1172
+ };
1173
+ }
1174
+ return pt[e];
1175
+ }
1176
+ function ht(e, t, n) {
1177
+ let r, i;
1178
+ if (typeof e == "string") {
1179
+ let t = We(e);
1180
+ if (!t) return n(void 0, 424), ft;
1181
+ i = t.send;
1182
+ let a = mt(e);
1183
+ a && (r = a.redundancy);
1184
+ } else {
1185
+ let t = Ge(e);
1186
+ if (t) {
1187
+ r = dt(t);
1188
+ let n = We(e.resources ? e.resources[0] : "");
1189
+ n && (i = n.send);
1190
+ }
1191
+ }
1192
+ return !r || !i ? (n(void 0, 424), ft) : r.query(t, i, n)().abort;
1193
+ }
1194
+ function gt() {}
1195
+ function _t(e) {
1196
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1197
+ e.iconsLoaderFlag = !1, it(e);
1198
+ }));
1199
+ }
1200
+ function vt(e) {
1201
+ let t = [], n = [];
1202
+ return e.forEach((e) => {
1203
+ (e.match(H) ? t : n).push(e);
1204
+ }), {
1205
+ valid: t,
1206
+ invalid: n
1207
+ };
1208
+ }
1209
+ function Z(e, t, n) {
1210
+ function r() {
1211
+ let n = e.pendingIcons;
1212
+ t.forEach((t) => {
1213
+ n && n.delete(t), e.icons[t] || e.missing.add(t);
1214
+ });
1215
+ }
1216
+ if (n && typeof n == "object") try {
1217
+ if (!Ce(e, n).length) {
1218
+ r();
1219
+ return;
1220
+ }
1221
+ } catch (e) {
1222
+ console.error(e);
1223
+ }
1224
+ r(), _t(e);
1225
+ }
1226
+ function yt(e, t) {
1227
+ e instanceof Promise ? e.then((e) => {
1228
+ t(e);
1229
+ }).catch(() => {
1230
+ t(null);
1231
+ }) : t(e);
1232
+ }
1233
+ function bt(e, t) {
1234
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1235
+ e.iconsQueueFlag = !1;
1236
+ let { provider: t, prefix: n } = e, r = e.iconsToLoad;
1237
+ if (delete e.iconsToLoad, !r || !r.length) return;
1238
+ let i = e.loadIcon;
1239
+ if (e.loadIcons && (r.length > 1 || !i)) {
1240
+ yt(e.loadIcons(r, n, t), (t) => {
1241
+ Z(e, r, t);
1242
+ });
1243
+ return;
1244
+ }
1245
+ if (i) {
1246
+ r.forEach((r) => {
1247
+ yt(i(r, n, t), (t) => {
1248
+ Z(e, [r], t ? {
1249
+ prefix: n,
1250
+ icons: { [r]: t }
1251
+ } : null);
1252
+ });
1253
+ });
1254
+ return;
1255
+ }
1256
+ let { valid: a, invalid: o } = vt(r);
1257
+ if (o.length && Z(e, o, null), !a.length) return;
1258
+ let s = n.match(H) ? We(t) : null;
1259
+ if (!s) {
1260
+ Z(e, a, null);
1261
+ return;
1262
+ }
1263
+ s.prepare(t, n, a).forEach((n) => {
1264
+ ht(t, n, (t) => {
1265
+ Z(e, n.icons, t);
1266
+ });
1267
+ });
1268
+ }));
1269
+ }
1270
+ var xt = (e, t) => {
1271
+ let n = st(ct(e, !0, Te()));
1272
+ if (!n.pending.length) {
1273
+ let e = !0;
1274
+ return t && setTimeout(() => {
1275
+ e && t(n.loaded, n.missing, n.pending, gt);
1276
+ }), () => {
1277
+ e = !1;
1278
+ };
1279
+ }
1280
+ let r = Object.create(null), i = [], a, o;
1281
+ return n.pending.forEach((e) => {
1282
+ let { provider: t, prefix: n } = e;
1283
+ if (n === o && t === a) return;
1284
+ a = t, o = n, i.push(J(t, n));
1285
+ let s = r[t] || (r[t] = Object.create(null));
1286
+ s[n] || (s[n] = []);
1287
+ }), n.pending.forEach((e) => {
1288
+ let { provider: t, prefix: n, name: i } = e, a = J(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
1289
+ o.has(i) || (o.add(i), r[t][n].push(i));
1290
+ }), i.forEach((e) => {
1291
+ let t = r[e.provider][e.prefix];
1292
+ t.length && bt(e, t);
1293
+ }), t ? ot(t, n, i) : gt;
1294
+ };
1295
+ function St(e, t) {
1296
+ let n = { ...e };
1297
+ for (let e in t) {
1298
+ let r = t[e], i = typeof r;
1299
+ e in ke ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
1300
+ }
1301
+ return n;
1302
+ }
1303
+ var Ct = /[\s,]+/;
1304
+ function wt(e, t) {
1305
+ t.split(Ct).forEach((t) => {
1306
+ switch (t.trim()) {
1307
+ case "horizontal":
1308
+ e.hFlip = !0;
1309
+ break;
1310
+ case "vertical":
1311
+ e.vFlip = !0;
1312
+ break;
1313
+ }
1314
+ });
1315
+ }
1316
+ function Tt(e, t = 0) {
1317
+ let n = e.replace(/^-?[0-9.]*/, "");
1318
+ function r(e) {
1319
+ for (; e < 0;) e += 4;
1320
+ return e % 4;
1321
+ }
1322
+ if (n === "") {
1323
+ let t = parseInt(e);
1324
+ return isNaN(t) ? 0 : r(t);
1325
+ } else if (n !== e) {
1326
+ let t = 0;
1327
+ switch (n) {
1328
+ case "%":
1329
+ t = 25;
1330
+ break;
1331
+ case "deg": t = 90;
1332
+ }
1333
+ if (t) {
1334
+ let i = parseFloat(e.slice(0, e.length - n.length));
1335
+ return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
1336
+ }
1337
+ }
1338
+ return t;
1339
+ }
1340
+ function Et(e, t) {
1341
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
1342
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
1343
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
1344
+ }
1345
+ function Dt(e) {
1346
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1347
+ }
1348
+ function Ot(e) {
1349
+ return "data:image/svg+xml," + Dt(e);
1350
+ }
1351
+ function kt(e) {
1352
+ return "url(\"" + Ot(e) + "\")";
1353
+ }
1354
+ var At = {
1355
+ ...Ae,
1356
+ inline: !1
1357
+ }, jt = {
1358
+ xmlns: "http://www.w3.org/2000/svg",
1359
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1360
+ "aria-hidden": !0,
1361
+ role: "img"
1362
+ }, Mt = { display: "inline-block" }, Nt = { backgroundColor: "currentColor" }, Pt = { backgroundColor: "transparent" }, Ft = {
1363
+ Image: "var(--svg)",
1364
+ Repeat: "no-repeat",
1365
+ Size: "100% 100%"
1366
+ }, It = {
1367
+ webkitMask: Nt,
1368
+ mask: Nt,
1369
+ background: Pt
1370
+ };
1371
+ for (let e in It) {
1372
+ let t = It[e];
1373
+ for (let n in Ft) t[e + n] = Ft[n];
1374
+ }
1375
+ var Lt = {};
1376
+ ["horizontal", "vertical"].forEach((e) => {
1377
+ let t = e.slice(0, 1) + "Flip";
1378
+ Lt[e + "-flip"] = t, Lt[e.slice(0, 1) + "-flip"] = t, Lt[e + "Flip"] = t;
1379
+ });
1380
+ function Rt(e) {
1381
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1382
+ }
1383
+ var zt = (e, t) => {
1384
+ let n = St(At, t), r = { ...jt }, i = t.mode || "svg", a = {}, o = t.style, s = typeof o == "object" && !(o instanceof Array) ? o : {};
1385
+ for (let e in t) {
1386
+ let i = t[e];
1387
+ if (i !== void 0) switch (e) {
1388
+ case "icon":
1389
+ case "style":
1390
+ case "onLoad":
1391
+ case "mode":
1392
+ case "ssr":
1393
+ case "customise": break;
1394
+ case "inline":
1395
+ case "hFlip":
1396
+ case "vFlip":
1397
+ n[e] = i === !0 || i === "true" || i === 1;
1398
+ break;
1399
+ case "flip":
1400
+ typeof i == "string" && wt(n, i);
1401
+ break;
1402
+ case "color":
1403
+ a.color = i;
1404
+ break;
1405
+ case "rotate":
1406
+ typeof i == "string" ? n[e] = Tt(i) : typeof i == "number" && (n[e] = i);
1407
+ break;
1408
+ case "ariaHidden":
1409
+ case "aria-hidden":
1410
+ i !== !0 && i !== "true" && delete r["aria-hidden"];
1411
+ break;
1412
+ default: {
1413
+ let t = Lt[e];
1414
+ t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : At[e] === void 0 && (r[e] = i);
1415
+ }
1416
+ }
1417
+ }
1418
+ let l = Le(e, n), u = l.attributes;
1419
+ if (n.inline && (a.verticalAlign = "-0.125em"), i === "svg") return r.style = {
1420
+ ...a,
1421
+ ...s
1422
+ }, Object.assign(r, u), r.innerHTML = Ve(l.body), c("svg", r);
1423
+ let { body: d, width: f, height: p } = e, m = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = Et(d, {
1424
+ ...u,
1425
+ width: f + "",
1426
+ height: p + ""
1427
+ });
1428
+ return r.style = {
1429
+ ...a,
1430
+ "--svg": kt(h),
1431
+ width: Rt(u.width),
1432
+ height: Rt(u.height),
1433
+ ...Mt,
1434
+ ...m ? Nt : Pt,
1435
+ ...s
1436
+ }, c("span", r);
1437
+ };
1438
+ if (Te(!0), Ue("", nt), typeof document < "u" && typeof window < "u") {
1439
+ let e = window;
1440
+ if (e.IconifyPreload !== void 0) {
1441
+ let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
1442
+ typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
1443
+ try {
1444
+ (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !Oe(e)) && console.error(n);
1445
+ } catch {
1446
+ console.error(n);
1447
+ }
1448
+ });
1449
+ }
1450
+ if (e.IconifyProviders !== void 0) {
1451
+ let t = e.IconifyProviders;
1452
+ if (typeof t == "object" && t) for (let e in t) {
1453
+ let n = "IconifyProviders[" + e + "] is invalid.";
1454
+ try {
1455
+ let r = t[e];
1456
+ if (typeof r != "object" || !r || r.resources === void 0) continue;
1457
+ Ye(e, r) || console.error(n);
1458
+ } catch {
1459
+ console.error(n);
1460
+ }
1461
+ }
1462
+ }
1463
+ }
1464
+ var Bt = {
1465
+ ...q,
1466
+ body: ""
1467
+ }, Vt = s((e, { emit: t }) => {
1468
+ let n = p(null);
1469
+ function r() {
1470
+ n.value &&= (n.value.abort?.(), null);
1471
+ }
1472
+ let i = p(!!e.ssr), a = p(""), o = m(null);
1473
+ function s() {
1474
+ let i = e.icon;
1475
+ if (typeof i == "object" && i && typeof i.body == "string") return a.value = "", { data: i };
1476
+ let o;
1477
+ if (typeof i != "string" || (o = U(i, !1, !0)) === null) return null;
1478
+ let s = Ee(o);
1479
+ if (!s) {
1480
+ let e = n.value;
1481
+ return (!e || e.name !== i) && (s === null ? n.value = { name: i } : n.value = {
1482
+ name: i,
1483
+ abort: xt([o], c)
1484
+ }), null;
1485
+ }
1486
+ r(), a.value !== i && (a.value = i, u(() => {
1487
+ t("load", i);
1488
+ }));
1489
+ let l = e.customise;
1490
+ if (l) {
1491
+ s = Object.assign({}, s);
1492
+ let e = l(s.body, o.name, o.prefix, o.provider);
1493
+ typeof e == "string" && (s.body = e);
1494
+ }
1495
+ let d = ["iconify"];
1496
+ return o.prefix !== "" && d.push("iconify--" + o.prefix), o.provider !== "" && d.push("iconify--" + o.provider), {
1497
+ data: s,
1498
+ classes: d
1499
+ };
1500
+ }
1501
+ function c() {
1502
+ let e = s();
1503
+ e ? e.data !== o.value?.data && (o.value = e) : o.value = null;
1504
+ }
1505
+ return i.value ? c() : d(() => {
1506
+ i.value = !0, c();
1507
+ }), h(() => e.icon, c), f(r), () => {
1508
+ let t = o.value;
1509
+ if (!t) return zt(Bt, e);
1510
+ let n = e;
1511
+ return t.classes && (n = {
1512
+ ...e,
1513
+ class: t.classes.join(" ")
1514
+ }), zt({
1515
+ ...q,
1516
+ ...t.data
1517
+ }, n);
1518
+ };
1519
+ }, {
1520
+ props: [
1521
+ "icon",
1522
+ "mode",
1523
+ "ssr",
1524
+ "width",
1525
+ "height",
1526
+ "style",
1527
+ "color",
1528
+ "inline",
1529
+ "rotate",
1530
+ "hFlip",
1531
+ "horizontalFlip",
1532
+ "vFlip",
1533
+ "verticalFlip",
1534
+ "flip",
1535
+ "id",
1536
+ "ariaHidden",
1537
+ "customise",
1538
+ "title"
1539
+ ],
1540
+ emits: ["load"]
1541
+ });
1542
+ //#endregion
1543
+ //#region ../ccui/ui/shared/hooks/use-icon.ts
1544
+ function Ht(e) {
1545
+ return e.includes(":");
1546
+ }
1547
+ function Ut(e) {
1548
+ return e ? typeof e == "string" ? Ht(e) ? c(Vt, { icon: e }) : c("i", { class: e }) : e : null;
1549
+ }
1550
+ //#endregion
1551
+ //#region ../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/advancedFormat.js
1552
+ var Wt = /* @__PURE__ */ D(((e, t) => {
1553
+ (function(n, r) {
1554
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_advancedFormat = r();
1555
+ })(e, (function() {
1556
+ return function(e, t) {
1557
+ var n = t.prototype, r = n.format;
1558
+ n.format = function(e) {
1559
+ var t = this, n = this.$locale();
1560
+ if (!this.isValid()) return r.bind(this)(e);
1561
+ var i = this.$utils(), a = (e || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(e) {
1562
+ switch (e) {
1563
+ case "Q": return Math.ceil((t.$M + 1) / 3);
1564
+ case "Do": return n.ordinal(t.$D);
1565
+ case "gggg": return t.weekYear();
1566
+ case "GGGG": return t.isoWeekYear();
1567
+ case "wo": return n.ordinal(t.week(), "W");
1568
+ case "w":
1569
+ case "ww": return i.s(t.week(), e === "w" ? 1 : 2, "0");
1570
+ case "W":
1571
+ case "WW": return i.s(t.isoWeek(), e === "W" ? 1 : 2, "0");
1572
+ case "k":
1573
+ case "kk": return i.s(String(t.$H === 0 ? 24 : t.$H), e === "k" ? 1 : 2, "0");
1574
+ case "X": return Math.floor(t.$d.getTime() / 1e3);
1575
+ case "x": return t.$d.getTime();
1576
+ case "z": return "[" + t.offsetName() + "]";
1577
+ case "zzz": return "[" + t.offsetName("long") + "]";
1578
+ default: return e;
1579
+ }
1580
+ }));
1581
+ return r.bind(this)(a);
1582
+ };
1583
+ };
1584
+ }));
1585
+ })), Gt = /* @__PURE__ */ D(((e, t) => {
1586
+ (function(n, r) {
1587
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
1588
+ })(e, (function() {
1589
+ var e = {
1590
+ LTS: "h:mm:ss A",
1591
+ LT: "h:mm A",
1592
+ L: "MM/DD/YYYY",
1593
+ LL: "MMMM D, YYYY",
1594
+ LLL: "MMMM D, YYYY h:mm A",
1595
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
1596
+ }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, o = {}, s = function(e) {
1597
+ return (e = +e) + (e > 68 ? 1900 : 2e3);
1598
+ }, c = function(e) {
1599
+ return function(t) {
1600
+ this[e] = +t;
1601
+ };
1602
+ }, l = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
1603
+ (this.zone ||= {}).offset = function(e) {
1604
+ if (!e || e === "Z") return 0;
1605
+ var t = e.match(/([+-]|\d\d)/g), n = 60 * t[1] + (+t[2] || 0);
1606
+ return n === 0 ? 0 : t[0] === "+" ? -n : n;
1607
+ }(e);
1608
+ }], u = function(e) {
1609
+ var t = o[e];
1610
+ return t && (t.indexOf ? t : t.s.concat(t.f));
1611
+ }, d = function(e, t) {
1612
+ var n, r = o.meridiem;
1613
+ if (r) {
1614
+ for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {
1615
+ n = i > 12;
1616
+ break;
1617
+ }
1618
+ } else n = e === (t ? "pm" : "PM");
1619
+ return n;
1620
+ }, f = {
1621
+ A: [a, function(e) {
1622
+ this.afternoon = d(e, !1);
1623
+ }],
1624
+ a: [a, function(e) {
1625
+ this.afternoon = d(e, !0);
1626
+ }],
1627
+ Q: [n, function(e) {
1628
+ this.month = 3 * (e - 1) + 1;
1629
+ }],
1630
+ S: [n, function(e) {
1631
+ this.milliseconds = 100 * e;
1632
+ }],
1633
+ SS: [r, function(e) {
1634
+ this.milliseconds = 10 * e;
1635
+ }],
1636
+ SSS: [/\d{3}/, function(e) {
1637
+ this.milliseconds = +e;
1638
+ }],
1639
+ s: [i, c("seconds")],
1640
+ ss: [i, c("seconds")],
1641
+ m: [i, c("minutes")],
1642
+ mm: [i, c("minutes")],
1643
+ H: [i, c("hours")],
1644
+ h: [i, c("hours")],
1645
+ HH: [i, c("hours")],
1646
+ hh: [i, c("hours")],
1647
+ D: [i, c("day")],
1648
+ DD: [r, c("day")],
1649
+ Do: [a, function(e) {
1650
+ var t = o.ordinal, n = e.match(/\d+/);
1651
+ if (this.day = n[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
1652
+ }],
1653
+ w: [i, c("week")],
1654
+ ww: [r, c("week")],
1655
+ M: [i, c("month")],
1656
+ MM: [r, c("month")],
1657
+ MMM: [a, function(e) {
1658
+ var t = u("months"), n = (u("monthsShort") || t.map((function(e) {
1659
+ return e.slice(0, 3);
1660
+ }))).indexOf(e) + 1;
1661
+ if (n < 1) throw Error();
1662
+ this.month = n % 12 || n;
1663
+ }],
1664
+ MMMM: [a, function(e) {
1665
+ var t = u("months").indexOf(e) + 1;
1666
+ if (t < 1) throw Error();
1667
+ this.month = t % 12 || t;
1668
+ }],
1669
+ Y: [/[+-]?\d+/, c("year")],
1670
+ YY: [r, function(e) {
1671
+ this.year = s(e);
1672
+ }],
1673
+ YYYY: [/\d{4}/, c("year")],
1674
+ Z: l,
1675
+ ZZ: l
1676
+ };
1677
+ function p(n) {
1678
+ for (var r = n, i = o && o.formats, a = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
1679
+ var a = r && r.toUpperCase();
1680
+ return n || i[r] || e[r] || i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, n) {
1681
+ return t || n.slice(1);
1682
+ }));
1683
+ }))).match(t), s = a.length, c = 0; c < s; c += 1) {
1684
+ var l = a[c], u = f[l], d = u && u[0], p = u && u[1];
1685
+ a[c] = p ? {
1686
+ regex: d,
1687
+ parser: p
1688
+ } : l.replace(/^\[|\]$/g, "");
1689
+ }
1690
+ return function(e) {
1691
+ for (var t = {}, n = 0, r = 0; n < s; n += 1) {
1692
+ var i = a[n];
1693
+ if (typeof i == "string") r += i.length;
1694
+ else {
1695
+ var o = i.regex, c = i.parser, l = e.slice(r), u = o.exec(l)[0];
1696
+ c.call(t, u), e = e.replace(u, "");
1697
+ }
1698
+ }
1699
+ return function(e) {
1700
+ var t = e.afternoon;
1701
+ if (t !== void 0) {
1702
+ var n = e.hours;
1703
+ t ? n < 12 && (e.hours += 12) : n === 12 && (e.hours = 0), delete e.afternoon;
1704
+ }
1705
+ }(t), t;
1706
+ };
1707
+ }
1708
+ return function(e, t, n) {
1709
+ n.p.customParseFormat = !0, e && e.parseTwoDigitYear && (s = e.parseTwoDigitYear);
1710
+ var r = t.prototype, i = r.parse;
1711
+ r.parse = function(e) {
1712
+ var t = e.date, r = e.utc, a = e.args;
1713
+ this.$u = r;
1714
+ var s = a[1];
1715
+ if (typeof s == "string") {
1716
+ var c = !0 === a[2], l = !0 === a[3], u = c || l, d = a[2];
1717
+ l && (d = a[2]), o = this.$locale(), !c && d && (o = n.Ls[d]), this.$d = function(e, t, n, r) {
1718
+ try {
1719
+ if (["x", "X"].indexOf(t) > -1) return /* @__PURE__ */ new Date((t === "X" ? 1e3 : 1) * e);
1720
+ var i = p(t)(e), a = i.year, o = i.month, s = i.day, c = i.hours, l = i.minutes, u = i.seconds, d = i.milliseconds, f = i.zone, m = i.week, h = /* @__PURE__ */ new Date(), g = s || (a || o ? 1 : h.getDate()), _ = a || h.getFullYear(), v = 0;
1721
+ a && !o || (v = o > 0 ? o - 1 : h.getMonth());
1722
+ var y, b = c || 0, x = l || 0, S = u || 0, C = d || 0;
1723
+ return f ? new Date(Date.UTC(_, v, g, b, x, S, C + 60 * f.offset * 1e3)) : n ? new Date(Date.UTC(_, v, g, b, x, S, C)) : (y = new Date(_, v, g, b, x, S, C), m && (y = r(y).week(m).toDate()), y);
1724
+ } catch {
1725
+ return /* @__PURE__ */ new Date("");
1726
+ }
1727
+ }(t, s, r, n), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), u && t != this.format(s) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
1728
+ } else if (s instanceof Array) for (var f = s.length, m = 1; m <= f; m += 1) {
1729
+ a[1] = s[m - 1];
1730
+ var h = n.apply(this, a);
1731
+ if (h.isValid()) {
1732
+ this.$d = h.$d, this.$L = h.$L, this.init();
1733
+ break;
1734
+ }
1735
+ m === f && (this.$d = /* @__PURE__ */ new Date(""));
1736
+ }
1737
+ else i.call(this, e);
1738
+ };
1739
+ };
1740
+ }));
1741
+ })), Kt = /* @__PURE__ */ D(((e, t) => {
1742
+ (function(n, r) {
1743
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_quarterOfYear = r();
1744
+ })(e, (function() {
1745
+ var e = "month", t = "quarter";
1746
+ return function(n, r) {
1747
+ var i = r.prototype;
1748
+ i.quarter = function(e) {
1749
+ return this.$utils().u(e) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (e - 1));
1750
+ };
1751
+ var a = i.add;
1752
+ i.add = function(n, r) {
1753
+ return n = Number(n), this.$utils().p(r) === t ? this.add(3 * n, e) : a.bind(this)(n, r);
1754
+ };
1755
+ var o = i.startOf;
1756
+ i.startOf = function(n, r) {
1757
+ var i = this.$utils(), a = !!i.u(r) || r;
1758
+ if (i.p(n) === t) {
1759
+ var s = this.quarter() - 1;
1760
+ return a ? this.month(3 * s).startOf(e).startOf("day") : this.month(3 * s + 2).endOf(e).endOf("day");
1761
+ }
1762
+ return o.bind(this)(n, r);
1763
+ };
1764
+ };
1765
+ }));
1766
+ })), qt = /* @__PURE__ */ A(Wt(), 1), Jt = /* @__PURE__ */ A(Gt(), 1), Yt = /* @__PURE__ */ A(Kt(), 1);
1767
+ j.default.extend(Jt.default), j.default.extend(Yt.default), j.default.extend(qt.default);
1768
+ function Q(e, t) {
1769
+ if (e == null || e === "") return null;
1770
+ if (typeof e == "string" && t) {
1771
+ let n = (0, j.default)(e, t, !0);
1772
+ return n.isValid() ? n : null;
1773
+ }
1774
+ let n = (0, j.default)(e);
1775
+ return n.isValid() ? n : null;
1776
+ }
1777
+ function Xt(e, t, n) {
1778
+ return e === null ? null : t === "date" ? e.toDate() : t === "number" ? e.valueOf() : e.format(n);
1779
+ }
1780
+ function Zt(e, t) {
1781
+ return !e || !t ? e === t : e.year() === t.year() && e.month() === t.month() && e.date() === t.date();
1782
+ }
1783
+ function Qt(e, t) {
1784
+ return !e || !t ? e === t : e.year() === t.year() && e.month() === t.month();
1785
+ }
1786
+ function $t(e) {
1787
+ return Zt(e, (0, j.default)());
1788
+ }
1789
+ function en(e, t, n) {
1790
+ let r = t > 0 ? t : 1, i = n ? new Set(n) : null, a = [];
1791
+ for (let t = 0; t < e; t += r) a.push({
1792
+ value: t,
1793
+ disabled: i ? i.has(t) : !1
1794
+ });
1795
+ return a;
1796
+ }
1797
+ function tn(e, t = 0) {
1798
+ let n = e.startOf("month"), r = (n.day() - t + 7) % 7, i = n.subtract(r, "day"), a = [];
1799
+ for (let t = 0; t < 42; t += 1) {
1800
+ let n = i.add(t, "day");
1801
+ a.push({
1802
+ date: n,
1803
+ day: n.date(),
1804
+ isCurrentMonth: n.month() === e.month() && n.year() === e.year(),
1805
+ isToday: $t(n)
1806
+ });
1807
+ }
1808
+ return a;
1809
+ }
1810
+ function nn(e) {
1811
+ let t = e.year(), n = (0, j.default)(), r = [];
1812
+ for (let i = 0; i < 12; i += 1) r.push({
1813
+ date: e.year(t).month(i).date(1),
1814
+ month: i,
1815
+ isToday: n.year() === t && n.month() === i
1816
+ });
1817
+ return r;
1818
+ }
1819
+ function rn(e) {
1820
+ let t = e.year(), n = Math.floor(t / 10) * 10, r = (0, j.default)().year(), i = [];
1821
+ for (let t = -1; t <= 10; t += 1) {
1822
+ let a = n + t;
1823
+ i.push({
1824
+ date: e.year(a).month(0).date(1),
1825
+ year: a,
1826
+ isInDecade: t >= 0 && t <= 9,
1827
+ isToday: r === a
1828
+ });
1829
+ }
1830
+ return i;
1831
+ }
1832
+ function an(e) {
1833
+ let t = e.year(), n = (0, j.default)(), r = Math.floor(n.month() / 3) + 1, i = [];
1834
+ for (let a = 1; a <= 4; a += 1) {
1835
+ let o = (a - 1) * 3;
1836
+ i.push({
1837
+ date: e.year(t).month(o).date(1),
1838
+ quarter: a,
1839
+ isCurrentQuarter: n.year() === t && r === a
1840
+ });
1841
+ }
1842
+ return i;
1843
+ }
1844
+ function on(e, t = 0) {
1845
+ let n = e.startOf("day");
1846
+ if (t === 1) {
1847
+ let e = (n.day() + 6) % 7, t = n.add(3 - e, "day"), r = t.year(), i = (0, j.default)(new Date(r, 0, 4)), a = (i.day() + 6) % 7, o = i.subtract(a, "day").startOf("day");
1848
+ return {
1849
+ weekYear: r,
1850
+ weekNumber: Math.floor(t.diff(o, "day") / 7) + 1
1851
+ };
1852
+ }
1853
+ let r = n.year(), i = (0, j.default)(new Date(r, 0, 1)).startOf("day"), a = i.subtract(i.day(), "day");
1854
+ return {
1855
+ weekYear: r,
1856
+ weekNumber: Math.floor(n.diff(a, "day") / 7) + 1
1857
+ };
1858
+ }
1859
+ //#endregion
1860
+ //#region ../ccui/ui/date-picker/src/date-picker-types.ts
1861
+ var sn = {
1862
+ date: "YYYY-MM-DD",
1863
+ week: "YYYY-MM-DD",
1864
+ month: "YYYY-MM",
1865
+ year: "YYYY",
1866
+ quarter: "YYYY-[Q]Q"
1867
+ }, cn = {
1868
+ modelValue: {
1869
+ type: [
1870
+ String,
1871
+ Number,
1872
+ Date,
1873
+ Object
1874
+ ],
1875
+ default: void 0
1876
+ },
1877
+ picker: {
1878
+ type: String,
1879
+ default: "date"
1880
+ },
1881
+ format: {
1882
+ type: String,
1883
+ default: ""
1884
+ },
1885
+ valueFormat: {
1886
+ type: String,
1887
+ default: "string"
1888
+ },
1889
+ placeholder: {
1890
+ type: String,
1891
+ default: ""
1892
+ },
1893
+ disabled: {
1894
+ type: Boolean,
1895
+ default: !1
1896
+ },
1897
+ clearable: {
1898
+ type: Boolean,
1899
+ default: !0
1900
+ },
1901
+ clearIcon: {
1902
+ type: [String, Object],
1903
+ default: void 0
1904
+ },
1905
+ suffixIcon: {
1906
+ type: [String, Object],
1907
+ default: void 0
1908
+ },
1909
+ size: {
1910
+ type: String,
1911
+ default: "default"
1912
+ },
1913
+ status: {
1914
+ type: String,
1915
+ default: ""
1916
+ },
1917
+ disabledDate: {
1918
+ type: Function,
1919
+ default: void 0
1920
+ },
1921
+ placement: {
1922
+ type: String,
1923
+ default: "bottomLeft"
1924
+ },
1925
+ popupClassName: {
1926
+ type: String,
1927
+ default: ""
1928
+ },
1929
+ popupAppendToBody: {
1930
+ type: Boolean,
1931
+ default: !1
1932
+ },
1933
+ getPopupContainer: {
1934
+ type: Function,
1935
+ default: void 0
1936
+ },
1937
+ autoFocus: {
1938
+ type: Boolean,
1939
+ default: !1
1940
+ },
1941
+ inputReadOnly: {
1942
+ type: Boolean,
1943
+ default: !0
1944
+ },
1945
+ transitionName: {
1946
+ type: String,
1947
+ default: "ccui-date-picker-fade"
1948
+ },
1949
+ weekStart: {
1950
+ type: Number,
1951
+ default: 0
1952
+ },
1953
+ showTime: {
1954
+ type: [Boolean, Object],
1955
+ default: !1
1956
+ },
1957
+ showNow: {
1958
+ type: Boolean,
1959
+ default: !0
1960
+ },
1961
+ presets: {
1962
+ type: Array,
1963
+ default: () => []
1964
+ },
1965
+ variant: {
1966
+ type: String,
1967
+ default: "outlined"
1968
+ },
1969
+ classNames: {
1970
+ type: Object,
1971
+ default: void 0
1972
+ },
1973
+ styles: {
1974
+ type: Object,
1975
+ default: void 0
1976
+ }
1977
+ }, ln = {
1978
+ bottomLeft: "bottom-start",
1979
+ bottomRight: "bottom-end",
1980
+ topLeft: "top-start",
1981
+ topRight: "top-end"
1982
+ }, un = [
1983
+ "日",
1984
+ "一",
1985
+ "二",
1986
+ "三",
1987
+ "四",
1988
+ "五",
1989
+ "六"
1990
+ ], dn = "YYYY 年 M 月", fn = [
1991
+ "1月",
1992
+ "2月",
1993
+ "3月",
1994
+ "4月",
1995
+ "5月",
1996
+ "6月",
1997
+ "7月",
1998
+ "8月",
1999
+ "9月",
2000
+ "10月",
2001
+ "11月",
2002
+ "12月"
2003
+ ], pn = [
2004
+ "Q1",
2005
+ "Q2",
2006
+ "Q3",
2007
+ "Q4"
2008
+ ], mn = "{weekYear}-W{weekNumber}";
2009
+ function hn(e) {
2010
+ return e === "month" ? "month" : e === "year" ? "year" : e === "quarter" ? "quarter" : "date";
2011
+ }
2012
+ function gn(e, t) {
2013
+ let n = e.day(), r = t === 0 ? n : (n + 6) % 7;
2014
+ return e.subtract(r, "day").startOf("day");
2015
+ }
2016
+ function _n(e, t, n) {
2017
+ return !e || !t ? e === t : gn(e, n).isSame(gn(t, n), "day");
2018
+ }
2019
+ function vn(e, t) {
2020
+ return !e || !t ? e === t : e.year() === t.year() && Math.floor(e.month() / 3) === Math.floor(t.month() / 3);
2021
+ }
2022
+ function yn(e, t) {
2023
+ let n = String(t.weekNumber).padStart(2, "0");
2024
+ return e.replace("{weekYear}", String(t.weekYear)).replace("{weekNumber}", n);
2025
+ }
2026
+ function bn(e) {
2027
+ return e === !0 || e === !1 || e == null ? {} : e;
2028
+ }
2029
+ function xn(e) {
2030
+ return String(e).padStart(2, "0");
2031
+ }
2032
+ var $ = /* @__PURE__ */ s({
2033
+ name: "CDatePicker",
2034
+ props: cn,
2035
+ emits: [
2036
+ "update:modelValue",
2037
+ "change",
2038
+ "open-change",
2039
+ "focus",
2040
+ "blur",
2041
+ "panel-change"
2042
+ ],
2043
+ setup(e, { emit: s, slots: _ }) {
2044
+ let x = ce("date-picker"), S = ue(), C = i(() => S.locale?.DatePicker ?? {}), w = p(null), T = p(null), E = p(null), D = m(!1), ee = l(de, null), O = i(() => !!e.showTime && e.picker === "date"), k = i(() => bn(e.showTime)), A = i(() => O.value ? k.value.format || "HH:mm:ss" : ""), te = i(() => /s/.test(A.value)), ne = i(() => /m/.test(A.value)), M = i(() => e.format ? e.format : O.value ? `${sn.date} ${A.value}` : sn[e.picker]), N = i(() => Q(e.modelValue, M.value)), P = m(N.value ?? Q(void 0) ?? Q(/* @__PURE__ */ new Date())), F = m(hn(e.picker)), I = m(null), L = m(!1);
2045
+ h(N, (e) => {
2046
+ e && !Qt(e, P.value) && (P.value = e);
2047
+ }), h(() => e.picker, (e) => {
2048
+ F.value = hn(e);
2049
+ });
2050
+ let re = i(() => ln[e.placement]), ie = i(() => typeof document > "u" ? null : e.getPopupContainer ? e.getPopupContainer(w.value) : e.popupAppendToBody ? document.body : null), ae = i(() => ie.value !== null), { floatingStyles: R } = se(w, T, {
2051
+ placement: re,
2052
+ open: D,
2053
+ whileElementsMounted: g,
2054
+ middleware: [
2055
+ y(4),
2056
+ v(),
2057
+ b({ padding: 8 })
2058
+ ],
2059
+ strategy: i(() => ae.value ? "fixed" : "absolute")
2060
+ }), oe = i(() => ee?.validateStatus.value ?? ""), z = i(() => e.status || oe.value), B = i(() => {
2061
+ if (!N.value) return "";
2062
+ if (e.picker === "week") {
2063
+ let t = on(N.value, e.weekStart);
2064
+ return yn(C.value.weekFormat || mn, t);
2065
+ }
2066
+ return N.value.format(M.value);
2067
+ }), le = i(() => e.placeholder || C.value.placeholder || "请选择日期");
2068
+ function V(e) {
2069
+ F.value !== e && (F.value = e, s("panel-change", e, P.value));
2070
+ }
2071
+ function H() {
2072
+ if (N.value) return N.value;
2073
+ let e = Q(k.value.defaultValue);
2074
+ return e ? (0, j.default)().hour(e.hour()).minute(e.minute()).second(e.second()) : (0, j.default)().hour(0).minute(0).second(0).millisecond(0);
2075
+ }
2076
+ function U() {
2077
+ e.disabled || D.value || (D.value = !0, s("open-change", !0), N.value && (P.value = N.value), F.value = hn(e.picker), I.value = O.value ? H() : null, L.value = !1);
2078
+ }
2079
+ function W() {
2080
+ D.value && (D.value = !1, s("open-change", !1));
2081
+ }
2082
+ function fe() {
2083
+ D.value ? W() : U();
2084
+ }
2085
+ function G(t) {
2086
+ let n = Xt(t, e.valueFormat, M.value);
2087
+ s("update:modelValue", n), s("change", n, t ? t.format(M.value) : ""), ee?.validate("change");
2088
+ }
2089
+ function K(t) {
2090
+ if (!e.disabledDate?.(t)) {
2091
+ if (e.picker === "week") {
2092
+ let n = gn(t, e.weekStart);
2093
+ if (N.value && _n(N.value, t, e.weekStart)) {
2094
+ W();
2095
+ return;
2096
+ }
2097
+ G(n), W();
2098
+ return;
2099
+ }
2100
+ if (O.value) {
2101
+ let e = I.value ?? H();
2102
+ I.value = t.hour(e.hour()).minute(e.minute()).second(e.second()).millisecond(0), L.value = !0;
2103
+ return;
2104
+ }
2105
+ if (N.value && Zt(N.value, t)) {
2106
+ W();
2107
+ return;
2108
+ }
2109
+ G(t), W();
2110
+ }
2111
+ }
2112
+ function q(e, t) {
2113
+ let n = I.value ?? H();
2114
+ e === "hour" ? I.value = n.hour(t) : e === "minute" ? I.value = n.minute(t) : I.value = n.second(t), L.value = !0;
2115
+ }
2116
+ function pe() {
2117
+ let e = (0, j.default)();
2118
+ O.value ? G(e) : G(e.startOf("day")), W();
2119
+ }
2120
+ function me() {
2121
+ if (!I.value) {
2122
+ W();
2123
+ return;
2124
+ }
2125
+ G(I.value), W();
2126
+ }
2127
+ function he(t) {
2128
+ let n = Q(typeof t.value == "function" ? t.value() : t.value);
2129
+ if (n) {
2130
+ if (O.value) {
2131
+ I.value = n, L.value = !0, P.value = n;
2132
+ return;
2133
+ }
2134
+ e.picker === "week" ? G(gn(n, e.weekStart)) : G(n), W();
2135
+ }
2136
+ }
2137
+ function ge(t) {
2138
+ if (!e.disabledDate?.(t)) {
2139
+ if (e.picker === "month") {
2140
+ G(t), W();
2141
+ return;
2142
+ }
2143
+ P.value = t, V("date");
2144
+ }
2145
+ }
2146
+ function _e(t) {
2147
+ if (!e.disabledDate?.(t)) {
2148
+ if (e.picker === "year") {
2149
+ G(t), W();
2150
+ return;
2151
+ }
2152
+ P.value = t, e.picker === "quarter" ? V("quarter") : V("month");
2153
+ }
2154
+ }
2155
+ function ve(t) {
2156
+ e.disabledDate?.(t) || (G(t), W());
2157
+ }
2158
+ function ye() {
2159
+ F.value === "date" ? P.value = P.value.subtract(1, "month") : F.value === "month" || F.value === "quarter" ? P.value = P.value.subtract(1, "year") : F.value === "year" && (P.value = P.value.subtract(10, "year"));
2160
+ }
2161
+ function be() {
2162
+ F.value === "date" ? P.value = P.value.add(1, "month") : F.value === "month" || F.value === "quarter" ? P.value = P.value.add(1, "year") : F.value === "year" && (P.value = P.value.add(10, "year"));
2163
+ }
2164
+ function xe() {
2165
+ F.value === "date" ? P.value = P.value.subtract(1, "year") : (F.value === "month" || F.value === "quarter") && (P.value = P.value.subtract(10, "year"));
2166
+ }
2167
+ function Se() {
2168
+ F.value === "date" ? P.value = P.value.add(1, "year") : (F.value === "month" || F.value === "quarter") && (P.value = P.value.add(10, "year"));
2169
+ }
2170
+ function J() {
2171
+ F.value === "date" ? V("month") : (F.value === "month" || F.value === "quarter") && V("year");
2172
+ }
2173
+ function Ce(e) {
2174
+ e.stopPropagation(), N.value && G(null);
2175
+ }
2176
+ function we(e) {
2177
+ if (!D.value) return;
2178
+ let t = e.target;
2179
+ t && (w.value?.contains(t) || T.value?.contains(t) || W());
2180
+ }
2181
+ d(() => {
2182
+ document.addEventListener("mousedown", we, !0), e.autoFocus && u(() => E.value?.focus());
2183
+ }), f(() => {
2184
+ document.removeEventListener("mousedown", we, !0);
2185
+ });
2186
+ let Y = i(() => e.clearable && !e.disabled && !!N.value), Te = i(() => {
2187
+ if (F.value === "date") return P.value.format(C.value.panelLabelFormat || dn);
2188
+ if (F.value === "month" || F.value === "quarter") return String(P.value.year());
2189
+ let e = Math.floor(P.value.year() / 10) * 10;
2190
+ return `${e}-${e + 9}`;
2191
+ }), Ee = i(() => C.value.monthNamesShort ?? fn), De = i(() => C.value.quarterNames ?? pn), Oe = i(() => {
2192
+ let t = C.value.weekdaysShort ?? un;
2193
+ return e.weekStart === 1 ? [...t.slice(1), t[0]] : t;
2194
+ }), ke = i(() => C.value.weekHeader || "周");
2195
+ function Ae() {
2196
+ let e = F.value, t = e !== "year", n = e === "date" ? "prev-month" : e === "year" ? "prev-decade" : "prev-year", r = e === "date" ? "next-month" : e === "year" ? "next-decade" : "next-year", i = e === "date" ? "prev-year" : "prev-decade", s = e === "date" ? "next-year" : "next-decade", c = e === "date" ? C.value.prevMonthLabel || "上个月" : e === "year" ? "前十年" : C.value.prevYearLabel || "前一年", l = e === "date" ? C.value.nextMonthLabel || "下个月" : e === "year" ? "后十年" : C.value.nextYearLabel || "后一年", u = e === "date" ? C.value.prevYearLabel || "前一年" : "前十年", d = e === "date" ? C.value.nextYearLabel || "后一年" : "后十年";
2197
+ return o("div", { class: x.e("panel-header") }, [
2198
+ t && o("button", {
2199
+ type: "button",
2200
+ class: [x.e("arrow"), x.em("arrow", i)],
2201
+ "aria-label": u,
2202
+ onClick: xe
2203
+ }, [a("«")]),
2204
+ o("button", {
2205
+ type: "button",
2206
+ class: [x.e("arrow"), x.em("arrow", n)],
2207
+ "aria-label": c,
2208
+ onClick: ye
2209
+ }, [a("‹")]),
2210
+ o("span", {
2211
+ class: [x.e("panel-label"), e !== "year" && x.em("panel-label", "clickable")],
2212
+ role: "button",
2213
+ onClick: J
2214
+ }, [Te.value]),
2215
+ o("button", {
2216
+ type: "button",
2217
+ class: [x.e("arrow"), x.em("arrow", r)],
2218
+ "aria-label": l,
2219
+ onClick: be
2220
+ }, [a("›")]),
2221
+ t && o("button", {
2222
+ type: "button",
2223
+ class: [x.e("arrow"), x.em("arrow", s)],
2224
+ "aria-label": d,
2225
+ onClick: Se
2226
+ }, [a("»")])
2227
+ ]);
2228
+ }
2229
+ let je = i(() => O.value ? I.value : N.value);
2230
+ function Me() {
2231
+ let n = tn(P.value, e.weekStart), r = [];
2232
+ for (let e = 0; e < 6; e += 1) r.push(n.slice(e * 7, e * 7 + 7));
2233
+ let i = e.picker === "week", a = je.value;
2234
+ return o(t, null, [o("div", { class: [x.e("week-row"), i && x.em("week-row", "with-week")] }, [i && o("div", { class: x.e("week-cell") }, [ke.value]), Oe.value.map((e) => o("div", { class: x.e("week-cell") }, [e]))]), o("div", { class: [x.e("grid"), i && x.em("grid", "with-week")] }, [r.map((n) => {
2235
+ let r = i ? on(n[0].date, e.weekStart) : null, s = i && !!a && n.some((t) => _n(a, t.date, e.weekStart));
2236
+ return o(t, null, [r && o("div", { class: [x.e("week-number"), s && x.em("week-number", "selected")] }, [r.weekNumber]), n.map((t) => {
2237
+ let n = !!e.disabledDate?.(t.date), r = i ? s : !!a && Zt(a, t.date);
2238
+ return o("div", {
2239
+ class: [
2240
+ x.e("cell"),
2241
+ !t.isCurrentMonth && x.em("cell", "outside"),
2242
+ t.isToday && x.em("cell", "today"),
2243
+ r && x.em("cell", "selected"),
2244
+ i && s && x.em("cell", "in-week"),
2245
+ n && x.em("cell", "disabled")
2246
+ ],
2247
+ role: "gridcell",
2248
+ "aria-selected": r,
2249
+ "aria-disabled": n,
2250
+ onClick: () => !n && K(t.date)
2251
+ }, [o("span", { class: x.e("cell-inner") }, [t.day])]);
2252
+ })]);
2253
+ })])]);
2254
+ }
2255
+ function X(e) {
2256
+ let t = k.value, n = en(e === "hour" ? 24 : 60, e === "hour" ? t.hourStep ?? 1 : e === "minute" ? t.minuteStep ?? 1 : t.secondStep ?? 1, e === "hour" ? t.disabledHours?.() : e === "minute" ? t.disabledMinutes?.() : t.disabledSeconds?.());
2257
+ t.hideDisabledOptions && (n = n.filter((e) => !e.disabled));
2258
+ let r = I.value, i = r ? e === "hour" ? r.hour() : e === "minute" ? r.minute() : r.second() : -1;
2259
+ return o("div", {
2260
+ class: [x.e("time-column"), x.em("time-column", e)],
2261
+ role: "listbox"
2262
+ }, [n.map((t) => {
2263
+ let n = t.value === i;
2264
+ return o("div", {
2265
+ class: [
2266
+ x.e("time-cell"),
2267
+ n && x.em("time-cell", "selected"),
2268
+ t.disabled && x.em("time-cell", "disabled")
2269
+ ],
2270
+ role: "option",
2271
+ "aria-selected": n,
2272
+ "aria-disabled": t.disabled,
2273
+ onClick: () => !t.disabled && q(e, t.value)
2274
+ }, [xn(t.value)]);
2275
+ })]);
2276
+ }
2277
+ function Ne() {
2278
+ return o("div", { class: x.e("time-columns") }, [
2279
+ X("hour"),
2280
+ ne.value && X("minute"),
2281
+ te.value && X("second")
2282
+ ]);
2283
+ }
2284
+ function Pe() {
2285
+ return o("ul", { class: x.e("presets") }, [e.presets.map((e) => {
2286
+ let t = typeof e.label == "function" ? e.label() : e.label;
2287
+ return o("li", {
2288
+ class: x.e("preset-item"),
2289
+ role: "button",
2290
+ onClick: () => he(e)
2291
+ }, [t]);
2292
+ })]);
2293
+ }
2294
+ function Fe() {
2295
+ let t = O.value && !N.value && !L.value;
2296
+ return o("div", { class: x.e("footer") }, [e.showNow && o("button", {
2297
+ type: "button",
2298
+ class: [x.e("footer-btn"), x.em("footer-btn", "now")],
2299
+ onClick: pe
2300
+ }, [C.value.now || "此刻"]), o("button", {
2301
+ type: "button",
2302
+ class: [x.e("footer-btn"), x.em("footer-btn", "ok")],
2303
+ disabled: t,
2304
+ onClick: me
2305
+ }, [C.value.ok || "确定"])]);
2306
+ }
2307
+ function Ie() {
2308
+ let t = nn(P.value);
2309
+ return o("div", { class: [x.e("grid"), x.em("grid", "month")] }, [t.map((t) => {
2310
+ let n = !!e.disabledDate?.(t.date), r = !!N.value && Qt(N.value, t.date);
2311
+ return o("div", {
2312
+ class: [
2313
+ x.e("cell"),
2314
+ x.em("cell", "month"),
2315
+ t.isToday && x.em("cell", "today"),
2316
+ r && x.em("cell", "selected"),
2317
+ n && x.em("cell", "disabled")
2318
+ ],
2319
+ role: "gridcell",
2320
+ "aria-selected": r,
2321
+ "aria-disabled": n,
2322
+ onClick: () => !n && ge(t.date)
2323
+ }, [o("span", { class: x.e("cell-inner") }, [Ee.value[t.month]])]);
2324
+ })]);
2325
+ }
2326
+ function Le() {
2327
+ let t = rn(P.value);
2328
+ return o("div", { class: [x.e("grid"), x.em("grid", "year")] }, [t.map((t) => {
2329
+ let n = !!e.disabledDate?.(t.date), r = !!N.value && N.value.year() === t.year;
2330
+ return o("div", {
2331
+ class: [
2332
+ x.e("cell"),
2333
+ x.em("cell", "year"),
2334
+ !t.isInDecade && x.em("cell", "outside"),
2335
+ t.isToday && x.em("cell", "today"),
2336
+ r && x.em("cell", "selected"),
2337
+ n && x.em("cell", "disabled")
2338
+ ],
2339
+ role: "gridcell",
2340
+ "aria-selected": r,
2341
+ "aria-disabled": n,
2342
+ onClick: () => !n && _e(t.date)
2343
+ }, [o("span", { class: x.e("cell-inner") }, [t.year])]);
2344
+ })]);
2345
+ }
2346
+ function Re() {
2347
+ let t = an(P.value);
2348
+ return o("div", { class: [x.e("grid"), x.em("grid", "quarter")] }, [t.map((t) => {
2349
+ let n = !!e.disabledDate?.(t.date), r = !!N.value && vn(N.value, t.date);
2350
+ return o("div", {
2351
+ class: [
2352
+ x.e("cell"),
2353
+ x.em("cell", "quarter"),
2354
+ t.isCurrentQuarter && x.em("cell", "today"),
2355
+ r && x.em("cell", "selected"),
2356
+ n && x.em("cell", "disabled")
2357
+ ],
2358
+ role: "gridcell",
2359
+ "aria-selected": r,
2360
+ "aria-disabled": n,
2361
+ onClick: () => !n && ve(t.date)
2362
+ }, [o("span", { class: x.e("cell-inner") }, [De.value[t.quarter - 1]])]);
2363
+ })]);
2364
+ }
2365
+ function ze() {
2366
+ return F.value === "month" ? Ie() : F.value === "year" ? Le() : F.value === "quarter" ? Re() : Me();
2367
+ }
2368
+ function Be() {
2369
+ let n = e.presets.length > 0, r = [
2370
+ x.e("panel"),
2371
+ x.em("panel", `picker-${e.picker}`),
2372
+ x.em("panel", `mode-${F.value}`),
2373
+ O.value && x.em("panel", "with-time"),
2374
+ n && x.em("panel", "with-presets"),
2375
+ e.popupClassName
2376
+ ].filter(Boolean), i = O.value && F.value === "date" ? c("div", { class: x.e("body-row") }, [c("div", { class: x.e("date-side") }, [Ae(), ze()]), Ne()]) : c(t, null, [Ae(), ze()]), a = n ? c("div", { class: x.e("main-row") }, [Pe(), c("div", { class: x.e("main-body") }, [i])]) : i, o = O.value ? [a, Fe()] : [a];
2377
+ return c("div", {
2378
+ ref: T,
2379
+ class: [r, e.classNames?.popup],
2380
+ style: [R.value, e.styles?.popup],
2381
+ role: "dialog"
2382
+ }, o);
2383
+ }
2384
+ function Ve() {
2385
+ let t = D.value ? Be() : null, i = c(r, {
2386
+ name: e.transitionName,
2387
+ appear: !0
2388
+ }, { default: () => t });
2389
+ return ae.value && ie.value ? c(n, { to: ie.value }, [i]) : i;
2390
+ }
2391
+ let He = i(() => [
2392
+ x.b(),
2393
+ x.m(`picker-${e.picker}`),
2394
+ e.disabled && x.is("disabled"),
2395
+ D.value && x.is("open"),
2396
+ x.m(e.size),
2397
+ z.value && x.m(`status-${z.value}`),
2398
+ e.variant && x.m(`variant-${e.variant}`)
2399
+ ]);
2400
+ return () => o("div", {
2401
+ ref: w,
2402
+ class: [He.value, e.classNames?.root],
2403
+ style: e.styles?.root
2404
+ }, [o("div", {
2405
+ class: x.e("input-wrap"),
2406
+ onClick: fe
2407
+ }, [o("input", {
2408
+ ref: E,
2409
+ class: [x.e("input"), e.classNames?.input],
2410
+ style: e.styles?.input,
2411
+ type: "text",
2412
+ readonly: e.inputReadOnly,
2413
+ disabled: e.disabled,
2414
+ placeholder: le.value,
2415
+ value: B.value,
2416
+ "aria-haspopup": "dialog",
2417
+ "aria-expanded": D.value,
2418
+ onFocus: () => s("focus"),
2419
+ onBlur: () => {
2420
+ s("blur"), ee?.validate("blur");
2421
+ }
2422
+ }, null), Y.value ? o("span", {
2423
+ class: x.e("clear"),
2424
+ role: "button",
2425
+ "aria-label": C.value.clearLabel || "清除",
2426
+ onClick: Ce
2427
+ }, [_.clearIcon ? _.clearIcon() : Ut(e.clearIcon) ?? "×"]) : o("span", {
2428
+ class: x.e("suffix"),
2429
+ "aria-hidden": "true"
2430
+ }, [_.suffixIcon ? _.suffixIcon() : Ut(e.suffixIcon) ?? "📅"])]), Ve()]);
2431
+ }
2432
+ });
2433
+ //#endregion
2434
+ //#region ../ccui/ui/date-picker/index.ts
2435
+ $.install = function(e) {
2436
+ e.component($.name, $);
2437
+ };
2438
+ var Sn = {
2439
+ title: "DatePicker 日期选择框",
2440
+ category: "数据录入",
2441
+ status: "80%",
2442
+ install(e) {
2443
+ e.component($.name, $);
2444
+ }
2445
+ };
2446
+ //#endregion
2447
+ export { $ as DatePicker, Sn as default };