@hiver/connector-admin 0.0.10-beta.8 → 1.0.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 (236) hide show
  1. package/app/connectors/index.d.ts +1 -1
  2. package/app/connectors/index.d.ts.map +1 -1
  3. package/app/connectors/pages/api-view/__tests__/connector-config.test.d.ts.map +1 -0
  4. package/app/connectors/pages/api-view/index.d.ts.map +1 -0
  5. package/app/connectors/pages/api-view/style.d.ts.map +1 -0
  6. package/app/connectors/pages/auth-success/index.d.ts.map +1 -1
  7. package/app/connectors/pages/connector-view/agent/styles.d.ts +2 -2
  8. package/app/connectors/pages/connector-view/agent/styles.d.ts.map +1 -1
  9. package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
  10. package/app/connectors/pages/connector-view/dashboard/styles.d.ts +1 -16
  11. package/app/connectors/pages/connector-view/dashboard/styles.d.ts.map +1 -1
  12. package/app/connectors/pages/connector-view/index.d.ts.map +1 -1
  13. package/app/connectors/pages/connector-view/style.d.ts +5 -0
  14. package/app/connectors/pages/connector-view/style.d.ts.map +1 -0
  15. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  16. package/app/connectors/pages/settings/styles.d.ts +2 -3
  17. package/app/connectors/pages/settings/styles.d.ts.map +1 -1
  18. package/app/connectors/pages/upgrade-page/index.d.ts +7 -0
  19. package/app/connectors/pages/upgrade-page/index.d.ts.map +1 -0
  20. package/app/connectors/pages/upgrade-page/style.d.ts +16 -0
  21. package/app/connectors/pages/upgrade-page/style.d.ts.map +1 -0
  22. package/app/connectors/provider.d.ts +3 -6
  23. package/app/connectors/provider.d.ts.map +1 -1
  24. package/app/connectors/router.d.ts +3 -2
  25. package/app/connectors/router.d.ts.map +1 -1
  26. package/app/style.d.ts +5 -0
  27. package/app/style.d.ts.map +1 -0
  28. package/components/layouts/sidebar/index.d.ts.map +1 -1
  29. package/components/layouts/sidebar/styles.d.ts.map +1 -1
  30. package/components/ui/bread-crumbs/index.d.ts +6 -2
  31. package/components/ui/bread-crumbs/index.d.ts.map +1 -1
  32. package/components/ui/bread-crumbs/styles.d.ts.map +1 -1
  33. package/components/ui/form/index.d.ts +7 -1
  34. package/components/ui/form/index.d.ts.map +1 -1
  35. package/components/ui/form/styles.d.ts.map +1 -1
  36. package/components/ui/form-fields/index.d.ts +4 -0
  37. package/components/ui/form-fields/index.d.ts.map +1 -1
  38. package/components/ui/form-fields/styles.d.ts.map +1 -1
  39. package/constants/bread-crumbs.d.ts +0 -2
  40. package/constants/bread-crumbs.d.ts.map +1 -1
  41. package/constants/gainsight.d.ts +23 -0
  42. package/constants/gainsight.d.ts.map +1 -0
  43. package/constants/global-constants.d.ts +13 -0
  44. package/constants/global-constants.d.ts.map +1 -0
  45. package/constants/modal.d.ts +1 -1
  46. package/constants/modal.d.ts.map +1 -1
  47. package/constants/router-paths.d.ts +1 -1
  48. package/constants/sidebar.d.ts +3 -0
  49. package/constants/sidebar.d.ts.map +1 -1
  50. package/context/index.d.ts +5 -2
  51. package/context/index.d.ts.map +1 -1
  52. package/context/main-app-provider/index.d.ts +2 -5
  53. package/context/main-app-provider/index.d.ts.map +1 -1
  54. package/features/agent/components/agent-landing/index.d.ts +2 -1
  55. package/features/agent/components/agent-landing/index.d.ts.map +1 -1
  56. package/features/agent/components/agent-landing/styles.d.ts +4 -4
  57. package/features/agent/components/agent-landing/styles.d.ts.map +1 -1
  58. package/features/agent/constants/index.d.ts +2 -0
  59. package/features/agent/constants/index.d.ts.map +1 -1
  60. package/features/api-library/components/api-library/index.d.ts +11 -0
  61. package/features/api-library/components/api-library/index.d.ts.map +1 -0
  62. package/features/api-library/components/api-library/styles.d.ts +5 -0
  63. package/features/api-library/components/api-library/styles.d.ts.map +1 -0
  64. package/features/api-library/components/api-library-skeleton/index.d.ts.map +1 -0
  65. package/features/{connector-library → api-library}/components/api-library-skeleton/styles.d.ts +3 -1
  66. package/features/api-library/components/api-library-skeleton/styles.d.ts.map +1 -0
  67. package/features/api-library/constants/api-library.d.ts +4 -0
  68. package/features/api-library/constants/api-library.d.ts.map +1 -0
  69. package/features/auth/api/index.d.ts +0 -1
  70. package/features/auth/api/index.d.ts.map +1 -1
  71. package/features/auth/components/api-executor/index.d.ts +3 -1
  72. package/features/auth/components/api-executor/index.d.ts.map +1 -1
  73. package/features/auth/components/auth-form/index.d.ts.map +1 -1
  74. package/features/auth/components/auth-form/styles.d.ts +2 -1
  75. package/features/auth/components/auth-form/styles.d.ts.map +1 -1
  76. package/features/auth/components/auth-form-skeleton/index.d.ts +2 -0
  77. package/features/auth/components/auth-form-skeleton/index.d.ts.map +1 -0
  78. package/features/auth/constants/api.d.ts +0 -1
  79. package/features/auth/constants/api.d.ts.map +1 -1
  80. package/features/auth/constants/form-config.d.ts.map +1 -1
  81. package/features/auth/constants/index.d.ts +7 -2
  82. package/features/auth/constants/index.d.ts.map +1 -1
  83. package/features/auth/store/initial-state.d.ts +0 -3
  84. package/features/auth/store/initial-state.d.ts.map +1 -1
  85. package/features/auth/store/selectors.d.ts +0 -3
  86. package/features/auth/store/selectors.d.ts.map +1 -1
  87. package/features/auth/store/slice.d.ts +5 -17
  88. package/features/auth/store/slice.d.ts.map +1 -1
  89. package/features/auth/types/form.d.ts +2 -1
  90. package/features/auth/types/form.d.ts.map +1 -1
  91. package/features/auth/types/request.d.ts +4 -3
  92. package/features/auth/types/request.d.ts.map +1 -1
  93. package/features/auth/utils/index.d.ts.map +1 -1
  94. package/features/connector-library/api/index.d.ts +1 -2
  95. package/features/connector-library/api/index.d.ts.map +1 -1
  96. package/features/connector-library/components/custom-connector-card-item/index.d.ts +11 -0
  97. package/features/connector-library/components/custom-connector-card-item/index.d.ts.map +1 -0
  98. package/features/connector-library/components/custom-connector-card-item/styles.d.ts +11 -0
  99. package/features/connector-library/components/custom-connector-card-item/styles.d.ts.map +1 -0
  100. package/features/connector-library/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts.map +1 -0
  101. package/features/connector-library/components/custom-connector-card-list/index.d.ts +3 -0
  102. package/features/connector-library/components/custom-connector-card-list/index.d.ts.map +1 -0
  103. package/features/connector-library/components/custom-connector-card-list/style.d.ts.map +1 -0
  104. package/features/connector-library/components/custom-connector-enabled-modal/index.d.ts +9 -0
  105. package/features/connector-library/components/custom-connector-enabled-modal/index.d.ts.map +1 -0
  106. package/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts +5 -0
  107. package/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts.map +1 -0
  108. package/features/connector-library/constants/api.d.ts +1 -2
  109. package/features/connector-library/constants/api.d.ts.map +1 -1
  110. package/features/connector-library/store/initial-state.d.ts +4 -10
  111. package/features/connector-library/store/initial-state.d.ts.map +1 -1
  112. package/features/connector-library/store/selectors.d.ts +2 -8
  113. package/features/connector-library/store/selectors.d.ts.map +1 -1
  114. package/features/connector-library/store/slice.d.ts +10 -36
  115. package/features/connector-library/store/slice.d.ts.map +1 -1
  116. package/features/request-new-connector/components/request-new-card/index.d.ts.map +1 -1
  117. package/features/request-new-connector/components/request-new-card/styles.d.ts +0 -11
  118. package/features/request-new-connector/components/request-new-card/styles.d.ts.map +1 -1
  119. package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -1
  120. package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
  121. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts +1 -0
  122. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
  123. package/features/request-new-connector/components/request-new-modal/styles.d.ts +3 -1
  124. package/features/request-new-connector/components/request-new-modal/styles.d.ts.map +1 -1
  125. package/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts.map +1 -1
  126. package/features/request-new-connector/constants/index.d.ts +1 -1
  127. package/features/request-new-connector/constants/index.d.ts.map +1 -1
  128. package/features/request-new-connector/types/index.d.ts +2 -2
  129. package/features/request-new-connector/types/index.d.ts.map +1 -1
  130. package/features/template-library/api/index.d.ts +7 -0
  131. package/features/template-library/api/index.d.ts.map +1 -0
  132. package/features/template-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +1 -0
  133. package/features/template-library/components/library-card-list/index.d.ts.map +1 -0
  134. package/features/{connector-library → template-library}/components/library-card-list/styles.d.ts +0 -2
  135. package/features/template-library/components/library-card-list/styles.d.ts.map +1 -0
  136. package/features/template-library/components/library-card-skeleton/index.d.ts.map +1 -0
  137. package/features/template-library/components/library-card-skeleton/styles.d.ts.map +1 -0
  138. package/features/template-library/components/library-edit-list/index.d.ts.map +1 -0
  139. package/features/template-library/components/library-edit-list/styles.d.ts.map +1 -0
  140. package/features/template-library/constants/api.d.ts +3 -0
  141. package/features/template-library/constants/api.d.ts.map +1 -0
  142. package/features/template-library/constants/content-page.d.ts.map +1 -0
  143. package/features/template-library/store/initial-state.d.ts +15 -0
  144. package/features/template-library/store/initial-state.d.ts.map +1 -0
  145. package/features/template-library/store/selectors.d.ts +9 -0
  146. package/features/template-library/store/selectors.d.ts.map +1 -0
  147. package/features/template-library/store/slice.d.ts +41 -0
  148. package/features/template-library/store/slice.d.ts.map +1 -0
  149. package/features/toast-message/constants/toast.d.ts +2 -0
  150. package/features/toast-message/constants/toast.d.ts.map +1 -1
  151. package/features/toast-message/showMessage.d.ts.map +1 -1
  152. package/gainsight-7AZqfBvZ.js +25 -0
  153. package/hooks-CjAK86gy.js +6 -0
  154. package/index-BAHDqKss.js +29 -0
  155. package/index-BluFU4Qp.js +81 -0
  156. package/{index-m1nx1YPE.js → index-BnVEsSdV.js} +1712 -1532
  157. package/index-BqGsuBlL.js +31966 -0
  158. package/index-DKo2NU-Y.js +104 -0
  159. package/{index-CQYnmtXy.js → index-Dt3uzcNe.js} +1779 -1443
  160. package/index-iNlSCq_d.js +190 -0
  161. package/index.es.js +5 -5
  162. package/index.umd.js +1497 -476
  163. package/main.d.ts +1 -0
  164. package/main.d.ts.map +1 -1
  165. package/package.json +1 -1
  166. package/selectors-BZXXKPzK.js +9 -0
  167. package/showMessage-CQ6TNMXe.js +2648 -0
  168. package/store/hooks.d.ts +2 -0
  169. package/store/hooks.d.ts.map +1 -1
  170. package/store/index.d.ts +4 -0
  171. package/store/index.d.ts.map +1 -1
  172. package/store/request-connector-api/initial-state.d.ts +1 -1
  173. package/store/request-connector-api/slice.d.ts +1 -1
  174. package/testing/mocks/handlers/auth.d.ts.map +1 -1
  175. package/testing/mocks/handlers/connector-template.d.ts +1 -0
  176. package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
  177. package/testing/setup-store.d.ts +2 -0
  178. package/testing/setup-store.d.ts.map +1 -1
  179. package/types/common.d.ts +4 -0
  180. package/types/common.d.ts.map +1 -1
  181. package/types/connector.d.ts +10 -6
  182. package/types/connector.d.ts.map +1 -1
  183. package/types/router.d.ts +18 -0
  184. package/types/router.d.ts.map +1 -1
  185. package/utils/index.d.ts +12 -0
  186. package/utils/index.d.ts.map +1 -1
  187. package/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.d.ts.map +0 -1
  188. package/app/connectors/pages/settings/connector-config/index.d.ts.map +0 -1
  189. package/app/connectors/pages/settings/connector-config/style.d.ts.map +0 -1
  190. package/features/auth/utils/type-guards.d.ts +0 -8
  191. package/features/auth/utils/type-guards.d.ts.map +0 -1
  192. package/features/connector-library/components/api-library/index.d.ts +0 -7
  193. package/features/connector-library/components/api-library/index.d.ts.map +0 -1
  194. package/features/connector-library/components/api-library/styles.d.ts +0 -4
  195. package/features/connector-library/components/api-library/styles.d.ts.map +0 -1
  196. package/features/connector-library/components/api-library-skeleton/index.d.ts.map +0 -1
  197. package/features/connector-library/components/api-library-skeleton/styles.d.ts.map +0 -1
  198. package/features/connector-library/components/connector-enabled-modal/index.d.ts +0 -9
  199. package/features/connector-library/components/connector-enabled-modal/index.d.ts.map +0 -1
  200. package/features/connector-library/components/connector-enabled-modal/styles.d.ts +0 -4
  201. package/features/connector-library/components/connector-enabled-modal/styles.d.ts.map +0 -1
  202. package/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +0 -1
  203. package/features/connector-library/components/library-card-list/index.d.ts.map +0 -1
  204. package/features/connector-library/components/library-card-list/styles.d.ts.map +0 -1
  205. package/features/connector-library/components/library-card-skeleton/index.d.ts.map +0 -1
  206. package/features/connector-library/components/library-card-skeleton/styles.d.ts.map +0 -1
  207. package/features/connector-library/components/library-edit-list/index.d.ts.map +0 -1
  208. package/features/connector-library/components/library-edit-list/styles.d.ts.map +0 -1
  209. package/features/connector-library/constants/api-library.d.ts +0 -3
  210. package/features/connector-library/constants/api-library.d.ts.map +0 -1
  211. package/features/connector-library/constants/content-page.d.ts.map +0 -1
  212. package/features/connector-library/types/connector.d.ts +0 -13
  213. package/features/connector-library/types/connector.d.ts.map +0 -1
  214. package/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.d.ts.map +0 -1
  215. package/features/request-new-connector/components/custom-connector-card/index.d.ts +0 -10
  216. package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +0 -1
  217. package/features/request-new-connector/components/custom-connector-card/style.d.ts.map +0 -1
  218. package/index-B4vTJgTz.js +0 -66
  219. package/index-BD6d8j8c.js +0 -68
  220. package/index-EHBDsMzm.js +0 -67
  221. package/index-X3arshLk.js +0 -711
  222. package/index-sfSOXkkP.js +0 -30265
  223. package/styled-ui-components-D4lUYZ75.js +0 -2253
  224. /package/app/connectors/pages/{settings/connector-config → api-view}/__tests__/connector-config.test.d.ts +0 -0
  225. /package/app/connectors/pages/{settings/connector-config → api-view}/index.d.ts +0 -0
  226. /package/app/connectors/pages/{settings/connector-config → api-view}/style.d.ts +0 -0
  227. /package/features/{connector-library → api-library}/components/api-library-skeleton/index.d.ts +0 -0
  228. /package/features/{request-new-connector/components/custom-connector-card → connector-library/components/custom-connector-card-list}/__tests__/custom-connector-card.test.d.ts +0 -0
  229. /package/features/{request-new-connector/components/custom-connector-card → connector-library/components/custom-connector-card-list}/style.d.ts +0 -0
  230. /package/features/{connector-library → template-library}/components/library-card-list/__tests__/library-card-list.test.d.ts +0 -0
  231. /package/features/{connector-library → template-library}/components/library-card-list/index.d.ts +0 -0
  232. /package/features/{connector-library → template-library}/components/library-card-skeleton/index.d.ts +0 -0
  233. /package/features/{connector-library → template-library}/components/library-card-skeleton/styles.d.ts +0 -0
  234. /package/features/{connector-library → template-library}/components/library-edit-list/index.d.ts +0 -0
  235. /package/features/{connector-library → template-library}/components/library-edit-list/styles.d.ts +0 -0
  236. /package/features/{connector-library → template-library}/constants/content-page.d.ts +0 -0
@@ -0,0 +1,2648 @@
1
+ import { aG as Zo, aH as Yt, z as dt, y as vt, J as ze, j as P, s as U, Z as Jo, D as Ue, aa as Gt, a9 as Kt, _ as w, E as mt, F as Me, aI as Zt, m as Qo, G as Ce, P as n, H as ht, aJ as er, aK as Jt, aL as tr, a0 as or, aM as pt, a4 as xo, N as Ct, aN as Qt, aO as rr, af as Oo, ah as eo, K as To, a7 as nr, aP as ar, aQ as ot, v as ir, t as sr, w as to, aR as lr, aS as oo, aT as rt, aU as pr, aV as cr, B as Po, aW as fr, b as ur, aX as _e } from "./index-BqGsuBlL.js";
2
+ import * as M from "react";
3
+ import dr from "react";
4
+ function vr(e, t = 0, o = 1) {
5
+ return process.env.NODE_ENV !== "production" && (e < t || e > o) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${o}].`), Zo(e, t, o);
6
+ }
7
+ function mr(e) {
8
+ e = e.slice(1);
9
+ const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
10
+ let o = e.match(t);
11
+ return o && o[0].length === 1 && (o = o.map((r) => r + r)), o ? `rgb${o.length === 4 ? "a" : ""}(${o.map((r, a) => a < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
12
+ }
13
+ function Co(e) {
14
+ if (e.type)
15
+ return e;
16
+ if (e.charAt(0) === "#")
17
+ return Co(mr(e));
18
+ const t = e.indexOf("("), o = e.substring(0, t);
19
+ if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(o) === -1)
20
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
21
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Yt(9, e));
22
+ let r = e.substring(t + 1, e.length - 1), a;
23
+ if (o === "color") {
24
+ if (r = r.split(" "), a = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(a) === -1)
25
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${a}\` color space.
26
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Yt(10, a));
27
+ } else
28
+ r = r.split(",");
29
+ return r = r.map((i) => parseFloat(i)), {
30
+ type: o,
31
+ values: r,
32
+ colorSpace: a
33
+ };
34
+ }
35
+ function hr(e) {
36
+ const {
37
+ type: t,
38
+ colorSpace: o
39
+ } = e;
40
+ let {
41
+ values: r
42
+ } = e;
43
+ return t.indexOf("rgb") !== -1 ? r = r.map((a, i) => i < 3 ? parseInt(a, 10) : a) : t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.indexOf("color") !== -1 ? r = `${o} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`;
44
+ }
45
+ function gr(e, t) {
46
+ return e = Co(e), t = vr(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, hr(e);
47
+ }
48
+ function br(e) {
49
+ return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
50
+ }
51
+ function yr(e) {
52
+ return parseFloat(e);
53
+ }
54
+ function wr(e) {
55
+ return vt("MuiAlert", e);
56
+ }
57
+ const ro = dt("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), xr = ze(/* @__PURE__ */ P.jsx("path", {
58
+ d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
59
+ }), "SuccessOutlined"), Or = ze(/* @__PURE__ */ P.jsx("path", {
60
+ d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
61
+ }), "ReportProblemOutlined"), Tr = ze(/* @__PURE__ */ P.jsx("path", {
62
+ d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
63
+ }), "ErrorOutline"), Pr = ze(/* @__PURE__ */ P.jsx("path", {
64
+ d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
65
+ }), "InfoOutlined"), Cr = ze(/* @__PURE__ */ P.jsx("path", {
66
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
67
+ }), "Close"), Er = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"], Rr = (e) => {
68
+ const {
69
+ variant: t,
70
+ color: o,
71
+ severity: r,
72
+ classes: a
73
+ } = e, i = {
74
+ root: ["root", `color${Ue(o || r)}`, `${t}${Ue(o || r)}`, `${t}`],
75
+ icon: ["icon"],
76
+ message: ["message"],
77
+ action: ["action"]
78
+ };
79
+ return ht(i, wr, a);
80
+ }, jr = U(Jo, {
81
+ name: "MuiAlert",
82
+ slot: "Root",
83
+ overridesResolver: (e, t) => {
84
+ const {
85
+ ownerState: o
86
+ } = e;
87
+ return [t.root, t[o.variant], t[`${o.variant}${Ue(o.color || o.severity)}`]];
88
+ }
89
+ })(({
90
+ theme: e
91
+ }) => {
92
+ const t = e.palette.mode === "light" ? Gt : Kt, o = e.palette.mode === "light" ? Kt : Gt;
93
+ return w({}, e.typography.body2, {
94
+ backgroundColor: "transparent",
95
+ display: "flex",
96
+ padding: "6px 16px",
97
+ variants: [...Object.entries(e.palette).filter(([, r]) => r.main && r.light).map(([r]) => ({
98
+ props: {
99
+ colorSeverity: r,
100
+ variant: "standard"
101
+ },
102
+ style: {
103
+ color: e.vars ? e.vars.palette.Alert[`${r}Color`] : t(e.palette[r].light, 0.6),
104
+ backgroundColor: e.vars ? e.vars.palette.Alert[`${r}StandardBg`] : o(e.palette[r].light, 0.9),
105
+ [`& .${ro.icon}`]: e.vars ? {
106
+ color: e.vars.palette.Alert[`${r}IconColor`]
107
+ } : {
108
+ color: e.palette[r].main
109
+ }
110
+ }
111
+ })), ...Object.entries(e.palette).filter(([, r]) => r.main && r.light).map(([r]) => ({
112
+ props: {
113
+ colorSeverity: r,
114
+ variant: "outlined"
115
+ },
116
+ style: {
117
+ color: e.vars ? e.vars.palette.Alert[`${r}Color`] : t(e.palette[r].light, 0.6),
118
+ border: `1px solid ${(e.vars || e).palette[r].light}`,
119
+ [`& .${ro.icon}`]: e.vars ? {
120
+ color: e.vars.palette.Alert[`${r}IconColor`]
121
+ } : {
122
+ color: e.palette[r].main
123
+ }
124
+ }
125
+ })), ...Object.entries(e.palette).filter(([, r]) => r.main && r.dark).map(([r]) => ({
126
+ props: {
127
+ colorSeverity: r,
128
+ variant: "filled"
129
+ },
130
+ style: w({
131
+ fontWeight: e.typography.fontWeightMedium
132
+ }, e.vars ? {
133
+ color: e.vars.palette.Alert[`${r}FilledColor`],
134
+ backgroundColor: e.vars.palette.Alert[`${r}FilledBg`]
135
+ } : {
136
+ backgroundColor: e.palette.mode === "dark" ? e.palette[r].dark : e.palette[r].main,
137
+ color: e.palette.getContrastText(e.palette[r].main)
138
+ })
139
+ }))]
140
+ });
141
+ }), Ar = U("div", {
142
+ name: "MuiAlert",
143
+ slot: "Icon",
144
+ overridesResolver: (e, t) => t.icon
145
+ })({
146
+ marginRight: 12,
147
+ padding: "7px 0",
148
+ display: "flex",
149
+ fontSize: 22,
150
+ opacity: 0.9
151
+ }), Mr = U("div", {
152
+ name: "MuiAlert",
153
+ slot: "Message",
154
+ overridesResolver: (e, t) => t.message
155
+ })({
156
+ padding: "8px 0",
157
+ minWidth: 0,
158
+ overflow: "auto"
159
+ }), no = U("div", {
160
+ name: "MuiAlert",
161
+ slot: "Action",
162
+ overridesResolver: (e, t) => t.action
163
+ })({
164
+ display: "flex",
165
+ alignItems: "flex-start",
166
+ padding: "4px 0 0 16px",
167
+ marginLeft: "auto",
168
+ marginRight: -8
169
+ }), ao = {
170
+ success: /* @__PURE__ */ P.jsx(xr, {
171
+ fontSize: "inherit"
172
+ }),
173
+ warning: /* @__PURE__ */ P.jsx(Or, {
174
+ fontSize: "inherit"
175
+ }),
176
+ error: /* @__PURE__ */ P.jsx(Tr, {
177
+ fontSize: "inherit"
178
+ }),
179
+ info: /* @__PURE__ */ P.jsx(Pr, {
180
+ fontSize: "inherit"
181
+ })
182
+ }, $r = /* @__PURE__ */ M.forwardRef(function(t, o) {
183
+ const r = mt({
184
+ props: t,
185
+ name: "MuiAlert"
186
+ }), {
187
+ action: a,
188
+ children: i,
189
+ className: p,
190
+ closeText: l = "Close",
191
+ color: s,
192
+ components: f = {},
193
+ componentsProps: c = {},
194
+ icon: m,
195
+ iconMapping: y = ao,
196
+ onClose: d,
197
+ role: C = "alert",
198
+ severity: v = "success",
199
+ slotProps: g = {},
200
+ slots: T = {},
201
+ variant: A = "standard"
202
+ } = r, O = Me(r, Er), u = w({}, r, {
203
+ color: s,
204
+ severity: v,
205
+ variant: A,
206
+ colorSeverity: s || v
207
+ }), h = Rr(u), b = {
208
+ slots: w({
209
+ closeButton: f.CloseButton,
210
+ closeIcon: f.CloseIcon
211
+ }, T),
212
+ slotProps: w({}, c, g)
213
+ }, [E, $] = Zt("closeButton", {
214
+ elementType: Qo,
215
+ externalForwardedProps: b,
216
+ ownerState: u
217
+ }), [R, j] = Zt("closeIcon", {
218
+ elementType: Cr,
219
+ externalForwardedProps: b,
220
+ ownerState: u
221
+ });
222
+ return /* @__PURE__ */ P.jsxs(jr, w({
223
+ role: C,
224
+ elevation: 0,
225
+ ownerState: u,
226
+ className: Ce(h.root, p),
227
+ ref: o
228
+ }, O, {
229
+ children: [m !== !1 ? /* @__PURE__ */ P.jsx(Ar, {
230
+ ownerState: u,
231
+ className: h.icon,
232
+ children: m || y[v] || ao[v]
233
+ }) : null, /* @__PURE__ */ P.jsx(Mr, {
234
+ ownerState: u,
235
+ className: h.message,
236
+ children: i
237
+ }), a != null ? /* @__PURE__ */ P.jsx(no, {
238
+ ownerState: u,
239
+ className: h.action,
240
+ children: a
241
+ }) : null, a == null && d ? /* @__PURE__ */ P.jsx(no, {
242
+ ownerState: u,
243
+ className: h.action,
244
+ children: /* @__PURE__ */ P.jsx(E, w({
245
+ size: "small",
246
+ "aria-label": l,
247
+ title: l,
248
+ color: "inherit",
249
+ onClick: d
250
+ }, $, {
251
+ children: /* @__PURE__ */ P.jsx(R, w({
252
+ fontSize: "small"
253
+ }, j))
254
+ }))
255
+ }) : null]
256
+ }));
257
+ });
258
+ process.env.NODE_ENV !== "production" && ($r.propTypes = {
259
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
260
+ // │ These PropTypes are generated from the TypeScript type definitions. │
261
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
262
+ // └─────────────────────────────────────────────────────────────────────┘
263
+ /**
264
+ * The action to display. It renders after the message, at the end of the alert.
265
+ */
266
+ action: n.node,
267
+ /**
268
+ * The content of the component.
269
+ */
270
+ children: n.node,
271
+ /**
272
+ * Override or extend the styles applied to the component.
273
+ */
274
+ classes: n.object,
275
+ /**
276
+ * @ignore
277
+ */
278
+ className: n.string,
279
+ /**
280
+ * Override the default label for the *close popup* icon button.
281
+ *
282
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
283
+ * @default 'Close'
284
+ */
285
+ closeText: n.string,
286
+ /**
287
+ * The color of the component. Unless provided, the value is taken from the `severity` prop.
288
+ * It supports both default and custom theme colors, which can be added as shown in the
289
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
290
+ */
291
+ color: n.oneOfType([n.oneOf(["error", "info", "success", "warning"]), n.string]),
292
+ /**
293
+ * The components used for each slot inside.
294
+ *
295
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
296
+ *
297
+ * @default {}
298
+ */
299
+ components: n.shape({
300
+ CloseButton: n.elementType,
301
+ CloseIcon: n.elementType
302
+ }),
303
+ /**
304
+ * The extra props for the slot components.
305
+ * You can override the existing props or add new ones.
306
+ *
307
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
308
+ *
309
+ * @default {}
310
+ */
311
+ componentsProps: n.shape({
312
+ closeButton: n.object,
313
+ closeIcon: n.object
314
+ }),
315
+ /**
316
+ * Override the icon displayed before the children.
317
+ * Unless provided, the icon is mapped to the value of the `severity` prop.
318
+ * Set to `false` to remove the `icon`.
319
+ */
320
+ icon: n.node,
321
+ /**
322
+ * The component maps the `severity` prop to a range of different icons,
323
+ * for instance success to `<SuccessOutlined>`.
324
+ * If you wish to change this mapping, you can provide your own.
325
+ * Alternatively, you can use the `icon` prop to override the icon displayed.
326
+ */
327
+ iconMapping: n.shape({
328
+ error: n.node,
329
+ info: n.node,
330
+ success: n.node,
331
+ warning: n.node
332
+ }),
333
+ /**
334
+ * Callback fired when the component requests to be closed.
335
+ * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
336
+ * @param {React.SyntheticEvent} event The event source of the callback.
337
+ */
338
+ onClose: n.func,
339
+ /**
340
+ * The ARIA role attribute of the element.
341
+ * @default 'alert'
342
+ */
343
+ role: n.string,
344
+ /**
345
+ * The severity of the alert. This defines the color and icon used.
346
+ * @default 'success'
347
+ */
348
+ severity: n.oneOfType([n.oneOf(["error", "info", "success", "warning"]), n.string]),
349
+ /**
350
+ * The props used for each slot inside.
351
+ * @default {}
352
+ */
353
+ slotProps: n.shape({
354
+ closeButton: n.oneOfType([n.func, n.object]),
355
+ closeIcon: n.oneOfType([n.func, n.object])
356
+ }),
357
+ /**
358
+ * The components used for each slot inside.
359
+ * @default {}
360
+ */
361
+ slots: n.shape({
362
+ closeButton: n.elementType,
363
+ closeIcon: n.elementType
364
+ }),
365
+ /**
366
+ * The system prop that allows defining system overrides as well as additional CSS styles.
367
+ */
368
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
369
+ /**
370
+ * The variant to use.
371
+ * @default 'standard'
372
+ */
373
+ variant: n.oneOfType([n.oneOf(["filled", "outlined", "standard"]), n.string])
374
+ });
375
+ var jt = {};
376
+ Object.defineProperty(jt, "__esModule", {
377
+ value: !0
378
+ });
379
+ var Eo = jt.default = void 0, Sr = Lr(dr), kr = er;
380
+ function Ro(e) {
381
+ if (typeof WeakMap != "function") return null;
382
+ var t = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
383
+ return (Ro = function(r) {
384
+ return r ? o : t;
385
+ })(e);
386
+ }
387
+ function Lr(e, t) {
388
+ if (e && e.__esModule) return e;
389
+ if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
390
+ var o = Ro(t);
391
+ if (o && o.has(e)) return o.get(e);
392
+ var r = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
393
+ for (var i in e) if (i !== "default" && Object.prototype.hasOwnProperty.call(e, i)) {
394
+ var p = a ? Object.getOwnPropertyDescriptor(e, i) : null;
395
+ p && (p.get || p.set) ? Object.defineProperty(r, i, p) : r[i] = e[i];
396
+ }
397
+ return r.default = e, o && o.set(e, r), r;
398
+ }
399
+ function Dr(e) {
400
+ return Object.keys(e).length === 0;
401
+ }
402
+ function Nr(e = null) {
403
+ const t = Sr.useContext(kr.ThemeContext);
404
+ return !t || Dr(t) ? e : t;
405
+ }
406
+ Eo = jt.default = Nr;
407
+ var W = "top", G = "bottom", K = "right", F = "left", At = "auto", qe = [W, G, K, F], Ee = "start", Ve = "end", Ir = "clippingParents", jo = "viewport", Ie = "popper", Br = "reference", io = /* @__PURE__ */ qe.reduce(function(e, t) {
408
+ return e.concat([t + "-" + Ee, t + "-" + Ve]);
409
+ }, []), Ao = /* @__PURE__ */ [].concat(qe, [At]).reduce(function(e, t) {
410
+ return e.concat([t, t + "-" + Ee, t + "-" + Ve]);
411
+ }, []), _r = "beforeRead", Wr = "read", Fr = "afterRead", Ur = "beforeMain", Vr = "main", Hr = "afterMain", zr = "beforeWrite", qr = "write", Xr = "afterWrite", Yr = [_r, Wr, Fr, Ur, Vr, Hr, zr, qr, Xr];
412
+ function ne(e) {
413
+ return e ? (e.nodeName || "").toLowerCase() : null;
414
+ }
415
+ function H(e) {
416
+ if (e == null)
417
+ return window;
418
+ if (e.toString() !== "[object Window]") {
419
+ var t = e.ownerDocument;
420
+ return t && t.defaultView || window;
421
+ }
422
+ return e;
423
+ }
424
+ function ge(e) {
425
+ var t = H(e).Element;
426
+ return e instanceof t || e instanceof Element;
427
+ }
428
+ function Y(e) {
429
+ var t = H(e).HTMLElement;
430
+ return e instanceof t || e instanceof HTMLElement;
431
+ }
432
+ function Mt(e) {
433
+ if (typeof ShadowRoot > "u")
434
+ return !1;
435
+ var t = H(e).ShadowRoot;
436
+ return e instanceof t || e instanceof ShadowRoot;
437
+ }
438
+ function Gr(e) {
439
+ var t = e.state;
440
+ Object.keys(t.elements).forEach(function(o) {
441
+ var r = t.styles[o] || {}, a = t.attributes[o] || {}, i = t.elements[o];
442
+ !Y(i) || !ne(i) || (Object.assign(i.style, r), Object.keys(a).forEach(function(p) {
443
+ var l = a[p];
444
+ l === !1 ? i.removeAttribute(p) : i.setAttribute(p, l === !0 ? "" : l);
445
+ }));
446
+ });
447
+ }
448
+ function Kr(e) {
449
+ var t = e.state, o = {
450
+ popper: {
451
+ position: t.options.strategy,
452
+ left: "0",
453
+ top: "0",
454
+ margin: "0"
455
+ },
456
+ arrow: {
457
+ position: "absolute"
458
+ },
459
+ reference: {}
460
+ };
461
+ return Object.assign(t.elements.popper.style, o.popper), t.styles = o, t.elements.arrow && Object.assign(t.elements.arrow.style, o.arrow), function() {
462
+ Object.keys(t.elements).forEach(function(r) {
463
+ var a = t.elements[r], i = t.attributes[r] || {}, p = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : o[r]), l = p.reduce(function(s, f) {
464
+ return s[f] = "", s;
465
+ }, {});
466
+ !Y(a) || !ne(a) || (Object.assign(a.style, l), Object.keys(i).forEach(function(s) {
467
+ a.removeAttribute(s);
468
+ }));
469
+ });
470
+ };
471
+ }
472
+ const Zr = {
473
+ name: "applyStyles",
474
+ enabled: !0,
475
+ phase: "write",
476
+ fn: Gr,
477
+ effect: Kr,
478
+ requires: ["computeStyles"]
479
+ };
480
+ function re(e) {
481
+ return e.split("-")[0];
482
+ }
483
+ var he = Math.max, ct = Math.min, Re = Math.round;
484
+ function Et() {
485
+ var e = navigator.userAgentData;
486
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
487
+ return t.brand + "/" + t.version;
488
+ }).join(" ") : navigator.userAgent;
489
+ }
490
+ function Mo() {
491
+ return !/^((?!chrome|android).)*safari/i.test(Et());
492
+ }
493
+ function je(e, t, o) {
494
+ t === void 0 && (t = !1), o === void 0 && (o = !1);
495
+ var r = e.getBoundingClientRect(), a = 1, i = 1;
496
+ t && Y(e) && (a = e.offsetWidth > 0 && Re(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Re(r.height) / e.offsetHeight || 1);
497
+ var p = ge(e) ? H(e) : window, l = p.visualViewport, s = !Mo() && o, f = (r.left + (s && l ? l.offsetLeft : 0)) / a, c = (r.top + (s && l ? l.offsetTop : 0)) / i, m = r.width / a, y = r.height / i;
498
+ return {
499
+ width: m,
500
+ height: y,
501
+ top: c,
502
+ right: f + m,
503
+ bottom: c + y,
504
+ left: f,
505
+ x: f,
506
+ y: c
507
+ };
508
+ }
509
+ function $t(e) {
510
+ var t = je(e), o = e.offsetWidth, r = e.offsetHeight;
511
+ return Math.abs(t.width - o) <= 1 && (o = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
512
+ x: e.offsetLeft,
513
+ y: e.offsetTop,
514
+ width: o,
515
+ height: r
516
+ };
517
+ }
518
+ function $o(e, t) {
519
+ var o = t.getRootNode && t.getRootNode();
520
+ if (e.contains(t))
521
+ return !0;
522
+ if (o && Mt(o)) {
523
+ var r = t;
524
+ do {
525
+ if (r && e.isSameNode(r))
526
+ return !0;
527
+ r = r.parentNode || r.host;
528
+ } while (r);
529
+ }
530
+ return !1;
531
+ }
532
+ function se(e) {
533
+ return H(e).getComputedStyle(e);
534
+ }
535
+ function Jr(e) {
536
+ return ["table", "td", "th"].indexOf(ne(e)) >= 0;
537
+ }
538
+ function fe(e) {
539
+ return ((ge(e) ? e.ownerDocument : (
540
+ // $FlowFixMe[prop-missing]
541
+ e.document
542
+ )) || window.document).documentElement;
543
+ }
544
+ function gt(e) {
545
+ return ne(e) === "html" ? e : (
546
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
547
+ // $FlowFixMe[incompatible-return]
548
+ // $FlowFixMe[prop-missing]
549
+ e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
550
+ e.parentNode || // DOM Element detected
551
+ (Mt(e) ? e.host : null) || // ShadowRoot detected
552
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
553
+ fe(e)
554
+ );
555
+ }
556
+ function so(e) {
557
+ return !Y(e) || // https://github.com/popperjs/popper-core/issues/837
558
+ se(e).position === "fixed" ? null : e.offsetParent;
559
+ }
560
+ function Qr(e) {
561
+ var t = /firefox/i.test(Et()), o = /Trident/i.test(Et());
562
+ if (o && Y(e)) {
563
+ var r = se(e);
564
+ if (r.position === "fixed")
565
+ return null;
566
+ }
567
+ var a = gt(e);
568
+ for (Mt(a) && (a = a.host); Y(a) && ["html", "body"].indexOf(ne(a)) < 0; ) {
569
+ var i = se(a);
570
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
571
+ return a;
572
+ a = a.parentNode;
573
+ }
574
+ return null;
575
+ }
576
+ function Xe(e) {
577
+ for (var t = H(e), o = so(e); o && Jr(o) && se(o).position === "static"; )
578
+ o = so(o);
579
+ return o && (ne(o) === "html" || ne(o) === "body" && se(o).position === "static") ? t : o || Qr(e) || t;
580
+ }
581
+ function St(e) {
582
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
583
+ }
584
+ function We(e, t, o) {
585
+ return he(e, ct(t, o));
586
+ }
587
+ function en(e, t, o) {
588
+ var r = We(e, t, o);
589
+ return r > o ? o : r;
590
+ }
591
+ function So() {
592
+ return {
593
+ top: 0,
594
+ right: 0,
595
+ bottom: 0,
596
+ left: 0
597
+ };
598
+ }
599
+ function ko(e) {
600
+ return Object.assign({}, So(), e);
601
+ }
602
+ function Lo(e, t) {
603
+ return t.reduce(function(o, r) {
604
+ return o[r] = e, o;
605
+ }, {});
606
+ }
607
+ var tn = function(t, o) {
608
+ return t = typeof t == "function" ? t(Object.assign({}, o.rects, {
609
+ placement: o.placement
610
+ })) : t, ko(typeof t != "number" ? t : Lo(t, qe));
611
+ };
612
+ function on(e) {
613
+ var t, o = e.state, r = e.name, a = e.options, i = o.elements.arrow, p = o.modifiersData.popperOffsets, l = re(o.placement), s = St(l), f = [F, K].indexOf(l) >= 0, c = f ? "height" : "width";
614
+ if (!(!i || !p)) {
615
+ var m = tn(a.padding, o), y = $t(i), d = s === "y" ? W : F, C = s === "y" ? G : K, v = o.rects.reference[c] + o.rects.reference[s] - p[s] - o.rects.popper[c], g = p[s] - o.rects.reference[s], T = Xe(i), A = T ? s === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, O = v / 2 - g / 2, u = m[d], h = A - y[c] - m[C], b = A / 2 - y[c] / 2 + O, E = We(u, b, h), $ = s;
616
+ o.modifiersData[r] = (t = {}, t[$] = E, t.centerOffset = E - b, t);
617
+ }
618
+ }
619
+ function rn(e) {
620
+ var t = e.state, o = e.options, r = o.element, a = r === void 0 ? "[data-popper-arrow]" : r;
621
+ a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || $o(t.elements.popper, a) && (t.elements.arrow = a));
622
+ }
623
+ const nn = {
624
+ name: "arrow",
625
+ enabled: !0,
626
+ phase: "main",
627
+ fn: on,
628
+ effect: rn,
629
+ requires: ["popperOffsets"],
630
+ requiresIfExists: ["preventOverflow"]
631
+ };
632
+ function Ae(e) {
633
+ return e.split("-")[1];
634
+ }
635
+ var an = {
636
+ top: "auto",
637
+ right: "auto",
638
+ bottom: "auto",
639
+ left: "auto"
640
+ };
641
+ function sn(e, t) {
642
+ var o = e.x, r = e.y, a = t.devicePixelRatio || 1;
643
+ return {
644
+ x: Re(o * a) / a || 0,
645
+ y: Re(r * a) / a || 0
646
+ };
647
+ }
648
+ function lo(e) {
649
+ var t, o = e.popper, r = e.popperRect, a = e.placement, i = e.variation, p = e.offsets, l = e.position, s = e.gpuAcceleration, f = e.adaptive, c = e.roundOffsets, m = e.isFixed, y = p.x, d = y === void 0 ? 0 : y, C = p.y, v = C === void 0 ? 0 : C, g = typeof c == "function" ? c({
650
+ x: d,
651
+ y: v
652
+ }) : {
653
+ x: d,
654
+ y: v
655
+ };
656
+ d = g.x, v = g.y;
657
+ var T = p.hasOwnProperty("x"), A = p.hasOwnProperty("y"), O = F, u = W, h = window;
658
+ if (f) {
659
+ var b = Xe(o), E = "clientHeight", $ = "clientWidth";
660
+ if (b === H(o) && (b = fe(o), se(b).position !== "static" && l === "absolute" && (E = "scrollHeight", $ = "scrollWidth")), b = b, a === W || (a === F || a === K) && i === Ve) {
661
+ u = G;
662
+ var R = m && b === h && h.visualViewport ? h.visualViewport.height : (
663
+ // $FlowFixMe[prop-missing]
664
+ b[E]
665
+ );
666
+ v -= R - r.height, v *= s ? 1 : -1;
667
+ }
668
+ if (a === F || (a === W || a === G) && i === Ve) {
669
+ O = K;
670
+ var j = m && b === h && h.visualViewport ? h.visualViewport.width : (
671
+ // $FlowFixMe[prop-missing]
672
+ b[$]
673
+ );
674
+ d -= j - r.width, d *= s ? 1 : -1;
675
+ }
676
+ }
677
+ var k = Object.assign({
678
+ position: l
679
+ }, f && an), N = c === !0 ? sn({
680
+ x: d,
681
+ y: v
682
+ }, H(o)) : {
683
+ x: d,
684
+ y: v
685
+ };
686
+ if (d = N.x, v = N.y, s) {
687
+ var L;
688
+ return Object.assign({}, k, (L = {}, L[u] = A ? "0" : "", L[O] = T ? "0" : "", L.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + v + "px)" : "translate3d(" + d + "px, " + v + "px, 0)", L));
689
+ }
690
+ return Object.assign({}, k, (t = {}, t[u] = A ? v + "px" : "", t[O] = T ? d + "px" : "", t.transform = "", t));
691
+ }
692
+ function ln(e) {
693
+ var t = e.state, o = e.options, r = o.gpuAcceleration, a = r === void 0 ? !0 : r, i = o.adaptive, p = i === void 0 ? !0 : i, l = o.roundOffsets, s = l === void 0 ? !0 : l, f = {
694
+ placement: re(t.placement),
695
+ variation: Ae(t.placement),
696
+ popper: t.elements.popper,
697
+ popperRect: t.rects.popper,
698
+ gpuAcceleration: a,
699
+ isFixed: t.options.strategy === "fixed"
700
+ };
701
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, lo(Object.assign({}, f, {
702
+ offsets: t.modifiersData.popperOffsets,
703
+ position: t.options.strategy,
704
+ adaptive: p,
705
+ roundOffsets: s
706
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, lo(Object.assign({}, f, {
707
+ offsets: t.modifiersData.arrow,
708
+ position: "absolute",
709
+ adaptive: !1,
710
+ roundOffsets: s
711
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
712
+ "data-popper-placement": t.placement
713
+ });
714
+ }
715
+ const pn = {
716
+ name: "computeStyles",
717
+ enabled: !0,
718
+ phase: "beforeWrite",
719
+ fn: ln,
720
+ data: {}
721
+ };
722
+ var nt = {
723
+ passive: !0
724
+ };
725
+ function cn(e) {
726
+ var t = e.state, o = e.instance, r = e.options, a = r.scroll, i = a === void 0 ? !0 : a, p = r.resize, l = p === void 0 ? !0 : p, s = H(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
727
+ return i && f.forEach(function(c) {
728
+ c.addEventListener("scroll", o.update, nt);
729
+ }), l && s.addEventListener("resize", o.update, nt), function() {
730
+ i && f.forEach(function(c) {
731
+ c.removeEventListener("scroll", o.update, nt);
732
+ }), l && s.removeEventListener("resize", o.update, nt);
733
+ };
734
+ }
735
+ const fn = {
736
+ name: "eventListeners",
737
+ enabled: !0,
738
+ phase: "write",
739
+ fn: function() {
740
+ },
741
+ effect: cn,
742
+ data: {}
743
+ };
744
+ var un = {
745
+ left: "right",
746
+ right: "left",
747
+ bottom: "top",
748
+ top: "bottom"
749
+ };
750
+ function lt(e) {
751
+ return e.replace(/left|right|bottom|top/g, function(t) {
752
+ return un[t];
753
+ });
754
+ }
755
+ var dn = {
756
+ start: "end",
757
+ end: "start"
758
+ };
759
+ function po(e) {
760
+ return e.replace(/start|end/g, function(t) {
761
+ return dn[t];
762
+ });
763
+ }
764
+ function kt(e) {
765
+ var t = H(e), o = t.pageXOffset, r = t.pageYOffset;
766
+ return {
767
+ scrollLeft: o,
768
+ scrollTop: r
769
+ };
770
+ }
771
+ function Lt(e) {
772
+ return je(fe(e)).left + kt(e).scrollLeft;
773
+ }
774
+ function vn(e, t) {
775
+ var o = H(e), r = fe(e), a = o.visualViewport, i = r.clientWidth, p = r.clientHeight, l = 0, s = 0;
776
+ if (a) {
777
+ i = a.width, p = a.height;
778
+ var f = Mo();
779
+ (f || !f && t === "fixed") && (l = a.offsetLeft, s = a.offsetTop);
780
+ }
781
+ return {
782
+ width: i,
783
+ height: p,
784
+ x: l + Lt(e),
785
+ y: s
786
+ };
787
+ }
788
+ function mn(e) {
789
+ var t, o = fe(e), r = kt(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = he(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), p = he(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), l = -r.scrollLeft + Lt(e), s = -r.scrollTop;
790
+ return se(a || o).direction === "rtl" && (l += he(o.clientWidth, a ? a.clientWidth : 0) - i), {
791
+ width: i,
792
+ height: p,
793
+ x: l,
794
+ y: s
795
+ };
796
+ }
797
+ function Dt(e) {
798
+ var t = se(e), o = t.overflow, r = t.overflowX, a = t.overflowY;
799
+ return /auto|scroll|overlay|hidden/.test(o + a + r);
800
+ }
801
+ function Do(e) {
802
+ return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : Y(e) && Dt(e) ? e : Do(gt(e));
803
+ }
804
+ function Fe(e, t) {
805
+ var o;
806
+ t === void 0 && (t = []);
807
+ var r = Do(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = H(r), p = a ? [i].concat(i.visualViewport || [], Dt(r) ? r : []) : r, l = t.concat(p);
808
+ return a ? l : (
809
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
810
+ l.concat(Fe(gt(p)))
811
+ );
812
+ }
813
+ function Rt(e) {
814
+ return Object.assign({}, e, {
815
+ left: e.x,
816
+ top: e.y,
817
+ right: e.x + e.width,
818
+ bottom: e.y + e.height
819
+ });
820
+ }
821
+ function hn(e, t) {
822
+ var o = je(e, !1, t === "fixed");
823
+ return o.top = o.top + e.clientTop, o.left = o.left + e.clientLeft, o.bottom = o.top + e.clientHeight, o.right = o.left + e.clientWidth, o.width = e.clientWidth, o.height = e.clientHeight, o.x = o.left, o.y = o.top, o;
824
+ }
825
+ function co(e, t, o) {
826
+ return t === jo ? Rt(vn(e, o)) : ge(t) ? hn(t, o) : Rt(mn(fe(e)));
827
+ }
828
+ function gn(e) {
829
+ var t = Fe(gt(e)), o = ["absolute", "fixed"].indexOf(se(e).position) >= 0, r = o && Y(e) ? Xe(e) : e;
830
+ return ge(r) ? t.filter(function(a) {
831
+ return ge(a) && $o(a, r) && ne(a) !== "body";
832
+ }) : [];
833
+ }
834
+ function bn(e, t, o, r) {
835
+ var a = t === "clippingParents" ? gn(e) : [].concat(t), i = [].concat(a, [o]), p = i[0], l = i.reduce(function(s, f) {
836
+ var c = co(e, f, r);
837
+ return s.top = he(c.top, s.top), s.right = ct(c.right, s.right), s.bottom = ct(c.bottom, s.bottom), s.left = he(c.left, s.left), s;
838
+ }, co(e, p, r));
839
+ return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
840
+ }
841
+ function No(e) {
842
+ var t = e.reference, o = e.element, r = e.placement, a = r ? re(r) : null, i = r ? Ae(r) : null, p = t.x + t.width / 2 - o.width / 2, l = t.y + t.height / 2 - o.height / 2, s;
843
+ switch (a) {
844
+ case W:
845
+ s = {
846
+ x: p,
847
+ y: t.y - o.height
848
+ };
849
+ break;
850
+ case G:
851
+ s = {
852
+ x: p,
853
+ y: t.y + t.height
854
+ };
855
+ break;
856
+ case K:
857
+ s = {
858
+ x: t.x + t.width,
859
+ y: l
860
+ };
861
+ break;
862
+ case F:
863
+ s = {
864
+ x: t.x - o.width,
865
+ y: l
866
+ };
867
+ break;
868
+ default:
869
+ s = {
870
+ x: t.x,
871
+ y: t.y
872
+ };
873
+ }
874
+ var f = a ? St(a) : null;
875
+ if (f != null) {
876
+ var c = f === "y" ? "height" : "width";
877
+ switch (i) {
878
+ case Ee:
879
+ s[f] = s[f] - (t[c] / 2 - o[c] / 2);
880
+ break;
881
+ case Ve:
882
+ s[f] = s[f] + (t[c] / 2 - o[c] / 2);
883
+ break;
884
+ }
885
+ }
886
+ return s;
887
+ }
888
+ function He(e, t) {
889
+ t === void 0 && (t = {});
890
+ var o = t, r = o.placement, a = r === void 0 ? e.placement : r, i = o.strategy, p = i === void 0 ? e.strategy : i, l = o.boundary, s = l === void 0 ? Ir : l, f = o.rootBoundary, c = f === void 0 ? jo : f, m = o.elementContext, y = m === void 0 ? Ie : m, d = o.altBoundary, C = d === void 0 ? !1 : d, v = o.padding, g = v === void 0 ? 0 : v, T = ko(typeof g != "number" ? g : Lo(g, qe)), A = y === Ie ? Br : Ie, O = e.rects.popper, u = e.elements[C ? A : y], h = bn(ge(u) ? u : u.contextElement || fe(e.elements.popper), s, c, p), b = je(e.elements.reference), E = No({
891
+ reference: b,
892
+ element: O,
893
+ strategy: "absolute",
894
+ placement: a
895
+ }), $ = Rt(Object.assign({}, O, E)), R = y === Ie ? $ : b, j = {
896
+ top: h.top - R.top + T.top,
897
+ bottom: R.bottom - h.bottom + T.bottom,
898
+ left: h.left - R.left + T.left,
899
+ right: R.right - h.right + T.right
900
+ }, k = e.modifiersData.offset;
901
+ if (y === Ie && k) {
902
+ var N = k[a];
903
+ Object.keys(j).forEach(function(L) {
904
+ var Z = [K, G].indexOf(L) >= 0 ? 1 : -1, J = [W, G].indexOf(L) >= 0 ? "y" : "x";
905
+ j[L] += N[J] * Z;
906
+ });
907
+ }
908
+ return j;
909
+ }
910
+ function yn(e, t) {
911
+ t === void 0 && (t = {});
912
+ var o = t, r = o.placement, a = o.boundary, i = o.rootBoundary, p = o.padding, l = o.flipVariations, s = o.allowedAutoPlacements, f = s === void 0 ? Ao : s, c = Ae(r), m = c ? l ? io : io.filter(function(C) {
913
+ return Ae(C) === c;
914
+ }) : qe, y = m.filter(function(C) {
915
+ return f.indexOf(C) >= 0;
916
+ });
917
+ y.length === 0 && (y = m);
918
+ var d = y.reduce(function(C, v) {
919
+ return C[v] = He(e, {
920
+ placement: v,
921
+ boundary: a,
922
+ rootBoundary: i,
923
+ padding: p
924
+ })[re(v)], C;
925
+ }, {});
926
+ return Object.keys(d).sort(function(C, v) {
927
+ return d[C] - d[v];
928
+ });
929
+ }
930
+ function wn(e) {
931
+ if (re(e) === At)
932
+ return [];
933
+ var t = lt(e);
934
+ return [po(e), t, po(t)];
935
+ }
936
+ function xn(e) {
937
+ var t = e.state, o = e.options, r = e.name;
938
+ if (!t.modifiersData[r]._skip) {
939
+ for (var a = o.mainAxis, i = a === void 0 ? !0 : a, p = o.altAxis, l = p === void 0 ? !0 : p, s = o.fallbackPlacements, f = o.padding, c = o.boundary, m = o.rootBoundary, y = o.altBoundary, d = o.flipVariations, C = d === void 0 ? !0 : d, v = o.allowedAutoPlacements, g = t.options.placement, T = re(g), A = T === g, O = s || (A || !C ? [lt(g)] : wn(g)), u = [g].concat(O).reduce(function(ae, ee) {
940
+ return ae.concat(re(ee) === At ? yn(t, {
941
+ placement: ee,
942
+ boundary: c,
943
+ rootBoundary: m,
944
+ padding: f,
945
+ flipVariations: C,
946
+ allowedAutoPlacements: v
947
+ }) : ee);
948
+ }, []), h = t.rects.reference, b = t.rects.popper, E = /* @__PURE__ */ new Map(), $ = !0, R = u[0], j = 0; j < u.length; j++) {
949
+ var k = u[j], N = re(k), L = Ae(k) === Ee, Z = [W, G].indexOf(N) >= 0, J = Z ? "width" : "height", S = He(t, {
950
+ placement: k,
951
+ boundary: c,
952
+ rootBoundary: m,
953
+ altBoundary: y,
954
+ padding: f
955
+ }), D = Z ? L ? K : F : L ? G : W;
956
+ h[J] > b[J] && (D = lt(D));
957
+ var I = lt(D), Q = [];
958
+ if (i && Q.push(S[N] <= 0), l && Q.push(S[D] <= 0, S[I] <= 0), Q.every(function(ae) {
959
+ return ae;
960
+ })) {
961
+ R = k, $ = !1;
962
+ break;
963
+ }
964
+ E.set(k, Q);
965
+ }
966
+ if ($)
967
+ for (var be = C ? 3 : 1, ye = function(ee) {
968
+ var le = u.find(function(pe) {
969
+ var B = E.get(pe);
970
+ if (B)
971
+ return B.slice(0, ee).every(function(te) {
972
+ return te;
973
+ });
974
+ });
975
+ if (le)
976
+ return R = le, "break";
977
+ }, ue = be; ue > 0; ue--) {
978
+ var de = ye(ue);
979
+ if (de === "break") break;
980
+ }
981
+ t.placement !== R && (t.modifiersData[r]._skip = !0, t.placement = R, t.reset = !0);
982
+ }
983
+ }
984
+ const On = {
985
+ name: "flip",
986
+ enabled: !0,
987
+ phase: "main",
988
+ fn: xn,
989
+ requiresIfExists: ["offset"],
990
+ data: {
991
+ _skip: !1
992
+ }
993
+ };
994
+ function fo(e, t, o) {
995
+ return o === void 0 && (o = {
996
+ x: 0,
997
+ y: 0
998
+ }), {
999
+ top: e.top - t.height - o.y,
1000
+ right: e.right - t.width + o.x,
1001
+ bottom: e.bottom - t.height + o.y,
1002
+ left: e.left - t.width - o.x
1003
+ };
1004
+ }
1005
+ function uo(e) {
1006
+ return [W, K, G, F].some(function(t) {
1007
+ return e[t] >= 0;
1008
+ });
1009
+ }
1010
+ function Tn(e) {
1011
+ var t = e.state, o = e.name, r = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, p = He(t, {
1012
+ elementContext: "reference"
1013
+ }), l = He(t, {
1014
+ altBoundary: !0
1015
+ }), s = fo(p, r), f = fo(l, a, i), c = uo(s), m = uo(f);
1016
+ t.modifiersData[o] = {
1017
+ referenceClippingOffsets: s,
1018
+ popperEscapeOffsets: f,
1019
+ isReferenceHidden: c,
1020
+ hasPopperEscaped: m
1021
+ }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
1022
+ "data-popper-reference-hidden": c,
1023
+ "data-popper-escaped": m
1024
+ });
1025
+ }
1026
+ const Pn = {
1027
+ name: "hide",
1028
+ enabled: !0,
1029
+ phase: "main",
1030
+ requiresIfExists: ["preventOverflow"],
1031
+ fn: Tn
1032
+ };
1033
+ function Cn(e, t, o) {
1034
+ var r = re(e), a = [F, W].indexOf(r) >= 0 ? -1 : 1, i = typeof o == "function" ? o(Object.assign({}, t, {
1035
+ placement: e
1036
+ })) : o, p = i[0], l = i[1];
1037
+ return p = p || 0, l = (l || 0) * a, [F, K].indexOf(r) >= 0 ? {
1038
+ x: l,
1039
+ y: p
1040
+ } : {
1041
+ x: p,
1042
+ y: l
1043
+ };
1044
+ }
1045
+ function En(e) {
1046
+ var t = e.state, o = e.options, r = e.name, a = o.offset, i = a === void 0 ? [0, 0] : a, p = Ao.reduce(function(c, m) {
1047
+ return c[m] = Cn(m, t.rects, i), c;
1048
+ }, {}), l = p[t.placement], s = l.x, f = l.y;
1049
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = p;
1050
+ }
1051
+ const Rn = {
1052
+ name: "offset",
1053
+ enabled: !0,
1054
+ phase: "main",
1055
+ requires: ["popperOffsets"],
1056
+ fn: En
1057
+ };
1058
+ function jn(e) {
1059
+ var t = e.state, o = e.name;
1060
+ t.modifiersData[o] = No({
1061
+ reference: t.rects.reference,
1062
+ element: t.rects.popper,
1063
+ strategy: "absolute",
1064
+ placement: t.placement
1065
+ });
1066
+ }
1067
+ const An = {
1068
+ name: "popperOffsets",
1069
+ enabled: !0,
1070
+ phase: "read",
1071
+ fn: jn,
1072
+ data: {}
1073
+ };
1074
+ function Mn(e) {
1075
+ return e === "x" ? "y" : "x";
1076
+ }
1077
+ function $n(e) {
1078
+ var t = e.state, o = e.options, r = e.name, a = o.mainAxis, i = a === void 0 ? !0 : a, p = o.altAxis, l = p === void 0 ? !1 : p, s = o.boundary, f = o.rootBoundary, c = o.altBoundary, m = o.padding, y = o.tether, d = y === void 0 ? !0 : y, C = o.tetherOffset, v = C === void 0 ? 0 : C, g = He(t, {
1079
+ boundary: s,
1080
+ rootBoundary: f,
1081
+ padding: m,
1082
+ altBoundary: c
1083
+ }), T = re(t.placement), A = Ae(t.placement), O = !A, u = St(T), h = Mn(u), b = t.modifiersData.popperOffsets, E = t.rects.reference, $ = t.rects.popper, R = typeof v == "function" ? v(Object.assign({}, t.rects, {
1084
+ placement: t.placement
1085
+ })) : v, j = typeof R == "number" ? {
1086
+ mainAxis: R,
1087
+ altAxis: R
1088
+ } : Object.assign({
1089
+ mainAxis: 0,
1090
+ altAxis: 0
1091
+ }, R), k = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, N = {
1092
+ x: 0,
1093
+ y: 0
1094
+ };
1095
+ if (b) {
1096
+ if (i) {
1097
+ var L, Z = u === "y" ? W : F, J = u === "y" ? G : K, S = u === "y" ? "height" : "width", D = b[u], I = D + g[Z], Q = D - g[J], be = d ? -$[S] / 2 : 0, ye = A === Ee ? E[S] : $[S], ue = A === Ee ? -$[S] : -E[S], de = t.elements.arrow, ae = d && de ? $t(de) : {
1098
+ width: 0,
1099
+ height: 0
1100
+ }, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : So(), le = ee[Z], pe = ee[J], B = We(0, E[S], ae[S]), te = O ? E[S] / 2 - be - B - le - j.mainAxis : ye - B - le - j.mainAxis, we = O ? -E[S] / 2 + be + B + pe + j.mainAxis : ue + B + pe + j.mainAxis, z = t.elements.arrow && Xe(t.elements.arrow), yt = z ? u === "y" ? z.clientTop || 0 : z.clientLeft || 0 : 0, Ye = (L = k == null ? void 0 : k[u]) != null ? L : 0, Ge = D + te - Ye - yt, q = D + we - Ye, $e = We(d ? ct(I, Ge) : I, D, d ? he(Q, q) : Q);
1101
+ b[u] = $e, N[u] = $e - D;
1102
+ }
1103
+ if (l) {
1104
+ var Ke, _ = u === "x" ? W : F, Ze = u === "x" ? G : K, oe = b[h], xe = h === "y" ? "height" : "width", ve = oe + g[_], Oe = oe - g[Ze], Te = [W, F].indexOf(T) !== -1, Pe = (Ke = k == null ? void 0 : k[h]) != null ? Ke : 0, me = Te ? ve : oe - E[xe] - $[xe] - Pe + j.altAxis, Se = Te ? oe + E[xe] + $[xe] - Pe - j.altAxis : Oe, Je = d && Te ? en(me, oe, Se) : We(d ? me : ve, oe, d ? Se : Oe);
1105
+ b[h] = Je, N[h] = Je - oe;
1106
+ }
1107
+ t.modifiersData[r] = N;
1108
+ }
1109
+ }
1110
+ const Sn = {
1111
+ name: "preventOverflow",
1112
+ enabled: !0,
1113
+ phase: "main",
1114
+ fn: $n,
1115
+ requiresIfExists: ["offset"]
1116
+ };
1117
+ function kn(e) {
1118
+ return {
1119
+ scrollLeft: e.scrollLeft,
1120
+ scrollTop: e.scrollTop
1121
+ };
1122
+ }
1123
+ function Ln(e) {
1124
+ return e === H(e) || !Y(e) ? kt(e) : kn(e);
1125
+ }
1126
+ function Dn(e) {
1127
+ var t = e.getBoundingClientRect(), o = Re(t.width) / e.offsetWidth || 1, r = Re(t.height) / e.offsetHeight || 1;
1128
+ return o !== 1 || r !== 1;
1129
+ }
1130
+ function Nn(e, t, o) {
1131
+ o === void 0 && (o = !1);
1132
+ var r = Y(t), a = Y(t) && Dn(t), i = fe(t), p = je(e, a, o), l = {
1133
+ scrollLeft: 0,
1134
+ scrollTop: 0
1135
+ }, s = {
1136
+ x: 0,
1137
+ y: 0
1138
+ };
1139
+ return (r || !r && !o) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1140
+ Dt(i)) && (l = Ln(t)), Y(t) ? (s = je(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Lt(i))), {
1141
+ x: p.left + l.scrollLeft - s.x,
1142
+ y: p.top + l.scrollTop - s.y,
1143
+ width: p.width,
1144
+ height: p.height
1145
+ };
1146
+ }
1147
+ function In(e) {
1148
+ var t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
1149
+ e.forEach(function(i) {
1150
+ t.set(i.name, i);
1151
+ });
1152
+ function a(i) {
1153
+ o.add(i.name);
1154
+ var p = [].concat(i.requires || [], i.requiresIfExists || []);
1155
+ p.forEach(function(l) {
1156
+ if (!o.has(l)) {
1157
+ var s = t.get(l);
1158
+ s && a(s);
1159
+ }
1160
+ }), r.push(i);
1161
+ }
1162
+ return e.forEach(function(i) {
1163
+ o.has(i.name) || a(i);
1164
+ }), r;
1165
+ }
1166
+ function Bn(e) {
1167
+ var t = In(e);
1168
+ return Yr.reduce(function(o, r) {
1169
+ return o.concat(t.filter(function(a) {
1170
+ return a.phase === r;
1171
+ }));
1172
+ }, []);
1173
+ }
1174
+ function _n(e) {
1175
+ var t;
1176
+ return function() {
1177
+ return t || (t = new Promise(function(o) {
1178
+ Promise.resolve().then(function() {
1179
+ t = void 0, o(e());
1180
+ });
1181
+ })), t;
1182
+ };
1183
+ }
1184
+ function Wn(e) {
1185
+ var t = e.reduce(function(o, r) {
1186
+ var a = o[r.name];
1187
+ return o[r.name] = a ? Object.assign({}, a, r, {
1188
+ options: Object.assign({}, a.options, r.options),
1189
+ data: Object.assign({}, a.data, r.data)
1190
+ }) : r, o;
1191
+ }, {});
1192
+ return Object.keys(t).map(function(o) {
1193
+ return t[o];
1194
+ });
1195
+ }
1196
+ var vo = {
1197
+ placement: "bottom",
1198
+ modifiers: [],
1199
+ strategy: "absolute"
1200
+ };
1201
+ function mo() {
1202
+ for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
1203
+ t[o] = arguments[o];
1204
+ return !t.some(function(r) {
1205
+ return !(r && typeof r.getBoundingClientRect == "function");
1206
+ });
1207
+ }
1208
+ function Fn(e) {
1209
+ e === void 0 && (e = {});
1210
+ var t = e, o = t.defaultModifiers, r = o === void 0 ? [] : o, a = t.defaultOptions, i = a === void 0 ? vo : a;
1211
+ return function(l, s, f) {
1212
+ f === void 0 && (f = i);
1213
+ var c = {
1214
+ placement: "bottom",
1215
+ orderedModifiers: [],
1216
+ options: Object.assign({}, vo, i),
1217
+ modifiersData: {},
1218
+ elements: {
1219
+ reference: l,
1220
+ popper: s
1221
+ },
1222
+ attributes: {},
1223
+ styles: {}
1224
+ }, m = [], y = !1, d = {
1225
+ state: c,
1226
+ setOptions: function(T) {
1227
+ var A = typeof T == "function" ? T(c.options) : T;
1228
+ v(), c.options = Object.assign({}, i, c.options, A), c.scrollParents = {
1229
+ reference: ge(l) ? Fe(l) : l.contextElement ? Fe(l.contextElement) : [],
1230
+ popper: Fe(s)
1231
+ };
1232
+ var O = Bn(Wn([].concat(r, c.options.modifiers)));
1233
+ return c.orderedModifiers = O.filter(function(u) {
1234
+ return u.enabled;
1235
+ }), C(), d.update();
1236
+ },
1237
+ // Sync update – it will always be executed, even if not necessary. This
1238
+ // is useful for low frequency updates where sync behavior simplifies the
1239
+ // logic.
1240
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
1241
+ // prefer the async Popper#update method
1242
+ forceUpdate: function() {
1243
+ if (!y) {
1244
+ var T = c.elements, A = T.reference, O = T.popper;
1245
+ if (mo(A, O)) {
1246
+ c.rects = {
1247
+ reference: Nn(A, Xe(O), c.options.strategy === "fixed"),
1248
+ popper: $t(O)
1249
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(j) {
1250
+ return c.modifiersData[j.name] = Object.assign({}, j.data);
1251
+ });
1252
+ for (var u = 0; u < c.orderedModifiers.length; u++) {
1253
+ if (c.reset === !0) {
1254
+ c.reset = !1, u = -1;
1255
+ continue;
1256
+ }
1257
+ var h = c.orderedModifiers[u], b = h.fn, E = h.options, $ = E === void 0 ? {} : E, R = h.name;
1258
+ typeof b == "function" && (c = b({
1259
+ state: c,
1260
+ options: $,
1261
+ name: R,
1262
+ instance: d
1263
+ }) || c);
1264
+ }
1265
+ }
1266
+ }
1267
+ },
1268
+ // Async and optimistically optimized update – it will not be executed if
1269
+ // not necessary (debounced to run at most once-per-tick)
1270
+ update: _n(function() {
1271
+ return new Promise(function(g) {
1272
+ d.forceUpdate(), g(c);
1273
+ });
1274
+ }),
1275
+ destroy: function() {
1276
+ v(), y = !0;
1277
+ }
1278
+ };
1279
+ if (!mo(l, s))
1280
+ return d;
1281
+ d.setOptions(f).then(function(g) {
1282
+ !y && f.onFirstUpdate && f.onFirstUpdate(g);
1283
+ });
1284
+ function C() {
1285
+ c.orderedModifiers.forEach(function(g) {
1286
+ var T = g.name, A = g.options, O = A === void 0 ? {} : A, u = g.effect;
1287
+ if (typeof u == "function") {
1288
+ var h = u({
1289
+ state: c,
1290
+ name: T,
1291
+ instance: d,
1292
+ options: O
1293
+ }), b = function() {
1294
+ };
1295
+ m.push(h || b);
1296
+ }
1297
+ });
1298
+ }
1299
+ function v() {
1300
+ m.forEach(function(g) {
1301
+ return g();
1302
+ }), m = [];
1303
+ }
1304
+ return d;
1305
+ };
1306
+ }
1307
+ var Un = [fn, An, pn, Zr, Rn, On, Sn, nn, Pn], Vn = /* @__PURE__ */ Fn({
1308
+ defaultModifiers: Un
1309
+ });
1310
+ function Hn(e) {
1311
+ return vt("MuiPopper", e);
1312
+ }
1313
+ dt("MuiPopper", ["root"]);
1314
+ const zn = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], qn = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
1315
+ function Xn(e, t) {
1316
+ if (t === "ltr")
1317
+ return e;
1318
+ switch (e) {
1319
+ case "bottom-end":
1320
+ return "bottom-start";
1321
+ case "bottom-start":
1322
+ return "bottom-end";
1323
+ case "top-end":
1324
+ return "top-start";
1325
+ case "top-start":
1326
+ return "top-end";
1327
+ default:
1328
+ return e;
1329
+ }
1330
+ }
1331
+ function ft(e) {
1332
+ return typeof e == "function" ? e() : e;
1333
+ }
1334
+ function bt(e) {
1335
+ return e.nodeType !== void 0;
1336
+ }
1337
+ function Yn(e) {
1338
+ return !bt(e);
1339
+ }
1340
+ const Gn = (e) => {
1341
+ const {
1342
+ classes: t
1343
+ } = e;
1344
+ return ht({
1345
+ root: ["root"]
1346
+ }, Hn, t);
1347
+ }, Kn = {}, Zn = /* @__PURE__ */ M.forwardRef(function(t, o) {
1348
+ var r;
1349
+ const {
1350
+ anchorEl: a,
1351
+ children: i,
1352
+ direction: p,
1353
+ disablePortal: l,
1354
+ modifiers: s,
1355
+ open: f,
1356
+ placement: c,
1357
+ popperOptions: m,
1358
+ popperRef: y,
1359
+ slotProps: d = {},
1360
+ slots: C = {},
1361
+ TransitionProps: v
1362
+ // @ts-ignore internal logic
1363
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
1364
+ } = t, g = Me(t, zn), T = M.useRef(null), A = Ct(T, o), O = M.useRef(null), u = Ct(O, y), h = M.useRef(u);
1365
+ Qt(() => {
1366
+ h.current = u;
1367
+ }, [u]), M.useImperativeHandle(y, () => O.current, []);
1368
+ const b = Xn(c, p), [E, $] = M.useState(b), [R, j] = M.useState(ft(a));
1369
+ M.useEffect(() => {
1370
+ O.current && O.current.forceUpdate();
1371
+ }), M.useEffect(() => {
1372
+ a && j(ft(a));
1373
+ }, [a]), Qt(() => {
1374
+ if (!R || !f)
1375
+ return;
1376
+ const J = (I) => {
1377
+ $(I.placement);
1378
+ };
1379
+ if (process.env.NODE_ENV !== "production" && R && bt(R) && R.nodeType === 1) {
1380
+ const I = R.getBoundingClientRect();
1381
+ process.env.NODE_ENV !== "test" && I.top === 0 && I.left === 0 && I.right === 0 && I.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1382
+ `));
1383
+ }
1384
+ let S = [{
1385
+ name: "preventOverflow",
1386
+ options: {
1387
+ altBoundary: l
1388
+ }
1389
+ }, {
1390
+ name: "flip",
1391
+ options: {
1392
+ altBoundary: l
1393
+ }
1394
+ }, {
1395
+ name: "onUpdate",
1396
+ enabled: !0,
1397
+ phase: "afterWrite",
1398
+ fn: ({
1399
+ state: I
1400
+ }) => {
1401
+ J(I);
1402
+ }
1403
+ }];
1404
+ s != null && (S = S.concat(s)), m && m.modifiers != null && (S = S.concat(m.modifiers));
1405
+ const D = Vn(R, T.current, w({
1406
+ placement: b
1407
+ }, m, {
1408
+ modifiers: S
1409
+ }));
1410
+ return h.current(D), () => {
1411
+ D.destroy(), h.current(null);
1412
+ };
1413
+ }, [R, l, s, f, m, b]);
1414
+ const k = {
1415
+ placement: E
1416
+ };
1417
+ v !== null && (k.TransitionProps = v);
1418
+ const N = Gn(t), L = (r = C.root) != null ? r : "div", Z = rr({
1419
+ elementType: L,
1420
+ externalSlotProps: d.root,
1421
+ externalForwardedProps: g,
1422
+ additionalProps: {
1423
+ role: "tooltip",
1424
+ ref: A
1425
+ },
1426
+ ownerState: t,
1427
+ className: N.root
1428
+ });
1429
+ return /* @__PURE__ */ P.jsx(L, w({}, Z, {
1430
+ children: typeof i == "function" ? i(k) : i
1431
+ }));
1432
+ }), Io = /* @__PURE__ */ M.forwardRef(function(t, o) {
1433
+ const {
1434
+ anchorEl: r,
1435
+ children: a,
1436
+ container: i,
1437
+ direction: p = "ltr",
1438
+ disablePortal: l = !1,
1439
+ keepMounted: s = !1,
1440
+ modifiers: f,
1441
+ open: c,
1442
+ placement: m = "bottom",
1443
+ popperOptions: y = Kn,
1444
+ popperRef: d,
1445
+ style: C,
1446
+ transition: v = !1,
1447
+ slotProps: g = {},
1448
+ slots: T = {}
1449
+ } = t, A = Me(t, qn), [O, u] = M.useState(!0), h = () => {
1450
+ u(!1);
1451
+ }, b = () => {
1452
+ u(!0);
1453
+ };
1454
+ if (!s && !c && (!v || O))
1455
+ return null;
1456
+ let E;
1457
+ if (i)
1458
+ E = i;
1459
+ else if (r) {
1460
+ const j = ft(r);
1461
+ E = j && bt(j) ? Jt(j).body : Jt(null).body;
1462
+ }
1463
+ const $ = !c && s && (!v || O) ? "none" : void 0, R = v ? {
1464
+ in: c,
1465
+ onEnter: h,
1466
+ onExited: b
1467
+ } : void 0;
1468
+ return /* @__PURE__ */ P.jsx(tr, {
1469
+ disablePortal: l,
1470
+ container: E,
1471
+ children: /* @__PURE__ */ P.jsx(Zn, w({
1472
+ anchorEl: r,
1473
+ direction: p,
1474
+ disablePortal: l,
1475
+ modifiers: f,
1476
+ ref: o,
1477
+ open: v ? !O : c,
1478
+ placement: m,
1479
+ popperOptions: y,
1480
+ popperRef: d,
1481
+ slotProps: g,
1482
+ slots: T
1483
+ }, A, {
1484
+ style: w({
1485
+ // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1486
+ position: "fixed",
1487
+ // Fix Popper.js display issue
1488
+ top: 0,
1489
+ left: 0,
1490
+ display: $
1491
+ }, C),
1492
+ TransitionProps: R,
1493
+ children: a
1494
+ }))
1495
+ });
1496
+ });
1497
+ process.env.NODE_ENV !== "production" && (Io.propTypes = {
1498
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1499
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1500
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1501
+ // └─────────────────────────────────────────────────────────────────────┘
1502
+ /**
1503
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1504
+ * or a function that returns either.
1505
+ * It's used to set the position of the popper.
1506
+ * The return value will passed as the reference object of the Popper instance.
1507
+ */
1508
+ anchorEl: or(n.oneOfType([pt, n.object, n.func]), (e) => {
1509
+ if (e.open) {
1510
+ const t = ft(e.anchorEl);
1511
+ if (t && bt(t) && t.nodeType === 1) {
1512
+ const o = t.getBoundingClientRect();
1513
+ if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
1514
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1515
+ `));
1516
+ } else if (!t || typeof t.getBoundingClientRect != "function" || Yn(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
1517
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
1518
+ `));
1519
+ }
1520
+ return null;
1521
+ }),
1522
+ /**
1523
+ * Popper render function or node.
1524
+ */
1525
+ children: n.oneOfType([n.node, n.func]),
1526
+ /**
1527
+ * An HTML element or function that returns one.
1528
+ * The `container` will have the portal children appended to it.
1529
+ *
1530
+ * You can also provide a callback, which is called in a React layout effect.
1531
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1532
+ *
1533
+ * By default, it uses the body of the top-level document object,
1534
+ * so it's simply `document.body` most of the time.
1535
+ */
1536
+ container: n.oneOfType([pt, n.func]),
1537
+ /**
1538
+ * Direction of the text.
1539
+ * @default 'ltr'
1540
+ */
1541
+ direction: n.oneOf(["ltr", "rtl"]),
1542
+ /**
1543
+ * The `children` will be under the DOM hierarchy of the parent component.
1544
+ * @default false
1545
+ */
1546
+ disablePortal: n.bool,
1547
+ /**
1548
+ * Always keep the children in the DOM.
1549
+ * This prop can be useful in SEO situation or
1550
+ * when you want to maximize the responsiveness of the Popper.
1551
+ * @default false
1552
+ */
1553
+ keepMounted: n.bool,
1554
+ /**
1555
+ * Popper.js is based on a "plugin-like" architecture,
1556
+ * most of its features are fully encapsulated "modifiers".
1557
+ *
1558
+ * A modifier is a function that is called each time Popper.js needs to
1559
+ * compute the position of the popper.
1560
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1561
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1562
+ */
1563
+ modifiers: n.arrayOf(n.shape({
1564
+ data: n.object,
1565
+ effect: n.func,
1566
+ enabled: n.bool,
1567
+ fn: n.func,
1568
+ name: n.any,
1569
+ options: n.object,
1570
+ phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1571
+ requires: n.arrayOf(n.string),
1572
+ requiresIfExists: n.arrayOf(n.string)
1573
+ })),
1574
+ /**
1575
+ * If `true`, the component is shown.
1576
+ */
1577
+ open: n.bool.isRequired,
1578
+ /**
1579
+ * Popper placement.
1580
+ * @default 'bottom'
1581
+ */
1582
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1583
+ /**
1584
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1585
+ * @default {}
1586
+ */
1587
+ popperOptions: n.shape({
1588
+ modifiers: n.array,
1589
+ onFirstUpdate: n.func,
1590
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1591
+ strategy: n.oneOf(["absolute", "fixed"])
1592
+ }),
1593
+ /**
1594
+ * A ref that points to the used popper instance.
1595
+ */
1596
+ popperRef: xo,
1597
+ /**
1598
+ * The props used for each slot inside the Popper.
1599
+ * @default {}
1600
+ */
1601
+ slotProps: n.shape({
1602
+ root: n.oneOfType([n.func, n.object])
1603
+ }),
1604
+ /**
1605
+ * The components used for each slot inside the Popper.
1606
+ * Either a string to use a HTML element or a component.
1607
+ * @default {}
1608
+ */
1609
+ slots: n.shape({
1610
+ root: n.elementType
1611
+ }),
1612
+ /**
1613
+ * Help supporting a react-transition-group/Transition component.
1614
+ * @default false
1615
+ */
1616
+ transition: n.bool
1617
+ });
1618
+ const Jn = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], Qn = U(Io, {
1619
+ name: "MuiPopper",
1620
+ slot: "Root",
1621
+ overridesResolver: (e, t) => t.root
1622
+ })({}), Nt = /* @__PURE__ */ M.forwardRef(function(t, o) {
1623
+ var r;
1624
+ const a = Eo(), i = mt({
1625
+ props: t,
1626
+ name: "MuiPopper"
1627
+ }), {
1628
+ anchorEl: p,
1629
+ component: l,
1630
+ components: s,
1631
+ componentsProps: f,
1632
+ container: c,
1633
+ disablePortal: m,
1634
+ keepMounted: y,
1635
+ modifiers: d,
1636
+ open: C,
1637
+ placement: v,
1638
+ popperOptions: g,
1639
+ popperRef: T,
1640
+ transition: A,
1641
+ slots: O,
1642
+ slotProps: u
1643
+ } = i, h = Me(i, Jn), b = (r = O == null ? void 0 : O.root) != null ? r : s == null ? void 0 : s.Root, E = w({
1644
+ anchorEl: p,
1645
+ container: c,
1646
+ disablePortal: m,
1647
+ keepMounted: y,
1648
+ modifiers: d,
1649
+ open: C,
1650
+ placement: v,
1651
+ popperOptions: g,
1652
+ popperRef: T,
1653
+ transition: A
1654
+ }, h);
1655
+ return /* @__PURE__ */ P.jsx(Qn, w({
1656
+ as: l,
1657
+ direction: a == null ? void 0 : a.direction,
1658
+ slots: {
1659
+ root: b
1660
+ },
1661
+ slotProps: u ?? f
1662
+ }, E, {
1663
+ ref: o
1664
+ }));
1665
+ });
1666
+ process.env.NODE_ENV !== "production" && (Nt.propTypes = {
1667
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1668
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1669
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1670
+ // └─────────────────────────────────────────────────────────────────────┘
1671
+ /**
1672
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1673
+ * or a function that returns either.
1674
+ * It's used to set the position of the popper.
1675
+ * The return value will passed as the reference object of the Popper instance.
1676
+ */
1677
+ anchorEl: n.oneOfType([pt, n.object, n.func]),
1678
+ /**
1679
+ * Popper render function or node.
1680
+ */
1681
+ children: n.oneOfType([n.node, n.func]),
1682
+ /**
1683
+ * The component used for the root node.
1684
+ * Either a string to use a HTML element or a component.
1685
+ */
1686
+ component: n.elementType,
1687
+ /**
1688
+ * The components used for each slot inside the Popper.
1689
+ * Either a string to use a HTML element or a component.
1690
+ * @default {}
1691
+ */
1692
+ components: n.shape({
1693
+ Root: n.elementType
1694
+ }),
1695
+ /**
1696
+ * The props used for each slot inside the Popper.
1697
+ * @default {}
1698
+ */
1699
+ componentsProps: n.shape({
1700
+ root: n.oneOfType([n.func, n.object])
1701
+ }),
1702
+ /**
1703
+ * An HTML element or function that returns one.
1704
+ * The `container` will have the portal children appended to it.
1705
+ *
1706
+ * You can also provide a callback, which is called in a React layout effect.
1707
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1708
+ *
1709
+ * By default, it uses the body of the top-level document object,
1710
+ * so it's simply `document.body` most of the time.
1711
+ */
1712
+ container: n.oneOfType([pt, n.func]),
1713
+ /**
1714
+ * The `children` will be under the DOM hierarchy of the parent component.
1715
+ * @default false
1716
+ */
1717
+ disablePortal: n.bool,
1718
+ /**
1719
+ * Always keep the children in the DOM.
1720
+ * This prop can be useful in SEO situation or
1721
+ * when you want to maximize the responsiveness of the Popper.
1722
+ * @default false
1723
+ */
1724
+ keepMounted: n.bool,
1725
+ /**
1726
+ * Popper.js is based on a "plugin-like" architecture,
1727
+ * most of its features are fully encapsulated "modifiers".
1728
+ *
1729
+ * A modifier is a function that is called each time Popper.js needs to
1730
+ * compute the position of the popper.
1731
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1732
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1733
+ */
1734
+ modifiers: n.arrayOf(n.shape({
1735
+ data: n.object,
1736
+ effect: n.func,
1737
+ enabled: n.bool,
1738
+ fn: n.func,
1739
+ name: n.any,
1740
+ options: n.object,
1741
+ phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1742
+ requires: n.arrayOf(n.string),
1743
+ requiresIfExists: n.arrayOf(n.string)
1744
+ })),
1745
+ /**
1746
+ * If `true`, the component is shown.
1747
+ */
1748
+ open: n.bool.isRequired,
1749
+ /**
1750
+ * Popper placement.
1751
+ * @default 'bottom'
1752
+ */
1753
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1754
+ /**
1755
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1756
+ * @default {}
1757
+ */
1758
+ popperOptions: n.shape({
1759
+ modifiers: n.array,
1760
+ onFirstUpdate: n.func,
1761
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1762
+ strategy: n.oneOf(["absolute", "fixed"])
1763
+ }),
1764
+ /**
1765
+ * A ref that points to the used popper instance.
1766
+ */
1767
+ popperRef: xo,
1768
+ /**
1769
+ * The props used for each slot inside the Popper.
1770
+ * @default {}
1771
+ */
1772
+ slotProps: n.shape({
1773
+ root: n.oneOfType([n.func, n.object])
1774
+ }),
1775
+ /**
1776
+ * The components used for each slot inside the Popper.
1777
+ * Either a string to use a HTML element or a component.
1778
+ * @default {}
1779
+ */
1780
+ slots: n.shape({
1781
+ root: n.elementType
1782
+ }),
1783
+ /**
1784
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1785
+ */
1786
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1787
+ /**
1788
+ * Help supporting a react-transition-group/Transition component.
1789
+ * @default false
1790
+ */
1791
+ transition: n.bool
1792
+ });
1793
+ function ea(e) {
1794
+ return vt("MuiSkeleton", e);
1795
+ }
1796
+ dt("MuiSkeleton", ["root", "text", "rectangular", "rounded", "circular", "pulse", "wave", "withChildren", "fitContent", "heightAuto"]);
1797
+ const ta = ["animation", "className", "component", "height", "style", "variant", "width"];
1798
+ let ut = (e) => e, ho, go, bo, yo;
1799
+ const oa = (e) => {
1800
+ const {
1801
+ classes: t,
1802
+ variant: o,
1803
+ animation: r,
1804
+ hasChildren: a,
1805
+ width: i,
1806
+ height: p
1807
+ } = e;
1808
+ return ht({
1809
+ root: ["root", o, r, a && "withChildren", a && !i && "fitContent", a && !p && "heightAuto"]
1810
+ }, ea, t);
1811
+ }, ra = Oo(ho || (ho = ut`
1812
+ 0% {
1813
+ opacity: 1;
1814
+ }
1815
+
1816
+ 50% {
1817
+ opacity: 0.4;
1818
+ }
1819
+
1820
+ 100% {
1821
+ opacity: 1;
1822
+ }
1823
+ `)), na = Oo(go || (go = ut`
1824
+ 0% {
1825
+ transform: translateX(-100%);
1826
+ }
1827
+
1828
+ 50% {
1829
+ /* +0.5s of delay between each loop */
1830
+ transform: translateX(100%);
1831
+ }
1832
+
1833
+ 100% {
1834
+ transform: translateX(100%);
1835
+ }
1836
+ `)), aa = U("span", {
1837
+ name: "MuiSkeleton",
1838
+ slot: "Root",
1839
+ overridesResolver: (e, t) => {
1840
+ const {
1841
+ ownerState: o
1842
+ } = e;
1843
+ return [t.root, t[o.variant], o.animation !== !1 && t[o.animation], o.hasChildren && t.withChildren, o.hasChildren && !o.width && t.fitContent, o.hasChildren && !o.height && t.heightAuto];
1844
+ }
1845
+ })(({
1846
+ theme: e,
1847
+ ownerState: t
1848
+ }) => {
1849
+ const o = br(e.shape.borderRadius) || "px", r = yr(e.shape.borderRadius);
1850
+ return w({
1851
+ display: "block",
1852
+ // Create a "on paper" color with sufficient contrast retaining the color
1853
+ backgroundColor: e.vars ? e.vars.palette.Skeleton.bg : gr(e.palette.text.primary, e.palette.mode === "light" ? 0.11 : 0.13),
1854
+ height: "1.2em"
1855
+ }, t.variant === "text" && {
1856
+ marginTop: 0,
1857
+ marginBottom: 0,
1858
+ height: "auto",
1859
+ transformOrigin: "0 55%",
1860
+ transform: "scale(1, 0.60)",
1861
+ borderRadius: `${r}${o}/${Math.round(r / 0.6 * 10) / 10}${o}`,
1862
+ "&:empty:before": {
1863
+ content: '"\\00a0"'
1864
+ }
1865
+ }, t.variant === "circular" && {
1866
+ borderRadius: "50%"
1867
+ }, t.variant === "rounded" && {
1868
+ borderRadius: (e.vars || e).shape.borderRadius
1869
+ }, t.hasChildren && {
1870
+ "& > *": {
1871
+ visibility: "hidden"
1872
+ }
1873
+ }, t.hasChildren && !t.width && {
1874
+ maxWidth: "fit-content"
1875
+ }, t.hasChildren && !t.height && {
1876
+ height: "auto"
1877
+ });
1878
+ }, ({
1879
+ ownerState: e
1880
+ }) => e.animation === "pulse" && eo(bo || (bo = ut`
1881
+ animation: ${0} 2s ease-in-out 0.5s infinite;
1882
+ `), ra), ({
1883
+ ownerState: e,
1884
+ theme: t
1885
+ }) => e.animation === "wave" && eo(yo || (yo = ut`
1886
+ position: relative;
1887
+ overflow: hidden;
1888
+
1889
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
1890
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
1891
+
1892
+ &::after {
1893
+ animation: ${0} 2s linear 0.5s infinite;
1894
+ background: linear-gradient(
1895
+ 90deg,
1896
+ transparent,
1897
+ ${0},
1898
+ transparent
1899
+ );
1900
+ content: '';
1901
+ position: absolute;
1902
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
1903
+ bottom: 0;
1904
+ left: 0;
1905
+ right: 0;
1906
+ top: 0;
1907
+ }
1908
+ `), na, (t.vars || t).palette.action.hover)), Bo = /* @__PURE__ */ M.forwardRef(function(t, o) {
1909
+ const r = mt({
1910
+ props: t,
1911
+ name: "MuiSkeleton"
1912
+ }), {
1913
+ animation: a = "pulse",
1914
+ className: i,
1915
+ component: p = "span",
1916
+ height: l,
1917
+ style: s,
1918
+ variant: f = "text",
1919
+ width: c
1920
+ } = r, m = Me(r, ta), y = w({}, r, {
1921
+ animation: a,
1922
+ component: p,
1923
+ variant: f,
1924
+ hasChildren: !!m.children
1925
+ }), d = oa(y);
1926
+ return /* @__PURE__ */ P.jsx(aa, w({
1927
+ as: p,
1928
+ ref: o,
1929
+ className: Ce(d.root, i),
1930
+ ownerState: y
1931
+ }, m, {
1932
+ style: w({
1933
+ width: c,
1934
+ height: l
1935
+ }, s)
1936
+ }));
1937
+ });
1938
+ process.env.NODE_ENV !== "production" && (Bo.propTypes = {
1939
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1940
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1941
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1942
+ // └─────────────────────────────────────────────────────────────────────┘
1943
+ /**
1944
+ * The animation.
1945
+ * If `false` the animation effect is disabled.
1946
+ * @default 'pulse'
1947
+ */
1948
+ animation: n.oneOf(["pulse", "wave", !1]),
1949
+ /**
1950
+ * Optional children to infer width and height from.
1951
+ */
1952
+ children: n.node,
1953
+ /**
1954
+ * Override or extend the styles applied to the component.
1955
+ */
1956
+ classes: n.object,
1957
+ /**
1958
+ * @ignore
1959
+ */
1960
+ className: n.string,
1961
+ /**
1962
+ * The component used for the root node.
1963
+ * Either a string to use a HTML element or a component.
1964
+ */
1965
+ component: n.elementType,
1966
+ /**
1967
+ * Height of the skeleton.
1968
+ * Useful when you don't want to adapt the skeleton to a text element but for instance a card.
1969
+ */
1970
+ height: n.oneOfType([n.number, n.string]),
1971
+ /**
1972
+ * @ignore
1973
+ */
1974
+ style: n.object,
1975
+ /**
1976
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1977
+ */
1978
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1979
+ /**
1980
+ * The type of content that will be rendered.
1981
+ * @default 'text'
1982
+ */
1983
+ variant: n.oneOfType([n.oneOf(["circular", "rectangular", "rounded", "text"]), n.string]),
1984
+ /**
1985
+ * Width of the skeleton.
1986
+ * Useful when the skeleton is inside an inline element with no width of its own.
1987
+ */
1988
+ width: n.oneOfType([n.number, n.string])
1989
+ });
1990
+ function ia(e) {
1991
+ return vt("MuiTooltip", e);
1992
+ }
1993
+ const ce = dt("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), sa = ["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"];
1994
+ function la(e) {
1995
+ return Math.round(e * 1e5) / 1e5;
1996
+ }
1997
+ const pa = (e) => {
1998
+ const {
1999
+ classes: t,
2000
+ disableInteractive: o,
2001
+ arrow: r,
2002
+ touch: a,
2003
+ placement: i
2004
+ } = e, p = {
2005
+ popper: ["popper", !o && "popperInteractive", r && "popperArrow"],
2006
+ tooltip: ["tooltip", r && "tooltipArrow", a && "touch", `tooltipPlacement${Ue(i.split("-")[0])}`],
2007
+ arrow: ["arrow"]
2008
+ };
2009
+ return ht(p, ia, t);
2010
+ }, ca = U(Nt, {
2011
+ name: "MuiTooltip",
2012
+ slot: "Popper",
2013
+ overridesResolver: (e, t) => {
2014
+ const {
2015
+ ownerState: o
2016
+ } = e;
2017
+ return [t.popper, !o.disableInteractive && t.popperInteractive, o.arrow && t.popperArrow, !o.open && t.popperClose];
2018
+ }
2019
+ })(({
2020
+ theme: e,
2021
+ ownerState: t,
2022
+ open: o
2023
+ }) => w({
2024
+ zIndex: (e.vars || e).zIndex.tooltip,
2025
+ pointerEvents: "none"
2026
+ }, !t.disableInteractive && {
2027
+ pointerEvents: "auto"
2028
+ }, !o && {
2029
+ pointerEvents: "none"
2030
+ }, t.arrow && {
2031
+ [`&[data-popper-placement*="bottom"] .${ce.arrow}`]: {
2032
+ top: 0,
2033
+ marginTop: "-0.71em",
2034
+ "&::before": {
2035
+ transformOrigin: "0 100%"
2036
+ }
2037
+ },
2038
+ [`&[data-popper-placement*="top"] .${ce.arrow}`]: {
2039
+ bottom: 0,
2040
+ marginBottom: "-0.71em",
2041
+ "&::before": {
2042
+ transformOrigin: "100% 0"
2043
+ }
2044
+ },
2045
+ [`&[data-popper-placement*="right"] .${ce.arrow}`]: w({}, t.isRtl ? {
2046
+ right: 0,
2047
+ marginRight: "-0.71em"
2048
+ } : {
2049
+ left: 0,
2050
+ marginLeft: "-0.71em"
2051
+ }, {
2052
+ height: "1em",
2053
+ width: "0.71em",
2054
+ "&::before": {
2055
+ transformOrigin: "100% 100%"
2056
+ }
2057
+ }),
2058
+ [`&[data-popper-placement*="left"] .${ce.arrow}`]: w({}, t.isRtl ? {
2059
+ left: 0,
2060
+ marginLeft: "-0.71em"
2061
+ } : {
2062
+ right: 0,
2063
+ marginRight: "-0.71em"
2064
+ }, {
2065
+ height: "1em",
2066
+ width: "0.71em",
2067
+ "&::before": {
2068
+ transformOrigin: "0 0"
2069
+ }
2070
+ })
2071
+ })), fa = U("div", {
2072
+ name: "MuiTooltip",
2073
+ slot: "Tooltip",
2074
+ overridesResolver: (e, t) => {
2075
+ const {
2076
+ ownerState: o
2077
+ } = e;
2078
+ return [t.tooltip, o.touch && t.touch, o.arrow && t.tooltipArrow, t[`tooltipPlacement${Ue(o.placement.split("-")[0])}`]];
2079
+ }
2080
+ })(({
2081
+ theme: e,
2082
+ ownerState: t
2083
+ }) => w({
2084
+ backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : To(e.palette.grey[700], 0.92),
2085
+ borderRadius: (e.vars || e).shape.borderRadius,
2086
+ color: (e.vars || e).palette.common.white,
2087
+ fontFamily: e.typography.fontFamily,
2088
+ padding: "4px 8px",
2089
+ fontSize: e.typography.pxToRem(11),
2090
+ maxWidth: 300,
2091
+ margin: 2,
2092
+ wordWrap: "break-word",
2093
+ fontWeight: e.typography.fontWeightMedium
2094
+ }, t.arrow && {
2095
+ position: "relative",
2096
+ margin: 0
2097
+ }, t.touch && {
2098
+ padding: "8px 16px",
2099
+ fontSize: e.typography.pxToRem(14),
2100
+ lineHeight: `${la(16 / 14)}em`,
2101
+ fontWeight: e.typography.fontWeightRegular
2102
+ }, {
2103
+ [`.${ce.popper}[data-popper-placement*="left"] &`]: w({
2104
+ transformOrigin: "right center"
2105
+ }, t.isRtl ? w({
2106
+ marginLeft: "14px"
2107
+ }, t.touch && {
2108
+ marginLeft: "24px"
2109
+ }) : w({
2110
+ marginRight: "14px"
2111
+ }, t.touch && {
2112
+ marginRight: "24px"
2113
+ })),
2114
+ [`.${ce.popper}[data-popper-placement*="right"] &`]: w({
2115
+ transformOrigin: "left center"
2116
+ }, t.isRtl ? w({
2117
+ marginRight: "14px"
2118
+ }, t.touch && {
2119
+ marginRight: "24px"
2120
+ }) : w({
2121
+ marginLeft: "14px"
2122
+ }, t.touch && {
2123
+ marginLeft: "24px"
2124
+ })),
2125
+ [`.${ce.popper}[data-popper-placement*="top"] &`]: w({
2126
+ transformOrigin: "center bottom",
2127
+ marginBottom: "14px"
2128
+ }, t.touch && {
2129
+ marginBottom: "24px"
2130
+ }),
2131
+ [`.${ce.popper}[data-popper-placement*="bottom"] &`]: w({
2132
+ transformOrigin: "center top",
2133
+ marginTop: "14px"
2134
+ }, t.touch && {
2135
+ marginTop: "24px"
2136
+ })
2137
+ })), ua = U("span", {
2138
+ name: "MuiTooltip",
2139
+ slot: "Arrow",
2140
+ overridesResolver: (e, t) => t.arrow
2141
+ })(({
2142
+ theme: e
2143
+ }) => ({
2144
+ overflow: "hidden",
2145
+ position: "absolute",
2146
+ width: "1em",
2147
+ height: "0.71em",
2148
+ boxSizing: "border-box",
2149
+ color: e.vars ? e.vars.palette.Tooltip.bg : To(e.palette.grey[700], 0.9),
2150
+ "&::before": {
2151
+ content: '""',
2152
+ margin: "auto",
2153
+ display: "block",
2154
+ width: "100%",
2155
+ height: "100%",
2156
+ backgroundColor: "currentColor",
2157
+ transform: "rotate(45deg)"
2158
+ }
2159
+ }));
2160
+ let at = !1;
2161
+ const wo = new cr();
2162
+ let Be = {
2163
+ x: 0,
2164
+ y: 0
2165
+ };
2166
+ function it(e, t) {
2167
+ return (o, ...r) => {
2168
+ t && t(o, ...r), e(o, ...r);
2169
+ };
2170
+ }
2171
+ const da = /* @__PURE__ */ M.forwardRef(function(t, o) {
2172
+ var r, a, i, p, l, s, f, c, m, y, d, C, v, g, T, A, O, u, h;
2173
+ const b = mt({
2174
+ props: t,
2175
+ name: "MuiTooltip"
2176
+ }), {
2177
+ arrow: E = !1,
2178
+ children: $,
2179
+ components: R = {},
2180
+ componentsProps: j = {},
2181
+ describeChild: k = !1,
2182
+ disableFocusListener: N = !1,
2183
+ disableHoverListener: L = !1,
2184
+ disableInteractive: Z = !1,
2185
+ disableTouchListener: J = !1,
2186
+ enterDelay: S = 100,
2187
+ enterNextDelay: D = 0,
2188
+ enterTouchDelay: I = 700,
2189
+ followCursor: Q = !1,
2190
+ id: be,
2191
+ leaveDelay: ye = 0,
2192
+ leaveTouchDelay: ue = 1500,
2193
+ onClose: de,
2194
+ onOpen: ae,
2195
+ open: ee,
2196
+ placement: le = "bottom",
2197
+ PopperComponent: pe,
2198
+ PopperProps: B = {},
2199
+ slotProps: te = {},
2200
+ slots: we = {},
2201
+ title: z,
2202
+ TransitionComponent: yt = oo,
2203
+ TransitionProps: Ye
2204
+ } = b, Ge = Me(b, sa), q = /* @__PURE__ */ M.isValidElement($) ? $ : /* @__PURE__ */ P.jsx("span", {
2205
+ children: $
2206
+ }), $e = nr(), Ke = ar(), [_, Ze] = M.useState(), [oe, xe] = M.useState(null), ve = M.useRef(!1), Oe = Z || Q, Te = ot(), Pe = ot(), me = ot(), Se = ot(), [Je, It] = ir({
2207
+ controlled: ee,
2208
+ default: !1,
2209
+ name: "Tooltip",
2210
+ state: "open"
2211
+ });
2212
+ let ie = Je;
2213
+ if (process.env.NODE_ENV !== "production") {
2214
+ const {
2215
+ current: x
2216
+ } = M.useRef(ee !== void 0);
2217
+ M.useEffect(() => {
2218
+ _ && _.disabled && !x && z !== "" && _.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
2219
+ `));
2220
+ }, [z, _, x]);
2221
+ }
2222
+ const wt = sr(be), ke = M.useRef(), Qe = to(() => {
2223
+ ke.current !== void 0 && (document.body.style.WebkitUserSelect = ke.current, ke.current = void 0), Se.clear();
2224
+ });
2225
+ M.useEffect(() => Qe, [Qe]);
2226
+ const Bt = (x) => {
2227
+ wo.clear(), at = !0, It(!0), ae && !ie && ae(x);
2228
+ }, et = to(
2229
+ /**
2230
+ * @param {React.SyntheticEvent | Event} event
2231
+ */
2232
+ (x) => {
2233
+ wo.start(800 + ye, () => {
2234
+ at = !1;
2235
+ }), It(!1), de && ie && de(x), Te.start($e.transitions.duration.shortest, () => {
2236
+ ve.current = !1;
2237
+ });
2238
+ }
2239
+ ), tt = (x) => {
2240
+ ve.current && x.type !== "touchstart" || (_ && _.removeAttribute("title"), Pe.clear(), me.clear(), S || at && D ? Pe.start(at ? D : S, () => {
2241
+ Bt(x);
2242
+ }) : Bt(x));
2243
+ }, xt = (x) => {
2244
+ Pe.clear(), me.start(ye, () => {
2245
+ et(x);
2246
+ });
2247
+ }, {
2248
+ isFocusVisibleRef: _t,
2249
+ onBlur: _o,
2250
+ onFocus: Wo,
2251
+ ref: Fo
2252
+ } = lr(), [, Wt] = M.useState(!1), Ft = (x) => {
2253
+ _o(x), _t.current === !1 && (Wt(!1), xt(x));
2254
+ }, Ut = (x) => {
2255
+ _ || Ze(x.currentTarget), Wo(x), _t.current === !0 && (Wt(!0), tt(x));
2256
+ }, Vt = (x) => {
2257
+ ve.current = !0;
2258
+ const V = q.props;
2259
+ V.onTouchStart && V.onTouchStart(x);
2260
+ }, Uo = (x) => {
2261
+ Vt(x), me.clear(), Te.clear(), Qe(), ke.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Se.start(I, () => {
2262
+ document.body.style.WebkitUserSelect = ke.current, tt(x);
2263
+ });
2264
+ }, Vo = (x) => {
2265
+ q.props.onTouchEnd && q.props.onTouchEnd(x), Qe(), me.start(ue, () => {
2266
+ et(x);
2267
+ });
2268
+ };
2269
+ M.useEffect(() => {
2270
+ if (!ie)
2271
+ return;
2272
+ function x(V) {
2273
+ (V.key === "Escape" || V.key === "Esc") && et(V);
2274
+ }
2275
+ return document.addEventListener("keydown", x), () => {
2276
+ document.removeEventListener("keydown", x);
2277
+ };
2278
+ }, [et, ie]);
2279
+ const Ho = Ct(q.ref, Fo, Ze, o);
2280
+ !z && z !== 0 && (ie = !1);
2281
+ const Ot = M.useRef(), zo = (x) => {
2282
+ const V = q.props;
2283
+ V.onMouseMove && V.onMouseMove(x), Be = {
2284
+ x: x.clientX,
2285
+ y: x.clientY
2286
+ }, Ot.current && Ot.current.update();
2287
+ }, Le = {}, Tt = typeof z == "string";
2288
+ k ? (Le.title = !ie && Tt && !L ? z : null, Le["aria-describedby"] = ie ? wt : null) : (Le["aria-label"] = Tt ? z : null, Le["aria-labelledby"] = ie && !Tt ? wt : null);
2289
+ const X = w({}, Le, Ge, q.props, {
2290
+ className: Ce(Ge.className, q.props.className),
2291
+ onTouchStart: Vt,
2292
+ ref: Ho
2293
+ }, Q ? {
2294
+ onMouseMove: zo
2295
+ } : {});
2296
+ process.env.NODE_ENV !== "production" && (X["data-mui-internal-clone-element"] = !0, M.useEffect(() => {
2297
+ _ && !_.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
2298
+ `));
2299
+ }, [_]));
2300
+ const De = {};
2301
+ J || (X.onTouchStart = Uo, X.onTouchEnd = Vo), L || (X.onMouseOver = it(tt, X.onMouseOver), X.onMouseLeave = it(xt, X.onMouseLeave), Oe || (De.onMouseOver = tt, De.onMouseLeave = xt)), N || (X.onFocus = it(Ut, X.onFocus), X.onBlur = it(Ft, X.onBlur), Oe || (De.onFocus = Ut, De.onBlur = Ft)), process.env.NODE_ENV !== "production" && q.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${q.props.title}\` or the Tooltip component.`].join(`
2302
+ `));
2303
+ const qo = M.useMemo(() => {
2304
+ var x;
2305
+ let V = [{
2306
+ name: "arrow",
2307
+ enabled: !!oe,
2308
+ options: {
2309
+ element: oe,
2310
+ padding: 4
2311
+ }
2312
+ }];
2313
+ return (x = B.popperOptions) != null && x.modifiers && (V = V.concat(B.popperOptions.modifiers)), w({}, B.popperOptions, {
2314
+ modifiers: V
2315
+ });
2316
+ }, [oe, B]), Ne = w({}, b, {
2317
+ isRtl: Ke,
2318
+ arrow: E,
2319
+ disableInteractive: Oe,
2320
+ placement: le,
2321
+ PopperComponentProp: pe,
2322
+ touch: ve.current
2323
+ }), Pt = pa(Ne), Ht = (r = (a = we.popper) != null ? a : R.Popper) != null ? r : ca, zt = (i = (p = (l = we.transition) != null ? l : R.Transition) != null ? p : yt) != null ? i : oo, qt = (s = (f = we.tooltip) != null ? f : R.Tooltip) != null ? s : fa, Xt = (c = (m = we.arrow) != null ? m : R.Arrow) != null ? c : ua, Xo = rt(Ht, w({}, B, (y = te.popper) != null ? y : j.popper, {
2324
+ className: Ce(Pt.popper, B == null ? void 0 : B.className, (d = (C = te.popper) != null ? C : j.popper) == null ? void 0 : d.className)
2325
+ }), Ne), Yo = rt(zt, w({}, Ye, (v = te.transition) != null ? v : j.transition), Ne), Go = rt(qt, w({}, (g = te.tooltip) != null ? g : j.tooltip, {
2326
+ className: Ce(Pt.tooltip, (T = (A = te.tooltip) != null ? A : j.tooltip) == null ? void 0 : T.className)
2327
+ }), Ne), Ko = rt(Xt, w({}, (O = te.arrow) != null ? O : j.arrow, {
2328
+ className: Ce(Pt.arrow, (u = (h = te.arrow) != null ? h : j.arrow) == null ? void 0 : u.className)
2329
+ }), Ne);
2330
+ return /* @__PURE__ */ P.jsxs(M.Fragment, {
2331
+ children: [/* @__PURE__ */ M.cloneElement(q, X), /* @__PURE__ */ P.jsx(Ht, w({
2332
+ as: pe ?? Nt,
2333
+ placement: le,
2334
+ anchorEl: Q ? {
2335
+ getBoundingClientRect: () => ({
2336
+ top: Be.y,
2337
+ left: Be.x,
2338
+ right: Be.x,
2339
+ bottom: Be.y,
2340
+ width: 0,
2341
+ height: 0
2342
+ })
2343
+ } : _,
2344
+ popperRef: Ot,
2345
+ open: _ ? ie : !1,
2346
+ id: wt,
2347
+ transition: !0
2348
+ }, De, Xo, {
2349
+ popperOptions: qo,
2350
+ children: ({
2351
+ TransitionProps: x
2352
+ }) => /* @__PURE__ */ P.jsx(zt, w({
2353
+ timeout: $e.transitions.duration.shorter
2354
+ }, x, Yo, {
2355
+ children: /* @__PURE__ */ P.jsxs(qt, w({}, Go, {
2356
+ children: [z, E ? /* @__PURE__ */ P.jsx(Xt, w({}, Ko, {
2357
+ ref: xe
2358
+ })) : null]
2359
+ }))
2360
+ }))
2361
+ }))]
2362
+ });
2363
+ });
2364
+ process.env.NODE_ENV !== "production" && (da.propTypes = {
2365
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2366
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2367
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2368
+ // └─────────────────────────────────────────────────────────────────────┘
2369
+ /**
2370
+ * If `true`, adds an arrow to the tooltip.
2371
+ * @default false
2372
+ */
2373
+ arrow: n.bool,
2374
+ /**
2375
+ * Tooltip reference element.
2376
+ */
2377
+ children: pr.isRequired,
2378
+ /**
2379
+ * Override or extend the styles applied to the component.
2380
+ */
2381
+ classes: n.object,
2382
+ /**
2383
+ * @ignore
2384
+ */
2385
+ className: n.string,
2386
+ /**
2387
+ * The components used for each slot inside.
2388
+ *
2389
+ * This prop is an alias for the `slots` prop.
2390
+ * It's recommended to use the `slots` prop instead.
2391
+ *
2392
+ * @default {}
2393
+ */
2394
+ components: n.shape({
2395
+ Arrow: n.elementType,
2396
+ Popper: n.elementType,
2397
+ Tooltip: n.elementType,
2398
+ Transition: n.elementType
2399
+ }),
2400
+ /**
2401
+ * The extra props for the slot components.
2402
+ * You can override the existing props or add new ones.
2403
+ *
2404
+ * This prop is an alias for the `slotProps` prop.
2405
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
2406
+ *
2407
+ * @default {}
2408
+ */
2409
+ componentsProps: n.shape({
2410
+ arrow: n.object,
2411
+ popper: n.object,
2412
+ tooltip: n.object,
2413
+ transition: n.object
2414
+ }),
2415
+ /**
2416
+ * Set to `true` if the `title` acts as an accessible description.
2417
+ * By default the `title` acts as an accessible label for the child.
2418
+ * @default false
2419
+ */
2420
+ describeChild: n.bool,
2421
+ /**
2422
+ * Do not respond to focus-visible events.
2423
+ * @default false
2424
+ */
2425
+ disableFocusListener: n.bool,
2426
+ /**
2427
+ * Do not respond to hover events.
2428
+ * @default false
2429
+ */
2430
+ disableHoverListener: n.bool,
2431
+ /**
2432
+ * Makes a tooltip not interactive, i.e. it will close when the user
2433
+ * hovers over the tooltip before the `leaveDelay` is expired.
2434
+ * @default false
2435
+ */
2436
+ disableInteractive: n.bool,
2437
+ /**
2438
+ * Do not respond to long press touch events.
2439
+ * @default false
2440
+ */
2441
+ disableTouchListener: n.bool,
2442
+ /**
2443
+ * The number of milliseconds to wait before showing the tooltip.
2444
+ * This prop won't impact the enter touch delay (`enterTouchDelay`).
2445
+ * @default 100
2446
+ */
2447
+ enterDelay: n.number,
2448
+ /**
2449
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
2450
+ * @default 0
2451
+ */
2452
+ enterNextDelay: n.number,
2453
+ /**
2454
+ * The number of milliseconds a user must touch the element before showing the tooltip.
2455
+ * @default 700
2456
+ */
2457
+ enterTouchDelay: n.number,
2458
+ /**
2459
+ * If `true`, the tooltip follow the cursor over the wrapped element.
2460
+ * @default false
2461
+ */
2462
+ followCursor: n.bool,
2463
+ /**
2464
+ * This prop is used to help implement the accessibility logic.
2465
+ * If you don't provide this prop. It falls back to a randomly generated id.
2466
+ */
2467
+ id: n.string,
2468
+ /**
2469
+ * The number of milliseconds to wait before hiding the tooltip.
2470
+ * This prop won't impact the leave touch delay (`leaveTouchDelay`).
2471
+ * @default 0
2472
+ */
2473
+ leaveDelay: n.number,
2474
+ /**
2475
+ * The number of milliseconds after the user stops touching an element before hiding the tooltip.
2476
+ * @default 1500
2477
+ */
2478
+ leaveTouchDelay: n.number,
2479
+ /**
2480
+ * Callback fired when the component requests to be closed.
2481
+ *
2482
+ * @param {React.SyntheticEvent} event The event source of the callback.
2483
+ */
2484
+ onClose: n.func,
2485
+ /**
2486
+ * Callback fired when the component requests to be open.
2487
+ *
2488
+ * @param {React.SyntheticEvent} event The event source of the callback.
2489
+ */
2490
+ onOpen: n.func,
2491
+ /**
2492
+ * If `true`, the component is shown.
2493
+ */
2494
+ open: n.bool,
2495
+ /**
2496
+ * Tooltip placement.
2497
+ * @default 'bottom'
2498
+ */
2499
+ placement: n.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
2500
+ /**
2501
+ * The component used for the popper.
2502
+ * @default Popper
2503
+ */
2504
+ PopperComponent: n.elementType,
2505
+ /**
2506
+ * Props applied to the [`Popper`](/material-ui/api/popper/) element.
2507
+ * @default {}
2508
+ */
2509
+ PopperProps: n.object,
2510
+ /**
2511
+ * The extra props for the slot components.
2512
+ * You can override the existing props or add new ones.
2513
+ *
2514
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
2515
+ *
2516
+ * @default {}
2517
+ */
2518
+ slotProps: n.shape({
2519
+ arrow: n.object,
2520
+ popper: n.object,
2521
+ tooltip: n.object,
2522
+ transition: n.object
2523
+ }),
2524
+ /**
2525
+ * The components used for each slot inside.
2526
+ *
2527
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
2528
+ *
2529
+ * @default {}
2530
+ */
2531
+ slots: n.shape({
2532
+ arrow: n.elementType,
2533
+ popper: n.elementType,
2534
+ tooltip: n.elementType,
2535
+ transition: n.elementType
2536
+ }),
2537
+ /**
2538
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2539
+ */
2540
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
2541
+ /**
2542
+ * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
2543
+ */
2544
+ title: n.node,
2545
+ /**
2546
+ * The component used for the transition.
2547
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
2548
+ * @default Grow
2549
+ */
2550
+ TransitionComponent: n.elementType,
2551
+ /**
2552
+ * Props applied to the transition element.
2553
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
2554
+ */
2555
+ TransitionProps: n.object
2556
+ });
2557
+ const Ea = (e) => e.templateLibrary.connectorTemplateList, Ra = (e) => e.templateLibrary.connectorTemplates, ja = (e) => e.templateLibrary.selectedTemplateData, Aa = (e) => e.templateLibrary.templateListApiStatus, Ma = (e) => e.templateLibrary.templateDetailsApiStatus, $a = U(Bo)`
2558
+ display: block;
2559
+ margin: ${(e) => e.margin ? e.margin : 0};
2560
+ `, Sa = (e) => e.connectorLirary.connectorList, ka = (e) => e.connectorLirary.connectors, La = (e) => e.connectorLirary.connectorsApiStatus, Da = (e) => e.connectorLirary.currentUpdatingConnectors, Na = (e) => e.connectorLirary.connectorDetailApiStatus, va = "success", ma = "error", ha = "info-dark", Ia = "Error in toggling connector state", Ba = "Connector disabled successfully", ga = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%3e%3cpath%20fill='%23ffffff'%20fill-rule='nonzero'%20d='M8.821%207.496L14.716%201.6A.937.937%200%201%200%2013.391.275L7.496%206.17%201.6.275A.937.937%200%201%200%20.275%201.601L6.17%207.496.275%2013.39A.937.937%200%201%200%201.6%2014.716L7.496%208.82l5.895%205.895a.935.935%200%200%200%201.325%200%20.937.937%200%200%200%200-1.326L8.821%207.496z'%20opacity='.8'/%3e%3c/svg%3e", ba = U(Po)`
2561
+ display: flex;
2562
+ flex-direction: row;
2563
+ align-items: center;
2564
+ `, ya = U(Po)`
2565
+ padding: 5px 8px;
2566
+ color: white;
2567
+ `, wa = U(fr.Logo)(() => ({
2568
+ height: "26px",
2569
+ width: "26px",
2570
+ color: "#FFFFFF",
2571
+ marginRight: "4px"
2572
+ })), xa = U(ur)`
2573
+ flex-direction: row;
2574
+ padding: 0 10px;
2575
+ img {
2576
+ margin: auto;
2577
+ cursor: pointer;
2578
+ height: 10px;
2579
+ fill: #ffffff;
2580
+ width: 10px;
2581
+ }
2582
+ `, Oa = (e, { closeToast: t }) => /* @__PURE__ */ P.jsx(xa, { children: /* @__PURE__ */ P.jsx("img", { src: ga, onClick: t }) }), st = ({ message: e }) => /* @__PURE__ */ P.jsxs(ba, { children: [
2583
+ /* @__PURE__ */ P.jsx(wa, {}),
2584
+ /* @__PURE__ */ P.jsx(ya, { children: e })
2585
+ ] });
2586
+ function _a(e) {
2587
+ const { message: t, type: o, autoClose: r } = e, a = {
2588
+ closeButton: /* @__PURE__ */ P.jsx(Oa, {}),
2589
+ autoClose: r ?? 5e3,
2590
+ pauseOnHover: !0,
2591
+ position: "bottom-left",
2592
+ rtl: !1,
2593
+ draggable: !0,
2594
+ closeOnClick: !0,
2595
+ hideProgressBar: !0
2596
+ };
2597
+ let i;
2598
+ switch (o) {
2599
+ case va: {
2600
+ i = _e.success(/* @__PURE__ */ P.jsx(st, { message: t }), { ...a, icon: !1 });
2601
+ break;
2602
+ }
2603
+ case ma: {
2604
+ i = _e.error(/* @__PURE__ */ P.jsx(st, { message: t }), { ...a, icon: !1 });
2605
+ break;
2606
+ }
2607
+ case ha: {
2608
+ i = _e.info(/* @__PURE__ */ P.jsx(st, { message: t }), { ...a, icon: !1 });
2609
+ break;
2610
+ }
2611
+ default: {
2612
+ i = _e.info(/* @__PURE__ */ P.jsx(st, { message: t }), { ...a, icon: !1 });
2613
+ break;
2614
+ }
2615
+ }
2616
+ return setTimeout(
2617
+ () => {
2618
+ Ta(i);
2619
+ },
2620
+ r && !isNaN(r) ? Number(r) : 5e3
2621
+ ), i;
2622
+ }
2623
+ function Ta(e) {
2624
+ _e.dismiss(e);
2625
+ }
2626
+ export {
2627
+ $r as A,
2628
+ $a as C,
2629
+ Ia as E,
2630
+ ha as I,
2631
+ Nt as P,
2632
+ va as S,
2633
+ da as T,
2634
+ Ra as a,
2635
+ Aa as b,
2636
+ Sa as c,
2637
+ ka as d,
2638
+ ja as e,
2639
+ Na as f,
2640
+ Ma as g,
2641
+ Cr as h,
2642
+ Da as i,
2643
+ La as j,
2644
+ _a as k,
2645
+ Ba as l,
2646
+ ma as m,
2647
+ Ea as s
2648
+ };