smart-web-ui 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 (120) hide show
  1. package/dist/BuildingList.js +8 -0
  2. package/dist/CategoryPieChart.js +435 -0
  3. package/dist/ChartModel.js +46 -0
  4. package/dist/ChartTable.js +162 -0
  5. package/dist/CircularPieChart.js +314 -0
  6. package/dist/CloseButtonA.js +39 -0
  7. package/dist/ColumnDiagram.js +352 -0
  8. package/dist/DataColumnDiagram.js +275 -0
  9. package/dist/DatePicker.js +142 -0
  10. package/dist/DateTimePicker.js +146 -0
  11. package/dist/DateYearPicker.js +152 -0
  12. package/dist/DayTimerShaft.js +894 -0
  13. package/dist/DoubleColumnDiagram.js +360 -0
  14. package/dist/DoubleLineChart.js +410 -0
  15. package/dist/DoubleStraightLineChart.js +405 -0
  16. package/dist/EffectLoading.js +15 -0
  17. package/dist/GradientCircularPieChart.js +372 -0
  18. package/dist/GradientPieChart.js +501 -0
  19. package/dist/HikPlayer.js +10 -0
  20. package/dist/ImaginaryAndRealLineChart.js +405 -0
  21. package/dist/InfiniteScrollingTable.js +2150 -0
  22. package/dist/JessibucaPlayer.js +181 -0
  23. package/dist/LineChart.js +279 -0
  24. package/dist/MenuOne.js +75 -0
  25. package/dist/MultiDataColumnDiagram.js +398 -0
  26. package/dist/MultigraphChart.js +392 -0
  27. package/dist/MultitermBorderColumnDiagram.js +384 -0
  28. package/dist/MultitermColumnDiagram.js +359 -0
  29. package/dist/MyButton.js +8 -0
  30. package/dist/MyInput.js +42 -0
  31. package/dist/OnlinePieChart.js +365 -0
  32. package/dist/PantiltControl.js +147 -0
  33. package/dist/PictorialChart.js +205 -0
  34. package/dist/PieChart.js +252 -0
  35. package/dist/PieChartLegendCustom.js +251 -0
  36. package/dist/PieChartOne.js +438 -0
  37. package/dist/PopupFrame.js +131 -0
  38. package/dist/RangTimePicker.js +160 -0
  39. package/dist/RangePicker.js +156 -0
  40. package/dist/SingleLineChart.js +405 -0
  41. package/dist/SplitPie.js +242 -0
  42. package/dist/SplitPieChart.js +294 -0
  43. package/dist/StacketColumnDiagram.js +345 -0
  44. package/dist/TechnologyBlueFrameworkOne.js +183 -0
  45. package/dist/TimerShaft.js +229 -0
  46. package/dist/ToroidalPieChart.js +318 -0
  47. package/dist/WordCloudOne.js +138 -0
  48. package/dist/WordCloudTwo.js +157 -0
  49. package/dist/chunks/BuildingList-CU-EXKgo.js +126 -0
  50. package/dist/chunks/HikPlayer-DKfQRkh6.js +422 -0
  51. package/dist/chunks/MyButton-DvqgvXGG.js +36 -0
  52. package/dist/chunks/_commonjsHelpers-C6fGbg64.js +6 -0
  53. package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  54. package/dist/chunks/dayjs.min-CQFNnJKC.js +285 -0
  55. package/dist/chunks/debounce-DmrysiyS.js +84 -0
  56. package/dist/chunks/index-CBkwld9S.js +43886 -0
  57. package/dist/chunks/index-CYrEZgNC.js +334 -0
  58. package/dist/chunks/isObject-Bhos3v62.js +33 -0
  59. package/dist/chunks/merge-H4ZkNr1T.js +487 -0
  60. package/dist/chunks/wordCloud-uiqgdIRk.js +737 -0
  61. package/dist/chunks/zh_CN-BUEgxmeh.js +79 -0
  62. package/dist/css/BuildingList-Bdnl0gBJ.css +1 -0
  63. package/dist/css/CategoryPieChart-DBMhOWSp.css +1 -0
  64. package/dist/css/ChartModel-Dv4h1lb5.css +1 -0
  65. package/dist/css/ChartTable-Cr0oTeRE.css +1 -0
  66. package/dist/css/CircularPieChart-C3BGd8fm.css +1 -0
  67. package/dist/css/CloseButtonA-DY2NFd49.css +1 -0
  68. package/dist/css/ColumnDiagram-Dis9ikD8.css +1 -0
  69. package/dist/css/DataColumnDiagram-BT2JWzYV.css +1 -0
  70. package/dist/css/DatePicker-BcnVF2a0.css +1 -0
  71. package/dist/css/DateTimePicker-ogqIcJbR.css +1 -0
  72. package/dist/css/DateYearPicker-Cxi6LOU5.css +1 -0
  73. package/dist/css/DayTimerShaft-CgF_vvOC.css +1 -0
  74. package/dist/css/DoubleColumnDiagram-BxutsIuM.css +1 -0
  75. package/dist/css/DoubleLineChart-BDAn7Vm_.css +1 -0
  76. package/dist/css/DoubleStraightLineChart-DIRVxSDN.css +1 -0
  77. package/dist/css/EffectLoading-Ctm_V9PA.css +1 -0
  78. package/dist/css/GradientCircularPieChart-DwvudWRO.css +1 -0
  79. package/dist/css/GradientPieChart-BIbCGRqo.css +1 -0
  80. package/dist/css/HikPlayer-CZ3Esf6X.css +1 -0
  81. package/dist/css/ImaginaryAndRealLineChart-DM6nwp5j.css +1 -0
  82. package/dist/css/InfiniteScrollingTable-DI-gbfBL.css +1 -0
  83. package/dist/css/JessibucaPlayer-DYHP4jB_.css +1 -0
  84. package/dist/css/LineChart-BMK43A6-.css +1 -0
  85. package/dist/css/MenuOne-DZagmMAX.css +1 -0
  86. package/dist/css/MultiDataColumnDiagram-D1yx69tf.css +1 -0
  87. package/dist/css/MultigraphChart-C4dh2No_.css +1 -0
  88. package/dist/css/MultitermBorderColumnDiagram-DAn4G2De.css +1 -0
  89. package/dist/css/MultitermColumnDiagram-CF0BvPJO.css +1 -0
  90. package/dist/css/MyButton-CE8oLA-0.css +1 -0
  91. package/dist/css/MyInput-CauB72eE.css +1 -0
  92. package/dist/css/OnlinePieChart-DjGjF_9i.css +1 -0
  93. package/dist/css/PantiltControl-DS0BWsLg.css +1 -0
  94. package/dist/css/PictorialChart-D_NmyxMl.css +1 -0
  95. package/dist/css/PieChart-ijJKQrDc.css +1 -0
  96. package/dist/css/PieChartLegendCustom-BIQtqA8m.css +1 -0
  97. package/dist/css/PieChartOne-D1gY-q_Q.css +1 -0
  98. package/dist/css/PopupFrame-BuPG741n.css +1 -0
  99. package/dist/css/RangTimePicker-BhS_Fhaj.css +1 -0
  100. package/dist/css/RangePicker-Cmdpil97.css +1 -0
  101. package/dist/css/SingleLineChart-YXl29ldj.css +1 -0
  102. package/dist/css/SplitPie-vGvTEPG-.css +1 -0
  103. package/dist/css/SplitPieChart-yTrBBQxd.css +1 -0
  104. package/dist/css/StacketColumnDiagram-BvMIqlC_.css +1 -0
  105. package/dist/css/TechnologyBlueFrameworkOne-CMF1mCbl.css +1 -0
  106. package/dist/css/TimerShaft-LaGF129n.css +1 -0
  107. package/dist/css/ToroidalPieChart-CcfTDUUR.css +1 -0
  108. package/dist/css/WordCloudOne-CsMA5RxS.css +1 -0
  109. package/dist/css/WordCloudTwo-LSvh51aP.css +1 -0
  110. package/dist/css/index-jBItPHyv.css +1 -0
  111. package/dist/favicon.svg +1 -0
  112. package/dist/index.js +151 -0
  113. package/package.json +51 -50
  114. package/dist/assets/fonts/D-DIN.otf +0 -0
  115. package/dist/assets/fonts/PingFangSC.woff2 +0 -0
  116. package/dist/assets/fonts/SourceHanSansCN-Regular.woff +0 -0
  117. package/dist/assets/fonts/ysbth.woff +0 -0
  118. package/dist/smart-web-ui.css +0 -1
  119. package/dist/smart-web-ui.es.js +0 -67
  120. package/dist/smart-web-ui.umd.js +0 -1
@@ -0,0 +1,285 @@
1
+ import { g as G } from "./_commonjsHelpers-C6fGbg64.js";
2
+ var W = { exports: {} }, K = W.exports, E;
3
+ function X() {
4
+ return E || (E = 1, function(V, et) {
5
+ (function(A, Y) {
6
+ V.exports = Y();
7
+ })(K, function() {
8
+ var A = 1e3, Y = 6e4, U = 36e5, I = "millisecond", S = "second", w = "minute", _ = "hour", M = "day", H = "week", m = "month", J = "quarter", y = "year", O = "date", Z = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|YYYY|YY|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, Q = { 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(s) {
9
+ var r = ["th", "st", "nd", "rd"], t = s % 100;
10
+ return "[" + s + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
11
+ } }, F = function(s, r, t) {
12
+ var n = String(s);
13
+ return !n || n.length >= r ? s : "" + Array(r + 1 - n.length).join(t) + s;
14
+ }, R = { s: F, z: function(s) {
15
+ var r = -s.utcOffset(), t = Math.abs(r), n = Math.floor(t / 60), e = t % 60;
16
+ return (r <= 0 ? "+" : "-") + F(n, 2, "0") + ":" + F(e, 2, "0");
17
+ }, m: function s(r, t) {
18
+ if (r.date() < t.date()) return -s(t, r);
19
+ var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, m), i = t - e < 0, u = r.clone().add(n + (i ? -1 : 1), m);
20
+ return +(-(n + (t - e) / (i ? e - u : u - e)) || 0);
21
+ }, a: function(s) {
22
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
23
+ }, p: function(s) {
24
+ return { M: m, y, w: H, d: M, D: O, h: _, m: w, s: S, ms: I, Q: J }[s] || String(s || "").toLowerCase().replace(/s$/, "");
25
+ }, u: function(s) {
26
+ return s === void 0;
27
+ } }, x = "en", D = {};
28
+ D[x] = Q;
29
+ var q = "$isDayjsObject", N = function(s) {
30
+ return s instanceof C || !(!s || !s[q]);
31
+ }, T = function s(r, t, n) {
32
+ var e;
33
+ if (!r) return x;
34
+ if (typeof r == "string") {
35
+ var i = r.toLowerCase();
36
+ D[i] && (e = i), t && (D[i] = t, e = i);
37
+ var u = r.split("-");
38
+ if (!e && u.length > 1) return s(u[0]);
39
+ } else {
40
+ var o = r.name;
41
+ D[o] = r, e = o;
42
+ }
43
+ return !n && e && (x = e), e || !n && x;
44
+ }, f = function(s, r) {
45
+ if (N(s)) return s.clone();
46
+ var t = typeof r == "object" ? r : {};
47
+ return t.date = s, t.args = arguments, new C(t);
48
+ }, a = R;
49
+ a.l = T, a.i = N, a.w = function(s, r) {
50
+ return f(s, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
51
+ };
52
+ var C = function() {
53
+ function s(t) {
54
+ this.$L = T(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[q] = !0;
55
+ }
56
+ var r = s.prototype;
57
+ return r.parse = function(t) {
58
+ this.$d = function(n) {
59
+ var e = n.date, i = n.utc;
60
+ if (e === null) return /* @__PURE__ */ new Date(NaN);
61
+ if (a.u(e)) return /* @__PURE__ */ new Date();
62
+ if (e instanceof Date) return new Date(e);
63
+ if (typeof e == "string" && !/Z$/i.test(e)) {
64
+ var u = e.match(B);
65
+ if (u) {
66
+ var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
67
+ return i ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
68
+ }
69
+ }
70
+ return new Date(e);
71
+ }(t), this.init();
72
+ }, r.init = function() {
73
+ var t = this.$d;
74
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
75
+ }, r.$utils = function() {
76
+ return a;
77
+ }, r.isValid = function() {
78
+ return this.$d.toString() !== Z;
79
+ }, r.isSame = function(t, n) {
80
+ var e = f(t);
81
+ return this.startOf(n) <= e && e <= this.endOf(n);
82
+ }, r.isAfter = function(t, n) {
83
+ return f(t) < this.startOf(n);
84
+ }, r.isBefore = function(t, n) {
85
+ return this.endOf(n) < f(t);
86
+ }, r.$g = function(t, n, e) {
87
+ return a.u(t) ? this[n] : this.set(e, t);
88
+ }, r.unix = function() {
89
+ return Math.floor(this.valueOf() / 1e3);
90
+ }, r.valueOf = function() {
91
+ return this.$d.getTime();
92
+ }, r.startOf = function(t, n) {
93
+ var e = this, i = !!a.u(n) || n, u = a.p(t), o = function(p, $) {
94
+ var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
95
+ return i ? v : v.endOf(M);
96
+ }, c = function(p, $) {
97
+ return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
98
+ }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
99
+ switch (u) {
100
+ case y:
101
+ return i ? o(1, 0) : o(31, 11);
102
+ case m:
103
+ return i ? o(1, d) : o(0, d + 1);
104
+ case H:
105
+ var g = this.$locale().weekStart || 0, k = (h < g ? h + 7 : h) - g;
106
+ return o(i ? l - k : l + (6 - k), d);
107
+ case M:
108
+ case O:
109
+ return c(b + "Hours", 0);
110
+ case _:
111
+ return c(b + "Minutes", 1);
112
+ case w:
113
+ return c(b + "Seconds", 2);
114
+ case S:
115
+ return c(b + "Milliseconds", 3);
116
+ default:
117
+ return this.clone();
118
+ }
119
+ }, r.endOf = function(t) {
120
+ return this.startOf(t, !1);
121
+ }, r.$set = function(t, n) {
122
+ var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[O] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[_] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[I] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (n - this.$W) : n;
123
+ if (i === m || i === y) {
124
+ var h = this.clone().set(O, 1);
125
+ h.$d[o](c), h.init(), this.$d = h.set(O, Math.min(this.$D, h.daysInMonth())).$d;
126
+ } else o && this.$d[o](c);
127
+ return this.init(), this;
128
+ }, r.set = function(t, n) {
129
+ return this.clone().$set(t, n);
130
+ }, r.get = function(t) {
131
+ return this[a.p(t)]();
132
+ }, r.add = function(t, n) {
133
+ var e, i = this;
134
+ t = Number(t);
135
+ var u = a.p(n), o = function(d) {
136
+ var l = f(i);
137
+ return a.w(l.date(l.date() + Math.round(d * t)), i);
138
+ };
139
+ if (u === m) return this.set(m, this.$M + t);
140
+ if (u === y) return this.set(y, this.$y + t);
141
+ if (u === M) return o(1);
142
+ if (u === H) return o(7);
143
+ var c = (e = {}, e[w] = Y, e[_] = U, e[S] = A, e)[u] || 1, h = this.$d.getTime() + t * c;
144
+ return a.w(h, this);
145
+ }, r.subtract = function(t, n) {
146
+ return this.add(-1 * t, n);
147
+ }, r.format = function(t) {
148
+ var n = this, e = this.$locale();
149
+ if (!this.isValid()) return e.invalidDate || Z;
150
+ var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, j, L) {
151
+ return $ && ($[v] || $(n, i)) || j[v].slice(0, L);
152
+ }, k = function($) {
153
+ return a.s(o % 12 || 12, $, "0");
154
+ }, p = b || function($, v, j) {
155
+ var L = $ < 12 ? "AM" : "PM";
156
+ return j ? L.toLowerCase() : L;
157
+ };
158
+ return i.replace(P, function($, v) {
159
+ return v || function(j) {
160
+ switch (j) {
161
+ case "YY":
162
+ return String(n.$y).slice(-2);
163
+ case "YYYY":
164
+ return a.s(n.$y, 4, "0");
165
+ case "M":
166
+ return h + 1;
167
+ case "MM":
168
+ return a.s(h + 1, 2, "0");
169
+ case "MMM":
170
+ return g(e.monthsShort, h, l, 3);
171
+ case "MMMM":
172
+ return g(l, h);
173
+ case "D":
174
+ return n.$D;
175
+ case "DD":
176
+ return a.s(n.$D, 2, "0");
177
+ case "d":
178
+ return String(n.$W);
179
+ case "dd":
180
+ return g(e.weekdaysMin, n.$W, d, 2);
181
+ case "ddd":
182
+ return g(e.weekdaysShort, n.$W, d, 3);
183
+ case "dddd":
184
+ return d[n.$W];
185
+ case "H":
186
+ return String(o);
187
+ case "HH":
188
+ return a.s(o, 2, "0");
189
+ case "h":
190
+ return k(1);
191
+ case "hh":
192
+ return k(2);
193
+ case "a":
194
+ return p(o, c, !0);
195
+ case "A":
196
+ return p(o, c, !1);
197
+ case "m":
198
+ return String(c);
199
+ case "mm":
200
+ return a.s(c, 2, "0");
201
+ case "s":
202
+ return String(n.$s);
203
+ case "ss":
204
+ return a.s(n.$s, 2, "0");
205
+ case "SSS":
206
+ return a.s(n.$ms, 3, "0");
207
+ case "Z":
208
+ return u;
209
+ }
210
+ return null;
211
+ }($) || u.replace(":", "");
212
+ });
213
+ }, r.utcOffset = function() {
214
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
215
+ }, r.diff = function(t, n, e) {
216
+ var i, u = this, o = a.p(n), c = f(t), h = (c.utcOffset() - this.utcOffset()) * Y, d = this - c, l = function() {
217
+ return a.m(u, c);
218
+ };
219
+ switch (o) {
220
+ case y:
221
+ i = l() / 12;
222
+ break;
223
+ case m:
224
+ i = l();
225
+ break;
226
+ case J:
227
+ i = l() / 3;
228
+ break;
229
+ case H:
230
+ i = (d - h) / 6048e5;
231
+ break;
232
+ case M:
233
+ i = (d - h) / 864e5;
234
+ break;
235
+ case _:
236
+ i = d / U;
237
+ break;
238
+ case w:
239
+ i = d / Y;
240
+ break;
241
+ case S:
242
+ i = d / A;
243
+ break;
244
+ default:
245
+ i = d;
246
+ }
247
+ return e ? i : a.a(i);
248
+ }, r.daysInMonth = function() {
249
+ return this.endOf(m).$D;
250
+ }, r.$locale = function() {
251
+ return D[this.$L];
252
+ }, r.locale = function(t, n) {
253
+ if (!t) return this.$L;
254
+ var e = this.clone(), i = T(t, n, !0);
255
+ return i && (e.$L = i), e;
256
+ }, r.clone = function() {
257
+ return a.w(this.$d, this);
258
+ }, r.toDate = function() {
259
+ return new Date(this.valueOf());
260
+ }, r.toJSON = function() {
261
+ return this.isValid() ? this.toISOString() : null;
262
+ }, r.toISOString = function() {
263
+ return this.$d.toISOString();
264
+ }, r.toString = function() {
265
+ return this.$d.toUTCString();
266
+ }, s;
267
+ }(), z = C.prototype;
268
+ return f.prototype = z, [["$ms", I], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", y], ["$D", O]].forEach(function(s) {
269
+ z[s[1]] = function(r) {
270
+ return this.$g(r, s[0], s[1]);
271
+ };
272
+ }), f.extend = function(s, r) {
273
+ return s.$i || (s(r, C, f), s.$i = !0), f;
274
+ }, f.locale = T, f.isDayjs = N, f.unix = function(s) {
275
+ return f(1e3 * s);
276
+ }, f.en = D[x], f.Ls = D, f.p = {}, f;
277
+ });
278
+ }(W)), W.exports;
279
+ }
280
+ var tt = X();
281
+ const nt = /* @__PURE__ */ G(tt);
282
+ export {
283
+ nt as d,
284
+ X as r
285
+ };
@@ -0,0 +1,84 @@
1
+ import { a as C, b as M, i as I, r as N } from "./isObject-Bhos3v62.js";
2
+ var j = "[object Symbol]";
3
+ function B(e) {
4
+ return typeof e == "symbol" || C(e) && M(e) == j;
5
+ }
6
+ var R = /\s/;
7
+ function $(e) {
8
+ for (var r = e.length; r-- && R.test(e.charAt(r)); )
9
+ ;
10
+ return r;
11
+ }
12
+ var F = /^\s+/;
13
+ function _(e) {
14
+ return e && e.slice(0, $(e) + 1).replace(F, "");
15
+ }
16
+ var k = NaN, D = /^[-+]0x[0-9a-f]+$/i, G = /^0b[01]+$/i, H = /^0o[0-7]+$/i, P = parseInt;
17
+ function S(e) {
18
+ if (typeof e == "number")
19
+ return e;
20
+ if (B(e))
21
+ return k;
22
+ if (I(e)) {
23
+ var r = typeof e.valueOf == "function" ? e.valueOf() : e;
24
+ e = I(r) ? r + "" : r;
25
+ }
26
+ if (typeof e != "string")
27
+ return e === 0 ? e : +e;
28
+ e = _(e);
29
+ var t = G.test(e);
30
+ return t || H.test(e) ? P(e.slice(2), t ? 2 : 8) : D.test(e) ? k : +e;
31
+ }
32
+ var y = function() {
33
+ return N.Date.now();
34
+ }, U = "Expected a function", X = Math.max, q = Math.min;
35
+ function J(e, r, t) {
36
+ var u, o, l, s, i, f, c = 0, h = !1, d = !1, T = !0;
37
+ if (typeof e != "function")
38
+ throw new TypeError(U);
39
+ r = S(r) || 0, I(t) && (h = !!t.leading, d = "maxWait" in t, l = d ? X(S(t.maxWait) || 0, r) : l, T = "trailing" in t ? !!t.trailing : T);
40
+ function b(n) {
41
+ var a = u, m = o;
42
+ return u = o = void 0, c = n, s = e.apply(m, a), s;
43
+ }
44
+ function O(n) {
45
+ return c = n, i = setTimeout(g, r), h ? b(n) : s;
46
+ }
47
+ function W(n) {
48
+ var a = n - f, m = n - c, E = r - a;
49
+ return d ? q(E, l - m) : E;
50
+ }
51
+ function p(n) {
52
+ var a = n - f, m = n - c;
53
+ return f === void 0 || a >= r || a < 0 || d && m >= l;
54
+ }
55
+ function g() {
56
+ var n = y();
57
+ if (p(n))
58
+ return v(n);
59
+ i = setTimeout(g, W(n));
60
+ }
61
+ function v(n) {
62
+ return i = void 0, T && u ? b(n) : (u = o = void 0, s);
63
+ }
64
+ function L() {
65
+ i !== void 0 && clearTimeout(i), c = 0, u = f = o = i = void 0;
66
+ }
67
+ function A() {
68
+ return i === void 0 ? s : v(y());
69
+ }
70
+ function x() {
71
+ var n = y(), a = p(n);
72
+ if (u = arguments, o = this, f = n, a) {
73
+ if (i === void 0)
74
+ return O(f);
75
+ if (d)
76
+ return clearTimeout(i), i = setTimeout(g, r), b(f);
77
+ }
78
+ return i === void 0 && (i = setTimeout(g, r)), s;
79
+ }
80
+ return x.cancel = L, x.flush = A, x;
81
+ }
82
+ export {
83
+ J as d
84
+ };