@trishchuk/coolors-mcp 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.claude/settings.local.json +2 -6
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +20 -8
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +22 -8
  4. package/.github/pull_request_template.md +33 -8
  5. package/.github/workflows/ci.yml +97 -97
  6. package/.github/workflows/deploy-docs.yml +9 -9
  7. package/.github/workflows/release.yml +15 -15
  8. package/README.md +26 -1
  9. package/TOOLS_UK.md +233 -0
  10. package/docs/.vitepress/cache/deps/@braintree_sanitize-url.js +30 -12
  11. package/docs/.vitepress/cache/deps/_metadata.json +1 -1
  12. package/docs/.vitepress/cache/deps/chunk-BUSYA2B4.js +9 -6
  13. package/docs/.vitepress/cache/deps/chunk-JD3CXNQ6.js +2543 -1612
  14. package/docs/.vitepress/cache/deps/chunk-SYPOPCWC.js +3508 -2529
  15. package/docs/.vitepress/cache/deps/cytoscape-cose-bilkent.js +1902 -1003
  16. package/docs/.vitepress/cache/deps/cytoscape.js +13303 -7347
  17. package/docs/.vitepress/cache/deps/dayjs.js +494 -272
  18. package/docs/.vitepress/cache/deps/debug.js +82 -38
  19. package/docs/.vitepress/cache/deps/prismjs.js +444 -272
  20. package/docs/.vitepress/cache/deps/prismjs_components_prism-bash.js +80 -73
  21. package/docs/.vitepress/cache/deps/prismjs_components_prism-javascript.js +93 -62
  22. package/docs/.vitepress/cache/deps/prismjs_components_prism-json.js +13 -13
  23. package/docs/.vitepress/cache/deps/prismjs_components_prism-python.js +34 -27
  24. package/docs/.vitepress/cache/deps/prismjs_components_prism-typescript.js +20 -17
  25. package/docs/.vitepress/cache/deps/prismjs_components_prism-yaml.js +75 -41
  26. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +2005 -1438
  27. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +2 -2
  28. package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +566 -229
  29. package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +382 -270
  30. package/docs/.vitepress/cache/deps/vitepress___minisearch.js +334 -125
  31. package/docs/.vitepress/cache/deps/vue.js +2 -2
  32. package/docs/.vitepress/components/ClientGrid.vue +9 -3
  33. package/docs/.vitepress/components/CodeBlock.vue +51 -44
  34. package/docs/.vitepress/components/ConfigModal.vue +151 -67
  35. package/docs/.vitepress/components/DiagramModal.vue +186 -154
  36. package/docs/.vitepress/components/TroubleshootingModal.vue +101 -96
  37. package/docs/.vitepress/config.js +171 -141
  38. package/docs/.vitepress/theme/FundingLayout.vue +65 -54
  39. package/docs/.vitepress/theme/Layout.vue +21 -21
  40. package/docs/.vitepress/theme/components/AdBanner.vue +73 -52
  41. package/docs/.vitepress/theme/components/AdPlaceholder.vue +3 -3
  42. package/docs/.vitepress/theme/components/FundingEffects.vue +77 -53
  43. package/docs/.vitepress/theme/components/FundingHero.vue +78 -63
  44. package/docs/.vitepress/theme/components/SupportSection.vue +106 -89
  45. package/docs/.vitepress/theme/custom-app.css +19 -12
  46. package/docs/.vitepress/theme/custom.css +33 -25
  47. package/docs/.vitepress/theme/index.js +19 -16
  48. package/docs/concepts/accessibility.md +59 -47
  49. package/docs/concepts/color-spaces.md +28 -6
  50. package/docs/concepts/distance-metrics.md +45 -30
  51. package/docs/concepts/hct.md +30 -27
  52. package/docs/concepts/image-analysis.md +52 -21
  53. package/docs/concepts/material-design.md +43 -17
  54. package/docs/concepts/theme-matching.md +64 -40
  55. package/docs/examples/basic-colors.md +92 -108
  56. package/docs/examples/creating-themes.md +104 -108
  57. package/docs/examples/css-refactoring.md +33 -29
  58. package/docs/examples/image-extraction.md +145 -138
  59. package/docs/getting-started.md +45 -34
  60. package/docs/index.md +5 -1
  61. package/docs/installation.md +15 -1
  62. package/docs/tools/accessibility.md +74 -68
  63. package/docs/tools/image-extraction.md +62 -54
  64. package/docs/tools/theme-matching.md +45 -42
  65. package/note.md +1 -2
  66. package/package.json +2 -2
@@ -1,285 +1,507 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-BUSYA2B4.js";
1
+ import { __commonJS } from "./chunk-BUSYA2B4.js";
4
2
 
5
3
  // node_modules/dayjs/dayjs.min.js
6
4
  var require_dayjs_min = __commonJS({
7
5
  "node_modules/dayjs/dayjs.min.js"(exports, module) {
8
- !function(t, e) {
9
- "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
10
- }(exports, function() {
6
+ !(function (t, e) {
7
+ "object" == typeof exports && "undefined" != typeof module
8
+ ? (module.exports = e())
9
+ : "function" == typeof define && define.amd
10
+ ? define(e)
11
+ : ((t =
12
+ "undefined" != typeof globalThis ? globalThis : t || self).dayjs =
13
+ e());
14
+ })(exports, function () {
11
15
  "use strict";
12
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
13
- var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
14
- return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
15
- } }, m = function(t2, e2, n2) {
16
- var r2 = String(t2);
17
- return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
18
- }, v = { s: m, z: function(t2) {
19
- var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
20
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
21
- }, m: function t2(e2, n2) {
22
- if (e2.date() < n2.date()) return -t2(n2, e2);
23
- var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
24
- return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
25
- }, a: function(t2) {
26
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
27
- }, p: function(t2) {
28
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
29
- }, u: function(t2) {
30
- return void 0 === t2;
31
- } }, g = "en", D = {};
16
+ var t = 1e3,
17
+ e = 6e4,
18
+ n = 36e5,
19
+ r = "millisecond",
20
+ i = "second",
21
+ s = "minute",
22
+ u = "hour",
23
+ a = "day",
24
+ o = "week",
25
+ c = "month",
26
+ f = "quarter",
27
+ h = "year",
28
+ d = "date",
29
+ l = "Invalid Date",
30
+ $ =
31
+ /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
32
+ y =
33
+ /\[([^\]]+)]|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,
34
+ M = {
35
+ name: "en",
36
+ weekdays:
37
+ "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split(
38
+ "_",
39
+ ),
40
+ months:
41
+ "January_February_March_April_May_June_July_August_September_October_November_December".split(
42
+ "_",
43
+ ),
44
+ ordinal: function (t2) {
45
+ var e2 = ["th", "st", "nd", "rd"],
46
+ n2 = t2 % 100;
47
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
48
+ },
49
+ },
50
+ m = function (t2, e2, n2) {
51
+ var r2 = String(t2);
52
+ return !r2 || r2.length >= e2
53
+ ? t2
54
+ : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
55
+ },
56
+ v = {
57
+ s: m,
58
+ z: function (t2) {
59
+ var e2 = -t2.utcOffset(),
60
+ n2 = Math.abs(e2),
61
+ r2 = Math.floor(n2 / 60),
62
+ i2 = n2 % 60;
63
+ return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
64
+ },
65
+ m: function t2(e2, n2) {
66
+ if (e2.date() < n2.date()) return -t2(n2, e2);
67
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()),
68
+ i2 = e2.clone().add(r2, c),
69
+ s2 = n2 - i2 < 0,
70
+ u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
71
+ return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
72
+ },
73
+ a: function (t2) {
74
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
75
+ },
76
+ p: function (t2) {
77
+ return (
78
+ { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[
79
+ t2
80
+ ] ||
81
+ String(t2 || "")
82
+ .toLowerCase()
83
+ .replace(/s$/, "")
84
+ );
85
+ },
86
+ u: function (t2) {
87
+ return void 0 === t2;
88
+ },
89
+ },
90
+ g = "en",
91
+ D = {};
32
92
  D[g] = M;
33
- var p = "$isDayjsObject", S = function(t2) {
34
- return t2 instanceof _ || !(!t2 || !t2[p]);
35
- }, w = function t2(e2, n2, r2) {
36
- var i2;
37
- if (!e2) return g;
38
- if ("string" == typeof e2) {
39
- var s2 = e2.toLowerCase();
40
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
41
- var u2 = e2.split("-");
42
- if (!i2 && u2.length > 1) return t2(u2[0]);
43
- } else {
44
- var a2 = e2.name;
45
- D[a2] = e2, i2 = a2;
46
- }
47
- return !r2 && i2 && (g = i2), i2 || !r2 && g;
48
- }, O = function(t2, e2) {
49
- if (S(t2)) return t2.clone();
50
- var n2 = "object" == typeof e2 ? e2 : {};
51
- return n2.date = t2, n2.args = arguments, new _(n2);
52
- }, b = v;
53
- b.l = w, b.i = S, b.w = function(t2, e2) {
54
- return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
55
- };
56
- var _ = function() {
57
- function M2(t2) {
58
- this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
59
- }
60
- var m2 = M2.prototype;
61
- return m2.parse = function(t2) {
62
- this.$d = function(t3) {
63
- var e2 = t3.date, n2 = t3.utc;
64
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
65
- if (b.u(e2)) return /* @__PURE__ */ new Date();
66
- if (e2 instanceof Date) return new Date(e2);
67
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
68
- var r2 = e2.match($);
69
- if (r2) {
70
- var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
71
- return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
72
- }
73
- }
74
- return new Date(e2);
75
- }(t2), this.init();
76
- }, m2.init = function() {
77
- var t2 = this.$d;
78
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
79
- }, m2.$utils = function() {
80
- return b;
81
- }, m2.isValid = function() {
82
- return !(this.$d.toString() === l);
83
- }, m2.isSame = function(t2, e2) {
84
- var n2 = O(t2);
85
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
86
- }, m2.isAfter = function(t2, e2) {
87
- return O(t2) < this.startOf(e2);
88
- }, m2.isBefore = function(t2, e2) {
89
- return this.endOf(e2) < O(t2);
90
- }, m2.$g = function(t2, e2, n2) {
91
- return b.u(t2) ? this[e2] : this.set(n2, t2);
92
- }, m2.unix = function() {
93
- return Math.floor(this.valueOf() / 1e3);
94
- }, m2.valueOf = function() {
95
- return this.$d.getTime();
96
- }, m2.startOf = function(t2, e2) {
97
- var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
98
- var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
99
- return r2 ? i2 : i2.endOf(a);
100
- }, $2 = function(t3, e3) {
101
- return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
102
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
103
- switch (f2) {
104
- case h:
105
- return r2 ? l2(1, 0) : l2(31, 11);
106
- case c:
107
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
108
- case o:
109
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
110
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
111
- case a:
112
- case d:
113
- return $2(v2 + "Hours", 0);
114
- case u:
115
- return $2(v2 + "Minutes", 1);
116
- case s:
117
- return $2(v2 + "Seconds", 2);
118
- case i:
119
- return $2(v2 + "Milliseconds", 3);
120
- default:
121
- return this.clone();
93
+ var p = "$isDayjsObject",
94
+ S = function (t2) {
95
+ return t2 instanceof _ || !(!t2 || !t2[p]);
96
+ },
97
+ w = function t2(e2, n2, r2) {
98
+ var i2;
99
+ if (!e2) return g;
100
+ if ("string" == typeof e2) {
101
+ var s2 = e2.toLowerCase();
102
+ (D[s2] && (i2 = s2), n2 && ((D[s2] = n2), (i2 = s2)));
103
+ var u2 = e2.split("-");
104
+ if (!i2 && u2.length > 1) return t2(u2[0]);
105
+ } else {
106
+ var a2 = e2.name;
107
+ ((D[a2] = e2), (i2 = a2));
122
108
  }
123
- }, m2.endOf = function(t2) {
124
- return this.startOf(t2, false);
125
- }, m2.$set = function(t2, e2) {
126
- var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
127
- if (o2 === c || o2 === h) {
128
- var y2 = this.clone().set(d, 1);
129
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
130
- } else l2 && this.$d[l2]($2);
131
- return this.init(), this;
132
- }, m2.set = function(t2, e2) {
133
- return this.clone().$set(t2, e2);
134
- }, m2.get = function(t2) {
135
- return this[b.p(t2)]();
136
- }, m2.add = function(r2, f2) {
137
- var d2, l2 = this;
138
- r2 = Number(r2);
139
- var $2 = b.p(f2), y2 = function(t2) {
140
- var e2 = O(l2);
141
- return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
142
- };
143
- if ($2 === c) return this.set(c, this.$M + r2);
144
- if ($2 === h) return this.set(h, this.$y + r2);
145
- if ($2 === a) return y2(1);
146
- if ($2 === o) return y2(7);
147
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
148
- return b.w(m3, this);
149
- }, m2.subtract = function(t2, e2) {
150
- return this.add(-1 * t2, e2);
151
- }, m2.format = function(t2) {
152
- var e2 = this, n2 = this.$locale();
153
- if (!this.isValid()) return n2.invalidDate || l;
154
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
155
- return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
156
- }, d2 = function(t3) {
157
- return b.s(s2 % 12 || 12, t3, "0");
158
- }, $2 = f2 || function(t3, e3, n3) {
159
- var r3 = t3 < 12 ? "AM" : "PM";
160
- return n3 ? r3.toLowerCase() : r3;
161
- };
162
- return r2.replace(y, function(t3, r3) {
163
- return r3 || function(t4) {
164
- switch (t4) {
165
- case "YY":
166
- return String(e2.$y).slice(-2);
167
- case "YYYY":
168
- return b.s(e2.$y, 4, "0");
169
- case "M":
170
- return a2 + 1;
171
- case "MM":
172
- return b.s(a2 + 1, 2, "0");
173
- case "MMM":
174
- return h2(n2.monthsShort, a2, c2, 3);
175
- case "MMMM":
176
- return h2(c2, a2);
177
- case "D":
178
- return e2.$D;
179
- case "DD":
180
- return b.s(e2.$D, 2, "0");
181
- case "d":
182
- return String(e2.$W);
183
- case "dd":
184
- return h2(n2.weekdaysMin, e2.$W, o2, 2);
185
- case "ddd":
186
- return h2(n2.weekdaysShort, e2.$W, o2, 3);
187
- case "dddd":
188
- return o2[e2.$W];
189
- case "H":
190
- return String(s2);
191
- case "HH":
192
- return b.s(s2, 2, "0");
193
- case "h":
194
- return d2(1);
195
- case "hh":
196
- return d2(2);
197
- case "a":
198
- return $2(s2, u2, true);
199
- case "A":
200
- return $2(s2, u2, false);
201
- case "m":
202
- return String(u2);
203
- case "mm":
204
- return b.s(u2, 2, "0");
205
- case "s":
206
- return String(e2.$s);
207
- case "ss":
208
- return b.s(e2.$s, 2, "0");
209
- case "SSS":
210
- return b.s(e2.$ms, 3, "0");
211
- case "Z":
212
- return i2;
213
- }
214
- return null;
215
- }(t3) || i2.replace(":", "");
109
+ return (!r2 && i2 && (g = i2), i2 || (!r2 && g));
110
+ },
111
+ O = function (t2, e2) {
112
+ if (S(t2)) return t2.clone();
113
+ var n2 = "object" == typeof e2 ? e2 : {};
114
+ return ((n2.date = t2), (n2.args = arguments), new _(n2));
115
+ },
116
+ b = v;
117
+ ((b.l = w),
118
+ (b.i = S),
119
+ (b.w = function (t2, e2) {
120
+ return O(t2, {
121
+ locale: e2.$L,
122
+ utc: e2.$u,
123
+ x: e2.$x,
124
+ $offset: e2.$offset,
216
125
  });
217
- }, m2.utcOffset = function() {
218
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
219
- }, m2.diff = function(r2, d2, l2) {
220
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
221
- return b.m(y2, m3);
222
- };
223
- switch (M3) {
224
- case h:
225
- $2 = D2() / 12;
226
- break;
227
- case c:
228
- $2 = D2();
229
- break;
230
- case f:
231
- $2 = D2() / 3;
232
- break;
233
- case o:
234
- $2 = (g2 - v2) / 6048e5;
235
- break;
236
- case a:
237
- $2 = (g2 - v2) / 864e5;
238
- break;
239
- case u:
240
- $2 = g2 / n;
241
- break;
242
- case s:
243
- $2 = g2 / e;
244
- break;
245
- case i:
246
- $2 = g2 / t;
247
- break;
248
- default:
249
- $2 = g2;
126
+ }));
127
+ var _ = (function () {
128
+ function M2(t2) {
129
+ ((this.$L = w(t2.locale, null, true)),
130
+ this.parse(t2),
131
+ (this.$x = this.$x || t2.x || {}),
132
+ (this[p] = true));
250
133
  }
251
- return l2 ? $2 : b.a($2);
252
- }, m2.daysInMonth = function() {
253
- return this.endOf(c).$D;
254
- }, m2.$locale = function() {
255
- return D[this.$L];
256
- }, m2.locale = function(t2, e2) {
257
- if (!t2) return this.$L;
258
- var n2 = this.clone(), r2 = w(t2, e2, true);
259
- return r2 && (n2.$L = r2), n2;
260
- }, m2.clone = function() {
261
- return b.w(this.$d, this);
262
- }, m2.toDate = function() {
263
- return new Date(this.valueOf());
264
- }, m2.toJSON = function() {
265
- return this.isValid() ? this.toISOString() : null;
266
- }, m2.toISOString = function() {
267
- return this.$d.toISOString();
268
- }, m2.toString = function() {
269
- return this.$d.toUTCString();
270
- }, M2;
271
- }(), k = _.prototype;
272
- return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
273
- k[t2[1]] = function(e2) {
274
- return this.$g(e2, t2[0], t2[1]);
275
- };
276
- }), O.extend = function(t2, e2) {
277
- return t2.$i || (t2(e2, _, O), t2.$i = true), O;
278
- }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
279
- return O(1e3 * t2);
280
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
134
+ var m2 = M2.prototype;
135
+ return (
136
+ (m2.parse = function (t2) {
137
+ ((this.$d = (function (t3) {
138
+ var e2 = t3.date,
139
+ n2 = t3.utc;
140
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
141
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
142
+ if (e2 instanceof Date) return new Date(e2);
143
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
144
+ var r2 = e2.match($);
145
+ if (r2) {
146
+ var i2 = r2[2] - 1 || 0,
147
+ s2 = (r2[7] || "0").substring(0, 3);
148
+ return n2
149
+ ? new Date(
150
+ Date.UTC(
151
+ r2[1],
152
+ i2,
153
+ r2[3] || 1,
154
+ r2[4] || 0,
155
+ r2[5] || 0,
156
+ r2[6] || 0,
157
+ s2,
158
+ ),
159
+ )
160
+ : new Date(
161
+ r2[1],
162
+ i2,
163
+ r2[3] || 1,
164
+ r2[4] || 0,
165
+ r2[5] || 0,
166
+ r2[6] || 0,
167
+ s2,
168
+ );
169
+ }
170
+ }
171
+ return new Date(e2);
172
+ })(t2)),
173
+ this.init());
174
+ }),
175
+ (m2.init = function () {
176
+ var t2 = this.$d;
177
+ ((this.$y = t2.getFullYear()),
178
+ (this.$M = t2.getMonth()),
179
+ (this.$D = t2.getDate()),
180
+ (this.$W = t2.getDay()),
181
+ (this.$H = t2.getHours()),
182
+ (this.$m = t2.getMinutes()),
183
+ (this.$s = t2.getSeconds()),
184
+ (this.$ms = t2.getMilliseconds()));
185
+ }),
186
+ (m2.$utils = function () {
187
+ return b;
188
+ }),
189
+ (m2.isValid = function () {
190
+ return !(this.$d.toString() === l);
191
+ }),
192
+ (m2.isSame = function (t2, e2) {
193
+ var n2 = O(t2);
194
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
195
+ }),
196
+ (m2.isAfter = function (t2, e2) {
197
+ return O(t2) < this.startOf(e2);
198
+ }),
199
+ (m2.isBefore = function (t2, e2) {
200
+ return this.endOf(e2) < O(t2);
201
+ }),
202
+ (m2.$g = function (t2, e2, n2) {
203
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
204
+ }),
205
+ (m2.unix = function () {
206
+ return Math.floor(this.valueOf() / 1e3);
207
+ }),
208
+ (m2.valueOf = function () {
209
+ return this.$d.getTime();
210
+ }),
211
+ (m2.startOf = function (t2, e2) {
212
+ var n2 = this,
213
+ r2 = !!b.u(e2) || e2,
214
+ f2 = b.p(t2),
215
+ l2 = function (t3, e3) {
216
+ var i2 = b.w(
217
+ n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3),
218
+ n2,
219
+ );
220
+ return r2 ? i2 : i2.endOf(a);
221
+ },
222
+ $2 = function (t3, e3) {
223
+ return b.w(
224
+ n2
225
+ .toDate()
226
+ [
227
+ t3
228
+ ].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59,
229
+ 999]).slice(e3)),
230
+ n2,
231
+ );
232
+ },
233
+ y2 = this.$W,
234
+ M3 = this.$M,
235
+ m3 = this.$D,
236
+ v2 = "set" + (this.$u ? "UTC" : "");
237
+ switch (f2) {
238
+ case h:
239
+ return r2 ? l2(1, 0) : l2(31, 11);
240
+ case c:
241
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
242
+ case o:
243
+ var g2 = this.$locale().weekStart || 0,
244
+ D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
245
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
246
+ case a:
247
+ case d:
248
+ return $2(v2 + "Hours", 0);
249
+ case u:
250
+ return $2(v2 + "Minutes", 1);
251
+ case s:
252
+ return $2(v2 + "Seconds", 2);
253
+ case i:
254
+ return $2(v2 + "Milliseconds", 3);
255
+ default:
256
+ return this.clone();
257
+ }
258
+ }),
259
+ (m2.endOf = function (t2) {
260
+ return this.startOf(t2, false);
261
+ }),
262
+ (m2.$set = function (t2, e2) {
263
+ var n2,
264
+ o2 = b.p(t2),
265
+ f2 = "set" + (this.$u ? "UTC" : ""),
266
+ l2 = ((n2 = {}),
267
+ (n2[a] = f2 + "Date"),
268
+ (n2[d] = f2 + "Date"),
269
+ (n2[c] = f2 + "Month"),
270
+ (n2[h] = f2 + "FullYear"),
271
+ (n2[u] = f2 + "Hours"),
272
+ (n2[s] = f2 + "Minutes"),
273
+ (n2[i] = f2 + "Seconds"),
274
+ (n2[r] = f2 + "Milliseconds"),
275
+ n2)[o2],
276
+ $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
277
+ if (o2 === c || o2 === h) {
278
+ var y2 = this.clone().set(d, 1);
279
+ (y2.$d[l2]($2),
280
+ y2.init(),
281
+ (this.$d = y2.set(
282
+ d,
283
+ Math.min(this.$D, y2.daysInMonth()),
284
+ ).$d));
285
+ } else l2 && this.$d[l2]($2);
286
+ return (this.init(), this);
287
+ }),
288
+ (m2.set = function (t2, e2) {
289
+ return this.clone().$set(t2, e2);
290
+ }),
291
+ (m2.get = function (t2) {
292
+ return this[b.p(t2)]();
293
+ }),
294
+ (m2.add = function (r2, f2) {
295
+ var d2,
296
+ l2 = this;
297
+ r2 = Number(r2);
298
+ var $2 = b.p(f2),
299
+ y2 = function (t2) {
300
+ var e2 = O(l2);
301
+ return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
302
+ };
303
+ if ($2 === c) return this.set(c, this.$M + r2);
304
+ if ($2 === h) return this.set(h, this.$y + r2);
305
+ if ($2 === a) return y2(1);
306
+ if ($2 === o) return y2(7);
307
+ var M3 =
308
+ ((d2 = {}), (d2[s] = e), (d2[u] = n), (d2[i] = t), d2)[$2] ||
309
+ 1,
310
+ m3 = this.$d.getTime() + r2 * M3;
311
+ return b.w(m3, this);
312
+ }),
313
+ (m2.subtract = function (t2, e2) {
314
+ return this.add(-1 * t2, e2);
315
+ }),
316
+ (m2.format = function (t2) {
317
+ var e2 = this,
318
+ n2 = this.$locale();
319
+ if (!this.isValid()) return n2.invalidDate || l;
320
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ",
321
+ i2 = b.z(this),
322
+ s2 = this.$H,
323
+ u2 = this.$m,
324
+ a2 = this.$M,
325
+ o2 = n2.weekdays,
326
+ c2 = n2.months,
327
+ f2 = n2.meridiem,
328
+ h2 = function (t3, n3, i3, s3) {
329
+ return (t3 && (t3[n3] || t3(e2, r2))) || i3[n3].slice(0, s3);
330
+ },
331
+ d2 = function (t3) {
332
+ return b.s(s2 % 12 || 12, t3, "0");
333
+ },
334
+ $2 =
335
+ f2 ||
336
+ function (t3, e3, n3) {
337
+ var r3 = t3 < 12 ? "AM" : "PM";
338
+ return n3 ? r3.toLowerCase() : r3;
339
+ };
340
+ return r2.replace(y, function (t3, r3) {
341
+ return (
342
+ r3 ||
343
+ (function (t4) {
344
+ switch (t4) {
345
+ case "YY":
346
+ return String(e2.$y).slice(-2);
347
+ case "YYYY":
348
+ return b.s(e2.$y, 4, "0");
349
+ case "M":
350
+ return a2 + 1;
351
+ case "MM":
352
+ return b.s(a2 + 1, 2, "0");
353
+ case "MMM":
354
+ return h2(n2.monthsShort, a2, c2, 3);
355
+ case "MMMM":
356
+ return h2(c2, a2);
357
+ case "D":
358
+ return e2.$D;
359
+ case "DD":
360
+ return b.s(e2.$D, 2, "0");
361
+ case "d":
362
+ return String(e2.$W);
363
+ case "dd":
364
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
365
+ case "ddd":
366
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
367
+ case "dddd":
368
+ return o2[e2.$W];
369
+ case "H":
370
+ return String(s2);
371
+ case "HH":
372
+ return b.s(s2, 2, "0");
373
+ case "h":
374
+ return d2(1);
375
+ case "hh":
376
+ return d2(2);
377
+ case "a":
378
+ return $2(s2, u2, true);
379
+ case "A":
380
+ return $2(s2, u2, false);
381
+ case "m":
382
+ return String(u2);
383
+ case "mm":
384
+ return b.s(u2, 2, "0");
385
+ case "s":
386
+ return String(e2.$s);
387
+ case "ss":
388
+ return b.s(e2.$s, 2, "0");
389
+ case "SSS":
390
+ return b.s(e2.$ms, 3, "0");
391
+ case "Z":
392
+ return i2;
393
+ }
394
+ return null;
395
+ })(t3) ||
396
+ i2.replace(":", "")
397
+ );
398
+ });
399
+ }),
400
+ (m2.utcOffset = function () {
401
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
402
+ }),
403
+ (m2.diff = function (r2, d2, l2) {
404
+ var $2,
405
+ y2 = this,
406
+ M3 = b.p(d2),
407
+ m3 = O(r2),
408
+ v2 = (m3.utcOffset() - this.utcOffset()) * e,
409
+ g2 = this - m3,
410
+ D2 = function () {
411
+ return b.m(y2, m3);
412
+ };
413
+ switch (M3) {
414
+ case h:
415
+ $2 = D2() / 12;
416
+ break;
417
+ case c:
418
+ $2 = D2();
419
+ break;
420
+ case f:
421
+ $2 = D2() / 3;
422
+ break;
423
+ case o:
424
+ $2 = (g2 - v2) / 6048e5;
425
+ break;
426
+ case a:
427
+ $2 = (g2 - v2) / 864e5;
428
+ break;
429
+ case u:
430
+ $2 = g2 / n;
431
+ break;
432
+ case s:
433
+ $2 = g2 / e;
434
+ break;
435
+ case i:
436
+ $2 = g2 / t;
437
+ break;
438
+ default:
439
+ $2 = g2;
440
+ }
441
+ return l2 ? $2 : b.a($2);
442
+ }),
443
+ (m2.daysInMonth = function () {
444
+ return this.endOf(c).$D;
445
+ }),
446
+ (m2.$locale = function () {
447
+ return D[this.$L];
448
+ }),
449
+ (m2.locale = function (t2, e2) {
450
+ if (!t2) return this.$L;
451
+ var n2 = this.clone(),
452
+ r2 = w(t2, e2, true);
453
+ return (r2 && (n2.$L = r2), n2);
454
+ }),
455
+ (m2.clone = function () {
456
+ return b.w(this.$d, this);
457
+ }),
458
+ (m2.toDate = function () {
459
+ return new Date(this.valueOf());
460
+ }),
461
+ (m2.toJSON = function () {
462
+ return this.isValid() ? this.toISOString() : null;
463
+ }),
464
+ (m2.toISOString = function () {
465
+ return this.$d.toISOString();
466
+ }),
467
+ (m2.toString = function () {
468
+ return this.$d.toUTCString();
469
+ }),
470
+ M2
471
+ );
472
+ })(),
473
+ k = _.prototype;
474
+ return (
475
+ (O.prototype = k),
476
+ [
477
+ ["$ms", r],
478
+ ["$s", i],
479
+ ["$m", s],
480
+ ["$H", u],
481
+ ["$W", a],
482
+ ["$M", c],
483
+ ["$y", h],
484
+ ["$D", d],
485
+ ].forEach(function (t2) {
486
+ k[t2[1]] = function (e2) {
487
+ return this.$g(e2, t2[0], t2[1]);
488
+ };
489
+ }),
490
+ (O.extend = function (t2, e2) {
491
+ return (t2.$i || (t2(e2, _, O), (t2.$i = true)), O);
492
+ }),
493
+ (O.locale = w),
494
+ (O.isDayjs = S),
495
+ (O.unix = function (t2) {
496
+ return O(1e3 * t2);
497
+ }),
498
+ (O.en = D[g]),
499
+ (O.Ls = D),
500
+ (O.p = {}),
501
+ O
502
+ );
281
503
  });
282
- }
504
+ },
283
505
  });
284
506
  export default require_dayjs_min();
285
507
  //# sourceMappingURL=dayjs.js.map