@adiba-banking-cloud/backoffice 0.0.102 → 0.0.104

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.
@@ -0,0 +1,925 @@
1
+ import { g as getDefaultExportFromCjs } from './index-BfazjC7j.js';
2
+
3
+ function _mergeNamespaces(n, m) {
4
+ m.forEach(function (e) {
5
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
+ if (k !== 'default' && !(k in n)) {
7
+ var d = Object.getOwnPropertyDescriptor(e, k);
8
+ Object.defineProperty(n, k, d.get ? d : {
9
+ enumerable: true,
10
+ get: function () { return e[k]; }
11
+ });
12
+ }
13
+ });
14
+ });
15
+ return Object.freeze(n);
16
+ }
17
+
18
+ var heatmap$3 = {exports: {}};
19
+
20
+ var heatmap$2 = heatmap$3.exports;
21
+ var hasRequiredHeatmap;
22
+ function requireHeatmap() {
23
+ if (hasRequiredHeatmap) return heatmap$3.exports;
24
+ hasRequiredHeatmap = 1;
25
+ (function (module, exports) {
26
+ !
27
+ /**
28
+ * Highmaps JS v12.4.0 (2025-09-04)
29
+ * @module highcharts/modules/heatmap
30
+ * @requires highcharts
31
+ *
32
+ * (c) 2009-2025 Torstein Honsi
33
+ *
34
+ * License: www.highcharts.com/license
35
+ */
36
+ function (t, e) {
37
+ module.exports = e(t._Highcharts, t._Highcharts.Axis, t._Highcharts.Color, t._Highcharts.LegendSymbol, t._Highcharts.SeriesRegistry, t._Highcharts.SVGElement, t._Highcharts.SVGRenderer) ;
38
+ }("undefined" == typeof window ? heatmap$2 : window, (t, e, s, i, o, r, l) => (() => {
39
+
40
+ var a,
41
+ n,
42
+ h,
43
+ d = {
44
+ 28: t => {
45
+ t.exports = r;
46
+ },
47
+ 500: t => {
48
+ t.exports = i;
49
+ },
50
+ 512: t => {
51
+ t.exports = o;
52
+ },
53
+ 532: t => {
54
+ t.exports = e;
55
+ },
56
+ 540: t => {
57
+ t.exports = l;
58
+ },
59
+ 620: t => {
60
+ t.exports = s;
61
+ },
62
+ 944: e => {
63
+ e.exports = t;
64
+ }
65
+ },
66
+ p = {};
67
+ function c(t) {
68
+ var e = p[t];
69
+ if (void 0 !== e) return e.exports;
70
+ var s = p[t] = {
71
+ exports: {}
72
+ };
73
+ return d[t](s, s.exports, c), s.exports;
74
+ }
75
+ c.n = t => {
76
+ var e = t && t.__esModule ? () => t.default : () => t;
77
+ return c.d(e, {
78
+ a: e
79
+ }), e;
80
+ }, c.d = (t, e) => {
81
+ for (var s in e) c.o(e, s) && !c.o(t, s) && Object.defineProperty(t, s, {
82
+ enumerable: true,
83
+ get: e[s]
84
+ });
85
+ }, c.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
86
+ var u = {};
87
+ c.d(u, {
88
+ default: () => tM
89
+ });
90
+ var g = c(944),
91
+ m = c.n(g),
92
+ f = c(532),
93
+ x = c.n(f),
94
+ y = c(620),
95
+ b = c.n(y);
96
+ let {
97
+ parse: v
98
+ } = b(),
99
+ {
100
+ addEvent: C,
101
+ extend: A,
102
+ merge: M,
103
+ pick: w,
104
+ splat: L
105
+ } = m();
106
+ !function (t) {
107
+ let e;
108
+ function s() {
109
+ let {
110
+ userOptions: t
111
+ } = this;
112
+ this.colorAxis = [], t.colorAxis && (t.colorAxis = L(t.colorAxis), t.colorAxis.map(t => new e(this, t)));
113
+ }
114
+ function i(t) {
115
+ let e = this.chart.colorAxis || [],
116
+ s = e => {
117
+ let s = t.allItems.indexOf(e);
118
+ -1 !== s && (this.destroyItem(t.allItems[s]), t.allItems.splice(s, 1));
119
+ },
120
+ i = [],
121
+ o,
122
+ r;
123
+ for (e.forEach(function (t) {
124
+ o = t.options, o?.showInLegend && (o.dataClasses && o.visible ? i = i.concat(t.getDataClassLegendSymbols()) : o.visible && i.push(t), t.series.forEach(function (t) {
125
+ (!t.options.showInLegend || o.dataClasses) && ("point" === t.options.legendType ? t.points.forEach(function (t) {
126
+ s(t);
127
+ }) : s(t));
128
+ }));
129
+ }), r = i.length; r--;) t.allItems.unshift(i[r]);
130
+ }
131
+ function o(t) {
132
+ t.visible && t.item.legendColor && t.item.legendItem.symbol.attr({
133
+ fill: t.item.legendColor
134
+ });
135
+ }
136
+ function r(t) {
137
+ this.chart.colorAxis?.forEach(e => {
138
+ e.update({}, t.redraw);
139
+ });
140
+ }
141
+ function l() {
142
+ (this.chart.colorAxis?.length || this.colorAttribs) && this.translateColors();
143
+ }
144
+ function a() {
145
+ let t = this.axisTypes;
146
+ t ? -1 === t.indexOf("colorAxis") && t.push("colorAxis") : this.axisTypes = ["colorAxis"];
147
+ }
148
+ function n(t) {
149
+ let e = this,
150
+ s = t ? "show" : "hide";
151
+ e.visible = e.options.visible = !!t, ["graphic", "dataLabel"].forEach(function (t) {
152
+ e[t] && e[t][s]();
153
+ }), this.series.buildKDTree();
154
+ }
155
+ function h() {
156
+ let t = this,
157
+ e = this.getPointsCollection(),
158
+ s = this.options.nullColor,
159
+ i = this.colorAxis,
160
+ o = this.colorKey;
161
+ e.forEach(e => {
162
+ let r = e.getNestedProperty(o),
163
+ l = e.options.color || (e.isNull || null === e.value ? s : i && void 0 !== r ? i.toColor(r, e) : e.color || t.color);
164
+ l && e.color !== l && (e.color = l, "point" === t.options.legendType && e.legendItem && e.legendItem.label && t.chart.legend.colorizeItem(e, e.visible));
165
+ });
166
+ }
167
+ function d() {
168
+ this.elem.attr("fill", v(this.start).tweenTo(v(this.end), this.pos), void 0, true);
169
+ }
170
+ function p() {
171
+ this.elem.attr("stroke", v(this.start).tweenTo(v(this.end), this.pos), void 0, true);
172
+ }
173
+ t.compose = function (t, c, u, g, m) {
174
+ let f = c.prototype,
175
+ x = u.prototype,
176
+ y = m.prototype;
177
+ f.collectionsWithUpdate.includes("colorAxis") || (e = t, f.collectionsWithUpdate.push("colorAxis"), f.collectionsWithInit.colorAxis = [f.addColorAxis], C(c, "afterCreateAxes", s), function (t) {
178
+ let s = t.prototype.createAxis;
179
+ t.prototype.createAxis = function (t, i) {
180
+ if ("colorAxis" !== t) return s.apply(this, arguments);
181
+ let o = new e(this, M(i.axis, {
182
+ index: this[t].length,
183
+ isX: false
184
+ }));
185
+ return this.isDirtyLegend = true, this.axes.forEach(t => {
186
+ t.series = [];
187
+ }), this.series.forEach(t => {
188
+ t.bindAxes(), t.isDirtyData = true;
189
+ }), w(i.redraw, true) && this.redraw(i.animation), o;
190
+ };
191
+ }(c), x.fillSetter = d, x.strokeSetter = p, C(g, "afterGetAllItems", i), C(g, "afterColorizeItem", o), C(g, "afterUpdate", r), A(y, {
192
+ optionalAxis: "colorAxis",
193
+ translateColors: h
194
+ }), A(y.pointClass.prototype, {
195
+ setVisible: n
196
+ }), C(m, "afterTranslate", l, {
197
+ order: 1
198
+ }), C(m, "bindAxes", a));
199
+ }, t.pointSetVisible = n;
200
+ }(a || (a = {}));
201
+ let k = a,
202
+ {
203
+ parse: I
204
+ } = b(),
205
+ {
206
+ merge: S
207
+ } = m();
208
+ !function (t) {
209
+ t.initDataClasses = function (t) {
210
+ let e = this.chart,
211
+ s = this.legendItem = this.legendItem || {},
212
+ i = this.options,
213
+ o = t.dataClasses || [],
214
+ r,
215
+ l,
216
+ a = e.options.chart.colorCount,
217
+ n = 0,
218
+ h;
219
+ this.dataClasses = l = [], s.labels = [];
220
+ for (let t = 0, s = o.length; t < s; ++t) r = S(r = o[t]), l.push(r), (e.styledMode || !r.color) && ("category" === i.dataClassColor ? (e.styledMode || (a = (h = e.options.colors || []).length, r.color = h[n]), r.colorIndex = n, ++n === a && (n = 0)) : r.color = I(i.minColor).tweenTo(I(i.maxColor), s < 2 ? .5 : t / (s - 1)));
221
+ }, t.initStops = function () {
222
+ let t = this.options,
223
+ e = this.stops = t.stops || [[0, t.minColor || ""], [1, t.maxColor || ""]];
224
+ for (let t = 0, s = e.length; t < s; ++t) e[t].color = I(e[t][1]);
225
+ }, t.normalizedValue = function (t) {
226
+ let e = this.max || 0,
227
+ s = this.min || 0;
228
+ return this.logarithmic && (t = this.logarithmic.log2lin(t)), 1 - (e - t) / (e - s || 1);
229
+ }, t.toColor = function (t, e) {
230
+ let s,
231
+ i,
232
+ o,
233
+ r,
234
+ l,
235
+ a,
236
+ n = this.dataClasses,
237
+ h = this.stops;
238
+ if (n) {
239
+ for (a = n.length; a--;) if (i = (l = n[a]).from, o = l.to, (void 0 === i || t >= i) && (void 0 === o || t <= o)) {
240
+ r = l.color, e && (e.dataClass = a, e.colorIndex = l.colorIndex);
241
+ break;
242
+ }
243
+ } else {
244
+ for (s = this.normalizedValue(t), a = h.length; a-- && !(s > h[a][0]););
245
+ i = h[a] || h[a + 1], s = 1 - ((o = h[a + 1] || i)[0] - s) / (o[0] - i[0] || 1), r = i.color.tweenTo(o.color, s);
246
+ }
247
+ return r;
248
+ };
249
+ }(n || (n = {}));
250
+ let P = n;
251
+ var T = c(500),
252
+ D = c.n(T),
253
+ E = c(512),
254
+ V = c.n(E);
255
+ let {
256
+ defaultOptions: H
257
+ } = m(),
258
+ {
259
+ series: O
260
+ } = V(),
261
+ {
262
+ defined: z,
263
+ extend: R,
264
+ fireEvent: G,
265
+ isArray: _,
266
+ isNumber: W,
267
+ merge: N,
268
+ pick: K,
269
+ relativeLength: X
270
+ } = m();
271
+ H.colorAxis = N(H.xAxis, {
272
+ lineWidth: 0,
273
+ minPadding: 0,
274
+ maxPadding: 0,
275
+ gridLineColor: "#ffffff",
276
+ gridLineWidth: 1,
277
+ tickPixelInterval: 72,
278
+ startOnTick: true,
279
+ endOnTick: true,
280
+ offset: 0,
281
+ marker: {
282
+ animation: {
283
+ duration: 50
284
+ },
285
+ width: .01,
286
+ color: "#999999"
287
+ },
288
+ labels: {
289
+ distance: 8,
290
+ overflow: "justify",
291
+ rotation: 0
292
+ },
293
+ minColor: "#e6e9ff",
294
+ maxColor: "#0022ff",
295
+ tickLength: 5,
296
+ showInLegend: true
297
+ });
298
+ class j extends x() {
299
+ static compose(t, e, s, i) {
300
+ k.compose(j, t, e, s, i);
301
+ }
302
+ constructor(t, e) {
303
+ super(t, e), this.coll = "colorAxis", this.visible = true, this.init(t, e);
304
+ }
305
+ init(t, e) {
306
+ let s = t.options.legend || {},
307
+ i = e.layout ? "vertical" !== e.layout : "vertical" !== s.layout;
308
+ this.side = e.side || i ? 2 : 1, this.reversed = e.reversed, this.opposite = !i, super.init(t, e, "colorAxis"), this.userOptions = e, _(t.userOptions.colorAxis) && (t.userOptions.colorAxis[this.index] = e), e.dataClasses && this.initDataClasses(e), this.initStops(), this.horiz = i, this.zoomEnabled = false;
309
+ }
310
+ hasData() {
311
+ return !!(this.tickPositions || []).length;
312
+ }
313
+ setTickPositions() {
314
+ if (!this.dataClasses) return super.setTickPositions();
315
+ }
316
+ setOptions(t) {
317
+ let e = N(H.colorAxis, t, {
318
+ showEmpty: false,
319
+ title: null,
320
+ visible: this.chart.options.legend.enabled && false !== t.visible
321
+ });
322
+ super.setOptions(e), this.options.crosshair = this.options.marker;
323
+ }
324
+ setAxisSize() {
325
+ let t = this.chart,
326
+ e = this.legendItem?.symbol,
327
+ {
328
+ width: s,
329
+ height: i
330
+ } = this.getSize();
331
+ e && (this.left = +e.attr("x"), this.top = +e.attr("y"), this.width = s = +e.attr("width"), this.height = i = +e.attr("height"), this.right = t.chartWidth - this.left - s, this.bottom = t.chartHeight - this.top - i, this.pos = this.horiz ? this.left : this.top), this.len = (this.horiz ? s : i) || j.defaultLegendLength;
332
+ }
333
+ getOffset() {
334
+ let t = this.legendItem?.group,
335
+ e = this.chart.axisOffset[this.side];
336
+ if (t) {
337
+ this.axisParent = t, super.getOffset();
338
+ let s = this.chart.legend;
339
+ s.allItems.forEach(function (t) {
340
+ t instanceof j && t.drawLegendSymbol(s, t);
341
+ }), s.render(), this.chart.getMargins(true), this.chart.series.some(t => t.isDrilling) || (this.isDirty = true), this.added || (this.added = true), this.labelLeft = 0, this.labelRight = this.width, this.chart.axisOffset[this.side] = e;
342
+ }
343
+ }
344
+ setLegendColor() {
345
+ let t = this.horiz,
346
+ e = this.reversed,
347
+ s = +!!e,
348
+ i = +!e,
349
+ o = t ? [s, 0, i, 0] : [0, i, 0, s];
350
+ this.legendColor = {
351
+ linearGradient: {
352
+ x1: o[0],
353
+ y1: o[1],
354
+ x2: o[2],
355
+ y2: o[3]
356
+ },
357
+ stops: this.stops
358
+ };
359
+ }
360
+ drawLegendSymbol(t, e) {
361
+ let s = e.legendItem || {},
362
+ i = t.padding,
363
+ o = t.options,
364
+ r = this.options.labels,
365
+ l = K(o.itemDistance, 10),
366
+ a = this.horiz,
367
+ {
368
+ width: n,
369
+ height: h
370
+ } = this.getSize(),
371
+ d = K(o.labelPadding, a ? 16 : 30);
372
+ this.setLegendColor(), s.symbol || (s.symbol = this.chart.renderer.symbol("roundedRect").attr({
373
+ r: o.symbolRadius ?? 3,
374
+ zIndex: 1
375
+ }).add(s.group)), s.symbol.attr({
376
+ x: 0,
377
+ y: (t.baseline || 0) - 11,
378
+ width: n,
379
+ height: h
380
+ }), s.labelWidth = n + i + (a ? l : K(r.x, r.distance) + (this.maxLabelLength || 0)), s.labelHeight = h + i + (a ? d : 0);
381
+ }
382
+ setState(t) {
383
+ this.series.forEach(function (e) {
384
+ e.setState(t);
385
+ });
386
+ }
387
+ setVisible() {}
388
+ getSeriesExtremes() {
389
+ let t = this.series,
390
+ e,
391
+ s,
392
+ i,
393
+ o,
394
+ r = t.length;
395
+ for (this.dataMin = 1 / 0, this.dataMax = -1 / 0; r--;) {
396
+ for (let l of (s = (o = t[r]).colorKey = K(o.options.colorKey, o.colorKey, o.pointValKey, o.zoneAxis, "y"), i = o[s + "Min"] && o[s + "Max"], [s, "value", "y"])) if ((e = o.getColumn(l)).length) break;
397
+ if (i) o.minColorValue = o[s + "Min"], o.maxColorValue = o[s + "Max"];else {
398
+ let t = O.prototype.getExtremes.call(o, e);
399
+ o.minColorValue = t.dataMin, o.maxColorValue = t.dataMax;
400
+ }
401
+ z(o.minColorValue) && z(o.maxColorValue) && (this.dataMin = Math.min(this.dataMin, o.minColorValue), this.dataMax = Math.max(this.dataMax, o.maxColorValue)), i || O.prototype.applyExtremes.call(o);
402
+ }
403
+ }
404
+ drawCrosshair(t, e) {
405
+ let s,
406
+ i = this.legendItem || {},
407
+ o = e?.plotX,
408
+ r = e?.plotY,
409
+ l = this.pos,
410
+ a = this.len;
411
+ e && ((s = this.toPixels(e.getNestedProperty(e.series.colorKey))) < l ? s = l - 2 : s > l + a && (s = l + a + 2), e.plotX = s, e.plotY = this.len - s, super.drawCrosshair(t, e), e.plotX = o, e.plotY = r, this.cross && !this.cross.addedToColorAxis && i.group && (this.cross.addClass("highcharts-coloraxis-marker").add(i.group), this.cross.addedToColorAxis = true, this.chart.styledMode || "object" != typeof this.crosshair || this.cross.attr({
412
+ fill: this.crosshair.color
413
+ })));
414
+ }
415
+ getPlotLinePath(t) {
416
+ let e = this.left,
417
+ s = t.translatedValue,
418
+ i = this.top;
419
+ return W(s) ? this.horiz ? [["M", s - 4, i - 6], ["L", s + 4, i - 6], ["L", s, i], ["Z"]] : [["M", e, s], ["L", e - 6, s + 6], ["L", e - 6, s - 6], ["Z"]] : super.getPlotLinePath(t);
420
+ }
421
+ update(t, e) {
422
+ let s = this.chart.legend;
423
+ this.series.forEach(t => {
424
+ t.isDirtyData = true;
425
+ }), (t.dataClasses && s.allItems || this.dataClasses) && this.destroyItems(), super.update(t, e), this.legendItem?.label && (this.setLegendColor(), s.colorizeItem(this, true));
426
+ }
427
+ destroyItems() {
428
+ let t = this.chart,
429
+ e = this.legendItem || {};
430
+ if (e.label) t.legend.destroyItem(this);else if (e.labels) for (let s of e.labels) t.legend.destroyItem(s);
431
+ t.isDirtyLegend = true;
432
+ }
433
+ destroy() {
434
+ this.chart.isDirtyLegend = true, this.destroyItems(), super.destroy(...[].slice.call(arguments));
435
+ }
436
+ remove(t) {
437
+ this.destroyItems(), super.remove(t);
438
+ }
439
+ getDataClassLegendSymbols() {
440
+ let t,
441
+ e = this,
442
+ s = e.chart,
443
+ i = e.legendItem && e.legendItem.labels || [],
444
+ o = s.options.legend,
445
+ r = K(o.valueDecimals, -1),
446
+ l = K(o.valueSuffix, ""),
447
+ a = t => e.series.reduce((e, s) => (e.push(...s.points.filter(e => e.dataClass === t)), e), []);
448
+ return i.length || e.dataClasses.forEach((o, n) => {
449
+ let h = o.from,
450
+ d = o.to,
451
+ {
452
+ numberFormatter: p
453
+ } = s,
454
+ c = true;
455
+ t = "", void 0 === h ? t = "< " : void 0 === d && (t = "> "), void 0 !== h && (t += p(h, r) + l), void 0 !== h && void 0 !== d && (t += " - "), void 0 !== d && (t += p(d, r) + l), i.push(R({
456
+ chart: s,
457
+ name: t,
458
+ options: {},
459
+ drawLegendSymbol: D().rectangle,
460
+ visible: true,
461
+ isDataClass: true,
462
+ setState: t => {
463
+ for (let e of a(n)) e.setState(t);
464
+ },
465
+ setVisible: function () {
466
+ this.visible = c = e.visible = !c;
467
+ let t = [];
468
+ for (let e of a(n)) e.setVisible(c), e.hiddenInDataClass = !c, -1 === t.indexOf(e.series) && t.push(e.series);
469
+ s.legend.colorizeItem(this, c), t.forEach(t => {
470
+ G(t, "afterDataClassLegendClick");
471
+ });
472
+ }
473
+ }, o));
474
+ }), i;
475
+ }
476
+ getSize() {
477
+ let {
478
+ chart: t,
479
+ horiz: e
480
+ } = this,
481
+ {
482
+ height: s,
483
+ width: i
484
+ } = this.options,
485
+ {
486
+ legend: o
487
+ } = t.options;
488
+ return {
489
+ width: K(z(i) ? X(i, t.chartWidth) : void 0, o?.symbolWidth, e ? j.defaultLegendLength : 12),
490
+ height: K(z(s) ? X(s, t.chartHeight) : void 0, o?.symbolHeight, e ? 12 : j.defaultLegendLength)
491
+ };
492
+ }
493
+ }
494
+ j.defaultLegendLength = 200, j.keepProps = ["legendItem"], R(j.prototype, P), Array.prototype.push.apply(x().keepProps, j.keepProps); /**
495
+ * @license Highcharts JS v12.4.0 (2025-09-04)
496
+ * @module highcharts/modules/color-axis
497
+ * @requires highcharts
498
+ *
499
+ * ColorAxis module
500
+ *
501
+ * (c) 2012-2025 Pawel Potaczek
502
+ *
503
+ * License: www.highcharts.com/license
504
+ */
505
+ let F = m();
506
+ F.ColorAxis = F.ColorAxis || j, F.ColorAxis.compose(F.Chart, F.Fx, F.Legend, F.Series);
507
+ var U = c(28),
508
+ Y = c.n(U);
509
+ let {
510
+ column: {
511
+ prototype: Z
512
+ }
513
+ } = V().seriesTypes,
514
+ {
515
+ addEvent: q,
516
+ defined: $
517
+ } = m();
518
+ !function (t) {
519
+ function e(t) {
520
+ let e = this.series,
521
+ s = e.chart.renderer;
522
+ this.moveToTopOnHover && this.graphic && (e.stateMarkerGraphic || (e.stateMarkerGraphic = new (Y())(s, "use").css({
523
+ pointerEvents: "none"
524
+ }).add(this.graphic.parentGroup)), t?.state === "hover" ? (this.graphic.attr({
525
+ id: this.id
526
+ }), e.stateMarkerGraphic.attr({
527
+ href: `${s.url}#${this.id}`,
528
+ visibility: "visible"
529
+ })) : e.stateMarkerGraphic.attr({
530
+ href: ""
531
+ }));
532
+ }
533
+ t.pointMembers = {
534
+ dataLabelOnNull: true,
535
+ moveToTopOnHover: true,
536
+ isValid: function () {
537
+ return null !== this.value && this.value !== 1 / 0 && this.value !== -1 / 0 && (void 0 === this.value || !isNaN(this.value));
538
+ }
539
+ }, t.seriesMembers = {
540
+ colorKey: "value",
541
+ axisTypes: ["xAxis", "yAxis", "colorAxis"],
542
+ parallelArrays: ["x", "y", "value"],
543
+ pointArrayMap: ["value"],
544
+ trackerGroups: ["group", "markerGroup", "dataLabelsGroup"],
545
+ colorAttribs: function (t) {
546
+ let e = {};
547
+ return $(t.color) && (!t.state || "normal" === t.state) && (e[this.colorProp || "fill"] = t.color), e;
548
+ },
549
+ pointAttribs: Z.pointAttribs
550
+ }, t.compose = function (t) {
551
+ return q(t.prototype.pointClass, "afterSetState", e), t;
552
+ };
553
+ }(h || (h = {}));
554
+ let B = h,
555
+ {
556
+ scatter: {
557
+ prototype: {
558
+ pointClass: J
559
+ }
560
+ }
561
+ } = V().seriesTypes,
562
+ {
563
+ clamp: Q,
564
+ defined: tt,
565
+ extend: te,
566
+ pick: ts
567
+ } = m();
568
+ class ti extends J {
569
+ applyOptions(t, e) {
570
+ return (this.isNull || null === this.value) && delete this.color, super.applyOptions(t, e), this.formatPrefix = this.isNull || null === this.value ? "null" : "point", this;
571
+ }
572
+ getCellAttributes() {
573
+ let t = this.series,
574
+ e = t.options,
575
+ s = (e.colsize || 1) / 2,
576
+ i = (e.rowsize || 1) / 2,
577
+ o = t.xAxis,
578
+ r = t.yAxis,
579
+ l = this.options.marker || t.options.marker,
580
+ a = t.pointPlacementToXValue(),
581
+ n = ts(this.pointPadding, e.pointPadding, 0),
582
+ h = {
583
+ x1: Q(Math.round(o.len - o.translate(this.x - s, false, true, false, true, -a)), -o.len, 2 * o.len),
584
+ x2: Q(Math.round(o.len - o.translate(this.x + s, false, true, false, true, -a)), -o.len, 2 * o.len),
585
+ y1: Q(Math.round(r.translate(this.y - i, false, true, false, true)), -r.len, 2 * r.len),
586
+ y2: Q(Math.round(r.translate(this.y + i, false, true, false, true)), -r.len, 2 * r.len)
587
+ };
588
+ for (let t of [["width", "x"], ["height", "y"]]) {
589
+ let e = t[0],
590
+ s = t[1],
591
+ i = s + "1",
592
+ a = s + "2",
593
+ d = Math.abs(h[i] - h[a]),
594
+ p = l && l.lineWidth || 0,
595
+ c = Math.abs(h[i] + h[a]) / 2,
596
+ u = l && l[e];
597
+ if (tt(u) && u < d) {
598
+ let t = u / 2 + p / 2;
599
+ h[i] = c - t, h[a] = c + t;
600
+ }
601
+ n && (("x" === s && o.reversed || "y" === s && !r.reversed) && (i = a, a = s + "1"), h[i] += n, h[a] -= n);
602
+ }
603
+ return h;
604
+ }
605
+ haloPath(t) {
606
+ if (!t) return [];
607
+ let {
608
+ x: e = 0,
609
+ y: s = 0,
610
+ width: i = 0,
611
+ height: o = 0
612
+ } = this.shapeArgs || {};
613
+ return [["M", e - t, s - t], ["L", e - t, s + o + t], ["L", e + i + t, s + o + t], ["L", e + i + t, s - t], ["Z"]];
614
+ }
615
+ isValid() {
616
+ return this.value !== 1 / 0 && this.value !== -1 / 0;
617
+ }
618
+ }
619
+ te(ti.prototype, {
620
+ dataLabelOnNull: true,
621
+ moveToTopOnHover: true,
622
+ ttBelow: false
623
+ });
624
+ let {
625
+ isNumber: to
626
+ } = m();
627
+ var tr = c(540),
628
+ tl = c.n(tr);
629
+ let {
630
+ doc: ta
631
+ } = m(),
632
+ {
633
+ defined: tn,
634
+ pick: th
635
+ } = m(),
636
+ {
637
+ series: td,
638
+ seriesTypes: {
639
+ column: tp,
640
+ scatter: tc
641
+ }
642
+ } = V(),
643
+ {
644
+ prototype: {
645
+ symbols: tu
646
+ }
647
+ } = tl(),
648
+ {
649
+ addEvent: tg,
650
+ extend: tm,
651
+ fireEvent: tf,
652
+ isNumber: tx,
653
+ merge: ty,
654
+ pick: tb
655
+ } = m(),
656
+ {
657
+ colorFromPoint: tv,
658
+ getContext: tC
659
+ } = {
660
+ colorFromPoint: function (t, e) {
661
+ let s = e.series.colorAxis;
662
+ if (s) {
663
+ let i = s.toColor(t || 0, e).split(")")[0].split("(")[1].split(",").map(t => th(parseFloat(t), parseInt(t, 10)));
664
+ return i[3] = 255 * th(i[3], 1), tn(t) && e.visible || (i[3] = 0), i;
665
+ }
666
+ return [0, 0, 0, 0];
667
+ },
668
+ getContext: function (t) {
669
+ let {
670
+ canvas: e,
671
+ context: s
672
+ } = t;
673
+ return e && s ? (s.clearRect(0, 0, e.width, e.height), s) : (t.canvas = ta.createElement("canvas"), t.context = t.canvas.getContext("2d", {
674
+ willReadFrequently: true
675
+ }) || void 0, t.context);
676
+ }
677
+ };
678
+ class tA extends tc {
679
+ constructor() {
680
+ super(...arguments), this.valueMax = NaN, this.valueMin = NaN, this.isDirtyCanvas = true;
681
+ }
682
+ drawPoints() {
683
+ let t = this,
684
+ e = t.options,
685
+ s = e.interpolation,
686
+ i = e.marker || {};
687
+ if (s) {
688
+ let {
689
+ image: e,
690
+ chart: s,
691
+ xAxis: i,
692
+ yAxis: o
693
+ } = t,
694
+ {
695
+ reversed: r = false,
696
+ len: l
697
+ } = i,
698
+ {
699
+ reversed: a = false,
700
+ len: n
701
+ } = o,
702
+ h = {
703
+ width: l,
704
+ height: n
705
+ };
706
+ if (!e || t.isDirtyData || t.isDirtyCanvas) {
707
+ let l = tC(t),
708
+ {
709
+ canvas: n,
710
+ options: {
711
+ colsize: d = 1,
712
+ rowsize: p = 1
713
+ },
714
+ points: c,
715
+ points: {
716
+ length: u
717
+ }
718
+ } = t,
719
+ g = s.colorAxis && s.colorAxis[0];
720
+ if (n && l && g) {
721
+ let {
722
+ min: g,
723
+ max: m
724
+ } = i.getExtremes(),
725
+ {
726
+ min: f,
727
+ max: x
728
+ } = o.getExtremes(),
729
+ y = m - g,
730
+ b = x - f,
731
+ v = Math.round(y / d / 8 * 8),
732
+ C = Math.round(b / p / 8 * 8),
733
+ [A, M] = [[v, v / y, r, "ceil"], [C, C / b, !a, "floor"]].map(([t, e, s, i]) => s ? s => Math[i](t - e * s) : t => Math[i](e * t)),
734
+ w = n.width = v + 1,
735
+ L = w * (n.height = C + 1),
736
+ k = (u - 1) / L,
737
+ I = new Uint8ClampedArray(4 * L),
738
+ S = (t, e) => 4 * Math.ceil(w * M(e - f) + A(t - g));
739
+ t.buildKDTree();
740
+ for (let t = 0; t < L; t++) {
741
+ let e = c[Math.ceil(k * t)],
742
+ {
743
+ x: s,
744
+ y: i
745
+ } = e;
746
+ I.set(tv(e.value, e), S(s, i));
747
+ }
748
+ l.putImageData(new ImageData(I, w), 0, 0), e ? e.attr({
749
+ ...h,
750
+ href: n.toDataURL("image/png", 1)
751
+ }) : (t.directTouch = false, t.image = s.renderer.image(n.toDataURL("image/png", 1)).attr(h).add(t.group));
752
+ }
753
+ t.isDirtyCanvas = false;
754
+ } else (e.width !== l || e.height !== n) && e.attr(h);
755
+ } else (i.enabled || t._hasPointMarkers) && (td.prototype.drawPoints.call(t), t.points.forEach(e => {
756
+ e.graphic && (e.graphic[t.chart.styledMode ? "css" : "animate"](t.colorAttribs(e)), null === e.value && e.graphic.addClass("highcharts-null-point"));
757
+ }));
758
+ }
759
+ getExtremes() {
760
+ let {
761
+ dataMin: t,
762
+ dataMax: e
763
+ } = td.prototype.getExtremes.call(this, this.getColumn("value"));
764
+ return tx(t) && (this.valueMin = t), tx(e) && (this.valueMax = e), td.prototype.getExtremes.call(this);
765
+ }
766
+ getValidPoints(t, e) {
767
+ return td.prototype.getValidPoints.call(this, t, e, true);
768
+ }
769
+ hasData() {
770
+ return !!this.dataTable.rowCount;
771
+ }
772
+ init() {
773
+ super.init.apply(this, arguments);
774
+ let t = this.options;
775
+ t.pointRange = tb(t.pointRange, t.colsize || 1), this.yAxis.axisPointRange = t.rowsize || 1, tu.ellipse = tu.circle, t.marker && tx(t.borderRadius) && (t.marker.r = t.borderRadius);
776
+ }
777
+ markerAttribs(t, e) {
778
+ let s = t.shapeArgs || {};
779
+ if (t.hasImage) return {
780
+ x: t.plotX,
781
+ y: t.plotY
782
+ };
783
+ if (e && "normal" !== e) {
784
+ let i = t.options.marker || {},
785
+ o = this.options.marker || {},
786
+ r = o.states?.[e] || {},
787
+ l = i.states?.[e] || {},
788
+ a = (l.width || r.width || s.width || 0) + (l.widthPlus || r.widthPlus || 0),
789
+ n = (l.height || r.height || s.height || 0) + (l.heightPlus || r.heightPlus || 0);
790
+ return {
791
+ x: (s.x || 0) + ((s.width || 0) - a) / 2,
792
+ y: (s.y || 0) + ((s.height || 0) - n) / 2,
793
+ width: a,
794
+ height: n
795
+ };
796
+ }
797
+ return s;
798
+ }
799
+ pointAttribs(t, e) {
800
+ let s = td.prototype.pointAttribs.call(this, t, e),
801
+ i = this.options || {},
802
+ o = this.chart.options.plotOptions || {},
803
+ r = o.series || {},
804
+ l = o.heatmap || {},
805
+ a = t?.options.borderColor || i.borderColor || l.borderColor || r.borderColor,
806
+ n = t?.options.borderWidth || i.borderWidth || l.borderWidth || r.borderWidth || s["stroke-width"];
807
+ if (s.stroke = t?.marker?.lineColor || i.marker?.lineColor || a || this.color, s["stroke-width"] = n, e && "normal" !== e) {
808
+ let o = ty(i.states?.[e], i.marker?.states?.[e], t?.options.states?.[e] || {});
809
+ s.fill = o.color || b().parse(s.fill).brighten(o.brightness || 0).get(), s.stroke = o.lineColor || s.stroke;
810
+ }
811
+ return s;
812
+ }
813
+ translate() {
814
+ let {
815
+ borderRadius: t,
816
+ marker: e
817
+ } = this.options,
818
+ s = e?.symbol || "rect",
819
+ i = tu[s] ? s : "rect",
820
+ o = -1 !== ["circle", "square"].indexOf(i);
821
+ for (let e of (this.generatePoints(), this.points)) {
822
+ let r = e.getCellAttributes(),
823
+ l = Math.min(r.x1, r.x2),
824
+ a = Math.min(r.y1, r.y2),
825
+ n = Math.max(Math.abs(r.x2 - r.x1), 0),
826
+ h = Math.max(Math.abs(r.y2 - r.y1), 0);
827
+ if (e.hasImage = 0 === (e.marker?.symbol || s).indexOf("url"), o) {
828
+ let t = Math.abs(n - h);
829
+ l = Math.min(r.x1, r.x2) + (n < h ? 0 : t / 2), a = Math.min(r.y1, r.y2) + (n < h ? t / 2 : 0), n = h = Math.min(n, h);
830
+ }
831
+ e.hasImage && (e.marker = {
832
+ width: n,
833
+ height: h
834
+ }), e.plotX = e.clientX = (r.x1 + r.x2) / 2, e.plotY = (r.y1 + r.y2) / 2, e.shapeType = "path", e.shapeArgs = ty(true, {
835
+ x: l,
836
+ y: a,
837
+ width: n,
838
+ height: h
839
+ }, {
840
+ d: tu[i](l, a, n, h, {
841
+ r: tx(t) ? t : 0
842
+ })
843
+ });
844
+ }
845
+ tf(this, "afterTranslate");
846
+ }
847
+ }
848
+ tA.defaultOptions = ty(tc.defaultOptions, {
849
+ animation: false,
850
+ borderRadius: 0,
851
+ borderWidth: 0,
852
+ interpolation: false,
853
+ nullColor: "#f7f7f7",
854
+ dataLabels: {
855
+ formatter: function () {
856
+ let {
857
+ numberFormatter: t
858
+ } = this.series.chart,
859
+ {
860
+ value: e
861
+ } = this.point;
862
+ return to(e) ? t(e, -1) : "";
863
+ },
864
+ inside: true,
865
+ verticalAlign: "middle",
866
+ crop: false,
867
+ overflow: "allow",
868
+ padding: 0
869
+ },
870
+ marker: {
871
+ symbol: "rect",
872
+ radius: 0,
873
+ lineColor: void 0,
874
+ states: {
875
+ hover: {
876
+ lineWidthPlus: 0
877
+ },
878
+ select: {}
879
+ }
880
+ },
881
+ clip: true,
882
+ pointRange: null,
883
+ tooltip: {
884
+ pointFormat: "{point.x}, {point.y}: {point.value}<br/>"
885
+ },
886
+ states: {
887
+ hover: {
888
+ halo: false,
889
+ brightness: .2
890
+ }
891
+ },
892
+ legendSymbol: "rectangle"
893
+ }), tg(tA, "afterDataClassLegendClick", function () {
894
+ this.isDirtyCanvas = true, this.drawPoints();
895
+ }), tm(tA.prototype, {
896
+ axisTypes: B.seriesMembers.axisTypes,
897
+ colorKey: B.seriesMembers.colorKey,
898
+ directTouch: true,
899
+ getExtremesFromAll: true,
900
+ keysAffectYAxis: ["y"],
901
+ parallelArrays: B.seriesMembers.parallelArrays,
902
+ pointArrayMap: ["y", "value"],
903
+ pointClass: ti,
904
+ specialGroup: "group",
905
+ trackerGroups: B.seriesMembers.trackerGroups,
906
+ alignDataLabel: tp.prototype.alignDataLabel,
907
+ colorAttribs: B.seriesMembers.colorAttribs,
908
+ getSymbol: td.prototype.getSymbol
909
+ }), B.compose(tA), V().registerSeriesType("heatmap", tA);
910
+ let tM = m();
911
+ return u.default;
912
+ })());
913
+ })(heatmap$3);
914
+ return heatmap$3.exports;
915
+ }
916
+
917
+ var heatmapExports = requireHeatmap();
918
+ var heatmap = /*@__PURE__*/getDefaultExportFromCjs(heatmapExports);
919
+
920
+ var heatmap$1 = /*#__PURE__*/_mergeNamespaces({
921
+ __proto__: null,
922
+ default: heatmap
923
+ }, [heatmapExports]);
924
+
925
+ export { heatmap$1 as h };