@astrato-io/visualizations 0.8.0 → 0.9.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 (125) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +307 -378
  3. package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
  4. package/chunks/CircularProgress-DFS-LQb7.js +765 -0
  5. package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
  6. package/chunks/LinearProgress-CjIQfkNA.js +327 -0
  7. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
  8. package/chunks/Title-CtFw1bVg.js +1804 -0
  9. package/chunks/ToggleButton-Br9HCPCv.js +150 -0
  10. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
  11. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
  12. package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
  13. package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
  14. package/chunks/contains-BK-sRXcB.js +21 -0
  15. package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
  16. package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
  17. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
  18. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
  19. package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
  20. package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
  21. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
  22. package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
  23. package/chunks/isFocusVisible-B1_z03UT.js +144 -0
  24. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
  25. package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
  26. package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
  27. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
  28. package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
  29. package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
  30. package/chunks/react-dom-BwZT0N3F.js +368 -0
  31. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
  32. package/chunks/{requirements-Dvd8jqYF.js → requirements-CYpVh65U.js} +52 -52
  33. package/chunks/responsive.styles-FItb913l.js +93 -0
  34. package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
  35. package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
  36. package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
  37. package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
  38. package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
  39. package/chunks/{standalone-vBnBS2YC.js → standalone-BDrQMxLi.js} +98 -98
  40. package/chunks/standalone-BMoJXGYe.js +2 -0
  41. package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
  42. package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
  43. package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
  44. package/chunks/standalone-CMJJIi9v.js +2 -0
  45. package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
  46. package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
  47. package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
  48. package/chunks/standalone-C_Jd4gkj.js +6 -0
  49. package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
  50. package/chunks/standalone-CoQxJ6ov.js +3638 -0
  51. package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
  52. package/chunks/standalone-DBeXQrwH.js +468 -0
  53. package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
  54. package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
  55. package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
  56. package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
  57. package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
  58. package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
  59. package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
  60. package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
  61. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
  62. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  63. package/chunks/useFieldName-mWrD_uk_.js +7 -0
  64. package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
  65. package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
  66. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
  67. package/chunks/with-html-element-B0Clt4jY.js +15901 -0
  68. package/definitions.js +2 -2
  69. package/docs/operations/astrato-app-filter-bar.md +1 -1
  70. package/docs/operations/bar.md +1 -1
  71. package/docs/operations/combo.md +1 -1
  72. package/docs/operations/date-picker.md +1 -1
  73. package/docs/operations/distribution-gauge.md +1 -1
  74. package/docs/operations/dot.md +1 -1
  75. package/docs/operations/filter.md +1 -1
  76. package/docs/operations/gauge.md +1 -1
  77. package/docs/operations/heatMap.md +1 -1
  78. package/docs/operations/histogram.md +1 -1
  79. package/docs/operations/iframe.md +1 -1
  80. package/docs/operations/image.md +1 -1
  81. package/docs/operations/index.md +2 -2
  82. package/docs/operations/line.md +1 -1
  83. package/docs/operations/number.md +1 -1
  84. package/docs/operations/pie.md +1 -1
  85. package/docs/operations/radar.md +1 -1
  86. package/docs/operations/sankey.md +1 -1
  87. package/docs/operations/scatter.md +1 -1
  88. package/docs/operations/shape.md +1 -1
  89. package/docs/operations/simpleTextObject.md +1 -1
  90. package/docs/operations/slider.md +1 -1
  91. package/docs/operations/table.md +66 -1
  92. package/docs/operations/tree.md +1 -1
  93. package/docs/operations/treemap.md +1 -1
  94. package/docs/operations/waterfall.md +1 -1
  95. package/docs/operations/word-cloud.md +1 -1
  96. package/getters.js +2 -2
  97. package/index.js +74 -68
  98. package/metadata.js +2 -2
  99. package/operations.js +5 -5
  100. package/package.json +67 -66
  101. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
  102. package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
  103. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
  104. package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
  105. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  106. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  107. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  108. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  109. package/src/visualization-catalog.d.ts +26 -26
  110. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  111. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  112. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  113. package/chunks/Title-CO5dP1ma.js +0 -1691
  114. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  115. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  116. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  117. package/chunks/standalone-BXKRE_Se.js +0 -468
  118. package/chunks/standalone-BjZp0QMe.js +0 -2
  119. package/chunks/standalone-C8qAelL4.js +0 -2
  120. package/chunks/standalone-DT0wKji7.js +0 -6
  121. package/chunks/standalone-DYQIQH4c.js +0 -2095
  122. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  123. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  124. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
  125. /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
@@ -1,1691 +0,0 @@
1
- import { a as e, o as t, t as n } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $ as r, $t as i, Bt as a, Ei as o, G as s, Lt as c, Nt as l, Q as u, Vt as d, Y as f, ln as p, ri as m, rt as h, un as g } from "./utils-vdmi_2PK.js";
3
- import { c as _, d as v, l as y, n as b, r as x, t as S, u as C } from "./DefaultPropsProvider-BsfB7QTn.js";
4
- import { a as w, c as T, d as E, f as D, l as O, o as k, r as A, s as j, t as M, u as N } from "./useSlotProps-DLbQp4lc.js";
5
- var P = /* @__PURE__ */ t(o());
6
- function ee(e) {
7
- return e?.ref || null;
8
- }
9
- var F = m();
10
- g();
11
- var I = /* @__PURE__ */ t(i());
12
- d();
13
- var te = f(), ne = r, re = N, ie = O, ae = T, oe = w;
14
- function se(e, t) {
15
- return se = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
16
- return e.__proto__ = t, e;
17
- }, se(e, t);
18
- }
19
- function ce(e, t) {
20
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, se(e, t);
21
- }
22
- var le = { disabled: !1 }, L = P.createContext(null), ue = function(e) {
23
- return e.scrollTop;
24
- }, de = "unmounted", R = "exited", fe = "entering", pe = "entered", me = "exiting", z = /*#__PURE__*/ function(e) {
25
- ce(t, e);
26
- function t(t, n) {
27
- var r = e.call(this, t, n) || this, i = n, a = i && !i.isMounting ? t.enter : t.appear, o;
28
- return r.appearStatus = null, t.in ? a ? (o = R, r.appearStatus = fe) : o = pe : o = t.unmountOnExit || t.mountOnEnter ? de : R, r.state = { status: o }, r.nextCallback = null, r;
29
- }
30
- t.getDerivedStateFromProps = function(e, t) {
31
- return e.in && t.status === "unmounted" ? { status: R } : null;
32
- };
33
- var n = t.prototype;
34
- return n.componentDidMount = function() {
35
- this.updateStatus(!0, this.appearStatus);
36
- }, n.componentDidUpdate = function(e) {
37
- var t = null;
38
- if (e !== this.props) {
39
- var n = this.state.status;
40
- this.props.in ? n !== "entering" && n !== "entered" && (t = fe) : (n === "entering" || n === "entered") && (t = me);
41
- }
42
- this.updateStatus(!1, t);
43
- }, n.componentWillUnmount = function() {
44
- this.cancelNextCallback();
45
- }, n.getTimeouts = function() {
46
- var e = this.props.timeout, t = n = r = e, n, r;
47
- return e != null && typeof e != "number" && (t = e.exit, n = e.enter, r = e.appear === void 0 ? n : e.appear), {
48
- exit: t,
49
- enter: n,
50
- appear: r
51
- };
52
- }, n.updateStatus = function(e, t) {
53
- if (e === void 0 && (e = !1), t !== null) if (this.cancelNextCallback(), t === "entering") {
54
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
55
- var n = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this);
56
- n && ue(n);
57
- }
58
- this.performEnter(e);
59
- } else this.performExit();
60
- else this.props.unmountOnExit && this.state.status === "exited" && this.setState({ status: de });
61
- }, n.performEnter = function(e) {
62
- var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, i = this.props.nodeRef ? [r] : [I.findDOMNode(this), r], a = i[0], o = i[1], s = this.getTimeouts(), c = r ? s.appear : s.enter;
63
- if (!e && !n || le.disabled) {
64
- this.safeSetState({ status: pe }, function() {
65
- t.props.onEntered(a);
66
- });
67
- return;
68
- }
69
- this.props.onEnter(a, o), this.safeSetState({ status: fe }, function() {
70
- t.props.onEntering(a, o), t.onTransitionEnd(c, function() {
71
- t.safeSetState({ status: pe }, function() {
72
- t.props.onEntered(a, o);
73
- });
74
- });
75
- });
76
- }, n.performExit = function() {
77
- var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : I.findDOMNode(this);
78
- if (!t || le.disabled) {
79
- this.safeSetState({ status: R }, function() {
80
- e.props.onExited(r);
81
- });
82
- return;
83
- }
84
- this.props.onExit(r), this.safeSetState({ status: me }, function() {
85
- e.props.onExiting(r), e.onTransitionEnd(n.exit, function() {
86
- e.safeSetState({ status: R }, function() {
87
- e.props.onExited(r);
88
- });
89
- });
90
- });
91
- }, n.cancelNextCallback = function() {
92
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
93
- }, n.safeSetState = function(e, t) {
94
- t = this.setNextCallback(t), this.setState(e, t);
95
- }, n.setNextCallback = function(e) {
96
- var t = this, n = !0;
97
- return this.nextCallback = function(r) {
98
- n && (n = !1, t.nextCallback = null, e(r));
99
- }, this.nextCallback.cancel = function() {
100
- n = !1;
101
- }, this.nextCallback;
102
- }, n.onTransitionEnd = function(e, t) {
103
- this.setNextCallback(t);
104
- var n = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this), r = e == null && !this.props.addEndListener;
105
- if (!n || r) {
106
- setTimeout(this.nextCallback, 0);
107
- return;
108
- }
109
- if (this.props.addEndListener) {
110
- var i = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], a = i[0], o = i[1];
111
- this.props.addEndListener(a, o);
112
- }
113
- e != null && setTimeout(this.nextCallback, e);
114
- }, n.render = function() {
115
- var e = this.state.status;
116
- if (e === "unmounted") return null;
117
- var t = this.props, n = t.children;
118
- t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
119
- var r = a(t, [
120
- "children",
121
- "in",
122
- "mountOnEnter",
123
- "unmountOnExit",
124
- "appear",
125
- "enter",
126
- "exit",
127
- "timeout",
128
- "addEndListener",
129
- "onEnter",
130
- "onEntering",
131
- "onEntered",
132
- "onExit",
133
- "onExiting",
134
- "onExited",
135
- "nodeRef"
136
- ]);
137
- return /*#__PURE__*/ P.createElement(L.Provider, { value: null }, typeof n == "function" ? n(e, r) : P.cloneElement(P.Children.only(n), r));
138
- }, t;
139
- }(P.Component);
140
- z.contextType = L, z.propTypes = {};
141
- function B() {}
142
- z.defaultProps = {
143
- in: !1,
144
- mountOnEnter: !1,
145
- unmountOnExit: !1,
146
- appear: !1,
147
- enter: !0,
148
- exit: !0,
149
- onEnter: B,
150
- onEntering: B,
151
- onEntered: B,
152
- onExit: B,
153
- onExiting: B,
154
- onExited: B
155
- }, z.UNMOUNTED = de, z.EXITED = R, z.ENTERING = fe, z.ENTERED = pe, z.EXITING = me;
156
- var he = (e) => e.scrollTop;
157
- function ge(e, t) {
158
- let { timeout: n, easing: r, style: i = {} } = e;
159
- return {
160
- duration: i.transitionDuration ?? (typeof n == "number" ? n : n[t.mode] || 0),
161
- easing: i.transitionTimingFunction ?? (typeof r == "object" ? r[t.mode] : r),
162
- delay: i.transitionDelay
163
- };
164
- }
165
- var _e = /* @__PURE__ */ n(((t) => {
166
- Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0;
167
- var n = a(o()), r = (l(), e(c));
168
- function i(e) {
169
- if (typeof WeakMap != "function") return null;
170
- var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
171
- return (i = function(e) {
172
- return e ? n : t;
173
- })(e);
174
- }
175
- function a(e, t) {
176
- if (!t && e && e.__esModule) return e;
177
- if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
178
- var n = i(t);
179
- if (n && n.has(e)) return n.get(e);
180
- var r = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
181
- for (var o in e) if (o !== "default" && Object.prototype.hasOwnProperty.call(e, o)) {
182
- var s = a ? Object.getOwnPropertyDescriptor(e, o) : null;
183
- s && (s.get || s.set) ? Object.defineProperty(r, o, s) : r[o] = e[o];
184
- }
185
- return r.default = e, n && n.set(e, r), r;
186
- }
187
- function s(e) {
188
- return Object.keys(e).length === 0;
189
- }
190
- function u(e = null) {
191
- let t = n.useContext(r.ThemeContext);
192
- return !t || s(t) ? e : t;
193
- }
194
- t.default = u;
195
- })), V = "bottom", ve = "right", H = "left", U = "auto", W = [
196
- "top",
197
- V,
198
- ve,
199
- H
200
- ], G = "start", ye = "clippingParents", be = "viewport", xe = "popper", Se = "reference", Ce = /*#__PURE__*/ W.reduce(function(e, t) {
201
- return e.concat([t + "-" + G, t + "-end"]);
202
- }, []), we = /*#__PURE__*/ [].concat(W, [U]).reduce(function(e, t) {
203
- return e.concat([
204
- t,
205
- t + "-" + G,
206
- t + "-end"
207
- ]);
208
- }, []), Te = [
209
- "beforeRead",
210
- "read",
211
- "afterRead",
212
- "beforeMain",
213
- "main",
214
- "afterMain",
215
- "beforeWrite",
216
- "write",
217
- "afterWrite"
218
- ];
219
- function K(e) {
220
- return e ? (e.nodeName || "").toLowerCase() : null;
221
- }
222
- function q(e) {
223
- if (e == null) return window;
224
- if (e.toString() !== "[object Window]") {
225
- var t = e.ownerDocument;
226
- return t && t.defaultView || window;
227
- }
228
- return e;
229
- }
230
- function Ee(e) {
231
- return e instanceof q(e).Element || e instanceof Element;
232
- }
233
- function J(e) {
234
- return e instanceof q(e).HTMLElement || e instanceof HTMLElement;
235
- }
236
- function De(e) {
237
- return typeof ShadowRoot > "u" ? !1 : e instanceof q(e).ShadowRoot || e instanceof ShadowRoot;
238
- }
239
- function Oe(e) {
240
- var t = e.state;
241
- Object.keys(t.elements).forEach(function(e) {
242
- var n = t.styles[e] || {}, r = t.attributes[e] || {}, i = t.elements[e];
243
- !J(i) || !K(i) || (Object.assign(i.style, n), Object.keys(r).forEach(function(e) {
244
- var t = r[e];
245
- t === !1 ? i.removeAttribute(e) : i.setAttribute(e, t === !0 ? "" : t);
246
- }));
247
- });
248
- }
249
- function ke(e) {
250
- var t = e.state, n = {
251
- popper: {
252
- position: t.options.strategy,
253
- left: "0",
254
- top: "0",
255
- margin: "0"
256
- },
257
- arrow: { position: "absolute" },
258
- reference: {}
259
- };
260
- return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
261
- Object.keys(t.elements).forEach(function(e) {
262
- var r = t.elements[e], i = t.attributes[e] || {}, a = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce(function(e, t) {
263
- return e[t] = "", e;
264
- }, {});
265
- !J(r) || !K(r) || (Object.assign(r.style, a), Object.keys(i).forEach(function(e) {
266
- r.removeAttribute(e);
267
- }));
268
- });
269
- };
270
- }
271
- var Ae = {
272
- name: "applyStyles",
273
- enabled: !0,
274
- phase: "write",
275
- fn: Oe,
276
- effect: ke,
277
- requires: ["computeStyles"]
278
- };
279
- function Y(e) {
280
- return e.split("-")[0];
281
- }
282
- var je = Math.max, Me = Math.min, X = Math.round;
283
- function Ne() {
284
- var e = navigator.userAgentData;
285
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e) {
286
- return e.brand + "/" + e.version;
287
- }).join(" ") : navigator.userAgent;
288
- }
289
- function Z() {
290
- return !/^((?!chrome|android).)*safari/i.test(Ne());
291
- }
292
- function Q(e, t, n) {
293
- t === void 0 && (t = !1), n === void 0 && (n = !1);
294
- var r = e.getBoundingClientRect(), i = 1, a = 1;
295
- t && J(e) && (i = e.offsetWidth > 0 && X(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && X(r.height) / e.offsetHeight || 1);
296
- var o = (Ee(e) ? q(e) : window).visualViewport, s = !Z() && n, c = (r.left + (s && o ? o.offsetLeft : 0)) / i, l = (r.top + (s && o ? o.offsetTop : 0)) / a, u = r.width / i, d = r.height / a;
297
- return {
298
- width: u,
299
- height: d,
300
- top: l,
301
- right: c + u,
302
- bottom: l + d,
303
- left: c,
304
- x: c,
305
- y: l
306
- };
307
- }
308
- function Pe(e) {
309
- var t = Q(e), n = e.offsetWidth, r = e.offsetHeight;
310
- return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
311
- x: e.offsetLeft,
312
- y: e.offsetTop,
313
- width: n,
314
- height: r
315
- };
316
- }
317
- function Fe(e, t) {
318
- var n = t.getRootNode && t.getRootNode();
319
- if (e.contains(t)) return !0;
320
- if (n && De(n)) {
321
- var r = t;
322
- do {
323
- if (r && e.isSameNode(r)) return !0;
324
- r = r.parentNode || r.host;
325
- } while (r);
326
- }
327
- return !1;
328
- }
329
- function $(e) {
330
- return q(e).getComputedStyle(e);
331
- }
332
- function Ie(e) {
333
- return [
334
- "table",
335
- "td",
336
- "th"
337
- ].indexOf(K(e)) >= 0;
338
- }
339
- function Le(e) {
340
- return ((Ee(e) ? e.ownerDocument : e.document) || window.document).documentElement;
341
- }
342
- function Re(e) {
343
- return K(e) === "html" ? e : e.assignedSlot || e.parentNode || (De(e) ? e.host : null) || Le(e);
344
- }
345
- function ze(e) {
346
- return !J(e) || $(e).position === "fixed" ? null : e.offsetParent;
347
- }
348
- function Be(e) {
349
- var t = /firefox/i.test(Ne());
350
- if (/Trident/i.test(Ne()) && J(e) && $(e).position === "fixed") return null;
351
- var n = Re(e);
352
- for (De(n) && (n = n.host); J(n) && ["html", "body"].indexOf(K(n)) < 0;) {
353
- var r = $(n);
354
- if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none") return n;
355
- n = n.parentNode;
356
- }
357
- return null;
358
- }
359
- function Ve(e) {
360
- for (var t = q(e), n = ze(e); n && Ie(n) && $(n).position === "static";) n = ze(n);
361
- return n && (K(n) === "html" || K(n) === "body" && $(n).position === "static") ? t : n || Be(e) || t;
362
- }
363
- function He(e) {
364
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
365
- }
366
- function Ue(e, t, n) {
367
- return je(e, Me(t, n));
368
- }
369
- function We(e, t, n) {
370
- var r = Ue(e, t, n);
371
- return r > n ? n : r;
372
- }
373
- function Ge() {
374
- return {
375
- top: 0,
376
- right: 0,
377
- bottom: 0,
378
- left: 0
379
- };
380
- }
381
- function Ke(e) {
382
- return Object.assign({}, Ge(), e);
383
- }
384
- function qe(e, t) {
385
- return t.reduce(function(t, n) {
386
- return t[n] = e, t;
387
- }, {});
388
- }
389
- var Je = function(e, t) {
390
- return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, Ke(typeof e == "number" ? qe(e, W) : e);
391
- };
392
- function Ye(e) {
393
- var t, n = e.state, r = e.name, i = e.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = Y(n.placement), c = He(s), l = ["left", "right"].indexOf(s) >= 0 ? "height" : "width";
394
- if (!(!a || !o)) {
395
- var u = Je(i.padding, n), d = Pe(a), f = c === "y" ? "top" : H, p = c === "y" ? V : ve, m = n.rects.reference[l] + n.rects.reference[c] - o[c] - n.rects.popper[l], h = o[c] - n.rects.reference[c], g = Ve(a), _ = g ? c === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, v = m / 2 - h / 2, y = u[f], b = _ - d[l] - u[p], x = _ / 2 - d[l] / 2 + v, S = Ue(y, x, b), C = c;
396
- n.modifiersData[r] = (t = {}, t[C] = S, t.centerOffset = S - x, t);
397
- }
398
- }
399
- function Xe(e) {
400
- var t = e.state, n = e.options.element, r = n === void 0 ? "[data-popper-arrow]" : n;
401
- r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || Fe(t.elements.popper, r) && (t.elements.arrow = r));
402
- }
403
- var Ze = {
404
- name: "arrow",
405
- enabled: !0,
406
- phase: "main",
407
- fn: Ye,
408
- effect: Xe,
409
- requires: ["popperOffsets"],
410
- requiresIfExists: ["preventOverflow"]
411
- };
412
- function Qe(e) {
413
- return e.split("-")[1];
414
- }
415
- var $e = {
416
- top: "auto",
417
- right: "auto",
418
- bottom: "auto",
419
- left: "auto"
420
- };
421
- function et(e, t) {
422
- var n = e.x, r = e.y, i = t.devicePixelRatio || 1;
423
- return {
424
- x: X(n * i) / i || 0,
425
- y: X(r * i) / i || 0
426
- };
427
- }
428
- function tt(e) {
429
- var t, n = e.popper, r = e.popperRect, i = e.placement, a = e.variation, o = e.offsets, s = e.position, c = e.gpuAcceleration, l = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = o.x, p = f === void 0 ? 0 : f, m = o.y, h = m === void 0 ? 0 : m, g = typeof u == "function" ? u({
430
- x: p,
431
- y: h
432
- }) : {
433
- x: p,
434
- y: h
435
- };
436
- p = g.x, h = g.y;
437
- var _ = o.hasOwnProperty("x"), v = o.hasOwnProperty("y"), y = H, b = "top", x = window;
438
- if (l) {
439
- var S = Ve(n), C = "clientHeight", w = "clientWidth";
440
- if (S === q(n) && (S = Le(n), $(S).position !== "static" && s === "absolute" && (C = "scrollHeight", w = "scrollWidth")), S = S, i === "top" || (i === "left" || i === "right") && a === "end") {
441
- b = V;
442
- var T = d && S === x && x.visualViewport ? x.visualViewport.height : S[C];
443
- h -= T - r.height, h *= c ? 1 : -1;
444
- }
445
- if (i === "left" || (i === "top" || i === "bottom") && a === "end") {
446
- y = ve;
447
- var E = d && S === x && x.visualViewport ? x.visualViewport.width : S[w];
448
- p -= E - r.width, p *= c ? 1 : -1;
449
- }
450
- }
451
- var D = Object.assign({ position: s }, l && $e), O = u === !0 ? et({
452
- x: p,
453
- y: h
454
- }, q(n)) : {
455
- x: p,
456
- y: h
457
- };
458
- if (p = O.x, h = O.y, c) {
459
- var k;
460
- return Object.assign({}, D, (k = {}, k[b] = v ? "0" : "", k[y] = _ ? "0" : "", k.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", k));
461
- }
462
- return Object.assign({}, D, (t = {}, t[b] = v ? h + "px" : "", t[y] = _ ? p + "px" : "", t.transform = "", t));
463
- }
464
- function nt(e) {
465
- var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 || r, a = n.adaptive, o = a === void 0 || a, s = n.roundOffsets, c = s === void 0 || s, l = {
466
- placement: Y(t.placement),
467
- variation: Qe(t.placement),
468
- popper: t.elements.popper,
469
- popperRect: t.rects.popper,
470
- gpuAcceleration: i,
471
- isFixed: t.options.strategy === "fixed"
472
- };
473
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, tt(Object.assign({}, l, {
474
- offsets: t.modifiersData.popperOffsets,
475
- position: t.options.strategy,
476
- adaptive: o,
477
- roundOffsets: c
478
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, tt(Object.assign({}, l, {
479
- offsets: t.modifiersData.arrow,
480
- position: "absolute",
481
- adaptive: !1,
482
- roundOffsets: c
483
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
484
- }
485
- var rt = {
486
- name: "computeStyles",
487
- enabled: !0,
488
- phase: "beforeWrite",
489
- fn: nt,
490
- data: {}
491
- }, it = { passive: !0 };
492
- function at(e) {
493
- var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0 || i, o = r.resize, s = o === void 0 || o, c = q(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
494
- return a && l.forEach(function(e) {
495
- e.addEventListener("scroll", n.update, it);
496
- }), s && c.addEventListener("resize", n.update, it), function() {
497
- a && l.forEach(function(e) {
498
- e.removeEventListener("scroll", n.update, it);
499
- }), s && c.removeEventListener("resize", n.update, it);
500
- };
501
- }
502
- var ot = {
503
- name: "eventListeners",
504
- enabled: !0,
505
- phase: "write",
506
- fn: function() {},
507
- effect: at,
508
- data: {}
509
- }, st = {
510
- left: "right",
511
- right: "left",
512
- bottom: "top",
513
- top: "bottom"
514
- };
515
- function ct(e) {
516
- return e.replace(/left|right|bottom|top/g, function(e) {
517
- return st[e];
518
- });
519
- }
520
- var lt = {
521
- start: "end",
522
- end: "start"
523
- };
524
- function ut(e) {
525
- return e.replace(/start|end/g, function(e) {
526
- return lt[e];
527
- });
528
- }
529
- function dt(e) {
530
- var t = q(e);
531
- return {
532
- scrollLeft: t.pageXOffset,
533
- scrollTop: t.pageYOffset
534
- };
535
- }
536
- function ft(e) {
537
- return Q(Le(e)).left + dt(e).scrollLeft;
538
- }
539
- function pt(e, t) {
540
- var n = q(e), r = Le(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
541
- if (i) {
542
- a = i.width, o = i.height;
543
- var l = Z();
544
- (l || !l && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
545
- }
546
- return {
547
- width: a,
548
- height: o,
549
- x: s + ft(e),
550
- y: c
551
- };
552
- }
553
- function mt(e) {
554
- var t = Le(e), n = dt(e), r = e.ownerDocument?.body, i = je(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = je(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), o = -n.scrollLeft + ft(e), s = -n.scrollTop;
555
- return $(r || t).direction === "rtl" && (o += je(t.clientWidth, r ? r.clientWidth : 0) - i), {
556
- width: i,
557
- height: a,
558
- x: o,
559
- y: s
560
- };
561
- }
562
- function ht(e) {
563
- var t = $(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
564
- return /auto|scroll|overlay|hidden/.test(n + i + r);
565
- }
566
- function gt(e) {
567
- return [
568
- "html",
569
- "body",
570
- "#document"
571
- ].indexOf(K(e)) >= 0 ? e.ownerDocument.body : J(e) && ht(e) ? e : gt(Re(e));
572
- }
573
- function _t(e, t) {
574
- t === void 0 && (t = []);
575
- var n = gt(e), r = n === e.ownerDocument?.body, i = q(n), a = r ? [i].concat(i.visualViewport || [], ht(n) ? n : []) : n, o = t.concat(a);
576
- return r ? o : o.concat(_t(Re(a)));
577
- }
578
- function vt(e) {
579
- return Object.assign({}, e, {
580
- left: e.x,
581
- top: e.y,
582
- right: e.x + e.width,
583
- bottom: e.y + e.height
584
- });
585
- }
586
- function yt(e, t) {
587
- var n = Q(e, !1, t === "fixed");
588
- return n.top += e.clientTop, n.left += e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
589
- }
590
- function bt(e, t, n) {
591
- return t === "viewport" ? vt(pt(e, n)) : Ee(t) ? yt(t, n) : vt(mt(Le(e)));
592
- }
593
- function xt(e) {
594
- var t = _t(Re(e)), n = ["absolute", "fixed"].indexOf($(e).position) >= 0 && J(e) ? Ve(e) : e;
595
- return Ee(n) ? t.filter(function(e) {
596
- return Ee(e) && Fe(e, n) && K(e) !== "body";
597
- }) : [];
598
- }
599
- function St(e, t, n, r) {
600
- var i = t === "clippingParents" ? xt(e) : [].concat(t), a = [].concat(i, [n]), o = a[0], s = a.reduce(function(t, n) {
601
- var i = bt(e, n, r);
602
- return t.top = je(i.top, t.top), t.right = Me(i.right, t.right), t.bottom = Me(i.bottom, t.bottom), t.left = je(i.left, t.left), t;
603
- }, bt(e, o, r));
604
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
605
- }
606
- function Ct(e) {
607
- var t = e.reference, n = e.element, r = e.placement, i = r ? Y(r) : null, a = r ? Qe(r) : null, o = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, c;
608
- switch (i) {
609
- case "top":
610
- c = {
611
- x: o,
612
- y: t.y - n.height
613
- };
614
- break;
615
- case V:
616
- c = {
617
- x: o,
618
- y: t.y + t.height
619
- };
620
- break;
621
- case ve:
622
- c = {
623
- x: t.x + t.width,
624
- y: s
625
- };
626
- break;
627
- case H:
628
- c = {
629
- x: t.x - n.width,
630
- y: s
631
- };
632
- break;
633
- default: c = {
634
- x: t.x,
635
- y: t.y
636
- };
637
- }
638
- var l = i ? He(i) : null;
639
- if (l != null) {
640
- var u = l === "y" ? "height" : "width";
641
- switch (a) {
642
- case G:
643
- c[l] = c[l] - (t[u] / 2 - n[u] / 2);
644
- break;
645
- case "end":
646
- c[l] = c[l] + (t[u] / 2 - n[u] / 2);
647
- break;
648
- default:
649
- }
650
- }
651
- return c;
652
- }
653
- function wt(e, t) {
654
- t === void 0 && (t = {});
655
- var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ? ye : s, l = n.rootBoundary, u = l === void 0 ? be : l, d = n.elementContext, f = d === void 0 ? xe : d, p = n.altBoundary, m = p !== void 0 && p, h = n.padding, g = h === void 0 ? 0 : h, _ = Ke(typeof g == "number" ? qe(g, W) : g), v = f === "popper" ? Se : xe, y = e.rects.popper, b = e.elements[m ? v : f], x = St(Ee(b) ? b : b.contextElement || Le(e.elements.popper), c, u, o), S = Q(e.elements.reference), C = Ct({
656
- reference: S,
657
- element: y,
658
- strategy: "absolute",
659
- placement: i
660
- }), w = vt(Object.assign({}, y, C)), T = f === "popper" ? w : S, E = {
661
- top: x.top - T.top + _.top,
662
- bottom: T.bottom - x.bottom + _.bottom,
663
- left: x.left - T.left + _.left,
664
- right: T.right - x.right + _.right
665
- }, D = e.modifiersData.offset;
666
- if (f === "popper" && D) {
667
- var O = D[i];
668
- Object.keys(E).forEach(function(e) {
669
- var t = ["right", "bottom"].indexOf(e) >= 0 ? 1 : -1, n = ["top", "bottom"].indexOf(e) >= 0 ? "y" : "x";
670
- E[e] += O[n] * t;
671
- });
672
- }
673
- return E;
674
- }
675
- function Tt(e, t) {
676
- t === void 0 && (t = {});
677
- var n = t, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, l = c === void 0 ? we : c, u = Qe(r), d = u ? s ? Ce : Ce.filter(function(e) {
678
- return Qe(e) === u;
679
- }) : W, f = d.filter(function(e) {
680
- return l.indexOf(e) >= 0;
681
- });
682
- f.length === 0 && (f = d);
683
- var p = f.reduce(function(t, n) {
684
- return t[n] = wt(e, {
685
- placement: n,
686
- boundary: i,
687
- rootBoundary: a,
688
- padding: o
689
- })[Y(n)], t;
690
- }, {});
691
- return Object.keys(p).sort(function(e, t) {
692
- return p[e] - p[t];
693
- });
694
- }
695
- function Et(e) {
696
- if (Y(e) === "auto") return [];
697
- var t = ct(e);
698
- return [
699
- ut(e),
700
- t,
701
- ut(t)
702
- ];
703
- }
704
- function Dt(e) {
705
- var t = e.state, n = e.options, r = e.name;
706
- if (!t.modifiersData[r]._skip) {
707
- for (var i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o === void 0 || o, c = n.fallbackPlacements, l = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, m = p === void 0 || p, h = n.allowedAutoPlacements, g = t.options.placement, _ = Y(g) === g, v = c || (_ || !m ? [ct(g)] : Et(g)), y = [g].concat(v).reduce(function(e, n) {
708
- return e.concat(Y(n) === "auto" ? Tt(t, {
709
- placement: n,
710
- boundary: u,
711
- rootBoundary: d,
712
- padding: l,
713
- flipVariations: m,
714
- allowedAutoPlacements: h
715
- }) : n);
716
- }, []), b = t.rects.reference, x = t.rects.popper, S = /* @__PURE__ */ new Map(), C = !0, w = y[0], T = 0; T < y.length; T++) {
717
- var E = y[T], D = Y(E), O = Qe(E) === G, k = ["top", V].indexOf(D) >= 0, A = k ? "width" : "height", j = wt(t, {
718
- placement: E,
719
- boundary: u,
720
- rootBoundary: d,
721
- altBoundary: f,
722
- padding: l
723
- }), M = k ? O ? ve : H : O ? V : "top";
724
- b[A] > x[A] && (M = ct(M));
725
- var N = ct(M), P = [];
726
- if (a && P.push(j[D] <= 0), s && P.push(j[M] <= 0, j[N] <= 0), P.every(function(e) {
727
- return e;
728
- })) {
729
- w = E, C = !1;
730
- break;
731
- }
732
- S.set(E, P);
733
- }
734
- if (C) for (var ee = m ? 3 : 1, F = function(e) {
735
- var t = y.find(function(t) {
736
- var n = S.get(t);
737
- if (n) return n.slice(0, e).every(function(e) {
738
- return e;
739
- });
740
- });
741
- if (t) return w = t, "break";
742
- }, I = ee; I > 0 && F(I) !== "break"; I--);
743
- t.placement !== w && (t.modifiersData[r]._skip = !0, t.placement = w, t.reset = !0);
744
- }
745
- }
746
- var Ot = {
747
- name: "flip",
748
- enabled: !0,
749
- phase: "main",
750
- fn: Dt,
751
- requiresIfExists: ["offset"],
752
- data: { _skip: !1 }
753
- };
754
- function kt(e, t, n) {
755
- return n === void 0 && (n = {
756
- x: 0,
757
- y: 0
758
- }), {
759
- top: e.top - t.height - n.y,
760
- right: e.right - t.width + n.x,
761
- bottom: e.bottom - t.height + n.y,
762
- left: e.left - t.width - n.x
763
- };
764
- }
765
- function At(e) {
766
- return [
767
- "top",
768
- ve,
769
- V,
770
- H
771
- ].some(function(t) {
772
- return e[t] >= 0;
773
- });
774
- }
775
- function jt(e) {
776
- var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, a = t.modifiersData.preventOverflow, o = wt(t, { elementContext: "reference" }), s = wt(t, { altBoundary: !0 }), c = kt(o, r), l = kt(s, i, a), u = At(c), d = At(l);
777
- t.modifiersData[n] = {
778
- referenceClippingOffsets: c,
779
- popperEscapeOffsets: l,
780
- isReferenceHidden: u,
781
- hasPopperEscaped: d
782
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
783
- "data-popper-reference-hidden": u,
784
- "data-popper-escaped": d
785
- });
786
- }
787
- var Mt = {
788
- name: "hide",
789
- enabled: !0,
790
- phase: "main",
791
- requiresIfExists: ["preventOverflow"],
792
- fn: jt
793
- };
794
- function Nt(e, t, n) {
795
- var r = Y(e), i = ["left", "top"].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, o = a[0], s = a[1];
796
- return o ||= 0, s = (s || 0) * i, ["left", "right"].indexOf(r) >= 0 ? {
797
- x: s,
798
- y: o
799
- } : {
800
- x: o,
801
- y: s
802
- };
803
- }
804
- function Pt(e) {
805
- var t = e.state, n = e.options, r = e.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = we.reduce(function(e, n) {
806
- return e[n] = Nt(n, t.rects, a), e;
807
- }, {}), s = o[t.placement], c = s.x, l = s.y;
808
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = o;
809
- }
810
- var Ft = {
811
- name: "offset",
812
- enabled: !0,
813
- phase: "main",
814
- requires: ["popperOffsets"],
815
- fn: Pt
816
- };
817
- function It(e) {
818
- var t = e.state, n = e.name;
819
- t.modifiersData[n] = Ct({
820
- reference: t.rects.reference,
821
- element: t.rects.popper,
822
- strategy: "absolute",
823
- placement: t.placement
824
- });
825
- }
826
- var Lt = {
827
- name: "popperOffsets",
828
- enabled: !0,
829
- phase: "read",
830
- fn: It,
831
- data: {}
832
- };
833
- function Rt(e) {
834
- return e === "x" ? "y" : "x";
835
- }
836
- function zt(e) {
837
- var t = e.state, n = e.options, r = e.name, i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o !== void 0 && o, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 || f, m = n.tetherOffset, h = m === void 0 ? 0 : m, g = wt(t, {
838
- boundary: c,
839
- rootBoundary: l,
840
- padding: d,
841
- altBoundary: u
842
- }), _ = Y(t.placement), v = Qe(t.placement), y = !v, b = He(_), x = Rt(b), S = t.modifiersData.popperOffsets, C = t.rects.reference, w = t.rects.popper, T = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, E = typeof T == "number" ? {
843
- mainAxis: T,
844
- altAxis: T
845
- } : Object.assign({
846
- mainAxis: 0,
847
- altAxis: 0
848
- }, T), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, O = {
849
- x: 0,
850
- y: 0
851
- };
852
- if (S) {
853
- if (a) {
854
- var k = b === "y" ? "top" : H, A = b === "y" ? V : ve, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], ee = p ? -w[j] / 2 : 0, F = v === "start" ? C[j] : w[j], I = v === "start" ? -w[j] : -C[j], te = t.elements.arrow, ne = p && te ? Pe(te) : {
855
- width: 0,
856
- height: 0
857
- }, re = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ge(), ie = re[k], ae = re[A], oe = Ue(0, C[j], ne[j]), se = y ? C[j] / 2 - ee - oe - ie - E.mainAxis : F - oe - ie - E.mainAxis, ce = y ? -C[j] / 2 + ee + oe + ae + E.mainAxis : I + oe + ae + E.mainAxis, le = t.elements.arrow && Ve(t.elements.arrow), L = le ? b === "y" ? le.clientTop || 0 : le.clientLeft || 0 : 0, ue = D?.[b] ?? 0, de = M + se - ue - L, R = M + ce - ue, fe = Ue(p ? Me(N, de) : N, M, p ? je(P, R) : P);
858
- S[b] = fe, O[b] = fe - M;
859
- }
860
- if (s) {
861
- var pe = b === "x" ? "top" : H, me = b === "x" ? V : ve, z = S[x], B = x === "y" ? "height" : "width", he = z + g[pe], ge = z - g[me], _e = ["top", H].indexOf(_) !== -1, U = D?.[x] ?? 0, W = _e ? he : z - C[B] - w[B] - U + E.altAxis, G = _e ? z + C[B] + w[B] - U - E.altAxis : ge, ye = p && _e ? We(W, z, G) : Ue(p ? W : he, z, p ? G : ge);
862
- S[x] = ye, O[x] = ye - z;
863
- }
864
- t.modifiersData[r] = O;
865
- }
866
- }
867
- var Bt = {
868
- name: "preventOverflow",
869
- enabled: !0,
870
- phase: "main",
871
- fn: zt,
872
- requiresIfExists: ["offset"]
873
- };
874
- function Vt(e) {
875
- return {
876
- scrollLeft: e.scrollLeft,
877
- scrollTop: e.scrollTop
878
- };
879
- }
880
- function Ht(e) {
881
- return e === q(e) || !J(e) ? dt(e) : Vt(e);
882
- }
883
- function Ut(e) {
884
- var t = e.getBoundingClientRect(), n = X(t.width) / e.offsetWidth || 1, r = X(t.height) / e.offsetHeight || 1;
885
- return n !== 1 || r !== 1;
886
- }
887
- function Wt(e, t, n) {
888
- n === void 0 && (n = !1);
889
- var r = J(t), i = J(t) && Ut(t), a = Le(t), o = Q(e, i, n), s = {
890
- scrollLeft: 0,
891
- scrollTop: 0
892
- }, c = {
893
- x: 0,
894
- y: 0
895
- };
896
- return (r || !r && !n) && ((K(t) !== "body" || ht(a)) && (s = Ht(t)), J(t) ? (c = Q(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = ft(a))), {
897
- x: o.left + s.scrollLeft - c.x,
898
- y: o.top + s.scrollTop - c.y,
899
- width: o.width,
900
- height: o.height
901
- };
902
- }
903
- function Gt(e) {
904
- var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
905
- e.forEach(function(e) {
906
- t.set(e.name, e);
907
- });
908
- function i(e) {
909
- n.add(e.name), [].concat(e.requires || [], e.requiresIfExists || []).forEach(function(e) {
910
- if (!n.has(e)) {
911
- var r = t.get(e);
912
- r && i(r);
913
- }
914
- }), r.push(e);
915
- }
916
- return e.forEach(function(e) {
917
- n.has(e.name) || i(e);
918
- }), r;
919
- }
920
- function Kt(e) {
921
- var t = Gt(e);
922
- return Te.reduce(function(e, n) {
923
- return e.concat(t.filter(function(e) {
924
- return e.phase === n;
925
- }));
926
- }, []);
927
- }
928
- function qt(e) {
929
- var t;
930
- return function() {
931
- return t ||= new Promise(function(n) {
932
- Promise.resolve().then(function() {
933
- t = void 0, n(e());
934
- });
935
- }), t;
936
- };
937
- }
938
- function Jt(e) {
939
- var t = e.reduce(function(e, t) {
940
- var n = e[t.name];
941
- return e[t.name] = n ? Object.assign({}, n, t, {
942
- options: Object.assign({}, n.options, t.options),
943
- data: Object.assign({}, n.data, t.data)
944
- }) : t, e;
945
- }, {});
946
- return Object.keys(t).map(function(e) {
947
- return t[e];
948
- });
949
- }
950
- var Yt = {
951
- placement: "bottom",
952
- modifiers: [],
953
- strategy: "absolute"
954
- };
955
- function Xt() {
956
- return ![...arguments].some(function(e) {
957
- return !(e && typeof e.getBoundingClientRect == "function");
958
- });
959
- }
960
- function Zt(e) {
961
- e === void 0 && (e = {});
962
- var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, a = i === void 0 ? Yt : i;
963
- return function(e, t, n) {
964
- n === void 0 && (n = a);
965
- var i = {
966
- placement: "bottom",
967
- orderedModifiers: [],
968
- options: Object.assign({}, Yt, a),
969
- modifiersData: {},
970
- elements: {
971
- reference: e,
972
- popper: t
973
- },
974
- attributes: {},
975
- styles: {}
976
- }, o = [], s = !1, c = {
977
- state: i,
978
- setOptions: function(n) {
979
- var o = typeof n == "function" ? n(i.options) : n;
980
- u(), i.options = Object.assign({}, a, i.options, o), i.scrollParents = {
981
- reference: Ee(e) ? _t(e) : e.contextElement ? _t(e.contextElement) : [],
982
- popper: _t(t)
983
- };
984
- var s = Kt(Jt([].concat(r, i.options.modifiers)));
985
- return i.orderedModifiers = s.filter(function(e) {
986
- return e.enabled;
987
- }), l(), c.update();
988
- },
989
- forceUpdate: function() {
990
- if (!s) {
991
- var e = i.elements, t = e.reference, n = e.popper;
992
- if (Xt(t, n)) {
993
- i.rects = {
994
- reference: Wt(t, Ve(n), i.options.strategy === "fixed"),
995
- popper: Pe(n)
996
- }, i.reset = !1, i.placement = i.options.placement, i.orderedModifiers.forEach(function(e) {
997
- return i.modifiersData[e.name] = Object.assign({}, e.data);
998
- });
999
- for (var r = 0; r < i.orderedModifiers.length; r++) {
1000
- if (i.reset === !0) {
1001
- i.reset = !1, r = -1;
1002
- continue;
1003
- }
1004
- var a = i.orderedModifiers[r], o = a.fn, l = a.options, u = l === void 0 ? {} : l, d = a.name;
1005
- typeof o == "function" && (i = o({
1006
- state: i,
1007
- options: u,
1008
- name: d,
1009
- instance: c
1010
- }) || i);
1011
- }
1012
- }
1013
- }
1014
- },
1015
- update: qt(function() {
1016
- return new Promise(function(e) {
1017
- c.forceUpdate(), e(i);
1018
- });
1019
- }),
1020
- destroy: function() {
1021
- u(), s = !0;
1022
- }
1023
- };
1024
- if (!Xt(e, t)) return c;
1025
- c.setOptions(n).then(function(e) {
1026
- !s && n.onFirstUpdate && n.onFirstUpdate(e);
1027
- });
1028
- function l() {
1029
- i.orderedModifiers.forEach(function(e) {
1030
- var t = e.name, n = e.options, r = n === void 0 ? {} : n, a = e.effect;
1031
- if (typeof a == "function") {
1032
- var s = a({
1033
- state: i,
1034
- name: t,
1035
- instance: c,
1036
- options: r
1037
- });
1038
- o.push(s || function() {});
1039
- }
1040
- });
1041
- }
1042
- function u() {
1043
- o.forEach(function(e) {
1044
- return e();
1045
- }), o = [];
1046
- }
1047
- return c;
1048
- };
1049
- }
1050
- var Qt = /*#__PURE__*/ Zt({ defaultModifiers: [
1051
- ot,
1052
- Lt,
1053
- rt,
1054
- Ae,
1055
- Ft,
1056
- Ot,
1057
- Bt,
1058
- Ze,
1059
- Mt
1060
- ] });
1061
- function $t(e) {
1062
- return typeof e == "function" ? e() : e;
1063
- }
1064
- var en = /*#__PURE__*/ P.forwardRef(function(e, t) {
1065
- let { children: n, container: r, disablePortal: i = !1 } = e, [a, o] = P.useState(null), s = T(/*#__PURE__*/ P.isValidElement(n) ? ee(n) : null, t);
1066
- if (h(() => {
1067
- i || o($t(r) || document.body);
1068
- }, [r, i]), h(() => {
1069
- if (a && !i) return E(t, a), () => {
1070
- E(t, null);
1071
- };
1072
- }, [
1073
- t,
1074
- a,
1075
- i
1076
- ]), i) {
1077
- if (/*#__PURE__*/ P.isValidElement(n)) {
1078
- let e = { ref: s };
1079
- return /*#__PURE__*/ P.cloneElement(n, e);
1080
- }
1081
- return /*#__PURE__*/ (0, F.jsx)(P.Fragment, { children: n });
1082
- }
1083
- return /*#__PURE__*/ (0, F.jsx)(P.Fragment, { children: a && /*#__PURE__*/ I.createPortal(n, a) });
1084
- }), tn = /* @__PURE__ */ t(_e());
1085
- function nn(e) {
1086
- return C("MuiPopper", e);
1087
- }
1088
- y("MuiPopper", ["root"]), d();
1089
- var rn = [
1090
- "anchorEl",
1091
- "children",
1092
- "direction",
1093
- "disablePortal",
1094
- "modifiers",
1095
- "open",
1096
- "placement",
1097
- "popperOptions",
1098
- "popperRef",
1099
- "slotProps",
1100
- "slots",
1101
- "TransitionProps",
1102
- "ownerState"
1103
- ], an = [
1104
- "anchorEl",
1105
- "children",
1106
- "container",
1107
- "direction",
1108
- "disablePortal",
1109
- "keepMounted",
1110
- "modifiers",
1111
- "open",
1112
- "placement",
1113
- "popperOptions",
1114
- "popperRef",
1115
- "style",
1116
- "transition",
1117
- "slotProps",
1118
- "slots"
1119
- ];
1120
- function on(e, t) {
1121
- if (t === "ltr") return e;
1122
- switch (e) {
1123
- case "bottom-end": return "bottom-start";
1124
- case "bottom-start": return "bottom-end";
1125
- case "top-end": return "top-start";
1126
- case "top-start": return "top-end";
1127
- default: return e;
1128
- }
1129
- }
1130
- function sn(e) {
1131
- return typeof e == "function" ? e() : e;
1132
- }
1133
- function cn(e) {
1134
- return e.nodeType !== void 0;
1135
- }
1136
- var ln = (e) => {
1137
- let { classes: t } = e;
1138
- return _({ root: ["root"] }, nn, t);
1139
- }, un = {}, dn = /*#__PURE__*/ P.forwardRef(function(e, t) {
1140
- let { anchorEl: n, children: r, direction: i, disablePortal: o, modifiers: s, open: c, placement: l, popperOptions: u, popperRef: d, slotProps: f = {}, slots: m = {}, TransitionProps: g } = e, _ = a(e, rn), v = P.useRef(null), y = T(v, t), b = P.useRef(null), x = T(b, d), S = P.useRef(x);
1141
- h(() => {
1142
- S.current = x;
1143
- }, [x]), P.useImperativeHandle(d, () => b.current, []);
1144
- let C = on(l, i), [w, E] = P.useState(C), [D, O] = P.useState(sn(n));
1145
- P.useEffect(() => {
1146
- b.current && b.current.forceUpdate();
1147
- }), P.useEffect(() => {
1148
- n && O(sn(n));
1149
- }, [n]), h(() => {
1150
- if (!D || !c) return;
1151
- let e = (e) => {
1152
- E(e.placement);
1153
- }, t = [
1154
- {
1155
- name: "preventOverflow",
1156
- options: { altBoundary: o }
1157
- },
1158
- {
1159
- name: "flip",
1160
- options: { altBoundary: o }
1161
- },
1162
- {
1163
- name: "onUpdate",
1164
- enabled: !0,
1165
- phase: "afterWrite",
1166
- fn: ({ state: t }) => {
1167
- e(t);
1168
- }
1169
- }
1170
- ];
1171
- s != null && (t = t.concat(s)), u && u.modifiers != null && (t = t.concat(u.modifiers));
1172
- let n = Qt(D, v.current, p({ placement: C }, u, { modifiers: t }));
1173
- return S.current(n), () => {
1174
- n.destroy(), S.current(null);
1175
- };
1176
- }, [
1177
- D,
1178
- o,
1179
- s,
1180
- c,
1181
- u,
1182
- C
1183
- ]);
1184
- let k = { placement: w };
1185
- g !== null && (k.TransitionProps = g);
1186
- let A = ln(e), j = m.root ?? "div";
1187
- return /*#__PURE__*/ (0, F.jsx)(j, p({}, M({
1188
- elementType: j,
1189
- externalSlotProps: f.root,
1190
- externalForwardedProps: _,
1191
- additionalProps: {
1192
- role: "tooltip",
1193
- ref: y
1194
- },
1195
- ownerState: e,
1196
- className: A.root
1197
- }), { children: typeof r == "function" ? r(k) : r }));
1198
- }), fn = /*#__PURE__*/ P.forwardRef(function(e, t) {
1199
- let { anchorEl: n, children: r, container: i, direction: o = "ltr", disablePortal: s = !1, keepMounted: c = !1, modifiers: l, open: u, placement: d = "bottom", popperOptions: f = un, popperRef: m, style: h, transition: g = !1, slotProps: _ = {}, slots: v = {} } = e, y = a(e, an), [b, x] = P.useState(!0), S = () => {
1200
- x(!1);
1201
- }, C = () => {
1202
- x(!0);
1203
- };
1204
- if (!c && !u && (!g || b)) return null;
1205
- let w;
1206
- if (i) w = i;
1207
- else if (n) {
1208
- let e = sn(n);
1209
- w = e && cn(e) ? D(e).body : D(null).body;
1210
- }
1211
- let T = !u && c && (!g || b) ? "none" : void 0, E = g ? {
1212
- in: u,
1213
- onEnter: S,
1214
- onExited: C
1215
- } : void 0;
1216
- return /*#__PURE__*/ (0, F.jsx)(en, {
1217
- disablePortal: s,
1218
- container: w,
1219
- children: /*#__PURE__*/ (0, F.jsx)(dn, p({
1220
- anchorEl: n,
1221
- direction: o,
1222
- disablePortal: s,
1223
- modifiers: l,
1224
- ref: t,
1225
- open: g ? !b : u,
1226
- placement: d,
1227
- popperOptions: f,
1228
- popperRef: m,
1229
- slotProps: _,
1230
- slots: v
1231
- }, y, {
1232
- style: p({
1233
- position: "fixed",
1234
- top: 0,
1235
- left: 0,
1236
- display: T
1237
- }, h),
1238
- TransitionProps: E,
1239
- children: r
1240
- }))
1241
- });
1242
- });
1243
- g(), d();
1244
- var pn = [
1245
- "anchorEl",
1246
- "component",
1247
- "components",
1248
- "componentsProps",
1249
- "container",
1250
- "disablePortal",
1251
- "keepMounted",
1252
- "modifiers",
1253
- "open",
1254
- "placement",
1255
- "popperOptions",
1256
- "popperRef",
1257
- "transition",
1258
- "slots",
1259
- "slotProps"
1260
- ], mn = x(fn, {
1261
- name: "MuiPopper",
1262
- slot: "Root",
1263
- overridesResolver: (e, t) => t.root
1264
- })({}), hn = /*#__PURE__*/ P.forwardRef(function(e, t) {
1265
- let n = (0, tn.default)(), r = S({
1266
- props: e,
1267
- name: "MuiPopper"
1268
- }), { anchorEl: i, component: o, components: s, componentsProps: c, container: l, disablePortal: u, keepMounted: d, modifiers: f, open: m, placement: h, popperOptions: g, popperRef: _, transition: v, slots: y, slotProps: b } = r, x = a(r, pn), C = y?.root ?? s?.Root, w = p({
1269
- anchorEl: i,
1270
- container: l,
1271
- disablePortal: u,
1272
- keepMounted: d,
1273
- modifiers: f,
1274
- open: m,
1275
- placement: h,
1276
- popperOptions: g,
1277
- popperRef: _,
1278
- transition: v
1279
- }, x);
1280
- return /*#__PURE__*/ (0, F.jsx)(mn, p({
1281
- as: o,
1282
- direction: n?.direction,
1283
- slots: { root: C },
1284
- slotProps: b ?? c
1285
- }, w, { ref: t }));
1286
- });
1287
- g(), d();
1288
- var gn = [
1289
- "addEndListener",
1290
- "appear",
1291
- "children",
1292
- "easing",
1293
- "in",
1294
- "onEnter",
1295
- "onEntered",
1296
- "onEntering",
1297
- "onExit",
1298
- "onExited",
1299
- "onExiting",
1300
- "style",
1301
- "timeout",
1302
- "TransitionComponent"
1303
- ];
1304
- function _n(e) {
1305
- return `scale(${e}, ${e ** 2})`;
1306
- }
1307
- var vn = {
1308
- entering: {
1309
- opacity: 1,
1310
- transform: _n(1)
1311
- },
1312
- entered: {
1313
- opacity: 1,
1314
- transform: "none"
1315
- }
1316
- }, yn = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), bn = /*#__PURE__*/ P.forwardRef(function(e, t) {
1317
- let { addEndListener: n, appear: r = !0, children: i, easing: o, in: c, onEnter: l, onEntered: u, onEntering: d, onExit: f, onExited: m, onExiting: h, style: g, timeout: _ = "auto", TransitionComponent: v = z } = e, y = a(e, gn), b = j(), x = P.useRef(), S = s(), C = P.useRef(null), w = ae(C, ee(i), t), T = (e) => (t) => {
1318
- if (e) {
1319
- let n = C.current;
1320
- t === void 0 ? e(n) : e(n, t);
1321
- }
1322
- }, E = T(d), D = T((e, t) => {
1323
- he(e);
1324
- let { duration: n, delay: r, easing: i } = ge({
1325
- style: g,
1326
- timeout: _,
1327
- easing: o
1328
- }, { mode: "enter" }), a;
1329
- _ === "auto" ? (a = S.transitions.getAutoHeightDuration(e.clientHeight), x.current = a) : a = n, e.style.transition = [S.transitions.create("opacity", {
1330
- duration: a,
1331
- delay: r
1332
- }), S.transitions.create("transform", {
1333
- duration: yn ? a : a * .666,
1334
- delay: r,
1335
- easing: i
1336
- })].join(","), l && l(e, t);
1337
- }), O = T(u), k = T(h), A = T((e) => {
1338
- let { duration: t, delay: n, easing: r } = ge({
1339
- style: g,
1340
- timeout: _,
1341
- easing: o
1342
- }, { mode: "exit" }), i;
1343
- _ === "auto" ? (i = S.transitions.getAutoHeightDuration(e.clientHeight), x.current = i) : i = t, e.style.transition = [S.transitions.create("opacity", {
1344
- duration: i,
1345
- delay: n
1346
- }), S.transitions.create("transform", {
1347
- duration: yn ? i : i * .666,
1348
- delay: yn ? n : n || i * .333,
1349
- easing: r
1350
- })].join(","), e.style.opacity = 0, e.style.transform = _n(.75), f && f(e);
1351
- }), M = T(m);
1352
- return /*#__PURE__*/ (0, F.jsx)(v, p({
1353
- appear: r,
1354
- in: c,
1355
- nodeRef: C,
1356
- onEnter: D,
1357
- onEntered: O,
1358
- onEntering: E,
1359
- onExit: A,
1360
- onExited: M,
1361
- onExiting: k,
1362
- addEndListener: (e) => {
1363
- _ === "auto" && b.start(x.current || 0, e), n && n(C.current, e);
1364
- },
1365
- timeout: _ === "auto" ? null : _
1366
- }, y, { children: (e, t) => /*#__PURE__*/ P.cloneElement(i, p({
1367
- style: p({
1368
- opacity: 0,
1369
- transform: _n(.75),
1370
- visibility: e === "exited" && !c ? "hidden" : void 0
1371
- }, vn[e], g, i.props.style),
1372
- ref: w
1373
- }, t)) }));
1374
- });
1375
- bn.muiSupportAuto = !0;
1376
- function xn(e) {
1377
- return C("MuiTooltip", e);
1378
- }
1379
- var Sn = y("MuiTooltip", [
1380
- "popper",
1381
- "popperInteractive",
1382
- "popperArrow",
1383
- "popperClose",
1384
- "tooltip",
1385
- "tooltipArrow",
1386
- "touch",
1387
- "tooltipPlacementLeft",
1388
- "tooltipPlacementRight",
1389
- "tooltipPlacementTop",
1390
- "tooltipPlacementBottom",
1391
- "arrow"
1392
- ]);
1393
- d(), g();
1394
- var Cn = /* @__PURE__ */ "arrow.children.classes.components.componentsProps.describeChild.disableFocusListener.disableHoverListener.disableInteractive.disableTouchListener.enterDelay.enterNextDelay.enterTouchDelay.followCursor.id.leaveDelay.leaveTouchDelay.onClose.onOpen.open.placement.PopperComponent.PopperProps.slotProps.slots.title.TransitionComponent.TransitionProps".split(".");
1395
- function wn(e) {
1396
- return Math.round(e * 1e5) / 1e5;
1397
- }
1398
- var Tn = (e) => {
1399
- let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
1400
- return _({
1401
- popper: [
1402
- "popper",
1403
- !n && "popperInteractive",
1404
- r && "popperArrow"
1405
- ],
1406
- tooltip: [
1407
- "tooltip",
1408
- r && "tooltipArrow",
1409
- i && "touch",
1410
- `tooltipPlacement${b(a.split("-")[0])}`
1411
- ],
1412
- arrow: ["arrow"]
1413
- }, xn, t);
1414
- }, En = x(hn, {
1415
- name: "MuiTooltip",
1416
- slot: "Popper",
1417
- overridesResolver: (e, t) => {
1418
- let { ownerState: n } = e;
1419
- return [
1420
- t.popper,
1421
- !n.disableInteractive && t.popperInteractive,
1422
- n.arrow && t.popperArrow,
1423
- !n.open && t.popperClose
1424
- ];
1425
- }
1426
- })(({ theme: e, ownerState: t, open: n }) => p({
1427
- zIndex: (e.vars || e).zIndex.tooltip,
1428
- pointerEvents: "none"
1429
- }, !t.disableInteractive && { pointerEvents: "auto" }, !n && { pointerEvents: "none" }, t.arrow && {
1430
- [`&[data-popper-placement*="bottom"] .${Sn.arrow}`]: {
1431
- top: 0,
1432
- marginTop: "-0.71em",
1433
- "&::before": { transformOrigin: "0 100%" }
1434
- },
1435
- [`&[data-popper-placement*="top"] .${Sn.arrow}`]: {
1436
- bottom: 0,
1437
- marginBottom: "-0.71em",
1438
- "&::before": { transformOrigin: "100% 0" }
1439
- },
1440
- [`&[data-popper-placement*="right"] .${Sn.arrow}`]: p({}, t.isRtl ? {
1441
- right: 0,
1442
- marginRight: "-0.71em"
1443
- } : {
1444
- left: 0,
1445
- marginLeft: "-0.71em"
1446
- }, {
1447
- height: "1em",
1448
- width: "0.71em",
1449
- "&::before": { transformOrigin: "100% 100%" }
1450
- }),
1451
- [`&[data-popper-placement*="left"] .${Sn.arrow}`]: p({}, t.isRtl ? {
1452
- left: 0,
1453
- marginLeft: "-0.71em"
1454
- } : {
1455
- right: 0,
1456
- marginRight: "-0.71em"
1457
- }, {
1458
- height: "1em",
1459
- width: "0.71em",
1460
- "&::before": { transformOrigin: "0 0" }
1461
- })
1462
- })), Dn = x("div", {
1463
- name: "MuiTooltip",
1464
- slot: "Tooltip",
1465
- overridesResolver: (e, t) => {
1466
- let { ownerState: n } = e;
1467
- return [
1468
- t.tooltip,
1469
- n.touch && t.touch,
1470
- n.arrow && t.tooltipArrow,
1471
- t[`tooltipPlacement${b(n.placement.split("-")[0])}`]
1472
- ];
1473
- }
1474
- })(({ theme: e, ownerState: t }) => p({
1475
- backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : (0, te.alpha)(e.palette.grey[700], .92),
1476
- borderRadius: (e.vars || e).shape.borderRadius,
1477
- color: (e.vars || e).palette.common.white,
1478
- fontFamily: e.typography.fontFamily,
1479
- padding: "4px 8px",
1480
- fontSize: e.typography.pxToRem(11),
1481
- maxWidth: 300,
1482
- margin: 2,
1483
- wordWrap: "break-word",
1484
- fontWeight: e.typography.fontWeightMedium
1485
- }, t.arrow && {
1486
- position: "relative",
1487
- margin: 0
1488
- }, t.touch && {
1489
- padding: "8px 16px",
1490
- fontSize: e.typography.pxToRem(14),
1491
- lineHeight: `${wn(16 / 14)}em`,
1492
- fontWeight: e.typography.fontWeightRegular
1493
- }, {
1494
- [`.${Sn.popper}[data-popper-placement*="left"] &`]: p({ transformOrigin: "right center" }, t.isRtl ? p({ marginLeft: "14px" }, t.touch && { marginLeft: "24px" }) : p({ marginRight: "14px" }, t.touch && { marginRight: "24px" })),
1495
- [`.${Sn.popper}[data-popper-placement*="right"] &`]: p({ transformOrigin: "left center" }, t.isRtl ? p({ marginRight: "14px" }, t.touch && { marginRight: "24px" }) : p({ marginLeft: "14px" }, t.touch && { marginLeft: "24px" })),
1496
- [`.${Sn.popper}[data-popper-placement*="top"] &`]: p({
1497
- transformOrigin: "center bottom",
1498
- marginBottom: "14px"
1499
- }, t.touch && { marginBottom: "24px" }),
1500
- [`.${Sn.popper}[data-popper-placement*="bottom"] &`]: p({
1501
- transformOrigin: "center top",
1502
- marginTop: "14px"
1503
- }, t.touch && { marginTop: "24px" })
1504
- })), On = x("span", {
1505
- name: "MuiTooltip",
1506
- slot: "Arrow",
1507
- overridesResolver: (e, t) => t.arrow
1508
- })(({ theme: e }) => ({
1509
- overflow: "hidden",
1510
- position: "absolute",
1511
- width: "1em",
1512
- height: "0.71em",
1513
- boxSizing: "border-box",
1514
- color: e.vars ? e.vars.palette.Tooltip.bg : (0, te.alpha)(e.palette.grey[700], .9),
1515
- "&::before": {
1516
- content: "\"\"",
1517
- margin: "auto",
1518
- display: "block",
1519
- width: "100%",
1520
- height: "100%",
1521
- backgroundColor: "currentColor",
1522
- transform: "rotate(45deg)"
1523
- }
1524
- })), kn = !1, An = new k(), jn = {
1525
- x: 0,
1526
- y: 0
1527
- };
1528
- function Mn(e, t) {
1529
- return (n, ...r) => {
1530
- t && t(n, ...r), e(n, ...r);
1531
- };
1532
- }
1533
- var Nn = /*#__PURE__*/ P.forwardRef(function(e, t) {
1534
- let n = S({
1535
- props: e,
1536
- name: "MuiTooltip"
1537
- }), { arrow: r = !1, children: i, components: o = {}, componentsProps: c = {}, describeChild: l = !1, disableFocusListener: d = !1, disableHoverListener: f = !1, disableInteractive: m = !1, disableTouchListener: h = !1, enterDelay: g = 100, enterNextDelay: _ = 0, enterTouchDelay: y = 700, followCursor: b = !1, id: x, leaveDelay: C = 0, leaveTouchDelay: w = 1500, onClose: T, onOpen: E, open: D, placement: O = "bottom", PopperComponent: k, PopperProps: M = {}, slotProps: N = {}, slots: I = {}, title: te, TransitionComponent: se = bn, TransitionProps: ce } = n, le = a(n, Cn), L = /*#__PURE__*/ P.isValidElement(i) ? i : /*#__PURE__*/ (0, F.jsx)("span", { children: i }), ue = s(), de = u(), [R, fe] = P.useState(), [pe, me] = P.useState(null), z = P.useRef(!1), B = m || b, he = j(), ge = j(), _e = j(), V = j(), [ve, H] = re({
1538
- controlled: D,
1539
- default: !1,
1540
- name: "Tooltip",
1541
- state: "open"
1542
- }), U = ve, W = ne(x), G = P.useRef(), ye = ie(() => {
1543
- G.current !== void 0 && (document.body.style.WebkitUserSelect = G.current, G.current = void 0), V.clear();
1544
- });
1545
- P.useEffect(() => ye, [ye]);
1546
- let be = (e) => {
1547
- An.clear(), kn = !0, H(!0), E && !U && E(e);
1548
- }, xe = ie((e) => {
1549
- An.start(800 + C, () => {
1550
- kn = !1;
1551
- }), H(!1), T && U && T(e), he.start(ue.transitions.duration.shortest, () => {
1552
- z.current = !1;
1553
- });
1554
- }), Se = (e) => {
1555
- z.current && e.type !== "touchstart" || (R && R.removeAttribute("title"), ge.clear(), _e.clear(), g || kn && _ ? ge.start(kn ? _ : g, () => {
1556
- be(e);
1557
- }) : be(e));
1558
- }, Ce = (e) => {
1559
- ge.clear(), _e.start(C, () => {
1560
- xe(e);
1561
- });
1562
- }, { isFocusVisibleRef: we, onBlur: Te, onFocus: K, ref: q } = oe(), [, Ee] = P.useState(!1), J = (e) => {
1563
- Te(e), we.current === !1 && (Ee(!1), Ce(e));
1564
- }, De = (e) => {
1565
- R || fe(e.currentTarget), K(e), we.current === !0 && (Ee(!0), Se(e));
1566
- }, Oe = (e) => {
1567
- z.current = !0;
1568
- let t = L.props;
1569
- t.onTouchStart && t.onTouchStart(e);
1570
- }, ke = (e) => {
1571
- Oe(e), _e.clear(), he.clear(), ye(), G.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", V.start(y, () => {
1572
- document.body.style.WebkitUserSelect = G.current, Se(e);
1573
- });
1574
- }, Ae = (e) => {
1575
- L.props.onTouchEnd && L.props.onTouchEnd(e), ye(), _e.start(w, () => {
1576
- xe(e);
1577
- });
1578
- };
1579
- P.useEffect(() => {
1580
- if (!U) return;
1581
- function e(e) {
1582
- (e.key === "Escape" || e.key === "Esc") && xe(e);
1583
- }
1584
- return document.addEventListener("keydown", e), () => {
1585
- document.removeEventListener("keydown", e);
1586
- };
1587
- }, [xe, U]);
1588
- let Y = ae(ee(L), q, fe, t);
1589
- !te && te !== 0 && (U = !1);
1590
- let je = P.useRef(), Me = (e) => {
1591
- let t = L.props;
1592
- t.onMouseMove && t.onMouseMove(e), jn = {
1593
- x: e.clientX,
1594
- y: e.clientY
1595
- }, je.current && je.current.update();
1596
- }, X = {}, Ne = typeof te == "string";
1597
- l ? (X.title = !U && Ne && !f ? te : null, X["aria-describedby"] = U ? W : null) : (X["aria-label"] = Ne ? te : null, X["aria-labelledby"] = U && !Ne ? W : null);
1598
- let Z = p({}, X, le, L.props, {
1599
- className: v(le.className, L.props.className),
1600
- onTouchStart: Oe,
1601
- ref: Y
1602
- }, b ? { onMouseMove: Me } : {}), Q = {};
1603
- h || (Z.onTouchStart = ke, Z.onTouchEnd = Ae), f || (Z.onMouseOver = Mn(Se, Z.onMouseOver), Z.onMouseLeave = Mn(Ce, Z.onMouseLeave), B || (Q.onMouseOver = Se, Q.onMouseLeave = Ce)), d || (Z.onFocus = Mn(De, Z.onFocus), Z.onBlur = Mn(J, Z.onBlur), B || (Q.onFocus = De, Q.onBlur = J));
1604
- let Pe = P.useMemo(() => {
1605
- var e;
1606
- let t = [{
1607
- name: "arrow",
1608
- enabled: !!pe,
1609
- options: {
1610
- element: pe,
1611
- padding: 4
1612
- }
1613
- }];
1614
- return (e = M.popperOptions) != null && e.modifiers && (t = t.concat(M.popperOptions.modifiers)), p({}, M.popperOptions, { modifiers: t });
1615
- }, [pe, M]), Fe = p({}, n, {
1616
- isRtl: de,
1617
- arrow: r,
1618
- disableInteractive: B,
1619
- placement: O,
1620
- PopperComponentProp: k,
1621
- touch: z.current
1622
- }), $ = Tn(Fe), Ie = I.popper ?? o.Popper ?? En, Le = I.transition ?? o.Transition ?? se ?? bn, Re = I.tooltip ?? o.Tooltip ?? Dn, ze = I.arrow ?? o.Arrow ?? On, Be = A(Ie, p({}, M, N.popper ?? c.popper, { className: v($.popper, M?.className, (N.popper ?? c.popper)?.className) }), Fe), Ve = A(Le, p({}, ce, N.transition ?? c.transition), Fe), He = A(Re, p({}, N.tooltip ?? c.tooltip, { className: v($.tooltip, (N.tooltip ?? c.tooltip)?.className) }), Fe), Ue = A(ze, p({}, N.arrow ?? c.arrow, { className: v($.arrow, (N.arrow ?? c.arrow)?.className) }), Fe);
1623
- return /*#__PURE__*/ (0, F.jsxs)(P.Fragment, { children: [/*#__PURE__*/ P.cloneElement(L, Z), /*#__PURE__*/ (0, F.jsx)(Ie, p({
1624
- as: k ?? hn,
1625
- placement: O,
1626
- anchorEl: b ? { getBoundingClientRect: () => ({
1627
- top: jn.y,
1628
- left: jn.x,
1629
- right: jn.x,
1630
- bottom: jn.y,
1631
- width: 0,
1632
- height: 0
1633
- }) } : R,
1634
- popperRef: je,
1635
- open: R ? U : !1,
1636
- id: W,
1637
- transition: !0
1638
- }, Q, Be, {
1639
- popperOptions: Pe,
1640
- children: ({ TransitionProps: e }) => /*#__PURE__*/ (0, F.jsx)(Le, p({ timeout: ue.transitions.duration.shorter }, e, Ve, { children: /*#__PURE__*/ (0, F.jsxs)(Re, p({}, He, { children: [te, r ? /*#__PURE__*/ (0, F.jsx)(ze, p({}, Ue, { ref: me })) : null] })) }))
1641
- }))] });
1642
- }), Pn = (e) => {
1643
- let t = (0, P.useContext)(Fn), [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(!1), o = (0, P.useMemo)(() => ({
1644
- onClose: () => a(!1),
1645
- onOpen: () => a(!0)
1646
- }), []);
1647
- return /* @__PURE__ */ (0, F.jsx)(Fn.Provider, {
1648
- value: o,
1649
- children: /* @__PURE__ */ (0, F.jsx)(Nn, {
1650
- onClose: () => {
1651
- t.onClose(), r(!1);
1652
- },
1653
- onOpen: () => {
1654
- t.onOpen(), r(!0);
1655
- },
1656
- open: !i && n,
1657
- ...e
1658
- })
1659
- });
1660
- }, Fn = (0, P.createContext)({
1661
- onClose: () => null,
1662
- onOpen: () => null
1663
- }), In = ({ overflowContainerRef: e, ...t }) => {
1664
- let n = (0, P.useContext)(Fn), r = (0, P.useRef)(null), [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(!1), c = (0, P.useMemo)(() => ({
1665
- onClose: () => s(!1),
1666
- onOpen: () => s(!0)
1667
- }), []);
1668
- return /* @__PURE__ */ (0, F.jsx)(Fn.Provider, {
1669
- value: c,
1670
- children: /* @__PURE__ */ (0, F.jsx)(Nn, {
1671
- disableFocusListener: !0,
1672
- disableInteractive: !0,
1673
- enterDelay: 500,
1674
- enterNextDelay: 500,
1675
- onClose: () => {
1676
- n.onClose(), a(!1);
1677
- },
1678
- onOpen: () => {
1679
- if (r.current) {
1680
- let t = r.current.hasAttribute("data-ellipsis") ? r.current : r.current.querySelector("[data-ellipsis]"), n = e?.current, i = n ? t?.getBoundingClientRect() : void 0, a = n?.getBoundingClientRect(), o = i && a && (i.top < a.top || i.bottom > a.bottom || i.left < a.left || i.right > a.right);
1681
- if (t && t.clientWidth >= t.scrollWidth && t.clientHeight >= t.scrollHeight && !o) return;
1682
- }
1683
- n.onOpen(), a(!0);
1684
- },
1685
- open: !o && i,
1686
- ref: r,
1687
- ...t
1688
- })
1689
- });
1690
- };
1691
- export { bn as a, ge as c, L as d, ce as f, ee as g, ie as h, Nn as i, he as l, ae as m, Pn as n, hn as o, oe as p, Fn as r, en as s, In as t, z as u };