Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

76750 строки
3.1 MiB

  1. var __create = Object.create;
  2. var __defProp = Object.defineProperty;
  3. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  4. var __getOwnPropNames = Object.getOwnPropertyNames;
  5. var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
  6. var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
  7. get: (a3, b) => (typeof require < "u" ? require : a3)[b]
  8. }) : x)(function(x) {
  9. if (typeof require < "u") return require.apply(this, arguments);
  10. throw Error('Dynamic require of "' + x + '" is not supported');
  11. });
  12. var __esm = (fn4, res) => function() {
  13. return fn4 && (res = (0, fn4[__getOwnPropNames(fn4)[0]])(fn4 = 0)), res;
  14. };
  15. var __commonJS = (cb, mod) => function() {
  16. return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  17. };
  18. var __export = (target, all) => {
  19. for (var name in all)
  20. __defProp(target, name, { get: all[name], enumerable: !0 });
  21. }, __copyProps = (to, from2, except, desc) => {
  22. if (from2 && typeof from2 == "object" || typeof from2 == "function")
  23. for (let key of __getOwnPropNames(from2))
  24. !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
  25. return to;
  26. };
  27. var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  28. // If the importer is in node compatibility mode or this is not an ESM
  29. // file that has been converted to a CommonJS file using a Babel-
  30. // compatible transform (i.e. "__esModule" has not been set), then set
  31. // "default" to the CommonJS "module.exports" for node compatibility.
  32. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
  33. mod
  34. ));
  35. // ../../node_modules/react/cjs/react.production.min.js
  36. var require_react_production_min = __commonJS({
  37. "../../node_modules/react/cjs/react.production.min.js"(exports) {
  38. "use strict";
  39. var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p3 = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r2 = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u2 = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
  40. function A3(a3) {
  41. return a3 === null || typeof a3 != "object" ? null : (a3 = z && a3[z] || a3["@@iterator"], typeof a3 == "function" ? a3 : null);
  42. }
  43. var B3 = { isMounted: function() {
  44. return !1;
  45. }, enqueueForceUpdate: function() {
  46. }, enqueueReplaceState: function() {
  47. }, enqueueSetState: function() {
  48. } }, C3 = Object.assign, D = {};
  49. function E(a3, b, e) {
  50. this.props = a3, this.context = b, this.refs = D, this.updater = e || B3;
  51. }
  52. E.prototype.isReactComponent = {};
  53. E.prototype.setState = function(a3, b) {
  54. if (typeof a3 != "object" && typeof a3 != "function" && a3 != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
  55. this.updater.enqueueSetState(this, a3, b, "setState");
  56. };
  57. E.prototype.forceUpdate = function(a3) {
  58. this.updater.enqueueForceUpdate(this, a3, "forceUpdate");
  59. };
  60. function F() {
  61. }
  62. F.prototype = E.prototype;
  63. function G(a3, b, e) {
  64. this.props = a3, this.context = b, this.refs = D, this.updater = e || B3;
  65. }
  66. var H = G.prototype = new F();
  67. H.constructor = G;
  68. C3(H, E.prototype);
  69. H.isPureReactComponent = !0;
  70. var I = Array.isArray, J = Object.prototype.hasOwnProperty, K2 = { current: null }, L = { key: !0, ref: !0, __self: !0, __source: !0 };
  71. function M(a3, b, e) {
  72. var d, c = {}, k = null, h3 = null;
  73. if (b != null) for (d in b.ref !== void 0 && (h3 = b.ref), b.key !== void 0 && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
  74. var g2 = arguments.length - 2;
  75. if (g2 === 1) c.children = e;
  76. else if (1 < g2) {
  77. for (var f4 = Array(g2), m3 = 0; m3 < g2; m3++) f4[m3] = arguments[m3 + 2];
  78. c.children = f4;
  79. }
  80. if (a3 && a3.defaultProps) for (d in g2 = a3.defaultProps, g2) c[d] === void 0 && (c[d] = g2[d]);
  81. return { $$typeof: l, type: a3, key: k, ref: h3, props: c, _owner: K2.current };
  82. }
  83. function N(a3, b) {
  84. return { $$typeof: l, type: a3.type, key: b, ref: a3.ref, props: a3.props, _owner: a3._owner };
  85. }
  86. function O(a3) {
  87. return typeof a3 == "object" && a3 !== null && a3.$$typeof === l;
  88. }
  89. function escape4(a3) {
  90. var b = { "=": "=0", ":": "=2" };
  91. return "$" + a3.replace(/[=:]/g, function(a4) {
  92. return b[a4];
  93. });
  94. }
  95. var P3 = /\/+/g;
  96. function Q(a3, b) {
  97. return typeof a3 == "object" && a3 !== null && a3.key != null ? escape4("" + a3.key) : b.toString(36);
  98. }
  99. function R(a3, b, e, d, c) {
  100. var k = typeof a3;
  101. (k === "undefined" || k === "boolean") && (a3 = null);
  102. var h3 = !1;
  103. if (a3 === null) h3 = !0;
  104. else switch (k) {
  105. case "string":
  106. case "number":
  107. h3 = !0;
  108. break;
  109. case "object":
  110. switch (a3.$$typeof) {
  111. case l:
  112. case n:
  113. h3 = !0;
  114. }
  115. }
  116. if (h3) return h3 = a3, c = c(h3), a3 = d === "" ? "." + Q(h3, 0) : d, I(c) ? (e = "", a3 != null && (e = a3.replace(P3, "$&/") + "/"), R(c, b, e, "", function(a4) {
  117. return a4;
  118. })) : c != null && (O(c) && (c = N(c, e + (!c.key || h3 && h3.key === c.key ? "" : ("" + c.key).replace(P3, "$&/") + "/") + a3)), b.push(c)), 1;
  119. if (h3 = 0, d = d === "" ? "." : d + ":", I(a3)) for (var g2 = 0; g2 < a3.length; g2++) {
  120. k = a3[g2];
  121. var f4 = d + Q(k, g2);
  122. h3 += R(k, b, e, f4, c);
  123. }
  124. else if (f4 = A3(a3), typeof f4 == "function") for (a3 = f4.call(a3), g2 = 0; !(k = a3.next()).done; ) k = k.value, f4 = d + Q(k, g2++), h3 += R(k, b, e, f4, c);
  125. else if (k === "object") throw b = String(a3), Error("Objects are not valid as a React child (found: " + (b === "[object Object]" ? "object with keys {" + Object.keys(a3).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
  126. return h3;
  127. }
  128. function S(a3, b, e) {
  129. if (a3 == null) return a3;
  130. var d = [], c = 0;
  131. return R(a3, d, "", "", function(a4) {
  132. return b.call(e, a4, c++);
  133. }), d;
  134. }
  135. function T2(a3) {
  136. if (a3._status === -1) {
  137. var b = a3._result;
  138. b = b(), b.then(function(b2) {
  139. (a3._status === 0 || a3._status === -1) && (a3._status = 1, a3._result = b2);
  140. }, function(b2) {
  141. (a3._status === 0 || a3._status === -1) && (a3._status = 2, a3._result = b2);
  142. }), a3._status === -1 && (a3._status = 0, a3._result = b);
  143. }
  144. if (a3._status === 1) return a3._result.default;
  145. throw a3._result;
  146. }
  147. var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K2 };
  148. function X() {
  149. throw Error("act(...) is not supported in production builds of React.");
  150. }
  151. exports.Children = { map: S, forEach: function(a3, b, e) {
  152. S(a3, function() {
  153. b.apply(this, arguments);
  154. }, e);
  155. }, count: function(a3) {
  156. var b = 0;
  157. return S(a3, function() {
  158. b++;
  159. }), b;
  160. }, toArray: function(a3) {
  161. return S(a3, function(a4) {
  162. return a4;
  163. }) || [];
  164. }, only: function(a3) {
  165. if (!O(a3)) throw Error("React.Children.only expected to receive a single React element child.");
  166. return a3;
  167. } };
  168. exports.Component = E;
  169. exports.Fragment = p3;
  170. exports.Profiler = r2;
  171. exports.PureComponent = G;
  172. exports.StrictMode = q;
  173. exports.Suspense = w;
  174. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
  175. exports.act = X;
  176. exports.cloneElement = function(a3, b, e) {
  177. if (a3 == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a3 + ".");
  178. var d = C3({}, a3.props), c = a3.key, k = a3.ref, h3 = a3._owner;
  179. if (b != null) {
  180. if (b.ref !== void 0 && (k = b.ref, h3 = K2.current), b.key !== void 0 && (c = "" + b.key), a3.type && a3.type.defaultProps) var g2 = a3.type.defaultProps;
  181. for (f4 in b) J.call(b, f4) && !L.hasOwnProperty(f4) && (d[f4] = b[f4] === void 0 && g2 !== void 0 ? g2[f4] : b[f4]);
  182. }
  183. var f4 = arguments.length - 2;
  184. if (f4 === 1) d.children = e;
  185. else if (1 < f4) {
  186. g2 = Array(f4);
  187. for (var m3 = 0; m3 < f4; m3++) g2[m3] = arguments[m3 + 2];
  188. d.children = g2;
  189. }
  190. return { $$typeof: l, type: a3.type, key: c, ref: k, props: d, _owner: h3 };
  191. };
  192. exports.createContext = function(a3) {
  193. return a3 = { $$typeof: u2, _currentValue: a3, _currentValue2: a3, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, a3.Provider = { $$typeof: t, _context: a3 }, a3.Consumer = a3;
  194. };
  195. exports.createElement = M;
  196. exports.createFactory = function(a3) {
  197. var b = M.bind(null, a3);
  198. return b.type = a3, b;
  199. };
  200. exports.createRef = function() {
  201. return { current: null };
  202. };
  203. exports.forwardRef = function(a3) {
  204. return { $$typeof: v, render: a3 };
  205. };
  206. exports.isValidElement = O;
  207. exports.lazy = function(a3) {
  208. return { $$typeof: y, _payload: { _status: -1, _result: a3 }, _init: T2 };
  209. };
  210. exports.memo = function(a3, b) {
  211. return { $$typeof: x, type: a3, compare: b === void 0 ? null : b };
  212. };
  213. exports.startTransition = function(a3) {
  214. var b = V.transition;
  215. V.transition = {};
  216. try {
  217. a3();
  218. } finally {
  219. V.transition = b;
  220. }
  221. };
  222. exports.unstable_act = X;
  223. exports.useCallback = function(a3, b) {
  224. return U.current.useCallback(a3, b);
  225. };
  226. exports.useContext = function(a3) {
  227. return U.current.useContext(a3);
  228. };
  229. exports.useDebugValue = function() {
  230. };
  231. exports.useDeferredValue = function(a3) {
  232. return U.current.useDeferredValue(a3);
  233. };
  234. exports.useEffect = function(a3, b) {
  235. return U.current.useEffect(a3, b);
  236. };
  237. exports.useId = function() {
  238. return U.current.useId();
  239. };
  240. exports.useImperativeHandle = function(a3, b, e) {
  241. return U.current.useImperativeHandle(a3, b, e);
  242. };
  243. exports.useInsertionEffect = function(a3, b) {
  244. return U.current.useInsertionEffect(a3, b);
  245. };
  246. exports.useLayoutEffect = function(a3, b) {
  247. return U.current.useLayoutEffect(a3, b);
  248. };
  249. exports.useMemo = function(a3, b) {
  250. return U.current.useMemo(a3, b);
  251. };
  252. exports.useReducer = function(a3, b, e) {
  253. return U.current.useReducer(a3, b, e);
  254. };
  255. exports.useRef = function(a3) {
  256. return U.current.useRef(a3);
  257. };
  258. exports.useState = function(a3) {
  259. return U.current.useState(a3);
  260. };
  261. exports.useSyncExternalStore = function(a3, b, e) {
  262. return U.current.useSyncExternalStore(a3, b, e);
  263. };
  264. exports.useTransition = function() {
  265. return U.current.useTransition();
  266. };
  267. exports.version = "18.3.1";
  268. }
  269. });
  270. // ../../node_modules/react/index.js
  271. var require_react = __commonJS({
  272. "../../node_modules/react/index.js"(exports, module2) {
  273. "use strict";
  274. module2.exports = require_react_production_min();
  275. }
  276. });
  277. // ../../node_modules/scheduler/cjs/scheduler.production.min.js
  278. var require_scheduler_production_min = __commonJS({
  279. "../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports) {
  280. "use strict";
  281. function f4(a3, b) {
  282. var c = a3.length;
  283. a3.push(b);
  284. a: for (; 0 < c; ) {
  285. var d = c - 1 >>> 1, e = a3[d];
  286. if (0 < g2(e, b)) a3[d] = b, a3[c] = e, c = d;
  287. else break a;
  288. }
  289. }
  290. function h3(a3) {
  291. return a3.length === 0 ? null : a3[0];
  292. }
  293. function k(a3) {
  294. if (a3.length === 0) return null;
  295. var b = a3[0], c = a3.pop();
  296. if (c !== b) {
  297. a3[0] = c;
  298. a: for (var d = 0, e = a3.length, w = e >>> 1; d < w; ) {
  299. var m3 = 2 * (d + 1) - 1, C3 = a3[m3], n = m3 + 1, x = a3[n];
  300. if (0 > g2(C3, c)) n < e && 0 > g2(x, C3) ? (a3[d] = x, a3[n] = c, d = n) : (a3[d] = C3, a3[m3] = c, d = m3);
  301. else if (n < e && 0 > g2(x, c)) a3[d] = x, a3[n] = c, d = n;
  302. else break a;
  303. }
  304. }
  305. return b;
  306. }
  307. function g2(a3, b) {
  308. var c = a3.sortIndex - b.sortIndex;
  309. return c !== 0 ? c : a3.id - b.id;
  310. }
  311. typeof performance == "object" && typeof performance.now == "function" ? (l = performance, exports.unstable_now = function() {
  312. return l.now();
  313. }) : (p3 = Date, q = p3.now(), exports.unstable_now = function() {
  314. return p3.now() - q;
  315. });
  316. var l, p3, q, r2 = [], t = [], u2 = 1, v = null, y = 3, z = !1, A3 = !1, B3 = !1, D = typeof setTimeout == "function" ? setTimeout : null, E = typeof clearTimeout == "function" ? clearTimeout : null, F = typeof setImmediate < "u" ? setImmediate : null;
  317. typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
  318. function G(a3) {
  319. for (var b = h3(t); b !== null; ) {
  320. if (b.callback === null) k(t);
  321. else if (b.startTime <= a3) k(t), b.sortIndex = b.expirationTime, f4(r2, b);
  322. else break;
  323. b = h3(t);
  324. }
  325. }
  326. function H(a3) {
  327. if (B3 = !1, G(a3), !A3) if (h3(r2) !== null) A3 = !0, I(J);
  328. else {
  329. var b = h3(t);
  330. b !== null && K2(H, b.startTime - a3);
  331. }
  332. }
  333. function J(a3, b) {
  334. A3 = !1, B3 && (B3 = !1, E(L), L = -1), z = !0;
  335. var c = y;
  336. try {
  337. for (G(b), v = h3(r2); v !== null && (!(v.expirationTime > b) || a3 && !M()); ) {
  338. var d = v.callback;
  339. if (typeof d == "function") {
  340. v.callback = null, y = v.priorityLevel;
  341. var e = d(v.expirationTime <= b);
  342. b = exports.unstable_now(), typeof e == "function" ? v.callback = e : v === h3(r2) && k(r2), G(b);
  343. } else k(r2);
  344. v = h3(r2);
  345. }
  346. if (v !== null) var w = !0;
  347. else {
  348. var m3 = h3(t);
  349. m3 !== null && K2(H, m3.startTime - b), w = !1;
  350. }
  351. return w;
  352. } finally {
  353. v = null, y = c, z = !1;
  354. }
  355. }
  356. var N = !1, O = null, L = -1, P3 = 5, Q = -1;
  357. function M() {
  358. return !(exports.unstable_now() - Q < P3);
  359. }
  360. function R() {
  361. if (O !== null) {
  362. var a3 = exports.unstable_now();
  363. Q = a3;
  364. var b = !0;
  365. try {
  366. b = O(!0, a3);
  367. } finally {
  368. b ? S() : (N = !1, O = null);
  369. }
  370. } else N = !1;
  371. }
  372. var S;
  373. typeof F == "function" ? S = function() {
  374. F(R);
  375. } : typeof MessageChannel < "u" ? (T2 = new MessageChannel(), U = T2.port2, T2.port1.onmessage = R, S = function() {
  376. U.postMessage(null);
  377. }) : S = function() {
  378. D(R, 0);
  379. };
  380. var T2, U;
  381. function I(a3) {
  382. O = a3, N || (N = !0, S());
  383. }
  384. function K2(a3, b) {
  385. L = D(function() {
  386. a3(exports.unstable_now());
  387. }, b);
  388. }
  389. exports.unstable_IdlePriority = 5;
  390. exports.unstable_ImmediatePriority = 1;
  391. exports.unstable_LowPriority = 4;
  392. exports.unstable_NormalPriority = 3;
  393. exports.unstable_Profiling = null;
  394. exports.unstable_UserBlockingPriority = 2;
  395. exports.unstable_cancelCallback = function(a3) {
  396. a3.callback = null;
  397. };
  398. exports.unstable_continueExecution = function() {
  399. A3 || z || (A3 = !0, I(J));
  400. };
  401. exports.unstable_forceFrameRate = function(a3) {
  402. 0 > a3 || 125 < a3 ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P3 = 0 < a3 ? Math.floor(1e3 / a3) : 5;
  403. };
  404. exports.unstable_getCurrentPriorityLevel = function() {
  405. return y;
  406. };
  407. exports.unstable_getFirstCallbackNode = function() {
  408. return h3(r2);
  409. };
  410. exports.unstable_next = function(a3) {
  411. switch (y) {
  412. case 1:
  413. case 2:
  414. case 3:
  415. var b = 3;
  416. break;
  417. default:
  418. b = y;
  419. }
  420. var c = y;
  421. y = b;
  422. try {
  423. return a3();
  424. } finally {
  425. y = c;
  426. }
  427. };
  428. exports.unstable_pauseExecution = function() {
  429. };
  430. exports.unstable_requestPaint = function() {
  431. };
  432. exports.unstable_runWithPriority = function(a3, b) {
  433. switch (a3) {
  434. case 1:
  435. case 2:
  436. case 3:
  437. case 4:
  438. case 5:
  439. break;
  440. default:
  441. a3 = 3;
  442. }
  443. var c = y;
  444. y = a3;
  445. try {
  446. return b();
  447. } finally {
  448. y = c;
  449. }
  450. };
  451. exports.unstable_scheduleCallback = function(a3, b, c) {
  452. var d = exports.unstable_now();
  453. switch (typeof c == "object" && c !== null ? (c = c.delay, c = typeof c == "number" && 0 < c ? d + c : d) : c = d, a3) {
  454. case 1:
  455. var e = -1;
  456. break;
  457. case 2:
  458. e = 250;
  459. break;
  460. case 5:
  461. e = 1073741823;
  462. break;
  463. case 4:
  464. e = 1e4;
  465. break;
  466. default:
  467. e = 5e3;
  468. }
  469. return e = c + e, a3 = { id: u2++, callback: b, priorityLevel: a3, startTime: c, expirationTime: e, sortIndex: -1 }, c > d ? (a3.sortIndex = c, f4(t, a3), h3(r2) === null && a3 === h3(t) && (B3 ? (E(L), L = -1) : B3 = !0, K2(H, c - d))) : (a3.sortIndex = e, f4(r2, a3), A3 || z || (A3 = !0, I(J))), a3;
  470. };
  471. exports.unstable_shouldYield = M;
  472. exports.unstable_wrapCallback = function(a3) {
  473. var b = y;
  474. return function() {
  475. var c = y;
  476. y = b;
  477. try {
  478. return a3.apply(this, arguments);
  479. } finally {
  480. y = c;
  481. }
  482. };
  483. };
  484. }
  485. });
  486. // ../../node_modules/scheduler/index.js
  487. var require_scheduler = __commonJS({
  488. "../../node_modules/scheduler/index.js"(exports, module2) {
  489. "use strict";
  490. module2.exports = require_scheduler_production_min();
  491. }
  492. });
  493. // ../../node_modules/react-dom/cjs/react-dom.production.min.js
  494. var require_react_dom_production_min = __commonJS({
  495. "../../node_modules/react-dom/cjs/react-dom.production.min.js"(exports) {
  496. "use strict";
  497. var aa = require_react(), ca = require_scheduler();
  498. function p3(a3) {
  499. for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
  500. return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
  501. }
  502. var da = /* @__PURE__ */ new Set(), ea = {};
  503. function fa(a3, b) {
  504. ha(a3, b), ha(a3 + "Capture", b);
  505. }
  506. function ha(a3, b) {
  507. for (ea[a3] = b, a3 = 0; a3 < b.length; a3++) da.add(b[a3]);
  508. }
  509. var ia = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), ja = Object.prototype.hasOwnProperty, ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {};
  510. function oa(a3) {
  511. return ja.call(ma, a3) ? !0 : ja.call(la, a3) ? !1 : ka.test(a3) ? ma[a3] = !0 : (la[a3] = !0, !1);
  512. }
  513. function pa(a3, b, c, d) {
  514. if (c !== null && c.type === 0) return !1;
  515. switch (typeof b) {
  516. case "function":
  517. case "symbol":
  518. return !0;
  519. case "boolean":
  520. return d ? !1 : c !== null ? !c.acceptsBooleans : (a3 = a3.toLowerCase().slice(0, 5), a3 !== "data-" && a3 !== "aria-");
  521. default:
  522. return !1;
  523. }
  524. }
  525. function qa(a3, b, c, d) {
  526. if (b === null || typeof b > "u" || pa(a3, b, c, d)) return !0;
  527. if (d) return !1;
  528. if (c !== null) switch (c.type) {
  529. case 3:
  530. return !b;
  531. case 4:
  532. return b === !1;
  533. case 5:
  534. return isNaN(b);
  535. case 6:
  536. return isNaN(b) || 1 > b;
  537. }
  538. return !1;
  539. }
  540. function v(a3, b, c, d, e, f4, g2) {
  541. this.acceptsBooleans = b === 2 || b === 3 || b === 4, this.attributeName = d, this.attributeNamespace = e, this.mustUseProperty = c, this.propertyName = a3, this.type = b, this.sanitizeURL = f4, this.removeEmptyString = g2;
  542. }
  543. var z = {};
  544. "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a3) {
  545. z[a3] = new v(a3, 0, !1, a3, null, !1, !1);
  546. });
  547. [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a3) {
  548. var b = a3[0];
  549. z[b] = new v(b, 1, !1, a3[1], null, !1, !1);
  550. });
  551. ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a3) {
  552. z[a3] = new v(a3, 2, !1, a3.toLowerCase(), null, !1, !1);
  553. });
  554. ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a3) {
  555. z[a3] = new v(a3, 2, !1, a3, null, !1, !1);
  556. });
  557. "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a3) {
  558. z[a3] = new v(a3, 3, !1, a3.toLowerCase(), null, !1, !1);
  559. });
  560. ["checked", "multiple", "muted", "selected"].forEach(function(a3) {
  561. z[a3] = new v(a3, 3, !0, a3, null, !1, !1);
  562. });
  563. ["capture", "download"].forEach(function(a3) {
  564. z[a3] = new v(a3, 4, !1, a3, null, !1, !1);
  565. });
  566. ["cols", "rows", "size", "span"].forEach(function(a3) {
  567. z[a3] = new v(a3, 6, !1, a3, null, !1, !1);
  568. });
  569. ["rowSpan", "start"].forEach(function(a3) {
  570. z[a3] = new v(a3, 5, !1, a3.toLowerCase(), null, !1, !1);
  571. });
  572. var ra = /[\-:]([a-z])/g;
  573. function sa(a3) {
  574. return a3[1].toUpperCase();
  575. }
  576. "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a3) {
  577. var b = a3.replace(
  578. ra,
  579. sa
  580. );
  581. z[b] = new v(b, 1, !1, a3, null, !1, !1);
  582. });
  583. "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a3) {
  584. var b = a3.replace(ra, sa);
  585. z[b] = new v(b, 1, !1, a3, "http://www.w3.org/1999/xlink", !1, !1);
  586. });
  587. ["xml:base", "xml:lang", "xml:space"].forEach(function(a3) {
  588. var b = a3.replace(ra, sa);
  589. z[b] = new v(b, 1, !1, a3, "http://www.w3.org/XML/1998/namespace", !1, !1);
  590. });
  591. ["tabIndex", "crossOrigin"].forEach(function(a3) {
  592. z[a3] = new v(a3, 1, !1, a3.toLowerCase(), null, !1, !1);
  593. });
  594. z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
  595. ["src", "href", "action", "formAction"].forEach(function(a3) {
  596. z[a3] = new v(a3, 1, !1, a3.toLowerCase(), null, !0, !0);
  597. });
  598. function ta(a3, b, c, d) {
  599. var e = z.hasOwnProperty(b) ? z[b] : null;
  600. (e !== null ? e.type !== 0 : d || !(2 < b.length) || b[0] !== "o" && b[0] !== "O" || b[1] !== "n" && b[1] !== "N") && (qa(b, c, e, d) && (c = null), d || e === null ? oa(b) && (c === null ? a3.removeAttribute(b) : a3.setAttribute(b, "" + c)) : e.mustUseProperty ? a3[e.propertyName] = c === null ? e.type === 3 ? !1 : "" : c : (b = e.attributeName, d = e.attributeNamespace, c === null ? a3.removeAttribute(b) : (e = e.type, c = e === 3 || e === 4 && c === !0 ? "" : "" + c, d ? a3.setAttributeNS(d, b, c) : a3.setAttribute(b, c))));
  601. }
  602. var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for("react.element"), wa = Symbol.for("react.portal"), ya = Symbol.for("react.fragment"), za = Symbol.for("react.strict_mode"), Aa = Symbol.for("react.profiler"), Ba = Symbol.for("react.provider"), Ca = Symbol.for("react.context"), Da = Symbol.for("react.forward_ref"), Ea = Symbol.for("react.suspense"), Fa = Symbol.for("react.suspense_list"), Ga = Symbol.for("react.memo"), Ha = Symbol.for("react.lazy");
  603. Symbol.for("react.scope");
  604. Symbol.for("react.debug_trace_mode");
  605. var Ia = Symbol.for("react.offscreen");
  606. Symbol.for("react.legacy_hidden");
  607. Symbol.for("react.cache");
  608. Symbol.for("react.tracing_marker");
  609. var Ja = Symbol.iterator;
  610. function Ka(a3) {
  611. return a3 === null || typeof a3 != "object" ? null : (a3 = Ja && a3[Ja] || a3["@@iterator"], typeof a3 == "function" ? a3 : null);
  612. }
  613. var A3 = Object.assign, La;
  614. function Ma(a3) {
  615. if (La === void 0) try {
  616. throw Error();
  617. } catch (c) {
  618. var b = c.stack.trim().match(/\n( *(at )?)/);
  619. La = b && b[1] || "";
  620. }
  621. return `
  622. ` + La + a3;
  623. }
  624. var Na = !1;
  625. function Oa(a3, b) {
  626. if (!a3 || Na) return "";
  627. Na = !0;
  628. var c = Error.prepareStackTrace;
  629. Error.prepareStackTrace = void 0;
  630. try {
  631. if (b) if (b = function() {
  632. throw Error();
  633. }, Object.defineProperty(b.prototype, "props", { set: function() {
  634. throw Error();
  635. } }), typeof Reflect == "object" && Reflect.construct) {
  636. try {
  637. Reflect.construct(b, []);
  638. } catch (l) {
  639. var d = l;
  640. }
  641. Reflect.construct(a3, [], b);
  642. } else {
  643. try {
  644. b.call();
  645. } catch (l) {
  646. d = l;
  647. }
  648. a3.call(b.prototype);
  649. }
  650. else {
  651. try {
  652. throw Error();
  653. } catch (l) {
  654. d = l;
  655. }
  656. a3();
  657. }
  658. } catch (l) {
  659. if (l && d && typeof l.stack == "string") {
  660. for (var e = l.stack.split(`
  661. `), f4 = d.stack.split(`
  662. `), g2 = e.length - 1, h3 = f4.length - 1; 1 <= g2 && 0 <= h3 && e[g2] !== f4[h3]; ) h3--;
  663. for (; 1 <= g2 && 0 <= h3; g2--, h3--) if (e[g2] !== f4[h3]) {
  664. if (g2 !== 1 || h3 !== 1)
  665. do
  666. if (g2--, h3--, 0 > h3 || e[g2] !== f4[h3]) {
  667. var k = `
  668. ` + e[g2].replace(" at new ", " at ");
  669. return a3.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a3.displayName)), k;
  670. }
  671. while (1 <= g2 && 0 <= h3);
  672. break;
  673. }
  674. }
  675. } finally {
  676. Na = !1, Error.prepareStackTrace = c;
  677. }
  678. return (a3 = a3 ? a3.displayName || a3.name : "") ? Ma(a3) : "";
  679. }
  680. function Pa(a3) {
  681. switch (a3.tag) {
  682. case 5:
  683. return Ma(a3.type);
  684. case 16:
  685. return Ma("Lazy");
  686. case 13:
  687. return Ma("Suspense");
  688. case 19:
  689. return Ma("SuspenseList");
  690. case 0:
  691. case 2:
  692. case 15:
  693. return a3 = Oa(a3.type, !1), a3;
  694. case 11:
  695. return a3 = Oa(a3.type.render, !1), a3;
  696. case 1:
  697. return a3 = Oa(a3.type, !0), a3;
  698. default:
  699. return "";
  700. }
  701. }
  702. function Qa(a3) {
  703. if (a3 == null) return null;
  704. if (typeof a3 == "function") return a3.displayName || a3.name || null;
  705. if (typeof a3 == "string") return a3;
  706. switch (a3) {
  707. case ya:
  708. return "Fragment";
  709. case wa:
  710. return "Portal";
  711. case Aa:
  712. return "Profiler";
  713. case za:
  714. return "StrictMode";
  715. case Ea:
  716. return "Suspense";
  717. case Fa:
  718. return "SuspenseList";
  719. }
  720. if (typeof a3 == "object") switch (a3.$$typeof) {
  721. case Ca:
  722. return (a3.displayName || "Context") + ".Consumer";
  723. case Ba:
  724. return (a3._context.displayName || "Context") + ".Provider";
  725. case Da:
  726. var b = a3.render;
  727. return a3 = a3.displayName, a3 || (a3 = b.displayName || b.name || "", a3 = a3 !== "" ? "ForwardRef(" + a3 + ")" : "ForwardRef"), a3;
  728. case Ga:
  729. return b = a3.displayName || null, b !== null ? b : Qa(a3.type) || "Memo";
  730. case Ha:
  731. b = a3._payload, a3 = a3._init;
  732. try {
  733. return Qa(a3(b));
  734. } catch {
  735. }
  736. }
  737. return null;
  738. }
  739. function Ra(a3) {
  740. var b = a3.type;
  741. switch (a3.tag) {
  742. case 24:
  743. return "Cache";
  744. case 9:
  745. return (b.displayName || "Context") + ".Consumer";
  746. case 10:
  747. return (b._context.displayName || "Context") + ".Provider";
  748. case 18:
  749. return "DehydratedFragment";
  750. case 11:
  751. return a3 = b.render, a3 = a3.displayName || a3.name || "", b.displayName || (a3 !== "" ? "ForwardRef(" + a3 + ")" : "ForwardRef");
  752. case 7:
  753. return "Fragment";
  754. case 5:
  755. return b;
  756. case 4:
  757. return "Portal";
  758. case 3:
  759. return "Root";
  760. case 6:
  761. return "Text";
  762. case 16:
  763. return Qa(b);
  764. case 8:
  765. return b === za ? "StrictMode" : "Mode";
  766. case 22:
  767. return "Offscreen";
  768. case 12:
  769. return "Profiler";
  770. case 21:
  771. return "Scope";
  772. case 13:
  773. return "Suspense";
  774. case 19:
  775. return "SuspenseList";
  776. case 25:
  777. return "TracingMarker";
  778. case 1:
  779. case 0:
  780. case 17:
  781. case 2:
  782. case 14:
  783. case 15:
  784. if (typeof b == "function") return b.displayName || b.name || null;
  785. if (typeof b == "string") return b;
  786. }
  787. return null;
  788. }
  789. function Sa(a3) {
  790. switch (typeof a3) {
  791. case "boolean":
  792. case "number":
  793. case "string":
  794. case "undefined":
  795. return a3;
  796. case "object":
  797. return a3;
  798. default:
  799. return "";
  800. }
  801. }
  802. function Ta(a3) {
  803. var b = a3.type;
  804. return (a3 = a3.nodeName) && a3.toLowerCase() === "input" && (b === "checkbox" || b === "radio");
  805. }
  806. function Ua(a3) {
  807. var b = Ta(a3) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a3.constructor.prototype, b), d = "" + a3[b];
  808. if (!a3.hasOwnProperty(b) && typeof c < "u" && typeof c.get == "function" && typeof c.set == "function") {
  809. var e = c.get, f4 = c.set;
  810. return Object.defineProperty(a3, b, { configurable: !0, get: function() {
  811. return e.call(this);
  812. }, set: function(a4) {
  813. d = "" + a4, f4.call(this, a4);
  814. } }), Object.defineProperty(a3, b, { enumerable: c.enumerable }), { getValue: function() {
  815. return d;
  816. }, setValue: function(a4) {
  817. d = "" + a4;
  818. }, stopTracking: function() {
  819. a3._valueTracker = null, delete a3[b];
  820. } };
  821. }
  822. }
  823. function Va(a3) {
  824. a3._valueTracker || (a3._valueTracker = Ua(a3));
  825. }
  826. function Wa(a3) {
  827. if (!a3) return !1;
  828. var b = a3._valueTracker;
  829. if (!b) return !0;
  830. var c = b.getValue(), d = "";
  831. return a3 && (d = Ta(a3) ? a3.checked ? "true" : "false" : a3.value), a3 = d, a3 !== c ? (b.setValue(a3), !0) : !1;
  832. }
  833. function Xa(a3) {
  834. if (a3 = a3 || (typeof document < "u" ? document : void 0), typeof a3 > "u") return null;
  835. try {
  836. return a3.activeElement || a3.body;
  837. } catch {
  838. return a3.body;
  839. }
  840. }
  841. function Ya(a3, b) {
  842. var c = b.checked;
  843. return A3({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: c ?? a3._wrapperState.initialChecked });
  844. }
  845. function Za(a3, b) {
  846. var c = b.defaultValue == null ? "" : b.defaultValue, d = b.checked != null ? b.checked : b.defaultChecked;
  847. c = Sa(b.value != null ? b.value : c), a3._wrapperState = { initialChecked: d, initialValue: c, controlled: b.type === "checkbox" || b.type === "radio" ? b.checked != null : b.value != null };
  848. }
  849. function ab(a3, b) {
  850. b = b.checked, b != null && ta(a3, "checked", b, !1);
  851. }
  852. function bb(a3, b) {
  853. ab(a3, b);
  854. var c = Sa(b.value), d = b.type;
  855. if (c != null) d === "number" ? (c === 0 && a3.value === "" || a3.value != c) && (a3.value = "" + c) : a3.value !== "" + c && (a3.value = "" + c);
  856. else if (d === "submit" || d === "reset") {
  857. a3.removeAttribute("value");
  858. return;
  859. }
  860. b.hasOwnProperty("value") ? cb(a3, b.type, c) : b.hasOwnProperty("defaultValue") && cb(a3, b.type, Sa(b.defaultValue)), b.checked == null && b.defaultChecked != null && (a3.defaultChecked = !!b.defaultChecked);
  861. }
  862. function db(a3, b, c) {
  863. if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) {
  864. var d = b.type;
  865. if (!(d !== "submit" && d !== "reset" || b.value !== void 0 && b.value !== null)) return;
  866. b = "" + a3._wrapperState.initialValue, c || b === a3.value || (a3.value = b), a3.defaultValue = b;
  867. }
  868. c = a3.name, c !== "" && (a3.name = ""), a3.defaultChecked = !!a3._wrapperState.initialChecked, c !== "" && (a3.name = c);
  869. }
  870. function cb(a3, b, c) {
  871. (b !== "number" || Xa(a3.ownerDocument) !== a3) && (c == null ? a3.defaultValue = "" + a3._wrapperState.initialValue : a3.defaultValue !== "" + c && (a3.defaultValue = "" + c));
  872. }
  873. var eb = Array.isArray;
  874. function fb(a3, b, c, d) {
  875. if (a3 = a3.options, b) {
  876. b = {};
  877. for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0;
  878. for (c = 0; c < a3.length; c++) e = b.hasOwnProperty("$" + a3[c].value), a3[c].selected !== e && (a3[c].selected = e), e && d && (a3[c].defaultSelected = !0);
  879. } else {
  880. for (c = "" + Sa(c), b = null, e = 0; e < a3.length; e++) {
  881. if (a3[e].value === c) {
  882. a3[e].selected = !0, d && (a3[e].defaultSelected = !0);
  883. return;
  884. }
  885. b !== null || a3[e].disabled || (b = a3[e]);
  886. }
  887. b !== null && (b.selected = !0);
  888. }
  889. }
  890. function gb(a3, b) {
  891. if (b.dangerouslySetInnerHTML != null) throw Error(p3(91));
  892. return A3({}, b, { value: void 0, defaultValue: void 0, children: "" + a3._wrapperState.initialValue });
  893. }
  894. function hb(a3, b) {
  895. var c = b.value;
  896. if (c == null) {
  897. if (c = b.children, b = b.defaultValue, c != null) {
  898. if (b != null) throw Error(p3(92));
  899. if (eb(c)) {
  900. if (1 < c.length) throw Error(p3(93));
  901. c = c[0];
  902. }
  903. b = c;
  904. }
  905. b == null && (b = ""), c = b;
  906. }
  907. a3._wrapperState = { initialValue: Sa(c) };
  908. }
  909. function ib(a3, b) {
  910. var c = Sa(b.value), d = Sa(b.defaultValue);
  911. c != null && (c = "" + c, c !== a3.value && (a3.value = c), b.defaultValue == null && a3.defaultValue !== c && (a3.defaultValue = c)), d != null && (a3.defaultValue = "" + d);
  912. }
  913. function jb(a3) {
  914. var b = a3.textContent;
  915. b === a3._wrapperState.initialValue && b !== "" && b !== null && (a3.value = b);
  916. }
  917. function kb(a3) {
  918. switch (a3) {
  919. case "svg":
  920. return "http://www.w3.org/2000/svg";
  921. case "math":
  922. return "http://www.w3.org/1998/Math/MathML";
  923. default:
  924. return "http://www.w3.org/1999/xhtml";
  925. }
  926. }
  927. function lb(a3, b) {
  928. return a3 == null || a3 === "http://www.w3.org/1999/xhtml" ? kb(b) : a3 === "http://www.w3.org/2000/svg" && b === "foreignObject" ? "http://www.w3.org/1999/xhtml" : a3;
  929. }
  930. var mb, nb = (function(a3) {
  931. return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
  932. MSApp.execUnsafeLocalFunction(function() {
  933. return a3(b, c, d, e);
  934. });
  935. } : a3;
  936. })(function(a3, b) {
  937. if (a3.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in a3) a3.innerHTML = b;
  938. else {
  939. for (mb = mb || document.createElement("div"), mb.innerHTML = "<svg>" + b.valueOf().toString() + "</svg>", b = mb.firstChild; a3.firstChild; ) a3.removeChild(a3.firstChild);
  940. for (; b.firstChild; ) a3.appendChild(b.firstChild);
  941. }
  942. });
  943. function ob(a3, b) {
  944. if (b) {
  945. var c = a3.firstChild;
  946. if (c && c === a3.lastChild && c.nodeType === 3) {
  947. c.nodeValue = b;
  948. return;
  949. }
  950. }
  951. a3.textContent = b;
  952. }
  953. var pb = {
  954. animationIterationCount: !0,
  955. aspectRatio: !0,
  956. borderImageOutset: !0,
  957. borderImageSlice: !0,
  958. borderImageWidth: !0,
  959. boxFlex: !0,
  960. boxFlexGroup: !0,
  961. boxOrdinalGroup: !0,
  962. columnCount: !0,
  963. columns: !0,
  964. flex: !0,
  965. flexGrow: !0,
  966. flexPositive: !0,
  967. flexShrink: !0,
  968. flexNegative: !0,
  969. flexOrder: !0,
  970. gridArea: !0,
  971. gridRow: !0,
  972. gridRowEnd: !0,
  973. gridRowSpan: !0,
  974. gridRowStart: !0,
  975. gridColumn: !0,
  976. gridColumnEnd: !0,
  977. gridColumnSpan: !0,
  978. gridColumnStart: !0,
  979. fontWeight: !0,
  980. lineClamp: !0,
  981. lineHeight: !0,
  982. opacity: !0,
  983. order: !0,
  984. orphans: !0,
  985. tabSize: !0,
  986. widows: !0,
  987. zIndex: !0,
  988. zoom: !0,
  989. fillOpacity: !0,
  990. floodOpacity: !0,
  991. stopOpacity: !0,
  992. strokeDasharray: !0,
  993. strokeDashoffset: !0,
  994. strokeMiterlimit: !0,
  995. strokeOpacity: !0,
  996. strokeWidth: !0
  997. }, qb = ["Webkit", "ms", "Moz", "O"];
  998. Object.keys(pb).forEach(function(a3) {
  999. qb.forEach(function(b) {
  1000. b = b + a3.charAt(0).toUpperCase() + a3.substring(1), pb[b] = pb[a3];
  1001. });
  1002. });
  1003. function rb(a3, b, c) {
  1004. return b == null || typeof b == "boolean" || b === "" ? "" : c || typeof b != "number" || b === 0 || pb.hasOwnProperty(a3) && pb[a3] ? ("" + b).trim() : b + "px";
  1005. }
  1006. function sb2(a3, b) {
  1007. a3 = a3.style;
  1008. for (var c in b) if (b.hasOwnProperty(c)) {
  1009. var d = c.indexOf("--") === 0, e = rb(c, b[c], d);
  1010. c === "float" && (c = "cssFloat"), d ? a3.setProperty(c, e) : a3[c] = e;
  1011. }
  1012. }
  1013. var tb = A3({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 });
  1014. function ub(a3, b) {
  1015. if (b) {
  1016. if (tb[a3] && (b.children != null || b.dangerouslySetInnerHTML != null)) throw Error(p3(137, a3));
  1017. if (b.dangerouslySetInnerHTML != null) {
  1018. if (b.children != null) throw Error(p3(60));
  1019. if (typeof b.dangerouslySetInnerHTML != "object" || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p3(61));
  1020. }
  1021. if (b.style != null && typeof b.style != "object") throw Error(p3(62));
  1022. }
  1023. }
  1024. function vb(a3, b) {
  1025. if (a3.indexOf("-") === -1) return typeof b.is == "string";
  1026. switch (a3) {
  1027. case "annotation-xml":
  1028. case "color-profile":
  1029. case "font-face":
  1030. case "font-face-src":
  1031. case "font-face-uri":
  1032. case "font-face-format":
  1033. case "font-face-name":
  1034. case "missing-glyph":
  1035. return !1;
  1036. default:
  1037. return !0;
  1038. }
  1039. }
  1040. var wb = null;
  1041. function xb(a3) {
  1042. return a3 = a3.target || a3.srcElement || window, a3.correspondingUseElement && (a3 = a3.correspondingUseElement), a3.nodeType === 3 ? a3.parentNode : a3;
  1043. }
  1044. var yb = null, zb = null, Ab = null;
  1045. function Bb(a3) {
  1046. if (a3 = Cb(a3)) {
  1047. if (typeof yb != "function") throw Error(p3(280));
  1048. var b = a3.stateNode;
  1049. b && (b = Db(b), yb(a3.stateNode, a3.type, b));
  1050. }
  1051. }
  1052. function Eb(a3) {
  1053. zb ? Ab ? Ab.push(a3) : Ab = [a3] : zb = a3;
  1054. }
  1055. function Fb() {
  1056. if (zb) {
  1057. var a3 = zb, b = Ab;
  1058. if (Ab = zb = null, Bb(a3), b) for (a3 = 0; a3 < b.length; a3++) Bb(b[a3]);
  1059. }
  1060. }
  1061. function Gb(a3, b) {
  1062. return a3(b);
  1063. }
  1064. function Hb() {
  1065. }
  1066. var Ib = !1;
  1067. function Jb(a3, b, c) {
  1068. if (Ib) return a3(b, c);
  1069. Ib = !0;
  1070. try {
  1071. return Gb(a3, b, c);
  1072. } finally {
  1073. Ib = !1, (zb !== null || Ab !== null) && (Hb(), Fb());
  1074. }
  1075. }
  1076. function Kb(a3, b) {
  1077. var c = a3.stateNode;
  1078. if (c === null) return null;
  1079. var d = Db(c);
  1080. if (d === null) return null;
  1081. c = d[b];
  1082. a: switch (b) {
  1083. case "onClick":
  1084. case "onClickCapture":
  1085. case "onDoubleClick":
  1086. case "onDoubleClickCapture":
  1087. case "onMouseDown":
  1088. case "onMouseDownCapture":
  1089. case "onMouseMove":
  1090. case "onMouseMoveCapture":
  1091. case "onMouseUp":
  1092. case "onMouseUpCapture":
  1093. case "onMouseEnter":
  1094. (d = !d.disabled) || (a3 = a3.type, d = !(a3 === "button" || a3 === "input" || a3 === "select" || a3 === "textarea")), a3 = !d;
  1095. break a;
  1096. default:
  1097. a3 = !1;
  1098. }
  1099. if (a3) return null;
  1100. if (c && typeof c != "function") throw Error(p3(231, b, typeof c));
  1101. return c;
  1102. }
  1103. var Lb = !1;
  1104. if (ia) try {
  1105. Mb = {}, Object.defineProperty(Mb, "passive", { get: function() {
  1106. Lb = !0;
  1107. } }), window.addEventListener("test", Mb, Mb), window.removeEventListener("test", Mb, Mb);
  1108. } catch {
  1109. Lb = !1;
  1110. }
  1111. var Mb;
  1112. function Nb(a3, b, c, d, e, f4, g2, h3, k) {
  1113. var l = Array.prototype.slice.call(arguments, 3);
  1114. try {
  1115. b.apply(c, l);
  1116. } catch (m3) {
  1117. this.onError(m3);
  1118. }
  1119. }
  1120. var Ob = !1, Pb = null, Qb = !1, Rb = null, Sb = { onError: function(a3) {
  1121. Ob = !0, Pb = a3;
  1122. } };
  1123. function Tb(a3, b, c, d, e, f4, g2, h3, k) {
  1124. Ob = !1, Pb = null, Nb.apply(Sb, arguments);
  1125. }
  1126. function Ub(a3, b, c, d, e, f4, g2, h3, k) {
  1127. if (Tb.apply(this, arguments), Ob) {
  1128. if (Ob) {
  1129. var l = Pb;
  1130. Ob = !1, Pb = null;
  1131. } else throw Error(p3(198));
  1132. Qb || (Qb = !0, Rb = l);
  1133. }
  1134. }
  1135. function Vb(a3) {
  1136. var b = a3, c = a3;
  1137. if (a3.alternate) for (; b.return; ) b = b.return;
  1138. else {
  1139. a3 = b;
  1140. do
  1141. b = a3, (b.flags & 4098) !== 0 && (c = b.return), a3 = b.return;
  1142. while (a3);
  1143. }
  1144. return b.tag === 3 ? c : null;
  1145. }
  1146. function Wb(a3) {
  1147. if (a3.tag === 13) {
  1148. var b = a3.memoizedState;
  1149. if (b === null && (a3 = a3.alternate, a3 !== null && (b = a3.memoizedState)), b !== null) return b.dehydrated;
  1150. }
  1151. return null;
  1152. }
  1153. function Xb(a3) {
  1154. if (Vb(a3) !== a3) throw Error(p3(188));
  1155. }
  1156. function Yb(a3) {
  1157. var b = a3.alternate;
  1158. if (!b) {
  1159. if (b = Vb(a3), b === null) throw Error(p3(188));
  1160. return b !== a3 ? null : a3;
  1161. }
  1162. for (var c = a3, d = b; ; ) {
  1163. var e = c.return;
  1164. if (e === null) break;
  1165. var f4 = e.alternate;
  1166. if (f4 === null) {
  1167. if (d = e.return, d !== null) {
  1168. c = d;
  1169. continue;
  1170. }
  1171. break;
  1172. }
  1173. if (e.child === f4.child) {
  1174. for (f4 = e.child; f4; ) {
  1175. if (f4 === c) return Xb(e), a3;
  1176. if (f4 === d) return Xb(e), b;
  1177. f4 = f4.sibling;
  1178. }
  1179. throw Error(p3(188));
  1180. }
  1181. if (c.return !== d.return) c = e, d = f4;
  1182. else {
  1183. for (var g2 = !1, h3 = e.child; h3; ) {
  1184. if (h3 === c) {
  1185. g2 = !0, c = e, d = f4;
  1186. break;
  1187. }
  1188. if (h3 === d) {
  1189. g2 = !0, d = e, c = f4;
  1190. break;
  1191. }
  1192. h3 = h3.sibling;
  1193. }
  1194. if (!g2) {
  1195. for (h3 = f4.child; h3; ) {
  1196. if (h3 === c) {
  1197. g2 = !0, c = f4, d = e;
  1198. break;
  1199. }
  1200. if (h3 === d) {
  1201. g2 = !0, d = f4, c = e;
  1202. break;
  1203. }
  1204. h3 = h3.sibling;
  1205. }
  1206. if (!g2) throw Error(p3(189));
  1207. }
  1208. }
  1209. if (c.alternate !== d) throw Error(p3(190));
  1210. }
  1211. if (c.tag !== 3) throw Error(p3(188));
  1212. return c.stateNode.current === c ? a3 : b;
  1213. }
  1214. function Zb(a3) {
  1215. return a3 = Yb(a3), a3 !== null ? $b(a3) : null;
  1216. }
  1217. function $b(a3) {
  1218. if (a3.tag === 5 || a3.tag === 6) return a3;
  1219. for (a3 = a3.child; a3 !== null; ) {
  1220. var b = $b(a3);
  1221. if (b !== null) return b;
  1222. a3 = a3.sibling;
  1223. }
  1224. return null;
  1225. }
  1226. var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B3 = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null;
  1227. function mc(a3) {
  1228. if (lc && typeof lc.onCommitFiberRoot == "function") try {
  1229. lc.onCommitFiberRoot(kc, a3, void 0, (a3.current.flags & 128) === 128);
  1230. } catch {
  1231. }
  1232. }
  1233. var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2;
  1234. function nc(a3) {
  1235. return a3 >>>= 0, a3 === 0 ? 32 : 31 - (pc(a3) / qc | 0) | 0;
  1236. }
  1237. var rc = 64, sc = 4194304;
  1238. function tc(a3) {
  1239. switch (a3 & -a3) {
  1240. case 1:
  1241. return 1;
  1242. case 2:
  1243. return 2;
  1244. case 4:
  1245. return 4;
  1246. case 8:
  1247. return 8;
  1248. case 16:
  1249. return 16;
  1250. case 32:
  1251. return 32;
  1252. case 64:
  1253. case 128:
  1254. case 256:
  1255. case 512:
  1256. case 1024:
  1257. case 2048:
  1258. case 4096:
  1259. case 8192:
  1260. case 16384:
  1261. case 32768:
  1262. case 65536:
  1263. case 131072:
  1264. case 262144:
  1265. case 524288:
  1266. case 1048576:
  1267. case 2097152:
  1268. return a3 & 4194240;
  1269. case 4194304:
  1270. case 8388608:
  1271. case 16777216:
  1272. case 33554432:
  1273. case 67108864:
  1274. return a3 & 130023424;
  1275. case 134217728:
  1276. return 134217728;
  1277. case 268435456:
  1278. return 268435456;
  1279. case 536870912:
  1280. return 536870912;
  1281. case 1073741824:
  1282. return 1073741824;
  1283. default:
  1284. return a3;
  1285. }
  1286. }
  1287. function uc(a3, b) {
  1288. var c = a3.pendingLanes;
  1289. if (c === 0) return 0;
  1290. var d = 0, e = a3.suspendedLanes, f4 = a3.pingedLanes, g2 = c & 268435455;
  1291. if (g2 !== 0) {
  1292. var h3 = g2 & ~e;
  1293. h3 !== 0 ? d = tc(h3) : (f4 &= g2, f4 !== 0 && (d = tc(f4)));
  1294. } else g2 = c & ~e, g2 !== 0 ? d = tc(g2) : f4 !== 0 && (d = tc(f4));
  1295. if (d === 0) return 0;
  1296. if (b !== 0 && b !== d && (b & e) === 0 && (e = d & -d, f4 = b & -b, e >= f4 || e === 16 && (f4 & 4194240) !== 0)) return b;
  1297. if ((d & 4) !== 0 && (d |= c & 16), b = a3.entangledLanes, b !== 0) for (a3 = a3.entanglements, b &= d; 0 < b; ) c = 31 - oc(b), e = 1 << c, d |= a3[c], b &= ~e;
  1298. return d;
  1299. }
  1300. function vc(a3, b) {
  1301. switch (a3) {
  1302. case 1:
  1303. case 2:
  1304. case 4:
  1305. return b + 250;
  1306. case 8:
  1307. case 16:
  1308. case 32:
  1309. case 64:
  1310. case 128:
  1311. case 256:
  1312. case 512:
  1313. case 1024:
  1314. case 2048:
  1315. case 4096:
  1316. case 8192:
  1317. case 16384:
  1318. case 32768:
  1319. case 65536:
  1320. case 131072:
  1321. case 262144:
  1322. case 524288:
  1323. case 1048576:
  1324. case 2097152:
  1325. return b + 5e3;
  1326. case 4194304:
  1327. case 8388608:
  1328. case 16777216:
  1329. case 33554432:
  1330. case 67108864:
  1331. return -1;
  1332. case 134217728:
  1333. case 268435456:
  1334. case 536870912:
  1335. case 1073741824:
  1336. return -1;
  1337. default:
  1338. return -1;
  1339. }
  1340. }
  1341. function wc(a3, b) {
  1342. for (var c = a3.suspendedLanes, d = a3.pingedLanes, e = a3.expirationTimes, f4 = a3.pendingLanes; 0 < f4; ) {
  1343. var g2 = 31 - oc(f4), h3 = 1 << g2, k = e[g2];
  1344. k === -1 ? ((h3 & c) === 0 || (h3 & d) !== 0) && (e[g2] = vc(h3, b)) : k <= b && (a3.expiredLanes |= h3), f4 &= ~h3;
  1345. }
  1346. }
  1347. function xc(a3) {
  1348. return a3 = a3.pendingLanes & -1073741825, a3 !== 0 ? a3 : a3 & 1073741824 ? 1073741824 : 0;
  1349. }
  1350. function yc() {
  1351. var a3 = rc;
  1352. return rc <<= 1, (rc & 4194240) === 0 && (rc = 64), a3;
  1353. }
  1354. function zc(a3) {
  1355. for (var b = [], c = 0; 31 > c; c++) b.push(a3);
  1356. return b;
  1357. }
  1358. function Ac(a3, b, c) {
  1359. a3.pendingLanes |= b, b !== 536870912 && (a3.suspendedLanes = 0, a3.pingedLanes = 0), a3 = a3.eventTimes, b = 31 - oc(b), a3[b] = c;
  1360. }
  1361. function Bc(a3, b) {
  1362. var c = a3.pendingLanes & ~b;
  1363. a3.pendingLanes = b, a3.suspendedLanes = 0, a3.pingedLanes = 0, a3.expiredLanes &= b, a3.mutableReadLanes &= b, a3.entangledLanes &= b, b = a3.entanglements;
  1364. var d = a3.eventTimes;
  1365. for (a3 = a3.expirationTimes; 0 < c; ) {
  1366. var e = 31 - oc(c), f4 = 1 << e;
  1367. b[e] = 0, d[e] = -1, a3[e] = -1, c &= ~f4;
  1368. }
  1369. }
  1370. function Cc(a3, b) {
  1371. var c = a3.entangledLanes |= b;
  1372. for (a3 = a3.entanglements; c; ) {
  1373. var d = 31 - oc(c), e = 1 << d;
  1374. e & b | a3[d] & b && (a3[d] |= b), c &= ~e;
  1375. }
  1376. }
  1377. var C3 = 0;
  1378. function Dc(a3) {
  1379. return a3 &= -a3, 1 < a3 ? 4 < a3 ? (a3 & 268435455) !== 0 ? 16 : 536870912 : 4 : 1;
  1380. }
  1381. var Ec, Fc, Gc, Hc, Ic, Jc = !1, Kc = [], Lc = null, Mc = null, Nc = null, Oc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Map(), Qc = [], Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
  1382. function Sc(a3, b) {
  1383. switch (a3) {
  1384. case "focusin":
  1385. case "focusout":
  1386. Lc = null;
  1387. break;
  1388. case "dragenter":
  1389. case "dragleave":
  1390. Mc = null;
  1391. break;
  1392. case "mouseover":
  1393. case "mouseout":
  1394. Nc = null;
  1395. break;
  1396. case "pointerover":
  1397. case "pointerout":
  1398. Oc.delete(b.pointerId);
  1399. break;
  1400. case "gotpointercapture":
  1401. case "lostpointercapture":
  1402. Pc.delete(b.pointerId);
  1403. }
  1404. }
  1405. function Tc(a3, b, c, d, e, f4) {
  1406. return a3 === null || a3.nativeEvent !== f4 ? (a3 = { blockedOn: b, domEventName: c, eventSystemFlags: d, nativeEvent: f4, targetContainers: [e] }, b !== null && (b = Cb(b), b !== null && Fc(b)), a3) : (a3.eventSystemFlags |= d, b = a3.targetContainers, e !== null && b.indexOf(e) === -1 && b.push(e), a3);
  1407. }
  1408. function Uc(a3, b, c, d, e) {
  1409. switch (b) {
  1410. case "focusin":
  1411. return Lc = Tc(Lc, a3, b, c, d, e), !0;
  1412. case "dragenter":
  1413. return Mc = Tc(Mc, a3, b, c, d, e), !0;
  1414. case "mouseover":
  1415. return Nc = Tc(Nc, a3, b, c, d, e), !0;
  1416. case "pointerover":
  1417. var f4 = e.pointerId;
  1418. return Oc.set(f4, Tc(Oc.get(f4) || null, a3, b, c, d, e)), !0;
  1419. case "gotpointercapture":
  1420. return f4 = e.pointerId, Pc.set(f4, Tc(Pc.get(f4) || null, a3, b, c, d, e)), !0;
  1421. }
  1422. return !1;
  1423. }
  1424. function Vc(a3) {
  1425. var b = Wc(a3.target);
  1426. if (b !== null) {
  1427. var c = Vb(b);
  1428. if (c !== null) {
  1429. if (b = c.tag, b === 13) {
  1430. if (b = Wb(c), b !== null) {
  1431. a3.blockedOn = b, Ic(a3.priority, function() {
  1432. Gc(c);
  1433. });
  1434. return;
  1435. }
  1436. } else if (b === 3 && c.stateNode.current.memoizedState.isDehydrated) {
  1437. a3.blockedOn = c.tag === 3 ? c.stateNode.containerInfo : null;
  1438. return;
  1439. }
  1440. }
  1441. }
  1442. a3.blockedOn = null;
  1443. }
  1444. function Xc(a3) {
  1445. if (a3.blockedOn !== null) return !1;
  1446. for (var b = a3.targetContainers; 0 < b.length; ) {
  1447. var c = Yc(a3.domEventName, a3.eventSystemFlags, b[0], a3.nativeEvent);
  1448. if (c === null) {
  1449. c = a3.nativeEvent;
  1450. var d = new c.constructor(c.type, c);
  1451. wb = d, c.target.dispatchEvent(d), wb = null;
  1452. } else return b = Cb(c), b !== null && Fc(b), a3.blockedOn = c, !1;
  1453. b.shift();
  1454. }
  1455. return !0;
  1456. }
  1457. function Zc(a3, b, c) {
  1458. Xc(a3) && c.delete(b);
  1459. }
  1460. function $c() {
  1461. Jc = !1, Lc !== null && Xc(Lc) && (Lc = null), Mc !== null && Xc(Mc) && (Mc = null), Nc !== null && Xc(Nc) && (Nc = null), Oc.forEach(Zc), Pc.forEach(Zc);
  1462. }
  1463. function ad(a3, b) {
  1464. a3.blockedOn === b && (a3.blockedOn = null, Jc || (Jc = !0, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c)));
  1465. }
  1466. function bd(a3) {
  1467. function b(b2) {
  1468. return ad(b2, a3);
  1469. }
  1470. if (0 < Kc.length) {
  1471. ad(Kc[0], a3);
  1472. for (var c = 1; c < Kc.length; c++) {
  1473. var d = Kc[c];
  1474. d.blockedOn === a3 && (d.blockedOn = null);
  1475. }
  1476. }
  1477. for (Lc !== null && ad(Lc, a3), Mc !== null && ad(Mc, a3), Nc !== null && ad(Nc, a3), Oc.forEach(b), Pc.forEach(b), c = 0; c < Qc.length; c++) d = Qc[c], d.blockedOn === a3 && (d.blockedOn = null);
  1478. for (; 0 < Qc.length && (c = Qc[0], c.blockedOn === null); ) Vc(c), c.blockedOn === null && Qc.shift();
  1479. }
  1480. var cd = ua.ReactCurrentBatchConfig, dd = !0;
  1481. function ed(a3, b, c, d) {
  1482. var e = C3, f4 = cd.transition;
  1483. cd.transition = null;
  1484. try {
  1485. C3 = 1, fd(a3, b, c, d);
  1486. } finally {
  1487. C3 = e, cd.transition = f4;
  1488. }
  1489. }
  1490. function gd(a3, b, c, d) {
  1491. var e = C3, f4 = cd.transition;
  1492. cd.transition = null;
  1493. try {
  1494. C3 = 4, fd(a3, b, c, d);
  1495. } finally {
  1496. C3 = e, cd.transition = f4;
  1497. }
  1498. }
  1499. function fd(a3, b, c, d) {
  1500. if (dd) {
  1501. var e = Yc(a3, b, c, d);
  1502. if (e === null) hd(a3, b, d, id, c), Sc(a3, d);
  1503. else if (Uc(e, a3, b, c, d)) d.stopPropagation();
  1504. else if (Sc(a3, d), b & 4 && -1 < Rc.indexOf(a3)) {
  1505. for (; e !== null; ) {
  1506. var f4 = Cb(e);
  1507. if (f4 !== null && Ec(f4), f4 = Yc(a3, b, c, d), f4 === null && hd(a3, b, d, id, c), f4 === e) break;
  1508. e = f4;
  1509. }
  1510. e !== null && d.stopPropagation();
  1511. } else hd(a3, b, d, null, c);
  1512. }
  1513. }
  1514. var id = null;
  1515. function Yc(a3, b, c, d) {
  1516. if (id = null, a3 = xb(d), a3 = Wc(a3), a3 !== null) if (b = Vb(a3), b === null) a3 = null;
  1517. else if (c = b.tag, c === 13) {
  1518. if (a3 = Wb(b), a3 !== null) return a3;
  1519. a3 = null;
  1520. } else if (c === 3) {
  1521. if (b.stateNode.current.memoizedState.isDehydrated) return b.tag === 3 ? b.stateNode.containerInfo : null;
  1522. a3 = null;
  1523. } else b !== a3 && (a3 = null);
  1524. return id = a3, null;
  1525. }
  1526. function jd(a3) {
  1527. switch (a3) {
  1528. case "cancel":
  1529. case "click":
  1530. case "close":
  1531. case "contextmenu":
  1532. case "copy":
  1533. case "cut":
  1534. case "auxclick":
  1535. case "dblclick":
  1536. case "dragend":
  1537. case "dragstart":
  1538. case "drop":
  1539. case "focusin":
  1540. case "focusout":
  1541. case "input":
  1542. case "invalid":
  1543. case "keydown":
  1544. case "keypress":
  1545. case "keyup":
  1546. case "mousedown":
  1547. case "mouseup":
  1548. case "paste":
  1549. case "pause":
  1550. case "play":
  1551. case "pointercancel":
  1552. case "pointerdown":
  1553. case "pointerup":
  1554. case "ratechange":
  1555. case "reset":
  1556. case "resize":
  1557. case "seeked":
  1558. case "submit":
  1559. case "touchcancel":
  1560. case "touchend":
  1561. case "touchstart":
  1562. case "volumechange":
  1563. case "change":
  1564. case "selectionchange":
  1565. case "textInput":
  1566. case "compositionstart":
  1567. case "compositionend":
  1568. case "compositionupdate":
  1569. case "beforeblur":
  1570. case "afterblur":
  1571. case "beforeinput":
  1572. case "blur":
  1573. case "fullscreenchange":
  1574. case "focus":
  1575. case "hashchange":
  1576. case "popstate":
  1577. case "select":
  1578. case "selectstart":
  1579. return 1;
  1580. case "drag":
  1581. case "dragenter":
  1582. case "dragexit":
  1583. case "dragleave":
  1584. case "dragover":
  1585. case "mousemove":
  1586. case "mouseout":
  1587. case "mouseover":
  1588. case "pointermove":
  1589. case "pointerout":
  1590. case "pointerover":
  1591. case "scroll":
  1592. case "toggle":
  1593. case "touchmove":
  1594. case "wheel":
  1595. case "mouseenter":
  1596. case "mouseleave":
  1597. case "pointerenter":
  1598. case "pointerleave":
  1599. return 4;
  1600. case "message":
  1601. switch (ec()) {
  1602. case fc:
  1603. return 1;
  1604. case gc:
  1605. return 4;
  1606. case hc:
  1607. case ic:
  1608. return 16;
  1609. case jc:
  1610. return 536870912;
  1611. default:
  1612. return 16;
  1613. }
  1614. default:
  1615. return 16;
  1616. }
  1617. }
  1618. var kd = null, ld = null, md = null;
  1619. function nd() {
  1620. if (md) return md;
  1621. var a3, b = ld, c = b.length, d, e = "value" in kd ? kd.value : kd.textContent, f4 = e.length;
  1622. for (a3 = 0; a3 < c && b[a3] === e[a3]; a3++) ;
  1623. var g2 = c - a3;
  1624. for (d = 1; d <= g2 && b[c - d] === e[f4 - d]; d++) ;
  1625. return md = e.slice(a3, 1 < d ? 1 - d : void 0);
  1626. }
  1627. function od(a3) {
  1628. var b = a3.keyCode;
  1629. return "charCode" in a3 ? (a3 = a3.charCode, a3 === 0 && b === 13 && (a3 = 13)) : a3 = b, a3 === 10 && (a3 = 13), 32 <= a3 || a3 === 13 ? a3 : 0;
  1630. }
  1631. function pd() {
  1632. return !0;
  1633. }
  1634. function qd() {
  1635. return !1;
  1636. }
  1637. function rd(a3) {
  1638. function b(b2, d, e, f4, g2) {
  1639. this._reactName = b2, this._targetInst = e, this.type = d, this.nativeEvent = f4, this.target = g2, this.currentTarget = null;
  1640. for (var c in a3) a3.hasOwnProperty(c) && (b2 = a3[c], this[c] = b2 ? b2(f4) : f4[c]);
  1641. return this.isDefaultPrevented = (f4.defaultPrevented != null ? f4.defaultPrevented : f4.returnValue === !1) ? pd : qd, this.isPropagationStopped = qd, this;
  1642. }
  1643. return A3(b.prototype, { preventDefault: function() {
  1644. this.defaultPrevented = !0;
  1645. var a4 = this.nativeEvent;
  1646. a4 && (a4.preventDefault ? a4.preventDefault() : typeof a4.returnValue != "unknown" && (a4.returnValue = !1), this.isDefaultPrevented = pd);
  1647. }, stopPropagation: function() {
  1648. var a4 = this.nativeEvent;
  1649. a4 && (a4.stopPropagation ? a4.stopPropagation() : typeof a4.cancelBubble != "unknown" && (a4.cancelBubble = !0), this.isPropagationStopped = pd);
  1650. }, persist: function() {
  1651. }, isPersistent: pd }), b;
  1652. }
  1653. var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a3) {
  1654. return a3.timeStamp || Date.now();
  1655. }, defaultPrevented: 0, isTrusted: 0 }, td = rd(sd), ud = A3({}, sd, { view: 0, detail: 0 }), vd = rd(ud), wd, xd, yd, Ad = A3({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function(a3) {
  1656. return a3.relatedTarget === void 0 ? a3.fromElement === a3.srcElement ? a3.toElement : a3.fromElement : a3.relatedTarget;
  1657. }, movementX: function(a3) {
  1658. return "movementX" in a3 ? a3.movementX : (a3 !== yd && (yd && a3.type === "mousemove" ? (wd = a3.screenX - yd.screenX, xd = a3.screenY - yd.screenY) : xd = wd = 0, yd = a3), wd);
  1659. }, movementY: function(a3) {
  1660. return "movementY" in a3 ? a3.movementY : xd;
  1661. } }), Bd = rd(Ad), Cd = A3({}, Ad, { dataTransfer: 0 }), Dd = rd(Cd), Ed = A3({}, ud, { relatedTarget: 0 }), Fd = rd(Ed), Gd = A3({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Hd = rd(Gd), Id = A3({}, sd, { clipboardData: function(a3) {
  1662. return "clipboardData" in a3 ? a3.clipboardData : window.clipboardData;
  1663. } }), Jd = rd(Id), Kd = A3({}, sd, { data: 0 }), Ld = rd(Kd), Md = {
  1664. Esc: "Escape",
  1665. Spacebar: " ",
  1666. Left: "ArrowLeft",
  1667. Up: "ArrowUp",
  1668. Right: "ArrowRight",
  1669. Down: "ArrowDown",
  1670. Del: "Delete",
  1671. Win: "OS",
  1672. Menu: "ContextMenu",
  1673. Apps: "ContextMenu",
  1674. Scroll: "ScrollLock",
  1675. MozPrintableKey: "Unidentified"
  1676. }, Nd = {
  1677. 8: "Backspace",
  1678. 9: "Tab",
  1679. 12: "Clear",
  1680. 13: "Enter",
  1681. 16: "Shift",
  1682. 17: "Control",
  1683. 18: "Alt",
  1684. 19: "Pause",
  1685. 20: "CapsLock",
  1686. 27: "Escape",
  1687. 32: " ",
  1688. 33: "PageUp",
  1689. 34: "PageDown",
  1690. 35: "End",
  1691. 36: "Home",
  1692. 37: "ArrowLeft",
  1693. 38: "ArrowUp",
  1694. 39: "ArrowRight",
  1695. 40: "ArrowDown",
  1696. 45: "Insert",
  1697. 46: "Delete",
  1698. 112: "F1",
  1699. 113: "F2",
  1700. 114: "F3",
  1701. 115: "F4",
  1702. 116: "F5",
  1703. 117: "F6",
  1704. 118: "F7",
  1705. 119: "F8",
  1706. 120: "F9",
  1707. 121: "F10",
  1708. 122: "F11",
  1709. 123: "F12",
  1710. 144: "NumLock",
  1711. 145: "ScrollLock",
  1712. 224: "Meta"
  1713. }, Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
  1714. function Pd(a3) {
  1715. var b = this.nativeEvent;
  1716. return b.getModifierState ? b.getModifierState(a3) : (a3 = Od[a3]) ? !!b[a3] : !1;
  1717. }
  1718. function zd() {
  1719. return Pd;
  1720. }
  1721. var Qd = A3({}, ud, { key: function(a3) {
  1722. if (a3.key) {
  1723. var b = Md[a3.key] || a3.key;
  1724. if (b !== "Unidentified") return b;
  1725. }
  1726. return a3.type === "keypress" ? (a3 = od(a3), a3 === 13 ? "Enter" : String.fromCharCode(a3)) : a3.type === "keydown" || a3.type === "keyup" ? Nd[a3.keyCode] || "Unidentified" : "";
  1727. }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a3) {
  1728. return a3.type === "keypress" ? od(a3) : 0;
  1729. }, keyCode: function(a3) {
  1730. return a3.type === "keydown" || a3.type === "keyup" ? a3.keyCode : 0;
  1731. }, which: function(a3) {
  1732. return a3.type === "keypress" ? od(a3) : a3.type === "keydown" || a3.type === "keyup" ? a3.keyCode : 0;
  1733. } }), Rd = rd(Qd), Sd = A3({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Td = rd(Sd), Ud = A3({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd }), Vd = rd(Ud), Wd = A3({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Xd = rd(Wd), Yd = A3({}, Ad, {
  1734. deltaX: function(a3) {
  1735. return "deltaX" in a3 ? a3.deltaX : "wheelDeltaX" in a3 ? -a3.wheelDeltaX : 0;
  1736. },
  1737. deltaY: function(a3) {
  1738. return "deltaY" in a3 ? a3.deltaY : "wheelDeltaY" in a3 ? -a3.wheelDeltaY : "wheelDelta" in a3 ? -a3.wheelDelta : 0;
  1739. },
  1740. deltaZ: 0,
  1741. deltaMode: 0
  1742. }), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && "CompositionEvent" in window, be = null;
  1743. ia && "documentMode" in document && (be = document.documentMode);
  1744. var ce = ia && "TextEvent" in window && !be, de = ia && (!ae || be && 8 < be && 11 >= be), ee = " ", fe = !1;
  1745. function ge(a3, b) {
  1746. switch (a3) {
  1747. case "keyup":
  1748. return $d.indexOf(b.keyCode) !== -1;
  1749. case "keydown":
  1750. return b.keyCode !== 229;
  1751. case "keypress":
  1752. case "mousedown":
  1753. case "focusout":
  1754. return !0;
  1755. default:
  1756. return !1;
  1757. }
  1758. }
  1759. function he(a3) {
  1760. return a3 = a3.detail, typeof a3 == "object" && "data" in a3 ? a3.data : null;
  1761. }
  1762. var ie = !1;
  1763. function je(a3, b) {
  1764. switch (a3) {
  1765. case "compositionend":
  1766. return he(b);
  1767. case "keypress":
  1768. return b.which !== 32 ? null : (fe = !0, ee);
  1769. case "textInput":
  1770. return a3 = b.data, a3 === ee && fe ? null : a3;
  1771. default:
  1772. return null;
  1773. }
  1774. }
  1775. function ke(a3, b) {
  1776. if (ie) return a3 === "compositionend" || !ae && ge(a3, b) ? (a3 = nd(), md = ld = kd = null, ie = !1, a3) : null;
  1777. switch (a3) {
  1778. case "paste":
  1779. return null;
  1780. case "keypress":
  1781. if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) {
  1782. if (b.char && 1 < b.char.length) return b.char;
  1783. if (b.which) return String.fromCharCode(b.which);
  1784. }
  1785. return null;
  1786. case "compositionend":
  1787. return de && b.locale !== "ko" ? null : b.data;
  1788. default:
  1789. return null;
  1790. }
  1791. }
  1792. var le = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 };
  1793. function me(a3) {
  1794. var b = a3 && a3.nodeName && a3.nodeName.toLowerCase();
  1795. return b === "input" ? !!le[a3.type] : b === "textarea";
  1796. }
  1797. function ne(a3, b, c, d) {
  1798. Eb(d), b = oe(b, "onChange"), 0 < b.length && (c = new td("onChange", "change", null, c, d), a3.push({ event: c, listeners: b }));
  1799. }
  1800. var pe = null, qe = null;
  1801. function re(a3) {
  1802. se(a3, 0);
  1803. }
  1804. function te(a3) {
  1805. var b = ue(a3);
  1806. if (Wa(b)) return a3;
  1807. }
  1808. function ve(a3, b) {
  1809. if (a3 === "change") return b;
  1810. }
  1811. var we = !1;
  1812. ia && (ia ? (ye = "oninput" in document, ye || (ze = document.createElement("div"), ze.setAttribute("oninput", "return;"), ye = typeof ze.oninput == "function"), xe = ye) : xe = !1, we = xe && (!document.documentMode || 9 < document.documentMode));
  1813. var xe, ye, ze;
  1814. function Ae() {
  1815. pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null);
  1816. }
  1817. function Be(a3) {
  1818. if (a3.propertyName === "value" && te(qe)) {
  1819. var b = [];
  1820. ne(b, qe, a3, xb(a3)), Jb(re, b);
  1821. }
  1822. }
  1823. function Ce(a3, b, c) {
  1824. a3 === "focusin" ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : a3 === "focusout" && Ae();
  1825. }
  1826. function De(a3) {
  1827. if (a3 === "selectionchange" || a3 === "keyup" || a3 === "keydown") return te(qe);
  1828. }
  1829. function Ee(a3, b) {
  1830. if (a3 === "click") return te(b);
  1831. }
  1832. function Fe(a3, b) {
  1833. if (a3 === "input" || a3 === "change") return te(b);
  1834. }
  1835. function Ge(a3, b) {
  1836. return a3 === b && (a3 !== 0 || 1 / a3 === 1 / b) || a3 !== a3 && b !== b;
  1837. }
  1838. var He = typeof Object.is == "function" ? Object.is : Ge;
  1839. function Ie(a3, b) {
  1840. if (He(a3, b)) return !0;
  1841. if (typeof a3 != "object" || a3 === null || typeof b != "object" || b === null) return !1;
  1842. var c = Object.keys(a3), d = Object.keys(b);
  1843. if (c.length !== d.length) return !1;
  1844. for (d = 0; d < c.length; d++) {
  1845. var e = c[d];
  1846. if (!ja.call(b, e) || !He(a3[e], b[e])) return !1;
  1847. }
  1848. return !0;
  1849. }
  1850. function Je(a3) {
  1851. for (; a3 && a3.firstChild; ) a3 = a3.firstChild;
  1852. return a3;
  1853. }
  1854. function Ke(a3, b) {
  1855. var c = Je(a3);
  1856. a3 = 0;
  1857. for (var d; c; ) {
  1858. if (c.nodeType === 3) {
  1859. if (d = a3 + c.textContent.length, a3 <= b && d >= b) return { node: c, offset: b - a3 };
  1860. a3 = d;
  1861. }
  1862. a: {
  1863. for (; c; ) {
  1864. if (c.nextSibling) {
  1865. c = c.nextSibling;
  1866. break a;
  1867. }
  1868. c = c.parentNode;
  1869. }
  1870. c = void 0;
  1871. }
  1872. c = Je(c);
  1873. }
  1874. }
  1875. function Le(a3, b) {
  1876. return a3 && b ? a3 === b ? !0 : a3 && a3.nodeType === 3 ? !1 : b && b.nodeType === 3 ? Le(a3, b.parentNode) : "contains" in a3 ? a3.contains(b) : a3.compareDocumentPosition ? !!(a3.compareDocumentPosition(b) & 16) : !1 : !1;
  1877. }
  1878. function Me() {
  1879. for (var a3 = window, b = Xa(); b instanceof a3.HTMLIFrameElement; ) {
  1880. try {
  1881. var c = typeof b.contentWindow.location.href == "string";
  1882. } catch {
  1883. c = !1;
  1884. }
  1885. if (c) a3 = b.contentWindow;
  1886. else break;
  1887. b = Xa(a3.document);
  1888. }
  1889. return b;
  1890. }
  1891. function Ne(a3) {
  1892. var b = a3 && a3.nodeName && a3.nodeName.toLowerCase();
  1893. return b && (b === "input" && (a3.type === "text" || a3.type === "search" || a3.type === "tel" || a3.type === "url" || a3.type === "password") || b === "textarea" || a3.contentEditable === "true");
  1894. }
  1895. function Oe(a3) {
  1896. var b = Me(), c = a3.focusedElem, d = a3.selectionRange;
  1897. if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) {
  1898. if (d !== null && Ne(c)) {
  1899. if (b = d.start, a3 = d.end, a3 === void 0 && (a3 = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a3, c.value.length);
  1900. else if (a3 = (b = c.ownerDocument || document) && b.defaultView || window, a3.getSelection) {
  1901. a3 = a3.getSelection();
  1902. var e = c.textContent.length, f4 = Math.min(d.start, e);
  1903. d = d.end === void 0 ? f4 : Math.min(d.end, e), !a3.extend && f4 > d && (e = d, d = f4, f4 = e), e = Ke(c, f4);
  1904. var g2 = Ke(
  1905. c,
  1906. d
  1907. );
  1908. e && g2 && (a3.rangeCount !== 1 || a3.anchorNode !== e.node || a3.anchorOffset !== e.offset || a3.focusNode !== g2.node || a3.focusOffset !== g2.offset) && (b = b.createRange(), b.setStart(e.node, e.offset), a3.removeAllRanges(), f4 > d ? (a3.addRange(b), a3.extend(g2.node, g2.offset)) : (b.setEnd(g2.node, g2.offset), a3.addRange(b)));
  1909. }
  1910. }
  1911. for (b = [], a3 = c; a3 = a3.parentNode; ) a3.nodeType === 1 && b.push({ element: a3, left: a3.scrollLeft, top: a3.scrollTop });
  1912. for (typeof c.focus == "function" && c.focus(), c = 0; c < b.length; c++) a3 = b[c], a3.element.scrollLeft = a3.left, a3.element.scrollTop = a3.top;
  1913. }
  1914. }
  1915. var Pe = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re = null, Se = null, Te = !1;
  1916. function Ue(a3, b, c) {
  1917. var d = c.window === c ? c.document : c.nodeType === 9 ? c : c.ownerDocument;
  1918. Te || Qe == null || Qe !== Xa(d) || (d = Qe, "selectionStart" in d && Ne(d) ? d = { start: d.selectionStart, end: d.selectionEnd } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = { anchorNode: d.anchorNode, anchorOffset: d.anchorOffset, focusNode: d.focusNode, focusOffset: d.focusOffset }), Se && Ie(Se, d) || (Se = d, d = oe(Re, "onSelect"), 0 < d.length && (b = new td("onSelect", "select", null, b, c), a3.push({ event: b, listeners: d }), b.target = Qe)));
  1919. }
  1920. function Ve(a3, b) {
  1921. var c = {};
  1922. return c[a3.toLowerCase()] = b.toLowerCase(), c["Webkit" + a3] = "webkit" + b, c["Moz" + a3] = "moz" + b, c;
  1923. }
  1924. var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }, Xe = {}, Ye = {};
  1925. ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition);
  1926. function Ze(a3) {
  1927. if (Xe[a3]) return Xe[a3];
  1928. if (!We[a3]) return a3;
  1929. var b = We[a3], c;
  1930. for (c in b) if (b.hasOwnProperty(c) && c in Ye) return Xe[a3] = b[c];
  1931. return a3;
  1932. }
  1933. var $e = Ze("animationend"), af = Ze("animationiteration"), bf = Ze("animationstart"), cf = Ze("transitionend"), df = /* @__PURE__ */ new Map(), ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
  1934. function ff(a3, b) {
  1935. df.set(a3, b), fa(b, [a3]);
  1936. }
  1937. for (gf = 0; gf < ef.length; gf++)
  1938. hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1), ff(jf, "on" + kf);
  1939. var hf, jf, kf, gf;
  1940. ff($e, "onAnimationEnd");
  1941. ff(af, "onAnimationIteration");
  1942. ff(bf, "onAnimationStart");
  1943. ff("dblclick", "onDoubleClick");
  1944. ff("focusin", "onFocus");
  1945. ff("focusout", "onBlur");
  1946. ff(cf, "onTransitionEnd");
  1947. ha("onMouseEnter", ["mouseout", "mouseover"]);
  1948. ha("onMouseLeave", ["mouseout", "mouseover"]);
  1949. ha("onPointerEnter", ["pointerout", "pointerover"]);
  1950. ha("onPointerLeave", ["pointerout", "pointerover"]);
  1951. fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
  1952. fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
  1953. fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
  1954. fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
  1955. fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
  1956. fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
  1957. var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));
  1958. function nf(a3, b, c) {
  1959. var d = a3.type || "unknown-event";
  1960. a3.currentTarget = c, Ub(d, b, void 0, a3), a3.currentTarget = null;
  1961. }
  1962. function se(a3, b) {
  1963. b = (b & 4) !== 0;
  1964. for (var c = 0; c < a3.length; c++) {
  1965. var d = a3[c], e = d.event;
  1966. d = d.listeners;
  1967. a: {
  1968. var f4 = void 0;
  1969. if (b) for (var g2 = d.length - 1; 0 <= g2; g2--) {
  1970. var h3 = d[g2], k = h3.instance, l = h3.currentTarget;
  1971. if (h3 = h3.listener, k !== f4 && e.isPropagationStopped()) break a;
  1972. nf(e, h3, l), f4 = k;
  1973. }
  1974. else for (g2 = 0; g2 < d.length; g2++) {
  1975. if (h3 = d[g2], k = h3.instance, l = h3.currentTarget, h3 = h3.listener, k !== f4 && e.isPropagationStopped()) break a;
  1976. nf(e, h3, l), f4 = k;
  1977. }
  1978. }
  1979. }
  1980. if (Qb) throw a3 = Rb, Qb = !1, Rb = null, a3;
  1981. }
  1982. function D(a3, b) {
  1983. var c = b[of];
  1984. c === void 0 && (c = b[of] = /* @__PURE__ */ new Set());
  1985. var d = a3 + "__bubble";
  1986. c.has(d) || (pf(b, a3, 2, !1), c.add(d));
  1987. }
  1988. function qf(a3, b, c) {
  1989. var d = 0;
  1990. b && (d |= 4), pf(c, a3, d, b);
  1991. }
  1992. var rf = "_reactListening" + Math.random().toString(36).slice(2);
  1993. function sf(a3) {
  1994. if (!a3[rf]) {
  1995. a3[rf] = !0, da.forEach(function(b2) {
  1996. b2 !== "selectionchange" && (mf.has(b2) || qf(b2, !1, a3), qf(b2, !0, a3));
  1997. });
  1998. var b = a3.nodeType === 9 ? a3 : a3.ownerDocument;
  1999. b === null || b[rf] || (b[rf] = !0, qf("selectionchange", !1, b));
  2000. }
  2001. }
  2002. function pf(a3, b, c, d) {
  2003. switch (jd(b)) {
  2004. case 1:
  2005. var e = ed;
  2006. break;
  2007. case 4:
  2008. e = gd;
  2009. break;
  2010. default:
  2011. e = fd;
  2012. }
  2013. c = e.bind(null, b, c, a3), e = void 0, !Lb || b !== "touchstart" && b !== "touchmove" && b !== "wheel" || (e = !0), d ? e !== void 0 ? a3.addEventListener(b, c, { capture: !0, passive: e }) : a3.addEventListener(b, c, !0) : e !== void 0 ? a3.addEventListener(b, c, { passive: e }) : a3.addEventListener(b, c, !1);
  2014. }
  2015. function hd(a3, b, c, d, e) {
  2016. var f4 = d;
  2017. if ((b & 1) === 0 && (b & 2) === 0 && d !== null) a: for (; ; ) {
  2018. if (d === null) return;
  2019. var g2 = d.tag;
  2020. if (g2 === 3 || g2 === 4) {
  2021. var h3 = d.stateNode.containerInfo;
  2022. if (h3 === e || h3.nodeType === 8 && h3.parentNode === e) break;
  2023. if (g2 === 4) for (g2 = d.return; g2 !== null; ) {
  2024. var k = g2.tag;
  2025. if ((k === 3 || k === 4) && (k = g2.stateNode.containerInfo, k === e || k.nodeType === 8 && k.parentNode === e)) return;
  2026. g2 = g2.return;
  2027. }
  2028. for (; h3 !== null; ) {
  2029. if (g2 = Wc(h3), g2 === null) return;
  2030. if (k = g2.tag, k === 5 || k === 6) {
  2031. d = f4 = g2;
  2032. continue a;
  2033. }
  2034. h3 = h3.parentNode;
  2035. }
  2036. }
  2037. d = d.return;
  2038. }
  2039. Jb(function() {
  2040. var d2 = f4, e2 = xb(c), g3 = [];
  2041. a: {
  2042. var h4 = df.get(a3);
  2043. if (h4 !== void 0) {
  2044. var k2 = td, n = a3;
  2045. switch (a3) {
  2046. case "keypress":
  2047. if (od(c) === 0) break a;
  2048. case "keydown":
  2049. case "keyup":
  2050. k2 = Rd;
  2051. break;
  2052. case "focusin":
  2053. n = "focus", k2 = Fd;
  2054. break;
  2055. case "focusout":
  2056. n = "blur", k2 = Fd;
  2057. break;
  2058. case "beforeblur":
  2059. case "afterblur":
  2060. k2 = Fd;
  2061. break;
  2062. case "click":
  2063. if (c.button === 2) break a;
  2064. case "auxclick":
  2065. case "dblclick":
  2066. case "mousedown":
  2067. case "mousemove":
  2068. case "mouseup":
  2069. case "mouseout":
  2070. case "mouseover":
  2071. case "contextmenu":
  2072. k2 = Bd;
  2073. break;
  2074. case "drag":
  2075. case "dragend":
  2076. case "dragenter":
  2077. case "dragexit":
  2078. case "dragleave":
  2079. case "dragover":
  2080. case "dragstart":
  2081. case "drop":
  2082. k2 = Dd;
  2083. break;
  2084. case "touchcancel":
  2085. case "touchend":
  2086. case "touchmove":
  2087. case "touchstart":
  2088. k2 = Vd;
  2089. break;
  2090. case $e:
  2091. case af:
  2092. case bf:
  2093. k2 = Hd;
  2094. break;
  2095. case cf:
  2096. k2 = Xd;
  2097. break;
  2098. case "scroll":
  2099. k2 = vd;
  2100. break;
  2101. case "wheel":
  2102. k2 = Zd;
  2103. break;
  2104. case "copy":
  2105. case "cut":
  2106. case "paste":
  2107. k2 = Jd;
  2108. break;
  2109. case "gotpointercapture":
  2110. case "lostpointercapture":
  2111. case "pointercancel":
  2112. case "pointerdown":
  2113. case "pointermove":
  2114. case "pointerout":
  2115. case "pointerover":
  2116. case "pointerup":
  2117. k2 = Td;
  2118. }
  2119. var t = (b & 4) !== 0, J = !t && a3 === "scroll", x = t ? h4 !== null ? h4 + "Capture" : null : h4;
  2120. t = [];
  2121. for (var w = d2, u2; w !== null; ) {
  2122. u2 = w;
  2123. var F = u2.stateNode;
  2124. if (u2.tag === 5 && F !== null && (u2 = F, x !== null && (F = Kb(w, x), F != null && t.push(tf(w, F, u2)))), J) break;
  2125. w = w.return;
  2126. }
  2127. 0 < t.length && (h4 = new k2(h4, n, null, c, e2), g3.push({ event: h4, listeners: t }));
  2128. }
  2129. }
  2130. if ((b & 7) === 0) {
  2131. a: {
  2132. if (h4 = a3 === "mouseover" || a3 === "pointerover", k2 = a3 === "mouseout" || a3 === "pointerout", h4 && c !== wb && (n = c.relatedTarget || c.fromElement) && (Wc(n) || n[uf])) break a;
  2133. if ((k2 || h4) && (h4 = e2.window === e2 ? e2 : (h4 = e2.ownerDocument) ? h4.defaultView || h4.parentWindow : window, k2 ? (n = c.relatedTarget || c.toElement, k2 = d2, n = n ? Wc(n) : null, n !== null && (J = Vb(n), n !== J || n.tag !== 5 && n.tag !== 6) && (n = null)) : (k2 = null, n = d2), k2 !== n)) {
  2134. if (t = Bd, F = "onMouseLeave", x = "onMouseEnter", w = "mouse", (a3 === "pointerout" || a3 === "pointerover") && (t = Td, F = "onPointerLeave", x = "onPointerEnter", w = "pointer"), J = k2 == null ? h4 : ue(k2), u2 = n == null ? h4 : ue(n), h4 = new t(F, w + "leave", k2, c, e2), h4.target = J, h4.relatedTarget = u2, F = null, Wc(e2) === d2 && (t = new t(x, w + "enter", n, c, e2), t.target = u2, t.relatedTarget = J, F = t), J = F, k2 && n) b: {
  2135. for (t = k2, x = n, w = 0, u2 = t; u2; u2 = vf(u2)) w++;
  2136. for (u2 = 0, F = x; F; F = vf(F)) u2++;
  2137. for (; 0 < w - u2; ) t = vf(t), w--;
  2138. for (; 0 < u2 - w; ) x = vf(x), u2--;
  2139. for (; w--; ) {
  2140. if (t === x || x !== null && t === x.alternate) break b;
  2141. t = vf(t), x = vf(x);
  2142. }
  2143. t = null;
  2144. }
  2145. else t = null;
  2146. k2 !== null && wf(g3, h4, k2, t, !1), n !== null && J !== null && wf(g3, J, n, t, !0);
  2147. }
  2148. }
  2149. a: {
  2150. if (h4 = d2 ? ue(d2) : window, k2 = h4.nodeName && h4.nodeName.toLowerCase(), k2 === "select" || k2 === "input" && h4.type === "file") var na = ve;
  2151. else if (me(h4)) if (we) na = Fe;
  2152. else {
  2153. na = De;
  2154. var xa = Ce;
  2155. }
  2156. else (k2 = h4.nodeName) && k2.toLowerCase() === "input" && (h4.type === "checkbox" || h4.type === "radio") && (na = Ee);
  2157. if (na && (na = na(a3, d2))) {
  2158. ne(g3, na, c, e2);
  2159. break a;
  2160. }
  2161. xa && xa(a3, h4, d2), a3 === "focusout" && (xa = h4._wrapperState) && xa.controlled && h4.type === "number" && cb(h4, "number", h4.value);
  2162. }
  2163. switch (xa = d2 ? ue(d2) : window, a3) {
  2164. case "focusin":
  2165. (me(xa) || xa.contentEditable === "true") && (Qe = xa, Re = d2, Se = null);
  2166. break;
  2167. case "focusout":
  2168. Se = Re = Qe = null;
  2169. break;
  2170. case "mousedown":
  2171. Te = !0;
  2172. break;
  2173. case "contextmenu":
  2174. case "mouseup":
  2175. case "dragend":
  2176. Te = !1, Ue(g3, c, e2);
  2177. break;
  2178. case "selectionchange":
  2179. if (Pe) break;
  2180. case "keydown":
  2181. case "keyup":
  2182. Ue(g3, c, e2);
  2183. }
  2184. var $a;
  2185. if (ae) b: {
  2186. switch (a3) {
  2187. case "compositionstart":
  2188. var ba = "onCompositionStart";
  2189. break b;
  2190. case "compositionend":
  2191. ba = "onCompositionEnd";
  2192. break b;
  2193. case "compositionupdate":
  2194. ba = "onCompositionUpdate";
  2195. break b;
  2196. }
  2197. ba = void 0;
  2198. }
  2199. else ie ? ge(a3, c) && (ba = "onCompositionEnd") : a3 === "keydown" && c.keyCode === 229 && (ba = "onCompositionStart");
  2200. ba && (de && c.locale !== "ko" && (ie || ba !== "onCompositionStart" ? ba === "onCompositionEnd" && ie && ($a = nd()) : (kd = e2, ld = "value" in kd ? kd.value : kd.textContent, ie = !0)), xa = oe(d2, ba), 0 < xa.length && (ba = new Ld(ba, a3, null, c, e2), g3.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he(c), $a !== null && (ba.data = $a)))), ($a = ce ? je(a3, c) : ke(a3, c)) && (d2 = oe(d2, "onBeforeInput"), 0 < d2.length && (e2 = new Ld("onBeforeInput", "beforeinput", null, c, e2), g3.push({ event: e2, listeners: d2 }), e2.data = $a));
  2201. }
  2202. se(g3, b);
  2203. });
  2204. }
  2205. function tf(a3, b, c) {
  2206. return { instance: a3, listener: b, currentTarget: c };
  2207. }
  2208. function oe(a3, b) {
  2209. for (var c = b + "Capture", d = []; a3 !== null; ) {
  2210. var e = a3, f4 = e.stateNode;
  2211. e.tag === 5 && f4 !== null && (e = f4, f4 = Kb(a3, c), f4 != null && d.unshift(tf(a3, f4, e)), f4 = Kb(a3, b), f4 != null && d.push(tf(a3, f4, e))), a3 = a3.return;
  2212. }
  2213. return d;
  2214. }
  2215. function vf(a3) {
  2216. if (a3 === null) return null;
  2217. do
  2218. a3 = a3.return;
  2219. while (a3 && a3.tag !== 5);
  2220. return a3 || null;
  2221. }
  2222. function wf(a3, b, c, d, e) {
  2223. for (var f4 = b._reactName, g2 = []; c !== null && c !== d; ) {
  2224. var h3 = c, k = h3.alternate, l = h3.stateNode;
  2225. if (k !== null && k === d) break;
  2226. h3.tag === 5 && l !== null && (h3 = l, e ? (k = Kb(c, f4), k != null && g2.unshift(tf(c, k, h3))) : e || (k = Kb(c, f4), k != null && g2.push(tf(c, k, h3)))), c = c.return;
  2227. }
  2228. g2.length !== 0 && a3.push({ event: b, listeners: g2 });
  2229. }
  2230. var xf = /\r\n?/g, yf = /\u0000|\uFFFD/g;
  2231. function zf(a3) {
  2232. return (typeof a3 == "string" ? a3 : "" + a3).replace(xf, `
  2233. `).replace(yf, "");
  2234. }
  2235. function Af(a3, b, c) {
  2236. if (b = zf(b), zf(a3) !== b && c) throw Error(p3(425));
  2237. }
  2238. function Bf() {
  2239. }
  2240. var Cf = null, Df = null;
  2241. function Ef(a3, b) {
  2242. return a3 === "textarea" || a3 === "noscript" || typeof b.children == "string" || typeof b.children == "number" || typeof b.dangerouslySetInnerHTML == "object" && b.dangerouslySetInnerHTML !== null && b.dangerouslySetInnerHTML.__html != null;
  2243. }
  2244. var Ff = typeof setTimeout == "function" ? setTimeout : void 0, Gf = typeof clearTimeout == "function" ? clearTimeout : void 0, Hf = typeof Promise == "function" ? Promise : void 0, Jf = typeof queueMicrotask == "function" ? queueMicrotask : typeof Hf < "u" ? function(a3) {
  2245. return Hf.resolve(null).then(a3).catch(If);
  2246. } : Ff;
  2247. function If(a3) {
  2248. setTimeout(function() {
  2249. throw a3;
  2250. });
  2251. }
  2252. function Kf(a3, b) {
  2253. var c = b, d = 0;
  2254. do {
  2255. var e = c.nextSibling;
  2256. if (a3.removeChild(c), e && e.nodeType === 8) if (c = e.data, c === "/$") {
  2257. if (d === 0) {
  2258. a3.removeChild(e), bd(b);
  2259. return;
  2260. }
  2261. d--;
  2262. } else c !== "$" && c !== "$?" && c !== "$!" || d++;
  2263. c = e;
  2264. } while (c);
  2265. bd(b);
  2266. }
  2267. function Lf(a3) {
  2268. for (; a3 != null; a3 = a3.nextSibling) {
  2269. var b = a3.nodeType;
  2270. if (b === 1 || b === 3) break;
  2271. if (b === 8) {
  2272. if (b = a3.data, b === "$" || b === "$!" || b === "$?") break;
  2273. if (b === "/$") return null;
  2274. }
  2275. }
  2276. return a3;
  2277. }
  2278. function Mf(a3) {
  2279. a3 = a3.previousSibling;
  2280. for (var b = 0; a3; ) {
  2281. if (a3.nodeType === 8) {
  2282. var c = a3.data;
  2283. if (c === "$" || c === "$!" || c === "$?") {
  2284. if (b === 0) return a3;
  2285. b--;
  2286. } else c === "/$" && b++;
  2287. }
  2288. a3 = a3.previousSibling;
  2289. }
  2290. return null;
  2291. }
  2292. var Nf = Math.random().toString(36).slice(2), Of = "__reactFiber$" + Nf, Pf = "__reactProps$" + Nf, uf = "__reactContainer$" + Nf, of = "__reactEvents$" + Nf, Qf = "__reactListeners$" + Nf, Rf = "__reactHandles$" + Nf;
  2293. function Wc(a3) {
  2294. var b = a3[Of];
  2295. if (b) return b;
  2296. for (var c = a3.parentNode; c; ) {
  2297. if (b = c[uf] || c[Of]) {
  2298. if (c = b.alternate, b.child !== null || c !== null && c.child !== null) for (a3 = Mf(a3); a3 !== null; ) {
  2299. if (c = a3[Of]) return c;
  2300. a3 = Mf(a3);
  2301. }
  2302. return b;
  2303. }
  2304. a3 = c, c = a3.parentNode;
  2305. }
  2306. return null;
  2307. }
  2308. function Cb(a3) {
  2309. return a3 = a3[Of] || a3[uf], !a3 || a3.tag !== 5 && a3.tag !== 6 && a3.tag !== 13 && a3.tag !== 3 ? null : a3;
  2310. }
  2311. function ue(a3) {
  2312. if (a3.tag === 5 || a3.tag === 6) return a3.stateNode;
  2313. throw Error(p3(33));
  2314. }
  2315. function Db(a3) {
  2316. return a3[Pf] || null;
  2317. }
  2318. var Sf = [], Tf = -1;
  2319. function Uf(a3) {
  2320. return { current: a3 };
  2321. }
  2322. function E(a3) {
  2323. 0 > Tf || (a3.current = Sf[Tf], Sf[Tf] = null, Tf--);
  2324. }
  2325. function G(a3, b) {
  2326. Tf++, Sf[Tf] = a3.current, a3.current = b;
  2327. }
  2328. var Vf = {}, H = Uf(Vf), Wf = Uf(!1), Xf = Vf;
  2329. function Yf(a3, b) {
  2330. var c = a3.type.contextTypes;
  2331. if (!c) return Vf;
  2332. var d = a3.stateNode;
  2333. if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;
  2334. var e = {}, f4;
  2335. for (f4 in c) e[f4] = b[f4];
  2336. return d && (a3 = a3.stateNode, a3.__reactInternalMemoizedUnmaskedChildContext = b, a3.__reactInternalMemoizedMaskedChildContext = e), e;
  2337. }
  2338. function Zf(a3) {
  2339. return a3 = a3.childContextTypes, a3 != null;
  2340. }
  2341. function $f() {
  2342. E(Wf), E(H);
  2343. }
  2344. function ag(a3, b, c) {
  2345. if (H.current !== Vf) throw Error(p3(168));
  2346. G(H, b), G(Wf, c);
  2347. }
  2348. function bg(a3, b, c) {
  2349. var d = a3.stateNode;
  2350. if (b = b.childContextTypes, typeof d.getChildContext != "function") return c;
  2351. d = d.getChildContext();
  2352. for (var e in d) if (!(e in b)) throw Error(p3(108, Ra(a3) || "Unknown", e));
  2353. return A3({}, c, d);
  2354. }
  2355. function cg(a3) {
  2356. return a3 = (a3 = a3.stateNode) && a3.__reactInternalMemoizedMergedChildContext || Vf, Xf = H.current, G(H, a3), G(Wf, Wf.current), !0;
  2357. }
  2358. function dg(a3, b, c) {
  2359. var d = a3.stateNode;
  2360. if (!d) throw Error(p3(169));
  2361. c ? (a3 = bg(a3, b, Xf), d.__reactInternalMemoizedMergedChildContext = a3, E(Wf), E(H), G(H, a3)) : E(Wf), G(Wf, c);
  2362. }
  2363. var eg = null, fg = !1, gg = !1;
  2364. function hg(a3) {
  2365. eg === null ? eg = [a3] : eg.push(a3);
  2366. }
  2367. function ig(a3) {
  2368. fg = !0, hg(a3);
  2369. }
  2370. function jg() {
  2371. if (!gg && eg !== null) {
  2372. gg = !0;
  2373. var a3 = 0, b = C3;
  2374. try {
  2375. var c = eg;
  2376. for (C3 = 1; a3 < c.length; a3++) {
  2377. var d = c[a3];
  2378. do
  2379. d = d(!0);
  2380. while (d !== null);
  2381. }
  2382. eg = null, fg = !1;
  2383. } catch (e) {
  2384. throw eg !== null && (eg = eg.slice(a3 + 1)), ac(fc, jg), e;
  2385. } finally {
  2386. C3 = b, gg = !1;
  2387. }
  2388. }
  2389. return null;
  2390. }
  2391. var kg = [], lg = 0, mg = null, ng = 0, og = [], pg = 0, qg = null, rg = 1, sg = "";
  2392. function tg(a3, b) {
  2393. kg[lg++] = ng, kg[lg++] = mg, mg = a3, ng = b;
  2394. }
  2395. function ug(a3, b, c) {
  2396. og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, qg = a3;
  2397. var d = rg;
  2398. a3 = sg;
  2399. var e = 32 - oc(d) - 1;
  2400. d &= ~(1 << e), c += 1;
  2401. var f4 = 32 - oc(b) + e;
  2402. if (30 < f4) {
  2403. var g2 = e - e % 5;
  2404. f4 = (d & (1 << g2) - 1).toString(32), d >>= g2, e -= g2, rg = 1 << 32 - oc(b) + e | c << e | d, sg = f4 + a3;
  2405. } else rg = 1 << f4 | c << e | d, sg = a3;
  2406. }
  2407. function vg(a3) {
  2408. a3.return !== null && (tg(a3, 1), ug(a3, 1, 0));
  2409. }
  2410. function wg(a3) {
  2411. for (; a3 === mg; ) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null;
  2412. for (; a3 === qg; ) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null;
  2413. }
  2414. var xg = null, yg = null, I = !1, zg = null;
  2415. function Ag(a3, b) {
  2416. var c = Bg(5, null, null, 0);
  2417. c.elementType = "DELETED", c.stateNode = b, c.return = a3, b = a3.deletions, b === null ? (a3.deletions = [c], a3.flags |= 16) : b.push(c);
  2418. }
  2419. function Cg(a3, b) {
  2420. switch (a3.tag) {
  2421. case 5:
  2422. var c = a3.type;
  2423. return b = b.nodeType !== 1 || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b, b !== null ? (a3.stateNode = b, xg = a3, yg = Lf(b.firstChild), !0) : !1;
  2424. case 6:
  2425. return b = a3.pendingProps === "" || b.nodeType !== 3 ? null : b, b !== null ? (a3.stateNode = b, xg = a3, yg = null, !0) : !1;
  2426. case 13:
  2427. return b = b.nodeType !== 8 ? null : b, b !== null ? (c = qg !== null ? { id: rg, overflow: sg } : null, a3.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 }, c = Bg(18, null, null, 0), c.stateNode = b, c.return = a3, a3.child = c, xg = a3, yg = null, !0) : !1;
  2428. default:
  2429. return !1;
  2430. }
  2431. }
  2432. function Dg(a3) {
  2433. return (a3.mode & 1) !== 0 && (a3.flags & 128) === 0;
  2434. }
  2435. function Eg(a3) {
  2436. if (I) {
  2437. var b = yg;
  2438. if (b) {
  2439. var c = b;
  2440. if (!Cg(a3, b)) {
  2441. if (Dg(a3)) throw Error(p3(418));
  2442. b = Lf(c.nextSibling);
  2443. var d = xg;
  2444. b && Cg(a3, b) ? Ag(d, c) : (a3.flags = a3.flags & -4097 | 2, I = !1, xg = a3);
  2445. }
  2446. } else {
  2447. if (Dg(a3)) throw Error(p3(418));
  2448. a3.flags = a3.flags & -4097 | 2, I = !1, xg = a3;
  2449. }
  2450. }
  2451. }
  2452. function Fg(a3) {
  2453. for (a3 = a3.return; a3 !== null && a3.tag !== 5 && a3.tag !== 3 && a3.tag !== 13; ) a3 = a3.return;
  2454. xg = a3;
  2455. }
  2456. function Gg(a3) {
  2457. if (a3 !== xg) return !1;
  2458. if (!I) return Fg(a3), I = !0, !1;
  2459. var b;
  2460. if ((b = a3.tag !== 3) && !(b = a3.tag !== 5) && (b = a3.type, b = b !== "head" && b !== "body" && !Ef(a3.type, a3.memoizedProps)), b && (b = yg)) {
  2461. if (Dg(a3)) throw Hg(), Error(p3(418));
  2462. for (; b; ) Ag(a3, b), b = Lf(b.nextSibling);
  2463. }
  2464. if (Fg(a3), a3.tag === 13) {
  2465. if (a3 = a3.memoizedState, a3 = a3 !== null ? a3.dehydrated : null, !a3) throw Error(p3(317));
  2466. a: {
  2467. for (a3 = a3.nextSibling, b = 0; a3; ) {
  2468. if (a3.nodeType === 8) {
  2469. var c = a3.data;
  2470. if (c === "/$") {
  2471. if (b === 0) {
  2472. yg = Lf(a3.nextSibling);
  2473. break a;
  2474. }
  2475. b--;
  2476. } else c !== "$" && c !== "$!" && c !== "$?" || b++;
  2477. }
  2478. a3 = a3.nextSibling;
  2479. }
  2480. yg = null;
  2481. }
  2482. } else yg = xg ? Lf(a3.stateNode.nextSibling) : null;
  2483. return !0;
  2484. }
  2485. function Hg() {
  2486. for (var a3 = yg; a3; ) a3 = Lf(a3.nextSibling);
  2487. }
  2488. function Ig() {
  2489. yg = xg = null, I = !1;
  2490. }
  2491. function Jg(a3) {
  2492. zg === null ? zg = [a3] : zg.push(a3);
  2493. }
  2494. var Kg = ua.ReactCurrentBatchConfig;
  2495. function Lg(a3, b, c) {
  2496. if (a3 = c.ref, a3 !== null && typeof a3 != "function" && typeof a3 != "object") {
  2497. if (c._owner) {
  2498. if (c = c._owner, c) {
  2499. if (c.tag !== 1) throw Error(p3(309));
  2500. var d = c.stateNode;
  2501. }
  2502. if (!d) throw Error(p3(147, a3));
  2503. var e = d, f4 = "" + a3;
  2504. return b !== null && b.ref !== null && typeof b.ref == "function" && b.ref._stringRef === f4 ? b.ref : (b = function(a4) {
  2505. var b2 = e.refs;
  2506. a4 === null ? delete b2[f4] : b2[f4] = a4;
  2507. }, b._stringRef = f4, b);
  2508. }
  2509. if (typeof a3 != "string") throw Error(p3(284));
  2510. if (!c._owner) throw Error(p3(290, a3));
  2511. }
  2512. return a3;
  2513. }
  2514. function Mg(a3, b) {
  2515. throw a3 = Object.prototype.toString.call(b), Error(p3(31, a3 === "[object Object]" ? "object with keys {" + Object.keys(b).join(", ") + "}" : a3));
  2516. }
  2517. function Ng(a3) {
  2518. var b = a3._init;
  2519. return b(a3._payload);
  2520. }
  2521. function Og(a3) {
  2522. function b(b2, c2) {
  2523. if (a3) {
  2524. var d2 = b2.deletions;
  2525. d2 === null ? (b2.deletions = [c2], b2.flags |= 16) : d2.push(c2);
  2526. }
  2527. }
  2528. function c(c2, d2) {
  2529. if (!a3) return null;
  2530. for (; d2 !== null; ) b(c2, d2), d2 = d2.sibling;
  2531. return null;
  2532. }
  2533. function d(a4, b2) {
  2534. for (a4 = /* @__PURE__ */ new Map(); b2 !== null; ) b2.key !== null ? a4.set(b2.key, b2) : a4.set(b2.index, b2), b2 = b2.sibling;
  2535. return a4;
  2536. }
  2537. function e(a4, b2) {
  2538. return a4 = Pg(a4, b2), a4.index = 0, a4.sibling = null, a4;
  2539. }
  2540. function f4(b2, c2, d2) {
  2541. return b2.index = d2, a3 ? (d2 = b2.alternate, d2 !== null ? (d2 = d2.index, d2 < c2 ? (b2.flags |= 2, c2) : d2) : (b2.flags |= 2, c2)) : (b2.flags |= 1048576, c2);
  2542. }
  2543. function g2(b2) {
  2544. return a3 && b2.alternate === null && (b2.flags |= 2), b2;
  2545. }
  2546. function h3(a4, b2, c2, d2) {
  2547. return b2 === null || b2.tag !== 6 ? (b2 = Qg(c2, a4.mode, d2), b2.return = a4, b2) : (b2 = e(b2, c2), b2.return = a4, b2);
  2548. }
  2549. function k(a4, b2, c2, d2) {
  2550. var f5 = c2.type;
  2551. return f5 === ya ? m3(a4, b2, c2.props.children, d2, c2.key) : b2 !== null && (b2.elementType === f5 || typeof f5 == "object" && f5 !== null && f5.$$typeof === Ha && Ng(f5) === b2.type) ? (d2 = e(b2, c2.props), d2.ref = Lg(a4, b2, c2), d2.return = a4, d2) : (d2 = Rg(c2.type, c2.key, c2.props, null, a4.mode, d2), d2.ref = Lg(a4, b2, c2), d2.return = a4, d2);
  2552. }
  2553. function l(a4, b2, c2, d2) {
  2554. return b2 === null || b2.tag !== 4 || b2.stateNode.containerInfo !== c2.containerInfo || b2.stateNode.implementation !== c2.implementation ? (b2 = Sg(c2, a4.mode, d2), b2.return = a4, b2) : (b2 = e(b2, c2.children || []), b2.return = a4, b2);
  2555. }
  2556. function m3(a4, b2, c2, d2, f5) {
  2557. return b2 === null || b2.tag !== 7 ? (b2 = Tg(c2, a4.mode, d2, f5), b2.return = a4, b2) : (b2 = e(b2, c2), b2.return = a4, b2);
  2558. }
  2559. function q(a4, b2, c2) {
  2560. if (typeof b2 == "string" && b2 !== "" || typeof b2 == "number") return b2 = Qg("" + b2, a4.mode, c2), b2.return = a4, b2;
  2561. if (typeof b2 == "object" && b2 !== null) {
  2562. switch (b2.$$typeof) {
  2563. case va:
  2564. return c2 = Rg(b2.type, b2.key, b2.props, null, a4.mode, c2), c2.ref = Lg(a4, null, b2), c2.return = a4, c2;
  2565. case wa:
  2566. return b2 = Sg(b2, a4.mode, c2), b2.return = a4, b2;
  2567. case Ha:
  2568. var d2 = b2._init;
  2569. return q(a4, d2(b2._payload), c2);
  2570. }
  2571. if (eb(b2) || Ka(b2)) return b2 = Tg(b2, a4.mode, c2, null), b2.return = a4, b2;
  2572. Mg(a4, b2);
  2573. }
  2574. return null;
  2575. }
  2576. function r2(a4, b2, c2, d2) {
  2577. var e2 = b2 !== null ? b2.key : null;
  2578. if (typeof c2 == "string" && c2 !== "" || typeof c2 == "number") return e2 !== null ? null : h3(a4, b2, "" + c2, d2);
  2579. if (typeof c2 == "object" && c2 !== null) {
  2580. switch (c2.$$typeof) {
  2581. case va:
  2582. return c2.key === e2 ? k(a4, b2, c2, d2) : null;
  2583. case wa:
  2584. return c2.key === e2 ? l(a4, b2, c2, d2) : null;
  2585. case Ha:
  2586. return e2 = c2._init, r2(
  2587. a4,
  2588. b2,
  2589. e2(c2._payload),
  2590. d2
  2591. );
  2592. }
  2593. if (eb(c2) || Ka(c2)) return e2 !== null ? null : m3(a4, b2, c2, d2, null);
  2594. Mg(a4, c2);
  2595. }
  2596. return null;
  2597. }
  2598. function y(a4, b2, c2, d2, e2) {
  2599. if (typeof d2 == "string" && d2 !== "" || typeof d2 == "number") return a4 = a4.get(c2) || null, h3(b2, a4, "" + d2, e2);
  2600. if (typeof d2 == "object" && d2 !== null) {
  2601. switch (d2.$$typeof) {
  2602. case va:
  2603. return a4 = a4.get(d2.key === null ? c2 : d2.key) || null, k(b2, a4, d2, e2);
  2604. case wa:
  2605. return a4 = a4.get(d2.key === null ? c2 : d2.key) || null, l(b2, a4, d2, e2);
  2606. case Ha:
  2607. var f5 = d2._init;
  2608. return y(a4, b2, c2, f5(d2._payload), e2);
  2609. }
  2610. if (eb(d2) || Ka(d2)) return a4 = a4.get(c2) || null, m3(b2, a4, d2, e2, null);
  2611. Mg(b2, d2);
  2612. }
  2613. return null;
  2614. }
  2615. function n(e2, g3, h4, k2) {
  2616. for (var l2 = null, m4 = null, u2 = g3, w = g3 = 0, x = null; u2 !== null && w < h4.length; w++) {
  2617. u2.index > w ? (x = u2, u2 = null) : x = u2.sibling;
  2618. var n2 = r2(e2, u2, h4[w], k2);
  2619. if (n2 === null) {
  2620. u2 === null && (u2 = x);
  2621. break;
  2622. }
  2623. a3 && u2 && n2.alternate === null && b(e2, u2), g3 = f4(n2, g3, w), m4 === null ? l2 = n2 : m4.sibling = n2, m4 = n2, u2 = x;
  2624. }
  2625. if (w === h4.length) return c(e2, u2), I && tg(e2, w), l2;
  2626. if (u2 === null) {
  2627. for (; w < h4.length; w++) u2 = q(e2, h4[w], k2), u2 !== null && (g3 = f4(u2, g3, w), m4 === null ? l2 = u2 : m4.sibling = u2, m4 = u2);
  2628. return I && tg(e2, w), l2;
  2629. }
  2630. for (u2 = d(e2, u2); w < h4.length; w++) x = y(u2, e2, w, h4[w], k2), x !== null && (a3 && x.alternate !== null && u2.delete(x.key === null ? w : x.key), g3 = f4(x, g3, w), m4 === null ? l2 = x : m4.sibling = x, m4 = x);
  2631. return a3 && u2.forEach(function(a4) {
  2632. return b(e2, a4);
  2633. }), I && tg(e2, w), l2;
  2634. }
  2635. function t(e2, g3, h4, k2) {
  2636. var l2 = Ka(h4);
  2637. if (typeof l2 != "function") throw Error(p3(150));
  2638. if (h4 = l2.call(h4), h4 == null) throw Error(p3(151));
  2639. for (var u2 = l2 = null, m4 = g3, w = g3 = 0, x = null, n2 = h4.next(); m4 !== null && !n2.done; w++, n2 = h4.next()) {
  2640. m4.index > w ? (x = m4, m4 = null) : x = m4.sibling;
  2641. var t2 = r2(e2, m4, n2.value, k2);
  2642. if (t2 === null) {
  2643. m4 === null && (m4 = x);
  2644. break;
  2645. }
  2646. a3 && m4 && t2.alternate === null && b(e2, m4), g3 = f4(t2, g3, w), u2 === null ? l2 = t2 : u2.sibling = t2, u2 = t2, m4 = x;
  2647. }
  2648. if (n2.done) return c(
  2649. e2,
  2650. m4
  2651. ), I && tg(e2, w), l2;
  2652. if (m4 === null) {
  2653. for (; !n2.done; w++, n2 = h4.next()) n2 = q(e2, n2.value, k2), n2 !== null && (g3 = f4(n2, g3, w), u2 === null ? l2 = n2 : u2.sibling = n2, u2 = n2);
  2654. return I && tg(e2, w), l2;
  2655. }
  2656. for (m4 = d(e2, m4); !n2.done; w++, n2 = h4.next()) n2 = y(m4, e2, w, n2.value, k2), n2 !== null && (a3 && n2.alternate !== null && m4.delete(n2.key === null ? w : n2.key), g3 = f4(n2, g3, w), u2 === null ? l2 = n2 : u2.sibling = n2, u2 = n2);
  2657. return a3 && m4.forEach(function(a4) {
  2658. return b(e2, a4);
  2659. }), I && tg(e2, w), l2;
  2660. }
  2661. function J(a4, d2, f5, h4) {
  2662. if (typeof f5 == "object" && f5 !== null && f5.type === ya && f5.key === null && (f5 = f5.props.children), typeof f5 == "object" && f5 !== null) {
  2663. switch (f5.$$typeof) {
  2664. case va:
  2665. a: {
  2666. for (var k2 = f5.key, l2 = d2; l2 !== null; ) {
  2667. if (l2.key === k2) {
  2668. if (k2 = f5.type, k2 === ya) {
  2669. if (l2.tag === 7) {
  2670. c(a4, l2.sibling), d2 = e(l2, f5.props.children), d2.return = a4, a4 = d2;
  2671. break a;
  2672. }
  2673. } else if (l2.elementType === k2 || typeof k2 == "object" && k2 !== null && k2.$$typeof === Ha && Ng(k2) === l2.type) {
  2674. c(a4, l2.sibling), d2 = e(l2, f5.props), d2.ref = Lg(a4, l2, f5), d2.return = a4, a4 = d2;
  2675. break a;
  2676. }
  2677. c(a4, l2);
  2678. break;
  2679. } else b(a4, l2);
  2680. l2 = l2.sibling;
  2681. }
  2682. f5.type === ya ? (d2 = Tg(f5.props.children, a4.mode, h4, f5.key), d2.return = a4, a4 = d2) : (h4 = Rg(f5.type, f5.key, f5.props, null, a4.mode, h4), h4.ref = Lg(a4, d2, f5), h4.return = a4, a4 = h4);
  2683. }
  2684. return g2(a4);
  2685. case wa:
  2686. a: {
  2687. for (l2 = f5.key; d2 !== null; ) {
  2688. if (d2.key === l2) if (d2.tag === 4 && d2.stateNode.containerInfo === f5.containerInfo && d2.stateNode.implementation === f5.implementation) {
  2689. c(a4, d2.sibling), d2 = e(d2, f5.children || []), d2.return = a4, a4 = d2;
  2690. break a;
  2691. } else {
  2692. c(a4, d2);
  2693. break;
  2694. }
  2695. else b(a4, d2);
  2696. d2 = d2.sibling;
  2697. }
  2698. d2 = Sg(f5, a4.mode, h4), d2.return = a4, a4 = d2;
  2699. }
  2700. return g2(a4);
  2701. case Ha:
  2702. return l2 = f5._init, J(a4, d2, l2(f5._payload), h4);
  2703. }
  2704. if (eb(f5)) return n(a4, d2, f5, h4);
  2705. if (Ka(f5)) return t(a4, d2, f5, h4);
  2706. Mg(a4, f5);
  2707. }
  2708. return typeof f5 == "string" && f5 !== "" || typeof f5 == "number" ? (f5 = "" + f5, d2 !== null && d2.tag === 6 ? (c(a4, d2.sibling), d2 = e(d2, f5), d2.return = a4, a4 = d2) : (c(a4, d2), d2 = Qg(f5, a4.mode, h4), d2.return = a4, a4 = d2), g2(a4)) : c(a4, d2);
  2709. }
  2710. return J;
  2711. }
  2712. var Ug = Og(!0), Vg = Og(!1), Wg = Uf(null), Xg = null, Yg = null, Zg = null;
  2713. function $g() {
  2714. Zg = Yg = Xg = null;
  2715. }
  2716. function ah(a3) {
  2717. var b = Wg.current;
  2718. E(Wg), a3._currentValue = b;
  2719. }
  2720. function bh(a3, b, c) {
  2721. for (; a3 !== null; ) {
  2722. var d = a3.alternate;
  2723. if ((a3.childLanes & b) !== b ? (a3.childLanes |= b, d !== null && (d.childLanes |= b)) : d !== null && (d.childLanes & b) !== b && (d.childLanes |= b), a3 === c) break;
  2724. a3 = a3.return;
  2725. }
  2726. }
  2727. function ch(a3, b) {
  2728. Xg = a3, Zg = Yg = null, a3 = a3.dependencies, a3 !== null && a3.firstContext !== null && ((a3.lanes & b) !== 0 && (dh = !0), a3.firstContext = null);
  2729. }
  2730. function eh(a3) {
  2731. var b = a3._currentValue;
  2732. if (Zg !== a3) if (a3 = { context: a3, memoizedValue: b, next: null }, Yg === null) {
  2733. if (Xg === null) throw Error(p3(308));
  2734. Yg = a3, Xg.dependencies = { lanes: 0, firstContext: a3 };
  2735. } else Yg = Yg.next = a3;
  2736. return b;
  2737. }
  2738. var fh = null;
  2739. function gh(a3) {
  2740. fh === null ? fh = [a3] : fh.push(a3);
  2741. }
  2742. function hh(a3, b, c, d) {
  2743. var e = b.interleaved;
  2744. return e === null ? (c.next = c, gh(b)) : (c.next = e.next, e.next = c), b.interleaved = c, ih(a3, d);
  2745. }
  2746. function ih(a3, b) {
  2747. a3.lanes |= b;
  2748. var c = a3.alternate;
  2749. for (c !== null && (c.lanes |= b), c = a3, a3 = a3.return; a3 !== null; ) a3.childLanes |= b, c = a3.alternate, c !== null && (c.childLanes |= b), c = a3, a3 = a3.return;
  2750. return c.tag === 3 ? c.stateNode : null;
  2751. }
  2752. var jh = !1;
  2753. function kh(a3) {
  2754. a3.updateQueue = { baseState: a3.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
  2755. }
  2756. function lh(a3, b) {
  2757. a3 = a3.updateQueue, b.updateQueue === a3 && (b.updateQueue = { baseState: a3.baseState, firstBaseUpdate: a3.firstBaseUpdate, lastBaseUpdate: a3.lastBaseUpdate, shared: a3.shared, effects: a3.effects });
  2758. }
  2759. function mh(a3, b) {
  2760. return { eventTime: a3, lane: b, tag: 0, payload: null, callback: null, next: null };
  2761. }
  2762. function nh(a3, b, c) {
  2763. var d = a3.updateQueue;
  2764. if (d === null) return null;
  2765. if (d = d.shared, (K2 & 2) !== 0) {
  2766. var e = d.pending;
  2767. return e === null ? b.next = b : (b.next = e.next, e.next = b), d.pending = b, ih(a3, c);
  2768. }
  2769. return e = d.interleaved, e === null ? (b.next = b, gh(d)) : (b.next = e.next, e.next = b), d.interleaved = b, ih(a3, c);
  2770. }
  2771. function oh(a3, b, c) {
  2772. if (b = b.updateQueue, b !== null && (b = b.shared, (c & 4194240) !== 0)) {
  2773. var d = b.lanes;
  2774. d &= a3.pendingLanes, c |= d, b.lanes = c, Cc(a3, c);
  2775. }
  2776. }
  2777. function ph(a3, b) {
  2778. var c = a3.updateQueue, d = a3.alternate;
  2779. if (d !== null && (d = d.updateQueue, c === d)) {
  2780. var e = null, f4 = null;
  2781. if (c = c.firstBaseUpdate, c !== null) {
  2782. do {
  2783. var g2 = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null };
  2784. f4 === null ? e = f4 = g2 : f4 = f4.next = g2, c = c.next;
  2785. } while (c !== null);
  2786. f4 === null ? e = f4 = b : f4 = f4.next = b;
  2787. } else e = f4 = b;
  2788. c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f4, shared: d.shared, effects: d.effects }, a3.updateQueue = c;
  2789. return;
  2790. }
  2791. a3 = c.lastBaseUpdate, a3 === null ? c.firstBaseUpdate = b : a3.next = b, c.lastBaseUpdate = b;
  2792. }
  2793. function qh(a3, b, c, d) {
  2794. var e = a3.updateQueue;
  2795. jh = !1;
  2796. var f4 = e.firstBaseUpdate, g2 = e.lastBaseUpdate, h3 = e.shared.pending;
  2797. if (h3 !== null) {
  2798. e.shared.pending = null;
  2799. var k = h3, l = k.next;
  2800. k.next = null, g2 === null ? f4 = l : g2.next = l, g2 = k;
  2801. var m3 = a3.alternate;
  2802. m3 !== null && (m3 = m3.updateQueue, h3 = m3.lastBaseUpdate, h3 !== g2 && (h3 === null ? m3.firstBaseUpdate = l : h3.next = l, m3.lastBaseUpdate = k));
  2803. }
  2804. if (f4 !== null) {
  2805. var q = e.baseState;
  2806. g2 = 0, m3 = l = k = null, h3 = f4;
  2807. do {
  2808. var r2 = h3.lane, y = h3.eventTime;
  2809. if ((d & r2) === r2) {
  2810. m3 !== null && (m3 = m3.next = {
  2811. eventTime: y,
  2812. lane: 0,
  2813. tag: h3.tag,
  2814. payload: h3.payload,
  2815. callback: h3.callback,
  2816. next: null
  2817. });
  2818. a: {
  2819. var n = a3, t = h3;
  2820. switch (r2 = b, y = c, t.tag) {
  2821. case 1:
  2822. if (n = t.payload, typeof n == "function") {
  2823. q = n.call(y, q, r2);
  2824. break a;
  2825. }
  2826. q = n;
  2827. break a;
  2828. case 3:
  2829. n.flags = n.flags & -65537 | 128;
  2830. case 0:
  2831. if (n = t.payload, r2 = typeof n == "function" ? n.call(y, q, r2) : n, r2 == null) break a;
  2832. q = A3({}, q, r2);
  2833. break a;
  2834. case 2:
  2835. jh = !0;
  2836. }
  2837. }
  2838. h3.callback !== null && h3.lane !== 0 && (a3.flags |= 64, r2 = e.effects, r2 === null ? e.effects = [h3] : r2.push(h3));
  2839. } else y = { eventTime: y, lane: r2, tag: h3.tag, payload: h3.payload, callback: h3.callback, next: null }, m3 === null ? (l = m3 = y, k = q) : m3 = m3.next = y, g2 |= r2;
  2840. if (h3 = h3.next, h3 === null) {
  2841. if (h3 = e.shared.pending, h3 === null) break;
  2842. r2 = h3, h3 = r2.next, r2.next = null, e.lastBaseUpdate = r2, e.shared.pending = null;
  2843. }
  2844. } while (!0);
  2845. if (m3 === null && (k = q), e.baseState = k, e.firstBaseUpdate = l, e.lastBaseUpdate = m3, b = e.shared.interleaved, b !== null) {
  2846. e = b;
  2847. do
  2848. g2 |= e.lane, e = e.next;
  2849. while (e !== b);
  2850. } else f4 === null && (e.shared.lanes = 0);
  2851. rh |= g2, a3.lanes = g2, a3.memoizedState = q;
  2852. }
  2853. }
  2854. function sh(a3, b, c) {
  2855. if (a3 = b.effects, b.effects = null, a3 !== null) for (b = 0; b < a3.length; b++) {
  2856. var d = a3[b], e = d.callback;
  2857. if (e !== null) {
  2858. if (d.callback = null, d = c, typeof e != "function") throw Error(p3(191, e));
  2859. e.call(d);
  2860. }
  2861. }
  2862. }
  2863. var th = {}, uh = Uf(th), vh = Uf(th), wh = Uf(th);
  2864. function xh(a3) {
  2865. if (a3 === th) throw Error(p3(174));
  2866. return a3;
  2867. }
  2868. function yh(a3, b) {
  2869. switch (G(wh, b), G(vh, a3), G(uh, th), a3 = b.nodeType, a3) {
  2870. case 9:
  2871. case 11:
  2872. b = (b = b.documentElement) ? b.namespaceURI : lb(null, "");
  2873. break;
  2874. default:
  2875. a3 = a3 === 8 ? b.parentNode : b, b = a3.namespaceURI || null, a3 = a3.tagName, b = lb(b, a3);
  2876. }
  2877. E(uh), G(uh, b);
  2878. }
  2879. function zh() {
  2880. E(uh), E(vh), E(wh);
  2881. }
  2882. function Ah(a3) {
  2883. xh(wh.current);
  2884. var b = xh(uh.current), c = lb(b, a3.type);
  2885. b !== c && (G(vh, a3), G(uh, c));
  2886. }
  2887. function Bh(a3) {
  2888. vh.current === a3 && (E(uh), E(vh));
  2889. }
  2890. var L = Uf(0);
  2891. function Ch(a3) {
  2892. for (var b = a3; b !== null; ) {
  2893. if (b.tag === 13) {
  2894. var c = b.memoizedState;
  2895. if (c !== null && (c = c.dehydrated, c === null || c.data === "$?" || c.data === "$!")) return b;
  2896. } else if (b.tag === 19 && b.memoizedProps.revealOrder !== void 0) {
  2897. if ((b.flags & 128) !== 0) return b;
  2898. } else if (b.child !== null) {
  2899. b.child.return = b, b = b.child;
  2900. continue;
  2901. }
  2902. if (b === a3) break;
  2903. for (; b.sibling === null; ) {
  2904. if (b.return === null || b.return === a3) return null;
  2905. b = b.return;
  2906. }
  2907. b.sibling.return = b.return, b = b.sibling;
  2908. }
  2909. return null;
  2910. }
  2911. var Dh = [];
  2912. function Eh() {
  2913. for (var a3 = 0; a3 < Dh.length; a3++) Dh[a3]._workInProgressVersionPrimary = null;
  2914. Dh.length = 0;
  2915. }
  2916. var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M = null, N = null, O = null, Ih = !1, Jh = !1, Kh = 0, Lh = 0;
  2917. function P3() {
  2918. throw Error(p3(321));
  2919. }
  2920. function Mh(a3, b) {
  2921. if (b === null) return !1;
  2922. for (var c = 0; c < b.length && c < a3.length; c++) if (!He(a3[c], b[c])) return !1;
  2923. return !0;
  2924. }
  2925. function Nh(a3, b, c, d, e, f4) {
  2926. if (Hh = f4, M = b, b.memoizedState = null, b.updateQueue = null, b.lanes = 0, Fh.current = a3 === null || a3.memoizedState === null ? Oh : Ph, a3 = c(d, e), Jh) {
  2927. f4 = 0;
  2928. do {
  2929. if (Jh = !1, Kh = 0, 25 <= f4) throw Error(p3(301));
  2930. f4 += 1, O = N = null, b.updateQueue = null, Fh.current = Qh, a3 = c(d, e);
  2931. } while (Jh);
  2932. }
  2933. if (Fh.current = Rh, b = N !== null && N.next !== null, Hh = 0, O = N = M = null, Ih = !1, b) throw Error(p3(300));
  2934. return a3;
  2935. }
  2936. function Sh() {
  2937. var a3 = Kh !== 0;
  2938. return Kh = 0, a3;
  2939. }
  2940. function Th() {
  2941. var a3 = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
  2942. return O === null ? M.memoizedState = O = a3 : O = O.next = a3, O;
  2943. }
  2944. function Uh() {
  2945. if (N === null) {
  2946. var a3 = M.alternate;
  2947. a3 = a3 !== null ? a3.memoizedState : null;
  2948. } else a3 = N.next;
  2949. var b = O === null ? M.memoizedState : O.next;
  2950. if (b !== null) O = b, N = a3;
  2951. else {
  2952. if (a3 === null) throw Error(p3(310));
  2953. N = a3, a3 = { memoizedState: N.memoizedState, baseState: N.baseState, baseQueue: N.baseQueue, queue: N.queue, next: null }, O === null ? M.memoizedState = O = a3 : O = O.next = a3;
  2954. }
  2955. return O;
  2956. }
  2957. function Vh(a3, b) {
  2958. return typeof b == "function" ? b(a3) : b;
  2959. }
  2960. function Wh(a3) {
  2961. var b = Uh(), c = b.queue;
  2962. if (c === null) throw Error(p3(311));
  2963. c.lastRenderedReducer = a3;
  2964. var d = N, e = d.baseQueue, f4 = c.pending;
  2965. if (f4 !== null) {
  2966. if (e !== null) {
  2967. var g2 = e.next;
  2968. e.next = f4.next, f4.next = g2;
  2969. }
  2970. d.baseQueue = e = f4, c.pending = null;
  2971. }
  2972. if (e !== null) {
  2973. f4 = e.next, d = d.baseState;
  2974. var h3 = g2 = null, k = null, l = f4;
  2975. do {
  2976. var m3 = l.lane;
  2977. if ((Hh & m3) === m3) k !== null && (k = k.next = { lane: 0, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null }), d = l.hasEagerState ? l.eagerState : a3(d, l.action);
  2978. else {
  2979. var q = {
  2980. lane: m3,
  2981. action: l.action,
  2982. hasEagerState: l.hasEagerState,
  2983. eagerState: l.eagerState,
  2984. next: null
  2985. };
  2986. k === null ? (h3 = k = q, g2 = d) : k = k.next = q, M.lanes |= m3, rh |= m3;
  2987. }
  2988. l = l.next;
  2989. } while (l !== null && l !== f4);
  2990. k === null ? g2 = d : k.next = h3, He(d, b.memoizedState) || (dh = !0), b.memoizedState = d, b.baseState = g2, b.baseQueue = k, c.lastRenderedState = d;
  2991. }
  2992. if (a3 = c.interleaved, a3 !== null) {
  2993. e = a3;
  2994. do
  2995. f4 = e.lane, M.lanes |= f4, rh |= f4, e = e.next;
  2996. while (e !== a3);
  2997. } else e === null && (c.lanes = 0);
  2998. return [b.memoizedState, c.dispatch];
  2999. }
  3000. function Xh(a3) {
  3001. var b = Uh(), c = b.queue;
  3002. if (c === null) throw Error(p3(311));
  3003. c.lastRenderedReducer = a3;
  3004. var d = c.dispatch, e = c.pending, f4 = b.memoizedState;
  3005. if (e !== null) {
  3006. c.pending = null;
  3007. var g2 = e = e.next;
  3008. do
  3009. f4 = a3(f4, g2.action), g2 = g2.next;
  3010. while (g2 !== e);
  3011. He(f4, b.memoizedState) || (dh = !0), b.memoizedState = f4, b.baseQueue === null && (b.baseState = f4), c.lastRenderedState = f4;
  3012. }
  3013. return [f4, d];
  3014. }
  3015. function Yh() {
  3016. }
  3017. function Zh(a3, b) {
  3018. var c = M, d = Uh(), e = b(), f4 = !He(d.memoizedState, e);
  3019. if (f4 && (d.memoizedState = e, dh = !0), d = d.queue, $h(ai.bind(null, c, d, a3), [a3]), d.getSnapshot !== b || f4 || O !== null && O.memoizedState.tag & 1) {
  3020. if (c.flags |= 2048, bi(9, ci.bind(null, c, d, e, b), void 0, null), Q === null) throw Error(p3(349));
  3021. (Hh & 30) !== 0 || di(c, b, e);
  3022. }
  3023. return e;
  3024. }
  3025. function di(a3, b, c) {
  3026. a3.flags |= 16384, a3 = { getSnapshot: b, value: c }, b = M.updateQueue, b === null ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.stores = [a3]) : (c = b.stores, c === null ? b.stores = [a3] : c.push(a3));
  3027. }
  3028. function ci(a3, b, c, d) {
  3029. b.value = c, b.getSnapshot = d, ei(b) && fi(a3);
  3030. }
  3031. function ai(a3, b, c) {
  3032. return c(function() {
  3033. ei(b) && fi(a3);
  3034. });
  3035. }
  3036. function ei(a3) {
  3037. var b = a3.getSnapshot;
  3038. a3 = a3.value;
  3039. try {
  3040. var c = b();
  3041. return !He(a3, c);
  3042. } catch {
  3043. return !0;
  3044. }
  3045. }
  3046. function fi(a3) {
  3047. var b = ih(a3, 1);
  3048. b !== null && gi(b, a3, 1, -1);
  3049. }
  3050. function hi(a3) {
  3051. var b = Th();
  3052. return typeof a3 == "function" && (a3 = a3()), b.memoizedState = b.baseState = a3, a3 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Vh, lastRenderedState: a3 }, b.queue = a3, a3 = a3.dispatch = ii.bind(null, M, a3), [b.memoizedState, a3];
  3053. }
  3054. function bi(a3, b, c, d) {
  3055. return a3 = { tag: a3, create: b, destroy: c, deps: d, next: null }, b = M.updateQueue, b === null ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.lastEffect = a3.next = a3) : (c = b.lastEffect, c === null ? b.lastEffect = a3.next = a3 : (d = c.next, c.next = a3, a3.next = d, b.lastEffect = a3)), a3;
  3056. }
  3057. function ji() {
  3058. return Uh().memoizedState;
  3059. }
  3060. function ki(a3, b, c, d) {
  3061. var e = Th();
  3062. M.flags |= a3, e.memoizedState = bi(1 | b, c, void 0, d === void 0 ? null : d);
  3063. }
  3064. function li(a3, b, c, d) {
  3065. var e = Uh();
  3066. d = d === void 0 ? null : d;
  3067. var f4 = void 0;
  3068. if (N !== null) {
  3069. var g2 = N.memoizedState;
  3070. if (f4 = g2.destroy, d !== null && Mh(d, g2.deps)) {
  3071. e.memoizedState = bi(b, c, f4, d);
  3072. return;
  3073. }
  3074. }
  3075. M.flags |= a3, e.memoizedState = bi(1 | b, c, f4, d);
  3076. }
  3077. function mi(a3, b) {
  3078. return ki(8390656, 8, a3, b);
  3079. }
  3080. function $h(a3, b) {
  3081. return li(2048, 8, a3, b);
  3082. }
  3083. function ni(a3, b) {
  3084. return li(4, 2, a3, b);
  3085. }
  3086. function oi(a3, b) {
  3087. return li(4, 4, a3, b);
  3088. }
  3089. function pi(a3, b) {
  3090. if (typeof b == "function") return a3 = a3(), b(a3), function() {
  3091. b(null);
  3092. };
  3093. if (b != null) return a3 = a3(), b.current = a3, function() {
  3094. b.current = null;
  3095. };
  3096. }
  3097. function qi(a3, b, c) {
  3098. return c = c != null ? c.concat([a3]) : null, li(4, 4, pi.bind(null, b, a3), c);
  3099. }
  3100. function ri() {
  3101. }
  3102. function si(a3, b) {
  3103. var c = Uh();
  3104. b = b === void 0 ? null : b;
  3105. var d = c.memoizedState;
  3106. return d !== null && b !== null && Mh(b, d[1]) ? d[0] : (c.memoizedState = [a3, b], a3);
  3107. }
  3108. function ti(a3, b) {
  3109. var c = Uh();
  3110. b = b === void 0 ? null : b;
  3111. var d = c.memoizedState;
  3112. return d !== null && b !== null && Mh(b, d[1]) ? d[0] : (a3 = a3(), c.memoizedState = [a3, b], a3);
  3113. }
  3114. function ui(a3, b, c) {
  3115. return (Hh & 21) === 0 ? (a3.baseState && (a3.baseState = !1, dh = !0), a3.memoizedState = c) : (He(c, b) || (c = yc(), M.lanes |= c, rh |= c, a3.baseState = !0), b);
  3116. }
  3117. function vi(a3, b) {
  3118. var c = C3;
  3119. C3 = c !== 0 && 4 > c ? c : 4, a3(!0);
  3120. var d = Gh.transition;
  3121. Gh.transition = {};
  3122. try {
  3123. a3(!1), b();
  3124. } finally {
  3125. C3 = c, Gh.transition = d;
  3126. }
  3127. }
  3128. function wi() {
  3129. return Uh().memoizedState;
  3130. }
  3131. function xi(a3, b, c) {
  3132. var d = yi(a3);
  3133. if (c = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }, zi(a3)) Ai(b, c);
  3134. else if (c = hh(a3, b, c, d), c !== null) {
  3135. var e = R();
  3136. gi(c, a3, d, e), Bi(c, b, d);
  3137. }
  3138. }
  3139. function ii(a3, b, c) {
  3140. var d = yi(a3), e = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null };
  3141. if (zi(a3)) Ai(b, e);
  3142. else {
  3143. var f4 = a3.alternate;
  3144. if (a3.lanes === 0 && (f4 === null || f4.lanes === 0) && (f4 = b.lastRenderedReducer, f4 !== null)) try {
  3145. var g2 = b.lastRenderedState, h3 = f4(g2, c);
  3146. if (e.hasEagerState = !0, e.eagerState = h3, He(h3, g2)) {
  3147. var k = b.interleaved;
  3148. k === null ? (e.next = e, gh(b)) : (e.next = k.next, k.next = e), b.interleaved = e;
  3149. return;
  3150. }
  3151. } catch {
  3152. } finally {
  3153. }
  3154. c = hh(a3, b, e, d), c !== null && (e = R(), gi(c, a3, d, e), Bi(c, b, d));
  3155. }
  3156. }
  3157. function zi(a3) {
  3158. var b = a3.alternate;
  3159. return a3 === M || b !== null && b === M;
  3160. }
  3161. function Ai(a3, b) {
  3162. Jh = Ih = !0;
  3163. var c = a3.pending;
  3164. c === null ? b.next = b : (b.next = c.next, c.next = b), a3.pending = b;
  3165. }
  3166. function Bi(a3, b, c) {
  3167. if ((c & 4194240) !== 0) {
  3168. var d = b.lanes;
  3169. d &= a3.pendingLanes, c |= d, b.lanes = c, Cc(a3, c);
  3170. }
  3171. }
  3172. var Rh = { readContext: eh, useCallback: P3, useContext: P3, useEffect: P3, useImperativeHandle: P3, useInsertionEffect: P3, useLayoutEffect: P3, useMemo: P3, useReducer: P3, useRef: P3, useState: P3, useDebugValue: P3, useDeferredValue: P3, useTransition: P3, useMutableSource: P3, useSyncExternalStore: P3, useId: P3, unstable_isNewReconciler: !1 }, Oh = { readContext: eh, useCallback: function(a3, b) {
  3173. return Th().memoizedState = [a3, b === void 0 ? null : b], a3;
  3174. }, useContext: eh, useEffect: mi, useImperativeHandle: function(a3, b, c) {
  3175. return c = c != null ? c.concat([a3]) : null, ki(
  3176. 4194308,
  3177. 4,
  3178. pi.bind(null, b, a3),
  3179. c
  3180. );
  3181. }, useLayoutEffect: function(a3, b) {
  3182. return ki(4194308, 4, a3, b);
  3183. }, useInsertionEffect: function(a3, b) {
  3184. return ki(4, 2, a3, b);
  3185. }, useMemo: function(a3, b) {
  3186. var c = Th();
  3187. return b = b === void 0 ? null : b, a3 = a3(), c.memoizedState = [a3, b], a3;
  3188. }, useReducer: function(a3, b, c) {
  3189. var d = Th();
  3190. return b = c !== void 0 ? c(b) : b, d.memoizedState = d.baseState = b, a3 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a3, lastRenderedState: b }, d.queue = a3, a3 = a3.dispatch = xi.bind(null, M, a3), [d.memoizedState, a3];
  3191. }, useRef: function(a3) {
  3192. var b = Th();
  3193. return a3 = { current: a3 }, b.memoizedState = a3;
  3194. }, useState: hi, useDebugValue: ri, useDeferredValue: function(a3) {
  3195. return Th().memoizedState = a3;
  3196. }, useTransition: function() {
  3197. var a3 = hi(!1), b = a3[0];
  3198. return a3 = vi.bind(null, a3[1]), Th().memoizedState = a3, [b, a3];
  3199. }, useMutableSource: function() {
  3200. }, useSyncExternalStore: function(a3, b, c) {
  3201. var d = M, e = Th();
  3202. if (I) {
  3203. if (c === void 0) throw Error(p3(407));
  3204. c = c();
  3205. } else {
  3206. if (c = b(), Q === null) throw Error(p3(349));
  3207. (Hh & 30) !== 0 || di(d, b, c);
  3208. }
  3209. e.memoizedState = c;
  3210. var f4 = { value: c, getSnapshot: b };
  3211. return e.queue = f4, mi(ai.bind(
  3212. null,
  3213. d,
  3214. f4,
  3215. a3
  3216. ), [a3]), d.flags |= 2048, bi(9, ci.bind(null, d, f4, c, b), void 0, null), c;
  3217. }, useId: function() {
  3218. var a3 = Th(), b = Q.identifierPrefix;
  3219. if (I) {
  3220. var c = sg, d = rg;
  3221. c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c, b = ":" + b + "R" + c, c = Kh++, 0 < c && (b += "H" + c.toString(32)), b += ":";
  3222. } else c = Lh++, b = ":" + b + "r" + c.toString(32) + ":";
  3223. return a3.memoizedState = b;
  3224. }, unstable_isNewReconciler: !1 }, Ph = {
  3225. readContext: eh,
  3226. useCallback: si,
  3227. useContext: eh,
  3228. useEffect: $h,
  3229. useImperativeHandle: qi,
  3230. useInsertionEffect: ni,
  3231. useLayoutEffect: oi,
  3232. useMemo: ti,
  3233. useReducer: Wh,
  3234. useRef: ji,
  3235. useState: function() {
  3236. return Wh(Vh);
  3237. },
  3238. useDebugValue: ri,
  3239. useDeferredValue: function(a3) {
  3240. var b = Uh();
  3241. return ui(b, N.memoizedState, a3);
  3242. },
  3243. useTransition: function() {
  3244. var a3 = Wh(Vh)[0], b = Uh().memoizedState;
  3245. return [a3, b];
  3246. },
  3247. useMutableSource: Yh,
  3248. useSyncExternalStore: Zh,
  3249. useId: wi,
  3250. unstable_isNewReconciler: !1
  3251. }, Qh = { readContext: eh, useCallback: si, useContext: eh, useEffect: $h, useImperativeHandle: qi, useInsertionEffect: ni, useLayoutEffect: oi, useMemo: ti, useReducer: Xh, useRef: ji, useState: function() {
  3252. return Xh(Vh);
  3253. }, useDebugValue: ri, useDeferredValue: function(a3) {
  3254. var b = Uh();
  3255. return N === null ? b.memoizedState = a3 : ui(b, N.memoizedState, a3);
  3256. }, useTransition: function() {
  3257. var a3 = Xh(Vh)[0], b = Uh().memoizedState;
  3258. return [a3, b];
  3259. }, useMutableSource: Yh, useSyncExternalStore: Zh, useId: wi, unstable_isNewReconciler: !1 };
  3260. function Ci(a3, b) {
  3261. if (a3 && a3.defaultProps) {
  3262. b = A3({}, b), a3 = a3.defaultProps;
  3263. for (var c in a3) b[c] === void 0 && (b[c] = a3[c]);
  3264. return b;
  3265. }
  3266. return b;
  3267. }
  3268. function Di(a3, b, c, d) {
  3269. b = a3.memoizedState, c = c(d, b), c = c == null ? b : A3({}, b, c), a3.memoizedState = c, a3.lanes === 0 && (a3.updateQueue.baseState = c);
  3270. }
  3271. var Ei = { isMounted: function(a3) {
  3272. return (a3 = a3._reactInternals) ? Vb(a3) === a3 : !1;
  3273. }, enqueueSetState: function(a3, b, c) {
  3274. a3 = a3._reactInternals;
  3275. var d = R(), e = yi(a3), f4 = mh(d, e);
  3276. f4.payload = b, c != null && (f4.callback = c), b = nh(a3, f4, e), b !== null && (gi(b, a3, e, d), oh(b, a3, e));
  3277. }, enqueueReplaceState: function(a3, b, c) {
  3278. a3 = a3._reactInternals;
  3279. var d = R(), e = yi(a3), f4 = mh(d, e);
  3280. f4.tag = 1, f4.payload = b, c != null && (f4.callback = c), b = nh(a3, f4, e), b !== null && (gi(b, a3, e, d), oh(b, a3, e));
  3281. }, enqueueForceUpdate: function(a3, b) {
  3282. a3 = a3._reactInternals;
  3283. var c = R(), d = yi(a3), e = mh(c, d);
  3284. e.tag = 2, b != null && (e.callback = b), b = nh(a3, e, d), b !== null && (gi(b, a3, d, c), oh(b, a3, d));
  3285. } };
  3286. function Fi(a3, b, c, d, e, f4, g2) {
  3287. return a3 = a3.stateNode, typeof a3.shouldComponentUpdate == "function" ? a3.shouldComponentUpdate(d, f4, g2) : b.prototype && b.prototype.isPureReactComponent ? !Ie(c, d) || !Ie(e, f4) : !0;
  3288. }
  3289. function Gi(a3, b, c) {
  3290. var d = !1, e = Vf, f4 = b.contextType;
  3291. return typeof f4 == "object" && f4 !== null ? f4 = eh(f4) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f4 = (d = d != null) ? Yf(a3, e) : Vf), b = new b(c, f4), a3.memoizedState = b.state !== null && b.state !== void 0 ? b.state : null, b.updater = Ei, a3.stateNode = b, b._reactInternals = a3, d && (a3 = a3.stateNode, a3.__reactInternalMemoizedUnmaskedChildContext = e, a3.__reactInternalMemoizedMaskedChildContext = f4), b;
  3292. }
  3293. function Hi(a3, b, c, d) {
  3294. a3 = b.state, typeof b.componentWillReceiveProps == "function" && b.componentWillReceiveProps(c, d), typeof b.UNSAFE_componentWillReceiveProps == "function" && b.UNSAFE_componentWillReceiveProps(c, d), b.state !== a3 && Ei.enqueueReplaceState(b, b.state, null);
  3295. }
  3296. function Ii(a3, b, c, d) {
  3297. var e = a3.stateNode;
  3298. e.props = c, e.state = a3.memoizedState, e.refs = {}, kh(a3);
  3299. var f4 = b.contextType;
  3300. typeof f4 == "object" && f4 !== null ? e.context = eh(f4) : (f4 = Zf(b) ? Xf : H.current, e.context = Yf(a3, f4)), e.state = a3.memoizedState, f4 = b.getDerivedStateFromProps, typeof f4 == "function" && (Di(a3, b, f4, c), e.state = a3.memoizedState), typeof b.getDerivedStateFromProps == "function" || typeof e.getSnapshotBeforeUpdate == "function" || typeof e.UNSAFE_componentWillMount != "function" && typeof e.componentWillMount != "function" || (b = e.state, typeof e.componentWillMount == "function" && e.componentWillMount(), typeof e.UNSAFE_componentWillMount == "function" && e.UNSAFE_componentWillMount(), b !== e.state && Ei.enqueueReplaceState(e, e.state, null), qh(a3, c, e, d), e.state = a3.memoizedState), typeof e.componentDidMount == "function" && (a3.flags |= 4194308);
  3301. }
  3302. function Ji(a3, b) {
  3303. try {
  3304. var c = "", d = b;
  3305. do
  3306. c += Pa(d), d = d.return;
  3307. while (d);
  3308. var e = c;
  3309. } catch (f4) {
  3310. e = `
  3311. Error generating stack: ` + f4.message + `
  3312. ` + f4.stack;
  3313. }
  3314. return { value: a3, source: b, stack: e, digest: null };
  3315. }
  3316. function Ki(a3, b, c) {
  3317. return { value: a3, source: null, stack: c ?? null, digest: b ?? null };
  3318. }
  3319. function Li(a3, b) {
  3320. try {
  3321. console.error(b.value);
  3322. } catch (c) {
  3323. setTimeout(function() {
  3324. throw c;
  3325. });
  3326. }
  3327. }
  3328. var Mi = typeof WeakMap == "function" ? WeakMap : Map;
  3329. function Ni(a3, b, c) {
  3330. c = mh(-1, c), c.tag = 3, c.payload = { element: null };
  3331. var d = b.value;
  3332. return c.callback = function() {
  3333. Oi || (Oi = !0, Pi = d), Li(a3, b);
  3334. }, c;
  3335. }
  3336. function Qi(a3, b, c) {
  3337. c = mh(-1, c), c.tag = 3;
  3338. var d = a3.type.getDerivedStateFromError;
  3339. if (typeof d == "function") {
  3340. var e = b.value;
  3341. c.payload = function() {
  3342. return d(e);
  3343. }, c.callback = function() {
  3344. Li(a3, b);
  3345. };
  3346. }
  3347. var f4 = a3.stateNode;
  3348. return f4 !== null && typeof f4.componentDidCatch == "function" && (c.callback = function() {
  3349. Li(a3, b), typeof d != "function" && (Ri === null ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this));
  3350. var c2 = b.stack;
  3351. this.componentDidCatch(b.value, { componentStack: c2 !== null ? c2 : "" });
  3352. }), c;
  3353. }
  3354. function Si(a3, b, c) {
  3355. var d = a3.pingCache;
  3356. if (d === null) {
  3357. d = a3.pingCache = new Mi();
  3358. var e = /* @__PURE__ */ new Set();
  3359. d.set(b, e);
  3360. } else e = d.get(b), e === void 0 && (e = /* @__PURE__ */ new Set(), d.set(b, e));
  3361. e.has(c) || (e.add(c), a3 = Ti.bind(null, a3, b, c), b.then(a3, a3));
  3362. }
  3363. function Ui(a3) {
  3364. do {
  3365. var b;
  3366. if ((b = a3.tag === 13) && (b = a3.memoizedState, b = b !== null ? b.dehydrated !== null : !0), b) return a3;
  3367. a3 = a3.return;
  3368. } while (a3 !== null);
  3369. return null;
  3370. }
  3371. function Vi(a3, b, c, d, e) {
  3372. return (a3.mode & 1) === 0 ? (a3 === b ? a3.flags |= 65536 : (a3.flags |= 128, c.flags |= 131072, c.flags &= -52805, c.tag === 1 && (c.alternate === null ? c.tag = 17 : (b = mh(-1, 1), b.tag = 2, nh(c, b, 1))), c.lanes |= 1), a3) : (a3.flags |= 65536, a3.lanes = e, a3);
  3373. }
  3374. var Wi = ua.ReactCurrentOwner, dh = !1;
  3375. function Xi(a3, b, c, d) {
  3376. b.child = a3 === null ? Vg(b, null, c, d) : Ug(b, a3.child, c, d);
  3377. }
  3378. function Yi(a3, b, c, d, e) {
  3379. c = c.render;
  3380. var f4 = b.ref;
  3381. return ch(b, e), d = Nh(a3, b, c, d, f4, e), c = Sh(), a3 !== null && !dh ? (b.updateQueue = a3.updateQueue, b.flags &= -2053, a3.lanes &= ~e, Zi(a3, b, e)) : (I && c && vg(b), b.flags |= 1, Xi(a3, b, d, e), b.child);
  3382. }
  3383. function $i(a3, b, c, d, e) {
  3384. if (a3 === null) {
  3385. var f4 = c.type;
  3386. return typeof f4 == "function" && !aj(f4) && f4.defaultProps === void 0 && c.compare === null && c.defaultProps === void 0 ? (b.tag = 15, b.type = f4, bj(a3, b, f4, d, e)) : (a3 = Rg(c.type, null, d, b, b.mode, e), a3.ref = b.ref, a3.return = b, b.child = a3);
  3387. }
  3388. if (f4 = a3.child, (a3.lanes & e) === 0) {
  3389. var g2 = f4.memoizedProps;
  3390. if (c = c.compare, c = c !== null ? c : Ie, c(g2, d) && a3.ref === b.ref) return Zi(a3, b, e);
  3391. }
  3392. return b.flags |= 1, a3 = Pg(f4, d), a3.ref = b.ref, a3.return = b, b.child = a3;
  3393. }
  3394. function bj(a3, b, c, d, e) {
  3395. if (a3 !== null) {
  3396. var f4 = a3.memoizedProps;
  3397. if (Ie(f4, d) && a3.ref === b.ref) if (dh = !1, b.pendingProps = d = f4, (a3.lanes & e) !== 0) (a3.flags & 131072) !== 0 && (dh = !0);
  3398. else return b.lanes = a3.lanes, Zi(a3, b, e);
  3399. }
  3400. return cj(a3, b, c, d, e);
  3401. }
  3402. function dj(a3, b, c) {
  3403. var d = b.pendingProps, e = d.children, f4 = a3 !== null ? a3.memoizedState : null;
  3404. if (d.mode === "hidden") if ((b.mode & 1) === 0) b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(ej, fj), fj |= c;
  3405. else {
  3406. if ((c & 1073741824) === 0) return a3 = f4 !== null ? f4.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { baseLanes: a3, cachePool: null, transitions: null }, b.updateQueue = null, G(ej, fj), fj |= a3, null;
  3407. b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, d = f4 !== null ? f4.baseLanes : c, G(ej, fj), fj |= d;
  3408. }
  3409. else f4 !== null ? (d = f4.baseLanes | c, b.memoizedState = null) : d = c, G(ej, fj), fj |= d;
  3410. return Xi(a3, b, e, c), b.child;
  3411. }
  3412. function gj(a3, b) {
  3413. var c = b.ref;
  3414. (a3 === null && c !== null || a3 !== null && a3.ref !== c) && (b.flags |= 512, b.flags |= 2097152);
  3415. }
  3416. function cj(a3, b, c, d, e) {
  3417. var f4 = Zf(c) ? Xf : H.current;
  3418. return f4 = Yf(b, f4), ch(b, e), c = Nh(a3, b, c, d, f4, e), d = Sh(), a3 !== null && !dh ? (b.updateQueue = a3.updateQueue, b.flags &= -2053, a3.lanes &= ~e, Zi(a3, b, e)) : (I && d && vg(b), b.flags |= 1, Xi(a3, b, c, e), b.child);
  3419. }
  3420. function hj(a3, b, c, d, e) {
  3421. if (Zf(c)) {
  3422. var f4 = !0;
  3423. cg(b);
  3424. } else f4 = !1;
  3425. if (ch(b, e), b.stateNode === null) ij(a3, b), Gi(b, c, d), Ii(b, c, d, e), d = !0;
  3426. else if (a3 === null) {
  3427. var g2 = b.stateNode, h3 = b.memoizedProps;
  3428. g2.props = h3;
  3429. var k = g2.context, l = c.contextType;
  3430. typeof l == "object" && l !== null ? l = eh(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
  3431. var m3 = c.getDerivedStateFromProps, q = typeof m3 == "function" || typeof g2.getSnapshotBeforeUpdate == "function";
  3432. q || typeof g2.UNSAFE_componentWillReceiveProps != "function" && typeof g2.componentWillReceiveProps != "function" || (h3 !== d || k !== l) && Hi(b, g2, d, l), jh = !1;
  3433. var r2 = b.memoizedState;
  3434. g2.state = r2, qh(b, d, g2, e), k = b.memoizedState, h3 !== d || r2 !== k || Wf.current || jh ? (typeof m3 == "function" && (Di(b, c, m3, d), k = b.memoizedState), (h3 = jh || Fi(b, c, h3, d, r2, k, l)) ? (q || typeof g2.UNSAFE_componentWillMount != "function" && typeof g2.componentWillMount != "function" || (typeof g2.componentWillMount == "function" && g2.componentWillMount(), typeof g2.UNSAFE_componentWillMount == "function" && g2.UNSAFE_componentWillMount()), typeof g2.componentDidMount == "function" && (b.flags |= 4194308)) : (typeof g2.componentDidMount == "function" && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g2.props = d, g2.state = k, g2.context = l, d = h3) : (typeof g2.componentDidMount == "function" && (b.flags |= 4194308), d = !1);
  3435. } else {
  3436. g2 = b.stateNode, lh(a3, b), h3 = b.memoizedProps, l = b.type === b.elementType ? h3 : Ci(b.type, h3), g2.props = l, q = b.pendingProps, r2 = g2.context, k = c.contextType, typeof k == "object" && k !== null ? k = eh(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
  3437. var y = c.getDerivedStateFromProps;
  3438. (m3 = typeof y == "function" || typeof g2.getSnapshotBeforeUpdate == "function") || typeof g2.UNSAFE_componentWillReceiveProps != "function" && typeof g2.componentWillReceiveProps != "function" || (h3 !== q || r2 !== k) && Hi(b, g2, d, k), jh = !1, r2 = b.memoizedState, g2.state = r2, qh(b, d, g2, e);
  3439. var n = b.memoizedState;
  3440. h3 !== q || r2 !== n || Wf.current || jh ? (typeof y == "function" && (Di(b, c, y, d), n = b.memoizedState), (l = jh || Fi(b, c, l, d, r2, n, k) || !1) ? (m3 || typeof g2.UNSAFE_componentWillUpdate != "function" && typeof g2.componentWillUpdate != "function" || (typeof g2.componentWillUpdate == "function" && g2.componentWillUpdate(d, n, k), typeof g2.UNSAFE_componentWillUpdate == "function" && g2.UNSAFE_componentWillUpdate(d, n, k)), typeof g2.componentDidUpdate == "function" && (b.flags |= 4), typeof g2.getSnapshotBeforeUpdate == "function" && (b.flags |= 1024)) : (typeof g2.componentDidUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 4), typeof g2.getSnapshotBeforeUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = n), g2.props = d, g2.state = n, g2.context = k, d = l) : (typeof g2.componentDidUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 4), typeof g2.getSnapshotBeforeUpdate != "function" || h3 === a3.memoizedProps && r2 === a3.memoizedState || (b.flags |= 1024), d = !1);
  3441. }
  3442. return jj(a3, b, c, d, f4, e);
  3443. }
  3444. function jj(a3, b, c, d, e, f4) {
  3445. gj(a3, b);
  3446. var g2 = (b.flags & 128) !== 0;
  3447. if (!d && !g2) return e && dg(b, c, !1), Zi(a3, b, f4);
  3448. d = b.stateNode, Wi.current = b;
  3449. var h3 = g2 && typeof c.getDerivedStateFromError != "function" ? null : d.render();
  3450. return b.flags |= 1, a3 !== null && g2 ? (b.child = Ug(b, a3.child, null, f4), b.child = Ug(b, null, h3, f4)) : Xi(a3, b, h3, f4), b.memoizedState = d.state, e && dg(b, c, !0), b.child;
  3451. }
  3452. function kj(a3) {
  3453. var b = a3.stateNode;
  3454. b.pendingContext ? ag(a3, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a3, b.context, !1), yh(a3, b.containerInfo);
  3455. }
  3456. function lj(a3, b, c, d, e) {
  3457. return Ig(), Jg(e), b.flags |= 256, Xi(a3, b, c, d), b.child;
  3458. }
  3459. var mj = { dehydrated: null, treeContext: null, retryLane: 0 };
  3460. function nj(a3) {
  3461. return { baseLanes: a3, cachePool: null, transitions: null };
  3462. }
  3463. function oj(a3, b, c) {
  3464. var d = b.pendingProps, e = L.current, f4 = !1, g2 = (b.flags & 128) !== 0, h3;
  3465. if ((h3 = g2) || (h3 = a3 !== null && a3.memoizedState === null ? !1 : (e & 2) !== 0), h3 ? (f4 = !0, b.flags &= -129) : (a3 === null || a3.memoizedState !== null) && (e |= 1), G(L, e & 1), a3 === null)
  3466. return Eg(b), a3 = b.memoizedState, a3 !== null && (a3 = a3.dehydrated, a3 !== null) ? ((b.mode & 1) === 0 ? b.lanes = 1 : a3.data === "$!" ? b.lanes = 8 : b.lanes = 1073741824, null) : (g2 = d.children, a3 = d.fallback, f4 ? (d = b.mode, f4 = b.child, g2 = { mode: "hidden", children: g2 }, (d & 1) === 0 && f4 !== null ? (f4.childLanes = 0, f4.pendingProps = g2) : f4 = pj(g2, d, 0, null), a3 = Tg(a3, d, c, null), f4.return = b, a3.return = b, f4.sibling = a3, b.child = f4, b.child.memoizedState = nj(c), b.memoizedState = mj, a3) : qj(b, g2));
  3467. if (e = a3.memoizedState, e !== null && (h3 = e.dehydrated, h3 !== null)) return rj(a3, b, g2, d, h3, e, c);
  3468. if (f4) {
  3469. f4 = d.fallback, g2 = b.mode, e = a3.child, h3 = e.sibling;
  3470. var k = { mode: "hidden", children: d.children };
  3471. return (g2 & 1) === 0 && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k, b.deletions = null) : (d = Pg(e, k), d.subtreeFlags = e.subtreeFlags & 14680064), h3 !== null ? f4 = Pg(h3, f4) : (f4 = Tg(f4, g2, c, null), f4.flags |= 2), f4.return = b, d.return = b, d.sibling = f4, b.child = d, d = f4, f4 = b.child, g2 = a3.child.memoizedState, g2 = g2 === null ? nj(c) : { baseLanes: g2.baseLanes | c, cachePool: null, transitions: g2.transitions }, f4.memoizedState = g2, f4.childLanes = a3.childLanes & ~c, b.memoizedState = mj, d;
  3472. }
  3473. return f4 = a3.child, a3 = f4.sibling, d = Pg(f4, { mode: "visible", children: d.children }), (b.mode & 1) === 0 && (d.lanes = c), d.return = b, d.sibling = null, a3 !== null && (c = b.deletions, c === null ? (b.deletions = [a3], b.flags |= 16) : c.push(a3)), b.child = d, b.memoizedState = null, d;
  3474. }
  3475. function qj(a3, b) {
  3476. return b = pj({ mode: "visible", children: b }, a3.mode, 0, null), b.return = a3, a3.child = b;
  3477. }
  3478. function sj(a3, b, c, d) {
  3479. return d !== null && Jg(d), Ug(b, a3.child, null, c), a3 = qj(b, b.pendingProps.children), a3.flags |= 2, b.memoizedState = null, a3;
  3480. }
  3481. function rj(a3, b, c, d, e, f4, g2) {
  3482. if (c)
  3483. return b.flags & 256 ? (b.flags &= -257, d = Ki(Error(p3(422))), sj(a3, b, g2, d)) : b.memoizedState !== null ? (b.child = a3.child, b.flags |= 128, null) : (f4 = d.fallback, e = b.mode, d = pj({ mode: "visible", children: d.children }, e, 0, null), f4 = Tg(f4, e, g2, null), f4.flags |= 2, d.return = b, f4.return = b, d.sibling = f4, b.child = d, (b.mode & 1) !== 0 && Ug(b, a3.child, null, g2), b.child.memoizedState = nj(g2), b.memoizedState = mj, f4);
  3484. if ((b.mode & 1) === 0) return sj(a3, b, g2, null);
  3485. if (e.data === "$!") {
  3486. if (d = e.nextSibling && e.nextSibling.dataset, d) var h3 = d.dgst;
  3487. return d = h3, f4 = Error(p3(419)), d = Ki(f4, d, void 0), sj(a3, b, g2, d);
  3488. }
  3489. if (h3 = (g2 & a3.childLanes) !== 0, dh || h3) {
  3490. if (d = Q, d !== null) {
  3491. switch (g2 & -g2) {
  3492. case 4:
  3493. e = 2;
  3494. break;
  3495. case 16:
  3496. e = 8;
  3497. break;
  3498. case 64:
  3499. case 128:
  3500. case 256:
  3501. case 512:
  3502. case 1024:
  3503. case 2048:
  3504. case 4096:
  3505. case 8192:
  3506. case 16384:
  3507. case 32768:
  3508. case 65536:
  3509. case 131072:
  3510. case 262144:
  3511. case 524288:
  3512. case 1048576:
  3513. case 2097152:
  3514. case 4194304:
  3515. case 8388608:
  3516. case 16777216:
  3517. case 33554432:
  3518. case 67108864:
  3519. e = 32;
  3520. break;
  3521. case 536870912:
  3522. e = 268435456;
  3523. break;
  3524. default:
  3525. e = 0;
  3526. }
  3527. e = (e & (d.suspendedLanes | g2)) !== 0 ? 0 : e, e !== 0 && e !== f4.retryLane && (f4.retryLane = e, ih(a3, e), gi(d, a3, e, -1));
  3528. }
  3529. return tj(), d = Ki(Error(p3(421))), sj(a3, b, g2, d);
  3530. }
  3531. return e.data === "$?" ? (b.flags |= 128, b.child = a3.child, b = uj.bind(null, a3), e._reactRetry = b, null) : (a3 = f4.treeContext, yg = Lf(e.nextSibling), xg = b, I = !0, zg = null, a3 !== null && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a3.id, sg = a3.overflow, qg = b), b = qj(b, d.children), b.flags |= 4096, b);
  3532. }
  3533. function vj(a3, b, c) {
  3534. a3.lanes |= b;
  3535. var d = a3.alternate;
  3536. d !== null && (d.lanes |= b), bh(a3.return, b, c);
  3537. }
  3538. function wj(a3, b, c, d, e) {
  3539. var f4 = a3.memoizedState;
  3540. f4 === null ? a3.memoizedState = { isBackwards: b, rendering: null, renderingStartTime: 0, last: d, tail: c, tailMode: e } : (f4.isBackwards = b, f4.rendering = null, f4.renderingStartTime = 0, f4.last = d, f4.tail = c, f4.tailMode = e);
  3541. }
  3542. function xj(a3, b, c) {
  3543. var d = b.pendingProps, e = d.revealOrder, f4 = d.tail;
  3544. if (Xi(a3, b, d.children, c), d = L.current, (d & 2) !== 0) d = d & 1 | 2, b.flags |= 128;
  3545. else {
  3546. if (a3 !== null && (a3.flags & 128) !== 0) a: for (a3 = b.child; a3 !== null; ) {
  3547. if (a3.tag === 13) a3.memoizedState !== null && vj(a3, c, b);
  3548. else if (a3.tag === 19) vj(a3, c, b);
  3549. else if (a3.child !== null) {
  3550. a3.child.return = a3, a3 = a3.child;
  3551. continue;
  3552. }
  3553. if (a3 === b) break a;
  3554. for (; a3.sibling === null; ) {
  3555. if (a3.return === null || a3.return === b) break a;
  3556. a3 = a3.return;
  3557. }
  3558. a3.sibling.return = a3.return, a3 = a3.sibling;
  3559. }
  3560. d &= 1;
  3561. }
  3562. if (G(L, d), (b.mode & 1) === 0) b.memoizedState = null;
  3563. else switch (e) {
  3564. case "forwards":
  3565. for (c = b.child, e = null; c !== null; ) a3 = c.alternate, a3 !== null && Ch(a3) === null && (e = c), c = c.sibling;
  3566. c = e, c === null ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null), wj(b, !1, e, c, f4);
  3567. break;
  3568. case "backwards":
  3569. for (c = null, e = b.child, b.child = null; e !== null; ) {
  3570. if (a3 = e.alternate, a3 !== null && Ch(a3) === null) {
  3571. b.child = e;
  3572. break;
  3573. }
  3574. a3 = e.sibling, e.sibling = c, c = e, e = a3;
  3575. }
  3576. wj(b, !0, c, null, f4);
  3577. break;
  3578. case "together":
  3579. wj(b, !1, null, null, void 0);
  3580. break;
  3581. default:
  3582. b.memoizedState = null;
  3583. }
  3584. return b.child;
  3585. }
  3586. function ij(a3, b) {
  3587. (b.mode & 1) === 0 && a3 !== null && (a3.alternate = null, b.alternate = null, b.flags |= 2);
  3588. }
  3589. function Zi(a3, b, c) {
  3590. if (a3 !== null && (b.dependencies = a3.dependencies), rh |= b.lanes, (c & b.childLanes) === 0) return null;
  3591. if (a3 !== null && b.child !== a3.child) throw Error(p3(153));
  3592. if (b.child !== null) {
  3593. for (a3 = b.child, c = Pg(a3, a3.pendingProps), b.child = c, c.return = b; a3.sibling !== null; ) a3 = a3.sibling, c = c.sibling = Pg(a3, a3.pendingProps), c.return = b;
  3594. c.sibling = null;
  3595. }
  3596. return b.child;
  3597. }
  3598. function yj(a3, b, c) {
  3599. switch (b.tag) {
  3600. case 3:
  3601. kj(b), Ig();
  3602. break;
  3603. case 5:
  3604. Ah(b);
  3605. break;
  3606. case 1:
  3607. Zf(b.type) && cg(b);
  3608. break;
  3609. case 4:
  3610. yh(b, b.stateNode.containerInfo);
  3611. break;
  3612. case 10:
  3613. var d = b.type._context, e = b.memoizedProps.value;
  3614. G(Wg, d._currentValue), d._currentValue = e;
  3615. break;
  3616. case 13:
  3617. if (d = b.memoizedState, d !== null)
  3618. return d.dehydrated !== null ? (G(L, L.current & 1), b.flags |= 128, null) : (c & b.child.childLanes) !== 0 ? oj(a3, b, c) : (G(L, L.current & 1), a3 = Zi(a3, b, c), a3 !== null ? a3.sibling : null);
  3619. G(L, L.current & 1);
  3620. break;
  3621. case 19:
  3622. if (d = (c & b.childLanes) !== 0, (a3.flags & 128) !== 0) {
  3623. if (d) return xj(a3, b, c);
  3624. b.flags |= 128;
  3625. }
  3626. if (e = b.memoizedState, e !== null && (e.rendering = null, e.tail = null, e.lastEffect = null), G(L, L.current), d) break;
  3627. return null;
  3628. case 22:
  3629. case 23:
  3630. return b.lanes = 0, dj(a3, b, c);
  3631. }
  3632. return Zi(a3, b, c);
  3633. }
  3634. var zj, Aj, Bj, Cj;
  3635. zj = function(a3, b) {
  3636. for (var c = b.child; c !== null; ) {
  3637. if (c.tag === 5 || c.tag === 6) a3.appendChild(c.stateNode);
  3638. else if (c.tag !== 4 && c.child !== null) {
  3639. c.child.return = c, c = c.child;
  3640. continue;
  3641. }
  3642. if (c === b) break;
  3643. for (; c.sibling === null; ) {
  3644. if (c.return === null || c.return === b) return;
  3645. c = c.return;
  3646. }
  3647. c.sibling.return = c.return, c = c.sibling;
  3648. }
  3649. };
  3650. Aj = function() {
  3651. };
  3652. Bj = function(a3, b, c, d) {
  3653. var e = a3.memoizedProps;
  3654. if (e !== d) {
  3655. a3 = b.stateNode, xh(uh.current);
  3656. var f4 = null;
  3657. switch (c) {
  3658. case "input":
  3659. e = Ya(a3, e), d = Ya(a3, d), f4 = [];
  3660. break;
  3661. case "select":
  3662. e = A3({}, e, { value: void 0 }), d = A3({}, d, { value: void 0 }), f4 = [];
  3663. break;
  3664. case "textarea":
  3665. e = gb(a3, e), d = gb(a3, d), f4 = [];
  3666. break;
  3667. default:
  3668. typeof e.onClick != "function" && typeof d.onClick == "function" && (a3.onclick = Bf);
  3669. }
  3670. ub(c, d);
  3671. var g2;
  3672. c = null;
  3673. for (l in e) if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && e[l] != null) if (l === "style") {
  3674. var h3 = e[l];
  3675. for (g2 in h3) h3.hasOwnProperty(g2) && (c || (c = {}), c[g2] = "");
  3676. } else l !== "dangerouslySetInnerHTML" && l !== "children" && l !== "suppressContentEditableWarning" && l !== "suppressHydrationWarning" && l !== "autoFocus" && (ea.hasOwnProperty(l) ? f4 || (f4 = []) : (f4 = f4 || []).push(l, null));
  3677. for (l in d) {
  3678. var k = d[l];
  3679. if (h3 = e?.[l], d.hasOwnProperty(l) && k !== h3 && (k != null || h3 != null)) if (l === "style") if (h3) {
  3680. for (g2 in h3) !h3.hasOwnProperty(g2) || k && k.hasOwnProperty(g2) || (c || (c = {}), c[g2] = "");
  3681. for (g2 in k) k.hasOwnProperty(g2) && h3[g2] !== k[g2] && (c || (c = {}), c[g2] = k[g2]);
  3682. } else c || (f4 || (f4 = []), f4.push(
  3683. l,
  3684. c
  3685. )), c = k;
  3686. else l === "dangerouslySetInnerHTML" ? (k = k ? k.__html : void 0, h3 = h3 ? h3.__html : void 0, k != null && h3 !== k && (f4 = f4 || []).push(l, k)) : l === "children" ? typeof k != "string" && typeof k != "number" || (f4 = f4 || []).push(l, "" + k) : l !== "suppressContentEditableWarning" && l !== "suppressHydrationWarning" && (ea.hasOwnProperty(l) ? (k != null && l === "onScroll" && D("scroll", a3), f4 || h3 === k || (f4 = [])) : (f4 = f4 || []).push(l, k));
  3687. }
  3688. c && (f4 = f4 || []).push("style", c);
  3689. var l = f4;
  3690. (b.updateQueue = l) && (b.flags |= 4);
  3691. }
  3692. };
  3693. Cj = function(a3, b, c, d) {
  3694. c !== d && (b.flags |= 4);
  3695. };
  3696. function Dj(a3, b) {
  3697. if (!I) switch (a3.tailMode) {
  3698. case "hidden":
  3699. b = a3.tail;
  3700. for (var c = null; b !== null; ) b.alternate !== null && (c = b), b = b.sibling;
  3701. c === null ? a3.tail = null : c.sibling = null;
  3702. break;
  3703. case "collapsed":
  3704. c = a3.tail;
  3705. for (var d = null; c !== null; ) c.alternate !== null && (d = c), c = c.sibling;
  3706. d === null ? b || a3.tail === null ? a3.tail = null : a3.tail.sibling = null : d.sibling = null;
  3707. }
  3708. }
  3709. function S(a3) {
  3710. var b = a3.alternate !== null && a3.alternate.child === a3.child, c = 0, d = 0;
  3711. if (b) for (var e = a3.child; e !== null; ) c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a3, e = e.sibling;
  3712. else for (e = a3.child; e !== null; ) c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a3, e = e.sibling;
  3713. return a3.subtreeFlags |= d, a3.childLanes = c, b;
  3714. }
  3715. function Ej(a3, b, c) {
  3716. var d = b.pendingProps;
  3717. switch (wg(b), b.tag) {
  3718. case 2:
  3719. case 16:
  3720. case 15:
  3721. case 0:
  3722. case 11:
  3723. case 7:
  3724. case 8:
  3725. case 12:
  3726. case 9:
  3727. case 14:
  3728. return S(b), null;
  3729. case 1:
  3730. return Zf(b.type) && $f(), S(b), null;
  3731. case 3:
  3732. return d = b.stateNode, zh(), E(Wf), E(H), Eh(), d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null), (a3 === null || a3.child === null) && (Gg(b) ? b.flags |= 4 : a3 === null || a3.memoizedState.isDehydrated && (b.flags & 256) === 0 || (b.flags |= 1024, zg !== null && (Fj(zg), zg = null))), Aj(a3, b), S(b), null;
  3733. case 5:
  3734. Bh(b);
  3735. var e = xh(wh.current);
  3736. if (c = b.type, a3 !== null && b.stateNode != null) Bj(a3, b, c, d, e), a3.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152);
  3737. else {
  3738. if (!d) {
  3739. if (b.stateNode === null) throw Error(p3(166));
  3740. return S(b), null;
  3741. }
  3742. if (a3 = xh(uh.current), Gg(b)) {
  3743. d = b.stateNode, c = b.type;
  3744. var f4 = b.memoizedProps;
  3745. switch (d[Of] = b, d[Pf] = f4, a3 = (b.mode & 1) !== 0, c) {
  3746. case "dialog":
  3747. D("cancel", d), D("close", d);
  3748. break;
  3749. case "iframe":
  3750. case "object":
  3751. case "embed":
  3752. D("load", d);
  3753. break;
  3754. case "video":
  3755. case "audio":
  3756. for (e = 0; e < lf.length; e++) D(lf[e], d);
  3757. break;
  3758. case "source":
  3759. D("error", d);
  3760. break;
  3761. case "img":
  3762. case "image":
  3763. case "link":
  3764. D(
  3765. "error",
  3766. d
  3767. ), D("load", d);
  3768. break;
  3769. case "details":
  3770. D("toggle", d);
  3771. break;
  3772. case "input":
  3773. Za(d, f4), D("invalid", d);
  3774. break;
  3775. case "select":
  3776. d._wrapperState = { wasMultiple: !!f4.multiple }, D("invalid", d);
  3777. break;
  3778. case "textarea":
  3779. hb(d, f4), D("invalid", d);
  3780. }
  3781. ub(c, f4), e = null;
  3782. for (var g2 in f4) if (f4.hasOwnProperty(g2)) {
  3783. var h3 = f4[g2];
  3784. g2 === "children" ? typeof h3 == "string" ? d.textContent !== h3 && (f4.suppressHydrationWarning !== !0 && Af(d.textContent, h3, a3), e = ["children", h3]) : typeof h3 == "number" && d.textContent !== "" + h3 && (f4.suppressHydrationWarning !== !0 && Af(
  3785. d.textContent,
  3786. h3,
  3787. a3
  3788. ), e = ["children", "" + h3]) : ea.hasOwnProperty(g2) && h3 != null && g2 === "onScroll" && D("scroll", d);
  3789. }
  3790. switch (c) {
  3791. case "input":
  3792. Va(d), db(d, f4, !0);
  3793. break;
  3794. case "textarea":
  3795. Va(d), jb(d);
  3796. break;
  3797. case "select":
  3798. case "option":
  3799. break;
  3800. default:
  3801. typeof f4.onClick == "function" && (d.onclick = Bf);
  3802. }
  3803. d = e, b.updateQueue = d, d !== null && (b.flags |= 4);
  3804. } else {
  3805. g2 = e.nodeType === 9 ? e : e.ownerDocument, a3 === "http://www.w3.org/1999/xhtml" && (a3 = kb(c)), a3 === "http://www.w3.org/1999/xhtml" ? c === "script" ? (a3 = g2.createElement("div"), a3.innerHTML = "<script><\/script>", a3 = a3.removeChild(a3.firstChild)) : typeof d.is == "string" ? a3 = g2.createElement(c, { is: d.is }) : (a3 = g2.createElement(c), c === "select" && (g2 = a3, d.multiple ? g2.multiple = !0 : d.size && (g2.size = d.size))) : a3 = g2.createElementNS(a3, c), a3[Of] = b, a3[Pf] = d, zj(a3, b, !1, !1), b.stateNode = a3;
  3806. a: {
  3807. switch (g2 = vb(c, d), c) {
  3808. case "dialog":
  3809. D("cancel", a3), D("close", a3), e = d;
  3810. break;
  3811. case "iframe":
  3812. case "object":
  3813. case "embed":
  3814. D("load", a3), e = d;
  3815. break;
  3816. case "video":
  3817. case "audio":
  3818. for (e = 0; e < lf.length; e++) D(lf[e], a3);
  3819. e = d;
  3820. break;
  3821. case "source":
  3822. D("error", a3), e = d;
  3823. break;
  3824. case "img":
  3825. case "image":
  3826. case "link":
  3827. D(
  3828. "error",
  3829. a3
  3830. ), D("load", a3), e = d;
  3831. break;
  3832. case "details":
  3833. D("toggle", a3), e = d;
  3834. break;
  3835. case "input":
  3836. Za(a3, d), e = Ya(a3, d), D("invalid", a3);
  3837. break;
  3838. case "option":
  3839. e = d;
  3840. break;
  3841. case "select":
  3842. a3._wrapperState = { wasMultiple: !!d.multiple }, e = A3({}, d, { value: void 0 }), D("invalid", a3);
  3843. break;
  3844. case "textarea":
  3845. hb(a3, d), e = gb(a3, d), D("invalid", a3);
  3846. break;
  3847. default:
  3848. e = d;
  3849. }
  3850. ub(c, e), h3 = e;
  3851. for (f4 in h3) if (h3.hasOwnProperty(f4)) {
  3852. var k = h3[f4];
  3853. f4 === "style" ? sb2(a3, k) : f4 === "dangerouslySetInnerHTML" ? (k = k ? k.__html : void 0, k != null && nb(a3, k)) : f4 === "children" ? typeof k == "string" ? (c !== "textarea" || k !== "") && ob(a3, k) : typeof k == "number" && ob(a3, "" + k) : f4 !== "suppressContentEditableWarning" && f4 !== "suppressHydrationWarning" && f4 !== "autoFocus" && (ea.hasOwnProperty(f4) ? k != null && f4 === "onScroll" && D("scroll", a3) : k != null && ta(a3, f4, k, g2));
  3854. }
  3855. switch (c) {
  3856. case "input":
  3857. Va(a3), db(a3, d, !1);
  3858. break;
  3859. case "textarea":
  3860. Va(a3), jb(a3);
  3861. break;
  3862. case "option":
  3863. d.value != null && a3.setAttribute("value", "" + Sa(d.value));
  3864. break;
  3865. case "select":
  3866. a3.multiple = !!d.multiple, f4 = d.value, f4 != null ? fb(a3, !!d.multiple, f4, !1) : d.defaultValue != null && fb(
  3867. a3,
  3868. !!d.multiple,
  3869. d.defaultValue,
  3870. !0
  3871. );
  3872. break;
  3873. default:
  3874. typeof e.onClick == "function" && (a3.onclick = Bf);
  3875. }
  3876. switch (c) {
  3877. case "button":
  3878. case "input":
  3879. case "select":
  3880. case "textarea":
  3881. d = !!d.autoFocus;
  3882. break a;
  3883. case "img":
  3884. d = !0;
  3885. break a;
  3886. default:
  3887. d = !1;
  3888. }
  3889. }
  3890. d && (b.flags |= 4);
  3891. }
  3892. b.ref !== null && (b.flags |= 512, b.flags |= 2097152);
  3893. }
  3894. return S(b), null;
  3895. case 6:
  3896. if (a3 && b.stateNode != null) Cj(a3, b, a3.memoizedProps, d);
  3897. else {
  3898. if (typeof d != "string" && b.stateNode === null) throw Error(p3(166));
  3899. if (c = xh(wh.current), xh(uh.current), Gg(b)) {
  3900. if (d = b.stateNode, c = b.memoizedProps, d[Of] = b, (f4 = d.nodeValue !== c) && (a3 = xg, a3 !== null)) switch (a3.tag) {
  3901. case 3:
  3902. Af(d.nodeValue, c, (a3.mode & 1) !== 0);
  3903. break;
  3904. case 5:
  3905. a3.memoizedProps.suppressHydrationWarning !== !0 && Af(d.nodeValue, c, (a3.mode & 1) !== 0);
  3906. }
  3907. f4 && (b.flags |= 4);
  3908. } else d = (c.nodeType === 9 ? c : c.ownerDocument).createTextNode(d), d[Of] = b, b.stateNode = d;
  3909. }
  3910. return S(b), null;
  3911. case 13:
  3912. if (E(L), d = b.memoizedState, a3 === null || a3.memoizedState !== null && a3.memoizedState.dehydrated !== null) {
  3913. if (I && yg !== null && (b.mode & 1) !== 0 && (b.flags & 128) === 0) Hg(), Ig(), b.flags |= 98560, f4 = !1;
  3914. else if (f4 = Gg(b), d !== null && d.dehydrated !== null) {
  3915. if (a3 === null) {
  3916. if (!f4) throw Error(p3(318));
  3917. if (f4 = b.memoizedState, f4 = f4 !== null ? f4.dehydrated : null, !f4) throw Error(p3(317));
  3918. f4[Of] = b;
  3919. } else Ig(), (b.flags & 128) === 0 && (b.memoizedState = null), b.flags |= 4;
  3920. S(b), f4 = !1;
  3921. } else zg !== null && (Fj(zg), zg = null), f4 = !0;
  3922. if (!f4) return b.flags & 65536 ? b : null;
  3923. }
  3924. return (b.flags & 128) !== 0 ? (b.lanes = c, b) : (d = d !== null, d !== (a3 !== null && a3.memoizedState !== null) && d && (b.child.flags |= 8192, (b.mode & 1) !== 0 && (a3 === null || (L.current & 1) !== 0 ? T2 === 0 && (T2 = 3) : tj())), b.updateQueue !== null && (b.flags |= 4), S(b), null);
  3925. case 4:
  3926. return zh(), Aj(a3, b), a3 === null && sf(b.stateNode.containerInfo), S(b), null;
  3927. case 10:
  3928. return ah(b.type._context), S(b), null;
  3929. case 17:
  3930. return Zf(b.type) && $f(), S(b), null;
  3931. case 19:
  3932. if (E(L), f4 = b.memoizedState, f4 === null) return S(b), null;
  3933. if (d = (b.flags & 128) !== 0, g2 = f4.rendering, g2 === null) if (d) Dj(f4, !1);
  3934. else {
  3935. if (T2 !== 0 || a3 !== null && (a3.flags & 128) !== 0) for (a3 = b.child; a3 !== null; ) {
  3936. if (g2 = Ch(a3), g2 !== null) {
  3937. for (b.flags |= 128, Dj(f4, !1), d = g2.updateQueue, d !== null && (b.updateQueue = d, b.flags |= 4), b.subtreeFlags = 0, d = c, c = b.child; c !== null; ) f4 = c, a3 = d, f4.flags &= 14680066, g2 = f4.alternate, g2 === null ? (f4.childLanes = 0, f4.lanes = a3, f4.child = null, f4.subtreeFlags = 0, f4.memoizedProps = null, f4.memoizedState = null, f4.updateQueue = null, f4.dependencies = null, f4.stateNode = null) : (f4.childLanes = g2.childLanes, f4.lanes = g2.lanes, f4.child = g2.child, f4.subtreeFlags = 0, f4.deletions = null, f4.memoizedProps = g2.memoizedProps, f4.memoizedState = g2.memoizedState, f4.updateQueue = g2.updateQueue, f4.type = g2.type, a3 = g2.dependencies, f4.dependencies = a3 === null ? null : { lanes: a3.lanes, firstContext: a3.firstContext }), c = c.sibling;
  3938. return G(L, L.current & 1 | 2), b.child;
  3939. }
  3940. a3 = a3.sibling;
  3941. }
  3942. f4.tail !== null && B3() > Gj && (b.flags |= 128, d = !0, Dj(f4, !1), b.lanes = 4194304);
  3943. }
  3944. else {
  3945. if (!d) if (a3 = Ch(g2), a3 !== null) {
  3946. if (b.flags |= 128, d = !0, c = a3.updateQueue, c !== null && (b.updateQueue = c, b.flags |= 4), Dj(f4, !0), f4.tail === null && f4.tailMode === "hidden" && !g2.alternate && !I) return S(b), null;
  3947. } else 2 * B3() - f4.renderingStartTime > Gj && c !== 1073741824 && (b.flags |= 128, d = !0, Dj(f4, !1), b.lanes = 4194304);
  3948. f4.isBackwards ? (g2.sibling = b.child, b.child = g2) : (c = f4.last, c !== null ? c.sibling = g2 : b.child = g2, f4.last = g2);
  3949. }
  3950. return f4.tail !== null ? (b = f4.tail, f4.rendering = b, f4.tail = b.sibling, f4.renderingStartTime = B3(), b.sibling = null, c = L.current, G(L, d ? c & 1 | 2 : c & 1), b) : (S(b), null);
  3951. case 22:
  3952. case 23:
  3953. return Hj(), d = b.memoizedState !== null, a3 !== null && a3.memoizedState !== null !== d && (b.flags |= 8192), d && (b.mode & 1) !== 0 ? (fj & 1073741824) !== 0 && (S(b), b.subtreeFlags & 6 && (b.flags |= 8192)) : S(b), null;
  3954. case 24:
  3955. return null;
  3956. case 25:
  3957. return null;
  3958. }
  3959. throw Error(p3(156, b.tag));
  3960. }
  3961. function Ij(a3, b) {
  3962. switch (wg(b), b.tag) {
  3963. case 1:
  3964. return Zf(b.type) && $f(), a3 = b.flags, a3 & 65536 ? (b.flags = a3 & -65537 | 128, b) : null;
  3965. case 3:
  3966. return zh(), E(Wf), E(H), Eh(), a3 = b.flags, (a3 & 65536) !== 0 && (a3 & 128) === 0 ? (b.flags = a3 & -65537 | 128, b) : null;
  3967. case 5:
  3968. return Bh(b), null;
  3969. case 13:
  3970. if (E(L), a3 = b.memoizedState, a3 !== null && a3.dehydrated !== null) {
  3971. if (b.alternate === null) throw Error(p3(340));
  3972. Ig();
  3973. }
  3974. return a3 = b.flags, a3 & 65536 ? (b.flags = a3 & -65537 | 128, b) : null;
  3975. case 19:
  3976. return E(L), null;
  3977. case 4:
  3978. return zh(), null;
  3979. case 10:
  3980. return ah(b.type._context), null;
  3981. case 22:
  3982. case 23:
  3983. return Hj(), null;
  3984. case 24:
  3985. return null;
  3986. default:
  3987. return null;
  3988. }
  3989. }
  3990. var Jj = !1, U = !1, Kj = typeof WeakSet == "function" ? WeakSet : Set, V = null;
  3991. function Lj(a3, b) {
  3992. var c = a3.ref;
  3993. if (c !== null) if (typeof c == "function") try {
  3994. c(null);
  3995. } catch (d) {
  3996. W(a3, b, d);
  3997. }
  3998. else c.current = null;
  3999. }
  4000. function Mj(a3, b, c) {
  4001. try {
  4002. c();
  4003. } catch (d) {
  4004. W(a3, b, d);
  4005. }
  4006. }
  4007. var Nj = !1;
  4008. function Oj(a3, b) {
  4009. if (Cf = dd, a3 = Me(), Ne(a3)) {
  4010. if ("selectionStart" in a3) var c = { start: a3.selectionStart, end: a3.selectionEnd };
  4011. else a: {
  4012. c = (c = a3.ownerDocument) && c.defaultView || window;
  4013. var d = c.getSelection && c.getSelection();
  4014. if (d && d.rangeCount !== 0) {
  4015. c = d.anchorNode;
  4016. var e = d.anchorOffset, f4 = d.focusNode;
  4017. d = d.focusOffset;
  4018. try {
  4019. c.nodeType, f4.nodeType;
  4020. } catch {
  4021. c = null;
  4022. break a;
  4023. }
  4024. var g2 = 0, h3 = -1, k = -1, l = 0, m3 = 0, q = a3, r2 = null;
  4025. b: for (; ; ) {
  4026. for (var y; q !== c || e !== 0 && q.nodeType !== 3 || (h3 = g2 + e), q !== f4 || d !== 0 && q.nodeType !== 3 || (k = g2 + d), q.nodeType === 3 && (g2 += q.nodeValue.length), (y = q.firstChild) !== null; )
  4027. r2 = q, q = y;
  4028. for (; ; ) {
  4029. if (q === a3) break b;
  4030. if (r2 === c && ++l === e && (h3 = g2), r2 === f4 && ++m3 === d && (k = g2), (y = q.nextSibling) !== null) break;
  4031. q = r2, r2 = q.parentNode;
  4032. }
  4033. q = y;
  4034. }
  4035. c = h3 === -1 || k === -1 ? null : { start: h3, end: k };
  4036. } else c = null;
  4037. }
  4038. c = c || { start: 0, end: 0 };
  4039. } else c = null;
  4040. for (Df = { focusedElem: a3, selectionRange: c }, dd = !1, V = b; V !== null; ) if (b = V, a3 = b.child, (b.subtreeFlags & 1028) !== 0 && a3 !== null) a3.return = b, V = a3;
  4041. else for (; V !== null; ) {
  4042. b = V;
  4043. try {
  4044. var n = b.alternate;
  4045. if ((b.flags & 1024) !== 0) switch (b.tag) {
  4046. case 0:
  4047. case 11:
  4048. case 15:
  4049. break;
  4050. case 1:
  4051. if (n !== null) {
  4052. var t = n.memoizedProps, J = n.memoizedState, x = b.stateNode, w = x.getSnapshotBeforeUpdate(b.elementType === b.type ? t : Ci(b.type, t), J);
  4053. x.__reactInternalSnapshotBeforeUpdate = w;
  4054. }
  4055. break;
  4056. case 3:
  4057. var u2 = b.stateNode.containerInfo;
  4058. u2.nodeType === 1 ? u2.textContent = "" : u2.nodeType === 9 && u2.documentElement && u2.removeChild(u2.documentElement);
  4059. break;
  4060. case 5:
  4061. case 6:
  4062. case 4:
  4063. case 17:
  4064. break;
  4065. default:
  4066. throw Error(p3(163));
  4067. }
  4068. } catch (F) {
  4069. W(b, b.return, F);
  4070. }
  4071. if (a3 = b.sibling, a3 !== null) {
  4072. a3.return = b.return, V = a3;
  4073. break;
  4074. }
  4075. V = b.return;
  4076. }
  4077. return n = Nj, Nj = !1, n;
  4078. }
  4079. function Pj(a3, b, c) {
  4080. var d = b.updateQueue;
  4081. if (d = d !== null ? d.lastEffect : null, d !== null) {
  4082. var e = d = d.next;
  4083. do {
  4084. if ((e.tag & a3) === a3) {
  4085. var f4 = e.destroy;
  4086. e.destroy = void 0, f4 !== void 0 && Mj(b, c, f4);
  4087. }
  4088. e = e.next;
  4089. } while (e !== d);
  4090. }
  4091. }
  4092. function Qj(a3, b) {
  4093. if (b = b.updateQueue, b = b !== null ? b.lastEffect : null, b !== null) {
  4094. var c = b = b.next;
  4095. do {
  4096. if ((c.tag & a3) === a3) {
  4097. var d = c.create;
  4098. c.destroy = d();
  4099. }
  4100. c = c.next;
  4101. } while (c !== b);
  4102. }
  4103. }
  4104. function Rj(a3) {
  4105. var b = a3.ref;
  4106. if (b !== null) {
  4107. var c = a3.stateNode;
  4108. switch (a3.tag) {
  4109. case 5:
  4110. a3 = c;
  4111. break;
  4112. default:
  4113. a3 = c;
  4114. }
  4115. typeof b == "function" ? b(a3) : b.current = a3;
  4116. }
  4117. }
  4118. function Sj(a3) {
  4119. var b = a3.alternate;
  4120. b !== null && (a3.alternate = null, Sj(b)), a3.child = null, a3.deletions = null, a3.sibling = null, a3.tag === 5 && (b = a3.stateNode, b !== null && (delete b[Of], delete b[Pf], delete b[of], delete b[Qf], delete b[Rf])), a3.stateNode = null, a3.return = null, a3.dependencies = null, a3.memoizedProps = null, a3.memoizedState = null, a3.pendingProps = null, a3.stateNode = null, a3.updateQueue = null;
  4121. }
  4122. function Tj(a3) {
  4123. return a3.tag === 5 || a3.tag === 3 || a3.tag === 4;
  4124. }
  4125. function Uj(a3) {
  4126. a: for (; ; ) {
  4127. for (; a3.sibling === null; ) {
  4128. if (a3.return === null || Tj(a3.return)) return null;
  4129. a3 = a3.return;
  4130. }
  4131. for (a3.sibling.return = a3.return, a3 = a3.sibling; a3.tag !== 5 && a3.tag !== 6 && a3.tag !== 18; ) {
  4132. if (a3.flags & 2 || a3.child === null || a3.tag === 4) continue a;
  4133. a3.child.return = a3, a3 = a3.child;
  4134. }
  4135. if (!(a3.flags & 2)) return a3.stateNode;
  4136. }
  4137. }
  4138. function Vj(a3, b, c) {
  4139. var d = a3.tag;
  4140. if (d === 5 || d === 6) a3 = a3.stateNode, b ? c.nodeType === 8 ? c.parentNode.insertBefore(a3, b) : c.insertBefore(a3, b) : (c.nodeType === 8 ? (b = c.parentNode, b.insertBefore(a3, c)) : (b = c, b.appendChild(a3)), c = c._reactRootContainer, c != null || b.onclick !== null || (b.onclick = Bf));
  4141. else if (d !== 4 && (a3 = a3.child, a3 !== null)) for (Vj(a3, b, c), a3 = a3.sibling; a3 !== null; ) Vj(a3, b, c), a3 = a3.sibling;
  4142. }
  4143. function Wj(a3, b, c) {
  4144. var d = a3.tag;
  4145. if (d === 5 || d === 6) a3 = a3.stateNode, b ? c.insertBefore(a3, b) : c.appendChild(a3);
  4146. else if (d !== 4 && (a3 = a3.child, a3 !== null)) for (Wj(a3, b, c), a3 = a3.sibling; a3 !== null; ) Wj(a3, b, c), a3 = a3.sibling;
  4147. }
  4148. var X = null, Xj = !1;
  4149. function Yj(a3, b, c) {
  4150. for (c = c.child; c !== null; ) Zj(a3, b, c), c = c.sibling;
  4151. }
  4152. function Zj(a3, b, c) {
  4153. if (lc && typeof lc.onCommitFiberUnmount == "function") try {
  4154. lc.onCommitFiberUnmount(kc, c);
  4155. } catch {
  4156. }
  4157. switch (c.tag) {
  4158. case 5:
  4159. U || Lj(c, b);
  4160. case 6:
  4161. var d = X, e = Xj;
  4162. X = null, Yj(a3, b, c), X = d, Xj = e, X !== null && (Xj ? (a3 = X, c = c.stateNode, a3.nodeType === 8 ? a3.parentNode.removeChild(c) : a3.removeChild(c)) : X.removeChild(c.stateNode));
  4163. break;
  4164. case 18:
  4165. X !== null && (Xj ? (a3 = X, c = c.stateNode, a3.nodeType === 8 ? Kf(a3.parentNode, c) : a3.nodeType === 1 && Kf(a3, c), bd(a3)) : Kf(X, c.stateNode));
  4166. break;
  4167. case 4:
  4168. d = X, e = Xj, X = c.stateNode.containerInfo, Xj = !0, Yj(a3, b, c), X = d, Xj = e;
  4169. break;
  4170. case 0:
  4171. case 11:
  4172. case 14:
  4173. case 15:
  4174. if (!U && (d = c.updateQueue, d !== null && (d = d.lastEffect, d !== null))) {
  4175. e = d = d.next;
  4176. do {
  4177. var f4 = e, g2 = f4.destroy;
  4178. f4 = f4.tag, g2 !== void 0 && ((f4 & 2) !== 0 || (f4 & 4) !== 0) && Mj(c, b, g2), e = e.next;
  4179. } while (e !== d);
  4180. }
  4181. Yj(a3, b, c);
  4182. break;
  4183. case 1:
  4184. if (!U && (Lj(c, b), d = c.stateNode, typeof d.componentWillUnmount == "function")) try {
  4185. d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount();
  4186. } catch (h3) {
  4187. W(c, b, h3);
  4188. }
  4189. Yj(a3, b, c);
  4190. break;
  4191. case 21:
  4192. Yj(a3, b, c);
  4193. break;
  4194. case 22:
  4195. c.mode & 1 ? (U = (d = U) || c.memoizedState !== null, Yj(a3, b, c), U = d) : Yj(a3, b, c);
  4196. break;
  4197. default:
  4198. Yj(a3, b, c);
  4199. }
  4200. }
  4201. function ak(a3) {
  4202. var b = a3.updateQueue;
  4203. if (b !== null) {
  4204. a3.updateQueue = null;
  4205. var c = a3.stateNode;
  4206. c === null && (c = a3.stateNode = new Kj()), b.forEach(function(b2) {
  4207. var d = bk.bind(null, a3, b2);
  4208. c.has(b2) || (c.add(b2), b2.then(d, d));
  4209. });
  4210. }
  4211. }
  4212. function ck(a3, b) {
  4213. var c = b.deletions;
  4214. if (c !== null) for (var d = 0; d < c.length; d++) {
  4215. var e = c[d];
  4216. try {
  4217. var f4 = a3, g2 = b, h3 = g2;
  4218. a: for (; h3 !== null; ) {
  4219. switch (h3.tag) {
  4220. case 5:
  4221. X = h3.stateNode, Xj = !1;
  4222. break a;
  4223. case 3:
  4224. X = h3.stateNode.containerInfo, Xj = !0;
  4225. break a;
  4226. case 4:
  4227. X = h3.stateNode.containerInfo, Xj = !0;
  4228. break a;
  4229. }
  4230. h3 = h3.return;
  4231. }
  4232. if (X === null) throw Error(p3(160));
  4233. Zj(f4, g2, e), X = null, Xj = !1;
  4234. var k = e.alternate;
  4235. k !== null && (k.return = null), e.return = null;
  4236. } catch (l) {
  4237. W(e, b, l);
  4238. }
  4239. }
  4240. if (b.subtreeFlags & 12854) for (b = b.child; b !== null; ) dk(b, a3), b = b.sibling;
  4241. }
  4242. function dk(a3, b) {
  4243. var c = a3.alternate, d = a3.flags;
  4244. switch (a3.tag) {
  4245. case 0:
  4246. case 11:
  4247. case 14:
  4248. case 15:
  4249. if (ck(b, a3), ek(a3), d & 4) {
  4250. try {
  4251. Pj(3, a3, a3.return), Qj(3, a3);
  4252. } catch (t) {
  4253. W(a3, a3.return, t);
  4254. }
  4255. try {
  4256. Pj(5, a3, a3.return);
  4257. } catch (t) {
  4258. W(a3, a3.return, t);
  4259. }
  4260. }
  4261. break;
  4262. case 1:
  4263. ck(b, a3), ek(a3), d & 512 && c !== null && Lj(c, c.return);
  4264. break;
  4265. case 5:
  4266. if (ck(b, a3), ek(a3), d & 512 && c !== null && Lj(c, c.return), a3.flags & 32) {
  4267. var e = a3.stateNode;
  4268. try {
  4269. ob(e, "");
  4270. } catch (t) {
  4271. W(a3, a3.return, t);
  4272. }
  4273. }
  4274. if (d & 4 && (e = a3.stateNode, e != null)) {
  4275. var f4 = a3.memoizedProps, g2 = c !== null ? c.memoizedProps : f4, h3 = a3.type, k = a3.updateQueue;
  4276. if (a3.updateQueue = null, k !== null) try {
  4277. h3 === "input" && f4.type === "radio" && f4.name != null && ab(e, f4), vb(h3, g2);
  4278. var l = vb(h3, f4);
  4279. for (g2 = 0; g2 < k.length; g2 += 2) {
  4280. var m3 = k[g2], q = k[g2 + 1];
  4281. m3 === "style" ? sb2(e, q) : m3 === "dangerouslySetInnerHTML" ? nb(e, q) : m3 === "children" ? ob(e, q) : ta(e, m3, q, l);
  4282. }
  4283. switch (h3) {
  4284. case "input":
  4285. bb(e, f4);
  4286. break;
  4287. case "textarea":
  4288. ib(e, f4);
  4289. break;
  4290. case "select":
  4291. var r2 = e._wrapperState.wasMultiple;
  4292. e._wrapperState.wasMultiple = !!f4.multiple;
  4293. var y = f4.value;
  4294. y != null ? fb(e, !!f4.multiple, y, !1) : r2 !== !!f4.multiple && (f4.defaultValue != null ? fb(
  4295. e,
  4296. !!f4.multiple,
  4297. f4.defaultValue,
  4298. !0
  4299. ) : fb(e, !!f4.multiple, f4.multiple ? [] : "", !1));
  4300. }
  4301. e[Pf] = f4;
  4302. } catch (t) {
  4303. W(a3, a3.return, t);
  4304. }
  4305. }
  4306. break;
  4307. case 6:
  4308. if (ck(b, a3), ek(a3), d & 4) {
  4309. if (a3.stateNode === null) throw Error(p3(162));
  4310. e = a3.stateNode, f4 = a3.memoizedProps;
  4311. try {
  4312. e.nodeValue = f4;
  4313. } catch (t) {
  4314. W(a3, a3.return, t);
  4315. }
  4316. }
  4317. break;
  4318. case 3:
  4319. if (ck(b, a3), ek(a3), d & 4 && c !== null && c.memoizedState.isDehydrated) try {
  4320. bd(b.containerInfo);
  4321. } catch (t) {
  4322. W(a3, a3.return, t);
  4323. }
  4324. break;
  4325. case 4:
  4326. ck(b, a3), ek(a3);
  4327. break;
  4328. case 13:
  4329. ck(b, a3), ek(a3), e = a3.child, e.flags & 8192 && (f4 = e.memoizedState !== null, e.stateNode.isHidden = f4, !f4 || e.alternate !== null && e.alternate.memoizedState !== null || (fk = B3())), d & 4 && ak(a3);
  4330. break;
  4331. case 22:
  4332. if (m3 = c !== null && c.memoizedState !== null, a3.mode & 1 ? (U = (l = U) || m3, ck(b, a3), U = l) : ck(b, a3), ek(a3), d & 8192) {
  4333. if (l = a3.memoizedState !== null, (a3.stateNode.isHidden = l) && !m3 && (a3.mode & 1) !== 0) for (V = a3, m3 = a3.child; m3 !== null; ) {
  4334. for (q = V = m3; V !== null; ) {
  4335. switch (r2 = V, y = r2.child, r2.tag) {
  4336. case 0:
  4337. case 11:
  4338. case 14:
  4339. case 15:
  4340. Pj(4, r2, r2.return);
  4341. break;
  4342. case 1:
  4343. Lj(r2, r2.return);
  4344. var n = r2.stateNode;
  4345. if (typeof n.componentWillUnmount == "function") {
  4346. d = r2, c = r2.return;
  4347. try {
  4348. b = d, n.props = b.memoizedProps, n.state = b.memoizedState, n.componentWillUnmount();
  4349. } catch (t) {
  4350. W(d, c, t);
  4351. }
  4352. }
  4353. break;
  4354. case 5:
  4355. Lj(r2, r2.return);
  4356. break;
  4357. case 22:
  4358. if (r2.memoizedState !== null) {
  4359. gk(q);
  4360. continue;
  4361. }
  4362. }
  4363. y !== null ? (y.return = r2, V = y) : gk(q);
  4364. }
  4365. m3 = m3.sibling;
  4366. }
  4367. a: for (m3 = null, q = a3; ; ) {
  4368. if (q.tag === 5) {
  4369. if (m3 === null) {
  4370. m3 = q;
  4371. try {
  4372. e = q.stateNode, l ? (f4 = e.style, typeof f4.setProperty == "function" ? f4.setProperty("display", "none", "important") : f4.display = "none") : (h3 = q.stateNode, k = q.memoizedProps.style, g2 = k != null && k.hasOwnProperty("display") ? k.display : null, h3.style.display = rb("display", g2));
  4373. } catch (t) {
  4374. W(a3, a3.return, t);
  4375. }
  4376. }
  4377. } else if (q.tag === 6) {
  4378. if (m3 === null) try {
  4379. q.stateNode.nodeValue = l ? "" : q.memoizedProps;
  4380. } catch (t) {
  4381. W(a3, a3.return, t);
  4382. }
  4383. } else if ((q.tag !== 22 && q.tag !== 23 || q.memoizedState === null || q === a3) && q.child !== null) {
  4384. q.child.return = q, q = q.child;
  4385. continue;
  4386. }
  4387. if (q === a3) break a;
  4388. for (; q.sibling === null; ) {
  4389. if (q.return === null || q.return === a3) break a;
  4390. m3 === q && (m3 = null), q = q.return;
  4391. }
  4392. m3 === q && (m3 = null), q.sibling.return = q.return, q = q.sibling;
  4393. }
  4394. }
  4395. break;
  4396. case 19:
  4397. ck(b, a3), ek(a3), d & 4 && ak(a3);
  4398. break;
  4399. case 21:
  4400. break;
  4401. default:
  4402. ck(
  4403. b,
  4404. a3
  4405. ), ek(a3);
  4406. }
  4407. }
  4408. function ek(a3) {
  4409. var b = a3.flags;
  4410. if (b & 2) {
  4411. try {
  4412. a: {
  4413. for (var c = a3.return; c !== null; ) {
  4414. if (Tj(c)) {
  4415. var d = c;
  4416. break a;
  4417. }
  4418. c = c.return;
  4419. }
  4420. throw Error(p3(160));
  4421. }
  4422. switch (d.tag) {
  4423. case 5:
  4424. var e = d.stateNode;
  4425. d.flags & 32 && (ob(e, ""), d.flags &= -33);
  4426. var f4 = Uj(a3);
  4427. Wj(a3, f4, e);
  4428. break;
  4429. case 3:
  4430. case 4:
  4431. var g2 = d.stateNode.containerInfo, h3 = Uj(a3);
  4432. Vj(a3, h3, g2);
  4433. break;
  4434. default:
  4435. throw Error(p3(161));
  4436. }
  4437. } catch (k) {
  4438. W(a3, a3.return, k);
  4439. }
  4440. a3.flags &= -3;
  4441. }
  4442. b & 4096 && (a3.flags &= -4097);
  4443. }
  4444. function hk(a3, b, c) {
  4445. V = a3, ik(a3, b, c);
  4446. }
  4447. function ik(a3, b, c) {
  4448. for (var d = (a3.mode & 1) !== 0; V !== null; ) {
  4449. var e = V, f4 = e.child;
  4450. if (e.tag === 22 && d) {
  4451. var g2 = e.memoizedState !== null || Jj;
  4452. if (!g2) {
  4453. var h3 = e.alternate, k = h3 !== null && h3.memoizedState !== null || U;
  4454. h3 = Jj;
  4455. var l = U;
  4456. if (Jj = g2, (U = k) && !l) for (V = e; V !== null; ) g2 = V, k = g2.child, g2.tag === 22 && g2.memoizedState !== null ? jk(e) : k !== null ? (k.return = g2, V = k) : jk(e);
  4457. for (; f4 !== null; ) V = f4, ik(f4, b, c), f4 = f4.sibling;
  4458. V = e, Jj = h3, U = l;
  4459. }
  4460. kk(a3, b, c);
  4461. } else (e.subtreeFlags & 8772) !== 0 && f4 !== null ? (f4.return = e, V = f4) : kk(a3, b, c);
  4462. }
  4463. }
  4464. function kk(a3) {
  4465. for (; V !== null; ) {
  4466. var b = V;
  4467. if ((b.flags & 8772) !== 0) {
  4468. var c = b.alternate;
  4469. try {
  4470. if ((b.flags & 8772) !== 0) switch (b.tag) {
  4471. case 0:
  4472. case 11:
  4473. case 15:
  4474. U || Qj(5, b);
  4475. break;
  4476. case 1:
  4477. var d = b.stateNode;
  4478. if (b.flags & 4 && !U) if (c === null) d.componentDidMount();
  4479. else {
  4480. var e = b.elementType === b.type ? c.memoizedProps : Ci(b.type, c.memoizedProps);
  4481. d.componentDidUpdate(e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate);
  4482. }
  4483. var f4 = b.updateQueue;
  4484. f4 !== null && sh(b, f4, d);
  4485. break;
  4486. case 3:
  4487. var g2 = b.updateQueue;
  4488. if (g2 !== null) {
  4489. if (c = null, b.child !== null) switch (b.child.tag) {
  4490. case 5:
  4491. c = b.child.stateNode;
  4492. break;
  4493. case 1:
  4494. c = b.child.stateNode;
  4495. }
  4496. sh(b, g2, c);
  4497. }
  4498. break;
  4499. case 5:
  4500. var h3 = b.stateNode;
  4501. if (c === null && b.flags & 4) {
  4502. c = h3;
  4503. var k = b.memoizedProps;
  4504. switch (b.type) {
  4505. case "button":
  4506. case "input":
  4507. case "select":
  4508. case "textarea":
  4509. k.autoFocus && c.focus();
  4510. break;
  4511. case "img":
  4512. k.src && (c.src = k.src);
  4513. }
  4514. }
  4515. break;
  4516. case 6:
  4517. break;
  4518. case 4:
  4519. break;
  4520. case 12:
  4521. break;
  4522. case 13:
  4523. if (b.memoizedState === null) {
  4524. var l = b.alternate;
  4525. if (l !== null) {
  4526. var m3 = l.memoizedState;
  4527. if (m3 !== null) {
  4528. var q = m3.dehydrated;
  4529. q !== null && bd(q);
  4530. }
  4531. }
  4532. }
  4533. break;
  4534. case 19:
  4535. case 17:
  4536. case 21:
  4537. case 22:
  4538. case 23:
  4539. case 25:
  4540. break;
  4541. default:
  4542. throw Error(p3(163));
  4543. }
  4544. U || b.flags & 512 && Rj(b);
  4545. } catch (r2) {
  4546. W(b, b.return, r2);
  4547. }
  4548. }
  4549. if (b === a3) {
  4550. V = null;
  4551. break;
  4552. }
  4553. if (c = b.sibling, c !== null) {
  4554. c.return = b.return, V = c;
  4555. break;
  4556. }
  4557. V = b.return;
  4558. }
  4559. }
  4560. function gk(a3) {
  4561. for (; V !== null; ) {
  4562. var b = V;
  4563. if (b === a3) {
  4564. V = null;
  4565. break;
  4566. }
  4567. var c = b.sibling;
  4568. if (c !== null) {
  4569. c.return = b.return, V = c;
  4570. break;
  4571. }
  4572. V = b.return;
  4573. }
  4574. }
  4575. function jk(a3) {
  4576. for (; V !== null; ) {
  4577. var b = V;
  4578. try {
  4579. switch (b.tag) {
  4580. case 0:
  4581. case 11:
  4582. case 15:
  4583. var c = b.return;
  4584. try {
  4585. Qj(4, b);
  4586. } catch (k) {
  4587. W(b, c, k);
  4588. }
  4589. break;
  4590. case 1:
  4591. var d = b.stateNode;
  4592. if (typeof d.componentDidMount == "function") {
  4593. var e = b.return;
  4594. try {
  4595. d.componentDidMount();
  4596. } catch (k) {
  4597. W(b, e, k);
  4598. }
  4599. }
  4600. var f4 = b.return;
  4601. try {
  4602. Rj(b);
  4603. } catch (k) {
  4604. W(b, f4, k);
  4605. }
  4606. break;
  4607. case 5:
  4608. var g2 = b.return;
  4609. try {
  4610. Rj(b);
  4611. } catch (k) {
  4612. W(b, g2, k);
  4613. }
  4614. }
  4615. } catch (k) {
  4616. W(b, b.return, k);
  4617. }
  4618. if (b === a3) {
  4619. V = null;
  4620. break;
  4621. }
  4622. var h3 = b.sibling;
  4623. if (h3 !== null) {
  4624. h3.return = b.return, V = h3;
  4625. break;
  4626. }
  4627. V = b.return;
  4628. }
  4629. }
  4630. var lk = Math.ceil, mk = ua.ReactCurrentDispatcher, nk = ua.ReactCurrentOwner, ok = ua.ReactCurrentBatchConfig, K2 = 0, Q = null, Y = null, Z = 0, fj = 0, ej = Uf(0), T2 = 0, pk = null, rh = 0, qk = 0, rk = 0, sk = null, tk = null, fk = 0, Gj = 1 / 0, uk = null, Oi = !1, Pi = null, Ri = null, vk = !1, wk = null, xk = 0, yk = 0, zk = null, Ak = -1, Bk = 0;
  4631. function R() {
  4632. return (K2 & 6) !== 0 ? B3() : Ak !== -1 ? Ak : Ak = B3();
  4633. }
  4634. function yi(a3) {
  4635. return (a3.mode & 1) === 0 ? 1 : (K2 & 2) !== 0 && Z !== 0 ? Z & -Z : Kg.transition !== null ? (Bk === 0 && (Bk = yc()), Bk) : (a3 = C3, a3 !== 0 || (a3 = window.event, a3 = a3 === void 0 ? 16 : jd(a3.type)), a3);
  4636. }
  4637. function gi(a3, b, c, d) {
  4638. if (50 < yk) throw yk = 0, zk = null, Error(p3(185));
  4639. Ac(a3, c, d), ((K2 & 2) === 0 || a3 !== Q) && (a3 === Q && ((K2 & 2) === 0 && (qk |= c), T2 === 4 && Ck(a3, Z)), Dk(a3, d), c === 1 && K2 === 0 && (b.mode & 1) === 0 && (Gj = B3() + 500, fg && jg()));
  4640. }
  4641. function Dk(a3, b) {
  4642. var c = a3.callbackNode;
  4643. wc(a3, b);
  4644. var d = uc(a3, a3 === Q ? Z : 0);
  4645. if (d === 0) c !== null && bc(c), a3.callbackNode = null, a3.callbackPriority = 0;
  4646. else if (b = d & -d, a3.callbackPriority !== b) {
  4647. if (c != null && bc(c), b === 1) a3.tag === 0 ? ig(Ek.bind(null, a3)) : hg(Ek.bind(null, a3)), Jf(function() {
  4648. (K2 & 6) === 0 && jg();
  4649. }), c = null;
  4650. else {
  4651. switch (Dc(d)) {
  4652. case 1:
  4653. c = fc;
  4654. break;
  4655. case 4:
  4656. c = gc;
  4657. break;
  4658. case 16:
  4659. c = hc;
  4660. break;
  4661. case 536870912:
  4662. c = jc;
  4663. break;
  4664. default:
  4665. c = hc;
  4666. }
  4667. c = Fk(c, Gk.bind(null, a3));
  4668. }
  4669. a3.callbackPriority = b, a3.callbackNode = c;
  4670. }
  4671. }
  4672. function Gk(a3, b) {
  4673. if (Ak = -1, Bk = 0, (K2 & 6) !== 0) throw Error(p3(327));
  4674. var c = a3.callbackNode;
  4675. if (Hk() && a3.callbackNode !== c) return null;
  4676. var d = uc(a3, a3 === Q ? Z : 0);
  4677. if (d === 0) return null;
  4678. if ((d & 30) !== 0 || (d & a3.expiredLanes) !== 0 || b) b = Ik(a3, d);
  4679. else {
  4680. b = d;
  4681. var e = K2;
  4682. K2 |= 2;
  4683. var f4 = Jk();
  4684. (Q !== a3 || Z !== b) && (uk = null, Gj = B3() + 500, Kk(a3, b));
  4685. do
  4686. try {
  4687. Lk();
  4688. break;
  4689. } catch (h3) {
  4690. Mk(a3, h3);
  4691. }
  4692. while (!0);
  4693. $g(), mk.current = f4, K2 = e, Y !== null ? b = 0 : (Q = null, Z = 0, b = T2);
  4694. }
  4695. if (b !== 0) {
  4696. if (b === 2 && (e = xc(a3), e !== 0 && (d = e, b = Nk(a3, e))), b === 1) throw c = pk, Kk(a3, 0), Ck(a3, d), Dk(a3, B3()), c;
  4697. if (b === 6) Ck(a3, d);
  4698. else {
  4699. if (e = a3.current.alternate, (d & 30) === 0 && !Ok(e) && (b = Ik(a3, d), b === 2 && (f4 = xc(a3), f4 !== 0 && (d = f4, b = Nk(a3, f4))), b === 1)) throw c = pk, Kk(a3, 0), Ck(a3, d), Dk(a3, B3()), c;
  4700. switch (a3.finishedWork = e, a3.finishedLanes = d, b) {
  4701. case 0:
  4702. case 1:
  4703. throw Error(p3(345));
  4704. case 2:
  4705. Pk(a3, tk, uk);
  4706. break;
  4707. case 3:
  4708. if (Ck(a3, d), (d & 130023424) === d && (b = fk + 500 - B3(), 10 < b)) {
  4709. if (uc(a3, 0) !== 0) break;
  4710. if (e = a3.suspendedLanes, (e & d) !== d) {
  4711. R(), a3.pingedLanes |= a3.suspendedLanes & e;
  4712. break;
  4713. }
  4714. a3.timeoutHandle = Ff(Pk.bind(null, a3, tk, uk), b);
  4715. break;
  4716. }
  4717. Pk(a3, tk, uk);
  4718. break;
  4719. case 4:
  4720. if (Ck(a3, d), (d & 4194240) === d) break;
  4721. for (b = a3.eventTimes, e = -1; 0 < d; ) {
  4722. var g2 = 31 - oc(d);
  4723. f4 = 1 << g2, g2 = b[g2], g2 > e && (e = g2), d &= ~f4;
  4724. }
  4725. if (d = e, d = B3() - d, d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3e3 > d ? 3e3 : 4320 > d ? 4320 : 1960 * lk(d / 1960)) - d, 10 < d) {
  4726. a3.timeoutHandle = Ff(Pk.bind(null, a3, tk, uk), d);
  4727. break;
  4728. }
  4729. Pk(a3, tk, uk);
  4730. break;
  4731. case 5:
  4732. Pk(a3, tk, uk);
  4733. break;
  4734. default:
  4735. throw Error(p3(329));
  4736. }
  4737. }
  4738. }
  4739. return Dk(a3, B3()), a3.callbackNode === c ? Gk.bind(null, a3) : null;
  4740. }
  4741. function Nk(a3, b) {
  4742. var c = sk;
  4743. return a3.current.memoizedState.isDehydrated && (Kk(a3, b).flags |= 256), a3 = Ik(a3, b), a3 !== 2 && (b = tk, tk = c, b !== null && Fj(b)), a3;
  4744. }
  4745. function Fj(a3) {
  4746. tk === null ? tk = a3 : tk.push.apply(tk, a3);
  4747. }
  4748. function Ok(a3) {
  4749. for (var b = a3; ; ) {
  4750. if (b.flags & 16384) {
  4751. var c = b.updateQueue;
  4752. if (c !== null && (c = c.stores, c !== null)) for (var d = 0; d < c.length; d++) {
  4753. var e = c[d], f4 = e.getSnapshot;
  4754. e = e.value;
  4755. try {
  4756. if (!He(f4(), e)) return !1;
  4757. } catch {
  4758. return !1;
  4759. }
  4760. }
  4761. }
  4762. if (c = b.child, b.subtreeFlags & 16384 && c !== null) c.return = b, b = c;
  4763. else {
  4764. if (b === a3) break;
  4765. for (; b.sibling === null; ) {
  4766. if (b.return === null || b.return === a3) return !0;
  4767. b = b.return;
  4768. }
  4769. b.sibling.return = b.return, b = b.sibling;
  4770. }
  4771. }
  4772. return !0;
  4773. }
  4774. function Ck(a3, b) {
  4775. for (b &= ~rk, b &= ~qk, a3.suspendedLanes |= b, a3.pingedLanes &= ~b, a3 = a3.expirationTimes; 0 < b; ) {
  4776. var c = 31 - oc(b), d = 1 << c;
  4777. a3[c] = -1, b &= ~d;
  4778. }
  4779. }
  4780. function Ek(a3) {
  4781. if ((K2 & 6) !== 0) throw Error(p3(327));
  4782. Hk();
  4783. var b = uc(a3, 0);
  4784. if ((b & 1) === 0) return Dk(a3, B3()), null;
  4785. var c = Ik(a3, b);
  4786. if (a3.tag !== 0 && c === 2) {
  4787. var d = xc(a3);
  4788. d !== 0 && (b = d, c = Nk(a3, d));
  4789. }
  4790. if (c === 1) throw c = pk, Kk(a3, 0), Ck(a3, b), Dk(a3, B3()), c;
  4791. if (c === 6) throw Error(p3(345));
  4792. return a3.finishedWork = a3.current.alternate, a3.finishedLanes = b, Pk(a3, tk, uk), Dk(a3, B3()), null;
  4793. }
  4794. function Qk(a3, b) {
  4795. var c = K2;
  4796. K2 |= 1;
  4797. try {
  4798. return a3(b);
  4799. } finally {
  4800. K2 = c, K2 === 0 && (Gj = B3() + 500, fg && jg());
  4801. }
  4802. }
  4803. function Rk(a3) {
  4804. wk !== null && wk.tag === 0 && (K2 & 6) === 0 && Hk();
  4805. var b = K2;
  4806. K2 |= 1;
  4807. var c = ok.transition, d = C3;
  4808. try {
  4809. if (ok.transition = null, C3 = 1, a3) return a3();
  4810. } finally {
  4811. C3 = d, ok.transition = c, K2 = b, (K2 & 6) === 0 && jg();
  4812. }
  4813. }
  4814. function Hj() {
  4815. fj = ej.current, E(ej);
  4816. }
  4817. function Kk(a3, b) {
  4818. a3.finishedWork = null, a3.finishedLanes = 0;
  4819. var c = a3.timeoutHandle;
  4820. if (c !== -1 && (a3.timeoutHandle = -1, Gf(c)), Y !== null) for (c = Y.return; c !== null; ) {
  4821. var d = c;
  4822. switch (wg(d), d.tag) {
  4823. case 1:
  4824. d = d.type.childContextTypes, d != null && $f();
  4825. break;
  4826. case 3:
  4827. zh(), E(Wf), E(H), Eh();
  4828. break;
  4829. case 5:
  4830. Bh(d);
  4831. break;
  4832. case 4:
  4833. zh();
  4834. break;
  4835. case 13:
  4836. E(L);
  4837. break;
  4838. case 19:
  4839. E(L);
  4840. break;
  4841. case 10:
  4842. ah(d.type._context);
  4843. break;
  4844. case 22:
  4845. case 23:
  4846. Hj();
  4847. }
  4848. c = c.return;
  4849. }
  4850. if (Q = a3, Y = a3 = Pg(a3.current, null), Z = fj = b, T2 = 0, pk = null, rk = qk = rh = 0, tk = sk = null, fh !== null) {
  4851. for (b = 0; b < fh.length; b++) if (c = fh[b], d = c.interleaved, d !== null) {
  4852. c.interleaved = null;
  4853. var e = d.next, f4 = c.pending;
  4854. if (f4 !== null) {
  4855. var g2 = f4.next;
  4856. f4.next = e, d.next = g2;
  4857. }
  4858. c.pending = d;
  4859. }
  4860. fh = null;
  4861. }
  4862. return a3;
  4863. }
  4864. function Mk(a3, b) {
  4865. do {
  4866. var c = Y;
  4867. try {
  4868. if ($g(), Fh.current = Rh, Ih) {
  4869. for (var d = M.memoizedState; d !== null; ) {
  4870. var e = d.queue;
  4871. e !== null && (e.pending = null), d = d.next;
  4872. }
  4873. Ih = !1;
  4874. }
  4875. if (Hh = 0, O = N = M = null, Jh = !1, Kh = 0, nk.current = null, c === null || c.return === null) {
  4876. T2 = 1, pk = b, Y = null;
  4877. break;
  4878. }
  4879. a: {
  4880. var f4 = a3, g2 = c.return, h3 = c, k = b;
  4881. if (b = Z, h3.flags |= 32768, k !== null && typeof k == "object" && typeof k.then == "function") {
  4882. var l = k, m3 = h3, q = m3.tag;
  4883. if ((m3.mode & 1) === 0 && (q === 0 || q === 11 || q === 15)) {
  4884. var r2 = m3.alternate;
  4885. r2 ? (m3.updateQueue = r2.updateQueue, m3.memoizedState = r2.memoizedState, m3.lanes = r2.lanes) : (m3.updateQueue = null, m3.memoizedState = null);
  4886. }
  4887. var y = Ui(g2);
  4888. if (y !== null) {
  4889. y.flags &= -257, Vi(y, g2, h3, f4, b), y.mode & 1 && Si(f4, l, b), b = y, k = l;
  4890. var n = b.updateQueue;
  4891. if (n === null) {
  4892. var t = /* @__PURE__ */ new Set();
  4893. t.add(k), b.updateQueue = t;
  4894. } else n.add(k);
  4895. break a;
  4896. } else {
  4897. if ((b & 1) === 0) {
  4898. Si(f4, l, b), tj();
  4899. break a;
  4900. }
  4901. k = Error(p3(426));
  4902. }
  4903. } else if (I && h3.mode & 1) {
  4904. var J = Ui(g2);
  4905. if (J !== null) {
  4906. (J.flags & 65536) === 0 && (J.flags |= 256), Vi(J, g2, h3, f4, b), Jg(Ji(k, h3));
  4907. break a;
  4908. }
  4909. }
  4910. f4 = k = Ji(k, h3), T2 !== 4 && (T2 = 2), sk === null ? sk = [f4] : sk.push(f4), f4 = g2;
  4911. do {
  4912. switch (f4.tag) {
  4913. case 3:
  4914. f4.flags |= 65536, b &= -b, f4.lanes |= b;
  4915. var x = Ni(f4, k, b);
  4916. ph(f4, x);
  4917. break a;
  4918. case 1:
  4919. h3 = k;
  4920. var w = f4.type, u2 = f4.stateNode;
  4921. if ((f4.flags & 128) === 0 && (typeof w.getDerivedStateFromError == "function" || u2 !== null && typeof u2.componentDidCatch == "function" && (Ri === null || !Ri.has(u2)))) {
  4922. f4.flags |= 65536, b &= -b, f4.lanes |= b;
  4923. var F = Qi(f4, h3, b);
  4924. ph(f4, F);
  4925. break a;
  4926. }
  4927. }
  4928. f4 = f4.return;
  4929. } while (f4 !== null);
  4930. }
  4931. Sk(c);
  4932. } catch (na) {
  4933. b = na, Y === c && c !== null && (Y = c = c.return);
  4934. continue;
  4935. }
  4936. break;
  4937. } while (!0);
  4938. }
  4939. function Jk() {
  4940. var a3 = mk.current;
  4941. return mk.current = Rh, a3 === null ? Rh : a3;
  4942. }
  4943. function tj() {
  4944. (T2 === 0 || T2 === 3 || T2 === 2) && (T2 = 4), Q === null || (rh & 268435455) === 0 && (qk & 268435455) === 0 || Ck(Q, Z);
  4945. }
  4946. function Ik(a3, b) {
  4947. var c = K2;
  4948. K2 |= 2;
  4949. var d = Jk();
  4950. (Q !== a3 || Z !== b) && (uk = null, Kk(a3, b));
  4951. do
  4952. try {
  4953. Tk();
  4954. break;
  4955. } catch (e) {
  4956. Mk(a3, e);
  4957. }
  4958. while (!0);
  4959. if ($g(), K2 = c, mk.current = d, Y !== null) throw Error(p3(261));
  4960. return Q = null, Z = 0, T2;
  4961. }
  4962. function Tk() {
  4963. for (; Y !== null; ) Uk(Y);
  4964. }
  4965. function Lk() {
  4966. for (; Y !== null && !cc(); ) Uk(Y);
  4967. }
  4968. function Uk(a3) {
  4969. var b = Vk(a3.alternate, a3, fj);
  4970. a3.memoizedProps = a3.pendingProps, b === null ? Sk(a3) : Y = b, nk.current = null;
  4971. }
  4972. function Sk(a3) {
  4973. var b = a3;
  4974. do {
  4975. var c = b.alternate;
  4976. if (a3 = b.return, (b.flags & 32768) === 0) {
  4977. if (c = Ej(c, b, fj), c !== null) {
  4978. Y = c;
  4979. return;
  4980. }
  4981. } else {
  4982. if (c = Ij(c, b), c !== null) {
  4983. c.flags &= 32767, Y = c;
  4984. return;
  4985. }
  4986. if (a3 !== null) a3.flags |= 32768, a3.subtreeFlags = 0, a3.deletions = null;
  4987. else {
  4988. T2 = 6, Y = null;
  4989. return;
  4990. }
  4991. }
  4992. if (b = b.sibling, b !== null) {
  4993. Y = b;
  4994. return;
  4995. }
  4996. Y = b = a3;
  4997. } while (b !== null);
  4998. T2 === 0 && (T2 = 5);
  4999. }
  5000. function Pk(a3, b, c) {
  5001. var d = C3, e = ok.transition;
  5002. try {
  5003. ok.transition = null, C3 = 1, Wk(a3, b, c, d);
  5004. } finally {
  5005. ok.transition = e, C3 = d;
  5006. }
  5007. return null;
  5008. }
  5009. function Wk(a3, b, c, d) {
  5010. do
  5011. Hk();
  5012. while (wk !== null);
  5013. if ((K2 & 6) !== 0) throw Error(p3(327));
  5014. c = a3.finishedWork;
  5015. var e = a3.finishedLanes;
  5016. if (c === null) return null;
  5017. if (a3.finishedWork = null, a3.finishedLanes = 0, c === a3.current) throw Error(p3(177));
  5018. a3.callbackNode = null, a3.callbackPriority = 0;
  5019. var f4 = c.lanes | c.childLanes;
  5020. if (Bc(a3, f4), a3 === Q && (Y = Q = null, Z = 0), (c.subtreeFlags & 2064) === 0 && (c.flags & 2064) === 0 || vk || (vk = !0, Fk(hc, function() {
  5021. return Hk(), null;
  5022. })), f4 = (c.flags & 15990) !== 0, (c.subtreeFlags & 15990) !== 0 || f4) {
  5023. f4 = ok.transition, ok.transition = null;
  5024. var g2 = C3;
  5025. C3 = 1;
  5026. var h3 = K2;
  5027. K2 |= 4, nk.current = null, Oj(a3, c), dk(c, a3), Oe(Df), dd = !!Cf, Df = Cf = null, a3.current = c, hk(c, a3, e), dc(), K2 = h3, C3 = g2, ok.transition = f4;
  5028. } else a3.current = c;
  5029. if (vk && (vk = !1, wk = a3, xk = e), f4 = a3.pendingLanes, f4 === 0 && (Ri = null), mc(c.stateNode, d), Dk(a3, B3()), b !== null) for (d = a3.onRecoverableError, c = 0; c < b.length; c++) e = b[c], d(e.value, { componentStack: e.stack, digest: e.digest });
  5030. if (Oi) throw Oi = !1, a3 = Pi, Pi = null, a3;
  5031. return (xk & 1) !== 0 && a3.tag !== 0 && Hk(), f4 = a3.pendingLanes, (f4 & 1) !== 0 ? a3 === zk ? yk++ : (yk = 0, zk = a3) : yk = 0, jg(), null;
  5032. }
  5033. function Hk() {
  5034. if (wk !== null) {
  5035. var a3 = Dc(xk), b = ok.transition, c = C3;
  5036. try {
  5037. if (ok.transition = null, C3 = 16 > a3 ? 16 : a3, wk === null) var d = !1;
  5038. else {
  5039. if (a3 = wk, wk = null, xk = 0, (K2 & 6) !== 0) throw Error(p3(331));
  5040. var e = K2;
  5041. for (K2 |= 4, V = a3.current; V !== null; ) {
  5042. var f4 = V, g2 = f4.child;
  5043. if ((V.flags & 16) !== 0) {
  5044. var h3 = f4.deletions;
  5045. if (h3 !== null) {
  5046. for (var k = 0; k < h3.length; k++) {
  5047. var l = h3[k];
  5048. for (V = l; V !== null; ) {
  5049. var m3 = V;
  5050. switch (m3.tag) {
  5051. case 0:
  5052. case 11:
  5053. case 15:
  5054. Pj(8, m3, f4);
  5055. }
  5056. var q = m3.child;
  5057. if (q !== null) q.return = m3, V = q;
  5058. else for (; V !== null; ) {
  5059. m3 = V;
  5060. var r2 = m3.sibling, y = m3.return;
  5061. if (Sj(m3), m3 === l) {
  5062. V = null;
  5063. break;
  5064. }
  5065. if (r2 !== null) {
  5066. r2.return = y, V = r2;
  5067. break;
  5068. }
  5069. V = y;
  5070. }
  5071. }
  5072. }
  5073. var n = f4.alternate;
  5074. if (n !== null) {
  5075. var t = n.child;
  5076. if (t !== null) {
  5077. n.child = null;
  5078. do {
  5079. var J = t.sibling;
  5080. t.sibling = null, t = J;
  5081. } while (t !== null);
  5082. }
  5083. }
  5084. V = f4;
  5085. }
  5086. }
  5087. if ((f4.subtreeFlags & 2064) !== 0 && g2 !== null) g2.return = f4, V = g2;
  5088. else b: for (; V !== null; ) {
  5089. if (f4 = V, (f4.flags & 2048) !== 0) switch (f4.tag) {
  5090. case 0:
  5091. case 11:
  5092. case 15:
  5093. Pj(9, f4, f4.return);
  5094. }
  5095. var x = f4.sibling;
  5096. if (x !== null) {
  5097. x.return = f4.return, V = x;
  5098. break b;
  5099. }
  5100. V = f4.return;
  5101. }
  5102. }
  5103. var w = a3.current;
  5104. for (V = w; V !== null; ) {
  5105. g2 = V;
  5106. var u2 = g2.child;
  5107. if ((g2.subtreeFlags & 2064) !== 0 && u2 !== null) u2.return = g2, V = u2;
  5108. else b: for (g2 = w; V !== null; ) {
  5109. if (h3 = V, (h3.flags & 2048) !== 0) try {
  5110. switch (h3.tag) {
  5111. case 0:
  5112. case 11:
  5113. case 15:
  5114. Qj(9, h3);
  5115. }
  5116. } catch (na) {
  5117. W(h3, h3.return, na);
  5118. }
  5119. if (h3 === g2) {
  5120. V = null;
  5121. break b;
  5122. }
  5123. var F = h3.sibling;
  5124. if (F !== null) {
  5125. F.return = h3.return, V = F;
  5126. break b;
  5127. }
  5128. V = h3.return;
  5129. }
  5130. }
  5131. if (K2 = e, jg(), lc && typeof lc.onPostCommitFiberRoot == "function") try {
  5132. lc.onPostCommitFiberRoot(kc, a3);
  5133. } catch {
  5134. }
  5135. d = !0;
  5136. }
  5137. return d;
  5138. } finally {
  5139. C3 = c, ok.transition = b;
  5140. }
  5141. }
  5142. return !1;
  5143. }
  5144. function Xk(a3, b, c) {
  5145. b = Ji(c, b), b = Ni(a3, b, 1), a3 = nh(a3, b, 1), b = R(), a3 !== null && (Ac(a3, 1, b), Dk(a3, b));
  5146. }
  5147. function W(a3, b, c) {
  5148. if (a3.tag === 3) Xk(a3, a3, c);
  5149. else for (; b !== null; ) {
  5150. if (b.tag === 3) {
  5151. Xk(b, a3, c);
  5152. break;
  5153. } else if (b.tag === 1) {
  5154. var d = b.stateNode;
  5155. if (typeof b.type.getDerivedStateFromError == "function" || typeof d.componentDidCatch == "function" && (Ri === null || !Ri.has(d))) {
  5156. a3 = Ji(c, a3), a3 = Qi(b, a3, 1), b = nh(b, a3, 1), a3 = R(), b !== null && (Ac(b, 1, a3), Dk(b, a3));
  5157. break;
  5158. }
  5159. }
  5160. b = b.return;
  5161. }
  5162. }
  5163. function Ti(a3, b, c) {
  5164. var d = a3.pingCache;
  5165. d !== null && d.delete(b), b = R(), a3.pingedLanes |= a3.suspendedLanes & c, Q === a3 && (Z & c) === c && (T2 === 4 || T2 === 3 && (Z & 130023424) === Z && 500 > B3() - fk ? Kk(a3, 0) : rk |= c), Dk(a3, b);
  5166. }
  5167. function Yk(a3, b) {
  5168. b === 0 && ((a3.mode & 1) === 0 ? b = 1 : (b = sc, sc <<= 1, (sc & 130023424) === 0 && (sc = 4194304)));
  5169. var c = R();
  5170. a3 = ih(a3, b), a3 !== null && (Ac(a3, b, c), Dk(a3, c));
  5171. }
  5172. function uj(a3) {
  5173. var b = a3.memoizedState, c = 0;
  5174. b !== null && (c = b.retryLane), Yk(a3, c);
  5175. }
  5176. function bk(a3, b) {
  5177. var c = 0;
  5178. switch (a3.tag) {
  5179. case 13:
  5180. var d = a3.stateNode, e = a3.memoizedState;
  5181. e !== null && (c = e.retryLane);
  5182. break;
  5183. case 19:
  5184. d = a3.stateNode;
  5185. break;
  5186. default:
  5187. throw Error(p3(314));
  5188. }
  5189. d !== null && d.delete(b), Yk(a3, c);
  5190. }
  5191. var Vk;
  5192. Vk = function(a3, b, c) {
  5193. if (a3 !== null) if (a3.memoizedProps !== b.pendingProps || Wf.current) dh = !0;
  5194. else {
  5195. if ((a3.lanes & c) === 0 && (b.flags & 128) === 0) return dh = !1, yj(a3, b, c);
  5196. dh = (a3.flags & 131072) !== 0;
  5197. }
  5198. else dh = !1, I && (b.flags & 1048576) !== 0 && ug(b, ng, b.index);
  5199. switch (b.lanes = 0, b.tag) {
  5200. case 2:
  5201. var d = b.type;
  5202. ij(a3, b), a3 = b.pendingProps;
  5203. var e = Yf(b, H.current);
  5204. ch(b, c), e = Nh(null, b, d, a3, e, c);
  5205. var f4 = Sh();
  5206. return b.flags |= 1, typeof e == "object" && e !== null && typeof e.render == "function" && e.$$typeof === void 0 ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f4 = !0, cg(b)) : f4 = !1, b.memoizedState = e.state !== null && e.state !== void 0 ? e.state : null, kh(b), e.updater = Ei, b.stateNode = e, e._reactInternals = b, Ii(b, d, a3, c), b = jj(null, b, d, !0, f4, c)) : (b.tag = 0, I && f4 && vg(b), Xi(null, b, e, c), b = b.child), b;
  5207. case 16:
  5208. d = b.elementType;
  5209. a: {
  5210. switch (ij(a3, b), a3 = b.pendingProps, e = d._init, d = e(d._payload), b.type = d, e = b.tag = Zk(d), a3 = Ci(d, a3), e) {
  5211. case 0:
  5212. b = cj(null, b, d, a3, c);
  5213. break a;
  5214. case 1:
  5215. b = hj(null, b, d, a3, c);
  5216. break a;
  5217. case 11:
  5218. b = Yi(null, b, d, a3, c);
  5219. break a;
  5220. case 14:
  5221. b = $i(null, b, d, Ci(d.type, a3), c);
  5222. break a;
  5223. }
  5224. throw Error(p3(
  5225. 306,
  5226. d,
  5227. ""
  5228. ));
  5229. }
  5230. return b;
  5231. case 0:
  5232. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), cj(a3, b, d, e, c);
  5233. case 1:
  5234. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), hj(a3, b, d, e, c);
  5235. case 3:
  5236. a: {
  5237. if (kj(b), a3 === null) throw Error(p3(387));
  5238. d = b.pendingProps, f4 = b.memoizedState, e = f4.element, lh(a3, b), qh(b, d, null, c);
  5239. var g2 = b.memoizedState;
  5240. if (d = g2.element, f4.isDehydrated) if (f4 = { element: d, isDehydrated: !1, cache: g2.cache, pendingSuspenseBoundaries: g2.pendingSuspenseBoundaries, transitions: g2.transitions }, b.updateQueue.baseState = f4, b.memoizedState = f4, b.flags & 256) {
  5241. e = Ji(Error(p3(423)), b), b = lj(a3, b, d, c, e);
  5242. break a;
  5243. } else if (d !== e) {
  5244. e = Ji(Error(p3(424)), b), b = lj(a3, b, d, c, e);
  5245. break a;
  5246. } else for (yg = Lf(b.stateNode.containerInfo.firstChild), xg = b, I = !0, zg = null, c = Vg(b, null, d, c), b.child = c; c; ) c.flags = c.flags & -3 | 4096, c = c.sibling;
  5247. else {
  5248. if (Ig(), d === e) {
  5249. b = Zi(a3, b, c);
  5250. break a;
  5251. }
  5252. Xi(a3, b, d, c);
  5253. }
  5254. b = b.child;
  5255. }
  5256. return b;
  5257. case 5:
  5258. return Ah(b), a3 === null && Eg(b), d = b.type, e = b.pendingProps, f4 = a3 !== null ? a3.memoizedProps : null, g2 = e.children, Ef(d, e) ? g2 = null : f4 !== null && Ef(d, f4) && (b.flags |= 32), gj(a3, b), Xi(a3, b, g2, c), b.child;
  5259. case 6:
  5260. return a3 === null && Eg(b), null;
  5261. case 13:
  5262. return oj(a3, b, c);
  5263. case 4:
  5264. return yh(b, b.stateNode.containerInfo), d = b.pendingProps, a3 === null ? b.child = Ug(b, null, d, c) : Xi(a3, b, d, c), b.child;
  5265. case 11:
  5266. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), Yi(a3, b, d, e, c);
  5267. case 7:
  5268. return Xi(a3, b, b.pendingProps, c), b.child;
  5269. case 8:
  5270. return Xi(a3, b, b.pendingProps.children, c), b.child;
  5271. case 12:
  5272. return Xi(a3, b, b.pendingProps.children, c), b.child;
  5273. case 10:
  5274. a: {
  5275. if (d = b.type._context, e = b.pendingProps, f4 = b.memoizedProps, g2 = e.value, G(Wg, d._currentValue), d._currentValue = g2, f4 !== null) if (He(f4.value, g2)) {
  5276. if (f4.children === e.children && !Wf.current) {
  5277. b = Zi(a3, b, c);
  5278. break a;
  5279. }
  5280. } else for (f4 = b.child, f4 !== null && (f4.return = b); f4 !== null; ) {
  5281. var h3 = f4.dependencies;
  5282. if (h3 !== null) {
  5283. g2 = f4.child;
  5284. for (var k = h3.firstContext; k !== null; ) {
  5285. if (k.context === d) {
  5286. if (f4.tag === 1) {
  5287. k = mh(-1, c & -c), k.tag = 2;
  5288. var l = f4.updateQueue;
  5289. if (l !== null) {
  5290. l = l.shared;
  5291. var m3 = l.pending;
  5292. m3 === null ? k.next = k : (k.next = m3.next, m3.next = k), l.pending = k;
  5293. }
  5294. }
  5295. f4.lanes |= c, k = f4.alternate, k !== null && (k.lanes |= c), bh(
  5296. f4.return,
  5297. c,
  5298. b
  5299. ), h3.lanes |= c;
  5300. break;
  5301. }
  5302. k = k.next;
  5303. }
  5304. } else if (f4.tag === 10) g2 = f4.type === b.type ? null : f4.child;
  5305. else if (f4.tag === 18) {
  5306. if (g2 = f4.return, g2 === null) throw Error(p3(341));
  5307. g2.lanes |= c, h3 = g2.alternate, h3 !== null && (h3.lanes |= c), bh(g2, c, b), g2 = f4.sibling;
  5308. } else g2 = f4.child;
  5309. if (g2 !== null) g2.return = f4;
  5310. else for (g2 = f4; g2 !== null; ) {
  5311. if (g2 === b) {
  5312. g2 = null;
  5313. break;
  5314. }
  5315. if (f4 = g2.sibling, f4 !== null) {
  5316. f4.return = g2.return, g2 = f4;
  5317. break;
  5318. }
  5319. g2 = g2.return;
  5320. }
  5321. f4 = g2;
  5322. }
  5323. Xi(a3, b, e.children, c), b = b.child;
  5324. }
  5325. return b;
  5326. case 9:
  5327. return e = b.type, d = b.pendingProps.children, ch(b, c), e = eh(e), d = d(e), b.flags |= 1, Xi(a3, b, d, c), b.child;
  5328. case 14:
  5329. return d = b.type, e = Ci(d, b.pendingProps), e = Ci(d.type, e), $i(a3, b, d, e, c);
  5330. case 15:
  5331. return bj(a3, b, b.type, b.pendingProps, c);
  5332. case 17:
  5333. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), ij(a3, b), b.tag = 1, Zf(d) ? (a3 = !0, cg(b)) : a3 = !1, ch(b, c), Gi(b, d, e), Ii(b, d, e, c), jj(null, b, d, !0, a3, c);
  5334. case 19:
  5335. return xj(a3, b, c);
  5336. case 22:
  5337. return dj(a3, b, c);
  5338. }
  5339. throw Error(p3(156, b.tag));
  5340. };
  5341. function Fk(a3, b) {
  5342. return ac(a3, b);
  5343. }
  5344. function $k(a3, b, c, d) {
  5345. this.tag = a3, this.key = c, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = b, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = d, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
  5346. }
  5347. function Bg(a3, b, c, d) {
  5348. return new $k(a3, b, c, d);
  5349. }
  5350. function aj(a3) {
  5351. return a3 = a3.prototype, !(!a3 || !a3.isReactComponent);
  5352. }
  5353. function Zk(a3) {
  5354. if (typeof a3 == "function") return aj(a3) ? 1 : 0;
  5355. if (a3 != null) {
  5356. if (a3 = a3.$$typeof, a3 === Da) return 11;
  5357. if (a3 === Ga) return 14;
  5358. }
  5359. return 2;
  5360. }
  5361. function Pg(a3, b) {
  5362. var c = a3.alternate;
  5363. return c === null ? (c = Bg(a3.tag, b, a3.key, a3.mode), c.elementType = a3.elementType, c.type = a3.type, c.stateNode = a3.stateNode, c.alternate = a3, a3.alternate = c) : (c.pendingProps = b, c.type = a3.type, c.flags = 0, c.subtreeFlags = 0, c.deletions = null), c.flags = a3.flags & 14680064, c.childLanes = a3.childLanes, c.lanes = a3.lanes, c.child = a3.child, c.memoizedProps = a3.memoizedProps, c.memoizedState = a3.memoizedState, c.updateQueue = a3.updateQueue, b = a3.dependencies, c.dependencies = b === null ? null : { lanes: b.lanes, firstContext: b.firstContext }, c.sibling = a3.sibling, c.index = a3.index, c.ref = a3.ref, c;
  5364. }
  5365. function Rg(a3, b, c, d, e, f4) {
  5366. var g2 = 2;
  5367. if (d = a3, typeof a3 == "function") aj(a3) && (g2 = 1);
  5368. else if (typeof a3 == "string") g2 = 5;
  5369. else a: switch (a3) {
  5370. case ya:
  5371. return Tg(c.children, e, f4, b);
  5372. case za:
  5373. g2 = 8, e |= 8;
  5374. break;
  5375. case Aa:
  5376. return a3 = Bg(12, c, b, e | 2), a3.elementType = Aa, a3.lanes = f4, a3;
  5377. case Ea:
  5378. return a3 = Bg(13, c, b, e), a3.elementType = Ea, a3.lanes = f4, a3;
  5379. case Fa:
  5380. return a3 = Bg(19, c, b, e), a3.elementType = Fa, a3.lanes = f4, a3;
  5381. case Ia:
  5382. return pj(c, e, f4, b);
  5383. default:
  5384. if (typeof a3 == "object" && a3 !== null) switch (a3.$$typeof) {
  5385. case Ba:
  5386. g2 = 10;
  5387. break a;
  5388. case Ca:
  5389. g2 = 9;
  5390. break a;
  5391. case Da:
  5392. g2 = 11;
  5393. break a;
  5394. case Ga:
  5395. g2 = 14;
  5396. break a;
  5397. case Ha:
  5398. g2 = 16, d = null;
  5399. break a;
  5400. }
  5401. throw Error(p3(130, a3 == null ? a3 : typeof a3, ""));
  5402. }
  5403. return b = Bg(g2, c, b, e), b.elementType = a3, b.type = d, b.lanes = f4, b;
  5404. }
  5405. function Tg(a3, b, c, d) {
  5406. return a3 = Bg(7, a3, d, b), a3.lanes = c, a3;
  5407. }
  5408. function pj(a3, b, c, d) {
  5409. return a3 = Bg(22, a3, d, b), a3.elementType = Ia, a3.lanes = c, a3.stateNode = { isHidden: !1 }, a3;
  5410. }
  5411. function Qg(a3, b, c) {
  5412. return a3 = Bg(6, a3, null, b), a3.lanes = c, a3;
  5413. }
  5414. function Sg(a3, b, c) {
  5415. return b = Bg(4, a3.children !== null ? a3.children : [], a3.key, b), b.lanes = c, b.stateNode = { containerInfo: a3.containerInfo, pendingChildren: null, implementation: a3.implementation }, b;
  5416. }
  5417. function al(a3, b, c, d, e) {
  5418. this.tag = b, this.containerInfo = a3, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = zc(0), this.expirationTimes = zc(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = zc(0), this.identifierPrefix = d, this.onRecoverableError = e, this.mutableSourceEagerHydrationData = null;
  5419. }
  5420. function bl(a3, b, c, d, e, f4, g2, h3, k) {
  5421. return a3 = new al(a3, b, c, h3, k), b === 1 ? (b = 1, f4 === !0 && (b |= 8)) : b = 0, f4 = Bg(3, null, null, b), a3.current = f4, f4.stateNode = a3, f4.memoizedState = { element: d, isDehydrated: c, cache: null, transitions: null, pendingSuspenseBoundaries: null }, kh(f4), a3;
  5422. }
  5423. function cl(a3, b, c) {
  5424. var d = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
  5425. return { $$typeof: wa, key: d == null ? null : "" + d, children: a3, containerInfo: b, implementation: c };
  5426. }
  5427. function dl(a3) {
  5428. if (!a3) return Vf;
  5429. a3 = a3._reactInternals;
  5430. a: {
  5431. if (Vb(a3) !== a3 || a3.tag !== 1) throw Error(p3(170));
  5432. var b = a3;
  5433. do {
  5434. switch (b.tag) {
  5435. case 3:
  5436. b = b.stateNode.context;
  5437. break a;
  5438. case 1:
  5439. if (Zf(b.type)) {
  5440. b = b.stateNode.__reactInternalMemoizedMergedChildContext;
  5441. break a;
  5442. }
  5443. }
  5444. b = b.return;
  5445. } while (b !== null);
  5446. throw Error(p3(171));
  5447. }
  5448. if (a3.tag === 1) {
  5449. var c = a3.type;
  5450. if (Zf(c)) return bg(a3, c, b);
  5451. }
  5452. return b;
  5453. }
  5454. function el(a3, b, c, d, e, f4, g2, h3, k) {
  5455. return a3 = bl(c, d, !0, a3, e, f4, g2, h3, k), a3.context = dl(null), c = a3.current, d = R(), e = yi(c), f4 = mh(d, e), f4.callback = b ?? null, nh(c, f4, e), a3.current.lanes = e, Ac(a3, e, d), Dk(a3, d), a3;
  5456. }
  5457. function fl(a3, b, c, d) {
  5458. var e = b.current, f4 = R(), g2 = yi(e);
  5459. return c = dl(c), b.context === null ? b.context = c : b.pendingContext = c, b = mh(f4, g2), b.payload = { element: a3 }, d = d === void 0 ? null : d, d !== null && (b.callback = d), a3 = nh(e, b, g2), a3 !== null && (gi(a3, e, g2, f4), oh(a3, e, g2)), g2;
  5460. }
  5461. function gl(a3) {
  5462. if (a3 = a3.current, !a3.child) return null;
  5463. switch (a3.child.tag) {
  5464. case 5:
  5465. return a3.child.stateNode;
  5466. default:
  5467. return a3.child.stateNode;
  5468. }
  5469. }
  5470. function hl(a3, b) {
  5471. if (a3 = a3.memoizedState, a3 !== null && a3.dehydrated !== null) {
  5472. var c = a3.retryLane;
  5473. a3.retryLane = c !== 0 && c < b ? c : b;
  5474. }
  5475. }
  5476. function il(a3, b) {
  5477. hl(a3, b), (a3 = a3.alternate) && hl(a3, b);
  5478. }
  5479. function jl() {
  5480. return null;
  5481. }
  5482. var kl = typeof reportError == "function" ? reportError : function(a3) {
  5483. console.error(a3);
  5484. };
  5485. function ll(a3) {
  5486. this._internalRoot = a3;
  5487. }
  5488. ml.prototype.render = ll.prototype.render = function(a3) {
  5489. var b = this._internalRoot;
  5490. if (b === null) throw Error(p3(409));
  5491. fl(a3, b, null, null);
  5492. };
  5493. ml.prototype.unmount = ll.prototype.unmount = function() {
  5494. var a3 = this._internalRoot;
  5495. if (a3 !== null) {
  5496. this._internalRoot = null;
  5497. var b = a3.containerInfo;
  5498. Rk(function() {
  5499. fl(null, a3, null, null);
  5500. }), b[uf] = null;
  5501. }
  5502. };
  5503. function ml(a3) {
  5504. this._internalRoot = a3;
  5505. }
  5506. ml.prototype.unstable_scheduleHydration = function(a3) {
  5507. if (a3) {
  5508. var b = Hc();
  5509. a3 = { blockedOn: null, target: a3, priority: b };
  5510. for (var c = 0; c < Qc.length && b !== 0 && b < Qc[c].priority; c++) ;
  5511. Qc.splice(c, 0, a3), c === 0 && Vc(a3);
  5512. }
  5513. };
  5514. function nl(a3) {
  5515. return !(!a3 || a3.nodeType !== 1 && a3.nodeType !== 9 && a3.nodeType !== 11);
  5516. }
  5517. function ol(a3) {
  5518. return !(!a3 || a3.nodeType !== 1 && a3.nodeType !== 9 && a3.nodeType !== 11 && (a3.nodeType !== 8 || a3.nodeValue !== " react-mount-point-unstable "));
  5519. }
  5520. function pl() {
  5521. }
  5522. function ql(a3, b, c, d, e) {
  5523. if (e) {
  5524. if (typeof d == "function") {
  5525. var f4 = d;
  5526. d = function() {
  5527. var a4 = gl(g2);
  5528. f4.call(a4);
  5529. };
  5530. }
  5531. var g2 = el(b, d, a3, 0, null, !1, !1, "", pl);
  5532. return a3._reactRootContainer = g2, a3[uf] = g2.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), Rk(), g2;
  5533. }
  5534. for (; e = a3.lastChild; ) a3.removeChild(e);
  5535. if (typeof d == "function") {
  5536. var h3 = d;
  5537. d = function() {
  5538. var a4 = gl(k);
  5539. h3.call(a4);
  5540. };
  5541. }
  5542. var k = bl(a3, 0, !1, null, null, !1, !1, "", pl);
  5543. return a3._reactRootContainer = k, a3[uf] = k.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), Rk(function() {
  5544. fl(b, k, c, d);
  5545. }), k;
  5546. }
  5547. function rl(a3, b, c, d, e) {
  5548. var f4 = c._reactRootContainer;
  5549. if (f4) {
  5550. var g2 = f4;
  5551. if (typeof e == "function") {
  5552. var h3 = e;
  5553. e = function() {
  5554. var a4 = gl(g2);
  5555. h3.call(a4);
  5556. };
  5557. }
  5558. fl(b, g2, a3, e);
  5559. } else g2 = ql(c, b, a3, e, d);
  5560. return gl(g2);
  5561. }
  5562. Ec = function(a3) {
  5563. switch (a3.tag) {
  5564. case 3:
  5565. var b = a3.stateNode;
  5566. if (b.current.memoizedState.isDehydrated) {
  5567. var c = tc(b.pendingLanes);
  5568. c !== 0 && (Cc(b, c | 1), Dk(b, B3()), (K2 & 6) === 0 && (Gj = B3() + 500, jg()));
  5569. }
  5570. break;
  5571. case 13:
  5572. Rk(function() {
  5573. var b2 = ih(a3, 1);
  5574. if (b2 !== null) {
  5575. var c2 = R();
  5576. gi(b2, a3, 1, c2);
  5577. }
  5578. }), il(a3, 1);
  5579. }
  5580. };
  5581. Fc = function(a3) {
  5582. if (a3.tag === 13) {
  5583. var b = ih(a3, 134217728);
  5584. if (b !== null) {
  5585. var c = R();
  5586. gi(b, a3, 134217728, c);
  5587. }
  5588. il(a3, 134217728);
  5589. }
  5590. };
  5591. Gc = function(a3) {
  5592. if (a3.tag === 13) {
  5593. var b = yi(a3), c = ih(a3, b);
  5594. if (c !== null) {
  5595. var d = R();
  5596. gi(c, a3, b, d);
  5597. }
  5598. il(a3, b);
  5599. }
  5600. };
  5601. Hc = function() {
  5602. return C3;
  5603. };
  5604. Ic = function(a3, b) {
  5605. var c = C3;
  5606. try {
  5607. return C3 = a3, b();
  5608. } finally {
  5609. C3 = c;
  5610. }
  5611. };
  5612. yb = function(a3, b, c) {
  5613. switch (b) {
  5614. case "input":
  5615. if (bb(a3, c), b = c.name, c.type === "radio" && b != null) {
  5616. for (c = a3; c.parentNode; ) c = c.parentNode;
  5617. for (c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'), b = 0; b < c.length; b++) {
  5618. var d = c[b];
  5619. if (d !== a3 && d.form === a3.form) {
  5620. var e = Db(d);
  5621. if (!e) throw Error(p3(90));
  5622. Wa(d), bb(d, e);
  5623. }
  5624. }
  5625. }
  5626. break;
  5627. case "textarea":
  5628. ib(a3, c);
  5629. break;
  5630. case "select":
  5631. b = c.value, b != null && fb(a3, !!c.multiple, b, !1);
  5632. }
  5633. };
  5634. Gb = Qk;
  5635. Hb = Rk;
  5636. var sl = { usingClientEntryPoint: !1, Events: [Cb, ue, Db, Eb, Fb, Qk] }, tl = { findFiberByHostInstance: Wc, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" }, ul = { bundleType: tl.bundleType, version: tl.version, rendererPackageName: tl.rendererPackageName, rendererConfig: tl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ua.ReactCurrentDispatcher, findHostInstanceByFiber: function(a3) {
  5637. return a3 = Zb(a3), a3 === null ? null : a3.stateNode;
  5638. }, findFiberByHostInstance: tl.findFiberByHostInstance || jl, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" };
  5639. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && (vl = __REACT_DEVTOOLS_GLOBAL_HOOK__, !vl.isDisabled && vl.supportsFiber))
  5640. try {
  5641. kc = vl.inject(ul), lc = vl;
  5642. } catch {
  5643. }
  5644. var vl;
  5645. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sl;
  5646. exports.createPortal = function(a3, b) {
  5647. var c = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
  5648. if (!nl(b)) throw Error(p3(200));
  5649. return cl(a3, b, null, c);
  5650. };
  5651. exports.createRoot = function(a3, b) {
  5652. if (!nl(a3)) throw Error(p3(299));
  5653. var c = !1, d = "", e = kl;
  5654. return b != null && (b.unstable_strictMode === !0 && (c = !0), b.identifierPrefix !== void 0 && (d = b.identifierPrefix), b.onRecoverableError !== void 0 && (e = b.onRecoverableError)), b = bl(a3, 1, !1, null, null, c, !1, d, e), a3[uf] = b.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), new ll(b);
  5655. };
  5656. exports.findDOMNode = function(a3) {
  5657. if (a3 == null) return null;
  5658. if (a3.nodeType === 1) return a3;
  5659. var b = a3._reactInternals;
  5660. if (b === void 0)
  5661. throw typeof a3.render == "function" ? Error(p3(188)) : (a3 = Object.keys(a3).join(","), Error(p3(268, a3)));
  5662. return a3 = Zb(b), a3 = a3 === null ? null : a3.stateNode, a3;
  5663. };
  5664. exports.flushSync = function(a3) {
  5665. return Rk(a3);
  5666. };
  5667. exports.hydrate = function(a3, b, c) {
  5668. if (!ol(b)) throw Error(p3(200));
  5669. return rl(null, a3, b, !0, c);
  5670. };
  5671. exports.hydrateRoot = function(a3, b, c) {
  5672. if (!nl(a3)) throw Error(p3(405));
  5673. var d = c != null && c.hydratedSources || null, e = !1, f4 = "", g2 = kl;
  5674. if (c != null && (c.unstable_strictMode === !0 && (e = !0), c.identifierPrefix !== void 0 && (f4 = c.identifierPrefix), c.onRecoverableError !== void 0 && (g2 = c.onRecoverableError)), b = el(b, null, a3, 1, c ?? null, e, !1, f4, g2), a3[uf] = b.current, sf(a3), d) for (a3 = 0; a3 < d.length; a3++) c = d[a3], e = c._getVersion, e = e(c._source), b.mutableSourceEagerHydrationData == null ? b.mutableSourceEagerHydrationData = [c, e] : b.mutableSourceEagerHydrationData.push(
  5675. c,
  5676. e
  5677. );
  5678. return new ml(b);
  5679. };
  5680. exports.render = function(a3, b, c) {
  5681. if (!ol(b)) throw Error(p3(200));
  5682. return rl(null, a3, b, !1, c);
  5683. };
  5684. exports.unmountComponentAtNode = function(a3) {
  5685. if (!ol(a3)) throw Error(p3(40));
  5686. return a3._reactRootContainer ? (Rk(function() {
  5687. rl(null, null, a3, !1, function() {
  5688. a3._reactRootContainer = null, a3[uf] = null;
  5689. });
  5690. }), !0) : !1;
  5691. };
  5692. exports.unstable_batchedUpdates = Qk;
  5693. exports.unstable_renderSubtreeIntoContainer = function(a3, b, c, d) {
  5694. if (!ol(c)) throw Error(p3(200));
  5695. if (a3 == null || a3._reactInternals === void 0) throw Error(p3(38));
  5696. return rl(a3, b, c, !1, d);
  5697. };
  5698. exports.version = "18.3.1-next-f1338f8080-20240426";
  5699. }
  5700. });
  5701. // ../../node_modules/react-dom/index.js
  5702. var require_react_dom = __commonJS({
  5703. "../../node_modules/react-dom/index.js"(exports, module2) {
  5704. "use strict";
  5705. function checkDCE() {
  5706. if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function"))
  5707. try {
  5708. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  5709. } catch (err) {
  5710. console.error(err);
  5711. }
  5712. }
  5713. checkDCE(), module2.exports = require_react_dom_production_min();
  5714. }
  5715. });
  5716. // ../../node_modules/react-dom/client.js
  5717. var require_client = __commonJS({
  5718. "../../node_modules/react-dom/client.js"(exports) {
  5719. "use strict";
  5720. var m3 = require_react_dom();
  5721. exports.createRoot = m3.createRoot, exports.hydrateRoot = m3.hydrateRoot;
  5722. var i;
  5723. }
  5724. });
  5725. // ../../node_modules/@storybook/global/dist/index.mjs
  5726. var scope, init_dist = __esm({
  5727. "../../node_modules/@storybook/global/dist/index.mjs"() {
  5728. scope = (() => {
  5729. let win;
  5730. return typeof window < "u" ? win = window : typeof globalThis < "u" ? win = globalThis : typeof global < "u" ? win = global : typeof self < "u" ? win = self : win = {}, win;
  5731. })();
  5732. }
  5733. });
  5734. // ../../node_modules/ts-dedent/esm/index.js
  5735. function dedent(templ) {
  5736. for (var values = [], _i = 1; _i < arguments.length; _i++)
  5737. values[_i - 1] = arguments[_i];
  5738. var strings = Array.from(typeof templ == "string" ? [templ] : templ);
  5739. strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
  5740. var indentLengths = strings.reduce(function(arr, str2) {
  5741. var matches4 = str2.match(/\n([\t ]+|(?!\s).)/g);
  5742. return matches4 ? arr.concat(matches4.map(function(match3) {
  5743. var _a4, _b;
  5744. return (_b = (_a4 = match3.match(/[\t ]/g)) === null || _a4 === void 0 ? void 0 : _a4.length) !== null && _b !== void 0 ? _b : 0;
  5745. })) : arr;
  5746. }, []);
  5747. if (indentLengths.length) {
  5748. var pattern_1 = new RegExp(`
  5749. [ ]{` + Math.min.apply(Math, indentLengths) + "}", "g");
  5750. strings = strings.map(function(str2) {
  5751. return str2.replace(pattern_1, `
  5752. `);
  5753. });
  5754. }
  5755. strings[0] = strings[0].replace(/^\r?\n/, "");
  5756. var string = strings[0];
  5757. return values.forEach(function(value, i) {
  5758. var endentations = string.match(/(?:^|\n)( *)$/), endentation = endentations ? endentations[1] : "", indentedValue = value;
  5759. typeof value == "string" && value.includes(`
  5760. `) && (indentedValue = String(value).split(`
  5761. `).map(function(str2, i2) {
  5762. return i2 === 0 ? str2 : "" + endentation + str2;
  5763. }).join(`
  5764. `)), string += indentedValue + strings[i + 1];
  5765. }), string;
  5766. }
  5767. var init_esm = __esm({
  5768. "../../node_modules/ts-dedent/esm/index.js"() {
  5769. }
  5770. });
  5771. // src/client-logger/index.ts
  5772. var client_logger_exports = {};
  5773. __export(client_logger_exports, {
  5774. deprecate: () => deprecate,
  5775. logger: () => logger,
  5776. once: () => once,
  5777. pretty: () => pretty
  5778. });
  5779. var LOGLEVEL, levels, currentLogLevelString, currentLogLevelNumber, logger, logged, once, deprecate, pretty, init_client_logger = __esm({
  5780. "src/client-logger/index.ts"() {
  5781. "use strict";
  5782. init_dist();
  5783. ({ LOGLEVEL } = scope), levels = {
  5784. trace: 1,
  5785. debug: 2,
  5786. info: 3,
  5787. warn: 4,
  5788. error: 5,
  5789. silent: 10
  5790. }, currentLogLevelString = LOGLEVEL, currentLogLevelNumber = levels[currentLogLevelString] || levels.info, logger = {
  5791. trace: (message, ...rest) => {
  5792. currentLogLevelNumber <= levels.trace && console.trace(message, ...rest);
  5793. },
  5794. debug: (message, ...rest) => {
  5795. currentLogLevelNumber <= levels.debug && console.debug(message, ...rest);
  5796. },
  5797. info: (message, ...rest) => {
  5798. currentLogLevelNumber <= levels.info && console.info(message, ...rest);
  5799. },
  5800. warn: (message, ...rest) => {
  5801. currentLogLevelNumber <= levels.warn && console.warn(message, ...rest);
  5802. },
  5803. error: (message, ...rest) => {
  5804. currentLogLevelNumber <= levels.error && console.error(message, ...rest);
  5805. },
  5806. log: (message, ...rest) => {
  5807. currentLogLevelNumber < levels.silent && console.log(message, ...rest);
  5808. }
  5809. }, logged = /* @__PURE__ */ new Set(), once = (type5) => (message, ...rest) => {
  5810. if (!logged.has(message))
  5811. return logged.add(message), logger[type5](message, ...rest);
  5812. };
  5813. once.clear = () => logged.clear();
  5814. once.trace = once("trace");
  5815. once.debug = once("debug");
  5816. once.info = once("info");
  5817. once.warn = once("warn");
  5818. once.error = once("error");
  5819. once.log = once("log");
  5820. deprecate = once("warn"), pretty = (type5) => (...args) => {
  5821. let argArray = [];
  5822. if (args.length) {
  5823. let startTagRe = /<span\s+style=(['"])([^'"]*)\1\s*>/gi, endTagRe = /<\/span>/gi, reResultArray;
  5824. for (argArray.push(args[0].replace(startTagRe, "%c").replace(endTagRe, "%c")); reResultArray = startTagRe.exec(args[0]); )
  5825. argArray.push(reResultArray[2]), argArray.push("");
  5826. for (let j = 1; j < args.length; j++)
  5827. argArray.push(args[j]);
  5828. }
  5829. logger[type5].apply(logger, argArray);
  5830. };
  5831. pretty.trace = pretty("trace");
  5832. pretty.debug = pretty("debug");
  5833. pretty.info = pretty("info");
  5834. pretty.warn = pretty("warn");
  5835. pretty.error = pretty("error");
  5836. }
  5837. });
  5838. // ../../node_modules/@babel/runtime/helpers/esm/extends.js
  5839. function _extends() {
  5840. return _extends = Object.assign ? Object.assign.bind() : function(n) {
  5841. for (var e = 1; e < arguments.length; e++) {
  5842. var t = arguments[e];
  5843. for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
  5844. }
  5845. return n;
  5846. }, _extends.apply(null, arguments);
  5847. }
  5848. var init_extends = __esm({
  5849. "../../node_modules/@babel/runtime/helpers/esm/extends.js"() {
  5850. }
  5851. });
  5852. // ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
  5853. function sheetForTag(tag) {
  5854. if (tag.sheet)
  5855. return tag.sheet;
  5856. for (var i = 0; i < document.styleSheets.length; i++)
  5857. if (document.styleSheets[i].ownerNode === tag)
  5858. return document.styleSheets[i];
  5859. }
  5860. function createStyleElement(options) {
  5861. var tag = document.createElement("style");
  5862. return tag.setAttribute("data-emotion", options.key), options.nonce !== void 0 && tag.setAttribute("nonce", options.nonce), tag.appendChild(document.createTextNode("")), tag.setAttribute("data-s", ""), tag;
  5863. }
  5864. var isDevelopment, StyleSheet, init_emotion_sheet_esm = __esm({
  5865. "../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js"() {
  5866. isDevelopment = !1;
  5867. StyleSheet = (function() {
  5868. function StyleSheet2(options) {
  5869. var _this = this;
  5870. this._insertTag = function(tag) {
  5871. var before;
  5872. _this.tags.length === 0 ? _this.insertionPoint ? before = _this.insertionPoint.nextSibling : _this.prepend ? before = _this.container.firstChild : before = _this.before : before = _this.tags[_this.tags.length - 1].nextSibling, _this.container.insertBefore(tag, before), _this.tags.push(tag);
  5873. }, this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy, this.tags = [], this.ctr = 0, this.nonce = options.nonce, this.key = options.key, this.container = options.container, this.prepend = options.prepend, this.insertionPoint = options.insertionPoint, this.before = null;
  5874. }
  5875. var _proto = StyleSheet2.prototype;
  5876. return _proto.hydrate = function(nodes) {
  5877. nodes.forEach(this._insertTag);
  5878. }, _proto.insert = function(rule) {
  5879. this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(createStyleElement(this));
  5880. var tag = this.tags[this.tags.length - 1];
  5881. if (this.isSpeedy) {
  5882. var sheet = sheetForTag(tag);
  5883. try {
  5884. sheet.insertRule(rule, sheet.cssRules.length);
  5885. } catch {
  5886. }
  5887. } else
  5888. tag.appendChild(document.createTextNode(rule));
  5889. this.ctr++;
  5890. }, _proto.flush = function() {
  5891. this.tags.forEach(function(tag) {
  5892. var _tag$parentNode;
  5893. return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
  5894. }), this.tags = [], this.ctr = 0;
  5895. }, StyleSheet2;
  5896. })();
  5897. }
  5898. });
  5899. // ../../node_modules/stylis/src/Enum.js
  5900. var MS, MOZ, WEBKIT, COMMENT, RULESET, DECLARATION, IMPORT, KEYFRAMES, LAYER, init_Enum = __esm({
  5901. "../../node_modules/stylis/src/Enum.js"() {
  5902. MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl", IMPORT = "@import", KEYFRAMES = "@keyframes", LAYER = "@layer";
  5903. }
  5904. });
  5905. // ../../node_modules/stylis/src/Utility.js
  5906. function hash(value, length2) {
  5907. return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
  5908. }
  5909. function trim(value) {
  5910. return value.trim();
  5911. }
  5912. function match(value, pattern) {
  5913. return (value = pattern.exec(value)) ? value[0] : value;
  5914. }
  5915. function replace(value, pattern, replacement) {
  5916. return value.replace(pattern, replacement);
  5917. }
  5918. function indexof(value, search) {
  5919. return value.indexOf(search);
  5920. }
  5921. function charat(value, index4) {
  5922. return value.charCodeAt(index4) | 0;
  5923. }
  5924. function substr(value, begin, end2) {
  5925. return value.slice(begin, end2);
  5926. }
  5927. function strlen(value) {
  5928. return value.length;
  5929. }
  5930. function sizeof(value) {
  5931. return value.length;
  5932. }
  5933. function append(value, array) {
  5934. return array.push(value), value;
  5935. }
  5936. function combine(array, callback) {
  5937. return array.map(callback).join("");
  5938. }
  5939. var abs, from, assign, init_Utility = __esm({
  5940. "../../node_modules/stylis/src/Utility.js"() {
  5941. abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
  5942. }
  5943. });
  5944. // ../../node_modules/stylis/src/Tokenizer.js
  5945. function node(value, root2, parent, type5, props, children, length2) {
  5946. return { value, root: root2, parent, type: type5, props, children, line, column, length: length2, return: "" };
  5947. }
  5948. function copy(root2, props) {
  5949. return assign(node("", null, null, "", null, null, 0), root2, { length: -root2.length }, props);
  5950. }
  5951. function char() {
  5952. return character;
  5953. }
  5954. function prev() {
  5955. return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character;
  5956. }
  5957. function next() {
  5958. return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character;
  5959. }
  5960. function peek() {
  5961. return charat(characters, position);
  5962. }
  5963. function caret() {
  5964. return position;
  5965. }
  5966. function slice(begin, end2) {
  5967. return substr(characters, begin, end2);
  5968. }
  5969. function token(type5) {
  5970. switch (type5) {
  5971. // \0 \t \n \r \s whitespace token
  5972. case 0:
  5973. case 9:
  5974. case 10:
  5975. case 13:
  5976. case 32:
  5977. return 5;
  5978. // ! + , / > @ ~ isolate token
  5979. case 33:
  5980. case 43:
  5981. case 44:
  5982. case 47:
  5983. case 62:
  5984. case 64:
  5985. case 126:
  5986. // ; { } breakpoint token
  5987. case 59:
  5988. case 123:
  5989. case 125:
  5990. return 4;
  5991. // : accompanied token
  5992. case 58:
  5993. return 3;
  5994. // " ' ( [ opening delimit token
  5995. case 34:
  5996. case 39:
  5997. case 40:
  5998. case 91:
  5999. return 2;
  6000. // ) ] closing delimit token
  6001. case 41:
  6002. case 93:
  6003. return 1;
  6004. }
  6005. return 0;
  6006. }
  6007. function alloc(value) {
  6008. return line = column = 1, length = strlen(characters = value), position = 0, [];
  6009. }
  6010. function dealloc(value) {
  6011. return characters = "", value;
  6012. }
  6013. function delimit(type5) {
  6014. return trim(slice(position - 1, delimiter(type5 === 91 ? type5 + 2 : type5 === 40 ? type5 + 1 : type5)));
  6015. }
  6016. function whitespace(type5) {
  6017. for (; (character = peek()) && character < 33; )
  6018. next();
  6019. return token(type5) > 2 || token(character) > 3 ? "" : " ";
  6020. }
  6021. function escaping(index4, count) {
  6022. for (; --count && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97); )
  6023. ;
  6024. return slice(index4, caret() + (count < 6 && peek() == 32 && next() == 32));
  6025. }
  6026. function delimiter(type5) {
  6027. for (; next(); )
  6028. switch (character) {
  6029. // ] ) " '
  6030. case type5:
  6031. return position;
  6032. // " '
  6033. case 34:
  6034. case 39:
  6035. type5 !== 34 && type5 !== 39 && delimiter(character);
  6036. break;
  6037. // (
  6038. case 40:
  6039. type5 === 41 && delimiter(type5);
  6040. break;
  6041. // \
  6042. case 92:
  6043. next();
  6044. break;
  6045. }
  6046. return position;
  6047. }
  6048. function commenter(type5, index4) {
  6049. for (; next() && type5 + character !== 57; )
  6050. if (type5 + character === 84 && peek() === 47)
  6051. break;
  6052. return "/*" + slice(index4, position - 1) + "*" + from(type5 === 47 ? type5 : next());
  6053. }
  6054. function identifier(index4) {
  6055. for (; !token(peek()); )
  6056. next();
  6057. return slice(index4, position);
  6058. }
  6059. var line, column, length, position, character, characters, init_Tokenizer = __esm({
  6060. "../../node_modules/stylis/src/Tokenizer.js"() {
  6061. init_Utility();
  6062. line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
  6063. }
  6064. });
  6065. // ../../node_modules/stylis/src/Parser.js
  6066. function compile(value) {
  6067. return dealloc(parse2("", null, null, null, [""], value = alloc(value), 0, [0], value));
  6068. }
  6069. function parse2(value, root2, parent, rule, rules, rulesets, pseudo, points, declarations) {
  6070. for (var index4 = 0, offset3 = 0, length2 = pseudo, atrule = 0, property = 0, previous = 0, variable = 1, scanning = 1, ampersand = 1, character2 = 0, type5 = "", props = rules, children = rulesets, reference2 = rule, characters2 = type5; scanning; )
  6071. switch (previous = character2, character2 = next()) {
  6072. // (
  6073. case 40:
  6074. if (previous != 108 && charat(characters2, length2 - 1) == 58) {
  6075. indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1 && (ampersand = -1);
  6076. break;
  6077. }
  6078. // " ' [
  6079. case 34:
  6080. case 39:
  6081. case 91:
  6082. characters2 += delimit(character2);
  6083. break;
  6084. // \t \n \r \s
  6085. case 9:
  6086. case 10:
  6087. case 13:
  6088. case 32:
  6089. characters2 += whitespace(previous);
  6090. break;
  6091. // \
  6092. case 92:
  6093. characters2 += escaping(caret() - 1, 7);
  6094. continue;
  6095. // /
  6096. case 47:
  6097. switch (peek()) {
  6098. case 42:
  6099. case 47:
  6100. append(comment(commenter(next(), caret()), root2, parent), declarations);
  6101. break;
  6102. default:
  6103. characters2 += "/";
  6104. }
  6105. break;
  6106. // {
  6107. case 123 * variable:
  6108. points[index4++] = strlen(characters2) * ampersand;
  6109. // } ; \0
  6110. case 125 * variable:
  6111. case 59:
  6112. case 0:
  6113. switch (character2) {
  6114. // \0 }
  6115. case 0:
  6116. case 125:
  6117. scanning = 0;
  6118. // ;
  6119. case 59 + offset3:
  6120. ampersand == -1 && (characters2 = replace(characters2, /\f/g, "")), property > 0 && strlen(characters2) - length2 && append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
  6121. break;
  6122. // @ ;
  6123. case 59:
  6124. characters2 += ";";
  6125. // { rule/at-rule
  6126. default:
  6127. if (append(reference2 = ruleset(characters2, root2, parent, index4, offset3, rules, points, type5, props = [], children = [], length2), rulesets), character2 === 123)
  6128. if (offset3 === 0)
  6129. parse2(characters2, root2, reference2, reference2, props, rulesets, length2, points, children);
  6130. else
  6131. switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
  6132. // d l m s
  6133. case 100:
  6134. case 108:
  6135. case 109:
  6136. case 115:
  6137. parse2(value, reference2, reference2, rule && append(ruleset(value, reference2, reference2, 0, 0, rules, points, type5, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
  6138. break;
  6139. default:
  6140. parse2(characters2, reference2, reference2, reference2, [""], children, 0, points, children);
  6141. }
  6142. }
  6143. index4 = offset3 = property = 0, variable = ampersand = 1, type5 = characters2 = "", length2 = pseudo;
  6144. break;
  6145. // :
  6146. case 58:
  6147. length2 = 1 + strlen(characters2), property = previous;
  6148. default:
  6149. if (variable < 1) {
  6150. if (character2 == 123)
  6151. --variable;
  6152. else if (character2 == 125 && variable++ == 0 && prev() == 125)
  6153. continue;
  6154. }
  6155. switch (characters2 += from(character2), character2 * variable) {
  6156. // &
  6157. case 38:
  6158. ampersand = offset3 > 0 ? 1 : (characters2 += "\f", -1);
  6159. break;
  6160. // ,
  6161. case 44:
  6162. points[index4++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
  6163. break;
  6164. // @
  6165. case 64:
  6166. peek() === 45 && (characters2 += delimit(next())), atrule = peek(), offset3 = length2 = strlen(type5 = characters2 += identifier(caret())), character2++;
  6167. break;
  6168. // -
  6169. case 45:
  6170. previous === 45 && strlen(characters2) == 2 && (variable = 0);
  6171. }
  6172. }
  6173. return rulesets;
  6174. }
  6175. function ruleset(value, root2, parent, index4, offset3, rules, points, type5, props, children, length2) {
  6176. for (var post = offset3 - 1, rule = offset3 === 0 ? rules : [""], size = sizeof(rule), i = 0, j = 0, k = 0; i < index4; ++i)
  6177. for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
  6178. (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z);
  6179. return node(value, root2, parent, offset3 === 0 ? RULESET : type5, props, children, length2);
  6180. }
  6181. function comment(value, root2, parent) {
  6182. return node(value, root2, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
  6183. }
  6184. function declaration(value, root2, parent, length2) {
  6185. return node(value, root2, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
  6186. }
  6187. var init_Parser = __esm({
  6188. "../../node_modules/stylis/src/Parser.js"() {
  6189. init_Enum();
  6190. init_Utility();
  6191. init_Tokenizer();
  6192. }
  6193. });
  6194. // ../../node_modules/stylis/src/Prefixer.js
  6195. var init_Prefixer = __esm({
  6196. "../../node_modules/stylis/src/Prefixer.js"() {
  6197. init_Enum();
  6198. init_Utility();
  6199. }
  6200. });
  6201. // ../../node_modules/stylis/src/Serializer.js
  6202. function serialize(children, callback) {
  6203. for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++)
  6204. output += callback(children[i], i, children, callback) || "";
  6205. return output;
  6206. }
  6207. function stringify2(element, index4, children, callback) {
  6208. switch (element.type) {
  6209. case LAYER:
  6210. if (element.children.length) break;
  6211. case IMPORT:
  6212. case DECLARATION:
  6213. return element.return = element.return || element.value;
  6214. case COMMENT:
  6215. return "";
  6216. case KEYFRAMES:
  6217. return element.return = element.value + "{" + serialize(element.children, callback) + "}";
  6218. case RULESET:
  6219. element.value = element.props.join(",");
  6220. }
  6221. return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
  6222. }
  6223. var init_Serializer = __esm({
  6224. "../../node_modules/stylis/src/Serializer.js"() {
  6225. init_Enum();
  6226. init_Utility();
  6227. }
  6228. });
  6229. // ../../node_modules/stylis/src/Middleware.js
  6230. function middleware(collection) {
  6231. var length2 = sizeof(collection);
  6232. return function(element, index4, children, callback) {
  6233. for (var output = "", i = 0; i < length2; i++)
  6234. output += collection[i](element, index4, children, callback) || "";
  6235. return output;
  6236. };
  6237. }
  6238. function rulesheet(callback) {
  6239. return function(element) {
  6240. element.root || (element = element.return) && callback(element);
  6241. };
  6242. }
  6243. var init_Middleware = __esm({
  6244. "../../node_modules/stylis/src/Middleware.js"() {
  6245. init_Enum();
  6246. init_Utility();
  6247. init_Tokenizer();
  6248. init_Serializer();
  6249. init_Prefixer();
  6250. }
  6251. });
  6252. // ../../node_modules/stylis/index.js
  6253. var init_stylis = __esm({
  6254. "../../node_modules/stylis/index.js"() {
  6255. init_Enum();
  6256. init_Utility();
  6257. init_Parser();
  6258. init_Prefixer();
  6259. init_Tokenizer();
  6260. init_Serializer();
  6261. init_Middleware();
  6262. }
  6263. });
  6264. // ../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
  6265. var weakMemoize, init_emotion_weak_memoize_esm = __esm({
  6266. "../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"() {
  6267. weakMemoize = function(func) {
  6268. var cache = /* @__PURE__ */ new WeakMap();
  6269. return function(arg) {
  6270. if (cache.has(arg))
  6271. return cache.get(arg);
  6272. var ret = func(arg);
  6273. return cache.set(arg, ret), ret;
  6274. };
  6275. };
  6276. }
  6277. });
  6278. // ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
  6279. function memoize2(fn4) {
  6280. var cache = /* @__PURE__ */ Object.create(null);
  6281. return function(arg) {
  6282. return cache[arg] === void 0 && (cache[arg] = fn4(arg)), cache[arg];
  6283. };
  6284. }
  6285. var init_emotion_memoize_esm = __esm({
  6286. "../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"() {
  6287. }
  6288. });
  6289. // ../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
  6290. function prefix3(value, length2) {
  6291. switch (hash(value, length2)) {
  6292. // color-adjust
  6293. case 5103:
  6294. return WEBKIT + "print-" + value + value;
  6295. // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
  6296. case 5737:
  6297. case 4201:
  6298. case 3177:
  6299. case 3433:
  6300. case 1641:
  6301. case 4457:
  6302. case 2921:
  6303. // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
  6304. case 5572:
  6305. case 6356:
  6306. case 5844:
  6307. case 3191:
  6308. case 6645:
  6309. case 3005:
  6310. // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
  6311. case 6391:
  6312. case 5879:
  6313. case 5623:
  6314. case 6135:
  6315. case 4599:
  6316. case 4855:
  6317. // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
  6318. case 4215:
  6319. case 6389:
  6320. case 5109:
  6321. case 5365:
  6322. case 5621:
  6323. case 3829:
  6324. return WEBKIT + value + value;
  6325. // appearance, user-select, transform, hyphens, text-size-adjust
  6326. case 5349:
  6327. case 4246:
  6328. case 4810:
  6329. case 6968:
  6330. case 2756:
  6331. return WEBKIT + value + MOZ + value + MS + value + value;
  6332. // flex, flex-direction
  6333. case 6828:
  6334. case 4268:
  6335. return WEBKIT + value + MS + value + value;
  6336. // order
  6337. case 6165:
  6338. return WEBKIT + value + MS + "flex-" + value + value;
  6339. // align-items
  6340. case 5187:
  6341. return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
  6342. // align-self
  6343. case 5443:
  6344. return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
  6345. // align-content
  6346. case 4675:
  6347. return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
  6348. // flex-shrink
  6349. case 5548:
  6350. return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
  6351. // flex-basis
  6352. case 5292:
  6353. return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
  6354. // flex-grow
  6355. case 6060:
  6356. return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
  6357. // transition
  6358. case 4554:
  6359. return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
  6360. // cursor
  6361. case 6187:
  6362. return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
  6363. // background, background-image
  6364. case 5495:
  6365. case 3959:
  6366. return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
  6367. // justify-content
  6368. case 4968:
  6369. return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
  6370. // (margin|padding)-inline-(start|end)
  6371. case 4095:
  6372. case 3583:
  6373. case 4068:
  6374. case 2532:
  6375. return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
  6376. // (min|max)?(width|height|inline-size|block-size)
  6377. case 8116:
  6378. case 7059:
  6379. case 5753:
  6380. case 5535:
  6381. case 5445:
  6382. case 5701:
  6383. case 4933:
  6384. case 4677:
  6385. case 5533:
  6386. case 5789:
  6387. case 5021:
  6388. case 4765:
  6389. if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
  6390. // (m)ax-content, (m)in-content
  6391. case 109:
  6392. if (charat(value, length2 + 4) !== 45) break;
  6393. // (f)ill-available, (f)it-content
  6394. case 102:
  6395. return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
  6396. // (s)tretch
  6397. case 115:
  6398. return ~indexof(value, "stretch") ? prefix3(replace(value, "stretch", "fill-available"), length2) + value : value;
  6399. }
  6400. break;
  6401. // position: sticky
  6402. case 4949:
  6403. if (charat(value, length2 + 1) !== 115) break;
  6404. // display: (flex|inline-flex)
  6405. case 6444:
  6406. switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
  6407. // stic(k)y
  6408. case 107:
  6409. return replace(value, ":", ":" + WEBKIT) + value;
  6410. // (inline-)?fl(e)x
  6411. case 101:
  6412. return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
  6413. }
  6414. break;
  6415. // writing-mode
  6416. case 5936:
  6417. switch (charat(value, length2 + 11)) {
  6418. // vertical-l(r)
  6419. case 114:
  6420. return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
  6421. // vertical-r(l)
  6422. case 108:
  6423. return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
  6424. // horizontal(-)tb
  6425. case 45:
  6426. return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
  6427. }
  6428. return WEBKIT + value + MS + value + value;
  6429. }
  6430. return value;
  6431. }
  6432. var identifierWithPointTracking, toRules, getRules, fixedElements, compat, removeLabel, prefixer, defaultStylisPlugins, createCache, init_emotion_cache_browser_esm = __esm({
  6433. "../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"() {
  6434. init_emotion_sheet_esm();
  6435. init_stylis();
  6436. init_emotion_weak_memoize_esm();
  6437. init_emotion_memoize_esm();
  6438. identifierWithPointTracking = function(begin, points, index4) {
  6439. for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index4] = 1), !token(character2); )
  6440. next();
  6441. return slice(begin, position);
  6442. }, toRules = function(parsed, points) {
  6443. var index4 = -1, character2 = 44;
  6444. do
  6445. switch (token(character2)) {
  6446. case 0:
  6447. character2 === 38 && peek() === 12 && (points[index4] = 1), parsed[index4] += identifierWithPointTracking(position - 1, points, index4);
  6448. break;
  6449. case 2:
  6450. parsed[index4] += delimit(character2);
  6451. break;
  6452. case 4:
  6453. if (character2 === 44) {
  6454. parsed[++index4] = peek() === 58 ? "&\f" : "", points[index4] = parsed[index4].length;
  6455. break;
  6456. }
  6457. // fallthrough
  6458. default:
  6459. parsed[index4] += from(character2);
  6460. }
  6461. while (character2 = next());
  6462. return parsed;
  6463. }, getRules = function(value, points) {
  6464. return dealloc(toRules(alloc(value), points));
  6465. }, fixedElements = /* @__PURE__ */ new WeakMap(), compat = function(element) {
  6466. if (!(element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
  6467. // negative .length indicates that this rule has been already prefixed
  6468. element.length < 1)) {
  6469. for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; parent.type !== "rule"; )
  6470. if (parent = parent.parent, !parent) return;
  6471. if (!(element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) && !isImplicitRule) {
  6472. fixedElements.set(element, !0);
  6473. for (var points = [], rules = getRules(value, points), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)
  6474. for (var j = 0; j < parentRules.length; j++, k++)
  6475. element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
  6476. }
  6477. }
  6478. }, removeLabel = function(element) {
  6479. if (element.type === "decl") {
  6480. var value = element.value;
  6481. // charcode for l
  6482. value.charCodeAt(0) === 108 && // charcode for b
  6483. value.charCodeAt(2) === 98 && (element.return = "", element.value = "");
  6484. }
  6485. };
  6486. prefixer = function(element, index4, children, callback) {
  6487. if (element.length > -1 && !element.return) switch (element.type) {
  6488. case DECLARATION:
  6489. element.return = prefix3(element.value, element.length);
  6490. break;
  6491. case KEYFRAMES:
  6492. return serialize([copy(element, {
  6493. value: replace(element.value, "@", "@" + WEBKIT)
  6494. })], callback);
  6495. case RULESET:
  6496. if (element.length) return combine(element.props, function(value) {
  6497. switch (match(value, /(::plac\w+|:read-\w+)/)) {
  6498. // :read-(only|write)
  6499. case ":read-only":
  6500. case ":read-write":
  6501. return serialize([copy(element, {
  6502. props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
  6503. })], callback);
  6504. // :placeholder
  6505. case "::placeholder":
  6506. return serialize([copy(element, {
  6507. props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
  6508. }), copy(element, {
  6509. props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
  6510. }), copy(element, {
  6511. props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
  6512. })], callback);
  6513. }
  6514. return "";
  6515. });
  6516. }
  6517. }, defaultStylisPlugins = [prefixer], createCache = function(options) {
  6518. var key = options.key;
  6519. if (key === "css") {
  6520. var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
  6521. Array.prototype.forEach.call(ssrStyles, function(node2) {
  6522. var dataEmotionAttribute = node2.getAttribute("data-emotion");
  6523. dataEmotionAttribute.indexOf(" ") !== -1 && (document.head.appendChild(node2), node2.setAttribute("data-s", ""));
  6524. });
  6525. }
  6526. var stylisPlugins = options.stylisPlugins || defaultStylisPlugins, inserted = {}, container, nodesToHydrate = [];
  6527. container = options.container || document.head, Array.prototype.forEach.call(
  6528. // this means we will ignore elements which don't have a space in them which
  6529. // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
  6530. document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
  6531. function(node2) {
  6532. for (var attrib = node2.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)
  6533. inserted[attrib[i]] = !0;
  6534. nodesToHydrate.push(node2);
  6535. }
  6536. );
  6537. var _insert, omnipresentPlugins = [compat, removeLabel];
  6538. {
  6539. var currentSheet, finalizingPlugins = [stringify2, rulesheet(function(rule) {
  6540. currentSheet.insert(rule);
  6541. })], serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)), stylis = function(styles4) {
  6542. return serialize(compile(styles4), serializer);
  6543. };
  6544. _insert = function(selector, serialized, sheet, shouldCache) {
  6545. currentSheet = sheet, stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles), shouldCache && (cache.inserted[serialized.name] = !0);
  6546. };
  6547. }
  6548. var cache = {
  6549. key,
  6550. sheet: new StyleSheet({
  6551. key,
  6552. container,
  6553. nonce: options.nonce,
  6554. speedy: options.speedy,
  6555. prepend: options.prepend,
  6556. insertionPoint: options.insertionPoint
  6557. }),
  6558. nonce: options.nonce,
  6559. inserted,
  6560. registered: {},
  6561. insert: _insert
  6562. };
  6563. return cache.sheet.hydrate(nodesToHydrate), cache;
  6564. };
  6565. }
  6566. });
  6567. // ../../node_modules/react-is/cjs/react-is.production.min.js
  6568. var require_react_is_production_min = __commonJS({
  6569. "../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
  6570. "use strict";
  6571. var b = typeof Symbol == "function" && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f4 = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h3 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m3 = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p3 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
  6572. function z(a3) {
  6573. if (typeof a3 == "object" && a3 !== null) {
  6574. var u2 = a3.$$typeof;
  6575. switch (u2) {
  6576. case c:
  6577. switch (a3 = a3.type, a3) {
  6578. case l:
  6579. case m3:
  6580. case e:
  6581. case g2:
  6582. case f4:
  6583. case p3:
  6584. return a3;
  6585. default:
  6586. switch (a3 = a3 && a3.$$typeof, a3) {
  6587. case k:
  6588. case n:
  6589. case t:
  6590. case r2:
  6591. case h3:
  6592. return a3;
  6593. default:
  6594. return u2;
  6595. }
  6596. }
  6597. case d:
  6598. return u2;
  6599. }
  6600. }
  6601. }
  6602. function A3(a3) {
  6603. return z(a3) === m3;
  6604. }
  6605. exports.AsyncMode = l;
  6606. exports.ConcurrentMode = m3;
  6607. exports.ContextConsumer = k;
  6608. exports.ContextProvider = h3;
  6609. exports.Element = c;
  6610. exports.ForwardRef = n;
  6611. exports.Fragment = e;
  6612. exports.Lazy = t;
  6613. exports.Memo = r2;
  6614. exports.Portal = d;
  6615. exports.Profiler = g2;
  6616. exports.StrictMode = f4;
  6617. exports.Suspense = p3;
  6618. exports.isAsyncMode = function(a3) {
  6619. return A3(a3) || z(a3) === l;
  6620. };
  6621. exports.isConcurrentMode = A3;
  6622. exports.isContextConsumer = function(a3) {
  6623. return z(a3) === k;
  6624. };
  6625. exports.isContextProvider = function(a3) {
  6626. return z(a3) === h3;
  6627. };
  6628. exports.isElement = function(a3) {
  6629. return typeof a3 == "object" && a3 !== null && a3.$$typeof === c;
  6630. };
  6631. exports.isForwardRef = function(a3) {
  6632. return z(a3) === n;
  6633. };
  6634. exports.isFragment = function(a3) {
  6635. return z(a3) === e;
  6636. };
  6637. exports.isLazy = function(a3) {
  6638. return z(a3) === t;
  6639. };
  6640. exports.isMemo = function(a3) {
  6641. return z(a3) === r2;
  6642. };
  6643. exports.isPortal = function(a3) {
  6644. return z(a3) === d;
  6645. };
  6646. exports.isProfiler = function(a3) {
  6647. return z(a3) === g2;
  6648. };
  6649. exports.isStrictMode = function(a3) {
  6650. return z(a3) === f4;
  6651. };
  6652. exports.isSuspense = function(a3) {
  6653. return z(a3) === p3;
  6654. };
  6655. exports.isValidElementType = function(a3) {
  6656. return typeof a3 == "string" || typeof a3 == "function" || a3 === e || a3 === m3 || a3 === g2 || a3 === f4 || a3 === p3 || a3 === q || typeof a3 == "object" && a3 !== null && (a3.$$typeof === t || a3.$$typeof === r2 || a3.$$typeof === h3 || a3.$$typeof === k || a3.$$typeof === n || a3.$$typeof === w || a3.$$typeof === x || a3.$$typeof === y || a3.$$typeof === v);
  6657. };
  6658. exports.typeOf = z;
  6659. }
  6660. });
  6661. // ../../node_modules/react-is/index.js
  6662. var require_react_is = __commonJS({
  6663. "../../node_modules/react-is/index.js"(exports, module2) {
  6664. "use strict";
  6665. module2.exports = require_react_is_production_min();
  6666. }
  6667. });
  6668. // ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
  6669. var require_hoist_non_react_statics_cjs = __commonJS({
  6670. "../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module2) {
  6671. "use strict";
  6672. var reactIs2 = require_react_is(), REACT_STATICS = {
  6673. childContextTypes: !0,
  6674. contextType: !0,
  6675. contextTypes: !0,
  6676. defaultProps: !0,
  6677. displayName: !0,
  6678. getDefaultProps: !0,
  6679. getDerivedStateFromError: !0,
  6680. getDerivedStateFromProps: !0,
  6681. mixins: !0,
  6682. propTypes: !0,
  6683. type: !0
  6684. }, KNOWN_STATICS = {
  6685. name: !0,
  6686. length: !0,
  6687. prototype: !0,
  6688. caller: !0,
  6689. callee: !0,
  6690. arguments: !0,
  6691. arity: !0
  6692. }, FORWARD_REF_STATICS = {
  6693. $$typeof: !0,
  6694. render: !0,
  6695. defaultProps: !0,
  6696. displayName: !0,
  6697. propTypes: !0
  6698. }, MEMO_STATICS = {
  6699. $$typeof: !0,
  6700. compare: !0,
  6701. defaultProps: !0,
  6702. displayName: !0,
  6703. propTypes: !0,
  6704. type: !0
  6705. }, TYPE_STATICS = {};
  6706. TYPE_STATICS[reactIs2.ForwardRef] = FORWARD_REF_STATICS;
  6707. TYPE_STATICS[reactIs2.Memo] = MEMO_STATICS;
  6708. function getStatics(component) {
  6709. return reactIs2.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS;
  6710. }
  6711. var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype;
  6712. function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
  6713. if (typeof sourceComponent != "string") {
  6714. if (objectPrototype) {
  6715. var inheritedComponent = getPrototypeOf(sourceComponent);
  6716. inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
  6717. }
  6718. var keys3 = getOwnPropertyNames(sourceComponent);
  6719. getOwnPropertySymbols && (keys3 = keys3.concat(getOwnPropertySymbols(sourceComponent)));
  6720. for (var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys3.length; ++i) {
  6721. var key = keys3[i];
  6722. if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
  6723. var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
  6724. try {
  6725. defineProperty(targetComponent, key, descriptor);
  6726. } catch {
  6727. }
  6728. }
  6729. }
  6730. }
  6731. return targetComponent;
  6732. }
  6733. module2.exports = hoistNonReactStatics2;
  6734. }
  6735. });
  6736. // ../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
  6737. var import_hoist_non_react_statics, hoistNonReactStatics, init_emotion_react_isolated_hnrs_browser_esm = __esm({
  6738. "../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js"() {
  6739. import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()), hoistNonReactStatics = (function(targetComponent, sourceComponent) {
  6740. return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent);
  6741. });
  6742. }
  6743. });
  6744. // ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
  6745. function getRegisteredStyles(registered, registeredStyles, classNames) {
  6746. var rawClassName = "";
  6747. return classNames.split(" ").forEach(function(className) {
  6748. registered[className] !== void 0 ? registeredStyles.push(registered[className] + ";") : className && (rawClassName += className + " ");
  6749. }), rawClassName;
  6750. }
  6751. var isBrowser, registerStyles, insertStyles, init_emotion_utils_browser_esm = __esm({
  6752. "../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"() {
  6753. isBrowser = !0;
  6754. registerStyles = function(cache, serialized, isStringTag) {
  6755. var className = cache.key + "-" + serialized.name;
  6756. // we only need to add the styles to the registered cache if the
  6757. // class name could be used further down
  6758. // the tree but if it's a string tag, we know it won't
  6759. // so we don't have to add it to registered cache.
  6760. // this improves memory usage since we can avoid storing the whole style string
  6761. (isStringTag === !1 || // we need to always store it if we're in compat mode and
  6762. // in node since emotion-server relies on whether a style is in
  6763. // the registered cache to know whether a style is global or not
  6764. // also, note that this check will be dead code eliminated in the browser
  6765. isBrowser === !1) && cache.registered[className] === void 0 && (cache.registered[className] = serialized.styles);
  6766. }, insertStyles = function(cache, serialized, isStringTag) {
  6767. registerStyles(cache, serialized, isStringTag);
  6768. var className = cache.key + "-" + serialized.name;
  6769. if (cache.inserted[serialized.name] === void 0) {
  6770. var current = serialized;
  6771. do
  6772. cache.insert(serialized === current ? "." + className : "", current, cache.sheet, !0), current = current.next;
  6773. while (current !== void 0);
  6774. }
  6775. };
  6776. }
  6777. });
  6778. // ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
  6779. function murmur2(str2) {
  6780. for (var h3 = 0, k, i = 0, len = str2.length; len >= 4; ++i, len -= 4)
  6781. k = str2.charCodeAt(i) & 255 | (str2.charCodeAt(++i) & 255) << 8 | (str2.charCodeAt(++i) & 255) << 16 | (str2.charCodeAt(++i) & 255) << 24, k = /* Math.imul(k, m): */
  6782. (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16), k ^= /* k >>> r: */
  6783. k >>> 24, h3 = /* Math.imul(k, m): */
  6784. (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
  6785. (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16);
  6786. switch (len) {
  6787. case 3:
  6788. h3 ^= (str2.charCodeAt(i + 2) & 255) << 16;
  6789. case 2:
  6790. h3 ^= (str2.charCodeAt(i + 1) & 255) << 8;
  6791. case 1:
  6792. h3 ^= str2.charCodeAt(i) & 255, h3 = /* Math.imul(h, m): */
  6793. (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16);
  6794. }
  6795. return h3 ^= h3 >>> 13, h3 = /* Math.imul(h, m): */
  6796. (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16), ((h3 ^ h3 >>> 15) >>> 0).toString(36);
  6797. }
  6798. var init_emotion_hash_esm = __esm({
  6799. "../../node_modules/@emotion/hash/dist/emotion-hash.esm.js"() {
  6800. }
  6801. });
  6802. // ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
  6803. var unitlessKeys, init_emotion_unitless_esm = __esm({
  6804. "../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"() {
  6805. unitlessKeys = {
  6806. animationIterationCount: 1,
  6807. aspectRatio: 1,
  6808. borderImageOutset: 1,
  6809. borderImageSlice: 1,
  6810. borderImageWidth: 1,
  6811. boxFlex: 1,
  6812. boxFlexGroup: 1,
  6813. boxOrdinalGroup: 1,
  6814. columnCount: 1,
  6815. columns: 1,
  6816. flex: 1,
  6817. flexGrow: 1,
  6818. flexPositive: 1,
  6819. flexShrink: 1,
  6820. flexNegative: 1,
  6821. flexOrder: 1,
  6822. gridRow: 1,
  6823. gridRowEnd: 1,
  6824. gridRowSpan: 1,
  6825. gridRowStart: 1,
  6826. gridColumn: 1,
  6827. gridColumnEnd: 1,
  6828. gridColumnSpan: 1,
  6829. gridColumnStart: 1,
  6830. msGridRow: 1,
  6831. msGridRowSpan: 1,
  6832. msGridColumn: 1,
  6833. msGridColumnSpan: 1,
  6834. fontWeight: 1,
  6835. lineHeight: 1,
  6836. opacity: 1,
  6837. order: 1,
  6838. orphans: 1,
  6839. scale: 1,
  6840. tabSize: 1,
  6841. widows: 1,
  6842. zIndex: 1,
  6843. zoom: 1,
  6844. WebkitLineClamp: 1,
  6845. // SVG-related properties
  6846. fillOpacity: 1,
  6847. floodOpacity: 1,
  6848. stopOpacity: 1,
  6849. strokeDasharray: 1,
  6850. strokeDashoffset: 1,
  6851. strokeMiterlimit: 1,
  6852. strokeOpacity: 1,
  6853. strokeWidth: 1
  6854. };
  6855. }
  6856. });
  6857. // ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
  6858. function handleInterpolation(mergedProps, registered, interpolation) {
  6859. if (interpolation == null)
  6860. return "";
  6861. var componentSelector = interpolation;
  6862. if (componentSelector.__emotion_styles !== void 0)
  6863. return componentSelector;
  6864. switch (typeof interpolation) {
  6865. case "boolean":
  6866. return "";
  6867. case "object": {
  6868. var keyframes2 = interpolation;
  6869. if (keyframes2.anim === 1)
  6870. return cursor = {
  6871. name: keyframes2.name,
  6872. styles: keyframes2.styles,
  6873. next: cursor
  6874. }, keyframes2.name;
  6875. var serializedStyles = interpolation;
  6876. if (serializedStyles.styles !== void 0) {
  6877. var next2 = serializedStyles.next;
  6878. if (next2 !== void 0)
  6879. for (; next2 !== void 0; )
  6880. cursor = {
  6881. name: next2.name,
  6882. styles: next2.styles,
  6883. next: cursor
  6884. }, next2 = next2.next;
  6885. var styles4 = serializedStyles.styles + ";";
  6886. return styles4;
  6887. }
  6888. return createStringFromObject(mergedProps, registered, interpolation);
  6889. }
  6890. case "function": {
  6891. if (mergedProps !== void 0) {
  6892. var previousCursor = cursor, result = interpolation(mergedProps);
  6893. return cursor = previousCursor, handleInterpolation(mergedProps, registered, result);
  6894. }
  6895. break;
  6896. }
  6897. }
  6898. var asString = interpolation;
  6899. if (registered == null)
  6900. return asString;
  6901. var cached = registered[asString];
  6902. return cached !== void 0 ? cached : asString;
  6903. }
  6904. function createStringFromObject(mergedProps, registered, obj) {
  6905. var string = "";
  6906. if (Array.isArray(obj))
  6907. for (var i = 0; i < obj.length; i++)
  6908. string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
  6909. else
  6910. for (var key in obj) {
  6911. var value = obj[key];
  6912. if (typeof value != "object") {
  6913. var asString = value;
  6914. registered != null && registered[asString] !== void 0 ? string += key + "{" + registered[asString] + "}" : isProcessableValue(asString) && (string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";");
  6915. } else {
  6916. if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2)
  6917. throw new Error(noComponentSelectorMessage);
  6918. if (Array.isArray(value) && typeof value[0] == "string" && (registered == null || registered[value[0]] === void 0))
  6919. for (var _i = 0; _i < value.length; _i++)
  6920. isProcessableValue(value[_i]) && (string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";");
  6921. else {
  6922. var interpolated = handleInterpolation(mergedProps, registered, value);
  6923. switch (key) {
  6924. case "animation":
  6925. case "animationName": {
  6926. string += processStyleName(key) + ":" + interpolated + ";";
  6927. break;
  6928. }
  6929. default:
  6930. string += key + "{" + interpolated + "}";
  6931. }
  6932. }
  6933. }
  6934. }
  6935. return string;
  6936. }
  6937. function serializeStyles(args, registered, mergedProps) {
  6938. if (args.length === 1 && typeof args[0] == "object" && args[0] !== null && args[0].styles !== void 0)
  6939. return args[0];
  6940. var stringMode = !0, styles4 = "";
  6941. cursor = void 0;
  6942. var strings = args[0];
  6943. if (strings == null || strings.raw === void 0)
  6944. stringMode = !1, styles4 += handleInterpolation(mergedProps, registered, strings);
  6945. else {
  6946. var asTemplateStringsArr = strings;
  6947. styles4 += asTemplateStringsArr[0];
  6948. }
  6949. for (var i = 1; i < args.length; i++)
  6950. if (styles4 += handleInterpolation(mergedProps, registered, args[i]), stringMode) {
  6951. var templateStringsArr = strings;
  6952. styles4 += templateStringsArr[i];
  6953. }
  6954. labelPattern.lastIndex = 0;
  6955. for (var identifierName = "", match3; (match3 = labelPattern.exec(styles4)) !== null; )
  6956. identifierName += "-" + match3[1];
  6957. var name = murmur2(styles4) + identifierName;
  6958. return {
  6959. name,
  6960. styles: styles4,
  6961. next: cursor
  6962. };
  6963. }
  6964. var isDevelopment2, hyphenateRegex, animationRegex, isCustomProperty, isProcessableValue, processStyleName, processStyleValue, noComponentSelectorMessage, labelPattern, cursor, init_emotion_serialize_esm = __esm({
  6965. "../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js"() {
  6966. init_emotion_hash_esm();
  6967. init_emotion_unitless_esm();
  6968. init_emotion_memoize_esm();
  6969. isDevelopment2 = !1, hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) {
  6970. return property.charCodeAt(1) === 45;
  6971. }, isProcessableValue = function(value) {
  6972. return value != null && typeof value != "boolean";
  6973. }, processStyleName = memoize2(function(styleName) {
  6974. return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
  6975. }), processStyleValue = function(key, value) {
  6976. switch (key) {
  6977. case "animation":
  6978. case "animationName":
  6979. if (typeof value == "string")
  6980. return value.replace(animationRegex, function(match3, p1, p22) {
  6981. return cursor = {
  6982. name: p1,
  6983. styles: p22,
  6984. next: cursor
  6985. }, p1;
  6986. });
  6987. }
  6988. return unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value == "number" && value !== 0 ? value + "px" : value;
  6989. }, noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
  6990. labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
  6991. }
  6992. });
  6993. // ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
  6994. var React, syncFallback, useInsertionEffect2, useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback, init_emotion_use_insertion_effect_with_fallbacks_browser_esm = __esm({
  6995. "../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"() {
  6996. React = __toESM(require_react()), syncFallback = function(create4) {
  6997. return create4();
  6998. }, useInsertionEffect2 = React.useInsertionEffect ? React.useInsertionEffect : !1, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
  6999. }
  7000. });
  7001. // ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
  7002. function withTheme(Component5) {
  7003. var componentName = Component5.displayName || Component5.name || "Component", WithTheme = React2.forwardRef(function(props, ref) {
  7004. var theme3 = React2.useContext(ThemeContext);
  7005. return React2.createElement(Component5, _extends({
  7006. theme: theme3,
  7007. ref
  7008. }, props));
  7009. });
  7010. return WithTheme.displayName = "WithTheme(" + componentName + ")", hoistNonReactStatics(WithTheme, Component5);
  7011. }
  7012. var React2, import_react, isDevelopment3, EmotionCacheContext, CacheProvider, withEmotionCache, ThemeContext, useTheme, getTheme, createCacheWithTheme, ThemeProvider, hasOwn, typePropName, createEmotionProps, Insertion, Emotion, Emotion$1, init_emotion_element_f0de968e_browser_esm = __esm({
  7013. "../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js"() {
  7014. React2 = __toESM(require_react()), import_react = __toESM(require_react());
  7015. init_emotion_cache_browser_esm();
  7016. init_extends();
  7017. init_emotion_weak_memoize_esm();
  7018. init_emotion_react_isolated_hnrs_browser_esm();
  7019. init_emotion_utils_browser_esm();
  7020. init_emotion_serialize_esm();
  7021. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7022. isDevelopment3 = !1, EmotionCacheContext = React2.createContext(
  7023. // we're doing this to avoid preconstruct's dead code elimination in this one case
  7024. // because this module is primarily intended for the browser and node
  7025. // but it's also required in react native and similar environments sometimes
  7026. // and we could have a special build just for that
  7027. // but this is much easier and the native packages
  7028. // might use a different theme context in the future anyway
  7029. typeof HTMLElement < "u" ? createCache({
  7030. key: "css"
  7031. }) : null
  7032. ), CacheProvider = EmotionCacheContext.Provider, withEmotionCache = function(func) {
  7033. return (0, import_react.forwardRef)(function(props, ref) {
  7034. var cache = (0, import_react.useContext)(EmotionCacheContext);
  7035. return func(props, cache, ref);
  7036. });
  7037. }, ThemeContext = React2.createContext({}), useTheme = function() {
  7038. return React2.useContext(ThemeContext);
  7039. }, getTheme = function(outerTheme, theme3) {
  7040. if (typeof theme3 == "function") {
  7041. var mergedTheme = theme3(outerTheme);
  7042. return mergedTheme;
  7043. }
  7044. return _extends({}, outerTheme, theme3);
  7045. }, createCacheWithTheme = weakMemoize(function(outerTheme) {
  7046. return weakMemoize(function(theme3) {
  7047. return getTheme(outerTheme, theme3);
  7048. });
  7049. }), ThemeProvider = function(props) {
  7050. var theme3 = React2.useContext(ThemeContext);
  7051. return props.theme !== theme3 && (theme3 = createCacheWithTheme(theme3)(props.theme)), React2.createElement(ThemeContext.Provider, {
  7052. value: theme3
  7053. }, props.children);
  7054. };
  7055. hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", createEmotionProps = function(type5, props) {
  7056. var newProps = {};
  7057. for (var _key in props)
  7058. hasOwn.call(props, _key) && (newProps[_key] = props[_key]);
  7059. return newProps[typePropName] = type5, newProps;
  7060. }, Insertion = function(_ref) {
  7061. var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
  7062. return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
  7063. return insertStyles(cache, serialized, isStringTag);
  7064. }), null;
  7065. }, Emotion = withEmotionCache(function(props, cache, ref) {
  7066. var cssProp = props.css;
  7067. typeof cssProp == "string" && cache.registered[cssProp] !== void 0 && (cssProp = cache.registered[cssProp]);
  7068. var WrappedComponent = props[typePropName], registeredStyles = [cssProp], className = "";
  7069. typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, registeredStyles, props.className) : props.className != null && (className = props.className + " ");
  7070. var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
  7071. className += cache.key + "-" + serialized.name;
  7072. var newProps = {};
  7073. for (var _key2 in props)
  7074. hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment3 && (newProps[_key2] = props[_key2]);
  7075. return newProps.className = className, ref && (newProps.ref = ref), React2.createElement(React2.Fragment, null, React2.createElement(Insertion, {
  7076. cache,
  7077. serialized,
  7078. isStringTag: typeof WrappedComponent == "string"
  7079. }), React2.createElement(WrappedComponent, newProps));
  7080. }), Emotion$1 = Emotion;
  7081. }
  7082. });
  7083. // ../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js
  7084. function css() {
  7085. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  7086. args[_key] = arguments[_key];
  7087. return serializeStyles(args);
  7088. }
  7089. function keyframes() {
  7090. var insertable = css.apply(void 0, arguments), name = "animation-" + insertable.name;
  7091. return {
  7092. name,
  7093. styles: "@keyframes " + name + "{" + insertable.styles + "}",
  7094. anim: 1,
  7095. toString: function() {
  7096. return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
  7097. }
  7098. };
  7099. }
  7100. function merge(registered, css3, className) {
  7101. var registeredStyles = [], rawClassName = getRegisteredStyles(registered, registeredStyles, className);
  7102. return registeredStyles.length < 2 ? className : rawClassName + css3(registeredStyles);
  7103. }
  7104. var React3, import_hoist_non_react_statics2, jsx, Global, classnames, Insertion3, ClassNames, init_emotion_react_browser_esm = __esm({
  7105. "../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js"() {
  7106. init_emotion_element_f0de968e_browser_esm();
  7107. init_emotion_element_f0de968e_browser_esm();
  7108. React3 = __toESM(require_react());
  7109. init_emotion_utils_browser_esm();
  7110. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7111. init_emotion_serialize_esm();
  7112. init_emotion_cache_browser_esm();
  7113. init_extends();
  7114. init_emotion_weak_memoize_esm();
  7115. init_emotion_react_isolated_hnrs_browser_esm();
  7116. import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()), jsx = function(type5, props) {
  7117. var args = arguments;
  7118. if (props == null || !hasOwn.call(props, "css"))
  7119. return React3.createElement.apply(void 0, args);
  7120. var argsLength = args.length, createElementArgArray = new Array(argsLength);
  7121. createElementArgArray[0] = Emotion$1, createElementArgArray[1] = createEmotionProps(type5, props);
  7122. for (var i = 2; i < argsLength; i++)
  7123. createElementArgArray[i] = args[i];
  7124. return React3.createElement.apply(null, createElementArgArray);
  7125. };
  7126. (function(_jsx) {
  7127. var JSX;
  7128. JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}));
  7129. })(jsx || (jsx = {}));
  7130. Global = withEmotionCache(function(props, cache) {
  7131. var styles4 = props.styles, serialized = serializeStyles([styles4], void 0, React3.useContext(ThemeContext)), sheetRef = React3.useRef();
  7132. return useInsertionEffectWithLayoutFallback(function() {
  7133. var key = cache.key + "-global", sheet = new cache.sheet.constructor({
  7134. key,
  7135. nonce: cache.sheet.nonce,
  7136. container: cache.sheet.container,
  7137. speedy: cache.sheet.isSpeedy
  7138. }), rehydrating = !1, node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
  7139. return cache.sheet.tags.length && (sheet.before = cache.sheet.tags[0]), node2 !== null && (rehydrating = !0, node2.setAttribute("data-emotion", key), sheet.hydrate([node2])), sheetRef.current = [sheet, rehydrating], function() {
  7140. sheet.flush();
  7141. };
  7142. }, [cache]), useInsertionEffectWithLayoutFallback(function() {
  7143. var sheetRefCurrent = sheetRef.current, sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
  7144. if (rehydrating) {
  7145. sheetRefCurrent[1] = !1;
  7146. return;
  7147. }
  7148. if (serialized.next !== void 0 && insertStyles(cache, serialized.next, !0), sheet.tags.length) {
  7149. var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
  7150. sheet.before = element, sheet.flush();
  7151. }
  7152. cache.insert("", serialized, sheet, !1);
  7153. }, [cache, serialized.name]), null;
  7154. });
  7155. classnames = function classnames2(args) {
  7156. for (var len = args.length, i = 0, cls = ""; i < len; i++) {
  7157. var arg = args[i];
  7158. if (arg != null) {
  7159. var toAdd = void 0;
  7160. switch (typeof arg) {
  7161. case "boolean":
  7162. break;
  7163. case "object": {
  7164. if (Array.isArray(arg))
  7165. toAdd = classnames2(arg);
  7166. else {
  7167. toAdd = "";
  7168. for (var k in arg)
  7169. arg[k] && k && (toAdd && (toAdd += " "), toAdd += k);
  7170. }
  7171. break;
  7172. }
  7173. default:
  7174. toAdd = arg;
  7175. }
  7176. toAdd && (cls && (cls += " "), cls += toAdd);
  7177. }
  7178. }
  7179. return cls;
  7180. };
  7181. Insertion3 = function(_ref) {
  7182. var cache = _ref.cache, serializedArr = _ref.serializedArr;
  7183. return useInsertionEffectAlwaysWithSyncFallback(function() {
  7184. for (var i = 0; i < serializedArr.length; i++)
  7185. insertStyles(cache, serializedArr[i], !1);
  7186. }), null;
  7187. }, ClassNames = withEmotionCache(function(props, cache) {
  7188. var hasRendered = !1, serializedArr = [], css3 = function() {
  7189. if (hasRendered && isDevelopment3)
  7190. throw new Error("css can only be used during render");
  7191. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  7192. args[_key] = arguments[_key];
  7193. var serialized = serializeStyles(args, cache.registered);
  7194. return serializedArr.push(serialized), registerStyles(cache, serialized, !1), cache.key + "-" + serialized.name;
  7195. }, cx = function() {
  7196. if (hasRendered && isDevelopment3)
  7197. throw new Error("cx can only be used during render");
  7198. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)
  7199. args[_key2] = arguments[_key2];
  7200. return merge(cache.registered, css3, classnames(args));
  7201. }, content = {
  7202. css: css3,
  7203. cx,
  7204. theme: React3.useContext(ThemeContext)
  7205. }, ele = props.children(content);
  7206. return hasRendered = !0, React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, {
  7207. cache,
  7208. serializedArr
  7209. }), ele);
  7210. });
  7211. }
  7212. });
  7213. // ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
  7214. var reactPropsRegex, isPropValid, init_emotion_is_prop_valid_esm = __esm({
  7215. "../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"() {
  7216. init_emotion_memoize_esm();
  7217. reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, isPropValid = memoize2(
  7218. function(prop) {
  7219. return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
  7220. }
  7221. /* Z+1 */
  7222. );
  7223. }
  7224. });
  7225. // ../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
  7226. var React4, isDevelopment4, testOmitPropsOnStringTag, testOmitPropsOnComponent, getDefaultShouldForwardProp, composeShouldForwardProps, Insertion5, createStyled, init_emotion_styled_base_browser_esm = __esm({
  7227. "../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"() {
  7228. init_extends();
  7229. init_emotion_react_browser_esm();
  7230. init_emotion_serialize_esm();
  7231. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7232. init_emotion_utils_browser_esm();
  7233. React4 = __toESM(require_react());
  7234. init_emotion_is_prop_valid_esm();
  7235. isDevelopment4 = !1, testOmitPropsOnStringTag = isPropValid, testOmitPropsOnComponent = function(key) {
  7236. return key !== "theme";
  7237. }, getDefaultShouldForwardProp = function(tag) {
  7238. return typeof tag == "string" && // 96 is one less than the char code
  7239. // for "a" so this is checking that
  7240. // it's a lowercase character
  7241. tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
  7242. }, composeShouldForwardProps = function(tag, options, isReal) {
  7243. var shouldForwardProp;
  7244. if (options) {
  7245. var optionsShouldForwardProp = options.shouldForwardProp;
  7246. shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
  7247. return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
  7248. } : optionsShouldForwardProp;
  7249. }
  7250. return typeof shouldForwardProp != "function" && isReal && (shouldForwardProp = tag.__emotion_forwardProp), shouldForwardProp;
  7251. }, Insertion5 = function(_ref) {
  7252. var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
  7253. return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
  7254. return insertStyles(cache, serialized, isStringTag);
  7255. }), null;
  7256. }, createStyled = function createStyled2(tag, options) {
  7257. var isReal = tag.__emotion_real === tag, baseTag = isReal && tag.__emotion_base || tag, identifierName, targetClassName;
  7258. options !== void 0 && (identifierName = options.label, targetClassName = options.target);
  7259. var shouldForwardProp = composeShouldForwardProps(tag, options, isReal), defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag), shouldUseAs = !defaultShouldForwardProp("as");
  7260. return function() {
  7261. var args = arguments, styles4 = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
  7262. if (identifierName !== void 0 && styles4.push("label:" + identifierName + ";"), args[0] == null || args[0].raw === void 0)
  7263. styles4.push.apply(styles4, args);
  7264. else {
  7265. var templateStringsArr = args[0];
  7266. styles4.push(templateStringsArr[0]);
  7267. for (var len = args.length, i = 1; i < len; i++)
  7268. styles4.push(args[i], templateStringsArr[i]);
  7269. }
  7270. var Styled = withEmotionCache(function(props, cache, ref) {
  7271. var FinalTag = shouldUseAs && props.as || baseTag, className = "", classInterpolations = [], mergedProps = props;
  7272. if (props.theme == null) {
  7273. mergedProps = {};
  7274. for (var key in props)
  7275. mergedProps[key] = props[key];
  7276. mergedProps.theme = React4.useContext(ThemeContext);
  7277. }
  7278. typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, classInterpolations, props.className) : props.className != null && (className = props.className + " ");
  7279. var serialized = serializeStyles(styles4.concat(classInterpolations), cache.registered, mergedProps);
  7280. className += cache.key + "-" + serialized.name, targetClassName !== void 0 && (className += " " + targetClassName);
  7281. var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp, newProps = {};
  7282. for (var _key in props)
  7283. shouldUseAs && _key === "as" || finalShouldForwardProp(_key) && (newProps[_key] = props[_key]);
  7284. return newProps.className = className, ref && (newProps.ref = ref), React4.createElement(React4.Fragment, null, React4.createElement(Insertion5, {
  7285. cache,
  7286. serialized,
  7287. isStringTag: typeof FinalTag == "string"
  7288. }), React4.createElement(FinalTag, newProps));
  7289. });
  7290. return Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag == "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")", Styled.defaultProps = tag.defaultProps, Styled.__emotion_real = Styled, Styled.__emotion_base = baseTag, Styled.__emotion_styles = styles4, Styled.__emotion_forwardProp = shouldForwardProp, Object.defineProperty(Styled, "toString", {
  7291. value: function() {
  7292. return targetClassName === void 0 && isDevelopment4 ? "NO_COMPONENT_SELECTOR" : "." + targetClassName;
  7293. }
  7294. }), Styled.withComponent = function(nextTag, nextOptions) {
  7295. var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, {
  7296. shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, !0)
  7297. }));
  7298. return newStyled.apply(void 0, styles4);
  7299. }, Styled;
  7300. };
  7301. };
  7302. }
  7303. });
  7304. // ../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
  7305. var import_react4, tags, styled, init_emotion_styled_browser_esm = __esm({
  7306. "../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"() {
  7307. init_emotion_styled_base_browser_esm();
  7308. init_extends();
  7309. init_emotion_react_browser_esm();
  7310. init_emotion_serialize_esm();
  7311. init_emotion_use_insertion_effect_with_fallbacks_browser_esm();
  7312. init_emotion_utils_browser_esm();
  7313. import_react4 = __toESM(require_react());
  7314. init_emotion_is_prop_valid_esm();
  7315. tags = [
  7316. "a",
  7317. "abbr",
  7318. "address",
  7319. "area",
  7320. "article",
  7321. "aside",
  7322. "audio",
  7323. "b",
  7324. "base",
  7325. "bdi",
  7326. "bdo",
  7327. "big",
  7328. "blockquote",
  7329. "body",
  7330. "br",
  7331. "button",
  7332. "canvas",
  7333. "caption",
  7334. "cite",
  7335. "code",
  7336. "col",
  7337. "colgroup",
  7338. "data",
  7339. "datalist",
  7340. "dd",
  7341. "del",
  7342. "details",
  7343. "dfn",
  7344. "dialog",
  7345. "div",
  7346. "dl",
  7347. "dt",
  7348. "em",
  7349. "embed",
  7350. "fieldset",
  7351. "figcaption",
  7352. "figure",
  7353. "footer",
  7354. "form",
  7355. "h1",
  7356. "h2",
  7357. "h3",
  7358. "h4",
  7359. "h5",
  7360. "h6",
  7361. "head",
  7362. "header",
  7363. "hgroup",
  7364. "hr",
  7365. "html",
  7366. "i",
  7367. "iframe",
  7368. "img",
  7369. "input",
  7370. "ins",
  7371. "kbd",
  7372. "keygen",
  7373. "label",
  7374. "legend",
  7375. "li",
  7376. "link",
  7377. "main",
  7378. "map",
  7379. "mark",
  7380. "marquee",
  7381. "menu",
  7382. "menuitem",
  7383. "meta",
  7384. "meter",
  7385. "nav",
  7386. "noscript",
  7387. "object",
  7388. "ol",
  7389. "optgroup",
  7390. "option",
  7391. "output",
  7392. "p",
  7393. "param",
  7394. "picture",
  7395. "pre",
  7396. "progress",
  7397. "q",
  7398. "rp",
  7399. "rt",
  7400. "ruby",
  7401. "s",
  7402. "samp",
  7403. "script",
  7404. "section",
  7405. "select",
  7406. "small",
  7407. "source",
  7408. "span",
  7409. "strong",
  7410. "style",
  7411. "sub",
  7412. "summary",
  7413. "sup",
  7414. "table",
  7415. "tbody",
  7416. "td",
  7417. "textarea",
  7418. "tfoot",
  7419. "th",
  7420. "thead",
  7421. "time",
  7422. "title",
  7423. "tr",
  7424. "track",
  7425. "u",
  7426. "ul",
  7427. "var",
  7428. "video",
  7429. "wbr",
  7430. // SVG
  7431. "circle",
  7432. "clipPath",
  7433. "defs",
  7434. "ellipse",
  7435. "foreignObject",
  7436. "g",
  7437. "image",
  7438. "line",
  7439. "linearGradient",
  7440. "mask",
  7441. "path",
  7442. "pattern",
  7443. "polygon",
  7444. "polyline",
  7445. "radialGradient",
  7446. "rect",
  7447. "stop",
  7448. "svg",
  7449. "text",
  7450. "tspan"
  7451. ], styled = createStyled.bind(null);
  7452. tags.forEach(function(tagName) {
  7453. styled[tagName] = styled(tagName);
  7454. });
  7455. }
  7456. });
  7457. // src/theming/base.ts
  7458. var color, background, typography, tokens, init_base = __esm({
  7459. "src/theming/base.ts"() {
  7460. "use strict";
  7461. color = {
  7462. // Official color palette
  7463. primary: "#FF4785",
  7464. // coral
  7465. secondary: "#006DEB",
  7466. // ocean
  7467. tertiary: "#FAFBFC",
  7468. ancillary: "#22a699",
  7469. // Complimentary
  7470. orange: "#FC521F",
  7471. gold: "#FFAE00",
  7472. green: "#66BF3C",
  7473. seafoam: "#37D5D3",
  7474. purple: "#6F2CAC",
  7475. ultraviolet: "#2A0481",
  7476. // Monochrome
  7477. lightest: "#FFFFFF",
  7478. lighter: "#F6F9FC",
  7479. light: "#EEF2F6",
  7480. mediumlight: "#ECF2F9",
  7481. medium: "#D9E5F2",
  7482. mediumdark: "#737F8C",
  7483. dark: "#5C6570",
  7484. darker: "#454C54",
  7485. darkest: "#2E3338",
  7486. // For borders
  7487. border: "hsl(212 50% 30% / 0.15)",
  7488. // Status
  7489. positive: "#66BF3C",
  7490. warning: "#E69D00",
  7491. negative: "#FF4400",
  7492. critical: "#FFFFFF",
  7493. // Text
  7494. defaultText: "#2E3338",
  7495. inverseText: "#FFFFFF",
  7496. positiveText: "#427C27",
  7497. warningText: "#955B1E",
  7498. negativeText: "#C23400"
  7499. }, background = {
  7500. app: "#F6F9FC",
  7501. bar: color.lightest,
  7502. content: color.lightest,
  7503. preview: color.lightest,
  7504. gridCellSize: 10,
  7505. hoverable: "#DBECFF",
  7506. // Notification, error, and warning backgrounds
  7507. positive: "#F1FFEB",
  7508. warning: "#FFF9EB",
  7509. negative: "#FFF0EB",
  7510. critical: "#D13800"
  7511. }, typography = {
  7512. fonts: {
  7513. base: [
  7514. '"Nunito Sans"',
  7515. "-apple-system",
  7516. '".SFNSText-Regular"',
  7517. '"San Francisco"',
  7518. "BlinkMacSystemFont",
  7519. '"Segoe UI"',
  7520. '"Helvetica Neue"',
  7521. "Helvetica",
  7522. "Arial",
  7523. "sans-serif"
  7524. ].join(", "),
  7525. mono: [
  7526. "ui-monospace",
  7527. "Menlo",
  7528. "Monaco",
  7529. '"Roboto Mono"',
  7530. '"Oxygen Mono"',
  7531. '"Ubuntu Monospace"',
  7532. '"Source Code Pro"',
  7533. '"Droid Sans Mono"',
  7534. '"Courier New"',
  7535. "monospace"
  7536. ].join(", ")
  7537. },
  7538. weight: {
  7539. regular: 400,
  7540. bold: 700
  7541. },
  7542. size: {
  7543. s1: 12,
  7544. s2: 14,
  7545. s3: 16,
  7546. m1: 20,
  7547. m2: 24,
  7548. m3: 28,
  7549. l1: 32,
  7550. l2: 40,
  7551. l3: 48,
  7552. code: 90
  7553. }
  7554. }, tokens = {
  7555. light: {
  7556. fgColor: {
  7557. default: color.darkest,
  7558. muted: color.dark,
  7559. accent: color.secondary,
  7560. inverse: color.lightest,
  7561. // TODO: add 'disabled'
  7562. positive: "#427C27",
  7563. warning: "#7A4100",
  7564. negative: "#C23400",
  7565. critical: "#FFFFFF"
  7566. },
  7567. bgColor: {
  7568. default: color.lightest,
  7569. muted: background.app,
  7570. // TODO: add 'accent'? white or blue?
  7571. positive: "#F1FFEB",
  7572. warning: "#FFF7EB",
  7573. negative: "#FFF0EB",
  7574. critical: "#D13800"
  7575. },
  7576. borderColor: {
  7577. default: color.border,
  7578. muted: "hsl(0 0% 0% / 0.1)",
  7579. inverse: "hsl(0 0% 100% / 0.1)",
  7580. positive: "#BFE7AC",
  7581. warning: "#FFCE85",
  7582. negative: "#FFC3AD",
  7583. critical: "hsl(16 100% 100% / 0)"
  7584. }
  7585. },
  7586. dark: {
  7587. fgColor: {
  7588. default: "#C9CCCF",
  7589. muted: "#95999D",
  7590. accent: "#479DFF",
  7591. inverse: "#1B1C1D",
  7592. // TODO: add 'disabled'
  7593. positive: "#86CE64",
  7594. warning: "#FFAD33",
  7595. negative: "#FF6933",
  7596. critical: "#FF6933"
  7597. },
  7598. bgColor: {
  7599. default: "#222325",
  7600. muted: "#1B1C1D",
  7601. // TODO: add 'accent'? white or blue?
  7602. positive: "hsl(101 100% 100% / 0)",
  7603. warning: "hsl(101 100% 100% / 0)",
  7604. negative: "hsl(101 100% 100% / 0)",
  7605. critical: "hsl(101 100% 100% / 0)"
  7606. },
  7607. borderColor: {
  7608. default: "hsl(0 0% 100% / 0.1)",
  7609. muted: "hsl(0 0% 100% / 0.5)",
  7610. inverse: "hsl(0 0% 0% / 0.1)",
  7611. positive: "hsl(101 52% 64% / 0.15)",
  7612. warning: "hsl(36 100% 64% / 0.15)",
  7613. negative: "hsl(16 100% 64% / 0.15)",
  7614. critical: "#FF6933"
  7615. }
  7616. }
  7617. };
  7618. }
  7619. });
  7620. // src/theming/types.ts
  7621. var init_types = __esm({
  7622. "src/theming/types.ts"() {
  7623. "use strict";
  7624. }
  7625. });
  7626. // ../../node_modules/memoizerific/memoizerific.js
  7627. var require_memoizerific = __commonJS({
  7628. "../../node_modules/memoizerific/memoizerific.js"(exports, module2) {
  7629. (function(f4) {
  7630. if (typeof exports == "object" && typeof module2 < "u")
  7631. module2.exports = f4();
  7632. else if (typeof define == "function" && define.amd)
  7633. define([], f4);
  7634. else {
  7635. var g2;
  7636. typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific = f4();
  7637. }
  7638. })(function() {
  7639. var define3, module3, exports2;
  7640. return (function e(t, n, r2) {
  7641. function s3(o2, u2) {
  7642. if (!n[o2]) {
  7643. if (!t[o2]) {
  7644. var a3 = typeof __require == "function" && __require;
  7645. if (!u2 && a3) return a3(o2, !0);
  7646. if (i) return i(o2, !0);
  7647. var f4 = new Error("Cannot find module '" + o2 + "'");
  7648. throw f4.code = "MODULE_NOT_FOUND", f4;
  7649. }
  7650. var l = n[o2] = { exports: {} };
  7651. t[o2][0].call(l.exports, function(e2) {
  7652. var n2 = t[o2][1][e2];
  7653. return s3(n2 || e2);
  7654. }, l, l.exports, e, t, n, r2);
  7655. }
  7656. return n[o2].exports;
  7657. }
  7658. for (var i = typeof __require == "function" && __require, o = 0; o < r2.length; o++) s3(r2[o]);
  7659. return s3;
  7660. })({ 1: [function(_dereq_, module4, exports3) {
  7661. module4.exports = function(forceSimilar) {
  7662. if (typeof Map != "function" || forceSimilar) {
  7663. var Similar = _dereq_("./similar");
  7664. return new Similar();
  7665. } else
  7666. return /* @__PURE__ */ new Map();
  7667. };
  7668. }, { "./similar": 2 }], 2: [function(_dereq_, module4, exports3) {
  7669. function Similar() {
  7670. return this.list = [], this.lastItem = void 0, this.size = 0, this;
  7671. }
  7672. Similar.prototype.get = function(key) {
  7673. var index4;
  7674. if (this.lastItem && this.isEqual(this.lastItem.key, key))
  7675. return this.lastItem.val;
  7676. if (index4 = this.indexOf(key), index4 >= 0)
  7677. return this.lastItem = this.list[index4], this.list[index4].val;
  7678. }, Similar.prototype.set = function(key, val) {
  7679. var index4;
  7680. return this.lastItem && this.isEqual(this.lastItem.key, key) ? (this.lastItem.val = val, this) : (index4 = this.indexOf(key), index4 >= 0 ? (this.lastItem = this.list[index4], this.list[index4].val = val, this) : (this.lastItem = { key, val }, this.list.push(this.lastItem), this.size++, this));
  7681. }, Similar.prototype.delete = function(key) {
  7682. var index4;
  7683. if (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), index4 = this.indexOf(key), index4 >= 0)
  7684. return this.size--, this.list.splice(index4, 1)[0];
  7685. }, Similar.prototype.has = function(key) {
  7686. var index4;
  7687. return this.lastItem && this.isEqual(this.lastItem.key, key) ? !0 : (index4 = this.indexOf(key), index4 >= 0 ? (this.lastItem = this.list[index4], !0) : !1);
  7688. }, Similar.prototype.forEach = function(callback, thisArg) {
  7689. var i;
  7690. for (i = 0; i < this.size; i++)
  7691. callback.call(thisArg || this, this.list[i].val, this.list[i].key, this);
  7692. }, Similar.prototype.indexOf = function(key) {
  7693. var i;
  7694. for (i = 0; i < this.size; i++)
  7695. if (this.isEqual(this.list[i].key, key))
  7696. return i;
  7697. return -1;
  7698. }, Similar.prototype.isEqual = function(val1, val2) {
  7699. return val1 === val2 || val1 !== val1 && val2 !== val2;
  7700. }, module4.exports = Similar;
  7701. }, {}], 3: [function(_dereq_, module4, exports3) {
  7702. var MapOrSimilar = _dereq_("map-or-similar");
  7703. module4.exports = function(limit) {
  7704. var cache = new MapOrSimilar(!1), lru = [];
  7705. return function(fn4) {
  7706. var memoizerific = function() {
  7707. var currentCache = cache, newMap, fnResult, argsLengthMinusOne = arguments.length - 1, lruPath = Array(argsLengthMinusOne + 1), isMemoized = !0, i;
  7708. if ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1)
  7709. throw new Error("Memoizerific functions should always be called with the same number of arguments");
  7710. for (i = 0; i < argsLengthMinusOne; i++) {
  7711. if (lruPath[i] = {
  7712. cacheItem: currentCache,
  7713. arg: arguments[i]
  7714. }, currentCache.has(arguments[i])) {
  7715. currentCache = currentCache.get(arguments[i]);
  7716. continue;
  7717. }
  7718. isMemoized = !1, newMap = new MapOrSimilar(!1), currentCache.set(arguments[i], newMap), currentCache = newMap;
  7719. }
  7720. return isMemoized && (currentCache.has(arguments[argsLengthMinusOne]) ? fnResult = currentCache.get(arguments[argsLengthMinusOne]) : isMemoized = !1), isMemoized || (fnResult = fn4.apply(null, arguments), currentCache.set(arguments[argsLengthMinusOne], fnResult)), limit > 0 && (lruPath[argsLengthMinusOne] = {
  7721. cacheItem: currentCache,
  7722. arg: arguments[argsLengthMinusOne]
  7723. }, isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), lru.length > limit && removeCachedResult(lru.shift())), memoizerific.wasMemoized = isMemoized, memoizerific.numArgs = argsLengthMinusOne + 1, fnResult;
  7724. };
  7725. return memoizerific.limit = limit, memoizerific.wasMemoized = !1, memoizerific.cache = cache, memoizerific.lru = lru, memoizerific;
  7726. };
  7727. };
  7728. function moveToMostRecentLru(lru, lruPath) {
  7729. var lruLen = lru.length, lruPathLen = lruPath.length, isMatch, i, ii;
  7730. for (i = 0; i < lruLen; i++) {
  7731. for (isMatch = !0, ii = 0; ii < lruPathLen; ii++)
  7732. if (!isEqual4(lru[i][ii].arg, lruPath[ii].arg)) {
  7733. isMatch = !1;
  7734. break;
  7735. }
  7736. if (isMatch)
  7737. break;
  7738. }
  7739. lru.push(lru.splice(i, 1)[0]);
  7740. }
  7741. function removeCachedResult(removedLru) {
  7742. var removedLruLen = removedLru.length, currentLru = removedLru[removedLruLen - 1], tmp, i;
  7743. for (currentLru.cacheItem.delete(currentLru.arg), i = removedLruLen - 2; i >= 0 && (currentLru = removedLru[i], tmp = currentLru.cacheItem.get(currentLru.arg), !tmp || !tmp.size); i--)
  7744. currentLru.cacheItem.delete(currentLru.arg);
  7745. }
  7746. function isEqual4(val1, val2) {
  7747. return val1 === val2 || val1 !== val1 && val2 !== val2;
  7748. }
  7749. }, { "map-or-similar": 1 }] }, {}, [3])(3);
  7750. });
  7751. }
  7752. });
  7753. // src/theming/global.ts
  7754. var import_memoizerific, srOnlyStyles, createReset, createGlobal, init_global = __esm({
  7755. "src/theming/global.ts"() {
  7756. "use strict";
  7757. import_memoizerific = __toESM(require_memoizerific(), 1), srOnlyStyles = {
  7758. position: "absolute",
  7759. width: 1,
  7760. height: 1,
  7761. padding: 0,
  7762. margin: -1,
  7763. overflow: "hidden",
  7764. whiteSpace: "nowrap",
  7765. clip: "rect(0, 0, 0, 0)",
  7766. clipPath: "inset(50%)",
  7767. border: 0
  7768. }, createReset = (0, import_memoizerific.default)(1)(
  7769. ({ typography: typography2 }) => ({
  7770. body: {
  7771. fontFamily: typography2.fonts.base,
  7772. fontSize: typography2.size.s3,
  7773. margin: 0,
  7774. WebkitFontSmoothing: "antialiased",
  7775. MozOsxFontSmoothing: "grayscale",
  7776. WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
  7777. WebkitOverflowScrolling: "touch"
  7778. },
  7779. "*": {
  7780. boxSizing: "border-box"
  7781. },
  7782. "h1, h2, h3, h4, h5, h6": {
  7783. fontWeight: typography2.weight.regular,
  7784. margin: 0,
  7785. padding: 0
  7786. },
  7787. "button, input, textarea, select": {
  7788. fontFamily: "inherit",
  7789. fontSize: "inherit",
  7790. boxSizing: "border-box"
  7791. },
  7792. sub: {
  7793. fontSize: "0.8em",
  7794. bottom: "-0.2em"
  7795. },
  7796. sup: {
  7797. fontSize: "0.8em",
  7798. top: "-0.2em"
  7799. },
  7800. "b, strong": {
  7801. fontWeight: typography2.weight.bold
  7802. },
  7803. hr: {
  7804. border: "none",
  7805. borderTop: "1px solid silver",
  7806. clear: "both",
  7807. marginBottom: "1.25rem"
  7808. },
  7809. code: {
  7810. fontFamily: typography2.fonts.mono,
  7811. WebkitFontSmoothing: "antialiased",
  7812. MozOsxFontSmoothing: "grayscale",
  7813. display: "inline-block",
  7814. paddingLeft: 2,
  7815. paddingRight: 2,
  7816. verticalAlign: "baseline",
  7817. color: "inherit"
  7818. },
  7819. pre: {
  7820. fontFamily: typography2.fonts.mono,
  7821. WebkitFontSmoothing: "antialiased",
  7822. MozOsxFontSmoothing: "grayscale",
  7823. lineHeight: "18px",
  7824. padding: "11px 1rem",
  7825. whiteSpace: "pre-wrap",
  7826. color: "inherit",
  7827. borderRadius: 3,
  7828. margin: "1rem 0"
  7829. }
  7830. })
  7831. ), createGlobal = (0, import_memoizerific.default)(1)(({
  7832. color: color2,
  7833. background: background2,
  7834. typography: typography2
  7835. }) => {
  7836. let resetStyles = createReset({ typography: typography2 });
  7837. return {
  7838. ...resetStyles,
  7839. body: {
  7840. ...resetStyles.body,
  7841. position: "fixed",
  7842. width: "100vw",
  7843. height: "100vh",
  7844. overflow: "hidden",
  7845. color: color2.defaultText,
  7846. background: background2.app
  7847. },
  7848. hr: {
  7849. ...resetStyles.hr,
  7850. borderTop: `1px solid ${color2.border}`
  7851. },
  7852. ".sb-sr-only, .sb-hidden-until-focus:not(:focus)": srOnlyStyles,
  7853. ".sb-hidden-until-focus": {
  7854. opacity: 0,
  7855. transition: "opacity 150ms ease-out"
  7856. },
  7857. ".sb-hidden-until-focus:focus": {
  7858. opacity: 1
  7859. },
  7860. "[data-sb-landmark]": {
  7861. position: "relative"
  7862. },
  7863. "[data-sb-landmark]:focus-visible": {
  7864. outline: "none"
  7865. },
  7866. "[data-sb-landmark]:focus-visible::after": {
  7867. outline: `2px solid ${color2.primary}`,
  7868. outlineOffset: "-2px"
  7869. },
  7870. "[data-sb-landmark]::after": {
  7871. content: "''",
  7872. position: "absolute",
  7873. inset: 0,
  7874. pointerEvents: "none"
  7875. },
  7876. ".react-aria-Popover:focus-visible": {
  7877. outline: "none"
  7878. }
  7879. };
  7880. });
  7881. }
  7882. });
  7883. // src/theming/themes/dark.ts
  7884. var theme, dark_default, init_dark = __esm({
  7885. "src/theming/themes/dark.ts"() {
  7886. "use strict";
  7887. init_base();
  7888. theme = {
  7889. base: "dark",
  7890. // Storybook-specific color palette
  7891. colorPrimary: "#FF4785",
  7892. // coral
  7893. colorSecondary: "#479DFF",
  7894. // UI
  7895. appBg: "#1B1C1D",
  7896. appContentBg: "#222325",
  7897. appHoverBg: "#233952",
  7898. appPreviewBg: color.lightest,
  7899. appBorderColor: "hsl(0 0% 100% / 0.1)",
  7900. appBorderRadius: 4,
  7901. // Fonts
  7902. fontBase: typography.fonts.base,
  7903. fontCode: typography.fonts.mono,
  7904. // Text colors
  7905. textColor: "#C9CCCF",
  7906. textInverseColor: "#1B1C1D",
  7907. textMutedColor: "#95999D",
  7908. // Toolbar default and active colors
  7909. barTextColor: "#95999D",
  7910. barHoverColor: "#70B3FF",
  7911. barSelectedColor: "#479DFF",
  7912. barBg: "#222325",
  7913. // Form colors
  7914. buttonBg: "#1B1C1D",
  7915. buttonBorder: "hsl(0 0% 100% / 0.1)",
  7916. booleanBg: "#1B1C1D",
  7917. booleanSelectedBg: "#292B2E",
  7918. inputBg: "#1B1C1D",
  7919. inputBorder: "hsl(0 0% 100% / 0.1)",
  7920. inputTextColor: "#C9CCCF",
  7921. inputBorderRadius: 4
  7922. }, dark_default = theme;
  7923. }
  7924. });
  7925. // src/theming/themes/light.ts
  7926. var theme2, light_default, init_light = __esm({
  7927. "src/theming/themes/light.ts"() {
  7928. "use strict";
  7929. init_base();
  7930. theme2 = {
  7931. base: "light",
  7932. // Storybook-specific color palette
  7933. colorPrimary: color.primary,
  7934. colorSecondary: color.secondary,
  7935. // UI
  7936. appBg: background.app,
  7937. appContentBg: color.lightest,
  7938. appHoverBg: "#DBECFF",
  7939. appPreviewBg: color.lightest,
  7940. appBorderColor: color.border,
  7941. appBorderRadius: 4,
  7942. // Fonts
  7943. fontBase: typography.fonts.base,
  7944. fontCode: typography.fonts.mono,
  7945. // Text colors
  7946. textColor: color.darkest,
  7947. textInverseColor: color.lightest,
  7948. textMutedColor: color.dark,
  7949. // Toolbar default and active colors
  7950. barTextColor: color.dark,
  7951. barHoverColor: "#005CC7",
  7952. barSelectedColor: "#0063D6",
  7953. barBg: color.lightest,
  7954. // Form colors
  7955. buttonBg: background.app,
  7956. buttonBorder: color.medium,
  7957. booleanBg: color.mediumlight,
  7958. booleanSelectedBg: color.lightest,
  7959. inputBg: color.lightest,
  7960. inputBorder: color.border,
  7961. inputTextColor: color.darkest,
  7962. inputBorderRadius: 4
  7963. }, light_default = theme2;
  7964. }
  7965. });
  7966. // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
  7967. function _assertThisInitialized(e) {
  7968. if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  7969. return e;
  7970. }
  7971. var init_assertThisInitialized = __esm({
  7972. "../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"() {
  7973. }
  7974. });
  7975. // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
  7976. function _setPrototypeOf(t, e) {
  7977. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
  7978. return t2.__proto__ = e2, t2;
  7979. }, _setPrototypeOf(t, e);
  7980. }
  7981. var init_setPrototypeOf = __esm({
  7982. "../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"() {
  7983. }
  7984. });
  7985. // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
  7986. function _inheritsLoose(t, o) {
  7987. t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
  7988. }
  7989. var init_inheritsLoose = __esm({
  7990. "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"() {
  7991. init_setPrototypeOf();
  7992. }
  7993. });
  7994. // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
  7995. function _getPrototypeOf(t) {
  7996. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
  7997. return t2.__proto__ || Object.getPrototypeOf(t2);
  7998. }, _getPrototypeOf(t);
  7999. }
  8000. var init_getPrototypeOf = __esm({
  8001. "../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"() {
  8002. }
  8003. });
  8004. // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
  8005. function _isNativeFunction(t) {
  8006. try {
  8007. return Function.toString.call(t).indexOf("[native code]") !== -1;
  8008. } catch {
  8009. return typeof t == "function";
  8010. }
  8011. }
  8012. var init_isNativeFunction = __esm({
  8013. "../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js"() {
  8014. }
  8015. });
  8016. // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
  8017. function _isNativeReflectConstruct() {
  8018. try {
  8019. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
  8020. }));
  8021. } catch {
  8022. }
  8023. return (_isNativeReflectConstruct = function() {
  8024. return !!t;
  8025. })();
  8026. }
  8027. var init_isNativeReflectConstruct = __esm({
  8028. "../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"() {
  8029. }
  8030. });
  8031. // ../../node_modules/@babel/runtime/helpers/esm/construct.js
  8032. function _construct(t, e, r2) {
  8033. if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  8034. var o = [null];
  8035. o.push.apply(o, e);
  8036. var p3 = new (t.bind.apply(t, o))();
  8037. return r2 && _setPrototypeOf(p3, r2.prototype), p3;
  8038. }
  8039. var init_construct = __esm({
  8040. "../../node_modules/@babel/runtime/helpers/esm/construct.js"() {
  8041. init_isNativeReflectConstruct();
  8042. init_setPrototypeOf();
  8043. }
  8044. });
  8045. // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
  8046. function _wrapNativeSuper(t) {
  8047. var r2 = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
  8048. return _wrapNativeSuper = function(t2) {
  8049. if (t2 === null || !_isNativeFunction(t2)) return t2;
  8050. if (typeof t2 != "function") throw new TypeError("Super expression must either be null or a function");
  8051. if (r2 !== void 0) {
  8052. if (r2.has(t2)) return r2.get(t2);
  8053. r2.set(t2, Wrapper9);
  8054. }
  8055. function Wrapper9() {
  8056. return _construct(t2, arguments, _getPrototypeOf(this).constructor);
  8057. }
  8058. return Wrapper9.prototype = Object.create(t2.prototype, {
  8059. constructor: {
  8060. value: Wrapper9,
  8061. enumerable: !1,
  8062. writable: !0,
  8063. configurable: !0
  8064. }
  8065. }), _setPrototypeOf(Wrapper9, t2);
  8066. }, _wrapNativeSuper(t);
  8067. }
  8068. var init_wrapNativeSuper = __esm({
  8069. "../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js"() {
  8070. init_getPrototypeOf();
  8071. init_setPrototypeOf();
  8072. init_isNativeFunction();
  8073. init_construct();
  8074. }
  8075. });
  8076. // ../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js
  8077. var init_taggedTemplateLiteralLoose = __esm({
  8078. "../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js"() {
  8079. }
  8080. });
  8081. // ../../node_modules/polished/dist/polished.esm.js
  8082. function endsWith(string, suffix) {
  8083. return string.substr(-suffix.length) === suffix;
  8084. }
  8085. function stripUnit(value) {
  8086. if (typeof value != "string") return value;
  8087. var matchedValue = value.match(cssRegex$1);
  8088. return matchedValue ? parseFloat(value) : value;
  8089. }
  8090. function colorToInt(color2) {
  8091. return Math.round(color2 * 255);
  8092. }
  8093. function convertToInt(red, green, blue) {
  8094. return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
  8095. }
  8096. function hslToRgb(hue, saturation, lightness, convert6) {
  8097. if (convert6 === void 0 && (convert6 = convertToInt), saturation === 0)
  8098. return convert6(lightness, lightness, lightness);
  8099. var huePrime = (hue % 360 + 360) % 360 / 60, chroma = (1 - Math.abs(2 * lightness - 1)) * saturation, secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1)), red = 0, green = 0, blue = 0;
  8100. huePrime >= 0 && huePrime < 1 ? (red = chroma, green = secondComponent) : huePrime >= 1 && huePrime < 2 ? (red = secondComponent, green = chroma) : huePrime >= 2 && huePrime < 3 ? (green = chroma, blue = secondComponent) : huePrime >= 3 && huePrime < 4 ? (green = secondComponent, blue = chroma) : huePrime >= 4 && huePrime < 5 ? (red = secondComponent, blue = chroma) : huePrime >= 5 && huePrime < 6 && (red = chroma, blue = secondComponent);
  8101. var lightnessModification = lightness - chroma / 2, finalRed = red + lightnessModification, finalGreen = green + lightnessModification, finalBlue = blue + lightnessModification;
  8102. return convert6(finalRed, finalGreen, finalBlue);
  8103. }
  8104. function nameToHex(color2) {
  8105. if (typeof color2 != "string") return color2;
  8106. var normalizedColorName = color2.toLowerCase();
  8107. return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
  8108. }
  8109. function parseToRgb(color2) {
  8110. if (typeof color2 != "string")
  8111. throw new PolishedError(3);
  8112. var normalizedColor = nameToHex(color2);
  8113. if (normalizedColor.match(hexRegex))
  8114. return {
  8115. red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
  8116. green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
  8117. blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
  8118. };
  8119. if (normalizedColor.match(hexRgbaRegex)) {
  8120. var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
  8121. return {
  8122. red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
  8123. green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
  8124. blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
  8125. alpha
  8126. };
  8127. }
  8128. if (normalizedColor.match(reducedHexRegex))
  8129. return {
  8130. red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
  8131. green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
  8132. blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
  8133. };
  8134. if (normalizedColor.match(reducedRgbaHexRegex)) {
  8135. var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
  8136. return {
  8137. red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
  8138. green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
  8139. blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
  8140. alpha: _alpha
  8141. };
  8142. }
  8143. var rgbMatched = rgbRegex.exec(normalizedColor);
  8144. if (rgbMatched)
  8145. return {
  8146. red: parseInt("" + rgbMatched[1], 10),
  8147. green: parseInt("" + rgbMatched[2], 10),
  8148. blue: parseInt("" + rgbMatched[3], 10)
  8149. };
  8150. var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
  8151. if (rgbaMatched)
  8152. return {
  8153. red: parseInt("" + rgbaMatched[1], 10),
  8154. green: parseInt("" + rgbaMatched[2], 10),
  8155. blue: parseInt("" + rgbaMatched[3], 10),
  8156. alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
  8157. };
  8158. var hslMatched = hslRegex.exec(normalizedColor);
  8159. if (hslMatched) {
  8160. var hue = parseInt("" + hslMatched[1], 10), saturation = parseInt("" + hslMatched[2], 10) / 100, lightness = parseInt("" + hslMatched[3], 10) / 100, rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")", hslRgbMatched = rgbRegex.exec(rgbColorString);
  8161. if (!hslRgbMatched)
  8162. throw new PolishedError(4, normalizedColor, rgbColorString);
  8163. return {
  8164. red: parseInt("" + hslRgbMatched[1], 10),
  8165. green: parseInt("" + hslRgbMatched[2], 10),
  8166. blue: parseInt("" + hslRgbMatched[3], 10)
  8167. };
  8168. }
  8169. var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
  8170. if (hslaMatched) {
  8171. var _hue = parseInt("" + hslaMatched[1], 10), _saturation = parseInt("" + hslaMatched[2], 10) / 100, _lightness = parseInt("" + hslaMatched[3], 10) / 100, _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")", _hslRgbMatched = rgbRegex.exec(_rgbColorString);
  8172. if (!_hslRgbMatched)
  8173. throw new PolishedError(4, normalizedColor, _rgbColorString);
  8174. return {
  8175. red: parseInt("" + _hslRgbMatched[1], 10),
  8176. green: parseInt("" + _hslRgbMatched[2], 10),
  8177. blue: parseInt("" + _hslRgbMatched[3], 10),
  8178. alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
  8179. };
  8180. }
  8181. throw new PolishedError(5);
  8182. }
  8183. function rgbToHsl(color2) {
  8184. var red = color2.red / 255, green = color2.green / 255, blue = color2.blue / 255, max2 = Math.max(red, green, blue), min2 = Math.min(red, green, blue), lightness = (max2 + min2) / 2;
  8185. if (max2 === min2)
  8186. return color2.alpha !== void 0 ? {
  8187. hue: 0,
  8188. saturation: 0,
  8189. lightness,
  8190. alpha: color2.alpha
  8191. } : {
  8192. hue: 0,
  8193. saturation: 0,
  8194. lightness
  8195. };
  8196. var hue, delta = max2 - min2, saturation = lightness > 0.5 ? delta / (2 - max2 - min2) : delta / (max2 + min2);
  8197. switch (max2) {
  8198. case red:
  8199. hue = (green - blue) / delta + (green < blue ? 6 : 0);
  8200. break;
  8201. case green:
  8202. hue = (blue - red) / delta + 2;
  8203. break;
  8204. default:
  8205. hue = (red - green) / delta + 4;
  8206. break;
  8207. }
  8208. return hue *= 60, color2.alpha !== void 0 ? {
  8209. hue,
  8210. saturation,
  8211. lightness,
  8212. alpha: color2.alpha
  8213. } : {
  8214. hue,
  8215. saturation,
  8216. lightness
  8217. };
  8218. }
  8219. function parseToHsl(color2) {
  8220. return rgbToHsl(parseToRgb(color2));
  8221. }
  8222. function numberToHex(value) {
  8223. var hex3 = value.toString(16);
  8224. return hex3.length === 1 ? "0" + hex3 : hex3;
  8225. }
  8226. function colorToHex(color2) {
  8227. return numberToHex(Math.round(color2 * 255));
  8228. }
  8229. function convertToHex(red, green, blue) {
  8230. return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
  8231. }
  8232. function hslToHex(hue, saturation, lightness) {
  8233. return hslToRgb(hue, saturation, lightness, convertToHex);
  8234. }
  8235. function hsl(value, saturation, lightness) {
  8236. if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number")
  8237. return hslToHex(value, saturation, lightness);
  8238. if (typeof value == "object" && saturation === void 0 && lightness === void 0)
  8239. return hslToHex(value.hue, value.saturation, value.lightness);
  8240. throw new PolishedError(1);
  8241. }
  8242. function hsla(value, saturation, lightness, alpha) {
  8243. if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number" && typeof alpha == "number")
  8244. return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
  8245. if (typeof value == "object" && saturation === void 0 && lightness === void 0 && alpha === void 0)
  8246. return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
  8247. throw new PolishedError(2);
  8248. }
  8249. function rgb(value, green, blue) {
  8250. if (typeof value == "number" && typeof green == "number" && typeof blue == "number")
  8251. return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
  8252. if (typeof value == "object" && green === void 0 && blue === void 0)
  8253. return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
  8254. throw new PolishedError(6);
  8255. }
  8256. function rgba(firstValue, secondValue, thirdValue, fourthValue) {
  8257. if (typeof firstValue == "string" && typeof secondValue == "number") {
  8258. var rgbValue = parseToRgb(firstValue);
  8259. return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
  8260. } else {
  8261. if (typeof firstValue == "number" && typeof secondValue == "number" && typeof thirdValue == "number" && typeof fourthValue == "number")
  8262. return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
  8263. if (typeof firstValue == "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0)
  8264. return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
  8265. }
  8266. throw new PolishedError(7);
  8267. }
  8268. function toColorString(color2) {
  8269. if (typeof color2 != "object") throw new PolishedError(8);
  8270. if (isRgba(color2)) return rgba(color2);
  8271. if (isRgb(color2)) return rgb(color2);
  8272. if (isHsla(color2)) return hsla(color2);
  8273. if (isHsl(color2)) return hsl(color2);
  8274. throw new PolishedError(8);
  8275. }
  8276. function curried(f4, length2, acc) {
  8277. return function() {
  8278. var combined = acc.concat(Array.prototype.slice.call(arguments));
  8279. return combined.length >= length2 ? f4.apply(this, combined) : curried(f4, length2, combined);
  8280. };
  8281. }
  8282. function curry(f4) {
  8283. return curried(f4, f4.length, []);
  8284. }
  8285. function adjustHue(degree, color2) {
  8286. if (color2 === "transparent") return color2;
  8287. var hslColor = parseToHsl(color2);
  8288. return toColorString(_extends({}, hslColor, {
  8289. hue: hslColor.hue + parseFloat(degree)
  8290. }));
  8291. }
  8292. function guard(lowerBoundary, upperBoundary, value) {
  8293. return Math.max(lowerBoundary, Math.min(upperBoundary, value));
  8294. }
  8295. function darken(amount, color2) {
  8296. if (color2 === "transparent") return color2;
  8297. var hslColor = parseToHsl(color2);
  8298. return toColorString(_extends({}, hslColor, {
  8299. lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
  8300. }));
  8301. }
  8302. function desaturate(amount, color2) {
  8303. if (color2 === "transparent") return color2;
  8304. var hslColor = parseToHsl(color2);
  8305. return toColorString(_extends({}, hslColor, {
  8306. saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
  8307. }));
  8308. }
  8309. function lighten(amount, color2) {
  8310. if (color2 === "transparent") return color2;
  8311. var hslColor = parseToHsl(color2);
  8312. return toColorString(_extends({}, hslColor, {
  8313. lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
  8314. }));
  8315. }
  8316. function mix(weight, color2, otherColor) {
  8317. if (color2 === "transparent") return otherColor;
  8318. if (otherColor === "transparent") return color2;
  8319. if (weight === 0) return otherColor;
  8320. var parsedColor1 = parseToRgb(color2), color1 = _extends({}, parsedColor1, {
  8321. alpha: typeof parsedColor1.alpha == "number" ? parsedColor1.alpha : 1
  8322. }), parsedColor2 = parseToRgb(otherColor), color22 = _extends({}, parsedColor2, {
  8323. alpha: typeof parsedColor2.alpha == "number" ? parsedColor2.alpha : 1
  8324. }), alphaDelta = color1.alpha - color22.alpha, x = parseFloat(weight) * 2 - 1, y = x * alphaDelta === -1 ? x : x + alphaDelta, z = 1 + x * alphaDelta, weight1 = (y / z + 1) / 2, weight2 = 1 - weight1, mixedColor = {
  8325. red: Math.floor(color1.red * weight1 + color22.red * weight2),
  8326. green: Math.floor(color1.green * weight1 + color22.green * weight2),
  8327. blue: Math.floor(color1.blue * weight1 + color22.blue * weight2),
  8328. alpha: color1.alpha * parseFloat(weight) + color22.alpha * (1 - parseFloat(weight))
  8329. };
  8330. return rgba(mixedColor);
  8331. }
  8332. function opacify(amount, color2) {
  8333. if (color2 === "transparent") return color2;
  8334. var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, {
  8335. alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
  8336. });
  8337. return rgba(colorWithAlpha);
  8338. }
  8339. function saturate(amount, color2) {
  8340. if (color2 === "transparent") return color2;
  8341. var hslColor = parseToHsl(color2);
  8342. return toColorString(_extends({}, hslColor, {
  8343. saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
  8344. }));
  8345. }
  8346. function setHue(hue, color2) {
  8347. return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), {
  8348. hue: parseFloat(hue)
  8349. }));
  8350. }
  8351. function setLightness(lightness, color2) {
  8352. return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), {
  8353. lightness: parseFloat(lightness)
  8354. }));
  8355. }
  8356. function setSaturation(saturation, color2) {
  8357. return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), {
  8358. saturation: parseFloat(saturation)
  8359. }));
  8360. }
  8361. function shade(percentage, color2) {
  8362. return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(0, 0, 0)", color2);
  8363. }
  8364. function tint(percentage, color2) {
  8365. return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(255, 255, 255)", color2);
  8366. }
  8367. function transparentize(amount, color2) {
  8368. if (color2 === "transparent") return color2;
  8369. var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, {
  8370. alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
  8371. });
  8372. return rgba(colorWithAlpha);
  8373. }
  8374. var PolishedError, cssRegex$1, pxtoFactory, pixelsto, em, rem, namedColorMap, hexRegex, hexRgbaRegex, reducedHexRegex, reducedRgbaHexRegex, rgbRegex, rgbaRegex, hslRegex, hslaRegex, reduceHexValue, reduceHexValue$1, isRgb, isRgba, isHsl, isHsla, curriedAdjustHue, curriedDarken, curriedDarken$1, curriedDesaturate, curriedLighten, curriedLighten$1, curriedMix, mix$1, curriedOpacify, curriedOpacify$1, curriedSaturate, curriedSetHue, curriedSetLightness, curriedSetSaturation, curriedShade, curriedTint, curriedTransparentize, curriedTransparentize$1, init_polished_esm = __esm({
  8375. "../../node_modules/polished/dist/polished.esm.js"() {
  8376. init_extends();
  8377. init_assertThisInitialized();
  8378. init_inheritsLoose();
  8379. init_wrapNativeSuper();
  8380. init_taggedTemplateLiteralLoose();
  8381. PolishedError = (function(_Error) {
  8382. _inheritsLoose(PolishedError2, _Error);
  8383. function PolishedError2(code) {
  8384. var _this;
  8385. if (1)
  8386. _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
  8387. else
  8388. for (var _len2, args, _key2; _key2 < _len2; _key2++)
  8389. ;
  8390. return _assertThisInitialized(_this);
  8391. }
  8392. return PolishedError2;
  8393. })(_wrapNativeSuper(Error));
  8394. cssRegex$1 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
  8395. pxtoFactory = function(to) {
  8396. return function(pxval, base) {
  8397. base === void 0 && (base = "16px");
  8398. var newPxval = pxval, newBase = base;
  8399. if (typeof pxval == "string") {
  8400. if (!endsWith(pxval, "px"))
  8401. throw new PolishedError(69, to, pxval);
  8402. newPxval = stripUnit(pxval);
  8403. }
  8404. if (typeof base == "string") {
  8405. if (!endsWith(base, "px"))
  8406. throw new PolishedError(70, to, base);
  8407. newBase = stripUnit(base);
  8408. }
  8409. if (typeof newPxval == "string")
  8410. throw new PolishedError(71, pxval, to);
  8411. if (typeof newBase == "string")
  8412. throw new PolishedError(72, base, to);
  8413. return "" + newPxval / newBase + to;
  8414. };
  8415. }, pixelsto = pxtoFactory, em = pixelsto("em"), rem = pixelsto("rem");
  8416. namedColorMap = {
  8417. aliceblue: "f0f8ff",
  8418. antiquewhite: "faebd7",
  8419. aqua: "00ffff",
  8420. aquamarine: "7fffd4",
  8421. azure: "f0ffff",
  8422. beige: "f5f5dc",
  8423. bisque: "ffe4c4",
  8424. black: "000",
  8425. blanchedalmond: "ffebcd",
  8426. blue: "0000ff",
  8427. blueviolet: "8a2be2",
  8428. brown: "a52a2a",
  8429. burlywood: "deb887",
  8430. cadetblue: "5f9ea0",
  8431. chartreuse: "7fff00",
  8432. chocolate: "d2691e",
  8433. coral: "ff7f50",
  8434. cornflowerblue: "6495ed",
  8435. cornsilk: "fff8dc",
  8436. crimson: "dc143c",
  8437. cyan: "00ffff",
  8438. darkblue: "00008b",
  8439. darkcyan: "008b8b",
  8440. darkgoldenrod: "b8860b",
  8441. darkgray: "a9a9a9",
  8442. darkgreen: "006400",
  8443. darkgrey: "a9a9a9",
  8444. darkkhaki: "bdb76b",
  8445. darkmagenta: "8b008b",
  8446. darkolivegreen: "556b2f",
  8447. darkorange: "ff8c00",
  8448. darkorchid: "9932cc",
  8449. darkred: "8b0000",
  8450. darksalmon: "e9967a",
  8451. darkseagreen: "8fbc8f",
  8452. darkslateblue: "483d8b",
  8453. darkslategray: "2f4f4f",
  8454. darkslategrey: "2f4f4f",
  8455. darkturquoise: "00ced1",
  8456. darkviolet: "9400d3",
  8457. deeppink: "ff1493",
  8458. deepskyblue: "00bfff",
  8459. dimgray: "696969",
  8460. dimgrey: "696969",
  8461. dodgerblue: "1e90ff",
  8462. firebrick: "b22222",
  8463. floralwhite: "fffaf0",
  8464. forestgreen: "228b22",
  8465. fuchsia: "ff00ff",
  8466. gainsboro: "dcdcdc",
  8467. ghostwhite: "f8f8ff",
  8468. gold: "ffd700",
  8469. goldenrod: "daa520",
  8470. gray: "808080",
  8471. green: "008000",
  8472. greenyellow: "adff2f",
  8473. grey: "808080",
  8474. honeydew: "f0fff0",
  8475. hotpink: "ff69b4",
  8476. indianred: "cd5c5c",
  8477. indigo: "4b0082",
  8478. ivory: "fffff0",
  8479. khaki: "f0e68c",
  8480. lavender: "e6e6fa",
  8481. lavenderblush: "fff0f5",
  8482. lawngreen: "7cfc00",
  8483. lemonchiffon: "fffacd",
  8484. lightblue: "add8e6",
  8485. lightcoral: "f08080",
  8486. lightcyan: "e0ffff",
  8487. lightgoldenrodyellow: "fafad2",
  8488. lightgray: "d3d3d3",
  8489. lightgreen: "90ee90",
  8490. lightgrey: "d3d3d3",
  8491. lightpink: "ffb6c1",
  8492. lightsalmon: "ffa07a",
  8493. lightseagreen: "20b2aa",
  8494. lightskyblue: "87cefa",
  8495. lightslategray: "789",
  8496. lightslategrey: "789",
  8497. lightsteelblue: "b0c4de",
  8498. lightyellow: "ffffe0",
  8499. lime: "0f0",
  8500. limegreen: "32cd32",
  8501. linen: "faf0e6",
  8502. magenta: "f0f",
  8503. maroon: "800000",
  8504. mediumaquamarine: "66cdaa",
  8505. mediumblue: "0000cd",
  8506. mediumorchid: "ba55d3",
  8507. mediumpurple: "9370db",
  8508. mediumseagreen: "3cb371",
  8509. mediumslateblue: "7b68ee",
  8510. mediumspringgreen: "00fa9a",
  8511. mediumturquoise: "48d1cc",
  8512. mediumvioletred: "c71585",
  8513. midnightblue: "191970",
  8514. mintcream: "f5fffa",
  8515. mistyrose: "ffe4e1",
  8516. moccasin: "ffe4b5",
  8517. navajowhite: "ffdead",
  8518. navy: "000080",
  8519. oldlace: "fdf5e6",
  8520. olive: "808000",
  8521. olivedrab: "6b8e23",
  8522. orange: "ffa500",
  8523. orangered: "ff4500",
  8524. orchid: "da70d6",
  8525. palegoldenrod: "eee8aa",
  8526. palegreen: "98fb98",
  8527. paleturquoise: "afeeee",
  8528. palevioletred: "db7093",
  8529. papayawhip: "ffefd5",
  8530. peachpuff: "ffdab9",
  8531. peru: "cd853f",
  8532. pink: "ffc0cb",
  8533. plum: "dda0dd",
  8534. powderblue: "b0e0e6",
  8535. purple: "800080",
  8536. rebeccapurple: "639",
  8537. red: "f00",
  8538. rosybrown: "bc8f8f",
  8539. royalblue: "4169e1",
  8540. saddlebrown: "8b4513",
  8541. salmon: "fa8072",
  8542. sandybrown: "f4a460",
  8543. seagreen: "2e8b57",
  8544. seashell: "fff5ee",
  8545. sienna: "a0522d",
  8546. silver: "c0c0c0",
  8547. skyblue: "87ceeb",
  8548. slateblue: "6a5acd",
  8549. slategray: "708090",
  8550. slategrey: "708090",
  8551. snow: "fffafa",
  8552. springgreen: "00ff7f",
  8553. steelblue: "4682b4",
  8554. tan: "d2b48c",
  8555. teal: "008080",
  8556. thistle: "d8bfd8",
  8557. tomato: "ff6347",
  8558. turquoise: "40e0d0",
  8559. violet: "ee82ee",
  8560. wheat: "f5deb3",
  8561. white: "fff",
  8562. whitesmoke: "f5f5f5",
  8563. yellow: "ff0",
  8564. yellowgreen: "9acd32"
  8565. };
  8566. hexRegex = /^#[a-fA-F0-9]{6}$/, hexRgbaRegex = /^#[a-fA-F0-9]{8}$/, reducedHexRegex = /^#[a-fA-F0-9]{3}$/, reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/, rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
  8567. reduceHexValue = function(value) {
  8568. return value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6] ? "#" + value[1] + value[3] + value[5] : value;
  8569. }, reduceHexValue$1 = reduceHexValue;
  8570. isRgb = function(color2) {
  8571. return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u");
  8572. }, isRgba = function(color2) {
  8573. return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && typeof color2.alpha == "number";
  8574. }, isHsl = function(color2) {
  8575. return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u");
  8576. }, isHsla = function(color2) {
  8577. return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && typeof color2.alpha == "number";
  8578. };
  8579. curriedAdjustHue = curry(adjustHue);
  8580. curriedDarken = curry(darken), curriedDarken$1 = curriedDarken;
  8581. curriedDesaturate = curry(desaturate);
  8582. curriedLighten = curry(lighten), curriedLighten$1 = curriedLighten;
  8583. curriedMix = curry(mix), mix$1 = curriedMix;
  8584. curriedOpacify = curry(opacify), curriedOpacify$1 = curriedOpacify;
  8585. curriedSaturate = curry(saturate);
  8586. curriedSetHue = curry(setHue);
  8587. curriedSetLightness = curry(setLightness);
  8588. curriedSetSaturation = curry(setSaturation);
  8589. curriedShade = curry(shade);
  8590. curriedTint = curry(tint);
  8591. curriedTransparentize = curry(transparentize), curriedTransparentize$1 = curriedTransparentize;
  8592. }
  8593. });
  8594. // src/theming/utils.ts
  8595. var globalWindow, mkColor, isColorString, isValidColorForPolished, applyPolished, colorFactory, lightenColor, darkenColor, getPreferredColorScheme, init_utils = __esm({
  8596. "src/theming/utils.ts"() {
  8597. "use strict";
  8598. init_client_logger();
  8599. init_dist();
  8600. init_polished_esm();
  8601. ({ window: globalWindow } = scope), mkColor = (color2) => ({ color: color2 }), isColorString = (color2) => typeof color2 != "string" ? (logger.warn(
  8602. `Color passed to theme object should be a string. Instead ${color2}(${typeof color2}) was passed.`
  8603. ), !1) : !0, isValidColorForPolished = (color2) => !/(gradient|var|calc)/.test(color2), applyPolished = (type5, color2) => type5 === "darken" ? rgba(`${curriedDarken$1(1, color2)}`, 0.95) : type5 === "lighten" ? rgba(`${curriedLighten$1(1, color2)}`, 0.95) : color2, colorFactory = (type5) => (color2) => {
  8604. if (!isColorString(color2) || !isValidColorForPolished(color2))
  8605. return color2;
  8606. try {
  8607. return applyPolished(type5, color2);
  8608. } catch {
  8609. return color2;
  8610. }
  8611. }, lightenColor = colorFactory("lighten"), darkenColor = colorFactory("darken"), getPreferredColorScheme = () => !globalWindow || !globalWindow.matchMedia ? "light" : globalWindow.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
  8612. }
  8613. });
  8614. // src/theming/create.ts
  8615. var create_exports = {};
  8616. __export(create_exports, {
  8617. create: () => create,
  8618. themes: () => themes
  8619. });
  8620. var themesBase, preferredColorScheme, themes, create, init_create = __esm({
  8621. "src/theming/create.ts"() {
  8622. "use strict";
  8623. init_dark();
  8624. init_light();
  8625. init_utils();
  8626. themesBase = {
  8627. light: light_default,
  8628. dark: dark_default
  8629. }, preferredColorScheme = getPreferredColorScheme(), themes = {
  8630. ...themesBase,
  8631. normal: themesBase[preferredColorScheme]
  8632. }, create = (vars = {
  8633. base: preferredColorScheme
  8634. }, rest) => {
  8635. let inherit = {
  8636. // We always inherit the preferred color scheme.
  8637. ...themes[preferredColorScheme],
  8638. // And then the declared theme base if it exists.
  8639. ...themes[vars.base] || {},
  8640. // And then the actual theme content.
  8641. ...vars,
  8642. // If no theme base was declared, we declare the preferred color scheme as the base.
  8643. base: themes[vars.base] ? vars.base : preferredColorScheme
  8644. };
  8645. return {
  8646. ...rest,
  8647. ...inherit,
  8648. barSelectedColor: vars.barSelectedColor || inherit.colorSecondary
  8649. };
  8650. };
  8651. }
  8652. });
  8653. // src/theming/animation.ts
  8654. var easing, rotate360, glow, float, jiggle, inlineGlow, hoverable, animation, init_animation = __esm({
  8655. "src/theming/animation.ts"() {
  8656. "use strict";
  8657. init_emotion_react_browser_esm();
  8658. easing = {
  8659. rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)"
  8660. }, rotate360 = keyframes`
  8661. from {
  8662. transform: rotate(0deg);
  8663. }
  8664. to {
  8665. transform: rotate(360deg);
  8666. }
  8667. `, glow = keyframes`
  8668. 0%, 100% { opacity: 1; }
  8669. 50% { opacity: .4; }
  8670. `, float = keyframes`
  8671. 0% { transform: translateY(1px); }
  8672. 25% { transform: translateY(0px); }
  8673. 50% { transform: translateY(-3px); }
  8674. 100% { transform: translateY(1px); }
  8675. `, jiggle = keyframes`
  8676. 0%, 100% { transform:translate3d(0,0,0); }
  8677. 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
  8678. 37.5%, 87.5% { transform: translate3d(4px,0,0); }
  8679. `, inlineGlow = css`
  8680. animation: ${glow} 1.5s ease-in-out infinite;
  8681. color: transparent;
  8682. cursor: progress;
  8683. `, hoverable = css`
  8684. transition: all 150ms ease-out;
  8685. transform: translate3d(0, 0, 0);
  8686. &:hover {
  8687. transform: translate3d(0, -2px, 0);
  8688. }
  8689. &:active {
  8690. transform: translate3d(0, 0, 0);
  8691. }
  8692. `, animation = {
  8693. rotate360,
  8694. glow,
  8695. float,
  8696. jiggle,
  8697. inlineGlow,
  8698. hoverable
  8699. };
  8700. }
  8701. });
  8702. // src/theming/modules/syntax.ts
  8703. var chromeDark, chromeLight, convertColors, create2, init_syntax = __esm({
  8704. "src/theming/modules/syntax.ts"() {
  8705. "use strict";
  8706. init_utils();
  8707. chromeDark = {
  8708. BASE_FONT_FAMILY: "Menlo, monospace",
  8709. BASE_FONT_SIZE: "11px",
  8710. BASE_LINE_HEIGHT: 1.2,
  8711. BASE_BACKGROUND_COLOR: "rgb(36, 36, 36)",
  8712. BASE_COLOR: "rgb(213, 213, 213)",
  8713. OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,
  8714. OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,
  8715. OBJECT_NAME_COLOR: "rgb(227, 110, 236)",
  8716. OBJECT_VALUE_NULL_COLOR: "rgb(127, 127, 127)",
  8717. OBJECT_VALUE_UNDEFINED_COLOR: "rgb(127, 127, 127)",
  8718. OBJECT_VALUE_REGEXP_COLOR: "rgb(233, 63, 59)",
  8719. OBJECT_VALUE_STRING_COLOR: "rgb(233, 63, 59)",
  8720. OBJECT_VALUE_SYMBOL_COLOR: "rgb(233, 63, 59)",
  8721. OBJECT_VALUE_NUMBER_COLOR: "hsl(252, 100%, 75%)",
  8722. OBJECT_VALUE_BOOLEAN_COLOR: "hsl(252, 100%, 75%)",
  8723. OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(85, 106, 242)",
  8724. HTML_TAG_COLOR: "rgb(93, 176, 215)",
  8725. HTML_TAGNAME_COLOR: "rgb(93, 176, 215)",
  8726. HTML_TAGNAME_TEXT_TRANSFORM: "lowercase",
  8727. HTML_ATTRIBUTE_NAME_COLOR: "rgb(155, 187, 220)",
  8728. HTML_ATTRIBUTE_VALUE_COLOR: "rgb(242, 151, 102)",
  8729. HTML_COMMENT_COLOR: "rgb(137, 137, 137)",
  8730. HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)",
  8731. ARROW_COLOR: "rgb(145, 145, 145)",
  8732. ARROW_MARGIN_RIGHT: 3,
  8733. ARROW_FONT_SIZE: 12,
  8734. ARROW_ANIMATION_DURATION: "0",
  8735. TREENODE_FONT_FAMILY: "Menlo, monospace",
  8736. TREENODE_FONT_SIZE: "11px",
  8737. TREENODE_LINE_HEIGHT: 1.2,
  8738. TREENODE_PADDING_LEFT: 12,
  8739. TABLE_BORDER_COLOR: "rgb(85, 85, 85)",
  8740. TABLE_TH_BACKGROUND_COLOR: "rgb(44, 44, 44)",
  8741. TABLE_TH_HOVER_COLOR: "rgb(48, 48, 48)",
  8742. TABLE_SORT_ICON_COLOR: "black",
  8743. // 'rgb(48, 57, 66)',
  8744. TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",
  8745. TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
  8746. }, chromeLight = {
  8747. BASE_FONT_FAMILY: "Menlo, monospace",
  8748. BASE_FONT_SIZE: "11px",
  8749. BASE_LINE_HEIGHT: 1.2,
  8750. BASE_BACKGROUND_COLOR: "white",
  8751. BASE_COLOR: "black",
  8752. OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,
  8753. OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,
  8754. OBJECT_NAME_COLOR: "rgb(136, 19, 145)",
  8755. OBJECT_VALUE_NULL_COLOR: "rgb(128, 128, 128)",
  8756. OBJECT_VALUE_UNDEFINED_COLOR: "rgb(128, 128, 128)",
  8757. OBJECT_VALUE_REGEXP_COLOR: "rgb(196, 26, 22)",
  8758. OBJECT_VALUE_STRING_COLOR: "rgb(196, 26, 22)",
  8759. OBJECT_VALUE_SYMBOL_COLOR: "rgb(196, 26, 22)",
  8760. OBJECT_VALUE_NUMBER_COLOR: "rgb(28, 0, 207)",
  8761. OBJECT_VALUE_BOOLEAN_COLOR: "rgb(28, 0, 207)",
  8762. OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(13, 34, 170)",
  8763. HTML_TAG_COLOR: "rgb(168, 148, 166)",
  8764. HTML_TAGNAME_COLOR: "rgb(136, 18, 128)",
  8765. HTML_TAGNAME_TEXT_TRANSFORM: "lowercase",
  8766. HTML_ATTRIBUTE_NAME_COLOR: "rgb(153, 69, 0)",
  8767. HTML_ATTRIBUTE_VALUE_COLOR: "rgb(26, 26, 166)",
  8768. HTML_COMMENT_COLOR: "rgb(35, 110, 37)",
  8769. HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)",
  8770. ARROW_COLOR: "#6e6e6e",
  8771. ARROW_MARGIN_RIGHT: 3,
  8772. ARROW_FONT_SIZE: 12,
  8773. ARROW_ANIMATION_DURATION: "0",
  8774. TREENODE_FONT_FAMILY: "Menlo, monospace",
  8775. TREENODE_FONT_SIZE: "11px",
  8776. TREENODE_LINE_HEIGHT: 1.2,
  8777. TREENODE_PADDING_LEFT: 12,
  8778. TABLE_BORDER_COLOR: "#aaa",
  8779. TABLE_TH_BACKGROUND_COLOR: "#eee",
  8780. TABLE_TH_HOVER_COLOR: "hsla(0, 0%, 90%, 1)",
  8781. TABLE_SORT_ICON_COLOR: "#6e6e6e",
  8782. TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",
  8783. TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
  8784. }, convertColors = (colors3) => Object.entries(colors3).reduce((acc, [k, v]) => ({ ...acc, [k]: mkColor(v) }), {}), create2 = ({ colors: colors3, mono }) => {
  8785. let colorsObjs = convertColors(colors3);
  8786. return {
  8787. token: {
  8788. fontFamily: mono,
  8789. WebkitFontSmoothing: "antialiased",
  8790. "&.tag": colorsObjs.red3,
  8791. "&.comment": { ...colorsObjs.green1, fontStyle: "italic" },
  8792. "&.prolog": { ...colorsObjs.green1, fontStyle: "italic" },
  8793. "&.doctype": { ...colorsObjs.green1, fontStyle: "italic" },
  8794. "&.cdata": { ...colorsObjs.green1, fontStyle: "italic" },
  8795. "&.string": colorsObjs.red1,
  8796. "&.url": colorsObjs.cyan1,
  8797. "&.symbol": colorsObjs.cyan1,
  8798. "&.number": colorsObjs.cyan1,
  8799. "&.boolean": colorsObjs.cyan1,
  8800. "&.variable": colorsObjs.cyan1,
  8801. "&.constant": colorsObjs.cyan1,
  8802. "&.inserted": colorsObjs.cyan1,
  8803. "&.atrule": colorsObjs.blue1,
  8804. "&.keyword": colorsObjs.blue1,
  8805. "&.attr-value": colorsObjs.blue1,
  8806. "&.punctuation": colorsObjs.gray1,
  8807. "&.operator": colorsObjs.gray1,
  8808. "&.function": colorsObjs.gray1,
  8809. "&.deleted": colorsObjs.red2,
  8810. "&.important": {
  8811. fontWeight: "bold"
  8812. },
  8813. "&.bold": {
  8814. fontWeight: "bold"
  8815. },
  8816. "&.italic": {
  8817. fontStyle: "italic"
  8818. },
  8819. "&.class-name": colorsObjs.cyan2,
  8820. "&.selector": colorsObjs.red3,
  8821. "&.attr-name": colorsObjs.red4,
  8822. "&.property": colorsObjs.red4,
  8823. "&.regex": colorsObjs.red4,
  8824. "&.entity": colorsObjs.red4,
  8825. "&.directive.tag .tag": {
  8826. background: "#ffff00",
  8827. ...colorsObjs.gray1
  8828. }
  8829. },
  8830. "language-json .token.boolean": colorsObjs.blue1,
  8831. "language-json .token.number": colorsObjs.blue1,
  8832. "language-json .token.property": colorsObjs.cyan2,
  8833. namespace: {
  8834. opacity: 0.7
  8835. }
  8836. };
  8837. };
  8838. }
  8839. });
  8840. // src/theming/convert.ts
  8841. var lightSyntaxColors, darkSyntaxColors, createColors, convert, init_convert = __esm({
  8842. "src/theming/convert.ts"() {
  8843. "use strict";
  8844. init_polished_esm();
  8845. init_animation();
  8846. init_base();
  8847. init_create();
  8848. init_syntax();
  8849. init_utils();
  8850. lightSyntaxColors = {
  8851. green1: "#008000",
  8852. red1: "#A31515",
  8853. red2: "#9a050f",
  8854. red3: "#800000",
  8855. red4: "#eb0000",
  8856. gray1: "#393A34",
  8857. cyan1: "#008380",
  8858. cyan2: "#007ca0",
  8859. blue1: "#0000ff",
  8860. blue2: "#00009f"
  8861. }, darkSyntaxColors = {
  8862. green1: "#95999D",
  8863. red1: "#92C379",
  8864. red2: "#9a050f",
  8865. red3: "#A8FF60",
  8866. red4: "#96CBFE",
  8867. gray1: "#EDEDED",
  8868. cyan1: "#C6C5FE",
  8869. cyan2: "#FFFFB6",
  8870. blue1: "#B474DD",
  8871. blue2: "#00009f"
  8872. }, createColors = (vars) => ({
  8873. // Changeable colors
  8874. primary: vars.colorPrimary,
  8875. secondary: vars.colorSecondary,
  8876. tertiary: color.tertiary,
  8877. ancillary: color.ancillary,
  8878. // Complimentary
  8879. orange: color.orange,
  8880. gold: color.gold,
  8881. green: color.green,
  8882. seafoam: color.seafoam,
  8883. purple: color.purple,
  8884. ultraviolet: color.ultraviolet,
  8885. // Monochrome
  8886. lightest: color.lightest,
  8887. lighter: color.lighter,
  8888. light: color.light,
  8889. mediumlight: color.mediumlight,
  8890. medium: color.medium,
  8891. mediumdark: color.mediumdark,
  8892. dark: color.dark,
  8893. darker: color.darker,
  8894. darkest: color.darkest,
  8895. // For borders
  8896. border: color.border,
  8897. // Status
  8898. positive: color.positive,
  8899. negative: color.negative,
  8900. warning: color.warning,
  8901. critical: color.critical,
  8902. defaultText: vars.textColor || color.darkest,
  8903. inverseText: vars.textInverseColor || color.lightest,
  8904. positiveText: color.positiveText,
  8905. negativeText: color.negativeText,
  8906. warningText: color.warningText
  8907. }), convert = (inherit = themes[getPreferredColorScheme()]) => {
  8908. let {
  8909. base,
  8910. colorPrimary,
  8911. colorSecondary,
  8912. appBg,
  8913. appContentBg,
  8914. appHoverBg,
  8915. appPreviewBg,
  8916. appBorderColor,
  8917. appBorderRadius,
  8918. fontBase,
  8919. fontCode,
  8920. textColor,
  8921. textInverseColor,
  8922. barTextColor,
  8923. barHoverColor,
  8924. barSelectedColor,
  8925. barBg,
  8926. buttonBg,
  8927. buttonBorder,
  8928. booleanBg,
  8929. booleanSelectedBg,
  8930. inputBg,
  8931. inputBorder,
  8932. inputTextColor,
  8933. inputBorderRadius,
  8934. brandTitle,
  8935. brandUrl,
  8936. brandImage,
  8937. brandTarget,
  8938. gridCellSize,
  8939. ...rest
  8940. } = inherit;
  8941. return {
  8942. ...rest,
  8943. base,
  8944. ...base === "dark" ? tokens.dark : tokens.light,
  8945. color: createColors(inherit),
  8946. background: {
  8947. app: appBg,
  8948. bar: barBg,
  8949. content: appContentBg,
  8950. preview: appPreviewBg,
  8951. gridCellSize: gridCellSize || background.gridCellSize,
  8952. hoverable: appHoverBg,
  8953. positive: background.positive,
  8954. negative: background.negative,
  8955. warning: background.warning,
  8956. critical: background.critical
  8957. },
  8958. typography: {
  8959. fonts: {
  8960. base: fontBase,
  8961. mono: fontCode
  8962. },
  8963. weight: typography.weight,
  8964. size: typography.size
  8965. },
  8966. animation,
  8967. easing,
  8968. input: {
  8969. background: inputBg,
  8970. border: inputBorder,
  8971. borderRadius: inputBorderRadius,
  8972. color: inputTextColor
  8973. },
  8974. button: {
  8975. background: buttonBg || inputBg,
  8976. border: buttonBorder || inputBorder
  8977. },
  8978. boolean: {
  8979. background: booleanBg || inputBorder,
  8980. selectedBackground: booleanSelectedBg || inputBg
  8981. },
  8982. // UI
  8983. layoutMargin: 10,
  8984. appBorderColor,
  8985. appBorderRadius,
  8986. // Toolbar default/active colors
  8987. barTextColor,
  8988. barHoverColor: barHoverColor || colorSecondary,
  8989. barSelectedColor: barSelectedColor || colorSecondary,
  8990. barBg,
  8991. // Brand logo/text
  8992. brand: {
  8993. title: brandTitle,
  8994. url: brandUrl,
  8995. image: brandImage || (brandTitle ? null : void 0),
  8996. target: brandTarget
  8997. },
  8998. code: create2({
  8999. colors: base === "dark" ? darkSyntaxColors : lightSyntaxColors,
  9000. mono: fontCode
  9001. }),
  9002. // Addon actions theme
  9003. // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx
  9004. addonActionsTheme: {
  9005. ...base === "dark" ? chromeDark : chromeLight,
  9006. BASE_FONT_FAMILY: fontCode,
  9007. BASE_FONT_SIZE: typography.size.s2 - 1,
  9008. BASE_LINE_HEIGHT: "18px",
  9009. BASE_BACKGROUND_COLOR: "transparent",
  9010. BASE_COLOR: textColor,
  9011. ARROW_COLOR: curriedOpacify$1(0.2, appBorderColor),
  9012. ARROW_MARGIN_RIGHT: 4,
  9013. ARROW_FONT_SIZE: 8,
  9014. TREENODE_FONT_FAMILY: fontCode,
  9015. TREENODE_FONT_SIZE: typography.size.s2 - 1,
  9016. TREENODE_LINE_HEIGHT: "18px",
  9017. TREENODE_PADDING_LEFT: 12
  9018. }
  9019. };
  9020. };
  9021. }
  9022. });
  9023. // ../../node_modules/deep-object-diff/mjs/utils.js
  9024. var isEmpty, isObject4, hasOwnProperty5, makeObjectWithoutPrototype, init_utils2 = __esm({
  9025. "../../node_modules/deep-object-diff/mjs/utils.js"() {
  9026. isEmpty = (o) => Object.keys(o).length === 0, isObject4 = (o) => o != null && typeof o == "object", hasOwnProperty5 = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args), makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
  9027. }
  9028. });
  9029. // ../../node_modules/deep-object-diff/mjs/diff.js
  9030. var init_diff = __esm({
  9031. "../../node_modules/deep-object-diff/mjs/diff.js"() {
  9032. init_utils2();
  9033. }
  9034. });
  9035. // ../../node_modules/deep-object-diff/mjs/added.js
  9036. var init_added = __esm({
  9037. "../../node_modules/deep-object-diff/mjs/added.js"() {
  9038. init_utils2();
  9039. }
  9040. });
  9041. // ../../node_modules/deep-object-diff/mjs/deleted.js
  9042. var deletedDiff, deleted_default, init_deleted = __esm({
  9043. "../../node_modules/deep-object-diff/mjs/deleted.js"() {
  9044. init_utils2();
  9045. deletedDiff = (lhs, rhs) => lhs === rhs || !isObject4(lhs) || !isObject4(rhs) ? {} : Object.keys(lhs).reduce((acc, key) => {
  9046. if (hasOwnProperty5(rhs, key)) {
  9047. let difference2 = deletedDiff(lhs[key], rhs[key]);
  9048. return isObject4(difference2) && isEmpty(difference2) || (acc[key] = difference2), acc;
  9049. }
  9050. return acc[key] = void 0, acc;
  9051. }, makeObjectWithoutPrototype()), deleted_default = deletedDiff;
  9052. }
  9053. });
  9054. // ../../node_modules/deep-object-diff/mjs/updated.js
  9055. var init_updated = __esm({
  9056. "../../node_modules/deep-object-diff/mjs/updated.js"() {
  9057. init_utils2();
  9058. }
  9059. });
  9060. // ../../node_modules/deep-object-diff/mjs/detailed.js
  9061. var init_detailed = __esm({
  9062. "../../node_modules/deep-object-diff/mjs/detailed.js"() {
  9063. init_added();
  9064. init_deleted();
  9065. init_updated();
  9066. }
  9067. });
  9068. // ../../node_modules/deep-object-diff/mjs/index.js
  9069. var init_mjs = __esm({
  9070. "../../node_modules/deep-object-diff/mjs/index.js"() {
  9071. init_diff();
  9072. init_added();
  9073. init_deleted();
  9074. init_updated();
  9075. init_detailed();
  9076. }
  9077. });
  9078. // src/theming/ensure.ts
  9079. var ensure, init_ensure = __esm({
  9080. "src/theming/ensure.ts"() {
  9081. "use strict";
  9082. init_client_logger();
  9083. init_mjs();
  9084. init_esm();
  9085. init_convert();
  9086. init_light();
  9087. ensure = (input2) => {
  9088. if (!input2)
  9089. return convert(light_default);
  9090. let missing = deleted_default(light_default, input2);
  9091. return Object.keys(missing).length && logger.warn(
  9092. dedent`
  9093. Your theme is missing properties, you should update your theme!
  9094. theme-data missing:
  9095. `,
  9096. missing
  9097. ), convert(input2);
  9098. };
  9099. }
  9100. });
  9101. // src/theming/index.ts
  9102. var theming_exports = {};
  9103. __export(theming_exports, {
  9104. CacheProvider: () => CacheProvider,
  9105. ClassNames: () => ClassNames,
  9106. Global: () => Global,
  9107. ThemeProvider: () => ThemeProvider,
  9108. background: () => background,
  9109. color: () => color,
  9110. convert: () => convert,
  9111. create: () => create,
  9112. createCache: () => createCache,
  9113. createGlobal: () => createGlobal,
  9114. createReset: () => createReset,
  9115. css: () => css,
  9116. darken: () => darkenColor,
  9117. ensure: () => ensure,
  9118. getPreferredColorScheme: () => getPreferredColorScheme,
  9119. ignoreSsrWarning: () => ignoreSsrWarning,
  9120. isPropValid: () => isPropValid,
  9121. jsx: () => jsx,
  9122. keyframes: () => keyframes,
  9123. lighten: () => lightenColor,
  9124. srOnlyStyles: () => srOnlyStyles,
  9125. styled: () => styled,
  9126. themes: () => themes,
  9127. tokens: () => tokens,
  9128. typography: () => typography,
  9129. useTheme: () => useTheme,
  9130. withTheme: () => withTheme
  9131. });
  9132. var ignoreSsrWarning, init_theming = __esm({
  9133. "src/theming/index.ts"() {
  9134. "use strict";
  9135. init_emotion_styled_browser_esm();
  9136. init_emotion_react_browser_esm();
  9137. init_base();
  9138. init_types();
  9139. init_emotion_cache_browser_esm();
  9140. init_emotion_is_prop_valid_esm();
  9141. init_global();
  9142. init_create();
  9143. init_convert();
  9144. init_ensure();
  9145. init_utils();
  9146. ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
  9147. }
  9148. });
  9149. // ../../node_modules/@babel/runtime/helpers/esm/typeof.js
  9150. function _typeof(o) {
  9151. "@babel/helpers - typeof";
  9152. return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  9153. return typeof o2;
  9154. } : function(o2) {
  9155. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  9156. }, _typeof(o);
  9157. }
  9158. var init_typeof = __esm({
  9159. "../../node_modules/@babel/runtime/helpers/esm/typeof.js"() {
  9160. }
  9161. });
  9162. // ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
  9163. function toPrimitive(t, r2) {
  9164. if (_typeof(t) != "object" || !t) return t;
  9165. var e = t[Symbol.toPrimitive];
  9166. if (e !== void 0) {
  9167. var i = e.call(t, r2 || "default");
  9168. if (_typeof(i) != "object") return i;
  9169. throw new TypeError("@@toPrimitive must return a primitive value.");
  9170. }
  9171. return (r2 === "string" ? String : Number)(t);
  9172. }
  9173. var init_toPrimitive = __esm({
  9174. "../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"() {
  9175. init_typeof();
  9176. }
  9177. });
  9178. // ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
  9179. function toPropertyKey(t) {
  9180. var i = toPrimitive(t, "string");
  9181. return _typeof(i) == "symbol" ? i : i + "";
  9182. }
  9183. var init_toPropertyKey = __esm({
  9184. "../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"() {
  9185. init_typeof();
  9186. init_toPrimitive();
  9187. }
  9188. });
  9189. // ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
  9190. function _defineProperty(e, r2, t) {
  9191. return (r2 = toPropertyKey(r2)) in e ? Object.defineProperty(e, r2, {
  9192. value: t,
  9193. enumerable: !0,
  9194. configurable: !0,
  9195. writable: !0
  9196. }) : e[r2] = t, e;
  9197. }
  9198. var init_defineProperty = __esm({
  9199. "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"() {
  9200. init_toPropertyKey();
  9201. }
  9202. });
  9203. // ../../node_modules/react-syntax-highlighter/dist/esm/create-element.js
  9204. function ownKeys(e, r2) {
  9205. var t = Object.keys(e);
  9206. if (Object.getOwnPropertySymbols) {
  9207. var o = Object.getOwnPropertySymbols(e);
  9208. r2 && (o = o.filter(function(r3) {
  9209. return Object.getOwnPropertyDescriptor(e, r3).enumerable;
  9210. })), t.push.apply(t, o);
  9211. }
  9212. return t;
  9213. }
  9214. function _objectSpread(e) {
  9215. for (var r2 = 1; r2 < arguments.length; r2++) {
  9216. var t = arguments[r2] != null ? arguments[r2] : {};
  9217. r2 % 2 ? ownKeys(Object(t), !0).forEach(function(r3) {
  9218. _defineProperty(e, r3, t[r3]);
  9219. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
  9220. Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
  9221. });
  9222. }
  9223. return e;
  9224. }
  9225. function powerSetPermutations(arr) {
  9226. var arrLength = arr.length;
  9227. if (arrLength === 0 || arrLength === 1) return arr;
  9228. if (arrLength === 2)
  9229. return [arr[0], arr[1], "".concat(arr[0], ".").concat(arr[1]), "".concat(arr[1], ".").concat(arr[0])];
  9230. if (arrLength === 3)
  9231. return [arr[0], arr[1], arr[2], "".concat(arr[0], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[2]), "".concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[0])];
  9232. if (arrLength >= 4)
  9233. return [arr[0], arr[1], arr[2], arr[3], "".concat(arr[0], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[3]), "".concat(arr[3], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[1], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[0], ".").concat(arr[2], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[0], ".").concat(arr[3], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[2], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[0], ".").concat(arr[3], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[1], ".").concat(arr[2], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[1], ".").concat(arr[3], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[1], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[0], ".").concat(arr[3], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[0], ".").concat(arr[3]), "".concat(arr[2], ".").concat(arr[1], ".").concat(arr[3], ".").concat(arr[0]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[2], ".").concat(arr[3], ".").concat(arr[1], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[1], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[0], ".").concat(arr[2], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[0], ".").concat(arr[2]), "".concat(arr[3], ".").concat(arr[1], ".").concat(arr[2], ".").concat(arr[0]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[0], ".").concat(arr[1]), "".concat(arr[3], ".").concat(arr[2], ".").concat(arr[1], ".").concat(arr[0])];
  9234. }
  9235. function getClassNameCombinations(classNames) {
  9236. if (classNames.length === 0 || classNames.length === 1) return classNames;
  9237. var key = classNames.join(".");
  9238. return classNameCombinations[key] || (classNameCombinations[key] = powerSetPermutations(classNames)), classNameCombinations[key];
  9239. }
  9240. function createStyleObject(classNames) {
  9241. var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, stylesheet = arguments.length > 2 ? arguments[2] : void 0, nonTokenClassNames = classNames.filter(function(className) {
  9242. return className !== "token";
  9243. }), classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
  9244. return classNamesCombinations.reduce(function(styleObject, className) {
  9245. return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
  9246. }, elementStyle);
  9247. }
  9248. function createClassNameString(classNames) {
  9249. return classNames.join(" ");
  9250. }
  9251. function createChildren(stylesheet, useInlineStyles) {
  9252. var childrenCount = 0;
  9253. return function(children) {
  9254. return childrenCount += 1, children.map(function(child, i) {
  9255. return createElement4({
  9256. node: child,
  9257. stylesheet,
  9258. useInlineStyles,
  9259. key: "code-segment-".concat(childrenCount, "-").concat(i)
  9260. });
  9261. });
  9262. };
  9263. }
  9264. function createElement4(_ref) {
  9265. var node2 = _ref.node, stylesheet = _ref.stylesheet, _ref$style = _ref.style, style = _ref$style === void 0 ? {} : _ref$style, useInlineStyles = _ref.useInlineStyles, key = _ref.key, properties = node2.properties, type5 = node2.type, TagName = node2.tagName, value = node2.value;
  9266. if (type5 === "text")
  9267. return value;
  9268. if (TagName) {
  9269. var childrenCreator = createChildren(stylesheet, useInlineStyles), props;
  9270. if (!useInlineStyles)
  9271. props = _objectSpread(_objectSpread({}, properties), {}, {
  9272. className: createClassNameString(properties.className)
  9273. });
  9274. else {
  9275. var allStylesheetSelectors = Object.keys(stylesheet).reduce(function(classes, selector) {
  9276. return selector.split(".").forEach(function(className2) {
  9277. classes.includes(className2) || classes.push(className2);
  9278. }), classes;
  9279. }, []), startingClassName = properties.className && properties.className.includes("token") ? ["token"] : [], className = properties.className && startingClassName.concat(properties.className.filter(function(className2) {
  9280. return !allStylesheetSelectors.includes(className2);
  9281. }));
  9282. props = _objectSpread(_objectSpread({}, properties), {}, {
  9283. className: createClassNameString(className) || void 0,
  9284. style: createStyleObject(properties.className, Object.assign({}, properties.style, style), stylesheet)
  9285. });
  9286. }
  9287. var children = childrenCreator(node2.children);
  9288. return import_react8.default.createElement(TagName, _extends({
  9289. key
  9290. }, props), children);
  9291. }
  9292. }
  9293. var import_react8, classNameCombinations, init_create_element = __esm({
  9294. "../../node_modules/react-syntax-highlighter/dist/esm/create-element.js"() {
  9295. init_extends();
  9296. init_defineProperty();
  9297. import_react8 = __toESM(require_react());
  9298. classNameCombinations = {};
  9299. }
  9300. });
  9301. // ../../node_modules/refractor/lang/bash.js
  9302. var require_bash = __commonJS({
  9303. "../../node_modules/refractor/lang/bash.js"(exports, module2) {
  9304. "use strict";
  9305. module2.exports = bash2;
  9306. bash2.displayName = "bash";
  9307. bash2.aliases = ["shell"];
  9308. function bash2(Prism) {
  9309. (function(Prism2) {
  9310. var envVars = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", commandAfterHeredoc = {
  9311. pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
  9312. lookbehind: !0,
  9313. alias: "punctuation",
  9314. // this looks reasonably well in all themes
  9315. inside: null
  9316. // see below
  9317. }, insideString = {
  9318. bash: commandAfterHeredoc,
  9319. environment: {
  9320. pattern: RegExp("\\$" + envVars),
  9321. alias: "constant"
  9322. },
  9323. variable: [
  9324. // [0]: Arithmetic Environment
  9325. {
  9326. pattern: /\$?\(\([\s\S]+?\)\)/,
  9327. greedy: !0,
  9328. inside: {
  9329. // If there is a $ sign at the beginning highlight $(( and )) as variable
  9330. variable: [
  9331. {
  9332. pattern: /(^\$\(\([\s\S]+)\)\)/,
  9333. lookbehind: !0
  9334. },
  9335. /^\$\(\(/
  9336. ],
  9337. number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
  9338. // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
  9339. operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
  9340. // If there is no $ sign at the beginning highlight (( and )) as punctuation
  9341. punctuation: /\(\(?|\)\)?|,|;/
  9342. }
  9343. },
  9344. // [1]: Command Substitution
  9345. {
  9346. pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
  9347. greedy: !0,
  9348. inside: {
  9349. variable: /^\$\(|^`|\)$|`$/
  9350. }
  9351. },
  9352. // [2]: Brace expansion
  9353. {
  9354. pattern: /\$\{[^}]+\}/,
  9355. greedy: !0,
  9356. inside: {
  9357. operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
  9358. punctuation: /[\[\]]/,
  9359. environment: {
  9360. pattern: RegExp("(\\{)" + envVars),
  9361. lookbehind: !0,
  9362. alias: "constant"
  9363. }
  9364. }
  9365. },
  9366. /\$(?:\w+|[#?*!@$])/
  9367. ],
  9368. // Escape sequences from echo and printf's manuals, and escaped quotes.
  9369. entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
  9370. };
  9371. Prism2.languages.bash = {
  9372. shebang: {
  9373. pattern: /^#!\s*\/.*/,
  9374. alias: "important"
  9375. },
  9376. comment: {
  9377. pattern: /(^|[^"{\\$])#.*/,
  9378. lookbehind: !0
  9379. },
  9380. "function-name": [
  9381. // a) function foo {
  9382. // b) foo() {
  9383. // c) function foo() {
  9384. // but not “foo {”
  9385. {
  9386. // a) and c)
  9387. pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
  9388. lookbehind: !0,
  9389. alias: "function"
  9390. },
  9391. {
  9392. // b)
  9393. pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
  9394. alias: "function"
  9395. }
  9396. ],
  9397. // Highlight variable names as variables in for and select beginnings.
  9398. "for-or-select": {
  9399. pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
  9400. alias: "variable",
  9401. lookbehind: !0
  9402. },
  9403. // Highlight variable names as variables in the left-hand part
  9404. // of assignments (“=” and “+=”).
  9405. "assign-left": {
  9406. pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
  9407. inside: {
  9408. environment: {
  9409. pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + envVars),
  9410. lookbehind: !0,
  9411. alias: "constant"
  9412. }
  9413. },
  9414. alias: "variable",
  9415. lookbehind: !0
  9416. },
  9417. string: [
  9418. // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
  9419. {
  9420. pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
  9421. lookbehind: !0,
  9422. greedy: !0,
  9423. inside: insideString
  9424. },
  9425. // Here-document with quotes around the tag
  9426. // → No expansion (so no “inside”).
  9427. {
  9428. pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
  9429. lookbehind: !0,
  9430. greedy: !0,
  9431. inside: {
  9432. bash: commandAfterHeredoc
  9433. }
  9434. },
  9435. // “Normal” string
  9436. {
  9437. // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
  9438. pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
  9439. lookbehind: !0,
  9440. greedy: !0,
  9441. inside: insideString
  9442. },
  9443. {
  9444. // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
  9445. pattern: /(^|[^$\\])'[^']*'/,
  9446. lookbehind: !0,
  9447. greedy: !0
  9448. },
  9449. {
  9450. // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
  9451. pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
  9452. greedy: !0,
  9453. inside: {
  9454. entity: insideString.entity
  9455. }
  9456. }
  9457. ],
  9458. environment: {
  9459. pattern: RegExp("\\$?" + envVars),
  9460. alias: "constant"
  9461. },
  9462. variable: insideString.variable,
  9463. function: {
  9464. pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
  9465. lookbehind: !0
  9466. },
  9467. keyword: {
  9468. pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
  9469. lookbehind: !0
  9470. },
  9471. // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
  9472. builtin: {
  9473. pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
  9474. lookbehind: !0,
  9475. // Alias added to make those easier to distinguish from strings.
  9476. alias: "class-name"
  9477. },
  9478. boolean: {
  9479. pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
  9480. lookbehind: !0
  9481. },
  9482. "file-descriptor": {
  9483. pattern: /\B&\d\b/,
  9484. alias: "important"
  9485. },
  9486. operator: {
  9487. // Lots of redirections here, but not just that.
  9488. pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
  9489. inside: {
  9490. "file-descriptor": {
  9491. pattern: /^\d/,
  9492. alias: "important"
  9493. }
  9494. }
  9495. },
  9496. punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
  9497. number: {
  9498. pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
  9499. lookbehind: !0
  9500. }
  9501. }, commandAfterHeredoc.inside = Prism2.languages.bash;
  9502. for (var toBeCopied = [
  9503. "comment",
  9504. "function-name",
  9505. "for-or-select",
  9506. "assign-left",
  9507. "string",
  9508. "environment",
  9509. "function",
  9510. "keyword",
  9511. "builtin",
  9512. "boolean",
  9513. "file-descriptor",
  9514. "operator",
  9515. "punctuation",
  9516. "number"
  9517. ], inside = insideString.variable[1].inside, i = 0; i < toBeCopied.length; i++)
  9518. inside[toBeCopied[i]] = Prism2.languages.bash[toBeCopied[i]];
  9519. Prism2.languages.shell = Prism2.languages.bash;
  9520. })(Prism);
  9521. }
  9522. }
  9523. });
  9524. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js
  9525. var import_bash, bash_default, init_bash = __esm({
  9526. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js"() {
  9527. import_bash = __toESM(require_bash()), bash_default = import_bash.default;
  9528. }
  9529. });
  9530. // ../../node_modules/refractor/lang/css.js
  9531. var require_css = __commonJS({
  9532. "../../node_modules/refractor/lang/css.js"(exports, module2) {
  9533. "use strict";
  9534. module2.exports = css3;
  9535. css3.displayName = "css";
  9536. css3.aliases = [];
  9537. function css3(Prism) {
  9538. (function(Prism2) {
  9539. var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
  9540. Prism2.languages.css = {
  9541. comment: /\/\*[\s\S]*?\*\//,
  9542. atrule: {
  9543. pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
  9544. inside: {
  9545. rule: /^@[\w-]+/,
  9546. "selector-function-argument": {
  9547. pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
  9548. lookbehind: !0,
  9549. alias: "selector"
  9550. },
  9551. keyword: {
  9552. pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
  9553. lookbehind: !0
  9554. }
  9555. // See rest below
  9556. }
  9557. },
  9558. url: {
  9559. // https://drafts.csswg.org/css-values-3/#urls
  9560. pattern: RegExp(
  9561. "\\burl\\((?:" + string.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)",
  9562. "i"
  9563. ),
  9564. greedy: !0,
  9565. inside: {
  9566. function: /^url/i,
  9567. punctuation: /^\(|\)$/,
  9568. string: {
  9569. pattern: RegExp("^" + string.source + "$"),
  9570. alias: "url"
  9571. }
  9572. }
  9573. },
  9574. selector: {
  9575. pattern: RegExp(
  9576. `(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + string.source + ")*(?=\\s*\\{)"
  9577. ),
  9578. lookbehind: !0
  9579. },
  9580. string: {
  9581. pattern: string,
  9582. greedy: !0
  9583. },
  9584. property: {
  9585. pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
  9586. lookbehind: !0
  9587. },
  9588. important: /!important\b/i,
  9589. function: {
  9590. pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
  9591. lookbehind: !0
  9592. },
  9593. punctuation: /[(){};:,]/
  9594. }, Prism2.languages.css.atrule.inside.rest = Prism2.languages.css;
  9595. var markup2 = Prism2.languages.markup;
  9596. markup2 && (markup2.tag.addInlined("style", "css"), markup2.tag.addAttribute("style", "css"));
  9597. })(Prism);
  9598. }
  9599. }
  9600. });
  9601. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js
  9602. var import_css, css_default, init_css = __esm({
  9603. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js"() {
  9604. import_css = __toESM(require_css()), css_default = import_css.default;
  9605. }
  9606. });
  9607. // ../../node_modules/refractor/lang/graphql.js
  9608. var require_graphql = __commonJS({
  9609. "../../node_modules/refractor/lang/graphql.js"(exports, module2) {
  9610. "use strict";
  9611. module2.exports = graphql2;
  9612. graphql2.displayName = "graphql";
  9613. graphql2.aliases = [];
  9614. function graphql2(Prism) {
  9615. Prism.languages.graphql = {
  9616. comment: /#.*/,
  9617. description: {
  9618. pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,
  9619. greedy: !0,
  9620. alias: "string",
  9621. inside: {
  9622. "language-markdown": {
  9623. pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,
  9624. lookbehind: !0,
  9625. inside: Prism.languages.markdown
  9626. }
  9627. }
  9628. },
  9629. string: {
  9630. pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,
  9631. greedy: !0
  9632. },
  9633. number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
  9634. boolean: /\b(?:false|true)\b/,
  9635. variable: /\$[a-z_]\w*/i,
  9636. directive: {
  9637. pattern: /@[a-z_]\w*/i,
  9638. alias: "function"
  9639. },
  9640. "attr-name": {
  9641. pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,
  9642. greedy: !0
  9643. },
  9644. "atom-input": {
  9645. pattern: /\b[A-Z]\w*Input\b/,
  9646. alias: "class-name"
  9647. },
  9648. scalar: /\b(?:Boolean|Float|ID|Int|String)\b/,
  9649. constant: /\b[A-Z][A-Z_\d]*\b/,
  9650. "class-name": {
  9651. pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,
  9652. lookbehind: !0
  9653. },
  9654. fragment: {
  9655. pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,
  9656. lookbehind: !0,
  9657. alias: "function"
  9658. },
  9659. "definition-mutation": {
  9660. pattern: /(\bmutation\s+)[a-zA-Z_]\w*/,
  9661. lookbehind: !0,
  9662. alias: "function"
  9663. },
  9664. "definition-query": {
  9665. pattern: /(\bquery\s+)[a-zA-Z_]\w*/,
  9666. lookbehind: !0,
  9667. alias: "function"
  9668. },
  9669. keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,
  9670. operator: /[!=|&]|\.{3}/,
  9671. "property-query": /\w+(?=\s*\()/,
  9672. object: /\w+(?=\s*\{)/,
  9673. punctuation: /[!(){}\[\]:=,]/,
  9674. property: /\w+/
  9675. }, Prism.hooks.add("after-tokenize", function(env) {
  9676. if (env.language !== "graphql")
  9677. return;
  9678. var validTokens = env.tokens.filter(function(token2) {
  9679. return typeof token2 != "string" && token2.type !== "comment" && token2.type !== "scalar";
  9680. }), currentIndex = 0;
  9681. function getToken(offset3) {
  9682. return validTokens[currentIndex + offset3];
  9683. }
  9684. function isTokenType(types, offset3) {
  9685. offset3 = offset3 || 0;
  9686. for (var i2 = 0; i2 < types.length; i2++) {
  9687. var token2 = getToken(i2 + offset3);
  9688. if (!token2 || token2.type !== types[i2])
  9689. return !1;
  9690. }
  9691. return !0;
  9692. }
  9693. function findClosingBracket(open, close) {
  9694. for (var stackHeight = 1, i2 = currentIndex; i2 < validTokens.length; i2++) {
  9695. var token2 = validTokens[i2], content = token2.content;
  9696. if (token2.type === "punctuation" && typeof content == "string") {
  9697. if (open.test(content))
  9698. stackHeight++;
  9699. else if (close.test(content) && (stackHeight--, stackHeight === 0))
  9700. return i2;
  9701. }
  9702. }
  9703. return -1;
  9704. }
  9705. function addAlias(token2, alias) {
  9706. var aliases2 = token2.alias;
  9707. aliases2 ? Array.isArray(aliases2) || (token2.alias = aliases2 = [aliases2]) : token2.alias = aliases2 = [], aliases2.push(alias);
  9708. }
  9709. for (; currentIndex < validTokens.length; ) {
  9710. var startToken = validTokens[currentIndex++];
  9711. if (startToken.type === "keyword" && startToken.content === "mutation") {
  9712. var inputVariables = [];
  9713. if (isTokenType(["definition-mutation", "punctuation"]) && getToken(1).content === "(") {
  9714. currentIndex += 2;
  9715. var definitionEnd = findClosingBracket(/^\($/, /^\)$/);
  9716. if (definitionEnd === -1)
  9717. continue;
  9718. for (; currentIndex < definitionEnd; currentIndex++) {
  9719. var t = getToken(0);
  9720. t.type === "variable" && (addAlias(t, "variable-input"), inputVariables.push(t.content));
  9721. }
  9722. currentIndex = definitionEnd + 1;
  9723. }
  9724. if (isTokenType(["punctuation", "property-query"]) && getToken(0).content === "{" && (currentIndex++, addAlias(getToken(0), "property-mutation"), inputVariables.length > 0)) {
  9725. var mutationEnd = findClosingBracket(/^\{$/, /^\}$/);
  9726. if (mutationEnd === -1)
  9727. continue;
  9728. for (var i = currentIndex; i < mutationEnd; i++) {
  9729. var varToken = validTokens[i];
  9730. varToken.type === "variable" && inputVariables.indexOf(varToken.content) >= 0 && addAlias(varToken, "variable-input");
  9731. }
  9732. }
  9733. }
  9734. }
  9735. });
  9736. }
  9737. }
  9738. });
  9739. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/graphql.js
  9740. var import_graphql, graphql_default, init_graphql = __esm({
  9741. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/graphql.js"() {
  9742. import_graphql = __toESM(require_graphql()), graphql_default = import_graphql.default;
  9743. }
  9744. });
  9745. // ../../node_modules/refractor/lang/js-extras.js
  9746. var require_js_extras = __commonJS({
  9747. "../../node_modules/refractor/lang/js-extras.js"(exports, module2) {
  9748. "use strict";
  9749. module2.exports = jsExtras2;
  9750. jsExtras2.displayName = "jsExtras";
  9751. jsExtras2.aliases = [];
  9752. function jsExtras2(Prism) {
  9753. (function(Prism2) {
  9754. Prism2.languages.insertBefore("javascript", "function-variable", {
  9755. "method-variable": {
  9756. pattern: RegExp(
  9757. "(\\.\\s*)" + Prism2.languages.javascript["function-variable"].pattern.source
  9758. ),
  9759. lookbehind: !0,
  9760. alias: ["function-variable", "method", "function", "property-access"]
  9761. }
  9762. }), Prism2.languages.insertBefore("javascript", "function", {
  9763. method: {
  9764. pattern: RegExp(
  9765. "(\\.\\s*)" + Prism2.languages.javascript.function.source
  9766. ),
  9767. lookbehind: !0,
  9768. alias: ["function", "property-access"]
  9769. }
  9770. }), Prism2.languages.insertBefore("javascript", "constant", {
  9771. "known-class-name": [
  9772. {
  9773. // standard built-ins
  9774. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
  9775. pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,
  9776. alias: "class-name"
  9777. },
  9778. {
  9779. // errors
  9780. pattern: /\b(?:[A-Z]\w*)Error\b/,
  9781. alias: "class-name"
  9782. }
  9783. ]
  9784. });
  9785. function withId(source, flags) {
  9786. return RegExp(
  9787. source.replace(/<ID>/g, function() {
  9788. return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
  9789. }),
  9790. flags
  9791. );
  9792. }
  9793. Prism2.languages.insertBefore("javascript", "keyword", {
  9794. imports: {
  9795. // https://tc39.es/ecma262/#sec-imports
  9796. pattern: withId(
  9797. /(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source
  9798. ),
  9799. lookbehind: !0,
  9800. inside: Prism2.languages.javascript
  9801. },
  9802. exports: {
  9803. // https://tc39.es/ecma262/#sec-exports
  9804. pattern: withId(
  9805. /(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source
  9806. ),
  9807. lookbehind: !0,
  9808. inside: Prism2.languages.javascript
  9809. }
  9810. }), Prism2.languages.javascript.keyword.unshift(
  9811. {
  9812. pattern: /\b(?:as|default|export|from|import)\b/,
  9813. alias: "module"
  9814. },
  9815. {
  9816. pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,
  9817. alias: "control-flow"
  9818. },
  9819. {
  9820. pattern: /\bnull\b/,
  9821. alias: ["null", "nil"]
  9822. },
  9823. {
  9824. pattern: /\bundefined\b/,
  9825. alias: "nil"
  9826. }
  9827. ), Prism2.languages.insertBefore("javascript", "operator", {
  9828. spread: {
  9829. pattern: /\.{3}/,
  9830. alias: "operator"
  9831. },
  9832. arrow: {
  9833. pattern: /=>/,
  9834. alias: "operator"
  9835. }
  9836. }), Prism2.languages.insertBefore("javascript", "punctuation", {
  9837. "property-access": {
  9838. pattern: withId(/(\.\s*)#?<ID>/.source),
  9839. lookbehind: !0
  9840. },
  9841. "maybe-class-name": {
  9842. pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,
  9843. lookbehind: !0
  9844. },
  9845. dom: {
  9846. // this contains only a few commonly used DOM variables
  9847. pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,
  9848. alias: "variable"
  9849. },
  9850. console: {
  9851. pattern: /\bconsole(?=\s*\.)/,
  9852. alias: "class-name"
  9853. }
  9854. });
  9855. for (var maybeClassNameTokens = [
  9856. "function",
  9857. "function-variable",
  9858. "method",
  9859. "method-variable",
  9860. "property-access"
  9861. ], i = 0; i < maybeClassNameTokens.length; i++) {
  9862. var token2 = maybeClassNameTokens[i], value = Prism2.languages.javascript[token2];
  9863. Prism2.util.type(value) === "RegExp" && (value = Prism2.languages.javascript[token2] = {
  9864. pattern: value
  9865. });
  9866. var inside = value.inside || {};
  9867. value.inside = inside, inside["maybe-class-name"] = /^[A-Z][\s\S]*/;
  9868. }
  9869. })(Prism);
  9870. }
  9871. }
  9872. });
  9873. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/js-extras.js
  9874. var import_js_extras, js_extras_default, init_js_extras = __esm({
  9875. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/js-extras.js"() {
  9876. import_js_extras = __toESM(require_js_extras()), js_extras_default = import_js_extras.default;
  9877. }
  9878. });
  9879. // ../../node_modules/refractor/lang/json.js
  9880. var require_json = __commonJS({
  9881. "../../node_modules/refractor/lang/json.js"(exports, module2) {
  9882. "use strict";
  9883. module2.exports = json3;
  9884. json3.displayName = "json";
  9885. json3.aliases = ["webmanifest"];
  9886. function json3(Prism) {
  9887. Prism.languages.json = {
  9888. property: {
  9889. pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
  9890. lookbehind: !0,
  9891. greedy: !0
  9892. },
  9893. string: {
  9894. pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
  9895. lookbehind: !0,
  9896. greedy: !0
  9897. },
  9898. comment: {
  9899. pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
  9900. greedy: !0
  9901. },
  9902. number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
  9903. punctuation: /[{}[\],]/,
  9904. operator: /:/,
  9905. boolean: /\b(?:false|true)\b/,
  9906. null: {
  9907. pattern: /\bnull\b/,
  9908. alias: "keyword"
  9909. }
  9910. }, Prism.languages.webmanifest = Prism.languages.json;
  9911. }
  9912. }
  9913. });
  9914. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js
  9915. var import_json, json_default, init_json = __esm({
  9916. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js"() {
  9917. import_json = __toESM(require_json()), json_default = import_json.default;
  9918. }
  9919. });
  9920. // ../../node_modules/refractor/lang/jsx.js
  9921. var require_jsx = __commonJS({
  9922. "../../node_modules/refractor/lang/jsx.js"(exports, module2) {
  9923. "use strict";
  9924. module2.exports = jsx10;
  9925. jsx10.displayName = "jsx";
  9926. jsx10.aliases = [];
  9927. function jsx10(Prism) {
  9928. (function(Prism2) {
  9929. var javascript = Prism2.util.clone(Prism2.languages.javascript), space = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, braces = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, spread = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
  9930. function re(source, flags) {
  9931. return source = source.replace(/<S>/g, function() {
  9932. return space;
  9933. }).replace(/<BRACES>/g, function() {
  9934. return braces;
  9935. }).replace(/<SPREAD>/g, function() {
  9936. return spread;
  9937. }), RegExp(source, flags);
  9938. }
  9939. spread = re(spread).source, Prism2.languages.jsx = Prism2.languages.extend("markup", javascript), Prism2.languages.jsx.tag.pattern = re(
  9940. /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
  9941. ), Prism2.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, Prism2.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, Prism2.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, Prism2.languages.jsx.tag.inside.comment = javascript.comment, Prism2.languages.insertBefore(
  9942. "inside",
  9943. "attr-name",
  9944. {
  9945. spread: {
  9946. pattern: re(/<SPREAD>/.source),
  9947. inside: Prism2.languages.jsx
  9948. }
  9949. },
  9950. Prism2.languages.jsx.tag
  9951. ), Prism2.languages.insertBefore(
  9952. "inside",
  9953. "special-attr",
  9954. {
  9955. script: {
  9956. // Allow for two levels of nesting
  9957. pattern: re(/=<BRACES>/.source),
  9958. alias: "language-javascript",
  9959. inside: {
  9960. "script-punctuation": {
  9961. pattern: /^=(?=\{)/,
  9962. alias: "punctuation"
  9963. },
  9964. rest: Prism2.languages.jsx
  9965. }
  9966. }
  9967. },
  9968. Prism2.languages.jsx.tag
  9969. );
  9970. var stringifyToken = function(token2) {
  9971. return token2 ? typeof token2 == "string" ? token2 : typeof token2.content == "string" ? token2.content : token2.content.map(stringifyToken).join("") : "";
  9972. }, walkTokens = function(tokens2) {
  9973. for (var openedTags = [], i = 0; i < tokens2.length; i++) {
  9974. var token2 = tokens2[i], notTagNorBrace = !1;
  9975. if (typeof token2 != "string" && (token2.type === "tag" && token2.content[0] && token2.content[0].type === "tag" ? token2.content[0].content[0].content === "</" ? openedTags.length > 0 && openedTags[openedTags.length - 1].tagName === stringifyToken(token2.content[0].content[1]) && openedTags.pop() : token2.content[token2.content.length - 1].content === "/>" || openedTags.push({
  9976. tagName: stringifyToken(token2.content[0].content[1]),
  9977. openedBraces: 0
  9978. }) : openedTags.length > 0 && token2.type === "punctuation" && token2.content === "{" ? openedTags[openedTags.length - 1].openedBraces++ : openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces > 0 && token2.type === "punctuation" && token2.content === "}" ? openedTags[openedTags.length - 1].openedBraces-- : notTagNorBrace = !0), (notTagNorBrace || typeof token2 == "string") && openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces === 0) {
  9979. var plainText = stringifyToken(token2);
  9980. i < tokens2.length - 1 && (typeof tokens2[i + 1] == "string" || tokens2[i + 1].type === "plain-text") && (plainText += stringifyToken(tokens2[i + 1]), tokens2.splice(i + 1, 1)), i > 0 && (typeof tokens2[i - 1] == "string" || tokens2[i - 1].type === "plain-text") && (plainText = stringifyToken(tokens2[i - 1]) + plainText, tokens2.splice(i - 1, 1), i--), tokens2[i] = new Prism2.Token(
  9981. "plain-text",
  9982. plainText,
  9983. null,
  9984. plainText
  9985. );
  9986. }
  9987. token2.content && typeof token2.content != "string" && walkTokens(token2.content);
  9988. }
  9989. };
  9990. Prism2.hooks.add("after-tokenize", function(env) {
  9991. env.language !== "jsx" && env.language !== "tsx" || walkTokens(env.tokens);
  9992. });
  9993. })(Prism);
  9994. }
  9995. }
  9996. });
  9997. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
  9998. var import_jsx, jsx_default, init_jsx = __esm({
  9999. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js"() {
  10000. import_jsx = __toESM(require_jsx()), jsx_default = import_jsx.default;
  10001. }
  10002. });
  10003. // ../../node_modules/refractor/lang/markdown.js
  10004. var require_markdown = __commonJS({
  10005. "../../node_modules/refractor/lang/markdown.js"(exports, module2) {
  10006. "use strict";
  10007. module2.exports = markdown2;
  10008. markdown2.displayName = "markdown";
  10009. markdown2.aliases = ["md"];
  10010. function markdown2(Prism) {
  10011. (function(Prism2) {
  10012. var inner = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
  10013. function createInline(pattern) {
  10014. return pattern = pattern.replace(/<inner>/g, function() {
  10015. return inner;
  10016. }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + pattern + ")");
  10017. }
  10018. var tableCell = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, tableRow = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(
  10019. /__/g,
  10020. function() {
  10021. return tableCell;
  10022. }
  10023. ), tableLine = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
  10024. Prism2.languages.markdown = Prism2.languages.extend("markup", {}), Prism2.languages.insertBefore("markdown", "prolog", {
  10025. "front-matter-block": {
  10026. pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
  10027. lookbehind: !0,
  10028. greedy: !0,
  10029. inside: {
  10030. punctuation: /^---|---$/,
  10031. "front-matter": {
  10032. pattern: /\S+(?:\s+\S+)*/,
  10033. alias: ["yaml", "language-yaml"],
  10034. inside: Prism2.languages.yaml
  10035. }
  10036. }
  10037. },
  10038. blockquote: {
  10039. // > ...
  10040. pattern: /^>(?:[\t ]*>)*/m,
  10041. alias: "punctuation"
  10042. },
  10043. table: {
  10044. pattern: RegExp(
  10045. "^" + tableRow + tableLine + "(?:" + tableRow + ")*",
  10046. "m"
  10047. ),
  10048. inside: {
  10049. "table-data-rows": {
  10050. pattern: RegExp(
  10051. "^(" + tableRow + tableLine + ")(?:" + tableRow + ")*$"
  10052. ),
  10053. lookbehind: !0,
  10054. inside: {
  10055. "table-data": {
  10056. pattern: RegExp(tableCell),
  10057. inside: Prism2.languages.markdown
  10058. },
  10059. punctuation: /\|/
  10060. }
  10061. },
  10062. "table-line": {
  10063. pattern: RegExp("^(" + tableRow + ")" + tableLine + "$"),
  10064. lookbehind: !0,
  10065. inside: {
  10066. punctuation: /\||:?-{3,}:?/
  10067. }
  10068. },
  10069. "table-header-row": {
  10070. pattern: RegExp("^" + tableRow + "$"),
  10071. inside: {
  10072. "table-header": {
  10073. pattern: RegExp(tableCell),
  10074. alias: "important",
  10075. inside: Prism2.languages.markdown
  10076. },
  10077. punctuation: /\|/
  10078. }
  10079. }
  10080. }
  10081. },
  10082. code: [
  10083. {
  10084. // Prefixed by 4 spaces or 1 tab and preceded by an empty line
  10085. pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
  10086. lookbehind: !0,
  10087. alias: "keyword"
  10088. },
  10089. {
  10090. // ```optional language
  10091. // code block
  10092. // ```
  10093. pattern: /^```[\s\S]*?^```$/m,
  10094. greedy: !0,
  10095. inside: {
  10096. "code-block": {
  10097. pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
  10098. lookbehind: !0
  10099. },
  10100. "code-language": {
  10101. pattern: /^(```).+/,
  10102. lookbehind: !0
  10103. },
  10104. punctuation: /```/
  10105. }
  10106. }
  10107. ],
  10108. title: [
  10109. {
  10110. // title 1
  10111. // =======
  10112. // title 2
  10113. // -------
  10114. pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
  10115. alias: "important",
  10116. inside: {
  10117. punctuation: /==+$|--+$/
  10118. }
  10119. },
  10120. {
  10121. // # title 1
  10122. // ###### title 6
  10123. pattern: /(^\s*)#.+/m,
  10124. lookbehind: !0,
  10125. alias: "important",
  10126. inside: {
  10127. punctuation: /^#+|#+$/
  10128. }
  10129. }
  10130. ],
  10131. hr: {
  10132. // ***
  10133. // ---
  10134. // * * *
  10135. // -----------
  10136. pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
  10137. lookbehind: !0,
  10138. alias: "punctuation"
  10139. },
  10140. list: {
  10141. // * item
  10142. // + item
  10143. // - item
  10144. // 1. item
  10145. pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
  10146. lookbehind: !0,
  10147. alias: "punctuation"
  10148. },
  10149. "url-reference": {
  10150. // [id]: http://example.com "Optional title"
  10151. // [id]: http://example.com 'Optional title'
  10152. // [id]: http://example.com (Optional title)
  10153. // [id]: <http://example.com> "Optional title"
  10154. pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
  10155. inside: {
  10156. variable: {
  10157. pattern: /^(!?\[)[^\]]+/,
  10158. lookbehind: !0
  10159. },
  10160. string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
  10161. punctuation: /^[\[\]!:]|[<>]/
  10162. },
  10163. alias: "url"
  10164. },
  10165. bold: {
  10166. // **strong**
  10167. // __strong__
  10168. // allow one nested instance of italic text using the same delimiter
  10169. pattern: createInline(
  10170. /\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source
  10171. ),
  10172. lookbehind: !0,
  10173. greedy: !0,
  10174. inside: {
  10175. content: {
  10176. pattern: /(^..)[\s\S]+(?=..$)/,
  10177. lookbehind: !0,
  10178. inside: {}
  10179. // see below
  10180. },
  10181. punctuation: /\*\*|__/
  10182. }
  10183. },
  10184. italic: {
  10185. // *em*
  10186. // _em_
  10187. // allow one nested instance of bold text using the same delimiter
  10188. pattern: createInline(
  10189. /\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source
  10190. ),
  10191. lookbehind: !0,
  10192. greedy: !0,
  10193. inside: {
  10194. content: {
  10195. pattern: /(^.)[\s\S]+(?=.$)/,
  10196. lookbehind: !0,
  10197. inside: {}
  10198. // see below
  10199. },
  10200. punctuation: /[*_]/
  10201. }
  10202. },
  10203. strike: {
  10204. // ~~strike through~~
  10205. // ~strike~
  10206. // eslint-disable-next-line regexp/strict
  10207. pattern: createInline(/(~~?)(?:(?!~)<inner>)+\2/.source),
  10208. lookbehind: !0,
  10209. greedy: !0,
  10210. inside: {
  10211. content: {
  10212. pattern: /(^~~?)[\s\S]+(?=\1$)/,
  10213. lookbehind: !0,
  10214. inside: {}
  10215. // see below
  10216. },
  10217. punctuation: /~~?/
  10218. }
  10219. },
  10220. "code-snippet": {
  10221. // `code`
  10222. // ``code``
  10223. pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
  10224. lookbehind: !0,
  10225. greedy: !0,
  10226. alias: ["code", "keyword"]
  10227. },
  10228. url: {
  10229. // [example](http://example.com "Optional title")
  10230. // [example][id]
  10231. // [example] [id]
  10232. pattern: createInline(
  10233. /!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source
  10234. ),
  10235. lookbehind: !0,
  10236. greedy: !0,
  10237. inside: {
  10238. operator: /^!/,
  10239. content: {
  10240. pattern: /(^\[)[^\]]+(?=\])/,
  10241. lookbehind: !0,
  10242. inside: {}
  10243. // see below
  10244. },
  10245. variable: {
  10246. pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
  10247. lookbehind: !0
  10248. },
  10249. url: {
  10250. pattern: /(^\]\()[^\s)]+/,
  10251. lookbehind: !0
  10252. },
  10253. string: {
  10254. pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
  10255. lookbehind: !0
  10256. }
  10257. }
  10258. }
  10259. }), ["url", "bold", "italic", "strike"].forEach(function(token2) {
  10260. ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(inside) {
  10261. token2 !== inside && (Prism2.languages.markdown[token2].inside.content.inside[inside] = Prism2.languages.markdown[inside]);
  10262. });
  10263. }), Prism2.hooks.add("after-tokenize", function(env) {
  10264. if (env.language !== "markdown" && env.language !== "md")
  10265. return;
  10266. function walkTokens(tokens2) {
  10267. if (!(!tokens2 || typeof tokens2 == "string"))
  10268. for (var i = 0, l = tokens2.length; i < l; i++) {
  10269. var token2 = tokens2[i];
  10270. if (token2.type !== "code") {
  10271. walkTokens(token2.content);
  10272. continue;
  10273. }
  10274. var codeLang = token2.content[1], codeBlock = token2.content[3];
  10275. if (codeLang && codeBlock && codeLang.type === "code-language" && codeBlock.type === "code-block" && typeof codeLang.content == "string") {
  10276. var lang = codeLang.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
  10277. lang = (/[a-z][\w-]*/i.exec(lang) || [""])[0].toLowerCase();
  10278. var alias = "language-" + lang;
  10279. codeBlock.alias ? typeof codeBlock.alias == "string" ? codeBlock.alias = [codeBlock.alias, alias] : codeBlock.alias.push(alias) : codeBlock.alias = [alias];
  10280. }
  10281. }
  10282. }
  10283. walkTokens(env.tokens);
  10284. }), Prism2.hooks.add("wrap", function(env) {
  10285. if (env.type === "code-block") {
  10286. for (var codeLang = "", i = 0, l = env.classes.length; i < l; i++) {
  10287. var cls = env.classes[i], match3 = /language-(.+)/.exec(cls);
  10288. if (match3) {
  10289. codeLang = match3[1];
  10290. break;
  10291. }
  10292. }
  10293. var grammar = Prism2.languages[codeLang];
  10294. if (grammar)
  10295. env.content = Prism2.highlight(
  10296. textContent(env.content.value),
  10297. grammar,
  10298. codeLang
  10299. );
  10300. else if (codeLang && codeLang !== "none" && Prism2.plugins.autoloader) {
  10301. var id = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
  10302. env.attributes.id = id, Prism2.plugins.autoloader.loadLanguages(codeLang, function() {
  10303. var ele = document.getElementById(id);
  10304. ele && (ele.innerHTML = Prism2.highlight(
  10305. ele.textContent,
  10306. Prism2.languages[codeLang],
  10307. codeLang
  10308. ));
  10309. });
  10310. }
  10311. }
  10312. });
  10313. var tagPattern = RegExp(Prism2.languages.markup.tag.pattern.source, "gi"), KNOWN_ENTITY_NAMES = {
  10314. amp: "&",
  10315. lt: "<",
  10316. gt: ">",
  10317. quot: '"'
  10318. }, fromCodePoint3 = String.fromCodePoint || String.fromCharCode;
  10319. function textContent(html) {
  10320. var text = html.replace(tagPattern, "");
  10321. return text = text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(m3, code) {
  10322. if (code = code.toLowerCase(), code[0] === "#") {
  10323. var value;
  10324. return code[1] === "x" ? value = parseInt(code.slice(2), 16) : value = Number(code.slice(1)), fromCodePoint3(value);
  10325. } else {
  10326. var known = KNOWN_ENTITY_NAMES[code];
  10327. return known || m3;
  10328. }
  10329. }), text;
  10330. }
  10331. Prism2.languages.md = Prism2.languages.markdown;
  10332. })(Prism);
  10333. }
  10334. }
  10335. });
  10336. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markdown.js
  10337. var import_markdown, markdown_default, init_markdown = __esm({
  10338. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markdown.js"() {
  10339. import_markdown = __toESM(require_markdown()), markdown_default = import_markdown.default;
  10340. }
  10341. });
  10342. // ../../node_modules/refractor/lang/markup.js
  10343. var require_markup = __commonJS({
  10344. "../../node_modules/refractor/lang/markup.js"(exports, module2) {
  10345. "use strict";
  10346. module2.exports = markup2;
  10347. markup2.displayName = "markup";
  10348. markup2.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
  10349. function markup2(Prism) {
  10350. Prism.languages.markup = {
  10351. comment: {
  10352. pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
  10353. greedy: !0
  10354. },
  10355. prolog: {
  10356. pattern: /<\?[\s\S]+?\?>/,
  10357. greedy: !0
  10358. },
  10359. doctype: {
  10360. // https://www.w3.org/TR/xml/#NT-doctypedecl
  10361. pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
  10362. greedy: !0,
  10363. inside: {
  10364. "internal-subset": {
  10365. pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
  10366. lookbehind: !0,
  10367. greedy: !0,
  10368. inside: null
  10369. // see below
  10370. },
  10371. string: {
  10372. pattern: /"[^"]*"|'[^']*'/,
  10373. greedy: !0
  10374. },
  10375. punctuation: /^<!|>$|[[\]]/,
  10376. "doctype-tag": /^DOCTYPE/i,
  10377. name: /[^\s<>'"]+/
  10378. }
  10379. },
  10380. cdata: {
  10381. pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
  10382. greedy: !0
  10383. },
  10384. tag: {
  10385. pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
  10386. greedy: !0,
  10387. inside: {
  10388. tag: {
  10389. pattern: /^<\/?[^\s>\/]+/,
  10390. inside: {
  10391. punctuation: /^<\/?/,
  10392. namespace: /^[^\s>\/:]+:/
  10393. }
  10394. },
  10395. "special-attr": [],
  10396. "attr-value": {
  10397. pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
  10398. inside: {
  10399. punctuation: [
  10400. {
  10401. pattern: /^=/,
  10402. alias: "attr-equals"
  10403. },
  10404. /"|'/
  10405. ]
  10406. }
  10407. },
  10408. punctuation: /\/?>/,
  10409. "attr-name": {
  10410. pattern: /[^\s>\/]+/,
  10411. inside: {
  10412. namespace: /^[^\s>\/:]+:/
  10413. }
  10414. }
  10415. }
  10416. },
  10417. entity: [
  10418. {
  10419. pattern: /&[\da-z]{1,8};/i,
  10420. alias: "named-entity"
  10421. },
  10422. /&#x?[\da-f]{1,8};/i
  10423. ]
  10424. }, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", function(env) {
  10425. env.type === "entity" && (env.attributes.title = env.content.value.replace(/&amp;/, "&"));
  10426. }), Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
  10427. /**
  10428. * Adds an inlined language to markup.
  10429. *
  10430. * An example of an inlined language is CSS with `<style>` tags.
  10431. *
  10432. * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
  10433. * case insensitive.
  10434. * @param {string} lang The language key.
  10435. * @example
  10436. * addInlined('style', 'css');
  10437. */
  10438. value: function(tagName, lang) {
  10439. var includedCdataInside = {};
  10440. includedCdataInside["language-" + lang] = {
  10441. pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
  10442. lookbehind: !0,
  10443. inside: Prism.languages[lang]
  10444. }, includedCdataInside.cdata = /^<!\[CDATA\[|\]\]>$/i;
  10445. var inside = {
  10446. "included-cdata": {
  10447. pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
  10448. inside: includedCdataInside
  10449. }
  10450. };
  10451. inside["language-" + lang] = {
  10452. pattern: /[\s\S]+/,
  10453. inside: Prism.languages[lang]
  10454. };
  10455. var def = {};
  10456. def[tagName] = {
  10457. pattern: RegExp(
  10458. /(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(
  10459. /__/g,
  10460. function() {
  10461. return tagName;
  10462. }
  10463. ),
  10464. "i"
  10465. ),
  10466. lookbehind: !0,
  10467. greedy: !0,
  10468. inside
  10469. }, Prism.languages.insertBefore("markup", "cdata", def);
  10470. }
  10471. }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
  10472. /**
  10473. * Adds an pattern to highlight languages embedded in HTML attributes.
  10474. *
  10475. * An example of an inlined language is CSS with `style` attributes.
  10476. *
  10477. * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
  10478. * case insensitive.
  10479. * @param {string} lang The language key.
  10480. * @example
  10481. * addAttribute('style', 'css');
  10482. */
  10483. value: function(attrName, lang) {
  10484. Prism.languages.markup.tag.inside["special-attr"].push({
  10485. pattern: RegExp(
  10486. /(^|["'\s])/.source + "(?:" + attrName + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
  10487. "i"
  10488. ),
  10489. lookbehind: !0,
  10490. inside: {
  10491. "attr-name": /^[^\s=]+/,
  10492. "attr-value": {
  10493. pattern: /=[\s\S]+/,
  10494. inside: {
  10495. value: {
  10496. pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
  10497. lookbehind: !0,
  10498. alias: [lang, "language-" + lang],
  10499. inside: Prism.languages[lang]
  10500. },
  10501. punctuation: [
  10502. {
  10503. pattern: /^=/,
  10504. alias: "attr-equals"
  10505. },
  10506. /"|'/
  10507. ]
  10508. }
  10509. }
  10510. }
  10511. });
  10512. }
  10513. }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml;
  10514. }
  10515. }
  10516. });
  10517. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
  10518. var import_markup, markup_default, init_markup = __esm({
  10519. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js"() {
  10520. import_markup = __toESM(require_markup()), markup_default = import_markup.default;
  10521. }
  10522. });
  10523. // ../../node_modules/refractor/lang/typescript.js
  10524. var require_typescript = __commonJS({
  10525. "../../node_modules/refractor/lang/typescript.js"(exports, module2) {
  10526. "use strict";
  10527. module2.exports = typescript2;
  10528. typescript2.displayName = "typescript";
  10529. typescript2.aliases = ["ts"];
  10530. function typescript2(Prism) {
  10531. (function(Prism2) {
  10532. Prism2.languages.typescript = Prism2.languages.extend("javascript", {
  10533. "class-name": {
  10534. pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
  10535. lookbehind: !0,
  10536. greedy: !0,
  10537. inside: null
  10538. // see below
  10539. },
  10540. builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
  10541. }), Prism2.languages.typescript.keyword.push(
  10542. /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
  10543. // keywords that have to be followed by an identifier
  10544. /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
  10545. // This is for `import type *, {}`
  10546. /\btype\b(?=\s*(?:[\{*]|$))/
  10547. ), delete Prism2.languages.typescript.parameter, delete Prism2.languages.typescript["literal-property"];
  10548. var typeInside = Prism2.languages.extend("typescript", {});
  10549. delete typeInside["class-name"], Prism2.languages.typescript["class-name"].inside = typeInside, Prism2.languages.insertBefore("typescript", "function", {
  10550. decorator: {
  10551. pattern: /@[$\w\xA0-\uFFFF]+/,
  10552. inside: {
  10553. at: {
  10554. pattern: /^@/,
  10555. alias: "operator"
  10556. },
  10557. function: /^[\s\S]+/
  10558. }
  10559. },
  10560. "generic-function": {
  10561. // e.g. foo<T extends "bar" | "baz">( ...
  10562. pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
  10563. greedy: !0,
  10564. inside: {
  10565. function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
  10566. generic: {
  10567. pattern: /<[\s\S]+/,
  10568. // everything after the first <
  10569. alias: "class-name",
  10570. inside: typeInside
  10571. }
  10572. }
  10573. }
  10574. }), Prism2.languages.ts = Prism2.languages.typescript;
  10575. })(Prism);
  10576. }
  10577. }
  10578. });
  10579. // ../../node_modules/refractor/lang/tsx.js
  10580. var require_tsx = __commonJS({
  10581. "../../node_modules/refractor/lang/tsx.js"(exports, module2) {
  10582. "use strict";
  10583. var refractorJsx = require_jsx(), refractorTypescript = require_typescript();
  10584. module2.exports = tsx2;
  10585. tsx2.displayName = "tsx";
  10586. tsx2.aliases = [];
  10587. function tsx2(Prism) {
  10588. Prism.register(refractorJsx), Prism.register(refractorTypescript), (function(Prism2) {
  10589. var typescript2 = Prism2.util.clone(Prism2.languages.typescript);
  10590. Prism2.languages.tsx = Prism2.languages.extend("jsx", typescript2), delete Prism2.languages.tsx.parameter, delete Prism2.languages.tsx["literal-property"];
  10591. var tag = Prism2.languages.tsx.tag;
  10592. tag.pattern = RegExp(
  10593. /(^|[^\w$]|(?=<\/))/.source + "(?:" + tag.pattern.source + ")",
  10594. tag.pattern.flags
  10595. ), tag.lookbehind = !0;
  10596. })(Prism);
  10597. }
  10598. }
  10599. });
  10600. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/tsx.js
  10601. var import_tsx, tsx_default, init_tsx = __esm({
  10602. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/tsx.js"() {
  10603. import_tsx = __toESM(require_tsx()), tsx_default = import_tsx.default;
  10604. }
  10605. });
  10606. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js
  10607. var import_typescript, typescript_default, init_typescript = __esm({
  10608. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js"() {
  10609. import_typescript = __toESM(require_typescript()), typescript_default = import_typescript.default;
  10610. }
  10611. });
  10612. // ../../node_modules/refractor/lang/yaml.js
  10613. var require_yaml = __commonJS({
  10614. "../../node_modules/refractor/lang/yaml.js"(exports, module2) {
  10615. "use strict";
  10616. module2.exports = yaml2;
  10617. yaml2.displayName = "yaml";
  10618. yaml2.aliases = ["yml"];
  10619. function yaml2(Prism) {
  10620. (function(Prism2) {
  10621. var anchorOrAlias = /[*&][^\s[\]{},]+/, tag = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, properties = "(?:" + tag.source + "(?:[ ]+" + anchorOrAlias.source + ")?|" + anchorOrAlias.source + "(?:[ ]+" + tag.source + ")?)", plainKey = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(
  10622. /<PLAIN>/g,
  10623. function() {
  10624. return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
  10625. }
  10626. ), string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
  10627. function createValuePattern(value, flags) {
  10628. flags = (flags || "").replace(/m/g, "") + "m";
  10629. var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
  10630. return properties;
  10631. }).replace(/<<value>>/g, function() {
  10632. return value;
  10633. });
  10634. return RegExp(pattern, flags);
  10635. }
  10636. Prism2.languages.yaml = {
  10637. scalar: {
  10638. pattern: RegExp(
  10639. /([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(
  10640. /<<prop>>/g,
  10641. function() {
  10642. return properties;
  10643. }
  10644. )
  10645. ),
  10646. lookbehind: !0,
  10647. alias: "string"
  10648. },
  10649. comment: /#.*/,
  10650. key: {
  10651. pattern: RegExp(
  10652. /((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
  10653. return properties;
  10654. }).replace(/<<key>>/g, function() {
  10655. return "(?:" + plainKey + "|" + string + ")";
  10656. })
  10657. ),
  10658. lookbehind: !0,
  10659. greedy: !0,
  10660. alias: "atrule"
  10661. },
  10662. directive: {
  10663. pattern: /(^[ \t]*)%.+/m,
  10664. lookbehind: !0,
  10665. alias: "important"
  10666. },
  10667. datetime: {
  10668. pattern: createValuePattern(
  10669. /\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source
  10670. ),
  10671. lookbehind: !0,
  10672. alias: "number"
  10673. },
  10674. boolean: {
  10675. pattern: createValuePattern(/false|true/.source, "i"),
  10676. lookbehind: !0,
  10677. alias: "important"
  10678. },
  10679. null: {
  10680. pattern: createValuePattern(/null|~/.source, "i"),
  10681. lookbehind: !0,
  10682. alias: "important"
  10683. },
  10684. string: {
  10685. pattern: createValuePattern(string),
  10686. lookbehind: !0,
  10687. greedy: !0
  10688. },
  10689. number: {
  10690. pattern: createValuePattern(
  10691. /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,
  10692. "i"
  10693. ),
  10694. lookbehind: !0
  10695. },
  10696. tag,
  10697. important: anchorOrAlias,
  10698. punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
  10699. }, Prism2.languages.yml = Prism2.languages.yaml;
  10700. })(Prism);
  10701. }
  10702. }
  10703. });
  10704. // ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js
  10705. var import_yaml, yaml_default, init_yaml = __esm({
  10706. "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js"() {
  10707. import_yaml = __toESM(require_yaml()), yaml_default = import_yaml.default;
  10708. }
  10709. });
  10710. // ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
  10711. function _objectWithoutPropertiesLoose(r2, e) {
  10712. if (r2 == null) return {};
  10713. var t = {};
  10714. for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
  10715. if (e.indexOf(n) !== -1) continue;
  10716. t[n] = r2[n];
  10717. }
  10718. return t;
  10719. }
  10720. var init_objectWithoutPropertiesLoose = __esm({
  10721. "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"() {
  10722. }
  10723. });
  10724. // ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
  10725. function _objectWithoutProperties(e, t) {
  10726. if (e == null) return {};
  10727. var o, r2, i = _objectWithoutPropertiesLoose(e, t);
  10728. if (Object.getOwnPropertySymbols) {
  10729. var n = Object.getOwnPropertySymbols(e);
  10730. for (r2 = 0; r2 < n.length; r2++) o = n[r2], t.indexOf(o) === -1 && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
  10731. }
  10732. return i;
  10733. }
  10734. var init_objectWithoutProperties = __esm({
  10735. "../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"() {
  10736. init_objectWithoutPropertiesLoose();
  10737. }
  10738. });
  10739. // ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
  10740. function _arrayLikeToArray(r2, a3) {
  10741. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  10742. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  10743. return n;
  10744. }
  10745. var init_arrayLikeToArray = __esm({
  10746. "../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"() {
  10747. }
  10748. });
  10749. // ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
  10750. function _arrayWithoutHoles(r2) {
  10751. if (Array.isArray(r2)) return _arrayLikeToArray(r2);
  10752. }
  10753. var init_arrayWithoutHoles = __esm({
  10754. "../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"() {
  10755. init_arrayLikeToArray();
  10756. }
  10757. });
  10758. // ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
  10759. function _iterableToArray(r2) {
  10760. if (typeof Symbol < "u" && r2[Symbol.iterator] != null || r2["@@iterator"] != null) return Array.from(r2);
  10761. }
  10762. var init_iterableToArray = __esm({
  10763. "../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js"() {
  10764. }
  10765. });
  10766. // ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
  10767. function _unsupportedIterableToArray(r2, a3) {
  10768. if (r2) {
  10769. if (typeof r2 == "string") return _arrayLikeToArray(r2, a3);
  10770. var t = {}.toString.call(r2).slice(8, -1);
  10771. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r2, a3) : void 0;
  10772. }
  10773. }
  10774. var init_unsupportedIterableToArray = __esm({
  10775. "../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"() {
  10776. init_arrayLikeToArray();
  10777. }
  10778. });
  10779. // ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
  10780. function _nonIterableSpread() {
  10781. throw new TypeError(`Invalid attempt to spread non-iterable instance.
  10782. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  10783. }
  10784. var init_nonIterableSpread = __esm({
  10785. "../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js"() {
  10786. }
  10787. });
  10788. // ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
  10789. function _toConsumableArray(r2) {
  10790. return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
  10791. }
  10792. var init_toConsumableArray = __esm({
  10793. "../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"() {
  10794. init_arrayWithoutHoles();
  10795. init_iterableToArray();
  10796. init_unsupportedIterableToArray();
  10797. init_nonIterableSpread();
  10798. }
  10799. });
  10800. // ../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js
  10801. var checkForListedLanguage_default, init_checkForListedLanguage = __esm({
  10802. "../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js"() {
  10803. checkForListedLanguage_default = (function(astGenerator, language) {
  10804. var langs = astGenerator.listLanguages();
  10805. return langs.indexOf(language) !== -1;
  10806. });
  10807. }
  10808. });
  10809. // ../../node_modules/react-syntax-highlighter/dist/esm/highlight.js
  10810. function ownKeys2(e, r2) {
  10811. var t = Object.keys(e);
  10812. if (Object.getOwnPropertySymbols) {
  10813. var o = Object.getOwnPropertySymbols(e);
  10814. r2 && (o = o.filter(function(r3) {
  10815. return Object.getOwnPropertyDescriptor(e, r3).enumerable;
  10816. })), t.push.apply(t, o);
  10817. }
  10818. return t;
  10819. }
  10820. function _objectSpread2(e) {
  10821. for (var r2 = 1; r2 < arguments.length; r2++) {
  10822. var t = arguments[r2] != null ? arguments[r2] : {};
  10823. r2 % 2 ? ownKeys2(Object(t), !0).forEach(function(r3) {
  10824. _defineProperty(e, r3, t[r3]);
  10825. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r3) {
  10826. Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
  10827. });
  10828. }
  10829. return e;
  10830. }
  10831. function getNewLines(str2) {
  10832. return str2.match(newLineRegex);
  10833. }
  10834. function getAllLineNumbers(_ref) {
  10835. var lines = _ref.lines, startingLineNumber = _ref.startingLineNumber, style = _ref.style;
  10836. return lines.map(function(_, i) {
  10837. var number = i + startingLineNumber;
  10838. return import_react9.default.createElement("span", {
  10839. key: "line-".concat(i),
  10840. className: "react-syntax-highlighter-line-number",
  10841. style: typeof style == "function" ? style(number) : style
  10842. }, "".concat(number, `
  10843. `));
  10844. });
  10845. }
  10846. function AllLineNumbers(_ref2) {
  10847. var codeString = _ref2.codeString, codeStyle = _ref2.codeStyle, _ref2$containerStyle = _ref2.containerStyle, containerStyle = _ref2$containerStyle === void 0 ? {
  10848. float: "left",
  10849. paddingRight: "10px"
  10850. } : _ref2$containerStyle, _ref2$numberStyle = _ref2.numberStyle, numberStyle = _ref2$numberStyle === void 0 ? {} : _ref2$numberStyle, startingLineNumber = _ref2.startingLineNumber;
  10851. return import_react9.default.createElement("code", {
  10852. style: Object.assign({}, codeStyle, containerStyle)
  10853. }, getAllLineNumbers({
  10854. lines: codeString.replace(/\n$/, "").split(`
  10855. `),
  10856. style: numberStyle,
  10857. startingLineNumber
  10858. }));
  10859. }
  10860. function getEmWidthOfNumber(num) {
  10861. return "".concat(num.toString().length, ".25em");
  10862. }
  10863. function getInlineLineNumber(lineNumber, inlineLineNumberStyle) {
  10864. return {
  10865. type: "element",
  10866. tagName: "span",
  10867. properties: {
  10868. key: "line-number--".concat(lineNumber),
  10869. className: ["comment", "linenumber", "react-syntax-highlighter-line-number"],
  10870. style: inlineLineNumberStyle
  10871. },
  10872. children: [{
  10873. type: "text",
  10874. value: lineNumber
  10875. }]
  10876. };
  10877. }
  10878. function assembleLineNumberStyles(lineNumberStyle, lineNumber, largestLineNumber) {
  10879. var defaultLineNumberStyle = {
  10880. display: "inline-block",
  10881. minWidth: getEmWidthOfNumber(largestLineNumber),
  10882. paddingRight: "1em",
  10883. textAlign: "right",
  10884. userSelect: "none"
  10885. }, customLineNumberStyle = typeof lineNumberStyle == "function" ? lineNumberStyle(lineNumber) : lineNumberStyle, assembledStyle = _objectSpread2(_objectSpread2({}, defaultLineNumberStyle), customLineNumberStyle);
  10886. return assembledStyle;
  10887. }
  10888. function createLineElement(_ref3) {
  10889. var children = _ref3.children, lineNumber = _ref3.lineNumber, lineNumberStyle = _ref3.lineNumberStyle, largestLineNumber = _ref3.largestLineNumber, showInlineLineNumbers = _ref3.showInlineLineNumbers, _ref3$lineProps = _ref3.lineProps, lineProps = _ref3$lineProps === void 0 ? {} : _ref3$lineProps, _ref3$className = _ref3.className, className = _ref3$className === void 0 ? [] : _ref3$className, showLineNumbers = _ref3.showLineNumbers, wrapLongLines = _ref3.wrapLongLines, _ref3$wrapLines = _ref3.wrapLines, wrapLines = _ref3$wrapLines === void 0 ? !1 : _ref3$wrapLines, properties = wrapLines ? _objectSpread2({}, typeof lineProps == "function" ? lineProps(lineNumber) : lineProps) : {};
  10890. if (properties.className = properties.className ? [].concat(_toConsumableArray(properties.className.trim().split(/\s+/)), _toConsumableArray(className)) : className, lineNumber && showInlineLineNumbers) {
  10891. var inlineLineNumberStyle = assembleLineNumberStyles(lineNumberStyle, lineNumber, largestLineNumber);
  10892. children.unshift(getInlineLineNumber(lineNumber, inlineLineNumberStyle));
  10893. }
  10894. return wrapLongLines & showLineNumbers && (properties.style = _objectSpread2({
  10895. display: "flex"
  10896. }, properties.style)), {
  10897. type: "element",
  10898. tagName: "span",
  10899. properties,
  10900. children
  10901. };
  10902. }
  10903. function flattenCodeTree(tree) {
  10904. for (var className = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], newTree = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], i = 0; i < tree.length; i++) {
  10905. var node2 = tree[i];
  10906. if (node2.type === "text")
  10907. newTree.push(createLineElement({
  10908. children: [node2],
  10909. className: _toConsumableArray(new Set(className))
  10910. }));
  10911. else if (node2.children) {
  10912. var classNames = className.concat(node2.properties.className);
  10913. flattenCodeTree(node2.children, classNames).forEach(function(i2) {
  10914. return newTree.push(i2);
  10915. });
  10916. }
  10917. }
  10918. return newTree;
  10919. }
  10920. function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines) {
  10921. var _ref4, tree = flattenCodeTree(codeTree.value), newTree = [], lastLineBreakIndex = -1, index4 = 0;
  10922. function createWrappedLine(children2, lineNumber2) {
  10923. var className = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
  10924. return createLineElement({
  10925. children: children2,
  10926. lineNumber: lineNumber2,
  10927. lineNumberStyle,
  10928. largestLineNumber,
  10929. showInlineLineNumbers,
  10930. lineProps,
  10931. className,
  10932. showLineNumbers,
  10933. wrapLongLines,
  10934. wrapLines
  10935. });
  10936. }
  10937. function createUnwrappedLine(children2, lineNumber2) {
  10938. if (showLineNumbers && lineNumber2 && showInlineLineNumbers) {
  10939. var inlineLineNumberStyle = assembleLineNumberStyles(lineNumberStyle, lineNumber2, largestLineNumber);
  10940. children2.unshift(getInlineLineNumber(lineNumber2, inlineLineNumberStyle));
  10941. }
  10942. return children2;
  10943. }
  10944. function createLine(children2, lineNumber2) {
  10945. var className = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
  10946. return wrapLines || className.length > 0 ? createWrappedLine(children2, lineNumber2, className) : createUnwrappedLine(children2, lineNumber2);
  10947. }
  10948. for (var _loop = function() {
  10949. var node2 = tree[index4], value = node2.children[0].value, newLines = getNewLines(value);
  10950. if (newLines) {
  10951. var splitValue = value.split(`
  10952. `);
  10953. splitValue.forEach(function(text, i) {
  10954. var lineNumber2 = showLineNumbers && newTree.length + startingLineNumber, newChild = {
  10955. type: "text",
  10956. value: "".concat(text, `
  10957. `)
  10958. };
  10959. if (i === 0) {
  10960. var _children = tree.slice(lastLineBreakIndex + 1, index4).concat(createLineElement({
  10961. children: [newChild],
  10962. className: node2.properties.className
  10963. })), _line = createLine(_children, lineNumber2);
  10964. newTree.push(_line);
  10965. } else if (i === splitValue.length - 1) {
  10966. var stringChild = tree[index4 + 1] && tree[index4 + 1].children && tree[index4 + 1].children[0], lastLineInPreviousSpan = {
  10967. type: "text",
  10968. value: "".concat(text)
  10969. };
  10970. if (stringChild) {
  10971. var newElem = createLineElement({
  10972. children: [lastLineInPreviousSpan],
  10973. className: node2.properties.className
  10974. });
  10975. tree.splice(index4 + 1, 0, newElem);
  10976. } else {
  10977. var _children2 = [lastLineInPreviousSpan], _line2 = createLine(_children2, lineNumber2, node2.properties.className);
  10978. newTree.push(_line2);
  10979. }
  10980. } else {
  10981. var _children3 = [newChild], _line3 = createLine(_children3, lineNumber2, node2.properties.className);
  10982. newTree.push(_line3);
  10983. }
  10984. }), lastLineBreakIndex = index4;
  10985. }
  10986. index4++;
  10987. }; index4 < tree.length; )
  10988. _loop();
  10989. if (lastLineBreakIndex !== tree.length - 1) {
  10990. var children = tree.slice(lastLineBreakIndex + 1, tree.length);
  10991. if (children && children.length) {
  10992. var lineNumber = showLineNumbers && newTree.length + startingLineNumber, line2 = createLine(children, lineNumber);
  10993. newTree.push(line2);
  10994. }
  10995. }
  10996. return wrapLines ? newTree : (_ref4 = []).concat.apply(_ref4, newTree);
  10997. }
  10998. function defaultRenderer(_ref5) {
  10999. var rows = _ref5.rows, stylesheet = _ref5.stylesheet, useInlineStyles = _ref5.useInlineStyles;
  11000. return rows.map(function(node2, i) {
  11001. return createElement4({
  11002. node: node2,
  11003. stylesheet,
  11004. useInlineStyles,
  11005. key: "code-segment-".concat(i)
  11006. });
  11007. });
  11008. }
  11009. function isHighlightJs(astGenerator) {
  11010. return astGenerator && typeof astGenerator.highlightAuto < "u";
  11011. }
  11012. function getCodeTree(_ref6) {
  11013. var astGenerator = _ref6.astGenerator, language = _ref6.language, code = _ref6.code, defaultCodeValue = _ref6.defaultCodeValue;
  11014. if (isHighlightJs(astGenerator)) {
  11015. var hasLanguage = checkForListedLanguage_default(astGenerator, language);
  11016. return language === "text" ? {
  11017. value: defaultCodeValue,
  11018. language: "text"
  11019. } : hasLanguage ? astGenerator.highlight(language, code) : astGenerator.highlightAuto(code);
  11020. }
  11021. try {
  11022. return language && language !== "text" ? {
  11023. value: astGenerator.highlight(code, language)
  11024. } : {
  11025. value: defaultCodeValue
  11026. };
  11027. } catch {
  11028. return {
  11029. value: defaultCodeValue
  11030. };
  11031. }
  11032. }
  11033. function highlight_default(defaultAstGenerator, defaultStyle) {
  11034. return function(_ref7) {
  11035. var _code$match$length, _code$match, language = _ref7.language, children = _ref7.children, _ref7$style = _ref7.style, style = _ref7$style === void 0 ? defaultStyle : _ref7$style, _ref7$customStyle = _ref7.customStyle, customStyle = _ref7$customStyle === void 0 ? {} : _ref7$customStyle, _ref7$codeTagProps = _ref7.codeTagProps, codeTagProps = _ref7$codeTagProps === void 0 ? {
  11036. className: language ? "language-".concat(language) : void 0,
  11037. style: _objectSpread2(_objectSpread2({}, style['code[class*="language-"]']), style['code[class*="language-'.concat(language, '"]')])
  11038. } : _ref7$codeTagProps, _ref7$useInlineStyles = _ref7.useInlineStyles, useInlineStyles = _ref7$useInlineStyles === void 0 ? !0 : _ref7$useInlineStyles, _ref7$showLineNumbers = _ref7.showLineNumbers, showLineNumbers = _ref7$showLineNumbers === void 0 ? !1 : _ref7$showLineNumbers, _ref7$showInlineLineN = _ref7.showInlineLineNumbers, showInlineLineNumbers = _ref7$showInlineLineN === void 0 ? !0 : _ref7$showInlineLineN, _ref7$startingLineNum = _ref7.startingLineNumber, startingLineNumber = _ref7$startingLineNum === void 0 ? 1 : _ref7$startingLineNum, lineNumberContainerStyle = _ref7.lineNumberContainerStyle, _ref7$lineNumberStyle = _ref7.lineNumberStyle, lineNumberStyle = _ref7$lineNumberStyle === void 0 ? {} : _ref7$lineNumberStyle, wrapLines = _ref7.wrapLines, _ref7$wrapLongLines = _ref7.wrapLongLines, wrapLongLines = _ref7$wrapLongLines === void 0 ? !1 : _ref7$wrapLongLines, _ref7$lineProps = _ref7.lineProps, lineProps = _ref7$lineProps === void 0 ? {} : _ref7$lineProps, renderer = _ref7.renderer, _ref7$PreTag = _ref7.PreTag, PreTag = _ref7$PreTag === void 0 ? "pre" : _ref7$PreTag, _ref7$CodeTag = _ref7.CodeTag, CodeTag = _ref7$CodeTag === void 0 ? "code" : _ref7$CodeTag, _ref7$code = _ref7.code, code = _ref7$code === void 0 ? (Array.isArray(children) ? children[0] : children) || "" : _ref7$code, astGenerator = _ref7.astGenerator, rest = _objectWithoutProperties(_ref7, _excluded);
  11039. astGenerator = astGenerator || defaultAstGenerator;
  11040. var allLineNumbers = showLineNumbers ? import_react9.default.createElement(AllLineNumbers, {
  11041. containerStyle: lineNumberContainerStyle,
  11042. codeStyle: codeTagProps.style || {},
  11043. numberStyle: lineNumberStyle,
  11044. startingLineNumber,
  11045. codeString: code
  11046. }) : null, defaultPreStyle = style.hljs || style['pre[class*="language-"]'] || {
  11047. backgroundColor: "#fff"
  11048. }, generatorClassName = isHighlightJs(astGenerator) ? "hljs" : "prismjs", preProps = useInlineStyles ? Object.assign({}, rest, {
  11049. style: Object.assign({}, defaultPreStyle, customStyle)
  11050. }) : Object.assign({}, rest, {
  11051. className: rest.className ? "".concat(generatorClassName, " ").concat(rest.className) : generatorClassName,
  11052. style: Object.assign({}, customStyle)
  11053. });
  11054. if (wrapLongLines ? codeTagProps.style = _objectSpread2({
  11055. whiteSpace: "pre-wrap"
  11056. }, codeTagProps.style) : codeTagProps.style = _objectSpread2({
  11057. whiteSpace: "pre"
  11058. }, codeTagProps.style), !astGenerator)
  11059. return import_react9.default.createElement(PreTag, preProps, allLineNumbers, import_react9.default.createElement(CodeTag, codeTagProps, code));
  11060. (wrapLines === void 0 && renderer || wrapLongLines) && (wrapLines = !0), renderer = renderer || defaultRenderer;
  11061. var defaultCodeValue = [{
  11062. type: "text",
  11063. value: code
  11064. }], codeTree = getCodeTree({
  11065. astGenerator,
  11066. language,
  11067. code,
  11068. defaultCodeValue
  11069. });
  11070. codeTree.language === null && (codeTree.value = defaultCodeValue);
  11071. var lineBreakCount = (_code$match$length = (_code$match = code.match(/\n/g)) === null || _code$match === void 0 ? void 0 : _code$match.length) !== null && _code$match$length !== void 0 ? _code$match$length : 0, largestLineNumber = startingLineNumber + lineBreakCount, rows = processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines);
  11072. return import_react9.default.createElement(PreTag, preProps, import_react9.default.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
  11073. rows,
  11074. stylesheet: style,
  11075. useInlineStyles
  11076. })));
  11077. };
  11078. }
  11079. var import_react9, _excluded, newLineRegex, init_highlight = __esm({
  11080. "../../node_modules/react-syntax-highlighter/dist/esm/highlight.js"() {
  11081. init_objectWithoutProperties();
  11082. init_toConsumableArray();
  11083. init_defineProperty();
  11084. import_react9 = __toESM(require_react());
  11085. init_create_element();
  11086. init_checkForListedLanguage();
  11087. _excluded = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"];
  11088. newLineRegex = /\n/g;
  11089. }
  11090. });
  11091. // ../../node_modules/xtend/immutable.js
  11092. var require_immutable = __commonJS({
  11093. "../../node_modules/xtend/immutable.js"(exports, module2) {
  11094. module2.exports = extend;
  11095. var hasOwnProperty6 = Object.prototype.hasOwnProperty;
  11096. function extend() {
  11097. for (var target = {}, i = 0; i < arguments.length; i++) {
  11098. var source = arguments[i];
  11099. for (var key in source)
  11100. hasOwnProperty6.call(source, key) && (target[key] = source[key]);
  11101. }
  11102. return target;
  11103. }
  11104. }
  11105. });
  11106. // ../../node_modules/hastscript/node_modules/property-information/lib/util/schema.js
  11107. var require_schema = __commonJS({
  11108. "../../node_modules/hastscript/node_modules/property-information/lib/util/schema.js"(exports, module2) {
  11109. "use strict";
  11110. module2.exports = Schema;
  11111. var proto = Schema.prototype;
  11112. proto.space = null;
  11113. proto.normal = {};
  11114. proto.property = {};
  11115. function Schema(property, normal, space) {
  11116. this.property = property, this.normal = normal, space && (this.space = space);
  11117. }
  11118. }
  11119. });
  11120. // ../../node_modules/hastscript/node_modules/property-information/lib/util/merge.js
  11121. var require_merge = __commonJS({
  11122. "../../node_modules/hastscript/node_modules/property-information/lib/util/merge.js"(exports, module2) {
  11123. "use strict";
  11124. var xtend = require_immutable(), Schema = require_schema();
  11125. module2.exports = merge3;
  11126. function merge3(definitions) {
  11127. for (var length2 = definitions.length, property = [], normal = [], index4 = -1, info, space; ++index4 < length2; )
  11128. info = definitions[index4], property.push(info.property), normal.push(info.normal), space = info.space;
  11129. return new Schema(
  11130. xtend.apply(null, property),
  11131. xtend.apply(null, normal),
  11132. space
  11133. );
  11134. }
  11135. }
  11136. });
  11137. // ../../node_modules/hastscript/node_modules/property-information/normalize.js
  11138. var require_normalize = __commonJS({
  11139. "../../node_modules/hastscript/node_modules/property-information/normalize.js"(exports, module2) {
  11140. "use strict";
  11141. module2.exports = normalize4;
  11142. function normalize4(value) {
  11143. return value.toLowerCase();
  11144. }
  11145. }
  11146. });
  11147. // ../../node_modules/hastscript/node_modules/property-information/lib/util/info.js
  11148. var require_info = __commonJS({
  11149. "../../node_modules/hastscript/node_modules/property-information/lib/util/info.js"(exports, module2) {
  11150. "use strict";
  11151. module2.exports = Info;
  11152. var proto = Info.prototype;
  11153. proto.space = null;
  11154. proto.attribute = null;
  11155. proto.property = null;
  11156. proto.boolean = !1;
  11157. proto.booleanish = !1;
  11158. proto.overloadedBoolean = !1;
  11159. proto.number = !1;
  11160. proto.commaSeparated = !1;
  11161. proto.spaceSeparated = !1;
  11162. proto.commaOrSpaceSeparated = !1;
  11163. proto.mustUseProperty = !1;
  11164. proto.defined = !1;
  11165. function Info(property, attribute) {
  11166. this.property = property, this.attribute = attribute;
  11167. }
  11168. }
  11169. });
  11170. // ../../node_modules/hastscript/node_modules/property-information/lib/util/types.js
  11171. var require_types = __commonJS({
  11172. "../../node_modules/hastscript/node_modules/property-information/lib/util/types.js"(exports) {
  11173. "use strict";
  11174. var powers = 0;
  11175. exports.boolean = increment();
  11176. exports.booleanish = increment();
  11177. exports.overloadedBoolean = increment();
  11178. exports.number = increment();
  11179. exports.spaceSeparated = increment();
  11180. exports.commaSeparated = increment();
  11181. exports.commaOrSpaceSeparated = increment();
  11182. function increment() {
  11183. return Math.pow(2, ++powers);
  11184. }
  11185. }
  11186. });
  11187. // ../../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js
  11188. var require_defined_info = __commonJS({
  11189. "../../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js"(exports, module2) {
  11190. "use strict";
  11191. var Info = require_info(), types = require_types();
  11192. module2.exports = DefinedInfo;
  11193. DefinedInfo.prototype = new Info();
  11194. DefinedInfo.prototype.defined = !0;
  11195. var checks = [
  11196. "boolean",
  11197. "booleanish",
  11198. "overloadedBoolean",
  11199. "number",
  11200. "commaSeparated",
  11201. "spaceSeparated",
  11202. "commaOrSpaceSeparated"
  11203. ], checksLength = checks.length;
  11204. function DefinedInfo(property, attribute, mask, space) {
  11205. var index4 = -1, check;
  11206. for (mark(this, "space", space), Info.call(this, property, attribute); ++index4 < checksLength; )
  11207. check = checks[index4], mark(this, check, (mask & types[check]) === types[check]);
  11208. }
  11209. function mark(values, key, value) {
  11210. value && (values[key] = value);
  11211. }
  11212. }
  11213. });
  11214. // ../../node_modules/hastscript/node_modules/property-information/lib/util/create.js
  11215. var require_create = __commonJS({
  11216. "../../node_modules/hastscript/node_modules/property-information/lib/util/create.js"(exports, module2) {
  11217. "use strict";
  11218. var normalize4 = require_normalize(), Schema = require_schema(), DefinedInfo = require_defined_info();
  11219. module2.exports = create4;
  11220. function create4(definition) {
  11221. var space = definition.space, mustUseProperty = definition.mustUseProperty || [], attributes = definition.attributes || {}, props = definition.properties, transform = definition.transform, property = {}, normal = {}, prop, info;
  11222. for (prop in props)
  11223. info = new DefinedInfo(
  11224. prop,
  11225. transform(attributes, prop),
  11226. props[prop],
  11227. space
  11228. ), mustUseProperty.indexOf(prop) !== -1 && (info.mustUseProperty = !0), property[prop] = info, normal[normalize4(prop)] = prop, normal[normalize4(info.attribute)] = prop;
  11229. return new Schema(property, normal, space);
  11230. }
  11231. }
  11232. });
  11233. // ../../node_modules/hastscript/node_modules/property-information/lib/xlink.js
  11234. var require_xlink = __commonJS({
  11235. "../../node_modules/hastscript/node_modules/property-information/lib/xlink.js"(exports, module2) {
  11236. "use strict";
  11237. var create4 = require_create();
  11238. module2.exports = create4({
  11239. space: "xlink",
  11240. transform: xlinkTransform,
  11241. properties: {
  11242. xLinkActuate: null,
  11243. xLinkArcRole: null,
  11244. xLinkHref: null,
  11245. xLinkRole: null,
  11246. xLinkShow: null,
  11247. xLinkTitle: null,
  11248. xLinkType: null
  11249. }
  11250. });
  11251. function xlinkTransform(_, prop) {
  11252. return "xlink:" + prop.slice(5).toLowerCase();
  11253. }
  11254. }
  11255. });
  11256. // ../../node_modules/hastscript/node_modules/property-information/lib/xml.js
  11257. var require_xml = __commonJS({
  11258. "../../node_modules/hastscript/node_modules/property-information/lib/xml.js"(exports, module2) {
  11259. "use strict";
  11260. var create4 = require_create();
  11261. module2.exports = create4({
  11262. space: "xml",
  11263. transform: xmlTransform,
  11264. properties: {
  11265. xmlLang: null,
  11266. xmlBase: null,
  11267. xmlSpace: null
  11268. }
  11269. });
  11270. function xmlTransform(_, prop) {
  11271. return "xml:" + prop.slice(3).toLowerCase();
  11272. }
  11273. }
  11274. });
  11275. // ../../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js
  11276. var require_case_sensitive_transform = __commonJS({
  11277. "../../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js"(exports, module2) {
  11278. "use strict";
  11279. module2.exports = caseSensitiveTransform;
  11280. function caseSensitiveTransform(attributes, attribute) {
  11281. return attribute in attributes ? attributes[attribute] : attribute;
  11282. }
  11283. }
  11284. });
  11285. // ../../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js
  11286. var require_case_insensitive_transform = __commonJS({
  11287. "../../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js"(exports, module2) {
  11288. "use strict";
  11289. var caseSensitiveTransform = require_case_sensitive_transform();
  11290. module2.exports = caseInsensitiveTransform;
  11291. function caseInsensitiveTransform(attributes, property) {
  11292. return caseSensitiveTransform(attributes, property.toLowerCase());
  11293. }
  11294. }
  11295. });
  11296. // ../../node_modules/hastscript/node_modules/property-information/lib/xmlns.js
  11297. var require_xmlns = __commonJS({
  11298. "../../node_modules/hastscript/node_modules/property-information/lib/xmlns.js"(exports, module2) {
  11299. "use strict";
  11300. var create4 = require_create(), caseInsensitiveTransform = require_case_insensitive_transform();
  11301. module2.exports = create4({
  11302. space: "xmlns",
  11303. attributes: {
  11304. xmlnsxlink: "xmlns:xlink"
  11305. },
  11306. transform: caseInsensitiveTransform,
  11307. properties: {
  11308. xmlns: null,
  11309. xmlnsXLink: null
  11310. }
  11311. });
  11312. }
  11313. });
  11314. // ../../node_modules/hastscript/node_modules/property-information/lib/aria.js
  11315. var require_aria = __commonJS({
  11316. "../../node_modules/hastscript/node_modules/property-information/lib/aria.js"(exports, module2) {
  11317. "use strict";
  11318. var types = require_types(), create4 = require_create(), booleanish = types.booleanish, number = types.number, spaceSeparated = types.spaceSeparated;
  11319. module2.exports = create4({
  11320. transform: ariaTransform,
  11321. properties: {
  11322. ariaActiveDescendant: null,
  11323. ariaAtomic: booleanish,
  11324. ariaAutoComplete: null,
  11325. ariaBusy: booleanish,
  11326. ariaChecked: booleanish,
  11327. ariaColCount: number,
  11328. ariaColIndex: number,
  11329. ariaColSpan: number,
  11330. ariaControls: spaceSeparated,
  11331. ariaCurrent: null,
  11332. ariaDescribedBy: spaceSeparated,
  11333. ariaDetails: null,
  11334. ariaDisabled: booleanish,
  11335. ariaDropEffect: spaceSeparated,
  11336. ariaErrorMessage: null,
  11337. ariaExpanded: booleanish,
  11338. ariaFlowTo: spaceSeparated,
  11339. ariaGrabbed: booleanish,
  11340. ariaHasPopup: null,
  11341. ariaHidden: booleanish,
  11342. ariaInvalid: null,
  11343. ariaKeyShortcuts: null,
  11344. ariaLabel: null,
  11345. ariaLabelledBy: spaceSeparated,
  11346. ariaLevel: number,
  11347. ariaLive: null,
  11348. ariaModal: booleanish,
  11349. ariaMultiLine: booleanish,
  11350. ariaMultiSelectable: booleanish,
  11351. ariaOrientation: null,
  11352. ariaOwns: spaceSeparated,
  11353. ariaPlaceholder: null,
  11354. ariaPosInSet: number,
  11355. ariaPressed: booleanish,
  11356. ariaReadOnly: booleanish,
  11357. ariaRelevant: null,
  11358. ariaRequired: booleanish,
  11359. ariaRoleDescription: spaceSeparated,
  11360. ariaRowCount: number,
  11361. ariaRowIndex: number,
  11362. ariaRowSpan: number,
  11363. ariaSelected: booleanish,
  11364. ariaSetSize: number,
  11365. ariaSort: null,
  11366. ariaValueMax: number,
  11367. ariaValueMin: number,
  11368. ariaValueNow: number,
  11369. ariaValueText: null,
  11370. role: null
  11371. }
  11372. });
  11373. function ariaTransform(_, prop) {
  11374. return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase();
  11375. }
  11376. }
  11377. });
  11378. // ../../node_modules/hastscript/node_modules/property-information/lib/html.js
  11379. var require_html = __commonJS({
  11380. "../../node_modules/hastscript/node_modules/property-information/lib/html.js"(exports, module2) {
  11381. "use strict";
  11382. var types = require_types(), create4 = require_create(), caseInsensitiveTransform = require_case_insensitive_transform(), boolean = types.boolean, overloadedBoolean = types.overloadedBoolean, booleanish = types.booleanish, number = types.number, spaceSeparated = types.spaceSeparated, commaSeparated = types.commaSeparated;
  11383. module2.exports = create4({
  11384. space: "html",
  11385. attributes: {
  11386. acceptcharset: "accept-charset",
  11387. classname: "class",
  11388. htmlfor: "for",
  11389. httpequiv: "http-equiv"
  11390. },
  11391. transform: caseInsensitiveTransform,
  11392. mustUseProperty: ["checked", "multiple", "muted", "selected"],
  11393. properties: {
  11394. // Standard Properties.
  11395. abbr: null,
  11396. accept: commaSeparated,
  11397. acceptCharset: spaceSeparated,
  11398. accessKey: spaceSeparated,
  11399. action: null,
  11400. allow: null,
  11401. allowFullScreen: boolean,
  11402. allowPaymentRequest: boolean,
  11403. allowUserMedia: boolean,
  11404. alt: null,
  11405. as: null,
  11406. async: boolean,
  11407. autoCapitalize: null,
  11408. autoComplete: spaceSeparated,
  11409. autoFocus: boolean,
  11410. autoPlay: boolean,
  11411. capture: boolean,
  11412. charSet: null,
  11413. checked: boolean,
  11414. cite: null,
  11415. className: spaceSeparated,
  11416. cols: number,
  11417. colSpan: null,
  11418. content: null,
  11419. contentEditable: booleanish,
  11420. controls: boolean,
  11421. controlsList: spaceSeparated,
  11422. coords: number | commaSeparated,
  11423. crossOrigin: null,
  11424. data: null,
  11425. dateTime: null,
  11426. decoding: null,
  11427. default: boolean,
  11428. defer: boolean,
  11429. dir: null,
  11430. dirName: null,
  11431. disabled: boolean,
  11432. download: overloadedBoolean,
  11433. draggable: booleanish,
  11434. encType: null,
  11435. enterKeyHint: null,
  11436. form: null,
  11437. formAction: null,
  11438. formEncType: null,
  11439. formMethod: null,
  11440. formNoValidate: boolean,
  11441. formTarget: null,
  11442. headers: spaceSeparated,
  11443. height: number,
  11444. hidden: boolean,
  11445. high: number,
  11446. href: null,
  11447. hrefLang: null,
  11448. htmlFor: spaceSeparated,
  11449. httpEquiv: spaceSeparated,
  11450. id: null,
  11451. imageSizes: null,
  11452. imageSrcSet: commaSeparated,
  11453. inputMode: null,
  11454. integrity: null,
  11455. is: null,
  11456. isMap: boolean,
  11457. itemId: null,
  11458. itemProp: spaceSeparated,
  11459. itemRef: spaceSeparated,
  11460. itemScope: boolean,
  11461. itemType: spaceSeparated,
  11462. kind: null,
  11463. label: null,
  11464. lang: null,
  11465. language: null,
  11466. list: null,
  11467. loading: null,
  11468. loop: boolean,
  11469. low: number,
  11470. manifest: null,
  11471. max: null,
  11472. maxLength: number,
  11473. media: null,
  11474. method: null,
  11475. min: null,
  11476. minLength: number,
  11477. multiple: boolean,
  11478. muted: boolean,
  11479. name: null,
  11480. nonce: null,
  11481. noModule: boolean,
  11482. noValidate: boolean,
  11483. onAbort: null,
  11484. onAfterPrint: null,
  11485. onAuxClick: null,
  11486. onBeforePrint: null,
  11487. onBeforeUnload: null,
  11488. onBlur: null,
  11489. onCancel: null,
  11490. onCanPlay: null,
  11491. onCanPlayThrough: null,
  11492. onChange: null,
  11493. onClick: null,
  11494. onClose: null,
  11495. onContextMenu: null,
  11496. onCopy: null,
  11497. onCueChange: null,
  11498. onCut: null,
  11499. onDblClick: null,
  11500. onDrag: null,
  11501. onDragEnd: null,
  11502. onDragEnter: null,
  11503. onDragExit: null,
  11504. onDragLeave: null,
  11505. onDragOver: null,
  11506. onDragStart: null,
  11507. onDrop: null,
  11508. onDurationChange: null,
  11509. onEmptied: null,
  11510. onEnded: null,
  11511. onError: null,
  11512. onFocus: null,
  11513. onFormData: null,
  11514. onHashChange: null,
  11515. onInput: null,
  11516. onInvalid: null,
  11517. onKeyDown: null,
  11518. onKeyPress: null,
  11519. onKeyUp: null,
  11520. onLanguageChange: null,
  11521. onLoad: null,
  11522. onLoadedData: null,
  11523. onLoadedMetadata: null,
  11524. onLoadEnd: null,
  11525. onLoadStart: null,
  11526. onMessage: null,
  11527. onMessageError: null,
  11528. onMouseDown: null,
  11529. onMouseEnter: null,
  11530. onMouseLeave: null,
  11531. onMouseMove: null,
  11532. onMouseOut: null,
  11533. onMouseOver: null,
  11534. onMouseUp: null,
  11535. onOffline: null,
  11536. onOnline: null,
  11537. onPageHide: null,
  11538. onPageShow: null,
  11539. onPaste: null,
  11540. onPause: null,
  11541. onPlay: null,
  11542. onPlaying: null,
  11543. onPopState: null,
  11544. onProgress: null,
  11545. onRateChange: null,
  11546. onRejectionHandled: null,
  11547. onReset: null,
  11548. onResize: null,
  11549. onScroll: null,
  11550. onSecurityPolicyViolation: null,
  11551. onSeeked: null,
  11552. onSeeking: null,
  11553. onSelect: null,
  11554. onSlotChange: null,
  11555. onStalled: null,
  11556. onStorage: null,
  11557. onSubmit: null,
  11558. onSuspend: null,
  11559. onTimeUpdate: null,
  11560. onToggle: null,
  11561. onUnhandledRejection: null,
  11562. onUnload: null,
  11563. onVolumeChange: null,
  11564. onWaiting: null,
  11565. onWheel: null,
  11566. open: boolean,
  11567. optimum: number,
  11568. pattern: null,
  11569. ping: spaceSeparated,
  11570. placeholder: null,
  11571. playsInline: boolean,
  11572. poster: null,
  11573. preload: null,
  11574. readOnly: boolean,
  11575. referrerPolicy: null,
  11576. rel: spaceSeparated,
  11577. required: boolean,
  11578. reversed: boolean,
  11579. rows: number,
  11580. rowSpan: number,
  11581. sandbox: spaceSeparated,
  11582. scope: null,
  11583. scoped: boolean,
  11584. seamless: boolean,
  11585. selected: boolean,
  11586. shape: null,
  11587. size: number,
  11588. sizes: null,
  11589. slot: null,
  11590. span: number,
  11591. spellCheck: booleanish,
  11592. src: null,
  11593. srcDoc: null,
  11594. srcLang: null,
  11595. srcSet: commaSeparated,
  11596. start: number,
  11597. step: null,
  11598. style: null,
  11599. tabIndex: number,
  11600. target: null,
  11601. title: null,
  11602. translate: null,
  11603. type: null,
  11604. typeMustMatch: boolean,
  11605. useMap: null,
  11606. value: booleanish,
  11607. width: number,
  11608. wrap: null,
  11609. // Legacy.
  11610. // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
  11611. align: null,
  11612. // Several. Use CSS `text-align` instead,
  11613. aLink: null,
  11614. // `<body>`. Use CSS `a:active {color}` instead
  11615. archive: spaceSeparated,
  11616. // `<object>`. List of URIs to archives
  11617. axis: null,
  11618. // `<td>` and `<th>`. Use `scope` on `<th>`
  11619. background: null,
  11620. // `<body>`. Use CSS `background-image` instead
  11621. bgColor: null,
  11622. // `<body>` and table elements. Use CSS `background-color` instead
  11623. border: number,
  11624. // `<table>`. Use CSS `border-width` instead,
  11625. borderColor: null,
  11626. // `<table>`. Use CSS `border-color` instead,
  11627. bottomMargin: number,
  11628. // `<body>`
  11629. cellPadding: null,
  11630. // `<table>`
  11631. cellSpacing: null,
  11632. // `<table>`
  11633. char: null,
  11634. // Several table elements. When `align=char`, sets the character to align on
  11635. charOff: null,
  11636. // Several table elements. When `char`, offsets the alignment
  11637. classId: null,
  11638. // `<object>`
  11639. clear: null,
  11640. // `<br>`. Use CSS `clear` instead
  11641. code: null,
  11642. // `<object>`
  11643. codeBase: null,
  11644. // `<object>`
  11645. codeType: null,
  11646. // `<object>`
  11647. color: null,
  11648. // `<font>` and `<hr>`. Use CSS instead
  11649. compact: boolean,
  11650. // Lists. Use CSS to reduce space between items instead
  11651. declare: boolean,
  11652. // `<object>`
  11653. event: null,
  11654. // `<script>`
  11655. face: null,
  11656. // `<font>`. Use CSS instead
  11657. frame: null,
  11658. // `<table>`
  11659. frameBorder: null,
  11660. // `<iframe>`. Use CSS `border` instead
  11661. hSpace: number,
  11662. // `<img>` and `<object>`
  11663. leftMargin: number,
  11664. // `<body>`
  11665. link: null,
  11666. // `<body>`. Use CSS `a:link {color: *}` instead
  11667. longDesc: null,
  11668. // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
  11669. lowSrc: null,
  11670. // `<img>`. Use a `<picture>`
  11671. marginHeight: number,
  11672. // `<body>`
  11673. marginWidth: number,
  11674. // `<body>`
  11675. noResize: boolean,
  11676. // `<frame>`
  11677. noHref: boolean,
  11678. // `<area>`. Use no href instead of an explicit `nohref`
  11679. noShade: boolean,
  11680. // `<hr>`. Use background-color and height instead of borders
  11681. noWrap: boolean,
  11682. // `<td>` and `<th>`
  11683. object: null,
  11684. // `<applet>`
  11685. profile: null,
  11686. // `<head>`
  11687. prompt: null,
  11688. // `<isindex>`
  11689. rev: null,
  11690. // `<link>`
  11691. rightMargin: number,
  11692. // `<body>`
  11693. rules: null,
  11694. // `<table>`
  11695. scheme: null,
  11696. // `<meta>`
  11697. scrolling: booleanish,
  11698. // `<frame>`. Use overflow in the child context
  11699. standby: null,
  11700. // `<object>`
  11701. summary: null,
  11702. // `<table>`
  11703. text: null,
  11704. // `<body>`. Use CSS `color` instead
  11705. topMargin: number,
  11706. // `<body>`
  11707. valueType: null,
  11708. // `<param>`
  11709. version: null,
  11710. // `<html>`. Use a doctype.
  11711. vAlign: null,
  11712. // Several. Use CSS `vertical-align` instead
  11713. vLink: null,
  11714. // `<body>`. Use CSS `a:visited {color}` instead
  11715. vSpace: number,
  11716. // `<img>` and `<object>`
  11717. // Non-standard Properties.
  11718. allowTransparency: null,
  11719. autoCorrect: null,
  11720. autoSave: null,
  11721. disablePictureInPicture: boolean,
  11722. disableRemotePlayback: boolean,
  11723. prefix: null,
  11724. property: null,
  11725. results: number,
  11726. security: null,
  11727. unselectable: null
  11728. }
  11729. });
  11730. }
  11731. });
  11732. // ../../node_modules/hastscript/node_modules/property-information/html.js
  11733. var require_html2 = __commonJS({
  11734. "../../node_modules/hastscript/node_modules/property-information/html.js"(exports, module2) {
  11735. "use strict";
  11736. var merge3 = require_merge(), xlink = require_xlink(), xml = require_xml(), xmlns = require_xmlns(), aria = require_aria(), html = require_html();
  11737. module2.exports = merge3([xml, xlink, xmlns, aria, html]);
  11738. }
  11739. });
  11740. // ../../node_modules/hastscript/node_modules/property-information/find.js
  11741. var require_find = __commonJS({
  11742. "../../node_modules/hastscript/node_modules/property-information/find.js"(exports, module2) {
  11743. "use strict";
  11744. var normalize4 = require_normalize(), DefinedInfo = require_defined_info(), Info = require_info(), data = "data";
  11745. module2.exports = find2;
  11746. var valid = /^data[-\w.:]+$/i, dash = /-[a-z]/g, cap = /[A-Z]/g;
  11747. function find2(schema, value) {
  11748. var normal = normalize4(value), prop = value, Type = Info;
  11749. return normal in schema.normal ? schema.property[schema.normal[normal]] : (normal.length > 4 && normal.slice(0, 4) === data && valid.test(value) && (value.charAt(4) === "-" ? prop = datasetToProperty(value) : value = datasetToAttribute(value), Type = DefinedInfo), new Type(prop, value));
  11750. }
  11751. function datasetToProperty(attribute) {
  11752. var value = attribute.slice(5).replace(dash, camelcase);
  11753. return data + value.charAt(0).toUpperCase() + value.slice(1);
  11754. }
  11755. function datasetToAttribute(property) {
  11756. var value = property.slice(4);
  11757. return dash.test(value) ? property : (value = value.replace(cap, kebab), value.charAt(0) !== "-" && (value = "-" + value), data + value);
  11758. }
  11759. function kebab($0) {
  11760. return "-" + $0.toLowerCase();
  11761. }
  11762. function camelcase($0) {
  11763. return $0.charAt(1).toUpperCase();
  11764. }
  11765. }
  11766. });
  11767. // ../../node_modules/hast-util-parse-selector/index.js
  11768. var require_hast_util_parse_selector = __commonJS({
  11769. "../../node_modules/hast-util-parse-selector/index.js"(exports, module2) {
  11770. "use strict";
  11771. module2.exports = parse9;
  11772. var search = /[#.]/g;
  11773. function parse9(selector, defaultTagName) {
  11774. for (var value = selector || "", name = defaultTagName || "div", props = {}, start2 = 0, subvalue, previous, match3; start2 < value.length; )
  11775. search.lastIndex = start2, match3 = search.exec(value), subvalue = value.slice(start2, match3 ? match3.index : value.length), subvalue && (previous ? previous === "#" ? props.id = subvalue : props.className ? props.className.push(subvalue) : props.className = [subvalue] : name = subvalue, start2 += subvalue.length), match3 && (previous = match3[0], start2++);
  11776. return { type: "element", tagName: name, properties: props, children: [] };
  11777. }
  11778. }
  11779. });
  11780. // ../../node_modules/hastscript/node_modules/space-separated-tokens/index.js
  11781. var require_space_separated_tokens = __commonJS({
  11782. "../../node_modules/hastscript/node_modules/space-separated-tokens/index.js"(exports) {
  11783. "use strict";
  11784. exports.parse = parse9;
  11785. exports.stringify = stringify8;
  11786. var empty = "", space = " ", whiteSpace = /[ \t\n\r\f]+/g;
  11787. function parse9(value) {
  11788. var input2 = String(value || empty).trim();
  11789. return input2 === empty ? [] : input2.split(whiteSpace);
  11790. }
  11791. function stringify8(values) {
  11792. return values.join(space).trim();
  11793. }
  11794. }
  11795. });
  11796. // ../../node_modules/hastscript/node_modules/comma-separated-tokens/index.js
  11797. var require_comma_separated_tokens = __commonJS({
  11798. "../../node_modules/hastscript/node_modules/comma-separated-tokens/index.js"(exports) {
  11799. "use strict";
  11800. exports.parse = parse9;
  11801. exports.stringify = stringify8;
  11802. var comma = ",", space = " ", empty = "";
  11803. function parse9(value) {
  11804. for (var values = [], input2 = String(value || empty), index4 = input2.indexOf(comma), lastIndex = 0, end2 = !1, val; !end2; )
  11805. index4 === -1 && (index4 = input2.length, end2 = !0), val = input2.slice(lastIndex, index4).trim(), (val || !end2) && values.push(val), lastIndex = index4 + 1, index4 = input2.indexOf(comma, lastIndex);
  11806. return values;
  11807. }
  11808. function stringify8(values, options) {
  11809. var settings = options || {}, left2 = settings.padLeft === !1 ? empty : space, right2 = settings.padRight ? space : empty;
  11810. return values[values.length - 1] === empty && (values = values.concat(empty)), values.join(right2 + comma + left2).trim();
  11811. }
  11812. }
  11813. });
  11814. // ../../node_modules/hastscript/factory.js
  11815. var require_factory = __commonJS({
  11816. "../../node_modules/hastscript/factory.js"(exports, module2) {
  11817. "use strict";
  11818. var find2 = require_find(), normalize4 = require_normalize(), parseSelector = require_hast_util_parse_selector(), spaces = require_space_separated_tokens().parse, commas = require_comma_separated_tokens().parse;
  11819. module2.exports = factory;
  11820. var own = {}.hasOwnProperty;
  11821. function factory(schema, defaultTagName, caseSensitive) {
  11822. var adjust = caseSensitive ? createAdjustMap(caseSensitive) : null;
  11823. return h3;
  11824. function h3(selector, properties) {
  11825. var node2 = parseSelector(selector, defaultTagName), children = Array.prototype.slice.call(arguments, 2), name = node2.tagName.toLowerCase(), property;
  11826. if (node2.tagName = adjust && own.call(adjust, name) ? adjust[name] : name, properties && isChildren(properties, node2) && (children.unshift(properties), properties = null), properties)
  11827. for (property in properties)
  11828. addProperty2(node2.properties, property, properties[property]);
  11829. return addChild(node2.children, children), node2.tagName === "template" && (node2.content = { type: "root", children: node2.children }, node2.children = []), node2;
  11830. }
  11831. function addProperty2(properties, key, value) {
  11832. var info, property, result;
  11833. value == null || value !== value || (info = find2(schema, key), property = info.property, result = value, typeof result == "string" && (info.spaceSeparated ? result = spaces(result) : info.commaSeparated ? result = commas(result) : info.commaOrSpaceSeparated && (result = spaces(commas(result).join(" ")))), property === "style" && typeof value != "string" && (result = style(result)), property === "className" && properties.className && (result = properties.className.concat(result)), properties[property] = parsePrimitives(info, property, result));
  11834. }
  11835. }
  11836. function isChildren(value, node2) {
  11837. return typeof value == "string" || "length" in value || isNode2(node2.tagName, value);
  11838. }
  11839. function isNode2(tagName, value) {
  11840. var type5 = value.type;
  11841. return tagName === "input" || !type5 || typeof type5 != "string" ? !1 : typeof value.children == "object" && "length" in value.children ? !0 : (type5 = type5.toLowerCase(), tagName === "button" ? type5 !== "menu" && type5 !== "submit" && type5 !== "reset" && type5 !== "button" : "value" in value);
  11842. }
  11843. function addChild(nodes, value) {
  11844. var index4, length2;
  11845. if (typeof value == "string" || typeof value == "number") {
  11846. nodes.push({ type: "text", value: String(value) });
  11847. return;
  11848. }
  11849. if (typeof value == "object" && "length" in value) {
  11850. for (index4 = -1, length2 = value.length; ++index4 < length2; )
  11851. addChild(nodes, value[index4]);
  11852. return;
  11853. }
  11854. if (typeof value != "object" || !("type" in value))
  11855. throw new Error("Expected node, nodes, or string, got `" + value + "`");
  11856. nodes.push(value);
  11857. }
  11858. function parsePrimitives(info, name, value) {
  11859. var index4, length2, result;
  11860. if (typeof value != "object" || !("length" in value))
  11861. return parsePrimitive(info, name, value);
  11862. for (length2 = value.length, index4 = -1, result = []; ++index4 < length2; )
  11863. result[index4] = parsePrimitive(info, name, value[index4]);
  11864. return result;
  11865. }
  11866. function parsePrimitive(info, name, value) {
  11867. var result = value;
  11868. return info.number || info.positiveNumber ? !isNaN(result) && result !== "" && (result = Number(result)) : (info.boolean || info.overloadedBoolean) && typeof result == "string" && (result === "" || normalize4(value) === normalize4(name)) && (result = !0), result;
  11869. }
  11870. function style(value) {
  11871. var result = [], key;
  11872. for (key in value)
  11873. result.push([key, value[key]].join(": "));
  11874. return result.join("; ");
  11875. }
  11876. function createAdjustMap(values) {
  11877. for (var length2 = values.length, index4 = -1, result = {}, value; ++index4 < length2; )
  11878. value = values[index4], result[value.toLowerCase()] = value;
  11879. return result;
  11880. }
  11881. }
  11882. });
  11883. // ../../node_modules/hastscript/html.js
  11884. var require_html3 = __commonJS({
  11885. "../../node_modules/hastscript/html.js"(exports, module2) {
  11886. "use strict";
  11887. var schema = require_html2(), factory = require_factory(), html = factory(schema, "div");
  11888. html.displayName = "html";
  11889. module2.exports = html;
  11890. }
  11891. });
  11892. // ../../node_modules/hastscript/index.js
  11893. var require_hastscript = __commonJS({
  11894. "../../node_modules/hastscript/index.js"(exports, module2) {
  11895. "use strict";
  11896. module2.exports = require_html3();
  11897. }
  11898. });
  11899. // ../../node_modules/refractor/node_modules/character-entities-legacy/index.json
  11900. var require_character_entities_legacy = __commonJS({
  11901. "../../node_modules/refractor/node_modules/character-entities-legacy/index.json"(exports, module2) {
  11902. module2.exports = {
  11903. AElig: "\xC6",
  11904. AMP: "&",
  11905. Aacute: "\xC1",
  11906. Acirc: "\xC2",
  11907. Agrave: "\xC0",
  11908. Aring: "\xC5",
  11909. Atilde: "\xC3",
  11910. Auml: "\xC4",
  11911. COPY: "\xA9",
  11912. Ccedil: "\xC7",
  11913. ETH: "\xD0",
  11914. Eacute: "\xC9",
  11915. Ecirc: "\xCA",
  11916. Egrave: "\xC8",
  11917. Euml: "\xCB",
  11918. GT: ">",
  11919. Iacute: "\xCD",
  11920. Icirc: "\xCE",
  11921. Igrave: "\xCC",
  11922. Iuml: "\xCF",
  11923. LT: "<",
  11924. Ntilde: "\xD1",
  11925. Oacute: "\xD3",
  11926. Ocirc: "\xD4",
  11927. Ograve: "\xD2",
  11928. Oslash: "\xD8",
  11929. Otilde: "\xD5",
  11930. Ouml: "\xD6",
  11931. QUOT: '"',
  11932. REG: "\xAE",
  11933. THORN: "\xDE",
  11934. Uacute: "\xDA",
  11935. Ucirc: "\xDB",
  11936. Ugrave: "\xD9",
  11937. Uuml: "\xDC",
  11938. Yacute: "\xDD",
  11939. aacute: "\xE1",
  11940. acirc: "\xE2",
  11941. acute: "\xB4",
  11942. aelig: "\xE6",
  11943. agrave: "\xE0",
  11944. amp: "&",
  11945. aring: "\xE5",
  11946. atilde: "\xE3",
  11947. auml: "\xE4",
  11948. brvbar: "\xA6",
  11949. ccedil: "\xE7",
  11950. cedil: "\xB8",
  11951. cent: "\xA2",
  11952. copy: "\xA9",
  11953. curren: "\xA4",
  11954. deg: "\xB0",
  11955. divide: "\xF7",
  11956. eacute: "\xE9",
  11957. ecirc: "\xEA",
  11958. egrave: "\xE8",
  11959. eth: "\xF0",
  11960. euml: "\xEB",
  11961. frac12: "\xBD",
  11962. frac14: "\xBC",
  11963. frac34: "\xBE",
  11964. gt: ">",
  11965. iacute: "\xED",
  11966. icirc: "\xEE",
  11967. iexcl: "\xA1",
  11968. igrave: "\xEC",
  11969. iquest: "\xBF",
  11970. iuml: "\xEF",
  11971. laquo: "\xAB",
  11972. lt: "<",
  11973. macr: "\xAF",
  11974. micro: "\xB5",
  11975. middot: "\xB7",
  11976. nbsp: "\xA0",
  11977. not: "\xAC",
  11978. ntilde: "\xF1",
  11979. oacute: "\xF3",
  11980. ocirc: "\xF4",
  11981. ograve: "\xF2",
  11982. ordf: "\xAA",
  11983. ordm: "\xBA",
  11984. oslash: "\xF8",
  11985. otilde: "\xF5",
  11986. ouml: "\xF6",
  11987. para: "\xB6",
  11988. plusmn: "\xB1",
  11989. pound: "\xA3",
  11990. quot: '"',
  11991. raquo: "\xBB",
  11992. reg: "\xAE",
  11993. sect: "\xA7",
  11994. shy: "\xAD",
  11995. sup1: "\xB9",
  11996. sup2: "\xB2",
  11997. sup3: "\xB3",
  11998. szlig: "\xDF",
  11999. thorn: "\xFE",
  12000. times: "\xD7",
  12001. uacute: "\xFA",
  12002. ucirc: "\xFB",
  12003. ugrave: "\xF9",
  12004. uml: "\xA8",
  12005. uuml: "\xFC",
  12006. yacute: "\xFD",
  12007. yen: "\xA5",
  12008. yuml: "\xFF"
  12009. };
  12010. }
  12011. });
  12012. // ../../node_modules/refractor/node_modules/character-reference-invalid/index.json
  12013. var require_character_reference_invalid = __commonJS({
  12014. "../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(exports, module2) {
  12015. module2.exports = {
  12016. "0": "\uFFFD",
  12017. "128": "\u20AC",
  12018. "130": "\u201A",
  12019. "131": "\u0192",
  12020. "132": "\u201E",
  12021. "133": "\u2026",
  12022. "134": "\u2020",
  12023. "135": "\u2021",
  12024. "136": "\u02C6",
  12025. "137": "\u2030",
  12026. "138": "\u0160",
  12027. "139": "\u2039",
  12028. "140": "\u0152",
  12029. "142": "\u017D",
  12030. "145": "\u2018",
  12031. "146": "\u2019",
  12032. "147": "\u201C",
  12033. "148": "\u201D",
  12034. "149": "\u2022",
  12035. "150": "\u2013",
  12036. "151": "\u2014",
  12037. "152": "\u02DC",
  12038. "153": "\u2122",
  12039. "154": "\u0161",
  12040. "155": "\u203A",
  12041. "156": "\u0153",
  12042. "158": "\u017E",
  12043. "159": "\u0178"
  12044. };
  12045. }
  12046. });
  12047. // ../../node_modules/refractor/node_modules/is-decimal/index.js
  12048. var require_is_decimal = __commonJS({
  12049. "../../node_modules/refractor/node_modules/is-decimal/index.js"(exports, module2) {
  12050. "use strict";
  12051. module2.exports = decimal;
  12052. function decimal(character2) {
  12053. var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2;
  12054. return code >= 48 && code <= 57;
  12055. }
  12056. }
  12057. });
  12058. // ../../node_modules/refractor/node_modules/is-hexadecimal/index.js
  12059. var require_is_hexadecimal = __commonJS({
  12060. "../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(exports, module2) {
  12061. "use strict";
  12062. module2.exports = hexadecimal;
  12063. function hexadecimal(character2) {
  12064. var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2;
  12065. return code >= 97 && code <= 102 || code >= 65 && code <= 70 || code >= 48 && code <= 57;
  12066. }
  12067. }
  12068. });
  12069. // ../../node_modules/refractor/node_modules/is-alphabetical/index.js
  12070. var require_is_alphabetical = __commonJS({
  12071. "../../node_modules/refractor/node_modules/is-alphabetical/index.js"(exports, module2) {
  12072. "use strict";
  12073. module2.exports = alphabetical;
  12074. function alphabetical(character2) {
  12075. var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2;
  12076. return code >= 97 && code <= 122 || code >= 65 && code <= 90;
  12077. }
  12078. }
  12079. });
  12080. // ../../node_modules/refractor/node_modules/is-alphanumerical/index.js
  12081. var require_is_alphanumerical = __commonJS({
  12082. "../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(exports, module2) {
  12083. "use strict";
  12084. var alphabetical = require_is_alphabetical(), decimal = require_is_decimal();
  12085. module2.exports = alphanumerical;
  12086. function alphanumerical(character2) {
  12087. return alphabetical(character2) || decimal(character2);
  12088. }
  12089. }
  12090. });
  12091. // ../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js
  12092. var require_decode_entity_browser = __commonJS({
  12093. "../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(exports, module2) {
  12094. "use strict";
  12095. var el, semicolon = 59;
  12096. module2.exports = decodeEntity;
  12097. function decodeEntity(characters2) {
  12098. var entity = "&" + characters2 + ";", char2;
  12099. return el = el || document.createElement("i"), el.innerHTML = entity, char2 = el.textContent, char2.charCodeAt(char2.length - 1) === semicolon && characters2 !== "semi" || char2 === entity ? !1 : char2;
  12100. }
  12101. }
  12102. });
  12103. // ../../node_modules/refractor/node_modules/parse-entities/index.js
  12104. var require_parse_entities = __commonJS({
  12105. "../../node_modules/refractor/node_modules/parse-entities/index.js"(exports, module2) {
  12106. "use strict";
  12107. var legacy = require_character_entities_legacy(), invalid = require_character_reference_invalid(), decimal = require_is_decimal(), hexadecimal = require_is_hexadecimal(), alphanumerical = require_is_alphanumerical(), decodeEntity = require_decode_entity_browser();
  12108. module2.exports = parseEntities;
  12109. var own = {}.hasOwnProperty, fromCharCode = String.fromCharCode, noop7 = Function.prototype, defaults = {
  12110. warning: null,
  12111. reference: null,
  12112. text: null,
  12113. warningContext: null,
  12114. referenceContext: null,
  12115. textContext: null,
  12116. position: {},
  12117. additional: null,
  12118. attribute: !1,
  12119. nonTerminated: !0
  12120. }, tab3 = 9, lineFeed = 10, formFeed = 12, space = 32, ampersand = 38, semicolon = 59, lessThan = 60, equalsTo = 61, numberSign = 35, uppercaseX = 88, lowercaseX = 120, replacementCharacter = 65533, name = "named", hexa = "hexadecimal", deci = "decimal", bases = {};
  12121. bases[hexa] = 16;
  12122. bases[deci] = 10;
  12123. var tests = {};
  12124. tests[name] = alphanumerical;
  12125. tests[deci] = decimal;
  12126. tests[hexa] = hexadecimal;
  12127. var namedNotTerminated = 1, numericNotTerminated = 2, namedEmpty = 3, numericEmpty = 4, namedUnknown = 5, numericDisallowed = 6, numericProhibited = 7, messages = {};
  12128. messages[namedNotTerminated] = "Named character references must be terminated by a semicolon";
  12129. messages[numericNotTerminated] = "Numeric character references must be terminated by a semicolon";
  12130. messages[namedEmpty] = "Named character references cannot be empty";
  12131. messages[numericEmpty] = "Numeric character references cannot be empty";
  12132. messages[namedUnknown] = "Named character references must be known";
  12133. messages[numericDisallowed] = "Numeric character references cannot be disallowed";
  12134. messages[numericProhibited] = "Numeric character references cannot be outside the permissible Unicode range";
  12135. function parseEntities(value, options) {
  12136. var settings = {}, option, key;
  12137. options || (options = {});
  12138. for (key in defaults)
  12139. option = options[key], settings[key] = option ?? defaults[key];
  12140. return (settings.position.indent || settings.position.start) && (settings.indent = settings.position.indent || [], settings.position = settings.position.start), parse9(value, settings);
  12141. }
  12142. function parse9(value, settings) {
  12143. var additional = settings.additional, nonTerminated = settings.nonTerminated, handleText = settings.text, handleReference = settings.reference, handleWarning = settings.warning, textContext = settings.textContext, referenceContext = settings.referenceContext, warningContext = settings.warningContext, pos = settings.position, indent2 = settings.indent || [], length2 = value.length, index4 = 0, lines = -1, column2 = pos.column || 1, line2 = pos.line || 1, queue = "", result = [], entityCharacters, namedEntity, terminated, characters2, character2, reference2, following, warning3, reason, output, entity, begin, start2, type5, test3, prev2, next2, diff2, end2;
  12144. for (typeof additional == "string" && (additional = additional.charCodeAt(0)), prev2 = now(), warning3 = handleWarning ? parseError : noop7, index4--, length2++; ++index4 < length2; )
  12145. if (character2 === lineFeed && (column2 = indent2[lines] || 1), character2 = value.charCodeAt(index4), character2 === ampersand) {
  12146. if (following = value.charCodeAt(index4 + 1), following === tab3 || following === lineFeed || following === formFeed || following === space || following === ampersand || following === lessThan || following !== following || additional && following === additional) {
  12147. queue += fromCharCode(character2), column2++;
  12148. continue;
  12149. }
  12150. for (start2 = index4 + 1, begin = start2, end2 = start2, following === numberSign ? (end2 = ++begin, following = value.charCodeAt(end2), following === uppercaseX || following === lowercaseX ? (type5 = hexa, end2 = ++begin) : type5 = deci) : type5 = name, entityCharacters = "", entity = "", characters2 = "", test3 = tests[type5], end2--; ++end2 < length2 && (following = value.charCodeAt(end2), !!test3(following)); )
  12151. characters2 += fromCharCode(following), type5 === name && own.call(legacy, characters2) && (entityCharacters = characters2, entity = legacy[characters2]);
  12152. terminated = value.charCodeAt(end2) === semicolon, terminated && (end2++, namedEntity = type5 === name ? decodeEntity(characters2) : !1, namedEntity && (entityCharacters = characters2, entity = namedEntity)), diff2 = 1 + end2 - start2, !terminated && !nonTerminated || (characters2 ? type5 === name ? (terminated && !entity ? warning3(namedUnknown, 1) : (entityCharacters !== characters2 && (end2 = begin + entityCharacters.length, diff2 = 1 + end2 - begin, terminated = !1), terminated || (reason = entityCharacters ? namedNotTerminated : namedEmpty, settings.attribute ? (following = value.charCodeAt(end2), following === equalsTo ? (warning3(reason, diff2), entity = null) : alphanumerical(following) ? entity = null : warning3(reason, diff2)) : warning3(reason, diff2))), reference2 = entity) : (terminated || warning3(numericNotTerminated, diff2), reference2 = parseInt(characters2, bases[type5]), prohibited(reference2) ? (warning3(numericProhibited, diff2), reference2 = fromCharCode(replacementCharacter)) : reference2 in invalid ? (warning3(numericDisallowed, diff2), reference2 = invalid[reference2]) : (output = "", disallowed(reference2) && warning3(numericDisallowed, diff2), reference2 > 65535 && (reference2 -= 65536, output += fromCharCode(reference2 >>> 10 | 55296), reference2 = 56320 | reference2 & 1023), reference2 = output + fromCharCode(reference2))) : type5 !== name && warning3(numericEmpty, diff2)), reference2 ? (flush(), prev2 = now(), index4 = end2 - 1, column2 += end2 - start2 + 1, result.push(reference2), next2 = now(), next2.offset++, handleReference && handleReference.call(
  12153. referenceContext,
  12154. reference2,
  12155. { start: prev2, end: next2 },
  12156. value.slice(start2 - 1, end2)
  12157. ), prev2 = next2) : (characters2 = value.slice(start2 - 1, end2), queue += characters2, column2 += characters2.length, index4 = end2 - 1);
  12158. } else
  12159. character2 === 10 && (line2++, lines++, column2 = 0), character2 === character2 ? (queue += fromCharCode(character2), column2++) : flush();
  12160. return result.join("");
  12161. function now() {
  12162. return {
  12163. line: line2,
  12164. column: column2,
  12165. offset: index4 + (pos.offset || 0)
  12166. };
  12167. }
  12168. function parseError(code, offset3) {
  12169. var position2 = now();
  12170. position2.column += offset3, position2.offset += offset3, handleWarning.call(warningContext, messages[code], position2, code);
  12171. }
  12172. function flush() {
  12173. queue && (result.push(queue), handleText && handleText.call(textContext, queue, { start: prev2, end: now() }), queue = "");
  12174. }
  12175. }
  12176. function prohibited(code) {
  12177. return code >= 55296 && code <= 57343 || code > 1114111;
  12178. }
  12179. function disallowed(code) {
  12180. return code >= 1 && code <= 8 || code === 11 || code >= 13 && code <= 31 || code >= 127 && code <= 159 || code >= 64976 && code <= 65007 || (code & 65535) === 65535 || (code & 65535) === 65534;
  12181. }
  12182. }
  12183. });
  12184. // ../../node_modules/refractor/node_modules/prismjs/components/prism-core.js
  12185. var require_prism_core = __commonJS({
  12186. "../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(exports, module2) {
  12187. var _self = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
  12188. var Prism = (function(_self2) {
  12189. var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, uniqueId = 0, plainTextGrammar = {}, _ = {
  12190. /**
  12191. * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
  12192. * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
  12193. * additional languages or plugins yourself.
  12194. *
  12195. * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
  12196. *
  12197. * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
  12198. * empty Prism object into the global scope before loading the Prism script like this:
  12199. *
  12200. * ```js
  12201. * window.Prism = window.Prism || {};
  12202. * Prism.manual = true;
  12203. * // add a new <script> to load Prism's script
  12204. * ```
  12205. *
  12206. * @default false
  12207. * @type {boolean}
  12208. * @memberof Prism
  12209. * @public
  12210. */
  12211. manual: _self2.Prism && _self2.Prism.manual,
  12212. /**
  12213. * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
  12214. * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
  12215. * own worker, you don't want it to do this.
  12216. *
  12217. * By setting this value to `true`, Prism will not add its own listeners to the worker.
  12218. *
  12219. * You obviously have to change this value before Prism executes. To do this, you can add an
  12220. * empty Prism object into the global scope before loading the Prism script like this:
  12221. *
  12222. * ```js
  12223. * window.Prism = window.Prism || {};
  12224. * Prism.disableWorkerMessageHandler = true;
  12225. * // Load Prism's script
  12226. * ```
  12227. *
  12228. * @default false
  12229. * @type {boolean}
  12230. * @memberof Prism
  12231. * @public
  12232. */
  12233. disableWorkerMessageHandler: _self2.Prism && _self2.Prism.disableWorkerMessageHandler,
  12234. /**
  12235. * A namespace for utility methods.
  12236. *
  12237. * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
  12238. * change or disappear at any time.
  12239. *
  12240. * @namespace
  12241. * @memberof Prism
  12242. */
  12243. util: {
  12244. encode: function encode2(tokens2) {
  12245. return tokens2 instanceof Token ? new Token(tokens2.type, encode2(tokens2.content), tokens2.alias) : Array.isArray(tokens2) ? tokens2.map(encode2) : tokens2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
  12246. },
  12247. /**
  12248. * Returns the name of the type of the given value.
  12249. *
  12250. * @param {any} o
  12251. * @returns {string}
  12252. * @example
  12253. * type(null) === 'Null'
  12254. * type(undefined) === 'Undefined'
  12255. * type(123) === 'Number'
  12256. * type('foo') === 'String'
  12257. * type(true) === 'Boolean'
  12258. * type([1, 2]) === 'Array'
  12259. * type({}) === 'Object'
  12260. * type(String) === 'Function'
  12261. * type(/abc+/) === 'RegExp'
  12262. */
  12263. type: function(o) {
  12264. return Object.prototype.toString.call(o).slice(8, -1);
  12265. },
  12266. /**
  12267. * Returns a unique number for the given object. Later calls will still return the same number.
  12268. *
  12269. * @param {Object} obj
  12270. * @returns {number}
  12271. */
  12272. objId: function(obj) {
  12273. return obj.__id || Object.defineProperty(obj, "__id", { value: ++uniqueId }), obj.__id;
  12274. },
  12275. /**
  12276. * Creates a deep clone of the given object.
  12277. *
  12278. * The main intended use of this function is to clone language definitions.
  12279. *
  12280. * @param {T} o
  12281. * @param {Record<number, any>} [visited]
  12282. * @returns {T}
  12283. * @template T
  12284. */
  12285. clone: function deepClone2(o, visited) {
  12286. visited = visited || {};
  12287. var clone3, id;
  12288. switch (_.util.type(o)) {
  12289. case "Object":
  12290. if (id = _.util.objId(o), visited[id])
  12291. return visited[id];
  12292. clone3 = /** @type {Record<string, any>} */
  12293. {}, visited[id] = clone3;
  12294. for (var key in o)
  12295. o.hasOwnProperty(key) && (clone3[key] = deepClone2(o[key], visited));
  12296. return (
  12297. /** @type {any} */
  12298. clone3
  12299. );
  12300. case "Array":
  12301. return id = _.util.objId(o), visited[id] ? visited[id] : (clone3 = [], visited[id] = clone3, /** @type {Array} */
  12302. /** @type {any} */
  12303. o.forEach(function(v, i) {
  12304. clone3[i] = deepClone2(v, visited);
  12305. }), /** @type {any} */
  12306. clone3);
  12307. default:
  12308. return o;
  12309. }
  12310. },
  12311. /**
  12312. * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
  12313. *
  12314. * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
  12315. *
  12316. * @param {Element} element
  12317. * @returns {string}
  12318. */
  12319. getLanguage: function(element) {
  12320. for (; element; ) {
  12321. var m3 = lang.exec(element.className);
  12322. if (m3)
  12323. return m3[1].toLowerCase();
  12324. element = element.parentElement;
  12325. }
  12326. return "none";
  12327. },
  12328. /**
  12329. * Sets the Prism `language-xxxx` class of the given element.
  12330. *
  12331. * @param {Element} element
  12332. * @param {string} language
  12333. * @returns {void}
  12334. */
  12335. setLanguage: function(element, language) {
  12336. element.className = element.className.replace(RegExp(lang, "gi"), ""), element.classList.add("language-" + language);
  12337. },
  12338. /**
  12339. * Returns the script element that is currently executing.
  12340. *
  12341. * This does __not__ work for line script element.
  12342. *
  12343. * @returns {HTMLScriptElement | null}
  12344. */
  12345. currentScript: function() {
  12346. if (typeof document > "u")
  12347. return null;
  12348. if ("currentScript" in document)
  12349. return (
  12350. /** @type {any} */
  12351. document.currentScript
  12352. );
  12353. try {
  12354. throw new Error();
  12355. } catch (err) {
  12356. var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
  12357. if (src) {
  12358. var scripts = document.getElementsByTagName("script");
  12359. for (var i in scripts)
  12360. if (scripts[i].src == src)
  12361. return scripts[i];
  12362. }
  12363. return null;
  12364. }
  12365. },
  12366. /**
  12367. * Returns whether a given class is active for `element`.
  12368. *
  12369. * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
  12370. * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
  12371. * given class is just the given class with a `no-` prefix.
  12372. *
  12373. * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
  12374. * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
  12375. * ancestors have the given class or the negated version of it, then the default activation will be returned.
  12376. *
  12377. * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
  12378. * version of it, the class is considered active.
  12379. *
  12380. * @param {Element} element
  12381. * @param {string} className
  12382. * @param {boolean} [defaultActivation=false]
  12383. * @returns {boolean}
  12384. */
  12385. isActive: function(element, className, defaultActivation) {
  12386. for (var no = "no-" + className; element; ) {
  12387. var classList = element.classList;
  12388. if (classList.contains(className))
  12389. return !0;
  12390. if (classList.contains(no))
  12391. return !1;
  12392. element = element.parentElement;
  12393. }
  12394. return !!defaultActivation;
  12395. }
  12396. },
  12397. /**
  12398. * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
  12399. *
  12400. * @namespace
  12401. * @memberof Prism
  12402. * @public
  12403. */
  12404. languages: {
  12405. /**
  12406. * The grammar for plain, unformatted text.
  12407. */
  12408. plain: plainTextGrammar,
  12409. plaintext: plainTextGrammar,
  12410. text: plainTextGrammar,
  12411. txt: plainTextGrammar,
  12412. /**
  12413. * Creates a deep copy of the language with the given id and appends the given tokens.
  12414. *
  12415. * If a token in `redef` also appears in the copied language, then the existing token in the copied language
  12416. * will be overwritten at its original position.
  12417. *
  12418. * ## Best practices
  12419. *
  12420. * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
  12421. * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
  12422. * understand the language definition because, normally, the order of tokens matters in Prism grammars.
  12423. *
  12424. * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
  12425. * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
  12426. *
  12427. * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
  12428. * @param {Grammar} redef The new tokens to append.
  12429. * @returns {Grammar} The new language created.
  12430. * @public
  12431. * @example
  12432. * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
  12433. * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
  12434. * // at its original position
  12435. * 'comment': { ... },
  12436. * // CSS doesn't have a 'color' token, so this token will be appended
  12437. * 'color': /\b(?:red|green|blue)\b/
  12438. * });
  12439. */
  12440. extend: function(id, redef) {
  12441. var lang2 = _.util.clone(_.languages[id]);
  12442. for (var key in redef)
  12443. lang2[key] = redef[key];
  12444. return lang2;
  12445. },
  12446. /**
  12447. * Inserts tokens _before_ another token in a language definition or any other grammar.
  12448. *
  12449. * ## Usage
  12450. *
  12451. * This helper method makes it easy to modify existing languages. For example, the CSS language definition
  12452. * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
  12453. * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
  12454. * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
  12455. * this:
  12456. *
  12457. * ```js
  12458. * Prism.languages.markup.style = {
  12459. * // token
  12460. * };
  12461. * ```
  12462. *
  12463. * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
  12464. * before existing tokens. For the CSS example above, you would use it like this:
  12465. *
  12466. * ```js
  12467. * Prism.languages.insertBefore('markup', 'cdata', {
  12468. * 'style': {
  12469. * // token
  12470. * }
  12471. * });
  12472. * ```
  12473. *
  12474. * ## Special cases
  12475. *
  12476. * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
  12477. * will be ignored.
  12478. *
  12479. * This behavior can be used to insert tokens after `before`:
  12480. *
  12481. * ```js
  12482. * Prism.languages.insertBefore('markup', 'comment', {
  12483. * 'comment': Prism.languages.markup.comment,
  12484. * // tokens after 'comment'
  12485. * });
  12486. * ```
  12487. *
  12488. * ## Limitations
  12489. *
  12490. * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
  12491. * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
  12492. * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
  12493. * deleting properties which is necessary to insert at arbitrary positions.
  12494. *
  12495. * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
  12496. * Instead, it will create a new object and replace all references to the target object with the new one. This
  12497. * can be done without temporarily deleting properties, so the iteration order is well-defined.
  12498. *
  12499. * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
  12500. * you hold the target object in a variable, then the value of the variable will not change.
  12501. *
  12502. * ```js
  12503. * var oldMarkup = Prism.languages.markup;
  12504. * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
  12505. *
  12506. * assert(oldMarkup !== Prism.languages.markup);
  12507. * assert(newMarkup === Prism.languages.markup);
  12508. * ```
  12509. *
  12510. * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
  12511. * object to be modified.
  12512. * @param {string} before The key to insert before.
  12513. * @param {Grammar} insert An object containing the key-value pairs to be inserted.
  12514. * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
  12515. * object to be modified.
  12516. *
  12517. * Defaults to `Prism.languages`.
  12518. * @returns {Grammar} The new grammar object.
  12519. * @public
  12520. */
  12521. insertBefore: function(inside, before, insert, root2) {
  12522. root2 = root2 || /** @type {any} */
  12523. _.languages;
  12524. var grammar = root2[inside], ret = {};
  12525. for (var token2 in grammar)
  12526. if (grammar.hasOwnProperty(token2)) {
  12527. if (token2 == before)
  12528. for (var newToken in insert)
  12529. insert.hasOwnProperty(newToken) && (ret[newToken] = insert[newToken]);
  12530. insert.hasOwnProperty(token2) || (ret[token2] = grammar[token2]);
  12531. }
  12532. var old = root2[inside];
  12533. return root2[inside] = ret, _.languages.DFS(_.languages, function(key, value) {
  12534. value === old && key != inside && (this[key] = ret);
  12535. }), ret;
  12536. },
  12537. // Traverse a language definition with Depth First Search
  12538. DFS: function DFS(o, callback, type5, visited) {
  12539. visited = visited || {};
  12540. var objId = _.util.objId;
  12541. for (var i in o)
  12542. if (o.hasOwnProperty(i)) {
  12543. callback.call(o, i, o[i], type5 || i);
  12544. var property = o[i], propertyType = _.util.type(property);
  12545. propertyType === "Object" && !visited[objId(property)] ? (visited[objId(property)] = !0, DFS(property, callback, null, visited)) : propertyType === "Array" && !visited[objId(property)] && (visited[objId(property)] = !0, DFS(property, callback, i, visited));
  12546. }
  12547. }
  12548. },
  12549. plugins: {},
  12550. /**
  12551. * This is the most high-level function in Prism’s API.
  12552. * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
  12553. * each one of them.
  12554. *
  12555. * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
  12556. *
  12557. * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
  12558. * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
  12559. * @memberof Prism
  12560. * @public
  12561. */
  12562. highlightAll: function(async, callback) {
  12563. _.highlightAllUnder(document, async, callback);
  12564. },
  12565. /**
  12566. * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
  12567. * {@link Prism.highlightElement} on each one of them.
  12568. *
  12569. * The following hooks will be run:
  12570. * 1. `before-highlightall`
  12571. * 2. `before-all-elements-highlight`
  12572. * 3. All hooks of {@link Prism.highlightElement} for each element.
  12573. *
  12574. * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
  12575. * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
  12576. * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
  12577. * @memberof Prism
  12578. * @public
  12579. */
  12580. highlightAllUnder: function(container, async, callback) {
  12581. var env = {
  12582. callback,
  12583. container,
  12584. selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
  12585. };
  12586. _.hooks.run("before-highlightall", env), env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)), _.hooks.run("before-all-elements-highlight", env);
  12587. for (var i = 0, element; element = env.elements[i++]; )
  12588. _.highlightElement(element, async === !0, env.callback);
  12589. },
  12590. /**
  12591. * Highlights the code inside a single element.
  12592. *
  12593. * The following hooks will be run:
  12594. * 1. `before-sanity-check`
  12595. * 2. `before-highlight`
  12596. * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
  12597. * 4. `before-insert`
  12598. * 5. `after-highlight`
  12599. * 6. `complete`
  12600. *
  12601. * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
  12602. * the element's language.
  12603. *
  12604. * @param {Element} element The element containing the code.
  12605. * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
  12606. * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
  12607. * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
  12608. * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
  12609. *
  12610. * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
  12611. * asynchronous highlighting to work. You can build your own bundle on the
  12612. * [Download page](https://prismjs.com/download.html).
  12613. * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
  12614. * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
  12615. * @memberof Prism
  12616. * @public
  12617. */
  12618. highlightElement: function(element, async, callback) {
  12619. var language = _.util.getLanguage(element), grammar = _.languages[language];
  12620. _.util.setLanguage(element, language);
  12621. var parent = element.parentElement;
  12622. parent && parent.nodeName.toLowerCase() === "pre" && _.util.setLanguage(parent, language);
  12623. var code = element.textContent, env = {
  12624. element,
  12625. language,
  12626. grammar,
  12627. code
  12628. };
  12629. function insertHighlightedCode(highlightedCode) {
  12630. env.highlightedCode = highlightedCode, _.hooks.run("before-insert", env), env.element.innerHTML = env.highlightedCode, _.hooks.run("after-highlight", env), _.hooks.run("complete", env), callback && callback.call(env.element);
  12631. }
  12632. if (_.hooks.run("before-sanity-check", env), parent = env.element.parentElement, parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex") && parent.setAttribute("tabindex", "0"), !env.code) {
  12633. _.hooks.run("complete", env), callback && callback.call(env.element);
  12634. return;
  12635. }
  12636. if (_.hooks.run("before-highlight", env), !env.grammar) {
  12637. insertHighlightedCode(_.util.encode(env.code));
  12638. return;
  12639. }
  12640. if (async && _self2.Worker) {
  12641. var worker = new Worker(_.filename);
  12642. worker.onmessage = function(evt) {
  12643. insertHighlightedCode(evt.data);
  12644. }, worker.postMessage(JSON.stringify({
  12645. language: env.language,
  12646. code: env.code,
  12647. immediateClose: !0
  12648. }));
  12649. } else
  12650. insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
  12651. },
  12652. /**
  12653. * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
  12654. * and the language definitions to use, and returns a string with the HTML produced.
  12655. *
  12656. * The following hooks will be run:
  12657. * 1. `before-tokenize`
  12658. * 2. `after-tokenize`
  12659. * 3. `wrap`: On each {@link Token}.
  12660. *
  12661. * @param {string} text A string with the code to be highlighted.
  12662. * @param {Grammar} grammar An object containing the tokens to use.
  12663. *
  12664. * Usually a language definition like `Prism.languages.markup`.
  12665. * @param {string} language The name of the language definition passed to `grammar`.
  12666. * @returns {string} The highlighted HTML.
  12667. * @memberof Prism
  12668. * @public
  12669. * @example
  12670. * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
  12671. */
  12672. highlight: function(text, grammar, language) {
  12673. var env = {
  12674. code: text,
  12675. grammar,
  12676. language
  12677. };
  12678. if (_.hooks.run("before-tokenize", env), !env.grammar)
  12679. throw new Error('The language "' + env.language + '" has no grammar.');
  12680. return env.tokens = _.tokenize(env.code, env.grammar), _.hooks.run("after-tokenize", env), Token.stringify(_.util.encode(env.tokens), env.language);
  12681. },
  12682. /**
  12683. * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
  12684. * and the language definitions to use, and returns an array with the tokenized code.
  12685. *
  12686. * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
  12687. *
  12688. * This method could be useful in other contexts as well, as a very crude parser.
  12689. *
  12690. * @param {string} text A string with the code to be highlighted.
  12691. * @param {Grammar} grammar An object containing the tokens to use.
  12692. *
  12693. * Usually a language definition like `Prism.languages.markup`.
  12694. * @returns {TokenStream} An array of strings and tokens, a token stream.
  12695. * @memberof Prism
  12696. * @public
  12697. * @example
  12698. * let code = `var foo = 0;`;
  12699. * let tokens = Prism.tokenize(code, Prism.languages.javascript);
  12700. * tokens.forEach(token => {
  12701. * if (token instanceof Prism.Token && token.type === 'number') {
  12702. * console.log(`Found numeric literal: ${token.content}`);
  12703. * }
  12704. * });
  12705. */
  12706. tokenize: function(text, grammar) {
  12707. var rest = grammar.rest;
  12708. if (rest) {
  12709. for (var token2 in rest)
  12710. grammar[token2] = rest[token2];
  12711. delete grammar.rest;
  12712. }
  12713. var tokenList = new LinkedList();
  12714. return addAfter(tokenList, tokenList.head, text), matchGrammar(text, tokenList, grammar, tokenList.head, 0), toArray2(tokenList);
  12715. },
  12716. /**
  12717. * @namespace
  12718. * @memberof Prism
  12719. * @public
  12720. */
  12721. hooks: {
  12722. all: {},
  12723. /**
  12724. * Adds the given callback to the list of callbacks for the given hook.
  12725. *
  12726. * The callback will be invoked when the hook it is registered for is run.
  12727. * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
  12728. *
  12729. * One callback function can be registered to multiple hooks and the same hook multiple times.
  12730. *
  12731. * @param {string} name The name of the hook.
  12732. * @param {HookCallback} callback The callback function which is given environment variables.
  12733. * @public
  12734. */
  12735. add: function(name, callback) {
  12736. var hooks = _.hooks.all;
  12737. hooks[name] = hooks[name] || [], hooks[name].push(callback);
  12738. },
  12739. /**
  12740. * Runs a hook invoking all registered callbacks with the given environment variables.
  12741. *
  12742. * Callbacks will be invoked synchronously and in the order in which they were registered.
  12743. *
  12744. * @param {string} name The name of the hook.
  12745. * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
  12746. * @public
  12747. */
  12748. run: function(name, env) {
  12749. var callbacks = _.hooks.all[name];
  12750. if (!(!callbacks || !callbacks.length))
  12751. for (var i = 0, callback; callback = callbacks[i++]; )
  12752. callback(env);
  12753. }
  12754. },
  12755. Token
  12756. };
  12757. _self2.Prism = _;
  12758. function Token(type5, content, alias, matchedStr) {
  12759. this.type = type5, this.content = content, this.alias = alias, this.length = (matchedStr || "").length | 0;
  12760. }
  12761. Token.stringify = function stringify8(o, language) {
  12762. if (typeof o == "string")
  12763. return o;
  12764. if (Array.isArray(o)) {
  12765. var s3 = "";
  12766. return o.forEach(function(e) {
  12767. s3 += stringify8(e, language);
  12768. }), s3;
  12769. }
  12770. var env = {
  12771. type: o.type,
  12772. content: stringify8(o.content, language),
  12773. tag: "span",
  12774. classes: ["token", o.type],
  12775. attributes: {},
  12776. language
  12777. }, aliases2 = o.alias;
  12778. aliases2 && (Array.isArray(aliases2) ? Array.prototype.push.apply(env.classes, aliases2) : env.classes.push(aliases2)), _.hooks.run("wrap", env);
  12779. var attributes = "";
  12780. for (var name in env.attributes)
  12781. attributes += " " + name + '="' + (env.attributes[name] || "").replace(/"/g, "&quot;") + '"';
  12782. return "<" + env.tag + ' class="' + env.classes.join(" ") + '"' + attributes + ">" + env.content + "</" + env.tag + ">";
  12783. };
  12784. function matchPattern(pattern, pos, text, lookbehind) {
  12785. pattern.lastIndex = pos;
  12786. var match3 = pattern.exec(text);
  12787. if (match3 && lookbehind && match3[1]) {
  12788. var lookbehindLength = match3[1].length;
  12789. match3.index += lookbehindLength, match3[0] = match3[0].slice(lookbehindLength);
  12790. }
  12791. return match3;
  12792. }
  12793. function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
  12794. for (var token2 in grammar)
  12795. if (!(!grammar.hasOwnProperty(token2) || !grammar[token2])) {
  12796. var patterns = grammar[token2];
  12797. patterns = Array.isArray(patterns) ? patterns : [patterns];
  12798. for (var j = 0; j < patterns.length; ++j) {
  12799. if (rematch && rematch.cause == token2 + "," + j)
  12800. return;
  12801. var patternObj = patterns[j], inside = patternObj.inside, lookbehind = !!patternObj.lookbehind, greedy = !!patternObj.greedy, alias = patternObj.alias;
  12802. if (greedy && !patternObj.pattern.global) {
  12803. var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
  12804. patternObj.pattern = RegExp(patternObj.pattern.source, flags + "g");
  12805. }
  12806. for (var pattern = patternObj.pattern || patternObj, currentNode = startNode.next, pos = startPos; currentNode !== tokenList.tail && !(rematch && pos >= rematch.reach); pos += currentNode.value.length, currentNode = currentNode.next) {
  12807. var str2 = currentNode.value;
  12808. if (tokenList.length > text.length)
  12809. return;
  12810. if (!(str2 instanceof Token)) {
  12811. var removeCount = 1, match3;
  12812. if (greedy) {
  12813. if (match3 = matchPattern(pattern, pos, text, lookbehind), !match3 || match3.index >= text.length)
  12814. break;
  12815. var from2 = match3.index, to = match3.index + match3[0].length, p3 = pos;
  12816. for (p3 += currentNode.value.length; from2 >= p3; )
  12817. currentNode = currentNode.next, p3 += currentNode.value.length;
  12818. if (p3 -= currentNode.value.length, pos = p3, currentNode.value instanceof Token)
  12819. continue;
  12820. for (var k = currentNode; k !== tokenList.tail && (p3 < to || typeof k.value == "string"); k = k.next)
  12821. removeCount++, p3 += k.value.length;
  12822. removeCount--, str2 = text.slice(pos, p3), match3.index -= pos;
  12823. } else if (match3 = matchPattern(pattern, 0, str2, lookbehind), !match3)
  12824. continue;
  12825. var from2 = match3.index, matchStr = match3[0], before = str2.slice(0, from2), after = str2.slice(from2 + matchStr.length), reach = pos + str2.length;
  12826. rematch && reach > rematch.reach && (rematch.reach = reach);
  12827. var removeFrom = currentNode.prev;
  12828. before && (removeFrom = addAfter(tokenList, removeFrom, before), pos += before.length), removeRange(tokenList, removeFrom, removeCount);
  12829. var wrapped = new Token(token2, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
  12830. if (currentNode = addAfter(tokenList, removeFrom, wrapped), after && addAfter(tokenList, currentNode, after), removeCount > 1) {
  12831. var nestedRematch = {
  12832. cause: token2 + "," + j,
  12833. reach
  12834. };
  12835. matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch), rematch && nestedRematch.reach > rematch.reach && (rematch.reach = nestedRematch.reach);
  12836. }
  12837. }
  12838. }
  12839. }
  12840. }
  12841. }
  12842. function LinkedList() {
  12843. var head2 = { value: null, prev: null, next: null }, tail2 = { value: null, prev: head2, next: null };
  12844. head2.next = tail2, this.head = head2, this.tail = tail2, this.length = 0;
  12845. }
  12846. function addAfter(list, node2, value) {
  12847. var next2 = node2.next, newNode = { value, prev: node2, next: next2 };
  12848. return node2.next = newNode, next2.prev = newNode, list.length++, newNode;
  12849. }
  12850. function removeRange(list, node2, count) {
  12851. for (var next2 = node2.next, i = 0; i < count && next2 !== list.tail; i++)
  12852. next2 = next2.next;
  12853. node2.next = next2, next2.prev = node2, list.length -= i;
  12854. }
  12855. function toArray2(list) {
  12856. for (var array = [], node2 = list.head.next; node2 !== list.tail; )
  12857. array.push(node2.value), node2 = node2.next;
  12858. return array;
  12859. }
  12860. if (!_self2.document)
  12861. return _self2.addEventListener && (_.disableWorkerMessageHandler || _self2.addEventListener("message", function(evt) {
  12862. var message = JSON.parse(evt.data), lang2 = message.language, code = message.code, immediateClose = message.immediateClose;
  12863. _self2.postMessage(_.highlight(code, _.languages[lang2], lang2)), immediateClose && _self2.close();
  12864. }, !1)), _;
  12865. var script = _.util.currentScript();
  12866. script && (_.filename = script.src, script.hasAttribute("data-manual") && (_.manual = !0));
  12867. function highlightAutomaticallyCallback() {
  12868. _.manual || _.highlightAll();
  12869. }
  12870. if (!_.manual) {
  12871. var readyState = document.readyState;
  12872. readyState === "loading" || readyState === "interactive" && script && script.defer ? document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback) : window.requestAnimationFrame ? window.requestAnimationFrame(highlightAutomaticallyCallback) : window.setTimeout(highlightAutomaticallyCallback, 16);
  12873. }
  12874. return _;
  12875. })(_self);
  12876. typeof module2 < "u" && module2.exports && (module2.exports = Prism);
  12877. typeof global < "u" && (global.Prism = Prism);
  12878. }
  12879. });
  12880. // ../../node_modules/refractor/lang/clike.js
  12881. var require_clike = __commonJS({
  12882. "../../node_modules/refractor/lang/clike.js"(exports, module2) {
  12883. "use strict";
  12884. module2.exports = clike;
  12885. clike.displayName = "clike";
  12886. clike.aliases = [];
  12887. function clike(Prism) {
  12888. Prism.languages.clike = {
  12889. comment: [
  12890. {
  12891. pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
  12892. lookbehind: !0,
  12893. greedy: !0
  12894. },
  12895. {
  12896. pattern: /(^|[^\\:])\/\/.*/,
  12897. lookbehind: !0,
  12898. greedy: !0
  12899. }
  12900. ],
  12901. string: {
  12902. pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
  12903. greedy: !0
  12904. },
  12905. "class-name": {
  12906. pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
  12907. lookbehind: !0,
  12908. inside: {
  12909. punctuation: /[.\\]/
  12910. }
  12911. },
  12912. keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
  12913. boolean: /\b(?:false|true)\b/,
  12914. function: /\b\w+(?=\()/,
  12915. number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
  12916. operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
  12917. punctuation: /[{}[\];(),.:]/
  12918. };
  12919. }
  12920. }
  12921. });
  12922. // ../../node_modules/refractor/lang/javascript.js
  12923. var require_javascript = __commonJS({
  12924. "../../node_modules/refractor/lang/javascript.js"(exports, module2) {
  12925. "use strict";
  12926. module2.exports = javascript;
  12927. javascript.displayName = "javascript";
  12928. javascript.aliases = ["js"];
  12929. function javascript(Prism) {
  12930. Prism.languages.javascript = Prism.languages.extend("clike", {
  12931. "class-name": [
  12932. Prism.languages.clike["class-name"],
  12933. {
  12934. pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
  12935. lookbehind: !0
  12936. }
  12937. ],
  12938. keyword: [
  12939. {
  12940. pattern: /((?:^|\})\s*)catch\b/,
  12941. lookbehind: !0
  12942. },
  12943. {
  12944. pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
  12945. lookbehind: !0
  12946. }
  12947. ],
  12948. // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
  12949. function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
  12950. number: {
  12951. pattern: RegExp(
  12952. /(^|[^\w$])/.source + "(?:" + // constant
  12953. (/NaN|Infinity/.source + "|" + // binary integer
  12954. /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
  12955. /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
  12956. /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
  12957. /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
  12958. /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
  12959. ),
  12960. lookbehind: !0
  12961. },
  12962. operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
  12963. }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", {
  12964. regex: {
  12965. // eslint-disable-next-line regexp/no-dupe-characters-character-class
  12966. pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
  12967. lookbehind: !0,
  12968. greedy: !0,
  12969. inside: {
  12970. "regex-source": {
  12971. pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
  12972. lookbehind: !0,
  12973. alias: "language-regex",
  12974. inside: Prism.languages.regex
  12975. },
  12976. "regex-delimiter": /^\/|\/$/,
  12977. "regex-flags": /^[a-z]+$/
  12978. }
  12979. },
  12980. // This must be declared before keyword because we use "function" inside the look-forward
  12981. "function-variable": {
  12982. pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
  12983. alias: "function"
  12984. },
  12985. parameter: [
  12986. {
  12987. pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
  12988. lookbehind: !0,
  12989. inside: Prism.languages.javascript
  12990. },
  12991. {
  12992. pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
  12993. lookbehind: !0,
  12994. inside: Prism.languages.javascript
  12995. },
  12996. {
  12997. pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
  12998. lookbehind: !0,
  12999. inside: Prism.languages.javascript
  13000. },
  13001. {
  13002. pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
  13003. lookbehind: !0,
  13004. inside: Prism.languages.javascript
  13005. }
  13006. ],
  13007. constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
  13008. }), Prism.languages.insertBefore("javascript", "string", {
  13009. hashbang: {
  13010. pattern: /^#!.*/,
  13011. greedy: !0,
  13012. alias: "comment"
  13013. },
  13014. "template-string": {
  13015. pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
  13016. greedy: !0,
  13017. inside: {
  13018. "template-punctuation": {
  13019. pattern: /^`|`$/,
  13020. alias: "string"
  13021. },
  13022. interpolation: {
  13023. pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
  13024. lookbehind: !0,
  13025. inside: {
  13026. "interpolation-punctuation": {
  13027. pattern: /^\$\{|\}$/,
  13028. alias: "punctuation"
  13029. },
  13030. rest: Prism.languages.javascript
  13031. }
  13032. },
  13033. string: /[\s\S]+/
  13034. }
  13035. },
  13036. "string-property": {
  13037. pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
  13038. lookbehind: !0,
  13039. greedy: !0,
  13040. alias: "property"
  13041. }
  13042. }), Prism.languages.insertBefore("javascript", "operator", {
  13043. "literal-property": {
  13044. pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
  13045. lookbehind: !0,
  13046. alias: "property"
  13047. }
  13048. }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute(
  13049. /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
  13050. "javascript"
  13051. )), Prism.languages.js = Prism.languages.javascript;
  13052. }
  13053. }
  13054. });
  13055. // ../../node_modules/refractor/core.js
  13056. var require_core = __commonJS({
  13057. "../../node_modules/refractor/core.js"(exports, module2) {
  13058. "use strict";
  13059. var ctx = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, restore = capture();
  13060. ctx.Prism = { manual: !0, disableWorkerMessageHandler: !0 };
  13061. var h3 = require_hastscript(), decode = require_parse_entities(), Prism = require_prism_core(), markup2 = require_markup(), css3 = require_css(), clike = require_clike(), js = require_javascript();
  13062. restore();
  13063. var own = {}.hasOwnProperty;
  13064. function Refractor() {
  13065. }
  13066. Refractor.prototype = Prism;
  13067. var refract = new Refractor();
  13068. module2.exports = refract;
  13069. refract.highlight = highlight;
  13070. refract.register = register;
  13071. refract.alias = alias;
  13072. refract.registered = registered;
  13073. refract.listLanguages = listLanguages;
  13074. register(markup2);
  13075. register(css3);
  13076. register(clike);
  13077. register(js);
  13078. refract.util.encode = encode2;
  13079. refract.Token.stringify = stringify8;
  13080. function register(grammar) {
  13081. if (typeof grammar != "function" || !grammar.displayName)
  13082. throw new Error("Expected `function` for `grammar`, got `" + grammar + "`");
  13083. refract.languages[grammar.displayName] === void 0 && grammar(refract);
  13084. }
  13085. function alias(name, alias2) {
  13086. var languages2 = refract.languages, map2 = name, key, list, length2, index4;
  13087. alias2 && (map2 = {}, map2[name] = alias2);
  13088. for (key in map2)
  13089. for (list = map2[key], list = typeof list == "string" ? [list] : list, length2 = list.length, index4 = -1; ++index4 < length2; )
  13090. languages2[list[index4]] = languages2[key];
  13091. }
  13092. function highlight(value, name) {
  13093. var sup = Prism.highlight, grammar;
  13094. if (typeof value != "string")
  13095. throw new Error("Expected `string` for `value`, got `" + value + "`");
  13096. if (refract.util.type(name) === "Object")
  13097. grammar = name, name = null;
  13098. else {
  13099. if (typeof name != "string")
  13100. throw new Error("Expected `string` for `name`, got `" + name + "`");
  13101. if (own.call(refract.languages, name))
  13102. grammar = refract.languages[name];
  13103. else
  13104. throw new Error("Unknown language: `" + name + "` is not registered");
  13105. }
  13106. return sup.call(this, value, grammar, name);
  13107. }
  13108. function registered(language) {
  13109. if (typeof language != "string")
  13110. throw new Error("Expected `string` for `language`, got `" + language + "`");
  13111. return own.call(refract.languages, language);
  13112. }
  13113. function listLanguages() {
  13114. var languages2 = refract.languages, list = [], language;
  13115. for (language in languages2)
  13116. own.call(languages2, language) && typeof languages2[language] == "object" && list.push(language);
  13117. return list;
  13118. }
  13119. function stringify8(value, language, parent) {
  13120. var env;
  13121. return typeof value == "string" ? { type: "text", value } : refract.util.type(value) === "Array" ? stringifyAll(value, language) : (env = {
  13122. type: value.type,
  13123. content: refract.Token.stringify(value.content, language, parent),
  13124. tag: "span",
  13125. classes: ["token", value.type],
  13126. attributes: {},
  13127. language,
  13128. parent
  13129. }, value.alias && (env.classes = env.classes.concat(value.alias)), refract.hooks.run("wrap", env), h3(
  13130. env.tag + "." + env.classes.join("."),
  13131. attributes(env.attributes),
  13132. env.content
  13133. ));
  13134. }
  13135. function stringifyAll(values, language) {
  13136. for (var result = [], length2 = values.length, index4 = -1, value; ++index4 < length2; )
  13137. value = values[index4], value !== "" && value !== null && value !== void 0 && result.push(value);
  13138. for (index4 = -1, length2 = result.length; ++index4 < length2; )
  13139. value = result[index4], result[index4] = refract.Token.stringify(value, language, result);
  13140. return result;
  13141. }
  13142. function encode2(tokens2) {
  13143. return tokens2;
  13144. }
  13145. function attributes(attrs) {
  13146. var key;
  13147. for (key in attrs)
  13148. attrs[key] = decode(attrs[key]);
  13149. return attrs;
  13150. }
  13151. function capture() {
  13152. var defined = "Prism" in ctx, current = defined ? ctx.Prism : void 0;
  13153. return restore2;
  13154. function restore2() {
  13155. defined ? ctx.Prism = current : delete ctx.Prism, defined = void 0, current = void 0;
  13156. }
  13157. }
  13158. }
  13159. });
  13160. // ../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js
  13161. var import_core, SyntaxHighlighter, prism_light_default, init_prism_light = __esm({
  13162. "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js"() {
  13163. init_highlight();
  13164. import_core = __toESM(require_core()), SyntaxHighlighter = highlight_default(import_core.default, {});
  13165. SyntaxHighlighter.registerLanguage = function(_, language) {
  13166. return import_core.default.register(language);
  13167. };
  13168. SyntaxHighlighter.alias = function(name, aliases2) {
  13169. return import_core.default.alias(name, aliases2);
  13170. };
  13171. prism_light_default = SyntaxHighlighter;
  13172. }
  13173. });
  13174. // src/components/components/ActionBar/ActionBar.tsx
  13175. var import_react10, Container, ActionButton, ActionBar, init_ActionBar = __esm({
  13176. "src/components/components/ActionBar/ActionBar.tsx"() {
  13177. "use strict";
  13178. import_react10 = __toESM(require_react(), 1);
  13179. init_theming();
  13180. Container = styled.div(({ theme: theme3, $flexLayout = !1 }) => [
  13181. {
  13182. background: theme3.background.content
  13183. },
  13184. $flexLayout ? {
  13185. display: "inline-flex",
  13186. marginInlineStart: "auto",
  13187. alignSelf: "flex-end"
  13188. } : {
  13189. position: "absolute",
  13190. bottom: 0,
  13191. right: 0,
  13192. maxWidth: "100%",
  13193. display: "flex",
  13194. zIndex: 1
  13195. }
  13196. ]), ActionButton = styled.button(
  13197. ({ theme: theme3 }) => ({
  13198. margin: 0,
  13199. border: "0 none",
  13200. padding: "4px 10px",
  13201. cursor: "pointer",
  13202. display: "flex",
  13203. alignItems: "center",
  13204. color: theme3.color.defaultText,
  13205. background: theme3.background.content,
  13206. fontSize: 12,
  13207. lineHeight: "16px",
  13208. fontFamily: theme3.typography.fonts.base,
  13209. fontWeight: theme3.typography.weight.bold,
  13210. borderTop: `1px solid ${theme3.appBorderColor}`,
  13211. borderLeft: `1px solid ${theme3.appBorderColor}`,
  13212. marginLeft: -1,
  13213. borderRadius: "4px 0 0 0",
  13214. "&:not(:last-child)": { borderRight: `1px solid ${theme3.appBorderColor}` },
  13215. "& + *": {
  13216. borderLeft: `1px solid ${theme3.appBorderColor}`,
  13217. borderRadius: 0
  13218. },
  13219. "&:focus": {
  13220. boxShadow: `${theme3.color.secondary} 0 -3px 0 0 inset`,
  13221. outline: "0 none",
  13222. "@media (forced-colors: active)": {
  13223. outline: "1px solid highlight"
  13224. }
  13225. }
  13226. }),
  13227. ({ disabled }) => disabled && {
  13228. cursor: "not-allowed",
  13229. opacity: 0.5
  13230. }
  13231. );
  13232. ActionButton.displayName = "ActionButton";
  13233. ActionBar = ({ actionItems, flexLayout = !1, ...props }) => import_react10.default.createElement(Container, { ...props, $flexLayout: flexLayout }, actionItems.map(({ title, className, onClick, disabled }, index4) => import_react10.default.createElement(ActionButton, { key: index4, className, onClick, disabled: !!disabled }, title)));
  13234. }
  13235. });
  13236. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
  13237. function setRef(ref, value) {
  13238. typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
  13239. }
  13240. function composeRefs(...refs) {
  13241. return (node2) => refs.forEach((ref) => setRef(ref, node2));
  13242. }
  13243. function useComposedRefs(...refs) {
  13244. return React9.useCallback(composeRefs(...refs), refs);
  13245. }
  13246. var React9, init_dist2 = __esm({
  13247. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"() {
  13248. React9 = __toESM(require_react(), 1);
  13249. }
  13250. });
  13251. // ../../node_modules/react/cjs/react-jsx-runtime.production.min.js
  13252. var require_react_jsx_runtime_production_min = __commonJS({
  13253. "../../node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
  13254. "use strict";
  13255. var f4 = require_react(), k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m3 = Object.prototype.hasOwnProperty, n = f4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p3 = { key: !0, ref: !0, __self: !0, __source: !0 };
  13256. function q(c, a3, g2) {
  13257. var b, d = {}, e = null, h3 = null;
  13258. g2 !== void 0 && (e = "" + g2), a3.key !== void 0 && (e = "" + a3.key), a3.ref !== void 0 && (h3 = a3.ref);
  13259. for (b in a3) m3.call(a3, b) && !p3.hasOwnProperty(b) && (d[b] = a3[b]);
  13260. if (c && c.defaultProps) for (b in a3 = c.defaultProps, a3) d[b] === void 0 && (d[b] = a3[b]);
  13261. return { $$typeof: k, type: c, key: e, ref: h3, props: d, _owner: n.current };
  13262. }
  13263. exports.Fragment = l;
  13264. exports.jsx = q;
  13265. exports.jsxs = q;
  13266. }
  13267. });
  13268. // ../../node_modules/react/jsx-runtime.js
  13269. var require_jsx_runtime = __commonJS({
  13270. "../../node_modules/react/jsx-runtime.js"(exports, module2) {
  13271. "use strict";
  13272. module2.exports = require_react_jsx_runtime_production_min();
  13273. }
  13274. });
  13275. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs
  13276. function isSlottable(child) {
  13277. return React10.isValidElement(child) && child.type === Slottable;
  13278. }
  13279. function mergeProps(slotProps, childProps) {
  13280. let overrideProps = { ...childProps };
  13281. for (let propName in childProps) {
  13282. let slotPropValue = slotProps[propName], childPropValue = childProps[propName];
  13283. /^on[A-Z]/.test(propName) ? slotPropValue && childPropValue ? overrideProps[propName] = (...args) => {
  13284. childPropValue(...args), slotPropValue(...args);
  13285. } : slotPropValue && (overrideProps[propName] = slotPropValue) : propName === "style" ? overrideProps[propName] = { ...slotPropValue, ...childPropValue } : propName === "className" && (overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" "));
  13286. }
  13287. return { ...slotProps, ...overrideProps };
  13288. }
  13289. function getElementRef(element) {
  13290. let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
  13291. return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
  13292. }
  13293. var React10, import_jsx_runtime, Slot, SlotClone, Slottable, init_dist3 = __esm({
  13294. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs"() {
  13295. React10 = __toESM(require_react(), 1);
  13296. init_dist2();
  13297. import_jsx_runtime = __toESM(require_jsx_runtime(), 1), Slot = React10.forwardRef((props, forwardedRef) => {
  13298. let { children, ...slotProps } = props, childrenArray = React10.Children.toArray(children), slottable = childrenArray.find(isSlottable);
  13299. if (slottable) {
  13300. let newElement = slottable.props.children, newChildren = childrenArray.map((child) => child === slottable ? React10.Children.count(newElement) > 1 ? React10.Children.only(null) : React10.isValidElement(newElement) ? newElement.props.children : null : child);
  13301. return (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React10.isValidElement(newElement) ? React10.cloneElement(newElement, void 0, newChildren) : null });
  13302. }
  13303. return (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
  13304. });
  13305. Slot.displayName = "Slot";
  13306. SlotClone = React10.forwardRef((props, forwardedRef) => {
  13307. let { children, ...slotProps } = props;
  13308. if (React10.isValidElement(children)) {
  13309. let childrenRef = getElementRef(children);
  13310. return React10.cloneElement(children, {
  13311. ...mergeProps(slotProps, children.props),
  13312. // @ts-ignore
  13313. ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
  13314. });
  13315. }
  13316. return React10.Children.count(children) > 1 ? React10.Children.only(null) : null;
  13317. });
  13318. SlotClone.displayName = "SlotClone";
  13319. Slottable = ({ children }) => (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
  13320. }
  13321. });
  13322. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs
  13323. var React11, ReactDOM, import_jsx_runtime2, NODES, Primitive, init_dist4 = __esm({
  13324. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs"() {
  13325. React11 = __toESM(require_react(), 1), ReactDOM = __toESM(require_react_dom(), 1);
  13326. init_dist3();
  13327. import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1), NODES = [
  13328. "a",
  13329. "button",
  13330. "div",
  13331. "form",
  13332. "h2",
  13333. "h3",
  13334. "img",
  13335. "input",
  13336. "label",
  13337. "li",
  13338. "nav",
  13339. "ol",
  13340. "p",
  13341. "span",
  13342. "svg",
  13343. "ul"
  13344. ], Primitive = NODES.reduce((primitive, node2) => {
  13345. let Node2 = React11.forwardRef((props, forwardedRef) => {
  13346. let { asChild, ...primitiveProps } = props, Comp2 = asChild ? Slot : node2;
  13347. return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), (0, import_jsx_runtime2.jsx)(Comp2, { ...primitiveProps, ref: forwardedRef });
  13348. });
  13349. return Node2.displayName = `Primitive.${node2}`, { ...primitive, [node2]: Node2 };
  13350. }, {});
  13351. }
  13352. });
  13353. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
  13354. var React12, useLayoutEffect22, init_dist5 = __esm({
  13355. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"() {
  13356. React12 = __toESM(require_react(), 1), useLayoutEffect22 = globalThis?.document ? React12.useLayoutEffect : () => {
  13357. };
  13358. }
  13359. });
  13360. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs
  13361. function useStateMachine(initialState2, machine) {
  13362. return React13.useReducer((state3, event) => machine[state3][event] ?? state3, initialState2);
  13363. }
  13364. function usePresence(present) {
  13365. let [node2, setNode] = React22.useState(), stylesRef = React22.useRef({}), prevPresentRef = React22.useRef(present), prevAnimationNameRef = React22.useRef("none"), initialState2 = present ? "mounted" : "unmounted", [state3, send] = useStateMachine(initialState2, {
  13366. mounted: {
  13367. UNMOUNT: "unmounted",
  13368. ANIMATION_OUT: "unmountSuspended"
  13369. },
  13370. unmountSuspended: {
  13371. MOUNT: "mounted",
  13372. ANIMATION_END: "unmounted"
  13373. },
  13374. unmounted: {
  13375. MOUNT: "mounted"
  13376. }
  13377. });
  13378. return React22.useEffect(() => {
  13379. let currentAnimationName = getAnimationName(stylesRef.current);
  13380. prevAnimationNameRef.current = state3 === "mounted" ? currentAnimationName : "none";
  13381. }, [state3]), useLayoutEffect22(() => {
  13382. let styles4 = stylesRef.current, wasPresent = prevPresentRef.current;
  13383. if (wasPresent !== present) {
  13384. let prevAnimationName = prevAnimationNameRef.current, currentAnimationName = getAnimationName(styles4);
  13385. present ? send("MOUNT") : currentAnimationName === "none" || styles4?.display === "none" ? send("UNMOUNT") : send(wasPresent && prevAnimationName !== currentAnimationName ? "ANIMATION_OUT" : "UNMOUNT"), prevPresentRef.current = present;
  13386. }
  13387. }, [present, send]), useLayoutEffect22(() => {
  13388. if (node2) {
  13389. let handleAnimationEnd = (event) => {
  13390. let isCurrentAnimation = getAnimationName(stylesRef.current).includes(event.animationName);
  13391. event.target === node2 && isCurrentAnimation && ReactDOM2.flushSync(() => send("ANIMATION_END"));
  13392. }, handleAnimationStart = (event) => {
  13393. event.target === node2 && (prevAnimationNameRef.current = getAnimationName(stylesRef.current));
  13394. };
  13395. return node2.addEventListener("animationstart", handleAnimationStart), node2.addEventListener("animationcancel", handleAnimationEnd), node2.addEventListener("animationend", handleAnimationEnd), () => {
  13396. node2.removeEventListener("animationstart", handleAnimationStart), node2.removeEventListener("animationcancel", handleAnimationEnd), node2.removeEventListener("animationend", handleAnimationEnd);
  13397. };
  13398. } else
  13399. send("ANIMATION_END");
  13400. }, [node2, send]), {
  13401. isPresent: ["mounted", "unmountSuspended"].includes(state3),
  13402. ref: React22.useCallback((node22) => {
  13403. node22 && (stylesRef.current = getComputedStyle(node22)), setNode(node22);
  13404. }, [])
  13405. };
  13406. }
  13407. function getAnimationName(styles4) {
  13408. return styles4?.animationName || "none";
  13409. }
  13410. function getElementRef2(element) {
  13411. let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
  13412. return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
  13413. }
  13414. var React22, ReactDOM2, React13, Presence, init_dist6 = __esm({
  13415. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs"() {
  13416. "use client";
  13417. React22 = __toESM(require_react(), 1), ReactDOM2 = __toESM(require_react_dom(), 1);
  13418. init_dist2();
  13419. init_dist5();
  13420. React13 = __toESM(require_react(), 1);
  13421. Presence = (props) => {
  13422. let { present, children } = props, presence = usePresence(present), child = typeof children == "function" ? children({ present: presence.isPresent }) : React22.Children.only(children), ref = useComposedRefs(presence.ref, getElementRef2(child));
  13423. return typeof children == "function" || presence.isPresent ? React22.cloneElement(child, { ref }) : null;
  13424. };
  13425. Presence.displayName = "Presence";
  13426. }
  13427. });
  13428. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs
  13429. function createContextScope(scopeName, createContextScopeDeps = []) {
  13430. let defaultContexts = [];
  13431. function createContext32(rootComponentName, defaultContext) {
  13432. let BaseContext = React14.createContext(defaultContext), index4 = defaultContexts.length;
  13433. defaultContexts = [...defaultContexts, defaultContext];
  13434. function Provider(props) {
  13435. let { scope: scope2, children, ...context } = props, Context = scope2?.[scopeName][index4] || BaseContext, value = React14.useMemo(() => context, Object.values(context));
  13436. return (0, import_jsx_runtime3.jsx)(Context.Provider, { value, children });
  13437. }
  13438. function useContext22(consumerName, scope2) {
  13439. let Context = scope2?.[scopeName][index4] || BaseContext, context = React14.useContext(Context);
  13440. if (context) return context;
  13441. if (defaultContext !== void 0) return defaultContext;
  13442. throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
  13443. }
  13444. return Provider.displayName = rootComponentName + "Provider", [Provider, useContext22];
  13445. }
  13446. let createScope = () => {
  13447. let scopeContexts = defaultContexts.map((defaultContext) => React14.createContext(defaultContext));
  13448. return function(scope2) {
  13449. let contexts = scope2?.[scopeName] || scopeContexts;
  13450. return React14.useMemo(
  13451. () => ({ [`__scope${scopeName}`]: { ...scope2, [scopeName]: contexts } }),
  13452. [scope2, contexts]
  13453. );
  13454. };
  13455. };
  13456. return createScope.scopeName = scopeName, [createContext32, composeContextScopes(createScope, ...createContextScopeDeps)];
  13457. }
  13458. function composeContextScopes(...scopes) {
  13459. let baseScope = scopes[0];
  13460. if (scopes.length === 1) return baseScope;
  13461. let createScope = () => {
  13462. let scopeHooks = scopes.map((createScope2) => ({
  13463. useScope: createScope2(),
  13464. scopeName: createScope2.scopeName
  13465. }));
  13466. return function(overrideScopes) {
  13467. let nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
  13468. let currentScope = useScope(overrideScopes)[`__scope${scopeName}`];
  13469. return { ...nextScopes2, ...currentScope };
  13470. }, {});
  13471. return React14.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
  13472. };
  13473. };
  13474. return createScope.scopeName = baseScope.scopeName, createScope;
  13475. }
  13476. var React14, import_jsx_runtime3, init_dist7 = __esm({
  13477. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs"() {
  13478. React14 = __toESM(require_react(), 1), import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
  13479. }
  13480. });
  13481. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
  13482. function useCallbackRef(callback) {
  13483. let callbackRef = React15.useRef(callback);
  13484. return React15.useEffect(() => {
  13485. callbackRef.current = callback;
  13486. }), React15.useMemo(() => (...args) => callbackRef.current?.(...args), []);
  13487. }
  13488. var React15, init_dist8 = __esm({
  13489. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"() {
  13490. React15 = __toESM(require_react(), 1);
  13491. }
  13492. });
  13493. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs
  13494. function useDirection(localDir) {
  13495. let globalDir = React16.useContext(DirectionContext);
  13496. return localDir || globalDir || "ltr";
  13497. }
  13498. var React16, import_jsx_runtime4, DirectionContext, init_dist9 = __esm({
  13499. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs"() {
  13500. React16 = __toESM(require_react(), 1), import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1), DirectionContext = React16.createContext(void 0);
  13501. }
  13502. });
  13503. // ../../node_modules/@radix-ui/number/dist/index.mjs
  13504. function clamp(value, [min2, max2]) {
  13505. return Math.min(max2, Math.max(min2, value));
  13506. }
  13507. var init_dist10 = __esm({
  13508. "../../node_modules/@radix-ui/number/dist/index.mjs"() {
  13509. }
  13510. });
  13511. // ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs
  13512. function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = !0 } = {}) {
  13513. return function(event) {
  13514. if (originalEventHandler?.(event), checkForDefaultPrevented === !1 || !event.defaultPrevented)
  13515. return ourEventHandler?.(event);
  13516. };
  13517. }
  13518. var init_dist11 = __esm({
  13519. "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs"() {
  13520. }
  13521. });
  13522. // ../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs
  13523. function useStateMachine2(initialState2, machine) {
  13524. return React17.useReducer((state3, event) => machine[state3][event] ?? state3, initialState2);
  13525. }
  13526. function toInt(value) {
  13527. return value ? parseInt(value, 10) : 0;
  13528. }
  13529. function getThumbRatio(viewportSize, contentSize) {
  13530. let ratio = viewportSize / contentSize;
  13531. return isNaN(ratio) ? 0 : ratio;
  13532. }
  13533. function getThumbSize(sizes2) {
  13534. let ratio = getThumbRatio(sizes2.viewport, sizes2.content), scrollbarPadding = sizes2.scrollbar.paddingStart + sizes2.scrollbar.paddingEnd, thumbSize = (sizes2.scrollbar.size - scrollbarPadding) * ratio;
  13535. return Math.max(thumbSize, 18);
  13536. }
  13537. function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes2, dir = "ltr") {
  13538. let thumbSizePx = getThumbSize(sizes2), thumbCenter = thumbSizePx / 2, offset3 = pointerOffset || thumbCenter, thumbOffsetFromEnd = thumbSizePx - offset3, minPointerPos = sizes2.scrollbar.paddingStart + offset3, maxPointerPos = sizes2.scrollbar.size - sizes2.scrollbar.paddingEnd - thumbOffsetFromEnd, maxScrollPos = sizes2.content - sizes2.viewport, scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
  13539. return linearScale([minPointerPos, maxPointerPos], scrollRange)(pointerPos);
  13540. }
  13541. function getThumbOffsetFromScroll(scrollPos, sizes2, dir = "ltr") {
  13542. let thumbSizePx = getThumbSize(sizes2), scrollbarPadding = sizes2.scrollbar.paddingStart + sizes2.scrollbar.paddingEnd, scrollbar = sizes2.scrollbar.size - scrollbarPadding, maxScrollPos = sizes2.content - sizes2.viewport, maxThumbPos = scrollbar - thumbSizePx, scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0], scrollWithoutMomentum = clamp(scrollPos, scrollClampRange);
  13543. return linearScale([0, maxScrollPos], [0, maxThumbPos])(scrollWithoutMomentum);
  13544. }
  13545. function linearScale(input2, output) {
  13546. return (value) => {
  13547. if (input2[0] === input2[1] || output[0] === output[1]) return output[0];
  13548. let ratio = (output[1] - output[0]) / (input2[1] - input2[0]);
  13549. return output[0] + ratio * (value - input2[0]);
  13550. };
  13551. }
  13552. function isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {
  13553. return scrollPos > 0 && scrollPos < maxScrollPos;
  13554. }
  13555. function useDebounceCallback(callback, delay) {
  13556. let handleCallback = useCallbackRef(callback), debounceTimerRef = React23.useRef(0);
  13557. return React23.useEffect(() => () => window.clearTimeout(debounceTimerRef.current), []), React23.useCallback(() => {
  13558. window.clearTimeout(debounceTimerRef.current), debounceTimerRef.current = window.setTimeout(handleCallback, delay);
  13559. }, [handleCallback, delay]);
  13560. }
  13561. function useResizeObserver(element, onResize) {
  13562. let handleResize = useCallbackRef(onResize);
  13563. useLayoutEffect22(() => {
  13564. let rAF = 0;
  13565. if (element) {
  13566. let resizeObserver = new ResizeObserver(() => {
  13567. cancelAnimationFrame(rAF), rAF = window.requestAnimationFrame(handleResize);
  13568. });
  13569. return resizeObserver.observe(element), () => {
  13570. window.cancelAnimationFrame(rAF), resizeObserver.unobserve(element);
  13571. };
  13572. }
  13573. }, [element, handleResize]);
  13574. }
  13575. function getSubtree(options, content) {
  13576. let { asChild, children } = options;
  13577. if (!asChild) return typeof content == "function" ? content(children) : content;
  13578. let firstChild = React23.Children.only(children);
  13579. return React23.cloneElement(firstChild, {
  13580. children: typeof content == "function" ? content(firstChild.props.children) : content
  13581. });
  13582. }
  13583. var React23, React17, import_jsx_runtime5, SCROLL_AREA_NAME, createScrollAreaContext, createScrollAreaScope, ScrollAreaProvider, useScrollAreaContext, ScrollArea, VIEWPORT_NAME, ScrollAreaViewport, SCROLLBAR_NAME, ScrollAreaScrollbar, ScrollAreaScrollbarHover, ScrollAreaScrollbarScroll, ScrollAreaScrollbarAuto, ScrollAreaScrollbarVisible, ScrollAreaScrollbarX, ScrollAreaScrollbarY, ScrollbarProvider, useScrollbarContext, ScrollAreaScrollbarImpl, THUMB_NAME, ScrollAreaThumb, ScrollAreaThumbImpl, CORNER_NAME, ScrollAreaCorner, ScrollAreaCornerImpl, addUnlinkedScrollListener, Root, Viewport, Scrollbar, Thumb, Corner, init_dist12 = __esm({
  13584. "../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs"() {
  13585. "use client";
  13586. React23 = __toESM(require_react(), 1);
  13587. init_dist4();
  13588. init_dist6();
  13589. init_dist7();
  13590. init_dist2();
  13591. init_dist8();
  13592. init_dist9();
  13593. init_dist5();
  13594. init_dist10();
  13595. init_dist11();
  13596. React17 = __toESM(require_react(), 1), import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
  13597. SCROLL_AREA_NAME = "ScrollArea", [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME), [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME), ScrollArea = React23.forwardRef(
  13598. (props, forwardedRef) => {
  13599. let {
  13600. __scopeScrollArea,
  13601. type: type5 = "hover",
  13602. dir,
  13603. scrollHideDelay = 600,
  13604. ...scrollAreaProps
  13605. } = props, [scrollArea, setScrollArea] = React23.useState(null), [viewport2, setViewport] = React23.useState(null), [content, setContent] = React23.useState(null), [scrollbarX, setScrollbarX] = React23.useState(null), [scrollbarY, setScrollbarY] = React23.useState(null), [cornerWidth, setCornerWidth] = React23.useState(0), [cornerHeight, setCornerHeight] = React23.useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = React23.useState(!1), [scrollbarYEnabled, setScrollbarYEnabled] = React23.useState(!1), composedRefs = useComposedRefs(forwardedRef, (node2) => setScrollArea(node2)), direction = useDirection(dir);
  13606. return (0, import_jsx_runtime5.jsx)(
  13607. ScrollAreaProvider,
  13608. {
  13609. scope: __scopeScrollArea,
  13610. type: type5,
  13611. dir: direction,
  13612. scrollHideDelay,
  13613. scrollArea,
  13614. viewport: viewport2,
  13615. onViewportChange: setViewport,
  13616. content,
  13617. onContentChange: setContent,
  13618. scrollbarX,
  13619. onScrollbarXChange: setScrollbarX,
  13620. scrollbarXEnabled,
  13621. onScrollbarXEnabledChange: setScrollbarXEnabled,
  13622. scrollbarY,
  13623. onScrollbarYChange: setScrollbarY,
  13624. scrollbarYEnabled,
  13625. onScrollbarYEnabledChange: setScrollbarYEnabled,
  13626. onCornerWidthChange: setCornerWidth,
  13627. onCornerHeightChange: setCornerHeight,
  13628. children: (0, import_jsx_runtime5.jsx)(
  13629. Primitive.div,
  13630. {
  13631. dir: direction,
  13632. ...scrollAreaProps,
  13633. ref: composedRefs,
  13634. style: {
  13635. position: "relative",
  13636. // Pass corner sizes as CSS vars to reduce re-renders of context consumers
  13637. "--radix-scroll-area-corner-width": cornerWidth + "px",
  13638. "--radix-scroll-area-corner-height": cornerHeight + "px",
  13639. ...props.style
  13640. }
  13641. }
  13642. )
  13643. }
  13644. );
  13645. }
  13646. );
  13647. ScrollArea.displayName = SCROLL_AREA_NAME;
  13648. VIEWPORT_NAME = "ScrollAreaViewport", ScrollAreaViewport = React23.forwardRef(
  13649. (props, forwardedRef) => {
  13650. let { __scopeScrollArea, children, asChild, nonce, ...viewportProps } = props, context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea), ref = React23.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
  13651. return (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
  13652. (0, import_jsx_runtime5.jsx)(
  13653. "style",
  13654. {
  13655. dangerouslySetInnerHTML: {
  13656. __html: `
  13657. [data-radix-scroll-area-viewport] {
  13658. scrollbar-width: none;
  13659. -ms-overflow-style: none;
  13660. -webkit-overflow-scrolling: touch;
  13661. }
  13662. [data-radix-scroll-area-viewport]::-webkit-scrollbar {
  13663. display: none;
  13664. }
  13665. :where([data-radix-scroll-area-viewport]) {
  13666. display: flex;
  13667. flex-direction: column;
  13668. align-items: stretch;
  13669. }
  13670. :where([data-radix-scroll-area-content]) {
  13671. flex-grow: 1;
  13672. }
  13673. `
  13674. },
  13675. nonce
  13676. }
  13677. ),
  13678. (0, import_jsx_runtime5.jsx)(
  13679. Primitive.div,
  13680. {
  13681. "data-radix-scroll-area-viewport": "",
  13682. ...viewportProps,
  13683. asChild,
  13684. ref: composedRefs,
  13685. style: {
  13686. /**
  13687. * We don't support `visible` because the intention is to have at least one scrollbar
  13688. * if this component is used and `visible` will behave like `auto` in that case
  13689. * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#description
  13690. *
  13691. * We don't handle `auto` because the intention is for the native implementation
  13692. * to be hidden if using this component. We just want to ensure the node is scrollable
  13693. * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent
  13694. * the browser from having to work out whether to render native scrollbars or not,
  13695. * we tell it to with the intention of hiding them in CSS.
  13696. */
  13697. overflowX: context.scrollbarXEnabled ? "scroll" : "hidden",
  13698. overflowY: context.scrollbarYEnabled ? "scroll" : "hidden",
  13699. ...props.style
  13700. },
  13701. children: getSubtree({ asChild, children }, (children2) => (0, import_jsx_runtime5.jsx)(
  13702. "div",
  13703. {
  13704. "data-radix-scroll-area-content": "",
  13705. ref: context.onContentChange,
  13706. style: { minWidth: context.scrollbarXEnabled ? "fit-content" : void 0 },
  13707. children: children2
  13708. }
  13709. ))
  13710. }
  13711. )
  13712. ] });
  13713. }
  13714. );
  13715. ScrollAreaViewport.displayName = VIEWPORT_NAME;
  13716. SCROLLBAR_NAME = "ScrollAreaScrollbar", ScrollAreaScrollbar = React23.forwardRef(
  13717. (props, forwardedRef) => {
  13718. let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context, isHorizontal = props.orientation === "horizontal";
  13719. return React23.useEffect(() => (isHorizontal ? onScrollbarXEnabledChange(!0) : onScrollbarYEnabledChange(!0), () => {
  13720. isHorizontal ? onScrollbarXEnabledChange(!1) : onScrollbarYEnabledChange(!1);
  13721. }), [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]), context.type === "hover" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarHover, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "scroll" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarScroll, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "auto" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "always" ? (0, import_jsx_runtime5.jsx)(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;
  13722. }
  13723. );
  13724. ScrollAreaScrollbar.displayName = SCROLLBAR_NAME;
  13725. ScrollAreaScrollbarHover = React23.forwardRef((props, forwardedRef) => {
  13726. let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), [visible, setVisible] = React23.useState(!1);
  13727. return React23.useEffect(() => {
  13728. let scrollArea = context.scrollArea, hideTimer = 0;
  13729. if (scrollArea) {
  13730. let handlePointerEnter = () => {
  13731. window.clearTimeout(hideTimer), setVisible(!0);
  13732. }, handlePointerLeave = () => {
  13733. hideTimer = window.setTimeout(() => setVisible(!1), context.scrollHideDelay);
  13734. };
  13735. return scrollArea.addEventListener("pointerenter", handlePointerEnter), scrollArea.addEventListener("pointerleave", handlePointerLeave), () => {
  13736. window.clearTimeout(hideTimer), scrollArea.removeEventListener("pointerenter", handlePointerEnter), scrollArea.removeEventListener("pointerleave", handlePointerLeave);
  13737. };
  13738. }
  13739. }, [context.scrollArea, context.scrollHideDelay]), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || visible, children: (0, import_jsx_runtime5.jsx)(
  13740. ScrollAreaScrollbarAuto,
  13741. {
  13742. "data-state": visible ? "visible" : "hidden",
  13743. ...scrollbarProps,
  13744. ref: forwardedRef
  13745. }
  13746. ) });
  13747. }), ScrollAreaScrollbarScroll = React23.forwardRef((props, forwardedRef) => {
  13748. let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), isHorizontal = props.orientation === "horizontal", debounceScrollEnd = useDebounceCallback(() => send("SCROLL_END"), 100), [state3, send] = useStateMachine2("hidden", {
  13749. hidden: {
  13750. SCROLL: "scrolling"
  13751. },
  13752. scrolling: {
  13753. SCROLL_END: "idle",
  13754. POINTER_ENTER: "interacting"
  13755. },
  13756. interacting: {
  13757. SCROLL: "interacting",
  13758. POINTER_LEAVE: "idle"
  13759. },
  13760. idle: {
  13761. HIDE: "hidden",
  13762. SCROLL: "scrolling",
  13763. POINTER_ENTER: "interacting"
  13764. }
  13765. });
  13766. return React23.useEffect(() => {
  13767. if (state3 === "idle") {
  13768. let hideTimer = window.setTimeout(() => send("HIDE"), context.scrollHideDelay);
  13769. return () => window.clearTimeout(hideTimer);
  13770. }
  13771. }, [state3, context.scrollHideDelay, send]), React23.useEffect(() => {
  13772. let viewport2 = context.viewport, scrollDirection = isHorizontal ? "scrollLeft" : "scrollTop";
  13773. if (viewport2) {
  13774. let prevScrollPos = viewport2[scrollDirection], handleScroll = () => {
  13775. let scrollPos = viewport2[scrollDirection];
  13776. prevScrollPos !== scrollPos && (send("SCROLL"), debounceScrollEnd()), prevScrollPos = scrollPos;
  13777. };
  13778. return viewport2.addEventListener("scroll", handleScroll), () => viewport2.removeEventListener("scroll", handleScroll);
  13779. }
  13780. }, [context.viewport, isHorizontal, send, debounceScrollEnd]), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || state3 !== "hidden", children: (0, import_jsx_runtime5.jsx)(
  13781. ScrollAreaScrollbarVisible,
  13782. {
  13783. "data-state": state3 === "hidden" ? "hidden" : "visible",
  13784. ...scrollbarProps,
  13785. ref: forwardedRef,
  13786. onPointerEnter: composeEventHandlers(props.onPointerEnter, () => send("POINTER_ENTER")),
  13787. onPointerLeave: composeEventHandlers(props.onPointerLeave, () => send("POINTER_LEAVE"))
  13788. }
  13789. ) });
  13790. }), ScrollAreaScrollbarAuto = React23.forwardRef((props, forwardedRef) => {
  13791. let context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), { forceMount, ...scrollbarProps } = props, [visible, setVisible] = React23.useState(!1), isHorizontal = props.orientation === "horizontal", handleResize = useDebounceCallback(() => {
  13792. if (context.viewport) {
  13793. let isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth, isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;
  13794. setVisible(isHorizontal ? isOverflowX : isOverflowY);
  13795. }
  13796. }, 10);
  13797. return useResizeObserver(context.viewport, handleResize), useResizeObserver(context.content, handleResize), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || visible, children: (0, import_jsx_runtime5.jsx)(
  13798. ScrollAreaScrollbarVisible,
  13799. {
  13800. "data-state": visible ? "visible" : "hidden",
  13801. ...scrollbarProps,
  13802. ref: forwardedRef
  13803. }
  13804. ) });
  13805. }), ScrollAreaScrollbarVisible = React23.forwardRef((props, forwardedRef) => {
  13806. let { orientation = "vertical", ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), thumbRef = React23.useRef(null), pointerOffsetRef = React23.useRef(0), [sizes2, setSizes] = React23.useState({
  13807. content: 0,
  13808. viewport: 0,
  13809. scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
  13810. }), thumbRatio = getThumbRatio(sizes2.viewport, sizes2.content), commonProps = {
  13811. ...scrollbarProps,
  13812. sizes: sizes2,
  13813. onSizesChange: setSizes,
  13814. hasThumb: thumbRatio > 0 && thumbRatio < 1,
  13815. onThumbChange: (thumb) => thumbRef.current = thumb,
  13816. onThumbPointerUp: () => pointerOffsetRef.current = 0,
  13817. onThumbPointerDown: (pointerPos) => pointerOffsetRef.current = pointerPos
  13818. };
  13819. function getScrollPosition(pointerPos, dir) {
  13820. return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes2, dir);
  13821. }
  13822. return orientation === "horizontal" ? (0, import_jsx_runtime5.jsx)(
  13823. ScrollAreaScrollbarX,
  13824. {
  13825. ...commonProps,
  13826. ref: forwardedRef,
  13827. onThumbPositionChange: () => {
  13828. if (context.viewport && thumbRef.current) {
  13829. let scrollPos = context.viewport.scrollLeft, offset3 = getThumbOffsetFromScroll(scrollPos, sizes2, context.dir);
  13830. thumbRef.current.style.transform = `translate3d(${offset3}px, 0, 0)`;
  13831. }
  13832. },
  13833. onWheelScroll: (scrollPos) => {
  13834. context.viewport && (context.viewport.scrollLeft = scrollPos);
  13835. },
  13836. onDragScroll: (pointerPos) => {
  13837. context.viewport && (context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir));
  13838. }
  13839. }
  13840. ) : orientation === "vertical" ? (0, import_jsx_runtime5.jsx)(
  13841. ScrollAreaScrollbarY,
  13842. {
  13843. ...commonProps,
  13844. ref: forwardedRef,
  13845. onThumbPositionChange: () => {
  13846. if (context.viewport && thumbRef.current) {
  13847. let scrollPos = context.viewport.scrollTop, offset3 = getThumbOffsetFromScroll(scrollPos, sizes2);
  13848. thumbRef.current.style.transform = `translate3d(0, ${offset3}px, 0)`;
  13849. }
  13850. },
  13851. onWheelScroll: (scrollPos) => {
  13852. context.viewport && (context.viewport.scrollTop = scrollPos);
  13853. },
  13854. onDragScroll: (pointerPos) => {
  13855. context.viewport && (context.viewport.scrollTop = getScrollPosition(pointerPos));
  13856. }
  13857. }
  13858. ) : null;
  13859. }), ScrollAreaScrollbarX = React23.forwardRef((props, forwardedRef) => {
  13860. let { sizes: sizes2, onSizesChange, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), [computedStyle, setComputedStyle] = React23.useState(), ref = React23.useRef(null), composeRefs3 = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);
  13861. return React23.useEffect(() => {
  13862. ref.current && setComputedStyle(getComputedStyle(ref.current));
  13863. }, [ref]), (0, import_jsx_runtime5.jsx)(
  13864. ScrollAreaScrollbarImpl,
  13865. {
  13866. "data-orientation": "horizontal",
  13867. ...scrollbarProps,
  13868. ref: composeRefs3,
  13869. sizes: sizes2,
  13870. style: {
  13871. bottom: 0,
  13872. left: context.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
  13873. right: context.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
  13874. "--radix-scroll-area-thumb-width": getThumbSize(sizes2) + "px",
  13875. ...props.style
  13876. },
  13877. onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),
  13878. onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),
  13879. onWheelScroll: (event, maxScrollPos) => {
  13880. if (context.viewport) {
  13881. let scrollPos = context.viewport.scrollLeft + event.deltaX;
  13882. props.onWheelScroll(scrollPos), isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) && event.preventDefault();
  13883. }
  13884. },
  13885. onResize: () => {
  13886. ref.current && context.viewport && computedStyle && onSizesChange({
  13887. content: context.viewport.scrollWidth,
  13888. viewport: context.viewport.offsetWidth,
  13889. scrollbar: {
  13890. size: ref.current.clientWidth,
  13891. paddingStart: toInt(computedStyle.paddingLeft),
  13892. paddingEnd: toInt(computedStyle.paddingRight)
  13893. }
  13894. });
  13895. }
  13896. }
  13897. );
  13898. }), ScrollAreaScrollbarY = React23.forwardRef((props, forwardedRef) => {
  13899. let { sizes: sizes2, onSizesChange, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), [computedStyle, setComputedStyle] = React23.useState(), ref = React23.useRef(null), composeRefs3 = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);
  13900. return React23.useEffect(() => {
  13901. ref.current && setComputedStyle(getComputedStyle(ref.current));
  13902. }, [ref]), (0, import_jsx_runtime5.jsx)(
  13903. ScrollAreaScrollbarImpl,
  13904. {
  13905. "data-orientation": "vertical",
  13906. ...scrollbarProps,
  13907. ref: composeRefs3,
  13908. sizes: sizes2,
  13909. style: {
  13910. top: 0,
  13911. right: context.dir === "ltr" ? 0 : void 0,
  13912. left: context.dir === "rtl" ? 0 : void 0,
  13913. bottom: "var(--radix-scroll-area-corner-height)",
  13914. "--radix-scroll-area-thumb-height": getThumbSize(sizes2) + "px",
  13915. ...props.style
  13916. },
  13917. onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),
  13918. onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y),
  13919. onWheelScroll: (event, maxScrollPos) => {
  13920. if (context.viewport) {
  13921. let scrollPos = context.viewport.scrollTop + event.deltaY;
  13922. props.onWheelScroll(scrollPos), isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) && event.preventDefault();
  13923. }
  13924. },
  13925. onResize: () => {
  13926. ref.current && context.viewport && computedStyle && onSizesChange({
  13927. content: context.viewport.scrollHeight,
  13928. viewport: context.viewport.offsetHeight,
  13929. scrollbar: {
  13930. size: ref.current.clientHeight,
  13931. paddingStart: toInt(computedStyle.paddingTop),
  13932. paddingEnd: toInt(computedStyle.paddingBottom)
  13933. }
  13934. });
  13935. }
  13936. }
  13937. );
  13938. }), [ScrollbarProvider, useScrollbarContext] = createScrollAreaContext(SCROLLBAR_NAME), ScrollAreaScrollbarImpl = React23.forwardRef((props, forwardedRef) => {
  13939. let {
  13940. __scopeScrollArea,
  13941. sizes: sizes2,
  13942. hasThumb,
  13943. onThumbChange,
  13944. onThumbPointerUp,
  13945. onThumbPointerDown,
  13946. onThumbPositionChange,
  13947. onDragScroll,
  13948. onWheelScroll,
  13949. onResize,
  13950. ...scrollbarProps
  13951. } = props, context = useScrollAreaContext(SCROLLBAR_NAME, __scopeScrollArea), [scrollbar, setScrollbar] = React23.useState(null), composeRefs3 = useComposedRefs(forwardedRef, (node2) => setScrollbar(node2)), rectRef = React23.useRef(null), prevWebkitUserSelectRef = React23.useRef(""), viewport2 = context.viewport, maxScrollPos = sizes2.content - sizes2.viewport, handleWheelScroll = useCallbackRef(onWheelScroll), handleThumbPositionChange = useCallbackRef(onThumbPositionChange), handleResize = useDebounceCallback(onResize, 10);
  13952. function handleDragScroll(event) {
  13953. if (rectRef.current) {
  13954. let x = event.clientX - rectRef.current.left, y = event.clientY - rectRef.current.top;
  13955. onDragScroll({ x, y });
  13956. }
  13957. }
  13958. return React23.useEffect(() => {
  13959. let handleWheel = (event) => {
  13960. let element = event.target;
  13961. scrollbar?.contains(element) && handleWheelScroll(event, maxScrollPos);
  13962. };
  13963. return document.addEventListener("wheel", handleWheel, { passive: !1 }), () => document.removeEventListener("wheel", handleWheel, { passive: !1 });
  13964. }, [viewport2, scrollbar, maxScrollPos, handleWheelScroll]), React23.useEffect(handleThumbPositionChange, [sizes2, handleThumbPositionChange]), useResizeObserver(scrollbar, handleResize), useResizeObserver(context.content, handleResize), (0, import_jsx_runtime5.jsx)(
  13965. ScrollbarProvider,
  13966. {
  13967. scope: __scopeScrollArea,
  13968. scrollbar,
  13969. hasThumb,
  13970. onThumbChange: useCallbackRef(onThumbChange),
  13971. onThumbPointerUp: useCallbackRef(onThumbPointerUp),
  13972. onThumbPositionChange: handleThumbPositionChange,
  13973. onThumbPointerDown: useCallbackRef(onThumbPointerDown),
  13974. children: (0, import_jsx_runtime5.jsx)(
  13975. Primitive.div,
  13976. {
  13977. ...scrollbarProps,
  13978. ref: composeRefs3,
  13979. style: { position: "absolute", ...scrollbarProps.style },
  13980. onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {
  13981. event.button === 0 && (event.target.setPointerCapture(event.pointerId), rectRef.current = scrollbar.getBoundingClientRect(), prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", context.viewport && (context.viewport.style.scrollBehavior = "auto"), handleDragScroll(event));
  13982. }),
  13983. onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),
  13984. onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {
  13985. let element = event.target;
  13986. element.hasPointerCapture(event.pointerId) && element.releasePointerCapture(event.pointerId), document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current, context.viewport && (context.viewport.style.scrollBehavior = ""), rectRef.current = null;
  13987. })
  13988. }
  13989. )
  13990. }
  13991. );
  13992. }), THUMB_NAME = "ScrollAreaThumb", ScrollAreaThumb = React23.forwardRef(
  13993. (props, forwardedRef) => {
  13994. let { forceMount, ...thumbProps } = props, scrollbarContext = useScrollbarContext(THUMB_NAME, props.__scopeScrollArea);
  13995. return (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || scrollbarContext.hasThumb, children: (0, import_jsx_runtime5.jsx)(ScrollAreaThumbImpl, { ref: forwardedRef, ...thumbProps }) });
  13996. }
  13997. ), ScrollAreaThumbImpl = React23.forwardRef(
  13998. (props, forwardedRef) => {
  13999. let { __scopeScrollArea, style, ...thumbProps } = props, scrollAreaContext = useScrollAreaContext(THUMB_NAME, __scopeScrollArea), scrollbarContext = useScrollbarContext(THUMB_NAME, __scopeScrollArea), { onThumbPositionChange } = scrollbarContext, composedRef = useComposedRefs(
  14000. forwardedRef,
  14001. (node2) => scrollbarContext.onThumbChange(node2)
  14002. ), removeUnlinkedScrollListenerRef = React23.useRef(), debounceScrollEnd = useDebounceCallback(() => {
  14003. removeUnlinkedScrollListenerRef.current && (removeUnlinkedScrollListenerRef.current(), removeUnlinkedScrollListenerRef.current = void 0);
  14004. }, 100);
  14005. return React23.useEffect(() => {
  14006. let viewport2 = scrollAreaContext.viewport;
  14007. if (viewport2) {
  14008. let handleScroll = () => {
  14009. if (debounceScrollEnd(), !removeUnlinkedScrollListenerRef.current) {
  14010. let listener = addUnlinkedScrollListener(viewport2, onThumbPositionChange);
  14011. removeUnlinkedScrollListenerRef.current = listener, onThumbPositionChange();
  14012. }
  14013. };
  14014. return onThumbPositionChange(), viewport2.addEventListener("scroll", handleScroll), () => viewport2.removeEventListener("scroll", handleScroll);
  14015. }
  14016. }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]), (0, import_jsx_runtime5.jsx)(
  14017. Primitive.div,
  14018. {
  14019. "data-state": scrollbarContext.hasThumb ? "visible" : "hidden",
  14020. ...thumbProps,
  14021. ref: composedRef,
  14022. style: {
  14023. width: "var(--radix-scroll-area-thumb-width)",
  14024. height: "var(--radix-scroll-area-thumb-height)",
  14025. ...style
  14026. },
  14027. onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => {
  14028. let thumbRect = event.target.getBoundingClientRect(), x = event.clientX - thumbRect.left, y = event.clientY - thumbRect.top;
  14029. scrollbarContext.onThumbPointerDown({ x, y });
  14030. }),
  14031. onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)
  14032. }
  14033. );
  14034. }
  14035. );
  14036. ScrollAreaThumb.displayName = THUMB_NAME;
  14037. CORNER_NAME = "ScrollAreaCorner", ScrollAreaCorner = React23.forwardRef(
  14038. (props, forwardedRef) => {
  14039. let context = useScrollAreaContext(CORNER_NAME, props.__scopeScrollArea), hasBothScrollbarsVisible = !!(context.scrollbarX && context.scrollbarY);
  14040. return context.type !== "scroll" && hasBothScrollbarsVisible ? (0, import_jsx_runtime5.jsx)(ScrollAreaCornerImpl, { ...props, ref: forwardedRef }) : null;
  14041. }
  14042. );
  14043. ScrollAreaCorner.displayName = CORNER_NAME;
  14044. ScrollAreaCornerImpl = React23.forwardRef((props, forwardedRef) => {
  14045. let { __scopeScrollArea, ...cornerProps } = props, context = useScrollAreaContext(CORNER_NAME, __scopeScrollArea), [width, setWidth] = React23.useState(0), [height, setHeight] = React23.useState(0), hasSize = !!(width && height);
  14046. return useResizeObserver(context.scrollbarX, () => {
  14047. let height2 = context.scrollbarX?.offsetHeight || 0;
  14048. context.onCornerHeightChange(height2), setHeight(height2);
  14049. }), useResizeObserver(context.scrollbarY, () => {
  14050. let width2 = context.scrollbarY?.offsetWidth || 0;
  14051. context.onCornerWidthChange(width2), setWidth(width2);
  14052. }), hasSize ? (0, import_jsx_runtime5.jsx)(
  14053. Primitive.div,
  14054. {
  14055. ...cornerProps,
  14056. ref: forwardedRef,
  14057. style: {
  14058. width,
  14059. height,
  14060. position: "absolute",
  14061. right: context.dir === "ltr" ? 0 : void 0,
  14062. left: context.dir === "rtl" ? 0 : void 0,
  14063. bottom: 0,
  14064. ...props.style
  14065. }
  14066. }
  14067. ) : null;
  14068. });
  14069. addUnlinkedScrollListener = (node2, handler = () => {
  14070. }) => {
  14071. let prevPosition = { left: node2.scrollLeft, top: node2.scrollTop }, rAF = 0;
  14072. return (function loop() {
  14073. let position2 = { left: node2.scrollLeft, top: node2.scrollTop }, isHorizontalScroll = prevPosition.left !== position2.left, isVerticalScroll = prevPosition.top !== position2.top;
  14074. (isHorizontalScroll || isVerticalScroll) && handler(), prevPosition = position2, rAF = window.requestAnimationFrame(loop);
  14075. })(), () => window.cancelAnimationFrame(rAF);
  14076. };
  14077. Root = ScrollArea, Viewport = ScrollAreaViewport, Scrollbar = ScrollAreaScrollbar, Thumb = ScrollAreaThumb, Corner = ScrollAreaCorner;
  14078. }
  14079. });
  14080. // src/components/components/ScrollArea/ScrollArea.tsx
  14081. var import_react11, ScrollAreaRoot, ScrollAreaViewport2, ScrollAreaScrollbar2, ScrollAreaThumb2, ScrollArea2, init_ScrollArea = __esm({
  14082. "src/components/components/ScrollArea/ScrollArea.tsx"() {
  14083. "use strict";
  14084. import_react11 = __toESM(require_react(), 1);
  14085. init_dist12();
  14086. init_theming();
  14087. ScrollAreaRoot = styled(Root)(
  14088. ({ scrollbarsize, offset: offset3 }) => ({
  14089. width: "100%",
  14090. height: "100%",
  14091. overflow: "hidden",
  14092. "--scrollbar-size": `${scrollbarsize + offset3}px`,
  14093. "--radix-scroll-area-thumb-width": `${scrollbarsize}px`
  14094. })
  14095. ), ScrollAreaViewport2 = styled(Viewport)(
  14096. ({ focusable, theme: theme3 }) => ({
  14097. width: "100%",
  14098. height: "100%",
  14099. "&:focus": focusable ? {
  14100. outline: `2px solid ${theme3.color.secondary}`,
  14101. outlineOffset: -2
  14102. } : {}
  14103. })
  14104. ), ScrollAreaScrollbar2 = styled(Scrollbar)(({ offset: offset3, horizontal, vertical }) => ({
  14105. display: "flex",
  14106. userSelect: "none",
  14107. // ensures no selection
  14108. touchAction: "none",
  14109. // disable browser handling of all panning and zooming gestures on touch devices
  14110. background: "transparent",
  14111. transition: "all 0.2s ease-out",
  14112. borderRadius: "var(--scrollbar-size)",
  14113. zIndex: 1,
  14114. '&[data-orientation="vertical"]': {
  14115. width: "var(--scrollbar-size)",
  14116. paddingRight: offset3,
  14117. marginTop: offset3,
  14118. marginBottom: horizontal === "true" && vertical === "true" ? 0 : offset3
  14119. },
  14120. '&[data-orientation="horizontal"]': {
  14121. flexDirection: "column",
  14122. height: "var(--scrollbar-size)",
  14123. paddingBottom: offset3,
  14124. marginLeft: offset3,
  14125. marginRight: horizontal === "true" && vertical === "true" ? 0 : offset3
  14126. }
  14127. })), ScrollAreaThumb2 = styled(Thumb)(({ theme: theme3 }) => ({
  14128. flex: 1,
  14129. background: theme3.textMutedColor,
  14130. opacity: 0.5,
  14131. borderRadius: "var(--scrollbar-size)",
  14132. position: "relative",
  14133. transition: "opacity 0.2s ease-out",
  14134. zIndex: 1,
  14135. "&:hover": { opacity: 0.8 },
  14136. /* increase target size for touch devices https://www.w3.org/WAI/WCAG21/Understanding/target-size.html */
  14137. "::before": {
  14138. content: '""',
  14139. position: "absolute",
  14140. top: "50%",
  14141. left: "50%",
  14142. transform: "translate(-50%,-50%)",
  14143. width: "100%",
  14144. height: "100%"
  14145. }
  14146. })), ScrollArea2 = (0, import_react11.forwardRef)(
  14147. ({
  14148. children,
  14149. horizontal = !1,
  14150. vertical = !1,
  14151. offset: offset3 = 2,
  14152. scrollbarSize = 6,
  14153. scrollPadding = 0,
  14154. className,
  14155. focusable = !1
  14156. }, ref) => import_react11.default.createElement(ScrollAreaRoot, { scrollbarsize: scrollbarSize, offset: offset3, className }, import_react11.default.createElement(
  14157. ScrollAreaViewport2,
  14158. {
  14159. ref,
  14160. style: { scrollPadding },
  14161. tabIndex: focusable ? 0 : void 0,
  14162. focusable
  14163. },
  14164. children
  14165. ), horizontal && import_react11.default.createElement(
  14166. ScrollAreaScrollbar2,
  14167. {
  14168. orientation: "horizontal",
  14169. offset: offset3,
  14170. horizontal: horizontal.toString(),
  14171. vertical: vertical.toString()
  14172. },
  14173. import_react11.default.createElement(ScrollAreaThumb2, null)
  14174. ), vertical && import_react11.default.createElement(
  14175. ScrollAreaScrollbar2,
  14176. {
  14177. orientation: "vertical",
  14178. offset: offset3,
  14179. horizontal: horizontal.toString(),
  14180. vertical: vertical.toString()
  14181. },
  14182. import_react11.default.createElement(ScrollAreaThumb2, null)
  14183. ), horizontal && vertical && import_react11.default.createElement(Corner, null))
  14184. );
  14185. ScrollArea2.displayName = "ScrollArea";
  14186. }
  14187. });
  14188. // ../../node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs
  14189. function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = 7e3) {
  14190. $319e236875307eab$var$liveAnnouncer ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : ($319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout) : setTimeout(() => {
  14191. $319e236875307eab$var$liveAnnouncer?.isAttached() && $319e236875307eab$var$liveAnnouncer?.announce(message, assertiveness, timeout);
  14192. }, 100));
  14193. }
  14194. function $319e236875307eab$export$d10ae4f68404609a(assertiveness) {
  14195. $319e236875307eab$var$liveAnnouncer && $319e236875307eab$var$liveAnnouncer.clear(assertiveness);
  14196. }
  14197. var $319e236875307eab$var$liveAnnouncer, $319e236875307eab$var$LiveAnnouncer, init_LiveAnnouncer = __esm({
  14198. "../../node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs"() {
  14199. $319e236875307eab$var$liveAnnouncer = null;
  14200. $319e236875307eab$var$LiveAnnouncer = class {
  14201. isAttached() {
  14202. var _this_node;
  14203. return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;
  14204. }
  14205. createLog(ariaLive) {
  14206. let node2 = document.createElement("div");
  14207. return node2.setAttribute("role", "log"), node2.setAttribute("aria-live", ariaLive), node2.setAttribute("aria-relevant", "additions"), node2;
  14208. }
  14209. destroy() {
  14210. this.node && (document.body.removeChild(this.node), this.node = null);
  14211. }
  14212. announce(message, assertiveness = "assertive", timeout = 7e3) {
  14213. var _this_assertiveLog, _this_politeLog;
  14214. if (!this.node) return;
  14215. let node2 = document.createElement("div");
  14216. typeof message == "object" ? (node2.setAttribute("role", "img"), node2.setAttribute("aria-labelledby", message["aria-labelledby"])) : node2.textContent = message, assertiveness === "assertive" ? (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 || _this_assertiveLog.appendChild(node2) : (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 || _this_politeLog.appendChild(node2), message !== "" && setTimeout(() => {
  14217. node2.remove();
  14218. }, timeout);
  14219. }
  14220. clear(assertiveness) {
  14221. this.node && ((!assertiveness || assertiveness === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!assertiveness || assertiveness === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
  14222. }
  14223. constructor() {
  14224. this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
  14225. border: 0,
  14226. clip: "rect(0 0 0 0)",
  14227. clipPath: "inset(50%)",
  14228. height: "1px",
  14229. margin: "-1px",
  14230. overflow: "hidden",
  14231. padding: 0,
  14232. position: "absolute",
  14233. width: "1px",
  14234. whiteSpace: "nowrap"
  14235. }), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
  14236. }
  14237. };
  14238. }
  14239. });
  14240. // ../../node_modules/@react-aria/live-announcer/dist/import.mjs
  14241. var init_import = __esm({
  14242. "../../node_modules/@react-aria/live-announcer/dist/import.mjs"() {
  14243. init_LiveAnnouncer();
  14244. }
  14245. });
  14246. // src/shared/useCopyButton.ts
  14247. function useCopyButton({
  14248. children = "Copy",
  14249. childrenOnCopy = "Copied!",
  14250. content,
  14251. onCopy,
  14252. ariaLabel = !1,
  14253. ariaLabelOnCopy = !1,
  14254. duration = 3e3
  14255. }) {
  14256. let [copied, setCopied] = (0, import_react12.useState)(!1), timerRef = (0, import_react12.useRef)(null);
  14257. (0, import_react12.useEffect)(
  14258. () => () => {
  14259. timerRef.current && clearTimeout(timerRef.current);
  14260. },
  14261. []
  14262. );
  14263. let handleClick = (0, import_react12.useCallback)(
  14264. (e) => {
  14265. timerRef.current && clearTimeout(timerRef.current);
  14266. let announcement = typeof ariaLabelOnCopy == "string" ? ariaLabelOnCopy : "Copied to clipboard";
  14267. navigator.clipboard?.writeText(content).then(() => {
  14268. onCopy?.(e), setCopied(!0), $319e236875307eab$export$a9b970dcc4ae71a9(announcement, "polite"), timerRef.current = setTimeout(() => {
  14269. setCopied(!1), $319e236875307eab$export$d10ae4f68404609a("polite"), timerRef.current = null;
  14270. }, duration);
  14271. });
  14272. },
  14273. [content, onCopy, ariaLabelOnCopy, duration]
  14274. );
  14275. return {
  14276. // @ts-expect-error - TypeScript is not realising T is constrained identically in both interfaces.
  14277. children: copied ? childrenOnCopy : children,
  14278. buttonProps: (0, import_react12.useMemo)(
  14279. () => ({
  14280. onClick: handleClick,
  14281. ariaLabel: copied ? ariaLabelOnCopy : ariaLabel
  14282. }),
  14283. [handleClick, copied, ariaLabelOnCopy, ariaLabel]
  14284. )
  14285. };
  14286. }
  14287. var import_react12, init_useCopyButton = __esm({
  14288. "src/shared/useCopyButton.ts"() {
  14289. "use strict";
  14290. import_react12 = __toESM(require_react(), 1);
  14291. init_import();
  14292. }
  14293. });
  14294. // src/components/components/syntaxhighlighter/syntaxhighlighter.tsx
  14295. var syntaxhighlighter_exports = {};
  14296. __export(syntaxhighlighter_exports, {
  14297. SyntaxHighlighter: () => SyntaxHighlighter2,
  14298. default: () => syntaxhighlighter_default,
  14299. supportedLanguages: () => supportedLanguages
  14300. });
  14301. var import_react13, import_memoizerific2, supportedLanguages, themedSyntax, Wrapper, UnstyledScroller, Scroller, Pre, Code, processLineNumber, defaultRenderer2, wrapRenderer, SyntaxHighlighter2, syntaxhighlighter_default, init_syntaxhighlighter = __esm({
  14302. "src/components/components/syntaxhighlighter/syntaxhighlighter.tsx"() {
  14303. "use strict";
  14304. import_react13 = __toESM(require_react(), 1), import_memoizerific2 = __toESM(require_memoizerific(), 1);
  14305. init_create_element();
  14306. init_bash();
  14307. init_css();
  14308. init_graphql();
  14309. init_js_extras();
  14310. init_json();
  14311. init_jsx();
  14312. init_markdown();
  14313. init_markup();
  14314. init_tsx();
  14315. init_typescript();
  14316. init_yaml();
  14317. init_prism_light();
  14318. init_theming();
  14319. init_ActionBar();
  14320. init_ScrollArea();
  14321. init_useCopyButton();
  14322. supportedLanguages = {
  14323. jsextra: js_extras_default,
  14324. jsx: jsx_default,
  14325. json: json_default,
  14326. yml: yaml_default,
  14327. md: markdown_default,
  14328. bash: bash_default,
  14329. css: css_default,
  14330. html: markup_default,
  14331. tsx: tsx_default,
  14332. typescript: typescript_default,
  14333. graphql: graphql_default
  14334. };
  14335. Object.entries(supportedLanguages).forEach(([key, val]) => {
  14336. prism_light_default.registerLanguage(key, val);
  14337. });
  14338. themedSyntax = (0, import_memoizerific2.default)(2)(
  14339. (theme3) => Object.entries(theme3.code || {}).reduce((acc, [key, val]) => ({ ...acc, [`* .${key}`]: val }), {})
  14340. ), Wrapper = styled.div(
  14341. ({ theme: theme3 }) => ({
  14342. position: "relative",
  14343. display: "flex",
  14344. flexWrap: "wrap",
  14345. overflow: "hidden",
  14346. color: theme3.color.defaultText
  14347. }),
  14348. ({ theme: theme3, bordered }) => bordered ? {
  14349. border: `1px solid ${theme3.appBorderColor}`,
  14350. borderRadius: theme3.borderRadius,
  14351. background: theme3.background.content
  14352. } : {},
  14353. ({ showLineNumbers }) => showLineNumbers ? {
  14354. // use the before pseudo element to display line numbers
  14355. ".react-syntax-highlighter-line-number::before": {
  14356. content: "attr(data-line-number)"
  14357. }
  14358. } : {}
  14359. ), UnstyledScroller = ({ children, className }) => import_react13.default.createElement(ScrollArea2, { horizontal: !0, vertical: !0, focusable: !0, className }, children), Scroller = styled(UnstyledScroller)(
  14360. {
  14361. flex: 1,
  14362. flexShrink: 0,
  14363. flexBasis: "fit-content",
  14364. maxWidth: "100%"
  14365. },
  14366. ({ theme: theme3 }) => themedSyntax(theme3)
  14367. ), Pre = styled.pre(({ theme: theme3, padded }) => ({
  14368. display: "flex",
  14369. justifyContent: "flex-start",
  14370. margin: 0,
  14371. padding: padded ? theme3.layoutMargin : 0
  14372. })), Code = styled.div(({ theme: theme3 }) => ({
  14373. flex: 1,
  14374. paddingLeft: 2,
  14375. // TODO: To match theming/global.ts for now
  14376. paddingRight: theme3.layoutMargin,
  14377. opacity: 1,
  14378. fontFamily: theme3.typography.fonts.mono
  14379. })), processLineNumber = (row) => {
  14380. let children = [...row.children], lineNumberNode = children[0], lineNumber = lineNumberNode.children[0].value, processedLineNumberNode = {
  14381. ...lineNumberNode,
  14382. // empty the line-number element
  14383. children: [],
  14384. properties: {
  14385. ...lineNumberNode.properties,
  14386. // add a data-line-number attribute to line-number element, so we can access the line number with `content: attr(data-line-number)`
  14387. "data-line-number": lineNumber,
  14388. // remove the 'userSelect: none' style, which will produce extra empty lines when copy-pasting in firefox
  14389. style: { ...lineNumberNode.properties.style, userSelect: "auto" }
  14390. }
  14391. };
  14392. return children[0] = processedLineNumberNode, { ...row, children };
  14393. }, defaultRenderer2 = ({ rows, stylesheet, useInlineStyles }) => rows.map((node2, i) => createElement4({
  14394. node: processLineNumber(node2),
  14395. stylesheet,
  14396. useInlineStyles,
  14397. key: `code-segement${i}`
  14398. })), wrapRenderer = (renderer, showLineNumbers) => showLineNumbers ? renderer ? ({ rows, ...rest }) => renderer({ rows: rows.map((row) => processLineNumber(row)), ...rest }) : defaultRenderer2 : renderer, SyntaxHighlighter2 = ({
  14399. children,
  14400. language = "jsx",
  14401. copyable = !1,
  14402. bordered = !1,
  14403. padded = !1,
  14404. format: format4 = !0,
  14405. formatter: formatter2 = void 0,
  14406. className = void 0,
  14407. showLineNumbers = !1,
  14408. ...rest
  14409. }) => {
  14410. if (typeof children != "string" || !children.trim())
  14411. return null;
  14412. let [highlightableCode, setHighlightableCode] = (0, import_react13.useState)("");
  14413. (0, import_react13.useEffect)(() => {
  14414. formatter2 ? formatter2(format4, children).then(setHighlightableCode) : setHighlightableCode(children.trim());
  14415. }, [children, format4, formatter2]);
  14416. let { children: copyChildren, buttonProps: copyButtonProps } = useCopyButton({
  14417. content: highlightableCode
  14418. }), renderer = wrapRenderer(rest.renderer, showLineNumbers);
  14419. return import_react13.default.createElement(
  14420. Wrapper,
  14421. {
  14422. bordered,
  14423. padded,
  14424. showLineNumbers,
  14425. className
  14426. },
  14427. import_react13.default.createElement(Scroller, null, import_react13.default.createElement(
  14428. prism_light_default,
  14429. {
  14430. padded: padded || bordered,
  14431. language,
  14432. showLineNumbers,
  14433. showInlineLineNumbers: showLineNumbers,
  14434. useInlineStyles: !1,
  14435. PreTag: Pre,
  14436. CodeTag: Code,
  14437. lineNumberContainerStyle: {},
  14438. ...rest,
  14439. renderer
  14440. },
  14441. highlightableCode
  14442. )),
  14443. copyable ? import_react13.default.createElement(
  14444. ActionBar,
  14445. {
  14446. actionItems: [
  14447. {
  14448. title: copyChildren,
  14449. onClick: copyButtonProps.onClick
  14450. }
  14451. ],
  14452. flexLayout: !0
  14453. }
  14454. ) : null
  14455. );
  14456. };
  14457. SyntaxHighlighter2.registerLanguage = (...args) => prism_light_default.registerLanguage(...args);
  14458. syntaxhighlighter_default = SyntaxHighlighter2;
  14459. }
  14460. });
  14461. // src/components/components/syntaxhighlighter/formatter.ts
  14462. var formatter_exports = {};
  14463. __export(formatter_exports, {
  14464. formatter: () => formatter
  14465. });
  14466. var import_memoizerific3, formatter, init_formatter = __esm({
  14467. "src/components/components/syntaxhighlighter/formatter.ts"() {
  14468. "use strict";
  14469. import_memoizerific3 = __toESM(require_memoizerific(), 1);
  14470. init_esm();
  14471. formatter = (0, import_memoizerific3.default)(2)(async (type5, source) => type5 === !1 ? source : dedent(source));
  14472. }
  14473. });
  14474. // ../../node_modules/picocolors/picocolors.browser.js
  14475. var require_picocolors_browser = __commonJS({
  14476. "../../node_modules/picocolors/picocolors.browser.js"(exports, module2) {
  14477. var x = String, create4 = function() {
  14478. return { isColorSupported: !1, reset: x, bold: x, dim: x, italic: x, underline: x, inverse: x, hidden: x, strikethrough: x, black: x, red: x, green: x, yellow: x, blue: x, magenta: x, cyan: x, white: x, gray: x, bgBlack: x, bgRed: x, bgGreen: x, bgYellow: x, bgBlue: x, bgMagenta: x, bgCyan: x, bgWhite: x, blackBright: x, redBright: x, greenBright: x, yellowBright: x, blueBright: x, magentaBright: x, cyanBright: x, whiteBright: x, bgBlackBright: x, bgRedBright: x, bgGreenBright: x, bgYellowBright: x, bgBlueBright: x, bgMagentaBright: x, bgCyanBright: x, bgWhiteBright: x };
  14479. };
  14480. module2.exports = create4();
  14481. module2.exports.createColors = create4;
  14482. }
  14483. });
  14484. // ../../node_modules/@ngard/tiny-isequal/index.js
  14485. var require_tiny_isequal = __commonJS({
  14486. "../../node_modules/@ngard/tiny-isequal/index.js"(exports) {
  14487. Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isEqual = /* @__PURE__ */ (function() {
  14488. var e = Object.prototype.toString, r2 = Object.getPrototypeOf, t = Object.getOwnPropertySymbols ? function(e2) {
  14489. return Object.keys(e2).concat(Object.getOwnPropertySymbols(e2));
  14490. } : Object.keys;
  14491. return function(n, a3) {
  14492. return (function n2(a4, c, u2) {
  14493. var i, s3, l, o = e.call(a4), f4 = e.call(c);
  14494. if (a4 === c) return !0;
  14495. if (a4 == null || c == null) return !1;
  14496. if (u2.indexOf(a4) > -1 && u2.indexOf(c) > -1) return !0;
  14497. if (u2.push(a4, c), o != f4 || (i = t(a4), s3 = t(c), i.length != s3.length || i.some(function(e2) {
  14498. return !n2(a4[e2], c[e2], u2);
  14499. }))) return !1;
  14500. switch (o.slice(8, -1)) {
  14501. case "Symbol":
  14502. return a4.valueOf() == c.valueOf();
  14503. case "Date":
  14504. case "Number":
  14505. return +a4 == +c || +a4 != +a4 && +c != +c;
  14506. case "RegExp":
  14507. case "Function":
  14508. case "String":
  14509. case "Boolean":
  14510. return "" + a4 == "" + c;
  14511. case "Set":
  14512. case "Map":
  14513. i = a4.entries(), s3 = c.entries();
  14514. do
  14515. if (!n2((l = i.next()).value, s3.next().value, u2)) return !1;
  14516. while (!l.done);
  14517. return !0;
  14518. case "ArrayBuffer":
  14519. a4 = new Uint8Array(a4), c = new Uint8Array(c);
  14520. case "DataView":
  14521. a4 = new Uint8Array(a4.buffer), c = new Uint8Array(c.buffer);
  14522. case "Float32Array":
  14523. case "Float64Array":
  14524. case "Int8Array":
  14525. case "Int16Array":
  14526. case "Int32Array":
  14527. case "Uint8Array":
  14528. case "Uint16Array":
  14529. case "Uint32Array":
  14530. case "Uint8ClampedArray":
  14531. case "Arguments":
  14532. case "Array":
  14533. if (a4.length != c.length) return !1;
  14534. for (l = 0; l < a4.length; l++) if ((l in a4 || l in c) && (l in a4 != l in c || !n2(a4[l], c[l], u2))) return !1;
  14535. return !0;
  14536. case "Object":
  14537. return n2(r2(a4), r2(c), u2);
  14538. default:
  14539. return !1;
  14540. }
  14541. })(n, a3, []);
  14542. };
  14543. })();
  14544. }
  14545. });
  14546. // ../../node_modules/picoquery/lib/string-util.js
  14547. var require_string_util = __commonJS({
  14548. "../../node_modules/picoquery/lib/string-util.js"(exports) {
  14549. "use strict";
  14550. Object.defineProperty(exports, "__esModule", { value: !0 });
  14551. exports.encodeString = encodeString;
  14552. var hexTable = Array.from({ length: 256 }, (_, i) => "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase()), noEscape = new Int8Array([
  14553. 0,
  14554. 0,
  14555. 0,
  14556. 0,
  14557. 0,
  14558. 0,
  14559. 0,
  14560. 0,
  14561. 0,
  14562. 0,
  14563. 0,
  14564. 0,
  14565. 0,
  14566. 0,
  14567. 0,
  14568. 0,
  14569. 0,
  14570. 0,
  14571. 0,
  14572. 0,
  14573. 0,
  14574. 0,
  14575. 0,
  14576. 0,
  14577. 0,
  14578. 0,
  14579. 0,
  14580. 0,
  14581. 0,
  14582. 0,
  14583. 0,
  14584. 0,
  14585. 0,
  14586. 1,
  14587. 0,
  14588. 0,
  14589. 0,
  14590. 0,
  14591. 0,
  14592. 1,
  14593. 1,
  14594. 1,
  14595. 1,
  14596. 0,
  14597. 0,
  14598. 1,
  14599. 1,
  14600. 0,
  14601. 1,
  14602. 1,
  14603. 1,
  14604. 1,
  14605. 1,
  14606. 1,
  14607. 1,
  14608. 1,
  14609. 1,
  14610. 1,
  14611. 0,
  14612. 0,
  14613. 0,
  14614. 0,
  14615. 0,
  14616. 0,
  14617. 0,
  14618. 1,
  14619. 1,
  14620. 1,
  14621. 1,
  14622. 1,
  14623. 1,
  14624. 1,
  14625. 1,
  14626. 1,
  14627. 1,
  14628. 1,
  14629. 1,
  14630. 1,
  14631. 1,
  14632. 1,
  14633. 1,
  14634. 1,
  14635. 1,
  14636. 1,
  14637. 1,
  14638. 1,
  14639. 1,
  14640. 1,
  14641. 1,
  14642. 1,
  14643. 1,
  14644. 0,
  14645. 0,
  14646. 0,
  14647. 0,
  14648. 1,
  14649. 0,
  14650. 1,
  14651. 1,
  14652. 1,
  14653. 1,
  14654. 1,
  14655. 1,
  14656. 1,
  14657. 1,
  14658. 1,
  14659. 1,
  14660. 1,
  14661. 1,
  14662. 1,
  14663. 1,
  14664. 1,
  14665. 1,
  14666. 1,
  14667. 1,
  14668. 1,
  14669. 1,
  14670. 1,
  14671. 1,
  14672. 1,
  14673. 1,
  14674. 1,
  14675. 1,
  14676. 0,
  14677. 0,
  14678. 0,
  14679. 1,
  14680. 0
  14681. ]);
  14682. function encodeString(str2) {
  14683. let len = str2.length;
  14684. if (len === 0)
  14685. return "";
  14686. let out = "", lastPos = 0, i = 0;
  14687. outer: for (; i < len; i++) {
  14688. let c = str2.charCodeAt(i);
  14689. for (; c < 128; ) {
  14690. if (noEscape[c] !== 1 && (lastPos < i && (out += str2.slice(lastPos, i)), lastPos = i + 1, out += hexTable[c]), ++i === len)
  14691. break outer;
  14692. c = str2.charCodeAt(i);
  14693. }
  14694. if (lastPos < i && (out += str2.slice(lastPos, i)), c < 2048) {
  14695. lastPos = i + 1, out += hexTable[192 | c >> 6] + hexTable[128 | c & 63];
  14696. continue;
  14697. }
  14698. if (c < 55296 || c >= 57344) {
  14699. lastPos = i + 1, out += hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
  14700. continue;
  14701. }
  14702. if (++i, i >= len)
  14703. throw new Error("URI malformed");
  14704. let c2 = str2.charCodeAt(i) & 1023;
  14705. lastPos = i + 1, c = 65536 + ((c & 1023) << 10 | c2), out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
  14706. }
  14707. return lastPos === 0 ? str2 : lastPos < len ? out + str2.slice(lastPos) : out;
  14708. }
  14709. }
  14710. });
  14711. // ../../node_modules/picoquery/lib/shared.js
  14712. var require_shared = __commonJS({
  14713. "../../node_modules/picoquery/lib/shared.js"(exports) {
  14714. "use strict";
  14715. Object.defineProperty(exports, "__esModule", { value: !0 });
  14716. exports.defaultOptions = exports.defaultShouldSerializeObject = exports.defaultValueSerializer = void 0;
  14717. var string_util_js_1 = require_string_util(), defaultValueSerializer = (value) => {
  14718. switch (typeof value) {
  14719. case "string":
  14720. return (0, string_util_js_1.encodeString)(value);
  14721. case "bigint":
  14722. case "boolean":
  14723. return "" + value;
  14724. case "number":
  14725. if (Number.isFinite(value))
  14726. return value < 1e21 ? "" + value : (0, string_util_js_1.encodeString)("" + value);
  14727. break;
  14728. }
  14729. return value instanceof Date ? (0, string_util_js_1.encodeString)(value.toISOString()) : "";
  14730. };
  14731. exports.defaultValueSerializer = defaultValueSerializer;
  14732. var defaultShouldSerializeObject = (val) => val instanceof Date;
  14733. exports.defaultShouldSerializeObject = defaultShouldSerializeObject;
  14734. var identityFunc = (v) => v;
  14735. exports.defaultOptions = {
  14736. nesting: !0,
  14737. nestingSyntax: "dot",
  14738. arrayRepeat: !1,
  14739. arrayRepeatSyntax: "repeat",
  14740. delimiter: 38,
  14741. valueDeserializer: identityFunc,
  14742. valueSerializer: exports.defaultValueSerializer,
  14743. keyDeserializer: identityFunc,
  14744. shouldSerializeObject: exports.defaultShouldSerializeObject
  14745. };
  14746. }
  14747. });
  14748. // ../../node_modules/picoquery/lib/object-util.js
  14749. var require_object_util = __commonJS({
  14750. "../../node_modules/picoquery/lib/object-util.js"(exports) {
  14751. "use strict";
  14752. Object.defineProperty(exports, "__esModule", { value: !0 });
  14753. exports.getDeepObject = getDeepObject;
  14754. exports.stringifyObject = stringifyObject;
  14755. var shared_js_1 = require_shared(), string_util_js_1 = require_string_util();
  14756. function isPrototypeKey(value) {
  14757. return value === "__proto__" || value === "constructor" || value === "prototype";
  14758. }
  14759. function getDeepObject(obj, key, nextKey, forceObject, forceArray) {
  14760. if (isPrototypeKey(key))
  14761. return obj;
  14762. let currObj = obj[key];
  14763. return typeof currObj == "object" && currObj !== null ? currObj : !forceObject && (forceArray || typeof nextKey == "number" || typeof nextKey == "string" && nextKey * 0 === 0 && nextKey.indexOf(".") === -1) ? obj[key] = [] : obj[key] = {};
  14764. }
  14765. var MAX_DEPTH = 20, strBracketPair = "[]", strBracketLeft = "[", strBracketRight = "]", strDot = ".";
  14766. function stringifyObject(obj, options, depth = 0, parentKey, isProbableArray) {
  14767. let { nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, delimiter: delimiter2 = shared_js_1.defaultOptions.delimiter, valueSerializer = shared_js_1.defaultOptions.valueSerializer, shouldSerializeObject = shared_js_1.defaultOptions.shouldSerializeObject } = options, strDelimiter = typeof delimiter2 == "number" ? String.fromCharCode(delimiter2) : delimiter2, useArrayRepeatKey = isProbableArray === !0 && arrayRepeat, shouldUseDot = nestingSyntax === "dot" || nestingSyntax === "js" && !isProbableArray;
  14768. if (depth > MAX_DEPTH)
  14769. return "";
  14770. let result = "", firstKey = !0, valueIsProbableArray = !1;
  14771. for (let key in obj) {
  14772. let value = obj[key];
  14773. if (value === void 0)
  14774. continue;
  14775. let path;
  14776. parentKey ? (path = parentKey, useArrayRepeatKey ? arrayRepeatSyntax === "bracket" && (path += strBracketPair) : shouldUseDot ? (path += strDot, path += key) : (path += strBracketLeft, path += key, path += strBracketRight)) : path = key, firstKey || (result += strDelimiter), typeof value == "object" && value !== null && !shouldSerializeObject(value) ? (valueIsProbableArray = value.pop !== void 0, (nesting || arrayRepeat && valueIsProbableArray) && (result += stringifyObject(value, options, depth + 1, path, valueIsProbableArray))) : (result += (0, string_util_js_1.encodeString)(path), result += "=", result += valueSerializer(value, key)), firstKey && (firstKey = !1);
  14777. }
  14778. return result;
  14779. }
  14780. }
  14781. });
  14782. // ../../node_modules/picoquery/lib/decode-uri-component.js
  14783. var require_decode_uri_component = __commonJS({
  14784. "../../node_modules/picoquery/lib/decode-uri-component.js"(exports) {
  14785. "use strict";
  14786. Object.defineProperty(exports, "__esModule", { value: !0 });
  14787. exports.decodeURIComponent = decodeURIComponent2;
  14788. var UTF8_ACCEPT = 12, UTF8_REJECT = 0, UTF8_DATA = [
  14789. // The first part of the table maps bytes to character to a transition.
  14790. 0,
  14791. 0,
  14792. 0,
  14793. 0,
  14794. 0,
  14795. 0,
  14796. 0,
  14797. 0,
  14798. 0,
  14799. 0,
  14800. 0,
  14801. 0,
  14802. 0,
  14803. 0,
  14804. 0,
  14805. 0,
  14806. 0,
  14807. 0,
  14808. 0,
  14809. 0,
  14810. 0,
  14811. 0,
  14812. 0,
  14813. 0,
  14814. 0,
  14815. 0,
  14816. 0,
  14817. 0,
  14818. 0,
  14819. 0,
  14820. 0,
  14821. 0,
  14822. 0,
  14823. 0,
  14824. 0,
  14825. 0,
  14826. 0,
  14827. 0,
  14828. 0,
  14829. 0,
  14830. 0,
  14831. 0,
  14832. 0,
  14833. 0,
  14834. 0,
  14835. 0,
  14836. 0,
  14837. 0,
  14838. 0,
  14839. 0,
  14840. 0,
  14841. 0,
  14842. 0,
  14843. 0,
  14844. 0,
  14845. 0,
  14846. 0,
  14847. 0,
  14848. 0,
  14849. 0,
  14850. 0,
  14851. 0,
  14852. 0,
  14853. 0,
  14854. 0,
  14855. 0,
  14856. 0,
  14857. 0,
  14858. 0,
  14859. 0,
  14860. 0,
  14861. 0,
  14862. 0,
  14863. 0,
  14864. 0,
  14865. 0,
  14866. 0,
  14867. 0,
  14868. 0,
  14869. 0,
  14870. 0,
  14871. 0,
  14872. 0,
  14873. 0,
  14874. 0,
  14875. 0,
  14876. 0,
  14877. 0,
  14878. 0,
  14879. 0,
  14880. 0,
  14881. 0,
  14882. 0,
  14883. 0,
  14884. 0,
  14885. 0,
  14886. 0,
  14887. 0,
  14888. 0,
  14889. 0,
  14890. 0,
  14891. 0,
  14892. 0,
  14893. 0,
  14894. 0,
  14895. 0,
  14896. 0,
  14897. 0,
  14898. 0,
  14899. 0,
  14900. 0,
  14901. 0,
  14902. 0,
  14903. 0,
  14904. 0,
  14905. 0,
  14906. 0,
  14907. 0,
  14908. 0,
  14909. 0,
  14910. 0,
  14911. 0,
  14912. 0,
  14913. 0,
  14914. 0,
  14915. 0,
  14916. 0,
  14917. 0,
  14918. 1,
  14919. 1,
  14920. 1,
  14921. 1,
  14922. 1,
  14923. 1,
  14924. 1,
  14925. 1,
  14926. 1,
  14927. 1,
  14928. 1,
  14929. 1,
  14930. 1,
  14931. 1,
  14932. 1,
  14933. 1,
  14934. 2,
  14935. 2,
  14936. 2,
  14937. 2,
  14938. 2,
  14939. 2,
  14940. 2,
  14941. 2,
  14942. 2,
  14943. 2,
  14944. 2,
  14945. 2,
  14946. 2,
  14947. 2,
  14948. 2,
  14949. 2,
  14950. 3,
  14951. 3,
  14952. 3,
  14953. 3,
  14954. 3,
  14955. 3,
  14956. 3,
  14957. 3,
  14958. 3,
  14959. 3,
  14960. 3,
  14961. 3,
  14962. 3,
  14963. 3,
  14964. 3,
  14965. 3,
  14966. 3,
  14967. 3,
  14968. 3,
  14969. 3,
  14970. 3,
  14971. 3,
  14972. 3,
  14973. 3,
  14974. 3,
  14975. 3,
  14976. 3,
  14977. 3,
  14978. 3,
  14979. 3,
  14980. 3,
  14981. 3,
  14982. 4,
  14983. 4,
  14984. 5,
  14985. 5,
  14986. 5,
  14987. 5,
  14988. 5,
  14989. 5,
  14990. 5,
  14991. 5,
  14992. 5,
  14993. 5,
  14994. 5,
  14995. 5,
  14996. 5,
  14997. 5,
  14998. 5,
  14999. 5,
  15000. 5,
  15001. 5,
  15002. 5,
  15003. 5,
  15004. 5,
  15005. 5,
  15006. 5,
  15007. 5,
  15008. 5,
  15009. 5,
  15010. 5,
  15011. 5,
  15012. 5,
  15013. 5,
  15014. 6,
  15015. 7,
  15016. 7,
  15017. 7,
  15018. 7,
  15019. 7,
  15020. 7,
  15021. 7,
  15022. 7,
  15023. 7,
  15024. 7,
  15025. 7,
  15026. 7,
  15027. 8,
  15028. 7,
  15029. 7,
  15030. 10,
  15031. 9,
  15032. 9,
  15033. 9,
  15034. 11,
  15035. 4,
  15036. 4,
  15037. 4,
  15038. 4,
  15039. 4,
  15040. 4,
  15041. 4,
  15042. 4,
  15043. 4,
  15044. 4,
  15045. 4,
  15046. // The second part of the table maps a state to a new state when adding a
  15047. // transition.
  15048. 0,
  15049. 0,
  15050. 0,
  15051. 0,
  15052. 0,
  15053. 0,
  15054. 0,
  15055. 0,
  15056. 0,
  15057. 0,
  15058. 0,
  15059. 0,
  15060. 12,
  15061. 0,
  15062. 0,
  15063. 0,
  15064. 0,
  15065. 24,
  15066. 36,
  15067. 48,
  15068. 60,
  15069. 72,
  15070. 84,
  15071. 96,
  15072. 0,
  15073. 12,
  15074. 12,
  15075. 12,
  15076. 0,
  15077. 0,
  15078. 0,
  15079. 0,
  15080. 0,
  15081. 0,
  15082. 0,
  15083. 0,
  15084. 0,
  15085. 0,
  15086. 0,
  15087. 24,
  15088. 0,
  15089. 0,
  15090. 0,
  15091. 0,
  15092. 0,
  15093. 0,
  15094. 0,
  15095. 0,
  15096. 0,
  15097. 24,
  15098. 24,
  15099. 24,
  15100. 0,
  15101. 0,
  15102. 0,
  15103. 0,
  15104. 0,
  15105. 0,
  15106. 0,
  15107. 0,
  15108. 0,
  15109. 24,
  15110. 24,
  15111. 0,
  15112. 0,
  15113. 0,
  15114. 0,
  15115. 0,
  15116. 0,
  15117. 0,
  15118. 0,
  15119. 0,
  15120. 0,
  15121. 48,
  15122. 48,
  15123. 48,
  15124. 0,
  15125. 0,
  15126. 0,
  15127. 0,
  15128. 0,
  15129. 0,
  15130. 0,
  15131. 0,
  15132. 0,
  15133. 0,
  15134. 48,
  15135. 48,
  15136. 0,
  15137. 0,
  15138. 0,
  15139. 0,
  15140. 0,
  15141. 0,
  15142. 0,
  15143. 0,
  15144. 0,
  15145. 48,
  15146. 0,
  15147. 0,
  15148. 0,
  15149. 0,
  15150. 0,
  15151. 0,
  15152. 0,
  15153. 0,
  15154. 0,
  15155. 0,
  15156. // The third part maps the current transition to a mask that needs to apply
  15157. // to the byte.
  15158. 127,
  15159. 63,
  15160. 63,
  15161. 63,
  15162. 0,
  15163. 31,
  15164. 15,
  15165. 15,
  15166. 15,
  15167. 7,
  15168. 7,
  15169. 7
  15170. ];
  15171. function decodeURIComponent2(uri) {
  15172. let percentPosition = uri.indexOf("%");
  15173. if (percentPosition === -1)
  15174. return uri;
  15175. let length2 = uri.length, decoded = "", last2 = 0, codepoint = 0, startOfOctets = percentPosition, state3 = UTF8_ACCEPT;
  15176. for (; percentPosition > -1 && percentPosition < length2; ) {
  15177. let high = hexCodeToInt(uri[percentPosition + 1], 4), low = hexCodeToInt(uri[percentPosition + 2], 0), byte = high | low, type5 = UTF8_DATA[byte];
  15178. if (state3 = UTF8_DATA[256 + state3 + type5], codepoint = codepoint << 6 | byte & UTF8_DATA[364 + type5], state3 === UTF8_ACCEPT)
  15179. decoded += uri.slice(last2, startOfOctets), decoded += codepoint <= 65535 ? String.fromCharCode(codepoint) : String.fromCharCode(55232 + (codepoint >> 10), 56320 + (codepoint & 1023)), codepoint = 0, last2 = percentPosition + 3, percentPosition = startOfOctets = uri.indexOf("%", last2);
  15180. else {
  15181. if (state3 === UTF8_REJECT)
  15182. return null;
  15183. if (percentPosition += 3, percentPosition < length2 && uri.charCodeAt(percentPosition) === 37)
  15184. continue;
  15185. return null;
  15186. }
  15187. }
  15188. return decoded + uri.slice(last2);
  15189. }
  15190. var HEX = {
  15191. 0: 0,
  15192. 1: 1,
  15193. 2: 2,
  15194. 3: 3,
  15195. 4: 4,
  15196. 5: 5,
  15197. 6: 6,
  15198. 7: 7,
  15199. 8: 8,
  15200. 9: 9,
  15201. a: 10,
  15202. A: 10,
  15203. b: 11,
  15204. B: 11,
  15205. c: 12,
  15206. C: 12,
  15207. d: 13,
  15208. D: 13,
  15209. e: 14,
  15210. E: 14,
  15211. f: 15,
  15212. F: 15
  15213. };
  15214. function hexCodeToInt(c, shift) {
  15215. let i = HEX[c];
  15216. return i === void 0 ? 255 : i << shift;
  15217. }
  15218. }
  15219. });
  15220. // ../../node_modules/picoquery/lib/parse.js
  15221. var require_parse = __commonJS({
  15222. "../../node_modules/picoquery/lib/parse.js"(exports) {
  15223. "use strict";
  15224. Object.defineProperty(exports, "__esModule", { value: !0 });
  15225. exports.numberValueDeserializer = exports.numberKeyDeserializer = void 0;
  15226. exports.parse = parse9;
  15227. var object_util_js_1 = require_object_util(), shared_js_1 = require_shared(), decode_uri_component_js_1 = require_decode_uri_component(), numberKeyDeserializer = (key) => {
  15228. let asNumber = Number(key);
  15229. return Number.isNaN(asNumber) ? key : asNumber;
  15230. };
  15231. exports.numberKeyDeserializer = numberKeyDeserializer;
  15232. var numberValueDeserializer = (value) => {
  15233. let asNumber = Number(value);
  15234. return Number.isNaN(asNumber) ? value : asNumber;
  15235. };
  15236. exports.numberValueDeserializer = numberValueDeserializer;
  15237. var regexPlus = /\+/g, Empty = function() {
  15238. };
  15239. Empty.prototype = /* @__PURE__ */ Object.create(null);
  15240. function computeKeySlice(input2, startIndex, endIndex, keyHasPlus, shouldDecodeKey) {
  15241. let chunk2 = input2.substring(startIndex, endIndex);
  15242. return keyHasPlus && (chunk2 = chunk2.replace(regexPlus, " ")), shouldDecodeKey && (chunk2 = (0, decode_uri_component_js_1.decodeURIComponent)(chunk2) || chunk2), chunk2;
  15243. }
  15244. function parse9(input2, options) {
  15245. let { valueDeserializer = shared_js_1.defaultOptions.valueDeserializer, keyDeserializer = shared_js_1.defaultOptions.keyDeserializer, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, delimiter: delimiter2 = shared_js_1.defaultOptions.delimiter } = options ?? {}, charDelimiter = typeof delimiter2 == "string" ? delimiter2.charCodeAt(0) : delimiter2, isJsNestingSyntax = nestingSyntax === "js", result = new Empty();
  15246. if (typeof input2 != "string")
  15247. return result;
  15248. let inputLength = input2.length, value = "", startingIndex = -1, equalityIndex = -1, keySeparatorIndex = -1, currentObj = result, lastKey, currentKey = "", keyChunk = "", shouldDecodeKey = !1, shouldDecodeValue = !1, keyHasPlus = !1, valueHasPlus = !1, keyIsDot = !1, hasBothKeyValuePair = !1, c = 0, arrayRepeatBracketIndex = -1, prevIndex = -1, prevChar = -1;
  15249. for (let i = 0; i < inputLength + 1; i++) {
  15250. if (c = i !== inputLength ? input2.charCodeAt(i) : charDelimiter, c === charDelimiter) {
  15251. if (hasBothKeyValuePair = equalityIndex > startingIndex, hasBothKeyValuePair || (equalityIndex = i), keySeparatorIndex !== equalityIndex - 1 && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, arrayRepeatBracketIndex > -1 ? arrayRepeatBracketIndex : equalityIndex, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, void 0))), hasBothKeyValuePair || currentKey !== "") {
  15252. hasBothKeyValuePair && (value = input2.slice(equalityIndex + 1, i), valueHasPlus && (value = value.replace(regexPlus, " ")), shouldDecodeValue && (value = (0, decode_uri_component_js_1.decodeURIComponent)(value) || value));
  15253. let newValue = valueDeserializer(value, currentKey);
  15254. if (arrayRepeat) {
  15255. let currentValue = currentObj[currentKey];
  15256. currentValue === void 0 ? arrayRepeatBracketIndex > -1 ? currentObj[currentKey] = [newValue] : currentObj[currentKey] = newValue : currentValue.pop ? currentValue.push(newValue) : currentObj[currentKey] = [currentValue, newValue];
  15257. } else
  15258. currentObj[currentKey] = newValue;
  15259. }
  15260. value = "", startingIndex = i, equalityIndex = i, shouldDecodeKey = !1, shouldDecodeValue = !1, keyHasPlus = !1, valueHasPlus = !1, keyIsDot = !1, arrayRepeatBracketIndex = -1, keySeparatorIndex = i, currentObj = result, lastKey = void 0, currentKey = "";
  15261. } else c === 93 ? (arrayRepeat && arrayRepeatSyntax === "bracket" && prevChar === 91 && (arrayRepeatBracketIndex = prevIndex), nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, void 0, void 0)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1), keySeparatorIndex = i, keyIsDot = !1)) : c === 46 ? nesting && (nestingSyntax === "dot" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1), keyIsDot = !0, keySeparatorIndex = i) : c === 91 ? nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input2, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), isJsNestingSyntax && lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1, keyIsDot = !1), keySeparatorIndex = i) : c === 61 ? equalityIndex <= startingIndex ? equalityIndex = i : shouldDecodeValue = !0 : c === 43 ? equalityIndex > startingIndex ? valueHasPlus = !0 : keyHasPlus = !0 : c === 37 && (equalityIndex > startingIndex ? shouldDecodeValue = !0 : shouldDecodeKey = !0);
  15262. prevIndex = i, prevChar = c;
  15263. }
  15264. return result;
  15265. }
  15266. }
  15267. });
  15268. // ../../node_modules/picoquery/lib/stringify.js
  15269. var require_stringify = __commonJS({
  15270. "../../node_modules/picoquery/lib/stringify.js"(exports) {
  15271. "use strict";
  15272. Object.defineProperty(exports, "__esModule", { value: !0 });
  15273. exports.stringify = stringify8;
  15274. var object_util_js_1 = require_object_util();
  15275. function stringify8(input2, options) {
  15276. if (input2 === null || typeof input2 != "object")
  15277. return "";
  15278. let optionsObj = options ?? {};
  15279. return (0, object_util_js_1.stringifyObject)(input2, optionsObj);
  15280. }
  15281. }
  15282. });
  15283. // ../../node_modules/picoquery/lib/main.js
  15284. var require_main = __commonJS({
  15285. "../../node_modules/picoquery/lib/main.js"(exports) {
  15286. "use strict";
  15287. var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m3, k, k2) {
  15288. k2 === void 0 && (k2 = k);
  15289. var desc = Object.getOwnPropertyDescriptor(m3, k);
  15290. (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
  15291. return m3[k];
  15292. } }), Object.defineProperty(o, k2, desc);
  15293. }) : (function(o, m3, k, k2) {
  15294. k2 === void 0 && (k2 = k), o[k2] = m3[k];
  15295. })), __exportStar = exports && exports.__exportStar || function(m3, exports2) {
  15296. for (var p3 in m3) p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3) && __createBinding(exports2, m3, p3);
  15297. };
  15298. Object.defineProperty(exports, "__esModule", { value: !0 });
  15299. exports.stringify = exports.parse = void 0;
  15300. var parse_js_1 = require_parse();
  15301. Object.defineProperty(exports, "parse", { enumerable: !0, get: function() {
  15302. return parse_js_1.parse;
  15303. } });
  15304. var stringify_js_1 = require_stringify();
  15305. Object.defineProperty(exports, "stringify", { enumerable: !0, get: function() {
  15306. return stringify_js_1.stringify;
  15307. } });
  15308. __exportStar(require_shared(), exports);
  15309. }
  15310. });
  15311. // ../../node_modules/entities/lib/maps/entities.json
  15312. var require_entities = __commonJS({
  15313. "../../node_modules/entities/lib/maps/entities.json"(exports, module2) {
  15314. module2.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}", Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angmsd: "\u2221", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", Aogon: "\u0104", aogon: "\u0105", Aopf: "\u{1D538}", aopf: "\u{1D552}", apacir: "\u2A6F", ap: "\u2248", apE: "\u2A70", ape: "\u224A", apid: "\u224B", apos: "'", ApplyFunction: "\u2061", approx: "\u2248", approxeq: "\u224A", Aring: "\xC5", aring: "\xE5", Ascr: "\u{1D49C}", ascr: "\u{1D4B6}", Assign: "\u2254", ast: "*", asymp: "\u2248", asympeq: "\u224D", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", Backslash: "\u2216", Barv: "\u2AE7", barvee: "\u22BD", barwed: "\u2305", Barwed: "\u2306", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", Bcy: "\u0411", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", Because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", Bernoullis: "\u212C", Beta: "\u0392", beta: "\u03B2", beth: "\u2136", between: "\u226C", Bfr: "\u{1D505}", bfr: "\u{1D51F}", bigcap: "\u22C2", bigcirc: "\u25EF", bigcup: "\u22C3", bigodot: "\u2A00", bigoplus: "\u2A01", bigotimes: "\u2A02", bigsqcup: "\u2A06", bigstar: "\u2605", bigtriangledown: "\u25BD", bigtriangleup: "\u25B3", biguplus: "\u2A04", bigvee: "\u22C1", bigwedge: "\u22C0", bkarow: "\u290D", blacklozenge: "\u29EB", blacksquare: "\u25AA", blacktriangle: "\u25B4", blacktriangledown: "\u25BE", blacktriangleleft: "\u25C2", blacktriangleright: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bNot: "\u2AED", bnot: "\u2310", Bopf: "\u{1D539}", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxbox: "\u29C9", boxdl: "\u2510", boxdL: "\u2555", boxDl: "\u2556", boxDL: "\u2557", boxdr: "\u250C", boxdR: "\u2552", boxDr: "\u2553", boxDR: "\u2554", boxh: "\u2500", boxH: "\u2550", boxhd: "\u252C", boxHd: "\u2564", boxhD: "\u2565", boxHD: "\u2566", boxhu: "\u2534", boxHu: "\u2567", boxhU: "\u2568", boxHU: "\u2569", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxul: "\u2518", boxuL: "\u255B", boxUl: "\u255C", boxUL: "\u255D", boxur: "\u2514", boxuR: "\u2558", boxUr: "\u2559", boxUR: "\u255A", boxv: "\u2502", boxV: "\u2551", boxvh: "\u253C", boxvH: "\u256A", boxVh: "\u256B", boxVH: "\u256C", boxvl: "\u2524", boxvL: "\u2561", boxVl: "\u2562", boxVL: "\u2563", boxvr: "\u251C", boxvR: "\u255E", boxVr: "\u255F", boxVR: "\u2560", bprime: "\u2035", breve: "\u02D8", Breve: "\u02D8", brvbar: "\xA6", bscr: "\u{1D4B7}", Bscr: "\u212C", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsolb: "\u29C5", bsol: "\\", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", Bumpeq: "\u224E", bumpeq: "\u224F", Cacute: "\u0106", cacute: "\u0107", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", cap: "\u2229", Cap: "\u22D2", capcup: "\u2A47", capdot: "\u2A40", CapitalDifferentialD: "\u2145", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", Cayleys: "\u212D", ccaps: "\u2A4D", Ccaron: "\u010C", ccaron: "\u010D", Ccedil: "\xC7", ccedil: "\xE7", Ccirc: "\u0108", ccirc: "\u0109", Cconint: "\u2230", ccups: "\u2A4C", ccupssm: "\u2A50", Cdot: "\u010A", cdot: "\u010B", cedil: "\xB8", Cedilla: "\xB8", cemptyv: "\u29B2", cent: "\xA2", centerdot: "\xB7", CenterDot: "\xB7", cfr: "\u{1D520}", Cfr: "\u212D", CHcy: "\u0427", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", Chi: "\u03A7", chi: "\u03C7", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", CircleDot: "\u2299", circledR: "\xAE", circledS: "\u24C8", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", cir: "\u25CB", cirE: "\u29C3", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", clubs: "\u2663", clubsuit: "\u2663", colon: ":", Colon: "\u2237", Colone: "\u2A74", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", Congruent: "\u2261", conint: "\u222E", Conint: "\u222F", ContourIntegral: "\u222E", copf: "\u{1D554}", Copf: "\u2102", coprod: "\u2210", Coproduct: "\u2210", copy: "\xA9", COPY: "\xA9", copysr: "\u2117", CounterClockwiseContourIntegral: "\u2233", crarr: "\u21B5", cross: "\u2717", Cross: "\u2A2F", Cscr: "\u{1D49E}", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", cuesc: "\u22DF", cularr: "\u21B6", cularrp: "\u293D", cupbrcap: "\u2A48", cupcap: "\u2A46", CupCap: "\u224D", cup: "\u222A", Cup: "\u22D3", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dagger: "\u2020", Dagger: "\u2021", daleth: "\u2138", darr: "\u2193", Darr: "\u21A1", dArr: "\u21D3", dash: "\u2010", Dashv: "\u2AE4", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", Dcaron: "\u010E", dcaron: "\u010F", Dcy: "\u0414", dcy: "\u0434", ddagger: "\u2021", ddarr: "\u21CA", DD: "\u2145", dd: "\u2146", DDotrahd: "\u2911", ddotseq: "\u2A77", deg: "\xB0", Del: "\u2207", Delta: "\u0394", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", Dfr: "\u{1D507}", dfr: "\u{1D521}", dHar: "\u2965", dharl: "\u21C3", dharr: "\u21C2", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", diam: "\u22C4", diamond: "\u22C4", Diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", DifferentialD: "\u2146", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", DJcy: "\u0402", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", Dopf: "\u{1D53B}", dopf: "\u{1D555}", Dot: "\xA8", dot: "\u02D9", DotDot: "\u20DC", doteq: "\u2250", doteqdot: "\u2251", DotEqual: "\u2250", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", DoubleContourIntegral: "\u222F", DoubleDot: "\xA8", DoubleDownArrow: "\u21D3", DoubleLeftArrow: "\u21D0", DoubleLeftRightArrow: "\u21D4", DoubleLeftTee: "\u2AE4", DoubleLongLeftArrow: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", DoubleLongRightArrow: "\u27F9", DoubleRightArrow: "\u21D2", DoubleRightTee: "\u22A8", DoubleUpArrow: "\u21D1", DoubleUpDownArrow: "\u21D5", DoubleVerticalBar: "\u2225", DownArrowBar: "\u2913", downarrow: "\u2193", DownArrow: "\u2193", Downarrow: "\u21D3", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVectorBar: "\u2956", DownLeftVector: "\u21BD", DownRightTeeVector: "\u295F", DownRightVectorBar: "\u2957", DownRightVector: "\u21C1", DownTeeArrow: "\u21A7", DownTee: "\u22A4", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", Dscr: "\u{1D49F}", dscr: "\u{1D4B9}", DScy: "\u0405", dscy: "\u0455", dsol: "\u29F6", Dstrok: "\u0110", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", DZcy: "\u040F", dzcy: "\u045F", dzigrarr: "\u27FF", Eacute: "\xC9", eacute: "\xE9", easter: "\u2A6E", Ecaron: "\u011A", ecaron: "\u011B", Ecirc: "\xCA", ecirc: "\xEA", ecir: "\u2256", ecolon: "\u2255", Ecy: "\u042D", ecy: "\u044D", eDDot: "\u2A77", Edot: "\u0116", edot: "\u0117", eDot: "\u2251", ee: "\u2147", efDot: "\u2252", Efr: "\u{1D508}", efr: "\u{1D522}", eg: "\u2A9A", Egrave: "\xC8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", Element: "\u2208", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", Emacr: "\u0112", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", EmptySmallSquare: "\u25FB", emptyv: "\u2205", EmptyVerySmallSquare: "\u25AB", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", ENG: "\u014A", eng: "\u014B", ensp: "\u2002", Eogon: "\u0118", eogon: "\u0119", Eopf: "\u{1D53C}", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", Epsilon: "\u0395", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", Equal: "\u2A75", equals: "=", EqualTilde: "\u2242", equest: "\u225F", Equilibrium: "\u21CC", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erarr: "\u2971", erDot: "\u2253", escr: "\u212F", Escr: "\u2130", esdot: "\u2250", Esim: "\u2A73", esim: "\u2242", Eta: "\u0397", eta: "\u03B7", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", Exists: "\u2203", expectation: "\u2130", exponentiale: "\u2147", ExponentialE: "\u2147", fallingdotseq: "\u2252", Fcy: "\u0424", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", Ffr: "\u{1D509}", ffr: "\u{1D523}", filig: "\uFB01", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", Fopf: "\u{1D53D}", fopf: "\u{1D557}", forall: "\u2200", ForAll: "\u2200", fork: "\u22D4", forkv: "\u2AD9", Fouriertrf: "\u2131", fpartint: "\u2A0D", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", Fscr: "\u2131", gacute: "\u01F5", Gamma: "\u0393", gamma: "\u03B3", Gammad: "\u03DC", gammad: "\u03DD", gap: "\u2A86", Gbreve: "\u011E", gbreve: "\u011F", Gcedil: "\u0122", Gcirc: "\u011C", gcirc: "\u011D", Gcy: "\u0413", gcy: "\u0433", Gdot: "\u0120", gdot: "\u0121", ge: "\u2265", gE: "\u2267", gEl: "\u2A8C", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", gescc: "\u2AA9", ges: "\u2A7E", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", Gfr: "\u{1D50A}", gfr: "\u{1D524}", gg: "\u226B", Gg: "\u22D9", ggg: "\u22D9", gimel: "\u2137", GJcy: "\u0403", gjcy: "\u0453", gla: "\u2AA5", gl: "\u2277", glE: "\u2A92", glj: "\u2AA4", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gnE: "\u2269", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", Gopf: "\u{1D53E}", gopf: "\u{1D558}", grave: "`", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gt: ">", GT: ">", Gt: "\u226B", gtdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrapprox: "\u2A86", gtrarr: "\u2978", gtrdot: "\u22D7", gtreqless: "\u22DB", gtreqqless: "\u2A8C", gtrless: "\u2277", gtrsim: "\u2273", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", Hacek: "\u02C7", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", HARDcy: "\u042A", hardcy: "\u044A", harrcir: "\u2948", harr: "\u2194", hArr: "\u21D4", harrw: "\u21AD", Hat: "^", hbar: "\u210F", Hcirc: "\u0124", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", Hfr: "\u210C", HilbertSpace: "\u210B", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", Hopf: "\u210D", horbar: "\u2015", HorizontalLine: "\u2500", hscr: "\u{1D4BD}", Hscr: "\u210B", hslash: "\u210F", Hstrok: "\u0126", hstrok: "\u0127", HumpDownHump: "\u224E", HumpEqual: "\u224F", hybull: "\u2043", hyphen: "\u2010", Iacute: "\xCD", iacute: "\xED", ic: "\u2063", Icirc: "\xCE", icirc: "\xEE", Icy: "\u0418", icy: "\u0438", Idot: "\u0130", IEcy: "\u0415", iecy: "\u0435", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", Ifr: "\u2111", Igrave: "\xCC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", IJlig: "\u0132", ijlig: "\u0133", Imacr: "\u012A", imacr: "\u012B", image: "\u2111", ImaginaryI: "\u2148", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", Im: "\u2111", imof: "\u22B7", imped: "\u01B5", Implies: "\u21D2", incare: "\u2105", in: "\u2208", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", intcal: "\u22BA", int: "\u222B", Int: "\u222C", integers: "\u2124", Integral: "\u222B", intercal: "\u22BA", Intersection: "\u22C2", intlarhk: "\u2A17", intprod: "\u2A3C", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", IOcy: "\u0401", iocy: "\u0451", Iogon: "\u012E", iogon: "\u012F", Iopf: "\u{1D540}", iopf: "\u{1D55A}", Iota: "\u0399", iota: "\u03B9", iprod: "\u2A3C", iquest: "\xBF", iscr: "\u{1D4BE}", Iscr: "\u2110", isin: "\u2208", isindot: "\u22F5", isinE: "\u22F9", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", Itilde: "\u0128", itilde: "\u0129", Iukcy: "\u0406", iukcy: "\u0456", Iuml: "\xCF", iuml: "\xEF", Jcirc: "\u0134", jcirc: "\u0135", Jcy: "\u0419", jcy: "\u0439", Jfr: "\u{1D50D}", jfr: "\u{1D527}", jmath: "\u0237", Jopf: "\u{1D541}", jopf: "\u{1D55B}", Jscr: "\u{1D4A5}", jscr: "\u{1D4BF}", Jsercy: "\u0408", jsercy: "\u0458", Jukcy: "\u0404", jukcy: "\u0454", Kappa: "\u039A", kappa: "\u03BA", kappav: "\u03F0", Kcedil: "\u0136", kcedil: "\u0137", Kcy: "\u041A", kcy: "\u043A", Kfr: "\u{1D50E}", kfr: "\u{1D528}", kgreen: "\u0138", KHcy: "\u0425", khcy: "\u0445", KJcy: "\u040C", kjcy: "\u045C", Kopf: "\u{1D542}", kopf: "\u{1D55C}", Kscr: "\u{1D4A6}", kscr: "\u{1D4C0}", lAarr: "\u21DA", Lacute: "\u0139", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", Lambda: "\u039B", lambda: "\u03BB", lang: "\u27E8", Lang: "\u27EA", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", Laplacetrf: "\u2112", laquo: "\xAB", larrb: "\u21E4", larrbfs: "\u291F", larr: "\u2190", Larr: "\u219E", lArr: "\u21D0", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", latail: "\u2919", lAtail: "\u291B", lat: "\u2AAB", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lBarr: "\u290E", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", Lcaron: "\u013D", lcaron: "\u013E", Lcedil: "\u013B", lcedil: "\u013C", lceil: "\u2308", lcub: "{", Lcy: "\u041B", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", lE: "\u2266", LeftAngleBracket: "\u27E8", LeftArrowBar: "\u21E4", leftarrow: "\u2190", LeftArrow: "\u2190", Leftarrow: "\u21D0", LeftArrowRightArrow: "\u21C6", leftarrowtail: "\u21A2", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVectorBar: "\u2959", LeftDownVector: "\u21C3", LeftFloor: "\u230A", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", LeftRightArrow: "\u2194", Leftrightarrow: "\u21D4", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", LeftRightVector: "\u294E", LeftTeeArrow: "\u21A4", LeftTee: "\u22A3", LeftTeeVector: "\u295A", leftthreetimes: "\u22CB", LeftTriangleBar: "\u29CF", LeftTriangle: "\u22B2", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVectorBar: "\u2958", LeftUpVector: "\u21BF", LeftVectorBar: "\u2952", LeftVector: "\u21BC", lEg: "\u2A8B", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", lescc: "\u2AA8", les: "\u2A7D", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", LessLess: "\u2AA1", lesssim: "\u2272", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", lfisht: "\u297C", lfloor: "\u230A", Lfr: "\u{1D50F}", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lHar: "\u2962", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", LJcy: "\u0409", ljcy: "\u0459", llarr: "\u21C7", ll: "\u226A", Ll: "\u22D8", llcorner: "\u231E", Lleftarrow: "\u21DA", llhard: "\u296B", lltri: "\u25FA", Lmidot: "\u013F", lmidot: "\u0140", lmoustache: "\u23B0", lmoust: "\u23B0", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lnE: "\u2268", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", LongLeftArrow: "\u27F5", Longleftarrow: "\u27F8", longleftrightarrow: "\u27F7", LongLeftRightArrow: "\u27F7", Longleftrightarrow: "\u27FA", longmapsto: "\u27FC", longrightarrow: "\u27F6", LongRightArrow: "\u27F6", Longrightarrow: "\u27F9", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", Lopf: "\u{1D543}", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", loz: "\u25CA", lozenge: "\u25CA", lozf: "\u29EB", lpar: "(", lparlt: "\u2993", lrarr: "\u21C6", lrcorner: "\u231F", lrhar: "\u21CB", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", Lscr: "\u2112", lsh: "\u21B0", Lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", Lstrok: "\u0141", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", lt: "<", LT: "<", Lt: "\u226A", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", ltrPar: "\u2996", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", Map: "\u2905", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", Mcy: "\u041C", mcy: "\u043C", mdash: "\u2014", mDDot: "\u223A", measuredangle: "\u2221", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midast: "*", midcir: "\u2AF0", mid: "\u2223", middot: "\xB7", minusb: "\u229F", minus: "\u2212", minusd: "\u2238", minusdu: "\u2A2A", MinusPlus: "\u2213", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", Mopf: "\u{1D544}", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", Mscr: "\u2133", mstpos: "\u223E", Mu: "\u039C", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nabla: "\u2207", Nacute: "\u0143", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natural: "\u266E", naturals: "\u2115", natur: "\u266E", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", Ncaron: "\u0147", ncaron: "\u0148", Ncedil: "\u0145", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", Ncy: "\u041D", ncy: "\u043D", ndash: "\u2013", nearhk: "\u2924", nearr: "\u2197", neArr: "\u21D7", nearrow: "\u2197", ne: "\u2260", nedot: "\u2250\u0338", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: `
  15315. `, nexist: "\u2204", nexists: "\u2204", Nfr: "\u{1D511}", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", nGg: "\u22D9\u0338", ngsim: "\u2275", nGt: "\u226B\u20D2", ngt: "\u226F", ngtr: "\u226F", nGtv: "\u226B\u0338", nharr: "\u21AE", nhArr: "\u21CE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", NJcy: "\u040A", njcy: "\u045A", nlarr: "\u219A", nlArr: "\u21CD", nldr: "\u2025", nlE: "\u2266\u0338", nle: "\u2270", nleftarrow: "\u219A", nLeftarrow: "\u21CD", nleftrightarrow: "\u21AE", nLeftrightarrow: "\u21CE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nLl: "\u22D8\u0338", nlsim: "\u2274", nLt: "\u226A\u20D2", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nLtv: "\u226A\u0338", nmid: "\u2224", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nopf: "\u{1D55F}", Nopf: "\u2115", Not: "\u2AEC", not: "\xAC", NotCongruent: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", NotElement: "\u2209", NotEqual: "\u2260", NotEqualTilde: "\u2242\u0338", NotExists: "\u2204", NotGreater: "\u226F", NotGreaterEqual: "\u2271", NotGreaterFullEqual: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", NotGreaterLess: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", NotGreaterTilde: "\u2275", NotHumpDownHump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", notin: "\u2209", notindot: "\u22F5\u0338", notinE: "\u22F9\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangle: "\u22EA", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangle: "\u22EB", NotRightTriangleEqual: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", NotSubset: "\u2282\u20D2", NotSubsetEqual: "\u2288", NotSucceeds: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", NotSupersetEqual: "\u2289", NotTilde: "\u2241", NotTildeEqual: "\u2244", NotTildeFullEqual: "\u2247", NotTildeTilde: "\u2249", NotVerticalBar: "\u2224", nparallel: "\u2226", npar: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", nprec: "\u2280", npreceq: "\u2AAF\u0338", npre: "\u2AAF\u0338", nrarrc: "\u2933\u0338", nrarr: "\u219B", nrArr: "\u21CF", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nRightarrow: "\u21CF", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", Nscr: "\u{1D4A9}", nscr: "\u{1D4C3}", nshortmid: "\u2224", nshortparallel: "\u2226", nsim: "\u2241", nsime: "\u2244", nsimeq: "\u2244", nsmid: "\u2224", nspar: "\u2226", nsqsube: "\u22E2", nsqsupe: "\u22E3", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsube: "\u2288", nsubset: "\u2282\u20D2", nsubseteq: "\u2288", nsubseteqq: "\u2AC5\u0338", nsucc: "\u2281", nsucceq: "\u2AB0\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupe: "\u2289", nsupset: "\u2283\u20D2", nsupseteq: "\u2289", nsupseteqq: "\u2AC6\u0338", ntgl: "\u2279", Ntilde: "\xD1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", Nu: "\u039D", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvDash: "\u22AD", nVdash: "\u22AE", nVDash: "\u22AF", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvHarr: "\u2904", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwarhk: "\u2923", nwarr: "\u2196", nwArr: "\u21D6", nwarrow: "\u2196", nwnear: "\u2927", Oacute: "\xD3", oacute: "\xF3", oast: "\u229B", Ocirc: "\xD4", ocirc: "\xF4", ocir: "\u229A", Ocy: "\u041E", ocy: "\u043E", odash: "\u229D", Odblac: "\u0150", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", OElig: "\u0152", oelig: "\u0153", ofcir: "\u29BF", Ofr: "\u{1D512}", ofr: "\u{1D52C}", ogon: "\u02DB", Ograve: "\xD2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", Omacr: "\u014C", omacr: "\u014D", Omega: "\u03A9", omega: "\u03C9", Omicron: "\u039F", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", Oopf: "\u{1D546}", oopf: "\u{1D560}", opar: "\u29B7", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", operp: "\u29B9", oplus: "\u2295", orarr: "\u21BB", Or: "\u2A54", or: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oS: "\u24C8", Oscr: "\u{1D4AA}", oscr: "\u2134", Oslash: "\xD8", oslash: "\xF8", osol: "\u2298", Otilde: "\xD5", otilde: "\xF5", otimesas: "\u2A36", Otimes: "\u2A37", otimes: "\u2297", Ouml: "\xD6", ouml: "\xF6", ovbar: "\u233D", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", para: "\xB6", parallel: "\u2225", par: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", PartialD: "\u2202", Pcy: "\u041F", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", Pfr: "\u{1D513}", pfr: "\u{1D52D}", Phi: "\u03A6", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", Pi: "\u03A0", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plus: "+", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", PlusMinus: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", Poincareplane: "\u210C", pointint: "\u2A15", popf: "\u{1D561}", Popf: "\u2119", pound: "\xA3", prap: "\u2AB7", Pr: "\u2ABB", pr: "\u227A", prcue: "\u227C", precapprox: "\u2AB7", prec: "\u227A", preccurlyeq: "\u227C", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", pre: "\u2AAF", prE: "\u2AB3", precsim: "\u227E", prime: "\u2032", Prime: "\u2033", primes: "\u2119", prnap: "\u2AB9", prnE: "\u2AB5", prnsim: "\u22E8", prod: "\u220F", Product: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", Proportional: "\u221D", Proportion: "\u2237", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", Pscr: "\u{1D4AB}", pscr: "\u{1D4C5}", Psi: "\u03A8", psi: "\u03C8", puncsp: "\u2008", Qfr: "\u{1D514}", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", Qopf: "\u211A", qprime: "\u2057", Qscr: "\u{1D4AC}", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quot: '"', QUOT: '"', rAarr: "\u21DB", race: "\u223D\u0331", Racute: "\u0154", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", Rang: "\u27EB", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raquo: "\xBB", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarr: "\u2192", Rarr: "\u21A0", rArr: "\u21D2", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", Rarrtl: "\u2916", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", rAtail: "\u291C", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rBarr: "\u290F", RBarr: "\u2910", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", Rcaron: "\u0158", rcaron: "\u0159", Rcedil: "\u0156", rcedil: "\u0157", rceil: "\u2309", rcub: "}", Rcy: "\u0420", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", Re: "\u211C", rect: "\u25AD", reg: "\xAE", REG: "\xAE", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", Rfr: "\u211C", rHar: "\u2964", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", Rho: "\u03A1", rho: "\u03C1", rhov: "\u03F1", RightAngleBracket: "\u27E9", RightArrowBar: "\u21E5", rightarrow: "\u2192", RightArrow: "\u2192", Rightarrow: "\u21D2", RightArrowLeftArrow: "\u21C4", rightarrowtail: "\u21A3", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVectorBar: "\u2955", RightDownVector: "\u21C2", RightFloor: "\u230B", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", RightTeeArrow: "\u21A6", RightTee: "\u22A2", RightTeeVector: "\u295B", rightthreetimes: "\u22CC", RightTriangleBar: "\u29D0", RightTriangle: "\u22B3", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVectorBar: "\u2954", RightUpVector: "\u21BE", RightVectorBar: "\u2953", RightVector: "\u21C0", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoustache: "\u23B1", rmoust: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", Ropf: "\u211D", roplus: "\u2A2E", rotimes: "\u2A35", RoundImplies: "\u2970", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", Rrightarrow: "\u21DB", rsaquo: "\u203A", rscr: "\u{1D4C7}", Rscr: "\u211B", rsh: "\u21B1", Rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", RuleDelayed: "\u29F4", ruluhar: "\u2968", rx: "\u211E", Sacute: "\u015A", sacute: "\u015B", sbquo: "\u201A", scap: "\u2AB8", Scaron: "\u0160", scaron: "\u0161", Sc: "\u2ABC", sc: "\u227B", sccue: "\u227D", sce: "\u2AB0", scE: "\u2AB4", Scedil: "\u015E", scedil: "\u015F", Scirc: "\u015C", scirc: "\u015D", scnap: "\u2ABA", scnE: "\u2AB6", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", Scy: "\u0421", scy: "\u0441", sdotb: "\u22A1", sdot: "\u22C5", sdote: "\u2A66", searhk: "\u2925", searr: "\u2198", seArr: "\u21D8", searrow: "\u2198", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", Sfr: "\u{1D516}", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", SHCHcy: "\u0429", shchcy: "\u0449", SHcy: "\u0428", shcy: "\u0448", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", shortmid: "\u2223", shortparallel: "\u2225", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", shy: "\xAD", Sigma: "\u03A3", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", sim: "\u223C", simdot: "\u2A6A", sime: "\u2243", simeq: "\u2243", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", slarr: "\u2190", SmallCircle: "\u2218", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", SOFTcy: "\u042C", softcy: "\u044C", solbar: "\u233F", solb: "\u29C4", sol: "/", Sopf: "\u{1D54A}", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", Sqrt: "\u221A", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", square: "\u25A1", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", squarf: "\u25AA", squ: "\u25A1", squf: "\u25AA", srarr: "\u2192", Sscr: "\u{1D4AE}", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", Star: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", Sub: "\u22D0", subdot: "\u2ABD", subE: "\u2AC5", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", Subset: "\u22D0", subseteq: "\u2286", subseteqq: "\u2AC5", SubsetEqual: "\u2286", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succapprox: "\u2AB8", succ: "\u227B", succcurlyeq: "\u227D", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", SuchThat: "\u220B", sum: "\u2211", Sum: "\u2211", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", sup: "\u2283", Sup: "\u22D1", supdot: "\u2ABE", supdsub: "\u2AD8", supE: "\u2AC6", supe: "\u2287", supedot: "\u2AC4", Superset: "\u2283", SupersetEqual: "\u2287", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", Supset: "\u22D1", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swarhk: "\u2926", swarr: "\u2199", swArr: "\u21D9", swarrow: "\u2199", swnwar: "\u292A", szlig: "\xDF", Tab: " ", target: "\u2316", Tau: "\u03A4", tau: "\u03C4", tbrk: "\u23B4", Tcaron: "\u0164", tcaron: "\u0165", Tcedil: "\u0162", tcedil: "\u0163", Tcy: "\u0422", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", Tfr: "\u{1D517}", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", Therefore: "\u2234", Theta: "\u0398", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", THORN: "\xDE", thorn: "\xFE", tilde: "\u02DC", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", timesbar: "\u2A31", timesb: "\u22A0", times: "\xD7", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", topbot: "\u2336", topcir: "\u2AF1", top: "\u22A4", Topf: "\u{1D54B}", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", TRADE: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", TripleDot: "\u20DB", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", Tscr: "\u{1D4AF}", tscr: "\u{1D4C9}", TScy: "\u0426", tscy: "\u0446", TSHcy: "\u040B", tshcy: "\u045B", Tstrok: "\u0166", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", Uacute: "\xDA", uacute: "\xFA", uarr: "\u2191", Uarr: "\u219F", uArr: "\u21D1", Uarrocir: "\u2949", Ubrcy: "\u040E", ubrcy: "\u045E", Ubreve: "\u016C", ubreve: "\u016D", Ucirc: "\xDB", ucirc: "\xFB", Ucy: "\u0423", ucy: "\u0443", udarr: "\u21C5", Udblac: "\u0170", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", Ufr: "\u{1D518}", ufr: "\u{1D532}", Ugrave: "\xD9", ugrave: "\xF9", uHar: "\u2963", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", Umacr: "\u016A", umacr: "\u016B", uml: "\xA8", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", uogon: "\u0173", Uopf: "\u{1D54C}", uopf: "\u{1D566}", UpArrowBar: "\u2912", uparrow: "\u2191", UpArrow: "\u2191", Uparrow: "\u21D1", UpArrowDownArrow: "\u21C5", updownarrow: "\u2195", UpDownArrow: "\u2195", Updownarrow: "\u21D5", UpEquilibrium: "\u296E", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", upsi: "\u03C5", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", upsilon: "\u03C5", UpTeeArrow: "\u21A5", UpTee: "\u22A5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", Uring: "\u016E", uring: "\u016F", urtri: "\u25F9", Uscr: "\u{1D4B0}", uscr: "\u{1D4CA}", utdot: "\u22F0", Utilde: "\u0168", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", Uuml: "\xDC", uuml: "\xFC", uwangle: "\u29A7", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", vArr: "\u21D5", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vBar: "\u2AE8", Vbar: "\u2AEB", vBarv: "\u2AE9", Vcy: "\u0412", vcy: "\u0432", vdash: "\u22A2", vDash: "\u22A8", Vdash: "\u22A9", VDash: "\u22AB", Vdashl: "\u2AE6", veebar: "\u22BB", vee: "\u2228", Vee: "\u22C1", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", Verbar: "\u2016", vert: "|", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", Vopf: "\u{1D54D}", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", Vscr: "\u{1D4B1}", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", Vvdash: "\u22AA", vzigzag: "\u299A", Wcirc: "\u0174", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", Wedge: "\u22C0", wedgeq: "\u2259", weierp: "\u2118", Wfr: "\u{1D51A}", wfr: "\u{1D534}", Wopf: "\u{1D54E}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", Wscr: "\u{1D4B2}", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", Xfr: "\u{1D51B}", xfr: "\u{1D535}", xharr: "\u27F7", xhArr: "\u27FA", Xi: "\u039E", xi: "\u03BE", xlarr: "\u27F5", xlArr: "\u27F8", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", Xopf: "\u{1D54F}", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrarr: "\u27F6", xrArr: "\u27F9", Xscr: "\u{1D4B3}", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", Yacute: "\xDD", yacute: "\xFD", YAcy: "\u042F", yacy: "\u044F", Ycirc: "\u0176", ycirc: "\u0177", Ycy: "\u042B", ycy: "\u044B", yen: "\xA5", Yfr: "\u{1D51C}", yfr: "\u{1D536}", YIcy: "\u0407", yicy: "\u0457", Yopf: "\u{1D550}", yopf: "\u{1D56A}", Yscr: "\u{1D4B4}", yscr: "\u{1D4CE}", YUcy: "\u042E", yucy: "\u044E", yuml: "\xFF", Yuml: "\u0178", Zacute: "\u0179", zacute: "\u017A", Zcaron: "\u017D", zcaron: "\u017E", Zcy: "\u0417", zcy: "\u0437", Zdot: "\u017B", zdot: "\u017C", zeetrf: "\u2128", ZeroWidthSpace: "\u200B", Zeta: "\u0396", zeta: "\u03B6", zfr: "\u{1D537}", Zfr: "\u2128", ZHcy: "\u0416", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", Zopf: "\u2124", Zscr: "\u{1D4B5}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" };
  15316. }
  15317. });
  15318. // ../../node_modules/entities/lib/maps/legacy.json
  15319. var require_legacy = __commonJS({
  15320. "../../node_modules/entities/lib/maps/legacy.json"(exports, module2) {
  15321. module2.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9", eacute: "\xE9", Ecirc: "\xCA", ecirc: "\xEA", Egrave: "\xC8", egrave: "\xE8", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", frac12: "\xBD", frac14: "\xBC", frac34: "\xBE", gt: ">", GT: ">", Iacute: "\xCD", iacute: "\xED", Icirc: "\xCE", icirc: "\xEE", iexcl: "\xA1", Igrave: "\xCC", igrave: "\xEC", iquest: "\xBF", Iuml: "\xCF", iuml: "\xEF", laquo: "\xAB", lt: "<", LT: "<", macr: "\xAF", micro: "\xB5", middot: "\xB7", nbsp: "\xA0", not: "\xAC", Ntilde: "\xD1", ntilde: "\xF1", Oacute: "\xD3", oacute: "\xF3", Ocirc: "\xD4", ocirc: "\xF4", Ograve: "\xD2", ograve: "\xF2", ordf: "\xAA", ordm: "\xBA", Oslash: "\xD8", oslash: "\xF8", Otilde: "\xD5", otilde: "\xF5", Ouml: "\xD6", ouml: "\xF6", para: "\xB6", plusmn: "\xB1", pound: "\xA3", quot: '"', QUOT: '"', raquo: "\xBB", reg: "\xAE", REG: "\xAE", sect: "\xA7", shy: "\xAD", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", szlig: "\xDF", THORN: "\xDE", thorn: "\xFE", times: "\xD7", Uacute: "\xDA", uacute: "\xFA", Ucirc: "\xDB", ucirc: "\xFB", Ugrave: "\xD9", ugrave: "\xF9", uml: "\xA8", Uuml: "\xDC", uuml: "\xFC", Yacute: "\xDD", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" };
  15322. }
  15323. });
  15324. // ../../node_modules/entities/lib/maps/xml.json
  15325. var require_xml2 = __commonJS({
  15326. "../../node_modules/entities/lib/maps/xml.json"(exports, module2) {
  15327. module2.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
  15328. }
  15329. });
  15330. // ../../node_modules/entities/lib/maps/decode.json
  15331. var require_decode = __commonJS({
  15332. "../../node_modules/entities/lib/maps/decode.json"(exports, module2) {
  15333. module2.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240, "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212, "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
  15334. }
  15335. });
  15336. // ../../node_modules/entities/lib/decode_codepoint.js
  15337. var require_decode_codepoint = __commonJS({
  15338. "../../node_modules/entities/lib/decode_codepoint.js"(exports) {
  15339. "use strict";
  15340. var __importDefault = exports && exports.__importDefault || function(mod) {
  15341. return mod && mod.__esModule ? mod : { default: mod };
  15342. };
  15343. Object.defineProperty(exports, "__esModule", { value: !0 });
  15344. var decode_json_1 = __importDefault(require_decode()), fromCodePoint3 = (
  15345. // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
  15346. String.fromCodePoint || function(codePoint) {
  15347. var output = "";
  15348. return codePoint > 65535 && (codePoint -= 65536, output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296), codePoint = 56320 | codePoint & 1023), output += String.fromCharCode(codePoint), output;
  15349. }
  15350. );
  15351. function decodeCodePoint(codePoint) {
  15352. return codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111 ? "\uFFFD" : (codePoint in decode_json_1.default && (codePoint = decode_json_1.default[codePoint]), fromCodePoint3(codePoint));
  15353. }
  15354. exports.default = decodeCodePoint;
  15355. }
  15356. });
  15357. // ../../node_modules/entities/lib/decode.js
  15358. var require_decode2 = __commonJS({
  15359. "../../node_modules/entities/lib/decode.js"(exports) {
  15360. "use strict";
  15361. var __importDefault = exports && exports.__importDefault || function(mod) {
  15362. return mod && mod.__esModule ? mod : { default: mod };
  15363. };
  15364. Object.defineProperty(exports, "__esModule", { value: !0 });
  15365. exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0;
  15366. var entities_json_1 = __importDefault(require_entities()), legacy_json_1 = __importDefault(require_legacy()), xml_json_1 = __importDefault(require_xml2()), decode_codepoint_1 = __importDefault(require_decode_codepoint()), strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
  15367. exports.decodeXML = getStrictDecoder(xml_json_1.default);
  15368. exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default);
  15369. function getStrictDecoder(map2) {
  15370. var replace2 = getReplacer(map2);
  15371. return function(str2) {
  15372. return String(str2).replace(strictEntityRe, replace2);
  15373. };
  15374. }
  15375. var sorter = function(a3, b) {
  15376. return a3 < b ? 1 : -1;
  15377. };
  15378. exports.decodeHTML = (function() {
  15379. for (var legacy = Object.keys(legacy_json_1.default).sort(sorter), keys3 = Object.keys(entities_json_1.default).sort(sorter), i = 0, j = 0; i < keys3.length; i++)
  15380. legacy[j] === keys3[i] ? (keys3[i] += ";?", j++) : keys3[i] += ";";
  15381. var re = new RegExp("&(?:" + keys3.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), replace2 = getReplacer(entities_json_1.default);
  15382. function replacer3(str2) {
  15383. return str2.substr(-1) !== ";" && (str2 += ";"), replace2(str2);
  15384. }
  15385. return function(str2) {
  15386. return String(str2).replace(re, replacer3);
  15387. };
  15388. })();
  15389. function getReplacer(map2) {
  15390. return function(str2) {
  15391. if (str2.charAt(1) === "#") {
  15392. var secondChar = str2.charAt(2);
  15393. return secondChar === "X" || secondChar === "x" ? decode_codepoint_1.default(parseInt(str2.substr(3), 16)) : decode_codepoint_1.default(parseInt(str2.substr(2), 10));
  15394. }
  15395. return map2[str2.slice(1, -1)] || str2;
  15396. };
  15397. }
  15398. }
  15399. });
  15400. // ../../node_modules/entities/lib/encode.js
  15401. var require_encode = __commonJS({
  15402. "../../node_modules/entities/lib/encode.js"(exports) {
  15403. "use strict";
  15404. var __importDefault = exports && exports.__importDefault || function(mod) {
  15405. return mod && mod.__esModule ? mod : { default: mod };
  15406. };
  15407. Object.defineProperty(exports, "__esModule", { value: !0 });
  15408. exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0;
  15409. var xml_json_1 = __importDefault(require_xml2()), inverseXML = getInverseObj(xml_json_1.default), xmlReplacer = getInverseReplacer(inverseXML);
  15410. exports.encodeXML = getASCIIEncoder(inverseXML);
  15411. var entities_json_1 = __importDefault(require_entities()), inverseHTML = getInverseObj(entities_json_1.default), htmlReplacer = getInverseReplacer(inverseHTML);
  15412. exports.encodeHTML = getInverse(inverseHTML, htmlReplacer);
  15413. exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML);
  15414. function getInverseObj(obj) {
  15415. return Object.keys(obj).sort().reduce(function(inverse, name) {
  15416. return inverse[obj[name]] = "&" + name + ";", inverse;
  15417. }, {});
  15418. }
  15419. function getInverseReplacer(inverse) {
  15420. for (var single = [], multiple = [], _i = 0, _a4 = Object.keys(inverse); _i < _a4.length; _i++) {
  15421. var k = _a4[_i];
  15422. k.length === 1 ? single.push("\\" + k) : multiple.push(k);
  15423. }
  15424. single.sort();
  15425. for (var start2 = 0; start2 < single.length - 1; start2++) {
  15426. for (var end2 = start2; end2 < single.length - 1 && single[end2].charCodeAt(1) + 1 === single[end2 + 1].charCodeAt(1); )
  15427. end2 += 1;
  15428. var count = 1 + end2 - start2;
  15429. count < 3 || single.splice(start2, count, single[start2] + "-" + single[end2]);
  15430. }
  15431. return multiple.unshift("[" + single.join("") + "]"), new RegExp(multiple.join("|"), "g");
  15432. }
  15433. var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, getCodePoint = (
  15434. // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
  15435. String.prototype.codePointAt != null ? (
  15436. // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
  15437. function(str2) {
  15438. return str2.codePointAt(0);
  15439. }
  15440. ) : (
  15441. // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
  15442. function(c) {
  15443. return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536;
  15444. }
  15445. )
  15446. );
  15447. function singleCharReplacer(c) {
  15448. return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";";
  15449. }
  15450. function getInverse(inverse, re) {
  15451. return function(data) {
  15452. return data.replace(re, function(name) {
  15453. return inverse[name];
  15454. }).replace(reNonASCII, singleCharReplacer);
  15455. };
  15456. }
  15457. var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g");
  15458. function escape4(data) {
  15459. return data.replace(reEscapeChars, singleCharReplacer);
  15460. }
  15461. exports.escape = escape4;
  15462. function escapeUTF8(data) {
  15463. return data.replace(xmlReplacer, singleCharReplacer);
  15464. }
  15465. exports.escapeUTF8 = escapeUTF8;
  15466. function getASCIIEncoder(obj) {
  15467. return function(data) {
  15468. return data.replace(reEscapeChars, function(c) {
  15469. return obj[c] || singleCharReplacer(c);
  15470. });
  15471. };
  15472. }
  15473. }
  15474. });
  15475. // ../../node_modules/entities/lib/index.js
  15476. var require_lib = __commonJS({
  15477. "../../node_modules/entities/lib/index.js"(exports) {
  15478. "use strict";
  15479. Object.defineProperty(exports, "__esModule", { value: !0 });
  15480. exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0;
  15481. var decode_1 = require_decode2(), encode_1 = require_encode();
  15482. function decode(data, level) {
  15483. return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data);
  15484. }
  15485. exports.decode = decode;
  15486. function decodeStrict(data, level) {
  15487. return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data);
  15488. }
  15489. exports.decodeStrict = decodeStrict;
  15490. function encode2(data, level) {
  15491. return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data);
  15492. }
  15493. exports.encode = encode2;
  15494. var encode_2 = require_encode();
  15495. Object.defineProperty(exports, "encodeXML", { enumerable: !0, get: function() {
  15496. return encode_2.encodeXML;
  15497. } });
  15498. Object.defineProperty(exports, "encodeHTML", { enumerable: !0, get: function() {
  15499. return encode_2.encodeHTML;
  15500. } });
  15501. Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: !0, get: function() {
  15502. return encode_2.encodeNonAsciiHTML;
  15503. } });
  15504. Object.defineProperty(exports, "escape", { enumerable: !0, get: function() {
  15505. return encode_2.escape;
  15506. } });
  15507. Object.defineProperty(exports, "escapeUTF8", { enumerable: !0, get: function() {
  15508. return encode_2.escapeUTF8;
  15509. } });
  15510. Object.defineProperty(exports, "encodeHTML4", { enumerable: !0, get: function() {
  15511. return encode_2.encodeHTML;
  15512. } });
  15513. Object.defineProperty(exports, "encodeHTML5", { enumerable: !0, get: function() {
  15514. return encode_2.encodeHTML;
  15515. } });
  15516. var decode_2 = require_decode2();
  15517. Object.defineProperty(exports, "decodeXML", { enumerable: !0, get: function() {
  15518. return decode_2.decodeXML;
  15519. } });
  15520. Object.defineProperty(exports, "decodeHTML", { enumerable: !0, get: function() {
  15521. return decode_2.decodeHTML;
  15522. } });
  15523. Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: !0, get: function() {
  15524. return decode_2.decodeHTMLStrict;
  15525. } });
  15526. Object.defineProperty(exports, "decodeHTML4", { enumerable: !0, get: function() {
  15527. return decode_2.decodeHTML;
  15528. } });
  15529. Object.defineProperty(exports, "decodeHTML5", { enumerable: !0, get: function() {
  15530. return decode_2.decodeHTML;
  15531. } });
  15532. Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: !0, get: function() {
  15533. return decode_2.decodeHTMLStrict;
  15534. } });
  15535. Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: !0, get: function() {
  15536. return decode_2.decodeHTMLStrict;
  15537. } });
  15538. Object.defineProperty(exports, "decodeXMLStrict", { enumerable: !0, get: function() {
  15539. return decode_2.decodeXML;
  15540. } });
  15541. }
  15542. });
  15543. // ../../node_modules/ansi-to-html/lib/ansi_to_html.js
  15544. var require_ansi_to_html = __commonJS({
  15545. "../../node_modules/ansi-to-html/lib/ansi_to_html.js"(exports, module2) {
  15546. "use strict";
  15547. function _classCallCheck3(instance, Constructor) {
  15548. if (!(instance instanceof Constructor))
  15549. throw new TypeError("Cannot call a class as a function");
  15550. }
  15551. function _defineProperties3(target, props) {
  15552. for (var i = 0; i < props.length; i++) {
  15553. var descriptor = props[i];
  15554. descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
  15555. }
  15556. }
  15557. function _createClass3(Constructor, protoProps, staticProps) {
  15558. return protoProps && _defineProperties3(Constructor.prototype, protoProps), staticProps && _defineProperties3(Constructor, staticProps), Constructor;
  15559. }
  15560. function _createForOfIteratorHelper(o, allowArrayLike) {
  15561. var it = typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"];
  15562. if (!it) {
  15563. if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length == "number") {
  15564. it && (o = it);
  15565. var i = 0, F = function() {
  15566. };
  15567. return { s: F, n: function() {
  15568. return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] };
  15569. }, e: function(_e) {
  15570. throw _e;
  15571. }, f: F };
  15572. }
  15573. throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  15574. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  15575. }
  15576. var normalCompletion = !0, didErr = !1, err;
  15577. return { s: function() {
  15578. it = it.call(o);
  15579. }, n: function() {
  15580. var step2 = it.next();
  15581. return normalCompletion = step2.done, step2;
  15582. }, e: function(_e2) {
  15583. didErr = !0, err = _e2;
  15584. }, f: function() {
  15585. try {
  15586. !normalCompletion && it.return != null && it.return();
  15587. } finally {
  15588. if (didErr) throw err;
  15589. }
  15590. } };
  15591. }
  15592. function _unsupportedIterableToArray2(o, minLen) {
  15593. if (o) {
  15594. if (typeof o == "string") return _arrayLikeToArray2(o, minLen);
  15595. var n = Object.prototype.toString.call(o).slice(8, -1);
  15596. if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(o);
  15597. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray2(o, minLen);
  15598. }
  15599. }
  15600. function _arrayLikeToArray2(arr, len) {
  15601. (len == null || len > arr.length) && (len = arr.length);
  15602. for (var i = 0, arr2 = new Array(len); i < len; i++)
  15603. arr2[i] = arr[i];
  15604. return arr2;
  15605. }
  15606. var entities = require_lib(), defaults = {
  15607. fg: "#FFF",
  15608. bg: "#000",
  15609. newline: !1,
  15610. escapeXML: !1,
  15611. stream: !1,
  15612. colors: getDefaultColors()
  15613. };
  15614. function getDefaultColors() {
  15615. var colors3 = {
  15616. 0: "#000",
  15617. 1: "#A00",
  15618. 2: "#0A0",
  15619. 3: "#A50",
  15620. 4: "#00A",
  15621. 5: "#A0A",
  15622. 6: "#0AA",
  15623. 7: "#AAA",
  15624. 8: "#555",
  15625. 9: "#F55",
  15626. 10: "#5F5",
  15627. 11: "#FF5",
  15628. 12: "#55F",
  15629. 13: "#F5F",
  15630. 14: "#5FF",
  15631. 15: "#FFF"
  15632. };
  15633. return range(0, 5).forEach(function(red) {
  15634. range(0, 5).forEach(function(green) {
  15635. range(0, 5).forEach(function(blue) {
  15636. return setStyleColor(red, green, blue, colors3);
  15637. });
  15638. });
  15639. }), range(0, 23).forEach(function(gray) {
  15640. var c = gray + 232, l = toHexString(gray * 10 + 8);
  15641. colors3[c] = "#" + l + l + l;
  15642. }), colors3;
  15643. }
  15644. function setStyleColor(red, green, blue, colors3) {
  15645. var c = 16 + red * 36 + green * 6 + blue, r2 = red > 0 ? red * 40 + 55 : 0, g2 = green > 0 ? green * 40 + 55 : 0, b = blue > 0 ? blue * 40 + 55 : 0;
  15646. colors3[c] = toColorHexString([r2, g2, b]);
  15647. }
  15648. function toHexString(num) {
  15649. for (var str2 = num.toString(16); str2.length < 2; )
  15650. str2 = "0" + str2;
  15651. return str2;
  15652. }
  15653. function toColorHexString(ref) {
  15654. var results = [], _iterator = _createForOfIteratorHelper(ref), _step;
  15655. try {
  15656. for (_iterator.s(); !(_step = _iterator.n()).done; ) {
  15657. var r2 = _step.value;
  15658. results.push(toHexString(r2));
  15659. }
  15660. } catch (err) {
  15661. _iterator.e(err);
  15662. } finally {
  15663. _iterator.f();
  15664. }
  15665. return "#" + results.join("");
  15666. }
  15667. function generateOutput(stack, token2, data, options) {
  15668. var result;
  15669. return token2 === "text" ? result = pushText(data, options) : token2 === "display" ? result = handleDisplay(stack, data, options) : token2 === "xterm256Foreground" ? result = pushForegroundColor(stack, options.colors[data]) : token2 === "xterm256Background" ? result = pushBackgroundColor(stack, options.colors[data]) : token2 === "rgb" && (result = handleRgb(stack, data)), result;
  15670. }
  15671. function handleRgb(stack, data) {
  15672. data = data.substring(2).slice(0, -1);
  15673. var operation = +data.substr(0, 2), color2 = data.substring(5).split(";"), rgb2 = color2.map(function(value) {
  15674. return ("0" + Number(value).toString(16)).substr(-2);
  15675. }).join("");
  15676. return pushStyle(stack, (operation === 38 ? "color:#" : "background-color:#") + rgb2);
  15677. }
  15678. function handleDisplay(stack, code, options) {
  15679. code = parseInt(code, 10);
  15680. var codeMap = {
  15681. "-1": function() {
  15682. return "<br/>";
  15683. },
  15684. 0: function() {
  15685. return stack.length && resetStyles(stack);
  15686. },
  15687. 1: function() {
  15688. return pushTag(stack, "b");
  15689. },
  15690. 3: function() {
  15691. return pushTag(stack, "i");
  15692. },
  15693. 4: function() {
  15694. return pushTag(stack, "u");
  15695. },
  15696. 8: function() {
  15697. return pushStyle(stack, "display:none");
  15698. },
  15699. 9: function() {
  15700. return pushTag(stack, "strike");
  15701. },
  15702. 22: function() {
  15703. return pushStyle(stack, "font-weight:normal;text-decoration:none;font-style:normal");
  15704. },
  15705. 23: function() {
  15706. return closeTag(stack, "i");
  15707. },
  15708. 24: function() {
  15709. return closeTag(stack, "u");
  15710. },
  15711. 39: function() {
  15712. return pushForegroundColor(stack, options.fg);
  15713. },
  15714. 49: function() {
  15715. return pushBackgroundColor(stack, options.bg);
  15716. },
  15717. 53: function() {
  15718. return pushStyle(stack, "text-decoration:overline");
  15719. }
  15720. }, result;
  15721. return codeMap[code] ? result = codeMap[code]() : 4 < code && code < 7 ? result = pushTag(stack, "blink") : 29 < code && code < 38 ? result = pushForegroundColor(stack, options.colors[code - 30]) : 39 < code && code < 48 ? result = pushBackgroundColor(stack, options.colors[code - 40]) : 89 < code && code < 98 ? result = pushForegroundColor(stack, options.colors[8 + (code - 90)]) : 99 < code && code < 108 && (result = pushBackgroundColor(stack, options.colors[8 + (code - 100)])), result;
  15722. }
  15723. function resetStyles(stack) {
  15724. var stackClone = stack.slice(0);
  15725. return stack.length = 0, stackClone.reverse().map(function(tag) {
  15726. return "</" + tag + ">";
  15727. }).join("");
  15728. }
  15729. function range(low, high) {
  15730. for (var results = [], j = low; j <= high; j++)
  15731. results.push(j);
  15732. return results;
  15733. }
  15734. function notCategory(category) {
  15735. return function(e) {
  15736. return (category === null || e.category !== category) && category !== "all";
  15737. };
  15738. }
  15739. function categoryForCode(code) {
  15740. code = parseInt(code, 10);
  15741. var result = null;
  15742. return code === 0 ? result = "all" : code === 1 ? result = "bold" : 2 < code && code < 5 ? result = "underline" : 4 < code && code < 7 ? result = "blink" : code === 8 ? result = "hide" : code === 9 ? result = "strike" : 29 < code && code < 38 || code === 39 || 89 < code && code < 98 ? result = "foreground-color" : (39 < code && code < 48 || code === 49 || 99 < code && code < 108) && (result = "background-color"), result;
  15743. }
  15744. function pushText(text, options) {
  15745. return options.escapeXML ? entities.encodeXML(text) : text;
  15746. }
  15747. function pushTag(stack, tag, style) {
  15748. return style || (style = ""), stack.push(tag), "<".concat(tag).concat(style ? ' style="'.concat(style, '"') : "", ">");
  15749. }
  15750. function pushStyle(stack, style) {
  15751. return pushTag(stack, "span", style);
  15752. }
  15753. function pushForegroundColor(stack, color2) {
  15754. return pushTag(stack, "span", "color:" + color2);
  15755. }
  15756. function pushBackgroundColor(stack, color2) {
  15757. return pushTag(stack, "span", "background-color:" + color2);
  15758. }
  15759. function closeTag(stack, style) {
  15760. var last2;
  15761. if (stack.slice(-1)[0] === style && (last2 = stack.pop()), last2)
  15762. return "</" + style + ">";
  15763. }
  15764. function tokenize2(text, options, callback) {
  15765. var ansiMatch = !1, ansiHandler = 3;
  15766. function remove2() {
  15767. return "";
  15768. }
  15769. function removeXterm256Foreground(m3, g1) {
  15770. return callback("xterm256Foreground", g1), "";
  15771. }
  15772. function removeXterm256Background(m3, g1) {
  15773. return callback("xterm256Background", g1), "";
  15774. }
  15775. function newline(m3) {
  15776. return options.newline ? callback("display", -1) : callback("text", m3), "";
  15777. }
  15778. function ansiMess(m3, g1) {
  15779. ansiMatch = !0, g1.trim().length === 0 && (g1 = "0"), g1 = g1.trimRight(";").split(";");
  15780. var _iterator2 = _createForOfIteratorHelper(g1), _step2;
  15781. try {
  15782. for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
  15783. var g2 = _step2.value;
  15784. callback("display", g2);
  15785. }
  15786. } catch (err) {
  15787. _iterator2.e(err);
  15788. } finally {
  15789. _iterator2.f();
  15790. }
  15791. return "";
  15792. }
  15793. function realText(m3) {
  15794. return callback("text", m3), "";
  15795. }
  15796. function rgb2(m3) {
  15797. return callback("rgb", m3), "";
  15798. }
  15799. var tokens2 = [{
  15800. pattern: /^\x08+/,
  15801. sub: remove2
  15802. }, {
  15803. pattern: /^\x1b\[[012]?K/,
  15804. sub: remove2
  15805. }, {
  15806. pattern: /^\x1b\[\(B/,
  15807. sub: remove2
  15808. }, {
  15809. pattern: /^\x1b\[[34]8;2;\d+;\d+;\d+m/,
  15810. sub: rgb2
  15811. }, {
  15812. pattern: /^\x1b\[38;5;(\d+)m/,
  15813. sub: removeXterm256Foreground
  15814. }, {
  15815. pattern: /^\x1b\[48;5;(\d+)m/,
  15816. sub: removeXterm256Background
  15817. }, {
  15818. pattern: /^\n/,
  15819. sub: newline
  15820. }, {
  15821. pattern: /^\r+\n/,
  15822. sub: newline
  15823. }, {
  15824. pattern: /^\r/,
  15825. sub: newline
  15826. }, {
  15827. pattern: /^\x1b\[((?:\d{1,3};?)+|)m/,
  15828. sub: ansiMess
  15829. }, {
  15830. // CSI n J
  15831. // ED - Erase in Display Clears part of the screen.
  15832. // If n is 0 (or missing), clear from cursor to end of screen.
  15833. // If n is 1, clear from cursor to beginning of the screen.
  15834. // If n is 2, clear entire screen (and moves cursor to upper left on DOS ANSI.SYS).
  15835. // If n is 3, clear entire screen and delete all lines saved in the scrollback buffer
  15836. // (this feature was added for xterm and is supported by other terminal applications).
  15837. pattern: /^\x1b\[\d?J/,
  15838. sub: remove2
  15839. }, {
  15840. // CSI n ; m f
  15841. // HVP - Horizontal Vertical Position Same as CUP
  15842. pattern: /^\x1b\[\d{0,3};\d{0,3}f/,
  15843. sub: remove2
  15844. }, {
  15845. // catch-all for CSI sequences?
  15846. pattern: /^\x1b\[?[\d;]{0,3}/,
  15847. sub: remove2
  15848. }, {
  15849. /**
  15850. * extracts real text - not containing:
  15851. * - `\x1b' - ESC - escape (Ascii 27)
  15852. * - '\x08' - BS - backspace (Ascii 8)
  15853. * - `\n` - Newline - linefeed (LF) (ascii 10)
  15854. * - `\r` - Windows Carriage Return (CR)
  15855. */
  15856. pattern: /^(([^\x1b\x08\r\n])+)/,
  15857. sub: realText
  15858. }];
  15859. function process2(handler2, i2) {
  15860. i2 > ansiHandler && ansiMatch || (ansiMatch = !1, text = text.replace(handler2.pattern, handler2.sub));
  15861. }
  15862. var results1 = [], _text = text, length2 = _text.length;
  15863. outer: for (; length2 > 0; ) {
  15864. for (var i = 0, o = 0, len = tokens2.length; o < len; i = ++o) {
  15865. var handler = tokens2[i];
  15866. if (process2(handler, i), text.length !== length2) {
  15867. length2 = text.length;
  15868. continue outer;
  15869. }
  15870. }
  15871. if (text.length === length2)
  15872. break;
  15873. results1.push(0), length2 = text.length;
  15874. }
  15875. return results1;
  15876. }
  15877. function updateStickyStack(stickyStack, token2, data) {
  15878. return token2 !== "text" && (stickyStack = stickyStack.filter(notCategory(categoryForCode(data))), stickyStack.push({
  15879. token: token2,
  15880. data,
  15881. category: categoryForCode(data)
  15882. })), stickyStack;
  15883. }
  15884. var Filter = (function() {
  15885. function Filter2(options) {
  15886. _classCallCheck3(this, Filter2), options = options || {}, options.colors && (options.colors = Object.assign({}, defaults.colors, options.colors)), this.options = Object.assign({}, defaults, options), this.stack = [], this.stickyStack = [];
  15887. }
  15888. return _createClass3(Filter2, [{
  15889. key: "toHtml",
  15890. value: function(input2) {
  15891. var _this = this;
  15892. input2 = typeof input2 == "string" ? [input2] : input2;
  15893. var stack = this.stack, options = this.options, buf = [];
  15894. return this.stickyStack.forEach(function(element) {
  15895. var output = generateOutput(stack, element.token, element.data, options);
  15896. output && buf.push(output);
  15897. }), tokenize2(input2.join(""), options, function(token2, data) {
  15898. var output = generateOutput(stack, token2, data, options);
  15899. output && buf.push(output), options.stream && (_this.stickyStack = updateStickyStack(_this.stickyStack, token2, data));
  15900. }), stack.length && buf.push(resetStyles(stack)), buf.join("");
  15901. }
  15902. }]), Filter2;
  15903. })();
  15904. module2.exports = Filter;
  15905. }
  15906. });
  15907. // ../../node_modules/jsdoc-type-pratt-parser/dist/index.js
  15908. var require_dist = __commonJS({
  15909. "../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(exports, module2) {
  15910. (function(global2, factory) {
  15911. typeof exports == "object" && typeof module2 < "u" ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis < "u" ? globalThis : global2 || self, factory(global2.jtpp = {}));
  15912. })(exports, (function(exports2) {
  15913. "use strict";
  15914. function tokenToString(token2) {
  15915. return token2.text !== void 0 && token2.text !== "" ? `'${token2.type}' with value '${token2.text}'` : `'${token2.type}'`;
  15916. }
  15917. class NoParsletFoundError extends Error {
  15918. constructor(token2) {
  15919. super(`No parslet found for token: ${tokenToString(token2)}`), this.token = token2, Object.setPrototypeOf(this, NoParsletFoundError.prototype);
  15920. }
  15921. getToken() {
  15922. return this.token;
  15923. }
  15924. }
  15925. class EarlyEndOfParseError extends Error {
  15926. constructor(token2) {
  15927. super(`The parsing ended early. The next token was: ${tokenToString(token2)}`), this.token = token2, Object.setPrototypeOf(this, EarlyEndOfParseError.prototype);
  15928. }
  15929. getToken() {
  15930. return this.token;
  15931. }
  15932. }
  15933. class UnexpectedTypeError extends Error {
  15934. constructor(result, message) {
  15935. let error = `Unexpected type: '${result.type}'.`;
  15936. message !== void 0 && (error += ` Message: ${message}`), super(error), Object.setPrototypeOf(this, UnexpectedTypeError.prototype);
  15937. }
  15938. }
  15939. function makePunctuationRule(type5) {
  15940. return (text) => text.startsWith(type5) ? { type: type5, text: type5 } : null;
  15941. }
  15942. function getQuoted(text) {
  15943. let position2 = 0, char2, mark = text[0], escaped = !1;
  15944. if (mark !== "'" && mark !== '"')
  15945. return null;
  15946. for (; position2 < text.length; ) {
  15947. if (position2++, char2 = text[position2], !escaped && char2 === mark) {
  15948. position2++;
  15949. break;
  15950. }
  15951. escaped = !escaped && char2 === "\\";
  15952. }
  15953. if (char2 !== mark)
  15954. throw new Error("Unterminated String");
  15955. return text.slice(0, position2);
  15956. }
  15957. let identifierStartRegex = new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u"), identifierContinueRegex = new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u");
  15958. function getIdentifier(text) {
  15959. let char2 = text[0];
  15960. if (!identifierStartRegex.test(char2))
  15961. return null;
  15962. let position2 = 1;
  15963. do {
  15964. if (char2 = text[position2], !identifierContinueRegex.test(char2))
  15965. break;
  15966. position2++;
  15967. } while (position2 < text.length);
  15968. return text.slice(0, position2);
  15969. }
  15970. let numberRegex = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;
  15971. function getNumber(text) {
  15972. var _a4, _b;
  15973. return (_b = (_a4 = numberRegex.exec(text)) === null || _a4 === void 0 ? void 0 : _a4[0]) !== null && _b !== void 0 ? _b : null;
  15974. }
  15975. let identifierRule = (text) => {
  15976. let value = getIdentifier(text);
  15977. return value == null ? null : {
  15978. type: "Identifier",
  15979. text: value
  15980. };
  15981. };
  15982. function makeKeyWordRule(type5) {
  15983. return (text) => {
  15984. if (!text.startsWith(type5))
  15985. return null;
  15986. let prepends = text[type5.length];
  15987. return prepends !== void 0 && identifierContinueRegex.test(prepends) ? null : {
  15988. type: type5,
  15989. text: type5
  15990. };
  15991. };
  15992. }
  15993. let stringValueRule = (text) => {
  15994. let value = getQuoted(text);
  15995. return value == null ? null : {
  15996. type: "StringValue",
  15997. text: value
  15998. };
  15999. }, eofRule = (text) => text.length > 0 ? null : {
  16000. type: "EOF",
  16001. text: ""
  16002. }, numberRule = (text) => {
  16003. let value = getNumber(text);
  16004. return value === null ? null : {
  16005. type: "Number",
  16006. text: value
  16007. };
  16008. }, rules = [
  16009. eofRule,
  16010. makePunctuationRule("=>"),
  16011. makePunctuationRule("("),
  16012. makePunctuationRule(")"),
  16013. makePunctuationRule("{"),
  16014. makePunctuationRule("}"),
  16015. makePunctuationRule("["),
  16016. makePunctuationRule("]"),
  16017. makePunctuationRule("|"),
  16018. makePunctuationRule("&"),
  16019. makePunctuationRule("<"),
  16020. makePunctuationRule(">"),
  16021. makePunctuationRule(","),
  16022. makePunctuationRule(";"),
  16023. makePunctuationRule("*"),
  16024. makePunctuationRule("?"),
  16025. makePunctuationRule("!"),
  16026. makePunctuationRule("="),
  16027. makePunctuationRule(":"),
  16028. makePunctuationRule("..."),
  16029. makePunctuationRule("."),
  16030. makePunctuationRule("#"),
  16031. makePunctuationRule("~"),
  16032. makePunctuationRule("/"),
  16033. makePunctuationRule("@"),
  16034. makeKeyWordRule("undefined"),
  16035. makeKeyWordRule("null"),
  16036. makeKeyWordRule("function"),
  16037. makeKeyWordRule("this"),
  16038. makeKeyWordRule("new"),
  16039. makeKeyWordRule("module"),
  16040. makeKeyWordRule("event"),
  16041. makeKeyWordRule("extends"),
  16042. makeKeyWordRule("external"),
  16043. makeKeyWordRule("infer"),
  16044. makeKeyWordRule("typeof"),
  16045. makeKeyWordRule("keyof"),
  16046. makeKeyWordRule("readonly"),
  16047. makeKeyWordRule("import"),
  16048. makeKeyWordRule("is"),
  16049. makeKeyWordRule("in"),
  16050. makeKeyWordRule("asserts"),
  16051. numberRule,
  16052. identifierRule,
  16053. stringValueRule
  16054. ], breakingWhitespaceRegex = /^\s*\n\s*/;
  16055. class Lexer {
  16056. static create(text) {
  16057. let current = this.read(text);
  16058. text = current.text;
  16059. let next2 = this.read(text);
  16060. return text = next2.text, new Lexer(text, void 0, current.token, next2.token);
  16061. }
  16062. constructor(text, previous, current, next2) {
  16063. this.text = "", this.text = text, this.previous = previous, this.current = current, this.next = next2;
  16064. }
  16065. static read(text, startOfLine = !1) {
  16066. startOfLine = startOfLine || breakingWhitespaceRegex.test(text), text = text.trim();
  16067. for (let rule of rules) {
  16068. let partial = rule(text);
  16069. if (partial !== null) {
  16070. let token2 = Object.assign(Object.assign({}, partial), { startOfLine });
  16071. return text = text.slice(token2.text.length), { text, token: token2 };
  16072. }
  16073. }
  16074. throw new Error("Unexpected Token " + text);
  16075. }
  16076. advance() {
  16077. let next2 = Lexer.read(this.text);
  16078. return new Lexer(next2.text, this.current, this.next, next2.token);
  16079. }
  16080. }
  16081. function assertRootResult(result) {
  16082. if (result === void 0)
  16083. throw new Error("Unexpected undefined");
  16084. if (result.type === "JsdocTypeKeyValue" || result.type === "JsdocTypeParameterList" || result.type === "JsdocTypeProperty" || result.type === "JsdocTypeReadonlyProperty" || result.type === "JsdocTypeObjectField" || result.type === "JsdocTypeJsdocObjectField" || result.type === "JsdocTypeIndexSignature" || result.type === "JsdocTypeMappedType" || result.type === "JsdocTypeTypeParameter")
  16085. throw new UnexpectedTypeError(result);
  16086. return result;
  16087. }
  16088. function assertPlainKeyValueOrRootResult(result) {
  16089. return result.type === "JsdocTypeKeyValue" ? assertPlainKeyValueResult(result) : assertRootResult(result);
  16090. }
  16091. function assertPlainKeyValueOrNameResult(result) {
  16092. return result.type === "JsdocTypeName" ? result : assertPlainKeyValueResult(result);
  16093. }
  16094. function assertPlainKeyValueResult(result) {
  16095. if (result.type !== "JsdocTypeKeyValue")
  16096. throw new UnexpectedTypeError(result);
  16097. return result;
  16098. }
  16099. function assertNumberOrVariadicNameResult(result) {
  16100. var _a4;
  16101. if (result.type === "JsdocTypeVariadic") {
  16102. if (((_a4 = result.element) === null || _a4 === void 0 ? void 0 : _a4.type) === "JsdocTypeName")
  16103. return result;
  16104. throw new UnexpectedTypeError(result);
  16105. }
  16106. if (result.type !== "JsdocTypeNumber" && result.type !== "JsdocTypeName")
  16107. throw new UnexpectedTypeError(result);
  16108. return result;
  16109. }
  16110. function assertArrayOrTupleResult(result) {
  16111. if (result.type === "JsdocTypeTuple" || result.type === "JsdocTypeGeneric" && result.meta.brackets === "square")
  16112. return result;
  16113. throw new UnexpectedTypeError(result);
  16114. }
  16115. function isSquaredProperty(result) {
  16116. return result.type === "JsdocTypeIndexSignature" || result.type === "JsdocTypeMappedType";
  16117. }
  16118. var Precedence;
  16119. (function(Precedence2) {
  16120. Precedence2[Precedence2.ALL = 0] = "ALL", Precedence2[Precedence2.PARAMETER_LIST = 1] = "PARAMETER_LIST", Precedence2[Precedence2.OBJECT = 2] = "OBJECT", Precedence2[Precedence2.KEY_VALUE = 3] = "KEY_VALUE", Precedence2[Precedence2.INDEX_BRACKETS = 4] = "INDEX_BRACKETS", Precedence2[Precedence2.UNION = 5] = "UNION", Precedence2[Precedence2.INTERSECTION = 6] = "INTERSECTION", Precedence2[Precedence2.PREFIX = 7] = "PREFIX", Precedence2[Precedence2.INFIX = 8] = "INFIX", Precedence2[Precedence2.TUPLE = 9] = "TUPLE", Precedence2[Precedence2.SYMBOL = 10] = "SYMBOL", Precedence2[Precedence2.OPTIONAL = 11] = "OPTIONAL", Precedence2[Precedence2.NULLABLE = 12] = "NULLABLE", Precedence2[Precedence2.KEY_OF_TYPE_OF = 13] = "KEY_OF_TYPE_OF", Precedence2[Precedence2.FUNCTION = 14] = "FUNCTION", Precedence2[Precedence2.ARROW = 15] = "ARROW", Precedence2[Precedence2.ARRAY_BRACKETS = 16] = "ARRAY_BRACKETS", Precedence2[Precedence2.GENERIC = 17] = "GENERIC", Precedence2[Precedence2.NAME_PATH = 18] = "NAME_PATH", Precedence2[Precedence2.PARENTHESIS = 19] = "PARENTHESIS", Precedence2[Precedence2.SPECIAL_TYPES = 20] = "SPECIAL_TYPES";
  16121. })(Precedence || (Precedence = {}));
  16122. class Parser2 {
  16123. constructor(grammar, textOrLexer, baseParser) {
  16124. this.grammar = grammar, typeof textOrLexer == "string" ? this._lexer = Lexer.create(textOrLexer) : this._lexer = textOrLexer, this.baseParser = baseParser;
  16125. }
  16126. get lexer() {
  16127. return this._lexer;
  16128. }
  16129. /**
  16130. * Parses a given string and throws an error if the parse ended before the end of the string.
  16131. */
  16132. parse() {
  16133. let result = this.parseType(Precedence.ALL);
  16134. if (this.lexer.current.type !== "EOF")
  16135. throw new EarlyEndOfParseError(this.lexer.current);
  16136. return result;
  16137. }
  16138. /**
  16139. * Parses with the current lexer and asserts that the result is a {@link RootResult}.
  16140. */
  16141. parseType(precedence) {
  16142. return assertRootResult(this.parseIntermediateType(precedence));
  16143. }
  16144. /**
  16145. * The main parsing function. First it tries to parse the current state in the prefix step, and then it continues
  16146. * to parse the state in the infix step.
  16147. */
  16148. parseIntermediateType(precedence) {
  16149. let result = this.tryParslets(null, precedence);
  16150. if (result === null)
  16151. throw new NoParsletFoundError(this.lexer.current);
  16152. return this.parseInfixIntermediateType(result, precedence);
  16153. }
  16154. /**
  16155. * In the infix parsing step the parser continues to parse the current state with all parslets until none returns
  16156. * a result.
  16157. */
  16158. parseInfixIntermediateType(left2, precedence) {
  16159. let result = this.tryParslets(left2, precedence);
  16160. for (; result !== null; )
  16161. left2 = result, result = this.tryParslets(left2, precedence);
  16162. return left2;
  16163. }
  16164. /**
  16165. * Tries to parse the current state with all parslets in the grammar and returns the first non null result.
  16166. */
  16167. tryParslets(left2, precedence) {
  16168. for (let parslet of this.grammar) {
  16169. let result = parslet(this, precedence, left2);
  16170. if (result !== null)
  16171. return result;
  16172. }
  16173. return null;
  16174. }
  16175. /**
  16176. * If the given type equals the current type of the {@link Lexer} advance the lexer. Return true if the lexer was
  16177. * advanced.
  16178. */
  16179. consume(types) {
  16180. return Array.isArray(types) || (types = [types]), types.includes(this.lexer.current.type) ? (this._lexer = this.lexer.advance(), !0) : !1;
  16181. }
  16182. acceptLexerState(parser) {
  16183. this._lexer = parser.lexer;
  16184. }
  16185. }
  16186. function isQuestionMarkUnknownType(next2) {
  16187. return next2 === "}" || next2 === "EOF" || next2 === "|" || next2 === "," || next2 === ")" || next2 === ">";
  16188. }
  16189. let nullableParslet = (parser, precedence, left2) => {
  16190. let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type;
  16191. return left2 == null && type5 === "?" && !isQuestionMarkUnknownType(next2) || left2 != null && type5 === "?" ? (parser.consume("?"), left2 == null ? {
  16192. type: "JsdocTypeNullable",
  16193. element: parser.parseType(Precedence.NULLABLE),
  16194. meta: {
  16195. position: "prefix"
  16196. }
  16197. } : {
  16198. type: "JsdocTypeNullable",
  16199. element: assertRootResult(left2),
  16200. meta: {
  16201. position: "suffix"
  16202. }
  16203. }) : null;
  16204. };
  16205. function composeParslet(options) {
  16206. let parslet = (parser, curPrecedence, left2) => {
  16207. let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type;
  16208. if (left2 === null) {
  16209. if ("parsePrefix" in options && options.accept(type5, next2))
  16210. return options.parsePrefix(parser);
  16211. } else if ("parseInfix" in options && options.precedence > curPrecedence && options.accept(type5, next2))
  16212. return options.parseInfix(parser, left2);
  16213. return null;
  16214. };
  16215. return Object.defineProperty(parslet, "name", {
  16216. value: options.name
  16217. }), parslet;
  16218. }
  16219. let optionalParslet = composeParslet({
  16220. name: "optionalParslet",
  16221. accept: (type5) => type5 === "=",
  16222. precedence: Precedence.OPTIONAL,
  16223. parsePrefix: (parser) => (parser.consume("="), {
  16224. type: "JsdocTypeOptional",
  16225. element: parser.parseType(Precedence.OPTIONAL),
  16226. meta: {
  16227. position: "prefix"
  16228. }
  16229. }),
  16230. parseInfix: (parser, left2) => (parser.consume("="), {
  16231. type: "JsdocTypeOptional",
  16232. element: assertRootResult(left2),
  16233. meta: {
  16234. position: "suffix"
  16235. }
  16236. })
  16237. }), numberParslet = composeParslet({
  16238. name: "numberParslet",
  16239. accept: (type5) => type5 === "Number",
  16240. parsePrefix: (parser) => {
  16241. let value = parseFloat(parser.lexer.current.text);
  16242. return parser.consume("Number"), {
  16243. type: "JsdocTypeNumber",
  16244. value
  16245. };
  16246. }
  16247. }), parenthesisParslet = composeParslet({
  16248. name: "parenthesisParslet",
  16249. accept: (type5) => type5 === "(",
  16250. parsePrefix: (parser) => {
  16251. if (parser.consume("("), parser.consume(")"))
  16252. return {
  16253. type: "JsdocTypeParameterList",
  16254. elements: []
  16255. };
  16256. let result = parser.parseIntermediateType(Precedence.ALL);
  16257. if (!parser.consume(")"))
  16258. throw new Error("Unterminated parenthesis");
  16259. return result.type === "JsdocTypeParameterList" ? result : result.type === "JsdocTypeKeyValue" ? {
  16260. type: "JsdocTypeParameterList",
  16261. elements: [result]
  16262. } : {
  16263. type: "JsdocTypeParenthesis",
  16264. element: assertRootResult(result)
  16265. };
  16266. }
  16267. }), specialTypesParslet = composeParslet({
  16268. name: "specialTypesParslet",
  16269. accept: (type5, next2) => type5 === "?" && isQuestionMarkUnknownType(next2) || type5 === "null" || type5 === "undefined" || type5 === "*",
  16270. parsePrefix: (parser) => {
  16271. if (parser.consume("null"))
  16272. return {
  16273. type: "JsdocTypeNull"
  16274. };
  16275. if (parser.consume("undefined"))
  16276. return {
  16277. type: "JsdocTypeUndefined"
  16278. };
  16279. if (parser.consume("*"))
  16280. return {
  16281. type: "JsdocTypeAny"
  16282. };
  16283. if (parser.consume("?"))
  16284. return {
  16285. type: "JsdocTypeUnknown"
  16286. };
  16287. throw new Error("Unacceptable token: " + parser.lexer.current.text);
  16288. }
  16289. }), notNullableParslet = composeParslet({
  16290. name: "notNullableParslet",
  16291. accept: (type5) => type5 === "!",
  16292. precedence: Precedence.NULLABLE,
  16293. parsePrefix: (parser) => (parser.consume("!"), {
  16294. type: "JsdocTypeNotNullable",
  16295. element: parser.parseType(Precedence.NULLABLE),
  16296. meta: {
  16297. position: "prefix"
  16298. }
  16299. }),
  16300. parseInfix: (parser, left2) => (parser.consume("!"), {
  16301. type: "JsdocTypeNotNullable",
  16302. element: assertRootResult(left2),
  16303. meta: {
  16304. position: "suffix"
  16305. }
  16306. })
  16307. });
  16308. function createParameterListParslet({ allowTrailingComma }) {
  16309. return composeParslet({
  16310. name: "parameterListParslet",
  16311. accept: (type5) => type5 === ",",
  16312. precedence: Precedence.PARAMETER_LIST,
  16313. parseInfix: (parser, left2) => {
  16314. let elements = [
  16315. assertPlainKeyValueOrRootResult(left2)
  16316. ];
  16317. parser.consume(",");
  16318. do
  16319. try {
  16320. let next2 = parser.parseIntermediateType(Precedence.PARAMETER_LIST);
  16321. elements.push(assertPlainKeyValueOrRootResult(next2));
  16322. } catch (e) {
  16323. if (e instanceof NoParsletFoundError)
  16324. break;
  16325. throw e;
  16326. }
  16327. while (parser.consume(","));
  16328. if (elements.length > 0 && elements.slice(0, -1).some((e) => e.type === "JsdocTypeVariadic"))
  16329. throw new Error("Only the last parameter may be a rest parameter");
  16330. return {
  16331. type: "JsdocTypeParameterList",
  16332. elements
  16333. };
  16334. }
  16335. });
  16336. }
  16337. let genericParslet = composeParslet({
  16338. name: "genericParslet",
  16339. accept: (type5, next2) => type5 === "<" || type5 === "." && next2 === "<",
  16340. precedence: Precedence.GENERIC,
  16341. parseInfix: (parser, left2) => {
  16342. let dot = parser.consume(".");
  16343. parser.consume("<");
  16344. let objects = [], infer = !1;
  16345. if (parser.consume("infer")) {
  16346. infer = !0;
  16347. let left3 = parser.parseIntermediateType(Precedence.SYMBOL);
  16348. if (left3.type !== "JsdocTypeName")
  16349. throw new UnexpectedTypeError(left3, "A typescript asserts always has to have a name on the left side.");
  16350. objects.push(left3);
  16351. } else
  16352. do
  16353. objects.push(parser.parseType(Precedence.PARAMETER_LIST));
  16354. while (parser.consume(","));
  16355. if (!parser.consume(">"))
  16356. throw new Error("Unterminated generic parameter list");
  16357. return Object.assign(Object.assign({ type: "JsdocTypeGeneric", left: assertRootResult(left2), elements: objects }, infer ? { infer: !0 } : {}), { meta: {
  16358. brackets: "angle",
  16359. dot
  16360. } });
  16361. }
  16362. }), unionParslet = composeParslet({
  16363. name: "unionParslet",
  16364. accept: (type5) => type5 === "|",
  16365. precedence: Precedence.UNION,
  16366. parseInfix: (parser, left2) => {
  16367. parser.consume("|");
  16368. let elements = [];
  16369. do
  16370. elements.push(parser.parseType(Precedence.UNION));
  16371. while (parser.consume("|"));
  16372. return {
  16373. type: "JsdocTypeUnion",
  16374. elements: [assertRootResult(left2), ...elements]
  16375. };
  16376. }
  16377. }), baseGrammar = [
  16378. nullableParslet,
  16379. optionalParslet,
  16380. numberParslet,
  16381. parenthesisParslet,
  16382. specialTypesParslet,
  16383. notNullableParslet,
  16384. createParameterListParslet({
  16385. allowTrailingComma: !0
  16386. }),
  16387. genericParslet,
  16388. unionParslet,
  16389. optionalParslet
  16390. ];
  16391. function createNamePathParslet({ allowSquareBracketsOnAnyType, allowJsdocNamePaths, pathGrammar: pathGrammar2 }) {
  16392. return function(parser, precedence, left2) {
  16393. if (left2 == null || precedence >= Precedence.NAME_PATH)
  16394. return null;
  16395. let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type;
  16396. if (!(type5 === "." && next2 !== "<" || type5 === "[" && (allowSquareBracketsOnAnyType || left2.type === "JsdocTypeName") || allowJsdocNamePaths && (type5 === "~" || type5 === "#")))
  16397. return null;
  16398. let pathType, brackets = !1;
  16399. parser.consume(".") ? pathType = "property" : parser.consume("[") ? (pathType = "property-brackets", brackets = !0) : parser.consume("~") ? pathType = "inner" : (parser.consume("#"), pathType = "instance");
  16400. let pathParser = pathGrammar2 !== null ? new Parser2(pathGrammar2, parser.lexer, parser) : parser, parsed = pathParser.parseIntermediateType(Precedence.NAME_PATH);
  16401. parser.acceptLexerState(pathParser);
  16402. let right2;
  16403. switch (parsed.type) {
  16404. case "JsdocTypeName":
  16405. right2 = {
  16406. type: "JsdocTypeProperty",
  16407. value: parsed.value,
  16408. meta: {
  16409. quote: void 0
  16410. }
  16411. };
  16412. break;
  16413. case "JsdocTypeNumber":
  16414. right2 = {
  16415. type: "JsdocTypeProperty",
  16416. value: parsed.value.toString(10),
  16417. meta: {
  16418. quote: void 0
  16419. }
  16420. };
  16421. break;
  16422. case "JsdocTypeStringValue":
  16423. right2 = {
  16424. type: "JsdocTypeProperty",
  16425. value: parsed.value,
  16426. meta: {
  16427. quote: parsed.meta.quote
  16428. }
  16429. };
  16430. break;
  16431. case "JsdocTypeSpecialNamePath":
  16432. if (parsed.specialType === "event")
  16433. right2 = parsed;
  16434. else
  16435. throw new UnexpectedTypeError(parsed, "Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");
  16436. break;
  16437. default:
  16438. throw new UnexpectedTypeError(parsed, "Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'");
  16439. }
  16440. if (brackets && !parser.consume("]")) {
  16441. let token2 = parser.lexer.current;
  16442. throw new Error(`Unterminated square brackets. Next token is '${token2.type}' with text '${token2.text}'`);
  16443. }
  16444. return {
  16445. type: "JsdocTypeNamePath",
  16446. left: assertRootResult(left2),
  16447. right: right2,
  16448. pathType
  16449. };
  16450. };
  16451. }
  16452. function createNameParslet({ allowedAdditionalTokens }) {
  16453. return composeParslet({
  16454. name: "nameParslet",
  16455. accept: (type5) => type5 === "Identifier" || type5 === "this" || type5 === "new" || allowedAdditionalTokens.includes(type5),
  16456. parsePrefix: (parser) => {
  16457. let { type: type5, text } = parser.lexer.current;
  16458. return parser.consume(type5), {
  16459. type: "JsdocTypeName",
  16460. value: text
  16461. };
  16462. }
  16463. });
  16464. }
  16465. let stringValueParslet = composeParslet({
  16466. name: "stringValueParslet",
  16467. accept: (type5) => type5 === "StringValue",
  16468. parsePrefix: (parser) => {
  16469. let text = parser.lexer.current.text;
  16470. return parser.consume("StringValue"), {
  16471. type: "JsdocTypeStringValue",
  16472. value: text.slice(1, -1),
  16473. meta: {
  16474. quote: text[0] === "'" ? "single" : "double"
  16475. }
  16476. };
  16477. }
  16478. });
  16479. function createSpecialNamePathParslet({ pathGrammar: pathGrammar2, allowedTypes }) {
  16480. return composeParslet({
  16481. name: "specialNamePathParslet",
  16482. accept: (type5) => allowedTypes.includes(type5),
  16483. parsePrefix: (parser) => {
  16484. let type5 = parser.lexer.current.type;
  16485. if (parser.consume(type5), !parser.consume(":"))
  16486. return {
  16487. type: "JsdocTypeName",
  16488. value: type5
  16489. };
  16490. let result, token2 = parser.lexer.current;
  16491. if (parser.consume("StringValue"))
  16492. result = {
  16493. type: "JsdocTypeSpecialNamePath",
  16494. value: token2.text.slice(1, -1),
  16495. specialType: type5,
  16496. meta: {
  16497. quote: token2.text[0] === "'" ? "single" : "double"
  16498. }
  16499. };
  16500. else {
  16501. let value = "", allowed = ["Identifier", "@", "/"];
  16502. for (; allowed.some((type6) => parser.consume(type6)); )
  16503. value += token2.text, token2 = parser.lexer.current;
  16504. result = {
  16505. type: "JsdocTypeSpecialNamePath",
  16506. value,
  16507. specialType: type5,
  16508. meta: {
  16509. quote: void 0
  16510. }
  16511. };
  16512. }
  16513. let moduleParser = new Parser2(pathGrammar2, parser.lexer, parser), moduleResult = moduleParser.parseInfixIntermediateType(result, Precedence.ALL);
  16514. return parser.acceptLexerState(moduleParser), assertRootResult(moduleResult);
  16515. }
  16516. });
  16517. }
  16518. let basePathGrammar = [
  16519. createNameParslet({
  16520. allowedAdditionalTokens: ["external", "module"]
  16521. }),
  16522. stringValueParslet,
  16523. numberParslet,
  16524. createNamePathParslet({
  16525. allowSquareBracketsOnAnyType: !1,
  16526. allowJsdocNamePaths: !0,
  16527. pathGrammar: null
  16528. })
  16529. ], pathGrammar = [
  16530. ...basePathGrammar,
  16531. createSpecialNamePathParslet({
  16532. allowedTypes: ["event"],
  16533. pathGrammar: basePathGrammar
  16534. })
  16535. ];
  16536. function getParameters(value) {
  16537. let parameters2;
  16538. if (value.type === "JsdocTypeParameterList")
  16539. parameters2 = value.elements;
  16540. else if (value.type === "JsdocTypeParenthesis")
  16541. parameters2 = [value.element];
  16542. else
  16543. throw new UnexpectedTypeError(value);
  16544. return parameters2.map((p3) => assertPlainKeyValueOrRootResult(p3));
  16545. }
  16546. function getUnnamedParameters(value) {
  16547. let parameters2 = getParameters(value);
  16548. if (parameters2.some((p3) => p3.type === "JsdocTypeKeyValue"))
  16549. throw new Error("No parameter should be named");
  16550. return parameters2;
  16551. }
  16552. function createFunctionParslet({ allowNamedParameters, allowNoReturnType, allowWithoutParenthesis, allowNewAsFunctionKeyword }) {
  16553. return composeParslet({
  16554. name: "functionParslet",
  16555. accept: (type5, next2) => type5 === "function" || allowNewAsFunctionKeyword && type5 === "new" && next2 === "(",
  16556. parsePrefix: (parser) => {
  16557. let newKeyword = parser.consume("new");
  16558. parser.consume("function");
  16559. let hasParenthesis = parser.lexer.current.type === "(";
  16560. if (!hasParenthesis) {
  16561. if (!allowWithoutParenthesis)
  16562. throw new Error("function is missing parameter list");
  16563. return {
  16564. type: "JsdocTypeName",
  16565. value: "function"
  16566. };
  16567. }
  16568. let result = {
  16569. type: "JsdocTypeFunction",
  16570. parameters: [],
  16571. arrow: !1,
  16572. constructor: newKeyword,
  16573. parenthesis: hasParenthesis
  16574. }, value = parser.parseIntermediateType(Precedence.FUNCTION);
  16575. if (allowNamedParameters === void 0)
  16576. result.parameters = getUnnamedParameters(value);
  16577. else {
  16578. if (newKeyword && value.type === "JsdocTypeFunction" && value.arrow)
  16579. return result = value, result.constructor = !0, result;
  16580. result.parameters = getParameters(value);
  16581. for (let p3 of result.parameters)
  16582. if (p3.type === "JsdocTypeKeyValue" && !allowNamedParameters.includes(p3.key))
  16583. throw new Error(`only allowed named parameters are ${allowNamedParameters.join(", ")} but got ${p3.type}`);
  16584. }
  16585. if (parser.consume(":"))
  16586. result.returnType = parser.parseType(Precedence.PREFIX);
  16587. else if (!allowNoReturnType)
  16588. throw new Error("function is missing return type");
  16589. return result;
  16590. }
  16591. });
  16592. }
  16593. function createVariadicParslet({ allowPostfix, allowEnclosingBrackets }) {
  16594. return composeParslet({
  16595. name: "variadicParslet",
  16596. accept: (type5) => type5 === "...",
  16597. precedence: Precedence.PREFIX,
  16598. parsePrefix: (parser) => {
  16599. parser.consume("...");
  16600. let brackets = allowEnclosingBrackets && parser.consume("[");
  16601. try {
  16602. let element = parser.parseType(Precedence.PREFIX);
  16603. if (brackets && !parser.consume("]"))
  16604. throw new Error("Unterminated variadic type. Missing ']'");
  16605. return {
  16606. type: "JsdocTypeVariadic",
  16607. element: assertRootResult(element),
  16608. meta: {
  16609. position: "prefix",
  16610. squareBrackets: brackets
  16611. }
  16612. };
  16613. } catch (e) {
  16614. if (e instanceof NoParsletFoundError) {
  16615. if (brackets)
  16616. throw new Error("Empty square brackets for variadic are not allowed.");
  16617. return {
  16618. type: "JsdocTypeVariadic",
  16619. meta: {
  16620. position: void 0,
  16621. squareBrackets: !1
  16622. }
  16623. };
  16624. } else
  16625. throw e;
  16626. }
  16627. },
  16628. parseInfix: allowPostfix ? (parser, left2) => (parser.consume("..."), {
  16629. type: "JsdocTypeVariadic",
  16630. element: assertRootResult(left2),
  16631. meta: {
  16632. position: "suffix",
  16633. squareBrackets: !1
  16634. }
  16635. }) : void 0
  16636. });
  16637. }
  16638. let symbolParslet = composeParslet({
  16639. name: "symbolParslet",
  16640. accept: (type5) => type5 === "(",
  16641. precedence: Precedence.SYMBOL,
  16642. parseInfix: (parser, left2) => {
  16643. if (left2.type !== "JsdocTypeName")
  16644. throw new Error("Symbol expects a name on the left side. (Reacting on '(')");
  16645. parser.consume("(");
  16646. let result = {
  16647. type: "JsdocTypeSymbol",
  16648. value: left2.value
  16649. };
  16650. if (!parser.consume(")")) {
  16651. let next2 = parser.parseIntermediateType(Precedence.SYMBOL);
  16652. if (result.element = assertNumberOrVariadicNameResult(next2), !parser.consume(")"))
  16653. throw new Error("Symbol does not end after value");
  16654. }
  16655. return result;
  16656. }
  16657. }), arrayBracketsParslet = composeParslet({
  16658. name: "arrayBracketsParslet",
  16659. precedence: Precedence.ARRAY_BRACKETS,
  16660. accept: (type5, next2) => type5 === "[" && next2 === "]",
  16661. parseInfix: (parser, left2) => (parser.consume("["), parser.consume("]"), {
  16662. type: "JsdocTypeGeneric",
  16663. left: {
  16664. type: "JsdocTypeName",
  16665. value: "Array"
  16666. },
  16667. elements: [
  16668. assertRootResult(left2)
  16669. ],
  16670. meta: {
  16671. brackets: "square",
  16672. dot: !1
  16673. }
  16674. })
  16675. });
  16676. function createObjectParslet({ objectFieldGrammar: objectFieldGrammar2, allowKeyTypes }) {
  16677. return composeParslet({
  16678. name: "objectParslet",
  16679. accept: (type5) => type5 === "{",
  16680. parsePrefix: (parser) => {
  16681. parser.consume("{");
  16682. let result = {
  16683. type: "JsdocTypeObject",
  16684. meta: {
  16685. separator: "comma"
  16686. },
  16687. elements: []
  16688. };
  16689. if (!parser.consume("}")) {
  16690. let separator, fieldParser = new Parser2(objectFieldGrammar2, parser.lexer, parser);
  16691. for (; ; ) {
  16692. fieldParser.acceptLexerState(parser);
  16693. let field = fieldParser.parseIntermediateType(Precedence.OBJECT);
  16694. parser.acceptLexerState(fieldParser), field === void 0 && allowKeyTypes && (field = parser.parseIntermediateType(Precedence.OBJECT));
  16695. let optional = !1;
  16696. if (field.type === "JsdocTypeNullable" && (optional = !0, field = field.element), field.type === "JsdocTypeNumber" || field.type === "JsdocTypeName" || field.type === "JsdocTypeStringValue") {
  16697. let quote2;
  16698. field.type === "JsdocTypeStringValue" && (quote2 = field.meta.quote), result.elements.push({
  16699. type: "JsdocTypeObjectField",
  16700. key: field.value.toString(),
  16701. right: void 0,
  16702. optional,
  16703. readonly: !1,
  16704. meta: {
  16705. quote: quote2
  16706. }
  16707. });
  16708. } else if (field.type === "JsdocTypeObjectField" || field.type === "JsdocTypeJsdocObjectField")
  16709. result.elements.push(field);
  16710. else
  16711. throw new UnexpectedTypeError(field);
  16712. if (parser.lexer.current.startOfLine)
  16713. separator = "linebreak", parser.consume(",") || parser.consume(";");
  16714. else if (parser.consume(","))
  16715. separator = "comma";
  16716. else if (parser.consume(";"))
  16717. separator = "semicolon";
  16718. else
  16719. break;
  16720. if (parser.lexer.current.type === "}")
  16721. break;
  16722. }
  16723. if (result.meta.separator = separator ?? "comma", separator === "linebreak" && (result.meta.propertyIndent = " "), !parser.consume("}"))
  16724. throw new Error("Unterminated record type. Missing '}'");
  16725. }
  16726. return result;
  16727. }
  16728. });
  16729. }
  16730. function createObjectFieldParslet({ allowSquaredProperties, allowKeyTypes, allowReadonly, allowOptional }) {
  16731. return composeParslet({
  16732. name: "objectFieldParslet",
  16733. precedence: Precedence.KEY_VALUE,
  16734. accept: (type5) => type5 === ":",
  16735. parseInfix: (parser, left2) => {
  16736. var _a4;
  16737. let optional = !1, readonlyProperty = !1;
  16738. allowOptional && left2.type === "JsdocTypeNullable" && (optional = !0, left2 = left2.element), allowReadonly && left2.type === "JsdocTypeReadonlyProperty" && (readonlyProperty = !0, left2 = left2.element);
  16739. let parentParser = (_a4 = parser.baseParser) !== null && _a4 !== void 0 ? _a4 : parser;
  16740. if (parentParser.acceptLexerState(parser), left2.type === "JsdocTypeNumber" || left2.type === "JsdocTypeName" || left2.type === "JsdocTypeStringValue" || isSquaredProperty(left2)) {
  16741. if (isSquaredProperty(left2) && !allowSquaredProperties)
  16742. throw new UnexpectedTypeError(left2);
  16743. parentParser.consume(":");
  16744. let quote2;
  16745. left2.type === "JsdocTypeStringValue" && (quote2 = left2.meta.quote);
  16746. let right2 = parentParser.parseType(Precedence.KEY_VALUE);
  16747. return parser.acceptLexerState(parentParser), {
  16748. type: "JsdocTypeObjectField",
  16749. key: isSquaredProperty(left2) ? left2 : left2.value.toString(),
  16750. right: right2,
  16751. optional,
  16752. readonly: readonlyProperty,
  16753. meta: {
  16754. quote: quote2
  16755. }
  16756. };
  16757. } else {
  16758. if (!allowKeyTypes)
  16759. throw new UnexpectedTypeError(left2);
  16760. parentParser.consume(":");
  16761. let right2 = parentParser.parseType(Precedence.KEY_VALUE);
  16762. return parser.acceptLexerState(parentParser), {
  16763. type: "JsdocTypeJsdocObjectField",
  16764. left: assertRootResult(left2),
  16765. right: right2
  16766. };
  16767. }
  16768. }
  16769. });
  16770. }
  16771. function createKeyValueParslet({ allowOptional, allowVariadic }) {
  16772. return composeParslet({
  16773. name: "keyValueParslet",
  16774. precedence: Precedence.KEY_VALUE,
  16775. accept: (type5) => type5 === ":",
  16776. parseInfix: (parser, left2) => {
  16777. let optional = !1, variadic2 = !1;
  16778. if (allowOptional && left2.type === "JsdocTypeNullable" && (optional = !0, left2 = left2.element), allowVariadic && left2.type === "JsdocTypeVariadic" && left2.element !== void 0 && (variadic2 = !0, left2 = left2.element), left2.type !== "JsdocTypeName")
  16779. throw new UnexpectedTypeError(left2);
  16780. parser.consume(":");
  16781. let right2 = parser.parseType(Precedence.KEY_VALUE);
  16782. return {
  16783. type: "JsdocTypeKeyValue",
  16784. key: left2.value,
  16785. right: right2,
  16786. optional,
  16787. variadic: variadic2
  16788. };
  16789. }
  16790. });
  16791. }
  16792. let jsdocBaseGrammar = [
  16793. ...baseGrammar,
  16794. createFunctionParslet({
  16795. allowWithoutParenthesis: !0,
  16796. allowNamedParameters: ["this", "new"],
  16797. allowNoReturnType: !0,
  16798. allowNewAsFunctionKeyword: !1
  16799. }),
  16800. stringValueParslet,
  16801. createSpecialNamePathParslet({
  16802. allowedTypes: ["module", "external", "event"],
  16803. pathGrammar
  16804. }),
  16805. createVariadicParslet({
  16806. allowEnclosingBrackets: !0,
  16807. allowPostfix: !0
  16808. }),
  16809. createNameParslet({
  16810. allowedAdditionalTokens: ["keyof"]
  16811. }),
  16812. symbolParslet,
  16813. arrayBracketsParslet,
  16814. createNamePathParslet({
  16815. allowSquareBracketsOnAnyType: !1,
  16816. allowJsdocNamePaths: !0,
  16817. pathGrammar
  16818. })
  16819. ], jsdocGrammar = [
  16820. ...jsdocBaseGrammar,
  16821. createObjectParslet({
  16822. // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here
  16823. // we leave out the object type deliberately
  16824. objectFieldGrammar: [
  16825. createNameParslet({
  16826. allowedAdditionalTokens: ["typeof", "module", "in"]
  16827. }),
  16828. createObjectFieldParslet({
  16829. allowSquaredProperties: !1,
  16830. allowKeyTypes: !0,
  16831. allowOptional: !1,
  16832. allowReadonly: !1
  16833. }),
  16834. ...jsdocBaseGrammar
  16835. ],
  16836. allowKeyTypes: !0
  16837. }),
  16838. createKeyValueParslet({
  16839. allowOptional: !0,
  16840. allowVariadic: !0
  16841. })
  16842. ], typeOfParslet = composeParslet({
  16843. name: "typeOfParslet",
  16844. accept: (type5) => type5 === "typeof",
  16845. parsePrefix: (parser) => (parser.consume("typeof"), {
  16846. type: "JsdocTypeTypeof",
  16847. element: parser.parseType(Precedence.KEY_OF_TYPE_OF)
  16848. })
  16849. }), objectFieldGrammar$1 = [
  16850. createNameParslet({
  16851. allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"]
  16852. }),
  16853. nullableParslet,
  16854. optionalParslet,
  16855. stringValueParslet,
  16856. numberParslet,
  16857. createObjectFieldParslet({
  16858. allowSquaredProperties: !1,
  16859. allowKeyTypes: !1,
  16860. allowOptional: !1,
  16861. allowReadonly: !1
  16862. })
  16863. ], closureGrammar = [
  16864. ...baseGrammar,
  16865. createObjectParslet({
  16866. allowKeyTypes: !1,
  16867. objectFieldGrammar: objectFieldGrammar$1
  16868. }),
  16869. createNameParslet({
  16870. allowedAdditionalTokens: ["event", "external", "in"]
  16871. }),
  16872. typeOfParslet,
  16873. createFunctionParslet({
  16874. allowWithoutParenthesis: !1,
  16875. allowNamedParameters: ["this", "new"],
  16876. allowNoReturnType: !0,
  16877. allowNewAsFunctionKeyword: !1
  16878. }),
  16879. createVariadicParslet({
  16880. allowEnclosingBrackets: !1,
  16881. allowPostfix: !1
  16882. }),
  16883. // additional name parslet is needed for some special cases
  16884. createNameParslet({
  16885. allowedAdditionalTokens: ["keyof"]
  16886. }),
  16887. createSpecialNamePathParslet({
  16888. allowedTypes: ["module"],
  16889. pathGrammar
  16890. }),
  16891. createNamePathParslet({
  16892. allowSquareBracketsOnAnyType: !1,
  16893. allowJsdocNamePaths: !0,
  16894. pathGrammar
  16895. }),
  16896. createKeyValueParslet({
  16897. allowOptional: !1,
  16898. allowVariadic: !1
  16899. }),
  16900. symbolParslet
  16901. ], assertsParslet = composeParslet({
  16902. name: "assertsParslet",
  16903. accept: (type5) => type5 === "asserts",
  16904. parsePrefix: (parser) => {
  16905. parser.consume("asserts");
  16906. let left2 = parser.parseIntermediateType(Precedence.SYMBOL);
  16907. if (left2.type !== "JsdocTypeName")
  16908. throw new UnexpectedTypeError(left2, "A typescript asserts always has to have a name on the left side.");
  16909. return parser.consume("is") ? {
  16910. type: "JsdocTypeAsserts",
  16911. left: left2,
  16912. right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX))
  16913. } : {
  16914. type: "JsdocTypeAssertsPlain",
  16915. element: left2
  16916. };
  16917. }
  16918. });
  16919. function createTupleParslet({ allowQuestionMark }) {
  16920. return composeParslet({
  16921. name: "tupleParslet",
  16922. accept: (type5) => type5 === "[",
  16923. parsePrefix: (parser) => {
  16924. parser.consume("[");
  16925. let result = {
  16926. type: "JsdocTypeTuple",
  16927. elements: []
  16928. };
  16929. if (parser.consume("]"))
  16930. return result;
  16931. let typeList = parser.parseIntermediateType(Precedence.ALL);
  16932. if (typeList.type === "JsdocTypeParameterList" ? typeList.elements[0].type === "JsdocTypeKeyValue" ? result.elements = typeList.elements.map(assertPlainKeyValueResult) : result.elements = typeList.elements.map(assertRootResult) : typeList.type === "JsdocTypeKeyValue" ? result.elements = [assertPlainKeyValueResult(typeList)] : result.elements = [assertRootResult(typeList)], !parser.consume("]"))
  16933. throw new Error("Unterminated '['");
  16934. if (result.elements.some((e) => e.type === "JsdocTypeUnknown"))
  16935. throw new Error("Question mark in tuple not allowed");
  16936. return result;
  16937. }
  16938. });
  16939. }
  16940. let keyOfParslet = composeParslet({
  16941. name: "keyOfParslet",
  16942. accept: (type5) => type5 === "keyof",
  16943. parsePrefix: (parser) => (parser.consume("keyof"), {
  16944. type: "JsdocTypeKeyof",
  16945. element: assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF))
  16946. })
  16947. }), importParslet = composeParslet({
  16948. name: "importParslet",
  16949. accept: (type5) => type5 === "import",
  16950. parsePrefix: (parser) => {
  16951. if (parser.consume("import"), !parser.consume("("))
  16952. throw new Error("Missing parenthesis after import keyword");
  16953. let path = parser.parseType(Precedence.PREFIX);
  16954. if (path.type !== "JsdocTypeStringValue")
  16955. throw new Error("Only string values are allowed as paths for imports");
  16956. if (!parser.consume(")"))
  16957. throw new Error("Missing closing parenthesis after import keyword");
  16958. return {
  16959. type: "JsdocTypeImport",
  16960. element: path
  16961. };
  16962. }
  16963. }), readonlyPropertyParslet = composeParslet({
  16964. name: "readonlyPropertyParslet",
  16965. accept: (type5) => type5 === "readonly",
  16966. parsePrefix: (parser) => (parser.consume("readonly"), {
  16967. type: "JsdocTypeReadonlyProperty",
  16968. element: parser.parseIntermediateType(Precedence.KEY_VALUE)
  16969. })
  16970. }), arrowFunctionParslet = composeParslet({
  16971. name: "arrowFunctionParslet",
  16972. precedence: Precedence.ARROW,
  16973. accept: (type5) => type5 === "=>",
  16974. parseInfix: (parser, left2) => (parser.consume("=>"), {
  16975. type: "JsdocTypeFunction",
  16976. parameters: getParameters(left2).map(assertPlainKeyValueOrNameResult),
  16977. arrow: !0,
  16978. constructor: !1,
  16979. parenthesis: !0,
  16980. returnType: parser.parseType(Precedence.OBJECT)
  16981. })
  16982. }), genericArrowFunctionParslet = composeParslet({
  16983. name: "genericArrowFunctionParslet",
  16984. accept: (type5) => type5 === "<",
  16985. parsePrefix: (parser) => {
  16986. let typeParameters = [];
  16987. parser.consume("<");
  16988. do {
  16989. let defaultValue, name = parser.parseIntermediateType(Precedence.SYMBOL);
  16990. if (name.type === "JsdocTypeOptional" && (name = name.element, defaultValue = parser.parseType(Precedence.SYMBOL)), name.type !== "JsdocTypeName")
  16991. throw new UnexpectedTypeError(name);
  16992. let constraint;
  16993. parser.consume("extends") && (constraint = parser.parseType(Precedence.SYMBOL), constraint.type === "JsdocTypeOptional" && (constraint = constraint.element, defaultValue = parser.parseType(Precedence.SYMBOL)));
  16994. let typeParameter = {
  16995. type: "JsdocTypeTypeParameter",
  16996. name
  16997. };
  16998. if (constraint !== void 0 && (typeParameter.constraint = constraint), defaultValue !== void 0 && (typeParameter.defaultValue = defaultValue), typeParameters.push(typeParameter), parser.consume(">"))
  16999. break;
  17000. } while (parser.consume(","));
  17001. let functionBase = parser.parseIntermediateType(Precedence.SYMBOL);
  17002. return functionBase.typeParameters = typeParameters, functionBase;
  17003. }
  17004. }), intersectionParslet = composeParslet({
  17005. name: "intersectionParslet",
  17006. accept: (type5) => type5 === "&",
  17007. precedence: Precedence.INTERSECTION,
  17008. parseInfix: (parser, left2) => {
  17009. parser.consume("&");
  17010. let elements = [];
  17011. do
  17012. elements.push(parser.parseType(Precedence.INTERSECTION));
  17013. while (parser.consume("&"));
  17014. return {
  17015. type: "JsdocTypeIntersection",
  17016. elements: [assertRootResult(left2), ...elements]
  17017. };
  17018. }
  17019. }), predicateParslet = composeParslet({
  17020. name: "predicateParslet",
  17021. precedence: Precedence.INFIX,
  17022. accept: (type5) => type5 === "is",
  17023. parseInfix: (parser, left2) => {
  17024. if (left2.type !== "JsdocTypeName")
  17025. throw new UnexpectedTypeError(left2, "A typescript predicate always has to have a name on the left side.");
  17026. return parser.consume("is"), {
  17027. type: "JsdocTypePredicate",
  17028. left: left2,
  17029. right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX))
  17030. };
  17031. }
  17032. }), objectSquaredPropertyParslet = composeParslet({
  17033. name: "objectSquareBracketPropertyParslet",
  17034. accept: (type5) => type5 === "[",
  17035. parsePrefix: (parser) => {
  17036. if (parser.baseParser === void 0)
  17037. throw new Error("Only allowed inside object grammar");
  17038. parser.consume("[");
  17039. let key = parser.lexer.current.text;
  17040. parser.consume("Identifier");
  17041. let result;
  17042. if (parser.consume(":")) {
  17043. let parentParser = parser.baseParser;
  17044. parentParser.acceptLexerState(parser), result = {
  17045. type: "JsdocTypeIndexSignature",
  17046. key,
  17047. right: parentParser.parseType(Precedence.INDEX_BRACKETS)
  17048. }, parser.acceptLexerState(parentParser);
  17049. } else if (parser.consume("in")) {
  17050. let parentParser = parser.baseParser;
  17051. parentParser.acceptLexerState(parser), result = {
  17052. type: "JsdocTypeMappedType",
  17053. key,
  17054. right: parentParser.parseType(Precedence.ARRAY_BRACKETS)
  17055. }, parser.acceptLexerState(parentParser);
  17056. } else
  17057. throw new Error("Missing ':' or 'in' inside square bracketed property.");
  17058. if (!parser.consume("]"))
  17059. throw new Error("Unterminated square brackets");
  17060. return result;
  17061. }
  17062. }), readonlyArrayParslet = composeParslet({
  17063. name: "readonlyArrayParslet",
  17064. accept: (type5) => type5 === "readonly",
  17065. parsePrefix: (parser) => (parser.consume("readonly"), {
  17066. type: "JsdocTypeReadonlyArray",
  17067. element: assertArrayOrTupleResult(parser.parseIntermediateType(Precedence.ALL))
  17068. })
  17069. }), conditionalParslet = composeParslet({
  17070. name: "conditionalParslet",
  17071. precedence: Precedence.INFIX,
  17072. accept: (type5) => type5 === "extends",
  17073. parseInfix: (parser, left2) => {
  17074. parser.consume("extends");
  17075. let extendsType = parser.parseType(Precedence.KEY_OF_TYPE_OF).element, trueType = parser.parseType(Precedence.INFIX);
  17076. return parser.consume(":"), {
  17077. type: "JsdocTypeConditional",
  17078. checksType: assertRootResult(left2),
  17079. extendsType,
  17080. trueType,
  17081. falseType: parser.parseType(Precedence.INFIX)
  17082. };
  17083. }
  17084. }), objectFieldGrammar = [
  17085. readonlyPropertyParslet,
  17086. createNameParslet({
  17087. allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"]
  17088. }),
  17089. nullableParslet,
  17090. optionalParslet,
  17091. stringValueParslet,
  17092. numberParslet,
  17093. createObjectFieldParslet({
  17094. allowSquaredProperties: !0,
  17095. allowKeyTypes: !1,
  17096. allowOptional: !0,
  17097. allowReadonly: !0
  17098. }),
  17099. objectSquaredPropertyParslet
  17100. ], typescriptGrammar = [
  17101. ...baseGrammar,
  17102. createObjectParslet({
  17103. allowKeyTypes: !1,
  17104. objectFieldGrammar
  17105. }),
  17106. readonlyArrayParslet,
  17107. typeOfParslet,
  17108. keyOfParslet,
  17109. importParslet,
  17110. stringValueParslet,
  17111. createFunctionParslet({
  17112. allowWithoutParenthesis: !0,
  17113. allowNoReturnType: !1,
  17114. allowNamedParameters: ["this", "new", "args"],
  17115. allowNewAsFunctionKeyword: !0
  17116. }),
  17117. createTupleParslet({
  17118. allowQuestionMark: !1
  17119. }),
  17120. createVariadicParslet({
  17121. allowEnclosingBrackets: !1,
  17122. allowPostfix: !1
  17123. }),
  17124. assertsParslet,
  17125. conditionalParslet,
  17126. createNameParslet({
  17127. allowedAdditionalTokens: ["event", "external", "in"]
  17128. }),
  17129. createSpecialNamePathParslet({
  17130. allowedTypes: ["module"],
  17131. pathGrammar
  17132. }),
  17133. arrayBracketsParslet,
  17134. arrowFunctionParslet,
  17135. genericArrowFunctionParslet,
  17136. createNamePathParslet({
  17137. allowSquareBracketsOnAnyType: !0,
  17138. allowJsdocNamePaths: !1,
  17139. pathGrammar
  17140. }),
  17141. intersectionParslet,
  17142. predicateParslet,
  17143. createKeyValueParslet({
  17144. allowVariadic: !0,
  17145. allowOptional: !0
  17146. })
  17147. ];
  17148. function parse9(expression, mode) {
  17149. switch (mode) {
  17150. case "closure":
  17151. return new Parser2(closureGrammar, expression).parse();
  17152. case "jsdoc":
  17153. return new Parser2(jsdocGrammar, expression).parse();
  17154. case "typescript":
  17155. return new Parser2(typescriptGrammar, expression).parse();
  17156. }
  17157. }
  17158. function tryParse(expression, modes = ["typescript", "closure", "jsdoc"]) {
  17159. let error;
  17160. for (let mode of modes)
  17161. try {
  17162. return parse9(expression, mode);
  17163. } catch (e) {
  17164. error = e;
  17165. }
  17166. throw error;
  17167. }
  17168. function transform(rules2, parseResult) {
  17169. let rule = rules2[parseResult.type];
  17170. if (rule === void 0)
  17171. throw new Error(`In this set of transform rules exists no rule for type ${parseResult.type}.`);
  17172. return rule(parseResult, (aParseResult) => transform(rules2, aParseResult));
  17173. }
  17174. function notAvailableTransform(parseResult) {
  17175. throw new Error("This transform is not available. Are you trying the correct parsing mode?");
  17176. }
  17177. function extractSpecialParams(source) {
  17178. let result = {
  17179. params: []
  17180. };
  17181. for (let param of source.parameters)
  17182. param.type === "JsdocTypeKeyValue" ? param.key === "this" ? result.this = param.right : param.key === "new" ? result.new = param.right : result.params.push(param) : result.params.push(param);
  17183. return result;
  17184. }
  17185. function applyPosition(position2, target, value) {
  17186. return position2 === "prefix" ? value + target : target + value;
  17187. }
  17188. function quote(value, quote2) {
  17189. switch (quote2) {
  17190. case "double":
  17191. return `"${value}"`;
  17192. case "single":
  17193. return `'${value}'`;
  17194. case void 0:
  17195. return value;
  17196. }
  17197. }
  17198. function stringifyRules2() {
  17199. return {
  17200. JsdocTypeParenthesis: (result, transform2) => `(${result.element !== void 0 ? transform2(result.element) : ""})`,
  17201. JsdocTypeKeyof: (result, transform2) => `keyof ${transform2(result.element)}`,
  17202. JsdocTypeFunction: (result, transform2) => {
  17203. var _a4;
  17204. if (result.arrow) {
  17205. if (result.returnType === void 0)
  17206. throw new Error("Arrow function needs a return type.");
  17207. let stringified = `${result.typeParameters !== void 0 ? `<${(_a4 = result.typeParameters.map(transform2).join(", ")) !== null && _a4 !== void 0 ? _a4 : ""}>` : ""}(${result.parameters.map(transform2).join(", ")}) => ${transform2(result.returnType)}`;
  17208. return result.constructor && (stringified = "new " + stringified), stringified;
  17209. } else {
  17210. let stringified = result.constructor ? "new" : "function";
  17211. return result.parenthesis && (stringified += `(${result.parameters.map(transform2).join(", ")})`, result.returnType !== void 0 && (stringified += `: ${transform2(result.returnType)}`)), stringified;
  17212. }
  17213. },
  17214. JsdocTypeName: (result) => result.value,
  17215. JsdocTypeTuple: (result, transform2) => `[${result.elements.map(transform2).join(", ")}]`,
  17216. JsdocTypeVariadic: (result, transform2) => result.meta.position === void 0 ? "..." : applyPosition(result.meta.position, transform2(result.element), "..."),
  17217. JsdocTypeNamePath: (result, transform2) => {
  17218. let left2 = transform2(result.left), right2 = transform2(result.right);
  17219. switch (result.pathType) {
  17220. case "inner":
  17221. return `${left2}~${right2}`;
  17222. case "instance":
  17223. return `${left2}#${right2}`;
  17224. case "property":
  17225. return `${left2}.${right2}`;
  17226. case "property-brackets":
  17227. return `${left2}[${right2}]`;
  17228. }
  17229. },
  17230. JsdocTypeStringValue: (result) => quote(result.value, result.meta.quote),
  17231. JsdocTypeAny: () => "*",
  17232. JsdocTypeGeneric: (result, transform2) => {
  17233. if (result.meta.brackets === "square") {
  17234. let element = result.elements[0], transformed = transform2(element);
  17235. return element.type === "JsdocTypeUnion" || element.type === "JsdocTypeIntersection" ? `(${transformed})[]` : `${transformed}[]`;
  17236. } else
  17237. return `${transform2(result.left)}${result.meta.dot ? "." : ""}<${result.infer === !0 ? "infer " : ""}${result.elements.map(transform2).join(", ")}>`;
  17238. },
  17239. JsdocTypeImport: (result, transform2) => `import(${transform2(result.element)})`,
  17240. JsdocTypeObjectField: (result, transform2) => {
  17241. let text = "";
  17242. return result.readonly && (text += "readonly "), typeof result.key == "string" ? text += quote(result.key, result.meta.quote) : text += transform2(result.key), result.optional && (text += "?"), result.right === void 0 ? text : text + `: ${transform2(result.right)}`;
  17243. },
  17244. JsdocTypeJsdocObjectField: (result, transform2) => `${transform2(result.left)}: ${transform2(result.right)}`,
  17245. JsdocTypeKeyValue: (result, transform2) => {
  17246. let text = result.key;
  17247. return result.optional && (text += "?"), result.variadic && (text = "..." + text), result.right === void 0 ? text : text + `: ${transform2(result.right)}`;
  17248. },
  17249. JsdocTypeSpecialNamePath: (result) => `${result.specialType}:${quote(result.value, result.meta.quote)}`,
  17250. JsdocTypeNotNullable: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "!"),
  17251. JsdocTypeNull: () => "null",
  17252. JsdocTypeNullable: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "?"),
  17253. JsdocTypeNumber: (result) => result.value.toString(),
  17254. JsdocTypeObject: (result, transform2) => {
  17255. var _a4, _b;
  17256. return `{${(result.meta.separator === "linebreak" && result.elements.length > 1 ? `
  17257. ` + ((_a4 = result.meta.propertyIndent) !== null && _a4 !== void 0 ? _a4 : "") : "") + result.elements.map(transform2).join(result.meta.separator === "comma" ? ", " : result.meta.separator === "linebreak" ? `
  17258. ` + ((_b = result.meta.propertyIndent) !== null && _b !== void 0 ? _b : "") : "; ") + (result.meta.separator === "linebreak" && result.elements.length > 1 ? `
  17259. ` : "")}}`;
  17260. },
  17261. JsdocTypeOptional: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "="),
  17262. JsdocTypeSymbol: (result, transform2) => `${result.value}(${result.element !== void 0 ? transform2(result.element) : ""})`,
  17263. JsdocTypeTypeof: (result, transform2) => `typeof ${transform2(result.element)}`,
  17264. JsdocTypeUndefined: () => "undefined",
  17265. JsdocTypeUnion: (result, transform2) => result.elements.map(transform2).join(" | "),
  17266. JsdocTypeUnknown: () => "?",
  17267. JsdocTypeIntersection: (result, transform2) => result.elements.map(transform2).join(" & "),
  17268. JsdocTypeProperty: (result) => quote(result.value, result.meta.quote),
  17269. JsdocTypePredicate: (result, transform2) => `${transform2(result.left)} is ${transform2(result.right)}`,
  17270. JsdocTypeIndexSignature: (result, transform2) => `[${result.key}: ${transform2(result.right)}]`,
  17271. JsdocTypeMappedType: (result, transform2) => `[${result.key} in ${transform2(result.right)}]`,
  17272. JsdocTypeAsserts: (result, transform2) => `asserts ${transform2(result.left)} is ${transform2(result.right)}`,
  17273. JsdocTypeReadonlyArray: (result, transform2) => `readonly ${transform2(result.element)}`,
  17274. JsdocTypeAssertsPlain: (result, transform2) => `asserts ${transform2(result.element)}`,
  17275. JsdocTypeConditional: (result, transform2) => `${transform2(result.checksType)} extends ${transform2(result.extendsType)} ? ${transform2(result.trueType)} : ${transform2(result.falseType)}`,
  17276. JsdocTypeTypeParameter: (result, transform2) => `${transform2(result.name)}${result.constraint !== void 0 ? ` extends ${transform2(result.constraint)}` : ""}${result.defaultValue !== void 0 ? ` = ${transform2(result.defaultValue)}` : ""}`
  17277. };
  17278. }
  17279. let storedStringifyRules = stringifyRules2();
  17280. function stringify8(result) {
  17281. return transform(storedStringifyRules, result);
  17282. }
  17283. let reservedWords2 = [
  17284. "null",
  17285. "true",
  17286. "false",
  17287. "break",
  17288. "case",
  17289. "catch",
  17290. "class",
  17291. "const",
  17292. "continue",
  17293. "debugger",
  17294. "default",
  17295. "delete",
  17296. "do",
  17297. "else",
  17298. "export",
  17299. "extends",
  17300. "finally",
  17301. "for",
  17302. "function",
  17303. "if",
  17304. "import",
  17305. "in",
  17306. "instanceof",
  17307. "new",
  17308. "return",
  17309. "super",
  17310. "switch",
  17311. "this",
  17312. "throw",
  17313. "try",
  17314. "typeof",
  17315. "var",
  17316. "void",
  17317. "while",
  17318. "with",
  17319. "yield"
  17320. ];
  17321. function makeName(value) {
  17322. let result = {
  17323. type: "NameExpression",
  17324. name: value
  17325. };
  17326. return reservedWords2.includes(value) && (result.reservedWord = !0), result;
  17327. }
  17328. let catharsisTransformRules = {
  17329. JsdocTypeOptional: (result, transform2) => {
  17330. let transformed = transform2(result.element);
  17331. return transformed.optional = !0, transformed;
  17332. },
  17333. JsdocTypeNullable: (result, transform2) => {
  17334. let transformed = transform2(result.element);
  17335. return transformed.nullable = !0, transformed;
  17336. },
  17337. JsdocTypeNotNullable: (result, transform2) => {
  17338. let transformed = transform2(result.element);
  17339. return transformed.nullable = !1, transformed;
  17340. },
  17341. JsdocTypeVariadic: (result, transform2) => {
  17342. if (result.element === void 0)
  17343. throw new Error("dots without value are not allowed in catharsis mode");
  17344. let transformed = transform2(result.element);
  17345. return transformed.repeatable = !0, transformed;
  17346. },
  17347. JsdocTypeAny: () => ({
  17348. type: "AllLiteral"
  17349. }),
  17350. JsdocTypeNull: () => ({
  17351. type: "NullLiteral"
  17352. }),
  17353. JsdocTypeStringValue: (result) => makeName(quote(result.value, result.meta.quote)),
  17354. JsdocTypeUndefined: () => ({
  17355. type: "UndefinedLiteral"
  17356. }),
  17357. JsdocTypeUnknown: () => ({
  17358. type: "UnknownLiteral"
  17359. }),
  17360. JsdocTypeFunction: (result, transform2) => {
  17361. let params = extractSpecialParams(result), transformed = {
  17362. type: "FunctionType",
  17363. params: params.params.map(transform2)
  17364. };
  17365. return params.this !== void 0 && (transformed.this = transform2(params.this)), params.new !== void 0 && (transformed.new = transform2(params.new)), result.returnType !== void 0 && (transformed.result = transform2(result.returnType)), transformed;
  17366. },
  17367. JsdocTypeGeneric: (result, transform2) => ({
  17368. type: "TypeApplication",
  17369. applications: result.elements.map((o) => transform2(o)),
  17370. expression: transform2(result.left)
  17371. }),
  17372. JsdocTypeSpecialNamePath: (result) => makeName(result.specialType + ":" + quote(result.value, result.meta.quote)),
  17373. JsdocTypeName: (result) => result.value !== "function" ? makeName(result.value) : {
  17374. type: "FunctionType",
  17375. params: []
  17376. },
  17377. JsdocTypeNumber: (result) => makeName(result.value.toString()),
  17378. JsdocTypeObject: (result, transform2) => {
  17379. let transformed = {
  17380. type: "RecordType",
  17381. fields: []
  17382. };
  17383. for (let field of result.elements)
  17384. field.type !== "JsdocTypeObjectField" && field.type !== "JsdocTypeJsdocObjectField" ? transformed.fields.push({
  17385. type: "FieldType",
  17386. key: transform2(field),
  17387. value: void 0
  17388. }) : transformed.fields.push(transform2(field));
  17389. return transformed;
  17390. },
  17391. JsdocTypeObjectField: (result, transform2) => {
  17392. if (typeof result.key != "string")
  17393. throw new Error("Index signatures and mapped types are not supported");
  17394. return {
  17395. type: "FieldType",
  17396. key: makeName(quote(result.key, result.meta.quote)),
  17397. value: result.right === void 0 ? void 0 : transform2(result.right)
  17398. };
  17399. },
  17400. JsdocTypeJsdocObjectField: (result, transform2) => ({
  17401. type: "FieldType",
  17402. key: transform2(result.left),
  17403. value: transform2(result.right)
  17404. }),
  17405. JsdocTypeUnion: (result, transform2) => ({
  17406. type: "TypeUnion",
  17407. elements: result.elements.map((e) => transform2(e))
  17408. }),
  17409. JsdocTypeKeyValue: (result, transform2) => ({
  17410. type: "FieldType",
  17411. key: makeName(result.key),
  17412. value: result.right === void 0 ? void 0 : transform2(result.right)
  17413. }),
  17414. JsdocTypeNamePath: (result, transform2) => {
  17415. let leftResult = transform2(result.left), rightValue;
  17416. result.right.type === "JsdocTypeSpecialNamePath" ? rightValue = transform2(result.right).name : rightValue = quote(result.right.value, result.right.meta.quote);
  17417. let joiner = result.pathType === "inner" ? "~" : result.pathType === "instance" ? "#" : ".";
  17418. return makeName(`${leftResult.name}${joiner}${rightValue}`);
  17419. },
  17420. JsdocTypeSymbol: (result) => {
  17421. let value = "", element = result.element, trailingDots = !1;
  17422. return element?.type === "JsdocTypeVariadic" && (element.meta.position === "prefix" ? value = "..." : trailingDots = !0, element = element.element), element?.type === "JsdocTypeName" ? value += element.value : element?.type === "JsdocTypeNumber" && (value += element.value.toString()), trailingDots && (value += "..."), makeName(`${result.value}(${value})`);
  17423. },
  17424. JsdocTypeParenthesis: (result, transform2) => transform2(assertRootResult(result.element)),
  17425. JsdocTypeMappedType: notAvailableTransform,
  17426. JsdocTypeIndexSignature: notAvailableTransform,
  17427. JsdocTypeImport: notAvailableTransform,
  17428. JsdocTypeKeyof: notAvailableTransform,
  17429. JsdocTypeTuple: notAvailableTransform,
  17430. JsdocTypeTypeof: notAvailableTransform,
  17431. JsdocTypeIntersection: notAvailableTransform,
  17432. JsdocTypeProperty: notAvailableTransform,
  17433. JsdocTypePredicate: notAvailableTransform,
  17434. JsdocTypeAsserts: notAvailableTransform,
  17435. JsdocTypeReadonlyArray: notAvailableTransform,
  17436. JsdocTypeAssertsPlain: notAvailableTransform,
  17437. JsdocTypeConditional: notAvailableTransform,
  17438. JsdocTypeTypeParameter: notAvailableTransform
  17439. };
  17440. function catharsisTransform(result) {
  17441. return transform(catharsisTransformRules, result);
  17442. }
  17443. function getQuoteStyle(quote2) {
  17444. switch (quote2) {
  17445. case void 0:
  17446. return "none";
  17447. case "single":
  17448. return "single";
  17449. case "double":
  17450. return "double";
  17451. }
  17452. }
  17453. function getMemberType(type5) {
  17454. switch (type5) {
  17455. case "inner":
  17456. return "INNER_MEMBER";
  17457. case "instance":
  17458. return "INSTANCE_MEMBER";
  17459. case "property":
  17460. return "MEMBER";
  17461. case "property-brackets":
  17462. return "MEMBER";
  17463. }
  17464. }
  17465. function nestResults(type5, results) {
  17466. return results.length === 2 ? {
  17467. type: type5,
  17468. left: results[0],
  17469. right: results[1]
  17470. } : {
  17471. type: type5,
  17472. left: results[0],
  17473. right: nestResults(type5, results.slice(1))
  17474. };
  17475. }
  17476. let jtpRules = {
  17477. JsdocTypeOptional: (result, transform2) => ({
  17478. type: "OPTIONAL",
  17479. value: transform2(result.element),
  17480. meta: {
  17481. syntax: result.meta.position === "prefix" ? "PREFIX_EQUAL_SIGN" : "SUFFIX_EQUALS_SIGN"
  17482. }
  17483. }),
  17484. JsdocTypeNullable: (result, transform2) => ({
  17485. type: "NULLABLE",
  17486. value: transform2(result.element),
  17487. meta: {
  17488. syntax: result.meta.position === "prefix" ? "PREFIX_QUESTION_MARK" : "SUFFIX_QUESTION_MARK"
  17489. }
  17490. }),
  17491. JsdocTypeNotNullable: (result, transform2) => ({
  17492. type: "NOT_NULLABLE",
  17493. value: transform2(result.element),
  17494. meta: {
  17495. syntax: result.meta.position === "prefix" ? "PREFIX_BANG" : "SUFFIX_BANG"
  17496. }
  17497. }),
  17498. JsdocTypeVariadic: (result, transform2) => {
  17499. let transformed = {
  17500. type: "VARIADIC",
  17501. meta: {
  17502. syntax: result.meta.position === "prefix" ? "PREFIX_DOTS" : result.meta.position === "suffix" ? "SUFFIX_DOTS" : "ONLY_DOTS"
  17503. }
  17504. };
  17505. return result.element !== void 0 && (transformed.value = transform2(result.element)), transformed;
  17506. },
  17507. JsdocTypeName: (result) => ({
  17508. type: "NAME",
  17509. name: result.value
  17510. }),
  17511. JsdocTypeTypeof: (result, transform2) => ({
  17512. type: "TYPE_QUERY",
  17513. name: transform2(result.element)
  17514. }),
  17515. JsdocTypeTuple: (result, transform2) => ({
  17516. type: "TUPLE",
  17517. entries: result.elements.map(transform2)
  17518. }),
  17519. JsdocTypeKeyof: (result, transform2) => ({
  17520. type: "KEY_QUERY",
  17521. value: transform2(result.element)
  17522. }),
  17523. JsdocTypeImport: (result) => ({
  17524. type: "IMPORT",
  17525. path: {
  17526. type: "STRING_VALUE",
  17527. quoteStyle: getQuoteStyle(result.element.meta.quote),
  17528. string: result.element.value
  17529. }
  17530. }),
  17531. JsdocTypeUndefined: () => ({
  17532. type: "NAME",
  17533. name: "undefined"
  17534. }),
  17535. JsdocTypeAny: () => ({
  17536. type: "ANY"
  17537. }),
  17538. JsdocTypeFunction: (result, transform2) => {
  17539. let specialParams = extractSpecialParams(result), transformed = {
  17540. type: result.arrow ? "ARROW" : "FUNCTION",
  17541. params: specialParams.params.map((param) => {
  17542. if (param.type === "JsdocTypeKeyValue") {
  17543. if (param.right === void 0)
  17544. throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");
  17545. return {
  17546. type: "NAMED_PARAMETER",
  17547. name: param.key,
  17548. typeName: transform2(param.right)
  17549. };
  17550. } else
  17551. return transform2(param);
  17552. }),
  17553. new: null,
  17554. returns: null
  17555. };
  17556. return specialParams.this !== void 0 ? transformed.this = transform2(specialParams.this) : result.arrow || (transformed.this = null), specialParams.new !== void 0 && (transformed.new = transform2(specialParams.new)), result.returnType !== void 0 && (transformed.returns = transform2(result.returnType)), transformed;
  17557. },
  17558. JsdocTypeGeneric: (result, transform2) => {
  17559. let transformed = {
  17560. type: "GENERIC",
  17561. subject: transform2(result.left),
  17562. objects: result.elements.map(transform2),
  17563. meta: {
  17564. syntax: result.meta.brackets === "square" ? "SQUARE_BRACKET" : result.meta.dot ? "ANGLE_BRACKET_WITH_DOT" : "ANGLE_BRACKET"
  17565. }
  17566. };
  17567. return result.meta.brackets === "square" && result.elements[0].type === "JsdocTypeFunction" && !result.elements[0].parenthesis && (transformed.objects[0] = {
  17568. type: "NAME",
  17569. name: "function"
  17570. }), transformed;
  17571. },
  17572. JsdocTypeObjectField: (result, transform2) => {
  17573. if (typeof result.key != "string")
  17574. throw new Error("Index signatures and mapped types are not supported");
  17575. if (result.right === void 0)
  17576. return {
  17577. type: "RECORD_ENTRY",
  17578. key: result.key,
  17579. quoteStyle: getQuoteStyle(result.meta.quote),
  17580. value: null,
  17581. readonly: !1
  17582. };
  17583. let right2 = transform2(result.right);
  17584. return result.optional && (right2 = {
  17585. type: "OPTIONAL",
  17586. value: right2,
  17587. meta: {
  17588. syntax: "SUFFIX_KEY_QUESTION_MARK"
  17589. }
  17590. }), {
  17591. type: "RECORD_ENTRY",
  17592. key: result.key.toString(),
  17593. quoteStyle: getQuoteStyle(result.meta.quote),
  17594. value: right2,
  17595. readonly: !1
  17596. };
  17597. },
  17598. JsdocTypeJsdocObjectField: () => {
  17599. throw new Error("Keys may not be typed in jsdoctypeparser.");
  17600. },
  17601. JsdocTypeKeyValue: (result, transform2) => {
  17602. if (result.right === void 0)
  17603. return {
  17604. type: "RECORD_ENTRY",
  17605. key: result.key,
  17606. quoteStyle: "none",
  17607. value: null,
  17608. readonly: !1
  17609. };
  17610. let right2 = transform2(result.right);
  17611. return result.optional && (right2 = {
  17612. type: "OPTIONAL",
  17613. value: right2,
  17614. meta: {
  17615. syntax: "SUFFIX_KEY_QUESTION_MARK"
  17616. }
  17617. }), {
  17618. type: "RECORD_ENTRY",
  17619. key: result.key,
  17620. quoteStyle: "none",
  17621. value: right2,
  17622. readonly: !1
  17623. };
  17624. },
  17625. JsdocTypeObject: (result, transform2) => {
  17626. let entries = [];
  17627. for (let field of result.elements)
  17628. (field.type === "JsdocTypeObjectField" || field.type === "JsdocTypeJsdocObjectField") && entries.push(transform2(field));
  17629. return {
  17630. type: "RECORD",
  17631. entries
  17632. };
  17633. },
  17634. JsdocTypeSpecialNamePath: (result) => {
  17635. if (result.specialType !== "module")
  17636. throw new Error(`jsdoctypeparser does not support type ${result.specialType} at this point.`);
  17637. return {
  17638. type: "MODULE",
  17639. value: {
  17640. type: "FILE_PATH",
  17641. quoteStyle: getQuoteStyle(result.meta.quote),
  17642. path: result.value
  17643. }
  17644. };
  17645. },
  17646. JsdocTypeNamePath: (result, transform2) => {
  17647. let hasEventPrefix = !1, name, quoteStyle;
  17648. result.right.type === "JsdocTypeSpecialNamePath" && result.right.specialType === "event" ? (hasEventPrefix = !0, name = result.right.value, quoteStyle = getQuoteStyle(result.right.meta.quote)) : (name = result.right.value, quoteStyle = getQuoteStyle(result.right.meta.quote));
  17649. let transformed = {
  17650. type: getMemberType(result.pathType),
  17651. owner: transform2(result.left),
  17652. name,
  17653. quoteStyle,
  17654. hasEventPrefix
  17655. };
  17656. if (transformed.owner.type === "MODULE") {
  17657. let tModule = transformed.owner;
  17658. return transformed.owner = transformed.owner.value, tModule.value = transformed, tModule;
  17659. } else
  17660. return transformed;
  17661. },
  17662. JsdocTypeUnion: (result, transform2) => nestResults("UNION", result.elements.map(transform2)),
  17663. JsdocTypeParenthesis: (result, transform2) => ({
  17664. type: "PARENTHESIS",
  17665. value: transform2(assertRootResult(result.element))
  17666. }),
  17667. JsdocTypeNull: () => ({
  17668. type: "NAME",
  17669. name: "null"
  17670. }),
  17671. JsdocTypeUnknown: () => ({
  17672. type: "UNKNOWN"
  17673. }),
  17674. JsdocTypeStringValue: (result) => ({
  17675. type: "STRING_VALUE",
  17676. quoteStyle: getQuoteStyle(result.meta.quote),
  17677. string: result.value
  17678. }),
  17679. JsdocTypeIntersection: (result, transform2) => nestResults("INTERSECTION", result.elements.map(transform2)),
  17680. JsdocTypeNumber: (result) => ({
  17681. type: "NUMBER_VALUE",
  17682. number: result.value.toString()
  17683. }),
  17684. JsdocTypeSymbol: notAvailableTransform,
  17685. JsdocTypeProperty: notAvailableTransform,
  17686. JsdocTypePredicate: notAvailableTransform,
  17687. JsdocTypeMappedType: notAvailableTransform,
  17688. JsdocTypeIndexSignature: notAvailableTransform,
  17689. JsdocTypeAsserts: notAvailableTransform,
  17690. JsdocTypeReadonlyArray: notAvailableTransform,
  17691. JsdocTypeAssertsPlain: notAvailableTransform,
  17692. JsdocTypeConditional: notAvailableTransform,
  17693. JsdocTypeTypeParameter: notAvailableTransform
  17694. };
  17695. function jtpTransform(result) {
  17696. return transform(jtpRules, result);
  17697. }
  17698. function identityTransformRules() {
  17699. return {
  17700. JsdocTypeIntersection: (result, transform2) => ({
  17701. type: "JsdocTypeIntersection",
  17702. elements: result.elements.map(transform2)
  17703. }),
  17704. JsdocTypeGeneric: (result, transform2) => ({
  17705. type: "JsdocTypeGeneric",
  17706. left: transform2(result.left),
  17707. elements: result.elements.map(transform2),
  17708. meta: {
  17709. dot: result.meta.dot,
  17710. brackets: result.meta.brackets
  17711. }
  17712. }),
  17713. JsdocTypeNullable: (result) => result,
  17714. JsdocTypeUnion: (result, transform2) => ({
  17715. type: "JsdocTypeUnion",
  17716. elements: result.elements.map(transform2)
  17717. }),
  17718. JsdocTypeUnknown: (result) => result,
  17719. JsdocTypeUndefined: (result) => result,
  17720. JsdocTypeTypeof: (result, transform2) => ({
  17721. type: "JsdocTypeTypeof",
  17722. element: transform2(result.element)
  17723. }),
  17724. JsdocTypeSymbol: (result, transform2) => {
  17725. let transformed = {
  17726. type: "JsdocTypeSymbol",
  17727. value: result.value
  17728. };
  17729. return result.element !== void 0 && (transformed.element = transform2(result.element)), transformed;
  17730. },
  17731. JsdocTypeOptional: (result, transform2) => ({
  17732. type: "JsdocTypeOptional",
  17733. element: transform2(result.element),
  17734. meta: {
  17735. position: result.meta.position
  17736. }
  17737. }),
  17738. JsdocTypeObject: (result, transform2) => ({
  17739. type: "JsdocTypeObject",
  17740. meta: {
  17741. separator: "comma"
  17742. },
  17743. elements: result.elements.map(transform2)
  17744. }),
  17745. JsdocTypeNumber: (result) => result,
  17746. JsdocTypeNull: (result) => result,
  17747. JsdocTypeNotNullable: (result, transform2) => ({
  17748. type: "JsdocTypeNotNullable",
  17749. element: transform2(result.element),
  17750. meta: {
  17751. position: result.meta.position
  17752. }
  17753. }),
  17754. JsdocTypeSpecialNamePath: (result) => result,
  17755. JsdocTypeObjectField: (result, transform2) => ({
  17756. type: "JsdocTypeObjectField",
  17757. key: result.key,
  17758. right: result.right === void 0 ? void 0 : transform2(result.right),
  17759. optional: result.optional,
  17760. readonly: result.readonly,
  17761. meta: result.meta
  17762. }),
  17763. JsdocTypeJsdocObjectField: (result, transform2) => ({
  17764. type: "JsdocTypeJsdocObjectField",
  17765. left: transform2(result.left),
  17766. right: transform2(result.right)
  17767. }),
  17768. JsdocTypeKeyValue: (result, transform2) => ({
  17769. type: "JsdocTypeKeyValue",
  17770. key: result.key,
  17771. right: result.right === void 0 ? void 0 : transform2(result.right),
  17772. optional: result.optional,
  17773. variadic: result.variadic
  17774. }),
  17775. JsdocTypeImport: (result, transform2) => ({
  17776. type: "JsdocTypeImport",
  17777. element: transform2(result.element)
  17778. }),
  17779. JsdocTypeAny: (result) => result,
  17780. JsdocTypeStringValue: (result) => result,
  17781. JsdocTypeNamePath: (result) => result,
  17782. JsdocTypeVariadic: (result, transform2) => {
  17783. let transformed = {
  17784. type: "JsdocTypeVariadic",
  17785. meta: {
  17786. position: result.meta.position,
  17787. squareBrackets: result.meta.squareBrackets
  17788. }
  17789. };
  17790. return result.element !== void 0 && (transformed.element = transform2(result.element)), transformed;
  17791. },
  17792. JsdocTypeTuple: (result, transform2) => ({
  17793. type: "JsdocTypeTuple",
  17794. elements: result.elements.map(transform2)
  17795. }),
  17796. JsdocTypeName: (result) => result,
  17797. JsdocTypeFunction: (result, transform2) => {
  17798. let transformed = {
  17799. type: "JsdocTypeFunction",
  17800. arrow: result.arrow,
  17801. parameters: result.parameters.map(transform2),
  17802. constructor: result.constructor,
  17803. parenthesis: result.parenthesis
  17804. };
  17805. return result.returnType !== void 0 && (transformed.returnType = transform2(result.returnType)), transformed;
  17806. },
  17807. JsdocTypeKeyof: (result, transform2) => ({
  17808. type: "JsdocTypeKeyof",
  17809. element: transform2(result.element)
  17810. }),
  17811. JsdocTypeParenthesis: (result, transform2) => ({
  17812. type: "JsdocTypeParenthesis",
  17813. element: transform2(result.element)
  17814. }),
  17815. JsdocTypeProperty: (result) => result,
  17816. JsdocTypePredicate: (result, transform2) => ({
  17817. type: "JsdocTypePredicate",
  17818. left: transform2(result.left),
  17819. right: transform2(result.right)
  17820. }),
  17821. JsdocTypeIndexSignature: (result, transform2) => ({
  17822. type: "JsdocTypeIndexSignature",
  17823. key: result.key,
  17824. right: transform2(result.right)
  17825. }),
  17826. JsdocTypeMappedType: (result, transform2) => ({
  17827. type: "JsdocTypeMappedType",
  17828. key: result.key,
  17829. right: transform2(result.right)
  17830. }),
  17831. JsdocTypeAsserts: (result, transform2) => ({
  17832. type: "JsdocTypeAsserts",
  17833. left: transform2(result.left),
  17834. right: transform2(result.right)
  17835. }),
  17836. JsdocTypeReadonlyArray: (result, transform2) => ({
  17837. type: "JsdocTypeReadonlyArray",
  17838. element: transform2(result.element)
  17839. }),
  17840. JsdocTypeAssertsPlain: (result, transform2) => ({
  17841. type: "JsdocTypeAssertsPlain",
  17842. element: transform2(result.element)
  17843. }),
  17844. JsdocTypeConditional: (result, transform2) => ({
  17845. type: "JsdocTypeConditional",
  17846. checksType: transform2(result.checksType),
  17847. extendsType: transform2(result.extendsType),
  17848. trueType: transform2(result.trueType),
  17849. falseType: transform2(result.falseType)
  17850. }),
  17851. JsdocTypeTypeParameter: (result, transform2) => ({
  17852. type: "JsdocTypeTypeParameter",
  17853. name: transform2(result.name),
  17854. constraint: result.constraint !== void 0 ? transform2(result.constraint) : void 0,
  17855. defaultValue: result.defaultValue !== void 0 ? transform2(result.defaultValue) : void 0
  17856. })
  17857. };
  17858. }
  17859. let visitorKeys = {
  17860. JsdocTypeAny: [],
  17861. JsdocTypeFunction: ["parameters", "returnType"],
  17862. JsdocTypeGeneric: ["left", "elements"],
  17863. JsdocTypeImport: [],
  17864. JsdocTypeIndexSignature: ["right"],
  17865. JsdocTypeIntersection: ["elements"],
  17866. JsdocTypeKeyof: ["element"],
  17867. JsdocTypeKeyValue: ["right"],
  17868. JsdocTypeMappedType: ["right"],
  17869. JsdocTypeName: [],
  17870. JsdocTypeNamePath: ["left", "right"],
  17871. JsdocTypeNotNullable: ["element"],
  17872. JsdocTypeNull: [],
  17873. JsdocTypeNullable: ["element"],
  17874. JsdocTypeNumber: [],
  17875. JsdocTypeObject: ["elements"],
  17876. JsdocTypeObjectField: ["right"],
  17877. JsdocTypeJsdocObjectField: ["left", "right"],
  17878. JsdocTypeOptional: ["element"],
  17879. JsdocTypeParenthesis: ["element"],
  17880. JsdocTypeSpecialNamePath: [],
  17881. JsdocTypeStringValue: [],
  17882. JsdocTypeSymbol: ["element"],
  17883. JsdocTypeTuple: ["elements"],
  17884. JsdocTypeTypeof: ["element"],
  17885. JsdocTypeUndefined: [],
  17886. JsdocTypeUnion: ["elements"],
  17887. JsdocTypeUnknown: [],
  17888. JsdocTypeVariadic: ["element"],
  17889. JsdocTypeProperty: [],
  17890. JsdocTypePredicate: ["left", "right"],
  17891. JsdocTypeAsserts: ["left", "right"],
  17892. JsdocTypeReadonlyArray: ["element"],
  17893. JsdocTypeAssertsPlain: ["element"],
  17894. JsdocTypeConditional: ["checksType", "extendsType", "trueType", "falseType"],
  17895. JsdocTypeTypeParameter: ["name", "constraint", "defaultValue"]
  17896. };
  17897. function _traverse(node2, parentNode, property, onEnter, onLeave) {
  17898. onEnter?.(node2, parentNode, property);
  17899. let keysToVisit = visitorKeys[node2.type];
  17900. for (let key of keysToVisit) {
  17901. let value = node2[key];
  17902. if (value !== void 0)
  17903. if (Array.isArray(value))
  17904. for (let element of value)
  17905. _traverse(element, node2, key, onEnter, onLeave);
  17906. else
  17907. _traverse(value, node2, key, onEnter, onLeave);
  17908. }
  17909. onLeave?.(node2, parentNode, property);
  17910. }
  17911. function traverse(node2, onEnter, onLeave) {
  17912. _traverse(node2, void 0, void 0, onEnter, onLeave);
  17913. }
  17914. exports2.catharsisTransform = catharsisTransform, exports2.identityTransformRules = identityTransformRules, exports2.jtpTransform = jtpTransform, exports2.parse = parse9, exports2.stringify = stringify8, exports2.stringifyRules = stringifyRules2, exports2.transform = transform, exports2.traverse = traverse, exports2.tryParse = tryParse, exports2.visitorKeys = visitorKeys;
  17915. }));
  17916. }
  17917. });
  17918. // ../../node_modules/min-indent/index.js
  17919. var require_min_indent = __commonJS({
  17920. "../../node_modules/min-indent/index.js"(exports, module2) {
  17921. "use strict";
  17922. module2.exports = (string) => {
  17923. let match3 = string.match(/^[ \t]*(?=\S)/gm);
  17924. return match3 ? match3.reduce((r2, a3) => Math.min(r2, a3.length), 1 / 0) : 0;
  17925. };
  17926. }
  17927. });
  17928. // ../../node_modules/strip-indent/index.js
  17929. var require_strip_indent = __commonJS({
  17930. "../../node_modules/strip-indent/index.js"(exports, module2) {
  17931. "use strict";
  17932. var minIndent = require_min_indent();
  17933. module2.exports = (string) => {
  17934. let indent2 = minIndent(string);
  17935. if (indent2 === 0)
  17936. return string;
  17937. let regex = new RegExp(`^[ \\t]{${indent2}}`, "gm");
  17938. return string.replace(regex, "");
  17939. };
  17940. }
  17941. });
  17942. // ../../node_modules/indent-string/index.js
  17943. var require_indent_string = __commonJS({
  17944. "../../node_modules/indent-string/index.js"(exports, module2) {
  17945. "use strict";
  17946. module2.exports = (string, count = 1, options) => {
  17947. if (options = {
  17948. indent: " ",
  17949. includeEmptyLines: !1,
  17950. ...options
  17951. }, typeof string != "string")
  17952. throw new TypeError(
  17953. `Expected \`input\` to be a \`string\`, got \`${typeof string}\``
  17954. );
  17955. if (typeof count != "number")
  17956. throw new TypeError(
  17957. `Expected \`count\` to be a \`number\`, got \`${typeof count}\``
  17958. );
  17959. if (typeof options.indent != "string")
  17960. throw new TypeError(
  17961. `Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
  17962. );
  17963. if (count === 0)
  17964. return string;
  17965. let regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
  17966. return string.replace(regex, options.indent.repeat(count));
  17967. };
  17968. }
  17969. });
  17970. // ../../node_modules/redent/index.js
  17971. var require_redent = __commonJS({
  17972. "../../node_modules/redent/index.js"(exports, module2) {
  17973. "use strict";
  17974. var stripIndent = require_strip_indent(), indentString = require_indent_string();
  17975. module2.exports = (string, count = 0, options) => indentString(stripIndent(string), count, options);
  17976. }
  17977. });
  17978. // ../../node_modules/aria-query/lib/util/iteratorProxy.js
  17979. var require_iteratorProxy = __commonJS({
  17980. "../../node_modules/aria-query/lib/util/iteratorProxy.js"(exports) {
  17981. "use strict";
  17982. Object.defineProperty(exports, "__esModule", {
  17983. value: !0
  17984. });
  17985. exports.default = void 0;
  17986. function iteratorProxy() {
  17987. var values = this, index4 = 0, iter = {
  17988. "@@iterator": function() {
  17989. return iter;
  17990. },
  17991. next: function() {
  17992. if (index4 < values.length) {
  17993. var value = values[index4];
  17994. return index4 = index4 + 1, {
  17995. done: !1,
  17996. value
  17997. };
  17998. } else
  17999. return {
  18000. done: !0
  18001. };
  18002. }
  18003. };
  18004. return iter;
  18005. }
  18006. var _default = exports.default = iteratorProxy;
  18007. }
  18008. });
  18009. // ../../node_modules/aria-query/lib/util/iterationDecorator.js
  18010. var require_iterationDecorator = __commonJS({
  18011. "../../node_modules/aria-query/lib/util/iterationDecorator.js"(exports) {
  18012. "use strict";
  18013. Object.defineProperty(exports, "__esModule", {
  18014. value: !0
  18015. });
  18016. exports.default = iterationDecorator;
  18017. var _iteratorProxy = _interopRequireDefault(require_iteratorProxy());
  18018. function _interopRequireDefault(e) {
  18019. return e && e.__esModule ? e : { default: e };
  18020. }
  18021. function _typeof6(o) {
  18022. "@babel/helpers - typeof";
  18023. return _typeof6 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  18024. return typeof o2;
  18025. } : function(o2) {
  18026. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  18027. }, _typeof6(o);
  18028. }
  18029. function iterationDecorator(collection, entries) {
  18030. return typeof Symbol == "function" && _typeof6(Symbol.iterator) === "symbol" && Object.defineProperty(collection, Symbol.iterator, {
  18031. value: _iteratorProxy.default.bind(entries)
  18032. }), collection;
  18033. }
  18034. }
  18035. });
  18036. // ../../node_modules/aria-query/lib/ariaPropsMap.js
  18037. var require_ariaPropsMap = __commonJS({
  18038. "../../node_modules/aria-query/lib/ariaPropsMap.js"(exports) {
  18039. "use strict";
  18040. Object.defineProperty(exports, "__esModule", {
  18041. value: !0
  18042. });
  18043. exports.default = void 0;
  18044. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator());
  18045. function _interopRequireDefault(e) {
  18046. return e && e.__esModule ? e : { default: e };
  18047. }
  18048. function _slicedToArray(r2, e) {
  18049. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  18050. }
  18051. function _nonIterableRest() {
  18052. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  18053. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  18054. }
  18055. function _unsupportedIterableToArray2(r2, a3) {
  18056. if (r2) {
  18057. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  18058. var t = {}.toString.call(r2).slice(8, -1);
  18059. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  18060. }
  18061. }
  18062. function _arrayLikeToArray2(r2, a3) {
  18063. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  18064. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  18065. return n;
  18066. }
  18067. function _iterableToArrayLimit(r2, l) {
  18068. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  18069. if (t != null) {
  18070. var e, n, i, u2, a3 = [], f4 = !0, o = !1;
  18071. try {
  18072. if (i = (t = t.call(r2)).next, l === 0) {
  18073. if (Object(t) !== t) return;
  18074. f4 = !1;
  18075. } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  18076. } catch (r3) {
  18077. o = !0, n = r3;
  18078. } finally {
  18079. try {
  18080. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  18081. } finally {
  18082. if (o) throw n;
  18083. }
  18084. }
  18085. return a3;
  18086. }
  18087. }
  18088. function _arrayWithHoles(r2) {
  18089. if (Array.isArray(r2)) return r2;
  18090. }
  18091. var properties = [["aria-activedescendant", {
  18092. type: "id"
  18093. }], ["aria-atomic", {
  18094. type: "boolean"
  18095. }], ["aria-autocomplete", {
  18096. type: "token",
  18097. values: ["inline", "list", "both", "none"]
  18098. }], ["aria-braillelabel", {
  18099. type: "string"
  18100. }], ["aria-brailleroledescription", {
  18101. type: "string"
  18102. }], ["aria-busy", {
  18103. type: "boolean"
  18104. }], ["aria-checked", {
  18105. type: "tristate"
  18106. }], ["aria-colcount", {
  18107. type: "integer"
  18108. }], ["aria-colindex", {
  18109. type: "integer"
  18110. }], ["aria-colspan", {
  18111. type: "integer"
  18112. }], ["aria-controls", {
  18113. type: "idlist"
  18114. }], ["aria-current", {
  18115. type: "token",
  18116. values: ["page", "step", "location", "date", "time", !0, !1]
  18117. }], ["aria-describedby", {
  18118. type: "idlist"
  18119. }], ["aria-description", {
  18120. type: "string"
  18121. }], ["aria-details", {
  18122. type: "id"
  18123. }], ["aria-disabled", {
  18124. type: "boolean"
  18125. }], ["aria-dropeffect", {
  18126. type: "tokenlist",
  18127. values: ["copy", "execute", "link", "move", "none", "popup"]
  18128. }], ["aria-errormessage", {
  18129. type: "id"
  18130. }], ["aria-expanded", {
  18131. type: "boolean",
  18132. allowundefined: !0
  18133. }], ["aria-flowto", {
  18134. type: "idlist"
  18135. }], ["aria-grabbed", {
  18136. type: "boolean",
  18137. allowundefined: !0
  18138. }], ["aria-haspopup", {
  18139. type: "token",
  18140. values: [!1, !0, "menu", "listbox", "tree", "grid", "dialog"]
  18141. }], ["aria-hidden", {
  18142. type: "boolean",
  18143. allowundefined: !0
  18144. }], ["aria-invalid", {
  18145. type: "token",
  18146. values: ["grammar", !1, "spelling", !0]
  18147. }], ["aria-keyshortcuts", {
  18148. type: "string"
  18149. }], ["aria-label", {
  18150. type: "string"
  18151. }], ["aria-labelledby", {
  18152. type: "idlist"
  18153. }], ["aria-level", {
  18154. type: "integer"
  18155. }], ["aria-live", {
  18156. type: "token",
  18157. values: ["assertive", "off", "polite"]
  18158. }], ["aria-modal", {
  18159. type: "boolean"
  18160. }], ["aria-multiline", {
  18161. type: "boolean"
  18162. }], ["aria-multiselectable", {
  18163. type: "boolean"
  18164. }], ["aria-orientation", {
  18165. type: "token",
  18166. values: ["vertical", "undefined", "horizontal"]
  18167. }], ["aria-owns", {
  18168. type: "idlist"
  18169. }], ["aria-placeholder", {
  18170. type: "string"
  18171. }], ["aria-posinset", {
  18172. type: "integer"
  18173. }], ["aria-pressed", {
  18174. type: "tristate"
  18175. }], ["aria-readonly", {
  18176. type: "boolean"
  18177. }], ["aria-relevant", {
  18178. type: "tokenlist",
  18179. values: ["additions", "all", "removals", "text"]
  18180. }], ["aria-required", {
  18181. type: "boolean"
  18182. }], ["aria-roledescription", {
  18183. type: "string"
  18184. }], ["aria-rowcount", {
  18185. type: "integer"
  18186. }], ["aria-rowindex", {
  18187. type: "integer"
  18188. }], ["aria-rowspan", {
  18189. type: "integer"
  18190. }], ["aria-selected", {
  18191. type: "boolean",
  18192. allowundefined: !0
  18193. }], ["aria-setsize", {
  18194. type: "integer"
  18195. }], ["aria-sort", {
  18196. type: "token",
  18197. values: ["ascending", "descending", "none", "other"]
  18198. }], ["aria-valuemax", {
  18199. type: "number"
  18200. }], ["aria-valuemin", {
  18201. type: "number"
  18202. }], ["aria-valuenow", {
  18203. type: "number"
  18204. }], ["aria-valuetext", {
  18205. type: "string"
  18206. }]], ariaPropsMap = {
  18207. entries: function() {
  18208. return properties;
  18209. },
  18210. forEach: function(fn4) {
  18211. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _properties = properties; _i < _properties.length; _i++) {
  18212. var _properties$_i = _slicedToArray(_properties[_i], 2), key = _properties$_i[0], values = _properties$_i[1];
  18213. fn4.call(thisArg, values, key, properties);
  18214. }
  18215. },
  18216. get: function(key) {
  18217. var item = properties.filter(function(tuple) {
  18218. return tuple[0] === key;
  18219. })[0];
  18220. return item && item[1];
  18221. },
  18222. has: function(key) {
  18223. return !!ariaPropsMap.get(key);
  18224. },
  18225. keys: function() {
  18226. return properties.map(function(_ref) {
  18227. var _ref2 = _slicedToArray(_ref, 1), key = _ref2[0];
  18228. return key;
  18229. });
  18230. },
  18231. values: function() {
  18232. return properties.map(function(_ref3) {
  18233. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  18234. return values2;
  18235. });
  18236. }
  18237. }, _default = exports.default = (0, _iterationDecorator.default)(ariaPropsMap, ariaPropsMap.entries());
  18238. }
  18239. });
  18240. // ../../node_modules/aria-query/lib/domMap.js
  18241. var require_domMap = __commonJS({
  18242. "../../node_modules/aria-query/lib/domMap.js"(exports) {
  18243. "use strict";
  18244. Object.defineProperty(exports, "__esModule", {
  18245. value: !0
  18246. });
  18247. exports.default = void 0;
  18248. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator());
  18249. function _interopRequireDefault(e) {
  18250. return e && e.__esModule ? e : { default: e };
  18251. }
  18252. function _slicedToArray(r2, e) {
  18253. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  18254. }
  18255. function _nonIterableRest() {
  18256. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  18257. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  18258. }
  18259. function _unsupportedIterableToArray2(r2, a3) {
  18260. if (r2) {
  18261. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  18262. var t = {}.toString.call(r2).slice(8, -1);
  18263. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  18264. }
  18265. }
  18266. function _arrayLikeToArray2(r2, a3) {
  18267. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  18268. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  18269. return n;
  18270. }
  18271. function _iterableToArrayLimit(r2, l) {
  18272. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  18273. if (t != null) {
  18274. var e, n, i, u2, a3 = [], f4 = !0, o = !1;
  18275. try {
  18276. if (i = (t = t.call(r2)).next, l === 0) {
  18277. if (Object(t) !== t) return;
  18278. f4 = !1;
  18279. } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  18280. } catch (r3) {
  18281. o = !0, n = r3;
  18282. } finally {
  18283. try {
  18284. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  18285. } finally {
  18286. if (o) throw n;
  18287. }
  18288. }
  18289. return a3;
  18290. }
  18291. }
  18292. function _arrayWithHoles(r2) {
  18293. if (Array.isArray(r2)) return r2;
  18294. }
  18295. var dom = [["a", {
  18296. reserved: !1
  18297. }], ["abbr", {
  18298. reserved: !1
  18299. }], ["acronym", {
  18300. reserved: !1
  18301. }], ["address", {
  18302. reserved: !1
  18303. }], ["applet", {
  18304. reserved: !1
  18305. }], ["area", {
  18306. reserved: !1
  18307. }], ["article", {
  18308. reserved: !1
  18309. }], ["aside", {
  18310. reserved: !1
  18311. }], ["audio", {
  18312. reserved: !1
  18313. }], ["b", {
  18314. reserved: !1
  18315. }], ["base", {
  18316. reserved: !0
  18317. }], ["bdi", {
  18318. reserved: !1
  18319. }], ["bdo", {
  18320. reserved: !1
  18321. }], ["big", {
  18322. reserved: !1
  18323. }], ["blink", {
  18324. reserved: !1
  18325. }], ["blockquote", {
  18326. reserved: !1
  18327. }], ["body", {
  18328. reserved: !1
  18329. }], ["br", {
  18330. reserved: !1
  18331. }], ["button", {
  18332. reserved: !1
  18333. }], ["canvas", {
  18334. reserved: !1
  18335. }], ["caption", {
  18336. reserved: !1
  18337. }], ["center", {
  18338. reserved: !1
  18339. }], ["cite", {
  18340. reserved: !1
  18341. }], ["code", {
  18342. reserved: !1
  18343. }], ["col", {
  18344. reserved: !0
  18345. }], ["colgroup", {
  18346. reserved: !0
  18347. }], ["content", {
  18348. reserved: !1
  18349. }], ["data", {
  18350. reserved: !1
  18351. }], ["datalist", {
  18352. reserved: !1
  18353. }], ["dd", {
  18354. reserved: !1
  18355. }], ["del", {
  18356. reserved: !1
  18357. }], ["details", {
  18358. reserved: !1
  18359. }], ["dfn", {
  18360. reserved: !1
  18361. }], ["dialog", {
  18362. reserved: !1
  18363. }], ["dir", {
  18364. reserved: !1
  18365. }], ["div", {
  18366. reserved: !1
  18367. }], ["dl", {
  18368. reserved: !1
  18369. }], ["dt", {
  18370. reserved: !1
  18371. }], ["em", {
  18372. reserved: !1
  18373. }], ["embed", {
  18374. reserved: !1
  18375. }], ["fieldset", {
  18376. reserved: !1
  18377. }], ["figcaption", {
  18378. reserved: !1
  18379. }], ["figure", {
  18380. reserved: !1
  18381. }], ["font", {
  18382. reserved: !1
  18383. }], ["footer", {
  18384. reserved: !1
  18385. }], ["form", {
  18386. reserved: !1
  18387. }], ["frame", {
  18388. reserved: !1
  18389. }], ["frameset", {
  18390. reserved: !1
  18391. }], ["h1", {
  18392. reserved: !1
  18393. }], ["h2", {
  18394. reserved: !1
  18395. }], ["h3", {
  18396. reserved: !1
  18397. }], ["h4", {
  18398. reserved: !1
  18399. }], ["h5", {
  18400. reserved: !1
  18401. }], ["h6", {
  18402. reserved: !1
  18403. }], ["head", {
  18404. reserved: !0
  18405. }], ["header", {
  18406. reserved: !1
  18407. }], ["hgroup", {
  18408. reserved: !1
  18409. }], ["hr", {
  18410. reserved: !1
  18411. }], ["html", {
  18412. reserved: !0
  18413. }], ["i", {
  18414. reserved: !1
  18415. }], ["iframe", {
  18416. reserved: !1
  18417. }], ["img", {
  18418. reserved: !1
  18419. }], ["input", {
  18420. reserved: !1
  18421. }], ["ins", {
  18422. reserved: !1
  18423. }], ["kbd", {
  18424. reserved: !1
  18425. }], ["keygen", {
  18426. reserved: !1
  18427. }], ["label", {
  18428. reserved: !1
  18429. }], ["legend", {
  18430. reserved: !1
  18431. }], ["li", {
  18432. reserved: !1
  18433. }], ["link", {
  18434. reserved: !0
  18435. }], ["main", {
  18436. reserved: !1
  18437. }], ["map", {
  18438. reserved: !1
  18439. }], ["mark", {
  18440. reserved: !1
  18441. }], ["marquee", {
  18442. reserved: !1
  18443. }], ["menu", {
  18444. reserved: !1
  18445. }], ["menuitem", {
  18446. reserved: !1
  18447. }], ["meta", {
  18448. reserved: !0
  18449. }], ["meter", {
  18450. reserved: !1
  18451. }], ["nav", {
  18452. reserved: !1
  18453. }], ["noembed", {
  18454. reserved: !0
  18455. }], ["noscript", {
  18456. reserved: !0
  18457. }], ["object", {
  18458. reserved: !1
  18459. }], ["ol", {
  18460. reserved: !1
  18461. }], ["optgroup", {
  18462. reserved: !1
  18463. }], ["option", {
  18464. reserved: !1
  18465. }], ["output", {
  18466. reserved: !1
  18467. }], ["p", {
  18468. reserved: !1
  18469. }], ["param", {
  18470. reserved: !0
  18471. }], ["picture", {
  18472. reserved: !0
  18473. }], ["pre", {
  18474. reserved: !1
  18475. }], ["progress", {
  18476. reserved: !1
  18477. }], ["q", {
  18478. reserved: !1
  18479. }], ["rp", {
  18480. reserved: !1
  18481. }], ["rt", {
  18482. reserved: !1
  18483. }], ["rtc", {
  18484. reserved: !1
  18485. }], ["ruby", {
  18486. reserved: !1
  18487. }], ["s", {
  18488. reserved: !1
  18489. }], ["samp", {
  18490. reserved: !1
  18491. }], ["script", {
  18492. reserved: !0
  18493. }], ["section", {
  18494. reserved: !1
  18495. }], ["select", {
  18496. reserved: !1
  18497. }], ["small", {
  18498. reserved: !1
  18499. }], ["source", {
  18500. reserved: !0
  18501. }], ["spacer", {
  18502. reserved: !1
  18503. }], ["span", {
  18504. reserved: !1
  18505. }], ["strike", {
  18506. reserved: !1
  18507. }], ["strong", {
  18508. reserved: !1
  18509. }], ["style", {
  18510. reserved: !0
  18511. }], ["sub", {
  18512. reserved: !1
  18513. }], ["summary", {
  18514. reserved: !1
  18515. }], ["sup", {
  18516. reserved: !1
  18517. }], ["table", {
  18518. reserved: !1
  18519. }], ["tbody", {
  18520. reserved: !1
  18521. }], ["td", {
  18522. reserved: !1
  18523. }], ["textarea", {
  18524. reserved: !1
  18525. }], ["tfoot", {
  18526. reserved: !1
  18527. }], ["th", {
  18528. reserved: !1
  18529. }], ["thead", {
  18530. reserved: !1
  18531. }], ["time", {
  18532. reserved: !1
  18533. }], ["title", {
  18534. reserved: !0
  18535. }], ["tr", {
  18536. reserved: !1
  18537. }], ["track", {
  18538. reserved: !0
  18539. }], ["tt", {
  18540. reserved: !1
  18541. }], ["u", {
  18542. reserved: !1
  18543. }], ["ul", {
  18544. reserved: !1
  18545. }], ["var", {
  18546. reserved: !1
  18547. }], ["video", {
  18548. reserved: !1
  18549. }], ["wbr", {
  18550. reserved: !1
  18551. }], ["xmp", {
  18552. reserved: !1
  18553. }]], domMap = {
  18554. entries: function() {
  18555. return dom;
  18556. },
  18557. forEach: function(fn4) {
  18558. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _dom = dom; _i < _dom.length; _i++) {
  18559. var _dom$_i = _slicedToArray(_dom[_i], 2), key = _dom$_i[0], values = _dom$_i[1];
  18560. fn4.call(thisArg, values, key, dom);
  18561. }
  18562. },
  18563. get: function(key) {
  18564. var item = dom.filter(function(tuple) {
  18565. return tuple[0] === key;
  18566. })[0];
  18567. return item && item[1];
  18568. },
  18569. has: function(key) {
  18570. return !!domMap.get(key);
  18571. },
  18572. keys: function() {
  18573. return dom.map(function(_ref) {
  18574. var _ref2 = _slicedToArray(_ref, 1), key = _ref2[0];
  18575. return key;
  18576. });
  18577. },
  18578. values: function() {
  18579. return dom.map(function(_ref3) {
  18580. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  18581. return values2;
  18582. });
  18583. }
  18584. }, _default = exports.default = (0, _iterationDecorator.default)(domMap, domMap.entries());
  18585. }
  18586. });
  18587. // ../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js
  18588. var require_commandRole = __commonJS({
  18589. "../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(exports) {
  18590. "use strict";
  18591. Object.defineProperty(exports, "__esModule", {
  18592. value: !0
  18593. });
  18594. exports.default = void 0;
  18595. var commandRole = {
  18596. abstract: !0,
  18597. accessibleNameRequired: !1,
  18598. baseConcepts: [],
  18599. childrenPresentational: !1,
  18600. nameFrom: ["author"],
  18601. prohibitedProps: [],
  18602. props: {},
  18603. relatedConcepts: [],
  18604. requireContextRole: [],
  18605. requiredContextRole: [],
  18606. requiredOwnedElements: [],
  18607. requiredProps: {},
  18608. superClass: [["roletype", "widget"]]
  18609. }, _default = exports.default = commandRole;
  18610. }
  18611. });
  18612. // ../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js
  18613. var require_compositeRole = __commonJS({
  18614. "../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(exports) {
  18615. "use strict";
  18616. Object.defineProperty(exports, "__esModule", {
  18617. value: !0
  18618. });
  18619. exports.default = void 0;
  18620. var compositeRole = {
  18621. abstract: !0,
  18622. accessibleNameRequired: !1,
  18623. baseConcepts: [],
  18624. childrenPresentational: !1,
  18625. nameFrom: ["author"],
  18626. prohibitedProps: [],
  18627. props: {
  18628. "aria-activedescendant": null,
  18629. "aria-disabled": null
  18630. },
  18631. relatedConcepts: [],
  18632. requireContextRole: [],
  18633. requiredContextRole: [],
  18634. requiredOwnedElements: [],
  18635. requiredProps: {},
  18636. superClass: [["roletype", "widget"]]
  18637. }, _default = exports.default = compositeRole;
  18638. }
  18639. });
  18640. // ../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js
  18641. var require_inputRole = __commonJS({
  18642. "../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(exports) {
  18643. "use strict";
  18644. Object.defineProperty(exports, "__esModule", {
  18645. value: !0
  18646. });
  18647. exports.default = void 0;
  18648. var inputRole = {
  18649. abstract: !0,
  18650. accessibleNameRequired: !1,
  18651. baseConcepts: [],
  18652. childrenPresentational: !1,
  18653. nameFrom: ["author"],
  18654. prohibitedProps: [],
  18655. props: {
  18656. "aria-disabled": null
  18657. },
  18658. relatedConcepts: [{
  18659. concept: {
  18660. name: "input"
  18661. },
  18662. module: "XForms"
  18663. }],
  18664. requireContextRole: [],
  18665. requiredContextRole: [],
  18666. requiredOwnedElements: [],
  18667. requiredProps: {},
  18668. superClass: [["roletype", "widget"]]
  18669. }, _default = exports.default = inputRole;
  18670. }
  18671. });
  18672. // ../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js
  18673. var require_landmarkRole = __commonJS({
  18674. "../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(exports) {
  18675. "use strict";
  18676. Object.defineProperty(exports, "__esModule", {
  18677. value: !0
  18678. });
  18679. exports.default = void 0;
  18680. var landmarkRole = {
  18681. abstract: !0,
  18682. accessibleNameRequired: !1,
  18683. baseConcepts: [],
  18684. childrenPresentational: !1,
  18685. nameFrom: ["author"],
  18686. prohibitedProps: [],
  18687. props: {},
  18688. relatedConcepts: [],
  18689. requireContextRole: [],
  18690. requiredContextRole: [],
  18691. requiredOwnedElements: [],
  18692. requiredProps: {},
  18693. superClass: [["roletype", "structure", "section"]]
  18694. }, _default = exports.default = landmarkRole;
  18695. }
  18696. });
  18697. // ../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js
  18698. var require_rangeRole = __commonJS({
  18699. "../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(exports) {
  18700. "use strict";
  18701. Object.defineProperty(exports, "__esModule", {
  18702. value: !0
  18703. });
  18704. exports.default = void 0;
  18705. var rangeRole = {
  18706. abstract: !0,
  18707. accessibleNameRequired: !1,
  18708. baseConcepts: [],
  18709. childrenPresentational: !1,
  18710. nameFrom: ["author"],
  18711. prohibitedProps: [],
  18712. props: {
  18713. "aria-valuemax": null,
  18714. "aria-valuemin": null,
  18715. "aria-valuenow": null
  18716. },
  18717. relatedConcepts: [],
  18718. requireContextRole: [],
  18719. requiredContextRole: [],
  18720. requiredOwnedElements: [],
  18721. requiredProps: {},
  18722. superClass: [["roletype", "structure"]]
  18723. }, _default = exports.default = rangeRole;
  18724. }
  18725. });
  18726. // ../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js
  18727. var require_roletypeRole = __commonJS({
  18728. "../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(exports) {
  18729. "use strict";
  18730. Object.defineProperty(exports, "__esModule", {
  18731. value: !0
  18732. });
  18733. exports.default = void 0;
  18734. var roletypeRole = {
  18735. abstract: !0,
  18736. accessibleNameRequired: !1,
  18737. baseConcepts: [],
  18738. childrenPresentational: !1,
  18739. nameFrom: [],
  18740. prohibitedProps: [],
  18741. props: {
  18742. "aria-atomic": null,
  18743. "aria-busy": null,
  18744. "aria-controls": null,
  18745. "aria-current": null,
  18746. "aria-describedby": null,
  18747. "aria-details": null,
  18748. "aria-dropeffect": null,
  18749. "aria-flowto": null,
  18750. "aria-grabbed": null,
  18751. "aria-hidden": null,
  18752. "aria-keyshortcuts": null,
  18753. "aria-label": null,
  18754. "aria-labelledby": null,
  18755. "aria-live": null,
  18756. "aria-owns": null,
  18757. "aria-relevant": null,
  18758. "aria-roledescription": null
  18759. },
  18760. relatedConcepts: [{
  18761. concept: {
  18762. name: "role"
  18763. },
  18764. module: "XHTML"
  18765. }, {
  18766. concept: {
  18767. name: "type"
  18768. },
  18769. module: "Dublin Core"
  18770. }],
  18771. requireContextRole: [],
  18772. requiredContextRole: [],
  18773. requiredOwnedElements: [],
  18774. requiredProps: {},
  18775. superClass: []
  18776. }, _default = exports.default = roletypeRole;
  18777. }
  18778. });
  18779. // ../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js
  18780. var require_sectionRole = __commonJS({
  18781. "../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(exports) {
  18782. "use strict";
  18783. Object.defineProperty(exports, "__esModule", {
  18784. value: !0
  18785. });
  18786. exports.default = void 0;
  18787. var sectionRole = {
  18788. abstract: !0,
  18789. accessibleNameRequired: !1,
  18790. baseConcepts: [],
  18791. childrenPresentational: !1,
  18792. nameFrom: [],
  18793. prohibitedProps: [],
  18794. props: {},
  18795. relatedConcepts: [{
  18796. concept: {
  18797. name: "frontmatter"
  18798. },
  18799. module: "DTB"
  18800. }, {
  18801. concept: {
  18802. name: "level"
  18803. },
  18804. module: "DTB"
  18805. }, {
  18806. concept: {
  18807. name: "level"
  18808. },
  18809. module: "SMIL"
  18810. }],
  18811. requireContextRole: [],
  18812. requiredContextRole: [],
  18813. requiredOwnedElements: [],
  18814. requiredProps: {},
  18815. superClass: [["roletype", "structure"]]
  18816. }, _default = exports.default = sectionRole;
  18817. }
  18818. });
  18819. // ../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js
  18820. var require_sectionheadRole = __commonJS({
  18821. "../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(exports) {
  18822. "use strict";
  18823. Object.defineProperty(exports, "__esModule", {
  18824. value: !0
  18825. });
  18826. exports.default = void 0;
  18827. var sectionheadRole = {
  18828. abstract: !0,
  18829. accessibleNameRequired: !1,
  18830. baseConcepts: [],
  18831. childrenPresentational: !1,
  18832. nameFrom: ["author", "contents"],
  18833. prohibitedProps: [],
  18834. props: {},
  18835. relatedConcepts: [],
  18836. requireContextRole: [],
  18837. requiredContextRole: [],
  18838. requiredOwnedElements: [],
  18839. requiredProps: {},
  18840. superClass: [["roletype", "structure"]]
  18841. }, _default = exports.default = sectionheadRole;
  18842. }
  18843. });
  18844. // ../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js
  18845. var require_selectRole = __commonJS({
  18846. "../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(exports) {
  18847. "use strict";
  18848. Object.defineProperty(exports, "__esModule", {
  18849. value: !0
  18850. });
  18851. exports.default = void 0;
  18852. var selectRole = {
  18853. abstract: !0,
  18854. accessibleNameRequired: !1,
  18855. baseConcepts: [],
  18856. childrenPresentational: !1,
  18857. nameFrom: ["author"],
  18858. prohibitedProps: [],
  18859. props: {
  18860. "aria-orientation": null
  18861. },
  18862. relatedConcepts: [],
  18863. requireContextRole: [],
  18864. requiredContextRole: [],
  18865. requiredOwnedElements: [],
  18866. requiredProps: {},
  18867. superClass: [["roletype", "widget", "composite"], ["roletype", "structure", "section", "group"]]
  18868. }, _default = exports.default = selectRole;
  18869. }
  18870. });
  18871. // ../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js
  18872. var require_structureRole = __commonJS({
  18873. "../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(exports) {
  18874. "use strict";
  18875. Object.defineProperty(exports, "__esModule", {
  18876. value: !0
  18877. });
  18878. exports.default = void 0;
  18879. var structureRole = {
  18880. abstract: !0,
  18881. accessibleNameRequired: !1,
  18882. baseConcepts: [],
  18883. childrenPresentational: !1,
  18884. nameFrom: [],
  18885. prohibitedProps: [],
  18886. props: {},
  18887. relatedConcepts: [],
  18888. requireContextRole: [],
  18889. requiredContextRole: [],
  18890. requiredOwnedElements: [],
  18891. requiredProps: {},
  18892. superClass: [["roletype"]]
  18893. }, _default = exports.default = structureRole;
  18894. }
  18895. });
  18896. // ../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js
  18897. var require_widgetRole = __commonJS({
  18898. "../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(exports) {
  18899. "use strict";
  18900. Object.defineProperty(exports, "__esModule", {
  18901. value: !0
  18902. });
  18903. exports.default = void 0;
  18904. var widgetRole = {
  18905. abstract: !0,
  18906. accessibleNameRequired: !1,
  18907. baseConcepts: [],
  18908. childrenPresentational: !1,
  18909. nameFrom: [],
  18910. prohibitedProps: [],
  18911. props: {},
  18912. relatedConcepts: [],
  18913. requireContextRole: [],
  18914. requiredContextRole: [],
  18915. requiredOwnedElements: [],
  18916. requiredProps: {},
  18917. superClass: [["roletype"]]
  18918. }, _default = exports.default = widgetRole;
  18919. }
  18920. });
  18921. // ../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js
  18922. var require_windowRole = __commonJS({
  18923. "../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(exports) {
  18924. "use strict";
  18925. Object.defineProperty(exports, "__esModule", {
  18926. value: !0
  18927. });
  18928. exports.default = void 0;
  18929. var windowRole = {
  18930. abstract: !0,
  18931. accessibleNameRequired: !1,
  18932. baseConcepts: [],
  18933. childrenPresentational: !1,
  18934. nameFrom: ["author"],
  18935. prohibitedProps: [],
  18936. props: {
  18937. "aria-modal": null
  18938. },
  18939. relatedConcepts: [],
  18940. requireContextRole: [],
  18941. requiredContextRole: [],
  18942. requiredOwnedElements: [],
  18943. requiredProps: {},
  18944. superClass: [["roletype"]]
  18945. }, _default = exports.default = windowRole;
  18946. }
  18947. });
  18948. // ../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js
  18949. var require_ariaAbstractRoles = __commonJS({
  18950. "../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(exports) {
  18951. "use strict";
  18952. Object.defineProperty(exports, "__esModule", {
  18953. value: !0
  18954. });
  18955. exports.default = void 0;
  18956. var _commandRole = _interopRequireDefault(require_commandRole()), _compositeRole = _interopRequireDefault(require_compositeRole()), _inputRole = _interopRequireDefault(require_inputRole()), _landmarkRole = _interopRequireDefault(require_landmarkRole()), _rangeRole = _interopRequireDefault(require_rangeRole()), _roletypeRole = _interopRequireDefault(require_roletypeRole()), _sectionRole = _interopRequireDefault(require_sectionRole()), _sectionheadRole = _interopRequireDefault(require_sectionheadRole()), _selectRole = _interopRequireDefault(require_selectRole()), _structureRole = _interopRequireDefault(require_structureRole()), _widgetRole = _interopRequireDefault(require_widgetRole()), _windowRole = _interopRequireDefault(require_windowRole());
  18957. function _interopRequireDefault(e) {
  18958. return e && e.__esModule ? e : { default: e };
  18959. }
  18960. var ariaAbstractRoles = [["command", _commandRole.default], ["composite", _compositeRole.default], ["input", _inputRole.default], ["landmark", _landmarkRole.default], ["range", _rangeRole.default], ["roletype", _roletypeRole.default], ["section", _sectionRole.default], ["sectionhead", _sectionheadRole.default], ["select", _selectRole.default], ["structure", _structureRole.default], ["widget", _widgetRole.default], ["window", _windowRole.default]], _default = exports.default = ariaAbstractRoles;
  18961. }
  18962. });
  18963. // ../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js
  18964. var require_alertRole = __commonJS({
  18965. "../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(exports) {
  18966. "use strict";
  18967. Object.defineProperty(exports, "__esModule", {
  18968. value: !0
  18969. });
  18970. exports.default = void 0;
  18971. var alertRole = {
  18972. abstract: !1,
  18973. accessibleNameRequired: !1,
  18974. baseConcepts: [],
  18975. childrenPresentational: !1,
  18976. nameFrom: ["author"],
  18977. prohibitedProps: [],
  18978. props: {
  18979. "aria-atomic": "true",
  18980. "aria-live": "assertive"
  18981. },
  18982. relatedConcepts: [{
  18983. concept: {
  18984. name: "alert"
  18985. },
  18986. module: "XForms"
  18987. }],
  18988. requireContextRole: [],
  18989. requiredContextRole: [],
  18990. requiredOwnedElements: [],
  18991. requiredProps: {},
  18992. superClass: [["roletype", "structure", "section"]]
  18993. }, _default = exports.default = alertRole;
  18994. }
  18995. });
  18996. // ../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js
  18997. var require_alertdialogRole = __commonJS({
  18998. "../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(exports) {
  18999. "use strict";
  19000. Object.defineProperty(exports, "__esModule", {
  19001. value: !0
  19002. });
  19003. exports.default = void 0;
  19004. var alertdialogRole = {
  19005. abstract: !1,
  19006. accessibleNameRequired: !0,
  19007. baseConcepts: [],
  19008. childrenPresentational: !1,
  19009. nameFrom: ["author"],
  19010. prohibitedProps: [],
  19011. props: {},
  19012. relatedConcepts: [{
  19013. concept: {
  19014. name: "alert"
  19015. },
  19016. module: "XForms"
  19017. }],
  19018. requireContextRole: [],
  19019. requiredContextRole: [],
  19020. requiredOwnedElements: [],
  19021. requiredProps: {},
  19022. superClass: [["roletype", "structure", "section", "alert"], ["roletype", "window", "dialog"]]
  19023. }, _default = exports.default = alertdialogRole;
  19024. }
  19025. });
  19026. // ../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js
  19027. var require_applicationRole = __commonJS({
  19028. "../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(exports) {
  19029. "use strict";
  19030. Object.defineProperty(exports, "__esModule", {
  19031. value: !0
  19032. });
  19033. exports.default = void 0;
  19034. var applicationRole = {
  19035. abstract: !1,
  19036. accessibleNameRequired: !0,
  19037. baseConcepts: [],
  19038. childrenPresentational: !1,
  19039. nameFrom: ["author"],
  19040. prohibitedProps: [],
  19041. props: {
  19042. "aria-activedescendant": null,
  19043. "aria-disabled": null,
  19044. "aria-errormessage": null,
  19045. "aria-expanded": null,
  19046. "aria-haspopup": null,
  19047. "aria-invalid": null
  19048. },
  19049. relatedConcepts: [{
  19050. concept: {
  19051. name: "Device Independence Delivery Unit"
  19052. }
  19053. }],
  19054. requireContextRole: [],
  19055. requiredContextRole: [],
  19056. requiredOwnedElements: [],
  19057. requiredProps: {},
  19058. superClass: [["roletype", "structure"]]
  19059. }, _default = exports.default = applicationRole;
  19060. }
  19061. });
  19062. // ../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js
  19063. var require_articleRole = __commonJS({
  19064. "../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(exports) {
  19065. "use strict";
  19066. Object.defineProperty(exports, "__esModule", {
  19067. value: !0
  19068. });
  19069. exports.default = void 0;
  19070. var articleRole = {
  19071. abstract: !1,
  19072. accessibleNameRequired: !1,
  19073. baseConcepts: [],
  19074. childrenPresentational: !1,
  19075. nameFrom: ["author"],
  19076. prohibitedProps: [],
  19077. props: {
  19078. "aria-posinset": null,
  19079. "aria-setsize": null
  19080. },
  19081. relatedConcepts: [{
  19082. concept: {
  19083. name: "article"
  19084. },
  19085. module: "HTML"
  19086. }],
  19087. requireContextRole: [],
  19088. requiredContextRole: [],
  19089. requiredOwnedElements: [],
  19090. requiredProps: {},
  19091. superClass: [["roletype", "structure", "document"]]
  19092. }, _default = exports.default = articleRole;
  19093. }
  19094. });
  19095. // ../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js
  19096. var require_bannerRole = __commonJS({
  19097. "../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(exports) {
  19098. "use strict";
  19099. Object.defineProperty(exports, "__esModule", {
  19100. value: !0
  19101. });
  19102. exports.default = void 0;
  19103. var bannerRole = {
  19104. abstract: !1,
  19105. accessibleNameRequired: !1,
  19106. baseConcepts: [],
  19107. childrenPresentational: !1,
  19108. nameFrom: ["author"],
  19109. prohibitedProps: [],
  19110. props: {},
  19111. relatedConcepts: [{
  19112. concept: {
  19113. constraints: ["scoped to the body element"],
  19114. name: "header"
  19115. },
  19116. module: "HTML"
  19117. }],
  19118. requireContextRole: [],
  19119. requiredContextRole: [],
  19120. requiredOwnedElements: [],
  19121. requiredProps: {},
  19122. superClass: [["roletype", "structure", "section", "landmark"]]
  19123. }, _default = exports.default = bannerRole;
  19124. }
  19125. });
  19126. // ../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js
  19127. var require_blockquoteRole = __commonJS({
  19128. "../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(exports) {
  19129. "use strict";
  19130. Object.defineProperty(exports, "__esModule", {
  19131. value: !0
  19132. });
  19133. exports.default = void 0;
  19134. var blockquoteRole = {
  19135. abstract: !1,
  19136. accessibleNameRequired: !1,
  19137. baseConcepts: [],
  19138. childrenPresentational: !1,
  19139. nameFrom: ["author"],
  19140. prohibitedProps: [],
  19141. props: {},
  19142. relatedConcepts: [{
  19143. concept: {
  19144. name: "blockquote"
  19145. },
  19146. module: "HTML"
  19147. }],
  19148. requireContextRole: [],
  19149. requiredContextRole: [],
  19150. requiredOwnedElements: [],
  19151. requiredProps: {},
  19152. superClass: [["roletype", "structure", "section"]]
  19153. }, _default = exports.default = blockquoteRole;
  19154. }
  19155. });
  19156. // ../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js
  19157. var require_buttonRole = __commonJS({
  19158. "../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(exports) {
  19159. "use strict";
  19160. Object.defineProperty(exports, "__esModule", {
  19161. value: !0
  19162. });
  19163. exports.default = void 0;
  19164. var buttonRole = {
  19165. abstract: !1,
  19166. accessibleNameRequired: !0,
  19167. baseConcepts: [],
  19168. childrenPresentational: !0,
  19169. nameFrom: ["author", "contents"],
  19170. prohibitedProps: [],
  19171. props: {
  19172. "aria-disabled": null,
  19173. "aria-expanded": null,
  19174. "aria-haspopup": null,
  19175. "aria-pressed": null
  19176. },
  19177. relatedConcepts: [{
  19178. concept: {
  19179. attributes: [{
  19180. name: "type",
  19181. value: "button"
  19182. }],
  19183. name: "input"
  19184. },
  19185. module: "HTML"
  19186. }, {
  19187. concept: {
  19188. attributes: [{
  19189. name: "type",
  19190. value: "image"
  19191. }],
  19192. name: "input"
  19193. },
  19194. module: "HTML"
  19195. }, {
  19196. concept: {
  19197. attributes: [{
  19198. name: "type",
  19199. value: "reset"
  19200. }],
  19201. name: "input"
  19202. },
  19203. module: "HTML"
  19204. }, {
  19205. concept: {
  19206. attributes: [{
  19207. name: "type",
  19208. value: "submit"
  19209. }],
  19210. name: "input"
  19211. },
  19212. module: "HTML"
  19213. }, {
  19214. concept: {
  19215. name: "button"
  19216. },
  19217. module: "HTML"
  19218. }, {
  19219. concept: {
  19220. name: "trigger"
  19221. },
  19222. module: "XForms"
  19223. }],
  19224. requireContextRole: [],
  19225. requiredContextRole: [],
  19226. requiredOwnedElements: [],
  19227. requiredProps: {},
  19228. superClass: [["roletype", "widget", "command"]]
  19229. }, _default = exports.default = buttonRole;
  19230. }
  19231. });
  19232. // ../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js
  19233. var require_captionRole = __commonJS({
  19234. "../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(exports) {
  19235. "use strict";
  19236. Object.defineProperty(exports, "__esModule", {
  19237. value: !0
  19238. });
  19239. exports.default = void 0;
  19240. var captionRole = {
  19241. abstract: !1,
  19242. accessibleNameRequired: !1,
  19243. baseConcepts: [],
  19244. childrenPresentational: !1,
  19245. nameFrom: ["prohibited"],
  19246. prohibitedProps: ["aria-label", "aria-labelledby"],
  19247. props: {},
  19248. relatedConcepts: [{
  19249. concept: {
  19250. name: "caption"
  19251. },
  19252. module: "HTML"
  19253. }],
  19254. requireContextRole: ["figure", "grid", "table"],
  19255. requiredContextRole: ["figure", "grid", "table"],
  19256. requiredOwnedElements: [],
  19257. requiredProps: {},
  19258. superClass: [["roletype", "structure", "section"]]
  19259. }, _default = exports.default = captionRole;
  19260. }
  19261. });
  19262. // ../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js
  19263. var require_cellRole = __commonJS({
  19264. "../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(exports) {
  19265. "use strict";
  19266. Object.defineProperty(exports, "__esModule", {
  19267. value: !0
  19268. });
  19269. exports.default = void 0;
  19270. var cellRole = {
  19271. abstract: !1,
  19272. accessibleNameRequired: !1,
  19273. baseConcepts: [],
  19274. childrenPresentational: !1,
  19275. nameFrom: ["author", "contents"],
  19276. prohibitedProps: [],
  19277. props: {
  19278. "aria-colindex": null,
  19279. "aria-colspan": null,
  19280. "aria-rowindex": null,
  19281. "aria-rowspan": null
  19282. },
  19283. relatedConcepts: [{
  19284. concept: {
  19285. constraints: ["ancestor table element has table role"],
  19286. name: "td"
  19287. },
  19288. module: "HTML"
  19289. }],
  19290. requireContextRole: ["row"],
  19291. requiredContextRole: ["row"],
  19292. requiredOwnedElements: [],
  19293. requiredProps: {},
  19294. superClass: [["roletype", "structure", "section"]]
  19295. }, _default = exports.default = cellRole;
  19296. }
  19297. });
  19298. // ../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js
  19299. var require_checkboxRole = __commonJS({
  19300. "../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(exports) {
  19301. "use strict";
  19302. Object.defineProperty(exports, "__esModule", {
  19303. value: !0
  19304. });
  19305. exports.default = void 0;
  19306. var checkboxRole = {
  19307. abstract: !1,
  19308. accessibleNameRequired: !0,
  19309. baseConcepts: [],
  19310. childrenPresentational: !0,
  19311. nameFrom: ["author", "contents"],
  19312. prohibitedProps: [],
  19313. props: {
  19314. "aria-checked": null,
  19315. "aria-errormessage": null,
  19316. "aria-expanded": null,
  19317. "aria-invalid": null,
  19318. "aria-readonly": null,
  19319. "aria-required": null
  19320. },
  19321. relatedConcepts: [{
  19322. concept: {
  19323. attributes: [{
  19324. name: "type",
  19325. value: "checkbox"
  19326. }],
  19327. name: "input"
  19328. },
  19329. module: "HTML"
  19330. }, {
  19331. concept: {
  19332. name: "option"
  19333. },
  19334. module: "ARIA"
  19335. }],
  19336. requireContextRole: [],
  19337. requiredContextRole: [],
  19338. requiredOwnedElements: [],
  19339. requiredProps: {
  19340. "aria-checked": null
  19341. },
  19342. superClass: [["roletype", "widget", "input"]]
  19343. }, _default = exports.default = checkboxRole;
  19344. }
  19345. });
  19346. // ../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js
  19347. var require_codeRole = __commonJS({
  19348. "../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(exports) {
  19349. "use strict";
  19350. Object.defineProperty(exports, "__esModule", {
  19351. value: !0
  19352. });
  19353. exports.default = void 0;
  19354. var codeRole = {
  19355. abstract: !1,
  19356. accessibleNameRequired: !1,
  19357. baseConcepts: [],
  19358. childrenPresentational: !1,
  19359. nameFrom: ["prohibited"],
  19360. prohibitedProps: ["aria-label", "aria-labelledby"],
  19361. props: {},
  19362. relatedConcepts: [{
  19363. concept: {
  19364. name: "code"
  19365. },
  19366. module: "HTML"
  19367. }],
  19368. requireContextRole: [],
  19369. requiredContextRole: [],
  19370. requiredOwnedElements: [],
  19371. requiredProps: {},
  19372. superClass: [["roletype", "structure", "section"]]
  19373. }, _default = exports.default = codeRole;
  19374. }
  19375. });
  19376. // ../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js
  19377. var require_columnheaderRole = __commonJS({
  19378. "../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(exports) {
  19379. "use strict";
  19380. Object.defineProperty(exports, "__esModule", {
  19381. value: !0
  19382. });
  19383. exports.default = void 0;
  19384. var columnheaderRole = {
  19385. abstract: !1,
  19386. accessibleNameRequired: !0,
  19387. baseConcepts: [],
  19388. childrenPresentational: !1,
  19389. nameFrom: ["author", "contents"],
  19390. prohibitedProps: [],
  19391. props: {
  19392. "aria-sort": null
  19393. },
  19394. relatedConcepts: [{
  19395. concept: {
  19396. name: "th"
  19397. },
  19398. module: "HTML"
  19399. }, {
  19400. concept: {
  19401. attributes: [{
  19402. name: "scope",
  19403. value: "col"
  19404. }],
  19405. name: "th"
  19406. },
  19407. module: "HTML"
  19408. }, {
  19409. concept: {
  19410. attributes: [{
  19411. name: "scope",
  19412. value: "colgroup"
  19413. }],
  19414. name: "th"
  19415. },
  19416. module: "HTML"
  19417. }],
  19418. requireContextRole: ["row"],
  19419. requiredContextRole: ["row"],
  19420. requiredOwnedElements: [],
  19421. requiredProps: {},
  19422. superClass: [["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"]]
  19423. }, _default = exports.default = columnheaderRole;
  19424. }
  19425. });
  19426. // ../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js
  19427. var require_comboboxRole = __commonJS({
  19428. "../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(exports) {
  19429. "use strict";
  19430. Object.defineProperty(exports, "__esModule", {
  19431. value: !0
  19432. });
  19433. exports.default = void 0;
  19434. var comboboxRole = {
  19435. abstract: !1,
  19436. accessibleNameRequired: !0,
  19437. baseConcepts: [],
  19438. childrenPresentational: !1,
  19439. nameFrom: ["author"],
  19440. prohibitedProps: [],
  19441. props: {
  19442. "aria-activedescendant": null,
  19443. "aria-autocomplete": null,
  19444. "aria-errormessage": null,
  19445. "aria-invalid": null,
  19446. "aria-readonly": null,
  19447. "aria-required": null,
  19448. "aria-expanded": "false",
  19449. "aria-haspopup": "listbox"
  19450. },
  19451. relatedConcepts: [{
  19452. concept: {
  19453. attributes: [{
  19454. constraints: ["set"],
  19455. name: "list"
  19456. }, {
  19457. name: "type",
  19458. value: "email"
  19459. }],
  19460. name: "input"
  19461. },
  19462. module: "HTML"
  19463. }, {
  19464. concept: {
  19465. attributes: [{
  19466. constraints: ["set"],
  19467. name: "list"
  19468. }, {
  19469. name: "type",
  19470. value: "search"
  19471. }],
  19472. name: "input"
  19473. },
  19474. module: "HTML"
  19475. }, {
  19476. concept: {
  19477. attributes: [{
  19478. constraints: ["set"],
  19479. name: "list"
  19480. }, {
  19481. name: "type",
  19482. value: "tel"
  19483. }],
  19484. name: "input"
  19485. },
  19486. module: "HTML"
  19487. }, {
  19488. concept: {
  19489. attributes: [{
  19490. constraints: ["set"],
  19491. name: "list"
  19492. }, {
  19493. name: "type",
  19494. value: "text"
  19495. }],
  19496. name: "input"
  19497. },
  19498. module: "HTML"
  19499. }, {
  19500. concept: {
  19501. attributes: [{
  19502. constraints: ["set"],
  19503. name: "list"
  19504. }, {
  19505. name: "type",
  19506. value: "url"
  19507. }],
  19508. name: "input"
  19509. },
  19510. module: "HTML"
  19511. }, {
  19512. concept: {
  19513. attributes: [{
  19514. constraints: ["set"],
  19515. name: "list"
  19516. }, {
  19517. name: "type",
  19518. value: "url"
  19519. }],
  19520. name: "input"
  19521. },
  19522. module: "HTML"
  19523. }, {
  19524. concept: {
  19525. attributes: [{
  19526. constraints: ["undefined"],
  19527. name: "multiple"
  19528. }, {
  19529. constraints: ["undefined"],
  19530. name: "size"
  19531. }],
  19532. constraints: ["the multiple attribute is not set and the size attribute does not have a value greater than 1"],
  19533. name: "select"
  19534. },
  19535. module: "HTML"
  19536. }, {
  19537. concept: {
  19538. name: "select"
  19539. },
  19540. module: "XForms"
  19541. }],
  19542. requireContextRole: [],
  19543. requiredContextRole: [],
  19544. requiredOwnedElements: [],
  19545. requiredProps: {
  19546. "aria-controls": null,
  19547. "aria-expanded": "false"
  19548. },
  19549. superClass: [["roletype", "widget", "input"]]
  19550. }, _default = exports.default = comboboxRole;
  19551. }
  19552. });
  19553. // ../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js
  19554. var require_complementaryRole = __commonJS({
  19555. "../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(exports) {
  19556. "use strict";
  19557. Object.defineProperty(exports, "__esModule", {
  19558. value: !0
  19559. });
  19560. exports.default = void 0;
  19561. var complementaryRole = {
  19562. abstract: !1,
  19563. accessibleNameRequired: !1,
  19564. baseConcepts: [],
  19565. childrenPresentational: !1,
  19566. nameFrom: ["author"],
  19567. prohibitedProps: [],
  19568. props: {},
  19569. relatedConcepts: [{
  19570. concept: {
  19571. constraints: ["scoped to the body element", "scoped to the main element"],
  19572. name: "aside"
  19573. },
  19574. module: "HTML"
  19575. }, {
  19576. concept: {
  19577. attributes: [{
  19578. constraints: ["set"],
  19579. name: "aria-label"
  19580. }],
  19581. constraints: ["scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19582. name: "aside"
  19583. },
  19584. module: "HTML"
  19585. }, {
  19586. concept: {
  19587. attributes: [{
  19588. constraints: ["set"],
  19589. name: "aria-labelledby"
  19590. }],
  19591. constraints: ["scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19592. name: "aside"
  19593. },
  19594. module: "HTML"
  19595. }],
  19596. requireContextRole: [],
  19597. requiredContextRole: [],
  19598. requiredOwnedElements: [],
  19599. requiredProps: {},
  19600. superClass: [["roletype", "structure", "section", "landmark"]]
  19601. }, _default = exports.default = complementaryRole;
  19602. }
  19603. });
  19604. // ../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js
  19605. var require_contentinfoRole = __commonJS({
  19606. "../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(exports) {
  19607. "use strict";
  19608. Object.defineProperty(exports, "__esModule", {
  19609. value: !0
  19610. });
  19611. exports.default = void 0;
  19612. var contentinfoRole = {
  19613. abstract: !1,
  19614. accessibleNameRequired: !1,
  19615. baseConcepts: [],
  19616. childrenPresentational: !1,
  19617. nameFrom: ["author"],
  19618. prohibitedProps: [],
  19619. props: {},
  19620. relatedConcepts: [{
  19621. concept: {
  19622. constraints: ["scoped to the body element"],
  19623. name: "footer"
  19624. },
  19625. module: "HTML"
  19626. }],
  19627. requireContextRole: [],
  19628. requiredContextRole: [],
  19629. requiredOwnedElements: [],
  19630. requiredProps: {},
  19631. superClass: [["roletype", "structure", "section", "landmark"]]
  19632. }, _default = exports.default = contentinfoRole;
  19633. }
  19634. });
  19635. // ../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js
  19636. var require_definitionRole = __commonJS({
  19637. "../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(exports) {
  19638. "use strict";
  19639. Object.defineProperty(exports, "__esModule", {
  19640. value: !0
  19641. });
  19642. exports.default = void 0;
  19643. var definitionRole = {
  19644. abstract: !1,
  19645. accessibleNameRequired: !1,
  19646. baseConcepts: [],
  19647. childrenPresentational: !1,
  19648. nameFrom: ["author"],
  19649. prohibitedProps: [],
  19650. props: {},
  19651. relatedConcepts: [{
  19652. concept: {
  19653. name: "dd"
  19654. },
  19655. module: "HTML"
  19656. }],
  19657. requireContextRole: [],
  19658. requiredContextRole: [],
  19659. requiredOwnedElements: [],
  19660. requiredProps: {},
  19661. superClass: [["roletype", "structure", "section"]]
  19662. }, _default = exports.default = definitionRole;
  19663. }
  19664. });
  19665. // ../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js
  19666. var require_deletionRole = __commonJS({
  19667. "../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(exports) {
  19668. "use strict";
  19669. Object.defineProperty(exports, "__esModule", {
  19670. value: !0
  19671. });
  19672. exports.default = void 0;
  19673. var deletionRole = {
  19674. abstract: !1,
  19675. accessibleNameRequired: !1,
  19676. baseConcepts: [],
  19677. childrenPresentational: !1,
  19678. nameFrom: ["prohibited"],
  19679. prohibitedProps: ["aria-label", "aria-labelledby"],
  19680. props: {},
  19681. relatedConcepts: [{
  19682. concept: {
  19683. name: "del"
  19684. },
  19685. module: "HTML"
  19686. }],
  19687. requireContextRole: [],
  19688. requiredContextRole: [],
  19689. requiredOwnedElements: [],
  19690. requiredProps: {},
  19691. superClass: [["roletype", "structure", "section"]]
  19692. }, _default = exports.default = deletionRole;
  19693. }
  19694. });
  19695. // ../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js
  19696. var require_dialogRole = __commonJS({
  19697. "../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(exports) {
  19698. "use strict";
  19699. Object.defineProperty(exports, "__esModule", {
  19700. value: !0
  19701. });
  19702. exports.default = void 0;
  19703. var dialogRole = {
  19704. abstract: !1,
  19705. accessibleNameRequired: !0,
  19706. baseConcepts: [],
  19707. childrenPresentational: !1,
  19708. nameFrom: ["author"],
  19709. prohibitedProps: [],
  19710. props: {},
  19711. relatedConcepts: [{
  19712. concept: {
  19713. name: "dialog"
  19714. },
  19715. module: "HTML"
  19716. }],
  19717. requireContextRole: [],
  19718. requiredContextRole: [],
  19719. requiredOwnedElements: [],
  19720. requiredProps: {},
  19721. superClass: [["roletype", "window"]]
  19722. }, _default = exports.default = dialogRole;
  19723. }
  19724. });
  19725. // ../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js
  19726. var require_directoryRole = __commonJS({
  19727. "../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(exports) {
  19728. "use strict";
  19729. Object.defineProperty(exports, "__esModule", {
  19730. value: !0
  19731. });
  19732. exports.default = void 0;
  19733. var directoryRole = {
  19734. abstract: !1,
  19735. accessibleNameRequired: !1,
  19736. baseConcepts: [],
  19737. childrenPresentational: !1,
  19738. nameFrom: ["author"],
  19739. prohibitedProps: [],
  19740. props: {},
  19741. relatedConcepts: [{
  19742. module: "DAISY Guide"
  19743. }],
  19744. requireContextRole: [],
  19745. requiredContextRole: [],
  19746. requiredOwnedElements: [],
  19747. requiredProps: {},
  19748. superClass: [["roletype", "structure", "section", "list"]]
  19749. }, _default = exports.default = directoryRole;
  19750. }
  19751. });
  19752. // ../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js
  19753. var require_documentRole = __commonJS({
  19754. "../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(exports) {
  19755. "use strict";
  19756. Object.defineProperty(exports, "__esModule", {
  19757. value: !0
  19758. });
  19759. exports.default = void 0;
  19760. var documentRole = {
  19761. abstract: !1,
  19762. accessibleNameRequired: !1,
  19763. baseConcepts: [],
  19764. childrenPresentational: !1,
  19765. nameFrom: ["author"],
  19766. prohibitedProps: [],
  19767. props: {},
  19768. relatedConcepts: [{
  19769. concept: {
  19770. name: "Device Independence Delivery Unit"
  19771. }
  19772. }, {
  19773. concept: {
  19774. name: "html"
  19775. },
  19776. module: "HTML"
  19777. }],
  19778. requireContextRole: [],
  19779. requiredContextRole: [],
  19780. requiredOwnedElements: [],
  19781. requiredProps: {},
  19782. superClass: [["roletype", "structure"]]
  19783. }, _default = exports.default = documentRole;
  19784. }
  19785. });
  19786. // ../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js
  19787. var require_emphasisRole = __commonJS({
  19788. "../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(exports) {
  19789. "use strict";
  19790. Object.defineProperty(exports, "__esModule", {
  19791. value: !0
  19792. });
  19793. exports.default = void 0;
  19794. var emphasisRole = {
  19795. abstract: !1,
  19796. accessibleNameRequired: !1,
  19797. baseConcepts: [],
  19798. childrenPresentational: !1,
  19799. nameFrom: ["prohibited"],
  19800. prohibitedProps: ["aria-label", "aria-labelledby"],
  19801. props: {},
  19802. relatedConcepts: [{
  19803. concept: {
  19804. name: "em"
  19805. },
  19806. module: "HTML"
  19807. }],
  19808. requireContextRole: [],
  19809. requiredContextRole: [],
  19810. requiredOwnedElements: [],
  19811. requiredProps: {},
  19812. superClass: [["roletype", "structure", "section"]]
  19813. }, _default = exports.default = emphasisRole;
  19814. }
  19815. });
  19816. // ../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js
  19817. var require_feedRole = __commonJS({
  19818. "../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(exports) {
  19819. "use strict";
  19820. Object.defineProperty(exports, "__esModule", {
  19821. value: !0
  19822. });
  19823. exports.default = void 0;
  19824. var feedRole = {
  19825. abstract: !1,
  19826. accessibleNameRequired: !1,
  19827. baseConcepts: [],
  19828. childrenPresentational: !1,
  19829. nameFrom: ["author"],
  19830. prohibitedProps: [],
  19831. props: {},
  19832. relatedConcepts: [],
  19833. requireContextRole: [],
  19834. requiredContextRole: [],
  19835. requiredOwnedElements: [["article"]],
  19836. requiredProps: {},
  19837. superClass: [["roletype", "structure", "section", "list"]]
  19838. }, _default = exports.default = feedRole;
  19839. }
  19840. });
  19841. // ../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js
  19842. var require_figureRole = __commonJS({
  19843. "../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(exports) {
  19844. "use strict";
  19845. Object.defineProperty(exports, "__esModule", {
  19846. value: !0
  19847. });
  19848. exports.default = void 0;
  19849. var figureRole = {
  19850. abstract: !1,
  19851. accessibleNameRequired: !1,
  19852. baseConcepts: [],
  19853. childrenPresentational: !1,
  19854. nameFrom: ["author"],
  19855. prohibitedProps: [],
  19856. props: {},
  19857. relatedConcepts: [{
  19858. concept: {
  19859. name: "figure"
  19860. },
  19861. module: "HTML"
  19862. }],
  19863. requireContextRole: [],
  19864. requiredContextRole: [],
  19865. requiredOwnedElements: [],
  19866. requiredProps: {},
  19867. superClass: [["roletype", "structure", "section"]]
  19868. }, _default = exports.default = figureRole;
  19869. }
  19870. });
  19871. // ../../node_modules/aria-query/lib/etc/roles/literal/formRole.js
  19872. var require_formRole = __commonJS({
  19873. "../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(exports) {
  19874. "use strict";
  19875. Object.defineProperty(exports, "__esModule", {
  19876. value: !0
  19877. });
  19878. exports.default = void 0;
  19879. var formRole = {
  19880. abstract: !1,
  19881. accessibleNameRequired: !1,
  19882. baseConcepts: [],
  19883. childrenPresentational: !1,
  19884. nameFrom: ["author"],
  19885. prohibitedProps: [],
  19886. props: {},
  19887. relatedConcepts: [{
  19888. concept: {
  19889. attributes: [{
  19890. constraints: ["set"],
  19891. name: "aria-label"
  19892. }],
  19893. name: "form"
  19894. },
  19895. module: "HTML"
  19896. }, {
  19897. concept: {
  19898. attributes: [{
  19899. constraints: ["set"],
  19900. name: "aria-labelledby"
  19901. }],
  19902. name: "form"
  19903. },
  19904. module: "HTML"
  19905. }, {
  19906. concept: {
  19907. attributes: [{
  19908. constraints: ["set"],
  19909. name: "name"
  19910. }],
  19911. name: "form"
  19912. },
  19913. module: "HTML"
  19914. }],
  19915. requireContextRole: [],
  19916. requiredContextRole: [],
  19917. requiredOwnedElements: [],
  19918. requiredProps: {},
  19919. superClass: [["roletype", "structure", "section", "landmark"]]
  19920. }, _default = exports.default = formRole;
  19921. }
  19922. });
  19923. // ../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js
  19924. var require_genericRole = __commonJS({
  19925. "../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(exports) {
  19926. "use strict";
  19927. Object.defineProperty(exports, "__esModule", {
  19928. value: !0
  19929. });
  19930. exports.default = void 0;
  19931. var genericRole = {
  19932. abstract: !1,
  19933. accessibleNameRequired: !1,
  19934. baseConcepts: [],
  19935. childrenPresentational: !1,
  19936. nameFrom: ["prohibited"],
  19937. prohibitedProps: ["aria-label", "aria-labelledby"],
  19938. props: {},
  19939. relatedConcepts: [{
  19940. concept: {
  19941. name: "a"
  19942. },
  19943. module: "HTML"
  19944. }, {
  19945. concept: {
  19946. name: "area"
  19947. },
  19948. module: "HTML"
  19949. }, {
  19950. concept: {
  19951. name: "aside"
  19952. },
  19953. module: "HTML"
  19954. }, {
  19955. concept: {
  19956. name: "b"
  19957. },
  19958. module: "HTML"
  19959. }, {
  19960. concept: {
  19961. name: "bdo"
  19962. },
  19963. module: "HTML"
  19964. }, {
  19965. concept: {
  19966. name: "body"
  19967. },
  19968. module: "HTML"
  19969. }, {
  19970. concept: {
  19971. name: "data"
  19972. },
  19973. module: "HTML"
  19974. }, {
  19975. concept: {
  19976. name: "div"
  19977. },
  19978. module: "HTML"
  19979. }, {
  19980. concept: {
  19981. constraints: ["scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19982. name: "footer"
  19983. },
  19984. module: "HTML"
  19985. }, {
  19986. concept: {
  19987. constraints: ["scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body"],
  19988. name: "header"
  19989. },
  19990. module: "HTML"
  19991. }, {
  19992. concept: {
  19993. name: "hgroup"
  19994. },
  19995. module: "HTML"
  19996. }, {
  19997. concept: {
  19998. name: "i"
  19999. },
  20000. module: "HTML"
  20001. }, {
  20002. concept: {
  20003. name: "pre"
  20004. },
  20005. module: "HTML"
  20006. }, {
  20007. concept: {
  20008. name: "q"
  20009. },
  20010. module: "HTML"
  20011. }, {
  20012. concept: {
  20013. name: "samp"
  20014. },
  20015. module: "HTML"
  20016. }, {
  20017. concept: {
  20018. name: "section"
  20019. },
  20020. module: "HTML"
  20021. }, {
  20022. concept: {
  20023. name: "small"
  20024. },
  20025. module: "HTML"
  20026. }, {
  20027. concept: {
  20028. name: "span"
  20029. },
  20030. module: "HTML"
  20031. }, {
  20032. concept: {
  20033. name: "u"
  20034. },
  20035. module: "HTML"
  20036. }],
  20037. requireContextRole: [],
  20038. requiredContextRole: [],
  20039. requiredOwnedElements: [],
  20040. requiredProps: {},
  20041. superClass: [["roletype", "structure"]]
  20042. }, _default = exports.default = genericRole;
  20043. }
  20044. });
  20045. // ../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js
  20046. var require_gridRole = __commonJS({
  20047. "../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(exports) {
  20048. "use strict";
  20049. Object.defineProperty(exports, "__esModule", {
  20050. value: !0
  20051. });
  20052. exports.default = void 0;
  20053. var gridRole = {
  20054. abstract: !1,
  20055. accessibleNameRequired: !0,
  20056. baseConcepts: [],
  20057. childrenPresentational: !1,
  20058. nameFrom: ["author"],
  20059. prohibitedProps: [],
  20060. props: {
  20061. "aria-multiselectable": null,
  20062. "aria-readonly": null
  20063. },
  20064. relatedConcepts: [],
  20065. requireContextRole: [],
  20066. requiredContextRole: [],
  20067. requiredOwnedElements: [["row"], ["row", "rowgroup"]],
  20068. requiredProps: {},
  20069. superClass: [["roletype", "widget", "composite"], ["roletype", "structure", "section", "table"]]
  20070. }, _default = exports.default = gridRole;
  20071. }
  20072. });
  20073. // ../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js
  20074. var require_gridcellRole = __commonJS({
  20075. "../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(exports) {
  20076. "use strict";
  20077. Object.defineProperty(exports, "__esModule", {
  20078. value: !0
  20079. });
  20080. exports.default = void 0;
  20081. var gridcellRole = {
  20082. abstract: !1,
  20083. accessibleNameRequired: !1,
  20084. baseConcepts: [],
  20085. childrenPresentational: !1,
  20086. nameFrom: ["author", "contents"],
  20087. prohibitedProps: [],
  20088. props: {
  20089. "aria-disabled": null,
  20090. "aria-errormessage": null,
  20091. "aria-expanded": null,
  20092. "aria-haspopup": null,
  20093. "aria-invalid": null,
  20094. "aria-readonly": null,
  20095. "aria-required": null,
  20096. "aria-selected": null
  20097. },
  20098. relatedConcepts: [{
  20099. concept: {
  20100. constraints: ["ancestor table element has grid role", "ancestor table element has treegrid role"],
  20101. name: "td"
  20102. },
  20103. module: "HTML"
  20104. }],
  20105. requireContextRole: ["row"],
  20106. requiredContextRole: ["row"],
  20107. requiredOwnedElements: [],
  20108. requiredProps: {},
  20109. superClass: [["roletype", "structure", "section", "cell"], ["roletype", "widget"]]
  20110. }, _default = exports.default = gridcellRole;
  20111. }
  20112. });
  20113. // ../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js
  20114. var require_groupRole = __commonJS({
  20115. "../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(exports) {
  20116. "use strict";
  20117. Object.defineProperty(exports, "__esModule", {
  20118. value: !0
  20119. });
  20120. exports.default = void 0;
  20121. var groupRole = {
  20122. abstract: !1,
  20123. accessibleNameRequired: !1,
  20124. baseConcepts: [],
  20125. childrenPresentational: !1,
  20126. nameFrom: ["author"],
  20127. prohibitedProps: [],
  20128. props: {
  20129. "aria-activedescendant": null,
  20130. "aria-disabled": null
  20131. },
  20132. relatedConcepts: [{
  20133. concept: {
  20134. name: "details"
  20135. },
  20136. module: "HTML"
  20137. }, {
  20138. concept: {
  20139. name: "fieldset"
  20140. },
  20141. module: "HTML"
  20142. }, {
  20143. concept: {
  20144. name: "optgroup"
  20145. },
  20146. module: "HTML"
  20147. }, {
  20148. concept: {
  20149. name: "address"
  20150. },
  20151. module: "HTML"
  20152. }],
  20153. requireContextRole: [],
  20154. requiredContextRole: [],
  20155. requiredOwnedElements: [],
  20156. requiredProps: {},
  20157. superClass: [["roletype", "structure", "section"]]
  20158. }, _default = exports.default = groupRole;
  20159. }
  20160. });
  20161. // ../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js
  20162. var require_headingRole = __commonJS({
  20163. "../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(exports) {
  20164. "use strict";
  20165. Object.defineProperty(exports, "__esModule", {
  20166. value: !0
  20167. });
  20168. exports.default = void 0;
  20169. var headingRole = {
  20170. abstract: !1,
  20171. accessibleNameRequired: !0,
  20172. baseConcepts: [],
  20173. childrenPresentational: !1,
  20174. nameFrom: ["author", "contents"],
  20175. prohibitedProps: [],
  20176. props: {
  20177. "aria-level": "2"
  20178. },
  20179. relatedConcepts: [{
  20180. concept: {
  20181. name: "h1"
  20182. },
  20183. module: "HTML"
  20184. }, {
  20185. concept: {
  20186. name: "h2"
  20187. },
  20188. module: "HTML"
  20189. }, {
  20190. concept: {
  20191. name: "h3"
  20192. },
  20193. module: "HTML"
  20194. }, {
  20195. concept: {
  20196. name: "h4"
  20197. },
  20198. module: "HTML"
  20199. }, {
  20200. concept: {
  20201. name: "h5"
  20202. },
  20203. module: "HTML"
  20204. }, {
  20205. concept: {
  20206. name: "h6"
  20207. },
  20208. module: "HTML"
  20209. }],
  20210. requireContextRole: [],
  20211. requiredContextRole: [],
  20212. requiredOwnedElements: [],
  20213. requiredProps: {
  20214. "aria-level": "2"
  20215. },
  20216. superClass: [["roletype", "structure", "sectionhead"]]
  20217. }, _default = exports.default = headingRole;
  20218. }
  20219. });
  20220. // ../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js
  20221. var require_imgRole = __commonJS({
  20222. "../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(exports) {
  20223. "use strict";
  20224. Object.defineProperty(exports, "__esModule", {
  20225. value: !0
  20226. });
  20227. exports.default = void 0;
  20228. var imgRole = {
  20229. abstract: !1,
  20230. accessibleNameRequired: !0,
  20231. baseConcepts: [],
  20232. childrenPresentational: !0,
  20233. nameFrom: ["author"],
  20234. prohibitedProps: [],
  20235. props: {},
  20236. relatedConcepts: [{
  20237. concept: {
  20238. attributes: [{
  20239. constraints: ["set"],
  20240. name: "alt"
  20241. }],
  20242. name: "img"
  20243. },
  20244. module: "HTML"
  20245. }, {
  20246. concept: {
  20247. attributes: [{
  20248. constraints: ["undefined"],
  20249. name: "alt"
  20250. }],
  20251. name: "img"
  20252. },
  20253. module: "HTML"
  20254. }, {
  20255. concept: {
  20256. name: "imggroup"
  20257. },
  20258. module: "DTB"
  20259. }],
  20260. requireContextRole: [],
  20261. requiredContextRole: [],
  20262. requiredOwnedElements: [],
  20263. requiredProps: {},
  20264. superClass: [["roletype", "structure", "section"]]
  20265. }, _default = exports.default = imgRole;
  20266. }
  20267. });
  20268. // ../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js
  20269. var require_insertionRole = __commonJS({
  20270. "../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(exports) {
  20271. "use strict";
  20272. Object.defineProperty(exports, "__esModule", {
  20273. value: !0
  20274. });
  20275. exports.default = void 0;
  20276. var insertionRole = {
  20277. abstract: !1,
  20278. accessibleNameRequired: !1,
  20279. baseConcepts: [],
  20280. childrenPresentational: !1,
  20281. nameFrom: ["prohibited"],
  20282. prohibitedProps: ["aria-label", "aria-labelledby"],
  20283. props: {},
  20284. relatedConcepts: [{
  20285. concept: {
  20286. name: "ins"
  20287. },
  20288. module: "HTML"
  20289. }],
  20290. requireContextRole: [],
  20291. requiredContextRole: [],
  20292. requiredOwnedElements: [],
  20293. requiredProps: {},
  20294. superClass: [["roletype", "structure", "section"]]
  20295. }, _default = exports.default = insertionRole;
  20296. }
  20297. });
  20298. // ../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js
  20299. var require_linkRole = __commonJS({
  20300. "../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(exports) {
  20301. "use strict";
  20302. Object.defineProperty(exports, "__esModule", {
  20303. value: !0
  20304. });
  20305. exports.default = void 0;
  20306. var linkRole = {
  20307. abstract: !1,
  20308. accessibleNameRequired: !0,
  20309. baseConcepts: [],
  20310. childrenPresentational: !1,
  20311. nameFrom: ["author", "contents"],
  20312. prohibitedProps: [],
  20313. props: {
  20314. "aria-disabled": null,
  20315. "aria-expanded": null,
  20316. "aria-haspopup": null
  20317. },
  20318. relatedConcepts: [{
  20319. concept: {
  20320. attributes: [{
  20321. constraints: ["set"],
  20322. name: "href"
  20323. }],
  20324. name: "a"
  20325. },
  20326. module: "HTML"
  20327. }, {
  20328. concept: {
  20329. attributes: [{
  20330. constraints: ["set"],
  20331. name: "href"
  20332. }],
  20333. name: "area"
  20334. },
  20335. module: "HTML"
  20336. }],
  20337. requireContextRole: [],
  20338. requiredContextRole: [],
  20339. requiredOwnedElements: [],
  20340. requiredProps: {},
  20341. superClass: [["roletype", "widget", "command"]]
  20342. }, _default = exports.default = linkRole;
  20343. }
  20344. });
  20345. // ../../node_modules/aria-query/lib/etc/roles/literal/listRole.js
  20346. var require_listRole = __commonJS({
  20347. "../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(exports) {
  20348. "use strict";
  20349. Object.defineProperty(exports, "__esModule", {
  20350. value: !0
  20351. });
  20352. exports.default = void 0;
  20353. var listRole = {
  20354. abstract: !1,
  20355. accessibleNameRequired: !1,
  20356. baseConcepts: [],
  20357. childrenPresentational: !1,
  20358. nameFrom: ["author"],
  20359. prohibitedProps: [],
  20360. props: {},
  20361. relatedConcepts: [{
  20362. concept: {
  20363. name: "menu"
  20364. },
  20365. module: "HTML"
  20366. }, {
  20367. concept: {
  20368. name: "ol"
  20369. },
  20370. module: "HTML"
  20371. }, {
  20372. concept: {
  20373. name: "ul"
  20374. },
  20375. module: "HTML"
  20376. }],
  20377. requireContextRole: [],
  20378. requiredContextRole: [],
  20379. requiredOwnedElements: [["listitem"]],
  20380. requiredProps: {},
  20381. superClass: [["roletype", "structure", "section"]]
  20382. }, _default = exports.default = listRole;
  20383. }
  20384. });
  20385. // ../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js
  20386. var require_listboxRole = __commonJS({
  20387. "../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(exports) {
  20388. "use strict";
  20389. Object.defineProperty(exports, "__esModule", {
  20390. value: !0
  20391. });
  20392. exports.default = void 0;
  20393. var listboxRole = {
  20394. abstract: !1,
  20395. accessibleNameRequired: !0,
  20396. baseConcepts: [],
  20397. childrenPresentational: !1,
  20398. nameFrom: ["author"],
  20399. prohibitedProps: [],
  20400. props: {
  20401. "aria-errormessage": null,
  20402. "aria-expanded": null,
  20403. "aria-invalid": null,
  20404. "aria-multiselectable": null,
  20405. "aria-readonly": null,
  20406. "aria-required": null,
  20407. "aria-orientation": "vertical"
  20408. },
  20409. relatedConcepts: [{
  20410. concept: {
  20411. attributes: [{
  20412. constraints: [">1"],
  20413. name: "size"
  20414. }],
  20415. constraints: ["the size attribute value is greater than 1"],
  20416. name: "select"
  20417. },
  20418. module: "HTML"
  20419. }, {
  20420. concept: {
  20421. attributes: [{
  20422. name: "multiple"
  20423. }],
  20424. name: "select"
  20425. },
  20426. module: "HTML"
  20427. }, {
  20428. concept: {
  20429. name: "datalist"
  20430. },
  20431. module: "HTML"
  20432. }, {
  20433. concept: {
  20434. name: "list"
  20435. },
  20436. module: "ARIA"
  20437. }, {
  20438. concept: {
  20439. name: "select"
  20440. },
  20441. module: "XForms"
  20442. }],
  20443. requireContextRole: [],
  20444. requiredContextRole: [],
  20445. requiredOwnedElements: [["option", "group"], ["option"]],
  20446. requiredProps: {},
  20447. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  20448. }, _default = exports.default = listboxRole;
  20449. }
  20450. });
  20451. // ../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js
  20452. var require_listitemRole = __commonJS({
  20453. "../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(exports) {
  20454. "use strict";
  20455. Object.defineProperty(exports, "__esModule", {
  20456. value: !0
  20457. });
  20458. exports.default = void 0;
  20459. var listitemRole = {
  20460. abstract: !1,
  20461. accessibleNameRequired: !1,
  20462. baseConcepts: [],
  20463. childrenPresentational: !1,
  20464. nameFrom: ["author"],
  20465. prohibitedProps: [],
  20466. props: {
  20467. "aria-level": null,
  20468. "aria-posinset": null,
  20469. "aria-setsize": null
  20470. },
  20471. relatedConcepts: [{
  20472. concept: {
  20473. constraints: ["direct descendant of ol", "direct descendant of ul", "direct descendant of menu"],
  20474. name: "li"
  20475. },
  20476. module: "HTML"
  20477. }, {
  20478. concept: {
  20479. name: "item"
  20480. },
  20481. module: "XForms"
  20482. }],
  20483. requireContextRole: ["directory", "list"],
  20484. requiredContextRole: ["directory", "list"],
  20485. requiredOwnedElements: [],
  20486. requiredProps: {},
  20487. superClass: [["roletype", "structure", "section"]]
  20488. }, _default = exports.default = listitemRole;
  20489. }
  20490. });
  20491. // ../../node_modules/aria-query/lib/etc/roles/literal/logRole.js
  20492. var require_logRole = __commonJS({
  20493. "../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(exports) {
  20494. "use strict";
  20495. Object.defineProperty(exports, "__esModule", {
  20496. value: !0
  20497. });
  20498. exports.default = void 0;
  20499. var logRole = {
  20500. abstract: !1,
  20501. accessibleNameRequired: !1,
  20502. baseConcepts: [],
  20503. childrenPresentational: !1,
  20504. nameFrom: ["author"],
  20505. prohibitedProps: [],
  20506. props: {
  20507. "aria-live": "polite"
  20508. },
  20509. relatedConcepts: [],
  20510. requireContextRole: [],
  20511. requiredContextRole: [],
  20512. requiredOwnedElements: [],
  20513. requiredProps: {},
  20514. superClass: [["roletype", "structure", "section"]]
  20515. }, _default = exports.default = logRole;
  20516. }
  20517. });
  20518. // ../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js
  20519. var require_mainRole = __commonJS({
  20520. "../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(exports) {
  20521. "use strict";
  20522. Object.defineProperty(exports, "__esModule", {
  20523. value: !0
  20524. });
  20525. exports.default = void 0;
  20526. var mainRole = {
  20527. abstract: !1,
  20528. accessibleNameRequired: !1,
  20529. baseConcepts: [],
  20530. childrenPresentational: !1,
  20531. nameFrom: ["author"],
  20532. prohibitedProps: [],
  20533. props: {},
  20534. relatedConcepts: [{
  20535. concept: {
  20536. name: "main"
  20537. },
  20538. module: "HTML"
  20539. }],
  20540. requireContextRole: [],
  20541. requiredContextRole: [],
  20542. requiredOwnedElements: [],
  20543. requiredProps: {},
  20544. superClass: [["roletype", "structure", "section", "landmark"]]
  20545. }, _default = exports.default = mainRole;
  20546. }
  20547. });
  20548. // ../../node_modules/aria-query/lib/etc/roles/literal/markRole.js
  20549. var require_markRole = __commonJS({
  20550. "../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(exports) {
  20551. "use strict";
  20552. Object.defineProperty(exports, "__esModule", {
  20553. value: !0
  20554. });
  20555. exports.default = void 0;
  20556. var markRole = {
  20557. abstract: !1,
  20558. accessibleNameRequired: !1,
  20559. baseConcepts: [],
  20560. childrenPresentational: !1,
  20561. nameFrom: ["prohibited"],
  20562. prohibitedProps: [],
  20563. props: {
  20564. "aria-braillelabel": null,
  20565. "aria-brailleroledescription": null,
  20566. "aria-description": null
  20567. },
  20568. relatedConcepts: [{
  20569. concept: {
  20570. name: "mark"
  20571. },
  20572. module: "HTML"
  20573. }],
  20574. requireContextRole: [],
  20575. requiredContextRole: [],
  20576. requiredOwnedElements: [],
  20577. requiredProps: {},
  20578. superClass: [["roletype", "structure", "section"]]
  20579. }, _default = exports.default = markRole;
  20580. }
  20581. });
  20582. // ../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js
  20583. var require_marqueeRole = __commonJS({
  20584. "../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(exports) {
  20585. "use strict";
  20586. Object.defineProperty(exports, "__esModule", {
  20587. value: !0
  20588. });
  20589. exports.default = void 0;
  20590. var marqueeRole = {
  20591. abstract: !1,
  20592. accessibleNameRequired: !0,
  20593. baseConcepts: [],
  20594. childrenPresentational: !1,
  20595. nameFrom: ["author"],
  20596. prohibitedProps: [],
  20597. props: {},
  20598. relatedConcepts: [],
  20599. requireContextRole: [],
  20600. requiredContextRole: [],
  20601. requiredOwnedElements: [],
  20602. requiredProps: {},
  20603. superClass: [["roletype", "structure", "section"]]
  20604. }, _default = exports.default = marqueeRole;
  20605. }
  20606. });
  20607. // ../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js
  20608. var require_mathRole = __commonJS({
  20609. "../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(exports) {
  20610. "use strict";
  20611. Object.defineProperty(exports, "__esModule", {
  20612. value: !0
  20613. });
  20614. exports.default = void 0;
  20615. var mathRole = {
  20616. abstract: !1,
  20617. accessibleNameRequired: !1,
  20618. baseConcepts: [],
  20619. childrenPresentational: !1,
  20620. nameFrom: ["author"],
  20621. prohibitedProps: [],
  20622. props: {},
  20623. relatedConcepts: [{
  20624. concept: {
  20625. name: "math"
  20626. },
  20627. module: "HTML"
  20628. }],
  20629. requireContextRole: [],
  20630. requiredContextRole: [],
  20631. requiredOwnedElements: [],
  20632. requiredProps: {},
  20633. superClass: [["roletype", "structure", "section"]]
  20634. }, _default = exports.default = mathRole;
  20635. }
  20636. });
  20637. // ../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js
  20638. var require_menuRole = __commonJS({
  20639. "../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(exports) {
  20640. "use strict";
  20641. Object.defineProperty(exports, "__esModule", {
  20642. value: !0
  20643. });
  20644. exports.default = void 0;
  20645. var menuRole = {
  20646. abstract: !1,
  20647. accessibleNameRequired: !1,
  20648. baseConcepts: [],
  20649. childrenPresentational: !1,
  20650. nameFrom: ["author"],
  20651. prohibitedProps: [],
  20652. props: {
  20653. "aria-orientation": "vertical"
  20654. },
  20655. relatedConcepts: [{
  20656. concept: {
  20657. name: "MENU"
  20658. },
  20659. module: "JAPI"
  20660. }, {
  20661. concept: {
  20662. name: "list"
  20663. },
  20664. module: "ARIA"
  20665. }, {
  20666. concept: {
  20667. name: "select"
  20668. },
  20669. module: "XForms"
  20670. }, {
  20671. concept: {
  20672. name: "sidebar"
  20673. },
  20674. module: "DTB"
  20675. }],
  20676. requireContextRole: [],
  20677. requiredContextRole: [],
  20678. requiredOwnedElements: [["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"]],
  20679. requiredProps: {},
  20680. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  20681. }, _default = exports.default = menuRole;
  20682. }
  20683. });
  20684. // ../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js
  20685. var require_menubarRole = __commonJS({
  20686. "../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(exports) {
  20687. "use strict";
  20688. Object.defineProperty(exports, "__esModule", {
  20689. value: !0
  20690. });
  20691. exports.default = void 0;
  20692. var menubarRole = {
  20693. abstract: !1,
  20694. accessibleNameRequired: !1,
  20695. baseConcepts: [],
  20696. childrenPresentational: !1,
  20697. nameFrom: ["author"],
  20698. prohibitedProps: [],
  20699. props: {
  20700. "aria-orientation": "horizontal"
  20701. },
  20702. relatedConcepts: [{
  20703. concept: {
  20704. name: "toolbar"
  20705. },
  20706. module: "ARIA"
  20707. }],
  20708. requireContextRole: [],
  20709. requiredContextRole: [],
  20710. requiredOwnedElements: [["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"]],
  20711. requiredProps: {},
  20712. superClass: [["roletype", "widget", "composite", "select", "menu"], ["roletype", "structure", "section", "group", "select", "menu"]]
  20713. }, _default = exports.default = menubarRole;
  20714. }
  20715. });
  20716. // ../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js
  20717. var require_menuitemRole = __commonJS({
  20718. "../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(exports) {
  20719. "use strict";
  20720. Object.defineProperty(exports, "__esModule", {
  20721. value: !0
  20722. });
  20723. exports.default = void 0;
  20724. var menuitemRole = {
  20725. abstract: !1,
  20726. accessibleNameRequired: !0,
  20727. baseConcepts: [],
  20728. childrenPresentational: !1,
  20729. nameFrom: ["author", "contents"],
  20730. prohibitedProps: [],
  20731. props: {
  20732. "aria-disabled": null,
  20733. "aria-expanded": null,
  20734. "aria-haspopup": null,
  20735. "aria-posinset": null,
  20736. "aria-setsize": null
  20737. },
  20738. relatedConcepts: [{
  20739. concept: {
  20740. name: "MENU_ITEM"
  20741. },
  20742. module: "JAPI"
  20743. }, {
  20744. concept: {
  20745. name: "listitem"
  20746. },
  20747. module: "ARIA"
  20748. }, {
  20749. concept: {
  20750. name: "option"
  20751. },
  20752. module: "ARIA"
  20753. }],
  20754. requireContextRole: ["group", "menu", "menubar"],
  20755. requiredContextRole: ["group", "menu", "menubar"],
  20756. requiredOwnedElements: [],
  20757. requiredProps: {},
  20758. superClass: [["roletype", "widget", "command"]]
  20759. }, _default = exports.default = menuitemRole;
  20760. }
  20761. });
  20762. // ../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js
  20763. var require_menuitemcheckboxRole = __commonJS({
  20764. "../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(exports) {
  20765. "use strict";
  20766. Object.defineProperty(exports, "__esModule", {
  20767. value: !0
  20768. });
  20769. exports.default = void 0;
  20770. var menuitemcheckboxRole = {
  20771. abstract: !1,
  20772. accessibleNameRequired: !0,
  20773. baseConcepts: [],
  20774. childrenPresentational: !0,
  20775. nameFrom: ["author", "contents"],
  20776. prohibitedProps: [],
  20777. props: {},
  20778. relatedConcepts: [{
  20779. concept: {
  20780. name: "menuitem"
  20781. },
  20782. module: "ARIA"
  20783. }],
  20784. requireContextRole: ["group", "menu", "menubar"],
  20785. requiredContextRole: ["group", "menu", "menubar"],
  20786. requiredOwnedElements: [],
  20787. requiredProps: {
  20788. "aria-checked": null
  20789. },
  20790. superClass: [["roletype", "widget", "input", "checkbox"], ["roletype", "widget", "command", "menuitem"]]
  20791. }, _default = exports.default = menuitemcheckboxRole;
  20792. }
  20793. });
  20794. // ../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js
  20795. var require_menuitemradioRole = __commonJS({
  20796. "../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(exports) {
  20797. "use strict";
  20798. Object.defineProperty(exports, "__esModule", {
  20799. value: !0
  20800. });
  20801. exports.default = void 0;
  20802. var menuitemradioRole = {
  20803. abstract: !1,
  20804. accessibleNameRequired: !0,
  20805. baseConcepts: [],
  20806. childrenPresentational: !0,
  20807. nameFrom: ["author", "contents"],
  20808. prohibitedProps: [],
  20809. props: {},
  20810. relatedConcepts: [{
  20811. concept: {
  20812. name: "menuitem"
  20813. },
  20814. module: "ARIA"
  20815. }],
  20816. requireContextRole: ["group", "menu", "menubar"],
  20817. requiredContextRole: ["group", "menu", "menubar"],
  20818. requiredOwnedElements: [],
  20819. requiredProps: {
  20820. "aria-checked": null
  20821. },
  20822. superClass: [["roletype", "widget", "input", "checkbox", "menuitemcheckbox"], ["roletype", "widget", "command", "menuitem", "menuitemcheckbox"], ["roletype", "widget", "input", "radio"]]
  20823. }, _default = exports.default = menuitemradioRole;
  20824. }
  20825. });
  20826. // ../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js
  20827. var require_meterRole = __commonJS({
  20828. "../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(exports) {
  20829. "use strict";
  20830. Object.defineProperty(exports, "__esModule", {
  20831. value: !0
  20832. });
  20833. exports.default = void 0;
  20834. var meterRole = {
  20835. abstract: !1,
  20836. accessibleNameRequired: !0,
  20837. baseConcepts: [],
  20838. childrenPresentational: !0,
  20839. nameFrom: ["author"],
  20840. prohibitedProps: [],
  20841. props: {
  20842. "aria-valuetext": null,
  20843. "aria-valuemax": "100",
  20844. "aria-valuemin": "0"
  20845. },
  20846. relatedConcepts: [{
  20847. concept: {
  20848. name: "meter"
  20849. },
  20850. module: "HTML"
  20851. }],
  20852. requireContextRole: [],
  20853. requiredContextRole: [],
  20854. requiredOwnedElements: [],
  20855. requiredProps: {
  20856. "aria-valuenow": null
  20857. },
  20858. superClass: [["roletype", "structure", "range"]]
  20859. }, _default = exports.default = meterRole;
  20860. }
  20861. });
  20862. // ../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js
  20863. var require_navigationRole = __commonJS({
  20864. "../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(exports) {
  20865. "use strict";
  20866. Object.defineProperty(exports, "__esModule", {
  20867. value: !0
  20868. });
  20869. exports.default = void 0;
  20870. var navigationRole = {
  20871. abstract: !1,
  20872. accessibleNameRequired: !1,
  20873. baseConcepts: [],
  20874. childrenPresentational: !1,
  20875. nameFrom: ["author"],
  20876. prohibitedProps: [],
  20877. props: {},
  20878. relatedConcepts: [{
  20879. concept: {
  20880. name: "nav"
  20881. },
  20882. module: "HTML"
  20883. }],
  20884. requireContextRole: [],
  20885. requiredContextRole: [],
  20886. requiredOwnedElements: [],
  20887. requiredProps: {},
  20888. superClass: [["roletype", "structure", "section", "landmark"]]
  20889. }, _default = exports.default = navigationRole;
  20890. }
  20891. });
  20892. // ../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js
  20893. var require_noneRole = __commonJS({
  20894. "../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(exports) {
  20895. "use strict";
  20896. Object.defineProperty(exports, "__esModule", {
  20897. value: !0
  20898. });
  20899. exports.default = void 0;
  20900. var noneRole = {
  20901. abstract: !1,
  20902. accessibleNameRequired: !1,
  20903. baseConcepts: [],
  20904. childrenPresentational: !1,
  20905. nameFrom: [],
  20906. prohibitedProps: [],
  20907. props: {},
  20908. relatedConcepts: [],
  20909. requireContextRole: [],
  20910. requiredContextRole: [],
  20911. requiredOwnedElements: [],
  20912. requiredProps: {},
  20913. superClass: []
  20914. }, _default = exports.default = noneRole;
  20915. }
  20916. });
  20917. // ../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js
  20918. var require_noteRole = __commonJS({
  20919. "../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(exports) {
  20920. "use strict";
  20921. Object.defineProperty(exports, "__esModule", {
  20922. value: !0
  20923. });
  20924. exports.default = void 0;
  20925. var noteRole = {
  20926. abstract: !1,
  20927. accessibleNameRequired: !1,
  20928. baseConcepts: [],
  20929. childrenPresentational: !1,
  20930. nameFrom: ["author"],
  20931. prohibitedProps: [],
  20932. props: {},
  20933. relatedConcepts: [],
  20934. requireContextRole: [],
  20935. requiredContextRole: [],
  20936. requiredOwnedElements: [],
  20937. requiredProps: {},
  20938. superClass: [["roletype", "structure", "section"]]
  20939. }, _default = exports.default = noteRole;
  20940. }
  20941. });
  20942. // ../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js
  20943. var require_optionRole = __commonJS({
  20944. "../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(exports) {
  20945. "use strict";
  20946. Object.defineProperty(exports, "__esModule", {
  20947. value: !0
  20948. });
  20949. exports.default = void 0;
  20950. var optionRole = {
  20951. abstract: !1,
  20952. accessibleNameRequired: !0,
  20953. baseConcepts: [],
  20954. childrenPresentational: !0,
  20955. nameFrom: ["author", "contents"],
  20956. prohibitedProps: [],
  20957. props: {
  20958. "aria-checked": null,
  20959. "aria-posinset": null,
  20960. "aria-setsize": null,
  20961. "aria-selected": "false"
  20962. },
  20963. relatedConcepts: [{
  20964. concept: {
  20965. name: "item"
  20966. },
  20967. module: "XForms"
  20968. }, {
  20969. concept: {
  20970. name: "listitem"
  20971. },
  20972. module: "ARIA"
  20973. }, {
  20974. concept: {
  20975. name: "option"
  20976. },
  20977. module: "HTML"
  20978. }],
  20979. requireContextRole: [],
  20980. requiredContextRole: [],
  20981. requiredOwnedElements: [],
  20982. requiredProps: {
  20983. "aria-selected": "false"
  20984. },
  20985. superClass: [["roletype", "widget", "input"]]
  20986. }, _default = exports.default = optionRole;
  20987. }
  20988. });
  20989. // ../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js
  20990. var require_paragraphRole = __commonJS({
  20991. "../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(exports) {
  20992. "use strict";
  20993. Object.defineProperty(exports, "__esModule", {
  20994. value: !0
  20995. });
  20996. exports.default = void 0;
  20997. var paragraphRole = {
  20998. abstract: !1,
  20999. accessibleNameRequired: !1,
  21000. baseConcepts: [],
  21001. childrenPresentational: !1,
  21002. nameFrom: ["prohibited"],
  21003. prohibitedProps: ["aria-label", "aria-labelledby"],
  21004. props: {},
  21005. relatedConcepts: [{
  21006. concept: {
  21007. name: "p"
  21008. },
  21009. module: "HTML"
  21010. }],
  21011. requireContextRole: [],
  21012. requiredContextRole: [],
  21013. requiredOwnedElements: [],
  21014. requiredProps: {},
  21015. superClass: [["roletype", "structure", "section"]]
  21016. }, _default = exports.default = paragraphRole;
  21017. }
  21018. });
  21019. // ../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js
  21020. var require_presentationRole = __commonJS({
  21021. "../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(exports) {
  21022. "use strict";
  21023. Object.defineProperty(exports, "__esModule", {
  21024. value: !0
  21025. });
  21026. exports.default = void 0;
  21027. var presentationRole = {
  21028. abstract: !1,
  21029. accessibleNameRequired: !1,
  21030. baseConcepts: [],
  21031. childrenPresentational: !1,
  21032. nameFrom: ["prohibited"],
  21033. prohibitedProps: ["aria-label", "aria-labelledby"],
  21034. props: {},
  21035. relatedConcepts: [{
  21036. concept: {
  21037. attributes: [{
  21038. name: "alt",
  21039. value: ""
  21040. }],
  21041. name: "img"
  21042. },
  21043. module: "HTML"
  21044. }],
  21045. requireContextRole: [],
  21046. requiredContextRole: [],
  21047. requiredOwnedElements: [],
  21048. requiredProps: {},
  21049. superClass: [["roletype", "structure"]]
  21050. }, _default = exports.default = presentationRole;
  21051. }
  21052. });
  21053. // ../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js
  21054. var require_progressbarRole = __commonJS({
  21055. "../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(exports) {
  21056. "use strict";
  21057. Object.defineProperty(exports, "__esModule", {
  21058. value: !0
  21059. });
  21060. exports.default = void 0;
  21061. var progressbarRole = {
  21062. abstract: !1,
  21063. accessibleNameRequired: !0,
  21064. baseConcepts: [],
  21065. childrenPresentational: !0,
  21066. nameFrom: ["author"],
  21067. prohibitedProps: [],
  21068. props: {
  21069. "aria-valuetext": null
  21070. },
  21071. relatedConcepts: [{
  21072. concept: {
  21073. name: "progress"
  21074. },
  21075. module: "HTML"
  21076. }, {
  21077. concept: {
  21078. name: "status"
  21079. },
  21080. module: "ARIA"
  21081. }],
  21082. requireContextRole: [],
  21083. requiredContextRole: [],
  21084. requiredOwnedElements: [],
  21085. requiredProps: {},
  21086. superClass: [["roletype", "structure", "range"], ["roletype", "widget"]]
  21087. }, _default = exports.default = progressbarRole;
  21088. }
  21089. });
  21090. // ../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js
  21091. var require_radioRole = __commonJS({
  21092. "../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(exports) {
  21093. "use strict";
  21094. Object.defineProperty(exports, "__esModule", {
  21095. value: !0
  21096. });
  21097. exports.default = void 0;
  21098. var radioRole = {
  21099. abstract: !1,
  21100. accessibleNameRequired: !0,
  21101. baseConcepts: [],
  21102. childrenPresentational: !0,
  21103. nameFrom: ["author", "contents"],
  21104. prohibitedProps: [],
  21105. props: {
  21106. "aria-checked": null,
  21107. "aria-posinset": null,
  21108. "aria-setsize": null
  21109. },
  21110. relatedConcepts: [{
  21111. concept: {
  21112. attributes: [{
  21113. name: "type",
  21114. value: "radio"
  21115. }],
  21116. name: "input"
  21117. },
  21118. module: "HTML"
  21119. }],
  21120. requireContextRole: [],
  21121. requiredContextRole: [],
  21122. requiredOwnedElements: [],
  21123. requiredProps: {
  21124. "aria-checked": null
  21125. },
  21126. superClass: [["roletype", "widget", "input"]]
  21127. }, _default = exports.default = radioRole;
  21128. }
  21129. });
  21130. // ../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js
  21131. var require_radiogroupRole = __commonJS({
  21132. "../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(exports) {
  21133. "use strict";
  21134. Object.defineProperty(exports, "__esModule", {
  21135. value: !0
  21136. });
  21137. exports.default = void 0;
  21138. var radiogroupRole = {
  21139. abstract: !1,
  21140. accessibleNameRequired: !0,
  21141. baseConcepts: [],
  21142. childrenPresentational: !1,
  21143. nameFrom: ["author"],
  21144. prohibitedProps: [],
  21145. props: {
  21146. "aria-errormessage": null,
  21147. "aria-invalid": null,
  21148. "aria-readonly": null,
  21149. "aria-required": null
  21150. },
  21151. relatedConcepts: [{
  21152. concept: {
  21153. name: "list"
  21154. },
  21155. module: "ARIA"
  21156. }],
  21157. requireContextRole: [],
  21158. requiredContextRole: [],
  21159. requiredOwnedElements: [["radio"]],
  21160. requiredProps: {},
  21161. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  21162. }, _default = exports.default = radiogroupRole;
  21163. }
  21164. });
  21165. // ../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js
  21166. var require_regionRole = __commonJS({
  21167. "../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(exports) {
  21168. "use strict";
  21169. Object.defineProperty(exports, "__esModule", {
  21170. value: !0
  21171. });
  21172. exports.default = void 0;
  21173. var regionRole = {
  21174. abstract: !1,
  21175. accessibleNameRequired: !0,
  21176. baseConcepts: [],
  21177. childrenPresentational: !1,
  21178. nameFrom: ["author"],
  21179. prohibitedProps: [],
  21180. props: {},
  21181. relatedConcepts: [{
  21182. concept: {
  21183. attributes: [{
  21184. constraints: ["set"],
  21185. name: "aria-label"
  21186. }],
  21187. name: "section"
  21188. },
  21189. module: "HTML"
  21190. }, {
  21191. concept: {
  21192. attributes: [{
  21193. constraints: ["set"],
  21194. name: "aria-labelledby"
  21195. }],
  21196. name: "section"
  21197. },
  21198. module: "HTML"
  21199. }, {
  21200. concept: {
  21201. name: "Device Independence Glossart perceivable unit"
  21202. }
  21203. }],
  21204. requireContextRole: [],
  21205. requiredContextRole: [],
  21206. requiredOwnedElements: [],
  21207. requiredProps: {},
  21208. superClass: [["roletype", "structure", "section", "landmark"]]
  21209. }, _default = exports.default = regionRole;
  21210. }
  21211. });
  21212. // ../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js
  21213. var require_rowRole = __commonJS({
  21214. "../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(exports) {
  21215. "use strict";
  21216. Object.defineProperty(exports, "__esModule", {
  21217. value: !0
  21218. });
  21219. exports.default = void 0;
  21220. var rowRole = {
  21221. abstract: !1,
  21222. accessibleNameRequired: !1,
  21223. baseConcepts: [],
  21224. childrenPresentational: !1,
  21225. nameFrom: ["author", "contents"],
  21226. prohibitedProps: [],
  21227. props: {
  21228. "aria-colindex": null,
  21229. "aria-expanded": null,
  21230. "aria-level": null,
  21231. "aria-posinset": null,
  21232. "aria-rowindex": null,
  21233. "aria-selected": null,
  21234. "aria-setsize": null
  21235. },
  21236. relatedConcepts: [{
  21237. concept: {
  21238. name: "tr"
  21239. },
  21240. module: "HTML"
  21241. }],
  21242. requireContextRole: ["grid", "rowgroup", "table", "treegrid"],
  21243. requiredContextRole: ["grid", "rowgroup", "table", "treegrid"],
  21244. requiredOwnedElements: [["cell"], ["columnheader"], ["gridcell"], ["rowheader"]],
  21245. requiredProps: {},
  21246. superClass: [["roletype", "structure", "section", "group"], ["roletype", "widget"]]
  21247. }, _default = exports.default = rowRole;
  21248. }
  21249. });
  21250. // ../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js
  21251. var require_rowgroupRole = __commonJS({
  21252. "../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(exports) {
  21253. "use strict";
  21254. Object.defineProperty(exports, "__esModule", {
  21255. value: !0
  21256. });
  21257. exports.default = void 0;
  21258. var rowgroupRole = {
  21259. abstract: !1,
  21260. accessibleNameRequired: !1,
  21261. baseConcepts: [],
  21262. childrenPresentational: !1,
  21263. nameFrom: ["author", "contents"],
  21264. prohibitedProps: [],
  21265. props: {},
  21266. relatedConcepts: [{
  21267. concept: {
  21268. name: "tbody"
  21269. },
  21270. module: "HTML"
  21271. }, {
  21272. concept: {
  21273. name: "tfoot"
  21274. },
  21275. module: "HTML"
  21276. }, {
  21277. concept: {
  21278. name: "thead"
  21279. },
  21280. module: "HTML"
  21281. }],
  21282. requireContextRole: ["grid", "table", "treegrid"],
  21283. requiredContextRole: ["grid", "table", "treegrid"],
  21284. requiredOwnedElements: [["row"]],
  21285. requiredProps: {},
  21286. superClass: [["roletype", "structure"]]
  21287. }, _default = exports.default = rowgroupRole;
  21288. }
  21289. });
  21290. // ../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js
  21291. var require_rowheaderRole = __commonJS({
  21292. "../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(exports) {
  21293. "use strict";
  21294. Object.defineProperty(exports, "__esModule", {
  21295. value: !0
  21296. });
  21297. exports.default = void 0;
  21298. var rowheaderRole = {
  21299. abstract: !1,
  21300. accessibleNameRequired: !0,
  21301. baseConcepts: [],
  21302. childrenPresentational: !1,
  21303. nameFrom: ["author", "contents"],
  21304. prohibitedProps: [],
  21305. props: {
  21306. "aria-sort": null
  21307. },
  21308. relatedConcepts: [{
  21309. concept: {
  21310. attributes: [{
  21311. name: "scope",
  21312. value: "row"
  21313. }],
  21314. name: "th"
  21315. },
  21316. module: "HTML"
  21317. }, {
  21318. concept: {
  21319. attributes: [{
  21320. name: "scope",
  21321. value: "rowgroup"
  21322. }],
  21323. name: "th"
  21324. },
  21325. module: "HTML"
  21326. }],
  21327. requireContextRole: ["row", "rowgroup"],
  21328. requiredContextRole: ["row", "rowgroup"],
  21329. requiredOwnedElements: [],
  21330. requiredProps: {},
  21331. superClass: [["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"]]
  21332. }, _default = exports.default = rowheaderRole;
  21333. }
  21334. });
  21335. // ../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js
  21336. var require_scrollbarRole = __commonJS({
  21337. "../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(exports) {
  21338. "use strict";
  21339. Object.defineProperty(exports, "__esModule", {
  21340. value: !0
  21341. });
  21342. exports.default = void 0;
  21343. var scrollbarRole = {
  21344. abstract: !1,
  21345. accessibleNameRequired: !1,
  21346. baseConcepts: [],
  21347. childrenPresentational: !0,
  21348. nameFrom: ["author"],
  21349. prohibitedProps: [],
  21350. props: {
  21351. "aria-disabled": null,
  21352. "aria-valuetext": null,
  21353. "aria-orientation": "vertical",
  21354. "aria-valuemax": "100",
  21355. "aria-valuemin": "0"
  21356. },
  21357. relatedConcepts: [],
  21358. requireContextRole: [],
  21359. requiredContextRole: [],
  21360. requiredOwnedElements: [],
  21361. requiredProps: {
  21362. "aria-controls": null,
  21363. "aria-valuenow": null
  21364. },
  21365. superClass: [["roletype", "structure", "range"], ["roletype", "widget"]]
  21366. }, _default = exports.default = scrollbarRole;
  21367. }
  21368. });
  21369. // ../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js
  21370. var require_searchRole = __commonJS({
  21371. "../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(exports) {
  21372. "use strict";
  21373. Object.defineProperty(exports, "__esModule", {
  21374. value: !0
  21375. });
  21376. exports.default = void 0;
  21377. var searchRole = {
  21378. abstract: !1,
  21379. accessibleNameRequired: !1,
  21380. baseConcepts: [],
  21381. childrenPresentational: !1,
  21382. nameFrom: ["author"],
  21383. prohibitedProps: [],
  21384. props: {},
  21385. relatedConcepts: [],
  21386. requireContextRole: [],
  21387. requiredContextRole: [],
  21388. requiredOwnedElements: [],
  21389. requiredProps: {},
  21390. superClass: [["roletype", "structure", "section", "landmark"]]
  21391. }, _default = exports.default = searchRole;
  21392. }
  21393. });
  21394. // ../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js
  21395. var require_searchboxRole = __commonJS({
  21396. "../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(exports) {
  21397. "use strict";
  21398. Object.defineProperty(exports, "__esModule", {
  21399. value: !0
  21400. });
  21401. exports.default = void 0;
  21402. var searchboxRole = {
  21403. abstract: !1,
  21404. accessibleNameRequired: !0,
  21405. baseConcepts: [],
  21406. childrenPresentational: !1,
  21407. nameFrom: ["author"],
  21408. prohibitedProps: [],
  21409. props: {},
  21410. relatedConcepts: [{
  21411. concept: {
  21412. attributes: [{
  21413. constraints: ["undefined"],
  21414. name: "list"
  21415. }, {
  21416. name: "type",
  21417. value: "search"
  21418. }],
  21419. constraints: ["the list attribute is not set"],
  21420. name: "input"
  21421. },
  21422. module: "HTML"
  21423. }],
  21424. requireContextRole: [],
  21425. requiredContextRole: [],
  21426. requiredOwnedElements: [],
  21427. requiredProps: {},
  21428. superClass: [["roletype", "widget", "input", "textbox"]]
  21429. }, _default = exports.default = searchboxRole;
  21430. }
  21431. });
  21432. // ../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js
  21433. var require_separatorRole = __commonJS({
  21434. "../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(exports) {
  21435. "use strict";
  21436. Object.defineProperty(exports, "__esModule", {
  21437. value: !0
  21438. });
  21439. exports.default = void 0;
  21440. var separatorRole = {
  21441. abstract: !1,
  21442. accessibleNameRequired: !1,
  21443. baseConcepts: [],
  21444. childrenPresentational: !0,
  21445. nameFrom: ["author"],
  21446. prohibitedProps: [],
  21447. props: {
  21448. "aria-disabled": null,
  21449. "aria-orientation": "horizontal",
  21450. "aria-valuemax": "100",
  21451. "aria-valuemin": "0",
  21452. "aria-valuenow": null,
  21453. "aria-valuetext": null
  21454. },
  21455. relatedConcepts: [{
  21456. concept: {
  21457. name: "hr"
  21458. },
  21459. module: "HTML"
  21460. }],
  21461. requireContextRole: [],
  21462. requiredContextRole: [],
  21463. requiredOwnedElements: [],
  21464. requiredProps: {},
  21465. superClass: [["roletype", "structure"]]
  21466. }, _default = exports.default = separatorRole;
  21467. }
  21468. });
  21469. // ../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js
  21470. var require_sliderRole = __commonJS({
  21471. "../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(exports) {
  21472. "use strict";
  21473. Object.defineProperty(exports, "__esModule", {
  21474. value: !0
  21475. });
  21476. exports.default = void 0;
  21477. var sliderRole = {
  21478. abstract: !1,
  21479. accessibleNameRequired: !0,
  21480. baseConcepts: [],
  21481. childrenPresentational: !0,
  21482. nameFrom: ["author"],
  21483. prohibitedProps: [],
  21484. props: {
  21485. "aria-errormessage": null,
  21486. "aria-haspopup": null,
  21487. "aria-invalid": null,
  21488. "aria-readonly": null,
  21489. "aria-valuetext": null,
  21490. "aria-orientation": "horizontal",
  21491. "aria-valuemax": "100",
  21492. "aria-valuemin": "0"
  21493. },
  21494. relatedConcepts: [{
  21495. concept: {
  21496. attributes: [{
  21497. name: "type",
  21498. value: "range"
  21499. }],
  21500. name: "input"
  21501. },
  21502. module: "HTML"
  21503. }],
  21504. requireContextRole: [],
  21505. requiredContextRole: [],
  21506. requiredOwnedElements: [],
  21507. requiredProps: {
  21508. "aria-valuenow": null
  21509. },
  21510. superClass: [["roletype", "widget", "input"], ["roletype", "structure", "range"]]
  21511. }, _default = exports.default = sliderRole;
  21512. }
  21513. });
  21514. // ../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js
  21515. var require_spinbuttonRole = __commonJS({
  21516. "../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(exports) {
  21517. "use strict";
  21518. Object.defineProperty(exports, "__esModule", {
  21519. value: !0
  21520. });
  21521. exports.default = void 0;
  21522. var spinbuttonRole = {
  21523. abstract: !1,
  21524. accessibleNameRequired: !0,
  21525. baseConcepts: [],
  21526. childrenPresentational: !1,
  21527. nameFrom: ["author"],
  21528. prohibitedProps: [],
  21529. props: {
  21530. "aria-errormessage": null,
  21531. "aria-invalid": null,
  21532. "aria-readonly": null,
  21533. "aria-required": null,
  21534. "aria-valuetext": null,
  21535. "aria-valuenow": "0"
  21536. },
  21537. relatedConcepts: [{
  21538. concept: {
  21539. attributes: [{
  21540. name: "type",
  21541. value: "number"
  21542. }],
  21543. name: "input"
  21544. },
  21545. module: "HTML"
  21546. }],
  21547. requireContextRole: [],
  21548. requiredContextRole: [],
  21549. requiredOwnedElements: [],
  21550. requiredProps: {},
  21551. superClass: [["roletype", "widget", "composite"], ["roletype", "widget", "input"], ["roletype", "structure", "range"]]
  21552. }, _default = exports.default = spinbuttonRole;
  21553. }
  21554. });
  21555. // ../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js
  21556. var require_statusRole = __commonJS({
  21557. "../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(exports) {
  21558. "use strict";
  21559. Object.defineProperty(exports, "__esModule", {
  21560. value: !0
  21561. });
  21562. exports.default = void 0;
  21563. var statusRole = {
  21564. abstract: !1,
  21565. accessibleNameRequired: !1,
  21566. baseConcepts: [],
  21567. childrenPresentational: !1,
  21568. nameFrom: ["author"],
  21569. prohibitedProps: [],
  21570. props: {
  21571. "aria-atomic": "true",
  21572. "aria-live": "polite"
  21573. },
  21574. relatedConcepts: [{
  21575. concept: {
  21576. name: "output"
  21577. },
  21578. module: "HTML"
  21579. }],
  21580. requireContextRole: [],
  21581. requiredContextRole: [],
  21582. requiredOwnedElements: [],
  21583. requiredProps: {},
  21584. superClass: [["roletype", "structure", "section"]]
  21585. }, _default = exports.default = statusRole;
  21586. }
  21587. });
  21588. // ../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js
  21589. var require_strongRole = __commonJS({
  21590. "../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(exports) {
  21591. "use strict";
  21592. Object.defineProperty(exports, "__esModule", {
  21593. value: !0
  21594. });
  21595. exports.default = void 0;
  21596. var strongRole = {
  21597. abstract: !1,
  21598. accessibleNameRequired: !1,
  21599. baseConcepts: [],
  21600. childrenPresentational: !1,
  21601. nameFrom: ["prohibited"],
  21602. prohibitedProps: ["aria-label", "aria-labelledby"],
  21603. props: {},
  21604. relatedConcepts: [{
  21605. concept: {
  21606. name: "strong"
  21607. },
  21608. module: "HTML"
  21609. }],
  21610. requireContextRole: [],
  21611. requiredContextRole: [],
  21612. requiredOwnedElements: [],
  21613. requiredProps: {},
  21614. superClass: [["roletype", "structure", "section"]]
  21615. }, _default = exports.default = strongRole;
  21616. }
  21617. });
  21618. // ../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js
  21619. var require_subscriptRole = __commonJS({
  21620. "../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(exports) {
  21621. "use strict";
  21622. Object.defineProperty(exports, "__esModule", {
  21623. value: !0
  21624. });
  21625. exports.default = void 0;
  21626. var subscriptRole = {
  21627. abstract: !1,
  21628. accessibleNameRequired: !1,
  21629. baseConcepts: [],
  21630. childrenPresentational: !1,
  21631. nameFrom: ["prohibited"],
  21632. prohibitedProps: ["aria-label", "aria-labelledby"],
  21633. props: {},
  21634. relatedConcepts: [{
  21635. concept: {
  21636. name: "sub"
  21637. },
  21638. module: "HTML"
  21639. }],
  21640. requireContextRole: [],
  21641. requiredContextRole: [],
  21642. requiredOwnedElements: [],
  21643. requiredProps: {},
  21644. superClass: [["roletype", "structure", "section"]]
  21645. }, _default = exports.default = subscriptRole;
  21646. }
  21647. });
  21648. // ../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js
  21649. var require_superscriptRole = __commonJS({
  21650. "../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(exports) {
  21651. "use strict";
  21652. Object.defineProperty(exports, "__esModule", {
  21653. value: !0
  21654. });
  21655. exports.default = void 0;
  21656. var superscriptRole = {
  21657. abstract: !1,
  21658. accessibleNameRequired: !1,
  21659. baseConcepts: [],
  21660. childrenPresentational: !1,
  21661. nameFrom: ["prohibited"],
  21662. prohibitedProps: ["aria-label", "aria-labelledby"],
  21663. props: {},
  21664. relatedConcepts: [{
  21665. concept: {
  21666. name: "sup"
  21667. },
  21668. module: "HTML"
  21669. }],
  21670. requireContextRole: [],
  21671. requiredContextRole: [],
  21672. requiredOwnedElements: [],
  21673. requiredProps: {},
  21674. superClass: [["roletype", "structure", "section"]]
  21675. }, _default = exports.default = superscriptRole;
  21676. }
  21677. });
  21678. // ../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js
  21679. var require_switchRole = __commonJS({
  21680. "../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(exports) {
  21681. "use strict";
  21682. Object.defineProperty(exports, "__esModule", {
  21683. value: !0
  21684. });
  21685. exports.default = void 0;
  21686. var switchRole = {
  21687. abstract: !1,
  21688. accessibleNameRequired: !0,
  21689. baseConcepts: [],
  21690. childrenPresentational: !0,
  21691. nameFrom: ["author", "contents"],
  21692. prohibitedProps: [],
  21693. props: {},
  21694. relatedConcepts: [{
  21695. concept: {
  21696. name: "button"
  21697. },
  21698. module: "ARIA"
  21699. }],
  21700. requireContextRole: [],
  21701. requiredContextRole: [],
  21702. requiredOwnedElements: [],
  21703. requiredProps: {
  21704. "aria-checked": null
  21705. },
  21706. superClass: [["roletype", "widget", "input", "checkbox"]]
  21707. }, _default = exports.default = switchRole;
  21708. }
  21709. });
  21710. // ../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js
  21711. var require_tabRole = __commonJS({
  21712. "../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(exports) {
  21713. "use strict";
  21714. Object.defineProperty(exports, "__esModule", {
  21715. value: !0
  21716. });
  21717. exports.default = void 0;
  21718. var tabRole = {
  21719. abstract: !1,
  21720. accessibleNameRequired: !1,
  21721. baseConcepts: [],
  21722. childrenPresentational: !0,
  21723. nameFrom: ["author", "contents"],
  21724. prohibitedProps: [],
  21725. props: {
  21726. "aria-disabled": null,
  21727. "aria-expanded": null,
  21728. "aria-haspopup": null,
  21729. "aria-posinset": null,
  21730. "aria-setsize": null,
  21731. "aria-selected": "false"
  21732. },
  21733. relatedConcepts: [],
  21734. requireContextRole: ["tablist"],
  21735. requiredContextRole: ["tablist"],
  21736. requiredOwnedElements: [],
  21737. requiredProps: {},
  21738. superClass: [["roletype", "structure", "sectionhead"], ["roletype", "widget"]]
  21739. }, _default = exports.default = tabRole;
  21740. }
  21741. });
  21742. // ../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js
  21743. var require_tableRole = __commonJS({
  21744. "../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(exports) {
  21745. "use strict";
  21746. Object.defineProperty(exports, "__esModule", {
  21747. value: !0
  21748. });
  21749. exports.default = void 0;
  21750. var tableRole = {
  21751. abstract: !1,
  21752. accessibleNameRequired: !0,
  21753. baseConcepts: [],
  21754. childrenPresentational: !1,
  21755. nameFrom: ["author"],
  21756. prohibitedProps: [],
  21757. props: {
  21758. "aria-colcount": null,
  21759. "aria-rowcount": null
  21760. },
  21761. relatedConcepts: [{
  21762. concept: {
  21763. name: "table"
  21764. },
  21765. module: "HTML"
  21766. }],
  21767. requireContextRole: [],
  21768. requiredContextRole: [],
  21769. requiredOwnedElements: [["row"], ["row", "rowgroup"]],
  21770. requiredProps: {},
  21771. superClass: [["roletype", "structure", "section"]]
  21772. }, _default = exports.default = tableRole;
  21773. }
  21774. });
  21775. // ../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js
  21776. var require_tablistRole = __commonJS({
  21777. "../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(exports) {
  21778. "use strict";
  21779. Object.defineProperty(exports, "__esModule", {
  21780. value: !0
  21781. });
  21782. exports.default = void 0;
  21783. var tablistRole = {
  21784. abstract: !1,
  21785. accessibleNameRequired: !1,
  21786. baseConcepts: [],
  21787. childrenPresentational: !1,
  21788. nameFrom: ["author"],
  21789. prohibitedProps: [],
  21790. props: {
  21791. "aria-level": null,
  21792. "aria-multiselectable": null,
  21793. "aria-orientation": "horizontal"
  21794. },
  21795. relatedConcepts: [{
  21796. module: "DAISY",
  21797. concept: {
  21798. name: "guide"
  21799. }
  21800. }],
  21801. requireContextRole: [],
  21802. requiredContextRole: [],
  21803. requiredOwnedElements: [["tab"]],
  21804. requiredProps: {},
  21805. superClass: [["roletype", "widget", "composite"]]
  21806. }, _default = exports.default = tablistRole;
  21807. }
  21808. });
  21809. // ../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js
  21810. var require_tabpanelRole = __commonJS({
  21811. "../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(exports) {
  21812. "use strict";
  21813. Object.defineProperty(exports, "__esModule", {
  21814. value: !0
  21815. });
  21816. exports.default = void 0;
  21817. var tabpanelRole = {
  21818. abstract: !1,
  21819. accessibleNameRequired: !0,
  21820. baseConcepts: [],
  21821. childrenPresentational: !1,
  21822. nameFrom: ["author"],
  21823. prohibitedProps: [],
  21824. props: {},
  21825. relatedConcepts: [],
  21826. requireContextRole: [],
  21827. requiredContextRole: [],
  21828. requiredOwnedElements: [],
  21829. requiredProps: {},
  21830. superClass: [["roletype", "structure", "section"]]
  21831. }, _default = exports.default = tabpanelRole;
  21832. }
  21833. });
  21834. // ../../node_modules/aria-query/lib/etc/roles/literal/termRole.js
  21835. var require_termRole = __commonJS({
  21836. "../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(exports) {
  21837. "use strict";
  21838. Object.defineProperty(exports, "__esModule", {
  21839. value: !0
  21840. });
  21841. exports.default = void 0;
  21842. var termRole = {
  21843. abstract: !1,
  21844. accessibleNameRequired: !1,
  21845. baseConcepts: [],
  21846. childrenPresentational: !1,
  21847. nameFrom: ["author"],
  21848. prohibitedProps: [],
  21849. props: {},
  21850. relatedConcepts: [{
  21851. concept: {
  21852. name: "dfn"
  21853. },
  21854. module: "HTML"
  21855. }, {
  21856. concept: {
  21857. name: "dt"
  21858. },
  21859. module: "HTML"
  21860. }],
  21861. requireContextRole: [],
  21862. requiredContextRole: [],
  21863. requiredOwnedElements: [],
  21864. requiredProps: {},
  21865. superClass: [["roletype", "structure", "section"]]
  21866. }, _default = exports.default = termRole;
  21867. }
  21868. });
  21869. // ../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js
  21870. var require_textboxRole = __commonJS({
  21871. "../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(exports) {
  21872. "use strict";
  21873. Object.defineProperty(exports, "__esModule", {
  21874. value: !0
  21875. });
  21876. exports.default = void 0;
  21877. var textboxRole = {
  21878. abstract: !1,
  21879. accessibleNameRequired: !0,
  21880. baseConcepts: [],
  21881. childrenPresentational: !1,
  21882. nameFrom: ["author"],
  21883. prohibitedProps: [],
  21884. props: {
  21885. "aria-activedescendant": null,
  21886. "aria-autocomplete": null,
  21887. "aria-errormessage": null,
  21888. "aria-haspopup": null,
  21889. "aria-invalid": null,
  21890. "aria-multiline": null,
  21891. "aria-placeholder": null,
  21892. "aria-readonly": null,
  21893. "aria-required": null
  21894. },
  21895. relatedConcepts: [{
  21896. concept: {
  21897. attributes: [{
  21898. constraints: ["undefined"],
  21899. name: "type"
  21900. }, {
  21901. constraints: ["undefined"],
  21902. name: "list"
  21903. }],
  21904. constraints: ["the list attribute is not set"],
  21905. name: "input"
  21906. },
  21907. module: "HTML"
  21908. }, {
  21909. concept: {
  21910. attributes: [{
  21911. constraints: ["undefined"],
  21912. name: "list"
  21913. }, {
  21914. name: "type",
  21915. value: "email"
  21916. }],
  21917. constraints: ["the list attribute is not set"],
  21918. name: "input"
  21919. },
  21920. module: "HTML"
  21921. }, {
  21922. concept: {
  21923. attributes: [{
  21924. constraints: ["undefined"],
  21925. name: "list"
  21926. }, {
  21927. name: "type",
  21928. value: "tel"
  21929. }],
  21930. constraints: ["the list attribute is not set"],
  21931. name: "input"
  21932. },
  21933. module: "HTML"
  21934. }, {
  21935. concept: {
  21936. attributes: [{
  21937. constraints: ["undefined"],
  21938. name: "list"
  21939. }, {
  21940. name: "type",
  21941. value: "text"
  21942. }],
  21943. constraints: ["the list attribute is not set"],
  21944. name: "input"
  21945. },
  21946. module: "HTML"
  21947. }, {
  21948. concept: {
  21949. attributes: [{
  21950. constraints: ["undefined"],
  21951. name: "list"
  21952. }, {
  21953. name: "type",
  21954. value: "url"
  21955. }],
  21956. constraints: ["the list attribute is not set"],
  21957. name: "input"
  21958. },
  21959. module: "HTML"
  21960. }, {
  21961. concept: {
  21962. name: "input"
  21963. },
  21964. module: "XForms"
  21965. }, {
  21966. concept: {
  21967. name: "textarea"
  21968. },
  21969. module: "HTML"
  21970. }],
  21971. requireContextRole: [],
  21972. requiredContextRole: [],
  21973. requiredOwnedElements: [],
  21974. requiredProps: {},
  21975. superClass: [["roletype", "widget", "input"]]
  21976. }, _default = exports.default = textboxRole;
  21977. }
  21978. });
  21979. // ../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js
  21980. var require_timeRole = __commonJS({
  21981. "../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(exports) {
  21982. "use strict";
  21983. Object.defineProperty(exports, "__esModule", {
  21984. value: !0
  21985. });
  21986. exports.default = void 0;
  21987. var timeRole = {
  21988. abstract: !1,
  21989. accessibleNameRequired: !1,
  21990. baseConcepts: [],
  21991. childrenPresentational: !1,
  21992. nameFrom: ["author"],
  21993. prohibitedProps: [],
  21994. props: {},
  21995. relatedConcepts: [{
  21996. concept: {
  21997. name: "time"
  21998. },
  21999. module: "HTML"
  22000. }],
  22001. requireContextRole: [],
  22002. requiredContextRole: [],
  22003. requiredOwnedElements: [],
  22004. requiredProps: {},
  22005. superClass: [["roletype", "structure", "section"]]
  22006. }, _default = exports.default = timeRole;
  22007. }
  22008. });
  22009. // ../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js
  22010. var require_timerRole = __commonJS({
  22011. "../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(exports) {
  22012. "use strict";
  22013. Object.defineProperty(exports, "__esModule", {
  22014. value: !0
  22015. });
  22016. exports.default = void 0;
  22017. var timerRole = {
  22018. abstract: !1,
  22019. accessibleNameRequired: !1,
  22020. baseConcepts: [],
  22021. childrenPresentational: !1,
  22022. nameFrom: ["author"],
  22023. prohibitedProps: [],
  22024. props: {},
  22025. relatedConcepts: [],
  22026. requireContextRole: [],
  22027. requiredContextRole: [],
  22028. requiredOwnedElements: [],
  22029. requiredProps: {},
  22030. superClass: [["roletype", "structure", "section", "status"]]
  22031. }, _default = exports.default = timerRole;
  22032. }
  22033. });
  22034. // ../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js
  22035. var require_toolbarRole = __commonJS({
  22036. "../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(exports) {
  22037. "use strict";
  22038. Object.defineProperty(exports, "__esModule", {
  22039. value: !0
  22040. });
  22041. exports.default = void 0;
  22042. var toolbarRole = {
  22043. abstract: !1,
  22044. accessibleNameRequired: !1,
  22045. baseConcepts: [],
  22046. childrenPresentational: !1,
  22047. nameFrom: ["author"],
  22048. prohibitedProps: [],
  22049. props: {
  22050. "aria-orientation": "horizontal"
  22051. },
  22052. relatedConcepts: [{
  22053. concept: {
  22054. name: "menubar"
  22055. },
  22056. module: "ARIA"
  22057. }],
  22058. requireContextRole: [],
  22059. requiredContextRole: [],
  22060. requiredOwnedElements: [],
  22061. requiredProps: {},
  22062. superClass: [["roletype", "structure", "section", "group"]]
  22063. }, _default = exports.default = toolbarRole;
  22064. }
  22065. });
  22066. // ../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js
  22067. var require_tooltipRole = __commonJS({
  22068. "../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(exports) {
  22069. "use strict";
  22070. Object.defineProperty(exports, "__esModule", {
  22071. value: !0
  22072. });
  22073. exports.default = void 0;
  22074. var tooltipRole = {
  22075. abstract: !1,
  22076. accessibleNameRequired: !0,
  22077. baseConcepts: [],
  22078. childrenPresentational: !1,
  22079. nameFrom: ["author", "contents"],
  22080. prohibitedProps: [],
  22081. props: {},
  22082. relatedConcepts: [],
  22083. requireContextRole: [],
  22084. requiredContextRole: [],
  22085. requiredOwnedElements: [],
  22086. requiredProps: {},
  22087. superClass: [["roletype", "structure", "section"]]
  22088. }, _default = exports.default = tooltipRole;
  22089. }
  22090. });
  22091. // ../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js
  22092. var require_treeRole = __commonJS({
  22093. "../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(exports) {
  22094. "use strict";
  22095. Object.defineProperty(exports, "__esModule", {
  22096. value: !0
  22097. });
  22098. exports.default = void 0;
  22099. var treeRole = {
  22100. abstract: !1,
  22101. accessibleNameRequired: !0,
  22102. baseConcepts: [],
  22103. childrenPresentational: !1,
  22104. nameFrom: ["author"],
  22105. prohibitedProps: [],
  22106. props: {
  22107. "aria-errormessage": null,
  22108. "aria-invalid": null,
  22109. "aria-multiselectable": null,
  22110. "aria-required": null,
  22111. "aria-orientation": "vertical"
  22112. },
  22113. relatedConcepts: [],
  22114. requireContextRole: [],
  22115. requiredContextRole: [],
  22116. requiredOwnedElements: [["treeitem", "group"], ["treeitem"]],
  22117. requiredProps: {},
  22118. superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
  22119. }, _default = exports.default = treeRole;
  22120. }
  22121. });
  22122. // ../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js
  22123. var require_treegridRole = __commonJS({
  22124. "../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(exports) {
  22125. "use strict";
  22126. Object.defineProperty(exports, "__esModule", {
  22127. value: !0
  22128. });
  22129. exports.default = void 0;
  22130. var treegridRole = {
  22131. abstract: !1,
  22132. accessibleNameRequired: !0,
  22133. baseConcepts: [],
  22134. childrenPresentational: !1,
  22135. nameFrom: ["author"],
  22136. prohibitedProps: [],
  22137. props: {},
  22138. relatedConcepts: [],
  22139. requireContextRole: [],
  22140. requiredContextRole: [],
  22141. requiredOwnedElements: [["row"], ["row", "rowgroup"]],
  22142. requiredProps: {},
  22143. superClass: [["roletype", "widget", "composite", "grid"], ["roletype", "structure", "section", "table", "grid"], ["roletype", "widget", "composite", "select", "tree"], ["roletype", "structure", "section", "group", "select", "tree"]]
  22144. }, _default = exports.default = treegridRole;
  22145. }
  22146. });
  22147. // ../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js
  22148. var require_treeitemRole = __commonJS({
  22149. "../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(exports) {
  22150. "use strict";
  22151. Object.defineProperty(exports, "__esModule", {
  22152. value: !0
  22153. });
  22154. exports.default = void 0;
  22155. var treeitemRole = {
  22156. abstract: !1,
  22157. accessibleNameRequired: !0,
  22158. baseConcepts: [],
  22159. childrenPresentational: !1,
  22160. nameFrom: ["author", "contents"],
  22161. prohibitedProps: [],
  22162. props: {
  22163. "aria-expanded": null,
  22164. "aria-haspopup": null
  22165. },
  22166. relatedConcepts: [],
  22167. requireContextRole: ["group", "tree"],
  22168. requiredContextRole: ["group", "tree"],
  22169. requiredOwnedElements: [],
  22170. requiredProps: {
  22171. "aria-selected": null
  22172. },
  22173. superClass: [["roletype", "structure", "section", "listitem"], ["roletype", "widget", "input", "option"]]
  22174. }, _default = exports.default = treeitemRole;
  22175. }
  22176. });
  22177. // ../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js
  22178. var require_ariaLiteralRoles = __commonJS({
  22179. "../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(exports) {
  22180. "use strict";
  22181. Object.defineProperty(exports, "__esModule", {
  22182. value: !0
  22183. });
  22184. exports.default = void 0;
  22185. var _alertRole = _interopRequireDefault(require_alertRole()), _alertdialogRole = _interopRequireDefault(require_alertdialogRole()), _applicationRole = _interopRequireDefault(require_applicationRole()), _articleRole = _interopRequireDefault(require_articleRole()), _bannerRole = _interopRequireDefault(require_bannerRole()), _blockquoteRole = _interopRequireDefault(require_blockquoteRole()), _buttonRole = _interopRequireDefault(require_buttonRole()), _captionRole = _interopRequireDefault(require_captionRole()), _cellRole = _interopRequireDefault(require_cellRole()), _checkboxRole = _interopRequireDefault(require_checkboxRole()), _codeRole = _interopRequireDefault(require_codeRole()), _columnheaderRole = _interopRequireDefault(require_columnheaderRole()), _comboboxRole = _interopRequireDefault(require_comboboxRole()), _complementaryRole = _interopRequireDefault(require_complementaryRole()), _contentinfoRole = _interopRequireDefault(require_contentinfoRole()), _definitionRole = _interopRequireDefault(require_definitionRole()), _deletionRole = _interopRequireDefault(require_deletionRole()), _dialogRole = _interopRequireDefault(require_dialogRole()), _directoryRole = _interopRequireDefault(require_directoryRole()), _documentRole = _interopRequireDefault(require_documentRole()), _emphasisRole = _interopRequireDefault(require_emphasisRole()), _feedRole = _interopRequireDefault(require_feedRole()), _figureRole = _interopRequireDefault(require_figureRole()), _formRole = _interopRequireDefault(require_formRole()), _genericRole = _interopRequireDefault(require_genericRole()), _gridRole = _interopRequireDefault(require_gridRole()), _gridcellRole = _interopRequireDefault(require_gridcellRole()), _groupRole = _interopRequireDefault(require_groupRole()), _headingRole = _interopRequireDefault(require_headingRole()), _imgRole = _interopRequireDefault(require_imgRole()), _insertionRole = _interopRequireDefault(require_insertionRole()), _linkRole = _interopRequireDefault(require_linkRole()), _listRole = _interopRequireDefault(require_listRole()), _listboxRole = _interopRequireDefault(require_listboxRole()), _listitemRole = _interopRequireDefault(require_listitemRole()), _logRole = _interopRequireDefault(require_logRole()), _mainRole = _interopRequireDefault(require_mainRole()), _markRole = _interopRequireDefault(require_markRole()), _marqueeRole = _interopRequireDefault(require_marqueeRole()), _mathRole = _interopRequireDefault(require_mathRole()), _menuRole = _interopRequireDefault(require_menuRole()), _menubarRole = _interopRequireDefault(require_menubarRole()), _menuitemRole = _interopRequireDefault(require_menuitemRole()), _menuitemcheckboxRole = _interopRequireDefault(require_menuitemcheckboxRole()), _menuitemradioRole = _interopRequireDefault(require_menuitemradioRole()), _meterRole = _interopRequireDefault(require_meterRole()), _navigationRole = _interopRequireDefault(require_navigationRole()), _noneRole = _interopRequireDefault(require_noneRole()), _noteRole = _interopRequireDefault(require_noteRole()), _optionRole = _interopRequireDefault(require_optionRole()), _paragraphRole = _interopRequireDefault(require_paragraphRole()), _presentationRole = _interopRequireDefault(require_presentationRole()), _progressbarRole = _interopRequireDefault(require_progressbarRole()), _radioRole = _interopRequireDefault(require_radioRole()), _radiogroupRole = _interopRequireDefault(require_radiogroupRole()), _regionRole = _interopRequireDefault(require_regionRole()), _rowRole = _interopRequireDefault(require_rowRole()), _rowgroupRole = _interopRequireDefault(require_rowgroupRole()), _rowheaderRole = _interopRequireDefault(require_rowheaderRole()), _scrollbarRole = _interopRequireDefault(require_scrollbarRole()), _searchRole = _interopRequireDefault(require_searchRole()), _searchboxRole = _interopRequireDefault(require_searchboxRole()), _separatorRole = _interopRequireDefault(require_separatorRole()), _sliderRole = _interopRequireDefault(require_sliderRole()), _spinbuttonRole = _interopRequireDefault(require_spinbuttonRole()), _statusRole = _interopRequireDefault(require_statusRole()), _strongRole = _interopRequireDefault(require_strongRole()), _subscriptRole = _interopRequireDefault(require_subscriptRole()), _superscriptRole = _interopRequireDefault(require_superscriptRole()), _switchRole = _interopRequireDefault(require_switchRole()), _tabRole = _interopRequireDefault(require_tabRole()), _tableRole = _interopRequireDefault(require_tableRole()), _tablistRole = _interopRequireDefault(require_tablistRole()), _tabpanelRole = _interopRequireDefault(require_tabpanelRole()), _termRole = _interopRequireDefault(require_termRole()), _textboxRole = _interopRequireDefault(require_textboxRole()), _timeRole = _interopRequireDefault(require_timeRole()), _timerRole = _interopRequireDefault(require_timerRole()), _toolbarRole = _interopRequireDefault(require_toolbarRole()), _tooltipRole = _interopRequireDefault(require_tooltipRole()), _treeRole = _interopRequireDefault(require_treeRole()), _treegridRole = _interopRequireDefault(require_treegridRole()), _treeitemRole = _interopRequireDefault(require_treeitemRole());
  22186. function _interopRequireDefault(e) {
  22187. return e && e.__esModule ? e : { default: e };
  22188. }
  22189. var ariaLiteralRoles = [["alert", _alertRole.default], ["alertdialog", _alertdialogRole.default], ["application", _applicationRole.default], ["article", _articleRole.default], ["banner", _bannerRole.default], ["blockquote", _blockquoteRole.default], ["button", _buttonRole.default], ["caption", _captionRole.default], ["cell", _cellRole.default], ["checkbox", _checkboxRole.default], ["code", _codeRole.default], ["columnheader", _columnheaderRole.default], ["combobox", _comboboxRole.default], ["complementary", _complementaryRole.default], ["contentinfo", _contentinfoRole.default], ["definition", _definitionRole.default], ["deletion", _deletionRole.default], ["dialog", _dialogRole.default], ["directory", _directoryRole.default], ["document", _documentRole.default], ["emphasis", _emphasisRole.default], ["feed", _feedRole.default], ["figure", _figureRole.default], ["form", _formRole.default], ["generic", _genericRole.default], ["grid", _gridRole.default], ["gridcell", _gridcellRole.default], ["group", _groupRole.default], ["heading", _headingRole.default], ["img", _imgRole.default], ["insertion", _insertionRole.default], ["link", _linkRole.default], ["list", _listRole.default], ["listbox", _listboxRole.default], ["listitem", _listitemRole.default], ["log", _logRole.default], ["main", _mainRole.default], ["mark", _markRole.default], ["marquee", _marqueeRole.default], ["math", _mathRole.default], ["menu", _menuRole.default], ["menubar", _menubarRole.default], ["menuitem", _menuitemRole.default], ["menuitemcheckbox", _menuitemcheckboxRole.default], ["menuitemradio", _menuitemradioRole.default], ["meter", _meterRole.default], ["navigation", _navigationRole.default], ["none", _noneRole.default], ["note", _noteRole.default], ["option", _optionRole.default], ["paragraph", _paragraphRole.default], ["presentation", _presentationRole.default], ["progressbar", _progressbarRole.default], ["radio", _radioRole.default], ["radiogroup", _radiogroupRole.default], ["region", _regionRole.default], ["row", _rowRole.default], ["rowgroup", _rowgroupRole.default], ["rowheader", _rowheaderRole.default], ["scrollbar", _scrollbarRole.default], ["search", _searchRole.default], ["searchbox", _searchboxRole.default], ["separator", _separatorRole.default], ["slider", _sliderRole.default], ["spinbutton", _spinbuttonRole.default], ["status", _statusRole.default], ["strong", _strongRole.default], ["subscript", _subscriptRole.default], ["superscript", _superscriptRole.default], ["switch", _switchRole.default], ["tab", _tabRole.default], ["table", _tableRole.default], ["tablist", _tablistRole.default], ["tabpanel", _tabpanelRole.default], ["term", _termRole.default], ["textbox", _textboxRole.default], ["time", _timeRole.default], ["timer", _timerRole.default], ["toolbar", _toolbarRole.default], ["tooltip", _tooltipRole.default], ["tree", _treeRole.default], ["treegrid", _treegridRole.default], ["treeitem", _treeitemRole.default]], _default = exports.default = ariaLiteralRoles;
  22190. }
  22191. });
  22192. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js
  22193. var require_docAbstractRole = __commonJS({
  22194. "../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(exports) {
  22195. "use strict";
  22196. Object.defineProperty(exports, "__esModule", {
  22197. value: !0
  22198. });
  22199. exports.default = void 0;
  22200. var docAbstractRole = {
  22201. abstract: !1,
  22202. accessibleNameRequired: !1,
  22203. baseConcepts: [],
  22204. childrenPresentational: !1,
  22205. nameFrom: ["author"],
  22206. prohibitedProps: [],
  22207. props: {
  22208. "aria-disabled": null,
  22209. "aria-errormessage": null,
  22210. "aria-expanded": null,
  22211. "aria-haspopup": null,
  22212. "aria-invalid": null
  22213. },
  22214. relatedConcepts: [{
  22215. concept: {
  22216. name: "abstract [EPUB-SSV]"
  22217. },
  22218. module: "EPUB"
  22219. }],
  22220. requireContextRole: [],
  22221. requiredContextRole: [],
  22222. requiredOwnedElements: [],
  22223. requiredProps: {},
  22224. superClass: [["roletype", "structure", "section"]]
  22225. }, _default = exports.default = docAbstractRole;
  22226. }
  22227. });
  22228. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js
  22229. var require_docAcknowledgmentsRole = __commonJS({
  22230. "../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(exports) {
  22231. "use strict";
  22232. Object.defineProperty(exports, "__esModule", {
  22233. value: !0
  22234. });
  22235. exports.default = void 0;
  22236. var docAcknowledgmentsRole = {
  22237. abstract: !1,
  22238. accessibleNameRequired: !1,
  22239. baseConcepts: [],
  22240. childrenPresentational: !1,
  22241. nameFrom: ["author"],
  22242. prohibitedProps: [],
  22243. props: {
  22244. "aria-disabled": null,
  22245. "aria-errormessage": null,
  22246. "aria-expanded": null,
  22247. "aria-haspopup": null,
  22248. "aria-invalid": null
  22249. },
  22250. relatedConcepts: [{
  22251. concept: {
  22252. name: "acknowledgments [EPUB-SSV]"
  22253. },
  22254. module: "EPUB"
  22255. }],
  22256. requireContextRole: [],
  22257. requiredContextRole: [],
  22258. requiredOwnedElements: [],
  22259. requiredProps: {},
  22260. superClass: [["roletype", "structure", "section", "landmark"]]
  22261. }, _default = exports.default = docAcknowledgmentsRole;
  22262. }
  22263. });
  22264. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js
  22265. var require_docAfterwordRole = __commonJS({
  22266. "../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(exports) {
  22267. "use strict";
  22268. Object.defineProperty(exports, "__esModule", {
  22269. value: !0
  22270. });
  22271. exports.default = void 0;
  22272. var docAfterwordRole = {
  22273. abstract: !1,
  22274. accessibleNameRequired: !1,
  22275. baseConcepts: [],
  22276. childrenPresentational: !1,
  22277. nameFrom: ["author"],
  22278. prohibitedProps: [],
  22279. props: {
  22280. "aria-disabled": null,
  22281. "aria-errormessage": null,
  22282. "aria-expanded": null,
  22283. "aria-haspopup": null,
  22284. "aria-invalid": null
  22285. },
  22286. relatedConcepts: [{
  22287. concept: {
  22288. name: "afterword [EPUB-SSV]"
  22289. },
  22290. module: "EPUB"
  22291. }],
  22292. requireContextRole: [],
  22293. requiredContextRole: [],
  22294. requiredOwnedElements: [],
  22295. requiredProps: {},
  22296. superClass: [["roletype", "structure", "section", "landmark"]]
  22297. }, _default = exports.default = docAfterwordRole;
  22298. }
  22299. });
  22300. // ../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js
  22301. var require_docAppendixRole = __commonJS({
  22302. "../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(exports) {
  22303. "use strict";
  22304. Object.defineProperty(exports, "__esModule", {
  22305. value: !0
  22306. });
  22307. exports.default = void 0;
  22308. var docAppendixRole = {
  22309. abstract: !1,
  22310. accessibleNameRequired: !1,
  22311. baseConcepts: [],
  22312. childrenPresentational: !1,
  22313. nameFrom: ["author"],
  22314. prohibitedProps: [],
  22315. props: {
  22316. "aria-disabled": null,
  22317. "aria-errormessage": null,
  22318. "aria-expanded": null,
  22319. "aria-haspopup": null,
  22320. "aria-invalid": null
  22321. },
  22322. relatedConcepts: [{
  22323. concept: {
  22324. name: "appendix [EPUB-SSV]"
  22325. },
  22326. module: "EPUB"
  22327. }],
  22328. requireContextRole: [],
  22329. requiredContextRole: [],
  22330. requiredOwnedElements: [],
  22331. requiredProps: {},
  22332. superClass: [["roletype", "structure", "section", "landmark"]]
  22333. }, _default = exports.default = docAppendixRole;
  22334. }
  22335. });
  22336. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js
  22337. var require_docBacklinkRole = __commonJS({
  22338. "../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(exports) {
  22339. "use strict";
  22340. Object.defineProperty(exports, "__esModule", {
  22341. value: !0
  22342. });
  22343. exports.default = void 0;
  22344. var docBacklinkRole = {
  22345. abstract: !1,
  22346. accessibleNameRequired: !0,
  22347. baseConcepts: [],
  22348. childrenPresentational: !1,
  22349. nameFrom: ["author", "contents"],
  22350. prohibitedProps: [],
  22351. props: {
  22352. "aria-errormessage": null,
  22353. "aria-invalid": null
  22354. },
  22355. relatedConcepts: [{
  22356. concept: {
  22357. name: "referrer [EPUB-SSV]"
  22358. },
  22359. module: "EPUB"
  22360. }],
  22361. requireContextRole: [],
  22362. requiredContextRole: [],
  22363. requiredOwnedElements: [],
  22364. requiredProps: {},
  22365. superClass: [["roletype", "widget", "command", "link"]]
  22366. }, _default = exports.default = docBacklinkRole;
  22367. }
  22368. });
  22369. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js
  22370. var require_docBiblioentryRole = __commonJS({
  22371. "../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(exports) {
  22372. "use strict";
  22373. Object.defineProperty(exports, "__esModule", {
  22374. value: !0
  22375. });
  22376. exports.default = void 0;
  22377. var docBiblioentryRole = {
  22378. abstract: !1,
  22379. accessibleNameRequired: !0,
  22380. baseConcepts: [],
  22381. childrenPresentational: !1,
  22382. nameFrom: ["author"],
  22383. prohibitedProps: [],
  22384. props: {
  22385. "aria-disabled": null,
  22386. "aria-errormessage": null,
  22387. "aria-expanded": null,
  22388. "aria-haspopup": null,
  22389. "aria-invalid": null
  22390. },
  22391. relatedConcepts: [{
  22392. concept: {
  22393. name: "EPUB biblioentry [EPUB-SSV]"
  22394. },
  22395. module: "EPUB"
  22396. }],
  22397. requireContextRole: ["doc-bibliography"],
  22398. requiredContextRole: ["doc-bibliography"],
  22399. requiredOwnedElements: [],
  22400. requiredProps: {},
  22401. superClass: [["roletype", "structure", "section", "listitem"]]
  22402. }, _default = exports.default = docBiblioentryRole;
  22403. }
  22404. });
  22405. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js
  22406. var require_docBibliographyRole = __commonJS({
  22407. "../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(exports) {
  22408. "use strict";
  22409. Object.defineProperty(exports, "__esModule", {
  22410. value: !0
  22411. });
  22412. exports.default = void 0;
  22413. var docBibliographyRole = {
  22414. abstract: !1,
  22415. accessibleNameRequired: !1,
  22416. baseConcepts: [],
  22417. childrenPresentational: !1,
  22418. nameFrom: ["author"],
  22419. prohibitedProps: [],
  22420. props: {
  22421. "aria-disabled": null,
  22422. "aria-errormessage": null,
  22423. "aria-expanded": null,
  22424. "aria-haspopup": null,
  22425. "aria-invalid": null
  22426. },
  22427. relatedConcepts: [{
  22428. concept: {
  22429. name: "bibliography [EPUB-SSV]"
  22430. },
  22431. module: "EPUB"
  22432. }],
  22433. requireContextRole: [],
  22434. requiredContextRole: [],
  22435. requiredOwnedElements: [["doc-biblioentry"]],
  22436. requiredProps: {},
  22437. superClass: [["roletype", "structure", "section", "landmark"]]
  22438. }, _default = exports.default = docBibliographyRole;
  22439. }
  22440. });
  22441. // ../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js
  22442. var require_docBibliorefRole = __commonJS({
  22443. "../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(exports) {
  22444. "use strict";
  22445. Object.defineProperty(exports, "__esModule", {
  22446. value: !0
  22447. });
  22448. exports.default = void 0;
  22449. var docBibliorefRole = {
  22450. abstract: !1,
  22451. accessibleNameRequired: !0,
  22452. baseConcepts: [],
  22453. childrenPresentational: !1,
  22454. nameFrom: ["author", "contents"],
  22455. prohibitedProps: [],
  22456. props: {
  22457. "aria-errormessage": null,
  22458. "aria-invalid": null
  22459. },
  22460. relatedConcepts: [{
  22461. concept: {
  22462. name: "biblioref [EPUB-SSV]"
  22463. },
  22464. module: "EPUB"
  22465. }],
  22466. requireContextRole: [],
  22467. requiredContextRole: [],
  22468. requiredOwnedElements: [],
  22469. requiredProps: {},
  22470. superClass: [["roletype", "widget", "command", "link"]]
  22471. }, _default = exports.default = docBibliorefRole;
  22472. }
  22473. });
  22474. // ../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js
  22475. var require_docChapterRole = __commonJS({
  22476. "../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(exports) {
  22477. "use strict";
  22478. Object.defineProperty(exports, "__esModule", {
  22479. value: !0
  22480. });
  22481. exports.default = void 0;
  22482. var docChapterRole = {
  22483. abstract: !1,
  22484. accessibleNameRequired: !1,
  22485. baseConcepts: [],
  22486. childrenPresentational: !1,
  22487. nameFrom: ["author"],
  22488. prohibitedProps: [],
  22489. props: {
  22490. "aria-disabled": null,
  22491. "aria-errormessage": null,
  22492. "aria-expanded": null,
  22493. "aria-haspopup": null,
  22494. "aria-invalid": null
  22495. },
  22496. relatedConcepts: [{
  22497. concept: {
  22498. name: "chapter [EPUB-SSV]"
  22499. },
  22500. module: "EPUB"
  22501. }],
  22502. requireContextRole: [],
  22503. requiredContextRole: [],
  22504. requiredOwnedElements: [],
  22505. requiredProps: {},
  22506. superClass: [["roletype", "structure", "section", "landmark"]]
  22507. }, _default = exports.default = docChapterRole;
  22508. }
  22509. });
  22510. // ../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js
  22511. var require_docColophonRole = __commonJS({
  22512. "../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(exports) {
  22513. "use strict";
  22514. Object.defineProperty(exports, "__esModule", {
  22515. value: !0
  22516. });
  22517. exports.default = void 0;
  22518. var docColophonRole = {
  22519. abstract: !1,
  22520. accessibleNameRequired: !1,
  22521. baseConcepts: [],
  22522. childrenPresentational: !1,
  22523. nameFrom: ["author"],
  22524. prohibitedProps: [],
  22525. props: {
  22526. "aria-disabled": null,
  22527. "aria-errormessage": null,
  22528. "aria-expanded": null,
  22529. "aria-haspopup": null,
  22530. "aria-invalid": null
  22531. },
  22532. relatedConcepts: [{
  22533. concept: {
  22534. name: "colophon [EPUB-SSV]"
  22535. },
  22536. module: "EPUB"
  22537. }],
  22538. requireContextRole: [],
  22539. requiredContextRole: [],
  22540. requiredOwnedElements: [],
  22541. requiredProps: {},
  22542. superClass: [["roletype", "structure", "section"]]
  22543. }, _default = exports.default = docColophonRole;
  22544. }
  22545. });
  22546. // ../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js
  22547. var require_docConclusionRole = __commonJS({
  22548. "../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(exports) {
  22549. "use strict";
  22550. Object.defineProperty(exports, "__esModule", {
  22551. value: !0
  22552. });
  22553. exports.default = void 0;
  22554. var docConclusionRole = {
  22555. abstract: !1,
  22556. accessibleNameRequired: !1,
  22557. baseConcepts: [],
  22558. childrenPresentational: !1,
  22559. nameFrom: ["author"],
  22560. prohibitedProps: [],
  22561. props: {
  22562. "aria-disabled": null,
  22563. "aria-errormessage": null,
  22564. "aria-expanded": null,
  22565. "aria-haspopup": null,
  22566. "aria-invalid": null
  22567. },
  22568. relatedConcepts: [{
  22569. concept: {
  22570. name: "conclusion [EPUB-SSV]"
  22571. },
  22572. module: "EPUB"
  22573. }],
  22574. requireContextRole: [],
  22575. requiredContextRole: [],
  22576. requiredOwnedElements: [],
  22577. requiredProps: {},
  22578. superClass: [["roletype", "structure", "section", "landmark"]]
  22579. }, _default = exports.default = docConclusionRole;
  22580. }
  22581. });
  22582. // ../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js
  22583. var require_docCoverRole = __commonJS({
  22584. "../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(exports) {
  22585. "use strict";
  22586. Object.defineProperty(exports, "__esModule", {
  22587. value: !0
  22588. });
  22589. exports.default = void 0;
  22590. var docCoverRole = {
  22591. abstract: !1,
  22592. accessibleNameRequired: !1,
  22593. baseConcepts: [],
  22594. childrenPresentational: !1,
  22595. nameFrom: ["author"],
  22596. prohibitedProps: [],
  22597. props: {
  22598. "aria-disabled": null,
  22599. "aria-errormessage": null,
  22600. "aria-expanded": null,
  22601. "aria-haspopup": null,
  22602. "aria-invalid": null
  22603. },
  22604. relatedConcepts: [{
  22605. concept: {
  22606. name: "cover [EPUB-SSV]"
  22607. },
  22608. module: "EPUB"
  22609. }],
  22610. requireContextRole: [],
  22611. requiredContextRole: [],
  22612. requiredOwnedElements: [],
  22613. requiredProps: {},
  22614. superClass: [["roletype", "structure", "section", "img"]]
  22615. }, _default = exports.default = docCoverRole;
  22616. }
  22617. });
  22618. // ../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js
  22619. var require_docCreditRole = __commonJS({
  22620. "../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(exports) {
  22621. "use strict";
  22622. Object.defineProperty(exports, "__esModule", {
  22623. value: !0
  22624. });
  22625. exports.default = void 0;
  22626. var docCreditRole = {
  22627. abstract: !1,
  22628. accessibleNameRequired: !1,
  22629. baseConcepts: [],
  22630. childrenPresentational: !1,
  22631. nameFrom: ["author"],
  22632. prohibitedProps: [],
  22633. props: {
  22634. "aria-disabled": null,
  22635. "aria-errormessage": null,
  22636. "aria-expanded": null,
  22637. "aria-haspopup": null,
  22638. "aria-invalid": null
  22639. },
  22640. relatedConcepts: [{
  22641. concept: {
  22642. name: "credit [EPUB-SSV]"
  22643. },
  22644. module: "EPUB"
  22645. }],
  22646. requireContextRole: [],
  22647. requiredContextRole: [],
  22648. requiredOwnedElements: [],
  22649. requiredProps: {},
  22650. superClass: [["roletype", "structure", "section"]]
  22651. }, _default = exports.default = docCreditRole;
  22652. }
  22653. });
  22654. // ../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js
  22655. var require_docCreditsRole = __commonJS({
  22656. "../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(exports) {
  22657. "use strict";
  22658. Object.defineProperty(exports, "__esModule", {
  22659. value: !0
  22660. });
  22661. exports.default = void 0;
  22662. var docCreditsRole = {
  22663. abstract: !1,
  22664. accessibleNameRequired: !1,
  22665. baseConcepts: [],
  22666. childrenPresentational: !1,
  22667. nameFrom: ["author"],
  22668. prohibitedProps: [],
  22669. props: {
  22670. "aria-disabled": null,
  22671. "aria-errormessage": null,
  22672. "aria-expanded": null,
  22673. "aria-haspopup": null,
  22674. "aria-invalid": null
  22675. },
  22676. relatedConcepts: [{
  22677. concept: {
  22678. name: "credits [EPUB-SSV]"
  22679. },
  22680. module: "EPUB"
  22681. }],
  22682. requireContextRole: [],
  22683. requiredContextRole: [],
  22684. requiredOwnedElements: [],
  22685. requiredProps: {},
  22686. superClass: [["roletype", "structure", "section", "landmark"]]
  22687. }, _default = exports.default = docCreditsRole;
  22688. }
  22689. });
  22690. // ../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js
  22691. var require_docDedicationRole = __commonJS({
  22692. "../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(exports) {
  22693. "use strict";
  22694. Object.defineProperty(exports, "__esModule", {
  22695. value: !0
  22696. });
  22697. exports.default = void 0;
  22698. var docDedicationRole = {
  22699. abstract: !1,
  22700. accessibleNameRequired: !1,
  22701. baseConcepts: [],
  22702. childrenPresentational: !1,
  22703. nameFrom: ["author"],
  22704. prohibitedProps: [],
  22705. props: {
  22706. "aria-disabled": null,
  22707. "aria-errormessage": null,
  22708. "aria-expanded": null,
  22709. "aria-haspopup": null,
  22710. "aria-invalid": null
  22711. },
  22712. relatedConcepts: [{
  22713. concept: {
  22714. name: "dedication [EPUB-SSV]"
  22715. },
  22716. module: "EPUB"
  22717. }],
  22718. requireContextRole: [],
  22719. requiredContextRole: [],
  22720. requiredOwnedElements: [],
  22721. requiredProps: {},
  22722. superClass: [["roletype", "structure", "section"]]
  22723. }, _default = exports.default = docDedicationRole;
  22724. }
  22725. });
  22726. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js
  22727. var require_docEndnoteRole = __commonJS({
  22728. "../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(exports) {
  22729. "use strict";
  22730. Object.defineProperty(exports, "__esModule", {
  22731. value: !0
  22732. });
  22733. exports.default = void 0;
  22734. var docEndnoteRole = {
  22735. abstract: !1,
  22736. accessibleNameRequired: !1,
  22737. baseConcepts: [],
  22738. childrenPresentational: !1,
  22739. nameFrom: ["author"],
  22740. prohibitedProps: [],
  22741. props: {
  22742. "aria-disabled": null,
  22743. "aria-errormessage": null,
  22744. "aria-expanded": null,
  22745. "aria-haspopup": null,
  22746. "aria-invalid": null
  22747. },
  22748. relatedConcepts: [{
  22749. concept: {
  22750. name: "rearnote [EPUB-SSV]"
  22751. },
  22752. module: "EPUB"
  22753. }],
  22754. requireContextRole: ["doc-endnotes"],
  22755. requiredContextRole: ["doc-endnotes"],
  22756. requiredOwnedElements: [],
  22757. requiredProps: {},
  22758. superClass: [["roletype", "structure", "section", "listitem"]]
  22759. }, _default = exports.default = docEndnoteRole;
  22760. }
  22761. });
  22762. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js
  22763. var require_docEndnotesRole = __commonJS({
  22764. "../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(exports) {
  22765. "use strict";
  22766. Object.defineProperty(exports, "__esModule", {
  22767. value: !0
  22768. });
  22769. exports.default = void 0;
  22770. var docEndnotesRole = {
  22771. abstract: !1,
  22772. accessibleNameRequired: !1,
  22773. baseConcepts: [],
  22774. childrenPresentational: !1,
  22775. nameFrom: ["author"],
  22776. prohibitedProps: [],
  22777. props: {
  22778. "aria-disabled": null,
  22779. "aria-errormessage": null,
  22780. "aria-expanded": null,
  22781. "aria-haspopup": null,
  22782. "aria-invalid": null
  22783. },
  22784. relatedConcepts: [{
  22785. concept: {
  22786. name: "rearnotes [EPUB-SSV]"
  22787. },
  22788. module: "EPUB"
  22789. }],
  22790. requireContextRole: [],
  22791. requiredContextRole: [],
  22792. requiredOwnedElements: [["doc-endnote"]],
  22793. requiredProps: {},
  22794. superClass: [["roletype", "structure", "section", "landmark"]]
  22795. }, _default = exports.default = docEndnotesRole;
  22796. }
  22797. });
  22798. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js
  22799. var require_docEpigraphRole = __commonJS({
  22800. "../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(exports) {
  22801. "use strict";
  22802. Object.defineProperty(exports, "__esModule", {
  22803. value: !0
  22804. });
  22805. exports.default = void 0;
  22806. var docEpigraphRole = {
  22807. abstract: !1,
  22808. accessibleNameRequired: !1,
  22809. baseConcepts: [],
  22810. childrenPresentational: !1,
  22811. nameFrom: ["author"],
  22812. prohibitedProps: [],
  22813. props: {
  22814. "aria-disabled": null,
  22815. "aria-errormessage": null,
  22816. "aria-expanded": null,
  22817. "aria-haspopup": null,
  22818. "aria-invalid": null
  22819. },
  22820. relatedConcepts: [{
  22821. concept: {
  22822. name: "epigraph [EPUB-SSV]"
  22823. },
  22824. module: "EPUB"
  22825. }],
  22826. requireContextRole: [],
  22827. requiredContextRole: [],
  22828. requiredOwnedElements: [],
  22829. requiredProps: {},
  22830. superClass: [["roletype", "structure", "section"]]
  22831. }, _default = exports.default = docEpigraphRole;
  22832. }
  22833. });
  22834. // ../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js
  22835. var require_docEpilogueRole = __commonJS({
  22836. "../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(exports) {
  22837. "use strict";
  22838. Object.defineProperty(exports, "__esModule", {
  22839. value: !0
  22840. });
  22841. exports.default = void 0;
  22842. var docEpilogueRole = {
  22843. abstract: !1,
  22844. accessibleNameRequired: !1,
  22845. baseConcepts: [],
  22846. childrenPresentational: !1,
  22847. nameFrom: ["author"],
  22848. prohibitedProps: [],
  22849. props: {
  22850. "aria-disabled": null,
  22851. "aria-errormessage": null,
  22852. "aria-expanded": null,
  22853. "aria-haspopup": null,
  22854. "aria-invalid": null
  22855. },
  22856. relatedConcepts: [{
  22857. concept: {
  22858. name: "epilogue [EPUB-SSV]"
  22859. },
  22860. module: "EPUB"
  22861. }],
  22862. requireContextRole: [],
  22863. requiredContextRole: [],
  22864. requiredOwnedElements: [],
  22865. requiredProps: {},
  22866. superClass: [["roletype", "structure", "section", "landmark"]]
  22867. }, _default = exports.default = docEpilogueRole;
  22868. }
  22869. });
  22870. // ../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js
  22871. var require_docErrataRole = __commonJS({
  22872. "../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(exports) {
  22873. "use strict";
  22874. Object.defineProperty(exports, "__esModule", {
  22875. value: !0
  22876. });
  22877. exports.default = void 0;
  22878. var docErrataRole = {
  22879. abstract: !1,
  22880. accessibleNameRequired: !1,
  22881. baseConcepts: [],
  22882. childrenPresentational: !1,
  22883. nameFrom: ["author"],
  22884. prohibitedProps: [],
  22885. props: {
  22886. "aria-disabled": null,
  22887. "aria-errormessage": null,
  22888. "aria-expanded": null,
  22889. "aria-haspopup": null,
  22890. "aria-invalid": null
  22891. },
  22892. relatedConcepts: [{
  22893. concept: {
  22894. name: "errata [EPUB-SSV]"
  22895. },
  22896. module: "EPUB"
  22897. }],
  22898. requireContextRole: [],
  22899. requiredContextRole: [],
  22900. requiredOwnedElements: [],
  22901. requiredProps: {},
  22902. superClass: [["roletype", "structure", "section", "landmark"]]
  22903. }, _default = exports.default = docErrataRole;
  22904. }
  22905. });
  22906. // ../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js
  22907. var require_docExampleRole = __commonJS({
  22908. "../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(exports) {
  22909. "use strict";
  22910. Object.defineProperty(exports, "__esModule", {
  22911. value: !0
  22912. });
  22913. exports.default = void 0;
  22914. var docExampleRole = {
  22915. abstract: !1,
  22916. accessibleNameRequired: !1,
  22917. baseConcepts: [],
  22918. childrenPresentational: !1,
  22919. nameFrom: ["author"],
  22920. prohibitedProps: [],
  22921. props: {
  22922. "aria-disabled": null,
  22923. "aria-errormessage": null,
  22924. "aria-expanded": null,
  22925. "aria-haspopup": null,
  22926. "aria-invalid": null
  22927. },
  22928. relatedConcepts: [],
  22929. requireContextRole: [],
  22930. requiredContextRole: [],
  22931. requiredOwnedElements: [],
  22932. requiredProps: {},
  22933. superClass: [["roletype", "structure", "section"]]
  22934. }, _default = exports.default = docExampleRole;
  22935. }
  22936. });
  22937. // ../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js
  22938. var require_docFootnoteRole = __commonJS({
  22939. "../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(exports) {
  22940. "use strict";
  22941. Object.defineProperty(exports, "__esModule", {
  22942. value: !0
  22943. });
  22944. exports.default = void 0;
  22945. var docFootnoteRole = {
  22946. abstract: !1,
  22947. accessibleNameRequired: !1,
  22948. baseConcepts: [],
  22949. childrenPresentational: !1,
  22950. nameFrom: ["author"],
  22951. prohibitedProps: [],
  22952. props: {
  22953. "aria-disabled": null,
  22954. "aria-errormessage": null,
  22955. "aria-expanded": null,
  22956. "aria-haspopup": null,
  22957. "aria-invalid": null
  22958. },
  22959. relatedConcepts: [{
  22960. concept: {
  22961. name: "footnote [EPUB-SSV]"
  22962. },
  22963. module: "EPUB"
  22964. }],
  22965. requireContextRole: [],
  22966. requiredContextRole: [],
  22967. requiredOwnedElements: [],
  22968. requiredProps: {},
  22969. superClass: [["roletype", "structure", "section"]]
  22970. }, _default = exports.default = docFootnoteRole;
  22971. }
  22972. });
  22973. // ../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js
  22974. var require_docForewordRole = __commonJS({
  22975. "../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(exports) {
  22976. "use strict";
  22977. Object.defineProperty(exports, "__esModule", {
  22978. value: !0
  22979. });
  22980. exports.default = void 0;
  22981. var docForewordRole = {
  22982. abstract: !1,
  22983. accessibleNameRequired: !1,
  22984. baseConcepts: [],
  22985. childrenPresentational: !1,
  22986. nameFrom: ["author"],
  22987. prohibitedProps: [],
  22988. props: {
  22989. "aria-disabled": null,
  22990. "aria-errormessage": null,
  22991. "aria-expanded": null,
  22992. "aria-haspopup": null,
  22993. "aria-invalid": null
  22994. },
  22995. relatedConcepts: [{
  22996. concept: {
  22997. name: "foreword [EPUB-SSV]"
  22998. },
  22999. module: "EPUB"
  23000. }],
  23001. requireContextRole: [],
  23002. requiredContextRole: [],
  23003. requiredOwnedElements: [],
  23004. requiredProps: {},
  23005. superClass: [["roletype", "structure", "section", "landmark"]]
  23006. }, _default = exports.default = docForewordRole;
  23007. }
  23008. });
  23009. // ../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js
  23010. var require_docGlossaryRole = __commonJS({
  23011. "../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(exports) {
  23012. "use strict";
  23013. Object.defineProperty(exports, "__esModule", {
  23014. value: !0
  23015. });
  23016. exports.default = void 0;
  23017. var docGlossaryRole = {
  23018. abstract: !1,
  23019. accessibleNameRequired: !1,
  23020. baseConcepts: [],
  23021. childrenPresentational: !1,
  23022. nameFrom: ["author"],
  23023. prohibitedProps: [],
  23024. props: {
  23025. "aria-disabled": null,
  23026. "aria-errormessage": null,
  23027. "aria-expanded": null,
  23028. "aria-haspopup": null,
  23029. "aria-invalid": null
  23030. },
  23031. relatedConcepts: [{
  23032. concept: {
  23033. name: "glossary [EPUB-SSV]"
  23034. },
  23035. module: "EPUB"
  23036. }],
  23037. requireContextRole: [],
  23038. requiredContextRole: [],
  23039. requiredOwnedElements: [["definition"], ["term"]],
  23040. requiredProps: {},
  23041. superClass: [["roletype", "structure", "section", "landmark"]]
  23042. }, _default = exports.default = docGlossaryRole;
  23043. }
  23044. });
  23045. // ../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js
  23046. var require_docGlossrefRole = __commonJS({
  23047. "../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(exports) {
  23048. "use strict";
  23049. Object.defineProperty(exports, "__esModule", {
  23050. value: !0
  23051. });
  23052. exports.default = void 0;
  23053. var docGlossrefRole = {
  23054. abstract: !1,
  23055. accessibleNameRequired: !0,
  23056. baseConcepts: [],
  23057. childrenPresentational: !1,
  23058. nameFrom: ["author", "contents"],
  23059. prohibitedProps: [],
  23060. props: {
  23061. "aria-errormessage": null,
  23062. "aria-invalid": null
  23063. },
  23064. relatedConcepts: [{
  23065. concept: {
  23066. name: "glossref [EPUB-SSV]"
  23067. },
  23068. module: "EPUB"
  23069. }],
  23070. requireContextRole: [],
  23071. requiredContextRole: [],
  23072. requiredOwnedElements: [],
  23073. requiredProps: {},
  23074. superClass: [["roletype", "widget", "command", "link"]]
  23075. }, _default = exports.default = docGlossrefRole;
  23076. }
  23077. });
  23078. // ../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js
  23079. var require_docIndexRole = __commonJS({
  23080. "../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(exports) {
  23081. "use strict";
  23082. Object.defineProperty(exports, "__esModule", {
  23083. value: !0
  23084. });
  23085. exports.default = void 0;
  23086. var docIndexRole = {
  23087. abstract: !1,
  23088. accessibleNameRequired: !1,
  23089. baseConcepts: [],
  23090. childrenPresentational: !1,
  23091. nameFrom: ["author"],
  23092. prohibitedProps: [],
  23093. props: {
  23094. "aria-disabled": null,
  23095. "aria-errormessage": null,
  23096. "aria-expanded": null,
  23097. "aria-haspopup": null,
  23098. "aria-invalid": null
  23099. },
  23100. relatedConcepts: [{
  23101. concept: {
  23102. name: "index [EPUB-SSV]"
  23103. },
  23104. module: "EPUB"
  23105. }],
  23106. requireContextRole: [],
  23107. requiredContextRole: [],
  23108. requiredOwnedElements: [],
  23109. requiredProps: {},
  23110. superClass: [["roletype", "structure", "section", "landmark", "navigation"]]
  23111. }, _default = exports.default = docIndexRole;
  23112. }
  23113. });
  23114. // ../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js
  23115. var require_docIntroductionRole = __commonJS({
  23116. "../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(exports) {
  23117. "use strict";
  23118. Object.defineProperty(exports, "__esModule", {
  23119. value: !0
  23120. });
  23121. exports.default = void 0;
  23122. var docIntroductionRole = {
  23123. abstract: !1,
  23124. accessibleNameRequired: !1,
  23125. baseConcepts: [],
  23126. childrenPresentational: !1,
  23127. nameFrom: ["author"],
  23128. prohibitedProps: [],
  23129. props: {
  23130. "aria-disabled": null,
  23131. "aria-errormessage": null,
  23132. "aria-expanded": null,
  23133. "aria-haspopup": null,
  23134. "aria-invalid": null
  23135. },
  23136. relatedConcepts: [{
  23137. concept: {
  23138. name: "introduction [EPUB-SSV]"
  23139. },
  23140. module: "EPUB"
  23141. }],
  23142. requireContextRole: [],
  23143. requiredContextRole: [],
  23144. requiredOwnedElements: [],
  23145. requiredProps: {},
  23146. superClass: [["roletype", "structure", "section", "landmark"]]
  23147. }, _default = exports.default = docIntroductionRole;
  23148. }
  23149. });
  23150. // ../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js
  23151. var require_docNoterefRole = __commonJS({
  23152. "../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(exports) {
  23153. "use strict";
  23154. Object.defineProperty(exports, "__esModule", {
  23155. value: !0
  23156. });
  23157. exports.default = void 0;
  23158. var docNoterefRole = {
  23159. abstract: !1,
  23160. accessibleNameRequired: !0,
  23161. baseConcepts: [],
  23162. childrenPresentational: !1,
  23163. nameFrom: ["author", "contents"],
  23164. prohibitedProps: [],
  23165. props: {
  23166. "aria-errormessage": null,
  23167. "aria-invalid": null
  23168. },
  23169. relatedConcepts: [{
  23170. concept: {
  23171. name: "noteref [EPUB-SSV]"
  23172. },
  23173. module: "EPUB"
  23174. }],
  23175. requireContextRole: [],
  23176. requiredContextRole: [],
  23177. requiredOwnedElements: [],
  23178. requiredProps: {},
  23179. superClass: [["roletype", "widget", "command", "link"]]
  23180. }, _default = exports.default = docNoterefRole;
  23181. }
  23182. });
  23183. // ../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js
  23184. var require_docNoticeRole = __commonJS({
  23185. "../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(exports) {
  23186. "use strict";
  23187. Object.defineProperty(exports, "__esModule", {
  23188. value: !0
  23189. });
  23190. exports.default = void 0;
  23191. var docNoticeRole = {
  23192. abstract: !1,
  23193. accessibleNameRequired: !1,
  23194. baseConcepts: [],
  23195. childrenPresentational: !1,
  23196. nameFrom: ["author"],
  23197. prohibitedProps: [],
  23198. props: {
  23199. "aria-disabled": null,
  23200. "aria-errormessage": null,
  23201. "aria-expanded": null,
  23202. "aria-haspopup": null,
  23203. "aria-invalid": null
  23204. },
  23205. relatedConcepts: [{
  23206. concept: {
  23207. name: "notice [EPUB-SSV]"
  23208. },
  23209. module: "EPUB"
  23210. }],
  23211. requireContextRole: [],
  23212. requiredContextRole: [],
  23213. requiredOwnedElements: [],
  23214. requiredProps: {},
  23215. superClass: [["roletype", "structure", "section", "note"]]
  23216. }, _default = exports.default = docNoticeRole;
  23217. }
  23218. });
  23219. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js
  23220. var require_docPagebreakRole = __commonJS({
  23221. "../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(exports) {
  23222. "use strict";
  23223. Object.defineProperty(exports, "__esModule", {
  23224. value: !0
  23225. });
  23226. exports.default = void 0;
  23227. var docPagebreakRole = {
  23228. abstract: !1,
  23229. accessibleNameRequired: !0,
  23230. baseConcepts: [],
  23231. childrenPresentational: !0,
  23232. nameFrom: ["author"],
  23233. prohibitedProps: [],
  23234. props: {
  23235. "aria-errormessage": null,
  23236. "aria-expanded": null,
  23237. "aria-haspopup": null,
  23238. "aria-invalid": null
  23239. },
  23240. relatedConcepts: [{
  23241. concept: {
  23242. name: "pagebreak [EPUB-SSV]"
  23243. },
  23244. module: "EPUB"
  23245. }],
  23246. requireContextRole: [],
  23247. requiredContextRole: [],
  23248. requiredOwnedElements: [],
  23249. requiredProps: {},
  23250. superClass: [["roletype", "structure", "separator"]]
  23251. }, _default = exports.default = docPagebreakRole;
  23252. }
  23253. });
  23254. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js
  23255. var require_docPagefooterRole = __commonJS({
  23256. "../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(exports) {
  23257. "use strict";
  23258. Object.defineProperty(exports, "__esModule", {
  23259. value: !0
  23260. });
  23261. exports.default = void 0;
  23262. var docPagefooterRole = {
  23263. abstract: !1,
  23264. accessibleNameRequired: !1,
  23265. baseConcepts: [],
  23266. childrenPresentational: !1,
  23267. nameFrom: ["prohibited"],
  23268. prohibitedProps: [],
  23269. props: {
  23270. "aria-braillelabel": null,
  23271. "aria-brailleroledescription": null,
  23272. "aria-description": null,
  23273. "aria-disabled": null,
  23274. "aria-errormessage": null,
  23275. "aria-haspopup": null,
  23276. "aria-invalid": null
  23277. },
  23278. relatedConcepts: [],
  23279. requireContextRole: [],
  23280. requiredContextRole: [],
  23281. requiredOwnedElements: [],
  23282. requiredProps: {},
  23283. superClass: [["roletype", "structure", "section"]]
  23284. }, _default = exports.default = docPagefooterRole;
  23285. }
  23286. });
  23287. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js
  23288. var require_docPageheaderRole = __commonJS({
  23289. "../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(exports) {
  23290. "use strict";
  23291. Object.defineProperty(exports, "__esModule", {
  23292. value: !0
  23293. });
  23294. exports.default = void 0;
  23295. var docPageheaderRole = {
  23296. abstract: !1,
  23297. accessibleNameRequired: !1,
  23298. baseConcepts: [],
  23299. childrenPresentational: !1,
  23300. nameFrom: ["prohibited"],
  23301. prohibitedProps: [],
  23302. props: {
  23303. "aria-braillelabel": null,
  23304. "aria-brailleroledescription": null,
  23305. "aria-description": null,
  23306. "aria-disabled": null,
  23307. "aria-errormessage": null,
  23308. "aria-haspopup": null,
  23309. "aria-invalid": null
  23310. },
  23311. relatedConcepts: [],
  23312. requireContextRole: [],
  23313. requiredContextRole: [],
  23314. requiredOwnedElements: [],
  23315. requiredProps: {},
  23316. superClass: [["roletype", "structure", "section"]]
  23317. }, _default = exports.default = docPageheaderRole;
  23318. }
  23319. });
  23320. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js
  23321. var require_docPagelistRole = __commonJS({
  23322. "../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(exports) {
  23323. "use strict";
  23324. Object.defineProperty(exports, "__esModule", {
  23325. value: !0
  23326. });
  23327. exports.default = void 0;
  23328. var docPagelistRole = {
  23329. abstract: !1,
  23330. accessibleNameRequired: !1,
  23331. baseConcepts: [],
  23332. childrenPresentational: !1,
  23333. nameFrom: ["author"],
  23334. prohibitedProps: [],
  23335. props: {
  23336. "aria-disabled": null,
  23337. "aria-errormessage": null,
  23338. "aria-expanded": null,
  23339. "aria-haspopup": null,
  23340. "aria-invalid": null
  23341. },
  23342. relatedConcepts: [{
  23343. concept: {
  23344. name: "page-list [EPUB-SSV]"
  23345. },
  23346. module: "EPUB"
  23347. }],
  23348. requireContextRole: [],
  23349. requiredContextRole: [],
  23350. requiredOwnedElements: [],
  23351. requiredProps: {},
  23352. superClass: [["roletype", "structure", "section", "landmark", "navigation"]]
  23353. }, _default = exports.default = docPagelistRole;
  23354. }
  23355. });
  23356. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js
  23357. var require_docPartRole = __commonJS({
  23358. "../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(exports) {
  23359. "use strict";
  23360. Object.defineProperty(exports, "__esModule", {
  23361. value: !0
  23362. });
  23363. exports.default = void 0;
  23364. var docPartRole = {
  23365. abstract: !1,
  23366. accessibleNameRequired: !0,
  23367. baseConcepts: [],
  23368. childrenPresentational: !1,
  23369. nameFrom: ["author"],
  23370. prohibitedProps: [],
  23371. props: {
  23372. "aria-disabled": null,
  23373. "aria-errormessage": null,
  23374. "aria-expanded": null,
  23375. "aria-haspopup": null,
  23376. "aria-invalid": null
  23377. },
  23378. relatedConcepts: [{
  23379. concept: {
  23380. name: "part [EPUB-SSV]"
  23381. },
  23382. module: "EPUB"
  23383. }],
  23384. requireContextRole: [],
  23385. requiredContextRole: [],
  23386. requiredOwnedElements: [],
  23387. requiredProps: {},
  23388. superClass: [["roletype", "structure", "section", "landmark"]]
  23389. }, _default = exports.default = docPartRole;
  23390. }
  23391. });
  23392. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js
  23393. var require_docPrefaceRole = __commonJS({
  23394. "../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(exports) {
  23395. "use strict";
  23396. Object.defineProperty(exports, "__esModule", {
  23397. value: !0
  23398. });
  23399. exports.default = void 0;
  23400. var docPrefaceRole = {
  23401. abstract: !1,
  23402. accessibleNameRequired: !1,
  23403. baseConcepts: [],
  23404. childrenPresentational: !1,
  23405. nameFrom: ["author"],
  23406. prohibitedProps: [],
  23407. props: {
  23408. "aria-disabled": null,
  23409. "aria-errormessage": null,
  23410. "aria-expanded": null,
  23411. "aria-haspopup": null,
  23412. "aria-invalid": null
  23413. },
  23414. relatedConcepts: [{
  23415. concept: {
  23416. name: "preface [EPUB-SSV]"
  23417. },
  23418. module: "EPUB"
  23419. }],
  23420. requireContextRole: [],
  23421. requiredContextRole: [],
  23422. requiredOwnedElements: [],
  23423. requiredProps: {},
  23424. superClass: [["roletype", "structure", "section", "landmark"]]
  23425. }, _default = exports.default = docPrefaceRole;
  23426. }
  23427. });
  23428. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js
  23429. var require_docPrologueRole = __commonJS({
  23430. "../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(exports) {
  23431. "use strict";
  23432. Object.defineProperty(exports, "__esModule", {
  23433. value: !0
  23434. });
  23435. exports.default = void 0;
  23436. var docPrologueRole = {
  23437. abstract: !1,
  23438. accessibleNameRequired: !1,
  23439. baseConcepts: [],
  23440. childrenPresentational: !1,
  23441. nameFrom: ["author"],
  23442. prohibitedProps: [],
  23443. props: {
  23444. "aria-disabled": null,
  23445. "aria-errormessage": null,
  23446. "aria-expanded": null,
  23447. "aria-haspopup": null,
  23448. "aria-invalid": null
  23449. },
  23450. relatedConcepts: [{
  23451. concept: {
  23452. name: "prologue [EPUB-SSV]"
  23453. },
  23454. module: "EPUB"
  23455. }],
  23456. requireContextRole: [],
  23457. requiredContextRole: [],
  23458. requiredOwnedElements: [],
  23459. requiredProps: {},
  23460. superClass: [["roletype", "structure", "section", "landmark"]]
  23461. }, _default = exports.default = docPrologueRole;
  23462. }
  23463. });
  23464. // ../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js
  23465. var require_docPullquoteRole = __commonJS({
  23466. "../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(exports) {
  23467. "use strict";
  23468. Object.defineProperty(exports, "__esModule", {
  23469. value: !0
  23470. });
  23471. exports.default = void 0;
  23472. var docPullquoteRole = {
  23473. abstract: !1,
  23474. accessibleNameRequired: !1,
  23475. baseConcepts: [],
  23476. childrenPresentational: !1,
  23477. nameFrom: ["author"],
  23478. prohibitedProps: [],
  23479. props: {},
  23480. relatedConcepts: [{
  23481. concept: {
  23482. name: "pullquote [EPUB-SSV]"
  23483. },
  23484. module: "EPUB"
  23485. }],
  23486. requireContextRole: [],
  23487. requiredContextRole: [],
  23488. requiredOwnedElements: [],
  23489. requiredProps: {},
  23490. superClass: [["none"]]
  23491. }, _default = exports.default = docPullquoteRole;
  23492. }
  23493. });
  23494. // ../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js
  23495. var require_docQnaRole = __commonJS({
  23496. "../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(exports) {
  23497. "use strict";
  23498. Object.defineProperty(exports, "__esModule", {
  23499. value: !0
  23500. });
  23501. exports.default = void 0;
  23502. var docQnaRole = {
  23503. abstract: !1,
  23504. accessibleNameRequired: !1,
  23505. baseConcepts: [],
  23506. childrenPresentational: !1,
  23507. nameFrom: ["author"],
  23508. prohibitedProps: [],
  23509. props: {
  23510. "aria-disabled": null,
  23511. "aria-errormessage": null,
  23512. "aria-expanded": null,
  23513. "aria-haspopup": null,
  23514. "aria-invalid": null
  23515. },
  23516. relatedConcepts: [{
  23517. concept: {
  23518. name: "qna [EPUB-SSV]"
  23519. },
  23520. module: "EPUB"
  23521. }],
  23522. requireContextRole: [],
  23523. requiredContextRole: [],
  23524. requiredOwnedElements: [],
  23525. requiredProps: {},
  23526. superClass: [["roletype", "structure", "section"]]
  23527. }, _default = exports.default = docQnaRole;
  23528. }
  23529. });
  23530. // ../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js
  23531. var require_docSubtitleRole = __commonJS({
  23532. "../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(exports) {
  23533. "use strict";
  23534. Object.defineProperty(exports, "__esModule", {
  23535. value: !0
  23536. });
  23537. exports.default = void 0;
  23538. var docSubtitleRole = {
  23539. abstract: !1,
  23540. accessibleNameRequired: !1,
  23541. baseConcepts: [],
  23542. childrenPresentational: !1,
  23543. nameFrom: ["author"],
  23544. prohibitedProps: [],
  23545. props: {
  23546. "aria-disabled": null,
  23547. "aria-errormessage": null,
  23548. "aria-expanded": null,
  23549. "aria-haspopup": null,
  23550. "aria-invalid": null
  23551. },
  23552. relatedConcepts: [{
  23553. concept: {
  23554. name: "subtitle [EPUB-SSV]"
  23555. },
  23556. module: "EPUB"
  23557. }],
  23558. requireContextRole: [],
  23559. requiredContextRole: [],
  23560. requiredOwnedElements: [],
  23561. requiredProps: {},
  23562. superClass: [["roletype", "structure", "sectionhead"]]
  23563. }, _default = exports.default = docSubtitleRole;
  23564. }
  23565. });
  23566. // ../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js
  23567. var require_docTipRole = __commonJS({
  23568. "../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(exports) {
  23569. "use strict";
  23570. Object.defineProperty(exports, "__esModule", {
  23571. value: !0
  23572. });
  23573. exports.default = void 0;
  23574. var docTipRole = {
  23575. abstract: !1,
  23576. accessibleNameRequired: !1,
  23577. baseConcepts: [],
  23578. childrenPresentational: !1,
  23579. nameFrom: ["author"],
  23580. prohibitedProps: [],
  23581. props: {
  23582. "aria-disabled": null,
  23583. "aria-errormessage": null,
  23584. "aria-expanded": null,
  23585. "aria-haspopup": null,
  23586. "aria-invalid": null
  23587. },
  23588. relatedConcepts: [{
  23589. concept: {
  23590. name: "help [EPUB-SSV]"
  23591. },
  23592. module: "EPUB"
  23593. }],
  23594. requireContextRole: [],
  23595. requiredContextRole: [],
  23596. requiredOwnedElements: [],
  23597. requiredProps: {},
  23598. superClass: [["roletype", "structure", "section", "note"]]
  23599. }, _default = exports.default = docTipRole;
  23600. }
  23601. });
  23602. // ../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js
  23603. var require_docTocRole = __commonJS({
  23604. "../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(exports) {
  23605. "use strict";
  23606. Object.defineProperty(exports, "__esModule", {
  23607. value: !0
  23608. });
  23609. exports.default = void 0;
  23610. var docTocRole = {
  23611. abstract: !1,
  23612. accessibleNameRequired: !1,
  23613. baseConcepts: [],
  23614. childrenPresentational: !1,
  23615. nameFrom: ["author"],
  23616. prohibitedProps: [],
  23617. props: {
  23618. "aria-disabled": null,
  23619. "aria-errormessage": null,
  23620. "aria-expanded": null,
  23621. "aria-haspopup": null,
  23622. "aria-invalid": null
  23623. },
  23624. relatedConcepts: [{
  23625. concept: {
  23626. name: "toc [EPUB-SSV]"
  23627. },
  23628. module: "EPUB"
  23629. }],
  23630. requireContextRole: [],
  23631. requiredContextRole: [],
  23632. requiredOwnedElements: [],
  23633. requiredProps: {},
  23634. superClass: [["roletype", "structure", "section", "landmark", "navigation"]]
  23635. }, _default = exports.default = docTocRole;
  23636. }
  23637. });
  23638. // ../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js
  23639. var require_ariaDpubRoles = __commonJS({
  23640. "../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(exports) {
  23641. "use strict";
  23642. Object.defineProperty(exports, "__esModule", {
  23643. value: !0
  23644. });
  23645. exports.default = void 0;
  23646. var _docAbstractRole = _interopRequireDefault(require_docAbstractRole()), _docAcknowledgmentsRole = _interopRequireDefault(require_docAcknowledgmentsRole()), _docAfterwordRole = _interopRequireDefault(require_docAfterwordRole()), _docAppendixRole = _interopRequireDefault(require_docAppendixRole()), _docBacklinkRole = _interopRequireDefault(require_docBacklinkRole()), _docBiblioentryRole = _interopRequireDefault(require_docBiblioentryRole()), _docBibliographyRole = _interopRequireDefault(require_docBibliographyRole()), _docBibliorefRole = _interopRequireDefault(require_docBibliorefRole()), _docChapterRole = _interopRequireDefault(require_docChapterRole()), _docColophonRole = _interopRequireDefault(require_docColophonRole()), _docConclusionRole = _interopRequireDefault(require_docConclusionRole()), _docCoverRole = _interopRequireDefault(require_docCoverRole()), _docCreditRole = _interopRequireDefault(require_docCreditRole()), _docCreditsRole = _interopRequireDefault(require_docCreditsRole()), _docDedicationRole = _interopRequireDefault(require_docDedicationRole()), _docEndnoteRole = _interopRequireDefault(require_docEndnoteRole()), _docEndnotesRole = _interopRequireDefault(require_docEndnotesRole()), _docEpigraphRole = _interopRequireDefault(require_docEpigraphRole()), _docEpilogueRole = _interopRequireDefault(require_docEpilogueRole()), _docErrataRole = _interopRequireDefault(require_docErrataRole()), _docExampleRole = _interopRequireDefault(require_docExampleRole()), _docFootnoteRole = _interopRequireDefault(require_docFootnoteRole()), _docForewordRole = _interopRequireDefault(require_docForewordRole()), _docGlossaryRole = _interopRequireDefault(require_docGlossaryRole()), _docGlossrefRole = _interopRequireDefault(require_docGlossrefRole()), _docIndexRole = _interopRequireDefault(require_docIndexRole()), _docIntroductionRole = _interopRequireDefault(require_docIntroductionRole()), _docNoterefRole = _interopRequireDefault(require_docNoterefRole()), _docNoticeRole = _interopRequireDefault(require_docNoticeRole()), _docPagebreakRole = _interopRequireDefault(require_docPagebreakRole()), _docPagefooterRole = _interopRequireDefault(require_docPagefooterRole()), _docPageheaderRole = _interopRequireDefault(require_docPageheaderRole()), _docPagelistRole = _interopRequireDefault(require_docPagelistRole()), _docPartRole = _interopRequireDefault(require_docPartRole()), _docPrefaceRole = _interopRequireDefault(require_docPrefaceRole()), _docPrologueRole = _interopRequireDefault(require_docPrologueRole()), _docPullquoteRole = _interopRequireDefault(require_docPullquoteRole()), _docQnaRole = _interopRequireDefault(require_docQnaRole()), _docSubtitleRole = _interopRequireDefault(require_docSubtitleRole()), _docTipRole = _interopRequireDefault(require_docTipRole()), _docTocRole = _interopRequireDefault(require_docTocRole());
  23647. function _interopRequireDefault(e) {
  23648. return e && e.__esModule ? e : { default: e };
  23649. }
  23650. var ariaDpubRoles = [["doc-abstract", _docAbstractRole.default], ["doc-acknowledgments", _docAcknowledgmentsRole.default], ["doc-afterword", _docAfterwordRole.default], ["doc-appendix", _docAppendixRole.default], ["doc-backlink", _docBacklinkRole.default], ["doc-biblioentry", _docBiblioentryRole.default], ["doc-bibliography", _docBibliographyRole.default], ["doc-biblioref", _docBibliorefRole.default], ["doc-chapter", _docChapterRole.default], ["doc-colophon", _docColophonRole.default], ["doc-conclusion", _docConclusionRole.default], ["doc-cover", _docCoverRole.default], ["doc-credit", _docCreditRole.default], ["doc-credits", _docCreditsRole.default], ["doc-dedication", _docDedicationRole.default], ["doc-endnote", _docEndnoteRole.default], ["doc-endnotes", _docEndnotesRole.default], ["doc-epigraph", _docEpigraphRole.default], ["doc-epilogue", _docEpilogueRole.default], ["doc-errata", _docErrataRole.default], ["doc-example", _docExampleRole.default], ["doc-footnote", _docFootnoteRole.default], ["doc-foreword", _docForewordRole.default], ["doc-glossary", _docGlossaryRole.default], ["doc-glossref", _docGlossrefRole.default], ["doc-index", _docIndexRole.default], ["doc-introduction", _docIntroductionRole.default], ["doc-noteref", _docNoterefRole.default], ["doc-notice", _docNoticeRole.default], ["doc-pagebreak", _docPagebreakRole.default], ["doc-pagefooter", _docPagefooterRole.default], ["doc-pageheader", _docPageheaderRole.default], ["doc-pagelist", _docPagelistRole.default], ["doc-part", _docPartRole.default], ["doc-preface", _docPrefaceRole.default], ["doc-prologue", _docPrologueRole.default], ["doc-pullquote", _docPullquoteRole.default], ["doc-qna", _docQnaRole.default], ["doc-subtitle", _docSubtitleRole.default], ["doc-tip", _docTipRole.default], ["doc-toc", _docTocRole.default]], _default = exports.default = ariaDpubRoles;
  23651. }
  23652. });
  23653. // ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js
  23654. var require_graphicsDocumentRole = __commonJS({
  23655. "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(exports) {
  23656. "use strict";
  23657. Object.defineProperty(exports, "__esModule", {
  23658. value: !0
  23659. });
  23660. exports.default = void 0;
  23661. var graphicsDocumentRole = {
  23662. abstract: !1,
  23663. accessibleNameRequired: !0,
  23664. baseConcepts: [],
  23665. childrenPresentational: !1,
  23666. nameFrom: ["author"],
  23667. prohibitedProps: [],
  23668. props: {
  23669. "aria-disabled": null,
  23670. "aria-errormessage": null,
  23671. "aria-expanded": null,
  23672. "aria-haspopup": null,
  23673. "aria-invalid": null
  23674. },
  23675. relatedConcepts: [{
  23676. module: "GRAPHICS",
  23677. concept: {
  23678. name: "graphics-object"
  23679. }
  23680. }, {
  23681. module: "ARIA",
  23682. concept: {
  23683. name: "img"
  23684. }
  23685. }, {
  23686. module: "ARIA",
  23687. concept: {
  23688. name: "article"
  23689. }
  23690. }],
  23691. requireContextRole: [],
  23692. requiredContextRole: [],
  23693. requiredOwnedElements: [],
  23694. requiredProps: {},
  23695. superClass: [["roletype", "structure", "document"]]
  23696. }, _default = exports.default = graphicsDocumentRole;
  23697. }
  23698. });
  23699. // ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js
  23700. var require_graphicsObjectRole = __commonJS({
  23701. "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(exports) {
  23702. "use strict";
  23703. Object.defineProperty(exports, "__esModule", {
  23704. value: !0
  23705. });
  23706. exports.default = void 0;
  23707. var graphicsObjectRole = {
  23708. abstract: !1,
  23709. accessibleNameRequired: !1,
  23710. baseConcepts: [],
  23711. childrenPresentational: !1,
  23712. nameFrom: ["author", "contents"],
  23713. prohibitedProps: [],
  23714. props: {
  23715. "aria-errormessage": null,
  23716. "aria-expanded": null,
  23717. "aria-haspopup": null,
  23718. "aria-invalid": null
  23719. },
  23720. relatedConcepts: [{
  23721. module: "GRAPHICS",
  23722. concept: {
  23723. name: "graphics-document"
  23724. }
  23725. }, {
  23726. module: "ARIA",
  23727. concept: {
  23728. name: "group"
  23729. }
  23730. }, {
  23731. module: "ARIA",
  23732. concept: {
  23733. name: "img"
  23734. }
  23735. }, {
  23736. module: "GRAPHICS",
  23737. concept: {
  23738. name: "graphics-symbol"
  23739. }
  23740. }],
  23741. requireContextRole: [],
  23742. requiredContextRole: [],
  23743. requiredOwnedElements: [],
  23744. requiredProps: {},
  23745. superClass: [["roletype", "structure", "section", "group"]]
  23746. }, _default = exports.default = graphicsObjectRole;
  23747. }
  23748. });
  23749. // ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js
  23750. var require_graphicsSymbolRole = __commonJS({
  23751. "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(exports) {
  23752. "use strict";
  23753. Object.defineProperty(exports, "__esModule", {
  23754. value: !0
  23755. });
  23756. exports.default = void 0;
  23757. var graphicsSymbolRole = {
  23758. abstract: !1,
  23759. accessibleNameRequired: !0,
  23760. baseConcepts: [],
  23761. childrenPresentational: !0,
  23762. nameFrom: ["author"],
  23763. prohibitedProps: [],
  23764. props: {
  23765. "aria-disabled": null,
  23766. "aria-errormessage": null,
  23767. "aria-expanded": null,
  23768. "aria-haspopup": null,
  23769. "aria-invalid": null
  23770. },
  23771. relatedConcepts: [],
  23772. requireContextRole: [],
  23773. requiredContextRole: [],
  23774. requiredOwnedElements: [],
  23775. requiredProps: {},
  23776. superClass: [["roletype", "structure", "section", "img"]]
  23777. }, _default = exports.default = graphicsSymbolRole;
  23778. }
  23779. });
  23780. // ../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js
  23781. var require_ariaGraphicsRoles = __commonJS({
  23782. "../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(exports) {
  23783. "use strict";
  23784. Object.defineProperty(exports, "__esModule", {
  23785. value: !0
  23786. });
  23787. exports.default = void 0;
  23788. var _graphicsDocumentRole = _interopRequireDefault(require_graphicsDocumentRole()), _graphicsObjectRole = _interopRequireDefault(require_graphicsObjectRole()), _graphicsSymbolRole = _interopRequireDefault(require_graphicsSymbolRole());
  23789. function _interopRequireDefault(e) {
  23790. return e && e.__esModule ? e : { default: e };
  23791. }
  23792. var ariaGraphicsRoles = [["graphics-document", _graphicsDocumentRole.default], ["graphics-object", _graphicsObjectRole.default], ["graphics-symbol", _graphicsSymbolRole.default]], _default = exports.default = ariaGraphicsRoles;
  23793. }
  23794. });
  23795. // ../../node_modules/aria-query/lib/rolesMap.js
  23796. var require_rolesMap = __commonJS({
  23797. "../../node_modules/aria-query/lib/rolesMap.js"(exports) {
  23798. "use strict";
  23799. Object.defineProperty(exports, "__esModule", {
  23800. value: !0
  23801. });
  23802. exports.default = void 0;
  23803. var _ariaAbstractRoles = _interopRequireDefault(require_ariaAbstractRoles()), _ariaLiteralRoles = _interopRequireDefault(require_ariaLiteralRoles()), _ariaDpubRoles = _interopRequireDefault(require_ariaDpubRoles()), _ariaGraphicsRoles = _interopRequireDefault(require_ariaGraphicsRoles()), _iterationDecorator = _interopRequireDefault(require_iterationDecorator());
  23804. function _interopRequireDefault(e) {
  23805. return e && e.__esModule ? e : { default: e };
  23806. }
  23807. function _createForOfIteratorHelper(r2, e) {
  23808. var t = typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  23809. if (!t) {
  23810. if (Array.isArray(r2) || (t = _unsupportedIterableToArray2(r2)) || e && r2 && typeof r2.length == "number") {
  23811. t && (r2 = t);
  23812. var _n = 0, F = function() {
  23813. };
  23814. return { s: F, n: function() {
  23815. return _n >= r2.length ? { done: !0 } : { done: !1, value: r2[_n++] };
  23816. }, e: function(r3) {
  23817. throw r3;
  23818. }, f: F };
  23819. }
  23820. throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  23821. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  23822. }
  23823. var o, a3 = !0, u2 = !1;
  23824. return { s: function() {
  23825. t = t.call(r2);
  23826. }, n: function() {
  23827. var r3 = t.next();
  23828. return a3 = r3.done, r3;
  23829. }, e: function(r3) {
  23830. u2 = !0, o = r3;
  23831. }, f: function() {
  23832. try {
  23833. a3 || t.return == null || t.return();
  23834. } finally {
  23835. if (u2) throw o;
  23836. }
  23837. } };
  23838. }
  23839. function _slicedToArray(r2, e) {
  23840. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  23841. }
  23842. function _nonIterableRest() {
  23843. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  23844. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  23845. }
  23846. function _unsupportedIterableToArray2(r2, a3) {
  23847. if (r2) {
  23848. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  23849. var t = {}.toString.call(r2).slice(8, -1);
  23850. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  23851. }
  23852. }
  23853. function _arrayLikeToArray2(r2, a3) {
  23854. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  23855. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  23856. return n;
  23857. }
  23858. function _iterableToArrayLimit(r2, l) {
  23859. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  23860. if (t != null) {
  23861. var e, n, i, u2, a3 = [], f4 = !0, o = !1;
  23862. try {
  23863. if (i = (t = t.call(r2)).next, l === 0) {
  23864. if (Object(t) !== t) return;
  23865. f4 = !1;
  23866. } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  23867. } catch (r3) {
  23868. o = !0, n = r3;
  23869. } finally {
  23870. try {
  23871. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  23872. } finally {
  23873. if (o) throw n;
  23874. }
  23875. }
  23876. return a3;
  23877. }
  23878. }
  23879. function _arrayWithHoles(r2) {
  23880. if (Array.isArray(r2)) return r2;
  23881. }
  23882. var roles3 = [].concat(_ariaAbstractRoles.default, _ariaLiteralRoles.default, _ariaDpubRoles.default, _ariaGraphicsRoles.default);
  23883. roles3.forEach(function(_ref) {
  23884. var _ref2 = _slicedToArray(_ref, 2), roleDefinition = _ref2[1], _iterator = _createForOfIteratorHelper(roleDefinition.superClass), _step;
  23885. try {
  23886. for (_iterator.s(); !(_step = _iterator.n()).done; ) {
  23887. var superClassIter = _step.value, _iterator2 = _createForOfIteratorHelper(superClassIter), _step2;
  23888. try {
  23889. var _loop = function() {
  23890. var superClassName = _step2.value, superClassRoleTuple = roles3.filter(function(_ref3) {
  23891. var _ref4 = _slicedToArray(_ref3, 1), name = _ref4[0];
  23892. return name === superClassName;
  23893. })[0];
  23894. if (superClassRoleTuple)
  23895. for (var superClassDefinition = superClassRoleTuple[1], _i = 0, _Object$keys = Object.keys(superClassDefinition.props); _i < _Object$keys.length; _i++) {
  23896. var prop = _Object$keys[_i];
  23897. Object.prototype.hasOwnProperty.call(roleDefinition.props, prop) || (roleDefinition.props[prop] = superClassDefinition.props[prop]);
  23898. }
  23899. };
  23900. for (_iterator2.s(); !(_step2 = _iterator2.n()).done; )
  23901. _loop();
  23902. } catch (err) {
  23903. _iterator2.e(err);
  23904. } finally {
  23905. _iterator2.f();
  23906. }
  23907. }
  23908. } catch (err) {
  23909. _iterator.e(err);
  23910. } finally {
  23911. _iterator.f();
  23912. }
  23913. });
  23914. var rolesMap = {
  23915. entries: function() {
  23916. return roles3;
  23917. },
  23918. forEach: function(fn4) {
  23919. var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _iterator3 = _createForOfIteratorHelper(roles3), _step3;
  23920. try {
  23921. for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
  23922. var _step3$value = _slicedToArray(_step3.value, 2), key = _step3$value[0], values = _step3$value[1];
  23923. fn4.call(thisArg, values, key, roles3);
  23924. }
  23925. } catch (err) {
  23926. _iterator3.e(err);
  23927. } finally {
  23928. _iterator3.f();
  23929. }
  23930. },
  23931. get: function(key) {
  23932. var item = roles3.filter(function(tuple) {
  23933. return tuple[0] === key;
  23934. })[0];
  23935. return item && item[1];
  23936. },
  23937. has: function(key) {
  23938. return !!rolesMap.get(key);
  23939. },
  23940. keys: function() {
  23941. return roles3.map(function(_ref5) {
  23942. var _ref6 = _slicedToArray(_ref5, 1), key = _ref6[0];
  23943. return key;
  23944. });
  23945. },
  23946. values: function() {
  23947. return roles3.map(function(_ref7) {
  23948. var _ref8 = _slicedToArray(_ref7, 2), values2 = _ref8[1];
  23949. return values2;
  23950. });
  23951. }
  23952. }, _default = exports.default = (0, _iterationDecorator.default)(rolesMap, rolesMap.entries());
  23953. }
  23954. });
  23955. // ../../node_modules/aria-query/lib/elementRoleMap.js
  23956. var require_elementRoleMap = __commonJS({
  23957. "../../node_modules/aria-query/lib/elementRoleMap.js"(exports) {
  23958. "use strict";
  23959. Object.defineProperty(exports, "__esModule", {
  23960. value: !0
  23961. });
  23962. exports.default = void 0;
  23963. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()), _rolesMap = _interopRequireDefault(require_rolesMap());
  23964. function _interopRequireDefault(e) {
  23965. return e && e.__esModule ? e : { default: e };
  23966. }
  23967. function _slicedToArray(r2, e) {
  23968. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  23969. }
  23970. function _nonIterableRest() {
  23971. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  23972. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  23973. }
  23974. function _unsupportedIterableToArray2(r2, a3) {
  23975. if (r2) {
  23976. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  23977. var t = {}.toString.call(r2).slice(8, -1);
  23978. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  23979. }
  23980. }
  23981. function _arrayLikeToArray2(r2, a3) {
  23982. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  23983. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  23984. return n;
  23985. }
  23986. function _iterableToArrayLimit(r2, l) {
  23987. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  23988. if (t != null) {
  23989. var e, n, i2, u2, a3 = [], f4 = !0, o = !1;
  23990. try {
  23991. if (i2 = (t = t.call(r2)).next, l === 0) {
  23992. if (Object(t) !== t) return;
  23993. f4 = !1;
  23994. } else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  23995. } catch (r3) {
  23996. o = !0, n = r3;
  23997. } finally {
  23998. try {
  23999. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  24000. } finally {
  24001. if (o) throw n;
  24002. }
  24003. }
  24004. return a3;
  24005. }
  24006. }
  24007. function _arrayWithHoles(r2) {
  24008. if (Array.isArray(r2)) return r2;
  24009. }
  24010. var elementRoles3 = [], keys3 = _rolesMap.default.keys();
  24011. for (i = 0; i < keys3.length; i++)
  24012. if (key = keys3[i], role = _rolesMap.default.get(key), role)
  24013. for (concepts = [].concat(role.baseConcepts, role.relatedConcepts), _loop = function() {
  24014. var relation = concepts[k];
  24015. if (relation.module === "HTML") {
  24016. var concept = relation.concept;
  24017. if (concept) {
  24018. var elementRoleRelation = elementRoles3.filter(function(relation2) {
  24019. return ariaRoleRelationConceptEquals(relation2[0], concept);
  24020. })[0], roles3;
  24021. elementRoleRelation ? roles3 = elementRoleRelation[1] : roles3 = [];
  24022. for (var isUnique = !0, _i = 0; _i < roles3.length; _i++)
  24023. if (roles3[_i] === key) {
  24024. isUnique = !1;
  24025. break;
  24026. }
  24027. isUnique && roles3.push(key), elementRoleRelation || elementRoles3.push([concept, roles3]);
  24028. }
  24029. }
  24030. }, k = 0; k < concepts.length; k++)
  24031. _loop();
  24032. var key, role, concepts, _loop, k, i, elementRoleMap = {
  24033. entries: function() {
  24034. return elementRoles3;
  24035. },
  24036. forEach: function(fn4) {
  24037. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i2 = 0, _elementRoles = elementRoles3; _i2 < _elementRoles.length; _i2++) {
  24038. var _elementRoles$_i = _slicedToArray(_elementRoles[_i2], 2), _key = _elementRoles$_i[0], values = _elementRoles$_i[1];
  24039. fn4.call(thisArg, values, _key, elementRoles3);
  24040. }
  24041. },
  24042. get: function(key2) {
  24043. var item = elementRoles3.filter(function(tuple) {
  24044. return key2.name === tuple[0].name && ariaRoleRelationConceptAttributeEquals(key2.attributes, tuple[0].attributes);
  24045. })[0];
  24046. return item && item[1];
  24047. },
  24048. has: function(key2) {
  24049. return !!elementRoleMap.get(key2);
  24050. },
  24051. keys: function() {
  24052. return elementRoles3.map(function(_ref) {
  24053. var _ref2 = _slicedToArray(_ref, 1), key2 = _ref2[0];
  24054. return key2;
  24055. });
  24056. },
  24057. values: function() {
  24058. return elementRoles3.map(function(_ref3) {
  24059. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  24060. return values2;
  24061. });
  24062. }
  24063. };
  24064. function ariaRoleRelationConceptEquals(a3, b) {
  24065. return a3.name === b.name && ariaRoleRelationConstraintsEquals(a3.constraints, b.constraints) && ariaRoleRelationConceptAttributeEquals(a3.attributes, b.attributes);
  24066. }
  24067. function ariaRoleRelationConstraintsEquals(a3, b) {
  24068. if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0)
  24069. return !1;
  24070. if (a3 !== void 0 && b !== void 0) {
  24071. if (a3.length !== b.length)
  24072. return !1;
  24073. for (var _i3 = 0; _i3 < a3.length; _i3++)
  24074. if (a3[_i3] !== b[_i3])
  24075. return !1;
  24076. }
  24077. return !0;
  24078. }
  24079. function ariaRoleRelationConceptAttributeEquals(a3, b) {
  24080. if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0)
  24081. return !1;
  24082. if (a3 !== void 0 && b !== void 0) {
  24083. if (a3.length !== b.length)
  24084. return !1;
  24085. for (var _i4 = 0; _i4 < a3.length; _i4++) {
  24086. if (a3[_i4].name !== b[_i4].name || a3[_i4].value !== b[_i4].value || a3[_i4].constraints === void 0 && b[_i4].constraints !== void 0 || a3[_i4].constraints !== void 0 && b[_i4].constraints === void 0)
  24087. return !1;
  24088. if (a3[_i4].constraints !== void 0 && b[_i4].constraints !== void 0) {
  24089. if (a3[_i4].constraints.length !== b[_i4].constraints.length)
  24090. return !1;
  24091. for (var j = 0; j < a3[_i4].constraints.length; j++)
  24092. if (a3[_i4].constraints[j] !== b[_i4].constraints[j])
  24093. return !1;
  24094. }
  24095. }
  24096. }
  24097. return !0;
  24098. }
  24099. var _default = exports.default = (0, _iterationDecorator.default)(elementRoleMap, elementRoleMap.entries());
  24100. }
  24101. });
  24102. // ../../node_modules/aria-query/lib/roleElementMap.js
  24103. var require_roleElementMap = __commonJS({
  24104. "../../node_modules/aria-query/lib/roleElementMap.js"(exports) {
  24105. "use strict";
  24106. Object.defineProperty(exports, "__esModule", {
  24107. value: !0
  24108. });
  24109. exports.default = void 0;
  24110. var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()), _rolesMap = _interopRequireDefault(require_rolesMap());
  24111. function _interopRequireDefault(e) {
  24112. return e && e.__esModule ? e : { default: e };
  24113. }
  24114. function _slicedToArray(r2, e) {
  24115. return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest();
  24116. }
  24117. function _nonIterableRest() {
  24118. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  24119. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  24120. }
  24121. function _unsupportedIterableToArray2(r2, a3) {
  24122. if (r2) {
  24123. if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3);
  24124. var t = {}.toString.call(r2).slice(8, -1);
  24125. return t === "Object" && r2.constructor && (t = r2.constructor.name), t === "Map" || t === "Set" ? Array.from(r2) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r2, a3) : void 0;
  24126. }
  24127. }
  24128. function _arrayLikeToArray2(r2, a3) {
  24129. (a3 == null || a3 > r2.length) && (a3 = r2.length);
  24130. for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e];
  24131. return n;
  24132. }
  24133. function _iterableToArrayLimit(r2, l) {
  24134. var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
  24135. if (t != null) {
  24136. var e, n, i2, u2, a3 = [], f4 = !0, o = !1;
  24137. try {
  24138. if (i2 = (t = t.call(r2)).next, l === 0) {
  24139. if (Object(t) !== t) return;
  24140. f4 = !1;
  24141. } else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
  24142. } catch (r3) {
  24143. o = !0, n = r3;
  24144. } finally {
  24145. try {
  24146. if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
  24147. } finally {
  24148. if (o) throw n;
  24149. }
  24150. }
  24151. return a3;
  24152. }
  24153. }
  24154. function _arrayWithHoles(r2) {
  24155. if (Array.isArray(r2)) return r2;
  24156. }
  24157. var roleElement = [], keys3 = _rolesMap.default.keys();
  24158. for (i = 0; i < keys3.length; i++)
  24159. if (key = keys3[i], role = _rolesMap.default.get(key), relationConcepts = [], role) {
  24160. for (concepts = [].concat(role.baseConcepts, role.relatedConcepts), k = 0; k < concepts.length; k++)
  24161. relation = concepts[k], relation.module === "HTML" && (concept = relation.concept, concept != null && relationConcepts.push(concept));
  24162. relationConcepts.length > 0 && roleElement.push([key, relationConcepts]);
  24163. }
  24164. var key, role, relationConcepts, concepts, relation, concept, k, i, roleElementMap = {
  24165. entries: function() {
  24166. return roleElement;
  24167. },
  24168. forEach: function(fn4) {
  24169. for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _roleElement = roleElement; _i < _roleElement.length; _i++) {
  24170. var _roleElement$_i = _slicedToArray(_roleElement[_i], 2), _key = _roleElement$_i[0], values = _roleElement$_i[1];
  24171. fn4.call(thisArg, values, _key, roleElement);
  24172. }
  24173. },
  24174. get: function(key2) {
  24175. var item = roleElement.filter(function(tuple) {
  24176. return tuple[0] === key2;
  24177. })[0];
  24178. return item && item[1];
  24179. },
  24180. has: function(key2) {
  24181. return !!roleElementMap.get(key2);
  24182. },
  24183. keys: function() {
  24184. return roleElement.map(function(_ref) {
  24185. var _ref2 = _slicedToArray(_ref, 1), key2 = _ref2[0];
  24186. return key2;
  24187. });
  24188. },
  24189. values: function() {
  24190. return roleElement.map(function(_ref3) {
  24191. var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1];
  24192. return values2;
  24193. });
  24194. }
  24195. }, _default = exports.default = (0, _iterationDecorator.default)(roleElementMap, roleElementMap.entries());
  24196. }
  24197. });
  24198. // ../../node_modules/aria-query/lib/index.js
  24199. var require_lib2 = __commonJS({
  24200. "../../node_modules/aria-query/lib/index.js"(exports) {
  24201. "use strict";
  24202. Object.defineProperty(exports, "__esModule", {
  24203. value: !0
  24204. });
  24205. exports.roles = exports.roleElements = exports.elementRoles = exports.dom = exports.aria = void 0;
  24206. var _ariaPropsMap = _interopRequireDefault(require_ariaPropsMap()), _domMap = _interopRequireDefault(require_domMap()), _rolesMap = _interopRequireDefault(require_rolesMap()), _elementRoleMap = _interopRequireDefault(require_elementRoleMap()), _roleElementMap = _interopRequireDefault(require_roleElementMap());
  24207. function _interopRequireDefault(e) {
  24208. return e && e.__esModule ? e : { default: e };
  24209. }
  24210. var aria = exports.aria = _ariaPropsMap.default, dom = exports.dom = _domMap.default, roles3 = exports.roles = _rolesMap.default, elementRoles3 = exports.elementRoles = _elementRoleMap.default, roleElements2 = exports.roleElements = _roleElementMap.default;
  24211. }
  24212. });
  24213. // ../../node_modules/css.escape/css.escape.js
  24214. var require_css_escape = __commonJS({
  24215. "../../node_modules/css.escape/css.escape.js"(exports, module2) {
  24216. (function(root2, factory) {
  24217. typeof exports == "object" ? module2.exports = factory(root2) : typeof define == "function" && define.amd ? define([], factory.bind(root2, root2)) : factory(root2);
  24218. })(typeof global < "u" ? global : exports, function(root2) {
  24219. if (root2.CSS && root2.CSS.escape)
  24220. return root2.CSS.escape;
  24221. var cssEscape = function(value) {
  24222. if (arguments.length == 0)
  24223. throw new TypeError("`CSS.escape` requires an argument.");
  24224. for (var string = String(value), length2 = string.length, index4 = -1, codeUnit, result = "", firstCodeUnit = string.charCodeAt(0); ++index4 < length2; ) {
  24225. if (codeUnit = string.charCodeAt(index4), codeUnit == 0) {
  24226. result += "\uFFFD";
  24227. continue;
  24228. }
  24229. if (
  24230. // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
  24231. // U+007F, […]
  24232. codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || // If the character is the first character and is in the range [0-9]
  24233. // (U+0030 to U+0039), […]
  24234. index4 == 0 && codeUnit >= 48 && codeUnit <= 57 || // If the character is the second character and is in the range [0-9]
  24235. // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
  24236. index4 == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45
  24237. ) {
  24238. result += "\\" + codeUnit.toString(16) + " ";
  24239. continue;
  24240. }
  24241. if (
  24242. // If the character is the first character and is a `-` (U+002D), and
  24243. // there is no second character, […]
  24244. index4 == 0 && length2 == 1 && codeUnit == 45
  24245. ) {
  24246. result += "\\" + string.charAt(index4);
  24247. continue;
  24248. }
  24249. if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
  24250. result += string.charAt(index4);
  24251. continue;
  24252. }
  24253. result += "\\" + string.charAt(index4);
  24254. }
  24255. return result;
  24256. };
  24257. return root2.CSS || (root2.CSS = {}), root2.CSS.escape = cssEscape, cssEscape;
  24258. });
  24259. }
  24260. });
  24261. // ../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js
  24262. var require_ansi_styles = __commonJS({
  24263. "../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(exports, module2) {
  24264. "use strict";
  24265. var wrapAnsi256 = (offset3 = 0) => (code) => `\x1B[${38 + offset3};5;${code}m`, wrapAnsi16m = (offset3 = 0) => (red, green, blue) => `\x1B[${38 + offset3};2;${red};${green};${blue}m`;
  24266. function assembleStyles() {
  24267. let codes = /* @__PURE__ */ new Map(), styles4 = {
  24268. modifier: {
  24269. reset: [0, 0],
  24270. // 21 isn't widely supported and 22 does the same thing
  24271. bold: [1, 22],
  24272. dim: [2, 22],
  24273. italic: [3, 23],
  24274. underline: [4, 24],
  24275. overline: [53, 55],
  24276. inverse: [7, 27],
  24277. hidden: [8, 28],
  24278. strikethrough: [9, 29]
  24279. },
  24280. color: {
  24281. black: [30, 39],
  24282. red: [31, 39],
  24283. green: [32, 39],
  24284. yellow: [33, 39],
  24285. blue: [34, 39],
  24286. magenta: [35, 39],
  24287. cyan: [36, 39],
  24288. white: [37, 39],
  24289. // Bright color
  24290. blackBright: [90, 39],
  24291. redBright: [91, 39],
  24292. greenBright: [92, 39],
  24293. yellowBright: [93, 39],
  24294. blueBright: [94, 39],
  24295. magentaBright: [95, 39],
  24296. cyanBright: [96, 39],
  24297. whiteBright: [97, 39]
  24298. },
  24299. bgColor: {
  24300. bgBlack: [40, 49],
  24301. bgRed: [41, 49],
  24302. bgGreen: [42, 49],
  24303. bgYellow: [43, 49],
  24304. bgBlue: [44, 49],
  24305. bgMagenta: [45, 49],
  24306. bgCyan: [46, 49],
  24307. bgWhite: [47, 49],
  24308. // Bright color
  24309. bgBlackBright: [100, 49],
  24310. bgRedBright: [101, 49],
  24311. bgGreenBright: [102, 49],
  24312. bgYellowBright: [103, 49],
  24313. bgBlueBright: [104, 49],
  24314. bgMagentaBright: [105, 49],
  24315. bgCyanBright: [106, 49],
  24316. bgWhiteBright: [107, 49]
  24317. }
  24318. };
  24319. styles4.color.gray = styles4.color.blackBright, styles4.bgColor.bgGray = styles4.bgColor.bgBlackBright, styles4.color.grey = styles4.color.blackBright, styles4.bgColor.bgGrey = styles4.bgColor.bgBlackBright;
  24320. for (let [groupName, group] of Object.entries(styles4)) {
  24321. for (let [styleName, style] of Object.entries(group))
  24322. styles4[styleName] = {
  24323. open: `\x1B[${style[0]}m`,
  24324. close: `\x1B[${style[1]}m`
  24325. }, group[styleName] = styles4[styleName], codes.set(style[0], style[1]);
  24326. Object.defineProperty(styles4, groupName, {
  24327. value: group,
  24328. enumerable: !1
  24329. });
  24330. }
  24331. return Object.defineProperty(styles4, "codes", {
  24332. value: codes,
  24333. enumerable: !1
  24334. }), styles4.color.close = "\x1B[39m", styles4.bgColor.close = "\x1B[49m", styles4.color.ansi256 = wrapAnsi256(), styles4.color.ansi16m = wrapAnsi16m(), styles4.bgColor.ansi256 = wrapAnsi256(10), styles4.bgColor.ansi16m = wrapAnsi16m(10), Object.defineProperties(styles4, {
  24335. rgbToAnsi256: {
  24336. value: (red, green, blue) => red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5),
  24337. enumerable: !1
  24338. },
  24339. hexToRgb: {
  24340. value: (hex3) => {
  24341. let matches4 = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex3.toString(16));
  24342. if (!matches4)
  24343. return [0, 0, 0];
  24344. let { colorString } = matches4.groups;
  24345. colorString.length === 3 && (colorString = colorString.split("").map((character2) => character2 + character2).join(""));
  24346. let integer = Number.parseInt(colorString, 16);
  24347. return [
  24348. integer >> 16 & 255,
  24349. integer >> 8 & 255,
  24350. integer & 255
  24351. ];
  24352. },
  24353. enumerable: !1
  24354. },
  24355. hexToAnsi256: {
  24356. value: (hex3) => styles4.rgbToAnsi256(...styles4.hexToRgb(hex3)),
  24357. enumerable: !1
  24358. }
  24359. }), styles4;
  24360. }
  24361. Object.defineProperty(module2, "exports", {
  24362. enumerable: !0,
  24363. get: assembleStyles
  24364. });
  24365. }
  24366. });
  24367. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js
  24368. var require_collections = __commonJS({
  24369. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(exports) {
  24370. "use strict";
  24371. Object.defineProperty(exports, "__esModule", {
  24372. value: !0
  24373. });
  24374. exports.printIteratorEntries = printIteratorEntries2;
  24375. exports.printIteratorValues = printIteratorValues2;
  24376. exports.printListItems = printListItems2;
  24377. exports.printObjectProperties = printObjectProperties2;
  24378. var getKeysOfEnumerableProperties2 = (object, compareKeys) => {
  24379. let keys3 = Object.keys(object).sort(compareKeys);
  24380. return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(object).forEach((symbol) => {
  24381. Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys3.push(symbol);
  24382. }), keys3;
  24383. };
  24384. function printIteratorEntries2(iterator, config4, indentation, depth, refs, printer2, separator = ": ") {
  24385. let result = "", current = iterator.next();
  24386. if (!current.done) {
  24387. result += config4.spacingOuter;
  24388. let indentationNext = indentation + config4.indent;
  24389. for (; !current.done; ) {
  24390. let name = printer2(
  24391. current.value[0],
  24392. config4,
  24393. indentationNext,
  24394. depth,
  24395. refs
  24396. ), value = printer2(
  24397. current.value[1],
  24398. config4,
  24399. indentationNext,
  24400. depth,
  24401. refs
  24402. );
  24403. result += indentationNext + name + separator + value, current = iterator.next(), current.done ? config4.min || (result += ",") : result += "," + config4.spacingInner;
  24404. }
  24405. result += config4.spacingOuter + indentation;
  24406. }
  24407. return result;
  24408. }
  24409. function printIteratorValues2(iterator, config4, indentation, depth, refs, printer2) {
  24410. let result = "", current = iterator.next();
  24411. if (!current.done) {
  24412. result += config4.spacingOuter;
  24413. let indentationNext = indentation + config4.indent;
  24414. for (; !current.done; )
  24415. result += indentationNext + printer2(current.value, config4, indentationNext, depth, refs), current = iterator.next(), current.done ? config4.min || (result += ",") : result += "," + config4.spacingInner;
  24416. result += config4.spacingOuter + indentation;
  24417. }
  24418. return result;
  24419. }
  24420. function printListItems2(list, config4, indentation, depth, refs, printer2) {
  24421. let result = "";
  24422. if (list.length) {
  24423. result += config4.spacingOuter;
  24424. let indentationNext = indentation + config4.indent;
  24425. for (let i = 0; i < list.length; i++)
  24426. result += indentationNext, i in list && (result += printer2(list[i], config4, indentationNext, depth, refs)), i < list.length - 1 ? result += "," + config4.spacingInner : config4.min || (result += ",");
  24427. result += config4.spacingOuter + indentation;
  24428. }
  24429. return result;
  24430. }
  24431. function printObjectProperties2(val, config4, indentation, depth, refs, printer2) {
  24432. let result = "", keys3 = getKeysOfEnumerableProperties2(val, config4.compareKeys);
  24433. if (keys3.length) {
  24434. result += config4.spacingOuter;
  24435. let indentationNext = indentation + config4.indent;
  24436. for (let i = 0; i < keys3.length; i++) {
  24437. let key = keys3[i], name = printer2(key, config4, indentationNext, depth, refs), value = printer2(val[key], config4, indentationNext, depth, refs);
  24438. result += indentationNext + name + ": " + value, i < keys3.length - 1 ? result += "," + config4.spacingInner : config4.min || (result += ",");
  24439. }
  24440. result += config4.spacingOuter + indentation;
  24441. }
  24442. return result;
  24443. }
  24444. }
  24445. });
  24446. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
  24447. var require_AsymmetricMatcher = __commonJS({
  24448. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
  24449. "use strict";
  24450. Object.defineProperty(exports, "__esModule", {
  24451. value: !0
  24452. });
  24453. exports.test = exports.serialize = exports.default = void 0;
  24454. var _collections = require_collections(), global2 = (function() {
  24455. return typeof globalThis < "u" ? globalThis : typeof global2 < "u" ? global2 : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
  24456. })(), Symbol3 = global2["jest-symbol-do-not-touch"] || global2.Symbol, asymmetricMatcher2 = typeof Symbol3 == "function" && Symbol3.for ? Symbol3.for("jest.asymmetricMatcher") : 1267621, SPACE2 = " ", serialize3 = (val, config4, indentation, depth, refs, printer2) => {
  24457. let stringedValue = val.toString();
  24458. return stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining" ? ++depth > config4.maxDepth ? "[" + stringedValue + "]" : stringedValue + SPACE2 + "[" + (0, _collections.printListItems)(
  24459. val.sample,
  24460. config4,
  24461. indentation,
  24462. depth,
  24463. refs,
  24464. printer2
  24465. ) + "]" : stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining" ? ++depth > config4.maxDepth ? "[" + stringedValue + "]" : stringedValue + SPACE2 + "{" + (0, _collections.printObjectProperties)(
  24466. val.sample,
  24467. config4,
  24468. indentation,
  24469. depth,
  24470. refs,
  24471. printer2
  24472. ) + "}" : stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining" ? stringedValue + SPACE2 + printer2(val.sample, config4, indentation, depth, refs) : val.toAsymmetricMatcher();
  24473. };
  24474. exports.serialize = serialize3;
  24475. var test3 = (val) => val && val.$$typeof === asymmetricMatcher2;
  24476. exports.test = test3;
  24477. var plugin2 = {
  24478. serialize: serialize3,
  24479. test: test3
  24480. }, _default = plugin2;
  24481. exports.default = _default;
  24482. }
  24483. });
  24484. // ../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js
  24485. var require_ansi_regex = __commonJS({
  24486. "../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(exports, module2) {
  24487. "use strict";
  24488. module2.exports = ({ onlyFirst = !1 } = {}) => {
  24489. let pattern = [
  24490. "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
  24491. "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
  24492. ].join("|");
  24493. return new RegExp(pattern, onlyFirst ? void 0 : "g");
  24494. };
  24495. }
  24496. });
  24497. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js
  24498. var require_ConvertAnsi = __commonJS({
  24499. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
  24500. "use strict";
  24501. Object.defineProperty(exports, "__esModule", {
  24502. value: !0
  24503. });
  24504. exports.test = exports.serialize = exports.default = void 0;
  24505. var _ansiRegex = _interopRequireDefault(require_ansi_regex()), _ansiStyles = _interopRequireDefault(require_ansi_styles());
  24506. function _interopRequireDefault(obj) {
  24507. return obj && obj.__esModule ? obj : { default: obj };
  24508. }
  24509. var toHumanReadableAnsi = (text) => text.replace((0, _ansiRegex.default)(), (match3) => {
  24510. switch (match3) {
  24511. case _ansiStyles.default.red.close:
  24512. case _ansiStyles.default.green.close:
  24513. case _ansiStyles.default.cyan.close:
  24514. case _ansiStyles.default.gray.close:
  24515. case _ansiStyles.default.white.close:
  24516. case _ansiStyles.default.yellow.close:
  24517. case _ansiStyles.default.bgRed.close:
  24518. case _ansiStyles.default.bgGreen.close:
  24519. case _ansiStyles.default.bgYellow.close:
  24520. case _ansiStyles.default.inverse.close:
  24521. case _ansiStyles.default.dim.close:
  24522. case _ansiStyles.default.bold.close:
  24523. case _ansiStyles.default.reset.open:
  24524. case _ansiStyles.default.reset.close:
  24525. return "</>";
  24526. case _ansiStyles.default.red.open:
  24527. return "<red>";
  24528. case _ansiStyles.default.green.open:
  24529. return "<green>";
  24530. case _ansiStyles.default.cyan.open:
  24531. return "<cyan>";
  24532. case _ansiStyles.default.gray.open:
  24533. return "<gray>";
  24534. case _ansiStyles.default.white.open:
  24535. return "<white>";
  24536. case _ansiStyles.default.yellow.open:
  24537. return "<yellow>";
  24538. case _ansiStyles.default.bgRed.open:
  24539. return "<bgRed>";
  24540. case _ansiStyles.default.bgGreen.open:
  24541. return "<bgGreen>";
  24542. case _ansiStyles.default.bgYellow.open:
  24543. return "<bgYellow>";
  24544. case _ansiStyles.default.inverse.open:
  24545. return "<inverse>";
  24546. case _ansiStyles.default.dim.open:
  24547. return "<dim>";
  24548. case _ansiStyles.default.bold.open:
  24549. return "<bold>";
  24550. default:
  24551. return "";
  24552. }
  24553. }), test3 = (val) => typeof val == "string" && !!val.match((0, _ansiRegex.default)());
  24554. exports.test = test3;
  24555. var serialize3 = (val, config4, indentation, depth, refs, printer2) => printer2(toHumanReadableAnsi(val), config4, indentation, depth, refs);
  24556. exports.serialize = serialize3;
  24557. var plugin2 = {
  24558. serialize: serialize3,
  24559. test: test3
  24560. }, _default = plugin2;
  24561. exports.default = _default;
  24562. }
  24563. });
  24564. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js
  24565. var require_DOMCollection = __commonJS({
  24566. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
  24567. "use strict";
  24568. Object.defineProperty(exports, "__esModule", {
  24569. value: !0
  24570. });
  24571. exports.test = exports.serialize = exports.default = void 0;
  24572. var _collections = require_collections(), SPACE2 = " ", OBJECT_NAMES2 = ["DOMStringMap", "NamedNodeMap"], ARRAY_REGEXP2 = /^(HTML\w*Collection|NodeList)$/, testName2 = (name) => OBJECT_NAMES2.indexOf(name) !== -1 || ARRAY_REGEXP2.test(name), test3 = (val) => val && val.constructor && !!val.constructor.name && testName2(val.constructor.name);
  24573. exports.test = test3;
  24574. var isNamedNodeMap2 = (collection) => collection.constructor.name === "NamedNodeMap", serialize3 = (collection, config4, indentation, depth, refs, printer2) => {
  24575. let name = collection.constructor.name;
  24576. return ++depth > config4.maxDepth ? "[" + name + "]" : (config4.min ? "" : name + SPACE2) + (OBJECT_NAMES2.indexOf(name) !== -1 ? "{" + (0, _collections.printObjectProperties)(
  24577. isNamedNodeMap2(collection) ? Array.from(collection).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection },
  24578. config4,
  24579. indentation,
  24580. depth,
  24581. refs,
  24582. printer2
  24583. ) + "}" : "[" + (0, _collections.printListItems)(
  24584. Array.from(collection),
  24585. config4,
  24586. indentation,
  24587. depth,
  24588. refs,
  24589. printer2
  24590. ) + "]");
  24591. };
  24592. exports.serialize = serialize3;
  24593. var plugin2 = {
  24594. serialize: serialize3,
  24595. test: test3
  24596. }, _default = plugin2;
  24597. exports.default = _default;
  24598. }
  24599. });
  24600. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
  24601. var require_escapeHTML = __commonJS({
  24602. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
  24603. "use strict";
  24604. Object.defineProperty(exports, "__esModule", {
  24605. value: !0
  24606. });
  24607. exports.default = escapeHTML3;
  24608. function escapeHTML3(str2) {
  24609. return str2.replace(/</g, "&lt;").replace(/>/g, "&gt;");
  24610. }
  24611. }
  24612. });
  24613. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js
  24614. var require_markup2 = __commonJS({
  24615. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
  24616. "use strict";
  24617. Object.defineProperty(exports, "__esModule", {
  24618. value: !0
  24619. });
  24620. exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
  24621. var _escapeHTML = _interopRequireDefault(require_escapeHTML());
  24622. function _interopRequireDefault(obj) {
  24623. return obj && obj.__esModule ? obj : { default: obj };
  24624. }
  24625. var printProps3 = (keys3, props, config4, indentation, depth, refs, printer2) => {
  24626. let indentationNext = indentation + config4.indent, colors3 = config4.colors;
  24627. return keys3.map((key) => {
  24628. let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs);
  24629. return typeof value != "string" && (printed.indexOf(`
  24630. `) !== -1 && (printed = config4.spacingOuter + indentationNext + printed + config4.spacingOuter + indentation), printed = "{" + printed + "}"), config4.spacingInner + indentation + colors3.prop.open + key + colors3.prop.close + "=" + colors3.value.open + printed + colors3.value.close;
  24631. }).join("");
  24632. };
  24633. exports.printProps = printProps3;
  24634. var printChildren3 = (children, config4, indentation, depth, refs, printer2) => children.map(
  24635. (child) => config4.spacingOuter + indentation + (typeof child == "string" ? printText3(child, config4) : printer2(child, config4, indentation, depth, refs))
  24636. ).join("");
  24637. exports.printChildren = printChildren3;
  24638. var printText3 = (text, config4) => {
  24639. let contentColor = config4.colors.content;
  24640. return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close;
  24641. };
  24642. exports.printText = printText3;
  24643. var printComment3 = (comment2, config4) => {
  24644. let commentColor = config4.colors.comment;
  24645. return commentColor.open + "<!--" + (0, _escapeHTML.default)(comment2) + "-->" + commentColor.close;
  24646. };
  24647. exports.printComment = printComment3;
  24648. var printElement3 = (type5, printedProps, printedChildren, config4, indentation) => {
  24649. let tagColor = config4.colors.tag;
  24650. return tagColor.open + "<" + type5 + (printedProps && tagColor.close + printedProps + config4.spacingOuter + indentation + tagColor.open) + (printedChildren ? ">" + tagColor.close + printedChildren + config4.spacingOuter + indentation + tagColor.open + "</" + type5 : (printedProps && !config4.min ? "" : " ") + "/") + ">" + tagColor.close;
  24651. };
  24652. exports.printElement = printElement3;
  24653. var printElementAsLeaf3 = (type5, config4) => {
  24654. let tagColor = config4.colors.tag;
  24655. return tagColor.open + "<" + type5 + tagColor.close + " \u2026" + tagColor.open + " />" + tagColor.close;
  24656. };
  24657. exports.printElementAsLeaf = printElementAsLeaf3;
  24658. }
  24659. });
  24660. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js
  24661. var require_DOMElement = __commonJS({
  24662. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
  24663. "use strict";
  24664. Object.defineProperty(exports, "__esModule", {
  24665. value: !0
  24666. });
  24667. exports.test = exports.serialize = exports.default = void 0;
  24668. var _markup = require_markup2(), ELEMENT_NODE3 = 1, TEXT_NODE3 = 3, COMMENT_NODE3 = 8, FRAGMENT_NODE3 = 11, ELEMENT_REGEXP3 = /^((HTML|SVG)\w*)?Element$/, testHasAttribute2 = (val) => {
  24669. try {
  24670. return typeof val.hasAttribute == "function" && val.hasAttribute("is");
  24671. } catch {
  24672. return !1;
  24673. }
  24674. }, testNode3 = (val) => {
  24675. let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement3 = typeof tagName == "string" && tagName.includes("-") || testHasAttribute2(val);
  24676. return nodeType === ELEMENT_NODE3 && (ELEMENT_REGEXP3.test(constructorName) || isCustomElement3) || nodeType === TEXT_NODE3 && constructorName === "Text" || nodeType === COMMENT_NODE3 && constructorName === "Comment" || nodeType === FRAGMENT_NODE3 && constructorName === "DocumentFragment";
  24677. }, test3 = (val) => {
  24678. var _val$constructor;
  24679. return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode3(val);
  24680. };
  24681. exports.test = test3;
  24682. function nodeIsText3(node2) {
  24683. return node2.nodeType === TEXT_NODE3;
  24684. }
  24685. function nodeIsComment3(node2) {
  24686. return node2.nodeType === COMMENT_NODE3;
  24687. }
  24688. function nodeIsFragment3(node2) {
  24689. return node2.nodeType === FRAGMENT_NODE3;
  24690. }
  24691. var serialize3 = (node2, config4, indentation, depth, refs, printer2) => {
  24692. if (nodeIsText3(node2))
  24693. return (0, _markup.printText)(node2.data, config4);
  24694. if (nodeIsComment3(node2))
  24695. return (0, _markup.printComment)(node2.data, config4);
  24696. let type5 = nodeIsFragment3(node2) ? "DocumentFragment" : node2.tagName.toLowerCase();
  24697. return ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(type5, config4) : (0, _markup.printElement)(
  24698. type5,
  24699. (0, _markup.printProps)(
  24700. nodeIsFragment3(node2) ? [] : Array.from(node2.attributes).map((attr) => attr.name).sort(),
  24701. nodeIsFragment3(node2) ? {} : Array.from(node2.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}),
  24702. config4,
  24703. indentation + config4.indent,
  24704. depth,
  24705. refs,
  24706. printer2
  24707. ),
  24708. (0, _markup.printChildren)(
  24709. Array.prototype.slice.call(node2.childNodes || node2.children),
  24710. config4,
  24711. indentation + config4.indent,
  24712. depth,
  24713. refs,
  24714. printer2
  24715. ),
  24716. config4,
  24717. indentation
  24718. );
  24719. };
  24720. exports.serialize = serialize3;
  24721. var plugin2 = {
  24722. serialize: serialize3,
  24723. test: test3
  24724. }, _default = plugin2;
  24725. exports.default = _default;
  24726. }
  24727. });
  24728. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js
  24729. var require_Immutable = __commonJS({
  24730. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
  24731. "use strict";
  24732. Object.defineProperty(exports, "__esModule", {
  24733. value: !0
  24734. });
  24735. exports.test = exports.serialize = exports.default = void 0;
  24736. var _collections = require_collections(), IS_ITERABLE_SENTINEL2 = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL3 = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL3 = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL2 = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL3 = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL2 = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL2 = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL3 = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL2 = "@@__IMMUTABLE_STACK__@@", getImmutableName2 = (name) => "Immutable." + name, printAsLeaf2 = (name) => "[" + name + "]", SPACE2 = " ", LAZY2 = "\u2026", printImmutableEntries2 = (val, config4, indentation, depth, refs, printer2, type5) => ++depth > config4.maxDepth ? printAsLeaf2(getImmutableName2(type5)) : getImmutableName2(type5) + SPACE2 + "{" + (0, _collections.printIteratorEntries)(
  24737. val.entries(),
  24738. config4,
  24739. indentation,
  24740. depth,
  24741. refs,
  24742. printer2
  24743. ) + "}";
  24744. function getRecordEntries2(val) {
  24745. let i = 0;
  24746. return {
  24747. next() {
  24748. if (i < val._keys.length) {
  24749. let key = val._keys[i++];
  24750. return {
  24751. done: !1,
  24752. value: [key, val.get(key)]
  24753. };
  24754. }
  24755. return {
  24756. done: !0,
  24757. value: void 0
  24758. };
  24759. }
  24760. };
  24761. }
  24762. var printImmutableRecord2 = (val, config4, indentation, depth, refs, printer2) => {
  24763. let name = getImmutableName2(val._name || "Record");
  24764. return ++depth > config4.maxDepth ? printAsLeaf2(name) : name + SPACE2 + "{" + (0, _collections.printIteratorEntries)(
  24765. getRecordEntries2(val),
  24766. config4,
  24767. indentation,
  24768. depth,
  24769. refs,
  24770. printer2
  24771. ) + "}";
  24772. }, printImmutableSeq2 = (val, config4, indentation, depth, refs, printer2) => {
  24773. let name = getImmutableName2("Seq");
  24774. return ++depth > config4.maxDepth ? printAsLeaf2(name) : val[IS_KEYED_SENTINEL3] ? name + SPACE2 + "{" + // from Immutable collection of entries or from ECMAScript object
  24775. (val._iter || val._object ? (0, _collections.printIteratorEntries)(
  24776. val.entries(),
  24777. config4,
  24778. indentation,
  24779. depth,
  24780. refs,
  24781. printer2
  24782. ) : LAZY2) + "}" : name + SPACE2 + "[" + (val._iter || // from Immutable collection of values
  24783. val._array || // from ECMAScript array
  24784. val._collection || // from ECMAScript collection in immutable v4
  24785. val._iterable ? (0, _collections.printIteratorValues)(
  24786. val.values(),
  24787. config4,
  24788. indentation,
  24789. depth,
  24790. refs,
  24791. printer2
  24792. ) : LAZY2) + "]";
  24793. }, printImmutableValues2 = (val, config4, indentation, depth, refs, printer2, type5) => ++depth > config4.maxDepth ? printAsLeaf2(getImmutableName2(type5)) : getImmutableName2(type5) + SPACE2 + "[" + (0, _collections.printIteratorValues)(
  24794. val.values(),
  24795. config4,
  24796. indentation,
  24797. depth,
  24798. refs,
  24799. printer2
  24800. ) + "]", serialize3 = (val, config4, indentation, depth, refs, printer2) => val[IS_MAP_SENTINEL2] ? printImmutableEntries2(
  24801. val,
  24802. config4,
  24803. indentation,
  24804. depth,
  24805. refs,
  24806. printer2,
  24807. val[IS_ORDERED_SENTINEL3] ? "OrderedMap" : "Map"
  24808. ) : val[IS_LIST_SENTINEL3] ? printImmutableValues2(
  24809. val,
  24810. config4,
  24811. indentation,
  24812. depth,
  24813. refs,
  24814. printer2,
  24815. "List"
  24816. ) : val[IS_SET_SENTINEL3] ? printImmutableValues2(
  24817. val,
  24818. config4,
  24819. indentation,
  24820. depth,
  24821. refs,
  24822. printer2,
  24823. val[IS_ORDERED_SENTINEL3] ? "OrderedSet" : "Set"
  24824. ) : val[IS_STACK_SENTINEL2] ? printImmutableValues2(
  24825. val,
  24826. config4,
  24827. indentation,
  24828. depth,
  24829. refs,
  24830. printer2,
  24831. "Stack"
  24832. ) : val[IS_SEQ_SENTINEL2] ? printImmutableSeq2(val, config4, indentation, depth, refs, printer2) : printImmutableRecord2(val, config4, indentation, depth, refs, printer2);
  24833. exports.serialize = serialize3;
  24834. var test3 = (val) => val && (val[IS_ITERABLE_SENTINEL2] === !0 || val[IS_RECORD_SENTINEL2] === !0);
  24835. exports.test = test3;
  24836. var plugin2 = {
  24837. serialize: serialize3,
  24838. test: test3
  24839. }, _default = plugin2;
  24840. exports.default = _default;
  24841. }
  24842. });
  24843. // ../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js
  24844. var require_react_is_production_min2 = __commonJS({
  24845. "../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
  24846. "use strict";
  24847. var b = 60103, c = 60106, d = 60107, e = 60108, f4 = 60114, g2 = 60109, h3 = 60110, k = 60112, l = 60113, m3 = 60120, n = 60115, p3 = 60116, q = 60121, r2 = 60122, u2 = 60117, v = 60129, w = 60131;
  24848. typeof Symbol == "function" && Symbol.for && (x = Symbol.for, b = x("react.element"), c = x("react.portal"), d = x("react.fragment"), e = x("react.strict_mode"), f4 = x("react.profiler"), g2 = x("react.provider"), h3 = x("react.context"), k = x("react.forward_ref"), l = x("react.suspense"), m3 = x("react.suspense_list"), n = x("react.memo"), p3 = x("react.lazy"), q = x("react.block"), r2 = x("react.server.block"), u2 = x("react.fundamental"), v = x("react.debug_trace_mode"), w = x("react.legacy_hidden"));
  24849. var x;
  24850. function y(a3) {
  24851. if (typeof a3 == "object" && a3 !== null) {
  24852. var t = a3.$$typeof;
  24853. switch (t) {
  24854. case b:
  24855. switch (a3 = a3.type, a3) {
  24856. case d:
  24857. case f4:
  24858. case e:
  24859. case l:
  24860. case m3:
  24861. return a3;
  24862. default:
  24863. switch (a3 = a3 && a3.$$typeof, a3) {
  24864. case h3:
  24865. case k:
  24866. case p3:
  24867. case n:
  24868. case g2:
  24869. return a3;
  24870. default:
  24871. return t;
  24872. }
  24873. }
  24874. case c:
  24875. return t;
  24876. }
  24877. }
  24878. }
  24879. var z = g2, A3 = b, B3 = k, C3 = d, D = p3, E = n, F = c, G = f4, H = e, I = l;
  24880. exports.ContextConsumer = h3;
  24881. exports.ContextProvider = z;
  24882. exports.Element = A3;
  24883. exports.ForwardRef = B3;
  24884. exports.Fragment = C3;
  24885. exports.Lazy = D;
  24886. exports.Memo = E;
  24887. exports.Portal = F;
  24888. exports.Profiler = G;
  24889. exports.StrictMode = H;
  24890. exports.Suspense = I;
  24891. exports.isAsyncMode = function() {
  24892. return !1;
  24893. };
  24894. exports.isConcurrentMode = function() {
  24895. return !1;
  24896. };
  24897. exports.isContextConsumer = function(a3) {
  24898. return y(a3) === h3;
  24899. };
  24900. exports.isContextProvider = function(a3) {
  24901. return y(a3) === g2;
  24902. };
  24903. exports.isElement = function(a3) {
  24904. return typeof a3 == "object" && a3 !== null && a3.$$typeof === b;
  24905. };
  24906. exports.isForwardRef = function(a3) {
  24907. return y(a3) === k;
  24908. };
  24909. exports.isFragment = function(a3) {
  24910. return y(a3) === d;
  24911. };
  24912. exports.isLazy = function(a3) {
  24913. return y(a3) === p3;
  24914. };
  24915. exports.isMemo = function(a3) {
  24916. return y(a3) === n;
  24917. };
  24918. exports.isPortal = function(a3) {
  24919. return y(a3) === c;
  24920. };
  24921. exports.isProfiler = function(a3) {
  24922. return y(a3) === f4;
  24923. };
  24924. exports.isStrictMode = function(a3) {
  24925. return y(a3) === e;
  24926. };
  24927. exports.isSuspense = function(a3) {
  24928. return y(a3) === l;
  24929. };
  24930. exports.isValidElementType = function(a3) {
  24931. return typeof a3 == "string" || typeof a3 == "function" || a3 === d || a3 === f4 || a3 === v || a3 === e || a3 === l || a3 === m3 || a3 === w || typeof a3 == "object" && a3 !== null && (a3.$$typeof === p3 || a3.$$typeof === n || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === k || a3.$$typeof === u2 || a3.$$typeof === q || a3[0] === r2);
  24932. };
  24933. exports.typeOf = y;
  24934. }
  24935. });
  24936. // ../../node_modules/@testing-library/dom/node_modules/react-is/index.js
  24937. var require_react_is2 = __commonJS({
  24938. "../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(exports, module2) {
  24939. "use strict";
  24940. module2.exports = require_react_is_production_min2();
  24941. }
  24942. });
  24943. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js
  24944. var require_ReactElement = __commonJS({
  24945. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
  24946. "use strict";
  24947. Object.defineProperty(exports, "__esModule", {
  24948. value: !0
  24949. });
  24950. exports.test = exports.serialize = exports.default = void 0;
  24951. var ReactIs2 = _interopRequireWildcard(require_react_is2()), _markup = require_markup2();
  24952. function _getRequireWildcardCache(nodeInterop) {
  24953. if (typeof WeakMap != "function") return null;
  24954. var cacheBabelInterop = /* @__PURE__ */ new WeakMap(), cacheNodeInterop = /* @__PURE__ */ new WeakMap();
  24955. return (_getRequireWildcardCache = function(nodeInterop2) {
  24956. return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
  24957. })(nodeInterop);
  24958. }
  24959. function _interopRequireWildcard(obj, nodeInterop) {
  24960. if (!nodeInterop && obj && obj.__esModule)
  24961. return obj;
  24962. if (obj === null || typeof obj != "object" && typeof obj != "function")
  24963. return { default: obj };
  24964. var cache = _getRequireWildcardCache(nodeInterop);
  24965. if (cache && cache.has(obj))
  24966. return cache.get(obj);
  24967. var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  24968. for (var key in obj)
  24969. if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
  24970. var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
  24971. desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key];
  24972. }
  24973. return newObj.default = obj, cache && cache.set(obj, newObj), newObj;
  24974. }
  24975. var getChildren2 = (arg, children = []) => (Array.isArray(arg) ? arg.forEach((item) => {
  24976. getChildren2(item, children);
  24977. }) : arg != null && arg !== !1 && children.push(arg), children), getType4 = (element) => {
  24978. let type5 = element.type;
  24979. if (typeof type5 == "string")
  24980. return type5;
  24981. if (typeof type5 == "function")
  24982. return type5.displayName || type5.name || "Unknown";
  24983. if (ReactIs2.isFragment(element))
  24984. return "React.Fragment";
  24985. if (ReactIs2.isSuspense(element))
  24986. return "React.Suspense";
  24987. if (typeof type5 == "object" && type5 !== null) {
  24988. if (ReactIs2.isContextProvider(element))
  24989. return "Context.Provider";
  24990. if (ReactIs2.isContextConsumer(element))
  24991. return "Context.Consumer";
  24992. if (ReactIs2.isForwardRef(element)) {
  24993. if (type5.displayName)
  24994. return type5.displayName;
  24995. let functionName = type5.render.displayName || type5.render.name || "";
  24996. return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef";
  24997. }
  24998. if (ReactIs2.isMemo(element)) {
  24999. let functionName = type5.displayName || type5.type.displayName || type5.type.name || "";
  25000. return functionName !== "" ? "Memo(" + functionName + ")" : "Memo";
  25001. }
  25002. }
  25003. return "UNDEFINED";
  25004. }, getPropKeys2 = (element) => {
  25005. let { props } = element;
  25006. return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
  25007. }, serialize3 = (element, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(getType4(element), config4) : (0, _markup.printElement)(
  25008. getType4(element),
  25009. (0, _markup.printProps)(
  25010. getPropKeys2(element),
  25011. element.props,
  25012. config4,
  25013. indentation + config4.indent,
  25014. depth,
  25015. refs,
  25016. printer2
  25017. ),
  25018. (0, _markup.printChildren)(
  25019. getChildren2(element.props.children),
  25020. config4,
  25021. indentation + config4.indent,
  25022. depth,
  25023. refs,
  25024. printer2
  25025. ),
  25026. config4,
  25027. indentation
  25028. );
  25029. exports.serialize = serialize3;
  25030. var test3 = (val) => val != null && ReactIs2.isElement(val);
  25031. exports.test = test3;
  25032. var plugin2 = {
  25033. serialize: serialize3,
  25034. test: test3
  25035. }, _default = plugin2;
  25036. exports.default = _default;
  25037. }
  25038. });
  25039. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js
  25040. var require_ReactTestComponent = __commonJS({
  25041. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
  25042. "use strict";
  25043. Object.defineProperty(exports, "__esModule", {
  25044. value: !0
  25045. });
  25046. exports.test = exports.serialize = exports.default = void 0;
  25047. var _markup = require_markup2(), global2 = (function() {
  25048. return typeof globalThis < "u" ? globalThis : typeof global2 < "u" ? global2 : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
  25049. })(), Symbol3 = global2["jest-symbol-do-not-touch"] || global2.Symbol, testSymbol2 = typeof Symbol3 == "function" && Symbol3.for ? Symbol3.for("react.test.json") : 245830487, getPropKeys2 = (object) => {
  25050. let { props } = object;
  25051. return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
  25052. }, serialize3 = (object, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config4) : (0, _markup.printElement)(
  25053. object.type,
  25054. object.props ? (0, _markup.printProps)(
  25055. getPropKeys2(object),
  25056. object.props,
  25057. config4,
  25058. indentation + config4.indent,
  25059. depth,
  25060. refs,
  25061. printer2
  25062. ) : "",
  25063. object.children ? (0, _markup.printChildren)(
  25064. object.children,
  25065. config4,
  25066. indentation + config4.indent,
  25067. depth,
  25068. refs,
  25069. printer2
  25070. ) : "",
  25071. config4,
  25072. indentation
  25073. );
  25074. exports.serialize = serialize3;
  25075. var test3 = (val) => val && val.$$typeof === testSymbol2;
  25076. exports.test = test3;
  25077. var plugin2 = {
  25078. serialize: serialize3,
  25079. test: test3
  25080. }, _default = plugin2;
  25081. exports.default = _default;
  25082. }
  25083. });
  25084. // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js
  25085. var require_build = __commonJS({
  25086. "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(exports) {
  25087. "use strict";
  25088. Object.defineProperty(exports, "__esModule", {
  25089. value: !0
  25090. });
  25091. exports.default = exports.DEFAULT_OPTIONS = void 0;
  25092. exports.format = format4;
  25093. exports.plugins = void 0;
  25094. var _ansiStyles = _interopRequireDefault(require_ansi_styles()), _collections = require_collections(), _AsymmetricMatcher = _interopRequireDefault(
  25095. require_AsymmetricMatcher()
  25096. ), _ConvertAnsi = _interopRequireDefault(require_ConvertAnsi()), _DOMCollection = _interopRequireDefault(require_DOMCollection()), _DOMElement = _interopRequireDefault(require_DOMElement()), _Immutable = _interopRequireDefault(require_Immutable()), _ReactElement = _interopRequireDefault(require_ReactElement()), _ReactTestComponent = _interopRequireDefault(
  25097. require_ReactTestComponent()
  25098. );
  25099. function _interopRequireDefault(obj) {
  25100. return obj && obj.__esModule ? obj : { default: obj };
  25101. }
  25102. var toString5 = Object.prototype.toString, toISOString2 = Date.prototype.toISOString, errorToString2 = Error.prototype.toString, regExpToString2 = RegExp.prototype.toString, getConstructorName3 = (val) => typeof val.constructor == "function" && val.constructor.name || "Object", isWindow2 = (val) => typeof window < "u" && val === window, SYMBOL_REGEXP2 = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP2 = /\n/gi, PrettyFormatPluginError2 = class extends Error {
  25103. constructor(message, stack) {
  25104. super(message), this.stack = stack, this.name = this.constructor.name;
  25105. }
  25106. };
  25107. function isToStringedArrayType2(toStringed) {
  25108. return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
  25109. }
  25110. function printNumber2(val) {
  25111. return Object.is(val, -0) ? "-0" : String(val);
  25112. }
  25113. function printBigInt2(val) {
  25114. return `${val}n`;
  25115. }
  25116. function printFunction2(val, printFunctionName) {
  25117. return printFunctionName ? "[Function " + (val.name || "anonymous") + "]" : "[Function]";
  25118. }
  25119. function printSymbol2(val) {
  25120. return String(val).replace(SYMBOL_REGEXP2, "Symbol($1)");
  25121. }
  25122. function printError2(val) {
  25123. return "[" + errorToString2.call(val) + "]";
  25124. }
  25125. function printBasicValue2(val, printFunctionName, escapeRegex, escapeString) {
  25126. if (val === !0 || val === !1)
  25127. return "" + val;
  25128. if (val === void 0)
  25129. return "undefined";
  25130. if (val === null)
  25131. return "null";
  25132. let typeOf = typeof val;
  25133. if (typeOf === "number")
  25134. return printNumber2(val);
  25135. if (typeOf === "bigint")
  25136. return printBigInt2(val);
  25137. if (typeOf === "string")
  25138. return escapeString ? '"' + val.replace(/"|\\/g, "\\$&") + '"' : '"' + val + '"';
  25139. if (typeOf === "function")
  25140. return printFunction2(val, printFunctionName);
  25141. if (typeOf === "symbol")
  25142. return printSymbol2(val);
  25143. let toStringed = toString5.call(val);
  25144. return toStringed === "[object WeakMap]" ? "WeakMap {}" : toStringed === "[object WeakSet]" ? "WeakSet {}" : toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]" ? printFunction2(val, printFunctionName) : toStringed === "[object Symbol]" ? printSymbol2(val) : toStringed === "[object Date]" ? isNaN(+val) ? "Date { NaN }" : toISOString2.call(val) : toStringed === "[object Error]" ? printError2(val) : toStringed === "[object RegExp]" ? escapeRegex ? regExpToString2.call(val).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : regExpToString2.call(val) : val instanceof Error ? printError2(val) : null;
  25145. }
  25146. function printComplexValue2(val, config4, indentation, depth, refs, hasCalledToJSON) {
  25147. if (refs.indexOf(val) !== -1)
  25148. return "[Circular]";
  25149. refs = refs.slice(), refs.push(val);
  25150. let hitMaxDepth = ++depth > config4.maxDepth, min2 = config4.min;
  25151. if (config4.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON)
  25152. return printer2(val.toJSON(), config4, indentation, depth, refs, !0);
  25153. let toStringed = toString5.call(val);
  25154. return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : (min2 ? "" : "Arguments ") + "[" + (0, _collections.printListItems)(
  25155. val,
  25156. config4,
  25157. indentation,
  25158. depth,
  25159. refs,
  25160. printer2
  25161. ) + "]" : isToStringedArrayType2(toStringed) ? hitMaxDepth ? "[" + val.constructor.name + "]" : (min2 || !config4.printBasicPrototype && val.constructor.name === "Array" ? "" : val.constructor.name + " ") + "[" + (0, _collections.printListItems)(
  25162. val,
  25163. config4,
  25164. indentation,
  25165. depth,
  25166. refs,
  25167. printer2
  25168. ) + "]" : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : "Map {" + (0, _collections.printIteratorEntries)(
  25169. val.entries(),
  25170. config4,
  25171. indentation,
  25172. depth,
  25173. refs,
  25174. printer2,
  25175. " => "
  25176. ) + "}" : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : "Set {" + (0, _collections.printIteratorValues)(
  25177. val.values(),
  25178. config4,
  25179. indentation,
  25180. depth,
  25181. refs,
  25182. printer2
  25183. ) + "}" : hitMaxDepth || isWindow2(val) ? "[" + getConstructorName3(val) + "]" : (min2 || !config4.printBasicPrototype && getConstructorName3(val) === "Object" ? "" : getConstructorName3(val) + " ") + "{" + (0, _collections.printObjectProperties)(
  25184. val,
  25185. config4,
  25186. indentation,
  25187. depth,
  25188. refs,
  25189. printer2
  25190. ) + "}";
  25191. }
  25192. function isNewPlugin2(plugin2) {
  25193. return plugin2.serialize != null;
  25194. }
  25195. function printPlugin2(plugin2, val, config4, indentation, depth, refs) {
  25196. let printed;
  25197. try {
  25198. printed = isNewPlugin2(plugin2) ? plugin2.serialize(val, config4, indentation, depth, refs, printer2) : plugin2.print(
  25199. val,
  25200. (valChild) => printer2(valChild, config4, indentation, depth, refs),
  25201. (str2) => {
  25202. let indentationNext = indentation + config4.indent;
  25203. return indentationNext + str2.replace(NEWLINE_REGEXP2, `
  25204. ` + indentationNext);
  25205. },
  25206. {
  25207. edgeSpacing: config4.spacingOuter,
  25208. min: config4.min,
  25209. spacing: config4.spacingInner
  25210. },
  25211. config4.colors
  25212. );
  25213. } catch (error) {
  25214. throw new PrettyFormatPluginError2(error.message, error.stack);
  25215. }
  25216. if (typeof printed != "string")
  25217. throw new Error(
  25218. `pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`
  25219. );
  25220. return printed;
  25221. }
  25222. function findPlugin2(plugins4, val) {
  25223. for (let p3 = 0; p3 < plugins4.length; p3++)
  25224. try {
  25225. if (plugins4[p3].test(val))
  25226. return plugins4[p3];
  25227. } catch (error) {
  25228. throw new PrettyFormatPluginError2(error.message, error.stack);
  25229. }
  25230. return null;
  25231. }
  25232. function printer2(val, config4, indentation, depth, refs, hasCalledToJSON) {
  25233. let plugin2 = findPlugin2(config4.plugins, val);
  25234. if (plugin2 !== null)
  25235. return printPlugin2(plugin2, val, config4, indentation, depth, refs);
  25236. let basicResult = printBasicValue2(
  25237. val,
  25238. config4.printFunctionName,
  25239. config4.escapeRegex,
  25240. config4.escapeString
  25241. );
  25242. return basicResult !== null ? basicResult : printComplexValue2(
  25243. val,
  25244. config4,
  25245. indentation,
  25246. depth,
  25247. refs,
  25248. hasCalledToJSON
  25249. );
  25250. }
  25251. var DEFAULT_THEME2 = {
  25252. comment: "gray",
  25253. content: "reset",
  25254. prop: "yellow",
  25255. tag: "cyan",
  25256. value: "green"
  25257. }, DEFAULT_THEME_KEYS2 = Object.keys(DEFAULT_THEME2), DEFAULT_OPTIONS3 = {
  25258. callToJSON: !0,
  25259. compareKeys: void 0,
  25260. escapeRegex: !1,
  25261. escapeString: !0,
  25262. highlight: !1,
  25263. indent: 2,
  25264. maxDepth: 1 / 0,
  25265. min: !1,
  25266. plugins: [],
  25267. printBasicPrototype: !0,
  25268. printFunctionName: !0,
  25269. theme: DEFAULT_THEME2
  25270. };
  25271. exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS3;
  25272. function validateOptions3(options) {
  25273. if (Object.keys(options).forEach((key) => {
  25274. if (!DEFAULT_OPTIONS3.hasOwnProperty(key))
  25275. throw new Error(`pretty-format: Unknown option "${key}".`);
  25276. }), options.min && options.indent !== void 0 && options.indent !== 0)
  25277. throw new Error(
  25278. 'pretty-format: Options "min" and "indent" cannot be used together.'
  25279. );
  25280. if (options.theme !== void 0) {
  25281. if (options.theme === null)
  25282. throw new Error('pretty-format: Option "theme" must not be null.');
  25283. if (typeof options.theme != "object")
  25284. throw new Error(
  25285. `pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`
  25286. );
  25287. }
  25288. }
  25289. var getColorsHighlight2 = (options) => DEFAULT_THEME_KEYS2.reduce((colors3, key) => {
  25290. let value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME2[key], color2 = value && _ansiStyles.default[value];
  25291. if (color2 && typeof color2.close == "string" && typeof color2.open == "string")
  25292. colors3[key] = color2;
  25293. else
  25294. throw new Error(
  25295. `pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`
  25296. );
  25297. return colors3;
  25298. }, /* @__PURE__ */ Object.create(null)), getColorsEmpty2 = () => DEFAULT_THEME_KEYS2.reduce((colors3, key) => (colors3[key] = {
  25299. close: "",
  25300. open: ""
  25301. }, colors3), /* @__PURE__ */ Object.create(null)), getPrintFunctionName2 = (options) => options && options.printFunctionName !== void 0 ? options.printFunctionName : DEFAULT_OPTIONS3.printFunctionName, getEscapeRegex2 = (options) => options && options.escapeRegex !== void 0 ? options.escapeRegex : DEFAULT_OPTIONS3.escapeRegex, getEscapeString2 = (options) => options && options.escapeString !== void 0 ? options.escapeString : DEFAULT_OPTIONS3.escapeString, getConfig4 = (options) => {
  25302. var _options$printBasicPr;
  25303. return {
  25304. callToJSON: options && options.callToJSON !== void 0 ? options.callToJSON : DEFAULT_OPTIONS3.callToJSON,
  25305. colors: options && options.highlight ? getColorsHighlight2(options) : getColorsEmpty2(),
  25306. compareKeys: options && typeof options.compareKeys == "function" ? options.compareKeys : DEFAULT_OPTIONS3.compareKeys,
  25307. escapeRegex: getEscapeRegex2(options),
  25308. escapeString: getEscapeString2(options),
  25309. indent: options && options.min ? "" : createIndent2(
  25310. options && options.indent !== void 0 ? options.indent : DEFAULT_OPTIONS3.indent
  25311. ),
  25312. maxDepth: options && options.maxDepth !== void 0 ? options.maxDepth : DEFAULT_OPTIONS3.maxDepth,
  25313. min: options && options.min !== void 0 ? options.min : DEFAULT_OPTIONS3.min,
  25314. plugins: options && options.plugins !== void 0 ? options.plugins : DEFAULT_OPTIONS3.plugins,
  25315. printBasicPrototype: (_options$printBasicPr = options?.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : !0,
  25316. printFunctionName: getPrintFunctionName2(options),
  25317. spacingInner: options && options.min ? " " : `
  25318. `,
  25319. spacingOuter: options && options.min ? "" : `
  25320. `
  25321. };
  25322. };
  25323. function createIndent2(indent2) {
  25324. return new Array(indent2 + 1).join(" ");
  25325. }
  25326. function format4(val, options) {
  25327. if (options && (validateOptions3(options), options.plugins)) {
  25328. let plugin2 = findPlugin2(options.plugins, val);
  25329. if (plugin2 !== null)
  25330. return printPlugin2(plugin2, val, getConfig4(options), "", 0, []);
  25331. }
  25332. let basicResult = printBasicValue2(
  25333. val,
  25334. getPrintFunctionName2(options),
  25335. getEscapeRegex2(options),
  25336. getEscapeString2(options)
  25337. );
  25338. return basicResult !== null ? basicResult : printComplexValue2(val, getConfig4(options), "", 0, []);
  25339. }
  25340. var plugins3 = {
  25341. AsymmetricMatcher: _AsymmetricMatcher.default,
  25342. ConvertAnsi: _ConvertAnsi.default,
  25343. DOMCollection: _DOMCollection.default,
  25344. DOMElement: _DOMElement.default,
  25345. Immutable: _Immutable.default,
  25346. ReactElement: _ReactElement.default,
  25347. ReactTestComponent: _ReactTestComponent.default
  25348. };
  25349. exports.plugins = plugins3;
  25350. var _default = format4;
  25351. exports.default = _default;
  25352. }
  25353. });
  25354. // ../../node_modules/lz-string/libs/lz-string.js
  25355. var require_lz_string = __commonJS({
  25356. "../../node_modules/lz-string/libs/lz-string.js"(exports, module2) {
  25357. var LZString = (function() {
  25358. var f4 = String.fromCharCode, keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", baseReverseDic = {};
  25359. function getBaseValue(alphabet, character2) {
  25360. if (!baseReverseDic[alphabet]) {
  25361. baseReverseDic[alphabet] = {};
  25362. for (var i = 0; i < alphabet.length; i++)
  25363. baseReverseDic[alphabet][alphabet.charAt(i)] = i;
  25364. }
  25365. return baseReverseDic[alphabet][character2];
  25366. }
  25367. var LZString2 = {
  25368. compressToBase64: function(input2) {
  25369. if (input2 == null) return "";
  25370. var res = LZString2._compress(input2, 6, function(a3) {
  25371. return keyStrBase64.charAt(a3);
  25372. });
  25373. switch (res.length % 4) {
  25374. // To produce valid Base64
  25375. default:
  25376. // When could this happen ?
  25377. case 0:
  25378. return res;
  25379. case 1:
  25380. return res + "===";
  25381. case 2:
  25382. return res + "==";
  25383. case 3:
  25384. return res + "=";
  25385. }
  25386. },
  25387. decompressFromBase64: function(input2) {
  25388. return input2 == null ? "" : input2 == "" ? null : LZString2._decompress(input2.length, 32, function(index4) {
  25389. return getBaseValue(keyStrBase64, input2.charAt(index4));
  25390. });
  25391. },
  25392. compressToUTF16: function(input2) {
  25393. return input2 == null ? "" : LZString2._compress(input2, 15, function(a3) {
  25394. return f4(a3 + 32);
  25395. }) + " ";
  25396. },
  25397. decompressFromUTF16: function(compressed) {
  25398. return compressed == null ? "" : compressed == "" ? null : LZString2._decompress(compressed.length, 16384, function(index4) {
  25399. return compressed.charCodeAt(index4) - 32;
  25400. });
  25401. },
  25402. //compress into uint8array (UCS-2 big endian format)
  25403. compressToUint8Array: function(uncompressed) {
  25404. for (var compressed = LZString2.compress(uncompressed), buf = new Uint8Array(compressed.length * 2), i = 0, TotalLen = compressed.length; i < TotalLen; i++) {
  25405. var current_value = compressed.charCodeAt(i);
  25406. buf[i * 2] = current_value >>> 8, buf[i * 2 + 1] = current_value % 256;
  25407. }
  25408. return buf;
  25409. },
  25410. //decompress from uint8array (UCS-2 big endian format)
  25411. decompressFromUint8Array: function(compressed) {
  25412. if (compressed == null)
  25413. return LZString2.decompress(compressed);
  25414. for (var buf = new Array(compressed.length / 2), i = 0, TotalLen = buf.length; i < TotalLen; i++)
  25415. buf[i] = compressed[i * 2] * 256 + compressed[i * 2 + 1];
  25416. var result = [];
  25417. return buf.forEach(function(c) {
  25418. result.push(f4(c));
  25419. }), LZString2.decompress(result.join(""));
  25420. },
  25421. //compress into a string that is already URI encoded
  25422. compressToEncodedURIComponent: function(input2) {
  25423. return input2 == null ? "" : LZString2._compress(input2, 6, function(a3) {
  25424. return keyStrUriSafe.charAt(a3);
  25425. });
  25426. },
  25427. //decompress from an output of compressToEncodedURIComponent
  25428. decompressFromEncodedURIComponent: function(input2) {
  25429. return input2 == null ? "" : input2 == "" ? null : (input2 = input2.replace(/ /g, "+"), LZString2._decompress(input2.length, 32, function(index4) {
  25430. return getBaseValue(keyStrUriSafe, input2.charAt(index4));
  25431. }));
  25432. },
  25433. compress: function(uncompressed) {
  25434. return LZString2._compress(uncompressed, 16, function(a3) {
  25435. return f4(a3);
  25436. });
  25437. },
  25438. _compress: function(uncompressed, bitsPerChar, getCharFromInt) {
  25439. if (uncompressed == null) return "";
  25440. var i, value, context_dictionary = {}, context_dictionaryToCreate = {}, context_c = "", context_wc = "", context_w = "", context_enlargeIn = 2, context_dictSize = 3, context_numBits = 2, context_data = [], context_data_val = 0, context_data_position = 0, ii;
  25441. for (ii = 0; ii < uncompressed.length; ii += 1)
  25442. if (context_c = uncompressed.charAt(ii), Object.prototype.hasOwnProperty.call(context_dictionary, context_c) || (context_dictionary[context_c] = context_dictSize++, context_dictionaryToCreate[context_c] = !0), context_wc = context_w + context_c, Object.prototype.hasOwnProperty.call(context_dictionary, context_wc))
  25443. context_w = context_wc;
  25444. else {
  25445. if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
  25446. if (context_w.charCodeAt(0) < 256) {
  25447. for (i = 0; i < context_numBits; i++)
  25448. context_data_val = context_data_val << 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++;
  25449. for (value = context_w.charCodeAt(0), i = 0; i < 8; i++)
  25450. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25451. } else {
  25452. for (value = 1, i = 0; i < context_numBits; i++)
  25453. context_data_val = context_data_val << 1 | value, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = 0;
  25454. for (value = context_w.charCodeAt(0), i = 0; i < 16; i++)
  25455. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25456. }
  25457. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), delete context_dictionaryToCreate[context_w];
  25458. } else
  25459. for (value = context_dictionary[context_w], i = 0; i < context_numBits; i++)
  25460. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25461. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), context_dictionary[context_wc] = context_dictSize++, context_w = String(context_c);
  25462. }
  25463. if (context_w !== "") {
  25464. if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
  25465. if (context_w.charCodeAt(0) < 256) {
  25466. for (i = 0; i < context_numBits; i++)
  25467. context_data_val = context_data_val << 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++;
  25468. for (value = context_w.charCodeAt(0), i = 0; i < 8; i++)
  25469. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25470. } else {
  25471. for (value = 1, i = 0; i < context_numBits; i++)
  25472. context_data_val = context_data_val << 1 | value, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = 0;
  25473. for (value = context_w.charCodeAt(0), i = 0; i < 16; i++)
  25474. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25475. }
  25476. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), delete context_dictionaryToCreate[context_w];
  25477. } else
  25478. for (value = context_dictionary[context_w], i = 0; i < context_numBits; i++)
  25479. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25480. context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++);
  25481. }
  25482. for (value = 2, i = 0; i < context_numBits; i++)
  25483. context_data_val = context_data_val << 1 | value & 1, context_data_position == bitsPerChar - 1 ? (context_data_position = 0, context_data.push(getCharFromInt(context_data_val)), context_data_val = 0) : context_data_position++, value = value >> 1;
  25484. for (; ; )
  25485. if (context_data_val = context_data_val << 1, context_data_position == bitsPerChar - 1) {
  25486. context_data.push(getCharFromInt(context_data_val));
  25487. break;
  25488. } else context_data_position++;
  25489. return context_data.join("");
  25490. },
  25491. decompress: function(compressed) {
  25492. return compressed == null ? "" : compressed == "" ? null : LZString2._decompress(compressed.length, 32768, function(index4) {
  25493. return compressed.charCodeAt(index4);
  25494. });
  25495. },
  25496. _decompress: function(length2, resetValue, getNextValue) {
  25497. var dictionary = [], next2, enlargeIn = 4, dictSize = 4, numBits = 3, entry = "", result = [], i, w, bits, resb, maxpower, power, c, data = { val: getNextValue(0), position: resetValue, index: 1 };
  25498. for (i = 0; i < 3; i += 1)
  25499. dictionary[i] = i;
  25500. for (bits = 0, maxpower = Math.pow(2, 2), power = 1; power != maxpower; )
  25501. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25502. switch (next2 = bits) {
  25503. case 0:
  25504. for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; )
  25505. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25506. c = f4(bits);
  25507. break;
  25508. case 1:
  25509. for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; )
  25510. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25511. c = f4(bits);
  25512. break;
  25513. case 2:
  25514. return "";
  25515. }
  25516. for (dictionary[3] = c, w = c, result.push(c); ; ) {
  25517. if (data.index > length2)
  25518. return "";
  25519. for (bits = 0, maxpower = Math.pow(2, numBits), power = 1; power != maxpower; )
  25520. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25521. switch (c = bits) {
  25522. case 0:
  25523. for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; )
  25524. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25525. dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--;
  25526. break;
  25527. case 1:
  25528. for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; )
  25529. resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
  25530. dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--;
  25531. break;
  25532. case 2:
  25533. return result.join("");
  25534. }
  25535. if (enlargeIn == 0 && (enlargeIn = Math.pow(2, numBits), numBits++), dictionary[c])
  25536. entry = dictionary[c];
  25537. else if (c === dictSize)
  25538. entry = w + w.charAt(0);
  25539. else
  25540. return null;
  25541. result.push(entry), dictionary[dictSize++] = w + entry.charAt(0), enlargeIn--, w = entry, enlargeIn == 0 && (enlargeIn = Math.pow(2, numBits), numBits++);
  25542. }
  25543. }
  25544. };
  25545. return LZString2;
  25546. })();
  25547. typeof define == "function" && define.amd ? define(function() {
  25548. return LZString;
  25549. }) : typeof module2 < "u" && module2 != null ? module2.exports = LZString : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
  25550. return LZString;
  25551. });
  25552. }
  25553. });
  25554. // ../../node_modules/toggle-selection/index.js
  25555. var require_toggle_selection = __commonJS({
  25556. "../../node_modules/toggle-selection/index.js"(exports, module2) {
  25557. module2.exports = function() {
  25558. var selection = document.getSelection();
  25559. if (!selection.rangeCount)
  25560. return function() {
  25561. };
  25562. for (var active = document.activeElement, ranges = [], i = 0; i < selection.rangeCount; i++)
  25563. ranges.push(selection.getRangeAt(i));
  25564. switch (active.tagName.toUpperCase()) {
  25565. // .toUpperCase handles XHTML
  25566. case "INPUT":
  25567. case "TEXTAREA":
  25568. active.blur();
  25569. break;
  25570. default:
  25571. active = null;
  25572. break;
  25573. }
  25574. return selection.removeAllRanges(), function() {
  25575. selection.type === "Caret" && selection.removeAllRanges(), selection.rangeCount || ranges.forEach(function(range) {
  25576. selection.addRange(range);
  25577. }), active && active.focus();
  25578. };
  25579. };
  25580. }
  25581. });
  25582. // ../../node_modules/copy-to-clipboard/index.js
  25583. var require_copy_to_clipboard = __commonJS({
  25584. "../../node_modules/copy-to-clipboard/index.js"(exports, module2) {
  25585. "use strict";
  25586. var deselectCurrent = require_toggle_selection(), clipboardToIE11Formatting = {
  25587. "text/plain": "Text",
  25588. "text/html": "Url",
  25589. default: "Text"
  25590. }, defaultMessage = "Copy to clipboard: #{key}, Enter";
  25591. function format4(message) {
  25592. var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
  25593. return message.replace(/#{\s*key\s*}/g, copyKey);
  25594. }
  25595. function copy5(text, options) {
  25596. var debug2, message, reselectPrevious, range, selection, mark, success = !1;
  25597. options || (options = {}), debug2 = options.debug || !1;
  25598. try {
  25599. reselectPrevious = deselectCurrent(), range = document.createRange(), selection = document.getSelection(), mark = document.createElement("span"), mark.textContent = text, mark.ariaHidden = "true", mark.style.all = "unset", mark.style.position = "fixed", mark.style.top = 0, mark.style.clip = "rect(0, 0, 0, 0)", mark.style.whiteSpace = "pre", mark.style.webkitUserSelect = "text", mark.style.MozUserSelect = "text", mark.style.msUserSelect = "text", mark.style.userSelect = "text", mark.addEventListener("copy", function(e) {
  25600. if (e.stopPropagation(), options.format)
  25601. if (e.preventDefault(), typeof e.clipboardData > "u") {
  25602. debug2 && console.warn("unable to use e.clipboardData"), debug2 && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
  25603. var format5 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting.default;
  25604. window.clipboardData.setData(format5, text);
  25605. } else
  25606. e.clipboardData.clearData(), e.clipboardData.setData(options.format, text);
  25607. options.onCopy && (e.preventDefault(), options.onCopy(e.clipboardData));
  25608. }), document.body.appendChild(mark), range.selectNodeContents(mark), selection.addRange(range);
  25609. var successful = document.execCommand("copy");
  25610. if (!successful)
  25611. throw new Error("copy command was unsuccessful");
  25612. success = !0;
  25613. } catch (err) {
  25614. debug2 && console.error("unable to copy using execCommand: ", err), debug2 && console.warn("trying IE specific stuff");
  25615. try {
  25616. window.clipboardData.setData(options.format || "text", text), options.onCopy && options.onCopy(window.clipboardData), success = !0;
  25617. } catch (err2) {
  25618. debug2 && console.error("unable to copy using clipboardData: ", err2), debug2 && console.error("falling back to prompt"), message = format4("message" in options ? options.message : defaultMessage), window.prompt(message, text);
  25619. }
  25620. } finally {
  25621. selection && (typeof selection.removeRange == "function" ? selection.removeRange(range) : selection.removeAllRanges()), mark && document.body.removeChild(mark), reselectPrevious();
  25622. }
  25623. return success;
  25624. }
  25625. module2.exports = copy5;
  25626. }
  25627. });
  25628. // ../../node_modules/semver/internal/constants.js
  25629. var require_constants = __commonJS({
  25630. "../../node_modules/semver/internal/constants.js"(exports, module2) {
  25631. "use strict";
  25632. var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
  25633. 9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
  25634. "major",
  25635. "premajor",
  25636. "minor",
  25637. "preminor",
  25638. "patch",
  25639. "prepatch",
  25640. "prerelease"
  25641. ];
  25642. module2.exports = {
  25643. MAX_LENGTH: 256,
  25644. MAX_SAFE_COMPONENT_LENGTH,
  25645. MAX_SAFE_BUILD_LENGTH,
  25646. MAX_SAFE_INTEGER,
  25647. RELEASE_TYPES,
  25648. SEMVER_SPEC_VERSION,
  25649. FLAG_INCLUDE_PRERELEASE: 1,
  25650. FLAG_LOOSE: 2
  25651. };
  25652. }
  25653. });
  25654. // ../../node_modules/semver/internal/debug.js
  25655. var require_debug = __commonJS({
  25656. "../../node_modules/semver/internal/debug.js"(exports, module2) {
  25657. "use strict";
  25658. var debug2 = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
  25659. };
  25660. module2.exports = debug2;
  25661. }
  25662. });
  25663. // ../../node_modules/semver/internal/re.js
  25664. var require_re = __commonJS({
  25665. "../../node_modules/semver/internal/re.js"(exports, module2) {
  25666. "use strict";
  25667. var {
  25668. MAX_SAFE_COMPONENT_LENGTH,
  25669. MAX_SAFE_BUILD_LENGTH,
  25670. MAX_LENGTH
  25671. } = require_constants(), debug2 = require_debug();
  25672. exports = module2.exports = {};
  25673. var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], safeSrc = exports.safeSrc = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
  25674. ["\\s", 1],
  25675. ["\\d", MAX_LENGTH],
  25676. [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
  25677. ], makeSafeRegex = (value) => {
  25678. for (let [token2, max2] of safeRegexReplacements)
  25679. value = value.split(`${token2}*`).join(`${token2}{0,${max2}}`).split(`${token2}+`).join(`${token2}{1,${max2}}`);
  25680. return value;
  25681. }, createToken = (name, value, isGlobal) => {
  25682. let safe2 = makeSafeRegex(value), index4 = R++;
  25683. debug2(name, index4, value), t[name] = index4, src[index4] = value, safeSrc[index4] = safe2, re[index4] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index4] = new RegExp(safe2, isGlobal ? "g" : void 0);
  25684. };
  25685. createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
  25686. createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
  25687. createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
  25688. createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
  25689. createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
  25690. createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
  25691. createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
  25692. createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
  25693. createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
  25694. createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
  25695. createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
  25696. createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
  25697. createToken("FULL", `^${src[t.FULLPLAIN]}$`);
  25698. createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
  25699. createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
  25700. createToken("GTLT", "((?:<|>)?=?)");
  25701. createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
  25702. createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
  25703. createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
  25704. createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
  25705. createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
  25706. createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
  25707. createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
  25708. createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
  25709. createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
  25710. createToken("COERCERTL", src[t.COERCE], !0);
  25711. createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
  25712. createToken("LONETILDE", "(?:~>?)");
  25713. createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
  25714. exports.tildeTrimReplace = "$1~";
  25715. createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
  25716. createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
  25717. createToken("LONECARET", "(?:\\^)");
  25718. createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
  25719. exports.caretTrimReplace = "$1^";
  25720. createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
  25721. createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
  25722. createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
  25723. createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
  25724. createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
  25725. exports.comparatorTrimReplace = "$1$2$3";
  25726. createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
  25727. createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
  25728. createToken("STAR", "(<|>)?=?\\s*\\*");
  25729. createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
  25730. createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
  25731. }
  25732. });
  25733. // ../../node_modules/semver/internal/parse-options.js
  25734. var require_parse_options = __commonJS({
  25735. "../../node_modules/semver/internal/parse-options.js"(exports, module2) {
  25736. "use strict";
  25737. var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
  25738. module2.exports = parseOptions;
  25739. }
  25740. });
  25741. // ../../node_modules/semver/internal/identifiers.js
  25742. var require_identifiers = __commonJS({
  25743. "../../node_modules/semver/internal/identifiers.js"(exports, module2) {
  25744. "use strict";
  25745. var numeric = /^[0-9]+$/, compareIdentifiers = (a3, b) => {
  25746. if (typeof a3 == "number" && typeof b == "number")
  25747. return a3 === b ? 0 : a3 < b ? -1 : 1;
  25748. let anum = numeric.test(a3), bnum = numeric.test(b);
  25749. return anum && bnum && (a3 = +a3, b = +b), a3 === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b ? -1 : 1;
  25750. }, rcompareIdentifiers = (a3, b) => compareIdentifiers(b, a3);
  25751. module2.exports = {
  25752. compareIdentifiers,
  25753. rcompareIdentifiers
  25754. };
  25755. }
  25756. });
  25757. // ../../node_modules/semver/classes/semver.js
  25758. var require_semver = __commonJS({
  25759. "../../node_modules/semver/classes/semver.js"(exports, module2) {
  25760. "use strict";
  25761. var debug2 = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
  25762. constructor(version2, options) {
  25763. if (options = parseOptions(options), version2 instanceof _SemVer) {
  25764. if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease)
  25765. return version2;
  25766. version2 = version2.version;
  25767. } else if (typeof version2 != "string")
  25768. throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
  25769. if (version2.length > MAX_LENGTH)
  25770. throw new TypeError(
  25771. `version is longer than ${MAX_LENGTH} characters`
  25772. );
  25773. debug2("SemVer", version2, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
  25774. let m3 = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
  25775. if (!m3)
  25776. throw new TypeError(`Invalid Version: ${version2}`);
  25777. if (this.raw = version2, this.major = +m3[1], this.minor = +m3[2], this.patch = +m3[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
  25778. throw new TypeError("Invalid major version");
  25779. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
  25780. throw new TypeError("Invalid minor version");
  25781. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
  25782. throw new TypeError("Invalid patch version");
  25783. m3[4] ? this.prerelease = m3[4].split(".").map((id) => {
  25784. if (/^[0-9]+$/.test(id)) {
  25785. let num = +id;
  25786. if (num >= 0 && num < MAX_SAFE_INTEGER)
  25787. return num;
  25788. }
  25789. return id;
  25790. }) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
  25791. }
  25792. format() {
  25793. return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
  25794. }
  25795. toString() {
  25796. return this.version;
  25797. }
  25798. compare(other) {
  25799. if (debug2("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
  25800. if (typeof other == "string" && other === this.version)
  25801. return 0;
  25802. other = new _SemVer(other, this.options);
  25803. }
  25804. return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
  25805. }
  25806. compareMain(other) {
  25807. return other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.major < other.major ? -1 : this.major > other.major ? 1 : this.minor < other.minor ? -1 : this.minor > other.minor ? 1 : this.patch < other.patch ? -1 : this.patch > other.patch ? 1 : 0;
  25808. }
  25809. comparePre(other) {
  25810. if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
  25811. return -1;
  25812. if (!this.prerelease.length && other.prerelease.length)
  25813. return 1;
  25814. if (!this.prerelease.length && !other.prerelease.length)
  25815. return 0;
  25816. let i = 0;
  25817. do {
  25818. let a3 = this.prerelease[i], b = other.prerelease[i];
  25819. if (debug2("prerelease compare", i, a3, b), a3 === void 0 && b === void 0)
  25820. return 0;
  25821. if (b === void 0)
  25822. return 1;
  25823. if (a3 === void 0)
  25824. return -1;
  25825. if (a3 === b)
  25826. continue;
  25827. return compareIdentifiers(a3, b);
  25828. } while (++i);
  25829. }
  25830. compareBuild(other) {
  25831. other instanceof _SemVer || (other = new _SemVer(other, this.options));
  25832. let i = 0;
  25833. do {
  25834. let a3 = this.build[i], b = other.build[i];
  25835. if (debug2("build compare", i, a3, b), a3 === void 0 && b === void 0)
  25836. return 0;
  25837. if (b === void 0)
  25838. return 1;
  25839. if (a3 === void 0)
  25840. return -1;
  25841. if (a3 === b)
  25842. continue;
  25843. return compareIdentifiers(a3, b);
  25844. } while (++i);
  25845. }
  25846. // preminor will bump the version up to the next minor release, and immediately
  25847. // down to pre-release. premajor and prepatch work the same way.
  25848. inc(release, identifier2, identifierBase) {
  25849. if (release.startsWith("pre")) {
  25850. if (!identifier2 && identifierBase === !1)
  25851. throw new Error("invalid increment argument: identifier is empty");
  25852. if (identifier2) {
  25853. let match3 = `-${identifier2}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
  25854. if (!match3 || match3[1] !== identifier2)
  25855. throw new Error(`invalid identifier: ${identifier2}`);
  25856. }
  25857. }
  25858. switch (release) {
  25859. case "premajor":
  25860. this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier2, identifierBase);
  25861. break;
  25862. case "preminor":
  25863. this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier2, identifierBase);
  25864. break;
  25865. case "prepatch":
  25866. this.prerelease.length = 0, this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
  25867. break;
  25868. // If the input is a non-prerelease version, this acts the same as
  25869. // prepatch.
  25870. case "prerelease":
  25871. this.prerelease.length === 0 && this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase);
  25872. break;
  25873. case "release":
  25874. if (this.prerelease.length === 0)
  25875. throw new Error(`version ${this.raw} is not a prerelease`);
  25876. this.prerelease.length = 0;
  25877. break;
  25878. case "major":
  25879. (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
  25880. break;
  25881. case "minor":
  25882. (this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
  25883. break;
  25884. case "patch":
  25885. this.prerelease.length === 0 && this.patch++, this.prerelease = [];
  25886. break;
  25887. // This probably shouldn't be used publicly.
  25888. // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
  25889. case "pre": {
  25890. let base = Number(identifierBase) ? 1 : 0;
  25891. if (this.prerelease.length === 0)
  25892. this.prerelease = [base];
  25893. else {
  25894. let i = this.prerelease.length;
  25895. for (; --i >= 0; )
  25896. typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
  25897. if (i === -1) {
  25898. if (identifier2 === this.prerelease.join(".") && identifierBase === !1)
  25899. throw new Error("invalid increment argument: identifier already exists");
  25900. this.prerelease.push(base);
  25901. }
  25902. }
  25903. if (identifier2) {
  25904. let prerelease = [identifier2, base];
  25905. identifierBase === !1 && (prerelease = [identifier2]), compareIdentifiers(this.prerelease[0], identifier2) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
  25906. }
  25907. break;
  25908. }
  25909. default:
  25910. throw new Error(`invalid increment argument: ${release}`);
  25911. }
  25912. return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
  25913. }
  25914. };
  25915. module2.exports = SemVer;
  25916. }
  25917. });
  25918. // ../../node_modules/semver/functions/parse.js
  25919. var require_parse2 = __commonJS({
  25920. "../../node_modules/semver/functions/parse.js"(exports, module2) {
  25921. "use strict";
  25922. var SemVer = require_semver(), parse9 = (version2, options, throwErrors = !1) => {
  25923. if (version2 instanceof SemVer)
  25924. return version2;
  25925. try {
  25926. return new SemVer(version2, options);
  25927. } catch (er) {
  25928. if (!throwErrors)
  25929. return null;
  25930. throw er;
  25931. }
  25932. };
  25933. module2.exports = parse9;
  25934. }
  25935. });
  25936. // ../../node_modules/semver/functions/valid.js
  25937. var require_valid = __commonJS({
  25938. "../../node_modules/semver/functions/valid.js"(exports, module2) {
  25939. "use strict";
  25940. var parse9 = require_parse2(), valid = (version2, options) => {
  25941. let v = parse9(version2, options);
  25942. return v ? v.version : null;
  25943. };
  25944. module2.exports = valid;
  25945. }
  25946. });
  25947. // ../../node_modules/semver/functions/clean.js
  25948. var require_clean = __commonJS({
  25949. "../../node_modules/semver/functions/clean.js"(exports, module2) {
  25950. "use strict";
  25951. var parse9 = require_parse2(), clean = (version2, options) => {
  25952. let s3 = parse9(version2.trim().replace(/^[=v]+/, ""), options);
  25953. return s3 ? s3.version : null;
  25954. };
  25955. module2.exports = clean;
  25956. }
  25957. });
  25958. // ../../node_modules/semver/functions/inc.js
  25959. var require_inc = __commonJS({
  25960. "../../node_modules/semver/functions/inc.js"(exports, module2) {
  25961. "use strict";
  25962. var SemVer = require_semver(), inc = (version2, release, options, identifier2, identifierBase) => {
  25963. typeof options == "string" && (identifierBase = identifier2, identifier2 = options, options = void 0);
  25964. try {
  25965. return new SemVer(
  25966. version2 instanceof SemVer ? version2.version : version2,
  25967. options
  25968. ).inc(release, identifier2, identifierBase).version;
  25969. } catch {
  25970. return null;
  25971. }
  25972. };
  25973. module2.exports = inc;
  25974. }
  25975. });
  25976. // ../../node_modules/semver/functions/diff.js
  25977. var require_diff = __commonJS({
  25978. "../../node_modules/semver/functions/diff.js"(exports, module2) {
  25979. "use strict";
  25980. var parse9 = require_parse2(), diff2 = (version1, version2) => {
  25981. let v1 = parse9(version1, null, !0), v2 = parse9(version2, null, !0), comparison = v1.compare(v2);
  25982. if (comparison === 0)
  25983. return null;
  25984. let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
  25985. if (!!lowVersion.prerelease.length && !highHasPre) {
  25986. if (!lowVersion.patch && !lowVersion.minor)
  25987. return "major";
  25988. if (lowVersion.compareMain(highVersion) === 0)
  25989. return lowVersion.minor && !lowVersion.patch ? "minor" : "patch";
  25990. }
  25991. let prefix4 = highHasPre ? "pre" : "";
  25992. return v1.major !== v2.major ? prefix4 + "major" : v1.minor !== v2.minor ? prefix4 + "minor" : v1.patch !== v2.patch ? prefix4 + "patch" : "prerelease";
  25993. };
  25994. module2.exports = diff2;
  25995. }
  25996. });
  25997. // ../../node_modules/semver/functions/major.js
  25998. var require_major = __commonJS({
  25999. "../../node_modules/semver/functions/major.js"(exports, module2) {
  26000. "use strict";
  26001. var SemVer = require_semver(), major = (a3, loose) => new SemVer(a3, loose).major;
  26002. module2.exports = major;
  26003. }
  26004. });
  26005. // ../../node_modules/semver/functions/minor.js
  26006. var require_minor = __commonJS({
  26007. "../../node_modules/semver/functions/minor.js"(exports, module2) {
  26008. "use strict";
  26009. var SemVer = require_semver(), minor = (a3, loose) => new SemVer(a3, loose).minor;
  26010. module2.exports = minor;
  26011. }
  26012. });
  26013. // ../../node_modules/semver/functions/patch.js
  26014. var require_patch = __commonJS({
  26015. "../../node_modules/semver/functions/patch.js"(exports, module2) {
  26016. "use strict";
  26017. var SemVer = require_semver(), patch = (a3, loose) => new SemVer(a3, loose).patch;
  26018. module2.exports = patch;
  26019. }
  26020. });
  26021. // ../../node_modules/semver/functions/prerelease.js
  26022. var require_prerelease = __commonJS({
  26023. "../../node_modules/semver/functions/prerelease.js"(exports, module2) {
  26024. "use strict";
  26025. var parse9 = require_parse2(), prerelease = (version2, options) => {
  26026. let parsed = parse9(version2, options);
  26027. return parsed && parsed.prerelease.length ? parsed.prerelease : null;
  26028. };
  26029. module2.exports = prerelease;
  26030. }
  26031. });
  26032. // ../../node_modules/semver/functions/compare.js
  26033. var require_compare = __commonJS({
  26034. "../../node_modules/semver/functions/compare.js"(exports, module2) {
  26035. "use strict";
  26036. var SemVer = require_semver(), compare = (a3, b, loose) => new SemVer(a3, loose).compare(new SemVer(b, loose));
  26037. module2.exports = compare;
  26038. }
  26039. });
  26040. // ../../node_modules/semver/functions/rcompare.js
  26041. var require_rcompare = __commonJS({
  26042. "../../node_modules/semver/functions/rcompare.js"(exports, module2) {
  26043. "use strict";
  26044. var compare = require_compare(), rcompare = (a3, b, loose) => compare(b, a3, loose);
  26045. module2.exports = rcompare;
  26046. }
  26047. });
  26048. // ../../node_modules/semver/functions/compare-loose.js
  26049. var require_compare_loose = __commonJS({
  26050. "../../node_modules/semver/functions/compare-loose.js"(exports, module2) {
  26051. "use strict";
  26052. var compare = require_compare(), compareLoose = (a3, b) => compare(a3, b, !0);
  26053. module2.exports = compareLoose;
  26054. }
  26055. });
  26056. // ../../node_modules/semver/functions/compare-build.js
  26057. var require_compare_build = __commonJS({
  26058. "../../node_modules/semver/functions/compare-build.js"(exports, module2) {
  26059. "use strict";
  26060. var SemVer = require_semver(), compareBuild = (a3, b, loose) => {
  26061. let versionA = new SemVer(a3, loose), versionB = new SemVer(b, loose);
  26062. return versionA.compare(versionB) || versionA.compareBuild(versionB);
  26063. };
  26064. module2.exports = compareBuild;
  26065. }
  26066. });
  26067. // ../../node_modules/semver/functions/sort.js
  26068. var require_sort = __commonJS({
  26069. "../../node_modules/semver/functions/sort.js"(exports, module2) {
  26070. "use strict";
  26071. var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a3, b) => compareBuild(a3, b, loose));
  26072. module2.exports = sort;
  26073. }
  26074. });
  26075. // ../../node_modules/semver/functions/rsort.js
  26076. var require_rsort = __commonJS({
  26077. "../../node_modules/semver/functions/rsort.js"(exports, module2) {
  26078. "use strict";
  26079. var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a3, b) => compareBuild(b, a3, loose));
  26080. module2.exports = rsort;
  26081. }
  26082. });
  26083. // ../../node_modules/semver/functions/gt.js
  26084. var require_gt = __commonJS({
  26085. "../../node_modules/semver/functions/gt.js"(exports, module2) {
  26086. "use strict";
  26087. var compare = require_compare(), gt = (a3, b, loose) => compare(a3, b, loose) > 0;
  26088. module2.exports = gt;
  26089. }
  26090. });
  26091. // ../../node_modules/semver/functions/lt.js
  26092. var require_lt = __commonJS({
  26093. "../../node_modules/semver/functions/lt.js"(exports, module2) {
  26094. "use strict";
  26095. var compare = require_compare(), lt = (a3, b, loose) => compare(a3, b, loose) < 0;
  26096. module2.exports = lt;
  26097. }
  26098. });
  26099. // ../../node_modules/semver/functions/eq.js
  26100. var require_eq = __commonJS({
  26101. "../../node_modules/semver/functions/eq.js"(exports, module2) {
  26102. "use strict";
  26103. var compare = require_compare(), eq4 = (a3, b, loose) => compare(a3, b, loose) === 0;
  26104. module2.exports = eq4;
  26105. }
  26106. });
  26107. // ../../node_modules/semver/functions/neq.js
  26108. var require_neq = __commonJS({
  26109. "../../node_modules/semver/functions/neq.js"(exports, module2) {
  26110. "use strict";
  26111. var compare = require_compare(), neq = (a3, b, loose) => compare(a3, b, loose) !== 0;
  26112. module2.exports = neq;
  26113. }
  26114. });
  26115. // ../../node_modules/semver/functions/gte.js
  26116. var require_gte = __commonJS({
  26117. "../../node_modules/semver/functions/gte.js"(exports, module2) {
  26118. "use strict";
  26119. var compare = require_compare(), gte = (a3, b, loose) => compare(a3, b, loose) >= 0;
  26120. module2.exports = gte;
  26121. }
  26122. });
  26123. // ../../node_modules/semver/functions/lte.js
  26124. var require_lte = __commonJS({
  26125. "../../node_modules/semver/functions/lte.js"(exports, module2) {
  26126. "use strict";
  26127. var compare = require_compare(), lte = (a3, b, loose) => compare(a3, b, loose) <= 0;
  26128. module2.exports = lte;
  26129. }
  26130. });
  26131. // ../../node_modules/semver/functions/cmp.js
  26132. var require_cmp = __commonJS({
  26133. "../../node_modules/semver/functions/cmp.js"(exports, module2) {
  26134. "use strict";
  26135. var eq4 = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a3, op, b, loose) => {
  26136. switch (op) {
  26137. case "===":
  26138. return typeof a3 == "object" && (a3 = a3.version), typeof b == "object" && (b = b.version), a3 === b;
  26139. case "!==":
  26140. return typeof a3 == "object" && (a3 = a3.version), typeof b == "object" && (b = b.version), a3 !== b;
  26141. case "":
  26142. case "=":
  26143. case "==":
  26144. return eq4(a3, b, loose);
  26145. case "!=":
  26146. return neq(a3, b, loose);
  26147. case ">":
  26148. return gt(a3, b, loose);
  26149. case ">=":
  26150. return gte(a3, b, loose);
  26151. case "<":
  26152. return lt(a3, b, loose);
  26153. case "<=":
  26154. return lte(a3, b, loose);
  26155. default:
  26156. throw new TypeError(`Invalid operator: ${op}`);
  26157. }
  26158. };
  26159. module2.exports = cmp;
  26160. }
  26161. });
  26162. // ../../node_modules/semver/functions/coerce.js
  26163. var require_coerce = __commonJS({
  26164. "../../node_modules/semver/functions/coerce.js"(exports, module2) {
  26165. "use strict";
  26166. var SemVer = require_semver(), parse9 = require_parse2(), { safeRe: re, t } = require_re(), coerce = (version2, options) => {
  26167. if (version2 instanceof SemVer)
  26168. return version2;
  26169. if (typeof version2 == "number" && (version2 = String(version2)), typeof version2 != "string")
  26170. return null;
  26171. options = options || {};
  26172. let match3 = null;
  26173. if (!options.rtl)
  26174. match3 = version2.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
  26175. else {
  26176. let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next2;
  26177. for (; (next2 = coerceRtlRegex.exec(version2)) && (!match3 || match3.index + match3[0].length !== version2.length); )
  26178. (!match3 || next2.index + next2[0].length !== match3.index + match3[0].length) && (match3 = next2), coerceRtlRegex.lastIndex = next2.index + next2[1].length + next2[2].length;
  26179. coerceRtlRegex.lastIndex = -1;
  26180. }
  26181. if (match3 === null)
  26182. return null;
  26183. let major = match3[2], minor = match3[3] || "0", patch = match3[4] || "0", prerelease = options.includePrerelease && match3[5] ? `-${match3[5]}` : "", build3 = options.includePrerelease && match3[6] ? `+${match3[6]}` : "";
  26184. return parse9(`${major}.${minor}.${patch}${prerelease}${build3}`, options);
  26185. };
  26186. module2.exports = coerce;
  26187. }
  26188. });
  26189. // ../../node_modules/semver/internal/lrucache.js
  26190. var require_lrucache = __commonJS({
  26191. "../../node_modules/semver/internal/lrucache.js"(exports, module2) {
  26192. "use strict";
  26193. var LRUCache = class {
  26194. constructor() {
  26195. this.max = 1e3, this.map = /* @__PURE__ */ new Map();
  26196. }
  26197. get(key) {
  26198. let value = this.map.get(key);
  26199. if (value !== void 0)
  26200. return this.map.delete(key), this.map.set(key, value), value;
  26201. }
  26202. delete(key) {
  26203. return this.map.delete(key);
  26204. }
  26205. set(key, value) {
  26206. if (!this.delete(key) && value !== void 0) {
  26207. if (this.map.size >= this.max) {
  26208. let firstKey = this.map.keys().next().value;
  26209. this.delete(firstKey);
  26210. }
  26211. this.map.set(key, value);
  26212. }
  26213. return this;
  26214. }
  26215. };
  26216. module2.exports = LRUCache;
  26217. }
  26218. });
  26219. // ../../node_modules/semver/classes/range.js
  26220. var require_range2 = __commonJS({
  26221. "../../node_modules/semver/classes/range.js"(exports, module2) {
  26222. "use strict";
  26223. var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
  26224. constructor(range, options) {
  26225. if (options = parseOptions(options), range instanceof _Range)
  26226. return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
  26227. if (range instanceof Comparator)
  26228. return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
  26229. if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c) => c.length), !this.set.length)
  26230. throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
  26231. if (this.set.length > 1) {
  26232. let first = this.set[0];
  26233. if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
  26234. this.set = [first];
  26235. else if (this.set.length > 1) {
  26236. for (let c of this.set)
  26237. if (c.length === 1 && isAny(c[0])) {
  26238. this.set = [c];
  26239. break;
  26240. }
  26241. }
  26242. }
  26243. this.formatted = void 0;
  26244. }
  26245. get range() {
  26246. if (this.formatted === void 0) {
  26247. this.formatted = "";
  26248. for (let i = 0; i < this.set.length; i++) {
  26249. i > 0 && (this.formatted += "||");
  26250. let comps = this.set[i];
  26251. for (let k = 0; k < comps.length; k++)
  26252. k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
  26253. }
  26254. }
  26255. return this.formatted;
  26256. }
  26257. format() {
  26258. return this.range;
  26259. }
  26260. toString() {
  26261. return this.range;
  26262. }
  26263. parseRange(range) {
  26264. let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
  26265. if (cached)
  26266. return cached;
  26267. let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
  26268. range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug2("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug2("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug2("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug2("caret trim", range);
  26269. let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
  26270. loose && (rangeList = rangeList.filter((comp) => (debug2("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug2("range list", rangeList);
  26271. let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
  26272. for (let comp of comparators) {
  26273. if (isNullSet(comp))
  26274. return [comp];
  26275. rangeMap.set(comp.value, comp);
  26276. }
  26277. rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
  26278. let result = [...rangeMap.values()];
  26279. return cache.set(memoKey, result), result;
  26280. }
  26281. intersects(range, options) {
  26282. if (!(range instanceof _Range))
  26283. throw new TypeError("a Range is required");
  26284. return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
  26285. }
  26286. // if ANY of the sets match ALL of its comparators, then pass
  26287. test(version2) {
  26288. if (!version2)
  26289. return !1;
  26290. if (typeof version2 == "string")
  26291. try {
  26292. version2 = new SemVer(version2, this.options);
  26293. } catch {
  26294. return !1;
  26295. }
  26296. for (let i = 0; i < this.set.length; i++)
  26297. if (testSet(this.set[i], version2, this.options))
  26298. return !0;
  26299. return !1;
  26300. }
  26301. };
  26302. module2.exports = Range;
  26303. var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug2 = require_debug(), SemVer = require_semver(), {
  26304. safeRe: re,
  26305. t,
  26306. comparatorTrimReplace,
  26307. tildeTrimReplace,
  26308. caretTrimReplace
  26309. } = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
  26310. let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
  26311. for (; result && remainingComparators.length; )
  26312. result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
  26313. return result;
  26314. }, parseComparator = (comp, options) => (comp = comp.replace(re[t.BUILD], ""), debug2("comp", comp, options), comp = replaceCarets(comp, options), debug2("caret", comp), comp = replaceTildes(comp, options), debug2("tildes", comp), comp = replaceXRanges(comp, options), debug2("xrange", comp), comp = replaceStars(comp, options), debug2("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
  26315. let r2 = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
  26316. return comp.replace(r2, (_, M, m3, p3, pr) => {
  26317. debug2("tilde", comp, _, M, m3, p3, pr);
  26318. let ret;
  26319. return isX(M) ? ret = "" : isX(m3) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p3) ? ret = `>=${M}.${m3}.0 <${M}.${+m3 + 1}.0-0` : pr ? (debug2("replaceTilde pr", pr), ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`) : ret = `>=${M}.${m3}.${p3} <${M}.${+m3 + 1}.0-0`, debug2("tilde return", ret), ret;
  26320. });
  26321. }, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
  26322. debug2("caret", comp, options);
  26323. let r2 = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
  26324. return comp.replace(r2, (_, M, m3, p3, pr) => {
  26325. debug2("caret", comp, _, M, m3, p3, pr);
  26326. let ret;
  26327. return isX(M) ? ret = "" : isX(m3) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p3) ? M === "0" ? ret = `>=${M}.${m3}.0${z} <${M}.${+m3 + 1}.0-0` : ret = `>=${M}.${m3}.0${z} <${+M + 1}.0.0-0` : pr ? (debug2("replaceCaret pr", pr), M === "0" ? m3 === "0" ? ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${m3}.${+p3 + 1}-0` : ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0` : ret = `>=${M}.${m3}.${p3}-${pr} <${+M + 1}.0.0-0`) : (debug2("no pr"), M === "0" ? m3 === "0" ? ret = `>=${M}.${m3}.${p3}${z} <${M}.${m3}.${+p3 + 1}-0` : ret = `>=${M}.${m3}.${p3}${z} <${M}.${+m3 + 1}.0-0` : ret = `>=${M}.${m3}.${p3} <${+M + 1}.0.0-0`), debug2("caret return", ret), ret;
  26328. });
  26329. }, replaceXRanges = (comp, options) => (debug2("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
  26330. comp = comp.trim();
  26331. let r2 = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
  26332. return comp.replace(r2, (ret, gtlt, M, m3, p3, pr) => {
  26333. debug2("xRange", comp, ret, gtlt, M, m3, p3, pr);
  26334. let xM = isX(M), xm = xM || isX(m3), xp = xm || isX(p3), anyX = xp;
  26335. return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m3 = 0), p3 = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m3 = 0, p3 = 0) : (m3 = +m3 + 1, p3 = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m3 = +m3 + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m3}.${p3}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m3}.0${pr} <${M}.${+m3 + 1}.0-0`), debug2("xRange return", ret), ret;
  26336. });
  26337. }, replaceStars = (comp, options) => (debug2("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug2("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from2, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from2 = "" : isX(fm) ? from2 = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from2 = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from2 = `>=${from2}` : from2 = `>=${from2}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from2} ${to}`.trim()), testSet = (set3, version2, options) => {
  26338. for (let i = 0; i < set3.length; i++)
  26339. if (!set3[i].test(version2))
  26340. return !1;
  26341. if (version2.prerelease.length && !options.includePrerelease) {
  26342. for (let i = 0; i < set3.length; i++)
  26343. if (debug2(set3[i].semver), set3[i].semver !== Comparator.ANY && set3[i].semver.prerelease.length > 0) {
  26344. let allowed = set3[i].semver;
  26345. if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch)
  26346. return !0;
  26347. }
  26348. return !1;
  26349. }
  26350. return !0;
  26351. };
  26352. }
  26353. });
  26354. // ../../node_modules/semver/classes/comparator.js
  26355. var require_comparator = __commonJS({
  26356. "../../node_modules/semver/classes/comparator.js"(exports, module2) {
  26357. "use strict";
  26358. var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
  26359. static get ANY() {
  26360. return ANY;
  26361. }
  26362. constructor(comp, options) {
  26363. if (options = parseOptions(options), comp instanceof _Comparator) {
  26364. if (comp.loose === !!options.loose)
  26365. return comp;
  26366. comp = comp.value;
  26367. }
  26368. comp = comp.trim().split(/\s+/).join(" "), debug2("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug2("comp", this);
  26369. }
  26370. parse(comp) {
  26371. let r2 = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m3 = comp.match(r2);
  26372. if (!m3)
  26373. throw new TypeError(`Invalid comparator: ${comp}`);
  26374. this.operator = m3[1] !== void 0 ? m3[1] : "", this.operator === "=" && (this.operator = ""), m3[2] ? this.semver = new SemVer(m3[2], this.options.loose) : this.semver = ANY;
  26375. }
  26376. toString() {
  26377. return this.value;
  26378. }
  26379. test(version2) {
  26380. if (debug2("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY)
  26381. return !0;
  26382. if (typeof version2 == "string")
  26383. try {
  26384. version2 = new SemVer(version2, this.options);
  26385. } catch {
  26386. return !1;
  26387. }
  26388. return cmp(version2, this.operator, this.semver, this.options);
  26389. }
  26390. intersects(comp, options) {
  26391. if (!(comp instanceof _Comparator))
  26392. throw new TypeError("a Comparator is required");
  26393. return this.operator === "" ? this.value === "" ? !0 : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
  26394. }
  26395. };
  26396. module2.exports = Comparator;
  26397. var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug2 = require_debug(), SemVer = require_semver(), Range = require_range2();
  26398. }
  26399. });
  26400. // ../../node_modules/semver/functions/satisfies.js
  26401. var require_satisfies = __commonJS({
  26402. "../../node_modules/semver/functions/satisfies.js"(exports, module2) {
  26403. "use strict";
  26404. var Range = require_range2(), satisfies = (version2, range, options) => {
  26405. try {
  26406. range = new Range(range, options);
  26407. } catch {
  26408. return !1;
  26409. }
  26410. return range.test(version2);
  26411. };
  26412. module2.exports = satisfies;
  26413. }
  26414. });
  26415. // ../../node_modules/semver/ranges/to-comparators.js
  26416. var require_to_comparators = __commonJS({
  26417. "../../node_modules/semver/ranges/to-comparators.js"(exports, module2) {
  26418. "use strict";
  26419. var Range = require_range2(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
  26420. module2.exports = toComparators;
  26421. }
  26422. });
  26423. // ../../node_modules/semver/ranges/max-satisfying.js
  26424. var require_max_satisfying = __commonJS({
  26425. "../../node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
  26426. "use strict";
  26427. var SemVer = require_semver(), Range = require_range2(), maxSatisfying = (versions, range, options) => {
  26428. let max2 = null, maxSV = null, rangeObj = null;
  26429. try {
  26430. rangeObj = new Range(range, options);
  26431. } catch {
  26432. return null;
  26433. }
  26434. return versions.forEach((v) => {
  26435. rangeObj.test(v) && (!max2 || maxSV.compare(v) === -1) && (max2 = v, maxSV = new SemVer(max2, options));
  26436. }), max2;
  26437. };
  26438. module2.exports = maxSatisfying;
  26439. }
  26440. });
  26441. // ../../node_modules/semver/ranges/min-satisfying.js
  26442. var require_min_satisfying = __commonJS({
  26443. "../../node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
  26444. "use strict";
  26445. var SemVer = require_semver(), Range = require_range2(), minSatisfying = (versions, range, options) => {
  26446. let min2 = null, minSV = null, rangeObj = null;
  26447. try {
  26448. rangeObj = new Range(range, options);
  26449. } catch {
  26450. return null;
  26451. }
  26452. return versions.forEach((v) => {
  26453. rangeObj.test(v) && (!min2 || minSV.compare(v) === 1) && (min2 = v, minSV = new SemVer(min2, options));
  26454. }), min2;
  26455. };
  26456. module2.exports = minSatisfying;
  26457. }
  26458. });
  26459. // ../../node_modules/semver/ranges/min-version.js
  26460. var require_min_version = __commonJS({
  26461. "../../node_modules/semver/ranges/min-version.js"(exports, module2) {
  26462. "use strict";
  26463. var SemVer = require_semver(), Range = require_range2(), gt = require_gt(), minVersion = (range, loose) => {
  26464. range = new Range(range, loose);
  26465. let minver = new SemVer("0.0.0");
  26466. if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
  26467. return minver;
  26468. minver = null;
  26469. for (let i = 0; i < range.set.length; ++i) {
  26470. let comparators = range.set[i], setMin = null;
  26471. comparators.forEach((comparator) => {
  26472. let compver = new SemVer(comparator.semver.version);
  26473. switch (comparator.operator) {
  26474. case ">":
  26475. compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
  26476. /* fallthrough */
  26477. case "":
  26478. case ">=":
  26479. (!setMin || gt(compver, setMin)) && (setMin = compver);
  26480. break;
  26481. case "<":
  26482. case "<=":
  26483. break;
  26484. /* istanbul ignore next */
  26485. default:
  26486. throw new Error(`Unexpected operation: ${comparator.operator}`);
  26487. }
  26488. }), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
  26489. }
  26490. return minver && range.test(minver) ? minver : null;
  26491. };
  26492. module2.exports = minVersion;
  26493. }
  26494. });
  26495. // ../../node_modules/semver/ranges/valid.js
  26496. var require_valid2 = __commonJS({
  26497. "../../node_modules/semver/ranges/valid.js"(exports, module2) {
  26498. "use strict";
  26499. var Range = require_range2(), validRange = (range, options) => {
  26500. try {
  26501. return new Range(range, options).range || "*";
  26502. } catch {
  26503. return null;
  26504. }
  26505. };
  26506. module2.exports = validRange;
  26507. }
  26508. });
  26509. // ../../node_modules/semver/ranges/outside.js
  26510. var require_outside = __commonJS({
  26511. "../../node_modules/semver/ranges/outside.js"(exports, module2) {
  26512. "use strict";
  26513. var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range2(), satisfies = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version2, range, hilo, options) => {
  26514. version2 = new SemVer(version2, options), range = new Range(range, options);
  26515. let gtfn, ltefn, ltfn, comp, ecomp;
  26516. switch (hilo) {
  26517. case ">":
  26518. gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
  26519. break;
  26520. case "<":
  26521. gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
  26522. break;
  26523. default:
  26524. throw new TypeError('Must provide a hilo val of "<" or ">"');
  26525. }
  26526. if (satisfies(version2, range, options))
  26527. return !1;
  26528. for (let i = 0; i < range.set.length; ++i) {
  26529. let comparators = range.set[i], high = null, low = null;
  26530. if (comparators.forEach((comparator) => {
  26531. comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
  26532. }), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version2, low.semver))
  26533. return !1;
  26534. if (low.operator === ecomp && ltfn(version2, low.semver))
  26535. return !1;
  26536. }
  26537. return !0;
  26538. };
  26539. module2.exports = outside;
  26540. }
  26541. });
  26542. // ../../node_modules/semver/ranges/gtr.js
  26543. var require_gtr = __commonJS({
  26544. "../../node_modules/semver/ranges/gtr.js"(exports, module2) {
  26545. "use strict";
  26546. var outside = require_outside(), gtr = (version2, range, options) => outside(version2, range, ">", options);
  26547. module2.exports = gtr;
  26548. }
  26549. });
  26550. // ../../node_modules/semver/ranges/ltr.js
  26551. var require_ltr = __commonJS({
  26552. "../../node_modules/semver/ranges/ltr.js"(exports, module2) {
  26553. "use strict";
  26554. var outside = require_outside(), ltr = (version2, range, options) => outside(version2, range, "<", options);
  26555. module2.exports = ltr;
  26556. }
  26557. });
  26558. // ../../node_modules/semver/ranges/intersects.js
  26559. var require_intersects = __commonJS({
  26560. "../../node_modules/semver/ranges/intersects.js"(exports, module2) {
  26561. "use strict";
  26562. var Range = require_range2(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
  26563. module2.exports = intersects;
  26564. }
  26565. });
  26566. // ../../node_modules/semver/ranges/simplify.js
  26567. var require_simplify = __commonJS({
  26568. "../../node_modules/semver/ranges/simplify.js"(exports, module2) {
  26569. "use strict";
  26570. var satisfies = require_satisfies(), compare = require_compare();
  26571. module2.exports = (versions, range, options) => {
  26572. let set3 = [], first = null, prev2 = null, v = versions.sort((a3, b) => compare(a3, b, options));
  26573. for (let version2 of v)
  26574. satisfies(version2, range, options) ? (prev2 = version2, first || (first = version2)) : (prev2 && set3.push([first, prev2]), prev2 = null, first = null);
  26575. first && set3.push([first, null]);
  26576. let ranges = [];
  26577. for (let [min2, max2] of set3)
  26578. min2 === max2 ? ranges.push(min2) : !max2 && min2 === v[0] ? ranges.push("*") : max2 ? min2 === v[0] ? ranges.push(`<=${max2}`) : ranges.push(`${min2} - ${max2}`) : ranges.push(`>=${min2}`);
  26579. let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
  26580. return simplified.length < original.length ? simplified : range;
  26581. };
  26582. }
  26583. });
  26584. // ../../node_modules/semver/ranges/subset.js
  26585. var require_subset = __commonJS({
  26586. "../../node_modules/semver/ranges/subset.js"(exports, module2) {
  26587. "use strict";
  26588. var Range = require_range2(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
  26589. if (sub === dom)
  26590. return !0;
  26591. sub = new Range(sub, options), dom = new Range(dom, options);
  26592. let sawNonNull = !1;
  26593. OUTER: for (let simpleSub of sub.set) {
  26594. for (let simpleDom of dom.set) {
  26595. let isSub = simpleSubset(simpleSub, simpleDom, options);
  26596. if (sawNonNull = sawNonNull || isSub !== null, isSub)
  26597. continue OUTER;
  26598. }
  26599. if (sawNonNull)
  26600. return !1;
  26601. }
  26602. return !0;
  26603. }, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
  26604. if (sub === dom)
  26605. return !0;
  26606. if (sub.length === 1 && sub[0].semver === ANY) {
  26607. if (dom.length === 1 && dom[0].semver === ANY)
  26608. return !0;
  26609. options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
  26610. }
  26611. if (dom.length === 1 && dom[0].semver === ANY) {
  26612. if (options.includePrerelease)
  26613. return !0;
  26614. dom = minimumVersion;
  26615. }
  26616. let eqSet = /* @__PURE__ */ new Set(), gt, lt;
  26617. for (let c of sub)
  26618. c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
  26619. if (eqSet.size > 1)
  26620. return null;
  26621. let gtltComp;
  26622. if (gt && lt) {
  26623. if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
  26624. return null;
  26625. if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
  26626. return null;
  26627. }
  26628. for (let eq4 of eqSet) {
  26629. if (gt && !satisfies(eq4, String(gt), options) || lt && !satisfies(eq4, String(lt), options))
  26630. return null;
  26631. for (let c of dom)
  26632. if (!satisfies(eq4, String(c), options))
  26633. return !1;
  26634. return !0;
  26635. }
  26636. let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : !1;
  26637. needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
  26638. for (let c of dom) {
  26639. if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
  26640. if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
  26641. if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
  26642. return !1;
  26643. } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options))
  26644. return !1;
  26645. }
  26646. if (lt) {
  26647. if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
  26648. if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
  26649. return !1;
  26650. } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
  26651. return !1;
  26652. }
  26653. if (!c.operator && (lt || gt) && gtltComp !== 0)
  26654. return !1;
  26655. }
  26656. return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
  26657. }, higherGT = (a3, b, options) => {
  26658. if (!a3)
  26659. return b;
  26660. let comp = compare(a3.semver, b.semver, options);
  26661. return comp > 0 ? a3 : comp < 0 || b.operator === ">" && a3.operator === ">=" ? b : a3;
  26662. }, lowerLT = (a3, b, options) => {
  26663. if (!a3)
  26664. return b;
  26665. let comp = compare(a3.semver, b.semver, options);
  26666. return comp < 0 ? a3 : comp > 0 || b.operator === "<" && a3.operator === "<=" ? b : a3;
  26667. };
  26668. module2.exports = subset;
  26669. }
  26670. });
  26671. // ../../node_modules/semver/index.js
  26672. var require_semver2 = __commonJS({
  26673. "../../node_modules/semver/index.js"(exports, module2) {
  26674. "use strict";
  26675. var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse9 = require_parse2(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff2 = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq4 = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range = require_range2(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
  26676. module2.exports = {
  26677. parse: parse9,
  26678. valid,
  26679. clean,
  26680. inc,
  26681. diff: diff2,
  26682. major,
  26683. minor,
  26684. patch,
  26685. prerelease,
  26686. compare,
  26687. rcompare,
  26688. compareLoose,
  26689. compareBuild,
  26690. sort,
  26691. rsort,
  26692. gt,
  26693. lt,
  26694. eq: eq4,
  26695. neq,
  26696. gte,
  26697. lte,
  26698. cmp,
  26699. coerce,
  26700. Comparator,
  26701. Range,
  26702. satisfies,
  26703. toComparators,
  26704. maxSatisfying,
  26705. minSatisfying,
  26706. minVersion,
  26707. validRange,
  26708. outside,
  26709. gtr,
  26710. ltr,
  26711. intersects,
  26712. simplifyRange,
  26713. subset,
  26714. SemVer,
  26715. re: internalRe.re,
  26716. src: internalRe.src,
  26717. tokens: internalRe.t,
  26718. SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
  26719. RELEASE_TYPES: constants.RELEASE_TYPES,
  26720. compareIdentifiers: identifiers.compareIdentifiers,
  26721. rcompareIdentifiers: identifiers.rcompareIdentifiers
  26722. };
  26723. }
  26724. });
  26725. // ../../node_modules/store2/dist/store2.js
  26726. var require_store2 = __commonJS({
  26727. "../../node_modules/store2/dist/store2.js"(exports, module2) {
  26728. (function(window2, define3) {
  26729. var _ = {
  26730. version: "2.14.4",
  26731. areas: {},
  26732. apis: {},
  26733. nsdelim: ".",
  26734. // utilities
  26735. inherit: function(api, o) {
  26736. for (var p3 in api)
  26737. o.hasOwnProperty(p3) || Object.defineProperty(o, p3, Object.getOwnPropertyDescriptor(api, p3));
  26738. return o;
  26739. },
  26740. stringify: function(d, fn4) {
  26741. return d === void 0 || typeof d == "function" ? d + "" : JSON.stringify(d, fn4 || _.replace);
  26742. },
  26743. parse: function(s3, fn4) {
  26744. try {
  26745. return JSON.parse(s3, fn4 || _.revive);
  26746. } catch {
  26747. return s3;
  26748. }
  26749. },
  26750. // extension hooks
  26751. fn: function(name, fn4) {
  26752. _.storeAPI[name] = fn4;
  26753. for (var api in _.apis)
  26754. _.apis[api][name] = fn4;
  26755. },
  26756. get: function(area, key) {
  26757. return area.getItem(key);
  26758. },
  26759. set: function(area, key, string) {
  26760. area.setItem(key, string);
  26761. },
  26762. remove: function(area, key) {
  26763. area.removeItem(key);
  26764. },
  26765. key: function(area, i) {
  26766. return area.key(i);
  26767. },
  26768. length: function(area) {
  26769. return area.length;
  26770. },
  26771. clear: function(area) {
  26772. area.clear();
  26773. },
  26774. // core functions
  26775. Store: function(id, area, namespace) {
  26776. var store3 = _.inherit(_.storeAPI, function(key, data, overwrite) {
  26777. return arguments.length === 0 ? store3.getAll() : typeof data == "function" ? store3.transact(key, data, overwrite) : data !== void 0 ? store3.set(key, data, overwrite) : typeof key == "string" || typeof key == "number" ? store3.get(key) : typeof key == "function" ? store3.each(key) : key ? store3.setAll(key, data) : store3.clear();
  26778. });
  26779. store3._id = id;
  26780. try {
  26781. var testKey = "__store2_test";
  26782. area.setItem(testKey, "ok"), store3._area = area, area.removeItem(testKey);
  26783. } catch {
  26784. store3._area = _.storage("fake");
  26785. }
  26786. return store3._ns = namespace || "", _.areas[id] || (_.areas[id] = store3._area), _.apis[store3._ns + store3._id] || (_.apis[store3._ns + store3._id] = store3), store3;
  26787. },
  26788. storeAPI: {
  26789. // admin functions
  26790. area: function(id, area) {
  26791. var store3 = this[id];
  26792. return (!store3 || !store3.area) && (store3 = _.Store(id, area, this._ns), this[id] || (this[id] = store3)), store3;
  26793. },
  26794. namespace: function(namespace, singleArea, delim) {
  26795. if (delim = delim || this._delim || _.nsdelim, !namespace)
  26796. return this._ns ? this._ns.substring(0, this._ns.length - delim.length) : "";
  26797. var ns = namespace, store3 = this[ns];
  26798. if ((!store3 || !store3.namespace) && (store3 = _.Store(this._id, this._area, this._ns + ns + delim), store3._delim = delim, this[ns] || (this[ns] = store3), !singleArea))
  26799. for (var name in _.areas)
  26800. store3.area(name, _.areas[name]);
  26801. return store3;
  26802. },
  26803. isFake: function(force) {
  26804. return force ? (this._real = this._area, this._area = _.storage("fake")) : force === !1 && (this._area = this._real || this._area), this._area.name === "fake";
  26805. },
  26806. toString: function() {
  26807. return "store" + (this._ns ? "." + this.namespace() : "") + "[" + this._id + "]";
  26808. },
  26809. // storage functions
  26810. has: function(key) {
  26811. return this._area.has ? this._area.has(this._in(key)) : this._in(key) in this._area;
  26812. },
  26813. size: function() {
  26814. return this.keys().length;
  26815. },
  26816. each: function(fn4, fill2) {
  26817. for (var i = 0, m3 = _.length(this._area); i < m3; i++) {
  26818. var key = this._out(_.key(this._area, i));
  26819. if (key !== void 0 && fn4.call(this, key, this.get(key), fill2) === !1)
  26820. break;
  26821. m3 > _.length(this._area) && (m3--, i--);
  26822. }
  26823. return fill2 || this;
  26824. },
  26825. keys: function(fillList) {
  26826. return this.each(function(k, v, list) {
  26827. list.push(k);
  26828. }, fillList || []);
  26829. },
  26830. get: function(key, alt) {
  26831. var s3 = _.get(this._area, this._in(key)), fn4;
  26832. return typeof alt == "function" && (fn4 = alt, alt = null), s3 !== null ? _.parse(s3, fn4) : alt ?? s3;
  26833. },
  26834. getAll: function(fillObj) {
  26835. return this.each(function(k, v, all) {
  26836. all[k] = v;
  26837. }, fillObj || {});
  26838. },
  26839. transact: function(key, fn4, alt) {
  26840. var val = this.get(key, alt), ret = fn4(val);
  26841. return this.set(key, ret === void 0 ? val : ret), this;
  26842. },
  26843. set: function(key, data, overwrite) {
  26844. var d = this.get(key), replacer3;
  26845. return d != null && overwrite === !1 ? data : (typeof overwrite == "function" && (replacer3 = overwrite, overwrite = void 0), _.set(this._area, this._in(key), _.stringify(data, replacer3), overwrite) || d);
  26846. },
  26847. setAll: function(data, overwrite) {
  26848. var changed, val;
  26849. for (var key in data)
  26850. val = data[key], this.set(key, val, overwrite) !== val && (changed = !0);
  26851. return changed;
  26852. },
  26853. add: function(key, data, replacer3) {
  26854. var d = this.get(key);
  26855. if (d instanceof Array)
  26856. data = d.concat(data);
  26857. else if (d !== null) {
  26858. var type5 = typeof d;
  26859. if (type5 === typeof data && type5 === "object") {
  26860. for (var k in data)
  26861. d[k] = data[k];
  26862. data = d;
  26863. } else
  26864. data = d + data;
  26865. }
  26866. return _.set(this._area, this._in(key), _.stringify(data, replacer3)), data;
  26867. },
  26868. remove: function(key, alt) {
  26869. var d = this.get(key, alt);
  26870. return _.remove(this._area, this._in(key)), d;
  26871. },
  26872. clear: function() {
  26873. return this._ns ? this.each(function(k) {
  26874. _.remove(this._area, this._in(k));
  26875. }, 1) : _.clear(this._area), this;
  26876. },
  26877. clearAll: function() {
  26878. var area = this._area;
  26879. for (var id in _.areas)
  26880. _.areas.hasOwnProperty(id) && (this._area = _.areas[id], this.clear());
  26881. return this._area = area, this;
  26882. },
  26883. // internal use functions
  26884. _in: function(k) {
  26885. return typeof k != "string" && (k = _.stringify(k)), this._ns ? this._ns + k : k;
  26886. },
  26887. _out: function(k) {
  26888. return this._ns ? k && k.indexOf(this._ns) === 0 ? k.substring(this._ns.length) : void 0 : (
  26889. // so each() knows to skip it
  26890. k
  26891. );
  26892. }
  26893. },
  26894. // end _.storeAPI
  26895. storage: function(name) {
  26896. return _.inherit(_.storageAPI, { items: {}, name });
  26897. },
  26898. storageAPI: {
  26899. length: 0,
  26900. has: function(k) {
  26901. return this.items.hasOwnProperty(k);
  26902. },
  26903. key: function(i) {
  26904. var c = 0;
  26905. for (var k in this.items)
  26906. if (this.has(k) && i === c++)
  26907. return k;
  26908. },
  26909. setItem: function(k, v) {
  26910. this.has(k) || this.length++, this.items[k] = v;
  26911. },
  26912. removeItem: function(k) {
  26913. this.has(k) && (delete this.items[k], this.length--);
  26914. },
  26915. getItem: function(k) {
  26916. return this.has(k) ? this.items[k] : null;
  26917. },
  26918. clear: function() {
  26919. for (var k in this.items)
  26920. this.removeItem(k);
  26921. }
  26922. }
  26923. // end _.storageAPI
  26924. }, store2 = (
  26925. // safely set this up (throws error in IE10/32bit mode for local files)
  26926. _.Store("local", (function() {
  26927. try {
  26928. return localStorage;
  26929. } catch {
  26930. }
  26931. })())
  26932. );
  26933. store2.local = store2, store2._ = _, store2.area("session", (function() {
  26934. try {
  26935. return sessionStorage;
  26936. } catch {
  26937. }
  26938. })()), store2.area("page", _.storage("page")), typeof define3 == "function" && define3.amd !== void 0 ? define3("store2", [], function() {
  26939. return store2;
  26940. }) : typeof module2 < "u" && module2.exports ? module2.exports = store2 : (window2.store && (_.conflict = window2.store), window2.store = store2);
  26941. })(exports, exports && exports.define);
  26942. }
  26943. });
  26944. // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
  26945. var require_use_sync_external_store_shim_production = __commonJS({
  26946. "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
  26947. "use strict";
  26948. var React99 = require_react();
  26949. function is(x, y) {
  26950. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
  26951. }
  26952. var objectIs = typeof Object.is == "function" ? Object.is : is, useState29 = React99.useState, useEffect26 = React99.useEffect, useLayoutEffect9 = React99.useLayoutEffect, useDebugValue = React99.useDebugValue;
  26953. function useSyncExternalStore$2(subscribe, getSnapshot) {
  26954. var value = getSnapshot(), _useState = useState29({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
  26955. return useLayoutEffect9(
  26956. function() {
  26957. inst.value = value, inst.getSnapshot = getSnapshot, checkIfSnapshotChanged(inst) && forceUpdate({ inst });
  26958. },
  26959. [subscribe, value, getSnapshot]
  26960. ), useEffect26(
  26961. function() {
  26962. return checkIfSnapshotChanged(inst) && forceUpdate({ inst }), subscribe(function() {
  26963. checkIfSnapshotChanged(inst) && forceUpdate({ inst });
  26964. });
  26965. },
  26966. [subscribe]
  26967. ), useDebugValue(value), value;
  26968. }
  26969. function checkIfSnapshotChanged(inst) {
  26970. var latestGetSnapshot = inst.getSnapshot;
  26971. inst = inst.value;
  26972. try {
  26973. var nextValue = latestGetSnapshot();
  26974. return !objectIs(inst, nextValue);
  26975. } catch {
  26976. return !0;
  26977. }
  26978. }
  26979. function useSyncExternalStore$1(subscribe, getSnapshot) {
  26980. return getSnapshot();
  26981. }
  26982. var shim = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? useSyncExternalStore$1 : useSyncExternalStore$2;
  26983. exports.useSyncExternalStore = React99.useSyncExternalStore !== void 0 ? React99.useSyncExternalStore : shim;
  26984. }
  26985. });
  26986. // ../../node_modules/use-sync-external-store/shim/index.js
  26987. var require_shim = __commonJS({
  26988. "../../node_modules/use-sync-external-store/shim/index.js"(exports, module2) {
  26989. "use strict";
  26990. module2.exports = require_use_sync_external_store_shim_production();
  26991. }
  26992. });
  26993. // ../../node_modules/react-popper/lib/esm/Manager.js
  26994. var React67, ManagerReferenceNodeContext, ManagerReferenceNodeSetterContext, init_Manager = __esm({
  26995. "../../node_modules/react-popper/lib/esm/Manager.js"() {
  26996. React67 = __toESM(require_react()), ManagerReferenceNodeContext = React67.createContext(), ManagerReferenceNodeSetterContext = React67.createContext();
  26997. }
  26998. });
  26999. // ../../node_modules/react-popper/lib/esm/utils.js
  27000. var React68, fromEntries3, useIsomorphicLayoutEffect2, init_utils3 = __esm({
  27001. "../../node_modules/react-popper/lib/esm/utils.js"() {
  27002. React68 = __toESM(require_react()), fromEntries3 = function(entries) {
  27003. return entries.reduce(function(acc, _ref) {
  27004. var key = _ref[0], value = _ref[1];
  27005. return acc[key] = value, acc;
  27006. }, {});
  27007. }, useIsomorphicLayoutEffect2 = typeof window < "u" && window.document && window.document.createElement ? React68.useLayoutEffect : React68.useEffect;
  27008. }
  27009. });
  27010. // ../../node_modules/@popperjs/core/lib/enums.js
  27011. var top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main2, afterMain, beforeWrite, write, afterWrite, modifierPhases, init_enums = __esm({
  27012. "../../node_modules/@popperjs/core/lib/enums.js"() {
  27013. top = "top", bottom = "bottom", right = "right", left = "left", auto = "auto", basePlacements = [top, bottom, right, left], start = "start", end = "end", clippingParents = "clippingParents", viewport = "viewport", popper = "popper", reference = "reference", variationPlacements = basePlacements.reduce(function(acc, placement) {
  27014. return acc.concat([placement + "-" + start, placement + "-" + end]);
  27015. }, []), placements = [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
  27016. return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
  27017. }, []), beforeRead = "beforeRead", read = "read", afterRead = "afterRead", beforeMain = "beforeMain", main2 = "main", afterMain = "afterMain", beforeWrite = "beforeWrite", write = "write", afterWrite = "afterWrite", modifierPhases = [beforeRead, read, afterRead, beforeMain, main2, afterMain, beforeWrite, write, afterWrite];
  27018. }
  27019. });
  27020. // ../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
  27021. function getNodeName(element) {
  27022. return element ? (element.nodeName || "").toLowerCase() : null;
  27023. }
  27024. var init_getNodeName = __esm({
  27025. "../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"() {
  27026. }
  27027. });
  27028. // ../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js
  27029. function getWindow2(node2) {
  27030. if (node2 == null)
  27031. return window;
  27032. if (node2.toString() !== "[object Window]") {
  27033. var ownerDocument = node2.ownerDocument;
  27034. return ownerDocument && ownerDocument.defaultView || window;
  27035. }
  27036. return node2;
  27037. }
  27038. var init_getWindow = __esm({
  27039. "../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js"() {
  27040. }
  27041. });
  27042. // ../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
  27043. function isElement5(node2) {
  27044. var OwnElement = getWindow2(node2).Element;
  27045. return node2 instanceof OwnElement || node2 instanceof Element;
  27046. }
  27047. function isHTMLElement(node2) {
  27048. var OwnElement = getWindow2(node2).HTMLElement;
  27049. return node2 instanceof OwnElement || node2 instanceof HTMLElement;
  27050. }
  27051. function isShadowRoot(node2) {
  27052. if (typeof ShadowRoot > "u")
  27053. return !1;
  27054. var OwnElement = getWindow2(node2).ShadowRoot;
  27055. return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
  27056. }
  27057. var init_instanceOf = __esm({
  27058. "../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"() {
  27059. init_getWindow();
  27060. }
  27061. });
  27062. // ../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js
  27063. function applyStyles(_ref) {
  27064. var state3 = _ref.state;
  27065. Object.keys(state3.elements).forEach(function(name) {
  27066. var style = state3.styles[name] || {}, attributes = state3.attributes[name] || {}, element = state3.elements[name];
  27067. !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(name2) {
  27068. var value = attributes[name2];
  27069. value === !1 ? element.removeAttribute(name2) : element.setAttribute(name2, value === !0 ? "" : value);
  27070. }));
  27071. });
  27072. }
  27073. function effect(_ref2) {
  27074. var state3 = _ref2.state, initialStyles = {
  27075. popper: {
  27076. position: state3.options.strategy,
  27077. left: "0",
  27078. top: "0",
  27079. margin: "0"
  27080. },
  27081. arrow: {
  27082. position: "absolute"
  27083. },
  27084. reference: {}
  27085. };
  27086. return Object.assign(state3.elements.popper.style, initialStyles.popper), state3.styles = initialStyles, state3.elements.arrow && Object.assign(state3.elements.arrow.style, initialStyles.arrow), function() {
  27087. Object.keys(state3.elements).forEach(function(name) {
  27088. var element = state3.elements[name], attributes = state3.attributes[name] || {}, styleProperties = Object.keys(state3.styles.hasOwnProperty(name) ? state3.styles[name] : initialStyles[name]), style = styleProperties.reduce(function(style2, property) {
  27089. return style2[property] = "", style2;
  27090. }, {});
  27091. !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(attribute) {
  27092. element.removeAttribute(attribute);
  27093. }));
  27094. });
  27095. };
  27096. }
  27097. var applyStyles_default, init_applyStyles = __esm({
  27098. "../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js"() {
  27099. init_getNodeName();
  27100. init_instanceOf();
  27101. applyStyles_default = {
  27102. name: "applyStyles",
  27103. enabled: !0,
  27104. phase: "write",
  27105. fn: applyStyles,
  27106. effect,
  27107. requires: ["computeStyles"]
  27108. };
  27109. }
  27110. });
  27111. // ../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js
  27112. function getBasePlacement(placement) {
  27113. return placement.split("-")[0];
  27114. }
  27115. var init_getBasePlacement = __esm({
  27116. "../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js"() {
  27117. init_enums();
  27118. }
  27119. });
  27120. // ../../node_modules/@popperjs/core/lib/utils/math.js
  27121. var max, min, round2, init_math = __esm({
  27122. "../../node_modules/@popperjs/core/lib/utils/math.js"() {
  27123. max = Math.max, min = Math.min, round2 = Math.round;
  27124. }
  27125. });
  27126. // ../../node_modules/@popperjs/core/lib/utils/userAgent.js
  27127. function getUAString() {
  27128. var uaData = navigator.userAgentData;
  27129. return uaData != null && uaData.brands && Array.isArray(uaData.brands) ? uaData.brands.map(function(item) {
  27130. return item.brand + "/" + item.version;
  27131. }).join(" ") : navigator.userAgent;
  27132. }
  27133. var init_userAgent = __esm({
  27134. "../../node_modules/@popperjs/core/lib/utils/userAgent.js"() {
  27135. }
  27136. });
  27137. // ../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
  27138. function isLayoutViewport() {
  27139. return !/^((?!chrome|android).)*safari/i.test(getUAString());
  27140. }
  27141. var init_isLayoutViewport = __esm({
  27142. "../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"() {
  27143. init_userAgent();
  27144. }
  27145. });
  27146. // ../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
  27147. function getBoundingClientRect(element, includeScale, isFixedStrategy) {
  27148. includeScale === void 0 && (includeScale = !1), isFixedStrategy === void 0 && (isFixedStrategy = !1);
  27149. var clientRect = element.getBoundingClientRect(), scaleX = 1, scaleY = 1;
  27150. includeScale && isHTMLElement(element) && (scaleX = element.offsetWidth > 0 && round2(clientRect.width) / element.offsetWidth || 1, scaleY = element.offsetHeight > 0 && round2(clientRect.height) / element.offsetHeight || 1);
  27151. var _ref = isElement5(element) ? getWindow2(element) : window, visualViewport = _ref.visualViewport, addVisualOffsets = !isLayoutViewport() && isFixedStrategy, x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX, y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY, width = clientRect.width / scaleX, height = clientRect.height / scaleY;
  27152. return {
  27153. width,
  27154. height,
  27155. top: y,
  27156. right: x + width,
  27157. bottom: y + height,
  27158. left: x,
  27159. x,
  27160. y
  27161. };
  27162. }
  27163. var init_getBoundingClientRect = __esm({
  27164. "../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"() {
  27165. init_instanceOf();
  27166. init_math();
  27167. init_getWindow();
  27168. init_isLayoutViewport();
  27169. }
  27170. });
  27171. // ../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
  27172. function getLayoutRect(element) {
  27173. var clientRect = getBoundingClientRect(element), width = element.offsetWidth, height = element.offsetHeight;
  27174. return Math.abs(clientRect.width - width) <= 1 && (width = clientRect.width), Math.abs(clientRect.height - height) <= 1 && (height = clientRect.height), {
  27175. x: element.offsetLeft,
  27176. y: element.offsetTop,
  27177. width,
  27178. height
  27179. };
  27180. }
  27181. var init_getLayoutRect = __esm({
  27182. "../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"() {
  27183. init_getBoundingClientRect();
  27184. }
  27185. });
  27186. // ../../node_modules/@popperjs/core/lib/dom-utils/contains.js
  27187. function contains(parent, child) {
  27188. var rootNode = child.getRootNode && child.getRootNode();
  27189. if (parent.contains(child))
  27190. return !0;
  27191. if (rootNode && isShadowRoot(rootNode)) {
  27192. var next2 = child;
  27193. do {
  27194. if (next2 && parent.isSameNode(next2))
  27195. return !0;
  27196. next2 = next2.parentNode || next2.host;
  27197. } while (next2);
  27198. }
  27199. return !1;
  27200. }
  27201. var init_contains = __esm({
  27202. "../../node_modules/@popperjs/core/lib/dom-utils/contains.js"() {
  27203. init_instanceOf();
  27204. }
  27205. });
  27206. // ../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
  27207. function getComputedStyle2(element) {
  27208. return getWindow2(element).getComputedStyle(element);
  27209. }
  27210. var init_getComputedStyle = __esm({
  27211. "../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"() {
  27212. init_getWindow();
  27213. }
  27214. });
  27215. // ../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
  27216. function isTableElement(element) {
  27217. return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
  27218. }
  27219. var init_isTableElement = __esm({
  27220. "../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"() {
  27221. init_getNodeName();
  27222. }
  27223. });
  27224. // ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
  27225. function getDocumentElement(element) {
  27226. return ((isElement5(element) ? element.ownerDocument : (
  27227. // $FlowFixMe[prop-missing]
  27228. element.document
  27229. )) || window.document).documentElement;
  27230. }
  27231. var init_getDocumentElement = __esm({
  27232. "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"() {
  27233. init_instanceOf();
  27234. }
  27235. });
  27236. // ../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
  27237. function getParentNode(element) {
  27238. return getNodeName(element) === "html" ? element : (
  27239. // this is a quicker (but less type safe) way to save quite some bytes from the bundle
  27240. // $FlowFixMe[incompatible-return]
  27241. // $FlowFixMe[prop-missing]
  27242. element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
  27243. element.parentNode || // DOM Element detected
  27244. (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
  27245. // $FlowFixMe[incompatible-call]: HTMLElement is a Node
  27246. getDocumentElement(element)
  27247. );
  27248. }
  27249. var init_getParentNode = __esm({
  27250. "../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"() {
  27251. init_getNodeName();
  27252. init_getDocumentElement();
  27253. init_instanceOf();
  27254. }
  27255. });
  27256. // ../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
  27257. function getTrueOffsetParent(element) {
  27258. return !isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
  27259. getComputedStyle2(element).position === "fixed" ? null : element.offsetParent;
  27260. }
  27261. function getContainingBlock(element) {
  27262. var isFirefox = /firefox/i.test(getUAString()), isIE2 = /Trident/i.test(getUAString());
  27263. if (isIE2 && isHTMLElement(element)) {
  27264. var elementCss = getComputedStyle2(element);
  27265. if (elementCss.position === "fixed")
  27266. return null;
  27267. }
  27268. var currentNode = getParentNode(element);
  27269. for (isShadowRoot(currentNode) && (currentNode = currentNode.host); isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0; ) {
  27270. var css3 = getComputedStyle2(currentNode);
  27271. if (css3.transform !== "none" || css3.perspective !== "none" || css3.contain === "paint" || ["transform", "perspective"].indexOf(css3.willChange) !== -1 || isFirefox && css3.willChange === "filter" || isFirefox && css3.filter && css3.filter !== "none")
  27272. return currentNode;
  27273. currentNode = currentNode.parentNode;
  27274. }
  27275. return null;
  27276. }
  27277. function getOffsetParent(element) {
  27278. for (var window2 = getWindow2(element), offsetParent = getTrueOffsetParent(element); offsetParent && isTableElement(offsetParent) && getComputedStyle2(offsetParent).position === "static"; )
  27279. offsetParent = getTrueOffsetParent(offsetParent);
  27280. return offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle2(offsetParent).position === "static") ? window2 : offsetParent || getContainingBlock(element) || window2;
  27281. }
  27282. var init_getOffsetParent = __esm({
  27283. "../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"() {
  27284. init_getWindow();
  27285. init_getNodeName();
  27286. init_getComputedStyle();
  27287. init_instanceOf();
  27288. init_isTableElement();
  27289. init_getParentNode();
  27290. init_userAgent();
  27291. }
  27292. });
  27293. // ../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
  27294. function getMainAxisFromPlacement(placement) {
  27295. return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
  27296. }
  27297. var init_getMainAxisFromPlacement = __esm({
  27298. "../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"() {
  27299. }
  27300. });
  27301. // ../../node_modules/@popperjs/core/lib/utils/within.js
  27302. function within2(min2, value, max2) {
  27303. return max(min2, min(value, max2));
  27304. }
  27305. function withinMaxClamp(min2, value, max2) {
  27306. var v = within2(min2, value, max2);
  27307. return v > max2 ? max2 : v;
  27308. }
  27309. var init_within = __esm({
  27310. "../../node_modules/@popperjs/core/lib/utils/within.js"() {
  27311. init_math();
  27312. }
  27313. });
  27314. // ../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
  27315. function getFreshSideObject() {
  27316. return {
  27317. top: 0,
  27318. right: 0,
  27319. bottom: 0,
  27320. left: 0
  27321. };
  27322. }
  27323. var init_getFreshSideObject = __esm({
  27324. "../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"() {
  27325. }
  27326. });
  27327. // ../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
  27328. function mergePaddingObject(paddingObject) {
  27329. return Object.assign({}, getFreshSideObject(), paddingObject);
  27330. }
  27331. var init_mergePaddingObject = __esm({
  27332. "../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"() {
  27333. init_getFreshSideObject();
  27334. }
  27335. });
  27336. // ../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js
  27337. function expandToHashMap(value, keys3) {
  27338. return keys3.reduce(function(hashMap, key) {
  27339. return hashMap[key] = value, hashMap;
  27340. }, {});
  27341. }
  27342. var init_expandToHashMap = __esm({
  27343. "../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js"() {
  27344. }
  27345. });
  27346. // ../../node_modules/@popperjs/core/lib/modifiers/arrow.js
  27347. function arrow(_ref) {
  27348. var _state$modifiersData$, state3 = _ref.state, name = _ref.name, options = _ref.options, arrowElement = state3.elements.arrow, popperOffsets2 = state3.modifiersData.popperOffsets, basePlacement = getBasePlacement(state3.placement), axis = getMainAxisFromPlacement(basePlacement), isVertical = [left, right].indexOf(basePlacement) >= 0, len = isVertical ? "height" : "width";
  27349. if (!(!arrowElement || !popperOffsets2)) {
  27350. var paddingObject = toPaddingObject(options.padding, state3), arrowRect = getLayoutRect(arrowElement), minProp = axis === "y" ? top : left, maxProp = axis === "y" ? bottom : right, endDiff = state3.rects.reference[len] + state3.rects.reference[axis] - popperOffsets2[axis] - state3.rects.popper[len], startDiff = popperOffsets2[axis] - state3.rects.reference[axis], arrowOffsetParent = getOffsetParent(arrowElement), clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0, centerToReference = endDiff / 2 - startDiff / 2, min2 = paddingObject[minProp], max2 = clientSize - arrowRect[len] - paddingObject[maxProp], center = clientSize / 2 - arrowRect[len] / 2 + centerToReference, offset3 = within2(min2, center, max2), axisProp = axis;
  27351. state3.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset3, _state$modifiersData$.centerOffset = offset3 - center, _state$modifiersData$);
  27352. }
  27353. }
  27354. function effect2(_ref2) {
  27355. var state3 = _ref2.state, options = _ref2.options, _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element;
  27356. arrowElement != null && (typeof arrowElement == "string" && (arrowElement = state3.elements.popper.querySelector(arrowElement), !arrowElement) || contains(state3.elements.popper, arrowElement) && (state3.elements.arrow = arrowElement));
  27357. }
  27358. var toPaddingObject, arrow_default, init_arrow = __esm({
  27359. "../../node_modules/@popperjs/core/lib/modifiers/arrow.js"() {
  27360. init_getBasePlacement();
  27361. init_getLayoutRect();
  27362. init_contains();
  27363. init_getOffsetParent();
  27364. init_getMainAxisFromPlacement();
  27365. init_within();
  27366. init_mergePaddingObject();
  27367. init_expandToHashMap();
  27368. init_enums();
  27369. toPaddingObject = function(padding, state3) {
  27370. return padding = typeof padding == "function" ? padding(Object.assign({}, state3.rects, {
  27371. placement: state3.placement
  27372. })) : padding, mergePaddingObject(typeof padding != "number" ? padding : expandToHashMap(padding, basePlacements));
  27373. };
  27374. arrow_default = {
  27375. name: "arrow",
  27376. enabled: !0,
  27377. phase: "main",
  27378. fn: arrow,
  27379. effect: effect2,
  27380. requires: ["popperOffsets"],
  27381. requiresIfExists: ["preventOverflow"]
  27382. };
  27383. }
  27384. });
  27385. // ../../node_modules/@popperjs/core/lib/utils/getVariation.js
  27386. function getVariation(placement) {
  27387. return placement.split("-")[1];
  27388. }
  27389. var init_getVariation = __esm({
  27390. "../../node_modules/@popperjs/core/lib/utils/getVariation.js"() {
  27391. }
  27392. });
  27393. // ../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js
  27394. function roundOffsetsByDPR(_ref, win) {
  27395. var x = _ref.x, y = _ref.y, dpr = win.devicePixelRatio || 1;
  27396. return {
  27397. x: round2(x * dpr) / dpr || 0,
  27398. y: round2(y * dpr) / dpr || 0
  27399. };
  27400. }
  27401. function mapToStyles(_ref2) {
  27402. var _Object$assign2, popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position2 = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed, _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y, _ref3 = typeof roundOffsets == "function" ? roundOffsets({
  27403. x,
  27404. y
  27405. }) : {
  27406. x,
  27407. y
  27408. };
  27409. x = _ref3.x, y = _ref3.y;
  27410. var hasX = offsets.hasOwnProperty("x"), hasY = offsets.hasOwnProperty("y"), sideX = left, sideY = top, win = window;
  27411. if (adaptive) {
  27412. var offsetParent = getOffsetParent(popper2), heightProp = "clientHeight", widthProp = "clientWidth";
  27413. if (offsetParent === getWindow2(popper2) && (offsetParent = getDocumentElement(popper2), getComputedStyle2(offsetParent).position !== "static" && position2 === "absolute" && (heightProp = "scrollHeight", widthProp = "scrollWidth")), offsetParent = offsetParent, placement === top || (placement === left || placement === right) && variation === end) {
  27414. sideY = bottom;
  27415. var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : (
  27416. // $FlowFixMe[prop-missing]
  27417. offsetParent[heightProp]
  27418. );
  27419. y -= offsetY - popperRect.height, y *= gpuAcceleration ? 1 : -1;
  27420. }
  27421. if (placement === left || (placement === top || placement === bottom) && variation === end) {
  27422. sideX = right;
  27423. var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : (
  27424. // $FlowFixMe[prop-missing]
  27425. offsetParent[widthProp]
  27426. );
  27427. x -= offsetX - popperRect.width, x *= gpuAcceleration ? 1 : -1;
  27428. }
  27429. }
  27430. var commonStyles = Object.assign({
  27431. position: position2
  27432. }, adaptive && unsetSides), _ref4 = roundOffsets === !0 ? roundOffsetsByDPR({
  27433. x,
  27434. y
  27435. }, getWindow2(popper2)) : {
  27436. x,
  27437. y
  27438. };
  27439. if (x = _ref4.x, y = _ref4.y, gpuAcceleration) {
  27440. var _Object$assign;
  27441. return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
  27442. }
  27443. return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
  27444. }
  27445. function computeStyles(_ref5) {
  27446. var state3 = _ref5.state, options = _ref5.options, _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? !0 : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? !0 : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? !0 : _options$roundOffsets, commonStyles = {
  27447. placement: getBasePlacement(state3.placement),
  27448. variation: getVariation(state3.placement),
  27449. popper: state3.elements.popper,
  27450. popperRect: state3.rects.popper,
  27451. gpuAcceleration,
  27452. isFixed: state3.options.strategy === "fixed"
  27453. };
  27454. state3.modifiersData.popperOffsets != null && (state3.styles.popper = Object.assign({}, state3.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
  27455. offsets: state3.modifiersData.popperOffsets,
  27456. position: state3.options.strategy,
  27457. adaptive,
  27458. roundOffsets
  27459. })))), state3.modifiersData.arrow != null && (state3.styles.arrow = Object.assign({}, state3.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
  27460. offsets: state3.modifiersData.arrow,
  27461. position: "absolute",
  27462. adaptive: !1,
  27463. roundOffsets
  27464. })))), state3.attributes.popper = Object.assign({}, state3.attributes.popper, {
  27465. "data-popper-placement": state3.placement
  27466. });
  27467. }
  27468. var unsetSides, computeStyles_default, init_computeStyles = __esm({
  27469. "../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js"() {
  27470. init_enums();
  27471. init_getOffsetParent();
  27472. init_getWindow();
  27473. init_getDocumentElement();
  27474. init_getComputedStyle();
  27475. init_getBasePlacement();
  27476. init_getVariation();
  27477. init_math();
  27478. unsetSides = {
  27479. top: "auto",
  27480. right: "auto",
  27481. bottom: "auto",
  27482. left: "auto"
  27483. };
  27484. computeStyles_default = {
  27485. name: "computeStyles",
  27486. enabled: !0,
  27487. phase: "beforeWrite",
  27488. fn: computeStyles,
  27489. data: {}
  27490. };
  27491. }
  27492. });
  27493. // ../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js
  27494. function effect3(_ref) {
  27495. var state3 = _ref.state, instance = _ref.instance, options = _ref.options, _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? !0 : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? !0 : _options$resize, window2 = getWindow2(state3.elements.popper), scrollParents = [].concat(state3.scrollParents.reference, state3.scrollParents.popper);
  27496. return scroll && scrollParents.forEach(function(scrollParent) {
  27497. scrollParent.addEventListener("scroll", instance.update, passive);
  27498. }), resize && window2.addEventListener("resize", instance.update, passive), function() {
  27499. scroll && scrollParents.forEach(function(scrollParent) {
  27500. scrollParent.removeEventListener("scroll", instance.update, passive);
  27501. }), resize && window2.removeEventListener("resize", instance.update, passive);
  27502. };
  27503. }
  27504. var passive, eventListeners_default, init_eventListeners = __esm({
  27505. "../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js"() {
  27506. init_getWindow();
  27507. passive = {
  27508. passive: !0
  27509. };
  27510. eventListeners_default = {
  27511. name: "eventListeners",
  27512. enabled: !0,
  27513. phase: "write",
  27514. fn: function() {
  27515. },
  27516. effect: effect3,
  27517. data: {}
  27518. };
  27519. }
  27520. });
  27521. // ../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
  27522. function getOppositePlacement(placement) {
  27523. return placement.replace(/left|right|bottom|top/g, function(matched) {
  27524. return hash2[matched];
  27525. });
  27526. }
  27527. var hash2, init_getOppositePlacement = __esm({
  27528. "../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"() {
  27529. hash2 = {
  27530. left: "right",
  27531. right: "left",
  27532. bottom: "top",
  27533. top: "bottom"
  27534. };
  27535. }
  27536. });
  27537. // ../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
  27538. function getOppositeVariationPlacement(placement) {
  27539. return placement.replace(/start|end/g, function(matched) {
  27540. return hash3[matched];
  27541. });
  27542. }
  27543. var hash3, init_getOppositeVariationPlacement = __esm({
  27544. "../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"() {
  27545. hash3 = {
  27546. start: "end",
  27547. end: "start"
  27548. };
  27549. }
  27550. });
  27551. // ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
  27552. function getWindowScroll(node2) {
  27553. var win = getWindow2(node2), scrollLeft = win.pageXOffset, scrollTop = win.pageYOffset;
  27554. return {
  27555. scrollLeft,
  27556. scrollTop
  27557. };
  27558. }
  27559. var init_getWindowScroll = __esm({
  27560. "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"() {
  27561. init_getWindow();
  27562. }
  27563. });
  27564. // ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
  27565. function getWindowScrollBarX(element) {
  27566. return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
  27567. }
  27568. var init_getWindowScrollBarX = __esm({
  27569. "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"() {
  27570. init_getBoundingClientRect();
  27571. init_getDocumentElement();
  27572. init_getWindowScroll();
  27573. }
  27574. });
  27575. // ../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
  27576. function getViewportRect(element, strategy) {
  27577. var win = getWindow2(element), html = getDocumentElement(element), visualViewport = win.visualViewport, width = html.clientWidth, height = html.clientHeight, x = 0, y = 0;
  27578. if (visualViewport) {
  27579. width = visualViewport.width, height = visualViewport.height;
  27580. var layoutViewport = isLayoutViewport();
  27581. (layoutViewport || !layoutViewport && strategy === "fixed") && (x = visualViewport.offsetLeft, y = visualViewport.offsetTop);
  27582. }
  27583. return {
  27584. width,
  27585. height,
  27586. x: x + getWindowScrollBarX(element),
  27587. y
  27588. };
  27589. }
  27590. var init_getViewportRect = __esm({
  27591. "../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"() {
  27592. init_getWindow();
  27593. init_getDocumentElement();
  27594. init_getWindowScrollBarX();
  27595. init_isLayoutViewport();
  27596. }
  27597. });
  27598. // ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
  27599. function getDocumentRect(element) {
  27600. var _element$ownerDocumen, html = getDocumentElement(element), winScroll = getWindowScroll(element), body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body, width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0), height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0), x = -winScroll.scrollLeft + getWindowScrollBarX(element), y = -winScroll.scrollTop;
  27601. return getComputedStyle2(body || html).direction === "rtl" && (x += max(html.clientWidth, body ? body.clientWidth : 0) - width), {
  27602. width,
  27603. height,
  27604. x,
  27605. y
  27606. };
  27607. }
  27608. var init_getDocumentRect = __esm({
  27609. "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"() {
  27610. init_getDocumentElement();
  27611. init_getComputedStyle();
  27612. init_getWindowScrollBarX();
  27613. init_getWindowScroll();
  27614. init_math();
  27615. }
  27616. });
  27617. // ../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
  27618. function isScrollParent(element) {
  27619. var _getComputedStyle = getComputedStyle2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
  27620. return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
  27621. }
  27622. var init_isScrollParent = __esm({
  27623. "../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"() {
  27624. init_getComputedStyle();
  27625. }
  27626. });
  27627. // ../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
  27628. function getScrollParent(node2) {
  27629. return ["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0 ? node2.ownerDocument.body : isHTMLElement(node2) && isScrollParent(node2) ? node2 : getScrollParent(getParentNode(node2));
  27630. }
  27631. var init_getScrollParent = __esm({
  27632. "../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"() {
  27633. init_getParentNode();
  27634. init_isScrollParent();
  27635. init_getNodeName();
  27636. init_instanceOf();
  27637. }
  27638. });
  27639. // ../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
  27640. function listScrollParents(element, list) {
  27641. var _element$ownerDocumen;
  27642. list === void 0 && (list = []);
  27643. var scrollParent = getScrollParent(element), isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body), win = getWindow2(scrollParent), target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent, updatedList = list.concat(target);
  27644. return isBody ? updatedList : (
  27645. // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
  27646. updatedList.concat(listScrollParents(getParentNode(target)))
  27647. );
  27648. }
  27649. var init_listScrollParents = __esm({
  27650. "../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"() {
  27651. init_getScrollParent();
  27652. init_getParentNode();
  27653. init_getWindow();
  27654. init_isScrollParent();
  27655. }
  27656. });
  27657. // ../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js
  27658. function rectToClientRect(rect) {
  27659. return Object.assign({}, rect, {
  27660. left: rect.x,
  27661. top: rect.y,
  27662. right: rect.x + rect.width,
  27663. bottom: rect.y + rect.height
  27664. });
  27665. }
  27666. var init_rectToClientRect = __esm({
  27667. "../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js"() {
  27668. }
  27669. });
  27670. // ../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
  27671. function getInnerBoundingClientRect(element, strategy) {
  27672. var rect = getBoundingClientRect(element, !1, strategy === "fixed");
  27673. return rect.top = rect.top + element.clientTop, rect.left = rect.left + element.clientLeft, rect.bottom = rect.top + element.clientHeight, rect.right = rect.left + element.clientWidth, rect.width = element.clientWidth, rect.height = element.clientHeight, rect.x = rect.left, rect.y = rect.top, rect;
  27674. }
  27675. function getClientRectFromMixedType(element, clippingParent, strategy) {
  27676. return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement5(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
  27677. }
  27678. function getClippingParents(element) {
  27679. var clippingParents2 = listScrollParents(getParentNode(element)), canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle2(element).position) >= 0, clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
  27680. return isElement5(clipperElement) ? clippingParents2.filter(function(clippingParent) {
  27681. return isElement5(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body";
  27682. }) : [];
  27683. }
  27684. function getClippingRect(element, boundary, rootBoundary, strategy) {
  27685. var mainClippingParents = boundary === "clippingParents" ? getClippingParents(element) : [].concat(boundary), clippingParents2 = [].concat(mainClippingParents, [rootBoundary]), firstClippingParent = clippingParents2[0], clippingRect = clippingParents2.reduce(function(accRect, clippingParent) {
  27686. var rect = getClientRectFromMixedType(element, clippingParent, strategy);
  27687. return accRect.top = max(rect.top, accRect.top), accRect.right = min(rect.right, accRect.right), accRect.bottom = min(rect.bottom, accRect.bottom), accRect.left = max(rect.left, accRect.left), accRect;
  27688. }, getClientRectFromMixedType(element, firstClippingParent, strategy));
  27689. return clippingRect.width = clippingRect.right - clippingRect.left, clippingRect.height = clippingRect.bottom - clippingRect.top, clippingRect.x = clippingRect.left, clippingRect.y = clippingRect.top, clippingRect;
  27690. }
  27691. var init_getClippingRect = __esm({
  27692. "../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"() {
  27693. init_enums();
  27694. init_getViewportRect();
  27695. init_getDocumentRect();
  27696. init_listScrollParents();
  27697. init_getOffsetParent();
  27698. init_getDocumentElement();
  27699. init_getComputedStyle();
  27700. init_instanceOf();
  27701. init_getBoundingClientRect();
  27702. init_getParentNode();
  27703. init_contains();
  27704. init_getNodeName();
  27705. init_rectToClientRect();
  27706. init_math();
  27707. }
  27708. });
  27709. // ../../node_modules/@popperjs/core/lib/utils/computeOffsets.js
  27710. function computeOffsets(_ref) {
  27711. var reference2 = _ref.reference, element = _ref.element, placement = _ref.placement, basePlacement = placement ? getBasePlacement(placement) : null, variation = placement ? getVariation(placement) : null, commonX = reference2.x + reference2.width / 2 - element.width / 2, commonY = reference2.y + reference2.height / 2 - element.height / 2, offsets;
  27712. switch (basePlacement) {
  27713. case top:
  27714. offsets = {
  27715. x: commonX,
  27716. y: reference2.y - element.height
  27717. };
  27718. break;
  27719. case bottom:
  27720. offsets = {
  27721. x: commonX,
  27722. y: reference2.y + reference2.height
  27723. };
  27724. break;
  27725. case right:
  27726. offsets = {
  27727. x: reference2.x + reference2.width,
  27728. y: commonY
  27729. };
  27730. break;
  27731. case left:
  27732. offsets = {
  27733. x: reference2.x - element.width,
  27734. y: commonY
  27735. };
  27736. break;
  27737. default:
  27738. offsets = {
  27739. x: reference2.x,
  27740. y: reference2.y
  27741. };
  27742. }
  27743. var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
  27744. if (mainAxis != null) {
  27745. var len = mainAxis === "y" ? "height" : "width";
  27746. switch (variation) {
  27747. case start:
  27748. offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2);
  27749. break;
  27750. case end:
  27751. offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2);
  27752. break;
  27753. default:
  27754. }
  27755. }
  27756. return offsets;
  27757. }
  27758. var init_computeOffsets = __esm({
  27759. "../../node_modules/@popperjs/core/lib/utils/computeOffsets.js"() {
  27760. init_getBasePlacement();
  27761. init_getVariation();
  27762. init_getMainAxisFromPlacement();
  27763. init_enums();
  27764. }
  27765. });
  27766. // ../../node_modules/@popperjs/core/lib/utils/detectOverflow.js
  27767. function detectOverflow(state3, options) {
  27768. options === void 0 && (options = {});
  27769. var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state3.placement : _options$placement, _options$strategy = _options.strategy, strategy = _options$strategy === void 0 ? state3.strategy : _options$strategy, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? !1 : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding, paddingObject = mergePaddingObject(typeof padding != "number" ? padding : expandToHashMap(padding, basePlacements)), altContext = elementContext === popper ? reference : popper, popperRect = state3.rects.popper, element = state3.elements[altBoundary ? altContext : elementContext], clippingClientRect = getClippingRect(isElement5(element) ? element : element.contextElement || getDocumentElement(state3.elements.popper), boundary, rootBoundary, strategy), referenceClientRect = getBoundingClientRect(state3.elements.reference), popperOffsets2 = computeOffsets({
  27770. reference: referenceClientRect,
  27771. element: popperRect,
  27772. strategy: "absolute",
  27773. placement
  27774. }), popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2)), elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect, overflowOffsets = {
  27775. top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
  27776. bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
  27777. left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
  27778. right: elementClientRect.right - clippingClientRect.right + paddingObject.right
  27779. }, offsetData = state3.modifiersData.offset;
  27780. if (elementContext === popper && offsetData) {
  27781. var offset3 = offsetData[placement];
  27782. Object.keys(overflowOffsets).forEach(function(key) {
  27783. var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1, axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x";
  27784. overflowOffsets[key] += offset3[axis] * multiply;
  27785. });
  27786. }
  27787. return overflowOffsets;
  27788. }
  27789. var init_detectOverflow = __esm({
  27790. "../../node_modules/@popperjs/core/lib/utils/detectOverflow.js"() {
  27791. init_getClippingRect();
  27792. init_getDocumentElement();
  27793. init_getBoundingClientRect();
  27794. init_computeOffsets();
  27795. init_rectToClientRect();
  27796. init_enums();
  27797. init_instanceOf();
  27798. init_mergePaddingObject();
  27799. init_expandToHashMap();
  27800. }
  27801. });
  27802. // ../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
  27803. function computeAutoPlacement(state3, options) {
  27804. options === void 0 && (options = {});
  27805. var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP, variation = getVariation(placement), placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
  27806. return getVariation(placement2) === variation;
  27807. }) : basePlacements, allowedPlacements = placements2.filter(function(placement2) {
  27808. return allowedAutoPlacements.indexOf(placement2) >= 0;
  27809. });
  27810. allowedPlacements.length === 0 && (allowedPlacements = placements2);
  27811. var overflows = allowedPlacements.reduce(function(acc, placement2) {
  27812. return acc[placement2] = detectOverflow(state3, {
  27813. placement: placement2,
  27814. boundary,
  27815. rootBoundary,
  27816. padding
  27817. })[getBasePlacement(placement2)], acc;
  27818. }, {});
  27819. return Object.keys(overflows).sort(function(a3, b) {
  27820. return overflows[a3] - overflows[b];
  27821. });
  27822. }
  27823. var init_computeAutoPlacement = __esm({
  27824. "../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"() {
  27825. init_getVariation();
  27826. init_enums();
  27827. init_detectOverflow();
  27828. init_getBasePlacement();
  27829. }
  27830. });
  27831. // ../../node_modules/@popperjs/core/lib/modifiers/flip.js
  27832. function getExpandedFallbackPlacements(placement) {
  27833. if (getBasePlacement(placement) === auto)
  27834. return [];
  27835. var oppositePlacement = getOppositePlacement(placement);
  27836. return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
  27837. }
  27838. function flip(_ref) {
  27839. var state3 = _ref.state, options = _ref.options, name = _ref.name;
  27840. if (!state3.modifiersData[name]._skip) {
  27841. for (var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? !0 : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? !0 : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? !0 : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements, preferredPlacement = state3.options.placement, basePlacement = getBasePlacement(preferredPlacement), isBasePlacement = basePlacement === preferredPlacement, fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement)), placements2 = [preferredPlacement].concat(fallbackPlacements).reduce(function(acc, placement2) {
  27842. return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state3, {
  27843. placement: placement2,
  27844. boundary,
  27845. rootBoundary,
  27846. padding,
  27847. flipVariations,
  27848. allowedAutoPlacements
  27849. }) : placement2);
  27850. }, []), referenceRect = state3.rects.reference, popperRect = state3.rects.popper, checksMap = /* @__PURE__ */ new Map(), makeFallbackChecks = !0, firstFittingPlacement = placements2[0], i = 0; i < placements2.length; i++) {
  27851. var placement = placements2[i], _basePlacement = getBasePlacement(placement), isStartVariation = getVariation(placement) === start, isVertical = [top, bottom].indexOf(_basePlacement) >= 0, len = isVertical ? "width" : "height", overflow = detectOverflow(state3, {
  27852. placement,
  27853. boundary,
  27854. rootBoundary,
  27855. altBoundary,
  27856. padding
  27857. }), mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
  27858. referenceRect[len] > popperRect[len] && (mainVariationSide = getOppositePlacement(mainVariationSide));
  27859. var altVariationSide = getOppositePlacement(mainVariationSide), checks = [];
  27860. if (checkMainAxis && checks.push(overflow[_basePlacement] <= 0), checkAltAxis && checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0), checks.every(function(check) {
  27861. return check;
  27862. })) {
  27863. firstFittingPlacement = placement, makeFallbackChecks = !1;
  27864. break;
  27865. }
  27866. checksMap.set(placement, checks);
  27867. }
  27868. if (makeFallbackChecks)
  27869. for (var numberOfChecks = flipVariations ? 3 : 1, _loop = function(_i2) {
  27870. var fittingPlacement = placements2.find(function(placement2) {
  27871. var checks2 = checksMap.get(placement2);
  27872. if (checks2)
  27873. return checks2.slice(0, _i2).every(function(check) {
  27874. return check;
  27875. });
  27876. });
  27877. if (fittingPlacement)
  27878. return firstFittingPlacement = fittingPlacement, "break";
  27879. }, _i = numberOfChecks; _i > 0; _i--) {
  27880. var _ret = _loop(_i);
  27881. if (_ret === "break") break;
  27882. }
  27883. state3.placement !== firstFittingPlacement && (state3.modifiersData[name]._skip = !0, state3.placement = firstFittingPlacement, state3.reset = !0);
  27884. }
  27885. }
  27886. var flip_default, init_flip = __esm({
  27887. "../../node_modules/@popperjs/core/lib/modifiers/flip.js"() {
  27888. init_getOppositePlacement();
  27889. init_getBasePlacement();
  27890. init_getOppositeVariationPlacement();
  27891. init_detectOverflow();
  27892. init_computeAutoPlacement();
  27893. init_enums();
  27894. init_getVariation();
  27895. flip_default = {
  27896. name: "flip",
  27897. enabled: !0,
  27898. phase: "main",
  27899. fn: flip,
  27900. requiresIfExists: ["offset"],
  27901. data: {
  27902. _skip: !1
  27903. }
  27904. };
  27905. }
  27906. });
  27907. // ../../node_modules/@popperjs/core/lib/modifiers/hide.js
  27908. function getSideOffsets(overflow, rect, preventedOffsets) {
  27909. return preventedOffsets === void 0 && (preventedOffsets = {
  27910. x: 0,
  27911. y: 0
  27912. }), {
  27913. top: overflow.top - rect.height - preventedOffsets.y,
  27914. right: overflow.right - rect.width + preventedOffsets.x,
  27915. bottom: overflow.bottom - rect.height + preventedOffsets.y,
  27916. left: overflow.left - rect.width - preventedOffsets.x
  27917. };
  27918. }
  27919. function isAnySideFullyClipped(overflow) {
  27920. return [top, right, bottom, left].some(function(side) {
  27921. return overflow[side] >= 0;
  27922. });
  27923. }
  27924. function hide(_ref) {
  27925. var state3 = _ref.state, name = _ref.name, referenceRect = state3.rects.reference, popperRect = state3.rects.popper, preventedOffsets = state3.modifiersData.preventOverflow, referenceOverflow = detectOverflow(state3, {
  27926. elementContext: "reference"
  27927. }), popperAltOverflow = detectOverflow(state3, {
  27928. altBoundary: !0
  27929. }), referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
  27930. state3.modifiersData[name] = {
  27931. referenceClippingOffsets,
  27932. popperEscapeOffsets,
  27933. isReferenceHidden,
  27934. hasPopperEscaped
  27935. }, state3.attributes.popper = Object.assign({}, state3.attributes.popper, {
  27936. "data-popper-reference-hidden": isReferenceHidden,
  27937. "data-popper-escaped": hasPopperEscaped
  27938. });
  27939. }
  27940. var hide_default, init_hide = __esm({
  27941. "../../node_modules/@popperjs/core/lib/modifiers/hide.js"() {
  27942. init_enums();
  27943. init_detectOverflow();
  27944. hide_default = {
  27945. name: "hide",
  27946. enabled: !0,
  27947. phase: "main",
  27948. requiresIfExists: ["preventOverflow"],
  27949. fn: hide
  27950. };
  27951. }
  27952. });
  27953. // ../../node_modules/@popperjs/core/lib/modifiers/offset.js
  27954. function distanceAndSkiddingToXY(placement, rects, offset3) {
  27955. var basePlacement = getBasePlacement(placement), invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1, _ref = typeof offset3 == "function" ? offset3(Object.assign({}, rects, {
  27956. placement
  27957. })) : offset3, skidding = _ref[0], distance = _ref[1];
  27958. return skidding = skidding || 0, distance = (distance || 0) * invertDistance, [left, right].indexOf(basePlacement) >= 0 ? {
  27959. x: distance,
  27960. y: skidding
  27961. } : {
  27962. x: skidding,
  27963. y: distance
  27964. };
  27965. }
  27966. function offset2(_ref2) {
  27967. var state3 = _ref2.state, options = _ref2.options, name = _ref2.name, _options$offset = options.offset, offset3 = _options$offset === void 0 ? [0, 0] : _options$offset, data = placements.reduce(function(acc, placement) {
  27968. return acc[placement] = distanceAndSkiddingToXY(placement, state3.rects, offset3), acc;
  27969. }, {}), _data$state$placement = data[state3.placement], x = _data$state$placement.x, y = _data$state$placement.y;
  27970. state3.modifiersData.popperOffsets != null && (state3.modifiersData.popperOffsets.x += x, state3.modifiersData.popperOffsets.y += y), state3.modifiersData[name] = data;
  27971. }
  27972. var offset_default, init_offset = __esm({
  27973. "../../node_modules/@popperjs/core/lib/modifiers/offset.js"() {
  27974. init_getBasePlacement();
  27975. init_enums();
  27976. offset_default = {
  27977. name: "offset",
  27978. enabled: !0,
  27979. phase: "main",
  27980. requires: ["popperOffsets"],
  27981. fn: offset2
  27982. };
  27983. }
  27984. });
  27985. // ../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
  27986. function popperOffsets(_ref) {
  27987. var state3 = _ref.state, name = _ref.name;
  27988. state3.modifiersData[name] = computeOffsets({
  27989. reference: state3.rects.reference,
  27990. element: state3.rects.popper,
  27991. strategy: "absolute",
  27992. placement: state3.placement
  27993. });
  27994. }
  27995. var popperOffsets_default, init_popperOffsets = __esm({
  27996. "../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"() {
  27997. init_computeOffsets();
  27998. popperOffsets_default = {
  27999. name: "popperOffsets",
  28000. enabled: !0,
  28001. phase: "read",
  28002. fn: popperOffsets,
  28003. data: {}
  28004. };
  28005. }
  28006. });
  28007. // ../../node_modules/@popperjs/core/lib/utils/getAltAxis.js
  28008. function getAltAxis(axis) {
  28009. return axis === "x" ? "y" : "x";
  28010. }
  28011. var init_getAltAxis = __esm({
  28012. "../../node_modules/@popperjs/core/lib/utils/getAltAxis.js"() {
  28013. }
  28014. });
  28015. // ../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
  28016. function preventOverflow(_ref) {
  28017. var state3 = _ref.state, options = _ref.options, name = _ref.name, _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? !0 : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? !1 : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? !0 : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset, overflow = detectOverflow(state3, {
  28018. boundary,
  28019. rootBoundary,
  28020. padding,
  28021. altBoundary
  28022. }), basePlacement = getBasePlacement(state3.placement), variation = getVariation(state3.placement), isBasePlacement = !variation, mainAxis = getMainAxisFromPlacement(basePlacement), altAxis = getAltAxis(mainAxis), popperOffsets2 = state3.modifiersData.popperOffsets, referenceRect = state3.rects.reference, popperRect = state3.rects.popper, tetherOffsetValue = typeof tetherOffset == "function" ? tetherOffset(Object.assign({}, state3.rects, {
  28023. placement: state3.placement
  28024. })) : tetherOffset, normalizedTetherOffsetValue = typeof tetherOffsetValue == "number" ? {
  28025. mainAxis: tetherOffsetValue,
  28026. altAxis: tetherOffsetValue
  28027. } : Object.assign({
  28028. mainAxis: 0,
  28029. altAxis: 0
  28030. }, tetherOffsetValue), offsetModifierState = state3.modifiersData.offset ? state3.modifiersData.offset[state3.placement] : null, data = {
  28031. x: 0,
  28032. y: 0
  28033. };
  28034. if (popperOffsets2) {
  28035. if (checkMainAxis) {
  28036. var _offsetModifierState$, mainSide = mainAxis === "y" ? top : left, altSide = mainAxis === "y" ? bottom : right, len = mainAxis === "y" ? "height" : "width", offset3 = popperOffsets2[mainAxis], min2 = offset3 + overflow[mainSide], max2 = offset3 - overflow[altSide], additive = tether ? -popperRect[len] / 2 : 0, minLen = variation === start ? referenceRect[len] : popperRect[len], maxLen = variation === start ? -popperRect[len] : -referenceRect[len], arrowElement = state3.elements.arrow, arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
  28037. width: 0,
  28038. height: 0
  28039. }, arrowPaddingObject = state3.modifiersData["arrow#persistent"] ? state3.modifiersData["arrow#persistent"].padding : getFreshSideObject(), arrowPaddingMin = arrowPaddingObject[mainSide], arrowPaddingMax = arrowPaddingObject[altSide], arrowLen = within2(0, referenceRect[len], arrowRect[len]), minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis, maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis, arrowOffsetParent = state3.elements.arrow && getOffsetParent(state3.elements.arrow), clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0, offsetModifierValue = (_offsetModifierState$ = offsetModifierState?.[mainAxis]) != null ? _offsetModifierState$ : 0, tetherMin = offset3 + minOffset - offsetModifierValue - clientOffset, tetherMax = offset3 + maxOffset - offsetModifierValue, preventedOffset = within2(tether ? min(min2, tetherMin) : min2, offset3, tether ? max(max2, tetherMax) : max2);
  28040. popperOffsets2[mainAxis] = preventedOffset, data[mainAxis] = preventedOffset - offset3;
  28041. }
  28042. if (checkAltAxis) {
  28043. var _offsetModifierState$2, _mainSide = mainAxis === "x" ? top : left, _altSide = mainAxis === "x" ? bottom : right, _offset = popperOffsets2[altAxis], _len = altAxis === "y" ? "height" : "width", _min = _offset + overflow[_mainSide], _max = _offset - overflow[_altSide], isOriginSide = [top, left].indexOf(basePlacement) !== -1, _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState?.[altAxis]) != null ? _offsetModifierState$2 : 0, _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis, _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max, _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within2(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
  28044. popperOffsets2[altAxis] = _preventedOffset, data[altAxis] = _preventedOffset - _offset;
  28045. }
  28046. state3.modifiersData[name] = data;
  28047. }
  28048. }
  28049. var preventOverflow_default, init_preventOverflow = __esm({
  28050. "../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"() {
  28051. init_enums();
  28052. init_getBasePlacement();
  28053. init_getMainAxisFromPlacement();
  28054. init_getAltAxis();
  28055. init_within();
  28056. init_getLayoutRect();
  28057. init_getOffsetParent();
  28058. init_detectOverflow();
  28059. init_getVariation();
  28060. init_getFreshSideObject();
  28061. init_math();
  28062. preventOverflow_default = {
  28063. name: "preventOverflow",
  28064. enabled: !0,
  28065. phase: "main",
  28066. fn: preventOverflow,
  28067. requiresIfExists: ["offset"]
  28068. };
  28069. }
  28070. });
  28071. // ../../node_modules/@popperjs/core/lib/modifiers/index.js
  28072. var init_modifiers = __esm({
  28073. "../../node_modules/@popperjs/core/lib/modifiers/index.js"() {
  28074. init_applyStyles();
  28075. init_arrow();
  28076. init_computeStyles();
  28077. init_eventListeners();
  28078. init_flip();
  28079. init_hide();
  28080. init_offset();
  28081. init_popperOffsets();
  28082. init_preventOverflow();
  28083. }
  28084. });
  28085. // ../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
  28086. function getHTMLElementScroll(element) {
  28087. return {
  28088. scrollLeft: element.scrollLeft,
  28089. scrollTop: element.scrollTop
  28090. };
  28091. }
  28092. var init_getHTMLElementScroll = __esm({
  28093. "../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js"() {
  28094. }
  28095. });
  28096. // ../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
  28097. function getNodeScroll(node2) {
  28098. return node2 === getWindow2(node2) || !isHTMLElement(node2) ? getWindowScroll(node2) : getHTMLElementScroll(node2);
  28099. }
  28100. var init_getNodeScroll = __esm({
  28101. "../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"() {
  28102. init_getWindowScroll();
  28103. init_getWindow();
  28104. init_instanceOf();
  28105. init_getHTMLElementScroll();
  28106. }
  28107. });
  28108. // ../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
  28109. function isElementScaled(element) {
  28110. var rect = element.getBoundingClientRect(), scaleX = round2(rect.width) / element.offsetWidth || 1, scaleY = round2(rect.height) / element.offsetHeight || 1;
  28111. return scaleX !== 1 || scaleY !== 1;
  28112. }
  28113. function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
  28114. isFixed === void 0 && (isFixed = !1);
  28115. var isOffsetParentAnElement = isHTMLElement(offsetParent), offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent), documentElement = getDocumentElement(offsetParent), rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed), scroll = {
  28116. scrollLeft: 0,
  28117. scrollTop: 0
  28118. }, offsets = {
  28119. x: 0,
  28120. y: 0
  28121. };
  28122. return (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) && ((getNodeName(offsetParent) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
  28123. isScrollParent(documentElement)) && (scroll = getNodeScroll(offsetParent)), isHTMLElement(offsetParent) ? (offsets = getBoundingClientRect(offsetParent, !0), offsets.x += offsetParent.clientLeft, offsets.y += offsetParent.clientTop) : documentElement && (offsets.x = getWindowScrollBarX(documentElement))), {
  28124. x: rect.left + scroll.scrollLeft - offsets.x,
  28125. y: rect.top + scroll.scrollTop - offsets.y,
  28126. width: rect.width,
  28127. height: rect.height
  28128. };
  28129. }
  28130. var init_getCompositeRect = __esm({
  28131. "../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"() {
  28132. init_getBoundingClientRect();
  28133. init_getNodeScroll();
  28134. init_getNodeName();
  28135. init_instanceOf();
  28136. init_getWindowScrollBarX();
  28137. init_getDocumentElement();
  28138. init_isScrollParent();
  28139. init_math();
  28140. }
  28141. });
  28142. // ../../node_modules/@popperjs/core/lib/utils/orderModifiers.js
  28143. function order(modifiers) {
  28144. var map2 = /* @__PURE__ */ new Map(), visited = /* @__PURE__ */ new Set(), result = [];
  28145. modifiers.forEach(function(modifier) {
  28146. map2.set(modifier.name, modifier);
  28147. });
  28148. function sort(modifier) {
  28149. visited.add(modifier.name);
  28150. var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
  28151. requires.forEach(function(dep) {
  28152. if (!visited.has(dep)) {
  28153. var depModifier = map2.get(dep);
  28154. depModifier && sort(depModifier);
  28155. }
  28156. }), result.push(modifier);
  28157. }
  28158. return modifiers.forEach(function(modifier) {
  28159. visited.has(modifier.name) || sort(modifier);
  28160. }), result;
  28161. }
  28162. function orderModifiers(modifiers) {
  28163. var orderedModifiers = order(modifiers);
  28164. return modifierPhases.reduce(function(acc, phase) {
  28165. return acc.concat(orderedModifiers.filter(function(modifier) {
  28166. return modifier.phase === phase;
  28167. }));
  28168. }, []);
  28169. }
  28170. var init_orderModifiers = __esm({
  28171. "../../node_modules/@popperjs/core/lib/utils/orderModifiers.js"() {
  28172. init_enums();
  28173. }
  28174. });
  28175. // ../../node_modules/@popperjs/core/lib/utils/debounce.js
  28176. function debounce(fn4) {
  28177. var pending;
  28178. return function() {
  28179. return pending || (pending = new Promise(function(resolve) {
  28180. Promise.resolve().then(function() {
  28181. pending = void 0, resolve(fn4());
  28182. });
  28183. })), pending;
  28184. };
  28185. }
  28186. var init_debounce = __esm({
  28187. "../../node_modules/@popperjs/core/lib/utils/debounce.js"() {
  28188. }
  28189. });
  28190. // ../../node_modules/@popperjs/core/lib/utils/mergeByName.js
  28191. function mergeByName(modifiers) {
  28192. var merged = modifiers.reduce(function(merged2, current) {
  28193. var existing = merged2[current.name];
  28194. return merged2[current.name] = existing ? Object.assign({}, existing, current, {
  28195. options: Object.assign({}, existing.options, current.options),
  28196. data: Object.assign({}, existing.data, current.data)
  28197. }) : current, merged2;
  28198. }, {});
  28199. return Object.keys(merged).map(function(key) {
  28200. return merged[key];
  28201. });
  28202. }
  28203. var init_mergeByName = __esm({
  28204. "../../node_modules/@popperjs/core/lib/utils/mergeByName.js"() {
  28205. }
  28206. });
  28207. // ../../node_modules/@popperjs/core/lib/createPopper.js
  28208. function areValidElements() {
  28209. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  28210. args[_key] = arguments[_key];
  28211. return !args.some(function(element) {
  28212. return !(element && typeof element.getBoundingClientRect == "function");
  28213. });
  28214. }
  28215. function popperGenerator(generatorOptions) {
  28216. generatorOptions === void 0 && (generatorOptions = {});
  28217. var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers3 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions2 = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS2 : _generatorOptions$def2;
  28218. return function(reference2, popper2, options) {
  28219. options === void 0 && (options = defaultOptions2);
  28220. var state3 = {
  28221. placement: "bottom",
  28222. orderedModifiers: [],
  28223. options: Object.assign({}, DEFAULT_OPTIONS2, defaultOptions2),
  28224. modifiersData: {},
  28225. elements: {
  28226. reference: reference2,
  28227. popper: popper2
  28228. },
  28229. attributes: {},
  28230. styles: {}
  28231. }, effectCleanupFns = [], isDestroyed = !1, instance = {
  28232. state: state3,
  28233. setOptions: function(setOptionsAction) {
  28234. var options2 = typeof setOptionsAction == "function" ? setOptionsAction(state3.options) : setOptionsAction;
  28235. cleanupModifierEffects(), state3.options = Object.assign({}, defaultOptions2, state3.options, options2), state3.scrollParents = {
  28236. reference: isElement5(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
  28237. popper: listScrollParents(popper2)
  28238. };
  28239. var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers3, state3.options.modifiers)));
  28240. return state3.orderedModifiers = orderedModifiers.filter(function(m3) {
  28241. return m3.enabled;
  28242. }), runModifierEffects(), instance.update();
  28243. },
  28244. // Sync update – it will always be executed, even if not necessary. This
  28245. // is useful for low frequency updates where sync behavior simplifies the
  28246. // logic.
  28247. // For high frequency updates (e.g. `resize` and `scroll` events), always
  28248. // prefer the async Popper#update method
  28249. forceUpdate: function() {
  28250. if (!isDestroyed) {
  28251. var _state$elements = state3.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
  28252. if (areValidElements(reference3, popper3)) {
  28253. state3.rects = {
  28254. reference: getCompositeRect(reference3, getOffsetParent(popper3), state3.options.strategy === "fixed"),
  28255. popper: getLayoutRect(popper3)
  28256. }, state3.reset = !1, state3.placement = state3.options.placement, state3.orderedModifiers.forEach(function(modifier) {
  28257. return state3.modifiersData[modifier.name] = Object.assign({}, modifier.data);
  28258. });
  28259. for (var index4 = 0; index4 < state3.orderedModifiers.length; index4++) {
  28260. if (state3.reset === !0) {
  28261. state3.reset = !1, index4 = -1;
  28262. continue;
  28263. }
  28264. var _state$orderedModifie = state3.orderedModifiers[index4], fn4 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
  28265. typeof fn4 == "function" && (state3 = fn4({
  28266. state: state3,
  28267. options: _options,
  28268. name,
  28269. instance
  28270. }) || state3);
  28271. }
  28272. }
  28273. }
  28274. },
  28275. // Async and optimistically optimized update – it will not be executed if
  28276. // not necessary (debounced to run at most once-per-tick)
  28277. update: debounce(function() {
  28278. return new Promise(function(resolve) {
  28279. instance.forceUpdate(), resolve(state3);
  28280. });
  28281. }),
  28282. destroy: function() {
  28283. cleanupModifierEffects(), isDestroyed = !0;
  28284. }
  28285. };
  28286. if (!areValidElements(reference2, popper2))
  28287. return instance;
  28288. instance.setOptions(options).then(function(state4) {
  28289. !isDestroyed && options.onFirstUpdate && options.onFirstUpdate(state4);
  28290. });
  28291. function runModifierEffects() {
  28292. state3.orderedModifiers.forEach(function(_ref) {
  28293. var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect4 = _ref.effect;
  28294. if (typeof effect4 == "function") {
  28295. var cleanupFn = effect4({
  28296. state: state3,
  28297. name,
  28298. instance,
  28299. options: options2
  28300. }), noopFn = function() {
  28301. };
  28302. effectCleanupFns.push(cleanupFn || noopFn);
  28303. }
  28304. });
  28305. }
  28306. function cleanupModifierEffects() {
  28307. effectCleanupFns.forEach(function(fn4) {
  28308. return fn4();
  28309. }), effectCleanupFns = [];
  28310. }
  28311. return instance;
  28312. };
  28313. }
  28314. var DEFAULT_OPTIONS2, createPopper, init_createPopper = __esm({
  28315. "../../node_modules/@popperjs/core/lib/createPopper.js"() {
  28316. init_getCompositeRect();
  28317. init_getLayoutRect();
  28318. init_listScrollParents();
  28319. init_getOffsetParent();
  28320. init_orderModifiers();
  28321. init_debounce();
  28322. init_mergeByName();
  28323. init_detectOverflow();
  28324. init_instanceOf();
  28325. DEFAULT_OPTIONS2 = {
  28326. placement: "bottom",
  28327. modifiers: [],
  28328. strategy: "absolute"
  28329. };
  28330. createPopper = popperGenerator();
  28331. }
  28332. });
  28333. // ../../node_modules/@popperjs/core/lib/popper-lite.js
  28334. var defaultModifiers, createPopper2, init_popper_lite = __esm({
  28335. "../../node_modules/@popperjs/core/lib/popper-lite.js"() {
  28336. init_createPopper();
  28337. init_eventListeners();
  28338. init_popperOffsets();
  28339. init_computeStyles();
  28340. init_applyStyles();
  28341. defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default], createPopper2 = popperGenerator({
  28342. defaultModifiers
  28343. });
  28344. }
  28345. });
  28346. // ../../node_modules/@popperjs/core/lib/popper.js
  28347. var defaultModifiers2, createPopper3, init_popper = __esm({
  28348. "../../node_modules/@popperjs/core/lib/popper.js"() {
  28349. init_createPopper();
  28350. init_eventListeners();
  28351. init_popperOffsets();
  28352. init_computeStyles();
  28353. init_applyStyles();
  28354. init_offset();
  28355. init_flip();
  28356. init_preventOverflow();
  28357. init_arrow();
  28358. init_hide();
  28359. init_popper_lite();
  28360. init_modifiers();
  28361. defaultModifiers2 = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default, offset_default, flip_default, preventOverflow_default, arrow_default, hide_default], createPopper3 = popperGenerator({
  28362. defaultModifiers: defaultModifiers2
  28363. });
  28364. }
  28365. });
  28366. // ../../node_modules/@popperjs/core/lib/index.js
  28367. var init_lib = __esm({
  28368. "../../node_modules/@popperjs/core/lib/index.js"() {
  28369. init_enums();
  28370. init_modifiers();
  28371. init_createPopper();
  28372. init_popper();
  28373. init_popper_lite();
  28374. }
  28375. });
  28376. // ../../node_modules/react-fast-compare/index.js
  28377. var require_react_fast_compare = __commonJS({
  28378. "../../node_modules/react-fast-compare/index.js"(exports, module2) {
  28379. var hasElementType = typeof Element < "u", hasMap = typeof Map == "function", hasSet = typeof Set == "function", hasArrayBuffer = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
  28380. function equal(a3, b) {
  28381. if (a3 === b) return !0;
  28382. if (a3 && b && typeof a3 == "object" && typeof b == "object") {
  28383. if (a3.constructor !== b.constructor) return !1;
  28384. var length2, i, keys3;
  28385. if (Array.isArray(a3)) {
  28386. if (length2 = a3.length, length2 != b.length) return !1;
  28387. for (i = length2; i-- !== 0; )
  28388. if (!equal(a3[i], b[i])) return !1;
  28389. return !0;
  28390. }
  28391. var it;
  28392. if (hasMap && a3 instanceof Map && b instanceof Map) {
  28393. if (a3.size !== b.size) return !1;
  28394. for (it = a3.entries(); !(i = it.next()).done; )
  28395. if (!b.has(i.value[0])) return !1;
  28396. for (it = a3.entries(); !(i = it.next()).done; )
  28397. if (!equal(i.value[1], b.get(i.value[0]))) return !1;
  28398. return !0;
  28399. }
  28400. if (hasSet && a3 instanceof Set && b instanceof Set) {
  28401. if (a3.size !== b.size) return !1;
  28402. for (it = a3.entries(); !(i = it.next()).done; )
  28403. if (!b.has(i.value[0])) return !1;
  28404. return !0;
  28405. }
  28406. if (hasArrayBuffer && ArrayBuffer.isView(a3) && ArrayBuffer.isView(b)) {
  28407. if (length2 = a3.length, length2 != b.length) return !1;
  28408. for (i = length2; i-- !== 0; )
  28409. if (a3[i] !== b[i]) return !1;
  28410. return !0;
  28411. }
  28412. if (a3.constructor === RegExp) return a3.source === b.source && a3.flags === b.flags;
  28413. if (a3.valueOf !== Object.prototype.valueOf && typeof a3.valueOf == "function" && typeof b.valueOf == "function") return a3.valueOf() === b.valueOf();
  28414. if (a3.toString !== Object.prototype.toString && typeof a3.toString == "function" && typeof b.toString == "function") return a3.toString() === b.toString();
  28415. if (keys3 = Object.keys(a3), length2 = keys3.length, length2 !== Object.keys(b).length) return !1;
  28416. for (i = length2; i-- !== 0; )
  28417. if (!Object.prototype.hasOwnProperty.call(b, keys3[i])) return !1;
  28418. if (hasElementType && a3 instanceof Element) return !1;
  28419. for (i = length2; i-- !== 0; )
  28420. if (!((keys3[i] === "_owner" || keys3[i] === "__v" || keys3[i] === "__o") && a3.$$typeof) && !equal(a3[keys3[i]], b[keys3[i]]))
  28421. return !1;
  28422. return !0;
  28423. }
  28424. return a3 !== a3 && b !== b;
  28425. }
  28426. module2.exports = function(a3, b) {
  28427. try {
  28428. return equal(a3, b);
  28429. } catch (error) {
  28430. if ((error.message || "").match(/stack|recursion/i))
  28431. return console.warn("react-fast-compare cannot handle circular refs"), !1;
  28432. throw error;
  28433. }
  28434. };
  28435. }
  28436. });
  28437. // ../../node_modules/react-popper/lib/esm/usePopper.js
  28438. var React69, ReactDOM3, import_react_fast_compare, EMPTY_MODIFIERS, usePopper, init_usePopper = __esm({
  28439. "../../node_modules/react-popper/lib/esm/usePopper.js"() {
  28440. React69 = __toESM(require_react()), ReactDOM3 = __toESM(require_react_dom());
  28441. init_lib();
  28442. import_react_fast_compare = __toESM(require_react_fast_compare());
  28443. init_utils3();
  28444. EMPTY_MODIFIERS = [], usePopper = function(referenceElement, popperElement, options) {
  28445. options === void 0 && (options = {});
  28446. var prevOptions = React69.useRef(null), optionsWithDefaults = {
  28447. onFirstUpdate: options.onFirstUpdate,
  28448. placement: options.placement || "bottom",
  28449. strategy: options.strategy || "absolute",
  28450. modifiers: options.modifiers || EMPTY_MODIFIERS
  28451. }, _React$useState = React69.useState({
  28452. styles: {
  28453. popper: {
  28454. position: optionsWithDefaults.strategy,
  28455. left: "0",
  28456. top: "0"
  28457. },
  28458. arrow: {
  28459. position: "absolute"
  28460. }
  28461. },
  28462. attributes: {}
  28463. }), state3 = _React$useState[0], setState2 = _React$useState[1], updateStateModifier = React69.useMemo(function() {
  28464. return {
  28465. name: "updateState",
  28466. enabled: !0,
  28467. phase: "write",
  28468. fn: function(_ref) {
  28469. var state4 = _ref.state, elements = Object.keys(state4.elements);
  28470. ReactDOM3.flushSync(function() {
  28471. setState2({
  28472. styles: fromEntries3(elements.map(function(element) {
  28473. return [element, state4.styles[element] || {}];
  28474. })),
  28475. attributes: fromEntries3(elements.map(function(element) {
  28476. return [element, state4.attributes[element]];
  28477. }))
  28478. });
  28479. });
  28480. },
  28481. requires: ["computeStyles"]
  28482. };
  28483. }, []), popperOptions = React69.useMemo(function() {
  28484. var newOptions = {
  28485. onFirstUpdate: optionsWithDefaults.onFirstUpdate,
  28486. placement: optionsWithDefaults.placement,
  28487. strategy: optionsWithDefaults.strategy,
  28488. modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, {
  28489. name: "applyStyles",
  28490. enabled: !1
  28491. }])
  28492. };
  28493. return (0, import_react_fast_compare.default)(prevOptions.current, newOptions) ? prevOptions.current || newOptions : (prevOptions.current = newOptions, newOptions);
  28494. }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]), popperInstanceRef = React69.useRef();
  28495. return useIsomorphicLayoutEffect2(function() {
  28496. popperInstanceRef.current && popperInstanceRef.current.setOptions(popperOptions);
  28497. }, [popperOptions]), useIsomorphicLayoutEffect2(function() {
  28498. if (!(referenceElement == null || popperElement == null)) {
  28499. var createPopper4 = options.createPopper || createPopper3, popperInstance = createPopper4(referenceElement, popperElement, popperOptions);
  28500. return popperInstanceRef.current = popperInstance, function() {
  28501. popperInstance.destroy(), popperInstanceRef.current = null;
  28502. };
  28503. }
  28504. }, [referenceElement, popperElement, options.createPopper]), {
  28505. state: popperInstanceRef.current ? popperInstanceRef.current.state : null,
  28506. styles: state3.styles,
  28507. attributes: state3.attributes,
  28508. update: popperInstanceRef.current ? popperInstanceRef.current.update : null,
  28509. forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null
  28510. };
  28511. };
  28512. }
  28513. });
  28514. // ../../node_modules/react-popper/lib/esm/Popper.js
  28515. var React70, init_Popper = __esm({
  28516. "../../node_modules/react-popper/lib/esm/Popper.js"() {
  28517. React70 = __toESM(require_react());
  28518. init_Manager();
  28519. init_utils3();
  28520. init_usePopper();
  28521. }
  28522. });
  28523. // ../../node_modules/warning/warning.js
  28524. var require_warning = __commonJS({
  28525. "../../node_modules/warning/warning.js"(exports, module2) {
  28526. "use strict";
  28527. var __DEV__ = !1, warning3 = function() {
  28528. };
  28529. __DEV__ && (printWarning = function(format4, args) {
  28530. var len = arguments.length;
  28531. args = new Array(len > 1 ? len - 1 : 0);
  28532. for (var key = 1; key < len; key++)
  28533. args[key - 1] = arguments[key];
  28534. var argIndex = 0, message = "Warning: " + format4.replace(/%s/g, function() {
  28535. return args[argIndex++];
  28536. });
  28537. typeof console < "u" && console.error(message);
  28538. try {
  28539. throw new Error(message);
  28540. } catch {
  28541. }
  28542. }, warning3 = function(condition, format4, args) {
  28543. var len = arguments.length;
  28544. args = new Array(len > 2 ? len - 2 : 0);
  28545. for (var key = 2; key < len; key++)
  28546. args[key - 2] = arguments[key];
  28547. if (format4 === void 0)
  28548. throw new Error(
  28549. "`warning(condition, format, ...args)` requires a warning message argument"
  28550. );
  28551. condition || printWarning.apply(null, [format4].concat(args));
  28552. });
  28553. var printWarning;
  28554. module2.exports = warning3;
  28555. }
  28556. });
  28557. // ../../node_modules/react-popper/lib/esm/Reference.js
  28558. var React71, import_warning, init_Reference = __esm({
  28559. "../../node_modules/react-popper/lib/esm/Reference.js"() {
  28560. React71 = __toESM(require_react()), import_warning = __toESM(require_warning());
  28561. init_Manager();
  28562. init_utils3();
  28563. }
  28564. });
  28565. // ../../node_modules/react-popper/lib/esm/index.js
  28566. var init_esm2 = __esm({
  28567. "../../node_modules/react-popper/lib/esm/index.js"() {
  28568. init_Popper();
  28569. init_Manager();
  28570. init_Reference();
  28571. init_usePopper();
  28572. }
  28573. });
  28574. // ../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js
  28575. function useGetLatest(val) {
  28576. var ref = React72.useRef(val);
  28577. return ref.current = val, React72.useCallback(function() {
  28578. return ref.current;
  28579. }, []);
  28580. }
  28581. function useControlledState(_ref) {
  28582. var initial2 = _ref.initial, value = _ref.value, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop5 : _ref$onChange;
  28583. if (initial2 === void 0 && value === void 0)
  28584. throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');
  28585. var _React$useState = React72.useState(initial2), state3 = _React$useState[0], setState2 = _React$useState[1], getLatest = useGetLatest(state3), set3 = React72.useCallback(function(updater) {
  28586. var state4 = getLatest(), updatedState = typeof updater == "function" ? updater(state4) : updater;
  28587. typeof updatedState.persist == "function" && updatedState.persist(), setState2(updatedState), typeof onChange == "function" && onChange(updatedState);
  28588. }, [getLatest, onChange]), isControlled = value !== void 0;
  28589. return [isControlled ? value : state3, isControlled ? onChange : set3];
  28590. }
  28591. function generateBoundingClientRect(x, y) {
  28592. return x === void 0 && (x = 0), y === void 0 && (y = 0), function() {
  28593. return {
  28594. width: 0,
  28595. height: 0,
  28596. top: y,
  28597. right: x,
  28598. bottom: y,
  28599. left: x,
  28600. x: 0,
  28601. y: 0,
  28602. toJSON: function() {
  28603. return null;
  28604. }
  28605. };
  28606. };
  28607. }
  28608. function usePopperTooltip(config4, popperOptions) {
  28609. var _popperProps$state, _popperProps$state$mo, _popperProps$state$mo2;
  28610. config4 === void 0 && (config4 = {}), popperOptions === void 0 && (popperOptions = {});
  28611. var finalConfig = Object.keys(defaultConfig).reduce(function(config5, key) {
  28612. var _extends22;
  28613. return _extends({}, config5, (_extends22 = {}, _extends22[key] = config5[key] !== void 0 ? config5[key] : defaultConfig[key], _extends22));
  28614. }, config4), defaultModifiers3 = React72.useMemo(
  28615. function() {
  28616. return [{
  28617. name: "offset",
  28618. options: {
  28619. offset: finalConfig.offset
  28620. }
  28621. }];
  28622. },
  28623. // eslint-disable-next-line react-hooks/exhaustive-deps
  28624. Array.isArray(finalConfig.offset) ? finalConfig.offset : []
  28625. ), finalPopperOptions = _extends({}, popperOptions, {
  28626. placement: popperOptions.placement || finalConfig.placement,
  28627. modifiers: popperOptions.modifiers || defaultModifiers3
  28628. }), _React$useState = React72.useState(null), triggerRef = _React$useState[0], setTriggerRef = _React$useState[1], _React$useState2 = React72.useState(null), tooltipRef = _React$useState2[0], setTooltipRef = _React$useState2[1], _useControlledState = useControlledState({
  28629. initial: finalConfig.defaultVisible,
  28630. value: finalConfig.visible,
  28631. onChange: finalConfig.onVisibleChange
  28632. }), visible = _useControlledState[0], setVisible = _useControlledState[1], timer = React72.useRef();
  28633. React72.useEffect(function() {
  28634. return function() {
  28635. return clearTimeout(timer.current);
  28636. };
  28637. }, []);
  28638. var _usePopper = usePopper(finalConfig.followCursor ? virtualElement : triggerRef, tooltipRef, finalPopperOptions), styles4 = _usePopper.styles, attributes = _usePopper.attributes, popperProps = _objectWithoutPropertiesLoose(_usePopper, _excluded5), update2 = popperProps.update, getLatest = useGetLatest({
  28639. visible,
  28640. triggerRef,
  28641. tooltipRef,
  28642. finalConfig
  28643. }), isTriggeredBy = React72.useCallback(
  28644. function(trigger) {
  28645. return Array.isArray(finalConfig.trigger) ? finalConfig.trigger.includes(trigger) : finalConfig.trigger === trigger;
  28646. },
  28647. // eslint-disable-next-line react-hooks/exhaustive-deps
  28648. Array.isArray(finalConfig.trigger) ? finalConfig.trigger : [finalConfig.trigger]
  28649. ), hideTooltip = React72.useCallback(function() {
  28650. clearTimeout(timer.current), timer.current = window.setTimeout(function() {
  28651. return setVisible(!1);
  28652. }, finalConfig.delayHide);
  28653. }, [finalConfig.delayHide, setVisible]), showTooltip = React72.useCallback(function() {
  28654. clearTimeout(timer.current), timer.current = window.setTimeout(function() {
  28655. return setVisible(!0);
  28656. }, finalConfig.delayShow);
  28657. }, [finalConfig.delayShow, setVisible]), toggleTooltip = React72.useCallback(function() {
  28658. getLatest().visible ? hideTooltip() : showTooltip();
  28659. }, [getLatest, hideTooltip, showTooltip]);
  28660. React72.useEffect(function() {
  28661. if (getLatest().finalConfig.closeOnOutsideClick) {
  28662. var handleClickOutside = function(event) {
  28663. var _event$composedPath, _getLatest = getLatest(), tooltipRef2 = _getLatest.tooltipRef, triggerRef2 = _getLatest.triggerRef, target = (event.composedPath == null || (_event$composedPath = event.composedPath()) == null ? void 0 : _event$composedPath[0]) || event.target;
  28664. target instanceof Node && tooltipRef2 != null && triggerRef2 != null && !tooltipRef2.contains(target) && !triggerRef2.contains(target) && hideTooltip();
  28665. };
  28666. return document.addEventListener("mousedown", handleClickOutside), function() {
  28667. return document.removeEventListener("mousedown", handleClickOutside);
  28668. };
  28669. }
  28670. }, [getLatest, hideTooltip]), React72.useEffect(function() {
  28671. if (!(triggerRef == null || !isTriggeredBy("click")))
  28672. return triggerRef.addEventListener("click", toggleTooltip), function() {
  28673. return triggerRef.removeEventListener("click", toggleTooltip);
  28674. };
  28675. }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() {
  28676. if (!(triggerRef == null || !isTriggeredBy("double-click")))
  28677. return triggerRef.addEventListener("dblclick", toggleTooltip), function() {
  28678. return triggerRef.removeEventListener("dblclick", toggleTooltip);
  28679. };
  28680. }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() {
  28681. if (!(triggerRef == null || !isTriggeredBy("right-click"))) {
  28682. var preventDefaultAndToggle = function(event) {
  28683. event.preventDefault(), toggleTooltip();
  28684. };
  28685. return triggerRef.addEventListener("contextmenu", preventDefaultAndToggle), function() {
  28686. return triggerRef.removeEventListener("contextmenu", preventDefaultAndToggle);
  28687. };
  28688. }
  28689. }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() {
  28690. if (!(triggerRef == null || !isTriggeredBy("focus")))
  28691. return triggerRef.addEventListener("focus", showTooltip), triggerRef.addEventListener("blur", hideTooltip), function() {
  28692. triggerRef.removeEventListener("focus", showTooltip), triggerRef.removeEventListener("blur", hideTooltip);
  28693. };
  28694. }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React72.useEffect(function() {
  28695. if (!(triggerRef == null || !isTriggeredBy("hover")))
  28696. return triggerRef.addEventListener("mouseenter", showTooltip), triggerRef.addEventListener("mouseleave", hideTooltip), function() {
  28697. triggerRef.removeEventListener("mouseenter", showTooltip), triggerRef.removeEventListener("mouseleave", hideTooltip);
  28698. };
  28699. }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React72.useEffect(function() {
  28700. if (!(tooltipRef == null || !isTriggeredBy("hover") || !getLatest().finalConfig.interactive))
  28701. return tooltipRef.addEventListener("mouseenter", showTooltip), tooltipRef.addEventListener("mouseleave", hideTooltip), function() {
  28702. tooltipRef.removeEventListener("mouseenter", showTooltip), tooltipRef.removeEventListener("mouseleave", hideTooltip);
  28703. };
  28704. }, [tooltipRef, isTriggeredBy, showTooltip, hideTooltip, getLatest]);
  28705. var isReferenceHidden = popperProps == null || (_popperProps$state = popperProps.state) == null || (_popperProps$state$mo = _popperProps$state.modifiersData) == null || (_popperProps$state$mo2 = _popperProps$state$mo.hide) == null ? void 0 : _popperProps$state$mo2.isReferenceHidden;
  28706. React72.useEffect(function() {
  28707. finalConfig.closeOnTriggerHidden && isReferenceHidden && hideTooltip();
  28708. }, [finalConfig.closeOnTriggerHidden, hideTooltip, isReferenceHidden]), React72.useEffect(function() {
  28709. if (!finalConfig.followCursor || triggerRef == null) return;
  28710. function setMousePosition(_ref) {
  28711. var clientX = _ref.clientX, clientY = _ref.clientY;
  28712. virtualElement.getBoundingClientRect = generateBoundingClientRect(clientX, clientY), update2?.();
  28713. }
  28714. return triggerRef.addEventListener("mousemove", setMousePosition), function() {
  28715. return triggerRef.removeEventListener("mousemove", setMousePosition);
  28716. };
  28717. }, [finalConfig.followCursor, triggerRef, update2]), React72.useEffect(function() {
  28718. if (!(tooltipRef == null || update2 == null || finalConfig.mutationObserverOptions == null)) {
  28719. var observer = new MutationObserver(update2);
  28720. return observer.observe(tooltipRef, finalConfig.mutationObserverOptions), function() {
  28721. return observer.disconnect();
  28722. };
  28723. }
  28724. }, [finalConfig.mutationObserverOptions, tooltipRef, update2]);
  28725. var getTooltipProps = function(args) {
  28726. return args === void 0 && (args = {}), _extends({}, args, {
  28727. style: _extends({}, args.style, styles4.popper)
  28728. }, attributes.popper, {
  28729. "data-popper-interactive": finalConfig.interactive
  28730. });
  28731. }, getArrowProps = function(args) {
  28732. return args === void 0 && (args = {}), _extends({}, args, attributes.arrow, {
  28733. style: _extends({}, args.style, styles4.arrow),
  28734. "data-popper-arrow": !0
  28735. });
  28736. };
  28737. return _extends({
  28738. getArrowProps,
  28739. getTooltipProps,
  28740. setTooltipRef,
  28741. setTriggerRef,
  28742. tooltipRef,
  28743. triggerRef,
  28744. visible
  28745. }, popperProps);
  28746. }
  28747. var React72, noop5, _excluded5, virtualElement, defaultConfig, init_react_popper_tooltip = __esm({
  28748. "../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js"() {
  28749. init_objectWithoutPropertiesLoose();
  28750. init_extends();
  28751. React72 = __toESM(require_react());
  28752. init_esm2();
  28753. noop5 = function() {
  28754. };
  28755. _excluded5 = ["styles", "attributes"], virtualElement = {
  28756. getBoundingClientRect: generateBoundingClientRect()
  28757. }, defaultConfig = {
  28758. closeOnOutsideClick: !0,
  28759. closeOnTriggerHidden: !1,
  28760. defaultVisible: !1,
  28761. delayHide: 0,
  28762. delayShow: 0,
  28763. followCursor: !1,
  28764. interactive: !1,
  28765. mutationObserverOptions: {
  28766. attributes: !0,
  28767. childList: !0,
  28768. subtree: !0
  28769. },
  28770. offset: [0, 6],
  28771. trigger: "hover"
  28772. };
  28773. }
  28774. });
  28775. // src/components/components/tooltip/WithTooltip.tsx
  28776. var WithTooltip_exports = {};
  28777. __export(WithTooltip_exports, {
  28778. Tooltip: () => Tooltip3,
  28779. WithToolTipState: () => DeprecatedState,
  28780. WithTooltip: () => WithToolTipState,
  28781. WithTooltipPure: () => DeprecatedPure
  28782. });
  28783. var import_react159, import_react_dom7, import_memoizerific11, document12, match2, ArrowSpacing, Arrow, Wrapper5, Tooltip3, TargetContainer, TargetSvgContainer, WithTooltipPure, WithToolTipState, DeprecatedPure, DeprecatedState, init_WithTooltip = __esm({
  28784. "src/components/components/tooltip/WithTooltip.tsx"() {
  28785. "use strict";
  28786. import_react159 = __toESM(require_react(), 1), import_react_dom7 = __toESM(require_react_dom(), 1);
  28787. init_client_logger();
  28788. init_dist();
  28789. import_memoizerific11 = __toESM(require_memoizerific(), 1);
  28790. init_react_popper_tooltip();
  28791. init_theming();
  28792. ({ document: document12 } = scope), match2 = (0, import_memoizerific11.default)(1e3)(
  28793. (requests, actual, value, fallback = 0) => actual.split("-")[0] === requests ? value : fallback
  28794. ), ArrowSpacing = 8, Arrow = styled.div(
  28795. {
  28796. position: "absolute",
  28797. borderStyle: "solid"
  28798. },
  28799. ({ placement }) => {
  28800. let x = 0, y = 0;
  28801. switch (!0) {
  28802. case (placement.startsWith("left") || placement.startsWith("right")): {
  28803. y = 8;
  28804. break;
  28805. }
  28806. case (placement.startsWith("top") || placement.startsWith("bottom")): {
  28807. x = 8;
  28808. break;
  28809. }
  28810. default:
  28811. }
  28812. return { transform: `translate3d(${x}px, ${y}px, 0px)` };
  28813. },
  28814. ({ theme: theme3, color: color2, placement }) => ({
  28815. bottom: `${match2("top", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28816. top: `${match2("bottom", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28817. right: `${match2("left", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28818. left: `${match2("right", placement, `${ArrowSpacing * -1}px`, "auto")}`,
  28819. borderBottomWidth: `${match2("top", placement, "0", ArrowSpacing)}px`,
  28820. borderTopWidth: `${match2("bottom", placement, "0", ArrowSpacing)}px`,
  28821. borderRightWidth: `${match2("left", placement, "0", ArrowSpacing)}px`,
  28822. borderLeftWidth: `${match2("right", placement, "0", ArrowSpacing)}px`,
  28823. borderTopColor: match2(
  28824. "top",
  28825. placement,
  28826. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28827. "transparent"
  28828. ),
  28829. borderBottomColor: match2(
  28830. "bottom",
  28831. placement,
  28832. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28833. "transparent"
  28834. ),
  28835. borderLeftColor: match2(
  28836. "left",
  28837. placement,
  28838. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28839. "transparent"
  28840. ),
  28841. borderRightColor: match2(
  28842. "right",
  28843. placement,
  28844. theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28845. "transparent"
  28846. )
  28847. })
  28848. ), Wrapper5 = styled.div(
  28849. ({ hidden }) => ({
  28850. display: hidden ? "none" : "inline-block",
  28851. zIndex: 2147483647,
  28852. colorScheme: "light dark"
  28853. }),
  28854. ({ theme: theme3, color: color2, hasChrome }) => hasChrome ? {
  28855. background: color2 && theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  28856. filter: `
  28857. drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
  28858. drop-shadow(0 1px 3px rgba(0,0,0,0.1))
  28859. `,
  28860. borderRadius: theme3.appBorderRadius + 2,
  28861. fontSize: theme3.typography.size.s1
  28862. } : {}
  28863. ), Tooltip3 = import_react159.default.forwardRef(
  28864. ({
  28865. placement = "top",
  28866. hasChrome = !0,
  28867. children,
  28868. arrowProps = {},
  28869. tooltipRef,
  28870. color: color2,
  28871. withArrows,
  28872. ...props
  28873. }, ref) => import_react159.default.createElement(Wrapper5, { "data-testid": "tooltip", hasChrome, ref, ...props, color: color2 }, hasChrome && withArrows && import_react159.default.createElement(Arrow, { placement, ...arrowProps, color: color2 }), children)
  28874. );
  28875. Tooltip3.displayName = "Tooltip";
  28876. TargetContainer = styled.div`
  28877. display: inline-block;
  28878. cursor: ${(props) => props.trigger === "hover" || props.trigger?.includes("hover") ? "default" : "pointer"};
  28879. `, TargetSvgContainer = styled.g`
  28880. cursor: ${(props) => props.trigger === "hover" || props.trigger?.includes("hover") ? "default" : "pointer"};
  28881. `, WithTooltipPure = ({
  28882. svg = !1,
  28883. trigger = "click",
  28884. closeOnOutsideClick = !1,
  28885. placement = "top",
  28886. modifiers = [
  28887. {
  28888. name: "preventOverflow",
  28889. options: {
  28890. padding: 8
  28891. }
  28892. },
  28893. {
  28894. name: "offset",
  28895. options: {
  28896. offset: [8, 8]
  28897. }
  28898. },
  28899. {
  28900. name: "arrow",
  28901. options: {
  28902. padding: 8
  28903. }
  28904. }
  28905. ],
  28906. hasChrome = !0,
  28907. defaultVisible = !1,
  28908. withArrows,
  28909. offset: offset3,
  28910. tooltip,
  28911. children,
  28912. closeOnTriggerHidden,
  28913. mutationObserverOptions,
  28914. delayHide = trigger === "hover" ? 200 : 0,
  28915. visible,
  28916. interactive,
  28917. delayShow = trigger === "hover" ? 400 : 0,
  28918. strategy,
  28919. followCursor,
  28920. onVisibleChange,
  28921. portalContainer,
  28922. ...props
  28923. }) => {
  28924. let Container7 = svg ? TargetSvgContainer : TargetContainer, {
  28925. getArrowProps,
  28926. getTooltipProps,
  28927. setTooltipRef,
  28928. setTriggerRef,
  28929. visible: isVisible2,
  28930. state: state3
  28931. } = usePopperTooltip(
  28932. {
  28933. trigger,
  28934. placement,
  28935. defaultVisible,
  28936. delayHide,
  28937. interactive,
  28938. closeOnOutsideClick,
  28939. closeOnTriggerHidden,
  28940. onVisibleChange,
  28941. delayShow,
  28942. followCursor,
  28943. mutationObserverOptions,
  28944. visible,
  28945. offset: offset3
  28946. },
  28947. {
  28948. modifiers,
  28949. strategy
  28950. }
  28951. ), portalTarget = (typeof portalContainer == "string" ? document12.querySelector(portalContainer) : portalContainer) || document12.body, tooltipComponent = isVisible2 ? import_react159.default.createElement(
  28952. Tooltip3,
  28953. {
  28954. placement: state3?.placement,
  28955. ref: setTooltipRef,
  28956. hasChrome,
  28957. arrowProps: getArrowProps(),
  28958. withArrows,
  28959. ...getTooltipProps()
  28960. },
  28961. typeof tooltip == "function" ? tooltip({ onHide: () => onVisibleChange(!1) }) : tooltip
  28962. ) : null;
  28963. return import_react159.default.createElement(import_react159.default.Fragment, null, import_react159.default.createElement(Container7, { trigger, ref: setTriggerRef, ...props }, children), isVisible2 && import_react_dom7.default.createPortal(tooltipComponent, portalTarget));
  28964. }, WithToolTipState = ({
  28965. startOpen = !1,
  28966. onVisibleChange: onChange,
  28967. ...rest
  28968. }) => {
  28969. let [tooltipShown, setTooltipShown] = (0, import_react159.useState)(startOpen), onVisibilityChange = (0, import_react159.useCallback)(
  28970. (visibility) => {
  28971. onChange && onChange(visibility) === !1 || setTooltipShown(visibility);
  28972. },
  28973. [onChange]
  28974. );
  28975. return (0, import_react159.useEffect)(() => {
  28976. let hide2 = () => onVisibilityChange(!1), handleKeyDown = (e) => {
  28977. e.key === "Escape" && hide2();
  28978. };
  28979. document12.addEventListener("keydown", handleKeyDown, !1);
  28980. let iframes = Array.from(document12.getElementsByTagName("iframe")), unbinders = [];
  28981. return iframes.forEach((iframe) => {
  28982. let bind = () => {
  28983. try {
  28984. iframe.contentWindow.document && (iframe.contentWindow.document.addEventListener("click", hide2), unbinders.push(() => {
  28985. try {
  28986. iframe.contentWindow.document.removeEventListener("click", hide2);
  28987. } catch {
  28988. }
  28989. }));
  28990. } catch {
  28991. }
  28992. };
  28993. bind(), iframe.addEventListener("load", bind), unbinders.push(() => {
  28994. iframe.removeEventListener("load", bind);
  28995. });
  28996. }), () => {
  28997. document12.removeEventListener("keydown", handleKeyDown), unbinders.forEach((unbind) => {
  28998. unbind();
  28999. });
  29000. };
  29001. }), import_react159.default.createElement(WithTooltipPure, { ...rest, visible: tooltipShown, onVisibleChange: onVisibilityChange });
  29002. }, DeprecatedPure = (props) => (deprecate(
  29003. "WithTooltipPure is deprecated and will be removed in Storybook 11. Please use WithTooltip instead."
  29004. ), import_react159.default.createElement(WithTooltipPure, { "data-deprecated": "WithTooltipPure", ...props })), DeprecatedState = (props) => (deprecate(
  29005. "WithToolTipState is deprecated and will be removed in Storybook 11. Please use WithTooltip instead."
  29006. ), import_react159.default.createElement(WithToolTipState, { "data-deprecated": "WithToolTipState", ...props }));
  29007. }
  29008. });
  29009. // ../../node_modules/browser-dtector/browser-dtector.umd.min.js
  29010. var require_browser_dtector_umd_min = __commonJS({
  29011. "../../node_modules/browser-dtector/browser-dtector.umd.min.js"(exports, module2) {
  29012. (function(e, o) {
  29013. typeof exports == "object" && typeof module2 < "u" ? module2.exports = o() : typeof define == "function" && define.amd ? define(o) : (e = typeof globalThis < "u" ? globalThis : e || self).BrowserDetector = o();
  29014. })(exports, (function() {
  29015. "use strict";
  29016. function e(e2, o2) {
  29017. for (var r3 = 0; r3 < o2.length; r3++) {
  29018. var n2 = o2[r3];
  29019. n2.enumerable = n2.enumerable || !1, n2.configurable = !0, "value" in n2 && (n2.writable = !0), Object.defineProperty(e2, (i2 = n2.key, t2 = void 0, typeof (t2 = (function(e3, o3) {
  29020. if (typeof e3 != "object" || e3 === null) return e3;
  29021. var r4 = e3[Symbol.toPrimitive];
  29022. if (r4 !== void 0) {
  29023. var n3 = r4.call(e3, o3 || "default");
  29024. if (typeof n3 != "object") return n3;
  29025. throw new TypeError("@@toPrimitive must return a primitive value.");
  29026. }
  29027. return (o3 === "string" ? String : Number)(e3);
  29028. })(i2, "string")) == "symbol" ? t2 : String(t2)), n2);
  29029. }
  29030. var i2, t2;
  29031. }
  29032. var o = { chrome: "Google Chrome", brave: "Brave", crios: "Google Chrome", edge: "Microsoft Edge", edg: "Microsoft Edge", edgios: "Microsoft Edge", fennec: "Mozilla Firefox", jsdom: "JsDOM", mozilla: "Mozilla Firefox", fxios: "Mozilla Firefox", msie: "Microsoft Internet Explorer", opera: "Opera", opios: "Opera", opr: "Opera", opt: "Opera", rv: "Microsoft Internet Explorer", safari: "Safari", samsungbrowser: "Samsung Browser", electron: "Electron" }, r2 = { android: "Android", androidTablet: "Android Tablet", cros: "Chrome OS", fennec: "Android Tablet", ipad: "IPad", iphone: "IPhone", jsdom: "JsDOM", linux: "Linux", mac: "Macintosh", tablet: "Android Tablet", win: "Windows", "windows phone": "Windows Phone", xbox: "Microsoft Xbox" }, n = function(e2) {
  29033. var o2 = new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, "})?")), r3 = Number(e2).toString().match(o2);
  29034. return r3 ? r3[0] : null;
  29035. }, i = function() {
  29036. return typeof window < "u" ? window.navigator : null;
  29037. }, t = (function() {
  29038. function t2(e2) {
  29039. var o2;
  29040. (function(e3, o3) {
  29041. if (!(e3 instanceof o3)) throw new TypeError("Cannot call a class as a function");
  29042. })(this, t2), this.userAgent = e2 || ((o2 = i()) === null || o2 === void 0 ? void 0 : o2.userAgent) || null;
  29043. }
  29044. var a3, l, s3;
  29045. return a3 = t2, l = [{ key: "parseUserAgent", value: function(e2) {
  29046. var t3, a4, l2, s4 = {}, c = e2 || this.userAgent || "", d = c.toLowerCase().replace(/\s\s+/g, " "), u2 = /(edge)\/([\w.]+)/.exec(d) || /(edg)[/]([\w.]+)/.exec(d) || /(opr)[/]([\w.]+)/.exec(d) || /(opt)[/]([\w.]+)/.exec(d) || /(fxios)[/]([\w.]+)/.exec(d) || /(edgios)[/]([\w.]+)/.exec(d) || /(jsdom)[/]([\w.]+)/.exec(d) || /(samsungbrowser)[/]([\w.]+)/.exec(d) || /(electron)[/]([\w.]+)/.exec(d) || /(chrome)[/]([\w.]+)/.exec(d) || /(crios)[/]([\w.]+)/.exec(d) || /(opios)[/]([\w.]+)/.exec(d) || /(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(webkit)[/]([\w.]+)/.exec(d) || /(opera)(?:.*version|)[/]([\w.]+)/.exec(d) || /(msie) ([\w.]+)/.exec(d) || /(fennec)[/]([\w.]+)/.exec(d) || d.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(d) || d.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d) || [], f4 = /(ipad)/.exec(d) || /(ipod)/.exec(d) || /(iphone)/.exec(d) || /(jsdom)/.exec(d) || /(windows phone)/.exec(d) || /(xbox)/.exec(d) || /(win)/.exec(d) || /(tablet)/.exec(d) || /(android)/.test(d) && /(mobile)/.test(d) === !1 && ["androidTablet"] || /(android)/.exec(d) || /(mac)/.exec(d) || /(linux)/.exec(d) || /(cros)/.exec(d) || [], p3 = u2[5] || u2[3] || u2[1] || null, w = f4[0] || null, x = u2[4] || u2[2] || null, b = i();
  29047. p3 === "chrome" && typeof (b == null || (t3 = b.brave) === null || t3 === void 0 ? void 0 : t3.isBrave) == "function" && (p3 = "brave"), p3 && (s4[p3] = !0), w && (s4[w] = !0);
  29048. var v = !!(s4.tablet || s4.android || s4.androidTablet), m3 = !!(s4.ipad || s4.tablet || s4.androidTablet), g2 = !!(s4.android || s4.androidTablet || s4.tablet || s4.ipad || s4.ipod || s4.iphone || s4["windows phone"]), h3 = !!(s4.cros || s4.mac || s4.linux || s4.win), y = !!(s4.brave || s4.chrome || s4.crios || s4.opr || s4.safari || s4.edg || s4.electron), A3 = !!(s4.msie || s4.rv);
  29049. return { name: (a4 = o[p3]) !== null && a4 !== void 0 ? a4 : null, platform: (l2 = r2[w]) !== null && l2 !== void 0 ? l2 : null, userAgent: c, version: x, shortVersion: x ? n(parseFloat(x), 2) : null, isAndroid: v, isTablet: m3, isMobile: g2, isDesktop: h3, isWebkit: y, isIE: A3 };
  29050. } }, { key: "getBrowserInfo", value: function() {
  29051. var e2 = this.parseUserAgent();
  29052. return { name: e2.name, platform: e2.platform, userAgent: e2.userAgent, version: e2.version, shortVersion: e2.shortVersion };
  29053. } }], s3 = [{ key: "VERSION", get: function() {
  29054. return "3.4.0";
  29055. } }], l && e(a3.prototype, l), s3 && e(a3, s3), Object.defineProperty(a3, "prototype", { writable: !1 }), t2;
  29056. })();
  29057. return t;
  29058. }));
  29059. }
  29060. });
  29061. // src/core-events/index.ts
  29062. var core_events_exports = {};
  29063. __export(core_events_exports, {
  29064. AI_PROMPT_NUDGE: () => AI_PROMPT_NUDGE,
  29065. AI_SETUP_ANALYTICS_REQUEST: () => AI_SETUP_ANALYTICS_REQUEST,
  29066. AI_SETUP_ANALYTICS_RESPONSE: () => AI_SETUP_ANALYTICS_RESPONSE,
  29067. ARGTYPES_INFO_REQUEST: () => ARGTYPES_INFO_REQUEST,
  29068. ARGTYPES_INFO_RESPONSE: () => ARGTYPES_INFO_RESPONSE,
  29069. CHANNEL_CREATED: () => CHANNEL_CREATED,
  29070. CHANNEL_WS_DISCONNECT: () => CHANNEL_WS_DISCONNECT,
  29071. CONFIG_ERROR: () => CONFIG_ERROR,
  29072. CREATE_NEW_STORYFILE_REQUEST: () => CREATE_NEW_STORYFILE_REQUEST,
  29073. CREATE_NEW_STORYFILE_RESPONSE: () => CREATE_NEW_STORYFILE_RESPONSE,
  29074. CURRENT_STORY_WAS_SET: () => CURRENT_STORY_WAS_SET,
  29075. DOCS_PREPARED: () => DOCS_PREPARED,
  29076. DOCS_RENDERED: () => DOCS_RENDERED,
  29077. FILE_COMPONENT_SEARCH_REQUEST: () => FILE_COMPONENT_SEARCH_REQUEST,
  29078. FILE_COMPONENT_SEARCH_RESPONSE: () => FILE_COMPONENT_SEARCH_RESPONSE,
  29079. FORCE_REMOUNT: () => FORCE_REMOUNT,
  29080. FORCE_RE_RENDER: () => FORCE_RE_RENDER,
  29081. GHOST_STORIES_REQUEST: () => GHOST_STORIES_REQUEST,
  29082. GHOST_STORIES_RESPONSE: () => GHOST_STORIES_RESPONSE,
  29083. GLOBALS_UPDATED: () => GLOBALS_UPDATED,
  29084. MANAGER_INERT_ATTRIBUTE_CHANGED: () => MANAGER_INERT_ATTRIBUTE_CHANGED,
  29085. NAVIGATE_URL: () => NAVIGATE_URL,
  29086. OPEN_IN_EDITOR_REQUEST: () => OPEN_IN_EDITOR_REQUEST,
  29087. OPEN_IN_EDITOR_RESPONSE: () => OPEN_IN_EDITOR_RESPONSE,
  29088. PLAY_FUNCTION_THREW_EXCEPTION: () => PLAY_FUNCTION_THREW_EXCEPTION,
  29089. PRELOAD_ENTRIES: () => PRELOAD_ENTRIES,
  29090. PREVIEW_BUILDER_PROGRESS: () => PREVIEW_BUILDER_PROGRESS,
  29091. PREVIEW_INITIALIZED: () => PREVIEW_INITIALIZED,
  29092. PREVIEW_KEYDOWN: () => PREVIEW_KEYDOWN,
  29093. REGISTER_SUBSCRIPTION: () => REGISTER_SUBSCRIPTION,
  29094. REQUEST_WHATS_NEW_DATA: () => REQUEST_WHATS_NEW_DATA,
  29095. RESET_STORY_ARGS: () => RESET_STORY_ARGS,
  29096. RESULT_WHATS_NEW_DATA: () => RESULT_WHATS_NEW_DATA,
  29097. SAVE_STORY_REQUEST: () => SAVE_STORY_REQUEST,
  29098. SAVE_STORY_RESPONSE: () => SAVE_STORY_RESPONSE,
  29099. SELECT_STORY: () => SELECT_STORY,
  29100. SET_CONFIG: () => SET_CONFIG,
  29101. SET_CURRENT_STORY: () => SET_CURRENT_STORY,
  29102. SET_FILTER: () => SET_FILTER,
  29103. SET_GLOBALS: () => SET_GLOBALS,
  29104. SET_INDEX: () => SET_INDEX,
  29105. SET_STORIES: () => SET_STORIES,
  29106. SET_WHATS_NEW_CACHE: () => SET_WHATS_NEW_CACHE,
  29107. SHARED_STATE_CHANGED: () => SHARED_STATE_CHANGED,
  29108. SHARED_STATE_SET: () => SHARED_STATE_SET,
  29109. SHARE_ISOLATE_MODE: () => SHARE_ISOLATE_MODE,
  29110. SIDEBAR_FILTER_CHANGED: () => SIDEBAR_FILTER_CHANGED,
  29111. STORIES_COLLAPSE_ALL: () => STORIES_COLLAPSE_ALL,
  29112. STORIES_EXPAND_ALL: () => STORIES_EXPAND_ALL,
  29113. STORY_ARGS_UPDATED: () => STORY_ARGS_UPDATED,
  29114. STORY_CHANGED: () => STORY_CHANGED,
  29115. STORY_ERRORED: () => STORY_ERRORED,
  29116. STORY_FINISHED: () => STORY_FINISHED,
  29117. STORY_HOT_UPDATED: () => STORY_HOT_UPDATED,
  29118. STORY_INDEX_INVALIDATED: () => STORY_INDEX_INVALIDATED,
  29119. STORY_MISSING: () => STORY_MISSING,
  29120. STORY_PREPARED: () => STORY_PREPARED,
  29121. STORY_RENDERED: () => STORY_RENDERED,
  29122. STORY_RENDER_PHASE_CHANGED: () => STORY_RENDER_PHASE_CHANGED,
  29123. STORY_SPECIFIED: () => STORY_SPECIFIED,
  29124. STORY_THREW_EXCEPTION: () => STORY_THREW_EXCEPTION,
  29125. STORY_UNCHANGED: () => STORY_UNCHANGED,
  29126. TELEMETRY_ERROR: () => TELEMETRY_ERROR,
  29127. TOGGLE_WHATS_NEW_NOTIFICATIONS: () => TOGGLE_WHATS_NEW_NOTIFICATIONS,
  29128. UNHANDLED_ERRORS_WHILE_PLAYING: () => UNHANDLED_ERRORS_WHILE_PLAYING,
  29129. UPDATE_GLOBALS: () => UPDATE_GLOBALS,
  29130. UPDATE_QUERY_PARAMS: () => UPDATE_QUERY_PARAMS,
  29131. UPDATE_STORY_ARGS: () => UPDATE_STORY_ARGS,
  29132. default: () => core_events_default
  29133. });
  29134. var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.GHOST_STORIES_REQUEST = "ghostStoriesRequest", events2.GHOST_STORIES_RESPONSE = "ghostStoriesResponse", events2.AI_SETUP_ANALYTICS_RESPONSE = "aiSetupAnalyticsResponse", events2.AI_SETUP_ANALYTICS_REQUEST = "aiSetupAnalyticsRequest", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", events2.SHARE_ISOLATE_MODE = "shareIsolateMode", events2.AI_PROMPT_NUDGE = "aiPromptNudge", events2.SIDEBAR_FILTER_CHANGED = "sidebarFilterChanged", events2))(events || {}), core_events_default = events, {
  29135. CHANNEL_WS_DISCONNECT,
  29136. CHANNEL_CREATED,
  29137. CONFIG_ERROR,
  29138. CREATE_NEW_STORYFILE_REQUEST,
  29139. CREATE_NEW_STORYFILE_RESPONSE,
  29140. CURRENT_STORY_WAS_SET,
  29141. DOCS_PREPARED,
  29142. DOCS_RENDERED,
  29143. FILE_COMPONENT_SEARCH_REQUEST,
  29144. FILE_COMPONENT_SEARCH_RESPONSE,
  29145. FORCE_RE_RENDER,
  29146. FORCE_REMOUNT,
  29147. GLOBALS_UPDATED,
  29148. NAVIGATE_URL,
  29149. PLAY_FUNCTION_THREW_EXCEPTION,
  29150. UNHANDLED_ERRORS_WHILE_PLAYING,
  29151. PRELOAD_ENTRIES,
  29152. PREVIEW_INITIALIZED,
  29153. PREVIEW_BUILDER_PROGRESS,
  29154. PREVIEW_KEYDOWN,
  29155. REGISTER_SUBSCRIPTION,
  29156. RESET_STORY_ARGS,
  29157. SELECT_STORY,
  29158. SET_CONFIG,
  29159. SET_CURRENT_STORY,
  29160. SET_FILTER,
  29161. SET_GLOBALS,
  29162. SET_INDEX,
  29163. SET_STORIES,
  29164. SHARED_STATE_CHANGED,
  29165. SHARED_STATE_SET,
  29166. STORIES_COLLAPSE_ALL,
  29167. STORIES_EXPAND_ALL,
  29168. STORY_ARGS_UPDATED,
  29169. STORY_CHANGED,
  29170. STORY_ERRORED,
  29171. STORY_INDEX_INVALIDATED,
  29172. STORY_MISSING,
  29173. STORY_PREPARED,
  29174. STORY_RENDER_PHASE_CHANGED,
  29175. STORY_RENDERED,
  29176. STORY_FINISHED,
  29177. STORY_SPECIFIED,
  29178. STORY_THREW_EXCEPTION,
  29179. STORY_UNCHANGED,
  29180. STORY_HOT_UPDATED,
  29181. UPDATE_GLOBALS,
  29182. UPDATE_QUERY_PARAMS,
  29183. UPDATE_STORY_ARGS,
  29184. REQUEST_WHATS_NEW_DATA,
  29185. RESULT_WHATS_NEW_DATA,
  29186. SET_WHATS_NEW_CACHE,
  29187. TOGGLE_WHATS_NEW_NOTIFICATIONS,
  29188. TELEMETRY_ERROR,
  29189. SAVE_STORY_REQUEST,
  29190. SAVE_STORY_RESPONSE,
  29191. ARGTYPES_INFO_REQUEST,
  29192. ARGTYPES_INFO_RESPONSE,
  29193. GHOST_STORIES_REQUEST,
  29194. GHOST_STORIES_RESPONSE,
  29195. AI_SETUP_ANALYTICS_RESPONSE,
  29196. AI_SETUP_ANALYTICS_REQUEST,
  29197. OPEN_IN_EDITOR_REQUEST,
  29198. OPEN_IN_EDITOR_RESPONSE,
  29199. MANAGER_INERT_ATTRIBUTE_CHANGED,
  29200. SHARE_ISOLATE_MODE,
  29201. AI_PROMPT_NUDGE,
  29202. SIDEBAR_FILTER_CHANGED
  29203. } = events;
  29204. // src/manager/globals/globals.ts
  29205. var globalsNameReferenceMap = {
  29206. react: "__REACT__",
  29207. "react-dom": "__REACT_DOM__",
  29208. "react-dom/client": "__REACT_DOM_CLIENT__",
  29209. "@storybook/icons": "__STORYBOOK_ICONS__",
  29210. "storybook/manager-api": "__STORYBOOK_API__",
  29211. "storybook/test": "__STORYBOOK_TEST__",
  29212. "storybook/theming": "__STORYBOOK_THEMING__",
  29213. "storybook/theming/create": "__STORYBOOK_THEMING_CREATE__",
  29214. "storybook/internal/channels": "__STORYBOOK_CHANNELS__",
  29215. "storybook/internal/client-logger": "__STORYBOOK_CLIENT_LOGGER__",
  29216. "storybook/internal/components": "__STORYBOOK_COMPONENTS__",
  29217. "storybook/internal/core-events": "__STORYBOOK_CORE_EVENTS__",
  29218. "storybook/internal/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__",
  29219. "storybook/internal/router": "__STORYBOOK_ROUTER__",
  29220. "storybook/internal/types": "__STORYBOOK_TYPES__"
  29221. }, globalPackages = Object.keys(globalsNameReferenceMap);
  29222. // src/manager/globals/runtime.ts
  29223. var REACT = __toESM(require_react(), 1), REACT_DOM = __toESM(require_react_dom(), 1), REACT_DOM_CLIENT = __toESM(require_client(), 1);
  29224. // src/channels/index.ts
  29225. var channels_exports = {};
  29226. __export(channels_exports, {
  29227. Channel: () => Channel,
  29228. HEARTBEAT_INTERVAL: () => HEARTBEAT_INTERVAL,
  29229. HEARTBEAT_MAX_LATENCY: () => HEARTBEAT_MAX_LATENCY,
  29230. PostMessageTransport: () => PostMessageTransport,
  29231. WebsocketTransport: () => WebsocketTransport,
  29232. createBrowserChannel: () => createBrowserChannel,
  29233. default: () => channels_default
  29234. });
  29235. init_dist();
  29236. // src/shared/universal-store/index.ts
  29237. init_esm();
  29238. // src/shared/universal-store/instances.ts
  29239. var instances = /* @__PURE__ */ new Map();
  29240. // src/shared/universal-store/index.ts
  29241. var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:", ProgressState = {
  29242. PENDING: "PENDING",
  29243. RESOLVED: "RESOLVED",
  29244. REJECTED: "REJECTED"
  29245. }, _UniversalStore = class _UniversalStore {
  29246. constructor(options, environmentOverrides) {
  29247. /** Enable debug logs for this store */
  29248. this.debugging = !1;
  29249. // TODO: narrow type of listeners based on event type
  29250. this.listeners = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set()]]);
  29251. /** Gets the current state */
  29252. this.getState = () => (this.debug("getState", { state: this.state }), this.state);
  29253. /**
  29254. * Subscribes to store events
  29255. *
  29256. * @returns A function to unsubscribe
  29257. */
  29258. this.subscribe = (eventTypeOrListener, maybeListener) => {
  29259. let subscribesToAllEvents = typeof eventTypeOrListener == "function", eventType = subscribesToAllEvents ? "*" : eventTypeOrListener, listener = subscribesToAllEvents ? eventTypeOrListener : maybeListener;
  29260. if (this.debug("subscribe", { eventType, listener }), !listener)
  29261. throw new TypeError(
  29262. `Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`
  29263. );
  29264. return this.listeners.has(eventType) || this.listeners.set(eventType, /* @__PURE__ */ new Set()), this.listeners.get(eventType).add(listener), () => {
  29265. this.debug("unsubscribe", { eventType, listener }), this.listeners.has(eventType) && (this.listeners.get(eventType).delete(listener), this.listeners.get(eventType)?.size === 0 && this.listeners.delete(eventType));
  29266. };
  29267. };
  29268. /** Sends a custom event to the other stores */
  29269. this.send = (event) => {
  29270. if (this.debug("send", { event }), this.status !== _UniversalStore.Status.READY)
  29271. throw new TypeError(
  29272. dedent`Cannot send event before store is ready. You can get the current status with store.status,
  29273. or await store.readyPromise to wait for the store to be ready before sending events.
  29274. ${JSON.stringify(
  29275. {
  29276. event,
  29277. id: this.id,
  29278. actor: this.actor,
  29279. environment: this.environment
  29280. },
  29281. null,
  29282. 2
  29283. )}`
  29284. );
  29285. this.emitToListeners(event, { actor: this.actor }), this.emitToChannel(event, { actor: this.actor });
  29286. };
  29287. if (this.debugging = options.debug ?? !1, !_UniversalStore.isInternalConstructing)
  29288. throw new TypeError(
  29289. "UniversalStore is not constructable - use UniversalStore.create() instead"
  29290. );
  29291. if (_UniversalStore.isInternalConstructing = !1, this.id = options.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.actorType = options.leader ? _UniversalStore.ActorType.LEADER : _UniversalStore.ActorType.FOLLOWER, this.state = options.initialState, this.channelEventName = `${CHANNEL_EVENT_PREFIX}${this.id}`, this.debug("constructor", {
  29292. options,
  29293. environmentOverrides,
  29294. channelEventName: this.channelEventName
  29295. }), this.actor.type === _UniversalStore.ActorType.LEADER)
  29296. this.syncing = {
  29297. state: ProgressState.RESOLVED,
  29298. promise: Promise.resolve()
  29299. };
  29300. else {
  29301. let syncingResolve, syncingReject, syncingPromise = new Promise((resolve, reject) => {
  29302. syncingResolve = () => {
  29303. this.syncing.state === ProgressState.PENDING && (this.syncing.state = ProgressState.RESOLVED, resolve());
  29304. }, syncingReject = (reason) => {
  29305. this.syncing.state === ProgressState.PENDING && (this.syncing.state = ProgressState.REJECTED, reject(reason));
  29306. };
  29307. });
  29308. this.syncing = {
  29309. state: ProgressState.PENDING,
  29310. promise: syncingPromise,
  29311. resolve: syncingResolve,
  29312. reject: syncingReject
  29313. };
  29314. }
  29315. this.getState = this.getState.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), this.onStateChange = this.onStateChange.bind(this), this.send = this.send.bind(this), this.emitToChannel = this.emitToChannel.bind(this), this.prepareThis = this.prepareThis.bind(this), this.emitToListeners = this.emitToListeners.bind(this), this.handleChannelEvents = this.handleChannelEvents.bind(this), this.debug = this.debug.bind(this), this.channel = environmentOverrides?.channel ?? _UniversalStore.preparation.channel, this.environment = environmentOverrides?.environment ?? _UniversalStore.preparation.environment, this.channel && this.environment ? (_UniversalStore.preparation.resolve({ channel: this.channel, environment: this.environment }), this.prepareThis({ channel: this.channel, environment: this.environment })) : _UniversalStore.preparation.promise.then(this.prepareThis);
  29316. }
  29317. static setupPreparationPromise() {
  29318. let resolveRef, rejectRef, promise = new Promise(
  29319. (resolve, reject) => {
  29320. resolveRef = (args) => {
  29321. resolve(args);
  29322. }, rejectRef = (...args) => {
  29323. reject(args);
  29324. };
  29325. }
  29326. );
  29327. _UniversalStore.preparation = {
  29328. resolve: resolveRef,
  29329. reject: rejectRef,
  29330. promise
  29331. };
  29332. }
  29333. /** The actor object representing the store instance with a unique ID and a type */
  29334. get actor() {
  29335. return Object.freeze({
  29336. id: this.actorId,
  29337. type: this.actorType,
  29338. environment: this.environment ?? _UniversalStore.Environment.UNKNOWN
  29339. });
  29340. }
  29341. /**
  29342. * The current state of the store, that signals both if the store is prepared by Storybook and
  29343. * also - in the case of a follower - if the state has been synced with the leader's state.
  29344. */
  29345. get status() {
  29346. if (!this.channel || !this.environment)
  29347. return _UniversalStore.Status.UNPREPARED;
  29348. switch (this.syncing?.state) {
  29349. case ProgressState.PENDING:
  29350. case void 0:
  29351. return _UniversalStore.Status.SYNCING;
  29352. case ProgressState.REJECTED:
  29353. return _UniversalStore.Status.ERROR;
  29354. case ProgressState.RESOLVED:
  29355. default:
  29356. return _UniversalStore.Status.READY;
  29357. }
  29358. }
  29359. /**
  29360. * A promise that resolves when the store is fully ready. A leader will be ready when the store
  29361. * has been prepared by Storybook, which is almost instantly.
  29362. *
  29363. * A follower will be ready when the state has been synced with the leader's state, within a few
  29364. * hundred milliseconds.
  29365. */
  29366. untilReady() {
  29367. return Promise.all([_UniversalStore.preparation.promise, this.syncing?.promise]);
  29368. }
  29369. /** Creates a new instance of UniversalStore */
  29370. static create(options) {
  29371. if (!options || typeof options?.id != "string")
  29372. throw new TypeError("id is required and must be a string, when creating a UniversalStore");
  29373. options.debug && console.debug(
  29374. dedent`[UniversalStore]
  29375. create`,
  29376. { options }
  29377. );
  29378. let existing = instances.get(options.id);
  29379. if (existing)
  29380. return console.warn(dedent`UniversalStore with id "${options.id}" already exists in this environment, re-using existing.
  29381. You should reuse the existing instance instead of trying to create a new one.`), existing;
  29382. _UniversalStore.isInternalConstructing = !0;
  29383. let store2 = new _UniversalStore(options);
  29384. return instances.set(options.id, store2), store2;
  29385. }
  29386. /**
  29387. * Used by Storybook to set the channel for all instances of UniversalStore in the given
  29388. * environment.
  29389. *
  29390. * @internal
  29391. */
  29392. static __prepare(channel, environment) {
  29393. _UniversalStore.preparation.channel = channel, _UniversalStore.preparation.environment = environment, _UniversalStore.preparation.resolve({ channel, environment });
  29394. }
  29395. /**
  29396. * Updates the store's state
  29397. *
  29398. * Either a new state or a state updater function can be passed to the method.
  29399. */
  29400. setState(updater) {
  29401. let previousState = this.state, newState = typeof updater == "function" ? updater(previousState) : updater;
  29402. if (this.debug("setState", { newState, previousState, updater }), this.status !== _UniversalStore.Status.READY)
  29403. throw new TypeError(
  29404. dedent`Cannot set state before store is ready. You can get the current status with store.status,
  29405. or await store.readyPromise to wait for the store to be ready before sending events.
  29406. ${JSON.stringify(
  29407. {
  29408. newState,
  29409. id: this.id,
  29410. actor: this.actor,
  29411. environment: this.environment
  29412. },
  29413. null,
  29414. 2
  29415. )}`
  29416. );
  29417. this.state = newState;
  29418. let event = {
  29419. type: _UniversalStore.InternalEventType.SET_STATE,
  29420. payload: {
  29421. state: newState,
  29422. previousState
  29423. }
  29424. };
  29425. this.emitToChannel(event, { actor: this.actor }), this.emitToListeners(event, { actor: this.actor });
  29426. }
  29427. /**
  29428. * Subscribes to state changes
  29429. *
  29430. * @returns Unsubscribe function
  29431. */
  29432. onStateChange(listener) {
  29433. return this.debug("onStateChange", { listener }), this.subscribe(
  29434. _UniversalStore.InternalEventType.SET_STATE,
  29435. ({ payload }, eventInfo) => {
  29436. listener(payload.state, payload.previousState, eventInfo);
  29437. }
  29438. );
  29439. }
  29440. emitToChannel(event, eventInfo) {
  29441. this.debug("emitToChannel", { event, eventInfo, channel: !!this.channel }), this.channel?.emit(this.channelEventName, {
  29442. event,
  29443. eventInfo
  29444. });
  29445. }
  29446. prepareThis({
  29447. channel,
  29448. environment
  29449. }) {
  29450. this.channel = channel, this.environment = environment, this.debug("prepared", { channel: !!channel, environment }), this.channel.on(this.channelEventName, this.handleChannelEvents), this.actor.type === _UniversalStore.ActorType.LEADER ? this.emitToChannel(
  29451. { type: _UniversalStore.InternalEventType.LEADER_CREATED },
  29452. { actor: this.actor }
  29453. ) : (this.emitToChannel(
  29454. { type: _UniversalStore.InternalEventType.FOLLOWER_CREATED },
  29455. { actor: this.actor }
  29456. ), this.emitToChannel(
  29457. { type: _UniversalStore.InternalEventType.EXISTING_STATE_REQUEST },
  29458. { actor: this.actor }
  29459. ), setTimeout(() => {
  29460. this.syncing.reject(
  29461. new TypeError(
  29462. `No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`
  29463. )
  29464. );
  29465. }, 1e3));
  29466. }
  29467. emitToListeners(event, eventInfo) {
  29468. let eventTypeListeners = this.listeners.get(event.type), everythingListeners = this.listeners.get("*");
  29469. this.debug("emitToListeners", {
  29470. event,
  29471. eventInfo,
  29472. eventTypeListeners,
  29473. everythingListeners
  29474. }), [...eventTypeListeners ?? [], ...everythingListeners ?? []].forEach(
  29475. (listener) => listener(event, eventInfo)
  29476. );
  29477. }
  29478. handleChannelEvents(channelEvent) {
  29479. let { event, eventInfo } = channelEvent;
  29480. if ([eventInfo.actor.id, eventInfo.forwardingActor?.id].includes(this.actor.id)) {
  29481. this.debug("handleChannelEvents: Ignoring event from self", { channelEvent });
  29482. return;
  29483. } else if (this.syncing?.state === ProgressState.PENDING && event.type !== _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE) {
  29484. this.debug("handleChannelEvents: Ignoring event while syncing", { channelEvent });
  29485. return;
  29486. }
  29487. if (this.debug("handleChannelEvents", { channelEvent }), this.actor.type === _UniversalStore.ActorType.LEADER) {
  29488. let shouldForwardEvent = !0;
  29489. switch (event.type) {
  29490. case _UniversalStore.InternalEventType.EXISTING_STATE_REQUEST:
  29491. shouldForwardEvent = !1;
  29492. let responseEvent = {
  29493. type: _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE,
  29494. payload: this.state
  29495. };
  29496. this.debug("handleChannelEvents: responding to existing state request", {
  29497. responseEvent
  29498. }), this.emitToChannel(responseEvent, { actor: this.actor }), this.emitToListeners(responseEvent, { actor: this.actor });
  29499. break;
  29500. case _UniversalStore.InternalEventType.LEADER_CREATED:
  29501. shouldForwardEvent = !1, this.syncing.state = ProgressState.REJECTED, this.debug("handleChannelEvents: erroring due to second leader being created", {
  29502. event
  29503. }), console.error(
  29504. dedent`Detected multiple UniversalStore leaders created with the same id "${this.id}".
  29505. Only one leader can exists at a time, your stores are now in an invalid state.
  29506. Leaders detected:
  29507. this: ${JSON.stringify(this.actor, null, 2)}
  29508. other: ${JSON.stringify(eventInfo.actor, null, 2)}`
  29509. );
  29510. break;
  29511. }
  29512. shouldForwardEvent && (this.debug("handleChannelEvents: forwarding event", { channelEvent }), this.emitToChannel(event, { actor: eventInfo.actor, forwardingActor: this.actor }));
  29513. }
  29514. if (this.actor.type === _UniversalStore.ActorType.FOLLOWER)
  29515. switch (event.type) {
  29516. case _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE:
  29517. if (this.debug("handleChannelEvents: Setting state from leader's existing state response", {
  29518. event
  29519. }), this.syncing?.state !== ProgressState.PENDING)
  29520. break;
  29521. this.syncing.resolve?.();
  29522. let setStateEvent = {
  29523. type: _UniversalStore.InternalEventType.SET_STATE,
  29524. payload: {
  29525. state: event.payload,
  29526. previousState: this.state
  29527. }
  29528. };
  29529. this.state = event.payload, this.emitToListeners(setStateEvent, eventInfo);
  29530. break;
  29531. }
  29532. switch (event.type) {
  29533. case _UniversalStore.InternalEventType.SET_STATE:
  29534. this.debug("handleChannelEvents: Setting state", { event }), this.state = event.payload.state;
  29535. break;
  29536. }
  29537. this.emitToListeners(event, { actor: eventInfo.actor });
  29538. }
  29539. debug(message, data) {
  29540. this.debugging && console.debug(
  29541. dedent`[UniversalStore::${this.id}::${this.environment ?? _UniversalStore.Environment.UNKNOWN}]
  29542. ${message}`,
  29543. JSON.stringify(
  29544. {
  29545. data,
  29546. actor: this.actor,
  29547. state: this.state,
  29548. status: this.status
  29549. },
  29550. null,
  29551. 2
  29552. )
  29553. );
  29554. }
  29555. /**
  29556. * Used to reset the static fields of the UniversalStore class when cleaning up tests
  29557. *
  29558. * @internal
  29559. */
  29560. static __reset() {
  29561. _UniversalStore.preparation.reject(new Error("reset")), _UniversalStore.setupPreparationPromise(), _UniversalStore.isInternalConstructing = !1;
  29562. }
  29563. };
  29564. /**
  29565. * Defines the possible actor types in the store system
  29566. *
  29567. * @readonly
  29568. */
  29569. _UniversalStore.ActorType = {
  29570. LEADER: "LEADER",
  29571. FOLLOWER: "FOLLOWER"
  29572. }, /**
  29573. * Defines the possible environments the store can run in
  29574. *
  29575. * @readonly
  29576. */
  29577. _UniversalStore.Environment = {
  29578. SERVER: "SERVER",
  29579. MANAGER: "MANAGER",
  29580. PREVIEW: "PREVIEW",
  29581. UNKNOWN: "UNKNOWN",
  29582. MOCK: "MOCK"
  29583. }, /**
  29584. * Internal event types used for store synchronization
  29585. *
  29586. * @readonly
  29587. */
  29588. _UniversalStore.InternalEventType = {
  29589. EXISTING_STATE_REQUEST: "__EXISTING_STATE_REQUEST",
  29590. EXISTING_STATE_RESPONSE: "__EXISTING_STATE_RESPONSE",
  29591. SET_STATE: "__SET_STATE",
  29592. LEADER_CREATED: "__LEADER_CREATED",
  29593. FOLLOWER_CREATED: "__FOLLOWER_CREATED"
  29594. }, _UniversalStore.Status = {
  29595. UNPREPARED: "UNPREPARED",
  29596. SYNCING: "SYNCING",
  29597. READY: "READY",
  29598. ERROR: "ERROR"
  29599. }, // This is used to check if constructor was called from the static factory create()
  29600. _UniversalStore.isInternalConstructing = !1, _UniversalStore.setupPreparationPromise();
  29601. var UniversalStore = _UniversalStore;
  29602. // src/channels/main.ts
  29603. var isMulti = (args) => args.transports !== void 0, generateRandomId = () => Math.random().toString(16).slice(2), Channel = class {
  29604. constructor(input2 = {}) {
  29605. this.sender = generateRandomId();
  29606. this.events = {};
  29607. this.data = {};
  29608. this.transports = [];
  29609. this.isAsync = input2.async || !1, isMulti(input2) ? (this.transports = input2.transports || [], this.transports.forEach((t) => {
  29610. t.setHandler((event) => this.handleEvent(event));
  29611. })) : this.transports = input2.transport ? [input2.transport] : [], this.transports.forEach((t) => {
  29612. t.setHandler((event) => this.handleEvent(event));
  29613. });
  29614. }
  29615. get hasTransport() {
  29616. return this.transports.length > 0;
  29617. }
  29618. addListener(eventName, listener) {
  29619. this.events[eventName] = this.events[eventName] || [], this.events[eventName].push(listener);
  29620. }
  29621. emit(eventName, ...args) {
  29622. let event = { type: eventName, args, from: this.sender }, options = {};
  29623. args.length >= 1 && args[0] && args[0].options && (options = args[0].options);
  29624. let handler = () => {
  29625. this.transports.forEach((t) => {
  29626. t.send(event, options);
  29627. }), this.handleEvent(event);
  29628. };
  29629. this.isAsync ? setImmediate(handler) : handler();
  29630. }
  29631. last(eventName) {
  29632. return this.data[eventName];
  29633. }
  29634. eventNames() {
  29635. return Object.keys(this.events);
  29636. }
  29637. listenerCount(eventName) {
  29638. let listeners3 = this.listeners(eventName);
  29639. return listeners3 ? listeners3.length : 0;
  29640. }
  29641. listeners(eventName) {
  29642. return this.events[eventName] || void 0;
  29643. }
  29644. once(eventName, listener) {
  29645. let onceListener = this.onceListener(eventName, listener);
  29646. this.addListener(eventName, onceListener);
  29647. }
  29648. removeAllListeners(eventName) {
  29649. eventName ? this.events[eventName] && delete this.events[eventName] : this.events = {};
  29650. }
  29651. removeListener(eventName, listener) {
  29652. let listeners3 = this.listeners(eventName);
  29653. listeners3 && (this.events[eventName] = listeners3.filter((l) => l !== listener));
  29654. }
  29655. on(eventName, listener) {
  29656. this.addListener(eventName, listener);
  29657. }
  29658. off(eventName, listener) {
  29659. this.removeListener(eventName, listener);
  29660. }
  29661. handleEvent(event) {
  29662. let listeners3 = this.listeners(event.type);
  29663. listeners3 && listeners3.length && listeners3.forEach((fn4) => {
  29664. fn4.apply(event, event.args);
  29665. }), this.data[event.type] = event.args;
  29666. }
  29667. onceListener(eventName, listener) {
  29668. let onceListener = (...args) => (this.removeListener(eventName, onceListener), listener(...args));
  29669. return onceListener;
  29670. }
  29671. };
  29672. // src/channels/postmessage/index.ts
  29673. init_client_logger();
  29674. init_dist();
  29675. // ../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
  29676. var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() {
  29677. return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  29678. }, __copyProps2 = (to, from2, except, desc) => {
  29679. if (from2 && typeof from2 == "object" || typeof from2 == "function")
  29680. for (let key of __getOwnPropNames2(from2))
  29681. !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
  29682. return to;
  29683. }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
  29684. // If the importer is in node compatibility mode or this is not an ESM
  29685. // file that has been converted to a CommonJS file using a Babel-
  29686. // compatible transform (i.e. "__esModule" has not been set), then set
  29687. // "default" to the CommonJS "module.exports" for node compatibility.
  29688. isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: !0 }) : target,
  29689. mod
  29690. )), eventProperties = [
  29691. "bubbles",
  29692. "cancelBubble",
  29693. "cancelable",
  29694. "composed",
  29695. "currentTarget",
  29696. "defaultPrevented",
  29697. "eventPhase",
  29698. "isTrusted",
  29699. "returnValue",
  29700. "srcElement",
  29701. "target",
  29702. "timeStamp",
  29703. "type"
  29704. ], customEventSpecificProperties = ["detail"];
  29705. function extractEventHiddenProperties(event) {
  29706. let rebuildEvent = eventProperties.filter((value) => event[value] !== void 0).reduce((acc, value) => (acc[value] = event[value], acc), {});
  29707. if (event instanceof CustomEvent)
  29708. for (let value of customEventSpecificProperties.filter(
  29709. (value2) => event[value2] !== void 0
  29710. ))
  29711. rebuildEvent[value] = event[value];
  29712. return rebuildEvent;
  29713. }
  29714. // ../../node_modules/telejson/dist/index.mjs
  29715. var require_es_object_atoms = __commonJS2({
  29716. "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module2) {
  29717. "use strict";
  29718. module2.exports = Object;
  29719. }
  29720. }), require_es_errors = __commonJS2({
  29721. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module2) {
  29722. "use strict";
  29723. module2.exports = Error;
  29724. }
  29725. }), require_eval = __commonJS2({
  29726. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module2) {
  29727. "use strict";
  29728. module2.exports = EvalError;
  29729. }
  29730. }), require_range = __commonJS2({
  29731. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module2) {
  29732. "use strict";
  29733. module2.exports = RangeError;
  29734. }
  29735. }), require_ref = __commonJS2({
  29736. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module2) {
  29737. "use strict";
  29738. module2.exports = ReferenceError;
  29739. }
  29740. }), require_syntax = __commonJS2({
  29741. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module2) {
  29742. "use strict";
  29743. module2.exports = SyntaxError;
  29744. }
  29745. }), require_type = __commonJS2({
  29746. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module2) {
  29747. "use strict";
  29748. module2.exports = TypeError;
  29749. }
  29750. }), require_uri = __commonJS2({
  29751. "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module2) {
  29752. "use strict";
  29753. module2.exports = URIError;
  29754. }
  29755. }), require_abs = __commonJS2({
  29756. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module2) {
  29757. "use strict";
  29758. module2.exports = Math.abs;
  29759. }
  29760. }), require_floor = __commonJS2({
  29761. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module2) {
  29762. "use strict";
  29763. module2.exports = Math.floor;
  29764. }
  29765. }), require_max = __commonJS2({
  29766. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module2) {
  29767. "use strict";
  29768. module2.exports = Math.max;
  29769. }
  29770. }), require_min = __commonJS2({
  29771. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module2) {
  29772. "use strict";
  29773. module2.exports = Math.min;
  29774. }
  29775. }), require_pow = __commonJS2({
  29776. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module2) {
  29777. "use strict";
  29778. module2.exports = Math.pow;
  29779. }
  29780. }), require_round = __commonJS2({
  29781. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module2) {
  29782. "use strict";
  29783. module2.exports = Math.round;
  29784. }
  29785. }), require_isNaN = __commonJS2({
  29786. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module2) {
  29787. "use strict";
  29788. module2.exports = Number.isNaN || function(a3) {
  29789. return a3 !== a3;
  29790. };
  29791. }
  29792. }), require_sign = __commonJS2({
  29793. "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module2) {
  29794. "use strict";
  29795. var $isNaN = require_isNaN();
  29796. module2.exports = function(number) {
  29797. return $isNaN(number) || number === 0 ? number : number < 0 ? -1 : 1;
  29798. };
  29799. }
  29800. }), require_gOPD = __commonJS2({
  29801. "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module2) {
  29802. "use strict";
  29803. module2.exports = Object.getOwnPropertyDescriptor;
  29804. }
  29805. }), require_gopd = __commonJS2({
  29806. "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module2) {
  29807. "use strict";
  29808. var $gOPD = require_gOPD();
  29809. if ($gOPD)
  29810. try {
  29811. $gOPD([], "length");
  29812. } catch {
  29813. $gOPD = null;
  29814. }
  29815. module2.exports = $gOPD;
  29816. }
  29817. }), require_es_define_property = __commonJS2({
  29818. "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module2) {
  29819. "use strict";
  29820. var $defineProperty = Object.defineProperty || !1;
  29821. if ($defineProperty)
  29822. try {
  29823. $defineProperty({}, "a", { value: 1 });
  29824. } catch {
  29825. $defineProperty = !1;
  29826. }
  29827. module2.exports = $defineProperty;
  29828. }
  29829. }), require_shams = __commonJS2({
  29830. "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module2) {
  29831. "use strict";
  29832. module2.exports = function() {
  29833. if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
  29834. return !1;
  29835. if (typeof Symbol.iterator == "symbol")
  29836. return !0;
  29837. var obj = {}, sym = Symbol("test"), symObj = Object(sym);
  29838. if (typeof sym == "string" || Object.prototype.toString.call(sym) !== "[object Symbol]" || Object.prototype.toString.call(symObj) !== "[object Symbol]")
  29839. return !1;
  29840. var symVal = 42;
  29841. obj[sym] = symVal;
  29842. for (var _ in obj)
  29843. return !1;
  29844. if (typeof Object.keys == "function" && Object.keys(obj).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(obj).length !== 0)
  29845. return !1;
  29846. var syms = Object.getOwnPropertySymbols(obj);
  29847. if (syms.length !== 1 || syms[0] !== sym || !Object.prototype.propertyIsEnumerable.call(obj, sym))
  29848. return !1;
  29849. if (typeof Object.getOwnPropertyDescriptor == "function") {
  29850. var descriptor = (
  29851. /** @type {PropertyDescriptor} */
  29852. Object.getOwnPropertyDescriptor(obj, sym)
  29853. );
  29854. if (descriptor.value !== symVal || descriptor.enumerable !== !0)
  29855. return !1;
  29856. }
  29857. return !0;
  29858. };
  29859. }
  29860. }), require_has_symbols = __commonJS2({
  29861. "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module2) {
  29862. "use strict";
  29863. var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams();
  29864. module2.exports = function() {
  29865. return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : hasSymbolSham();
  29866. };
  29867. }
  29868. }), require_Reflect_getPrototypeOf = __commonJS2({
  29869. "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module2) {
  29870. "use strict";
  29871. module2.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
  29872. }
  29873. }), require_Object_getPrototypeOf = __commonJS2({
  29874. "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module2) {
  29875. "use strict";
  29876. var $Object = require_es_object_atoms();
  29877. module2.exports = $Object.getPrototypeOf || null;
  29878. }
  29879. }), require_implementation = __commonJS2({
  29880. "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
  29881. "use strict";
  29882. var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr3 = Object.prototype.toString, max2 = Math.max, funcType = "[object Function]", concatty = function(a3, b) {
  29883. for (var arr = [], i = 0; i < a3.length; i += 1)
  29884. arr[i] = a3[i];
  29885. for (var j = 0; j < b.length; j += 1)
  29886. arr[j + a3.length] = b[j];
  29887. return arr;
  29888. }, slicy = function(arrLike, offset3) {
  29889. for (var arr = [], i = offset3 || 0, j = 0; i < arrLike.length; i += 1, j += 1)
  29890. arr[j] = arrLike[i];
  29891. return arr;
  29892. }, joiny = function(arr, joiner) {
  29893. for (var str2 = "", i = 0; i < arr.length; i += 1)
  29894. str2 += arr[i], i + 1 < arr.length && (str2 += joiner);
  29895. return str2;
  29896. };
  29897. module2.exports = function(that) {
  29898. var target = this;
  29899. if (typeof target != "function" || toStr3.apply(target) !== funcType)
  29900. throw new TypeError(ERROR_MESSAGE + target);
  29901. for (var args = slicy(arguments, 1), bound, binder = function() {
  29902. if (this instanceof bound) {
  29903. var result = target.apply(
  29904. this,
  29905. concatty(args, arguments)
  29906. );
  29907. return Object(result) === result ? result : this;
  29908. }
  29909. return target.apply(
  29910. that,
  29911. concatty(args, arguments)
  29912. );
  29913. }, boundLength = max2(0, target.length - args.length), boundArgs = [], i = 0; i < boundLength; i++)
  29914. boundArgs[i] = "$" + i;
  29915. if (bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder), target.prototype) {
  29916. var Empty = function() {
  29917. };
  29918. Empty.prototype = target.prototype, bound.prototype = new Empty(), Empty.prototype = null;
  29919. }
  29920. return bound;
  29921. };
  29922. }
  29923. }), require_function_bind = __commonJS2({
  29924. "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
  29925. "use strict";
  29926. var implementation = require_implementation();
  29927. module2.exports = Function.prototype.bind || implementation;
  29928. }
  29929. }), require_functionCall = __commonJS2({
  29930. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module2) {
  29931. "use strict";
  29932. module2.exports = Function.prototype.call;
  29933. }
  29934. }), require_functionApply = __commonJS2({
  29935. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module2) {
  29936. "use strict";
  29937. module2.exports = Function.prototype.apply;
  29938. }
  29939. }), require_reflectApply = __commonJS2({
  29940. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module2) {
  29941. "use strict";
  29942. module2.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
  29943. }
  29944. }), require_actualApply = __commonJS2({
  29945. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module2) {
  29946. "use strict";
  29947. var bind = require_function_bind(), $apply = require_functionApply(), $call = require_functionCall(), $reflectApply = require_reflectApply();
  29948. module2.exports = $reflectApply || bind.call($call, $apply);
  29949. }
  29950. }), require_call_bind_apply_helpers = __commonJS2({
  29951. "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module2) {
  29952. "use strict";
  29953. var bind = require_function_bind(), $TypeError = require_type(), $call = require_functionCall(), $actualApply = require_actualApply();
  29954. module2.exports = function(args) {
  29955. if (args.length < 1 || typeof args[0] != "function")
  29956. throw new $TypeError("a function is required");
  29957. return $actualApply(bind, $call, args);
  29958. };
  29959. }
  29960. }), require_get = __commonJS2({
  29961. "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module2) {
  29962. "use strict";
  29963. var callBind = require_call_bind_apply_helpers(), gOPD = require_gopd(), hasProtoAccessor;
  29964. try {
  29965. hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
  29966. [].__proto__ === Array.prototype;
  29967. } catch (e) {
  29968. if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS")
  29969. throw e;
  29970. }
  29971. var desc = !!hasProtoAccessor && gOPD && gOPD(
  29972. Object.prototype,
  29973. /** @type {keyof typeof Object.prototype} */
  29974. "__proto__"
  29975. ), $Object = Object, $getPrototypeOf = $Object.getPrototypeOf;
  29976. module2.exports = desc && typeof desc.get == "function" ? callBind([desc.get]) : typeof $getPrototypeOf == "function" ? (
  29977. /** @type {import('./get')} */
  29978. (function(value) {
  29979. return $getPrototypeOf(value == null ? value : $Object(value));
  29980. })
  29981. ) : !1;
  29982. }
  29983. }), require_get_proto = __commonJS2({
  29984. "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module2) {
  29985. "use strict";
  29986. var reflectGetProto = require_Reflect_getPrototypeOf(), originalGetProto = require_Object_getPrototypeOf(), getDunderProto = require_get();
  29987. module2.exports = reflectGetProto ? function(O) {
  29988. return reflectGetProto(O);
  29989. } : originalGetProto ? function(O) {
  29990. if (!O || typeof O != "object" && typeof O != "function")
  29991. throw new TypeError("getProto: not an object");
  29992. return originalGetProto(O);
  29993. } : getDunderProto ? function(O) {
  29994. return getDunderProto(O);
  29995. } : null;
  29996. }
  29997. }), require_hasown = __commonJS2({
  29998. "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
  29999. "use strict";
  30000. var call2 = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind = require_function_bind();
  30001. module2.exports = bind.call(call2, $hasOwn);
  30002. }
  30003. }), require_get_intrinsic = __commonJS2({
  30004. "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module2) {
  30005. "use strict";
  30006. var undefined2, $Object = require_es_object_atoms(), $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range(), $ReferenceError = require_ref(), $SyntaxError = require_syntax(), $TypeError = require_type(), $URIError = require_uri(), abs2 = require_abs(), floor = require_floor(), max2 = require_max(), min2 = require_min(), pow = require_pow(), round3 = require_round(), sign = require_sign(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
  30007. try {
  30008. return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
  30009. } catch {
  30010. }
  30011. }, $gOPD = require_gopd(), $defineProperty = require_es_define_property(), throwTypeError = function() {
  30012. throw new $TypeError();
  30013. }, ThrowTypeError = $gOPD ? (function() {
  30014. try {
  30015. return arguments.callee, throwTypeError;
  30016. } catch {
  30017. try {
  30018. return $gOPD(arguments, "callee").get;
  30019. } catch {
  30020. return throwTypeError;
  30021. }
  30022. }
  30023. })() : throwTypeError, hasSymbols = require_has_symbols()(), getProto = require_get_proto(), $ObjectGPO = require_Object_getPrototypeOf(), $ReflectGPO = require_Reflect_getPrototypeOf(), $apply = require_functionApply(), $call = require_functionCall(), needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto ? undefined2 : getProto(Uint8Array), INTRINSICS = {
  30024. __proto__: null,
  30025. "%AggregateError%": typeof AggregateError > "u" ? undefined2 : AggregateError,
  30026. "%Array%": Array,
  30027. "%ArrayBuffer%": typeof ArrayBuffer > "u" ? undefined2 : ArrayBuffer,
  30028. "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
  30029. "%AsyncFromSyncIteratorPrototype%": undefined2,
  30030. "%AsyncFunction%": needsEval,
  30031. "%AsyncGenerator%": needsEval,
  30032. "%AsyncGeneratorFunction%": needsEval,
  30033. "%AsyncIteratorPrototype%": needsEval,
  30034. "%Atomics%": typeof Atomics > "u" ? undefined2 : Atomics,
  30035. "%BigInt%": typeof BigInt > "u" ? undefined2 : BigInt,
  30036. "%BigInt64Array%": typeof BigInt64Array > "u" ? undefined2 : BigInt64Array,
  30037. "%BigUint64Array%": typeof BigUint64Array > "u" ? undefined2 : BigUint64Array,
  30038. "%Boolean%": Boolean,
  30039. "%DataView%": typeof DataView > "u" ? undefined2 : DataView,
  30040. "%Date%": Date,
  30041. "%decodeURI%": decodeURI,
  30042. "%decodeURIComponent%": decodeURIComponent,
  30043. "%encodeURI%": encodeURI,
  30044. "%encodeURIComponent%": encodeURIComponent,
  30045. "%Error%": $Error,
  30046. "%eval%": eval,
  30047. // eslint-disable-line no-eval
  30048. "%EvalError%": $EvalError,
  30049. "%Float16Array%": typeof Float16Array > "u" ? undefined2 : Float16Array,
  30050. "%Float32Array%": typeof Float32Array > "u" ? undefined2 : Float32Array,
  30051. "%Float64Array%": typeof Float64Array > "u" ? undefined2 : Float64Array,
  30052. "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? undefined2 : FinalizationRegistry,
  30053. "%Function%": $Function,
  30054. "%GeneratorFunction%": needsEval,
  30055. "%Int8Array%": typeof Int8Array > "u" ? undefined2 : Int8Array,
  30056. "%Int16Array%": typeof Int16Array > "u" ? undefined2 : Int16Array,
  30057. "%Int32Array%": typeof Int32Array > "u" ? undefined2 : Int32Array,
  30058. "%isFinite%": isFinite,
  30059. "%isNaN%": isNaN,
  30060. "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
  30061. "%JSON%": typeof JSON == "object" ? JSON : undefined2,
  30062. "%Map%": typeof Map > "u" ? undefined2 : Map,
  30063. "%MapIteratorPrototype%": typeof Map > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  30064. "%Math%": Math,
  30065. "%Number%": Number,
  30066. "%Object%": $Object,
  30067. "%Object.getOwnPropertyDescriptor%": $gOPD,
  30068. "%parseFloat%": parseFloat,
  30069. "%parseInt%": parseInt,
  30070. "%Promise%": typeof Promise > "u" ? undefined2 : Promise,
  30071. "%Proxy%": typeof Proxy > "u" ? undefined2 : Proxy,
  30072. "%RangeError%": $RangeError,
  30073. "%ReferenceError%": $ReferenceError,
  30074. "%Reflect%": typeof Reflect > "u" ? undefined2 : Reflect,
  30075. "%RegExp%": RegExp,
  30076. "%Set%": typeof Set > "u" ? undefined2 : Set,
  30077. "%SetIteratorPrototype%": typeof Set > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  30078. "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? undefined2 : SharedArrayBuffer,
  30079. "%String%": String,
  30080. "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
  30081. "%Symbol%": hasSymbols ? Symbol : undefined2,
  30082. "%SyntaxError%": $SyntaxError,
  30083. "%ThrowTypeError%": ThrowTypeError,
  30084. "%TypedArray%": TypedArray,
  30085. "%TypeError%": $TypeError,
  30086. "%Uint8Array%": typeof Uint8Array > "u" ? undefined2 : Uint8Array,
  30087. "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? undefined2 : Uint8ClampedArray,
  30088. "%Uint16Array%": typeof Uint16Array > "u" ? undefined2 : Uint16Array,
  30089. "%Uint32Array%": typeof Uint32Array > "u" ? undefined2 : Uint32Array,
  30090. "%URIError%": $URIError,
  30091. "%WeakMap%": typeof WeakMap > "u" ? undefined2 : WeakMap,
  30092. "%WeakRef%": typeof WeakRef > "u" ? undefined2 : WeakRef,
  30093. "%WeakSet%": typeof WeakSet > "u" ? undefined2 : WeakSet,
  30094. "%Function.prototype.call%": $call,
  30095. "%Function.prototype.apply%": $apply,
  30096. "%Object.defineProperty%": $defineProperty,
  30097. "%Object.getPrototypeOf%": $ObjectGPO,
  30098. "%Math.abs%": abs2,
  30099. "%Math.floor%": floor,
  30100. "%Math.max%": max2,
  30101. "%Math.min%": min2,
  30102. "%Math.pow%": pow,
  30103. "%Math.round%": round3,
  30104. "%Math.sign%": sign,
  30105. "%Reflect.getPrototypeOf%": $ReflectGPO
  30106. };
  30107. if (getProto)
  30108. try {
  30109. null.error;
  30110. } catch (e) {
  30111. errorProto = getProto(getProto(e)), INTRINSICS["%Error.prototype%"] = errorProto;
  30112. }
  30113. var errorProto, doEval = function doEval2(name) {
  30114. var value;
  30115. if (name === "%AsyncFunction%")
  30116. value = getEvalledConstructor("async function () {}");
  30117. else if (name === "%GeneratorFunction%")
  30118. value = getEvalledConstructor("function* () {}");
  30119. else if (name === "%AsyncGeneratorFunction%")
  30120. value = getEvalledConstructor("async function* () {}");
  30121. else if (name === "%AsyncGenerator%") {
  30122. var fn4 = doEval2("%AsyncGeneratorFunction%");
  30123. fn4 && (value = fn4.prototype);
  30124. } else if (name === "%AsyncIteratorPrototype%") {
  30125. var gen = doEval2("%AsyncGenerator%");
  30126. gen && getProto && (value = getProto(gen.prototype));
  30127. }
  30128. return INTRINSICS[name] = value, value;
  30129. }, LEGACY_ALIASES = {
  30130. __proto__: null,
  30131. "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
  30132. "%ArrayPrototype%": ["Array", "prototype"],
  30133. "%ArrayProto_entries%": ["Array", "prototype", "entries"],
  30134. "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
  30135. "%ArrayProto_keys%": ["Array", "prototype", "keys"],
  30136. "%ArrayProto_values%": ["Array", "prototype", "values"],
  30137. "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
  30138. "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
  30139. "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
  30140. "%BooleanPrototype%": ["Boolean", "prototype"],
  30141. "%DataViewPrototype%": ["DataView", "prototype"],
  30142. "%DatePrototype%": ["Date", "prototype"],
  30143. "%ErrorPrototype%": ["Error", "prototype"],
  30144. "%EvalErrorPrototype%": ["EvalError", "prototype"],
  30145. "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
  30146. "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
  30147. "%FunctionPrototype%": ["Function", "prototype"],
  30148. "%Generator%": ["GeneratorFunction", "prototype"],
  30149. "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
  30150. "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
  30151. "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
  30152. "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
  30153. "%JSONParse%": ["JSON", "parse"],
  30154. "%JSONStringify%": ["JSON", "stringify"],
  30155. "%MapPrototype%": ["Map", "prototype"],
  30156. "%NumberPrototype%": ["Number", "prototype"],
  30157. "%ObjectPrototype%": ["Object", "prototype"],
  30158. "%ObjProto_toString%": ["Object", "prototype", "toString"],
  30159. "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
  30160. "%PromisePrototype%": ["Promise", "prototype"],
  30161. "%PromiseProto_then%": ["Promise", "prototype", "then"],
  30162. "%Promise_all%": ["Promise", "all"],
  30163. "%Promise_reject%": ["Promise", "reject"],
  30164. "%Promise_resolve%": ["Promise", "resolve"],
  30165. "%RangeErrorPrototype%": ["RangeError", "prototype"],
  30166. "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
  30167. "%RegExpPrototype%": ["RegExp", "prototype"],
  30168. "%SetPrototype%": ["Set", "prototype"],
  30169. "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
  30170. "%StringPrototype%": ["String", "prototype"],
  30171. "%SymbolPrototype%": ["Symbol", "prototype"],
  30172. "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
  30173. "%TypedArrayPrototype%": ["TypedArray", "prototype"],
  30174. "%TypeErrorPrototype%": ["TypeError", "prototype"],
  30175. "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
  30176. "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
  30177. "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
  30178. "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
  30179. "%URIErrorPrototype%": ["URIError", "prototype"],
  30180. "%WeakMapPrototype%": ["WeakMap", "prototype"],
  30181. "%WeakSetPrototype%": ["WeakSet", "prototype"]
  30182. }, bind = require_function_bind(), hasOwn2 = require_hasown(), $concat = bind.call($call, Array.prototype.concat), $spliceApply = bind.call($apply, Array.prototype.splice), $replace = bind.call($call, String.prototype.replace), $strSlice = bind.call($call, String.prototype.slice), $exec = bind.call($call, RegExp.prototype.exec), rePropName2 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, reEscapeChar2 = /\\(\\)?/g, stringToPath2 = function(string) {
  30183. var first = $strSlice(string, 0, 1), last2 = $strSlice(string, -1);
  30184. if (first === "%" && last2 !== "%")
  30185. throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
  30186. if (last2 === "%" && first !== "%")
  30187. throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
  30188. var result = [];
  30189. return $replace(string, rePropName2, function(match3, number, quote, subString) {
  30190. result[result.length] = quote ? $replace(subString, reEscapeChar2, "$1") : number || match3;
  30191. }), result;
  30192. }, getBaseIntrinsic = function(name, allowMissing) {
  30193. var intrinsicName = name, alias;
  30194. if (hasOwn2(LEGACY_ALIASES, intrinsicName) && (alias = LEGACY_ALIASES[intrinsicName], intrinsicName = "%" + alias[0] + "%"), hasOwn2(INTRINSICS, intrinsicName)) {
  30195. var value = INTRINSICS[intrinsicName];
  30196. if (value === needsEval && (value = doEval(intrinsicName)), typeof value > "u" && !allowMissing)
  30197. throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
  30198. return {
  30199. alias,
  30200. name: intrinsicName,
  30201. value
  30202. };
  30203. }
  30204. throw new $SyntaxError("intrinsic " + name + " does not exist!");
  30205. };
  30206. module2.exports = function(name, allowMissing) {
  30207. if (typeof name != "string" || name.length === 0)
  30208. throw new $TypeError("intrinsic name must be a non-empty string");
  30209. if (arguments.length > 1 && typeof allowMissing != "boolean")
  30210. throw new $TypeError('"allowMissing" argument must be a boolean');
  30211. if ($exec(/^%?[^%]*%?$/, name) === null)
  30212. throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  30213. var parts = stringToPath2(name), intrinsicBaseName = parts.length > 0 ? parts[0] : "", intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing), intrinsicRealName = intrinsic.name, value = intrinsic.value, skipFurtherCaching = !1, alias = intrinsic.alias;
  30214. alias && (intrinsicBaseName = alias[0], $spliceApply(parts, $concat([0, 1], alias)));
  30215. for (var i = 1, isOwn = !0; i < parts.length; i += 1) {
  30216. var part = parts[i], first = $strSlice(part, 0, 1), last2 = $strSlice(part, -1);
  30217. if ((first === '"' || first === "'" || first === "`" || last2 === '"' || last2 === "'" || last2 === "`") && first !== last2)
  30218. throw new $SyntaxError("property names with quotes must have matching quotes");
  30219. if ((part === "constructor" || !isOwn) && (skipFurtherCaching = !0), intrinsicBaseName += "." + part, intrinsicRealName = "%" + intrinsicBaseName + "%", hasOwn2(INTRINSICS, intrinsicRealName))
  30220. value = INTRINSICS[intrinsicRealName];
  30221. else if (value != null) {
  30222. if (!(part in value)) {
  30223. if (!allowMissing)
  30224. throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
  30225. return;
  30226. }
  30227. if ($gOPD && i + 1 >= parts.length) {
  30228. var desc = $gOPD(value, part);
  30229. isOwn = !!desc, isOwn && "get" in desc && !("originalValue" in desc.get) ? value = desc.get : value = value[part];
  30230. } else
  30231. isOwn = hasOwn2(value, part), value = value[part];
  30232. isOwn && !skipFurtherCaching && (INTRINSICS[intrinsicRealName] = value);
  30233. }
  30234. }
  30235. return value;
  30236. };
  30237. }
  30238. }), require_call_bound = __commonJS2({
  30239. "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports, module2) {
  30240. "use strict";
  30241. var GetIntrinsic = require_get_intrinsic(), callBindBasic = require_call_bind_apply_helpers(), $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
  30242. module2.exports = function(name, allowMissing) {
  30243. var intrinsic = (
  30244. /** @type {(this: unknown, ...args: unknown[]) => unknown} */
  30245. GetIntrinsic(name, !!allowMissing)
  30246. );
  30247. return typeof intrinsic == "function" && $indexOf(name, ".prototype.") > -1 ? callBindBasic(
  30248. /** @type {const} */
  30249. [intrinsic]
  30250. ) : intrinsic;
  30251. };
  30252. }
  30253. }), require_shams2 = __commonJS2({
  30254. "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module2) {
  30255. "use strict";
  30256. var hasSymbols = require_shams();
  30257. module2.exports = function() {
  30258. return hasSymbols() && !!Symbol.toStringTag;
  30259. };
  30260. }
  30261. }), require_is_regex = __commonJS2({
  30262. "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(exports, module2) {
  30263. "use strict";
  30264. var callBound = require_call_bound(), hasToStringTag = require_shams2()(), hasOwn2 = require_hasown(), gOPD = require_gopd(), fn4;
  30265. hasToStringTag ? ($exec = callBound("RegExp.prototype.exec"), isRegexMarker = {}, throwRegexMarker = function() {
  30266. throw isRegexMarker;
  30267. }, badStringifier = {
  30268. toString: throwRegexMarker,
  30269. valueOf: throwRegexMarker
  30270. }, typeof Symbol.toPrimitive == "symbol" && (badStringifier[Symbol.toPrimitive] = throwRegexMarker), fn4 = function(value) {
  30271. if (!value || typeof value != "object")
  30272. return !1;
  30273. var descriptor = (
  30274. /** @type {NonNullable<typeof gOPD>} */
  30275. gOPD(
  30276. /** @type {{ lastIndex?: unknown }} */
  30277. value,
  30278. "lastIndex"
  30279. )
  30280. ), hasLastIndexDataProperty = descriptor && hasOwn2(descriptor, "value");
  30281. if (!hasLastIndexDataProperty)
  30282. return !1;
  30283. try {
  30284. $exec(
  30285. value,
  30286. /** @type {string} */
  30287. /** @type {unknown} */
  30288. badStringifier
  30289. );
  30290. } catch (e) {
  30291. return e === isRegexMarker;
  30292. }
  30293. }) : ($toString = callBound("Object.prototype.toString"), regexClass = "[object RegExp]", fn4 = function(value) {
  30294. return !value || typeof value != "object" && typeof value != "function" ? !1 : $toString(value) === regexClass;
  30295. });
  30296. var $exec, isRegexMarker, throwRegexMarker, badStringifier, $toString, regexClass;
  30297. module2.exports = fn4;
  30298. }
  30299. }), require_is_function = __commonJS2({
  30300. "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(exports, module2) {
  30301. module2.exports = isFunction32;
  30302. var toString22 = Object.prototype.toString;
  30303. function isFunction32(fn4) {
  30304. if (!fn4)
  30305. return !1;
  30306. var string = toString22.call(fn4);
  30307. return string === "[object Function]" || typeof fn4 == "function" && string !== "[object RegExp]" || typeof window < "u" && // IE8 and below
  30308. (fn4 === window.setTimeout || fn4 === window.alert || fn4 === window.confirm || fn4 === window.prompt);
  30309. }
  30310. }
  30311. }), require_safe_regex_test = __commonJS2({
  30312. "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(exports, module2) {
  30313. "use strict";
  30314. var callBound = require_call_bound(), isRegex = require_is_regex(), $exec = callBound("RegExp.prototype.exec"), $TypeError = require_type();
  30315. module2.exports = function(regex) {
  30316. if (!isRegex(regex))
  30317. throw new $TypeError("`regex` must be a RegExp");
  30318. return function(s3) {
  30319. return $exec(regex, s3) !== null;
  30320. };
  30321. };
  30322. }
  30323. }), require_is_symbol = __commonJS2({
  30324. "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(exports, module2) {
  30325. "use strict";
  30326. var callBound = require_call_bound(), $toString = callBound("Object.prototype.toString"), hasSymbols = require_has_symbols()(), safeRegexTest = require_safe_regex_test();
  30327. hasSymbols ? ($symToStr = callBound("Symbol.prototype.toString"), isSymString = safeRegexTest(/^Symbol\(.*\)$/), isSymbolObject = function(value) {
  30328. return typeof value.valueOf() != "symbol" ? !1 : isSymString($symToStr(value));
  30329. }, module2.exports = function(value) {
  30330. if (typeof value == "symbol")
  30331. return !0;
  30332. if (!value || typeof value != "object" || $toString(value) !== "[object Symbol]")
  30333. return !1;
  30334. try {
  30335. return isSymbolObject(value);
  30336. } catch {
  30337. return !1;
  30338. }
  30339. }) : module2.exports = function(value) {
  30340. return !1;
  30341. };
  30342. var $symToStr, isSymString, isSymbolObject;
  30343. }
  30344. }), import_is_regex = __toESM2(require_is_regex()), import_is_function = __toESM2(require_is_function()), import_is_symbol = __toESM2(require_is_symbol());
  30345. function isObject(val) {
  30346. return val != null && typeof val == "object" && Array.isArray(val) === !1;
  30347. }
  30348. var freeGlobal = typeof global == "object" && global && global.Object === Object && global, freeGlobal_default = freeGlobal, freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal_default || freeSelf || Function("return this")(), root_default = root, Symbol2 = root_default.Symbol, Symbol_default = Symbol2, objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
  30349. function getRawTag(value) {
  30350. var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
  30351. try {
  30352. value[symToStringTag] = void 0;
  30353. var unmasked = !0;
  30354. } catch {
  30355. }
  30356. var result = nativeObjectToString.call(value);
  30357. return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), result;
  30358. }
  30359. var getRawTag_default = getRawTag, objectProto2 = Object.prototype, nativeObjectToString2 = objectProto2.toString;
  30360. function objectToString(value) {
  30361. return nativeObjectToString2.call(value);
  30362. }
  30363. var objectToString_default = objectToString, nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
  30364. function baseGetTag(value) {
  30365. return value == null ? value === void 0 ? undefinedTag : nullTag : symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
  30366. }
  30367. var baseGetTag_default = baseGetTag;
  30368. function isObjectLike(value) {
  30369. return value != null && typeof value == "object";
  30370. }
  30371. var isObjectLike_default = isObjectLike, symbolTag = "[object Symbol]";
  30372. function isSymbol(value) {
  30373. return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
  30374. }
  30375. var isSymbol_default = isSymbol;
  30376. function arrayMap(array, iteratee) {
  30377. for (var index4 = -1, length2 = array == null ? 0 : array.length, result = Array(length2); ++index4 < length2; )
  30378. result[index4] = iteratee(array[index4], index4, array);
  30379. return result;
  30380. }
  30381. var arrayMap_default = arrayMap, isArray = Array.isArray, isArray_default = isArray, INFINITY = 1 / 0, symbolProto = Symbol_default ? Symbol_default.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
  30382. function baseToString(value) {
  30383. if (typeof value == "string")
  30384. return value;
  30385. if (isArray_default(value))
  30386. return arrayMap_default(value, baseToString) + "";
  30387. if (isSymbol_default(value))
  30388. return symbolToString ? symbolToString.call(value) : "";
  30389. var result = value + "";
  30390. return result == "0" && 1 / value == -INFINITY ? "-0" : result;
  30391. }
  30392. var baseToString_default = baseToString;
  30393. function isObject2(value) {
  30394. var type5 = typeof value;
  30395. return value != null && (type5 == "object" || type5 == "function");
  30396. }
  30397. var isObject_default = isObject2, asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
  30398. function isFunction(value) {
  30399. if (!isObject_default(value))
  30400. return !1;
  30401. var tag = baseGetTag_default(value);
  30402. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  30403. }
  30404. var isFunction_default = isFunction, coreJsData = root_default["__core-js_shared__"], coreJsData_default = coreJsData, maskSrcKey = (function() {
  30405. var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
  30406. return uid ? "Symbol(src)_1." + uid : "";
  30407. })();
  30408. function isMasked(func) {
  30409. return !!maskSrcKey && maskSrcKey in func;
  30410. }
  30411. var isMasked_default = isMasked, funcProto = Function.prototype, funcToString = funcProto.toString;
  30412. function toSource(func) {
  30413. if (func != null) {
  30414. try {
  30415. return funcToString.call(func);
  30416. } catch {
  30417. }
  30418. try {
  30419. return func + "";
  30420. } catch {
  30421. }
  30422. }
  30423. return "";
  30424. }
  30425. var toSource_default = toSource, reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto2 = Function.prototype, objectProto3 = Object.prototype, funcToString2 = funcProto2.toString, hasOwnProperty2 = objectProto3.hasOwnProperty, reIsNative = RegExp(
  30426. "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  30427. );
  30428. function baseIsNative(value) {
  30429. if (!isObject_default(value) || isMasked_default(value))
  30430. return !1;
  30431. var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
  30432. return pattern.test(toSource_default(value));
  30433. }
  30434. var baseIsNative_default = baseIsNative;
  30435. function getValue(object, key) {
  30436. return object?.[key];
  30437. }
  30438. var getValue_default = getValue;
  30439. function getNative(object, key) {
  30440. var value = getValue_default(object, key);
  30441. return baseIsNative_default(value) ? value : void 0;
  30442. }
  30443. var getNative_default = getNative;
  30444. function eq(value, other) {
  30445. return value === other || value !== value && other !== other;
  30446. }
  30447. var eq_default = eq, reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
  30448. function isKey(value, object) {
  30449. if (isArray_default(value))
  30450. return !1;
  30451. var type5 = typeof value;
  30452. return type5 == "number" || type5 == "symbol" || type5 == "boolean" || value == null || isSymbol_default(value) ? !0 : reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
  30453. }
  30454. var isKey_default = isKey, nativeCreate = getNative_default(Object, "create"), nativeCreate_default = nativeCreate;
  30455. function hashClear() {
  30456. this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}, this.size = 0;
  30457. }
  30458. var hashClear_default = hashClear;
  30459. function hashDelete(key) {
  30460. var result = this.has(key) && delete this.__data__[key];
  30461. return this.size -= result ? 1 : 0, result;
  30462. }
  30463. var hashDelete_default = hashDelete, HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto4 = Object.prototype, hasOwnProperty3 = objectProto4.hasOwnProperty;
  30464. function hashGet(key) {
  30465. var data = this.__data__;
  30466. if (nativeCreate_default) {
  30467. var result = data[key];
  30468. return result === HASH_UNDEFINED ? void 0 : result;
  30469. }
  30470. return hasOwnProperty3.call(data, key) ? data[key] : void 0;
  30471. }
  30472. var hashGet_default = hashGet, objectProto5 = Object.prototype, hasOwnProperty4 = objectProto5.hasOwnProperty;
  30473. function hashHas(key) {
  30474. var data = this.__data__;
  30475. return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty4.call(data, key);
  30476. }
  30477. var hashHas_default = hashHas, HASH_UNDEFINED2 = "__lodash_hash_undefined__";
  30478. function hashSet(key, value) {
  30479. var data = this.__data__;
  30480. return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value, this;
  30481. }
  30482. var hashSet_default = hashSet;
  30483. function Hash(entries) {
  30484. var index4 = -1, length2 = entries == null ? 0 : entries.length;
  30485. for (this.clear(); ++index4 < length2; ) {
  30486. var entry = entries[index4];
  30487. this.set(entry[0], entry[1]);
  30488. }
  30489. }
  30490. Hash.prototype.clear = hashClear_default;
  30491. Hash.prototype.delete = hashDelete_default;
  30492. Hash.prototype.get = hashGet_default;
  30493. Hash.prototype.has = hashHas_default;
  30494. Hash.prototype.set = hashSet_default;
  30495. var Hash_default = Hash;
  30496. function listCacheClear() {
  30497. this.__data__ = [], this.size = 0;
  30498. }
  30499. var listCacheClear_default = listCacheClear;
  30500. function assocIndexOf(array, key) {
  30501. for (var length2 = array.length; length2--; )
  30502. if (eq_default(array[length2][0], key))
  30503. return length2;
  30504. return -1;
  30505. }
  30506. var assocIndexOf_default = assocIndexOf, arrayProto = Array.prototype, splice = arrayProto.splice;
  30507. function listCacheDelete(key) {
  30508. var data = this.__data__, index4 = assocIndexOf_default(data, key);
  30509. if (index4 < 0)
  30510. return !1;
  30511. var lastIndex = data.length - 1;
  30512. return index4 == lastIndex ? data.pop() : splice.call(data, index4, 1), --this.size, !0;
  30513. }
  30514. var listCacheDelete_default = listCacheDelete;
  30515. function listCacheGet(key) {
  30516. var data = this.__data__, index4 = assocIndexOf_default(data, key);
  30517. return index4 < 0 ? void 0 : data[index4][1];
  30518. }
  30519. var listCacheGet_default = listCacheGet;
  30520. function listCacheHas(key) {
  30521. return assocIndexOf_default(this.__data__, key) > -1;
  30522. }
  30523. var listCacheHas_default = listCacheHas;
  30524. function listCacheSet(key, value) {
  30525. var data = this.__data__, index4 = assocIndexOf_default(data, key);
  30526. return index4 < 0 ? (++this.size, data.push([key, value])) : data[index4][1] = value, this;
  30527. }
  30528. var listCacheSet_default = listCacheSet;
  30529. function ListCache(entries) {
  30530. var index4 = -1, length2 = entries == null ? 0 : entries.length;
  30531. for (this.clear(); ++index4 < length2; ) {
  30532. var entry = entries[index4];
  30533. this.set(entry[0], entry[1]);
  30534. }
  30535. }
  30536. ListCache.prototype.clear = listCacheClear_default;
  30537. ListCache.prototype.delete = listCacheDelete_default;
  30538. ListCache.prototype.get = listCacheGet_default;
  30539. ListCache.prototype.has = listCacheHas_default;
  30540. ListCache.prototype.set = listCacheSet_default;
  30541. var ListCache_default = ListCache, Map2 = getNative_default(root_default, "Map"), Map_default = Map2;
  30542. function mapCacheClear() {
  30543. this.size = 0, this.__data__ = {
  30544. hash: new Hash_default(),
  30545. map: new (Map_default || ListCache_default)(),
  30546. string: new Hash_default()
  30547. };
  30548. }
  30549. var mapCacheClear_default = mapCacheClear;
  30550. function isKeyable(value) {
  30551. var type5 = typeof value;
  30552. return type5 == "string" || type5 == "number" || type5 == "symbol" || type5 == "boolean" ? value !== "__proto__" : value === null;
  30553. }
  30554. var isKeyable_default = isKeyable;
  30555. function getMapData(map2, key) {
  30556. var data = map2.__data__;
  30557. return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
  30558. }
  30559. var getMapData_default = getMapData;
  30560. function mapCacheDelete(key) {
  30561. var result = getMapData_default(this, key).delete(key);
  30562. return this.size -= result ? 1 : 0, result;
  30563. }
  30564. var mapCacheDelete_default = mapCacheDelete;
  30565. function mapCacheGet(key) {
  30566. return getMapData_default(this, key).get(key);
  30567. }
  30568. var mapCacheGet_default = mapCacheGet;
  30569. function mapCacheHas(key) {
  30570. return getMapData_default(this, key).has(key);
  30571. }
  30572. var mapCacheHas_default = mapCacheHas;
  30573. function mapCacheSet(key, value) {
  30574. var data = getMapData_default(this, key), size = data.size;
  30575. return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
  30576. }
  30577. var mapCacheSet_default = mapCacheSet;
  30578. function MapCache(entries) {
  30579. var index4 = -1, length2 = entries == null ? 0 : entries.length;
  30580. for (this.clear(); ++index4 < length2; ) {
  30581. var entry = entries[index4];
  30582. this.set(entry[0], entry[1]);
  30583. }
  30584. }
  30585. MapCache.prototype.clear = mapCacheClear_default;
  30586. MapCache.prototype.delete = mapCacheDelete_default;
  30587. MapCache.prototype.get = mapCacheGet_default;
  30588. MapCache.prototype.has = mapCacheHas_default;
  30589. MapCache.prototype.set = mapCacheSet_default;
  30590. var MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function";
  30591. function memoize(func, resolver) {
  30592. if (typeof func != "function" || resolver != null && typeof resolver != "function")
  30593. throw new TypeError(FUNC_ERROR_TEXT);
  30594. var memoized = function() {
  30595. var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
  30596. if (cache.has(key))
  30597. return cache.get(key);
  30598. var result = func.apply(this, args);
  30599. return memoized.cache = cache.set(key, result) || cache, result;
  30600. };
  30601. return memoized.cache = new (memoize.Cache || MapCache_default)(), memoized;
  30602. }
  30603. memoize.Cache = MapCache_default;
  30604. var memoize_default = memoize, MAX_MEMOIZE_SIZE = 500;
  30605. function memoizeCapped(func) {
  30606. var result = memoize_default(func, function(key) {
  30607. return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key;
  30608. }), cache = result.cache;
  30609. return result;
  30610. }
  30611. var memoizeCapped_default = memoizeCapped, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped_default(function(string) {
  30612. var result = [];
  30613. return string.charCodeAt(0) === 46 && result.push(""), string.replace(rePropName, function(match3, number, quote, subString) {
  30614. result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match3);
  30615. }), result;
  30616. }), stringToPath_default = stringToPath;
  30617. function toString(value) {
  30618. return value == null ? "" : baseToString_default(value);
  30619. }
  30620. var toString_default = toString;
  30621. function castPath(value, object) {
  30622. return isArray_default(value) ? value : isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value));
  30623. }
  30624. var castPath_default = castPath, INFINITY2 = 1 / 0;
  30625. function toKey(value) {
  30626. if (typeof value == "string" || isSymbol_default(value))
  30627. return value;
  30628. var result = value + "";
  30629. return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
  30630. }
  30631. var toKey_default = toKey;
  30632. function baseGet(object, path) {
  30633. path = castPath_default(path, object);
  30634. for (var index4 = 0, length2 = path.length; object != null && index4 < length2; )
  30635. object = object[toKey_default(path[index4++])];
  30636. return index4 && index4 == length2 ? object : void 0;
  30637. }
  30638. var baseGet_default = baseGet;
  30639. function get(object, path, defaultValue) {
  30640. var result = object == null ? void 0 : baseGet_default(object, path);
  30641. return result === void 0 ? defaultValue : result;
  30642. }
  30643. var get_default = get, isObject3 = isObject, dateFormat = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, isJSON = (input2) => input2.match(/^[\[\{\"\}].*[\]\}\"]$/);
  30644. function convertUnconventionalData(data) {
  30645. if (!isObject3(data))
  30646. return data;
  30647. let result = data, wasMutated = !1;
  30648. return typeof Event < "u" && data instanceof Event && (result = extractEventHiddenProperties(result), wasMutated = !0), result = Object.keys(result).reduce((acc, key) => {
  30649. try {
  30650. result[key] && result[key].toJSON, acc[key] = result[key];
  30651. } catch {
  30652. wasMutated = !0;
  30653. }
  30654. return acc;
  30655. }, {}), wasMutated ? result : data;
  30656. }
  30657. var replacer = function(options) {
  30658. let objects, map2, stack, keys3;
  30659. return function(key, value) {
  30660. try {
  30661. if (key === "")
  30662. return keys3 = [], objects = /* @__PURE__ */ new Map([[value, "[]"]]), map2 = /* @__PURE__ */ new Map(), stack = [], value;
  30663. let origin = map2.get(this) || this;
  30664. for (; stack.length && origin !== stack[0]; )
  30665. stack.shift(), keys3.pop();
  30666. if (typeof value == "boolean")
  30667. return value;
  30668. if (value === void 0)
  30669. return options.allowUndefined ? "_undefined_" : void 0;
  30670. if (value === null)
  30671. return null;
  30672. if (typeof value == "number")
  30673. return value === Number.NEGATIVE_INFINITY ? "_-Infinity_" : value === Number.POSITIVE_INFINITY ? "_Infinity_" : Number.isNaN(value) ? "_NaN_" : value;
  30674. if (typeof value == "bigint")
  30675. return `_bigint_${value.toString()}`;
  30676. if (typeof value == "string")
  30677. return dateFormat.test(value) ? options.allowDate ? `_date_${value}` : void 0 : value;
  30678. if ((0, import_is_regex.default)(value))
  30679. return options.allowRegExp ? `_regexp_${value.flags}|${value.source}` : void 0;
  30680. if ((0, import_is_function.default)(value))
  30681. return;
  30682. if ((0, import_is_symbol.default)(value)) {
  30683. if (!options.allowSymbol)
  30684. return;
  30685. let globalRegistryKey = Symbol.keyFor(value);
  30686. return globalRegistryKey !== void 0 ? `_gsymbol_${globalRegistryKey}` : `_symbol_${value.toString().slice(7, -1)}`;
  30687. }
  30688. if (stack.length >= options.maxDepth)
  30689. return Array.isArray(value) ? `[Array(${value.length})]` : "[Object]";
  30690. if (value === this)
  30691. return `_duplicate_${JSON.stringify(keys3)}`;
  30692. if (value instanceof Error && options.allowError)
  30693. return {
  30694. __isConvertedError__: !0,
  30695. errorProperties: {
  30696. // @ts-expect-error cause is not defined in the current tsconfig target(es2020)
  30697. ...value.cause ? { cause: value.cause } : {},
  30698. ...value,
  30699. name: value.name,
  30700. message: value.message,
  30701. stack: value.stack,
  30702. "_constructor-name_": value.constructor.name
  30703. }
  30704. };
  30705. if (value?.constructor?.name && value.constructor.name !== "Object" && !Array.isArray(value)) {
  30706. let found2 = objects.get(value);
  30707. if (!found2) {
  30708. let plainObject = {
  30709. __isClassInstance__: !0,
  30710. __className__: value.constructor.name,
  30711. ...Object.getOwnPropertyNames(value).reduce(
  30712. (acc, prop) => {
  30713. try {
  30714. acc[prop] = value[prop];
  30715. } catch {
  30716. }
  30717. return acc;
  30718. },
  30719. {}
  30720. )
  30721. };
  30722. return keys3.push(key), stack.unshift(plainObject), objects.set(value, JSON.stringify(keys3)), value !== plainObject && map2.set(value, plainObject), plainObject;
  30723. }
  30724. return `_duplicate_${found2}`;
  30725. }
  30726. let found = objects.get(value);
  30727. if (!found) {
  30728. let converted = Array.isArray(value) ? value : convertUnconventionalData(value);
  30729. return keys3.push(key), stack.unshift(converted), objects.set(value, JSON.stringify(keys3)), value !== converted && map2.set(value, converted), converted;
  30730. }
  30731. return `_duplicate_${found}`;
  30732. } catch {
  30733. return;
  30734. }
  30735. };
  30736. }, reviver = function(options) {
  30737. let refs = [], root2;
  30738. return function(key, value) {
  30739. if (key === "" && (root2 = value, refs.forEach(({ target, container, replacement }) => {
  30740. let replacementArr = isJSON(replacement) ? JSON.parse(replacement) : replacement.split(".");
  30741. replacementArr.length === 0 ? container[target] = root2 : container[target] = get_default(root2, replacementArr);
  30742. })), key === "_constructor-name_")
  30743. return value;
  30744. if (isObject3(value) && value.__isConvertedError__) {
  30745. let { message, ...properties } = value.errorProperties, error = new Error(message);
  30746. return Object.assign(error, properties), error;
  30747. }
  30748. if (typeof value == "string" && value.startsWith("_regexp_") && options.allowRegExp) {
  30749. let [, flags, source] = value.match(/_regexp_([^|]*)\|(.*)/) || [];
  30750. return new RegExp(source, flags);
  30751. }
  30752. return typeof value == "string" && value.startsWith("_date_") && options.allowDate ? new Date(value.replace("_date_", "")) : typeof value == "string" && value.startsWith("_duplicate_") ? (refs.push({ target: key, container: this, replacement: value.replace(/^_duplicate_/, "") }), null) : typeof value == "string" && value.startsWith("_symbol_") && options.allowSymbol ? Symbol(value.replace("_symbol_", "")) : typeof value == "string" && value.startsWith("_gsymbol_") && options.allowSymbol ? Symbol.for(value.replace("_gsymbol_", "")) : typeof value == "string" && value === "_-Infinity_" ? Number.NEGATIVE_INFINITY : typeof value == "string" && value === "_Infinity_" ? Number.POSITIVE_INFINITY : typeof value == "string" && value === "_NaN_" ? Number.NaN : typeof value == "string" && value.startsWith("_bigint_") && typeof BigInt == "function" ? BigInt(value.replace("_bigint_", "")) : value;
  30753. };
  30754. }, defaultOptions = {
  30755. maxDepth: 10,
  30756. space: void 0,
  30757. allowRegExp: !0,
  30758. allowDate: !0,
  30759. allowError: !0,
  30760. allowUndefined: !0,
  30761. allowSymbol: !0
  30762. }, stringify = (data, options = {}) => {
  30763. let mergedOptions = { ...defaultOptions, ...options };
  30764. return JSON.stringify(convertUnconventionalData(data), replacer(mergedOptions), options.space);
  30765. }, mutator = () => {
  30766. let mutated = /* @__PURE__ */ new Map();
  30767. return function mutateUndefined(value) {
  30768. isObject3(value) && Object.entries(value).forEach(([k, v]) => {
  30769. v === "_undefined_" ? value[k] = void 0 : mutated.get(v) || (mutated.set(v, !0), mutateUndefined(v));
  30770. }), Array.isArray(value) && value.forEach((v, index4) => {
  30771. v === "_undefined_" ? (mutated.set(v, !0), value[index4] = void 0) : mutated.get(v) || (mutated.set(v, !0), mutateUndefined(v));
  30772. });
  30773. };
  30774. }, parse = (data, options = {}) => {
  30775. let mergedOptions = { ...defaultOptions, ...options }, result = JSON.parse(data, reviver(mergedOptions));
  30776. return mutator()(result), result;
  30777. };
  30778. // ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
  30779. var isProduction = !0, prefix = "Invariant failed";
  30780. function invariant(condition, message) {
  30781. if (!condition) {
  30782. if (isProduction)
  30783. throw new Error(prefix);
  30784. var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
  30785. throw new Error(value);
  30786. }
  30787. }
  30788. // src/channels/postmessage/getEventSourceUrl.ts
  30789. init_client_logger();
  30790. var pickFrameByRefId = (candidates, refId) => {
  30791. if (candidates.length === 1)
  30792. return candidates[0];
  30793. if (!(candidates.length === 0 || !refId))
  30794. return candidates.find(
  30795. (el) => (el.getAttribute("src") ?? "").includes(`refId=${encodeURIComponent(refId)}`)
  30796. );
  30797. }, getEventSourceUrl = (event, refId) => {
  30798. let candidates = Array.from(
  30799. document.querySelectorAll("iframe[data-is-storybook]")
  30800. ).filter((element) => {
  30801. try {
  30802. return element.contentWindow?.location.origin === event.source.location.origin && element.contentWindow?.location.pathname === event.source.location.pathname;
  30803. } catch {
  30804. }
  30805. try {
  30806. return element.contentWindow === event.source;
  30807. } catch {
  30808. }
  30809. let src2 = element.getAttribute("src"), origin;
  30810. try {
  30811. if (!src2)
  30812. return !1;
  30813. ({ origin } = new URL(src2, document.location.toString()));
  30814. } catch {
  30815. return !1;
  30816. }
  30817. return origin === event.origin;
  30818. }), src = pickFrameByRefId(candidates, refId)?.getAttribute("src");
  30819. if (src) {
  30820. let { protocol, host, pathname } = new URL(src, document.location.toString());
  30821. return `${protocol}//${host}${pathname}`;
  30822. }
  30823. return candidates.length > 1 && logger.error("found multiple candidates for event source"), null;
  30824. };
  30825. // src/channels/postmessage/index.ts
  30826. var { document: document2, location: location2 } = scope, KEY = "storybook-channel", defaultEventOptions = { maxDepth: 25 }, PostMessageTransport = class {
  30827. constructor(config4) {
  30828. this.config = config4;
  30829. this.connected = !1;
  30830. if (this.buffer = [], typeof scope?.addEventListener == "function" && scope.addEventListener("message", this.handleEvent.bind(this), !1), config4.page !== "manager" && config4.page !== "preview")
  30831. throw new Error(`postmsg-channel: "config.page" cannot be "${config4.page}"`);
  30832. }
  30833. setHandler(handler) {
  30834. this.handler = (...args) => {
  30835. handler.apply(this, args), !this.connected && this.getLocalFrame().length && (this.flush(), this.connected = !0);
  30836. };
  30837. }
  30838. /**
  30839. * Sends `event` to the associated window. If the window does not yet exist the event will be
  30840. * stored in a buffer and sent when the window exists.
  30841. *
  30842. * @param event
  30843. */
  30844. send(event, options) {
  30845. let {
  30846. target,
  30847. // telejson options
  30848. allowRegExp,
  30849. allowSymbol,
  30850. allowDate,
  30851. allowError,
  30852. allowUndefined,
  30853. maxDepth,
  30854. space
  30855. } = options || {}, eventOptions = Object.fromEntries(
  30856. Object.entries({
  30857. allowRegExp,
  30858. allowSymbol,
  30859. allowDate,
  30860. allowError,
  30861. allowUndefined,
  30862. maxDepth,
  30863. space
  30864. }).filter(([k, v]) => typeof v < "u")
  30865. ), stringifyOptions = {
  30866. ...defaultEventOptions,
  30867. ...scope.CHANNEL_OPTIONS || {},
  30868. ...eventOptions
  30869. }, frames = this.getFrames(target), query = new URLSearchParams(location2?.search || ""), data = stringify(
  30870. {
  30871. key: KEY,
  30872. event,
  30873. refId: query.get("refId")
  30874. },
  30875. stringifyOptions
  30876. );
  30877. return frames.length ? (this.buffer.length && this.flush(), frames.forEach((f4) => {
  30878. try {
  30879. f4.postMessage(data, "*");
  30880. } catch {
  30881. logger.error("sending over postmessage fail");
  30882. }
  30883. }), Promise.resolve(null)) : new Promise((resolve, reject) => {
  30884. this.buffer.push({ event, resolve, reject });
  30885. });
  30886. }
  30887. flush() {
  30888. let { buffer } = this;
  30889. this.buffer = [], buffer.forEach((item) => {
  30890. this.send(item.event).then(item.resolve).catch(item.reject);
  30891. });
  30892. }
  30893. getFrames(target) {
  30894. if (this.config.page === "manager") {
  30895. let list = Array.from(
  30896. document2.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")
  30897. ).flatMap((e) => {
  30898. try {
  30899. return e.contentWindow && e.dataset.isStorybook !== void 0 && e.id === target ? [e.contentWindow] : [];
  30900. } catch {
  30901. return [];
  30902. }
  30903. });
  30904. return list?.length ? list : this.getCurrentFrames();
  30905. }
  30906. return scope && scope.parent && scope.parent !== scope.self ? [scope.parent] : [];
  30907. }
  30908. getCurrentFrames() {
  30909. return this.config.page === "manager" ? Array.from(
  30910. document2.querySelectorAll('[data-is-storybook="true"]')
  30911. ).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : scope && scope.parent ? [scope.parent] : [];
  30912. }
  30913. getLocalFrame() {
  30914. return this.config.page === "manager" ? Array.from(
  30915. document2.querySelectorAll("#storybook-preview-iframe")
  30916. ).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : scope && scope.parent ? [scope.parent] : [];
  30917. }
  30918. handleEvent(rawEvent) {
  30919. try {
  30920. let { data } = rawEvent, { key, event, refId } = typeof data == "string" && isJSON(data) ? parse(data, scope.CHANNEL_OPTIONS || {}) : data;
  30921. if (key === KEY) {
  30922. let pageString = this.config.page === "manager" ? '<span style="color: #37D5D3; background: black"> manager </span>' : '<span style="color: #1EA7FD; background: black"> preview </span>', eventString = Object.values(core_events_exports).includes(event.type) ? `<span style="color: #FF4785">${event.type}</span>` : `<span style="color: #FFAE00">${event.type}</span>`;
  30923. if (refId && (event.refId = refId), event.source = this.config.page === "preview" ? rawEvent.origin : getEventSourceUrl(rawEvent, refId), !event.source) {
  30924. pretty.error(
  30925. `${pageString} received ${eventString} but was unable to determine the source of the event`
  30926. );
  30927. return;
  30928. }
  30929. let message = `${pageString} received ${eventString} (${data.length})`;
  30930. pretty.debug(
  30931. location2.origin !== event.source ? message : `${message} <span style="color: gray">(on ${location2.origin} from ${event.source})</span>`,
  30932. ...event.args
  30933. ), invariant(this.handler, "ChannelHandler should be set"), this.handler(event);
  30934. }
  30935. } catch (error) {
  30936. logger.error(error);
  30937. }
  30938. }
  30939. };
  30940. // src/channels/websocket/index.ts
  30941. init_dist();
  30942. var { WebSocket } = scope, HEARTBEAT_INTERVAL = 15e3, HEARTBEAT_MAX_LATENCY = 5e3, WebsocketTransport = class {
  30943. constructor({ url, onError, page }) {
  30944. this.buffer = [];
  30945. this.isReady = !1;
  30946. this.isClosed = !1;
  30947. this.pingTimeout = 0;
  30948. this.socket = new WebSocket(url), this.socket.onopen = () => {
  30949. this.isReady = !0, this.heartbeat(), this.flush();
  30950. }, this.socket.onmessage = ({ data }) => {
  30951. let event = typeof data == "string" && isJSON(data) ? parse(data) : data;
  30952. invariant(this.handler, "WebsocketTransport handler should be set"), this.handler(event), event.type === "ping" && (this.heartbeat(), this.send({ type: "pong" }));
  30953. }, this.socket.onerror = (e) => {
  30954. onError && onError(e);
  30955. }, this.socket.onclose = (ev) => {
  30956. invariant(this.handler, "WebsocketTransport handler should be set"), this.handler({
  30957. type: CHANNEL_WS_DISCONNECT,
  30958. args: [{ reason: ev.reason, code: ev.code }],
  30959. from: page || "preview"
  30960. }), this.isClosed = !0, clearTimeout(this.pingTimeout);
  30961. };
  30962. }
  30963. heartbeat() {
  30964. clearTimeout(this.pingTimeout), this.pingTimeout = setTimeout(() => {
  30965. this.socket.close(3008, "timeout");
  30966. }, HEARTBEAT_INTERVAL + HEARTBEAT_MAX_LATENCY);
  30967. }
  30968. setHandler(handler) {
  30969. this.handler = handler;
  30970. }
  30971. send(event) {
  30972. this.isClosed || (this.isReady ? this.sendNow(event) : this.sendLater(event));
  30973. }
  30974. sendLater(event) {
  30975. this.buffer.push(event);
  30976. }
  30977. sendNow(event) {
  30978. let data = stringify(event, {
  30979. maxDepth: 15,
  30980. ...scope.CHANNEL_OPTIONS
  30981. });
  30982. this.socket.send(data);
  30983. }
  30984. flush() {
  30985. let { buffer } = this;
  30986. this.buffer = [], buffer.forEach((event) => this.send(event));
  30987. }
  30988. };
  30989. // src/channels/index.ts
  30990. var { CHANNEL_OPTIONS, CONFIG_TYPE } = scope, channels_default = Channel;
  30991. function createBrowserChannel({ page, extraTransports = [] }) {
  30992. let transports = [new PostMessageTransport({ page }), ...extraTransports];
  30993. if (CONFIG_TYPE === "DEVELOPMENT") {
  30994. let protocol = window.location.protocol === "http:" ? "ws" : "wss", { hostname, port } = window.location, { wsToken } = CHANNEL_OPTIONS || {}, channelUrl = `${protocol}://${hostname}:${port}/storybook-server-channel?token=${wsToken}`;
  30995. transports.push(new WebsocketTransport({ url: channelUrl, onError: () => {
  30996. }, page }));
  30997. }
  30998. let channel = new Channel({ transports });
  30999. return UniversalStore.__prepare(
  31000. channel,
  31001. page === "manager" ? UniversalStore.Environment.MANAGER : UniversalStore.Environment.PREVIEW
  31002. ), channel;
  31003. }
  31004. // src/manager/globals/runtime.ts
  31005. init_client_logger();
  31006. // src/components/index.ts
  31007. var components_exports = {};
  31008. __export(components_exports, {
  31009. A: () => A,
  31010. AbstractToolbar: () => AbstractToolbar,
  31011. ActionBar: () => ActionBar,
  31012. ActionList: () => ActionList,
  31013. AddonPanel: () => AddonPanel,
  31014. Badge: () => Badge,
  31015. Bar: () => Bar,
  31016. Blockquote: () => Blockquote,
  31017. Button: () => Button,
  31018. Card: () => Card,
  31019. ClipboardCode: () => ClipboardCode,
  31020. Code: () => Code2,
  31021. Collapsible: () => Collapsible,
  31022. DL: () => DL,
  31023. Div: () => Div,
  31024. DocumentWrapper: () => DocumentWrapper,
  31025. EmptyTabContent: () => EmptyTabContent,
  31026. ErrorFormatter: () => ErrorFormatter,
  31027. FlexBar: () => FlexBar,
  31028. Form: () => Form2,
  31029. H1: () => H1,
  31030. H2: () => H2,
  31031. H3: () => H3,
  31032. H4: () => H4,
  31033. H5: () => H5,
  31034. H6: () => H6,
  31035. HR: () => HR,
  31036. IconButton: () => IconButton,
  31037. Img: () => Img,
  31038. LI: () => LI,
  31039. Link: () => Link2,
  31040. ListItem: () => ListItem_default,
  31041. Loader: () => Loader,
  31042. Modal: () => Modal,
  31043. ModalDecorator: () => ModalDecorator,
  31044. OL: () => OL,
  31045. P: () => P,
  31046. Placeholder: () => Placeholder,
  31047. Popover: () => Popover,
  31048. PopoverProvider: () => PopoverProvider,
  31049. Pre: () => Pre2,
  31050. ProgressSpinner: () => ProgressSpinner,
  31051. ResetWrapper: () => ResetWrapper,
  31052. ScrollArea: () => ScrollArea2,
  31053. Select: () => Select2,
  31054. Separator: () => Separator2,
  31055. Spaced: () => Spaced,
  31056. Span: () => Span,
  31057. StatelessTab: () => StatelessTab,
  31058. StatelessTabList: () => StatelessTabList,
  31059. StatelessTabPanel: () => StatelessTabPanel,
  31060. StatelessTabsView: () => StatelessTabsView,
  31061. StorybookIcon: () => StorybookIcon3,
  31062. StorybookLogo: () => StorybookLogo,
  31063. SyntaxHighlighter: () => SyntaxHighlighter3,
  31064. TT: () => TT,
  31065. TabBar: () => TabBar,
  31066. TabButton: () => TabButton,
  31067. TabList: () => TabList,
  31068. TabPanel: () => TabPanel,
  31069. TabWrapper: () => TabWrapper,
  31070. Table: () => Table,
  31071. Tabs: () => Tabs,
  31072. TabsState: () => TabsState,
  31073. TabsView: () => TabsView,
  31074. ToggleButton: () => ToggleButton,
  31075. Toolbar: () => Toolbar,
  31076. Tooltip: () => Tooltip2,
  31077. TooltipLinkList: () => TooltipLinkList,
  31078. TooltipMessage: () => TooltipMessage,
  31079. TooltipNote: () => TooltipNote,
  31080. TooltipProvider: () => TooltipProvider,
  31081. UL: () => UL,
  31082. WithTooltip: () => WithTooltip,
  31083. WithTooltipPure: () => WithTooltipPure2,
  31084. Zoom: () => Zoom,
  31085. codeCommon: () => codeCommon,
  31086. components: () => components2,
  31087. convertToReactAriaPlacement: () => convertToReactAriaPlacement,
  31088. createCopyToClipboardFunction: () => createCopyToClipboardFunction,
  31089. getStoryHref: () => getStoryHref,
  31090. interleaveSeparators: () => interleaveSeparators,
  31091. nameSpaceClassNames: () => nameSpaceClassNames,
  31092. resetComponents: () => resetComponents,
  31093. useTabsState: () => useTabsState,
  31094. withReset: () => withReset
  31095. });
  31096. var import_react191 = __toESM(require_react(), 1);
  31097. // src/components/components/typography/components.tsx
  31098. var import_react16 = __toESM(require_react(), 1);
  31099. // src/components/components/typography/DocumentFormatting.tsx
  31100. var nameSpaceClassNames = ({ ...props }, key) => {
  31101. let classes = [props.class, props.className];
  31102. return delete props.class, props.className = ["sbdocs", `sbdocs-${key}`, ...classes].filter(Boolean).join(" "), props;
  31103. };
  31104. // src/components/components/typography/ResetWrapper.tsx
  31105. init_theming();
  31106. // src/components/components/typography/lib/common.tsx
  31107. var headerCommon = ({ theme: theme3 }) => ({
  31108. margin: "20px 0 8px",
  31109. padding: 0,
  31110. cursor: "text",
  31111. position: "relative",
  31112. color: theme3.color.defaultText,
  31113. "&:first-of-type": {
  31114. marginTop: 0,
  31115. paddingTop: 0
  31116. },
  31117. "&:hover a.anchor": {
  31118. textDecoration: "none"
  31119. },
  31120. "& tt, & code": {
  31121. fontSize: "inherit"
  31122. }
  31123. }), codeCommon = ({ theme: theme3 }) => ({
  31124. lineHeight: 1,
  31125. margin: "0 2px",
  31126. padding: "3px 5px",
  31127. whiteSpace: "nowrap",
  31128. borderRadius: 3,
  31129. fontSize: theme3.typography.size.s2 - 1,
  31130. border: theme3.base === "light" ? "1px solid hsl(0 0 0 / 0.05)" : "1px solid hsl(0 0 100 / 0.05)",
  31131. color: theme3.color.defaultText,
  31132. backgroundColor: theme3.base === "light" ? "hsl(0 0 0 / 0.01)" : "hsl(0 0 100 / 0.02)"
  31133. }), withReset = ({ theme: theme3 }) => ({
  31134. fontFamily: theme3.typography.fonts.base,
  31135. fontSize: theme3.typography.size.s3,
  31136. margin: 0,
  31137. WebkitFontSmoothing: "antialiased",
  31138. MozOsxFontSmoothing: "grayscale",
  31139. WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
  31140. WebkitOverflowScrolling: "touch"
  31141. }), withMargin = {
  31142. margin: "16px 0"
  31143. };
  31144. // src/components/components/typography/ResetWrapper.tsx
  31145. var ResetWrapper = styled.div(withReset);
  31146. // src/components/components/typography/elements/A.tsx
  31147. init_theming();
  31148. // src/components/components/typography/elements/Link.tsx
  31149. var import_react7 = __toESM(require_react(), 1), Link = ({
  31150. href: input2 = "",
  31151. ...props
  31152. }) => {
  31153. let href = /^\//.test(input2) ? `./?path=${input2}` : input2, target = /^#.*/.test(input2) ? "_self" : "_top";
  31154. return import_react7.default.createElement("a", { href, target, ...props });
  31155. };
  31156. // src/components/components/typography/elements/A.tsx
  31157. var A = styled(Link)(({ theme: theme3 }) => ({
  31158. ...withReset({ theme: theme3 }),
  31159. fontSize: "inherit",
  31160. lineHeight: "24px",
  31161. color: theme3.color.secondary,
  31162. // Ensure WCAG Level A compliance (SC 1.4.1), see https://www.w3.org/WAI/WCAG22/Techniques/failures/F73
  31163. textDecoration: "underline",
  31164. textDecorationThickness: "0.03125rem",
  31165. textUnderlineOffset: "0.11em",
  31166. "&.absent": {
  31167. color: "#cc0000"
  31168. },
  31169. "&.anchor": {
  31170. display: "block",
  31171. paddingLeft: 30,
  31172. marginLeft: -30,
  31173. cursor: "pointer",
  31174. position: "absolute",
  31175. top: 0,
  31176. left: 0,
  31177. bottom: 0,
  31178. textDecoration: "none"
  31179. },
  31180. "&.anchor:hover, &.anchor:focus": {
  31181. textDecoration: "underline"
  31182. },
  31183. "& code": {
  31184. color: "inherit",
  31185. textDecoration: "underline",
  31186. textDecorationThickness: "0.03125rem",
  31187. paddingLeft: 0,
  31188. paddingRight: 0,
  31189. "&::before": {
  31190. content: '"\\00a0"',
  31191. fontSize: "0.5em"
  31192. },
  31193. "&::after": {
  31194. content: '"\\00a0"',
  31195. fontSize: "0.5em"
  31196. }
  31197. }
  31198. }));
  31199. // src/components/components/typography/elements/Blockquote.tsx
  31200. init_theming();
  31201. var Blockquote = styled.blockquote(({ theme: theme3 }) => ({
  31202. ...withReset({ theme: theme3 }),
  31203. ...withMargin,
  31204. borderLeft: `4px solid ${theme3.color.medium}`,
  31205. padding: "0 15px",
  31206. color: theme3.color.dark,
  31207. "& > :first-of-type": {
  31208. marginTop: 0
  31209. },
  31210. "& > :last-child": {
  31211. marginBottom: 0
  31212. }
  31213. }));
  31214. // src/components/components/typography/elements/Code.tsx
  31215. var import_react15 = __toESM(require_react(), 1);
  31216. init_theming();
  31217. // src/components/components/syntaxhighlighter/lazy-syntaxhighlighter.tsx
  31218. var import_react14 = __toESM(require_react(), 1), languages = [], Comp = null, LazySyntaxHighlighter = (0, import_react14.lazy)(async () => {
  31219. let { SyntaxHighlighter: SyntaxHighlighter4 } = await Promise.resolve().then(() => (init_syntaxhighlighter(), syntaxhighlighter_exports));
  31220. return languages.length > 0 && (languages.forEach((args) => {
  31221. SyntaxHighlighter4.registerLanguage(...args);
  31222. }), languages = []), Comp === null && (Comp = SyntaxHighlighter4), {
  31223. default: (props) => import_react14.default.createElement(SyntaxHighlighter4, { ...props })
  31224. };
  31225. }), LazySyntaxHighlighterWithFormatter = (0, import_react14.lazy)(async () => {
  31226. let [{ SyntaxHighlighter: SyntaxHighlighter4 }, { formatter: formatter2 }] = await Promise.all([
  31227. Promise.resolve().then(() => (init_syntaxhighlighter(), syntaxhighlighter_exports)),
  31228. Promise.resolve().then(() => (init_formatter(), formatter_exports))
  31229. ]);
  31230. return languages.length > 0 && (languages.forEach((args) => {
  31231. SyntaxHighlighter4.registerLanguage(...args);
  31232. }), languages = []), Comp === null && (Comp = SyntaxHighlighter4), {
  31233. default: (props) => import_react14.default.createElement(SyntaxHighlighter4, { ...props, formatter: formatter2 })
  31234. };
  31235. }), SyntaxHighlighter3 = (props) => import_react14.default.createElement(import_react14.Suspense, { fallback: import_react14.default.createElement("div", null) }, props.format !== !1 ? import_react14.default.createElement(LazySyntaxHighlighterWithFormatter, { ...props }) : import_react14.default.createElement(LazySyntaxHighlighter, { ...props }));
  31236. SyntaxHighlighter3.registerLanguage = (...args) => {
  31237. if (Comp !== null) {
  31238. Comp.registerLanguage(...args);
  31239. return;
  31240. }
  31241. languages.push(args);
  31242. };
  31243. // src/components/components/typography/lib/isReactChildString.tsx
  31244. var isReactChildString = (child) => typeof child == "string";
  31245. // src/components/components/typography/elements/Code.tsx
  31246. var isInlineCodeRegex = /[\n\r]/g, DefaultCodeBlock = styled.code(({ theme: theme3 }) => ({
  31247. // from reset
  31248. fontFamily: theme3.typography.fonts.mono,
  31249. WebkitFontSmoothing: "antialiased",
  31250. MozOsxFontSmoothing: "grayscale",
  31251. display: "inline-block",
  31252. paddingLeft: 2,
  31253. paddingRight: 2,
  31254. verticalAlign: "baseline",
  31255. color: "inherit",
  31256. ...codeCommon({ theme: theme3 })
  31257. })), StyledSyntaxHighlighter = styled(SyntaxHighlighter3)(({ theme: theme3 }) => ({
  31258. // DocBlocks-specific styling and overrides
  31259. fontFamily: theme3.typography.fonts.mono,
  31260. fontSize: `${theme3.typography.size.s2 - 1}px`,
  31261. lineHeight: "19px",
  31262. margin: "25px 0 40px",
  31263. borderRadius: theme3.appBorderRadius,
  31264. boxShadow: theme3.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0",
  31265. "pre.prismjs": {
  31266. padding: 20,
  31267. background: "inherit"
  31268. }
  31269. })), Code2 = ({
  31270. className,
  31271. children,
  31272. ...props
  31273. }) => {
  31274. let language = (className || "").match(/lang-(\S+)/), childrenArray = import_react15.Children.toArray(children);
  31275. return childrenArray.filter(isReactChildString).some((child) => child.match(isInlineCodeRegex)) ? import_react15.default.createElement(
  31276. StyledSyntaxHighlighter,
  31277. {
  31278. bordered: !0,
  31279. copyable: !0,
  31280. language: language?.[1] ?? "text",
  31281. format: !1,
  31282. ...props
  31283. },
  31284. children
  31285. ) : import_react15.default.createElement(DefaultCodeBlock, { ...props, className }, childrenArray);
  31286. };
  31287. // src/components/components/typography/elements/DL.tsx
  31288. init_theming();
  31289. var DL = styled.dl(({ theme: theme3 }) => ({
  31290. ...withReset({ theme: theme3 }),
  31291. ...withMargin,
  31292. padding: 0,
  31293. "& dt": {
  31294. fontSize: "14px",
  31295. fontWeight: "bold",
  31296. fontStyle: "italic",
  31297. padding: 0,
  31298. margin: "16px 0 4px"
  31299. },
  31300. "& dt:first-of-type": {
  31301. padding: 0
  31302. },
  31303. "& dt > :first-of-type": {
  31304. marginTop: 0
  31305. },
  31306. "& dt > :last-child": {
  31307. marginBottom: 0
  31308. },
  31309. "& dd": {
  31310. margin: "0 0 16px",
  31311. padding: "0 15px"
  31312. },
  31313. "& dd > :first-of-type": {
  31314. marginTop: 0
  31315. },
  31316. "& dd > :last-child": {
  31317. marginBottom: 0
  31318. }
  31319. }));
  31320. // src/components/components/typography/elements/Div.tsx
  31321. init_theming();
  31322. var Div = styled.div(withReset);
  31323. // src/components/components/typography/elements/H1.tsx
  31324. init_theming();
  31325. var H1 = styled.h1(({ theme: theme3 }) => ({
  31326. ...withReset({ theme: theme3 }),
  31327. ...headerCommon({ theme: theme3 }),
  31328. fontSize: `${theme3.typography.size.l1}px`,
  31329. fontWeight: theme3.typography.weight.bold
  31330. }));
  31331. // src/components/components/typography/elements/H2.tsx
  31332. init_theming();
  31333. var H2 = styled.h2(({ theme: theme3 }) => ({
  31334. ...withReset({ theme: theme3 }),
  31335. ...headerCommon({ theme: theme3 }),
  31336. fontSize: `${theme3.typography.size.m2}px`,
  31337. paddingBottom: 4,
  31338. borderBottom: `1px solid ${theme3.appBorderColor}`
  31339. }));
  31340. // src/components/components/typography/elements/H3.tsx
  31341. init_theming();
  31342. var H3 = styled.h3(({ theme: theme3 }) => ({
  31343. ...withReset({ theme: theme3 }),
  31344. ...headerCommon({ theme: theme3 }),
  31345. fontSize: `${theme3.typography.size.m1}px`
  31346. }));
  31347. // src/components/components/typography/elements/H4.tsx
  31348. init_theming();
  31349. var H4 = styled.h4(({ theme: theme3 }) => ({
  31350. ...withReset({ theme: theme3 }),
  31351. ...headerCommon({ theme: theme3 }),
  31352. fontSize: `${theme3.typography.size.s3}px`
  31353. }));
  31354. // src/components/components/typography/elements/H5.tsx
  31355. init_theming();
  31356. var H5 = styled.h5(({ theme: theme3 }) => ({
  31357. ...withReset({ theme: theme3 }),
  31358. ...headerCommon({ theme: theme3 }),
  31359. fontSize: `${theme3.typography.size.s2}px`
  31360. }));
  31361. // src/components/components/typography/elements/H6.tsx
  31362. init_theming();
  31363. var H6 = styled.h6(({ theme: theme3 }) => ({
  31364. ...withReset({ theme: theme3 }),
  31365. ...headerCommon({ theme: theme3 }),
  31366. fontSize: `${theme3.typography.size.s2}px`,
  31367. color: theme3.color.dark
  31368. }));
  31369. // src/components/components/typography/elements/HR.tsx
  31370. init_theming();
  31371. var HR = styled.hr(({ theme: theme3 }) => ({
  31372. border: "0 none",
  31373. borderTop: `1px solid ${theme3.appBorderColor}`,
  31374. height: 4,
  31375. padding: 0
  31376. }));
  31377. // src/components/components/typography/elements/Img.tsx
  31378. init_theming();
  31379. var Img = styled.img({
  31380. maxWidth: "100%"
  31381. });
  31382. // src/components/components/typography/elements/LI.tsx
  31383. init_theming();
  31384. var LI = styled.li(({ theme: theme3 }) => ({
  31385. ...withReset({ theme: theme3 }),
  31386. fontSize: theme3.typography.size.s2,
  31387. color: theme3.color.defaultText,
  31388. lineHeight: "24px",
  31389. "& + li": {
  31390. marginTop: ".25em"
  31391. },
  31392. "& ul, & ol": {
  31393. marginTop: ".25em",
  31394. marginBottom: 0
  31395. },
  31396. "& code": codeCommon({ theme: theme3 })
  31397. }));
  31398. // src/components/components/typography/elements/OL.tsx
  31399. init_theming();
  31400. var listCommon = {
  31401. paddingLeft: 30,
  31402. "& :first-of-type": {
  31403. marginTop: 0
  31404. },
  31405. "& :last-child": {
  31406. marginBottom: 0
  31407. }
  31408. }, OL = styled.ol(({ theme: theme3 }) => ({
  31409. ...withReset({ theme: theme3 }),
  31410. ...withMargin,
  31411. ...listCommon,
  31412. listStyle: "decimal"
  31413. }));
  31414. // src/components/components/typography/elements/P.tsx
  31415. init_theming();
  31416. var P = styled.p(({ theme: theme3 }) => ({
  31417. ...withReset({ theme: theme3 }),
  31418. ...withMargin,
  31419. fontSize: theme3.typography.size.s2,
  31420. lineHeight: "24px",
  31421. color: theme3.color.defaultText,
  31422. "& code": codeCommon({ theme: theme3 })
  31423. }));
  31424. // src/components/components/typography/elements/Pre.tsx
  31425. init_theming();
  31426. var Pre2 = styled.pre(({ theme: theme3 }) => ({
  31427. ...withReset({ theme: theme3 }),
  31428. ...withMargin,
  31429. // reset
  31430. fontFamily: theme3.typography.fonts.mono,
  31431. WebkitFontSmoothing: "antialiased",
  31432. MozOsxFontSmoothing: "grayscale",
  31433. lineHeight: "18px",
  31434. padding: "11px 1rem",
  31435. whiteSpace: "pre-wrap",
  31436. color: "inherit",
  31437. borderRadius: 3,
  31438. margin: "1rem 0",
  31439. "&:not(.prismjs)": {
  31440. background: "transparent",
  31441. border: "none",
  31442. borderRadius: 0,
  31443. padding: 0,
  31444. margin: 0
  31445. },
  31446. "& pre, &.prismjs": {
  31447. padding: 15,
  31448. margin: 0,
  31449. whiteSpace: "pre-wrap",
  31450. color: "inherit",
  31451. fontSize: "13px",
  31452. lineHeight: "19px",
  31453. code: {
  31454. color: "inherit",
  31455. fontSize: "inherit"
  31456. }
  31457. },
  31458. "& code": {
  31459. whiteSpace: "pre"
  31460. },
  31461. "& code, & tt": {
  31462. border: "none"
  31463. }
  31464. }));
  31465. // src/components/components/typography/elements/Span.tsx
  31466. init_theming();
  31467. var Span = styled.span(({ theme: theme3 }) => ({
  31468. ...withReset({ theme: theme3 }),
  31469. "&.frame": {
  31470. display: "block",
  31471. overflow: "hidden",
  31472. "& > span": {
  31473. border: `1px solid ${theme3.color.medium}`,
  31474. display: "block",
  31475. float: "left",
  31476. overflow: "hidden",
  31477. margin: "13px 0 0",
  31478. padding: 7,
  31479. width: "auto"
  31480. },
  31481. "& span img": {
  31482. display: "block",
  31483. float: "left"
  31484. },
  31485. "& span span": {
  31486. clear: "both",
  31487. color: theme3.color.darkest,
  31488. display: "block",
  31489. padding: "5px 0 0"
  31490. }
  31491. },
  31492. "&.align-center": {
  31493. display: "block",
  31494. overflow: "hidden",
  31495. clear: "both",
  31496. "& > span": {
  31497. display: "block",
  31498. overflow: "hidden",
  31499. margin: "13px auto 0",
  31500. textAlign: "center"
  31501. },
  31502. "& span img": {
  31503. margin: "0 auto",
  31504. textAlign: "center"
  31505. }
  31506. },
  31507. "&.align-right": {
  31508. display: "block",
  31509. overflow: "hidden",
  31510. clear: "both",
  31511. "& > span": {
  31512. display: "block",
  31513. overflow: "hidden",
  31514. margin: "13px 0 0",
  31515. textAlign: "right"
  31516. },
  31517. "& span img": {
  31518. margin: 0,
  31519. textAlign: "right"
  31520. }
  31521. },
  31522. "&.float-left": {
  31523. display: "block",
  31524. marginRight: 13,
  31525. overflow: "hidden",
  31526. float: "left",
  31527. "& span": {
  31528. margin: "13px 0 0"
  31529. }
  31530. },
  31531. "&.float-right": {
  31532. display: "block",
  31533. marginLeft: 13,
  31534. overflow: "hidden",
  31535. float: "right",
  31536. "& > span": {
  31537. display: "block",
  31538. overflow: "hidden",
  31539. margin: "13px auto 0",
  31540. textAlign: "right"
  31541. }
  31542. }
  31543. }));
  31544. // src/components/components/typography/elements/TT.tsx
  31545. init_theming();
  31546. var TT = styled.title(codeCommon);
  31547. // src/components/components/typography/elements/Table.tsx
  31548. init_theming();
  31549. var Table = styled.table(({ theme: theme3 }) => ({
  31550. ...withReset({ theme: theme3 }),
  31551. ...withMargin,
  31552. fontSize: theme3.typography.size.s2,
  31553. lineHeight: "24px",
  31554. padding: 0,
  31555. borderCollapse: "collapse",
  31556. "& tr": {
  31557. borderTop: `1px solid ${theme3.appBorderColor}`,
  31558. backgroundColor: theme3.appContentBg,
  31559. margin: 0,
  31560. padding: 0
  31561. },
  31562. "& tr:nth-of-type(2n)": {
  31563. backgroundColor: theme3.base === "dark" ? theme3.color.darker : theme3.color.lighter
  31564. },
  31565. "& tr th": {
  31566. fontWeight: "bold",
  31567. color: theme3.color.defaultText,
  31568. border: `1px solid ${theme3.appBorderColor}`,
  31569. margin: 0,
  31570. padding: "6px 13px"
  31571. },
  31572. "& tr td": {
  31573. border: `1px solid ${theme3.appBorderColor}`,
  31574. color: theme3.color.defaultText,
  31575. margin: 0,
  31576. padding: "6px 13px"
  31577. },
  31578. "& tr th :first-of-type, & tr td :first-of-type": {
  31579. marginTop: 0
  31580. },
  31581. "& tr th :last-child, & tr td :last-child": {
  31582. marginBottom: 0
  31583. }
  31584. }));
  31585. // src/components/components/typography/elements/UL.tsx
  31586. init_theming();
  31587. var listCommon2 = {
  31588. paddingLeft: 30,
  31589. "& :first-of-type": {
  31590. marginTop: 0
  31591. },
  31592. "& :last-child": {
  31593. marginBottom: 0
  31594. }
  31595. }, UL = styled.ul(({ theme: theme3 }) => ({
  31596. ...withReset({ theme: theme3 }),
  31597. ...withMargin,
  31598. ...listCommon2,
  31599. listStyle: "disc"
  31600. }));
  31601. // src/components/components/typography/components.tsx
  31602. var components = {
  31603. h1: (props) => import_react16.default.createElement(H1, { ...nameSpaceClassNames(props, "h1") }),
  31604. h2: (props) => import_react16.default.createElement(H2, { ...nameSpaceClassNames(props, "h2") }),
  31605. h3: (props) => import_react16.default.createElement(H3, { ...nameSpaceClassNames(props, "h3") }),
  31606. h4: (props) => import_react16.default.createElement(H4, { ...nameSpaceClassNames(props, "h4") }),
  31607. h5: (props) => import_react16.default.createElement(H5, { ...nameSpaceClassNames(props, "h5") }),
  31608. h6: (props) => import_react16.default.createElement(H6, { ...nameSpaceClassNames(props, "h6") }),
  31609. pre: (props) => import_react16.default.createElement(Pre2, { ...nameSpaceClassNames(props, "pre") }),
  31610. a: (props) => import_react16.default.createElement(A, { ...nameSpaceClassNames(props, "a") }),
  31611. hr: (props) => import_react16.default.createElement(HR, { ...nameSpaceClassNames(props, "hr") }),
  31612. dl: (props) => import_react16.default.createElement(DL, { ...nameSpaceClassNames(props, "dl") }),
  31613. blockquote: (props) => import_react16.default.createElement(Blockquote, { ...nameSpaceClassNames(props, "blockquote") }),
  31614. table: (props) => import_react16.default.createElement(Table, { ...nameSpaceClassNames(props, "table") }),
  31615. img: (props) => import_react16.default.createElement(Img, { ...nameSpaceClassNames(props, "img") }),
  31616. div: (props) => import_react16.default.createElement(Div, { ...nameSpaceClassNames(props, "div") }),
  31617. span: (props) => import_react16.default.createElement(Span, { ...nameSpaceClassNames(props, "span") }),
  31618. li: (props) => import_react16.default.createElement(LI, { ...nameSpaceClassNames(props, "li") }),
  31619. ul: (props) => import_react16.default.createElement(UL, { ...nameSpaceClassNames(props, "ul") }),
  31620. ol: (props) => import_react16.default.createElement(OL, { ...nameSpaceClassNames(props, "ol") }),
  31621. p: (props) => import_react16.default.createElement(P, { ...nameSpaceClassNames(props, "p") }),
  31622. code: (props) => import_react16.default.createElement(Code2, { ...nameSpaceClassNames(props, "code") }),
  31623. tt: (props) => import_react16.default.createElement(TT, { ...nameSpaceClassNames(props, "tt") }),
  31624. resetwrapper: (props) => import_react16.default.createElement(ResetWrapper, { ...nameSpaceClassNames(props, "resetwrapper") })
  31625. };
  31626. // src/components/components/Badge/Badge.tsx
  31627. var import_react17 = __toESM(require_react(), 1);
  31628. init_polished_esm();
  31629. init_theming();
  31630. var BadgeWrapper = styled.div(
  31631. ({ theme: theme3, compact: compact2 }) => ({
  31632. display: "inline-flex",
  31633. alignItems: "center",
  31634. justifyContent: "center",
  31635. fontSize: theme3.typography.size.s1,
  31636. fontWeight: theme3.typography.weight.bold,
  31637. lineHeight: "12px",
  31638. minWidth: 20,
  31639. borderRadius: 20,
  31640. padding: compact2 ? "4px 7px" : "4px 10px"
  31641. }),
  31642. {
  31643. svg: {
  31644. height: 12,
  31645. width: 12,
  31646. marginRight: 4,
  31647. marginTop: -2,
  31648. path: {
  31649. fill: "currentColor"
  31650. }
  31651. }
  31652. },
  31653. ({ theme: theme3, status }) => {
  31654. switch (status) {
  31655. case "critical":
  31656. return {
  31657. color: theme3.fgColor.critical,
  31658. background: theme3.bgColor.critical,
  31659. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.critical}`
  31660. };
  31661. case "negative":
  31662. return {
  31663. color: theme3.fgColor.negative,
  31664. background: theme3.bgColor.negative,
  31665. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.negative}`
  31666. };
  31667. case "warning":
  31668. return {
  31669. color: theme3.fgColor.warning,
  31670. background: theme3.bgColor.warning,
  31671. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.warning}`
  31672. };
  31673. case "neutral":
  31674. return {
  31675. color: theme3.fgColor.muted,
  31676. background: theme3.base === "dark" ? theme3.barBg : theme3.background.app,
  31677. boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.8, theme3.textMutedColor)}`
  31678. };
  31679. case "positive":
  31680. return {
  31681. color: theme3.fgColor.positive,
  31682. background: theme3.bgColor.positive,
  31683. boxShadow: `inset 0 0 0 1px ${theme3.borderColor.positive}`
  31684. };
  31685. case "active":
  31686. return {
  31687. color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary,
  31688. background: theme3.background.hoverable,
  31689. boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme3.color.secondary)}`
  31690. };
  31691. default:
  31692. return {};
  31693. }
  31694. }
  31695. ), Badge = ({ ...props }) => import_react17.default.createElement(BadgeWrapper, { ...props });
  31696. // src/components/components/typography/link/link.tsx
  31697. var import_react18 = __toESM(require_react(), 1);
  31698. init_client_logger();
  31699. // ../../node_modules/@storybook/icons/dist/index.js
  31700. var dist_exports2 = {};
  31701. __export(dist_exports2, {
  31702. AccessibilityAltIcon: () => AccessibilityAltIcon,
  31703. AccessibilityIcon: () => AccessibilityIcon,
  31704. AccessibilityIgnoredIcon: () => AccessibilityIgnoredIcon,
  31705. AddIcon: () => AddIcon,
  31706. AdminIcon: () => AdminIcon,
  31707. AlertAltIcon: () => AlertAltIcon,
  31708. AlertIcon: () => AlertIcon,
  31709. AlignLeftIcon: () => AlignLeftIcon,
  31710. AlignRightIcon: () => AlignRightIcon,
  31711. AppleIcon: () => AppleIcon,
  31712. ArrowBottomLeftIcon: () => ArrowBottomLeftIcon,
  31713. ArrowBottomRightIcon: () => ArrowBottomRightIcon,
  31714. ArrowDownIcon: () => ArrowDownIcon,
  31715. ArrowLeftIcon: () => ArrowLeftIcon,
  31716. ArrowRightIcon: () => ArrowRightIcon,
  31717. ArrowSolidDownIcon: () => ArrowSolidDownIcon,
  31718. ArrowSolidLeftIcon: () => ArrowSolidLeftIcon,
  31719. ArrowSolidRightIcon: () => ArrowSolidRightIcon,
  31720. ArrowSolidUpIcon: () => ArrowSolidUpIcon,
  31721. ArrowTopLeftIcon: () => ArrowTopLeftIcon,
  31722. ArrowTopRightIcon: () => ArrowTopRightIcon,
  31723. ArrowUpIcon: () => ArrowUpIcon,
  31724. AzureDevOpsIcon: () => AzureDevOpsIcon,
  31725. BackIcon: () => BackIcon,
  31726. BasketIcon: () => BasketIcon,
  31727. BatchAcceptIcon: () => BatchAcceptIcon,
  31728. BatchDenyIcon: () => BatchDenyIcon,
  31729. BeakerIcon: () => BeakerIcon,
  31730. BellIcon: () => BellIcon,
  31731. BitbucketIcon: () => BitbucketIcon,
  31732. BoldIcon: () => BoldIcon,
  31733. BookIcon: () => BookIcon,
  31734. BookmarkHollowIcon: () => BookmarkHollowIcon,
  31735. BookmarkIcon: () => BookmarkIcon,
  31736. BottomBarIcon: () => BottomBarIcon,
  31737. BottomBarToggleIcon: () => BottomBarToggleIcon,
  31738. BoxIcon: () => BoxIcon,
  31739. BranchIcon: () => BranchIcon,
  31740. BrowserIcon: () => BrowserIcon,
  31741. BugIcon: () => BugIcon,
  31742. ButtonIcon: () => ButtonIcon,
  31743. CPUIcon: () => CPUIcon,
  31744. CalendarIcon: () => CalendarIcon,
  31745. CameraIcon: () => CameraIcon,
  31746. CameraStabilizeIcon: () => CameraStabilizeIcon,
  31747. CategoryIcon: () => CategoryIcon,
  31748. CertificateIcon: () => CertificateIcon,
  31749. ChangedIcon: () => ChangedIcon,
  31750. ChatIcon: () => ChatIcon,
  31751. CheckIcon: () => CheckIcon,
  31752. ChecklistIcon: () => ChecklistIcon,
  31753. ChevronDownIcon: () => ChevronDownIcon,
  31754. ChevronLeftIcon: () => ChevronLeftIcon,
  31755. ChevronRightIcon: () => ChevronRightIcon,
  31756. ChevronSmallDownIcon: () => ChevronSmallDownIcon,
  31757. ChevronSmallLeftIcon: () => ChevronSmallLeftIcon,
  31758. ChevronSmallRightIcon: () => ChevronSmallRightIcon,
  31759. ChevronSmallUpIcon: () => ChevronSmallUpIcon,
  31760. ChevronUpIcon: () => ChevronUpIcon,
  31761. ChromaticIcon: () => ChromaticIcon,
  31762. ChromeIcon: () => ChromeIcon,
  31763. CircleHollowIcon: () => CircleHollowIcon,
  31764. CircleIcon: () => CircleIcon,
  31765. ClearIcon: () => ClearIcon,
  31766. CloseAltIcon: () => CloseAltIcon,
  31767. CloseIcon: () => CloseIcon,
  31768. CloudHollowIcon: () => CloudHollowIcon,
  31769. CloudIcon: () => CloudIcon,
  31770. CogIcon: () => CogIcon,
  31771. CollapseIcon: () => CollapseIcon,
  31772. CommandIcon: () => CommandIcon,
  31773. CommentAddIcon: () => CommentAddIcon,
  31774. CommentIcon: () => CommentIcon,
  31775. CommentsIcon: () => CommentsIcon,
  31776. CommitIcon: () => CommitIcon,
  31777. CompassIcon: () => CompassIcon,
  31778. ComponentDrivenIcon: () => ComponentDrivenIcon,
  31779. ComponentIcon: () => ComponentIcon,
  31780. ContrastIcon: () => ContrastIcon,
  31781. ContrastIgnoredIcon: () => ContrastIgnoredIcon,
  31782. ControlsIcon: () => ControlsIcon,
  31783. CopyIcon: () => CopyIcon,
  31784. CreditIcon: () => CreditIcon,
  31785. CrossIcon: () => CrossIcon,
  31786. DashboardIcon: () => DashboardIcon,
  31787. DatabaseIcon: () => DatabaseIcon,
  31788. DeleteIcon: () => DeleteIcon,
  31789. DiamondIcon: () => DiamondIcon,
  31790. DirectionIcon: () => DirectionIcon,
  31791. DiscordIcon: () => DiscordIcon,
  31792. DocChartIcon: () => DocChartIcon,
  31793. DocListIcon: () => DocListIcon,
  31794. DocumentIcon: () => DocumentIcon,
  31795. DownloadIcon: () => DownloadIcon,
  31796. DragIcon: () => DragIcon,
  31797. EditIcon: () => EditIcon,
  31798. EditorIcon: () => EditorIcon,
  31799. EllipsisIcon: () => EllipsisIcon,
  31800. EmailIcon: () => EmailIcon,
  31801. ExpandAltIcon: () => ExpandAltIcon,
  31802. ExpandIcon: () => ExpandIcon,
  31803. EyeCloseIcon: () => EyeCloseIcon,
  31804. EyeIcon: () => EyeIcon,
  31805. FaceHappyIcon: () => FaceHappyIcon,
  31806. FaceNeutralIcon: () => FaceNeutralIcon,
  31807. FaceSadIcon: () => FaceSadIcon,
  31808. FacebookIcon: () => FacebookIcon,
  31809. FailedIcon: () => FailedIcon,
  31810. FastForwardIcon: () => FastForwardIcon,
  31811. FigmaIcon: () => FigmaIcon,
  31812. FilesIcon: () => FilesIcon,
  31813. FilterIcon: () => FilterIcon,
  31814. FlagIcon: () => FlagIcon,
  31815. FolderIcon: () => FolderIcon,
  31816. FormIcon: () => FormIcon,
  31817. GDriveIcon: () => GDriveIcon,
  31818. GiftIcon: () => GiftIcon,
  31819. GithubIcon: () => GithubIcon,
  31820. GitlabIcon: () => GitlabIcon,
  31821. GlobeIcon: () => GlobeIcon,
  31822. GoogleIcon: () => GoogleIcon,
  31823. GraphBarIcon: () => GraphBarIcon,
  31824. GraphLineIcon: () => GraphLineIcon,
  31825. GraphqlIcon: () => GraphqlIcon,
  31826. GridAltIcon: () => GridAltIcon,
  31827. GridIcon: () => GridIcon,
  31828. GrowIcon: () => GrowIcon,
  31829. HeartHollowIcon: () => HeartHollowIcon,
  31830. HeartIcon: () => HeartIcon,
  31831. HomeIcon: () => HomeIcon,
  31832. HourglassIcon: () => HourglassIcon,
  31833. InfoIcon: () => InfoIcon,
  31834. ItalicIcon: () => ItalicIcon,
  31835. JumpToIcon: () => JumpToIcon,
  31836. KeyIcon: () => KeyIcon,
  31837. LightningIcon: () => LightningIcon,
  31838. LightningOffIcon: () => LightningOffIcon,
  31839. LinkBrokenIcon: () => LinkBrokenIcon,
  31840. LinkIcon: () => LinkIcon,
  31841. LinkedinIcon: () => LinkedinIcon,
  31842. LinuxIcon: () => LinuxIcon,
  31843. ListOrderedIcon: () => ListOrderedIcon,
  31844. ListUnorderedIcon: () => ListUnorderedIcon,
  31845. LocationIcon: () => LocationIcon,
  31846. LockIcon: () => LockIcon,
  31847. MarkdownIcon: () => MarkdownIcon,
  31848. MarkupIcon: () => MarkupIcon,
  31849. MediumIcon: () => MediumIcon,
  31850. MemoryIcon: () => MemoryIcon,
  31851. MenuIcon: () => MenuIcon,
  31852. MergeIcon: () => MergeIcon,
  31853. MirrorIcon: () => MirrorIcon,
  31854. MobileIcon: () => MobileIcon,
  31855. MoonIcon: () => MoonIcon,
  31856. NutIcon: () => NutIcon,
  31857. OutboxIcon: () => OutboxIcon,
  31858. OutlineIcon: () => OutlineIcon,
  31859. PaintBrushAltIcon: () => PaintBrushAltIcon,
  31860. PaintBrushIcon: () => PaintBrushIcon,
  31861. PaperClipIcon: () => PaperClipIcon,
  31862. ParagraphIcon: () => ParagraphIcon,
  31863. PassedIcon: () => PassedIcon,
  31864. PhoneIcon: () => PhoneIcon,
  31865. PhotoDragIcon: () => PhotoDragIcon,
  31866. PhotoIcon: () => PhotoIcon,
  31867. PhotoStabilizeIcon: () => PhotoStabilizeIcon,
  31868. PinAltIcon: () => PinAltIcon,
  31869. PinIcon: () => PinIcon,
  31870. PlayAllHollowIcon: () => PlayAllHollowIcon,
  31871. PlayBackIcon: () => PlayBackIcon,
  31872. PlayHollowIcon: () => PlayHollowIcon,
  31873. PlayIcon: () => PlayIcon,
  31874. PlayNextIcon: () => PlayNextIcon,
  31875. PlusIcon: () => PlusIcon,
  31876. PointerDefaultIcon: () => PointerDefaultIcon,
  31877. PointerHandIcon: () => PointerHandIcon,
  31878. PopOutIcon: () => PopOutIcon,
  31879. PowerIcon: () => PowerIcon,
  31880. PrintIcon: () => PrintIcon,
  31881. ProceedIcon: () => ProceedIcon,
  31882. ProfileIcon: () => ProfileIcon,
  31883. PullRequestIcon: () => PullRequestIcon,
  31884. QuestionIcon: () => QuestionIcon,
  31885. RSSIcon: () => RSSIcon,
  31886. RedirectIcon: () => RedirectIcon,
  31887. ReduxIcon: () => ReduxIcon,
  31888. RefreshIcon: () => RefreshIcon,
  31889. ReplyIcon: () => ReplyIcon,
  31890. RepoIcon: () => RepoIcon,
  31891. RequestChangeIcon: () => RequestChangeIcon,
  31892. RewindIcon: () => RewindIcon,
  31893. RulerIcon: () => RulerIcon,
  31894. SaveIcon: () => SaveIcon,
  31895. SearchIcon: () => SearchIcon,
  31896. ShareAltIcon: () => ShareAltIcon,
  31897. ShareIcon: () => ShareIcon,
  31898. ShieldIcon: () => ShieldIcon,
  31899. SideBySideIcon: () => SideBySideIcon,
  31900. SidebarAltIcon: () => SidebarAltIcon,
  31901. SidebarAltToggleIcon: () => SidebarAltToggleIcon,
  31902. SidebarIcon: () => SidebarIcon,
  31903. SidebarToggleIcon: () => SidebarToggleIcon,
  31904. SortDownIcon: () => SortDownIcon,
  31905. SortUpIcon: () => SortUpIcon,
  31906. SpeakerIcon: () => SpeakerIcon,
  31907. StackedIcon: () => StackedIcon,
  31908. StarHollowIcon: () => StarHollowIcon,
  31909. StarIcon: () => StarIcon,
  31910. StatusFailIcon: () => StatusFailIcon,
  31911. StatusIcon: () => StatusIcon,
  31912. StatusNewIcon: () => StatusNewIcon,
  31913. StatusPassIcon: () => StatusPassIcon,
  31914. StatusWarnIcon: () => StatusWarnIcon,
  31915. StickerIcon: () => StickerIcon,
  31916. StopAltHollowIcon: () => StopAltHollowIcon,
  31917. StopAltIcon: () => StopAltIcon,
  31918. StopIcon: () => StopIcon,
  31919. StorybookIcon: () => StorybookIcon,
  31920. StructureIcon: () => StructureIcon,
  31921. SubtractIcon: () => SubtractIcon,
  31922. SunIcon: () => SunIcon,
  31923. SupportIcon: () => SupportIcon,
  31924. SweepIcon: () => SweepIcon,
  31925. SwitchAltIcon: () => SwitchAltIcon,
  31926. SyncIcon: () => SyncIcon,
  31927. TabletIcon: () => TabletIcon,
  31928. ThumbsUpIcon: () => ThumbsUpIcon,
  31929. TimeIcon: () => TimeIcon,
  31930. TimerIcon: () => TimerIcon,
  31931. TransferIcon: () => TransferIcon,
  31932. TrashIcon: () => TrashIcon,
  31933. TwitterIcon: () => TwitterIcon,
  31934. TypeIcon: () => TypeIcon,
  31935. UbuntuIcon: () => UbuntuIcon,
  31936. UndoIcon: () => UndoIcon,
  31937. UnfoldIcon: () => UnfoldIcon,
  31938. UnlockIcon: () => UnlockIcon,
  31939. UnpinIcon: () => UnpinIcon,
  31940. UploadIcon: () => UploadIcon,
  31941. UserAddIcon: () => UserAddIcon,
  31942. UserAltIcon: () => UserAltIcon,
  31943. UserIcon: () => UserIcon,
  31944. UsersIcon: () => UsersIcon,
  31945. VSCodeIcon: () => VSCodeIcon,
  31946. VerifiedIcon: () => VerifiedIcon,
  31947. VideoIcon: () => VideoIcon,
  31948. WandIcon: () => WandIcon,
  31949. WatchIcon: () => WatchIcon,
  31950. WindowsIcon: () => WindowsIcon,
  31951. WrenchIcon: () => WrenchIcon,
  31952. XIcon: () => XIcon,
  31953. YoutubeIcon: () => YoutubeIcon,
  31954. ZoomIcon: () => ZoomIcon,
  31955. ZoomOutIcon: () => ZoomOutIcon,
  31956. ZoomResetIcon: () => ZoomResetIcon,
  31957. iconList: () => iconList
  31958. });
  31959. var React255 = __toESM(require_react(), 1), iconList = [
  31960. {
  31961. name: "Images",
  31962. icons: [
  31963. "PhotoIcon",
  31964. "ComponentIcon",
  31965. "GridIcon",
  31966. "OutlineIcon",
  31967. "PhotoDragIcon",
  31968. "PhotoStabilizeIcon",
  31969. "CameraStabilizeIcon",
  31970. "GridAltIcon",
  31971. "SearchIcon",
  31972. "ZoomIcon",
  31973. "ZoomOutIcon",
  31974. "ZoomResetIcon",
  31975. "EyeIcon",
  31976. "EyeCloseIcon",
  31977. "LightningIcon",
  31978. "LightningOffIcon",
  31979. "MirrorIcon",
  31980. "GrowIcon",
  31981. "ContrastIcon",
  31982. "SwitchAltIcon",
  31983. "ContrastIgnoredIcon",
  31984. "PaintBrushIcon",
  31985. "PaintBrushAltIcon",
  31986. "RulerIcon",
  31987. "CameraIcon",
  31988. "VideoIcon",
  31989. "SpeakerIcon",
  31990. "PlayIcon",
  31991. "PlayBackIcon",
  31992. "PlayNextIcon",
  31993. "RewindIcon",
  31994. "FastForwardIcon",
  31995. "StopAltIcon",
  31996. "SunIcon",
  31997. "MoonIcon",
  31998. "StopAltHollowIcon",
  31999. "PlayHollowIcon",
  32000. "PlayAllHollowIcon",
  32001. "StopIcon",
  32002. "SideBySideIcon",
  32003. "StackedIcon"
  32004. ]
  32005. },
  32006. {
  32007. name: "Documents",
  32008. icons: [
  32009. "BookIcon",
  32010. "DocumentIcon",
  32011. "CopyIcon",
  32012. "FilesIcon",
  32013. "CategoryIcon",
  32014. "FolderIcon",
  32015. "PrintIcon",
  32016. "GraphLineIcon",
  32017. "CalendarIcon",
  32018. "GraphBarIcon",
  32019. "AlignLeftIcon",
  32020. "AlignRightIcon",
  32021. "FilterIcon",
  32022. "DocChartIcon",
  32023. "DocListIcon",
  32024. "DragIcon",
  32025. "MenuIcon"
  32026. ]
  32027. },
  32028. {
  32029. name: "Editing",
  32030. icons: [
  32031. "MarkupIcon",
  32032. "BoldIcon",
  32033. "ItalicIcon",
  32034. "PaperClipIcon",
  32035. "ListOrderedIcon",
  32036. "ListUnorderedIcon",
  32037. "ChecklistIcon",
  32038. "ParagraphIcon",
  32039. "MarkdownIcon"
  32040. ]
  32041. },
  32042. {
  32043. name: "Git",
  32044. icons: [
  32045. "RepoIcon",
  32046. "CommitIcon",
  32047. "BranchIcon",
  32048. "PullRequestIcon",
  32049. "MergeIcon"
  32050. ]
  32051. },
  32052. {
  32053. name: "OS",
  32054. icons: [
  32055. "AppleIcon",
  32056. "LinuxIcon",
  32057. "UbuntuIcon",
  32058. "WindowsIcon",
  32059. "ChromeIcon"
  32060. ]
  32061. },
  32062. {
  32063. name: "Logos",
  32064. icons: [
  32065. "StorybookIcon",
  32066. "AzureDevOpsIcon",
  32067. "BitbucketIcon",
  32068. "ChromaticIcon",
  32069. "ComponentDrivenIcon",
  32070. "DiscordIcon",
  32071. "FacebookIcon",
  32072. "FigmaIcon",
  32073. "GDriveIcon",
  32074. "GithubIcon",
  32075. "GitlabIcon",
  32076. "GoogleIcon",
  32077. "GraphqlIcon",
  32078. "MediumIcon",
  32079. "ReduxIcon",
  32080. "TwitterIcon",
  32081. "YoutubeIcon",
  32082. "VSCodeIcon",
  32083. "LinkedinIcon",
  32084. "XIcon"
  32085. ]
  32086. },
  32087. {
  32088. name: "Devices",
  32089. icons: [
  32090. "BrowserIcon",
  32091. "TabletIcon",
  32092. "MobileIcon",
  32093. "WatchIcon",
  32094. "SidebarIcon",
  32095. "SidebarAltIcon",
  32096. "SidebarAltToggleIcon",
  32097. "SidebarToggleIcon",
  32098. "BottomBarIcon",
  32099. "BottomBarToggleIcon",
  32100. "CPUIcon",
  32101. "DatabaseIcon",
  32102. "MemoryIcon",
  32103. "StructureIcon",
  32104. "BoxIcon",
  32105. "PowerIcon"
  32106. ]
  32107. },
  32108. {
  32109. name: "CRUD",
  32110. icons: [
  32111. "EditIcon",
  32112. "CogIcon",
  32113. "NutIcon",
  32114. "WrenchIcon",
  32115. "EllipsisIcon",
  32116. "WandIcon",
  32117. "SweepIcon",
  32118. "CheckIcon",
  32119. "FormIcon",
  32120. "BatchDenyIcon",
  32121. "BatchAcceptIcon",
  32122. "ControlsIcon",
  32123. "PlusIcon",
  32124. "CloseAltIcon",
  32125. "CrossIcon",
  32126. "TrashIcon",
  32127. "PinAltIcon",
  32128. "UnpinIcon",
  32129. "AddIcon",
  32130. "SubtractIcon",
  32131. "CloseIcon",
  32132. "DeleteIcon",
  32133. "PassedIcon",
  32134. "ChangedIcon",
  32135. "FailedIcon",
  32136. "ClearIcon",
  32137. "CommentIcon",
  32138. "CommentAddIcon",
  32139. "RequestChangeIcon",
  32140. "CommentsIcon",
  32141. "ChatIcon",
  32142. "LockIcon",
  32143. "UnlockIcon",
  32144. "KeyIcon",
  32145. "OutboxIcon",
  32146. "CreditIcon",
  32147. "ButtonIcon",
  32148. "TypeIcon",
  32149. "PointerDefaultIcon",
  32150. "PointerHandIcon",
  32151. "CommandIcon",
  32152. "SaveIcon",
  32153. "SortDownIcon",
  32154. "SortUpIcon",
  32155. "BugIcon",
  32156. "EditorIcon"
  32157. ]
  32158. },
  32159. {
  32160. name: "Communicate",
  32161. icons: [
  32162. "InfoIcon",
  32163. "QuestionIcon",
  32164. "SupportIcon",
  32165. "AlertIcon",
  32166. "AlertAltIcon",
  32167. "EmailIcon",
  32168. "PhoneIcon",
  32169. "LinkIcon",
  32170. "LinkBrokenIcon",
  32171. "BellIcon",
  32172. "RSSIcon",
  32173. "ShareAltIcon",
  32174. "ShareIcon",
  32175. "JumpToIcon",
  32176. "CircleHollowIcon",
  32177. "CircleIcon",
  32178. "BookmarkHollowIcon",
  32179. "BookmarkIcon",
  32180. "DiamondIcon",
  32181. "HeartHollowIcon",
  32182. "HeartIcon",
  32183. "StarHollowIcon",
  32184. "StarIcon",
  32185. "CertificateIcon",
  32186. "VerifiedIcon",
  32187. "ThumbsUpIcon",
  32188. "ShieldIcon",
  32189. "BasketIcon",
  32190. "BeakerIcon",
  32191. "HourglassIcon",
  32192. "FlagIcon",
  32193. "CloudHollowIcon",
  32194. "CloudIcon",
  32195. "StickerIcon",
  32196. "StatusFailIcon",
  32197. "StatusIcon",
  32198. "StatusWarnIcon",
  32199. "StatusPassIcon",
  32200. "GiftIcon",
  32201. "StatusNewIcon",
  32202. "PopOutIcon"
  32203. ]
  32204. },
  32205. {
  32206. name: "Wayfinding",
  32207. icons: [
  32208. "ChevronUpIcon",
  32209. "ChevronDownIcon",
  32210. "ChevronLeftIcon",
  32211. "ChevronRightIcon",
  32212. "ChevronSmallUpIcon",
  32213. "ChevronSmallDownIcon",
  32214. "ChevronSmallLeftIcon",
  32215. "ChevronSmallRightIcon",
  32216. "ArrowUpIcon",
  32217. "ArrowDownIcon",
  32218. "ArrowLeftIcon",
  32219. "ArrowRightIcon",
  32220. "ArrowTopLeftIcon",
  32221. "ArrowTopRightIcon",
  32222. "ArrowBottomLeftIcon",
  32223. "ArrowBottomRightIcon",
  32224. "ArrowSolidUpIcon",
  32225. "ArrowSolidDownIcon",
  32226. "ArrowSolidLeftIcon",
  32227. "ArrowSolidRightIcon",
  32228. "ExpandAltIcon",
  32229. "CollapseIcon",
  32230. "ExpandIcon",
  32231. "UnfoldIcon",
  32232. "TransferIcon",
  32233. "RedirectIcon",
  32234. "UndoIcon",
  32235. "ReplyIcon",
  32236. "SyncIcon",
  32237. "UploadIcon",
  32238. "DownloadIcon",
  32239. "BackIcon",
  32240. "ProceedIcon",
  32241. "RefreshIcon",
  32242. "GlobeIcon",
  32243. "CompassIcon",
  32244. "LocationIcon",
  32245. "PinIcon",
  32246. "TimeIcon",
  32247. "DashboardIcon",
  32248. "TimerIcon",
  32249. "HomeIcon",
  32250. "AdminIcon",
  32251. "DirectionIcon"
  32252. ]
  32253. },
  32254. {
  32255. name: "People",
  32256. icons: [
  32257. "UserIcon",
  32258. "UserAltIcon",
  32259. "UserAddIcon",
  32260. "UsersIcon",
  32261. "ProfileIcon",
  32262. "FaceHappyIcon",
  32263. "FaceNeutralIcon",
  32264. "FaceSadIcon",
  32265. "AccessibilityIcon",
  32266. "AccessibilityAltIcon",
  32267. "AccessibilityIgnoredIcon"
  32268. ]
  32269. }
  32270. ], PhotoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32271. "svg",
  32272. {
  32273. width: size,
  32274. height: size,
  32275. viewBox: "0 0 14 14",
  32276. fill: "none",
  32277. xmlns: "http://www.w3.org/2000/svg",
  32278. ref: forwardedRef,
  32279. ...props
  32280. },
  32281. React255.createElement(
  32282. "path",
  32283. {
  32284. fillRule: "evenodd",
  32285. clipRule: "evenodd",
  32286. d: "M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  32287. fill: color2
  32288. }
  32289. ),
  32290. React255.createElement(
  32291. "path",
  32292. {
  32293. fillRule: "evenodd",
  32294. clipRule: "evenodd",
  32295. d: "M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",
  32296. fill: color2
  32297. }
  32298. )
  32299. )), ComponentIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32300. "svg",
  32301. {
  32302. width: size,
  32303. height: size,
  32304. viewBox: "0 0 14 14",
  32305. fill: "none",
  32306. xmlns: "http://www.w3.org/2000/svg",
  32307. ref: forwardedRef,
  32308. ...props
  32309. },
  32310. React255.createElement(
  32311. "path",
  32312. {
  32313. fillRule: "evenodd",
  32314. clipRule: "evenodd",
  32315. d: "M3.5 1.004a2.5 2.5 0 00-2.5 2.5v7a2.5 2.5 0 002.5 2.5h7a2.5 2.5 0 002.5-2.5v-7a2.5 2.5 0 00-2.5-2.5h-7zm8.5 5.5H7.5v-4.5h3a1.5 1.5 0 011.5 1.5v3zm0 1v3a1.5 1.5 0 01-1.5 1.5h-3v-4.5H12zm-5.5 4.5v-4.5H2v3a1.5 1.5 0 001.5 1.5h3zM2 6.504h4.5v-4.5h-3a1.5 1.5 0 00-1.5 1.5v3z",
  32316. fill: color2
  32317. }
  32318. )
  32319. )), GridIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32320. "svg",
  32321. {
  32322. width: size,
  32323. height: size,
  32324. viewBox: "0 0 14 14",
  32325. fill: "none",
  32326. xmlns: "http://www.w3.org/2000/svg",
  32327. ref: forwardedRef,
  32328. ...props
  32329. },
  32330. React255.createElement(
  32331. "path",
  32332. {
  32333. fillRule: "evenodd",
  32334. clipRule: "evenodd",
  32335. d: "M1 1.504a.5.5 0 01.5-.5H6a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H1.5a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5h3.5v3.5H2zM7.5 1.504a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5zM1.5 7.504a.5.5 0 00-.5.5v4.5a.5.5 0 00.5.5H6a.5.5 0 00.5-.5v-4.5a.5.5 0 00-.5-.5H1.5zm.5 1v3.5h3.5v-3.5H2zM7.5 8.004a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5z",
  32336. fill: color2
  32337. }
  32338. )
  32339. )), OutlineIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32340. "svg",
  32341. {
  32342. width: size,
  32343. height: size,
  32344. viewBox: "0 0 14 14",
  32345. fill: "none",
  32346. xmlns: "http://www.w3.org/2000/svg",
  32347. ref: forwardedRef,
  32348. ...props
  32349. },
  32350. React255.createElement(
  32351. "path",
  32352. {
  32353. d: "M2 2.004v2H1v-2.5a.5.5 0 01.5-.5H4v1H2zM1 9.004v-4h1v4H1zM1 10.004v2.5a.5.5 0 00.5.5H4v-1H2v-2H1zM10 13.004h2.5a.5.5 0 00.5-.5v-2.5h-1v2h-2v1zM12 4.004h1v-2.5a.5.5 0 00-.5-.5H10v1h2v2zM9 12.004v1H5v-1h4zM9 1.004v1H5v-1h4zM13 9.004h-1v-4h1v4zM7 8.004a1 1 0 100-2 1 1 0 000 2z",
  32354. fill: color2
  32355. }
  32356. )
  32357. )), PhotoDragIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32358. "svg",
  32359. {
  32360. width: size,
  32361. height: size,
  32362. viewBox: "0 0 14 15",
  32363. fill: "none",
  32364. xmlns: "http://www.w3.org/2000/svg",
  32365. ref: forwardedRef,
  32366. ...props
  32367. },
  32368. React255.createElement(
  32369. "path",
  32370. {
  32371. fillRule: "evenodd",
  32372. clipRule: "evenodd",
  32373. d: "M8.25 3.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  32374. fill: color2
  32375. }
  32376. ),
  32377. React255.createElement(
  32378. "path",
  32379. {
  32380. fillRule: "evenodd",
  32381. clipRule: "evenodd",
  32382. d: "M14 7.003v-6.5a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v2.5h1v-2h2v6.5a.5.5 0 00.5.5H10v2H8v1h2.5a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-3.5zm-10-6v5.794L5.646 5.15a.5.5 0 01.708 0L7.5 6.297l2.646-2.647a.5.5 0 01.708 0L13 5.797V1.004H4zm9 6.208l-2.5-2.5-2.293 2.293L9.354 8.15a.5.5 0 11-.708.707L6 6.211l-2 2v1.793h9V7.21z",
  32383. fill: color2
  32384. }
  32385. ),
  32386. React255.createElement(
  32387. "path",
  32388. {
  32389. d: "M0 10.004v-3h1v3H0zM0 13.504v-2.5h1v2h2v1H.5a.5.5 0 01-.5-.5zM7 14.004H4v-1h3v1z",
  32390. fill: color2
  32391. }
  32392. )
  32393. )), PhotoStabilizeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32394. "svg",
  32395. {
  32396. width: size,
  32397. height: size,
  32398. viewBox: "0 0 14 14",
  32399. fill: "none",
  32400. xmlns: "http://www.w3.org/2000/svg",
  32401. ref: forwardedRef,
  32402. ...props
  32403. },
  32404. React255.createElement(
  32405. "path",
  32406. {
  32407. fillRule: "evenodd",
  32408. clipRule: "evenodd",
  32409. d: "M6 4a1.25 1.25 0 110 2.5A1.25 1.25 0 016 4zm0 .5A.75.75 0 106 6a.75.75 0 000-1.5z",
  32410. fill: color2
  32411. }
  32412. ),
  32413. React255.createElement(
  32414. "path",
  32415. {
  32416. fillRule: "evenodd",
  32417. clipRule: "evenodd",
  32418. d: "M11.5 2a.5.5 0 01.5.5v9a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h9zM7.207 9l.647.646a.5.5 0 01-.708.707L5 8.207l-2 2V11h8V8.207l-1.5-1.5L7.207 9zM3 8.793l1.646-1.647.079-.064a.5.5 0 01.629.064L6.5 8.293l2.646-2.647.079-.064a.5.5 0 01.629.064L11 6.793V3H3v5.793z",
  32419. fill: color2
  32420. }
  32421. ),
  32422. React255.createElement(
  32423. "path",
  32424. {
  32425. d: "M0 3.5v-1A2.5 2.5 0 012.5 0h1a.5.5 0 010 1h-1A1.5 1.5 0 001 2.5v1a.5.5 0 01-1 0zM10.5 0h1A2.5 2.5 0 0114 2.5v1a.5.5 0 01-1 0v-1A1.5 1.5 0 0011.5 1h-1a.5.5 0 010-1zM0 10.5v1A2.5 2.5 0 002.5 14h1a.5.5 0 000-1h-1A1.5 1.5 0 011 11.5v-1a.5.5 0 00-1 0zM10.5 14h1a2.5 2.5 0 002.5-2.5v-1a.5.5 0 00-1 0v1a1.5 1.5 0 01-1.5 1.5h-1a.5.5 0 000 1z",
  32426. fill: color2
  32427. }
  32428. )
  32429. )), CameraStabilizeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32430. "svg",
  32431. {
  32432. width: size,
  32433. height: size,
  32434. viewBox: "0 0 14 14",
  32435. fill: "none",
  32436. xmlns: "http://www.w3.org/2000/svg",
  32437. ref: forwardedRef,
  32438. ...props
  32439. },
  32440. React255.createElement("g", { clipPath: "url(#prefix__clip0_2484_400)", fill: color2 }, React255.createElement("path", { d: "M2.5 1A1.5 1.5 0 001 2.5v1a.5.5 0 01-1 0v-1A2.5 2.5 0 012.5 0h1a.5.5 0 010 1h-1zM8 7a1 1 0 11-2 0 1 1 0 012 0z" }), React255.createElement(
  32441. "path",
  32442. {
  32443. fillRule: "evenodd",
  32444. clipRule: "evenodd",
  32445. d: "M5.852 2.223A.5.5 0 016.268 2h1.464a.5.5 0 01.416.223L9.333 4H11.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5h2.167l1.185-1.777zM9 7a2 2 0 11-4 0 2 2 0 014 0z"
  32446. }
  32447. ), React255.createElement("path", { d: "M11.5 1A1.5 1.5 0 0113 2.5v1a.5.5 0 001 0v-1A2.5 2.5 0 0011.5 0h-1a.5.5 0 000 1h1zM2.5 13A1.5 1.5 0 011 11.5v-1a.5.5 0 00-1 0v1A2.5 2.5 0 002.5 14h1a.5.5 0 000-1h-1zM11.5 13a1.5 1.5 0 001.5-1.5v-1a.5.5 0 011 0v1a2.5 2.5 0 01-2.5 2.5h-1a.5.5 0 010-1h1z" })),
  32448. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_2484_400" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  32449. )), GridAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32450. "svg",
  32451. {
  32452. width: size,
  32453. height: size,
  32454. viewBox: "0 0 14 14",
  32455. fill: "none",
  32456. xmlns: "http://www.w3.org/2000/svg",
  32457. ref: forwardedRef,
  32458. ...props
  32459. },
  32460. React255.createElement(
  32461. "path",
  32462. {
  32463. d: "M4 3V1h1v2H4zM4 6v2h1V6H4zM4 11v2h1v-2H4zM9 11v2h1v-2H9zM9 8V6h1v2H9zM9 1v2h1V1H9zM13 5h-2V4h2v1zM11 10h2V9h-2v1zM3 10H1V9h2v1zM1 5h2V4H1v1zM8 5H6V4h2v1zM6 10h2V9H6v1zM4 4h1v1H4V4zM10 4H9v1h1V4zM9 9h1v1H9V9zM5 9H4v1h1V9z",
  32464. fill: color2
  32465. }
  32466. )
  32467. )), SearchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32468. "svg",
  32469. {
  32470. width: size,
  32471. height: size,
  32472. viewBox: "0 0 14 14",
  32473. fill: "none",
  32474. xmlns: "http://www.w3.org/2000/svg",
  32475. ref: forwardedRef,
  32476. ...props
  32477. },
  32478. React255.createElement(
  32479. "path",
  32480. {
  32481. fillRule: "evenodd",
  32482. clipRule: "evenodd",
  32483. d: "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",
  32484. fill: color2
  32485. }
  32486. )
  32487. )), ZoomIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32488. "svg",
  32489. {
  32490. width: size,
  32491. height: size,
  32492. viewBox: "0 0 14 14",
  32493. fill: "none",
  32494. xmlns: "http://www.w3.org/2000/svg",
  32495. ref: forwardedRef,
  32496. ...props
  32497. },
  32498. React255.createElement(
  32499. "path",
  32500. {
  32501. d: "M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",
  32502. fill: color2
  32503. }
  32504. ),
  32505. React255.createElement(
  32506. "path",
  32507. {
  32508. fillRule: "evenodd",
  32509. clipRule: "evenodd",
  32510. d: "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",
  32511. fill: color2
  32512. }
  32513. )
  32514. )), ZoomOutIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32515. "svg",
  32516. {
  32517. width: size,
  32518. height: size,
  32519. viewBox: "0 0 14 14",
  32520. fill: "none",
  32521. xmlns: "http://www.w3.org/2000/svg",
  32522. ref: forwardedRef,
  32523. ...props
  32524. },
  32525. React255.createElement("path", { d: "M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z", fill: color2 }),
  32526. React255.createElement(
  32527. "path",
  32528. {
  32529. fillRule: "evenodd",
  32530. clipRule: "evenodd",
  32531. d: "M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",
  32532. fill: color2
  32533. }
  32534. )
  32535. )), ZoomResetIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32536. "svg",
  32537. {
  32538. width: size,
  32539. height: size,
  32540. viewBox: "0 0 14 14",
  32541. fill: "none",
  32542. xmlns: "http://www.w3.org/2000/svg",
  32543. ref: forwardedRef,
  32544. ...props
  32545. },
  32546. React255.createElement(
  32547. "path",
  32548. {
  32549. d: "M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",
  32550. fill: color2
  32551. }
  32552. )
  32553. )), EyeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32554. "svg",
  32555. {
  32556. width: size,
  32557. height: size,
  32558. viewBox: "0 0 14 14",
  32559. fill: "none",
  32560. xmlns: "http://www.w3.org/2000/svg",
  32561. ref: forwardedRef,
  32562. ...props
  32563. },
  32564. React255.createElement("path", { d: "M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z", fill: color2 }),
  32565. React255.createElement(
  32566. "path",
  32567. {
  32568. fillRule: "evenodd",
  32569. clipRule: "evenodd",
  32570. d: "M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",
  32571. fill: color2
  32572. }
  32573. )
  32574. )), EyeCloseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32575. "svg",
  32576. {
  32577. width: size,
  32578. height: size,
  32579. viewBox: "0 0 14 14",
  32580. fill: "none",
  32581. xmlns: "http://www.w3.org/2000/svg",
  32582. ref: forwardedRef,
  32583. ...props
  32584. },
  32585. React255.createElement(
  32586. "path",
  32587. {
  32588. d: "M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",
  32589. fill: color2
  32590. }
  32591. ),
  32592. React255.createElement(
  32593. "path",
  32594. {
  32595. d: "M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",
  32596. fill: color2
  32597. }
  32598. )
  32599. )), LightningIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32600. "svg",
  32601. {
  32602. width: size,
  32603. height: size,
  32604. viewBox: "0 0 14 14",
  32605. fill: "none",
  32606. xmlns: "http://www.w3.org/2000/svg",
  32607. ref: forwardedRef,
  32608. ...props
  32609. },
  32610. React255.createElement(
  32611. "path",
  32612. {
  32613. fillRule: "evenodd",
  32614. clipRule: "evenodd",
  32615. d: "M2.522 6.6a.566.566 0 00-.176.544.534.534 0 00.382.41l2.781.721-1.493 5.013a.563.563 0 00.216.627.496.496 0 00.63-.06l6.637-6.453a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L2.522 6.6zm7.72.63l-3.067-.804L9.02 2.29 3.814 6.803l2.95.764-1.277 4.285 4.754-4.622zM4.51 13.435l.037.011-.037-.011z",
  32616. fill: color2
  32617. }
  32618. )
  32619. )), LightningOffIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32620. "svg",
  32621. {
  32622. width: size,
  32623. height: size,
  32624. viewBox: "0 0 14 14",
  32625. fill: "none",
  32626. xmlns: "http://www.w3.org/2000/svg",
  32627. ref: forwardedRef,
  32628. ...props
  32629. },
  32630. React255.createElement(
  32631. "path",
  32632. {
  32633. d: "M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",
  32634. fill: color2
  32635. }
  32636. )
  32637. )), MirrorIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32638. "svg",
  32639. {
  32640. width: size,
  32641. height: size,
  32642. viewBox: "0 0 14 14",
  32643. fill: "none",
  32644. xmlns: "http://www.w3.org/2000/svg",
  32645. ref: forwardedRef,
  32646. ...props
  32647. },
  32648. React255.createElement(
  32649. "path",
  32650. {
  32651. fillRule: "evenodd",
  32652. clipRule: "evenodd",
  32653. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5h10v-10l-10 10z",
  32654. fill: color2
  32655. }
  32656. )
  32657. )), GrowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32658. "svg",
  32659. {
  32660. width: size,
  32661. height: size,
  32662. viewBox: "0 0 14 14",
  32663. fill: "none",
  32664. xmlns: "http://www.w3.org/2000/svg",
  32665. ref: forwardedRef,
  32666. ...props
  32667. },
  32668. React255.createElement(
  32669. "path",
  32670. {
  32671. d: "M1.5 1.004a.5.5 0 100 1H12v10.5a.5.5 0 001 0v-10.5a1 1 0 00-1-1H1.5z",
  32672. fill: color2
  32673. }
  32674. ),
  32675. React255.createElement(
  32676. "path",
  32677. {
  32678. d: "M1 3.504a.5.5 0 01.5-.5H10a1 1 0 011 1v8.5a.5.5 0 01-1 0v-8.5H1.5a.5.5 0 01-.5-.5z",
  32679. fill: color2
  32680. }
  32681. ),
  32682. React255.createElement(
  32683. "path",
  32684. {
  32685. fillRule: "evenodd",
  32686. clipRule: "evenodd",
  32687. d: "M1.5 5.004a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h7a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5h-7zm.5 1v6h6v-6H2z",
  32688. fill: color2
  32689. }
  32690. )
  32691. )), ContrastIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32692. "svg",
  32693. {
  32694. width: size,
  32695. height: size,
  32696. viewBox: "0 0 14 15",
  32697. fill: "none",
  32698. xmlns: "http://www.w3.org/2000/svg",
  32699. ref: forwardedRef,
  32700. ...props
  32701. },
  32702. React255.createElement(
  32703. "path",
  32704. {
  32705. fillRule: "evenodd",
  32706. clipRule: "evenodd",
  32707. d: "M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",
  32708. fill: color2
  32709. }
  32710. )
  32711. )), SwitchAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32712. "svg",
  32713. {
  32714. width: size,
  32715. height: size,
  32716. viewBox: "0 0 14 15",
  32717. fill: "none",
  32718. xmlns: "http://www.w3.org/2000/svg",
  32719. ref: forwardedRef,
  32720. ...props
  32721. },
  32722. React255.createElement(
  32723. "path",
  32724. {
  32725. fillRule: "evenodd",
  32726. clipRule: "evenodd",
  32727. d: "M3 3.004v-2.5a.5.5 0 01.5-.5h10a.5.5 0 01.5.5v10a.5.5 0 01-.5.5H11v2.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H3zm1 0v-2h9v9h-2v-6.5a.5.5 0 00-.5-.5H4zm6 8v2H1v-9h2v6.5a.5.5 0 00.5.5H10zm0-1H4v-6h6v6z",
  32728. fill: color2
  32729. }
  32730. )
  32731. )), ContrastIgnoredIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32732. "svg",
  32733. {
  32734. width: size,
  32735. height: size,
  32736. viewBox: "0 0 14 14",
  32737. fill: "none",
  32738. xmlns: "http://www.w3.org/2000/svg",
  32739. ref: forwardedRef,
  32740. ...props
  32741. },
  32742. React255.createElement(
  32743. "g",
  32744. {
  32745. clipPath: "url(#prefix__clip0_2359_559)",
  32746. fillRule: "evenodd",
  32747. clipRule: "evenodd",
  32748. fill: color2
  32749. },
  32750. React255.createElement("path", { d: "M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h7.176a4.526 4.526 0 01-.916-1H1v-9h2v6.5a.499.499 0 00.497.5h2.531a4.548 4.548 0 01-.001-1h-1.32l2.16-2.16c.274-.374.603-.703.977-.977L10 4.711v1.316a4.552 4.552 0 011 0V3.504a.48.48 0 00-.038-.191.5.5 0 00-.462-.31H4v-2h9v5.755c.378.253.715.561 1 .913V.504a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm5.293 0H7.707L4 7.71v1.586l5.293-5.293z" }),
  32751. React255.createElement("path", { d: "M14 10.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-5.5 0A.5.5 0 019 10h3a.5.5 0 010 1H9a.5.5 0 01-.5-.5z" })
  32752. ),
  32753. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_2359_559" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  32754. )), PaintBrushIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32755. "svg",
  32756. {
  32757. width: size,
  32758. height: size,
  32759. viewBox: "0 0 14 14",
  32760. fill: "none",
  32761. xmlns: "http://www.w3.org/2000/svg",
  32762. ref: forwardedRef,
  32763. ...props
  32764. },
  32765. React255.createElement(
  32766. "path",
  32767. {
  32768. fillRule: "evenodd",
  32769. clipRule: "evenodd",
  32770. d: "M11.854.146a.5.5 0 00-.708 0L2.983 8.31a2.24 2.24 0 00-1.074.6C.677 10.14.24 11.902.085 12.997 0 13.6 0 14 0 14s.4 0 1.002-.085c1.095-.155 2.857-.592 4.089-1.824a2.24 2.24 0 00.6-1.074l8.163-8.163a.5.5 0 000-.708l-2-2zM5.6 9.692l.942-.942L5.25 7.457l-.942.943A2.242 2.242 0 015.6 9.692zm1.649-1.65L12.793 2.5 11.5 1.207 5.957 6.75 7.25 8.043zM4.384 9.617a1.25 1.25 0 010 1.768c-.767.766-1.832 1.185-2.78 1.403-.17.04-.335.072-.49.098.027-.154.06-.318.099-.49.219-.947.637-2.012 1.403-2.779a1.25 1.25 0 011.768 0z",
  32771. fill: color2
  32772. }
  32773. )
  32774. )), PaintBrushAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32775. "svg",
  32776. {
  32777. width: size,
  32778. height: size,
  32779. viewBox: "0 0 14 14",
  32780. fill: "none",
  32781. xmlns: "http://www.w3.org/2000/svg",
  32782. ref: forwardedRef,
  32783. ...props
  32784. },
  32785. React255.createElement(
  32786. "path",
  32787. {
  32788. fillRule: "evenodd",
  32789. clipRule: "evenodd",
  32790. d: "M10.027.271a.752.752 0 01.947 0l.057.052 2.646 2.647.052.056a.752.752 0 010 .948l-.052.056-4.47 4.47 1.147 1.146.293-.293a.5.5 0 01.707 0l2.293 2.293a.5.5 0 010 .707l-1.293 1.293-.078.065a.502.502 0 01-.55 0l-.08-.065-2.292-2.293a.5.5 0 010-.707l.293-.293L8.324 9.03a.75.75 0 010-1.06l4.47-4.47L10.5 1.207l-.647.646.086.086a1.5 1.5 0 010 2.122L4.5 9.5l-.177.183C2.592 11.53 4 12.03 4 13a1 1 0 01-2 0c0-1 1.464-1.537 0-3l.003-.004-.063-.057-.879-.879a1.5 1.5 0 01-.103-2.006l.103-.115L6.94 1.061a1.5 1.5 0 012.121 0l.086.085.823-.823.057-.052zM10.415 11L12 12.586l.585-.586-1.585-1.586-.586.586zM8.354 1.768a.5.5 0 00-.629-.064l-.078.064L2.32 7.094c.782.138 2.263-.097 3.52-.349l3.393-3.392.063-.078a.501.501 0 000-.55l-.063-.079-.879-.878z",
  32791. fill: color2
  32792. }
  32793. )
  32794. )), RulerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32795. "svg",
  32796. {
  32797. width: size,
  32798. height: size,
  32799. viewBox: "0 0 14 14",
  32800. fill: "none",
  32801. xmlns: "http://www.w3.org/2000/svg",
  32802. ref: forwardedRef,
  32803. ...props
  32804. },
  32805. React255.createElement(
  32806. "path",
  32807. {
  32808. d: "M1.5 1.004a.5.5 0 01.5.5v.5h10v-.5a.5.5 0 011 0v2a.5.5 0 01-1 0v-.5H2v.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5z",
  32809. fill: color2
  32810. }
  32811. ),
  32812. React255.createElement(
  32813. "path",
  32814. {
  32815. fillRule: "evenodd",
  32816. clipRule: "evenodd",
  32817. d: "M1.5 6a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5h-11zM2 7v5h10V7h-1v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H7.5v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H4v2.5a.5.5 0 01-1 0V7H2z",
  32818. fill: color2
  32819. }
  32820. )
  32821. )), CameraIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32822. "svg",
  32823. {
  32824. width: size,
  32825. height: size,
  32826. viewBox: "0 0 14 14",
  32827. fill: "none",
  32828. xmlns: "http://www.w3.org/2000/svg",
  32829. ref: forwardedRef,
  32830. ...props
  32831. },
  32832. React255.createElement(
  32833. "path",
  32834. {
  32835. fillRule: "evenodd",
  32836. clipRule: "evenodd",
  32837. d: "M10 7a3 3 0 11-6 0 3 3 0 016 0zM9 7a2 2 0 11-4 0 2 2 0 014 0z",
  32838. fill: color2
  32839. }
  32840. ),
  32841. React255.createElement(
  32842. "path",
  32843. {
  32844. fillRule: "evenodd",
  32845. clipRule: "evenodd",
  32846. d: "M2.5 1a.5.5 0 00-.5.5v.504H.5a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H6V1.5a.5.5 0 00-.5-.5h-3zM1 3.004v8h12v-8H1z",
  32847. fill: color2
  32848. }
  32849. )
  32850. )), VideoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32851. "svg",
  32852. {
  32853. width: size,
  32854. height: size,
  32855. viewBox: "0 0 14 14",
  32856. fill: "none",
  32857. xmlns: "http://www.w3.org/2000/svg",
  32858. ref: forwardedRef,
  32859. ...props
  32860. },
  32861. React255.createElement("path", { d: "M2.5 10a.5.5 0 100-1 .5.5 0 000 1z", fill: color2 }),
  32862. React255.createElement(
  32863. "path",
  32864. {
  32865. fillRule: "evenodd",
  32866. clipRule: "evenodd",
  32867. d: "M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",
  32868. fill: color2
  32869. }
  32870. )
  32871. )), SpeakerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32872. "svg",
  32873. {
  32874. width: size,
  32875. height: size,
  32876. viewBox: "0 0 14 14",
  32877. fill: "none",
  32878. xmlns: "http://www.w3.org/2000/svg",
  32879. ref: forwardedRef,
  32880. ...props
  32881. },
  32882. React255.createElement(
  32883. "path",
  32884. {
  32885. fillRule: "evenodd",
  32886. clipRule: "evenodd",
  32887. d: "M1 4.5v5a.5.5 0 00.5.5H4l3.17 2.775a.5.5 0 00.83-.377V1.602a.5.5 0 00-.83-.376L4 4H1.5a.5.5 0 00-.5.5zM4 9V5H2v4h2zm.998.545A.504.504 0 005 9.5v-5c0-.015 0-.03-.002-.044L7 2.704v8.592L4.998 9.545z",
  32888. fill: color2
  32889. }
  32890. ),
  32891. React255.createElement(
  32892. "path",
  32893. {
  32894. d: "M10.15 1.752a.5.5 0 00-.3.954 4.502 4.502 0 010 8.588.5.5 0 00.3.954 5.502 5.502 0 000-10.496z",
  32895. fill: color2
  32896. }
  32897. ),
  32898. React255.createElement(
  32899. "path",
  32900. {
  32901. d: "M10.25 3.969a.5.5 0 00-.5.865 2.499 2.499 0 010 4.332.5.5 0 10.5.866 3.499 3.499 0 000-6.063z",
  32902. fill: color2
  32903. }
  32904. )
  32905. )), PlayIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32906. "svg",
  32907. {
  32908. width: size,
  32909. height: size,
  32910. viewBox: "0 0 14 14",
  32911. fill: "none",
  32912. xmlns: "http://www.w3.org/2000/svg",
  32913. ref: forwardedRef,
  32914. ...props
  32915. },
  32916. React255.createElement(
  32917. "path",
  32918. {
  32919. d: "M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",
  32920. fill: color2
  32921. }
  32922. )
  32923. )), PlayBackIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32924. "svg",
  32925. {
  32926. width: size,
  32927. height: size,
  32928. viewBox: "0 0 14 14",
  32929. fill: "none",
  32930. xmlns: "http://www.w3.org/2000/svg",
  32931. ref: forwardedRef,
  32932. ...props
  32933. },
  32934. React255.createElement(
  32935. "path",
  32936. {
  32937. d: "M11.24 12.035L3.697 7.427A.494.494 0 013.5 7.2v4.05a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0V6.8a.494.494 0 01.198-.227l7.541-4.608A.5.5 0 0112 2.39v9.217a.5.5 0 01-.76.427z",
  32938. fill: color2
  32939. }
  32940. )
  32941. )), PlayNextIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32942. "svg",
  32943. {
  32944. width: size,
  32945. height: size,
  32946. viewBox: "0 0 14 14",
  32947. fill: "none",
  32948. xmlns: "http://www.w3.org/2000/svg",
  32949. ref: forwardedRef,
  32950. ...props
  32951. },
  32952. React255.createElement(
  32953. "path",
  32954. {
  32955. d: "M2.76 12.035l7.542-4.608A.495.495 0 0010.5 7.2v4.05a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0V6.8a.495.495 0 00-.198-.227L2.76 1.965A.5.5 0 002 2.39v9.217a.5.5 0 00.76.427z",
  32956. fill: color2
  32957. }
  32958. )
  32959. )), RewindIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32960. "svg",
  32961. {
  32962. width: size,
  32963. height: size,
  32964. viewBox: "0 0 14 14",
  32965. fill: "none",
  32966. xmlns: "http://www.w3.org/2000/svg",
  32967. ref: forwardedRef,
  32968. ...props
  32969. },
  32970. React255.createElement(
  32971. "path",
  32972. {
  32973. d: "M9 2.42v2.315l4.228-2.736a.5.5 0 01.772.42v9.162a.5.5 0 01-.772.42L9 9.263v2.317a.5.5 0 01-.772.42L1.5 7.647v3.603a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0v3.603L8.228 2A.5.5 0 019 2.42z",
  32974. fill: color2
  32975. }
  32976. )
  32977. )), FastForwardIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32978. "svg",
  32979. {
  32980. width: size,
  32981. height: size,
  32982. viewBox: "0 0 14 14",
  32983. fill: "none",
  32984. xmlns: "http://www.w3.org/2000/svg",
  32985. ref: forwardedRef,
  32986. ...props
  32987. },
  32988. React255.createElement(
  32989. "path",
  32990. {
  32991. d: "M5 2.42v2.315L.772 1.999a.5.5 0 00-.772.42v9.162a.5.5 0 00.772.42L5 9.263v2.317a.5.5 0 00.772.42L12.5 7.647v3.603a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0v3.603L5.772 2A.5.5 0 005 2.42z",
  32992. fill: color2
  32993. }
  32994. )
  32995. )), StopAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  32996. "svg",
  32997. {
  32998. width: size,
  32999. height: size,
  33000. viewBox: "0 0 14 14",
  33001. fill: "none",
  33002. xmlns: "http://www.w3.org/2000/svg",
  33003. ref: forwardedRef,
  33004. ...props
  33005. },
  33006. React255.createElement(
  33007. "path",
  33008. {
  33009. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",
  33010. fill: color2
  33011. }
  33012. )
  33013. )), SunIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33014. "svg",
  33015. {
  33016. width: size,
  33017. height: size,
  33018. viewBox: "0 0 14 14",
  33019. fill: "none",
  33020. xmlns: "http://www.w3.org/2000/svg",
  33021. ref: forwardedRef,
  33022. ...props
  33023. },
  33024. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3492)", fill: color2 }, React255.createElement("path", { d: "M7.5.5a.5.5 0 00-1 0V2a.5.5 0 001 0V.5z" }), React255.createElement(
  33025. "path",
  33026. {
  33027. fillRule: "evenodd",
  33028. clipRule: "evenodd",
  33029. d: "M7 10a3 3 0 100-6 3 3 0 000 6zm0-1a2 2 0 100-4 2 2 0 000 4z"
  33030. }
  33031. ), React255.createElement("path", { d: "M7 11.5a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V12a.5.5 0 01.5-.5zM11.5 7a.5.5 0 01.5-.5h1.5a.5.5 0 010 1H12a.5.5 0 01-.5-.5zM.5 6.5a.5.5 0 000 1H2a.5.5 0 000-1H.5zM3.818 10.182a.5.5 0 010 .707l-1.06 1.06a.5.5 0 11-.708-.706l1.06-1.06a.5.5 0 01.708 0zM11.95 2.757a.5.5 0 10-.707-.707l-1.061 1.061a.5.5 0 10.707.707l1.06-1.06zM10.182 10.182a.5.5 0 01.707 0l1.06 1.06a.5.5 0 11-.706.708l-1.061-1.06a.5.5 0 010-.708zM2.757 2.05a.5.5 0 10-.707.707l1.06 1.061a.5.5 0 00.708-.707l-1.06-1.06z" })),
  33032. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3492" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33033. )), MoonIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33034. "svg",
  33035. {
  33036. width: size,
  33037. height: size,
  33038. viewBox: "0 0 14 14",
  33039. fill: "none",
  33040. xmlns: "http://www.w3.org/2000/svg",
  33041. ref: forwardedRef,
  33042. ...props
  33043. },
  33044. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3493)" }, React255.createElement(
  33045. "path",
  33046. {
  33047. fillRule: "evenodd",
  33048. clipRule: "evenodd",
  33049. d: "M7.78.044A6.968 6.968 0 003.5.94a6.999 6.999 0 107 12.122 6.97 6.97 0 002.87-3.16c.098-.213-.144-.417-.359-.322a4.976 4.976 0 01-2.01.42A5 5 0 018.542.645C8.747.53 8.73.214 8.5.164a7.042 7.042 0 00-.72-.12zm-1.268.975a6 6 0 004.98 9.96 6 6 0 11-4.98-9.96z",
  33050. fill: color2
  33051. }
  33052. )),
  33053. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3493" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33054. )), StopAltHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33055. "svg",
  33056. {
  33057. width: size,
  33058. height: size,
  33059. viewBox: "0 0 14 14",
  33060. fill: "none",
  33061. xmlns: "http://www.w3.org/2000/svg",
  33062. ref: forwardedRef,
  33063. ...props
  33064. },
  33065. React255.createElement(
  33066. "path",
  33067. {
  33068. fillRule: "evenodd",
  33069. clipRule: "evenodd",
  33070. d: "M2.2 2.204v9.6h9.6v-9.6H2.2zm-.7-1.2a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11z",
  33071. fill: color2
  33072. }
  33073. )
  33074. )), PlayHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33075. "svg",
  33076. {
  33077. width: size,
  33078. height: size,
  33079. viewBox: "0 0 14 14",
  33080. fill: "none",
  33081. xmlns: "http://www.w3.org/2000/svg",
  33082. ref: forwardedRef,
  33083. ...props
  33084. },
  33085. React255.createElement(
  33086. "path",
  33087. {
  33088. fillRule: "evenodd",
  33089. clipRule: "evenodd",
  33090. d: "M4.2 10.88L10.668 7 4.2 3.12v7.76zM3 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L4.212 1.727A.8.8 0 003 2.413z",
  33091. fill: color2
  33092. }
  33093. )
  33094. )), PlayAllHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33095. "svg",
  33096. {
  33097. width: size,
  33098. height: size,
  33099. viewBox: "0 0 14 14",
  33100. fill: "none",
  33101. xmlns: "http://www.w3.org/2000/svg",
  33102. ref: forwardedRef,
  33103. ...props
  33104. },
  33105. React255.createElement(
  33106. "path",
  33107. {
  33108. fillRule: "evenodd",
  33109. clipRule: "evenodd",
  33110. d: "M5.2 10.88L11.668 7 5.2 3.12v7.76zM4 2.414v9.174a.8.8 0 001.212.686l7.645-4.587a.8.8 0 000-1.372L5.212 1.727A.8.8 0 004 2.413zM1.5 1.6a.6.6 0 01.6.6v9.6a.6.6 0 11-1.2 0V2.2a.6.6 0 01.6-.6z",
  33111. fill: color2
  33112. }
  33113. ),
  33114. React255.createElement(
  33115. "path",
  33116. {
  33117. fillRule: "evenodd",
  33118. clipRule: "evenodd",
  33119. d: "M.963 1.932a.6.6 0 01.805-.268l1 .5a.6.6 0 01-.536 1.073l-1-.5a.6.6 0 01-.269-.805zM3.037 11.132a.6.6 0 01-.269.805l-1 .5a.6.6 0 01-.536-1.073l1-.5a.6.6 0 01.805.268z",
  33120. fill: color2
  33121. }
  33122. )
  33123. )), StopIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33124. "svg",
  33125. {
  33126. width: size,
  33127. height: size,
  33128. viewBox: "0 0 14 14",
  33129. fill: "none",
  33130. xmlns: "http://www.w3.org/2000/svg",
  33131. ref: forwardedRef,
  33132. ...props
  33133. },
  33134. React255.createElement(
  33135. "path",
  33136. {
  33137. d: "M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",
  33138. fill: color2
  33139. }
  33140. ),
  33141. React255.createElement(
  33142. "path",
  33143. {
  33144. fillRule: "evenodd",
  33145. clipRule: "evenodd",
  33146. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  33147. fill: color2
  33148. }
  33149. )
  33150. )), SideBySideIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33151. "svg",
  33152. {
  33153. width: size,
  33154. height: size,
  33155. viewBox: "0 0 14 14",
  33156. fill: "none",
  33157. xmlns: "http://www.w3.org/2000/svg",
  33158. ref: forwardedRef,
  33159. ...props
  33160. },
  33161. React255.createElement(
  33162. "path",
  33163. {
  33164. fillRule: "evenodd",
  33165. clipRule: "evenodd",
  33166. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5v-10h5v10H2z",
  33167. fill: color2
  33168. }
  33169. )
  33170. )), StackedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33171. "svg",
  33172. {
  33173. width: size,
  33174. height: size,
  33175. viewBox: "0 0 14 14",
  33176. fill: "none",
  33177. xmlns: "http://www.w3.org/2000/svg",
  33178. ref: forwardedRef,
  33179. ...props
  33180. },
  33181. React255.createElement(
  33182. "path",
  33183. {
  33184. fillRule: "evenodd",
  33185. clipRule: "evenodd",
  33186. d: "M12.5 1.004a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11zm-10.5 1h10v5H2v-5z",
  33187. fill: color2
  33188. }
  33189. )
  33190. )), BookIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33191. "svg",
  33192. {
  33193. width: size,
  33194. height: size,
  33195. viewBox: "0 0 14 14",
  33196. fill: "none",
  33197. xmlns: "http://www.w3.org/2000/svg",
  33198. ref: forwardedRef,
  33199. ...props
  33200. },
  33201. React255.createElement(
  33202. "path",
  33203. {
  33204. fillRule: "evenodd",
  33205. clipRule: "evenodd",
  33206. d: "M13 2a2 2 0 00-2-2H1.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5H11a2 2 0 002-2V2zM3 13h8a1 1 0 001-1V2a1 1 0 00-1-1H7v6.004a.5.5 0 01-.856.352l-.002-.002L5.5 6.71l-.645.647A.5.5 0 014 7.009V1H3v12zM5 1v4.793l.146-.146a.5.5 0 01.743.039l.111.11V1H5z",
  33207. fill: color2
  33208. }
  33209. )
  33210. )), DocumentIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33211. "svg",
  33212. {
  33213. width: size,
  33214. height: size,
  33215. viewBox: "0 0 14 14",
  33216. fill: "none",
  33217. xmlns: "http://www.w3.org/2000/svg",
  33218. ref: forwardedRef,
  33219. ...props
  33220. },
  33221. React255.createElement(
  33222. "path",
  33223. {
  33224. d: "M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",
  33225. fill: color2
  33226. }
  33227. ),
  33228. React255.createElement(
  33229. "path",
  33230. {
  33231. fillRule: "evenodd",
  33232. clipRule: "evenodd",
  33233. d: "M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",
  33234. fill: color2
  33235. }
  33236. )
  33237. )), CopyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33238. "svg",
  33239. {
  33240. width: size,
  33241. height: size,
  33242. viewBox: "0 0 14 15",
  33243. fill: "none",
  33244. xmlns: "http://www.w3.org/2000/svg",
  33245. ref: forwardedRef,
  33246. ...props
  33247. },
  33248. React255.createElement(
  33249. "path",
  33250. {
  33251. fillRule: "evenodd",
  33252. clipRule: "evenodd",
  33253. d: "M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",
  33254. fill: color2
  33255. }
  33256. )
  33257. )), FilesIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33258. "svg",
  33259. {
  33260. width: size,
  33261. height: size,
  33262. viewBox: "0 0 14 15",
  33263. fill: "none",
  33264. xmlns: "http://www.w3.org/2000/svg",
  33265. ref: forwardedRef,
  33266. ...props
  33267. },
  33268. React255.createElement(
  33269. "path",
  33270. {
  33271. d: "M6.5 11a.5.5 0 010 1h-4a.5.5 0 010-1h4zM4.5 5a.5.5 0 01.5.5V7h1.5a.5.5 0 010 1H5v1.5a.5.5 0 01-1 0V8H2.5a.5.5 0 010-1H4V5.5a.5.5 0 01.5-.5z",
  33272. fill: color2
  33273. }
  33274. ),
  33275. React255.createElement(
  33276. "path",
  33277. {
  33278. fillRule: "evenodd",
  33279. clipRule: "evenodd",
  33280. d: "M11.5.004a.5.5 0 01.357.15l1.993 1.993a.5.5 0 01.15.358v8a.5.5 0 01-.5.5H9v2.499a.5.5 0 01-.5.5h-8a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H5v-2.5a.5.5 0 01.5-.5h6zm-10.5 13h7v-7l-2-2H1v9zm5-10h.5a.5.5 0 01.357.15L8.85 5.146a.5.5 0 01.15.358v4.5h4v-7l-2-2H6v2z",
  33281. fill: color2
  33282. }
  33283. )
  33284. )), CategoryIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33285. "svg",
  33286. {
  33287. width: size,
  33288. height: size,
  33289. viewBox: "0 0 14 14",
  33290. fill: "none",
  33291. xmlns: "http://www.w3.org/2000/svg",
  33292. ref: forwardedRef,
  33293. ...props
  33294. },
  33295. React255.createElement(
  33296. "path",
  33297. {
  33298. d: "M3 1.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM2 3.504a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z",
  33299. fill: color2
  33300. }
  33301. ),
  33302. React255.createElement(
  33303. "path",
  33304. {
  33305. fillRule: "evenodd",
  33306. clipRule: "evenodd",
  33307. d: "M1 5.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-7zM2 12V6h10v6H2z",
  33308. fill: color2
  33309. }
  33310. )
  33311. )), FolderIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33312. "svg",
  33313. {
  33314. width: size,
  33315. height: size,
  33316. viewBox: "0 0 14 14",
  33317. fill: "none",
  33318. xmlns: "http://www.w3.org/2000/svg",
  33319. ref: forwardedRef,
  33320. ...props
  33321. },
  33322. React255.createElement(
  33323. "path",
  33324. {
  33325. fillRule: "evenodd",
  33326. clipRule: "evenodd",
  33327. d: "M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z",
  33328. fill: color2
  33329. }
  33330. )
  33331. )), PrintIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33332. "svg",
  33333. {
  33334. width: size,
  33335. height: size,
  33336. viewBox: "0 0 14 14",
  33337. fill: "none",
  33338. xmlns: "http://www.w3.org/2000/svg",
  33339. ref: forwardedRef,
  33340. ...props
  33341. },
  33342. React255.createElement(
  33343. "path",
  33344. {
  33345. d: "M4.5 8.004a.5.5 0 100 1h5a.5.5 0 000-1h-5zM4.5 10.004a.5.5 0 000 1h5a.5.5 0 000-1h-5z",
  33346. fill: color2
  33347. }
  33348. ),
  33349. React255.createElement(
  33350. "path",
  33351. {
  33352. fillRule: "evenodd",
  33353. clipRule: "evenodd",
  33354. d: "M2 1.504a.5.5 0 01.5-.5h8a.498.498 0 01.357.15l.993.993c.093.09.15.217.15.357v1.5h1.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5H12v2.5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5H2v-2.5zm11 7.5h-1v-2.5a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v2.5H1v-4h12v4zm-2-6v1H3v-2h7v.5a.5.5 0 00.5.5h.5zm-8 9h8v-5H3v5z",
  33355. fill: color2
  33356. }
  33357. )
  33358. )), GraphLineIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33359. "svg",
  33360. {
  33361. width: size,
  33362. height: size,
  33363. viewBox: "0 0 14 14",
  33364. fill: "none",
  33365. xmlns: "http://www.w3.org/2000/svg",
  33366. ref: forwardedRef,
  33367. ...props
  33368. },
  33369. React255.createElement(
  33370. "path",
  33371. {
  33372. d: "M5.146 6.15a.5.5 0 01.708 0L7 7.297 9.146 5.15a.5.5 0 01.708 0l1 1a.5.5 0 01-.708.707L9.5 6.211 7.354 8.357a.5.5 0 01-.708 0L5.5 7.211 3.854 8.857a.5.5 0 11-.708-.707l2-2z",
  33373. fill: color2
  33374. }
  33375. ),
  33376. React255.createElement(
  33377. "path",
  33378. {
  33379. fillRule: "evenodd",
  33380. clipRule: "evenodd",
  33381. d: "M1.5 1.004a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11zm.5 1v10h10v-10H2z",
  33382. fill: color2
  33383. }
  33384. )
  33385. )), CalendarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33386. "svg",
  33387. {
  33388. width: size,
  33389. height: size,
  33390. viewBox: "0 0 14 14",
  33391. fill: "none",
  33392. xmlns: "http://www.w3.org/2000/svg",
  33393. ref: forwardedRef,
  33394. ...props
  33395. },
  33396. React255.createElement(
  33397. "path",
  33398. {
  33399. fillRule: "evenodd",
  33400. clipRule: "evenodd",
  33401. d: "M3.5 0a.5.5 0 01.5.5V1h6V.5a.5.5 0 011 0V1h1.5a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5H3V.5a.5.5 0 01.5-.5zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 4v2.3h3V4H9zM5.5 6.3h3V4h-3v2.3z",
  33402. fill: color2
  33403. }
  33404. )
  33405. )), GraphBarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33406. "svg",
  33407. {
  33408. width: size,
  33409. height: size,
  33410. viewBox: "0 0 14 14",
  33411. fill: "none",
  33412. xmlns: "http://www.w3.org/2000/svg",
  33413. ref: forwardedRef,
  33414. ...props
  33415. },
  33416. React255.createElement(
  33417. "path",
  33418. {
  33419. d: "M12 2.5a.5.5 0 00-1 0v10a.5.5 0 001 0v-10zM9 4.5a.5.5 0 00-1 0v8a.5.5 0 001 0v-8zM5.5 7a.5.5 0 01.5.5v5a.5.5 0 01-1 0v-5a.5.5 0 01.5-.5zM3 10.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2z",
  33420. fill: color2
  33421. }
  33422. )
  33423. )), AlignLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33424. "svg",
  33425. {
  33426. width: size,
  33427. height: size,
  33428. viewBox: "0 0 14 14",
  33429. fill: "none",
  33430. xmlns: "http://www.w3.org/2000/svg",
  33431. ref: forwardedRef,
  33432. ...props
  33433. },
  33434. React255.createElement(
  33435. "path",
  33436. {
  33437. d: "M13 2a.5.5 0 010 1H1a.5.5 0 010-1h12zM10 5a.5.5 0 010 1H1a.5.5 0 010-1h9zM11.5 8.5A.5.5 0 0011 8H1a.5.5 0 000 1h10a.5.5 0 00.5-.5zM7.5 11a.5.5 0 010 1H1a.5.5 0 010-1h6.5z",
  33438. fill: color2
  33439. }
  33440. )
  33441. )), AlignRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33442. "svg",
  33443. {
  33444. width: size,
  33445. height: size,
  33446. viewBox: "0 0 14 14",
  33447. fill: "none",
  33448. xmlns: "http://www.w3.org/2000/svg",
  33449. ref: forwardedRef,
  33450. ...props
  33451. },
  33452. React255.createElement(
  33453. "path",
  33454. {
  33455. d: "M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM4 5a.5.5 0 000 1h9a.5.5 0 000-1H4zM2.5 8.5A.5.5 0 013 8h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1H13a.5.5 0 000-1H6.5z",
  33456. fill: color2
  33457. }
  33458. )
  33459. )), FilterIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33460. "svg",
  33461. {
  33462. width: size,
  33463. height: size,
  33464. viewBox: "0 0 14 14",
  33465. fill: "none",
  33466. xmlns: "http://www.w3.org/2000/svg",
  33467. ref: forwardedRef,
  33468. ...props
  33469. },
  33470. React255.createElement(
  33471. "path",
  33472. {
  33473. d: "M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM3 5a.5.5 0 000 1h8a.5.5 0 000-1H3zM4.5 8.5A.5.5 0 015 8h4a.5.5 0 010 1H5a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1h1a.5.5 0 000-1h-1z",
  33474. fill: color2
  33475. }
  33476. )
  33477. )), DocChartIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33478. "svg",
  33479. {
  33480. width: size,
  33481. height: size,
  33482. viewBox: "0 0 14 14",
  33483. fill: "none",
  33484. xmlns: "http://www.w3.org/2000/svg",
  33485. ref: forwardedRef,
  33486. ...props
  33487. },
  33488. React255.createElement(
  33489. "path",
  33490. {
  33491. fillRule: "evenodd",
  33492. clipRule: "evenodd",
  33493. d: "M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 6.3h3V4H9v2.3zm-3.5 0h3V4h-3v2.3z",
  33494. fill: color2
  33495. }
  33496. )
  33497. )), DocListIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33498. "svg",
  33499. {
  33500. width: size,
  33501. height: size,
  33502. viewBox: "0 0 14 14",
  33503. fill: "none",
  33504. xmlns: "http://www.w3.org/2000/svg",
  33505. ref: forwardedRef,
  33506. ...props
  33507. },
  33508. React255.createElement(
  33509. "path",
  33510. {
  33511. d: "M3.5 6.5A.5.5 0 014 6h6a.5.5 0 010 1H4a.5.5 0 01-.5-.5zM4 9a.5.5 0 000 1h6a.5.5 0 000-1H4z",
  33512. fill: color2
  33513. }
  33514. ),
  33515. React255.createElement(
  33516. "path",
  33517. {
  33518. fillRule: "evenodd",
  33519. clipRule: "evenodd",
  33520. d: "M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v8h10V4H2z",
  33521. fill: color2
  33522. }
  33523. )
  33524. )), DragIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33525. "svg",
  33526. {
  33527. width: size,
  33528. height: size,
  33529. viewBox: "0 0 14 14",
  33530. fill: "none",
  33531. xmlns: "http://www.w3.org/2000/svg",
  33532. ref: forwardedRef,
  33533. ...props
  33534. },
  33535. React255.createElement(
  33536. "path",
  33537. {
  33538. d: "M13 4a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 9.5A.5.5 0 0013 9H1a.5.5 0 000 1h12a.5.5 0 00.5-.5z",
  33539. fill: color2
  33540. }
  33541. )
  33542. )), MenuIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33543. "svg",
  33544. {
  33545. width: size,
  33546. height: size,
  33547. viewBox: "0 0 14 14",
  33548. fill: "none",
  33549. xmlns: "http://www.w3.org/2000/svg",
  33550. ref: forwardedRef,
  33551. ...props
  33552. },
  33553. React255.createElement(
  33554. "path",
  33555. {
  33556. d: "M13 3.5a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 10a.5.5 0 00-.5-.5H1a.5.5 0 000 1h12a.5.5 0 00.5-.5zM13 6.5a.5.5 0 010 1H1a.5.5 0 010-1h12z",
  33557. fill: color2
  33558. }
  33559. )
  33560. )), MarkupIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33561. "svg",
  33562. {
  33563. width: size,
  33564. height: size,
  33565. viewBox: "0 0 14 14",
  33566. fill: "none",
  33567. xmlns: "http://www.w3.org/2000/svg",
  33568. ref: forwardedRef,
  33569. ...props
  33570. },
  33571. React255.createElement(
  33572. "path",
  33573. {
  33574. d: "M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",
  33575. fill: color2
  33576. }
  33577. )
  33578. )), BoldIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33579. "svg",
  33580. {
  33581. width: size,
  33582. height: size,
  33583. viewBox: "0 0 14 14",
  33584. fill: "none",
  33585. xmlns: "http://www.w3.org/2000/svg",
  33586. ref: forwardedRef,
  33587. ...props
  33588. },
  33589. React255.createElement(
  33590. "path",
  33591. {
  33592. fillRule: "evenodd",
  33593. clipRule: "evenodd",
  33594. d: "M3 2v1.5h1v7H3V12h5a3 3 0 001.791-5.407A2.75 2.75 0 008 2.011V2H3zm5 5.5H5.5v3H8a1.5 1.5 0 100-3zm-.25-4H5.5V6h2.25a1.25 1.25 0 100-2.5z",
  33595. fill: color2
  33596. }
  33597. )
  33598. )), ItalicIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33599. "svg",
  33600. {
  33601. width: size,
  33602. height: size,
  33603. viewBox: "0 0 14 14",
  33604. fill: "none",
  33605. xmlns: "http://www.w3.org/2000/svg",
  33606. ref: forwardedRef,
  33607. ...props
  33608. },
  33609. React255.createElement("path", { d: "M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2z", fill: color2 })
  33610. )), PaperClipIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33611. "svg",
  33612. {
  33613. width: size,
  33614. height: size,
  33615. viewBox: "0 0 14 14",
  33616. fill: "none",
  33617. xmlns: "http://www.w3.org/2000/svg",
  33618. ref: forwardedRef,
  33619. ...props
  33620. },
  33621. React255.createElement(
  33622. "path",
  33623. {
  33624. d: "M10.553 2.268a1.5 1.5 0 00-2.12 0L2.774 7.925a2.5 2.5 0 003.536 3.535l3.535-3.535a.5.5 0 11.707.707l-3.535 3.536-.002.002a3.5 3.5 0 01-4.959-4.941l.011-.011L7.725 1.56l.007-.008a2.5 2.5 0 013.53 3.541l-.002.002-5.656 5.657-.003.003a1.5 1.5 0 01-2.119-2.124l3.536-3.536a.5.5 0 11.707.707L4.189 9.34a.5.5 0 00.707.707l5.657-5.657a1.5 1.5 0 000-2.121z",
  33625. fill: color2
  33626. }
  33627. )
  33628. )), ListOrderedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33629. "svg",
  33630. {
  33631. width: size,
  33632. height: size,
  33633. viewBox: "0 0 14 14",
  33634. fill: "none",
  33635. xmlns: "http://www.w3.org/2000/svg",
  33636. ref: forwardedRef,
  33637. ...props
  33638. },
  33639. React255.createElement(
  33640. "path",
  33641. {
  33642. d: "M5 2.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2.5 2H1v1h1v3h1V2.5a.5.5 0 00-.5-.5zM3 8.5v1a.5.5 0 01-1 0V9h-.5a.5.5 0 010-1h1a.5.5 0 01.5.5zM2 10.5a.5.5 0 00-1 0V12h2v-1H2v-.5z",
  33643. fill: color2
  33644. }
  33645. )
  33646. )), ListUnorderedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33647. "svg",
  33648. {
  33649. width: size,
  33650. height: size,
  33651. viewBox: "0 0 14 14",
  33652. fill: "none",
  33653. xmlns: "http://www.w3.org/2000/svg",
  33654. ref: forwardedRef,
  33655. ...props
  33656. },
  33657. React255.createElement(
  33658. "path",
  33659. {
  33660. d: "M2.75 2.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM5.5 2a.5.5 0 000 1h7a.5.5 0 000-1h-7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2 12.25a.75.75 0 100-1.5.75.75 0 000 1.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM2 7.75a.75.75 0 100-1.5.75.75 0 000 1.5z",
  33661. fill: color2
  33662. }
  33663. )
  33664. )), ChecklistIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33665. "svg",
  33666. {
  33667. width: size,
  33668. height: size,
  33669. viewBox: "0 0 14 14",
  33670. fill: "none",
  33671. xmlns: "http://www.w3.org/2000/svg",
  33672. ref: forwardedRef,
  33673. ...props
  33674. },
  33675. React255.createElement(
  33676. "path",
  33677. {
  33678. fillRule: "evenodd",
  33679. clipRule: "evenodd",
  33680. d: "M3.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 01-.5-.5v-2a.5.5 0 01.5-.5h2zM2 12h1v-1H2v1z",
  33681. fill: color2
  33682. }
  33683. ),
  33684. React255.createElement(
  33685. "path",
  33686. {
  33687. d: "M12.5 11a.5.5 0 110 1h-7a.5.5 0 010-1h7zM3.146 5.646a.5.5 0 11.708.707L3.207 7l.647.646a.5.5 0 11-.708.707L2.5 7.707l-.646.646a.5.5 0 01-.708-.707L1.793 7l-.647-.647a.5.5 0 11.708-.707l.646.647.646-.647zM12.5 6.5a.5.5 0 010 1h-7a.5.5 0 010-1h7zM4.146 1.146a.5.5 0 11.708.707l-2 2-.079.065a.498.498 0 01-.629-.065l-1-1a.5.5 0 11.708-.707l.646.647 1.646-1.647zM12.5 2a.5.5 0 010 1h-7a.5.5 0 010-1h7z",
  33688. fill: color2
  33689. }
  33690. )
  33691. )), ParagraphIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33692. "svg",
  33693. {
  33694. width: size,
  33695. height: size,
  33696. viewBox: "0 0 14 14",
  33697. fill: "none",
  33698. xmlns: "http://www.w3.org/2000/svg",
  33699. ref: forwardedRef,
  33700. ...props
  33701. },
  33702. React255.createElement(
  33703. "path",
  33704. {
  33705. d: "M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",
  33706. fill: color2
  33707. }
  33708. )
  33709. )), MarkdownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33710. "svg",
  33711. {
  33712. width: size,
  33713. height: size,
  33714. viewBox: "0 0 14 14",
  33715. fill: "none",
  33716. xmlns: "http://www.w3.org/2000/svg",
  33717. ref: forwardedRef,
  33718. ...props
  33719. },
  33720. React255.createElement(
  33721. "path",
  33722. {
  33723. d: "M2 4.5h1.5L5 6.375 6.5 4.5H8v5H6.5V7L5 8.875 3.5 7v2.5H2v-5zM9.75 4.5h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5z",
  33724. fill: color2
  33725. }
  33726. ),
  33727. React255.createElement(
  33728. "path",
  33729. {
  33730. fillRule: "evenodd",
  33731. clipRule: "evenodd",
  33732. d: "M.5 2a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5zM1 3v8h12V3H1z",
  33733. fill: color2
  33734. }
  33735. )
  33736. )), RepoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33737. "svg",
  33738. {
  33739. width: size,
  33740. height: size,
  33741. viewBox: "0 0 14 14",
  33742. fill: "none",
  33743. xmlns: "http://www.w3.org/2000/svg",
  33744. ref: forwardedRef,
  33745. ...props
  33746. },
  33747. React255.createElement(
  33748. "path",
  33749. {
  33750. d: "M5 2.5a.5.5 0 11-1 0 .5.5 0 011 0zM4.5 5a.5.5 0 100-1 .5.5 0 000 1zM5 6.5a.5.5 0 11-1 0 .5.5 0 011 0z",
  33751. fill: color2
  33752. }
  33753. ),
  33754. React255.createElement(
  33755. "path",
  33756. {
  33757. fillRule: "evenodd",
  33758. clipRule: "evenodd",
  33759. d: "M11 0a2 2 0 012 2v10a2 2 0 01-2 2H1.5a.5.5 0 01-.5-.5V.5a.5.5 0 01.5-.5H11zm0 1H3v12h8a1 1 0 001-1V2a1 1 0 00-1-1z",
  33760. fill: color2
  33761. }
  33762. )
  33763. )), CommitIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33764. "svg",
  33765. {
  33766. width: size,
  33767. height: size,
  33768. viewBox: "0 0 14 14",
  33769. fill: "none",
  33770. xmlns: "http://www.w3.org/2000/svg",
  33771. ref: forwardedRef,
  33772. ...props
  33773. },
  33774. React255.createElement(
  33775. "path",
  33776. {
  33777. fillRule: "evenodd",
  33778. clipRule: "evenodd",
  33779. d: "M3.031 7.5a4 4 0 007.938 0H13.5a.5.5 0 000-1h-2.53a4 4 0 00-7.94 0H.501a.5.5 0 000 1h2.531zM7 10a3 3 0 100-6 3 3 0 000 6z",
  33780. fill: color2
  33781. }
  33782. )
  33783. )), BranchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33784. "svg",
  33785. {
  33786. width: size,
  33787. height: size,
  33788. viewBox: "0 0 14 14",
  33789. fill: "none",
  33790. xmlns: "http://www.w3.org/2000/svg",
  33791. ref: forwardedRef,
  33792. ...props
  33793. },
  33794. React255.createElement(
  33795. "path",
  33796. {
  33797. fillRule: "evenodd",
  33798. clipRule: "evenodd",
  33799. d: "M6 2.5a1.5 1.5 0 01-1 1.415v4.053C5.554 7.4 6.367 7 7.5 7c.89 0 1.453-.252 1.812-.557.218-.184.374-.4.482-.62a1.5 1.5 0 111.026.143c-.155.423-.425.87-.86 1.24C9.394 7.685 8.59 8 7.5 8c-1.037 0-1.637.42-1.994.917a2.81 2.81 0 00-.472 1.18A1.5 1.5 0 114 10.086v-6.17A1.5 1.5 0 116 2.5zm-2 9a.5.5 0 111 0 .5.5 0 01-1 0zm1-9a.5.5 0 11-1 0 .5.5 0 011 0zm6 2a.5.5 0 11-1 0 .5.5 0 011 0z",
  33800. fill: color2
  33801. }
  33802. )
  33803. )), PullRequestIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33804. "svg",
  33805. {
  33806. width: size,
  33807. height: size,
  33808. viewBox: "0 0 14 14",
  33809. fill: "none",
  33810. xmlns: "http://www.w3.org/2000/svg",
  33811. ref: forwardedRef,
  33812. ...props
  33813. },
  33814. React255.createElement(
  33815. "path",
  33816. {
  33817. fillRule: "evenodd",
  33818. clipRule: "evenodd",
  33819. d: "M8.354 1.354L7.707 2H8.5A2.5 2.5 0 0111 4.5v5.585a1.5 1.5 0 11-1 0V4.5A1.5 1.5 0 008.5 3h-.793l.647.646a.5.5 0 11-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708zM11 11.5a.5.5 0 11-1 0 .5.5 0 011 0zM4 3.915a1.5 1.5 0 10-1 0v6.17a1.5 1.5 0 101 0v-6.17zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zm0-8a.5.5 0 100-1 .5.5 0 000 1z",
  33820. fill: color2
  33821. }
  33822. )
  33823. )), MergeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33824. "svg",
  33825. {
  33826. width: size,
  33827. height: size,
  33828. viewBox: "0 0 14 14",
  33829. fill: "none",
  33830. xmlns: "http://www.w3.org/2000/svg",
  33831. ref: forwardedRef,
  33832. ...props
  33833. },
  33834. React255.createElement(
  33835. "path",
  33836. {
  33837. fillRule: "evenodd",
  33838. clipRule: "evenodd",
  33839. d: "M4.108 3.872A1.5 1.5 0 103 3.915v6.17a1.5 1.5 0 101 0V6.41c.263.41.573.77.926 1.083 1.108.98 2.579 1.433 4.156 1.5A1.5 1.5 0 109.09 7.99c-1.405-.065-2.62-.468-3.5-1.248-.723-.64-1.262-1.569-1.481-2.871zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zM4 2.5a.5.5 0 11-1 0 .5.5 0 011 0zm7 6a.5.5 0 11-1 0 .5.5 0 011 0z",
  33840. fill: color2
  33841. }
  33842. )
  33843. )), AppleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33844. "svg",
  33845. {
  33846. width: size,
  33847. height: size,
  33848. viewBox: "0 0 14 14",
  33849. fill: "none",
  33850. xmlns: "http://www.w3.org/2000/svg",
  33851. ref: forwardedRef,
  33852. ...props
  33853. },
  33854. React255.createElement(
  33855. "path",
  33856. {
  33857. d: "M11.03 8.103a3.044 3.044 0 01-.202-1.744 2.697 2.697 0 011.4-1.935c-.749-1.18-1.967-1.363-2.35-1.403-.835-.086-2.01.56-2.648.57h-.016c-.639-.01-1.814-.656-2.649-.57-.415.044-1.741.319-2.541 1.593-.281.447-.498 1.018-.586 1.744a6.361 6.361 0 00-.044.85c.005.305.028.604.07.895.09.62.259 1.207.477 1.744.242.595.543 1.13.865 1.585.712 1.008 1.517 1.59 1.971 1.6.934.021 1.746-.61 2.416-.594.006.002.014.003.02.002h.017c.007 0 .014 0 .021-.002.67-.017 1.481.615 2.416.595.453-.011 1.26-.593 1.971-1.6a7.95 7.95 0 00.97-1.856c-.697-.217-1.27-.762-1.578-1.474zm-2.168-5.97c.717-.848.69-2.07.624-2.125-.065-.055-1.25.163-1.985.984-.735.82-.69 2.071-.624 2.125.064.055 1.268-.135 1.985-.984z",
  33858. fill: color2
  33859. }
  33860. )
  33861. )), LinuxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33862. "svg",
  33863. {
  33864. width: size,
  33865. height: size,
  33866. viewBox: "0 0 14 14",
  33867. fill: "none",
  33868. xmlns: "http://www.w3.org/2000/svg",
  33869. ref: forwardedRef,
  33870. ...props
  33871. },
  33872. React255.createElement(
  33873. "path",
  33874. {
  33875. fillRule: "evenodd",
  33876. clipRule: "evenodd",
  33877. d: "M7 0a3 3 0 013 3v1.24c.129.132.25.27.362.415.113.111.283.247.515.433l.194.155c.325.261.711.582 1.095.966.765.765 1.545 1.806 1.823 3.186a.501.501 0 01-.338.581 3.395 3.395 0 01-1.338.134 2.886 2.886 0 01-1.049-.304 5.535 5.535 0 01-.17.519 2 2 0 11-2.892 2.55A5.507 5.507 0 017 13c-.439 0-.838-.044-1.201-.125a2 2 0 11-2.892-2.55 5.553 5.553 0 01-.171-.519c-.349.182-.714.27-1.05.304A3.395 3.395 0 01.35 9.977a.497.497 0 01-.338-.582c.278-1.38 1.058-2.42 1.823-3.186.384-.384.77-.705 1.095-.966l.194-.155c.232-.186.402-.322.515-.433.112-.145.233-.283.362-.414V3a3 3 0 013-3zm1.003 11.895a2 2 0 012.141-1.89c.246-.618.356-1.322.356-2.005 0-.514-.101-1.07-.301-1.599l-.027-.017a6.387 6.387 0 00-.857-.42 6.715 6.715 0 00-1.013-.315l-.852.638a.75.75 0 01-.9 0l-.852-.638a6.716 6.716 0 00-1.693.634 4.342 4.342 0 00-.177.101l-.027.017A4.6 4.6 0 003.501 8c0 .683.109 1.387.355 2.005a2 2 0 012.142 1.89c.295.067.627.105 1.002.105s.707-.038 1.003-.105zM5 12a1 1 0 11-2 0 1 1 0 012 0zm6 0a1 1 0 11-2 0 1 1 0 012 0zM6.1 4.3a1.5 1.5 0 011.8 0l.267.2L7 5.375 5.833 4.5l.267-.2zM8.5 2a.5.5 0 01.5.5V3a.5.5 0 01-1 0v-.5a.5.5 0 01.5-.5zM6 2.5a.5.5 0 00-1 0V3a.5.5 0 001 0v-.5z",
  33878. fill: color2
  33879. }
  33880. )
  33881. )), UbuntuIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33882. "svg",
  33883. {
  33884. width: size,
  33885. height: size,
  33886. viewBox: "0 0 14 14",
  33887. fill: "none",
  33888. xmlns: "http://www.w3.org/2000/svg",
  33889. ref: forwardedRef,
  33890. ...props
  33891. },
  33892. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3497)", fill: color2 }, React255.createElement("path", { d: "M12.261 2.067c0 1.142-.89 2.068-1.988 2.068-1.099 0-1.99-.926-1.99-2.068C8.283.926 9.174 0 10.273 0c1.098 0 1.989.926 1.989 2.067zM3.978 6.6c0 1.142-.89 2.068-1.989 2.068C.891 8.668 0 7.742 0 6.601c0-1.142.89-2.068 1.989-2.068 1.099 0 1.989.926 1.989 2.068zM6.475 11.921A4.761 4.761 0 014.539 11a4.993 4.993 0 01-1.367-1.696 2.765 2.765 0 01-1.701.217 6.725 6.725 0 001.844 2.635 6.379 6.379 0 004.23 1.577 3.033 3.033 0 01-.582-1.728 4.767 4.767 0 01-.488-.083zM11.813 11.933c0 1.141-.89 2.067-1.989 2.067-1.098 0-1.989-.926-1.989-2.067 0-1.142.891-2.068 1.99-2.068 1.098 0 1.989.926 1.989 2.068zM12.592 11.173a6.926 6.926 0 001.402-3.913 6.964 6.964 0 00-1.076-4.023A2.952 2.952 0 0111.8 4.6c.398.78.592 1.656.564 2.539a5.213 5.213 0 01-.724 2.495c.466.396.8.935.952 1.54zM1.987 3.631c-.05 0-.101.002-.151.004C3.073 1.365 5.504.024 8.005.23a3.07 3.07 0 00-.603 1.676 4.707 4.707 0 00-2.206.596 4.919 4.919 0 00-1.7 1.576 2.79 2.79 0 00-1.509-.447z" })),
  33893. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3497" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33894. )), WindowsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33895. "svg",
  33896. {
  33897. width: size,
  33898. height: size,
  33899. viewBox: "0 0 14 14",
  33900. fill: "none",
  33901. xmlns: "http://www.w3.org/2000/svg",
  33902. ref: forwardedRef,
  33903. ...props
  33904. },
  33905. React255.createElement(
  33906. "path",
  33907. {
  33908. d: "M6.5 1H1v5.5h5.5V1zM13 1H7.5v5.5H13V1zM7.5 7.5H13V13H7.5V7.5zM6.5 7.5H1V13h5.5V7.5z",
  33909. fill: color2
  33910. }
  33911. )
  33912. )), ChromeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33913. "svg",
  33914. {
  33915. width: size,
  33916. height: size,
  33917. viewBox: "0 0 14 14",
  33918. fill: "none",
  33919. xmlns: "http://www.w3.org/2000/svg",
  33920. ref: forwardedRef,
  33921. ...props
  33922. },
  33923. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3496)" }, React255.createElement(
  33924. "path",
  33925. {
  33926. fillRule: "evenodd",
  33927. clipRule: "evenodd",
  33928. d: "M13.023 3.431a.115.115 0 01-.099.174H7.296A3.408 3.408 0 003.7 6.148a.115.115 0 01-.21.028l-1.97-3.413a.115.115 0 01.01-.129A6.97 6.97 0 017 0a6.995 6.995 0 016.023 3.431zM7 9.615A2.619 2.619 0 014.384 7 2.62 2.62 0 017 4.383 2.619 2.619 0 019.616 7 2.619 2.619 0 017 9.615zm1.034.71a.115.115 0 00-.121-.041 3.4 3.4 0 01-.913.124 3.426 3.426 0 01-3.091-1.973L1.098 3.567a.115.115 0 00-.2.001 7.004 7.004 0 005.058 10.354l.017.001c.04 0 .078-.021.099-.057l1.971-3.414a.115.115 0 00-.009-.128zm1.43-5.954h3.947c.047 0 .09.028.107.072.32.815.481 1.675.481 2.557a6.957 6.957 0 01-2.024 4.923A6.957 6.957 0 017.08 14h-.001a.115.115 0 01-.1-.172L9.794 8.95A3.384 3.384 0 0010.408 7c0-.921-.364-1.785-1.024-2.433a.115.115 0 01.08-.196z",
  33929. fill: color2
  33930. }
  33931. )),
  33932. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3496" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33933. )), StorybookIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33934. "svg",
  33935. {
  33936. width: size,
  33937. height: size,
  33938. viewBox: "0 0 14 14",
  33939. fill: "none",
  33940. xmlns: "http://www.w3.org/2000/svg",
  33941. ref: forwardedRef,
  33942. ...props
  33943. },
  33944. React255.createElement(
  33945. "path",
  33946. {
  33947. fillRule: "evenodd",
  33948. clipRule: "evenodd",
  33949. d: "M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",
  33950. fill: color2
  33951. }
  33952. )
  33953. )), AzureDevOpsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33954. "svg",
  33955. {
  33956. width: size,
  33957. height: size,
  33958. viewBox: "0 0 14 14",
  33959. fill: "none",
  33960. xmlns: "http://www.w3.org/2000/svg",
  33961. ref: forwardedRef,
  33962. ...props
  33963. },
  33964. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3503)" }, React255.createElement(
  33965. "path",
  33966. {
  33967. d: "M0 5.176l1.31-1.73 4.902-1.994V.014l4.299 3.144-8.78 1.706v4.8L0 9.162V5.176zm14-2.595v8.548l-3.355 2.857-5.425-1.783v1.783L1.73 9.661l8.784 1.047v-7.55L14 2.581z",
  33968. fill: color2
  33969. }
  33970. )),
  33971. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3503" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  33972. )), BitbucketIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33973. "svg",
  33974. {
  33975. width: size,
  33976. height: size,
  33977. viewBox: "0 0 14 14",
  33978. fill: "none",
  33979. xmlns: "http://www.w3.org/2000/svg",
  33980. ref: forwardedRef,
  33981. ...props
  33982. },
  33983. React255.createElement(
  33984. "path",
  33985. {
  33986. fillRule: "evenodd",
  33987. clipRule: "evenodd",
  33988. d: "M1 1.522a.411.411 0 00-.412.476l1.746 10.597a.56.56 0 00.547.466h8.373a.411.411 0 00.412-.345l1.017-6.248h-3.87L8.35 9.18H5.677l-.724-3.781h7.904L13.412 2A.411.411 0 0013 1.524L1 1.522z",
  33989. fill: color2
  33990. }
  33991. )
  33992. )), ChromaticIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  33993. "svg",
  33994. {
  33995. width: size,
  33996. height: size,
  33997. viewBox: "0 0 14 14",
  33998. fill: "none",
  33999. xmlns: "http://www.w3.org/2000/svg",
  34000. ref: forwardedRef,
  34001. ...props
  34002. },
  34003. React255.createElement(
  34004. "path",
  34005. {
  34006. fillRule: "evenodd",
  34007. clipRule: "evenodd",
  34008. d: "M0 7a7 7 0 1014 0A7 7 0 000 7zm5.215-3.869a1.967 1.967 0 013.747.834v1.283l-3.346-1.93a2.486 2.486 0 00-.401-.187zm3.484 2.58l-3.346-1.93a1.968 1.968 0 00-2.685.72 1.954 1.954 0 00.09 2.106 2.45 2.45 0 01.362-.254l1.514-.873a.27.27 0 01.268 0l2.1 1.21 1.697-.978zm-.323 4.972L6.86 9.81a.268.268 0 01-.134-.231V7.155l-1.698-.98v3.86a1.968 1.968 0 003.747.835 2.488 2.488 0 01-.4-.187zm.268-.464a1.967 1.967 0 002.685-.719 1.952 1.952 0 00-.09-2.106c-.112.094-.233.18-.361.253L7.53 9.577l1.113.642zm-4.106.257a1.974 1.974 0 01-1.87-.975A1.95 1.95 0 012.47 8.01c.136-.507.461-.93.916-1.193L4.5 6.175v3.86c0 .148.013.295.039.44zM11.329 4.5a1.973 1.973 0 00-1.87-.976c.025.145.039.292.039.44v1.747a.268.268 0 01-.135.232l-2.1 1.211v1.96l3.346-1.931a1.966 1.966 0 00.72-2.683z",
  34009. fill: color2
  34010. }
  34011. )
  34012. )), ComponentDrivenIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34013. "svg",
  34014. {
  34015. width: size,
  34016. height: size,
  34017. viewBox: "0 0 14 14",
  34018. fill: "none",
  34019. xmlns: "http://www.w3.org/2000/svg",
  34020. ref: forwardedRef,
  34021. ...props
  34022. },
  34023. React255.createElement(
  34024. "path",
  34025. {
  34026. d: "M10.847 2.181L8.867.201a.685.685 0 00-.97 0l-4.81 4.81a.685.685 0 000 .969l2.466 2.465-2.405 2.404a.685.685 0 000 .97l1.98 1.98a.685.685 0 00.97 0l4.81-4.81a.685.685 0 000-.969L8.441 5.555l2.405-2.404a.685.685 0 000-.97z",
  34027. fill: color2
  34028. }
  34029. )
  34030. )), DiscordIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34031. "svg",
  34032. {
  34033. width: size,
  34034. height: size,
  34035. viewBox: "0 0 14 14",
  34036. fill: "none",
  34037. xmlns: "http://www.w3.org/2000/svg",
  34038. ref: forwardedRef,
  34039. ...props
  34040. },
  34041. React255.createElement(
  34042. "path",
  34043. {
  34044. d: "M11.852 2.885c-.893-.41-1.85-.712-2.85-.884a.043.043 0 00-.046.021c-.123.22-.26.505-.355.73a10.658 10.658 0 00-3.2 0 7.377 7.377 0 00-.36-.73.045.045 0 00-.046-.021c-1 .172-1.957.474-2.85.884a.04.04 0 00-.019.016C.311 5.612-.186 8.257.058 10.869a.048.048 0 00.018.033 11.608 11.608 0 003.496 1.767.045.045 0 00.049-.016c.27-.368.51-.755.715-1.163a.044.044 0 00-.024-.062 7.661 7.661 0 01-1.092-.52.045.045 0 01-.005-.075c.074-.055.147-.112.217-.17a.043.043 0 01.046-.006c2.29 1.046 4.771 1.046 7.035 0a.043.043 0 01.046.006c.07.057.144.115.218.17a.045.045 0 01-.004.075 7.186 7.186 0 01-1.093.52.045.045 0 00-.024.062c.21.407.45.795.715 1.162.011.016.03.023.05.017a11.57 11.57 0 003.5-1.767.045.045 0 00.019-.032c.292-3.02-.49-5.643-2.07-7.969a.036.036 0 00-.018-.016zM4.678 9.279c-.69 0-1.258-.634-1.258-1.411 0-.778.558-1.411 1.258-1.411.707 0 1.27.639 1.259 1.41 0 .778-.558 1.412-1.259 1.412zm4.652 0c-.69 0-1.258-.634-1.258-1.411 0-.778.557-1.411 1.258-1.411.707 0 1.27.639 1.258 1.41 0 .778-.551 1.412-1.258 1.412z",
  34045. fill: color2
  34046. }
  34047. )
  34048. )), FacebookIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34049. "svg",
  34050. {
  34051. width: size,
  34052. height: size,
  34053. viewBox: "0 0 14 14",
  34054. fill: "none",
  34055. xmlns: "http://www.w3.org/2000/svg",
  34056. ref: forwardedRef,
  34057. ...props
  34058. },
  34059. React255.createElement(
  34060. "path",
  34061. {
  34062. fillRule: "evenodd",
  34063. clipRule: "evenodd",
  34064. d: "M7.399 14H5.06V7H3.5V4.588l1.56-.001-.002-1.421C5.058 1.197 5.533 0 7.6 0h1.721v2.413H8.246c-.805 0-.844.337-.844.966l-.003 1.208h1.934l-.228 2.412L7.401 7l-.002 7z",
  34065. fill: color2
  34066. }
  34067. )
  34068. )), FigmaIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34069. "svg",
  34070. {
  34071. width: size,
  34072. height: size,
  34073. viewBox: "0 0 14 14",
  34074. fill: "none",
  34075. xmlns: "http://www.w3.org/2000/svg",
  34076. ref: forwardedRef,
  34077. ...props
  34078. },
  34079. React255.createElement(
  34080. "path",
  34081. {
  34082. fillRule: "evenodd",
  34083. clipRule: "evenodd",
  34084. d: "M9.2 0H4.803A2.603 2.603 0 003.41 4.802a2.603 2.603 0 000 4.396 2.602 2.602 0 103.998 2.199v-2.51a2.603 2.603 0 103.187-4.085A2.604 2.604 0 009.2 0zM7.407 7a1.793 1.793 0 103.586 0 1.793 1.793 0 00-3.586 0zm-.81 2.603H4.803a1.793 1.793 0 101.794 1.794V9.603zM4.803 4.397h1.794V.81H4.803a1.793 1.793 0 000 3.587zm0 .81a1.793 1.793 0 000 3.586h1.794V5.207H4.803zm4.397-.81H7.407V.81H9.2a1.794 1.794 0 010 3.587z",
  34085. fill: color2
  34086. }
  34087. )
  34088. )), GDriveIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34089. "svg",
  34090. {
  34091. width: size,
  34092. height: size,
  34093. viewBox: "0 0 14 14",
  34094. fill: "none",
  34095. xmlns: "http://www.w3.org/2000/svg",
  34096. ref: forwardedRef,
  34097. ...props
  34098. },
  34099. React255.createElement(
  34100. "path",
  34101. {
  34102. d: "M6.37 8.768l-2.042 3.537h6.755l2.042-3.537H6.37zm6.177-1.003l-3.505-6.07H4.96l3.504 6.07h4.084zM4.378 2.7L.875 8.77l2.042 3.536L6.42 6.236 4.378 2.7z",
  34103. fill: color2
  34104. }
  34105. )
  34106. )), GithubIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34107. "svg",
  34108. {
  34109. width: size,
  34110. height: size,
  34111. viewBox: "0 0 14 14",
  34112. fill: "none",
  34113. xmlns: "http://www.w3.org/2000/svg",
  34114. ref: forwardedRef,
  34115. ...props
  34116. },
  34117. React255.createElement(
  34118. "path",
  34119. {
  34120. fillRule: "evenodd",
  34121. clipRule: "evenodd",
  34122. d: "M7 0C3.132 0 0 3.132 0 7a6.996 6.996 0 004.786 6.641c.35.062.482-.149.482-.332 0-.166-.01-.718-.01-1.304-1.758.324-2.213-.429-2.353-.823-.079-.2-.42-.822-.717-.988-.246-.132-.596-.455-.01-.464.552-.009.946.508 1.077.717.63 1.06 1.636.762 2.039.578.061-.455.245-.761.446-.936-1.558-.175-3.185-.779-3.185-3.457 0-.76.271-1.39.717-1.88-.07-.176-.314-.893.07-1.856 0 0 .587-.183 1.925.718a6.495 6.495 0 011.75-.236c.595 0 1.19.078 1.75.236 1.34-.91 1.926-.718 1.926-.718.385.963.14 1.68.07 1.855.446.49.717 1.111.717 1.881 0 2.687-1.636 3.282-3.194 3.457.254.218.473.638.473 1.295 0 .936-.009 1.688-.009 1.925 0 .184.131.402.481.332A7.012 7.012 0 0014 7c0-3.868-3.133-7-7-7z",
  34123. fill: color2
  34124. }
  34125. )
  34126. )), GitlabIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34127. "svg",
  34128. {
  34129. width: size,
  34130. height: size,
  34131. viewBox: "0 0 14 14",
  34132. fill: "none",
  34133. xmlns: "http://www.w3.org/2000/svg",
  34134. ref: forwardedRef,
  34135. ...props
  34136. },
  34137. React255.createElement(
  34138. "path",
  34139. {
  34140. fillRule: "evenodd",
  34141. clipRule: "evenodd",
  34142. d: "M1.068 5.583l1.487-4.557a.256.256 0 01.487 0L4.53 5.583H1.068L7 13.15 4.53 5.583h4.941l-2.47 7.565 5.931-7.565H9.471l1.488-4.557a.256.256 0 01.486 0l1.488 4.557.75 2.3a.508.508 0 01-.185.568L7 13.148v.001H7L.503 8.452a.508.508 0 01-.186-.57l.75-2.299z",
  34143. fill: color2
  34144. }
  34145. )
  34146. )), GoogleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34147. "svg",
  34148. {
  34149. width: size,
  34150. height: size,
  34151. viewBox: "0 0 14 14",
  34152. fill: "none",
  34153. xmlns: "http://www.w3.org/2000/svg",
  34154. ref: forwardedRef,
  34155. ...props
  34156. },
  34157. React255.createElement(
  34158. "path",
  34159. {
  34160. d: "M10.925 1.094H7.262c-1.643 0-3.189 1.244-3.189 2.685 0 1.473 1.12 2.661 2.791 2.661.116 0 .23-.002.34-.01a1.49 1.49 0 00-.186.684c0 .41.22.741.498 1.012-.21 0-.413.006-.635.006-2.034 0-3.6 1.296-3.6 2.64 0 1.323 1.717 2.15 3.75 2.15 2.32 0 3.6-1.315 3.6-2.639 0-1.06-.313-1.696-1.28-2.38-.331-.235-.965-.805-.965-1.14 0-.392.112-.586.703-1.047.606-.474 1.035-1.14 1.035-1.914 0-.92-.41-1.819-1.18-2.115h1.161l.82-.593zm-1.335 8.96c.03.124.045.25.045.378 0 1.07-.688 1.905-2.665 1.905-1.406 0-2.421-.89-2.421-1.96 0-1.047 1.259-1.92 2.665-1.904.328.004.634.057.911.146.764.531 1.311.832 1.465 1.436zM7.34 6.068c-.944-.028-1.841-1.055-2.005-2.295-.162-1.24.47-2.188 1.415-2.16.943.029 1.84 1.023 2.003 2.262.163 1.24-.47 2.222-1.414 2.193z",
  34161. fill: color2
  34162. }
  34163. )
  34164. )), GraphqlIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34165. "svg",
  34166. {
  34167. width: size,
  34168. height: size,
  34169. viewBox: "0 0 14 14",
  34170. fill: "none",
  34171. xmlns: "http://www.w3.org/2000/svg",
  34172. ref: forwardedRef,
  34173. ...props
  34174. },
  34175. React255.createElement(
  34176. "path",
  34177. {
  34178. fillRule: "evenodd",
  34179. clipRule: "evenodd",
  34180. d: "M7.873 11.608a1.167 1.167 0 00-1.707-.027L3.46 10.018l.01-.04h7.072l.022.076-2.69 1.554zM6.166 2.42l.031.03-3.535 6.124a1.265 1.265 0 00-.043-.012V5.438a1.166 1.166 0 00.84-1.456L6.167 2.42zm4.387 1.562a1.165 1.165 0 00.84 1.456v3.124l-.043.012-3.536-6.123a1.2 1.2 0 00.033-.032l2.706 1.563zM3.473 9.42a1.168 1.168 0 00-.327-.568L6.68 2.73a1.17 1.17 0 00.652 0l3.536 6.123a1.169 1.169 0 00-.327.567H3.473zm8.79-.736a1.169 1.169 0 00-.311-.124V5.44a1.17 1.17 0 10-1.122-1.942L8.13 1.938a1.168 1.168 0 00-1.122-1.5 1.17 1.17 0 00-1.121 1.5l-2.702 1.56a1.168 1.168 0 00-1.86.22 1.17 1.17 0 00.739 1.722v3.12a1.168 1.168 0 00-.74 1.721 1.17 1.17 0 001.861.221l2.701 1.56a1.169 1.169 0 102.233-.035l2.687-1.552a1.168 1.168 0 101.457-1.791z",
  34181. fill: color2
  34182. }
  34183. )
  34184. )), MediumIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34185. "svg",
  34186. {
  34187. width: size,
  34188. height: size,
  34189. viewBox: "0 0 14 14",
  34190. fill: "none",
  34191. xmlns: "http://www.w3.org/2000/svg",
  34192. ref: forwardedRef,
  34193. ...props
  34194. },
  34195. React255.createElement(
  34196. "path",
  34197. {
  34198. d: "M0 0v14h14V0H0zm11.63 3.317l-.75.72a.22.22 0 00-.083.212v-.001 5.289a.22.22 0 00.083.21l.733.72v.159H7.925v-.158l.76-.738c.074-.074.074-.096.074-.21V5.244l-2.112 5.364h-.285l-2.46-5.364V8.84a.494.494 0 00.136.413h.001l.988 1.198v.158H2.226v-.158l.988-1.198a.477.477 0 00.126-.416v.003-4.157a.363.363 0 00-.118-.307l-.878-1.058v-.158h2.727l2.107 4.622L9.031 3.16h2.6v.158z",
  34199. fill: color2
  34200. }
  34201. )
  34202. )), ReduxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34203. "svg",
  34204. {
  34205. width: size,
  34206. height: size,
  34207. viewBox: "0 0 14 14",
  34208. fill: "none",
  34209. xmlns: "http://www.w3.org/2000/svg",
  34210. ref: forwardedRef,
  34211. ...props
  34212. },
  34213. React255.createElement(
  34214. "path",
  34215. {
  34216. fillRule: "evenodd",
  34217. clipRule: "evenodd",
  34218. d: "M4.06 9.689c.016.49.423.88.912.88h.032a.911.911 0 00.88-.945.916.916 0 00-.912-.88h-.033c-.033 0-.08 0-.113.016-.669-1.108-.946-2.314-.848-3.618.065-.978.391-1.825.961-2.526.473-.603 1.386-.896 2.005-.913 1.728-.032 2.461 2.119 2.51 2.983.212.049.57.163.815.244C10.073 2.29 8.444.92 6.88.92c-1.467 0-2.82 1.06-3.357 2.625-.75 2.086-.261 4.09.651 5.671a.74.74 0 00-.114.473zm8.279-2.298c-1.239-1.45-3.064-2.249-5.15-2.249h-.261a.896.896 0 00-.798-.489h-.033A.912.912 0 006.13 6.48h.031a.919.919 0 00.8-.554h.293c1.239 0 2.412.358 3.472 1.059.814.538 1.401 1.238 1.727 2.086.277.684.261 1.353-.033 1.923-.456.864-1.222 1.337-2.232 1.337a4.16 4.16 0 01-1.597-.343 9.58 9.58 0 01-.734.587c.7.326 1.418.505 2.102.505 1.565 0 2.722-.863 3.162-1.727.473-.946.44-2.575-.782-3.961zm-7.433 5.51a4.005 4.005 0 01-.977.113c-1.206 0-2.298-.505-2.836-1.32C.376 10.603.13 8.289 2.494 6.577c.05.261.147.62.212.832-.31.228-.798.685-1.108 1.303-.44.864-.391 1.729.13 2.527.359.537.93.864 1.663.962.896.114 1.793-.05 2.657-.505 1.271-.669 2.119-1.467 2.672-2.56a.944.944 0 01-.26-.603.913.913 0 01.88-.945h.033a.915.915 0 01.098 1.825c-.897 1.842-2.478 3.08-4.565 3.488z",
  34219. fill: color2
  34220. }
  34221. )
  34222. )), TwitterIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34223. "svg",
  34224. {
  34225. width: size,
  34226. height: size,
  34227. viewBox: "0 0 14 14",
  34228. fill: "none",
  34229. xmlns: "http://www.w3.org/2000/svg",
  34230. ref: forwardedRef,
  34231. ...props
  34232. },
  34233. React255.createElement(
  34234. "path",
  34235. {
  34236. fillRule: "evenodd",
  34237. clipRule: "evenodd",
  34238. d: "M14 2.547a5.632 5.632 0 01-1.65.464 2.946 2.946 0 001.263-1.63 5.67 5.67 0 01-1.823.715 2.837 2.837 0 00-2.097-.93c-1.586 0-2.872 1.319-2.872 2.946 0 .23.025.456.074.67C4.508 4.66 2.392 3.488.975 1.706c-.247.435-.389.941-.389 1.481 0 1.022.507 1.923 1.278 2.452a2.806 2.806 0 01-1.3-.368l-.001.037c0 1.427.99 2.617 2.303 2.888a2.82 2.82 0 01-1.297.05c.366 1.17 1.427 2.022 2.683 2.045A5.671 5.671 0 010 11.51a7.985 7.985 0 004.403 1.323c5.283 0 8.172-4.488 8.172-8.38 0-.128-.003-.255-.009-.38A5.926 5.926 0 0014 2.546z",
  34239. fill: color2
  34240. }
  34241. )
  34242. )), YoutubeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34243. "svg",
  34244. {
  34245. width: size,
  34246. height: size,
  34247. viewBox: "0 0 14 14",
  34248. fill: "none",
  34249. xmlns: "http://www.w3.org/2000/svg",
  34250. ref: forwardedRef,
  34251. ...props
  34252. },
  34253. React255.createElement(
  34254. "path",
  34255. {
  34256. fillRule: "evenodd",
  34257. clipRule: "evenodd",
  34258. d: "M13.99 8.172c.005-.281.007-.672.007-1.172 0-.5-.002-.89-.007-1.172a14.952 14.952 0 00-.066-1.066 9.638 9.638 0 00-.169-1.153c-.083-.38-.264-.7-.542-.96a1.667 1.667 0 00-.972-.454C11.084 2.065 9.337 2 6.999 2s-4.085.065-5.241.195a1.65 1.65 0 00-.969.453c-.276.26-.455.58-.539.961a8.648 8.648 0 00-.176 1.153c-.039.43-.061.785-.066 1.066C.002 6.11 0 6.5 0 7c0 .5.002.89.008 1.172.005.281.027.637.066 1.067.04.43.095.813.168 1.152.084.38.265.7.543.96.279.261.603.412.973.453 1.156.13 2.902.196 5.24.196 2.34 0 4.087-.065 5.243-.196a1.65 1.65 0 00.967-.453c.276-.26.456-.58.54-.96.077-.339.136-.722.175-1.152.04-.43.062-.786.067-1.067zM9.762 6.578A.45.45 0 019.997 7a.45.45 0 01-.235.422l-3.998 2.5a.442.442 0 01-.266.078.538.538 0 01-.242-.063.465.465 0 01-.258-.437v-5c0-.197.086-.343.258-.437a.471.471 0 01.508.016l3.998 2.5z",
  34259. fill: color2
  34260. }
  34261. )
  34262. )), VSCodeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34263. "svg",
  34264. {
  34265. width: size,
  34266. height: size,
  34267. viewBox: "0 0 14 14",
  34268. fill: "none",
  34269. xmlns: "http://www.w3.org/2000/svg",
  34270. ref: forwardedRef,
  34271. ...props
  34272. },
  34273. React255.createElement(
  34274. "path",
  34275. {
  34276. fillRule: "evenodd",
  34277. clipRule: "evenodd",
  34278. d: "M10.243.04a.87.87 0 01.38.087l2.881 1.386a.874.874 0 01.496.79V11.713a.875.875 0 01-.496.775l-2.882 1.386a.872.872 0 01-.994-.17L4.11 8.674l-2.404 1.823a.583.583 0 01-.744-.034l-.771-.7a.583.583 0 010-.862L2.274 7 .19 5.1a.583.583 0 010-.862l.772-.701a.583.583 0 01.744-.033L4.11 5.327 9.628.296a.871.871 0 01.615-.255zm.259 3.784L6.315 7l4.187 3.176V3.824z",
  34279. fill: color2
  34280. }
  34281. )
  34282. )), LinkedinIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34283. "svg",
  34284. {
  34285. width: size,
  34286. height: size,
  34287. viewBox: "0 0 14 14",
  34288. fill: "none",
  34289. xmlns: "http://www.w3.org/2000/svg",
  34290. ref: forwardedRef,
  34291. ...props
  34292. },
  34293. React255.createElement(
  34294. "path",
  34295. {
  34296. fillRule: "evenodd",
  34297. clipRule: "evenodd",
  34298. d: "M11.667 13H2.333A1.333 1.333 0 011 11.667V2.333C1 1.597 1.597 1 2.333 1h9.334C12.403 1 13 1.597 13 2.333v9.334c0 .736-.597 1.333-1.333 1.333zm-2.114-1.667h1.78V7.675c0-1.548-.877-2.296-2.102-2.296-1.226 0-1.742.955-1.742.955v-.778H5.773v5.777h1.716V8.3c0-.812.374-1.296 1.09-1.296.658 0 .974.465.974 1.296v3.033zm-6.886-7.6c0 .589.474 1.066 1.058 1.066.585 0 1.058-.477 1.058-1.066 0-.589-.473-1.066-1.058-1.066-.584 0-1.058.477-1.058 1.066zm1.962 7.6h-1.79V5.556h1.79v5.777z",
  34299. fill: color2
  34300. }
  34301. )
  34302. )), XIcon = React255.forwardRef(
  34303. ({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34304. "svg",
  34305. {
  34306. width: size,
  34307. height: size,
  34308. viewBox: "0 0 14 14",
  34309. fill: "none",
  34310. xmlns: "http://www.w3.org/2000/svg",
  34311. ref: forwardedRef,
  34312. ...props
  34313. },
  34314. React255.createElement(
  34315. "path",
  34316. {
  34317. d: "M11.02.446h2.137L8.49 5.816l5.51 7.28H9.67L6.298 8.683l-3.88 4.413H.282l5.004-5.735L0 .446h4.442l3.064 4.048L11.02.446zm-.759 11.357h1.18L3.796 1.655H2.502l7.759 10.148z",
  34318. fill: color2
  34319. }
  34320. )
  34321. )
  34322. ), BrowserIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34323. "svg",
  34324. {
  34325. width: size,
  34326. height: size,
  34327. viewBox: "0 0 14 14",
  34328. fill: "none",
  34329. xmlns: "http://www.w3.org/2000/svg",
  34330. ref: forwardedRef,
  34331. ...props
  34332. },
  34333. React255.createElement(
  34334. "path",
  34335. {
  34336. fillRule: "evenodd",
  34337. clipRule: "evenodd",
  34338. d: "M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-8h12v8H1zm1-9.5a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0z",
  34339. fill: color2
  34340. }
  34341. )
  34342. )), TabletIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34343. "svg",
  34344. {
  34345. width: size,
  34346. height: size,
  34347. viewBox: "0 0 14 15",
  34348. fill: "none",
  34349. xmlns: "http://www.w3.org/2000/svg",
  34350. ref: forwardedRef,
  34351. ...props
  34352. },
  34353. React255.createElement(
  34354. "path",
  34355. {
  34356. fillRule: "evenodd",
  34357. clipRule: "evenodd",
  34358. d: "M3.5.004a1.5 1.5 0 00-1.5 1.5v11a1.5 1.5 0 001.5 1.5h7a1.5 1.5 0 001.5-1.5v-11a1.5 1.5 0 00-1.5-1.5h-7zm0 1h7a.5.5 0 01.5.5v9.5H3v-9.5a.5.5 0 01.5-.5zm2.5 11a.5.5 0 000 1h2a.5.5 0 000-1H6z",
  34359. fill: color2
  34360. }
  34361. )
  34362. )), MobileIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34363. "svg",
  34364. {
  34365. width: size,
  34366. height: size,
  34367. viewBox: "0 0 14 15",
  34368. fill: "none",
  34369. xmlns: "http://www.w3.org/2000/svg",
  34370. ref: forwardedRef,
  34371. ...props
  34372. },
  34373. React255.createElement(
  34374. "path",
  34375. {
  34376. fillRule: "evenodd",
  34377. clipRule: "evenodd",
  34378. d: "M3 1.504a1.5 1.5 0 011.5-1.5h5a1.5 1.5 0 011.5 1.5v11a1.5 1.5 0 01-1.5 1.5h-5a1.5 1.5 0 01-1.5-1.5v-11zm1 10.5v-10h6v10H4z",
  34379. fill: color2
  34380. }
  34381. )
  34382. )), WatchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34383. "svg",
  34384. {
  34385. width: size,
  34386. height: size,
  34387. viewBox: "0 0 14 15",
  34388. fill: "none",
  34389. xmlns: "http://www.w3.org/2000/svg",
  34390. ref: forwardedRef,
  34391. ...props
  34392. },
  34393. React255.createElement(
  34394. "path",
  34395. {
  34396. fillRule: "evenodd",
  34397. clipRule: "evenodd",
  34398. d: "M4 .504a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zm5.5 2.5h-5a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm-5-1a1.5 1.5 0 00-1.5 1.5v7a1.5 1.5 0 001.5 1.5h5a1.5 1.5 0 001.5-1.5v-7a1.5 1.5 0 00-1.5-1.5h-5zm2.5 2a.5.5 0 01.5.5v2h1a.5.5 0 110 1H7a.5.5 0 01-.5-.5v-2.5a.5.5 0 01.5-.5zm-2.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5z",
  34399. fill: color2
  34400. }
  34401. )
  34402. )), SidebarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34403. "svg",
  34404. {
  34405. width: size,
  34406. height: size,
  34407. viewBox: "0 0 14 14",
  34408. fill: "none",
  34409. xmlns: "http://www.w3.org/2000/svg",
  34410. ref: forwardedRef,
  34411. ...props
  34412. },
  34413. React255.createElement(
  34414. "path",
  34415. {
  34416. d: "M2.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5zM3 6.004a.5.5 0 100 1h1a.5.5 0 000-1H3zM2.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5z",
  34417. fill: color2
  34418. }
  34419. ),
  34420. React255.createElement(
  34421. "path",
  34422. {
  34423. fillRule: "evenodd",
  34424. clipRule: "evenodd",
  34425. d: "M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h3v10H2zm4-10h6v10H6v-10z",
  34426. fill: color2
  34427. }
  34428. )
  34429. )), SidebarAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34430. "svg",
  34431. {
  34432. width: size,
  34433. height: size,
  34434. viewBox: "0 0 14 14",
  34435. fill: "none",
  34436. xmlns: "http://www.w3.org/2000/svg",
  34437. ref: forwardedRef,
  34438. ...props
  34439. },
  34440. React255.createElement(
  34441. "path",
  34442. {
  34443. d: "M9.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM10 6.004a.5.5 0 100 1h1a.5.5 0 000-1h-1zM9.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",
  34444. fill: color2
  34445. }
  34446. ),
  34447. React255.createElement(
  34448. "path",
  34449. {
  34450. fillRule: "evenodd",
  34451. clipRule: "evenodd",
  34452. d: "M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h6v10H2zm7-10h3v10H9v-10z",
  34453. fill: color2
  34454. }
  34455. )
  34456. )), SidebarAltToggleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34457. "svg",
  34458. {
  34459. width: size,
  34460. height: size,
  34461. viewBox: "0 0 14 14",
  34462. fill: "none",
  34463. xmlns: "http://www.w3.org/2000/svg",
  34464. ref: forwardedRef,
  34465. ...props
  34466. },
  34467. React255.createElement(
  34468. "path",
  34469. {
  34470. d: "M11.5 4.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5zM11 6.004a.5.5 0 010 1h-1a.5.5 0 010-1h1zM11.5 8.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5z",
  34471. fill: color2
  34472. }
  34473. ),
  34474. React255.createElement(
  34475. "path",
  34476. {
  34477. fillRule: "evenodd",
  34478. clipRule: "evenodd",
  34479. d: "M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm7.5-1h3v-10H9v10zm-1 0H2v-10h6v4.5H5.207l.65-.65a.5.5 0 10-.707-.708L3.646 6.65a.5.5 0 000 .707l1.497 1.497a.5.5 0 10.707-.708l-.643-.642H8v4.5z",
  34480. fill: color2
  34481. }
  34482. )
  34483. )), SidebarToggleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34484. "svg",
  34485. {
  34486. width: size,
  34487. height: size,
  34488. viewBox: "0 0 14 14",
  34489. fill: "none",
  34490. xmlns: "http://www.w3.org/2000/svg",
  34491. ref: forwardedRef,
  34492. ...props
  34493. },
  34494. React255.createElement(
  34495. "path",
  34496. {
  34497. d: "M1.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5zM2 6.004a.5.5 0 100 1h1a.5.5 0 000-1H2zM1.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5z",
  34498. fill: color2
  34499. }
  34500. ),
  34501. React255.createElement(
  34502. "path",
  34503. {
  34504. fillRule: "evenodd",
  34505. clipRule: "evenodd",
  34506. d: "M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-10h3v10H1zm4 0v-4.5h2.793l-.643.642a.5.5 0 10.707.708l1.497-1.497a.5.5 0 000-.707L7.85 5.146a.5.5 0 10-.707.708l.65.65H5v-4.5h6v10H5z",
  34507. fill: color2
  34508. }
  34509. )
  34510. )), BottomBarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34511. "svg",
  34512. {
  34513. width: size,
  34514. height: size,
  34515. viewBox: "0 0 14 14",
  34516. fill: "none",
  34517. xmlns: "http://www.w3.org/2000/svg",
  34518. ref: forwardedRef,
  34519. ...props
  34520. },
  34521. React255.createElement(
  34522. "path",
  34523. {
  34524. d: "M3 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM6.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM9 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",
  34525. fill: color2
  34526. }
  34527. ),
  34528. React255.createElement(
  34529. "path",
  34530. {
  34531. fillRule: "evenodd",
  34532. clipRule: "evenodd",
  34533. d: "M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 6.5v-6h10v6H2zm10 1v3H2v-3h10z",
  34534. fill: color2
  34535. }
  34536. )
  34537. )), BottomBarToggleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34538. "svg",
  34539. {
  34540. width: size,
  34541. height: size,
  34542. viewBox: "0 0 14 14",
  34543. fill: "none",
  34544. xmlns: "http://www.w3.org/2000/svg",
  34545. ref: forwardedRef,
  34546. ...props
  34547. },
  34548. React255.createElement(
  34549. "path",
  34550. {
  34551. d: "M3.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM6 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM9.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1z",
  34552. fill: color2
  34553. }
  34554. ),
  34555. React255.createElement(
  34556. "path",
  34557. {
  34558. fillRule: "evenodd",
  34559. clipRule: "evenodd",
  34560. d: "M1 12.504v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5zm1-.5v-3h10v3H2zm4.5-4H2v-6h10v6H7.5V5.21l.646.646a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0l-1.5 1.5a.5.5 0 10.708.707l.646-.646v2.793z",
  34561. fill: color2
  34562. }
  34563. )
  34564. )), CPUIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34565. "svg",
  34566. {
  34567. width: size,
  34568. height: size,
  34569. viewBox: "0 0 14 15",
  34570. fill: "none",
  34571. xmlns: "http://www.w3.org/2000/svg",
  34572. ref: forwardedRef,
  34573. ...props
  34574. },
  34575. React255.createElement(
  34576. "path",
  34577. {
  34578. fillRule: "evenodd",
  34579. clipRule: "evenodd",
  34580. d: "M5 5.504a.5.5 0 01.5-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5v-3zm1 2.5v-2h2v2H6z",
  34581. fill: color2
  34582. }
  34583. ),
  34584. React255.createElement(
  34585. "path",
  34586. {
  34587. fillRule: "evenodd",
  34588. clipRule: "evenodd",
  34589. d: "M5.5.004a.5.5 0 01.5.5v1.5h2v-1.5a.5.5 0 011 0v1.5h2.5a.5.5 0 01.5.5v2.5h1.5a.5.5 0 010 1H12v2h1.5a.5.5 0 010 1H12v2.5a.5.5 0 01-.5.5H9v1.5a.5.5 0 01-1 0v-1.5H6v1.5a.5.5 0 01-1 0v-1.5H2.5a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 010-1H2v-2H.5a.5.5 0 010-1H2v-2.5a.5.5 0 01.5-.5H5v-1.5a.5.5 0 01.5-.5zm5.5 3H3v8h8v-8z",
  34590. fill: color2
  34591. }
  34592. )
  34593. )), DatabaseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34594. "svg",
  34595. {
  34596. width: size,
  34597. height: size,
  34598. viewBox: "0 0 14 14",
  34599. fill: "none",
  34600. xmlns: "http://www.w3.org/2000/svg",
  34601. ref: forwardedRef,
  34602. ...props
  34603. },
  34604. React255.createElement(
  34605. "path",
  34606. {
  34607. fillRule: "evenodd",
  34608. clipRule: "evenodd",
  34609. d: "M12 3c0-1.105-2.239-2-5-2s-5 .895-5 2v8c0 .426.26.752.544.977.29.228.68.413 1.116.558.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.436-.145.825-.33 1.116-.558.285-.225.544-.551.544-.977V3zm-1.03 0a.787.787 0 00-.05-.052c-.13-.123-.373-.28-.756-.434C9.404 2.21 8.286 2 7 2c-1.286 0-2.404.21-3.164.514-.383.153-.625.31-.756.434A.756.756 0 003.03 3a.756.756 0 00.05.052c.13.123.373.28.756.434C4.596 3.79 5.714 4 7 4c1.286 0 2.404-.21 3.164-.514.383-.153.625-.31.756-.434A.787.787 0 0010.97 3zM11 5.75V4.2c-.912.486-2.364.8-4 .8-1.636 0-3.088-.314-4-.8v1.55l.002.008a.147.147 0 00.016.033.618.618 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.62.62 0 00.146-.15.149.149 0 00.015-.033A.03.03 0 0011 5.75zM3 7.013c.2.103.423.193.66.272.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.237-.079.46-.17.66-.272V8.5l-.002.008a.149.149 0 01-.015.033.62.62 0 01-.146.15c-.165.13-.435.27-.813.395-.751.25-1.82.414-3.024.414s-2.273-.163-3.024-.414c-.378-.126-.648-.265-.813-.395a.618.618 0 01-.145-.15.147.147 0 01-.016-.033A.027.027 0 013 8.5V7.013zm0 2.75V11l.002.008a.147.147 0 00.016.033.617.617 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.619.619 0 00.146-.15.148.148 0 00.015-.033L11 11V9.763c-.2.103-.423.193-.66.272-.878.293-2.059.465-3.34.465-1.281 0-2.462-.172-3.34-.465A4.767 4.767 0 013 9.763z",
  34610. fill: color2
  34611. }
  34612. )
  34613. )), MemoryIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34614. "svg",
  34615. {
  34616. width: size,
  34617. height: size,
  34618. viewBox: "0 0 14 15",
  34619. fill: "none",
  34620. xmlns: "http://www.w3.org/2000/svg",
  34621. ref: forwardedRef,
  34622. ...props
  34623. },
  34624. React255.createElement(
  34625. "path",
  34626. {
  34627. d: "M5 3a.5.5 0 00-1 0v3a.5.5 0 001 0V3zM7 2.5a.5.5 0 01.5.5v3a.5.5 0 01-1 0V3a.5.5 0 01.5-.5zM10 4.504a.5.5 0 10-1 0V6a.5.5 0 001 0V4.504z",
  34628. fill: color2
  34629. }
  34630. ),
  34631. React255.createElement(
  34632. "path",
  34633. {
  34634. fillRule: "evenodd",
  34635. clipRule: "evenodd",
  34636. d: "M12 3.54l-.001-.002a.499.499 0 00-.145-.388l-3-3a.499.499 0 00-.388-.145L8.464.004H2.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h9a.5.5 0 00.5-.5V3.54zM3 1.004h5.293L11 3.71v5.293H3v-8zm0 9v3h8v-3H3z",
  34637. fill: color2
  34638. }
  34639. )
  34640. )), StructureIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34641. "svg",
  34642. {
  34643. width: size,
  34644. height: size,
  34645. viewBox: "0 0 14 14",
  34646. fill: "none",
  34647. xmlns: "http://www.w3.org/2000/svg",
  34648. ref: forwardedRef,
  34649. ...props
  34650. },
  34651. React255.createElement(
  34652. "path",
  34653. {
  34654. fillRule: "evenodd",
  34655. clipRule: "evenodd",
  34656. d: "M8.164 3.446a1.5 1.5 0 10-2.328 0L1.81 10.032A1.503 1.503 0 000 11.5a1.5 1.5 0 002.915.5h8.17a1.5 1.5 0 101.104-1.968L8.164 3.446zm-1.475.522a1.506 1.506 0 00.622 0l4.025 6.586a1.495 1.495 0 00-.25.446H2.914a1.497 1.497 0 00-.25-.446l4.024-6.586z",
  34657. fill: color2
  34658. }
  34659. )
  34660. )), BoxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34661. "svg",
  34662. {
  34663. width: size,
  34664. height: size,
  34665. viewBox: "0 0 14 14",
  34666. fill: "none",
  34667. xmlns: "http://www.w3.org/2000/svg",
  34668. ref: forwardedRef,
  34669. ...props
  34670. },
  34671. React255.createElement(
  34672. "path",
  34673. {
  34674. fillRule: "evenodd",
  34675. clipRule: "evenodd",
  34676. d: "M7.21.046l6.485 2.994A.5.5 0 0114 3.51v6.977a.495.495 0 01-.23.432.481.481 0 01-.071.038L7.23 13.944a.499.499 0 01-.46 0L.3 10.958a.498.498 0 01-.3-.47V3.511a.497.497 0 01.308-.473L6.78.051a.499.499 0 01.43-.005zM1 4.282v5.898l5.5 2.538V6.82L1 4.282zm6.5 8.436L13 10.18V4.282L7.5 6.82v5.898zM12.307 3.5L7 5.95 1.693 3.5 7 1.05l5.307 2.45z",
  34677. fill: color2
  34678. }
  34679. )
  34680. )), PowerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34681. "svg",
  34682. {
  34683. width: size,
  34684. height: size,
  34685. viewBox: "0 0 14 14",
  34686. fill: "none",
  34687. xmlns: "http://www.w3.org/2000/svg",
  34688. ref: forwardedRef,
  34689. ...props
  34690. },
  34691. React255.createElement("path", { d: "M7.5.5a.5.5 0 00-1 0v6a.5.5 0 001 0v-6z", fill: color2 }),
  34692. React255.createElement(
  34693. "path",
  34694. {
  34695. d: "M4.273 2.808a.5.5 0 00-.546-.837 6 6 0 106.546 0 .5.5 0 00-.546.837 5 5 0 11-5.454 0z",
  34696. fill: color2
  34697. }
  34698. )
  34699. )), EditIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34700. "svg",
  34701. {
  34702. width: size,
  34703. height: size,
  34704. viewBox: "0 0 14 14",
  34705. fill: "none",
  34706. xmlns: "http://www.w3.org/2000/svg",
  34707. ref: forwardedRef,
  34708. ...props
  34709. },
  34710. React255.createElement(
  34711. "path",
  34712. {
  34713. fillRule: "evenodd",
  34714. clipRule: "evenodd",
  34715. d: "M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",
  34716. fill: color2
  34717. }
  34718. )
  34719. )), CogIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34720. "svg",
  34721. {
  34722. width: size,
  34723. height: size,
  34724. viewBox: "0 0 14 14",
  34725. fill: "none",
  34726. xmlns: "http://www.w3.org/2000/svg",
  34727. ref: forwardedRef,
  34728. ...props
  34729. },
  34730. React255.createElement(
  34731. "path",
  34732. {
  34733. d: "M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",
  34734. fill: color2
  34735. }
  34736. ),
  34737. React255.createElement(
  34738. "path",
  34739. {
  34740. fillRule: "evenodd",
  34741. clipRule: "evenodd",
  34742. d: "M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",
  34743. fill: color2
  34744. }
  34745. )
  34746. )), NutIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34747. "svg",
  34748. {
  34749. width: size,
  34750. height: size,
  34751. viewBox: "0 0 14 14",
  34752. fill: "none",
  34753. xmlns: "http://www.w3.org/2000/svg",
  34754. ref: forwardedRef,
  34755. ...props
  34756. },
  34757. React255.createElement(
  34758. "path",
  34759. {
  34760. d: "M5.585 8.414a2 2 0 113.277-.683.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 00-.365-.93 2 2 0 01-2.146-.449z",
  34761. fill: color2
  34762. }
  34763. ),
  34764. React255.createElement(
  34765. "path",
  34766. {
  34767. fillRule: "evenodd",
  34768. clipRule: "evenodd",
  34769. d: "M6.5.289a1 1 0 011 0l5.062 2.922a1 1 0 01.5.866v5.846a1 1 0 01-.5.866L7.5 13.71a1 1 0 01-1 0L1.437 10.79a1 1 0 01-.5-.866V4.077a1 1 0 01.5-.866L6.5.29zm.5.866l5.062 2.922v5.846L7 12.845 1.937 9.923V4.077L7 1.155z",
  34770. fill: color2
  34771. }
  34772. )
  34773. )), WrenchIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34774. "svg",
  34775. {
  34776. width: size,
  34777. height: size,
  34778. viewBox: "0 0 14 14",
  34779. fill: "none",
  34780. xmlns: "http://www.w3.org/2000/svg",
  34781. ref: forwardedRef,
  34782. ...props
  34783. },
  34784. React255.createElement(
  34785. "path",
  34786. {
  34787. fillRule: "evenodd",
  34788. clipRule: "evenodd",
  34789. d: "M10.5 1c.441 0 .564.521.252.833l-.806.807a.51.51 0 000 .72l.694.694a.51.51 0 00.72 0l.807-.806c.312-.312.833-.19.833.252a2.5 2.5 0 01-3.414 2.328l-6.879 6.88a1 1 0 01-1.414-1.415l6.88-6.88A2.5 2.5 0 0110.5 1zM2 12.5a.5.5 0 100-1 .5.5 0 000 1z",
  34790. fill: color2
  34791. }
  34792. )
  34793. )), EllipsisIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34794. "svg",
  34795. {
  34796. width: size,
  34797. height: size,
  34798. viewBox: "0 0 14 14",
  34799. fill: "none",
  34800. xmlns: "http://www.w3.org/2000/svg",
  34801. ref: forwardedRef,
  34802. ...props
  34803. },
  34804. React255.createElement(
  34805. "path",
  34806. {
  34807. d: "M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",
  34808. fill: color2
  34809. }
  34810. )
  34811. )), WandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34812. "svg",
  34813. {
  34814. width: size,
  34815. height: size,
  34816. viewBox: "0 0 14 15",
  34817. fill: "none",
  34818. xmlns: "http://www.w3.org/2000/svg",
  34819. ref: forwardedRef,
  34820. ...props
  34821. },
  34822. React255.createElement(
  34823. "path",
  34824. {
  34825. d: "M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.633l-.486.272a.107.107 0 01-.157-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.217-1.09.817-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.217-1.09.817-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",
  34826. fill: color2
  34827. }
  34828. ),
  34829. React255.createElement(
  34830. "path",
  34831. {
  34832. fillRule: "evenodd",
  34833. clipRule: "evenodd",
  34834. d: "M.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2zm2.353.94l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.039l1.293 1.293z",
  34835. fill: color2
  34836. }
  34837. )
  34838. )), SweepIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34839. "svg",
  34840. {
  34841. width: size,
  34842. height: size,
  34843. viewBox: "0 0 14 14",
  34844. fill: "none",
  34845. xmlns: "http://www.w3.org/2000/svg",
  34846. ref: forwardedRef,
  34847. ...props
  34848. },
  34849. React255.createElement(
  34850. "path",
  34851. {
  34852. fillRule: "evenodd",
  34853. clipRule: "evenodd",
  34854. d: "M9.621 3.914l.379.379 3.146-3.147a.5.5 0 01.708.708L10.707 5l.379.379a3 3 0 010 4.242l-.707.707-.005.005-.008.008-.012.013-1.733 1.732a3 3 0 01-4.242 0L.146 7.854a.5.5 0 01.708-.707.915.915 0 001.292 0L4.64 4.654a.52.52 0 01.007-.008l.733-.732a3 3 0 014.242 0zm-4.26 1.432l.139-.139 3.146 3.147a.5.5 0 10.708-.707L6.212 4.505a2 2 0 012.702.116l.731.731.001.002h.002l.73.732a2 2 0 010 2.828l-.706.707-.012.013a.503.503 0 00-.014.013l-1.732 1.732a2 2 0 01-2.828 0L3.354 9.647a2.489 2.489 0 001.414-.708l1.086-1.085a.5.5 0 10-.708-.707L4.061 8.232a1.5 1.5 0 01-2.01.102c.294-.088.57-.248.803-.48l2.5-2.5a.475.475 0 00.007-.008z",
  34855. fill: color2
  34856. }
  34857. ),
  34858. React255.createElement(
  34859. "path",
  34860. {
  34861. d: "M2 5.004a1 1 0 11-2 0 1 1 0 012 0zM4 3.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  34862. fill: color2
  34863. }
  34864. )
  34865. )), CheckIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34866. "svg",
  34867. {
  34868. width: size,
  34869. height: size,
  34870. viewBox: "0 0 14 14",
  34871. fill: "none",
  34872. xmlns: "http://www.w3.org/2000/svg",
  34873. ref: forwardedRef,
  34874. ...props
  34875. },
  34876. React255.createElement(
  34877. "path",
  34878. {
  34879. d: "M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",
  34880. fill: color2
  34881. }
  34882. )
  34883. )), FormIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34884. "svg",
  34885. {
  34886. width: size,
  34887. height: size,
  34888. viewBox: "0 0 14 14",
  34889. fill: "none",
  34890. xmlns: "http://www.w3.org/2000/svg",
  34891. ref: forwardedRef,
  34892. ...props
  34893. },
  34894. React255.createElement(
  34895. "path",
  34896. {
  34897. d: "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1V6.393a.5.5 0 00-1 0v5.61H2v-10h7.5a.5.5 0 000-1H2z",
  34898. fill: color2
  34899. }
  34900. ),
  34901. React255.createElement(
  34902. "path",
  34903. {
  34904. d: "M6.354 9.857l7.5-7.5a.5.5 0 00-.708-.707L6 8.797 3.854 6.65a.5.5 0 10-.708.707l2.5 2.5a.5.5 0 00.708 0z",
  34905. fill: color2
  34906. }
  34907. )
  34908. )), BatchDenyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34909. "svg",
  34910. {
  34911. width: size,
  34912. height: size,
  34913. viewBox: "0 0 14 14",
  34914. fill: "none",
  34915. xmlns: "http://www.w3.org/2000/svg",
  34916. ref: forwardedRef,
  34917. ...props
  34918. },
  34919. React255.createElement(
  34920. "path",
  34921. {
  34922. d: "M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8.854 2.646a.5.5 0 010 .708L5.207 7l3.647 3.646a.5.5 0 01-.708.708L4.5 7.707.854 11.354a.5.5 0 01-.708-.708L3.793 7 .146 3.354a.5.5 0 11.708-.708L4.5 6.293l3.646-3.647a.5.5 0 01.708 0zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",
  34923. fill: color2
  34924. }
  34925. )
  34926. )), BatchAcceptIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34927. "svg",
  34928. {
  34929. width: size,
  34930. height: size,
  34931. viewBox: "0 0 14 14",
  34932. fill: "none",
  34933. xmlns: "http://www.w3.org/2000/svg",
  34934. ref: forwardedRef,
  34935. ...props
  34936. },
  34937. React255.createElement(
  34938. "path",
  34939. {
  34940. d: "M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",
  34941. fill: color2
  34942. }
  34943. )
  34944. )), ControlsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34945. "svg",
  34946. {
  34947. width: size,
  34948. height: size,
  34949. viewBox: "0 0 14 14",
  34950. fill: "none",
  34951. xmlns: "http://www.w3.org/2000/svg",
  34952. ref: forwardedRef,
  34953. ...props
  34954. },
  34955. React255.createElement(
  34956. "path",
  34957. {
  34958. d: "M10.5 1a.5.5 0 01.5.5V2h1.5a.5.5 0 010 1H11v.5a.5.5 0 01-1 0V3H1.5a.5.5 0 010-1H10v-.5a.5.5 0 01.5-.5zM1.5 11a.5.5 0 000 1H10v.5a.5.5 0 001 0V12h1.5a.5.5 0 000-1H11v-.5a.5.5 0 00-1 0v.5H1.5zM1 7a.5.5 0 01.5-.5H3V6a.5.5 0 011 0v.5h8.5a.5.5 0 010 1H4V8a.5.5 0 01-1 0v-.5H1.5A.5.5 0 011 7z",
  34959. fill: color2
  34960. }
  34961. )
  34962. )), PlusIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34963. "svg",
  34964. {
  34965. width: size,
  34966. height: size,
  34967. viewBox: "0 0 14 14",
  34968. fill: "none",
  34969. xmlns: "http://www.w3.org/2000/svg",
  34970. ref: forwardedRef,
  34971. ...props
  34972. },
  34973. React255.createElement(
  34974. "path",
  34975. {
  34976. d: "M7 1a.5.5 0 01.5.5v5h5a.5.5 0 010 1h-5v5a.5.5 0 01-1 0v-5h-5a.5.5 0 010-1h5v-5A.5.5 0 017 1z",
  34977. fill: color2
  34978. }
  34979. )
  34980. )), CloseAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34981. "svg",
  34982. {
  34983. width: size,
  34984. height: size,
  34985. viewBox: "0 0 14 14",
  34986. fill: "none",
  34987. xmlns: "http://www.w3.org/2000/svg",
  34988. ref: forwardedRef,
  34989. ...props
  34990. },
  34991. React255.createElement(
  34992. "path",
  34993. {
  34994. d: "M2.03.97A.75.75 0 00.97 2.03L5.94 7 .97 11.97a.75.75 0 101.06 1.06L7 8.06l4.97 4.97a.75.75 0 101.06-1.06L8.06 7l4.97-4.97A.75.75 0 0011.97.97L7 5.94 2.03.97z",
  34995. fill: color2
  34996. }
  34997. )
  34998. )), CrossIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  34999. "svg",
  35000. {
  35001. width: size,
  35002. height: size,
  35003. viewBox: "0 0 14 14",
  35004. fill: "none",
  35005. xmlns: "http://www.w3.org/2000/svg",
  35006. ref: forwardedRef,
  35007. ...props
  35008. },
  35009. React255.createElement(
  35010. "path",
  35011. {
  35012. d: "M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",
  35013. fill: color2
  35014. }
  35015. )
  35016. )), TrashIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35017. "svg",
  35018. {
  35019. width: size,
  35020. height: size,
  35021. viewBox: "0 0 14 14",
  35022. fill: "none",
  35023. xmlns: "http://www.w3.org/2000/svg",
  35024. ref: forwardedRef,
  35025. ...props
  35026. },
  35027. React255.createElement(
  35028. "path",
  35029. {
  35030. d: "M5.5 4.5A.5.5 0 016 5v5a.5.5 0 01-1 0V5a.5.5 0 01.5-.5zM9 5a.5.5 0 00-1 0v5a.5.5 0 001 0V5z",
  35031. fill: color2
  35032. }
  35033. ),
  35034. React255.createElement(
  35035. "path",
  35036. {
  35037. fillRule: "evenodd",
  35038. clipRule: "evenodd",
  35039. d: "M4.5.5A.5.5 0 015 0h4a.5.5 0 01.5.5V2h3a.5.5 0 010 1H12v8a2 2 0 01-2 2H4a2 2 0 01-2-2V3h-.5a.5.5 0 010-1h3V.5zM3 3v8a1 1 0 001 1h6a1 1 0 001-1V3H3zm2.5-2h3v1h-3V1z",
  35040. fill: color2
  35041. }
  35042. )
  35043. )), PinAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35044. "svg",
  35045. {
  35046. width: size,
  35047. height: size,
  35048. viewBox: "0 0 14 14",
  35049. fill: "none",
  35050. xmlns: "http://www.w3.org/2000/svg",
  35051. ref: forwardedRef,
  35052. ...props
  35053. },
  35054. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3502)" }, React255.createElement(
  35055. "path",
  35056. {
  35057. fillRule: "evenodd",
  35058. clipRule: "evenodd",
  35059. d: "M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5 5H3.657A4 4 0 00.828 6.17l-.474.475a.5.5 0 000 .707l2.793 2.793-3 3a.5.5 0 00.707.708l3-3 2.792 2.792a.5.5 0 00.708 0l.474-.475A4 4 0 009 10.343V9l2-2a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM11 5.585l-3 3v1.757a3 3 0 01-.879 2.121L7 12.586 1.414 7l.122-.122A3 3 0 013.656 6h1.758l3-3-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586z",
  35060. fill: color2
  35061. }
  35062. )),
  35063. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3502" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  35064. )), UnpinIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35065. "svg",
  35066. {
  35067. width: size,
  35068. height: size,
  35069. viewBox: "0 0 14 14",
  35070. fill: "none",
  35071. xmlns: "http://www.w3.org/2000/svg",
  35072. ref: forwardedRef,
  35073. ...props
  35074. },
  35075. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3501)", fill: color2 }, React255.createElement("path", { d: "M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5.707 4.293 6.414 5l2-2-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586l-2 2 .707.707L11 7a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM.828 6.171a4 4 0 012.758-1.17l1 .999h-.93a3 3 0 00-2.12.878L1.414 7 7 12.586l.121-.122A3 3 0 008 10.343v-.929l1 1a4 4 0 01-1.172 2.757l-.474.475a.5.5 0 01-.708 0l-2.792-2.792-3 3a.5.5 0 01-.708-.708l3-3L.355 7.353a.5.5 0 010-.707l.474-.475zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z" })),
  35076. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3501" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  35077. )), AddIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35078. "svg",
  35079. {
  35080. width: size,
  35081. height: size,
  35082. viewBox: "0 0 14 14",
  35083. fill: "none",
  35084. xmlns: "http://www.w3.org/2000/svg",
  35085. ref: forwardedRef,
  35086. ...props
  35087. },
  35088. React255.createElement(
  35089. "path",
  35090. {
  35091. d: "M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",
  35092. fill: color2
  35093. }
  35094. ),
  35095. React255.createElement(
  35096. "path",
  35097. {
  35098. fillRule: "evenodd",
  35099. clipRule: "evenodd",
  35100. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  35101. fill: color2
  35102. }
  35103. )
  35104. )), SubtractIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35105. "svg",
  35106. {
  35107. width: size,
  35108. height: size,
  35109. viewBox: "0 0 14 14",
  35110. fill: "none",
  35111. xmlns: "http://www.w3.org/2000/svg",
  35112. ref: forwardedRef,
  35113. ...props
  35114. },
  35115. React255.createElement("path", { d: "M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z", fill: color2 }),
  35116. React255.createElement(
  35117. "path",
  35118. {
  35119. fillRule: "evenodd",
  35120. clipRule: "evenodd",
  35121. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  35122. fill: color2
  35123. }
  35124. )
  35125. )), CloseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35126. "svg",
  35127. {
  35128. width: size,
  35129. height: size,
  35130. viewBox: "0 0 14 14",
  35131. fill: "none",
  35132. xmlns: "http://www.w3.org/2000/svg",
  35133. ref: forwardedRef,
  35134. ...props
  35135. },
  35136. React255.createElement(
  35137. "path",
  35138. {
  35139. d: "M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",
  35140. fill: color2
  35141. }
  35142. ),
  35143. React255.createElement(
  35144. "path",
  35145. {
  35146. fillRule: "evenodd",
  35147. clipRule: "evenodd",
  35148. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  35149. fill: color2
  35150. }
  35151. )
  35152. )), DeleteIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35153. "svg",
  35154. {
  35155. width: size,
  35156. height: size,
  35157. viewBox: "0 0 14 14",
  35158. fill: "none",
  35159. xmlns: "http://www.w3.org/2000/svg",
  35160. ref: forwardedRef,
  35161. ...props
  35162. },
  35163. React255.createElement(
  35164. "path",
  35165. {
  35166. fillRule: "evenodd",
  35167. clipRule: "evenodd",
  35168. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0a6 6 0 01-9.874 4.582l8.456-8.456A5.976 5.976 0 0113 7zM2.418 10.874l8.456-8.456a6 6 0 00-8.456 8.456z",
  35169. fill: color2
  35170. }
  35171. )
  35172. )), PassedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35173. "svg",
  35174. {
  35175. width: size,
  35176. height: size,
  35177. viewBox: "0 0 14 14",
  35178. fill: "none",
  35179. xmlns: "http://www.w3.org/2000/svg",
  35180. ref: forwardedRef,
  35181. ...props
  35182. },
  35183. React255.createElement(
  35184. "path",
  35185. {
  35186. fillRule: "evenodd",
  35187. clipRule: "evenodd",
  35188. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",
  35189. fill: color2
  35190. }
  35191. )
  35192. )), ChangedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35193. "svg",
  35194. {
  35195. width: size,
  35196. height: size,
  35197. viewBox: "0 0 14 14",
  35198. fill: "none",
  35199. xmlns: "http://www.w3.org/2000/svg",
  35200. ref: forwardedRef,
  35201. ...props
  35202. },
  35203. React255.createElement(
  35204. "path",
  35205. {
  35206. fillRule: "evenodd",
  35207. clipRule: "evenodd",
  35208. d: "M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",
  35209. fill: color2
  35210. }
  35211. )
  35212. )), FailedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35213. "svg",
  35214. {
  35215. width: size,
  35216. height: size,
  35217. viewBox: "0 0 14 14",
  35218. fill: "none",
  35219. xmlns: "http://www.w3.org/2000/svg",
  35220. ref: forwardedRef,
  35221. ...props
  35222. },
  35223. React255.createElement(
  35224. "path",
  35225. {
  35226. fillRule: "evenodd",
  35227. clipRule: "evenodd",
  35228. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",
  35229. fill: color2
  35230. }
  35231. )
  35232. )), ClearIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35233. "svg",
  35234. {
  35235. width: size,
  35236. height: size,
  35237. viewBox: "0 0 14 14",
  35238. fill: "none",
  35239. xmlns: "http://www.w3.org/2000/svg",
  35240. ref: forwardedRef,
  35241. ...props
  35242. },
  35243. React255.createElement(
  35244. "path",
  35245. {
  35246. fillRule: "evenodd",
  35247. clipRule: "evenodd",
  35248. d: "M5 2h7a2 2 0 012 2v6a2 2 0 01-2 2H5a1.994 1.994 0 01-1.414-.586l-3-3a2 2 0 010-2.828l3-3A1.994 1.994 0 015 2zm1.146 3.146a.5.5 0 01.708 0L8 6.293l1.146-1.147a.5.5 0 11.708.708L8.707 7l1.147 1.146a.5.5 0 01-.708.708L8 7.707 6.854 8.854a.5.5 0 11-.708-.708L7.293 7 6.146 5.854a.5.5 0 010-.708z",
  35249. fill: color2
  35250. }
  35251. )
  35252. )), CommentIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35253. "svg",
  35254. {
  35255. width: size,
  35256. height: size,
  35257. viewBox: "0 0 14 15",
  35258. fill: "none",
  35259. xmlns: "http://www.w3.org/2000/svg",
  35260. ref: forwardedRef,
  35261. ...props
  35262. },
  35263. React255.createElement(
  35264. "path",
  35265. {
  35266. d: "M3.5 5.004a.5.5 0 100 1h7a.5.5 0 000-1h-7zM3 8.504a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5z",
  35267. fill: color2
  35268. }
  35269. ),
  35270. React255.createElement(
  35271. "path",
  35272. {
  35273. fillRule: "evenodd",
  35274. clipRule: "evenodd",
  35275. d: "M12.5 12.004H5.707l-1.853 1.854a.5.5 0 01-.351.146h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5zm-10.5-1v-8h10v8H2z",
  35276. fill: color2
  35277. }
  35278. )
  35279. )), CommentAddIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35280. "svg",
  35281. {
  35282. width: size,
  35283. height: size,
  35284. viewBox: "0 0 14 15",
  35285. fill: "none",
  35286. xmlns: "http://www.w3.org/2000/svg",
  35287. ref: forwardedRef,
  35288. ...props
  35289. },
  35290. React255.createElement(
  35291. "path",
  35292. {
  35293. d: "M7.5 5.004a.5.5 0 10-1 0v1.5H5a.5.5 0 100 1h1.5v1.5a.5.5 0 001 0v-1.5H9a.5.5 0 000-1H7.5v-1.5z",
  35294. fill: color2
  35295. }
  35296. ),
  35297. React255.createElement(
  35298. "path",
  35299. {
  35300. fillRule: "evenodd",
  35301. clipRule: "evenodd",
  35302. d: "M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",
  35303. fill: color2
  35304. }
  35305. )
  35306. )), RequestChangeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35307. "svg",
  35308. {
  35309. width: size,
  35310. height: size,
  35311. viewBox: "0 0 14 15",
  35312. fill: "none",
  35313. xmlns: "http://www.w3.org/2000/svg",
  35314. ref: forwardedRef,
  35315. ...props
  35316. },
  35317. React255.createElement(
  35318. "path",
  35319. {
  35320. d: "M9.854 6.65a.5.5 0 010 .707l-2 2a.5.5 0 11-.708-.707l1.15-1.15-3.796.004a.5.5 0 010-1L8.29 6.5 7.145 5.357a.5.5 0 11.708-.707l2 2z",
  35321. fill: color2
  35322. }
  35323. ),
  35324. React255.createElement(
  35325. "path",
  35326. {
  35327. fillRule: "evenodd",
  35328. clipRule: "evenodd",
  35329. d: "M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",
  35330. fill: color2
  35331. }
  35332. )
  35333. )), CommentsIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35334. "svg",
  35335. {
  35336. width: size,
  35337. height: size,
  35338. viewBox: "0 0 14 15",
  35339. fill: "none",
  35340. xmlns: "http://www.w3.org/2000/svg",
  35341. ref: forwardedRef,
  35342. ...props
  35343. },
  35344. React255.createElement(
  35345. "path",
  35346. {
  35347. d: "M8.5 7.004a.5.5 0 000-1h-5a.5.5 0 100 1h5zM9 8.504a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5z",
  35348. fill: color2
  35349. }
  35350. ),
  35351. React255.createElement(
  35352. "path",
  35353. {
  35354. fillRule: "evenodd",
  35355. clipRule: "evenodd",
  35356. d: "M12 11.504v-1.5h1.5a.5.5 0 00.5-.5v-8a.5.5 0 00-.5-.5h-11a.5.5 0 00-.5.5v1.5H.5a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H2v1.5a.499.499 0 00.497.5h.006a.498.498 0 00.35-.146l1.854-1.854H11.5a.5.5 0 00.5-.5zm-9-8.5v-1h10v7h-1v-5.5a.5.5 0 00-.5-.5H3zm-2 8v-7h10v7H1z",
  35357. fill: color2
  35358. }
  35359. )
  35360. )), ChatIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35361. "svg",
  35362. {
  35363. width: size,
  35364. height: size,
  35365. viewBox: "0 0 14 14",
  35366. fill: "none",
  35367. xmlns: "http://www.w3.org/2000/svg",
  35368. ref: forwardedRef,
  35369. ...props
  35370. },
  35371. React255.createElement(
  35372. "path",
  35373. {
  35374. fillRule: "evenodd",
  35375. clipRule: "evenodd",
  35376. d: "M1 2a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H6.986a.444.444 0 01-.124.103l-3.219 1.84A.43.43 0 013 13.569V12a2 2 0 01-2-2V2zm3.42 4.78a.921.921 0 110-1.843.921.921 0 010 1.842zm1.658-.922a.921.921 0 101.843 0 .921.921 0 00-1.843 0zm2.58 0a.921.921 0 101.842 0 .921.921 0 00-1.843 0z",
  35377. fill: color2
  35378. }
  35379. )
  35380. )), LockIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35381. "svg",
  35382. {
  35383. width: size,
  35384. height: size,
  35385. viewBox: "0 0 14 15",
  35386. fill: "none",
  35387. xmlns: "http://www.w3.org/2000/svg",
  35388. ref: forwardedRef,
  35389. ...props
  35390. },
  35391. React255.createElement(
  35392. "path",
  35393. {
  35394. d: "M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",
  35395. fill: color2
  35396. }
  35397. ),
  35398. React255.createElement(
  35399. "path",
  35400. {
  35401. fillRule: "evenodd",
  35402. clipRule: "evenodd",
  35403. d: "M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",
  35404. fill: color2
  35405. }
  35406. )
  35407. )), UnlockIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35408. "svg",
  35409. {
  35410. width: size,
  35411. height: size,
  35412. viewBox: "0 0 14 14",
  35413. fill: "none",
  35414. xmlns: "http://www.w3.org/2000/svg",
  35415. ref: forwardedRef,
  35416. ...props
  35417. },
  35418. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3614)", fill: color2 }, React255.createElement("path", { d: "M6.5 8.87a1 1 0 111 0v1.634a.5.5 0 01-1 0V8.87z" }), React255.createElement(
  35419. "path",
  35420. {
  35421. fillRule: "evenodd",
  35422. clipRule: "evenodd",
  35423. d: "M7 1a3 3 0 00-3 3v1.004h8.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3V4a4 4 0 017.755-1.381.5.5 0 01-.939.345A3.001 3.001 0 007 1zM2 6.004h10v7H2v-7z"
  35424. }
  35425. )),
  35426. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3614" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  35427. )), KeyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35428. "svg",
  35429. {
  35430. width: size,
  35431. height: size,
  35432. viewBox: "0 0 14 14",
  35433. fill: "none",
  35434. xmlns: "http://www.w3.org/2000/svg",
  35435. ref: forwardedRef,
  35436. ...props
  35437. },
  35438. React255.createElement("path", { d: "M11 4a1 1 0 11-2 0 1 1 0 012 0z", fill: color2 }),
  35439. React255.createElement(
  35440. "path",
  35441. {
  35442. fillRule: "evenodd",
  35443. clipRule: "evenodd",
  35444. d: "M7.5 8.532V9.5a.5.5 0 01-.5.5H5.5v1.5a.5.5 0 01-.5.5H3.5v1.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-2a.5.5 0 01.155-.362l5.11-5.11A4.5 4.5 0 117.5 8.532zM6 4.5a3.5 3.5 0 111.5 2.873c-.29-.203-1-.373-1 .481V9H5a.5.5 0 00-.5.5V11H3a.5.5 0 00-.5.5V13H1v-1.293l5.193-5.193a.552.552 0 00.099-.613A3.473 3.473 0 016 4.5z",
  35445. fill: color2
  35446. }
  35447. )
  35448. )), OutboxIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35449. "svg",
  35450. {
  35451. width: size,
  35452. height: size,
  35453. viewBox: "0 0 14 14",
  35454. fill: "none",
  35455. xmlns: "http://www.w3.org/2000/svg",
  35456. ref: forwardedRef,
  35457. ...props
  35458. },
  35459. React255.createElement(
  35460. "path",
  35461. {
  35462. d: "M7.354.15a.5.5 0 00-.708 0l-2 2a.5.5 0 10.708.707L6.5 1.711v6.793a.5.5 0 001 0V1.71l1.146 1.146a.5.5 0 10.708-.707l-2-2z",
  35463. fill: color2
  35464. }
  35465. ),
  35466. React255.createElement(
  35467. "path",
  35468. {
  35469. d: "M2 7.504a.5.5 0 10-1 0v5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-5a.5.5 0 00-1 0v4.5H2v-4.5z",
  35470. fill: color2
  35471. }
  35472. )
  35473. )), CreditIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35474. "svg",
  35475. {
  35476. width: size,
  35477. height: size,
  35478. viewBox: "0 0 14 14",
  35479. fill: "none",
  35480. xmlns: "http://www.w3.org/2000/svg",
  35481. ref: forwardedRef,
  35482. ...props
  35483. },
  35484. React255.createElement("path", { d: "M2.5 8.004a.5.5 0 100 1h3a.5.5 0 000-1h-3z", fill: color2 }),
  35485. React255.createElement(
  35486. "path",
  35487. {
  35488. fillRule: "evenodd",
  35489. clipRule: "evenodd",
  35490. d: "M0 11.504a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v9zm1-8.5v1h12v-1H1zm0 8h12v-5H1v5z",
  35491. fill: color2
  35492. }
  35493. )
  35494. )), ButtonIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35495. "svg",
  35496. {
  35497. width: size,
  35498. height: size,
  35499. viewBox: "0 0 14 14",
  35500. fill: "none",
  35501. xmlns: "http://www.w3.org/2000/svg",
  35502. ref: forwardedRef,
  35503. ...props
  35504. },
  35505. React255.createElement(
  35506. "path",
  35507. {
  35508. d: "M1 3.004a1 1 0 00-1 1v5a1 1 0 001 1h3.5a.5.5 0 100-1H1v-5h12v5h-1a.5.5 0 000 1h1a1 1 0 001-1v-5a1 1 0 00-1-1H1z",
  35509. fill: color2
  35510. }
  35511. ),
  35512. React255.createElement(
  35513. "path",
  35514. {
  35515. d: "M6.45 7.006a.498.498 0 01.31.07L10.225 9.1a.5.5 0 01-.002.873l-1.074.621.75 1.3a.75.75 0 01-1.3.75l-.75-1.3-1.074.62a.497.497 0 01-.663-.135.498.498 0 01-.095-.3L6 7.515a.497.497 0 01.45-.509z",
  35516. fill: color2
  35517. }
  35518. )
  35519. )), TypeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35520. "svg",
  35521. {
  35522. width: size,
  35523. height: size,
  35524. viewBox: "0 0 14 14",
  35525. fill: "none",
  35526. xmlns: "http://www.w3.org/2000/svg",
  35527. ref: forwardedRef,
  35528. ...props
  35529. },
  35530. React255.createElement(
  35531. "path",
  35532. {
  35533. d: "M4 1.504a.5.5 0 01.5-.5h5a.5.5 0 110 1h-2v10h2a.5.5 0 010 1h-5a.5.5 0 010-1h2v-10h-2a.5.5 0 01-.5-.5z",
  35534. fill: color2
  35535. }
  35536. ),
  35537. React255.createElement(
  35538. "path",
  35539. {
  35540. d: "M0 4.504a.5.5 0 01.5-.5h4a.5.5 0 110 1H1v4h3.5a.5.5 0 110 1h-4a.5.5 0 01-.5-.5v-5zM9.5 4.004a.5.5 0 100 1H13v4H9.5a.5.5 0 100 1h4a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-4z",
  35541. fill: color2
  35542. }
  35543. )
  35544. )), PointerDefaultIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35545. "svg",
  35546. {
  35547. width: size,
  35548. height: size,
  35549. viewBox: "0 0 14 14",
  35550. fill: "none",
  35551. xmlns: "http://www.w3.org/2000/svg",
  35552. ref: forwardedRef,
  35553. ...props
  35554. },
  35555. React255.createElement(
  35556. "path",
  35557. {
  35558. fillRule: "evenodd",
  35559. clipRule: "evenodd",
  35560. d: "M5.943 12.457a.27.27 0 00.248-.149L7.77 9.151l2.54 2.54a.257.257 0 00.188.073c.082 0 .158-.03.21-.077l.788-.79a.27.27 0 000-.392L8.891 7.9l3.416-1.708a.29.29 0 00.117-.106.222.222 0 00.033-.134.332.332 0 00-.053-.161.174.174 0 00-.092-.072l-.02-.007-10.377-4.15a.274.274 0 00-.355.354l4.15 10.372a.275.275 0 00.233.169zm-.036 1l-.02-.002c-.462-.03-.912-.31-1.106-.796L.632 2.287A1.274 1.274 0 012.286.633l10.358 4.143c.516.182.782.657.81 1.114a1.25 1.25 0 01-.7 1.197L10.58 8.174l1.624 1.624a1.27 1.27 0 010 1.807l-.8.801-.008.007c-.491.46-1.298.48-1.792-.014l-1.56-1.56-.957 1.916a1.27 1.27 0 01-1.142.702h-.037z",
  35561. fill: color2
  35562. }
  35563. )
  35564. )), PointerHandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35565. "svg",
  35566. {
  35567. width: size,
  35568. height: size,
  35569. viewBox: "0 0 14 14",
  35570. fill: "none",
  35571. xmlns: "http://www.w3.org/2000/svg",
  35572. ref: forwardedRef,
  35573. ...props
  35574. },
  35575. React255.createElement(
  35576. "path",
  35577. {
  35578. fillRule: "evenodd",
  35579. clipRule: "evenodd",
  35580. d: "M11.87 6.008a.505.505 0 00-.003-.028v-.002c-.026-.27-.225-.48-.467-.498a.5.5 0 00-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47V5.17a.6.6 0 00-.002-.05c-.023-.268-.223-.49-.468-.5a.5.5 0 00-.52.5v1.65a.486.486 0 01-.47.47.48.48 0 01-.47-.47V4.62a.602.602 0 00-.002-.05v-.002c-.023-.266-.224-.48-.468-.498a.5.5 0 00-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 01-.47-.47V1.8c0-.017 0-.034-.002-.05-.022-.268-.214-.49-.468-.5a.5.5 0 00-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47l.001-.1c.001-.053.002-.104 0-.155a.775.775 0 00-.06-.315.65.65 0 00-.16-.22 29.67 29.67 0 01-.21-.189c-.2-.182-.4-.365-.617-.532l-.003-.003A6.366 6.366 0 003.06 7l-.01-.007c-.433-.331-.621-.243-.69-.193-.26.14-.29.5-.13.74l1.73 2.6v.01h-.016l-.035.023.05-.023s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.039-.591.036-1.189.032-1.783l-.002-.507v-.032zm.969 2.376c-.057 1.285-.254 2.667-1.082 3.72-.88 1.118-2.283 1.646-4.227 1.646-1.574 0-2.714-.87-3.406-1.623a6.958 6.958 0 01-1.046-1.504l-.006-.012-1.674-2.516a1.593 1.593 0 01-.25-1.107 1.44 1.44 0 01.69-1.041c.195-.124.485-.232.856-.186.357.044.681.219.976.446.137.106.272.22.4.331V1.75A1.5 1.5 0 015.63.25c.93.036 1.431.856 1.431 1.55v1.335a1.5 1.5 0 01.53-.063h.017c.512.04.915.326 1.153.71a1.5 1.5 0 01.74-.161c.659.025 1.115.458 1.316.964a1.493 1.493 0 01.644-.103h.017c.856.067 1.393.814 1.393 1.558l.002.48c.004.596.007 1.237-.033 1.864z",
  35581. fill: color2
  35582. }
  35583. )
  35584. )), CommandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35585. "svg",
  35586. {
  35587. width: size,
  35588. height: size,
  35589. viewBox: "0 0 14 14",
  35590. fill: "none",
  35591. xmlns: "http://www.w3.org/2000/svg",
  35592. ref: forwardedRef,
  35593. ...props
  35594. },
  35595. React255.createElement(
  35596. "path",
  35597. {
  35598. fillRule: "evenodd",
  35599. clipRule: "evenodd",
  35600. d: "M3.5 6A2.5 2.5 0 116 3.5V5h2V3.5A2.5 2.5 0 1110.5 6H9v2h1.5A2.5 2.5 0 118 10.5V9H6v1.5A2.5 2.5 0 113.5 8H5V6H3.5zM2 3.5a1.5 1.5 0 113 0V5H3.5A1.5 1.5 0 012 3.5zM6 6v2h2V6H6zm3-1h1.5A1.5 1.5 0 109 3.5V5zM3.5 9H5v1.5A1.5 1.5 0 113.5 9zM9 9v1.5A1.5 1.5 0 1010.5 9H9z",
  35601. fill: color2
  35602. }
  35603. )
  35604. )), SaveIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35605. "svg",
  35606. {
  35607. width: size,
  35608. height: size,
  35609. viewBox: "0 0 14 14",
  35610. fill: "none",
  35611. xmlns: "http://www.w3.org/2000/svg",
  35612. ref: forwardedRef,
  35613. ...props
  35614. },
  35615. React255.createElement(
  35616. "path",
  35617. {
  35618. fillRule: "evenodd",
  35619. clipRule: "evenodd",
  35620. d: "M8.896 1c.2 0 .39.08.53.22l3.354 3.353c.14.14.22.332.22.53V11a2 2 0 01-2 2H3a2 2 0 01-2-2V3a2 2 0 012-2h5.896zM3 2a1 1 0 00-1 1v8a1 1 0 001 1h1V8.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5V12h1a1 1 0 001-1V5.207L8.793 2H5v2h3.5a.5.5 0 010 1h-4a.5.5 0 01-.5-.5V2H3zm2 10h4V9H5v3z",
  35621. fill: color2
  35622. }
  35623. )
  35624. )), SortDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35625. "svg",
  35626. {
  35627. width: size,
  35628. height: size,
  35629. viewBox: "0 0 14 14",
  35630. fill: "none",
  35631. xmlns: "http://www.w3.org/2000/svg",
  35632. ref: forwardedRef,
  35633. ...props
  35634. },
  35635. React255.createElement(
  35636. "path",
  35637. {
  35638. d: "M4.5 2a.5.5 0 01.5.5v8.293l2.146-2.147a.5.5 0 11.708.708L4.86 12.346l-.007.008a.499.499 0 01-.351.146h-.006a.5.5 0 01-.35-.146l-3-3a.5.5 0 11.707-.708L4 10.793V2.5a.5.5 0 01.5-.5zM7 2.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM7 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM10.5 8a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8 11.5a.5.5 0 01.5-.5h4a.5.5 0 010 1h-4a.5.5 0 01-.5-.5z",
  35639. fill: color2
  35640. }
  35641. )
  35642. )), SortUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35643. "svg",
  35644. {
  35645. width: size,
  35646. height: size,
  35647. viewBox: "0 0 14 14",
  35648. fill: "none",
  35649. xmlns: "http://www.w3.org/2000/svg",
  35650. ref: forwardedRef,
  35651. ...props
  35652. },
  35653. React255.createElement(
  35654. "path",
  35655. {
  35656. d: "M4.308 1.538a.496.496 0 00-.162.108l-3 3a.5.5 0 10.708.707L4 3.207V11.5a.5.5 0 001 0V3.207l2.146 2.147a.5.5 0 10.708-.708l-3-3a.5.5 0 00-.546-.108zM8 2.5a.5.5 0 01.5-.5h4a.5.5 0 010 1h-4a.5.5 0 01-.5-.5zM10.5 5a.5.5 0 000 1h2a.5.5 0 000-1h-2zM13 8.5a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5zM7 11.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",
  35657. fill: color2
  35658. }
  35659. )
  35660. )), BugIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35661. "svg",
  35662. {
  35663. width: size,
  35664. height: size,
  35665. viewBox: "0 0 14 14",
  35666. fill: "none",
  35667. xmlns: "http://www.w3.org/2000/svg",
  35668. ref: forwardedRef,
  35669. ...props
  35670. },
  35671. React255.createElement(
  35672. "path",
  35673. {
  35674. fillRule: "evenodd",
  35675. clipRule: "evenodd",
  35676. d: "M11 0a.5.5 0 010 1 2 2 0 00-1.987 1.78C9.618 3.33 10 4.12 10 5a3 3 0 003-3 .5.5 0 011 0 4.002 4.002 0 01-3 3.874V7h2.5a.5.5 0 010 1H11v.626c1.725.444 3 2.01 3 3.874a.5.5 0 01-1 0 3 3 0 00-2.055-2.846 4 4 0 01-7.891 0A3 3 0 001 12.5a.5.5 0 01-1 0 4.002 4.002 0 013-3.874V8H.5a.5.5 0 010-1H3V5.874A4.002 4.002 0 010 2a.5.5 0 011 0 3 3 0 003 3c0-.88.382-1.67.986-2.22A1.999 1.999 0 003 1a.5.5 0 010-1c1.384 0 2.545.938 2.892 2.213a2.99 2.99 0 012.215 0A2.999 2.999 0 0111 0zM4 9a3 3 0 002.5 2.958V6H4v3zm3.5 2.958A3 3 0 0010 9V6H7.5v5.958zM7 3a2 2 0 00-2 2h4a2 2 0 00-2-2z",
  35677. fill: color2
  35678. }
  35679. )
  35680. )), EditorIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35681. "svg",
  35682. {
  35683. width: size,
  35684. height: size,
  35685. viewBox: "0 0 14 14",
  35686. fill: "none",
  35687. xmlns: "http://www.w3.org/2000/svg",
  35688. ref: forwardedRef,
  35689. ...props
  35690. },
  35691. React255.createElement(
  35692. "path",
  35693. {
  35694. d: "M7.536 5.314a.5.5 0 01.928.372l-2 5a.5.5 0 01-.928-.371l2-5zM3.646 6.146a.5.5 0 01.708.708L3.207 8l1.147 1.146a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 01-.063-.63l.063-.078 1.5-1.5zM9.646 6.146a.5.5 0 01.707 0l1.5 1.5.065.079a.497.497 0 01-.064.629l-1.5 1.5a.5.5 0 01-.708-.708L10.793 8 9.646 6.854a.5.5 0 010-.708z",
  35695. fill: color2
  35696. }
  35697. ),
  35698. React255.createElement(
  35699. "path",
  35700. {
  35701. fillRule: "evenodd",
  35702. clipRule: "evenodd",
  35703. d: "M13.5 1.004a.5.5 0 01.5.5v11l-.01.1a.501.501 0 01-.39.39l-.1.01H.5l-.1-.01a.501.501 0 01-.39-.39l-.01-.1v-11a.5.5 0 01.5-.5h13zm-12.5 11h12v-8H1v8zm.5-10a.5.5 0 100 1 .5.5 0 000-1zm2 0a.5.5 0 100 1 .5.5 0 000-1zm2 0a.5.5 0 100 1 .5.5 0 000-1z",
  35704. fill: color2
  35705. }
  35706. )
  35707. )), InfoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35708. "svg",
  35709. {
  35710. width: size,
  35711. height: size,
  35712. viewBox: "0 0 14 14",
  35713. fill: "none",
  35714. xmlns: "http://www.w3.org/2000/svg",
  35715. ref: forwardedRef,
  35716. ...props
  35717. },
  35718. React255.createElement(
  35719. "path",
  35720. {
  35721. fillRule: "evenodd",
  35722. clipRule: "evenodd",
  35723. d: "M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",
  35724. fill: color2
  35725. }
  35726. ),
  35727. React255.createElement(
  35728. "path",
  35729. {
  35730. fillRule: "evenodd",
  35731. clipRule: "evenodd",
  35732. d: "M7 5.5a.5.5 0 01.5.5v4.5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5z",
  35733. fill: color2
  35734. }
  35735. ),
  35736. React255.createElement("path", { d: "M7.75 3.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0z", fill: color2 })
  35737. )), QuestionIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35738. "svg",
  35739. {
  35740. width: size,
  35741. height: size,
  35742. viewBox: "0 0 14 14",
  35743. fill: "none",
  35744. xmlns: "http://www.w3.org/2000/svg",
  35745. ref: forwardedRef,
  35746. ...props
  35747. },
  35748. React255.createElement(
  35749. "path",
  35750. {
  35751. d: "M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",
  35752. fill: color2
  35753. }
  35754. ),
  35755. React255.createElement(
  35756. "path",
  35757. {
  35758. fillRule: "evenodd",
  35759. clipRule: "evenodd",
  35760. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  35761. fill: color2
  35762. }
  35763. )
  35764. )), SupportIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35765. "svg",
  35766. {
  35767. width: size,
  35768. height: size,
  35769. viewBox: "0 0 14 14",
  35770. fill: "none",
  35771. xmlns: "http://www.w3.org/2000/svg",
  35772. ref: forwardedRef,
  35773. ...props
  35774. },
  35775. React255.createElement(
  35776. "path",
  35777. {
  35778. fillRule: "evenodd",
  35779. clipRule: "evenodd",
  35780. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",
  35781. fill: color2
  35782. }
  35783. )
  35784. )), AlertIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35785. "svg",
  35786. {
  35787. width: size,
  35788. height: size,
  35789. viewBox: "0 0 14 14",
  35790. fill: "none",
  35791. xmlns: "http://www.w3.org/2000/svg",
  35792. ref: forwardedRef,
  35793. ...props
  35794. },
  35795. React255.createElement(
  35796. "path",
  35797. {
  35798. d: "M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",
  35799. fill: color2
  35800. }
  35801. ),
  35802. React255.createElement(
  35803. "path",
  35804. {
  35805. fillRule: "evenodd",
  35806. clipRule: "evenodd",
  35807. d: "M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",
  35808. fill: color2
  35809. }
  35810. )
  35811. )), AlertAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35812. "svg",
  35813. {
  35814. width: size,
  35815. height: size,
  35816. viewBox: "0 0 14 14",
  35817. fill: "none",
  35818. xmlns: "http://www.w3.org/2000/svg",
  35819. ref: forwardedRef,
  35820. ...props
  35821. },
  35822. React255.createElement(
  35823. "path",
  35824. {
  35825. fillRule: "evenodd",
  35826. clipRule: "evenodd",
  35827. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zM6.5 8a.5.5 0 001 0V4a.5.5 0 00-1 0v4zm-.25 2.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0z",
  35828. fill: color2
  35829. }
  35830. )
  35831. )), EmailIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35832. "svg",
  35833. {
  35834. width: size,
  35835. height: size,
  35836. viewBox: "0 0 14 14",
  35837. fill: "none",
  35838. xmlns: "http://www.w3.org/2000/svg",
  35839. ref: forwardedRef,
  35840. ...props
  35841. },
  35842. React255.createElement(
  35843. "path",
  35844. {
  35845. fillRule: "evenodd",
  35846. clipRule: "evenodd",
  35847. d: "M0 2.504a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-9zm1 1.012v7.488h12V3.519L7.313 7.894a.496.496 0 01-.526.062.497.497 0 01-.1-.062L1 3.516zm11.03-.512H1.974L7 6.874l5.03-3.87z",
  35848. fill: color2
  35849. }
  35850. )
  35851. )), PhoneIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35852. "svg",
  35853. {
  35854. width: size,
  35855. height: size,
  35856. viewBox: "0 0 14 14",
  35857. fill: "none",
  35858. xmlns: "http://www.w3.org/2000/svg",
  35859. ref: forwardedRef,
  35860. ...props
  35861. },
  35862. React255.createElement(
  35863. "path",
  35864. {
  35865. fillRule: "evenodd",
  35866. clipRule: "evenodd",
  35867. d: "M7.76 8.134l-.05.05a.2.2 0 01-.28.03 6.76 6.76 0 01-1.63-1.65.21.21 0 01.04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 00-.51.13A3.23 3.23 0 00.9 3.424c-.13 1.1.26 2.37 1.17 3.78a16.679 16.679 0 004.55 4.6 6.57 6.57 0 003.53 1.32 3.2 3.2 0 002.85-1.66c.14-.24.24-.64-.07-1.18a7.803 7.803 0 00-1.73-1.81c-.64-.5-1.52-1.11-2.13-1.11a.97.97 0 00-.34.06c-.472.164-.74.458-.947.685l-.023.025zm4.32 2.678a6.801 6.801 0 00-1.482-1.54l-.007-.005-.006-.005a8.418 8.418 0 00-.957-.662 2.7 2.7 0 00-.4-.193.683.683 0 00-.157-.043l-.004.002-.009.003c-.224.078-.343.202-.56.44l-.014.016-.046.045a1.2 1.2 0 01-1.602.149A7.76 7.76 0 014.98 7.134l-.013-.019-.013-.02a1.21 1.21 0 01.195-1.522l.06-.06.026-.024c.219-.19.345-.312.422-.533l.003-.01v-.008a.518.518 0 00-.032-.142c-.06-.178-.203-.453-.502-.872l-.005-.008-.005-.007A10.18 10.18 0 004.013 2.59l-.005-.005c-.31-.314-.543-.5-.716-.605-.147-.088-.214-.096-.222-.097h-.016l-.006.003-.01.006a2.23 2.23 0 00-1.145 1.656c-.09.776.175 1.806 1.014 3.108a15.68 15.68 0 004.274 4.32l.022.014.022.016a5.57 5.57 0 002.964 1.117 2.2 2.2 0 001.935-1.141l.006-.012.004-.007a.182.182 0 00-.007-.038.574.574 0 00-.047-.114z",
  35868. fill: color2
  35869. }
  35870. )
  35871. )), LinkIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35872. "svg",
  35873. {
  35874. width: size,
  35875. height: size,
  35876. viewBox: "0 0 14 14",
  35877. fill: "none",
  35878. xmlns: "http://www.w3.org/2000/svg",
  35879. ref: forwardedRef,
  35880. ...props
  35881. },
  35882. React255.createElement(
  35883. "path",
  35884. {
  35885. d: "M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",
  35886. fill: color2
  35887. }
  35888. ),
  35889. React255.createElement(
  35890. "path",
  35891. {
  35892. d: "M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",
  35893. fill: color2
  35894. }
  35895. )
  35896. )), LinkBrokenIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35897. "svg",
  35898. {
  35899. width: size,
  35900. height: size,
  35901. viewBox: "0 0 14 14",
  35902. fill: "none",
  35903. xmlns: "http://www.w3.org/2000/svg",
  35904. ref: forwardedRef,
  35905. ...props
  35906. },
  35907. React255.createElement(
  35908. "path",
  35909. {
  35910. d: "M1.452 7.952l1.305-1.305.708.707-1.306 1.305a2.25 2.25 0 103.182 3.182l1.306-1.305.707.707-1.306 1.305a3.25 3.25 0 01-4.596-4.596zM12.548 6.048l-1.305 1.306-.707-.708 1.305-1.305a2.25 2.25 0 10-3.182-3.182L7.354 3.464l-.708-.707 1.306-1.305a3.25 3.25 0 014.596 4.596zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.707-.707l-11-11z",
  35911. fill: color2
  35912. }
  35913. )
  35914. )), BellIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35915. "svg",
  35916. {
  35917. width: size,
  35918. height: size,
  35919. viewBox: "0 0 14 14",
  35920. fill: "none",
  35921. xmlns: "http://www.w3.org/2000/svg",
  35922. ref: forwardedRef,
  35923. ...props
  35924. },
  35925. React255.createElement(
  35926. "path",
  35927. {
  35928. fillRule: "evenodd",
  35929. clipRule: "evenodd",
  35930. d: "M7.994 1.11a1 1 0 10-1.988 0A4.502 4.502 0 002.5 5.5v3.882l-.943 1.885a.497.497 0 00-.053.295.5.5 0 00.506.438h3.575a1.5 1.5 0 102.83 0h3.575a.5.5 0 00.453-.733L11.5 9.382V5.5a4.502 4.502 0 00-3.506-4.39zM2.81 11h8.382l-.5-1H3.31l-.5 1zM10.5 9V5.5a3.5 3.5 0 10-7 0V9h7zm-4 3.5a.5.5 0 111 0 .5.5 0 01-1 0z",
  35931. fill: color2
  35932. }
  35933. )
  35934. )), RSSIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35935. "svg",
  35936. {
  35937. width: size,
  35938. height: size,
  35939. viewBox: "0 0 14 14",
  35940. fill: "none",
  35941. xmlns: "http://www.w3.org/2000/svg",
  35942. ref: forwardedRef,
  35943. ...props
  35944. },
  35945. React255.createElement(
  35946. "path",
  35947. {
  35948. d: "M1.5.5A.5.5 0 012 0c6.627 0 12 5.373 12 12a.5.5 0 01-1 0C13 5.925 8.075 1 2 1a.5.5 0 01-.5-.5z",
  35949. fill: color2
  35950. }
  35951. ),
  35952. React255.createElement(
  35953. "path",
  35954. {
  35955. d: "M1.5 4.5A.5.5 0 012 4a8 8 0 018 8 .5.5 0 01-1 0 7 7 0 00-7-7 .5.5 0 01-.5-.5z",
  35956. fill: color2
  35957. }
  35958. ),
  35959. React255.createElement(
  35960. "path",
  35961. {
  35962. fillRule: "evenodd",
  35963. clipRule: "evenodd",
  35964. d: "M5 11a2 2 0 11-4 0 2 2 0 014 0zm-1 0a1 1 0 11-2 0 1 1 0 012 0z",
  35965. fill: color2
  35966. }
  35967. )
  35968. )), ShareAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35969. "svg",
  35970. {
  35971. width: size,
  35972. height: size,
  35973. viewBox: "0 0 14 14",
  35974. fill: "none",
  35975. xmlns: "http://www.w3.org/2000/svg",
  35976. ref: forwardedRef,
  35977. ...props
  35978. },
  35979. React255.createElement(
  35980. "path",
  35981. {
  35982. d: "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",
  35983. fill: color2
  35984. }
  35985. ),
  35986. React255.createElement(
  35987. "path",
  35988. {
  35989. d: "M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",
  35990. fill: color2
  35991. }
  35992. )
  35993. )), ShareIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  35994. "svg",
  35995. {
  35996. width: size,
  35997. height: size,
  35998. viewBox: "0 0 14 14",
  35999. fill: "none",
  36000. xmlns: "http://www.w3.org/2000/svg",
  36001. ref: forwardedRef,
  36002. ...props
  36003. },
  36004. React255.createElement(
  36005. "path",
  36006. {
  36007. d: "M6.646.15a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.707L7.5 1.711v6.793a.5.5 0 01-1 0V1.71L5.354 2.857a.5.5 0 11-.708-.707l2-2z",
  36008. fill: color2
  36009. }
  36010. ),
  36011. React255.createElement(
  36012. "path",
  36013. {
  36014. d: "M2 4.004a1 1 0 00-1 1v7a1 1 0 001 1h10a1 1 0 001-1v-7a1 1 0 00-1-1H9.5a.5.5 0 100 1H12v7H2v-7h2.5a.5.5 0 000-1H2z",
  36015. fill: color2
  36016. }
  36017. )
  36018. )), JumpToIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36019. "svg",
  36020. {
  36021. width: size,
  36022. height: size,
  36023. viewBox: "0 0 14 14",
  36024. fill: "none",
  36025. xmlns: "http://www.w3.org/2000/svg",
  36026. ref: forwardedRef,
  36027. ...props
  36028. },
  36029. React255.createElement(
  36030. "path",
  36031. {
  36032. d: "M13.854 6.646a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L12.293 7.5H5.5a.5.5 0 010-1h6.793l-1.147-1.146a.5.5 0 01.708-.708l2 2z",
  36033. fill: color2
  36034. }
  36035. ),
  36036. React255.createElement(
  36037. "path",
  36038. {
  36039. d: "M10 2a1 1 0 00-1-1H2a1 1 0 00-1 1v10a1 1 0 001 1h7a1 1 0 001-1V9.5a.5.5 0 00-1 0V12H2V2h7v2.5a.5.5 0 001 0V2z",
  36040. fill: color2
  36041. }
  36042. )
  36043. )), CircleHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36044. "svg",
  36045. {
  36046. width: size,
  36047. height: size,
  36048. viewBox: "0 0 14 14",
  36049. fill: "none",
  36050. xmlns: "http://www.w3.org/2000/svg",
  36051. ref: forwardedRef,
  36052. ...props
  36053. },
  36054. React255.createElement(
  36055. "path",
  36056. {
  36057. fillRule: "evenodd",
  36058. clipRule: "evenodd",
  36059. d: "M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",
  36060. fill: color2
  36061. }
  36062. )
  36063. )), CircleIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36064. "svg",
  36065. {
  36066. width: size,
  36067. height: size,
  36068. viewBox: "0 0 14 14",
  36069. fill: "none",
  36070. xmlns: "http://www.w3.org/2000/svg",
  36071. ref: forwardedRef,
  36072. ...props
  36073. },
  36074. React255.createElement("path", { d: "M14 7A7 7 0 110 7a7 7 0 0114 0z", fill: color2 })
  36075. )), BookmarkHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36076. "svg",
  36077. {
  36078. width: size,
  36079. height: size,
  36080. viewBox: "0 0 14 15",
  36081. fill: "none",
  36082. xmlns: "http://www.w3.org/2000/svg",
  36083. ref: forwardedRef,
  36084. ...props
  36085. },
  36086. React255.createElement(
  36087. "path",
  36088. {
  36089. fillRule: "evenodd",
  36090. clipRule: "evenodd",
  36091. d: "M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5zM4 12.413l2.664-2.284a.454.454 0 01.377-.128.498.498 0 01.284.12L10 12.412V1H4v11.413z",
  36092. fill: color2
  36093. }
  36094. )
  36095. )), BookmarkIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36096. "svg",
  36097. {
  36098. width: size,
  36099. height: size,
  36100. viewBox: "0 0 14 15",
  36101. fill: "none",
  36102. xmlns: "http://www.w3.org/2000/svg",
  36103. ref: forwardedRef,
  36104. ...props
  36105. },
  36106. React255.createElement(
  36107. "path",
  36108. {
  36109. fillRule: "evenodd",
  36110. clipRule: "evenodd",
  36111. d: "M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5z",
  36112. fill: color2
  36113. }
  36114. )
  36115. )), DiamondIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36116. "svg",
  36117. {
  36118. width: size,
  36119. height: size,
  36120. viewBox: "0 0 14 14",
  36121. fill: "none",
  36122. xmlns: "http://www.w3.org/2000/svg",
  36123. ref: forwardedRef,
  36124. ...props
  36125. },
  36126. React255.createElement("g", { clipPath: "url(#prefix__clip0_1449_588)" }, React255.createElement(
  36127. "path",
  36128. {
  36129. fillRule: "evenodd",
  36130. clipRule: "evenodd",
  36131. d: "M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",
  36132. fill: color2
  36133. }
  36134. )),
  36135. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1449_588" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  36136. )), HeartHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36137. "svg",
  36138. {
  36139. width: size,
  36140. height: size,
  36141. viewBox: "0 0 14 14",
  36142. fill: "none",
  36143. xmlns: "http://www.w3.org/2000/svg",
  36144. ref: forwardedRef,
  36145. ...props
  36146. },
  36147. React255.createElement(
  36148. "path",
  36149. {
  36150. fillRule: "evenodd",
  36151. clipRule: "evenodd",
  36152. d: "M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584zM1.2 3.526c.128-.333.304-.598.52-.806.218-.212.497-.389.849-.522m-1.37 1.328A3.324 3.324 0 001 4.708c0 .225.032.452.101.686.082.265.183.513.307.737.135.246.294.484.479.716.188.237.386.454.59.652l.001.002 4.514 4.355 4.519-4.344c.2-.193.398-.41.585-.648l.003-.003c.184-.23.345-.472.486-.726l.004-.007c.131-.23.232-.474.31-.732v-.002c.068-.224.101-.45.101-.686 0-.457-.07-.849-.195-1.185a2.177 2.177 0 00-.515-.802l.007-.012-.008.009a2.383 2.383 0 00-.85-.518l-.003-.001C11.1 2.072 10.692 2 10.203 2c-.21 0-.406.03-.597.09h-.001c-.22.07-.443.167-.663.289l-.007.003c-.22.12-.434.262-.647.426-.226.174-.42.341-.588.505l-.684.672-.7-.656a9.967 9.967 0 00-.615-.527 4.82 4.82 0 00-.635-.422l-.01-.005a3.289 3.289 0 00-.656-.281l-.008-.003A2.014 2.014 0 003.785 2c-.481 0-.881.071-1.217.198",
  36153. fill: color2
  36154. }
  36155. )
  36156. )), HeartIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36157. "svg",
  36158. {
  36159. width: size,
  36160. height: size,
  36161. viewBox: "0 0 14 14",
  36162. fill: "none",
  36163. xmlns: "http://www.w3.org/2000/svg",
  36164. ref: forwardedRef,
  36165. ...props
  36166. },
  36167. React255.createElement(
  36168. "path",
  36169. {
  36170. d: "M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584z",
  36171. fill: color2
  36172. }
  36173. )
  36174. )), StarHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36175. "svg",
  36176. {
  36177. width: size,
  36178. height: size,
  36179. viewBox: "0 0 14 14",
  36180. fill: "none",
  36181. xmlns: "http://www.w3.org/2000/svg",
  36182. ref: forwardedRef,
  36183. ...props
  36184. },
  36185. React255.createElement(
  36186. "path",
  36187. {
  36188. fillRule: "evenodd",
  36189. clipRule: "evenodd",
  36190. d: "M6.319.783a.75.75 0 011.362 0l1.63 3.535 3.867.458a.75.75 0 01.42 1.296L10.74 8.715l.76 3.819a.75.75 0 01-1.103.8L7 11.434l-3.398 1.902a.75.75 0 01-1.101-.801l.758-3.819L.401 6.072a.75.75 0 01.42-1.296l3.867-.458L6.318.783zm.68.91l-1.461 3.17a.75.75 0 01-.593.431l-3.467.412 2.563 2.37a.75.75 0 01.226.697l-.68 3.424 3.046-1.705a.75.75 0 01.733 0l3.047 1.705-.68-3.424a.75.75 0 01.226-.697l2.563-2.37-3.467-.412a.75.75 0 01-.593-.43L7 1.694z",
  36191. fill: color2
  36192. }
  36193. )
  36194. )), StarIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36195. "svg",
  36196. {
  36197. width: size,
  36198. height: size,
  36199. viewBox: "0 0 14 14",
  36200. fill: "none",
  36201. xmlns: "http://www.w3.org/2000/svg",
  36202. ref: forwardedRef,
  36203. ...props
  36204. },
  36205. React255.createElement(
  36206. "path",
  36207. {
  36208. d: "M7.68.783a.75.75 0 00-1.361 0l-1.63 3.535-3.867.458A.75.75 0 00.4 6.072l2.858 2.643-.758 3.819a.75.75 0 001.101.8L7 11.434l3.397 1.902a.75.75 0 001.102-.801l-.759-3.819L13.6 6.072a.75.75 0 00-.421-1.296l-3.866-.458L7.68.783z",
  36209. fill: color2
  36210. }
  36211. )
  36212. )), CertificateIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36213. "svg",
  36214. {
  36215. width: size,
  36216. height: size,
  36217. viewBox: "0 0 14 14",
  36218. fill: "none",
  36219. xmlns: "http://www.w3.org/2000/svg",
  36220. ref: forwardedRef,
  36221. ...props
  36222. },
  36223. React255.createElement(
  36224. "path",
  36225. {
  36226. fillRule: "evenodd",
  36227. clipRule: "evenodd",
  36228. d: "M10 7.854a4.5 4.5 0 10-6 0V13a.5.5 0 00.497.5h.006c.127 0 .254-.05.35-.146L7 11.207l2.146 2.147A.5.5 0 0010 13V7.854zM7 8a3.5 3.5 0 100-7 3.5 3.5 0 000 7zm-.354 2.146a.5.5 0 01.708 0L9 11.793v-3.26C8.398 8.831 7.718 9 7 9a4.481 4.481 0 01-2-.468v3.26l1.646-1.646z",
  36229. fill: color2
  36230. }
  36231. )
  36232. )), VerifiedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36233. "svg",
  36234. {
  36235. width: size,
  36236. height: size,
  36237. viewBox: "0 0 14 14",
  36238. fill: "none",
  36239. xmlns: "http://www.w3.org/2000/svg",
  36240. ref: forwardedRef,
  36241. ...props
  36242. },
  36243. React255.createElement(
  36244. "path",
  36245. {
  36246. fillRule: "evenodd",
  36247. clipRule: "evenodd",
  36248. d: "M6.565 13.123a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97c.25.473.83.661 1.31.426l.987-.482zm4.289-8.477a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",
  36249. fill: color2
  36250. }
  36251. )
  36252. )), ThumbsUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36253. "svg",
  36254. {
  36255. width: size,
  36256. height: size,
  36257. viewBox: "0 0 14 14",
  36258. fill: "none",
  36259. xmlns: "http://www.w3.org/2000/svg",
  36260. ref: forwardedRef,
  36261. ...props
  36262. },
  36263. React255.createElement(
  36264. "path",
  36265. {
  36266. fillRule: "evenodd",
  36267. clipRule: "evenodd",
  36268. d: "M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.493 5.493 0 01-1.3-.16c-.42-.1-.91-.25-1.47-.45a5.056 5.056 0 00-.95-.27H2.88a.84.84 0 01-.62-.26.84.84 0 01-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 01.62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 01.62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7.15.31.23.73.23 1.27a3 3 0 01-.32 1.31h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98a2.05 2.05 0 01-.4 1.51 1.9 1.9 0 01-.57 1.5zm.473-5.33a.965.965 0 00.027-.25.742.742 0 00-.227-.513.683.683 0 00-.523-.227H7.927l.73-1.45a2 2 0 00.213-.867c0-.444-.068-.695-.127-.822a.53.53 0 00-.245-.244 1.296 1.296 0 00-.539-.116.989.989 0 00-.141.28 9.544 9.544 0 00-.174.755c-.069.387-.213.779-.484 1.077l-.009.01-.009.01c-.195.202-.41.46-.67.798l-.003.004c-.235.3-.44.555-.613.753-.151.173-.343.381-.54.516l-.255.176H5v4.133l.018.003c.384.07.76.176 1.122.318.532.189.98.325 1.352.413l.007.002a4.5 4.5 0 001.063.131h.878c.429 0 .683-.115.871-.285a.9.9 0 00.262-.702l-.028-.377.229-.3a1.05 1.05 0 00.205-.774l-.044-.333.165-.292a.969.969 0 00.13-.487.457.457 0 00-.019-.154l-.152-.458.263-.404a1.08 1.08 0 00.152-.325zM3.5 10.8a.5.5 0 100-1 .5.5 0 000 1z",
  36269. fill: color2
  36270. }
  36271. )
  36272. )), ShieldIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36273. "svg",
  36274. {
  36275. width: size,
  36276. height: size,
  36277. viewBox: "0 0 14 14",
  36278. fill: "none",
  36279. xmlns: "http://www.w3.org/2000/svg",
  36280. ref: forwardedRef,
  36281. ...props
  36282. },
  36283. React255.createElement(
  36284. "path",
  36285. {
  36286. fillRule: "evenodd",
  36287. clipRule: "evenodd",
  36288. d: "M11.765 2.076A.5.5 0 0112 2.5v6.009a.497.497 0 01-.17.366L7.337 12.87a.497.497 0 01-.674 0L2.17 8.875l-.009-.007a.498.498 0 01-.16-.358L2 8.5v-6a.5.5 0 01.235-.424l.018-.011c.016-.01.037-.024.065-.04.056-.032.136-.077.24-.128a6.97 6.97 0 01.909-.371C4.265 1.26 5.443 1 7 1s2.735.26 3.533.526c.399.133.702.267.91.37a4.263 4.263 0 01.304.169l.018.01zM3 2.793v5.482l1.068.95 6.588-6.588a6.752 6.752 0 00-.44-.163C9.517 2.24 8.444 2 7 2c-1.443 0-2.515.24-3.217.474-.351.117-.61.233-.778.317L3 2.793zm4 9.038l-2.183-1.94L11 3.706v4.568l-4 3.556z",
  36289. fill: color2
  36290. }
  36291. )
  36292. )), BasketIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36293. "svg",
  36294. {
  36295. width: size,
  36296. height: size,
  36297. viewBox: "0 0 14 14",
  36298. fill: "none",
  36299. xmlns: "http://www.w3.org/2000/svg",
  36300. ref: forwardedRef,
  36301. ...props
  36302. },
  36303. React255.createElement(
  36304. "path",
  36305. {
  36306. d: "M10.354 2.854a.5.5 0 10-.708-.708l-3 3a.5.5 0 10.708.708l3-3z",
  36307. fill: color2
  36308. }
  36309. ),
  36310. React255.createElement(
  36311. "path",
  36312. {
  36313. d: "M2.09 6H4.5a.5.5 0 000-1H1.795a.75.75 0 00-.74.873l.813 4.874A1.5 1.5 0 003.348 12h7.305a1.5 1.5 0 001.48-1.253l.812-4.874a.75.75 0 00-.74-.873H10a.5.5 0 000 1h1.91l-.764 4.582a.5.5 0 01-.493.418H3.347a.5.5 0 01-.493-.418L2.09 6z",
  36314. fill: color2
  36315. }
  36316. ),
  36317. React255.createElement(
  36318. "path",
  36319. {
  36320. d: "M4.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 7.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2zM6.5 9.5v-2a.5.5 0 011 0v2a.5.5 0 01-1 0z",
  36321. fill: color2
  36322. }
  36323. )
  36324. )), BeakerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36325. "svg",
  36326. {
  36327. width: size,
  36328. height: size,
  36329. viewBox: "0 0 14 14",
  36330. fill: "none",
  36331. xmlns: "http://www.w3.org/2000/svg",
  36332. ref: forwardedRef,
  36333. ...props
  36334. },
  36335. React255.createElement(
  36336. "path",
  36337. {
  36338. fillRule: "evenodd",
  36339. clipRule: "evenodd",
  36340. d: "M4.5 2h.75v3.866l-3.034 5.26A1.25 1.25 0 003.299 13H10.7a1.25 1.25 0 001.083-1.875L8.75 5.866V2h.75a.5.5 0 100-1h-5a.5.5 0 000 1zm1.75 0h1.5v4.134L8.827 8H5.173L6.25 6.134V2zM4.597 9l-1.515 2.625A.25.25 0 003.3 12H10.7a.25.25 0 00.217-.375L9.404 9H4.597z",
  36341. fill: color2
  36342. }
  36343. )
  36344. )), HourglassIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36345. "svg",
  36346. {
  36347. width: size,
  36348. height: size,
  36349. viewBox: "0 0 14 14",
  36350. fill: "none",
  36351. xmlns: "http://www.w3.org/2000/svg",
  36352. ref: forwardedRef,
  36353. ...props
  36354. },
  36355. React255.createElement("path", { d: "M7.5 10.5a.5.5 0 11-1 0 .5.5 0 011 0z", fill: color2 }),
  36356. React255.createElement(
  36357. "path",
  36358. {
  36359. fillRule: "evenodd",
  36360. clipRule: "evenodd",
  36361. d: "M3.5 1a.5.5 0 00-.5.5c0 1.063.137 1.892.678 2.974.346.692.858 1.489 1.598 2.526-.89 1.247-1.455 2.152-1.798 2.956-.377.886-.477 1.631-.478 2.537v.007a.5.5 0 00.5.5h7c.017 0 .034 0 .051-.003A.5.5 0 0011 12.5v-.007c0-.906-.1-1.65-.478-2.537-.343-.804-.909-1.709-1.798-2.956.74-1.037 1.252-1.834 1.598-2.526C10.863 3.392 11 2.563 11 1.5a.5.5 0 00-.5-.5h-7zm6.487 11a4.675 4.675 0 00-.385-1.652c-.277-.648-.735-1.407-1.499-2.494-.216.294-.448.606-.696.937a.497.497 0 01-.195.162.5.5 0 01-.619-.162c-.248-.331-.48-.643-.696-.937-.764 1.087-1.222 1.846-1.499 2.494A4.675 4.675 0 004.013 12h5.974zM6.304 6.716c.212.293.443.609.696.948a90.058 90.058 0 00.709-.965c.48-.664.86-1.218 1.163-1.699H5.128a32.672 32.672 0 001.176 1.716zM4.559 4h4.882c.364-.735.505-1.312.546-2H4.013c.04.688.182 1.265.546 2z",
  36362. fill: color2
  36363. }
  36364. )
  36365. )), FlagIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36366. "svg",
  36367. {
  36368. width: size,
  36369. height: size,
  36370. viewBox: "0 0 14 14",
  36371. fill: "none",
  36372. xmlns: "http://www.w3.org/2000/svg",
  36373. ref: forwardedRef,
  36374. ...props
  36375. },
  36376. React255.createElement(
  36377. "path",
  36378. {
  36379. fillRule: "evenodd",
  36380. clipRule: "evenodd",
  36381. d: "M11.5 1h-9a.5.5 0 00-.5.5v11a.5.5 0 001 0V8h8.5a.5.5 0 00.354-.854L9.207 4.5l2.647-2.646A.499.499 0 0011.5 1zM8.146 4.146L10.293 2H3v5h7.293L8.146 4.854a.5.5 0 010-.708z",
  36382. fill: color2
  36383. }
  36384. )
  36385. )), CloudHollowIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36386. "svg",
  36387. {
  36388. width: size,
  36389. height: size,
  36390. viewBox: "0 0 14 14",
  36391. fill: "none",
  36392. xmlns: "http://www.w3.org/2000/svg",
  36393. ref: forwardedRef,
  36394. ...props
  36395. },
  36396. React255.createElement(
  36397. "path",
  36398. {
  36399. fillRule: "evenodd",
  36400. clipRule: "evenodd",
  36401. d: "M10 7V6a3 3 0 00-5.91-.736l-.17.676-.692.075A2.5 2.5 0 003.5 11h3c.063 0 .125-.002.187-.007l.076-.005.076.006c.053.004.106.006.161.006h4a2 2 0 100-4h-1zM3.12 5.02A3.5 3.5 0 003.5 12h3c.087 0 .174-.003.26-.01.079.007.16.01.24.01h4a3 3 0 100-6 4 4 0 00-7.88-.98z",
  36402. fill: color2
  36403. }
  36404. )
  36405. )), CloudIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36406. "svg",
  36407. {
  36408. width: size,
  36409. height: size,
  36410. viewBox: "0 0 14 14",
  36411. fill: "none",
  36412. xmlns: "http://www.w3.org/2000/svg",
  36413. ref: forwardedRef,
  36414. ...props
  36415. },
  36416. React255.createElement(
  36417. "path",
  36418. {
  36419. d: "M7 2a4 4 0 014 4 3 3 0 110 6H7c-.08 0-.161-.003-.24-.01-.086.007-.173.01-.26.01h-3a3.5 3.5 0 01-.38-6.98A4.002 4.002 0 017 2z",
  36420. fill: color2
  36421. }
  36422. )
  36423. )), StickerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36424. "svg",
  36425. {
  36426. width: size,
  36427. height: size,
  36428. viewBox: "0 0 14 14",
  36429. fill: "none",
  36430. xmlns: "http://www.w3.org/2000/svg",
  36431. ref: forwardedRef,
  36432. ...props
  36433. },
  36434. React255.createElement(
  36435. "path",
  36436. {
  36437. fillRule: "evenodd",
  36438. clipRule: "evenodd",
  36439. d: "M11 7a4 4 0 11-8 0 4 4 0 018 0zm-1 0a3 3 0 11-6 0 3 3 0 016 0z",
  36440. fill: color2
  36441. }
  36442. ),
  36443. React255.createElement(
  36444. "path",
  36445. {
  36446. fillRule: "evenodd",
  36447. clipRule: "evenodd",
  36448. d: "M4.268 13.18c.25.472.83.66 1.31.425l.987-.482a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97zm5.096-1.44l-.511.963-.979-.478a1.99 1.99 0 00-1.748 0l-.979.478-.51-.962a1.991 1.991 0 00-1.415-1.028l-1.073-.188.152-1.079a1.991 1.991 0 00-.54-1.663L1.004 7l.757-.783a1.991 1.991 0 00.54-1.663L2.15 3.475l1.073-.188A1.991 1.991 0 004.636 2.26l.511-.962.979.478a1.99 1.99 0 001.748 0l.979-.478.51.962c.288.543.81.922 1.415 1.028l1.073.188-.152 1.079a1.99 1.99 0 00.54 1.663l.757.783-.757.783a1.99 1.99 0 00-.54 1.663l.152 1.079-1.073.188a1.991 1.991 0 00-1.414 1.028z",
  36449. fill: color2
  36450. }
  36451. )
  36452. )), StatusFailIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36453. "svg",
  36454. {
  36455. width: size,
  36456. height: size,
  36457. viewBox: "0 0 14 14",
  36458. fill: "none",
  36459. xmlns: "http://www.w3.org/2000/svg",
  36460. ref: forwardedRef,
  36461. ...props
  36462. },
  36463. React255.createElement(
  36464. "path",
  36465. {
  36466. d: "M9.147 4.146a.5.5 0 11.707.707L7.707 7l2.147 2.146a.5.5 0 11-.707.707L7 7.707 4.854 9.853a.5.5 0 01-.707-.707L6.293 7 4.147 4.853a.5.5 0 11.707-.707L7 6.293l2.147-2.147z",
  36467. fill: color2
  36468. }
  36469. )
  36470. )), StatusIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36471. "svg",
  36472. {
  36473. width: size,
  36474. height: size,
  36475. viewBox: "0 0 14 14",
  36476. fill: "none",
  36477. xmlns: "http://www.w3.org/2000/svg",
  36478. ref: forwardedRef,
  36479. ...props
  36480. },
  36481. React255.createElement("circle", { cx: 7, cy: 7, r: 3, fill: color2 })
  36482. )), StatusWarnIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36483. "svg",
  36484. {
  36485. width: size,
  36486. height: size,
  36487. viewBox: "0 0 14 14",
  36488. fill: "none",
  36489. xmlns: "http://www.w3.org/2000/svg",
  36490. ref: forwardedRef,
  36491. ...props
  36492. },
  36493. React255.createElement(
  36494. "path",
  36495. {
  36496. fillRule: "evenodd",
  36497. clipRule: "evenodd",
  36498. d: "M7.206 3.044a.498.498 0 01.23.212l3.492 5.985a.494.494 0 01.006.507.497.497 0 01-.443.252H3.51a.499.499 0 01-.437-.76l3.492-5.984a.497.497 0 01.642-.212zM7 4.492L4.37 9h5.26L7 4.492z",
  36499. fill: color2
  36500. }
  36501. )
  36502. )), StatusPassIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36503. "svg",
  36504. {
  36505. width: size,
  36506. height: size,
  36507. viewBox: "0 0 14 14",
  36508. fill: "none",
  36509. xmlns: "http://www.w3.org/2000/svg",
  36510. ref: forwardedRef,
  36511. ...props
  36512. },
  36513. React255.createElement(
  36514. "path",
  36515. {
  36516. fillRule: "evenodd",
  36517. clipRule: "evenodd",
  36518. d: "M10.854 4.146a.5.5 0 010 .708l-5 5a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708L5.5 8.793l4.646-4.647a.5.5 0 01.708 0z",
  36519. fill: color2
  36520. }
  36521. )
  36522. )), GiftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36523. "svg",
  36524. {
  36525. width: size,
  36526. height: size,
  36527. viewBox: "0 0 14 14",
  36528. fill: "none",
  36529. xmlns: "http://www.w3.org/2000/svg",
  36530. ref: forwardedRef,
  36531. ...props
  36532. },
  36533. React255.createElement(
  36534. "path",
  36535. {
  36536. fillRule: "evenodd",
  36537. clipRule: "evenodd",
  36538. d: "M9 0a2.5 2.5 0 011.997 4H12.5A1.5 1.5 0 0114 5.5v1c0 .653-.418 1.206-1 1.412V11.5a1.5 1.5 0 01-1.5 1.5h-9A1.5 1.5 0 011 11.5V7.912c-.582-.206-1-.76-1-1.412v-1A1.5 1.5 0 011.5 4h1.883A2.234 2.234 0 013 2.75c0-.6.208-1.142.597-1.535.39-.394.93-.607 1.533-.607.637 0 1.197.349 1.602.843A2.498 2.498 0 019 0zM7.5 12h4a.5.5 0 00.5-.5V8H7.5v4zM2 11.5a.5.5 0 00.5.5h4V8H2v3.5zM7.5 7h5a.5.5 0 00.5-.5v-1a.5.5 0 00-.5-.5h-5v2zm-6-2a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h5V5h-5zm3.63-3.392c-.363 0-.639.125-.822.31-.184.187-.308.466-.308.832C4 3.44 4.56 4 5.25 4H6.5v-.25c0-.648-.197-1.203-.477-1.585-.283-.388-.616-.557-.893-.557zM9 1a1.5 1.5 0 00-1.5 1.5V4H9a1.5 1.5 0 100-3z",
  36539. fill: color2
  36540. }
  36541. )
  36542. )), StatusNewIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36543. "svg",
  36544. {
  36545. width: size,
  36546. height: size,
  36547. viewBox: "0 0 14 14",
  36548. fill: "none",
  36549. xmlns: "http://www.w3.org/2000/svg",
  36550. ref: forwardedRef,
  36551. ...props
  36552. },
  36553. React255.createElement(
  36554. "path",
  36555. {
  36556. d: "M7.052 3.004c.01 0 .02 0 .03.002.004 0 .01.003.015.004a.493.493 0 01.051.013l.043.015a.497.497 0 01.089.049l.03.023c.015.012.029.023.042.036.012.012.023.026.035.04l.023.03c.01.015.019.03.027.047.008.014.016.028.022.043.006.014.01.028.015.043.005.017.01.034.013.051l.005.017.03.182A3.5 3.5 0 0010.4 6.476l.182.03c.005 0 .01.003.016.004a.494.494 0 01.051.013l.043.015a.503.503 0 01.089.049l.03.023c.015.012.029.023.042.036.012.012.023.026.035.04l.023.03c.01.015.019.03.027.047.008.014.016.028.022.043l.014.04.014.054.005.017c.002.01 0 .019.001.028.002.018.004.036.004.054 0 .018-.002.035-.004.053v.03l-.006.015a.479.479 0 01-.013.051l-.015.043a.507.507 0 01-.049.089l-.023.03-.035.042-.042.035-.03.023a.503.503 0 01-.046.027c-.014.008-.028.016-.043.022-.014.006-.028.01-.043.015a.491.491 0 01-.051.013l-.016.005-.182.03A3.5 3.5 0 007.522 10.4l-.03.182c0 .005-.004.01-.005.016a.491.491 0 01-.013.051l-.015.043a.503.503 0 01-.049.089l-.023.03-.035.042-.041.035-.03.023a.507.507 0 01-.047.027c-.014.008-.028.016-.043.022-.014.006-.028.01-.043.015a.479.479 0 01-.051.013l-.016.005c-.01.002-.02 0-.03.001-.017.002-.034.004-.052.004-.018 0-.036-.002-.054-.004h-.028c-.006-.002-.011-.005-.017-.006a.503.503 0 01-.051-.013l-.043-.015a.505.505 0 01-.089-.049l-.03-.023c-.015-.012-.029-.023-.041-.035-.013-.013-.024-.027-.036-.042l-.023-.03a.503.503 0 01-.027-.046c-.008-.014-.016-.028-.022-.043-.006-.014-.01-.028-.015-.043a.494.494 0 01-.013-.051l-.004-.016-.03-.182a3.5 3.5 0 00-2.877-2.877l-.182-.03c-.006 0-.011-.004-.017-.005a.493.493 0 01-.051-.013l-.043-.015a.492.492 0 01-.089-.049l-.03-.023c-.015-.012-.029-.023-.041-.035-.013-.013-.024-.027-.036-.041l-.023-.03a.497.497 0 01-.027-.047c-.008-.014-.016-.028-.022-.043-.006-.013-.01-.028-.015-.043a.493.493 0 01-.013-.051l-.004-.016c-.002-.01-.001-.02-.002-.03C3.002 7.035 3 7.018 3 7c0-.018.002-.036.004-.054 0-.009 0-.019.002-.028 0-.006.003-.011.004-.017l.015-.054.013-.04a.498.498 0 01.049-.089l.023-.03.026-.032.02-.02.03-.025.03-.023a.498.498 0 01.047-.027c.014-.008.028-.016.043-.022.014-.006.028-.01.043-.015A.493.493 0 013.4 6.51l.017-.004.182-.03a3.5 3.5 0 002.877-2.877l.03-.182c0-.006.003-.011.004-.017a.493.493 0 01.013-.051l.015-.043a.498.498 0 01.049-.089l.023-.03.026-.032.02-.02.03-.025.03-.023a.498.498 0 01.047-.027c.014-.008.028-.016.043-.022.014-.006.028-.01.043-.015A.493.493 0 016.9 3.01l.017-.004c.01-.002.019-.001.028-.002C6.963 3.002 6.981 3 7 3c.018 0 .035.002.053.004z",
  36557. fill: color2
  36558. }
  36559. )
  36560. )), PopOutIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36561. "svg",
  36562. {
  36563. width: size,
  36564. height: size,
  36565. viewBox: "0 0 14 14",
  36566. fill: "none",
  36567. xmlns: "http://www.w3.org/2000/svg",
  36568. ref: forwardedRef,
  36569. ...props
  36570. },
  36571. React255.createElement("g", { clipPath: "url(#prefix__clip0_3002_502)", fill: color2 }, React255.createElement("path", { d: "M10.5 12a.5.5 0 01.5.5v.504a1 1 0 01-1 1H8.5a.5.5 0 010-1H10V12.5a.5.5 0 01.5-.5zM.498 11a.5.5 0 01.5.5v1.502H2.5a.5.5 0 110 1H.998a1 1 0 01-1-1V11.5a.5.5 0 01.5-.5zM6.5 13a.5.5 0 010 1h-2a.5.5 0 010-1h2zM10.501 3.004h.006a.495.495 0 01.232.063c.04.022.08.049.115.083a.497.497 0 01.077.104.493.493 0 01.06.151l.003.038c.003.02.006.04.006.06V6.5a.5.5 0 01-1 0V4.71L6.857 7.855a.5.5 0 11-.707-.708l3.144-3.144L7.499 4a.5.5 0 01.002-1l3 .004z" }), React255.createElement(
  36572. "path",
  36573. {
  36574. fillRule: "evenodd",
  36575. clipRule: "evenodd",
  36576. d: "M13.6.014a.5.5 0 01.4.49v10l-.01.1a.501.501 0 01-.39.39l-.1.01h-10a.5.5 0 01-.49-.4l-.01-.1v-10a.5.5 0 01.5-.5h10l.1.01zM4 10.004h9v-9H4v9z"
  36577. }
  36578. ), React255.createElement("path", { d: "M.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2A.5.5 0 01.5 7zM1.5 3.002a.5.5 0 010 1H.998L1 5.499a.5.5 0 01-1 .002l-.002-1.498a1 1 0 011-1.001H1.5z" })),
  36579. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_3002_502" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  36580. )), ChevronUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36581. "svg",
  36582. {
  36583. width: size,
  36584. height: size,
  36585. viewBox: "0 0 14 14",
  36586. fill: "none",
  36587. xmlns: "http://www.w3.org/2000/svg",
  36588. ref: forwardedRef,
  36589. ...props
  36590. },
  36591. React255.createElement(
  36592. "path",
  36593. {
  36594. d: "M7.354 3.896l5.5 5.5a.5.5 0 01-.708.708L7 4.957l-5.146 5.147a.5.5 0 01-.708-.708l5.5-5.5a.5.5 0 01.708 0z",
  36595. fill: color2
  36596. }
  36597. )
  36598. )), ChevronDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36599. "svg",
  36600. {
  36601. width: size,
  36602. height: size,
  36603. viewBox: "0 0 14 14",
  36604. fill: "none",
  36605. xmlns: "http://www.w3.org/2000/svg",
  36606. ref: forwardedRef,
  36607. ...props
  36608. },
  36609. React255.createElement(
  36610. "path",
  36611. {
  36612. d: "M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",
  36613. fill: color2
  36614. }
  36615. )
  36616. )), ChevronLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36617. "svg",
  36618. {
  36619. width: size,
  36620. height: size,
  36621. viewBox: "0 0 14 14",
  36622. fill: "none",
  36623. xmlns: "http://www.w3.org/2000/svg",
  36624. ref: forwardedRef,
  36625. ...props
  36626. },
  36627. React255.createElement(
  36628. "path",
  36629. {
  36630. d: "M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",
  36631. fill: color2
  36632. }
  36633. )
  36634. )), ChevronRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36635. "svg",
  36636. {
  36637. width: size,
  36638. height: size,
  36639. viewBox: "0 0 14 14",
  36640. fill: "none",
  36641. xmlns: "http://www.w3.org/2000/svg",
  36642. ref: forwardedRef,
  36643. ...props
  36644. },
  36645. React255.createElement(
  36646. "path",
  36647. {
  36648. d: "M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",
  36649. fill: color2
  36650. }
  36651. )
  36652. )), ChevronSmallUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36653. "svg",
  36654. {
  36655. width: size,
  36656. height: size,
  36657. viewBox: "0 0 14 14",
  36658. fill: "none",
  36659. xmlns: "http://www.w3.org/2000/svg",
  36660. ref: forwardedRef,
  36661. ...props
  36662. },
  36663. React255.createElement(
  36664. "path",
  36665. {
  36666. d: "M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",
  36667. fill: color2
  36668. }
  36669. )
  36670. )), ChevronSmallDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36671. "svg",
  36672. {
  36673. width: size,
  36674. height: size,
  36675. viewBox: "0 0 14 14",
  36676. fill: "none",
  36677. xmlns: "http://www.w3.org/2000/svg",
  36678. ref: forwardedRef,
  36679. ...props
  36680. },
  36681. React255.createElement(
  36682. "path",
  36683. {
  36684. d: "M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",
  36685. fill: color2
  36686. }
  36687. )
  36688. )), ChevronSmallLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36689. "svg",
  36690. {
  36691. width: size,
  36692. height: size,
  36693. viewBox: "0 0 14 14",
  36694. fill: "none",
  36695. xmlns: "http://www.w3.org/2000/svg",
  36696. ref: forwardedRef,
  36697. ...props
  36698. },
  36699. React255.createElement(
  36700. "path",
  36701. {
  36702. fillRule: "evenodd",
  36703. clipRule: "evenodd",
  36704. d: "M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",
  36705. fill: color2
  36706. }
  36707. )
  36708. )), ChevronSmallRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36709. "svg",
  36710. {
  36711. width: size,
  36712. height: size,
  36713. viewBox: "0 0 14 14",
  36714. fill: "none",
  36715. xmlns: "http://www.w3.org/2000/svg",
  36716. ref: forwardedRef,
  36717. ...props
  36718. },
  36719. React255.createElement(
  36720. "path",
  36721. {
  36722. fillRule: "evenodd",
  36723. clipRule: "evenodd",
  36724. d: "M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",
  36725. fill: color2
  36726. }
  36727. )
  36728. )), ArrowUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36729. "svg",
  36730. {
  36731. width: size,
  36732. height: size,
  36733. viewBox: "0 0 14 14",
  36734. fill: "none",
  36735. xmlns: "http://www.w3.org/2000/svg",
  36736. ref: forwardedRef,
  36737. ...props
  36738. },
  36739. React255.createElement(
  36740. "path",
  36741. {
  36742. d: "M11.854 4.646l-4.5-4.5a.5.5 0 00-.708 0l-4.5 4.5a.5.5 0 10.708.708L6.5 1.707V13.5a.5.5 0 001 0V1.707l3.646 3.647a.5.5 0 00.708-.708z",
  36743. fill: color2
  36744. }
  36745. )
  36746. )), ArrowDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36747. "svg",
  36748. {
  36749. width: size,
  36750. height: size,
  36751. viewBox: "0 0 14 14",
  36752. fill: "none",
  36753. xmlns: "http://www.w3.org/2000/svg",
  36754. ref: forwardedRef,
  36755. ...props
  36756. },
  36757. React255.createElement(
  36758. "path",
  36759. {
  36760. d: "M7.5.5a.5.5 0 00-1 0v11.793L2.854 8.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.351.146h.006c.127 0 .254-.05.35-.146l4.5-4.5a.5.5 0 00-.707-.708L7.5 12.293V.5z",
  36761. fill: color2
  36762. }
  36763. )
  36764. )), ArrowLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36765. "svg",
  36766. {
  36767. width: size,
  36768. height: size,
  36769. viewBox: "0 0 14 14",
  36770. fill: "none",
  36771. xmlns: "http://www.w3.org/2000/svg",
  36772. ref: forwardedRef,
  36773. ...props
  36774. },
  36775. React255.createElement(
  36776. "path",
  36777. {
  36778. d: "M5.354 2.146a.5.5 0 010 .708L1.707 6.5H13.5a.5.5 0 010 1H1.707l3.647 3.646a.5.5 0 01-.708.708l-4.5-4.5a.5.5 0 010-.708l4.5-4.5a.5.5 0 01.708 0z",
  36779. fill: color2
  36780. }
  36781. )
  36782. )), ArrowRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36783. "svg",
  36784. {
  36785. width: size,
  36786. height: size,
  36787. viewBox: "0 0 14 14",
  36788. fill: "none",
  36789. xmlns: "http://www.w3.org/2000/svg",
  36790. ref: forwardedRef,
  36791. ...props
  36792. },
  36793. React255.createElement(
  36794. "path",
  36795. {
  36796. d: "M8.646 2.146a.5.5 0 01.708 0l4.5 4.5a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708L12.293 7.5H.5a.5.5 0 010-1h11.793L8.646 2.854a.5.5 0 010-.708z",
  36797. fill: color2
  36798. }
  36799. )
  36800. )), ArrowTopLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36801. "svg",
  36802. {
  36803. width: size,
  36804. height: size,
  36805. viewBox: "0 0 14 14",
  36806. fill: "none",
  36807. xmlns: "http://www.w3.org/2000/svg",
  36808. ref: forwardedRef,
  36809. ...props
  36810. },
  36811. React255.createElement(
  36812. "path",
  36813. {
  36814. d: "M1.904 8.768V2.404a.5.5 0 01.5-.5h6.364a.5.5 0 110 1H3.61l8.339 8.339a.5.5 0 01-.707.707l-8.34-8.34v5.158a.5.5 0 01-1 0z",
  36815. fill: color2
  36816. }
  36817. )
  36818. )), ArrowTopRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36819. "svg",
  36820. {
  36821. width: size,
  36822. height: size,
  36823. viewBox: "0 0 14 14",
  36824. fill: "none",
  36825. xmlns: "http://www.w3.org/2000/svg",
  36826. ref: forwardedRef,
  36827. ...props
  36828. },
  36829. React255.createElement(
  36830. "path",
  36831. {
  36832. d: "M12.096 8.768V2.404a.5.5 0 00-.5-.5H5.232a.5.5 0 100 1h5.157L2.05 11.243a.5.5 0 10.707.707l8.34-8.34v5.158a.5.5 0 101 0z",
  36833. fill: color2
  36834. }
  36835. )
  36836. )), ArrowBottomLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36837. "svg",
  36838. {
  36839. width: size,
  36840. height: size,
  36841. viewBox: "0 0 14 14",
  36842. fill: "none",
  36843. xmlns: "http://www.w3.org/2000/svg",
  36844. ref: forwardedRef,
  36845. ...props
  36846. },
  36847. React255.createElement(
  36848. "path",
  36849. {
  36850. d: "M1.904 5.232v6.364a.5.5 0 00.5.5h6.364a.5.5 0 000-1H3.61l8.339-8.339a.5.5 0 00-.707-.707l-8.34 8.34V5.231a.5.5 0 00-1 0z",
  36851. fill: color2
  36852. }
  36853. )
  36854. )), ArrowBottomRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36855. "svg",
  36856. {
  36857. width: size,
  36858. height: size,
  36859. viewBox: "0 0 14 14",
  36860. fill: "none",
  36861. xmlns: "http://www.w3.org/2000/svg",
  36862. ref: forwardedRef,
  36863. ...props
  36864. },
  36865. React255.createElement(
  36866. "path",
  36867. {
  36868. d: "M12.096 5.232v6.364a.5.5 0 01-.5.5H5.232a.5.5 0 010-1h5.157L2.05 2.757a.5.5 0 01.707-.707l8.34 8.34V5.231a.5.5 0 111 0z",
  36869. fill: color2
  36870. }
  36871. )
  36872. )), ArrowSolidUpIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36873. "svg",
  36874. {
  36875. width: size,
  36876. height: size,
  36877. viewBox: "0 0 14 14",
  36878. fill: "none",
  36879. xmlns: "http://www.w3.org/2000/svg",
  36880. ref: forwardedRef,
  36881. ...props
  36882. },
  36883. React255.createElement(
  36884. "path",
  36885. {
  36886. fillRule: "evenodd",
  36887. clipRule: "evenodd",
  36888. d: "M6.772 3.59c.126-.12.33-.12.456 0l5.677 5.387c.203.193.06.523-.228.523H1.323c-.287 0-.431-.33-.228-.523L6.772 3.59z",
  36889. fill: color2
  36890. }
  36891. )
  36892. )), ArrowSolidDownIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36893. "svg",
  36894. {
  36895. width: size,
  36896. height: size,
  36897. viewBox: "0 0 14 14",
  36898. fill: "none",
  36899. xmlns: "http://www.w3.org/2000/svg",
  36900. ref: forwardedRef,
  36901. ...props
  36902. },
  36903. React255.createElement(
  36904. "path",
  36905. {
  36906. fillRule: "evenodd",
  36907. clipRule: "evenodd",
  36908. d: "M7.228 10.41a.335.335 0 01-.456 0L1.095 5.023c-.203-.193-.06-.523.228-.523h11.354c.287 0 .431.33.228.523L7.228 10.41z",
  36909. fill: color2
  36910. }
  36911. )
  36912. )), ArrowSolidLeftIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36913. "svg",
  36914. {
  36915. width: size,
  36916. height: size,
  36917. viewBox: "0 0 14 14",
  36918. fill: "none",
  36919. xmlns: "http://www.w3.org/2000/svg",
  36920. ref: forwardedRef,
  36921. ...props
  36922. },
  36923. React255.createElement(
  36924. "path",
  36925. {
  36926. fillRule: "evenodd",
  36927. clipRule: "evenodd",
  36928. d: "M3.712 7.212a.3.3 0 010-.424l5.276-5.276a.3.3 0 01.512.212v10.552a.3.3 0 01-.512.212L3.712 7.212z",
  36929. fill: color2
  36930. }
  36931. )
  36932. )), ArrowSolidRightIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36933. "svg",
  36934. {
  36935. width: size,
  36936. height: size,
  36937. viewBox: "0 0 14 14",
  36938. fill: "none",
  36939. xmlns: "http://www.w3.org/2000/svg",
  36940. ref: forwardedRef,
  36941. ...props
  36942. },
  36943. React255.createElement(
  36944. "path",
  36945. {
  36946. fillRule: "evenodd",
  36947. clipRule: "evenodd",
  36948. d: "M10.288 7.212a.3.3 0 000-.424L5.012 1.512a.3.3 0 00-.512.212v10.552a.3.3 0 00.512.212l5.276-5.276z",
  36949. fill: color2
  36950. }
  36951. )
  36952. )), ExpandAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36953. "svg",
  36954. {
  36955. width: size,
  36956. height: size,
  36957. viewBox: "0 0 14 14",
  36958. fill: "none",
  36959. xmlns: "http://www.w3.org/2000/svg",
  36960. ref: forwardedRef,
  36961. ...props
  36962. },
  36963. React255.createElement(
  36964. "path",
  36965. {
  36966. d: "M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",
  36967. fill: color2
  36968. }
  36969. )
  36970. )), CollapseIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36971. "svg",
  36972. {
  36973. width: size,
  36974. height: size,
  36975. viewBox: "0 0 14 14",
  36976. fill: "none",
  36977. xmlns: "http://www.w3.org/2000/svg",
  36978. ref: forwardedRef,
  36979. ...props
  36980. },
  36981. React255.createElement(
  36982. "path",
  36983. {
  36984. d: "M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",
  36985. fill: color2
  36986. }
  36987. )
  36988. )), ExpandIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  36989. "svg",
  36990. {
  36991. width: size,
  36992. height: size,
  36993. viewBox: "0 0 14 14",
  36994. fill: "none",
  36995. xmlns: "http://www.w3.org/2000/svg",
  36996. ref: forwardedRef,
  36997. ...props
  36998. },
  36999. React255.createElement(
  37000. "path",
  37001. {
  37002. d: "M1.5 1h2a.5.5 0 010 1h-.793l3.147 3.146a.5.5 0 11-.708.708L2 2.707V3.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 1.5a.5.5 0 01.5-.5h2a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-.793L8.854 5.854a.5.5 0 11-.708-.708L11.293 2H10.5a.5.5 0 01-.5-.5zM12.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 010-1h.793L8.146 8.854a.5.5 0 11.708-.708L12 11.293V10.5a.5.5 0 01.5-.5zM2 11.293V10.5a.5.5 0 00-1 0v2a.5.5 0 00.5.5h2a.5.5 0 000-1h-.793l3.147-3.146a.5.5 0 10-.708-.708L2 11.293z",
  37003. fill: color2
  37004. }
  37005. )
  37006. )), UnfoldIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37007. "svg",
  37008. {
  37009. width: size,
  37010. height: size,
  37011. viewBox: "0 0 14 14",
  37012. fill: "none",
  37013. xmlns: "http://www.w3.org/2000/svg",
  37014. ref: forwardedRef,
  37015. ...props
  37016. },
  37017. React255.createElement(
  37018. "path",
  37019. {
  37020. d: "M6.646.147l-1.5 1.5a.5.5 0 10.708.707l.646-.647V5a.5.5 0 001 0V1.707l.646.647a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0z",
  37021. fill: color2
  37022. }
  37023. ),
  37024. React255.createElement(
  37025. "path",
  37026. {
  37027. d: "M1.309 4.038a.498.498 0 00-.16.106l-.005.005a.498.498 0 00.002.705L3.293 7 1.146 9.146A.498.498 0 001.5 10h3a.5.5 0 000-1H2.707l1.5-1.5h5.586l2.353 2.354a.5.5 0 00.708-.708L10.707 7l2.146-2.146.11-.545-.107.542A.499.499 0 0013 4.503v-.006a.5.5 0 00-.144-.348l-.005-.005A.498.498 0 0012.5 4h-3a.5.5 0 000 1h1.793l-1.5 1.5H4.207L2.707 5H4.5a.5.5 0 000-1h-3a.498.498 0 00-.191.038z",
  37028. fill: color2
  37029. }
  37030. ),
  37031. React255.createElement(
  37032. "path",
  37033. {
  37034. d: "M7 8.5a.5.5 0 01.5.5v3.293l.646-.647a.5.5 0 01.708.708l-1.5 1.5a.5.5 0 01-.708 0l-1.5-1.5a.5.5 0 01.708-.708l.646.647V9a.5.5 0 01.5-.5zM9 9.5a.5.5 0 01.5-.5h3a.5.5 0 010 1h-3a.5.5 0 01-.5-.5z",
  37035. fill: color2
  37036. }
  37037. )
  37038. )), TransferIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37039. "svg",
  37040. {
  37041. width: size,
  37042. height: size,
  37043. viewBox: "0 0 14 14",
  37044. fill: "none",
  37045. xmlns: "http://www.w3.org/2000/svg",
  37046. ref: forwardedRef,
  37047. ...props
  37048. },
  37049. React255.createElement(
  37050. "path",
  37051. {
  37052. d: "M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",
  37053. fill: color2
  37054. }
  37055. )
  37056. )), RedirectIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37057. "svg",
  37058. {
  37059. width: size,
  37060. height: size,
  37061. viewBox: "0 0 14 14",
  37062. fill: "none",
  37063. xmlns: "http://www.w3.org/2000/svg",
  37064. ref: forwardedRef,
  37065. ...props
  37066. },
  37067. React255.createElement(
  37068. "path",
  37069. {
  37070. d: "M1.5 1a.5.5 0 01.5.5V10a2 2 0 004 0V4a3 3 0 016 0v7.793l1.146-1.147a.5.5 0 01.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 01.708-.708L11 11.793V4a2 2 0 10-4 0v6.002a3 3 0 01-6 0V1.5a.5.5 0 01.5-.5z",
  37071. fill: color2
  37072. }
  37073. )
  37074. )), UndoIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37075. "svg",
  37076. {
  37077. width: size,
  37078. height: size,
  37079. viewBox: "0 0 14 14",
  37080. fill: "none",
  37081. xmlns: "http://www.w3.org/2000/svg",
  37082. ref: forwardedRef,
  37083. ...props
  37084. },
  37085. React255.createElement(
  37086. "path",
  37087. {
  37088. d: "M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",
  37089. fill: color2
  37090. }
  37091. )
  37092. )), ReplyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37093. "svg",
  37094. {
  37095. width: size,
  37096. height: size,
  37097. viewBox: "0 0 14 14",
  37098. fill: "none",
  37099. xmlns: "http://www.w3.org/2000/svg",
  37100. ref: forwardedRef,
  37101. ...props
  37102. },
  37103. React255.createElement(
  37104. "path",
  37105. {
  37106. d: "M4.354 2.146a.5.5 0 010 .708L1.707 5.5H9.5A4.5 4.5 0 0114 10v1.5a.5.5 0 01-1 0V10a3.5 3.5 0 00-3.5-3.5H1.707l2.647 2.646a.5.5 0 11-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0z",
  37107. fill: color2
  37108. }
  37109. )
  37110. )), SyncIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37111. "svg",
  37112. {
  37113. width: size,
  37114. height: size,
  37115. viewBox: "0 0 14 14",
  37116. fill: "none",
  37117. xmlns: "http://www.w3.org/2000/svg",
  37118. ref: forwardedRef,
  37119. ...props
  37120. },
  37121. React255.createElement(
  37122. "path",
  37123. {
  37124. d: "M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",
  37125. fill: color2
  37126. }
  37127. )
  37128. )), UploadIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37129. "svg",
  37130. {
  37131. width: size,
  37132. height: size,
  37133. viewBox: "0 0 14 14",
  37134. fill: "none",
  37135. xmlns: "http://www.w3.org/2000/svg",
  37136. ref: forwardedRef,
  37137. ...props
  37138. },
  37139. React255.createElement(
  37140. "path",
  37141. {
  37142. d: "M8.646 5.854L7.5 4.707V10.5a.5.5 0 01-1 0V4.707L5.354 5.854a.5.5 0 11-.708-.708l2-2a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.708z",
  37143. fill: color2
  37144. }
  37145. ),
  37146. React255.createElement(
  37147. "path",
  37148. {
  37149. fillRule: "evenodd",
  37150. clipRule: "evenodd",
  37151. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37152. fill: color2
  37153. }
  37154. )
  37155. )), DownloadIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37156. "svg",
  37157. {
  37158. width: size,
  37159. height: size,
  37160. viewBox: "0 0 14 14",
  37161. fill: "none",
  37162. xmlns: "http://www.w3.org/2000/svg",
  37163. ref: forwardedRef,
  37164. ...props
  37165. },
  37166. React255.createElement(
  37167. "path",
  37168. {
  37169. d: "M5.354 8.146L6.5 9.293V3.5a.5.5 0 011 0v5.793l1.146-1.147a.5.5 0 11.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708z",
  37170. fill: color2
  37171. }
  37172. ),
  37173. React255.createElement(
  37174. "path",
  37175. {
  37176. fillRule: "evenodd",
  37177. clipRule: "evenodd",
  37178. d: "M0 7a7 7 0 1114 0A7 7 0 010 7zm1 0a6 6 0 1112 0A6 6 0 011 7z",
  37179. fill: color2
  37180. }
  37181. )
  37182. )), BackIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37183. "svg",
  37184. {
  37185. width: size,
  37186. height: size,
  37187. viewBox: "0 0 14 14",
  37188. fill: "none",
  37189. xmlns: "http://www.w3.org/2000/svg",
  37190. ref: forwardedRef,
  37191. ...props
  37192. },
  37193. React255.createElement(
  37194. "path",
  37195. {
  37196. d: "M5.854 5.354L4.707 6.5H10.5a.5.5 0 010 1H4.707l1.147 1.146a.5.5 0 11-.708.708l-2-2a.5.5 0 010-.708l2-2a.5.5 0 11.708.708z",
  37197. fill: color2
  37198. }
  37199. ),
  37200. React255.createElement(
  37201. "path",
  37202. {
  37203. fillRule: "evenodd",
  37204. clipRule: "evenodd",
  37205. d: "M7 0a7 7 0 110 14A7 7 0 017 0zm0 1a6 6 0 110 12A6 6 0 017 1z",
  37206. fill: color2
  37207. }
  37208. )
  37209. )), ProceedIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37210. "svg",
  37211. {
  37212. width: size,
  37213. height: size,
  37214. viewBox: "0 0 14 14",
  37215. fill: "none",
  37216. xmlns: "http://www.w3.org/2000/svg",
  37217. ref: forwardedRef,
  37218. ...props
  37219. },
  37220. React255.createElement(
  37221. "path",
  37222. {
  37223. d: "M3.5 6.5h5.793L8.146 5.354a.5.5 0 11.708-.708l2 2a.5.5 0 010 .708l-2 2a.5.5 0 11-.708-.708L9.293 7.5H3.5a.5.5 0 010-1z",
  37224. fill: color2
  37225. }
  37226. ),
  37227. React255.createElement(
  37228. "path",
  37229. {
  37230. fillRule: "evenodd",
  37231. clipRule: "evenodd",
  37232. d: "M7 14A7 7 0 117 0a7 7 0 010 14zm0-1A6 6 0 117 1a6 6 0 010 12z",
  37233. fill: color2
  37234. }
  37235. )
  37236. )), RefreshIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37237. "svg",
  37238. {
  37239. width: size,
  37240. height: size,
  37241. viewBox: "0 0 14 14",
  37242. fill: "none",
  37243. xmlns: "http://www.w3.org/2000/svg",
  37244. ref: forwardedRef,
  37245. ...props
  37246. },
  37247. React255.createElement(
  37248. "path",
  37249. {
  37250. d: "M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",
  37251. fill: color2
  37252. }
  37253. )
  37254. )), GlobeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37255. "svg",
  37256. {
  37257. width: size,
  37258. height: size,
  37259. viewBox: "0 0 14 14",
  37260. fill: "none",
  37261. xmlns: "http://www.w3.org/2000/svg",
  37262. ref: forwardedRef,
  37263. ...props
  37264. },
  37265. React255.createElement(
  37266. "path",
  37267. {
  37268. fillRule: "evenodd",
  37269. clipRule: "evenodd",
  37270. d: "M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z",
  37271. fill: color2
  37272. }
  37273. )
  37274. )), CompassIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37275. "svg",
  37276. {
  37277. width: size,
  37278. height: size,
  37279. viewBox: "0 0 14 14",
  37280. fill: "none",
  37281. xmlns: "http://www.w3.org/2000/svg",
  37282. ref: forwardedRef,
  37283. ...props
  37284. },
  37285. React255.createElement(
  37286. "path",
  37287. {
  37288. fillRule: "evenodd",
  37289. clipRule: "evenodd",
  37290. d: "M10.087 3.397L5.95 5.793a.374.374 0 00-.109.095.377.377 0 00-.036.052l-2.407 4.147a.374.374 0 00-.004.384c.104.179.334.24.513.136l4.142-2.404a.373.373 0 00.148-.143l2.406-4.146a.373.373 0 00-.037-.443.373.373 0 00-.478-.074zM4.75 9.25l2.847-1.652-1.195-1.195L4.75 9.25z",
  37291. fill: color2
  37292. }
  37293. ),
  37294. React255.createElement(
  37295. "path",
  37296. {
  37297. fillRule: "evenodd",
  37298. clipRule: "evenodd",
  37299. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37300. fill: color2
  37301. }
  37302. )
  37303. )), LocationIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37304. "svg",
  37305. {
  37306. width: size,
  37307. height: size,
  37308. viewBox: "0 0 14 14",
  37309. fill: "none",
  37310. xmlns: "http://www.w3.org/2000/svg",
  37311. ref: forwardedRef,
  37312. ...props
  37313. },
  37314. React255.createElement(
  37315. "path",
  37316. {
  37317. fillRule: "evenodd",
  37318. clipRule: "evenodd",
  37319. d: "M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",
  37320. fill: color2
  37321. }
  37322. )
  37323. )), PinIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37324. "svg",
  37325. {
  37326. width: size,
  37327. height: size,
  37328. viewBox: "0 0 14 14",
  37329. fill: "none",
  37330. xmlns: "http://www.w3.org/2000/svg",
  37331. ref: forwardedRef,
  37332. ...props
  37333. },
  37334. React255.createElement(
  37335. "path",
  37336. {
  37337. fillRule: "evenodd",
  37338. clipRule: "evenodd",
  37339. d: "M9 5a2 2 0 11-4 0 2 2 0 014 0zM8 5a1 1 0 11-2 0 1 1 0 012 0z",
  37340. fill: color2
  37341. }
  37342. ),
  37343. React255.createElement(
  37344. "path",
  37345. {
  37346. fillRule: "evenodd",
  37347. clipRule: "evenodd",
  37348. d: "M12 5A5 5 0 002 5c0 2.633 2.273 6.154 4.65 8.643.192.2.508.2.7 0C9.726 11.153 12 7.633 12 5zM7 1a4 4 0 014 4c0 1.062-.471 2.42-1.303 3.88-.729 1.282-1.69 2.562-2.697 3.67-1.008-1.108-1.968-2.388-2.697-3.67C3.47 7.42 3 6.063 3 5a4 4 0 014-4z",
  37349. fill: color2
  37350. }
  37351. )
  37352. )), TimeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37353. "svg",
  37354. {
  37355. width: size,
  37356. height: size,
  37357. viewBox: "0 0 14 14",
  37358. fill: "none",
  37359. xmlns: "http://www.w3.org/2000/svg",
  37360. ref: forwardedRef,
  37361. ...props
  37362. },
  37363. React255.createElement(
  37364. "path",
  37365. {
  37366. d: "M7 2a.5.5 0 01.5.5v4H10a.5.5 0 010 1H7a.5.5 0 01-.5-.5V2.5A.5.5 0 017 2z",
  37367. fill: color2
  37368. }
  37369. ),
  37370. React255.createElement(
  37371. "path",
  37372. {
  37373. fillRule: "evenodd",
  37374. clipRule: "evenodd",
  37375. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  37376. fill: color2
  37377. }
  37378. )
  37379. )), DashboardIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37380. "svg",
  37381. {
  37382. width: size,
  37383. height: size,
  37384. viewBox: "0 0 14 14",
  37385. fill: "none",
  37386. xmlns: "http://www.w3.org/2000/svg",
  37387. ref: forwardedRef,
  37388. ...props
  37389. },
  37390. React255.createElement(
  37391. "path",
  37392. {
  37393. d: "M9.79 4.093a.5.5 0 01.117.698L7.91 7.586a1 1 0 11-.814-.581l1.997-2.796a.5.5 0 01.698-.116z",
  37394. fill: color2
  37395. }
  37396. ),
  37397. React255.createElement(
  37398. "path",
  37399. {
  37400. fillRule: "evenodd",
  37401. clipRule: "evenodd",
  37402. d: "M2.069 12.968a7 7 0 119.863 0A12.962 12.962 0 007 12c-1.746 0-3.41.344-4.931.968zm9.582-1.177a6 6 0 10-9.301 0A13.98 13.98 0 017 11c1.629 0 3.194.279 4.65.791z",
  37403. fill: color2
  37404. }
  37405. )
  37406. )), TimerIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37407. "svg",
  37408. {
  37409. width: size,
  37410. height: size,
  37411. viewBox: "0 0 14 14",
  37412. fill: "none",
  37413. xmlns: "http://www.w3.org/2000/svg",
  37414. ref: forwardedRef,
  37415. ...props
  37416. },
  37417. React255.createElement("path", { d: "M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z", fill: color2 }),
  37418. React255.createElement(
  37419. "path",
  37420. {
  37421. fillRule: "evenodd",
  37422. clipRule: "evenodd",
  37423. d: "M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",
  37424. fill: color2
  37425. }
  37426. )
  37427. )), HomeIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37428. "svg",
  37429. {
  37430. width: size,
  37431. height: size,
  37432. viewBox: "0 0 14 14",
  37433. fill: "none",
  37434. xmlns: "http://www.w3.org/2000/svg",
  37435. ref: forwardedRef,
  37436. ...props
  37437. },
  37438. React255.createElement(
  37439. "path",
  37440. {
  37441. fillRule: "evenodd",
  37442. clipRule: "evenodd",
  37443. d: "M7.354 1.146l5.5 5.5a.5.5 0 01-.708.708L12 7.207V12.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V9H6v3.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V7.207l-.146.147a.5.5 0 11-.708-.708l1-1 4.5-4.5a.5.5 0 01.708 0zM3 6.207V12h2V8.5a.5.5 0 01.5-.5h3a.5.5 0 01.5.5V12h2V6.207l-4-4-4 4z",
  37444. fill: color2
  37445. }
  37446. )
  37447. )), AdminIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37448. "svg",
  37449. {
  37450. width: size,
  37451. height: size,
  37452. viewBox: "0 0 14 14",
  37453. fill: "none",
  37454. xmlns: "http://www.w3.org/2000/svg",
  37455. ref: forwardedRef,
  37456. ...props
  37457. },
  37458. React255.createElement(
  37459. "path",
  37460. {
  37461. fillRule: "evenodd",
  37462. clipRule: "evenodd",
  37463. d: "M1.213 4.094a.5.5 0 01.056-.034l5.484-2.995a.498.498 0 01.494 0L12.73 4.06a.507.507 0 01.266.389.498.498 0 01-.507.555H1.51a.5.5 0 01-.297-.91zm2.246-.09h7.082L7 2.07 3.459 4.004z",
  37464. fill: color2
  37465. }
  37466. ),
  37467. React255.createElement(
  37468. "path",
  37469. {
  37470. d: "M4 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM11 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM5.75 5.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM8.75 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM1.5 12.504a.5.5 0 01.5-.5h10a.5.5 0 010 1H2a.5.5 0 01-.5-.5z",
  37471. fill: color2
  37472. }
  37473. )
  37474. )), DirectionIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37475. "svg",
  37476. {
  37477. width: size,
  37478. height: size,
  37479. viewBox: "0 0 14 14",
  37480. fill: "none",
  37481. xmlns: "http://www.w3.org/2000/svg",
  37482. ref: forwardedRef,
  37483. ...props
  37484. },
  37485. React255.createElement("g", { clipPath: "url(#prefix__clip0_1107_3594)" }, React255.createElement(
  37486. "path",
  37487. {
  37488. d: "M11.451.537l.01 12.922L7.61 8.946a1.078 1.078 0 00-.731-.374L.965 8.087 11.45.537z",
  37489. stroke: color2,
  37490. strokeWidth: 1.077
  37491. }
  37492. )),
  37493. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_1107_3594" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  37494. )), UserIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37495. "svg",
  37496. {
  37497. width: size,
  37498. height: size,
  37499. viewBox: "0 0 14 14",
  37500. fill: "none",
  37501. xmlns: "http://www.w3.org/2000/svg",
  37502. ref: forwardedRef,
  37503. ...props
  37504. },
  37505. React255.createElement(
  37506. "path",
  37507. {
  37508. fillRule: "evenodd",
  37509. clipRule: "evenodd",
  37510. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",
  37511. fill: color2
  37512. }
  37513. )
  37514. )), UserAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37515. "svg",
  37516. {
  37517. width: size,
  37518. height: size,
  37519. viewBox: "0 0 14 14",
  37520. fill: "none",
  37521. xmlns: "http://www.w3.org/2000/svg",
  37522. ref: forwardedRef,
  37523. ...props
  37524. },
  37525. React255.createElement(
  37526. "path",
  37527. {
  37528. d: "M7.275 13.16a11.388 11.388 0 005.175-1.232v-.25c0-1.566-3.237-2.994-4.104-3.132-.27-.043-.276-.783-.276-.783s.791-.783.964-1.836c.463 0 .75-1.119.286-1.513C9.34 4 9.916 1.16 6.997 1.16c-2.92 0-2.343 2.84-2.324 3.254-.463.394-.177 1.513.287 1.513.172 1.053.963 1.836.963 1.836s-.006.74-.275.783c-.858.136-4.036 1.536-4.103 3.082a11.388 11.388 0 005.73 1.532z",
  37529. fill: color2
  37530. }
  37531. )
  37532. )), UserAddIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37533. "svg",
  37534. {
  37535. width: size,
  37536. height: size,
  37537. viewBox: "0 0 14 14",
  37538. fill: "none",
  37539. xmlns: "http://www.w3.org/2000/svg",
  37540. ref: forwardedRef,
  37541. ...props
  37542. },
  37543. React255.createElement(
  37544. "path",
  37545. {
  37546. d: "M1.183 11.906a10.645 10.645 0 01-1.181-.589c.062-1.439 3.02-2.74 3.818-2.868.25-.04.256-.728.256-.728s-.736-.729-.896-1.709c-.432 0-.698-1.041-.267-1.408A2.853 2.853 0 002.9 4.46c-.072-.672-.31-2.884 2.175-2.884 2.486 0 2.248 2.212 2.176 2.884-.007.062-.012.112-.014.144.432.367.165 1.408-.266 1.408-.16.98-.896 1.709-.896 1.709s.005.688.256.728c.807.129 3.82 1.457 3.82 2.915v.233a10.598 10.598 0 01-4.816 1.146c-1.441 0-2.838-.282-4.152-.837zM11.5 2.16a.5.5 0 01.5.5v1.5h1.5a.5.5 0 010 1H12v1.5a.5.5 0 01-1 0v-1.5H9.5a.5.5 0 110-1H11v-1.5a.5.5 0 01.5-.5z",
  37547. fill: color2
  37548. }
  37549. )
  37550. )), UsersIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37551. "svg",
  37552. {
  37553. width: size,
  37554. height: size,
  37555. viewBox: "0 0 14 14",
  37556. fill: "none",
  37557. xmlns: "http://www.w3.org/2000/svg",
  37558. ref: forwardedRef,
  37559. ...props
  37560. },
  37561. React255.createElement(
  37562. "path",
  37563. {
  37564. d: "M9.21 11.623a10.586 10.586 0 01-4.031.787A10.585 10.585 0 010 11.07c.06-1.354 2.933-2.578 3.708-2.697.243-.038.249-.685.249-.685s-.715-.685-.87-1.607c-.42 0-.679-.979-.26-1.323a2.589 2.589 0 00-.013-.136c-.07-.632-.3-2.712 2.113-2.712 2.414 0 2.183 2.08 2.113 2.712-.007.059-.012.105-.013.136.419.344.16 1.323-.259 1.323-.156.922-.87 1.607-.87 1.607s.005.647.248.685c.784.12 3.71 1.37 3.71 2.74v.22c-.212.103-.427.2-.646.29z",
  37565. fill: color2
  37566. }
  37567. ),
  37568. React255.createElement(
  37569. "path",
  37570. {
  37571. d: "M8.81 8.417a9.643 9.643 0 00-.736-.398c.61-.42 1.396-.71 1.7-.757.167-.026.171-.471.171-.471s-.491-.471-.598-1.104c-.288 0-.466-.674-.178-.91-.001-.022-.005-.053-.01-.094-.048-.434-.206-1.864 1.453-1.864 1.66 0 1.5 1.43 1.453 1.864l-.01.094c.289.236.11.91-.178.91-.107.633-.598 1.104-.598 1.104s.004.445.171.47c.539.084 2.55.942 2.55 1.884v.628a10.604 10.604 0 01-3.302.553 2.974 2.974 0 00-.576-.879c-.375-.408-.853-.754-1.312-1.03z",
  37572. fill: color2
  37573. }
  37574. )
  37575. )), ProfileIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37576. "svg",
  37577. {
  37578. width: size,
  37579. height: size,
  37580. viewBox: "0 0 14 14",
  37581. fill: "none",
  37582. xmlns: "http://www.w3.org/2000/svg",
  37583. ref: forwardedRef,
  37584. ...props
  37585. },
  37586. React255.createElement(
  37587. "path",
  37588. {
  37589. d: "M9.106 7.354c-.627.265-1.295.4-1.983.4a5.062 5.062 0 01-2.547-.681c.03-.688 1.443-1.31 1.824-1.37.12-.02.122-.348.122-.348s-.351-.348-.428-.816c-.206 0-.333-.498-.127-.673 0-.016-.003-.04-.007-.07C5.926 3.477 5.812 2.42 7 2.42c1.187 0 1.073 1.057 1.039 1.378l-.007.069c.207.175.08.673-.127.673-.076.468-.428.816-.428.816s.003.329.122.348c.386.06 1.825.696 1.825 1.392v.111c-.104.053-.21.102-.318.148zM3.75 11.25A.25.25 0 014 11h6a.25.25 0 110 .5H4a.25.25 0 01-.25-.25zM4 9a.25.25 0 000 .5h6a.25.25 0 100-.5H4z",
  37590. fill: color2
  37591. }
  37592. ),
  37593. React255.createElement(
  37594. "path",
  37595. {
  37596. fillRule: "evenodd",
  37597. clipRule: "evenodd",
  37598. d: "M1 .5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v13a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5V.5zM2 13V1h10v12H2z",
  37599. fill: color2
  37600. }
  37601. )
  37602. )), FaceHappyIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37603. "svg",
  37604. {
  37605. width: size,
  37606. height: size,
  37607. viewBox: "0 0 14 14",
  37608. fill: "none",
  37609. xmlns: "http://www.w3.org/2000/svg",
  37610. ref: forwardedRef,
  37611. ...props
  37612. },
  37613. React255.createElement(
  37614. "path",
  37615. {
  37616. d: "M3.968 8.75a.5.5 0 00-.866.5A4.498 4.498 0 007 11.5c1.666 0 3.12-.906 3.898-2.25a.5.5 0 10-.866-.5A3.498 3.498 0 017 10.5a3.498 3.498 0 01-3.032-1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",
  37617. fill: color2
  37618. }
  37619. ),
  37620. React255.createElement(
  37621. "path",
  37622. {
  37623. fillRule: "evenodd",
  37624. clipRule: "evenodd",
  37625. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37626. fill: color2
  37627. }
  37628. )
  37629. )), FaceNeutralIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37630. "svg",
  37631. {
  37632. width: size,
  37633. height: size,
  37634. viewBox: "0 0 14 14",
  37635. fill: "none",
  37636. xmlns: "http://www.w3.org/2000/svg",
  37637. ref: forwardedRef,
  37638. ...props
  37639. },
  37640. React255.createElement(
  37641. "path",
  37642. {
  37643. d: "M4.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",
  37644. fill: color2
  37645. }
  37646. ),
  37647. React255.createElement(
  37648. "path",
  37649. {
  37650. fillRule: "evenodd",
  37651. clipRule: "evenodd",
  37652. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37653. fill: color2
  37654. }
  37655. )
  37656. )), FaceSadIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37657. "svg",
  37658. {
  37659. width: size,
  37660. height: size,
  37661. viewBox: "0 0 14 14",
  37662. fill: "none",
  37663. xmlns: "http://www.w3.org/2000/svg",
  37664. ref: forwardedRef,
  37665. ...props
  37666. },
  37667. React255.createElement(
  37668. "path",
  37669. {
  37670. d: "M3.968 10.25a.5.5 0 01-.866-.5A4.498 4.498 0 017 7.5c1.666 0 3.12.906 3.898 2.25a.5.5 0 11-.866.5A3.498 3.498 0 007 8.5a3.498 3.498 0 00-3.032 1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",
  37671. fill: color2
  37672. }
  37673. ),
  37674. React255.createElement(
  37675. "path",
  37676. {
  37677. fillRule: "evenodd",
  37678. clipRule: "evenodd",
  37679. d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
  37680. fill: color2
  37681. }
  37682. )
  37683. )), AccessibilityIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37684. "svg",
  37685. {
  37686. width: size,
  37687. height: size,
  37688. viewBox: "0 0 14 14",
  37689. fill: "none",
  37690. xmlns: "http://www.w3.org/2000/svg",
  37691. ref: forwardedRef,
  37692. ...props
  37693. },
  37694. React255.createElement(
  37695. "path",
  37696. {
  37697. d: "M3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",
  37698. fill: color2
  37699. }
  37700. ),
  37701. React255.createElement("path", { d: "M7 4.5a1 1 0 100-2 1 1 0 000 2z", fill: color2 }),
  37702. React255.createElement(
  37703. "path",
  37704. {
  37705. fillRule: "evenodd",
  37706. clipRule: "evenodd",
  37707. d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
  37708. fill: color2
  37709. }
  37710. )
  37711. )), AccessibilityAltIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37712. "svg",
  37713. {
  37714. width: size,
  37715. height: size,
  37716. viewBox: "0 0 14 14",
  37717. fill: "none",
  37718. xmlns: "http://www.w3.org/2000/svg",
  37719. ref: forwardedRef,
  37720. ...props
  37721. },
  37722. React255.createElement(
  37723. "path",
  37724. {
  37725. fillRule: "evenodd",
  37726. clipRule: "evenodd",
  37727. d: "M7 14A7 7 0 107 0a7 7 0 000 14zM8 3.5a1 1 0 11-2 0 1 1 0 012 0zM3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",
  37728. fill: color2
  37729. }
  37730. )
  37731. )), AccessibilityIgnoredIcon = React255.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React255.createElement(
  37732. "svg",
  37733. {
  37734. width: size,
  37735. height: size,
  37736. viewBox: "0 0 14 14",
  37737. fill: "none",
  37738. xmlns: "http://www.w3.org/2000/svg",
  37739. ref: forwardedRef,
  37740. ...props
  37741. },
  37742. React255.createElement("g", { clipPath: "url(#prefix__clip0_2359_558)", fill: color2 }, React255.createElement("path", { d: "M7.636 13.972a7 7 0 116.335-6.335c-.28-.34-.609-.637-.976-.883a6 6 0 10-6.24 6.241c.245.367.542.696.881.977z" }), React255.createElement("path", { d: "M7.511 7.136a4.489 4.489 0 00-1.478 3.915l-.086.173a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01.316-.948l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243c0 .105.004.21.011.316z" }), React255.createElement("path", { d: "M8 3.5a1 1 0 11-2 0 1 1 0 012 0z" }), React255.createElement(
  37743. "path",
  37744. {
  37745. fillRule: "evenodd",
  37746. clipRule: "evenodd",
  37747. d: "M14 10.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-5.5 0A.5.5 0 019 10h3a.5.5 0 010 1H9a.5.5 0 01-.5-.5z"
  37748. }
  37749. )),
  37750. React255.createElement("defs", null, React255.createElement("clipPath", { id: "prefix__clip0_2359_558" }, React255.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" })))
  37751. ));
  37752. // src/components/components/typography/link/link.tsx
  37753. init_polished_esm();
  37754. init_theming();
  37755. var LEFT_BUTTON = 0, isPlainLeftClick = (e) => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey, cancelled = (e, cb) => {
  37756. isPlainLeftClick(e) && (e.preventDefault(), cb(e));
  37757. }, LinkInner = styled.span(
  37758. ({ withArrow }) => withArrow ? {
  37759. "> svg:last-of-type": {
  37760. height: "0.7em",
  37761. width: "0.7em",
  37762. marginRight: 0,
  37763. marginLeft: "0.25em",
  37764. bottom: "auto",
  37765. verticalAlign: "inherit"
  37766. }
  37767. } : {},
  37768. ({ containsIcon }) => containsIcon ? {
  37769. svg: {
  37770. height: "1em",
  37771. width: "1em",
  37772. verticalAlign: "middle",
  37773. position: "relative",
  37774. bottom: 0,
  37775. marginRight: 0
  37776. }
  37777. } : {}
  37778. ), A2 = styled.a(
  37779. ({ theme: theme3 }) => ({
  37780. display: "inline-block",
  37781. transition: "all 150ms ease-out",
  37782. textDecoration: "none",
  37783. color: theme3.color.secondary,
  37784. "&:hover, &:focus": {
  37785. cursor: "pointer",
  37786. color: curriedDarken$1(0.07, theme3.color.secondary),
  37787. "svg path:not([fill])": {
  37788. fill: curriedDarken$1(0.07, theme3.color.secondary)
  37789. }
  37790. },
  37791. "&:active": {
  37792. color: curriedDarken$1(0.1, theme3.color.secondary),
  37793. "svg path:not([fill])": {
  37794. fill: curriedDarken$1(0.1, theme3.color.secondary)
  37795. }
  37796. },
  37797. svg: {
  37798. display: "inline-block",
  37799. height: "1em",
  37800. width: "1em",
  37801. verticalAlign: "text-top",
  37802. position: "relative",
  37803. bottom: "-0.125em",
  37804. marginRight: "0.4em",
  37805. "& path": {
  37806. fill: theme3.color.secondary
  37807. }
  37808. }
  37809. }),
  37810. ({ theme: theme3, secondary, tertiary }) => {
  37811. let colors3;
  37812. return secondary && (colors3 = [theme3.textMutedColor, theme3.color.secondary, theme3.color.secondary]), tertiary && (colors3 = [theme3.color.dark, theme3.color.secondary, theme3.color.secondary]), colors3 ? {
  37813. color: colors3[0],
  37814. "svg path:not([fill])": {
  37815. fill: colors3[0]
  37816. },
  37817. "&:hover": {
  37818. color: colors3[1],
  37819. "svg path:not([fill])": {
  37820. fill: colors3[1]
  37821. }
  37822. },
  37823. "&:active": {
  37824. color: colors3[2],
  37825. "svg path:not([fill])": {
  37826. fill: colors3[2]
  37827. }
  37828. }
  37829. } : {};
  37830. },
  37831. ({ nochrome }) => nochrome ? {
  37832. color: "inherit",
  37833. "&:hover, &:active": {
  37834. color: "inherit",
  37835. textDecoration: "underline"
  37836. }
  37837. } : {},
  37838. ({ theme: theme3, inverse }) => inverse ? {
  37839. color: theme3.color.lightest,
  37840. ":not([fill])": {
  37841. fill: theme3.color.lightest
  37842. },
  37843. "&:hover": {
  37844. color: theme3.color.lighter,
  37845. "svg path:not([fill])": {
  37846. fill: theme3.color.lighter
  37847. }
  37848. },
  37849. "&:active": {
  37850. color: theme3.color.light,
  37851. "svg path:not([fill])": {
  37852. fill: theme3.color.light
  37853. }
  37854. }
  37855. } : {},
  37856. ({ isButton: isButton2, theme: theme3 }) => isButton2 ? {
  37857. border: 0,
  37858. borderRadius: theme3.input.borderRadius,
  37859. background: "none",
  37860. padding: 0,
  37861. fontSize: "inherit",
  37862. lineHeight: "inherit",
  37863. "&:focus-visible": {
  37864. outline: `2px solid ${theme3.color.secondary}`,
  37865. outlineOffset: 2,
  37866. // Should ensure focus outline gets drawn above next sibling
  37867. zIndex: "1"
  37868. }
  37869. } : {}
  37870. ), Link2 = (0, import_react18.forwardRef)(
  37871. ({
  37872. cancel = !0,
  37873. children,
  37874. onClick = void 0,
  37875. withArrow = !1,
  37876. containsIcon = !1,
  37877. className = void 0,
  37878. isButton: isButton2 = void 0,
  37879. href,
  37880. ...rest
  37881. }, ref) => (isButton2 !== void 0 && deprecate(
  37882. "Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."
  37883. ), import_react18.default.createElement(
  37884. A2,
  37885. {
  37886. as: href ? "a" : "button",
  37887. href,
  37888. ...rest,
  37889. ref,
  37890. isButton: !href || isButton2 === !0,
  37891. onClick: onClick && cancel ? (e) => cancelled(e, onClick) : onClick,
  37892. className
  37893. },
  37894. import_react18.default.createElement(LinkInner, { withArrow, containsIcon }, children, withArrow && import_react18.default.createElement(ChevronRightIcon, null))
  37895. ))
  37896. );
  37897. Link2.displayName = "Link";
  37898. // src/components/components/typography/DocumentWrapper.tsx
  37899. init_theming();
  37900. var DocumentWrapper = styled.div(({ theme: theme3 }) => ({
  37901. fontSize: `${theme3.typography.size.s2}px`,
  37902. lineHeight: "1.6",
  37903. h1: {
  37904. fontSize: `${theme3.typography.size.l1}px`,
  37905. fontWeight: theme3.typography.weight.bold
  37906. },
  37907. h2: {
  37908. fontSize: `${theme3.typography.size.m2}px`,
  37909. borderBottom: `1px solid ${theme3.appBorderColor}`
  37910. },
  37911. h3: {
  37912. fontSize: `${theme3.typography.size.m1}px`
  37913. },
  37914. h4: {
  37915. fontSize: `${theme3.typography.size.s3}px`
  37916. },
  37917. h5: {
  37918. fontSize: `${theme3.typography.size.s2}px`
  37919. },
  37920. h6: {
  37921. fontSize: `${theme3.typography.size.s2}px`,
  37922. color: theme3.color.dark
  37923. },
  37924. "pre:not(.prismjs)": {
  37925. background: "transparent",
  37926. border: "none",
  37927. borderRadius: 0,
  37928. padding: 0,
  37929. margin: 0
  37930. },
  37931. "pre pre, pre.prismjs": {
  37932. padding: 15,
  37933. margin: 0,
  37934. whiteSpace: "pre-wrap",
  37935. color: "inherit",
  37936. fontSize: "13px",
  37937. lineHeight: "19px"
  37938. },
  37939. "pre pre code, pre.prismjs code": {
  37940. color: "inherit",
  37941. fontSize: "inherit"
  37942. },
  37943. "pre code": {
  37944. margin: 0,
  37945. padding: 0,
  37946. whiteSpace: "pre",
  37947. border: "none",
  37948. background: "transparent"
  37949. },
  37950. "pre code, pre tt": {
  37951. backgroundColor: "transparent",
  37952. border: "none"
  37953. },
  37954. /* GitHub inspired Markdown styles loosely from https://gist.github.com/tuzz/3331384 */
  37955. "body > *:first-of-type": {
  37956. marginTop: "0 !important"
  37957. },
  37958. "body > *:last-child": {
  37959. marginBottom: "0 !important"
  37960. },
  37961. a: {
  37962. color: theme3.color.secondary,
  37963. // Ensure WCAG Level A compliance (SC 1.4.1), see https://www.w3.org/WAI/WCAG22/Techniques/failures/F73
  37964. textDecoration: "underline",
  37965. textDecorationThickness: "0.03125rem",
  37966. textUnderlineOffset: "0.11em",
  37967. "& code": {
  37968. color: "inherit",
  37969. textDecoration: "underline",
  37970. textDecorationThickness: "0.03125rem",
  37971. paddingLeft: 0,
  37972. paddingRight: 0,
  37973. "&::before": {
  37974. content: '"\\00a0"',
  37975. fontSize: "0.5em"
  37976. },
  37977. "&::after": {
  37978. content: '"\\00a0"',
  37979. fontSize: "0.5em"
  37980. }
  37981. }
  37982. },
  37983. "a.absent": {
  37984. color: "#cc0000"
  37985. },
  37986. "a.anchor": {
  37987. display: "block",
  37988. paddingLeft: 30,
  37989. marginLeft: -30,
  37990. cursor: "pointer",
  37991. position: "absolute",
  37992. top: 0,
  37993. left: 0,
  37994. bottom: 0,
  37995. textDecoration: "none"
  37996. },
  37997. "&.anchor:hover, &.anchor:focus": {
  37998. textDecoration: "underline"
  37999. },
  38000. "h1, h2, h3, h4, h5, h6": {
  38001. margin: "20px 0 10px",
  38002. padding: 0,
  38003. cursor: "text",
  38004. position: "relative",
  38005. "&:first-of-type": {
  38006. marginTop: 0,
  38007. paddingTop: 0
  38008. },
  38009. "&:hover a.anchor": {
  38010. textDecoration: "none"
  38011. },
  38012. "& tt, & code": {
  38013. fontSize: "inherit"
  38014. }
  38015. },
  38016. "h1:first-of-type + h2": {
  38017. marginTop: 0,
  38018. paddingTop: 0
  38019. },
  38020. "p, blockquote, ul, ol, dl, li, table, pre": {
  38021. margin: "15px 0"
  38022. },
  38023. hr: {
  38024. border: "0 none",
  38025. borderTop: `1px solid ${theme3.appBorderColor}`,
  38026. height: 4,
  38027. padding: 0
  38028. },
  38029. "body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type": {
  38030. marginTop: 0,
  38031. paddingTop: 0
  38032. },
  38033. "body > h1:first-of-type + h2": {
  38034. marginTop: 0,
  38035. paddingTop: 0
  38036. },
  38037. "a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6": {
  38038. marginTop: 0,
  38039. paddingTop: 0
  38040. },
  38041. "h1 p, h2 p, h3 p, h4 p, h5 p, h6 p": {
  38042. marginTop: 0
  38043. },
  38044. "li p.first": {
  38045. display: "inline-block"
  38046. },
  38047. "ul, ol": {
  38048. paddingLeft: 30,
  38049. "& :first-of-type": {
  38050. marginTop: 0
  38051. },
  38052. "& :last-child": {
  38053. marginBottom: 0
  38054. }
  38055. },
  38056. dl: {
  38057. padding: 0
  38058. },
  38059. "dl dt": {
  38060. fontSize: "14px",
  38061. fontWeight: "bold",
  38062. fontStyle: "italic",
  38063. margin: "0 0 15px",
  38064. padding: "0 15px",
  38065. "&:first-of-type": {
  38066. padding: 0
  38067. },
  38068. "& > :first-of-type": {
  38069. marginTop: 0
  38070. },
  38071. "& > :last-child": {
  38072. marginBottom: 0
  38073. }
  38074. },
  38075. blockquote: {
  38076. borderLeft: `4px solid ${theme3.color.medium}`,
  38077. padding: "0 15px",
  38078. color: theme3.color.dark,
  38079. "& > :first-of-type": {
  38080. marginTop: 0
  38081. },
  38082. "& > :last-child": {
  38083. marginBottom: 0
  38084. }
  38085. },
  38086. table: {
  38087. padding: 0,
  38088. borderCollapse: "collapse",
  38089. "& tr": {
  38090. borderTop: `1px solid ${theme3.appBorderColor}`,
  38091. backgroundColor: "white",
  38092. margin: 0,
  38093. padding: 0,
  38094. "& th": {
  38095. fontWeight: "bold",
  38096. border: `1px solid ${theme3.appBorderColor}`,
  38097. textAlign: "left",
  38098. margin: 0,
  38099. padding: "6px 13px"
  38100. },
  38101. "& td": {
  38102. border: `1px solid ${theme3.appBorderColor}`,
  38103. textAlign: "left",
  38104. margin: 0,
  38105. padding: "6px 13px"
  38106. },
  38107. "&:nth-of-type(2n)": {
  38108. backgroundColor: theme3.color.lighter
  38109. },
  38110. "& th :first-of-type, & td :first-of-type": {
  38111. marginTop: 0
  38112. },
  38113. "& th :last-child, & td :last-child": {
  38114. marginBottom: 0
  38115. }
  38116. }
  38117. },
  38118. img: {
  38119. maxWidth: "100%"
  38120. },
  38121. "span.frame": {
  38122. display: "block",
  38123. overflow: "hidden",
  38124. "& > span": {
  38125. border: `1px solid ${theme3.color.medium}`,
  38126. display: "block",
  38127. float: "left",
  38128. overflow: "hidden",
  38129. margin: "13px 0 0",
  38130. padding: 7,
  38131. width: "auto"
  38132. },
  38133. "& span img": {
  38134. display: "block",
  38135. float: "left"
  38136. },
  38137. "& span span": {
  38138. clear: "both",
  38139. color: theme3.color.darkest,
  38140. display: "block",
  38141. padding: "5px 0 0"
  38142. }
  38143. },
  38144. "span.align-center": {
  38145. display: "block",
  38146. overflow: "hidden",
  38147. clear: "both",
  38148. "& > span": {
  38149. display: "block",
  38150. overflow: "hidden",
  38151. margin: "13px auto 0",
  38152. textAlign: "center"
  38153. },
  38154. "& span img": {
  38155. margin: "0 auto",
  38156. textAlign: "center"
  38157. }
  38158. },
  38159. "span.align-right": {
  38160. display: "block",
  38161. overflow: "hidden",
  38162. clear: "both",
  38163. "& > span": {
  38164. display: "block",
  38165. overflow: "hidden",
  38166. margin: "13px 0 0",
  38167. textAlign: "right"
  38168. },
  38169. "& span img": {
  38170. margin: 0,
  38171. textAlign: "right"
  38172. }
  38173. },
  38174. "span.float-left": {
  38175. display: "block",
  38176. marginRight: 13,
  38177. overflow: "hidden",
  38178. float: "left",
  38179. "& span": {
  38180. margin: "13px 0 0"
  38181. }
  38182. },
  38183. "span.float-right": {
  38184. display: "block",
  38185. marginLeft: 13,
  38186. overflow: "hidden",
  38187. float: "right",
  38188. "& > span": {
  38189. display: "block",
  38190. overflow: "hidden",
  38191. margin: "13px auto 0",
  38192. textAlign: "right"
  38193. }
  38194. },
  38195. "code, tt": {
  38196. margin: "0 2px",
  38197. padding: "0 5px",
  38198. whiteSpace: "nowrap",
  38199. border: `1px solid ${theme3.color.mediumlight}`,
  38200. backgroundColor: theme3.color.lighter,
  38201. borderRadius: 3,
  38202. color: theme3.base === "dark" ? theme3.color.darkest : theme3.color.dark
  38203. }
  38204. }));
  38205. // src/components/components/syntaxhighlighter/clipboard.ts
  38206. init_dist();
  38207. var { document: document3, window: globalWindow2 } = scope;
  38208. async function copyUsingClipboardAPI(text) {
  38209. try {
  38210. await globalWindow2.top?.navigator.clipboard.writeText(text);
  38211. } catch {
  38212. await globalWindow2.navigator.clipboard.writeText(text);
  38213. }
  38214. }
  38215. async function copyUsingWorkAround(text) {
  38216. let tmp = document3.createElement("TEXTAREA"), focus = document3.activeElement;
  38217. tmp.value = text, document3.body.appendChild(tmp), tmp.select(), document3.execCommand("copy"), document3.body.removeChild(tmp), focus.focus();
  38218. }
  38219. function createCopyToClipboardFunction() {
  38220. return globalWindow2.navigator?.clipboard ? copyUsingClipboardAPI : copyUsingWorkAround;
  38221. }
  38222. // src/components/index.ts
  38223. init_ActionBar();
  38224. // src/components/components/ActionList/ActionList.tsx
  38225. var import_react96 = __toESM(require_react(), 1);
  38226. init_polished_esm();
  38227. init_theming();
  38228. // src/components/components/Button/Button.tsx
  38229. var import_react94 = __toESM(require_react(), 1);
  38230. init_client_logger();
  38231. // ../../node_modules/@radix-ui/react-slot/dist/index.mjs
  38232. var React28 = __toESM(require_react(), 1);
  38233. // ../../node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
  38234. var React27 = __toESM(require_react(), 1);
  38235. function setRef2(ref, value) {
  38236. if (typeof ref == "function")
  38237. return ref(value);
  38238. ref != null && (ref.current = value);
  38239. }
  38240. function composeRefs2(...refs) {
  38241. return (node2) => {
  38242. let hasCleanup = !1, cleanups = refs.map((ref) => {
  38243. let cleanup = setRef2(ref, node2);
  38244. return !hasCleanup && typeof cleanup == "function" && (hasCleanup = !0), cleanup;
  38245. });
  38246. if (hasCleanup)
  38247. return () => {
  38248. for (let i = 0; i < cleanups.length; i++) {
  38249. let cleanup = cleanups[i];
  38250. typeof cleanup == "function" ? cleanup() : setRef2(refs[i], null);
  38251. }
  38252. };
  38253. };
  38254. }
  38255. // ../../node_modules/@radix-ui/react-slot/dist/index.mjs
  38256. var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1), REACT_LAZY_TYPE = Symbol.for("react.lazy"), use = React28[" use ".trim().toString()];
  38257. function isPromiseLike(value) {
  38258. return typeof value == "object" && value !== null && "then" in value;
  38259. }
  38260. function isLazyComponent(element) {
  38261. return element != null && typeof element == "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
  38262. }
  38263. function createSlot(ownerName) {
  38264. let SlotClone2 = createSlotClone(ownerName), Slot22 = React28.forwardRef((props, forwardedRef) => {
  38265. let { children, ...slotProps } = props;
  38266. isLazyComponent(children) && typeof use == "function" && (children = use(children._payload));
  38267. let childrenArray = React28.Children.toArray(children), slottable = childrenArray.find(isSlottable2);
  38268. if (slottable) {
  38269. let newElement = slottable.props.children, newChildren = childrenArray.map((child) => child === slottable ? React28.Children.count(newElement) > 1 ? React28.Children.only(null) : React28.isValidElement(newElement) ? newElement.props.children : null : child);
  38270. return (0, import_jsx_runtime6.jsx)(SlotClone2, { ...slotProps, ref: forwardedRef, children: React28.isValidElement(newElement) ? React28.cloneElement(newElement, void 0, newChildren) : null });
  38271. }
  38272. return (0, import_jsx_runtime6.jsx)(SlotClone2, { ...slotProps, ref: forwardedRef, children });
  38273. });
  38274. return Slot22.displayName = `${ownerName}.Slot`, Slot22;
  38275. }
  38276. var Slot2 = createSlot("Slot");
  38277. function createSlotClone(ownerName) {
  38278. let SlotClone2 = React28.forwardRef((props, forwardedRef) => {
  38279. let { children, ...slotProps } = props;
  38280. if (isLazyComponent(children) && typeof use == "function" && (children = use(children._payload)), React28.isValidElement(children)) {
  38281. let childrenRef = getElementRef3(children), props2 = mergeProps2(slotProps, children.props);
  38282. return children.type !== React28.Fragment && (props2.ref = forwardedRef ? composeRefs2(forwardedRef, childrenRef) : childrenRef), React28.cloneElement(children, props2);
  38283. }
  38284. return React28.Children.count(children) > 1 ? React28.Children.only(null) : null;
  38285. });
  38286. return SlotClone2.displayName = `${ownerName}.SlotClone`, SlotClone2;
  38287. }
  38288. var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
  38289. function createSlottable(ownerName) {
  38290. let Slottable22 = ({ children }) => (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children });
  38291. return Slottable22.displayName = `${ownerName}.Slottable`, Slottable22.__radixId = SLOTTABLE_IDENTIFIER, Slottable22;
  38292. }
  38293. var Slottable2 = createSlottable("Slottable");
  38294. function isSlottable2(child) {
  38295. return React28.isValidElement(child) && typeof child.type == "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
  38296. }
  38297. function mergeProps2(slotProps, childProps) {
  38298. let overrideProps = { ...childProps };
  38299. for (let propName in childProps) {
  38300. let slotPropValue = slotProps[propName], childPropValue = childProps[propName];
  38301. /^on[A-Z]/.test(propName) ? slotPropValue && childPropValue ? overrideProps[propName] = (...args) => {
  38302. let result = childPropValue(...args);
  38303. return slotPropValue(...args), result;
  38304. } : slotPropValue && (overrideProps[propName] = slotPropValue) : propName === "style" ? overrideProps[propName] = { ...slotPropValue, ...childPropValue } : propName === "className" && (overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" "));
  38305. }
  38306. return { ...slotProps, ...overrideProps };
  38307. }
  38308. function getElementRef3(element) {
  38309. let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
  38310. return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
  38311. }
  38312. // src/components/components/Button/Button.tsx
  38313. init_polished_esm();
  38314. // src/manager-api/index.ts
  38315. var manager_api_exports = {};
  38316. __export(manager_api_exports, {
  38317. ActiveTabs: () => ActiveTabs2,
  38318. Consumer: () => ManagerConsumer,
  38319. ManagerContext: () => ManagerContext,
  38320. Provider: () => ManagerProvider,
  38321. RequestResponseError: () => RequestResponseError,
  38322. Tag: () => Tag,
  38323. addons: () => addons,
  38324. combineParameters: () => combineParameters2,
  38325. controlOrMetaKey: () => controlOrMetaKey,
  38326. controlOrMetaSymbol: () => controlOrMetaSymbol,
  38327. eventMatchesShortcut: () => eventMatchesShortcut,
  38328. eventToShortcut: () => eventToShortcut,
  38329. experimental_MockUniversalStore: () => MockUniversalStore,
  38330. experimental_UniversalStore: () => UniversalStore,
  38331. experimental_getStatusStore: () => getStatusStoreByTypeId,
  38332. experimental_getTestProviderStore: () => getTestProviderStoreById,
  38333. experimental_requestResponse: () => experimental_requestResponse,
  38334. experimental_useStatusStore: () => useStatusStore,
  38335. experimental_useTestProviderStore: () => useTestProviderStore,
  38336. experimental_useUniversalStore: () => useUniversalStore,
  38337. internal_checklistStore: () => checklistStore,
  38338. internal_fullStatusStore: () => fullStatusStore,
  38339. internal_fullTestProviderStore: () => fullTestProviderStore,
  38340. internal_universalChecklistStore: () => universalChecklistStore,
  38341. internal_universalStatusStore: () => universalStatusStore,
  38342. internal_universalTestProviderStore: () => universalTestProviderStore,
  38343. isMacLike: () => isMacLike,
  38344. isShortcutTaken: () => isShortcutTaken,
  38345. keyToSymbol: () => keyToSymbol,
  38346. merge: () => merge_default,
  38347. mockChannel: () => mockChannel,
  38348. optionOrAltSymbol: () => optionOrAltSymbol,
  38349. shortcutMatchesShortcut: () => shortcutMatchesShortcut,
  38350. shortcutToAriaKeyshortcuts: () => shortcutToAriaKeyshortcuts,
  38351. shortcutToHumanString: () => shortcutToHumanString,
  38352. types: () => typesX,
  38353. useAddonState: () => useAddonState,
  38354. useArgTypes: () => useArgTypes,
  38355. useArgs: () => useArgs2,
  38356. useChannel: () => useChannel2,
  38357. useGlobalTypes: () => useGlobalTypes,
  38358. useGlobals: () => useGlobals2,
  38359. useParameter: () => useParameter2,
  38360. useSharedState: () => useSharedState,
  38361. useStoryPrepared: () => useStoryPrepared,
  38362. useStorybookApi: () => useStorybookApi,
  38363. useStorybookState: () => useStorybookState
  38364. });
  38365. // src/manager-api/root.tsx
  38366. var import_react23 = __toESM(require_react(), 1);
  38367. // ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
  38368. function isPlainObject(value) {
  38369. if (!value || typeof value != "object")
  38370. return !1;
  38371. let proto = Object.getPrototypeOf(value);
  38372. return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
  38373. }
  38374. // ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
  38375. function getSymbols(object) {
  38376. return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
  38377. }
  38378. // ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
  38379. function getTag(value) {
  38380. return value == null ? value === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value);
  38381. }
  38382. // ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
  38383. var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag2 = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", functionTag = "[object Function]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", errorTag = "[object Error]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", bigUint64ArrayTag = "[object BigUint64Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", bigInt64ArrayTag = "[object BigInt64Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
  38384. // ../../node_modules/es-toolkit/dist/compat/util/eq.mjs
  38385. function eq2(value, other) {
  38386. return value === other || Number.isNaN(value) && Number.isNaN(other);
  38387. }
  38388. // ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
  38389. function isEqualWith(a3, b, areValuesEqual) {
  38390. return isEqualWithImpl(a3, b, void 0, void 0, void 0, void 0, areValuesEqual);
  38391. }
  38392. function isEqualWithImpl(a3, b, property, aParent, bParent, stack, areValuesEqual) {
  38393. let result = areValuesEqual(a3, b, property, aParent, bParent, stack);
  38394. if (result !== void 0)
  38395. return result;
  38396. if (typeof a3 == typeof b)
  38397. switch (typeof a3) {
  38398. case "bigint":
  38399. case "string":
  38400. case "boolean":
  38401. case "symbol":
  38402. case "undefined":
  38403. return a3 === b;
  38404. case "number":
  38405. return a3 === b || Object.is(a3, b);
  38406. case "function":
  38407. return a3 === b;
  38408. case "object":
  38409. return areObjectsEqual(a3, b, stack, areValuesEqual);
  38410. }
  38411. return areObjectsEqual(a3, b, stack, areValuesEqual);
  38412. }
  38413. function areObjectsEqual(a3, b, stack, areValuesEqual) {
  38414. if (Object.is(a3, b))
  38415. return !0;
  38416. let aTag = getTag(a3), bTag = getTag(b);
  38417. if (aTag === argumentsTag && (aTag = objectTag), bTag === argumentsTag && (bTag = objectTag), aTag !== bTag)
  38418. return !1;
  38419. switch (aTag) {
  38420. case stringTag:
  38421. return a3.toString() === b.toString();
  38422. case numberTag: {
  38423. let x = a3.valueOf(), y = b.valueOf();
  38424. return eq2(x, y);
  38425. }
  38426. case booleanTag:
  38427. case dateTag:
  38428. case symbolTag2:
  38429. return Object.is(a3.valueOf(), b.valueOf());
  38430. case regexpTag:
  38431. return a3.source === b.source && a3.flags === b.flags;
  38432. case functionTag:
  38433. return a3 === b;
  38434. }
  38435. stack = stack ?? /* @__PURE__ */ new Map();
  38436. let aStack = stack.get(a3), bStack = stack.get(b);
  38437. if (aStack != null && bStack != null)
  38438. return aStack === b;
  38439. stack.set(a3, b), stack.set(b, a3);
  38440. try {
  38441. switch (aTag) {
  38442. case mapTag: {
  38443. if (a3.size !== b.size)
  38444. return !1;
  38445. for (let [key, value] of a3.entries())
  38446. if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a3, b, stack, areValuesEqual))
  38447. return !1;
  38448. return !0;
  38449. }
  38450. case setTag: {
  38451. if (a3.size !== b.size)
  38452. return !1;
  38453. let aValues = Array.from(a3.values()), bValues = Array.from(b.values());
  38454. for (let i = 0; i < aValues.length; i++) {
  38455. let aValue = aValues[i], index4 = bValues.findIndex((bValue) => isEqualWithImpl(aValue, bValue, void 0, a3, b, stack, areValuesEqual));
  38456. if (index4 === -1)
  38457. return !1;
  38458. bValues.splice(index4, 1);
  38459. }
  38460. return !0;
  38461. }
  38462. case arrayTag:
  38463. case uint8ArrayTag:
  38464. case uint8ClampedArrayTag:
  38465. case uint16ArrayTag:
  38466. case uint32ArrayTag:
  38467. case bigUint64ArrayTag:
  38468. case int8ArrayTag:
  38469. case int16ArrayTag:
  38470. case int32ArrayTag:
  38471. case bigInt64ArrayTag:
  38472. case float32ArrayTag:
  38473. case float64ArrayTag: {
  38474. if (typeof Buffer < "u" && Buffer.isBuffer(a3) !== Buffer.isBuffer(b) || a3.length !== b.length)
  38475. return !1;
  38476. for (let i = 0; i < a3.length; i++)
  38477. if (!isEqualWithImpl(a3[i], b[i], i, a3, b, stack, areValuesEqual))
  38478. return !1;
  38479. return !0;
  38480. }
  38481. case arrayBufferTag:
  38482. return a3.byteLength !== b.byteLength ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual);
  38483. case dataViewTag:
  38484. return a3.byteLength !== b.byteLength || a3.byteOffset !== b.byteOffset ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual);
  38485. case errorTag:
  38486. return a3.name === b.name && a3.message === b.message;
  38487. case objectTag: {
  38488. if (!(areObjectsEqual(a3.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a3) && isPlainObject(b)))
  38489. return !1;
  38490. let aKeys = [...Object.keys(a3), ...getSymbols(a3)], bKeys = [...Object.keys(b), ...getSymbols(b)];
  38491. if (aKeys.length !== bKeys.length)
  38492. return !1;
  38493. for (let i = 0; i < aKeys.length; i++) {
  38494. let propKey = aKeys[i], aProp = a3[propKey];
  38495. if (!Object.hasOwn(b, propKey))
  38496. return !1;
  38497. let bProp = b[propKey];
  38498. if (!isEqualWithImpl(aProp, bProp, propKey, a3, b, stack, areValuesEqual))
  38499. return !1;
  38500. }
  38501. return !0;
  38502. }
  38503. default:
  38504. return !1;
  38505. }
  38506. } finally {
  38507. stack.delete(a3), stack.delete(b);
  38508. }
  38509. }
  38510. // ../../node_modules/es-toolkit/dist/function/noop.mjs
  38511. function noop() {
  38512. }
  38513. // ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
  38514. function isEqual(a3, b) {
  38515. return isEqualWith(a3, b, noop);
  38516. }
  38517. // ../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
  38518. function isPrimitive(value) {
  38519. return value == null || typeof value != "object" && typeof value != "function";
  38520. }
  38521. // ../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
  38522. function isTypedArray(x) {
  38523. return ArrayBuffer.isView(x) && !(x instanceof DataView);
  38524. }
  38525. // src/manager-api/context.ts
  38526. var import_react19 = __toESM(require_react(), 1), createContext4 = ({ api, state: state3 }) => (0, import_react19.createContext)({ api, state: state3 });
  38527. // src/manager-api/lib/merge.ts
  38528. init_client_logger();
  38529. // ../../node_modules/es-toolkit/dist/object/clone.mjs
  38530. function clone(obj) {
  38531. if (isPrimitive(obj))
  38532. return obj;
  38533. if (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && obj instanceof SharedArrayBuffer)
  38534. return obj.slice(0);
  38535. let prototype = Object.getPrototypeOf(obj), Constructor = prototype.constructor;
  38536. if (obj instanceof Date || obj instanceof Map || obj instanceof Set)
  38537. return new Constructor(obj);
  38538. if (obj instanceof RegExp) {
  38539. let newRegExp = new Constructor(obj);
  38540. return newRegExp.lastIndex = obj.lastIndex, newRegExp;
  38541. }
  38542. if (obj instanceof DataView)
  38543. return new Constructor(obj.buffer.slice(0));
  38544. if (obj instanceof Error) {
  38545. let newError = new Constructor(obj.message);
  38546. return newError.stack = obj.stack, newError.name = obj.name, newError.cause = obj.cause, newError;
  38547. }
  38548. if (typeof File < "u" && obj instanceof File)
  38549. return new Constructor([obj], obj.name, { type: obj.type, lastModified: obj.lastModified });
  38550. if (typeof obj == "object") {
  38551. let newObject = Object.create(prototype);
  38552. return Object.assign(newObject, obj);
  38553. }
  38554. return obj;
  38555. }
  38556. // ../../node_modules/es-toolkit/dist/object/mapValues.mjs
  38557. function mapValues(object, getNewValue) {
  38558. let result = {}, keys3 = Object.keys(object);
  38559. for (let i = 0; i < keys3.length; i++) {
  38560. let key = keys3[i], value = object[key];
  38561. result[key] = getNewValue(value, key, object);
  38562. }
  38563. return result;
  38564. }
  38565. // ../../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
  38566. function isUnsafeProperty(key) {
  38567. return key === "__proto__";
  38568. }
  38569. // ../../node_modules/es-toolkit/dist/object/mergeWith.mjs
  38570. function mergeWith(target, source, merge3) {
  38571. let sourceKeys = Object.keys(source);
  38572. for (let i = 0; i < sourceKeys.length; i++) {
  38573. let key = sourceKeys[i];
  38574. if (isUnsafeProperty(key))
  38575. continue;
  38576. let sourceValue = source[key], targetValue = target[key], merged = merge3(targetValue, sourceValue, key, target, source);
  38577. merged !== void 0 ? target[key] = merged : Array.isArray(sourceValue) ? Array.isArray(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge3) : target[key] = mergeWith([], sourceValue, merge3) : isPlainObject(sourceValue) ? isPlainObject(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge3) : target[key] = mergeWith({}, sourceValue, merge3) : (targetValue === void 0 || sourceValue !== void 0) && (target[key] = sourceValue);
  38578. }
  38579. return target;
  38580. }
  38581. // ../../node_modules/es-toolkit/dist/object/omit.mjs
  38582. function omit(obj, keys3) {
  38583. let result = { ...obj };
  38584. for (let i = 0; i < keys3.length; i++) {
  38585. let key = keys3[i];
  38586. delete result[key];
  38587. }
  38588. return result;
  38589. }
  38590. // ../../node_modules/es-toolkit/dist/object/pick.mjs
  38591. function pick(obj, keys3) {
  38592. let result = {};
  38593. for (let i = 0; i < keys3.length; i++) {
  38594. let key = keys3[i];
  38595. Object.hasOwn(obj, key) && (result[key] = obj[key]);
  38596. }
  38597. return result;
  38598. }
  38599. // ../../node_modules/es-toolkit/dist/object/pickBy.mjs
  38600. function pickBy(obj, shouldPick) {
  38601. let result = {}, keys3 = Object.keys(obj);
  38602. for (let i = 0; i < keys3.length; i++) {
  38603. let key = keys3[i], value = obj[key];
  38604. shouldPick(value, key) && (result[key] = value);
  38605. }
  38606. return result;
  38607. }
  38608. // ../../node_modules/es-toolkit/dist/string/words.mjs
  38609. var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
  38610. // ../../node_modules/es-toolkit/dist/object/toMerged.mjs
  38611. function toMerged(target, source) {
  38612. return mergeWith(clone(target), source, function mergeRecursively(targetValue, sourceValue) {
  38613. if (Array.isArray(sourceValue))
  38614. return Array.isArray(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith([], sourceValue, mergeRecursively);
  38615. if (isPlainObject(sourceValue))
  38616. return isPlainObject(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith({}, sourceValue, mergeRecursively);
  38617. });
  38618. }
  38619. // src/manager-api/lib/merge.ts
  38620. var merge_default = (a3, ...b) => {
  38621. let target = {};
  38622. target = mergeWith(
  38623. {},
  38624. a3,
  38625. (objValue, srcValue) => {
  38626. if (Array.isArray(srcValue) && Array.isArray(objValue))
  38627. return srcValue.forEach((s3) => {
  38628. objValue.find((o) => o === s3 || isEqual(o, s3)) || objValue.push(s3);
  38629. }), objValue;
  38630. if (Array.isArray(objValue))
  38631. return logger.log(["the types mismatch, picking", objValue]), objValue;
  38632. }
  38633. );
  38634. for (let obj of b)
  38635. target = mergeWith(target, obj, (objValue, srcValue) => {
  38636. if (Array.isArray(srcValue) && Array.isArray(objValue))
  38637. return srcValue.forEach((s3) => {
  38638. objValue.find((o) => o === s3 || isEqual(o, s3)) || objValue.push(s3);
  38639. }), objValue;
  38640. if (Array.isArray(objValue))
  38641. return logger.log(["the types mismatch, picking", objValue]), objValue;
  38642. });
  38643. return target;
  38644. }, noArrayMerge = (a3, ...b) => {
  38645. let target = {};
  38646. target = mergeWith(
  38647. {},
  38648. a3,
  38649. (objValue, srcValue) => {
  38650. if (Array.isArray(srcValue))
  38651. return srcValue;
  38652. }
  38653. );
  38654. for (let obj of b)
  38655. target = mergeWith(target, obj, (objValue, srcValue) => {
  38656. if (Array.isArray(srcValue))
  38657. return srcValue;
  38658. });
  38659. return target;
  38660. };
  38661. // src/manager-api/initial-state.ts
  38662. var main = (...additions) => additions.reduce((acc, item) => merge_default(acc, item), {}), initial_state_default = main;
  38663. // src/manager-api/lib/addons.ts
  38664. init_client_logger();
  38665. // src/types/index.ts
  38666. var types_exports = {};
  38667. __export(types_exports, {
  38668. Addon_TypesEnum: () => Addon_TypesEnum,
  38669. CHANGE_DETECTION_STATUS_TYPE_ID: () => CHANGE_DETECTION_STATUS_TYPE_ID,
  38670. CoreWebpackCompiler: () => CoreWebpackCompiler,
  38671. Feature: () => Feature,
  38672. SupportedBuilder: () => SupportedBuilder,
  38673. SupportedFramework: () => SupportedFramework,
  38674. SupportedLanguage: () => SupportedLanguage,
  38675. SupportedRenderer: () => SupportedRenderer
  38676. });
  38677. // src/types/modules/addons.ts
  38678. var Addon_TypesEnum = /* @__PURE__ */ ((Addon_TypesEnum2) => (Addon_TypesEnum2.TAB = "tab", Addon_TypesEnum2.PANEL = "panel", Addon_TypesEnum2.TOOL = "tool", Addon_TypesEnum2.TOOLEXTRA = "toolextra", Addon_TypesEnum2.PREVIEW = "preview", Addon_TypesEnum2.experimental_PAGE = "page", Addon_TypesEnum2.experimental_TEST_PROVIDER = "test-provider", Addon_TypesEnum2))(Addon_TypesEnum || {});
  38679. // src/types/modules/frameworks.ts
  38680. var SupportedFramework = /* @__PURE__ */ ((SupportedFramework2) => (SupportedFramework2.ANGULAR = "angular", SupportedFramework2.EMBER = "ember", SupportedFramework2.HTML_VITE = "html-vite", SupportedFramework2.NEXTJS = "nextjs", SupportedFramework2.NEXTJS_VITE = "nextjs-vite", SupportedFramework2.PREACT_VITE = "preact-vite", SupportedFramework2.REACT_NATIVE_WEB_VITE = "react-native-web-vite", SupportedFramework2.REACT_VITE = "react-vite", SupportedFramework2.REACT_WEBPACK5 = "react-webpack5", SupportedFramework2.SERVER_WEBPACK5 = "server-webpack5", SupportedFramework2.SVELTE_VITE = "svelte-vite", SupportedFramework2.SVELTEKIT = "sveltekit", SupportedFramework2.TANSTACK_REACT = "tanstack-react", SupportedFramework2.VUE3_VITE = "vue3-vite", SupportedFramework2.WEB_COMPONENTS_VITE = "web-components-vite", SupportedFramework2.HTML_RSBUILD = "html-rsbuild", SupportedFramework2.NUXT = "nuxt", SupportedFramework2.QWIK = "qwik", SupportedFramework2.REACT_RSBUILD = "react-rsbuild", SupportedFramework2.SOLID = "solid", SupportedFramework2.VUE3_RSBUILD = "vue3-rsbuild", SupportedFramework2.WEB_COMPONENTS_RSBUILD = "web-components-rsbuild", SupportedFramework2))(SupportedFramework || {});
  38681. // src/types/modules/renderers.ts
  38682. var SupportedRenderer = /* @__PURE__ */ ((SupportedRenderer2) => (SupportedRenderer2.REACT = "react", SupportedRenderer2.REACT_NATIVE = "react-native", SupportedRenderer2.VUE3 = "vue3", SupportedRenderer2.ANGULAR = "angular", SupportedRenderer2.EMBER = "ember", SupportedRenderer2.PREACT = "preact", SupportedRenderer2.SVELTE = "svelte", SupportedRenderer2.QWIK = "qwik", SupportedRenderer2.HTML = "html", SupportedRenderer2.WEB_COMPONENTS = "web-components", SupportedRenderer2.SERVER = "server", SupportedRenderer2.SOLID = "solid", SupportedRenderer2.NUXT = "nuxt", SupportedRenderer2))(SupportedRenderer || {});
  38683. // src/manager-errors.ts
  38684. var manager_errors_exports = {};
  38685. __export(manager_errors_exports, {
  38686. Category: () => Category,
  38687. ProviderDoesNotExtendBaseProviderError: () => ProviderDoesNotExtendBaseProviderError,
  38688. StatusTypeIdMismatchError: () => StatusTypeIdMismatchError,
  38689. UncaughtManagerError: () => UncaughtManagerError
  38690. });
  38691. // src/storybook-error.ts
  38692. function parseErrorCode({
  38693. code,
  38694. category
  38695. }) {
  38696. let paddedCode = String(code).padStart(4, "0");
  38697. return `SB_${category}_${paddedCode}`;
  38698. }
  38699. function appendErrorRef(url) {
  38700. if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(url))
  38701. return url;
  38702. try {
  38703. let urlObj = new URL(url);
  38704. return urlObj.searchParams.set("ref", "error"), urlObj.toString();
  38705. } catch {
  38706. return url;
  38707. }
  38708. }
  38709. var StorybookError = class _StorybookError extends Error {
  38710. constructor(props) {
  38711. super(
  38712. _StorybookError.getFullMessage(props),
  38713. props.cause === void 0 ? void 0 : { cause: props.cause }
  38714. );
  38715. /**
  38716. * Data associated with the error. Used to provide additional information in the error message or
  38717. * to be passed to telemetry.
  38718. */
  38719. this.data = {};
  38720. /** Flag used to easily determine if the error originates from Storybook. */
  38721. this.fromStorybook = !0;
  38722. /**
  38723. * Flag used to determine if the error is handled by us and should therefore not be shown to the
  38724. * user.
  38725. */
  38726. this.isHandledError = !1;
  38727. /**
  38728. * A collection of sub errors which relate to a parent error.
  38729. *
  38730. * Sub-errors are used to represent multiple related errors that occurred together. When a
  38731. * StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
  38732. * are sent as separate telemetry events. This allows for better error tracking and debugging.
  38733. *
  38734. * @example
  38735. *
  38736. * ```ts
  38737. * const error1 = new SomeError();
  38738. * const error2 = new AnotherError();
  38739. * const parentError = new ParentError({
  38740. * // ... other props
  38741. * subErrors: [error1, error2],
  38742. * });
  38743. * ```
  38744. */
  38745. this.subErrors = [];
  38746. this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name, this.subErrors = props.subErrors ?? [];
  38747. }
  38748. get fullErrorCode() {
  38749. return parseErrorCode({ code: this.code, category: this.category });
  38750. }
  38751. /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
  38752. get name() {
  38753. let errorName = this._name || this.constructor.name;
  38754. return `${this.fullErrorCode} (${errorName})`;
  38755. }
  38756. set name(name) {
  38757. this._name = name;
  38758. }
  38759. /** Generates the error message along with additional documentation link (if applicable). */
  38760. static getFullMessage({
  38761. documentation,
  38762. code,
  38763. category,
  38764. message
  38765. }) {
  38766. let page;
  38767. return documentation === !0 ? page = `https://storybook.js.org/error/${parseErrorCode({ code, category })}?ref=error` : typeof documentation == "string" ? page = appendErrorRef(documentation) : Array.isArray(documentation) && (page = `
  38768. ${documentation.map((doc) => ` - ${appendErrorRef(doc)}`).join(`
  38769. `)}`), `${message}${page != null ? `
  38770. More info: ${page}
  38771. ` : ""}`;
  38772. }
  38773. };
  38774. // src/manager-errors.ts
  38775. var Category = /* @__PURE__ */ ((Category2) => (Category2.MANAGER_UNCAUGHT = "MANAGER_UNCAUGHT", Category2.MANAGER_UI = "MANAGER_UI", Category2.MANAGER_API = "MANAGER_API", Category2.MANAGER_CLIENT_LOGGER = "MANAGER_CLIENT-LOGGER", Category2.MANAGER_CHANNELS = "MANAGER_CHANNELS", Category2.MANAGER_CORE_EVENTS = "MANAGER_CORE-EVENTS", Category2.MANAGER_ROUTER = "MANAGER_ROUTER", Category2.MANAGER_THEMING = "MANAGER_THEMING", Category2))(Category || {}), ProviderDoesNotExtendBaseProviderError = class extends StorybookError {
  38776. constructor() {
  38777. super({
  38778. name: "ProviderDoesNotExtendBaseProviderError",
  38779. category: "MANAGER_UI" /* MANAGER_UI */,
  38780. code: 1,
  38781. message: "The Provider passed into Storybook's UI is not extended from the base Provider. Please check your Provider implementation."
  38782. });
  38783. }
  38784. }, UncaughtManagerError = class extends StorybookError {
  38785. constructor(data) {
  38786. super({
  38787. name: "UncaughtManagerError",
  38788. category: "MANAGER_UNCAUGHT" /* MANAGER_UNCAUGHT */,
  38789. code: 1,
  38790. message: data.error.message
  38791. });
  38792. this.data = data;
  38793. this.stack = data.error.stack;
  38794. }
  38795. }, StatusTypeIdMismatchError = class extends StorybookError {
  38796. constructor(data) {
  38797. super({
  38798. name: "StatusTypeIdMismatchError",
  38799. category: "MANAGER_API" /* MANAGER_API */,
  38800. code: 1,
  38801. message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
  38802. data.status,
  38803. null,
  38804. 2
  38805. )}`
  38806. });
  38807. this.data = data;
  38808. }
  38809. };
  38810. // src/preview-errors.ts
  38811. init_esm();
  38812. var StatusTypeIdMismatchError2 = class extends StorybookError {
  38813. constructor(data) {
  38814. super({
  38815. name: "StatusTypeIdMismatchError",
  38816. category: "PREVIEW_API" /* PREVIEW_API */,
  38817. code: 16,
  38818. message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
  38819. data.status,
  38820. null,
  38821. 2
  38822. )}`
  38823. });
  38824. this.data = data;
  38825. }
  38826. };
  38827. // src/server-errors.ts
  38828. var import_picocolors = __toESM(require_picocolors_browser(), 1);
  38829. init_esm();
  38830. var StatusTypeIdMismatchError3 = class extends StorybookError {
  38831. constructor(data) {
  38832. super({
  38833. name: "StatusTypeIdMismatchError",
  38834. category: "CORE-SERVER" /* CORE_SERVER */,
  38835. code: 16,
  38836. message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
  38837. data.status,
  38838. null,
  38839. 2
  38840. )}`
  38841. });
  38842. this.data = data;
  38843. }
  38844. };
  38845. // src/shared/status-store/index.ts
  38846. var STATUS_VALUE_PREFIX = "status-value:", STATUS_VALUES = [
  38847. "status-value:pending",
  38848. "status-value:success",
  38849. "status-value:new",
  38850. "status-value:modified",
  38851. "status-value:affected",
  38852. "status-value:warning",
  38853. "status-value:error",
  38854. "status-value:unknown"
  38855. ], toStatusValue = (shortName) => {
  38856. if (shortName === "related") return "status-value:affected";
  38857. let candidate = `${STATUS_VALUE_PREFIX}${shortName}`;
  38858. return STATUS_VALUES.includes(candidate) ? candidate : void 0;
  38859. }, statusValueShortName = (value) => value === "status-value:affected" ? "related" : value.slice(STATUS_VALUE_PREFIX.length);
  38860. var CHANGE_DETECTION_STATUS_TYPE_ID = "storybook/change-detection", UNIVERSAL_STATUS_STORE_OPTIONS = {
  38861. id: "storybook/status",
  38862. leader: !0,
  38863. initialState: {}
  38864. }, StatusStoreEventType = {
  38865. SELECT: "select"
  38866. };
  38867. function countStatusesByValue(allStatuses) {
  38868. let counts = {};
  38869. for (let statusByTypeId of Object.values(allStatuses))
  38870. for (let status of Object.values(statusByTypeId))
  38871. counts[status.value] = (counts[status.value] ?? 0) + 1;
  38872. return counts;
  38873. }
  38874. function createStatusStore({
  38875. universalStatusStore: universalStatusStore2,
  38876. useUniversalStore: useUniversalStore2,
  38877. environment
  38878. }) {
  38879. let fullStatusStore2 = {
  38880. getAll() {
  38881. return universalStatusStore2.getState();
  38882. },
  38883. set(statuses) {
  38884. universalStatusStore2.setState((state3) => {
  38885. let newState = { ...state3 };
  38886. for (let status of statuses) {
  38887. let { storyId, typeId } = status;
  38888. newState[storyId] = { ...newState[storyId] ?? {}, [typeId]: status };
  38889. }
  38890. return newState;
  38891. });
  38892. },
  38893. onAllStatusChange(listener) {
  38894. return universalStatusStore2.onStateChange((state3, prevState) => {
  38895. listener(state3, prevState);
  38896. });
  38897. },
  38898. onSelect(listener) {
  38899. return universalStatusStore2.subscribe(StatusStoreEventType.SELECT, (event) => {
  38900. listener(event.payload);
  38901. });
  38902. },
  38903. selectStatuses: (statuses) => {
  38904. universalStatusStore2.send({ type: StatusStoreEventType.SELECT, payload: statuses });
  38905. },
  38906. unset(storyIds) {
  38907. if (!storyIds) {
  38908. universalStatusStore2.setState({});
  38909. return;
  38910. }
  38911. universalStatusStore2.setState((state3) => {
  38912. let newState = { ...state3 };
  38913. for (let storyId of storyIds)
  38914. delete newState[storyId];
  38915. return newState;
  38916. });
  38917. },
  38918. typeId: void 0
  38919. }, getStatusStoreByTypeId2 = (typeId) => ({
  38920. getAll: fullStatusStore2.getAll,
  38921. set(statuses) {
  38922. universalStatusStore2.setState((state3) => {
  38923. let newState = { ...state3 };
  38924. for (let status of statuses) {
  38925. let { storyId } = status;
  38926. if (status.typeId !== typeId)
  38927. switch (environment) {
  38928. case "server":
  38929. throw new StatusTypeIdMismatchError3({
  38930. status,
  38931. typeId
  38932. });
  38933. case "manager":
  38934. throw new StatusTypeIdMismatchError({
  38935. status,
  38936. typeId
  38937. });
  38938. case "preview":
  38939. default:
  38940. throw new StatusTypeIdMismatchError2({
  38941. status,
  38942. typeId
  38943. });
  38944. }
  38945. newState[storyId] = { ...newState[storyId] ?? {}, [typeId]: status };
  38946. }
  38947. return newState;
  38948. });
  38949. },
  38950. onAllStatusChange: fullStatusStore2.onAllStatusChange,
  38951. onSelect(listener) {
  38952. return universalStatusStore2.subscribe(StatusStoreEventType.SELECT, (event) => {
  38953. event.payload.some((status) => status.typeId === typeId) && listener(event.payload);
  38954. });
  38955. },
  38956. unset(storyIds) {
  38957. universalStatusStore2.setState((state3) => {
  38958. let newState = { ...state3 };
  38959. for (let storyId in newState)
  38960. if (newState[storyId]?.[typeId] && (!storyIds || storyIds?.includes(storyId))) {
  38961. let { [typeId]: omittedStatus, ...storyStatusesWithoutTypeId } = newState[storyId];
  38962. newState[storyId] = storyStatusesWithoutTypeId;
  38963. }
  38964. return newState;
  38965. });
  38966. },
  38967. typeId
  38968. });
  38969. return useUniversalStore2 ? {
  38970. getStatusStoreByTypeId: getStatusStoreByTypeId2,
  38971. fullStatusStore: fullStatusStore2,
  38972. universalStatusStore: universalStatusStore2,
  38973. useStatusStore: (selector) => useUniversalStore2(universalStatusStore2, selector)[0]
  38974. } : { getStatusStoreByTypeId: getStatusStoreByTypeId2, fullStatusStore: fullStatusStore2, universalStatusStore: universalStatusStore2 };
  38975. }
  38976. // src/types/modules/webpack.ts
  38977. var CoreWebpackCompiler = /* @__PURE__ */ ((CoreWebpackCompiler2) => (CoreWebpackCompiler2.Babel = "babel", CoreWebpackCompiler2.SWC = "swc", CoreWebpackCompiler2))(CoreWebpackCompiler || {});
  38978. // src/types/modules/builders.ts
  38979. var SupportedBuilder = /* @__PURE__ */ ((SupportedBuilder2) => (SupportedBuilder2.WEBPACK5 = "webpack5", SupportedBuilder2.VITE = "vite", SupportedBuilder2.RSBUILD = "rsbuild", SupportedBuilder2))(SupportedBuilder || {});
  38980. // src/types/modules/features.ts
  38981. var Feature = /* @__PURE__ */ ((Feature2) => (Feature2.DOCS = "docs", Feature2.TEST = "test", Feature2.ONBOARDING = "onboarding", Feature2.A11Y = "a11y", Feature2.AI = "ai", Feature2))(Feature || {});
  38982. // src/types/modules/languages.ts
  38983. var SupportedLanguage = /* @__PURE__ */ ((SupportedLanguage2) => (SupportedLanguage2.JAVASCRIPT = "javascript", SupportedLanguage2.TYPESCRIPT = "typescript", SupportedLanguage2))(SupportedLanguage || {});
  38984. // src/manager-api/lib/addons.ts
  38985. init_dist();
  38986. // src/manager-api/lib/storybook-channel-mock.ts
  38987. function mockChannel() {
  38988. let transport = {
  38989. setHandler: () => {
  38990. },
  38991. send: () => {
  38992. }
  38993. };
  38994. return new Channel({ transport });
  38995. }
  38996. // src/manager-api/lib/addons.ts
  38997. var AddonStore = class {
  38998. constructor() {
  38999. this.loaders = {};
  39000. this.elements = {};
  39001. this.config = {};
  39002. this.getChannel = () => (this.channel || this.setChannel(mockChannel()), this.channel);
  39003. this.ready = () => this.promise;
  39004. this.hasChannel = () => !!this.channel;
  39005. this.setChannel = (channel) => {
  39006. this.channel = channel, this.resolve();
  39007. };
  39008. this.setConfig = (value) => {
  39009. Object.assign(this.config, value), this.hasChannel() ? this.getChannel().emit(SET_CONFIG, this.config) : this.ready().then((channel) => {
  39010. channel.emit(SET_CONFIG, this.config);
  39011. });
  39012. };
  39013. this.getConfig = () => this.config;
  39014. /**
  39015. * Registers an addon loader function.
  39016. *
  39017. * @param {string} id - The id of the addon loader.
  39018. * @param {(api: API) => void} callback - The function that will be called to register the addon.
  39019. * @returns {void}
  39020. */
  39021. this.register = (id, callback) => {
  39022. this.loaders[id] && logger.warn(`${id} was loaded twice, this could have bad side-effects`), this.loaders[id] = callback;
  39023. };
  39024. this.loadAddons = (api) => {
  39025. Object.values(this.loaders).forEach((value) => value(api));
  39026. };
  39027. this.promise = new Promise((res) => {
  39028. this.resolve = () => res(this.getChannel());
  39029. });
  39030. }
  39031. getElements(type5) {
  39032. return this.elements[type5] || (this.elements[type5] = {}), this.elements[type5];
  39033. }
  39034. /**
  39035. * Adds an addon to the addon store.
  39036. *
  39037. * @param {string} id - The id of the addon.
  39038. * @param {Addon_Type} addon - The addon to add.
  39039. * @returns {void}
  39040. */
  39041. add(id, addon) {
  39042. let { type: type5 } = addon, collection = this.getElements(type5);
  39043. collection[id] = { ...addon, id };
  39044. }
  39045. experimental_getRegisteredAddons(type5) {
  39046. return Object.keys(type5 ? this.getElements(type5) : this.loaders);
  39047. }
  39048. }, KEY2 = "__STORYBOOK_ADDONS_MANAGER";
  39049. function getAddonsStore() {
  39050. return scope[KEY2] || (scope[KEY2] = new AddonStore()), scope[KEY2];
  39051. }
  39052. var addons = getAddonsStore();
  39053. // src/manager-api/modules/addons.ts
  39054. var addons_exports = {};
  39055. __export(addons_exports, {
  39056. ensurePanel: () => ensurePanel,
  39057. init: () => init
  39058. });
  39059. init_client_logger();
  39060. function ensurePanel(panels, selectedPanel, currentPanel) {
  39061. let keys3 = Object.keys(panels ?? {});
  39062. return keys3.indexOf(selectedPanel) >= 0 ? selectedPanel : keys3.length ? keys3[0] : currentPanel;
  39063. }
  39064. var init = ({ provider, store: store2, fullAPI }) => {
  39065. let api = {
  39066. getElements: (type5) => provider.getElements(type5),
  39067. clearStatuses: () => {
  39068. let testProviders = api.getElements("test-provider" /* experimental_TEST_PROVIDER */);
  39069. Object.values(testProviders).forEach((testProvider) => {
  39070. try {
  39071. testProvider.clear?.();
  39072. } catch (e) {
  39073. try {
  39074. logger.warn(`Failed to clear test provider "${testProvider.id}":`, e);
  39075. } catch {
  39076. }
  39077. }
  39078. });
  39079. },
  39080. getSelectedPanel: () => {
  39081. let { selectedPanel } = store2.getState();
  39082. return ensurePanel(api.getElements("panel" /* PANEL */), selectedPanel, selectedPanel);
  39083. },
  39084. setSelectedPanel: (panelName) => {
  39085. store2.setState({ selectedPanel: panelName }, { persistence: "session" });
  39086. },
  39087. setAddonState(addonId, newStateOrMerger, options) {
  39088. let merger = typeof newStateOrMerger == "function" ? newStateOrMerger : () => newStateOrMerger;
  39089. return store2.setState(
  39090. (s3) => ({ ...s3, addons: { ...s3.addons, [addonId]: merger(s3.addons[addonId]) } }),
  39091. options
  39092. ).then(() => api.getAddonState(addonId));
  39093. },
  39094. getAddonState: (addonId) => store2.getState().addons[addonId] || globalThis?.STORYBOOK_ADDON_STATE[addonId]
  39095. };
  39096. return {
  39097. api,
  39098. state: {
  39099. selectedPanel: ensurePanel(
  39100. api.getElements("panel" /* PANEL */),
  39101. store2.getState().selectedPanel
  39102. ),
  39103. addons: {}
  39104. }
  39105. };
  39106. };
  39107. // src/manager-api/modules/channel.ts
  39108. var channel_exports = {};
  39109. __export(channel_exports, {
  39110. init: () => init2
  39111. });
  39112. var init2 = ({ provider }) => ({ api: {
  39113. getChannel: () => provider.channel,
  39114. on: (type5, handler) => (provider.channel?.on(type5, handler), () => provider.channel?.off(type5, handler)),
  39115. off: (type5, handler) => provider.channel?.off(type5, handler),
  39116. once: (type5, handler) => provider.channel?.once(type5, handler),
  39117. emit: (type5, data, ...args) => {
  39118. data?.options?.target && data.options.target !== "storybook-preview-iframe" && !data.options.target.startsWith("storybook-ref-") && (data.options.target = data.options.target !== "storybook_internal" ? `storybook-ref-${data.options.target}` : "storybook-preview-iframe"), provider.channel?.emit(type5, data, ...args);
  39119. }
  39120. }, state: {} });
  39121. // src/manager-api/modules/globals.ts
  39122. var globals_exports = {};
  39123. __export(globals_exports, {
  39124. init: () => init5
  39125. });
  39126. init_client_logger();
  39127. // ../../node_modules/dequal/dist/index.mjs
  39128. var has = Object.prototype.hasOwnProperty;
  39129. function find(iter, tar, key) {
  39130. for (key of iter.keys())
  39131. if (dequal(key, tar)) return key;
  39132. }
  39133. function dequal(foo, bar) {
  39134. var ctor, len, tmp;
  39135. if (foo === bar) return !0;
  39136. if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
  39137. if (ctor === Date) return foo.getTime() === bar.getTime();
  39138. if (ctor === RegExp) return foo.toString() === bar.toString();
  39139. if (ctor === Array) {
  39140. if ((len = foo.length) === bar.length)
  39141. for (; len-- && dequal(foo[len], bar[len]); ) ;
  39142. return len === -1;
  39143. }
  39144. if (ctor === Set) {
  39145. if (foo.size !== bar.size)
  39146. return !1;
  39147. for (len of foo)
  39148. if (tmp = len, tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !bar.has(tmp)) return !1;
  39149. return !0;
  39150. }
  39151. if (ctor === Map) {
  39152. if (foo.size !== bar.size)
  39153. return !1;
  39154. for (len of foo)
  39155. if (tmp = len[0], tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !dequal(len[1], bar.get(tmp)))
  39156. return !1;
  39157. return !0;
  39158. }
  39159. if (ctor === ArrayBuffer)
  39160. foo = new Uint8Array(foo), bar = new Uint8Array(bar);
  39161. else if (ctor === DataView) {
  39162. if ((len = foo.byteLength) === bar.byteLength)
  39163. for (; len-- && foo.getInt8(len) === bar.getInt8(len); ) ;
  39164. return len === -1;
  39165. }
  39166. if (ArrayBuffer.isView(foo)) {
  39167. if ((len = foo.byteLength) === bar.byteLength)
  39168. for (; len-- && foo[len] === bar[len]; ) ;
  39169. return len === -1;
  39170. }
  39171. if (!ctor || typeof foo == "object") {
  39172. len = 0;
  39173. for (ctor in foo)
  39174. if (has.call(foo, ctor) && ++len && !has.call(bar, ctor) || !(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return !1;
  39175. return Object.keys(bar).length === len;
  39176. }
  39177. }
  39178. return foo !== foo && bar !== bar;
  39179. }
  39180. // src/manager-api/lib/events.ts
  39181. init_client_logger();
  39182. // src/manager-api/modules/refs.ts
  39183. var refs_exports = {};
  39184. __export(refs_exports, {
  39185. defaultStoryMapper: () => defaultStoryMapper,
  39186. getSourceType: () => getSourceType,
  39187. init: () => init4
  39188. });
  39189. init_dist();
  39190. init_esm();
  39191. // src/csf/includeConditionalArg.ts
  39192. var import_tiny_isequal = __toESM(require_tiny_isequal(), 1);
  39193. // src/preview-api/modules/addons/main.ts
  39194. init_dist();
  39195. // src/preview-api/modules/addons/storybook-channel-mock.ts
  39196. function mockChannel2() {
  39197. let transport = {
  39198. setHandler: () => {
  39199. },
  39200. send: () => {
  39201. }
  39202. };
  39203. return new Channel({ transport });
  39204. }
  39205. // src/preview-api/modules/addons/main.ts
  39206. var AddonStore2 = class {
  39207. constructor() {
  39208. this.getChannel = () => {
  39209. if (!this.channel) {
  39210. let channel = mockChannel2();
  39211. return this.setChannel(channel), channel;
  39212. }
  39213. return this.channel;
  39214. };
  39215. this.ready = () => this.promise;
  39216. this.hasChannel = () => !!this.channel;
  39217. this.setChannel = (channel) => {
  39218. this.channel = channel, this.resolve();
  39219. };
  39220. this.promise = new Promise((res) => {
  39221. this.resolve = () => res(this.getChannel());
  39222. });
  39223. }
  39224. }, KEY3 = "__STORYBOOK_ADDONS_PREVIEW";
  39225. function getAddonsStore2() {
  39226. return scope[KEY3] || (scope[KEY3] = new AddonStore2()), scope[KEY3];
  39227. }
  39228. var addons2 = getAddonsStore2();
  39229. // src/preview-api/modules/addons/hooks.ts
  39230. init_client_logger();
  39231. init_dist();
  39232. var areDepsEqual = (deps, nextDeps) => deps.length === nextDeps.length && deps.every((dep, i) => dep === nextDeps[i]), invalidHooksError = () => new Error(
  39233. `Storybook preview hooks can only be called inside decorators and story functions.
  39234. When combining Storybook hooks (e.g. useArgs) with framework hooks (e.g. React's useState, useEffect, useRef) in the same render function, use Storybook's equivalents from 'storybook/preview-api' instead: useState, useEffect, useRef, useMemo, useCallback, useReducer.`
  39235. );
  39236. function getHooksContextOrNull() {
  39237. return scope.STORYBOOK_HOOKS_CONTEXT || null;
  39238. }
  39239. function getHooksContextOrThrow() {
  39240. let hooks = getHooksContextOrNull();
  39241. if (hooks == null)
  39242. throw invalidHooksError();
  39243. return hooks;
  39244. }
  39245. function useHook(name, callback, deps) {
  39246. let hooks = getHooksContextOrThrow();
  39247. if (hooks.currentPhase === "MOUNT") {
  39248. deps != null && !Array.isArray(deps) && logger.warn(
  39249. `${name} received a final argument that is not an array (instead, received ${deps}). When specified, the final argument must be an array.`
  39250. );
  39251. let hook = { name, deps };
  39252. return hooks.currentHooks.push(hook), callback(hook), hook;
  39253. }
  39254. if (hooks.currentPhase === "UPDATE") {
  39255. let hook = hooks.getNextHook();
  39256. if (hook == null)
  39257. throw new Error("Rendered more hooks than during the previous render.");
  39258. return hook.name !== name && logger.warn(
  39259. `Storybook has detected a change in the order of Hooks${hooks.currentDecoratorName ? ` called by ${hooks.currentDecoratorName}` : ""}. This will lead to bugs and errors if not fixed.`
  39260. ), deps != null && hook.deps == null && logger.warn(
  39261. `${name} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`
  39262. ), deps != null && hook.deps != null && deps.length !== hook.deps.length && logger.warn(`The final argument passed to ${name} changed size between renders. The order and size of this array must remain constant.
  39263. Previous: ${hook.deps}
  39264. Incoming: ${deps}`), (deps == null || hook.deps == null || !areDepsEqual(deps, hook.deps)) && (callback(hook), hook.deps = deps), hook;
  39265. }
  39266. throw invalidHooksError();
  39267. }
  39268. function useMemoLike(name, nextCreate, deps) {
  39269. let { memoizedState } = useHook(
  39270. name,
  39271. (hook) => {
  39272. hook.memoizedState = nextCreate();
  39273. },
  39274. deps
  39275. );
  39276. return memoizedState;
  39277. }
  39278. function useMemo4(nextCreate, deps) {
  39279. return useMemoLike("useMemo", nextCreate, deps);
  39280. }
  39281. function useEffect6(create4, deps) {
  39282. let hooks = getHooksContextOrThrow(), effect4 = useMemoLike("useEffect", () => ({ create: create4 }), deps);
  39283. hooks.currentEffects.includes(effect4) || hooks.currentEffects.push(effect4);
  39284. }
  39285. // src/preview-api/modules/store/StoryStore.ts
  39286. var import_memoizerific5 = __toESM(require_memoizerific(), 1);
  39287. // src/preview-api/modules/store/args.ts
  39288. init_client_logger();
  39289. init_esm();
  39290. var INCOMPATIBLE = Symbol("incompatible");
  39291. var DEEPLY_EQUAL = Symbol("Deeply equal");
  39292. // src/preview-api/modules/store/GlobalsStore.ts
  39293. init_client_logger();
  39294. // src/preview-api/modules/store/StoryIndexStore.ts
  39295. var import_memoizerific4 = __toESM(require_memoizerific(), 1), getImportPathMap = (0, import_memoizerific4.default)(1)(
  39296. (entries) => Object.values(entries).reduce(
  39297. (acc, entry) => (acc[entry.importPath] = acc[entry.importPath] || entry, acc),
  39298. {}
  39299. )
  39300. );
  39301. // src/preview-api/modules/store/csf/normalizeStory.ts
  39302. init_client_logger();
  39303. init_esm();
  39304. var deprecatedStoryAnnotation = dedent`
  39305. CSF .story annotations deprecated; annotate story functions directly:
  39306. - StoryFn.story.name => StoryFn.storyName
  39307. - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
  39308. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
  39309. `;
  39310. // src/preview-api/modules/store/csf/processCSFFile.ts
  39311. init_client_logger();
  39312. // src/preview-api/modules/store/csf/prepareStory.ts
  39313. init_dist();
  39314. init_dist();
  39315. // src/shared/constants/tags.ts
  39316. var Tag = {
  39317. /** Indicates that autodocs should be generated for this component */
  39318. AUTODOCS: "autodocs",
  39319. /** MDX documentation attached to a component's stories file */
  39320. ATTACHED_MDX: "attached-mdx",
  39321. /** Standalone MDX documentation not attached to stories */
  39322. UNATTACHED_MDX: "unattached-mdx",
  39323. /** Story has a play function */
  39324. PLAY_FN: "play-fn",
  39325. /** Story has a test function */
  39326. TEST_FN: "test-fn",
  39327. /** Development environment tag */
  39328. DEV: "dev",
  39329. /** Test environment tag */
  39330. TEST: "test",
  39331. /** Manifest generation tag */
  39332. MANIFEST: "manifest"
  39333. }, BUILT_IN_FILTERS = {
  39334. _docs: (entry, excluded) => excluded ? entry.type !== "docs" : entry.type === "docs",
  39335. _play: (entry, excluded) => excluded ? entry.type !== "story" || !entry.tags?.includes(Tag.PLAY_FN) : entry.type === "story" && !!entry.tags?.includes(Tag.PLAY_FN),
  39336. _test: (entry, excluded) => excluded ? entry.type !== "story" || entry.subtype !== "test" : entry.type === "story" && entry.subtype === "test"
  39337. }, USER_TAG_FILTER = (tag) => (entry, excluded) => excluded ? !entry.tags?.includes(tag) : !!entry.tags?.includes(tag);
  39338. // src/preview-api/modules/store/parameters.ts
  39339. var combineParameters = (...parameterSets) => {
  39340. let mergeKeys = {}, definedParametersSets = parameterSets.filter(Boolean), combined = definedParametersSets.reduce((acc, parameters2) => (Object.entries(parameters2).forEach(([key, value]) => {
  39341. let existing = acc[key];
  39342. Array.isArray(value) || typeof existing > "u" ? acc[key] = value : isPlainObject(value) && isPlainObject(existing) ? mergeKeys[key] = !0 : typeof value < "u" && (acc[key] = value);
  39343. }), acc), {});
  39344. return Object.keys(mergeKeys).forEach((key) => {
  39345. let mergeValues = definedParametersSets.filter(Boolean).map((p3) => p3[key]).filter((value) => typeof value < "u");
  39346. mergeValues.every((value) => isPlainObject(value)) ? combined[key] = combineParameters(...mergeValues) : combined[key] = mergeValues[mergeValues.length - 1];
  39347. }), combined;
  39348. };
  39349. // src/preview-api/modules/store/inferArgTypes.ts
  39350. init_client_logger();
  39351. init_esm();
  39352. var inferType = (value, name, visited, cache) => {
  39353. let type5 = typeof value;
  39354. switch (type5) {
  39355. case "boolean":
  39356. case "string":
  39357. case "number":
  39358. case "function":
  39359. case "symbol":
  39360. return { name: type5 };
  39361. default:
  39362. break;
  39363. }
  39364. if (value) {
  39365. if (cache.has(value))
  39366. return cache.get(value);
  39367. if (visited.has(value))
  39368. return logger.warn(dedent`
  39369. We've detected a cycle in arg '${name}'. Args should be JSON-serializable.
  39370. Consider using the mapping feature or fully custom args:
  39371. - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
  39372. - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
  39373. `), { name: "other", value: "cyclic object" };
  39374. visited.add(value);
  39375. let result;
  39376. return Array.isArray(value) ? result = { name: "array", value: value.length > 0 ? inferType(value[0], name, visited, cache) : { name: "other", value: "unknown" } } : result = { name: "object", value: mapValues(value, (field) => inferType(field, name, visited, cache)) }, visited.delete(value), cache.set(value, result), result;
  39377. }
  39378. return { name: "object", value: {} };
  39379. }, inferArgTypes = (context) => {
  39380. let { id, argTypes: userArgTypes = {}, initialArgs = {} } = context, cache = /* @__PURE__ */ new Map(), argTypes = mapValues(initialArgs, (arg, key) => ({
  39381. name: key,
  39382. type: inferType(arg, `${id}.${key}`, /* @__PURE__ */ new Set(), cache)
  39383. })), userArgTypesNames = mapValues(userArgTypes, (argType, key) => ({
  39384. name: key
  39385. }));
  39386. return combineParameters(argTypes, userArgTypesNames, userArgTypes);
  39387. };
  39388. inferArgTypes.secondPass = !0;
  39389. // src/preview-api/modules/store/inferControls.ts
  39390. init_client_logger();
  39391. // src/preview-api/modules/store/filterArgTypes.ts
  39392. var matches = (name, descriptor) => Array.isArray(descriptor) ? descriptor.includes(name) : name.match(descriptor), filterArgTypes = (argTypes, include2, exclude) => !include2 && !exclude ? argTypes : argTypes && pickBy(argTypes, (argType, key) => {
  39393. let name = argType.name || key.toString();
  39394. return !!(!include2 || matches(name, include2)) && (!exclude || !matches(name, exclude));
  39395. });
  39396. // src/preview-api/modules/store/inferControls.ts
  39397. var inferControl = (argType, name, matchers) => {
  39398. let { type: type5, options } = argType;
  39399. if (type5) {
  39400. if (matchers.color && matchers.color.test(name)) {
  39401. let controlType = type5.name;
  39402. if (controlType === "string")
  39403. return { control: { type: "color" } };
  39404. controlType !== "enum" && logger.warn(
  39405. `Addon controls: Control of type color only supports string, received "${controlType}" instead`
  39406. );
  39407. }
  39408. if (matchers.date && matchers.date.test(name))
  39409. return { control: { type: "date" } };
  39410. switch (type5.name) {
  39411. case "array":
  39412. return { control: { type: "object" } };
  39413. case "boolean":
  39414. return { control: { type: "boolean" } };
  39415. case "string":
  39416. return { control: { type: "text" } };
  39417. case "number":
  39418. return { control: { type: "number" } };
  39419. case "enum": {
  39420. let { value } = type5;
  39421. return { control: { type: value?.length <= 5 ? "radio" : "select" }, options: value };
  39422. }
  39423. case "function":
  39424. case "symbol":
  39425. return null;
  39426. default:
  39427. return { control: { type: options ? "select" : "object" } };
  39428. }
  39429. }
  39430. }, inferControls = (context) => {
  39431. let {
  39432. argTypes,
  39433. parameters: { __isArgsStory, controls: { include: include2 = null, exclude = null, matchers = {} } = {} }
  39434. } = context;
  39435. if (!__isArgsStory)
  39436. return argTypes;
  39437. let filteredArgTypes = filterArgTypes(argTypes, include2, exclude), withControls = mapValues(filteredArgTypes, (argType, name) => argType?.type && inferControl(argType, name.toString(), matchers));
  39438. return combineParameters(withControls, filteredArgTypes);
  39439. };
  39440. inferControls.secondPass = !0;
  39441. // src/preview-api/modules/store/csf/composeConfigs.ts
  39442. init_dist();
  39443. // src/preview-api/modules/store/csf/portable-stories.ts
  39444. init_esm();
  39445. // src/preview-api/modules/preview-web/render/animation-utils.ts
  39446. function isTestEnvironment() {
  39447. try {
  39448. return (
  39449. // @ts-expect-error This property exists in Vitest browser mode
  39450. !!globalThis.__vitest_browser__ || !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)
  39451. );
  39452. } catch {
  39453. return !1;
  39454. }
  39455. }
  39456. // src/preview-api/modules/store/autoTitle.ts
  39457. init_client_logger();
  39458. init_esm();
  39459. // src/preview-api/modules/store/sortStories.ts
  39460. init_esm();
  39461. // src/preview-api/modules/preview-web/Preview.tsx
  39462. init_client_logger();
  39463. init_dist();
  39464. // src/preview-api/modules/preview-web/render/Render.ts
  39465. var PREPARE_ABORTED = new Error("prepareAborted");
  39466. // src/preview-api/modules/preview-web/render/StoryRender.ts
  39467. var { AbortController: AbortController2 } = globalThis;
  39468. // src/preview-api/modules/preview-web/Preview.tsx
  39469. var { fetch } = scope;
  39470. // src/preview-api/modules/preview-web/PreviewWeb.tsx
  39471. init_dist();
  39472. // src/preview-api/modules/preview-web/PreviewWithSelection.tsx
  39473. init_client_logger();
  39474. // src/preview-api/modules/preview-web/docs-context/DocsContext.ts
  39475. init_esm();
  39476. // src/preview-api/modules/preview-web/UrlStore.ts
  39477. init_dist();
  39478. var import_picoquery2 = __toESM(require_main(), 1);
  39479. // src/preview-api/modules/preview-web/parseArgsParam.ts
  39480. init_client_logger();
  39481. var import_picoquery = __toESM(require_main(), 1);
  39482. init_esm();
  39483. // src/preview-api/modules/preview-web/UrlStore.ts
  39484. var { history, document: document4 } = scope;
  39485. // src/preview-api/modules/preview-web/WebView.ts
  39486. init_client_logger();
  39487. init_dist();
  39488. var import_ansi_to_html = __toESM(require_ansi_to_html(), 1), import_picoquery3 = __toESM(require_main(), 1);
  39489. init_esm();
  39490. var { document: document5 } = scope;
  39491. var ansiConverter = new import_ansi_to_html.default({
  39492. escapeXML: !0
  39493. });
  39494. // src/preview-api/modules/preview-web/simulate-pageload.ts
  39495. init_dist();
  39496. var { document: document6 } = scope;
  39497. // ../../node_modules/comment-parser/es6/primitives.js
  39498. var Markers;
  39499. (function(Markers2) {
  39500. Markers2.start = "/**", Markers2.nostart = "/***", Markers2.delim = "*", Markers2.end = "*/";
  39501. })(Markers = Markers || (Markers = {}));
  39502. // ../../node_modules/comment-parser/es6/stringifier/index.js
  39503. function join(tokens2) {
  39504. return tokens2.start + tokens2.delimiter + tokens2.postDelimiter + tokens2.tag + tokens2.postTag + tokens2.type + tokens2.postType + tokens2.name + tokens2.postName + tokens2.description + tokens2.end + tokens2.lineEnd;
  39505. }
  39506. function getStringifier() {
  39507. return (block) => block.source.map(({ tokens: tokens2 }) => join(tokens2)).join(`
  39508. `);
  39509. }
  39510. // ../../node_modules/comment-parser/es6/stringifier/inspect.js
  39511. var zeroWidth = {
  39512. line: 0,
  39513. start: 0,
  39514. delimiter: 0,
  39515. postDelimiter: 0,
  39516. tag: 0,
  39517. postTag: 0,
  39518. name: 0,
  39519. postName: 0,
  39520. type: 0,
  39521. postType: 0,
  39522. description: 0,
  39523. end: 0,
  39524. lineEnd: 0
  39525. };
  39526. var fields = Object.keys(zeroWidth);
  39527. // ../../node_modules/comment-parser/es6/index.js
  39528. var stringify4 = getStringifier();
  39529. // src/docs-tools/argTypes/jsdocParser.ts
  39530. var import_jsdoc_type_pratt_parser = __toESM(require_dist(), 1);
  39531. var jsdocStringifyRules = (0, import_jsdoc_type_pratt_parser.stringifyRules)(), originalJsdocStringifyObject = jsdocStringifyRules.JsdocTypeObject;
  39532. jsdocStringifyRules.JsdocTypeAny = () => "any";
  39533. jsdocStringifyRules.JsdocTypeObject = (result, transform) => `(${originalJsdocStringifyObject(result, transform)})`;
  39534. jsdocStringifyRules.JsdocTypeOptional = (result, transform) => transform(result.element);
  39535. jsdocStringifyRules.JsdocTypeNullable = (result, transform) => transform(result.element);
  39536. jsdocStringifyRules.JsdocTypeNotNullable = (result, transform) => transform(result.element);
  39537. jsdocStringifyRules.JsdocTypeUnion = (result, transform) => result.elements.map(transform).join("|");
  39538. // src/docs-tools/shared.ts
  39539. var ADDON_ID = "storybook/docs", PANEL_ID = `${ADDON_ID}/panel`;
  39540. var SNIPPET_RENDERED = `${ADDON_ID}/snippet-rendered`;
  39541. // src/actions/runtime/action.ts
  39542. init_dist();
  39543. // src/actions/constants.ts
  39544. var ADDON_ID2 = "storybook/actions", PANEL_ID2 = `${ADDON_ID2}/panel`, EVENT_ID = `${ADDON_ID2}/action-event`, CLEAR_ID = `${ADDON_ID2}/action-clear`;
  39545. // src/test/index.ts
  39546. var test_exports = {};
  39547. __export(test_exports, {
  39548. buildQueries: () => buildQueries2,
  39549. clearAllMocks: () => clearAllMocks,
  39550. configure: () => configure2,
  39551. createEvent: () => createEvent3,
  39552. expect: () => expect3,
  39553. findAllByAltText: () => findAllByAltText2,
  39554. findAllByDisplayValue: () => findAllByDisplayValue2,
  39555. findAllByLabelText: () => findAllByLabelText2,
  39556. findAllByPlaceholderText: () => findAllByPlaceholderText2,
  39557. findAllByRole: () => findAllByRole2,
  39558. findAllByTestId: () => findAllByTestId2,
  39559. findAllByText: () => findAllByText2,
  39560. findAllByTitle: () => findAllByTitle2,
  39561. findByAltText: () => findByAltText2,
  39562. findByDisplayValue: () => findByDisplayValue2,
  39563. findByLabelText: () => findByLabelText2,
  39564. findByPlaceholderText: () => findByPlaceholderText2,
  39565. findByRole: () => findByRole2,
  39566. findByTestId: () => findByTestId2,
  39567. findByText: () => findByText2,
  39568. findByTitle: () => findByTitle2,
  39569. fireEvent: () => fireEvent2,
  39570. fn: () => fn2,
  39571. getAllByAltText: () => getAllByAltText2,
  39572. getAllByDisplayValue: () => getAllByDisplayValue2,
  39573. getAllByLabelText: () => getAllByLabelText2,
  39574. getAllByPlaceholderText: () => getAllByPlaceholderText2,
  39575. getAllByRole: () => getAllByRole2,
  39576. getAllByTestId: () => getAllByTestId2,
  39577. getAllByText: () => getAllByText2,
  39578. getAllByTitle: () => getAllByTitle2,
  39579. getByAltText: () => getByAltText2,
  39580. getByDisplayValue: () => getByDisplayValue2,
  39581. getByLabelText: () => getByLabelText2,
  39582. getByPlaceholderText: () => getByPlaceholderText2,
  39583. getByRole: () => getByRole2,
  39584. getByTestId: () => getByTestId2,
  39585. getByText: () => getByText2,
  39586. getByTitle: () => getByTitle2,
  39587. getConfig: () => getConfig3,
  39588. getDefaultNormalizer: () => getDefaultNormalizer2,
  39589. getElementError: () => getElementError2,
  39590. getNodeText: () => getNodeText2,
  39591. getQueriesForElement: () => getQueriesForElement2,
  39592. getRoles: () => getRoles2,
  39593. getSuggestedQuery: () => getSuggestedQuery2,
  39594. isInaccessible: () => isInaccessible2,
  39595. isMockFunction: () => isMockFunction2,
  39596. logDOM: () => logDOM2,
  39597. logRoles: () => logRoles2,
  39598. mocked: () => mocked,
  39599. mocks: () => mocks,
  39600. onMockCall: () => onMockCall,
  39601. prettyDOM: () => prettyDOM2,
  39602. prettyFormat: () => prettyFormat2,
  39603. queries: () => queries2,
  39604. queryAllByAltText: () => queryAllByAltText2,
  39605. queryAllByAttribute: () => queryAllByAttribute2,
  39606. queryAllByDisplayValue: () => queryAllByDisplayValue2,
  39607. queryAllByLabelText: () => queryAllByLabelText2,
  39608. queryAllByPlaceholderText: () => queryAllByPlaceholderText2,
  39609. queryAllByRole: () => queryAllByRole2,
  39610. queryAllByTestId: () => queryAllByTestId2,
  39611. queryAllByText: () => queryAllByText2,
  39612. queryAllByTitle: () => queryAllByTitle2,
  39613. queryByAltText: () => queryByAltText2,
  39614. queryByAttribute: () => queryByAttribute2,
  39615. queryByDisplayValue: () => queryByDisplayValue2,
  39616. queryByLabelText: () => queryByLabelText2,
  39617. queryByPlaceholderText: () => queryByPlaceholderText2,
  39618. queryByRole: () => queryByRole2,
  39619. queryByTestId: () => queryByTestId2,
  39620. queryByText: () => queryByText2,
  39621. queryByTitle: () => queryByTitle2,
  39622. queryHelpers: () => queryHelpers2,
  39623. resetAllMocks: () => resetAllMocks,
  39624. restoreAllMocks: () => restoreAllMocks,
  39625. sb: () => sb,
  39626. screen: () => screen2,
  39627. spyOn: () => spyOn2,
  39628. uninstrumentedUserEvent: () => uninstrumentedUserEvent,
  39629. userEvent: () => userEvent2,
  39630. waitFor: () => waitFor2,
  39631. waitForElementToBeRemoved: () => waitForElementToBeRemoved2,
  39632. within: () => within
  39633. });
  39634. // src/instrumenter/instrumenter.ts
  39635. init_client_logger();
  39636. init_dist();
  39637. // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
  39638. var f = {
  39639. reset: [0, 0],
  39640. bold: [1, 22, "\x1B[22m\x1B[1m"],
  39641. dim: [2, 22, "\x1B[22m\x1B[2m"],
  39642. italic: [3, 23],
  39643. underline: [4, 24],
  39644. inverse: [7, 27],
  39645. hidden: [8, 28],
  39646. strikethrough: [9, 29],
  39647. black: [30, 39],
  39648. red: [31, 39],
  39649. green: [32, 39],
  39650. yellow: [33, 39],
  39651. blue: [34, 39],
  39652. magenta: [35, 39],
  39653. cyan: [36, 39],
  39654. white: [37, 39],
  39655. gray: [90, 39],
  39656. bgBlack: [40, 49],
  39657. bgRed: [41, 49],
  39658. bgGreen: [42, 49],
  39659. bgYellow: [43, 49],
  39660. bgBlue: [44, 49],
  39661. bgMagenta: [45, 49],
  39662. bgCyan: [46, 49],
  39663. bgWhite: [47, 49],
  39664. blackBright: [90, 39],
  39665. redBright: [91, 39],
  39666. greenBright: [92, 39],
  39667. yellowBright: [93, 39],
  39668. blueBright: [94, 39],
  39669. magentaBright: [95, 39],
  39670. cyanBright: [96, 39],
  39671. whiteBright: [97, 39],
  39672. bgBlackBright: [100, 49],
  39673. bgRedBright: [101, 49],
  39674. bgGreenBright: [102, 49],
  39675. bgYellowBright: [103, 49],
  39676. bgBlueBright: [104, 49],
  39677. bgMagentaBright: [105, 49],
  39678. bgCyanBright: [106, 49],
  39679. bgWhiteBright: [107, 49]
  39680. }, h = Object.entries(f);
  39681. function a(n) {
  39682. return String(n);
  39683. }
  39684. a.open = "";
  39685. a.close = "";
  39686. var B = h.reduce(
  39687. (n, [e]) => (n[e] = a, n),
  39688. { isColorSupported: !1 }
  39689. );
  39690. function C(n = !1) {
  39691. let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g2 = e?.argv || [];
  39692. return !("NO_COLOR" in i || g2.includes("--no-color")) && ("FORCE_COLOR" in i || g2.includes("--color") || e?.platform === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window < "u" && !!window.chrome;
  39693. }
  39694. function p(n = !1) {
  39695. let e = C(n), i = (r2, t, c, o) => {
  39696. let l = "", s3 = 0;
  39697. do
  39698. l += r2.substring(s3, o) + c, s3 = o + t.length, o = r2.indexOf(t, s3);
  39699. while (~o);
  39700. return l + r2.substring(s3);
  39701. }, g2 = (r2, t, c = r2) => {
  39702. let o = (l) => {
  39703. let s3 = String(l), b = s3.indexOf(t, r2.length);
  39704. return ~b ? r2 + i(s3, t, c, b) + t : r2 + s3 + t;
  39705. };
  39706. return o.open = r2, o.close = t, o;
  39707. }, u2 = {
  39708. isColorSupported: e
  39709. }, d = (r2) => `\x1B[${r2}m`;
  39710. for (let [r2, t] of h)
  39711. u2[r2] = e ? g2(
  39712. d(t[0]),
  39713. d(t[1]),
  39714. t[2]
  39715. ) : a;
  39716. return u2;
  39717. }
  39718. // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/browser.js
  39719. var s = p();
  39720. // ../../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js
  39721. function _mergeNamespaces(n, m3) {
  39722. return m3.forEach(function(e) {
  39723. e && typeof e != "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
  39724. if (k !== "default" && !(k in n)) {
  39725. var d = Object.getOwnPropertyDescriptor(e, k);
  39726. Object.defineProperty(n, k, d.get ? d : {
  39727. enumerable: !0,
  39728. get: function() {
  39729. return e[k];
  39730. }
  39731. });
  39732. }
  39733. });
  39734. }), Object.freeze(n);
  39735. }
  39736. function getKeysOfEnumerableProperties(object, compareKeys) {
  39737. let rawKeys = Object.keys(object), keys3 = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
  39738. if (Object.getOwnPropertySymbols)
  39739. for (let symbol of Object.getOwnPropertySymbols(object))
  39740. Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys3.push(symbol);
  39741. return keys3;
  39742. }
  39743. function printIteratorEntries(iterator, config4, indentation, depth, refs, printer2, separator = ": ") {
  39744. let result = "", width = 0, current = iterator.next();
  39745. if (!current.done) {
  39746. result += config4.spacingOuter;
  39747. let indentationNext = indentation + config4.indent;
  39748. for (; !current.done; ) {
  39749. if (result += indentationNext, width++ === config4.maxWidth) {
  39750. result += "\u2026";
  39751. break;
  39752. }
  39753. let name = printer2(current.value[0], config4, indentationNext, depth, refs), value = printer2(current.value[1], config4, indentationNext, depth, refs);
  39754. result += name + separator + value, current = iterator.next(), current.done ? config4.min || (result += ",") : result += `,${config4.spacingInner}`;
  39755. }
  39756. result += config4.spacingOuter + indentation;
  39757. }
  39758. return result;
  39759. }
  39760. function printIteratorValues(iterator, config4, indentation, depth, refs, printer2) {
  39761. let result = "", width = 0, current = iterator.next();
  39762. if (!current.done) {
  39763. result += config4.spacingOuter;
  39764. let indentationNext = indentation + config4.indent;
  39765. for (; !current.done; ) {
  39766. if (result += indentationNext, width++ === config4.maxWidth) {
  39767. result += "\u2026";
  39768. break;
  39769. }
  39770. result += printer2(current.value, config4, indentationNext, depth, refs), current = iterator.next(), current.done ? config4.min || (result += ",") : result += `,${config4.spacingInner}`;
  39771. }
  39772. result += config4.spacingOuter + indentation;
  39773. }
  39774. return result;
  39775. }
  39776. function printListItems(list, config4, indentation, depth, refs, printer2) {
  39777. let result = "";
  39778. list = list instanceof ArrayBuffer ? new DataView(list) : list;
  39779. let isDataView = (l) => l instanceof DataView, length2 = isDataView(list) ? list.byteLength : list.length;
  39780. if (length2 > 0) {
  39781. result += config4.spacingOuter;
  39782. let indentationNext = indentation + config4.indent;
  39783. for (let i = 0; i < length2; i++) {
  39784. if (result += indentationNext, i === config4.maxWidth) {
  39785. result += "\u2026";
  39786. break;
  39787. }
  39788. (isDataView(list) || i in list) && (result += printer2(isDataView(list) ? list.getInt8(i) : list[i], config4, indentationNext, depth, refs)), i < length2 - 1 ? result += `,${config4.spacingInner}` : config4.min || (result += ",");
  39789. }
  39790. result += config4.spacingOuter + indentation;
  39791. }
  39792. return result;
  39793. }
  39794. function printObjectProperties(val, config4, indentation, depth, refs, printer2) {
  39795. let result = "", keys3 = getKeysOfEnumerableProperties(val, config4.compareKeys);
  39796. if (keys3.length > 0) {
  39797. result += config4.spacingOuter;
  39798. let indentationNext = indentation + config4.indent;
  39799. for (let i = 0; i < keys3.length; i++) {
  39800. let key = keys3[i], name = printer2(key, config4, indentationNext, depth, refs), value = printer2(val[key], config4, indentationNext, depth, refs);
  39801. result += `${indentationNext + name}: ${value}`, i < keys3.length - 1 ? result += `,${config4.spacingInner}` : config4.min || (result += ",");
  39802. }
  39803. result += config4.spacingOuter + indentation;
  39804. }
  39805. return result;
  39806. }
  39807. var asymmetricMatcher = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, SPACE$2 = " ", serialize$5 = (val, config4, indentation, depth, refs, printer2) => {
  39808. let stringedValue = val.toString();
  39809. if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining")
  39810. return ++depth > config4.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}[${printListItems(val.sample, config4, indentation, depth, refs, printer2)}]`;
  39811. if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining")
  39812. return ++depth > config4.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config4, indentation, depth, refs, printer2)}}`;
  39813. if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining")
  39814. return stringedValue + SPACE$2 + printer2(val.sample, config4, indentation, depth, refs);
  39815. if (typeof val.toAsymmetricMatcher != "function")
  39816. throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
  39817. return val.toAsymmetricMatcher();
  39818. }, test$5 = (val) => val && val.$$typeof === asymmetricMatcher, plugin$5 = {
  39819. serialize: serialize$5,
  39820. test: test$5
  39821. }, SPACE$1 = " ", OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
  39822. function testName(name) {
  39823. return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
  39824. }
  39825. var test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
  39826. function isNamedNodeMap(collection) {
  39827. return collection.constructor.name === "NamedNodeMap";
  39828. }
  39829. var serialize$4 = (collection, config4, indentation, depth, refs, printer2) => {
  39830. let name = collection.constructor.name;
  39831. return ++depth > config4.maxDepth ? `[${name}]` : (config4.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [...collection].reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection }, config4, indentation, depth, refs, printer2)}}` : `[${printListItems([...collection], config4, indentation, depth, refs, printer2)}]`);
  39832. }, plugin$4 = {
  39833. serialize: serialize$4,
  39834. test: test$4
  39835. };
  39836. function escapeHTML(str2) {
  39837. return str2.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
  39838. }
  39839. function printProps(keys3, props, config4, indentation, depth, refs, printer2) {
  39840. let indentationNext = indentation + config4.indent, colors3 = config4.colors;
  39841. return keys3.map((key) => {
  39842. let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs);
  39843. return typeof value != "string" && (printed.includes(`
  39844. `) && (printed = config4.spacingOuter + indentationNext + printed + config4.spacingOuter + indentation), printed = `{${printed}}`), `${config4.spacingInner + indentation + colors3.prop.open + key + colors3.prop.close}=${colors3.value.open}${printed}${colors3.value.close}`;
  39845. }).join("");
  39846. }
  39847. function printChildren(children, config4, indentation, depth, refs, printer2) {
  39848. return children.map((child) => config4.spacingOuter + indentation + (typeof child == "string" ? printText(child, config4) : printer2(child, config4, indentation, depth, refs))).join("");
  39849. }
  39850. function printText(text, config4) {
  39851. let contentColor = config4.colors.content;
  39852. return contentColor.open + escapeHTML(text) + contentColor.close;
  39853. }
  39854. function printComment(comment2, config4) {
  39855. let commentColor = config4.colors.comment;
  39856. return `${commentColor.open}<!--${escapeHTML(comment2)}-->${commentColor.close}`;
  39857. }
  39858. function printElement(type5, printedProps, printedChildren, config4, indentation) {
  39859. let tagColor = config4.colors.tag;
  39860. return `${tagColor.open}<${type5}${printedProps && tagColor.close + printedProps + config4.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config4.spacingOuter}${indentation}${tagColor.open}</${type5}` : `${printedProps && !config4.min ? "" : " "}/`}>${tagColor.close}`;
  39861. }
  39862. function printElementAsLeaf(type5, config4) {
  39863. let tagColor = config4.colors.tag;
  39864. return `${tagColor.open}<${type5}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
  39865. }
  39866. var ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, FRAGMENT_NODE = 11, ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/;
  39867. function testHasAttribute(val) {
  39868. try {
  39869. return typeof val.hasAttribute == "function" && val.hasAttribute("is");
  39870. } catch {
  39871. return !1;
  39872. }
  39873. }
  39874. function testNode(val) {
  39875. let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement3 = typeof tagName == "string" && tagName.includes("-") || testHasAttribute(val);
  39876. return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement3) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
  39877. }
  39878. var test$3 = (val) => {
  39879. var _val$constructor;
  39880. return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
  39881. };
  39882. function nodeIsText(node2) {
  39883. return node2.nodeType === TEXT_NODE;
  39884. }
  39885. function nodeIsComment(node2) {
  39886. return node2.nodeType === COMMENT_NODE;
  39887. }
  39888. function nodeIsFragment(node2) {
  39889. return node2.nodeType === FRAGMENT_NODE;
  39890. }
  39891. var serialize$3 = (node2, config4, indentation, depth, refs, printer2) => {
  39892. if (nodeIsText(node2))
  39893. return printText(node2.data, config4);
  39894. if (nodeIsComment(node2))
  39895. return printComment(node2.data, config4);
  39896. let type5 = nodeIsFragment(node2) ? "DocumentFragment" : node2.tagName.toLowerCase();
  39897. return ++depth > config4.maxDepth ? printElementAsLeaf(type5, config4) : printElement(type5, printProps(nodeIsFragment(node2) ? [] : Array.from(node2.attributes, (attr) => attr.name).sort(), nodeIsFragment(node2) ? {} : [...node2.attributes].reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), config4, indentation + config4.indent, depth, refs, printer2), printChildren(Array.prototype.slice.call(node2.childNodes || node2.children), config4, indentation + config4.indent, depth, refs, printer2), config4, indentation);
  39898. }, plugin$3 = {
  39899. serialize: serialize$3,
  39900. test: test$3
  39901. }, IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@", getImmutableName = (name) => `Immutable.${name}`, printAsLeaf = (name) => `[${name}]`, SPACE = " ", LAZY = "\u2026";
  39902. function printImmutableEntries(val, config4, indentation, depth, refs, printer2, type5) {
  39903. return ++depth > config4.maxDepth ? printAsLeaf(getImmutableName(type5)) : `${getImmutableName(type5) + SPACE}{${printIteratorEntries(val.entries(), config4, indentation, depth, refs, printer2)}}`;
  39904. }
  39905. function getRecordEntries(val) {
  39906. let i = 0;
  39907. return { next() {
  39908. if (i < val._keys.length) {
  39909. let key = val._keys[i++];
  39910. return {
  39911. done: !1,
  39912. value: [key, val.get(key)]
  39913. };
  39914. }
  39915. return {
  39916. done: !0,
  39917. value: void 0
  39918. };
  39919. } };
  39920. }
  39921. function printImmutableRecord(val, config4, indentation, depth, refs, printer2) {
  39922. let name = getImmutableName(val._name || "Record");
  39923. return ++depth > config4.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config4, indentation, depth, refs, printer2)}}`;
  39924. }
  39925. function printImmutableSeq(val, config4, indentation, depth, refs, printer2) {
  39926. let name = getImmutableName("Seq");
  39927. return ++depth > config4.maxDepth ? printAsLeaf(name) : val[IS_KEYED_SENTINEL] ? `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config4, indentation, depth, refs, printer2) : LAZY}}` : `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config4, indentation, depth, refs, printer2) : LAZY}]`;
  39928. }
  39929. function printImmutableValues(val, config4, indentation, depth, refs, printer2, type5) {
  39930. return ++depth > config4.maxDepth ? printAsLeaf(getImmutableName(type5)) : `${getImmutableName(type5) + SPACE}[${printIteratorValues(val.values(), config4, indentation, depth, refs, printer2)}]`;
  39931. }
  39932. var serialize$2 = (val, config4, indentation, depth, refs, printer2) => val[IS_MAP_SENTINEL] ? printImmutableEntries(val, config4, indentation, depth, refs, printer2, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map") : val[IS_LIST_SENTINEL] ? printImmutableValues(val, config4, indentation, depth, refs, printer2, "List") : val[IS_SET_SENTINEL] ? printImmutableValues(val, config4, indentation, depth, refs, printer2, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set") : val[IS_STACK_SENTINEL] ? printImmutableValues(val, config4, indentation, depth, refs, printer2, "Stack") : val[IS_SEQ_SENTINEL] ? printImmutableSeq(val, config4, indentation, depth, refs, printer2) : printImmutableRecord(val, config4, indentation, depth, refs, printer2), test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === !0 || val[IS_RECORD_SENTINEL] === !0), plugin$2 = {
  39933. serialize: serialize$2,
  39934. test: test$2
  39935. };
  39936. function getDefaultExportFromCjs(x) {
  39937. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
  39938. }
  39939. var reactIs$1 = { exports: {} }, reactIs_production = {};
  39940. var hasRequiredReactIs_production;
  39941. function requireReactIs_production() {
  39942. if (hasRequiredReactIs_production) return reactIs_production;
  39943. hasRequiredReactIs_production = 1;
  39944. var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE2 = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
  39945. function typeOf(object) {
  39946. if (typeof object == "object" && object !== null) {
  39947. var $$typeof = object.$$typeof;
  39948. switch ($$typeof) {
  39949. case REACT_ELEMENT_TYPE:
  39950. switch (object = object.type, object) {
  39951. case REACT_FRAGMENT_TYPE:
  39952. case REACT_PROFILER_TYPE:
  39953. case REACT_STRICT_MODE_TYPE:
  39954. case REACT_SUSPENSE_TYPE:
  39955. case REACT_SUSPENSE_LIST_TYPE:
  39956. case REACT_VIEW_TRANSITION_TYPE:
  39957. return object;
  39958. default:
  39959. switch (object = object && object.$$typeof, object) {
  39960. case REACT_CONTEXT_TYPE:
  39961. case REACT_FORWARD_REF_TYPE:
  39962. case REACT_LAZY_TYPE2:
  39963. case REACT_MEMO_TYPE:
  39964. return object;
  39965. case REACT_CONSUMER_TYPE:
  39966. return object;
  39967. default:
  39968. return $$typeof;
  39969. }
  39970. }
  39971. case REACT_PORTAL_TYPE:
  39972. return $$typeof;
  39973. }
  39974. }
  39975. }
  39976. return reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE, reactIs_production.ContextProvider = REACT_CONTEXT_TYPE, reactIs_production.Element = REACT_ELEMENT_TYPE, reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE, reactIs_production.Fragment = REACT_FRAGMENT_TYPE, reactIs_production.Lazy = REACT_LAZY_TYPE2, reactIs_production.Memo = REACT_MEMO_TYPE, reactIs_production.Portal = REACT_PORTAL_TYPE, reactIs_production.Profiler = REACT_PROFILER_TYPE, reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE, reactIs_production.Suspense = REACT_SUSPENSE_TYPE, reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE, reactIs_production.isContextConsumer = function(object) {
  39977. return typeOf(object) === REACT_CONSUMER_TYPE;
  39978. }, reactIs_production.isContextProvider = function(object) {
  39979. return typeOf(object) === REACT_CONTEXT_TYPE;
  39980. }, reactIs_production.isElement = function(object) {
  39981. return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  39982. }, reactIs_production.isForwardRef = function(object) {
  39983. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  39984. }, reactIs_production.isFragment = function(object) {
  39985. return typeOf(object) === REACT_FRAGMENT_TYPE;
  39986. }, reactIs_production.isLazy = function(object) {
  39987. return typeOf(object) === REACT_LAZY_TYPE2;
  39988. }, reactIs_production.isMemo = function(object) {
  39989. return typeOf(object) === REACT_MEMO_TYPE;
  39990. }, reactIs_production.isPortal = function(object) {
  39991. return typeOf(object) === REACT_PORTAL_TYPE;
  39992. }, reactIs_production.isProfiler = function(object) {
  39993. return typeOf(object) === REACT_PROFILER_TYPE;
  39994. }, reactIs_production.isStrictMode = function(object) {
  39995. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  39996. }, reactIs_production.isSuspense = function(object) {
  39997. return typeOf(object) === REACT_SUSPENSE_TYPE;
  39998. }, reactIs_production.isSuspenseList = function(object) {
  39999. return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
  40000. }, reactIs_production.isValidElementType = function(type5) {
  40001. return typeof type5 == "string" || typeof type5 == "function" || type5 === REACT_FRAGMENT_TYPE || type5 === REACT_PROFILER_TYPE || type5 === REACT_STRICT_MODE_TYPE || type5 === REACT_SUSPENSE_TYPE || type5 === REACT_SUSPENSE_LIST_TYPE || typeof type5 == "object" && type5 !== null && (type5.$$typeof === REACT_LAZY_TYPE2 || type5.$$typeof === REACT_MEMO_TYPE || type5.$$typeof === REACT_CONTEXT_TYPE || type5.$$typeof === REACT_CONSUMER_TYPE || type5.$$typeof === REACT_FORWARD_REF_TYPE || type5.$$typeof === REACT_CLIENT_REFERENCE || type5.getModuleId !== void 0);
  40002. }, reactIs_production.typeOf = typeOf, reactIs_production;
  40003. }
  40004. var hasRequiredReactIs$1;
  40005. function requireReactIs$1() {
  40006. return hasRequiredReactIs$1 || (hasRequiredReactIs$1 = 1, reactIs$1.exports = requireReactIs_production()), reactIs$1.exports;
  40007. }
  40008. var reactIsExports$1 = requireReactIs$1(), index$1 = getDefaultExportFromCjs(reactIsExports$1), ReactIs19 = _mergeNamespaces({
  40009. __proto__: null,
  40010. default: index$1
  40011. }, [reactIsExports$1]), reactIs = { exports: {} }, reactIs_production_min = {};
  40012. var hasRequiredReactIs_production_min;
  40013. function requireReactIs_production_min() {
  40014. if (hasRequiredReactIs_production_min) return reactIs_production_min;
  40015. hasRequiredReactIs_production_min = 1;
  40016. var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f4 = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m3 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2;
  40017. u2 = Symbol.for("react.module.reference");
  40018. function v(a3) {
  40019. if (typeof a3 == "object" && a3 !== null) {
  40020. var r2 = a3.$$typeof;
  40021. switch (r2) {
  40022. case b:
  40023. switch (a3 = a3.type, a3) {
  40024. case d:
  40025. case f4:
  40026. case e:
  40027. case m3:
  40028. case n:
  40029. return a3;
  40030. default:
  40031. switch (a3 = a3 && a3.$$typeof, a3) {
  40032. case k:
  40033. case h3:
  40034. case l:
  40035. case q:
  40036. case p3:
  40037. case g2:
  40038. return a3;
  40039. default:
  40040. return r2;
  40041. }
  40042. }
  40043. case c:
  40044. return r2;
  40045. }
  40046. }
  40047. }
  40048. return reactIs_production_min.ContextConsumer = h3, reactIs_production_min.ContextProvider = g2, reactIs_production_min.Element = b, reactIs_production_min.ForwardRef = l, reactIs_production_min.Fragment = d, reactIs_production_min.Lazy = q, reactIs_production_min.Memo = p3, reactIs_production_min.Portal = c, reactIs_production_min.Profiler = f4, reactIs_production_min.StrictMode = e, reactIs_production_min.Suspense = m3, reactIs_production_min.SuspenseList = n, reactIs_production_min.isAsyncMode = function() {
  40049. return !1;
  40050. }, reactIs_production_min.isConcurrentMode = function() {
  40051. return !1;
  40052. }, reactIs_production_min.isContextConsumer = function(a3) {
  40053. return v(a3) === h3;
  40054. }, reactIs_production_min.isContextProvider = function(a3) {
  40055. return v(a3) === g2;
  40056. }, reactIs_production_min.isElement = function(a3) {
  40057. return typeof a3 == "object" && a3 !== null && a3.$$typeof === b;
  40058. }, reactIs_production_min.isForwardRef = function(a3) {
  40059. return v(a3) === l;
  40060. }, reactIs_production_min.isFragment = function(a3) {
  40061. return v(a3) === d;
  40062. }, reactIs_production_min.isLazy = function(a3) {
  40063. return v(a3) === q;
  40064. }, reactIs_production_min.isMemo = function(a3) {
  40065. return v(a3) === p3;
  40066. }, reactIs_production_min.isPortal = function(a3) {
  40067. return v(a3) === c;
  40068. }, reactIs_production_min.isProfiler = function(a3) {
  40069. return v(a3) === f4;
  40070. }, reactIs_production_min.isStrictMode = function(a3) {
  40071. return v(a3) === e;
  40072. }, reactIs_production_min.isSuspense = function(a3) {
  40073. return v(a3) === m3;
  40074. }, reactIs_production_min.isSuspenseList = function(a3) {
  40075. return v(a3) === n;
  40076. }, reactIs_production_min.isValidElementType = function(a3) {
  40077. return typeof a3 == "string" || typeof a3 == "function" || a3 === d || a3 === f4 || a3 === e || a3 === m3 || a3 === n || a3 === t || typeof a3 == "object" && a3 !== null && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || a3.getModuleId !== void 0);
  40078. }, reactIs_production_min.typeOf = v, reactIs_production_min;
  40079. }
  40080. var hasRequiredReactIs;
  40081. function requireReactIs() {
  40082. return hasRequiredReactIs || (hasRequiredReactIs = 1, reactIs.exports = requireReactIs_production_min()), reactIs.exports;
  40083. }
  40084. var reactIsExports = requireReactIs(), index = getDefaultExportFromCjs(reactIsExports), ReactIs18 = _mergeNamespaces({
  40085. __proto__: null,
  40086. default: index
  40087. }, [reactIsExports]), reactIsMethods = [
  40088. "isAsyncMode",
  40089. "isConcurrentMode",
  40090. "isContextConsumer",
  40091. "isContextProvider",
  40092. "isElement",
  40093. "isForwardRef",
  40094. "isFragment",
  40095. "isLazy",
  40096. "isMemo",
  40097. "isPortal",
  40098. "isProfiler",
  40099. "isStrictMode",
  40100. "isSuspense",
  40101. "isSuspenseList",
  40102. "isValidElementType"
  40103. ], ReactIs = Object.fromEntries(reactIsMethods.map((m3) => [m3, (v) => ReactIs18[m3](v) || ReactIs19[m3](v)]));
  40104. function getChildren(arg, children = []) {
  40105. if (Array.isArray(arg))
  40106. for (let item of arg)
  40107. getChildren(item, children);
  40108. else arg != null && arg !== !1 && arg !== "" && children.push(arg);
  40109. return children;
  40110. }
  40111. function getType(element) {
  40112. let type5 = element.type;
  40113. if (typeof type5 == "string")
  40114. return type5;
  40115. if (typeof type5 == "function")
  40116. return type5.displayName || type5.name || "Unknown";
  40117. if (ReactIs.isFragment(element))
  40118. return "React.Fragment";
  40119. if (ReactIs.isSuspense(element))
  40120. return "React.Suspense";
  40121. if (typeof type5 == "object" && type5 !== null) {
  40122. if (ReactIs.isContextProvider(element))
  40123. return "Context.Provider";
  40124. if (ReactIs.isContextConsumer(element))
  40125. return "Context.Consumer";
  40126. if (ReactIs.isForwardRef(element)) {
  40127. if (type5.displayName)
  40128. return type5.displayName;
  40129. let functionName = type5.render.displayName || type5.render.name || "";
  40130. return functionName === "" ? "ForwardRef" : `ForwardRef(${functionName})`;
  40131. }
  40132. if (ReactIs.isMemo(element)) {
  40133. let functionName = type5.displayName || type5.type.displayName || type5.type.name || "";
  40134. return functionName === "" ? "Memo" : `Memo(${functionName})`;
  40135. }
  40136. }
  40137. return "UNDEFINED";
  40138. }
  40139. function getPropKeys$1(element) {
  40140. let { props } = element;
  40141. return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
  40142. }
  40143. var serialize$1 = (element, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? printElementAsLeaf(getType(element), config4) : printElement(getType(element), printProps(getPropKeys$1(element), element.props, config4, indentation + config4.indent, depth, refs, printer2), printChildren(getChildren(element.props.children), config4, indentation + config4.indent, depth, refs, printer2), config4, indentation), test$1 = (val) => val != null && ReactIs.isElement(val), plugin$1 = {
  40144. serialize: serialize$1,
  40145. test: test$1
  40146. }, testSymbol = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
  40147. function getPropKeys(object) {
  40148. let { props } = object;
  40149. return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
  40150. }
  40151. var serialize2 = (object, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? printElementAsLeaf(object.type, config4) : printElement(object.type, object.props ? printProps(getPropKeys(object), object.props, config4, indentation + config4.indent, depth, refs, printer2) : "", object.children ? printChildren(object.children, config4, indentation + config4.indent, depth, refs, printer2) : "", config4, indentation), test = (val) => val && val.$$typeof === testSymbol, plugin = {
  40152. serialize: serialize2,
  40153. test
  40154. }, toString2 = Object.prototype.toString, toISOString = Date.prototype.toISOString, errorToString = Error.prototype.toString, regExpToString = RegExp.prototype.toString;
  40155. function getConstructorName(val) {
  40156. return typeof val.constructor == "function" && val.constructor.name || "Object";
  40157. }
  40158. function isWindow(val) {
  40159. return typeof window < "u" && val === window;
  40160. }
  40161. var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP = /\n/g, PrettyFormatPluginError = class extends Error {
  40162. constructor(message, stack) {
  40163. super(message), this.stack = stack, this.name = this.constructor.name;
  40164. }
  40165. };
  40166. function isToStringedArrayType(toStringed) {
  40167. return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
  40168. }
  40169. function printNumber(val) {
  40170. return Object.is(val, -0) ? "-0" : String(val);
  40171. }
  40172. function printBigInt(val) {
  40173. return `${val}n`;
  40174. }
  40175. function printFunction(val, printFunctionName) {
  40176. return printFunctionName ? `[Function ${val.name || "anonymous"}]` : "[Function]";
  40177. }
  40178. function printSymbol(val) {
  40179. return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
  40180. }
  40181. function printError(val) {
  40182. return `[${errorToString.call(val)}]`;
  40183. }
  40184. function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
  40185. if (val === !0 || val === !1)
  40186. return `${val}`;
  40187. if (val === void 0)
  40188. return "undefined";
  40189. if (val === null)
  40190. return "null";
  40191. let typeOf = typeof val;
  40192. if (typeOf === "number")
  40193. return printNumber(val);
  40194. if (typeOf === "bigint")
  40195. return printBigInt(val);
  40196. if (typeOf === "string")
  40197. return escapeString ? `"${val.replaceAll(/"|\\/g, "\\$&")}"` : `"${val}"`;
  40198. if (typeOf === "function")
  40199. return printFunction(val, printFunctionName);
  40200. if (typeOf === "symbol")
  40201. return printSymbol(val);
  40202. let toStringed = toString2.call(val);
  40203. return toStringed === "[object WeakMap]" ? "WeakMap {}" : toStringed === "[object WeakSet]" ? "WeakSet {}" : toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]" ? printFunction(val, printFunctionName) : toStringed === "[object Symbol]" ? printSymbol(val) : toStringed === "[object Date]" ? Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val) : toStringed === "[object Error]" ? printError(val) : toStringed === "[object RegExp]" ? escapeRegex ? regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : regExpToString.call(val) : val instanceof Error ? printError(val) : null;
  40204. }
  40205. function printComplexValue(val, config4, indentation, depth, refs, hasCalledToJSON) {
  40206. if (refs.includes(val))
  40207. return "[Circular]";
  40208. refs = [...refs], refs.push(val);
  40209. let hitMaxDepth = ++depth > config4.maxDepth, min2 = config4.min;
  40210. if (config4.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON)
  40211. return printer(val.toJSON(), config4, indentation, depth, refs, !0);
  40212. let toStringed = toString2.call(val);
  40213. return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : `${min2 ? "" : "Arguments "}[${printListItems(val, config4, indentation, depth, refs, printer)}]` : isToStringedArrayType(toStringed) ? hitMaxDepth ? `[${val.constructor.name}]` : `${min2 || !config4.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${printListItems(val, config4, indentation, depth, refs, printer)}]` : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries(val.entries(), config4, indentation, depth, refs, printer, " => ")}}` : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : `Set {${printIteratorValues(val.values(), config4, indentation, depth, refs, printer)}}` : hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min2 || !config4.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${printObjectProperties(val, config4, indentation, depth, refs, printer)}}`;
  40214. }
  40215. var ErrorPlugin = {
  40216. test: (val) => val && val instanceof Error,
  40217. serialize(val, config4, indentation, depth, refs, printer2) {
  40218. if (refs.includes(val))
  40219. return "[Circular]";
  40220. refs = [...refs, val];
  40221. let hitMaxDepth = ++depth > config4.maxDepth, { message, cause, ...rest } = val, entries = {
  40222. message,
  40223. ...typeof cause < "u" ? { cause } : {},
  40224. ...val instanceof AggregateError ? { errors: val.errors } : {},
  40225. ...rest
  40226. }, name = val.name !== "Error" ? val.name : getConstructorName(val);
  40227. return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config4, indentation, depth, refs, printer2)}}`;
  40228. }
  40229. };
  40230. function isNewPlugin(plugin2) {
  40231. return plugin2.serialize != null;
  40232. }
  40233. function printPlugin(plugin2, val, config4, indentation, depth, refs) {
  40234. let printed;
  40235. try {
  40236. printed = isNewPlugin(plugin2) ? plugin2.serialize(val, config4, indentation, depth, refs, printer) : plugin2.print(val, (valChild) => printer(valChild, config4, indentation, depth, refs), (str2) => {
  40237. let indentationNext = indentation + config4.indent;
  40238. return indentationNext + str2.replaceAll(NEWLINE_REGEXP, `
  40239. ${indentationNext}`);
  40240. }, {
  40241. edgeSpacing: config4.spacingOuter,
  40242. min: config4.min,
  40243. spacing: config4.spacingInner
  40244. }, config4.colors);
  40245. } catch (error) {
  40246. throw new PrettyFormatPluginError(error.message, error.stack);
  40247. }
  40248. if (typeof printed != "string")
  40249. throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
  40250. return printed;
  40251. }
  40252. function findPlugin(plugins3, val) {
  40253. for (let plugin2 of plugins3)
  40254. try {
  40255. if (plugin2.test(val))
  40256. return plugin2;
  40257. } catch (error) {
  40258. throw new PrettyFormatPluginError(error.message, error.stack);
  40259. }
  40260. return null;
  40261. }
  40262. function printer(val, config4, indentation, depth, refs, hasCalledToJSON) {
  40263. let plugin2 = findPlugin(config4.plugins, val);
  40264. if (plugin2 !== null)
  40265. return printPlugin(plugin2, val, config4, indentation, depth, refs);
  40266. let basicResult = printBasicValue(val, config4.printFunctionName, config4.escapeRegex, config4.escapeString);
  40267. return basicResult !== null ? basicResult : printComplexValue(val, config4, indentation, depth, refs, hasCalledToJSON);
  40268. }
  40269. var DEFAULT_THEME = {
  40270. comment: "gray",
  40271. content: "reset",
  40272. prop: "yellow",
  40273. tag: "cyan",
  40274. value: "green"
  40275. }, DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME), DEFAULT_OPTIONS = {
  40276. callToJSON: !0,
  40277. compareKeys: void 0,
  40278. escapeRegex: !1,
  40279. escapeString: !0,
  40280. highlight: !1,
  40281. indent: 2,
  40282. maxDepth: Number.POSITIVE_INFINITY,
  40283. maxWidth: Number.POSITIVE_INFINITY,
  40284. min: !1,
  40285. plugins: [],
  40286. printBasicPrototype: !0,
  40287. printFunctionName: !0,
  40288. theme: DEFAULT_THEME
  40289. };
  40290. function validateOptions2(options) {
  40291. for (let key of Object.keys(options))
  40292. if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key))
  40293. throw new Error(`pretty-format: Unknown option "${key}".`);
  40294. if (options.min && options.indent !== void 0 && options.indent !== 0)
  40295. throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
  40296. }
  40297. function getColorsHighlight() {
  40298. return DEFAULT_THEME_KEYS.reduce((colors3, key) => {
  40299. let value = DEFAULT_THEME[key], color2 = value && s[value];
  40300. if (color2 && typeof color2.close == "string" && typeof color2.open == "string")
  40301. colors3[key] = color2;
  40302. else
  40303. throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
  40304. return colors3;
  40305. }, /* @__PURE__ */ Object.create(null));
  40306. }
  40307. function getColorsEmpty() {
  40308. return DEFAULT_THEME_KEYS.reduce((colors3, key) => (colors3[key] = {
  40309. close: "",
  40310. open: ""
  40311. }, colors3), /* @__PURE__ */ Object.create(null));
  40312. }
  40313. function getPrintFunctionName(options) {
  40314. return options?.printFunctionName ?? DEFAULT_OPTIONS.printFunctionName;
  40315. }
  40316. function getEscapeRegex(options) {
  40317. return options?.escapeRegex ?? DEFAULT_OPTIONS.escapeRegex;
  40318. }
  40319. function getEscapeString(options) {
  40320. return options?.escapeString ?? DEFAULT_OPTIONS.escapeString;
  40321. }
  40322. function getConfig(options) {
  40323. return {
  40324. callToJSON: options?.callToJSON ?? DEFAULT_OPTIONS.callToJSON,
  40325. colors: options?.highlight ? getColorsHighlight() : getColorsEmpty(),
  40326. compareKeys: typeof options?.compareKeys == "function" || options?.compareKeys === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
  40327. escapeRegex: getEscapeRegex(options),
  40328. escapeString: getEscapeString(options),
  40329. indent: options?.min ? "" : createIndent(options?.indent ?? DEFAULT_OPTIONS.indent),
  40330. maxDepth: options?.maxDepth ?? DEFAULT_OPTIONS.maxDepth,
  40331. maxWidth: options?.maxWidth ?? DEFAULT_OPTIONS.maxWidth,
  40332. min: options?.min ?? DEFAULT_OPTIONS.min,
  40333. plugins: options?.plugins ?? DEFAULT_OPTIONS.plugins,
  40334. printBasicPrototype: options?.printBasicPrototype ?? !0,
  40335. printFunctionName: getPrintFunctionName(options),
  40336. spacingInner: options?.min ? " " : `
  40337. `,
  40338. spacingOuter: options?.min ? "" : `
  40339. `
  40340. };
  40341. }
  40342. function createIndent(indent2) {
  40343. return Array.from({ length: indent2 + 1 }).join(" ");
  40344. }
  40345. function format(val, options) {
  40346. if (options && (validateOptions2(options), options.plugins)) {
  40347. let plugin2 = findPlugin(options.plugins, val);
  40348. if (plugin2 !== null)
  40349. return printPlugin(plugin2, val, getConfig(options), "", 0, []);
  40350. }
  40351. let basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
  40352. return basicResult !== null ? basicResult : printComplexValue(val, getConfig(options), "", 0, []);
  40353. }
  40354. var plugins = {
  40355. AsymmetricMatcher: plugin$5,
  40356. DOMCollection: plugin$4,
  40357. DOMElement: plugin$3,
  40358. Immutable: plugin$2,
  40359. ReactElement: plugin$1,
  40360. ReactTestComponent: plugin,
  40361. Error: ErrorPlugin
  40362. };
  40363. // ../../node_modules/loupe/lib/helpers.js
  40364. var ansiColors = {
  40365. bold: ["1", "22"],
  40366. dim: ["2", "22"],
  40367. italic: ["3", "23"],
  40368. underline: ["4", "24"],
  40369. // 5 & 6 are blinking
  40370. inverse: ["7", "27"],
  40371. hidden: ["8", "28"],
  40372. strike: ["9", "29"],
  40373. // 10-20 are fonts
  40374. // 21-29 are resets for 1-9
  40375. black: ["30", "39"],
  40376. red: ["31", "39"],
  40377. green: ["32", "39"],
  40378. yellow: ["33", "39"],
  40379. blue: ["34", "39"],
  40380. magenta: ["35", "39"],
  40381. cyan: ["36", "39"],
  40382. white: ["37", "39"],
  40383. brightblack: ["30;1", "39"],
  40384. brightred: ["31;1", "39"],
  40385. brightgreen: ["32;1", "39"],
  40386. brightyellow: ["33;1", "39"],
  40387. brightblue: ["34;1", "39"],
  40388. brightmagenta: ["35;1", "39"],
  40389. brightcyan: ["36;1", "39"],
  40390. brightwhite: ["37;1", "39"],
  40391. grey: ["90", "39"]
  40392. }, styles = {
  40393. special: "cyan",
  40394. number: "yellow",
  40395. bigint: "yellow",
  40396. boolean: "yellow",
  40397. undefined: "grey",
  40398. null: "bold",
  40399. string: "green",
  40400. symbol: "green",
  40401. date: "magenta",
  40402. regexp: "red"
  40403. }, truncator = "\u2026";
  40404. function colorise(value, styleType) {
  40405. let color2 = ansiColors[styles[styleType]] || ansiColors[styleType] || "";
  40406. return color2 ? `\x1B[${color2[0]}m${String(value)}\x1B[${color2[1]}m` : String(value);
  40407. }
  40408. function normaliseOptions({
  40409. showHidden = !1,
  40410. depth = 2,
  40411. colors: colors3 = !1,
  40412. customInspect = !0,
  40413. showProxy = !1,
  40414. maxArrayLength = 1 / 0,
  40415. breakLength = 1 / 0,
  40416. seen = [],
  40417. // eslint-disable-next-line no-shadow
  40418. truncate: truncate3 = 1 / 0,
  40419. stylize = String
  40420. } = {}, inspect5) {
  40421. let options = {
  40422. showHidden: !!showHidden,
  40423. depth: Number(depth),
  40424. colors: !!colors3,
  40425. customInspect: !!customInspect,
  40426. showProxy: !!showProxy,
  40427. maxArrayLength: Number(maxArrayLength),
  40428. breakLength: Number(breakLength),
  40429. truncate: Number(truncate3),
  40430. seen,
  40431. inspect: inspect5,
  40432. stylize
  40433. };
  40434. return options.colors && (options.stylize = colorise), options;
  40435. }
  40436. function isHighSurrogate(char2) {
  40437. return char2 >= "\uD800" && char2 <= "\uDBFF";
  40438. }
  40439. function truncate(string, length2, tail2 = truncator) {
  40440. string = String(string);
  40441. let tailLength = tail2.length, stringLength = string.length;
  40442. if (tailLength > length2 && stringLength > tailLength)
  40443. return tail2;
  40444. if (stringLength > length2 && stringLength > tailLength) {
  40445. let end2 = length2 - tailLength;
  40446. return end2 > 0 && isHighSurrogate(string[end2 - 1]) && (end2 = end2 - 1), `${string.slice(0, end2)}${tail2}`;
  40447. }
  40448. return string;
  40449. }
  40450. function inspectList(list, options, inspectItem, separator = ", ") {
  40451. inspectItem = inspectItem || options.inspect;
  40452. let size = list.length;
  40453. if (size === 0)
  40454. return "";
  40455. let originalLength = options.truncate, output = "", peek2 = "", truncated = "";
  40456. for (let i = 0; i < size; i += 1) {
  40457. let last2 = i + 1 === list.length, secondToLast = i + 2 === list.length;
  40458. truncated = `${truncator}(${list.length - i})`;
  40459. let value = list[i];
  40460. options.truncate = originalLength - output.length - (last2 ? 0 : separator.length);
  40461. let string = peek2 || inspectItem(value, options) + (last2 ? "" : separator), nextLength = output.length + string.length, truncatedLength = nextLength + truncated.length;
  40462. if (last2 && nextLength > originalLength && output.length + truncated.length <= originalLength || !last2 && !secondToLast && truncatedLength > originalLength || (peek2 = last2 ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator), !last2 && secondToLast && truncatedLength > originalLength && nextLength + peek2.length > originalLength))
  40463. break;
  40464. if (output += string, !last2 && !secondToLast && nextLength + peek2.length >= originalLength) {
  40465. truncated = `${truncator}(${list.length - i - 1})`;
  40466. break;
  40467. }
  40468. truncated = "";
  40469. }
  40470. return `${output}${truncated}`;
  40471. }
  40472. function quoteComplexKey(key) {
  40473. return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? key : JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
  40474. }
  40475. function inspectProperty([key, value], options) {
  40476. return options.truncate -= 2, typeof key == "string" ? key = quoteComplexKey(key) : typeof key != "number" && (key = `[${options.inspect(key, options)}]`), options.truncate -= key.length, value = options.inspect(value, options), `${key}: ${value}`;
  40477. }
  40478. // ../../node_modules/loupe/lib/array.js
  40479. function inspectArray(array, options) {
  40480. let nonIndexProperties = Object.keys(array).slice(array.length);
  40481. if (!array.length && !nonIndexProperties.length)
  40482. return "[]";
  40483. options.truncate -= 4;
  40484. let listContents = inspectList(array, options);
  40485. options.truncate -= listContents.length;
  40486. let propertyContents = "";
  40487. return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  40488. }
  40489. // ../../node_modules/loupe/lib/typedarray.js
  40490. var getArrayName = (array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name;
  40491. function inspectTypedArray(array, options) {
  40492. let name = getArrayName(array);
  40493. options.truncate -= name.length + 4;
  40494. let nonIndexProperties = Object.keys(array).slice(array.length);
  40495. if (!array.length && !nonIndexProperties.length)
  40496. return `${name}[]`;
  40497. let output = "";
  40498. for (let i = 0; i < array.length; i++) {
  40499. let string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
  40500. if (options.truncate -= string.length, array[i] !== array.length && options.truncate <= 3) {
  40501. output += `${truncator}(${array.length - array[i] + 1})`;
  40502. break;
  40503. }
  40504. output += string;
  40505. }
  40506. let propertyContents = "";
  40507. return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  40508. }
  40509. // ../../node_modules/loupe/lib/date.js
  40510. function inspectDate(dateObject, options) {
  40511. let stringRepresentation = dateObject.toJSON();
  40512. if (stringRepresentation === null)
  40513. return "Invalid Date";
  40514. let split = stringRepresentation.split("T"), date = split[0];
  40515. return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
  40516. }
  40517. // ../../node_modules/loupe/lib/function.js
  40518. function inspectFunction(func, options) {
  40519. let functionType = func[Symbol.toStringTag] || "Function", name = func.name;
  40520. return name ? options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special");
  40521. }
  40522. // ../../node_modules/loupe/lib/map.js
  40523. function inspectMapEntry([key, value], options) {
  40524. return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`;
  40525. }
  40526. function mapToEntries(map2) {
  40527. let entries = [];
  40528. return map2.forEach((value, key) => {
  40529. entries.push([key, value]);
  40530. }), entries;
  40531. }
  40532. function inspectMap(map2, options) {
  40533. return map2.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`);
  40534. }
  40535. // ../../node_modules/loupe/lib/number.js
  40536. var isNaN2 = Number.isNaN || ((i) => i !== i);
  40537. function inspectNumber(number, options) {
  40538. return isNaN2(number) ? options.stylize("NaN", "number") : number === 1 / 0 ? options.stylize("Infinity", "number") : number === -1 / 0 ? options.stylize("-Infinity", "number") : number === 0 ? options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number") : options.stylize(truncate(String(number), options.truncate), "number");
  40539. }
  40540. // ../../node_modules/loupe/lib/bigint.js
  40541. function inspectBigInt(number, options) {
  40542. let nums = truncate(number.toString(), options.truncate - 1);
  40543. return nums !== truncator && (nums += "n"), options.stylize(nums, "bigint");
  40544. }
  40545. // ../../node_modules/loupe/lib/regexp.js
  40546. function inspectRegExp(value, options) {
  40547. let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source;
  40548. return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
  40549. }
  40550. // ../../node_modules/loupe/lib/set.js
  40551. function arrayFromSet(set3) {
  40552. let values = [];
  40553. return set3.forEach((value) => {
  40554. values.push(value);
  40555. }), values;
  40556. }
  40557. function inspectSet(set3, options) {
  40558. return set3.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList(arrayFromSet(set3), options)} }`);
  40559. }
  40560. // ../../node_modules/loupe/lib/string.js
  40561. var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters = {
  40562. "\b": "\\b",
  40563. " ": "\\t",
  40564. "\n": "\\n",
  40565. "\f": "\\f",
  40566. "\r": "\\r",
  40567. "'": "\\'",
  40568. "\\": "\\\\"
  40569. }, hex = 16, unicodeLength = 4;
  40570. function escape(char2) {
  40571. return escapeCharacters[char2] || `\\u${`0000${char2.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;
  40572. }
  40573. function inspectString(string, options) {
  40574. return stringEscapeChars.test(string) && (string = string.replace(stringEscapeChars, escape)), options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
  40575. }
  40576. // ../../node_modules/loupe/lib/symbol.js
  40577. function inspectSymbol(value) {
  40578. return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString();
  40579. }
  40580. // ../../node_modules/loupe/lib/promise.js
  40581. var getPromiseValue = () => "Promise{\u2026}";
  40582. try {
  40583. let { getPromiseDetails, kPending, kRejected } = process.binding("util");
  40584. Array.isArray(getPromiseDetails(Promise.resolve())) && (getPromiseValue = (value, options) => {
  40585. let [state3, innerValue] = getPromiseDetails(value);
  40586. return state3 === kPending ? "Promise{<pending>}" : `Promise${state3 === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
  40587. });
  40588. } catch {
  40589. }
  40590. var promise_default = getPromiseValue;
  40591. // ../../node_modules/loupe/lib/object.js
  40592. function inspectObject(object, options) {
  40593. let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
  40594. if (properties.length === 0 && symbols.length === 0)
  40595. return "{}";
  40596. if (options.truncate -= 4, options.seen = options.seen || [], options.seen.includes(object))
  40597. return "[Circular]";
  40598. options.seen.push(object);
  40599. let propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty), symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty);
  40600. options.seen.pop();
  40601. let sep = "";
  40602. return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`;
  40603. }
  40604. // ../../node_modules/loupe/lib/class.js
  40605. var toStringTag = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
  40606. function inspectClass(value, options) {
  40607. let name = "";
  40608. return toStringTag && toStringTag in value && (name = value[toStringTag]), name = name || value.constructor.name, (!name || name === "_class") && (name = "<Anonymous Class>"), options.truncate -= name.length, `${name}${inspectObject(value, options)}`;
  40609. }
  40610. // ../../node_modules/loupe/lib/arguments.js
  40611. function inspectArguments(args, options) {
  40612. return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList(args, options)} ]`);
  40613. }
  40614. // ../../node_modules/loupe/lib/error.js
  40615. var errorKeys = [
  40616. "stack",
  40617. "line",
  40618. "column",
  40619. "name",
  40620. "message",
  40621. "fileName",
  40622. "lineNumber",
  40623. "columnNumber",
  40624. "number",
  40625. "description",
  40626. "cause"
  40627. ];
  40628. function inspectObject2(error, options) {
  40629. let properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1), name = error.name;
  40630. options.truncate -= name.length;
  40631. let message = "";
  40632. if (typeof error.message == "string" ? message = truncate(error.message, options.truncate) : properties.unshift("message"), message = message ? `: ${message}` : "", options.truncate -= message.length + 5, options.seen = options.seen || [], options.seen.includes(error))
  40633. return "[Circular]";
  40634. options.seen.push(error);
  40635. let propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);
  40636. return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
  40637. }
  40638. // ../../node_modules/loupe/lib/html.js
  40639. function inspectAttribute([key, value], options) {
  40640. return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`;
  40641. }
  40642. function inspectNodeCollection(collection, options) {
  40643. return inspectList(collection, options, inspectNode, `
  40644. `);
  40645. }
  40646. function inspectNode(node2, options) {
  40647. switch (node2.nodeType) {
  40648. case 1:
  40649. return inspectHTML(node2, options);
  40650. case 3:
  40651. return options.inspect(node2.data, options);
  40652. default:
  40653. return options.inspect(node2, options);
  40654. }
  40655. }
  40656. function inspectHTML(element, options) {
  40657. let properties = element.getAttributeNames(), name = element.tagName.toLowerCase(), head2 = options.stylize(`<${name}`, "special"), headClose = options.stylize(">", "special"), tail2 = options.stylize(`</${name}>`, "special");
  40658. options.truncate -= name.length * 2 + 5;
  40659. let propertyContents = "";
  40660. properties.length > 0 && (propertyContents += " ", propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ")), options.truncate -= propertyContents.length;
  40661. let truncate3 = options.truncate, children = inspectNodeCollection(element.children, options);
  40662. return children && children.length > truncate3 && (children = `${truncator}(${element.children.length})`), `${head2}${propertyContents}${headClose}${children}${tail2}`;
  40663. }
  40664. // ../../node_modules/loupe/lib/index.js
  40665. var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect = Symbol.for("nodejs.util.inspect.custom"), constructorMap = /* @__PURE__ */ new WeakMap(), stringTagMap = {}, baseTypesMap = {
  40666. undefined: (value, options) => options.stylize("undefined", "undefined"),
  40667. null: (value, options) => options.stylize("null", "null"),
  40668. boolean: (value, options) => options.stylize(String(value), "boolean"),
  40669. Boolean: (value, options) => options.stylize(String(value), "boolean"),
  40670. number: inspectNumber,
  40671. Number: inspectNumber,
  40672. bigint: inspectBigInt,
  40673. BigInt: inspectBigInt,
  40674. string: inspectString,
  40675. String: inspectString,
  40676. function: inspectFunction,
  40677. Function: inspectFunction,
  40678. symbol: inspectSymbol,
  40679. // A Symbol polyfill will return `Symbol` not `symbol` from typedetect
  40680. Symbol: inspectSymbol,
  40681. Array: inspectArray,
  40682. Date: inspectDate,
  40683. Map: inspectMap,
  40684. Set: inspectSet,
  40685. RegExp: inspectRegExp,
  40686. Promise: promise_default,
  40687. // WeakSet, WeakMap are totally opaque to us
  40688. WeakSet: (value, options) => options.stylize("WeakSet{\u2026}", "special"),
  40689. WeakMap: (value, options) => options.stylize("WeakMap{\u2026}", "special"),
  40690. Arguments: inspectArguments,
  40691. Int8Array: inspectTypedArray,
  40692. Uint8Array: inspectTypedArray,
  40693. Uint8ClampedArray: inspectTypedArray,
  40694. Int16Array: inspectTypedArray,
  40695. Uint16Array: inspectTypedArray,
  40696. Int32Array: inspectTypedArray,
  40697. Uint32Array: inspectTypedArray,
  40698. Float32Array: inspectTypedArray,
  40699. Float64Array: inspectTypedArray,
  40700. Generator: () => "",
  40701. DataView: () => "",
  40702. ArrayBuffer: () => "",
  40703. Error: inspectObject2,
  40704. HTMLCollection: inspectNodeCollection,
  40705. NodeList: inspectNodeCollection
  40706. }, inspectCustom = (value, options, type5) => chaiInspect in value && typeof value[chaiInspect] == "function" ? value[chaiInspect](options) : nodeInspect in value && typeof value[nodeInspect] == "function" ? value[nodeInspect](options.depth, options) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap.has(value.constructor) ? constructorMap.get(value.constructor)(value, options) : stringTagMap[type5] ? stringTagMap[type5](value, options) : "", toString3 = Object.prototype.toString;
  40707. function inspect2(value, opts = {}) {
  40708. let options = normaliseOptions(opts, inspect2), { customInspect } = options, type5 = value === null ? "null" : typeof value;
  40709. if (type5 === "object" && (type5 = toString3.call(value).slice(8, -1)), type5 in baseTypesMap)
  40710. return baseTypesMap[type5](value, options);
  40711. if (customInspect && value) {
  40712. let output = inspectCustom(value, options, type5);
  40713. if (output)
  40714. return typeof output == "string" ? output : inspect2(output, options);
  40715. }
  40716. let proto = value ? Object.getPrototypeOf(value) : !1;
  40717. return proto === Object.prototype || proto === null ? inspectObject(value, options) : value && typeof HTMLElement == "function" && value instanceof HTMLElement ? inspectHTML(value, options) : "constructor" in value ? value.constructor !== Object ? inspectClass(value, options) : inspectObject(value, options) : value === Object(value) ? inspectObject(value, options) : options.stylize(String(value), type5);
  40718. }
  40719. // ../../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
  40720. var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins, PLUGINS = [
  40721. ReactTestComponent,
  40722. ReactElement,
  40723. DOMElement,
  40724. DOMCollection,
  40725. Immutable,
  40726. AsymmetricMatcher
  40727. ];
  40728. function stringify5(object, maxDepth = 10, { maxLength, ...options } = {}) {
  40729. let MAX_LENGTH = maxLength ?? 1e4, result;
  40730. try {
  40731. result = format(object, {
  40732. maxDepth,
  40733. escapeString: !1,
  40734. plugins: PLUGINS,
  40735. ...options
  40736. });
  40737. } catch {
  40738. result = format(object, {
  40739. callToJSON: !1,
  40740. maxDepth,
  40741. escapeString: !1,
  40742. plugins: PLUGINS,
  40743. ...options
  40744. });
  40745. }
  40746. return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify5(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), {
  40747. maxLength,
  40748. ...options
  40749. }) : result;
  40750. }
  40751. var formatRegExp = /%[sdjifoOc%]/g;
  40752. function format2(...args) {
  40753. if (typeof args[0] != "string") {
  40754. let objects = [];
  40755. for (let i2 = 0; i2 < args.length; i2++)
  40756. objects.push(inspect3(args[i2], {
  40757. depth: 0,
  40758. colors: !1
  40759. }));
  40760. return objects.join(" ");
  40761. }
  40762. let len = args.length, i = 1, template = args[0], str2 = String(template).replace(formatRegExp, (x) => {
  40763. if (x === "%%")
  40764. return "%";
  40765. if (i >= len)
  40766. return x;
  40767. switch (x) {
  40768. case "%s": {
  40769. let value = args[i++];
  40770. return typeof value == "bigint" ? `${value.toString()}n` : typeof value == "number" && value === 0 && 1 / value < 0 ? "-0" : typeof value == "object" && value !== null ? typeof value.toString == "function" && value.toString !== Object.prototype.toString ? value.toString() : inspect3(value, {
  40771. depth: 0,
  40772. colors: !1
  40773. }) : String(value);
  40774. }
  40775. case "%d": {
  40776. let value = args[i++];
  40777. return typeof value == "bigint" ? `${value.toString()}n` : Number(value).toString();
  40778. }
  40779. case "%i": {
  40780. let value = args[i++];
  40781. return typeof value == "bigint" ? `${value.toString()}n` : Number.parseInt(String(value)).toString();
  40782. }
  40783. case "%f":
  40784. return Number.parseFloat(String(args[i++])).toString();
  40785. case "%o":
  40786. return inspect3(args[i++], {
  40787. showHidden: !0,
  40788. showProxy: !0
  40789. });
  40790. case "%O":
  40791. return inspect3(args[i++]);
  40792. case "%c":
  40793. return i++, "";
  40794. case "%j":
  40795. try {
  40796. return JSON.stringify(args[i++]);
  40797. } catch (err) {
  40798. let m3 = err.message;
  40799. if (m3.includes("circular structure") || m3.includes("cyclic structures") || m3.includes("cyclic object"))
  40800. return "[Circular]";
  40801. throw err;
  40802. }
  40803. default:
  40804. return x;
  40805. }
  40806. });
  40807. for (let x = args[i]; i < len; x = args[++i])
  40808. x === null || typeof x != "object" ? str2 += ` ${x}` : str2 += ` ${inspect3(x)}`;
  40809. return str2;
  40810. }
  40811. function inspect3(obj, options = {}) {
  40812. return options.truncate === 0 && (options.truncate = Number.POSITIVE_INFINITY), inspect2(obj, options);
  40813. }
  40814. function getDefaultExportFromCjs2(x) {
  40815. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
  40816. }
  40817. // ../../node_modules/@vitest/utils/dist/helpers.js
  40818. function assertTypes(value, name, types) {
  40819. let receivedType = typeof value;
  40820. if (!types.includes(receivedType))
  40821. throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`);
  40822. }
  40823. function isObject5(item) {
  40824. return item != null && typeof item == "object" && !Array.isArray(item);
  40825. }
  40826. function isFinalObj(obj) {
  40827. return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;
  40828. }
  40829. function getType2(value) {
  40830. return Object.prototype.toString.apply(value).slice(8, -1);
  40831. }
  40832. function collectOwnProperties(obj, collector) {
  40833. let collect = typeof collector == "function" ? collector : (key) => collector.add(key);
  40834. Object.getOwnPropertyNames(obj).forEach(collect), Object.getOwnPropertySymbols(obj).forEach(collect);
  40835. }
  40836. function getOwnProperties(obj) {
  40837. let ownProps = /* @__PURE__ */ new Set();
  40838. return isFinalObj(obj) ? [] : (collectOwnProperties(obj, ownProps), Array.from(ownProps));
  40839. }
  40840. var defaultCloneOptions = { forceWritable: !1 };
  40841. function deepClone(val, options = defaultCloneOptions) {
  40842. return clone2(val, /* @__PURE__ */ new WeakMap(), options);
  40843. }
  40844. function clone2(val, seen, options = defaultCloneOptions) {
  40845. let k, out;
  40846. if (seen.has(val))
  40847. return seen.get(val);
  40848. if (Array.isArray(val)) {
  40849. for (out = Array.from({ length: k = val.length }), seen.set(val, out); k--; )
  40850. out[k] = clone2(val[k], seen, options);
  40851. return out;
  40852. }
  40853. if (Object.prototype.toString.call(val) === "[object Object]") {
  40854. out = Object.create(Object.getPrototypeOf(val)), seen.set(val, out);
  40855. let props = getOwnProperties(val);
  40856. for (let k2 of props) {
  40857. let descriptor = Object.getOwnPropertyDescriptor(val, k2);
  40858. if (!descriptor)
  40859. continue;
  40860. let cloned = clone2(val[k2], seen, options);
  40861. options.forceWritable ? Object.defineProperty(out, k2, {
  40862. enumerable: descriptor.enumerable,
  40863. configurable: !0,
  40864. writable: !0,
  40865. value: cloned
  40866. }) : "get" in descriptor ? Object.defineProperty(out, k2, {
  40867. ...descriptor,
  40868. get() {
  40869. return cloned;
  40870. }
  40871. }) : Object.defineProperty(out, k2, {
  40872. ...descriptor,
  40873. value: cloned
  40874. });
  40875. }
  40876. return out;
  40877. }
  40878. return val;
  40879. }
  40880. function noop2() {
  40881. }
  40882. // ../../node_modules/@vitest/utils/dist/diff.js
  40883. var DIFF_DELETE = -1, DIFF_INSERT = 1, DIFF_EQUAL = 0, Diff = class {
  40884. 0;
  40885. 1;
  40886. constructor(op, text) {
  40887. this[0] = op, this[1] = text;
  40888. }
  40889. };
  40890. function diff_commonPrefix(text1, text2) {
  40891. if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0))
  40892. return 0;
  40893. let pointermin = 0, pointermax = Math.min(text1.length, text2.length), pointermid = pointermax, pointerstart = 0;
  40894. for (; pointermin < pointermid; )
  40895. text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid) ? (pointermin = pointermid, pointerstart = pointermin) : pointermax = pointermid, pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  40896. return pointermid;
  40897. }
  40898. function diff_commonSuffix(text1, text2) {
  40899. if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1))
  40900. return 0;
  40901. let pointermin = 0, pointermax = Math.min(text1.length, text2.length), pointermid = pointermax, pointerend = 0;
  40902. for (; pointermin < pointermid; )
  40903. text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend) ? (pointermin = pointermid, pointerend = pointermin) : pointermax = pointermid, pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  40904. return pointermid;
  40905. }
  40906. function diff_commonOverlap_(text1, text2) {
  40907. let text1_length = text1.length, text2_length = text2.length;
  40908. if (text1_length === 0 || text2_length === 0)
  40909. return 0;
  40910. text1_length > text2_length ? text1 = text1.substring(text1_length - text2_length) : text1_length < text2_length && (text2 = text2.substring(0, text1_length));
  40911. let text_length = Math.min(text1_length, text2_length);
  40912. if (text1 === text2)
  40913. return text_length;
  40914. let best = 0, length2 = 1;
  40915. for (; ; ) {
  40916. let pattern = text1.substring(text_length - length2), found = text2.indexOf(pattern);
  40917. if (found === -1)
  40918. return best;
  40919. length2 += found, (found === 0 || text1.substring(text_length - length2) === text2.substring(0, length2)) && (best = length2, length2++);
  40920. }
  40921. }
  40922. function diff_cleanupSemantic(diffs) {
  40923. let changes = !1, equalities = [], equalitiesLength = 0, lastEquality = null, pointer4 = 0, length_insertions1 = 0, length_deletions1 = 0, length_insertions2 = 0, length_deletions2 = 0;
  40924. for (; pointer4 < diffs.length; )
  40925. diffs[pointer4][0] === DIFF_EQUAL ? (equalities[equalitiesLength++] = pointer4, length_insertions1 = length_insertions2, length_deletions1 = length_deletions2, length_insertions2 = 0, length_deletions2 = 0, lastEquality = diffs[pointer4][1]) : (diffs[pointer4][0] === DIFF_INSERT ? length_insertions2 += diffs[pointer4][1].length : length_deletions2 += diffs[pointer4][1].length, lastEquality && lastEquality.length <= Math.max(length_insertions1, length_deletions1) && lastEquality.length <= Math.max(length_insertions2, length_deletions2) && (diffs.splice(equalities[equalitiesLength - 1], 0, new Diff(DIFF_DELETE, lastEquality)), diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT, equalitiesLength--, equalitiesLength--, pointer4 = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1, length_insertions1 = 0, length_deletions1 = 0, length_insertions2 = 0, length_deletions2 = 0, lastEquality = null, changes = !0)), pointer4++;
  40926. for (changes && diff_cleanupMerge(diffs), diff_cleanupSemanticLossless(diffs), pointer4 = 1; pointer4 < diffs.length; ) {
  40927. if (diffs[pointer4 - 1][0] === DIFF_DELETE && diffs[pointer4][0] === DIFF_INSERT) {
  40928. let deletion = diffs[pointer4 - 1][1], insertion = diffs[pointer4][1], overlap_length1 = diff_commonOverlap_(deletion, insertion), overlap_length2 = diff_commonOverlap_(insertion, deletion);
  40929. overlap_length1 >= overlap_length2 ? (overlap_length1 >= deletion.length / 2 || overlap_length1 >= insertion.length / 2) && (diffs.splice(pointer4, 0, new Diff(DIFF_EQUAL, insertion.substring(0, overlap_length1))), diffs[pointer4 - 1][1] = deletion.substring(0, deletion.length - overlap_length1), diffs[pointer4 + 1][1] = insertion.substring(overlap_length1), pointer4++) : (overlap_length2 >= deletion.length / 2 || overlap_length2 >= insertion.length / 2) && (diffs.splice(pointer4, 0, new Diff(DIFF_EQUAL, deletion.substring(0, overlap_length2))), diffs[pointer4 - 1][0] = DIFF_INSERT, diffs[pointer4 - 1][1] = insertion.substring(0, insertion.length - overlap_length2), diffs[pointer4 + 1][0] = DIFF_DELETE, diffs[pointer4 + 1][1] = deletion.substring(overlap_length2), pointer4++), pointer4++;
  40930. }
  40931. pointer4++;
  40932. }
  40933. }
  40934. var nonAlphaNumericRegex_ = /[^a-z0-9]/i, whitespaceRegex_ = /\s/, linebreakRegex_ = /[\r\n]/, blanklineEndRegex_ = /\n\r?\n$/, blanklineStartRegex_ = /^\r?\n\r?\n/;
  40935. function diff_cleanupSemanticLossless(diffs) {
  40936. let pointer4 = 1;
  40937. for (; pointer4 < diffs.length - 1; ) {
  40938. if (diffs[pointer4 - 1][0] === DIFF_EQUAL && diffs[pointer4 + 1][0] === DIFF_EQUAL) {
  40939. let equality1 = diffs[pointer4 - 1][1], edit = diffs[pointer4][1], equality2 = diffs[pointer4 + 1][1], commonOffset = diff_commonSuffix(equality1, edit);
  40940. if (commonOffset) {
  40941. let commonString = edit.substring(edit.length - commonOffset);
  40942. equality1 = equality1.substring(0, equality1.length - commonOffset), edit = commonString + edit.substring(0, edit.length - commonOffset), equality2 = commonString + equality2;
  40943. }
  40944. let bestEquality1 = equality1, bestEdit = edit, bestEquality2 = equality2, bestScore = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);
  40945. for (; edit.charAt(0) === equality2.charAt(0); ) {
  40946. equality1 += edit.charAt(0), edit = edit.substring(1) + equality2.charAt(0), equality2 = equality2.substring(1);
  40947. let score = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);
  40948. score >= bestScore && (bestScore = score, bestEquality1 = equality1, bestEdit = edit, bestEquality2 = equality2);
  40949. }
  40950. diffs[pointer4 - 1][1] !== bestEquality1 && (bestEquality1 ? diffs[pointer4 - 1][1] = bestEquality1 : (diffs.splice(pointer4 - 1, 1), pointer4--), diffs[pointer4][1] = bestEdit, bestEquality2 ? diffs[pointer4 + 1][1] = bestEquality2 : (diffs.splice(pointer4 + 1, 1), pointer4--));
  40951. }
  40952. pointer4++;
  40953. }
  40954. }
  40955. function diff_cleanupMerge(diffs) {
  40956. diffs.push(new Diff(DIFF_EQUAL, ""));
  40957. let pointer4 = 0, count_delete = 0, count_insert = 0, text_delete = "", text_insert = "", commonlength;
  40958. for (; pointer4 < diffs.length; )
  40959. switch (diffs[pointer4][0]) {
  40960. case DIFF_INSERT:
  40961. count_insert++, text_insert += diffs[pointer4][1], pointer4++;
  40962. break;
  40963. case DIFF_DELETE:
  40964. count_delete++, text_delete += diffs[pointer4][1], pointer4++;
  40965. break;
  40966. case DIFF_EQUAL:
  40967. count_delete + count_insert > 1 ? (count_delete !== 0 && count_insert !== 0 && (commonlength = diff_commonPrefix(text_insert, text_delete), commonlength !== 0 && (pointer4 - count_delete - count_insert > 0 && diffs[pointer4 - count_delete - count_insert - 1][0] === DIFF_EQUAL ? diffs[pointer4 - count_delete - count_insert - 1][1] += text_insert.substring(0, commonlength) : (diffs.splice(0, 0, new Diff(DIFF_EQUAL, text_insert.substring(0, commonlength))), pointer4++), text_insert = text_insert.substring(commonlength), text_delete = text_delete.substring(commonlength)), commonlength = diff_commonSuffix(text_insert, text_delete), commonlength !== 0 && (diffs[pointer4][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer4][1], text_insert = text_insert.substring(0, text_insert.length - commonlength), text_delete = text_delete.substring(0, text_delete.length - commonlength))), pointer4 -= count_delete + count_insert, diffs.splice(pointer4, count_delete + count_insert), text_delete.length && (diffs.splice(pointer4, 0, new Diff(DIFF_DELETE, text_delete)), pointer4++), text_insert.length && (diffs.splice(pointer4, 0, new Diff(DIFF_INSERT, text_insert)), pointer4++), pointer4++) : pointer4 !== 0 && diffs[pointer4 - 1][0] === DIFF_EQUAL ? (diffs[pointer4 - 1][1] += diffs[pointer4][1], diffs.splice(pointer4, 1)) : pointer4++, count_insert = 0, count_delete = 0, text_delete = "", text_insert = "";
  40968. break;
  40969. }
  40970. diffs[diffs.length - 1][1] === "" && diffs.pop();
  40971. let changes = !1;
  40972. for (pointer4 = 1; pointer4 < diffs.length - 1; )
  40973. diffs[pointer4 - 1][0] === DIFF_EQUAL && diffs[pointer4 + 1][0] === DIFF_EQUAL && (diffs[pointer4][1].substring(diffs[pointer4][1].length - diffs[pointer4 - 1][1].length) === diffs[pointer4 - 1][1] ? (diffs[pointer4][1] = diffs[pointer4 - 1][1] + diffs[pointer4][1].substring(0, diffs[pointer4][1].length - diffs[pointer4 - 1][1].length), diffs[pointer4 + 1][1] = diffs[pointer4 - 1][1] + diffs[pointer4 + 1][1], diffs.splice(pointer4 - 1, 1), changes = !0) : diffs[pointer4][1].substring(0, diffs[pointer4 + 1][1].length) === diffs[pointer4 + 1][1] && (diffs[pointer4 - 1][1] += diffs[pointer4 + 1][1], diffs[pointer4][1] = diffs[pointer4][1].substring(diffs[pointer4 + 1][1].length) + diffs[pointer4 + 1][1], diffs.splice(pointer4 + 1, 1), changes = !0)), pointer4++;
  40974. changes && diff_cleanupMerge(diffs);
  40975. }
  40976. function diff_cleanupSemanticScore_(one, two) {
  40977. if (!one || !two)
  40978. return 6;
  40979. let char1 = one.charAt(one.length - 1), char2 = two.charAt(0), nonAlphaNumeric1 = char1.match(nonAlphaNumericRegex_), nonAlphaNumeric2 = char2.match(nonAlphaNumericRegex_), whitespace1 = nonAlphaNumeric1 && char1.match(whitespaceRegex_), whitespace2 = nonAlphaNumeric2 && char2.match(whitespaceRegex_), lineBreak1 = whitespace1 && char1.match(linebreakRegex_), lineBreak2 = whitespace2 && char2.match(linebreakRegex_), blankLine1 = lineBreak1 && one.match(blanklineEndRegex_), blankLine2 = lineBreak2 && two.match(blanklineStartRegex_);
  40980. return blankLine1 || blankLine2 ? 5 : lineBreak1 || lineBreak2 ? 4 : nonAlphaNumeric1 && !whitespace1 && whitespace2 ? 3 : whitespace1 || whitespace2 ? 2 : nonAlphaNumeric1 || nonAlphaNumeric2 ? 1 : 0;
  40981. }
  40982. var NO_DIFF_MESSAGE = "Compared values have no visual difference.", SIMILAR_MESSAGE = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.", build = {}, hasRequiredBuild;
  40983. function requireBuild() {
  40984. if (hasRequiredBuild) return build;
  40985. hasRequiredBuild = 1, Object.defineProperty(build, "__esModule", {
  40986. value: !0
  40987. }), build.default = diffSequence;
  40988. let pkg = "diff-sequences", NOT_YET_SET = 0, countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => {
  40989. let nCommon = 0;
  40990. for (; aIndex < aEnd && bIndex < bEnd && isCommon(aIndex, bIndex); )
  40991. aIndex += 1, bIndex += 1, nCommon += 1;
  40992. return nCommon;
  40993. }, countCommonItemsR = (aStart, aIndex, bStart, bIndex, isCommon) => {
  40994. let nCommon = 0;
  40995. for (; aStart <= aIndex && bStart <= bIndex && isCommon(aIndex, bIndex); )
  40996. aIndex -= 1, bIndex -= 1, nCommon += 1;
  40997. return nCommon;
  40998. }, extendPathsF = (d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF) => {
  40999. let iF = 0, kF = -d, aFirst = aIndexesF[iF], aIndexPrev1 = aFirst;
  41000. aIndexesF[iF] += countCommonItemsF(
  41001. aFirst + 1,
  41002. aEnd,
  41003. bF + aFirst - kF + 1,
  41004. bEnd,
  41005. isCommon
  41006. );
  41007. let nF = d < iMaxF ? d : iMaxF;
  41008. for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) {
  41009. if (iF !== d && aIndexPrev1 < aIndexesF[iF])
  41010. aFirst = aIndexesF[iF];
  41011. else if (aFirst = aIndexPrev1 + 1, aEnd <= aFirst)
  41012. return iF - 1;
  41013. aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aFirst + countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon);
  41014. }
  41015. return iMaxF;
  41016. }, extendPathsR = (d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR) => {
  41017. let iR = 0, kR = d, aFirst = aIndexesR[iR], aIndexPrev1 = aFirst;
  41018. aIndexesR[iR] -= countCommonItemsR(
  41019. aStart,
  41020. aFirst - 1,
  41021. bStart,
  41022. bR + aFirst - kR - 1,
  41023. isCommon
  41024. );
  41025. let nR = d < iMaxR ? d : iMaxR;
  41026. for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) {
  41027. if (iR !== d && aIndexesR[iR] < aIndexPrev1)
  41028. aFirst = aIndexesR[iR];
  41029. else if (aFirst = aIndexPrev1 - 1, aFirst < aStart)
  41030. return iR - 1;
  41031. aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aFirst - countCommonItemsR(
  41032. aStart,
  41033. aFirst - 1,
  41034. bStart,
  41035. bR + aFirst - kR - 1,
  41036. isCommon
  41037. );
  41038. }
  41039. return iMaxR;
  41040. }, extendOverlappablePathsF = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
  41041. let bF = bStart - aStart, aLength = aEnd - aStart, baDeltaLength = bEnd - bStart - aLength, kMinOverlapF = -baDeltaLength - (d - 1), kMaxOverlapF = -baDeltaLength + (d - 1), aIndexPrev1 = NOT_YET_SET, nF = d < iMaxF ? d : iMaxF;
  41042. for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) {
  41043. let insert = iF === 0 || iF !== d && aIndexPrev1 < aIndexesF[iF], aLastPrev = insert ? aIndexesF[iF] : aIndexPrev1, aFirst = insert ? aLastPrev : aLastPrev + 1, bFirst = bF + aFirst - kF, nCommonF = countCommonItemsF(
  41044. aFirst + 1,
  41045. aEnd,
  41046. bFirst + 1,
  41047. bEnd,
  41048. isCommon
  41049. ), aLast = aFirst + nCommonF;
  41050. if (aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aLast, kMinOverlapF <= kF && kF <= kMaxOverlapF) {
  41051. let iR = (d - 1 - (kF + baDeltaLength)) / 2;
  41052. if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) {
  41053. let bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1), nCommonR = countCommonItemsR(
  41054. aStart,
  41055. aLastPrev,
  41056. bStart,
  41057. bLastPrev,
  41058. isCommon
  41059. ), aIndexPrevFirst = aLastPrev - nCommonR, bIndexPrevFirst = bLastPrev - nCommonR, aEndPreceding = aIndexPrevFirst + 1, bEndPreceding = bIndexPrevFirst + 1;
  41060. division.nChangePreceding = d - 1, d - 1 === aEndPreceding + bEndPreceding - aStart - bStart ? (division.aEndPreceding = aStart, division.bEndPreceding = bStart) : (division.aEndPreceding = aEndPreceding, division.bEndPreceding = bEndPreceding), division.nCommonPreceding = nCommonR, nCommonR !== 0 && (division.aCommonPreceding = aEndPreceding, division.bCommonPreceding = bEndPreceding), division.nCommonFollowing = nCommonF, nCommonF !== 0 && (division.aCommonFollowing = aFirst + 1, division.bCommonFollowing = bFirst + 1);
  41061. let aStartFollowing = aLast + 1, bStartFollowing = bFirst + nCommonF + 1;
  41062. return division.nChangeFollowing = d - 1, d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing), !0;
  41063. }
  41064. }
  41065. }
  41066. return !1;
  41067. }, extendOverlappablePathsR = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
  41068. let bR = bEnd - aEnd, aLength = aEnd - aStart, baDeltaLength = bEnd - bStart - aLength, kMinOverlapR = baDeltaLength - d, kMaxOverlapR = baDeltaLength + d, aIndexPrev1 = NOT_YET_SET, nR = d < iMaxR ? d : iMaxR;
  41069. for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) {
  41070. let insert = iR === 0 || iR !== d && aIndexesR[iR] < aIndexPrev1, aLastPrev = insert ? aIndexesR[iR] : aIndexPrev1, aFirst = insert ? aLastPrev : aLastPrev - 1, bFirst = bR + aFirst - kR, nCommonR = countCommonItemsR(
  41071. aStart,
  41072. aFirst - 1,
  41073. bStart,
  41074. bFirst - 1,
  41075. isCommon
  41076. ), aLast = aFirst - nCommonR;
  41077. if (aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aLast, kMinOverlapR <= kR && kR <= kMaxOverlapR) {
  41078. let iF = (d + (kR - baDeltaLength)) / 2;
  41079. if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) {
  41080. let bLast = bFirst - nCommonR;
  41081. if (division.nChangePreceding = d, d === aLast + bLast - aStart - bStart ? (division.aEndPreceding = aStart, division.bEndPreceding = bStart) : (division.aEndPreceding = aLast, division.bEndPreceding = bLast), division.nCommonPreceding = nCommonR, nCommonR !== 0 && (division.aCommonPreceding = aLast, division.bCommonPreceding = bLast), division.nChangeFollowing = d - 1, d === 1)
  41082. division.nCommonFollowing = 0, division.aStartFollowing = aEnd, division.bStartFollowing = bEnd;
  41083. else {
  41084. let bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1), nCommonF = countCommonItemsF(
  41085. aLastPrev,
  41086. aEnd,
  41087. bLastPrev,
  41088. bEnd,
  41089. isCommon
  41090. );
  41091. division.nCommonFollowing = nCommonF, nCommonF !== 0 && (division.aCommonFollowing = aLastPrev, division.bCommonFollowing = bLastPrev);
  41092. let aStartFollowing = aLastPrev + nCommonF, bStartFollowing = bLastPrev + nCommonF;
  41093. d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing);
  41094. }
  41095. return !0;
  41096. }
  41097. }
  41098. }
  41099. return !1;
  41100. }, divide = (nChange, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, aIndexesR, division) => {
  41101. let bF = bStart - aStart, bR = bEnd - aEnd, aLength = aEnd - aStart, bLength = bEnd - bStart, baDeltaLength = bLength - aLength, iMaxF = aLength, iMaxR = aLength;
  41102. if (aIndexesF[0] = aStart - 1, aIndexesR[0] = aEnd, baDeltaLength % 2 === 0) {
  41103. let dMin = (nChange || baDeltaLength) / 2, dMax = (aLength + bLength) / 2;
  41104. for (let d = 1; d <= dMax; d += 1)
  41105. if (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d < dMin)
  41106. iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);
  41107. else if (
  41108. // If a reverse path overlaps a forward path in the same diagonal,
  41109. // return a division of the index intervals at the middle change.
  41110. extendOverlappablePathsR(
  41111. d,
  41112. aStart,
  41113. aEnd,
  41114. bStart,
  41115. bEnd,
  41116. isCommon,
  41117. aIndexesF,
  41118. iMaxF,
  41119. aIndexesR,
  41120. iMaxR,
  41121. division
  41122. )
  41123. )
  41124. return;
  41125. } else {
  41126. let dMin = ((nChange || baDeltaLength) + 1) / 2, dMax = (aLength + bLength + 1) / 2, d = 1;
  41127. for (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d += 1; d <= dMax; d += 1)
  41128. if (iMaxR = extendPathsR(
  41129. d - 1,
  41130. aStart,
  41131. bStart,
  41132. bR,
  41133. isCommon,
  41134. aIndexesR,
  41135. iMaxR
  41136. ), d < dMin)
  41137. iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
  41138. else if (
  41139. // If a forward path overlaps a reverse path in the same diagonal,
  41140. // return a division of the index intervals at the middle change.
  41141. extendOverlappablePathsF(
  41142. d,
  41143. aStart,
  41144. aEnd,
  41145. bStart,
  41146. bEnd,
  41147. isCommon,
  41148. aIndexesF,
  41149. iMaxF,
  41150. aIndexesR,
  41151. iMaxR,
  41152. division
  41153. )
  41154. )
  41155. return;
  41156. }
  41157. throw new Error(
  41158. `${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}`
  41159. );
  41160. }, findSubsequences = (nChange, aStart, aEnd, bStart, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division) => {
  41161. if (bEnd - bStart < aEnd - aStart) {
  41162. if (transposed = !transposed, transposed && callbacks.length === 1) {
  41163. let { foundSubsequence: foundSubsequence2, isCommon: isCommon2 } = callbacks[0];
  41164. callbacks[1] = {
  41165. foundSubsequence: (nCommon, bCommon, aCommon) => {
  41166. foundSubsequence2(nCommon, aCommon, bCommon);
  41167. },
  41168. isCommon: (bIndex, aIndex) => isCommon2(aIndex, bIndex)
  41169. };
  41170. }
  41171. let tStart = aStart, tEnd = aEnd;
  41172. aStart = bStart, aEnd = bEnd, bStart = tStart, bEnd = tEnd;
  41173. }
  41174. let { foundSubsequence, isCommon } = callbacks[transposed ? 1 : 0];
  41175. divide(
  41176. nChange,
  41177. aStart,
  41178. aEnd,
  41179. bStart,
  41180. bEnd,
  41181. isCommon,
  41182. aIndexesF,
  41183. aIndexesR,
  41184. division
  41185. );
  41186. let {
  41187. nChangePreceding,
  41188. aEndPreceding,
  41189. bEndPreceding,
  41190. nCommonPreceding,
  41191. aCommonPreceding,
  41192. bCommonPreceding,
  41193. nCommonFollowing,
  41194. aCommonFollowing,
  41195. bCommonFollowing,
  41196. nChangeFollowing,
  41197. aStartFollowing,
  41198. bStartFollowing
  41199. } = division;
  41200. aStart < aEndPreceding && bStart < bEndPreceding && findSubsequences(
  41201. nChangePreceding,
  41202. aStart,
  41203. aEndPreceding,
  41204. bStart,
  41205. bEndPreceding,
  41206. transposed,
  41207. callbacks,
  41208. aIndexesF,
  41209. aIndexesR,
  41210. division
  41211. ), nCommonPreceding !== 0 && foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding), nCommonFollowing !== 0 && foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing), aStartFollowing < aEnd && bStartFollowing < bEnd && findSubsequences(
  41212. nChangeFollowing,
  41213. aStartFollowing,
  41214. aEnd,
  41215. bStartFollowing,
  41216. bEnd,
  41217. transposed,
  41218. callbacks,
  41219. aIndexesF,
  41220. aIndexesR,
  41221. division
  41222. );
  41223. }, validateLength = (name, arg) => {
  41224. if (typeof arg != "number")
  41225. throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);
  41226. if (!Number.isSafeInteger(arg))
  41227. throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);
  41228. if (arg < 0)
  41229. throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`);
  41230. }, validateCallback = (name, arg) => {
  41231. let type5 = typeof arg;
  41232. if (type5 !== "function")
  41233. throw new TypeError(`${pkg}: ${name} typeof ${type5} is not a function`);
  41234. };
  41235. function diffSequence(aLength, bLength, isCommon, foundSubsequence) {
  41236. validateLength("aLength", aLength), validateLength("bLength", bLength), validateCallback("isCommon", isCommon), validateCallback("foundSubsequence", foundSubsequence);
  41237. let nCommonF = countCommonItemsF(0, aLength, 0, bLength, isCommon);
  41238. if (nCommonF !== 0 && foundSubsequence(nCommonF, 0, 0), aLength !== nCommonF || bLength !== nCommonF) {
  41239. let aStart = nCommonF, bStart = nCommonF, nCommonR = countCommonItemsR(
  41240. aStart,
  41241. aLength - 1,
  41242. bStart,
  41243. bLength - 1,
  41244. isCommon
  41245. ), aEnd = aLength - nCommonR, bEnd = bLength - nCommonR, nCommonFR = nCommonF + nCommonR;
  41246. aLength !== nCommonFR && bLength !== nCommonFR && findSubsequences(
  41247. 0,
  41248. aStart,
  41249. aEnd,
  41250. bStart,
  41251. bEnd,
  41252. !1,
  41253. [
  41254. {
  41255. foundSubsequence,
  41256. isCommon
  41257. }
  41258. ],
  41259. [NOT_YET_SET],
  41260. [NOT_YET_SET],
  41261. {
  41262. aCommonFollowing: NOT_YET_SET,
  41263. aCommonPreceding: NOT_YET_SET,
  41264. aEndPreceding: NOT_YET_SET,
  41265. aStartFollowing: NOT_YET_SET,
  41266. bCommonFollowing: NOT_YET_SET,
  41267. bCommonPreceding: NOT_YET_SET,
  41268. bEndPreceding: NOT_YET_SET,
  41269. bStartFollowing: NOT_YET_SET,
  41270. nChangeFollowing: NOT_YET_SET,
  41271. nChangePreceding: NOT_YET_SET,
  41272. nCommonFollowing: NOT_YET_SET,
  41273. nCommonPreceding: NOT_YET_SET
  41274. }
  41275. ), nCommonR !== 0 && foundSubsequence(nCommonR, aEnd, bEnd);
  41276. }
  41277. }
  41278. return build;
  41279. }
  41280. var buildExports = requireBuild(), diffSequences = getDefaultExportFromCjs2(buildExports);
  41281. function formatTrailingSpaces(line2, trailingSpaceFormatter) {
  41282. return line2.replace(/\s+$/, (match3) => trailingSpaceFormatter(match3));
  41283. }
  41284. function printDiffLine(line2, isFirstOrLast, color2, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) {
  41285. return line2.length !== 0 ? color2(`${indicator} ${formatTrailingSpaces(line2, trailingSpaceFormatter)}`) : indicator !== " " ? color2(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color2(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : "";
  41286. }
  41287. function printDeleteLine(line2, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
  41288. return printDiffLine(line2, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
  41289. }
  41290. function printInsertLine(line2, isFirstOrLast, { bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
  41291. return printDiffLine(line2, isFirstOrLast, bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
  41292. }
  41293. function printCommonLine(line2, isFirstOrLast, { commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {
  41294. return printDiffLine(line2, isFirstOrLast, commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
  41295. }
  41296. function createPatchMark(aStart, aEnd, bStart, bEnd, { patchColor }) {
  41297. return patchColor(`@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`);
  41298. }
  41299. function joinAlignedDiffsNoExpand(diffs, options) {
  41300. let iLength = diffs.length, nContextLines = options.contextLines, nContextLines2 = nContextLines + nContextLines, jLength = iLength, hasExcessAtStartOrEnd = !1, nExcessesBetweenChanges = 0, i = 0;
  41301. for (; i !== iLength; ) {
  41302. let iStart = i;
  41303. for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; )
  41304. i += 1;
  41305. if (iStart !== i)
  41306. if (iStart === 0)
  41307. i > nContextLines && (jLength -= i - nContextLines, hasExcessAtStartOrEnd = !0);
  41308. else if (i === iLength) {
  41309. let n = i - iStart;
  41310. n > nContextLines && (jLength -= n - nContextLines, hasExcessAtStartOrEnd = !0);
  41311. } else {
  41312. let n = i - iStart;
  41313. n > nContextLines2 && (jLength -= n - nContextLines2, nExcessesBetweenChanges += 1);
  41314. }
  41315. for (; i !== iLength && diffs[i][0] !== DIFF_EQUAL; )
  41316. i += 1;
  41317. }
  41318. let hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd;
  41319. nExcessesBetweenChanges !== 0 ? jLength += nExcessesBetweenChanges + 1 : hasExcessAtStartOrEnd && (jLength += 1);
  41320. let jLast = jLength - 1, lines = [], jPatchMark = 0;
  41321. hasPatch && lines.push("");
  41322. let aStart = 0, bStart = 0, aEnd = 0, bEnd = 0, pushCommonLine = (line2) => {
  41323. let j = lines.length;
  41324. lines.push(printCommonLine(line2, j === 0 || j === jLast, options)), aEnd += 1, bEnd += 1;
  41325. }, pushDeleteLine = (line2) => {
  41326. let j = lines.length;
  41327. lines.push(printDeleteLine(line2, j === 0 || j === jLast, options)), aEnd += 1;
  41328. }, pushInsertLine = (line2) => {
  41329. let j = lines.length;
  41330. lines.push(printInsertLine(line2, j === 0 || j === jLast, options)), bEnd += 1;
  41331. };
  41332. for (i = 0; i !== iLength; ) {
  41333. let iStart = i;
  41334. for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; )
  41335. i += 1;
  41336. if (iStart !== i)
  41337. if (iStart === 0) {
  41338. i > nContextLines && (iStart = i - nContextLines, aStart = iStart, bStart = iStart, aEnd = aStart, bEnd = bStart);
  41339. for (let iCommon = iStart; iCommon !== i; iCommon += 1)
  41340. pushCommonLine(diffs[iCommon][1]);
  41341. } else if (i === iLength) {
  41342. let iEnd = i - iStart > nContextLines ? iStart + nContextLines : i;
  41343. for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
  41344. pushCommonLine(diffs[iCommon][1]);
  41345. } else {
  41346. let nCommon = i - iStart;
  41347. if (nCommon > nContextLines2) {
  41348. let iEnd = iStart + nContextLines;
  41349. for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
  41350. pushCommonLine(diffs[iCommon][1]);
  41351. lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options), jPatchMark = lines.length, lines.push("");
  41352. let nOmit = nCommon - nContextLines2;
  41353. aStart = aEnd + nOmit, bStart = bEnd + nOmit, aEnd = aStart, bEnd = bStart;
  41354. for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1)
  41355. pushCommonLine(diffs[iCommon][1]);
  41356. } else
  41357. for (let iCommon = iStart; iCommon !== i; iCommon += 1)
  41358. pushCommonLine(diffs[iCommon][1]);
  41359. }
  41360. for (; i !== iLength && diffs[i][0] === DIFF_DELETE; )
  41361. pushDeleteLine(diffs[i][1]), i += 1;
  41362. for (; i !== iLength && diffs[i][0] === DIFF_INSERT; )
  41363. pushInsertLine(diffs[i][1]), i += 1;
  41364. }
  41365. return hasPatch && (lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options)), lines.join(`
  41366. `);
  41367. }
  41368. function joinAlignedDiffsExpand(diffs, options) {
  41369. return diffs.map((diff2, i, diffs2) => {
  41370. let line2 = diff2[1], isFirstOrLast = i === 0 || i === diffs2.length - 1;
  41371. switch (diff2[0]) {
  41372. case DIFF_DELETE:
  41373. return printDeleteLine(line2, isFirstOrLast, options);
  41374. case DIFF_INSERT:
  41375. return printInsertLine(line2, isFirstOrLast, options);
  41376. default:
  41377. return printCommonLine(line2, isFirstOrLast, options);
  41378. }
  41379. }).join(`
  41380. `);
  41381. }
  41382. var noColor = (string) => string, DIFF_CONTEXT_DEFAULT = 5, DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0;
  41383. function getDefaultOptions() {
  41384. return {
  41385. aAnnotation: "Expected",
  41386. aColor: s.green,
  41387. aIndicator: "-",
  41388. bAnnotation: "Received",
  41389. bColor: s.red,
  41390. bIndicator: "+",
  41391. changeColor: s.inverse,
  41392. changeLineTrailingSpaceColor: noColor,
  41393. commonColor: s.dim,
  41394. commonIndicator: " ",
  41395. commonLineTrailingSpaceColor: noColor,
  41396. compareKeys: void 0,
  41397. contextLines: DIFF_CONTEXT_DEFAULT,
  41398. emptyFirstOrLastLinePlaceholder: "",
  41399. expand: !1,
  41400. includeChangeCounts: !1,
  41401. omitAnnotationLines: !1,
  41402. patchColor: s.yellow,
  41403. printBasicPrototype: !1,
  41404. truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,
  41405. truncateAnnotation: "... Diff result is truncated",
  41406. truncateAnnotationColor: noColor
  41407. };
  41408. }
  41409. function getCompareKeys(compareKeys) {
  41410. return compareKeys && typeof compareKeys == "function" ? compareKeys : void 0;
  41411. }
  41412. function getContextLines(contextLines) {
  41413. return typeof contextLines == "number" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT;
  41414. }
  41415. function normalizeDiffOptions(options = {}) {
  41416. return {
  41417. ...getDefaultOptions(),
  41418. ...options,
  41419. compareKeys: getCompareKeys(options.compareKeys),
  41420. contextLines: getContextLines(options.contextLines)
  41421. };
  41422. }
  41423. function isEmptyString(lines) {
  41424. return lines.length === 1 && lines[0].length === 0;
  41425. }
  41426. function countChanges(diffs) {
  41427. let a3 = 0, b = 0;
  41428. return diffs.forEach((diff2) => {
  41429. switch (diff2[0]) {
  41430. case DIFF_DELETE:
  41431. a3 += 1;
  41432. break;
  41433. case DIFF_INSERT:
  41434. b += 1;
  41435. break;
  41436. }
  41437. }), {
  41438. a: a3,
  41439. b
  41440. };
  41441. }
  41442. function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) {
  41443. if (omitAnnotationLines)
  41444. return "";
  41445. let aRest = "", bRest = "";
  41446. if (includeChangeCounts) {
  41447. let aCount = String(changeCounts.a), bCount = String(changeCounts.b), baAnnotationLengthDiff = bAnnotation.length - aAnnotation.length, aAnnotationPadding = " ".repeat(Math.max(0, baAnnotationLengthDiff)), bAnnotationPadding = " ".repeat(Math.max(0, -baAnnotationLengthDiff)), baCountLengthDiff = bCount.length - aCount.length, aCountPadding = " ".repeat(Math.max(0, baCountLengthDiff)), bCountPadding = " ".repeat(Math.max(0, -baCountLengthDiff));
  41448. aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`, bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
  41449. }
  41450. let a3 = `${aIndicator} ${aAnnotation}${aRest}`, b = `${bIndicator} ${bAnnotation}${bRest}`;
  41451. return `${aColor(a3)}
  41452. ${bColor(b)}
  41453. `;
  41454. }
  41455. function printDiffLines(diffs, truncated, options) {
  41456. return printAnnotation(options, countChanges(diffs)) + (options.expand ? joinAlignedDiffsExpand(diffs, options) : joinAlignedDiffsNoExpand(diffs, options)) + (truncated ? options.truncateAnnotationColor(`
  41457. ${options.truncateAnnotation}`) : "");
  41458. }
  41459. function diffLinesUnified(aLines, bLines, options) {
  41460. let normalizedOptions = normalizeDiffOptions(options), [diffs, truncated] = diffLinesRaw(isEmptyString(aLines) ? [] : aLines, isEmptyString(bLines) ? [] : bLines, normalizedOptions);
  41461. return printDiffLines(diffs, truncated, normalizedOptions);
  41462. }
  41463. function diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) {
  41464. if (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare) && (aLinesDisplay = [], aLinesCompare = []), isEmptyString(bLinesDisplay) && isEmptyString(bLinesCompare) && (bLinesDisplay = [], bLinesCompare = []), aLinesDisplay.length !== aLinesCompare.length || bLinesDisplay.length !== bLinesCompare.length)
  41465. return diffLinesUnified(aLinesDisplay, bLinesDisplay, options);
  41466. let [diffs, truncated] = diffLinesRaw(aLinesCompare, bLinesCompare, options), aIndex = 0, bIndex = 0;
  41467. return diffs.forEach((diff2) => {
  41468. switch (diff2[0]) {
  41469. case DIFF_DELETE:
  41470. diff2[1] = aLinesDisplay[aIndex], aIndex += 1;
  41471. break;
  41472. case DIFF_INSERT:
  41473. diff2[1] = bLinesDisplay[bIndex], bIndex += 1;
  41474. break;
  41475. default:
  41476. diff2[1] = bLinesDisplay[bIndex], aIndex += 1, bIndex += 1;
  41477. }
  41478. }), printDiffLines(diffs, truncated, normalizeDiffOptions(options));
  41479. }
  41480. function diffLinesRaw(aLines, bLines, options) {
  41481. let truncate3 = options?.truncateThreshold ?? !1, truncateThreshold = Math.max(Math.floor(options?.truncateThreshold ?? 0), 0), aLength = truncate3 ? Math.min(aLines.length, truncateThreshold) : aLines.length, bLength = truncate3 ? Math.min(bLines.length, truncateThreshold) : bLines.length, truncated = aLength !== aLines.length || bLength !== bLines.length, isCommon = (aIndex2, bIndex2) => aLines[aIndex2] === bLines[bIndex2], diffs = [], aIndex = 0, bIndex = 0;
  41482. for (diffSequences(aLength, bLength, isCommon, (nCommon, aCommon, bCommon) => {
  41483. for (; aIndex !== aCommon; aIndex += 1)
  41484. diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));
  41485. for (; bIndex !== bCommon; bIndex += 1)
  41486. diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));
  41487. for (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1)
  41488. diffs.push(new Diff(DIFF_EQUAL, bLines[bIndex]));
  41489. }); aIndex !== aLength; aIndex += 1)
  41490. diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));
  41491. for (; bIndex !== bLength; bIndex += 1)
  41492. diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));
  41493. return [diffs, truncated];
  41494. }
  41495. function getType3(value) {
  41496. if (value === void 0)
  41497. return "undefined";
  41498. if (value === null)
  41499. return "null";
  41500. if (Array.isArray(value))
  41501. return "array";
  41502. if (typeof value == "boolean")
  41503. return "boolean";
  41504. if (typeof value == "function")
  41505. return "function";
  41506. if (typeof value == "number")
  41507. return "number";
  41508. if (typeof value == "string")
  41509. return "string";
  41510. if (typeof value == "bigint")
  41511. return "bigint";
  41512. if (typeof value == "object") {
  41513. if (value != null) {
  41514. if (value.constructor === RegExp)
  41515. return "regexp";
  41516. if (value.constructor === Map)
  41517. return "map";
  41518. if (value.constructor === Set)
  41519. return "set";
  41520. if (value.constructor === Date)
  41521. return "date";
  41522. }
  41523. return "object";
  41524. } else if (typeof value == "symbol")
  41525. return "symbol";
  41526. throw new Error(`value of unknown type: ${value}`);
  41527. }
  41528. function getNewLineSymbol(string) {
  41529. return string.includes(`\r
  41530. `) ? `\r
  41531. ` : `
  41532. `;
  41533. }
  41534. function diffStrings(a3, b, options) {
  41535. let truncate3 = options?.truncateThreshold ?? !1, truncateThreshold = Math.max(Math.floor(options?.truncateThreshold ?? 0), 0), aLength = a3.length, bLength = b.length;
  41536. if (truncate3) {
  41537. let aMultipleLines = a3.includes(`
  41538. `), bMultipleLines = b.includes(`
  41539. `), aNewLineSymbol = getNewLineSymbol(a3), bNewLineSymbol = getNewLineSymbol(b), _a4 = aMultipleLines ? `${a3.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}
  41540. ` : a3, _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
  41541. ` : b;
  41542. aLength = _a4.length, bLength = _b.length;
  41543. }
  41544. let truncated = aLength !== a3.length || bLength !== b.length, isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b[bIndex2], aIndex = 0, bIndex = 0, diffs = [];
  41545. return diffSequences(aLength, bLength, isCommon, (nCommon, aCommon, bCommon) => {
  41546. aIndex !== aCommon && diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex, aCommon))), bIndex !== bCommon && diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon))), aIndex = aCommon + nCommon, bIndex = bCommon + nCommon, diffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex)));
  41547. }), aIndex !== aLength && diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex))), bIndex !== bLength && diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex))), [diffs, truncated];
  41548. }
  41549. function concatenateRelevantDiffs(op, diffs, changeColor) {
  41550. return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""), "");
  41551. }
  41552. var ChangeBuffer = class {
  41553. op;
  41554. line;
  41555. lines;
  41556. changeColor;
  41557. constructor(op, changeColor) {
  41558. this.op = op, this.line = [], this.lines = [], this.changeColor = changeColor;
  41559. }
  41560. pushSubstring(substring) {
  41561. this.pushDiff(new Diff(this.op, substring));
  41562. }
  41563. pushLine() {
  41564. this.lines.push(this.line.length !== 1 ? new Diff(this.op, concatenateRelevantDiffs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] : new Diff(this.op, this.line[0][1])), this.line.length = 0;
  41565. }
  41566. isLineEmpty() {
  41567. return this.line.length === 0;
  41568. }
  41569. // Minor input to buffer.
  41570. pushDiff(diff2) {
  41571. this.line.push(diff2);
  41572. }
  41573. // Main input to buffer.
  41574. align(diff2) {
  41575. let string = diff2[1];
  41576. if (string.includes(`
  41577. `)) {
  41578. let substrings = string.split(`
  41579. `), iLast = substrings.length - 1;
  41580. substrings.forEach((substring, i) => {
  41581. i < iLast ? (this.pushSubstring(substring), this.pushLine()) : substring.length !== 0 && this.pushSubstring(substring);
  41582. });
  41583. } else
  41584. this.pushDiff(diff2);
  41585. }
  41586. // Output from buffer.
  41587. moveLinesTo(lines) {
  41588. this.isLineEmpty() || this.pushLine(), lines.push(...this.lines), this.lines.length = 0;
  41589. }
  41590. }, CommonBuffer = class {
  41591. deleteBuffer;
  41592. insertBuffer;
  41593. lines;
  41594. constructor(deleteBuffer, insertBuffer) {
  41595. this.deleteBuffer = deleteBuffer, this.insertBuffer = insertBuffer, this.lines = [];
  41596. }
  41597. pushDiffCommonLine(diff2) {
  41598. this.lines.push(diff2);
  41599. }
  41600. pushDiffChangeLines(diff2) {
  41601. let isDiffEmpty = diff2[1].length === 0;
  41602. (!isDiffEmpty || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(diff2), (!isDiffEmpty || this.insertBuffer.isLineEmpty()) && this.insertBuffer.pushDiff(diff2);
  41603. }
  41604. flushChangeLines() {
  41605. this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines);
  41606. }
  41607. // Input to buffer.
  41608. align(diff2) {
  41609. let op = diff2[0], string = diff2[1];
  41610. if (string.includes(`
  41611. `)) {
  41612. let substrings = string.split(`
  41613. `), iLast = substrings.length - 1;
  41614. substrings.forEach((substring, i) => {
  41615. if (i === 0) {
  41616. let subdiff = new Diff(op, substring);
  41617. this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(subdiff)) : (this.pushDiffChangeLines(subdiff), this.flushChangeLines());
  41618. } else i < iLast ? this.pushDiffCommonLine(new Diff(op, substring)) : substring.length !== 0 && this.pushDiffChangeLines(new Diff(op, substring));
  41619. });
  41620. } else
  41621. this.pushDiffChangeLines(diff2);
  41622. }
  41623. // Output from buffer.
  41624. getLines() {
  41625. return this.flushChangeLines(), this.lines;
  41626. }
  41627. };
  41628. function getAlignedDiffs(diffs, changeColor) {
  41629. let deleteBuffer = new ChangeBuffer(DIFF_DELETE, changeColor), insertBuffer = new ChangeBuffer(DIFF_INSERT, changeColor), commonBuffer = new CommonBuffer(deleteBuffer, insertBuffer);
  41630. return diffs.forEach((diff2) => {
  41631. switch (diff2[0]) {
  41632. case DIFF_DELETE:
  41633. deleteBuffer.align(diff2);
  41634. break;
  41635. case DIFF_INSERT:
  41636. insertBuffer.align(diff2);
  41637. break;
  41638. default:
  41639. commonBuffer.align(diff2);
  41640. }
  41641. }), commonBuffer.getLines();
  41642. }
  41643. function hasCommonDiff(diffs, isMultiline) {
  41644. if (isMultiline) {
  41645. let iLast = diffs.length - 1;
  41646. return diffs.some((diff2, i) => diff2[0] === DIFF_EQUAL && (i !== iLast || diff2[1] !== `
  41647. `));
  41648. }
  41649. return diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
  41650. }
  41651. function diffStringsUnified(a3, b, options) {
  41652. if (a3 !== b && a3.length !== 0 && b.length !== 0) {
  41653. let isMultiline = a3.includes(`
  41654. `) || b.includes(`
  41655. `), [diffs, truncated] = diffStringsRaw(isMultiline ? `${a3}
  41656. ` : a3, isMultiline ? `${b}
  41657. ` : b, !0, options);
  41658. if (hasCommonDiff(diffs, isMultiline)) {
  41659. let optionsNormalized = normalizeDiffOptions(options), lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);
  41660. return printDiffLines(lines, truncated, optionsNormalized);
  41661. }
  41662. }
  41663. return diffLinesUnified(a3.split(`
  41664. `), b.split(`
  41665. `), options);
  41666. }
  41667. function diffStringsRaw(a3, b, cleanup, options) {
  41668. let [diffs, truncated] = diffStrings(a3, b, options);
  41669. return cleanup && diff_cleanupSemantic(diffs), [diffs, truncated];
  41670. }
  41671. function getCommonMessage(message, options) {
  41672. let { commonColor } = normalizeDiffOptions(options);
  41673. return commonColor(message);
  41674. }
  41675. var { AsymmetricMatcher: AsymmetricMatcher2, DOMCollection: DOMCollection2, DOMElement: DOMElement2, Immutable: Immutable2, ReactElement: ReactElement2, ReactTestComponent: ReactTestComponent2 } = plugins, PLUGINS2 = [
  41676. ReactTestComponent2,
  41677. ReactElement2,
  41678. DOMElement2,
  41679. DOMCollection2,
  41680. Immutable2,
  41681. AsymmetricMatcher2,
  41682. plugins.Error
  41683. ], FORMAT_OPTIONS = {
  41684. maxDepth: 20,
  41685. plugins: PLUGINS2
  41686. }, FALLBACK_FORMAT_OPTIONS = {
  41687. callToJSON: !1,
  41688. maxDepth: 8,
  41689. plugins: PLUGINS2
  41690. };
  41691. function diff(a3, b, options) {
  41692. if (Object.is(a3, b))
  41693. return "";
  41694. let aType = getType3(a3), expectedType = aType, omitDifference = !1;
  41695. if (aType === "object" && typeof a3.asymmetricMatch == "function") {
  41696. if (a3.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof a3.getExpectedType != "function")
  41697. return;
  41698. expectedType = a3.getExpectedType(), omitDifference = expectedType === "string";
  41699. }
  41700. if (expectedType !== getType3(b)) {
  41701. let truncate3 = function(s3) {
  41702. return s3.length <= MAX_LENGTH ? s3 : `${s3.slice(0, MAX_LENGTH)}...`;
  41703. }, { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options), formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options), aDisplay = format(a3, formatOptions), bDisplay = format(b, formatOptions), MAX_LENGTH = 1e5;
  41704. aDisplay = truncate3(aDisplay), bDisplay = truncate3(bDisplay);
  41705. let aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)}
  41706. ${aDisplay}`, bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)}
  41707. ${bDisplay}`;
  41708. return `${aDiff}
  41709. ${bDiff}`;
  41710. }
  41711. if (!omitDifference)
  41712. switch (aType) {
  41713. case "string":
  41714. return diffLinesUnified(a3.split(`
  41715. `), b.split(`
  41716. `), options);
  41717. case "boolean":
  41718. case "number":
  41719. return comparePrimitive(a3, b, options);
  41720. case "map":
  41721. return compareObjects(sortMap(a3), sortMap(b), options);
  41722. case "set":
  41723. return compareObjects(sortSet(a3), sortSet(b), options);
  41724. default:
  41725. return compareObjects(a3, b, options);
  41726. }
  41727. }
  41728. function comparePrimitive(a3, b, options) {
  41729. let aFormat = format(a3, FORMAT_OPTIONS), bFormat = format(b, FORMAT_OPTIONS);
  41730. return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split(`
  41731. `), bFormat.split(`
  41732. `), options);
  41733. }
  41734. function sortMap(map2) {
  41735. return new Map(Array.from(map2.entries()).sort());
  41736. }
  41737. function sortSet(set3) {
  41738. return new Set(Array.from(set3.values()).sort());
  41739. }
  41740. function compareObjects(a3, b, options) {
  41741. let difference2, hasThrown = !1;
  41742. try {
  41743. let formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
  41744. difference2 = getObjectsDifference(a3, b, formatOptions, options);
  41745. } catch {
  41746. hasThrown = !0;
  41747. }
  41748. let noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
  41749. if (difference2 === void 0 || difference2 === noDiffMessage) {
  41750. let formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
  41751. difference2 = getObjectsDifference(a3, b, formatOptions, options), difference2 !== noDiffMessage && !hasThrown && (difference2 = `${getCommonMessage(SIMILAR_MESSAGE, options)}
  41752. ${difference2}`);
  41753. }
  41754. return difference2;
  41755. }
  41756. function getFormatOptions(formatOptions, options) {
  41757. let { compareKeys, printBasicPrototype, maxDepth } = normalizeDiffOptions(options);
  41758. return {
  41759. ...formatOptions,
  41760. compareKeys,
  41761. printBasicPrototype,
  41762. maxDepth: maxDepth ?? formatOptions.maxDepth
  41763. };
  41764. }
  41765. function getObjectsDifference(a3, b, formatOptions, options) {
  41766. let formatOptionsZeroIndent = {
  41767. ...formatOptions,
  41768. indent: 0
  41769. }, aCompare = format(a3, formatOptionsZeroIndent), bCompare = format(b, formatOptionsZeroIndent);
  41770. if (aCompare === bCompare)
  41771. return getCommonMessage(NO_DIFF_MESSAGE, options);
  41772. {
  41773. let aDisplay = format(a3, formatOptions), bDisplay = format(b, formatOptions);
  41774. return diffLinesUnified2(aDisplay.split(`
  41775. `), bDisplay.split(`
  41776. `), aCompare.split(`
  41777. `), bCompare.split(`
  41778. `), options);
  41779. }
  41780. }
  41781. var MAX_DIFF_STRING_LENGTH = 2e4;
  41782. function isAsymmetricMatcher(data) {
  41783. return getType2(data) === "Object" && typeof data.asymmetricMatch == "function";
  41784. }
  41785. function isReplaceable(obj1, obj2) {
  41786. let obj1Type = getType2(obj1), obj2Type = getType2(obj2);
  41787. return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array");
  41788. }
  41789. function printDiffOrStringify(received, expected, options) {
  41790. let { aAnnotation, bAnnotation } = normalizeDiffOptions(options);
  41791. if (typeof expected == "string" && typeof received == "string" && expected.length > 0 && received.length > 0 && expected.length <= MAX_DIFF_STRING_LENGTH && received.length <= MAX_DIFF_STRING_LENGTH && expected !== received) {
  41792. if (expected.includes(`
  41793. `) || received.includes(`
  41794. `))
  41795. return diffStringsUnified(expected, received, options);
  41796. let [diffs] = diffStringsRaw(expected, received, !0), hasCommonDiff2 = diffs.some((diff2) => diff2[0] === DIFF_EQUAL), printLabel = getLabelPrinter(aAnnotation, bAnnotation), expectedLine = printLabel(aAnnotation) + printExpected(getCommonAndChangedSubstrings(diffs, DIFF_DELETE, hasCommonDiff2)), receivedLine = printLabel(bAnnotation) + printReceived(getCommonAndChangedSubstrings(diffs, DIFF_INSERT, hasCommonDiff2));
  41797. return `${expectedLine}
  41798. ${receivedLine}`;
  41799. }
  41800. let clonedExpected = deepClone(expected, { forceWritable: !0 }), clonedReceived = deepClone(received, { forceWritable: !0 }), { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedReceived, clonedExpected);
  41801. return diff(replacedExpected, replacedActual, options);
  41802. }
  41803. function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
  41804. return actual instanceof Error && expected instanceof Error && typeof actual.cause < "u" && typeof expected.cause > "u" ? (delete actual.cause, {
  41805. replacedActual: actual,
  41806. replacedExpected: expected
  41807. }) : isReplaceable(actual, expected) ? actualReplaced.has(actual) || expectedReplaced.has(expected) ? {
  41808. replacedActual: actual,
  41809. replacedExpected: expected
  41810. } : (actualReplaced.add(actual), expectedReplaced.add(expected), getOwnProperties(expected).forEach((key) => {
  41811. let expectedValue = expected[key], actualValue = actual[key];
  41812. if (isAsymmetricMatcher(expectedValue))
  41813. expectedValue.asymmetricMatch(actualValue) && (actual[key] = expectedValue);
  41814. else if (isAsymmetricMatcher(actualValue))
  41815. actualValue.asymmetricMatch(expectedValue) && (expected[key] = actualValue);
  41816. else if (isReplaceable(actualValue, expectedValue)) {
  41817. let replaced = replaceAsymmetricMatcher(actualValue, expectedValue, actualReplaced, expectedReplaced);
  41818. actual[key] = replaced.replacedActual, expected[key] = replaced.replacedExpected;
  41819. }
  41820. }), {
  41821. replacedActual: actual,
  41822. replacedExpected: expected
  41823. }) : {
  41824. replacedActual: actual,
  41825. replacedExpected: expected
  41826. };
  41827. }
  41828. function getLabelPrinter(...strings) {
  41829. let maxLength = strings.reduce((max2, string) => string.length > max2 ? string.length : max2, 0);
  41830. return (string) => `${string}: ${" ".repeat(maxLength - string.length)}`;
  41831. }
  41832. var SPACE_SYMBOL = "\xB7";
  41833. function replaceTrailingSpaces(text) {
  41834. return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));
  41835. }
  41836. function printReceived(object) {
  41837. return s.red(replaceTrailingSpaces(stringify5(object)));
  41838. }
  41839. function printExpected(value) {
  41840. return s.green(replaceTrailingSpaces(stringify5(value)));
  41841. }
  41842. function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
  41843. return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? s.inverse(diff2[1]) : diff2[1] : ""), "");
  41844. }
  41845. // ../../node_modules/@vitest/utils/dist/error.js
  41846. var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@", IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
  41847. function isImmutable(v) {
  41848. return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
  41849. }
  41850. var OBJECT_PROTO = Object.getPrototypeOf({});
  41851. function getUnserializableMessage(err) {
  41852. return err instanceof Error ? `<unserializable>: ${err.message}` : typeof err == "string" ? `<unserializable>: ${err}` : "<unserializable>";
  41853. }
  41854. function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) {
  41855. if (!val || typeof val == "string")
  41856. return val;
  41857. if (val instanceof Error && "toJSON" in val && typeof val.toJSON == "function") {
  41858. let jsonValue = val.toJSON();
  41859. return jsonValue && jsonValue !== val && typeof jsonValue == "object" && (typeof val.message == "string" && safe(() => jsonValue.message ?? (jsonValue.message = val.message)), typeof val.stack == "string" && safe(() => jsonValue.stack ?? (jsonValue.stack = val.stack)), typeof val.name == "string" && safe(() => jsonValue.name ?? (jsonValue.name = val.name)), val.cause != null && safe(() => jsonValue.cause ?? (jsonValue.cause = serializeValue(val.cause, seen)))), serializeValue(jsonValue, seen);
  41860. }
  41861. if (typeof val == "function")
  41862. return `Function<${val.name || "anonymous"}>`;
  41863. if (typeof val == "symbol")
  41864. return val.toString();
  41865. if (typeof val != "object")
  41866. return val;
  41867. if (typeof Buffer < "u" && val instanceof Buffer)
  41868. return `<Buffer(${val.length}) ...>`;
  41869. if (typeof Uint8Array < "u" && val instanceof Uint8Array)
  41870. return `<Uint8Array(${val.length}) ...>`;
  41871. if (isImmutable(val))
  41872. return serializeValue(val.toJSON(), seen);
  41873. if (val instanceof Promise || val.constructor && val.constructor.prototype === "AsyncFunction")
  41874. return "Promise";
  41875. if (typeof Element < "u" && val instanceof Element)
  41876. return val.tagName;
  41877. if (typeof val.asymmetricMatch == "function")
  41878. return `${val.toString()} ${format2(val.sample)}`;
  41879. if (typeof val.toJSON == "function")
  41880. return serializeValue(val.toJSON(), seen);
  41881. if (seen.has(val))
  41882. return seen.get(val);
  41883. if (Array.isArray(val)) {
  41884. let clone3 = new Array(val.length);
  41885. return seen.set(val, clone3), val.forEach((e, i) => {
  41886. try {
  41887. clone3[i] = serializeValue(e, seen);
  41888. } catch (err) {
  41889. clone3[i] = getUnserializableMessage(err);
  41890. }
  41891. }), clone3;
  41892. } else {
  41893. let clone3 = /* @__PURE__ */ Object.create(null);
  41894. seen.set(val, clone3);
  41895. let obj = val;
  41896. for (; obj && obj !== OBJECT_PROTO; )
  41897. Object.getOwnPropertyNames(obj).forEach((key) => {
  41898. if (!(key in clone3))
  41899. try {
  41900. clone3[key] = serializeValue(val[key], seen);
  41901. } catch (err) {
  41902. delete clone3[key], clone3[key] = getUnserializableMessage(err);
  41903. }
  41904. }), obj = Object.getPrototypeOf(obj);
  41905. return clone3;
  41906. }
  41907. }
  41908. function safe(fn4) {
  41909. try {
  41910. return fn4();
  41911. } catch {
  41912. }
  41913. }
  41914. function normalizeErrorMessage(message) {
  41915. return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
  41916. }
  41917. function processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) {
  41918. if (!_err || typeof _err != "object")
  41919. return { message: String(_err) };
  41920. let err = _err;
  41921. (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) && (err.diff = printDiffOrStringify(err.actual, err.expected, {
  41922. ...diffOptions,
  41923. ...err.diffOptions
  41924. })), "expected" in err && typeof err.expected != "string" && (err.expected = stringify5(err.expected, 10)), "actual" in err && typeof err.actual != "string" && (err.actual = stringify5(err.actual, 10));
  41925. try {
  41926. typeof err.message == "string" && (err.message = normalizeErrorMessage(err.message));
  41927. } catch {
  41928. }
  41929. try {
  41930. !seen.has(err) && typeof err.cause == "object" && (seen.add(err), err.cause = processError(err.cause, diffOptions, seen));
  41931. } catch {
  41932. }
  41933. try {
  41934. return serializeValue(err);
  41935. } catch (e) {
  41936. return serializeValue(new Error(`Failed to fully serialize error: ${e?.message}
  41937. Inner error message: ${err?.message}`));
  41938. }
  41939. }
  41940. // src/instrumenter/EVENTS.ts
  41941. var EVENTS = {
  41942. CALL: "storybook/instrumenter/call",
  41943. SYNC: "storybook/instrumenter/sync",
  41944. START: "storybook/instrumenter/start",
  41945. BACK: "storybook/instrumenter/back",
  41946. GOTO: "storybook/instrumenter/goto",
  41947. NEXT: "storybook/instrumenter/next",
  41948. END: "storybook/instrumenter/end"
  41949. };
  41950. // src/instrumenter/preview-api.ts
  41951. var addons3 = globalThis.__STORYBOOK_ADDONS_PREVIEW;
  41952. // src/instrumenter/instrumenter.ts
  41953. var alreadyCompletedException = new Error(
  41954. "This function ran after the play function completed. Did you forget to `await` it?"
  41955. ), isObject6 = (o) => Object.prototype.toString.call(o) === "[object Object]", isModule = (o) => Object.prototype.toString.call(o) === "[object Module]", isInstrumentable = (o) => {
  41956. if (!isObject6(o) && !isModule(o))
  41957. return !1;
  41958. if (o.constructor === void 0)
  41959. return !0;
  41960. let proto = o.constructor.prototype;
  41961. return !!isObject6(proto);
  41962. }, construct = (obj) => {
  41963. try {
  41964. return new obj.constructor();
  41965. } catch {
  41966. return {};
  41967. }
  41968. }, getInitialState = () => ({
  41969. renderPhase: "preparing",
  41970. isDebugging: !1,
  41971. isPlaying: !1,
  41972. isLocked: !1,
  41973. cursor: 0,
  41974. calls: [],
  41975. shadowCalls: [],
  41976. callRefsByResult: /* @__PURE__ */ new Map(),
  41977. chainedCallIds: /* @__PURE__ */ new Set(),
  41978. ancestors: [],
  41979. playUntil: void 0,
  41980. resolvers: {},
  41981. syncTimeout: void 0
  41982. }), getRetainedState = (state3, isDebugging = !1) => {
  41983. let calls = (isDebugging ? state3.shadowCalls : state3.calls).filter((call2) => call2.retain);
  41984. if (!calls.length)
  41985. return;
  41986. let callRefsByResult = new Map(
  41987. Array.from(state3.callRefsByResult.entries()).filter(([, ref]) => ref.retain)
  41988. );
  41989. return { cursor: calls.length, calls, callRefsByResult };
  41990. }, Instrumenter = class {
  41991. constructor() {
  41992. this.detached = !1;
  41993. this.initialized = !1;
  41994. // State is tracked per story to deal with multiple stories on the same canvas (i.e. docs mode)
  41995. this.state = {};
  41996. this.loadParentWindowState = () => {
  41997. try {
  41998. this.state = scope.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
  41999. } catch {
  42000. this.detached = !0;
  42001. }
  42002. };
  42003. this.updateParentWindowState = () => {
  42004. try {
  42005. scope.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;
  42006. } catch {
  42007. this.detached = !0;
  42008. }
  42009. };
  42010. this.loadParentWindowState();
  42011. let resetState = ({
  42012. storyId,
  42013. renderPhase,
  42014. isPlaying = !0,
  42015. isDebugging = !1
  42016. }) => {
  42017. let state3 = this.getState(storyId);
  42018. this.setState(storyId, {
  42019. ...getInitialState(),
  42020. ...getRetainedState(state3, isDebugging),
  42021. renderPhase: renderPhase || state3.renderPhase,
  42022. shadowCalls: isDebugging ? state3.shadowCalls : [],
  42023. chainedCallIds: isDebugging ? state3.chainedCallIds : /* @__PURE__ */ new Set(),
  42024. playUntil: isDebugging ? state3.playUntil : void 0,
  42025. isPlaying,
  42026. isDebugging
  42027. }), this.sync(storyId);
  42028. }, start2 = (channel) => ({ storyId, playUntil }) => {
  42029. this.getState(storyId).isDebugging || this.setState(storyId, ({ calls }) => ({
  42030. calls: [],
  42031. shadowCalls: calls.map((call2) => ({ ...call2, status: "waiting" /* WAITING */ })),
  42032. isDebugging: !0
  42033. }));
  42034. let log = this.getLog(storyId);
  42035. this.setState(storyId, ({ shadowCalls }) => {
  42036. if (playUntil || !log.length)
  42037. return { playUntil };
  42038. let firstRowIndex = shadowCalls.findIndex((call2) => call2.id === log[0].callId);
  42039. return {
  42040. playUntil: shadowCalls.slice(0, firstRowIndex).filter((call2) => call2.interceptable && !call2.ancestors?.length).slice(-1)[0]?.id
  42041. };
  42042. }), channel.emit(FORCE_REMOUNT, { storyId, isDebugging: !0 });
  42043. }, back = (channel) => ({ storyId }) => {
  42044. let log = this.getLog(storyId).filter((call2) => !call2.ancestors?.length), last2 = log.reduceRight((res, item, index4) => res >= 0 || item.status === "waiting" /* WAITING */ ? res : index4, -1);
  42045. start2(channel)({ storyId, playUntil: log[last2 - 1]?.callId });
  42046. }, goto = (channel) => ({ storyId, callId }) => {
  42047. let { calls, shadowCalls, resolvers } = this.getState(storyId), call2 = calls.find(({ id }) => id === callId), shadowCall = shadowCalls.find(({ id }) => id === callId);
  42048. if (!call2 && shadowCall && Object.values(resolvers).length > 0) {
  42049. let nextId = this.getLog(storyId).find((c) => c.status === "waiting" /* WAITING */)?.callId;
  42050. shadowCall.id !== nextId && this.setState(storyId, { playUntil: shadowCall.id }), Object.values(resolvers).forEach((resolve) => resolve());
  42051. } else
  42052. start2(channel)({ storyId, playUntil: callId });
  42053. }, next2 = (channel) => ({ storyId }) => {
  42054. let { resolvers } = this.getState(storyId);
  42055. if (Object.values(resolvers).length > 0)
  42056. Object.values(resolvers).forEach((resolve) => resolve());
  42057. else {
  42058. let nextId = this.getLog(storyId).find((c) => c.status === "waiting" /* WAITING */)?.callId;
  42059. nextId ? start2(channel)({ storyId, playUntil: nextId }) : end2({ storyId });
  42060. }
  42061. }, end2 = ({ storyId }) => {
  42062. this.setState(storyId, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(storyId).resolvers).forEach((resolve) => resolve());
  42063. }, renderPhaseChanged = ({
  42064. storyId,
  42065. newPhase
  42066. }) => {
  42067. let { isDebugging } = this.getState(storyId);
  42068. if (newPhase === "preparing" && isDebugging)
  42069. return resetState({ storyId, renderPhase: newPhase, isDebugging });
  42070. if (newPhase === "playing")
  42071. return resetState({ storyId, renderPhase: newPhase, isDebugging });
  42072. newPhase === "played" ? this.setState(storyId, {
  42073. renderPhase: newPhase,
  42074. isLocked: !1,
  42075. isPlaying: !1,
  42076. isDebugging: !1
  42077. }) : newPhase === "errored" ? this.setState(storyId, {
  42078. renderPhase: newPhase,
  42079. isLocked: !1,
  42080. isPlaying: !1
  42081. }) : newPhase === "aborted" ? this.setState(storyId, {
  42082. renderPhase: newPhase,
  42083. isLocked: !0,
  42084. isPlaying: !1
  42085. }) : this.setState(storyId, {
  42086. renderPhase: newPhase
  42087. }), this.sync(storyId);
  42088. };
  42089. addons3 && addons3.ready().then(() => {
  42090. this.channel = addons3.getChannel(), this.channel.on(FORCE_REMOUNT, resetState), this.channel.on(STORY_RENDER_PHASE_CHANGED, renderPhaseChanged), this.channel.on(SET_CURRENT_STORY, () => {
  42091. this.initialized ? this.cleanup() : this.initialized = !0;
  42092. }), this.channel.on(EVENTS.START, start2(this.channel)), this.channel.on(EVENTS.BACK, back(this.channel)), this.channel.on(EVENTS.GOTO, goto(this.channel)), this.channel.on(EVENTS.NEXT, next2(this.channel)), this.channel.on(EVENTS.END, end2);
  42093. });
  42094. }
  42095. getState(storyId) {
  42096. return this.state[storyId] || getInitialState();
  42097. }
  42098. setState(storyId, update2) {
  42099. if (storyId) {
  42100. let state3 = this.getState(storyId), patch = typeof update2 == "function" ? update2(state3) : update2;
  42101. this.state = { ...this.state, [storyId]: { ...state3, ...patch } }, this.updateParentWindowState();
  42102. }
  42103. }
  42104. cleanup() {
  42105. this.state = Object.entries(this.state).reduce(
  42106. (acc, [storyId, state3]) => {
  42107. let retainedState = getRetainedState(state3);
  42108. return retainedState && (acc[storyId] = Object.assign(getInitialState(), retainedState)), acc;
  42109. },
  42110. {}
  42111. );
  42112. let payload = { controlStates: {
  42113. detached: this.detached,
  42114. start: !1,
  42115. back: !1,
  42116. goto: !1,
  42117. next: !1,
  42118. end: !1
  42119. }, logItems: [] };
  42120. this.channel?.emit(EVENTS.SYNC, payload), this.updateParentWindowState();
  42121. }
  42122. getLog(storyId) {
  42123. let { calls, shadowCalls } = this.getState(storyId), merged = [...shadowCalls];
  42124. calls.forEach((call2, index4) => {
  42125. merged[index4] = call2;
  42126. });
  42127. let seen = /* @__PURE__ */ new Set();
  42128. return merged.reduceRight((acc, call2) => (call2.args.forEach((arg) => {
  42129. arg?.__callId__ && seen.add(arg.__callId__);
  42130. }), call2.path.forEach((node2) => {
  42131. node2.__callId__ && seen.add(node2.__callId__);
  42132. }), (call2.interceptable || call2.exception) && !seen.has(call2.id) && (acc.unshift({ callId: call2.id, status: call2.status, ancestors: call2.ancestors }), seen.add(call2.id)), acc), []);
  42133. }
  42134. // Traverses the object structure to recursively patch all function properties.
  42135. // Returns the original object, or a new object with the same constructor,
  42136. // depending on whether it should mutate.
  42137. instrument(obj, options, depth = 0) {
  42138. if (!isInstrumentable(obj))
  42139. return obj;
  42140. let { mutate = !1, path = [] } = options, keys3 = options.getKeys ? options.getKeys(obj, depth) : Object.keys(obj);
  42141. return depth += 1, keys3.reduce(
  42142. (acc, key) => {
  42143. let descriptor = getPropertyDescriptor(obj, key);
  42144. if (typeof descriptor?.get == "function") {
  42145. if (descriptor.configurable) {
  42146. let getter = () => descriptor?.get?.bind(obj)?.();
  42147. Object.defineProperty(acc, key, {
  42148. get: () => this.instrument(getter(), { ...options, path: path.concat(key) }, depth)
  42149. });
  42150. }
  42151. return acc;
  42152. }
  42153. let value = obj[key];
  42154. return typeof value != "function" ? (acc[key] = this.instrument(value, { ...options, path: path.concat(key) }, depth), acc) : "__originalFn__" in value && typeof value.__originalFn__ == "function" ? (acc[key] = value, acc) : (acc[key] = (...args) => this.track(key, value, obj, args, options), acc[key].__originalFn__ = value, Object.defineProperty(acc[key], "name", { value: key, writable: !1 }), Object.keys(value).length > 0 && Object.assign(
  42155. acc[key],
  42156. this.instrument({ ...value }, { ...options, path: path.concat(key) }, depth)
  42157. ), acc);
  42158. },
  42159. mutate ? obj : construct(obj)
  42160. );
  42161. }
  42162. // Monkey patch an object method to record calls.
  42163. // Returns a function that invokes the original function, records the invocation ("call") and
  42164. // returns the original result.
  42165. track(method, fn4, object, args, options) {
  42166. let storyId = args?.[0]?.__storyId__ || scope.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: cursor2, ancestors } = this.getState(storyId);
  42167. this.setState(storyId, { cursor: cursor2 + 1 });
  42168. let id = `${ancestors.slice(-1)[0] || storyId} [${cursor2}] ${method}`, { path = [], intercept = !1, retain = !1 } = options, interceptable = typeof intercept == "function" ? intercept(method, path) : intercept, call2 = { id, cursor: cursor2, storyId, ancestors, path, method, args, interceptable, retain }, result = (interceptable && !ancestors.length ? this.intercept : this.invoke).call(this, fn4, object, call2, options);
  42169. return this.instrument(result, { ...options, mutate: !0, path: [{ __callId__: call2.id }] });
  42170. }
  42171. intercept(fn4, object, call2, options) {
  42172. let { chainedCallIds, isDebugging, playUntil } = this.getState(call2.storyId), isChainedUpon = chainedCallIds.has(call2.id);
  42173. return !isDebugging || isChainedUpon || playUntil ? (playUntil === call2.id && this.setState(call2.storyId, { playUntil: void 0 }), this.invoke(fn4, object, call2, options)) : new Promise((resolve) => {
  42174. this.setState(call2.storyId, ({ resolvers }) => ({
  42175. isLocked: !1,
  42176. resolvers: { ...resolvers, [call2.id]: resolve }
  42177. }));
  42178. }).then(() => (this.setState(call2.storyId, (state3) => {
  42179. let { [call2.id]: _, ...resolvers } = state3.resolvers;
  42180. return { isLocked: !0, resolvers };
  42181. }), this.invoke(fn4, object, call2, options)));
  42182. }
  42183. invoke(fn4, object, call2, options) {
  42184. let { callRefsByResult, renderPhase } = this.getState(call2.storyId), maximumDepth = 25, serializeValues = (value, depth, seen) => {
  42185. if (seen.includes(value))
  42186. return "[Circular]";
  42187. if (seen = [...seen, value], depth > maximumDepth)
  42188. return "...";
  42189. if (callRefsByResult.has(value))
  42190. return callRefsByResult.get(value);
  42191. if (value instanceof Array)
  42192. return value.map((it) => serializeValues(it, ++depth, seen));
  42193. if (value instanceof Date)
  42194. return { __date__: { value: value.toISOString() } };
  42195. if (value instanceof Error) {
  42196. let { name, message, stack } = value;
  42197. return { __error__: { name, message, stack } };
  42198. }
  42199. if (value instanceof RegExp) {
  42200. let { flags, source } = value;
  42201. return { __regexp__: { flags, source } };
  42202. }
  42203. if (value instanceof scope.window?.HTMLElement) {
  42204. let { prefix: prefix4, localName, id, classList, innerText } = value, classNames = Array.from(classList);
  42205. return { __element__: { prefix: prefix4, localName, id, classNames, innerText } };
  42206. }
  42207. return typeof value == "function" ? {
  42208. __function__: { name: "getMockName" in value ? value.getMockName() : value.name }
  42209. } : typeof value == "symbol" ? { __symbol__: { description: value.description } } : typeof value == "object" && value?.constructor?.name && value?.constructor?.name !== "Object" ? { __class__: { name: value.constructor.name } } : Object.prototype.toString.call(value) === "[object Object]" ? Object.fromEntries(
  42210. Object.entries(value).map(([key, val]) => [key, serializeValues(val, ++depth, seen)])
  42211. ) : value;
  42212. }, info = {
  42213. ...call2,
  42214. args: call2.args.map((arg) => serializeValues(arg, 0, []))
  42215. };
  42216. call2.path.forEach((ref) => {
  42217. ref?.__callId__ && this.setState(call2.storyId, ({ chainedCallIds }) => ({
  42218. chainedCallIds: new Set(Array.from(chainedCallIds).concat(ref.__callId__))
  42219. }));
  42220. });
  42221. let handleException = (e) => {
  42222. if (e instanceof Error) {
  42223. let { name, message, stack, callId = call2.id } = e, {
  42224. showDiff = void 0,
  42225. diff: diff2 = void 0,
  42226. actual = void 0,
  42227. expected = void 0
  42228. } = e.name === "AssertionError" ? processError(e) : e, exception = { name, message, stack, callId, showDiff, diff: diff2, actual, expected };
  42229. if (this.update({ ...info, status: "error" /* ERROR */, exception }), this.setState(call2.storyId, (state3) => ({
  42230. callRefsByResult: new Map([
  42231. ...Array.from(state3.callRefsByResult.entries()),
  42232. [e, { __callId__: call2.id, retain: call2.retain }]
  42233. ])
  42234. })), call2.ancestors?.length)
  42235. throw Object.prototype.hasOwnProperty.call(e, "callId") || Object.defineProperty(e, "callId", { value: call2.id }), e;
  42236. }
  42237. throw e;
  42238. };
  42239. try {
  42240. if (renderPhase === "played" && !call2.retain)
  42241. throw alreadyCompletedException;
  42242. let finalArgs = (options.getArgs ? options.getArgs(call2, this.getState(call2.storyId)) : call2.args).map((arg) => typeof arg != "function" || isClass(arg) || Object.keys(arg).length ? arg : (...args) => {
  42243. let { cursor: cursor2, ancestors } = this.getState(call2.storyId);
  42244. this.setState(call2.storyId, { cursor: 0, ancestors: [...ancestors, call2.id] });
  42245. let restore = () => this.setState(call2.storyId, { cursor: cursor2, ancestors }), willRestore = !1;
  42246. try {
  42247. let res = arg(...args);
  42248. return res instanceof Promise ? (willRestore = !0, res.finally(restore)) : res;
  42249. } finally {
  42250. willRestore || restore();
  42251. }
  42252. }), result = fn4.apply(object, finalArgs);
  42253. return result && ["object", "function", "symbol"].includes(typeof result) && this.setState(call2.storyId, (state3) => ({
  42254. callRefsByResult: new Map([
  42255. ...Array.from(state3.callRefsByResult.entries()),
  42256. [result, { __callId__: call2.id, retain: call2.retain }]
  42257. ])
  42258. })), this.update({
  42259. ...info,
  42260. status: result instanceof Promise ? "active" /* ACTIVE */ : "done" /* DONE */
  42261. }), result instanceof Promise ? result.then((value) => (this.update({ ...info, status: "done" /* DONE */ }), value), handleException) : result;
  42262. } catch (e) {
  42263. return handleException(e);
  42264. }
  42265. }
  42266. // Sends the call info to the manager and synchronizes the log.
  42267. update(call2) {
  42268. this.channel?.emit(EVENTS.CALL, call2), this.setState(call2.storyId, ({ calls }) => {
  42269. let callsById = calls.concat(call2).reduce((a3, c) => Object.assign(a3, { [c.id]: c }), {});
  42270. return {
  42271. // Calls are sorted to ensure parent calls always come before calls in their callback.
  42272. calls: Object.values(callsById).sort(
  42273. (a3, b) => a3.id.localeCompare(b.id, void 0, { numeric: !0 })
  42274. )
  42275. };
  42276. }), this.sync(call2.storyId);
  42277. }
  42278. // Builds a log of interceptable calls and control states and sends it to the manager.
  42279. // Uses a 0ms debounce because this might get called many times in one tick.
  42280. sync(storyId) {
  42281. let synchronize = () => {
  42282. let { isLocked, isPlaying } = this.getState(storyId), logItems = this.getLog(storyId), pausedAt = logItems.filter(({ ancestors }) => !ancestors.length).find((item) => item.status === "waiting" /* WAITING */)?.callId, hasActive = logItems.some((item) => item.status === "active" /* ACTIVE */);
  42283. if (this.detached || isLocked || hasActive || logItems.length === 0) {
  42284. let payload2 = { controlStates: {
  42285. detached: this.detached,
  42286. start: !1,
  42287. back: !1,
  42288. goto: !1,
  42289. next: !1,
  42290. end: !1
  42291. }, logItems };
  42292. this.channel?.emit(EVENTS.SYNC, payload2);
  42293. return;
  42294. }
  42295. let hasPrevious = logItems.some(
  42296. (item) => item.status === "done" /* DONE */ || item.status === "error" /* ERROR */
  42297. ), payload = { controlStates: {
  42298. detached: this.detached,
  42299. start: hasPrevious,
  42300. back: hasPrevious,
  42301. goto: !0,
  42302. next: isPlaying,
  42303. end: isPlaying
  42304. }, logItems, pausedAt };
  42305. this.channel?.emit(EVENTS.SYNC, payload);
  42306. };
  42307. this.setState(storyId, ({ syncTimeout }) => (clearTimeout(syncTimeout), { syncTimeout: setTimeout(synchronize, 0) }));
  42308. }
  42309. };
  42310. function instrument(obj, options = {}) {
  42311. try {
  42312. let forceInstrument = !1, skipInstrument = !1;
  42313. return scope.window?.location?.search?.includes("instrument=true") ? forceInstrument = !0 : scope.window?.location?.search?.includes("instrument=false") && (skipInstrument = !0), scope.window?.parent === scope.window && !forceInstrument || skipInstrument ? obj : (scope.window && !scope.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (scope.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Instrumenter()), (scope.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(obj, options));
  42314. } catch (e) {
  42315. return once.warn(e), obj;
  42316. }
  42317. }
  42318. function getPropertyDescriptor(obj, propName) {
  42319. let target = obj;
  42320. for (; target != null; ) {
  42321. let descriptor = Object.getOwnPropertyDescriptor(target, propName);
  42322. if (descriptor)
  42323. return descriptor;
  42324. target = Object.getPrototypeOf(target);
  42325. }
  42326. }
  42327. function isClass(obj) {
  42328. if (typeof obj != "function")
  42329. return !1;
  42330. let descriptor = Object.getOwnPropertyDescriptor(obj, "prototype");
  42331. return descriptor ? !descriptor.writable : !1;
  42332. }
  42333. // ../../node_modules/chai/index.js
  42334. var __defProp3 = Object.defineProperty, __name = (target, value) => __defProp3(target, "name", { value, configurable: !0 }), __export2 = (target, all) => {
  42335. for (var name in all)
  42336. __defProp3(target, name, { get: all[name], enumerable: !0 });
  42337. }, utils_exports = {};
  42338. __export2(utils_exports, {
  42339. addChainableMethod: () => addChainableMethod,
  42340. addLengthGuard: () => addLengthGuard,
  42341. addMethod: () => addMethod,
  42342. addProperty: () => addProperty,
  42343. checkError: () => check_error_exports,
  42344. compareByInspect: () => compareByInspect,
  42345. eql: () => deep_eql_default,
  42346. expectTypes: () => expectTypes,
  42347. flag: () => flag,
  42348. getActual: () => getActual,
  42349. getMessage: () => getMessage2,
  42350. getName: () => getName,
  42351. getOperator: () => getOperator,
  42352. getOwnEnumerableProperties: () => getOwnEnumerableProperties,
  42353. getOwnEnumerablePropertySymbols: () => getOwnEnumerablePropertySymbols,
  42354. getPathInfo: () => getPathInfo,
  42355. hasProperty: () => hasProperty,
  42356. inspect: () => inspect22,
  42357. isNaN: () => isNaN22,
  42358. isNumeric: () => isNumeric,
  42359. isProxyEnabled: () => isProxyEnabled,
  42360. isRegExp: () => isRegExp22,
  42361. objDisplay: () => objDisplay,
  42362. overwriteChainableMethod: () => overwriteChainableMethod,
  42363. overwriteMethod: () => overwriteMethod,
  42364. overwriteProperty: () => overwriteProperty,
  42365. proxify: () => proxify,
  42366. test: () => test2,
  42367. transferFlags: () => transferFlags,
  42368. type: () => type
  42369. });
  42370. var check_error_exports = {};
  42371. __export2(check_error_exports, {
  42372. compatibleConstructor: () => compatibleConstructor,
  42373. compatibleInstance: () => compatibleInstance,
  42374. compatibleMessage: () => compatibleMessage,
  42375. getConstructorName: () => getConstructorName2,
  42376. getMessage: () => getMessage
  42377. });
  42378. function isErrorInstance(obj) {
  42379. return obj instanceof Error || Object.prototype.toString.call(obj) === "[object Error]";
  42380. }
  42381. __name(isErrorInstance, "isErrorInstance");
  42382. function isRegExp2(obj) {
  42383. return Object.prototype.toString.call(obj) === "[object RegExp]";
  42384. }
  42385. __name(isRegExp2, "isRegExp");
  42386. function compatibleInstance(thrown, errorLike) {
  42387. return isErrorInstance(errorLike) && thrown === errorLike;
  42388. }
  42389. __name(compatibleInstance, "compatibleInstance");
  42390. function compatibleConstructor(thrown, errorLike) {
  42391. return isErrorInstance(errorLike) ? thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor : (typeof errorLike == "object" || typeof errorLike == "function") && errorLike.prototype ? thrown.constructor === errorLike || thrown instanceof errorLike : !1;
  42392. }
  42393. __name(compatibleConstructor, "compatibleConstructor");
  42394. function compatibleMessage(thrown, errMatcher) {
  42395. let comparisonString = typeof thrown == "string" ? thrown : thrown.message;
  42396. return isRegExp2(errMatcher) ? errMatcher.test(comparisonString) : typeof errMatcher == "string" ? comparisonString.indexOf(errMatcher) !== -1 : !1;
  42397. }
  42398. __name(compatibleMessage, "compatibleMessage");
  42399. function getConstructorName2(errorLike) {
  42400. let constructorName = errorLike;
  42401. return isErrorInstance(errorLike) ? constructorName = errorLike.constructor.name : typeof errorLike == "function" && (constructorName = errorLike.name, constructorName === "" && (constructorName = new errorLike().name || constructorName)), constructorName;
  42402. }
  42403. __name(getConstructorName2, "getConstructorName");
  42404. function getMessage(errorLike) {
  42405. let msg = "";
  42406. return errorLike && errorLike.message ? msg = errorLike.message : typeof errorLike == "string" && (msg = errorLike), msg;
  42407. }
  42408. __name(getMessage, "getMessage");
  42409. function flag(obj, key, value) {
  42410. let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
  42411. if (arguments.length === 3)
  42412. flags[key] = value;
  42413. else
  42414. return flags[key];
  42415. }
  42416. __name(flag, "flag");
  42417. function test2(obj, args) {
  42418. let negate = flag(obj, "negate"), expr = args[0];
  42419. return negate ? !expr : expr;
  42420. }
  42421. __name(test2, "test");
  42422. function type(obj) {
  42423. if (typeof obj > "u")
  42424. return "undefined";
  42425. if (obj === null)
  42426. return "null";
  42427. let stringTag2 = obj[Symbol.toStringTag];
  42428. return typeof stringTag2 == "string" ? stringTag2 : Object.prototype.toString.call(obj).slice(8, -1);
  42429. }
  42430. __name(type, "type");
  42431. var canElideFrames = "captureStackTrace" in Error, _a, AssertionError = (_a = class extends Error {
  42432. message;
  42433. get name() {
  42434. return "AssertionError";
  42435. }
  42436. get ok() {
  42437. return !1;
  42438. }
  42439. constructor(message = "Unspecified AssertionError", props, ssf) {
  42440. super(message), this.message = message, canElideFrames && Error.captureStackTrace(this, ssf || _a);
  42441. for (let key in props)
  42442. key in this || (this[key] = props[key]);
  42443. }
  42444. toJSON(stack) {
  42445. return {
  42446. ...this,
  42447. name: this.name,
  42448. message: this.message,
  42449. ok: !1,
  42450. stack: stack !== !1 ? this.stack : void 0
  42451. };
  42452. }
  42453. }, __name(_a, "AssertionError"), _a);
  42454. function expectTypes(obj, types) {
  42455. let flagMsg = flag(obj, "message"), ssfi = flag(obj, "ssfi");
  42456. flagMsg = flagMsg ? flagMsg + ": " : "", obj = flag(obj, "object"), types = types.map(function(t) {
  42457. return t.toLowerCase();
  42458. }), types.sort();
  42459. let str2 = types.map(function(t, index4) {
  42460. let art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a";
  42461. return (types.length > 1 && index4 === types.length - 1 ? "or " : "") + art + " " + t;
  42462. }).join(", "), objType = type(obj).toLowerCase();
  42463. if (!types.some(function(expected) {
  42464. return objType === expected;
  42465. }))
  42466. throw new AssertionError(
  42467. flagMsg + "object tested must be " + str2 + ", but " + objType + " given",
  42468. void 0,
  42469. ssfi
  42470. );
  42471. }
  42472. __name(expectTypes, "expectTypes");
  42473. function getActual(obj, args) {
  42474. return args.length > 4 ? args[4] : obj._obj;
  42475. }
  42476. __name(getActual, "getActual");
  42477. var ansiColors2 = {
  42478. bold: ["1", "22"],
  42479. dim: ["2", "22"],
  42480. italic: ["3", "23"],
  42481. underline: ["4", "24"],
  42482. // 5 & 6 are blinking
  42483. inverse: ["7", "27"],
  42484. hidden: ["8", "28"],
  42485. strike: ["9", "29"],
  42486. // 10-20 are fonts
  42487. // 21-29 are resets for 1-9
  42488. black: ["30", "39"],
  42489. red: ["31", "39"],
  42490. green: ["32", "39"],
  42491. yellow: ["33", "39"],
  42492. blue: ["34", "39"],
  42493. magenta: ["35", "39"],
  42494. cyan: ["36", "39"],
  42495. white: ["37", "39"],
  42496. brightblack: ["30;1", "39"],
  42497. brightred: ["31;1", "39"],
  42498. brightgreen: ["32;1", "39"],
  42499. brightyellow: ["33;1", "39"],
  42500. brightblue: ["34;1", "39"],
  42501. brightmagenta: ["35;1", "39"],
  42502. brightcyan: ["36;1", "39"],
  42503. brightwhite: ["37;1", "39"],
  42504. grey: ["90", "39"]
  42505. }, styles2 = {
  42506. special: "cyan",
  42507. number: "yellow",
  42508. bigint: "yellow",
  42509. boolean: "yellow",
  42510. undefined: "grey",
  42511. null: "bold",
  42512. string: "green",
  42513. symbol: "green",
  42514. date: "magenta",
  42515. regexp: "red"
  42516. }, truncator2 = "\u2026";
  42517. function colorise2(value, styleType) {
  42518. let color2 = ansiColors2[styles2[styleType]] || ansiColors2[styleType] || "";
  42519. return color2 ? `\x1B[${color2[0]}m${String(value)}\x1B[${color2[1]}m` : String(value);
  42520. }
  42521. __name(colorise2, "colorise");
  42522. function normaliseOptions2({
  42523. showHidden = !1,
  42524. depth = 2,
  42525. colors: colors3 = !1,
  42526. customInspect = !0,
  42527. showProxy = !1,
  42528. maxArrayLength = 1 / 0,
  42529. breakLength = 1 / 0,
  42530. seen = [],
  42531. // eslint-disable-next-line no-shadow
  42532. truncate: truncate22 = 1 / 0,
  42533. stylize = String
  42534. } = {}, inspect32) {
  42535. let options = {
  42536. showHidden: !!showHidden,
  42537. depth: Number(depth),
  42538. colors: !!colors3,
  42539. customInspect: !!customInspect,
  42540. showProxy: !!showProxy,
  42541. maxArrayLength: Number(maxArrayLength),
  42542. breakLength: Number(breakLength),
  42543. truncate: Number(truncate22),
  42544. seen,
  42545. inspect: inspect32,
  42546. stylize
  42547. };
  42548. return options.colors && (options.stylize = colorise2), options;
  42549. }
  42550. __name(normaliseOptions2, "normaliseOptions");
  42551. function isHighSurrogate2(char2) {
  42552. return char2 >= "\uD800" && char2 <= "\uDBFF";
  42553. }
  42554. __name(isHighSurrogate2, "isHighSurrogate");
  42555. function truncate2(string, length2, tail2 = truncator2) {
  42556. string = String(string);
  42557. let tailLength = tail2.length, stringLength = string.length;
  42558. if (tailLength > length2 && stringLength > tailLength)
  42559. return tail2;
  42560. if (stringLength > length2 && stringLength > tailLength) {
  42561. let end2 = length2 - tailLength;
  42562. return end2 > 0 && isHighSurrogate2(string[end2 - 1]) && (end2 = end2 - 1), `${string.slice(0, end2)}${tail2}`;
  42563. }
  42564. return string;
  42565. }
  42566. __name(truncate2, "truncate");
  42567. function inspectList2(list, options, inspectItem, separator = ", ") {
  42568. inspectItem = inspectItem || options.inspect;
  42569. let size = list.length;
  42570. if (size === 0)
  42571. return "";
  42572. let originalLength = options.truncate, output = "", peek2 = "", truncated = "";
  42573. for (let i = 0; i < size; i += 1) {
  42574. let last2 = i + 1 === list.length, secondToLast = i + 2 === list.length;
  42575. truncated = `${truncator2}(${list.length - i})`;
  42576. let value = list[i];
  42577. options.truncate = originalLength - output.length - (last2 ? 0 : separator.length);
  42578. let string = peek2 || inspectItem(value, options) + (last2 ? "" : separator), nextLength = output.length + string.length, truncatedLength = nextLength + truncated.length;
  42579. if (last2 && nextLength > originalLength && output.length + truncated.length <= originalLength || !last2 && !secondToLast && truncatedLength > originalLength || (peek2 = last2 ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator), !last2 && secondToLast && truncatedLength > originalLength && nextLength + peek2.length > originalLength))
  42580. break;
  42581. if (output += string, !last2 && !secondToLast && nextLength + peek2.length >= originalLength) {
  42582. truncated = `${truncator2}(${list.length - i - 1})`;
  42583. break;
  42584. }
  42585. truncated = "";
  42586. }
  42587. return `${output}${truncated}`;
  42588. }
  42589. __name(inspectList2, "inspectList");
  42590. function quoteComplexKey2(key) {
  42591. return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? key : JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
  42592. }
  42593. __name(quoteComplexKey2, "quoteComplexKey");
  42594. function inspectProperty2([key, value], options) {
  42595. return options.truncate -= 2, typeof key == "string" ? key = quoteComplexKey2(key) : typeof key != "number" && (key = `[${options.inspect(key, options)}]`), options.truncate -= key.length, value = options.inspect(value, options), `${key}: ${value}`;
  42596. }
  42597. __name(inspectProperty2, "inspectProperty");
  42598. function inspectArray2(array, options) {
  42599. let nonIndexProperties = Object.keys(array).slice(array.length);
  42600. if (!array.length && !nonIndexProperties.length)
  42601. return "[]";
  42602. options.truncate -= 4;
  42603. let listContents = inspectList2(array, options);
  42604. options.truncate -= listContents.length;
  42605. let propertyContents = "";
  42606. return nonIndexProperties.length && (propertyContents = inspectList2(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty2)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  42607. }
  42608. __name(inspectArray2, "inspectArray");
  42609. var getArrayName2 = __name((array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name, "getArrayName");
  42610. function inspectTypedArray2(array, options) {
  42611. let name = getArrayName2(array);
  42612. options.truncate -= name.length + 4;
  42613. let nonIndexProperties = Object.keys(array).slice(array.length);
  42614. if (!array.length && !nonIndexProperties.length)
  42615. return `${name}[]`;
  42616. let output = "";
  42617. for (let i = 0; i < array.length; i++) {
  42618. let string = `${options.stylize(truncate2(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
  42619. if (options.truncate -= string.length, array[i] !== array.length && options.truncate <= 3) {
  42620. output += `${truncator2}(${array.length - array[i] + 1})`;
  42621. break;
  42622. }
  42623. output += string;
  42624. }
  42625. let propertyContents = "";
  42626. return nonIndexProperties.length && (propertyContents = inspectList2(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty2)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
  42627. }
  42628. __name(inspectTypedArray2, "inspectTypedArray");
  42629. function inspectDate2(dateObject, options) {
  42630. let stringRepresentation = dateObject.toJSON();
  42631. if (stringRepresentation === null)
  42632. return "Invalid Date";
  42633. let split = stringRepresentation.split("T"), date = split[0];
  42634. return options.stylize(`${date}T${truncate2(split[1], options.truncate - date.length - 1)}`, "date");
  42635. }
  42636. __name(inspectDate2, "inspectDate");
  42637. function inspectFunction2(func, options) {
  42638. let functionType = func[Symbol.toStringTag] || "Function", name = func.name;
  42639. return name ? options.stylize(`[${functionType} ${truncate2(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special");
  42640. }
  42641. __name(inspectFunction2, "inspectFunction");
  42642. function inspectMapEntry2([key, value], options) {
  42643. return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`;
  42644. }
  42645. __name(inspectMapEntry2, "inspectMapEntry");
  42646. function mapToEntries2(map2) {
  42647. let entries = [];
  42648. return map2.forEach((value, key) => {
  42649. entries.push([key, value]);
  42650. }), entries;
  42651. }
  42652. __name(mapToEntries2, "mapToEntries");
  42653. function inspectMap2(map2, options) {
  42654. return map2.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList2(mapToEntries2(map2), options, inspectMapEntry2)} }`);
  42655. }
  42656. __name(inspectMap2, "inspectMap");
  42657. var isNaN3 = Number.isNaN || ((i) => i !== i);
  42658. function inspectNumber2(number, options) {
  42659. return isNaN3(number) ? options.stylize("NaN", "number") : number === 1 / 0 ? options.stylize("Infinity", "number") : number === -1 / 0 ? options.stylize("-Infinity", "number") : number === 0 ? options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number") : options.stylize(truncate2(String(number), options.truncate), "number");
  42660. }
  42661. __name(inspectNumber2, "inspectNumber");
  42662. function inspectBigInt2(number, options) {
  42663. let nums = truncate2(number.toString(), options.truncate - 1);
  42664. return nums !== truncator2 && (nums += "n"), options.stylize(nums, "bigint");
  42665. }
  42666. __name(inspectBigInt2, "inspectBigInt");
  42667. function inspectRegExp2(value, options) {
  42668. let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source;
  42669. return options.stylize(`/${truncate2(source, sourceLength)}/${flags}`, "regexp");
  42670. }
  42671. __name(inspectRegExp2, "inspectRegExp");
  42672. function arrayFromSet2(set22) {
  42673. let values = [];
  42674. return set22.forEach((value) => {
  42675. values.push(value);
  42676. }), values;
  42677. }
  42678. __name(arrayFromSet2, "arrayFromSet");
  42679. function inspectSet2(set22, options) {
  42680. return set22.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList2(arrayFromSet2(set22), options)} }`);
  42681. }
  42682. __name(inspectSet2, "inspectSet");
  42683. var stringEscapeChars2 = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters2 = {
  42684. "\b": "\\b",
  42685. " ": "\\t",
  42686. "\n": "\\n",
  42687. "\f": "\\f",
  42688. "\r": "\\r",
  42689. "'": "\\'",
  42690. "\\": "\\\\"
  42691. }, hex2 = 16, unicodeLength2 = 4;
  42692. function escape2(char2) {
  42693. return escapeCharacters2[char2] || `\\u${`0000${char2.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`;
  42694. }
  42695. __name(escape2, "escape");
  42696. function inspectString2(string, options) {
  42697. return stringEscapeChars2.test(string) && (string = string.replace(stringEscapeChars2, escape2)), options.stylize(`'${truncate2(string, options.truncate - 2)}'`, "string");
  42698. }
  42699. __name(inspectString2, "inspectString");
  42700. function inspectSymbol2(value) {
  42701. return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString();
  42702. }
  42703. __name(inspectSymbol2, "inspectSymbol");
  42704. var getPromiseValue2 = __name(() => "Promise{\u2026}", "getPromiseValue"), promise_default2 = getPromiseValue2;
  42705. function inspectObject3(object, options) {
  42706. let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
  42707. if (properties.length === 0 && symbols.length === 0)
  42708. return "{}";
  42709. if (options.truncate -= 4, options.seen = options.seen || [], options.seen.includes(object))
  42710. return "[Circular]";
  42711. options.seen.push(object);
  42712. let propertyContents = inspectList2(properties.map((key) => [key, object[key]]), options, inspectProperty2), symbolContents = inspectList2(symbols.map((key) => [key, object[key]]), options, inspectProperty2);
  42713. options.seen.pop();
  42714. let sep = "";
  42715. return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`;
  42716. }
  42717. __name(inspectObject3, "inspectObject");
  42718. var toStringTag2 = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
  42719. function inspectClass2(value, options) {
  42720. let name = "";
  42721. return toStringTag2 && toStringTag2 in value && (name = value[toStringTag2]), name = name || value.constructor.name, (!name || name === "_class") && (name = "<Anonymous Class>"), options.truncate -= name.length, `${name}${inspectObject3(value, options)}`;
  42722. }
  42723. __name(inspectClass2, "inspectClass");
  42724. function inspectArguments2(args, options) {
  42725. return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList2(args, options)} ]`);
  42726. }
  42727. __name(inspectArguments2, "inspectArguments");
  42728. var errorKeys2 = [
  42729. "stack",
  42730. "line",
  42731. "column",
  42732. "name",
  42733. "message",
  42734. "fileName",
  42735. "lineNumber",
  42736. "columnNumber",
  42737. "number",
  42738. "description",
  42739. "cause"
  42740. ];
  42741. function inspectObject22(error, options) {
  42742. let properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys2.indexOf(key) === -1), name = error.name;
  42743. options.truncate -= name.length;
  42744. let message = "";
  42745. if (typeof error.message == "string" ? message = truncate2(error.message, options.truncate) : properties.unshift("message"), message = message ? `: ${message}` : "", options.truncate -= message.length + 5, options.seen = options.seen || [], options.seen.includes(error))
  42746. return "[Circular]";
  42747. options.seen.push(error);
  42748. let propertyContents = inspectList2(properties.map((key) => [key, error[key]]), options, inspectProperty2);
  42749. return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
  42750. }
  42751. __name(inspectObject22, "inspectObject");
  42752. function inspectAttribute2([key, value], options) {
  42753. return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`;
  42754. }
  42755. __name(inspectAttribute2, "inspectAttribute");
  42756. function inspectNodeCollection2(collection, options) {
  42757. return inspectList2(collection, options, inspectNode2, `
  42758. `);
  42759. }
  42760. __name(inspectNodeCollection2, "inspectNodeCollection");
  42761. function inspectNode2(node2, options) {
  42762. switch (node2.nodeType) {
  42763. case 1:
  42764. return inspectHTML2(node2, options);
  42765. case 3:
  42766. return options.inspect(node2.data, options);
  42767. default:
  42768. return options.inspect(node2, options);
  42769. }
  42770. }
  42771. __name(inspectNode2, "inspectNode");
  42772. function inspectHTML2(element, options) {
  42773. let properties = element.getAttributeNames(), name = element.tagName.toLowerCase(), head2 = options.stylize(`<${name}`, "special"), headClose = options.stylize(">", "special"), tail2 = options.stylize(`</${name}>`, "special");
  42774. options.truncate -= name.length * 2 + 5;
  42775. let propertyContents = "";
  42776. properties.length > 0 && (propertyContents += " ", propertyContents += inspectList2(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute2, " ")), options.truncate -= propertyContents.length;
  42777. let truncate22 = options.truncate, children = inspectNodeCollection2(element.children, options);
  42778. return children && children.length > truncate22 && (children = `${truncator2}(${element.children.length})`), `${head2}${propertyContents}${headClose}${children}${tail2}`;
  42779. }
  42780. __name(inspectHTML2, "inspectHTML");
  42781. var symbolsSupported2 = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect2 = symbolsSupported2 ? Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect2 = Symbol.for("nodejs.util.inspect.custom"), constructorMap2 = /* @__PURE__ */ new WeakMap(), stringTagMap2 = {}, baseTypesMap2 = {
  42782. undefined: __name((value, options) => options.stylize("undefined", "undefined"), "undefined"),
  42783. null: __name((value, options) => options.stylize("null", "null"), "null"),
  42784. boolean: __name((value, options) => options.stylize(String(value), "boolean"), "boolean"),
  42785. Boolean: __name((value, options) => options.stylize(String(value), "boolean"), "Boolean"),
  42786. number: inspectNumber2,
  42787. Number: inspectNumber2,
  42788. bigint: inspectBigInt2,
  42789. BigInt: inspectBigInt2,
  42790. string: inspectString2,
  42791. String: inspectString2,
  42792. function: inspectFunction2,
  42793. Function: inspectFunction2,
  42794. symbol: inspectSymbol2,
  42795. // A Symbol polyfill will return `Symbol` not `symbol` from typedetect
  42796. Symbol: inspectSymbol2,
  42797. Array: inspectArray2,
  42798. Date: inspectDate2,
  42799. Map: inspectMap2,
  42800. Set: inspectSet2,
  42801. RegExp: inspectRegExp2,
  42802. Promise: promise_default2,
  42803. // WeakSet, WeakMap are totally opaque to us
  42804. WeakSet: __name((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
  42805. WeakMap: __name((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
  42806. Arguments: inspectArguments2,
  42807. Int8Array: inspectTypedArray2,
  42808. Uint8Array: inspectTypedArray2,
  42809. Uint8ClampedArray: inspectTypedArray2,
  42810. Int16Array: inspectTypedArray2,
  42811. Uint16Array: inspectTypedArray2,
  42812. Int32Array: inspectTypedArray2,
  42813. Uint32Array: inspectTypedArray2,
  42814. Float32Array: inspectTypedArray2,
  42815. Float64Array: inspectTypedArray2,
  42816. Generator: __name(() => "", "Generator"),
  42817. DataView: __name(() => "", "DataView"),
  42818. ArrayBuffer: __name(() => "", "ArrayBuffer"),
  42819. Error: inspectObject22,
  42820. HTMLCollection: inspectNodeCollection2,
  42821. NodeList: inspectNodeCollection2
  42822. }, inspectCustom2 = __name((value, options, type32) => chaiInspect2 in value && typeof value[chaiInspect2] == "function" ? value[chaiInspect2](options) : nodeInspect2 in value && typeof value[nodeInspect2] == "function" ? value[nodeInspect2](options.depth, options) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap2.has(value.constructor) ? constructorMap2.get(value.constructor)(value, options) : stringTagMap2[type32] ? stringTagMap2[type32](value, options) : "", "inspectCustom"), toString4 = Object.prototype.toString;
  42823. function inspect4(value, opts = {}) {
  42824. let options = normaliseOptions2(opts, inspect4), { customInspect } = options, type32 = value === null ? "null" : typeof value;
  42825. if (type32 === "object" && (type32 = toString4.call(value).slice(8, -1)), type32 in baseTypesMap2)
  42826. return baseTypesMap2[type32](value, options);
  42827. if (customInspect && value) {
  42828. let output = inspectCustom2(value, options, type32);
  42829. if (output)
  42830. return typeof output == "string" ? output : inspect4(output, options);
  42831. }
  42832. let proto = value ? Object.getPrototypeOf(value) : !1;
  42833. return proto === Object.prototype || proto === null ? inspectObject3(value, options) : value && typeof HTMLElement == "function" && value instanceof HTMLElement ? inspectHTML2(value, options) : "constructor" in value ? value.constructor !== Object ? inspectClass2(value, options) : inspectObject3(value, options) : value === Object(value) ? inspectObject3(value, options) : options.stylize(String(value), type32);
  42834. }
  42835. __name(inspect4, "inspect");
  42836. var config2 = {
  42837. /**
  42838. * ### config.includeStack
  42839. *
  42840. * User configurable property, influences whether stack trace
  42841. * is included in Assertion error message. Default of false
  42842. * suppresses stack trace in the error message.
  42843. *
  42844. * chai.config.includeStack = true; // enable stack on error
  42845. *
  42846. * @param {boolean}
  42847. * @public
  42848. */
  42849. includeStack: !1,
  42850. /**
  42851. * ### config.showDiff
  42852. *
  42853. * User configurable property, influences whether or not
  42854. * the `showDiff` flag should be included in the thrown
  42855. * AssertionErrors. `false` will always be `false`; `true`
  42856. * will be true when the assertion has requested a diff
  42857. * be shown.
  42858. *
  42859. * @param {boolean}
  42860. * @public
  42861. */
  42862. showDiff: !0,
  42863. /**
  42864. * ### config.truncateThreshold
  42865. *
  42866. * User configurable property, sets length threshold for actual and
  42867. * expected values in assertion errors. If this threshold is exceeded, for
  42868. * example for large data structures, the value is replaced with something
  42869. * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.
  42870. *
  42871. * Set it to zero if you want to disable truncating altogether.
  42872. *
  42873. * This is especially userful when doing assertions on arrays: having this
  42874. * set to a reasonable large value makes the failure messages readily
  42875. * inspectable.
  42876. *
  42877. * chai.config.truncateThreshold = 0; // disable truncating
  42878. *
  42879. * @param {number}
  42880. * @public
  42881. */
  42882. truncateThreshold: 40,
  42883. /**
  42884. * ### config.useProxy
  42885. *
  42886. * User configurable property, defines if chai will use a Proxy to throw
  42887. * an error when a non-existent property is read, which protects users
  42888. * from typos when using property-based assertions.
  42889. *
  42890. * Set it to false if you want to disable this feature.
  42891. *
  42892. * chai.config.useProxy = false; // disable use of Proxy
  42893. *
  42894. * This feature is automatically disabled regardless of this config value
  42895. * in environments that don't support proxies.
  42896. *
  42897. * @param {boolean}
  42898. * @public
  42899. */
  42900. useProxy: !0,
  42901. /**
  42902. * ### config.proxyExcludedKeys
  42903. *
  42904. * User configurable property, defines which properties should be ignored
  42905. * instead of throwing an error if they do not exist on the assertion.
  42906. * This is only applied if the environment Chai is running in supports proxies and
  42907. * if the `useProxy` configuration setting is enabled.
  42908. * By default, `then` and `inspect` will not throw an error if they do not exist on the
  42909. * assertion object because the `.inspect` property is read by `util.inspect` (for example, when
  42910. * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.
  42911. *
  42912. * // By default these keys will not throw an error if they do not exist on the assertion object
  42913. * chai.config.proxyExcludedKeys = ['then', 'inspect'];
  42914. *
  42915. * @param {Array}
  42916. * @public
  42917. */
  42918. proxyExcludedKeys: ["then", "catch", "inspect", "toJSON"],
  42919. /**
  42920. * ### config.deepEqual
  42921. *
  42922. * User configurable property, defines which a custom function to use for deepEqual
  42923. * comparisons.
  42924. * By default, the function used is the one from the `deep-eql` package without custom comparator.
  42925. *
  42926. * // use a custom comparator
  42927. * chai.config.deepEqual = (expected, actual) => {
  42928. * return chai.util.eql(expected, actual, {
  42929. * comparator: (expected, actual) => {
  42930. * // for non number comparison, use the default behavior
  42931. * if(typeof expected !== 'number') return null;
  42932. * // allow a difference of 10 between compared numbers
  42933. * return typeof actual === 'number' && Math.abs(actual - expected) < 10
  42934. * }
  42935. * })
  42936. * };
  42937. *
  42938. * @param {Function}
  42939. * @public
  42940. */
  42941. deepEqual: null
  42942. };
  42943. function inspect22(obj, showHidden, depth, colors3) {
  42944. let options = {
  42945. colors: colors3,
  42946. depth: typeof depth > "u" ? 2 : depth,
  42947. showHidden,
  42948. truncate: config2.truncateThreshold ? config2.truncateThreshold : 1 / 0
  42949. };
  42950. return inspect4(obj, options);
  42951. }
  42952. __name(inspect22, "inspect");
  42953. function objDisplay(obj) {
  42954. let str2 = inspect22(obj), type32 = Object.prototype.toString.call(obj);
  42955. if (config2.truncateThreshold && str2.length >= config2.truncateThreshold) {
  42956. if (type32 === "[object Function]")
  42957. return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]";
  42958. if (type32 === "[object Array]")
  42959. return "[ Array(" + obj.length + ") ]";
  42960. if (type32 === "[object Object]") {
  42961. let keys3 = Object.keys(obj);
  42962. return "{ Object (" + (keys3.length > 2 ? keys3.splice(0, 2).join(", ") + ", ..." : keys3.join(", ")) + ") }";
  42963. } else
  42964. return str2;
  42965. } else
  42966. return str2;
  42967. }
  42968. __name(objDisplay, "objDisplay");
  42969. function getMessage2(obj, args) {
  42970. let negate = flag(obj, "negate"), val = flag(obj, "object"), expected = args[3], actual = getActual(obj, args), msg = negate ? args[2] : args[1], flagMsg = flag(obj, "message");
  42971. return typeof msg == "function" && (msg = msg()), msg = msg || "", msg = msg.replace(/#\{this\}/g, function() {
  42972. return objDisplay(val);
  42973. }).replace(/#\{act\}/g, function() {
  42974. return objDisplay(actual);
  42975. }).replace(/#\{exp\}/g, function() {
  42976. return objDisplay(expected);
  42977. }), flagMsg ? flagMsg + ": " + msg : msg;
  42978. }
  42979. __name(getMessage2, "getMessage");
  42980. function transferFlags(assertion, object, includeAll) {
  42981. let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
  42982. object.__flags || (object.__flags = /* @__PURE__ */ Object.create(null)), includeAll = arguments.length === 3 ? includeAll : !0;
  42983. for (let flag3 in flags)
  42984. (includeAll || flag3 !== "object" && flag3 !== "ssfi" && flag3 !== "lockSsfi" && flag3 != "message") && (object.__flags[flag3] = flags[flag3]);
  42985. }
  42986. __name(transferFlags, "transferFlags");
  42987. function type2(obj) {
  42988. if (typeof obj > "u")
  42989. return "undefined";
  42990. if (obj === null)
  42991. return "null";
  42992. let stringTag2 = obj[Symbol.toStringTag];
  42993. return typeof stringTag2 == "string" ? stringTag2 : Object.prototype.toString.call(obj).slice(8, -1);
  42994. }
  42995. __name(type2, "type");
  42996. function FakeMap() {
  42997. this._key = "chai/deep-eql__" + Math.random() + Date.now();
  42998. }
  42999. __name(FakeMap, "FakeMap");
  43000. FakeMap.prototype = {
  43001. get: __name(function(key) {
  43002. return key[this._key];
  43003. }, "get"),
  43004. set: __name(function(key, value) {
  43005. Object.isExtensible(key) && Object.defineProperty(key, this._key, {
  43006. value,
  43007. configurable: !0
  43008. });
  43009. }, "set")
  43010. };
  43011. var MemoizeMap = typeof WeakMap == "function" ? WeakMap : FakeMap;
  43012. function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {
  43013. if (!memoizeMap || isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand))
  43014. return null;
  43015. var leftHandMap = memoizeMap.get(leftHandOperand);
  43016. if (leftHandMap) {
  43017. var result = leftHandMap.get(rightHandOperand);
  43018. if (typeof result == "boolean")
  43019. return result;
  43020. }
  43021. return null;
  43022. }
  43023. __name(memoizeCompare, "memoizeCompare");
  43024. function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
  43025. if (!(!memoizeMap || isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand))) {
  43026. var leftHandMap = memoizeMap.get(leftHandOperand);
  43027. leftHandMap ? leftHandMap.set(rightHandOperand, result) : (leftHandMap = new MemoizeMap(), leftHandMap.set(rightHandOperand, result), memoizeMap.set(leftHandOperand, leftHandMap));
  43028. }
  43029. }
  43030. __name(memoizeSet, "memoizeSet");
  43031. var deep_eql_default = deepEqual;
  43032. function deepEqual(leftHandOperand, rightHandOperand, options) {
  43033. if (options && options.comparator)
  43034. return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
  43035. var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);
  43036. return simpleResult !== null ? simpleResult : extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
  43037. }
  43038. __name(deepEqual, "deepEqual");
  43039. function simpleEqual(leftHandOperand, rightHandOperand) {
  43040. return leftHandOperand === rightHandOperand ? leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand : leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare
  43041. rightHandOperand !== rightHandOperand ? !0 : isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand) ? !1 : null;
  43042. }
  43043. __name(simpleEqual, "simpleEqual");
  43044. function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
  43045. options = options || {}, options.memoize = options.memoize === !1 ? !1 : options.memoize || new MemoizeMap();
  43046. var comparator = options && options.comparator, memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);
  43047. if (memoizeResultLeft !== null)
  43048. return memoizeResultLeft;
  43049. var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);
  43050. if (memoizeResultRight !== null)
  43051. return memoizeResultRight;
  43052. if (comparator) {
  43053. var comparatorResult = comparator(leftHandOperand, rightHandOperand);
  43054. if (comparatorResult === !1 || comparatorResult === !0)
  43055. return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult), comparatorResult;
  43056. var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);
  43057. if (simpleResult !== null)
  43058. return simpleResult;
  43059. }
  43060. var leftHandType = type2(leftHandOperand);
  43061. if (leftHandType !== type2(rightHandOperand))
  43062. return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, !1), !1;
  43063. memoizeSet(leftHandOperand, rightHandOperand, options.memoize, !0);
  43064. var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);
  43065. return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result), result;
  43066. }
  43067. __name(extensiveDeepEqual, "extensiveDeepEqual");
  43068. function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {
  43069. switch (leftHandType) {
  43070. case "String":
  43071. case "Number":
  43072. case "Boolean":
  43073. case "Date":
  43074. return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());
  43075. case "Promise":
  43076. case "Symbol":
  43077. case "function":
  43078. case "WeakMap":
  43079. case "WeakSet":
  43080. return leftHandOperand === rightHandOperand;
  43081. case "Error":
  43082. return keysEqual(leftHandOperand, rightHandOperand, ["name", "message", "code"], options);
  43083. case "Arguments":
  43084. case "Int8Array":
  43085. case "Uint8Array":
  43086. case "Uint8ClampedArray":
  43087. case "Int16Array":
  43088. case "Uint16Array":
  43089. case "Int32Array":
  43090. case "Uint32Array":
  43091. case "Float32Array":
  43092. case "Float64Array":
  43093. case "Array":
  43094. return iterableEqual(leftHandOperand, rightHandOperand, options);
  43095. case "RegExp":
  43096. return regexpEqual(leftHandOperand, rightHandOperand);
  43097. case "Generator":
  43098. return generatorEqual(leftHandOperand, rightHandOperand, options);
  43099. case "DataView":
  43100. return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);
  43101. case "ArrayBuffer":
  43102. return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);
  43103. case "Set":
  43104. return entriesEqual(leftHandOperand, rightHandOperand, options);
  43105. case "Map":
  43106. return entriesEqual(leftHandOperand, rightHandOperand, options);
  43107. case "Temporal.PlainDate":
  43108. case "Temporal.PlainTime":
  43109. case "Temporal.PlainDateTime":
  43110. case "Temporal.Instant":
  43111. case "Temporal.ZonedDateTime":
  43112. case "Temporal.PlainYearMonth":
  43113. case "Temporal.PlainMonthDay":
  43114. return leftHandOperand.equals(rightHandOperand);
  43115. case "Temporal.Duration":
  43116. return leftHandOperand.total("nanoseconds") === rightHandOperand.total("nanoseconds");
  43117. case "Temporal.TimeZone":
  43118. case "Temporal.Calendar":
  43119. return leftHandOperand.toString() === rightHandOperand.toString();
  43120. default:
  43121. return objectEqual(leftHandOperand, rightHandOperand, options);
  43122. }
  43123. }
  43124. __name(extensiveDeepEqualByType, "extensiveDeepEqualByType");
  43125. function regexpEqual(leftHandOperand, rightHandOperand) {
  43126. return leftHandOperand.toString() === rightHandOperand.toString();
  43127. }
  43128. __name(regexpEqual, "regexpEqual");
  43129. function entriesEqual(leftHandOperand, rightHandOperand, options) {
  43130. try {
  43131. if (leftHandOperand.size !== rightHandOperand.size)
  43132. return !1;
  43133. if (leftHandOperand.size === 0)
  43134. return !0;
  43135. } catch {
  43136. return !1;
  43137. }
  43138. var leftHandItems = [], rightHandItems = [];
  43139. return leftHandOperand.forEach(__name(function(key, value) {
  43140. leftHandItems.push([key, value]);
  43141. }, "gatherEntries")), rightHandOperand.forEach(__name(function(key, value) {
  43142. rightHandItems.push([key, value]);
  43143. }, "gatherEntries")), iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);
  43144. }
  43145. __name(entriesEqual, "entriesEqual");
  43146. function iterableEqual(leftHandOperand, rightHandOperand, options) {
  43147. var length2 = leftHandOperand.length;
  43148. if (length2 !== rightHandOperand.length)
  43149. return !1;
  43150. if (length2 === 0)
  43151. return !0;
  43152. for (var index4 = -1; ++index4 < length2; )
  43153. if (deepEqual(leftHandOperand[index4], rightHandOperand[index4], options) === !1)
  43154. return !1;
  43155. return !0;
  43156. }
  43157. __name(iterableEqual, "iterableEqual");
  43158. function generatorEqual(leftHandOperand, rightHandOperand, options) {
  43159. return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);
  43160. }
  43161. __name(generatorEqual, "generatorEqual");
  43162. function hasIteratorFunction(target) {
  43163. return typeof Symbol < "u" && typeof target == "object" && typeof Symbol.iterator < "u" && typeof target[Symbol.iterator] == "function";
  43164. }
  43165. __name(hasIteratorFunction, "hasIteratorFunction");
  43166. function getIteratorEntries(target) {
  43167. if (hasIteratorFunction(target))
  43168. try {
  43169. return getGeneratorEntries(target[Symbol.iterator]());
  43170. } catch {
  43171. return [];
  43172. }
  43173. return [];
  43174. }
  43175. __name(getIteratorEntries, "getIteratorEntries");
  43176. function getGeneratorEntries(generator) {
  43177. for (var generatorResult = generator.next(), accumulator = [generatorResult.value]; generatorResult.done === !1; )
  43178. generatorResult = generator.next(), accumulator.push(generatorResult.value);
  43179. return accumulator;
  43180. }
  43181. __name(getGeneratorEntries, "getGeneratorEntries");
  43182. function getEnumerableKeys(target) {
  43183. var keys3 = [];
  43184. for (var key in target)
  43185. keys3.push(key);
  43186. return keys3;
  43187. }
  43188. __name(getEnumerableKeys, "getEnumerableKeys");
  43189. function getEnumerableSymbols(target) {
  43190. for (var keys3 = [], allKeys = Object.getOwnPropertySymbols(target), i = 0; i < allKeys.length; i += 1) {
  43191. var key = allKeys[i];
  43192. Object.getOwnPropertyDescriptor(target, key).enumerable && keys3.push(key);
  43193. }
  43194. return keys3;
  43195. }
  43196. __name(getEnumerableSymbols, "getEnumerableSymbols");
  43197. function keysEqual(leftHandOperand, rightHandOperand, keys3, options) {
  43198. var length2 = keys3.length;
  43199. if (length2 === 0)
  43200. return !0;
  43201. for (var i = 0; i < length2; i += 1)
  43202. if (deepEqual(leftHandOperand[keys3[i]], rightHandOperand[keys3[i]], options) === !1)
  43203. return !1;
  43204. return !0;
  43205. }
  43206. __name(keysEqual, "keysEqual");
  43207. function objectEqual(leftHandOperand, rightHandOperand, options) {
  43208. var leftHandKeys = getEnumerableKeys(leftHandOperand), rightHandKeys = getEnumerableKeys(rightHandOperand), leftHandSymbols = getEnumerableSymbols(leftHandOperand), rightHandSymbols = getEnumerableSymbols(rightHandOperand);
  43209. if (leftHandKeys = leftHandKeys.concat(leftHandSymbols), rightHandKeys = rightHandKeys.concat(rightHandSymbols), leftHandKeys.length && leftHandKeys.length === rightHandKeys.length)
  43210. return iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === !1 ? !1 : keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);
  43211. var leftHandEntries = getIteratorEntries(leftHandOperand), rightHandEntries = getIteratorEntries(rightHandOperand);
  43212. return leftHandEntries.length && leftHandEntries.length === rightHandEntries.length ? (leftHandEntries.sort(), rightHandEntries.sort(), iterableEqual(leftHandEntries, rightHandEntries, options)) : leftHandKeys.length === 0 && leftHandEntries.length === 0 && rightHandKeys.length === 0 && rightHandEntries.length === 0;
  43213. }
  43214. __name(objectEqual, "objectEqual");
  43215. function isPrimitive2(value) {
  43216. return value === null || typeof value != "object";
  43217. }
  43218. __name(isPrimitive2, "isPrimitive");
  43219. function mapSymbols(arr) {
  43220. return arr.map(__name(function(entry) {
  43221. return typeof entry == "symbol" ? entry.toString() : entry;
  43222. }, "mapSymbol"));
  43223. }
  43224. __name(mapSymbols, "mapSymbols");
  43225. function hasProperty(obj, name) {
  43226. return typeof obj > "u" || obj === null ? !1 : name in Object(obj);
  43227. }
  43228. __name(hasProperty, "hasProperty");
  43229. function parsePath(path) {
  43230. return path.replace(/([^\\])\[/g, "$1.[").match(/(\\\.|[^.]+?)+/g).map((value) => {
  43231. if (value === "constructor" || value === "__proto__" || value === "prototype")
  43232. return {};
  43233. let mArr = /^\[(\d+)\]$/.exec(value), parsed = null;
  43234. return mArr ? parsed = { i: parseFloat(mArr[1]) } : parsed = { p: value.replace(/\\([.[\]])/g, "$1") }, parsed;
  43235. });
  43236. }
  43237. __name(parsePath, "parsePath");
  43238. function internalGetPathValue(obj, parsed, pathDepth) {
  43239. let temporaryValue = obj, res = null;
  43240. pathDepth = typeof pathDepth > "u" ? parsed.length : pathDepth;
  43241. for (let i = 0; i < pathDepth; i++) {
  43242. let part = parsed[i];
  43243. temporaryValue && (typeof part.p > "u" ? temporaryValue = temporaryValue[part.i] : temporaryValue = temporaryValue[part.p], i === pathDepth - 1 && (res = temporaryValue));
  43244. }
  43245. return res;
  43246. }
  43247. __name(internalGetPathValue, "internalGetPathValue");
  43248. function getPathInfo(obj, path) {
  43249. let parsed = parsePath(path), last2 = parsed[parsed.length - 1], info = {
  43250. parent: parsed.length > 1 ? internalGetPathValue(obj, parsed, parsed.length - 1) : obj,
  43251. name: last2.p || last2.i,
  43252. value: internalGetPathValue(obj, parsed)
  43253. };
  43254. return info.exists = hasProperty(info.parent, info.name), info;
  43255. }
  43256. __name(getPathInfo, "getPathInfo");
  43257. var _a2, Assertion = (_a2 = class {
  43258. /** @type {{}} */
  43259. __flags = {};
  43260. /**
  43261. * Creates object for chaining.
  43262. * `Assertion` objects contain metadata in the form of flags. Three flags can
  43263. * be assigned during instantiation by passing arguments to this constructor:
  43264. *
  43265. * - `object`: This flag contains the target of the assertion. For example, in
  43266. * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
  43267. * contain `numKittens` so that the `equal` assertion can reference it when
  43268. * needed.
  43269. *
  43270. * - `message`: This flag contains an optional custom error message to be
  43271. * prepended to the error message that's generated by the assertion when it
  43272. * fails.
  43273. *
  43274. * - `ssfi`: This flag stands for "start stack function indicator". It
  43275. * contains a function reference that serves as the starting point for
  43276. * removing frames from the stack trace of the error that's created by the
  43277. * assertion when it fails. The goal is to provide a cleaner stack trace to
  43278. * end users by removing Chai's internal functions. Note that it only works
  43279. * in environments that support `Error.captureStackTrace`, and only when
  43280. * `Chai.config.includeStack` hasn't been set to `false`.
  43281. *
  43282. * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
  43283. * should retain its current value, even as assertions are chained off of
  43284. * this object. This is usually set to `true` when creating a new assertion
  43285. * from within another assertion. It's also temporarily set to `true` before
  43286. * an overwritten assertion gets called by the overwriting assertion.
  43287. *
  43288. * - `eql`: This flag contains the deepEqual function to be used by the assertion.
  43289. *
  43290. * @param {unknown} obj target of the assertion
  43291. * @param {string} [msg] (optional) custom error message
  43292. * @param {Function} [ssfi] (optional) starting point for removing stack frames
  43293. * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked
  43294. */
  43295. constructor(obj, msg, ssfi, lockSsfi) {
  43296. return flag(this, "ssfi", ssfi || _a2), flag(this, "lockSsfi", lockSsfi), flag(this, "object", obj), flag(this, "message", msg), flag(this, "eql", config2.deepEqual || deep_eql_default), proxify(this);
  43297. }
  43298. /** @returns {boolean} */
  43299. static get includeStack() {
  43300. return console.warn(
  43301. "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
  43302. ), config2.includeStack;
  43303. }
  43304. /** @param {boolean} value */
  43305. static set includeStack(value) {
  43306. console.warn(
  43307. "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
  43308. ), config2.includeStack = value;
  43309. }
  43310. /** @returns {boolean} */
  43311. static get showDiff() {
  43312. return console.warn(
  43313. "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
  43314. ), config2.showDiff;
  43315. }
  43316. /** @param {boolean} value */
  43317. static set showDiff(value) {
  43318. console.warn(
  43319. "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
  43320. ), config2.showDiff = value;
  43321. }
  43322. /**
  43323. * @param {string} name
  43324. * @param {Function} fn
  43325. */
  43326. static addProperty(name, fn4) {
  43327. addProperty(this.prototype, name, fn4);
  43328. }
  43329. /**
  43330. * @param {string} name
  43331. * @param {Function} fn
  43332. */
  43333. static addMethod(name, fn4) {
  43334. addMethod(this.prototype, name, fn4);
  43335. }
  43336. /**
  43337. * @param {string} name
  43338. * @param {Function} fn
  43339. * @param {Function} chainingBehavior
  43340. */
  43341. static addChainableMethod(name, fn4, chainingBehavior) {
  43342. addChainableMethod(this.prototype, name, fn4, chainingBehavior);
  43343. }
  43344. /**
  43345. * @param {string} name
  43346. * @param {Function} fn
  43347. */
  43348. static overwriteProperty(name, fn4) {
  43349. overwriteProperty(this.prototype, name, fn4);
  43350. }
  43351. /**
  43352. * @param {string} name
  43353. * @param {Function} fn
  43354. */
  43355. static overwriteMethod(name, fn4) {
  43356. overwriteMethod(this.prototype, name, fn4);
  43357. }
  43358. /**
  43359. * @param {string} name
  43360. * @param {Function} fn
  43361. * @param {Function} chainingBehavior
  43362. */
  43363. static overwriteChainableMethod(name, fn4, chainingBehavior) {
  43364. overwriteChainableMethod(this.prototype, name, fn4, chainingBehavior);
  43365. }
  43366. /**
  43367. * ### .assert(expression, message, negateMessage, expected, actual, showDiff)
  43368. *
  43369. * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
  43370. *
  43371. * @name assert
  43372. * @param {unknown} _expr to be tested
  43373. * @param {string | Function} msg or function that returns message to display if expression fails
  43374. * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails
  43375. * @param {unknown} expected value (remember to check for negation)
  43376. * @param {unknown} _actual (optional) will default to `this.obj`
  43377. * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails
  43378. * @returns {void}
  43379. */
  43380. assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {
  43381. let ok = test2(this, arguments);
  43382. if (showDiff !== !1 && (showDiff = !0), expected === void 0 && _actual === void 0 && (showDiff = !1), config2.showDiff !== !0 && (showDiff = !1), !ok) {
  43383. msg = getMessage2(this, arguments);
  43384. let assertionErrorObjectProperties = {
  43385. actual: getActual(this, arguments),
  43386. expected,
  43387. showDiff
  43388. }, operator = getOperator(this, arguments);
  43389. throw operator && (assertionErrorObjectProperties.operator = operator), new AssertionError(
  43390. msg,
  43391. assertionErrorObjectProperties,
  43392. // @ts-expect-error Not sure what to do about these types yet
  43393. config2.includeStack ? this.assert : flag(this, "ssfi")
  43394. );
  43395. }
  43396. }
  43397. /**
  43398. * Quick reference to stored `actual` value for plugin developers.
  43399. *
  43400. * @returns {unknown}
  43401. */
  43402. get _obj() {
  43403. return flag(this, "object");
  43404. }
  43405. /**
  43406. * Quick reference to stored `actual` value for plugin developers.
  43407. *
  43408. * @param {unknown} val
  43409. */
  43410. set _obj(val) {
  43411. flag(this, "object", val);
  43412. }
  43413. }, __name(_a2, "Assertion"), _a2);
  43414. function isProxyEnabled() {
  43415. return config2.useProxy && typeof Proxy < "u" && typeof Reflect < "u";
  43416. }
  43417. __name(isProxyEnabled, "isProxyEnabled");
  43418. function addProperty(ctx, name, getter) {
  43419. getter = getter === void 0 ? function() {
  43420. } : getter, Object.defineProperty(ctx, name, {
  43421. get: __name(function propertyGetter() {
  43422. !isProxyEnabled() && !flag(this, "lockSsfi") && flag(this, "ssfi", propertyGetter);
  43423. let result = getter.call(this);
  43424. if (result !== void 0) return result;
  43425. let newAssertion = new Assertion();
  43426. return transferFlags(this, newAssertion), newAssertion;
  43427. }, "propertyGetter"),
  43428. configurable: !0
  43429. });
  43430. }
  43431. __name(addProperty, "addProperty");
  43432. var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
  43433. }, "length");
  43434. function addLengthGuard(fn4, assertionName, isChainable) {
  43435. return fnLengthDesc.configurable && Object.defineProperty(fn4, "length", {
  43436. get: __name(function() {
  43437. throw Error(
  43438. isChainable ? "Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.' : "Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".'
  43439. );
  43440. }, "get")
  43441. }), fn4;
  43442. }
  43443. __name(addLengthGuard, "addLengthGuard");
  43444. function getProperties(object) {
  43445. let result = Object.getOwnPropertyNames(object);
  43446. function addProperty2(property) {
  43447. result.indexOf(property) === -1 && result.push(property);
  43448. }
  43449. __name(addProperty2, "addProperty");
  43450. let proto = Object.getPrototypeOf(object);
  43451. for (; proto !== null; )
  43452. Object.getOwnPropertyNames(proto).forEach(addProperty2), proto = Object.getPrototypeOf(proto);
  43453. return result;
  43454. }
  43455. __name(getProperties, "getProperties");
  43456. var builtins = ["__flags", "__methods", "_obj", "assert"];
  43457. function proxify(obj, nonChainableMethodName) {
  43458. return isProxyEnabled() ? new Proxy(obj, {
  43459. get: __name(function proxyGetter(target, property) {
  43460. if (typeof property == "string" && config2.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {
  43461. if (nonChainableMethodName)
  43462. throw Error(
  43463. "Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".'
  43464. );
  43465. let suggestion = null, suggestionDistance = 4;
  43466. throw getProperties(target).forEach(function(prop) {
  43467. if (
  43468. // we actually mean to check `Object.prototype` here
  43469. // eslint-disable-next-line no-prototype-builtins
  43470. !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1
  43471. ) {
  43472. let dist = stringDistanceCapped(property, prop, suggestionDistance);
  43473. dist < suggestionDistance && (suggestion = prop, suggestionDistance = dist);
  43474. }
  43475. }), Error(
  43476. suggestion !== null ? "Invalid Chai property: " + property + '. Did you mean "' + suggestion + '"?' : "Invalid Chai property: " + property
  43477. );
  43478. }
  43479. return builtins.indexOf(property) === -1 && !flag(target, "lockSsfi") && flag(target, "ssfi", proxyGetter), Reflect.get(target, property);
  43480. }, "proxyGetter")
  43481. }) : obj;
  43482. }
  43483. __name(proxify, "proxify");
  43484. function stringDistanceCapped(strA, strB, cap) {
  43485. if (Math.abs(strA.length - strB.length) >= cap)
  43486. return cap;
  43487. let memo2 = [];
  43488. for (let i = 0; i <= strA.length; i++)
  43489. memo2[i] = Array(strB.length + 1).fill(0), memo2[i][0] = i;
  43490. for (let j = 0; j < strB.length; j++)
  43491. memo2[0][j] = j;
  43492. for (let i = 1; i <= strA.length; i++) {
  43493. let ch = strA.charCodeAt(i - 1);
  43494. for (let j = 1; j <= strB.length; j++) {
  43495. if (Math.abs(i - j) >= cap) {
  43496. memo2[i][j] = cap;
  43497. continue;
  43498. }
  43499. memo2[i][j] = Math.min(
  43500. memo2[i - 1][j] + 1,
  43501. memo2[i][j - 1] + 1,
  43502. memo2[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)
  43503. );
  43504. }
  43505. }
  43506. return memo2[strA.length][strB.length];
  43507. }
  43508. __name(stringDistanceCapped, "stringDistanceCapped");
  43509. function addMethod(ctx, name, method) {
  43510. let methodWrapper = __name(function() {
  43511. flag(this, "lockSsfi") || flag(this, "ssfi", methodWrapper);
  43512. let result = method.apply(this, arguments);
  43513. if (result !== void 0) return result;
  43514. let newAssertion = new Assertion();
  43515. return transferFlags(this, newAssertion), newAssertion;
  43516. }, "methodWrapper");
  43517. addLengthGuard(methodWrapper, name, !1), ctx[name] = proxify(methodWrapper, name);
  43518. }
  43519. __name(addMethod, "addMethod");
  43520. function overwriteProperty(ctx, name, getter) {
  43521. let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = __name(function() {
  43522. }, "_super");
  43523. _get && typeof _get.get == "function" && (_super = _get.get), Object.defineProperty(ctx, name, {
  43524. get: __name(function overwritingPropertyGetter() {
  43525. !isProxyEnabled() && !flag(this, "lockSsfi") && flag(this, "ssfi", overwritingPropertyGetter);
  43526. let origLockSsfi = flag(this, "lockSsfi");
  43527. flag(this, "lockSsfi", !0);
  43528. let result = getter(_super).call(this);
  43529. if (flag(this, "lockSsfi", origLockSsfi), result !== void 0)
  43530. return result;
  43531. let newAssertion = new Assertion();
  43532. return transferFlags(this, newAssertion), newAssertion;
  43533. }, "overwritingPropertyGetter"),
  43534. configurable: !0
  43535. });
  43536. }
  43537. __name(overwriteProperty, "overwriteProperty");
  43538. function overwriteMethod(ctx, name, method) {
  43539. let _method = ctx[name], _super = __name(function() {
  43540. throw new Error(name + " is not a function");
  43541. }, "_super");
  43542. _method && typeof _method == "function" && (_super = _method);
  43543. let overwritingMethodWrapper = __name(function() {
  43544. flag(this, "lockSsfi") || flag(this, "ssfi", overwritingMethodWrapper);
  43545. let origLockSsfi = flag(this, "lockSsfi");
  43546. flag(this, "lockSsfi", !0);
  43547. let result = method(_super).apply(this, arguments);
  43548. if (flag(this, "lockSsfi", origLockSsfi), result !== void 0)
  43549. return result;
  43550. let newAssertion = new Assertion();
  43551. return transferFlags(this, newAssertion), newAssertion;
  43552. }, "overwritingMethodWrapper");
  43553. addLengthGuard(overwritingMethodWrapper, name, !1), ctx[name] = proxify(overwritingMethodWrapper, name);
  43554. }
  43555. __name(overwriteMethod, "overwriteMethod");
  43556. var canSetPrototype = typeof Object.setPrototypeOf == "function", testFn = __name(function() {
  43557. }, "testFn"), excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {
  43558. let propDesc = Object.getOwnPropertyDescriptor(testFn, name);
  43559. return typeof propDesc != "object" ? !0 : !propDesc.configurable;
  43560. }), call = Function.prototype.call, apply = Function.prototype.apply;
  43561. function addChainableMethod(ctx, name, method, chainingBehavior) {
  43562. typeof chainingBehavior != "function" && (chainingBehavior = __name(function() {
  43563. }, "chainingBehavior"));
  43564. let chainableBehavior = {
  43565. method,
  43566. chainingBehavior
  43567. };
  43568. ctx.__methods || (ctx.__methods = {}), ctx.__methods[name] = chainableBehavior, Object.defineProperty(ctx, name, {
  43569. get: __name(function() {
  43570. chainableBehavior.chainingBehavior.call(this);
  43571. let chainableMethodWrapper = __name(function() {
  43572. flag(this, "lockSsfi") || flag(this, "ssfi", chainableMethodWrapper);
  43573. let result = chainableBehavior.method.apply(this, arguments);
  43574. if (result !== void 0)
  43575. return result;
  43576. let newAssertion = new Assertion();
  43577. return transferFlags(this, newAssertion), newAssertion;
  43578. }, "chainableMethodWrapper");
  43579. if (addLengthGuard(chainableMethodWrapper, name, !0), canSetPrototype) {
  43580. let prototype = Object.create(this);
  43581. prototype.call = call, prototype.apply = apply, Object.setPrototypeOf(chainableMethodWrapper, prototype);
  43582. } else
  43583. Object.getOwnPropertyNames(ctx).forEach(function(asserterName) {
  43584. if (excludeNames.indexOf(asserterName) !== -1)
  43585. return;
  43586. let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
  43587. Object.defineProperty(chainableMethodWrapper, asserterName, pd);
  43588. });
  43589. return transferFlags(this, chainableMethodWrapper), proxify(chainableMethodWrapper);
  43590. }, "chainableMethodGetter"),
  43591. configurable: !0
  43592. });
  43593. }
  43594. __name(addChainableMethod, "addChainableMethod");
  43595. function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
  43596. let chainableBehavior = ctx.__methods[name], _chainingBehavior = chainableBehavior.chainingBehavior;
  43597. chainableBehavior.chainingBehavior = __name(function() {
  43598. let result = chainingBehavior(_chainingBehavior).call(this);
  43599. if (result !== void 0)
  43600. return result;
  43601. let newAssertion = new Assertion();
  43602. return transferFlags(this, newAssertion), newAssertion;
  43603. }, "overwritingChainableMethodGetter");
  43604. let _method = chainableBehavior.method;
  43605. chainableBehavior.method = __name(function() {
  43606. let result = method(_method).apply(this, arguments);
  43607. if (result !== void 0)
  43608. return result;
  43609. let newAssertion = new Assertion();
  43610. return transferFlags(this, newAssertion), newAssertion;
  43611. }, "overwritingChainableMethodWrapper");
  43612. }
  43613. __name(overwriteChainableMethod, "overwriteChainableMethod");
  43614. function compareByInspect(a3, b) {
  43615. return inspect22(a3) < inspect22(b) ? -1 : 1;
  43616. }
  43617. __name(compareByInspect, "compareByInspect");
  43618. function getOwnEnumerablePropertySymbols(obj) {
  43619. return typeof Object.getOwnPropertySymbols != "function" ? [] : Object.getOwnPropertySymbols(obj).filter(function(sym) {
  43620. return Object.getOwnPropertyDescriptor(obj, sym).enumerable;
  43621. });
  43622. }
  43623. __name(getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols");
  43624. function getOwnEnumerableProperties(obj) {
  43625. return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));
  43626. }
  43627. __name(getOwnEnumerableProperties, "getOwnEnumerableProperties");
  43628. var isNaN22 = Number.isNaN;
  43629. function isObjectType(obj) {
  43630. let objectType = type(obj);
  43631. return ["Array", "Object", "Function"].indexOf(objectType) !== -1;
  43632. }
  43633. __name(isObjectType, "isObjectType");
  43634. function getOperator(obj, args) {
  43635. let operator = flag(obj, "operator"), negate = flag(obj, "negate"), expected = args[3], msg = negate ? args[2] : args[1];
  43636. if (operator)
  43637. return operator;
  43638. if (typeof msg == "function" && (msg = msg()), msg = msg || "", !msg || /\shave\s/.test(msg))
  43639. return;
  43640. let isObject7 = isObjectType(expected);
  43641. return /\snot\s/.test(msg) ? isObject7 ? "notDeepStrictEqual" : "notStrictEqual" : isObject7 ? "deepStrictEqual" : "strictEqual";
  43642. }
  43643. __name(getOperator, "getOperator");
  43644. function getName(fn4) {
  43645. return fn4.name;
  43646. }
  43647. __name(getName, "getName");
  43648. function isRegExp22(obj) {
  43649. return Object.prototype.toString.call(obj) === "[object RegExp]";
  43650. }
  43651. __name(isRegExp22, "isRegExp");
  43652. function isNumeric(obj) {
  43653. return ["Number", "BigInt"].includes(type(obj));
  43654. }
  43655. __name(isNumeric, "isNumeric");
  43656. var { flag: flag2 } = utils_exports;
  43657. [
  43658. "to",
  43659. "be",
  43660. "been",
  43661. "is",
  43662. "and",
  43663. "has",
  43664. "have",
  43665. "with",
  43666. "that",
  43667. "which",
  43668. "at",
  43669. "of",
  43670. "same",
  43671. "but",
  43672. "does",
  43673. "still",
  43674. "also"
  43675. ].forEach(function(chain) {
  43676. Assertion.addProperty(chain);
  43677. });
  43678. Assertion.addProperty("not", function() {
  43679. flag2(this, "negate", !0);
  43680. });
  43681. Assertion.addProperty("deep", function() {
  43682. flag2(this, "deep", !0);
  43683. });
  43684. Assertion.addProperty("nested", function() {
  43685. flag2(this, "nested", !0);
  43686. });
  43687. Assertion.addProperty("own", function() {
  43688. flag2(this, "own", !0);
  43689. });
  43690. Assertion.addProperty("ordered", function() {
  43691. flag2(this, "ordered", !0);
  43692. });
  43693. Assertion.addProperty("any", function() {
  43694. flag2(this, "any", !0), flag2(this, "all", !1);
  43695. });
  43696. Assertion.addProperty("all", function() {
  43697. flag2(this, "all", !0), flag2(this, "any", !1);
  43698. });
  43699. var functionTypes = {
  43700. function: [
  43701. "function",
  43702. "asyncfunction",
  43703. "generatorfunction",
  43704. "asyncgeneratorfunction"
  43705. ],
  43706. asyncfunction: ["asyncfunction", "asyncgeneratorfunction"],
  43707. generatorfunction: ["generatorfunction", "asyncgeneratorfunction"],
  43708. asyncgeneratorfunction: ["asyncgeneratorfunction"]
  43709. };
  43710. function an(type32, msg) {
  43711. msg && flag2(this, "message", msg), type32 = type32.toLowerCase();
  43712. let obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type32.charAt(0)) ? "an " : "a ", detectedType = type(obj).toLowerCase();
  43713. functionTypes.function.includes(type32) ? this.assert(
  43714. functionTypes[type32].includes(detectedType),
  43715. "expected #{this} to be " + article + type32,
  43716. "expected #{this} not to be " + article + type32
  43717. ) : this.assert(
  43718. type32 === detectedType,
  43719. "expected #{this} to be " + article + type32,
  43720. "expected #{this} not to be " + article + type32
  43721. );
  43722. }
  43723. __name(an, "an");
  43724. Assertion.addChainableMethod("an", an);
  43725. Assertion.addChainableMethod("a", an);
  43726. function SameValueZero(a3, b) {
  43727. return isNaN22(a3) && isNaN22(b) || a3 === b;
  43728. }
  43729. __name(SameValueZero, "SameValueZero");
  43730. function includeChainingBehavior() {
  43731. flag2(this, "contains", !0);
  43732. }
  43733. __name(includeChainingBehavior, "includeChainingBehavior");
  43734. function include(val, msg) {
  43735. msg && flag2(this, "message", msg);
  43736. let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero;
  43737. flagMsg = flagMsg ? flagMsg + ": " : "";
  43738. let included = !1;
  43739. switch (objType) {
  43740. case "string":
  43741. included = obj.indexOf(val) !== -1;
  43742. break;
  43743. case "weakset":
  43744. if (isDeep)
  43745. throw new AssertionError(
  43746. flagMsg + "unable to use .deep.include with WeakSet",
  43747. void 0,
  43748. ssfi
  43749. );
  43750. included = obj.has(val);
  43751. break;
  43752. case "map":
  43753. obj.forEach(function(item) {
  43754. included = included || isEql(item, val);
  43755. });
  43756. break;
  43757. case "set":
  43758. isDeep ? obj.forEach(function(item) {
  43759. included = included || isEql(item, val);
  43760. }) : included = obj.has(val);
  43761. break;
  43762. case "array":
  43763. isDeep ? included = obj.some(function(item) {
  43764. return isEql(item, val);
  43765. }) : included = obj.indexOf(val) !== -1;
  43766. break;
  43767. default: {
  43768. if (val !== Object(val))
  43769. throw new AssertionError(
  43770. flagMsg + "the given combination of arguments (" + objType + " and " + type(val).toLowerCase() + ") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a " + type(val).toLowerCase(),
  43771. void 0,
  43772. ssfi
  43773. );
  43774. let props = Object.keys(val), firstErr = null, numErrs = 0;
  43775. if (props.forEach(function(prop) {
  43776. let propAssertion = new Assertion(obj);
  43777. if (transferFlags(this, propAssertion, !0), flag2(propAssertion, "lockSsfi", !0), !negate || props.length === 1) {
  43778. propAssertion.property(prop, val[prop]);
  43779. return;
  43780. }
  43781. try {
  43782. propAssertion.property(prop, val[prop]);
  43783. } catch (err) {
  43784. if (!check_error_exports.compatibleConstructor(err, AssertionError))
  43785. throw err;
  43786. firstErr === null && (firstErr = err), numErrs++;
  43787. }
  43788. }, this), negate && props.length > 1 && numErrs === props.length)
  43789. throw firstErr;
  43790. return;
  43791. }
  43792. }
  43793. this.assert(
  43794. included,
  43795. "expected #{this} to " + descriptor + "include " + inspect22(val),
  43796. "expected #{this} to not " + descriptor + "include " + inspect22(val)
  43797. );
  43798. }
  43799. __name(include, "include");
  43800. Assertion.addChainableMethod("include", include, includeChainingBehavior);
  43801. Assertion.addChainableMethod("contain", include, includeChainingBehavior);
  43802. Assertion.addChainableMethod("contains", include, includeChainingBehavior);
  43803. Assertion.addChainableMethod("includes", include, includeChainingBehavior);
  43804. Assertion.addProperty("ok", function() {
  43805. this.assert(
  43806. flag2(this, "object"),
  43807. "expected #{this} to be truthy",
  43808. "expected #{this} to be falsy"
  43809. );
  43810. });
  43811. Assertion.addProperty("true", function() {
  43812. this.assert(
  43813. flag2(this, "object") === !0,
  43814. "expected #{this} to be true",
  43815. "expected #{this} to be false",
  43816. !flag2(this, "negate")
  43817. );
  43818. });
  43819. Assertion.addProperty("numeric", function() {
  43820. let object = flag2(this, "object");
  43821. this.assert(
  43822. ["Number", "BigInt"].includes(type(object)),
  43823. "expected #{this} to be numeric",
  43824. "expected #{this} to not be numeric",
  43825. !flag2(this, "negate")
  43826. );
  43827. });
  43828. Assertion.addProperty("callable", function() {
  43829. let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), message = flag2(this, "message"), msg = message ? `${message}: ` : "", negate = flag2(this, "negate"), assertionMessage = negate ? `${msg}expected ${inspect22(val)} not to be a callable function` : `${msg}expected ${inspect22(val)} to be a callable function`, isCallable3 = [
  43830. "Function",
  43831. "AsyncFunction",
  43832. "GeneratorFunction",
  43833. "AsyncGeneratorFunction"
  43834. ].includes(type(val));
  43835. if (isCallable3 && negate || !isCallable3 && !negate)
  43836. throw new AssertionError(assertionMessage, void 0, ssfi);
  43837. });
  43838. Assertion.addProperty("false", function() {
  43839. this.assert(
  43840. flag2(this, "object") === !1,
  43841. "expected #{this} to be false",
  43842. "expected #{this} to be true",
  43843. !!flag2(this, "negate")
  43844. );
  43845. });
  43846. Assertion.addProperty("null", function() {
  43847. this.assert(
  43848. flag2(this, "object") === null,
  43849. "expected #{this} to be null",
  43850. "expected #{this} not to be null"
  43851. );
  43852. });
  43853. Assertion.addProperty("undefined", function() {
  43854. this.assert(
  43855. flag2(this, "object") === void 0,
  43856. "expected #{this} to be undefined",
  43857. "expected #{this} not to be undefined"
  43858. );
  43859. });
  43860. Assertion.addProperty("NaN", function() {
  43861. this.assert(
  43862. isNaN22(flag2(this, "object")),
  43863. "expected #{this} to be NaN",
  43864. "expected #{this} not to be NaN"
  43865. );
  43866. });
  43867. function assertExist() {
  43868. let val = flag2(this, "object");
  43869. this.assert(
  43870. val != null,
  43871. "expected #{this} to exist",
  43872. "expected #{this} to not exist"
  43873. );
  43874. }
  43875. __name(assertExist, "assertExist");
  43876. Assertion.addProperty("exist", assertExist);
  43877. Assertion.addProperty("exists", assertExist);
  43878. Assertion.addProperty("empty", function() {
  43879. let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount;
  43880. switch (flagMsg = flagMsg ? flagMsg + ": " : "", type(val).toLowerCase()) {
  43881. case "array":
  43882. case "string":
  43883. itemsCount = val.length;
  43884. break;
  43885. case "map":
  43886. case "set":
  43887. itemsCount = val.size;
  43888. break;
  43889. case "weakmap":
  43890. case "weakset":
  43891. throw new AssertionError(
  43892. flagMsg + ".empty was passed a weak collection",
  43893. void 0,
  43894. ssfi
  43895. );
  43896. case "function": {
  43897. let msg = flagMsg + ".empty was passed a function " + getName(val);
  43898. throw new AssertionError(msg.trim(), void 0, ssfi);
  43899. }
  43900. default:
  43901. if (val !== Object(val))
  43902. throw new AssertionError(
  43903. flagMsg + ".empty was passed non-string primitive " + inspect22(val),
  43904. void 0,
  43905. ssfi
  43906. );
  43907. itemsCount = Object.keys(val).length;
  43908. }
  43909. this.assert(
  43910. itemsCount === 0,
  43911. "expected #{this} to be empty",
  43912. "expected #{this} not to be empty"
  43913. );
  43914. });
  43915. function checkArguments() {
  43916. let obj = flag2(this, "object"), type32 = type(obj);
  43917. this.assert(
  43918. type32 === "Arguments",
  43919. "expected #{this} to be arguments but got " + type32,
  43920. "expected #{this} to not be arguments"
  43921. );
  43922. }
  43923. __name(checkArguments, "checkArguments");
  43924. Assertion.addProperty("arguments", checkArguments);
  43925. Assertion.addProperty("Arguments", checkArguments);
  43926. function assertEqual(val, msg) {
  43927. msg && flag2(this, "message", msg);
  43928. let obj = flag2(this, "object");
  43929. if (flag2(this, "deep")) {
  43930. let prevLockSsfi = flag2(this, "lockSsfi");
  43931. flag2(this, "lockSsfi", !0), this.eql(val), flag2(this, "lockSsfi", prevLockSsfi);
  43932. } else
  43933. this.assert(
  43934. val === obj,
  43935. "expected #{this} to equal #{exp}",
  43936. "expected #{this} to not equal #{exp}",
  43937. val,
  43938. this._obj,
  43939. !0
  43940. );
  43941. }
  43942. __name(assertEqual, "assertEqual");
  43943. Assertion.addMethod("equal", assertEqual);
  43944. Assertion.addMethod("equals", assertEqual);
  43945. Assertion.addMethod("eq", assertEqual);
  43946. function assertEql(obj, msg) {
  43947. msg && flag2(this, "message", msg);
  43948. let eql = flag2(this, "eql");
  43949. this.assert(
  43950. eql(obj, flag2(this, "object")),
  43951. "expected #{this} to deeply equal #{exp}",
  43952. "expected #{this} to not deeply equal #{exp}",
  43953. obj,
  43954. this._obj,
  43955. !0
  43956. );
  43957. }
  43958. __name(assertEql, "assertEql");
  43959. Assertion.addMethod("eql", assertEql);
  43960. Assertion.addMethod("eqls", assertEql);
  43961. function assertAbove(n, msg) {
  43962. msg && flag2(this, "message", msg);
  43963. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();
  43964. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  43965. throw new AssertionError(
  43966. msgPrefix + "the argument to above must be a date",
  43967. void 0,
  43968. ssfi
  43969. );
  43970. if (!isNumeric(n) && (doLength || isNumeric(obj)))
  43971. throw new AssertionError(
  43972. msgPrefix + "the argument to above must be a number",
  43973. void 0,
  43974. ssfi
  43975. );
  43976. if (!doLength && objType !== "date" && !isNumeric(obj)) {
  43977. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  43978. throw new AssertionError(
  43979. msgPrefix + "expected " + printObj + " to be a number or a date",
  43980. void 0,
  43981. ssfi
  43982. );
  43983. }
  43984. if (doLength) {
  43985. let descriptor = "length", itemsCount;
  43986. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  43987. itemsCount > n,
  43988. "expected #{this} to have a " + descriptor + " above #{exp} but got #{act}",
  43989. "expected #{this} to not have a " + descriptor + " above #{exp}",
  43990. n,
  43991. itemsCount
  43992. );
  43993. } else
  43994. this.assert(
  43995. obj > n,
  43996. "expected #{this} to be above #{exp}",
  43997. "expected #{this} to be at most #{exp}",
  43998. n
  43999. );
  44000. }
  44001. __name(assertAbove, "assertAbove");
  44002. Assertion.addMethod("above", assertAbove);
  44003. Assertion.addMethod("gt", assertAbove);
  44004. Assertion.addMethod("greaterThan", assertAbove);
  44005. function assertLeast(n, msg) {
  44006. msg && flag2(this, "message", msg);
  44007. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = !0;
  44008. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  44009. errorMessage = msgPrefix + "the argument to least must be a date";
  44010. else if (!isNumeric(n) && (doLength || isNumeric(obj)))
  44011. errorMessage = msgPrefix + "the argument to least must be a number";
  44012. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44013. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44014. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44015. } else
  44016. shouldThrow = !1;
  44017. if (shouldThrow)
  44018. throw new AssertionError(errorMessage, void 0, ssfi);
  44019. if (doLength) {
  44020. let descriptor = "length", itemsCount;
  44021. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44022. itemsCount >= n,
  44023. "expected #{this} to have a " + descriptor + " at least #{exp} but got #{act}",
  44024. "expected #{this} to have a " + descriptor + " below #{exp}",
  44025. n,
  44026. itemsCount
  44027. );
  44028. } else
  44029. this.assert(
  44030. obj >= n,
  44031. "expected #{this} to be at least #{exp}",
  44032. "expected #{this} to be below #{exp}",
  44033. n
  44034. );
  44035. }
  44036. __name(assertLeast, "assertLeast");
  44037. Assertion.addMethod("least", assertLeast);
  44038. Assertion.addMethod("gte", assertLeast);
  44039. Assertion.addMethod("greaterThanOrEqual", assertLeast);
  44040. function assertBelow(n, msg) {
  44041. msg && flag2(this, "message", msg);
  44042. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = !0;
  44043. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  44044. errorMessage = msgPrefix + "the argument to below must be a date";
  44045. else if (!isNumeric(n) && (doLength || isNumeric(obj)))
  44046. errorMessage = msgPrefix + "the argument to below must be a number";
  44047. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44048. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44049. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44050. } else
  44051. shouldThrow = !1;
  44052. if (shouldThrow)
  44053. throw new AssertionError(errorMessage, void 0, ssfi);
  44054. if (doLength) {
  44055. let descriptor = "length", itemsCount;
  44056. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44057. itemsCount < n,
  44058. "expected #{this} to have a " + descriptor + " below #{exp} but got #{act}",
  44059. "expected #{this} to not have a " + descriptor + " below #{exp}",
  44060. n,
  44061. itemsCount
  44062. );
  44063. } else
  44064. this.assert(
  44065. obj < n,
  44066. "expected #{this} to be below #{exp}",
  44067. "expected #{this} to be at least #{exp}",
  44068. n
  44069. );
  44070. }
  44071. __name(assertBelow, "assertBelow");
  44072. Assertion.addMethod("below", assertBelow);
  44073. Assertion.addMethod("lt", assertBelow);
  44074. Assertion.addMethod("lessThan", assertBelow);
  44075. function assertMost(n, msg) {
  44076. msg && flag2(this, "message", msg);
  44077. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = !0;
  44078. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date")
  44079. errorMessage = msgPrefix + "the argument to most must be a date";
  44080. else if (!isNumeric(n) && (doLength || isNumeric(obj)))
  44081. errorMessage = msgPrefix + "the argument to most must be a number";
  44082. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44083. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44084. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44085. } else
  44086. shouldThrow = !1;
  44087. if (shouldThrow)
  44088. throw new AssertionError(errorMessage, void 0, ssfi);
  44089. if (doLength) {
  44090. let descriptor = "length", itemsCount;
  44091. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44092. itemsCount <= n,
  44093. "expected #{this} to have a " + descriptor + " at most #{exp} but got #{act}",
  44094. "expected #{this} to have a " + descriptor + " above #{exp}",
  44095. n,
  44096. itemsCount
  44097. );
  44098. } else
  44099. this.assert(
  44100. obj <= n,
  44101. "expected #{this} to be at most #{exp}",
  44102. "expected #{this} to be above #{exp}",
  44103. n
  44104. );
  44105. }
  44106. __name(assertMost, "assertMost");
  44107. Assertion.addMethod("most", assertMost);
  44108. Assertion.addMethod("lte", assertMost);
  44109. Assertion.addMethod("lessThanOrEqual", assertMost);
  44110. Assertion.addMethod("within", function(start2, finish, msg) {
  44111. msg && flag2(this, "message", msg);
  44112. let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start2).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = !0, range = startType === "date" && finishType === "date" ? start2.toISOString() + ".." + finish.toISOString() : start2 + ".." + finish;
  44113. if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && (startType !== "date" || finishType !== "date"))
  44114. errorMessage = msgPrefix + "the arguments to within must be dates";
  44115. else if ((!isNumeric(start2) || !isNumeric(finish)) && (doLength || isNumeric(obj)))
  44116. errorMessage = msgPrefix + "the arguments to within must be numbers";
  44117. else if (!doLength && objType !== "date" && !isNumeric(obj)) {
  44118. let printObj = objType === "string" ? "'" + obj + "'" : obj;
  44119. errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
  44120. } else
  44121. shouldThrow = !1;
  44122. if (shouldThrow)
  44123. throw new AssertionError(errorMessage, void 0, ssfi);
  44124. if (doLength) {
  44125. let descriptor = "length", itemsCount;
  44126. objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert(
  44127. itemsCount >= start2 && itemsCount <= finish,
  44128. "expected #{this} to have a " + descriptor + " within " + range,
  44129. "expected #{this} to not have a " + descriptor + " within " + range
  44130. );
  44131. } else
  44132. this.assert(
  44133. obj >= start2 && obj <= finish,
  44134. "expected #{this} to be within " + range,
  44135. "expected #{this} to not be within " + range
  44136. );
  44137. });
  44138. function assertInstanceOf(constructor, msg) {
  44139. msg && flag2(this, "message", msg);
  44140. let target = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), isInstanceOf;
  44141. try {
  44142. isInstanceOf = target instanceof constructor;
  44143. } catch (err) {
  44144. throw err instanceof TypeError ? (flagMsg = flagMsg ? flagMsg + ": " : "", new AssertionError(
  44145. flagMsg + "The instanceof assertion needs a constructor but " + type(constructor) + " was given.",
  44146. void 0,
  44147. ssfi
  44148. )) : err;
  44149. }
  44150. let name = getName(constructor);
  44151. name == null && (name = "an unnamed constructor"), this.assert(
  44152. isInstanceOf,
  44153. "expected #{this} to be an instance of " + name,
  44154. "expected #{this} to not be an instance of " + name
  44155. );
  44156. }
  44157. __name(assertInstanceOf, "assertInstanceOf");
  44158. Assertion.addMethod("instanceof", assertInstanceOf);
  44159. Assertion.addMethod("instanceOf", assertInstanceOf);
  44160. function assertProperty(name, val, msg) {
  44161. msg && flag2(this, "message", msg);
  44162. let isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name;
  44163. if (flagMsg = flagMsg ? flagMsg + ": " : "", isNested) {
  44164. if (nameType !== "string")
  44165. throw new AssertionError(
  44166. flagMsg + "the argument to property must be a string when using nested syntax",
  44167. void 0,
  44168. ssfi
  44169. );
  44170. } else if (nameType !== "string" && nameType !== "number" && nameType !== "symbol")
  44171. throw new AssertionError(
  44172. flagMsg + "the argument to property must be a string, number, or symbol",
  44173. void 0,
  44174. ssfi
  44175. );
  44176. if (isNested && isOwn)
  44177. throw new AssertionError(
  44178. flagMsg + 'The "nested" and "own" flags cannot be combined.',
  44179. void 0,
  44180. ssfi
  44181. );
  44182. if (obj == null)
  44183. throw new AssertionError(
  44184. flagMsg + "Target cannot be null or undefined.",
  44185. void 0,
  44186. ssfi
  44187. );
  44188. let isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2, descriptor = "";
  44189. isDeep && (descriptor += "deep "), isOwn && (descriptor += "own "), isNested && (descriptor += "nested "), descriptor += "property ";
  44190. let hasProperty2;
  44191. isOwn ? hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name) : isNested ? hasProperty2 = pathInfo.exists : hasProperty2 = hasProperty(obj, name), (!negate || arguments.length === 1) && this.assert(
  44192. hasProperty2,
  44193. "expected #{this} to have " + descriptor + inspect22(name),
  44194. "expected #{this} to not have " + descriptor + inspect22(name)
  44195. ), arguments.length > 1 && this.assert(
  44196. hasProperty2 && isEql(val, value),
  44197. "expected #{this} to have " + descriptor + inspect22(name) + " of #{exp}, but got #{act}",
  44198. "expected #{this} to not have " + descriptor + inspect22(name) + " of #{act}",
  44199. val,
  44200. value
  44201. ), flag2(this, "object", value);
  44202. }
  44203. __name(assertProperty, "assertProperty");
  44204. Assertion.addMethod("property", assertProperty);
  44205. function assertOwnProperty(_name, _value, _msg) {
  44206. flag2(this, "own", !0), assertProperty.apply(this, arguments);
  44207. }
  44208. __name(assertOwnProperty, "assertOwnProperty");
  44209. Assertion.addMethod("ownProperty", assertOwnProperty);
  44210. Assertion.addMethod("haveOwnProperty", assertOwnProperty);
  44211. function assertOwnPropertyDescriptor(name, descriptor, msg) {
  44212. typeof descriptor == "string" && (msg = descriptor, descriptor = null), msg && flag2(this, "message", msg);
  44213. let obj = flag2(this, "object"), actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name), eql = flag2(this, "eql");
  44214. actualDescriptor && descriptor ? this.assert(
  44215. eql(descriptor, actualDescriptor),
  44216. "expected the own property descriptor for " + inspect22(name) + " on #{this} to match " + inspect22(descriptor) + ", got " + inspect22(actualDescriptor),
  44217. "expected the own property descriptor for " + inspect22(name) + " on #{this} to not match " + inspect22(descriptor),
  44218. descriptor,
  44219. actualDescriptor,
  44220. !0
  44221. ) : this.assert(
  44222. actualDescriptor,
  44223. "expected #{this} to have an own property descriptor for " + inspect22(name),
  44224. "expected #{this} to not have an own property descriptor for " + inspect22(name)
  44225. ), flag2(this, "object", actualDescriptor);
  44226. }
  44227. __name(assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor");
  44228. Assertion.addMethod("ownPropertyDescriptor", assertOwnPropertyDescriptor);
  44229. Assertion.addMethod("haveOwnPropertyDescriptor", assertOwnPropertyDescriptor);
  44230. function assertLengthChain() {
  44231. flag2(this, "doLength", !0);
  44232. }
  44233. __name(assertLengthChain, "assertLengthChain");
  44234. function assertLength(n, msg) {
  44235. msg && flag2(this, "message", msg);
  44236. let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount;
  44237. switch (objType) {
  44238. case "map":
  44239. case "set":
  44240. descriptor = "size", itemsCount = obj.size;
  44241. break;
  44242. default:
  44243. new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), itemsCount = obj.length;
  44244. }
  44245. this.assert(
  44246. itemsCount == n,
  44247. "expected #{this} to have a " + descriptor + " of #{exp} but got #{act}",
  44248. "expected #{this} to not have a " + descriptor + " of #{act}",
  44249. n,
  44250. itemsCount
  44251. );
  44252. }
  44253. __name(assertLength, "assertLength");
  44254. Assertion.addChainableMethod("length", assertLength, assertLengthChain);
  44255. Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain);
  44256. function assertMatch(re, msg) {
  44257. msg && flag2(this, "message", msg);
  44258. let obj = flag2(this, "object");
  44259. this.assert(
  44260. re.exec(obj),
  44261. "expected #{this} to match " + re,
  44262. "expected #{this} not to match " + re
  44263. );
  44264. }
  44265. __name(assertMatch, "assertMatch");
  44266. Assertion.addMethod("match", assertMatch);
  44267. Assertion.addMethod("matches", assertMatch);
  44268. Assertion.addMethod("string", function(str2, msg) {
  44269. msg && flag2(this, "message", msg);
  44270. let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44271. new Assertion(obj, flagMsg, ssfi, !0).is.a("string"), this.assert(
  44272. ~obj.indexOf(str2),
  44273. "expected #{this} to contain " + inspect22(str2),
  44274. "expected #{this} to not contain " + inspect22(str2)
  44275. );
  44276. });
  44277. function assertKeys(keys3) {
  44278. let obj = flag2(this, "object"), objType = type(obj), keysType = type(keys3), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str2, deepStr = "", actual, ok = !0, flagMsg = flag2(this, "message");
  44279. flagMsg = flagMsg ? flagMsg + ": " : "";
  44280. let mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";
  44281. if (objType === "Map" || objType === "Set")
  44282. deepStr = isDeep ? "deeply " : "", actual = [], obj.forEach(function(val, key) {
  44283. actual.push(key);
  44284. }), keysType !== "Array" && (keys3 = Array.prototype.slice.call(arguments));
  44285. else {
  44286. switch (actual = getOwnEnumerableProperties(obj), keysType) {
  44287. case "Array":
  44288. if (arguments.length > 1)
  44289. throw new AssertionError(mixedArgsMsg, void 0, ssfi);
  44290. break;
  44291. case "Object":
  44292. if (arguments.length > 1)
  44293. throw new AssertionError(mixedArgsMsg, void 0, ssfi);
  44294. keys3 = Object.keys(keys3);
  44295. break;
  44296. default:
  44297. keys3 = Array.prototype.slice.call(arguments);
  44298. }
  44299. keys3 = keys3.map(function(val) {
  44300. return typeof val == "symbol" ? val : String(val);
  44301. });
  44302. }
  44303. if (!keys3.length)
  44304. throw new AssertionError(flagMsg + "keys required", void 0, ssfi);
  44305. let len = keys3.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys3, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
  44306. if (!any && !all && (all = !0), any && (ok = expected.some(function(expectedKey) {
  44307. return actual.some(function(actualKey) {
  44308. return isEql(expectedKey, actualKey);
  44309. });
  44310. })), all && (ok = expected.every(function(expectedKey) {
  44311. return actual.some(function(actualKey) {
  44312. return isEql(expectedKey, actualKey);
  44313. });
  44314. }), flag2(this, "contains") || (ok = ok && keys3.length == actual.length)), len > 1) {
  44315. keys3 = keys3.map(function(key) {
  44316. return inspect22(key);
  44317. });
  44318. let last2 = keys3.pop();
  44319. all && (str2 = keys3.join(", ") + ", and " + last2), any && (str2 = keys3.join(", ") + ", or " + last2);
  44320. } else
  44321. str2 = inspect22(keys3[0]);
  44322. str2 = (len > 1 ? "keys " : "key ") + str2, str2 = (flag2(this, "contains") ? "contain " : "have ") + str2, this.assert(
  44323. ok,
  44324. "expected #{this} to " + deepStr + str2,
  44325. "expected #{this} to not " + deepStr + str2,
  44326. expected.slice(0).sort(compareByInspect),
  44327. actual.sort(compareByInspect),
  44328. !0
  44329. );
  44330. }
  44331. __name(assertKeys, "assertKeys");
  44332. Assertion.addMethod("keys", assertKeys);
  44333. Assertion.addMethod("key", assertKeys);
  44334. function assertThrows(errorLike, errMsgMatcher, msg) {
  44335. msg && flag2(this, "message", msg);
  44336. let obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || !1;
  44337. new Assertion(obj, flagMsg, ssfi, !0).is.a("function"), (isRegExp22(errorLike) || typeof errorLike == "string") && (errMsgMatcher = errorLike, errorLike = null);
  44338. let caughtErr, errorWasThrown = !1;
  44339. try {
  44340. obj();
  44341. } catch (err) {
  44342. errorWasThrown = !0, caughtErr = err;
  44343. }
  44344. let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0, everyArgIsDefined = !!(errorLike && errMsgMatcher), errorLikeFail = !1, errMsgMatcherFail = !1;
  44345. if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {
  44346. let errorLikeString = "an error";
  44347. errorLike instanceof Error ? errorLikeString = "#{exp}" : errorLike && (errorLikeString = check_error_exports.getConstructorName(errorLike));
  44348. let actual = caughtErr;
  44349. if (caughtErr instanceof Error)
  44350. actual = caughtErr.toString();
  44351. else if (typeof caughtErr == "string")
  44352. actual = caughtErr;
  44353. else if (caughtErr && (typeof caughtErr == "object" || typeof caughtErr == "function"))
  44354. try {
  44355. actual = check_error_exports.getConstructorName(caughtErr);
  44356. } catch {
  44357. }
  44358. this.assert(
  44359. errorWasThrown,
  44360. "expected #{this} to throw " + errorLikeString,
  44361. "expected #{this} to not throw an error but #{act} was thrown",
  44362. errorLike && errorLike.toString(),
  44363. actual
  44364. );
  44365. }
  44366. if (errorLike && caughtErr && (errorLike instanceof Error && check_error_exports.compatibleInstance(
  44367. caughtErr,
  44368. errorLike
  44369. ) === negate && (everyArgIsDefined && negate ? errorLikeFail = !0 : this.assert(
  44370. negate,
  44371. "expected #{this} to throw #{exp} but #{act} was thrown",
  44372. "expected #{this} to not throw #{exp}" + (caughtErr && !negate ? " but #{act} was thrown" : ""),
  44373. errorLike.toString(),
  44374. caughtErr.toString()
  44375. )), check_error_exports.compatibleConstructor(
  44376. caughtErr,
  44377. errorLike
  44378. ) === negate && (everyArgIsDefined && negate ? errorLikeFail = !0 : this.assert(
  44379. negate,
  44380. "expected #{this} to throw #{exp} but #{act} was thrown",
  44381. "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""),
  44382. errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),
  44383. caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)
  44384. ))), caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {
  44385. let placeholder = "including";
  44386. isRegExp22(errMsgMatcher) && (placeholder = "matching"), check_error_exports.compatibleMessage(
  44387. caughtErr,
  44388. errMsgMatcher
  44389. ) === negate && (everyArgIsDefined && negate ? errMsgMatcherFail = !0 : this.assert(
  44390. negate,
  44391. "expected #{this} to throw error " + placeholder + " #{exp} but got #{act}",
  44392. "expected #{this} to throw error not " + placeholder + " #{exp}",
  44393. errMsgMatcher,
  44394. check_error_exports.getMessage(caughtErr)
  44395. ));
  44396. }
  44397. errorLikeFail && errMsgMatcherFail && this.assert(
  44398. negate,
  44399. "expected #{this} to throw #{exp} but #{act} was thrown",
  44400. "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""),
  44401. errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),
  44402. caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)
  44403. ), flag2(this, "object", caughtErr);
  44404. }
  44405. __name(assertThrows, "assertThrows");
  44406. Assertion.addMethod("throw", assertThrows);
  44407. Assertion.addMethod("throws", assertThrows);
  44408. Assertion.addMethod("Throw", assertThrows);
  44409. function respondTo(method, msg) {
  44410. msg && flag2(this, "message", msg);
  44411. let obj = flag2(this, "object"), itself = flag2(this, "itself"), context = typeof obj == "function" && !itself ? obj.prototype[method] : obj[method];
  44412. this.assert(
  44413. typeof context == "function",
  44414. "expected #{this} to respond to " + inspect22(method),
  44415. "expected #{this} to not respond to " + inspect22(method)
  44416. );
  44417. }
  44418. __name(respondTo, "respondTo");
  44419. Assertion.addMethod("respondTo", respondTo);
  44420. Assertion.addMethod("respondsTo", respondTo);
  44421. Assertion.addProperty("itself", function() {
  44422. flag2(this, "itself", !0);
  44423. });
  44424. function satisfy(matcher, msg) {
  44425. msg && flag2(this, "message", msg);
  44426. let obj = flag2(this, "object"), result = matcher(obj);
  44427. this.assert(
  44428. result,
  44429. "expected #{this} to satisfy " + objDisplay(matcher),
  44430. "expected #{this} to not satisfy" + objDisplay(matcher),
  44431. !flag2(this, "negate"),
  44432. result
  44433. );
  44434. }
  44435. __name(satisfy, "satisfy");
  44436. Assertion.addMethod("satisfy", satisfy);
  44437. Assertion.addMethod("satisfies", satisfy);
  44438. function closeTo(expected, delta, msg) {
  44439. msg && flag2(this, "message", msg);
  44440. let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44441. new Assertion(obj, flagMsg, ssfi, !0).is.numeric;
  44442. let message = "A `delta` value is required for `closeTo`";
  44443. if (delta == null)
  44444. throw new AssertionError(
  44445. flagMsg ? `${flagMsg}: ${message}` : message,
  44446. void 0,
  44447. ssfi
  44448. );
  44449. if (new Assertion(delta, flagMsg, ssfi, !0).is.numeric, message = "A `expected` value is required for `closeTo`", expected == null)
  44450. throw new AssertionError(
  44451. flagMsg ? `${flagMsg}: ${message}` : message,
  44452. void 0,
  44453. ssfi
  44454. );
  44455. new Assertion(expected, flagMsg, ssfi, !0).is.numeric;
  44456. let abs2 = __name((x) => x < 0n ? -x : x, "abs"), strip = __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
  44457. this.assert(
  44458. strip(abs2(obj - expected)) <= delta,
  44459. "expected #{this} to be close to " + expected + " +/- " + delta,
  44460. "expected #{this} not to be close to " + expected + " +/- " + delta
  44461. );
  44462. }
  44463. __name(closeTo, "closeTo");
  44464. Assertion.addMethod("closeTo", closeTo);
  44465. Assertion.addMethod("approximately", closeTo);
  44466. function isSubsetOf(_subset, _superset, cmp, contains2, ordered) {
  44467. let superset = Array.from(_superset), subset = Array.from(_subset);
  44468. if (!contains2) {
  44469. if (subset.length !== superset.length) return !1;
  44470. superset = superset.slice();
  44471. }
  44472. return subset.every(function(elem, idx) {
  44473. if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
  44474. if (!cmp) {
  44475. let matchIdx = superset.indexOf(elem);
  44476. return matchIdx === -1 ? !1 : (contains2 || superset.splice(matchIdx, 1), !0);
  44477. }
  44478. return superset.some(function(elem2, matchIdx) {
  44479. return cmp(elem, elem2) ? (contains2 || superset.splice(matchIdx, 1), !0) : !1;
  44480. });
  44481. });
  44482. }
  44483. __name(isSubsetOf, "isSubsetOf");
  44484. Assertion.addMethod("members", function(subset, msg) {
  44485. msg && flag2(this, "message", msg);
  44486. let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44487. new Assertion(obj, flagMsg, ssfi, !0).to.be.iterable, new Assertion(subset, flagMsg, ssfi, !0).to.be.iterable;
  44488. let contains2 = flag2(this, "contains"), ordered = flag2(this, "ordered"), subject, failMsg, failNegateMsg;
  44489. contains2 ? (subject = ordered ? "an ordered superset" : "a superset", failMsg = "expected #{this} to be " + subject + " of #{exp}", failNegateMsg = "expected #{this} to not be " + subject + " of #{exp}") : (subject = ordered ? "ordered members" : "members", failMsg = "expected #{this} to have the same " + subject + " as #{exp}", failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}");
  44490. let cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0;
  44491. this.assert(
  44492. isSubsetOf(subset, obj, cmp, contains2, ordered),
  44493. failMsg,
  44494. failNegateMsg,
  44495. subset,
  44496. obj,
  44497. !0
  44498. );
  44499. });
  44500. Assertion.addProperty("iterable", function(msg) {
  44501. msg && flag2(this, "message", msg);
  44502. let obj = flag2(this, "object");
  44503. this.assert(
  44504. obj != null && obj[Symbol.iterator],
  44505. "expected #{this} to be an iterable",
  44506. "expected #{this} to not be an iterable",
  44507. obj
  44508. );
  44509. });
  44510. function oneOf(list, msg) {
  44511. msg && flag2(this, "message", msg);
  44512. let expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains2 = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql");
  44513. new Assertion(list, flagMsg, ssfi, !0).to.be.an("array"), contains2 ? this.assert(
  44514. list.some(function(possibility) {
  44515. return expected.indexOf(possibility) > -1;
  44516. }),
  44517. "expected #{this} to contain one of #{exp}",
  44518. "expected #{this} to not contain one of #{exp}",
  44519. list,
  44520. expected
  44521. ) : isDeep ? this.assert(
  44522. list.some(function(possibility) {
  44523. return eql(expected, possibility);
  44524. }),
  44525. "expected #{this} to deeply equal one of #{exp}",
  44526. "expected #{this} to deeply equal one of #{exp}",
  44527. list,
  44528. expected
  44529. ) : this.assert(
  44530. list.indexOf(expected) > -1,
  44531. "expected #{this} to be one of #{exp}",
  44532. "expected #{this} to not be one of #{exp}",
  44533. list,
  44534. expected
  44535. );
  44536. }
  44537. __name(oneOf, "oneOf");
  44538. Assertion.addMethod("oneOf", oneOf);
  44539. function assertChanges(subject, prop, msg) {
  44540. msg && flag2(this, "message", msg);
  44541. let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44542. new Assertion(fn4, flagMsg, ssfi, !0).is.a("function");
  44543. let initial2;
  44544. prop ? (new Assertion(subject, flagMsg, ssfi, !0).to.have.property(prop), initial2 = subject[prop]) : (new Assertion(subject, flagMsg, ssfi, !0).is.a("function"), initial2 = subject()), fn4();
  44545. let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop;
  44546. flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "change"), flag2(this, "realDelta", final !== initial2), this.assert(
  44547. initial2 !== final,
  44548. "expected " + msgObj + " to change",
  44549. "expected " + msgObj + " to not change"
  44550. );
  44551. }
  44552. __name(assertChanges, "assertChanges");
  44553. Assertion.addMethod("change", assertChanges);
  44554. Assertion.addMethod("changes", assertChanges);
  44555. function assertIncreases(subject, prop, msg) {
  44556. msg && flag2(this, "message", msg);
  44557. let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44558. new Assertion(fn4, flagMsg, ssfi, !0).is.a("function");
  44559. let initial2;
  44560. prop ? (new Assertion(subject, flagMsg, ssfi, !0).to.have.property(prop), initial2 = subject[prop]) : (new Assertion(subject, flagMsg, ssfi, !0).is.a("function"), initial2 = subject()), new Assertion(initial2, flagMsg, ssfi, !0).is.a("number"), fn4();
  44561. let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop;
  44562. flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "increase"), flag2(this, "realDelta", final - initial2), this.assert(
  44563. final - initial2 > 0,
  44564. "expected " + msgObj + " to increase",
  44565. "expected " + msgObj + " to not increase"
  44566. );
  44567. }
  44568. __name(assertIncreases, "assertIncreases");
  44569. Assertion.addMethod("increase", assertIncreases);
  44570. Assertion.addMethod("increases", assertIncreases);
  44571. function assertDecreases(subject, prop, msg) {
  44572. msg && flag2(this, "message", msg);
  44573. let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
  44574. new Assertion(fn4, flagMsg, ssfi, !0).is.a("function");
  44575. let initial2;
  44576. prop ? (new Assertion(subject, flagMsg, ssfi, !0).to.have.property(prop), initial2 = subject[prop]) : (new Assertion(subject, flagMsg, ssfi, !0).is.a("function"), initial2 = subject()), new Assertion(initial2, flagMsg, ssfi, !0).is.a("number"), fn4();
  44577. let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop;
  44578. flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "decrease"), flag2(this, "realDelta", initial2 - final), this.assert(
  44579. final - initial2 < 0,
  44580. "expected " + msgObj + " to decrease",
  44581. "expected " + msgObj + " to not decrease"
  44582. );
  44583. }
  44584. __name(assertDecreases, "assertDecreases");
  44585. Assertion.addMethod("decrease", assertDecreases);
  44586. Assertion.addMethod("decreases", assertDecreases);
  44587. function assertDelta(delta, msg) {
  44588. msg && flag2(this, "message", msg);
  44589. let msgObj = flag2(this, "deltaMsgObj"), initial2 = flag2(this, "initialDeltaValue"), final = flag2(this, "finalDeltaValue"), behavior2 = flag2(this, "deltaBehavior"), realDelta = flag2(this, "realDelta"), expression;
  44590. behavior2 === "change" ? expression = Math.abs(final - initial2) === Math.abs(delta) : expression = realDelta === Math.abs(delta), this.assert(
  44591. expression,
  44592. "expected " + msgObj + " to " + behavior2 + " by " + delta,
  44593. "expected " + msgObj + " to not " + behavior2 + " by " + delta
  44594. );
  44595. }
  44596. __name(assertDelta, "assertDelta");
  44597. Assertion.addMethod("by", assertDelta);
  44598. Assertion.addProperty("extensible", function() {
  44599. let obj = flag2(this, "object"), isExtensible = obj === Object(obj) && Object.isExtensible(obj);
  44600. this.assert(
  44601. isExtensible,
  44602. "expected #{this} to be extensible",
  44603. "expected #{this} to not be extensible"
  44604. );
  44605. });
  44606. Assertion.addProperty("sealed", function() {
  44607. let obj = flag2(this, "object"), isSealed = obj === Object(obj) ? Object.isSealed(obj) : !0;
  44608. this.assert(
  44609. isSealed,
  44610. "expected #{this} to be sealed",
  44611. "expected #{this} to not be sealed"
  44612. );
  44613. });
  44614. Assertion.addProperty("frozen", function() {
  44615. let obj = flag2(this, "object"), isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : !0;
  44616. this.assert(
  44617. isFrozen,
  44618. "expected #{this} to be frozen",
  44619. "expected #{this} to not be frozen"
  44620. );
  44621. });
  44622. Assertion.addProperty("finite", function(_msg) {
  44623. let obj = flag2(this, "object");
  44624. this.assert(
  44625. typeof obj == "number" && isFinite(obj),
  44626. "expected #{this} to be a finite number",
  44627. "expected #{this} to not be a finite number"
  44628. );
  44629. });
  44630. function compareSubset(expected, actual) {
  44631. return expected === actual ? !0 : typeof actual != typeof expected ? !1 : typeof expected != "object" || expected === null ? expected === actual : actual ? Array.isArray(expected) ? Array.isArray(actual) ? expected.every(function(exp) {
  44632. return actual.some(function(act) {
  44633. return compareSubset(exp, act);
  44634. });
  44635. }) : !1 : expected instanceof Date ? actual instanceof Date ? expected.getTime() === actual.getTime() : !1 : Object.keys(expected).every(function(key) {
  44636. let expectedValue = expected[key], actualValue = actual[key];
  44637. return typeof expectedValue == "object" && expectedValue !== null && actualValue !== null ? compareSubset(expectedValue, actualValue) : typeof expectedValue == "function" ? expectedValue(actualValue) : actualValue === expectedValue;
  44638. }) : !1;
  44639. }
  44640. __name(compareSubset, "compareSubset");
  44641. Assertion.addMethod("containSubset", function(expected) {
  44642. let actual = flag(this, "object"), showDiff = config2.showDiff;
  44643. this.assert(
  44644. compareSubset(expected, actual),
  44645. "expected #{act} to contain subset #{exp}",
  44646. "expected #{act} to not contain subset #{exp}",
  44647. expected,
  44648. actual,
  44649. showDiff
  44650. );
  44651. });
  44652. function expect(val, message) {
  44653. return new Assertion(val, message);
  44654. }
  44655. __name(expect, "expect");
  44656. expect.fail = function(actual, expected, message, operator) {
  44657. throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "expect.fail()", new AssertionError(
  44658. message,
  44659. {
  44660. actual,
  44661. expected,
  44662. operator
  44663. },
  44664. expect.fail
  44665. );
  44666. };
  44667. var should_exports = {};
  44668. __export2(should_exports, {
  44669. Should: () => Should,
  44670. should: () => should
  44671. });
  44672. function loadShould() {
  44673. function shouldGetter() {
  44674. return this instanceof String || this instanceof Number || this instanceof Boolean || typeof Symbol == "function" && this instanceof Symbol || typeof BigInt == "function" && this instanceof BigInt ? new Assertion(this.valueOf(), null, shouldGetter) : new Assertion(this, null, shouldGetter);
  44675. }
  44676. __name(shouldGetter, "shouldGetter");
  44677. function shouldSetter(value) {
  44678. Object.defineProperty(this, "should", {
  44679. value,
  44680. enumerable: !0,
  44681. configurable: !0,
  44682. writable: !0
  44683. });
  44684. }
  44685. __name(shouldSetter, "shouldSetter"), Object.defineProperty(Object.prototype, "should", {
  44686. set: shouldSetter,
  44687. get: shouldGetter,
  44688. configurable: !0
  44689. });
  44690. let should2 = {};
  44691. return should2.fail = function(actual, expected, message, operator) {
  44692. throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "should.fail()", new AssertionError(
  44693. message,
  44694. {
  44695. actual,
  44696. expected,
  44697. operator
  44698. },
  44699. should2.fail
  44700. );
  44701. }, should2.equal = function(actual, expected, message) {
  44702. new Assertion(actual, message).to.equal(expected);
  44703. }, should2.Throw = function(fn4, errt, errs, msg) {
  44704. new Assertion(fn4, msg).to.Throw(errt, errs);
  44705. }, should2.exist = function(val, msg) {
  44706. new Assertion(val, msg).to.exist;
  44707. }, should2.not = {}, should2.not.equal = function(actual, expected, msg) {
  44708. new Assertion(actual, msg).to.not.equal(expected);
  44709. }, should2.not.Throw = function(fn4, errt, errs, msg) {
  44710. new Assertion(fn4, msg).to.not.Throw(errt, errs);
  44711. }, should2.not.exist = function(val, msg) {
  44712. new Assertion(val, msg).to.not.exist;
  44713. }, should2.throw = should2.Throw, should2.not.throw = should2.not.Throw, should2;
  44714. }
  44715. __name(loadShould, "loadShould");
  44716. var should = loadShould, Should = loadShould;
  44717. function assert(express, errmsg) {
  44718. new Assertion(null, null, assert, !0).assert(express, errmsg, "[ negation message unavailable ]");
  44719. }
  44720. __name(assert, "assert");
  44721. assert.fail = function(actual, expected, message, operator) {
  44722. throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "assert.fail()", new AssertionError(
  44723. message,
  44724. {
  44725. actual,
  44726. expected,
  44727. operator
  44728. },
  44729. assert.fail
  44730. );
  44731. };
  44732. assert.isOk = function(val, msg) {
  44733. new Assertion(val, msg, assert.isOk, !0).is.ok;
  44734. };
  44735. assert.isNotOk = function(val, msg) {
  44736. new Assertion(val, msg, assert.isNotOk, !0).is.not.ok;
  44737. };
  44738. assert.equal = function(act, exp, msg) {
  44739. let test22 = new Assertion(act, msg, assert.equal, !0);
  44740. test22.assert(
  44741. exp == flag(test22, "object"),
  44742. "expected #{this} to equal #{exp}",
  44743. "expected #{this} to not equal #{act}",
  44744. exp,
  44745. act,
  44746. !0
  44747. );
  44748. };
  44749. assert.notEqual = function(act, exp, msg) {
  44750. let test22 = new Assertion(act, msg, assert.notEqual, !0);
  44751. test22.assert(
  44752. exp != flag(test22, "object"),
  44753. "expected #{this} to not equal #{exp}",
  44754. "expected #{this} to equal #{act}",
  44755. exp,
  44756. act,
  44757. !0
  44758. );
  44759. };
  44760. assert.strictEqual = function(act, exp, msg) {
  44761. new Assertion(act, msg, assert.strictEqual, !0).to.equal(exp);
  44762. };
  44763. assert.notStrictEqual = function(act, exp, msg) {
  44764. new Assertion(act, msg, assert.notStrictEqual, !0).to.not.equal(exp);
  44765. };
  44766. assert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) {
  44767. new Assertion(act, msg, assert.deepEqual, !0).to.eql(exp);
  44768. };
  44769. assert.notDeepEqual = function(act, exp, msg) {
  44770. new Assertion(act, msg, assert.notDeepEqual, !0).to.not.eql(exp);
  44771. };
  44772. assert.isAbove = function(val, abv, msg) {
  44773. new Assertion(val, msg, assert.isAbove, !0).to.be.above(abv);
  44774. };
  44775. assert.isAtLeast = function(val, atlst, msg) {
  44776. new Assertion(val, msg, assert.isAtLeast, !0).to.be.least(atlst);
  44777. };
  44778. assert.isBelow = function(val, blw, msg) {
  44779. new Assertion(val, msg, assert.isBelow, !0).to.be.below(blw);
  44780. };
  44781. assert.isAtMost = function(val, atmst, msg) {
  44782. new Assertion(val, msg, assert.isAtMost, !0).to.be.most(atmst);
  44783. };
  44784. assert.isTrue = function(val, msg) {
  44785. new Assertion(val, msg, assert.isTrue, !0).is.true;
  44786. };
  44787. assert.isNotTrue = function(val, msg) {
  44788. new Assertion(val, msg, assert.isNotTrue, !0).to.not.equal(!0);
  44789. };
  44790. assert.isFalse = function(val, msg) {
  44791. new Assertion(val, msg, assert.isFalse, !0).is.false;
  44792. };
  44793. assert.isNotFalse = function(val, msg) {
  44794. new Assertion(val, msg, assert.isNotFalse, !0).to.not.equal(!1);
  44795. };
  44796. assert.isNull = function(val, msg) {
  44797. new Assertion(val, msg, assert.isNull, !0).to.equal(null);
  44798. };
  44799. assert.isNotNull = function(val, msg) {
  44800. new Assertion(val, msg, assert.isNotNull, !0).to.not.equal(null);
  44801. };
  44802. assert.isNaN = function(val, msg) {
  44803. new Assertion(val, msg, assert.isNaN, !0).to.be.NaN;
  44804. };
  44805. assert.isNotNaN = function(value, message) {
  44806. new Assertion(value, message, assert.isNotNaN, !0).not.to.be.NaN;
  44807. };
  44808. assert.exists = function(val, msg) {
  44809. new Assertion(val, msg, assert.exists, !0).to.exist;
  44810. };
  44811. assert.notExists = function(val, msg) {
  44812. new Assertion(val, msg, assert.notExists, !0).to.not.exist;
  44813. };
  44814. assert.isUndefined = function(val, msg) {
  44815. new Assertion(val, msg, assert.isUndefined, !0).to.equal(void 0);
  44816. };
  44817. assert.isDefined = function(val, msg) {
  44818. new Assertion(val, msg, assert.isDefined, !0).to.not.equal(void 0);
  44819. };
  44820. assert.isCallable = function(value, message) {
  44821. new Assertion(value, message, assert.isCallable, !0).is.callable;
  44822. };
  44823. assert.isNotCallable = function(value, message) {
  44824. new Assertion(value, message, assert.isNotCallable, !0).is.not.callable;
  44825. };
  44826. assert.isObject = function(val, msg) {
  44827. new Assertion(val, msg, assert.isObject, !0).to.be.a("object");
  44828. };
  44829. assert.isNotObject = function(val, msg) {
  44830. new Assertion(val, msg, assert.isNotObject, !0).to.not.be.a("object");
  44831. };
  44832. assert.isArray = function(val, msg) {
  44833. new Assertion(val, msg, assert.isArray, !0).to.be.an("array");
  44834. };
  44835. assert.isNotArray = function(val, msg) {
  44836. new Assertion(val, msg, assert.isNotArray, !0).to.not.be.an("array");
  44837. };
  44838. assert.isString = function(val, msg) {
  44839. new Assertion(val, msg, assert.isString, !0).to.be.a("string");
  44840. };
  44841. assert.isNotString = function(val, msg) {
  44842. new Assertion(val, msg, assert.isNotString, !0).to.not.be.a("string");
  44843. };
  44844. assert.isNumber = function(val, msg) {
  44845. new Assertion(val, msg, assert.isNumber, !0).to.be.a("number");
  44846. };
  44847. assert.isNotNumber = function(val, msg) {
  44848. new Assertion(val, msg, assert.isNotNumber, !0).to.not.be.a("number");
  44849. };
  44850. assert.isNumeric = function(val, msg) {
  44851. new Assertion(val, msg, assert.isNumeric, !0).is.numeric;
  44852. };
  44853. assert.isNotNumeric = function(val, msg) {
  44854. new Assertion(val, msg, assert.isNotNumeric, !0).is.not.numeric;
  44855. };
  44856. assert.isFinite = function(val, msg) {
  44857. new Assertion(val, msg, assert.isFinite, !0).to.be.finite;
  44858. };
  44859. assert.isBoolean = function(val, msg) {
  44860. new Assertion(val, msg, assert.isBoolean, !0).to.be.a("boolean");
  44861. };
  44862. assert.isNotBoolean = function(val, msg) {
  44863. new Assertion(val, msg, assert.isNotBoolean, !0).to.not.be.a("boolean");
  44864. };
  44865. assert.typeOf = function(val, type32, msg) {
  44866. new Assertion(val, msg, assert.typeOf, !0).to.be.a(type32);
  44867. };
  44868. assert.notTypeOf = function(value, type32, message) {
  44869. new Assertion(value, message, assert.notTypeOf, !0).to.not.be.a(type32);
  44870. };
  44871. assert.instanceOf = function(val, type32, msg) {
  44872. new Assertion(val, msg, assert.instanceOf, !0).to.be.instanceOf(type32);
  44873. };
  44874. assert.notInstanceOf = function(val, type32, msg) {
  44875. new Assertion(val, msg, assert.notInstanceOf, !0).to.not.be.instanceOf(
  44876. type32
  44877. );
  44878. };
  44879. assert.include = function(exp, inc, msg) {
  44880. new Assertion(exp, msg, assert.include, !0).include(inc);
  44881. };
  44882. assert.notInclude = function(exp, inc, msg) {
  44883. new Assertion(exp, msg, assert.notInclude, !0).not.include(inc);
  44884. };
  44885. assert.deepInclude = function(exp, inc, msg) {
  44886. new Assertion(exp, msg, assert.deepInclude, !0).deep.include(inc);
  44887. };
  44888. assert.notDeepInclude = function(exp, inc, msg) {
  44889. new Assertion(exp, msg, assert.notDeepInclude, !0).not.deep.include(inc);
  44890. };
  44891. assert.nestedInclude = function(exp, inc, msg) {
  44892. new Assertion(exp, msg, assert.nestedInclude, !0).nested.include(inc);
  44893. };
  44894. assert.notNestedInclude = function(exp, inc, msg) {
  44895. new Assertion(exp, msg, assert.notNestedInclude, !0).not.nested.include(
  44896. inc
  44897. );
  44898. };
  44899. assert.deepNestedInclude = function(exp, inc, msg) {
  44900. new Assertion(exp, msg, assert.deepNestedInclude, !0).deep.nested.include(
  44901. inc
  44902. );
  44903. };
  44904. assert.notDeepNestedInclude = function(exp, inc, msg) {
  44905. new Assertion(
  44906. exp,
  44907. msg,
  44908. assert.notDeepNestedInclude,
  44909. !0
  44910. ).not.deep.nested.include(inc);
  44911. };
  44912. assert.ownInclude = function(exp, inc, msg) {
  44913. new Assertion(exp, msg, assert.ownInclude, !0).own.include(inc);
  44914. };
  44915. assert.notOwnInclude = function(exp, inc, msg) {
  44916. new Assertion(exp, msg, assert.notOwnInclude, !0).not.own.include(inc);
  44917. };
  44918. assert.deepOwnInclude = function(exp, inc, msg) {
  44919. new Assertion(exp, msg, assert.deepOwnInclude, !0).deep.own.include(inc);
  44920. };
  44921. assert.notDeepOwnInclude = function(exp, inc, msg) {
  44922. new Assertion(exp, msg, assert.notDeepOwnInclude, !0).not.deep.own.include(
  44923. inc
  44924. );
  44925. };
  44926. assert.match = function(exp, re, msg) {
  44927. new Assertion(exp, msg, assert.match, !0).to.match(re);
  44928. };
  44929. assert.notMatch = function(exp, re, msg) {
  44930. new Assertion(exp, msg, assert.notMatch, !0).to.not.match(re);
  44931. };
  44932. assert.property = function(obj, prop, msg) {
  44933. new Assertion(obj, msg, assert.property, !0).to.have.property(prop);
  44934. };
  44935. assert.notProperty = function(obj, prop, msg) {
  44936. new Assertion(obj, msg, assert.notProperty, !0).to.not.have.property(prop);
  44937. };
  44938. assert.propertyVal = function(obj, prop, val, msg) {
  44939. new Assertion(obj, msg, assert.propertyVal, !0).to.have.property(prop, val);
  44940. };
  44941. assert.notPropertyVal = function(obj, prop, val, msg) {
  44942. new Assertion(obj, msg, assert.notPropertyVal, !0).to.not.have.property(
  44943. prop,
  44944. val
  44945. );
  44946. };
  44947. assert.deepPropertyVal = function(obj, prop, val, msg) {
  44948. new Assertion(obj, msg, assert.deepPropertyVal, !0).to.have.deep.property(
  44949. prop,
  44950. val
  44951. );
  44952. };
  44953. assert.notDeepPropertyVal = function(obj, prop, val, msg) {
  44954. new Assertion(
  44955. obj,
  44956. msg,
  44957. assert.notDeepPropertyVal,
  44958. !0
  44959. ).to.not.have.deep.property(prop, val);
  44960. };
  44961. assert.ownProperty = function(obj, prop, msg) {
  44962. new Assertion(obj, msg, assert.ownProperty, !0).to.have.own.property(prop);
  44963. };
  44964. assert.notOwnProperty = function(obj, prop, msg) {
  44965. new Assertion(obj, msg, assert.notOwnProperty, !0).to.not.have.own.property(
  44966. prop
  44967. );
  44968. };
  44969. assert.ownPropertyVal = function(obj, prop, value, msg) {
  44970. new Assertion(obj, msg, assert.ownPropertyVal, !0).to.have.own.property(
  44971. prop,
  44972. value
  44973. );
  44974. };
  44975. assert.notOwnPropertyVal = function(obj, prop, value, msg) {
  44976. new Assertion(
  44977. obj,
  44978. msg,
  44979. assert.notOwnPropertyVal,
  44980. !0
  44981. ).to.not.have.own.property(prop, value);
  44982. };
  44983. assert.deepOwnPropertyVal = function(obj, prop, value, msg) {
  44984. new Assertion(
  44985. obj,
  44986. msg,
  44987. assert.deepOwnPropertyVal,
  44988. !0
  44989. ).to.have.deep.own.property(prop, value);
  44990. };
  44991. assert.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
  44992. new Assertion(
  44993. obj,
  44994. msg,
  44995. assert.notDeepOwnPropertyVal,
  44996. !0
  44997. ).to.not.have.deep.own.property(prop, value);
  44998. };
  44999. assert.nestedProperty = function(obj, prop, msg) {
  45000. new Assertion(obj, msg, assert.nestedProperty, !0).to.have.nested.property(
  45001. prop
  45002. );
  45003. };
  45004. assert.notNestedProperty = function(obj, prop, msg) {
  45005. new Assertion(
  45006. obj,
  45007. msg,
  45008. assert.notNestedProperty,
  45009. !0
  45010. ).to.not.have.nested.property(prop);
  45011. };
  45012. assert.nestedPropertyVal = function(obj, prop, val, msg) {
  45013. new Assertion(
  45014. obj,
  45015. msg,
  45016. assert.nestedPropertyVal,
  45017. !0
  45018. ).to.have.nested.property(prop, val);
  45019. };
  45020. assert.notNestedPropertyVal = function(obj, prop, val, msg) {
  45021. new Assertion(
  45022. obj,
  45023. msg,
  45024. assert.notNestedPropertyVal,
  45025. !0
  45026. ).to.not.have.nested.property(prop, val);
  45027. };
  45028. assert.deepNestedPropertyVal = function(obj, prop, val, msg) {
  45029. new Assertion(
  45030. obj,
  45031. msg,
  45032. assert.deepNestedPropertyVal,
  45033. !0
  45034. ).to.have.deep.nested.property(prop, val);
  45035. };
  45036. assert.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
  45037. new Assertion(
  45038. obj,
  45039. msg,
  45040. assert.notDeepNestedPropertyVal,
  45041. !0
  45042. ).to.not.have.deep.nested.property(prop, val);
  45043. };
  45044. assert.lengthOf = function(exp, len, msg) {
  45045. new Assertion(exp, msg, assert.lengthOf, !0).to.have.lengthOf(len);
  45046. };
  45047. assert.hasAnyKeys = function(obj, keys3, msg) {
  45048. new Assertion(obj, msg, assert.hasAnyKeys, !0).to.have.any.keys(keys3);
  45049. };
  45050. assert.hasAllKeys = function(obj, keys3, msg) {
  45051. new Assertion(obj, msg, assert.hasAllKeys, !0).to.have.all.keys(keys3);
  45052. };
  45053. assert.containsAllKeys = function(obj, keys3, msg) {
  45054. new Assertion(obj, msg, assert.containsAllKeys, !0).to.contain.all.keys(
  45055. keys3
  45056. );
  45057. };
  45058. assert.doesNotHaveAnyKeys = function(obj, keys3, msg) {
  45059. new Assertion(obj, msg, assert.doesNotHaveAnyKeys, !0).to.not.have.any.keys(
  45060. keys3
  45061. );
  45062. };
  45063. assert.doesNotHaveAllKeys = function(obj, keys3, msg) {
  45064. new Assertion(obj, msg, assert.doesNotHaveAllKeys, !0).to.not.have.all.keys(
  45065. keys3
  45066. );
  45067. };
  45068. assert.hasAnyDeepKeys = function(obj, keys3, msg) {
  45069. new Assertion(obj, msg, assert.hasAnyDeepKeys, !0).to.have.any.deep.keys(
  45070. keys3
  45071. );
  45072. };
  45073. assert.hasAllDeepKeys = function(obj, keys3, msg) {
  45074. new Assertion(obj, msg, assert.hasAllDeepKeys, !0).to.have.all.deep.keys(
  45075. keys3
  45076. );
  45077. };
  45078. assert.containsAllDeepKeys = function(obj, keys3, msg) {
  45079. new Assertion(
  45080. obj,
  45081. msg,
  45082. assert.containsAllDeepKeys,
  45083. !0
  45084. ).to.contain.all.deep.keys(keys3);
  45085. };
  45086. assert.doesNotHaveAnyDeepKeys = function(obj, keys3, msg) {
  45087. new Assertion(
  45088. obj,
  45089. msg,
  45090. assert.doesNotHaveAnyDeepKeys,
  45091. !0
  45092. ).to.not.have.any.deep.keys(keys3);
  45093. };
  45094. assert.doesNotHaveAllDeepKeys = function(obj, keys3, msg) {
  45095. new Assertion(
  45096. obj,
  45097. msg,
  45098. assert.doesNotHaveAllDeepKeys,
  45099. !0
  45100. ).to.not.have.all.deep.keys(keys3);
  45101. };
  45102. assert.throws = function(fn4, errorLike, errMsgMatcher, msg) {
  45103. (typeof errorLike == "string" || errorLike instanceof RegExp) && (errMsgMatcher = errorLike, errorLike = null);
  45104. let assertErr = new Assertion(fn4, msg, assert.throws, !0).to.throw(
  45105. errorLike,
  45106. errMsgMatcher
  45107. );
  45108. return flag(assertErr, "object");
  45109. };
  45110. assert.doesNotThrow = function(fn4, errorLike, errMsgMatcher, message) {
  45111. (typeof errorLike == "string" || errorLike instanceof RegExp) && (errMsgMatcher = errorLike, errorLike = null), new Assertion(fn4, message, assert.doesNotThrow, !0).to.not.throw(
  45112. errorLike,
  45113. errMsgMatcher
  45114. );
  45115. };
  45116. assert.operator = function(val, operator, val2, msg) {
  45117. let ok;
  45118. switch (operator) {
  45119. case "==":
  45120. ok = val == val2;
  45121. break;
  45122. case "===":
  45123. ok = val === val2;
  45124. break;
  45125. case ">":
  45126. ok = val > val2;
  45127. break;
  45128. case ">=":
  45129. ok = val >= val2;
  45130. break;
  45131. case "<":
  45132. ok = val < val2;
  45133. break;
  45134. case "<=":
  45135. ok = val <= val2;
  45136. break;
  45137. case "!=":
  45138. ok = val != val2;
  45139. break;
  45140. case "!==":
  45141. ok = val !== val2;
  45142. break;
  45143. default:
  45144. throw msg = msg && msg + ": ", new AssertionError(
  45145. msg + 'Invalid operator "' + operator + '"',
  45146. void 0,
  45147. assert.operator
  45148. );
  45149. }
  45150. let test22 = new Assertion(ok, msg, assert.operator, !0);
  45151. test22.assert(
  45152. flag(test22, "object") === !0,
  45153. "expected " + inspect22(val) + " to be " + operator + " " + inspect22(val2),
  45154. "expected " + inspect22(val) + " to not be " + operator + " " + inspect22(val2)
  45155. );
  45156. };
  45157. assert.closeTo = function(act, exp, delta, msg) {
  45158. new Assertion(act, msg, assert.closeTo, !0).to.be.closeTo(exp, delta);
  45159. };
  45160. assert.approximately = function(act, exp, delta, msg) {
  45161. new Assertion(act, msg, assert.approximately, !0).to.be.approximately(
  45162. exp,
  45163. delta
  45164. );
  45165. };
  45166. assert.sameMembers = function(set1, set22, msg) {
  45167. new Assertion(set1, msg, assert.sameMembers, !0).to.have.same.members(set22);
  45168. };
  45169. assert.notSameMembers = function(set1, set22, msg) {
  45170. new Assertion(
  45171. set1,
  45172. msg,
  45173. assert.notSameMembers,
  45174. !0
  45175. ).to.not.have.same.members(set22);
  45176. };
  45177. assert.sameDeepMembers = function(set1, set22, msg) {
  45178. new Assertion(
  45179. set1,
  45180. msg,
  45181. assert.sameDeepMembers,
  45182. !0
  45183. ).to.have.same.deep.members(set22);
  45184. };
  45185. assert.notSameDeepMembers = function(set1, set22, msg) {
  45186. new Assertion(
  45187. set1,
  45188. msg,
  45189. assert.notSameDeepMembers,
  45190. !0
  45191. ).to.not.have.same.deep.members(set22);
  45192. };
  45193. assert.sameOrderedMembers = function(set1, set22, msg) {
  45194. new Assertion(
  45195. set1,
  45196. msg,
  45197. assert.sameOrderedMembers,
  45198. !0
  45199. ).to.have.same.ordered.members(set22);
  45200. };
  45201. assert.notSameOrderedMembers = function(set1, set22, msg) {
  45202. new Assertion(
  45203. set1,
  45204. msg,
  45205. assert.notSameOrderedMembers,
  45206. !0
  45207. ).to.not.have.same.ordered.members(set22);
  45208. };
  45209. assert.sameDeepOrderedMembers = function(set1, set22, msg) {
  45210. new Assertion(
  45211. set1,
  45212. msg,
  45213. assert.sameDeepOrderedMembers,
  45214. !0
  45215. ).to.have.same.deep.ordered.members(set22);
  45216. };
  45217. assert.notSameDeepOrderedMembers = function(set1, set22, msg) {
  45218. new Assertion(
  45219. set1,
  45220. msg,
  45221. assert.notSameDeepOrderedMembers,
  45222. !0
  45223. ).to.not.have.same.deep.ordered.members(set22);
  45224. };
  45225. assert.includeMembers = function(superset, subset, msg) {
  45226. new Assertion(superset, msg, assert.includeMembers, !0).to.include.members(
  45227. subset
  45228. );
  45229. };
  45230. assert.notIncludeMembers = function(superset, subset, msg) {
  45231. new Assertion(
  45232. superset,
  45233. msg,
  45234. assert.notIncludeMembers,
  45235. !0
  45236. ).to.not.include.members(subset);
  45237. };
  45238. assert.includeDeepMembers = function(superset, subset, msg) {
  45239. new Assertion(
  45240. superset,
  45241. msg,
  45242. assert.includeDeepMembers,
  45243. !0
  45244. ).to.include.deep.members(subset);
  45245. };
  45246. assert.notIncludeDeepMembers = function(superset, subset, msg) {
  45247. new Assertion(
  45248. superset,
  45249. msg,
  45250. assert.notIncludeDeepMembers,
  45251. !0
  45252. ).to.not.include.deep.members(subset);
  45253. };
  45254. assert.includeOrderedMembers = function(superset, subset, msg) {
  45255. new Assertion(
  45256. superset,
  45257. msg,
  45258. assert.includeOrderedMembers,
  45259. !0
  45260. ).to.include.ordered.members(subset);
  45261. };
  45262. assert.notIncludeOrderedMembers = function(superset, subset, msg) {
  45263. new Assertion(
  45264. superset,
  45265. msg,
  45266. assert.notIncludeOrderedMembers,
  45267. !0
  45268. ).to.not.include.ordered.members(subset);
  45269. };
  45270. assert.includeDeepOrderedMembers = function(superset, subset, msg) {
  45271. new Assertion(
  45272. superset,
  45273. msg,
  45274. assert.includeDeepOrderedMembers,
  45275. !0
  45276. ).to.include.deep.ordered.members(subset);
  45277. };
  45278. assert.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
  45279. new Assertion(
  45280. superset,
  45281. msg,
  45282. assert.notIncludeDeepOrderedMembers,
  45283. !0
  45284. ).to.not.include.deep.ordered.members(subset);
  45285. };
  45286. assert.oneOf = function(inList, list, msg) {
  45287. new Assertion(inList, msg, assert.oneOf, !0).to.be.oneOf(list);
  45288. };
  45289. assert.isIterable = function(obj, msg) {
  45290. if (obj == null || !obj[Symbol.iterator])
  45291. throw msg = msg ? `${msg} expected ${inspect22(obj)} to be an iterable` : `expected ${inspect22(obj)} to be an iterable`, new AssertionError(msg, void 0, assert.isIterable);
  45292. };
  45293. assert.changes = function(fn4, obj, prop, msg) {
  45294. arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.changes, !0).to.change(obj, prop);
  45295. };
  45296. assert.changesBy = function(fn4, obj, prop, delta, msg) {
  45297. if (arguments.length === 4 && typeof obj == "function") {
  45298. let tmpMsg = delta;
  45299. delta = prop, msg = tmpMsg;
  45300. } else arguments.length === 3 && (delta = prop, prop = null);
  45301. new Assertion(fn4, msg, assert.changesBy, !0).to.change(obj, prop).by(delta);
  45302. };
  45303. assert.doesNotChange = function(fn4, obj, prop, msg) {
  45304. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotChange, !0).to.not.change(
  45305. obj,
  45306. prop
  45307. );
  45308. };
  45309. assert.changesButNotBy = function(fn4, obj, prop, delta, msg) {
  45310. if (arguments.length === 4 && typeof obj == "function") {
  45311. let tmpMsg = delta;
  45312. delta = prop, msg = tmpMsg;
  45313. } else arguments.length === 3 && (delta = prop, prop = null);
  45314. new Assertion(fn4, msg, assert.changesButNotBy, !0).to.change(obj, prop).but.not.by(delta);
  45315. };
  45316. assert.increases = function(fn4, obj, prop, msg) {
  45317. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.increases, !0).to.increase(obj, prop);
  45318. };
  45319. assert.increasesBy = function(fn4, obj, prop, delta, msg) {
  45320. if (arguments.length === 4 && typeof obj == "function") {
  45321. let tmpMsg = delta;
  45322. delta = prop, msg = tmpMsg;
  45323. } else arguments.length === 3 && (delta = prop, prop = null);
  45324. new Assertion(fn4, msg, assert.increasesBy, !0).to.increase(obj, prop).by(delta);
  45325. };
  45326. assert.doesNotIncrease = function(fn4, obj, prop, msg) {
  45327. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotIncrease, !0).to.not.increase(
  45328. obj,
  45329. prop
  45330. );
  45331. };
  45332. assert.increasesButNotBy = function(fn4, obj, prop, delta, msg) {
  45333. if (arguments.length === 4 && typeof obj == "function") {
  45334. let tmpMsg = delta;
  45335. delta = prop, msg = tmpMsg;
  45336. } else arguments.length === 3 && (delta = prop, prop = null);
  45337. new Assertion(fn4, msg, assert.increasesButNotBy, !0).to.increase(obj, prop).but.not.by(delta);
  45338. };
  45339. assert.decreases = function(fn4, obj, prop, msg) {
  45340. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.decreases, !0).to.decrease(obj, prop);
  45341. };
  45342. assert.decreasesBy = function(fn4, obj, prop, delta, msg) {
  45343. if (arguments.length === 4 && typeof obj == "function") {
  45344. let tmpMsg = delta;
  45345. delta = prop, msg = tmpMsg;
  45346. } else arguments.length === 3 && (delta = prop, prop = null);
  45347. new Assertion(fn4, msg, assert.decreasesBy, !0).to.decrease(obj, prop).by(delta);
  45348. };
  45349. assert.doesNotDecrease = function(fn4, obj, prop, msg) {
  45350. return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotDecrease, !0).to.not.decrease(
  45351. obj,
  45352. prop
  45353. );
  45354. };
  45355. assert.doesNotDecreaseBy = function(fn4, obj, prop, delta, msg) {
  45356. if (arguments.length === 4 && typeof obj == "function") {
  45357. let tmpMsg = delta;
  45358. delta = prop, msg = tmpMsg;
  45359. } else arguments.length === 3 && (delta = prop, prop = null);
  45360. return new Assertion(fn4, msg, assert.doesNotDecreaseBy, !0).to.not.decrease(obj, prop).by(delta);
  45361. };
  45362. assert.decreasesButNotBy = function(fn4, obj, prop, delta, msg) {
  45363. if (arguments.length === 4 && typeof obj == "function") {
  45364. let tmpMsg = delta;
  45365. delta = prop, msg = tmpMsg;
  45366. } else arguments.length === 3 && (delta = prop, prop = null);
  45367. new Assertion(fn4, msg, assert.decreasesButNotBy, !0).to.decrease(obj, prop).but.not.by(delta);
  45368. };
  45369. assert.ifError = function(val) {
  45370. if (val)
  45371. throw val;
  45372. };
  45373. assert.isExtensible = function(obj, msg) {
  45374. new Assertion(obj, msg, assert.isExtensible, !0).to.be.extensible;
  45375. };
  45376. assert.isNotExtensible = function(obj, msg) {
  45377. new Assertion(obj, msg, assert.isNotExtensible, !0).to.not.be.extensible;
  45378. };
  45379. assert.isSealed = function(obj, msg) {
  45380. new Assertion(obj, msg, assert.isSealed, !0).to.be.sealed;
  45381. };
  45382. assert.isNotSealed = function(obj, msg) {
  45383. new Assertion(obj, msg, assert.isNotSealed, !0).to.not.be.sealed;
  45384. };
  45385. assert.isFrozen = function(obj, msg) {
  45386. new Assertion(obj, msg, assert.isFrozen, !0).to.be.frozen;
  45387. };
  45388. assert.isNotFrozen = function(obj, msg) {
  45389. new Assertion(obj, msg, assert.isNotFrozen, !0).to.not.be.frozen;
  45390. };
  45391. assert.isEmpty = function(val, msg) {
  45392. new Assertion(val, msg, assert.isEmpty, !0).to.be.empty;
  45393. };
  45394. assert.isNotEmpty = function(val, msg) {
  45395. new Assertion(val, msg, assert.isNotEmpty, !0).to.not.be.empty;
  45396. };
  45397. assert.containsSubset = function(val, exp, msg) {
  45398. new Assertion(val, msg).to.containSubset(exp);
  45399. };
  45400. assert.doesNotContainSubset = function(val, exp, msg) {
  45401. new Assertion(val, msg).to.not.containSubset(exp);
  45402. };
  45403. var aliases = [
  45404. ["isOk", "ok"],
  45405. ["isNotOk", "notOk"],
  45406. ["throws", "throw"],
  45407. ["throws", "Throw"],
  45408. ["isExtensible", "extensible"],
  45409. ["isNotExtensible", "notExtensible"],
  45410. ["isSealed", "sealed"],
  45411. ["isNotSealed", "notSealed"],
  45412. ["isFrozen", "frozen"],
  45413. ["isNotFrozen", "notFrozen"],
  45414. ["isEmpty", "empty"],
  45415. ["isNotEmpty", "notEmpty"],
  45416. ["isCallable", "isFunction"],
  45417. ["isNotCallable", "isNotFunction"],
  45418. ["containsSubset", "containSubset"]
  45419. ];
  45420. for (let [name, as] of aliases)
  45421. assert[as] = assert[name];
  45422. var used = [];
  45423. function use2(fn4) {
  45424. let exports = {
  45425. use: use2,
  45426. AssertionError,
  45427. util: utils_exports,
  45428. config: config2,
  45429. expect,
  45430. assert,
  45431. Assertion,
  45432. ...should_exports
  45433. };
  45434. return ~used.indexOf(fn4) || (fn4(exports, utils_exports), used.push(fn4)), exports;
  45435. }
  45436. __name(use2, "use");
  45437. // ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs
  45438. var matchers_exports = {};
  45439. __export(matchers_exports, {
  45440. toAppearAfter: () => toAppearAfter,
  45441. toAppearBefore: () => toAppearBefore,
  45442. toBeChecked: () => toBeChecked,
  45443. toBeDisabled: () => toBeDisabled,
  45444. toBeEmpty: () => toBeEmpty,
  45445. toBeEmptyDOMElement: () => toBeEmptyDOMElement,
  45446. toBeEnabled: () => toBeEnabled,
  45447. toBeInTheDOM: () => toBeInTheDOM,
  45448. toBeInTheDocument: () => toBeInTheDocument,
  45449. toBeInvalid: () => toBeInvalid,
  45450. toBePartiallyChecked: () => toBePartiallyChecked,
  45451. toBePartiallyPressed: () => toBePartiallyPressed,
  45452. toBePressed: () => toBePressed,
  45453. toBeRequired: () => toBeRequired,
  45454. toBeValid: () => toBeValid,
  45455. toBeVisible: () => toBeVisible,
  45456. toContainElement: () => toContainElement,
  45457. toContainHTML: () => toContainHTML,
  45458. toHaveAccessibleDescription: () => toHaveAccessibleDescription,
  45459. toHaveAccessibleErrorMessage: () => toHaveAccessibleErrorMessage,
  45460. toHaveAccessibleName: () => toHaveAccessibleName,
  45461. toHaveAttribute: () => toHaveAttribute,
  45462. toHaveClass: () => toHaveClass,
  45463. toHaveDescription: () => toHaveDescription,
  45464. toHaveDisplayValue: () => toHaveDisplayValue,
  45465. toHaveErrorMessage: () => toHaveErrorMessage,
  45466. toHaveFocus: () => toHaveFocus,
  45467. toHaveFormValues: () => toHaveFormValues,
  45468. toHaveRole: () => toHaveRole,
  45469. toHaveSelection: () => toHaveSelection,
  45470. toHaveStyle: () => toHaveStyle,
  45471. toHaveTextContent: () => toHaveTextContent,
  45472. toHaveValue: () => toHaveValue
  45473. });
  45474. // ../../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs
  45475. var import_redent = __toESM(require_redent(), 1);
  45476. // ../../node_modules/@adobe/css-tools/dist/index.mjs
  45477. function $parcel$defineInteropFlag(a3) {
  45478. Object.defineProperty(a3, "__esModule", { value: !0, configurable: !0 });
  45479. }
  45480. function $parcel$export(e, n, v, s3) {
  45481. Object.defineProperty(e, n, { get: v, set: s3, enumerable: !0, configurable: !0 });
  45482. }
  45483. var $009ddb00d3ec72b8$exports = {};
  45484. $parcel$defineInteropFlag($009ddb00d3ec72b8$exports);
  45485. $parcel$export($009ddb00d3ec72b8$exports, "default", () => $009ddb00d3ec72b8$export$2e2bcd8739ae039);
  45486. var $009ddb00d3ec72b8$export$2e2bcd8739ae039 = class extends Error {
  45487. constructor(filename, msg, lineno, column2, css3) {
  45488. super(filename + ":" + lineno + ":" + column2 + ": " + msg), this.reason = msg, this.filename = filename, this.line = lineno, this.column = column2, this.source = css3;
  45489. }
  45490. }, $0865a9fb4cc365fe$exports = {};
  45491. $parcel$defineInteropFlag($0865a9fb4cc365fe$exports);
  45492. $parcel$export($0865a9fb4cc365fe$exports, "default", () => $0865a9fb4cc365fe$export$2e2bcd8739ae039);
  45493. var $0865a9fb4cc365fe$export$2e2bcd8739ae039 = class {
  45494. constructor(start2, end2, source) {
  45495. this.start = start2, this.end = end2, this.source = source;
  45496. }
  45497. }, $b2e137848b48cf4f$exports = {};
  45498. $parcel$export($b2e137848b48cf4f$exports, "CssTypes", () => $b2e137848b48cf4f$export$9be5dd6e61d5d73a);
  45499. var $b2e137848b48cf4f$export$9be5dd6e61d5d73a;
  45500. (function(CssTypes) {
  45501. CssTypes.stylesheet = "stylesheet", CssTypes.rule = "rule", CssTypes.declaration = "declaration", CssTypes.comment = "comment", CssTypes.container = "container", CssTypes.charset = "charset", CssTypes.document = "document", CssTypes.customMedia = "custom-media", CssTypes.fontFace = "font-face", CssTypes.host = "host", CssTypes.import = "import", CssTypes.keyframes = "keyframes", CssTypes.keyframe = "keyframe", CssTypes.layer = "layer", CssTypes.media = "media", CssTypes.namespace = "namespace", CssTypes.page = "page", CssTypes.startingStyle = "starting-style", CssTypes.supports = "supports";
  45502. })($b2e137848b48cf4f$export$9be5dd6e61d5d73a || ($b2e137848b48cf4f$export$9be5dd6e61d5d73a = {}));
  45503. var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$export$98e6a39c04603d36 = (css3, options) => {
  45504. options = options || {};
  45505. let lineno = 1, column2 = 1;
  45506. function updatePosition(str2) {
  45507. let lines = str2.match(/\n/g);
  45508. lines && (lineno += lines.length);
  45509. let i = str2.lastIndexOf(`
  45510. `);
  45511. column2 = ~i ? str2.length - i : column2 + str2.length;
  45512. }
  45513. function position2() {
  45514. let start2 = {
  45515. line: lineno,
  45516. column: column2
  45517. };
  45518. return function(node2) {
  45519. return node2.position = new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start2, {
  45520. line: lineno,
  45521. column: column2
  45522. }, options?.source || ""), whitespace2(), node2;
  45523. };
  45524. }
  45525. let errorsList = [];
  45526. function error(msg) {
  45527. let err = new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source || "", msg, lineno, column2, css3);
  45528. if (options?.silent) errorsList.push(err);
  45529. else throw err;
  45530. }
  45531. function stylesheet() {
  45532. let rulesList = rules();
  45533. return {
  45534. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet,
  45535. stylesheet: {
  45536. source: options?.source,
  45537. rules: rulesList,
  45538. parsingErrors: errorsList
  45539. }
  45540. };
  45541. }
  45542. function open() {
  45543. return match3(/^{\s*/);
  45544. }
  45545. function close() {
  45546. return match3(/^}/);
  45547. }
  45548. function rules() {
  45549. let node2, rules2 = [];
  45550. for (whitespace2(), comments(rules2); css3.length && css3.charAt(0) !== "}" && (node2 = atrule() || rule()); ) node2 && (rules2.push(node2), comments(rules2));
  45551. return rules2;
  45552. }
  45553. function match3(re) {
  45554. let m3 = re.exec(css3);
  45555. if (!m3) return;
  45556. let str2 = m3[0];
  45557. return updatePosition(str2), css3 = css3.slice(str2.length), m3;
  45558. }
  45559. function whitespace2() {
  45560. match3(/^\s*/);
  45561. }
  45562. function comments(rules2) {
  45563. let c;
  45564. for (rules2 = rules2 || []; c = comment2(); ) c && rules2.push(c);
  45565. return rules2;
  45566. }
  45567. function comment2() {
  45568. let pos = position2();
  45569. if (css3.charAt(0) !== "/" || css3.charAt(1) !== "*") return;
  45570. let m3 = match3(/^\/\*[^]*?\*\//);
  45571. return m3 ? pos({
  45572. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,
  45573. comment: m3[0].slice(2, -2)
  45574. }) : error("End of comment missing");
  45575. }
  45576. function findClosingParenthese(str2, start2, depth) {
  45577. let ptr = start2 + 1, found = !1, closeParentheses = str2.indexOf(")", ptr);
  45578. for (; !found && closeParentheses !== -1; ) {
  45579. let nextParentheses = str2.indexOf("(", ptr);
  45580. nextParentheses !== -1 && nextParentheses < closeParentheses ? (ptr = findClosingParenthese(str2, nextParentheses + 1, depth + 1) + 1, closeParentheses = str2.indexOf(")", ptr)) : found = !0;
  45581. }
  45582. return found && closeParentheses !== -1 ? closeParentheses : -1;
  45583. }
  45584. function selector() {
  45585. let m3 = match3(/^([^{]+)/);
  45586. if (!m3) return;
  45587. let res = $d708735ed1303b43$var$trim(m3[0]).replace($d708735ed1303b43$var$commentre, "");
  45588. if (res.indexOf(",") === -1) return [
  45589. res
  45590. ];
  45591. let ptr = 0, startParentheses = res.indexOf("(", ptr);
  45592. for (; startParentheses !== -1; ) {
  45593. let closeParentheses = findClosingParenthese(res, startParentheses, 0);
  45594. if (closeParentheses === -1) break;
  45595. ptr = closeParentheses + 1, res = res.substring(0, startParentheses) + res.substring(startParentheses, closeParentheses).replace(/,/g, "\u200C") + res.substring(closeParentheses), startParentheses = res.indexOf("(", ptr);
  45596. }
  45597. return res = res.replace(/("|')(?:\\\1|.)*?\1/g, (m4) => m4.replace(/,/g, "\u200C")), res.split(",").map((s3) => $d708735ed1303b43$var$trim(s3.replace(/\u200C/g, ",")));
  45598. }
  45599. function declaration2() {
  45600. let pos = position2(), propMatch = match3(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
  45601. if (!propMatch) return;
  45602. let propValue = $d708735ed1303b43$var$trim(propMatch[0]);
  45603. if (!match3(/^:\s*/)) return error("property missing ':'");
  45604. let val = match3(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/), ret = pos({
  45605. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration,
  45606. property: propValue.replace($d708735ed1303b43$var$commentre, ""),
  45607. value: val ? $d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre, "") : ""
  45608. });
  45609. return match3(/^[;\s]*/), ret;
  45610. }
  45611. function declarations() {
  45612. let decls = [];
  45613. if (!open()) return error("missing '{'");
  45614. comments(decls);
  45615. let decl;
  45616. for (; decl = declaration2(); ) decl && (decls.push(decl), comments(decls));
  45617. return close() ? decls : error("missing '}'");
  45618. }
  45619. function keyframe() {
  45620. let m3, vals = [], pos = position2();
  45621. for (; m3 = match3(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
  45622. vals.push(m3[1]), match3(/^,\s*/);
  45623. if (vals.length)
  45624. return pos({
  45625. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,
  45626. values: vals,
  45627. declarations: declarations() || []
  45628. });
  45629. }
  45630. function atkeyframes() {
  45631. let pos = position2(), m1 = match3(/^@([-\w]+)?keyframes\s*/);
  45632. if (!m1) return;
  45633. let vendor = m1[1], m22 = match3(/^([-\w]+)\s*/);
  45634. if (!m22) return error("@keyframes missing name");
  45635. let name = m22[1];
  45636. if (!open()) return error("@keyframes missing '{'");
  45637. let frame, frames = comments();
  45638. for (; frame = keyframe(); )
  45639. frames.push(frame), frames = frames.concat(comments());
  45640. return close() ? pos({
  45641. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes,
  45642. name,
  45643. vendor,
  45644. keyframes: frames
  45645. }) : error("@keyframes missing '}'");
  45646. }
  45647. function atsupports() {
  45648. let pos = position2(), m3 = match3(/^@supports *([^{]+)/);
  45649. if (!m3) return;
  45650. let supports = $d708735ed1303b43$var$trim(m3[1]);
  45651. if (!open()) return error("@supports missing '{'");
  45652. let style = comments().concat(rules());
  45653. return close() ? pos({
  45654. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports,
  45655. supports,
  45656. rules: style
  45657. }) : error("@supports missing '}'");
  45658. }
  45659. function athost() {
  45660. let pos = position2();
  45661. if (!match3(/^@host\s*/)) return;
  45662. if (!open()) return error("@host missing '{'");
  45663. let style = comments().concat(rules());
  45664. return close() ? pos({
  45665. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.host,
  45666. rules: style
  45667. }) : error("@host missing '}'");
  45668. }
  45669. function atcontainer() {
  45670. let pos = position2(), m3 = match3(/^@container *([^{]+)/);
  45671. if (!m3) return;
  45672. let container = $d708735ed1303b43$var$trim(m3[1]);
  45673. if (!open()) return error("@container missing '{'");
  45674. let style = comments().concat(rules());
  45675. return close() ? pos({
  45676. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.container,
  45677. container,
  45678. rules: style
  45679. }) : error("@container missing '}'");
  45680. }
  45681. function atlayer() {
  45682. let pos = position2(), m3 = match3(/^@layer *([^{;@]+)/);
  45683. if (!m3) return;
  45684. let layer = $d708735ed1303b43$var$trim(m3[1]);
  45685. if (!open())
  45686. return match3(/^[;\s]*/), pos({
  45687. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,
  45688. layer
  45689. });
  45690. let style = comments().concat(rules());
  45691. return close() ? pos({
  45692. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,
  45693. layer,
  45694. rules: style
  45695. }) : error("@layer missing '}'");
  45696. }
  45697. function atmedia() {
  45698. let pos = position2(), m3 = match3(/^@media *([^{]+)/);
  45699. if (!m3) return;
  45700. let media = $d708735ed1303b43$var$trim(m3[1]);
  45701. if (!open()) return error("@media missing '{'");
  45702. let style = comments().concat(rules());
  45703. return close() ? pos({
  45704. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.media,
  45705. media,
  45706. rules: style
  45707. }) : error("@media missing '}'");
  45708. }
  45709. function atcustommedia() {
  45710. let pos = position2(), m3 = match3(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);
  45711. if (m3)
  45712. return pos({
  45713. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,
  45714. name: $d708735ed1303b43$var$trim(m3[1]),
  45715. media: $d708735ed1303b43$var$trim(m3[2])
  45716. });
  45717. }
  45718. function atpage() {
  45719. let pos = position2();
  45720. if (!match3(/^@page */)) return;
  45721. let sel = selector() || [];
  45722. if (!open()) return error("@page missing '{'");
  45723. let decls = comments(), decl;
  45724. for (; decl = declaration2(); )
  45725. decls.push(decl), decls = decls.concat(comments());
  45726. return close() ? pos({
  45727. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.page,
  45728. selectors: sel,
  45729. declarations: decls
  45730. }) : error("@page missing '}'");
  45731. }
  45732. function atdocument() {
  45733. let pos = position2(), m3 = match3(/^@([-\w]+)?document *([^{]+)/);
  45734. if (!m3) return;
  45735. let vendor = $d708735ed1303b43$var$trim(m3[1]), doc = $d708735ed1303b43$var$trim(m3[2]);
  45736. if (!open()) return error("@document missing '{'");
  45737. let style = comments().concat(rules());
  45738. return close() ? pos({
  45739. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.document,
  45740. document: doc,
  45741. vendor,
  45742. rules: style
  45743. }) : error("@document missing '}'");
  45744. }
  45745. function atfontface() {
  45746. let pos = position2();
  45747. if (!match3(/^@font-face\s*/)) return;
  45748. if (!open()) return error("@font-face missing '{'");
  45749. let decls = comments(), decl;
  45750. for (; decl = declaration2(); )
  45751. decls.push(decl), decls = decls.concat(comments());
  45752. return close() ? pos({
  45753. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace,
  45754. declarations: decls
  45755. }) : error("@font-face missing '}'");
  45756. }
  45757. function atstartingstyle() {
  45758. let pos = position2();
  45759. if (!match3(/^@starting-style\s*/)) return;
  45760. if (!open()) return error("@starting-style missing '{'");
  45761. let style = comments().concat(rules());
  45762. return close() ? pos({
  45763. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle,
  45764. rules: style
  45765. }) : error("@starting-style missing '}'");
  45766. }
  45767. let atimport = _compileAtrule("import"), atcharset = _compileAtrule("charset"), atnamespace = _compileAtrule("namespace");
  45768. function _compileAtrule(name) {
  45769. let re = new RegExp("^@" + name + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
  45770. return function() {
  45771. let pos = position2(), m3 = match3(re);
  45772. if (!m3) return;
  45773. let ret = {
  45774. type: name
  45775. };
  45776. return ret[name] = m3[1].trim(), pos(ret);
  45777. };
  45778. }
  45779. function atrule() {
  45780. if (css3[0] === "@")
  45781. return atkeyframes() || atmedia() || atcustommedia() || atsupports() || atimport() || atcharset() || atnamespace() || atdocument() || atpage() || athost() || atfontface() || atcontainer() || atstartingstyle() || atlayer();
  45782. }
  45783. function rule() {
  45784. let pos = position2(), sel = selector();
  45785. return sel ? (comments(), pos({
  45786. type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule,
  45787. selectors: sel,
  45788. declarations: declarations() || []
  45789. })) : error("selector missing");
  45790. }
  45791. return $d708735ed1303b43$var$addParent(stylesheet());
  45792. };
  45793. function $d708735ed1303b43$var$trim(str2) {
  45794. return str2 ? str2.trim() : "";
  45795. }
  45796. function $d708735ed1303b43$var$addParent(obj, parent) {
  45797. let isNode2 = obj && typeof obj.type == "string", childParent = isNode2 ? obj : parent;
  45798. for (let k in obj) {
  45799. let value = obj[k];
  45800. Array.isArray(value) ? value.forEach((v) => {
  45801. $d708735ed1303b43$var$addParent(v, childParent);
  45802. }) : value && typeof value == "object" && $d708735ed1303b43$var$addParent(value, childParent);
  45803. }
  45804. return isNode2 && Object.defineProperty(obj, "parent", {
  45805. configurable: !0,
  45806. writable: !0,
  45807. enumerable: !1,
  45808. value: parent || null
  45809. }), obj;
  45810. }
  45811. var $d708735ed1303b43$export$2e2bcd8739ae039 = $d708735ed1303b43$export$98e6a39c04603d36;
  45812. var $149c1bd638913645$export$98e6a39c04603d36 = $d708735ed1303b43$export$2e2bcd8739ae039;
  45813. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
  45814. var toStr = Object.prototype.toString;
  45815. function isCallable(fn4) {
  45816. return typeof fn4 == "function" || toStr.call(fn4) === "[object Function]";
  45817. }
  45818. function toInteger(value) {
  45819. var number = Number(value);
  45820. return isNaN(number) ? 0 : number === 0 || !isFinite(number) ? number : (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
  45821. }
  45822. var maxSafeInteger = Math.pow(2, 53) - 1;
  45823. function toLength(value) {
  45824. var len = toInteger(value);
  45825. return Math.min(Math.max(len, 0), maxSafeInteger);
  45826. }
  45827. function arrayFrom(arrayLike, mapFn) {
  45828. var C3 = Array, items = Object(arrayLike);
  45829. if (arrayLike == null)
  45830. throw new TypeError("Array.from requires an array-like object - not null or undefined");
  45831. if (typeof mapFn < "u" && !isCallable(mapFn))
  45832. throw new TypeError("Array.from: when provided, the second argument must be a function");
  45833. for (var len = toLength(items.length), A3 = isCallable(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; )
  45834. kValue = items[k], mapFn ? A3[k] = mapFn(kValue, k) : A3[k] = kValue, k += 1;
  45835. return A3.length = len, A3;
  45836. }
  45837. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
  45838. function _typeof2(o) {
  45839. "@babel/helpers - typeof";
  45840. return _typeof2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  45841. return typeof o2;
  45842. } : function(o2) {
  45843. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  45844. }, _typeof2(o);
  45845. }
  45846. function _classCallCheck(instance, Constructor) {
  45847. if (!(instance instanceof Constructor))
  45848. throw new TypeError("Cannot call a class as a function");
  45849. }
  45850. function _defineProperties(target, props) {
  45851. for (var i = 0; i < props.length; i++) {
  45852. var descriptor = props[i];
  45853. descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  45854. }
  45855. }
  45856. function _createClass(Constructor, protoProps, staticProps) {
  45857. return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Object.defineProperty(Constructor, "prototype", { writable: !1 }), Constructor;
  45858. }
  45859. function _defineProperty2(obj, key, value) {
  45860. return key = _toPropertyKey(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  45861. }
  45862. function _toPropertyKey(arg) {
  45863. var key = _toPrimitive(arg, "string");
  45864. return _typeof2(key) === "symbol" ? key : String(key);
  45865. }
  45866. function _toPrimitive(input2, hint) {
  45867. if (_typeof2(input2) !== "object" || input2 === null) return input2;
  45868. var prim = input2[Symbol.toPrimitive];
  45869. if (prim !== void 0) {
  45870. var res = prim.call(input2, hint || "default");
  45871. if (_typeof2(res) !== "object") return res;
  45872. throw new TypeError("@@toPrimitive must return a primitive value.");
  45873. }
  45874. return (hint === "string" ? String : Number)(input2);
  45875. }
  45876. var SetLike = (function() {
  45877. function SetLike3() {
  45878. var items = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  45879. _classCallCheck(this, SetLike3), _defineProperty2(this, "items", void 0), this.items = items;
  45880. }
  45881. return _createClass(SetLike3, [{
  45882. key: "add",
  45883. value: function(value) {
  45884. return this.has(value) === !1 && this.items.push(value), this;
  45885. }
  45886. }, {
  45887. key: "clear",
  45888. value: function() {
  45889. this.items = [];
  45890. }
  45891. }, {
  45892. key: "delete",
  45893. value: function(value) {
  45894. var previousLength = this.items.length;
  45895. return this.items = this.items.filter(function(item) {
  45896. return item !== value;
  45897. }), previousLength !== this.items.length;
  45898. }
  45899. }, {
  45900. key: "forEach",
  45901. value: function(callbackfn) {
  45902. var _this = this;
  45903. this.items.forEach(function(item) {
  45904. callbackfn(item, item, _this);
  45905. });
  45906. }
  45907. }, {
  45908. key: "has",
  45909. value: function(value) {
  45910. return this.items.indexOf(value) !== -1;
  45911. }
  45912. }, {
  45913. key: "size",
  45914. get: function() {
  45915. return this.items.length;
  45916. }
  45917. }]), SetLike3;
  45918. })(), SetLike_default = typeof Set > "u" ? Set : SetLike;
  45919. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs
  45920. function getLocalName(element) {
  45921. var _element$localName;
  45922. return (
  45923. // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
  45924. (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName : (
  45925. // eslint-disable-next-line no-restricted-properties -- required for the fallback
  45926. element.tagName.toLowerCase()
  45927. )
  45928. );
  45929. }
  45930. var localNameToRoleMappings = {
  45931. article: "article",
  45932. aside: "complementary",
  45933. button: "button",
  45934. datalist: "listbox",
  45935. dd: "definition",
  45936. details: "group",
  45937. dialog: "dialog",
  45938. dt: "term",
  45939. fieldset: "group",
  45940. figure: "figure",
  45941. // WARNING: Only with an accessible name
  45942. form: "form",
  45943. footer: "contentinfo",
  45944. h1: "heading",
  45945. h2: "heading",
  45946. h3: "heading",
  45947. h4: "heading",
  45948. h5: "heading",
  45949. h6: "heading",
  45950. header: "banner",
  45951. hr: "separator",
  45952. html: "document",
  45953. legend: "legend",
  45954. li: "listitem",
  45955. math: "math",
  45956. main: "main",
  45957. menu: "list",
  45958. nav: "navigation",
  45959. ol: "list",
  45960. optgroup: "group",
  45961. // WARNING: Only in certain context
  45962. option: "option",
  45963. output: "status",
  45964. progress: "progressbar",
  45965. // WARNING: Only with an accessible name
  45966. section: "region",
  45967. summary: "button",
  45968. table: "table",
  45969. tbody: "rowgroup",
  45970. textarea: "textbox",
  45971. tfoot: "rowgroup",
  45972. // WARNING: Only in certain context
  45973. td: "cell",
  45974. th: "columnheader",
  45975. thead: "rowgroup",
  45976. tr: "row",
  45977. ul: "list"
  45978. }, prohibitedAttributes = {
  45979. caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45980. code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45981. deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45982. emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45983. generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
  45984. insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45985. none: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45986. paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45987. presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45988. strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45989. subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  45990. superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
  45991. };
  45992. function hasGlobalAriaAttributes(element, role) {
  45993. return [
  45994. "aria-atomic",
  45995. "aria-busy",
  45996. "aria-controls",
  45997. "aria-current",
  45998. "aria-description",
  45999. "aria-describedby",
  46000. "aria-details",
  46001. // "disabled",
  46002. "aria-dropeffect",
  46003. // "errormessage",
  46004. "aria-flowto",
  46005. "aria-grabbed",
  46006. // "haspopup",
  46007. "aria-hidden",
  46008. // "invalid",
  46009. "aria-keyshortcuts",
  46010. "aria-label",
  46011. "aria-labelledby",
  46012. "aria-live",
  46013. "aria-owns",
  46014. "aria-relevant",
  46015. "aria-roledescription"
  46016. ].some(function(attributeName) {
  46017. var _prohibitedAttributes;
  46018. return element.hasAttribute(attributeName) && !((_prohibitedAttributes = prohibitedAttributes[role]) !== null && _prohibitedAttributes !== void 0 && _prohibitedAttributes.has(attributeName));
  46019. });
  46020. }
  46021. function ignorePresentationalRole(element, implicitRole) {
  46022. return hasGlobalAriaAttributes(element, implicitRole);
  46023. }
  46024. function getRole(element) {
  46025. var explicitRole = getExplicitRole(element);
  46026. if (explicitRole === null || presentationRoles.indexOf(explicitRole) !== -1) {
  46027. var implicitRole = getImplicitRole(element);
  46028. if (presentationRoles.indexOf(explicitRole || "") === -1 || ignorePresentationalRole(element, implicitRole || ""))
  46029. return implicitRole;
  46030. }
  46031. return explicitRole;
  46032. }
  46033. function getImplicitRole(element) {
  46034. var mappedByTag = localNameToRoleMappings[getLocalName(element)];
  46035. if (mappedByTag !== void 0)
  46036. return mappedByTag;
  46037. switch (getLocalName(element)) {
  46038. case "a":
  46039. case "area":
  46040. case "link":
  46041. if (element.hasAttribute("href"))
  46042. return "link";
  46043. break;
  46044. case "img":
  46045. return element.getAttribute("alt") === "" && !ignorePresentationalRole(element, "img") ? "presentation" : "img";
  46046. case "input": {
  46047. var _ref = element, type5 = _ref.type;
  46048. switch (type5) {
  46049. case "button":
  46050. case "image":
  46051. case "reset":
  46052. case "submit":
  46053. return "button";
  46054. case "checkbox":
  46055. case "radio":
  46056. return type5;
  46057. case "range":
  46058. return "slider";
  46059. case "email":
  46060. case "tel":
  46061. case "text":
  46062. case "url":
  46063. return element.hasAttribute("list") ? "combobox" : "textbox";
  46064. case "search":
  46065. return element.hasAttribute("list") ? "combobox" : "searchbox";
  46066. case "number":
  46067. return "spinbutton";
  46068. default:
  46069. return null;
  46070. }
  46071. }
  46072. case "select":
  46073. return element.hasAttribute("multiple") || element.size > 1 ? "listbox" : "combobox";
  46074. }
  46075. return null;
  46076. }
  46077. function getExplicitRole(element) {
  46078. var role = element.getAttribute("role");
  46079. if (role !== null) {
  46080. var explicitRole = role.trim().split(" ")[0];
  46081. if (explicitRole.length > 0)
  46082. return explicitRole;
  46083. }
  46084. return null;
  46085. }
  46086. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs
  46087. var presentationRoles = ["presentation", "none"];
  46088. function isElement(node2) {
  46089. return node2 !== null && node2.nodeType === node2.ELEMENT_NODE;
  46090. }
  46091. function isHTMLTableCaptionElement(node2) {
  46092. return isElement(node2) && getLocalName(node2) === "caption";
  46093. }
  46094. function isHTMLInputElement(node2) {
  46095. return isElement(node2) && getLocalName(node2) === "input";
  46096. }
  46097. function isHTMLOptGroupElement(node2) {
  46098. return isElement(node2) && getLocalName(node2) === "optgroup";
  46099. }
  46100. function isHTMLSelectElement(node2) {
  46101. return isElement(node2) && getLocalName(node2) === "select";
  46102. }
  46103. function isHTMLTableElement(node2) {
  46104. return isElement(node2) && getLocalName(node2) === "table";
  46105. }
  46106. function isHTMLTextAreaElement(node2) {
  46107. return isElement(node2) && getLocalName(node2) === "textarea";
  46108. }
  46109. function safeWindow(node2) {
  46110. var _ref = node2.ownerDocument === null ? node2 : node2.ownerDocument, defaultView = _ref.defaultView;
  46111. if (defaultView === null)
  46112. throw new TypeError("no window available");
  46113. return defaultView;
  46114. }
  46115. function isHTMLFieldSetElement(node2) {
  46116. return isElement(node2) && getLocalName(node2) === "fieldset";
  46117. }
  46118. function isHTMLLegendElement(node2) {
  46119. return isElement(node2) && getLocalName(node2) === "legend";
  46120. }
  46121. function isHTMLSlotElement(node2) {
  46122. return isElement(node2) && getLocalName(node2) === "slot";
  46123. }
  46124. function isSVGElement(node2) {
  46125. return isElement(node2) && node2.ownerSVGElement !== void 0;
  46126. }
  46127. function isSVGSVGElement(node2) {
  46128. return isElement(node2) && getLocalName(node2) === "svg";
  46129. }
  46130. function isSVGTitleElement(node2) {
  46131. return isSVGElement(node2) && getLocalName(node2) === "title";
  46132. }
  46133. function queryIdRefs(node2, attributeName) {
  46134. if (isElement(node2) && node2.hasAttribute(attributeName)) {
  46135. var ids = node2.getAttribute(attributeName).split(" "), root2 = node2.getRootNode ? node2.getRootNode() : node2.ownerDocument;
  46136. return ids.map(function(id) {
  46137. return root2.getElementById(id);
  46138. }).filter(
  46139. function(element) {
  46140. return element !== null;
  46141. }
  46142. // TODO: why does this not narrow?
  46143. );
  46144. }
  46145. return [];
  46146. }
  46147. function hasAnyConcreteRoles(node2, roles3) {
  46148. return isElement(node2) ? roles3.indexOf(getRole(node2)) !== -1 : !1;
  46149. }
  46150. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
  46151. function asFlatString(s3) {
  46152. return s3.trim().replace(/\s\s+/g, " ");
  46153. }
  46154. function isHidden(node2, getComputedStyleImplementation) {
  46155. if (!isElement(node2))
  46156. return !1;
  46157. if (node2.hasAttribute("hidden") || node2.getAttribute("aria-hidden") === "true")
  46158. return !0;
  46159. var style = getComputedStyleImplementation(node2);
  46160. return style.getPropertyValue("display") === "none" || style.getPropertyValue("visibility") === "hidden";
  46161. }
  46162. function isControl(node2) {
  46163. return hasAnyConcreteRoles(node2, ["button", "combobox", "listbox", "textbox"]) || hasAbstractRole(node2, "range");
  46164. }
  46165. function hasAbstractRole(node2, role) {
  46166. if (!isElement(node2))
  46167. return !1;
  46168. switch (role) {
  46169. case "range":
  46170. return hasAnyConcreteRoles(node2, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
  46171. default:
  46172. throw new TypeError("No knowledge about abstract role '".concat(role, "'. This is likely a bug :("));
  46173. }
  46174. }
  46175. function querySelectorAllSubtree(element, selectors) {
  46176. var elements = arrayFrom(element.querySelectorAll(selectors));
  46177. return queryIdRefs(element, "aria-owns").forEach(function(root2) {
  46178. elements.push.apply(elements, arrayFrom(root2.querySelectorAll(selectors)));
  46179. }), elements;
  46180. }
  46181. function querySelectedOptions(listbox) {
  46182. return isHTMLSelectElement(listbox) ? listbox.selectedOptions || querySelectorAllSubtree(listbox, "[selected]") : querySelectorAllSubtree(listbox, '[aria-selected="true"]');
  46183. }
  46184. function isMarkedPresentational(node2) {
  46185. return hasAnyConcreteRoles(node2, presentationRoles);
  46186. }
  46187. function isNativeHostLanguageTextAlternativeElement(node2) {
  46188. return isHTMLTableCaptionElement(node2);
  46189. }
  46190. function allowsNameFromContent(node2) {
  46191. return hasAnyConcreteRoles(node2, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
  46192. }
  46193. function isDescendantOfNativeHostLanguageTextAlternativeElement(node2) {
  46194. return !1;
  46195. }
  46196. function getValueOfTextbox(element) {
  46197. return isHTMLInputElement(element) || isHTMLTextAreaElement(element) ? element.value : element.textContent || "";
  46198. }
  46199. function getTextualContent(declaration2) {
  46200. var content = declaration2.getPropertyValue("content");
  46201. return /^["'].*["']$/.test(content) ? content.slice(1, -1) : "";
  46202. }
  46203. function isLabelableElement(element) {
  46204. var localName = getLocalName(element);
  46205. return localName === "button" || localName === "input" && element.getAttribute("type") !== "hidden" || localName === "meter" || localName === "output" || localName === "progress" || localName === "select" || localName === "textarea";
  46206. }
  46207. function findLabelableElement(element) {
  46208. if (isLabelableElement(element))
  46209. return element;
  46210. var labelableElement = null;
  46211. return element.childNodes.forEach(function(childNode) {
  46212. if (labelableElement === null && isElement(childNode)) {
  46213. var descendantLabelableElement = findLabelableElement(childNode);
  46214. descendantLabelableElement !== null && (labelableElement = descendantLabelableElement);
  46215. }
  46216. }), labelableElement;
  46217. }
  46218. function getControlOfLabel(label) {
  46219. if (label.control !== void 0)
  46220. return label.control;
  46221. var htmlFor = label.getAttribute("for");
  46222. return htmlFor !== null ? label.ownerDocument.getElementById(htmlFor) : findLabelableElement(label);
  46223. }
  46224. function getLabels(element) {
  46225. var labelsProperty = element.labels;
  46226. if (labelsProperty === null)
  46227. return labelsProperty;
  46228. if (labelsProperty !== void 0)
  46229. return arrayFrom(labelsProperty);
  46230. if (!isLabelableElement(element))
  46231. return null;
  46232. var document13 = element.ownerDocument;
  46233. return arrayFrom(document13.querySelectorAll("label")).filter(function(label) {
  46234. return getControlOfLabel(label) === element;
  46235. });
  46236. }
  46237. function getSlotContents(slot) {
  46238. var assignedNodes = slot.assignedNodes();
  46239. return assignedNodes.length === 0 ? arrayFrom(slot.childNodes) : assignedNodes;
  46240. }
  46241. function computeTextAlternative(root2) {
  46242. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, consultedNodes = new SetLike_default(), window2 = safeWindow(root2), _options$compute = options.compute, compute = _options$compute === void 0 ? "name" : _options$compute, _options$computedStyl = options.computedStyleSupportsPseudoElements, computedStyleSupportsPseudoElements = _options$computedStyl === void 0 ? options.getComputedStyle !== void 0 : _options$computedStyl, _options$getComputedS = options.getComputedStyle, getComputedStyle3 = _options$getComputedS === void 0 ? window2.getComputedStyle.bind(window2) : _options$getComputedS, _options$hidden = options.hidden, hidden = _options$hidden === void 0 ? !1 : _options$hidden;
  46243. function computeMiscTextAlternative(node2, context) {
  46244. var accumulatedText = "";
  46245. if (isElement(node2) && computedStyleSupportsPseudoElements) {
  46246. var pseudoBefore = getComputedStyle3(node2, "::before"), beforeContent = getTextualContent(pseudoBefore);
  46247. accumulatedText = "".concat(beforeContent, " ").concat(accumulatedText);
  46248. }
  46249. var childNodes = isHTMLSlotElement(node2) ? getSlotContents(node2) : arrayFrom(node2.childNodes).concat(queryIdRefs(node2, "aria-owns"));
  46250. if (childNodes.forEach(function(child) {
  46251. var result = computeTextAlternative3(child, {
  46252. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46253. isReferenced: !1,
  46254. recursion: !0
  46255. }), display2 = isElement(child) ? getComputedStyle3(child).getPropertyValue("display") : "inline", separator = display2 !== "inline" ? " " : "";
  46256. accumulatedText += "".concat(separator).concat(result).concat(separator);
  46257. }), isElement(node2) && computedStyleSupportsPseudoElements) {
  46258. var pseudoAfter = getComputedStyle3(node2, "::after"), afterContent = getTextualContent(pseudoAfter);
  46259. accumulatedText = "".concat(accumulatedText, " ").concat(afterContent);
  46260. }
  46261. return accumulatedText.trim();
  46262. }
  46263. function useAttribute(element, attributeName) {
  46264. var attribute = element.getAttributeNode(attributeName);
  46265. return attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "" ? (consultedNodes.add(attribute), attribute.value) : null;
  46266. }
  46267. function computeTooltipAttributeValue(node2) {
  46268. return isElement(node2) ? useAttribute(node2, "title") : null;
  46269. }
  46270. function computeElementTextAlternative(node2) {
  46271. if (!isElement(node2))
  46272. return null;
  46273. if (isHTMLFieldSetElement(node2)) {
  46274. consultedNodes.add(node2);
  46275. for (var children = arrayFrom(node2.childNodes), i = 0; i < children.length; i += 1) {
  46276. var child = children[i];
  46277. if (isHTMLLegendElement(child))
  46278. return computeTextAlternative3(child, {
  46279. isEmbeddedInLabel: !1,
  46280. isReferenced: !1,
  46281. recursion: !1
  46282. });
  46283. }
  46284. } else if (isHTMLTableElement(node2)) {
  46285. consultedNodes.add(node2);
  46286. for (var _children = arrayFrom(node2.childNodes), _i = 0; _i < _children.length; _i += 1) {
  46287. var _child = _children[_i];
  46288. if (isHTMLTableCaptionElement(_child))
  46289. return computeTextAlternative3(_child, {
  46290. isEmbeddedInLabel: !1,
  46291. isReferenced: !1,
  46292. recursion: !1
  46293. });
  46294. }
  46295. } else if (isSVGSVGElement(node2)) {
  46296. consultedNodes.add(node2);
  46297. for (var _children2 = arrayFrom(node2.childNodes), _i2 = 0; _i2 < _children2.length; _i2 += 1) {
  46298. var _child2 = _children2[_i2];
  46299. if (isSVGTitleElement(_child2))
  46300. return _child2.textContent;
  46301. }
  46302. return null;
  46303. } else if (getLocalName(node2) === "img" || getLocalName(node2) === "area") {
  46304. var nameFromAlt = useAttribute(node2, "alt");
  46305. if (nameFromAlt !== null)
  46306. return nameFromAlt;
  46307. } else if (isHTMLOptGroupElement(node2)) {
  46308. var nameFromLabel = useAttribute(node2, "label");
  46309. if (nameFromLabel !== null)
  46310. return nameFromLabel;
  46311. }
  46312. if (isHTMLInputElement(node2) && (node2.type === "button" || node2.type === "submit" || node2.type === "reset")) {
  46313. var nameFromValue = useAttribute(node2, "value");
  46314. if (nameFromValue !== null)
  46315. return nameFromValue;
  46316. if (node2.type === "submit")
  46317. return "Submit";
  46318. if (node2.type === "reset")
  46319. return "Reset";
  46320. }
  46321. var labels = getLabels(node2);
  46322. if (labels !== null && labels.length !== 0)
  46323. return consultedNodes.add(node2), arrayFrom(labels).map(function(element) {
  46324. return computeTextAlternative3(element, {
  46325. isEmbeddedInLabel: !0,
  46326. isReferenced: !1,
  46327. recursion: !0
  46328. });
  46329. }).filter(function(label) {
  46330. return label.length > 0;
  46331. }).join(" ");
  46332. if (isHTMLInputElement(node2) && node2.type === "image") {
  46333. var _nameFromAlt = useAttribute(node2, "alt");
  46334. if (_nameFromAlt !== null)
  46335. return _nameFromAlt;
  46336. var nameFromTitle = useAttribute(node2, "title");
  46337. return nameFromTitle !== null ? nameFromTitle : "Submit Query";
  46338. }
  46339. if (hasAnyConcreteRoles(node2, ["button"])) {
  46340. var nameFromSubTree = computeMiscTextAlternative(node2, {
  46341. isEmbeddedInLabel: !1,
  46342. isReferenced: !1
  46343. });
  46344. if (nameFromSubTree !== "")
  46345. return nameFromSubTree;
  46346. }
  46347. return null;
  46348. }
  46349. function computeTextAlternative3(current, context) {
  46350. if (consultedNodes.has(current))
  46351. return "";
  46352. if (!hidden && isHidden(current, getComputedStyle3) && !context.isReferenced)
  46353. return consultedNodes.add(current), "";
  46354. var labelAttributeNode = isElement(current) ? current.getAttributeNode("aria-labelledby") : null, labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? queryIdRefs(current, "aria-labelledby") : [];
  46355. if (compute === "name" && !context.isReferenced && labelElements.length > 0)
  46356. return consultedNodes.add(labelAttributeNode), labelElements.map(function(element) {
  46357. return computeTextAlternative3(element, {
  46358. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46359. isReferenced: !0,
  46360. // this isn't recursion as specified, otherwise we would skip
  46361. // `aria-label` in
  46362. // <input id="myself" aria-label="foo" aria-labelledby="myself"
  46363. recursion: !1
  46364. });
  46365. }).join(" ");
  46366. var skipToStep2E = context.recursion && isControl(current) && compute === "name";
  46367. if (!skipToStep2E) {
  46368. var ariaLabel = (isElement(current) && current.getAttribute("aria-label") || "").trim();
  46369. if (ariaLabel !== "" && compute === "name")
  46370. return consultedNodes.add(current), ariaLabel;
  46371. if (!isMarkedPresentational(current)) {
  46372. var elementTextAlternative = computeElementTextAlternative(current);
  46373. if (elementTextAlternative !== null)
  46374. return consultedNodes.add(current), elementTextAlternative;
  46375. }
  46376. }
  46377. if (hasAnyConcreteRoles(current, ["menu"]))
  46378. return consultedNodes.add(current), "";
  46379. if (skipToStep2E || context.isEmbeddedInLabel || context.isReferenced) {
  46380. if (hasAnyConcreteRoles(current, ["combobox", "listbox"])) {
  46381. consultedNodes.add(current);
  46382. var selectedOptions = querySelectedOptions(current);
  46383. return selectedOptions.length === 0 ? isHTMLInputElement(current) ? current.value : "" : arrayFrom(selectedOptions).map(function(selectedOption) {
  46384. return computeTextAlternative3(selectedOption, {
  46385. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46386. isReferenced: !1,
  46387. recursion: !0
  46388. });
  46389. }).join(" ");
  46390. }
  46391. if (hasAbstractRole(current, "range"))
  46392. return consultedNodes.add(current), current.hasAttribute("aria-valuetext") ? current.getAttribute("aria-valuetext") : current.hasAttribute("aria-valuenow") ? current.getAttribute("aria-valuenow") : current.getAttribute("value") || "";
  46393. if (hasAnyConcreteRoles(current, ["textbox"]))
  46394. return consultedNodes.add(current), getValueOfTextbox(current);
  46395. }
  46396. if (allowsNameFromContent(current) || isElement(current) && context.isReferenced || isNativeHostLanguageTextAlternativeElement(current) || isDescendantOfNativeHostLanguageTextAlternativeElement(current)) {
  46397. var accumulatedText2F = computeMiscTextAlternative(current, {
  46398. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46399. isReferenced: !1
  46400. });
  46401. if (accumulatedText2F !== "")
  46402. return consultedNodes.add(current), accumulatedText2F;
  46403. }
  46404. if (current.nodeType === current.TEXT_NODE)
  46405. return consultedNodes.add(current), current.textContent || "";
  46406. if (context.recursion)
  46407. return consultedNodes.add(current), computeMiscTextAlternative(current, {
  46408. isEmbeddedInLabel: context.isEmbeddedInLabel,
  46409. isReferenced: !1
  46410. });
  46411. var tooltipAttributeValue = computeTooltipAttributeValue(current);
  46412. return tooltipAttributeValue !== null ? (consultedNodes.add(current), tooltipAttributeValue) : (consultedNodes.add(current), "");
  46413. }
  46414. return asFlatString(computeTextAlternative3(root2, {
  46415. isEmbeddedInLabel: !1,
  46416. // by spec computeAccessibleDescription starts with the referenced elements as roots
  46417. isReferenced: compute === "description",
  46418. recursion: !1
  46419. }));
  46420. }
  46421. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
  46422. function _typeof3(o) {
  46423. "@babel/helpers - typeof";
  46424. return _typeof3 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
  46425. return typeof o2;
  46426. } : function(o2) {
  46427. return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  46428. }, _typeof3(o);
  46429. }
  46430. function ownKeys3(e, r2) {
  46431. var t = Object.keys(e);
  46432. if (Object.getOwnPropertySymbols) {
  46433. var o = Object.getOwnPropertySymbols(e);
  46434. r2 && (o = o.filter(function(r3) {
  46435. return Object.getOwnPropertyDescriptor(e, r3).enumerable;
  46436. })), t.push.apply(t, o);
  46437. }
  46438. return t;
  46439. }
  46440. function _objectSpread3(e) {
  46441. for (var r2 = 1; r2 < arguments.length; r2++) {
  46442. var t = arguments[r2] != null ? arguments[r2] : {};
  46443. r2 % 2 ? ownKeys3(Object(t), !0).forEach(function(r3) {
  46444. _defineProperty3(e, r3, t[r3]);
  46445. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys3(Object(t)).forEach(function(r3) {
  46446. Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
  46447. });
  46448. }
  46449. return e;
  46450. }
  46451. function _defineProperty3(obj, key, value) {
  46452. return key = _toPropertyKey2(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  46453. }
  46454. function _toPropertyKey2(arg) {
  46455. var key = _toPrimitive2(arg, "string");
  46456. return _typeof3(key) === "symbol" ? key : String(key);
  46457. }
  46458. function _toPrimitive2(input2, hint) {
  46459. if (_typeof3(input2) !== "object" || input2 === null) return input2;
  46460. var prim = input2[Symbol.toPrimitive];
  46461. if (prim !== void 0) {
  46462. var res = prim.call(input2, hint || "default");
  46463. if (_typeof3(res) !== "object") return res;
  46464. throw new TypeError("@@toPrimitive must return a primitive value.");
  46465. }
  46466. return (hint === "string" ? String : Number)(input2);
  46467. }
  46468. function computeAccessibleDescription(root2) {
  46469. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, description = queryIdRefs(root2, "aria-describedby").map(function(element) {
  46470. return computeTextAlternative(element, _objectSpread3(_objectSpread3({}, options), {}, {
  46471. compute: "description"
  46472. }));
  46473. }).join(" ");
  46474. if (description === "") {
  46475. var ariaDescription = root2.getAttribute("aria-description");
  46476. description = ariaDescription === null ? "" : ariaDescription;
  46477. }
  46478. if (description === "") {
  46479. var title = root2.getAttribute("title");
  46480. description = title === null ? "" : title;
  46481. }
  46482. return description;
  46483. }
  46484. // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
  46485. function prohibitsNaming(node2) {
  46486. return hasAnyConcreteRoles(node2, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript"]);
  46487. }
  46488. function computeAccessibleName(root2) {
  46489. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  46490. return prohibitsNaming(root2) ? "" : computeTextAlternative(root2, options);
  46491. }
  46492. // ../../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs
  46493. var import_aria_query = __toESM(require_lib2(), 1), import_picocolors2 = __toESM(require_picocolors_browser(), 1), import_css3 = __toESM(require_css_escape(), 1), GenericTypeError = class extends Error {
  46494. constructor(expectedString, received, matcherFn, context) {
  46495. super(), Error.captureStackTrace && Error.captureStackTrace(this, matcherFn);
  46496. let withType = "";
  46497. try {
  46498. withType = context.utils.printWithType(
  46499. "Received",
  46500. received,
  46501. context.utils.printReceived
  46502. );
  46503. } catch {
  46504. }
  46505. this.message = [
  46506. context.utils.matcherHint(
  46507. `${context.isNot ? ".not" : ""}.${matcherFn.name}`,
  46508. "received",
  46509. ""
  46510. ),
  46511. "",
  46512. // eslint-disable-next-line new-cap
  46513. `${context.utils.RECEIVED_COLOR(
  46514. "received"
  46515. )} value must ${expectedString}.`,
  46516. withType
  46517. ].join(`
  46518. `);
  46519. }
  46520. }, HtmlElementTypeError = class extends GenericTypeError {
  46521. constructor(...args) {
  46522. super("be an HTMLElement or an SVGElement", ...args);
  46523. }
  46524. }, NodeTypeError = class extends GenericTypeError {
  46525. constructor(...args) {
  46526. super("be a Node", ...args);
  46527. }
  46528. };
  46529. function checkHasWindow(htmlElement, ErrorClass, ...args) {
  46530. if (!htmlElement || !htmlElement.ownerDocument || !htmlElement.ownerDocument.defaultView)
  46531. throw new ErrorClass(htmlElement, ...args);
  46532. }
  46533. function checkNode(node2, ...args) {
  46534. checkHasWindow(node2, NodeTypeError, ...args);
  46535. let window2 = node2.ownerDocument.defaultView;
  46536. if (!(node2 instanceof window2.Node))
  46537. throw new NodeTypeError(node2, ...args);
  46538. }
  46539. function checkHtmlElement(htmlElement, ...args) {
  46540. checkHasWindow(htmlElement, HtmlElementTypeError, ...args);
  46541. let window2 = htmlElement.ownerDocument.defaultView;
  46542. if (!(htmlElement instanceof window2.HTMLElement) && !(htmlElement instanceof window2.SVGElement))
  46543. throw new HtmlElementTypeError(htmlElement, ...args);
  46544. }
  46545. var InvalidCSSError = class extends Error {
  46546. constructor(received, matcherFn, context) {
  46547. super(), Error.captureStackTrace && Error.captureStackTrace(this, matcherFn), this.message = [
  46548. received.message,
  46549. "",
  46550. // eslint-disable-next-line new-cap
  46551. context.utils.RECEIVED_COLOR("Failing css:"),
  46552. // eslint-disable-next-line new-cap
  46553. context.utils.RECEIVED_COLOR(`${received.css}`)
  46554. ].join(`
  46555. `);
  46556. }
  46557. };
  46558. function parseCSS(css3, ...args) {
  46559. let ast = $149c1bd638913645$export$98e6a39c04603d36(`selector { ${css3} }`, { silent: !0 }).stylesheet;
  46560. if (ast.parsingErrors && ast.parsingErrors.length > 0) {
  46561. let { reason, line: line2 } = ast.parsingErrors[0];
  46562. throw new InvalidCSSError(
  46563. {
  46564. css: css3,
  46565. message: `Syntax error parsing expected css: ${reason} on line: ${line2}`
  46566. },
  46567. ...args
  46568. );
  46569. }
  46570. return ast.rules[0].declarations.filter((d) => d.type === "declaration").reduce(
  46571. (obj, { property, value }) => Object.assign(obj, { [property]: value }),
  46572. {}
  46573. );
  46574. }
  46575. function display(context, value) {
  46576. return typeof value == "string" ? value : context.utils.stringify(value);
  46577. }
  46578. function getMessage3(context, matcher, expectedLabel, expectedValue, receivedLabel, receivedValue) {
  46579. return [
  46580. `${matcher}
  46581. `,
  46582. // eslint-disable-next-line new-cap
  46583. `${expectedLabel}:
  46584. ${context.utils.EXPECTED_COLOR(
  46585. (0, import_redent.default)(display(context, expectedValue), 2)
  46586. )}`,
  46587. // eslint-disable-next-line new-cap
  46588. `${receivedLabel}:
  46589. ${context.utils.RECEIVED_COLOR(
  46590. (0, import_redent.default)(display(context, receivedValue), 2)
  46591. )}`
  46592. ].join(`
  46593. `);
  46594. }
  46595. function matches2(textToMatch, matcher) {
  46596. return matcher instanceof RegExp ? matcher.test(textToMatch) : textToMatch.includes(String(matcher));
  46597. }
  46598. function deprecate2(name, replacementText) {
  46599. console.warn(
  46600. `Warning: ${name} has been deprecated and will be removed in future updates.`,
  46601. replacementText
  46602. );
  46603. }
  46604. function normalize(text) {
  46605. return text.replace(/\s+/g, " ").trim();
  46606. }
  46607. function getTag2(element) {
  46608. return element.tagName && element.tagName.toLowerCase();
  46609. }
  46610. function getSelectValue({ multiple, options }) {
  46611. let selectedOptions = [...options].filter((option) => option.selected);
  46612. if (multiple)
  46613. return [...selectedOptions].map((opt) => opt.value);
  46614. if (selectedOptions.length !== 0)
  46615. return selectedOptions[0].value;
  46616. }
  46617. function getInputValue(inputElement) {
  46618. switch (inputElement.type) {
  46619. case "number":
  46620. return inputElement.value === "" ? null : Number(inputElement.value);
  46621. case "checkbox":
  46622. return inputElement.checked;
  46623. default:
  46624. return inputElement.value;
  46625. }
  46626. }
  46627. var rolesSupportingValues = ["meter", "progressbar", "slider", "spinbutton"];
  46628. function getAccessibleValue(element) {
  46629. if (rolesSupportingValues.includes(element.getAttribute("role")))
  46630. return Number(element.getAttribute("aria-valuenow"));
  46631. }
  46632. function getSingleElementValue(element) {
  46633. if (element)
  46634. switch (element.tagName.toLowerCase()) {
  46635. case "input":
  46636. return getInputValue(element);
  46637. case "select":
  46638. return getSelectValue(element);
  46639. default:
  46640. return element.value ?? getAccessibleValue(element);
  46641. }
  46642. }
  46643. function toSentence(array, { wordConnector = ", ", lastWordConnector = " and " } = {}) {
  46644. return [array.slice(0, -1).join(wordConnector), array[array.length - 1]].join(
  46645. array.length > 1 ? lastWordConnector : ""
  46646. );
  46647. }
  46648. function compareAsSet(val1, val2) {
  46649. return Array.isArray(val1) && Array.isArray(val2) ? [...new Set(val1)].every((v) => new Set(val2).has(v)) : val1 === val2;
  46650. }
  46651. function toBeInTheDOM(element, container) {
  46652. return deprecate2(
  46653. "toBeInTheDOM",
  46654. "Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."
  46655. ), element && checkHtmlElement(element, toBeInTheDOM, this), container && checkHtmlElement(container, toBeInTheDOM, this), {
  46656. pass: container ? container.contains(element) : !!element,
  46657. message: () => [
  46658. this.utils.matcherHint(
  46659. `${this.isNot ? ".not" : ""}.toBeInTheDOM`,
  46660. "element",
  46661. ""
  46662. ),
  46663. "",
  46664. "Received:",
  46665. ` ${this.utils.printReceived(
  46666. element && element.cloneNode(!1)
  46667. )}`
  46668. ].join(`
  46669. `)
  46670. };
  46671. }
  46672. function toBeInTheDocument(element) {
  46673. (element !== null || !this.isNot) && checkHtmlElement(element, toBeInTheDocument, this);
  46674. let pass = element === null ? !1 : element.ownerDocument === element.getRootNode({ composed: !0 }), errorFound = () => `expected document not to contain element, found ${this.utils.stringify(
  46675. element.cloneNode(!0)
  46676. )} instead`, errorNotFound = () => "element could not be found in the document";
  46677. return {
  46678. pass,
  46679. message: () => [
  46680. this.utils.matcherHint(
  46681. `${this.isNot ? ".not" : ""}.toBeInTheDocument`,
  46682. "element",
  46683. ""
  46684. ),
  46685. "",
  46686. // eslint-disable-next-line new-cap
  46687. this.utils.RECEIVED_COLOR(this.isNot ? errorFound() : errorNotFound())
  46688. ].join(`
  46689. `)
  46690. };
  46691. }
  46692. function toBeEmpty(element) {
  46693. return deprecate2(
  46694. "toBeEmpty",
  46695. "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."
  46696. ), checkHtmlElement(element, toBeEmpty, this), {
  46697. pass: element.innerHTML === "",
  46698. message: () => [
  46699. this.utils.matcherHint(
  46700. `${this.isNot ? ".not" : ""}.toBeEmpty`,
  46701. "element",
  46702. ""
  46703. ),
  46704. "",
  46705. "Received:",
  46706. ` ${this.utils.printReceived(element.innerHTML)}`
  46707. ].join(`
  46708. `)
  46709. };
  46710. }
  46711. function toBeEmptyDOMElement(element) {
  46712. return checkHtmlElement(element, toBeEmptyDOMElement, this), {
  46713. pass: isEmptyElement(element),
  46714. message: () => [
  46715. this.utils.matcherHint(
  46716. `${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`,
  46717. "element",
  46718. ""
  46719. ),
  46720. "",
  46721. "Received:",
  46722. ` ${this.utils.printReceived(element.innerHTML)}`
  46723. ].join(`
  46724. `)
  46725. };
  46726. }
  46727. function isEmptyElement(element) {
  46728. return [...element.childNodes].filter((node2) => node2.nodeType !== 8).length === 0;
  46729. }
  46730. function toContainElement(container, element) {
  46731. return checkHtmlElement(container, toContainElement, this), element !== null && checkHtmlElement(element, toContainElement, this), {
  46732. pass: container.contains(element),
  46733. message: () => [
  46734. this.utils.matcherHint(
  46735. `${this.isNot ? ".not" : ""}.toContainElement`,
  46736. "element",
  46737. "element"
  46738. ),
  46739. "",
  46740. // eslint-disable-next-line new-cap
  46741. this.utils.RECEIVED_COLOR(`${this.utils.stringify(
  46742. container.cloneNode(!1)
  46743. )} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(element && element.cloneNode(!1))}
  46744. `)
  46745. ].join(`
  46746. `)
  46747. };
  46748. }
  46749. function getNormalizedHtml(container, htmlText) {
  46750. let div = container.ownerDocument.createElement("div");
  46751. return div.innerHTML = htmlText, div.innerHTML;
  46752. }
  46753. function toContainHTML(container, htmlText) {
  46754. if (checkHtmlElement(container, toContainHTML, this), typeof htmlText != "string")
  46755. throw new Error(`.toContainHTML() expects a string value, got ${htmlText}`);
  46756. return {
  46757. pass: container.outerHTML.includes(getNormalizedHtml(container, htmlText)),
  46758. message: () => [
  46759. this.utils.matcherHint(
  46760. `${this.isNot ? ".not" : ""}.toContainHTML`,
  46761. "element",
  46762. ""
  46763. ),
  46764. "Expected:",
  46765. // eslint-disable-next-line new-cap
  46766. ` ${this.utils.EXPECTED_COLOR(htmlText)}`,
  46767. "Received:",
  46768. ` ${this.utils.printReceived(container.cloneNode(!0))}`
  46769. ].join(`
  46770. `)
  46771. };
  46772. }
  46773. function toHaveTextContent(node2, checkWith, options = { normalizeWhitespace: !0 }) {
  46774. checkNode(node2, toHaveTextContent, this);
  46775. let textContent = options.normalizeWhitespace ? normalize(node2.textContent) : node2.textContent.replace(/\u00a0/g, " "), checkingWithEmptyString = textContent !== "" && checkWith === "";
  46776. return {
  46777. pass: !checkingWithEmptyString && matches2(textContent, checkWith),
  46778. message: () => {
  46779. let to = this.isNot ? "not to" : "to";
  46780. return getMessage3(
  46781. this,
  46782. this.utils.matcherHint(
  46783. `${this.isNot ? ".not" : ""}.toHaveTextContent`,
  46784. "element",
  46785. ""
  46786. ),
  46787. checkingWithEmptyString ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${to} have text content`,
  46788. checkWith,
  46789. "Received",
  46790. textContent
  46791. );
  46792. }
  46793. };
  46794. }
  46795. function toHaveAccessibleDescription(htmlElement, expectedAccessibleDescription) {
  46796. checkHtmlElement(htmlElement, toHaveAccessibleDescription, this);
  46797. let actualAccessibleDescription = computeAccessibleDescription(htmlElement), missingExpectedValue = arguments.length === 1, pass = !1;
  46798. return missingExpectedValue ? pass = actualAccessibleDescription !== "" : pass = expectedAccessibleDescription instanceof RegExp ? expectedAccessibleDescription.test(actualAccessibleDescription) : this.equals(
  46799. actualAccessibleDescription,
  46800. expectedAccessibleDescription
  46801. ), {
  46802. pass,
  46803. message: () => {
  46804. let to = this.isNot ? "not to" : "to";
  46805. return getMessage3(
  46806. this,
  46807. this.utils.matcherHint(
  46808. `${this.isNot ? ".not" : ""}.${toHaveAccessibleDescription.name}`,
  46809. "element",
  46810. ""
  46811. ),
  46812. `Expected element ${to} have accessible description`,
  46813. expectedAccessibleDescription,
  46814. "Received",
  46815. actualAccessibleDescription
  46816. );
  46817. }
  46818. };
  46819. }
  46820. var ariaInvalidName = "aria-invalid", validStates = ["false"];
  46821. function toHaveAccessibleErrorMessage(htmlElement, expectedAccessibleErrorMessage) {
  46822. checkHtmlElement(htmlElement, toHaveAccessibleErrorMessage, this);
  46823. let to = this.isNot ? "not to" : "to", method = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", errormessageId = htmlElement.getAttribute("aria-errormessage");
  46824. if (!!errormessageId && /\s+/.test(errormessageId))
  46825. return {
  46826. pass: !1,
  46827. message: () => getMessage3(
  46828. this,
  46829. this.utils.matcherHint(method, "element"),
  46830. "Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",
  46831. "",
  46832. "Received",
  46833. `aria-errormessage="${errormessageId}"`
  46834. )
  46835. };
  46836. let ariaInvalidVal = htmlElement.getAttribute(ariaInvalidName);
  46837. if (!htmlElement.hasAttribute(ariaInvalidName) || validStates.includes(ariaInvalidVal))
  46838. return {
  46839. pass: !1,
  46840. message: () => getMessage3(
  46841. this,
  46842. this.utils.matcherHint(method, "element"),
  46843. "Expected element to be marked as invalid with attribute",
  46844. `${ariaInvalidName}="${String(!0)}"`,
  46845. "Received",
  46846. htmlElement.hasAttribute("aria-invalid") ? `${ariaInvalidName}="${htmlElement.getAttribute(ariaInvalidName)}` : null
  46847. )
  46848. };
  46849. let error = normalize(
  46850. htmlElement.ownerDocument.getElementById(errormessageId)?.textContent ?? ""
  46851. );
  46852. return {
  46853. pass: expectedAccessibleErrorMessage === void 0 ? !!error : expectedAccessibleErrorMessage instanceof RegExp ? expectedAccessibleErrorMessage.test(error) : this.equals(error, expectedAccessibleErrorMessage),
  46854. message: () => getMessage3(
  46855. this,
  46856. this.utils.matcherHint(method, "element"),
  46857. `Expected element ${to} have accessible error message`,
  46858. expectedAccessibleErrorMessage ?? "",
  46859. "Received",
  46860. error
  46861. )
  46862. };
  46863. }
  46864. var elementRoleList = buildElementRoleList(import_aria_query.elementRoles);
  46865. function toHaveRole(htmlElement, expectedRole) {
  46866. checkHtmlElement(htmlElement, toHaveRole, this);
  46867. let actualRoles = getExplicitOrImplicitRoles(htmlElement);
  46868. return {
  46869. pass: actualRoles.some((el) => el === expectedRole),
  46870. message: () => {
  46871. let to = this.isNot ? "not to" : "to";
  46872. return getMessage3(
  46873. this,
  46874. this.utils.matcherHint(
  46875. `${this.isNot ? ".not" : ""}.${toHaveRole.name}`,
  46876. "element",
  46877. ""
  46878. ),
  46879. `Expected element ${to} have role`,
  46880. expectedRole,
  46881. "Received",
  46882. actualRoles.join(", ")
  46883. );
  46884. }
  46885. };
  46886. }
  46887. function getExplicitOrImplicitRoles(htmlElement) {
  46888. return htmlElement.hasAttribute("role") ? htmlElement.getAttribute("role").split(" ").filter(Boolean) : getImplicitAriaRoles(htmlElement);
  46889. }
  46890. function getImplicitAriaRoles(currentNode) {
  46891. for (let { match: match3, roles: roles3 } of elementRoleList)
  46892. if (match3(currentNode))
  46893. return [...roles3];
  46894. return [];
  46895. }
  46896. function buildElementRoleList(elementRolesMap) {
  46897. function makeElementSelector({ name, attributes }) {
  46898. return `${name}${attributes.map(({ name: attributeName, value, constraints = [] }) => constraints.indexOf("undefined") !== -1 ? `:not([${attributeName}])` : value ? `[${attributeName}="${value}"]` : `[${attributeName}]`).join("")}`;
  46899. }
  46900. function getSelectorSpecificity({ attributes = [] }) {
  46901. return attributes.length;
  46902. }
  46903. function bySelectorSpecificity({ specificity: leftSpecificity }, { specificity: rightSpecificity }) {
  46904. return rightSpecificity - leftSpecificity;
  46905. }
  46906. function match3(element) {
  46907. let { attributes = [] } = element, typeTextIndex = attributes.findIndex(
  46908. (attribute) => attribute.value && attribute.name === "type" && attribute.value === "text"
  46909. );
  46910. typeTextIndex >= 0 && (attributes = [
  46911. ...attributes.slice(0, typeTextIndex),
  46912. ...attributes.slice(typeTextIndex + 1)
  46913. ]);
  46914. let selector = makeElementSelector({ ...element, attributes });
  46915. return (node2) => typeTextIndex >= 0 && node2.type !== "text" ? !1 : node2.matches(selector);
  46916. }
  46917. let result = [];
  46918. for (let [element, roles3] of elementRolesMap.entries())
  46919. result = [
  46920. ...result,
  46921. {
  46922. match: match3(element),
  46923. roles: Array.from(roles3),
  46924. specificity: getSelectorSpecificity(element)
  46925. }
  46926. ];
  46927. return result.sort(bySelectorSpecificity);
  46928. }
  46929. function toHaveAccessibleName(htmlElement, expectedAccessibleName) {
  46930. checkHtmlElement(htmlElement, toHaveAccessibleName, this);
  46931. let actualAccessibleName = computeAccessibleName(htmlElement), missingExpectedValue = arguments.length === 1, pass = !1;
  46932. return missingExpectedValue ? pass = actualAccessibleName !== "" : pass = expectedAccessibleName instanceof RegExp ? expectedAccessibleName.test(actualAccessibleName) : this.equals(actualAccessibleName, expectedAccessibleName), {
  46933. pass,
  46934. message: () => {
  46935. let to = this.isNot ? "not to" : "to";
  46936. return getMessage3(
  46937. this,
  46938. this.utils.matcherHint(
  46939. `${this.isNot ? ".not" : ""}.${toHaveAccessibleName.name}`,
  46940. "element",
  46941. ""
  46942. ),
  46943. `Expected element ${to} have accessible name`,
  46944. expectedAccessibleName,
  46945. "Received",
  46946. actualAccessibleName
  46947. );
  46948. }
  46949. };
  46950. }
  46951. function printAttribute(stringify8, name, value) {
  46952. return value === void 0 ? name : `${name}=${stringify8(value)}`;
  46953. }
  46954. function getAttributeComment(stringify8, name, value) {
  46955. return value === void 0 ? `element.hasAttribute(${stringify8(name)})` : `element.getAttribute(${stringify8(name)}) === ${stringify8(value)}`;
  46956. }
  46957. function toHaveAttribute(htmlElement, name, expectedValue) {
  46958. checkHtmlElement(htmlElement, toHaveAttribute, this);
  46959. let isExpectedValuePresent = expectedValue !== void 0, hasAttribute = htmlElement.hasAttribute(name), receivedValue = htmlElement.getAttribute(name);
  46960. return {
  46961. pass: isExpectedValuePresent ? hasAttribute && this.equals(receivedValue, expectedValue) : hasAttribute,
  46962. message: () => {
  46963. let to = this.isNot ? "not to" : "to", receivedAttribute = hasAttribute ? printAttribute(this.utils.stringify, name, receivedValue) : null, matcher = this.utils.matcherHint(
  46964. `${this.isNot ? ".not" : ""}.toHaveAttribute`,
  46965. "element",
  46966. this.utils.printExpected(name),
  46967. {
  46968. secondArgument: isExpectedValuePresent ? this.utils.printExpected(expectedValue) : void 0,
  46969. comment: getAttributeComment(
  46970. this.utils.stringify,
  46971. name,
  46972. expectedValue
  46973. )
  46974. }
  46975. );
  46976. return getMessage3(
  46977. this,
  46978. matcher,
  46979. `Expected the element ${to} have attribute`,
  46980. printAttribute(this.utils.stringify, name, expectedValue),
  46981. "Received",
  46982. receivedAttribute
  46983. );
  46984. }
  46985. };
  46986. }
  46987. function getExpectedClassNamesAndOptions(params) {
  46988. let lastParam = params.pop(), expectedClassNames, options;
  46989. return typeof lastParam == "object" && !(lastParam instanceof RegExp) ? (expectedClassNames = params, options = lastParam) : (expectedClassNames = params.concat(lastParam), options = { exact: !1 }), { expectedClassNames, options };
  46990. }
  46991. function splitClassNames(str2) {
  46992. return str2 ? str2.split(/\s+/).filter((s3) => s3.length > 0) : [];
  46993. }
  46994. function isSubset$1(subset, superset) {
  46995. return subset.every(
  46996. (strOrRegexp) => typeof strOrRegexp == "string" ? superset.includes(strOrRegexp) : superset.some((className) => strOrRegexp.test(className))
  46997. );
  46998. }
  46999. function toHaveClass(htmlElement, ...params) {
  47000. checkHtmlElement(htmlElement, toHaveClass, this);
  47001. let { expectedClassNames, options } = getExpectedClassNamesAndOptions(params), received = splitClassNames(htmlElement.getAttribute("class")), expected = expectedClassNames.reduce(
  47002. (acc, className) => acc.concat(
  47003. typeof className == "string" || !className ? splitClassNames(className) : className
  47004. ),
  47005. []
  47006. ), hasRegExp = expected.some((className) => className instanceof RegExp);
  47007. if (options.exact && hasRegExp)
  47008. throw new Error("Exact option does not support RegExp expected class names");
  47009. return options.exact ? {
  47010. pass: isSubset$1(expected, received) && expected.length === received.length,
  47011. message: () => {
  47012. let to = this.isNot ? "not to" : "to";
  47013. return getMessage3(
  47014. this,
  47015. this.utils.matcherHint(
  47016. `${this.isNot ? ".not" : ""}.toHaveClass`,
  47017. "element",
  47018. this.utils.printExpected(expected.join(" "))
  47019. ),
  47020. `Expected the element ${to} have EXACTLY defined classes`,
  47021. expected.join(" "),
  47022. "Received",
  47023. received.join(" ")
  47024. );
  47025. }
  47026. } : expected.length > 0 ? {
  47027. pass: isSubset$1(expected, received),
  47028. message: () => {
  47029. let to = this.isNot ? "not to" : "to";
  47030. return getMessage3(
  47031. this,
  47032. this.utils.matcherHint(
  47033. `${this.isNot ? ".not" : ""}.toHaveClass`,
  47034. "element",
  47035. this.utils.printExpected(expected.join(" "))
  47036. ),
  47037. `Expected the element ${to} have class`,
  47038. expected.join(" "),
  47039. "Received",
  47040. received.join(" ")
  47041. );
  47042. }
  47043. } : {
  47044. pass: this.isNot ? received.length > 0 : !1,
  47045. message: () => this.isNot ? getMessage3(
  47046. this,
  47047. this.utils.matcherHint(".not.toHaveClass", "element", ""),
  47048. "Expected the element to have classes",
  47049. "(none)",
  47050. "Received",
  47051. received.join(" ")
  47052. ) : [
  47053. this.utils.matcherHint(".toHaveClass", "element"),
  47054. "At least one expected class must be provided."
  47055. ].join(`
  47056. `)
  47057. };
  47058. }
  47059. function getStyleDeclaration(document13, css3) {
  47060. let styles4 = {}, copy5 = document13.createElement("div");
  47061. return Object.keys(css3).forEach((property) => {
  47062. copy5.style[property] = css3[property], styles4[property] = copy5.style[property];
  47063. }), styles4;
  47064. }
  47065. function isSubset(styles4, computedStyle) {
  47066. return !!Object.keys(styles4).length && Object.entries(styles4).every(([prop, value]) => {
  47067. let isCustomProperty3 = prop.startsWith("--"), spellingVariants = [prop];
  47068. return isCustomProperty3 || spellingVariants.push(prop.toLowerCase()), spellingVariants.some(
  47069. (name) => computedStyle[name] === value || computedStyle.getPropertyValue(name) === value
  47070. );
  47071. });
  47072. }
  47073. function printoutStyles(styles4) {
  47074. return Object.keys(styles4).sort().map((prop) => `${prop}: ${styles4[prop]};`).join(`
  47075. `);
  47076. }
  47077. function expectedDiff(diffFn, expected, computedStyles) {
  47078. let received = Array.from(computedStyles).filter((prop) => expected[prop] !== void 0).reduce(
  47079. (obj, prop) => Object.assign(obj, { [prop]: computedStyles.getPropertyValue(prop) }),
  47080. {}
  47081. );
  47082. return diffFn(printoutStyles(expected), printoutStyles(received)).replace(`${import_picocolors2.default.red("+ Received")}
  47083. `, "");
  47084. }
  47085. function toHaveStyle(htmlElement, css3) {
  47086. checkHtmlElement(htmlElement, toHaveStyle, this);
  47087. let parsedCSS = typeof css3 == "object" ? css3 : parseCSS(css3, toHaveStyle, this), { getComputedStyle: getComputedStyle3 } = htmlElement.ownerDocument.defaultView, expected = getStyleDeclaration(htmlElement.ownerDocument, parsedCSS), received = getComputedStyle3(htmlElement);
  47088. return {
  47089. pass: isSubset(expected, received),
  47090. message: () => {
  47091. let matcher = `${this.isNot ? ".not" : ""}.toHaveStyle`;
  47092. return [
  47093. this.utils.matcherHint(matcher, "element", ""),
  47094. expectedDiff(this.utils.diff, expected, received)
  47095. ].join(`
  47096. `);
  47097. }
  47098. };
  47099. }
  47100. function toHaveFocus(element) {
  47101. return checkHtmlElement(element, toHaveFocus, this), {
  47102. pass: element.ownerDocument.activeElement === element,
  47103. message: () => [
  47104. this.utils.matcherHint(
  47105. `${this.isNot ? ".not" : ""}.toHaveFocus`,
  47106. "element",
  47107. ""
  47108. ),
  47109. "",
  47110. ...this.isNot ? [
  47111. "Received element is focused:",
  47112. ` ${this.utils.printReceived(element)}`
  47113. ] : [
  47114. "Expected element with focus:",
  47115. ` ${this.utils.printExpected(element)}`,
  47116. "Received element with focus:",
  47117. ` ${this.utils.printReceived(
  47118. element.ownerDocument.activeElement
  47119. )}`
  47120. ]
  47121. ].join(`
  47122. `)
  47123. };
  47124. }
  47125. function getMultiElementValue(elements) {
  47126. let types = [...new Set(elements.map((element) => element.type))];
  47127. if (types.length !== 1)
  47128. throw new Error(
  47129. "Multiple form elements with the same name must be of the same type"
  47130. );
  47131. switch (types[0]) {
  47132. case "radio": {
  47133. let theChosenOne = elements.find((radio) => radio.checked);
  47134. return theChosenOne ? theChosenOne.value : void 0;
  47135. }
  47136. case "checkbox":
  47137. return elements.filter((checkbox) => checkbox.checked).map((checkbox) => checkbox.value);
  47138. default:
  47139. return elements.map((element) => element.value);
  47140. }
  47141. }
  47142. function getFormValue(container, name) {
  47143. let elements = [...container.querySelectorAll(`[name="${(0, import_css3.default)(name)}"]`)];
  47144. if (elements.length !== 0)
  47145. switch (elements.length) {
  47146. case 1:
  47147. return getSingleElementValue(elements[0]);
  47148. default:
  47149. return getMultiElementValue(elements);
  47150. }
  47151. }
  47152. function getPureName(name) {
  47153. return /\[\]$/.test(name) ? name.slice(0, -2) : name;
  47154. }
  47155. function getAllFormValues(container) {
  47156. return Array.from(container.elements).map((element) => element.name).reduce(
  47157. (obj, name) => ({
  47158. ...obj,
  47159. [getPureName(name)]: getFormValue(container, name)
  47160. }),
  47161. {}
  47162. );
  47163. }
  47164. function toHaveFormValues(formElement, expectedValues) {
  47165. if (checkHtmlElement(formElement, toHaveFormValues, this), !formElement.elements)
  47166. throw new Error("toHaveFormValues must be called on a form or a fieldset");
  47167. let formValues = getAllFormValues(formElement);
  47168. return {
  47169. pass: Object.entries(expectedValues).every(
  47170. ([name, expectedValue]) => compareAsSet(formValues[name], expectedValue)
  47171. ),
  47172. message: () => {
  47173. let to = this.isNot ? "not to" : "to", matcher = `${this.isNot ? ".not" : ""}.toHaveFormValues`, commonKeyValues = Object.keys(formValues).filter((key) => expectedValues.hasOwnProperty(key)).reduce((obj, key) => ({ ...obj, [key]: formValues[key] }), {});
  47174. return [
  47175. this.utils.matcherHint(matcher, "element", ""),
  47176. `Expected the element ${to} have form values`,
  47177. this.utils.diff(expectedValues, commonKeyValues)
  47178. ].join(`
  47179. `);
  47180. }
  47181. };
  47182. }
  47183. function isStyleVisible(element) {
  47184. let { getComputedStyle: getComputedStyle3 } = element.ownerDocument.defaultView, { display: display2, visibility, opacity } = getComputedStyle3(element);
  47185. return display2 !== "none" && visibility !== "hidden" && visibility !== "collapse" && opacity !== "0" && opacity !== 0;
  47186. }
  47187. function isAttributeVisible(element, previousElement) {
  47188. let detailsVisibility;
  47189. return previousElement ? detailsVisibility = element.nodeName === "DETAILS" && previousElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : !0 : detailsVisibility = element.nodeName === "DETAILS" ? element.hasAttribute("open") : !0, !element.hasAttribute("hidden") && detailsVisibility;
  47190. }
  47191. function isElementVisible(element, previousElement) {
  47192. return isStyleVisible(element) && isAttributeVisible(element, previousElement) && (!element.parentElement || isElementVisible(element.parentElement, element));
  47193. }
  47194. function toBeVisible(element) {
  47195. checkHtmlElement(element, toBeVisible, this);
  47196. let isInDocument = element.ownerDocument === element.getRootNode({ composed: !0 }), isVisible2 = isInDocument && isElementVisible(element);
  47197. return {
  47198. pass: isVisible2,
  47199. message: () => {
  47200. let is = isVisible2 ? "is" : "is not";
  47201. return [
  47202. this.utils.matcherHint(
  47203. `${this.isNot ? ".not" : ""}.toBeVisible`,
  47204. "element",
  47205. ""
  47206. ),
  47207. "",
  47208. `Received element ${is} visible${isInDocument ? "" : " (element is not in the document)"}:`,
  47209. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47210. ].join(`
  47211. `);
  47212. }
  47213. };
  47214. }
  47215. var FORM_TAGS$2 = [
  47216. "fieldset",
  47217. "input",
  47218. "select",
  47219. "optgroup",
  47220. "option",
  47221. "button",
  47222. "textarea"
  47223. ];
  47224. function isFirstLegendChildOfFieldset(element, parent) {
  47225. return getTag2(element) === "legend" && getTag2(parent) === "fieldset" && element.isSameNode(
  47226. Array.from(parent.children).find((child) => getTag2(child) === "legend")
  47227. );
  47228. }
  47229. function isElementDisabledByParent(element, parent) {
  47230. return isElementDisabled(parent) && !isFirstLegendChildOfFieldset(element, parent);
  47231. }
  47232. function isCustomElement(tag) {
  47233. return tag.includes("-");
  47234. }
  47235. function canElementBeDisabled(element) {
  47236. let tag = getTag2(element);
  47237. return FORM_TAGS$2.includes(tag) || isCustomElement(tag);
  47238. }
  47239. function isElementDisabled(element) {
  47240. return canElementBeDisabled(element) && element.hasAttribute("disabled");
  47241. }
  47242. function isAncestorDisabled(element) {
  47243. let parent = element.parentElement;
  47244. return !!parent && (isElementDisabledByParent(element, parent) || isAncestorDisabled(parent));
  47245. }
  47246. function isElementOrAncestorDisabled(element) {
  47247. return canElementBeDisabled(element) && (isElementDisabled(element) || isAncestorDisabled(element));
  47248. }
  47249. function toBeDisabled(element) {
  47250. checkHtmlElement(element, toBeDisabled, this);
  47251. let isDisabled3 = isElementOrAncestorDisabled(element);
  47252. return {
  47253. pass: isDisabled3,
  47254. message: () => {
  47255. let is = isDisabled3 ? "is" : "is not";
  47256. return [
  47257. this.utils.matcherHint(
  47258. `${this.isNot ? ".not" : ""}.toBeDisabled`,
  47259. "element",
  47260. ""
  47261. ),
  47262. "",
  47263. `Received element ${is} disabled:`,
  47264. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47265. ].join(`
  47266. `);
  47267. }
  47268. };
  47269. }
  47270. function toBeEnabled(element) {
  47271. checkHtmlElement(element, toBeEnabled, this);
  47272. let isEnabled = !isElementOrAncestorDisabled(element);
  47273. return {
  47274. pass: isEnabled,
  47275. message: () => {
  47276. let is = isEnabled ? "is" : "is not";
  47277. return [
  47278. this.utils.matcherHint(
  47279. `${this.isNot ? ".not" : ""}.toBeEnabled`,
  47280. "element",
  47281. ""
  47282. ),
  47283. "",
  47284. `Received element ${is} enabled:`,
  47285. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47286. ].join(`
  47287. `);
  47288. }
  47289. };
  47290. }
  47291. var FORM_TAGS$1 = ["select", "textarea"], ARIA_FORM_TAGS = ["input", "select", "textarea"], UNSUPPORTED_INPUT_TYPES = [
  47292. "color",
  47293. "hidden",
  47294. "range",
  47295. "submit",
  47296. "image",
  47297. "reset"
  47298. ], SUPPORTED_ARIA_ROLES = [
  47299. "checkbox",
  47300. "combobox",
  47301. "gridcell",
  47302. "listbox",
  47303. "radiogroup",
  47304. "spinbutton",
  47305. "textbox",
  47306. "tree"
  47307. ];
  47308. function isRequiredOnFormTagsExceptInput(element) {
  47309. return FORM_TAGS$1.includes(getTag2(element)) && element.hasAttribute("required");
  47310. }
  47311. function isRequiredOnSupportedInput(element) {
  47312. return getTag2(element) === "input" && element.hasAttribute("required") && (element.hasAttribute("type") && !UNSUPPORTED_INPUT_TYPES.includes(element.getAttribute("type")) || !element.hasAttribute("type"));
  47313. }
  47314. function isElementRequiredByARIA(element) {
  47315. return element.hasAttribute("aria-required") && element.getAttribute("aria-required") === "true" && (ARIA_FORM_TAGS.includes(getTag2(element)) || element.hasAttribute("role") && SUPPORTED_ARIA_ROLES.includes(element.getAttribute("role")));
  47316. }
  47317. function toBeRequired(element) {
  47318. checkHtmlElement(element, toBeRequired, this);
  47319. let isRequired = isRequiredOnFormTagsExceptInput(element) || isRequiredOnSupportedInput(element) || isElementRequiredByARIA(element);
  47320. return {
  47321. pass: isRequired,
  47322. message: () => {
  47323. let is = isRequired ? "is" : "is not";
  47324. return [
  47325. this.utils.matcherHint(
  47326. `${this.isNot ? ".not" : ""}.toBeRequired`,
  47327. "element",
  47328. ""
  47329. ),
  47330. "",
  47331. `Received element ${is} required:`,
  47332. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47333. ].join(`
  47334. `);
  47335. }
  47336. };
  47337. }
  47338. var FORM_TAGS = ["form", "input", "select", "textarea"];
  47339. function isElementHavingAriaInvalid(element) {
  47340. return element.hasAttribute("aria-invalid") && element.getAttribute("aria-invalid") !== "false";
  47341. }
  47342. function isSupportsValidityMethod(element) {
  47343. return FORM_TAGS.includes(getTag2(element));
  47344. }
  47345. function isElementInvalid(element) {
  47346. let isHaveAriaInvalid = isElementHavingAriaInvalid(element);
  47347. return isSupportsValidityMethod(element) ? isHaveAriaInvalid || !element.checkValidity() : isHaveAriaInvalid;
  47348. }
  47349. function toBeInvalid(element) {
  47350. checkHtmlElement(element, toBeInvalid, this);
  47351. let isInvalid = isElementInvalid(element);
  47352. return {
  47353. pass: isInvalid,
  47354. message: () => {
  47355. let is = isInvalid ? "is" : "is not";
  47356. return [
  47357. this.utils.matcherHint(
  47358. `${this.isNot ? ".not" : ""}.toBeInvalid`,
  47359. "element",
  47360. ""
  47361. ),
  47362. "",
  47363. `Received element ${is} currently invalid:`,
  47364. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47365. ].join(`
  47366. `);
  47367. }
  47368. };
  47369. }
  47370. function toBeValid(element) {
  47371. checkHtmlElement(element, toBeValid, this);
  47372. let isValid = !isElementInvalid(element);
  47373. return {
  47374. pass: isValid,
  47375. message: () => {
  47376. let is = isValid ? "is" : "is not";
  47377. return [
  47378. this.utils.matcherHint(
  47379. `${this.isNot ? ".not" : ""}.toBeValid`,
  47380. "element",
  47381. ""
  47382. ),
  47383. "",
  47384. `Received element ${is} currently valid:`,
  47385. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47386. ].join(`
  47387. `);
  47388. }
  47389. };
  47390. }
  47391. function toHaveValue(htmlElement, expectedValue) {
  47392. if (checkHtmlElement(htmlElement, toHaveValue, this), htmlElement.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(htmlElement.type))
  47393. throw new Error(
  47394. "input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead"
  47395. );
  47396. let receivedValue = getSingleElementValue(htmlElement), expectsValue = expectedValue !== void 0, expectedTypedValue = expectedValue, receivedTypedValue = receivedValue;
  47397. return expectedValue == receivedValue && expectedValue !== receivedValue && (expectedTypedValue = `${expectedValue} (${typeof expectedValue})`, receivedTypedValue = `${receivedValue} (${typeof receivedValue})`), {
  47398. pass: expectsValue ? compareAsSet(receivedValue, expectedValue) : !!receivedValue,
  47399. message: () => {
  47400. let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint(
  47401. `${this.isNot ? ".not" : ""}.toHaveValue`,
  47402. "element",
  47403. expectedValue
  47404. );
  47405. return getMessage3(
  47406. this,
  47407. matcher,
  47408. `Expected the element ${to} have value`,
  47409. expectsValue ? expectedTypedValue : "(any)",
  47410. "Received",
  47411. receivedTypedValue
  47412. );
  47413. }
  47414. };
  47415. }
  47416. function toHaveDisplayValue(htmlElement, expectedValue) {
  47417. checkHtmlElement(htmlElement, toHaveDisplayValue, this);
  47418. let tagName = htmlElement.tagName.toLowerCase();
  47419. if (!["select", "input", "textarea"].includes(tagName))
  47420. throw new Error(
  47421. ".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead."
  47422. );
  47423. if (tagName === "input" && ["radio", "checkbox"].includes(htmlElement.type))
  47424. throw new Error(
  47425. `.toHaveDisplayValue() currently does not support input[type="${htmlElement.type}"], try with another matcher instead.`
  47426. );
  47427. let values = getValues(tagName, htmlElement), expectedValues = getExpectedValues(expectedValue), numberOfMatchesWithValues = expectedValues.filter(
  47428. (expected) => values.some(
  47429. (value) => expected instanceof RegExp ? expected.test(value) : this.equals(value, String(expected))
  47430. )
  47431. ).length, matchedWithAllValues = numberOfMatchesWithValues === values.length, matchedWithAllExpectedValues = numberOfMatchesWithValues === expectedValues.length;
  47432. return {
  47433. pass: matchedWithAllValues && matchedWithAllExpectedValues,
  47434. message: () => getMessage3(
  47435. this,
  47436. this.utils.matcherHint(
  47437. `${this.isNot ? ".not" : ""}.toHaveDisplayValue`,
  47438. "element",
  47439. ""
  47440. ),
  47441. `Expected element ${this.isNot ? "not " : ""}to have display value`,
  47442. expectedValue,
  47443. "Received",
  47444. values
  47445. )
  47446. };
  47447. }
  47448. function getValues(tagName, htmlElement) {
  47449. return tagName === "select" ? Array.from(htmlElement).filter((option) => option.selected).map((option) => option.textContent) : [htmlElement.value];
  47450. }
  47451. function getExpectedValues(expectedValue) {
  47452. return expectedValue instanceof Array ? expectedValue : [expectedValue];
  47453. }
  47454. function toBeChecked(element) {
  47455. checkHtmlElement(element, toBeChecked, this);
  47456. let isValidInput = () => element.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(element.type), isValidAriaElement = () => roleSupportsChecked(element.getAttribute("role")) && ["true", "false"].includes(element.getAttribute("aria-checked"));
  47457. if (!isValidInput() && !isValidAriaElement())
  47458. return {
  47459. pass: !1,
  47460. message: () => `only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`
  47461. };
  47462. let isChecked = () => isValidInput() ? element.checked : element.getAttribute("aria-checked") === "true";
  47463. return {
  47464. pass: isChecked(),
  47465. message: () => {
  47466. let is = isChecked() ? "is" : "is not";
  47467. return [
  47468. this.utils.matcherHint(
  47469. `${this.isNot ? ".not" : ""}.toBeChecked`,
  47470. "element",
  47471. ""
  47472. ),
  47473. "",
  47474. `Received element ${is} checked:`,
  47475. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47476. ].join(`
  47477. `);
  47478. }
  47479. };
  47480. }
  47481. function supportedRolesSentence() {
  47482. return toSentence(
  47483. supportedRoles().map((role) => `role="${role}"`),
  47484. { lastWordConnector: " or " }
  47485. );
  47486. }
  47487. function supportedRoles() {
  47488. return import_aria_query.roles.keys().filter(roleSupportsChecked);
  47489. }
  47490. function roleSupportsChecked(role) {
  47491. return import_aria_query.roles.get(role)?.props["aria-checked"] !== void 0;
  47492. }
  47493. function toBePartiallyChecked(element) {
  47494. checkHtmlElement(element, toBePartiallyChecked, this);
  47495. let isValidInput = () => element.tagName.toLowerCase() === "input" && element.type === "checkbox", isValidAriaElement = () => element.getAttribute("role") === "checkbox";
  47496. if (!isValidInput() && !isValidAriaElement())
  47497. return {
  47498. pass: !1,
  47499. message: () => 'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'
  47500. };
  47501. let isPartiallyChecked = () => {
  47502. let isAriaMixed = element.getAttribute("aria-checked") === "mixed";
  47503. return isValidInput() && element.indeterminate || isAriaMixed;
  47504. };
  47505. return {
  47506. pass: isPartiallyChecked(),
  47507. message: () => {
  47508. let is = isPartiallyChecked() ? "is" : "is not";
  47509. return [
  47510. this.utils.matcherHint(
  47511. `${this.isNot ? ".not" : ""}.toBePartiallyChecked`,
  47512. "element",
  47513. ""
  47514. ),
  47515. "",
  47516. `Received element ${is} partially checked:`,
  47517. ` ${this.utils.printReceived(element.cloneNode(!1))}`
  47518. ].join(`
  47519. `);
  47520. }
  47521. };
  47522. }
  47523. function toHaveDescription(htmlElement, checkWith) {
  47524. deprecate2(
  47525. "toHaveDescription",
  47526. "Please use toHaveAccessibleDescription."
  47527. ), checkHtmlElement(htmlElement, toHaveDescription, this);
  47528. let expectsDescription = checkWith !== void 0, descriptionIDs = (htmlElement.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), description = "";
  47529. if (descriptionIDs.length > 0) {
  47530. let document13 = htmlElement.ownerDocument, descriptionEls = descriptionIDs.map((descriptionID) => document13.getElementById(descriptionID)).filter(Boolean);
  47531. description = normalize(descriptionEls.map((el) => el.textContent).join(" "));
  47532. }
  47533. return {
  47534. pass: expectsDescription ? checkWith instanceof RegExp ? checkWith.test(description) : this.equals(description, checkWith) : !!description,
  47535. message: () => {
  47536. let to = this.isNot ? "not to" : "to";
  47537. return getMessage3(
  47538. this,
  47539. this.utils.matcherHint(
  47540. `${this.isNot ? ".not" : ""}.toHaveDescription`,
  47541. "element",
  47542. ""
  47543. ),
  47544. `Expected the element ${to} have description`,
  47545. this.utils.printExpected(checkWith),
  47546. "Received",
  47547. this.utils.printReceived(description)
  47548. );
  47549. }
  47550. };
  47551. }
  47552. function toHaveErrorMessage(htmlElement, checkWith) {
  47553. if (deprecate2("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), checkHtmlElement(htmlElement, toHaveErrorMessage, this), !htmlElement.hasAttribute("aria-invalid") || htmlElement.getAttribute("aria-invalid") === "false") {
  47554. let not = this.isNot ? ".not" : "";
  47555. return {
  47556. pass: !1,
  47557. message: () => getMessage3(
  47558. this,
  47559. this.utils.matcherHint(`${not}.toHaveErrorMessage`, "element", ""),
  47560. "Expected the element to have invalid state indicated by",
  47561. 'aria-invalid="true"',
  47562. "Received",
  47563. htmlElement.hasAttribute("aria-invalid") ? `aria-invalid="${htmlElement.getAttribute("aria-invalid")}"` : this.utils.printReceived("")
  47564. )
  47565. };
  47566. }
  47567. let expectsErrorMessage = checkWith !== void 0, errormessageIDs = (htmlElement.getAttribute("aria-errormessage") || "").split(/\s+/).filter(Boolean), errormessage = "";
  47568. if (errormessageIDs.length > 0) {
  47569. let document13 = htmlElement.ownerDocument, errormessageEls = errormessageIDs.map((errormessageID) => document13.getElementById(errormessageID)).filter(Boolean);
  47570. errormessage = normalize(
  47571. errormessageEls.map((el) => el.textContent).join(" ")
  47572. );
  47573. }
  47574. return {
  47575. pass: expectsErrorMessage ? checkWith instanceof RegExp ? checkWith.test(errormessage) : this.equals(errormessage, checkWith) : !!errormessage,
  47576. message: () => {
  47577. let to = this.isNot ? "not to" : "to";
  47578. return getMessage3(
  47579. this,
  47580. this.utils.matcherHint(
  47581. `${this.isNot ? ".not" : ""}.toHaveErrorMessage`,
  47582. "element",
  47583. ""
  47584. ),
  47585. `Expected the element ${to} have error message`,
  47586. this.utils.printExpected(checkWith),
  47587. "Received",
  47588. this.utils.printReceived(errormessage)
  47589. );
  47590. }
  47591. };
  47592. }
  47593. function getSelection(element) {
  47594. let selection = element.ownerDocument.getSelection();
  47595. if (["input", "textarea"].includes(element.tagName.toLowerCase()))
  47596. return ["radio", "checkbox"].includes(element.type) ? "" : element.value.toString().substring(element.selectionStart, element.selectionEnd);
  47597. if (selection.anchorNode === null || selection.focusNode === null)
  47598. return "";
  47599. let originalRange = selection.getRangeAt(0), temporaryRange = element.ownerDocument.createRange();
  47600. if (selection.containsNode(element, !1))
  47601. temporaryRange.selectNodeContents(element), selection.removeAllRanges(), selection.addRange(temporaryRange);
  47602. else if (!(element.contains(selection.anchorNode) && element.contains(selection.focusNode))) {
  47603. let selectionStartsWithinElement = element === originalRange.startContainer || element.contains(originalRange.startContainer), selectionEndsWithinElement = element === originalRange.endContainer || element.contains(originalRange.endContainer);
  47604. selection.removeAllRanges(), (selectionStartsWithinElement || selectionEndsWithinElement) && (temporaryRange.selectNodeContents(element), selectionStartsWithinElement && temporaryRange.setStart(
  47605. originalRange.startContainer,
  47606. originalRange.startOffset
  47607. ), selectionEndsWithinElement && temporaryRange.setEnd(
  47608. originalRange.endContainer,
  47609. originalRange.endOffset
  47610. ), selection.addRange(temporaryRange));
  47611. }
  47612. let result = selection.toString();
  47613. return selection.removeAllRanges(), selection.addRange(originalRange), result;
  47614. }
  47615. function toHaveSelection(htmlElement, expectedSelection) {
  47616. checkHtmlElement(htmlElement, toHaveSelection, this);
  47617. let expectsSelection = expectedSelection !== void 0;
  47618. if (expectsSelection && typeof expectedSelection != "string")
  47619. throw new Error("expected selection must be a string or undefined");
  47620. let receivedSelection = getSelection(htmlElement);
  47621. return {
  47622. pass: expectsSelection ? compareAsSet(receivedSelection, expectedSelection) : !!receivedSelection,
  47623. message: () => {
  47624. let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint(
  47625. `${this.isNot ? ".not" : ""}.toHaveSelection`,
  47626. "element",
  47627. expectedSelection
  47628. );
  47629. return getMessage3(
  47630. this,
  47631. matcher,
  47632. `Expected the element ${to} have selection`,
  47633. expectsSelection ? expectedSelection : "(any)",
  47634. "Received",
  47635. receivedSelection
  47636. );
  47637. }
  47638. };
  47639. }
  47640. function toBePressed(element) {
  47641. checkHtmlElement(element, toBePressed, this);
  47642. let roles3 = (element.getAttribute("role") || "").split(" ").map((role) => role.trim()), isButton2 = element.tagName.toLowerCase() === "button" || element.tagName.toLowerCase() === "input" && element.type === "button" || roles3.includes("button"), pressedAttribute = element.getAttribute("aria-pressed");
  47643. return !isButton2 || !(pressedAttribute === "true" || pressedAttribute === "false") ? {
  47644. pass: !1,
  47645. message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'
  47646. } : {
  47647. pass: isButton2 && pressedAttribute === "true",
  47648. message: () => {
  47649. let matcher = this.utils.matcherHint(
  47650. `${this.isNot ? ".not" : ""}.toBePressed`,
  47651. "element",
  47652. ""
  47653. );
  47654. return getMessage3(
  47655. this,
  47656. matcher,
  47657. "Expected element to have",
  47658. `aria-pressed="${this.isNot ? "false" : "true"}"`,
  47659. "Received",
  47660. `aria-pressed="${pressedAttribute}"`
  47661. );
  47662. }
  47663. };
  47664. }
  47665. function toBePartiallyPressed(element) {
  47666. checkHtmlElement(element, toBePartiallyPressed, this);
  47667. let roles3 = (element.getAttribute("role") || "").split(" ").map((role) => role.trim()), isButton2 = element.tagName.toLowerCase() === "button" || element.tagName.toLowerCase() === "input" && element.type === "button" || roles3.includes("button"), pressedAttribute = element.getAttribute("aria-pressed");
  47668. return !isButton2 || !(pressedAttribute === "true" || pressedAttribute === "false" || pressedAttribute === "mixed") ? {
  47669. pass: !1,
  47670. message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'
  47671. } : {
  47672. pass: isButton2 && pressedAttribute === "mixed",
  47673. message: () => {
  47674. let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint(
  47675. `${this.isNot ? ".not" : ""}.toBePartiallyPressed`,
  47676. "element",
  47677. ""
  47678. );
  47679. return getMessage3(
  47680. this,
  47681. matcher,
  47682. `Expected element ${to} have`,
  47683. 'aria-pressed="mixed"',
  47684. "Received",
  47685. `aria-pressed="${pressedAttribute}"`
  47686. );
  47687. }
  47688. };
  47689. }
  47690. var DOCUMENT_POSITION_DISCONNECTED = 1, DOCUMENT_POSITION_PRECEDING = 2, DOCUMENT_POSITION_FOLLOWING = 4, DOCUMENT_POSITION_CONTAINS = 8, DOCUMENT_POSITION_CONTAINED_BY = 16, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32, DOCUMENT_POSITIONS_STRINGS = {
  47691. [DOCUMENT_POSITION_DISCONNECTED]: "Node.DOCUMENT_POSITION_DISCONNECTED",
  47692. [DOCUMENT_POSITION_PRECEDING]: "Node.DOCUMENT_POSITION_PRECEDING",
  47693. [DOCUMENT_POSITION_FOLLOWING]: "Node.DOCUMENT_POSITION_FOLLOWING",
  47694. [DOCUMENT_POSITION_CONTAINS]: "Node.DOCUMENT_POSITION_CONTAINS",
  47695. [DOCUMENT_POSITION_CONTAINED_BY]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
  47696. [DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
  47697. };
  47698. function makeDocumentPositionErrorString(documentPosition) {
  47699. return documentPosition in DOCUMENT_POSITIONS_STRINGS ? `${DOCUMENT_POSITIONS_STRINGS[documentPosition]} (${documentPosition})` : `Unknown document position (${documentPosition})`;
  47700. }
  47701. function checkToAppear(methodName, targetDocumentPosition) {
  47702. return function(element, secondElement) {
  47703. checkHtmlElement(element, toAppearBefore, this), checkHtmlElement(secondElement, toAppearBefore, this);
  47704. let documentPosition = element.compareDocumentPosition(secondElement);
  47705. return {
  47706. pass: documentPosition === targetDocumentPosition,
  47707. message: () => [
  47708. this.utils.matcherHint(
  47709. `${this.isNot ? ".not" : ""}.${methodName}`,
  47710. "element",
  47711. "secondElement"
  47712. ),
  47713. "",
  47714. `Received: ${makeDocumentPositionErrorString(documentPosition)}`
  47715. ].join(`
  47716. `)
  47717. };
  47718. };
  47719. }
  47720. function toAppearBefore(element, secondElement) {
  47721. return checkToAppear("toAppearBefore", DOCUMENT_POSITION_FOLLOWING).apply(
  47722. this,
  47723. [element, secondElement]
  47724. );
  47725. }
  47726. function toAppearAfter(element, secondElement) {
  47727. return checkToAppear("toAppearAfter", DOCUMENT_POSITION_PRECEDING).apply(
  47728. this,
  47729. [element, secondElement]
  47730. );
  47731. }
  47732. var extensions = Object.freeze({
  47733. __proto__: null,
  47734. toAppearAfter,
  47735. toAppearBefore,
  47736. toBeChecked,
  47737. toBeDisabled,
  47738. toBeEmpty,
  47739. toBeEmptyDOMElement,
  47740. toBeEnabled,
  47741. toBeInTheDOM,
  47742. toBeInTheDocument,
  47743. toBeInvalid,
  47744. toBePartiallyChecked,
  47745. toBePartiallyPressed,
  47746. toBePressed,
  47747. toBeRequired,
  47748. toBeValid,
  47749. toBeVisible,
  47750. toContainElement,
  47751. toContainHTML,
  47752. toHaveAccessibleDescription,
  47753. toHaveAccessibleErrorMessage,
  47754. toHaveAccessibleName,
  47755. toHaveAttribute,
  47756. toHaveClass,
  47757. toHaveDescription,
  47758. toHaveDisplayValue,
  47759. toHaveErrorMessage,
  47760. toHaveFocus,
  47761. toHaveFormValues,
  47762. toHaveRole,
  47763. toHaveSelection,
  47764. toHaveStyle,
  47765. toHaveTextContent,
  47766. toHaveValue
  47767. });
  47768. // ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs
  47769. var import_redent2 = __toESM(require_redent(), 1);
  47770. var import_aria_query2 = __toESM(require_lib2(), 1), import_picocolors3 = __toESM(require_picocolors_browser(), 1), import_css4 = __toESM(require_css_escape(), 1);
  47771. // ../../node_modules/@vitest/utils/dist/index.js
  47772. var jsTokens_1, hasRequiredJsTokens;
  47773. function requireJsTokens() {
  47774. if (hasRequiredJsTokens) return jsTokens_1;
  47775. hasRequiredJsTokens = 1;
  47776. var Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;
  47777. return RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu, Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y, Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu, StringLiteral = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y, NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y, Template = /[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y, WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/yu, LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y, MultiLineComment = /\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y, SingleLineComment = /\/\/.*/y, JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y, JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu, JSXString = /(['"])(?:(?!\1)[^])*(\1)?/y, JSXText = /[^<>{}]+/y, TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/, TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/, KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/, KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/, Newline = RegExp(LineTerminatorSequence.source), jsTokens_1 = function* (input2, { jsx: jsx10 = !1 } = {}) {
  47778. var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length2, match3, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
  47779. for ({ length: length2 } = input2, lastIndex = 0, lastSignificantToken = "", stack = [
  47780. { tag: "JS" }
  47781. ], braces = [], parenNesting = 0, postfixIncDec = !1; lastIndex < length2; ) {
  47782. switch (mode = stack[stack.length - 1], mode.tag) {
  47783. case "JS":
  47784. case "JSNonExpressionParen":
  47785. case "InterpolationInTemplate":
  47786. case "InterpolationInJSX":
  47787. if (input2[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)) && (RegularExpressionLiteral.lastIndex = lastIndex, match3 = RegularExpressionLiteral.exec(input2))) {
  47788. lastIndex = RegularExpressionLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield {
  47789. type: "RegularExpressionLiteral",
  47790. value: match3[0],
  47791. closed: match3[1] !== void 0 && match3[1] !== "\\"
  47792. };
  47793. continue;
  47794. }
  47795. if (Punctuator.lastIndex = lastIndex, match3 = Punctuator.exec(input2)) {
  47796. switch (punctuator = match3[0], nextLastIndex = Punctuator.lastIndex, nextLastSignificantToken = punctuator, punctuator) {
  47797. case "(":
  47798. lastSignificantToken === "?NonExpressionParenKeyword" && stack.push({
  47799. tag: "JSNonExpressionParen",
  47800. nesting: parenNesting
  47801. }), parenNesting++, postfixIncDec = !1;
  47802. break;
  47803. case ")":
  47804. parenNesting--, postfixIncDec = !0, mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting && (stack.pop(), nextLastSignificantToken = "?NonExpressionParenEnd", postfixIncDec = !1);
  47805. break;
  47806. case "{":
  47807. Punctuator.lastIndex = 0, isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)), braces.push(isExpression), postfixIncDec = !1;
  47808. break;
  47809. case "}":
  47810. switch (mode.tag) {
  47811. case "InterpolationInTemplate":
  47812. if (braces.length === mode.nesting) {
  47813. Template.lastIndex = lastIndex, match3 = Template.exec(input2), lastIndex = Template.lastIndex, lastSignificantToken = match3[0], match3[1] === "${" ? (lastSignificantToken = "?InterpolationInTemplate", postfixIncDec = !1, yield {
  47814. type: "TemplateMiddle",
  47815. value: match3[0]
  47816. }) : (stack.pop(), postfixIncDec = !0, yield {
  47817. type: "TemplateTail",
  47818. value: match3[0],
  47819. closed: match3[1] === "`"
  47820. });
  47821. continue;
  47822. }
  47823. break;
  47824. case "InterpolationInJSX":
  47825. if (braces.length === mode.nesting) {
  47826. stack.pop(), lastIndex += 1, lastSignificantToken = "}", yield {
  47827. type: "JSXPunctuator",
  47828. value: "}"
  47829. };
  47830. continue;
  47831. }
  47832. }
  47833. postfixIncDec = braces.pop(), nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}";
  47834. break;
  47835. case "]":
  47836. postfixIncDec = !0;
  47837. break;
  47838. case "++":
  47839. case "--":
  47840. nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec";
  47841. break;
  47842. case "<":
  47843. if (jsx10 && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
  47844. stack.push({ tag: "JSXTag" }), lastIndex += 1, lastSignificantToken = "<", yield {
  47845. type: "JSXPunctuator",
  47846. value: punctuator
  47847. };
  47848. continue;
  47849. }
  47850. postfixIncDec = !1;
  47851. break;
  47852. default:
  47853. postfixIncDec = !1;
  47854. }
  47855. lastIndex = nextLastIndex, lastSignificantToken = nextLastSignificantToken, yield {
  47856. type: "Punctuator",
  47857. value: punctuator
  47858. };
  47859. continue;
  47860. }
  47861. if (Identifier.lastIndex = lastIndex, match3 = Identifier.exec(input2)) {
  47862. switch (lastIndex = Identifier.lastIndex, nextLastSignificantToken = match3[0], match3[0]) {
  47863. case "for":
  47864. case "if":
  47865. case "while":
  47866. case "with":
  47867. lastSignificantToken !== "." && lastSignificantToken !== "?." && (nextLastSignificantToken = "?NonExpressionParenKeyword");
  47868. }
  47869. lastSignificantToken = nextLastSignificantToken, postfixIncDec = !KeywordsWithExpressionAfter.test(match3[0]), yield {
  47870. type: match3[1] === "#" ? "PrivateIdentifier" : "IdentifierName",
  47871. value: match3[0]
  47872. };
  47873. continue;
  47874. }
  47875. if (StringLiteral.lastIndex = lastIndex, match3 = StringLiteral.exec(input2)) {
  47876. lastIndex = StringLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield {
  47877. type: "StringLiteral",
  47878. value: match3[0],
  47879. closed: match3[2] !== void 0
  47880. };
  47881. continue;
  47882. }
  47883. if (NumericLiteral.lastIndex = lastIndex, match3 = NumericLiteral.exec(input2)) {
  47884. lastIndex = NumericLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield {
  47885. type: "NumericLiteral",
  47886. value: match3[0]
  47887. };
  47888. continue;
  47889. }
  47890. if (Template.lastIndex = lastIndex, match3 = Template.exec(input2)) {
  47891. lastIndex = Template.lastIndex, lastSignificantToken = match3[0], match3[1] === "${" ? (lastSignificantToken = "?InterpolationInTemplate", stack.push({
  47892. tag: "InterpolationInTemplate",
  47893. nesting: braces.length
  47894. }), postfixIncDec = !1, yield {
  47895. type: "TemplateHead",
  47896. value: match3[0]
  47897. }) : (postfixIncDec = !0, yield {
  47898. type: "NoSubstitutionTemplate",
  47899. value: match3[0],
  47900. closed: match3[1] === "`"
  47901. });
  47902. continue;
  47903. }
  47904. break;
  47905. case "JSXTag":
  47906. case "JSXTagEnd":
  47907. if (JSXPunctuator.lastIndex = lastIndex, match3 = JSXPunctuator.exec(input2)) {
  47908. switch (lastIndex = JSXPunctuator.lastIndex, nextLastSignificantToken = match3[0], match3[0]) {
  47909. case "<":
  47910. stack.push({ tag: "JSXTag" });
  47911. break;
  47912. case ">":
  47913. stack.pop(), lastSignificantToken === "/" || mode.tag === "JSXTagEnd" ? (nextLastSignificantToken = "?JSX", postfixIncDec = !0) : stack.push({ tag: "JSXChildren" });
  47914. break;
  47915. case "{":
  47916. stack.push({
  47917. tag: "InterpolationInJSX",
  47918. nesting: braces.length
  47919. }), nextLastSignificantToken = "?InterpolationInJSX", postfixIncDec = !1;
  47920. break;
  47921. case "/":
  47922. lastSignificantToken === "<" && (stack.pop(), stack[stack.length - 1].tag === "JSXChildren" && stack.pop(), stack.push({ tag: "JSXTagEnd" }));
  47923. }
  47924. lastSignificantToken = nextLastSignificantToken, yield {
  47925. type: "JSXPunctuator",
  47926. value: match3[0]
  47927. };
  47928. continue;
  47929. }
  47930. if (JSXIdentifier.lastIndex = lastIndex, match3 = JSXIdentifier.exec(input2)) {
  47931. lastIndex = JSXIdentifier.lastIndex, lastSignificantToken = match3[0], yield {
  47932. type: "JSXIdentifier",
  47933. value: match3[0]
  47934. };
  47935. continue;
  47936. }
  47937. if (JSXString.lastIndex = lastIndex, match3 = JSXString.exec(input2)) {
  47938. lastIndex = JSXString.lastIndex, lastSignificantToken = match3[0], yield {
  47939. type: "JSXString",
  47940. value: match3[0],
  47941. closed: match3[2] !== void 0
  47942. };
  47943. continue;
  47944. }
  47945. break;
  47946. case "JSXChildren":
  47947. if (JSXText.lastIndex = lastIndex, match3 = JSXText.exec(input2)) {
  47948. lastIndex = JSXText.lastIndex, lastSignificantToken = match3[0], yield {
  47949. type: "JSXText",
  47950. value: match3[0]
  47951. };
  47952. continue;
  47953. }
  47954. switch (input2[lastIndex]) {
  47955. case "<":
  47956. stack.push({ tag: "JSXTag" }), lastIndex++, lastSignificantToken = "<", yield {
  47957. type: "JSXPunctuator",
  47958. value: "<"
  47959. };
  47960. continue;
  47961. case "{":
  47962. stack.push({
  47963. tag: "InterpolationInJSX",
  47964. nesting: braces.length
  47965. }), lastIndex++, lastSignificantToken = "?InterpolationInJSX", postfixIncDec = !1, yield {
  47966. type: "JSXPunctuator",
  47967. value: "{"
  47968. };
  47969. continue;
  47970. }
  47971. }
  47972. if (WhiteSpace.lastIndex = lastIndex, match3 = WhiteSpace.exec(input2)) {
  47973. lastIndex = WhiteSpace.lastIndex, yield {
  47974. type: "WhiteSpace",
  47975. value: match3[0]
  47976. };
  47977. continue;
  47978. }
  47979. if (LineTerminatorSequence.lastIndex = lastIndex, match3 = LineTerminatorSequence.exec(input2)) {
  47980. lastIndex = LineTerminatorSequence.lastIndex, postfixIncDec = !1, KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken) && (lastSignificantToken = "?NoLineTerminatorHere"), yield {
  47981. type: "LineTerminatorSequence",
  47982. value: match3[0]
  47983. };
  47984. continue;
  47985. }
  47986. if (MultiLineComment.lastIndex = lastIndex, match3 = MultiLineComment.exec(input2)) {
  47987. lastIndex = MultiLineComment.lastIndex, Newline.test(match3[0]) && (postfixIncDec = !1, KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken) && (lastSignificantToken = "?NoLineTerminatorHere")), yield {
  47988. type: "MultiLineComment",
  47989. value: match3[0],
  47990. closed: match3[1] !== void 0
  47991. };
  47992. continue;
  47993. }
  47994. if (SingleLineComment.lastIndex = lastIndex, match3 = SingleLineComment.exec(input2)) {
  47995. lastIndex = SingleLineComment.lastIndex, postfixIncDec = !1, yield {
  47996. type: "SingleLineComment",
  47997. value: match3[0]
  47998. };
  47999. continue;
  48000. }
  48001. firstCodePoint = String.fromCodePoint(input2.codePointAt(lastIndex)), lastIndex += firstCodePoint.length, lastSignificantToken = firstCodePoint, postfixIncDec = !1, yield {
  48002. type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid",
  48003. value: firstCodePoint
  48004. };
  48005. }
  48006. }, jsTokens_1;
  48007. }
  48008. var jsTokensExports = requireJsTokens(), jsTokens = getDefaultExportFromCjs2(jsTokensExports), reservedWords = {
  48009. keyword: [
  48010. "break",
  48011. "case",
  48012. "catch",
  48013. "continue",
  48014. "debugger",
  48015. "default",
  48016. "do",
  48017. "else",
  48018. "finally",
  48019. "for",
  48020. "function",
  48021. "if",
  48022. "return",
  48023. "switch",
  48024. "throw",
  48025. "try",
  48026. "var",
  48027. "const",
  48028. "while",
  48029. "with",
  48030. "new",
  48031. "this",
  48032. "super",
  48033. "class",
  48034. "extends",
  48035. "export",
  48036. "import",
  48037. "null",
  48038. "true",
  48039. "false",
  48040. "in",
  48041. "instanceof",
  48042. "typeof",
  48043. "void",
  48044. "delete"
  48045. ],
  48046. strict: [
  48047. "implements",
  48048. "interface",
  48049. "let",
  48050. "package",
  48051. "private",
  48052. "protected",
  48053. "public",
  48054. "static",
  48055. "yield"
  48056. ]
  48057. }, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict);
  48058. var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
  48059. // ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
  48060. var f2 = {
  48061. reset: [0, 0],
  48062. bold: [1, 22, "\x1B[22m\x1B[1m"],
  48063. dim: [2, 22, "\x1B[22m\x1B[2m"],
  48064. italic: [3, 23],
  48065. underline: [4, 24],
  48066. inverse: [7, 27],
  48067. hidden: [8, 28],
  48068. strikethrough: [9, 29],
  48069. black: [30, 39],
  48070. red: [31, 39],
  48071. green: [32, 39],
  48072. yellow: [33, 39],
  48073. blue: [34, 39],
  48074. magenta: [35, 39],
  48075. cyan: [36, 39],
  48076. white: [37, 39],
  48077. gray: [90, 39],
  48078. bgBlack: [40, 49],
  48079. bgRed: [41, 49],
  48080. bgGreen: [42, 49],
  48081. bgYellow: [43, 49],
  48082. bgBlue: [44, 49],
  48083. bgMagenta: [45, 49],
  48084. bgCyan: [46, 49],
  48085. bgWhite: [47, 49],
  48086. blackBright: [90, 39],
  48087. redBright: [91, 39],
  48088. greenBright: [92, 39],
  48089. yellowBright: [93, 39],
  48090. blueBright: [94, 39],
  48091. magentaBright: [95, 39],
  48092. cyanBright: [96, 39],
  48093. whiteBright: [97, 39],
  48094. bgBlackBright: [100, 49],
  48095. bgRedBright: [101, 49],
  48096. bgGreenBright: [102, 49],
  48097. bgYellowBright: [103, 49],
  48098. bgBlueBright: [104, 49],
  48099. bgMagentaBright: [105, 49],
  48100. bgCyanBright: [106, 49],
  48101. bgWhiteBright: [107, 49]
  48102. }, h2 = Object.entries(f2);
  48103. function a2(n) {
  48104. return String(n);
  48105. }
  48106. a2.open = "";
  48107. a2.close = "";
  48108. var B2 = h2.reduce(
  48109. (n, [e]) => (n[e] = a2, n),
  48110. { isColorSupported: !1 }
  48111. );
  48112. function C2(n = !1) {
  48113. let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g2 = e?.argv || [];
  48114. return !("NO_COLOR" in i || g2.includes("--no-color")) && ("FORCE_COLOR" in i || g2.includes("--color") || e?.platform === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window < "u" && !!window.chrome;
  48115. }
  48116. function p2(n = !1) {
  48117. let e = C2(n), i = (r2, t, c, o) => {
  48118. let l = "", s3 = 0;
  48119. do
  48120. l += r2.substring(s3, o) + c, s3 = o + t.length, o = r2.indexOf(t, s3);
  48121. while (~o);
  48122. return l + r2.substring(s3);
  48123. }, g2 = (r2, t, c = r2) => {
  48124. let o = (l) => {
  48125. let s3 = String(l), b = s3.indexOf(t, r2.length);
  48126. return ~b ? r2 + i(s3, t, c, b) + t : r2 + s3 + t;
  48127. };
  48128. return o.open = r2, o.close = t, o;
  48129. }, u2 = {
  48130. isColorSupported: e
  48131. }, d = (r2) => `\x1B[${r2}m`;
  48132. for (let [r2, t] of h2)
  48133. u2[r2] = e ? g2(
  48134. d(t[0]),
  48135. d(t[1]),
  48136. t[2]
  48137. ) : a2;
  48138. return u2;
  48139. }
  48140. // ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/browser.js
  48141. var s2 = p2();
  48142. // ../../node_modules/@vitest/spy/node_modules/tinyspy/dist/index.js
  48143. function assert2(condition, message) {
  48144. if (!condition)
  48145. throw new Error(message);
  48146. }
  48147. function isType(type5, value) {
  48148. return typeof value === type5;
  48149. }
  48150. function isPromise2(value) {
  48151. return value instanceof Promise;
  48152. }
  48153. function define2(obj, key, descriptor) {
  48154. Object.defineProperty(obj, key, descriptor);
  48155. }
  48156. function defineValue(obj, key, value) {
  48157. define2(obj, key, { value, configurable: !0, writable: !0 });
  48158. }
  48159. var SYMBOL_STATE = Symbol.for("tinyspy:spy"), spies = /* @__PURE__ */ new Set(), reset = (state3) => {
  48160. state3.called = !1, state3.callCount = 0, state3.calls = [], state3.results = [], state3.resolves = [], state3.next = [];
  48161. }, defineState = (spy2) => (define2(spy2, SYMBOL_STATE, {
  48162. value: { reset: () => reset(spy2[SYMBOL_STATE]) }
  48163. }), spy2[SYMBOL_STATE]), getInternalState = (spy2) => spy2[SYMBOL_STATE] || defineState(spy2);
  48164. function createInternalSpy(cb) {
  48165. assert2(
  48166. isType("function", cb) || isType("undefined", cb),
  48167. "cannot spy on a non-function value"
  48168. );
  48169. let fn4 = function(...args) {
  48170. let state22 = getInternalState(fn4);
  48171. state22.called = !0, state22.callCount++, state22.calls.push(args);
  48172. let next2 = state22.next.shift();
  48173. if (next2) {
  48174. state22.results.push(next2);
  48175. let [type22, result2] = next2;
  48176. if (type22 === "ok")
  48177. return result2;
  48178. throw result2;
  48179. }
  48180. let result, type5 = "ok", resultIndex = state22.results.length;
  48181. if (state22.impl)
  48182. try {
  48183. new.target ? result = Reflect.construct(state22.impl, args, new.target) : result = state22.impl.apply(this, args), type5 = "ok";
  48184. } catch (err) {
  48185. throw result = err, type5 = "error", state22.results.push([type5, err]), err;
  48186. }
  48187. let resultTuple = [type5, result];
  48188. return isPromise2(result) && result.then(
  48189. (r2) => state22.resolves[resultIndex] = ["ok", r2],
  48190. (e) => state22.resolves[resultIndex] = ["error", e]
  48191. ), state22.results.push(resultTuple), result;
  48192. };
  48193. defineValue(fn4, "_isMockFunction", !0), defineValue(fn4, "length", cb ? cb.length : 0), defineValue(fn4, "name", cb && cb.name || "spy");
  48194. let state3 = getInternalState(fn4);
  48195. return state3.reset(), state3.impl = cb, fn4;
  48196. }
  48197. function isMockFunction(obj) {
  48198. return !!obj && obj._isMockFunction === !0;
  48199. }
  48200. var getDescriptor = (obj, method) => {
  48201. let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
  48202. if (objDescriptor)
  48203. return [obj, objDescriptor];
  48204. let currentProto = Object.getPrototypeOf(obj);
  48205. for (; currentProto !== null; ) {
  48206. let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
  48207. if (descriptor)
  48208. return [currentProto, descriptor];
  48209. currentProto = Object.getPrototypeOf(currentProto);
  48210. }
  48211. }, setPototype = (fn4, val) => {
  48212. val != null && typeof val == "function" && val.prototype != null && Object.setPrototypeOf(fn4.prototype, val.prototype);
  48213. };
  48214. function internalSpyOn(obj, methodName, mock) {
  48215. assert2(
  48216. !isType("undefined", obj),
  48217. "spyOn could not find an object to spy upon"
  48218. ), assert2(
  48219. isType("object", obj) || isType("function", obj),
  48220. "cannot spyOn on a primitive value"
  48221. );
  48222. let [accessName, accessType] = (() => {
  48223. if (!isType("object", methodName))
  48224. return [methodName, "value"];
  48225. if ("getter" in methodName && "setter" in methodName)
  48226. throw new Error("cannot spy on both getter and setter");
  48227. if ("getter" in methodName)
  48228. return [methodName.getter, "get"];
  48229. if ("setter" in methodName)
  48230. return [methodName.setter, "set"];
  48231. throw new Error("specify getter or setter to spy on");
  48232. })(), [originalDescriptorObject, originalDescriptor] = getDescriptor(obj, accessName) || [];
  48233. assert2(
  48234. originalDescriptor || accessName in obj,
  48235. `${String(accessName)} does not exist`
  48236. );
  48237. let ssr = !1;
  48238. accessType === "value" && originalDescriptor && !originalDescriptor.value && originalDescriptor.get && (accessType = "get", ssr = !0, mock = originalDescriptor.get());
  48239. let original;
  48240. originalDescriptor ? original = originalDescriptor[accessType] : accessType !== "value" ? original = () => obj[accessName] : original = obj[accessName], original && isSpyFunction(original) && (original = original[SYMBOL_STATE].getOriginal());
  48241. let reassign = (cb) => {
  48242. let { value, ...desc } = originalDescriptor || {
  48243. configurable: !0,
  48244. writable: !0
  48245. };
  48246. accessType !== "value" && delete desc.writable, desc[accessType] = cb, define2(obj, accessName, desc);
  48247. }, restore = () => {
  48248. originalDescriptorObject !== obj ? Reflect.deleteProperty(obj, accessName) : originalDescriptor && !original ? define2(obj, accessName, originalDescriptor) : reassign(original);
  48249. };
  48250. mock || (mock = original);
  48251. let spy2 = wrap(createInternalSpy(mock), mock);
  48252. accessType === "value" && setPototype(spy2, original);
  48253. let state3 = spy2[SYMBOL_STATE];
  48254. return defineValue(state3, "restore", restore), defineValue(state3, "getOriginal", () => ssr ? original() : original), defineValue(state3, "willCall", (newCb) => (state3.impl = newCb, spy2)), reassign(
  48255. ssr ? () => (setPototype(spy2, mock), spy2) : spy2
  48256. ), spies.add(spy2), spy2;
  48257. }
  48258. var ignoreProperties = /* @__PURE__ */ new Set([
  48259. "length",
  48260. "name",
  48261. "prototype"
  48262. ]);
  48263. function getAllProperties(original) {
  48264. let properties = /* @__PURE__ */ new Set(), descriptors2 = {};
  48265. for (; original && original !== Object.prototype && original !== Function.prototype; ) {
  48266. let ownProperties = [
  48267. ...Object.getOwnPropertyNames(original),
  48268. ...Object.getOwnPropertySymbols(original)
  48269. ];
  48270. for (let prop of ownProperties)
  48271. descriptors2[prop] || ignoreProperties.has(prop) || (properties.add(prop), descriptors2[prop] = Object.getOwnPropertyDescriptor(original, prop));
  48272. original = Object.getPrototypeOf(original);
  48273. }
  48274. return {
  48275. properties,
  48276. descriptors: descriptors2
  48277. };
  48278. }
  48279. function wrap(mock, original) {
  48280. if (!original || // the original is already a spy, so it has all the properties
  48281. SYMBOL_STATE in original)
  48282. return mock;
  48283. let { properties, descriptors: descriptors2 } = getAllProperties(original);
  48284. for (let key of properties) {
  48285. let descriptor = descriptors2[key];
  48286. getDescriptor(mock, key) || define2(mock, key, descriptor);
  48287. }
  48288. return mock;
  48289. }
  48290. function isSpyFunction(obj) {
  48291. return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE];
  48292. }
  48293. // ../../node_modules/@vitest/spy/dist/index.js
  48294. var mocks = /* @__PURE__ */ new Set();
  48295. function isMockFunction2(fn4) {
  48296. return typeof fn4 == "function" && "_isMockFunction" in fn4 && fn4._isMockFunction;
  48297. }
  48298. function spyOn(obj, method, accessType) {
  48299. let objMethod = accessType ? { [{
  48300. get: "getter",
  48301. set: "setter"
  48302. }[accessType]]: method } : method, state3, descriptor = getDescriptor2(obj, method), fn4 = descriptor && descriptor[accessType || "value"];
  48303. isMockFunction2(fn4) && (state3 = fn4.mock._state());
  48304. try {
  48305. let stub = internalSpyOn(obj, objMethod), spy = enhanceSpy(stub);
  48306. return state3 && spy.mock._state(state3), spy;
  48307. } catch (error) {
  48308. throw error instanceof TypeError && Symbol.toStringTag && obj[Symbol.toStringTag] === "Module" && (error.message.includes("Cannot redefine property") || error.message.includes("Cannot replace module namespace") || error.message.includes("can't redefine non-configurable property")) ? new TypeError(`Cannot spy on export "${String(objMethod)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`, { cause: error }) : error;
  48309. }
  48310. }
  48311. var callOrder = 0;
  48312. function enhanceSpy(spy) {
  48313. let stub = spy, implementation, onceImplementations = [], implementationChangedTemporarily = !1, instances2 = [], contexts = [], invocations = [], state3 = getInternalState(spy), mockContext = {
  48314. get calls() {
  48315. return state3.calls;
  48316. },
  48317. get contexts() {
  48318. return contexts;
  48319. },
  48320. get instances() {
  48321. return instances2;
  48322. },
  48323. get invocationCallOrder() {
  48324. return invocations;
  48325. },
  48326. get results() {
  48327. return state3.results.map(([callType, value]) => ({
  48328. type: callType === "error" ? "throw" : "return",
  48329. value
  48330. }));
  48331. },
  48332. get settledResults() {
  48333. return state3.resolves.map(([callType, value]) => ({
  48334. type: callType === "error" ? "rejected" : "fulfilled",
  48335. value
  48336. }));
  48337. },
  48338. get lastCall() {
  48339. return state3.calls[state3.calls.length - 1];
  48340. },
  48341. _state(state4) {
  48342. return state4 && (implementation = state4.implementation, onceImplementations = state4.onceImplementations, implementationChangedTemporarily = state4.implementationChangedTemporarily), {
  48343. implementation,
  48344. onceImplementations,
  48345. implementationChangedTemporarily
  48346. };
  48347. }
  48348. };
  48349. function mockCall(...args) {
  48350. return instances2.push(this), contexts.push(this), invocations.push(++callOrder), (implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state3.getOriginal() || (() => {
  48351. })).apply(this, args);
  48352. }
  48353. let name = stub.name;
  48354. stub.getMockName = () => name || "vi.fn()", stub.mockName = (n) => (name = n, stub), stub.mockClear = () => (state3.reset(), instances2 = [], contexts = [], invocations = [], stub), stub.mockReset = () => (stub.mockClear(), implementation = void 0, onceImplementations = [], stub), stub.mockRestore = () => (stub.mockReset(), state3.restore(), stub), Symbol.dispose && (stub[Symbol.dispose] = () => stub.mockRestore()), stub.getMockImplementation = () => implementationChangedTemporarily ? implementation : onceImplementations.at(0) || implementation, stub.mockImplementation = (fn4) => (implementation = fn4, state3.willCall(mockCall), stub), stub.mockImplementationOnce = (fn4) => (onceImplementations.push(fn4), stub);
  48355. function withImplementation(fn4, cb) {
  48356. let originalImplementation = implementation;
  48357. implementation = fn4, state3.willCall(mockCall), implementationChangedTemporarily = !0;
  48358. let reset2 = () => {
  48359. implementation = originalImplementation, implementationChangedTemporarily = !1;
  48360. }, result = cb();
  48361. return typeof result == "object" && result && typeof result.then == "function" ? result.then(() => (reset2(), stub)) : (reset2(), stub);
  48362. }
  48363. return stub.withImplementation = withImplementation, stub.mockReturnThis = () => stub.mockImplementation(function() {
  48364. return this;
  48365. }), stub.mockReturnValue = (val) => stub.mockImplementation(() => val), stub.mockReturnValueOnce = (val) => stub.mockImplementationOnce(() => val), stub.mockResolvedValue = (val) => stub.mockImplementation(() => Promise.resolve(val)), stub.mockResolvedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.resolve(val)), stub.mockRejectedValue = (val) => stub.mockImplementation(() => Promise.reject(val)), stub.mockRejectedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.reject(val)), Object.defineProperty(stub, "mock", { get: () => mockContext }), state3.willCall(mockCall), mocks.add(stub), stub;
  48366. }
  48367. function fn(implementation) {
  48368. let enhancedSpy = enhanceSpy(internalSpyOn({ spy: implementation || function() {
  48369. } }, "spy"));
  48370. return implementation && enhancedSpy.mockImplementation(implementation), enhancedSpy;
  48371. }
  48372. function getDescriptor2(obj, method) {
  48373. let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
  48374. if (objDescriptor)
  48375. return objDescriptor;
  48376. let currentProto = Object.getPrototypeOf(obj);
  48377. for (; currentProto !== null; ) {
  48378. let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
  48379. if (descriptor)
  48380. return descriptor;
  48381. currentProto = Object.getPrototypeOf(currentProto);
  48382. }
  48383. }
  48384. // ../../node_modules/@vitest/expect/dist/index.js
  48385. var MATCHERS_OBJECT = Symbol.for("matchers-object"), JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object-storybook"), GLOBAL_EXPECT = Symbol.for("expect-global"), ASYMMETRIC_MATCHERS_OBJECT = Symbol.for("asymmetric-matchers-object"), customMatchers = {
  48386. toSatisfy(actual, expected, message) {
  48387. let { printReceived: printReceived3, printExpected: printExpected3, matcherHint: matcherHint2 } = this.utils, pass = expected(actual);
  48388. return {
  48389. pass,
  48390. message: () => pass ? `${matcherHint2(".not.toSatisfy", "received", "")}
  48391. Expected value to not satisfy:
  48392. ${message || printExpected3(expected)}
  48393. Received:
  48394. ${printReceived3(actual)}` : `${matcherHint2(".toSatisfy", "received", "")}
  48395. Expected value to satisfy:
  48396. ${message || printExpected3(expected)}
  48397. Received:
  48398. ${printReceived3(actual)}`
  48399. };
  48400. },
  48401. toBeOneOf(actual, expected) {
  48402. let { equals: equals2, customTesters } = this, { printReceived: printReceived3, printExpected: printExpected3, matcherHint: matcherHint2 } = this.utils;
  48403. if (!Array.isArray(expected))
  48404. throw new TypeError(`You must provide an array to ${matcherHint2(".toBeOneOf")}, not '${typeof expected}'.`);
  48405. let pass = expected.length === 0 || expected.some((item) => equals2(item, actual, customTesters));
  48406. return {
  48407. pass,
  48408. message: () => pass ? `${matcherHint2(".not.toBeOneOf", "received", "")}
  48409. Expected value to not be one of:
  48410. ${printExpected3(expected)}
  48411. Received:
  48412. ${printReceived3(actual)}` : `${matcherHint2(".toBeOneOf", "received", "")}
  48413. Expected value to be one of:
  48414. ${printExpected3(expected)}
  48415. Received:
  48416. ${printReceived3(actual)}`
  48417. };
  48418. }
  48419. }, EXPECTED_COLOR = s2.green, RECEIVED_COLOR = s2.red, INVERTED_COLOR = s2.inverse, BOLD_WEIGHT = s2.bold, DIM_COLOR = s2.dim;
  48420. function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
  48421. let { comment: comment2 = "", isDirectExpectCall = !1, isNot = !1, promise = "", secondArgument = "", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options, hint = "", dimString = "expect";
  48422. return !isDirectExpectCall && received !== "" && (hint += DIM_COLOR(`${dimString}(`) + receivedColor(received), dimString = ")"), promise !== "" && (hint += DIM_COLOR(`${dimString}.`) + promise, dimString = ""), isNot && (hint += `${DIM_COLOR(`${dimString}.`)}not`, dimString = ""), matcherName.includes(".") ? dimString += matcherName : (hint += DIM_COLOR(`${dimString}.`) + matcherName, dimString = ""), expected === "" ? dimString += "()" : (hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected), secondArgument && (hint += DIM_COLOR(", ") + secondArgumentColor(secondArgument)), dimString = ")"), comment2 !== "" && (dimString += ` // ${comment2}`), dimString !== "" && (hint += DIM_COLOR(dimString)), hint;
  48423. }
  48424. var SPACE_SYMBOL2 = "\xB7";
  48425. function replaceTrailingSpaces2(text) {
  48426. return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL2.repeat(spaces.length));
  48427. }
  48428. function printReceived2(object) {
  48429. return RECEIVED_COLOR(replaceTrailingSpaces2(stringify5(object)));
  48430. }
  48431. function printExpected2(value) {
  48432. return EXPECTED_COLOR(replaceTrailingSpaces2(stringify5(value)));
  48433. }
  48434. function getMatcherUtils() {
  48435. return {
  48436. EXPECTED_COLOR,
  48437. RECEIVED_COLOR,
  48438. INVERTED_COLOR,
  48439. BOLD_WEIGHT,
  48440. DIM_COLOR,
  48441. diff,
  48442. matcherHint,
  48443. printReceived: printReceived2,
  48444. printExpected: printExpected2,
  48445. printDiffOrStringify,
  48446. printWithType
  48447. };
  48448. }
  48449. function printWithType(name, value, print) {
  48450. let type5 = getType2(value), hasType = type5 !== "null" && type5 !== "undefined" ? `${name} has type: ${type5}
  48451. ` : "", hasValue = `${name} has value: ${print(value)}`;
  48452. return hasType + hasValue;
  48453. }
  48454. function getCustomEqualityTesters() {
  48455. return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;
  48456. }
  48457. function equals(a3, b, customTesters, strictCheck) {
  48458. return customTesters = customTesters || [], eq3(a3, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
  48459. }
  48460. var functionToString = Function.prototype.toString;
  48461. function isAsymmetric(obj) {
  48462. return !!obj && typeof obj == "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch);
  48463. }
  48464. function asymmetricMatch(a3, b) {
  48465. let asymmetricA = isAsymmetric(a3), asymmetricB = isAsymmetric(b);
  48466. if (!(asymmetricA && asymmetricB)) {
  48467. if (asymmetricA)
  48468. return a3.asymmetricMatch(b);
  48469. if (asymmetricB)
  48470. return b.asymmetricMatch(a3);
  48471. }
  48472. }
  48473. function eq3(a3, b, aStack, bStack, customTesters, hasKey2) {
  48474. let result = !0, asymmetricResult = asymmetricMatch(a3, b);
  48475. if (asymmetricResult !== void 0)
  48476. return asymmetricResult;
  48477. let testerContext = { equals };
  48478. for (let i = 0; i < customTesters.length; i++) {
  48479. let customTesterResult = customTesters[i].call(testerContext, a3, b, customTesters);
  48480. if (customTesterResult !== void 0)
  48481. return customTesterResult;
  48482. }
  48483. if (typeof URL == "function" && a3 instanceof URL && b instanceof URL)
  48484. return a3.href === b.href;
  48485. if (Object.is(a3, b))
  48486. return !0;
  48487. if (a3 === null || b === null)
  48488. return a3 === b;
  48489. let className = Object.prototype.toString.call(a3);
  48490. if (className !== Object.prototype.toString.call(b))
  48491. return !1;
  48492. switch (className) {
  48493. case "[object Boolean]":
  48494. case "[object String]":
  48495. case "[object Number]":
  48496. return typeof a3 != typeof b ? !1 : typeof a3 != "object" && typeof b != "object" ? Object.is(a3, b) : Object.is(a3.valueOf(), b.valueOf());
  48497. case "[object Date]": {
  48498. let numA = +a3, numB = +b;
  48499. return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
  48500. }
  48501. case "[object RegExp]":
  48502. return a3.source === b.source && a3.flags === b.flags;
  48503. case "[object Temporal.Instant]":
  48504. case "[object Temporal.ZonedDateTime]":
  48505. case "[object Temporal.PlainDateTime]":
  48506. case "[object Temporal.PlainDate]":
  48507. case "[object Temporal.PlainTime]":
  48508. case "[object Temporal.PlainYearMonth]":
  48509. case "[object Temporal.PlainMonthDay]":
  48510. return a3.equals(b);
  48511. case "[object Temporal.Duration]":
  48512. return a3.toString() === b.toString();
  48513. }
  48514. if (typeof a3 != "object" || typeof b != "object")
  48515. return !1;
  48516. if (isDomNode(a3) && isDomNode(b))
  48517. return a3.isEqualNode(b);
  48518. let length2 = aStack.length;
  48519. for (; length2--; ) {
  48520. if (aStack[length2] === a3)
  48521. return bStack[length2] === b;
  48522. if (bStack[length2] === b)
  48523. return !1;
  48524. }
  48525. if (aStack.push(a3), bStack.push(b), className === "[object Array]" && a3.length !== b.length)
  48526. return !1;
  48527. if (a3 instanceof Error && b instanceof Error)
  48528. try {
  48529. return isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2);
  48530. } finally {
  48531. aStack.pop(), bStack.pop();
  48532. }
  48533. let aKeys = keys(a3, hasKey2), key, size = aKeys.length;
  48534. if (keys(b, hasKey2).length !== size)
  48535. return !1;
  48536. for (; size--; )
  48537. if (key = aKeys[size], result = hasKey2(b, key) && eq3(a3[key], b[key], aStack, bStack, customTesters, hasKey2), !result)
  48538. return !1;
  48539. return aStack.pop(), bStack.pop(), result;
  48540. }
  48541. function isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2) {
  48542. let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b) && a3.name === b.name && a3.message === b.message;
  48543. return typeof b.cause < "u" && result && (result = eq3(a3.cause, b.cause, aStack, bStack, customTesters, hasKey2)), a3 instanceof AggregateError && b instanceof AggregateError && result && (result = eq3(a3.errors, b.errors, aStack, bStack, customTesters, hasKey2)), result && (result = eq3({ ...a3 }, { ...b }, aStack, bStack, customTesters, hasKey2)), result;
  48544. }
  48545. function keys(obj, hasKey2) {
  48546. let keys3 = [];
  48547. for (let key in obj)
  48548. hasKey2(obj, key) && keys3.push(key);
  48549. return keys3.concat(Object.getOwnPropertySymbols(obj).filter((symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable));
  48550. }
  48551. function hasDefinedKey(obj, key) {
  48552. return hasKey(obj, key) && obj[key] !== void 0;
  48553. }
  48554. function hasKey(obj, key) {
  48555. return Object.prototype.hasOwnProperty.call(obj, key);
  48556. }
  48557. function isA(typeName, value) {
  48558. return Object.prototype.toString.apply(value) === `[object ${typeName}]`;
  48559. }
  48560. function isDomNode(obj) {
  48561. return obj !== null && typeof obj == "object" && "nodeType" in obj && typeof obj.nodeType == "number" && "nodeName" in obj && typeof obj.nodeName == "string" && "isEqualNode" in obj && typeof obj.isEqualNode == "function";
  48562. }
  48563. var IS_KEYED_SENTINEL2 = "@@__IMMUTABLE_KEYED__@@", IS_SET_SENTINEL2 = "@@__IMMUTABLE_SET__@@", IS_LIST_SENTINEL2 = "@@__IMMUTABLE_LIST__@@", IS_ORDERED_SENTINEL2 = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SYMBOL2 = "@@__IMMUTABLE_RECORD__@@";
  48564. function isImmutableUnorderedKeyed(maybeKeyed) {
  48565. return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL2] && !maybeKeyed[IS_ORDERED_SENTINEL2]);
  48566. }
  48567. function isImmutableUnorderedSet(maybeSet) {
  48568. return !!(maybeSet && maybeSet[IS_SET_SENTINEL2] && !maybeSet[IS_ORDERED_SENTINEL2]);
  48569. }
  48570. function isObjectLiteral(source) {
  48571. return source != null && typeof source == "object" && !Array.isArray(source);
  48572. }
  48573. function isImmutableList(source) {
  48574. return !!(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL2]);
  48575. }
  48576. function isImmutableOrderedKeyed(source) {
  48577. return !!(source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL2] && source[IS_ORDERED_SENTINEL2]);
  48578. }
  48579. function isImmutableOrderedSet(source) {
  48580. return !!(source && isObjectLiteral(source) && source[IS_SET_SENTINEL2] && source[IS_ORDERED_SENTINEL2]);
  48581. }
  48582. function isImmutableRecord(source) {
  48583. return !!(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL2]);
  48584. }
  48585. var IteratorSymbol = Symbol.iterator;
  48586. function hasIterator(object) {
  48587. return !!(object != null && object[IteratorSymbol]);
  48588. }
  48589. function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
  48590. if (typeof a3 != "object" || typeof b != "object" || Array.isArray(a3) || Array.isArray(b) || !hasIterator(a3) || !hasIterator(b))
  48591. return;
  48592. if (a3.constructor !== b.constructor)
  48593. return !1;
  48594. let length2 = aStack.length;
  48595. for (; length2--; )
  48596. if (aStack[length2] === a3)
  48597. return bStack[length2] === b;
  48598. aStack.push(a3), bStack.push(b);
  48599. let filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];
  48600. function iterableEqualityWithStack(a4, b2) {
  48601. return iterableEquality(a4, b2, [...customTesters], [...aStack], [...bStack]);
  48602. }
  48603. if (a3.size !== void 0) {
  48604. if (a3.size !== b.size)
  48605. return !1;
  48606. if (isA("Set", a3) || isImmutableUnorderedSet(a3)) {
  48607. let allFound = !0;
  48608. for (let aValue of a3)
  48609. if (!b.has(aValue)) {
  48610. let has2 = !1;
  48611. for (let bValue of b)
  48612. equals(aValue, bValue, filteredCustomTesters) === !0 && (has2 = !0);
  48613. if (has2 === !1) {
  48614. allFound = !1;
  48615. break;
  48616. }
  48617. }
  48618. return aStack.pop(), bStack.pop(), allFound;
  48619. } else if (isA("Map", a3) || isImmutableUnorderedKeyed(a3)) {
  48620. let allFound = !0;
  48621. for (let aEntry of a3)
  48622. if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {
  48623. let has2 = !1;
  48624. for (let bEntry of b) {
  48625. let matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters), matchedValue = !1;
  48626. matchedKey === !0 && (matchedValue = equals(aEntry[1], bEntry[1], filteredCustomTesters)), matchedValue === !0 && (has2 = !0);
  48627. }
  48628. if (has2 === !1) {
  48629. allFound = !1;
  48630. break;
  48631. }
  48632. }
  48633. return aStack.pop(), bStack.pop(), allFound;
  48634. }
  48635. }
  48636. let bIterator = b[IteratorSymbol]();
  48637. for (let aValue of a3) {
  48638. let nextB = bIterator.next();
  48639. if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters))
  48640. return !1;
  48641. }
  48642. if (!bIterator.next().done)
  48643. return !1;
  48644. if (!isImmutableList(a3) && !isImmutableOrderedKeyed(a3) && !isImmutableOrderedSet(a3) && !isImmutableRecord(a3)) {
  48645. let aEntries = Object.entries(a3), bEntries = Object.entries(b);
  48646. if (!equals(aEntries, bEntries, filteredCustomTesters))
  48647. return !1;
  48648. }
  48649. return aStack.pop(), bStack.pop(), !0;
  48650. }
  48651. function hasPropertyInObject(object, key) {
  48652. return !object || typeof object != "object" || object === Object.prototype ? !1 : Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);
  48653. }
  48654. function isObjectWithKeys(a3) {
  48655. return isObject5(a3) && !(a3 instanceof Error) && !Array.isArray(a3) && !(a3 instanceof Date);
  48656. }
  48657. function subsetEquality(object, subset, customTesters = []) {
  48658. let filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality), subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {
  48659. if (isObjectWithKeys(subset2))
  48660. return Object.keys(subset2).every((key) => {
  48661. if (subset2[key] != null && typeof subset2[key] == "object") {
  48662. if (seenReferences.has(subset2[key]))
  48663. return equals(object2[key], subset2[key], filteredCustomTesters);
  48664. seenReferences.set(subset2[key], !0);
  48665. }
  48666. let result = object2 != null && hasPropertyInObject(object2, key) && equals(object2[key], subset2[key], [...filteredCustomTesters, subsetEqualityWithContext(seenReferences)]);
  48667. return seenReferences.delete(subset2[key]), result;
  48668. });
  48669. };
  48670. return subsetEqualityWithContext()(object, subset);
  48671. }
  48672. function typeEquality(a3, b) {
  48673. if (!(a3 == null || b == null || a3.constructor === b.constructor))
  48674. return !1;
  48675. }
  48676. function arrayBufferEquality(a3, b) {
  48677. let dataViewA = a3, dataViewB = b;
  48678. if (!(a3 instanceof DataView && b instanceof DataView)) {
  48679. if (!(a3 instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
  48680. return;
  48681. try {
  48682. dataViewA = new DataView(a3), dataViewB = new DataView(b);
  48683. } catch {
  48684. return;
  48685. }
  48686. }
  48687. if (dataViewA.byteLength !== dataViewB.byteLength)
  48688. return !1;
  48689. for (let i = 0; i < dataViewA.byteLength; i++)
  48690. if (dataViewA.getUint8(i) !== dataViewB.getUint8(i))
  48691. return !1;
  48692. return !0;
  48693. }
  48694. function sparseArrayEquality(a3, b, customTesters = []) {
  48695. if (!Array.isArray(a3) || !Array.isArray(b))
  48696. return;
  48697. let aKeys = Object.keys(a3), bKeys = Object.keys(b), filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);
  48698. return equals(a3, b, filteredCustomTesters, !0) && equals(aKeys, bKeys);
  48699. }
  48700. function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") {
  48701. let toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;
  48702. return ["toStrictEqual", "toEqual"].includes(deepEqualityName) ? `${toBeMessage}
  48703. If it should pass with deep equality, replace "toBe" with "${deepEqualityName}"
  48704. Expected: ${expected}
  48705. Received: serializes to the same string
  48706. ` : toBeMessage;
  48707. }
  48708. function pluralize(word, count) {
  48709. return `${count} ${word}${count === 1 ? "" : "s"}`;
  48710. }
  48711. function getObjectKeys(object) {
  48712. return [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((s3) => {
  48713. var _Object$getOwnPropert;
  48714. return (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(object, s3)) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.enumerable;
  48715. })];
  48716. }
  48717. function getObjectSubset(object, subset, customTesters) {
  48718. let stripped = 0, getObjectSubsetWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {
  48719. if (Array.isArray(object2)) {
  48720. if (Array.isArray(subset2) && subset2.length === object2.length)
  48721. return subset2.map((sub, i) => getObjectSubsetWithContext(seenReferences)(object2[i], sub));
  48722. } else {
  48723. if (object2 instanceof Date)
  48724. return object2;
  48725. if (isObject5(object2) && isObject5(subset2)) {
  48726. if (equals(object2, subset2, [
  48727. ...customTesters,
  48728. iterableEquality,
  48729. subsetEquality
  48730. ]))
  48731. return subset2;
  48732. let trimmed = {};
  48733. seenReferences.set(object2, trimmed), typeof object2.constructor == "function" && typeof object2.constructor.name == "string" && Object.defineProperty(trimmed, "constructor", {
  48734. enumerable: !1,
  48735. value: object2.constructor
  48736. });
  48737. for (let key of getObjectKeys(object2))
  48738. hasPropertyInObject(subset2, key) ? trimmed[key] = seenReferences.has(object2[key]) ? seenReferences.get(object2[key]) : getObjectSubsetWithContext(seenReferences)(object2[key], subset2[key]) : seenReferences.has(object2[key]) || (stripped += 1, isObject5(object2[key]) && (stripped += getObjectKeys(object2[key]).length), getObjectSubsetWithContext(seenReferences)(object2[key], subset2[key]));
  48739. if (getObjectKeys(trimmed).length > 0)
  48740. return trimmed;
  48741. }
  48742. }
  48743. return object2;
  48744. };
  48745. return {
  48746. subset: getObjectSubsetWithContext()(object, subset),
  48747. stripped
  48748. };
  48749. }
  48750. if (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {
  48751. let globalState = /* @__PURE__ */ new WeakMap();
  48752. Object.defineProperty(globalThis, MATCHERS_OBJECT, { get: () => globalState });
  48753. }
  48754. if (!Object.prototype.hasOwnProperty.call(globalThis, JEST_MATCHERS_OBJECT)) {
  48755. let matchers = /* @__PURE__ */ Object.create(null), customEqualityTesters = [];
  48756. Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {
  48757. configurable: !0,
  48758. get: () => ({
  48759. state: globalThis[MATCHERS_OBJECT].get(globalThis[GLOBAL_EXPECT]),
  48760. matchers,
  48761. customEqualityTesters
  48762. })
  48763. });
  48764. }
  48765. if (!Object.prototype.hasOwnProperty.call(globalThis, ASYMMETRIC_MATCHERS_OBJECT)) {
  48766. let asymmetricMatchers = /* @__PURE__ */ Object.create(null);
  48767. Object.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, { get: () => asymmetricMatchers });
  48768. }
  48769. function getState(expect4) {
  48770. return globalThis[MATCHERS_OBJECT].get(expect4);
  48771. }
  48772. function setState(state3, expect4) {
  48773. let map2 = globalThis[MATCHERS_OBJECT], current = map2.get(expect4) || {}, results = Object.defineProperties(current, {
  48774. ...Object.getOwnPropertyDescriptors(current),
  48775. ...Object.getOwnPropertyDescriptors(state3)
  48776. });
  48777. map2.set(expect4, results);
  48778. }
  48779. var AsymmetricMatcher3 = class {
  48780. // should have "jest" to be compatible with its ecosystem
  48781. $$typeof = Symbol.for("jest.asymmetricMatcher");
  48782. constructor(sample2, inverse = !1) {
  48783. this.sample = sample2, this.inverse = inverse;
  48784. }
  48785. getMatcherContext(expect4) {
  48786. return {
  48787. ...getState(expect4 || globalThis[GLOBAL_EXPECT]),
  48788. equals,
  48789. isNot: this.inverse,
  48790. customTesters: getCustomEqualityTesters(),
  48791. utils: {
  48792. ...getMatcherUtils(),
  48793. diff,
  48794. stringify: stringify5,
  48795. iterableEquality,
  48796. subsetEquality
  48797. }
  48798. };
  48799. }
  48800. };
  48801. AsymmetricMatcher3.prototype[Symbol.for("chai/inspect")] = function(options) {
  48802. let result = stringify5(this, options.depth, { min: !0 });
  48803. return result.length <= options.truncate ? result : `${this.toString()}{\u2026}`;
  48804. };
  48805. var StringContaining = class extends AsymmetricMatcher3 {
  48806. constructor(sample2, inverse = !1) {
  48807. if (!isA("String", sample2))
  48808. throw new Error("Expected is not a string");
  48809. super(sample2, inverse);
  48810. }
  48811. asymmetricMatch(other) {
  48812. let result = isA("String", other) && other.includes(this.sample);
  48813. return this.inverse ? !result : result;
  48814. }
  48815. toString() {
  48816. return `String${this.inverse ? "Not" : ""}Containing`;
  48817. }
  48818. getExpectedType() {
  48819. return "string";
  48820. }
  48821. }, Anything = class extends AsymmetricMatcher3 {
  48822. asymmetricMatch(other) {
  48823. return other != null;
  48824. }
  48825. toString() {
  48826. return "Anything";
  48827. }
  48828. toAsymmetricMatcher() {
  48829. return "Anything";
  48830. }
  48831. }, ObjectContaining = class extends AsymmetricMatcher3 {
  48832. constructor(sample2, inverse = !1) {
  48833. super(sample2, inverse);
  48834. }
  48835. getPrototype(obj) {
  48836. return Object.getPrototypeOf ? Object.getPrototypeOf(obj) : obj.constructor.prototype === obj ? null : obj.constructor.prototype;
  48837. }
  48838. hasProperty(obj, property) {
  48839. return obj ? Object.prototype.hasOwnProperty.call(obj, property) ? !0 : this.hasProperty(this.getPrototype(obj), property) : !1;
  48840. }
  48841. asymmetricMatch(other) {
  48842. if (typeof this.sample != "object")
  48843. throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);
  48844. let result = !0, matcherContext = this.getMatcherContext();
  48845. for (let property in this.sample)
  48846. if (!this.hasProperty(other, property) || !equals(this.sample[property], other[property], matcherContext.customTesters)) {
  48847. result = !1;
  48848. break;
  48849. }
  48850. return this.inverse ? !result : result;
  48851. }
  48852. toString() {
  48853. return `Object${this.inverse ? "Not" : ""}Containing`;
  48854. }
  48855. getExpectedType() {
  48856. return "object";
  48857. }
  48858. }, ArrayContaining = class extends AsymmetricMatcher3 {
  48859. constructor(sample2, inverse = !1) {
  48860. super(sample2, inverse);
  48861. }
  48862. asymmetricMatch(other) {
  48863. if (!Array.isArray(this.sample))
  48864. throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);
  48865. let matcherContext = this.getMatcherContext(), result = this.sample.length === 0 || Array.isArray(other) && this.sample.every((item) => other.some((another) => equals(item, another, matcherContext.customTesters)));
  48866. return this.inverse ? !result : result;
  48867. }
  48868. toString() {
  48869. return `Array${this.inverse ? "Not" : ""}Containing`;
  48870. }
  48871. getExpectedType() {
  48872. return "array";
  48873. }
  48874. }, Any = class extends AsymmetricMatcher3 {
  48875. constructor(sample2) {
  48876. if (typeof sample2 > "u")
  48877. throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");
  48878. super(sample2);
  48879. }
  48880. fnNameFor(func) {
  48881. if (func.name)
  48882. return func.name;
  48883. let matches4 = Function.prototype.toString.call(func).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);
  48884. return matches4 ? matches4[1] : "<anonymous>";
  48885. }
  48886. asymmetricMatch(other) {
  48887. return this.sample === String ? typeof other == "string" || other instanceof String : this.sample === Number ? typeof other == "number" || other instanceof Number : this.sample === Function ? typeof other == "function" || typeof other == "function" : this.sample === Boolean ? typeof other == "boolean" || other instanceof Boolean : this.sample === BigInt ? typeof other == "bigint" || other instanceof BigInt : this.sample === Symbol ? typeof other == "symbol" || other instanceof Symbol : this.sample === Object ? typeof other == "object" : other instanceof this.sample;
  48888. }
  48889. toString() {
  48890. return "Any";
  48891. }
  48892. getExpectedType() {
  48893. return this.sample === String ? "string" : this.sample === Number ? "number" : this.sample === Function ? "function" : this.sample === Object ? "object" : this.sample === Boolean ? "boolean" : this.fnNameFor(this.sample);
  48894. }
  48895. toAsymmetricMatcher() {
  48896. return `Any<${this.fnNameFor(this.sample)}>`;
  48897. }
  48898. }, StringMatching = class extends AsymmetricMatcher3 {
  48899. constructor(sample2, inverse = !1) {
  48900. if (!isA("String", sample2) && !isA("RegExp", sample2))
  48901. throw new Error("Expected is not a String or a RegExp");
  48902. super(new RegExp(sample2), inverse);
  48903. }
  48904. asymmetricMatch(other) {
  48905. let result = isA("String", other) && this.sample.test(other);
  48906. return this.inverse ? !result : result;
  48907. }
  48908. toString() {
  48909. return `String${this.inverse ? "Not" : ""}Matching`;
  48910. }
  48911. getExpectedType() {
  48912. return "string";
  48913. }
  48914. }, CloseTo = class extends AsymmetricMatcher3 {
  48915. precision;
  48916. constructor(sample2, precision = 2, inverse = !1) {
  48917. if (!isA("Number", sample2))
  48918. throw new Error("Expected is not a Number");
  48919. if (!isA("Number", precision))
  48920. throw new Error("Precision is not a Number");
  48921. super(sample2), this.inverse = inverse, this.precision = precision;
  48922. }
  48923. asymmetricMatch(other) {
  48924. if (!isA("Number", other))
  48925. return !1;
  48926. let result = !1;
  48927. return other === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY || other === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY ? result = !0 : result = Math.abs(this.sample - other) < 10 ** -this.precision / 2, this.inverse ? !result : result;
  48928. }
  48929. toString() {
  48930. return `Number${this.inverse ? "Not" : ""}CloseTo`;
  48931. }
  48932. getExpectedType() {
  48933. return "number";
  48934. }
  48935. toAsymmetricMatcher() {
  48936. return [
  48937. this.toString(),
  48938. this.sample,
  48939. `(${pluralize("digit", this.precision)})`
  48940. ].join(" ");
  48941. }
  48942. }, JestAsymmetricMatchers = (chai, utils) => {
  48943. utils.addMethod(chai.expect, "anything", () => new Anything()), utils.addMethod(chai.expect, "any", (expected) => new Any(expected)), utils.addMethod(chai.expect, "stringContaining", (expected) => new StringContaining(expected)), utils.addMethod(chai.expect, "objectContaining", (expected) => new ObjectContaining(expected)), utils.addMethod(chai.expect, "arrayContaining", (expected) => new ArrayContaining(expected)), utils.addMethod(chai.expect, "stringMatching", (expected) => new StringMatching(expected)), utils.addMethod(chai.expect, "closeTo", (expected, precision) => new CloseTo(expected, precision)), chai.expect.not = {
  48944. stringContaining: (expected) => new StringContaining(expected, !0),
  48945. objectContaining: (expected) => new ObjectContaining(expected, !0),
  48946. arrayContaining: (expected) => new ArrayContaining(expected, !0),
  48947. stringMatching: (expected) => new StringMatching(expected, !0),
  48948. closeTo: (expected, precision) => new CloseTo(expected, precision, !0)
  48949. };
  48950. };
  48951. function createAssertionMessage(util, assertion, hasArgs) {
  48952. let not = util.flag(assertion, "negate") ? "not." : "", name = `${util.flag(assertion, "_name")}(${hasArgs ? "expected" : ""})`, promiseName = util.flag(assertion, "promise");
  48953. return `expect(actual)${promiseName ? `.${promiseName}` : ""}.${not}${name}`;
  48954. }
  48955. function recordAsyncExpect(_test, promise, assertion, error) {
  48956. let test3 = _test;
  48957. if (test3 && promise instanceof Promise) {
  48958. promise = promise.finally(() => {
  48959. if (!test3.promises)
  48960. return;
  48961. let index4 = test3.promises.indexOf(promise);
  48962. index4 !== -1 && test3.promises.splice(index4, 1);
  48963. }), test3.promises || (test3.promises = []), test3.promises.push(promise);
  48964. let resolved = !1;
  48965. return test3.onFinished ?? (test3.onFinished = []), test3.onFinished.push(() => {
  48966. if (!resolved) {
  48967. var _vitest_worker__;
  48968. let stack = (((_vitest_worker__ = globalThis.__vitest_worker__) === null || _vitest_worker__ === void 0 ? void 0 : _vitest_worker__.onFilterStackTrace) || ((s3) => s3 || ""))(error.stack);
  48969. console.warn([
  48970. `Promise returned by \`${assertion}\` was not awaited. `,
  48971. "Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",
  48972. `Please remember to await the assertion.
  48973. `,
  48974. stack
  48975. ].join(""));
  48976. }
  48977. }), {
  48978. then(onFulfilled, onRejected) {
  48979. return resolved = !0, promise.then(onFulfilled, onRejected);
  48980. },
  48981. catch(onRejected) {
  48982. return promise.catch(onRejected);
  48983. },
  48984. finally(onFinally) {
  48985. return promise.finally(onFinally);
  48986. },
  48987. [Symbol.toStringTag]: "Promise"
  48988. };
  48989. }
  48990. return promise;
  48991. }
  48992. function handleTestError(test3, err) {
  48993. var _test$result;
  48994. test3.result || (test3.result = { state: "fail" }), test3.result.state = "fail", (_test$result = test3.result).errors || (_test$result.errors = []), test3.result.errors.push(processError(err));
  48995. }
  48996. function wrapAssertion(utils, name, fn4) {
  48997. return function(...args) {
  48998. if (name !== "withTest" && utils.flag(this, "_name", name), !utils.flag(this, "soft"))
  48999. return fn4.apply(this, args);
  49000. let test3 = utils.flag(this, "vitest-test");
  49001. if (!test3)
  49002. throw new Error("expect.soft() can only be used inside a test");
  49003. try {
  49004. let result = fn4.apply(this, args);
  49005. return result && typeof result == "object" && typeof result.then == "function" ? result.then(noop2, (err) => {
  49006. handleTestError(test3, err);
  49007. }) : result;
  49008. } catch (err) {
  49009. handleTestError(test3, err);
  49010. }
  49011. };
  49012. }
  49013. var JestChaiExpect = (chai, utils) => {
  49014. let { AssertionError: AssertionError2 } = chai, customTesters = getCustomEqualityTesters();
  49015. function def(name, fn4) {
  49016. let addMethod2 = (n) => {
  49017. let softWrapper = wrapAssertion(utils, n, fn4);
  49018. utils.addMethod(chai.Assertion.prototype, n, softWrapper), utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, softWrapper);
  49019. };
  49020. Array.isArray(name) ? name.forEach((n) => addMethod2(n)) : addMethod2(name);
  49021. }
  49022. [
  49023. "throw",
  49024. "throws",
  49025. "Throw"
  49026. ].forEach((m3) => {
  49027. utils.overwriteMethod(chai.Assertion.prototype, m3, (_super) => function(...args) {
  49028. let promise = utils.flag(this, "promise"), object = utils.flag(this, "object"), isNot = utils.flag(this, "negate");
  49029. if (promise === "rejects")
  49030. utils.flag(this, "object", () => {
  49031. throw object;
  49032. });
  49033. else if (promise === "resolves" && typeof object != "function") {
  49034. if (isNot)
  49035. return;
  49036. {
  49037. let message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't", error = { showDiff: !1 };
  49038. throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
  49039. }
  49040. }
  49041. _super.apply(this, args);
  49042. });
  49043. }), def("withTest", function(test3) {
  49044. return utils.flag(this, "vitest-test", test3), this;
  49045. }), def("toEqual", function(expected) {
  49046. let actual = utils.flag(this, "object"), equal = equals(actual, expected, [...customTesters, iterableEquality]);
  49047. return this.assert(equal, "expected #{this} to deeply equal #{exp}", "expected #{this} to not deeply equal #{exp}", expected, actual);
  49048. }), def("toStrictEqual", function(expected) {
  49049. let obj = utils.flag(this, "object"), equal = equals(obj, expected, [
  49050. ...customTesters,
  49051. iterableEquality,
  49052. typeEquality,
  49053. sparseArrayEquality,
  49054. arrayBufferEquality
  49055. ], !0);
  49056. return this.assert(equal, "expected #{this} to strictly equal #{exp}", "expected #{this} to not strictly equal #{exp}", expected, obj);
  49057. }), def("toBe", function(expected) {
  49058. let actual = this._obj, pass = Object.is(actual, expected), deepEqualityName = "";
  49059. return pass || (equals(actual, expected, [
  49060. ...customTesters,
  49061. iterableEquality,
  49062. typeEquality,
  49063. sparseArrayEquality,
  49064. arrayBufferEquality
  49065. ], !0) ? deepEqualityName = "toStrictEqual" : equals(actual, expected, [...customTesters, iterableEquality]) && (deepEqualityName = "toEqual")), this.assert(pass, generateToBeMessage(deepEqualityName), "expected #{this} not to be #{exp} // Object.is equality", expected, actual);
  49066. }), def("toMatchObject", function(expected) {
  49067. let actual = this._obj, pass = equals(actual, expected, [
  49068. ...customTesters,
  49069. iterableEquality,
  49070. subsetEquality
  49071. ]), isNot = utils.flag(this, "negate"), { subset: actualSubset, stripped } = getObjectSubset(actual, expected, customTesters);
  49072. if (pass && isNot || !pass && !isNot) {
  49073. let msg = utils.getMessage(this, [
  49074. pass,
  49075. "expected #{this} to match object #{exp}",
  49076. "expected #{this} to not match object #{exp}",
  49077. expected,
  49078. actualSubset,
  49079. !1
  49080. ]), message = stripped === 0 ? msg : `${msg}
  49081. (${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`;
  49082. throw new AssertionError2(message, {
  49083. showDiff: !0,
  49084. expected,
  49085. actual: actualSubset
  49086. });
  49087. }
  49088. }), def("toMatch", function(expected) {
  49089. let actual = this._obj;
  49090. if (typeof actual != "string")
  49091. throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof actual}`);
  49092. return this.assert(typeof expected == "string" ? actual.includes(expected) : actual.match(expected), "expected #{this} to match #{exp}", "expected #{this} not to match #{exp}", expected, actual);
  49093. }), def("toContain", function(item) {
  49094. let actual = this._obj;
  49095. if (typeof Node < "u" && actual instanceof Node) {
  49096. if (!(item instanceof Node))
  49097. throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof item}`);
  49098. return this.assert(actual.contains(item), "expected #{this} to contain element #{exp}", "expected #{this} not to contain element #{exp}", item, actual);
  49099. }
  49100. if (typeof DOMTokenList < "u" && actual instanceof DOMTokenList) {
  49101. assertTypes(item, "class name", ["string"]);
  49102. let expectedClassList = utils.flag(this, "negate") ? actual.value.replace(item, "").trim() : `${actual.value} ${item}`;
  49103. return this.assert(actual.contains(item), `expected "${actual.value}" to contain "${item}"`, `expected "${actual.value}" not to contain "${item}"`, expectedClassList, actual.value);
  49104. }
  49105. return typeof actual == "string" && typeof item == "string" ? this.assert(actual.includes(item), "expected #{this} to contain #{exp}", "expected #{this} not to contain #{exp}", item, actual) : (actual != null && typeof actual != "string" && utils.flag(this, "object", Array.from(actual)), this.contain(item));
  49106. }), def("toContainEqual", function(expected) {
  49107. let obj = utils.flag(this, "object"), index4 = Array.from(obj).findIndex((item) => equals(item, expected, customTesters));
  49108. this.assert(index4 !== -1, "expected #{this} to deep equally contain #{exp}", "expected #{this} to not deep equally contain #{exp}", expected);
  49109. }), def("toBeTruthy", function() {
  49110. let obj = utils.flag(this, "object");
  49111. this.assert(!!obj, "expected #{this} to be truthy", "expected #{this} to not be truthy", !0, obj);
  49112. }), def("toBeFalsy", function() {
  49113. let obj = utils.flag(this, "object");
  49114. this.assert(!obj, "expected #{this} to be falsy", "expected #{this} to not be falsy", !1, obj);
  49115. }), def("toBeGreaterThan", function(expected) {
  49116. let actual = this._obj;
  49117. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual > expected, `expected ${actual} to be greater than ${expected}`, `expected ${actual} to be not greater than ${expected}`, expected, actual, !1);
  49118. }), def("toBeGreaterThanOrEqual", function(expected) {
  49119. let actual = this._obj;
  49120. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual >= expected, `expected ${actual} to be greater than or equal to ${expected}`, `expected ${actual} to be not greater than or equal to ${expected}`, expected, actual, !1);
  49121. }), def("toBeLessThan", function(expected) {
  49122. let actual = this._obj;
  49123. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual < expected, `expected ${actual} to be less than ${expected}`, `expected ${actual} to be not less than ${expected}`, expected, actual, !1);
  49124. }), def("toBeLessThanOrEqual", function(expected) {
  49125. let actual = this._obj;
  49126. return assertTypes(actual, "actual", ["number", "bigint"]), assertTypes(expected, "expected", ["number", "bigint"]), this.assert(actual <= expected, `expected ${actual} to be less than or equal to ${expected}`, `expected ${actual} to be not less than or equal to ${expected}`, expected, actual, !1);
  49127. }), def("toBeNaN", function() {
  49128. let obj = utils.flag(this, "object");
  49129. this.assert(Number.isNaN(obj), "expected #{this} to be NaN", "expected #{this} not to be NaN", Number.NaN, obj);
  49130. }), def("toBeUndefined", function() {
  49131. let obj = utils.flag(this, "object");
  49132. this.assert(obj === void 0, "expected #{this} to be undefined", "expected #{this} not to be undefined", void 0, obj);
  49133. }), def("toBeNull", function() {
  49134. let obj = utils.flag(this, "object");
  49135. this.assert(obj === null, "expected #{this} to be null", "expected #{this} not to be null", null, obj);
  49136. }), def("toBeDefined", function() {
  49137. let obj = utils.flag(this, "object");
  49138. this.assert(typeof obj < "u", "expected #{this} to be defined", "expected #{this} to be undefined", obj);
  49139. }), def("toBeTypeOf", function(expected) {
  49140. let actual = typeof this._obj, equal = expected === actual;
  49141. return this.assert(equal, "expected #{this} to be type of #{exp}", "expected #{this} not to be type of #{exp}", expected, actual);
  49142. }), def("toBeInstanceOf", function(obj) {
  49143. return this.instanceOf(obj);
  49144. }), def("toHaveLength", function(length2) {
  49145. return this.have.length(length2);
  49146. }), def("toHaveProperty", function(...args) {
  49147. Array.isArray(args[0]) && (args[0] = args[0].map((key) => String(key).replace(/([.[\]])/g, "\\$1")).join("."));
  49148. let actual = this._obj, [propertyName, expected] = args, getValue2 = () => Object.prototype.hasOwnProperty.call(actual, propertyName) ? {
  49149. value: actual[propertyName],
  49150. exists: !0
  49151. } : utils.getPathInfo(actual, propertyName), { value, exists } = getValue2(), pass = exists && (args.length === 1 || equals(expected, value, customTesters)), valueString = args.length === 1 ? "" : ` with value ${utils.objDisplay(expected)}`;
  49152. return this.assert(pass, `expected #{this} to have property "${propertyName}"${valueString}`, `expected #{this} to not have property "${propertyName}"${valueString}`, expected, exists ? value : void 0);
  49153. }), def("toBeCloseTo", function(received, precision = 2) {
  49154. let expected = this._obj, pass = !1, expectedDiff2 = 0, receivedDiff = 0;
  49155. return received === Number.POSITIVE_INFINITY && expected === Number.POSITIVE_INFINITY || received === Number.NEGATIVE_INFINITY && expected === Number.NEGATIVE_INFINITY ? pass = !0 : (expectedDiff2 = 10 ** -precision / 2, receivedDiff = Math.abs(expected - received), pass = receivedDiff < expectedDiff2), this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff2}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff2}`, received, expected, !1);
  49156. });
  49157. function assertIsMock(assertion) {
  49158. if (!isMockFunction2(assertion._obj))
  49159. throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);
  49160. }
  49161. function getSpy(assertion) {
  49162. return assertIsMock(assertion), assertion._obj;
  49163. }
  49164. def(["toHaveBeenCalledTimes", "toBeCalledTimes"], function(number) {
  49165. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length;
  49166. return this.assert(callCount === number, `expected "${spyName}" to be called #{exp} times, but got ${callCount} times`, `expected "${spyName}" to not be called #{exp} times`, number, callCount, !1);
  49167. }), def("toHaveBeenCalledOnce", function() {
  49168. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length;
  49169. return this.assert(callCount === 1, `expected "${spyName}" to be called once, but got ${callCount} times`, `expected "${spyName}" to not be called once`, 1, callCount, !1);
  49170. }), def(["toHaveBeenCalled", "toBeCalled"], function() {
  49171. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length, called = callCount > 0, isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [
  49172. called,
  49173. `expected "${spyName}" to be called at least once`,
  49174. `expected "${spyName}" to not be called at all, but actually been called ${callCount} times`,
  49175. !0,
  49176. called
  49177. ]);
  49178. if (called && isNot && (msg = formatCalls(spy, msg)), called && isNot || !called && !isNot)
  49179. throw new AssertionError2(msg);
  49180. });
  49181. function equalsArgumentArray(a3, b) {
  49182. return a3.length === b.length && a3.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));
  49183. }
  49184. def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
  49185. let spy = getSpy(this), spyName = spy.getMockName(), pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args)), isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [
  49186. pass,
  49187. `expected "${spyName}" to be called with arguments: #{exp}`,
  49188. `expected "${spyName}" to not be called with arguments: #{exp}`,
  49189. args
  49190. ]);
  49191. if (pass && isNot || !pass && !isNot)
  49192. throw new AssertionError2(formatCalls(spy, msg, args));
  49193. }), def("toHaveBeenCalledExactlyOnceWith", function(...args) {
  49194. let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length, pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args)) && callCount === 1, isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [
  49195. pass,
  49196. `expected "${spyName}" to be called once with arguments: #{exp}`,
  49197. `expected "${spyName}" to not be called once with arguments: #{exp}`,
  49198. args
  49199. ]);
  49200. if (pass && isNot || !pass && !isNot)
  49201. throw new AssertionError2(formatCalls(spy, msg, args));
  49202. }), def(["toHaveBeenNthCalledWith", "nthCalledWith"], function(times, ...args) {
  49203. let spy = getSpy(this), spyName = spy.getMockName(), nthCall = spy.mock.calls[times - 1], callCount = spy.mock.calls.length, isCalled = times <= callCount;
  49204. this.assert(nthCall && equalsArgumentArray(nthCall, args), `expected ${ordinalOf(times)} "${spyName}" call to have been called with #{exp}${isCalled ? "" : `, but called only ${callCount} times`}`, `expected ${ordinalOf(times)} "${spyName}" call to not have been called with #{exp}`, args, nthCall, isCalled);
  49205. }), def(["toHaveBeenLastCalledWith", "lastCalledWith"], function(...args) {
  49206. let spy = getSpy(this), spyName = spy.getMockName(), lastCall = spy.mock.calls[spy.mock.calls.length - 1];
  49207. this.assert(lastCall && equalsArgumentArray(lastCall, args), `expected last "${spyName}" call to have been called with #{exp}`, `expected last "${spyName}" call to not have been called with #{exp}`, args, lastCall);
  49208. });
  49209. function isSpyCalledBeforeAnotherSpy(beforeSpy, afterSpy, failIfNoFirstInvocation) {
  49210. let beforeInvocationCallOrder = beforeSpy.mock.invocationCallOrder, afterInvocationCallOrder = afterSpy.mock.invocationCallOrder;
  49211. return beforeInvocationCallOrder.length === 0 ? !failIfNoFirstInvocation : afterInvocationCallOrder.length === 0 ? !1 : beforeInvocationCallOrder[0] < afterInvocationCallOrder[0];
  49212. }
  49213. def(["toHaveBeenCalledBefore"], function(resultSpy, failIfNoFirstInvocation = !0) {
  49214. let expectSpy = getSpy(this);
  49215. if (!isMockFunction2(resultSpy))
  49216. throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
  49217. this.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called before "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called before "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
  49218. }), def(["toHaveBeenCalledAfter"], function(resultSpy, failIfNoFirstInvocation = !0) {
  49219. let expectSpy = getSpy(this);
  49220. if (!isMockFunction2(resultSpy))
  49221. throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
  49222. this.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called after "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called after "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
  49223. }), def(["toThrow", "toThrowError"], function(expected) {
  49224. if (typeof expected == "string" || typeof expected > "u" || expected instanceof RegExp)
  49225. return this.throws(expected === "" ? /^$/ : expected);
  49226. let obj = this._obj, promise = utils.flag(this, "promise"), isNot = utils.flag(this, "negate"), thrown = null;
  49227. if (promise === "rejects")
  49228. thrown = obj;
  49229. else if (promise === "resolves" && typeof obj != "function") {
  49230. if (isNot)
  49231. return;
  49232. {
  49233. let message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't", error = { showDiff: !1 };
  49234. throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
  49235. }
  49236. } else {
  49237. let isThrow = !1;
  49238. try {
  49239. obj();
  49240. } catch (err) {
  49241. isThrow = !0, thrown = err;
  49242. }
  49243. if (!isThrow && !isNot) {
  49244. let message = utils.flag(this, "message") || "expected function to throw an error, but it didn't", error = { showDiff: !1 };
  49245. throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
  49246. }
  49247. }
  49248. if (typeof expected == "function") {
  49249. let name = expected.name || expected.prototype.constructor.name;
  49250. return this.assert(thrown && thrown instanceof expected, `expected error to be instance of ${name}`, `expected error not to be instance of ${name}`, expected, thrown);
  49251. }
  49252. if (expected instanceof Error) {
  49253. let equal = equals(thrown, expected, [...customTesters, iterableEquality]);
  49254. return this.assert(equal, "expected a thrown error to be #{exp}", "expected a thrown error not to be #{exp}", expected, thrown);
  49255. }
  49256. if (typeof expected == "object" && "asymmetricMatch" in expected && typeof expected.asymmetricMatch == "function") {
  49257. let matcher = expected;
  49258. return this.assert(thrown && matcher.asymmetricMatch(thrown), "expected error to match asymmetric matcher", "expected error not to match asymmetric matcher", matcher, thrown);
  49259. }
  49260. throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"`);
  49261. }), [{
  49262. name: "toHaveResolved",
  49263. condition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type: type5 }) => type5 === "fulfilled"),
  49264. action: "resolved"
  49265. }, {
  49266. name: ["toHaveReturned", "toReturn"],
  49267. condition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type: type5 }) => type5 !== "throw"),
  49268. action: "called"
  49269. }].forEach(({ name, condition, action: action2 }) => {
  49270. def(name, function() {
  49271. let spy = getSpy(this), spyName = spy.getMockName(), pass = condition(spy);
  49272. this.assert(pass, `expected "${spyName}" to be successfully ${action2} at least once`, `expected "${spyName}" to not be successfully ${action2}`, pass, !pass, !1);
  49273. });
  49274. }), [{
  49275. name: "toHaveResolvedTimes",
  49276. condition: (spy, times) => spy.mock.settledResults.reduce((s3, { type: type5 }) => type5 === "fulfilled" ? ++s3 : s3, 0) === times,
  49277. action: "resolved"
  49278. }, {
  49279. name: ["toHaveReturnedTimes", "toReturnTimes"],
  49280. condition: (spy, times) => spy.mock.results.reduce((s3, { type: type5 }) => type5 === "throw" ? s3 : ++s3, 0) === times,
  49281. action: "called"
  49282. }].forEach(({ name, condition, action: action2 }) => {
  49283. def(name, function(times) {
  49284. let spy = getSpy(this), spyName = spy.getMockName(), pass = condition(spy, times);
  49285. this.assert(pass, `expected "${spyName}" to be successfully ${action2} ${times} times`, `expected "${spyName}" to not be successfully ${action2} ${times} times`, `expected resolved times: ${times}`, `received resolved times: ${pass}`, !1);
  49286. });
  49287. }), [{
  49288. name: "toHaveResolvedWith",
  49289. condition: (spy, value) => spy.mock.settledResults.some(({ type: type5, value: result }) => type5 === "fulfilled" && equals(value, result)),
  49290. action: "resolve"
  49291. }, {
  49292. name: ["toHaveReturnedWith", "toReturnWith"],
  49293. condition: (spy, value) => spy.mock.results.some(({ type: type5, value: result }) => type5 === "return" && equals(value, result)),
  49294. action: "return"
  49295. }].forEach(({ name, condition, action: action2 }) => {
  49296. def(name, function(value) {
  49297. let spy = getSpy(this), pass = condition(spy, value), isNot = utils.flag(this, "negate");
  49298. if (pass && isNot || !pass && !isNot) {
  49299. let spyName = spy.getMockName(), msg = utils.getMessage(this, [
  49300. pass,
  49301. `expected "${spyName}" to ${action2} with: #{exp} at least once`,
  49302. `expected "${spyName}" to not ${action2} with: #{exp}`,
  49303. value
  49304. ]), results = action2 === "return" ? spy.mock.results : spy.mock.settledResults;
  49305. throw new AssertionError2(formatReturns(spy, results, msg, value));
  49306. }
  49307. });
  49308. }), [{
  49309. name: "toHaveLastResolvedWith",
  49310. condition: (spy, value) => {
  49311. let result = spy.mock.settledResults[spy.mock.settledResults.length - 1];
  49312. return result && result.type === "fulfilled" && equals(result.value, value);
  49313. },
  49314. action: "resolve"
  49315. }, {
  49316. name: ["toHaveLastReturnedWith", "lastReturnedWith"],
  49317. condition: (spy, value) => {
  49318. let result = spy.mock.results[spy.mock.results.length - 1];
  49319. return result && result.type === "return" && equals(result.value, value);
  49320. },
  49321. action: "return"
  49322. }].forEach(({ name, condition, action: action2 }) => {
  49323. def(name, function(value) {
  49324. let spy = getSpy(this), results = action2 === "return" ? spy.mock.results : spy.mock.settledResults, result = results[results.length - 1], spyName = spy.getMockName();
  49325. this.assert(condition(spy, value), `expected last "${spyName}" call to ${action2} #{exp}`, `expected last "${spyName}" call to not ${action2} #{exp}`, value, result?.value);
  49326. });
  49327. }), [{
  49328. name: "toHaveNthResolvedWith",
  49329. condition: (spy, index4, value) => {
  49330. let result = spy.mock.settledResults[index4 - 1];
  49331. return result && result.type === "fulfilled" && equals(result.value, value);
  49332. },
  49333. action: "resolve"
  49334. }, {
  49335. name: ["toHaveNthReturnedWith", "nthReturnedWith"],
  49336. condition: (spy, index4, value) => {
  49337. let result = spy.mock.results[index4 - 1];
  49338. return result && result.type === "return" && equals(result.value, value);
  49339. },
  49340. action: "return"
  49341. }].forEach(({ name, condition, action: action2 }) => {
  49342. def(name, function(nthCall, value) {
  49343. let spy = getSpy(this), spyName = spy.getMockName(), result = (action2 === "return" ? spy.mock.results : spy.mock.settledResults)[nthCall - 1], ordinalCall = `${ordinalOf(nthCall)} call`;
  49344. this.assert(condition(spy, nthCall, value), `expected ${ordinalCall} "${spyName}" call to ${action2} #{exp}`, `expected ${ordinalCall} "${spyName}" call to not ${action2} #{exp}`, value, result?.value);
  49345. });
  49346. }), def("withContext", function(context) {
  49347. for (let key in context)
  49348. utils.flag(this, key, context[key]);
  49349. return this;
  49350. }), utils.addProperty(chai.Assertion.prototype, "resolves", function() {
  49351. let error = new Error("resolves");
  49352. utils.flag(this, "promise", "resolves"), utils.flag(this, "error", error);
  49353. let test3 = utils.flag(this, "vitest-test"), obj = utils.flag(this, "object");
  49354. if (utils.flag(this, "poll"))
  49355. throw new SyntaxError("expect.poll() is not supported in combination with .resolves");
  49356. if (typeof obj?.then != "function")
  49357. throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);
  49358. let proxy = new Proxy(this, { get: (target, key, receiver) => {
  49359. let result = Reflect.get(target, key, receiver);
  49360. return typeof result != "function" ? result instanceof chai.Assertion ? proxy : result : (...args) => {
  49361. utils.flag(this, "_name", key);
  49362. let promise = obj.then((value) => (utils.flag(this, "object", value), result.call(this, ...args)), (err) => {
  49363. let _error = new AssertionError2(`promise rejected "${utils.inspect(err)}" instead of resolving`, { showDiff: !1 });
  49364. throw _error.cause = err, _error.stack = error.stack.replace(error.message, _error.message), _error;
  49365. });
  49366. return recordAsyncExpect(test3, promise, createAssertionMessage(utils, this, !!args.length), error);
  49367. };
  49368. } });
  49369. return proxy;
  49370. }), utils.addProperty(chai.Assertion.prototype, "rejects", function() {
  49371. let error = new Error("rejects");
  49372. utils.flag(this, "promise", "rejects"), utils.flag(this, "error", error);
  49373. let test3 = utils.flag(this, "vitest-test"), obj = utils.flag(this, "object"), wrapper = typeof obj == "function" ? obj() : obj;
  49374. if (utils.flag(this, "poll"))
  49375. throw new SyntaxError("expect.poll() is not supported in combination with .rejects");
  49376. if (typeof wrapper?.then != "function")
  49377. throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);
  49378. let proxy = new Proxy(this, { get: (target, key, receiver) => {
  49379. let result = Reflect.get(target, key, receiver);
  49380. return typeof result != "function" ? result instanceof chai.Assertion ? proxy : result : (...args) => {
  49381. utils.flag(this, "_name", key);
  49382. let promise = wrapper.then((value) => {
  49383. let _error = new AssertionError2(`promise resolved "${utils.inspect(value)}" instead of rejecting`, {
  49384. showDiff: !0,
  49385. expected: new Error("rejected promise"),
  49386. actual: value
  49387. });
  49388. throw _error.stack = error.stack.replace(error.message, _error.message), _error;
  49389. }, (err) => (utils.flag(this, "object", err), result.call(this, ...args)));
  49390. return recordAsyncExpect(test3, promise, createAssertionMessage(utils, this, !!args.length), error);
  49391. };
  49392. } });
  49393. return proxy;
  49394. });
  49395. };
  49396. function ordinalOf(i) {
  49397. let j = i % 10, k = i % 100;
  49398. return j === 1 && k !== 11 ? `${i}st` : j === 2 && k !== 12 ? `${i}nd` : j === 3 && k !== 13 ? `${i}rd` : `${i}th`;
  49399. }
  49400. function formatCalls(spy, msg, showActualCall) {
  49401. return spy.mock.calls.length && (msg += s2.gray(`
  49402. Received:
  49403. ${spy.mock.calls.map((callArg, i) => {
  49404. let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:
  49405. `);
  49406. return showActualCall ? methodCall += diff(showActualCall, callArg, { omitAnnotationLines: !0 }) : methodCall += stringify5(callArg).split(`
  49407. `).map((line2) => ` ${line2}`).join(`
  49408. `), methodCall += `
  49409. `, methodCall;
  49410. }).join(`
  49411. `)}`)), msg += s2.gray(`
  49412. Number of calls: ${s2.bold(spy.mock.calls.length)}
  49413. `), msg;
  49414. }
  49415. function formatReturns(spy, results, msg, showActualReturn) {
  49416. return results.length && (msg += s2.gray(`
  49417. Received:
  49418. ${results.map((callReturn, i) => {
  49419. let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:
  49420. `);
  49421. return showActualReturn ? methodCall += diff(showActualReturn, callReturn.value, { omitAnnotationLines: !0 }) : methodCall += stringify5(callReturn).split(`
  49422. `).map((line2) => ` ${line2}`).join(`
  49423. `), methodCall += `
  49424. `, methodCall;
  49425. }).join(`
  49426. `)}`)), msg += s2.gray(`
  49427. Number of calls: ${s2.bold(spy.mock.calls.length)}
  49428. `), msg;
  49429. }
  49430. function getMatcherState(assertion, expect4) {
  49431. let obj = assertion._obj, isNot = utils_exports.flag(assertion, "negate"), promise = utils_exports.flag(assertion, "promise") || "", jestUtils = {
  49432. ...getMatcherUtils(),
  49433. diff,
  49434. stringify: stringify5,
  49435. iterableEquality,
  49436. subsetEquality
  49437. };
  49438. return {
  49439. state: {
  49440. ...getState(expect4),
  49441. customTesters: getCustomEqualityTesters(),
  49442. isNot,
  49443. utils: jestUtils,
  49444. promise,
  49445. equals,
  49446. suppressedErrors: [],
  49447. soft: utils_exports.flag(assertion, "soft"),
  49448. poll: utils_exports.flag(assertion, "poll")
  49449. },
  49450. isNot,
  49451. obj
  49452. };
  49453. }
  49454. var JestExtendError = class extends Error {
  49455. constructor(message, actual, expected) {
  49456. super(message), this.actual = actual, this.expected = expected;
  49457. }
  49458. };
  49459. function JestExtendPlugin(c, expect4, matchers) {
  49460. return (_, utils) => {
  49461. Object.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {
  49462. function expectWrapper(...args) {
  49463. let { state: state3, isNot, obj } = getMatcherState(this, expect4), result = expectAssertion.call(state3, obj, ...args);
  49464. if (result && typeof result == "object" && typeof result.then == "function")
  49465. return result.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => {
  49466. if (pass2 && isNot || !pass2 && !isNot)
  49467. throw new JestExtendError(message2(), actual2, expected2);
  49468. });
  49469. let { pass, message, actual, expected } = result;
  49470. if (pass && isNot || !pass && !isNot)
  49471. throw new JestExtendError(message(), actual, expected);
  49472. }
  49473. let softWrapper = wrapAssertion(utils, expectAssertionName, expectWrapper);
  49474. utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper), utils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper);
  49475. class CustomMatcher extends AsymmetricMatcher3 {
  49476. constructor(inverse = !1, ...sample2) {
  49477. super(sample2, inverse);
  49478. }
  49479. asymmetricMatch(other) {
  49480. let { pass } = expectAssertion.call(this.getMatcherContext(expect4), other, ...this.sample);
  49481. return this.inverse ? !pass : pass;
  49482. }
  49483. toString() {
  49484. return `${this.inverse ? "not." : ""}${expectAssertionName}`;
  49485. }
  49486. getExpectedType() {
  49487. return "any";
  49488. }
  49489. toAsymmetricMatcher() {
  49490. return `${this.toString()}<${this.sample.map((item) => stringify5(item)).join(", ")}>`;
  49491. }
  49492. }
  49493. let customMatcher = (...sample2) => new CustomMatcher(!1, ...sample2);
  49494. Object.defineProperty(expect4, expectAssertionName, {
  49495. configurable: !0,
  49496. enumerable: !0,
  49497. value: customMatcher,
  49498. writable: !0
  49499. }), Object.defineProperty(expect4.not, expectAssertionName, {
  49500. configurable: !0,
  49501. enumerable: !0,
  49502. value: (...sample2) => new CustomMatcher(!0, ...sample2),
  49503. writable: !0
  49504. }), Object.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT], expectAssertionName, {
  49505. configurable: !0,
  49506. enumerable: !0,
  49507. value: customMatcher,
  49508. writable: !0
  49509. });
  49510. });
  49511. };
  49512. }
  49513. var JestExtend = (chai, utils) => {
  49514. utils.addMethod(chai.expect, "extend", (expect4, expects) => {
  49515. use2(JestExtendPlugin(chai, expect4, expects));
  49516. });
  49517. };
  49518. // src/test/expect.ts
  49519. function createExpect() {
  49520. use2(JestExtend), use2(JestChaiExpect), use2(JestAsymmetricMatchers);
  49521. let expect4 = ((value, message) => {
  49522. let { assertionCalls } = getState(expect4);
  49523. return setState({ assertionCalls: assertionCalls + 1, soft: !1 }, expect4), expect(value, message);
  49524. });
  49525. Object.assign(expect4, expect), expect4.getState = () => getState(expect4), expect4.setState = (state3) => setState(state3, expect4), expect4.extend = (expects) => expect.extend(expect4, expects), expect4.soft = (...args) => {
  49526. let assert3 = expect4(...args);
  49527. return expect4.setState({
  49528. soft: !0
  49529. }), assert3;
  49530. }, expect4.extend(customMatchers), expect4.unreachable = (message) => {
  49531. assert.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
  49532. };
  49533. function assertions(expected) {
  49534. let errorGen = () => new Error(
  49535. `expected number of assertions to be ${expected}, but got ${expect4.getState().assertionCalls}`
  49536. );
  49537. "captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(errorGen(), assertions), expect4.setState({
  49538. expectedAssertionsNumber: expected,
  49539. expectedAssertionsNumberErrorGen: errorGen
  49540. });
  49541. }
  49542. function hasAssertions() {
  49543. let error = new Error("expected any number of assertion, but got none");
  49544. "captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(error, hasAssertions), expect4.setState({
  49545. isExpectingAssertions: !0,
  49546. isExpectingAssertionsError: error
  49547. });
  49548. }
  49549. return setState(
  49550. {
  49551. // this should also add "snapshotState" that is added conditionally
  49552. assertionCalls: 0,
  49553. isExpectingAssertions: !1,
  49554. isExpectingAssertionsError: null,
  49555. expectedAssertionsNumber: null,
  49556. expectedAssertionsNumberErrorGen: null
  49557. },
  49558. expect4
  49559. ), utils_exports.addMethod(expect4, "assertions", assertions), utils_exports.addMethod(expect4, "hasAssertions", hasAssertions), expect4.extend(matchers_exports), expect4;
  49560. }
  49561. var expect2 = createExpect();
  49562. Object.defineProperty(globalThis, GLOBAL_EXPECT, {
  49563. value: expect2,
  49564. writable: !0,
  49565. configurable: !0
  49566. });
  49567. // ../../node_modules/tinyspy/dist/index.js
  49568. function f3(e, t, n) {
  49569. Object.defineProperty(e, t, n);
  49570. }
  49571. var u = Symbol.for("tinyspy:spy");
  49572. var P2 = (e) => {
  49573. e.called = !1, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
  49574. }, K = (e) => (f3(e, u, { value: { reset: () => P2(e[u]) } }), e[u]), T = (e) => e[u] || K(e);
  49575. // src/test/spy.ts
  49576. var moduleMockSpies = globalThis.__STORYBOOK_MODULE_MOCK_SPIES__ ??= /* @__PURE__ */ new Set(), listeners = /* @__PURE__ */ new Set();
  49577. function onMockCall(callback) {
  49578. return listeners.add(callback), () => void listeners.delete(callback);
  49579. }
  49580. var spyOn2 = (...args) => {
  49581. let mock = spyOn(...args);
  49582. return reactiveMock(mock);
  49583. };
  49584. function fn2(implementation) {
  49585. let mock = implementation ? fn(implementation) : fn();
  49586. return reactiveMock(mock);
  49587. }
  49588. function reactiveMock(mock) {
  49589. let reactive = listenWhenCalled(mock), originalMockImplementation = reactive.mockImplementation.bind(null);
  49590. return reactive.mockImplementation = (fn4) => listenWhenCalled(originalMockImplementation(fn4)), reactive;
  49591. }
  49592. function listenWhenCalled(mock) {
  49593. let state3 = T(mock), impl = state3.impl;
  49594. return state3.willCall(function(...args) {
  49595. return listeners.forEach((listener) => listener(mock, args)), impl?.apply(this, args);
  49596. }), mock;
  49597. }
  49598. function clearAllMocks() {
  49599. mocks.forEach((spy) => spy.mockClear()), moduleMockSpies.forEach((spy) => spy.mockClear());
  49600. }
  49601. function resetAllMocks() {
  49602. mocks.forEach((spy) => spy.mockReset()), moduleMockSpies.forEach((spy) => spy.mockReset());
  49603. }
  49604. function restoreAllMocks() {
  49605. mocks.forEach((spy) => spy.mockRestore()), moduleMockSpies.forEach((spy) => spy.mockClear());
  49606. }
  49607. function mocked(item, _options = {}) {
  49608. return item;
  49609. }
  49610. // ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
  49611. var dom_esm_exports = {};
  49612. __export(dom_esm_exports, {
  49613. buildQueries: () => buildQueries,
  49614. configure: () => configure,
  49615. createEvent: () => createEvent,
  49616. findAllByAltText: () => findAllByAltText,
  49617. findAllByDisplayValue: () => findAllByDisplayValue,
  49618. findAllByLabelText: () => findAllByLabelText,
  49619. findAllByPlaceholderText: () => findAllByPlaceholderText,
  49620. findAllByRole: () => findAllByRole,
  49621. findAllByTestId: () => findAllByTestId,
  49622. findAllByText: () => findAllByText,
  49623. findAllByTitle: () => findAllByTitle,
  49624. findByAltText: () => findByAltText,
  49625. findByDisplayValue: () => findByDisplayValue,
  49626. findByLabelText: () => findByLabelText,
  49627. findByPlaceholderText: () => findByPlaceholderText,
  49628. findByRole: () => findByRole,
  49629. findByTestId: () => findByTestId,
  49630. findByText: () => findByText,
  49631. findByTitle: () => findByTitle,
  49632. fireEvent: () => fireEvent,
  49633. getAllByAltText: () => getAllByAltText,
  49634. getAllByDisplayValue: () => getAllByDisplayValue,
  49635. getAllByLabelText: () => getAllByLabelTextWithSuggestions,
  49636. getAllByPlaceholderText: () => getAllByPlaceholderText,
  49637. getAllByRole: () => getAllByRole,
  49638. getAllByTestId: () => getAllByTestId,
  49639. getAllByText: () => getAllByText,
  49640. getAllByTitle: () => getAllByTitle,
  49641. getByAltText: () => getByAltText,
  49642. getByDisplayValue: () => getByDisplayValue,
  49643. getByLabelText: () => getByLabelTextWithSuggestions,
  49644. getByPlaceholderText: () => getByPlaceholderText,
  49645. getByRole: () => getByRole,
  49646. getByTestId: () => getByTestId,
  49647. getByText: () => getByText,
  49648. getByTitle: () => getByTitle,
  49649. getConfig: () => getConfig2,
  49650. getDefaultNormalizer: () => getDefaultNormalizer,
  49651. getElementError: () => getElementError,
  49652. getMultipleElementsFoundError: () => getMultipleElementsFoundError,
  49653. getNodeText: () => getNodeText,
  49654. getQueriesForElement: () => getQueriesForElement,
  49655. getRoles: () => getRoles,
  49656. getSuggestedQuery: () => getSuggestedQuery,
  49657. isInaccessible: () => isInaccessible,
  49658. logDOM: () => logDOM,
  49659. logRoles: () => logRoles,
  49660. makeFindQuery: () => makeFindQuery,
  49661. makeGetAllQuery: () => makeGetAllQuery,
  49662. makeSingleQuery: () => makeSingleQuery,
  49663. prettyDOM: () => prettyDOM,
  49664. prettyFormat: () => prettyFormat,
  49665. queries: () => queries,
  49666. queryAllByAltText: () => queryAllByAltTextWithSuggestions,
  49667. queryAllByAttribute: () => queryAllByAttribute,
  49668. queryAllByDisplayValue: () => queryAllByDisplayValueWithSuggestions,
  49669. queryAllByLabelText: () => queryAllByLabelTextWithSuggestions,
  49670. queryAllByPlaceholderText: () => queryAllByPlaceholderTextWithSuggestions,
  49671. queryAllByRole: () => queryAllByRoleWithSuggestions,
  49672. queryAllByTestId: () => queryAllByTestIdWithSuggestions,
  49673. queryAllByText: () => queryAllByTextWithSuggestions,
  49674. queryAllByTitle: () => queryAllByTitleWithSuggestions,
  49675. queryByAltText: () => queryByAltText,
  49676. queryByAttribute: () => queryByAttribute,
  49677. queryByDisplayValue: () => queryByDisplayValue,
  49678. queryByLabelText: () => queryByLabelText,
  49679. queryByPlaceholderText: () => queryByPlaceholderText,
  49680. queryByRole: () => queryByRole,
  49681. queryByTestId: () => queryByTestId,
  49682. queryByText: () => queryByText,
  49683. queryByTitle: () => queryByTitle,
  49684. queryHelpers: () => queryHelpers,
  49685. screen: () => screen,
  49686. waitFor: () => waitForWrapper,
  49687. waitForElementToBeRemoved: () => waitForElementToBeRemoved,
  49688. within: () => getQueriesForElement,
  49689. wrapAllByQueryWithSuggestion: () => wrapAllByQueryWithSuggestion,
  49690. wrapSingleQueryWithSuggestion: () => wrapSingleQueryWithSuggestion
  49691. });
  49692. var prettyFormat = __toESM(require_build());
  49693. // ../../node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
  49694. var toStr2 = Object.prototype.toString;
  49695. function isCallable2(fn4) {
  49696. return typeof fn4 == "function" || toStr2.call(fn4) === "[object Function]";
  49697. }
  49698. function toInteger2(value) {
  49699. var number = Number(value);
  49700. return isNaN(number) ? 0 : number === 0 || !isFinite(number) ? number : (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
  49701. }
  49702. var maxSafeInteger2 = Math.pow(2, 53) - 1;
  49703. function toLength2(value) {
  49704. var len = toInteger2(value);
  49705. return Math.min(Math.max(len, 0), maxSafeInteger2);
  49706. }
  49707. function arrayFrom2(arrayLike, mapFn) {
  49708. var C3 = Array, items = Object(arrayLike);
  49709. if (arrayLike == null)
  49710. throw new TypeError("Array.from requires an array-like object - not null or undefined");
  49711. if (typeof mapFn < "u" && !isCallable2(mapFn))
  49712. throw new TypeError("Array.from: when provided, the second argument must be a function");
  49713. for (var len = toLength2(items.length), A3 = isCallable2(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; )
  49714. kValue = items[k], mapFn ? A3[k] = mapFn(kValue, k) : A3[k] = kValue, k += 1;
  49715. return A3.length = len, A3;
  49716. }
  49717. // ../../node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
  49718. function _typeof4(obj) {
  49719. "@babel/helpers - typeof";
  49720. return _typeof4 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
  49721. return typeof obj2;
  49722. } : function(obj2) {
  49723. return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
  49724. }, _typeof4(obj);
  49725. }
  49726. function _classCallCheck2(instance, Constructor) {
  49727. if (!(instance instanceof Constructor))
  49728. throw new TypeError("Cannot call a class as a function");
  49729. }
  49730. function _defineProperties2(target, props) {
  49731. for (var i = 0; i < props.length; i++) {
  49732. var descriptor = props[i];
  49733. descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, _toPropertyKey3(descriptor.key), descriptor);
  49734. }
  49735. }
  49736. function _createClass2(Constructor, protoProps, staticProps) {
  49737. return protoProps && _defineProperties2(Constructor.prototype, protoProps), staticProps && _defineProperties2(Constructor, staticProps), Object.defineProperty(Constructor, "prototype", { writable: !1 }), Constructor;
  49738. }
  49739. function _defineProperty4(obj, key, value) {
  49740. return key = _toPropertyKey3(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  49741. }
  49742. function _toPropertyKey3(arg) {
  49743. var key = _toPrimitive3(arg, "string");
  49744. return _typeof4(key) === "symbol" ? key : String(key);
  49745. }
  49746. function _toPrimitive3(input2, hint) {
  49747. if (_typeof4(input2) !== "object" || input2 === null) return input2;
  49748. var prim = input2[Symbol.toPrimitive];
  49749. if (prim !== void 0) {
  49750. var res = prim.call(input2, hint || "default");
  49751. if (_typeof4(res) !== "object") return res;
  49752. throw new TypeError("@@toPrimitive must return a primitive value.");
  49753. }
  49754. return (hint === "string" ? String : Number)(input2);
  49755. }
  49756. var SetLike2 = (function() {
  49757. function SetLike3() {
  49758. var items = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  49759. _classCallCheck2(this, SetLike3), _defineProperty4(this, "items", void 0), this.items = items;
  49760. }
  49761. return _createClass2(SetLike3, [{
  49762. key: "add",
  49763. value: function(value) {
  49764. return this.has(value) === !1 && this.items.push(value), this;
  49765. }
  49766. }, {
  49767. key: "clear",
  49768. value: function() {
  49769. this.items = [];
  49770. }
  49771. }, {
  49772. key: "delete",
  49773. value: function(value) {
  49774. var previousLength = this.items.length;
  49775. return this.items = this.items.filter(function(item) {
  49776. return item !== value;
  49777. }), previousLength !== this.items.length;
  49778. }
  49779. }, {
  49780. key: "forEach",
  49781. value: function(callbackfn) {
  49782. var _this = this;
  49783. this.items.forEach(function(item) {
  49784. callbackfn(item, item, _this);
  49785. });
  49786. }
  49787. }, {
  49788. key: "has",
  49789. value: function(value) {
  49790. return this.items.indexOf(value) !== -1;
  49791. }
  49792. }, {
  49793. key: "size",
  49794. get: function() {
  49795. return this.items.length;
  49796. }
  49797. }]), SetLike3;
  49798. })(), SetLike_default2 = typeof Set > "u" ? Set : SetLike2;
  49799. // ../../node_modules/dom-accessibility-api/dist/getRole.mjs
  49800. function getLocalName2(element) {
  49801. var _element$localName;
  49802. return (
  49803. // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
  49804. (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName : (
  49805. // eslint-disable-next-line no-restricted-properties -- required for the fallback
  49806. element.tagName.toLowerCase()
  49807. )
  49808. );
  49809. }
  49810. var localNameToRoleMappings2 = {
  49811. article: "article",
  49812. aside: "complementary",
  49813. button: "button",
  49814. datalist: "listbox",
  49815. dd: "definition",
  49816. details: "group",
  49817. dialog: "dialog",
  49818. dt: "term",
  49819. fieldset: "group",
  49820. figure: "figure",
  49821. // WARNING: Only with an accessible name
  49822. form: "form",
  49823. footer: "contentinfo",
  49824. h1: "heading",
  49825. h2: "heading",
  49826. h3: "heading",
  49827. h4: "heading",
  49828. h5: "heading",
  49829. h6: "heading",
  49830. header: "banner",
  49831. hr: "separator",
  49832. html: "document",
  49833. legend: "legend",
  49834. li: "listitem",
  49835. math: "math",
  49836. main: "main",
  49837. menu: "list",
  49838. nav: "navigation",
  49839. ol: "list",
  49840. optgroup: "group",
  49841. // WARNING: Only in certain context
  49842. option: "option",
  49843. output: "status",
  49844. progress: "progressbar",
  49845. // WARNING: Only with an accessible name
  49846. section: "region",
  49847. summary: "button",
  49848. table: "table",
  49849. tbody: "rowgroup",
  49850. textarea: "textbox",
  49851. tfoot: "rowgroup",
  49852. // WARNING: Only in certain context
  49853. td: "cell",
  49854. th: "columnheader",
  49855. thead: "rowgroup",
  49856. tr: "row",
  49857. ul: "list"
  49858. }, prohibitedAttributes2 = {
  49859. caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49860. code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49861. deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49862. emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49863. generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
  49864. insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49865. paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49866. presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49867. strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49868. subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
  49869. superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
  49870. };
  49871. function hasGlobalAriaAttributes2(element, role) {
  49872. return [
  49873. "aria-atomic",
  49874. "aria-busy",
  49875. "aria-controls",
  49876. "aria-current",
  49877. "aria-describedby",
  49878. "aria-details",
  49879. // "disabled",
  49880. "aria-dropeffect",
  49881. // "errormessage",
  49882. "aria-flowto",
  49883. "aria-grabbed",
  49884. // "haspopup",
  49885. "aria-hidden",
  49886. // "invalid",
  49887. "aria-keyshortcuts",
  49888. "aria-label",
  49889. "aria-labelledby",
  49890. "aria-live",
  49891. "aria-owns",
  49892. "aria-relevant",
  49893. "aria-roledescription"
  49894. ].some(function(attributeName) {
  49895. var _prohibitedAttributes;
  49896. return element.hasAttribute(attributeName) && !((_prohibitedAttributes = prohibitedAttributes2[role]) !== null && _prohibitedAttributes !== void 0 && _prohibitedAttributes.has(attributeName));
  49897. });
  49898. }
  49899. function ignorePresentationalRole2(element, implicitRole) {
  49900. return hasGlobalAriaAttributes2(element, implicitRole);
  49901. }
  49902. function getRole2(element) {
  49903. var explicitRole = getExplicitRole2(element);
  49904. if (explicitRole === null || explicitRole === "presentation") {
  49905. var implicitRole = getImplicitRole2(element);
  49906. if (explicitRole !== "presentation" || ignorePresentationalRole2(element, implicitRole || ""))
  49907. return implicitRole;
  49908. }
  49909. return explicitRole;
  49910. }
  49911. function getImplicitRole2(element) {
  49912. var mappedByTag = localNameToRoleMappings2[getLocalName2(element)];
  49913. if (mappedByTag !== void 0)
  49914. return mappedByTag;
  49915. switch (getLocalName2(element)) {
  49916. case "a":
  49917. case "area":
  49918. case "link":
  49919. if (element.hasAttribute("href"))
  49920. return "link";
  49921. break;
  49922. case "img":
  49923. return element.getAttribute("alt") === "" && !ignorePresentationalRole2(element, "img") ? "presentation" : "img";
  49924. case "input": {
  49925. var _ref = element, type5 = _ref.type;
  49926. switch (type5) {
  49927. case "button":
  49928. case "image":
  49929. case "reset":
  49930. case "submit":
  49931. return "button";
  49932. case "checkbox":
  49933. case "radio":
  49934. return type5;
  49935. case "range":
  49936. return "slider";
  49937. case "email":
  49938. case "tel":
  49939. case "text":
  49940. case "url":
  49941. return element.hasAttribute("list") ? "combobox" : "textbox";
  49942. case "search":
  49943. return element.hasAttribute("list") ? "combobox" : "searchbox";
  49944. case "number":
  49945. return "spinbutton";
  49946. default:
  49947. return null;
  49948. }
  49949. }
  49950. case "select":
  49951. return element.hasAttribute("multiple") || element.size > 1 ? "listbox" : "combobox";
  49952. }
  49953. return null;
  49954. }
  49955. function getExplicitRole2(element) {
  49956. var role = element.getAttribute("role");
  49957. if (role !== null) {
  49958. var explicitRole = role.trim().split(" ")[0];
  49959. if (explicitRole.length > 0)
  49960. return explicitRole;
  49961. }
  49962. return null;
  49963. }
  49964. // ../../node_modules/dom-accessibility-api/dist/util.mjs
  49965. function isElement2(node2) {
  49966. return node2 !== null && node2.nodeType === node2.ELEMENT_NODE;
  49967. }
  49968. function isHTMLTableCaptionElement2(node2) {
  49969. return isElement2(node2) && getLocalName2(node2) === "caption";
  49970. }
  49971. function isHTMLInputElement2(node2) {
  49972. return isElement2(node2) && getLocalName2(node2) === "input";
  49973. }
  49974. function isHTMLOptGroupElement2(node2) {
  49975. return isElement2(node2) && getLocalName2(node2) === "optgroup";
  49976. }
  49977. function isHTMLSelectElement2(node2) {
  49978. return isElement2(node2) && getLocalName2(node2) === "select";
  49979. }
  49980. function isHTMLTableElement2(node2) {
  49981. return isElement2(node2) && getLocalName2(node2) === "table";
  49982. }
  49983. function isHTMLTextAreaElement2(node2) {
  49984. return isElement2(node2) && getLocalName2(node2) === "textarea";
  49985. }
  49986. function safeWindow2(node2) {
  49987. var _ref = node2.ownerDocument === null ? node2 : node2.ownerDocument, defaultView = _ref.defaultView;
  49988. if (defaultView === null)
  49989. throw new TypeError("no window available");
  49990. return defaultView;
  49991. }
  49992. function isHTMLFieldSetElement2(node2) {
  49993. return isElement2(node2) && getLocalName2(node2) === "fieldset";
  49994. }
  49995. function isHTMLLegendElement2(node2) {
  49996. return isElement2(node2) && getLocalName2(node2) === "legend";
  49997. }
  49998. function isHTMLSlotElement2(node2) {
  49999. return isElement2(node2) && getLocalName2(node2) === "slot";
  50000. }
  50001. function isSVGElement2(node2) {
  50002. return isElement2(node2) && node2.ownerSVGElement !== void 0;
  50003. }
  50004. function isSVGSVGElement2(node2) {
  50005. return isElement2(node2) && getLocalName2(node2) === "svg";
  50006. }
  50007. function isSVGTitleElement2(node2) {
  50008. return isSVGElement2(node2) && getLocalName2(node2) === "title";
  50009. }
  50010. function queryIdRefs2(node2, attributeName) {
  50011. if (isElement2(node2) && node2.hasAttribute(attributeName)) {
  50012. var ids = node2.getAttribute(attributeName).split(" "), root2 = node2.getRootNode ? node2.getRootNode() : node2.ownerDocument;
  50013. return ids.map(function(id) {
  50014. return root2.getElementById(id);
  50015. }).filter(
  50016. function(element) {
  50017. return element !== null;
  50018. }
  50019. // TODO: why does this not narrow?
  50020. );
  50021. }
  50022. return [];
  50023. }
  50024. function hasAnyConcreteRoles2(node2, roles3) {
  50025. return isElement2(node2) ? roles3.indexOf(getRole2(node2)) !== -1 : !1;
  50026. }
  50027. // ../../node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
  50028. function asFlatString2(s3) {
  50029. return s3.trim().replace(/\s\s+/g, " ");
  50030. }
  50031. function isHidden2(node2, getComputedStyleImplementation) {
  50032. if (!isElement2(node2))
  50033. return !1;
  50034. if (node2.hasAttribute("hidden") || node2.getAttribute("aria-hidden") === "true")
  50035. return !0;
  50036. var style = getComputedStyleImplementation(node2);
  50037. return style.getPropertyValue("display") === "none" || style.getPropertyValue("visibility") === "hidden";
  50038. }
  50039. function isControl2(node2) {
  50040. return hasAnyConcreteRoles2(node2, ["button", "combobox", "listbox", "textbox"]) || hasAbstractRole2(node2, "range");
  50041. }
  50042. function hasAbstractRole2(node2, role) {
  50043. if (!isElement2(node2))
  50044. return !1;
  50045. switch (role) {
  50046. case "range":
  50047. return hasAnyConcreteRoles2(node2, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
  50048. default:
  50049. throw new TypeError("No knowledge about abstract role '".concat(role, "'. This is likely a bug :("));
  50050. }
  50051. }
  50052. function querySelectorAllSubtree2(element, selectors) {
  50053. var elements = arrayFrom2(element.querySelectorAll(selectors));
  50054. return queryIdRefs2(element, "aria-owns").forEach(function(root2) {
  50055. elements.push.apply(elements, arrayFrom2(root2.querySelectorAll(selectors)));
  50056. }), elements;
  50057. }
  50058. function querySelectedOptions2(listbox) {
  50059. return isHTMLSelectElement2(listbox) ? listbox.selectedOptions || querySelectorAllSubtree2(listbox, "[selected]") : querySelectorAllSubtree2(listbox, '[aria-selected="true"]');
  50060. }
  50061. function isMarkedPresentational2(node2) {
  50062. return hasAnyConcreteRoles2(node2, ["none", "presentation"]);
  50063. }
  50064. function isNativeHostLanguageTextAlternativeElement2(node2) {
  50065. return isHTMLTableCaptionElement2(node2);
  50066. }
  50067. function allowsNameFromContent2(node2) {
  50068. return hasAnyConcreteRoles2(node2, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
  50069. }
  50070. function isDescendantOfNativeHostLanguageTextAlternativeElement2(node2) {
  50071. return !1;
  50072. }
  50073. function getValueOfTextbox2(element) {
  50074. return isHTMLInputElement2(element) || isHTMLTextAreaElement2(element) ? element.value : element.textContent || "";
  50075. }
  50076. function getTextualContent2(declaration2) {
  50077. var content = declaration2.getPropertyValue("content");
  50078. return /^["'].*["']$/.test(content) ? content.slice(1, -1) : "";
  50079. }
  50080. function isLabelableElement2(element) {
  50081. var localName = getLocalName2(element);
  50082. return localName === "button" || localName === "input" && element.getAttribute("type") !== "hidden" || localName === "meter" || localName === "output" || localName === "progress" || localName === "select" || localName === "textarea";
  50083. }
  50084. function findLabelableElement2(element) {
  50085. if (isLabelableElement2(element))
  50086. return element;
  50087. var labelableElement = null;
  50088. return element.childNodes.forEach(function(childNode) {
  50089. if (labelableElement === null && isElement2(childNode)) {
  50090. var descendantLabelableElement = findLabelableElement2(childNode);
  50091. descendantLabelableElement !== null && (labelableElement = descendantLabelableElement);
  50092. }
  50093. }), labelableElement;
  50094. }
  50095. function getControlOfLabel2(label) {
  50096. if (label.control !== void 0)
  50097. return label.control;
  50098. var htmlFor = label.getAttribute("for");
  50099. return htmlFor !== null ? label.ownerDocument.getElementById(htmlFor) : findLabelableElement2(label);
  50100. }
  50101. function getLabels2(element) {
  50102. var labelsProperty = element.labels;
  50103. if (labelsProperty === null)
  50104. return labelsProperty;
  50105. if (labelsProperty !== void 0)
  50106. return arrayFrom2(labelsProperty);
  50107. if (!isLabelableElement2(element))
  50108. return null;
  50109. var document13 = element.ownerDocument;
  50110. return arrayFrom2(document13.querySelectorAll("label")).filter(function(label) {
  50111. return getControlOfLabel2(label) === element;
  50112. });
  50113. }
  50114. function getSlotContents2(slot) {
  50115. var assignedNodes = slot.assignedNodes();
  50116. return assignedNodes.length === 0 ? arrayFrom2(slot.childNodes) : assignedNodes;
  50117. }
  50118. function computeTextAlternative2(root2) {
  50119. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, consultedNodes = new SetLike_default2(), window2 = safeWindow2(root2), _options$compute = options.compute, compute = _options$compute === void 0 ? "name" : _options$compute, _options$computedStyl = options.computedStyleSupportsPseudoElements, computedStyleSupportsPseudoElements = _options$computedStyl === void 0 ? options.getComputedStyle !== void 0 : _options$computedStyl, _options$getComputedS = options.getComputedStyle, getComputedStyle3 = _options$getComputedS === void 0 ? window2.getComputedStyle.bind(window2) : _options$getComputedS, _options$hidden = options.hidden, hidden = _options$hidden === void 0 ? !1 : _options$hidden;
  50120. function computeMiscTextAlternative(node2, context) {
  50121. var accumulatedText = "";
  50122. if (isElement2(node2) && computedStyleSupportsPseudoElements) {
  50123. var pseudoBefore = getComputedStyle3(node2, "::before"), beforeContent = getTextualContent2(pseudoBefore);
  50124. accumulatedText = "".concat(beforeContent, " ").concat(accumulatedText);
  50125. }
  50126. var childNodes = isHTMLSlotElement2(node2) ? getSlotContents2(node2) : arrayFrom2(node2.childNodes).concat(queryIdRefs2(node2, "aria-owns"));
  50127. if (childNodes.forEach(function(child) {
  50128. var result = computeTextAlternative3(child, {
  50129. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50130. isReferenced: !1,
  50131. recursion: !0
  50132. }), display2 = isElement2(child) ? getComputedStyle3(child).getPropertyValue("display") : "inline", separator = display2 !== "inline" ? " " : "";
  50133. accumulatedText += "".concat(separator).concat(result).concat(separator);
  50134. }), isElement2(node2) && computedStyleSupportsPseudoElements) {
  50135. var pseudoAfter = getComputedStyle3(node2, "::after"), afterContent = getTextualContent2(pseudoAfter);
  50136. accumulatedText = "".concat(accumulatedText, " ").concat(afterContent);
  50137. }
  50138. return accumulatedText.trim();
  50139. }
  50140. function useAttribute(element, attributeName) {
  50141. var attribute = element.getAttributeNode(attributeName);
  50142. return attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "" ? (consultedNodes.add(attribute), attribute.value) : null;
  50143. }
  50144. function computeTooltipAttributeValue(node2) {
  50145. return isElement2(node2) ? useAttribute(node2, "title") : null;
  50146. }
  50147. function computeElementTextAlternative(node2) {
  50148. if (!isElement2(node2))
  50149. return null;
  50150. if (isHTMLFieldSetElement2(node2)) {
  50151. consultedNodes.add(node2);
  50152. for (var children = arrayFrom2(node2.childNodes), i = 0; i < children.length; i += 1) {
  50153. var child = children[i];
  50154. if (isHTMLLegendElement2(child))
  50155. return computeTextAlternative3(child, {
  50156. isEmbeddedInLabel: !1,
  50157. isReferenced: !1,
  50158. recursion: !1
  50159. });
  50160. }
  50161. } else if (isHTMLTableElement2(node2)) {
  50162. consultedNodes.add(node2);
  50163. for (var _children = arrayFrom2(node2.childNodes), _i = 0; _i < _children.length; _i += 1) {
  50164. var _child = _children[_i];
  50165. if (isHTMLTableCaptionElement2(_child))
  50166. return computeTextAlternative3(_child, {
  50167. isEmbeddedInLabel: !1,
  50168. isReferenced: !1,
  50169. recursion: !1
  50170. });
  50171. }
  50172. } else if (isSVGSVGElement2(node2)) {
  50173. consultedNodes.add(node2);
  50174. for (var _children2 = arrayFrom2(node2.childNodes), _i2 = 0; _i2 < _children2.length; _i2 += 1) {
  50175. var _child2 = _children2[_i2];
  50176. if (isSVGTitleElement2(_child2))
  50177. return _child2.textContent;
  50178. }
  50179. return null;
  50180. } else if (getLocalName2(node2) === "img" || getLocalName2(node2) === "area") {
  50181. var nameFromAlt = useAttribute(node2, "alt");
  50182. if (nameFromAlt !== null)
  50183. return nameFromAlt;
  50184. } else if (isHTMLOptGroupElement2(node2)) {
  50185. var nameFromLabel = useAttribute(node2, "label");
  50186. if (nameFromLabel !== null)
  50187. return nameFromLabel;
  50188. }
  50189. if (isHTMLInputElement2(node2) && (node2.type === "button" || node2.type === "submit" || node2.type === "reset")) {
  50190. var nameFromValue = useAttribute(node2, "value");
  50191. if (nameFromValue !== null)
  50192. return nameFromValue;
  50193. if (node2.type === "submit")
  50194. return "Submit";
  50195. if (node2.type === "reset")
  50196. return "Reset";
  50197. }
  50198. var labels = getLabels2(node2);
  50199. if (labels !== null && labels.length !== 0)
  50200. return consultedNodes.add(node2), arrayFrom2(labels).map(function(element) {
  50201. return computeTextAlternative3(element, {
  50202. isEmbeddedInLabel: !0,
  50203. isReferenced: !1,
  50204. recursion: !0
  50205. });
  50206. }).filter(function(label) {
  50207. return label.length > 0;
  50208. }).join(" ");
  50209. if (isHTMLInputElement2(node2) && node2.type === "image") {
  50210. var _nameFromAlt = useAttribute(node2, "alt");
  50211. if (_nameFromAlt !== null)
  50212. return _nameFromAlt;
  50213. var nameFromTitle = useAttribute(node2, "title");
  50214. return nameFromTitle !== null ? nameFromTitle : "Submit Query";
  50215. }
  50216. if (hasAnyConcreteRoles2(node2, ["button"])) {
  50217. var nameFromSubTree = computeMiscTextAlternative(node2, {
  50218. isEmbeddedInLabel: !1,
  50219. isReferenced: !1
  50220. });
  50221. if (nameFromSubTree !== "")
  50222. return nameFromSubTree;
  50223. }
  50224. return null;
  50225. }
  50226. function computeTextAlternative3(current, context) {
  50227. if (consultedNodes.has(current))
  50228. return "";
  50229. if (!hidden && isHidden2(current, getComputedStyle3) && !context.isReferenced)
  50230. return consultedNodes.add(current), "";
  50231. var labelAttributeNode = isElement2(current) ? current.getAttributeNode("aria-labelledby") : null, labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? queryIdRefs2(current, "aria-labelledby") : [];
  50232. if (compute === "name" && !context.isReferenced && labelElements.length > 0)
  50233. return consultedNodes.add(labelAttributeNode), labelElements.map(function(element) {
  50234. return computeTextAlternative3(element, {
  50235. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50236. isReferenced: !0,
  50237. // this isn't recursion as specified, otherwise we would skip
  50238. // `aria-label` in
  50239. // <input id="myself" aria-label="foo" aria-labelledby="myself"
  50240. recursion: !1
  50241. });
  50242. }).join(" ");
  50243. var skipToStep2E = context.recursion && isControl2(current) && compute === "name";
  50244. if (!skipToStep2E) {
  50245. var ariaLabel = (isElement2(current) && current.getAttribute("aria-label") || "").trim();
  50246. if (ariaLabel !== "" && compute === "name")
  50247. return consultedNodes.add(current), ariaLabel;
  50248. if (!isMarkedPresentational2(current)) {
  50249. var elementTextAlternative = computeElementTextAlternative(current);
  50250. if (elementTextAlternative !== null)
  50251. return consultedNodes.add(current), elementTextAlternative;
  50252. }
  50253. }
  50254. if (hasAnyConcreteRoles2(current, ["menu"]))
  50255. return consultedNodes.add(current), "";
  50256. if (skipToStep2E || context.isEmbeddedInLabel || context.isReferenced) {
  50257. if (hasAnyConcreteRoles2(current, ["combobox", "listbox"])) {
  50258. consultedNodes.add(current);
  50259. var selectedOptions = querySelectedOptions2(current);
  50260. return selectedOptions.length === 0 ? isHTMLInputElement2(current) ? current.value : "" : arrayFrom2(selectedOptions).map(function(selectedOption) {
  50261. return computeTextAlternative3(selectedOption, {
  50262. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50263. isReferenced: !1,
  50264. recursion: !0
  50265. });
  50266. }).join(" ");
  50267. }
  50268. if (hasAbstractRole2(current, "range"))
  50269. return consultedNodes.add(current), current.hasAttribute("aria-valuetext") ? current.getAttribute("aria-valuetext") : current.hasAttribute("aria-valuenow") ? current.getAttribute("aria-valuenow") : current.getAttribute("value") || "";
  50270. if (hasAnyConcreteRoles2(current, ["textbox"]))
  50271. return consultedNodes.add(current), getValueOfTextbox2(current);
  50272. }
  50273. if (allowsNameFromContent2(current) || isElement2(current) && context.isReferenced || isNativeHostLanguageTextAlternativeElement2(current) || isDescendantOfNativeHostLanguageTextAlternativeElement2(current)) {
  50274. var accumulatedText2F = computeMiscTextAlternative(current, {
  50275. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50276. isReferenced: !1
  50277. });
  50278. if (accumulatedText2F !== "")
  50279. return consultedNodes.add(current), accumulatedText2F;
  50280. }
  50281. if (current.nodeType === current.TEXT_NODE)
  50282. return consultedNodes.add(current), current.textContent || "";
  50283. if (context.recursion)
  50284. return consultedNodes.add(current), computeMiscTextAlternative(current, {
  50285. isEmbeddedInLabel: context.isEmbeddedInLabel,
  50286. isReferenced: !1
  50287. });
  50288. var tooltipAttributeValue = computeTooltipAttributeValue(current);
  50289. return tooltipAttributeValue !== null ? (consultedNodes.add(current), tooltipAttributeValue) : (consultedNodes.add(current), "");
  50290. }
  50291. return asFlatString2(computeTextAlternative3(root2, {
  50292. isEmbeddedInLabel: !1,
  50293. // by spec computeAccessibleDescription starts with the referenced elements as roots
  50294. isReferenced: compute === "description",
  50295. recursion: !1
  50296. }));
  50297. }
  50298. // ../../node_modules/dom-accessibility-api/dist/accessible-description.mjs
  50299. function _typeof5(obj) {
  50300. "@babel/helpers - typeof";
  50301. return _typeof5 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
  50302. return typeof obj2;
  50303. } : function(obj2) {
  50304. return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
  50305. }, _typeof5(obj);
  50306. }
  50307. function ownKeys4(object, enumerableOnly) {
  50308. var keys3 = Object.keys(object);
  50309. if (Object.getOwnPropertySymbols) {
  50310. var symbols = Object.getOwnPropertySymbols(object);
  50311. enumerableOnly && (symbols = symbols.filter(function(sym) {
  50312. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  50313. })), keys3.push.apply(keys3, symbols);
  50314. }
  50315. return keys3;
  50316. }
  50317. function _objectSpread4(target) {
  50318. for (var i = 1; i < arguments.length; i++) {
  50319. var source = arguments[i] != null ? arguments[i] : {};
  50320. i % 2 ? ownKeys4(Object(source), !0).forEach(function(key) {
  50321. _defineProperty5(target, key, source[key]);
  50322. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys4(Object(source)).forEach(function(key) {
  50323. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  50324. });
  50325. }
  50326. return target;
  50327. }
  50328. function _defineProperty5(obj, key, value) {
  50329. return key = _toPropertyKey4(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj;
  50330. }
  50331. function _toPropertyKey4(arg) {
  50332. var key = _toPrimitive4(arg, "string");
  50333. return _typeof5(key) === "symbol" ? key : String(key);
  50334. }
  50335. function _toPrimitive4(input2, hint) {
  50336. if (_typeof5(input2) !== "object" || input2 === null) return input2;
  50337. var prim = input2[Symbol.toPrimitive];
  50338. if (prim !== void 0) {
  50339. var res = prim.call(input2, hint || "default");
  50340. if (_typeof5(res) !== "object") return res;
  50341. throw new TypeError("@@toPrimitive must return a primitive value.");
  50342. }
  50343. return (hint === "string" ? String : Number)(input2);
  50344. }
  50345. function computeAccessibleDescription2(root2) {
  50346. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, description = queryIdRefs2(root2, "aria-describedby").map(function(element) {
  50347. return computeTextAlternative2(element, _objectSpread4(_objectSpread4({}, options), {}, {
  50348. compute: "description"
  50349. }));
  50350. }).join(" ");
  50351. if (description === "") {
  50352. var title = root2.getAttribute("title");
  50353. description = title === null ? "" : title;
  50354. }
  50355. return description;
  50356. }
  50357. // ../../node_modules/dom-accessibility-api/dist/accessible-name.mjs
  50358. function prohibitsNaming2(node2) {
  50359. return hasAnyConcreteRoles2(node2, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
  50360. }
  50361. function computeAccessibleName2(root2) {
  50362. var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  50363. return prohibitsNaming2(root2) ? "" : computeTextAlternative2(root2, options);
  50364. }
  50365. // ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
  50366. var import_aria_query3 = __toESM(require_lib2()), import_lz_string = __toESM(require_lz_string());
  50367. function escapeHTML2(str2) {
  50368. return str2.replace(/</g, "&lt;").replace(/>/g, "&gt;");
  50369. }
  50370. var printProps2 = (keys3, props, config4, indentation, depth, refs, printer2) => {
  50371. let indentationNext = indentation + config4.indent, colors3 = config4.colors;
  50372. return keys3.map((key) => {
  50373. let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs);
  50374. return typeof value != "string" && (printed.indexOf(`
  50375. `) !== -1 && (printed = config4.spacingOuter + indentationNext + printed + config4.spacingOuter + indentation), printed = "{" + printed + "}"), config4.spacingInner + indentation + colors3.prop.open + key + colors3.prop.close + "=" + colors3.value.open + printed + colors3.value.close;
  50376. }).join("");
  50377. }, NodeTypeTextNode = 3, printChildren2 = (children, config4, indentation, depth, refs, printer2) => children.map((child) => {
  50378. let printedChild = typeof child == "string" ? printText2(child, config4) : printer2(child, config4, indentation, depth, refs);
  50379. return printedChild === "" && typeof child == "object" && child !== null && child.nodeType !== NodeTypeTextNode ? "" : config4.spacingOuter + indentation + printedChild;
  50380. }).join(""), printText2 = (text, config4) => {
  50381. let contentColor = config4.colors.content;
  50382. return contentColor.open + escapeHTML2(text) + contentColor.close;
  50383. }, printComment2 = (comment2, config4) => {
  50384. let commentColor = config4.colors.comment;
  50385. return commentColor.open + "<!--" + escapeHTML2(comment2) + "-->" + commentColor.close;
  50386. }, printElement2 = (type5, printedProps, printedChildren, config4, indentation) => {
  50387. let tagColor = config4.colors.tag;
  50388. return tagColor.open + "<" + type5 + (printedProps && tagColor.close + printedProps + config4.spacingOuter + indentation + tagColor.open) + (printedChildren ? ">" + tagColor.close + printedChildren + config4.spacingOuter + indentation + tagColor.open + "</" + type5 : (printedProps && !config4.min ? "" : " ") + "/") + ">" + tagColor.close;
  50389. }, printElementAsLeaf2 = (type5, config4) => {
  50390. let tagColor = config4.colors.tag;
  50391. return tagColor.open + "<" + type5 + tagColor.close + " \u2026" + tagColor.open + " />" + tagColor.close;
  50392. }, ELEMENT_NODE$1 = 1, TEXT_NODE$1 = 3, COMMENT_NODE$1 = 8, FRAGMENT_NODE2 = 11, ELEMENT_REGEXP2 = /^((HTML|SVG)\w*)?Element$/, isCustomElement2 = (val) => {
  50393. let {
  50394. tagName
  50395. } = val;
  50396. return !!(typeof tagName == "string" && tagName.includes("-") || typeof val.hasAttribute == "function" && val.hasAttribute("is"));
  50397. }, testNode2 = (val) => {
  50398. let constructorName = val.constructor.name, {
  50399. nodeType
  50400. } = val;
  50401. return nodeType === ELEMENT_NODE$1 && (ELEMENT_REGEXP2.test(constructorName) || isCustomElement2(val)) || nodeType === TEXT_NODE$1 && constructorName === "Text" || nodeType === COMMENT_NODE$1 && constructorName === "Comment" || nodeType === FRAGMENT_NODE2 && constructorName === "DocumentFragment";
  50402. };
  50403. function nodeIsText2(node2) {
  50404. return node2.nodeType === TEXT_NODE$1;
  50405. }
  50406. function nodeIsComment2(node2) {
  50407. return node2.nodeType === COMMENT_NODE$1;
  50408. }
  50409. function nodeIsFragment2(node2) {
  50410. return node2.nodeType === FRAGMENT_NODE2;
  50411. }
  50412. function createDOMElementFilter(filterNode) {
  50413. return {
  50414. test: (val) => {
  50415. var _val$constructor2;
  50416. return ((val == null || (_val$constructor2 = val.constructor) == null ? void 0 : _val$constructor2.name) || isCustomElement2(val)) && testNode2(val);
  50417. },
  50418. serialize: (node2, config4, indentation, depth, refs, printer2) => {
  50419. if (nodeIsText2(node2))
  50420. return printText2(node2.data, config4);
  50421. if (nodeIsComment2(node2))
  50422. return printComment2(node2.data, config4);
  50423. let type5 = nodeIsFragment2(node2) ? "DocumentFragment" : node2.tagName.toLowerCase();
  50424. return ++depth > config4.maxDepth ? printElementAsLeaf2(type5, config4) : printElement2(type5, printProps2(nodeIsFragment2(node2) ? [] : Array.from(node2.attributes).map((attr) => attr.name).sort(), nodeIsFragment2(node2) ? {} : Array.from(node2.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), config4, indentation + config4.indent, depth, refs, printer2), printChildren2(Array.prototype.slice.call(node2.childNodes || node2.children).filter(filterNode), config4, indentation + config4.indent, depth, refs, printer2), config4, indentation);
  50425. }
  50426. };
  50427. }
  50428. var picocolors2 = null, readFileSync = null, codeFrameColumns = null;
  50429. try {
  50430. let nodeRequire = module && module.require;
  50431. readFileSync = nodeRequire.call(module, "fs").readFileSync, codeFrameColumns = nodeRequire.call(module, "@babel/code-frame").codeFrameColumns, picocolors2 = nodeRequire.call(module, "picocolors");
  50432. } catch {
  50433. }
  50434. function getCodeFrame(frame) {
  50435. let locationStart = frame.indexOf("(") + 1, locationEnd = frame.indexOf(")"), frameLocation = frame.slice(locationStart, locationEnd), frameLocationElements = frameLocation.split(":"), [filename, line2, column2] = [frameLocationElements[0], parseInt(frameLocationElements[1], 10), parseInt(frameLocationElements[2], 10)], rawFileContents = "";
  50436. try {
  50437. rawFileContents = readFileSync(filename, "utf-8");
  50438. } catch {
  50439. return "";
  50440. }
  50441. let codeFrame = codeFrameColumns(rawFileContents, {
  50442. start: {
  50443. line: line2,
  50444. column: column2
  50445. }
  50446. }, {
  50447. highlightCode: !0,
  50448. linesBelow: 0
  50449. });
  50450. return picocolors2.dim(frameLocation) + `
  50451. ` + codeFrame + `
  50452. `;
  50453. }
  50454. function getUserCodeFrame() {
  50455. if (!readFileSync || !codeFrameColumns)
  50456. return "";
  50457. let firstClientCodeFrame = new Error().stack.split(`
  50458. `).slice(1).find((frame) => !frame.includes("node_modules/"));
  50459. return getCodeFrame(firstClientCodeFrame);
  50460. }
  50461. var TEXT_NODE2 = 3;
  50462. function jestFakeTimersAreEnabled() {
  50463. return typeof jest < "u" && jest !== null ? (
  50464. // legacy timers
  50465. setTimeout._isMockFunction === !0 || // modern timers
  50466. // eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix
  50467. Object.prototype.hasOwnProperty.call(setTimeout, "clock")
  50468. ) : !1;
  50469. }
  50470. function getDocument() {
  50471. if (typeof window > "u")
  50472. throw new Error("Could not find default container");
  50473. return window.document;
  50474. }
  50475. function getWindowFromNode(node2) {
  50476. if (node2.defaultView)
  50477. return node2.defaultView;
  50478. if (node2.ownerDocument && node2.ownerDocument.defaultView)
  50479. return node2.ownerDocument.defaultView;
  50480. if (node2.window)
  50481. return node2.window;
  50482. throw node2.ownerDocument && node2.ownerDocument.defaultView === null ? new Error("It looks like the window object is not available for the provided node.") : node2.then instanceof Function ? new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?") : Array.isArray(node2) ? new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?") : typeof node2.debug == "function" && typeof node2.logTestingPlaygroundURL == "function" ? new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?") : new Error("The given node is not an Element, the node type is: " + typeof node2 + ".");
  50483. }
  50484. function checkContainerType(container) {
  50485. if (!container || typeof container.querySelector != "function" || typeof container.querySelectorAll != "function")
  50486. throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + getTypeName(container) + ".");
  50487. function getTypeName(object) {
  50488. return typeof object == "object" ? object === null ? "null" : object.constructor.name : typeof object;
  50489. }
  50490. }
  50491. var shouldHighlight = () => {
  50492. if (typeof process > "u")
  50493. return !1;
  50494. let colors3;
  50495. try {
  50496. var _process$env;
  50497. let colorsJSON = (_process$env = process.env) == null ? void 0 : _process$env.COLORS;
  50498. colorsJSON && (colors3 = JSON.parse(colorsJSON));
  50499. } catch {
  50500. }
  50501. return typeof colors3 == "boolean" ? colors3 : process.versions !== void 0 && process.versions.node !== void 0;
  50502. }, {
  50503. DOMCollection: DOMCollection3
  50504. } = prettyFormat.plugins, ELEMENT_NODE2 = 1, COMMENT_NODE2 = 8;
  50505. function filterCommentsAndDefaultIgnoreTagsTags(value) {
  50506. return value.nodeType !== COMMENT_NODE2 && (value.nodeType !== ELEMENT_NODE2 || !value.matches(getConfig2().defaultIgnore));
  50507. }
  50508. function prettyDOM(dom, maxLength, options) {
  50509. if (options === void 0 && (options = {}), dom || (dom = getDocument().body), typeof maxLength != "number" && (maxLength = typeof process < "u" && typeof process.env < "u" && process.env.DEBUG_PRINT_LIMIT || 7e3), maxLength === 0)
  50510. return "";
  50511. dom.documentElement && (dom = dom.documentElement);
  50512. let domTypeName = typeof dom;
  50513. if (domTypeName === "object" ? domTypeName = dom.constructor.name : dom = {}, !("outerHTML" in dom))
  50514. throw new TypeError("Expected an element or document but got " + domTypeName);
  50515. let {
  50516. filterNode = filterCommentsAndDefaultIgnoreTagsTags,
  50517. ...prettyFormatOptions
  50518. } = options, debugContent = prettyFormat.format(dom, {
  50519. plugins: [createDOMElementFilter(filterNode), DOMCollection3],
  50520. printFunctionName: !1,
  50521. highlight: shouldHighlight(),
  50522. ...prettyFormatOptions
  50523. });
  50524. return maxLength !== void 0 && dom.outerHTML.length > maxLength ? debugContent.slice(0, maxLength) + "..." : debugContent;
  50525. }
  50526. var logDOM = function() {
  50527. let userCodeFrame = getUserCodeFrame();
  50528. console.log(userCodeFrame ? prettyDOM(...arguments) + `
  50529. ` + userCodeFrame : prettyDOM(...arguments));
  50530. }, config3 = {
  50531. testIdAttribute: "data-testid",
  50532. asyncUtilTimeout: 1e3,
  50533. // asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
  50534. // forcing react-testing-library to wrap all async functions would've been
  50535. // a total nightmare (consider wrapping every findBy* query and then also
  50536. // updating `within` so those would be wrapped too. Total nightmare).
  50537. // so we have this config option that's really only intended for
  50538. // react-testing-library to use. For that reason, this feature will remain
  50539. // undocumented.
  50540. asyncWrapper: (cb) => cb(),
  50541. unstable_advanceTimersWrapper: (cb) => cb(),
  50542. eventWrapper: (cb) => cb(),
  50543. // default value for the `hidden` option in `ByRole` queries
  50544. defaultHidden: !1,
  50545. // default value for the `ignore` option in `ByText` queries
  50546. defaultIgnore: "script, style",
  50547. // showOriginalStackTrace flag to show the full error stack traces for async errors
  50548. showOriginalStackTrace: !1,
  50549. // throw errors w/ suggestions for better queries. Opt in so off by default.
  50550. throwSuggestions: !1,
  50551. // called when getBy* queries fail. (message, container) => Error
  50552. getElementError(message, container) {
  50553. let prettifiedDOM = prettyDOM(container), error = new Error([message, "Ignored nodes: comments, " + config3.defaultIgnore + `
  50554. ` + prettifiedDOM].filter(Boolean).join(`
  50555. `));
  50556. return error.name = "TestingLibraryElementError", error;
  50557. },
  50558. _disableExpensiveErrorDiagnostics: !1,
  50559. computedStyleSupportsPseudoElements: !1
  50560. };
  50561. function runWithExpensiveErrorDiagnosticsDisabled(callback) {
  50562. try {
  50563. return config3._disableExpensiveErrorDiagnostics = !0, callback();
  50564. } finally {
  50565. config3._disableExpensiveErrorDiagnostics = !1;
  50566. }
  50567. }
  50568. function configure(newConfig) {
  50569. typeof newConfig == "function" && (newConfig = newConfig(config3)), config3 = {
  50570. ...config3,
  50571. ...newConfig
  50572. };
  50573. }
  50574. function getConfig2() {
  50575. return config3;
  50576. }
  50577. var labelledNodeNames = ["button", "meter", "output", "progress", "select", "textarea", "input"];
  50578. function getTextContent(node2) {
  50579. return labelledNodeNames.includes(node2.nodeName.toLowerCase()) ? "" : node2.nodeType === TEXT_NODE2 ? node2.textContent : Array.from(node2.childNodes).map((childNode) => getTextContent(childNode)).join("");
  50580. }
  50581. function getLabelContent(element) {
  50582. let textContent;
  50583. return element.tagName.toLowerCase() === "label" ? textContent = getTextContent(element) : textContent = element.value || element.textContent, textContent;
  50584. }
  50585. function getRealLabels(element) {
  50586. if (element.labels !== void 0) {
  50587. var _labels;
  50588. return (_labels = element.labels) != null ? _labels : [];
  50589. }
  50590. if (!isLabelable(element)) return [];
  50591. let labels = element.ownerDocument.querySelectorAll("label");
  50592. return Array.from(labels).filter((label) => label.control === element);
  50593. }
  50594. function isLabelable(element) {
  50595. return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName) || element.tagName === "INPUT" && element.getAttribute("type") !== "hidden";
  50596. }
  50597. function getLabels3(container, element, _temp) {
  50598. let {
  50599. selector = "*"
  50600. } = _temp === void 0 ? {} : _temp, ariaLabelledBy = element.getAttribute("aria-labelledby"), labelsId = ariaLabelledBy ? ariaLabelledBy.split(" ") : [];
  50601. return labelsId.length ? labelsId.map((labelId) => {
  50602. let labellingElement = container.querySelector('[id="' + labelId + '"]');
  50603. return labellingElement ? {
  50604. content: getLabelContent(labellingElement),
  50605. formControl: null
  50606. } : {
  50607. content: "",
  50608. formControl: null
  50609. };
  50610. }) : Array.from(getRealLabels(element)).map((label) => {
  50611. let textToMatch = getLabelContent(label), labelledFormControl = Array.from(label.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((formControlElement) => formControlElement.matches(selector))[0];
  50612. return {
  50613. content: textToMatch,
  50614. formControl: labelledFormControl
  50615. };
  50616. });
  50617. }
  50618. function assertNotNullOrUndefined(matcher) {
  50619. if (matcher == null)
  50620. throw new Error(
  50621. // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string`
  50622. "It looks like " + matcher + " was passed instead of a matcher. Did you do something like getByText(" + matcher + ")?"
  50623. );
  50624. }
  50625. function fuzzyMatches(textToMatch, node2, matcher, normalizer) {
  50626. if (typeof textToMatch != "string")
  50627. return !1;
  50628. assertNotNullOrUndefined(matcher);
  50629. let normalizedText = normalizer(textToMatch);
  50630. return typeof matcher == "string" || typeof matcher == "number" ? normalizedText.toLowerCase().includes(matcher.toString().toLowerCase()) : typeof matcher == "function" ? matcher(normalizedText, node2) : matchRegExp(matcher, normalizedText);
  50631. }
  50632. function matches3(textToMatch, node2, matcher, normalizer) {
  50633. if (typeof textToMatch != "string")
  50634. return !1;
  50635. assertNotNullOrUndefined(matcher);
  50636. let normalizedText = normalizer(textToMatch);
  50637. return matcher instanceof Function ? matcher(normalizedText, node2) : matcher instanceof RegExp ? matchRegExp(matcher, normalizedText) : normalizedText === String(matcher);
  50638. }
  50639. function getDefaultNormalizer(_temp) {
  50640. let {
  50641. trim: trim2 = !0,
  50642. collapseWhitespace = !0
  50643. } = _temp === void 0 ? {} : _temp;
  50644. return (text) => {
  50645. let normalizedText = text;
  50646. return normalizedText = trim2 ? normalizedText.trim() : normalizedText, normalizedText = collapseWhitespace ? normalizedText.replace(/\s+/g, " ") : normalizedText, normalizedText;
  50647. };
  50648. }
  50649. function makeNormalizer(_ref) {
  50650. let {
  50651. trim: trim2,
  50652. collapseWhitespace,
  50653. normalizer
  50654. } = _ref;
  50655. if (!normalizer)
  50656. return getDefaultNormalizer({
  50657. trim: trim2,
  50658. collapseWhitespace
  50659. });
  50660. if (typeof trim2 < "u" || typeof collapseWhitespace < "u")
  50661. throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');
  50662. return normalizer;
  50663. }
  50664. function matchRegExp(matcher, text) {
  50665. let match3 = matcher.test(text);
  50666. return matcher.global && matcher.lastIndex !== 0 && (console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."), matcher.lastIndex = 0), match3;
  50667. }
  50668. function getNodeText(node2) {
  50669. return node2.matches("input[type=submit], input[type=button], input[type=reset]") ? node2.value : Array.from(node2.childNodes).filter((child) => child.nodeType === TEXT_NODE2 && !!child.textContent).map((c) => c.textContent).join("");
  50670. }
  50671. var elementRoleList2 = buildElementRoleList2(import_aria_query3.elementRoles);
  50672. function isSubtreeInaccessible(element) {
  50673. return element.hidden === !0 || element.getAttribute("aria-hidden") === "true" || element.ownerDocument.defaultView.getComputedStyle(element).display === "none";
  50674. }
  50675. function isInaccessible(element, options) {
  50676. options === void 0 && (options = {});
  50677. let {
  50678. isSubtreeInaccessible: isSubtreeInaccessibleImpl = isSubtreeInaccessible
  50679. } = options;
  50680. if (element.ownerDocument.defaultView.getComputedStyle(element).visibility === "hidden")
  50681. return !0;
  50682. let currentElement = element;
  50683. for (; currentElement; ) {
  50684. if (isSubtreeInaccessibleImpl(currentElement))
  50685. return !0;
  50686. currentElement = currentElement.parentElement;
  50687. }
  50688. return !1;
  50689. }
  50690. function getImplicitAriaRoles2(currentNode) {
  50691. for (let {
  50692. match: match3,
  50693. roles: roles3
  50694. } of elementRoleList2)
  50695. if (match3(currentNode))
  50696. return [...roles3];
  50697. return [];
  50698. }
  50699. function buildElementRoleList2(elementRolesMap) {
  50700. function makeElementSelector(_ref) {
  50701. let {
  50702. name,
  50703. attributes
  50704. } = _ref;
  50705. return "" + name + attributes.map((_ref2) => {
  50706. let {
  50707. name: attributeName,
  50708. value,
  50709. constraints = []
  50710. } = _ref2, shouldNotExist = constraints.indexOf("undefined") !== -1, shouldBeNonEmpty = constraints.indexOf("set") !== -1;
  50711. return typeof value < "u" ? "[" + attributeName + '="' + value + '"]' : shouldNotExist ? ":not([" + attributeName + "])" : shouldBeNonEmpty ? "[" + attributeName + "]:not([" + attributeName + '=""])' : "[" + attributeName + "]";
  50712. }).join("");
  50713. }
  50714. function getSelectorSpecificity(_ref3) {
  50715. let {
  50716. attributes = []
  50717. } = _ref3;
  50718. return attributes.length;
  50719. }
  50720. function bySelectorSpecificity(_ref4, _ref5) {
  50721. let {
  50722. specificity: leftSpecificity
  50723. } = _ref4, {
  50724. specificity: rightSpecificity
  50725. } = _ref5;
  50726. return rightSpecificity - leftSpecificity;
  50727. }
  50728. function match3(element) {
  50729. let {
  50730. attributes = []
  50731. } = element, typeTextIndex = attributes.findIndex((attribute) => attribute.value && attribute.name === "type" && attribute.value === "text");
  50732. typeTextIndex >= 0 && (attributes = [...attributes.slice(0, typeTextIndex), ...attributes.slice(typeTextIndex + 1)]);
  50733. let selector = makeElementSelector({
  50734. ...element,
  50735. attributes
  50736. });
  50737. return (node2) => typeTextIndex >= 0 && node2.type !== "text" ? !1 : node2.matches(selector);
  50738. }
  50739. let result = [];
  50740. for (let [element, roles3] of elementRolesMap.entries())
  50741. result = [...result, {
  50742. match: match3(element),
  50743. roles: Array.from(roles3),
  50744. specificity: getSelectorSpecificity(element)
  50745. }];
  50746. return result.sort(bySelectorSpecificity);
  50747. }
  50748. function getRoles(container, _temp) {
  50749. let {
  50750. hidden = !1
  50751. } = _temp === void 0 ? {} : _temp;
  50752. function flattenDOM(node2) {
  50753. return [node2, ...Array.from(node2.children).reduce((acc, child) => [...acc, ...flattenDOM(child)], [])];
  50754. }
  50755. return flattenDOM(container).filter((element) => hidden === !1 ? isInaccessible(element) === !1 : !0).reduce((acc, node2) => {
  50756. let roles3 = [];
  50757. return node2.hasAttribute("role") ? roles3 = node2.getAttribute("role").split(" ").slice(0, 1) : roles3 = getImplicitAriaRoles2(node2), roles3.reduce((rolesAcc, role) => Array.isArray(rolesAcc[role]) ? {
  50758. ...rolesAcc,
  50759. [role]: [...rolesAcc[role], node2]
  50760. } : {
  50761. ...rolesAcc,
  50762. [role]: [node2]
  50763. }, acc);
  50764. }, {});
  50765. }
  50766. function prettyRoles(dom, _ref6) {
  50767. let {
  50768. hidden,
  50769. includeDescription
  50770. } = _ref6, roles3 = getRoles(dom, {
  50771. hidden
  50772. });
  50773. return Object.entries(roles3).filter((_ref7) => {
  50774. let [role] = _ref7;
  50775. return role !== "generic";
  50776. }).map((_ref8) => {
  50777. let [role, elements] = _ref8, delimiterBar = "-".repeat(50), elementsString = elements.map((el) => {
  50778. let nameString = 'Name "' + computeAccessibleName2(el, {
  50779. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  50780. }) + `":
  50781. `, domString = prettyDOM(el.cloneNode(!1));
  50782. if (includeDescription) {
  50783. let descriptionString = 'Description "' + computeAccessibleDescription2(el, {
  50784. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  50785. }) + `":
  50786. `;
  50787. return "" + nameString + descriptionString + domString;
  50788. }
  50789. return "" + nameString + domString;
  50790. }).join(`
  50791. `);
  50792. return role + `:
  50793. ` + elementsString + `
  50794. ` + delimiterBar;
  50795. }).join(`
  50796. `);
  50797. }
  50798. var logRoles = function(dom, _temp2) {
  50799. let {
  50800. hidden = !1
  50801. } = _temp2 === void 0 ? {} : _temp2;
  50802. return console.log(prettyRoles(dom, {
  50803. hidden
  50804. }));
  50805. };
  50806. function computeAriaSelected(element) {
  50807. return element.tagName === "OPTION" ? element.selected : checkBooleanAttribute(element, "aria-selected");
  50808. }
  50809. function computeAriaBusy(element) {
  50810. return element.getAttribute("aria-busy") === "true";
  50811. }
  50812. function computeAriaChecked(element) {
  50813. if (!("indeterminate" in element && element.indeterminate))
  50814. return "checked" in element ? element.checked : checkBooleanAttribute(element, "aria-checked");
  50815. }
  50816. function computeAriaPressed(element) {
  50817. return checkBooleanAttribute(element, "aria-pressed");
  50818. }
  50819. function computeAriaCurrent(element) {
  50820. var _ref9, _checkBooleanAttribut;
  50821. return (_ref9 = (_checkBooleanAttribut = checkBooleanAttribute(element, "aria-current")) != null ? _checkBooleanAttribut : element.getAttribute("aria-current")) != null ? _ref9 : !1;
  50822. }
  50823. function computeAriaExpanded(element) {
  50824. return checkBooleanAttribute(element, "aria-expanded");
  50825. }
  50826. function checkBooleanAttribute(element, attribute) {
  50827. let attributeValue = element.getAttribute(attribute);
  50828. if (attributeValue === "true")
  50829. return !0;
  50830. if (attributeValue === "false")
  50831. return !1;
  50832. }
  50833. function computeHeadingLevel(element) {
  50834. let implicitHeadingLevels = {
  50835. H1: 1,
  50836. H2: 2,
  50837. H3: 3,
  50838. H4: 4,
  50839. H5: 5,
  50840. H6: 6
  50841. };
  50842. return element.getAttribute("aria-level") && Number(element.getAttribute("aria-level")) || implicitHeadingLevels[element.tagName];
  50843. }
  50844. function computeAriaValueNow(element) {
  50845. let valueNow = element.getAttribute("aria-valuenow");
  50846. return valueNow === null ? void 0 : +valueNow;
  50847. }
  50848. function computeAriaValueMax(element) {
  50849. let valueMax = element.getAttribute("aria-valuemax");
  50850. return valueMax === null ? void 0 : +valueMax;
  50851. }
  50852. function computeAriaValueMin(element) {
  50853. let valueMin = element.getAttribute("aria-valuemin");
  50854. return valueMin === null ? void 0 : +valueMin;
  50855. }
  50856. function computeAriaValueText(element) {
  50857. let valueText = element.getAttribute("aria-valuetext");
  50858. return valueText === null ? void 0 : valueText;
  50859. }
  50860. var normalize2 = getDefaultNormalizer();
  50861. function escapeRegExp(string) {
  50862. return string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
  50863. }
  50864. function getRegExpMatcher(string) {
  50865. return new RegExp(escapeRegExp(string.toLowerCase()), "i");
  50866. }
  50867. function makeSuggestion(queryName, element, content, _ref) {
  50868. let {
  50869. variant,
  50870. name
  50871. } = _ref, warning3 = "", queryOptions = {}, queryArgs = [["Role", "TestId"].includes(queryName) ? content : getRegExpMatcher(content)];
  50872. name && (queryOptions.name = getRegExpMatcher(name)), queryName === "Role" && isInaccessible(element) && (queryOptions.hidden = !0, warning3 = `Element is inaccessible. This means that the element and all its children are invisible to screen readers.
  50873. If you are using the aria-hidden prop, make sure this is the right choice for your case.
  50874. `), Object.keys(queryOptions).length > 0 && queryArgs.push(queryOptions);
  50875. let queryMethod = variant + "By" + queryName;
  50876. return {
  50877. queryName,
  50878. queryMethod,
  50879. queryArgs,
  50880. variant,
  50881. warning: warning3,
  50882. toString() {
  50883. warning3 && console.warn(warning3);
  50884. let [text, options] = queryArgs;
  50885. return text = typeof text == "string" ? "'" + text + "'" : text, options = options ? ", { " + Object.entries(options).map((_ref2) => {
  50886. let [k, v] = _ref2;
  50887. return k + ": " + v;
  50888. }).join(", ") + " }" : "", queryMethod + "(" + text + options + ")";
  50889. }
  50890. };
  50891. }
  50892. function canSuggest(currentMethod, requestedMethod, data) {
  50893. return data && (!requestedMethod || requestedMethod.toLowerCase() === currentMethod.toLowerCase());
  50894. }
  50895. function getSuggestedQuery(element, variant, method) {
  50896. var _element$getAttribute, _getImplicitAriaRoles;
  50897. if (variant === void 0 && (variant = "get"), element.matches(getConfig2().defaultIgnore))
  50898. return;
  50899. let role = (_element$getAttribute = element.getAttribute("role")) != null ? _element$getAttribute : (_getImplicitAriaRoles = getImplicitAriaRoles2(element)) == null ? void 0 : _getImplicitAriaRoles[0];
  50900. if (role !== "generic" && canSuggest("Role", method, role))
  50901. return makeSuggestion("Role", element, role, {
  50902. variant,
  50903. name: computeAccessibleName2(element, {
  50904. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  50905. })
  50906. });
  50907. let labelText = getLabels3(document, element).map((label) => label.content).join(" ");
  50908. if (canSuggest("LabelText", method, labelText))
  50909. return makeSuggestion("LabelText", element, labelText, {
  50910. variant
  50911. });
  50912. let placeholderText = element.getAttribute("placeholder");
  50913. if (canSuggest("PlaceholderText", method, placeholderText))
  50914. return makeSuggestion("PlaceholderText", element, placeholderText, {
  50915. variant
  50916. });
  50917. let textContent = normalize2(getNodeText(element));
  50918. if (canSuggest("Text", method, textContent))
  50919. return makeSuggestion("Text", element, textContent, {
  50920. variant
  50921. });
  50922. if (canSuggest("DisplayValue", method, element.value))
  50923. return makeSuggestion("DisplayValue", element, normalize2(element.value), {
  50924. variant
  50925. });
  50926. let alt = element.getAttribute("alt");
  50927. if (canSuggest("AltText", method, alt))
  50928. return makeSuggestion("AltText", element, alt, {
  50929. variant
  50930. });
  50931. let title = element.getAttribute("title");
  50932. if (canSuggest("Title", method, title))
  50933. return makeSuggestion("Title", element, title, {
  50934. variant
  50935. });
  50936. let testId = element.getAttribute(getConfig2().testIdAttribute);
  50937. if (canSuggest("TestId", method, testId))
  50938. return makeSuggestion("TestId", element, testId, {
  50939. variant
  50940. });
  50941. }
  50942. function copyStackTrace(target, source) {
  50943. target.stack = source.stack.replace(source.message, target.message);
  50944. }
  50945. function waitFor(callback, _ref) {
  50946. let {
  50947. container = getDocument(),
  50948. timeout = getConfig2().asyncUtilTimeout,
  50949. showOriginalStackTrace = getConfig2().showOriginalStackTrace,
  50950. stackTraceError,
  50951. interval = 50,
  50952. onTimeout = (error) => (Object.defineProperty(error, "message", {
  50953. value: getConfig2().getElementError(error.message, container).message
  50954. }), error),
  50955. mutationObserverOptions = {
  50956. subtree: !0,
  50957. childList: !0,
  50958. attributes: !0,
  50959. characterData: !0
  50960. }
  50961. } = _ref;
  50962. if (typeof callback != "function")
  50963. throw new TypeError("Received `callback` arg must be a function");
  50964. return new Promise(async (resolve, reject) => {
  50965. let lastError, intervalId, observer, finished = !1, promiseStatus = "idle", overallTimeoutTimer = setTimeout(handleTimeout, timeout), usingJestFakeTimers = jestFakeTimersAreEnabled();
  50966. if (usingJestFakeTimers) {
  50967. let {
  50968. unstable_advanceTimersWrapper: advanceTimersWrapper
  50969. } = getConfig2();
  50970. for (checkCallback(); !finished; ) {
  50971. if (!jestFakeTimersAreEnabled()) {
  50972. let error = new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
  50973. showOriginalStackTrace || copyStackTrace(error, stackTraceError), reject(error);
  50974. return;
  50975. }
  50976. if (await advanceTimersWrapper(async () => {
  50977. jest.advanceTimersByTime(interval);
  50978. }), finished)
  50979. break;
  50980. checkCallback();
  50981. }
  50982. } else {
  50983. try {
  50984. checkContainerType(container);
  50985. } catch (e) {
  50986. reject(e);
  50987. return;
  50988. }
  50989. intervalId = setInterval(checkRealTimersCallback, interval);
  50990. let {
  50991. MutationObserver: MutationObserver2
  50992. } = getWindowFromNode(container);
  50993. observer = new MutationObserver2(checkRealTimersCallback), observer.observe(container, mutationObserverOptions), checkCallback();
  50994. }
  50995. function onDone(error, result) {
  50996. finished = !0, clearTimeout(overallTimeoutTimer), usingJestFakeTimers || (clearInterval(intervalId), observer.disconnect()), error ? reject(error) : resolve(result);
  50997. }
  50998. function checkRealTimersCallback() {
  50999. if (jestFakeTimersAreEnabled()) {
  51000. let error = new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
  51001. return showOriginalStackTrace || copyStackTrace(error, stackTraceError), reject(error);
  51002. } else
  51003. return checkCallback();
  51004. }
  51005. function checkCallback() {
  51006. if (promiseStatus !== "pending")
  51007. try {
  51008. let result = runWithExpensiveErrorDiagnosticsDisabled(callback);
  51009. typeof result?.then == "function" ? (promiseStatus = "pending", result.then((resolvedValue) => {
  51010. promiseStatus = "resolved", onDone(null, resolvedValue);
  51011. }, (rejectedValue) => {
  51012. promiseStatus = "rejected", lastError = rejectedValue;
  51013. })) : onDone(null, result);
  51014. } catch (error) {
  51015. lastError = error;
  51016. }
  51017. }
  51018. function handleTimeout() {
  51019. let error;
  51020. lastError ? (error = lastError, !showOriginalStackTrace && error.name === "TestingLibraryElementError" && copyStackTrace(error, stackTraceError)) : (error = new Error("Timed out in waitFor."), showOriginalStackTrace || copyStackTrace(error, stackTraceError)), onDone(onTimeout(error), null);
  51021. }
  51022. });
  51023. }
  51024. function waitForWrapper(callback, options) {
  51025. let stackTraceError = new Error("STACK_TRACE_MESSAGE");
  51026. return getConfig2().asyncWrapper(() => waitFor(callback, {
  51027. stackTraceError,
  51028. ...options
  51029. }));
  51030. }
  51031. function getElementError(message, container) {
  51032. return getConfig2().getElementError(message, container);
  51033. }
  51034. function getMultipleElementsFoundError(message, container) {
  51035. return getElementError(message + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", container);
  51036. }
  51037. function queryAllByAttribute(attribute, container, text, _temp) {
  51038. let {
  51039. exact = !0,
  51040. collapseWhitespace,
  51041. trim: trim2,
  51042. normalizer
  51043. } = _temp === void 0 ? {} : _temp, matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51044. collapseWhitespace,
  51045. trim: trim2,
  51046. normalizer
  51047. });
  51048. return Array.from(container.querySelectorAll("[" + attribute + "]")).filter((node2) => matcher(node2.getAttribute(attribute), node2, text, matchNormalizer));
  51049. }
  51050. function queryByAttribute(attribute, container, text, options) {
  51051. let els = queryAllByAttribute(attribute, container, text, options);
  51052. if (els.length > 1)
  51053. throw getMultipleElementsFoundError("Found multiple elements by [" + attribute + "=" + text + "]", container);
  51054. return els[0] || null;
  51055. }
  51056. function makeSingleQuery(allQuery, getMultipleError2) {
  51057. return function(container) {
  51058. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
  51059. args[_key - 1] = arguments[_key];
  51060. let els = allQuery(container, ...args);
  51061. if (els.length > 1) {
  51062. let elementStrings = els.map((element) => getElementError(null, element).message).join(`
  51063. `);
  51064. throw getMultipleElementsFoundError(getMultipleError2(container, ...args) + `
  51065. Here are the matching elements:
  51066. ` + elementStrings, container);
  51067. }
  51068. return els[0] || null;
  51069. };
  51070. }
  51071. function getSuggestionError(suggestion, container) {
  51072. return getConfig2().getElementError(`A better query is available, try this:
  51073. ` + suggestion.toString() + `
  51074. `, container);
  51075. }
  51076. function makeGetAllQuery(allQuery, getMissingError2) {
  51077. return function(container) {
  51078. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)
  51079. args[_key2 - 1] = arguments[_key2];
  51080. let els = allQuery(container, ...args);
  51081. if (!els.length)
  51082. throw getConfig2().getElementError(getMissingError2(container, ...args), container);
  51083. return els;
  51084. };
  51085. }
  51086. function makeFindQuery(getter) {
  51087. return (container, text, options, waitForOptions) => waitForWrapper(() => getter(container, text, options), {
  51088. container,
  51089. ...waitForOptions
  51090. });
  51091. }
  51092. var wrapSingleQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
  51093. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++)
  51094. args[_key3 - 1] = arguments[_key3];
  51095. let element = query(container, ...args), [{
  51096. suggest = getConfig2().throwSuggestions
  51097. } = {}] = args.slice(-1);
  51098. if (element && suggest) {
  51099. let suggestion = getSuggestedQuery(element, variant);
  51100. if (suggestion && !queryAllByName.endsWith(suggestion.queryName))
  51101. throw getSuggestionError(suggestion.toString(), container);
  51102. }
  51103. return element;
  51104. }, wrapAllByQueryWithSuggestion = (query, queryAllByName, variant) => function(container) {
  51105. for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++)
  51106. args[_key4 - 1] = arguments[_key4];
  51107. let els = query(container, ...args), [{
  51108. suggest = getConfig2().throwSuggestions
  51109. } = {}] = args.slice(-1);
  51110. if (els.length && suggest) {
  51111. let uniqueSuggestionMessages = [...new Set(els.map((element) => {
  51112. var _getSuggestedQuery;
  51113. return (_getSuggestedQuery = getSuggestedQuery(element, variant)) == null ? void 0 : _getSuggestedQuery.toString();
  51114. }))];
  51115. if (
  51116. // only want to suggest if all the els have the same suggestion.
  51117. uniqueSuggestionMessages.length === 1 && !queryAllByName.endsWith(
  51118. // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
  51119. getSuggestedQuery(els[0], variant).queryName
  51120. )
  51121. )
  51122. throw getSuggestionError(uniqueSuggestionMessages[0], container);
  51123. }
  51124. return els;
  51125. };
  51126. function buildQueries(queryAllBy, getMultipleError2, getMissingError2) {
  51127. let queryBy = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy, getMultipleError2), queryAllBy.name, "query"), getAllBy = makeGetAllQuery(queryAllBy, getMissingError2), getBy = makeSingleQuery(getAllBy, getMultipleError2), getByWithSuggestions = wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "get"), getAllWithSuggestions = wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name.replace("query", "get"), "getAll"), findAllBy = makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name, "findAll")), findBy = makeFindQuery(wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, "find"));
  51128. return [queryBy, getAllWithSuggestions, getByWithSuggestions, findAllBy, findBy];
  51129. }
  51130. var queryHelpers = Object.freeze({
  51131. __proto__: null,
  51132. getElementError,
  51133. wrapAllByQueryWithSuggestion,
  51134. wrapSingleQueryWithSuggestion,
  51135. getMultipleElementsFoundError,
  51136. queryAllByAttribute,
  51137. queryByAttribute,
  51138. makeSingleQuery,
  51139. makeGetAllQuery,
  51140. makeFindQuery,
  51141. buildQueries
  51142. });
  51143. function queryAllLabels(container) {
  51144. return Array.from(container.querySelectorAll("label,input")).map((node2) => ({
  51145. node: node2,
  51146. textToMatch: getLabelContent(node2)
  51147. })).filter((_ref) => {
  51148. let {
  51149. textToMatch
  51150. } = _ref;
  51151. return textToMatch !== null;
  51152. });
  51153. }
  51154. var queryAllLabelsByText = function(container, text, _temp) {
  51155. let {
  51156. exact = !0,
  51157. trim: trim2,
  51158. collapseWhitespace,
  51159. normalizer
  51160. } = _temp === void 0 ? {} : _temp, matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51161. collapseWhitespace,
  51162. trim: trim2,
  51163. normalizer
  51164. });
  51165. return queryAllLabels(container).filter((_ref2) => {
  51166. let {
  51167. node: node2,
  51168. textToMatch
  51169. } = _ref2;
  51170. return matcher(textToMatch, node2, text, matchNormalizer);
  51171. }).map((_ref3) => {
  51172. let {
  51173. node: node2
  51174. } = _ref3;
  51175. return node2;
  51176. });
  51177. }, queryAllByLabelText = function(container, text, _temp2) {
  51178. let {
  51179. selector = "*",
  51180. exact = !0,
  51181. collapseWhitespace,
  51182. trim: trim2,
  51183. normalizer
  51184. } = _temp2 === void 0 ? {} : _temp2;
  51185. checkContainerType(container);
  51186. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51187. collapseWhitespace,
  51188. trim: trim2,
  51189. normalizer
  51190. }), matchingLabelledElements = Array.from(container.querySelectorAll("*")).filter((element) => getRealLabels(element).length || element.hasAttribute("aria-labelledby")).reduce((labelledElements, labelledElement) => {
  51191. let labelList = getLabels3(container, labelledElement, {
  51192. selector
  51193. });
  51194. labelList.filter((label) => !!label.formControl).forEach((label) => {
  51195. matcher(label.content, label.formControl, text, matchNormalizer) && label.formControl && labelledElements.push(label.formControl);
  51196. });
  51197. let labelsValue = labelList.filter((label) => !!label.content).map((label) => label.content);
  51198. return matcher(labelsValue.join(" "), labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement), labelsValue.length > 1 && labelsValue.forEach((labelValue, index4) => {
  51199. matcher(labelValue, labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement);
  51200. let labelsFiltered = [...labelsValue];
  51201. labelsFiltered.splice(index4, 1), labelsFiltered.length > 1 && matcher(labelsFiltered.join(" "), labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement);
  51202. }), labelledElements;
  51203. }, []).concat(queryAllByAttribute("aria-label", container, text, {
  51204. exact,
  51205. normalizer: matchNormalizer
  51206. }));
  51207. return Array.from(new Set(matchingLabelledElements)).filter((element) => element.matches(selector));
  51208. }, getAllByLabelText = function(container, text) {
  51209. for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)
  51210. rest[_key - 2] = arguments[_key];
  51211. let els = queryAllByLabelText(container, text, ...rest);
  51212. if (!els.length) {
  51213. let labels = queryAllLabelsByText(container, text, ...rest);
  51214. if (labels.length) {
  51215. let tagNames = labels.map((label) => getTagNameOfElementAssociatedWithLabelViaFor(container, label)).filter((tagName) => !!tagName);
  51216. throw tagNames.length ? getConfig2().getElementError(tagNames.map((tagName) => "Found a label with the text of: " + text + ", however the element associated with this label (<" + tagName + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + tagName + " />, you can use aria-label or aria-labelledby instead.").join(`
  51217. `), container) : getConfig2().getElementError("Found a label with the text of: " + text + `, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`, container);
  51218. } else
  51219. throw getConfig2().getElementError("Unable to find a label with the text of: " + text, container);
  51220. }
  51221. return els;
  51222. };
  51223. function getTagNameOfElementAssociatedWithLabelViaFor(container, label) {
  51224. let htmlFor = label.getAttribute("for");
  51225. if (!htmlFor)
  51226. return null;
  51227. let element = container.querySelector('[id="' + htmlFor + '"]');
  51228. return element ? element.tagName.toLowerCase() : null;
  51229. }
  51230. var getMultipleError$7 = (c, text) => "Found multiple elements with the text of: " + text, queryByLabelText = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText, getMultipleError$7), queryAllByLabelText.name, "query"), getByLabelText = makeSingleQuery(getAllByLabelText, getMultipleError$7), findAllByLabelText = makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "findAll")), findByLabelText = makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "find")), getAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, "getAll"), getByLabelTextWithSuggestions = wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, "get"), queryAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByLabelText, queryAllByLabelText.name, "queryAll"), queryAllByPlaceholderText = function() {
  51231. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  51232. args[_key] = arguments[_key];
  51233. return checkContainerType(args[0]), queryAllByAttribute("placeholder", ...args);
  51234. }, getMultipleError$6 = (c, text) => "Found multiple elements with the placeholder text of: " + text, getMissingError$6 = (c, text) => "Unable to find an element with the placeholder text of: " + text, queryAllByPlaceholderTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByPlaceholderText, queryAllByPlaceholderText.name, "queryAll"), [queryByPlaceholderText, getAllByPlaceholderText, getByPlaceholderText, findAllByPlaceholderText, findByPlaceholderText] = buildQueries(queryAllByPlaceholderText, getMultipleError$6, getMissingError$6), queryAllByText = function(container, text, _temp) {
  51235. let {
  51236. selector = "*",
  51237. exact = !0,
  51238. collapseWhitespace,
  51239. trim: trim2,
  51240. ignore = getConfig2().defaultIgnore,
  51241. normalizer
  51242. } = _temp === void 0 ? {} : _temp;
  51243. checkContainerType(container);
  51244. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51245. collapseWhitespace,
  51246. trim: trim2,
  51247. normalizer
  51248. }), baseArray = [];
  51249. return typeof container.matches == "function" && container.matches(selector) && (baseArray = [container]), [...baseArray, ...Array.from(container.querySelectorAll(selector))].filter((node2) => !ignore || !node2.matches(ignore)).filter((node2) => matcher(getNodeText(node2), node2, text, matchNormalizer));
  51250. }, getMultipleError$5 = (c, text) => "Found multiple elements with the text: " + text, getMissingError$5 = function(c, text, options) {
  51251. options === void 0 && (options = {});
  51252. let {
  51253. collapseWhitespace,
  51254. trim: trim2,
  51255. normalizer,
  51256. selector
  51257. } = options, normalizedText = makeNormalizer({
  51258. collapseWhitespace,
  51259. trim: trim2,
  51260. normalizer
  51261. })(text.toString()), isNormalizedDifferent = normalizedText !== text.toString(), isCustomSelector = (selector ?? "*") !== "*";
  51262. return "Unable to find an element with the text: " + (isNormalizedDifferent ? normalizedText + " (normalized from '" + text + "')" : text) + (isCustomSelector ? ", which matches selector '" + selector + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
  51263. }, queryAllByTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByText, queryAllByText.name, "queryAll"), [queryByText, getAllByText, getByText, findAllByText, findByText] = buildQueries(queryAllByText, getMultipleError$5, getMissingError$5), queryAllByDisplayValue = function(container, value, _temp) {
  51264. let {
  51265. exact = !0,
  51266. collapseWhitespace,
  51267. trim: trim2,
  51268. normalizer
  51269. } = _temp === void 0 ? {} : _temp;
  51270. checkContainerType(container);
  51271. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51272. collapseWhitespace,
  51273. trim: trim2,
  51274. normalizer
  51275. });
  51276. return Array.from(container.querySelectorAll("input,textarea,select")).filter((node2) => node2.tagName === "SELECT" ? Array.from(node2.options).filter((option) => option.selected).some((optionNode) => matcher(getNodeText(optionNode), optionNode, value, matchNormalizer)) : matcher(node2.value, node2, value, matchNormalizer));
  51277. }, getMultipleError$4 = (c, value) => "Found multiple elements with the display value: " + value + ".", getMissingError$4 = (c, value) => "Unable to find an element with the display value: " + value + ".", queryAllByDisplayValueWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByDisplayValue, queryAllByDisplayValue.name, "queryAll"), [queryByDisplayValue, getAllByDisplayValue, getByDisplayValue, findAllByDisplayValue, findByDisplayValue] = buildQueries(queryAllByDisplayValue, getMultipleError$4, getMissingError$4), VALID_TAG_REGEXP = /^(img|input|area|.+-.+)$/i, queryAllByAltText = function(container, alt, options) {
  51278. return options === void 0 && (options = {}), checkContainerType(container), queryAllByAttribute("alt", container, alt, options).filter((node2) => VALID_TAG_REGEXP.test(node2.tagName));
  51279. }, getMultipleError$3 = (c, alt) => "Found multiple elements with the alt text: " + alt, getMissingError$3 = (c, alt) => "Unable to find an element with the alt text: " + alt, queryAllByAltTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByAltText, queryAllByAltText.name, "queryAll"), [queryByAltText, getAllByAltText, getByAltText, findAllByAltText, findByAltText] = buildQueries(queryAllByAltText, getMultipleError$3, getMissingError$3), isSvgTitle = (node2) => {
  51280. var _node$parentElement;
  51281. return node2.tagName.toLowerCase() === "title" && ((_node$parentElement = node2.parentElement) == null ? void 0 : _node$parentElement.tagName.toLowerCase()) === "svg";
  51282. }, queryAllByTitle = function(container, text, _temp) {
  51283. let {
  51284. exact = !0,
  51285. collapseWhitespace,
  51286. trim: trim2,
  51287. normalizer
  51288. } = _temp === void 0 ? {} : _temp;
  51289. checkContainerType(container);
  51290. let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({
  51291. collapseWhitespace,
  51292. trim: trim2,
  51293. normalizer
  51294. });
  51295. return Array.from(container.querySelectorAll("[title], svg > title")).filter((node2) => matcher(node2.getAttribute("title"), node2, text, matchNormalizer) || isSvgTitle(node2) && matcher(getNodeText(node2), node2, text, matchNormalizer));
  51296. }, getMultipleError$2 = (c, title) => "Found multiple elements with the title: " + title + ".", getMissingError$2 = (c, title) => "Unable to find an element with the title: " + title + ".", queryAllByTitleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTitle, queryAllByTitle.name, "queryAll"), [queryByTitle, getAllByTitle, getByTitle, findAllByTitle, findByTitle] = buildQueries(queryAllByTitle, getMultipleError$2, getMissingError$2), queryAllByRole = function(container, role, _temp) {
  51297. let {
  51298. hidden = getConfig2().defaultHidden,
  51299. name,
  51300. description,
  51301. queryFallbacks = !1,
  51302. selected,
  51303. busy,
  51304. checked,
  51305. pressed,
  51306. current,
  51307. level,
  51308. expanded,
  51309. value: {
  51310. now: valueNow,
  51311. min: valueMin,
  51312. max: valueMax,
  51313. text: valueText
  51314. } = {}
  51315. } = _temp === void 0 ? {} : _temp;
  51316. if (checkContainerType(container), selected !== void 0) {
  51317. var _allRoles$get;
  51318. if (((_allRoles$get = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get.props["aria-selected"]) === void 0)
  51319. throw new Error('"aria-selected" is not supported on role "' + role + '".');
  51320. }
  51321. if (busy !== void 0) {
  51322. var _allRoles$get2;
  51323. if (((_allRoles$get2 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get2.props["aria-busy"]) === void 0)
  51324. throw new Error('"aria-busy" is not supported on role "' + role + '".');
  51325. }
  51326. if (checked !== void 0) {
  51327. var _allRoles$get3;
  51328. if (((_allRoles$get3 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get3.props["aria-checked"]) === void 0)
  51329. throw new Error('"aria-checked" is not supported on role "' + role + '".');
  51330. }
  51331. if (pressed !== void 0) {
  51332. var _allRoles$get4;
  51333. if (((_allRoles$get4 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get4.props["aria-pressed"]) === void 0)
  51334. throw new Error('"aria-pressed" is not supported on role "' + role + '".');
  51335. }
  51336. if (current !== void 0) {
  51337. var _allRoles$get5;
  51338. if (((_allRoles$get5 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get5.props["aria-current"]) === void 0)
  51339. throw new Error('"aria-current" is not supported on role "' + role + '".');
  51340. }
  51341. if (level !== void 0 && role !== "heading")
  51342. throw new Error('Role "' + role + '" cannot have "level" property.');
  51343. if (valueNow !== void 0) {
  51344. var _allRoles$get6;
  51345. if (((_allRoles$get6 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get6.props["aria-valuenow"]) === void 0)
  51346. throw new Error('"aria-valuenow" is not supported on role "' + role + '".');
  51347. }
  51348. if (valueMax !== void 0) {
  51349. var _allRoles$get7;
  51350. if (((_allRoles$get7 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get7.props["aria-valuemax"]) === void 0)
  51351. throw new Error('"aria-valuemax" is not supported on role "' + role + '".');
  51352. }
  51353. if (valueMin !== void 0) {
  51354. var _allRoles$get8;
  51355. if (((_allRoles$get8 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get8.props["aria-valuemin"]) === void 0)
  51356. throw new Error('"aria-valuemin" is not supported on role "' + role + '".');
  51357. }
  51358. if (valueText !== void 0) {
  51359. var _allRoles$get9;
  51360. if (((_allRoles$get9 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get9.props["aria-valuetext"]) === void 0)
  51361. throw new Error('"aria-valuetext" is not supported on role "' + role + '".');
  51362. }
  51363. if (expanded !== void 0) {
  51364. var _allRoles$get0;
  51365. if (((_allRoles$get0 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get0.props["aria-expanded"]) === void 0)
  51366. throw new Error('"aria-expanded" is not supported on role "' + role + '".');
  51367. }
  51368. let subtreeIsInaccessibleCache = /* @__PURE__ */ new WeakMap();
  51369. function cachedIsSubtreeInaccessible(element) {
  51370. return subtreeIsInaccessibleCache.has(element) || subtreeIsInaccessibleCache.set(element, isSubtreeInaccessible(element)), subtreeIsInaccessibleCache.get(element);
  51371. }
  51372. return Array.from(container.querySelectorAll(
  51373. // Only query elements that can be matched by the following filters
  51374. makeRoleSelector(role)
  51375. )).filter((node2) => {
  51376. if (node2.hasAttribute("role")) {
  51377. let roleValue = node2.getAttribute("role");
  51378. if (queryFallbacks)
  51379. return roleValue.split(" ").filter(Boolean).some((roleAttributeToken) => roleAttributeToken === role);
  51380. let [firstRoleAttributeToken] = roleValue.split(" ");
  51381. return firstRoleAttributeToken === role;
  51382. }
  51383. return getImplicitAriaRoles2(node2).some((implicitRole) => implicitRole === role);
  51384. }).filter((element) => {
  51385. if (selected !== void 0)
  51386. return selected === computeAriaSelected(element);
  51387. if (busy !== void 0)
  51388. return busy === computeAriaBusy(element);
  51389. if (checked !== void 0)
  51390. return checked === computeAriaChecked(element);
  51391. if (pressed !== void 0)
  51392. return pressed === computeAriaPressed(element);
  51393. if (current !== void 0)
  51394. return current === computeAriaCurrent(element);
  51395. if (expanded !== void 0)
  51396. return expanded === computeAriaExpanded(element);
  51397. if (level !== void 0)
  51398. return level === computeHeadingLevel(element);
  51399. if (valueNow !== void 0 || valueMax !== void 0 || valueMin !== void 0 || valueText !== void 0) {
  51400. let valueMatches = !0;
  51401. if (valueNow !== void 0 && valueMatches && (valueMatches = valueNow === computeAriaValueNow(element)), valueMax !== void 0 && valueMatches && (valueMatches = valueMax === computeAriaValueMax(element)), valueMin !== void 0 && valueMatches && (valueMatches = valueMin === computeAriaValueMin(element)), valueText !== void 0) {
  51402. var _computeAriaValueText;
  51403. valueMatches && (valueMatches = matches3((_computeAriaValueText = computeAriaValueText(element)) != null ? _computeAriaValueText : null, element, valueText, (text) => text));
  51404. }
  51405. return valueMatches;
  51406. }
  51407. return !0;
  51408. }).filter((element) => name === void 0 ? !0 : matches3(computeAccessibleName2(element, {
  51409. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  51410. }), element, name, (text) => text)).filter((element) => description === void 0 ? !0 : matches3(computeAccessibleDescription2(element, {
  51411. computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements
  51412. }), element, description, (text) => text)).filter((element) => hidden === !1 ? isInaccessible(element, {
  51413. isSubtreeInaccessible: cachedIsSubtreeInaccessible
  51414. }) === !1 : !0);
  51415. };
  51416. function makeRoleSelector(role) {
  51417. var _roleElements$get;
  51418. let explicitRoleSelector = '*[role~="' + role + '"]', roleRelations = (_roleElements$get = import_aria_query3.roleElements.get(role)) != null ? _roleElements$get : /* @__PURE__ */ new Set(), implicitRoleSelectors = new Set(Array.from(roleRelations).map((_ref) => {
  51419. let {
  51420. name
  51421. } = _ref;
  51422. return name;
  51423. }));
  51424. return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(",");
  51425. }
  51426. var getNameHint = (name) => {
  51427. let nameHint = "";
  51428. return name === void 0 ? nameHint = "" : typeof name == "string" ? nameHint = ' and name "' + name + '"' : nameHint = " and name `" + name + "`", nameHint;
  51429. }, getMultipleError$1 = function(c, role, _temp2) {
  51430. let {
  51431. name
  51432. } = _temp2 === void 0 ? {} : _temp2;
  51433. return 'Found multiple elements with the role "' + role + '"' + getNameHint(name);
  51434. }, getMissingError$1 = function(container, role, _temp3) {
  51435. let {
  51436. hidden = getConfig2().defaultHidden,
  51437. name,
  51438. description
  51439. } = _temp3 === void 0 ? {} : _temp3;
  51440. if (getConfig2()._disableExpensiveErrorDiagnostics)
  51441. return 'Unable to find role="' + role + '"' + getNameHint(name);
  51442. let roles3 = "";
  51443. Array.from(container.children).forEach((childElement) => {
  51444. roles3 += prettyRoles(childElement, {
  51445. hidden,
  51446. includeDescription: description !== void 0
  51447. });
  51448. });
  51449. let roleMessage;
  51450. roles3.length === 0 ? hidden === !1 ? roleMessage = "There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole" : roleMessage = "There are no available roles." : roleMessage = (`
  51451. Here are the ` + (hidden === !1 ? "accessible" : "available") + ` roles:
  51452. ` + roles3.replace(/\n/g, `
  51453. `).replace(/\n\s\s\n/g, `
  51454. `) + `
  51455. `).trim();
  51456. let nameHint = "";
  51457. name === void 0 ? nameHint = "" : typeof name == "string" ? nameHint = ' and name "' + name + '"' : nameHint = " and name `" + name + "`";
  51458. let descriptionHint = "";
  51459. return description === void 0 ? descriptionHint = "" : typeof description == "string" ? descriptionHint = ' and description "' + description + '"' : descriptionHint = " and description `" + description + "`", (`
  51460. Unable to find an ` + (hidden === !1 ? "accessible " : "") + 'element with the role "' + role + '"' + nameHint + descriptionHint + `
  51461. ` + roleMessage).trim();
  51462. }, queryAllByRoleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByRole, queryAllByRole.name, "queryAll"), [queryByRole, getAllByRole, getByRole, findAllByRole, findByRole] = buildQueries(queryAllByRole, getMultipleError$1, getMissingError$1), getTestIdAttribute = () => getConfig2().testIdAttribute, queryAllByTestId = function() {
  51463. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
  51464. args[_key] = arguments[_key];
  51465. return checkContainerType(args[0]), queryAllByAttribute(getTestIdAttribute(), ...args);
  51466. }, getMultipleError = (c, id) => "Found multiple elements by: [" + getTestIdAttribute() + '="' + id + '"]', getMissingError = (c, id) => "Unable to find an element by: [" + getTestIdAttribute() + '="' + id + '"]', queryAllByTestIdWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTestId, queryAllByTestId.name, "queryAll"), [queryByTestId, getAllByTestId, getByTestId, findAllByTestId, findByTestId] = buildQueries(queryAllByTestId, getMultipleError, getMissingError), queries = Object.freeze({
  51467. __proto__: null,
  51468. queryAllByLabelText: queryAllByLabelTextWithSuggestions,
  51469. queryByLabelText,
  51470. getAllByLabelText: getAllByLabelTextWithSuggestions,
  51471. getByLabelText: getByLabelTextWithSuggestions,
  51472. findAllByLabelText,
  51473. findByLabelText,
  51474. queryByPlaceholderText,
  51475. queryAllByPlaceholderText: queryAllByPlaceholderTextWithSuggestions,
  51476. getByPlaceholderText,
  51477. getAllByPlaceholderText,
  51478. findAllByPlaceholderText,
  51479. findByPlaceholderText,
  51480. queryByText,
  51481. queryAllByText: queryAllByTextWithSuggestions,
  51482. getByText,
  51483. getAllByText,
  51484. findAllByText,
  51485. findByText,
  51486. queryByDisplayValue,
  51487. queryAllByDisplayValue: queryAllByDisplayValueWithSuggestions,
  51488. getByDisplayValue,
  51489. getAllByDisplayValue,
  51490. findAllByDisplayValue,
  51491. findByDisplayValue,
  51492. queryByAltText,
  51493. queryAllByAltText: queryAllByAltTextWithSuggestions,
  51494. getByAltText,
  51495. getAllByAltText,
  51496. findAllByAltText,
  51497. findByAltText,
  51498. queryByTitle,
  51499. queryAllByTitle: queryAllByTitleWithSuggestions,
  51500. getByTitle,
  51501. getAllByTitle,
  51502. findAllByTitle,
  51503. findByTitle,
  51504. queryByRole,
  51505. queryAllByRole: queryAllByRoleWithSuggestions,
  51506. getAllByRole,
  51507. getByRole,
  51508. findAllByRole,
  51509. findByRole,
  51510. queryByTestId,
  51511. queryAllByTestId: queryAllByTestIdWithSuggestions,
  51512. getByTestId,
  51513. getAllByTestId,
  51514. findAllByTestId,
  51515. findByTestId
  51516. });
  51517. function getQueriesForElement(element, queries$1, initialValue2) {
  51518. return queries$1 === void 0 && (queries$1 = queries), initialValue2 === void 0 && (initialValue2 = {}), Object.keys(queries$1).reduce((helpers, key) => {
  51519. let fn4 = queries$1[key];
  51520. return helpers[key] = fn4.bind(null, element), helpers;
  51521. }, initialValue2);
  51522. }
  51523. var isRemoved = (result) => !result || Array.isArray(result) && !result.length;
  51524. function initialCheck(elements) {
  51525. if (isRemoved(elements))
  51526. throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.");
  51527. }
  51528. async function waitForElementToBeRemoved(callback, options) {
  51529. let timeoutError = new Error("Timed out in waitForElementToBeRemoved.");
  51530. if (typeof callback != "function") {
  51531. initialCheck(callback);
  51532. let getRemainingElements = (Array.isArray(callback) ? callback : [callback]).map((element) => {
  51533. let parent = element.parentElement;
  51534. if (parent === null) return () => null;
  51535. for (; parent.parentElement; ) parent = parent.parentElement;
  51536. return () => parent.contains(element) ? element : null;
  51537. });
  51538. callback = () => getRemainingElements.map((c) => c()).filter(Boolean);
  51539. }
  51540. return initialCheck(callback()), waitForWrapper(() => {
  51541. let result;
  51542. try {
  51543. result = callback();
  51544. } catch (error) {
  51545. if (error.name === "TestingLibraryElementError")
  51546. return;
  51547. throw error;
  51548. }
  51549. if (!isRemoved(result))
  51550. throw timeoutError;
  51551. }, options);
  51552. }
  51553. var eventMap = {
  51554. // Clipboard Events
  51555. copy: {
  51556. EventType: "ClipboardEvent",
  51557. defaultInit: {
  51558. bubbles: !0,
  51559. cancelable: !0,
  51560. composed: !0
  51561. }
  51562. },
  51563. cut: {
  51564. EventType: "ClipboardEvent",
  51565. defaultInit: {
  51566. bubbles: !0,
  51567. cancelable: !0,
  51568. composed: !0
  51569. }
  51570. },
  51571. paste: {
  51572. EventType: "ClipboardEvent",
  51573. defaultInit: {
  51574. bubbles: !0,
  51575. cancelable: !0,
  51576. composed: !0
  51577. }
  51578. },
  51579. // Composition Events
  51580. compositionEnd: {
  51581. EventType: "CompositionEvent",
  51582. defaultInit: {
  51583. bubbles: !0,
  51584. cancelable: !0,
  51585. composed: !0
  51586. }
  51587. },
  51588. compositionStart: {
  51589. EventType: "CompositionEvent",
  51590. defaultInit: {
  51591. bubbles: !0,
  51592. cancelable: !0,
  51593. composed: !0
  51594. }
  51595. },
  51596. compositionUpdate: {
  51597. EventType: "CompositionEvent",
  51598. defaultInit: {
  51599. bubbles: !0,
  51600. cancelable: !0,
  51601. composed: !0
  51602. }
  51603. },
  51604. // Keyboard Events
  51605. keyDown: {
  51606. EventType: "KeyboardEvent",
  51607. defaultInit: {
  51608. bubbles: !0,
  51609. cancelable: !0,
  51610. charCode: 0,
  51611. composed: !0
  51612. }
  51613. },
  51614. keyPress: {
  51615. EventType: "KeyboardEvent",
  51616. defaultInit: {
  51617. bubbles: !0,
  51618. cancelable: !0,
  51619. charCode: 0,
  51620. composed: !0
  51621. }
  51622. },
  51623. keyUp: {
  51624. EventType: "KeyboardEvent",
  51625. defaultInit: {
  51626. bubbles: !0,
  51627. cancelable: !0,
  51628. charCode: 0,
  51629. composed: !0
  51630. }
  51631. },
  51632. // Focus Events
  51633. focus: {
  51634. EventType: "FocusEvent",
  51635. defaultInit: {
  51636. bubbles: !1,
  51637. cancelable: !1,
  51638. composed: !0
  51639. }
  51640. },
  51641. blur: {
  51642. EventType: "FocusEvent",
  51643. defaultInit: {
  51644. bubbles: !1,
  51645. cancelable: !1,
  51646. composed: !0
  51647. }
  51648. },
  51649. focusIn: {
  51650. EventType: "FocusEvent",
  51651. defaultInit: {
  51652. bubbles: !0,
  51653. cancelable: !1,
  51654. composed: !0
  51655. }
  51656. },
  51657. focusOut: {
  51658. EventType: "FocusEvent",
  51659. defaultInit: {
  51660. bubbles: !0,
  51661. cancelable: !1,
  51662. composed: !0
  51663. }
  51664. },
  51665. // Form Events
  51666. change: {
  51667. EventType: "Event",
  51668. defaultInit: {
  51669. bubbles: !0,
  51670. cancelable: !1
  51671. }
  51672. },
  51673. input: {
  51674. EventType: "InputEvent",
  51675. defaultInit: {
  51676. bubbles: !0,
  51677. cancelable: !1,
  51678. composed: !0
  51679. }
  51680. },
  51681. invalid: {
  51682. EventType: "Event",
  51683. defaultInit: {
  51684. bubbles: !1,
  51685. cancelable: !0
  51686. }
  51687. },
  51688. submit: {
  51689. EventType: "Event",
  51690. defaultInit: {
  51691. bubbles: !0,
  51692. cancelable: !0
  51693. }
  51694. },
  51695. reset: {
  51696. EventType: "Event",
  51697. defaultInit: {
  51698. bubbles: !0,
  51699. cancelable: !0
  51700. }
  51701. },
  51702. // Mouse Events
  51703. click: {
  51704. EventType: "MouseEvent",
  51705. defaultInit: {
  51706. bubbles: !0,
  51707. cancelable: !0,
  51708. button: 0,
  51709. composed: !0
  51710. }
  51711. },
  51712. contextMenu: {
  51713. EventType: "MouseEvent",
  51714. defaultInit: {
  51715. bubbles: !0,
  51716. cancelable: !0,
  51717. composed: !0
  51718. }
  51719. },
  51720. dblClick: {
  51721. EventType: "MouseEvent",
  51722. defaultInit: {
  51723. bubbles: !0,
  51724. cancelable: !0,
  51725. composed: !0
  51726. }
  51727. },
  51728. drag: {
  51729. EventType: "DragEvent",
  51730. defaultInit: {
  51731. bubbles: !0,
  51732. cancelable: !0,
  51733. composed: !0
  51734. }
  51735. },
  51736. dragEnd: {
  51737. EventType: "DragEvent",
  51738. defaultInit: {
  51739. bubbles: !0,
  51740. cancelable: !1,
  51741. composed: !0
  51742. }
  51743. },
  51744. dragEnter: {
  51745. EventType: "DragEvent",
  51746. defaultInit: {
  51747. bubbles: !0,
  51748. cancelable: !0,
  51749. composed: !0
  51750. }
  51751. },
  51752. dragExit: {
  51753. EventType: "DragEvent",
  51754. defaultInit: {
  51755. bubbles: !0,
  51756. cancelable: !1,
  51757. composed: !0
  51758. }
  51759. },
  51760. dragLeave: {
  51761. EventType: "DragEvent",
  51762. defaultInit: {
  51763. bubbles: !0,
  51764. cancelable: !1,
  51765. composed: !0
  51766. }
  51767. },
  51768. dragOver: {
  51769. EventType: "DragEvent",
  51770. defaultInit: {
  51771. bubbles: !0,
  51772. cancelable: !0,
  51773. composed: !0
  51774. }
  51775. },
  51776. dragStart: {
  51777. EventType: "DragEvent",
  51778. defaultInit: {
  51779. bubbles: !0,
  51780. cancelable: !0,
  51781. composed: !0
  51782. }
  51783. },
  51784. drop: {
  51785. EventType: "DragEvent",
  51786. defaultInit: {
  51787. bubbles: !0,
  51788. cancelable: !0,
  51789. composed: !0
  51790. }
  51791. },
  51792. mouseDown: {
  51793. EventType: "MouseEvent",
  51794. defaultInit: {
  51795. bubbles: !0,
  51796. cancelable: !0,
  51797. composed: !0
  51798. }
  51799. },
  51800. mouseEnter: {
  51801. EventType: "MouseEvent",
  51802. defaultInit: {
  51803. bubbles: !1,
  51804. cancelable: !1,
  51805. composed: !0
  51806. }
  51807. },
  51808. mouseLeave: {
  51809. EventType: "MouseEvent",
  51810. defaultInit: {
  51811. bubbles: !1,
  51812. cancelable: !1,
  51813. composed: !0
  51814. }
  51815. },
  51816. mouseMove: {
  51817. EventType: "MouseEvent",
  51818. defaultInit: {
  51819. bubbles: !0,
  51820. cancelable: !0,
  51821. composed: !0
  51822. }
  51823. },
  51824. mouseOut: {
  51825. EventType: "MouseEvent",
  51826. defaultInit: {
  51827. bubbles: !0,
  51828. cancelable: !0,
  51829. composed: !0
  51830. }
  51831. },
  51832. mouseOver: {
  51833. EventType: "MouseEvent",
  51834. defaultInit: {
  51835. bubbles: !0,
  51836. cancelable: !0,
  51837. composed: !0
  51838. }
  51839. },
  51840. mouseUp: {
  51841. EventType: "MouseEvent",
  51842. defaultInit: {
  51843. bubbles: !0,
  51844. cancelable: !0,
  51845. composed: !0
  51846. }
  51847. },
  51848. // Selection Events
  51849. select: {
  51850. EventType: "Event",
  51851. defaultInit: {
  51852. bubbles: !0,
  51853. cancelable: !1
  51854. }
  51855. },
  51856. // Touch Events
  51857. touchCancel: {
  51858. EventType: "TouchEvent",
  51859. defaultInit: {
  51860. bubbles: !0,
  51861. cancelable: !1,
  51862. composed: !0
  51863. }
  51864. },
  51865. touchEnd: {
  51866. EventType: "TouchEvent",
  51867. defaultInit: {
  51868. bubbles: !0,
  51869. cancelable: !0,
  51870. composed: !0
  51871. }
  51872. },
  51873. touchMove: {
  51874. EventType: "TouchEvent",
  51875. defaultInit: {
  51876. bubbles: !0,
  51877. cancelable: !0,
  51878. composed: !0
  51879. }
  51880. },
  51881. touchStart: {
  51882. EventType: "TouchEvent",
  51883. defaultInit: {
  51884. bubbles: !0,
  51885. cancelable: !0,
  51886. composed: !0
  51887. }
  51888. },
  51889. // UI Events
  51890. resize: {
  51891. EventType: "UIEvent",
  51892. defaultInit: {
  51893. bubbles: !1,
  51894. cancelable: !1
  51895. }
  51896. },
  51897. scroll: {
  51898. EventType: "UIEvent",
  51899. defaultInit: {
  51900. bubbles: !1,
  51901. cancelable: !1
  51902. }
  51903. },
  51904. // Wheel Events
  51905. wheel: {
  51906. EventType: "WheelEvent",
  51907. defaultInit: {
  51908. bubbles: !0,
  51909. cancelable: !0,
  51910. composed: !0
  51911. }
  51912. },
  51913. // Media Events
  51914. abort: {
  51915. EventType: "Event",
  51916. defaultInit: {
  51917. bubbles: !1,
  51918. cancelable: !1
  51919. }
  51920. },
  51921. canPlay: {
  51922. EventType: "Event",
  51923. defaultInit: {
  51924. bubbles: !1,
  51925. cancelable: !1
  51926. }
  51927. },
  51928. canPlayThrough: {
  51929. EventType: "Event",
  51930. defaultInit: {
  51931. bubbles: !1,
  51932. cancelable: !1
  51933. }
  51934. },
  51935. durationChange: {
  51936. EventType: "Event",
  51937. defaultInit: {
  51938. bubbles: !1,
  51939. cancelable: !1
  51940. }
  51941. },
  51942. emptied: {
  51943. EventType: "Event",
  51944. defaultInit: {
  51945. bubbles: !1,
  51946. cancelable: !1
  51947. }
  51948. },
  51949. encrypted: {
  51950. EventType: "Event",
  51951. defaultInit: {
  51952. bubbles: !1,
  51953. cancelable: !1
  51954. }
  51955. },
  51956. ended: {
  51957. EventType: "Event",
  51958. defaultInit: {
  51959. bubbles: !1,
  51960. cancelable: !1
  51961. }
  51962. },
  51963. loadedData: {
  51964. EventType: "Event",
  51965. defaultInit: {
  51966. bubbles: !1,
  51967. cancelable: !1
  51968. }
  51969. },
  51970. loadedMetadata: {
  51971. EventType: "Event",
  51972. defaultInit: {
  51973. bubbles: !1,
  51974. cancelable: !1
  51975. }
  51976. },
  51977. loadStart: {
  51978. EventType: "ProgressEvent",
  51979. defaultInit: {
  51980. bubbles: !1,
  51981. cancelable: !1
  51982. }
  51983. },
  51984. pause: {
  51985. EventType: "Event",
  51986. defaultInit: {
  51987. bubbles: !1,
  51988. cancelable: !1
  51989. }
  51990. },
  51991. play: {
  51992. EventType: "Event",
  51993. defaultInit: {
  51994. bubbles: !1,
  51995. cancelable: !1
  51996. }
  51997. },
  51998. playing: {
  51999. EventType: "Event",
  52000. defaultInit: {
  52001. bubbles: !1,
  52002. cancelable: !1
  52003. }
  52004. },
  52005. progress: {
  52006. EventType: "ProgressEvent",
  52007. defaultInit: {
  52008. bubbles: !1,
  52009. cancelable: !1
  52010. }
  52011. },
  52012. rateChange: {
  52013. EventType: "Event",
  52014. defaultInit: {
  52015. bubbles: !1,
  52016. cancelable: !1
  52017. }
  52018. },
  52019. seeked: {
  52020. EventType: "Event",
  52021. defaultInit: {
  52022. bubbles: !1,
  52023. cancelable: !1
  52024. }
  52025. },
  52026. seeking: {
  52027. EventType: "Event",
  52028. defaultInit: {
  52029. bubbles: !1,
  52030. cancelable: !1
  52031. }
  52032. },
  52033. stalled: {
  52034. EventType: "Event",
  52035. defaultInit: {
  52036. bubbles: !1,
  52037. cancelable: !1
  52038. }
  52039. },
  52040. suspend: {
  52041. EventType: "Event",
  52042. defaultInit: {
  52043. bubbles: !1,
  52044. cancelable: !1
  52045. }
  52046. },
  52047. timeUpdate: {
  52048. EventType: "Event",
  52049. defaultInit: {
  52050. bubbles: !1,
  52051. cancelable: !1
  52052. }
  52053. },
  52054. volumeChange: {
  52055. EventType: "Event",
  52056. defaultInit: {
  52057. bubbles: !1,
  52058. cancelable: !1
  52059. }
  52060. },
  52061. waiting: {
  52062. EventType: "Event",
  52063. defaultInit: {
  52064. bubbles: !1,
  52065. cancelable: !1
  52066. }
  52067. },
  52068. // Events
  52069. load: {
  52070. // TODO: load events can be UIEvent or Event depending on what generated them
  52071. // This is where this abstraction breaks down.
  52072. // But the common targets are <img />, <script /> and window.
  52073. // Neither of these targets receive a UIEvent
  52074. EventType: "Event",
  52075. defaultInit: {
  52076. bubbles: !1,
  52077. cancelable: !1
  52078. }
  52079. },
  52080. error: {
  52081. EventType: "Event",
  52082. defaultInit: {
  52083. bubbles: !1,
  52084. cancelable: !1
  52085. }
  52086. },
  52087. // Animation Events
  52088. animationStart: {
  52089. EventType: "AnimationEvent",
  52090. defaultInit: {
  52091. bubbles: !0,
  52092. cancelable: !1
  52093. }
  52094. },
  52095. animationEnd: {
  52096. EventType: "AnimationEvent",
  52097. defaultInit: {
  52098. bubbles: !0,
  52099. cancelable: !1
  52100. }
  52101. },
  52102. animationIteration: {
  52103. EventType: "AnimationEvent",
  52104. defaultInit: {
  52105. bubbles: !0,
  52106. cancelable: !1
  52107. }
  52108. },
  52109. // Transition Events
  52110. transitionCancel: {
  52111. EventType: "TransitionEvent",
  52112. defaultInit: {
  52113. bubbles: !0,
  52114. cancelable: !1
  52115. }
  52116. },
  52117. transitionEnd: {
  52118. EventType: "TransitionEvent",
  52119. defaultInit: {
  52120. bubbles: !0,
  52121. cancelable: !0
  52122. }
  52123. },
  52124. transitionRun: {
  52125. EventType: "TransitionEvent",
  52126. defaultInit: {
  52127. bubbles: !0,
  52128. cancelable: !1
  52129. }
  52130. },
  52131. transitionStart: {
  52132. EventType: "TransitionEvent",
  52133. defaultInit: {
  52134. bubbles: !0,
  52135. cancelable: !1
  52136. }
  52137. },
  52138. // pointer events
  52139. pointerOver: {
  52140. EventType: "PointerEvent",
  52141. defaultInit: {
  52142. bubbles: !0,
  52143. cancelable: !0,
  52144. composed: !0
  52145. }
  52146. },
  52147. pointerEnter: {
  52148. EventType: "PointerEvent",
  52149. defaultInit: {
  52150. bubbles: !1,
  52151. cancelable: !1
  52152. }
  52153. },
  52154. pointerDown: {
  52155. EventType: "PointerEvent",
  52156. defaultInit: {
  52157. bubbles: !0,
  52158. cancelable: !0,
  52159. composed: !0
  52160. }
  52161. },
  52162. pointerMove: {
  52163. EventType: "PointerEvent",
  52164. defaultInit: {
  52165. bubbles: !0,
  52166. cancelable: !0,
  52167. composed: !0
  52168. }
  52169. },
  52170. pointerUp: {
  52171. EventType: "PointerEvent",
  52172. defaultInit: {
  52173. bubbles: !0,
  52174. cancelable: !0,
  52175. composed: !0
  52176. }
  52177. },
  52178. pointerCancel: {
  52179. EventType: "PointerEvent",
  52180. defaultInit: {
  52181. bubbles: !0,
  52182. cancelable: !1,
  52183. composed: !0
  52184. }
  52185. },
  52186. pointerOut: {
  52187. EventType: "PointerEvent",
  52188. defaultInit: {
  52189. bubbles: !0,
  52190. cancelable: !0,
  52191. composed: !0
  52192. }
  52193. },
  52194. pointerLeave: {
  52195. EventType: "PointerEvent",
  52196. defaultInit: {
  52197. bubbles: !1,
  52198. cancelable: !1
  52199. }
  52200. },
  52201. gotPointerCapture: {
  52202. EventType: "PointerEvent",
  52203. defaultInit: {
  52204. bubbles: !0,
  52205. cancelable: !1,
  52206. composed: !0
  52207. }
  52208. },
  52209. lostPointerCapture: {
  52210. EventType: "PointerEvent",
  52211. defaultInit: {
  52212. bubbles: !0,
  52213. cancelable: !1,
  52214. composed: !0
  52215. }
  52216. },
  52217. // history events
  52218. popState: {
  52219. EventType: "PopStateEvent",
  52220. defaultInit: {
  52221. bubbles: !0,
  52222. cancelable: !1
  52223. }
  52224. },
  52225. // window events
  52226. offline: {
  52227. EventType: "Event",
  52228. defaultInit: {
  52229. bubbles: !1,
  52230. cancelable: !1
  52231. }
  52232. },
  52233. online: {
  52234. EventType: "Event",
  52235. defaultInit: {
  52236. bubbles: !1,
  52237. cancelable: !1
  52238. }
  52239. },
  52240. pageHide: {
  52241. EventType: "PageTransitionEvent",
  52242. defaultInit: {
  52243. bubbles: !0,
  52244. cancelable: !0
  52245. }
  52246. },
  52247. pageShow: {
  52248. EventType: "PageTransitionEvent",
  52249. defaultInit: {
  52250. bubbles: !0,
  52251. cancelable: !0
  52252. }
  52253. }
  52254. }, eventAliasMap = {
  52255. doubleClick: "dblClick"
  52256. };
  52257. function fireEvent(element, event) {
  52258. return getConfig2().eventWrapper(() => {
  52259. if (!event)
  52260. throw new Error("Unable to fire an event - please provide an event object.");
  52261. if (!element)
  52262. throw new Error('Unable to fire a "' + event.type + '" event - please provide a DOM element.');
  52263. return element.dispatchEvent(event);
  52264. });
  52265. }
  52266. function createEvent(eventName, node2, init16, _temp) {
  52267. let {
  52268. EventType = "Event",
  52269. defaultInit = {}
  52270. } = _temp === void 0 ? {} : _temp;
  52271. if (!node2)
  52272. throw new Error('Unable to fire a "' + eventName + '" event - please provide a DOM element.');
  52273. let eventInit = {
  52274. ...defaultInit,
  52275. ...init16
  52276. }, {
  52277. target: {
  52278. value,
  52279. files,
  52280. ...targetProperties
  52281. } = {}
  52282. } = eventInit;
  52283. value !== void 0 && setNativeValue(node2, value), files !== void 0 && Object.defineProperty(node2, "files", {
  52284. configurable: !0,
  52285. enumerable: !0,
  52286. writable: !0,
  52287. value: files
  52288. }), Object.assign(node2, targetProperties);
  52289. let window2 = getWindowFromNode(node2), EventConstructor = window2[EventType] || window2.Event, event;
  52290. if (typeof EventConstructor == "function")
  52291. event = new EventConstructor(eventName, eventInit);
  52292. else {
  52293. event = window2.document.createEvent(EventType);
  52294. let {
  52295. bubbles,
  52296. cancelable,
  52297. detail,
  52298. ...otherInit
  52299. } = eventInit;
  52300. event.initEvent(eventName, bubbles, cancelable, detail), Object.keys(otherInit).forEach((eventKey) => {
  52301. event[eventKey] = otherInit[eventKey];
  52302. });
  52303. }
  52304. return ["dataTransfer", "clipboardData"].forEach((dataTransferKey) => {
  52305. let dataTransferValue = eventInit[dataTransferKey];
  52306. typeof dataTransferValue == "object" && (typeof window2.DataTransfer == "function" ? Object.defineProperty(event, dataTransferKey, {
  52307. value: Object.getOwnPropertyNames(dataTransferValue).reduce((acc, propName) => (Object.defineProperty(acc, propName, {
  52308. value: dataTransferValue[propName]
  52309. }), acc), new window2.DataTransfer())
  52310. }) : Object.defineProperty(event, dataTransferKey, {
  52311. value: dataTransferValue
  52312. }));
  52313. }), event;
  52314. }
  52315. Object.keys(eventMap).forEach((key) => {
  52316. let {
  52317. EventType,
  52318. defaultInit
  52319. } = eventMap[key], eventName = key.toLowerCase();
  52320. createEvent[key] = (node2, init16) => createEvent(eventName, node2, init16, {
  52321. EventType,
  52322. defaultInit
  52323. }), fireEvent[key] = (node2, init16) => fireEvent(node2, createEvent[key](node2, init16));
  52324. });
  52325. function setNativeValue(element, value) {
  52326. let {
  52327. set: valueSetter
  52328. } = Object.getOwnPropertyDescriptor(element, "value") || {}, prototype = Object.getPrototypeOf(element), {
  52329. set: prototypeValueSetter
  52330. } = Object.getOwnPropertyDescriptor(prototype, "value") || {};
  52331. if (prototypeValueSetter && valueSetter !== prototypeValueSetter)
  52332. prototypeValueSetter.call(element, value);
  52333. else if (valueSetter)
  52334. valueSetter.call(element, value);
  52335. else
  52336. throw new Error("The given element does not have a value setter");
  52337. }
  52338. Object.keys(eventAliasMap).forEach((aliasKey) => {
  52339. let key = eventAliasMap[aliasKey];
  52340. fireEvent[aliasKey] = function() {
  52341. return fireEvent[key](...arguments);
  52342. };
  52343. });
  52344. function unindent(string) {
  52345. return string.replace(/[ \t]*[\n][ \t]*/g, `
  52346. `);
  52347. }
  52348. function encode(value) {
  52349. return import_lz_string.default.compressToEncodedURIComponent(unindent(value));
  52350. }
  52351. function getPlaygroundUrl(markup2) {
  52352. return "https://testing-playground.com/#markup=" + encode(markup2);
  52353. }
  52354. var debug = (element, maxLength, options) => Array.isArray(element) ? element.forEach((el) => logDOM(el, maxLength, options)) : logDOM(element, maxLength, options), logTestingPlaygroundURL = function(element) {
  52355. if (element === void 0 && (element = getDocument().body), !element || !("innerHTML" in element)) {
  52356. console.log("The element you're providing isn't a valid DOM element.");
  52357. return;
  52358. }
  52359. if (!element.innerHTML) {
  52360. console.log("The provided element doesn't have any children.");
  52361. return;
  52362. }
  52363. let playgroundUrl = getPlaygroundUrl(element.innerHTML);
  52364. return console.log(`Open this URL in your browser
  52365. ` + playgroundUrl), playgroundUrl;
  52366. }, initialValue = {
  52367. debug,
  52368. logTestingPlaygroundURL
  52369. }, screen = typeof document < "u" && document.body ? getQueriesForElement(document.body, queries, initialValue) : Object.keys(queries).reduce((helpers, key) => (helpers[key] = () => {
  52370. throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
  52371. }, helpers), initialValue);
  52372. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isElementType.js
  52373. function isElementType(element, tag, props) {
  52374. return element.namespaceURI && element.namespaceURI !== "http://www.w3.org/1999/xhtml" || (tag = Array.isArray(tag) ? tag : [
  52375. tag
  52376. ], !tag.includes(element.tagName.toLowerCase())) ? !1 : props ? Object.entries(props).every(([k, v]) => element[k] === v) : !0;
  52377. }
  52378. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getWindow.js
  52379. function getWindow(node2) {
  52380. var _node_ownerDocument;
  52381. if (isDocument(node2) && node2.defaultView)
  52382. return node2.defaultView;
  52383. if (!((_node_ownerDocument = node2.ownerDocument) === null || _node_ownerDocument === void 0) && _node_ownerDocument.defaultView)
  52384. return node2.ownerDocument.defaultView;
  52385. throw new Error(`Could not determine window of node. Node was ${describe(node2)}`);
  52386. }
  52387. function isDocument(node2) {
  52388. return node2.nodeType === 9;
  52389. }
  52390. function describe(val) {
  52391. return typeof val == "function" ? `function ${val.name}` : val === null ? "null" : String(val);
  52392. }
  52393. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Blob.js
  52394. function readBlobText(blob, FileReader) {
  52395. return new Promise((res, rej) => {
  52396. let fr = new FileReader();
  52397. fr.onerror = rej, fr.onabort = rej, fr.onload = () => {
  52398. res(String(fr.result));
  52399. }, fr.readAsText(blob);
  52400. });
  52401. }
  52402. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/FileList.js
  52403. function createFileList(window2, files) {
  52404. let list = {
  52405. ...files,
  52406. length: files.length,
  52407. item: (index4) => list[index4],
  52408. [Symbol.iterator]: function* () {
  52409. for (let i = 0; i < list.length; i++)
  52410. yield list[i];
  52411. }
  52412. };
  52413. return list.constructor = window2.FileList, window2.FileList && Object.setPrototypeOf(list, window2.FileList.prototype), Object.freeze(list), list;
  52414. }
  52415. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/DataTransfer.js
  52416. function _define_property(obj, key, value) {
  52417. return key in obj ? Object.defineProperty(obj, key, {
  52418. value,
  52419. enumerable: !0,
  52420. configurable: !0,
  52421. writable: !0
  52422. }) : obj[key] = value, obj;
  52423. }
  52424. var DataTransferItemStub = class {
  52425. getAsFile() {
  52426. return this.file;
  52427. }
  52428. getAsString(callback) {
  52429. typeof this.data == "string" && callback(this.data);
  52430. }
  52431. /* istanbul ignore next */
  52432. webkitGetAsEntry() {
  52433. throw new Error("not implemented");
  52434. }
  52435. constructor(dataOrFile, type5) {
  52436. _define_property(this, "kind", void 0), _define_property(this, "type", void 0), _define_property(this, "file", null), _define_property(this, "data", void 0), typeof dataOrFile == "string" ? (this.kind = "string", this.type = String(type5), this.data = dataOrFile) : (this.kind = "file", this.type = dataOrFile.type, this.file = dataOrFile);
  52437. }
  52438. }, DataTransferItemListStub = class extends Array {
  52439. add(...args) {
  52440. let item = new DataTransferItemStub(args[0], args[1]);
  52441. return this.push(item), item;
  52442. }
  52443. clear() {
  52444. this.splice(0, this.length);
  52445. }
  52446. remove(index4) {
  52447. this.splice(index4, 1);
  52448. }
  52449. };
  52450. function getTypeMatcher(type5, exact) {
  52451. let [group, sub] = type5.split("/"), isGroup = !sub || sub === "*";
  52452. return (item) => exact ? item.type === (isGroup ? group : type5) : isGroup ? item.type.startsWith(`${group}/`) : item.type === group;
  52453. }
  52454. function createDataTransferStub(window2) {
  52455. return new class {
  52456. getData(format4) {
  52457. var _this_items_find;
  52458. let match3 = (_this_items_find = this.items.find(getTypeMatcher(format4, !0))) !== null && _this_items_find !== void 0 ? _this_items_find : this.items.find(getTypeMatcher(format4, !1)), text = "";
  52459. return match3?.getAsString((t) => {
  52460. text = t;
  52461. }), text;
  52462. }
  52463. setData(format4, data) {
  52464. let matchIndex = this.items.findIndex(getTypeMatcher(format4, !0)), item = new DataTransferItemStub(data, format4);
  52465. matchIndex >= 0 ? this.items.splice(matchIndex, 1, item) : this.items.push(item);
  52466. }
  52467. clearData(format4) {
  52468. if (format4) {
  52469. let matchIndex = this.items.findIndex(getTypeMatcher(format4, !0));
  52470. matchIndex >= 0 && this.items.remove(matchIndex);
  52471. } else
  52472. this.items.clear();
  52473. }
  52474. get types() {
  52475. let t = [];
  52476. return this.files.length && t.push("Files"), this.items.forEach((i) => t.push(i.type)), Object.freeze(t), t;
  52477. }
  52478. /* istanbul ignore next */
  52479. setDragImage() {
  52480. }
  52481. constructor() {
  52482. _define_property(this, "dropEffect", "none"), _define_property(this, "effectAllowed", "uninitialized"), _define_property(this, "items", new DataTransferItemListStub()), _define_property(this, "files", createFileList(window2, []));
  52483. }
  52484. }();
  52485. }
  52486. function createDataTransfer(window2, files = []) {
  52487. let dt = typeof window2.DataTransfer > "u" ? createDataTransferStub(window2) : (
  52488. /* istanbul ignore next */
  52489. new window2.DataTransfer()
  52490. );
  52491. return Object.defineProperty(dt, "files", {
  52492. get: () => createFileList(window2, files)
  52493. }), dt;
  52494. }
  52495. async function getBlobFromDataTransferItem(window2, item) {
  52496. return item.kind === "file" ? item.getAsFile() : new window2.Blob([
  52497. await new Promise((r2) => item.getAsString(r2))
  52498. ], {
  52499. type: item.type
  52500. });
  52501. }
  52502. // ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Clipboard.js
  52503. function _define_property2(obj, key, value) {
  52504. return key in obj ? Object.defineProperty(obj, key, {
  52505. value,
  52506. enumerable: !0,
  52507. configurable: !0,
  52508. writable: !0
  52509. }) : obj[key] = value, obj;
  52510. }
  52511. function createClipboardItem(window2, ...blobs) {
  52512. let dataMap = Object.fromEntries(blobs.map((b) => [
  52513. typeof b == "string" ? "text/plain" : b.type,
  52514. Promise.resolve(b)
  52515. ]));
  52516. return typeof window2.ClipboardItem < "u" ? new window2.ClipboardItem(dataMap) : new class {
  52517. get types() {
  52518. return Array.from(Object.keys(this.data));
  52519. }
  52520. async getType(type5) {
  52521. let value = await this.data[type5];
  52522. if (!value)
  52523. throw new Error(`${type5} is not one of the available MIME types on this item.`);
  52524. return value instanceof window2.Blob ? value : new window2.Blob([
  52525. value
  52526. ], {
  52527. type: type5
  52528. });
  52529. }
  52530. constructor(d) {
  52531. _define_property2(this, "data", void 0), this.data = d;
  52532. }
  52533. }(dataMap);
  52534. }
  52535. var ClipboardStubControl = Symbol("Manage ClipboardSub");
  52536. function createClipboardStub(window2, control) {
  52537. return Object.assign(new class extends window2.EventTarget {
  52538. async read() {
  52539. return Array.from(this.items);
  52540. }
  52541. async readText() {
  52542. let text = "";
  52543. for (let item of this.items) {
  52544. let type5 = item.types.includes("text/plain") ? "text/plain" : item.types.find((t) => t.startsWith("text/"));
  52545. type5 && (text += await item.getType(type5).then((b) => readBlobText(b, window2.FileReader)));
  52546. }
  52547. return text;
  52548. }
  52549. async write(data) {
  52550. this.items = data;
  52551. }
  52552. async writeText(text) {
  52553. this.items = [
  52554. createClipboardItem(window2, text)
  52555. ];
  52556. }
  52557. constructor(...args) {
  52558. super(...args), _define_property2(this, "items", []);
  52559. }
  52560. }(), {
  52561. [ClipboardStubControl]: control
  52562. });
  52563. }
  52564. function isClipboardStub(clipboard) {
  52565. return !!clipboard?.[ClipboardStubControl];
  52566. }
  52567. function attachClipboardStubToView(window2) {
  52568. if (isClipboardStub(window2.navigator.clipboard))
  52569. return window2.navigator.clipboard[ClipboardStubControl];
  52570. let realClipboard = Object.getOwnPropertyDescriptor(window2.navigator, "clipboard"), stub, control = {
  52571. resetClipboardStub: () => {
  52572. stub = createClipboardStub(window2, control);
  52573. },
  52574. detachClipboardStub: () => {
  52575. realClipboard ? Object.defineProperty(window2.navigator, "clipboard", realClipboard) : Object.defineProperty(window2.navigator, "clipboard", {
  52576. value: void 0,
  52577. configurable: !0
  52578. });
  52579. }
  52580. };
  52581. return stub = createClipboardStub(window2, control), Object.defineProperty(window2.navigator, "clipboard", {
  52582. get: () => stub,
  52583. configurable: !0
  52584. }), stub[ClipboardStubControl];
  52585. }
  52586. function resetClipboardStubOnView(window2) {
  52587. isClipboardStub(window2.navigator.clipboard) && window2.navigator.clipboard[ClipboardStubControl].resetClipboardStub();
  52588. }
  52589. function detachClipboardStubFromView(window2) {
  52590. isClipboardStub(window2.navigator.clipboard) && window2.navigator.clipboard[ClipboardStubControl].detachClipboardStub();
  52591. }
  52592. async function readDataTransferFromClipboard(document13) {
  52593. let window2 = document13.defaultView, clipboard = window2?.navigator.clipboard, items = clipboard && await clipboard.read();
  52594. if (!items)
  52595. throw new Error("The Clipboard API is unavailable.");
  52596. let dt = createDataTransfer(window2);
  52597. for (let item of items)
  52598. for (let type5 of item.types)
  52599. dt.setData(type5, await item.getType(type5).then((b) => readBlobText(b, window2.FileReader)));
  52600. return dt;
  52601. }
  52602. async function writeDataTransferToClipboard(document13, clipboardData) {
  52603. let window2 = getWindow(document13), clipboard = window2.navigator.clipboard, items = [];
  52604. for (let i = 0; i < clipboardData.items.length; i++) {
  52605. let dtItem = clipboardData.items[i], blob = await getBlobFromDataTransferItem(window2, dtItem);
  52606. items.push(createClipboardItem(window2, blob));
  52607. }
  52608. if (!(clipboard && await clipboard.write(items).then(
  52609. () => !0,
  52610. // Can happen with other implementations that e.g. require permissions
  52611. /* istanbul ignore next */
  52612. () => !1
  52613. )))
  52614. throw new Error("The Clipboard API is unavailable.");
  52615. }
  52616. var g = globalThis;
  52617. typeof g.afterEach == "function" && g.afterEach(() => {
  52618. typeof globalThis.window < "u" && resetClipboardStubOnView(globalThis.window);
  52619. });
  52620. typeof g.afterAll == "function" && g.afterAll(() => {
  52621. typeof globalThis.window < "u" && detachClipboardStubFromView(globalThis.window);
  52622. });
  52623. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/selector.js
  52624. var FOCUSABLE_SELECTOR = [
  52625. "input:not([type=hidden]):not([disabled])",
  52626. "button:not([disabled])",
  52627. "select:not([disabled])",
  52628. "textarea:not([disabled])",
  52629. '[contenteditable=""]',
  52630. '[contenteditable="true"]',
  52631. "a[href]",
  52632. "[tabindex]:not([disabled])"
  52633. ].join(", ");
  52634. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/isFocusable.js
  52635. function isFocusable(element) {
  52636. return element.matches(FOCUSABLE_SELECTOR);
  52637. }
  52638. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/cloneEvent.js
  52639. function cloneEvent(event) {
  52640. return new event.constructor(event.type, event);
  52641. }
  52642. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isDisabled.js
  52643. function isDisabled2(element) {
  52644. for (let el = element; el; el = el.parentElement)
  52645. if (isElementType(el, [
  52646. "button",
  52647. "input",
  52648. "select",
  52649. "textarea",
  52650. "optgroup",
  52651. "option"
  52652. ])) {
  52653. if (el.hasAttribute("disabled"))
  52654. return !0;
  52655. } else if (isElementType(el, "fieldset")) {
  52656. var _el_querySelector;
  52657. if (el.hasAttribute("disabled") && !(!((_el_querySelector = el.querySelector(":scope > legend")) === null || _el_querySelector === void 0) && _el_querySelector.contains(element)))
  52658. return !0;
  52659. } else if (el.tagName.includes("-") && el.constructor.formAssociated && el.hasAttribute("disabled"))
  52660. return !0;
  52661. return !1;
  52662. }
  52663. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/getActiveElement.js
  52664. function getActiveElement(document13) {
  52665. let activeElement = document13.activeElement;
  52666. return activeElement?.shadowRoot ? getActiveElement(activeElement.shadowRoot) : isDisabled2(activeElement) ? document13.ownerDocument ? (
  52667. /* istanbul ignore next */
  52668. document13.ownerDocument.body
  52669. ) : document13.body : activeElement;
  52670. }
  52671. function getActiveElementOrBody(document13) {
  52672. var _getActiveElement;
  52673. return (_getActiveElement = getActiveElement(document13)) !== null && _getActiveElement !== void 0 ? _getActiveElement : (
  52674. /* istanbul ignore next */
  52675. document13.body
  52676. );
  52677. }
  52678. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/findClosest.js
  52679. function findClosest(element, callback) {
  52680. let el = element;
  52681. do {
  52682. if (callback(el))
  52683. return el;
  52684. el = el.parentElement;
  52685. } while (el && el !== element.ownerDocument.body);
  52686. }
  52687. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/isContentEditable.js
  52688. function isContentEditable(element) {
  52689. return element.hasAttribute("contenteditable") && (element.getAttribute("contenteditable") == "true" || element.getAttribute("contenteditable") == "");
  52690. }
  52691. function getContentEditable(node2) {
  52692. let element = getElement(node2);
  52693. return element && (element.closest('[contenteditable=""]') || element.closest('[contenteditable="true"]'));
  52694. }
  52695. function getElement(node2) {
  52696. return node2.nodeType === 1 ? node2 : node2.parentElement;
  52697. }
  52698. // ../../node_modules/@testing-library/user-event/dist/esm/utils/click/isClickableInput.js
  52699. var clickableInputTypes = (function(clickableInputTypes2) {
  52700. return clickableInputTypes2.button = "button", clickableInputTypes2.color = "color", clickableInputTypes2.file = "file", clickableInputTypes2.image = "image", clickableInputTypes2.reset = "reset", clickableInputTypes2.submit = "submit", clickableInputTypes2.checkbox = "checkbox", clickableInputTypes2.radio = "radio", clickableInputTypes2;
  52701. })(clickableInputTypes || {});
  52702. function isClickableInput(element) {
  52703. return isElementType(element, "button") || isElementType(element, "input") && element.type in clickableInputTypes;
  52704. }
  52705. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/isEditable.js
  52706. function isEditable(element) {
  52707. return isEditableInputOrTextArea(element) && !element.readOnly || isContentEditable(element);
  52708. }
  52709. var editableInputTypes = (function(editableInputTypes2) {
  52710. return editableInputTypes2.text = "text", editableInputTypes2.date = "date", editableInputTypes2["datetime-local"] = "datetime-local", editableInputTypes2.email = "email", editableInputTypes2.month = "month", editableInputTypes2.number = "number", editableInputTypes2.password = "password", editableInputTypes2.search = "search", editableInputTypes2.tel = "tel", editableInputTypes2.time = "time", editableInputTypes2.url = "url", editableInputTypes2.week = "week", editableInputTypes2;
  52711. })(editableInputTypes || {});
  52712. function isEditableInputOrTextArea(element) {
  52713. return isElementType(element, "textarea") || isElementType(element, "input") && element.type in editableInputTypes;
  52714. }
  52715. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/selection.js
  52716. function hasOwnSelection(node2) {
  52717. return isElement3(node2) && isEditableInputOrTextArea(node2);
  52718. }
  52719. function hasNoSelection(node2) {
  52720. return isElement3(node2) && isClickableInput(node2);
  52721. }
  52722. function isElement3(node2) {
  52723. return node2.nodeType === 1;
  52724. }
  52725. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/updateSelectionOnFocus.js
  52726. function updateSelectionOnFocus(element) {
  52727. let selection = element.ownerDocument.getSelection();
  52728. if (selection?.focusNode && hasOwnSelection(element)) {
  52729. let contenteditable = getContentEditable(selection.focusNode);
  52730. if (contenteditable) {
  52731. if (!selection.isCollapsed) {
  52732. var _contenteditable_firstChild;
  52733. let focusNode = ((_contenteditable_firstChild = contenteditable.firstChild) === null || _contenteditable_firstChild === void 0 ? void 0 : _contenteditable_firstChild.nodeType) === 3 ? contenteditable.firstChild : contenteditable;
  52734. selection.setBaseAndExtent(focusNode, 0, focusNode, 0);
  52735. }
  52736. } else
  52737. selection.setBaseAndExtent(element, 0, element, 0);
  52738. }
  52739. }
  52740. // ../../node_modules/@testing-library/user-event/dist/esm/event/wrapEvent.js
  52741. function wrapEvent(cb, _element) {
  52742. return getConfig2().eventWrapper(cb);
  52743. }
  52744. // ../../node_modules/@testing-library/user-event/dist/esm/event/focus.js
  52745. function focusElement(element) {
  52746. let target = findClosest(element, isFocusable), activeElement = getActiveElement(element.ownerDocument);
  52747. (target ?? element.ownerDocument.body) !== activeElement && (target ? wrapEvent(() => target.focus()) : wrapEvent(() => activeElement?.blur()), updateSelectionOnFocus(target ?? element.ownerDocument.body));
  52748. }
  52749. function blurElement(element) {
  52750. !isFocusable(element) || !(getActiveElement(element.ownerDocument) === element) || wrapEvent(() => element.blur());
  52751. }
  52752. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/registry.js
  52753. var behavior = {};
  52754. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/click.js
  52755. behavior.click = (event, target, instance) => {
  52756. let context = target.closest("button,input,label,select,textarea"), control = context && isElementType(context, "label") && context.control;
  52757. if (control && control !== target)
  52758. return () => {
  52759. isFocusable(control) && (focusElement(control), instance.dispatchEvent(control, cloneEvent(event)));
  52760. };
  52761. if (isElementType(target, "input", {
  52762. type: "file"
  52763. }))
  52764. return () => {
  52765. blurElement(target), target.dispatchEvent(new (getWindow(target)).Event("fileDialog")), focusElement(target);
  52766. };
  52767. };
  52768. // ../../node_modules/@testing-library/user-event/dist/esm/document/UI.js
  52769. var UIValue = Symbol("Displayed value in UI"), UISelection = Symbol("Displayed selection in UI"), InitialValue = Symbol("Initial value to compare on blur");
  52770. function isUIValue(value) {
  52771. return typeof value == "object" && UIValue in value;
  52772. }
  52773. function isUISelectionStart(start2) {
  52774. return !!start2 && typeof start2 == "object" && UISelection in start2;
  52775. }
  52776. function setUIValue(element, value) {
  52777. element[InitialValue] === void 0 && (element[InitialValue] = element.value), element[UIValue] = value, element.value = Object.assign(new String(value), {
  52778. [UIValue]: !0
  52779. });
  52780. }
  52781. function getUIValue(element) {
  52782. return element[UIValue] === void 0 ? element.value : String(element[UIValue]);
  52783. }
  52784. function setUIValueClean(element) {
  52785. element[UIValue] = void 0;
  52786. }
  52787. function clearInitialValue(element) {
  52788. element[InitialValue] = void 0;
  52789. }
  52790. function getInitialValue(element) {
  52791. return element[InitialValue];
  52792. }
  52793. function setUISelectionRaw(element, selection) {
  52794. element[UISelection] = selection;
  52795. }
  52796. function setUISelection(element, { focusOffset: focusOffsetParam, anchorOffset: anchorOffsetParam = focusOffsetParam }, mode = "replace") {
  52797. let valueLength = getUIValue(element).length, sanitizeOffset = (o) => Math.max(0, Math.min(valueLength, o)), anchorOffset = mode === "replace" || element[UISelection] === void 0 ? sanitizeOffset(anchorOffsetParam) : element[UISelection].anchorOffset, focusOffset = sanitizeOffset(focusOffsetParam), startOffset = Math.min(anchorOffset, focusOffset), endOffset = Math.max(anchorOffset, focusOffset);
  52798. if (element[UISelection] = {
  52799. anchorOffset,
  52800. focusOffset
  52801. }, element.selectionStart === startOffset && element.selectionEnd === endOffset)
  52802. return;
  52803. let startObj = Object.assign(new Number(startOffset), {
  52804. [UISelection]: !0
  52805. });
  52806. try {
  52807. element.setSelectionRange(startObj, endOffset);
  52808. } catch {
  52809. }
  52810. }
  52811. function getUISelection(element) {
  52812. var _element_selectionStart, _element_selectionEnd, _element_UISelection;
  52813. let sel = (_element_UISelection = element[UISelection]) !== null && _element_UISelection !== void 0 ? _element_UISelection : {
  52814. anchorOffset: (_element_selectionStart = element.selectionStart) !== null && _element_selectionStart !== void 0 ? _element_selectionStart : 0,
  52815. focusOffset: (_element_selectionEnd = element.selectionEnd) !== null && _element_selectionEnd !== void 0 ? _element_selectionEnd : 0
  52816. };
  52817. return {
  52818. ...sel,
  52819. startOffset: Math.min(sel.anchorOffset, sel.focusOffset),
  52820. endOffset: Math.max(sel.anchorOffset, sel.focusOffset)
  52821. };
  52822. }
  52823. function hasUISelection(element) {
  52824. return !!element[UISelection];
  52825. }
  52826. function setUISelectionClean(element) {
  52827. element[UISelection] = void 0;
  52828. }
  52829. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/timeValue.js
  52830. var parseInt2 = globalThis.parseInt;
  52831. function buildTimeValue(value) {
  52832. let onlyDigitsValue = value.replace(/\D/g, "");
  52833. if (onlyDigitsValue.length < 2)
  52834. return value;
  52835. let firstDigit = parseInt2(onlyDigitsValue[0], 10), secondDigit = parseInt2(onlyDigitsValue[1], 10);
  52836. if (firstDigit >= 3 || firstDigit === 2 && secondDigit >= 4) {
  52837. let index4;
  52838. return firstDigit >= 3 ? index4 = 1 : index4 = 2, build2(onlyDigitsValue, index4);
  52839. }
  52840. return value.length === 2 ? value : build2(onlyDigitsValue, 2);
  52841. }
  52842. function build2(onlyDigitsValue, index4) {
  52843. let hours = onlyDigitsValue.slice(0, index4), validHours = Math.min(parseInt2(hours, 10), 23), minuteCharacters = onlyDigitsValue.slice(index4), parsedMinutes = parseInt2(minuteCharacters, 10), validMinutes = Math.min(parsedMinutes, 59);
  52844. return `${validHours.toString().padStart(2, "0")}:${validMinutes.toString().padStart(2, "0")}`;
  52845. }
  52846. function isValidDateOrTimeValue(element, value) {
  52847. let clone3 = element.cloneNode();
  52848. return clone3.value = value, clone3.value === value;
  52849. }
  52850. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/maxLength.js
  52851. var maxLengthSupportedTypes = (function(maxLengthSupportedTypes2) {
  52852. return maxLengthSupportedTypes2.email = "email", maxLengthSupportedTypes2.password = "password", maxLengthSupportedTypes2.search = "search", maxLengthSupportedTypes2.telephone = "telephone", maxLengthSupportedTypes2.text = "text", maxLengthSupportedTypes2.url = "url", maxLengthSupportedTypes2;
  52853. })(maxLengthSupportedTypes || {});
  52854. function getMaxLength(element) {
  52855. var _element_getAttribute;
  52856. let attr = (_element_getAttribute = element.getAttribute("maxlength")) !== null && _element_getAttribute !== void 0 ? _element_getAttribute : "";
  52857. return /^\d+$/.test(attr) && Number(attr) >= 0 ? Number(attr) : void 0;
  52858. }
  52859. function supportsMaxLength(element) {
  52860. return isElementType(element, "textarea") || isElementType(element, "input") && element.type in maxLengthSupportedTypes;
  52861. }
  52862. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/cursor.js
  52863. function getNextCursorPosition(node2, offset3, direction, inputType) {
  52864. if (isTextNode(node2) && offset3 + direction >= 0 && offset3 + direction <= node2.nodeValue.length)
  52865. return {
  52866. node: node2,
  52867. offset: offset3 + direction
  52868. };
  52869. let nextNode = getNextCharacterContentNode(node2, offset3, direction);
  52870. if (nextNode) {
  52871. if (isTextNode(nextNode))
  52872. return {
  52873. node: nextNode,
  52874. offset: direction > 0 ? Math.min(1, nextNode.nodeValue.length) : Math.max(nextNode.nodeValue.length - 1, 0)
  52875. };
  52876. if (isElementType(nextNode, "br")) {
  52877. let nextPlusOne = getNextCharacterContentNode(nextNode, void 0, direction);
  52878. return nextPlusOne ? isTextNode(nextPlusOne) ? {
  52879. node: nextPlusOne,
  52880. offset: direction > 0 ? 0 : nextPlusOne.nodeValue.length
  52881. } : direction < 0 && isElementType(nextPlusOne, "br") ? {
  52882. node: nextNode.parentNode,
  52883. offset: getOffset(nextNode)
  52884. } : {
  52885. node: nextPlusOne.parentNode,
  52886. offset: getOffset(nextPlusOne) + (direction > 0 ? 0 : 1)
  52887. } : direction < 0 && inputType === "deleteContentBackward" ? {
  52888. node: nextNode.parentNode,
  52889. offset: getOffset(nextNode)
  52890. } : void 0;
  52891. } else
  52892. return {
  52893. node: nextNode.parentNode,
  52894. offset: getOffset(nextNode) + (direction > 0 ? 1 : 0)
  52895. };
  52896. }
  52897. }
  52898. function getNextCharacterContentNode(node2, offset3, direction) {
  52899. let nextOffset = Number(offset3) + (direction < 0 ? -1 : 0);
  52900. return offset3 !== void 0 && isElement4(node2) && nextOffset >= 0 && nextOffset < node2.children.length && (node2 = node2.children[nextOffset]), walkNodes(node2, direction === 1 ? "next" : "previous", isTreatedAsCharacterContent);
  52901. }
  52902. function isTreatedAsCharacterContent(node2) {
  52903. if (isTextNode(node2))
  52904. return !0;
  52905. if (isElement4(node2)) {
  52906. if (isElementType(node2, [
  52907. "input",
  52908. "textarea"
  52909. ]))
  52910. return node2.type !== "hidden";
  52911. if (isElementType(node2, "br"))
  52912. return !0;
  52913. }
  52914. return !1;
  52915. }
  52916. function getOffset(node2) {
  52917. let i = 0;
  52918. for (; node2.previousSibling; )
  52919. i++, node2 = node2.previousSibling;
  52920. return i;
  52921. }
  52922. function isElement4(node2) {
  52923. return node2.nodeType === 1;
  52924. }
  52925. function isTextNode(node2) {
  52926. return node2.nodeType === 3;
  52927. }
  52928. function walkNodes(node2, direction, callback) {
  52929. for (; ; ) {
  52930. var _node_ownerDocument;
  52931. let sibling = node2[`${direction}Sibling`];
  52932. if (sibling) {
  52933. if (node2 = getDescendant(sibling, direction === "next" ? "first" : "last"), callback(node2))
  52934. return node2;
  52935. } else if (node2.parentNode && (!isElement4(node2.parentNode) || !isContentEditable(node2.parentNode) && node2.parentNode !== ((_node_ownerDocument = node2.ownerDocument) === null || _node_ownerDocument === void 0 ? void 0 : _node_ownerDocument.body)))
  52936. node2 = node2.parentNode;
  52937. else
  52938. break;
  52939. }
  52940. }
  52941. function getDescendant(node2, direction) {
  52942. for (; node2.hasChildNodes(); )
  52943. node2 = node2[`${direction}Child`];
  52944. return node2;
  52945. }
  52946. // ../../node_modules/@testing-library/user-event/dist/esm/document/trackValue.js
  52947. var TrackChanges = Symbol("Track programmatic changes for React workaround");
  52948. function isReact17Element(element) {
  52949. return Object.getOwnPropertyNames(element).some((k) => k.startsWith("__react")) && getWindow(element).REACT_VERSION === 17;
  52950. }
  52951. function startTrackValue(element) {
  52952. isReact17Element(element) && (element[TrackChanges] = {
  52953. previousValue: String(element.value),
  52954. tracked: []
  52955. });
  52956. }
  52957. function trackOrSetValue(element, v) {
  52958. var _element_TrackChanges_tracked, _element_TrackChanges;
  52959. (_element_TrackChanges = element[TrackChanges]) === null || _element_TrackChanges === void 0 || (_element_TrackChanges_tracked = _element_TrackChanges.tracked) === null || _element_TrackChanges_tracked === void 0 || _element_TrackChanges_tracked.push(v), element[TrackChanges] || (setUIValueClean(element), setUISelection(element, {
  52960. focusOffset: v.length
  52961. }));
  52962. }
  52963. function commitValueAfterInput(element, cursorOffset) {
  52964. var _changes_tracked;
  52965. let changes = element[TrackChanges];
  52966. if (element[TrackChanges] = void 0, !(!(changes == null || (_changes_tracked = changes.tracked) === null || _changes_tracked === void 0) && _changes_tracked.length))
  52967. return;
  52968. let isJustReactStateUpdate = changes.tracked.length === 2 && changes.tracked[0] === changes.previousValue && changes.tracked[1] === element.value;
  52969. isJustReactStateUpdate || setUIValueClean(element), hasUISelection(element) && setUISelection(element, {
  52970. focusOffset: isJustReactStateUpdate ? cursorOffset : element.value.length
  52971. });
  52972. }
  52973. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/getTargetTypeAndSelection.js
  52974. function getTargetTypeAndSelection(node2) {
  52975. let element = getElement2(node2);
  52976. if (element && hasOwnSelection(element))
  52977. return {
  52978. type: "input",
  52979. selection: getUISelection(element)
  52980. };
  52981. let selection = element?.ownerDocument.getSelection();
  52982. return {
  52983. type: getContentEditable(node2) && selection?.anchorNode && getContentEditable(selection.anchorNode) ? "contenteditable" : "default",
  52984. selection
  52985. };
  52986. }
  52987. function getElement2(node2) {
  52988. return node2.nodeType === 1 ? node2 : node2.parentElement;
  52989. }
  52990. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/getInputRange.js
  52991. function getInputRange(focusNode) {
  52992. let typeAndSelection = getTargetTypeAndSelection(focusNode);
  52993. if (typeAndSelection.type === "input")
  52994. return typeAndSelection.selection;
  52995. if (typeAndSelection.type === "contenteditable") {
  52996. var _typeAndSelection_selection;
  52997. return (_typeAndSelection_selection = typeAndSelection.selection) === null || _typeAndSelection_selection === void 0 ? void 0 : _typeAndSelection_selection.getRangeAt(0);
  52998. }
  52999. }
  53000. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelection.js
  53001. function setSelection({ focusNode, focusOffset, anchorNode = focusNode, anchorOffset = focusOffset }) {
  53002. var _anchorNode_ownerDocument_getSelection, _anchorNode_ownerDocument;
  53003. if (getTargetTypeAndSelection(focusNode).type === "input")
  53004. return setUISelection(focusNode, {
  53005. anchorOffset,
  53006. focusOffset
  53007. });
  53008. (_anchorNode_ownerDocument = anchorNode.ownerDocument) === null || _anchorNode_ownerDocument === void 0 || (_anchorNode_ownerDocument_getSelection = _anchorNode_ownerDocument.getSelection()) === null || _anchorNode_ownerDocument_getSelection === void 0 || _anchorNode_ownerDocument_getSelection.setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset);
  53009. }
  53010. // ../../node_modules/@testing-library/user-event/dist/esm/event/input.js
  53011. function isDateOrTime(element) {
  53012. return isElementType(element, "input") && [
  53013. "date",
  53014. "time"
  53015. ].includes(element.type);
  53016. }
  53017. function input(instance, element, data, inputType = "insertText") {
  53018. let inputRange = getInputRange(element);
  53019. inputRange && (!isDateOrTime(element) && !instance.dispatchUIEvent(element, "beforeinput", {
  53020. inputType,
  53021. data
  53022. }) || ("startContainer" in inputRange ? editContenteditable(instance, element, inputRange, data, inputType) : editInputElement(instance, element, inputRange, data, inputType)));
  53023. }
  53024. function editContenteditable(instance, element, inputRange, data, inputType) {
  53025. let del = !1;
  53026. if (!inputRange.collapsed)
  53027. del = !0, inputRange.deleteContents();
  53028. else if ([
  53029. "deleteContentBackward",
  53030. "deleteContentForward"
  53031. ].includes(inputType)) {
  53032. let nextPosition = getNextCursorPosition(inputRange.startContainer, inputRange.startOffset, inputType === "deleteContentBackward" ? -1 : 1, inputType);
  53033. if (nextPosition) {
  53034. del = !0;
  53035. let delRange = inputRange.cloneRange();
  53036. delRange.comparePoint(nextPosition.node, nextPosition.offset) < 0 ? delRange.setStart(nextPosition.node, nextPosition.offset) : delRange.setEnd(nextPosition.node, nextPosition.offset), delRange.deleteContents();
  53037. }
  53038. }
  53039. if (data)
  53040. if (inputRange.endContainer.nodeType === 3) {
  53041. let offset3 = inputRange.endOffset;
  53042. inputRange.endContainer.insertData(offset3, data), inputRange.setStart(inputRange.endContainer, offset3 + data.length), inputRange.setEnd(inputRange.endContainer, offset3 + data.length);
  53043. } else {
  53044. let text = element.ownerDocument.createTextNode(data);
  53045. inputRange.insertNode(text), inputRange.setStart(text, data.length), inputRange.setEnd(text, data.length);
  53046. }
  53047. (del || data) && instance.dispatchUIEvent(element, "input", {
  53048. inputType
  53049. });
  53050. }
  53051. function editInputElement(instance, element, inputRange, data, inputType) {
  53052. let dataToInsert = data;
  53053. if (supportsMaxLength(element)) {
  53054. let maxLength = getMaxLength(element);
  53055. if (maxLength !== void 0 && data.length > 0) {
  53056. let spaceUntilMaxLength = maxLength - element.value.length;
  53057. if (spaceUntilMaxLength > 0)
  53058. dataToInsert = data.substring(0, spaceUntilMaxLength);
  53059. else
  53060. return;
  53061. }
  53062. }
  53063. let { newValue, newOffset, oldValue } = calculateNewValue(dataToInsert, element, inputRange, inputType);
  53064. newValue === oldValue && newOffset === inputRange.startOffset && newOffset === inputRange.endOffset || isElementType(element, "input", {
  53065. type: "number"
  53066. }) && !isValidNumberInput(newValue) || (setUIValue(element, newValue), setSelection({
  53067. focusNode: element,
  53068. anchorOffset: newOffset,
  53069. focusOffset: newOffset
  53070. }), isDateOrTime(element) ? isValidDateOrTimeValue(element, newValue) && (commitInput(instance, element, newOffset, {}), instance.dispatchUIEvent(element, "change"), clearInitialValue(element)) : commitInput(instance, element, newOffset, {
  53071. data,
  53072. inputType
  53073. }));
  53074. }
  53075. function calculateNewValue(inputData, node2, { startOffset, endOffset }, inputType) {
  53076. let value = getUIValue(node2), prologEnd = Math.max(0, startOffset === endOffset && inputType === "deleteContentBackward" ? startOffset - 1 : startOffset), prolog = value.substring(0, prologEnd), epilogStart = Math.min(value.length, startOffset === endOffset && inputType === "deleteContentForward" ? startOffset + 1 : endOffset), epilog = value.substring(epilogStart, value.length), newValue = `${prolog}${inputData}${epilog}`, newOffset = prologEnd + inputData.length;
  53077. if (isElementType(node2, "input", {
  53078. type: "time"
  53079. })) {
  53080. let builtValue = buildTimeValue(newValue);
  53081. builtValue !== "" && isValidDateOrTimeValue(node2, builtValue) && (newValue = builtValue, newOffset = builtValue.length);
  53082. }
  53083. return {
  53084. oldValue: value,
  53085. newValue,
  53086. newOffset
  53087. };
  53088. }
  53089. function commitInput(instance, element, newOffset, inputInit) {
  53090. instance.dispatchUIEvent(element, "input", inputInit), commitValueAfterInput(element, newOffset);
  53091. }
  53092. function isValidNumberInput(value) {
  53093. var _value_match, _value_match1;
  53094. let valueParts = value.split("e", 2);
  53095. return !(/[^\d.\-e]/.test(value) || Number((_value_match = value.match(/-/g)) === null || _value_match === void 0 ? void 0 : _value_match.length) > 2 || Number((_value_match1 = value.match(/\./g)) === null || _value_match1 === void 0 ? void 0 : _value_match1.length) > 1 || valueParts[1] && !/^-?\d*$/.test(valueParts[1]));
  53096. }
  53097. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/cut.js
  53098. behavior.cut = (event, target, instance) => () => {
  53099. isEditable(target) && input(instance, target, "", "deleteByCut");
  53100. };
  53101. // ../../node_modules/@testing-library/user-event/dist/esm/document/getValueOrTextContent.js
  53102. function getValueOrTextContent(element) {
  53103. return element ? isContentEditable(element) ? element.textContent : getUIValue(element) : null;
  53104. }
  53105. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isVisible.js
  53106. function isVisible(element) {
  53107. let window2 = getWindow(element);
  53108. for (let el = element; el?.ownerDocument; el = el.parentElement) {
  53109. let { display: display2, visibility } = window2.getComputedStyle(el);
  53110. if (display2 === "none" || visibility === "hidden")
  53111. return !1;
  53112. }
  53113. return !0;
  53114. }
  53115. // ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/getTabDestination.js
  53116. function getTabDestination(activeElement, shift) {
  53117. let document13 = activeElement.ownerDocument, focusableElements = document13.querySelectorAll(FOCUSABLE_SELECTOR), enabledElements = Array.from(focusableElements).filter((el) => el === activeElement || !(Number(el.getAttribute("tabindex")) < 0 || isDisabled2(el)));
  53118. Number(activeElement.getAttribute("tabindex")) >= 0 && enabledElements.sort((a3, b) => {
  53119. let i = Number(a3.getAttribute("tabindex")), j = Number(b.getAttribute("tabindex"));
  53120. return i === j ? 0 : i === 0 ? 1 : j === 0 ? -1 : i - j;
  53121. });
  53122. let checkedRadio = {}, prunedElements = [
  53123. document13.body
  53124. ], activeRadioGroup = isElementType(activeElement, "input", {
  53125. type: "radio"
  53126. }) ? activeElement.name : void 0;
  53127. enabledElements.forEach((currentElement) => {
  53128. let el = currentElement;
  53129. if (isElementType(el, "input", {
  53130. type: "radio"
  53131. }) && el.name) {
  53132. if (el === activeElement) {
  53133. prunedElements.push(el);
  53134. return;
  53135. } else if (el.name === activeRadioGroup)
  53136. return;
  53137. if (el.checked) {
  53138. prunedElements = prunedElements.filter((e) => !isElementType(e, "input", {
  53139. type: "radio",
  53140. name: el.name
  53141. })), prunedElements.push(el), checkedRadio[el.name] = el;
  53142. return;
  53143. }
  53144. if (typeof checkedRadio[el.name] < "u")
  53145. return;
  53146. }
  53147. prunedElements.push(el);
  53148. });
  53149. for (let index4 = prunedElements.findIndex((el) => el === activeElement); ; )
  53150. if (index4 += shift ? -1 : 1, index4 === prunedElements.length ? index4 = 0 : index4 === -1 && (index4 = prunedElements.length - 1), prunedElements[index4] === activeElement || prunedElements[index4] === document13.body || isVisible(prunedElements[index4]))
  53151. return prunedElements[index4];
  53152. }
  53153. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/moveSelection.js
  53154. function moveSelection(node2, direction) {
  53155. if (hasOwnSelection(node2)) {
  53156. let selection = getUISelection(node2);
  53157. setSelection({
  53158. focusNode: node2,
  53159. focusOffset: selection.startOffset === selection.endOffset ? selection.focusOffset + direction : direction < 0 ? selection.startOffset : selection.endOffset
  53160. });
  53161. } else {
  53162. let selection = node2.ownerDocument.getSelection();
  53163. if (!selection?.focusNode)
  53164. return;
  53165. if (selection.isCollapsed) {
  53166. let nextPosition = getNextCursorPosition(selection.focusNode, selection.focusOffset, direction);
  53167. nextPosition && setSelection({
  53168. focusNode: nextPosition.node,
  53169. focusOffset: nextPosition.offset
  53170. });
  53171. } else
  53172. selection[direction < 0 ? "collapseToStart" : "collapseToEnd"]();
  53173. }
  53174. }
  53175. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/selectAll.js
  53176. function selectAll(target) {
  53177. if (hasOwnSelection(target))
  53178. return setSelection({
  53179. focusNode: target,
  53180. anchorOffset: 0,
  53181. focusOffset: getUIValue(target).length
  53182. });
  53183. var _getContentEditable;
  53184. let focusNode = (_getContentEditable = getContentEditable(target)) !== null && _getContentEditable !== void 0 ? _getContentEditable : target.ownerDocument.body;
  53185. setSelection({
  53186. focusNode,
  53187. anchorOffset: 0,
  53188. focusOffset: focusNode.childNodes.length
  53189. });
  53190. }
  53191. function isAllSelected(target) {
  53192. if (hasOwnSelection(target))
  53193. return getUISelection(target).startOffset === 0 && getUISelection(target).endOffset === getUIValue(target).length;
  53194. var _getContentEditable;
  53195. let focusNode = (_getContentEditable = getContentEditable(target)) !== null && _getContentEditable !== void 0 ? _getContentEditable : target.ownerDocument.body, selection = target.ownerDocument.getSelection();
  53196. return selection?.anchorNode === focusNode && selection.focusNode === focusNode && selection.anchorOffset === 0 && selection.focusOffset === focusNode.childNodes.length;
  53197. }
  53198. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionRange.js
  53199. function setSelectionRange(element, anchorOffset, focusOffset) {
  53200. var _element_firstChild;
  53201. if (hasOwnSelection(element))
  53202. return setSelection({
  53203. focusNode: element,
  53204. anchorOffset,
  53205. focusOffset
  53206. });
  53207. if (isContentEditable(element) && ((_element_firstChild = element.firstChild) === null || _element_firstChild === void 0 ? void 0 : _element_firstChild.nodeType) === 3)
  53208. return setSelection({
  53209. focusNode: element.firstChild,
  53210. anchorOffset,
  53211. focusOffset
  53212. });
  53213. throw new Error("Not implemented. The result of this interaction is unreliable.");
  53214. }
  53215. // ../../node_modules/@testing-library/user-event/dist/esm/event/radio.js
  53216. function walkRadio(instance, el, direction) {
  53217. let window2 = getWindow(el), group = Array.from(el.ownerDocument.querySelectorAll(el.name ? `input[type="radio"][name="${window2.CSS.escape(el.name)}"]` : 'input[type="radio"][name=""], input[type="radio"]:not([name])'));
  53218. for (let i = group.findIndex((e) => e === el) + direction; ; i += direction) {
  53219. if (group[i] || (i = direction > 0 ? 0 : group.length - 1), group[i] === el)
  53220. return;
  53221. if (!isDisabled2(group[i])) {
  53222. focusElement(group[i]), instance.dispatchUIEvent(group[i], "click");
  53223. return;
  53224. }
  53225. }
  53226. }
  53227. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keydown.js
  53228. behavior.keydown = (event, target, instance) => {
  53229. var _keydownBehavior_event_key, _keydownBehavior_event_key1;
  53230. return (_keydownBehavior_event_key1 = (_keydownBehavior_event_key = keydownBehavior[event.key]) === null || _keydownBehavior_event_key === void 0 ? void 0 : _keydownBehavior_event_key.call(keydownBehavior, event, target, instance)) !== null && _keydownBehavior_event_key1 !== void 0 ? _keydownBehavior_event_key1 : combinationBehavior(event, target, instance);
  53231. };
  53232. var keydownBehavior = {
  53233. ArrowDown: (event, target, instance) => {
  53234. if (isElementType(target, "input", {
  53235. type: "radio"
  53236. }))
  53237. return () => walkRadio(instance, target, 1);
  53238. },
  53239. ArrowLeft: (event, target, instance) => isElementType(target, "input", {
  53240. type: "radio"
  53241. }) ? () => walkRadio(instance, target, -1) : () => moveSelection(target, -1),
  53242. ArrowRight: (event, target, instance) => isElementType(target, "input", {
  53243. type: "radio"
  53244. }) ? () => walkRadio(instance, target, 1) : () => moveSelection(target, 1),
  53245. ArrowUp: (event, target, instance) => {
  53246. if (isElementType(target, "input", {
  53247. type: "radio"
  53248. }))
  53249. return () => walkRadio(instance, target, -1);
  53250. },
  53251. Backspace: (event, target, instance) => {
  53252. if (isEditable(target))
  53253. return () => {
  53254. input(instance, target, "", "deleteContentBackward");
  53255. };
  53256. },
  53257. Delete: (event, target, instance) => {
  53258. if (isEditable(target))
  53259. return () => {
  53260. input(instance, target, "", "deleteContentForward");
  53261. };
  53262. },
  53263. End: (event, target) => {
  53264. if (isElementType(target, [
  53265. "input",
  53266. "textarea"
  53267. ]) || isContentEditable(target))
  53268. return () => {
  53269. var _getValueOrTextContent, _getValueOrTextContent_length;
  53270. let newPos = (_getValueOrTextContent_length = (_getValueOrTextContent = getValueOrTextContent(target)) === null || _getValueOrTextContent === void 0 ? void 0 : _getValueOrTextContent.length) !== null && _getValueOrTextContent_length !== void 0 ? _getValueOrTextContent_length : (
  53271. /* istanbul ignore next */
  53272. 0
  53273. );
  53274. setSelectionRange(target, newPos, newPos);
  53275. };
  53276. },
  53277. Home: (event, target) => {
  53278. if (isElementType(target, [
  53279. "input",
  53280. "textarea"
  53281. ]) || isContentEditable(target))
  53282. return () => {
  53283. setSelectionRange(target, 0, 0);
  53284. };
  53285. },
  53286. PageDown: (event, target) => {
  53287. if (isElementType(target, [
  53288. "input"
  53289. ]))
  53290. return () => {
  53291. let newPos = getUIValue(target).length;
  53292. setSelectionRange(target, newPos, newPos);
  53293. };
  53294. },
  53295. PageUp: (event, target) => {
  53296. if (isElementType(target, [
  53297. "input"
  53298. ]))
  53299. return () => {
  53300. setSelectionRange(target, 0, 0);
  53301. };
  53302. },
  53303. Tab: (event, target, instance) => () => {
  53304. let dest = getTabDestination(target, instance.system.keyboard.modifiers.Shift);
  53305. focusElement(dest), hasOwnSelection(dest) && setUISelection(dest, {
  53306. anchorOffset: 0,
  53307. focusOffset: dest.value.length
  53308. });
  53309. }
  53310. }, combinationBehavior = (event, target, instance) => {
  53311. if (event.code === "KeyA" && instance.system.keyboard.modifiers.Control)
  53312. return () => selectAll(target);
  53313. };
  53314. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keypress.js
  53315. behavior.keypress = (event, target, instance) => {
  53316. if (event.key === "Enter") {
  53317. if (isElementType(target, "button") || isElementType(target, "input") && ClickInputOnEnter.includes(target.type) || isElementType(target, "a") && target.href)
  53318. return () => {
  53319. instance.dispatchUIEvent(target, "click");
  53320. };
  53321. if (isElementType(target, "input")) {
  53322. let form = target.form, submit = form?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');
  53323. return submit ? () => instance.dispatchUIEvent(submit, "click") : form && SubmitSingleInputOnEnter.includes(target.type) && form.querySelectorAll("input").length === 1 ? () => instance.dispatchUIEvent(form, "submit") : void 0;
  53324. }
  53325. }
  53326. if (isEditable(target)) {
  53327. let inputType = event.key === "Enter" ? isContentEditable(target) && !instance.system.keyboard.modifiers.Shift ? "insertParagraph" : "insertLineBreak" : "insertText", inputData = event.key === "Enter" ? `
  53328. ` : event.key;
  53329. return () => input(instance, target, inputData, inputType);
  53330. }
  53331. };
  53332. var ClickInputOnEnter = [
  53333. "button",
  53334. "color",
  53335. "file",
  53336. "image",
  53337. "reset",
  53338. "submit"
  53339. ], SubmitSingleInputOnEnter = [
  53340. "email",
  53341. "month",
  53342. "password",
  53343. "search",
  53344. "tel",
  53345. "text",
  53346. "url",
  53347. "week"
  53348. ];
  53349. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keyup.js
  53350. behavior.keyup = (event, target, instance) => {
  53351. var _keyupBehavior_event_key;
  53352. return (_keyupBehavior_event_key = keyupBehavior[event.key]) === null || _keyupBehavior_event_key === void 0 ? void 0 : _keyupBehavior_event_key.call(keyupBehavior, event, target, instance);
  53353. };
  53354. var keyupBehavior = {
  53355. " ": (event, target, instance) => {
  53356. if (isClickableInput(target))
  53357. return () => instance.dispatchUIEvent(target, "click");
  53358. }
  53359. };
  53360. // ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/paste.js
  53361. behavior.paste = (event, target, instance) => {
  53362. if (isEditable(target))
  53363. return () => {
  53364. var _event_clipboardData;
  53365. let insertData = (_event_clipboardData = event.clipboardData) === null || _event_clipboardData === void 0 ? void 0 : _event_clipboardData.getData("text");
  53366. insertData && input(instance, target, insertData, "insertFromPaste");
  53367. };
  53368. };
  53369. // ../../node_modules/@testing-library/user-event/dist/esm/event/eventMap.js
  53370. var eventMap2 = {
  53371. auxclick: {
  53372. EventType: "PointerEvent",
  53373. defaultInit: {
  53374. bubbles: !0,
  53375. cancelable: !0,
  53376. composed: !0
  53377. }
  53378. },
  53379. beforeinput: {
  53380. EventType: "InputEvent",
  53381. defaultInit: {
  53382. bubbles: !0,
  53383. cancelable: !0,
  53384. composed: !0
  53385. }
  53386. },
  53387. blur: {
  53388. EventType: "FocusEvent",
  53389. defaultInit: {
  53390. bubbles: !1,
  53391. cancelable: !1,
  53392. composed: !0
  53393. }
  53394. },
  53395. click: {
  53396. EventType: "PointerEvent",
  53397. defaultInit: {
  53398. bubbles: !0,
  53399. cancelable: !0,
  53400. composed: !0
  53401. }
  53402. },
  53403. contextmenu: {
  53404. EventType: "PointerEvent",
  53405. defaultInit: {
  53406. bubbles: !0,
  53407. cancelable: !0,
  53408. composed: !0
  53409. }
  53410. },
  53411. copy: {
  53412. EventType: "ClipboardEvent",
  53413. defaultInit: {
  53414. bubbles: !0,
  53415. cancelable: !0,
  53416. composed: !0
  53417. }
  53418. },
  53419. change: {
  53420. EventType: "Event",
  53421. defaultInit: {
  53422. bubbles: !0,
  53423. cancelable: !1
  53424. }
  53425. },
  53426. cut: {
  53427. EventType: "ClipboardEvent",
  53428. defaultInit: {
  53429. bubbles: !0,
  53430. cancelable: !0,
  53431. composed: !0
  53432. }
  53433. },
  53434. dblclick: {
  53435. EventType: "MouseEvent",
  53436. defaultInit: {
  53437. bubbles: !0,
  53438. cancelable: !0,
  53439. composed: !0
  53440. }
  53441. },
  53442. focus: {
  53443. EventType: "FocusEvent",
  53444. defaultInit: {
  53445. bubbles: !1,
  53446. cancelable: !1,
  53447. composed: !0
  53448. }
  53449. },
  53450. focusin: {
  53451. EventType: "FocusEvent",
  53452. defaultInit: {
  53453. bubbles: !0,
  53454. cancelable: !1,
  53455. composed: !0
  53456. }
  53457. },
  53458. focusout: {
  53459. EventType: "FocusEvent",
  53460. defaultInit: {
  53461. bubbles: !0,
  53462. cancelable: !1,
  53463. composed: !0
  53464. }
  53465. },
  53466. keydown: {
  53467. EventType: "KeyboardEvent",
  53468. defaultInit: {
  53469. bubbles: !0,
  53470. cancelable: !0,
  53471. composed: !0
  53472. }
  53473. },
  53474. keypress: {
  53475. EventType: "KeyboardEvent",
  53476. defaultInit: {
  53477. bubbles: !0,
  53478. cancelable: !0,
  53479. composed: !0
  53480. }
  53481. },
  53482. keyup: {
  53483. EventType: "KeyboardEvent",
  53484. defaultInit: {
  53485. bubbles: !0,
  53486. cancelable: !0,
  53487. composed: !0
  53488. }
  53489. },
  53490. paste: {
  53491. EventType: "ClipboardEvent",
  53492. defaultInit: {
  53493. bubbles: !0,
  53494. cancelable: !0,
  53495. composed: !0
  53496. }
  53497. },
  53498. input: {
  53499. EventType: "InputEvent",
  53500. defaultInit: {
  53501. bubbles: !0,
  53502. cancelable: !1,
  53503. composed: !0
  53504. }
  53505. },
  53506. mousedown: {
  53507. EventType: "MouseEvent",
  53508. defaultInit: {
  53509. bubbles: !0,
  53510. cancelable: !0,
  53511. composed: !0
  53512. }
  53513. },
  53514. mouseenter: {
  53515. EventType: "MouseEvent",
  53516. defaultInit: {
  53517. bubbles: !1,
  53518. cancelable: !1,
  53519. composed: !0
  53520. }
  53521. },
  53522. mouseleave: {
  53523. EventType: "MouseEvent",
  53524. defaultInit: {
  53525. bubbles: !1,
  53526. cancelable: !1,
  53527. composed: !0
  53528. }
  53529. },
  53530. mousemove: {
  53531. EventType: "MouseEvent",
  53532. defaultInit: {
  53533. bubbles: !0,
  53534. cancelable: !0,
  53535. composed: !0
  53536. }
  53537. },
  53538. mouseout: {
  53539. EventType: "MouseEvent",
  53540. defaultInit: {
  53541. bubbles: !0,
  53542. cancelable: !0,
  53543. composed: !0
  53544. }
  53545. },
  53546. mouseover: {
  53547. EventType: "MouseEvent",
  53548. defaultInit: {
  53549. bubbles: !0,
  53550. cancelable: !0,
  53551. composed: !0
  53552. }
  53553. },
  53554. mouseup: {
  53555. EventType: "MouseEvent",
  53556. defaultInit: {
  53557. bubbles: !0,
  53558. cancelable: !0,
  53559. composed: !0
  53560. }
  53561. },
  53562. pointerover: {
  53563. EventType: "PointerEvent",
  53564. defaultInit: {
  53565. bubbles: !0,
  53566. cancelable: !0,
  53567. composed: !0
  53568. }
  53569. },
  53570. pointerenter: {
  53571. EventType: "PointerEvent",
  53572. defaultInit: {
  53573. bubbles: !1,
  53574. cancelable: !1
  53575. }
  53576. },
  53577. pointerdown: {
  53578. EventType: "PointerEvent",
  53579. defaultInit: {
  53580. bubbles: !0,
  53581. cancelable: !0,
  53582. composed: !0
  53583. }
  53584. },
  53585. pointermove: {
  53586. EventType: "PointerEvent",
  53587. defaultInit: {
  53588. bubbles: !0,
  53589. cancelable: !0,
  53590. composed: !0
  53591. }
  53592. },
  53593. pointerup: {
  53594. EventType: "PointerEvent",
  53595. defaultInit: {
  53596. bubbles: !0,
  53597. cancelable: !0,
  53598. composed: !0
  53599. }
  53600. },
  53601. pointercancel: {
  53602. EventType: "PointerEvent",
  53603. defaultInit: {
  53604. bubbles: !0,
  53605. cancelable: !1,
  53606. composed: !0
  53607. }
  53608. },
  53609. pointerout: {
  53610. EventType: "PointerEvent",
  53611. defaultInit: {
  53612. bubbles: !0,
  53613. cancelable: !0,
  53614. composed: !0
  53615. }
  53616. },
  53617. pointerleave: {
  53618. EventType: "PointerEvent",
  53619. defaultInit: {
  53620. bubbles: !1,
  53621. cancelable: !1
  53622. }
  53623. },
  53624. submit: {
  53625. EventType: "Event",
  53626. defaultInit: {
  53627. bubbles: !0,
  53628. cancelable: !0
  53629. }
  53630. }
  53631. };
  53632. function getEventClass(type5) {
  53633. return eventMap2[type5].EventType;
  53634. }
  53635. var mouseEvents = [
  53636. "MouseEvent",
  53637. "PointerEvent"
  53638. ];
  53639. function isMouseEvent(type5) {
  53640. return mouseEvents.includes(getEventClass(type5));
  53641. }
  53642. function isKeyboardEvent(type5) {
  53643. return getEventClass(type5) === "KeyboardEvent";
  53644. }
  53645. // ../../node_modules/@testing-library/user-event/dist/esm/event/createEvent.js
  53646. var eventInitializer = {
  53647. ClipboardEvent: [
  53648. initClipboardEvent
  53649. ],
  53650. Event: [],
  53651. FocusEvent: [
  53652. initUIEvent,
  53653. initFocusEvent
  53654. ],
  53655. InputEvent: [
  53656. initUIEvent,
  53657. initInputEvent
  53658. ],
  53659. MouseEvent: [
  53660. initUIEvent,
  53661. initUIEventModifiers,
  53662. initMouseEvent
  53663. ],
  53664. PointerEvent: [
  53665. initUIEvent,
  53666. initUIEventModifiers,
  53667. initMouseEvent,
  53668. initPointerEvent
  53669. ],
  53670. KeyboardEvent: [
  53671. initUIEvent,
  53672. initUIEventModifiers,
  53673. initKeyboardEvent
  53674. ]
  53675. };
  53676. function createEvent2(type5, target, init16) {
  53677. let window2 = getWindow(target), { EventType, defaultInit } = eventMap2[type5], event = new (getEventConstructors(window2))[EventType](type5, defaultInit);
  53678. var eventInit = {};
  53679. for (var key in init16)
  53680. Object.prototype.hasOwnProperty.call(init16, key) && (eventInit[key] = init16[key]);
  53681. return eventInit.view = window2, eventInitializer[EventType].forEach(function(f4) {
  53682. f4(event, eventInit);
  53683. }), event;
  53684. }
  53685. function getEventConstructors(window2) {
  53686. var _window_Event;
  53687. let Event2 = (_window_Event = window2.Event) !== null && _window_Event !== void 0 ? _window_Event : class {
  53688. };
  53689. var _window_AnimationEvent;
  53690. let AnimationEvent = (_window_AnimationEvent = window2.AnimationEvent) !== null && _window_AnimationEvent !== void 0 ? _window_AnimationEvent : class extends Event2 {
  53691. };
  53692. var _window_ClipboardEvent;
  53693. let ClipboardEvent = (_window_ClipboardEvent = window2.ClipboardEvent) !== null && _window_ClipboardEvent !== void 0 ? _window_ClipboardEvent : class extends Event2 {
  53694. };
  53695. var _window_PopStateEvent;
  53696. let PopStateEvent = (_window_PopStateEvent = window2.PopStateEvent) !== null && _window_PopStateEvent !== void 0 ? _window_PopStateEvent : class extends Event2 {
  53697. };
  53698. var _window_ProgressEvent;
  53699. let ProgressEvent = (_window_ProgressEvent = window2.ProgressEvent) !== null && _window_ProgressEvent !== void 0 ? _window_ProgressEvent : class extends Event2 {
  53700. };
  53701. var _window_TransitionEvent;
  53702. let TransitionEvent = (_window_TransitionEvent = window2.TransitionEvent) !== null && _window_TransitionEvent !== void 0 ? _window_TransitionEvent : class extends Event2 {
  53703. };
  53704. var _window_UIEvent;
  53705. let UIEvent = (_window_UIEvent = window2.UIEvent) !== null && _window_UIEvent !== void 0 ? _window_UIEvent : class extends Event2 {
  53706. };
  53707. var _window_CompositionEvent;
  53708. let CompositionEvent = (_window_CompositionEvent = window2.CompositionEvent) !== null && _window_CompositionEvent !== void 0 ? _window_CompositionEvent : class extends UIEvent {
  53709. };
  53710. var _window_FocusEvent;
  53711. let FocusEvent2 = (_window_FocusEvent = window2.FocusEvent) !== null && _window_FocusEvent !== void 0 ? _window_FocusEvent : class extends UIEvent {
  53712. };
  53713. var _window_InputEvent;
  53714. let InputEvent = (_window_InputEvent = window2.InputEvent) !== null && _window_InputEvent !== void 0 ? _window_InputEvent : class extends UIEvent {
  53715. };
  53716. var _window_KeyboardEvent;
  53717. let KeyboardEvent2 = (_window_KeyboardEvent = window2.KeyboardEvent) !== null && _window_KeyboardEvent !== void 0 ? _window_KeyboardEvent : class extends UIEvent {
  53718. };
  53719. var _window_MouseEvent;
  53720. let MouseEvent2 = (_window_MouseEvent = window2.MouseEvent) !== null && _window_MouseEvent !== void 0 ? _window_MouseEvent : class extends UIEvent {
  53721. };
  53722. var _window_DragEvent;
  53723. let DragEvent = (_window_DragEvent = window2.DragEvent) !== null && _window_DragEvent !== void 0 ? _window_DragEvent : class extends MouseEvent2 {
  53724. };
  53725. var _window_PointerEvent;
  53726. let PointerEvent2 = (_window_PointerEvent = window2.PointerEvent) !== null && _window_PointerEvent !== void 0 ? _window_PointerEvent : class extends MouseEvent2 {
  53727. };
  53728. var _window_TouchEvent;
  53729. let TouchEvent = (_window_TouchEvent = window2.TouchEvent) !== null && _window_TouchEvent !== void 0 ? _window_TouchEvent : class extends UIEvent {
  53730. };
  53731. return {
  53732. Event: Event2,
  53733. AnimationEvent,
  53734. ClipboardEvent,
  53735. PopStateEvent,
  53736. ProgressEvent,
  53737. TransitionEvent,
  53738. UIEvent,
  53739. CompositionEvent,
  53740. FocusEvent: FocusEvent2,
  53741. InputEvent,
  53742. KeyboardEvent: KeyboardEvent2,
  53743. MouseEvent: MouseEvent2,
  53744. DragEvent,
  53745. PointerEvent: PointerEvent2,
  53746. TouchEvent
  53747. };
  53748. }
  53749. function assignProps(obj, props) {
  53750. for (let [key, value] of Object.entries(props))
  53751. Object.defineProperty(obj, key, {
  53752. get: () => value ?? null
  53753. });
  53754. }
  53755. function sanitizeNumber(n) {
  53756. return Number(n ?? 0);
  53757. }
  53758. function initClipboardEvent(event, { clipboardData }) {
  53759. assignProps(event, {
  53760. clipboardData
  53761. });
  53762. }
  53763. function initFocusEvent(event, { relatedTarget }) {
  53764. assignProps(event, {
  53765. relatedTarget
  53766. });
  53767. }
  53768. function initInputEvent(event, { data, inputType, isComposing }) {
  53769. assignProps(event, {
  53770. data,
  53771. isComposing: !!isComposing,
  53772. inputType: String(inputType)
  53773. });
  53774. }
  53775. function initUIEvent(event, { view, detail }) {
  53776. assignProps(event, {
  53777. view,
  53778. detail: sanitizeNumber(detail ?? 0)
  53779. });
  53780. }
  53781. function initUIEventModifiers(event, { altKey, ctrlKey, metaKey, shiftKey, modifierAltGraph, modifierCapsLock, modifierFn, modifierFnLock, modifierNumLock, modifierScrollLock, modifierSymbol, modifierSymbolLock }) {
  53782. assignProps(event, {
  53783. altKey: !!altKey,
  53784. ctrlKey: !!ctrlKey,
  53785. metaKey: !!metaKey,
  53786. shiftKey: !!shiftKey,
  53787. getModifierState(k) {
  53788. return !!{
  53789. Alt: altKey,
  53790. AltGraph: modifierAltGraph,
  53791. CapsLock: modifierCapsLock,
  53792. Control: ctrlKey,
  53793. Fn: modifierFn,
  53794. FnLock: modifierFnLock,
  53795. Meta: metaKey,
  53796. NumLock: modifierNumLock,
  53797. ScrollLock: modifierScrollLock,
  53798. Shift: shiftKey,
  53799. Symbol: modifierSymbol,
  53800. SymbolLock: modifierSymbolLock
  53801. }[k];
  53802. }
  53803. });
  53804. }
  53805. function initKeyboardEvent(event, { key, code, location: location4, repeat, isComposing, charCode }) {
  53806. assignProps(event, {
  53807. key: String(key),
  53808. code: String(code),
  53809. location: sanitizeNumber(location4),
  53810. repeat: !!repeat,
  53811. isComposing: !!isComposing,
  53812. charCode
  53813. });
  53814. }
  53815. function initMouseEvent(event, { x, y, screenX, screenY, clientX = x, clientY = y, button, buttons, relatedTarget, offsetX, offsetY, pageX, pageY }) {
  53816. assignProps(event, {
  53817. screenX: sanitizeNumber(screenX),
  53818. screenY: sanitizeNumber(screenY),
  53819. clientX: sanitizeNumber(clientX),
  53820. x: sanitizeNumber(clientX),
  53821. clientY: sanitizeNumber(clientY),
  53822. y: sanitizeNumber(clientY),
  53823. button: sanitizeNumber(button),
  53824. buttons: sanitizeNumber(buttons),
  53825. relatedTarget,
  53826. offsetX: sanitizeNumber(offsetX),
  53827. offsetY: sanitizeNumber(offsetY),
  53828. pageX: sanitizeNumber(pageX),
  53829. pageY: sanitizeNumber(pageY)
  53830. });
  53831. }
  53832. function initPointerEvent(event, { pointerId, width, height, pressure, tangentialPressure, tiltX, tiltY, twist, pointerType, isPrimary }) {
  53833. assignProps(event, {
  53834. pointerId: sanitizeNumber(pointerId),
  53835. width: sanitizeNumber(width ?? 1),
  53836. height: sanitizeNumber(height ?? 1),
  53837. pressure: sanitizeNumber(pressure),
  53838. tangentialPressure: sanitizeNumber(tangentialPressure),
  53839. tiltX: sanitizeNumber(tiltX),
  53840. tiltY: sanitizeNumber(tiltY),
  53841. twist: sanitizeNumber(twist),
  53842. pointerType: String(pointerType),
  53843. isPrimary: !!isPrimary
  53844. });
  53845. }
  53846. // ../../node_modules/@testing-library/user-event/dist/esm/event/dispatchEvent.js
  53847. function dispatchUIEvent(target, type5, init16, preventDefault = !1) {
  53848. (isMouseEvent(type5) || isKeyboardEvent(type5)) && (init16 = {
  53849. ...init16,
  53850. ...this.system.getUIEventModifiers()
  53851. });
  53852. let event = createEvent2(type5, target, init16);
  53853. return dispatchEvent.call(this, target, event, preventDefault);
  53854. }
  53855. function dispatchEvent(target, event, preventDefault = !1) {
  53856. var _behavior_type;
  53857. let type5 = event.type, behaviorImplementation = preventDefault ? () => {
  53858. } : (_behavior_type = behavior[type5]) === null || _behavior_type === void 0 ? void 0 : _behavior_type.call(behavior, event, target, this);
  53859. if (behaviorImplementation) {
  53860. event.preventDefault();
  53861. let defaultPrevented = !1;
  53862. return Object.defineProperty(event, "defaultPrevented", {
  53863. get: () => defaultPrevented
  53864. }), Object.defineProperty(event, "preventDefault", {
  53865. value: () => {
  53866. defaultPrevented = event.cancelable;
  53867. }
  53868. }), wrapEvent(() => target.dispatchEvent(event)), defaultPrevented || behaviorImplementation(), !defaultPrevented;
  53869. }
  53870. return wrapEvent(() => target.dispatchEvent(event));
  53871. }
  53872. function dispatchDOMEvent(target, type5, init16) {
  53873. let event = createEvent2(type5, target, init16);
  53874. wrapEvent(() => target.dispatchEvent(event));
  53875. }
  53876. // ../../node_modules/@testing-library/user-event/dist/esm/document/patchFocus.js
  53877. var patched = Symbol("patched focus/blur methods");
  53878. function patchFocus(HTMLElement2) {
  53879. if (HTMLElement2.prototype[patched])
  53880. return;
  53881. let { focus, blur } = HTMLElement2.prototype;
  53882. Object.defineProperties(HTMLElement2.prototype, {
  53883. focus: {
  53884. configurable: !0,
  53885. get: () => patchedFocus
  53886. },
  53887. blur: {
  53888. configurable: !0,
  53889. get: () => patchedBlur
  53890. },
  53891. [patched]: {
  53892. configurable: !0,
  53893. get: () => ({
  53894. focus,
  53895. blur
  53896. })
  53897. }
  53898. });
  53899. let activeCall;
  53900. function patchedFocus(options) {
  53901. if (this.ownerDocument.visibilityState !== "hidden")
  53902. return focus.call(this, options);
  53903. let blurred = getActiveTarget(this.ownerDocument);
  53904. if (blurred === this)
  53905. return;
  53906. let thisCall = Symbol("focus call");
  53907. activeCall = thisCall, blurred && (blur.call(blurred), dispatchDOMEvent(blurred, "blur", {
  53908. relatedTarget: this
  53909. }), dispatchDOMEvent(blurred, "focusout", {
  53910. relatedTarget: activeCall === thisCall ? this : null
  53911. })), activeCall === thisCall && (focus.call(this, options), dispatchDOMEvent(this, "focus", {
  53912. relatedTarget: blurred
  53913. })), activeCall === thisCall && dispatchDOMEvent(this, "focusin", {
  53914. relatedTarget: blurred
  53915. });
  53916. }
  53917. function patchedBlur() {
  53918. if (this.ownerDocument.visibilityState !== "hidden")
  53919. return blur.call(this);
  53920. let blurred = getActiveTarget(this.ownerDocument);
  53921. if (blurred !== this)
  53922. return;
  53923. activeCall = Symbol("blur call"), blur.call(this), dispatchDOMEvent(blurred, "blur", {
  53924. relatedTarget: null
  53925. }), dispatchDOMEvent(blurred, "focusout", {
  53926. relatedTarget: null
  53927. });
  53928. }
  53929. }
  53930. function getActiveTarget(document13) {
  53931. let active = getActiveElement(document13);
  53932. return active?.tagName === "BODY" ? null : active;
  53933. }
  53934. // ../../node_modules/@testing-library/user-event/dist/esm/document/interceptor.js
  53935. var Interceptor = Symbol("Interceptor for programmatical calls");
  53936. function prepareInterceptor(element, propName, interceptorImpl) {
  53937. let prototypeDescriptor = Object.getOwnPropertyDescriptor(element.constructor.prototype, propName), objectDescriptor = Object.getOwnPropertyDescriptor(element, propName), target = prototypeDescriptor?.set ? "set" : "value";
  53938. if (typeof prototypeDescriptor?.[target] != "function" || prototypeDescriptor[target][Interceptor])
  53939. throw new Error(`Element ${element.tagName} does not implement "${String(propName)}".`);
  53940. function intercept(...args) {
  53941. let { applyNative = !1, realArgs, then } = interceptorImpl.call(this, ...args), realFunc = (!applyNative && objectDescriptor || prototypeDescriptor)[target];
  53942. target === "set" ? realFunc.call(this, realArgs) : realFunc.call(this, ...realArgs), then?.();
  53943. }
  53944. intercept[Interceptor] = Interceptor, Object.defineProperty(element, propName, {
  53945. ...objectDescriptor ?? prototypeDescriptor,
  53946. [target]: intercept
  53947. });
  53948. }
  53949. function prepareValueInterceptor(element) {
  53950. prepareInterceptor(element, "value", function(v) {
  53951. let isUI = isUIValue(v);
  53952. return isUI && startTrackValue(this), {
  53953. applyNative: !!isUI,
  53954. realArgs: sanitizeValue(this, v),
  53955. then: isUI ? void 0 : () => trackOrSetValue(this, String(v))
  53956. };
  53957. });
  53958. }
  53959. function sanitizeValue(element, v) {
  53960. return isElementType(element, "input", {
  53961. type: "number"
  53962. }) && String(v) !== "" && !Number.isNaN(Number(v)) ? String(Number(v)) : String(v);
  53963. }
  53964. function prepareSelectionInterceptor(element) {
  53965. prepareInterceptor(element, "setSelectionRange", function(start2, ...others) {
  53966. let isUI = isUISelectionStart(start2);
  53967. return {
  53968. applyNative: !!isUI,
  53969. realArgs: [
  53970. Number(start2),
  53971. ...others
  53972. ],
  53973. then: () => isUI ? void 0 : setUISelectionClean(element)
  53974. };
  53975. }), prepareInterceptor(element, "selectionStart", function(v) {
  53976. return {
  53977. realArgs: v,
  53978. then: () => setUISelectionClean(element)
  53979. };
  53980. }), prepareInterceptor(element, "selectionEnd", function(v) {
  53981. return {
  53982. realArgs: v,
  53983. then: () => setUISelectionClean(element)
  53984. };
  53985. }), prepareInterceptor(element, "select", function() {
  53986. return {
  53987. realArgs: [],
  53988. then: () => setUISelectionRaw(element, {
  53989. anchorOffset: 0,
  53990. focusOffset: getUIValue(element).length
  53991. })
  53992. };
  53993. });
  53994. }
  53995. function prepareRangeTextInterceptor(element) {
  53996. prepareInterceptor(element, "setRangeText", function(...realArgs) {
  53997. return {
  53998. realArgs,
  53999. then: () => {
  54000. setUIValueClean(element), setUISelectionClean(element);
  54001. }
  54002. };
  54003. });
  54004. }
  54005. // ../../node_modules/@testing-library/user-event/dist/esm/document/prepareDocument.js
  54006. var isPrepared = Symbol("Node prepared with document state workarounds");
  54007. function prepareDocument(document13) {
  54008. document13[isPrepared] || (document13.addEventListener("focus", (e) => {
  54009. let el = e.target;
  54010. prepareElement(el);
  54011. }, {
  54012. capture: !0,
  54013. passive: !0
  54014. }), document13.activeElement && prepareElement(document13.activeElement), document13.addEventListener("blur", (e) => {
  54015. let el = e.target, initialValue2 = getInitialValue(el);
  54016. initialValue2 !== void 0 && (el.value !== initialValue2 && dispatchDOMEvent(el, "change"), clearInitialValue(el));
  54017. }, {
  54018. capture: !0,
  54019. passive: !0
  54020. }), document13[isPrepared] = isPrepared);
  54021. }
  54022. function prepareElement(el) {
  54023. el[isPrepared] || (isElementType(el, [
  54024. "input",
  54025. "textarea"
  54026. ]) && (prepareValueInterceptor(el), prepareSelectionInterceptor(el), prepareRangeTextInterceptor(el)), el[isPrepared] = isPrepared);
  54027. }
  54028. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getDocumentFromNode.js
  54029. function getDocumentFromNode(el) {
  54030. return isDocument2(el) ? el : el.ownerDocument;
  54031. }
  54032. function isDocument2(node2) {
  54033. return node2.nodeType === 9;
  54034. }
  54035. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/level.js
  54036. var ApiLevel = (function(ApiLevel2) {
  54037. return ApiLevel2[ApiLevel2.Trigger = 2] = "Trigger", ApiLevel2[ApiLevel2.Call = 1] = "Call", ApiLevel2;
  54038. })({});
  54039. function setLevelRef(instance, level) {
  54040. instance.levelRefs[level] = {};
  54041. }
  54042. function getLevelRef(instance, level) {
  54043. return instance.levelRefs[level];
  54044. }
  54045. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/wait.js
  54046. function wait(config4) {
  54047. let delay = config4.delay;
  54048. if (typeof delay == "number")
  54049. return Promise.all([
  54050. new Promise((resolve) => globalThis.setTimeout(() => resolve(), delay)),
  54051. config4.advanceTimers(delay)
  54052. ]);
  54053. }
  54054. // ../../node_modules/@testing-library/user-event/dist/esm/options.js
  54055. var PointerEventsCheckLevel = (function(PointerEventsCheckLevel2) {
  54056. return PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTrigger = 4] = "EachTrigger", PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachApiCall = 2] = "EachApiCall", PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTarget = 1] = "EachTarget", PointerEventsCheckLevel2[PointerEventsCheckLevel2.Never = 0] = "Never", PointerEventsCheckLevel2;
  54057. })({});
  54058. // ../../node_modules/@testing-library/user-event/dist/esm/system/keyboard.js
  54059. function _define_property3(obj, key, value) {
  54060. return key in obj ? Object.defineProperty(obj, key, {
  54061. value,
  54062. enumerable: !0,
  54063. configurable: !0,
  54064. writable: !0
  54065. }) : obj[key] = value, obj;
  54066. }
  54067. var DOM_KEY_LOCATION = (function(DOM_KEY_LOCATION2) {
  54068. return DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.STANDARD = 0] = "STANDARD", DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.LEFT = 1] = "LEFT", DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.RIGHT = 2] = "RIGHT", DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.NUMPAD = 3] = "NUMPAD", DOM_KEY_LOCATION2;
  54069. })({}), modifierKeys = [
  54070. "Alt",
  54071. "AltGraph",
  54072. "Control",
  54073. "Fn",
  54074. "Meta",
  54075. "Shift",
  54076. "Symbol"
  54077. ];
  54078. function isModifierKey(key) {
  54079. return modifierKeys.includes(key);
  54080. }
  54081. var modifierLocks = [
  54082. "CapsLock",
  54083. "FnLock",
  54084. "NumLock",
  54085. "ScrollLock",
  54086. "SymbolLock"
  54087. ];
  54088. function isModifierLock(key) {
  54089. return modifierLocks.includes(key);
  54090. }
  54091. var KeyboardHost = class {
  54092. isKeyPressed(keyDef) {
  54093. return this.pressed.has(String(keyDef.code));
  54094. }
  54095. getPressedKeys() {
  54096. return this.pressed.values().map((p3) => p3.keyDef);
  54097. }
  54098. /** Press a key */
  54099. async keydown(instance, keyDef) {
  54100. let key = String(keyDef.key), code = String(keyDef.code), target = getActiveElementOrBody(instance.config.document);
  54101. this.setKeydownTarget(target), this.pressed.add(code, keyDef), isModifierKey(key) && (this.modifiers[key] = !0);
  54102. let unprevented = instance.dispatchUIEvent(target, "keydown", {
  54103. key,
  54104. code
  54105. });
  54106. isModifierLock(key) && !this.modifiers[key] && (this.modifiers[key] = !0, this.modifierLockStart[key] = !0), unprevented && this.pressed.setUnprevented(code), unprevented && this.hasKeyPress(key) && instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document), "keypress", {
  54107. key,
  54108. code,
  54109. charCode: keyDef.key === "Enter" ? 13 : String(keyDef.key).charCodeAt(0)
  54110. });
  54111. }
  54112. /** Release a key */
  54113. async keyup(instance, keyDef) {
  54114. let key = String(keyDef.key), code = String(keyDef.code), unprevented = this.pressed.isUnprevented(code);
  54115. this.pressed.delete(code), isModifierKey(key) && !this.pressed.values().find((p3) => p3.keyDef.key === key) && (this.modifiers[key] = !1), instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document), "keyup", {
  54116. key,
  54117. code
  54118. }, !unprevented), isModifierLock(key) && this.modifiers[key] && (this.modifierLockStart[key] ? this.modifierLockStart[key] = !1 : this.modifiers[key] = !1);
  54119. }
  54120. setKeydownTarget(target) {
  54121. target !== this.lastKeydownTarget && (this.carryChar = ""), this.lastKeydownTarget = target;
  54122. }
  54123. hasKeyPress(key) {
  54124. return (key.length === 1 || key === "Enter") && !this.modifiers.Control && !this.modifiers.Alt;
  54125. }
  54126. constructor(system) {
  54127. _define_property3(this, "system", void 0), _define_property3(this, "modifiers", {
  54128. Alt: !1,
  54129. AltGraph: !1,
  54130. CapsLock: !1,
  54131. Control: !1,
  54132. Fn: !1,
  54133. FnLock: !1,
  54134. Meta: !1,
  54135. NumLock: !1,
  54136. ScrollLock: !1,
  54137. Shift: !1,
  54138. Symbol: !1,
  54139. SymbolLock: !1
  54140. }), _define_property3(this, "pressed", new class {
  54141. add(code, keyDef) {
  54142. var _this_registry, _code, _;
  54143. (_ = (_this_registry = this.registry)[_code = code]) !== null && _ !== void 0 || (_this_registry[_code] = {
  54144. keyDef,
  54145. unpreventedDefault: !1
  54146. });
  54147. }
  54148. has(code) {
  54149. return !!this.registry[code];
  54150. }
  54151. setUnprevented(code) {
  54152. let o = this.registry[code];
  54153. o && (o.unpreventedDefault = !0);
  54154. }
  54155. isUnprevented(code) {
  54156. var _this_registry_code;
  54157. return !!(!((_this_registry_code = this.registry[code]) === null || _this_registry_code === void 0) && _this_registry_code.unpreventedDefault);
  54158. }
  54159. delete(code) {
  54160. delete this.registry[code];
  54161. }
  54162. values() {
  54163. return Object.values(this.registry);
  54164. }
  54165. constructor() {
  54166. _define_property3(this, "registry", {});
  54167. }
  54168. }()), _define_property3(this, "carryChar", ""), _define_property3(this, "lastKeydownTarget", void 0), _define_property3(this, "modifierLockStart", {}), this.system = system;
  54169. }
  54170. };
  54171. // ../../node_modules/@testing-library/user-event/dist/esm/keyboard/keyMap.js
  54172. var defaultKeyMap = [
  54173. // alphanumeric block - writing system
  54174. ..."0123456789".split("").map((c) => ({
  54175. code: `Digit${c}`,
  54176. key: c
  54177. })),
  54178. ...")!@#$%^&*(".split("").map((c, i) => ({
  54179. code: `Digit${i}`,
  54180. key: c,
  54181. shiftKey: !0
  54182. })),
  54183. ..."abcdefghijklmnopqrstuvwxyz".split("").map((c) => ({
  54184. code: `Key${c.toUpperCase()}`,
  54185. key: c
  54186. })),
  54187. ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c) => ({
  54188. code: `Key${c}`,
  54189. key: c,
  54190. shiftKey: !0
  54191. })),
  54192. {
  54193. code: "BracketLeft",
  54194. key: "["
  54195. },
  54196. {
  54197. code: "BracketLeft",
  54198. key: "{",
  54199. shiftKey: !0
  54200. },
  54201. {
  54202. code: "BracketRight",
  54203. key: "]"
  54204. },
  54205. {
  54206. code: "BracketRight",
  54207. key: "}",
  54208. shiftKey: !0
  54209. },
  54210. // alphanumeric block - functional
  54211. {
  54212. code: "Space",
  54213. key: " "
  54214. },
  54215. {
  54216. code: "AltLeft",
  54217. key: "Alt",
  54218. location: DOM_KEY_LOCATION.LEFT
  54219. },
  54220. {
  54221. code: "AltRight",
  54222. key: "Alt",
  54223. location: DOM_KEY_LOCATION.RIGHT
  54224. },
  54225. {
  54226. code: "ShiftLeft",
  54227. key: "Shift",
  54228. location: DOM_KEY_LOCATION.LEFT
  54229. },
  54230. {
  54231. code: "ShiftRight",
  54232. key: "Shift",
  54233. location: DOM_KEY_LOCATION.RIGHT
  54234. },
  54235. {
  54236. code: "ControlLeft",
  54237. key: "Control",
  54238. location: DOM_KEY_LOCATION.LEFT
  54239. },
  54240. {
  54241. code: "ControlRight",
  54242. key: "Control",
  54243. location: DOM_KEY_LOCATION.RIGHT
  54244. },
  54245. {
  54246. code: "MetaLeft",
  54247. key: "Meta",
  54248. location: DOM_KEY_LOCATION.LEFT
  54249. },
  54250. {
  54251. code: "MetaRight",
  54252. key: "Meta",
  54253. location: DOM_KEY_LOCATION.RIGHT
  54254. },
  54255. {
  54256. code: "OSLeft",
  54257. key: "OS",
  54258. location: DOM_KEY_LOCATION.LEFT
  54259. },
  54260. {
  54261. code: "OSRight",
  54262. key: "OS",
  54263. location: DOM_KEY_LOCATION.RIGHT
  54264. },
  54265. {
  54266. code: "ContextMenu",
  54267. key: "ContextMenu"
  54268. },
  54269. {
  54270. code: "Tab",
  54271. key: "Tab"
  54272. },
  54273. {
  54274. code: "CapsLock",
  54275. key: "CapsLock"
  54276. },
  54277. {
  54278. code: "Backspace",
  54279. key: "Backspace"
  54280. },
  54281. {
  54282. code: "Enter",
  54283. key: "Enter"
  54284. },
  54285. // function
  54286. {
  54287. code: "Escape",
  54288. key: "Escape"
  54289. },
  54290. // arrows
  54291. {
  54292. code: "ArrowUp",
  54293. key: "ArrowUp"
  54294. },
  54295. {
  54296. code: "ArrowDown",
  54297. key: "ArrowDown"
  54298. },
  54299. {
  54300. code: "ArrowLeft",
  54301. key: "ArrowLeft"
  54302. },
  54303. {
  54304. code: "ArrowRight",
  54305. key: "ArrowRight"
  54306. },
  54307. // control pad
  54308. {
  54309. code: "Home",
  54310. key: "Home"
  54311. },
  54312. {
  54313. code: "End",
  54314. key: "End"
  54315. },
  54316. {
  54317. code: "Delete",
  54318. key: "Delete"
  54319. },
  54320. {
  54321. code: "PageUp",
  54322. key: "PageUp"
  54323. },
  54324. {
  54325. code: "PageDown",
  54326. key: "PageDown"
  54327. },
  54328. // Special keys that are not part of a default US-layout but included for specific behavior
  54329. {
  54330. code: "Fn",
  54331. key: "Fn"
  54332. },
  54333. {
  54334. code: "Symbol",
  54335. key: "Symbol"
  54336. },
  54337. {
  54338. code: "AltRight",
  54339. key: "AltGraph"
  54340. }
  54341. ];
  54342. // ../../node_modules/@testing-library/user-event/dist/esm/pointer/keyMap.js
  54343. var defaultKeyMap2 = [
  54344. {
  54345. name: "MouseLeft",
  54346. pointerType: "mouse",
  54347. button: "primary"
  54348. },
  54349. {
  54350. name: "MouseRight",
  54351. pointerType: "mouse",
  54352. button: "secondary"
  54353. },
  54354. {
  54355. name: "MouseMiddle",
  54356. pointerType: "mouse",
  54357. button: "auxiliary"
  54358. },
  54359. {
  54360. name: "TouchA",
  54361. pointerType: "touch"
  54362. },
  54363. {
  54364. name: "TouchB",
  54365. pointerType: "touch"
  54366. },
  54367. {
  54368. name: "TouchC",
  54369. pointerType: "touch"
  54370. }
  54371. ];
  54372. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/buttons.js
  54373. function _define_property4(obj, key, value) {
  54374. return key in obj ? Object.defineProperty(obj, key, {
  54375. value,
  54376. enumerable: !0,
  54377. configurable: !0,
  54378. writable: !0
  54379. }) : obj[key] = value, obj;
  54380. }
  54381. var Buttons = class {
  54382. getButtons() {
  54383. let v = 0;
  54384. for (let button of Object.keys(this.pressed))
  54385. v |= 2 ** Number(button);
  54386. return v;
  54387. }
  54388. down(keyDef) {
  54389. let button = getMouseButtonId(keyDef.button);
  54390. if (button in this.pressed) {
  54391. this.pressed[button].push(keyDef);
  54392. return;
  54393. }
  54394. return this.pressed[button] = [
  54395. keyDef
  54396. ], button;
  54397. }
  54398. up(keyDef) {
  54399. let button = getMouseButtonId(keyDef.button);
  54400. if (button in this.pressed && (this.pressed[button] = this.pressed[button].filter((k) => k.name !== keyDef.name), this.pressed[button].length === 0))
  54401. return delete this.pressed[button], button;
  54402. }
  54403. constructor() {
  54404. _define_property4(this, "pressed", {});
  54405. }
  54406. }, MouseButton = {
  54407. primary: 0,
  54408. secondary: 1,
  54409. auxiliary: 2,
  54410. back: 3,
  54411. X1: 3,
  54412. forward: 4,
  54413. X2: 4
  54414. };
  54415. function getMouseButtonId(button = 0) {
  54416. return button in MouseButton ? MouseButton[button] : Number(button);
  54417. }
  54418. var MouseButtonFlip = {
  54419. 1: 2,
  54420. 2: 1
  54421. };
  54422. function getMouseEventButton(button) {
  54423. return button = getMouseButtonId(button), button in MouseButtonFlip ? MouseButtonFlip[button] : button;
  54424. }
  54425. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/device.js
  54426. function _define_property5(obj, key, value) {
  54427. return key in obj ? Object.defineProperty(obj, key, {
  54428. value,
  54429. enumerable: !0,
  54430. configurable: !0,
  54431. writable: !0
  54432. }) : obj[key] = value, obj;
  54433. }
  54434. var Device = class {
  54435. get countPressed() {
  54436. return this.pressedKeys.size;
  54437. }
  54438. isPressed(keyDef) {
  54439. return this.pressedKeys.has(keyDef.name);
  54440. }
  54441. addPressed(keyDef) {
  54442. return this.pressedKeys.add(keyDef.name);
  54443. }
  54444. removePressed(keyDef) {
  54445. return this.pressedKeys.delete(keyDef.name);
  54446. }
  54447. constructor() {
  54448. _define_property5(this, "pressedKeys", /* @__PURE__ */ new Set());
  54449. }
  54450. };
  54451. // ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getTreeDiff.js
  54452. function getTreeDiff(a3, b) {
  54453. let treeA = [];
  54454. for (let el = a3; el; el = el.parentElement)
  54455. treeA.push(el);
  54456. let treeB = [];
  54457. for (let el = b; el; el = el.parentElement)
  54458. treeB.push(el);
  54459. let i = 0;
  54460. for (; !(i >= treeA.length || i >= treeB.length || treeA[treeA.length - 1 - i] !== treeB[treeB.length - 1 - i]); i++)
  54461. ;
  54462. return [
  54463. treeA.slice(0, treeA.length - i),
  54464. treeB.slice(0, treeB.length - i),
  54465. treeB.slice(treeB.length - i)
  54466. ];
  54467. }
  54468. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/resolveCaretPosition.js
  54469. function resolveCaretPosition({ target, node: node2, offset: offset3 }) {
  54470. return hasOwnSelection(target) ? {
  54471. node: target,
  54472. offset: offset3 ?? getUIValue(target).length
  54473. } : node2 ? {
  54474. node: node2,
  54475. offset: offset3 ?? (node2.nodeType === 3 ? node2.nodeValue.length : node2.childNodes.length)
  54476. } : findNodeAtTextOffset(target, offset3);
  54477. }
  54478. function findNodeAtTextOffset(node2, offset3, isRoot = !0) {
  54479. let i = offset3 === void 0 ? node2.childNodes.length - 1 : 0, step2 = offset3 === void 0 ? -1 : 1;
  54480. for (; offset3 === void 0 ? i >= (isRoot ? Math.max(node2.childNodes.length - 1, 0) : 0) : i <= node2.childNodes.length; ) {
  54481. if (offset3 && i === node2.childNodes.length)
  54482. throw new Error("The given offset is out of bounds.");
  54483. let c = node2.childNodes.item(i), text = String(c.textContent);
  54484. if (text.length)
  54485. if (offset3 !== void 0 && text.length < offset3)
  54486. offset3 -= text.length;
  54487. else {
  54488. if (c.nodeType === 1)
  54489. return findNodeAtTextOffset(c, offset3, !1);
  54490. if (c.nodeType === 3)
  54491. return {
  54492. node: c,
  54493. offset: offset3 ?? c.nodeValue.length
  54494. };
  54495. }
  54496. i += step2;
  54497. }
  54498. return {
  54499. node: node2,
  54500. offset: node2.childNodes.length
  54501. };
  54502. }
  54503. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionPerMouse.js
  54504. function setSelectionPerMouseDown({ document: document13, target, clickCount, node: node2, offset: offset3 }) {
  54505. if (hasNoSelection(target))
  54506. return;
  54507. let targetHasOwnSelection = hasOwnSelection(target), text = String(targetHasOwnSelection ? getUIValue(target) : target.textContent), [start2, end2] = node2 ? (
  54508. // which elements might be considered in the same line of text.
  54509. // TODO: support expanding initial range on multiple clicks if node is given
  54510. [
  54511. offset3,
  54512. offset3
  54513. ]
  54514. ) : getTextRange(text, offset3, clickCount);
  54515. if (targetHasOwnSelection)
  54516. return setUISelection(target, {
  54517. anchorOffset: start2 ?? text.length,
  54518. focusOffset: end2 ?? text.length
  54519. }), {
  54520. node: target,
  54521. start: start2 ?? 0,
  54522. end: end2 ?? text.length
  54523. };
  54524. {
  54525. let { node: startNode, offset: startOffset } = resolveCaretPosition({
  54526. target,
  54527. node: node2,
  54528. offset: start2
  54529. }), { node: endNode, offset: endOffset } = resolveCaretPosition({
  54530. target,
  54531. node: node2,
  54532. offset: end2
  54533. }), range = target.ownerDocument.createRange();
  54534. try {
  54535. range.setStart(startNode, startOffset), range.setEnd(endNode, endOffset);
  54536. } catch {
  54537. throw new Error("The given offset is out of bounds.");
  54538. }
  54539. let selection = document13.getSelection();
  54540. return selection?.removeAllRanges(), selection?.addRange(range.cloneRange()), range;
  54541. }
  54542. }
  54543. function getTextRange(text, pos, clickCount) {
  54544. if (clickCount % 3 === 1 || text.length === 0)
  54545. return [
  54546. pos,
  54547. pos
  54548. ];
  54549. let textPos = pos ?? text.length;
  54550. return clickCount % 3 === 2 ? [
  54551. textPos - text.substr(0, pos).match(/(\w+|\s+|\W)?$/)[0].length,
  54552. pos === void 0 ? pos : pos + text.substr(pos).match(/^(\w+|\s+|\W)?/)[0].length
  54553. ] : [
  54554. textPos - text.substr(0, pos).match(/[^\r\n]*$/)[0].length,
  54555. pos === void 0 ? pos : pos + text.substr(pos).match(/^[^\r\n]*/)[0].length
  54556. ];
  54557. }
  54558. // ../../node_modules/@testing-library/user-event/dist/esm/event/selection/modifySelectionPerMouse.js
  54559. function modifySelectionPerMouseMove(selectionRange, { document: document13, target, node: node2, offset: offset3 }) {
  54560. let selectionFocus = resolveCaretPosition({
  54561. target,
  54562. node: node2,
  54563. offset: offset3
  54564. });
  54565. if ("node" in selectionRange) {
  54566. if (selectionFocus.node === selectionRange.node) {
  54567. let anchorOffset = selectionFocus.offset < selectionRange.start ? selectionRange.end : selectionRange.start, focusOffset = selectionFocus.offset > selectionRange.end || selectionFocus.offset < selectionRange.start ? selectionFocus.offset : selectionRange.end;
  54568. setUISelection(selectionRange.node, {
  54569. anchorOffset,
  54570. focusOffset
  54571. });
  54572. }
  54573. } else {
  54574. let range = selectionRange.cloneRange(), cmp = range.comparePoint(selectionFocus.node, selectionFocus.offset);
  54575. cmp < 0 ? range.setStart(selectionFocus.node, selectionFocus.offset) : cmp > 0 && range.setEnd(selectionFocus.node, selectionFocus.offset);
  54576. let selection = document13.getSelection();
  54577. selection?.removeAllRanges(), selection?.addRange(range.cloneRange());
  54578. }
  54579. }
  54580. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/shared.js
  54581. function isDifferentPointerPosition(positionA, positionB) {
  54582. var _positionA_coords, _positionB_coords, _positionA_coords1, _positionB_coords1, _positionA_coords2, _positionB_coords2, _positionA_coords3, _positionB_coords3, _positionA_coords4, _positionB_coords4, _positionA_coords5, _positionB_coords5, _positionA_coords6, _positionB_coords6, _positionA_coords7, _positionB_coords7, _positionA_coords8, _positionB_coords8, _positionA_coords9, _positionB_coords9, _positionA_caret, _positionB_caret, _positionA_caret1, _positionB_caret1;
  54583. return positionA.target !== positionB.target || ((_positionA_coords = positionA.coords) === null || _positionA_coords === void 0 ? void 0 : _positionA_coords.x) !== ((_positionB_coords = positionB.coords) === null || _positionB_coords === void 0 ? void 0 : _positionB_coords.x) || ((_positionA_coords1 = positionA.coords) === null || _positionA_coords1 === void 0 ? void 0 : _positionA_coords1.y) !== ((_positionB_coords1 = positionB.coords) === null || _positionB_coords1 === void 0 ? void 0 : _positionB_coords1.y) || ((_positionA_coords2 = positionA.coords) === null || _positionA_coords2 === void 0 ? void 0 : _positionA_coords2.clientX) !== ((_positionB_coords2 = positionB.coords) === null || _positionB_coords2 === void 0 ? void 0 : _positionB_coords2.clientX) || ((_positionA_coords3 = positionA.coords) === null || _positionA_coords3 === void 0 ? void 0 : _positionA_coords3.clientY) !== ((_positionB_coords3 = positionB.coords) === null || _positionB_coords3 === void 0 ? void 0 : _positionB_coords3.clientY) || ((_positionA_coords4 = positionA.coords) === null || _positionA_coords4 === void 0 ? void 0 : _positionA_coords4.offsetX) !== ((_positionB_coords4 = positionB.coords) === null || _positionB_coords4 === void 0 ? void 0 : _positionB_coords4.offsetX) || ((_positionA_coords5 = positionA.coords) === null || _positionA_coords5 === void 0 ? void 0 : _positionA_coords5.offsetY) !== ((_positionB_coords5 = positionB.coords) === null || _positionB_coords5 === void 0 ? void 0 : _positionB_coords5.offsetY) || ((_positionA_coords6 = positionA.coords) === null || _positionA_coords6 === void 0 ? void 0 : _positionA_coords6.pageX) !== ((_positionB_coords6 = positionB.coords) === null || _positionB_coords6 === void 0 ? void 0 : _positionB_coords6.pageX) || ((_positionA_coords7 = positionA.coords) === null || _positionA_coords7 === void 0 ? void 0 : _positionA_coords7.pageY) !== ((_positionB_coords7 = positionB.coords) === null || _positionB_coords7 === void 0 ? void 0 : _positionB_coords7.pageY) || ((_positionA_coords8 = positionA.coords) === null || _positionA_coords8 === void 0 ? void 0 : _positionA_coords8.screenX) !== ((_positionB_coords8 = positionB.coords) === null || _positionB_coords8 === void 0 ? void 0 : _positionB_coords8.screenX) || ((_positionA_coords9 = positionA.coords) === null || _positionA_coords9 === void 0 ? void 0 : _positionA_coords9.screenY) !== ((_positionB_coords9 = positionB.coords) === null || _positionB_coords9 === void 0 ? void 0 : _positionB_coords9.screenY) || ((_positionA_caret = positionA.caret) === null || _positionA_caret === void 0 ? void 0 : _positionA_caret.node) !== ((_positionB_caret = positionB.caret) === null || _positionB_caret === void 0 ? void 0 : _positionB_caret.node) || ((_positionA_caret1 = positionA.caret) === null || _positionA_caret1 === void 0 ? void 0 : _positionA_caret1.offset) !== ((_positionB_caret1 = positionB.caret) === null || _positionB_caret1 === void 0 ? void 0 : _positionB_caret1.offset);
  54584. }
  54585. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/mouse.js
  54586. function _define_property6(obj, key, value) {
  54587. return key in obj ? Object.defineProperty(obj, key, {
  54588. value,
  54589. enumerable: !0,
  54590. configurable: !0,
  54591. writable: !0
  54592. }) : obj[key] = value, obj;
  54593. }
  54594. var Mouse = class {
  54595. move(instance, position2, isPrevented) {
  54596. let prevPosition = this.position, prevTarget = this.getTarget(instance);
  54597. if (this.position = position2, !isDifferentPointerPosition(prevPosition, position2))
  54598. return;
  54599. let nextTarget = this.getTarget(instance), init16 = this.getEventInit("mousemove"), [leave, enter] = getTreeDiff(prevTarget, nextTarget);
  54600. return {
  54601. leave: () => {
  54602. prevTarget !== nextTarget && (instance.dispatchUIEvent(prevTarget, "mouseout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "mouseleave", init16)));
  54603. },
  54604. enter: () => {
  54605. prevTarget !== nextTarget && (instance.dispatchUIEvent(nextTarget, "mouseover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "mouseenter", init16)));
  54606. },
  54607. move: () => {
  54608. isPrevented || (instance.dispatchUIEvent(nextTarget, "mousemove", init16), this.modifySelecting(instance));
  54609. }
  54610. };
  54611. }
  54612. down(instance, keyDef, isPrevented) {
  54613. let button = this.buttons.down(keyDef);
  54614. if (button === void 0)
  54615. return;
  54616. let target = this.getTarget(instance);
  54617. this.buttonDownTarget[button] = target;
  54618. let init16 = this.getEventInit("mousedown", keyDef.button), disabled = isDisabled2(target);
  54619. !isPrevented && (disabled || instance.dispatchUIEvent(target, "mousedown", init16)) && (this.startSelecting(instance, init16.detail), focusElement(target)), !disabled && getMouseEventButton(keyDef.button) === 2 && instance.dispatchUIEvent(target, "contextmenu", this.getEventInit("contextmenu", keyDef.button));
  54620. }
  54621. up(instance, keyDef, isPrevented) {
  54622. let button = this.buttons.up(keyDef);
  54623. if (button === void 0)
  54624. return;
  54625. let target = this.getTarget(instance);
  54626. if (!isDisabled2(target)) {
  54627. if (!isPrevented) {
  54628. let mouseUpInit = this.getEventInit("mouseup", keyDef.button);
  54629. instance.dispatchUIEvent(target, "mouseup", mouseUpInit), this.endSelecting();
  54630. }
  54631. let clickTarget = getTreeDiff(this.buttonDownTarget[button], target)[2][0];
  54632. if (clickTarget) {
  54633. let init16 = this.getEventInit("click", keyDef.button);
  54634. init16.detail && (instance.dispatchUIEvent(clickTarget, init16.button === 0 ? "click" : "auxclick", init16), init16.button === 0 && init16.detail === 2 && instance.dispatchUIEvent(clickTarget, "dblclick", {
  54635. ...this.getEventInit("dblclick", keyDef.button),
  54636. detail: init16.detail
  54637. }));
  54638. }
  54639. }
  54640. }
  54641. resetClickCount() {
  54642. this.clickCount.reset();
  54643. }
  54644. getEventInit(type5, button) {
  54645. let init16 = {
  54646. ...this.position.coords
  54647. };
  54648. return init16.button = getMouseEventButton(button), init16.buttons = this.buttons.getButtons(), type5 === "mousedown" ? init16.detail = this.clickCount.getOnDown(init16.button) : type5 === "mouseup" ? init16.detail = this.clickCount.getOnUp(init16.button) : (type5 === "click" || type5 === "auxclick") && (init16.detail = this.clickCount.incOnClick(init16.button)), init16;
  54649. }
  54650. getTarget(instance) {
  54651. var _this_position_target;
  54652. return (_this_position_target = this.position.target) !== null && _this_position_target !== void 0 ? _this_position_target : instance.config.document.body;
  54653. }
  54654. startSelecting(instance, clickCount) {
  54655. var _this_position_caret, _this_position_caret1;
  54656. this.selecting = setSelectionPerMouseDown({
  54657. document: instance.config.document,
  54658. target: this.getTarget(instance),
  54659. node: (_this_position_caret = this.position.caret) === null || _this_position_caret === void 0 ? void 0 : _this_position_caret.node,
  54660. offset: (_this_position_caret1 = this.position.caret) === null || _this_position_caret1 === void 0 ? void 0 : _this_position_caret1.offset,
  54661. clickCount
  54662. });
  54663. }
  54664. modifySelecting(instance) {
  54665. var _this_position_caret, _this_position_caret1;
  54666. this.selecting && modifySelectionPerMouseMove(this.selecting, {
  54667. document: instance.config.document,
  54668. target: this.getTarget(instance),
  54669. node: (_this_position_caret = this.position.caret) === null || _this_position_caret === void 0 ? void 0 : _this_position_caret.node,
  54670. offset: (_this_position_caret1 = this.position.caret) === null || _this_position_caret1 === void 0 ? void 0 : _this_position_caret1.offset
  54671. });
  54672. }
  54673. endSelecting() {
  54674. this.selecting = void 0;
  54675. }
  54676. constructor() {
  54677. _define_property6(this, "position", {}), _define_property6(this, "buttons", new Buttons()), _define_property6(this, "selecting", void 0), _define_property6(this, "buttonDownTarget", {}), _define_property6(this, "clickCount", new class {
  54678. incOnClick(button) {
  54679. let current = this.down[button] === void 0 ? void 0 : Number(this.down[button]) + 1;
  54680. return this.count = this.count[button] === void 0 ? {} : {
  54681. [button]: Number(this.count[button]) + 1
  54682. }, current;
  54683. }
  54684. getOnDown(button) {
  54685. var _this_count_button;
  54686. this.down = {
  54687. [button]: (_this_count_button = this.count[button]) !== null && _this_count_button !== void 0 ? _this_count_button : 0
  54688. };
  54689. var _this_count_button1;
  54690. return this.count = {
  54691. [button]: (_this_count_button1 = this.count[button]) !== null && _this_count_button1 !== void 0 ? _this_count_button1 : 0
  54692. }, Number(this.count[button]) + 1;
  54693. }
  54694. getOnUp(button) {
  54695. return this.down[button] === void 0 ? void 0 : Number(this.down[button]) + 1;
  54696. }
  54697. reset() {
  54698. this.count = {};
  54699. }
  54700. constructor() {
  54701. _define_property6(this, "down", {}), _define_property6(this, "count", {});
  54702. }
  54703. }());
  54704. }
  54705. };
  54706. // ../../node_modules/@testing-library/user-event/dist/esm/utils/pointer/cssPointerEvents.js
  54707. function hasPointerEvents(instance, element) {
  54708. var _checkPointerEvents;
  54709. return ((_checkPointerEvents = checkPointerEvents(instance, element)) === null || _checkPointerEvents === void 0 ? void 0 : _checkPointerEvents.pointerEvents) !== "none";
  54710. }
  54711. function closestPointerEventsDeclaration(element) {
  54712. let window2 = getWindow(element);
  54713. for (let el = element, tree = []; el?.ownerDocument; el = el.parentElement) {
  54714. tree.push(el);
  54715. let pointerEvents = window2.getComputedStyle(el).pointerEvents;
  54716. if (pointerEvents && ![
  54717. "inherit",
  54718. "unset"
  54719. ].includes(pointerEvents))
  54720. return {
  54721. pointerEvents,
  54722. tree
  54723. };
  54724. }
  54725. }
  54726. var PointerEventsCheck = Symbol("Last check for pointer-events");
  54727. function checkPointerEvents(instance, element) {
  54728. let lastCheck = element[PointerEventsCheck];
  54729. if (!(instance.config.pointerEventsCheck !== PointerEventsCheckLevel.Never && (!lastCheck || hasBitFlag(instance.config.pointerEventsCheck, PointerEventsCheckLevel.EachApiCall) && lastCheck[ApiLevel.Call] !== getLevelRef(instance, ApiLevel.Call) || hasBitFlag(instance.config.pointerEventsCheck, PointerEventsCheckLevel.EachTrigger) && lastCheck[ApiLevel.Trigger] !== getLevelRef(instance, ApiLevel.Trigger))))
  54730. return lastCheck?.result;
  54731. let declaration2 = closestPointerEventsDeclaration(element);
  54732. return element[PointerEventsCheck] = {
  54733. [ApiLevel.Call]: getLevelRef(instance, ApiLevel.Call),
  54734. [ApiLevel.Trigger]: getLevelRef(instance, ApiLevel.Trigger),
  54735. result: declaration2
  54736. }, declaration2;
  54737. }
  54738. function assertPointerEvents(instance, element) {
  54739. let declaration2 = checkPointerEvents(instance, element);
  54740. if (declaration2?.pointerEvents === "none")
  54741. throw new Error([
  54742. `Unable to perform pointer interaction as the element ${declaration2.tree.length > 1 ? "inherits" : "has"} \`pointer-events: none\`:`,
  54743. "",
  54744. printTree(declaration2.tree)
  54745. ].join(`
  54746. `));
  54747. }
  54748. function printTree(tree) {
  54749. return tree.reverse().map((el, i) => [
  54750. "".padEnd(i),
  54751. el.tagName,
  54752. el.id && `#${el.id}`,
  54753. el.hasAttribute("data-testid") && `(testId=${el.getAttribute("data-testid")})`,
  54754. getLabelDescr(el),
  54755. tree.length > 1 && i === 0 && " <-- This element declared `pointer-events: none`",
  54756. tree.length > 1 && i === tree.length - 1 && " <-- Asserted pointer events here"
  54757. ].filter(Boolean).join("")).join(`
  54758. `);
  54759. }
  54760. function getLabelDescr(element) {
  54761. var _element_labels;
  54762. let label;
  54763. if (element.hasAttribute("aria-label"))
  54764. label = element.getAttribute("aria-label");
  54765. else if (element.hasAttribute("aria-labelledby")) {
  54766. var _element_ownerDocument_getElementById_textContent, _element_ownerDocument_getElementById;
  54767. label = (_element_ownerDocument_getElementById = element.ownerDocument.getElementById(element.getAttribute("aria-labelledby"))) === null || _element_ownerDocument_getElementById === void 0 || (_element_ownerDocument_getElementById_textContent = _element_ownerDocument_getElementById.textContent) === null || _element_ownerDocument_getElementById_textContent === void 0 ? void 0 : _element_ownerDocument_getElementById_textContent.trim();
  54768. } else if (isElementType(element, [
  54769. "button",
  54770. "input",
  54771. "meter",
  54772. "output",
  54773. "progress",
  54774. "select",
  54775. "textarea"
  54776. ]) && (!((_element_labels = element.labels) === null || _element_labels === void 0) && _element_labels.length))
  54777. label = Array.from(element.labels).map((el) => {
  54778. var _el_textContent;
  54779. return (_el_textContent = el.textContent) === null || _el_textContent === void 0 ? void 0 : _el_textContent.trim();
  54780. }).join("|");
  54781. else if (isElementType(element, "button")) {
  54782. var _element_textContent;
  54783. label = (_element_textContent = element.textContent) === null || _element_textContent === void 0 ? void 0 : _element_textContent.trim();
  54784. }
  54785. return label = label?.replace(/\n/g, " "), Number(label?.length) > 30 && (label = `${label?.substring(0, 29)}\u2026`), label ? `(label=${label})` : "";
  54786. }
  54787. function hasBitFlag(conf, flag3) {
  54788. return (conf & flag3) > 0;
  54789. }
  54790. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/pointer.js
  54791. function _define_property7(obj, key, value) {
  54792. return key in obj ? Object.defineProperty(obj, key, {
  54793. value,
  54794. enumerable: !0,
  54795. configurable: !0,
  54796. writable: !0
  54797. }) : obj[key] = value, obj;
  54798. }
  54799. var Pointer = class {
  54800. init(instance) {
  54801. let target = this.getTarget(instance), [, enter] = getTreeDiff(null, target), init16 = this.getEventInit();
  54802. return assertPointerEvents(instance, target), instance.dispatchUIEvent(target, "pointerover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "pointerenter", init16)), this;
  54803. }
  54804. move(instance, position2) {
  54805. let prevPosition = this.position, prevTarget = this.getTarget(instance);
  54806. if (this.position = position2, !isDifferentPointerPosition(prevPosition, position2))
  54807. return;
  54808. let nextTarget = this.getTarget(instance), init16 = this.getEventInit(-1), [leave, enter] = getTreeDiff(prevTarget, nextTarget);
  54809. return {
  54810. leave: () => {
  54811. hasPointerEvents(instance, prevTarget) && prevTarget !== nextTarget && (instance.dispatchUIEvent(prevTarget, "pointerout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "pointerleave", init16)));
  54812. },
  54813. enter: () => {
  54814. assertPointerEvents(instance, nextTarget), prevTarget !== nextTarget && (instance.dispatchUIEvent(nextTarget, "pointerover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "pointerenter", init16)));
  54815. },
  54816. move: () => {
  54817. instance.dispatchUIEvent(nextTarget, "pointermove", init16);
  54818. }
  54819. };
  54820. }
  54821. down(instance, button = 0) {
  54822. if (this.isDown)
  54823. return;
  54824. let target = this.getTarget(instance);
  54825. assertPointerEvents(instance, target), this.isDown = !0, this.isPrevented = !instance.dispatchUIEvent(target, "pointerdown", this.getEventInit(button));
  54826. }
  54827. up(instance, button = 0) {
  54828. if (!this.isDown)
  54829. return;
  54830. let target = this.getTarget(instance);
  54831. assertPointerEvents(instance, target), this.isPrevented = !1, this.isDown = !1, instance.dispatchUIEvent(target, "pointerup", this.getEventInit(button));
  54832. }
  54833. release(instance) {
  54834. let target = this.getTarget(instance), [leave] = getTreeDiff(target, null), init16 = this.getEventInit();
  54835. hasPointerEvents(instance, target) && (instance.dispatchUIEvent(target, "pointerout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "pointerleave", init16))), this.isCancelled = !0;
  54836. }
  54837. getTarget(instance) {
  54838. var _this_position_target;
  54839. return (_this_position_target = this.position.target) !== null && _this_position_target !== void 0 ? _this_position_target : instance.config.document.body;
  54840. }
  54841. getEventInit(button) {
  54842. return {
  54843. ...this.position.coords,
  54844. pointerId: this.pointerId,
  54845. pointerType: this.pointerType,
  54846. isPrimary: this.isPrimary,
  54847. button: getMouseEventButton(button),
  54848. buttons: this.buttons.getButtons()
  54849. };
  54850. }
  54851. constructor({ pointerId, pointerType, isPrimary }, buttons) {
  54852. _define_property7(this, "pointerId", void 0), _define_property7(this, "pointerType", void 0), _define_property7(this, "isPrimary", void 0), _define_property7(this, "buttons", void 0), _define_property7(this, "isMultitouch", !1), _define_property7(this, "isCancelled", !1), _define_property7(this, "isDown", !1), _define_property7(this, "isPrevented", !1), _define_property7(this, "position", {}), this.pointerId = pointerId, this.pointerType = pointerType, this.isPrimary = isPrimary, this.isMultitouch = !isPrimary, this.buttons = buttons;
  54853. }
  54854. };
  54855. // ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/index.js
  54856. function _define_property8(obj, key, value) {
  54857. return key in obj ? Object.defineProperty(obj, key, {
  54858. value,
  54859. enumerable: !0,
  54860. configurable: !0,
  54861. writable: !0
  54862. }) : obj[key] = value, obj;
  54863. }
  54864. var PointerHost = class {
  54865. isKeyPressed(keyDef) {
  54866. return this.devices.get(keyDef.pointerType).isPressed(keyDef);
  54867. }
  54868. async press(instance, keyDef, position2) {
  54869. this.devices.get(keyDef.pointerType).addPressed(keyDef), this.buttons.down(keyDef);
  54870. let pointerName = this.getPointerName(keyDef), pointer4 = keyDef.pointerType === "touch" ? this.pointers.new(pointerName, keyDef.pointerType, this.buttons) : this.pointers.get(pointerName);
  54871. pointer4.position = position2, pointer4.pointerType !== "touch" && (this.mouse.position = position2), pointer4.pointerType === "touch" && pointer4.init(instance), pointer4.down(instance, keyDef.button), pointer4.pointerType !== "touch" && this.mouse.down(instance, keyDef, pointer4.isPrevented);
  54872. }
  54873. async move(instance, pointerName, position2) {
  54874. let pointer4 = this.pointers.get(pointerName), pointermove = pointer4.move(instance, position2), mousemove = pointer4.pointerType === "touch" ? void 0 : this.mouse.move(instance, position2, pointer4.isPrevented);
  54875. pointermove?.leave(), mousemove?.leave(), pointermove?.enter(), mousemove?.enter(), pointermove?.move(), mousemove?.move();
  54876. }
  54877. async release(instance, keyDef, position2) {
  54878. let device = this.devices.get(keyDef.pointerType);
  54879. device.removePressed(keyDef), this.buttons.up(keyDef);
  54880. let pointer4 = this.pointers.get(this.getPointerName(keyDef)), isPrevented = pointer4.isPrevented;
  54881. if (pointer4.position = position2, pointer4.pointerType !== "touch" && (this.mouse.position = position2), device.countPressed === 0 && pointer4.up(instance, keyDef.button), pointer4.pointerType === "touch" && pointer4.release(instance), pointer4.pointerType === "touch" && !pointer4.isMultitouch) {
  54882. let mousemove = this.mouse.move(instance, position2, isPrevented);
  54883. mousemove?.leave(), mousemove?.enter(), mousemove?.move(), this.mouse.down(instance, keyDef, isPrevented);
  54884. }
  54885. if (!pointer4.isMultitouch) {
  54886. let mousemove = this.mouse.move(instance, position2, isPrevented);
  54887. mousemove?.leave(), mousemove?.enter(), mousemove?.move(), this.mouse.up(instance, keyDef, isPrevented);
  54888. }
  54889. }
  54890. getPointerName(keyDef) {
  54891. return keyDef.pointerType === "touch" ? keyDef.name : keyDef.pointerType;
  54892. }
  54893. getPreviousPosition(pointerName) {
  54894. return this.pointers.has(pointerName) ? this.pointers.get(pointerName).position : void 0;
  54895. }
  54896. resetClickCount() {
  54897. this.mouse.resetClickCount();
  54898. }
  54899. getMouseTarget(instance) {
  54900. var _this_mouse_position_target;
  54901. return (_this_mouse_position_target = this.mouse.position.target) !== null && _this_mouse_position_target !== void 0 ? _this_mouse_position_target : instance.config.document.body;
  54902. }
  54903. setMousePosition(position2) {
  54904. this.mouse.position = position2, this.pointers.get("mouse").position = position2;
  54905. }
  54906. constructor(system) {
  54907. _define_property8(this, "system", void 0), _define_property8(this, "mouse", void 0), _define_property8(this, "buttons", void 0), _define_property8(this, "devices", new class {
  54908. get(k) {
  54909. var _this_registry, _k, _;
  54910. return (_ = (_this_registry = this.registry)[_k = k]) !== null && _ !== void 0 ? _ : _this_registry[_k] = new Device();
  54911. }
  54912. constructor() {
  54913. _define_property8(this, "registry", {});
  54914. }
  54915. }()), _define_property8(this, "pointers", new class {
  54916. new(pointerName, pointerType, buttons) {
  54917. let isPrimary = pointerType !== "touch" || !Object.values(this.registry).some((p3) => p3.pointerType === "touch" && !p3.isCancelled);
  54918. return isPrimary || Object.values(this.registry).forEach((p3) => {
  54919. p3.pointerType === pointerType && !p3.isCancelled && (p3.isMultitouch = !0);
  54920. }), this.registry[pointerName] = new Pointer({
  54921. pointerId: this.nextId++,
  54922. pointerType,
  54923. isPrimary
  54924. }, buttons), this.registry[pointerName];
  54925. }
  54926. get(pointerName) {
  54927. if (!this.has(pointerName))
  54928. throw new Error(`Trying to access pointer "${pointerName}" which does not exist.`);
  54929. return this.registry[pointerName];
  54930. }
  54931. has(pointerName) {
  54932. return pointerName in this.registry;
  54933. }
  54934. constructor() {
  54935. _define_property8(this, "registry", {}), _define_property8(this, "nextId", 1);
  54936. }
  54937. }()), this.system = system, this.buttons = new Buttons(), this.mouse = new Mouse(), this.pointers.new("mouse", "mouse", this.buttons);
  54938. }
  54939. };
  54940. // ../../node_modules/@testing-library/user-event/dist/esm/system/index.js
  54941. function _define_property9(obj, key, value) {
  54942. return key in obj ? Object.defineProperty(obj, key, {
  54943. value,
  54944. enumerable: !0,
  54945. configurable: !0,
  54946. writable: !0
  54947. }) : obj[key] = value, obj;
  54948. }
  54949. var System = class {
  54950. getUIEventModifiers() {
  54951. return {
  54952. altKey: this.keyboard.modifiers.Alt,
  54953. ctrlKey: this.keyboard.modifiers.Control,
  54954. metaKey: this.keyboard.modifiers.Meta,
  54955. shiftKey: this.keyboard.modifiers.Shift,
  54956. modifierAltGraph: this.keyboard.modifiers.AltGraph,
  54957. modifierCapsLock: this.keyboard.modifiers.CapsLock,
  54958. modifierFn: this.keyboard.modifiers.Fn,
  54959. modifierFnLock: this.keyboard.modifiers.FnLock,
  54960. modifierNumLock: this.keyboard.modifiers.NumLock,
  54961. modifierScrollLock: this.keyboard.modifiers.ScrollLock,
  54962. modifierSymbol: this.keyboard.modifiers.Symbol,
  54963. modifierSymbolLock: this.keyboard.modifiers.SymbolLock
  54964. };
  54965. }
  54966. constructor() {
  54967. _define_property9(this, "keyboard", new KeyboardHost(this)), _define_property9(this, "pointer", new PointerHost(this));
  54968. }
  54969. };
  54970. // ../../node_modules/@testing-library/user-event/dist/esm/convenience/click.js
  54971. async function click(element) {
  54972. let pointerIn = [];
  54973. return this.config.skipHover || pointerIn.push({
  54974. target: element
  54975. }), pointerIn.push({
  54976. keys: "[MouseLeft]",
  54977. target: element
  54978. }), this.pointer(pointerIn);
  54979. }
  54980. async function dblClick(element) {
  54981. return this.pointer([
  54982. {
  54983. target: element
  54984. },
  54985. "[MouseLeft][MouseLeft]"
  54986. ]);
  54987. }
  54988. async function tripleClick(element) {
  54989. return this.pointer([
  54990. {
  54991. target: element
  54992. },
  54993. "[MouseLeft][MouseLeft][MouseLeft]"
  54994. ]);
  54995. }
  54996. // ../../node_modules/@testing-library/user-event/dist/esm/convenience/hover.js
  54997. async function hover(element) {
  54998. return this.pointer({
  54999. target: element
  55000. });
  55001. }
  55002. async function unhover(element) {
  55003. return assertPointerEvents(this, this.system.pointer.getMouseTarget(this)), this.pointer({
  55004. target: element.ownerDocument.body
  55005. });
  55006. }
  55007. // ../../node_modules/@testing-library/user-event/dist/esm/convenience/tab.js
  55008. async function tab({ shift } = {}) {
  55009. return this.keyboard(shift === !0 ? "{Shift>}{Tab}{/Shift}" : shift === !1 ? "[/ShiftLeft][/ShiftRight]{Tab}" : "{Tab}");
  55010. }
  55011. // ../../node_modules/@testing-library/user-event/dist/esm/utils/keyDef/readNextDescriptor.js
  55012. var bracketDict = (function(bracketDict2) {
  55013. return bracketDict2["{"] = "}", bracketDict2["["] = "]", bracketDict2;
  55014. })(bracketDict || {});
  55015. function readNextDescriptor(text, context) {
  55016. let pos = 0, startBracket = text[pos] in bracketDict ? text[pos] : "";
  55017. pos += startBracket.length;
  55018. let type5 = new RegExp(`^\\${startBracket}{2}`).test(text) ? "" : startBracket;
  55019. return {
  55020. type: type5,
  55021. ...type5 === "" ? readPrintableChar(text, pos, context) : readTag(text, pos, type5, context)
  55022. };
  55023. }
  55024. function readPrintableChar(text, pos, context) {
  55025. let descriptor = text[pos];
  55026. return assertDescriptor(descriptor, text, pos, context), pos += descriptor.length, {
  55027. consumedLength: pos,
  55028. descriptor,
  55029. releasePrevious: !1,
  55030. releaseSelf: !0,
  55031. repeat: 1
  55032. };
  55033. }
  55034. function readTag(text, pos, startBracket, context) {
  55035. var _text_slice_match, _text_slice_match1;
  55036. let releasePreviousModifier = text[pos] === "/" ? "/" : "";
  55037. pos += releasePreviousModifier.length;
  55038. let escapedDescriptor = startBracket === "{" && text[pos] === "\\";
  55039. pos += Number(escapedDescriptor);
  55040. let descriptor = escapedDescriptor ? text[pos] : (_text_slice_match = text.slice(pos).match(startBracket === "{" ? /^\w+|^[^}>/]/ : /^\w+/)) === null || _text_slice_match === void 0 ? void 0 : _text_slice_match[0];
  55041. assertDescriptor(descriptor, text, pos, context), pos += descriptor.length;
  55042. var _text_slice_match_;
  55043. let repeatModifier = (_text_slice_match_ = (_text_slice_match1 = text.slice(pos).match(/^>\d+/)) === null || _text_slice_match1 === void 0 ? void 0 : _text_slice_match1[0]) !== null && _text_slice_match_ !== void 0 ? _text_slice_match_ : "";
  55044. pos += repeatModifier.length;
  55045. let releaseSelfModifier = text[pos] === "/" || !repeatModifier && text[pos] === ">" ? text[pos] : "";
  55046. pos += releaseSelfModifier.length;
  55047. let expectedEndBracket = bracketDict[startBracket], endBracket = text[pos] === expectedEndBracket ? expectedEndBracket : "";
  55048. if (!endBracket)
  55049. throw new Error(getErrorMessage([
  55050. !repeatModifier && "repeat modifier",
  55051. !releaseSelfModifier && "release modifier",
  55052. `"${expectedEndBracket}"`
  55053. ].filter(Boolean).join(" or "), text[pos], text, context));
  55054. return pos += endBracket.length, {
  55055. consumedLength: pos,
  55056. descriptor,
  55057. releasePrevious: !!releasePreviousModifier,
  55058. repeat: repeatModifier ? Math.max(Number(repeatModifier.substr(1)), 1) : 1,
  55059. releaseSelf: hasReleaseSelf(releaseSelfModifier, repeatModifier)
  55060. };
  55061. }
  55062. function assertDescriptor(descriptor, text, pos, context) {
  55063. if (!descriptor)
  55064. throw new Error(getErrorMessage("key descriptor", text[pos], text, context));
  55065. }
  55066. function hasReleaseSelf(releaseSelfModifier, repeatModifier) {
  55067. if (releaseSelfModifier)
  55068. return releaseSelfModifier === "/";
  55069. if (repeatModifier)
  55070. return !1;
  55071. }
  55072. function getErrorMessage(expected, found, text, context) {
  55073. return `Expected ${expected} but found "${found ?? ""}" in "${text}"
  55074. See ${context === "pointer" ? "https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen" : "https://testing-library.com/docs/user-event/keyboard"}
  55075. for more information about how userEvent parses your input.`;
  55076. }
  55077. // ../../node_modules/@testing-library/user-event/dist/esm/keyboard/parseKeyDef.js
  55078. function parseKeyDef(keyboardMap, text) {
  55079. let defs = [];
  55080. do {
  55081. let { type: type5, descriptor, consumedLength, releasePrevious, releaseSelf = !0, repeat } = readNextDescriptor(text, "keyboard");
  55082. var _keyboardMap_find;
  55083. let keyDef = (_keyboardMap_find = keyboardMap.find((def) => {
  55084. if (type5 === "[") {
  55085. var _def_code;
  55086. return ((_def_code = def.code) === null || _def_code === void 0 ? void 0 : _def_code.toLowerCase()) === descriptor.toLowerCase();
  55087. } else if (type5 === "{") {
  55088. var _def_key;
  55089. return ((_def_key = def.key) === null || _def_key === void 0 ? void 0 : _def_key.toLowerCase()) === descriptor.toLowerCase();
  55090. }
  55091. return def.key === descriptor;
  55092. })) !== null && _keyboardMap_find !== void 0 ? _keyboardMap_find : {
  55093. key: "Unknown",
  55094. code: "Unknown",
  55095. [type5 === "[" ? "code" : "key"]: descriptor
  55096. };
  55097. defs.push({
  55098. keyDef,
  55099. releasePrevious,
  55100. releaseSelf,
  55101. repeat
  55102. }), text = text.slice(consumedLength);
  55103. } while (text);
  55104. return defs;
  55105. }
  55106. // ../../node_modules/@testing-library/user-event/dist/esm/keyboard/index.js
  55107. async function keyboard(text) {
  55108. let actions = parseKeyDef(this.config.keyboardMap, text);
  55109. for (let i = 0; i < actions.length; i++)
  55110. await wait(this.config), await keyboardAction(this, actions[i]);
  55111. }
  55112. async function keyboardAction(instance, { keyDef, releasePrevious, releaseSelf, repeat }) {
  55113. let { system } = instance;
  55114. if (system.keyboard.isKeyPressed(keyDef) && await system.keyboard.keyup(instance, keyDef), !releasePrevious) {
  55115. for (let i = 1; i <= repeat; i++)
  55116. await system.keyboard.keydown(instance, keyDef), i < repeat && await wait(instance.config);
  55117. releaseSelf && await system.keyboard.keyup(instance, keyDef);
  55118. }
  55119. }
  55120. async function releaseAllKeys(instance) {
  55121. for (let k of instance.system.keyboard.getPressedKeys())
  55122. await instance.system.keyboard.keyup(instance, k);
  55123. }
  55124. // ../../node_modules/@testing-library/user-event/dist/esm/document/copySelection.js
  55125. function copySelection(target) {
  55126. let data = hasOwnSelection(target) ? {
  55127. "text/plain": readSelectedValueFromInput(target)
  55128. } : {
  55129. "text/plain": String(target.ownerDocument.getSelection())
  55130. }, dt = createDataTransfer(getWindow(target));
  55131. for (let type5 in data)
  55132. data[type5] && dt.setData(type5, data[type5]);
  55133. return dt;
  55134. }
  55135. function readSelectedValueFromInput(target) {
  55136. let sel = getUISelection(target);
  55137. return getUIValue(target).substring(sel.startOffset, sel.endOffset);
  55138. }
  55139. // ../../node_modules/@testing-library/user-event/dist/esm/clipboard/copy.js
  55140. async function copy2() {
  55141. let doc = this.config.document;
  55142. var _doc_activeElement;
  55143. let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : (
  55144. /* istanbul ignore next */
  55145. doc.body
  55146. ), clipboardData = copySelection(target);
  55147. if (clipboardData.items.length !== 0)
  55148. return this.dispatchUIEvent(target, "copy", {
  55149. clipboardData
  55150. }) && this.config.writeToClipboard && await writeDataTransferToClipboard(doc, clipboardData), clipboardData;
  55151. }
  55152. // ../../node_modules/@testing-library/user-event/dist/esm/clipboard/cut.js
  55153. async function cut() {
  55154. let doc = this.config.document;
  55155. var _doc_activeElement;
  55156. let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : (
  55157. /* istanbul ignore next */
  55158. doc.body
  55159. ), clipboardData = copySelection(target);
  55160. if (clipboardData.items.length !== 0)
  55161. return this.dispatchUIEvent(target, "cut", {
  55162. clipboardData
  55163. }) && this.config.writeToClipboard && await writeDataTransferToClipboard(target.ownerDocument, clipboardData), clipboardData;
  55164. }
  55165. // ../../node_modules/@testing-library/user-event/dist/esm/clipboard/paste.js
  55166. async function paste(clipboardData) {
  55167. let doc = this.config.document;
  55168. var _doc_activeElement;
  55169. let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : (
  55170. /* istanbul ignore next */
  55171. doc.body
  55172. );
  55173. var _ref;
  55174. let dataTransfer = (_ref = typeof clipboardData == "string" ? getClipboardDataFromString(doc, clipboardData) : clipboardData) !== null && _ref !== void 0 ? _ref : await readDataTransferFromClipboard(doc).catch(() => {
  55175. throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.");
  55176. });
  55177. this.dispatchUIEvent(target, "paste", {
  55178. clipboardData: dataTransfer
  55179. });
  55180. }
  55181. function getClipboardDataFromString(doc, text) {
  55182. let dt = createDataTransfer(getWindow(doc));
  55183. return dt.setData("text", text), dt;
  55184. }
  55185. // ../../node_modules/@testing-library/user-event/dist/esm/pointer/parseKeyDef.js
  55186. function parseKeyDef2(pointerMap, keys3) {
  55187. let defs = [];
  55188. do {
  55189. let { descriptor, consumedLength, releasePrevious, releaseSelf = !0 } = readNextDescriptor(keys3, "pointer"), keyDef = pointerMap.find((p3) => p3.name === descriptor);
  55190. keyDef && defs.push({
  55191. keyDef,
  55192. releasePrevious,
  55193. releaseSelf
  55194. }), keys3 = keys3.slice(consumedLength);
  55195. } while (keys3);
  55196. return defs;
  55197. }
  55198. // ../../node_modules/@testing-library/user-event/dist/esm/pointer/index.js
  55199. async function pointer(input2) {
  55200. let { pointerMap } = this.config, actions = [];
  55201. (Array.isArray(input2) ? input2 : [
  55202. input2
  55203. ]).forEach((actionInput) => {
  55204. typeof actionInput == "string" ? actions.push(...parseKeyDef2(pointerMap, actionInput)) : "keys" in actionInput ? actions.push(...parseKeyDef2(pointerMap, actionInput.keys).map((i) => ({
  55205. ...actionInput,
  55206. ...i
  55207. }))) : actions.push(actionInput);
  55208. });
  55209. for (let i = 0; i < actions.length; i++)
  55210. await wait(this.config), await pointerAction(this, actions[i]);
  55211. this.system.pointer.resetClickCount();
  55212. }
  55213. async function pointerAction(instance, action2) {
  55214. var _previousPosition_caret, _previousPosition_caret1;
  55215. let pointerName = "pointerName" in action2 && action2.pointerName ? action2.pointerName : "keyDef" in action2 ? instance.system.pointer.getPointerName(action2.keyDef) : "mouse", previousPosition = instance.system.pointer.getPreviousPosition(pointerName);
  55216. var _action_target, _action_coords, _action_node, _action_offset;
  55217. let position2 = {
  55218. target: (_action_target = action2.target) !== null && _action_target !== void 0 ? _action_target : getPrevTarget(instance, previousPosition),
  55219. coords: (_action_coords = action2.coords) !== null && _action_coords !== void 0 ? _action_coords : previousPosition?.coords,
  55220. caret: {
  55221. node: (_action_node = action2.node) !== null && _action_node !== void 0 ? _action_node : hasCaretPosition(action2) || previousPosition == null || (_previousPosition_caret = previousPosition.caret) === null || _previousPosition_caret === void 0 ? void 0 : _previousPosition_caret.node,
  55222. offset: (_action_offset = action2.offset) !== null && _action_offset !== void 0 ? _action_offset : hasCaretPosition(action2) || previousPosition == null || (_previousPosition_caret1 = previousPosition.caret) === null || _previousPosition_caret1 === void 0 ? void 0 : _previousPosition_caret1.offset
  55223. }
  55224. };
  55225. "keyDef" in action2 ? (instance.system.pointer.isKeyPressed(action2.keyDef) && (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.release(instance, action2.keyDef, position2)), action2.releasePrevious || (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.press(instance, action2.keyDef, position2), action2.releaseSelf && (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.release(instance, action2.keyDef, position2)))) : (setLevelRef(instance, ApiLevel.Trigger), await instance.system.pointer.move(instance, pointerName, position2));
  55226. }
  55227. function hasCaretPosition(action2) {
  55228. var _action_target, _ref;
  55229. return !!((_ref = (_action_target = action2.target) !== null && _action_target !== void 0 ? _action_target : action2.node) !== null && _ref !== void 0 ? _ref : action2.offset !== void 0);
  55230. }
  55231. function getPrevTarget(instance, position2) {
  55232. if (!position2)
  55233. throw new Error("This pointer has no previous position. Provide a target property!");
  55234. var _position_target;
  55235. return (_position_target = position2.target) !== null && _position_target !== void 0 ? _position_target : instance.config.document.body;
  55236. }
  55237. // ../../node_modules/@testing-library/user-event/dist/esm/utility/clear.js
  55238. async function clear(element) {
  55239. if (!isEditable(element) || isDisabled2(element))
  55240. throw new Error("clear()` is only supported on editable elements.");
  55241. if (focusElement(element), element.ownerDocument.activeElement !== element)
  55242. throw new Error("The element to be cleared could not be focused.");
  55243. if (selectAll(element), !isAllSelected(element))
  55244. throw new Error("The element content to be cleared could not be selected.");
  55245. input(this, element, "", "deleteContentBackward");
  55246. }
  55247. // ../../node_modules/@testing-library/user-event/dist/esm/utility/selectOptions.js
  55248. async function selectOptions(select, values) {
  55249. return selectOptionsBase.call(this, !0, select, values);
  55250. }
  55251. async function deselectOptions(select, values) {
  55252. return selectOptionsBase.call(this, !1, select, values);
  55253. }
  55254. async function selectOptionsBase(newValue, select, values) {
  55255. if (!newValue && !select.multiple)
  55256. throw getConfig2().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.", select);
  55257. let valArray = Array.isArray(values) ? values : [
  55258. values
  55259. ], allOptions = Array.from(select.querySelectorAll('option, [role="option"]')), selectedOptions = valArray.map((val) => {
  55260. if (typeof val != "string" && allOptions.includes(val))
  55261. return val;
  55262. {
  55263. let matchingOption = allOptions.find((o) => o.value === val || o.innerHTML === val);
  55264. if (matchingOption)
  55265. return matchingOption;
  55266. throw getConfig2().getElementError(`Value "${String(val)}" not found in options`, select);
  55267. }
  55268. }).filter((option) => !isDisabled2(option));
  55269. if (isDisabled2(select) || !selectedOptions.length) return;
  55270. let selectOption = (option) => {
  55271. option.selected = newValue, this.dispatchUIEvent(select, "input", {
  55272. bubbles: !0,
  55273. cancelable: !1,
  55274. composed: !0
  55275. }), this.dispatchUIEvent(select, "change");
  55276. };
  55277. if (isElementType(select, "select"))
  55278. if (select.multiple)
  55279. for (let option of selectedOptions) {
  55280. let withPointerEvents = this.config.pointerEventsCheck === 0 ? !0 : hasPointerEvents(this, option);
  55281. withPointerEvents && (this.dispatchUIEvent(option, "pointerover"), this.dispatchUIEvent(select, "pointerenter"), this.dispatchUIEvent(option, "mouseover"), this.dispatchUIEvent(select, "mouseenter"), this.dispatchUIEvent(option, "pointermove"), this.dispatchUIEvent(option, "mousemove"), this.dispatchUIEvent(option, "pointerdown"), this.dispatchUIEvent(option, "mousedown")), focusElement(select), withPointerEvents && (this.dispatchUIEvent(option, "pointerup"), this.dispatchUIEvent(option, "mouseup")), selectOption(option), withPointerEvents && this.dispatchUIEvent(option, "click"), await wait(this.config);
  55282. }
  55283. else if (selectedOptions.length === 1) {
  55284. let withPointerEvents = this.config.pointerEventsCheck === 0 ? !0 : hasPointerEvents(this, select);
  55285. withPointerEvents ? await this.click(select) : focusElement(select), selectOption(selectedOptions[0]), withPointerEvents && (this.dispatchUIEvent(select, "pointerover"), this.dispatchUIEvent(select, "pointerenter"), this.dispatchUIEvent(select, "mouseover"), this.dispatchUIEvent(select, "mouseenter"), this.dispatchUIEvent(select, "pointerup"), this.dispatchUIEvent(select, "mouseup"), this.dispatchUIEvent(select, "click")), await wait(this.config);
  55286. } else
  55287. throw getConfig2().getElementError("Cannot select multiple options on a non-multiple select", select);
  55288. else if (select.getAttribute("role") === "listbox")
  55289. for (let option of selectedOptions)
  55290. await this.click(option), await this.unhover(option);
  55291. else
  55292. throw getConfig2().getElementError("Cannot select options on elements that are neither select nor listbox elements", select);
  55293. }
  55294. // ../../node_modules/@testing-library/user-event/dist/esm/utility/type.js
  55295. async function type3(element, text, { skipClick = this.config.skipClick, skipAutoClose = this.config.skipAutoClose, initialSelectionStart, initialSelectionEnd } = {}) {
  55296. element.disabled || (skipClick || await this.click(element), initialSelectionStart !== void 0 && setSelectionRange(element, initialSelectionStart, initialSelectionEnd ?? initialSelectionStart), await this.keyboard(text), skipAutoClose || await releaseAllKeys(this));
  55297. }
  55298. // ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/setFiles.js
  55299. var fakeFiles = Symbol("files and value properties are mocked");
  55300. function restoreProperty(obj, prop, descriptor) {
  55301. descriptor ? Object.defineProperty(obj, prop, descriptor) : delete obj[prop];
  55302. }
  55303. function setFiles(el, files) {
  55304. var _el_fakeFiles;
  55305. (_el_fakeFiles = el[fakeFiles]) === null || _el_fakeFiles === void 0 || _el_fakeFiles.restore();
  55306. let typeDescr = Object.getOwnPropertyDescriptor(el, "type"), valueDescr = Object.getOwnPropertyDescriptor(el, "value"), filesDescr = Object.getOwnPropertyDescriptor(el, "files");
  55307. function restore() {
  55308. restoreProperty(el, "type", typeDescr), restoreProperty(el, "value", valueDescr), restoreProperty(el, "files", filesDescr);
  55309. }
  55310. el[fakeFiles] = {
  55311. restore
  55312. }, Object.defineProperties(el, {
  55313. files: {
  55314. configurable: !0,
  55315. get: () => files
  55316. },
  55317. value: {
  55318. configurable: !0,
  55319. get: () => files.length ? `C:\\fakepath\\${files[0].name}` : "",
  55320. set(v) {
  55321. if (v === "")
  55322. restore();
  55323. else {
  55324. var _valueDescr_set;
  55325. valueDescr == null || (_valueDescr_set = valueDescr.set) === null || _valueDescr_set === void 0 || _valueDescr_set.call(el, v);
  55326. }
  55327. }
  55328. },
  55329. type: {
  55330. configurable: !0,
  55331. get: () => "file",
  55332. set(v) {
  55333. v !== "file" && (restore(), el.type = v);
  55334. }
  55335. }
  55336. });
  55337. }
  55338. // ../../node_modules/@testing-library/user-event/dist/esm/utility/upload.js
  55339. async function upload(element, fileOrFiles) {
  55340. let input2 = isElementType(element, "label") ? element.control : element;
  55341. if (!input2 || !isElementType(input2, "input", {
  55342. type: "file"
  55343. }))
  55344. throw new TypeError(`The ${input2 === element ? "given" : "associated"} ${input2?.tagName} element does not accept file uploads`);
  55345. if (isDisabled2(element)) return;
  55346. let files = (Array.isArray(fileOrFiles) ? fileOrFiles : [
  55347. fileOrFiles
  55348. ]).filter((file) => !this.config.applyAccept || isAcceptableFile(file, input2.accept)).slice(0, input2.multiple ? void 0 : 1), fileDialog = () => {
  55349. var _input_files;
  55350. files.length === ((_input_files = input2.files) === null || _input_files === void 0 ? void 0 : _input_files.length) && files.every((f4, i) => {
  55351. var _input_files2;
  55352. return f4 === ((_input_files2 = input2.files) === null || _input_files2 === void 0 ? void 0 : _input_files2.item(i));
  55353. }) || (setFiles(input2, createFileList(getWindow(element), files)), this.dispatchUIEvent(input2, "input"), this.dispatchUIEvent(input2, "change"));
  55354. };
  55355. input2.addEventListener("fileDialog", fileDialog), await this.click(element), input2.removeEventListener("fileDialog", fileDialog);
  55356. }
  55357. function normalize3(nameOrType) {
  55358. return nameOrType.toLowerCase().replace(/(\.|\/)jpg\b/g, "$1jpeg");
  55359. }
  55360. function isAcceptableFile(file, accept) {
  55361. if (!accept)
  55362. return !0;
  55363. let wildcards = [
  55364. "audio/*",
  55365. "image/*",
  55366. "video/*"
  55367. ];
  55368. return normalize3(accept).trim().split(/\s*,\s*/).some((acceptToken) => acceptToken.startsWith(".") ? normalize3(file.name).endsWith(acceptToken) : wildcards.includes(acceptToken) ? normalize3(file.type).startsWith(acceptToken.replace("*", "")) : normalize3(file.type) === acceptToken);
  55369. }
  55370. // ../../node_modules/@testing-library/user-event/dist/esm/setup/api.js
  55371. var userEventApi = {
  55372. click,
  55373. dblClick,
  55374. tripleClick,
  55375. hover,
  55376. unhover,
  55377. tab,
  55378. keyboard,
  55379. copy: copy2,
  55380. cut,
  55381. paste,
  55382. pointer,
  55383. clear,
  55384. deselectOptions,
  55385. selectOptions,
  55386. type: type3,
  55387. upload
  55388. };
  55389. // ../../node_modules/@testing-library/user-event/dist/esm/setup/wrapAsync.js
  55390. function wrapAsync(implementation) {
  55391. return getConfig2().asyncWrapper(implementation);
  55392. }
  55393. // ../../node_modules/@testing-library/user-event/dist/esm/setup/setup.js
  55394. var defaultOptionsDirect = {
  55395. applyAccept: !0,
  55396. autoModify: !0,
  55397. delay: 0,
  55398. document: globalThis.document,
  55399. keyboardMap: defaultKeyMap,
  55400. pointerMap: defaultKeyMap2,
  55401. pointerEventsCheck: PointerEventsCheckLevel.EachApiCall,
  55402. skipAutoClose: !1,
  55403. skipClick: !1,
  55404. skipHover: !1,
  55405. writeToClipboard: !1,
  55406. advanceTimers: () => Promise.resolve()
  55407. }, defaultOptionsSetup = {
  55408. ...defaultOptionsDirect,
  55409. writeToClipboard: !0
  55410. };
  55411. function createConfig(options = {}, defaults = defaultOptionsSetup, node2) {
  55412. let document13 = getDocument2(options, node2, defaults);
  55413. return {
  55414. ...defaults,
  55415. ...options,
  55416. document: document13
  55417. };
  55418. }
  55419. function setupMain(options = {}) {
  55420. let config4 = createConfig(options);
  55421. prepareDocument(config4.document), patchFocus(getWindow(config4.document).HTMLElement);
  55422. var _config_document_defaultView;
  55423. let view = (_config_document_defaultView = config4.document.defaultView) !== null && _config_document_defaultView !== void 0 ? _config_document_defaultView : (
  55424. /* istanbul ignore next */
  55425. globalThis.window
  55426. );
  55427. return attachClipboardStubToView(view), createInstance(config4).api;
  55428. }
  55429. function setupDirect({ keyboardState, pointerState, ...options } = {}, node2) {
  55430. let config4 = createConfig(options, defaultOptionsDirect, node2);
  55431. prepareDocument(config4.document), patchFocus(getWindow(config4.document).HTMLElement);
  55432. var _ref;
  55433. let system = (_ref = pointerState ?? keyboardState) !== null && _ref !== void 0 ? _ref : new System();
  55434. return {
  55435. api: createInstance(config4, system).api,
  55436. system
  55437. };
  55438. }
  55439. function setupSub(options) {
  55440. return createInstance({
  55441. ...this.config,
  55442. ...options
  55443. }, this.system).api;
  55444. }
  55445. function wrapAndBindImpl(instance, impl) {
  55446. function method(...args) {
  55447. return setLevelRef(instance, ApiLevel.Call), wrapAsync(() => impl.apply(instance, args).then(async (ret) => (await wait(instance.config), ret)));
  55448. }
  55449. return Object.defineProperty(method, "name", {
  55450. get: () => impl.name
  55451. }), method;
  55452. }
  55453. function createInstance(config4, system = new System()) {
  55454. let instance = {};
  55455. return Object.assign(instance, {
  55456. config: config4,
  55457. dispatchEvent: dispatchEvent.bind(instance),
  55458. dispatchUIEvent: dispatchUIEvent.bind(instance),
  55459. system,
  55460. levelRefs: {},
  55461. ...userEventApi
  55462. }), {
  55463. instance,
  55464. api: {
  55465. ...Object.fromEntries(Object.entries(userEventApi).map(([name, api]) => [
  55466. name,
  55467. wrapAndBindImpl(instance, api)
  55468. ])),
  55469. setup: setupSub.bind(instance)
  55470. }
  55471. };
  55472. }
  55473. function getDocument2(options, node2, defaults) {
  55474. var _options_document, _ref;
  55475. return (_ref = (_options_document = options.document) !== null && _options_document !== void 0 ? _options_document : node2 && getDocumentFromNode(node2)) !== null && _ref !== void 0 ? _ref : defaults.document;
  55476. }
  55477. // ../../node_modules/@testing-library/user-event/dist/esm/setup/directApi.js
  55478. var directApi_exports = {};
  55479. __export(directApi_exports, {
  55480. clear: () => clear2,
  55481. click: () => click2,
  55482. copy: () => copy3,
  55483. cut: () => cut2,
  55484. dblClick: () => dblClick2,
  55485. deselectOptions: () => deselectOptions2,
  55486. hover: () => hover2,
  55487. keyboard: () => keyboard2,
  55488. paste: () => paste2,
  55489. pointer: () => pointer2,
  55490. selectOptions: () => selectOptions2,
  55491. tab: () => tab2,
  55492. tripleClick: () => tripleClick2,
  55493. type: () => type4,
  55494. unhover: () => unhover2,
  55495. upload: () => upload2
  55496. });
  55497. function clear2(element) {
  55498. return setupDirect().api.clear(element);
  55499. }
  55500. function click2(element, options = {}) {
  55501. return setupDirect(options, element).api.click(element);
  55502. }
  55503. function copy3(options = {}) {
  55504. return setupDirect(options).api.copy();
  55505. }
  55506. function cut2(options = {}) {
  55507. return setupDirect(options).api.cut();
  55508. }
  55509. function dblClick2(element, options = {}) {
  55510. return setupDirect(options).api.dblClick(element);
  55511. }
  55512. function deselectOptions2(select, values, options = {}) {
  55513. return setupDirect(options).api.deselectOptions(select, values);
  55514. }
  55515. function hover2(element, options = {}) {
  55516. return setupDirect(options).api.hover(element);
  55517. }
  55518. async function keyboard2(text, options = {}) {
  55519. let { api, system } = setupDirect(options);
  55520. return api.keyboard(text).then(() => system);
  55521. }
  55522. async function pointer2(input2, options = {}) {
  55523. let { api, system } = setupDirect(options);
  55524. return api.pointer(input2).then(() => system);
  55525. }
  55526. function paste2(clipboardData, options) {
  55527. return setupDirect(options).api.paste(clipboardData);
  55528. }
  55529. function selectOptions2(select, values, options = {}) {
  55530. return setupDirect(options).api.selectOptions(select, values);
  55531. }
  55532. function tripleClick2(element, options = {}) {
  55533. return setupDirect(options).api.tripleClick(element);
  55534. }
  55535. function type4(element, text, options = {}) {
  55536. return setupDirect(options, element).api.type(element, text, options);
  55537. }
  55538. function unhover2(element, options = {}) {
  55539. let { api, system } = setupDirect(options);
  55540. return system.pointer.setMousePosition({
  55541. target: element
  55542. }), api.unhover(element);
  55543. }
  55544. function upload2(element, fileOrFiles, options = {}) {
  55545. return setupDirect(options).api.upload(element, fileOrFiles);
  55546. }
  55547. function tab2(options = {}) {
  55548. return setupDirect().api.tab(options);
  55549. }
  55550. // ../../node_modules/@testing-library/user-event/dist/esm/setup/index.js
  55551. var userEvent = {
  55552. ...directApi_exports,
  55553. setup: setupMain
  55554. };
  55555. // src/test/testing-library.ts
  55556. init_client_logger();
  55557. init_esm();
  55558. var testingLibrary = instrument(
  55559. { ...dom_esm_exports },
  55560. {
  55561. getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"),
  55562. intercept: (method, path) => path[0] === "fireEvent" || method.startsWith("find") || method.startsWith("waitFor")
  55563. }
  55564. );
  55565. testingLibrary.screen = new Proxy(testingLibrary.screen, {
  55566. get(target, prop, receiver) {
  55567. return typeof window < "u" && globalThis.location?.href?.includes("viewMode=docs") && once.warn(dedent`
  55568. You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
  55569. More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
  55570. `), Reflect.get(target, prop, receiver);
  55571. }
  55572. });
  55573. var {
  55574. buildQueries: buildQueries2,
  55575. configure: configure2,
  55576. createEvent: createEvent3,
  55577. fireEvent: fireEvent2,
  55578. findAllByAltText: findAllByAltText2,
  55579. findAllByDisplayValue: findAllByDisplayValue2,
  55580. findAllByLabelText: findAllByLabelText2,
  55581. findAllByPlaceholderText: findAllByPlaceholderText2,
  55582. findAllByRole: findAllByRole2,
  55583. findAllByTestId: findAllByTestId2,
  55584. findAllByText: findAllByText2,
  55585. findAllByTitle: findAllByTitle2,
  55586. findByAltText: findByAltText2,
  55587. findByDisplayValue: findByDisplayValue2,
  55588. findByLabelText: findByLabelText2,
  55589. findByPlaceholderText: findByPlaceholderText2,
  55590. findByRole: findByRole2,
  55591. findByTestId: findByTestId2,
  55592. findByText: findByText2,
  55593. findByTitle: findByTitle2,
  55594. getAllByAltText: getAllByAltText2,
  55595. getAllByDisplayValue: getAllByDisplayValue2,
  55596. getAllByLabelText: getAllByLabelText2,
  55597. getAllByPlaceholderText: getAllByPlaceholderText2,
  55598. getAllByRole: getAllByRole2,
  55599. getAllByTestId: getAllByTestId2,
  55600. getAllByText: getAllByText2,
  55601. getAllByTitle: getAllByTitle2,
  55602. getByAltText: getByAltText2,
  55603. getByDisplayValue: getByDisplayValue2,
  55604. getByLabelText: getByLabelText2,
  55605. getByPlaceholderText: getByPlaceholderText2,
  55606. getByRole: getByRole2,
  55607. getByTestId: getByTestId2,
  55608. getByText: getByText2,
  55609. getByTitle: getByTitle2,
  55610. getConfig: getConfig3,
  55611. getDefaultNormalizer: getDefaultNormalizer2,
  55612. getElementError: getElementError2,
  55613. getNodeText: getNodeText2,
  55614. getQueriesForElement: getQueriesForElement2,
  55615. getRoles: getRoles2,
  55616. getSuggestedQuery: getSuggestedQuery2,
  55617. isInaccessible: isInaccessible2,
  55618. logDOM: logDOM2,
  55619. logRoles: logRoles2,
  55620. prettyDOM: prettyDOM2,
  55621. queries: queries2,
  55622. queryAllByAltText: queryAllByAltText2,
  55623. queryAllByAttribute: queryAllByAttribute2,
  55624. queryAllByDisplayValue: queryAllByDisplayValue2,
  55625. queryAllByLabelText: queryAllByLabelText2,
  55626. queryAllByPlaceholderText: queryAllByPlaceholderText2,
  55627. queryAllByRole: queryAllByRole2,
  55628. queryAllByTestId: queryAllByTestId2,
  55629. queryAllByText: queryAllByText2,
  55630. queryAllByTitle: queryAllByTitle2,
  55631. queryByAltText: queryByAltText2,
  55632. queryByAttribute: queryByAttribute2,
  55633. queryByDisplayValue: queryByDisplayValue2,
  55634. queryByLabelText: queryByLabelText2,
  55635. queryByPlaceholderText: queryByPlaceholderText2,
  55636. queryByRole: queryByRole2,
  55637. queryByTestId: queryByTestId2,
  55638. queryByText: queryByText2,
  55639. queryByTitle: queryByTitle2,
  55640. queryHelpers: queryHelpers2,
  55641. screen: screen2,
  55642. waitFor: waitFor2,
  55643. waitForElementToBeRemoved: waitForElementToBeRemoved2,
  55644. within,
  55645. prettyFormat: prettyFormat2
  55646. } = testingLibrary, uninstrumentedUserEvent = userEvent, { userEvent: userEvent2 } = instrument(
  55647. { userEvent },
  55648. { intercept: !0, getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper") }
  55649. );
  55650. // src/test/index.ts
  55651. var { expect: expect3 } = instrument(
  55652. { expect: expect2 },
  55653. {
  55654. getKeys: (obj, depth) => {
  55655. if ("constructor" in obj && obj.constructor === Assertion) {
  55656. let privateApi = ["assert", "__methods", "__flags", "_obj"], keys3 = Object.keys(Object.getPrototypeOf(obj)).filter(
  55657. (it) => !privateApi.includes(it)
  55658. );
  55659. return depth > 2 ? keys3 : [...keys3, "not"];
  55660. }
  55661. return "any" in obj ? Object.keys(obj).filter((it) => it !== "any") : Object.keys(obj);
  55662. },
  55663. mutate: !0,
  55664. intercept: (method) => method !== "expect"
  55665. }
  55666. ), sb = {
  55667. mock: () => {
  55668. }
  55669. };
  55670. // src/backgrounds/constants.ts
  55671. var ADDON_ID3 = "storybook/background", PARAM_KEY = "backgrounds";
  55672. var EVENTS2 = {
  55673. UPDATE: `${ADDON_ID3}/update`
  55674. };
  55675. // src/backgrounds/defaults.ts
  55676. var DEFAULT_BACKGROUNDS = {
  55677. light: { name: "light", value: "#F8F8F8" },
  55678. dark: { name: "dark", value: "#333" }
  55679. };
  55680. // src/backgrounds/utils.ts
  55681. var { document: document7 } = globalThis, isReduceMotionEnabled = () => globalThis?.matchMedia ? !!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches : !1, clearStyles = (selector) => {
  55682. (Array.isArray(selector) ? selector : [selector]).forEach(clearStyle);
  55683. }, clearStyle = (selector) => {
  55684. if (!document7)
  55685. return;
  55686. let element = document7.getElementById(selector);
  55687. element && element.parentElement && element.parentElement.removeChild(element);
  55688. }, addGridStyle = (selector, css3) => {
  55689. if (!document7)
  55690. return;
  55691. let existingStyle = document7.getElementById(selector);
  55692. if (existingStyle)
  55693. existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3);
  55694. else {
  55695. let style = document7.createElement("style");
  55696. style.setAttribute("id", selector), style.innerHTML = css3, document7.head.appendChild(style);
  55697. }
  55698. }, addBackgroundStyle = (selector, css3, storyId) => {
  55699. if (!document7)
  55700. return;
  55701. let existingStyle = document7.getElementById(selector);
  55702. if (existingStyle)
  55703. existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3);
  55704. else {
  55705. let style = document7.createElement("style");
  55706. style.setAttribute("id", selector), style.innerHTML = css3;
  55707. let gridStyleSelector = `addon-backgrounds-grid${storyId ? `-docs-${storyId}` : ""}`, existingGridStyle = document7.getElementById(gridStyleSelector);
  55708. existingGridStyle ? existingGridStyle.parentElement?.insertBefore(style, existingGridStyle) : document7.head.appendChild(style);
  55709. }
  55710. };
  55711. // src/backgrounds/decorator.ts
  55712. var defaultGrid = {
  55713. cellSize: 100,
  55714. cellAmount: 10,
  55715. opacity: 0.8
  55716. }, BG_SELECTOR_BASE = "addon-backgrounds", GRID_SELECTOR_BASE = "addon-backgrounds-grid", transitionStyle = isReduceMotionEnabled() ? "" : "transition: background-color 0.3s;", withBackgroundAndGrid = (StoryFn, context) => {
  55717. let { globals = {}, parameters: parameters2 = {}, viewMode, id } = context, {
  55718. options = DEFAULT_BACKGROUNDS,
  55719. disable,
  55720. grid = defaultGrid
  55721. } = parameters2[PARAM_KEY] || {}, data = globals[PARAM_KEY] || {}, backgroundName = typeof data == "string" ? data : data?.value, item = backgroundName ? options[backgroundName] : void 0, value = typeof item == "string" ? item : item?.value || "transparent", showGrid = typeof data == "string" ? !1 : data.grid || !1, shownBackground = !!item && !disable, backgroundSelector = viewMode === "docs" ? `#anchor--${id} .docs-story, #anchor--primary--${id} .docs-story` : ".sb-show-main", gridSelector = viewMode === "docs" ? `#anchor--${id} .docs-story, #anchor--primary--${id} .docs-story` : ".sb-show-main", isLayoutPadded = parameters2.layout === void 0 || parameters2.layout === "padded", defaultOffset = viewMode === "docs" ? 20 : isLayoutPadded ? 16 : 0, { cellAmount, cellSize, opacity, offsetX = defaultOffset, offsetY = defaultOffset } = grid, backgroundSelectorId = viewMode === "docs" ? `${BG_SELECTOR_BASE}-docs-${id}` : `${BG_SELECTOR_BASE}-color`, backgroundTarget = viewMode === "docs" ? id : null;
  55722. useEffect6(() => {
  55723. let backgroundStyles = `
  55724. ${backgroundSelector} {
  55725. background: ${value} !important;
  55726. ${transitionStyle}
  55727. }`;
  55728. if (!shownBackground) {
  55729. clearStyles(backgroundSelectorId);
  55730. return;
  55731. }
  55732. addBackgroundStyle(backgroundSelectorId, backgroundStyles, backgroundTarget);
  55733. }, [backgroundSelector, backgroundSelectorId, backgroundTarget, shownBackground, value]);
  55734. let gridSelectorId = viewMode === "docs" ? `${GRID_SELECTOR_BASE}-docs-${id}` : `${GRID_SELECTOR_BASE}`;
  55735. return useEffect6(() => {
  55736. if (!showGrid) {
  55737. clearStyles(gridSelectorId);
  55738. return;
  55739. }
  55740. let gridSize = [
  55741. `${cellSize * cellAmount}px ${cellSize * cellAmount}px`,
  55742. `${cellSize * cellAmount}px ${cellSize * cellAmount}px`,
  55743. `${cellSize}px ${cellSize}px`,
  55744. `${cellSize}px ${cellSize}px`
  55745. ].join(", "), gridStyles = `
  55746. ${gridSelector} {
  55747. background-size: ${gridSize} !important;
  55748. background-position: ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px !important;
  55749. background-blend-mode: difference !important;
  55750. background-image: linear-gradient(rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),
  55751. linear-gradient(90deg, rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),
  55752. linear-gradient(rgba(130, 130, 130, ${opacity / 2}) 1px, transparent 1px),
  55753. linear-gradient(90deg, rgba(130, 130, 130, ${opacity / 2}) 1px, transparent 1px) !important;
  55754. }
  55755. `;
  55756. addGridStyle(gridSelectorId, gridStyles);
  55757. }, [cellAmount, cellSize, gridSelector, gridSelectorId, showGrid, offsetX, offsetY, opacity]), StoryFn();
  55758. };
  55759. // src/backgrounds/preview.ts
  55760. var decorators = globalThis.FEATURES?.backgrounds ? [withBackgroundAndGrid] : [], parameters = {
  55761. [PARAM_KEY]: {
  55762. grid: {
  55763. cellSize: 20,
  55764. opacity: 0.5,
  55765. cellAmount: 5
  55766. },
  55767. disable: !1
  55768. }
  55769. }, initialGlobals = {
  55770. [PARAM_KEY]: { value: void 0, grid: !1 }
  55771. };
  55772. // src/component-testing/preview.ts
  55773. var { step } = instrument(
  55774. {
  55775. // It seems like the label is unused, but the instrumenter has access to it
  55776. // The context will be bounded later in StoryRender, so that the user can write just:
  55777. // await step("label", (context) => {
  55778. // // labeled step
  55779. // });
  55780. step: async (label, play, context) => play(context)
  55781. },
  55782. { intercept: !0 }
  55783. );
  55784. // src/highlight/constants.ts
  55785. var ADDON_ID4 = "storybook/highlight", HIGHLIGHT = `${ADDON_ID4}/add`, REMOVE_HIGHLIGHT = `${ADDON_ID4}/remove`, RESET_HIGHLIGHT = `${ADDON_ID4}/reset`, SCROLL_INTO_VIEW = `${ADDON_ID4}/scroll-into-view`, MAX_Z_INDEX = 2147483647, MIN_TOUCH_AREA_SIZE = 28;
  55786. // src/highlight/icons.ts
  55787. var iconPaths = {
  55788. chevronLeft: [
  55789. "M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"
  55790. ],
  55791. chevronRight: [
  55792. "M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"
  55793. ],
  55794. info: [
  55795. "M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z",
  55796. "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"
  55797. ],
  55798. shareAlt: [
  55799. "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",
  55800. "M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"
  55801. ]
  55802. };
  55803. // src/highlight/utils.ts
  55804. var svgElements = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","), createElement6 = (type5, props = {}, children) => {
  55805. let element = svgElements.includes(type5) ? document.createElementNS("http://www.w3.org/2000/svg", type5) : document.createElement(type5);
  55806. return Object.entries(props).forEach(([key, val]) => {
  55807. /[A-Z]/.test(key) ? (key === "onClick" && (element.addEventListener("click", val), element.addEventListener("keydown", (e) => {
  55808. (e.key === "Enter" || e.key === " ") && (e.preventDefault(), val());
  55809. })), key === "onMouseEnter" && element.addEventListener("mouseenter", val), key === "onMouseLeave" && element.addEventListener("mouseleave", val)) : element.setAttribute(key, val);
  55810. }), children?.forEach((child) => {
  55811. if (!(child == null || child === !1))
  55812. try {
  55813. element.appendChild(child);
  55814. } catch {
  55815. element.appendChild(document.createTextNode(String(child)));
  55816. }
  55817. }), element;
  55818. }, createIcon = (name) => iconPaths[name] && createElement6(
  55819. "svg",
  55820. { width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg" },
  55821. iconPaths[name].map(
  55822. (d) => createElement6("path", {
  55823. fill: "currentColor",
  55824. "fill-rule": "evenodd",
  55825. "clip-rule": "evenodd",
  55826. d
  55827. })
  55828. )
  55829. ), normalizeOptions = (options) => {
  55830. if ("elements" in options) {
  55831. let { elements, color: color2, style } = options;
  55832. return {
  55833. id: void 0,
  55834. priority: 0,
  55835. selectors: elements,
  55836. styles: {
  55837. outline: `2px ${style} ${color2}`,
  55838. outlineOffset: "2px",
  55839. boxShadow: "0 0 0 6px rgba(255,255,255,0.6)"
  55840. },
  55841. menu: void 0
  55842. };
  55843. }
  55844. let { menu, ...rest } = options;
  55845. return {
  55846. id: void 0,
  55847. priority: 0,
  55848. styles: {
  55849. outline: "2px dashed #029cfd"
  55850. },
  55851. ...rest,
  55852. menu: Array.isArray(menu) ? menu.every(Array.isArray) ? menu : [menu] : void 0
  55853. };
  55854. }, isFunction3 = (obj) => obj instanceof Function, state = /* @__PURE__ */ new Map(), listeners2 = /* @__PURE__ */ new Map(), teardowns = /* @__PURE__ */ new Map(), useStore = (initialValue2) => {
  55855. let key = Symbol();
  55856. return listeners2.set(key, []), state.set(key, initialValue2), { get: () => state.get(key), set: (update2) => {
  55857. let current = state.get(key), next2 = isFunction3(update2) ? update2(current) : update2;
  55858. next2 !== current && (state.set(key, next2), listeners2.get(key)?.forEach((listener) => {
  55859. teardowns.get(listener)?.(), teardowns.set(listener, listener(next2));
  55860. }));
  55861. }, subscribe: (listener) => (listeners2.get(key)?.push(listener), () => {
  55862. let list = listeners2.get(key);
  55863. list && listeners2.set(
  55864. key,
  55865. list.filter((l) => l !== listener)
  55866. );
  55867. }), teardown: () => {
  55868. listeners2.get(key)?.forEach((listener) => {
  55869. teardowns.get(listener)?.(), teardowns.delete(listener);
  55870. }), listeners2.delete(key), state.delete(key);
  55871. } };
  55872. }, mapElements = (highlights) => {
  55873. let root2 = document.getElementById("storybook-root"), map2 = /* @__PURE__ */ new Map();
  55874. for (let highlight of highlights) {
  55875. let { priority = 0 } = highlight;
  55876. for (let selector of highlight.selectors) {
  55877. let elements = [
  55878. ...document.querySelectorAll(
  55879. // Elements matching the selector, excluding storybook elements and their descendants.
  55880. // Necessary to find portaled elements (e.g. children of `body`).
  55881. `:is(${selector}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`
  55882. ),
  55883. // Elements matching the selector inside the storybook root, as these were excluded above.
  55884. ...root2?.querySelectorAll(selector) || []
  55885. ];
  55886. for (let element of elements) {
  55887. let existing = map2.get(element);
  55888. (!existing || existing.priority <= priority) && map2.set(element, {
  55889. ...highlight,
  55890. priority,
  55891. selectors: Array.from(new Set((existing?.selectors || []).concat(selector)))
  55892. });
  55893. }
  55894. }
  55895. }
  55896. return map2;
  55897. }, mapBoxes = (elements) => Array.from(elements.entries()).map(([element, { selectors, styles: styles4, hoverStyles, focusStyles, menu }]) => {
  55898. let { top: top2, left: left2, width, height } = element.getBoundingClientRect(), { position: position2 } = getComputedStyle(element);
  55899. return {
  55900. element,
  55901. selectors,
  55902. styles: styles4,
  55903. hoverStyles,
  55904. focusStyles,
  55905. menu,
  55906. top: position2 === "fixed" ? top2 : top2 + window.scrollY,
  55907. left: position2 === "fixed" ? left2 : left2 + window.scrollX,
  55908. width,
  55909. height
  55910. };
  55911. }).sort((a3, b) => b.width * b.height - a3.width * a3.height), isOverMenu = (menuElement, coordinates) => {
  55912. let menu = menuElement.getBoundingClientRect(), { x, y } = coordinates;
  55913. return menu?.top && menu?.left && x >= menu.left && x <= menu.left + menu.width && y >= menu.top && y <= menu.top + menu.height;
  55914. }, isTargeted = (box, boxElement, coordinates) => {
  55915. if (!boxElement || !coordinates)
  55916. return !1;
  55917. let { left: left2, top: top2, width, height } = box;
  55918. height < MIN_TOUCH_AREA_SIZE && (top2 = top2 - Math.round((MIN_TOUCH_AREA_SIZE - height) / 2), height = MIN_TOUCH_AREA_SIZE), width < MIN_TOUCH_AREA_SIZE && (left2 = left2 - Math.round((MIN_TOUCH_AREA_SIZE - width) / 2), width = MIN_TOUCH_AREA_SIZE), boxElement.style.position === "fixed" && (left2 += window.scrollX, top2 += window.scrollY);
  55919. let { x, y } = coordinates;
  55920. return x >= left2 && x <= left2 + width && y >= top2 && y <= top2 + height;
  55921. }, keepInViewport = (element, targetCoordinates, options = {}) => {
  55922. let { x, y } = targetCoordinates, { margin = 5, topOffset = 0, centered = !1 } = options, { scrollX, scrollY, innerHeight: windowHeight, innerWidth: windowWidth } = window, top2 = Math.min(
  55923. element.style.position === "fixed" ? y - scrollY : y,
  55924. windowHeight - element.clientHeight - margin - topOffset + scrollY
  55925. ), leftOffset = centered ? element.clientWidth / 2 : 0, left2 = element.style.position === "fixed" ? Math.max(Math.min(x - scrollX, windowWidth - leftOffset - margin), leftOffset + margin) : Math.max(
  55926. Math.min(x, windowWidth - leftOffset - margin + scrollX),
  55927. leftOffset + margin + scrollX
  55928. );
  55929. Object.assign(element.style, {
  55930. ...left2 !== x && { left: `${left2}px` },
  55931. ...top2 !== y && { top: `${top2}px` }
  55932. });
  55933. }, showPopover = (element) => {
  55934. window.HTMLElement.prototype.hasOwnProperty("showPopover") && element.showPopover();
  55935. }, hidePopover = (element) => {
  55936. window.HTMLElement.prototype.hasOwnProperty("showPopover") && element.hidePopover();
  55937. }, getEventDetails = (target) => ({
  55938. top: target.top,
  55939. left: target.left,
  55940. width: target.width,
  55941. height: target.height,
  55942. selectors: target.selectors,
  55943. element: {
  55944. attributes: Object.fromEntries(
  55945. Array.from(target.element.attributes).map((attr) => [attr.name, attr.value])
  55946. ),
  55947. localName: target.element.localName,
  55948. tagName: target.element.tagName,
  55949. outerHTML: target.element.outerHTML
  55950. }
  55951. });
  55952. // src/highlight/useHighlights.ts
  55953. var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root", storybookRootId = "storybook-root", useHighlights = (channel) => {
  55954. if (globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)
  55955. return;
  55956. globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED = !0;
  55957. let { document: document13 } = globalThis, highlights = useStore([]), elements = useStore(/* @__PURE__ */ new Map()), boxes = useStore([]), clickCoords = useStore(), hoverCoords = useStore(), targets = useStore([]), hovered = useStore([]), focused = useStore(), selected = useStore(), root2 = document13.getElementById(rootId);
  55958. highlights.subscribe(() => {
  55959. root2 || (root2 = createElement6("div", { id: rootId }), document13.body.appendChild(root2));
  55960. }), highlights.subscribe((value) => {
  55961. let storybookRoot = document13.getElementById(storybookRootId);
  55962. if (!storybookRoot)
  55963. return;
  55964. elements.set(mapElements(value));
  55965. let observer = new MutationObserver(() => elements.set(mapElements(value)));
  55966. return observer.observe(storybookRoot, { subtree: !0, childList: !0 }), () => {
  55967. observer.disconnect();
  55968. };
  55969. }), elements.subscribe((value) => {
  55970. let updateBoxes = () => requestAnimationFrame(() => boxes.set(mapBoxes(value))), observer = new ResizeObserver(updateBoxes);
  55971. observer.observe(document13.body), Array.from(value.keys()).forEach((element) => observer.observe(element));
  55972. let scrollers = Array.from(document13.body.querySelectorAll("*")).filter((el) => {
  55973. let { overflow, overflowX, overflowY } = window.getComputedStyle(el);
  55974. return ["auto", "scroll"].some((o) => [overflow, overflowX, overflowY].includes(o));
  55975. });
  55976. return scrollers.forEach((element) => element.addEventListener("scroll", updateBoxes)), () => {
  55977. observer.disconnect(), scrollers.forEach((element) => element.removeEventListener("scroll", updateBoxes));
  55978. };
  55979. }), elements.subscribe((value) => {
  55980. let sticky = Array.from(value.keys()).filter(({ style }) => style.position === "sticky"), updateBoxes = () => requestAnimationFrame(() => {
  55981. boxes.set(
  55982. (current) => current.map((box) => {
  55983. if (sticky.includes(box.element)) {
  55984. let { top: top2, left: left2 } = box.element.getBoundingClientRect();
  55985. return { ...box, top: top2 + window.scrollY, left: left2 + window.scrollX };
  55986. }
  55987. return box;
  55988. })
  55989. );
  55990. });
  55991. return document13.addEventListener("scroll", updateBoxes), () => document13.removeEventListener("scroll", updateBoxes);
  55992. }), elements.subscribe((value) => {
  55993. targets.set((t) => t.filter(({ element }) => value.has(element)));
  55994. }), targets.subscribe((value) => {
  55995. value.length ? (selected.set((s3) => value.some((t) => t.element === s3?.element) ? s3 : void 0), focused.set((s3) => value.some((t) => t.element === s3?.element) ? s3 : void 0)) : (selected.set(void 0), focused.set(void 0), clickCoords.set(void 0));
  55996. });
  55997. let styleElementByHighlight = new Map(/* @__PURE__ */ new Map());
  55998. highlights.subscribe((value) => {
  55999. value.forEach(({ keyframes: keyframes2 }) => {
  56000. if (keyframes2) {
  56001. let style = styleElementByHighlight.get(keyframes2);
  56002. style || (style = document13.createElement("style"), style.setAttribute("data-highlight", "keyframes"), styleElementByHighlight.set(keyframes2, style), document13.head.appendChild(style)), style.innerHTML = keyframes2;
  56003. }
  56004. }), styleElementByHighlight.forEach((style, keyframes2) => {
  56005. value.some((v) => v.keyframes === keyframes2) || (style.remove(), styleElementByHighlight.delete(keyframes2));
  56006. });
  56007. });
  56008. let boxElementByTargetElement = new Map(/* @__PURE__ */ new Map());
  56009. boxes.subscribe((value) => {
  56010. value.forEach((box) => {
  56011. let boxElement = boxElementByTargetElement.get(box.element);
  56012. if (root2 && !boxElement) {
  56013. let props = {
  56014. popover: "manual",
  56015. "data-highlight-dimensions": `w${box.width.toFixed(0)}h${box.height.toFixed(0)}`,
  56016. "data-highlight-coordinates": `x${box.left.toFixed(0)}y${box.top.toFixed(0)}`
  56017. };
  56018. boxElement = root2.appendChild(
  56019. createElement6("div", props, [createElement6("div")])
  56020. ), boxElementByTargetElement.set(box.element, boxElement);
  56021. }
  56022. }), boxElementByTargetElement.forEach((box, element) => {
  56023. value.some(({ element: e }) => e === element) || (box.remove(), boxElementByTargetElement.delete(element));
  56024. });
  56025. }), boxes.subscribe((value) => {
  56026. let targetable = value.filter((box) => box.menu);
  56027. if (!targetable.length)
  56028. return;
  56029. let onClick = (event) => {
  56030. requestAnimationFrame(() => {
  56031. let menu = document13.getElementById(menuId), coords = { x: event.pageX, y: event.pageY };
  56032. if (menu && !isOverMenu(menu, coords)) {
  56033. let results = targetable.filter((box) => {
  56034. let boxElement = boxElementByTargetElement.get(box.element);
  56035. return isTargeted(box, boxElement, coords);
  56036. });
  56037. clickCoords.set(results.length ? coords : void 0), targets.set(results);
  56038. }
  56039. });
  56040. };
  56041. return document13.addEventListener("click", onClick), () => document13.removeEventListener("click", onClick);
  56042. });
  56043. let updateHovered = () => {
  56044. let menu = document13.getElementById(menuId), coords = hoverCoords.get();
  56045. !coords || menu && isOverMenu(menu, coords) || hovered.set((current) => {
  56046. let update2 = boxes.get().filter((box) => {
  56047. let boxElement = boxElementByTargetElement.get(box.element);
  56048. return isTargeted(box, boxElement, coords);
  56049. }), existing = current.filter((box) => update2.includes(box)), additions = update2.filter((box) => !current.includes(box)), hasRemovals = current.length - existing.length;
  56050. return additions.length || hasRemovals ? [...existing, ...additions] : current;
  56051. });
  56052. };
  56053. hoverCoords.subscribe(updateHovered), boxes.subscribe(updateHovered);
  56054. let updateBoxStyles = () => {
  56055. let selectedElement = selected.get(), targetElements = selectedElement ? [selectedElement] : targets.get(), focusedElement = targetElements.length === 1 ? targetElements[0] : focused.get(), isMenuOpen = clickCoords.get() !== void 0;
  56056. boxes.get().forEach((box) => {
  56057. let boxElement = boxElementByTargetElement.get(box.element);
  56058. if (boxElement) {
  56059. let isFocused = focusedElement === box, isHovered = isMenuOpen ? focusedElement ? isFocused : targetElements.includes(box) : hovered.get()?.includes(box);
  56060. Object.assign(boxElement.style, {
  56061. animation: "none",
  56062. background: "transparent",
  56063. border: "none",
  56064. boxSizing: "border-box",
  56065. outline: "none",
  56066. outlineOffset: "0px",
  56067. ...box.styles,
  56068. ...isHovered ? box.hoverStyles : {},
  56069. ...isFocused ? box.focusStyles : {},
  56070. position: getComputedStyle(box.element).position === "fixed" ? "fixed" : "absolute",
  56071. zIndex: MAX_Z_INDEX - 10,
  56072. top: `${box.top}px`,
  56073. left: `${box.left}px`,
  56074. width: `${box.width}px`,
  56075. height: `${box.height}px`,
  56076. margin: 0,
  56077. padding: 0,
  56078. cursor: box.menu && isHovered ? "pointer" : "default",
  56079. pointerEvents: box.menu ? "auto" : "none",
  56080. display: "flex",
  56081. alignItems: "center",
  56082. justifyContent: "center",
  56083. overflow: "visible"
  56084. }), Object.assign(boxElement.children[0].style, {
  56085. width: "100%",
  56086. height: "100%",
  56087. minHeight: `${MIN_TOUCH_AREA_SIZE}px`,
  56088. minWidth: `${MIN_TOUCH_AREA_SIZE}px`,
  56089. boxSizing: "content-box",
  56090. padding: boxElement.style.outlineWidth || "0px"
  56091. }), showPopover(boxElement);
  56092. }
  56093. });
  56094. };
  56095. boxes.subscribe(updateBoxStyles), targets.subscribe(updateBoxStyles), hovered.subscribe(updateBoxStyles), focused.subscribe(updateBoxStyles), selected.subscribe(updateBoxStyles);
  56096. let renderMenu = () => {
  56097. if (!root2)
  56098. return;
  56099. let menu = document13.getElementById(menuId);
  56100. if (menu)
  56101. menu.innerHTML = "";
  56102. else {
  56103. let props = { id: menuId, popover: "manual" };
  56104. menu = root2.appendChild(createElement6("div", props)), root2.appendChild(
  56105. createElement6("style", {}, [
  56106. `
  56107. #${menuId} {
  56108. position: absolute;
  56109. z-index: ${MAX_Z_INDEX};
  56110. width: 300px;
  56111. padding: 0px;
  56112. margin: 15px 0 0 0;
  56113. transform: translateX(-50%);
  56114. font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  56115. font-size: 12px;
  56116. background: white;
  56117. border: none;
  56118. border-radius: 6px;
  56119. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
  56120. color: #2E3438;
  56121. }
  56122. #${menuId} ul {
  56123. list-style: none;
  56124. margin: 0;
  56125. padding: 0;
  56126. }
  56127. #${menuId} > ul {
  56128. max-height: 300px;
  56129. overflow-y: auto;
  56130. padding: 4px 0;
  56131. }
  56132. #${menuId} li {
  56133. padding: 0 4px;
  56134. margin: 0;
  56135. }
  56136. #${menuId} li > :not(ul) {
  56137. display: flex;
  56138. padding: 8px;
  56139. margin: 0;
  56140. align-items: center;
  56141. gap: 8px;
  56142. border-radius: 4px;
  56143. }
  56144. #${menuId} button {
  56145. width: 100%;
  56146. border: 0;
  56147. background: transparent;
  56148. color: inherit;
  56149. text-align: left;
  56150. font-family: inherit;
  56151. font-size: inherit;
  56152. }
  56153. #${menuId} button:focus-visible {
  56154. outline-color: #029CFD;
  56155. }
  56156. #${menuId} button:hover {
  56157. background: rgba(2, 156, 253, 0.07);
  56158. color: #029CFD;
  56159. cursor: pointer;
  56160. }
  56161. #${menuId} li code {
  56162. white-space: nowrap;
  56163. overflow: hidden;
  56164. text-overflow: ellipsis;
  56165. line-height: 16px;
  56166. font-size: 11px;
  56167. }
  56168. #${menuId} li svg {
  56169. flex-shrink: 0;
  56170. margin: 1px;
  56171. color: #73828C;
  56172. }
  56173. #${menuId} li > button:hover svg, #${menuId} li > button:focus-visible svg {
  56174. color: #029CFD;
  56175. }
  56176. #${menuId} .element-list li svg {
  56177. display: none;
  56178. }
  56179. #${menuId} li.selectable svg, #${menuId} li.selected svg {
  56180. display: block;
  56181. }
  56182. #${menuId} .menu-list {
  56183. border-top: 1px solid rgba(38, 85, 115, 0.15);
  56184. }
  56185. #${menuId} .menu-list > li:not(:last-child) {
  56186. padding-bottom: 4px;
  56187. margin-bottom: 4px;
  56188. border-bottom: 1px solid rgba(38, 85, 115, 0.15);
  56189. }
  56190. #${menuId} .menu-items, #${menuId} .menu-items li {
  56191. padding: 0;
  56192. }
  56193. #${menuId} .menu-item {
  56194. display: flex;
  56195. }
  56196. #${menuId} .menu-item-content {
  56197. display: flex;
  56198. flex-direction: column;
  56199. flex-grow: 1;
  56200. }
  56201. `
  56202. ])
  56203. );
  56204. }
  56205. let selectedElement = selected.get(), elementList = selectedElement ? [selectedElement] : targets.get();
  56206. if (elementList.length && (menu.style.position = getComputedStyle(elementList[0].element).position === "fixed" ? "fixed" : "absolute", menu.appendChild(
  56207. createElement6(
  56208. "ul",
  56209. { class: "element-list" },
  56210. elementList.map((target) => {
  56211. let selectable = elementList.length > 1 && !!target.menu?.some(
  56212. (group) => group.some(
  56213. (item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3))
  56214. )
  56215. ), props = selectable ? {
  56216. class: "selectable",
  56217. onClick: () => selected.set(target),
  56218. onMouseEnter: () => focused.set(target),
  56219. onMouseLeave: () => focused.set(void 0)
  56220. } : selectedElement ? { class: "selected", onClick: () => selected.set(void 0) } : {}, asButton = selectable || selectedElement;
  56221. return createElement6("li", props, [
  56222. createElement6(asButton ? "button" : "div", asButton ? { type: "button" } : {}, [
  56223. selectedElement ? createIcon("chevronLeft") : null,
  56224. createElement6("code", {}, [target.element.outerHTML]),
  56225. selectable ? createIcon("chevronRight") : null
  56226. ])
  56227. ]);
  56228. })
  56229. )
  56230. )), selected.get() || targets.get().length === 1) {
  56231. let target = selected.get() || targets.get()[0], menuGroups = target.menu?.filter(
  56232. (group) => group.some(
  56233. (item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3))
  56234. )
  56235. );
  56236. menuGroups?.length && menu.appendChild(
  56237. createElement6(
  56238. "ul",
  56239. { class: "menu-list" },
  56240. menuGroups.map(
  56241. (menuItems) => createElement6("li", {}, [
  56242. createElement6(
  56243. "ul",
  56244. { class: "menu-items" },
  56245. menuItems.map(
  56246. ({ id, title, description, iconLeft, iconRight, clickEvent: event }) => {
  56247. let onClick = event && (() => channel.emit(event, id, getEventDetails(target)));
  56248. return createElement6("li", {}, [
  56249. createElement6(
  56250. onClick ? "button" : "div",
  56251. onClick ? { class: "menu-item", type: "button", onClick } : { class: "menu-item" },
  56252. [
  56253. iconLeft ? createIcon(iconLeft) : null,
  56254. createElement6("div", { class: "menu-item-content" }, [
  56255. createElement6(description ? "strong" : "span", {}, [title]),
  56256. description && createElement6("span", {}, [description])
  56257. ]),
  56258. iconRight ? createIcon(iconRight) : null
  56259. ]
  56260. )
  56261. ]);
  56262. }
  56263. )
  56264. )
  56265. ])
  56266. )
  56267. )
  56268. );
  56269. }
  56270. let coords = clickCoords.get();
  56271. coords ? (Object.assign(menu.style, {
  56272. display: "block",
  56273. left: `${menu.style.position === "fixed" ? coords.x - window.scrollX : coords.x}px`,
  56274. top: `${menu.style.position === "fixed" ? coords.y - window.scrollY : coords.y}px`
  56275. }), showPopover(menu), requestAnimationFrame(() => keepInViewport(menu, coords, { topOffset: 15, centered: !0 }))) : (hidePopover(menu), Object.assign(menu.style, { display: "none" }));
  56276. };
  56277. targets.subscribe(renderMenu), selected.subscribe(renderMenu);
  56278. let addHighlight = (highlight) => {
  56279. let info = normalizeOptions(highlight);
  56280. highlights.set((value) => {
  56281. let others = info.id ? value.filter((h3) => h3.id !== info.id) : value;
  56282. return info.selectors?.length ? [...others, info] : others;
  56283. });
  56284. }, removeHighlight = (id) => {
  56285. id && highlights.set((value) => value.filter((h3) => h3.id !== id));
  56286. }, resetState = () => {
  56287. highlights.set([]), elements.set(/* @__PURE__ */ new Map()), boxes.set([]), clickCoords.set(void 0), hoverCoords.set(void 0), targets.set([]), hovered.set([]), focused.set(void 0), selected.set(void 0);
  56288. }, removeTimeout, scrollIntoView = (target, options) => {
  56289. let id = "scrollIntoView-highlight";
  56290. clearTimeout(removeTimeout), removeHighlight(id);
  56291. let element = document13.querySelector(target);
  56292. if (!element) {
  56293. console.warn(`Cannot scroll into view: ${target} not found`);
  56294. return;
  56295. }
  56296. element.scrollIntoView({ behavior: "smooth", block: "center", ...options });
  56297. let keyframeName = `kf-${Math.random().toString(36).substring(2, 15)}`;
  56298. highlights.set((value) => [
  56299. ...value,
  56300. {
  56301. id,
  56302. priority: 1e3,
  56303. selectors: [target],
  56304. styles: {
  56305. outline: "2px solid #1EA7FD",
  56306. outlineOffset: "-1px",
  56307. animation: `${keyframeName} 3s linear forwards`
  56308. },
  56309. keyframes: `@keyframes ${keyframeName} {
  56310. 0% { outline: 2px solid #1EA7FD; }
  56311. 20% { outline: 2px solid #1EA7FD00; }
  56312. 40% { outline: 2px solid #1EA7FD; }
  56313. 60% { outline: 2px solid #1EA7FD00; }
  56314. 80% { outline: 2px solid #1EA7FD; }
  56315. 100% { outline: 2px solid #1EA7FD00; }
  56316. }`
  56317. }
  56318. ]), removeTimeout = setTimeout(() => removeHighlight(id), 3500);
  56319. }, onMouseMove = (event) => {
  56320. requestAnimationFrame(() => hoverCoords.set({ x: event.pageX, y: event.pageY }));
  56321. };
  56322. document13.body.addEventListener("mousemove", onMouseMove), channel.on(HIGHLIGHT, addHighlight), channel.on(REMOVE_HIGHLIGHT, removeHighlight), channel.on(RESET_HIGHLIGHT, resetState), channel.on(SCROLL_INTO_VIEW, scrollIntoView), channel.on(STORY_RENDER_PHASE_CHANGED, ({ newPhase }) => {
  56323. newPhase === "loading" && resetState();
  56324. });
  56325. };
  56326. // src/highlight/preview.ts
  56327. globalThis?.FEATURES?.highlight && addons2?.ready && addons2.ready().then(useHighlights);
  56328. // src/measure/constants.ts
  56329. var ADDON_ID5 = "storybook/measure-addon", TOOL_ID = `${ADDON_ID5}/tool`, PARAM_KEY2 = "measureEnabled", EVENTS3 = {
  56330. RESULT: `${ADDON_ID5}/result`,
  56331. REQUEST: `${ADDON_ID5}/request`,
  56332. CLEAR: `${ADDON_ID5}/clear`
  56333. };
  56334. // src/measure/box-model/canvas.ts
  56335. init_dist();
  56336. function getDocumentWidthAndHeight() {
  56337. let container = scope.document.documentElement, height = Math.max(container.scrollHeight, container.offsetHeight);
  56338. return { width: Math.max(container.scrollWidth, container.offsetWidth), height };
  56339. }
  56340. function createCanvas() {
  56341. let canvas = scope.document.createElement("canvas");
  56342. canvas.id = "storybook-addon-measure";
  56343. let context = canvas.getContext("2d");
  56344. invariant(context != null);
  56345. let { width, height } = getDocumentWidthAndHeight();
  56346. return setCanvasWidthAndHeight(canvas, context, { width, height }), canvas.style.position = "absolute", canvas.style.left = "0", canvas.style.top = "0", canvas.style.zIndex = "2147483647", canvas.style.pointerEvents = "none", scope.document.body.appendChild(canvas), { canvas, context, width, height };
  56347. }
  56348. function setCanvasWidthAndHeight(canvas, context, { width, height }) {
  56349. canvas.style.width = `${width}px`, canvas.style.height = `${height}px`;
  56350. let scale = scope.window.devicePixelRatio;
  56351. canvas.width = Math.floor(width * scale), canvas.height = Math.floor(height * scale), context.scale(scale, scale);
  56352. }
  56353. var state2 = {};
  56354. function init3() {
  56355. state2.canvas || (state2 = createCanvas());
  56356. }
  56357. function clear3() {
  56358. state2.context && state2.context.clearRect(0, 0, state2.width ?? 0, state2.height ?? 0);
  56359. }
  56360. function draw(callback) {
  56361. clear3(), callback(state2.context);
  56362. }
  56363. function rescale() {
  56364. invariant(state2.canvas, "Canvas should exist in the state."), invariant(state2.context, "Context should exist in the state."), setCanvasWidthAndHeight(state2.canvas, state2.context, { width: 0, height: 0 });
  56365. let { width, height } = getDocumentWidthAndHeight();
  56366. setCanvasWidthAndHeight(state2.canvas, state2.context, { width, height }), state2.width = width, state2.height = height;
  56367. }
  56368. function destroy() {
  56369. state2.canvas && (clear3(), state2.canvas.parentNode?.removeChild(state2.canvas), state2 = {});
  56370. }
  56371. // src/measure/box-model/visualizer.ts
  56372. init_dist();
  56373. // src/measure/box-model/labels.ts
  56374. var colors = {
  56375. margin: "#f6b26b",
  56376. border: "#ffe599",
  56377. padding: "#93c47d",
  56378. content: "#6fa8dc",
  56379. text: "#232020"
  56380. }, labelPadding = 6;
  56381. function roundedRect(context, { x, y, w, h: h3, r: r2 }) {
  56382. x = x - w / 2, y = y - h3 / 2, w < 2 * r2 && (r2 = w / 2), h3 < 2 * r2 && (r2 = h3 / 2), context.beginPath(), context.moveTo(x + r2, y), context.arcTo(x + w, y, x + w, y + h3, r2), context.arcTo(x + w, y + h3, x, y + h3, r2), context.arcTo(x, y + h3, x, y, r2), context.arcTo(x, y, x + w, y, r2), context.closePath();
  56383. }
  56384. function positionCoordinate(position2, { padding, border, width, height, top: top2, left: left2 }) {
  56385. let contentWidth = width - border.left - border.right - padding.left - padding.right, contentHeight = height - padding.top - padding.bottom - border.top - border.bottom, x = left2 + border.left + padding.left, y = top2 + border.top + padding.top;
  56386. return position2 === "top" ? x += contentWidth / 2 : position2 === "right" ? (x += contentWidth, y += contentHeight / 2) : position2 === "bottom" ? (x += contentWidth / 2, y += contentHeight) : position2 === "left" ? y += contentHeight / 2 : position2 === "center" && (x += contentWidth / 2, y += contentHeight / 2), { x, y };
  56387. }
  56388. function offset(type5, position2, { margin, border, padding }, labelPaddingSize, external) {
  56389. let shift = (dir) => 0, offsetX = 0, offsetY = 0, locationMultiplier = external ? 1 : 0.5, labelPaddingShift = external ? labelPaddingSize * 2 : 0;
  56390. return type5 === "padding" ? shift = (dir) => padding[dir] * locationMultiplier + labelPaddingShift : type5 === "border" ? shift = (dir) => padding[dir] + border[dir] * locationMultiplier + labelPaddingShift : type5 === "margin" && (shift = (dir) => padding[dir] + border[dir] + margin[dir] * locationMultiplier + labelPaddingShift), position2 === "top" ? offsetY = -shift("top") : position2 === "right" ? offsetX = shift("right") : position2 === "bottom" ? offsetY = shift("bottom") : position2 === "left" && (offsetX = -shift("left")), { offsetX, offsetY };
  56391. }
  56392. function collide(a3, b) {
  56393. return Math.abs(a3.x - b.x) < Math.abs(a3.w + b.w) / 2 && Math.abs(a3.y - b.y) < Math.abs(a3.h + b.h) / 2;
  56394. }
  56395. function overlapAdjustment(position2, currentRect, prevRect) {
  56396. return position2 === "top" ? currentRect.y = prevRect.y - prevRect.h - labelPadding : position2 === "right" ? currentRect.x = prevRect.x + prevRect.w / 2 + labelPadding + currentRect.w / 2 : position2 === "bottom" ? currentRect.y = prevRect.y + prevRect.h + labelPadding : position2 === "left" && (currentRect.x = prevRect.x - prevRect.w / 2 - labelPadding - currentRect.w / 2), { x: currentRect.x, y: currentRect.y };
  56397. }
  56398. function textWithRect(context, type5, { x, y, w, h: h3 }, text) {
  56399. return roundedRect(context, { x, y, w, h: h3, r: 3 }), context.fillStyle = `${colors[type5]}dd`, context.fill(), context.strokeStyle = colors[type5], context.stroke(), context.fillStyle = colors.text, context.fillText(text, x, y), roundedRect(context, { x, y, w, h: h3, r: 3 }), context.fillStyle = `${colors[type5]}dd`, context.fill(), context.strokeStyle = colors[type5], context.stroke(), context.fillStyle = colors.text, context.fillText(text, x, y), { x, y, w, h: h3 };
  56400. }
  56401. function configureText(context, text) {
  56402. context.font = "600 12px monospace", context.textBaseline = "middle", context.textAlign = "center";
  56403. let metrics = context.measureText(text), actualHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent, w = metrics.width + labelPadding * 2, h3 = actualHeight + labelPadding * 2;
  56404. return { w, h: h3 };
  56405. }
  56406. function drawLabel(context, measurements, { type: type5, position: position2 = "center", text }, prevRect, external = !1) {
  56407. let { x, y } = positionCoordinate(position2, measurements), { offsetX, offsetY } = offset(type5, position2, measurements, labelPadding + 1, external);
  56408. x += offsetX, y += offsetY;
  56409. let { w, h: h3 } = configureText(context, text);
  56410. if (prevRect && collide({ x, y, w, h: h3 }, prevRect)) {
  56411. let adjusted = overlapAdjustment(position2, { x, y, w, h: h3 }, prevRect);
  56412. x = adjusted.x, y = adjusted.y;
  56413. }
  56414. return textWithRect(context, type5, { x, y, w, h: h3 }, text);
  56415. }
  56416. function floatingOffset(alignment2, { w, h: h3 }) {
  56417. let deltaW = w * 0.5 + labelPadding, deltaH = h3 * 0.5 + labelPadding;
  56418. return {
  56419. offsetX: (alignment2.x === "left" ? -1 : 1) * deltaW,
  56420. offsetY: (alignment2.y === "top" ? -1 : 1) * deltaH
  56421. };
  56422. }
  56423. function drawFloatingLabel(context, measurements, { type: type5, text }) {
  56424. let { floatingAlignment: floatingAlignment2, extremities } = measurements, x = extremities[floatingAlignment2.x], y = extremities[floatingAlignment2.y], { w, h: h3 } = configureText(context, text), { offsetX, offsetY } = floatingOffset(floatingAlignment2, {
  56425. w,
  56426. h: h3
  56427. });
  56428. return x += offsetX, y += offsetY, textWithRect(context, type5, { x, y, w, h: h3 }, text);
  56429. }
  56430. function drawStack(context, measurements, stack, external) {
  56431. let rects = [];
  56432. stack.forEach((l, idx) => {
  56433. let rect = external && l.position === "center" ? drawFloatingLabel(context, measurements, l) : drawLabel(context, measurements, l, rects[idx - 1], external);
  56434. rects[idx] = rect;
  56435. });
  56436. }
  56437. function labelStacks(context, measurements, labels, externalLabels) {
  56438. let stacks = labels.reduce((acc, l) => (Object.prototype.hasOwnProperty.call(acc, l.position) || (acc[l.position] = []), acc[l.position]?.push(l), acc), {});
  56439. stacks.top && drawStack(context, measurements, stacks.top, externalLabels), stacks.right && drawStack(context, measurements, stacks.right, externalLabels), stacks.bottom && drawStack(context, measurements, stacks.bottom, externalLabels), stacks.left && drawStack(context, measurements, stacks.left, externalLabels), stacks.center && drawStack(context, measurements, stacks.center, externalLabels);
  56440. }
  56441. // src/measure/box-model/visualizer.ts
  56442. var colors2 = {
  56443. margin: "#f6b26ba8",
  56444. border: "#ffe599a8",
  56445. padding: "#93c47d8c",
  56446. content: "#6fa8dca8"
  56447. }, SMALL_NODE_SIZE = 30;
  56448. function pxToNumber(px) {
  56449. return parseInt(px.replace("px", ""), 10);
  56450. }
  56451. function round(value) {
  56452. return Number.isInteger(value) ? value : value.toFixed(2);
  56453. }
  56454. function filterZeroValues(labels) {
  56455. return labels.filter((l) => l.text !== 0 && l.text !== "0");
  56456. }
  56457. function floatingAlignment(extremities) {
  56458. let windowExtremities = {
  56459. top: scope.window.scrollY,
  56460. bottom: scope.window.scrollY + scope.window.innerHeight,
  56461. left: scope.window.scrollX,
  56462. right: scope.window.scrollX + scope.window.innerWidth
  56463. }, distances = {
  56464. top: Math.abs(windowExtremities.top - extremities.top),
  56465. bottom: Math.abs(windowExtremities.bottom - extremities.bottom),
  56466. left: Math.abs(windowExtremities.left - extremities.left),
  56467. right: Math.abs(windowExtremities.right - extremities.right)
  56468. };
  56469. return {
  56470. x: distances.left > distances.right ? "left" : "right",
  56471. y: distances.top > distances.bottom ? "top" : "bottom"
  56472. };
  56473. }
  56474. function measureElement(element) {
  56475. let style = scope.getComputedStyle(element), { top: top2, left: left2, right: right2, bottom: bottom2, width, height } = element.getBoundingClientRect(), {
  56476. marginTop,
  56477. marginBottom,
  56478. marginLeft,
  56479. marginRight,
  56480. paddingTop,
  56481. paddingBottom,
  56482. paddingLeft,
  56483. paddingRight,
  56484. borderBottomWidth,
  56485. borderTopWidth,
  56486. borderLeftWidth,
  56487. borderRightWidth
  56488. } = style;
  56489. top2 = top2 + scope.window.scrollY, left2 = left2 + scope.window.scrollX, bottom2 = bottom2 + scope.window.scrollY, right2 = right2 + scope.window.scrollX;
  56490. let margin = {
  56491. top: pxToNumber(marginTop),
  56492. bottom: pxToNumber(marginBottom),
  56493. left: pxToNumber(marginLeft),
  56494. right: pxToNumber(marginRight)
  56495. }, padding = {
  56496. top: pxToNumber(paddingTop),
  56497. bottom: pxToNumber(paddingBottom),
  56498. left: pxToNumber(paddingLeft),
  56499. right: pxToNumber(paddingRight)
  56500. }, border = {
  56501. top: pxToNumber(borderTopWidth),
  56502. bottom: pxToNumber(borderBottomWidth),
  56503. left: pxToNumber(borderLeftWidth),
  56504. right: pxToNumber(borderRightWidth)
  56505. }, extremities = {
  56506. top: top2 - margin.top,
  56507. bottom: bottom2 + margin.bottom,
  56508. left: left2 - margin.left,
  56509. right: right2 + margin.right
  56510. };
  56511. return {
  56512. margin,
  56513. padding,
  56514. border,
  56515. top: top2,
  56516. left: left2,
  56517. bottom: bottom2,
  56518. right: right2,
  56519. width,
  56520. height,
  56521. extremities,
  56522. floatingAlignment: floatingAlignment(extremities)
  56523. };
  56524. }
  56525. function drawMargin(context, { margin, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) {
  56526. let marginHeight = height + margin.bottom + margin.top;
  56527. context.fillStyle = colors2.margin, context.fillRect(left2, top2 - margin.top, width, margin.top), context.fillRect(right2, top2 - margin.top, margin.right, marginHeight), context.fillRect(left2, bottom2, width, margin.bottom), context.fillRect(left2 - margin.left, top2 - margin.top, margin.left, marginHeight);
  56528. let marginLabels = [
  56529. {
  56530. type: "margin",
  56531. text: round(margin.top),
  56532. position: "top"
  56533. },
  56534. {
  56535. type: "margin",
  56536. text: round(margin.right),
  56537. position: "right"
  56538. },
  56539. {
  56540. type: "margin",
  56541. text: round(margin.bottom),
  56542. position: "bottom"
  56543. },
  56544. {
  56545. type: "margin",
  56546. text: round(margin.left),
  56547. position: "left"
  56548. }
  56549. ];
  56550. return filterZeroValues(marginLabels);
  56551. }
  56552. function drawPadding(context, { padding, border, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) {
  56553. let paddingWidth = width - border.left - border.right, paddingHeight = height - padding.top - padding.bottom - border.top - border.bottom;
  56554. context.fillStyle = colors2.padding, context.fillRect(left2 + border.left, top2 + border.top, paddingWidth, padding.top), context.fillRect(
  56555. right2 - padding.right - border.right,
  56556. top2 + padding.top + border.top,
  56557. padding.right,
  56558. paddingHeight
  56559. ), context.fillRect(
  56560. left2 + border.left,
  56561. bottom2 - padding.bottom - border.bottom,
  56562. paddingWidth,
  56563. padding.bottom
  56564. ), context.fillRect(left2 + border.left, top2 + padding.top + border.top, padding.left, paddingHeight);
  56565. let paddingLabels = [
  56566. {
  56567. type: "padding",
  56568. text: padding.top,
  56569. position: "top"
  56570. },
  56571. {
  56572. type: "padding",
  56573. text: padding.right,
  56574. position: "right"
  56575. },
  56576. {
  56577. type: "padding",
  56578. text: padding.bottom,
  56579. position: "bottom"
  56580. },
  56581. {
  56582. type: "padding",
  56583. text: padding.left,
  56584. position: "left"
  56585. }
  56586. ];
  56587. return filterZeroValues(paddingLabels);
  56588. }
  56589. function drawBorder(context, { border, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) {
  56590. let borderHeight = height - border.top - border.bottom;
  56591. context.fillStyle = colors2.border, context.fillRect(left2, top2, width, border.top), context.fillRect(left2, bottom2 - border.bottom, width, border.bottom), context.fillRect(left2, top2 + border.top, border.left, borderHeight), context.fillRect(right2 - border.right, top2 + border.top, border.right, borderHeight);
  56592. let borderLabels = [
  56593. {
  56594. type: "border",
  56595. text: border.top,
  56596. position: "top"
  56597. },
  56598. {
  56599. type: "border",
  56600. text: border.right,
  56601. position: "right"
  56602. },
  56603. {
  56604. type: "border",
  56605. text: border.bottom,
  56606. position: "bottom"
  56607. },
  56608. {
  56609. type: "border",
  56610. text: border.left,
  56611. position: "left"
  56612. }
  56613. ];
  56614. return filterZeroValues(borderLabels);
  56615. }
  56616. function drawContent(context, { padding, border, width, height, top: top2, left: left2 }) {
  56617. let contentWidth = width - border.left - border.right - padding.left - padding.right, contentHeight = height - padding.top - padding.bottom - border.top - border.bottom;
  56618. return context.fillStyle = colors2.content, context.fillRect(
  56619. left2 + border.left + padding.left,
  56620. top2 + border.top + padding.top,
  56621. contentWidth,
  56622. contentHeight
  56623. ), [
  56624. {
  56625. type: "content",
  56626. position: "center",
  56627. text: `${round(contentWidth)} x ${round(contentHeight)}`
  56628. }
  56629. ];
  56630. }
  56631. function drawBoxModel(element) {
  56632. return (context) => {
  56633. if (element && context) {
  56634. let measurements = measureElement(element), marginLabels = drawMargin(context, measurements), paddingLabels = drawPadding(context, measurements), borderLabels = drawBorder(context, measurements), contentLabels = drawContent(context, measurements), externalLabels = measurements.width <= SMALL_NODE_SIZE * 3 || measurements.height <= SMALL_NODE_SIZE;
  56635. labelStacks(
  56636. context,
  56637. measurements,
  56638. [...contentLabels, ...paddingLabels, ...borderLabels, ...marginLabels],
  56639. externalLabels
  56640. );
  56641. }
  56642. };
  56643. }
  56644. function drawSelectedElement(element) {
  56645. draw(drawBoxModel(element));
  56646. }
  56647. // src/measure/util.ts
  56648. init_dist();
  56649. var deepElementFromPoint = (x, y) => {
  56650. let element = scope.document.elementFromPoint(x, y), crawlShadows = (node2) => {
  56651. if (node2 && node2.shadowRoot) {
  56652. let nestedElement = node2.shadowRoot.elementFromPoint(x, y);
  56653. return node2.isEqualNode(nestedElement) ? node2 : nestedElement.shadowRoot ? crawlShadows(nestedElement) : nestedElement;
  56654. }
  56655. return node2;
  56656. };
  56657. return crawlShadows(element) || element;
  56658. };
  56659. // src/measure/withMeasure.ts
  56660. var nodeAtPointerRef, pointer3 = { x: 0, y: 0 };
  56661. function findAndDrawElement(x, y) {
  56662. nodeAtPointerRef = deepElementFromPoint(x, y), drawSelectedElement(nodeAtPointerRef);
  56663. }
  56664. var withMeasure = (StoryFn, context) => {
  56665. let { measureEnabled } = context.globals || {};
  56666. return useEffect6(() => {
  56667. if (typeof globalThis.document > "u")
  56668. return;
  56669. let onPointerMove = (event) => {
  56670. window.requestAnimationFrame(() => {
  56671. event.stopPropagation(), pointer3.x = event.clientX, pointer3.y = event.clientY;
  56672. });
  56673. };
  56674. return globalThis.document.addEventListener("pointermove", onPointerMove), () => {
  56675. globalThis.document.removeEventListener("pointermove", onPointerMove);
  56676. };
  56677. }, []), useEffect6(() => {
  56678. let onPointerOver = (event) => {
  56679. window.requestAnimationFrame(() => {
  56680. event.stopPropagation(), findAndDrawElement(event.clientX, event.clientY);
  56681. });
  56682. }, onResize = () => {
  56683. window.requestAnimationFrame(() => {
  56684. rescale();
  56685. });
  56686. };
  56687. return context.viewMode === "story" && measureEnabled && (globalThis.document.addEventListener("pointerover", onPointerOver), init3(), globalThis.window.addEventListener("resize", onResize), findAndDrawElement(pointer3.x, pointer3.y)), () => {
  56688. globalThis.window.removeEventListener("resize", onResize), destroy();
  56689. };
  56690. }, [measureEnabled, context.viewMode]), StoryFn();
  56691. };
  56692. // src/measure/preview.ts
  56693. var decorators2 = globalThis.FEATURES?.measure ? [withMeasure] : [], initialGlobals2 = {
  56694. [PARAM_KEY2]: !1
  56695. };
  56696. // src/outline/constants.ts
  56697. var PARAM_KEY3 = "outline";
  56698. // src/outline/helpers.ts
  56699. init_dist();
  56700. var clearStyles2 = (selector) => {
  56701. (Array.isArray(selector) ? selector : [selector]).forEach(clearStyle2);
  56702. }, clearStyle2 = (input2) => {
  56703. let selector = typeof input2 == "string" ? input2 : input2.join(""), element = scope.document.getElementById(selector);
  56704. element && element.parentElement && element.parentElement.removeChild(element);
  56705. }, addOutlineStyles = (selector, css3) => {
  56706. let existingStyle = scope.document.getElementById(selector);
  56707. if (existingStyle)
  56708. existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3);
  56709. else {
  56710. let style = scope.document.createElement("style");
  56711. style.setAttribute("id", selector), style.innerHTML = css3, scope.document.head.appendChild(style);
  56712. }
  56713. };
  56714. // src/outline/outlineCSS.ts
  56715. init_esm();
  56716. function outlineCSS(selector) {
  56717. return dedent`
  56718. ${selector} body {
  56719. outline: 1px solid #2980b9 !important;
  56720. }
  56721. ${selector} article {
  56722. outline: 1px solid #3498db !important;
  56723. }
  56724. ${selector} nav {
  56725. outline: 1px solid #0088c3 !important;
  56726. }
  56727. ${selector} aside {
  56728. outline: 1px solid #33a0ce !important;
  56729. }
  56730. ${selector} section {
  56731. outline: 1px solid #66b8da !important;
  56732. }
  56733. ${selector} header {
  56734. outline: 1px solid #99cfe7 !important;
  56735. }
  56736. ${selector} footer {
  56737. outline: 1px solid #cce7f3 !important;
  56738. }
  56739. ${selector} h1 {
  56740. outline: 1px solid #162544 !important;
  56741. }
  56742. ${selector} h2 {
  56743. outline: 1px solid #314e6e !important;
  56744. }
  56745. ${selector} h3 {
  56746. outline: 1px solid #3e5e85 !important;
  56747. }
  56748. ${selector} h4 {
  56749. outline: 1px solid #449baf !important;
  56750. }
  56751. ${selector} h5 {
  56752. outline: 1px solid #c7d1cb !important;
  56753. }
  56754. ${selector} h6 {
  56755. outline: 1px solid #4371d0 !important;
  56756. }
  56757. ${selector} main {
  56758. outline: 1px solid #2f4f90 !important;
  56759. }
  56760. ${selector} address {
  56761. outline: 1px solid #1a2c51 !important;
  56762. }
  56763. ${selector} div {
  56764. outline: 1px solid #036cdb !important;
  56765. }
  56766. ${selector} p {
  56767. outline: 1px solid #ac050b !important;
  56768. }
  56769. ${selector} hr {
  56770. outline: 1px solid #ff063f !important;
  56771. }
  56772. ${selector} pre {
  56773. outline: 1px solid #850440 !important;
  56774. }
  56775. ${selector} blockquote {
  56776. outline: 1px solid #f1b8e7 !important;
  56777. }
  56778. ${selector} ol {
  56779. outline: 1px solid #ff050c !important;
  56780. }
  56781. ${selector} ul {
  56782. outline: 1px solid #d90416 !important;
  56783. }
  56784. ${selector} li {
  56785. outline: 1px solid #d90416 !important;
  56786. }
  56787. ${selector} dl {
  56788. outline: 1px solid #fd3427 !important;
  56789. }
  56790. ${selector} dt {
  56791. outline: 1px solid #ff0043 !important;
  56792. }
  56793. ${selector} dd {
  56794. outline: 1px solid #e80174 !important;
  56795. }
  56796. ${selector} figure {
  56797. outline: 1px solid #ff00bb !important;
  56798. }
  56799. ${selector} figcaption {
  56800. outline: 1px solid #bf0032 !important;
  56801. }
  56802. ${selector} table {
  56803. outline: 1px solid #00cc99 !important;
  56804. }
  56805. ${selector} caption {
  56806. outline: 1px solid #37ffc4 !important;
  56807. }
  56808. ${selector} thead {
  56809. outline: 1px solid #98daca !important;
  56810. }
  56811. ${selector} tbody {
  56812. outline: 1px solid #64a7a0 !important;
  56813. }
  56814. ${selector} tfoot {
  56815. outline: 1px solid #22746b !important;
  56816. }
  56817. ${selector} tr {
  56818. outline: 1px solid #86c0b2 !important;
  56819. }
  56820. ${selector} th {
  56821. outline: 1px solid #a1e7d6 !important;
  56822. }
  56823. ${selector} td {
  56824. outline: 1px solid #3f5a54 !important;
  56825. }
  56826. ${selector} col {
  56827. outline: 1px solid #6c9a8f !important;
  56828. }
  56829. ${selector} colgroup {
  56830. outline: 1px solid #6c9a9d !important;
  56831. }
  56832. ${selector} button {
  56833. outline: 1px solid #da8301 !important;
  56834. }
  56835. ${selector} datalist {
  56836. outline: 1px solid #c06000 !important;
  56837. }
  56838. ${selector} fieldset {
  56839. outline: 1px solid #d95100 !important;
  56840. }
  56841. ${selector} form {
  56842. outline: 1px solid #d23600 !important;
  56843. }
  56844. ${selector} input {
  56845. outline: 1px solid #fca600 !important;
  56846. }
  56847. ${selector} keygen {
  56848. outline: 1px solid #b31e00 !important;
  56849. }
  56850. ${selector} label {
  56851. outline: 1px solid #ee8900 !important;
  56852. }
  56853. ${selector} legend {
  56854. outline: 1px solid #de6d00 !important;
  56855. }
  56856. ${selector} meter {
  56857. outline: 1px solid #e8630c !important;
  56858. }
  56859. ${selector} optgroup {
  56860. outline: 1px solid #b33600 !important;
  56861. }
  56862. ${selector} option {
  56863. outline: 1px solid #ff8a00 !important;
  56864. }
  56865. ${selector} output {
  56866. outline: 1px solid #ff9619 !important;
  56867. }
  56868. ${selector} progress {
  56869. outline: 1px solid #e57c00 !important;
  56870. }
  56871. ${selector} select {
  56872. outline: 1px solid #e26e0f !important;
  56873. }
  56874. ${selector} textarea {
  56875. outline: 1px solid #cc5400 !important;
  56876. }
  56877. ${selector} details {
  56878. outline: 1px solid #33848f !important;
  56879. }
  56880. ${selector} summary {
  56881. outline: 1px solid #60a1a6 !important;
  56882. }
  56883. ${selector} command {
  56884. outline: 1px solid #438da1 !important;
  56885. }
  56886. ${selector} menu {
  56887. outline: 1px solid #449da6 !important;
  56888. }
  56889. ${selector} del {
  56890. outline: 1px solid #bf0000 !important;
  56891. }
  56892. ${selector} ins {
  56893. outline: 1px solid #400000 !important;
  56894. }
  56895. ${selector} img {
  56896. outline: 1px solid #22746b !important;
  56897. }
  56898. ${selector} iframe {
  56899. outline: 1px solid #64a7a0 !important;
  56900. }
  56901. ${selector} embed {
  56902. outline: 1px solid #98daca !important;
  56903. }
  56904. ${selector} object {
  56905. outline: 1px solid #00cc99 !important;
  56906. }
  56907. ${selector} param {
  56908. outline: 1px solid #37ffc4 !important;
  56909. }
  56910. ${selector} video {
  56911. outline: 1px solid #6ee866 !important;
  56912. }
  56913. ${selector} audio {
  56914. outline: 1px solid #027353 !important;
  56915. }
  56916. ${selector} source {
  56917. outline: 1px solid #012426 !important;
  56918. }
  56919. ${selector} canvas {
  56920. outline: 1px solid #a2f570 !important;
  56921. }
  56922. ${selector} track {
  56923. outline: 1px solid #59a600 !important;
  56924. }
  56925. ${selector} map {
  56926. outline: 1px solid #7be500 !important;
  56927. }
  56928. ${selector} area {
  56929. outline: 1px solid #305900 !important;
  56930. }
  56931. ${selector} a {
  56932. outline: 1px solid #ff62ab !important;
  56933. }
  56934. ${selector} em {
  56935. outline: 1px solid #800b41 !important;
  56936. }
  56937. ${selector} strong {
  56938. outline: 1px solid #ff1583 !important;
  56939. }
  56940. ${selector} i {
  56941. outline: 1px solid #803156 !important;
  56942. }
  56943. ${selector} b {
  56944. outline: 1px solid #cc1169 !important;
  56945. }
  56946. ${selector} u {
  56947. outline: 1px solid #ff0430 !important;
  56948. }
  56949. ${selector} s {
  56950. outline: 1px solid #f805e3 !important;
  56951. }
  56952. ${selector} small {
  56953. outline: 1px solid #d107b2 !important;
  56954. }
  56955. ${selector} abbr {
  56956. outline: 1px solid #4a0263 !important;
  56957. }
  56958. ${selector} q {
  56959. outline: 1px solid #240018 !important;
  56960. }
  56961. ${selector} cite {
  56962. outline: 1px solid #64003c !important;
  56963. }
  56964. ${selector} dfn {
  56965. outline: 1px solid #b4005a !important;
  56966. }
  56967. ${selector} sub {
  56968. outline: 1px solid #dba0c8 !important;
  56969. }
  56970. ${selector} sup {
  56971. outline: 1px solid #cc0256 !important;
  56972. }
  56973. ${selector} time {
  56974. outline: 1px solid #d6606d !important;
  56975. }
  56976. ${selector} code {
  56977. outline: 1px solid #e04251 !important;
  56978. }
  56979. ${selector} kbd {
  56980. outline: 1px solid #5e001f !important;
  56981. }
  56982. ${selector} samp {
  56983. outline: 1px solid #9c0033 !important;
  56984. }
  56985. ${selector} var {
  56986. outline: 1px solid #d90047 !important;
  56987. }
  56988. ${selector} mark {
  56989. outline: 1px solid #ff0053 !important;
  56990. }
  56991. ${selector} bdi {
  56992. outline: 1px solid #bf3668 !important;
  56993. }
  56994. ${selector} bdo {
  56995. outline: 1px solid #6f1400 !important;
  56996. }
  56997. ${selector} ruby {
  56998. outline: 1px solid #ff7b93 !important;
  56999. }
  57000. ${selector} rt {
  57001. outline: 1px solid #ff2f54 !important;
  57002. }
  57003. ${selector} rp {
  57004. outline: 1px solid #803e49 !important;
  57005. }
  57006. ${selector} span {
  57007. outline: 1px solid #cc2643 !important;
  57008. }
  57009. ${selector} br {
  57010. outline: 1px solid #db687d !important;
  57011. }
  57012. ${selector} wbr {
  57013. outline: 1px solid #db175b !important;
  57014. }`;
  57015. }
  57016. // src/outline/withOutline.ts
  57017. var withOutline = (StoryFn, context) => {
  57018. let globals = context.globals || {}, isActive = [!0, "true"].includes(globals[PARAM_KEY3]), isInDocs = context.viewMode === "docs", outlineStyles = useMemo4(() => outlineCSS(isInDocs ? '[data-story-block="true"]' : ".sb-show-main"), [context]);
  57019. return useEffect6(() => {
  57020. let selectorId = isInDocs ? `addon-outline-docs-${context.id}` : "addon-outline";
  57021. return isActive ? addOutlineStyles(selectorId, outlineStyles) : clearStyles2(selectorId), () => {
  57022. clearStyles2(selectorId);
  57023. };
  57024. }, [isActive, outlineStyles, context]), StoryFn();
  57025. };
  57026. // src/outline/preview.ts
  57027. var decorators3 = globalThis.FEATURES?.outline ? [withOutline] : [], initialGlobals3 = {
  57028. [PARAM_KEY3]: !1
  57029. };
  57030. // src/viewport/constants.ts
  57031. var ADDON_ID6 = "storybook/viewport", PARAM_KEY4 = "viewport", PANEL_ID3 = `${ADDON_ID6}/panel`, TOOL_ID2 = `${ADDON_ID6}/tool`;
  57032. // src/viewport/preview.ts
  57033. var initialGlobals4 = {
  57034. [PARAM_KEY4]: { value: void 0, isRotated: !1 }
  57035. };
  57036. // src/csf/index.ts
  57037. var sanitize = (string) => string.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-").replace(/-+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), sanitizeSafe = (string, part) => {
  57038. let sanitized = sanitize(string);
  57039. if (sanitized === "")
  57040. throw new Error(`Invalid ${part} '${string}', must include alphanumeric characters`);
  57041. return sanitized;
  57042. }, toId = (kind, name) => `${sanitizeSafe(kind, "kind")}${name ? `--${sanitizeSafe(name, "name")}` : ""}`;
  57043. // ../../node_modules/es-toolkit/dist/array/countBy.mjs
  57044. function countBy(arr, mapper) {
  57045. let result = {};
  57046. for (let i = 0; i < arr.length; i++) {
  57047. let item = arr[i], key = mapper(item);
  57048. result[key] = (result[key] ?? 0) + 1;
  57049. }
  57050. return result;
  57051. }
  57052. // ../../node_modules/es-toolkit/dist/array/partition.mjs
  57053. function partition(arr, isInTruthy) {
  57054. let truthy = [], falsy = [];
  57055. for (let i = 0; i < arr.length; i++) {
  57056. let item = arr[i];
  57057. isInTruthy(item) ? truthy.push(item) : falsy.push(item);
  57058. }
  57059. return [truthy, falsy];
  57060. }
  57061. // src/manager-api/lib/stories.ts
  57062. var import_memoizerific6 = __toESM(require_memoizerific(), 1);
  57063. init_esm();
  57064. // src/manager-api/lib/intersect.ts
  57065. var intersect_default = (a3, b) => !Array.isArray(a3) || !Array.isArray(b) || !a3.length || !b.length ? [] : a3.reduce((acc, aValue) => (b.includes(aValue) && acc.push(aValue), acc), []);
  57066. // src/manager-api/lib/stories.ts
  57067. var TITLE_PATH_SEPARATOR = /\s*\/\s*/, denormalizeStoryParameters = ({
  57068. globalParameters,
  57069. kindParameters,
  57070. stories
  57071. }) => mapValues(stories, (storyData) => ({
  57072. ...storyData,
  57073. parameters: combineParameters2(
  57074. globalParameters,
  57075. kindParameters[storyData.kind],
  57076. storyData.parameters
  57077. )
  57078. })), transformSetStoriesStoryDataToPreparedStoryIndex = (stories) => ({ v: 5, entries: Object.entries(stories).reduce(
  57079. (acc, [id, story]) => {
  57080. if (!story)
  57081. return acc;
  57082. let { docsOnly, fileName, ...parameters2 } = story.parameters, base = {
  57083. title: story.kind,
  57084. id,
  57085. name: story.name,
  57086. importPath: fileName
  57087. };
  57088. if (docsOnly)
  57089. acc[id] = {
  57090. type: "docs",
  57091. tags: ["stories-mdx"],
  57092. storiesImports: [],
  57093. ...base
  57094. };
  57095. else {
  57096. let { argTypes, args, initialArgs } = story;
  57097. acc[id] = {
  57098. type: "story",
  57099. subtype: "story",
  57100. ...base,
  57101. parameters: parameters2,
  57102. argTypes,
  57103. args,
  57104. initialArgs
  57105. };
  57106. }
  57107. return acc;
  57108. },
  57109. {}
  57110. ) }), transformStoryIndexV2toV3 = (index4) => ({
  57111. v: 3,
  57112. stories: Object.values(index4.stories).reduce(
  57113. (acc, entry) => (acc[entry.id] = {
  57114. ...entry,
  57115. title: entry.kind,
  57116. name: entry.name || entry.story,
  57117. importPath: entry.parameters.fileName || ""
  57118. }, acc),
  57119. {}
  57120. )
  57121. }), transformStoryIndexV3toV4 = (index4) => {
  57122. let countByTitle = countBy(Object.values(index4.stories), (item) => item.title);
  57123. return {
  57124. v: 4,
  57125. entries: Object.values(index4.stories).reduce(
  57126. (acc, entry) => {
  57127. let type5 = "story";
  57128. return (entry.parameters?.docsOnly || entry.name === "Page" && countByTitle[entry.title] === 1) && (type5 = "docs"), acc[entry.id] = {
  57129. type: type5,
  57130. ...type5 === "docs" && { tags: ["stories-mdx"], storiesImports: [] },
  57131. ...entry
  57132. }, delete acc[entry.id].story, delete acc[entry.id].kind, acc;
  57133. },
  57134. {}
  57135. )
  57136. };
  57137. }, transformStoryIndexV4toV5 = (index4) => ({
  57138. v: 5,
  57139. entries: Object.values(index4.entries).reduce(
  57140. (acc, entry) => (acc[entry.id] = {
  57141. ...entry,
  57142. tags: entry.tags ? [Tag.DEV, Tag.TEST, ...entry.tags] : [Tag.DEV]
  57143. }, acc),
  57144. {}
  57145. )
  57146. }), transformStoryIndexToStoriesHash = (input2, { provider, docsOptions, filters, allStatuses, statusFilterKey }) => {
  57147. if (!input2.v)
  57148. throw new Error("Composition: Missing stories.json version");
  57149. let index4 = input2;
  57150. index4 = index4.v === 2 ? transformStoryIndexV2toV3(index4) : index4, index4 = index4.v === 3 ? transformStoryIndexV3toV4(index4) : index4, index4 = index4.v === 4 ? transformStoryIndexV4toV5(index4) : index4, index4 = index4;
  57151. let indexEntries = Object.values(index4.entries), filterFunctions = Object.values(filters), statusFilterFn = statusFilterKey ? filters[statusFilterKey] : void 0, entryValues = indexEntries.filter((entry) => {
  57152. let statuses = allStatuses[entry.id] ?? {};
  57153. return statusFilterFn && !statusFilterFn({ ...entry, statuses }) && !indexEntries.filter((item) => "parent" in item && item.parent === entry.id).some(
  57154. (child) => statusFilterFn({ ...child, statuses: allStatuses[child.id] ?? {} })
  57155. ) ? !1 : Object.values(statuses).some(({ value }) => value === "status-value:error") || filterFunctions.every((fn4) => fn4({ ...entry, statuses })) ? !0 : indexEntries.filter((item) => "parent" in item && item.parent === entry.id).some((child) => filterFunctions.every((fn4) => fn4({ ...child, statuses })));
  57156. }), { sidebar = {} } = provider.getConfig(), { showRoots, collapsedRoots = [], renderLabel } = sidebar, setShowRoots = typeof showRoots < "u", storiesHashOutOfOrder = entryValues.reduce((acc, item) => {
  57157. if (docsOptions.docsMode && item.type !== "docs")
  57158. return acc;
  57159. let { title } = item, groups = title.trim().split(TITLE_PATH_SEPARATOR), root2 = (!setShowRoots || showRoots) && groups.length > 1 ? [groups.shift()] : [], names = [...root2, ...groups], paths = names.reduce((list, name, idx) => {
  57160. let parent = idx > 0 && list[idx - 1], id = sanitize(parent ? `${parent}-${name}` : name);
  57161. if (name.trim() === "")
  57162. throw new Error(dedent`Invalid title ${title} ending in slash.`);
  57163. if (parent === id)
  57164. throw new Error(
  57165. dedent`
  57166. Invalid part '${name}', leading to id === parentId ('${id}'), inside title '${title}'
  57167. Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
  57168. `
  57169. );
  57170. return list.push(id), list;
  57171. }, []);
  57172. return paths.forEach((id, idx) => {
  57173. let childId = paths[idx + 1] || item.id;
  57174. root2.length && idx === 0 ? acc[id] = merge_default(acc[id] || {}, {
  57175. type: "root",
  57176. id,
  57177. name: names[idx],
  57178. tags: [],
  57179. depth: idx,
  57180. renderLabel,
  57181. startCollapsed: collapsedRoots.includes(id),
  57182. // Note that this will later get appended to the previous list of children (see below)
  57183. children: [childId]
  57184. }) : (!acc[id] || acc[id].type === "component") && idx === paths.length - 1 ? acc[id] = merge_default(acc[id] || {}, {
  57185. type: "component",
  57186. id,
  57187. name: names[idx],
  57188. tags: [],
  57189. parent: paths[idx - 1],
  57190. depth: idx,
  57191. renderLabel,
  57192. ...childId && {
  57193. children: [childId]
  57194. }
  57195. }) : acc[id] = merge_default(acc[id] || {}, {
  57196. type: "group",
  57197. id,
  57198. name: names[idx],
  57199. tags: [],
  57200. parent: paths[idx - 1],
  57201. depth: idx,
  57202. renderLabel,
  57203. ...childId && {
  57204. children: [childId]
  57205. }
  57206. });
  57207. }), acc[item.id] = {
  57208. tags: [],
  57209. ...item,
  57210. depth: paths.length,
  57211. parent: "parent" in item ? item.parent : paths[paths.length - 1],
  57212. renderLabel,
  57213. prepared: !!item.parameters
  57214. }, acc;
  57215. }, {});
  57216. function addItem(acc, item) {
  57217. if (acc[item.id] || (acc[item.id] = item, "children" in item && item.children && (item.children.forEach((childId) => addItem(acc, storiesHashOutOfOrder[childId])), item.tags = item.children.reduce((currentTags, childId) => currentTags === null ? acc[childId].tags : intersect_default(currentTags, acc[childId].tags), null) || [])), item.type === "component") {
  57218. let firstChild = acc[item.children[0]];
  57219. firstChild && "importPath" in firstChild && (item.importPath = firstChild.importPath);
  57220. }
  57221. return acc;
  57222. }
  57223. let storiesHash = Object.values(storiesHashOutOfOrder).filter((i) => i.type !== "root" && !i.parent).reduce((acc, item) => addItem(acc, item), {});
  57224. return storiesHash = Object.values(storiesHashOutOfOrder).filter((i) => i.type === "root").reduce(addItem, storiesHash), storiesHash = Object.values(storiesHash).reduce((acc, item) => {
  57225. if (item.type === "story" && item.subtype === "test") {
  57226. let story = acc[item.parent], component = acc[story.parent];
  57227. acc[component.id] = {
  57228. ...component,
  57229. // Remove test from the component node as it will be attached to the story node instead
  57230. children: component.children && component.children.filter((id) => id !== item.id)
  57231. }, acc[story.id] = {
  57232. ...story,
  57233. // Add test to the story node
  57234. children: (story.children || []).concat(item.id)
  57235. }, acc[item.id] = {
  57236. ...item,
  57237. depth: item.depth + 1
  57238. };
  57239. } else
  57240. acc[item.id] = item;
  57241. return acc;
  57242. }, {}), storiesHash;
  57243. }, addPreparedStories = (newHash, oldHash) => oldHash ? Object.fromEntries(
  57244. Object.entries(newHash).map(([id, newEntry]) => {
  57245. let oldEntry = oldHash[id];
  57246. return newEntry.type === "story" && oldEntry?.type === "story" && oldEntry.prepared ? ("children" in oldEntry && delete oldEntry.children, [id, { ...oldEntry, ...newEntry, prepared: !0 }]) : [id, newEntry];
  57247. })
  57248. ) : newHash, getComponentLookupList = (0, import_memoizerific6.default)(1)((hash4) => Object.entries(hash4).reduce((acc, i) => {
  57249. let value = i[1];
  57250. return value.type === "component" && acc.push([...value.children]), acc;
  57251. }, [])), getStoriesLookupList = (0, import_memoizerific6.default)(1)((hash4) => Object.keys(hash4).filter((k) => ["story", "docs"].includes(hash4[k].type)));
  57252. // src/manager-api/modules/refs.ts
  57253. var { location: location3, fetch: fetch2 } = scope, getSourceType = (source, refId) => {
  57254. let { origin: localOrigin, pathname: localPathname } = location3, { origin: sourceOrigin, pathname: sourcePathname } = new URL(source), localFull = `${localOrigin + localPathname}`.replace(/\/[^\/]*$/, ""), sourceFull = `${sourceOrigin + sourcePathname}`.replace(/\/[^\/]*$/, "");
  57255. return localFull === sourceFull ? ["local", sourceFull] : refId || source ? ["external", sourceFull] : [null, null];
  57256. }, defaultStoryMapper = (b, a3) => ({ ...a3, kind: a3.kind.replace("|", "/") }), addRefIds = (input2, ref) => Object.entries(input2).reduce((acc, [id, item]) => ({ ...acc, [id]: { ...item, refId: ref.id } }), {});
  57257. async function handleRequest(request) {
  57258. if (!request)
  57259. return {};
  57260. try {
  57261. let response = await request;
  57262. if (response === !1 || response === !0)
  57263. throw new Error("Unexpected boolean response");
  57264. if (!response.ok) {
  57265. if (response.status === 401)
  57266. try {
  57267. let json4 = await response.json();
  57268. if (json4.loginUrl)
  57269. return { loginUrl: json4.loginUrl };
  57270. } catch {
  57271. }
  57272. throw new Error(`Unexpected response not OK: ${response.statusText}`);
  57273. }
  57274. let json3 = await response.json();
  57275. return json3.entries || json3.stories ? { storyIndex: json3 } : json3;
  57276. } catch (err) {
  57277. return { indexError: err };
  57278. }
  57279. }
  57280. var parseUrl = (url) => {
  57281. let credentialsRegex = /https?:\/\/(.+:.+)@/, cleanUrl = url, authorization, [, credentials] = url.match(credentialsRegex) || [];
  57282. return credentials && (cleanUrl = url.replace(`${credentials}@`, ""), authorization = btoa(`${credentials}`)), {
  57283. url: cleanUrl,
  57284. authorization
  57285. };
  57286. }, map = (input2, ref, options) => {
  57287. let { storyMapper } = options;
  57288. return storyMapper ? Object.entries(input2).reduce((acc, [id, item]) => ({ ...acc, [id]: storyMapper(ref, item) }), {}) : input2;
  57289. }, init4 = ({ store: store2, provider, singleStory, docsOptions = {} }, { runCheck = !0 } = {}) => {
  57290. let api = {
  57291. findRef: (source) => {
  57292. let refs2 = api.getRefs();
  57293. return Object.values(refs2).find(({ url }) => url.match(source));
  57294. },
  57295. changeRefVersion: async (id, url) => {
  57296. let { versions, title } = api.getRefs()[id], ref = {
  57297. id,
  57298. url,
  57299. versions,
  57300. title,
  57301. index: {},
  57302. filteredIndex: {},
  57303. expanded: !0
  57304. };
  57305. await api.setRef(id, { ...ref, type: "unknown" }, !1), await api.checkRef(ref);
  57306. },
  57307. changeRefState: (id, previewInitialized) => {
  57308. let { [id]: ref, ...updated } = api.getRefs();
  57309. updated[id] = { ...ref, previewInitialized }, store2.setState({
  57310. refs: updated
  57311. });
  57312. },
  57313. checkRef: async (ref) => {
  57314. let { id, url, version: version2, type: type5 } = ref, isPublic = type5 === "server-checked", loadedData = {}, query = version2 ? `?version=${version2}` : "", credentials = isPublic ? "omit" : "include", urlParseResult = parseUrl(url), headers = {
  57315. Accept: "application/json"
  57316. };
  57317. urlParseResult.authorization && Object.assign(headers, {
  57318. Authorization: `Basic ${urlParseResult.authorization}`
  57319. });
  57320. let [indexResult, storiesResult] = await Promise.all(
  57321. ["index.json", "stories.json"].map(
  57322. async (file) => handleRequest(
  57323. fetch2(`${urlParseResult.url}/${file}${query}`, {
  57324. headers,
  57325. credentials
  57326. })
  57327. )
  57328. )
  57329. );
  57330. if (!indexResult.indexError || !storiesResult.indexError) {
  57331. let metadata = await handleRequest(
  57332. fetch2(`${urlParseResult.url}/metadata.json${query}`, {
  57333. headers,
  57334. credentials,
  57335. cache: "no-cache"
  57336. }).catch(() => !1)
  57337. );
  57338. Object.assign(loadedData, {
  57339. ...indexResult.indexError ? storiesResult : indexResult,
  57340. ...!metadata.indexError && metadata
  57341. });
  57342. } else isPublic || (loadedData.indexError = {
  57343. message: dedent`
  57344. Error: Loading of ref failed
  57345. at fetch (lib/api/src/modules/refs.ts)
  57346. URL: ${urlParseResult.url}
  57347. We weren't able to load the above URL,
  57348. it's possible a CORS error happened.
  57349. Please check your dev-tools network tab.
  57350. `
  57351. });
  57352. let versions = ref.versions && Object.keys(ref.versions).length ? ref.versions : loadedData.versions;
  57353. await api.setRef(id, {
  57354. id,
  57355. url: urlParseResult.url,
  57356. ...loadedData,
  57357. ...versions ? { versions } : {},
  57358. type: loadedData.storyIndex ? "lazy" : "auto-inject"
  57359. });
  57360. },
  57361. getRefs: () => {
  57362. let { refs: refs2 = {} } = store2.getState();
  57363. return refs2;
  57364. },
  57365. setRef: async (id, { storyIndex, setStoriesData, ...rest }, ready = !1) => {
  57366. if (singleStory)
  57367. return;
  57368. let internal_index, index4, filteredIndex, { filters } = store2.getState(), { storyMapper = defaultStoryMapper } = provider.getConfig(), ref = api.getRefs()[id];
  57369. (storyIndex || setStoriesData) && (internal_index = setStoriesData ? transformSetStoriesStoryDataToPreparedStoryIndex(
  57370. map(setStoriesData, ref, { storyMapper })
  57371. ) : storyIndex, filteredIndex = transformStoryIndexToStoriesHash(storyIndex, {
  57372. provider,
  57373. docsOptions,
  57374. filters,
  57375. allStatuses: {}
  57376. }), index4 = transformStoryIndexToStoriesHash(storyIndex, {
  57377. provider,
  57378. docsOptions,
  57379. filters: {},
  57380. allStatuses: {}
  57381. })), index4 && (index4 = addRefIds(index4, ref)), filteredIndex && (filteredIndex = addRefIds(filteredIndex, ref)), await api.updateRef(id, { ...ref, ...rest, index: index4, filteredIndex, internal_index });
  57382. },
  57383. updateRef: async (id, data) => {
  57384. let { [id]: ref, ...updated } = api.getRefs();
  57385. updated[id] = { ...ref, ...data };
  57386. let ordered = Object.keys(initialState2).reduce((obj, key) => (obj[key] = updated[key], obj), {});
  57387. await store2.setState({
  57388. refs: ordered
  57389. });
  57390. }
  57391. }, refs = !singleStory && scope.REFS || {}, initialState2 = refs;
  57392. return runCheck && new Promise(async (resolve) => {
  57393. for (let ref of Object.values(refs))
  57394. await api.checkRef({ ...ref, stories: {} });
  57395. resolve(void 0);
  57396. }), {
  57397. api,
  57398. state: {
  57399. refs: initialState2
  57400. }
  57401. };
  57402. };
  57403. // src/manager-api/lib/events.ts
  57404. var getEventMetadata = (context, fullAPI) => {
  57405. let { source, refId, type: type5 } = context, [sourceType, sourceLocation] = getSourceType(source, refId), ref;
  57406. (refId || sourceType === "external") && (ref = refId && fullAPI.getRefs()[refId] ? fullAPI.getRefs()[refId] : fullAPI.findRef(sourceLocation));
  57407. let meta = {
  57408. source,
  57409. sourceType,
  57410. sourceLocation,
  57411. refId,
  57412. ref,
  57413. type: type5
  57414. };
  57415. switch (!0) {
  57416. case typeof refId == "string":
  57417. case sourceType === "local":
  57418. case sourceType === "external":
  57419. return meta;
  57420. // if we couldn't find the source, something risky happened, we ignore the input, and log a warning
  57421. default:
  57422. return logger.warn(`Received a ${type5} frame that was not configured as a ref`), null;
  57423. }
  57424. };
  57425. // src/manager-api/modules/globals.ts
  57426. var init5 = ({ store: store2, fullAPI, provider }) => {
  57427. let api = {
  57428. getGlobals() {
  57429. return store2.getState().globals;
  57430. },
  57431. getUserGlobals() {
  57432. return store2.getState().userGlobals;
  57433. },
  57434. getStoryGlobals() {
  57435. return store2.getState().storyGlobals;
  57436. },
  57437. getGlobalTypes() {
  57438. return store2.getState().globalTypes;
  57439. },
  57440. updateGlobals(newGlobals) {
  57441. provider.channel?.emit(UPDATE_GLOBALS, {
  57442. globals: newGlobals,
  57443. options: {
  57444. target: "storybook-preview-iframe"
  57445. }
  57446. });
  57447. }
  57448. }, state3 = {
  57449. globals: {},
  57450. userGlobals: {},
  57451. storyGlobals: {},
  57452. globalTypes: {}
  57453. }, updateGlobals = ({
  57454. globals,
  57455. storyGlobals,
  57456. userGlobals
  57457. }) => {
  57458. let {
  57459. globals: currentGlobals,
  57460. userGlobals: currentUserGlobals,
  57461. storyGlobals: currentStoryGlobals
  57462. } = store2.getState();
  57463. dequal(globals, currentGlobals) || store2.setState({ globals }), dequal(userGlobals, currentUserGlobals) || store2.setState({ userGlobals }), dequal(storyGlobals, currentStoryGlobals) || store2.setState({ storyGlobals });
  57464. };
  57465. return provider.channel?.on(
  57466. GLOBALS_UPDATED,
  57467. function({ globals, storyGlobals, userGlobals }) {
  57468. let { ref } = getEventMetadata(this, fullAPI);
  57469. ref ? logger.warn(
  57470. "received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."
  57471. ) : updateGlobals({ globals, storyGlobals, userGlobals });
  57472. }
  57473. ), provider.channel?.on(
  57474. SET_GLOBALS,
  57475. function({ globals, globalTypes }) {
  57476. let { ref } = getEventMetadata(this, fullAPI), currentUserGlobals = store2.getState()?.userGlobals;
  57477. ref ? Object.keys(globals).length > 0 && logger.warn("received globals from a non-local ref. This is not currently supported.") : store2.setState({ globals, userGlobals: globals, globalTypes }), currentUserGlobals && Object.keys(currentUserGlobals).length !== 0 && !dequal(globals, currentUserGlobals) && api.updateGlobals(currentUserGlobals);
  57478. }
  57479. ), {
  57480. api,
  57481. state: state3
  57482. };
  57483. };
  57484. // src/manager-api/modules/layout.ts
  57485. var layout_exports = {};
  57486. __export(layout_exports, {
  57487. ActiveTabs: () => ActiveTabs,
  57488. DEFAULT_BOTTOM_PANEL_HEIGHT: () => DEFAULT_BOTTOM_PANEL_HEIGHT,
  57489. DEFAULT_NAV_SIZE: () => DEFAULT_NAV_SIZE,
  57490. DEFAULT_RIGHT_PANEL_WIDTH: () => DEFAULT_RIGHT_PANEL_WIDTH,
  57491. focusableUIElements: () => focusableUIElements,
  57492. getDefaultLayoutState: () => getDefaultLayoutState,
  57493. init: () => init6
  57494. });
  57495. init_dist();
  57496. init_create();
  57497. var { document: document8 } = scope, isFunction4 = (val) => typeof val == "function", ActiveTabs = {
  57498. SIDEBAR: "sidebar",
  57499. CANVAS: "canvas",
  57500. ADDONS: "addons"
  57501. }, DEFAULT_NAV_SIZE = 300, DEFAULT_BOTTOM_PANEL_HEIGHT = 300, DEFAULT_RIGHT_PANEL_WIDTH = 400, getDefaultLayoutState = () => ({
  57502. ui: {
  57503. enableShortcuts: !0
  57504. },
  57505. layout: {
  57506. initialActive: ActiveTabs.CANVAS,
  57507. showToolbar: !0,
  57508. navSize: DEFAULT_NAV_SIZE,
  57509. bottomPanelHeight: DEFAULT_BOTTOM_PANEL_HEIGHT,
  57510. rightPanelWidth: DEFAULT_RIGHT_PANEL_WIDTH,
  57511. recentVisibleSizes: {
  57512. navSize: DEFAULT_NAV_SIZE,
  57513. bottomPanelHeight: DEFAULT_BOTTOM_PANEL_HEIGHT,
  57514. rightPanelWidth: DEFAULT_RIGHT_PANEL_WIDTH
  57515. },
  57516. panelPosition: "bottom",
  57517. showTabs: !0
  57518. },
  57519. layoutCustomisations: {
  57520. showSidebar: void 0,
  57521. showToolbar: void 0
  57522. },
  57523. selectedPanel: void 0,
  57524. theme: create()
  57525. }), focusableUIElements = {
  57526. addonPanel: "storybook-panel-region",
  57527. storySearchField: "storybook-explorer-searchfield",
  57528. storyListMenu: "storybook-explorer-menu",
  57529. storyPanelRoot: "storybook-panel-root",
  57530. showAddonPanel: "storybook-show-addon-panel",
  57531. sidebarRegion: "storybook-sidebar-region",
  57532. showSidebar: "storybook-show-sidebar"
  57533. }, getIsNavShown = (state3) => state3.layout.navSize > 0, getIsPanelShown = (state3) => {
  57534. let { bottomPanelHeight, rightPanelWidth, panelPosition } = state3.layout;
  57535. return panelPosition === "bottom" && bottomPanelHeight > 0 || panelPosition === "right" && rightPanelWidth > 0;
  57536. }, getIsFullscreen = (state3) => !getIsNavShown(state3) && !getIsPanelShown(state3), getRecentVisibleSizes = (layoutState) => ({
  57537. navSize: layoutState.navSize > 0 ? layoutState.navSize : layoutState.recentVisibleSizes.navSize,
  57538. bottomPanelHeight: layoutState.bottomPanelHeight > 0 ? layoutState.bottomPanelHeight : layoutState.recentVisibleSizes.bottomPanelHeight,
  57539. rightPanelWidth: layoutState.rightPanelWidth > 0 ? layoutState.rightPanelWidth : layoutState.recentVisibleSizes.rightPanelWidth
  57540. }), init6 = ({ store: store2, provider, singleStory }) => {
  57541. let api = {
  57542. toggleFullscreen(nextState) {
  57543. return store2.setState(
  57544. (state3) => {
  57545. let isFullscreen = getIsFullscreen(state3), shouldFullscreen = typeof nextState == "boolean" ? nextState : !isFullscreen;
  57546. return shouldFullscreen === isFullscreen ? { layout: state3.layout } : shouldFullscreen ? {
  57547. layout: {
  57548. ...state3.layout,
  57549. navSize: 0,
  57550. bottomPanelHeight: 0,
  57551. rightPanelWidth: 0,
  57552. recentVisibleSizes: getRecentVisibleSizes(state3.layout)
  57553. }
  57554. } : {
  57555. layout: {
  57556. ...state3.layout,
  57557. navSize: state3.singleStory ? 0 : state3.layout.recentVisibleSizes.navSize,
  57558. bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight,
  57559. rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth
  57560. }
  57561. };
  57562. },
  57563. { persistence: "session" }
  57564. );
  57565. },
  57566. togglePanel(nextState) {
  57567. return store2.setState(
  57568. (state3) => {
  57569. let isPanelShown = getIsPanelShown(state3), shouldShowPanel = typeof nextState == "boolean" ? nextState : !isPanelShown;
  57570. return shouldShowPanel === isPanelShown ? { layout: state3.layout } : shouldShowPanel ? {
  57571. layout: {
  57572. ...state3.layout,
  57573. bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight,
  57574. rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth
  57575. }
  57576. } : {
  57577. layout: {
  57578. ...state3.layout,
  57579. bottomPanelHeight: 0,
  57580. rightPanelWidth: 0,
  57581. recentVisibleSizes: getRecentVisibleSizes(state3.layout)
  57582. }
  57583. };
  57584. },
  57585. { persistence: "session" }
  57586. );
  57587. },
  57588. togglePanelPosition(position2) {
  57589. return store2.setState(
  57590. (state3) => {
  57591. let nextPosition = position2 || (state3.layout.panelPosition === "right" ? "bottom" : "right");
  57592. return {
  57593. layout: {
  57594. ...state3.layout,
  57595. panelPosition: nextPosition,
  57596. bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight,
  57597. rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth
  57598. }
  57599. };
  57600. },
  57601. { persistence: "permanent" }
  57602. );
  57603. },
  57604. toggleNav(nextState) {
  57605. return store2.setState(
  57606. (state3) => {
  57607. if (state3.singleStory)
  57608. return { layout: state3.layout };
  57609. let isNavShown = getIsNavShown(state3), shouldShowNav = typeof nextState == "boolean" ? nextState : !isNavShown;
  57610. return shouldShowNav === isNavShown ? { layout: state3.layout } : shouldShowNav ? {
  57611. layout: {
  57612. ...state3.layout,
  57613. navSize: state3.layout.recentVisibleSizes.navSize
  57614. }
  57615. } : {
  57616. layout: {
  57617. ...state3.layout,
  57618. navSize: 0,
  57619. recentVisibleSizes: getRecentVisibleSizes(state3.layout)
  57620. }
  57621. };
  57622. },
  57623. { persistence: "session" }
  57624. );
  57625. },
  57626. toggleToolbar(toggled) {
  57627. return store2.setState(
  57628. (state3) => {
  57629. let value = typeof toggled < "u" ? toggled : !state3.layout.showToolbar;
  57630. return {
  57631. layout: {
  57632. ...state3.layout,
  57633. showToolbar: value
  57634. }
  57635. };
  57636. },
  57637. { persistence: "session" }
  57638. );
  57639. },
  57640. setSizes({
  57641. navSize,
  57642. bottomPanelHeight,
  57643. rightPanelWidth
  57644. }) {
  57645. return store2.setState(
  57646. (state3) => {
  57647. let nextLayoutState = {
  57648. ...state3.layout,
  57649. navSize: navSize ?? state3.layout.navSize,
  57650. bottomPanelHeight: bottomPanelHeight ?? state3.layout.bottomPanelHeight,
  57651. rightPanelWidth: rightPanelWidth ?? state3.layout.rightPanelWidth
  57652. };
  57653. return {
  57654. layout: {
  57655. ...nextLayoutState,
  57656. recentVisibleSizes: getRecentVisibleSizes(nextLayoutState)
  57657. }
  57658. };
  57659. },
  57660. { persistence: "session" }
  57661. );
  57662. },
  57663. /**
  57664. * Attempts to focus (and select) an element identified by its ID. It is the responsibility of
  57665. * the callee to ensure that the element is present in the DOM and that no focus trap is
  57666. * available. When polling is enabled, this API polls and attempts to perform the focus for a
  57667. * set duration (max 500ms), so that race conditions can be avoided with the current API
  57668. * design.
  57669. *
  57670. * @param elementId The id of the element to focus.
  57671. * @param options When a boolean, treated as the `select` option for backwards compatibility.
  57672. * When an object, may contain `select` and `poll` options.
  57673. * @returns Whether the element was successfully focused. Returns a Promise when polling.
  57674. */
  57675. focusOnUIElement(elementId, options) {
  57676. let {
  57677. forceFocus = !1,
  57678. select = !1,
  57679. poll = !0
  57680. } = typeof options == "boolean" ? { select: options } : options ?? {};
  57681. if (!elementId)
  57682. return !1;
  57683. let attemptFocus = () => {
  57684. let element = document8.getElementById(elementId);
  57685. return !element || (element.focus(), element !== document8.activeElement && forceFocus && element.getAttribute("tabindex") === null && (element.setAttribute("tabindex", "-1"), element.focus()), element !== document8.activeElement && element.id !== document8.activeElement?.id) ? !1 : (select && element.select?.(), !0);
  57686. };
  57687. return attemptFocus() ? !0 : poll ? new Promise((resolve) => {
  57688. let startTime = Date.now(), maxDuration = 500, intervalId = setInterval(() => {
  57689. let elapsed = Date.now() - startTime;
  57690. if (attemptFocus()) {
  57691. clearInterval(intervalId), resolve(!0);
  57692. return;
  57693. }
  57694. elapsed >= maxDuration && (clearInterval(intervalId), resolve(!1));
  57695. }, 50);
  57696. }) : !1;
  57697. },
  57698. getInitialOptions() {
  57699. let { theme: theme3, selectedPanel, layoutCustomisations, ...options } = provider.getConfig(), defaultLayoutState = getDefaultLayoutState();
  57700. return {
  57701. ...defaultLayoutState,
  57702. layout: {
  57703. ...toMerged(
  57704. defaultLayoutState.layout,
  57705. pick(options, Object.keys(defaultLayoutState.layout))
  57706. ),
  57707. ...singleStory && { navSize: 0 }
  57708. },
  57709. layoutCustomisations: {
  57710. ...defaultLayoutState.layoutCustomisations,
  57711. ...layoutCustomisations ?? {}
  57712. },
  57713. ui: toMerged(defaultLayoutState.ui, pick(options, Object.keys(defaultLayoutState.ui))),
  57714. selectedPanel: selectedPanel || defaultLayoutState.selectedPanel,
  57715. theme: theme3 || defaultLayoutState.theme
  57716. };
  57717. },
  57718. getIsFullscreen() {
  57719. return getIsFullscreen(store2.getState());
  57720. },
  57721. getIsPanelShown() {
  57722. return getIsPanelShown(store2.getState());
  57723. },
  57724. getIsNavShown() {
  57725. return getIsNavShown(store2.getState());
  57726. },
  57727. getShowToolbarWithCustomisations(showToolbar) {
  57728. let state3 = store2.getState();
  57729. return isFunction4(state3.layoutCustomisations.showToolbar) ? state3.layoutCustomisations.showToolbar(state3, showToolbar) ?? showToolbar : showToolbar;
  57730. },
  57731. getShowPanelWithCustomisations(showPanel) {
  57732. let state3 = store2.getState();
  57733. return isFunction4(state3.layoutCustomisations.showPanel) ? state3.layoutCustomisations.showPanel(state3, showPanel) ?? showPanel : showPanel;
  57734. },
  57735. getNavSizeWithCustomisations(navSize) {
  57736. let state3 = store2.getState();
  57737. if (isFunction4(state3.layoutCustomisations.showSidebar)) {
  57738. let shouldShowNav = state3.layoutCustomisations.showSidebar(state3, navSize !== 0);
  57739. if (navSize === 0 && shouldShowNav === !0)
  57740. return state3.layout.recentVisibleSizes.navSize;
  57741. if (navSize !== 0 && shouldShowNav === !1)
  57742. return 0;
  57743. }
  57744. return navSize;
  57745. },
  57746. setOptions: (options) => {
  57747. let { layout, ui, selectedPanel, theme: theme3 } = store2.getState();
  57748. if (!options)
  57749. return;
  57750. let updatedLayout = {
  57751. ...layout,
  57752. ...options.layout || {},
  57753. ...pick(options, Object.keys(layout)),
  57754. ...singleStory && { navSize: 0 }
  57755. }, updatedUi = {
  57756. ...ui,
  57757. ...options.ui,
  57758. ...toMerged(options.ui || {}, pick(options, Object.keys(ui)))
  57759. }, updatedTheme = {
  57760. ...theme3,
  57761. ...options.theme
  57762. }, modification = {};
  57763. isEqual(ui, updatedUi) || (modification.ui = updatedUi), isEqual(layout, updatedLayout) || (modification.layout = updatedLayout), options.selectedPanel && !isEqual(selectedPanel, options.selectedPanel) && (modification.selectedPanel = options.selectedPanel), Object.keys(modification).length && store2.setState(modification, { persistence: "permanent" }), isEqual(theme3, updatedTheme) || store2.setState({ theme: updatedTheme });
  57764. }
  57765. }, persisted = pick(store2.getState(), ["layout", "selectedPanel"]);
  57766. return provider.channel?.on(SET_CONFIG, () => {
  57767. api.setOptions(merge_default(api.getInitialOptions(), persisted));
  57768. }), {
  57769. api,
  57770. state: merge_default(api.getInitialOptions(), persisted)
  57771. };
  57772. };
  57773. // src/manager-api/modules/notifications.ts
  57774. var notifications_exports = {};
  57775. __export(notifications_exports, {
  57776. init: () => init7
  57777. });
  57778. var init7 = ({ store: store2 }) => ({
  57779. api: {
  57780. addNotification: (newNotification) => {
  57781. store2.setState(({ notifications }) => {
  57782. let [existing, others] = partition(notifications, (n) => n.id === newNotification.id);
  57783. return existing.forEach((notification) => {
  57784. notification.onClear && notification.onClear({ dismissed: !1, timeout: !1 });
  57785. }), { notifications: [...others, newNotification] };
  57786. });
  57787. },
  57788. clearNotification: (notificationId) => {
  57789. store2.setState(({ notifications }) => {
  57790. let [matching, others] = partition(notifications, (n) => n.id === notificationId);
  57791. return matching.forEach((notification) => {
  57792. notification.onClear && notification.onClear({ dismissed: !1, timeout: !1 });
  57793. }), { notifications: others };
  57794. });
  57795. }
  57796. },
  57797. state: { notifications: [] }
  57798. });
  57799. // src/manager-api/modules/open-in-editor.tsx
  57800. var open_in_editor_exports = {};
  57801. __export(open_in_editor_exports, {
  57802. init: () => init8
  57803. });
  57804. var import_react20 = __toESM(require_react(), 1);
  57805. var init8 = ({ provider, fullAPI }) => ({
  57806. api: {
  57807. openInEditor(payload) {
  57808. return new Promise((resolve) => {
  57809. let { file, line: line2, column: column2 } = payload, handler = (res) => {
  57810. res.file === file && res.line === line2 && res.column === column2 && (provider.channel?.off(OPEN_IN_EDITOR_RESPONSE, handler), resolve(res));
  57811. };
  57812. provider.channel?.on(OPEN_IN_EDITOR_RESPONSE, handler), provider.channel?.emit(OPEN_IN_EDITOR_REQUEST, payload);
  57813. });
  57814. }
  57815. },
  57816. state: { notifications: [] },
  57817. init: async () => {
  57818. let { color: color2 } = await Promise.resolve().then(() => (init_theming(), theming_exports));
  57819. provider.channel?.on(OPEN_IN_EDITOR_RESPONSE, (payload) => {
  57820. payload.error !== null && fullAPI.addNotification({
  57821. id: "open-in-editor-error",
  57822. content: {
  57823. headline: "Failed to open in editor",
  57824. subHeadline: payload.error || "Check the Storybook process on the command line for more details."
  57825. },
  57826. icon: import_react20.default.createElement(FailedIcon, { color: color2.negative }),
  57827. duration: 8e3
  57828. });
  57829. });
  57830. }
  57831. });
  57832. // src/manager-api/modules/provider.ts
  57833. var provider_exports = {};
  57834. __export(provider_exports, {
  57835. init: () => init9
  57836. });
  57837. var init9 = ({ provider, fullAPI }) => ({
  57838. api: provider.renderPreview ? { renderPreview: provider.renderPreview } : {},
  57839. state: {},
  57840. init: () => {
  57841. provider.handleAPI(fullAPI);
  57842. }
  57843. });
  57844. // src/manager-api/modules/settings.ts
  57845. var settings_exports = {};
  57846. __export(settings_exports, {
  57847. init: () => init10
  57848. });
  57849. var init10 = ({ store: store2, navigate, fullAPI }) => ({
  57850. state: { settings: { lastTrackedStoryId: null } },
  57851. api: {
  57852. closeSettings: () => {
  57853. let {
  57854. settings: { lastTrackedStoryId }
  57855. } = store2.getState();
  57856. lastTrackedStoryId ? fullAPI.selectStory(lastTrackedStoryId) : fullAPI.selectFirstStory();
  57857. },
  57858. changeSettingsTab: (path) => {
  57859. navigate(`/settings/${path}`);
  57860. },
  57861. isSettingsScreenActive: () => {
  57862. let { path } = fullAPI.getUrlState();
  57863. return !!(path || "").match(/^\/settings/);
  57864. },
  57865. retrieveSelection() {
  57866. let { settings } = store2.getState();
  57867. return settings.lastTrackedStoryId;
  57868. },
  57869. storeSelection: async () => {
  57870. let { storyId, settings } = store2.getState();
  57871. await store2.setState({
  57872. settings: { ...settings, lastTrackedStoryId: storyId }
  57873. });
  57874. }
  57875. }
  57876. });
  57877. // src/manager-api/modules/shortcuts.ts
  57878. var shortcuts_exports = {};
  57879. __export(shortcuts_exports, {
  57880. controlOrMetaKey: () => controlOrMetaKey2,
  57881. defaultShortcuts: () => defaultShortcuts,
  57882. init: () => init11,
  57883. isMacLike: () => isMacLike2,
  57884. keys: () => keys2
  57885. });
  57886. init_dist();
  57887. var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
  57888. // src/manager-api/lib/platform.ts
  57889. init_dist();
  57890. var { navigator: navigator2 } = scope, isMacLike = () => navigator2 && navigator2.platform ? !!navigator2.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1;
  57891. // src/manager-api/lib/shortcut.ts
  57892. var controlOrMetaSymbol = () => isMacLike() ? "\u2318" : "ctrl", controlOrMetaKey = () => isMacLike() ? "meta" : "control", optionOrAltSymbol = () => isMacLike() ? "\u2325" : "alt", isShortcutTaken = (arr1, arr2) => JSON.stringify(arr1) === JSON.stringify(arr2), eventToShortcut = (e) => {
  57893. if (["Meta", "Alt", "Control", "Shift", "Tab"].includes(e.key))
  57894. return null;
  57895. let keys3 = [];
  57896. e.altKey && keys3.push("alt"), e.ctrlKey && keys3.push("control"), e.metaKey && keys3.push("meta"), e.shiftKey && keys3.push("shift");
  57897. let codeUpper = e.code?.toUpperCase(), codeToCharMap = {
  57898. MINUS: "-",
  57899. EQUAL: "=",
  57900. BRACKETLEFT: "[",
  57901. BRACKETRIGHT: "]",
  57902. BACKSLASH: "\\",
  57903. SEMICOLON: ";",
  57904. QUOTE: "'",
  57905. BACKQUOTE: "`",
  57906. COMMA: ",",
  57907. PERIOD: ".",
  57908. SLASH: "/"
  57909. }, codeChar = codeUpper ? codeUpper.startsWith("KEY") && codeUpper.length === 4 ? codeUpper.replace("KEY", "") : codeUpper.startsWith("DIGIT") ? codeUpper.replace("DIGIT", "") : codeToCharMap[codeUpper] : void 0;
  57910. if (e.key && e.key.length === 1 && e.key !== " ") {
  57911. let key = e.key.toUpperCase(), code = codeChar;
  57912. code && code.length === 1 && code !== key ? keys3.push([key, code]) : keys3.push(key);
  57913. } else e.key === "Dead" && codeChar && keys3.push(codeChar);
  57914. return e.key === " " && keys3.push("space"), e.key === "Escape" && keys3.push("escape"), e.key === "ArrowRight" && keys3.push("ArrowRight"), e.key === "ArrowDown" && keys3.push("ArrowDown"), e.key === "ArrowUp" && keys3.push("ArrowUp"), e.key === "ArrowLeft" && keys3.push("ArrowLeft"), keys3.length > 0 ? keys3 : null;
  57915. }, shortcutMatchesShortcut = (inputShortcut, shortcut) => !inputShortcut || !shortcut || (inputShortcut.join("").startsWith("shift/") && inputShortcut.shift(), inputShortcut.length !== shortcut.length) ? !1 : !inputShortcut.find(
  57916. (input2, i) => Array.isArray(input2) ? !input2.includes(shortcut[i]) : input2 !== shortcut[i]
  57917. ), eventMatchesShortcut = (e, shortcut) => shortcutMatchesShortcut(eventToShortcut(e), shortcut), keyToSymbol = (key) => key === "alt" ? optionOrAltSymbol() : key === "control" ? "\u2303" : key === "meta" ? "\u2318" : key === "shift" ? "\u21E7\u200B" : key === "Enter" || key === "Backspace" || key === "Esc" || key === "escape" ? "" : key === " " ? "SPACE" : key === "ArrowUp" ? "\u2191" : key === "ArrowDown" ? "\u2193" : key === "ArrowLeft" ? "\u2190" : key === "ArrowRight" ? "\u2192" : key?.toUpperCase(), shortcutToHumanString = (shortcut) => shortcut.map(keyToSymbol).join(" "), shortcutToAriaKeyshortcuts = (shortcut) => shortcut.map((shortcut2) => shortcut2 === "+" ? "plus" : shortcut2 === " " ? "space" : shortcut2).join("+");
  57918. // src/manager-api/modules/shortcuts.ts
  57919. var { navigator: navigator3, document: document9 } = scope;
  57920. function wasFocusInElement(element) {
  57921. return document9.activeElement && element?.contains(document9.activeElement);
  57922. }
  57923. var isMacLike2 = () => navigator3 && navigator3.platform ? !!navigator3.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, controlOrMetaKey2 = () => isMacLike2() ? "meta" : "control";
  57924. function keys2(o) {
  57925. return Object.keys(o);
  57926. }
  57927. var defaultShortcuts = Object.freeze({
  57928. fullScreen: ["alt", "F"],
  57929. togglePanel: ["alt", "A"],
  57930. panelPosition: ["alt", "D"],
  57931. toggleNav: ["alt", "S"],
  57932. toolbar: ["alt", "T"],
  57933. search: [controlOrMetaKey2(), "K"],
  57934. focusNav: ["1"],
  57935. focusIframe: ["2"],
  57936. focusPanel: ["3"],
  57937. prevComponent: ["alt", "ArrowUp"],
  57938. nextComponent: ["alt", "ArrowDown"],
  57939. prevStory: ["alt", "ArrowLeft"],
  57940. nextStory: ["alt", "ArrowRight"],
  57941. shortcutsPage: [controlOrMetaKey2(), "shift", ","],
  57942. aboutPage: [controlOrMetaKey2(), ","],
  57943. escape: ["escape"],
  57944. // This one is not customizable
  57945. collapseAll: [controlOrMetaKey2(), "shift", "ArrowUp"],
  57946. expandAll: [controlOrMetaKey2(), "shift", "ArrowDown"],
  57947. remount: ["alt", "R"],
  57948. openInEditor: ["alt", "shift", "E"],
  57949. openInIsolation: ["alt", "shift", "I"],
  57950. copyStoryLink: ["alt", "shift", "L"],
  57951. goToPreviousLandmark: ["shift", "F6"],
  57952. // hardcoded in react-aria
  57953. goToNextLandmark: ["F6"]
  57954. // hardcoded in react-aria
  57955. // TODO: bring this back once we want to add shortcuts for this
  57956. // copyStoryName: ['alt', 'shift', 'C'],
  57957. }), addonsShortcuts = {};
  57958. function shouldSkipShortcut(event) {
  57959. let target = event.target;
  57960. return !!(/input|textarea/i.test(target.tagName) || target.getAttribute("contenteditable") !== null || target.closest("dialog[open]"));
  57961. }
  57962. var init11 = ({ store: store2, fullAPI, provider }) => {
  57963. let api = {
  57964. // Getting and setting shortcuts
  57965. getShortcutKeys() {
  57966. return store2.getState().shortcuts;
  57967. },
  57968. getDefaultShortcuts() {
  57969. return {
  57970. ...defaultShortcuts,
  57971. ...api.getAddonsShortcutDefaults()
  57972. };
  57973. },
  57974. getAddonsShortcuts() {
  57975. return addonsShortcuts;
  57976. },
  57977. getAddonsShortcutLabels() {
  57978. let labels = {};
  57979. return Object.entries(api.getAddonsShortcuts()).forEach(([actionName, { label }]) => {
  57980. labels[actionName] = label;
  57981. }), labels;
  57982. },
  57983. getAddonsShortcutDefaults() {
  57984. let defaults = {};
  57985. return Object.entries(api.getAddonsShortcuts()).forEach(([actionName, { defaultShortcut }]) => {
  57986. defaults[actionName] = defaultShortcut;
  57987. }), defaults;
  57988. },
  57989. async setShortcuts(update2) {
  57990. let { shortcuts } = await store2.setState(
  57991. (state4) => ({ shortcuts: typeof update2 == "function" ? update2(state4.shortcuts) : update2 }),
  57992. { persistence: "permanent" }
  57993. );
  57994. return shortcuts;
  57995. },
  57996. async restoreAllDefaultShortcuts() {
  57997. return api.setShortcuts(api.getDefaultShortcuts());
  57998. },
  57999. async setShortcut(action2, value) {
  58000. return await api.setShortcuts((shortcuts) => ({ ...shortcuts, [action2]: value })), value;
  58001. },
  58002. async setAddonShortcut(addon, shortcut) {
  58003. return await api.setShortcuts((shortcuts) => ({
  58004. ...shortcuts,
  58005. [`${addon}-${shortcut.actionName}`]: shortcut.defaultShortcut
  58006. })), addonsShortcuts[`${addon}-${shortcut.actionName}`] = shortcut, shortcut;
  58007. },
  58008. async restoreDefaultShortcut(action2) {
  58009. let defaultShortcut = api.getDefaultShortcuts()[action2];
  58010. return api.setShortcut(action2, defaultShortcut);
  58011. },
  58012. // Listening to shortcut events
  58013. handleKeydownEvent(event) {
  58014. let shortcut = eventToShortcut(event), shortcuts = api.getShortcutKeys(), matchedFeature = keys2(shortcuts).find(
  58015. (feature) => shortcutMatchesShortcut(shortcut, shortcuts[feature])
  58016. );
  58017. matchedFeature && api.handleShortcutFeature(matchedFeature, event);
  58018. },
  58019. // warning: event might not have a full prototype chain because it may originate from the channel
  58020. handleShortcutFeature(feature, event) {
  58021. let {
  58022. ui: { enableShortcuts },
  58023. storyId,
  58024. refId,
  58025. viewMode
  58026. } = store2.getState();
  58027. if (enableShortcuts)
  58028. switch (event?.preventDefault && event.preventDefault(), feature) {
  58029. case "escape": {
  58030. fullAPI.getIsFullscreen() ? fullAPI.toggleFullscreen(!1) : fullAPI.getIsNavShown() && fullAPI.toggleNav(!0);
  58031. break;
  58032. }
  58033. // Handled by @react-aria/interactions and useLandmarkIndicator
  58034. case "goToNextLandmark":
  58035. case "goToPreviousLandmark":
  58036. break;
  58037. case "focusNav": {
  58038. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsNavShown() || fullAPI.toggleNav(!0), fullAPI.focusOnUIElement(focusableUIElements.storyListMenu);
  58039. break;
  58040. }
  58041. case "search": {
  58042. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsNavShown() || fullAPI.toggleNav(!0), setTimeout(() => {
  58043. fullAPI.focusOnUIElement(focusableUIElements.storySearchField, !0);
  58044. }, 0);
  58045. break;
  58046. }
  58047. case "focusIframe": {
  58048. let element = document9.getElementById("storybook-preview-iframe");
  58049. if (element)
  58050. try {
  58051. element.contentWindow.focus();
  58052. } catch {
  58053. }
  58054. break;
  58055. }
  58056. case "focusPanel": {
  58057. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsPanelShown() || fullAPI.togglePanel(!0), fullAPI.focusOnUIElement(focusableUIElements.storyPanelRoot);
  58058. break;
  58059. }
  58060. case "nextStory": {
  58061. fullAPI.jumpToStory(1);
  58062. break;
  58063. }
  58064. case "prevStory": {
  58065. fullAPI.jumpToStory(-1);
  58066. break;
  58067. }
  58068. case "nextComponent": {
  58069. fullAPI.jumpToComponent(1);
  58070. break;
  58071. }
  58072. case "prevComponent": {
  58073. fullAPI.jumpToComponent(-1);
  58074. break;
  58075. }
  58076. case "fullScreen": {
  58077. fullAPI.toggleFullscreen();
  58078. break;
  58079. }
  58080. case "togglePanel": {
  58081. let wasPanelShown = fullAPI.getIsPanelShown(), panelElement = document9.getElementById(focusableUIElements.addonPanel);
  58082. fullAPI.togglePanel(), wasPanelShown && wasFocusInElement(panelElement) && fullAPI.focusOnUIElement(focusableUIElements.showAddonPanel, {
  58083. poll: !0
  58084. }).then((success) => {
  58085. success === !1 && document9.body.focus();
  58086. }), wasPanelShown || fullAPI.focusOnUIElement(focusableUIElements.addonPanel, {
  58087. forceFocus: !0,
  58088. poll: !0
  58089. });
  58090. break;
  58091. }
  58092. case "toggleNav": {
  58093. let wasNavShown = fullAPI.getIsNavShown(), sidebarElement = document9.getElementById(focusableUIElements.sidebarRegion);
  58094. fullAPI.toggleNav(), wasNavShown && wasFocusInElement(sidebarElement) && fullAPI.focusOnUIElement(focusableUIElements.showSidebar, {
  58095. poll: !0
  58096. }).then((success) => {
  58097. success === !1 && document9.body.focus();
  58098. }), wasNavShown || fullAPI.focusOnUIElement(focusableUIElements.sidebarRegion, {
  58099. forceFocus: !0,
  58100. poll: !0
  58101. });
  58102. break;
  58103. }
  58104. case "toolbar": {
  58105. fullAPI.toggleToolbar();
  58106. break;
  58107. }
  58108. case "panelPosition": {
  58109. fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsPanelShown() || fullAPI.togglePanel(!0), fullAPI.togglePanelPosition();
  58110. break;
  58111. }
  58112. case "aboutPage": {
  58113. fullAPI.navigate("/settings/about");
  58114. break;
  58115. }
  58116. case "shortcutsPage": {
  58117. fullAPI.navigate("/settings/shortcuts");
  58118. break;
  58119. }
  58120. case "collapseAll": {
  58121. fullAPI.emit(STORIES_COLLAPSE_ALL);
  58122. break;
  58123. }
  58124. case "expandAll": {
  58125. fullAPI.emit(STORIES_EXPAND_ALL);
  58126. break;
  58127. }
  58128. case "remount": {
  58129. fullAPI.emit(FORCE_REMOUNT, { storyId });
  58130. break;
  58131. }
  58132. case "openInEditor": {
  58133. scope.CONFIG_TYPE === "DEVELOPMENT" && fullAPI.openInEditor({
  58134. file: fullAPI.getCurrentStoryData().importPath
  58135. });
  58136. break;
  58137. }
  58138. case "openInIsolation": {
  58139. if (storyId && viewMode === "story") {
  58140. let { previewHref } = fullAPI.getStoryHrefs(storyId, { refId });
  58141. window.open(previewHref, "_blank", "noopener,noreferrer");
  58142. }
  58143. break;
  58144. }
  58145. // TODO: bring this back once we want to add shortcuts for this
  58146. // case 'copyStoryName': {
  58147. // const storyData = fullAPI.getCurrentStoryData();
  58148. // if (storyData.type === 'story') {
  58149. // copy(storyData.exportName);
  58150. // }
  58151. // break;
  58152. // }
  58153. case "copyStoryLink": {
  58154. if (storyId) {
  58155. let { managerHref } = fullAPI.getStoryHrefs(storyId, { refId });
  58156. (0, import_copy_to_clipboard.default)(managerHref);
  58157. }
  58158. break;
  58159. }
  58160. default:
  58161. addonsShortcuts[feature].action();
  58162. break;
  58163. }
  58164. }
  58165. }, { shortcuts: persistedShortcuts = defaultShortcuts } = store2.getState(), state3 = {
  58166. // Any saved shortcuts that are still in our set of defaults
  58167. shortcuts: keys2(defaultShortcuts).reduce(
  58168. (acc, key) => ({ ...acc, [key]: persistedShortcuts[key] || defaultShortcuts[key] }),
  58169. defaultShortcuts
  58170. )
  58171. };
  58172. return { api, state: state3, init: () => {
  58173. document9.addEventListener("keydown", (event) => {
  58174. shouldSkipShortcut(event) || api.handleKeydownEvent(event);
  58175. }), provider.channel?.on(PREVIEW_KEYDOWN, (data) => {
  58176. api.handleKeydownEvent(data.event);
  58177. });
  58178. } };
  58179. };
  58180. // src/manager-api/modules/stories.ts
  58181. var stories_exports = {};
  58182. __export(stories_exports, {
  58183. init: () => init12
  58184. });
  58185. init_client_logger();
  58186. // src/router/index.ts
  58187. var router_exports = {};
  58188. __export(router_exports, {
  58189. BaseLocationProvider: () => BaseLocationProvider,
  58190. DEEPLY_EQUAL: () => DEEPLY_EQUAL2,
  58191. Link: () => Link4,
  58192. Location: () => Location,
  58193. LocationProvider: () => LocationProvider,
  58194. Match: () => Match,
  58195. MemoryRouter: () => MemoryRouter2,
  58196. Route: () => Route2,
  58197. buildArgsParam: () => buildArgsParam,
  58198. deepDiff: () => deepDiff2,
  58199. getMatch: () => getMatch,
  58200. parsePath: () => parsePath2,
  58201. queryFromLocation: () => queryFromLocation,
  58202. stringifyQuery: () => stringifyQuery,
  58203. useNavigate: () => useNavigate2
  58204. });
  58205. // src/router/utils.ts
  58206. init_client_logger();
  58207. var import_memoizerific7 = __toESM(require_memoizerific(), 1), import_picoquery4 = __toESM(require_main(), 1);
  58208. init_esm();
  58209. var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, parsePath2 = (0, import_memoizerific7.default)(1e3)((path) => {
  58210. let result = {
  58211. viewMode: void 0,
  58212. storyId: void 0,
  58213. refId: void 0
  58214. };
  58215. if (path) {
  58216. let [, viewMode, refId, storyId] = path.toLowerCase().match(splitPathRegex) || [];
  58217. viewMode && Object.assign(result, {
  58218. viewMode,
  58219. storyId,
  58220. refId
  58221. });
  58222. }
  58223. return result;
  58224. }), DEEPLY_EQUAL2 = Symbol("Deeply equal"), deepDiff2 = (value, update2) => {
  58225. if (typeof value != typeof update2)
  58226. return update2;
  58227. if (isEqual(value, update2))
  58228. return DEEPLY_EQUAL2;
  58229. if (Array.isArray(value) && Array.isArray(update2)) {
  58230. let res = update2.reduce((acc, upd, index4) => {
  58231. let diff2 = deepDiff2(value[index4], upd);
  58232. return diff2 !== DEEPLY_EQUAL2 && (acc[index4] = diff2), acc;
  58233. }, new Array(update2.length));
  58234. return update2.length >= value.length ? res : res.concat(new Array(value.length - update2.length).fill(void 0));
  58235. }
  58236. return isPlainObject(value) && isPlainObject(update2) ? Object.keys({ ...value, ...update2 }).reduce((acc, key) => {
  58237. let diff2 = deepDiff2(value?.[key], update2?.[key]);
  58238. return diff2 === DEEPLY_EQUAL2 ? acc : Object.assign(acc, { [key]: diff2 });
  58239. }, {}) : update2;
  58240. }, VALIDATION_REGEXP = /^[a-zA-Z0-9 _-]*$/, NUMBER_REGEXP = /^-?[0-9]+(\.[0-9]+)?$/, HEX_REGEXP = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, COLOR_REGEXP = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i, validateArgs = (key = "", value) => key === null || key === "" || !VALIDATION_REGEXP.test(key) ? !1 : value == null || value instanceof Date || typeof value == "number" || typeof value == "boolean" ? !0 : typeof value == "string" ? VALIDATION_REGEXP.test(value) || NUMBER_REGEXP.test(value) || HEX_REGEXP.test(value) || COLOR_REGEXP.test(value) : Array.isArray(value) ? value.every((v) => validateArgs(key, v)) : isPlainObject(value) ? Object.entries(value).every(([k, v]) => validateArgs(k, v)) : !1, encodeSpecialValues = (value) => value === void 0 ? "!undefined" : value === null ? "!null" : typeof value == "string" ? HEX_REGEXP.test(value) ? `!hex(${value.slice(1)})` : COLOR_REGEXP.test(value) ? `!${value.replace(/[\s%]/g, "")}` : value : typeof value == "boolean" ? `!${value}` : value instanceof Date ? `!date(${value.toISOString()})` : Array.isArray(value) ? value.map(encodeSpecialValues) : isPlainObject(value) ? Object.entries(value).reduce(
  58241. (acc, [key, val]) => Object.assign(acc, { [key]: encodeSpecialValues(val) }),
  58242. {}
  58243. ) : value, decodeKnownQueryChar = (chr) => {
  58244. switch (chr) {
  58245. case "%20":
  58246. return "+";
  58247. case "%5B":
  58248. return "[";
  58249. case "%5D":
  58250. return "]";
  58251. case "%2C":
  58252. return ",";
  58253. case "%3A":
  58254. return ":";
  58255. }
  58256. return chr;
  58257. }, knownQueryChar = /%[0-9A-F]{2}/g, buildArgsParam = (initialArgs, args) => {
  58258. let update2 = deepDiff2(initialArgs, args);
  58259. if (!update2 || update2 === DEEPLY_EQUAL2)
  58260. return "";
  58261. let object = Object.entries(update2).reduce((acc, [key, value]) => validateArgs(key, value) ? Object.assign(acc, { [key]: value }) : (once.warn(dedent`
  58262. Omitted potentially unsafe URL args.
  58263. More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
  58264. `), acc), {});
  58265. return (0, import_picoquery4.stringify)(encodeSpecialValues(object), {
  58266. delimiter: ";",
  58267. // we don't actually create multiple query params
  58268. nesting: !0,
  58269. nestingSyntax: "js"
  58270. // encode objects using dot notation: obj.key=val
  58271. }).replace(knownQueryChar, decodeKnownQueryChar).split(";").map((part) => part.replace("=", ":")).join(";");
  58272. }, queryFromString = (0, import_memoizerific7.default)(1e3)((s3) => s3 !== void 0 ? (0, import_picoquery4.parse)(s3) : {}), queryFromLocation = (location4) => queryFromString(location4?.search ? location4.search.slice(1) : ""), stringifyQuery = (query) => {
  58273. let queryStr = (0, import_picoquery4.stringify)(query);
  58274. return queryStr ? "?" + queryStr : "";
  58275. }, getMatch = (0, import_memoizerific7.default)(1e3)((current, target, startsWith4 = !0) => {
  58276. if (startsWith4) {
  58277. if (typeof target != "string")
  58278. throw new Error("startsWith only works with string targets");
  58279. return current && current.startsWith(target) ? { path: current } : null;
  58280. }
  58281. let currentIsTarget = typeof target == "string" && current === target, matchTarget = current && target && current.match(target);
  58282. return currentIsTarget || matchTarget ? { path: current } : null;
  58283. });
  58284. // src/router/router.tsx
  58285. var import_react21 = __toESM(require_react(), 1);
  58286. init_dist();
  58287. // ../../node_modules/react-router-dom/dist/index.js
  58288. var React31 = __toESM(require_react());
  58289. // ../../node_modules/react-router/dist/index.js
  58290. var React30 = __toESM(require_react());
  58291. // ../../node_modules/@remix-run/router/dist/router.js
  58292. function _extends2() {
  58293. return _extends2 = Object.assign ? Object.assign.bind() : function(target) {
  58294. for (var i = 1; i < arguments.length; i++) {
  58295. var source = arguments[i];
  58296. for (var key in source)
  58297. Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
  58298. }
  58299. return target;
  58300. }, _extends2.apply(this, arguments);
  58301. }
  58302. var Action;
  58303. (function(Action2) {
  58304. Action2.Pop = "POP", Action2.Push = "PUSH", Action2.Replace = "REPLACE";
  58305. })(Action || (Action = {}));
  58306. var PopStateEventType = "popstate";
  58307. function createMemoryHistory(options) {
  58308. options === void 0 && (options = {});
  58309. let {
  58310. initialEntries = ["/"],
  58311. initialIndex,
  58312. v5Compat = !1
  58313. } = options, entries;
  58314. entries = initialEntries.map((entry, index5) => createMemoryLocation(entry, typeof entry == "string" ? null : entry.state, index5 === 0 ? "default" : void 0));
  58315. let index4 = clampIndex(initialIndex ?? entries.length - 1), action2 = Action.Pop, listener = null;
  58316. function clampIndex(n) {
  58317. return Math.min(Math.max(n, 0), entries.length - 1);
  58318. }
  58319. function getCurrentLocation() {
  58320. return entries[index4];
  58321. }
  58322. function createMemoryLocation(to, state3, key) {
  58323. state3 === void 0 && (state3 = null);
  58324. let location4 = createLocation(entries ? getCurrentLocation().pathname : "/", to, state3, key);
  58325. return warning(location4.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(to)), location4;
  58326. }
  58327. function createHref(to) {
  58328. return typeof to == "string" ? to : createPath(to);
  58329. }
  58330. return {
  58331. get index() {
  58332. return index4;
  58333. },
  58334. get action() {
  58335. return action2;
  58336. },
  58337. get location() {
  58338. return getCurrentLocation();
  58339. },
  58340. createHref,
  58341. createURL(to) {
  58342. return new URL(createHref(to), "http://localhost");
  58343. },
  58344. encodeLocation(to) {
  58345. let path = typeof to == "string" ? parsePath3(to) : to;
  58346. return {
  58347. pathname: path.pathname || "",
  58348. search: path.search || "",
  58349. hash: path.hash || ""
  58350. };
  58351. },
  58352. push(to, state3) {
  58353. action2 = Action.Push;
  58354. let nextLocation = createMemoryLocation(to, state3);
  58355. index4 += 1, entries.splice(index4, entries.length, nextLocation), v5Compat && listener && listener({
  58356. action: action2,
  58357. location: nextLocation,
  58358. delta: 1
  58359. });
  58360. },
  58361. replace(to, state3) {
  58362. action2 = Action.Replace;
  58363. let nextLocation = createMemoryLocation(to, state3);
  58364. entries[index4] = nextLocation, v5Compat && listener && listener({
  58365. action: action2,
  58366. location: nextLocation,
  58367. delta: 0
  58368. });
  58369. },
  58370. go(delta) {
  58371. action2 = Action.Pop;
  58372. let nextIndex = clampIndex(index4 + delta), nextLocation = entries[nextIndex];
  58373. index4 = nextIndex, listener && listener({
  58374. action: action2,
  58375. location: nextLocation,
  58376. delta
  58377. });
  58378. },
  58379. listen(fn4) {
  58380. return listener = fn4, () => {
  58381. listener = null;
  58382. };
  58383. }
  58384. };
  58385. }
  58386. function createBrowserHistory(options) {
  58387. options === void 0 && (options = {});
  58388. function createBrowserLocation(window2, globalHistory) {
  58389. let {
  58390. pathname,
  58391. search,
  58392. hash: hash4
  58393. } = window2.location;
  58394. return createLocation(
  58395. "",
  58396. {
  58397. pathname,
  58398. search,
  58399. hash: hash4
  58400. },
  58401. // state defaults to `null` because `window.history.state` does
  58402. globalHistory.state && globalHistory.state.usr || null,
  58403. globalHistory.state && globalHistory.state.key || "default"
  58404. );
  58405. }
  58406. function createBrowserHref(window2, to) {
  58407. return typeof to == "string" ? to : createPath(to);
  58408. }
  58409. return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);
  58410. }
  58411. function invariant2(value, message) {
  58412. if (value === !1 || value === null || typeof value > "u")
  58413. throw new Error(message);
  58414. }
  58415. function warning(cond, message) {
  58416. if (!cond) {
  58417. typeof console < "u" && console.warn(message);
  58418. try {
  58419. throw new Error(message);
  58420. } catch {
  58421. }
  58422. }
  58423. }
  58424. function createKey() {
  58425. return Math.random().toString(36).substr(2, 8);
  58426. }
  58427. function getHistoryState(location4, index4) {
  58428. return {
  58429. usr: location4.state,
  58430. key: location4.key,
  58431. idx: index4
  58432. };
  58433. }
  58434. function createLocation(current, to, state3, key) {
  58435. return state3 === void 0 && (state3 = null), _extends2({
  58436. pathname: typeof current == "string" ? current : current.pathname,
  58437. search: "",
  58438. hash: ""
  58439. }, typeof to == "string" ? parsePath3(to) : to, {
  58440. state: state3,
  58441. // TODO: This could be cleaned up. push/replace should probably just take
  58442. // full Locations now and avoid the need to run through this flow at all
  58443. // But that's a pretty big refactor to the current test suite so going to
  58444. // keep as is for the time being and just let any incoming keys take precedence
  58445. key: to && to.key || key || createKey()
  58446. });
  58447. }
  58448. function createPath(_ref) {
  58449. let {
  58450. pathname = "/",
  58451. search = "",
  58452. hash: hash4 = ""
  58453. } = _ref;
  58454. return search && search !== "?" && (pathname += search.charAt(0) === "?" ? search : "?" + search), hash4 && hash4 !== "#" && (pathname += hash4.charAt(0) === "#" ? hash4 : "#" + hash4), pathname;
  58455. }
  58456. function parsePath3(path) {
  58457. let parsedPath = {};
  58458. if (path) {
  58459. let hashIndex = path.indexOf("#");
  58460. hashIndex >= 0 && (parsedPath.hash = path.substr(hashIndex), path = path.substr(0, hashIndex));
  58461. let searchIndex = path.indexOf("?");
  58462. searchIndex >= 0 && (parsedPath.search = path.substr(searchIndex), path = path.substr(0, searchIndex)), path && (parsedPath.pathname = path);
  58463. }
  58464. return parsedPath;
  58465. }
  58466. function getUrlBasedHistory(getLocation, createHref, validateLocation, options) {
  58467. options === void 0 && (options = {});
  58468. let {
  58469. window: window2 = document.defaultView,
  58470. v5Compat = !1
  58471. } = options, globalHistory = window2.history, action2 = Action.Pop, listener = null, index4 = getIndex();
  58472. index4 == null && (index4 = 0, globalHistory.replaceState(_extends2({}, globalHistory.state, {
  58473. idx: index4
  58474. }), ""));
  58475. function getIndex() {
  58476. return (globalHistory.state || {
  58477. idx: null
  58478. }).idx;
  58479. }
  58480. function handlePop() {
  58481. action2 = Action.Pop;
  58482. let nextIndex = getIndex(), delta = nextIndex == null ? null : nextIndex - index4;
  58483. index4 = nextIndex, listener && listener({
  58484. action: action2,
  58485. location: history2.location,
  58486. delta
  58487. });
  58488. }
  58489. function push(to, state3) {
  58490. action2 = Action.Push;
  58491. let location4 = createLocation(history2.location, to, state3);
  58492. validateLocation && validateLocation(location4, to), index4 = getIndex() + 1;
  58493. let historyState = getHistoryState(location4, index4), url = history2.createHref(location4);
  58494. try {
  58495. globalHistory.pushState(historyState, "", url);
  58496. } catch (error) {
  58497. if (error instanceof DOMException && error.name === "DataCloneError")
  58498. throw error;
  58499. window2.location.assign(url);
  58500. }
  58501. v5Compat && listener && listener({
  58502. action: action2,
  58503. location: history2.location,
  58504. delta: 1
  58505. });
  58506. }
  58507. function replace2(to, state3) {
  58508. action2 = Action.Replace;
  58509. let location4 = createLocation(history2.location, to, state3);
  58510. validateLocation && validateLocation(location4, to), index4 = getIndex();
  58511. let historyState = getHistoryState(location4, index4), url = history2.createHref(location4);
  58512. globalHistory.replaceState(historyState, "", url), v5Compat && listener && listener({
  58513. action: action2,
  58514. location: history2.location,
  58515. delta: 0
  58516. });
  58517. }
  58518. function createURL(to) {
  58519. let base = window2.location.origin !== "null" ? window2.location.origin : window2.location.href, href = typeof to == "string" ? to : createPath(to);
  58520. return invariant2(base, "No window.location.(origin|href) available to create URL for href: " + href), new URL(href, base);
  58521. }
  58522. let history2 = {
  58523. get action() {
  58524. return action2;
  58525. },
  58526. get location() {
  58527. return getLocation(window2, globalHistory);
  58528. },
  58529. listen(fn4) {
  58530. if (listener)
  58531. throw new Error("A history only accepts one active listener");
  58532. return window2.addEventListener(PopStateEventType, handlePop), listener = fn4, () => {
  58533. window2.removeEventListener(PopStateEventType, handlePop), listener = null;
  58534. };
  58535. },
  58536. createHref(to) {
  58537. return createHref(window2, to);
  58538. },
  58539. createURL,
  58540. encodeLocation(to) {
  58541. let url = createURL(to);
  58542. return {
  58543. pathname: url.pathname,
  58544. search: url.search,
  58545. hash: url.hash
  58546. };
  58547. },
  58548. push,
  58549. replace: replace2,
  58550. go(n) {
  58551. return globalHistory.go(n);
  58552. }
  58553. };
  58554. return history2;
  58555. }
  58556. var ResultType;
  58557. (function(ResultType2) {
  58558. ResultType2.data = "data", ResultType2.deferred = "deferred", ResultType2.redirect = "redirect", ResultType2.error = "error";
  58559. })(ResultType || (ResultType = {}));
  58560. function stripBasename(pathname, basename) {
  58561. if (basename === "/") return pathname;
  58562. if (!pathname.toLowerCase().startsWith(basename.toLowerCase()))
  58563. return null;
  58564. let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length, nextChar = pathname.charAt(startIndex);
  58565. return nextChar && nextChar !== "/" ? null : pathname.slice(startIndex) || "/";
  58566. }
  58567. function resolvePath(to, fromPathname) {
  58568. fromPathname === void 0 && (fromPathname = "/");
  58569. let {
  58570. pathname: toPathname,
  58571. search = "",
  58572. hash: hash4 = ""
  58573. } = typeof to == "string" ? parsePath3(to) : to;
  58574. return {
  58575. pathname: toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname,
  58576. search: normalizeSearch(search),
  58577. hash: normalizeHash(hash4)
  58578. };
  58579. }
  58580. function resolvePathname(relativePath, fromPathname) {
  58581. let segments = fromPathname.replace(/\/+$/, "").split("/");
  58582. return relativePath.split("/").forEach((segment) => {
  58583. segment === ".." ? segments.length > 1 && segments.pop() : segment !== "." && segments.push(segment);
  58584. }), segments.length > 1 ? segments.join("/") : "/";
  58585. }
  58586. function getInvalidPathError(char2, field, dest, path) {
  58587. return "Cannot include a '" + char2 + "' character in a manually specified " + ("`to." + field + "` field [" + JSON.stringify(path) + "]. Please separate it out to the ") + ("`to." + dest + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
  58588. }
  58589. function getPathContributingMatches(matches4) {
  58590. return matches4.filter((match3, index4) => index4 === 0 || match3.route.path && match3.route.path.length > 0);
  58591. }
  58592. function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {
  58593. isPathRelative === void 0 && (isPathRelative = !1);
  58594. let to;
  58595. typeof toArg == "string" ? to = parsePath3(toArg) : (to = _extends2({}, toArg), invariant2(!to.pathname || !to.pathname.includes("?"), getInvalidPathError("?", "pathname", "search", to)), invariant2(!to.pathname || !to.pathname.includes("#"), getInvalidPathError("#", "pathname", "hash", to)), invariant2(!to.search || !to.search.includes("#"), getInvalidPathError("#", "search", "hash", to)));
  58596. let isEmptyPath = toArg === "" || to.pathname === "", toPathname = isEmptyPath ? "/" : to.pathname, from2;
  58597. if (isPathRelative || toPathname == null)
  58598. from2 = locationPathname;
  58599. else {
  58600. let routePathnameIndex = routePathnames.length - 1;
  58601. if (toPathname.startsWith("..")) {
  58602. let toSegments = toPathname.split("/");
  58603. for (; toSegments[0] === ".."; )
  58604. toSegments.shift(), routePathnameIndex -= 1;
  58605. to.pathname = toSegments.join("/");
  58606. }
  58607. from2 = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/";
  58608. }
  58609. let path = resolvePath(to, from2), hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/"), hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/");
  58610. return !path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash) && (path.pathname += "/"), path;
  58611. }
  58612. var joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/");
  58613. var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search, normalizeHash = (hash4) => !hash4 || hash4 === "#" ? "" : hash4.startsWith("#") ? hash4 : "#" + hash4;
  58614. function isRouteErrorResponse(error) {
  58615. return error != null && typeof error.status == "number" && typeof error.statusText == "string" && typeof error.internal == "boolean" && "data" in error;
  58616. }
  58617. var validMutationMethodsArr = ["post", "put", "patch", "delete"], validMutationMethods = new Set(validMutationMethodsArr), validRequestMethodsArr = ["get", ...validMutationMethodsArr], validRequestMethods = new Set(validRequestMethodsArr);
  58618. var UNSAFE_DEFERRED_SYMBOL = Symbol("deferred");
  58619. // ../../node_modules/react-router/dist/index.js
  58620. function _extends3() {
  58621. return _extends3 = Object.assign ? Object.assign.bind() : function(target) {
  58622. for (var i = 1; i < arguments.length; i++) {
  58623. var source = arguments[i];
  58624. for (var key in source)
  58625. Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
  58626. }
  58627. return target;
  58628. }, _extends3.apply(this, arguments);
  58629. }
  58630. var DataRouterContext = React30.createContext(null), DataRouterStateContext = React30.createContext(null), AwaitContext = React30.createContext(null), NavigationContext = React30.createContext(null), LocationContext = React30.createContext(null), RouteContext = React30.createContext({
  58631. outlet: null,
  58632. matches: [],
  58633. isDataRoute: !1
  58634. }), RouteErrorContext = React30.createContext(null);
  58635. function useHref(to, _temp) {
  58636. let {
  58637. relative
  58638. } = _temp === void 0 ? {} : _temp;
  58639. useInRouterContext() || invariant2(!1);
  58640. let {
  58641. basename,
  58642. navigator: navigator4
  58643. } = React30.useContext(NavigationContext), {
  58644. hash: hash4,
  58645. pathname,
  58646. search
  58647. } = useResolvedPath(to, {
  58648. relative
  58649. }), joinedPathname = pathname;
  58650. return basename !== "/" && (joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname])), navigator4.createHref({
  58651. pathname: joinedPathname,
  58652. search,
  58653. hash: hash4
  58654. });
  58655. }
  58656. function useInRouterContext() {
  58657. return React30.useContext(LocationContext) != null;
  58658. }
  58659. function useLocation() {
  58660. return useInRouterContext() || invariant2(!1), React30.useContext(LocationContext).location;
  58661. }
  58662. function useIsomorphicLayoutEffect(cb) {
  58663. React30.useContext(NavigationContext).static || React30.useLayoutEffect(cb);
  58664. }
  58665. function useNavigate() {
  58666. let {
  58667. isDataRoute
  58668. } = React30.useContext(RouteContext);
  58669. return isDataRoute ? useNavigateStable() : useNavigateUnstable();
  58670. }
  58671. function useNavigateUnstable() {
  58672. useInRouterContext() || invariant2(!1);
  58673. let dataRouterContext = React30.useContext(DataRouterContext), {
  58674. basename,
  58675. navigator: navigator4
  58676. } = React30.useContext(NavigationContext), {
  58677. matches: matches4
  58678. } = React30.useContext(RouteContext), {
  58679. pathname: locationPathname
  58680. } = useLocation(), routePathnamesJson = JSON.stringify(getPathContributingMatches(matches4).map((match3) => match3.pathnameBase)), activeRef = React30.useRef(!1);
  58681. return useIsomorphicLayoutEffect(() => {
  58682. activeRef.current = !0;
  58683. }), React30.useCallback(function(to, options) {
  58684. if (options === void 0 && (options = {}), !activeRef.current) return;
  58685. if (typeof to == "number") {
  58686. navigator4.go(to);
  58687. return;
  58688. }
  58689. let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path");
  58690. dataRouterContext == null && basename !== "/" && (path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname])), (options.replace ? navigator4.replace : navigator4.push)(path, options.state, options);
  58691. }, [basename, navigator4, routePathnamesJson, locationPathname, dataRouterContext]);
  58692. }
  58693. var OutletContext = React30.createContext(null);
  58694. function useResolvedPath(to, _temp2) {
  58695. let {
  58696. relative
  58697. } = _temp2 === void 0 ? {} : _temp2, {
  58698. matches: matches4
  58699. } = React30.useContext(RouteContext), {
  58700. pathname: locationPathname
  58701. } = useLocation(), routePathnamesJson = JSON.stringify(getPathContributingMatches(matches4).map((match3) => match3.pathnameBase));
  58702. return React30.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [to, routePathnamesJson, locationPathname, relative]);
  58703. }
  58704. function DefaultErrorComponent() {
  58705. let error = useRouteError(), message = isRouteErrorResponse(error) ? error.status + " " + error.statusText : error instanceof Error ? error.message : JSON.stringify(error), stack = error instanceof Error ? error.stack : null, lightgrey = "rgba(200,200,200, 0.5)", preStyles = {
  58706. padding: "0.5rem",
  58707. backgroundColor: lightgrey
  58708. }, codeStyles = {
  58709. padding: "2px 4px",
  58710. backgroundColor: lightgrey
  58711. };
  58712. return React30.createElement(React30.Fragment, null, React30.createElement("h2", null, "Unexpected Application Error!"), React30.createElement("h3", {
  58713. style: {
  58714. fontStyle: "italic"
  58715. }
  58716. }, message), stack ? React30.createElement("pre", {
  58717. style: preStyles
  58718. }, stack) : null, null);
  58719. }
  58720. var defaultErrorElement = React30.createElement(DefaultErrorComponent, null);
  58721. var DataRouterHook = (function(DataRouterHook3) {
  58722. return DataRouterHook3.UseBlocker = "useBlocker", DataRouterHook3.UseRevalidator = "useRevalidator", DataRouterHook3.UseNavigateStable = "useNavigate", DataRouterHook3;
  58723. })(DataRouterHook || {}), DataRouterStateHook = (function(DataRouterStateHook3) {
  58724. return DataRouterStateHook3.UseBlocker = "useBlocker", DataRouterStateHook3.UseLoaderData = "useLoaderData", DataRouterStateHook3.UseActionData = "useActionData", DataRouterStateHook3.UseRouteError = "useRouteError", DataRouterStateHook3.UseNavigation = "useNavigation", DataRouterStateHook3.UseRouteLoaderData = "useRouteLoaderData", DataRouterStateHook3.UseMatches = "useMatches", DataRouterStateHook3.UseRevalidator = "useRevalidator", DataRouterStateHook3.UseNavigateStable = "useNavigate", DataRouterStateHook3.UseRouteId = "useRouteId", DataRouterStateHook3;
  58725. })(DataRouterStateHook || {});
  58726. function useDataRouterContext(hookName) {
  58727. let ctx = React30.useContext(DataRouterContext);
  58728. return ctx || invariant2(!1), ctx;
  58729. }
  58730. function useDataRouterState(hookName) {
  58731. let state3 = React30.useContext(DataRouterStateContext);
  58732. return state3 || invariant2(!1), state3;
  58733. }
  58734. function useRouteContext(hookName) {
  58735. let route = React30.useContext(RouteContext);
  58736. return route || invariant2(!1), route;
  58737. }
  58738. function useCurrentRouteId(hookName) {
  58739. let route = useRouteContext(hookName), thisRoute = route.matches[route.matches.length - 1];
  58740. return thisRoute.route.id || invariant2(!1), thisRoute.route.id;
  58741. }
  58742. function useRouteId() {
  58743. return useCurrentRouteId(DataRouterStateHook.UseRouteId);
  58744. }
  58745. function useRouteError() {
  58746. var _state$errors;
  58747. let error = React30.useContext(RouteErrorContext), state3 = useDataRouterState(DataRouterStateHook.UseRouteError), routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);
  58748. return error || ((_state$errors = state3.errors) == null ? void 0 : _state$errors[routeId]);
  58749. }
  58750. function useNavigateStable() {
  58751. let {
  58752. router
  58753. } = useDataRouterContext(DataRouterHook.UseNavigateStable), id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable), activeRef = React30.useRef(!1);
  58754. return useIsomorphicLayoutEffect(() => {
  58755. activeRef.current = !0;
  58756. }), React30.useCallback(function(to, options) {
  58757. options === void 0 && (options = {}), activeRef.current && (typeof to == "number" ? router.navigate(to) : router.navigate(to, _extends3({
  58758. fromRouteId: id
  58759. }, options)));
  58760. }, [router, id]);
  58761. }
  58762. var START_TRANSITION = "startTransition", startTransitionImpl = React30[START_TRANSITION];
  58763. function MemoryRouter(_ref3) {
  58764. let {
  58765. basename,
  58766. children,
  58767. initialEntries,
  58768. initialIndex,
  58769. future
  58770. } = _ref3, historyRef = React30.useRef();
  58771. historyRef.current == null && (historyRef.current = createMemoryHistory({
  58772. initialEntries,
  58773. initialIndex,
  58774. v5Compat: !0
  58775. }));
  58776. let history2 = historyRef.current, [state3, setStateImpl] = React30.useState({
  58777. action: history2.action,
  58778. location: history2.location
  58779. }), {
  58780. v7_startTransition
  58781. } = future || {}, setState2 = React30.useCallback((newState) => {
  58782. v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
  58783. }, [setStateImpl, v7_startTransition]);
  58784. return React30.useLayoutEffect(() => history2.listen(setState2), [history2, setState2]), React30.createElement(Router, {
  58785. basename,
  58786. children,
  58787. location: state3.location,
  58788. navigationType: state3.action,
  58789. navigator: history2
  58790. });
  58791. }
  58792. function Router(_ref5) {
  58793. let {
  58794. basename: basenameProp = "/",
  58795. children = null,
  58796. location: locationProp,
  58797. navigationType = Action.Pop,
  58798. navigator: navigator4,
  58799. static: staticProp = !1
  58800. } = _ref5;
  58801. useInRouterContext() && invariant2(!1);
  58802. let basename = basenameProp.replace(/^\/*/, "/"), navigationContext = React30.useMemo(() => ({
  58803. basename,
  58804. navigator: navigator4,
  58805. static: staticProp
  58806. }), [basename, navigator4, staticProp]);
  58807. typeof locationProp == "string" && (locationProp = parsePath3(locationProp));
  58808. let {
  58809. pathname = "/",
  58810. search = "",
  58811. hash: hash4 = "",
  58812. state: state3 = null,
  58813. key = "default"
  58814. } = locationProp, locationContext = React30.useMemo(() => {
  58815. let trailingPathname = stripBasename(pathname, basename);
  58816. return trailingPathname == null ? null : {
  58817. location: {
  58818. pathname: trailingPathname,
  58819. search,
  58820. hash: hash4,
  58821. state: state3,
  58822. key
  58823. },
  58824. navigationType
  58825. };
  58826. }, [basename, pathname, search, hash4, state3, key, navigationType]);
  58827. return locationContext == null ? null : React30.createElement(NavigationContext.Provider, {
  58828. value: navigationContext
  58829. }, React30.createElement(LocationContext.Provider, {
  58830. children,
  58831. value: locationContext
  58832. }));
  58833. }
  58834. var AwaitRenderStatus = (function(AwaitRenderStatus2) {
  58835. return AwaitRenderStatus2[AwaitRenderStatus2.pending = 0] = "pending", AwaitRenderStatus2[AwaitRenderStatus2.success = 1] = "success", AwaitRenderStatus2[AwaitRenderStatus2.error = 2] = "error", AwaitRenderStatus2;
  58836. })(AwaitRenderStatus || {}), neverSettledPromise = new Promise(() => {
  58837. });
  58838. // ../../node_modules/react-router-dom/dist/index.js
  58839. function _extends4() {
  58840. return _extends4 = Object.assign ? Object.assign.bind() : function(target) {
  58841. for (var i = 1; i < arguments.length; i++) {
  58842. var source = arguments[i];
  58843. for (var key in source)
  58844. Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
  58845. }
  58846. return target;
  58847. }, _extends4.apply(this, arguments);
  58848. }
  58849. function _objectWithoutPropertiesLoose2(source, excluded) {
  58850. if (source == null) return {};
  58851. var target = {}, sourceKeys = Object.keys(source), key, i;
  58852. for (i = 0; i < sourceKeys.length; i++)
  58853. key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
  58854. return target;
  58855. }
  58856. var defaultMethod = "get", defaultEncType = "application/x-www-form-urlencoded";
  58857. function isHtmlElement(object) {
  58858. return object != null && typeof object.tagName == "string";
  58859. }
  58860. function isButtonElement(object) {
  58861. return isHtmlElement(object) && object.tagName.toLowerCase() === "button";
  58862. }
  58863. function isFormElement(object) {
  58864. return isHtmlElement(object) && object.tagName.toLowerCase() === "form";
  58865. }
  58866. function isInputElement(object) {
  58867. return isHtmlElement(object) && object.tagName.toLowerCase() === "input";
  58868. }
  58869. function isModifiedEvent(event) {
  58870. return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
  58871. }
  58872. function shouldProcessLinkClick(event, target) {
  58873. return event.button === 0 && // Ignore everything but left clicks
  58874. (!target || target === "_self") && // Let browser handle "target=_blank" etc.
  58875. !isModifiedEvent(event);
  58876. }
  58877. var _formDataSupportsSubmitter = null;
  58878. function isFormDataSubmitterSupported() {
  58879. if (_formDataSupportsSubmitter === null)
  58880. try {
  58881. new FormData(
  58882. document.createElement("form"),
  58883. // @ts-expect-error if FormData supports the submitter parameter, this will throw
  58884. 0
  58885. ), _formDataSupportsSubmitter = !1;
  58886. } catch {
  58887. _formDataSupportsSubmitter = !0;
  58888. }
  58889. return _formDataSupportsSubmitter;
  58890. }
  58891. var supportedFormEncTypes = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
  58892. function getFormEncType(encType) {
  58893. return encType != null && !supportedFormEncTypes.has(encType) ? null : encType;
  58894. }
  58895. function getFormSubmissionInfo(target, basename) {
  58896. let method, action2, encType, formData, body;
  58897. if (isFormElement(target)) {
  58898. let attr = target.getAttribute("action");
  58899. action2 = attr ? stripBasename(attr, basename) : null, method = target.getAttribute("method") || defaultMethod, encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType, formData = new FormData(target);
  58900. } else if (isButtonElement(target) || isInputElement(target) && (target.type === "submit" || target.type === "image")) {
  58901. let form = target.form;
  58902. if (form == null)
  58903. throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
  58904. let attr = target.getAttribute("formaction") || form.getAttribute("action");
  58905. if (action2 = attr ? stripBasename(attr, basename) : null, method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod, encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType, formData = new FormData(form, target), !isFormDataSubmitterSupported()) {
  58906. let {
  58907. name,
  58908. type: type5,
  58909. value
  58910. } = target;
  58911. if (type5 === "image") {
  58912. let prefix4 = name ? name + "." : "";
  58913. formData.append(prefix4 + "x", "0"), formData.append(prefix4 + "y", "0");
  58914. } else name && formData.append(name, value);
  58915. }
  58916. } else {
  58917. if (isHtmlElement(target))
  58918. throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
  58919. method = defaultMethod, action2 = null, encType = defaultEncType, body = target;
  58920. }
  58921. return formData && encType === "text/plain" && (body = formData, formData = void 0), {
  58922. action: action2,
  58923. method: method.toLowerCase(),
  58924. encType,
  58925. formData,
  58926. body
  58927. };
  58928. }
  58929. var _excluded2 = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], _excluded22 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], _excluded3 = ["reloadDocument", "replace", "state", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
  58930. var START_TRANSITION2 = "startTransition", startTransitionImpl2 = React31[START_TRANSITION2];
  58931. function BrowserRouter(_ref) {
  58932. let {
  58933. basename,
  58934. children,
  58935. future,
  58936. window: window2
  58937. } = _ref, historyRef = React31.useRef();
  58938. historyRef.current == null && (historyRef.current = createBrowserHistory({
  58939. window: window2,
  58940. v5Compat: !0
  58941. }));
  58942. let history2 = historyRef.current, [state3, setStateImpl] = React31.useState({
  58943. action: history2.action,
  58944. location: history2.location
  58945. }), {
  58946. v7_startTransition
  58947. } = future || {}, setState2 = React31.useCallback((newState) => {
  58948. v7_startTransition && startTransitionImpl2 ? startTransitionImpl2(() => setStateImpl(newState)) : setStateImpl(newState);
  58949. }, [setStateImpl, v7_startTransition]);
  58950. return React31.useLayoutEffect(() => history2.listen(setState2), [history2, setState2]), React31.createElement(Router, {
  58951. basename,
  58952. children,
  58953. location: state3.location,
  58954. navigationType: state3.action,
  58955. navigator: history2
  58956. });
  58957. }
  58958. var isBrowser3 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link3 = React31.forwardRef(function(_ref4, ref) {
  58959. let {
  58960. onClick,
  58961. relative,
  58962. reloadDocument,
  58963. replace: replace2,
  58964. state: state3,
  58965. target,
  58966. to,
  58967. preventScrollReset
  58968. } = _ref4, rest = _objectWithoutPropertiesLoose2(_ref4, _excluded2), {
  58969. basename
  58970. } = React31.useContext(NavigationContext), absoluteHref, isExternal = !1;
  58971. if (typeof to == "string" && ABSOLUTE_URL_REGEX.test(to) && (absoluteHref = to, isBrowser3))
  58972. try {
  58973. let currentUrl = new URL(window.location.href), targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to), path = stripBasename(targetUrl.pathname, basename);
  58974. targetUrl.origin === currentUrl.origin && path != null ? to = path + targetUrl.search + targetUrl.hash : isExternal = !0;
  58975. } catch {
  58976. }
  58977. let href = useHref(to, {
  58978. relative
  58979. }), internalOnClick = useLinkClickHandler(to, {
  58980. replace: replace2,
  58981. state: state3,
  58982. target,
  58983. preventScrollReset,
  58984. relative
  58985. });
  58986. function handleClick(event) {
  58987. onClick && onClick(event), event.defaultPrevented || internalOnClick(event);
  58988. }
  58989. return (
  58990. // eslint-disable-next-line jsx-a11y/anchor-has-content
  58991. React31.createElement("a", _extends4({}, rest, {
  58992. href: absoluteHref || href,
  58993. onClick: isExternal || reloadDocument ? onClick : handleClick,
  58994. ref,
  58995. target
  58996. }))
  58997. );
  58998. }), NavLink = React31.forwardRef(function(_ref5, ref) {
  58999. let {
  59000. "aria-current": ariaCurrentProp = "page",
  59001. caseSensitive = !1,
  59002. className: classNameProp = "",
  59003. end: end2 = !1,
  59004. style: styleProp,
  59005. to,
  59006. children
  59007. } = _ref5, rest = _objectWithoutPropertiesLoose2(_ref5, _excluded22), path = useResolvedPath(to, {
  59008. relative: rest.relative
  59009. }), location4 = useLocation(), routerState = React31.useContext(DataRouterStateContext), {
  59010. navigator: navigator4
  59011. } = React31.useContext(NavigationContext), toPathname = navigator4.encodeLocation ? navigator4.encodeLocation(path).pathname : path.pathname, locationPathname = location4.pathname, nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null;
  59012. caseSensitive || (locationPathname = locationPathname.toLowerCase(), nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null, toPathname = toPathname.toLowerCase());
  59013. let isActive = locationPathname === toPathname || !end2 && locationPathname.startsWith(toPathname) && locationPathname.charAt(toPathname.length) === "/", isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end2 && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === "/"), ariaCurrent = isActive ? ariaCurrentProp : void 0, className;
  59014. typeof classNameProp == "function" ? className = classNameProp({
  59015. isActive,
  59016. isPending
  59017. }) : className = [classNameProp, isActive ? "active" : null, isPending ? "pending" : null].filter(Boolean).join(" ");
  59018. let style = typeof styleProp == "function" ? styleProp({
  59019. isActive,
  59020. isPending
  59021. }) : styleProp;
  59022. return React31.createElement(Link3, _extends4({}, rest, {
  59023. "aria-current": ariaCurrent,
  59024. className,
  59025. ref,
  59026. style,
  59027. to
  59028. }), typeof children == "function" ? children({
  59029. isActive,
  59030. isPending
  59031. }) : children);
  59032. }), Form = React31.forwardRef((props, ref) => {
  59033. let submit = useSubmit();
  59034. return React31.createElement(FormImpl, _extends4({}, props, {
  59035. submit,
  59036. ref
  59037. }));
  59038. }), FormImpl = React31.forwardRef((_ref6, forwardedRef) => {
  59039. let {
  59040. reloadDocument,
  59041. replace: replace2,
  59042. state: state3,
  59043. method = defaultMethod,
  59044. action: action2,
  59045. onSubmit,
  59046. submit,
  59047. relative,
  59048. preventScrollReset
  59049. } = _ref6, props = _objectWithoutPropertiesLoose2(_ref6, _excluded3), formMethod = method.toLowerCase() === "get" ? "get" : "post", formAction = useFormAction(action2, {
  59050. relative
  59051. });
  59052. return React31.createElement("form", _extends4({
  59053. ref: forwardedRef,
  59054. method: formMethod,
  59055. action: formAction,
  59056. onSubmit: reloadDocument ? onSubmit : (event) => {
  59057. if (onSubmit && onSubmit(event), event.defaultPrevented) return;
  59058. event.preventDefault();
  59059. let submitter = event.nativeEvent.submitter, submitMethod = submitter?.getAttribute("formmethod") || method;
  59060. submit(submitter || event.currentTarget, {
  59061. method: submitMethod,
  59062. replace: replace2,
  59063. state: state3,
  59064. relative,
  59065. preventScrollReset
  59066. });
  59067. }
  59068. }, props));
  59069. });
  59070. var DataRouterHook2;
  59071. (function(DataRouterHook3) {
  59072. DataRouterHook3.UseScrollRestoration = "useScrollRestoration", DataRouterHook3.UseSubmit = "useSubmit", DataRouterHook3.UseSubmitFetcher = "useSubmitFetcher", DataRouterHook3.UseFetcher = "useFetcher";
  59073. })(DataRouterHook2 || (DataRouterHook2 = {}));
  59074. var DataRouterStateHook2;
  59075. (function(DataRouterStateHook3) {
  59076. DataRouterStateHook3.UseFetchers = "useFetchers", DataRouterStateHook3.UseScrollRestoration = "useScrollRestoration";
  59077. })(DataRouterStateHook2 || (DataRouterStateHook2 = {}));
  59078. function useDataRouterContext2(hookName) {
  59079. let ctx = React31.useContext(DataRouterContext);
  59080. return ctx || invariant2(!1), ctx;
  59081. }
  59082. function useLinkClickHandler(to, _temp) {
  59083. let {
  59084. target,
  59085. replace: replaceProp,
  59086. state: state3,
  59087. preventScrollReset,
  59088. relative
  59089. } = _temp === void 0 ? {} : _temp, navigate = useNavigate(), location4 = useLocation(), path = useResolvedPath(to, {
  59090. relative
  59091. });
  59092. return React31.useCallback((event) => {
  59093. if (shouldProcessLinkClick(event, target)) {
  59094. event.preventDefault();
  59095. let replace2 = replaceProp !== void 0 ? replaceProp : createPath(location4) === createPath(path);
  59096. navigate(to, {
  59097. replace: replace2,
  59098. state: state3,
  59099. preventScrollReset,
  59100. relative
  59101. });
  59102. }
  59103. }, [location4, navigate, path, replaceProp, state3, target, to, preventScrollReset, relative]);
  59104. }
  59105. function validateClientSideSubmission() {
  59106. if (typeof document > "u")
  59107. throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
  59108. }
  59109. function useSubmit() {
  59110. let {
  59111. router
  59112. } = useDataRouterContext2(DataRouterHook2.UseSubmit), {
  59113. basename
  59114. } = React31.useContext(NavigationContext), currentRouteId = useRouteId();
  59115. return React31.useCallback(function(target, options) {
  59116. options === void 0 && (options = {}), validateClientSideSubmission();
  59117. let {
  59118. action: action2,
  59119. method,
  59120. encType,
  59121. formData,
  59122. body
  59123. } = getFormSubmissionInfo(target, basename);
  59124. router.navigate(options.action || action2, {
  59125. preventScrollReset: options.preventScrollReset,
  59126. formData,
  59127. body,
  59128. formMethod: options.method || method,
  59129. formEncType: options.encType || encType,
  59130. replace: options.replace,
  59131. state: options.state,
  59132. fromRouteId: currentRouteId
  59133. });
  59134. }, [router, basename, currentRouteId]);
  59135. }
  59136. function useFormAction(action2, _temp2) {
  59137. let {
  59138. relative
  59139. } = _temp2 === void 0 ? {} : _temp2, {
  59140. basename
  59141. } = React31.useContext(NavigationContext), routeContext = React31.useContext(RouteContext);
  59142. routeContext || invariant2(!1);
  59143. let [match3] = routeContext.matches.slice(-1), path = _extends4({}, useResolvedPath(action2 || ".", {
  59144. relative
  59145. })), location4 = useLocation();
  59146. if (action2 == null && (path.search = location4.search, match3.route.index)) {
  59147. let params = new URLSearchParams(path.search);
  59148. params.delete("index"), path.search = params.toString() ? "?" + params.toString() : "";
  59149. }
  59150. return (!action2 || action2 === ".") && match3.route.index && (path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index"), basename !== "/" && (path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname])), createPath(path);
  59151. }
  59152. // src/router/router.tsx
  59153. var { document: document10 } = scope, getBase = () => `${document10.location.pathname}?`, useNavigate2 = () => {
  59154. let navigate = useNavigate();
  59155. return (0, import_react21.useCallback)((to, { plain, ...options } = {}) => {
  59156. if (typeof to == "string" && to.startsWith("#")) {
  59157. to === "#" ? navigate(document10.location.search) : document10.location.hash = to;
  59158. return;
  59159. }
  59160. if (typeof to == "string") {
  59161. let target = plain ? to : `?path=${to}`;
  59162. return navigate(target, options);
  59163. }
  59164. if (typeof to == "number")
  59165. return navigate(to);
  59166. }, []);
  59167. }, Link4 = ({ to, children, ...rest }) => import_react21.default.createElement(Link3, { to: `${getBase()}path=${to}`, ...rest }, children);
  59168. Link4.displayName = "QueryLink";
  59169. var Location = ({ children }) => {
  59170. let location4 = useLocation(), { path, singleStory } = queryFromLocation(location4), { viewMode, storyId, refId } = parsePath2(path);
  59171. return import_react21.default.createElement(import_react21.default.Fragment, null, children({
  59172. path: path || "/",
  59173. location: location4,
  59174. viewMode,
  59175. storyId,
  59176. refId,
  59177. singleStory: singleStory === "true"
  59178. }));
  59179. };
  59180. Location.displayName = "QueryLocation";
  59181. function Match({
  59182. children,
  59183. path: targetPath,
  59184. startsWith: startsWith4 = !1
  59185. }) {
  59186. return import_react21.default.createElement(Location, null, ({ path: urlPath, ...rest }) => children({
  59187. match: getMatch(urlPath, targetPath, startsWith4),
  59188. ...rest
  59189. }));
  59190. }
  59191. Match.displayName = "QueryMatch";
  59192. function Route2(input2) {
  59193. let { children, ...rest } = input2;
  59194. return rest.startsWith === void 0 && (rest.startsWith = !1), import_react21.default.createElement(Match, { ...rest }, ({ match: match3 }) => match3 ? children : null);
  59195. }
  59196. Route2.displayName = "Route";
  59197. var LocationProvider = (...args) => BrowserRouter(...args), BaseLocationProvider = (...args) => Router(...args), MemoryRouter2 = (...args) => MemoryRouter(...args);
  59198. // src/manager-api/modules/stories.ts
  59199. init_dist();
  59200. // src/manager-api/lib/url.ts
  59201. var buildNavigationUrl = (path, queryParams = {}) => {
  59202. let params = Object.entries(queryParams).filter(([, v]) => v != null).sort(([a3], [b]) => a3 < b ? -1 : 1).map(([k, v]) => `${k}=${v}`);
  59203. return [path, ...params].join("&");
  59204. };
  59205. // src/shared/utils/story-index-filters.ts
  59206. var getActiveFilterCount = ({
  59207. includedTagFilters,
  59208. excludedTagFilters,
  59209. includedStatusFilters,
  59210. excludedStatusFilters
  59211. }) => (includedTagFilters?.length ?? 0) + (excludedTagFilters?.length ?? 0) + (includedStatusFilters?.length ?? 0) + (excludedStatusFilters?.length ?? 0), hasActiveFilters = (filters) => getActiveFilterCount(filters) > 0;
  59212. // src/shared/universal-store/use-universal-store-manager.ts
  59213. var React33 = __toESM(require_react(), 1);
  59214. var useUniversalStore = (universalStore, selector) => {
  59215. let snapshotRef = React33.useRef(
  59216. selector ? selector(universalStore.getState()) : universalStore.getState()
  59217. ), subscribe = React33.useCallback(
  59218. (listener) => universalStore.onStateChange((state4, previousState) => {
  59219. if (!selector) {
  59220. snapshotRef.current = state4, listener();
  59221. return;
  59222. }
  59223. let selectedState = selector(state4), selectedPreviousState = selector(previousState);
  59224. !isEqual(selectedState, selectedPreviousState) && (snapshotRef.current = selectedState, listener());
  59225. }),
  59226. [universalStore, selector]
  59227. ), getSnapshot = React33.useCallback(() => {
  59228. let currentState = universalStore.getState(), selectedState = selector ? selector(currentState) : currentState;
  59229. return isEqual(selectedState, snapshotRef.current) || (snapshotRef.current = selectedState), snapshotRef.current;
  59230. }, [universalStore, selector]);
  59231. return [React33.useSyncExternalStore(subscribe, getSnapshot), universalStore.setState];
  59232. };
  59233. // src/manager-api/stores/status.ts
  59234. var statusStore = createStatusStore({
  59235. universalStatusStore: UniversalStore.create({
  59236. ...UNIVERSAL_STATUS_STORE_OPTIONS,
  59237. leader: globalThis.CONFIG_TYPE === "PRODUCTION"
  59238. }),
  59239. useUniversalStore,
  59240. environment: "manager"
  59241. }), { fullStatusStore, getStatusStoreByTypeId, useStatusStore, universalStatusStore } = statusStore;
  59242. // src/manager-api/lib/filter-param.ts
  59243. var parseFilterParam = (param, transform) => {
  59244. if (!param)
  59245. return { included: [], excluded: [] };
  59246. let included = [], excluded = [];
  59247. return param.split(";").forEach((raw) => {
  59248. if (!raw)
  59249. return;
  59250. let isExcluded = raw.startsWith("!"), value = transform(isExcluded ? raw.slice(1) : raw);
  59251. value != null && (isExcluded ? excluded.push(value) : included.push(value));
  59252. }), { included, excluded };
  59253. };
  59254. // src/manager-api/modules/statuses.ts
  59255. var parseStatusesParam = (statusesParam) => parseFilterParam(statusesParam, toStatusValue), serializeStatusesParam = (included, excluded) => {
  59256. if (!included.length && !excluded.length)
  59257. return;
  59258. let serializedIncluded = included.map((v) => statusValueShortName(v)).sort(), serializedExcluded = excluded.map((v) => `!${statusValueShortName(v)}`).sort();
  59259. return [...serializedIncluded, ...serializedExcluded].join(";");
  59260. }, computeStatusFilterFn = (includedStatusFilters, excludedStatusFilters) => (entry) => {
  59261. if (!includedStatusFilters.length && !excludedStatusFilters.length)
  59262. return !0;
  59263. let storyStatuses = (fullStatusStore.getAll() ?? {})[entry.id], storyStatusValues = storyStatuses ? Object.values(storyStatuses).map((s3) => s3.value) : [], passesInclude = !includedStatusFilters.length || includedStatusFilters.some((v) => storyStatusValues.includes(v)), passesExclude = !excludedStatusFilters.length || excludedStatusFilters.every((v) => !storyStatusValues.includes(v));
  59264. return passesInclude && passesExclude;
  59265. };
  59266. // src/manager-api/modules/tags.ts
  59267. var import_memoizerific8 = __toESM(require_memoizerific(), 1);
  59268. var BUILT_IN_URL_TAG_MAP = {
  59269. $docs: "_docs",
  59270. $play: "_play",
  59271. $test: "_test"
  59272. }, parseTagsParam = (tagsParam) => parseFilterParam(tagsParam, (raw) => BUILT_IN_URL_TAG_MAP[raw] ?? raw), serializeTagsParam = (included, excluded) => {
  59273. if (!included.length && !excluded.length)
  59274. return "";
  59275. let reverseBuiltInUrlTagMap = Object.fromEntries(
  59276. Object.entries(BUILT_IN_URL_TAG_MAP).map(([urlTag, internalTag]) => [internalTag, urlTag])
  59277. ), serializedIncluded = included.map((tag) => reverseBuiltInUrlTagMap[tag] ?? tag).sort(), serializedExcluded = excluded.map((tag) => `!${reverseBuiltInUrlTagMap[tag] ?? tag}`).sort();
  59278. return [...serializedIncluded, ...serializedExcluded].join(";");
  59279. }, getDefaultTagsFromPreset = (0, import_memoizerific8.default)(1)((presets) => {
  59280. let presetEntries = Object.entries(presets);
  59281. return {
  59282. included: presetEntries.filter(([, option]) => option.defaultFilterSelection === "include").map(([tag]) => tag),
  59283. excluded: presetEntries.filter(([, option]) => option.defaultFilterSelection === "exclude").map(([tag]) => tag)
  59284. };
  59285. }), computeStaticFilterFn = (tagPresets) => {
  59286. let staticExcludeTags = Object.entries(tagPresets).reduce(
  59287. (acc, entry) => {
  59288. let [tag, option] = entry;
  59289. return option.excludeFromSidebar && (acc[tag] = !0), acc;
  59290. },
  59291. {}
  59292. );
  59293. return (item) => {
  59294. let tags2 = item.tags ?? [];
  59295. return (tags2.includes(Tag.DEV) || item.type === "docs") && tags2.filter((tag) => staticExcludeTags[tag]).length === 0;
  59296. };
  59297. }, computeTagsFilterFn = (includedTagFilters, excludedTagFilters) => {
  59298. let computeFilterFunctions = (set3) => Object.values(
  59299. set3.reduce(
  59300. (acc, tag) => (Object.hasOwn(BUILT_IN_FILTERS, tag) ? acc["built-in"].push(BUILT_IN_FILTERS[tag]) : acc.user.push(USER_TAG_FILTER(tag)), acc),
  59301. { "built-in": [], user: [] }
  59302. )
  59303. ).filter((group) => group.length > 0);
  59304. return (item) => {
  59305. let included = computeFilterFunctions(includedTagFilters), excluded = computeFilterFunctions(excludedTagFilters);
  59306. return (!included.length || included.every((group) => group.some((filterFn) => filterFn(item, !1)))) && (!excluded.length || excluded.every((group) => group.every((filterFn) => filterFn(item, !0))));
  59307. };
  59308. };
  59309. // src/manager-api/modules/stories.ts
  59310. var { fetch: fetch3 } = scope, STORY_INDEX_PATH = "./index.json", TAGS_FILTER = "tags-filter", STATIC_FILTER = "static-filter", STATUS_FILTER = "status-filter", BUILT_IN_TAG_IDS = new Set(Object.keys(BUILT_IN_FILTERS)), removedOptions = ["enableShortcuts", "theme", "showRoots"];
  59311. function removeRemovedOptions(options) {
  59312. if (!options || typeof options == "string")
  59313. return options;
  59314. let result = { ...options };
  59315. return removedOptions.forEach((option) => {
  59316. option in result && delete result[option];
  59317. }), result;
  59318. }
  59319. var FILTER_KEYS = {
  59320. tag: { included: "includedTagFilters", excluded: "excludedTagFilters" },
  59321. status: { included: "includedStatusFilters", excluded: "excludedStatusFilters" }
  59322. }, init12 = ({
  59323. fullAPI,
  59324. store: store2,
  59325. navigate,
  59326. provider,
  59327. state: { location: location4 } = {},
  59328. storyId: initialStoryId,
  59329. viewMode: initialViewMode,
  59330. docsOptions = {}
  59331. }) => {
  59332. let navigateWithQueryParams = (path, options) => {
  59333. let { customQueryParams } = store2.getState();
  59334. navigate(buildNavigationUrl(path, customQueryParams ?? {}), options);
  59335. }, persistFilters = (inputPatch) => store2.setState(inputPatch, {
  59336. persistence: "url",
  59337. serialize: (s3) => {
  59338. let tagsValue = serializeTagsParam(s3.includedTagFilters, s3.excludedTagFilters), statusesValue = serializeStatusesParam(
  59339. s3.includedStatusFilters,
  59340. s3.excludedStatusFilters
  59341. );
  59342. return { tags: tagsValue ?? null, statuses: statusesValue ?? null };
  59343. }
  59344. }), urlFilterTelemetryEmitted = !1, addFilters = async (type5, items, excluded) => {
  59345. let { included, excluded: excludedKey } = FILTER_KEYS[type5], state3 = store2.getState(), newIncluded = new Set(state3[included]), newExcluded = new Set(state3[excludedKey]);
  59346. for (let item of items) {
  59347. let [target, other] = excluded ? [newExcluded, newIncluded] : [newIncluded, newExcluded];
  59348. other.delete(item), target.add(item);
  59349. }
  59350. await persistFilters({
  59351. [included]: Array.from(newIncluded),
  59352. [excludedKey]: Array.from(newExcluded)
  59353. });
  59354. }, removeFilters = async (type5, items) => {
  59355. let { included, excluded } = FILTER_KEYS[type5], state3 = store2.getState(), itemSet = new Set(items);
  59356. await persistFilters({
  59357. [included]: state3[included].filter((v) => !itemSet.has(v)),
  59358. [excluded]: state3[excluded].filter((v) => !itemSet.has(v))
  59359. });
  59360. }, emitFilterTelemetry = (trigger, changed) => {
  59361. let state3 = store2.getState(), includedTags = (state3.includedTagFilters ?? []).filter((id) => BUILT_IN_TAG_IDS.has(id)), excludedTags = (state3.excludedTagFilters ?? []).filter((id) => BUILT_IN_TAG_IDS.has(id)), changeDetectionEnabled = !!globalThis?.FEATURES?.changeDetection, includedStatuses = changeDetectionEnabled ? state3.includedStatusFilters ?? [] : [], excludedStatuses = changeDetectionEnabled ? state3.excludedStatusFilters ?? [] : [], storyCounts = {}, entries = state3.internal_index ? Object.values(state3.internal_index.entries) : [];
  59362. for (let tagId of /* @__PURE__ */ new Set([...includedTags, ...excludedTags])) {
  59363. let filterDef = BUILT_IN_FILTERS[tagId];
  59364. storyCounts[tagId] = entries.filter((entry) => filterDef(entry)).length;
  59365. }
  59366. if (includedStatuses.length > 0 || excludedStatuses.length > 0) {
  59367. let statusCounts = countStatusesByValue(fullStatusStore.getAll());
  59368. for (let statusValue of /* @__PURE__ */ new Set([...includedStatuses, ...excludedStatuses]))
  59369. statusCounts[statusValue] !== void 0 && (storyCounts[statusValue] = statusCounts[statusValue]);
  59370. }
  59371. provider.channel?.emit(SIDEBAR_FILTER_CHANGED, {
  59372. trigger,
  59373. changed,
  59374. activeTagFilters: { included: includedTags, excluded: excludedTags },
  59375. activeStatusFilters: { included: includedStatuses, excluded: excludedStatuses },
  59376. storyCounts
  59377. });
  59378. }, api = {
  59379. storyId: toId,
  59380. getData: (storyId, refId) => {
  59381. let result = api.resolveStory(storyId, refId);
  59382. if (result?.type === "story" || result?.type === "docs")
  59383. return result;
  59384. },
  59385. isPrepared: (storyId, refId) => {
  59386. let data = api.getData(storyId, refId);
  59387. return data ? data.type === "story" ? data.prepared : !0 : !1;
  59388. },
  59389. resolveStory: (storyId, refId) => {
  59390. let { refs, index: index4 } = store2.getState();
  59391. if (!(refId && !refs[refId]))
  59392. return refId ? refs?.[refId]?.index?.[storyId] ?? void 0 : index4 ? index4[storyId] : void 0;
  59393. },
  59394. getCurrentStoryData: () => {
  59395. let { storyId, refId } = store2.getState();
  59396. return api.getData(storyId, refId);
  59397. },
  59398. getIndex: () => {
  59399. let { internal_index } = store2.getState();
  59400. return internal_index;
  59401. },
  59402. getParameters: (storyIdOrCombo, parameterName) => {
  59403. let { storyId, refId } = typeof storyIdOrCombo == "string" ? { storyId: storyIdOrCombo, refId: void 0 } : storyIdOrCombo, data = api.getData(storyId, refId);
  59404. if (["story", "docs"].includes(data?.type)) {
  59405. let { parameters: parameters2 } = data;
  59406. if (parameters2)
  59407. return parameterName ? parameters2[parameterName] : parameters2;
  59408. }
  59409. return null;
  59410. },
  59411. getCurrentParameter: (parameterName) => {
  59412. let { storyId, refId } = store2.getState();
  59413. return api.getParameters({ storyId, refId }, parameterName) || void 0;
  59414. },
  59415. jumpToComponent: (direction) => {
  59416. let { filteredIndex, storyId, refs, refId } = store2.getState();
  59417. if (!api.getData(storyId, refId))
  59418. return;
  59419. let hash4 = refId ? refs[refId].filteredIndex || {} : filteredIndex;
  59420. if (!hash4)
  59421. return;
  59422. let result = api.findSiblingStoryId(storyId, hash4, direction, !0);
  59423. result && api.selectStory(result, void 0, { ref: refId });
  59424. },
  59425. jumpToStory: (direction) => {
  59426. let { filteredIndex, storyId, refs, refId } = store2.getState(), story = api.getData(storyId, refId);
  59427. if (!story)
  59428. return;
  59429. let hash4 = story.refId ? refs[story.refId].filteredIndex : filteredIndex;
  59430. if (!hash4)
  59431. return;
  59432. let result = api.findSiblingStoryId(storyId, hash4, direction, !1);
  59433. result && api.selectStory(result, void 0, { ref: refId });
  59434. },
  59435. selectFirstStory: () => {
  59436. let state3 = store2.getState();
  59437. if (hasActiveFilters(state3)) {
  59438. let { filteredIndex } = state3;
  59439. if (!filteredIndex)
  59440. return;
  59441. let firstStory2 = Object.keys(filteredIndex).find(
  59442. (id) => filteredIndex[id].type === "story"
  59443. );
  59444. firstStory2 && api.selectStory(firstStory2);
  59445. return;
  59446. }
  59447. let { index: index4 } = state3;
  59448. if (!index4)
  59449. return;
  59450. let firstStory = Object.keys(index4).find((id) => index4[id].type === "story");
  59451. if (firstStory) {
  59452. api.selectStory(firstStory);
  59453. return;
  59454. }
  59455. navigateWithQueryParams("/");
  59456. },
  59457. selectStory: (titleOrId = void 0, name = void 0, options = {}) => {
  59458. let { ref } = options, { storyId, index: index4, filteredIndex, refs, settings } = store2.getState(), gotoStory = (entry) => entry?.type === "docs" || entry?.type === "story" ? (store2.setState({ settings: { ...settings, lastTrackedStoryId: entry.id } }), navigateWithQueryParams(
  59459. `/${entry.type}/${entry.refId ? `${entry.refId}_${entry.id}` : entry.id}`
  59460. ), !0) : !1, kindSlug = storyId?.split("--", 2)[0], hash4 = ref ? refs[ref].index : index4, filteredHash = ref ? refs[ref].filteredIndex : filteredIndex;
  59461. if (!(!hash4 || !filteredHash))
  59462. if (name)
  59463. if (!titleOrId)
  59464. gotoStory(hash4[toId(kindSlug, name)]);
  59465. else {
  59466. let id = ref ? `${ref}_${toId(titleOrId, name)}` : toId(titleOrId, name);
  59467. if (hash4[id])
  59468. gotoStory(hash4[id]);
  59469. else {
  59470. let entry = hash4[sanitize(titleOrId)];
  59471. if (entry?.type === "component") {
  59472. let foundId = entry.children.find((childId) => hash4[childId].name === name);
  59473. gotoStory(foundId ? hash4[foundId] : void 0);
  59474. }
  59475. }
  59476. }
  59477. else {
  59478. let entry = titleOrId ? hash4[titleOrId] || hash4[sanitize(titleOrId)] : hash4[kindSlug];
  59479. if (!entry)
  59480. throw new Error(`Unknown id or title: '${titleOrId}'`);
  59481. gotoStory(entry) || gotoStory(api.findLeafEntry(filteredHash, entry.id));
  59482. }
  59483. },
  59484. findLeafEntry(index4, storyId) {
  59485. let entry = index4[storyId];
  59486. if (!entry)
  59487. return;
  59488. if (entry.type === "docs" || entry.type === "story")
  59489. return entry;
  59490. let childStoryId = entry.children.find((childId) => index4[childId]);
  59491. return childStoryId ? api.findLeafEntry(index4, childStoryId) : void 0;
  59492. },
  59493. findLeafStoryId(index4, storyId) {
  59494. return api.findLeafEntry(index4, storyId)?.id;
  59495. },
  59496. findAllLeafStoryIds(entryId) {
  59497. let { index: index4 } = store2.getState();
  59498. if (!index4)
  59499. return [];
  59500. let findChildEntriesRecursively = (currentEntryId, results = []) => {
  59501. let node2 = index4[currentEntryId];
  59502. return node2 && (node2.type === "story" && results.push(node2.id), "children" in node2 && node2.children?.forEach((childId) => findChildEntriesRecursively(childId, results))), results;
  59503. };
  59504. return findChildEntriesRecursively(entryId, []);
  59505. },
  59506. findSiblingStoryId(storyId, index4, direction, toSiblingGroup) {
  59507. if (toSiblingGroup) {
  59508. let lookupList2 = getComponentLookupList(index4), position3 = lookupList2.findIndex((i) => i.includes(storyId));
  59509. return position3 === lookupList2.length - 1 && direction > 0 || position3 === 0 && direction < 0 ? void 0 : lookupList2[position3 + direction] ? lookupList2[position3 + direction][0] : void 0;
  59510. }
  59511. let lookupList = getStoriesLookupList(index4), position2 = lookupList.indexOf(storyId);
  59512. if (!(position2 === lookupList.length - 1 && direction > 0) && !(position2 === 0 && direction < 0))
  59513. return lookupList[position2 + direction];
  59514. },
  59515. updateStoryArgs: (story, updatedArgs) => {
  59516. let { id: storyId, refId } = story;
  59517. provider.channel?.emit(UPDATE_STORY_ARGS, {
  59518. storyId,
  59519. updatedArgs,
  59520. options: { target: refId }
  59521. });
  59522. },
  59523. resetStoryArgs: (story, argNames) => {
  59524. let { id: storyId, refId } = story;
  59525. provider.channel?.emit(RESET_STORY_ARGS, {
  59526. storyId,
  59527. argNames,
  59528. options: { target: refId }
  59529. });
  59530. },
  59531. fetchIndex: async () => {
  59532. try {
  59533. let result = await fetch3(STORY_INDEX_PATH);
  59534. if (result.status !== 200)
  59535. throw new Error(await result.text());
  59536. let storyIndex = await result.json();
  59537. if (storyIndex.v < 3) {
  59538. logger.warn(`Skipping story index with version v${storyIndex.v}, awaiting SET_STORIES.`);
  59539. return;
  59540. }
  59541. await api.setIndex(storyIndex);
  59542. } catch (err) {
  59543. await store2.setState({ indexError: err });
  59544. }
  59545. },
  59546. // The story index we receive on SET_INDEX is "prepared" in that it has parameters
  59547. // The story index we receive on fetchStoryIndex is not, but all the prepared fields are optional
  59548. // so we can cast one to the other easily enough
  59549. setIndex: async (input2) => {
  59550. let { filteredIndex: oldFilteredHash, index: oldHash, filters } = store2.getState(), allStatuses = fullStatusStore.getAll(), newFilteredHash = transformStoryIndexToStoriesHash(input2, {
  59551. provider,
  59552. docsOptions,
  59553. filters,
  59554. allStatuses,
  59555. statusFilterKey: STATUS_FILTER
  59556. }), newHash = transformStoryIndexToStoriesHash(input2, {
  59557. provider,
  59558. docsOptions,
  59559. filters: {},
  59560. allStatuses
  59561. });
  59562. await store2.setState({
  59563. internal_index: input2,
  59564. filteredIndex: addPreparedStories(newFilteredHash, oldFilteredHash),
  59565. index: addPreparedStories(newHash, oldHash),
  59566. indexError: void 0
  59567. });
  59568. },
  59569. // FIXME: is there a bug where filtered stories get added back in on updateStory???
  59570. updateStory: async (storyId, update2, ref) => {
  59571. if (ref) {
  59572. let { id: refId, index: index4, filteredIndex } = ref;
  59573. index4 && index4[storyId] && (index4[storyId] = {
  59574. ...index4[storyId],
  59575. ...update2
  59576. }), filteredIndex && filteredIndex[storyId] && (filteredIndex[storyId] = {
  59577. ...filteredIndex[storyId],
  59578. ...update2
  59579. }), await fullAPI.updateRef(refId, { index: index4, filteredIndex });
  59580. } else {
  59581. let { index: index4, filteredIndex } = store2.getState();
  59582. index4 && index4[storyId] && (index4[storyId] = {
  59583. ...index4[storyId],
  59584. ...update2
  59585. }), filteredIndex && filteredIndex[storyId] && (filteredIndex[storyId] = {
  59586. ...filteredIndex[storyId],
  59587. ...update2
  59588. }), (index4 || filteredIndex) && await store2.setState({ index: index4, filteredIndex });
  59589. }
  59590. },
  59591. updateDocs: async (docsId, update2, ref) => {
  59592. if (ref) {
  59593. let { id: refId, index: index4, filteredIndex } = ref;
  59594. index4[docsId] = {
  59595. ...index4[docsId],
  59596. ...update2
  59597. }, filteredIndex[docsId] = {
  59598. ...filteredIndex[docsId],
  59599. ...update2
  59600. }, await fullAPI.updateRef(refId, { index: index4, filteredIndex });
  59601. } else {
  59602. let { index: index4, filteredIndex } = store2.getState();
  59603. index4 && (index4[docsId] = {
  59604. ...index4[docsId],
  59605. ...update2
  59606. }), filteredIndex && (filteredIndex[docsId] = {
  59607. ...filteredIndex[docsId],
  59608. ...update2
  59609. }), (index4 || filteredIndex) && await store2.setState({ index: index4, filteredIndex });
  59610. }
  59611. },
  59612. setPreviewInitialized: async (ref) => {
  59613. ref ? fullAPI.updateRef(ref.id, { previewInitialized: !0 }) : store2.setState({ previewInitialized: !0 });
  59614. },
  59615. experimental_setFilter: async (id, filterFunction) => {
  59616. await store2.setState({ filters: { ...store2.getState().filters, [id]: filterFunction } });
  59617. let { internal_index: index4 } = store2.getState();
  59618. if (!index4)
  59619. return;
  59620. await api.setIndex(index4);
  59621. let refs = await fullAPI.getRefs();
  59622. for (let [refId, { internal_index, ...ref }] of Object.entries(refs))
  59623. await fullAPI.setRef(refId, { ...ref, storyIndex: internal_index }, !0);
  59624. provider.channel?.emit(SET_FILTER, { id });
  59625. },
  59626. resetTagFilters: async () => {
  59627. await persistFilters((s3) => ({
  59628. includedTagFilters: s3.defaultIncludedTagFilters,
  59629. excludedTagFilters: s3.defaultExcludedTagFilters
  59630. })), await recomputeTagsFilter();
  59631. },
  59632. setAllTagFilters: async (included, excluded) => {
  59633. await persistFilters({ includedTagFilters: included, excludedTagFilters: excluded }), await recomputeTagsFilter();
  59634. },
  59635. addTagFilters: async (tags3, excluded) => {
  59636. await addFilters("tag", tags3, excluded), await recomputeTagsFilter(), tags3.length === 1 && BUILT_IN_TAG_IDS.has(tags3[0]) && emitFilterTelemetry("interaction", {
  59637. filterType: "tag",
  59638. filterId: tags3[0],
  59639. action: excluded ? "exclude" : "include"
  59640. });
  59641. },
  59642. removeTagFilters: async (tags3) => {
  59643. await removeFilters("tag", tags3), await recomputeTagsFilter(), tags3.length === 1 && BUILT_IN_TAG_IDS.has(tags3[0]) && emitFilterTelemetry("interaction", {
  59644. filterType: "tag",
  59645. filterId: tags3[0],
  59646. action: "remove"
  59647. });
  59648. },
  59649. resetStatusFilters: async () => {
  59650. await persistFilters({ includedStatusFilters: [], excludedStatusFilters: [] }), await recomputeStatusFilter();
  59651. },
  59652. setAllStatusFilters: async (included, excluded) => {
  59653. let prevState = store2.getState(), prevIncluded = new Set(prevState.includedStatusFilters ?? []), prevExcluded = new Set(prevState.excludedStatusFilters ?? []), nextIncluded = new Set(included), nextExcluded = new Set(excluded);
  59654. await persistFilters({ includedStatusFilters: included, excludedStatusFilters: excluded }), await recomputeStatusFilter();
  59655. let changedIds = /* @__PURE__ */ new Set([
  59656. ...prevIncluded,
  59657. ...prevExcluded,
  59658. ...nextIncluded,
  59659. ...nextExcluded
  59660. ]);
  59661. for (let id of changedIds) {
  59662. let wasIncluded = prevIncluded.has(id), wasExcluded = prevExcluded.has(id), isIncluded = nextIncluded.has(id), isExcluded = nextExcluded.has(id);
  59663. if (wasIncluded === isIncluded && wasExcluded === isExcluded)
  59664. continue;
  59665. let action2;
  59666. isIncluded ? action2 = "include" : isExcluded ? action2 = "exclude" : action2 = "remove", emitFilterTelemetry("interaction", {
  59667. filterType: "status",
  59668. filterId: id,
  59669. action: action2
  59670. });
  59671. }
  59672. },
  59673. addStatusFilters: async (statuses2, excluded) => {
  59674. await addFilters("status", statuses2, excluded), await recomputeStatusFilter(), statuses2.length === 1 && emitFilterTelemetry("interaction", {
  59675. filterType: "status",
  59676. filterId: statuses2[0],
  59677. action: excluded ? "exclude" : "include"
  59678. });
  59679. },
  59680. removeStatusFilters: async (statuses2) => {
  59681. await removeFilters("status", statuses2), await recomputeStatusFilter(), statuses2.length === 1 && emitFilterTelemetry("interaction", {
  59682. filterType: "status",
  59683. filterId: statuses2[0],
  59684. action: "remove"
  59685. });
  59686. }
  59687. }, recomputeTagsFilter = () => {
  59688. let { includedTagFilters, excludedTagFilters } = store2.getState();
  59689. return api.experimental_setFilter(
  59690. TAGS_FILTER,
  59691. computeTagsFilterFn(includedTagFilters, excludedTagFilters)
  59692. );
  59693. }, recomputeStatusFilter = () => {
  59694. let { includedStatusFilters, excludedStatusFilters } = store2.getState();
  59695. return api.experimental_setFilter(
  59696. STATUS_FILTER,
  59697. computeStatusFilterFn(includedStatusFilters ?? [], excludedStatusFilters ?? [])
  59698. );
  59699. };
  59700. provider.channel?.on(
  59701. STORY_SPECIFIED,
  59702. function({
  59703. storyId,
  59704. viewMode
  59705. }) {
  59706. let { sourceType } = getEventMetadata(this, fullAPI);
  59707. if (sourceType === "local") {
  59708. let state3 = store2.getState(), isCanvasRoute = state3.path === "/" || state3.viewMode === "story" || state3.viewMode === "docs", stateHasSelection = state3.viewMode && state3.storyId, stateSelectionDifferent = state3.viewMode !== viewMode || state3.storyId !== storyId, { type: type5 } = state3.index?.[state3.storyId] || {}, isStory2 = !(type5 === "root" || type5 === "component" || type5 === "group");
  59709. if (isCanvasRoute) {
  59710. if (hasActiveFilters(state3) && !stateHasSelection) {
  59711. let { filteredIndex } = state3;
  59712. if (!(filteredIndex && filteredIndex[storyId]?.type === "story")) {
  59713. let firstFiltered = filteredIndex ? Object.keys(filteredIndex).find((id) => {
  59714. let entry = filteredIndex[id];
  59715. return entry.type === "story" || entry.type === "docs";
  59716. }) : void 0;
  59717. firstFiltered && navigateWithQueryParams(`/${viewMode}/${firstFiltered}`);
  59718. return;
  59719. }
  59720. }
  59721. stateHasSelection && stateSelectionDifferent && isStory2 ? provider.channel?.emit(SET_CURRENT_STORY, {
  59722. storyId: state3.storyId,
  59723. viewMode: state3.viewMode
  59724. }) : stateSelectionDifferent && navigateWithQueryParams(`/${viewMode}/${storyId}`);
  59725. }
  59726. }
  59727. }
  59728. ), provider.channel?.on(CURRENT_STORY_WAS_SET, function() {
  59729. let { ref } = getEventMetadata(this, fullAPI);
  59730. api.setPreviewInitialized(ref);
  59731. }), provider.channel?.on(STORY_CHANGED, function() {
  59732. let { sourceType } = getEventMetadata(this, fullAPI);
  59733. if (sourceType === "local") {
  59734. let options = api.getCurrentParameter("options");
  59735. options && fullAPI.setOptions(removeRemovedOptions(options));
  59736. }
  59737. }), provider.channel?.on(
  59738. STORY_PREPARED,
  59739. function({ id, ...update2 }) {
  59740. let { ref, sourceType } = getEventMetadata(this, fullAPI);
  59741. if (api.updateStory(id, { ...update2, prepared: !0 }, ref), !ref && !store2.getState().hasCalledSetOptions) {
  59742. let { options } = update2.parameters;
  59743. fullAPI.setOptions(removeRemovedOptions(options)), store2.setState({ hasCalledSetOptions: !0 });
  59744. }
  59745. if (sourceType === "local") {
  59746. let { storyId, index: index4, refId } = store2.getState();
  59747. if (!index4)
  59748. return;
  59749. let toBePreloaded = Array.from(
  59750. /* @__PURE__ */ new Set([
  59751. api.findSiblingStoryId(storyId, index4, 1, !0),
  59752. api.findSiblingStoryId(storyId, index4, -1, !0)
  59753. ])
  59754. ).filter(Boolean);
  59755. provider.channel?.emit(PRELOAD_ENTRIES, {
  59756. ids: toBePreloaded,
  59757. options: { target: refId }
  59758. });
  59759. }
  59760. }
  59761. ), provider.channel?.on(
  59762. DOCS_PREPARED,
  59763. function({ id, ...update2 }) {
  59764. let { ref } = getEventMetadata(this, fullAPI);
  59765. api.updateStory(id, { ...update2, prepared: !0 }, ref);
  59766. }
  59767. ), provider.channel?.on(SET_INDEX, function(index4) {
  59768. let { ref } = getEventMetadata(this, fullAPI);
  59769. if (ref)
  59770. fullAPI.setRef(ref.id, { ...ref, storyIndex: index4 }, !0);
  59771. else {
  59772. api.setIndex(index4);
  59773. let options = api.getCurrentParameter("options");
  59774. fullAPI.setOptions(removeRemovedOptions(options));
  59775. }
  59776. }), provider.channel?.on(SET_STORIES, function(data) {
  59777. let { ref } = getEventMetadata(this, fullAPI), setStoriesData = data.v ? denormalizeStoryParameters(data) : data.stories;
  59778. if (ref)
  59779. fullAPI.setRef(ref.id, { ...ref, setStoriesData }, !0);
  59780. else
  59781. throw new Error("Cannot call SET_STORIES for local frame");
  59782. }), provider.channel?.on(
  59783. SELECT_STORY,
  59784. function({
  59785. kind,
  59786. title = kind,
  59787. story,
  59788. name = story,
  59789. storyId,
  59790. ...rest
  59791. }) {
  59792. let { ref } = getEventMetadata(this, fullAPI);
  59793. ref ? fullAPI.selectStory(storyId || title, name, { ...rest, ref: ref.id }) : fullAPI.selectStory(storyId || title, name, rest);
  59794. }
  59795. ), provider.channel?.on(
  59796. STORY_ARGS_UPDATED,
  59797. function({ storyId, args }) {
  59798. let { ref } = getEventMetadata(this, fullAPI);
  59799. api.updateStory(storyId, { args }, ref);
  59800. }
  59801. ), provider.channel?.on(CONFIG_ERROR, function(err) {
  59802. let { ref } = getEventMetadata(this, fullAPI);
  59803. api.setPreviewInitialized(ref);
  59804. }), provider.channel?.on(STORY_MISSING, function(err) {
  59805. let { ref } = getEventMetadata(this, fullAPI);
  59806. api.setPreviewInitialized(ref);
  59807. }), provider.channel?.on(SET_CONFIG, () => {
  59808. let configFilters2 = provider.getConfig()?.sidebar?.filters || {}, {
  59809. includedTagFilters,
  59810. excludedTagFilters,
  59811. includedStatusFilters,
  59812. excludedStatusFilters,
  59813. tagPresets: tagPresets2
  59814. } = store2.getState();
  59815. store2.setState({
  59816. filters: {
  59817. ...store2.getState().filters,
  59818. ...configFilters2,
  59819. [STATIC_FILTER]: computeStaticFilterFn(tagPresets2),
  59820. [TAGS_FILTER]: computeTagsFilterFn(includedTagFilters, excludedTagFilters),
  59821. [STATUS_FILTER]: computeStatusFilterFn(includedStatusFilters, excludedStatusFilters)
  59822. }
  59823. });
  59824. }), fullStatusStore.onAllStatusChange(async () => {
  59825. recomputeStatusFilter();
  59826. let { internal_index: index4 } = store2.getState();
  59827. if (!index4)
  59828. return;
  59829. await api.setIndex(index4);
  59830. let refs = await fullAPI.getRefs();
  59831. Object.entries(refs).forEach(([refId, { internal_index, ...ref }]) => {
  59832. fullAPI.setRef(refId, { ...ref, storyIndex: internal_index }, !0);
  59833. });
  59834. });
  59835. let configFilters = provider.getConfig()?.sidebar?.filters || {}, tagPresets = scope.TAGS_OPTIONS || {}, defaultTags = getDefaultTagsFromPreset(tagPresets), { tags: tags2, statuses } = queryFromLocation(location4 ?? { search: "" }), parsedTags = parseTagsParam(tags2), hasTagsParam = tags2 !== void 0, initialIncluded = hasTagsParam ? parsedTags.included : defaultTags.included, initialExcluded = hasTagsParam ? parsedTags.excluded : defaultTags.excluded, parsedStatuses = parseStatusesParam(statuses), initialIncludedStatuses = parsedStatuses.included, initialExcludedStatuses = parsedStatuses.excluded, initialFilters = {
  59836. ...configFilters,
  59837. [STATIC_FILTER]: computeStaticFilterFn(tagPresets),
  59838. [TAGS_FILTER]: computeTagsFilterFn(initialIncluded, initialExcluded),
  59839. [STATUS_FILTER]: computeStatusFilterFn(initialIncludedStatuses, initialExcludedStatuses)
  59840. };
  59841. return {
  59842. api,
  59843. state: {
  59844. storyId: initialStoryId,
  59845. viewMode: initialViewMode,
  59846. hasCalledSetOptions: !1,
  59847. previewInitialized: !1,
  59848. filters: initialFilters,
  59849. tagPresets,
  59850. defaultIncludedTagFilters: defaultTags.included,
  59851. defaultExcludedTagFilters: defaultTags.excluded,
  59852. includedTagFilters: initialIncluded,
  59853. excludedTagFilters: initialExcluded,
  59854. includedStatusFilters: initialIncludedStatuses,
  59855. excludedStatusFilters: initialExcludedStatuses
  59856. },
  59857. init: async () => {
  59858. if (provider.channel?.on(STORY_INDEX_INVALIDATED, () => api.fetchIndex()), await api.fetchIndex(), urlFilterTelemetryEmitted)
  59859. return;
  59860. urlFilterTelemetryEmitted = !0;
  59861. let hasBuiltInTagFilters = initialIncluded.some((id) => BUILT_IN_TAG_IDS.has(id)) || initialExcluded.some((id) => BUILT_IN_TAG_IDS.has(id)), hasStatusFilters = !!globalThis?.FEATURES?.changeDetection && (initialIncludedStatuses.length > 0 || initialExcludedStatuses.length > 0);
  59862. (hasBuiltInTagFilters || hasStatusFilters) && emitFilterTelemetry("url");
  59863. }
  59864. };
  59865. };
  59866. // src/manager-api/modules/url.ts
  59867. var url_exports = {};
  59868. __export(url_exports, {
  59869. init: () => init13
  59870. });
  59871. init_dist();
  59872. var import_picoquery5 = __toESM(require_main(), 1);
  59873. var parseBoolean = (value) => {
  59874. if (value === "true" || value === "1")
  59875. return !0;
  59876. if (value === "false" || value === "0")
  59877. return !1;
  59878. }, parseSerializedParam = (param) => Object.fromEntries(
  59879. param.split(";").map((pair) => pair.split(":")).map(([key, value]) => [key, encodeURIComponent(value)]).filter(([key, value]) => key && value)
  59880. ), mergeSerializedParams = (params, extraParams) => {
  59881. let pairs = parseSerializedParam(params), extra = parseSerializedParam(extraParams);
  59882. return Object.entries({ ...pairs, ...extra }).map(([key, value]) => `${key}:${value}`).join(";");
  59883. }, prevParams, initialUrlSupport = ({
  59884. state: { location: location4, path, viewMode, storyId: storyIdFromUrl },
  59885. singleStory
  59886. }) => {
  59887. let {
  59888. full,
  59889. panel,
  59890. nav,
  59891. shortcuts,
  59892. addonPanel,
  59893. tabs,
  59894. path: queryPath,
  59895. ...otherParams
  59896. // the rest gets passed to the iframe
  59897. } = queryFromLocation(location4), navSize, bottomPanelHeight, rightPanelWidth;
  59898. parseBoolean(full) === !0 ? (navSize = 0, bottomPanelHeight = 0, rightPanelWidth = 0) : parseBoolean(full) === !1 && (navSize = DEFAULT_NAV_SIZE, bottomPanelHeight = DEFAULT_BOTTOM_PANEL_HEIGHT, rightPanelWidth = DEFAULT_RIGHT_PANEL_WIDTH), singleStory || (parseBoolean(nav) === !0 && (navSize = DEFAULT_NAV_SIZE), parseBoolean(nav) === !1 && (navSize = 0)), parseBoolean(panel) === !1 && (bottomPanelHeight = 0, rightPanelWidth = 0);
  59899. let layout = {
  59900. navSize,
  59901. bottomPanelHeight,
  59902. rightPanelWidth,
  59903. panelPosition: ["right", "bottom"].includes(panel) ? panel : void 0,
  59904. showTabs: parseBoolean(tabs)
  59905. }, ui = {
  59906. enableShortcuts: parseBoolean(shortcuts)
  59907. }, selectedPanel = addonPanel || void 0, storyId = storyIdFromUrl, customQueryParams = dequal(prevParams, otherParams) ? prevParams : otherParams;
  59908. return prevParams = customQueryParams, { viewMode, layout, ui, selectedPanel, location: location4, path, customQueryParams, storyId };
  59909. }, init13 = (moduleArgs) => {
  59910. let { store: store2, navigate, provider, fullAPI } = moduleArgs, navigateTo = (path, queryParams = {}, options = {}) => navigate(buildNavigationUrl(path, queryParams), options), api = {
  59911. getStoryHrefs(storyId, options = {}) {
  59912. let { id: currentStoryId, refId: currentRefId } = fullAPI.getCurrentStoryData() ?? {}, isCurrentStory = storyId === currentStoryId && options.refId === currentRefId, { customQueryParams, location: location4, refs } = store2.getState(), {
  59913. base,
  59914. inheritArgs = isCurrentStory,
  59915. inheritGlobals = !0,
  59916. queryParams = {},
  59917. refId,
  59918. viewMode = "story"
  59919. } = options;
  59920. if (refId && !refs[refId])
  59921. throw new Error(`Invalid refId: ${refId}`);
  59922. let pathname = location4.pathname || "/", originAddress = scope.window.location.origin + pathname, networkAddress = scope.STORYBOOK_NETWORK_ADDRESS ?? originAddress, managerBase = base === "origin" ? originAddress : base === "network" ? networkAddress : pathname, previewBase = refId ? refs[refId].url + "/iframe.html" : scope.PREVIEW_URL || `${managerBase.replace(/\/[^/]*\.html$/, "").replace(/\/?$/, "/")}iframe.html`, refParam = refId ? `&refId=${encodeURIComponent(refId)}` : "", { args = "", globals = "", ...otherParams } = queryParams, argsParam = inheritArgs ? mergeSerializedParams(customQueryParams?.args ?? "", args) : args, globalsParam = inheritGlobals ? mergeSerializedParams(customQueryParams?.globals ?? "", globals) : globals, customManagerParams = (0, import_picoquery5.stringify)(otherParams, {
  59923. nesting: !0,
  59924. nestingSyntax: "js"
  59925. }), customPreviewParams = (0, import_picoquery5.stringify)(omit(otherParams, ["id", "viewMode"]), {
  59926. nesting: !0,
  59927. nestingSyntax: "js"
  59928. });
  59929. return argsParam = argsParam && `&args=${argsParam}`, globalsParam = globalsParam && `&globals=${globalsParam}`, customManagerParams = customManagerParams && `&${customManagerParams}`, customPreviewParams = customPreviewParams && `&${customPreviewParams}`, {
  59930. managerHref: `${managerBase}?path=/${viewMode}/${refId ? `${refId}_` : ""}${storyId}${argsParam}${globalsParam}${customManagerParams}`,
  59931. previewHref: `${previewBase}?id=${storyId}&viewMode=${viewMode}${refParam}${argsParam}${refId ? "" : globalsParam}${customPreviewParams}`
  59932. };
  59933. },
  59934. getQueryParam(key) {
  59935. let { customQueryParams } = store2.getState();
  59936. return customQueryParams ? customQueryParams[key] : void 0;
  59937. },
  59938. getUrlState() {
  59939. let { location: location4, path, customQueryParams, storyId, url, viewMode } = store2.getState();
  59940. return {
  59941. path,
  59942. hash: location4?.hash ?? "",
  59943. queryParams: customQueryParams,
  59944. storyId,
  59945. url,
  59946. viewMode
  59947. };
  59948. },
  59949. setQueryParams(input2) {
  59950. let { customQueryParams } = store2.getState(), update2 = { ...customQueryParams };
  59951. for (let [key, value] of Object.entries(input2))
  59952. value == null ? delete update2[key] : update2[key] = value;
  59953. dequal(customQueryParams, update2) || (store2.setState({ customQueryParams: update2 }), provider.channel?.emit(UPDATE_QUERY_PARAMS, update2));
  59954. },
  59955. applyQueryParams(input2, options) {
  59956. let { path, hash: hash4 = "", queryParams } = api.getUrlState();
  59957. navigateTo(`${path}${hash4}`, { ...queryParams, ...input2 }, options), api.setQueryParams(input2);
  59958. },
  59959. navigateUrl(url, options) {
  59960. navigate(url, { plain: !0, ...options });
  59961. }
  59962. }, updateArgsParam = () => {
  59963. let { path, hash: hash4 = "", queryParams, viewMode } = api.getUrlState();
  59964. if (viewMode !== "story")
  59965. return;
  59966. let currentStory = fullAPI.getCurrentStoryData();
  59967. if (currentStory?.type !== "story")
  59968. return;
  59969. let { args, initialArgs } = currentStory, argsString = buildArgsParam(initialArgs, args);
  59970. navigateTo(`${path}${hash4}`, { ...queryParams, args: argsString || null }, { replace: !0 }), api.setQueryParams({ args: argsString || null });
  59971. };
  59972. provider.channel?.on(SET_CURRENT_STORY, () => updateArgsParam());
  59973. let handleOrId;
  59974. return provider.channel?.on(STORY_ARGS_UPDATED, () => {
  59975. "requestIdleCallback" in scope.window ? (handleOrId && scope.window.cancelIdleCallback(handleOrId), handleOrId = scope.window.requestIdleCallback(updateArgsParam, { timeout: 1e3 })) : (handleOrId && clearTimeout(handleOrId), setTimeout(updateArgsParam, 100));
  59976. }), provider.channel?.on(GLOBALS_UPDATED, ({ userGlobals, initialGlobals: initialGlobals5 }) => {
  59977. let { path, hash: hash4 = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals5, merge_default(initialGlobals5, userGlobals));
  59978. navigateTo(
  59979. `${path}${hash4}`,
  59980. { ...queryParams, globals: globalsString || null },
  59981. { replace: !0 }
  59982. ), api.setQueryParams({ globals: globalsString || null });
  59983. }), provider.channel?.on(NAVIGATE_URL, (url, options) => {
  59984. api.navigateUrl(url, options);
  59985. }), {
  59986. api,
  59987. state: initialUrlSupport(moduleArgs),
  59988. init: () => {
  59989. store2.registerPersistenceHandler("url", (_patch, serialize3) => {
  59990. if (serialize3) {
  59991. let params = serialize3(store2.getState());
  59992. api.applyQueryParams(params, { replace: !0 });
  59993. }
  59994. });
  59995. }
  59996. };
  59997. };
  59998. // src/manager-api/modules/versions.ts
  59999. var versions_exports = {};
  60000. __export(versions_exports, {
  60001. init: () => init14
  60002. });
  60003. init_dist();
  60004. var import_memoizerific9 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
  60005. // src/manager-api/version.ts
  60006. var version = "10.4.1";
  60007. // src/manager-api/modules/versions.ts
  60008. var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific9.default)(1)(() => {
  60009. try {
  60010. return { ...JSON.parse(VERSIONCHECK).data || {} };
  60011. } catch {
  60012. return {};
  60013. }
  60014. }), normalizeRendererName = (renderer) => renderer.includes("vue") ? "vue" : renderer, init14 = ({ store: store2 }) => {
  60015. let { dismissedVersionNotification } = store2.getState(), state3 = {
  60016. versions: {
  60017. current: {
  60018. version
  60019. },
  60020. ...getVersionCheckData()
  60021. },
  60022. dismissedVersionNotification
  60023. }, api = {
  60024. getCurrentVersion: () => {
  60025. let {
  60026. versions: { current }
  60027. } = store2.getState();
  60028. return current;
  60029. },
  60030. getLatestVersion: () => {
  60031. let {
  60032. versions: { latest, next: next2, current }
  60033. } = store2.getState();
  60034. return current && import_semver.default.prerelease(current.version) && next2 ? latest && import_semver.default.gt(latest.version, next2.version) ? latest : next2 : latest;
  60035. },
  60036. // TODO: Move this to it's own "info" module later
  60037. getDocsUrl: ({ asset, subpath = asset, versioned, renderer, ref = "ui" }) => {
  60038. let { versions } = store2.getState(), latestVersion = versions.latest?.version, currentVersion = versions.current?.version, activeVersion = currentVersion?.startsWith("0.0.0") && latestVersion || currentVersion, url = `https://storybook.js.org/${asset ? "docs-assets" : "docs"}/`;
  60039. if (asset && activeVersion)
  60040. url += `${import_semver.default.major(activeVersion)}.${import_semver.default.minor(activeVersion)}/`;
  60041. else if (versioned && activeVersion && latestVersion) {
  60042. let versionDiff = import_semver.default.diff(latestVersion, activeVersion);
  60043. versionDiff === "patch" || versionDiff === null || (url += `${import_semver.default.major(activeVersion)}.${import_semver.default.minor(activeVersion)}/`);
  60044. }
  60045. let [cleanedSubpath, hash4] = subpath?.split("#") || [];
  60046. if (cleanedSubpath && (url += asset ? cleanedSubpath : `${cleanedSubpath}/`), renderer && typeof scope.STORYBOOK_RENDERER < "u") {
  60047. let rendererName = scope.STORYBOOK_RENDERER;
  60048. rendererName && (url += `?renderer=${normalizeRendererName(rendererName)}`);
  60049. }
  60050. return ref && (url += `${url.includes("?") ? "&" : "?"}ref=${ref}`), hash4 && (url += `#${hash4}`), url;
  60051. },
  60052. versionUpdateAvailable: () => {
  60053. let latest = api.getLatestVersion(), current = api.getCurrentVersion();
  60054. if (latest) {
  60055. if (!latest.version || !current.version)
  60056. return !0;
  60057. let actualCurrent = !!import_semver.default.prerelease(current.version) ? `${import_semver.default.major(current.version)}.${import_semver.default.minor(current.version)}.${import_semver.default.patch(
  60058. current.version
  60059. )}` : current.version, diff2 = import_semver.default.diff(actualCurrent, latest.version);
  60060. return import_semver.default.gt(latest.version, actualCurrent) && diff2 !== "patch" && !diff2.includes("pre");
  60061. }
  60062. return !1;
  60063. }
  60064. };
  60065. return { init: async () => {
  60066. let { versions = {} } = store2.getState(), { latest, next: next2 } = getVersionCheckData();
  60067. await store2.setState({
  60068. versions: { ...versions, latest, next: next2 }
  60069. });
  60070. }, state: state3, api };
  60071. };
  60072. // src/manager-api/modules/whatsnew.tsx
  60073. var whatsnew_exports = {};
  60074. __export(whatsnew_exports, {
  60075. init: () => init15
  60076. });
  60077. var import_react22 = __toESM(require_react(), 1);
  60078. init_dist();
  60079. var WHATS_NEW_NOTIFICATION_ID = "whats-new", StorybookIcon2 = ({ color: color2 = "currentColor", size = 14 }) => import_react22.default.createElement(
  60080. "svg",
  60081. {
  60082. width: size,
  60083. height: size,
  60084. viewBox: "0 0 14 14",
  60085. fill: "none",
  60086. xmlns: "http://www.w3.org/2000/svg"
  60087. },
  60088. import_react22.default.createElement(
  60089. "path",
  60090. {
  60091. fillRule: "evenodd",
  60092. clipRule: "evenodd",
  60093. d: "M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",
  60094. fill: color2
  60095. }
  60096. )
  60097. ), init15 = ({ fullAPI, store: store2, provider }) => {
  60098. let state3 = {
  60099. whatsNewData: void 0
  60100. };
  60101. function setWhatsNewState(newState) {
  60102. store2.setState({ whatsNewData: newState }), state3.whatsNewData = newState;
  60103. }
  60104. let api = {
  60105. isWhatsNewUnread() {
  60106. return state3.whatsNewData?.status === "SUCCESS" && !state3.whatsNewData.postIsRead;
  60107. },
  60108. whatsNewHasBeenRead() {
  60109. state3.whatsNewData?.status === "SUCCESS" && (setWhatsNewCache({ lastReadPost: state3.whatsNewData.url }), setWhatsNewState({ ...state3.whatsNewData, postIsRead: !0 }), fullAPI.clearNotification(WHATS_NEW_NOTIFICATION_ID));
  60110. },
  60111. toggleWhatsNewNotifications() {
  60112. state3.whatsNewData?.status === "SUCCESS" && (setWhatsNewState({
  60113. ...state3.whatsNewData,
  60114. disableWhatsNewNotifications: !state3.whatsNewData.disableWhatsNewNotifications
  60115. }), provider.channel?.emit(TOGGLE_WHATS_NEW_NOTIFICATIONS, {
  60116. disableWhatsNewNotifications: state3.whatsNewData.disableWhatsNewNotifications
  60117. }));
  60118. }
  60119. };
  60120. function getLatestWhatsNewPost() {
  60121. return provider.channel?.emit(REQUEST_WHATS_NEW_DATA), new Promise(
  60122. (resolve) => provider.channel?.once(
  60123. RESULT_WHATS_NEW_DATA,
  60124. ({ data }) => resolve(data)
  60125. )
  60126. );
  60127. }
  60128. function setWhatsNewCache(cache) {
  60129. provider.channel?.emit(SET_WHATS_NEW_CACHE, cache);
  60130. }
  60131. return { init: async () => {
  60132. if (scope.CONFIG_TYPE !== "DEVELOPMENT")
  60133. return;
  60134. let whatsNewData = await getLatestWhatsNewPost();
  60135. setWhatsNewState(whatsNewData);
  60136. let urlState = fullAPI.getUrlState();
  60137. !(urlState?.path === "/onboarding" || urlState.queryParams?.onboarding === "true") && whatsNewData.status === "SUCCESS" && !whatsNewData.disableWhatsNewNotifications && whatsNewData.showNotification && fullAPI.addNotification({
  60138. id: WHATS_NEW_NOTIFICATION_ID,
  60139. link: "/settings/whats-new",
  60140. content: {
  60141. headline: whatsNewData.title,
  60142. subHeadline: "Learn what's new in Storybook"
  60143. },
  60144. icon: import_react22.default.createElement(StorybookIcon2, null),
  60145. onClear({ dismissed }) {
  60146. dismissed && setWhatsNewCache({ lastDismissedPost: whatsNewData.url });
  60147. }
  60148. });
  60149. }, state: state3, api };
  60150. };
  60151. // src/manager-api/store.ts
  60152. var import_store22 = __toESM(require_store2(), 1);
  60153. // src/manager-api/lib/store-setup.ts
  60154. var store_setup_default = (_) => {
  60155. _.fn("set", function(key, data) {
  60156. return _.set(
  60157. // @ts-expect-error('this' implicitly has type 'any')
  60158. this._area,
  60159. // @ts-expect-error('this' implicitly has type 'any')
  60160. this._in(key),
  60161. stringify(data, { maxDepth: 50 })
  60162. );
  60163. }), _.fn("get", function(key, alt) {
  60164. let value = _.get(this._area, this._in(key));
  60165. return value !== null ? parse(value) : alt || value;
  60166. });
  60167. };
  60168. // src/manager-api/store.ts
  60169. store_setup_default(import_store22.default._);
  60170. var STORAGE_KEY = "@storybook/manager/store";
  60171. function get3(storage) {
  60172. return storage.get(STORAGE_KEY) || {};
  60173. }
  60174. function set2(storage, value) {
  60175. return storage.set(STORAGE_KEY, value);
  60176. }
  60177. function update(storage, patch) {
  60178. let previous = get3(storage);
  60179. return set2(storage, { ...previous, ...patch });
  60180. }
  60181. var Store = class {
  60182. constructor({ allowPersistence, setState: setState2, getState: getState3 }) {
  60183. this.persistenceHandlers = /* @__PURE__ */ new Map();
  60184. this.upstreamPersistence = allowPersistence ?? !0, this.upstreamSetState = setState2, this.upstreamGetState = getState3;
  60185. }
  60186. registerPersistenceHandler(key, handler) {
  60187. this.persistenceHandlers.set(key, handler);
  60188. }
  60189. // The assumption is that this will be called once, to initialize the React state
  60190. // when the module is instantiated
  60191. getInitialState(base) {
  60192. for (let storage of [import_store22.default.local, import_store22.default.session]) {
  60193. let persisted = get3(storage);
  60194. if ("includedTagFilters" in persisted || "excludedTagFilters" in persisted) {
  60195. let { includedTagFilters: _i, excludedTagFilters: _e, ...rest } = persisted;
  60196. set2(storage, rest);
  60197. }
  60198. }
  60199. let local = get3(import_store22.default.local), session = get3(import_store22.default.session);
  60200. return { ...base, ...local, ...session };
  60201. }
  60202. getState() {
  60203. return this.upstreamGetState();
  60204. }
  60205. async setState(inputPatch, cbOrOptions, inputOptions) {
  60206. let callback, options;
  60207. typeof cbOrOptions == "function" ? (callback = cbOrOptions, options = inputOptions) : options = cbOrOptions;
  60208. let { persistence = "none" } = options || {}, patch = {}, delta = {};
  60209. typeof inputPatch == "function" ? patch = (state3) => (delta = inputPatch(state3), delta) : (patch = inputPatch, delta = patch);
  60210. let newState = await new Promise((resolve) => {
  60211. this.upstreamSetState(patch, () => {
  60212. resolve(this.getState());
  60213. });
  60214. });
  60215. if (persistence !== "none" && this.upstreamPersistence)
  60216. if (persistence === "url") {
  60217. let handler = this.persistenceHandlers.get("url");
  60218. handler && await handler(delta, options?.serialize);
  60219. } else {
  60220. let storage = persistence === "session" ? import_store22.default.session : import_store22.default.local;
  60221. await update(storage, delta);
  60222. }
  60223. return callback && callback(newState), newState;
  60224. }
  60225. };
  60226. // src/manager-api/lib/request-response.ts
  60227. var RequestResponseError = class extends Error {
  60228. constructor(message, payload) {
  60229. super(message);
  60230. this.payload = void 0;
  60231. this.payload = payload;
  60232. }
  60233. }, experimental_requestResponse = (channel, requestEvent, responseEvent, payload, timeout = 5e3) => {
  60234. let timeoutId;
  60235. return new Promise((resolve, reject) => {
  60236. let request = {
  60237. id: Math.random().toString(16).slice(2),
  60238. payload
  60239. }, responseHandler = (response) => {
  60240. response.id === request.id && (clearTimeout(timeoutId), channel.off(responseEvent, responseHandler), response.success ? resolve(response.payload) : reject(new RequestResponseError(response.error, response.payload)));
  60241. };
  60242. channel.emit(requestEvent, request), channel.on(responseEvent, responseHandler), timeoutId = setTimeout(() => {
  60243. channel.off(responseEvent, responseHandler), reject(new RequestResponseError("Timed out waiting for response"));
  60244. }, timeout);
  60245. });
  60246. };
  60247. // src/manager-api/root.tsx
  60248. var { ActiveTabs: ActiveTabs2 } = layout_exports;
  60249. var ManagerContext = createContext4({ api: void 0, state: initial_state_default({}) }), combineParameters2 = (...parameterSets) => noArrayMerge({}, ...parameterSets), ManagerProvider = class extends import_react23.Component {
  60250. constructor(props) {
  60251. super(props);
  60252. this.api = {};
  60253. this.initModules = () => {
  60254. this.modules.forEach((module2) => {
  60255. "init" in module2 && module2.init();
  60256. });
  60257. };
  60258. let {
  60259. location: location4,
  60260. path,
  60261. refId,
  60262. viewMode = props.docsOptions.docsMode ? "docs" : props.viewMode,
  60263. singleStory,
  60264. storyId,
  60265. docsOptions,
  60266. navigate
  60267. } = props, store2 = new Store({
  60268. getState: () => this.state,
  60269. setState: (stateChange, callback) => (this.setState(stateChange, () => callback(this.state)), this.state)
  60270. }), routeData = { location: location4, path, viewMode, singleStory, storyId, refId }, optionsData = { docsOptions };
  60271. this.state = store2.getInitialState(initial_state_default({ ...routeData, ...optionsData }));
  60272. let apiData = {
  60273. navigate,
  60274. store: store2,
  60275. provider: props.provider
  60276. };
  60277. this.modules = [
  60278. provider_exports,
  60279. channel_exports,
  60280. addons_exports,
  60281. layout_exports,
  60282. notifications_exports,
  60283. settings_exports,
  60284. shortcuts_exports,
  60285. stories_exports,
  60286. refs_exports,
  60287. globals_exports,
  60288. url_exports,
  60289. versions_exports,
  60290. whatsnew_exports,
  60291. open_in_editor_exports
  60292. ].map(
  60293. (m3) => m3.init({ ...routeData, ...optionsData, ...apiData, state: this.state, fullAPI: this.api })
  60294. );
  60295. let state3 = initial_state_default(this.state, ...this.modules.map((m3) => m3.state)), api = Object.assign(this.api, { navigate }, ...this.modules.map((m3) => m3.api));
  60296. this.state = state3, this.api = api;
  60297. }
  60298. static getDerivedStateFromProps(props, state3) {
  60299. return state3.path !== props.path ? {
  60300. ...state3,
  60301. location: props.location,
  60302. path: props.path,
  60303. refId: props.refId,
  60304. viewMode: props.viewMode,
  60305. storyId: props.storyId
  60306. } : null;
  60307. }
  60308. shouldComponentUpdate(nextProps, nextState) {
  60309. let prevProps = this.props, prevState = this.state;
  60310. return prevProps.path !== nextProps.path || !isEqual(prevState, nextState);
  60311. }
  60312. render() {
  60313. let { children } = this.props, value = {
  60314. state: this.state,
  60315. api: this.api
  60316. };
  60317. return import_react23.default.createElement(EffectOnMount, { effect: this.initModules }, import_react23.default.createElement(ManagerContext.Provider, { value }, import_react23.default.createElement(ManagerConsumer, null, children)));
  60318. }
  60319. };
  60320. ManagerProvider.displayName = "Manager";
  60321. var EffectOnMount = ({ children, effect: effect4 }) => (import_react23.default.useEffect(effect4, []), children), defaultFilter = (c) => c;
  60322. function ManagerConsumer({
  60323. // @ts-expect-error (Converted from ts-ignore)
  60324. filter = defaultFilter,
  60325. children
  60326. }) {
  60327. let managerContext = (0, import_react23.useContext)(ManagerContext), renderer = (0, import_react23.useRef)(children), filterer = (0, import_react23.useRef)(filter);
  60328. if (typeof renderer.current != "function")
  60329. return import_react23.default.createElement(import_react23.Fragment, null, renderer.current);
  60330. let comboData = filterer.current(managerContext), comboDataArray = (0, import_react23.useMemo)(() => [...Object.entries(comboData).reduce((acc, keyval) => acc.concat(keyval), [])], [managerContext.state]);
  60331. return (0, import_react23.useMemo)(() => {
  60332. let Child = renderer.current;
  60333. return import_react23.default.createElement(Child, { ...comboData });
  60334. }, comboDataArray);
  60335. }
  60336. function useStorybookState() {
  60337. let { state: state3 } = (0, import_react23.useContext)(ManagerContext);
  60338. return state3;
  60339. }
  60340. function useStorybookApi() {
  60341. let { api } = (0, import_react23.useContext)(ManagerContext);
  60342. return api;
  60343. }
  60344. function orDefault(fromStore, defaultState) {
  60345. return typeof fromStore > "u" ? defaultState : fromStore;
  60346. }
  60347. var useChannel2 = (eventMap3, deps = []) => {
  60348. let api = useStorybookApi();
  60349. return (0, import_react23.useEffect)(() => (Object.entries(eventMap3).forEach(([type5, listener]) => api.on(type5, listener)), () => {
  60350. Object.entries(eventMap3).forEach(([type5, listener]) => api.off(type5, listener));
  60351. }), deps), api.emit;
  60352. };
  60353. function useStoryPrepared(storyId) {
  60354. return useStorybookApi().isPrepared(storyId);
  60355. }
  60356. function useParameter2(parameterKey, defaultValue) {
  60357. let api = useStorybookApi(), [parameter, setParameter] = (0, import_react23.useState)(api.getCurrentParameter(parameterKey)), handleParameterChange = (0, import_react23.useCallback)(() => {
  60358. let newParameter = api.getCurrentParameter(parameterKey);
  60359. setParameter(newParameter);
  60360. }, [api, parameterKey]);
  60361. return useChannel2(
  60362. {
  60363. [STORY_PREPARED]: handleParameterChange,
  60364. [DOCS_PREPARED]: handleParameterChange
  60365. },
  60366. [handleParameterChange]
  60367. ), orDefault(parameter, defaultValue);
  60368. }
  60369. globalThis.STORYBOOK_ADDON_STATE = {};
  60370. var { STORYBOOK_ADDON_STATE } = globalThis;
  60371. function useSharedState(stateId, defaultState) {
  60372. let api = useStorybookApi(), existingState = api.getAddonState(stateId) || STORYBOOK_ADDON_STATE[stateId], state3 = orDefault(
  60373. existingState,
  60374. STORYBOOK_ADDON_STATE[stateId] ? STORYBOOK_ADDON_STATE[stateId] : defaultState
  60375. ), quicksync = !1;
  60376. state3 === defaultState && defaultState !== void 0 && (STORYBOOK_ADDON_STATE[stateId] = defaultState, quicksync = !0), (0, import_react23.useEffect)(() => {
  60377. quicksync && api.setAddonState(stateId, defaultState);
  60378. }, [quicksync]);
  60379. let setState2 = (0, import_react23.useCallback)(
  60380. async (s3, options) => {
  60381. await api.setAddonState(stateId, s3, options);
  60382. let result = api.getAddonState(stateId);
  60383. return STORYBOOK_ADDON_STATE[stateId] = result, result;
  60384. },
  60385. [api, stateId]
  60386. ), allListeners = (0, import_react23.useMemo)(() => {
  60387. let stateChangeHandlers = {
  60388. [`${SHARED_STATE_CHANGED}-client-${stateId}`]: setState2,
  60389. [`${SHARED_STATE_SET}-client-${stateId}`]: setState2
  60390. }, stateInitializationHandlers = {
  60391. [SET_STORIES]: async () => {
  60392. let currentState = api.getAddonState(stateId);
  60393. currentState ? (STORYBOOK_ADDON_STATE[stateId] = currentState, api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, currentState)) : STORYBOOK_ADDON_STATE[stateId] ? (await setState2(STORYBOOK_ADDON_STATE[stateId]), api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, STORYBOOK_ADDON_STATE[stateId])) : defaultState !== void 0 && (await setState2(defaultState), STORYBOOK_ADDON_STATE[stateId] = defaultState, api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, defaultState));
  60394. },
  60395. [STORY_CHANGED]: () => {
  60396. let currentState = api.getAddonState(stateId);
  60397. currentState !== void 0 && api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, currentState);
  60398. }
  60399. };
  60400. return {
  60401. ...stateChangeHandlers,
  60402. ...stateInitializationHandlers
  60403. };
  60404. }, [stateId]), emit = useChannel2(allListeners), stateSetter = (0, import_react23.useCallback)(
  60405. async (newStateOrMerger, options) => {
  60406. await setState2(newStateOrMerger, options);
  60407. let result = api.getAddonState(stateId);
  60408. emit(`${SHARED_STATE_CHANGED}-manager-${stateId}`, result);
  60409. },
  60410. [api, emit, setState2, stateId]
  60411. );
  60412. return [state3, stateSetter];
  60413. }
  60414. function useAddonState(addonId, defaultState) {
  60415. return useSharedState(addonId, defaultState);
  60416. }
  60417. function useArgs2() {
  60418. let { getCurrentStoryData, updateStoryArgs, resetStoryArgs } = useStorybookApi(), data = getCurrentStoryData(), args = data?.type === "story" ? data.args : {}, initialArgs = data?.type === "story" ? data.initialArgs : {}, updateArgs = (0, import_react23.useCallback)(
  60419. (newArgs) => updateStoryArgs(data, newArgs),
  60420. [data, updateStoryArgs]
  60421. ), resetArgs = (0, import_react23.useCallback)(
  60422. (argNames) => resetStoryArgs(data, argNames),
  60423. [data, resetStoryArgs]
  60424. );
  60425. return [args, updateArgs, resetArgs, initialArgs];
  60426. }
  60427. function useGlobals2() {
  60428. let api = useStorybookApi();
  60429. return [api.getGlobals(), api.updateGlobals, api.getStoryGlobals(), api.getUserGlobals()];
  60430. }
  60431. function useGlobalTypes() {
  60432. return useStorybookApi().getGlobalTypes();
  60433. }
  60434. function useCurrentStory() {
  60435. let { getCurrentStoryData } = useStorybookApi();
  60436. return getCurrentStoryData();
  60437. }
  60438. function useArgTypes() {
  60439. let current = useCurrentStory();
  60440. return current?.type === "story" && current.argTypes || {};
  60441. }
  60442. var typesX = Addon_TypesEnum;
  60443. // src/shared/universal-store/mock.ts
  60444. init_esm();
  60445. var MockUniversalStore = class _MockUniversalStore extends UniversalStore {
  60446. constructor(options, testUtils) {
  60447. UniversalStore.isInternalConstructing = !0, super(
  60448. { ...options, leader: !0 },
  60449. { channel: new Channel({}), environment: UniversalStore.Environment.MOCK }
  60450. ), UniversalStore.isInternalConstructing = !1, typeof testUtils?.fn == "function" && (this.testUtils = testUtils, this.getState = testUtils.fn(this.getState), this.setState = testUtils.fn(this.setState), this.subscribe = testUtils.fn(this.subscribe), this.onStateChange = testUtils.fn(this.onStateChange), this.send = testUtils.fn(this.send));
  60451. }
  60452. /** Create a mock universal store. This is just an alias for the constructor */
  60453. static create(options, testUtils) {
  60454. return new _MockUniversalStore(options, testUtils);
  60455. }
  60456. unsubscribeAll() {
  60457. if (!this.testUtils)
  60458. throw new Error(
  60459. dedent`Cannot call unsubscribeAll on a store that does not have testUtils.
  60460. Please provide testUtils as the second argument when creating the store.`
  60461. );
  60462. let callReturnedUnsubscribeFn = (result) => {
  60463. try {
  60464. result.value();
  60465. } catch {
  60466. }
  60467. };
  60468. this.subscribe.mock?.results.forEach(callReturnedUnsubscribeFn), this.onStateChange.mock?.results.forEach(callReturnedUnsubscribeFn);
  60469. }
  60470. };
  60471. // src/shared/test-provider-store/index.ts
  60472. var UNIVERSAL_TEST_PROVIDER_STORE_OPTIONS = {
  60473. id: "storybook/test-provider",
  60474. leader: !0,
  60475. initialState: {}
  60476. };
  60477. function createTestProviderStore({
  60478. universalTestProviderStore: universalTestProviderStore2,
  60479. useUniversalStore: useUniversalStore2
  60480. }) {
  60481. let baseStore = {
  60482. settingsChanged: () => {
  60483. universalTestProviderStore2.untilReady().then(() => {
  60484. universalTestProviderStore2.send({ type: "settings-changed" });
  60485. });
  60486. },
  60487. onRunAll: (listener) => universalTestProviderStore2.subscribe("run-all", listener),
  60488. onClearAll: (listener) => universalTestProviderStore2.subscribe("clear-all", listener)
  60489. }, fullTestProviderStore2 = {
  60490. ...baseStore,
  60491. getFullState: universalTestProviderStore2.getState,
  60492. setFullState: universalTestProviderStore2.setState,
  60493. onSettingsChanged: (listener) => universalTestProviderStore2.subscribe("settings-changed", listener),
  60494. runAll: async () => {
  60495. await universalTestProviderStore2.untilReady(), universalTestProviderStore2.send({ type: "run-all" });
  60496. },
  60497. clearAll: async () => {
  60498. await universalTestProviderStore2.untilReady(), universalTestProviderStore2.send({ type: "clear-all" });
  60499. }
  60500. }, getTestProviderStoreById2 = (testProviderId) => {
  60501. let getStateForTestProvider = () => universalTestProviderStore2.getState()[testProviderId] ?? "test-provider-state:pending", setStateForTestProvider = (state3) => {
  60502. universalTestProviderStore2.untilReady().then(() => {
  60503. universalTestProviderStore2.setState((currentState) => ({
  60504. ...currentState,
  60505. [testProviderId]: state3
  60506. }));
  60507. });
  60508. };
  60509. return {
  60510. ...baseStore,
  60511. testProviderId,
  60512. getState: getStateForTestProvider,
  60513. setState: setStateForTestProvider,
  60514. runWithState: async (callback) => {
  60515. setStateForTestProvider("test-provider-state:running");
  60516. try {
  60517. await callback(), setStateForTestProvider("test-provider-state:succeeded");
  60518. } catch {
  60519. setStateForTestProvider("test-provider-state:crashed");
  60520. }
  60521. }
  60522. };
  60523. };
  60524. return useUniversalStore2 ? {
  60525. getTestProviderStoreById: getTestProviderStoreById2,
  60526. fullTestProviderStore: fullTestProviderStore2,
  60527. universalTestProviderStore: universalTestProviderStore2,
  60528. useTestProviderStore: (selector) => useUniversalStore2(universalTestProviderStore2, selector)[0]
  60529. } : {
  60530. getTestProviderStoreById: getTestProviderStoreById2,
  60531. fullTestProviderStore: fullTestProviderStore2,
  60532. universalTestProviderStore: universalTestProviderStore2
  60533. };
  60534. }
  60535. // src/manager-api/stores/test-provider.ts
  60536. var testProviderStore = createTestProviderStore({
  60537. universalTestProviderStore: UniversalStore.create({
  60538. ...UNIVERSAL_TEST_PROVIDER_STORE_OPTIONS,
  60539. leader: globalThis.CONFIG_TYPE === "PRODUCTION"
  60540. }),
  60541. useUniversalStore
  60542. }), {
  60543. fullTestProviderStore,
  60544. getTestProviderStoreById,
  60545. useTestProviderStore,
  60546. universalTestProviderStore
  60547. } = testProviderStore;
  60548. // src/shared/checklist-store/checklistData.state.ts
  60549. var initialState = {
  60550. items: {
  60551. accessibilityTests: { status: "open" },
  60552. aiSetup: { status: "open" },
  60553. autodocs: { status: "open" },
  60554. ciTests: { status: "open" },
  60555. controls: { status: "open" },
  60556. coverage: { status: "open" },
  60557. guidedTour: { status: "open" },
  60558. installA11y: { status: "open" },
  60559. installChromatic: { status: "open" },
  60560. installDocs: { status: "open" },
  60561. installVitest: { status: "open" },
  60562. mdxDocs: { status: "open" },
  60563. moreComponents: { status: "open" },
  60564. moreStories: { status: "open" },
  60565. onboardingSurvey: { status: "open" },
  60566. organizeStories: { status: "open" },
  60567. renderComponent: { status: "open" },
  60568. runTests: { status: "open" },
  60569. publishStorybook: { status: "open" },
  60570. shareStorybook: { status: "open" },
  60571. viewports: { status: "open" },
  60572. visualTests: { status: "open" },
  60573. whatsNewStorybook10: { status: "open" },
  60574. writeInteractions: { status: "open" }
  60575. },
  60576. widget: {}
  60577. };
  60578. // src/shared/checklist-store/index.ts
  60579. var UNIVERSAL_CHECKLIST_STORE_OPTIONS = {
  60580. id: "storybook/checklist",
  60581. initialState
  60582. }, createChecklistStore = (universalChecklistStore2) => ({
  60583. getValue: (id) => universalChecklistStore2.getState().items[id] ?? { status: "open", mutedAt: void 0 },
  60584. accept: (id) => {
  60585. universalChecklistStore2.setState((state3) => ({
  60586. ...state3,
  60587. items: { ...state3.items, [id]: { ...state3.items[id], status: "accepted" } }
  60588. }));
  60589. },
  60590. done: (id) => {
  60591. universalChecklistStore2.setState((state3) => ({
  60592. ...state3,
  60593. items: { ...state3.items, [id]: { ...state3.items[id], status: "done" } }
  60594. }));
  60595. },
  60596. skip: (id) => {
  60597. universalChecklistStore2.setState((state3) => ({
  60598. ...state3,
  60599. items: { ...state3.items, [id]: { ...state3.items[id], status: "skipped" } }
  60600. }));
  60601. },
  60602. reset: (id) => {
  60603. universalChecklistStore2.setState((state3) => ({
  60604. ...state3,
  60605. items: { ...state3.items, [id]: { ...state3.items[id], status: "open" } }
  60606. }));
  60607. },
  60608. mute: (itemIds) => {
  60609. universalChecklistStore2.setState((state3) => ({
  60610. ...state3,
  60611. items: itemIds.reduce(
  60612. (acc, id) => ({ ...acc, [id]: { ...state3.items[id], mutedAt: Date.now() } }),
  60613. state3.items
  60614. )
  60615. }));
  60616. },
  60617. disable: (value) => {
  60618. universalChecklistStore2.setState((state3) => ({
  60619. ...state3,
  60620. widget: { ...state3.widget, disable: value },
  60621. items: Object.entries(state3.items).reduce(
  60622. (acc, [id, value2]) => ({ ...acc, [id]: { ...value2, mutedAt: void 0 } }),
  60623. state3.items
  60624. )
  60625. }));
  60626. }
  60627. });
  60628. // src/manager-api/stores/checklist.ts
  60629. var universalChecklistStore = UniversalStore.create({
  60630. ...UNIVERSAL_CHECKLIST_STORE_OPTIONS,
  60631. leader: globalThis.CONFIG_TYPE === "PRODUCTION"
  60632. }), checklistStore = createChecklistStore(universalChecklistStore);
  60633. // src/components/components/Button/Button.tsx
  60634. init_theming();
  60635. // src/components/components/Button/helpers/InteractiveTooltipWrapper.tsx
  60636. var import_react92 = __toESM(require_react(), 1);
  60637. // src/components/components/tooltip/TooltipNote.tsx
  60638. var import_react24 = __toESM(require_react(), 1);
  60639. init_theming();
  60640. var Note = styled.div(({ theme: theme3 }) => ({
  60641. padding: "2px 6px",
  60642. lineHeight: "16px",
  60643. fontSize: 10,
  60644. fontWeight: theme3.typography.weight.bold,
  60645. color: theme3.color.lightest,
  60646. boxShadow: "0 0 5px 0 rgba(0, 0, 0, 0.3)",
  60647. borderRadius: 4,
  60648. whiteSpace: "nowrap",
  60649. pointerEvents: "none",
  60650. zIndex: -1,
  60651. background: theme3.base === "light" ? "rgba(60, 60, 60, 0.9)" : "rgba(0, 0, 0, 0.95)"
  60652. })), TooltipNote = ({ note, ...props }) => import_react24.default.createElement(Note, { ...props }, note);
  60653. // src/components/components/tooltip/TooltipProvider.tsx
  60654. var import_react91 = __toESM(require_react(), 1);
  60655. init_client_logger();
  60656. // ../../node_modules/@react-aria/utils/dist/useLayoutEffect.mjs
  60657. var import_react25 = __toESM(require_react(), 1), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document < "u" ? import_react25.default.useLayoutEffect : () => {
  60658. };
  60659. // ../../node_modules/@react-aria/utils/dist/useValueEffect.mjs
  60660. var import_react26 = __toESM(require_react(), 1);
  60661. function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
  60662. let [value, setValue] = (0, import_react26.useState)(defaultValue), currValue = (0, import_react26.useRef)(value), effect4 = (0, import_react26.useRef)(null), nextRef = (0, import_react26.useRef)(() => {
  60663. if (!effect4.current) return;
  60664. let newValue = effect4.current.next();
  60665. if (newValue.done) {
  60666. effect4.current = null;
  60667. return;
  60668. }
  60669. currValue.current === newValue.value ? nextRef.current() : setValue(newValue.value);
  60670. });
  60671. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  60672. currValue.current = value, effect4.current && nextRef.current();
  60673. });
  60674. let queue = (0, import_react26.useCallback)((fn4) => {
  60675. effect4.current = fn4(currValue.current), nextRef.current();
  60676. }, [
  60677. nextRef
  60678. ]);
  60679. return [
  60680. value,
  60681. queue
  60682. ];
  60683. }
  60684. // ../../node_modules/@react-aria/utils/dist/useId.mjs
  60685. var import_react28 = __toESM(require_react(), 1);
  60686. // ../../node_modules/@react-aria/ssr/dist/SSRProvider.mjs
  60687. var import_react27 = __toESM(require_react(), 1), $b5e257d569688ac6$var$defaultContext = {
  60688. prefix: String(Math.round(Math.random() * 1e10)),
  60689. current: 0
  60690. }, $b5e257d569688ac6$var$SSRContext = import_react27.default.createContext($b5e257d569688ac6$var$defaultContext), $b5e257d569688ac6$var$IsSSRContext = import_react27.default.createContext(!1);
  60691. var $b5e257d569688ac6$var$canUseDOM = !!(typeof window < "u" && window.document && window.document.createElement), $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
  60692. function $b5e257d569688ac6$var$useCounter(isDisabled3 = !1) {
  60693. let ctx = (0, import_react27.useContext)($b5e257d569688ac6$var$SSRContext), ref = (0, import_react27.useRef)(null);
  60694. if (ref.current === null && !isDisabled3) {
  60695. var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  60696. let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = import_react27.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 || (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
  60697. if (currentOwner) {
  60698. let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
  60699. prevComponentValue == null ? $b5e257d569688ac6$var$componentIds.set(currentOwner, {
  60700. id: ctx.current,
  60701. state: currentOwner.memoizedState
  60702. }) : currentOwner.memoizedState !== prevComponentValue.state && (ctx.current = prevComponentValue.id, $b5e257d569688ac6$var$componentIds.delete(currentOwner));
  60703. }
  60704. ref.current = ++ctx.current;
  60705. }
  60706. return ref.current;
  60707. }
  60708. function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
  60709. let ctx = (0, import_react27.useContext)($b5e257d569688ac6$var$SSRContext), counter = $b5e257d569688ac6$var$useCounter(!!defaultId), prefix4 = `react-aria${ctx.prefix}`;
  60710. return defaultId || `${prefix4}-${counter}`;
  60711. }
  60712. function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
  60713. let id = import_react27.default.useId(), [didSSR] = (0, import_react27.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()), prefix4 = didSSR ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
  60714. return defaultId || `${prefix4}-${id}`;
  60715. }
  60716. var $b5e257d569688ac6$export$619500959fc48b26 = typeof import_react27.default.useId == "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
  60717. function $b5e257d569688ac6$var$getSnapshot() {
  60718. return !1;
  60719. }
  60720. function $b5e257d569688ac6$var$getServerSnapshot() {
  60721. return !0;
  60722. }
  60723. function $b5e257d569688ac6$var$subscribe(onStoreChange) {
  60724. return () => {
  60725. };
  60726. }
  60727. function $b5e257d569688ac6$export$535bd6ca7f90a273() {
  60728. return typeof import_react27.default.useSyncExternalStore == "function" ? import_react27.default.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : (0, import_react27.useContext)($b5e257d569688ac6$var$IsSSRContext);
  60729. }
  60730. // ../../node_modules/@react-aria/utils/dist/useId.mjs
  60731. var $bdb11010cef70236$var$canUseDOM = !!(typeof window < "u" && window.document && window.document.createElement), $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map(), $bdb11010cef70236$var$registry;
  60732. typeof FinalizationRegistry < "u" && ($bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
  60733. $bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
  60734. }));
  60735. function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
  60736. let [value, setValue] = (0, import_react28.useState)(defaultId), nextId = (0, import_react28.useRef)(null), res = $b5e257d569688ac6$export$619500959fc48b26(value), cleanupRef = (0, import_react28.useRef)(null);
  60737. if ($bdb11010cef70236$var$registry && $bdb11010cef70236$var$registry.register(cleanupRef, res), $bdb11010cef70236$var$canUseDOM) {
  60738. let cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
  60739. cacheIdRef && !cacheIdRef.includes(nextId) ? cacheIdRef.push(nextId) : $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
  60740. nextId
  60741. ]);
  60742. }
  60743. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  60744. let r2 = res;
  60745. return () => {
  60746. $bdb11010cef70236$var$registry && $bdb11010cef70236$var$registry.unregister(cleanupRef), $bdb11010cef70236$export$d41a04c74483c6ef.delete(r2);
  60747. };
  60748. }, [
  60749. res
  60750. ]), (0, import_react28.useEffect)(() => {
  60751. let newId = nextId.current;
  60752. return newId && setValue(newId), () => {
  60753. newId && (nextId.current = null);
  60754. };
  60755. }), res;
  60756. }
  60757. function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
  60758. if (idA === idB) return idA;
  60759. let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);
  60760. if (setIdsA)
  60761. return setIdsA.forEach((ref) => ref.current = idB), idB;
  60762. let setIdsB = $bdb11010cef70236$export$d41a04c74483c6ef.get(idB);
  60763. return setIdsB ? (setIdsB.forEach((ref) => ref.current = idA), idA) : idB;
  60764. }
  60765. function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
  60766. let id = $bdb11010cef70236$export$f680877a34711e37(), [resolvedId, setResolvedId] = $1dbecbe27a04f9af$export$14d238f342723f25(id), updateId = (0, import_react28.useCallback)(() => {
  60767. setResolvedId(function* () {
  60768. yield id, yield document.getElementById(id) ? id : void 0;
  60769. });
  60770. }, [
  60771. id,
  60772. setResolvedId
  60773. ]);
  60774. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updateId, [
  60775. id,
  60776. updateId,
  60777. ...depArray
  60778. ]), resolvedId;
  60779. }
  60780. // ../../node_modules/@react-aria/utils/dist/chain.mjs
  60781. function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
  60782. return (...args) => {
  60783. for (let callback of callbacks) typeof callback == "function" && callback(...args);
  60784. };
  60785. }
  60786. // ../../node_modules/@react-aria/utils/dist/domHelpers.mjs
  60787. var $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
  60788. var _el_ownerDocument;
  60789. return (_el_ownerDocument = el?.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
  60790. }, $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => el && "window" in el && el.window === el ? el : $431fbd86ca7dc216$export$b204af158042fbac(el).defaultView || window;
  60791. function $431fbd86ca7dc216$var$isNode(value) {
  60792. return value !== null && typeof value == "object" && "nodeType" in value && typeof value.nodeType == "number";
  60793. }
  60794. function $431fbd86ca7dc216$export$af51f0f06c0f328a(node2) {
  60795. return $431fbd86ca7dc216$var$isNode(node2) && node2.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in node2;
  60796. }
  60797. // ../../node_modules/@react-stately/flags/dist/import.mjs
  60798. var $f4e2df6bd15f8569$var$_shadowDOM = !1;
  60799. function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
  60800. return $f4e2df6bd15f8569$var$_shadowDOM;
  60801. }
  60802. // ../../node_modules/@react-aria/utils/dist/DOMFunctions.mjs
  60803. function $d4ee10de306f2510$export$4282f70798064fe0(node2, otherNode) {
  60804. if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return otherNode && node2 ? node2.contains(otherNode) : !1;
  60805. if (!node2 || !otherNode) return !1;
  60806. let currentNode = otherNode;
  60807. for (; currentNode !== null; ) {
  60808. if (currentNode === node2) return !0;
  60809. currentNode.tagName === "SLOT" && currentNode.assignedSlot ? currentNode = currentNode.assignedSlot.parentNode : $431fbd86ca7dc216$export$af51f0f06c0f328a(currentNode) ? currentNode = currentNode.host : currentNode = currentNode.parentNode;
  60810. }
  60811. return !1;
  60812. }
  60813. var $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document) => {
  60814. var _activeElement_shadowRoot;
  60815. if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return doc.activeElement;
  60816. let activeElement = doc.activeElement;
  60817. for (; activeElement && "shadowRoot" in activeElement && (!((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0) && _activeElement_shadowRoot.activeElement); ) activeElement = activeElement.shadowRoot.activeElement;
  60818. return activeElement;
  60819. };
  60820. function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
  60821. return $f4e2df6bd15f8569$export$98658e8c59125e6a() && event.target.shadowRoot && event.composedPath ? event.composedPath()[0] : event.target;
  60822. }
  60823. // ../../node_modules/@react-aria/utils/dist/ShadowTreeWalker.mjs
  60824. var $dfc540311bf7f109$export$63eb3ababa9c55c4 = class {
  60825. get currentNode() {
  60826. return this._currentNode;
  60827. }
  60828. set currentNode(node2) {
  60829. if (!$d4ee10de306f2510$export$4282f70798064fe0(this.root, node2)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
  60830. let walkers = [], curNode = node2, currentWalkerCurrentNode = node2;
  60831. for (this._currentNode = node2; curNode && curNode !== this.root; ) if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
  60832. let shadowRoot = curNode, walker2 = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
  60833. acceptNode: this._acceptNode
  60834. });
  60835. walkers.push(walker2), walker2.currentNode = currentWalkerCurrentNode, this._currentSetFor.add(walker2), curNode = currentWalkerCurrentNode = shadowRoot.host;
  60836. } else curNode = curNode.parentNode;
  60837. let walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
  60838. acceptNode: this._acceptNode
  60839. });
  60840. walkers.push(walker), walker.currentNode = currentWalkerCurrentNode, this._currentSetFor.add(walker), this._walkerStack = walkers;
  60841. }
  60842. get doc() {
  60843. return this._doc;
  60844. }
  60845. firstChild() {
  60846. let currentNode = this.currentNode, newNode = this.nextNode();
  60847. return $d4ee10de306f2510$export$4282f70798064fe0(currentNode, newNode) ? (newNode && (this.currentNode = newNode), newNode) : (this.currentNode = currentNode, null);
  60848. }
  60849. lastChild() {
  60850. let newNode = this._walkerStack[0].lastChild();
  60851. return newNode && (this.currentNode = newNode), newNode;
  60852. }
  60853. nextNode() {
  60854. let nextNode = this._walkerStack[0].nextNode();
  60855. if (nextNode) {
  60856. if (nextNode.shadowRoot) {
  60857. var _this_filter;
  60858. let nodeResult;
  60859. if (typeof this.filter == "function" ? nodeResult = this.filter(nextNode) : !((_this_filter = this.filter) === null || _this_filter === void 0) && _this_filter.acceptNode && (nodeResult = this.filter.acceptNode(nextNode)), nodeResult === NodeFilter.FILTER_ACCEPT)
  60860. return this.currentNode = nextNode, nextNode;
  60861. let newNode = this.nextNode();
  60862. return newNode && (this.currentNode = newNode), newNode;
  60863. }
  60864. return nextNode && (this.currentNode = nextNode), nextNode;
  60865. } else if (this._walkerStack.length > 1) {
  60866. this._walkerStack.shift();
  60867. let newNode = this.nextNode();
  60868. return newNode && (this.currentNode = newNode), newNode;
  60869. } else return null;
  60870. }
  60871. previousNode() {
  60872. let currentWalker = this._walkerStack[0];
  60873. if (currentWalker.currentNode === currentWalker.root) {
  60874. if (this._currentSetFor.has(currentWalker))
  60875. if (this._currentSetFor.delete(currentWalker), this._walkerStack.length > 1) {
  60876. this._walkerStack.shift();
  60877. let newNode = this.previousNode();
  60878. return newNode && (this.currentNode = newNode), newNode;
  60879. } else return null;
  60880. return null;
  60881. }
  60882. let previousNode = currentWalker.previousNode();
  60883. if (previousNode) {
  60884. if (previousNode.shadowRoot) {
  60885. var _this_filter;
  60886. let nodeResult;
  60887. if (typeof this.filter == "function" ? nodeResult = this.filter(previousNode) : !((_this_filter = this.filter) === null || _this_filter === void 0) && _this_filter.acceptNode && (nodeResult = this.filter.acceptNode(previousNode)), nodeResult === NodeFilter.FILTER_ACCEPT)
  60888. return previousNode && (this.currentNode = previousNode), previousNode;
  60889. let newNode = this.lastChild();
  60890. return newNode && (this.currentNode = newNode), newNode;
  60891. }
  60892. return previousNode && (this.currentNode = previousNode), previousNode;
  60893. } else if (this._walkerStack.length > 1) {
  60894. this._walkerStack.shift();
  60895. let newNode = this.previousNode();
  60896. return newNode && (this.currentNode = newNode), newNode;
  60897. } else return null;
  60898. }
  60899. /**
  60900. * @deprecated
  60901. */
  60902. nextSibling() {
  60903. return null;
  60904. }
  60905. /**
  60906. * @deprecated
  60907. */
  60908. previousSibling() {
  60909. return null;
  60910. }
  60911. /**
  60912. * @deprecated
  60913. */
  60914. parentNode() {
  60915. return null;
  60916. }
  60917. constructor(doc, root2, whatToShow, filter) {
  60918. this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (node2) => {
  60919. if (node2.nodeType === Node.ELEMENT_NODE) {
  60920. let shadowRoot2 = node2.shadowRoot;
  60921. if (shadowRoot2) {
  60922. let walker = this._doc.createTreeWalker(shadowRoot2, this.whatToShow, {
  60923. acceptNode: this._acceptNode
  60924. });
  60925. return this._walkerStack.unshift(walker), NodeFilter.FILTER_ACCEPT;
  60926. } else {
  60927. var _this_filter;
  60928. if (typeof this.filter == "function") return this.filter(node2);
  60929. if (!((_this_filter = this.filter) === null || _this_filter === void 0) && _this_filter.acceptNode) return this.filter.acceptNode(node2);
  60930. if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
  60931. }
  60932. }
  60933. return NodeFilter.FILTER_SKIP;
  60934. }, this._doc = doc, this.root = root2, this.filter = filter ?? null, this.whatToShow = whatToShow ?? NodeFilter.SHOW_ALL, this._currentNode = root2, this._walkerStack.unshift(doc.createTreeWalker(root2, whatToShow, this._acceptNode));
  60935. let shadowRoot = root2.shadowRoot;
  60936. if (shadowRoot) {
  60937. let walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
  60938. acceptNode: this._acceptNode
  60939. });
  60940. this._walkerStack.unshift(walker);
  60941. }
  60942. }
  60943. };
  60944. function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root2, whatToShow, filter) {
  60945. return $f4e2df6bd15f8569$export$98658e8c59125e6a() ? new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root2, whatToShow, filter) : doc.createTreeWalker(root2, whatToShow, filter);
  60946. }
  60947. // ../../node_modules/clsx/dist/clsx.mjs
  60948. function r(e) {
  60949. var t, f4, n = "";
  60950. if (typeof e == "string" || typeof e == "number") n += e;
  60951. else if (typeof e == "object") if (Array.isArray(e)) {
  60952. var o = e.length;
  60953. for (t = 0; t < o; t++) e[t] && (f4 = r(e[t])) && (n && (n += " "), n += f4);
  60954. } else for (f4 in e) e[f4] && (n && (n += " "), n += f4);
  60955. return n;
  60956. }
  60957. function clsx() {
  60958. for (var e, t, f4 = 0, n = "", o = arguments.length; f4 < o; f4++) (e = arguments[f4]) && (t = r(e)) && (n && (n += " "), n += t);
  60959. return n;
  60960. }
  60961. var clsx_default = clsx;
  60962. // ../../node_modules/@react-aria/utils/dist/mergeProps.mjs
  60963. function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
  60964. let result = {
  60965. ...args[0]
  60966. };
  60967. for (let i = 1; i < args.length; i++) {
  60968. let props = args[i];
  60969. for (let key in props) {
  60970. let a3 = result[key], b = props[key];
  60971. typeof a3 == "function" && typeof b == "function" && // This is a lot faster than a regex.
  60972. key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */
  60973. 65 && key.charCodeAt(2) <= /* 'Z' */
  60974. 90 ? result[key] = $ff5963eb1fccf552$export$e08e3b67e392101e(a3, b) : (key === "className" || key === "UNSAFE_className") && typeof a3 == "string" && typeof b == "string" ? result[key] = clsx_default(a3, b) : key === "id" && a3 && b ? result.id = $bdb11010cef70236$export$cd8c9cb68f842629(a3, b) : result[key] = b !== void 0 ? b : a3;
  60975. }
  60976. }
  60977. return result;
  60978. }
  60979. // ../../node_modules/@react-aria/utils/dist/mergeRefs.mjs
  60980. function $5dc95899b306f630$export$c9058316764c140e(...refs) {
  60981. return refs.length === 1 && refs[0] ? refs[0] : (value) => {
  60982. let hasCleanup = !1, cleanups = refs.map((ref) => {
  60983. let cleanup = $5dc95899b306f630$var$setRef(ref, value);
  60984. return hasCleanup || (hasCleanup = typeof cleanup == "function"), cleanup;
  60985. });
  60986. if (hasCleanup) return () => {
  60987. cleanups.forEach((cleanup, i) => {
  60988. typeof cleanup == "function" ? cleanup() : $5dc95899b306f630$var$setRef(refs[i], null);
  60989. });
  60990. };
  60991. };
  60992. }
  60993. function $5dc95899b306f630$var$setRef(ref, value) {
  60994. if (typeof ref == "function") return ref(value);
  60995. ref != null && (ref.current = value);
  60996. }
  60997. // ../../node_modules/@react-aria/utils/dist/filterDOMProps.mjs
  60998. var $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([
  60999. "id"
  61000. ]), $65484d02dcb7eb3e$var$labelablePropNames = /* @__PURE__ */ new Set([
  61001. "aria-label",
  61002. "aria-labelledby",
  61003. "aria-describedby",
  61004. "aria-details"
  61005. ]), $65484d02dcb7eb3e$var$linkPropNames = /* @__PURE__ */ new Set([
  61006. "href",
  61007. "hrefLang",
  61008. "target",
  61009. "rel",
  61010. "download",
  61011. "ping",
  61012. "referrerPolicy"
  61013. ]), $65484d02dcb7eb3e$var$globalAttrs = /* @__PURE__ */ new Set([
  61014. "dir",
  61015. "lang",
  61016. "hidden",
  61017. "inert",
  61018. "translate"
  61019. ]), $65484d02dcb7eb3e$var$globalEvents = /* @__PURE__ */ new Set([
  61020. "onClick",
  61021. "onAuxClick",
  61022. "onContextMenu",
  61023. "onDoubleClick",
  61024. "onMouseDown",
  61025. "onMouseEnter",
  61026. "onMouseLeave",
  61027. "onMouseMove",
  61028. "onMouseOut",
  61029. "onMouseOver",
  61030. "onMouseUp",
  61031. "onTouchCancel",
  61032. "onTouchEnd",
  61033. "onTouchMove",
  61034. "onTouchStart",
  61035. "onPointerDown",
  61036. "onPointerMove",
  61037. "onPointerUp",
  61038. "onPointerCancel",
  61039. "onPointerEnter",
  61040. "onPointerLeave",
  61041. "onPointerOver",
  61042. "onPointerOut",
  61043. "onGotPointerCapture",
  61044. "onLostPointerCapture",
  61045. "onScroll",
  61046. "onWheel",
  61047. "onAnimationStart",
  61048. "onAnimationEnd",
  61049. "onAnimationIteration",
  61050. "onTransitionCancel",
  61051. "onTransitionEnd",
  61052. "onTransitionRun",
  61053. "onTransitionStart"
  61054. ]), $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
  61055. function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
  61056. let { labelable, isLink: isLink2, global: global2, events: events2 = global2, propNames } = opts, filteredProps = {};
  61057. for (let prop in props) Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink2 && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global2 && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events2 && ($65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7))) || propNames?.has(prop) || $65484d02dcb7eb3e$var$propRe.test(prop)) && (filteredProps[prop] = props[prop]);
  61058. return filteredProps;
  61059. }
  61060. // ../../node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs
  61061. function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
  61062. if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
  61063. preventScroll: !0
  61064. });
  61065. else {
  61066. let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);
  61067. element.focus(), $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);
  61068. }
  61069. }
  61070. var $7215afc6de606d6b$var$supportsPreventScrollCached = null;
  61071. function $7215afc6de606d6b$var$supportsPreventScroll() {
  61072. if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
  61073. $7215afc6de606d6b$var$supportsPreventScrollCached = !1;
  61074. try {
  61075. document.createElement("div").focus({
  61076. get preventScroll() {
  61077. return $7215afc6de606d6b$var$supportsPreventScrollCached = !0, !0;
  61078. }
  61079. });
  61080. } catch {
  61081. }
  61082. }
  61083. return $7215afc6de606d6b$var$supportsPreventScrollCached;
  61084. }
  61085. function $7215afc6de606d6b$var$getScrollableElements(element) {
  61086. let parent = element.parentNode, scrollableElements = [], rootScrollingElement = document.scrollingElement || document.documentElement;
  61087. for (; parent instanceof HTMLElement && parent !== rootScrollingElement; )
  61088. (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) && scrollableElements.push({
  61089. element: parent,
  61090. scrollTop: parent.scrollTop,
  61091. scrollLeft: parent.scrollLeft
  61092. }), parent = parent.parentNode;
  61093. return rootScrollingElement instanceof HTMLElement && scrollableElements.push({
  61094. element: rootScrollingElement,
  61095. scrollTop: rootScrollingElement.scrollTop,
  61096. scrollLeft: rootScrollingElement.scrollLeft
  61097. }), scrollableElements;
  61098. }
  61099. function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
  61100. for (let { element, scrollTop, scrollLeft } of scrollableElements)
  61101. element.scrollTop = scrollTop, element.scrollLeft = scrollLeft;
  61102. }
  61103. // ../../node_modules/@react-aria/utils/dist/platform.mjs
  61104. function $c87311424ea30a05$var$testUserAgent(re) {
  61105. var _window_navigator_userAgentData;
  61106. if (typeof window > "u" || window.navigator == null) return !1;
  61107. let brands = (_window_navigator_userAgentData = window.navigator.userAgentData) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands;
  61108. return Array.isArray(brands) && brands.some((brand) => re.test(brand.brand)) || re.test(window.navigator.userAgent);
  61109. }
  61110. function $c87311424ea30a05$var$testPlatform(re) {
  61111. var _window_navigator_userAgentData;
  61112. return typeof window < "u" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator.userAgentData) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : !1;
  61113. }
  61114. function $c87311424ea30a05$var$cached(fn4) {
  61115. let res = null;
  61116. return () => (res == null && (res = fn4()), res);
  61117. }
  61118. var $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
  61119. return $c87311424ea30a05$var$testPlatform(/^Mac/i);
  61120. }), $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
  61121. return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
  61122. }), $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
  61123. return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
  61124. $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
  61125. }), $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
  61126. return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
  61127. }), $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
  61128. return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
  61129. }), $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
  61130. return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
  61131. }), $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
  61132. return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
  61133. }), $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
  61134. return $c87311424ea30a05$var$testUserAgent(/Android/i);
  61135. }), $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
  61136. return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
  61137. });
  61138. // ../../node_modules/@react-aria/utils/dist/openLink.mjs
  61139. var import_react29 = __toESM(require_react(), 1), $ea8dcbcb9ea1b556$var$RouterContext = (0, import_react29.createContext)({
  61140. isNative: !0,
  61141. open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
  61142. useHref: (href) => href
  61143. });
  61144. function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {
  61145. return (0, import_react29.useContext)($ea8dcbcb9ea1b556$var$RouterContext);
  61146. }
  61147. function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {
  61148. let target = link.getAttribute("target");
  61149. return (!target || target === "_self") && link.origin === location.origin && !link.hasAttribute("download") && !modifiers.metaKey && // open in new tab (mac)
  61150. !modifiers.ctrlKey && // open in new tab (windows)
  61151. !modifiers.altKey && // download
  61152. !modifiers.shiftKey;
  61153. }
  61154. function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = !0) {
  61155. var _window_event_type, _window_event;
  61156. let { metaKey, ctrlKey, altKey, shiftKey } = modifiers;
  61157. $c87311424ea30a05$export$b7d78993b74f766d() && (!((_window_event = window.event) === null || _window_event === void 0 || (_window_event_type = _window_event.type) === null || _window_event_type === void 0) && _window_event_type.startsWith("key")) && target.target === "_blank" && ($c87311424ea30a05$export$9ac100e40613ea10() ? metaKey = !0 : ctrlKey = !0);
  61158. let event = $c87311424ea30a05$export$78551043582a6a98() && $c87311424ea30a05$export$9ac100e40613ea10() && !$c87311424ea30a05$export$7bef049ce92e4224() ? new KeyboardEvent("keydown", {
  61159. keyIdentifier: "Enter",
  61160. metaKey,
  61161. ctrlKey,
  61162. altKey,
  61163. shiftKey
  61164. }) : new MouseEvent("click", {
  61165. metaKey,
  61166. ctrlKey,
  61167. altKey,
  61168. shiftKey,
  61169. detail: 1,
  61170. bubbles: !0,
  61171. cancelable: !0
  61172. });
  61173. $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening, $7215afc6de606d6b$export$de79e2c695e052f3(target), target.dispatchEvent(event), $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = !1;
  61174. }
  61175. $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = !1;
  61176. function $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) {
  61177. if (target instanceof HTMLAnchorElement) open(target);
  61178. else if (target.hasAttribute("data-href")) {
  61179. let link = document.createElement("a");
  61180. link.href = target.getAttribute("data-href"), target.hasAttribute("data-target") && (link.target = target.getAttribute("data-target")), target.hasAttribute("data-rel") && (link.rel = target.getAttribute("data-rel")), target.hasAttribute("data-download") && (link.download = target.getAttribute("data-download")), target.hasAttribute("data-ping") && (link.ping = target.getAttribute("data-ping")), target.hasAttribute("data-referrer-policy") && (link.referrerPolicy = target.getAttribute("data-referrer-policy")), target.appendChild(link), open(link), target.removeChild(link);
  61181. }
  61182. }
  61183. function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
  61184. $ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link) => $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers));
  61185. }
  61186. function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
  61187. let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
  61188. var _props_href;
  61189. let href = router.useHref((_props_href = props?.href) !== null && _props_href !== void 0 ? _props_href : "");
  61190. return {
  61191. href: props?.href ? href : void 0,
  61192. target: props?.target,
  61193. rel: props?.rel,
  61194. download: props?.download,
  61195. ping: props?.ping,
  61196. referrerPolicy: props?.referrerPolicy
  61197. };
  61198. }
  61199. function $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, href, routerOptions) {
  61200. !router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
  61201. !e.isDefaultPrevented() && $ea8dcbcb9ea1b556$export$efa8c9099e530235(e.currentTarget, e) && href && (e.preventDefault(), router.open(e.currentTarget, e, href, routerOptions));
  61202. }
  61203. // ../../node_modules/@react-aria/utils/dist/runAfterTransition.mjs
  61204. var $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map(), $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
  61205. function $bbed8b41f857bcc0$var$setupGlobalEvents() {
  61206. if (typeof window > "u") return;
  61207. function isTransitionEvent(event) {
  61208. return "propertyName" in event;
  61209. }
  61210. let onTransitionStart = (e) => {
  61211. if (!isTransitionEvent(e) || !e.target) return;
  61212. let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
  61213. transitions || (transitions = /* @__PURE__ */ new Set(), $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions), e.target.addEventListener("transitioncancel", onTransitionEnd, {
  61214. once: !0
  61215. })), transitions.add(e.propertyName);
  61216. }, onTransitionEnd = (e) => {
  61217. if (!isTransitionEvent(e) || !e.target) return;
  61218. let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
  61219. if (properties && (properties.delete(e.propertyName), properties.size === 0 && (e.target.removeEventListener("transitioncancel", onTransitionEnd), $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target)), $bbed8b41f857bcc0$var$transitionsByElement.size === 0)) {
  61220. for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks) cb();
  61221. $bbed8b41f857bcc0$var$transitionCallbacks.clear();
  61222. }
  61223. };
  61224. document.body.addEventListener("transitionrun", onTransitionStart), document.body.addEventListener("transitionend", onTransitionEnd);
  61225. }
  61226. typeof document < "u" && (document.readyState !== "loading" ? $bbed8b41f857bcc0$var$setupGlobalEvents() : document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents));
  61227. function $bbed8b41f857bcc0$var$cleanupDetachedElements() {
  61228. for (let [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)
  61229. "isConnected" in eventTarget && !eventTarget.isConnected && $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);
  61230. }
  61231. function $bbed8b41f857bcc0$export$24490316f764c430(fn4) {
  61232. requestAnimationFrame(() => {
  61233. $bbed8b41f857bcc0$var$cleanupDetachedElements(), $bbed8b41f857bcc0$var$transitionsByElement.size === 0 ? fn4() : $bbed8b41f857bcc0$var$transitionCallbacks.add(fn4);
  61234. });
  61235. }
  61236. // ../../node_modules/@react-aria/utils/dist/useDrag1D.mjs
  61237. var import_react30 = __toESM(require_react(), 1);
  61238. // ../../node_modules/@react-aria/utils/dist/useGlobalListeners.mjs
  61239. var import_react31 = __toESM(require_react(), 1);
  61240. function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
  61241. let globalListeners = (0, import_react31.useRef)(/* @__PURE__ */ new Map()), addGlobalListener = (0, import_react31.useCallback)((eventTarget, type5, listener, options) => {
  61242. let fn4 = options?.once ? (...args) => {
  61243. globalListeners.current.delete(listener), listener(...args);
  61244. } : listener;
  61245. globalListeners.current.set(listener, {
  61246. type: type5,
  61247. eventTarget,
  61248. fn: fn4,
  61249. options
  61250. }), eventTarget.addEventListener(type5, fn4, options);
  61251. }, []), removeGlobalListener = (0, import_react31.useCallback)((eventTarget, type5, listener, options) => {
  61252. var _globalListeners_current_get;
  61253. let fn4 = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;
  61254. eventTarget.removeEventListener(type5, fn4, options), globalListeners.current.delete(listener);
  61255. }, []), removeAllGlobalListeners = (0, import_react31.useCallback)(() => {
  61256. globalListeners.current.forEach((value, key) => {
  61257. removeGlobalListener(value.eventTarget, value.type, key, value.options);
  61258. });
  61259. }, [
  61260. removeGlobalListener
  61261. ]);
  61262. return (0, import_react31.useEffect)(() => removeAllGlobalListeners, [
  61263. removeAllGlobalListeners
  61264. ]), {
  61265. addGlobalListener,
  61266. removeGlobalListener,
  61267. removeAllGlobalListeners
  61268. };
  61269. }
  61270. // ../../node_modules/@react-aria/utils/dist/useLabels.mjs
  61271. function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
  61272. let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
  61273. return id = $bdb11010cef70236$export$f680877a34711e37(id), labelledBy && label ? labelledBy = [
  61274. .../* @__PURE__ */ new Set([
  61275. id,
  61276. ...labelledBy.trim().split(/\s+/)
  61277. ])
  61278. ].join(" ") : labelledBy && (labelledBy = labelledBy.trim().split(/\s+/).join(" ")), !label && !labelledBy && defaultLabel && (label = defaultLabel), {
  61279. id,
  61280. "aria-label": label,
  61281. "aria-labelledby": labelledBy
  61282. };
  61283. }
  61284. // ../../node_modules/@react-aria/utils/dist/useObjectRef.mjs
  61285. var import_react32 = __toESM(require_react(), 1);
  61286. function $df56164dff5785e2$export$4338b53315abf666(ref) {
  61287. let objRef = (0, import_react32.useRef)(null), cleanupRef = (0, import_react32.useRef)(void 0), refEffect = (0, import_react32.useCallback)((instance) => {
  61288. if (typeof ref == "function") {
  61289. let refCallback = ref, refCleanup = refCallback(instance);
  61290. return () => {
  61291. typeof refCleanup == "function" ? refCleanup() : refCallback(null);
  61292. };
  61293. } else if (ref)
  61294. return ref.current = instance, () => {
  61295. ref.current = null;
  61296. };
  61297. }, [
  61298. ref
  61299. ]);
  61300. return (0, import_react32.useMemo)(() => ({
  61301. get current() {
  61302. return objRef.current;
  61303. },
  61304. set current(value) {
  61305. objRef.current = value, cleanupRef.current && (cleanupRef.current(), cleanupRef.current = void 0), value != null && (cleanupRef.current = refEffect(value));
  61306. }
  61307. }), [
  61308. refEffect
  61309. ]);
  61310. }
  61311. // ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs
  61312. var import_react33 = __toESM(require_react(), 1), $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = import_react33.default.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
  61313. function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn4) {
  61314. let ref = (0, import_react33.useRef)(null);
  61315. return $8ae05eaa5c114e9c$var$useEarlyEffect(() => {
  61316. ref.current = fn4;
  61317. }, [
  61318. fn4
  61319. ]), (0, import_react33.useCallback)((...args) => {
  61320. let f4 = ref.current;
  61321. return f4?.(...args);
  61322. }, []);
  61323. }
  61324. // ../../node_modules/@react-aria/utils/dist/useUpdateEffect.mjs
  61325. var import_react34 = __toESM(require_react(), 1);
  61326. // ../../node_modules/@react-aria/utils/dist/useUpdateLayoutEffect.mjs
  61327. var import_react35 = __toESM(require_react(), 1);
  61328. function $ca9b37712f007381$export$72ef708ab07251f1(effect4, dependencies) {
  61329. let isInitialMount = (0, import_react35.useRef)(!0), lastDeps = (0, import_react35.useRef)(null);
  61330. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (isInitialMount.current = !0, () => {
  61331. isInitialMount.current = !1;
  61332. }), []), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61333. isInitialMount.current ? isInitialMount.current = !1 : (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) && effect4(), lastDeps.current = dependencies;
  61334. }, dependencies);
  61335. }
  61336. // ../../node_modules/@react-aria/utils/dist/useResizeObserver.mjs
  61337. var import_react36 = __toESM(require_react(), 1);
  61338. function $9daab02d461809db$var$hasResizeObserver() {
  61339. return typeof window.ResizeObserver < "u";
  61340. }
  61341. function $9daab02d461809db$export$683480f191c0e3ea(options) {
  61342. let { ref, box, onResize } = options, onResizeEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onResize);
  61343. (0, import_react36.useEffect)(() => {
  61344. let element = ref?.current;
  61345. if (element)
  61346. if ($9daab02d461809db$var$hasResizeObserver()) {
  61347. let resizeObserverInstance = new window.ResizeObserver((entries) => {
  61348. entries.length && onResizeEvent();
  61349. });
  61350. return resizeObserverInstance.observe(element, {
  61351. box
  61352. }), () => {
  61353. element && resizeObserverInstance.unobserve(element);
  61354. };
  61355. } else
  61356. return window.addEventListener("resize", onResizeEvent, !1), () => {
  61357. window.removeEventListener("resize", onResizeEvent, !1);
  61358. };
  61359. }, [
  61360. ref,
  61361. box
  61362. ]);
  61363. }
  61364. // ../../node_modules/@react-aria/utils/dist/useSyncRef.mjs
  61365. function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) {
  61366. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61367. if (context && context.ref && ref)
  61368. return context.ref.current = ref.current, () => {
  61369. context.ref && (context.ref.current = null);
  61370. };
  61371. });
  61372. }
  61373. // ../../node_modules/@react-aria/utils/dist/isScrollable.mjs
  61374. function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node2, checkForOverflow) {
  61375. if (!node2) return !1;
  61376. let style = window.getComputedStyle(node2), isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
  61377. return isScrollable && checkForOverflow && (isScrollable = node2.scrollHeight !== node2.clientHeight || node2.scrollWidth !== node2.clientWidth), isScrollable;
  61378. }
  61379. // ../../node_modules/@react-aria/utils/dist/getScrollParent.mjs
  61380. function $62d8ded9296f3872$export$cfa2225e87938781(node2, checkForOverflow) {
  61381. let scrollableNode = node2;
  61382. for ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow) && (scrollableNode = scrollableNode.parentElement); scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow); ) scrollableNode = scrollableNode.parentElement;
  61383. return scrollableNode || document.scrollingElement || document.documentElement;
  61384. }
  61385. // ../../node_modules/@react-aria/utils/dist/getScrollParents.mjs
  61386. function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node2, checkForOverflow) {
  61387. let scrollParents = [];
  61388. for (; node2 && node2 !== document.documentElement; )
  61389. $cc38e7bd3fc7b213$export$2bb74740c4e19def(node2, checkForOverflow) && scrollParents.push(node2), node2 = node2.parentElement;
  61390. return scrollParents;
  61391. }
  61392. // ../../node_modules/@react-aria/utils/dist/keyboard.mjs
  61393. function $21f1aa98acb08317$export$16792effe837dba3(e) {
  61394. return $c87311424ea30a05$export$9ac100e40613ea10() ? e.metaKey : e.ctrlKey;
  61395. }
  61396. var $21f1aa98acb08317$var$nonTextInputTypes = /* @__PURE__ */ new Set([
  61397. "checkbox",
  61398. "radio",
  61399. "range",
  61400. "color",
  61401. "file",
  61402. "image",
  61403. "button",
  61404. "submit",
  61405. "reset"
  61406. ]);
  61407. function $21f1aa98acb08317$export$c57958e35f31ed73(target) {
  61408. return target instanceof HTMLInputElement && !$21f1aa98acb08317$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
  61409. }
  61410. // ../../node_modules/@react-aria/utils/dist/useViewportSize.mjs
  61411. var import_react37 = __toESM(require_react(), 1);
  61412. var $5df64b3807dc15ee$var$visualViewport = typeof document < "u" && window.visualViewport;
  61413. // ../../node_modules/@react-aria/utils/dist/useDescription.mjs
  61414. var import_react38 = __toESM(require_react(), 1), $ef06256079686ba0$var$descriptionId = 0, $ef06256079686ba0$var$descriptionNodes = /* @__PURE__ */ new Map();
  61415. function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
  61416. let [id, setId] = (0, import_react38.useState)();
  61417. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61418. if (!description) return;
  61419. let desc = $ef06256079686ba0$var$descriptionNodes.get(description);
  61420. if (desc)
  61421. setId(desc.element.id);
  61422. else {
  61423. let id2 = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;
  61424. setId(id2);
  61425. let node2 = document.createElement("div");
  61426. node2.id = id2, node2.style.display = "none", node2.textContent = description, document.body.appendChild(node2), desc = {
  61427. refCount: 0,
  61428. element: node2
  61429. }, $ef06256079686ba0$var$descriptionNodes.set(description, desc);
  61430. }
  61431. return desc.refCount++, () => {
  61432. desc && --desc.refCount === 0 && (desc.element.remove(), $ef06256079686ba0$var$descriptionNodes.delete(description));
  61433. };
  61434. }, [
  61435. description
  61436. ]), {
  61437. "aria-describedby": description ? id : void 0
  61438. };
  61439. }
  61440. // ../../node_modules/@react-aria/utils/dist/useEvent.mjs
  61441. var import_react39 = __toESM(require_react(), 1);
  61442. function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
  61443. let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler), isDisabled3 = handler == null;
  61444. (0, import_react39.useEffect)(() => {
  61445. if (isDisabled3 || !ref.current) return;
  61446. let element = ref.current;
  61447. return element.addEventListener(event, handleEvent, options), () => {
  61448. element.removeEventListener(event, handleEvent, options);
  61449. };
  61450. }, [
  61451. ref,
  61452. event,
  61453. options,
  61454. isDisabled3
  61455. ]);
  61456. }
  61457. // ../../node_modules/@react-aria/utils/dist/scrollIntoView.mjs
  61458. function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
  61459. let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left"), offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top"), width = element.offsetWidth, height = element.offsetHeight, x = scrollView.scrollLeft, y = scrollView.scrollTop, { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView), borderAdjustedX = x + parseInt(borderLeftWidth, 10), borderAdjustedY = y + parseInt(borderTopWidth, 10), maxX = borderAdjustedX + scrollView.clientWidth, maxY = borderAdjustedY + scrollView.clientHeight, scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0, scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0, scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0, scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0;
  61460. offsetX <= x + scrollPaddingLeftNumber ? x = offsetX - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber : offsetX + width > maxX - scrollPaddingRightNumber && (x += offsetX + width - maxX + scrollPaddingRightNumber), offsetY <= borderAdjustedY + scrollPaddingTopNumber ? y = offsetY - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber : offsetY + height > maxY - scrollPaddingBottomNumber && (y += offsetY + height - maxY + scrollPaddingBottomNumber), scrollView.scrollLeft = x, scrollView.scrollTop = y;
  61461. }
  61462. function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
  61463. let prop = axis === "left" ? "offsetLeft" : "offsetTop", sum = 0;
  61464. for (; child.offsetParent && (sum += child[prop], child.offsetParent !== ancestor); ) {
  61465. if (child.offsetParent.contains(ancestor)) {
  61466. sum -= ancestor[prop];
  61467. break;
  61468. }
  61469. child = child.offsetParent;
  61470. }
  61471. return sum;
  61472. }
  61473. function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
  61474. if (targetElement && document.contains(targetElement)) {
  61475. let root2 = document.scrollingElement || document.documentElement, isScrollPrevented = window.getComputedStyle(root2).overflow === "hidden";
  61476. if (isScrollPrevented) {
  61477. let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement);
  61478. isScrollPrevented || scrollParents.push(root2);
  61479. for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
  61480. } else {
  61481. var _targetElement_scrollIntoView;
  61482. let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
  61483. targetElement == null || (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 || _targetElement_scrollIntoView.call(targetElement, {
  61484. block: "nearest"
  61485. });
  61486. let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
  61487. if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
  61488. var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
  61489. opts == null || (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 || (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 || _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
  61490. block: "center",
  61491. inline: "center"
  61492. }), (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 || _targetElement_scrollIntoView1.call(targetElement, {
  61493. block: "nearest"
  61494. });
  61495. }
  61496. }
  61497. }
  61498. }
  61499. // ../../node_modules/@react-aria/utils/dist/isVirtualEvent.mjs
  61500. function $6a7db85432448f7f$export$60278871457622de(event) {
  61501. return event.pointerType === "" && event.isTrusted ? !0 : $c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType ? event.type === "click" && event.buttons === 1 : event.detail === 0 && !event.pointerType;
  61502. }
  61503. function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
  61504. return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
  61505. }
  61506. // ../../node_modules/@react-aria/utils/dist/useDeepMemo.mjs
  61507. var import_react40 = __toESM(require_react(), 1);
  61508. // ../../node_modules/@react-aria/utils/dist/useFormReset.mjs
  61509. var import_react41 = __toESM(require_react(), 1);
  61510. // ../../node_modules/@react-aria/utils/dist/useLoadMore.mjs
  61511. var import_react42 = __toESM(require_react(), 1);
  61512. // ../../node_modules/@react-aria/utils/dist/useLoadMoreSentinel.mjs
  61513. var import_react43 = __toESM(require_react(), 1);
  61514. // ../../node_modules/@react-aria/utils/dist/inertValue.mjs
  61515. var import_react44 = __toESM(require_react(), 1);
  61516. function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
  61517. let pieces = import_react44.version.split(".");
  61518. return parseInt(pieces[0], 10) >= 19 ? value : value ? "true" : void 0;
  61519. }
  61520. // ../../node_modules/@react-aria/utils/dist/constants.mjs
  61521. var $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus", $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
  61522. // ../../node_modules/@react-aria/utils/dist/animation.mjs
  61523. var import_react_dom = __toESM(require_react_dom(), 1), import_react45 = __toESM(require_react(), 1);
  61524. function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = !0) {
  61525. let [isEntering, setEntering] = (0, import_react45.useState)(!0), isAnimationReady = isEntering && isReady;
  61526. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61527. if (isAnimationReady && ref.current && "getAnimations" in ref.current)
  61528. for (let animation2 of ref.current.getAnimations()) animation2 instanceof CSSTransition && animation2.cancel();
  61529. }, [
  61530. ref,
  61531. isAnimationReady
  61532. ]), $d3f049242431219c$var$useAnimation(ref, isAnimationReady, (0, import_react45.useCallback)(() => setEntering(!1), [])), isAnimationReady;
  61533. }
  61534. function $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) {
  61535. let [exitState, setExitState] = (0, import_react45.useState)(isOpen ? "open" : "closed");
  61536. switch (exitState) {
  61537. case "open":
  61538. isOpen || setExitState("exiting");
  61539. break;
  61540. case "closed":
  61541. case "exiting":
  61542. isOpen && setExitState("open");
  61543. break;
  61544. }
  61545. let isExiting = exitState === "exiting";
  61546. return $d3f049242431219c$var$useAnimation(ref, isExiting, (0, import_react45.useCallback)(() => {
  61547. setExitState((state3) => state3 === "exiting" ? "closed" : state3);
  61548. }, [])), isExiting;
  61549. }
  61550. function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {
  61551. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61552. if (isActive && ref.current) {
  61553. if (!("getAnimations" in ref.current)) {
  61554. onEnd();
  61555. return;
  61556. }
  61557. let animations = ref.current.getAnimations();
  61558. if (animations.length === 0) {
  61559. onEnd();
  61560. return;
  61561. }
  61562. let canceled = !1;
  61563. return Promise.all(animations.map((a3) => a3.finished)).then(() => {
  61564. canceled || (0, import_react_dom.flushSync)(() => {
  61565. onEnd();
  61566. });
  61567. }).catch(() => {
  61568. }), () => {
  61569. canceled = !0;
  61570. };
  61571. }
  61572. }, [
  61573. ref,
  61574. isActive,
  61575. onEnd
  61576. ]);
  61577. }
  61578. // ../../node_modules/@react-aria/utils/dist/isElementVisible.mjs
  61579. var $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element < "u" && "checkVisibility" in Element.prototype;
  61580. function $7d2416ea0959daaa$var$isStyleVisible(element) {
  61581. let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
  61582. if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return !1;
  61583. let { display: display2, visibility } = element.style, isVisible2 = display2 !== "none" && visibility !== "hidden" && visibility !== "collapse";
  61584. if (isVisible2) {
  61585. let { getComputedStyle: getComputedStyle3 } = element.ownerDocument.defaultView, { display: computedDisplay, visibility: computedVisibility } = getComputedStyle3(element);
  61586. isVisible2 = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse";
  61587. }
  61588. return isVisible2;
  61589. }
  61590. function $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) {
  61591. return !element.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
  61592. !element.hasAttribute("data-react-aria-prevent-focus") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : !0);
  61593. }
  61594. function $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) {
  61595. return $7d2416ea0959daaa$var$supportsCheckVisibility ? element.checkVisibility({
  61596. visibilityProperty: !0
  61597. }) && !element.closest("[data-react-aria-prevent-focus]") : element.nodeName !== "#comment" && $7d2416ea0959daaa$var$isStyleVisible(element) && $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) && (!element.parentElement || $7d2416ea0959daaa$export$e989c0fffaa6b27a(element.parentElement, element));
  61598. }
  61599. // ../../node_modules/@react-aria/utils/dist/isFocusable.mjs
  61600. var $b4b717babfbb907b$var$focusableElements = [
  61601. "input:not([disabled]):not([type=hidden])",
  61602. "select:not([disabled])",
  61603. "textarea:not([disabled])",
  61604. "button:not([disabled])",
  61605. "a[href]",
  61606. "area[href]",
  61607. "summary",
  61608. "iframe",
  61609. "object",
  61610. "embed",
  61611. "audio[controls]",
  61612. "video[controls]",
  61613. '[contenteditable]:not([contenteditable^="false"])',
  61614. "permission"
  61615. ], $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
  61616. $b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
  61617. var $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
  61618. function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
  61619. return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element);
  61620. }
  61621. function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
  61622. return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element);
  61623. }
  61624. function $b4b717babfbb907b$var$isInert(element) {
  61625. let node2 = element;
  61626. for (; node2 != null; ) {
  61627. if (node2 instanceof node2.ownerDocument.defaultView.HTMLElement && node2.inert) return !0;
  61628. node2 = node2.parentElement;
  61629. }
  61630. return !1;
  61631. }
  61632. // ../../node_modules/@react-stately/utils/dist/useControlledState.mjs
  61633. var import_react46 = __toESM(require_react(), 1), $458b0a5536c1a7cf$var$_React_useInsertionEffect, $458b0a5536c1a7cf$var$useEarlyEffect = typeof document < "u" ? ($458b0a5536c1a7cf$var$_React_useInsertionEffect = import_react46.default.useInsertionEffect) !== null && $458b0a5536c1a7cf$var$_React_useInsertionEffect !== void 0 ? $458b0a5536c1a7cf$var$_React_useInsertionEffect : import_react46.default.useLayoutEffect : () => {
  61634. };
  61635. function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
  61636. let [stateValue, setStateValue] = (0, import_react46.useState)(value || defaultValue), valueRef = (0, import_react46.useRef)(stateValue), isControlledRef = (0, import_react46.useRef)(value !== void 0), isControlled = value !== void 0;
  61637. (0, import_react46.useEffect)(() => {
  61638. let wasControlled = isControlledRef.current;
  61639. isControlledRef.current = isControlled;
  61640. }, [
  61641. isControlled
  61642. ]);
  61643. let currentValue = isControlled ? value : stateValue;
  61644. $458b0a5536c1a7cf$var$useEarlyEffect(() => {
  61645. valueRef.current = currentValue;
  61646. });
  61647. let [, forceUpdate] = (0, import_react46.useReducer)(() => ({}), {}), setValue = (0, import_react46.useCallback)((value2, ...args) => {
  61648. let newValue = typeof value2 == "function" ? value2(valueRef.current) : value2;
  61649. Object.is(valueRef.current, newValue) || (valueRef.current = newValue, setStateValue(newValue), forceUpdate(), onChange?.(newValue, ...args));
  61650. }, [
  61651. onChange
  61652. ]);
  61653. return [
  61654. currentValue,
  61655. setValue
  61656. ];
  61657. }
  61658. // ../../node_modules/@react-stately/utils/dist/number.mjs
  61659. function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min2 = -1 / 0, max2 = 1 / 0) {
  61660. return Math.min(Math.max(value, min2), max2);
  61661. }
  61662. // ../../node_modules/@react-aria/interactions/dist/utils.mjs
  61663. var import_react47 = __toESM(require_react(), 1);
  61664. function $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent) {
  61665. let event = nativeEvent;
  61666. return event.nativeEvent = nativeEvent, event.isDefaultPrevented = () => event.defaultPrevented, event.isPropagationStopped = () => event.cancelBubble, event.persist = () => {
  61667. }, event;
  61668. }
  61669. function $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target) {
  61670. Object.defineProperty(event, "target", {
  61671. value: target
  61672. }), Object.defineProperty(event, "currentTarget", {
  61673. value: target
  61674. });
  61675. }
  61676. function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
  61677. let stateRef = (0, import_react47.useRef)({
  61678. isFocused: !1,
  61679. observer: null
  61680. });
  61681. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  61682. let state3 = stateRef.current;
  61683. return () => {
  61684. state3.observer && (state3.observer.disconnect(), state3.observer = null);
  61685. };
  61686. }, []);
  61687. let dispatchBlur = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61688. onBlur?.(e);
  61689. });
  61690. return (0, import_react47.useCallback)((e) => {
  61691. if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
  61692. stateRef.current.isFocused = !0;
  61693. let target = e.target, onBlurHandler = (e2) => {
  61694. if (stateRef.current.isFocused = !1, target.disabled) {
  61695. let event = $8a9cb279dc87e130$export$525bc4921d56d4a(e2);
  61696. dispatchBlur(event);
  61697. }
  61698. stateRef.current.observer && (stateRef.current.observer.disconnect(), stateRef.current.observer = null);
  61699. };
  61700. target.addEventListener("focusout", onBlurHandler, {
  61701. once: !0
  61702. }), stateRef.current.observer = new MutationObserver(() => {
  61703. if (stateRef.current.isFocused && target.disabled) {
  61704. var _stateRef_current_observer;
  61705. (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 || _stateRef_current_observer.disconnect();
  61706. let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
  61707. target.dispatchEvent(new FocusEvent("blur", {
  61708. relatedTarget: relatedTargetEl
  61709. })), target.dispatchEvent(new FocusEvent("focusout", {
  61710. bubbles: !0,
  61711. relatedTarget: relatedTargetEl
  61712. }));
  61713. }
  61714. }), stateRef.current.observer.observe(target, {
  61715. attributes: !0,
  61716. attributeFilter: [
  61717. "disabled"
  61718. ]
  61719. });
  61720. }
  61721. }, [
  61722. dispatchBlur
  61723. ]);
  61724. }
  61725. var $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !1;
  61726. function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
  61727. for (; target && !$b4b717babfbb907b$export$4c063cf1350e6fed(target); ) target = target.parentElement;
  61728. let window2 = $431fbd86ca7dc216$export$f21a1ffae260145a(target), activeElement = window2.document.activeElement;
  61729. if (!activeElement || activeElement === target) return;
  61730. $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !0;
  61731. let isRefocusing = !1, onBlur = (e) => {
  61732. (e.target === activeElement || isRefocusing) && e.stopImmediatePropagation();
  61733. }, onFocusOut = (e) => {
  61734. (e.target === activeElement || isRefocusing) && (e.stopImmediatePropagation(), !target && !isRefocusing && (isRefocusing = !0, $7215afc6de606d6b$export$de79e2c695e052f3(activeElement), cleanup()));
  61735. }, onFocus = (e) => {
  61736. (e.target === target || isRefocusing) && e.stopImmediatePropagation();
  61737. }, onFocusIn = (e) => {
  61738. (e.target === target || isRefocusing) && (e.stopImmediatePropagation(), isRefocusing || (isRefocusing = !0, $7215afc6de606d6b$export$de79e2c695e052f3(activeElement), cleanup()));
  61739. };
  61740. window2.addEventListener("blur", onBlur, !0), window2.addEventListener("focusout", onFocusOut, !0), window2.addEventListener("focusin", onFocusIn, !0), window2.addEventListener("focus", onFocus, !0);
  61741. let cleanup = () => {
  61742. cancelAnimationFrame(raf), window2.removeEventListener("blur", onBlur, !0), window2.removeEventListener("focusout", onFocusOut, !0), window2.removeEventListener("focusin", onFocusIn, !0), window2.removeEventListener("focus", onFocus, !0), $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !1, isRefocusing = !1;
  61743. }, raf = requestAnimationFrame(cleanup);
  61744. return cleanup;
  61745. }
  61746. // ../../node_modules/@react-aria/interactions/dist/textSelection.mjs
  61747. var $14c0b72509d70225$var$state = "default", $14c0b72509d70225$var$savedUserSelect = "", $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
  61748. function $14c0b72509d70225$export$16a4697467175487(target) {
  61749. if ($c87311424ea30a05$export$fedb369cb70207f1()) {
  61750. if ($14c0b72509d70225$var$state === "default") {
  61751. let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(target);
  61752. $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect, documentObject.documentElement.style.webkitUserSelect = "none";
  61753. }
  61754. $14c0b72509d70225$var$state = "disabled";
  61755. } else if (target instanceof HTMLElement || target instanceof SVGElement) {
  61756. let property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
  61757. $14c0b72509d70225$var$modifiedElementMap.set(target, target.style[property]), target.style[property] = "none";
  61758. }
  61759. }
  61760. function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
  61761. if ($c87311424ea30a05$export$fedb369cb70207f1()) {
  61762. if ($14c0b72509d70225$var$state !== "disabled") return;
  61763. $14c0b72509d70225$var$state = "restoring", setTimeout(() => {
  61764. $bbed8b41f857bcc0$export$24490316f764c430(() => {
  61765. if ($14c0b72509d70225$var$state === "restoring") {
  61766. let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(target);
  61767. documentObject.documentElement.style.webkitUserSelect === "none" && (documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || ""), $14c0b72509d70225$var$savedUserSelect = "", $14c0b72509d70225$var$state = "default";
  61768. }
  61769. });
  61770. }, 300);
  61771. } else if ((target instanceof HTMLElement || target instanceof SVGElement) && target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {
  61772. let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target), property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
  61773. target.style[property] === "none" && (target.style[property] = targetOldUserSelect), target.getAttribute("style") === "" && target.removeAttribute("style"), $14c0b72509d70225$var$modifiedElementMap.delete(target);
  61774. }
  61775. }
  61776. // ../../node_modules/@react-aria/interactions/dist/context.mjs
  61777. var import_react48 = __toESM(require_react(), 1), $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = import_react48.default.createContext({
  61778. register: () => {
  61779. }
  61780. });
  61781. $ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
  61782. // ../../node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js
  61783. function _class_apply_descriptor_get(receiver, descriptor) {
  61784. return descriptor.get ? descriptor.get.call(receiver) : descriptor.value;
  61785. }
  61786. // ../../node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js
  61787. function _class_extract_field_descriptor(receiver, privateMap, action2) {
  61788. if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action2 + " private field on non-instance");
  61789. return privateMap.get(receiver);
  61790. }
  61791. // ../../node_modules/@swc/helpers/esm/_class_private_field_get.js
  61792. function _class_private_field_get(receiver, privateMap) {
  61793. var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
  61794. return _class_apply_descriptor_get(receiver, descriptor);
  61795. }
  61796. // ../../node_modules/@swc/helpers/esm/_check_private_redeclaration.js
  61797. function _check_private_redeclaration(obj, privateCollection) {
  61798. if (privateCollection.has(obj))
  61799. throw new TypeError("Cannot initialize the same private elements twice on an object");
  61800. }
  61801. // ../../node_modules/@swc/helpers/esm/_class_private_field_init.js
  61802. function _class_private_field_init(obj, privateMap, value) {
  61803. _check_private_redeclaration(obj, privateMap), privateMap.set(obj, value);
  61804. }
  61805. // ../../node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js
  61806. function _class_apply_descriptor_set(receiver, descriptor, value) {
  61807. if (descriptor.set) descriptor.set.call(receiver, value);
  61808. else {
  61809. if (!descriptor.writable)
  61810. throw new TypeError("attempted to set read only private field");
  61811. descriptor.value = value;
  61812. }
  61813. }
  61814. // ../../node_modules/@swc/helpers/esm/_class_private_field_set.js
  61815. function _class_private_field_set(receiver, privateMap, value) {
  61816. var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
  61817. return _class_apply_descriptor_set(receiver, descriptor, value), value;
  61818. }
  61819. // ../../node_modules/@react-aria/interactions/dist/usePress.mjs
  61820. var import_react_dom2 = __toESM(require_react_dom(), 1), import_react49 = __toESM(require_react(), 1);
  61821. function $f6c31cce2adf654f$var$usePressResponderContext(props) {
  61822. let context = (0, import_react49.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
  61823. if (context) {
  61824. let { register, ...contextProps } = context;
  61825. props = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props), register();
  61826. }
  61827. return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, props.ref), props;
  61828. }
  61829. var $f6c31cce2adf654f$var$_shouldStopPropagation = /* @__PURE__ */ new WeakMap(), $f6c31cce2adf654f$var$PressEvent = class {
  61830. continuePropagation() {
  61831. _class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, !1);
  61832. }
  61833. get shouldStopPropagation() {
  61834. return _class_private_field_get(this, $f6c31cce2adf654f$var$_shouldStopPropagation);
  61835. }
  61836. constructor(type5, pointerType, originalEvent, state3) {
  61837. _class_private_field_init(this, $f6c31cce2adf654f$var$_shouldStopPropagation, {
  61838. writable: !0,
  61839. value: void 0
  61840. }), _class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, !0);
  61841. var _state_target;
  61842. let currentTarget = (_state_target = state3?.target) !== null && _state_target !== void 0 ? _state_target : originalEvent.currentTarget, rect = currentTarget?.getBoundingClientRect(), x, y = 0, clientX, clientY = null;
  61843. originalEvent.clientX != null && originalEvent.clientY != null && (clientX = originalEvent.clientX, clientY = originalEvent.clientY), rect && (clientX != null && clientY != null ? (x = clientX - rect.left, y = clientY - rect.top) : (x = rect.width / 2, y = rect.height / 2)), this.type = type5, this.pointerType = pointerType, this.target = originalEvent.currentTarget, this.shiftKey = originalEvent.shiftKey, this.metaKey = originalEvent.metaKey, this.ctrlKey = originalEvent.ctrlKey, this.altKey = originalEvent.altKey, this.x = x, this.y = y;
  61844. }
  61845. }, $f6c31cce2adf654f$var$LINK_CLICKED = Symbol("linkClicked"), $f6c31cce2adf654f$var$STYLE_ID = "react-aria-pressable-style", $f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE = "data-react-aria-pressable";
  61846. function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
  61847. let { onPress, onPressChange, onPressStart, onPressEnd, onPressUp, onClick, isDisabled: isDisabled3, isPressed: isPressedProp, preventFocusOnPress, shouldCancelOnPointerExit, allowTextSelectionOnPress, ref: domRef, ...domProps } = $f6c31cce2adf654f$var$usePressResponderContext(props), [isPressed, setPressed] = (0, import_react49.useState)(!1), ref = (0, import_react49.useRef)({
  61848. isPressed: !1,
  61849. ignoreEmulatedMouseEvents: !1,
  61850. didFirePressStart: !1,
  61851. isTriggeringEvent: !1,
  61852. activePointerId: null,
  61853. target: null,
  61854. isOverTarget: !1,
  61855. pointerType: null,
  61856. disposables: []
  61857. }), { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), triggerPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
  61858. let state3 = ref.current;
  61859. if (isDisabled3 || state3.didFirePressStart) return !1;
  61860. let shouldStopPropagation = !0;
  61861. if (state3.isTriggeringEvent = !0, onPressStart) {
  61862. let event = new $f6c31cce2adf654f$var$PressEvent("pressstart", pointerType, originalEvent);
  61863. onPressStart(event), shouldStopPropagation = event.shouldStopPropagation;
  61864. }
  61865. return onPressChange && onPressChange(!0), state3.isTriggeringEvent = !1, state3.didFirePressStart = !0, setPressed(!0), shouldStopPropagation;
  61866. }), triggerPressEnd = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType, wasPressed = !0) => {
  61867. let state3 = ref.current;
  61868. if (!state3.didFirePressStart) return !1;
  61869. state3.didFirePressStart = !1, state3.isTriggeringEvent = !0;
  61870. let shouldStopPropagation = !0;
  61871. if (onPressEnd) {
  61872. let event = new $f6c31cce2adf654f$var$PressEvent("pressend", pointerType, originalEvent);
  61873. onPressEnd(event), shouldStopPropagation = event.shouldStopPropagation;
  61874. }
  61875. if (onPressChange && onPressChange(!1), setPressed(!1), onPress && wasPressed && !isDisabled3) {
  61876. let event = new $f6c31cce2adf654f$var$PressEvent("press", pointerType, originalEvent);
  61877. onPress(event), shouldStopPropagation && (shouldStopPropagation = event.shouldStopPropagation);
  61878. }
  61879. return state3.isTriggeringEvent = !1, shouldStopPropagation;
  61880. }), triggerPressUp = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
  61881. let state3 = ref.current;
  61882. if (isDisabled3) return !1;
  61883. if (onPressUp) {
  61884. state3.isTriggeringEvent = !0;
  61885. let event = new $f6c31cce2adf654f$var$PressEvent("pressup", pointerType, originalEvent);
  61886. return onPressUp(event), state3.isTriggeringEvent = !1, event.shouldStopPropagation;
  61887. }
  61888. return !0;
  61889. }), cancel = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61890. let state3 = ref.current;
  61891. if (state3.isPressed && state3.target) {
  61892. state3.didFirePressStart && state3.pointerType != null && triggerPressEnd($f6c31cce2adf654f$var$createEvent(state3.target, e), state3.pointerType, !1), state3.isPressed = !1, state3.isOverTarget = !1, state3.activePointerId = null, state3.pointerType = null, removeAllGlobalListeners(), allowTextSelectionOnPress || $14c0b72509d70225$export$b0d6fa1ab32e3295(state3.target);
  61893. for (let dispose of state3.disposables) dispose();
  61894. state3.disposables = [];
  61895. }
  61896. }), cancelOnPointerExit = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61897. shouldCancelOnPointerExit && cancel(e);
  61898. }), triggerClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  61899. isDisabled3 || onClick?.(e);
  61900. }), triggerSyntheticClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e, target) => {
  61901. if (!isDisabled3 && onClick) {
  61902. let event = new MouseEvent("click", e);
  61903. $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target), onClick($8a9cb279dc87e130$export$525bc4921d56d4a(event));
  61904. }
  61905. }), pressProps = (0, import_react49.useMemo)(() => {
  61906. let state3 = ref.current, pressProps2 = {
  61907. onKeyDown(e) {
  61908. if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) {
  61909. var _state_metaKeyEvents;
  61910. $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent), e.key) && e.preventDefault();
  61911. let shouldStopPropagation = !0;
  61912. if (!state3.isPressed && !e.repeat) {
  61913. state3.target = e.currentTarget, state3.isPressed = !0, state3.pointerType = "keyboard", shouldStopPropagation = triggerPressStart(e, "keyboard");
  61914. let originalTarget = e.currentTarget, pressUp = (e2) => {
  61915. $f6c31cce2adf654f$var$isValidKeyboardEvent(e2, originalTarget) && !e2.repeat && $d4ee10de306f2510$export$4282f70798064fe0(originalTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e2)) && state3.target && triggerPressUp($f6c31cce2adf654f$var$createEvent(state3.target, e2), "keyboard");
  61916. };
  61917. addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", $ff5963eb1fccf552$export$e08e3b67e392101e(pressUp, onKeyUp), !0);
  61918. }
  61919. shouldStopPropagation && e.stopPropagation(), e.metaKey && $c87311424ea30a05$export$9ac100e40613ea10() && ((_state_metaKeyEvents = state3.metaKeyEvents) === null || _state_metaKeyEvents === void 0 || _state_metaKeyEvents.set(e.key, e.nativeEvent));
  61920. } else e.key === "Meta" && (state3.metaKeyEvents = /* @__PURE__ */ new Map());
  61921. },
  61922. onClick(e) {
  61923. if (!(e && !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) && e && e.button === 0 && !state3.isTriggeringEvent && !$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) {
  61924. let shouldStopPropagation = !0;
  61925. if (isDisabled3 && e.preventDefault(), !state3.ignoreEmulatedMouseEvents && !state3.isPressed && (state3.pointerType === "virtual" || $6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
  61926. let stopPressStart = triggerPressStart(e, "virtual"), stopPressUp = triggerPressUp(e, "virtual"), stopPressEnd = triggerPressEnd(e, "virtual");
  61927. triggerClick(e), shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;
  61928. } else if (state3.isPressed && state3.pointerType !== "keyboard") {
  61929. let pointerType = state3.pointerType || e.nativeEvent.pointerType || "virtual", stopPressUp = triggerPressUp($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType), stopPressEnd = triggerPressEnd($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType, !0);
  61930. shouldStopPropagation = stopPressUp && stopPressEnd, state3.isOverTarget = !1, triggerClick(e), cancel(e);
  61931. }
  61932. state3.ignoreEmulatedMouseEvents = !1, shouldStopPropagation && e.stopPropagation();
  61933. }
  61934. }
  61935. }, onKeyUp = (e) => {
  61936. var _state_metaKeyEvents;
  61937. if (state3.isPressed && state3.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state3.target)) {
  61938. var _state_metaKeyEvents1;
  61939. $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e), e.key) && e.preventDefault();
  61940. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e), wasPressed = $d4ee10de306f2510$export$4282f70798064fe0(state3.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e));
  61941. triggerPressEnd($f6c31cce2adf654f$var$createEvent(state3.target, e), "keyboard", wasPressed), wasPressed && triggerSyntheticClick(e, state3.target), removeAllGlobalListeners(), e.key !== "Enter" && $f6c31cce2adf654f$var$isHTMLAnchorLink(state3.target) && $d4ee10de306f2510$export$4282f70798064fe0(state3.target, target) && !e[$f6c31cce2adf654f$var$LINK_CLICKED] && (e[$f6c31cce2adf654f$var$LINK_CLICKED] = !0, $ea8dcbcb9ea1b556$export$95185d699e05d4d7(state3.target, e, !1)), state3.isPressed = !1, (_state_metaKeyEvents1 = state3.metaKeyEvents) === null || _state_metaKeyEvents1 === void 0 || _state_metaKeyEvents1.delete(e.key);
  61942. } else if (e.key === "Meta" && (!((_state_metaKeyEvents = state3.metaKeyEvents) === null || _state_metaKeyEvents === void 0) && _state_metaKeyEvents.size)) {
  61943. var _state_target;
  61944. let events2 = state3.metaKeyEvents;
  61945. state3.metaKeyEvents = void 0;
  61946. for (let event of events2.values()) (_state_target = state3.target) === null || _state_target === void 0 || _state_target.dispatchEvent(new KeyboardEvent("keyup", event));
  61947. }
  61948. };
  61949. if (typeof PointerEvent < "u") {
  61950. pressProps2.onPointerDown = (e) => {
  61951. if (e.button !== 0 || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
  61952. if ($6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) {
  61953. state3.pointerType = "virtual";
  61954. return;
  61955. }
  61956. state3.pointerType = e.pointerType;
  61957. let shouldStopPropagation = !0;
  61958. if (!state3.isPressed) {
  61959. state3.isPressed = !0, state3.isOverTarget = !0, state3.activePointerId = e.pointerId, state3.target = e.currentTarget, allowTextSelectionOnPress || $14c0b72509d70225$export$16a4697467175487(state3.target), shouldStopPropagation = triggerPressStart(e, state3.pointerType);
  61960. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent);
  61961. "releasePointerCapture" in target && target.releasePointerCapture(e.pointerId), addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, !1), addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointercancel", onPointerCancel, !1);
  61962. }
  61963. shouldStopPropagation && e.stopPropagation();
  61964. }, pressProps2.onMouseDown = (e) => {
  61965. if ($d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) && e.button === 0) {
  61966. if (preventFocusOnPress) {
  61967. let dispose = $8a9cb279dc87e130$export$cabe61c495ee3649(e.target);
  61968. dispose && state3.disposables.push(dispose);
  61969. }
  61970. e.stopPropagation();
  61971. }
  61972. }, pressProps2.onPointerUp = (e) => {
  61973. !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) || state3.pointerType === "virtual" || e.button === 0 && !state3.isPressed && triggerPressUp(e, state3.pointerType || e.pointerType);
  61974. }, pressProps2.onPointerEnter = (e) => {
  61975. e.pointerId === state3.activePointerId && state3.target && !state3.isOverTarget && state3.pointerType != null && (state3.isOverTarget = !0, triggerPressStart($f6c31cce2adf654f$var$createEvent(state3.target, e), state3.pointerType));
  61976. }, pressProps2.onPointerLeave = (e) => {
  61977. e.pointerId === state3.activePointerId && state3.target && state3.isOverTarget && state3.pointerType != null && (state3.isOverTarget = !1, triggerPressEnd($f6c31cce2adf654f$var$createEvent(state3.target, e), state3.pointerType, !1), cancelOnPointerExit(e));
  61978. };
  61979. let onPointerUp = (e) => {
  61980. if (e.pointerId === state3.activePointerId && state3.isPressed && e.button === 0 && state3.target) {
  61981. if ($d4ee10de306f2510$export$4282f70798064fe0(state3.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) && state3.pointerType != null) {
  61982. let clicked = !1, timeout = setTimeout(() => {
  61983. state3.isPressed && state3.target instanceof HTMLElement && (clicked ? cancel(e) : ($7215afc6de606d6b$export$de79e2c695e052f3(state3.target), state3.target.click()));
  61984. }, 80);
  61985. addGlobalListener(e.currentTarget, "click", () => clicked = !0, !0), state3.disposables.push(() => clearTimeout(timeout));
  61986. } else cancel(e);
  61987. state3.isOverTarget = !1;
  61988. }
  61989. }, onPointerCancel = (e) => {
  61990. cancel(e);
  61991. };
  61992. pressProps2.onDragStart = (e) => {
  61993. $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) && cancel(e);
  61994. };
  61995. }
  61996. return pressProps2;
  61997. }, [
  61998. addGlobalListener,
  61999. isDisabled3,
  62000. preventFocusOnPress,
  62001. removeAllGlobalListeners,
  62002. allowTextSelectionOnPress,
  62003. cancel,
  62004. cancelOnPointerExit,
  62005. triggerPressEnd,
  62006. triggerPressStart,
  62007. triggerPressUp,
  62008. triggerClick,
  62009. triggerSyntheticClick
  62010. ]);
  62011. return (0, import_react49.useEffect)(() => {
  62012. if (!domRef) return;
  62013. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(domRef.current);
  62014. if (!ownerDocument || !ownerDocument.head || ownerDocument.getElementById($f6c31cce2adf654f$var$STYLE_ID)) return;
  62015. let style = ownerDocument.createElement("style");
  62016. style.id = $f6c31cce2adf654f$var$STYLE_ID, style.textContent = `
  62017. @layer {
  62018. [${$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE}] {
  62019. touch-action: pan-x pan-y pinch-zoom;
  62020. }
  62021. }
  62022. `.trim(), ownerDocument.head.prepend(style);
  62023. }, [
  62024. domRef
  62025. ]), (0, import_react49.useEffect)(() => {
  62026. let state3 = ref.current;
  62027. return () => {
  62028. var _state_target;
  62029. allowTextSelectionOnPress || $14c0b72509d70225$export$b0d6fa1ab32e3295((_state_target = state3.target) !== null && _state_target !== void 0 ? _state_target : void 0);
  62030. for (let dispose of state3.disposables) dispose();
  62031. state3.disposables = [];
  62032. };
  62033. }, [
  62034. allowTextSelectionOnPress
  62035. ]), {
  62036. isPressed: isPressedProp || isPressed,
  62037. pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps, {
  62038. [$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE]: !0
  62039. })
  62040. };
  62041. }
  62042. function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
  62043. return target.tagName === "A" && target.hasAttribute("href");
  62044. }
  62045. function $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) {
  62046. let { key, code } = event, element = currentTarget, role = element.getAttribute("role");
  62047. return (key === "Enter" || key === " " || key === "Spacebar" || code === "Space") && !(element instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(element).HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key
  62048. !((role === "link" || !role && $f6c31cce2adf654f$var$isHTMLAnchorLink(element)) && key !== "Enter");
  62049. }
  62050. function $f6c31cce2adf654f$var$createEvent(target, e) {
  62051. let clientX = e.clientX, clientY = e.clientY;
  62052. return {
  62053. currentTarget: target,
  62054. shiftKey: e.shiftKey,
  62055. ctrlKey: e.ctrlKey,
  62056. metaKey: e.metaKey,
  62057. altKey: e.altKey,
  62058. clientX,
  62059. clientY
  62060. };
  62061. }
  62062. function $f6c31cce2adf654f$var$shouldPreventDefaultUp(target) {
  62063. return target instanceof HTMLInputElement ? !1 : target instanceof HTMLButtonElement ? target.type !== "submit" && target.type !== "reset" : !$f6c31cce2adf654f$var$isHTMLAnchorLink(target);
  62064. }
  62065. function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target, key) {
  62066. return target instanceof HTMLInputElement ? !$f6c31cce2adf654f$var$isValidInputKey(target, key) : $f6c31cce2adf654f$var$shouldPreventDefaultUp(target);
  62067. }
  62068. var $f6c31cce2adf654f$var$nonTextInputTypes = /* @__PURE__ */ new Set([
  62069. "checkbox",
  62070. "radio",
  62071. "range",
  62072. "color",
  62073. "file",
  62074. "image",
  62075. "button",
  62076. "submit",
  62077. "reset"
  62078. ]);
  62079. function $f6c31cce2adf654f$var$isValidInputKey(target, key) {
  62080. return target.type === "checkbox" || target.type === "radio" ? key === " " : $f6c31cce2adf654f$var$nonTextInputTypes.has(target.type);
  62081. }
  62082. // ../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs
  62083. var import_react50 = __toESM(require_react(), 1);
  62084. var $507fabe10e71c6fb$var$currentModality = null, $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set(), $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map(), $507fabe10e71c6fb$var$hasEventBeforeFocus = !1, $507fabe10e71c6fb$var$hasBlurredWindowRecently = !1, $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
  62085. Tab: !0,
  62086. Escape: !0
  62087. };
  62088. function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
  62089. for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
  62090. }
  62091. function $507fabe10e71c6fb$var$isValidKey(e) {
  62092. return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
  62093. }
  62094. function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
  62095. $507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$isValidKey(e) && ($507fabe10e71c6fb$var$currentModality = "keyboard", $507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e));
  62096. }
  62097. function $507fabe10e71c6fb$var$handlePointerEvent(e) {
  62098. $507fabe10e71c6fb$var$currentModality = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && ($507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e));
  62099. }
  62100. function $507fabe10e71c6fb$var$handleClickEvent(e) {
  62101. $6a7db85432448f7f$export$60278871457622de(e) && ($507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$currentModality = "virtual");
  62102. }
  62103. function $507fabe10e71c6fb$var$handleFocusEvent(e) {
  62104. e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted || (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently && ($507fabe10e71c6fb$var$currentModality = "virtual", $507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e)), $507fabe10e71c6fb$var$hasEventBeforeFocus = !1, $507fabe10e71c6fb$var$hasBlurredWindowRecently = !1);
  62105. }
  62106. function $507fabe10e71c6fb$var$handleWindowBlur() {
  62107. $8a9cb279dc87e130$export$fda7da73ab5d4c48 || ($507fabe10e71c6fb$var$hasEventBeforeFocus = !1, $507fabe10e71c6fb$var$hasBlurredWindowRecently = !0);
  62108. }
  62109. function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
  62110. if (typeof window > "u" || typeof document > "u" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
  62111. let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element), documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element), focus = windowObject.HTMLElement.prototype.focus;
  62112. windowObject.HTMLElement.prototype.focus = function() {
  62113. $507fabe10e71c6fb$var$hasEventBeforeFocus = !0, focus.apply(this, arguments);
  62114. }, documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, !0), windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, !0), windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, !1), typeof PointerEvent < "u" && (documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, !0)), windowObject.addEventListener("beforeunload", () => {
  62115. $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);
  62116. }, {
  62117. once: !0
  62118. }), $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
  62119. focus
  62120. });
  62121. }
  62122. var $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
  62123. let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element), documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
  62124. loadListener && documentObject.removeEventListener("DOMContentLoaded", loadListener), $507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject) && (windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus, documentObject.removeEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.removeEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, !0), documentObject.removeEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, !0), windowObject.removeEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, !0), windowObject.removeEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, !1), typeof PointerEvent < "u" && (documentObject.removeEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.removeEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, !0), documentObject.removeEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, !0)), $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject));
  62125. };
  62126. function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
  62127. let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element), loadListener;
  62128. return documentObject.readyState !== "loading" ? $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) : (loadListener = () => {
  62129. $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
  62130. }, documentObject.addEventListener("DOMContentLoaded", loadListener)), () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);
  62131. }
  62132. typeof document < "u" && $507fabe10e71c6fb$export$2f1888112f558a7d();
  62133. function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
  62134. return $507fabe10e71c6fb$var$currentModality !== "pointer";
  62135. }
  62136. function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
  62137. return $507fabe10e71c6fb$var$currentModality;
  62138. }
  62139. function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
  62140. $507fabe10e71c6fb$var$setupGlobalFocusEvents();
  62141. let [modality, setModality] = (0, import_react50.useState)($507fabe10e71c6fb$var$currentModality);
  62142. return (0, import_react50.useEffect)(() => {
  62143. let handler = () => {
  62144. setModality($507fabe10e71c6fb$var$currentModality);
  62145. };
  62146. return $507fabe10e71c6fb$var$changeHandlers.add(handler), () => {
  62147. $507fabe10e71c6fb$var$changeHandlers.delete(handler);
  62148. };
  62149. }, []), $b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality;
  62150. }
  62151. var $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
  62152. "checkbox",
  62153. "radio",
  62154. "range",
  62155. "color",
  62156. "file",
  62157. "image",
  62158. "button",
  62159. "submit",
  62160. "reset"
  62161. ]);
  62162. function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
  62163. let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e?.target), IHTMLInputElement = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).HTMLInputElement : HTMLInputElement, IHTMLTextAreaElement = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).HTMLTextAreaElement : HTMLTextAreaElement, IHTMLElement = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).HTMLElement : HTMLElement, IKeyboardEvent = typeof window < "u" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e?.target).KeyboardEvent : KeyboardEvent;
  62164. return isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable, !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
  62165. }
  62166. function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn4, deps, opts) {
  62167. $507fabe10e71c6fb$var$setupGlobalFocusEvents(), (0, import_react50.useEffect)(() => {
  62168. let handler = (modality, e) => {
  62169. $507fabe10e71c6fb$var$isKeyboardFocusEvent(!!opts?.isTextInput, modality, e) && fn4($507fabe10e71c6fb$export$b9b3dfddab17db27());
  62170. };
  62171. return $507fabe10e71c6fb$var$changeHandlers.add(handler), () => {
  62172. $507fabe10e71c6fb$var$changeHandlers.delete(handler);
  62173. };
  62174. }, deps);
  62175. }
  62176. // ../../node_modules/@react-aria/interactions/dist/focusSafely.mjs
  62177. function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
  62178. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  62179. if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
  62180. let lastFocusedElement = activeElement;
  62181. $bbed8b41f857bcc0$export$24490316f764c430(() => {
  62182. $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected && $7215afc6de606d6b$export$de79e2c695e052f3(element);
  62183. });
  62184. } else $7215afc6de606d6b$export$de79e2c695e052f3(element);
  62185. }
  62186. // ../../node_modules/@react-aria/interactions/dist/useFocus.mjs
  62187. var import_react51 = __toESM(require_react(), 1);
  62188. function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
  62189. let { isDisabled: isDisabled3, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props, onBlur = (0, import_react51.useCallback)((e) => {
  62190. if (e.target === e.currentTarget)
  62191. return onBlurProp && onBlurProp(e), onFocusChange && onFocusChange(!1), !0;
  62192. }, [
  62193. onBlurProp,
  62194. onFocusChange
  62195. ]), onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur), onFocus = (0, import_react51.useCallback)((e) => {
  62196. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target), activeElement = ownerDocument ? $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) : $d4ee10de306f2510$export$cd4e5573fbe2b576();
  62197. e.target === e.currentTarget && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent) && (onFocusProp && onFocusProp(e), onFocusChange && onFocusChange(!0), onSyntheticFocus(e));
  62198. }, [
  62199. onFocusChange,
  62200. onFocusProp,
  62201. onSyntheticFocus
  62202. ]);
  62203. return {
  62204. focusProps: {
  62205. onFocus: !isDisabled3 && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0,
  62206. onBlur: !isDisabled3 && (onBlurProp || onFocusChange) ? onBlur : void 0
  62207. }
  62208. };
  62209. }
  62210. // ../../node_modules/@react-aria/interactions/dist/createEventHandler.mjs
  62211. function $93925083ecbb358c$export$48d1ea6320830260(handler) {
  62212. if (!handler) return;
  62213. let shouldStopPropagation = !0;
  62214. return (e) => {
  62215. let event = {
  62216. ...e,
  62217. preventDefault() {
  62218. e.preventDefault();
  62219. },
  62220. isDefaultPrevented() {
  62221. return e.isDefaultPrevented();
  62222. },
  62223. stopPropagation() {
  62224. shouldStopPropagation = !0;
  62225. },
  62226. continuePropagation() {
  62227. shouldStopPropagation = !1;
  62228. },
  62229. isPropagationStopped() {
  62230. return shouldStopPropagation;
  62231. }
  62232. };
  62233. handler(event), shouldStopPropagation && e.stopPropagation();
  62234. };
  62235. }
  62236. // ../../node_modules/@react-aria/interactions/dist/useKeyboard.mjs
  62237. function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
  62238. return {
  62239. keyboardProps: props.isDisabled ? {} : {
  62240. onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
  62241. onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
  62242. }
  62243. };
  62244. }
  62245. // ../../node_modules/@react-aria/interactions/dist/useFocusable.mjs
  62246. var import_react52 = __toESM(require_react(), 1), $f645667febf57a63$export$f9762fab77588ecb = import_react52.default.createContext(null);
  62247. function $f645667febf57a63$var$useFocusableContext(ref) {
  62248. let context = (0, import_react52.useContext)($f645667febf57a63$export$f9762fab77588ecb) || {};
  62249. $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref);
  62250. let { ref: _, ...otherProps } = context;
  62251. return otherProps;
  62252. }
  62253. var $f645667febf57a63$export$13f3202a3e5ddd5 = import_react52.default.forwardRef(function(props, ref) {
  62254. let { children, ...otherProps } = props, objRef = $df56164dff5785e2$export$4338b53315abf666(ref), context = {
  62255. ...otherProps,
  62256. ref: objRef
  62257. };
  62258. return import_react52.default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
  62259. value: context
  62260. }, children);
  62261. });
  62262. function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {
  62263. let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props), { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props), interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, keyboardProps), domProps = $f645667febf57a63$var$useFocusableContext(domRef), interactionProps = props.isDisabled ? {} : domProps, autoFocusRef = (0, import_react52.useRef)(props.autoFocus);
  62264. (0, import_react52.useEffect)(() => {
  62265. autoFocusRef.current && domRef.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(domRef.current), autoFocusRef.current = !1;
  62266. }, [
  62267. domRef
  62268. ]);
  62269. let tabIndex = props.excludeFromTabOrder ? -1 : 0;
  62270. return props.isDisabled && (tabIndex = void 0), {
  62271. focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928({
  62272. ...interactions,
  62273. tabIndex
  62274. }, interactionProps)
  62275. };
  62276. }
  62277. var $f645667febf57a63$export$35a3bebf7ef2d934 = (0, import_react52.forwardRef)(({ children, ...props }, ref) => {
  62278. ref = $df56164dff5785e2$export$4338b53315abf666(ref);
  62279. let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref), child = import_react52.default.Children.only(children);
  62280. (0, import_react52.useEffect)(() => {
  62281. }, [
  62282. ref,
  62283. props.isDisabled
  62284. ]);
  62285. let childRef = parseInt(import_react52.default.version, 10) < 19 ? child.ref : child.props.ref;
  62286. return import_react52.default.cloneElement(child, {
  62287. ...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, child.props),
  62288. // @ts-ignore
  62289. ref: $5dc95899b306f630$export$c9058316764c140e(childRef, ref)
  62290. });
  62291. });
  62292. // ../../node_modules/@react-aria/interactions/dist/Pressable.mjs
  62293. var import_react53 = __toESM(require_react(), 1), $3b117e43dc0ca95d$export$27c701ed9e449e99 = import_react53.default.forwardRef(({ children, ...props }, ref) => {
  62294. ref = $df56164dff5785e2$export$4338b53315abf666(ref);
  62295. let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
  62296. ...props,
  62297. ref
  62298. }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref), child = import_react53.default.Children.only(children);
  62299. (0, import_react53.useEffect)(() => {
  62300. }, [
  62301. ref,
  62302. props.isDisabled
  62303. ]);
  62304. let childRef = parseInt(import_react53.default.version, 10) < 19 ? child.ref : child.props.ref;
  62305. return import_react53.default.cloneElement(child, {
  62306. ...$3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, focusableProps, child.props),
  62307. // @ts-ignore
  62308. ref: $5dc95899b306f630$export$c9058316764c140e(childRef, ref)
  62309. });
  62310. });
  62311. // ../../node_modules/@react-aria/interactions/dist/PressResponder.mjs
  62312. var import_react54 = __toESM(require_react(), 1), $f1ab8c75478c6f73$export$3351871ee4b288b8 = import_react54.default.forwardRef(({ children, ...props }, ref) => {
  62313. let isRegistered = (0, import_react54.useRef)(!1), prevContext = (0, import_react54.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
  62314. ref = $df56164dff5785e2$export$4338b53315abf666(ref || prevContext?.ref);
  62315. let context = $3ef42575df84b30b$export$9d1611c77c2fe928(prevContext || {}, {
  62316. ...props,
  62317. ref,
  62318. register() {
  62319. isRegistered.current = !0, prevContext && prevContext.register();
  62320. }
  62321. });
  62322. return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(prevContext, ref), (0, import_react54.useEffect)(() => {
  62323. isRegistered.current || (isRegistered.current = !0);
  62324. }, []), import_react54.default.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, {
  62325. value: context
  62326. }, children);
  62327. });
  62328. function $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({ children }) {
  62329. let context = (0, import_react54.useMemo)(() => ({
  62330. register: () => {
  62331. }
  62332. }), []);
  62333. return import_react54.default.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, {
  62334. value: context
  62335. }, children);
  62336. }
  62337. // ../../node_modules/@react-aria/interactions/dist/useFocusWithin.mjs
  62338. var import_react55 = __toESM(require_react(), 1);
  62339. function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
  62340. let { isDisabled: isDisabled3, onBlurWithin, onFocusWithin, onFocusWithinChange } = props, state3 = (0, import_react55.useRef)({
  62341. isFocusWithin: !1
  62342. }), { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), onBlur = (0, import_react55.useCallback)((e) => {
  62343. e.currentTarget.contains(e.target) && state3.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (state3.current.isFocusWithin = !1, removeAllGlobalListeners(), onBlurWithin && onBlurWithin(e), onFocusWithinChange && onFocusWithinChange(!1));
  62344. }, [
  62345. onBlurWithin,
  62346. onFocusWithinChange,
  62347. state3,
  62348. removeAllGlobalListeners
  62349. ]), onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur), onFocus = (0, import_react55.useCallback)((e) => {
  62350. if (!e.currentTarget.contains(e.target)) return;
  62351. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  62352. if (!state3.current.isFocusWithin && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
  62353. onFocusWithin && onFocusWithin(e), onFocusWithinChange && onFocusWithinChange(!0), state3.current.isFocusWithin = !0, onSyntheticFocus(e);
  62354. let currentTarget = e.currentTarget;
  62355. addGlobalListener(ownerDocument, "focus", (e2) => {
  62356. if (state3.current.isFocusWithin && !$d4ee10de306f2510$export$4282f70798064fe0(currentTarget, e2.target)) {
  62357. let nativeEvent = new ownerDocument.defaultView.FocusEvent("blur", {
  62358. relatedTarget: e2.target
  62359. });
  62360. $8a9cb279dc87e130$export$c2b7abe5d61ec696(nativeEvent, currentTarget);
  62361. let event = $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent);
  62362. onBlur(event);
  62363. }
  62364. }, {
  62365. capture: !0
  62366. });
  62367. }
  62368. }, [
  62369. onFocusWithin,
  62370. onFocusWithinChange,
  62371. onSyntheticFocus,
  62372. addGlobalListener,
  62373. onBlur
  62374. ]);
  62375. return isDisabled3 ? {
  62376. focusWithinProps: {
  62377. // These cannot be null, that would conflict in mergeProps
  62378. onFocus: void 0,
  62379. onBlur: void 0
  62380. }
  62381. } : {
  62382. focusWithinProps: {
  62383. onFocus,
  62384. onBlur
  62385. }
  62386. };
  62387. }
  62388. // ../../node_modules/@react-aria/interactions/dist/useHover.mjs
  62389. var import_react56 = __toESM(require_react(), 1), $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !1, $6179b936705e76d3$var$hoverCount = 0;
  62390. function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
  62391. $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !0, setTimeout(() => {
  62392. $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !1;
  62393. }, 50);
  62394. }
  62395. function $6179b936705e76d3$var$handleGlobalPointerEvent(e) {
  62396. e.pointerType === "touch" && $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();
  62397. }
  62398. function $6179b936705e76d3$var$setupGlobalTouchEvents() {
  62399. if (!(typeof document > "u"))
  62400. return $6179b936705e76d3$var$hoverCount === 0 && typeof PointerEvent < "u" && document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent), $6179b936705e76d3$var$hoverCount++, () => {
  62401. $6179b936705e76d3$var$hoverCount--, !($6179b936705e76d3$var$hoverCount > 0) && typeof PointerEvent < "u" && document.removeEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
  62402. };
  62403. }
  62404. function $6179b936705e76d3$export$ae780daf29e6d456(props) {
  62405. let { onHoverStart, onHoverChange, onHoverEnd, isDisabled: isDisabled3 } = props, [isHovered, setHovered] = (0, import_react56.useState)(!1), state3 = (0, import_react56.useRef)({
  62406. isHovered: !1,
  62407. ignoreEmulatedMouseEvents: !1,
  62408. pointerType: "",
  62409. target: null
  62410. }).current;
  62411. (0, import_react56.useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents, []);
  62412. let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), { hoverProps, triggerHoverEnd } = (0, import_react56.useMemo)(() => {
  62413. let triggerHoverStart = (event, pointerType) => {
  62414. if (state3.pointerType = pointerType, isDisabled3 || pointerType === "touch" || state3.isHovered || !event.currentTarget.contains(event.target)) return;
  62415. state3.isHovered = !0;
  62416. let target = event.currentTarget;
  62417. state3.target = target, addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(event.target), "pointerover", (e) => {
  62418. state3.isHovered && state3.target && !$d4ee10de306f2510$export$4282f70798064fe0(state3.target, e.target) && triggerHoverEnd2(e, e.pointerType);
  62419. }, {
  62420. capture: !0
  62421. }), onHoverStart && onHoverStart({
  62422. type: "hoverstart",
  62423. target,
  62424. pointerType
  62425. }), onHoverChange && onHoverChange(!0), setHovered(!0);
  62426. }, triggerHoverEnd2 = (event, pointerType) => {
  62427. let target = state3.target;
  62428. state3.pointerType = "", state3.target = null, !(pointerType === "touch" || !state3.isHovered || !target) && (state3.isHovered = !1, removeAllGlobalListeners(), onHoverEnd && onHoverEnd({
  62429. type: "hoverend",
  62430. target,
  62431. pointerType
  62432. }), onHoverChange && onHoverChange(!1), setHovered(!1));
  62433. }, hoverProps2 = {};
  62434. return typeof PointerEvent < "u" && (hoverProps2.onPointerEnter = (e) => {
  62435. $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === "mouse" || triggerHoverStart(e, e.pointerType);
  62436. }, hoverProps2.onPointerLeave = (e) => {
  62437. !isDisabled3 && e.currentTarget.contains(e.target) && triggerHoverEnd2(e, e.pointerType);
  62438. }), {
  62439. hoverProps: hoverProps2,
  62440. triggerHoverEnd: triggerHoverEnd2
  62441. };
  62442. }, [
  62443. onHoverStart,
  62444. onHoverChange,
  62445. onHoverEnd,
  62446. isDisabled3,
  62447. state3,
  62448. addGlobalListener,
  62449. removeAllGlobalListeners
  62450. ]);
  62451. return (0, import_react56.useEffect)(() => {
  62452. isDisabled3 && triggerHoverEnd({
  62453. currentTarget: state3.target
  62454. }, state3.pointerType);
  62455. }, [
  62456. isDisabled3
  62457. ]), {
  62458. hoverProps,
  62459. isHovered
  62460. };
  62461. }
  62462. // ../../node_modules/@react-aria/interactions/dist/useInteractOutside.mjs
  62463. var import_react57 = __toESM(require_react(), 1);
  62464. function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
  62465. let { ref, onInteractOutside, isDisabled: isDisabled3, onInteractOutsideStart } = props, stateRef = (0, import_react57.useRef)({
  62466. isPointerDown: !1,
  62467. ignoreEmulatedMouseEvents: !1
  62468. }), onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  62469. onInteractOutside && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref) && (onInteractOutsideStart && onInteractOutsideStart(e), stateRef.current.isPointerDown = !0);
  62470. }), triggerInteractOutside = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  62471. onInteractOutside && onInteractOutside(e);
  62472. });
  62473. (0, import_react57.useEffect)(() => {
  62474. let state3 = stateRef.current;
  62475. if (isDisabled3) return;
  62476. let element = ref.current, documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
  62477. if (typeof PointerEvent < "u") {
  62478. let onClick = (e) => {
  62479. state3.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref) && triggerInteractOutside(e), state3.isPointerDown = !1;
  62480. };
  62481. return documentObject.addEventListener("pointerdown", onPointerDown, !0), documentObject.addEventListener("click", onClick, !0), () => {
  62482. documentObject.removeEventListener("pointerdown", onPointerDown, !0), documentObject.removeEventListener("click", onClick, !0);
  62483. };
  62484. }
  62485. }, [
  62486. ref,
  62487. isDisabled3,
  62488. onPointerDown,
  62489. triggerInteractOutside
  62490. ]);
  62491. }
  62492. function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {
  62493. if (event.button > 0) return !1;
  62494. if (event.target) {
  62495. let ownerDocument = event.target.ownerDocument;
  62496. if (!ownerDocument || !ownerDocument.documentElement.contains(event.target) || event.target.closest("[data-react-aria-top-layer]")) return !1;
  62497. }
  62498. return ref.current ? !event.composedPath().includes(ref.current) : !1;
  62499. }
  62500. // ../../node_modules/@react-aria/interactions/dist/useMove.mjs
  62501. var import_react58 = __toESM(require_react(), 1);
  62502. // ../../node_modules/@react-aria/interactions/dist/useScrollWheel.mjs
  62503. var import_react59 = __toESM(require_react(), 1);
  62504. // ../../node_modules/@react-aria/interactions/dist/useLongPress.mjs
  62505. var import_react60 = __toESM(require_react(), 1), $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
  62506. function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
  62507. let { isDisabled: isDisabled3, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props, timeRef = (0, import_react60.useRef)(void 0), { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
  62508. isDisabled: isDisabled3,
  62509. onPressStart(e) {
  62510. if (e.continuePropagation(), (e.pointerType === "mouse" || e.pointerType === "touch") && (onLongPressStart && onLongPressStart({
  62511. ...e,
  62512. type: "longpressstart"
  62513. }), timeRef.current = setTimeout(() => {
  62514. e.target.dispatchEvent(new PointerEvent("pointercancel", {
  62515. bubbles: !0
  62516. })), $431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target && $7215afc6de606d6b$export$de79e2c695e052f3(e.target), onLongPress && onLongPress({
  62517. ...e,
  62518. type: "longpress"
  62519. }), timeRef.current = void 0;
  62520. }, threshold), e.pointerType === "touch")) {
  62521. let onContextMenu = (e2) => {
  62522. e2.preventDefault();
  62523. };
  62524. addGlobalListener(e.target, "contextmenu", onContextMenu, {
  62525. once: !0
  62526. }), addGlobalListener(window, "pointerup", () => {
  62527. setTimeout(() => {
  62528. removeGlobalListener(e.target, "contextmenu", onContextMenu);
  62529. }, 30);
  62530. }, {
  62531. once: !0
  62532. });
  62533. }
  62534. },
  62535. onPressEnd(e) {
  62536. timeRef.current && clearTimeout(timeRef.current), onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch") && onLongPressEnd({
  62537. ...e,
  62538. type: "longpressend"
  62539. });
  62540. }
  62541. }), descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled3 ? accessibilityDescription : void 0);
  62542. return {
  62543. longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps)
  62544. };
  62545. }
  62546. // ../../node_modules/react-aria-components/dist/utils.mjs
  62547. var import_react61 = __toESM(require_react(), 1), $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default");
  62548. function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
  62549. for (let [Context, value] of values)
  62550. children = import_react61.default.createElement(Context.Provider, {
  62551. value
  62552. }, children);
  62553. return children;
  62554. }
  62555. function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
  62556. let { className, style, children, defaultClassName, defaultChildren, defaultStyle, values } = props;
  62557. return (0, import_react61.useMemo)(() => {
  62558. let computedClassName, computedStyle, computedChildren;
  62559. return typeof className == "function" ? computedClassName = className({
  62560. ...values,
  62561. defaultClassName
  62562. }) : computedClassName = className, typeof style == "function" ? computedStyle = style({
  62563. ...values,
  62564. defaultStyle: defaultStyle || {}
  62565. }) : computedStyle = style, typeof children == "function" ? computedChildren = children({
  62566. ...values,
  62567. defaultChildren
  62568. }) : children == null ? computedChildren = defaultChildren : computedChildren = children, {
  62569. className: computedClassName ?? defaultClassName,
  62570. style: computedStyle || defaultStyle ? {
  62571. ...defaultStyle,
  62572. ...computedStyle
  62573. } : void 0,
  62574. children: computedChildren ?? defaultChildren,
  62575. "data-rac": ""
  62576. };
  62577. }, [
  62578. className,
  62579. style,
  62580. children,
  62581. defaultClassName,
  62582. defaultChildren,
  62583. defaultStyle,
  62584. values
  62585. ]);
  62586. }
  62587. function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
  62588. let ctx = (0, import_react61.useContext)(context);
  62589. if (slot === null)
  62590. return null;
  62591. if (ctx && typeof ctx == "object" && "slots" in ctx && ctx.slots) {
  62592. let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9;
  62593. if (!ctx.slots[slotKey]) {
  62594. let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p3) => `"${p3}"`)), errorMessage = slot ? `Invalid slot "${slot}".` : "A slot prop is required.";
  62595. throw new Error(`${errorMessage} Valid slot names are ${availableSlots}.`);
  62596. }
  62597. return ctx.slots[slotKey];
  62598. }
  62599. return ctx;
  62600. }
  62601. function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
  62602. let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context, props.slot) || {}, { ref: contextRef, ...contextProps } = ctx, mergedRef = $df56164dff5785e2$export$4338b53315abf666((0, import_react61.useMemo)(() => $5dc95899b306f630$export$c9058316764c140e(ref, contextRef), [
  62603. ref,
  62604. contextRef
  62605. ])), mergedProps = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
  62606. return "style" in contextProps && contextProps.style && "style" in props && props.style && (typeof contextProps.style == "function" || typeof props.style == "function" ? mergedProps.style = (renderProps) => {
  62607. let contextStyle = typeof contextProps.style == "function" ? contextProps.style(renderProps) : contextProps.style, defaultStyle = {
  62608. ...renderProps.defaultStyle,
  62609. ...contextStyle
  62610. }, style = typeof props.style == "function" ? props.style({
  62611. ...renderProps,
  62612. defaultStyle
  62613. }) : props.style;
  62614. return {
  62615. ...defaultStyle,
  62616. ...style
  62617. };
  62618. } : mergedProps.style = {
  62619. ...contextProps.style,
  62620. ...props.style
  62621. }), [
  62622. mergedProps,
  62623. mergedRef
  62624. ];
  62625. }
  62626. function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(initialState2 = !0) {
  62627. let [hasSlot, setHasSlot] = (0, import_react61.useState)(initialState2), hasRun = (0, import_react61.useRef)(!1), ref = (0, import_react61.useCallback)((el) => {
  62628. hasRun.current = !0, setHasSlot(!!el);
  62629. }, []);
  62630. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  62631. hasRun.current || setHasSlot(!1);
  62632. }, []), [
  62633. ref,
  62634. hasSlot
  62635. ];
  62636. }
  62637. // ../../node_modules/react-aria-components/dist/OverlayArrow.mjs
  62638. var import_react62 = __toESM(require_react(), 1), $44f671af83e7d9e0$export$2de4954e8ae13b9f = (0, import_react62.createContext)({
  62639. placement: "bottom"
  62640. }), $44f671af83e7d9e0$export$746d02f47f4d381 = (0, import_react62.forwardRef)(function(props, ref) {
  62641. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $44f671af83e7d9e0$export$2de4954e8ae13b9f);
  62642. let placement = props.placement, style = {
  62643. position: "absolute",
  62644. transform: placement === "top" || placement === "bottom" ? "translateX(-50%)" : "translateY(-50%)"
  62645. };
  62646. placement != null && (style[placement] = "100%");
  62647. let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  62648. ...props,
  62649. defaultClassName: "react-aria-OverlayArrow",
  62650. values: {
  62651. placement
  62652. }
  62653. });
  62654. renderProps.style && Object.keys(renderProps.style).forEach((key) => renderProps.style[key] === void 0 && delete renderProps.style[key]);
  62655. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
  62656. return import_react62.default.createElement("div", {
  62657. ...DOMProps,
  62658. ...renderProps,
  62659. style: {
  62660. ...style,
  62661. ...renderProps.style
  62662. },
  62663. ref,
  62664. "data-placement": placement
  62665. });
  62666. });
  62667. // ../../node_modules/@react-aria/tooltip/dist/useTooltip.mjs
  62668. function $326e436e94273fe1$export$1c4b08e0eca38426(props, state3) {
  62669. let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  62670. labelable: !0
  62671. }), { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
  62672. onHoverStart: () => state3?.open(!0),
  62673. onHoverEnd: () => state3?.close()
  62674. });
  62675. return {
  62676. tooltipProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, hoverProps, {
  62677. role: "tooltip"
  62678. })
  62679. };
  62680. }
  62681. // ../../node_modules/@react-aria/tooltip/dist/useTooltipTrigger.mjs
  62682. var import_react63 = __toESM(require_react(), 1);
  62683. function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state3, ref) {
  62684. let { isDisabled: isDisabled3, trigger } = props, tooltipId = $bdb11010cef70236$export$f680877a34711e37(), isHovered = (0, import_react63.useRef)(!1), isFocused = (0, import_react63.useRef)(!1), handleShow = () => {
  62685. (isHovered.current || isFocused.current) && state3.open(isFocused.current);
  62686. }, handleHide = (immediate) => {
  62687. !isHovered.current && !isFocused.current && state3.close(immediate);
  62688. };
  62689. (0, import_react63.useEffect)(() => {
  62690. let onKeyDown = (e) => {
  62691. ref && ref.current && e.key === "Escape" && (e.stopPropagation(), state3.close(!0));
  62692. };
  62693. if (state3.isOpen)
  62694. return document.addEventListener("keydown", onKeyDown, !0), () => {
  62695. document.removeEventListener("keydown", onKeyDown, !0);
  62696. };
  62697. }, [
  62698. ref,
  62699. state3
  62700. ]);
  62701. let onHoverStart = () => {
  62702. trigger !== "focus" && ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer" ? isHovered.current = !0 : isHovered.current = !1, handleShow());
  62703. }, onHoverEnd = () => {
  62704. trigger !== "focus" && (isFocused.current = !1, isHovered.current = !1, handleHide());
  62705. }, onPressStart = () => {
  62706. isFocused.current = !1, isHovered.current = !1, handleHide(!0);
  62707. }, onFocus = () => {
  62708. $507fabe10e71c6fb$export$b9b3dfddab17db27() && (isFocused.current = !0, handleShow());
  62709. }, onBlur = () => {
  62710. isFocused.current = !1, isHovered.current = !1, handleHide(!0);
  62711. }, { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
  62712. isDisabled: isDisabled3,
  62713. onHoverStart,
  62714. onHoverEnd
  62715. }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
  62716. isDisabled: isDisabled3,
  62717. onFocus,
  62718. onBlur
  62719. }, ref);
  62720. return {
  62721. triggerProps: {
  62722. "aria-describedby": state3.isOpen ? tooltipId : void 0,
  62723. ...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, hoverProps, {
  62724. onPointerDown: onPressStart,
  62725. onKeyDown: onPressStart
  62726. }),
  62727. tabIndex: void 0
  62728. },
  62729. tooltipProps: {
  62730. id: tooltipId
  62731. }
  62732. };
  62733. }
  62734. // ../../node_modules/@react-aria/overlays/dist/calculatePosition.mjs
  62735. var $edcf132a9284368a$var$AXIS = {
  62736. top: "top",
  62737. bottom: "top",
  62738. left: "left",
  62739. right: "left"
  62740. }, $edcf132a9284368a$var$FLIPPED_DIRECTION = {
  62741. top: "bottom",
  62742. bottom: "top",
  62743. left: "right",
  62744. right: "left"
  62745. }, $edcf132a9284368a$var$CROSS_AXIS = {
  62746. top: "left",
  62747. left: "top"
  62748. }, $edcf132a9284368a$var$AXIS_SIZE = {
  62749. top: "height",
  62750. left: "width"
  62751. }, $edcf132a9284368a$var$TOTAL_SIZE = {
  62752. width: "totalWidth",
  62753. height: "totalHeight"
  62754. }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {}, $edcf132a9284368a$var$visualViewport = typeof document < "u" ? window.visualViewport : null;
  62755. function $edcf132a9284368a$var$getContainerDimensions(containerNode) {
  62756. let width = 0, height = 0, totalWidth = 0, totalHeight = 0, top2 = 0, left2 = 0, scroll = {};
  62757. var _visualViewport_scale;
  62758. let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport?.scale) !== null && _visualViewport_scale !== void 0 ? _visualViewport_scale : 1) > 1;
  62759. if (containerNode.tagName === "BODY") {
  62760. let documentElement = document.documentElement;
  62761. totalWidth = documentElement.clientWidth, totalHeight = documentElement.clientHeight;
  62762. var _visualViewport_width;
  62763. width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport?.width) !== null && _visualViewport_width !== void 0 ? _visualViewport_width : totalWidth;
  62764. var _visualViewport_height;
  62765. height = (_visualViewport_height = $edcf132a9284368a$var$visualViewport?.height) !== null && _visualViewport_height !== void 0 ? _visualViewport_height : totalHeight, scroll.top = documentElement.scrollTop || containerNode.scrollTop, scroll.left = documentElement.scrollLeft || containerNode.scrollLeft, $edcf132a9284368a$var$visualViewport && (top2 = $edcf132a9284368a$var$visualViewport.offsetTop, left2 = $edcf132a9284368a$var$visualViewport.offsetLeft);
  62766. } else
  62767. ({ width, height, top: top2, left: left2 } = $edcf132a9284368a$var$getOffset(containerNode, !1)), scroll.top = containerNode.scrollTop, scroll.left = containerNode.scrollLeft, totalWidth = width, totalHeight = height;
  62768. if ($c87311424ea30a05$export$78551043582a6a98() && (containerNode.tagName === "BODY" || containerNode.tagName === "HTML") && isPinchZoomedIn) {
  62769. scroll.top = 0, scroll.left = 0;
  62770. var _visualViewport_pageTop;
  62771. top2 = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport?.pageTop) !== null && _visualViewport_pageTop !== void 0 ? _visualViewport_pageTop : 0;
  62772. var _visualViewport_pageLeft;
  62773. left2 = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport?.pageLeft) !== null && _visualViewport_pageLeft !== void 0 ? _visualViewport_pageLeft : 0;
  62774. }
  62775. return {
  62776. width,
  62777. height,
  62778. totalWidth,
  62779. totalHeight,
  62780. scroll,
  62781. top: top2,
  62782. left: left2
  62783. };
  62784. }
  62785. function $edcf132a9284368a$var$getScroll(node2) {
  62786. return {
  62787. top: node2.scrollTop,
  62788. left: node2.scrollLeft,
  62789. width: node2.scrollWidth,
  62790. height: node2.scrollHeight
  62791. };
  62792. }
  62793. function $edcf132a9284368a$var$getDelta(axis, offset3, size, boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary) {
  62794. var _containerDimensions_scroll_axis;
  62795. let containerScroll = (_containerDimensions_scroll_axis = containerDimensions.scroll[axis]) !== null && _containerDimensions_scroll_axis !== void 0 ? _containerDimensions_scroll_axis : 0, boundarySize = boundaryDimensions[$edcf132a9284368a$var$AXIS_SIZE[axis]], boundaryStartEdge = boundaryDimensions.scroll[$edcf132a9284368a$var$AXIS[axis]] + padding, boundaryEndEdge = boundarySize + boundaryDimensions.scroll[$edcf132a9284368a$var$AXIS[axis]] - padding, startEdgeOffset = offset3 - containerScroll + containerOffsetWithBoundary[axis] - boundaryDimensions[$edcf132a9284368a$var$AXIS[axis]], endEdgeOffset = offset3 - containerScroll + size + containerOffsetWithBoundary[axis] - boundaryDimensions[$edcf132a9284368a$var$AXIS[axis]];
  62796. return startEdgeOffset < boundaryStartEdge ? boundaryStartEdge - startEdgeOffset : endEdgeOffset > boundaryEndEdge ? Math.max(boundaryEndEdge - endEdgeOffset, boundaryStartEdge - startEdgeOffset) : 0;
  62797. }
  62798. function $edcf132a9284368a$var$getMargins(node2) {
  62799. let style = window.getComputedStyle(node2);
  62800. return {
  62801. top: parseInt(style.marginTop, 10) || 0,
  62802. bottom: parseInt(style.marginBottom, 10) || 0,
  62803. left: parseInt(style.marginLeft, 10) || 0,
  62804. right: parseInt(style.marginRight, 10) || 0
  62805. };
  62806. }
  62807. function $edcf132a9284368a$var$parsePlacement(input2) {
  62808. if ($edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2]) return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2];
  62809. let [placement, crossPlacement] = input2.split(" "), axis = $edcf132a9284368a$var$AXIS[placement] || "right", crossAxis = $edcf132a9284368a$var$CROSS_AXIS[axis];
  62810. $edcf132a9284368a$var$AXIS[crossPlacement] || (crossPlacement = "center");
  62811. let size = $edcf132a9284368a$var$AXIS_SIZE[axis], crossSize = $edcf132a9284368a$var$AXIS_SIZE[crossAxis];
  62812. return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2] = {
  62813. placement,
  62814. crossPlacement,
  62815. axis,
  62816. crossAxis,
  62817. size,
  62818. crossSize
  62819. }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2];
  62820. }
  62821. function $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, offset3, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset) {
  62822. let { placement, crossPlacement, axis, crossAxis, size, crossSize } = placementInfo, position2 = {};
  62823. var _childOffset_crossAxis;
  62824. position2[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== void 0 ? _childOffset_crossAxis : 0;
  62825. var _childOffset_crossSize, _overlaySize_crossSize, _childOffset_crossSize1, _overlaySize_crossSize1;
  62826. crossPlacement === "center" ? position2[crossAxis] += (((_childOffset_crossSize = childOffset[crossSize]) !== null && _childOffset_crossSize !== void 0 ? _childOffset_crossSize : 0) - ((_overlaySize_crossSize = overlaySize[crossSize]) !== null && _overlaySize_crossSize !== void 0 ? _overlaySize_crossSize : 0)) / 2 : crossPlacement !== crossAxis && (position2[crossAxis] += ((_childOffset_crossSize1 = childOffset[crossSize]) !== null && _childOffset_crossSize1 !== void 0 ? _childOffset_crossSize1 : 0) - ((_overlaySize_crossSize1 = overlaySize[crossSize]) !== null && _overlaySize_crossSize1 !== void 0 ? _overlaySize_crossSize1 : 0)), position2[crossAxis] += crossOffset;
  62827. let minPosition = childOffset[crossAxis] - overlaySize[crossSize] + arrowSize + arrowBoundaryOffset, maxPosition = childOffset[crossAxis] + childOffset[crossSize] - arrowSize - arrowBoundaryOffset;
  62828. if (position2[crossAxis] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(position2[crossAxis], minPosition, maxPosition), placement === axis) {
  62829. let containerHeight = isContainerPositioned ? containerOffsetWithBoundary[size] : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE[size]];
  62830. position2[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] = Math.floor(containerHeight - childOffset[axis] + offset3);
  62831. } else position2[axis] = Math.floor(childOffset[axis] + childOffset[size] + offset3);
  62832. return position2;
  62833. }
  62834. function $edcf132a9284368a$var$getMaxHeight(position2, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlayHeight, heightGrowthDirection) {
  62835. let containerHeight = isContainerPositioned ? containerOffsetWithBoundary.height : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE.height];
  62836. var _position_bottom;
  62837. let overlayTop = position2.top != null ? containerOffsetWithBoundary.top + position2.top : containerOffsetWithBoundary.top + (containerHeight - ((_position_bottom = position2.bottom) !== null && _position_bottom !== void 0 ? _position_bottom : 0) - overlayHeight);
  62838. var _boundaryDimensions_scroll_top, _margins_top, _margins_bottom, _boundaryDimensions_scroll_top1, _margins_top1, _margins_bottom1;
  62839. let maxHeight = heightGrowthDirection !== "top" ? (
  62840. // We want the distance between the top of the overlay to the bottom of the boundary
  62841. Math.max(0, boundaryDimensions.height + boundaryDimensions.top + ((_boundaryDimensions_scroll_top = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top !== void 0 ? _boundaryDimensions_scroll_top : 0) - overlayTop - (((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0) + padding))
  62842. ) : Math.max(0, overlayTop + overlayHeight - (boundaryDimensions.top + ((_boundaryDimensions_scroll_top1 = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top1 !== void 0 ? _boundaryDimensions_scroll_top1 : 0)) - (((_margins_top1 = margins.top) !== null && _margins_top1 !== void 0 ? _margins_top1 : 0) + ((_margins_bottom1 = margins.bottom) !== null && _margins_bottom1 !== void 0 ? _margins_bottom1 : 0) + padding));
  62843. return Math.min(boundaryDimensions.height - padding * 2, maxHeight);
  62844. }
  62845. function $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding, placementInfo) {
  62846. let { placement, axis, size } = placementInfo;
  62847. var _boundaryDimensions_scroll_axis, _margins_axis;
  62848. if (placement === axis) return Math.max(0, childOffset[axis] - boundaryDimensions[axis] - ((_boundaryDimensions_scroll_axis = boundaryDimensions.scroll[axis]) !== null && _boundaryDimensions_scroll_axis !== void 0 ? _boundaryDimensions_scroll_axis : 0) + containerOffsetWithBoundary[axis] - ((_margins_axis = margins[axis]) !== null && _margins_axis !== void 0 ? _margins_axis : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
  62849. var _margins_axis1;
  62850. return Math.max(0, boundaryDimensions[size] + boundaryDimensions[axis] + boundaryDimensions.scroll[axis] - containerOffsetWithBoundary[axis] - childOffset[axis] - childOffset[size] - ((_margins_axis1 = margins[axis]) !== null && _margins_axis1 !== void 0 ? _margins_axis1 : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
  62851. }
  62852. function $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset, overlaySize, scrollSize, margins, padding, flip2, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset3, crossOffset, isContainerPositioned, userSetMaxHeight, arrowSize, arrowBoundaryOffset) {
  62853. let placementInfo = $edcf132a9284368a$var$parsePlacement(placementInput), { size, crossAxis, crossSize, placement, crossPlacement } = placementInfo, position2 = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, offset3, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset), normalizedOffset = offset3, space = $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding + offset3, placementInfo);
  62854. if (flip2 && scrollSize[size] > space) {
  62855. let flippedPlacementInfo = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[placement]} ${crossPlacement}`), flippedPosition = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, flippedPlacementInfo, offset3, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset);
  62856. $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding + offset3, flippedPlacementInfo) > space && (placementInfo = flippedPlacementInfo, position2 = flippedPosition, normalizedOffset = offset3);
  62857. }
  62858. let heightGrowthDirection = "bottom";
  62859. placementInfo.axis === "top" ? placementInfo.placement === "top" ? heightGrowthDirection = "top" : placementInfo.placement === "bottom" && (heightGrowthDirection = "bottom") : placementInfo.crossAxis === "top" && (placementInfo.crossPlacement === "top" ? heightGrowthDirection = "bottom" : placementInfo.crossPlacement === "bottom" && (heightGrowthDirection = "top"));
  62860. let delta = $edcf132a9284368a$var$getDelta(crossAxis, position2[crossAxis], overlaySize[crossSize], boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary);
  62861. position2[crossAxis] += delta;
  62862. let maxHeight = $edcf132a9284368a$var$getMaxHeight(position2, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlaySize.height, heightGrowthDirection);
  62863. userSetMaxHeight && userSetMaxHeight < maxHeight && (maxHeight = userSetMaxHeight), overlaySize.height = Math.min(overlaySize.height, maxHeight), position2 = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, normalizedOffset, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset), delta = $edcf132a9284368a$var$getDelta(crossAxis, position2[crossAxis], overlaySize[crossSize], boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary), position2[crossAxis] += delta;
  62864. let arrowPosition = {}, origin = childOffset[crossAxis] - position2[crossAxis] - margins[$edcf132a9284368a$var$AXIS[crossAxis]], preferredArrowPosition = origin + 0.5 * childOffset[crossSize], arrowMinPosition = arrowSize / 2 + arrowBoundaryOffset;
  62865. var _margins_left, _margins_right, _margins_top, _margins_bottom;
  62866. let overlayMargin = $edcf132a9284368a$var$AXIS[crossAxis] === "left" ? ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0) : ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0), arrowMaxPosition = overlaySize[crossSize] - overlayMargin - arrowSize / 2 - arrowBoundaryOffset, arrowOverlappingChildMinEdge = childOffset[crossAxis] + arrowSize / 2 - (position2[crossAxis] + margins[$edcf132a9284368a$var$AXIS[crossAxis]]), arrowOverlappingChildMaxEdge = childOffset[crossAxis] + childOffset[crossSize] - arrowSize / 2 - (position2[crossAxis] + margins[$edcf132a9284368a$var$AXIS[crossAxis]]), arrowPositionOverlappingChild = $9446cca9a3875146$export$7d15b64cf5a3a4c4(preferredArrowPosition, arrowOverlappingChildMinEdge, arrowOverlappingChildMaxEdge);
  62867. arrowPosition[crossAxis] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(arrowPositionOverlappingChild, arrowMinPosition, arrowMaxPosition), { placement, crossPlacement } = placementInfo, arrowSize ? origin = arrowPosition[crossAxis] : crossPlacement === "right" ? origin += childOffset[crossSize] : crossPlacement === "center" && (origin += childOffset[crossSize] / 2);
  62868. let crossOrigin = placement === "left" || placement === "top" ? overlaySize[size] : 0, triggerAnchorPoint = {
  62869. x: placement === "top" || placement === "bottom" ? origin : crossOrigin,
  62870. y: placement === "left" || placement === "right" ? origin : crossOrigin
  62871. };
  62872. return {
  62873. position: position2,
  62874. maxHeight,
  62875. arrowOffsetLeft: arrowPosition.left,
  62876. arrowOffsetTop: arrowPosition.top,
  62877. placement,
  62878. triggerAnchorPoint
  62879. };
  62880. }
  62881. function $edcf132a9284368a$export$b3ceb0cbf1056d98(opts) {
  62882. let { placement, targetNode, overlayNode, scrollNode, padding, shouldFlip, boundaryElement, offset: offset3, crossOffset, maxHeight, arrowSize = 0, arrowBoundaryOffset = 0 } = opts, container = overlayNode instanceof HTMLElement ? $edcf132a9284368a$var$getContainingBlock(overlayNode) : document.documentElement, isViewportContainer = container === document.documentElement, containerPositionStyle = window.getComputedStyle(container).position, isContainerPositioned = !!containerPositionStyle && containerPositionStyle !== "static", childOffset = isViewportContainer ? $edcf132a9284368a$var$getOffset(targetNode, !1) : $edcf132a9284368a$var$getPosition(targetNode, container, !1);
  62883. if (!isViewportContainer) {
  62884. let { marginTop, marginLeft } = window.getComputedStyle(targetNode);
  62885. childOffset.top += parseInt(marginTop, 10) || 0, childOffset.left += parseInt(marginLeft, 10) || 0;
  62886. }
  62887. let overlaySize = $edcf132a9284368a$var$getOffset(overlayNode, !0), margins = $edcf132a9284368a$var$getMargins(overlayNode);
  62888. var _margins_left, _margins_right;
  62889. overlaySize.width += ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0);
  62890. var _margins_top, _margins_bottom;
  62891. overlaySize.height += ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);
  62892. let scrollSize = $edcf132a9284368a$var$getScroll(scrollNode), boundaryDimensions = $edcf132a9284368a$var$getContainerDimensions(boundaryElement), containerDimensions = $edcf132a9284368a$var$getContainerDimensions(container), containerOffsetWithBoundary = boundaryElement.tagName === "BODY" ? $edcf132a9284368a$var$getOffset(container, !1) : $edcf132a9284368a$var$getPosition(container, boundaryElement, !1);
  62893. return container.tagName === "HTML" && boundaryElement.tagName === "BODY" && (containerDimensions.scroll.top = 0, containerDimensions.scroll.left = 0), $edcf132a9284368a$export$6839422d1f33cee9(placement, childOffset, overlaySize, scrollSize, margins, padding, shouldFlip, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset3, crossOffset, isContainerPositioned, maxHeight, arrowSize, arrowBoundaryOffset);
  62894. }
  62895. function $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale) {
  62896. let { top: top2, left: left2, width, height } = node2.getBoundingClientRect();
  62897. return ignoreScale && node2 instanceof node2.ownerDocument.defaultView.HTMLElement && (width = node2.offsetWidth, height = node2.offsetHeight), {
  62898. top: top2,
  62899. left: left2,
  62900. width,
  62901. height
  62902. };
  62903. }
  62904. function $edcf132a9284368a$var$getOffset(node2, ignoreScale) {
  62905. let { top: top2, left: left2, width, height } = $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale), { scrollTop, scrollLeft, clientTop, clientLeft } = document.documentElement;
  62906. return {
  62907. top: top2 + scrollTop - clientTop,
  62908. left: left2 + scrollLeft - clientLeft,
  62909. width,
  62910. height
  62911. };
  62912. }
  62913. function $edcf132a9284368a$var$getPosition(node2, parent, ignoreScale) {
  62914. let style = window.getComputedStyle(node2), offset3;
  62915. if (style.position === "fixed") offset3 = $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale);
  62916. else {
  62917. offset3 = $edcf132a9284368a$var$getOffset(node2, ignoreScale);
  62918. let parentOffset = $edcf132a9284368a$var$getOffset(parent, ignoreScale), parentStyle = window.getComputedStyle(parent);
  62919. parentOffset.top += (parseInt(parentStyle.borderTopWidth, 10) || 0) - parent.scrollTop, parentOffset.left += (parseInt(parentStyle.borderLeftWidth, 10) || 0) - parent.scrollLeft, offset3.top -= parentOffset.top, offset3.left -= parentOffset.left;
  62920. }
  62921. return offset3.top -= parseInt(style.marginTop, 10) || 0, offset3.left -= parseInt(style.marginLeft, 10) || 0, offset3;
  62922. }
  62923. function $edcf132a9284368a$var$getContainingBlock(node2) {
  62924. let offsetParent = node2.offsetParent;
  62925. if (offsetParent && offsetParent === document.body && window.getComputedStyle(offsetParent).position === "static" && !$edcf132a9284368a$var$isContainingBlock(offsetParent) && (offsetParent = document.documentElement), offsetParent == null)
  62926. for (offsetParent = node2.parentElement; offsetParent && !$edcf132a9284368a$var$isContainingBlock(offsetParent); ) offsetParent = offsetParent.parentElement;
  62927. return offsetParent || document.documentElement;
  62928. }
  62929. function $edcf132a9284368a$var$isContainingBlock(node2) {
  62930. let style = window.getComputedStyle(node2);
  62931. return style.transform !== "none" || /transform|perspective/.test(style.willChange) || style.filter !== "none" || style.contain === "paint" || "backdropFilter" in style && style.backdropFilter !== "none" || "WebkitBackdropFilter" in style && style.WebkitBackdropFilter !== "none";
  62932. }
  62933. // ../../node_modules/@react-aria/overlays/dist/useCloseOnScroll.mjs
  62934. var import_react64 = __toESM(require_react(), 1), $dd149f63282afbbf$export$f6211563215e3b37 = /* @__PURE__ */ new WeakMap();
  62935. function $dd149f63282afbbf$export$18fc8428861184da(opts) {
  62936. let { triggerRef, isOpen, onClose } = opts;
  62937. (0, import_react64.useEffect)(() => {
  62938. if (!isOpen || onClose === null) return;
  62939. let onScroll = (e) => {
  62940. let target = e.target;
  62941. if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current) || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
  62942. let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current);
  62943. onCloseHandler && onCloseHandler();
  62944. };
  62945. return window.addEventListener("scroll", onScroll, !0), () => {
  62946. window.removeEventListener("scroll", onScroll, !0);
  62947. };
  62948. }, [
  62949. isOpen,
  62950. onClose,
  62951. triggerRef
  62952. ]);
  62953. }
  62954. // ../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs
  62955. var import_react73 = __toESM(require_react(), 1);
  62956. // ../../node_modules/@react-aria/i18n/dist/utils.mjs
  62957. var $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
  62958. "Arab",
  62959. "Syrc",
  62960. "Samr",
  62961. "Mand",
  62962. "Thaa",
  62963. "Mend",
  62964. "Nkoo",
  62965. "Adlm",
  62966. "Rohg",
  62967. "Hebr"
  62968. ]), $148a7a147e38ea7f$var$RTL_LANGS = /* @__PURE__ */ new Set([
  62969. "ae",
  62970. "ar",
  62971. "arc",
  62972. "bcc",
  62973. "bqi",
  62974. "ckb",
  62975. "dv",
  62976. "fa",
  62977. "glk",
  62978. "he",
  62979. "ku",
  62980. "mzn",
  62981. "nqo",
  62982. "pnb",
  62983. "ps",
  62984. "sd",
  62985. "ug",
  62986. "ur",
  62987. "yi"
  62988. ]);
  62989. function $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {
  62990. if (Intl.Locale) {
  62991. let locale = new Intl.Locale(localeString).maximize(), textInfo = typeof locale.getTextInfo == "function" ? locale.getTextInfo() : locale.textInfo;
  62992. if (textInfo) return textInfo.direction === "rtl";
  62993. if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);
  62994. }
  62995. let lang = localeString.split("-")[0];
  62996. return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);
  62997. }
  62998. // ../../node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs
  62999. var import_react65 = __toESM(require_react(), 1);
  63000. var $1e5a04cdaf7d1af8$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
  63001. function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
  63002. let locale = typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
  63003. try {
  63004. Intl.DateTimeFormat.supportedLocalesOf([
  63005. locale
  63006. ]);
  63007. } catch {
  63008. locale = "en-US";
  63009. }
  63010. return {
  63011. locale,
  63012. direction: $148a7a147e38ea7f$export$702d680b21cbd764(locale) ? "rtl" : "ltr"
  63013. };
  63014. }
  63015. var $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(), $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set();
  63016. function $1e5a04cdaf7d1af8$var$updateLocale() {
  63017. $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
  63018. for (let listener of $1e5a04cdaf7d1af8$var$listeners) listener($1e5a04cdaf7d1af8$var$currentLocale);
  63019. }
  63020. function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
  63021. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), [defaultLocale, setDefaultLocale] = (0, import_react65.useState)($1e5a04cdaf7d1af8$var$currentLocale);
  63022. return (0, import_react65.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale), () => {
  63023. $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
  63024. }), []), isSSR ? {
  63025. locale: "en-US",
  63026. direction: "ltr"
  63027. } : defaultLocale;
  63028. }
  63029. // ../../node_modules/@react-aria/i18n/dist/context.mjs
  63030. var import_react66 = __toESM(require_react(), 1), $18f2051aff69b9bf$var$I18nContext = import_react66.default.createContext(null);
  63031. function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
  63032. let defaultLocale = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
  63033. return (0, import_react66.useContext)($18f2051aff69b9bf$var$I18nContext) || defaultLocale;
  63034. }
  63035. // ../../node_modules/tslib/tslib.es6.mjs
  63036. var extendStatics = function(d, b) {
  63037. return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
  63038. d2.__proto__ = b2;
  63039. } || function(d2, b2) {
  63040. for (var p3 in b2) Object.prototype.hasOwnProperty.call(b2, p3) && (d2[p3] = b2[p3]);
  63041. }, extendStatics(d, b);
  63042. };
  63043. function __extends(d, b) {
  63044. if (typeof b != "function" && b !== null)
  63045. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  63046. extendStatics(d, b);
  63047. function __() {
  63048. this.constructor = d;
  63049. }
  63050. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  63051. }
  63052. var __assign = function() {
  63053. return __assign = Object.assign || function(t) {
  63054. for (var s3, i = 1, n = arguments.length; i < n; i++) {
  63055. s3 = arguments[i];
  63056. for (var p3 in s3) Object.prototype.hasOwnProperty.call(s3, p3) && (t[p3] = s3[p3]);
  63057. }
  63058. return t;
  63059. }, __assign.apply(this, arguments);
  63060. };
  63061. function __rest(s3, e) {
  63062. var t = {};
  63063. for (var p3 in s3) Object.prototype.hasOwnProperty.call(s3, p3) && e.indexOf(p3) < 0 && (t[p3] = s3[p3]);
  63064. if (s3 != null && typeof Object.getOwnPropertySymbols == "function")
  63065. for (var i = 0, p3 = Object.getOwnPropertySymbols(s3); i < p3.length; i++)
  63066. e.indexOf(p3[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i]) && (t[p3[i]] = s3[p3[i]]);
  63067. return t;
  63068. }
  63069. function __spreadArray(to, from2, pack) {
  63070. if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++)
  63071. (ar || !(i in from2)) && (ar || (ar = Array.prototype.slice.call(from2, 0, i)), ar[i] = from2[i]);
  63072. return to.concat(ar || Array.prototype.slice.call(from2));
  63073. }
  63074. // ../../node_modules/@formatjs/fast-memoize/lib/index.js
  63075. function memoize12(fn4, options) {
  63076. var cache = options && options.cache ? options.cache : cacheDefault, serializer = options && options.serializer ? options.serializer : serializerDefault, strategy = options && options.strategy ? options.strategy : strategyDefault;
  63077. return strategy(fn4, {
  63078. cache,
  63079. serializer
  63080. });
  63081. }
  63082. function isPrimitive4(value) {
  63083. return value == null || typeof value == "number" || typeof value == "boolean";
  63084. }
  63085. function monadic(fn4, cache, serializer, arg) {
  63086. var cacheKey = isPrimitive4(arg) ? arg : serializer(arg), computedValue = cache.get(cacheKey);
  63087. return typeof computedValue > "u" && (computedValue = fn4.call(this, arg), cache.set(cacheKey, computedValue)), computedValue;
  63088. }
  63089. function variadic(fn4, cache, serializer) {
  63090. var args = Array.prototype.slice.call(arguments, 3), cacheKey = serializer(args), computedValue = cache.get(cacheKey);
  63091. return typeof computedValue > "u" && (computedValue = fn4.apply(this, args), cache.set(cacheKey, computedValue)), computedValue;
  63092. }
  63093. function assemble(fn4, context, strategy, cache, serialize3) {
  63094. return strategy.bind(context, fn4, cache, serialize3);
  63095. }
  63096. function strategyDefault(fn4, options) {
  63097. var strategy = fn4.length === 1 ? monadic : variadic;
  63098. return assemble(fn4, this, strategy, options.cache.create(), options.serializer);
  63099. }
  63100. function strategyVariadic(fn4, options) {
  63101. return assemble(fn4, this, variadic, options.cache.create(), options.serializer);
  63102. }
  63103. function strategyMonadic(fn4, options) {
  63104. return assemble(fn4, this, monadic, options.cache.create(), options.serializer);
  63105. }
  63106. var serializerDefault = function() {
  63107. return JSON.stringify(arguments);
  63108. }, ObjectWithoutPrototypeCache = (
  63109. /** @class */
  63110. (function() {
  63111. function ObjectWithoutPrototypeCache2() {
  63112. this.cache = /* @__PURE__ */ Object.create(null);
  63113. }
  63114. return ObjectWithoutPrototypeCache2.prototype.get = function(key) {
  63115. return this.cache[key];
  63116. }, ObjectWithoutPrototypeCache2.prototype.set = function(key, value) {
  63117. this.cache[key] = value;
  63118. }, ObjectWithoutPrototypeCache2;
  63119. })()
  63120. ), cacheDefault = {
  63121. create: function() {
  63122. return new ObjectWithoutPrototypeCache();
  63123. }
  63124. }, strategies = {
  63125. variadic: strategyVariadic,
  63126. monadic: strategyMonadic
  63127. };
  63128. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/error.js
  63129. var ErrorKind;
  63130. (function(ErrorKind2) {
  63131. ErrorKind2[ErrorKind2.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", ErrorKind2[ErrorKind2.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", ErrorKind2[ErrorKind2.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", ErrorKind2[ErrorKind2.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", ErrorKind2[ErrorKind2.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", ErrorKind2[ErrorKind2.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", ErrorKind2[ErrorKind2.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", ErrorKind2[ErrorKind2.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", ErrorKind2[ErrorKind2.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", ErrorKind2[ErrorKind2.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", ErrorKind2[ErrorKind2.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", ErrorKind2[ErrorKind2.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", ErrorKind2[ErrorKind2.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", ErrorKind2[ErrorKind2.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", ErrorKind2[ErrorKind2.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", ErrorKind2[ErrorKind2.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", ErrorKind2[ErrorKind2.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", ErrorKind2[ErrorKind2.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", ErrorKind2[ErrorKind2.INVALID_TAG = 23] = "INVALID_TAG", ErrorKind2[ErrorKind2.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", ErrorKind2[ErrorKind2.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", ErrorKind2[ErrorKind2.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
  63132. })(ErrorKind || (ErrorKind = {}));
  63133. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/types.js
  63134. var TYPE;
  63135. (function(TYPE2) {
  63136. TYPE2[TYPE2.literal = 0] = "literal", TYPE2[TYPE2.argument = 1] = "argument", TYPE2[TYPE2.number = 2] = "number", TYPE2[TYPE2.date = 3] = "date", TYPE2[TYPE2.time = 4] = "time", TYPE2[TYPE2.select = 5] = "select", TYPE2[TYPE2.plural = 6] = "plural", TYPE2[TYPE2.pound = 7] = "pound", TYPE2[TYPE2.tag = 8] = "tag";
  63137. })(TYPE || (TYPE = {}));
  63138. var SKELETON_TYPE;
  63139. (function(SKELETON_TYPE2) {
  63140. SKELETON_TYPE2[SKELETON_TYPE2.number = 0] = "number", SKELETON_TYPE2[SKELETON_TYPE2.dateTime = 1] = "dateTime";
  63141. })(SKELETON_TYPE || (SKELETON_TYPE = {}));
  63142. function isLiteralElement(el) {
  63143. return el.type === TYPE.literal;
  63144. }
  63145. function isArgumentElement(el) {
  63146. return el.type === TYPE.argument;
  63147. }
  63148. function isNumberElement(el) {
  63149. return el.type === TYPE.number;
  63150. }
  63151. function isDateElement(el) {
  63152. return el.type === TYPE.date;
  63153. }
  63154. function isTimeElement(el) {
  63155. return el.type === TYPE.time;
  63156. }
  63157. function isSelectElement(el) {
  63158. return el.type === TYPE.select;
  63159. }
  63160. function isPluralElement(el) {
  63161. return el.type === TYPE.plural;
  63162. }
  63163. function isPoundElement(el) {
  63164. return el.type === TYPE.pound;
  63165. }
  63166. function isTagElement(el) {
  63167. return el.type === TYPE.tag;
  63168. }
  63169. function isNumberSkeleton(el) {
  63170. return !!(el && typeof el == "object" && el.type === SKELETON_TYPE.number);
  63171. }
  63172. function isDateTimeSkeleton(el) {
  63173. return !!(el && typeof el == "object" && el.type === SKELETON_TYPE.dateTime);
  63174. }
  63175. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
  63176. var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
  63177. // ../../node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
  63178. var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
  63179. function parseDateTimeSkeleton(skeleton) {
  63180. var result = {};
  63181. return skeleton.replace(DATE_TIME_REGEX, function(match3) {
  63182. var len = match3.length;
  63183. switch (match3[0]) {
  63184. // Era
  63185. case "G":
  63186. result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
  63187. break;
  63188. // Year
  63189. case "y":
  63190. result.year = len === 2 ? "2-digit" : "numeric";
  63191. break;
  63192. case "Y":
  63193. case "u":
  63194. case "U":
  63195. case "r":
  63196. throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
  63197. // Quarter
  63198. case "q":
  63199. case "Q":
  63200. throw new RangeError("`q/Q` (quarter) patterns are not supported");
  63201. // Month
  63202. case "M":
  63203. case "L":
  63204. result.month = ["numeric", "2-digit", "short", "long", "narrow"][len - 1];
  63205. break;
  63206. // Week
  63207. case "w":
  63208. case "W":
  63209. throw new RangeError("`w/W` (week) patterns are not supported");
  63210. case "d":
  63211. result.day = ["numeric", "2-digit"][len - 1];
  63212. break;
  63213. case "D":
  63214. case "F":
  63215. case "g":
  63216. throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
  63217. // Weekday
  63218. case "E":
  63219. result.weekday = len === 4 ? "long" : len === 5 ? "narrow" : "short";
  63220. break;
  63221. case "e":
  63222. if (len < 4)
  63223. throw new RangeError("`e..eee` (weekday) patterns are not supported");
  63224. result.weekday = ["short", "long", "narrow", "short"][len - 4];
  63225. break;
  63226. case "c":
  63227. if (len < 4)
  63228. throw new RangeError("`c..ccc` (weekday) patterns are not supported");
  63229. result.weekday = ["short", "long", "narrow", "short"][len - 4];
  63230. break;
  63231. // Period
  63232. case "a":
  63233. result.hour12 = !0;
  63234. break;
  63235. case "b":
  63236. // am, pm, noon, midnight
  63237. case "B":
  63238. throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
  63239. // Hour
  63240. case "h":
  63241. result.hourCycle = "h12", result.hour = ["numeric", "2-digit"][len - 1];
  63242. break;
  63243. case "H":
  63244. result.hourCycle = "h23", result.hour = ["numeric", "2-digit"][len - 1];
  63245. break;
  63246. case "K":
  63247. result.hourCycle = "h11", result.hour = ["numeric", "2-digit"][len - 1];
  63248. break;
  63249. case "k":
  63250. result.hourCycle = "h24", result.hour = ["numeric", "2-digit"][len - 1];
  63251. break;
  63252. case "j":
  63253. case "J":
  63254. case "C":
  63255. throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
  63256. // Minute
  63257. case "m":
  63258. result.minute = ["numeric", "2-digit"][len - 1];
  63259. break;
  63260. // Second
  63261. case "s":
  63262. result.second = ["numeric", "2-digit"][len - 1];
  63263. break;
  63264. case "S":
  63265. case "A":
  63266. throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
  63267. // Zone
  63268. case "z":
  63269. result.timeZoneName = len < 4 ? "short" : "long";
  63270. break;
  63271. case "Z":
  63272. // 1..3, 4, 5: The ISO8601 varios formats
  63273. case "O":
  63274. // 1, 4: milliseconds in day short, long
  63275. case "v":
  63276. // 1, 4: generic non-location format
  63277. case "V":
  63278. // 1, 2, 3, 4: time zone ID or city
  63279. case "X":
  63280. // 1, 2, 3, 4: The ISO8601 varios formats
  63281. case "x":
  63282. throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
  63283. }
  63284. return "";
  63285. }), result;
  63286. }
  63287. // ../../node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
  63288. var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
  63289. // ../../node_modules/@formatjs/icu-skeleton-parser/lib/number.js
  63290. function parseNumberSkeletonFromString(skeleton) {
  63291. if (skeleton.length === 0)
  63292. throw new Error("Number skeleton cannot be empty");
  63293. for (var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(x) {
  63294. return x.length > 0;
  63295. }), tokens2 = [], _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
  63296. var stringToken = stringTokens_1[_i], stemAndOptions = stringToken.split("/");
  63297. if (stemAndOptions.length === 0)
  63298. throw new Error("Invalid number skeleton");
  63299. for (var stem = stemAndOptions[0], options = stemAndOptions.slice(1), _a4 = 0, options_1 = options; _a4 < options_1.length; _a4++) {
  63300. var option = options_1[_a4];
  63301. if (option.length === 0)
  63302. throw new Error("Invalid number skeleton");
  63303. }
  63304. tokens2.push({ stem, options });
  63305. }
  63306. return tokens2;
  63307. }
  63308. function icuUnitToEcma(unit) {
  63309. return unit.replace(/^(.*?)-/, "");
  63310. }
  63311. var FRACTION_PRECISION_REGEX = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\+|#+)?[rs]?$/g, INTEGER_WIDTH_REGEX = /(\*)(0+)|(#+)(0+)|(0+)/g, CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/;
  63312. function parseSignificantPrecision(str2) {
  63313. var result = {};
  63314. return str2[str2.length - 1] === "r" ? result.roundingPriority = "morePrecision" : str2[str2.length - 1] === "s" && (result.roundingPriority = "lessPrecision"), str2.replace(SIGNIFICANT_PRECISION_REGEX, function(_, g1, g2) {
  63315. return typeof g2 != "string" ? (result.minimumSignificantDigits = g1.length, result.maximumSignificantDigits = g1.length) : g2 === "+" ? result.minimumSignificantDigits = g1.length : g1[0] === "#" ? result.maximumSignificantDigits = g1.length : (result.minimumSignificantDigits = g1.length, result.maximumSignificantDigits = g1.length + (typeof g2 == "string" ? g2.length : 0)), "";
  63316. }), result;
  63317. }
  63318. function parseSign(str2) {
  63319. switch (str2) {
  63320. case "sign-auto":
  63321. return {
  63322. signDisplay: "auto"
  63323. };
  63324. case "sign-accounting":
  63325. case "()":
  63326. return {
  63327. currencySign: "accounting"
  63328. };
  63329. case "sign-always":
  63330. case "+!":
  63331. return {
  63332. signDisplay: "always"
  63333. };
  63334. case "sign-accounting-always":
  63335. case "()!":
  63336. return {
  63337. signDisplay: "always",
  63338. currencySign: "accounting"
  63339. };
  63340. case "sign-except-zero":
  63341. case "+?":
  63342. return {
  63343. signDisplay: "exceptZero"
  63344. };
  63345. case "sign-accounting-except-zero":
  63346. case "()?":
  63347. return {
  63348. signDisplay: "exceptZero",
  63349. currencySign: "accounting"
  63350. };
  63351. case "sign-never":
  63352. case "+_":
  63353. return {
  63354. signDisplay: "never"
  63355. };
  63356. }
  63357. }
  63358. function parseConciseScientificAndEngineeringStem(stem) {
  63359. var result;
  63360. if (stem[0] === "E" && stem[1] === "E" ? (result = {
  63361. notation: "engineering"
  63362. }, stem = stem.slice(2)) : stem[0] === "E" && (result = {
  63363. notation: "scientific"
  63364. }, stem = stem.slice(1)), result) {
  63365. var signDisplay = stem.slice(0, 2);
  63366. if (signDisplay === "+!" ? (result.signDisplay = "always", stem = stem.slice(2)) : signDisplay === "+?" && (result.signDisplay = "exceptZero", stem = stem.slice(2)), !CONCISE_INTEGER_WIDTH_REGEX.test(stem))
  63367. throw new Error("Malformed concise eng/scientific notation");
  63368. result.minimumIntegerDigits = stem.length;
  63369. }
  63370. return result;
  63371. }
  63372. function parseNotationOptions(opt) {
  63373. var result = {}, signOpts = parseSign(opt);
  63374. return signOpts || result;
  63375. }
  63376. function parseNumberSkeleton(tokens2) {
  63377. for (var result = {}, _i = 0, tokens_1 = tokens2; _i < tokens_1.length; _i++) {
  63378. var token2 = tokens_1[_i];
  63379. switch (token2.stem) {
  63380. case "percent":
  63381. case "%":
  63382. result.style = "percent";
  63383. continue;
  63384. case "%x100":
  63385. result.style = "percent", result.scale = 100;
  63386. continue;
  63387. case "currency":
  63388. result.style = "currency", result.currency = token2.options[0];
  63389. continue;
  63390. case "group-off":
  63391. case ",_":
  63392. result.useGrouping = !1;
  63393. continue;
  63394. case "precision-integer":
  63395. case ".":
  63396. result.maximumFractionDigits = 0;
  63397. continue;
  63398. case "measure-unit":
  63399. case "unit":
  63400. result.style = "unit", result.unit = icuUnitToEcma(token2.options[0]);
  63401. continue;
  63402. case "compact-short":
  63403. case "K":
  63404. result.notation = "compact", result.compactDisplay = "short";
  63405. continue;
  63406. case "compact-long":
  63407. case "KK":
  63408. result.notation = "compact", result.compactDisplay = "long";
  63409. continue;
  63410. case "scientific":
  63411. result = __assign(__assign(__assign({}, result), { notation: "scientific" }), token2.options.reduce(function(all, opt2) {
  63412. return __assign(__assign({}, all), parseNotationOptions(opt2));
  63413. }, {}));
  63414. continue;
  63415. case "engineering":
  63416. result = __assign(__assign(__assign({}, result), { notation: "engineering" }), token2.options.reduce(function(all, opt2) {
  63417. return __assign(__assign({}, all), parseNotationOptions(opt2));
  63418. }, {}));
  63419. continue;
  63420. case "notation-simple":
  63421. result.notation = "standard";
  63422. continue;
  63423. // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
  63424. case "unit-width-narrow":
  63425. result.currencyDisplay = "narrowSymbol", result.unitDisplay = "narrow";
  63426. continue;
  63427. case "unit-width-short":
  63428. result.currencyDisplay = "code", result.unitDisplay = "short";
  63429. continue;
  63430. case "unit-width-full-name":
  63431. result.currencyDisplay = "name", result.unitDisplay = "long";
  63432. continue;
  63433. case "unit-width-iso-code":
  63434. result.currencyDisplay = "symbol";
  63435. continue;
  63436. case "scale":
  63437. result.scale = parseFloat(token2.options[0]);
  63438. continue;
  63439. case "rounding-mode-floor":
  63440. result.roundingMode = "floor";
  63441. continue;
  63442. case "rounding-mode-ceiling":
  63443. result.roundingMode = "ceil";
  63444. continue;
  63445. case "rounding-mode-down":
  63446. result.roundingMode = "trunc";
  63447. continue;
  63448. case "rounding-mode-up":
  63449. result.roundingMode = "expand";
  63450. continue;
  63451. case "rounding-mode-half-even":
  63452. result.roundingMode = "halfEven";
  63453. continue;
  63454. case "rounding-mode-half-down":
  63455. result.roundingMode = "halfTrunc";
  63456. continue;
  63457. case "rounding-mode-half-up":
  63458. result.roundingMode = "halfExpand";
  63459. continue;
  63460. // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
  63461. case "integer-width":
  63462. if (token2.options.length > 1)
  63463. throw new RangeError("integer-width stems only accept a single optional option");
  63464. token2.options[0].replace(INTEGER_WIDTH_REGEX, function(_, g1, g2, g3, g4, g5) {
  63465. if (g1)
  63466. result.minimumIntegerDigits = g2.length;
  63467. else {
  63468. if (g3 && g4)
  63469. throw new Error("We currently do not support maximum integer digits");
  63470. if (g5)
  63471. throw new Error("We currently do not support exact integer digits");
  63472. }
  63473. return "";
  63474. });
  63475. continue;
  63476. }
  63477. if (CONCISE_INTEGER_WIDTH_REGEX.test(token2.stem)) {
  63478. result.minimumIntegerDigits = token2.stem.length;
  63479. continue;
  63480. }
  63481. if (FRACTION_PRECISION_REGEX.test(token2.stem)) {
  63482. if (token2.options.length > 1)
  63483. throw new RangeError("Fraction-precision stems only accept a single optional option");
  63484. token2.stem.replace(FRACTION_PRECISION_REGEX, function(_, g1, g2, g3, g4, g5) {
  63485. return g2 === "*" ? result.minimumFractionDigits = g1.length : g3 && g3[0] === "#" ? result.maximumFractionDigits = g3.length : g4 && g5 ? (result.minimumFractionDigits = g4.length, result.maximumFractionDigits = g4.length + g5.length) : (result.minimumFractionDigits = g1.length, result.maximumFractionDigits = g1.length), "";
  63486. });
  63487. var opt = token2.options[0];
  63488. opt === "w" ? result = __assign(__assign({}, result), { trailingZeroDisplay: "stripIfInteger" }) : opt && (result = __assign(__assign({}, result), parseSignificantPrecision(opt)));
  63489. continue;
  63490. }
  63491. if (SIGNIFICANT_PRECISION_REGEX.test(token2.stem)) {
  63492. result = __assign(__assign({}, result), parseSignificantPrecision(token2.stem));
  63493. continue;
  63494. }
  63495. var signOpts = parseSign(token2.stem);
  63496. signOpts && (result = __assign(__assign({}, result), signOpts));
  63497. var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token2.stem);
  63498. conciseScientificAndEngineeringOpts && (result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts));
  63499. }
  63500. return result;
  63501. }
  63502. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
  63503. var timeData = {
  63504. "001": [
  63505. "H",
  63506. "h"
  63507. ],
  63508. 419: [
  63509. "h",
  63510. "H",
  63511. "hB",
  63512. "hb"
  63513. ],
  63514. AC: [
  63515. "H",
  63516. "h",
  63517. "hb",
  63518. "hB"
  63519. ],
  63520. AD: [
  63521. "H",
  63522. "hB"
  63523. ],
  63524. AE: [
  63525. "h",
  63526. "hB",
  63527. "hb",
  63528. "H"
  63529. ],
  63530. AF: [
  63531. "H",
  63532. "hb",
  63533. "hB",
  63534. "h"
  63535. ],
  63536. AG: [
  63537. "h",
  63538. "hb",
  63539. "H",
  63540. "hB"
  63541. ],
  63542. AI: [
  63543. "H",
  63544. "h",
  63545. "hb",
  63546. "hB"
  63547. ],
  63548. AL: [
  63549. "h",
  63550. "H",
  63551. "hB"
  63552. ],
  63553. AM: [
  63554. "H",
  63555. "hB"
  63556. ],
  63557. AO: [
  63558. "H",
  63559. "hB"
  63560. ],
  63561. AR: [
  63562. "h",
  63563. "H",
  63564. "hB",
  63565. "hb"
  63566. ],
  63567. AS: [
  63568. "h",
  63569. "H"
  63570. ],
  63571. AT: [
  63572. "H",
  63573. "hB"
  63574. ],
  63575. AU: [
  63576. "h",
  63577. "hb",
  63578. "H",
  63579. "hB"
  63580. ],
  63581. AW: [
  63582. "H",
  63583. "hB"
  63584. ],
  63585. AX: [
  63586. "H"
  63587. ],
  63588. AZ: [
  63589. "H",
  63590. "hB",
  63591. "h"
  63592. ],
  63593. BA: [
  63594. "H",
  63595. "hB",
  63596. "h"
  63597. ],
  63598. BB: [
  63599. "h",
  63600. "hb",
  63601. "H",
  63602. "hB"
  63603. ],
  63604. BD: [
  63605. "h",
  63606. "hB",
  63607. "H"
  63608. ],
  63609. BE: [
  63610. "H",
  63611. "hB"
  63612. ],
  63613. BF: [
  63614. "H",
  63615. "hB"
  63616. ],
  63617. BG: [
  63618. "H",
  63619. "hB",
  63620. "h"
  63621. ],
  63622. BH: [
  63623. "h",
  63624. "hB",
  63625. "hb",
  63626. "H"
  63627. ],
  63628. BI: [
  63629. "H",
  63630. "h"
  63631. ],
  63632. BJ: [
  63633. "H",
  63634. "hB"
  63635. ],
  63636. BL: [
  63637. "H",
  63638. "hB"
  63639. ],
  63640. BM: [
  63641. "h",
  63642. "hb",
  63643. "H",
  63644. "hB"
  63645. ],
  63646. BN: [
  63647. "hb",
  63648. "hB",
  63649. "h",
  63650. "H"
  63651. ],
  63652. BO: [
  63653. "h",
  63654. "H",
  63655. "hB",
  63656. "hb"
  63657. ],
  63658. BQ: [
  63659. "H"
  63660. ],
  63661. BR: [
  63662. "H",
  63663. "hB"
  63664. ],
  63665. BS: [
  63666. "h",
  63667. "hb",
  63668. "H",
  63669. "hB"
  63670. ],
  63671. BT: [
  63672. "h",
  63673. "H"
  63674. ],
  63675. BW: [
  63676. "H",
  63677. "h",
  63678. "hb",
  63679. "hB"
  63680. ],
  63681. BY: [
  63682. "H",
  63683. "h"
  63684. ],
  63685. BZ: [
  63686. "H",
  63687. "h",
  63688. "hb",
  63689. "hB"
  63690. ],
  63691. CA: [
  63692. "h",
  63693. "hb",
  63694. "H",
  63695. "hB"
  63696. ],
  63697. CC: [
  63698. "H",
  63699. "h",
  63700. "hb",
  63701. "hB"
  63702. ],
  63703. CD: [
  63704. "hB",
  63705. "H"
  63706. ],
  63707. CF: [
  63708. "H",
  63709. "h",
  63710. "hB"
  63711. ],
  63712. CG: [
  63713. "H",
  63714. "hB"
  63715. ],
  63716. CH: [
  63717. "H",
  63718. "hB",
  63719. "h"
  63720. ],
  63721. CI: [
  63722. "H",
  63723. "hB"
  63724. ],
  63725. CK: [
  63726. "H",
  63727. "h",
  63728. "hb",
  63729. "hB"
  63730. ],
  63731. CL: [
  63732. "h",
  63733. "H",
  63734. "hB",
  63735. "hb"
  63736. ],
  63737. CM: [
  63738. "H",
  63739. "h",
  63740. "hB"
  63741. ],
  63742. CN: [
  63743. "H",
  63744. "hB",
  63745. "hb",
  63746. "h"
  63747. ],
  63748. CO: [
  63749. "h",
  63750. "H",
  63751. "hB",
  63752. "hb"
  63753. ],
  63754. CP: [
  63755. "H"
  63756. ],
  63757. CR: [
  63758. "h",
  63759. "H",
  63760. "hB",
  63761. "hb"
  63762. ],
  63763. CU: [
  63764. "h",
  63765. "H",
  63766. "hB",
  63767. "hb"
  63768. ],
  63769. CV: [
  63770. "H",
  63771. "hB"
  63772. ],
  63773. CW: [
  63774. "H",
  63775. "hB"
  63776. ],
  63777. CX: [
  63778. "H",
  63779. "h",
  63780. "hb",
  63781. "hB"
  63782. ],
  63783. CY: [
  63784. "h",
  63785. "H",
  63786. "hb",
  63787. "hB"
  63788. ],
  63789. CZ: [
  63790. "H"
  63791. ],
  63792. DE: [
  63793. "H",
  63794. "hB"
  63795. ],
  63796. DG: [
  63797. "H",
  63798. "h",
  63799. "hb",
  63800. "hB"
  63801. ],
  63802. DJ: [
  63803. "h",
  63804. "H"
  63805. ],
  63806. DK: [
  63807. "H"
  63808. ],
  63809. DM: [
  63810. "h",
  63811. "hb",
  63812. "H",
  63813. "hB"
  63814. ],
  63815. DO: [
  63816. "h",
  63817. "H",
  63818. "hB",
  63819. "hb"
  63820. ],
  63821. DZ: [
  63822. "h",
  63823. "hB",
  63824. "hb",
  63825. "H"
  63826. ],
  63827. EA: [
  63828. "H",
  63829. "h",
  63830. "hB",
  63831. "hb"
  63832. ],
  63833. EC: [
  63834. "h",
  63835. "H",
  63836. "hB",
  63837. "hb"
  63838. ],
  63839. EE: [
  63840. "H",
  63841. "hB"
  63842. ],
  63843. EG: [
  63844. "h",
  63845. "hB",
  63846. "hb",
  63847. "H"
  63848. ],
  63849. EH: [
  63850. "h",
  63851. "hB",
  63852. "hb",
  63853. "H"
  63854. ],
  63855. ER: [
  63856. "h",
  63857. "H"
  63858. ],
  63859. ES: [
  63860. "H",
  63861. "hB",
  63862. "h",
  63863. "hb"
  63864. ],
  63865. ET: [
  63866. "hB",
  63867. "hb",
  63868. "h",
  63869. "H"
  63870. ],
  63871. FI: [
  63872. "H"
  63873. ],
  63874. FJ: [
  63875. "h",
  63876. "hb",
  63877. "H",
  63878. "hB"
  63879. ],
  63880. FK: [
  63881. "H",
  63882. "h",
  63883. "hb",
  63884. "hB"
  63885. ],
  63886. FM: [
  63887. "h",
  63888. "hb",
  63889. "H",
  63890. "hB"
  63891. ],
  63892. FO: [
  63893. "H",
  63894. "h"
  63895. ],
  63896. FR: [
  63897. "H",
  63898. "hB"
  63899. ],
  63900. GA: [
  63901. "H",
  63902. "hB"
  63903. ],
  63904. GB: [
  63905. "H",
  63906. "h",
  63907. "hb",
  63908. "hB"
  63909. ],
  63910. GD: [
  63911. "h",
  63912. "hb",
  63913. "H",
  63914. "hB"
  63915. ],
  63916. GE: [
  63917. "H",
  63918. "hB",
  63919. "h"
  63920. ],
  63921. GF: [
  63922. "H",
  63923. "hB"
  63924. ],
  63925. GG: [
  63926. "H",
  63927. "h",
  63928. "hb",
  63929. "hB"
  63930. ],
  63931. GH: [
  63932. "h",
  63933. "H"
  63934. ],
  63935. GI: [
  63936. "H",
  63937. "h",
  63938. "hb",
  63939. "hB"
  63940. ],
  63941. GL: [
  63942. "H",
  63943. "h"
  63944. ],
  63945. GM: [
  63946. "h",
  63947. "hb",
  63948. "H",
  63949. "hB"
  63950. ],
  63951. GN: [
  63952. "H",
  63953. "hB"
  63954. ],
  63955. GP: [
  63956. "H",
  63957. "hB"
  63958. ],
  63959. GQ: [
  63960. "H",
  63961. "hB",
  63962. "h",
  63963. "hb"
  63964. ],
  63965. GR: [
  63966. "h",
  63967. "H",
  63968. "hb",
  63969. "hB"
  63970. ],
  63971. GT: [
  63972. "h",
  63973. "H",
  63974. "hB",
  63975. "hb"
  63976. ],
  63977. GU: [
  63978. "h",
  63979. "hb",
  63980. "H",
  63981. "hB"
  63982. ],
  63983. GW: [
  63984. "H",
  63985. "hB"
  63986. ],
  63987. GY: [
  63988. "h",
  63989. "hb",
  63990. "H",
  63991. "hB"
  63992. ],
  63993. HK: [
  63994. "h",
  63995. "hB",
  63996. "hb",
  63997. "H"
  63998. ],
  63999. HN: [
  64000. "h",
  64001. "H",
  64002. "hB",
  64003. "hb"
  64004. ],
  64005. HR: [
  64006. "H",
  64007. "hB"
  64008. ],
  64009. HU: [
  64010. "H",
  64011. "h"
  64012. ],
  64013. IC: [
  64014. "H",
  64015. "h",
  64016. "hB",
  64017. "hb"
  64018. ],
  64019. ID: [
  64020. "H"
  64021. ],
  64022. IE: [
  64023. "H",
  64024. "h",
  64025. "hb",
  64026. "hB"
  64027. ],
  64028. IL: [
  64029. "H",
  64030. "hB"
  64031. ],
  64032. IM: [
  64033. "H",
  64034. "h",
  64035. "hb",
  64036. "hB"
  64037. ],
  64038. IN: [
  64039. "h",
  64040. "H"
  64041. ],
  64042. IO: [
  64043. "H",
  64044. "h",
  64045. "hb",
  64046. "hB"
  64047. ],
  64048. IQ: [
  64049. "h",
  64050. "hB",
  64051. "hb",
  64052. "H"
  64053. ],
  64054. IR: [
  64055. "hB",
  64056. "H"
  64057. ],
  64058. IS: [
  64059. "H"
  64060. ],
  64061. IT: [
  64062. "H",
  64063. "hB"
  64064. ],
  64065. JE: [
  64066. "H",
  64067. "h",
  64068. "hb",
  64069. "hB"
  64070. ],
  64071. JM: [
  64072. "h",
  64073. "hb",
  64074. "H",
  64075. "hB"
  64076. ],
  64077. JO: [
  64078. "h",
  64079. "hB",
  64080. "hb",
  64081. "H"
  64082. ],
  64083. JP: [
  64084. "H",
  64085. "K",
  64086. "h"
  64087. ],
  64088. KE: [
  64089. "hB",
  64090. "hb",
  64091. "H",
  64092. "h"
  64093. ],
  64094. KG: [
  64095. "H",
  64096. "h",
  64097. "hB",
  64098. "hb"
  64099. ],
  64100. KH: [
  64101. "hB",
  64102. "h",
  64103. "H",
  64104. "hb"
  64105. ],
  64106. KI: [
  64107. "h",
  64108. "hb",
  64109. "H",
  64110. "hB"
  64111. ],
  64112. KM: [
  64113. "H",
  64114. "h",
  64115. "hB",
  64116. "hb"
  64117. ],
  64118. KN: [
  64119. "h",
  64120. "hb",
  64121. "H",
  64122. "hB"
  64123. ],
  64124. KP: [
  64125. "h",
  64126. "H",
  64127. "hB",
  64128. "hb"
  64129. ],
  64130. KR: [
  64131. "h",
  64132. "H",
  64133. "hB",
  64134. "hb"
  64135. ],
  64136. KW: [
  64137. "h",
  64138. "hB",
  64139. "hb",
  64140. "H"
  64141. ],
  64142. KY: [
  64143. "h",
  64144. "hb",
  64145. "H",
  64146. "hB"
  64147. ],
  64148. KZ: [
  64149. "H",
  64150. "hB"
  64151. ],
  64152. LA: [
  64153. "H",
  64154. "hb",
  64155. "hB",
  64156. "h"
  64157. ],
  64158. LB: [
  64159. "h",
  64160. "hB",
  64161. "hb",
  64162. "H"
  64163. ],
  64164. LC: [
  64165. "h",
  64166. "hb",
  64167. "H",
  64168. "hB"
  64169. ],
  64170. LI: [
  64171. "H",
  64172. "hB",
  64173. "h"
  64174. ],
  64175. LK: [
  64176. "H",
  64177. "h",
  64178. "hB",
  64179. "hb"
  64180. ],
  64181. LR: [
  64182. "h",
  64183. "hb",
  64184. "H",
  64185. "hB"
  64186. ],
  64187. LS: [
  64188. "h",
  64189. "H"
  64190. ],
  64191. LT: [
  64192. "H",
  64193. "h",
  64194. "hb",
  64195. "hB"
  64196. ],
  64197. LU: [
  64198. "H",
  64199. "h",
  64200. "hB"
  64201. ],
  64202. LV: [
  64203. "H",
  64204. "hB",
  64205. "hb",
  64206. "h"
  64207. ],
  64208. LY: [
  64209. "h",
  64210. "hB",
  64211. "hb",
  64212. "H"
  64213. ],
  64214. MA: [
  64215. "H",
  64216. "h",
  64217. "hB",
  64218. "hb"
  64219. ],
  64220. MC: [
  64221. "H",
  64222. "hB"
  64223. ],
  64224. MD: [
  64225. "H",
  64226. "hB"
  64227. ],
  64228. ME: [
  64229. "H",
  64230. "hB",
  64231. "h"
  64232. ],
  64233. MF: [
  64234. "H",
  64235. "hB"
  64236. ],
  64237. MG: [
  64238. "H",
  64239. "h"
  64240. ],
  64241. MH: [
  64242. "h",
  64243. "hb",
  64244. "H",
  64245. "hB"
  64246. ],
  64247. MK: [
  64248. "H",
  64249. "h",
  64250. "hb",
  64251. "hB"
  64252. ],
  64253. ML: [
  64254. "H"
  64255. ],
  64256. MM: [
  64257. "hB",
  64258. "hb",
  64259. "H",
  64260. "h"
  64261. ],
  64262. MN: [
  64263. "H",
  64264. "h",
  64265. "hb",
  64266. "hB"
  64267. ],
  64268. MO: [
  64269. "h",
  64270. "hB",
  64271. "hb",
  64272. "H"
  64273. ],
  64274. MP: [
  64275. "h",
  64276. "hb",
  64277. "H",
  64278. "hB"
  64279. ],
  64280. MQ: [
  64281. "H",
  64282. "hB"
  64283. ],
  64284. MR: [
  64285. "h",
  64286. "hB",
  64287. "hb",
  64288. "H"
  64289. ],
  64290. MS: [
  64291. "H",
  64292. "h",
  64293. "hb",
  64294. "hB"
  64295. ],
  64296. MT: [
  64297. "H",
  64298. "h"
  64299. ],
  64300. MU: [
  64301. "H",
  64302. "h"
  64303. ],
  64304. MV: [
  64305. "H",
  64306. "h"
  64307. ],
  64308. MW: [
  64309. "h",
  64310. "hb",
  64311. "H",
  64312. "hB"
  64313. ],
  64314. MX: [
  64315. "h",
  64316. "H",
  64317. "hB",
  64318. "hb"
  64319. ],
  64320. MY: [
  64321. "hb",
  64322. "hB",
  64323. "h",
  64324. "H"
  64325. ],
  64326. MZ: [
  64327. "H",
  64328. "hB"
  64329. ],
  64330. NA: [
  64331. "h",
  64332. "H",
  64333. "hB",
  64334. "hb"
  64335. ],
  64336. NC: [
  64337. "H",
  64338. "hB"
  64339. ],
  64340. NE: [
  64341. "H"
  64342. ],
  64343. NF: [
  64344. "H",
  64345. "h",
  64346. "hb",
  64347. "hB"
  64348. ],
  64349. NG: [
  64350. "H",
  64351. "h",
  64352. "hb",
  64353. "hB"
  64354. ],
  64355. NI: [
  64356. "h",
  64357. "H",
  64358. "hB",
  64359. "hb"
  64360. ],
  64361. NL: [
  64362. "H",
  64363. "hB"
  64364. ],
  64365. NO: [
  64366. "H",
  64367. "h"
  64368. ],
  64369. NP: [
  64370. "H",
  64371. "h",
  64372. "hB"
  64373. ],
  64374. NR: [
  64375. "H",
  64376. "h",
  64377. "hb",
  64378. "hB"
  64379. ],
  64380. NU: [
  64381. "H",
  64382. "h",
  64383. "hb",
  64384. "hB"
  64385. ],
  64386. NZ: [
  64387. "h",
  64388. "hb",
  64389. "H",
  64390. "hB"
  64391. ],
  64392. OM: [
  64393. "h",
  64394. "hB",
  64395. "hb",
  64396. "H"
  64397. ],
  64398. PA: [
  64399. "h",
  64400. "H",
  64401. "hB",
  64402. "hb"
  64403. ],
  64404. PE: [
  64405. "h",
  64406. "H",
  64407. "hB",
  64408. "hb"
  64409. ],
  64410. PF: [
  64411. "H",
  64412. "h",
  64413. "hB"
  64414. ],
  64415. PG: [
  64416. "h",
  64417. "H"
  64418. ],
  64419. PH: [
  64420. "h",
  64421. "hB",
  64422. "hb",
  64423. "H"
  64424. ],
  64425. PK: [
  64426. "h",
  64427. "hB",
  64428. "H"
  64429. ],
  64430. PL: [
  64431. "H",
  64432. "h"
  64433. ],
  64434. PM: [
  64435. "H",
  64436. "hB"
  64437. ],
  64438. PN: [
  64439. "H",
  64440. "h",
  64441. "hb",
  64442. "hB"
  64443. ],
  64444. PR: [
  64445. "h",
  64446. "H",
  64447. "hB",
  64448. "hb"
  64449. ],
  64450. PS: [
  64451. "h",
  64452. "hB",
  64453. "hb",
  64454. "H"
  64455. ],
  64456. PT: [
  64457. "H",
  64458. "hB"
  64459. ],
  64460. PW: [
  64461. "h",
  64462. "H"
  64463. ],
  64464. PY: [
  64465. "h",
  64466. "H",
  64467. "hB",
  64468. "hb"
  64469. ],
  64470. QA: [
  64471. "h",
  64472. "hB",
  64473. "hb",
  64474. "H"
  64475. ],
  64476. RE: [
  64477. "H",
  64478. "hB"
  64479. ],
  64480. RO: [
  64481. "H",
  64482. "hB"
  64483. ],
  64484. RS: [
  64485. "H",
  64486. "hB",
  64487. "h"
  64488. ],
  64489. RU: [
  64490. "H"
  64491. ],
  64492. RW: [
  64493. "H",
  64494. "h"
  64495. ],
  64496. SA: [
  64497. "h",
  64498. "hB",
  64499. "hb",
  64500. "H"
  64501. ],
  64502. SB: [
  64503. "h",
  64504. "hb",
  64505. "H",
  64506. "hB"
  64507. ],
  64508. SC: [
  64509. "H",
  64510. "h",
  64511. "hB"
  64512. ],
  64513. SD: [
  64514. "h",
  64515. "hB",
  64516. "hb",
  64517. "H"
  64518. ],
  64519. SE: [
  64520. "H"
  64521. ],
  64522. SG: [
  64523. "h",
  64524. "hb",
  64525. "H",
  64526. "hB"
  64527. ],
  64528. SH: [
  64529. "H",
  64530. "h",
  64531. "hb",
  64532. "hB"
  64533. ],
  64534. SI: [
  64535. "H",
  64536. "hB"
  64537. ],
  64538. SJ: [
  64539. "H"
  64540. ],
  64541. SK: [
  64542. "H"
  64543. ],
  64544. SL: [
  64545. "h",
  64546. "hb",
  64547. "H",
  64548. "hB"
  64549. ],
  64550. SM: [
  64551. "H",
  64552. "h",
  64553. "hB"
  64554. ],
  64555. SN: [
  64556. "H",
  64557. "h",
  64558. "hB"
  64559. ],
  64560. SO: [
  64561. "h",
  64562. "H"
  64563. ],
  64564. SR: [
  64565. "H",
  64566. "hB"
  64567. ],
  64568. SS: [
  64569. "h",
  64570. "hb",
  64571. "H",
  64572. "hB"
  64573. ],
  64574. ST: [
  64575. "H",
  64576. "hB"
  64577. ],
  64578. SV: [
  64579. "h",
  64580. "H",
  64581. "hB",
  64582. "hb"
  64583. ],
  64584. SX: [
  64585. "H",
  64586. "h",
  64587. "hb",
  64588. "hB"
  64589. ],
  64590. SY: [
  64591. "h",
  64592. "hB",
  64593. "hb",
  64594. "H"
  64595. ],
  64596. SZ: [
  64597. "h",
  64598. "hb",
  64599. "H",
  64600. "hB"
  64601. ],
  64602. TA: [
  64603. "H",
  64604. "h",
  64605. "hb",
  64606. "hB"
  64607. ],
  64608. TC: [
  64609. "h",
  64610. "hb",
  64611. "H",
  64612. "hB"
  64613. ],
  64614. TD: [
  64615. "h",
  64616. "H",
  64617. "hB"
  64618. ],
  64619. TF: [
  64620. "H",
  64621. "h",
  64622. "hB"
  64623. ],
  64624. TG: [
  64625. "H",
  64626. "hB"
  64627. ],
  64628. TH: [
  64629. "H",
  64630. "h"
  64631. ],
  64632. TJ: [
  64633. "H",
  64634. "h"
  64635. ],
  64636. TL: [
  64637. "H",
  64638. "hB",
  64639. "hb",
  64640. "h"
  64641. ],
  64642. TM: [
  64643. "H",
  64644. "h"
  64645. ],
  64646. TN: [
  64647. "h",
  64648. "hB",
  64649. "hb",
  64650. "H"
  64651. ],
  64652. TO: [
  64653. "h",
  64654. "H"
  64655. ],
  64656. TR: [
  64657. "H",
  64658. "hB"
  64659. ],
  64660. TT: [
  64661. "h",
  64662. "hb",
  64663. "H",
  64664. "hB"
  64665. ],
  64666. TW: [
  64667. "hB",
  64668. "hb",
  64669. "h",
  64670. "H"
  64671. ],
  64672. TZ: [
  64673. "hB",
  64674. "hb",
  64675. "H",
  64676. "h"
  64677. ],
  64678. UA: [
  64679. "H",
  64680. "hB",
  64681. "h"
  64682. ],
  64683. UG: [
  64684. "hB",
  64685. "hb",
  64686. "H",
  64687. "h"
  64688. ],
  64689. UM: [
  64690. "h",
  64691. "hb",
  64692. "H",
  64693. "hB"
  64694. ],
  64695. US: [
  64696. "h",
  64697. "hb",
  64698. "H",
  64699. "hB"
  64700. ],
  64701. UY: [
  64702. "h",
  64703. "H",
  64704. "hB",
  64705. "hb"
  64706. ],
  64707. UZ: [
  64708. "H",
  64709. "hB",
  64710. "h"
  64711. ],
  64712. VA: [
  64713. "H",
  64714. "h",
  64715. "hB"
  64716. ],
  64717. VC: [
  64718. "h",
  64719. "hb",
  64720. "H",
  64721. "hB"
  64722. ],
  64723. VE: [
  64724. "h",
  64725. "H",
  64726. "hB",
  64727. "hb"
  64728. ],
  64729. VG: [
  64730. "h",
  64731. "hb",
  64732. "H",
  64733. "hB"
  64734. ],
  64735. VI: [
  64736. "h",
  64737. "hb",
  64738. "H",
  64739. "hB"
  64740. ],
  64741. VN: [
  64742. "H",
  64743. "h"
  64744. ],
  64745. VU: [
  64746. "h",
  64747. "H"
  64748. ],
  64749. WF: [
  64750. "H",
  64751. "hB"
  64752. ],
  64753. WS: [
  64754. "h",
  64755. "H"
  64756. ],
  64757. XK: [
  64758. "H",
  64759. "hB",
  64760. "h"
  64761. ],
  64762. YE: [
  64763. "h",
  64764. "hB",
  64765. "hb",
  64766. "H"
  64767. ],
  64768. YT: [
  64769. "H",
  64770. "hB"
  64771. ],
  64772. ZA: [
  64773. "H",
  64774. "h",
  64775. "hb",
  64776. "hB"
  64777. ],
  64778. ZM: [
  64779. "h",
  64780. "hb",
  64781. "H",
  64782. "hB"
  64783. ],
  64784. ZW: [
  64785. "H",
  64786. "h"
  64787. ],
  64788. "af-ZA": [
  64789. "H",
  64790. "h",
  64791. "hB",
  64792. "hb"
  64793. ],
  64794. "ar-001": [
  64795. "h",
  64796. "hB",
  64797. "hb",
  64798. "H"
  64799. ],
  64800. "ca-ES": [
  64801. "H",
  64802. "h",
  64803. "hB"
  64804. ],
  64805. "en-001": [
  64806. "h",
  64807. "hb",
  64808. "H",
  64809. "hB"
  64810. ],
  64811. "en-HK": [
  64812. "h",
  64813. "hb",
  64814. "H",
  64815. "hB"
  64816. ],
  64817. "en-IL": [
  64818. "H",
  64819. "h",
  64820. "hb",
  64821. "hB"
  64822. ],
  64823. "en-MY": [
  64824. "h",
  64825. "hb",
  64826. "H",
  64827. "hB"
  64828. ],
  64829. "es-BR": [
  64830. "H",
  64831. "h",
  64832. "hB",
  64833. "hb"
  64834. ],
  64835. "es-ES": [
  64836. "H",
  64837. "h",
  64838. "hB",
  64839. "hb"
  64840. ],
  64841. "es-GQ": [
  64842. "H",
  64843. "h",
  64844. "hB",
  64845. "hb"
  64846. ],
  64847. "fr-CA": [
  64848. "H",
  64849. "h",
  64850. "hB"
  64851. ],
  64852. "gl-ES": [
  64853. "H",
  64854. "h",
  64855. "hB"
  64856. ],
  64857. "gu-IN": [
  64858. "hB",
  64859. "hb",
  64860. "h",
  64861. "H"
  64862. ],
  64863. "hi-IN": [
  64864. "hB",
  64865. "h",
  64866. "H"
  64867. ],
  64868. "it-CH": [
  64869. "H",
  64870. "h",
  64871. "hB"
  64872. ],
  64873. "it-IT": [
  64874. "H",
  64875. "h",
  64876. "hB"
  64877. ],
  64878. "kn-IN": [
  64879. "hB",
  64880. "h",
  64881. "H"
  64882. ],
  64883. "ml-IN": [
  64884. "hB",
  64885. "h",
  64886. "H"
  64887. ],
  64888. "mr-IN": [
  64889. "hB",
  64890. "hb",
  64891. "h",
  64892. "H"
  64893. ],
  64894. "pa-IN": [
  64895. "hB",
  64896. "hb",
  64897. "h",
  64898. "H"
  64899. ],
  64900. "ta-IN": [
  64901. "hB",
  64902. "h",
  64903. "hb",
  64904. "H"
  64905. ],
  64906. "te-IN": [
  64907. "hB",
  64908. "h",
  64909. "H"
  64910. ],
  64911. "zu-ZA": [
  64912. "H",
  64913. "hB",
  64914. "hb",
  64915. "h"
  64916. ]
  64917. };
  64918. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
  64919. function getBestPattern(skeleton, locale) {
  64920. for (var skeletonCopy = "", patternPos = 0; patternPos < skeleton.length; patternPos++) {
  64921. var patternChar = skeleton.charAt(patternPos);
  64922. if (patternChar === "j") {
  64923. for (var extraLength = 0; patternPos + 1 < skeleton.length && skeleton.charAt(patternPos + 1) === patternChar; )
  64924. extraLength++, patternPos++;
  64925. var hourLen = 1 + (extraLength & 1), dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1), dayPeriodChar = "a", hourChar = getDefaultHourSymbolFromLocale(locale);
  64926. for ((hourChar == "H" || hourChar == "k") && (dayPeriodLen = 0); dayPeriodLen-- > 0; )
  64927. skeletonCopy += dayPeriodChar;
  64928. for (; hourLen-- > 0; )
  64929. skeletonCopy = hourChar + skeletonCopy;
  64930. } else patternChar === "J" ? skeletonCopy += "H" : skeletonCopy += patternChar;
  64931. }
  64932. return skeletonCopy;
  64933. }
  64934. function getDefaultHourSymbolFromLocale(locale) {
  64935. var hourCycle = locale.hourCycle;
  64936. if (hourCycle === void 0 && // @ts-ignore hourCycle(s) is not identified yet
  64937. locale.hourCycles && // @ts-ignore
  64938. locale.hourCycles.length && (hourCycle = locale.hourCycles[0]), hourCycle)
  64939. switch (hourCycle) {
  64940. case "h24":
  64941. return "k";
  64942. case "h23":
  64943. return "H";
  64944. case "h12":
  64945. return "h";
  64946. case "h11":
  64947. return "K";
  64948. default:
  64949. throw new Error("Invalid hourCycle");
  64950. }
  64951. var languageTag = locale.language, regionTag;
  64952. languageTag !== "root" && (regionTag = locale.maximize().region);
  64953. var hourCycles = timeData[regionTag || ""] || timeData[languageTag || ""] || timeData["".concat(languageTag, "-001")] || timeData["001"];
  64954. return hourCycles[0];
  64955. }
  64956. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
  64957. var _a3, SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*")), SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
  64958. function createLocation2(start2, end2) {
  64959. return { start: start2, end: end2 };
  64960. }
  64961. var hasNativeStartsWith = !!String.prototype.startsWith && "_a".startsWith("a", 1), hasNativeFromCodePoint = !!String.fromCodePoint, hasNativeFromEntries = !!Object.fromEntries, hasNativeCodePointAt = !!String.prototype.codePointAt, hasTrimStart = !!String.prototype.trimStart, hasTrimEnd = !!String.prototype.trimEnd, hasNativeIsSafeInteger = !!Number.isSafeInteger, isSafeInteger = hasNativeIsSafeInteger ? Number.isSafeInteger : function(n) {
  64962. return typeof n == "number" && isFinite(n) && Math.floor(n) === n && Math.abs(n) <= 9007199254740991;
  64963. }, REGEX_SUPPORTS_U_AND_Y = !0;
  64964. try {
  64965. re = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu"), REGEX_SUPPORTS_U_AND_Y = ((_a3 = re.exec("a")) === null || _a3 === void 0 ? void 0 : _a3[0]) === "a";
  64966. } catch {
  64967. REGEX_SUPPORTS_U_AND_Y = !1;
  64968. }
  64969. var re, startsWith = hasNativeStartsWith ? (
  64970. // Native
  64971. function(s3, search, position2) {
  64972. return s3.startsWith(search, position2);
  64973. }
  64974. ) : (
  64975. // For IE11
  64976. function(s3, search, position2) {
  64977. return s3.slice(position2, position2 + search.length) === search;
  64978. }
  64979. ), fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
  64980. // IE11
  64981. function() {
  64982. for (var codePoints = [], _i = 0; _i < arguments.length; _i++)
  64983. codePoints[_i] = arguments[_i];
  64984. for (var elements = "", length2 = codePoints.length, i = 0, code; length2 > i; ) {
  64985. if (code = codePoints[i++], code > 1114111)
  64986. throw RangeError(code + " is not a valid code point");
  64987. elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
  64988. }
  64989. return elements;
  64990. }
  64991. ), fromEntries = (
  64992. // native
  64993. hasNativeFromEntries ? Object.fromEntries : (
  64994. // Ponyfill
  64995. function(entries) {
  64996. for (var obj = {}, _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
  64997. var _a4 = entries_1[_i], k = _a4[0], v = _a4[1];
  64998. obj[k] = v;
  64999. }
  65000. return obj;
  65001. }
  65002. )
  65003. ), codePointAt = hasNativeCodePointAt ? (
  65004. // Native
  65005. function(s3, index4) {
  65006. return s3.codePointAt(index4);
  65007. }
  65008. ) : (
  65009. // IE 11
  65010. function(s3, index4) {
  65011. var size = s3.length;
  65012. if (!(index4 < 0 || index4 >= size)) {
  65013. var first = s3.charCodeAt(index4), second;
  65014. return first < 55296 || first > 56319 || index4 + 1 === size || (second = s3.charCodeAt(index4 + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
  65015. }
  65016. }
  65017. ), trimStart = hasTrimStart ? (
  65018. // Native
  65019. function(s3) {
  65020. return s3.trimStart();
  65021. }
  65022. ) : (
  65023. // Ponyfill
  65024. function(s3) {
  65025. return s3.replace(SPACE_SEPARATOR_START_REGEX, "");
  65026. }
  65027. ), trimEnd = hasTrimEnd ? (
  65028. // Native
  65029. function(s3) {
  65030. return s3.trimEnd();
  65031. }
  65032. ) : (
  65033. // Ponyfill
  65034. function(s3) {
  65035. return s3.replace(SPACE_SEPARATOR_END_REGEX, "");
  65036. }
  65037. );
  65038. function RE(s3, flag3) {
  65039. return new RegExp(s3, flag3);
  65040. }
  65041. var matchIdentifierAtIndex;
  65042. REGEX_SUPPORTS_U_AND_Y ? (IDENTIFIER_PREFIX_RE_1 = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu"), matchIdentifierAtIndex = function(s3, index4) {
  65043. var _a4;
  65044. IDENTIFIER_PREFIX_RE_1.lastIndex = index4;
  65045. var match3 = IDENTIFIER_PREFIX_RE_1.exec(s3);
  65046. return (_a4 = match3[1]) !== null && _a4 !== void 0 ? _a4 : "";
  65047. }) : matchIdentifierAtIndex = function(s3, index4) {
  65048. for (var match3 = []; ; ) {
  65049. var c = codePointAt(s3, index4);
  65050. if (c === void 0 || _isWhiteSpace(c) || _isPatternSyntax(c))
  65051. break;
  65052. match3.push(c), index4 += c >= 65536 ? 2 : 1;
  65053. }
  65054. return fromCodePoint.apply(void 0, match3);
  65055. };
  65056. var IDENTIFIER_PREFIX_RE_1, Parser = (
  65057. /** @class */
  65058. (function() {
  65059. function Parser2(message, options) {
  65060. options === void 0 && (options = {}), this.message = message, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!options.ignoreTag, this.locale = options.locale, this.requiresOtherClause = !!options.requiresOtherClause, this.shouldParseSkeletons = !!options.shouldParseSkeletons;
  65061. }
  65062. return Parser2.prototype.parse = function() {
  65063. if (this.offset() !== 0)
  65064. throw Error("parser can only be used once");
  65065. return this.parseMessage(0, "", !1);
  65066. }, Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
  65067. for (var elements = []; !this.isEOF(); ) {
  65068. var char2 = this.char();
  65069. if (char2 === 123) {
  65070. var result = this.parseArgument(nestingLevel, expectingCloseTag);
  65071. if (result.err)
  65072. return result;
  65073. elements.push(result.val);
  65074. } else {
  65075. if (char2 === 125 && nestingLevel > 0)
  65076. break;
  65077. if (char2 === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
  65078. var position2 = this.clonePosition();
  65079. this.bump(), elements.push({
  65080. type: TYPE.pound,
  65081. location: createLocation2(position2, this.clonePosition())
  65082. });
  65083. } else if (char2 === 60 && !this.ignoreTag && this.peek() === 47) {
  65084. if (expectingCloseTag)
  65085. break;
  65086. return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation2(this.clonePosition(), this.clonePosition()));
  65087. } else if (char2 === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
  65088. var result = this.parseTag(nestingLevel, parentArgType);
  65089. if (result.err)
  65090. return result;
  65091. elements.push(result.val);
  65092. } else {
  65093. var result = this.parseLiteral(nestingLevel, parentArgType);
  65094. if (result.err)
  65095. return result;
  65096. elements.push(result.val);
  65097. }
  65098. }
  65099. }
  65100. return { val: elements, err: null };
  65101. }, Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
  65102. var startPosition = this.clonePosition();
  65103. this.bump();
  65104. var tagName = this.parseTagName();
  65105. if (this.bumpSpace(), this.bumpIf("/>"))
  65106. return {
  65107. val: {
  65108. type: TYPE.literal,
  65109. value: "<".concat(tagName, "/>"),
  65110. location: createLocation2(startPosition, this.clonePosition())
  65111. },
  65112. err: null
  65113. };
  65114. if (this.bumpIf(">")) {
  65115. var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, !0);
  65116. if (childrenResult.err)
  65117. return childrenResult;
  65118. var children = childrenResult.val, endTagStartPosition = this.clonePosition();
  65119. if (this.bumpIf("</")) {
  65120. if (this.isEOF() || !_isAlpha(this.char()))
  65121. return this.error(ErrorKind.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition()));
  65122. var closingTagNameStartPosition = this.clonePosition(), closingTagName = this.parseTagName();
  65123. return tagName !== closingTagName ? this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation2(closingTagNameStartPosition, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
  65124. val: {
  65125. type: TYPE.tag,
  65126. value: tagName,
  65127. children,
  65128. location: createLocation2(startPosition, this.clonePosition())
  65129. },
  65130. err: null
  65131. } : this.error(ErrorKind.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition())));
  65132. } else
  65133. return this.error(ErrorKind.UNCLOSED_TAG, createLocation2(startPosition, this.clonePosition()));
  65134. } else
  65135. return this.error(ErrorKind.INVALID_TAG, createLocation2(startPosition, this.clonePosition()));
  65136. }, Parser2.prototype.parseTagName = function() {
  65137. var startOffset = this.offset();
  65138. for (this.bump(); !this.isEOF() && _isPotentialElementNameChar(this.char()); )
  65139. this.bump();
  65140. return this.message.slice(startOffset, this.offset());
  65141. }, Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
  65142. for (var start2 = this.clonePosition(), value = ""; ; ) {
  65143. var parseQuoteResult = this.tryParseQuote(parentArgType);
  65144. if (parseQuoteResult) {
  65145. value += parseQuoteResult;
  65146. continue;
  65147. }
  65148. var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
  65149. if (parseUnquotedResult) {
  65150. value += parseUnquotedResult;
  65151. continue;
  65152. }
  65153. var parseLeftAngleResult = this.tryParseLeftAngleBracket();
  65154. if (parseLeftAngleResult) {
  65155. value += parseLeftAngleResult;
  65156. continue;
  65157. }
  65158. break;
  65159. }
  65160. var location4 = createLocation2(start2, this.clonePosition());
  65161. return {
  65162. val: { type: TYPE.literal, value, location: location4 },
  65163. err: null
  65164. };
  65165. }, Parser2.prototype.tryParseLeftAngleBracket = function() {
  65166. return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
  65167. !_isAlphaOrSlash(this.peek() || 0)) ? (this.bump(), "<") : null;
  65168. }, Parser2.prototype.tryParseQuote = function(parentArgType) {
  65169. if (this.isEOF() || this.char() !== 39)
  65170. return null;
  65171. switch (this.peek()) {
  65172. case 39:
  65173. return this.bump(), this.bump(), "'";
  65174. // '{', '<', '>', '}'
  65175. case 123:
  65176. case 60:
  65177. case 62:
  65178. case 125:
  65179. break;
  65180. case 35:
  65181. if (parentArgType === "plural" || parentArgType === "selectordinal")
  65182. break;
  65183. return null;
  65184. default:
  65185. return null;
  65186. }
  65187. this.bump();
  65188. var codePoints = [this.char()];
  65189. for (this.bump(); !this.isEOF(); ) {
  65190. var ch = this.char();
  65191. if (ch === 39)
  65192. if (this.peek() === 39)
  65193. codePoints.push(39), this.bump();
  65194. else {
  65195. this.bump();
  65196. break;
  65197. }
  65198. else
  65199. codePoints.push(ch);
  65200. this.bump();
  65201. }
  65202. return fromCodePoint.apply(void 0, codePoints);
  65203. }, Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
  65204. if (this.isEOF())
  65205. return null;
  65206. var ch = this.char();
  65207. return ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0 ? null : (this.bump(), fromCodePoint(ch));
  65208. }, Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
  65209. var openingBracePosition = this.clonePosition();
  65210. if (this.bump(), this.bumpSpace(), this.isEOF())
  65211. return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
  65212. if (this.char() === 125)
  65213. return this.bump(), this.error(ErrorKind.EMPTY_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
  65214. var value = this.parseIdentifierIfPossible().value;
  65215. if (!value)
  65216. return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
  65217. if (this.bumpSpace(), this.isEOF())
  65218. return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition()));
  65219. switch (this.char()) {
  65220. // Simple argument: `{name}`
  65221. case 125:
  65222. return this.bump(), {
  65223. val: {
  65224. type: TYPE.argument,
  65225. // value does not include the opening and closing braces.
  65226. value,
  65227. location: createLocation2(openingBracePosition, this.clonePosition())
  65228. },
  65229. err: null
  65230. };
  65231. // Argument with options: `{name, format, ...}`
  65232. case 44:
  65233. return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())) : this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
  65234. default:
  65235. return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition()));
  65236. }
  65237. }, Parser2.prototype.parseIdentifierIfPossible = function() {
  65238. var startingPosition = this.clonePosition(), startOffset = this.offset(), value = matchIdentifierAtIndex(this.message, startOffset), endOffset = startOffset + value.length;
  65239. this.bumpTo(endOffset);
  65240. var endPosition = this.clonePosition(), location4 = createLocation2(startingPosition, endPosition);
  65241. return { value, location: location4 };
  65242. }, Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
  65243. var _a4, typeStartPosition = this.clonePosition(), argType = this.parseIdentifierIfPossible().value, typeEndPosition = this.clonePosition();
  65244. switch (argType) {
  65245. case "":
  65246. return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition));
  65247. case "number":
  65248. case "date":
  65249. case "time": {
  65250. this.bumpSpace();
  65251. var styleAndLocation = null;
  65252. if (this.bumpIf(",")) {
  65253. this.bumpSpace();
  65254. var styleStartPosition = this.clonePosition(), result = this.parseSimpleArgStyleIfPossible();
  65255. if (result.err)
  65256. return result;
  65257. var style = trimEnd(result.val);
  65258. if (style.length === 0)
  65259. return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation2(this.clonePosition(), this.clonePosition()));
  65260. var styleLocation = createLocation2(styleStartPosition, this.clonePosition());
  65261. styleAndLocation = { style, styleLocation };
  65262. }
  65263. var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
  65264. if (argCloseResult.err)
  65265. return argCloseResult;
  65266. var location_1 = createLocation2(openingBracePosition, this.clonePosition());
  65267. if (styleAndLocation && startsWith(styleAndLocation?.style, "::", 0)) {
  65268. var skeleton = trimStart(styleAndLocation.style.slice(2));
  65269. if (argType === "number") {
  65270. var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
  65271. return result.err ? result : {
  65272. val: { type: TYPE.number, value, location: location_1, style: result.val },
  65273. err: null
  65274. };
  65275. } else {
  65276. if (skeleton.length === 0)
  65277. return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
  65278. var dateTimePattern = skeleton;
  65279. this.locale && (dateTimePattern = getBestPattern(skeleton, this.locale));
  65280. var style = {
  65281. type: SKELETON_TYPE.dateTime,
  65282. pattern: dateTimePattern,
  65283. location: styleAndLocation.styleLocation,
  65284. parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(dateTimePattern) : {}
  65285. }, type5 = argType === "date" ? TYPE.date : TYPE.time;
  65286. return {
  65287. val: { type: type5, value, location: location_1, style },
  65288. err: null
  65289. };
  65290. }
  65291. }
  65292. return {
  65293. val: {
  65294. type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
  65295. value,
  65296. location: location_1,
  65297. style: (_a4 = styleAndLocation?.style) !== null && _a4 !== void 0 ? _a4 : null
  65298. },
  65299. err: null
  65300. };
  65301. }
  65302. case "plural":
  65303. case "selectordinal":
  65304. case "select": {
  65305. var typeEndPosition_1 = this.clonePosition();
  65306. if (this.bumpSpace(), !this.bumpIf(","))
  65307. return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation2(typeEndPosition_1, __assign({}, typeEndPosition_1)));
  65308. this.bumpSpace();
  65309. var identifierAndLocation = this.parseIdentifierIfPossible(), pluralOffset = 0;
  65310. if (argType !== "select" && identifierAndLocation.value === "offset") {
  65311. if (!this.bumpIf(":"))
  65312. return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation2(this.clonePosition(), this.clonePosition()));
  65313. this.bumpSpace();
  65314. var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
  65315. if (result.err)
  65316. return result;
  65317. this.bumpSpace(), identifierAndLocation = this.parseIdentifierIfPossible(), pluralOffset = result.val;
  65318. }
  65319. var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
  65320. if (optionsResult.err)
  65321. return optionsResult;
  65322. var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
  65323. if (argCloseResult.err)
  65324. return argCloseResult;
  65325. var location_2 = createLocation2(openingBracePosition, this.clonePosition());
  65326. return argType === "select" ? {
  65327. val: {
  65328. type: TYPE.select,
  65329. value,
  65330. options: fromEntries(optionsResult.val),
  65331. location: location_2
  65332. },
  65333. err: null
  65334. } : {
  65335. val: {
  65336. type: TYPE.plural,
  65337. value,
  65338. options: fromEntries(optionsResult.val),
  65339. offset: pluralOffset,
  65340. pluralType: argType === "plural" ? "cardinal" : "ordinal",
  65341. location: location_2
  65342. },
  65343. err: null
  65344. };
  65345. }
  65346. default:
  65347. return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition));
  65348. }
  65349. }, Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
  65350. return this.isEOF() || this.char() !== 125 ? this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())) : (this.bump(), { val: !0, err: null });
  65351. }, Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
  65352. for (var nestedBraces = 0, startPosition = this.clonePosition(); !this.isEOF(); ) {
  65353. var ch = this.char();
  65354. switch (ch) {
  65355. case 39: {
  65356. this.bump();
  65357. var apostrophePosition = this.clonePosition();
  65358. if (!this.bumpUntil("'"))
  65359. return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation2(apostrophePosition, this.clonePosition()));
  65360. this.bump();
  65361. break;
  65362. }
  65363. case 123: {
  65364. nestedBraces += 1, this.bump();
  65365. break;
  65366. }
  65367. case 125: {
  65368. if (nestedBraces > 0)
  65369. nestedBraces -= 1;
  65370. else
  65371. return {
  65372. val: this.message.slice(startPosition.offset, this.offset()),
  65373. err: null
  65374. };
  65375. break;
  65376. }
  65377. default:
  65378. this.bump();
  65379. break;
  65380. }
  65381. }
  65382. return {
  65383. val: this.message.slice(startPosition.offset, this.offset()),
  65384. err: null
  65385. };
  65386. }, Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location4) {
  65387. var tokens2 = [];
  65388. try {
  65389. tokens2 = parseNumberSkeletonFromString(skeleton);
  65390. } catch {
  65391. return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location4);
  65392. }
  65393. return {
  65394. val: {
  65395. type: SKELETON_TYPE.number,
  65396. tokens: tokens2,
  65397. location: location4,
  65398. parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens2) : {}
  65399. },
  65400. err: null
  65401. };
  65402. }, Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
  65403. for (var _a4, hasOtherClause = !1, options = [], parsedSelectors = /* @__PURE__ */ new Set(), selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location; ; ) {
  65404. if (selector.length === 0) {
  65405. var startPosition = this.clonePosition();
  65406. if (parentArgType !== "select" && this.bumpIf("=")) {
  65407. var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
  65408. if (result.err)
  65409. return result;
  65410. selectorLocation = createLocation2(startPosition, this.clonePosition()), selector = this.message.slice(startPosition.offset, this.offset());
  65411. } else
  65412. break;
  65413. }
  65414. if (parsedSelectors.has(selector))
  65415. return this.error(parentArgType === "select" ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
  65416. selector === "other" && (hasOtherClause = !0), this.bumpSpace();
  65417. var openingBracePosition = this.clonePosition();
  65418. if (!this.bumpIf("{"))
  65419. return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation2(this.clonePosition(), this.clonePosition()));
  65420. var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
  65421. if (fragmentResult.err)
  65422. return fragmentResult;
  65423. var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
  65424. if (argCloseResult.err)
  65425. return argCloseResult;
  65426. options.push([
  65427. selector,
  65428. {
  65429. value: fragmentResult.val,
  65430. location: createLocation2(openingBracePosition, this.clonePosition())
  65431. }
  65432. ]), parsedSelectors.add(selector), this.bumpSpace(), _a4 = this.parseIdentifierIfPossible(), selector = _a4.value, selectorLocation = _a4.location;
  65433. }
  65434. return options.length === 0 ? this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation2(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !hasOtherClause ? this.error(ErrorKind.MISSING_OTHER_CLAUSE, createLocation2(this.clonePosition(), this.clonePosition())) : { val: options, err: null };
  65435. }, Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
  65436. var sign = 1, startingPosition = this.clonePosition();
  65437. this.bumpIf("+") || this.bumpIf("-") && (sign = -1);
  65438. for (var hasDigits = !1, decimal = 0; !this.isEOF(); ) {
  65439. var ch = this.char();
  65440. if (ch >= 48 && ch <= 57)
  65441. hasDigits = !0, decimal = decimal * 10 + (ch - 48), this.bump();
  65442. else
  65443. break;
  65444. }
  65445. var location4 = createLocation2(startingPosition, this.clonePosition());
  65446. return hasDigits ? (decimal *= sign, isSafeInteger(decimal) ? { val: decimal, err: null } : this.error(invalidNumberError, location4)) : this.error(expectNumberError, location4);
  65447. }, Parser2.prototype.offset = function() {
  65448. return this.position.offset;
  65449. }, Parser2.prototype.isEOF = function() {
  65450. return this.offset() === this.message.length;
  65451. }, Parser2.prototype.clonePosition = function() {
  65452. return {
  65453. offset: this.position.offset,
  65454. line: this.position.line,
  65455. column: this.position.column
  65456. };
  65457. }, Parser2.prototype.char = function() {
  65458. var offset3 = this.position.offset;
  65459. if (offset3 >= this.message.length)
  65460. throw Error("out of bound");
  65461. var code = codePointAt(this.message, offset3);
  65462. if (code === void 0)
  65463. throw Error("Offset ".concat(offset3, " is at invalid UTF-16 code unit boundary"));
  65464. return code;
  65465. }, Parser2.prototype.error = function(kind, location4) {
  65466. return {
  65467. val: null,
  65468. err: {
  65469. kind,
  65470. message: this.message,
  65471. location: location4
  65472. }
  65473. };
  65474. }, Parser2.prototype.bump = function() {
  65475. if (!this.isEOF()) {
  65476. var code = this.char();
  65477. code === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += code < 65536 ? 1 : 2);
  65478. }
  65479. }, Parser2.prototype.bumpIf = function(prefix4) {
  65480. if (startsWith(this.message, prefix4, this.offset())) {
  65481. for (var i = 0; i < prefix4.length; i++)
  65482. this.bump();
  65483. return !0;
  65484. }
  65485. return !1;
  65486. }, Parser2.prototype.bumpUntil = function(pattern) {
  65487. var currentOffset = this.offset(), index4 = this.message.indexOf(pattern, currentOffset);
  65488. return index4 >= 0 ? (this.bumpTo(index4), !0) : (this.bumpTo(this.message.length), !1);
  65489. }, Parser2.prototype.bumpTo = function(targetOffset) {
  65490. if (this.offset() > targetOffset)
  65491. throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
  65492. for (targetOffset = Math.min(targetOffset, this.message.length); ; ) {
  65493. var offset3 = this.offset();
  65494. if (offset3 === targetOffset)
  65495. break;
  65496. if (offset3 > targetOffset)
  65497. throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
  65498. if (this.bump(), this.isEOF())
  65499. break;
  65500. }
  65501. }, Parser2.prototype.bumpSpace = function() {
  65502. for (; !this.isEOF() && _isWhiteSpace(this.char()); )
  65503. this.bump();
  65504. }, Parser2.prototype.peek = function() {
  65505. if (this.isEOF())
  65506. return null;
  65507. var code = this.char(), offset3 = this.offset(), nextCode = this.message.charCodeAt(offset3 + (code >= 65536 ? 2 : 1));
  65508. return nextCode ?? null;
  65509. }, Parser2;
  65510. })()
  65511. );
  65512. function _isAlpha(codepoint) {
  65513. return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90;
  65514. }
  65515. function _isAlphaOrSlash(codepoint) {
  65516. return _isAlpha(codepoint) || codepoint === 47;
  65517. }
  65518. function _isPotentialElementNameChar(c) {
  65519. return c === 45 || c === 46 || c >= 48 && c <= 57 || c === 95 || c >= 97 && c <= 122 || c >= 65 && c <= 90 || c == 183 || c >= 192 && c <= 214 || c >= 216 && c <= 246 || c >= 248 && c <= 893 || c >= 895 && c <= 8191 || c >= 8204 && c <= 8205 || c >= 8255 && c <= 8256 || c >= 8304 && c <= 8591 || c >= 11264 && c <= 12271 || c >= 12289 && c <= 55295 || c >= 63744 && c <= 64975 || c >= 65008 && c <= 65533 || c >= 65536 && c <= 983039;
  65520. }
  65521. function _isWhiteSpace(c) {
  65522. return c >= 9 && c <= 13 || c === 32 || c === 133 || c >= 8206 && c <= 8207 || c === 8232 || c === 8233;
  65523. }
  65524. function _isPatternSyntax(c) {
  65525. return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
  65526. }
  65527. // ../../node_modules/@formatjs/icu-messageformat-parser/lib/index.js
  65528. function pruneLocation(els) {
  65529. els.forEach(function(el) {
  65530. if (delete el.location, isSelectElement(el) || isPluralElement(el))
  65531. for (var k in el.options)
  65532. delete el.options[k].location, pruneLocation(el.options[k].value);
  65533. else isNumberElement(el) && isNumberSkeleton(el.style) || (isDateElement(el) || isTimeElement(el)) && isDateTimeSkeleton(el.style) ? delete el.style.location : isTagElement(el) && pruneLocation(el.children);
  65534. });
  65535. }
  65536. function parse8(message, opts) {
  65537. opts === void 0 && (opts = {}), opts = __assign({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, opts);
  65538. var result = new Parser(message, opts).parse();
  65539. if (result.err) {
  65540. var error = SyntaxError(ErrorKind[result.err.kind]);
  65541. throw error.location = result.err.location, error.originalMessage = result.err.message, error;
  65542. }
  65543. return opts?.captureLocation || pruneLocation(result.val), result.val;
  65544. }
  65545. // ../../node_modules/intl-messageformat/lib/src/error.js
  65546. var ErrorCode;
  65547. (function(ErrorCode2) {
  65548. ErrorCode2.MISSING_VALUE = "MISSING_VALUE", ErrorCode2.INVALID_VALUE = "INVALID_VALUE", ErrorCode2.MISSING_INTL_API = "MISSING_INTL_API";
  65549. })(ErrorCode || (ErrorCode = {}));
  65550. var FormatError = (
  65551. /** @class */
  65552. (function(_super) {
  65553. __extends(FormatError2, _super);
  65554. function FormatError2(msg, code, originalMessage) {
  65555. var _this = _super.call(this, msg) || this;
  65556. return _this.code = code, _this.originalMessage = originalMessage, _this;
  65557. }
  65558. return FormatError2.prototype.toString = function() {
  65559. return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
  65560. }, FormatError2;
  65561. })(Error)
  65562. );
  65563. var InvalidValueError = (
  65564. /** @class */
  65565. (function(_super) {
  65566. __extends(InvalidValueError2, _super);
  65567. function InvalidValueError2(variableId, value, options, originalMessage) {
  65568. return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
  65569. }
  65570. return InvalidValueError2;
  65571. })(FormatError)
  65572. );
  65573. var InvalidValueTypeError = (
  65574. /** @class */
  65575. (function(_super) {
  65576. __extends(InvalidValueTypeError2, _super);
  65577. function InvalidValueTypeError2(value, type5, originalMessage) {
  65578. return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type5), ErrorCode.INVALID_VALUE, originalMessage) || this;
  65579. }
  65580. return InvalidValueTypeError2;
  65581. })(FormatError)
  65582. );
  65583. var MissingValueError = (
  65584. /** @class */
  65585. (function(_super) {
  65586. __extends(MissingValueError2, _super);
  65587. function MissingValueError2(variableId, originalMessage) {
  65588. return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
  65589. }
  65590. return MissingValueError2;
  65591. })(FormatError)
  65592. );
  65593. // ../../node_modules/intl-messageformat/lib/src/formatters.js
  65594. var PART_TYPE;
  65595. (function(PART_TYPE2) {
  65596. PART_TYPE2[PART_TYPE2.literal = 0] = "literal", PART_TYPE2[PART_TYPE2.object = 1] = "object";
  65597. })(PART_TYPE || (PART_TYPE = {}));
  65598. function mergeLiteral(parts) {
  65599. return parts.length < 2 ? parts : parts.reduce(function(all, part) {
  65600. var lastPart = all[all.length - 1];
  65601. return !lastPart || lastPart.type !== PART_TYPE.literal || part.type !== PART_TYPE.literal ? all.push(part) : lastPart.value += part.value, all;
  65602. }, []);
  65603. }
  65604. function isFormatXMLElementFn(el) {
  65605. return typeof el == "function";
  65606. }
  65607. function formatToParts(els, locales, formatters, formats, values, currentPluralValue, originalMessage) {
  65608. if (els.length === 1 && isLiteralElement(els[0]))
  65609. return [
  65610. {
  65611. type: PART_TYPE.literal,
  65612. value: els[0].value
  65613. }
  65614. ];
  65615. for (var result = [], _i = 0, els_1 = els; _i < els_1.length; _i++) {
  65616. var el = els_1[_i];
  65617. if (isLiteralElement(el)) {
  65618. result.push({
  65619. type: PART_TYPE.literal,
  65620. value: el.value
  65621. });
  65622. continue;
  65623. }
  65624. if (isPoundElement(el)) {
  65625. typeof currentPluralValue == "number" && result.push({
  65626. type: PART_TYPE.literal,
  65627. value: formatters.getNumberFormat(locales).format(currentPluralValue)
  65628. });
  65629. continue;
  65630. }
  65631. var varName = el.value;
  65632. if (!(values && varName in values))
  65633. throw new MissingValueError(varName, originalMessage);
  65634. var value = values[varName];
  65635. if (isArgumentElement(el)) {
  65636. (!value || typeof value == "string" || typeof value == "number") && (value = typeof value == "string" || typeof value == "number" ? String(value) : ""), result.push({
  65637. type: typeof value == "string" ? PART_TYPE.literal : PART_TYPE.object,
  65638. value
  65639. });
  65640. continue;
  65641. }
  65642. if (isDateElement(el)) {
  65643. var style = typeof el.style == "string" ? formats.date[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : void 0;
  65644. result.push({
  65645. type: PART_TYPE.literal,
  65646. value: formatters.getDateTimeFormat(locales, style).format(value)
  65647. });
  65648. continue;
  65649. }
  65650. if (isTimeElement(el)) {
  65651. var style = typeof el.style == "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : formats.time.medium;
  65652. result.push({
  65653. type: PART_TYPE.literal,
  65654. value: formatters.getDateTimeFormat(locales, style).format(value)
  65655. });
  65656. continue;
  65657. }
  65658. if (isNumberElement(el)) {
  65659. var style = typeof el.style == "string" ? formats.number[el.style] : isNumberSkeleton(el.style) ? el.style.parsedOptions : void 0;
  65660. style && style.scale && (value = value * (style.scale || 1)), result.push({
  65661. type: PART_TYPE.literal,
  65662. value: formatters.getNumberFormat(locales, style).format(value)
  65663. });
  65664. continue;
  65665. }
  65666. if (isTagElement(el)) {
  65667. var children = el.children, value_1 = el.value, formatFn = values[value_1];
  65668. if (!isFormatXMLElementFn(formatFn))
  65669. throw new InvalidValueTypeError(value_1, "function", originalMessage);
  65670. var parts = formatToParts(children, locales, formatters, formats, values, currentPluralValue), chunks = formatFn(parts.map(function(p3) {
  65671. return p3.value;
  65672. }));
  65673. Array.isArray(chunks) || (chunks = [chunks]), result.push.apply(result, chunks.map(function(c) {
  65674. return {
  65675. type: typeof c == "string" ? PART_TYPE.literal : PART_TYPE.object,
  65676. value: c
  65677. };
  65678. }));
  65679. }
  65680. if (isSelectElement(el)) {
  65681. var opt = el.options[value] || el.options.other;
  65682. if (!opt)
  65683. throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
  65684. result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values));
  65685. continue;
  65686. }
  65687. if (isPluralElement(el)) {
  65688. var opt = el.options["=".concat(value)];
  65689. if (!opt) {
  65690. if (!Intl.PluralRules)
  65691. throw new FormatError(`Intl.PluralRules is not available in this environment.
  65692. Try polyfilling it using "@formatjs/intl-pluralrules"
  65693. `, ErrorCode.MISSING_INTL_API, originalMessage);
  65694. var rule = formatters.getPluralRules(locales, { type: el.pluralType }).select(value - (el.offset || 0));
  65695. opt = el.options[rule] || el.options.other;
  65696. }
  65697. if (!opt)
  65698. throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
  65699. result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values, value - (el.offset || 0)));
  65700. continue;
  65701. }
  65702. }
  65703. return mergeLiteral(result);
  65704. }
  65705. // ../../node_modules/intl-messageformat/lib/src/core.js
  65706. function mergeConfig(c1, c2) {
  65707. return c2 ? __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all, k) {
  65708. return all[k] = __assign(__assign({}, c1[k]), c2[k] || {}), all;
  65709. }, {})) : c1;
  65710. }
  65711. function mergeConfigs(defaultConfig2, configs) {
  65712. return configs ? Object.keys(defaultConfig2).reduce(function(all, k) {
  65713. return all[k] = mergeConfig(defaultConfig2[k], configs[k]), all;
  65714. }, __assign({}, defaultConfig2)) : defaultConfig2;
  65715. }
  65716. function createFastMemoizeCache(store2) {
  65717. return {
  65718. create: function() {
  65719. return {
  65720. get: function(key) {
  65721. return store2[key];
  65722. },
  65723. set: function(key, value) {
  65724. store2[key] = value;
  65725. }
  65726. };
  65727. }
  65728. };
  65729. }
  65730. function createDefaultFormatters(cache) {
  65731. return cache === void 0 && (cache = {
  65732. number: {},
  65733. dateTime: {},
  65734. pluralRules: {}
  65735. }), {
  65736. getNumberFormat: memoize12(function() {
  65737. for (var _a4, args = [], _i = 0; _i < arguments.length; _i++)
  65738. args[_i] = arguments[_i];
  65739. return new ((_a4 = Intl.NumberFormat).bind.apply(_a4, __spreadArray([void 0], args, !1)))();
  65740. }, {
  65741. cache: createFastMemoizeCache(cache.number),
  65742. strategy: strategies.variadic
  65743. }),
  65744. getDateTimeFormat: memoize12(function() {
  65745. for (var _a4, args = [], _i = 0; _i < arguments.length; _i++)
  65746. args[_i] = arguments[_i];
  65747. return new ((_a4 = Intl.DateTimeFormat).bind.apply(_a4, __spreadArray([void 0], args, !1)))();
  65748. }, {
  65749. cache: createFastMemoizeCache(cache.dateTime),
  65750. strategy: strategies.variadic
  65751. }),
  65752. getPluralRules: memoize12(function() {
  65753. for (var _a4, args = [], _i = 0; _i < arguments.length; _i++)
  65754. args[_i] = arguments[_i];
  65755. return new ((_a4 = Intl.PluralRules).bind.apply(_a4, __spreadArray([void 0], args, !1)))();
  65756. }, {
  65757. cache: createFastMemoizeCache(cache.pluralRules),
  65758. strategy: strategies.variadic
  65759. })
  65760. };
  65761. }
  65762. var IntlMessageFormat = (
  65763. /** @class */
  65764. (function() {
  65765. function IntlMessageFormat2(message, locales, overrideFormats, opts) {
  65766. locales === void 0 && (locales = IntlMessageFormat2.defaultLocale);
  65767. var _this = this;
  65768. if (this.formatterCache = {
  65769. number: {},
  65770. dateTime: {},
  65771. pluralRules: {}
  65772. }, this.format = function(values) {
  65773. var parts = _this.formatToParts(values);
  65774. if (parts.length === 1)
  65775. return parts[0].value;
  65776. var result = parts.reduce(function(all, part) {
  65777. return !all.length || part.type !== PART_TYPE.literal || typeof all[all.length - 1] != "string" ? all.push(part.value) : all[all.length - 1] += part.value, all;
  65778. }, []);
  65779. return result.length <= 1 ? result[0] || "" : result;
  65780. }, this.formatToParts = function(values) {
  65781. return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
  65782. }, this.resolvedOptions = function() {
  65783. var _a5;
  65784. return {
  65785. locale: ((_a5 = _this.resolvedLocale) === null || _a5 === void 0 ? void 0 : _a5.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
  65786. };
  65787. }, this.getAst = function() {
  65788. return _this.ast;
  65789. }, this.locales = locales, this.resolvedLocale = IntlMessageFormat2.resolveLocale(locales), typeof message == "string") {
  65790. if (this.message = message, !IntlMessageFormat2.__parse)
  65791. throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
  65792. var _a4 = opts || {}, formatters = _a4.formatters, parseOpts = __rest(_a4, ["formatters"]);
  65793. this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
  65794. } else
  65795. this.ast = message;
  65796. if (!Array.isArray(this.ast))
  65797. throw new TypeError("A message must be provided as a String or AST.");
  65798. this.formats = mergeConfigs(IntlMessageFormat2.formats, overrideFormats), this.formatters = opts && opts.formatters || createDefaultFormatters(this.formatterCache);
  65799. }
  65800. return Object.defineProperty(IntlMessageFormat2, "defaultLocale", {
  65801. get: function() {
  65802. return IntlMessageFormat2.memoizedDefaultLocale || (IntlMessageFormat2.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), IntlMessageFormat2.memoizedDefaultLocale;
  65803. },
  65804. enumerable: !1,
  65805. configurable: !0
  65806. }), IntlMessageFormat2.memoizedDefaultLocale = null, IntlMessageFormat2.resolveLocale = function(locales) {
  65807. if (!(typeof Intl.Locale > "u")) {
  65808. var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales);
  65809. return supportedLocales.length > 0 ? new Intl.Locale(supportedLocales[0]) : new Intl.Locale(typeof locales == "string" ? locales : locales[0]);
  65810. }
  65811. }, IntlMessageFormat2.__parse = parse8, IntlMessageFormat2.formats = {
  65812. number: {
  65813. integer: {
  65814. maximumFractionDigits: 0
  65815. },
  65816. currency: {
  65817. style: "currency"
  65818. },
  65819. percent: {
  65820. style: "percent"
  65821. }
  65822. },
  65823. date: {
  65824. short: {
  65825. month: "numeric",
  65826. day: "numeric",
  65827. year: "2-digit"
  65828. },
  65829. medium: {
  65830. month: "short",
  65831. day: "numeric",
  65832. year: "numeric"
  65833. },
  65834. long: {
  65835. month: "long",
  65836. day: "numeric",
  65837. year: "numeric"
  65838. },
  65839. full: {
  65840. weekday: "long",
  65841. month: "long",
  65842. day: "numeric",
  65843. year: "numeric"
  65844. }
  65845. },
  65846. time: {
  65847. short: {
  65848. hour: "numeric",
  65849. minute: "numeric"
  65850. },
  65851. medium: {
  65852. hour: "numeric",
  65853. minute: "numeric",
  65854. second: "numeric"
  65855. },
  65856. long: {
  65857. hour: "numeric",
  65858. minute: "numeric",
  65859. second: "numeric",
  65860. timeZoneName: "short"
  65861. },
  65862. full: {
  65863. hour: "numeric",
  65864. minute: "numeric",
  65865. second: "numeric",
  65866. timeZoneName: "short"
  65867. }
  65868. }
  65869. }, IntlMessageFormat2;
  65870. })()
  65871. );
  65872. // ../../node_modules/@react-aria/i18n/dist/useMessageFormatter.mjs
  65873. var import_react67 = __toESM(require_react(), 1);
  65874. // ../../node_modules/@internationalized/string/dist/LocalizedStringDictionary.mjs
  65875. var $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale"), $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings"), $5b160d28a433310d$var$cachedGlobalStrings, $5b160d28a433310d$export$c17fa47878dc55b6 = class _$5b160d28a433310d$export$c17fa47878dc55b6 {
  65876. /** Returns a localized string for the given key and locale. */
  65877. getStringForLocale(key, locale) {
  65878. let string = this.getStringsForLocale(locale)[key];
  65879. if (!string) throw new Error(`Could not find intl message ${key} in ${locale} locale`);
  65880. return string;
  65881. }
  65882. /** Returns all localized strings for the given locale. */
  65883. getStringsForLocale(locale) {
  65884. let strings = this.strings[locale];
  65885. return strings || (strings = $5b160d28a433310d$var$getStringsForLocale(locale, this.strings, this.defaultLocale), this.strings[locale] = strings), strings;
  65886. }
  65887. static getGlobalDictionaryForPackage(packageName) {
  65888. if (typeof window > "u") return null;
  65889. let locale = window[$5b160d28a433310d$var$localeSymbol];
  65890. if ($5b160d28a433310d$var$cachedGlobalStrings === void 0) {
  65891. let globalStrings = window[$5b160d28a433310d$var$stringsSymbol];
  65892. if (!globalStrings) return null;
  65893. $5b160d28a433310d$var$cachedGlobalStrings = {};
  65894. for (let pkg in globalStrings) $5b160d28a433310d$var$cachedGlobalStrings[pkg] = new _$5b160d28a433310d$export$c17fa47878dc55b6({
  65895. [locale]: globalStrings[pkg]
  65896. }, locale);
  65897. }
  65898. let dictionary = $5b160d28a433310d$var$cachedGlobalStrings?.[packageName];
  65899. if (!dictionary) throw new Error(`Strings for package "${packageName}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
  65900. return dictionary;
  65901. }
  65902. constructor(messages, defaultLocale = "en-US") {
  65903. this.strings = Object.fromEntries(Object.entries(messages).filter(([, v]) => v)), this.defaultLocale = defaultLocale;
  65904. }
  65905. };
  65906. function $5b160d28a433310d$var$getStringsForLocale(locale, strings, defaultLocale = "en-US") {
  65907. if (strings[locale]) return strings[locale];
  65908. let language = $5b160d28a433310d$var$getLanguage(locale);
  65909. if (strings[language]) return strings[language];
  65910. for (let key in strings)
  65911. if (key.startsWith(language + "-")) return strings[key];
  65912. return strings[defaultLocale];
  65913. }
  65914. function $5b160d28a433310d$var$getLanguage(locale) {
  65915. return Intl.Locale ? new Intl.Locale(locale).language : locale.split("-")[0];
  65916. }
  65917. // ../../node_modules/@internationalized/string/dist/LocalizedStringFormatter.mjs
  65918. var $6db58dc88e78b024$var$pluralRulesCache = /* @__PURE__ */ new Map(), $6db58dc88e78b024$var$numberFormatCache = /* @__PURE__ */ new Map(), $6db58dc88e78b024$export$2f817fcdc4b89ae0 = class {
  65919. /** Formats a localized string for the given key with the provided variables. */
  65920. format(key, variables) {
  65921. let message = this.strings.getStringForLocale(key, this.locale);
  65922. return typeof message == "function" ? message(variables, this) : message;
  65923. }
  65924. plural(count, options, type5 = "cardinal") {
  65925. let opt = options["=" + count];
  65926. if (opt) return typeof opt == "function" ? opt() : opt;
  65927. let key = this.locale + ":" + type5, pluralRules = $6db58dc88e78b024$var$pluralRulesCache.get(key);
  65928. pluralRules || (pluralRules = new Intl.PluralRules(this.locale, {
  65929. type: type5
  65930. }), $6db58dc88e78b024$var$pluralRulesCache.set(key, pluralRules));
  65931. let selected = pluralRules.select(count);
  65932. return opt = options[selected] || options.other, typeof opt == "function" ? opt() : opt;
  65933. }
  65934. number(value) {
  65935. let numberFormat = $6db58dc88e78b024$var$numberFormatCache.get(this.locale);
  65936. return numberFormat || (numberFormat = new Intl.NumberFormat(this.locale), $6db58dc88e78b024$var$numberFormatCache.set(this.locale, numberFormat)), numberFormat.format(value);
  65937. }
  65938. select(options, value) {
  65939. let opt = options[value] || options.other;
  65940. return typeof opt == "function" ? opt() : opt;
  65941. }
  65942. constructor(locale, strings) {
  65943. this.locale = locale, this.strings = strings;
  65944. }
  65945. };
  65946. // ../../node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.mjs
  65947. var import_react68 = __toESM(require_react(), 1), $fca6afa0e843324b$var$cache = /* @__PURE__ */ new WeakMap();
  65948. function $fca6afa0e843324b$var$getCachedDictionary(strings) {
  65949. let dictionary = $fca6afa0e843324b$var$cache.get(strings);
  65950. return dictionary || (dictionary = new $5b160d28a433310d$export$c17fa47878dc55b6(strings), $fca6afa0e843324b$var$cache.set(strings, dictionary)), dictionary;
  65951. }
  65952. function $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName) {
  65953. return packageName && $5b160d28a433310d$export$c17fa47878dc55b6.getGlobalDictionaryForPackage(packageName) || $fca6afa0e843324b$var$getCachedDictionary(strings);
  65954. }
  65955. function $fca6afa0e843324b$export$f12b703ca79dfbb1(strings, packageName) {
  65956. let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), dictionary = $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName);
  65957. return (0, import_react68.useMemo)(() => new $6db58dc88e78b024$export$2f817fcdc4b89ae0(locale, dictionary), [
  65958. locale,
  65959. dictionary
  65960. ]);
  65961. }
  65962. // ../../node_modules/@react-aria/i18n/dist/useListFormatter.mjs
  65963. var import_react69 = __toESM(require_react(), 1);
  65964. // ../../node_modules/@internationalized/date/dist/string.mjs
  65965. var $fae977aafc393c5c$var$requiredDurationTimeGroups = [
  65966. "hours",
  65967. "minutes",
  65968. "seconds"
  65969. ], $fae977aafc393c5c$var$requiredDurationGroups = [
  65970. "years",
  65971. "months",
  65972. "weeks",
  65973. "days",
  65974. ...$fae977aafc393c5c$var$requiredDurationTimeGroups
  65975. ];
  65976. // ../../node_modules/@internationalized/date/dist/HebrewCalendar.mjs
  65977. var $7c5f6fbf42389787$var$HOUR_PARTS = 1080, $7c5f6fbf42389787$var$DAY_PARTS = 24 * $7c5f6fbf42389787$var$HOUR_PARTS, $7c5f6fbf42389787$var$MONTH_DAYS = 29, $7c5f6fbf42389787$var$MONTH_FRACT = 12 * $7c5f6fbf42389787$var$HOUR_PARTS + 793, $7c5f6fbf42389787$var$MONTH_PARTS = $7c5f6fbf42389787$var$MONTH_DAYS * $7c5f6fbf42389787$var$DAY_PARTS + $7c5f6fbf42389787$var$MONTH_FRACT;
  65978. // ../../node_modules/@react-aria/i18n/dist/useDateFormatter.mjs
  65979. var import_react70 = __toESM(require_react(), 1);
  65980. // ../../node_modules/@internationalized/number/dist/NumberFormatter.mjs
  65981. var $488c6ddbf4ef74c2$var$formatterCache = /* @__PURE__ */ new Map(), $488c6ddbf4ef74c2$var$supportsSignDisplay = !1;
  65982. try {
  65983. $488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", {
  65984. signDisplay: "exceptZero"
  65985. }).resolvedOptions().signDisplay === "exceptZero";
  65986. } catch {
  65987. }
  65988. var $488c6ddbf4ef74c2$var$supportsUnit = !1;
  65989. try {
  65990. $488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
  65991. style: "unit",
  65992. unit: "degree"
  65993. }).resolvedOptions().style === "unit";
  65994. } catch {
  65995. }
  65996. var $488c6ddbf4ef74c2$var$UNITS = {
  65997. degree: {
  65998. narrow: {
  65999. default: "\xB0",
  66000. "ja-JP": " \u5EA6",
  66001. "zh-TW": "\u5EA6",
  66002. "sl-SI": " \xB0"
  66003. }
  66004. }
  66005. }, $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
  66006. /** Formats a number value as a string, according to the locale and options provided to the constructor. */
  66007. format(value) {
  66008. let res = "";
  66009. if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null ? res = $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value) : res = this.numberFormatter.format(value), this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
  66010. var _UNITS_unit;
  66011. let { unit, unitDisplay = "short", locale } = this.resolvedOptions();
  66012. if (!unit) return res;
  66013. let values = (_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay];
  66014. res += values[locale] || values.default;
  66015. }
  66016. return res;
  66017. }
  66018. /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
  66019. formatToParts(value) {
  66020. return this.numberFormatter.formatToParts(value);
  66021. }
  66022. /** Formats a number range as a string. */
  66023. formatRange(start2, end2) {
  66024. if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(start2, end2);
  66025. if (end2 < start2) throw new RangeError("End date must be >= start date");
  66026. return `${this.format(start2)} \u2013 ${this.format(end2)}`;
  66027. }
  66028. /** Formats a number range as an array of parts. */
  66029. formatRangeToParts(start2, end2) {
  66030. if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(start2, end2);
  66031. if (end2 < start2) throw new RangeError("End date must be >= start date");
  66032. let startParts = this.numberFormatter.formatToParts(start2), endParts = this.numberFormatter.formatToParts(end2);
  66033. return [
  66034. ...startParts.map((p3) => ({
  66035. ...p3,
  66036. source: "startRange"
  66037. })),
  66038. {
  66039. type: "literal",
  66040. value: " \u2013 ",
  66041. source: "shared"
  66042. },
  66043. ...endParts.map((p3) => ({
  66044. ...p3,
  66045. source: "endRange"
  66046. }))
  66047. ];
  66048. }
  66049. /** Returns the resolved formatting options based on the values passed to the constructor. */
  66050. resolvedOptions() {
  66051. let options = this.numberFormatter.resolvedOptions();
  66052. return !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null && (options = {
  66053. ...options,
  66054. signDisplay: this.options.signDisplay
  66055. }), !$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit" && (options = {
  66056. ...options,
  66057. style: "unit",
  66058. unit: this.options.unit,
  66059. unitDisplay: this.options.unitDisplay
  66060. }), options;
  66061. }
  66062. constructor(locale, options = {}) {
  66063. this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options), this.options = options;
  66064. }
  66065. };
  66066. function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options = {}) {
  66067. let { numberingSystem } = options;
  66068. if (numberingSystem && locale.includes("-nu-") && (locale.includes("-u-") || (locale += "-u-"), locale += `-nu-${numberingSystem}`), options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
  66069. var _UNITS_unit;
  66070. let { unit, unitDisplay = "short" } = options;
  66071. if (!unit) throw new Error('unit option must be provided with style: "unit"');
  66072. if (!(!((_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0) && _UNITS_unit[unitDisplay])) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);
  66073. options = {
  66074. ...options,
  66075. style: "decimal"
  66076. };
  66077. }
  66078. let cacheKey = locale + (options ? Object.entries(options).sort((a3, b) => a3[0] < b[0] ? -1 : 1).join() : "");
  66079. if ($488c6ddbf4ef74c2$var$formatterCache.has(cacheKey)) return $488c6ddbf4ef74c2$var$formatterCache.get(cacheKey);
  66080. let numberFormatter = new Intl.NumberFormat(locale, options);
  66081. return $488c6ddbf4ef74c2$var$formatterCache.set(cacheKey, numberFormatter), numberFormatter;
  66082. }
  66083. function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {
  66084. if (signDisplay === "auto") return numberFormat.format(num);
  66085. if (signDisplay === "never") return numberFormat.format(Math.abs(num));
  66086. {
  66087. let needsPositiveSign = !1;
  66088. if (signDisplay === "always" ? needsPositiveSign = num > 0 || Object.is(num, 0) : signDisplay === "exceptZero" && (Object.is(num, -0) || Object.is(num, 0) ? num = Math.abs(num) : needsPositiveSign = num > 0), needsPositiveSign) {
  66089. let negative = numberFormat.format(-num), noSign = numberFormat.format(num), minus = negative.replace(noSign, "").replace(/\u200e|\u061C/, "");
  66090. return [
  66091. ...minus
  66092. ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), negative.replace(noSign, "!!!").replace(minus, "+").replace("!!!", noSign);
  66093. } else return numberFormat.format(num);
  66094. }
  66095. }
  66096. // ../../node_modules/@internationalized/number/dist/NumberParser.mjs
  66097. var $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
  66098. // ../../node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs
  66099. var import_react71 = __toESM(require_react(), 1);
  66100. function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
  66101. let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
  66102. return (0, import_react71.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, options), [
  66103. locale,
  66104. options
  66105. ]);
  66106. }
  66107. // ../../node_modules/@react-aria/i18n/dist/useCollator.mjs
  66108. var $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
  66109. function $325a3faab7a68acd$export$a16aca283550c30d(options) {
  66110. let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), cacheKey = locale + (options ? Object.entries(options).sort((a3, b) => a3[0] < b[0] ? -1 : 1).join() : "");
  66111. if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);
  66112. let formatter2 = new Intl.Collator(locale, options);
  66113. return $325a3faab7a68acd$var$cache.set(cacheKey, formatter2), formatter2;
  66114. }
  66115. // ../../node_modules/@react-aria/i18n/dist/useFilter.mjs
  66116. var import_react72 = __toESM(require_react(), 1);
  66117. // ../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs
  66118. var $2a41e45df1593e64$var$visualViewport = typeof document < "u" ? window.visualViewport : null;
  66119. function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
  66120. let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { arrowSize, targetRef, overlayRef, arrowRef, scrollRef = overlayRef, placement = "bottom", containerPadding = 12, shouldFlip = !0, boundaryElement = typeof document < "u" ? document.body : null, offset: offset3 = 0, crossOffset = 0, shouldUpdatePosition = !0, isOpen = !0, onClose, maxHeight, arrowBoundaryOffset = 0 } = props, [position2, setPosition] = (0, import_react73.useState)(null), deps = [
  66121. shouldUpdatePosition,
  66122. placement,
  66123. overlayRef.current,
  66124. targetRef.current,
  66125. arrowRef?.current,
  66126. scrollRef.current,
  66127. containerPadding,
  66128. shouldFlip,
  66129. boundaryElement,
  66130. offset3,
  66131. crossOffset,
  66132. isOpen,
  66133. direction,
  66134. maxHeight,
  66135. arrowBoundaryOffset,
  66136. arrowSize
  66137. ], lastScale = (0, import_react73.useRef)($2a41e45df1593e64$var$visualViewport?.scale);
  66138. (0, import_react73.useEffect)(() => {
  66139. isOpen && (lastScale.current = $2a41e45df1593e64$var$visualViewport?.scale);
  66140. }, [
  66141. isOpen
  66142. ]);
  66143. let updatePosition = (0, import_react73.useCallback)(() => {
  66144. if (shouldUpdatePosition === !1 || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement || $2a41e45df1593e64$var$visualViewport?.scale !== lastScale.current) return;
  66145. let anchor = null;
  66146. if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {
  66147. var _document_activeElement;
  66148. let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect(), scrollRect = scrollRef.current.getBoundingClientRect();
  66149. var _anchorRect_top;
  66150. if (anchor = {
  66151. type: "top",
  66152. offset: ((_anchorRect_top = anchorRect?.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top
  66153. }, anchor.offset > scrollRect.height / 2) {
  66154. anchor.type = "bottom";
  66155. var _anchorRect_bottom;
  66156. anchor.offset = ((_anchorRect_bottom = anchorRect?.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;
  66157. }
  66158. }
  66159. let overlay = overlayRef.current;
  66160. if (!maxHeight && overlayRef.current) {
  66161. var _window_visualViewport;
  66162. overlay.style.top = "0px", overlay.style.bottom = "";
  66163. var _window_visualViewport_height;
  66164. overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + "px";
  66165. }
  66166. let position3 = $edcf132a9284368a$export$b3ceb0cbf1056d98({
  66167. placement: $2a41e45df1593e64$var$translateRTL(placement, direction),
  66168. overlayNode: overlayRef.current,
  66169. targetNode: targetRef.current,
  66170. scrollNode: scrollRef.current || overlayRef.current,
  66171. padding: containerPadding,
  66172. shouldFlip,
  66173. boundaryElement,
  66174. offset: offset3,
  66175. crossOffset,
  66176. maxHeight,
  66177. arrowSize: arrowSize ?? (arrowRef?.current ? $edcf132a9284368a$export$4b834cebd9e5cebe(arrowRef.current, !0).width : 0),
  66178. arrowBoundaryOffset
  66179. });
  66180. if (position3.position) {
  66181. if (overlay.style.top = "", overlay.style.bottom = "", overlay.style.left = "", overlay.style.right = "", Object.keys(position3.position).forEach((key) => overlay.style[key] = position3.position[key] + "px"), overlay.style.maxHeight = position3.maxHeight != null ? position3.maxHeight + "px" : "", anchor && document.activeElement && scrollRef.current) {
  66182. let anchorRect = document.activeElement.getBoundingClientRect(), scrollRect = scrollRef.current.getBoundingClientRect(), newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];
  66183. scrollRef.current.scrollTop += newOffset - anchor.offset;
  66184. }
  66185. setPosition(position3);
  66186. }
  66187. }, deps);
  66188. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updatePosition, deps), $2a41e45df1593e64$var$useResize(updatePosition), $9daab02d461809db$export$683480f191c0e3ea({
  66189. ref: overlayRef,
  66190. onResize: updatePosition
  66191. }), $9daab02d461809db$export$683480f191c0e3ea({
  66192. ref: targetRef,
  66193. onResize: updatePosition
  66194. });
  66195. let isResizing = (0, import_react73.useRef)(!1);
  66196. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66197. let timeout, onResize = () => {
  66198. isResizing.current = !0, clearTimeout(timeout), timeout = setTimeout(() => {
  66199. isResizing.current = !1;
  66200. }, 500), updatePosition();
  66201. }, onScroll = () => {
  66202. isResizing.current && onResize();
  66203. };
  66204. return $2a41e45df1593e64$var$visualViewport?.addEventListener("resize", onResize), $2a41e45df1593e64$var$visualViewport?.addEventListener("scroll", onScroll), () => {
  66205. $2a41e45df1593e64$var$visualViewport?.removeEventListener("resize", onResize), $2a41e45df1593e64$var$visualViewport?.removeEventListener("scroll", onScroll);
  66206. };
  66207. }, [
  66208. updatePosition
  66209. ]);
  66210. let close = (0, import_react73.useCallback)(() => {
  66211. isResizing.current || onClose?.();
  66212. }, [
  66213. onClose,
  66214. isResizing
  66215. ]);
  66216. $dd149f63282afbbf$export$18fc8428861184da({
  66217. triggerRef: targetRef,
  66218. isOpen,
  66219. onClose: onClose && close
  66220. });
  66221. var _position_maxHeight, _position_placement, _position_triggerAnchorPoint;
  66222. return {
  66223. overlayProps: {
  66224. style: {
  66225. position: position2 ? "absolute" : "fixed",
  66226. top: position2 ? void 0 : 0,
  66227. left: position2 ? void 0 : 0,
  66228. zIndex: 1e5,
  66229. ...position2?.position,
  66230. maxHeight: (_position_maxHeight = position2?.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : "100vh"
  66231. }
  66232. },
  66233. placement: (_position_placement = position2?.placement) !== null && _position_placement !== void 0 ? _position_placement : null,
  66234. triggerAnchorPoint: (_position_triggerAnchorPoint = position2?.triggerAnchorPoint) !== null && _position_triggerAnchorPoint !== void 0 ? _position_triggerAnchorPoint : null,
  66235. arrowProps: {
  66236. "aria-hidden": "true",
  66237. role: "presentation",
  66238. style: {
  66239. left: position2?.arrowOffsetLeft,
  66240. top: position2?.arrowOffsetTop
  66241. }
  66242. },
  66243. updatePosition
  66244. };
  66245. }
  66246. function $2a41e45df1593e64$var$useResize(onResize) {
  66247. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (window.addEventListener("resize", onResize, !1), () => {
  66248. window.removeEventListener("resize", onResize, !1);
  66249. }), [
  66250. onResize
  66251. ]);
  66252. }
  66253. function $2a41e45df1593e64$var$translateRTL(position2, direction) {
  66254. return direction === "rtl" ? position2.replace("start", "right").replace("end", "left") : position2.replace("start", "left").replace("end", "right");
  66255. }
  66256. // ../../node_modules/@react-aria/focus/dist/FocusScope.mjs
  66257. var import_react74 = __toESM(require_react(), 1), $9bf71ea28793e738$var$FocusContext = import_react74.default.createContext(null), $9bf71ea28793e738$var$RESTORE_FOCUS_EVENT = "react-aria-focus-scope-restore", $9bf71ea28793e738$var$activeScope = null;
  66258. function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
  66259. let { children, contain, restoreFocus, autoFocus } = props, startRef = (0, import_react74.useRef)(null), endRef = (0, import_react74.useRef)(null), scopeRef = (0, import_react74.useRef)([]), { parentNode } = (0, import_react74.useContext)($9bf71ea28793e738$var$FocusContext) || {}, node2 = (0, import_react74.useMemo)(() => new $9bf71ea28793e738$var$TreeNode({
  66260. scopeRef
  66261. }), [
  66262. scopeRef
  66263. ]);
  66264. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66265. let parent = parentNode || $9bf71ea28793e738$export$d06fae2ee68b101e.root;
  66266. if ($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parent.scopeRef) && $9bf71ea28793e738$var$activeScope && !$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, parent.scopeRef)) {
  66267. let activeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
  66268. activeNode && (parent = activeNode);
  66269. }
  66270. parent.addChild(node2), $9bf71ea28793e738$export$d06fae2ee68b101e.addNode(node2);
  66271. }, [
  66272. node2,
  66273. parentNode
  66274. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66275. let node3 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66276. node3 && (node3.contain = !!contain);
  66277. }, [
  66278. contain
  66279. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66280. var _startRef_current;
  66281. let node3 = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling, nodes = [], stopPropagation = (e) => e.stopPropagation();
  66282. for (; node3 && node3 !== endRef.current; )
  66283. nodes.push(node3), node3.addEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation), node3 = node3.nextSibling;
  66284. return scopeRef.current = nodes, () => {
  66285. for (let node4 of nodes) node4.removeEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);
  66286. };
  66287. }, [
  66288. children
  66289. ]), $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restoreFocus, contain), $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain), $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain), $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus), (0, import_react74.useEffect)(() => {
  66290. let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)), scope2 = null;
  66291. if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
  66292. for (let node3 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) node3.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node3.scopeRef.current) && (scope2 = node3);
  66293. scope2 === $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef) && ($9bf71ea28793e738$var$activeScope = scope2.scopeRef);
  66294. }
  66295. }, [
  66296. scopeRef
  66297. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => {
  66298. var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode, _focusScopeTree_getTreeNode_parent_scopeRef;
  66299. let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === void 0 || (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === void 0 ? void 0 : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== void 0 ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
  66300. (scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope)) && ($9bf71ea28793e738$var$activeScope = parentScope), $9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);
  66301. }, [
  66302. scopeRef
  66303. ]);
  66304. let focusManager = (0, import_react74.useMemo)(() => $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef), []), value = (0, import_react74.useMemo)(() => ({
  66305. focusManager,
  66306. parentNode: node2
  66307. }), [
  66308. node2,
  66309. focusManager
  66310. ]);
  66311. return import_react74.default.createElement($9bf71ea28793e738$var$FocusContext.Provider, {
  66312. value
  66313. }, import_react74.default.createElement("span", {
  66314. "data-focus-scope-start": !0,
  66315. hidden: !0,
  66316. ref: startRef
  66317. }), children, import_react74.default.createElement("span", {
  66318. "data-focus-scope-end": !0,
  66319. hidden: !0,
  66320. ref: endRef
  66321. }));
  66322. }
  66323. function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
  66324. return {
  66325. focusNext(opts = {}) {
  66326. let scope2 = scopeRef.current, { from: from2, tabbable, wrap: wrap2, accept } = opts;
  66327. var _scope_;
  66328. let node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope2[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0)), sentinel = scope2[0].previousElementSibling, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66329. tabbable,
  66330. accept
  66331. }, scope2);
  66332. walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node2, scope2) ? node2 : sentinel;
  66333. let nextNode = walker.nextNode();
  66334. return !nextNode && wrap2 && (walker.currentNode = sentinel, nextNode = walker.nextNode()), nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66335. },
  66336. focusPrevious(opts = {}) {
  66337. let scope2 = scopeRef.current, { from: from2, tabbable, wrap: wrap2, accept } = opts;
  66338. var _scope_;
  66339. let node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope2[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0)), sentinel = scope2[scope2.length - 1].nextElementSibling, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66340. tabbable,
  66341. accept
  66342. }, scope2);
  66343. walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node2, scope2) ? node2 : sentinel;
  66344. let previousNode = walker.previousNode();
  66345. return !previousNode && wrap2 && (walker.currentNode = sentinel, previousNode = walker.previousNode()), previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode;
  66346. },
  66347. focusFirst(opts = {}) {
  66348. let scope2 = scopeRef.current, { tabbable, accept } = opts, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66349. tabbable,
  66350. accept
  66351. }, scope2);
  66352. walker.currentNode = scope2[0].previousElementSibling;
  66353. let nextNode = walker.nextNode();
  66354. return nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66355. },
  66356. focusLast(opts = {}) {
  66357. let scope2 = scopeRef.current, { tabbable, accept } = opts, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66358. tabbable,
  66359. accept
  66360. }, scope2);
  66361. walker.currentNode = scope2[scope2.length - 1].nextElementSibling;
  66362. let previousNode = walker.previousNode();
  66363. return previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode;
  66364. }
  66365. };
  66366. }
  66367. function $9bf71ea28793e738$var$getScopeRoot(scope2) {
  66368. return scope2[0].parentElement;
  66369. }
  66370. function $9bf71ea28793e738$var$shouldContainFocus(scopeRef) {
  66371. let scope2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
  66372. for (; scope2 && scope2.scopeRef !== scopeRef; ) {
  66373. if (scope2.contain) return !1;
  66374. scope2 = scope2.parent;
  66375. }
  66376. return !0;
  66377. }
  66378. function $9bf71ea28793e738$var$isTabbableRadio(element) {
  66379. if (element.checked) return !0;
  66380. let radios = [];
  66381. if (!element.form) radios = [
  66382. ...$431fbd86ca7dc216$export$b204af158042fbac(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)
  66383. ].filter((radio) => !radio.form);
  66384. else {
  66385. var _element_form_elements, _element_form;
  66386. let radioList = (_element_form = element.form) === null || _element_form === void 0 || (_element_form_elements = _element_form.elements) === null || _element_form_elements === void 0 ? void 0 : _element_form_elements.namedItem(element.name);
  66387. radios = [
  66388. ...radioList ?? []
  66389. ];
  66390. }
  66391. return radios ? !radios.some((radio) => radio.checked) : !1;
  66392. }
  66393. function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
  66394. let focusedNode = (0, import_react74.useRef)(void 0), raf = (0, import_react74.useRef)(void 0);
  66395. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66396. let scope2 = scopeRef.current;
  66397. if (!contain) {
  66398. raf.current && (cancelAnimationFrame(raf.current), raf.current = void 0);
  66399. return;
  66400. }
  66401. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0), onKeyDown = (e) => {
  66402. if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
  66403. let focusedElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scope3 = scopeRef.current;
  66404. if (!scope3 || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope3)) return;
  66405. let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope3), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66406. tabbable: !0
  66407. }, scope3);
  66408. if (!focusedElement) return;
  66409. walker.currentNode = focusedElement;
  66410. let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
  66411. nextElement || (walker.currentNode = e.shiftKey ? scope3[scope3.length - 1].nextElementSibling : scope3[0].previousElementSibling, nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode()), e.preventDefault(), nextElement && $9bf71ea28793e738$var$focusElement(nextElement, !0);
  66412. }, onFocus = (e) => {
  66413. (!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef.current) ? ($9bf71ea28793e738$var$activeScope = scopeRef, focusedNode.current = $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) : $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope($d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef) ? focusedNode.current ? focusedNode.current.focus() : $9bf71ea28793e738$var$activeScope && $9bf71ea28793e738$var$activeScope.current && $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current) : $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && (focusedNode.current = $d4ee10de306f2510$export$e58f029f0fbfdb29(e));
  66414. }, onBlur = (e) => {
  66415. raf.current && cancelAnimationFrame(raf.current), raf.current = requestAnimationFrame(() => {
  66416. let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9(), shouldSkipFocusRestore = (modality === "virtual" || modality === null) && $c87311424ea30a05$export$a11b0059900ceec8() && $c87311424ea30a05$export$6446a186d09e379e(), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  66417. if (!shouldSkipFocusRestore && activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef)) {
  66418. $9bf71ea28793e738$var$activeScope = scopeRef;
  66419. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
  66420. if (target && target.isConnected) {
  66421. var _focusedNode_current;
  66422. focusedNode.current = target, (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 || _focusedNode_current.focus();
  66423. } else $9bf71ea28793e738$var$activeScope.current && $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
  66424. }
  66425. });
  66426. };
  66427. return ownerDocument.addEventListener("keydown", onKeyDown, !1), ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), scope2?.forEach((element) => element.addEventListener("focusout", onBlur, !1)), () => {
  66428. ownerDocument.removeEventListener("keydown", onKeyDown, !1), ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1)), scope2?.forEach((element) => element.removeEventListener("focusout", onBlur, !1));
  66429. };
  66430. }, [
  66431. scopeRef,
  66432. contain
  66433. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => {
  66434. raf.current && cancelAnimationFrame(raf.current);
  66435. }, [
  66436. raf
  66437. ]);
  66438. }
  66439. function $9bf71ea28793e738$var$isElementInAnyScope(element) {
  66440. return $9bf71ea28793e738$var$isElementInChildScope(element);
  66441. }
  66442. function $9bf71ea28793e738$var$isElementInScope(element, scope2) {
  66443. return !element || !scope2 ? !1 : scope2.some((node2) => node2.contains(element));
  66444. }
  66445. function $9bf71ea28793e738$var$isElementInChildScope(element, scope2 = null) {
  66446. if (element instanceof Element && element.closest("[data-react-aria-top-layer]")) return !0;
  66447. for (let { scopeRef: s3 } of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope2)))
  66448. if (s3 && $9bf71ea28793e738$var$isElementInScope(element, s3.current)) return !0;
  66449. return !1;
  66450. }
  66451. function $9bf71ea28793e738$export$1258395f99bf9cbf(element) {
  66452. return $9bf71ea28793e738$var$isElementInChildScope(element, $9bf71ea28793e738$var$activeScope);
  66453. }
  66454. function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope2) {
  66455. var _focusScopeTree_getTreeNode;
  66456. let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope2)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;
  66457. for (; parent; ) {
  66458. if (parent.scopeRef === ancestor) return !0;
  66459. parent = parent.parent;
  66460. }
  66461. return !1;
  66462. }
  66463. function $9bf71ea28793e738$var$focusElement(element, scroll = !1) {
  66464. if (element != null && !scroll) try {
  66465. $3ad3f6e1647bc98d$export$80f3e147d781571c(element);
  66466. } catch {
  66467. }
  66468. else if (element != null) try {
  66469. element.focus();
  66470. } catch {
  66471. }
  66472. }
  66473. function $9bf71ea28793e738$var$getFirstInScope(scope2, tabbable = !0) {
  66474. let sentinel = scope2[0].previousElementSibling, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66475. tabbable
  66476. }, scope2);
  66477. walker.currentNode = sentinel;
  66478. let nextNode = walker.nextNode();
  66479. return tabbable && !nextNode && (scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
  66480. tabbable: !1
  66481. }, scope2), walker.currentNode = sentinel, nextNode = walker.nextNode()), nextNode;
  66482. }
  66483. function $9bf71ea28793e738$var$focusFirstInScope(scope2, tabbable = !0) {
  66484. $9bf71ea28793e738$var$focusElement($9bf71ea28793e738$var$getFirstInScope(scope2, tabbable));
  66485. }
  66486. function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
  66487. let autoFocusRef = import_react74.default.useRef(autoFocus);
  66488. (0, import_react74.useEffect)(() => {
  66489. if (autoFocusRef.current) {
  66490. $9bf71ea28793e738$var$activeScope = scopeRef;
  66491. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
  66492. !$9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), $9bf71ea28793e738$var$activeScope.current) && scopeRef.current && $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
  66493. }
  66494. autoFocusRef.current = !1;
  66495. }, [
  66496. scopeRef
  66497. ]);
  66498. }
  66499. function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain) {
  66500. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66501. if (restore || contain) return;
  66502. let scope2 = scopeRef.current, ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0), onFocus = (e) => {
  66503. let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
  66504. $9bf71ea28793e738$var$isElementInScope(target, scopeRef.current) ? $9bf71ea28793e738$var$activeScope = scopeRef : $9bf71ea28793e738$var$isElementInAnyScope(target) || ($9bf71ea28793e738$var$activeScope = null);
  66505. };
  66506. return ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), () => {
  66507. ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1));
  66508. };
  66509. }, [
  66510. scopeRef,
  66511. restore,
  66512. contain
  66513. ]);
  66514. }
  66515. function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
  66516. let scope2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
  66517. for (; scope2 && scope2.scopeRef !== scopeRef; ) {
  66518. if (scope2.nodeToRestore) return !1;
  66519. scope2 = scope2.parent;
  66520. }
  66521. return scope2?.scopeRef === scopeRef;
  66522. }
  66523. function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
  66524. let nodeToRestoreRef = (0, import_react74.useRef)(typeof document < "u" ? $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)) : null);
  66525. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66526. let scope2 = scopeRef.current, ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0);
  66527. if (!restoreFocus || contain) return;
  66528. let onFocus = () => {
  66529. (!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scopeRef.current) && ($9bf71ea28793e738$var$activeScope = scopeRef);
  66530. };
  66531. return ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), () => {
  66532. ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1));
  66533. };
  66534. }, [
  66535. scopeRef,
  66536. contain
  66537. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66538. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
  66539. if (!restoreFocus) return;
  66540. let onKeyDown = (e) => {
  66541. if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
  66542. let focusedElement = ownerDocument.activeElement;
  66543. if (!$9bf71ea28793e738$var$isElementInChildScope(focusedElement, scopeRef) || !$9bf71ea28793e738$var$shouldRestoreFocus(scopeRef)) return;
  66544. let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66545. if (!treeNode) return;
  66546. let nodeToRestore = treeNode.nodeToRestore, walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ownerDocument.body, {
  66547. tabbable: !0
  66548. });
  66549. walker.currentNode = focusedElement;
  66550. let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
  66551. if ((!nodeToRestore || !nodeToRestore.isConnected || nodeToRestore === ownerDocument.body) && (nodeToRestore = void 0, treeNode.nodeToRestore = void 0), (!nextElement || !$9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef)) && nodeToRestore) {
  66552. walker.currentNode = nodeToRestore;
  66553. do
  66554. nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
  66555. while ($9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef));
  66556. e.preventDefault(), e.stopPropagation(), nextElement ? $9bf71ea28793e738$var$focusElement(nextElement, !0) : $9bf71ea28793e738$var$isElementInAnyScope(nodeToRestore) ? $9bf71ea28793e738$var$focusElement(nodeToRestore, !0) : focusedElement.blur();
  66557. }
  66558. };
  66559. return contain || ownerDocument.addEventListener("keydown", onKeyDown, !0), () => {
  66560. contain || ownerDocument.removeEventListener("keydown", onKeyDown, !0);
  66561. };
  66562. }, [
  66563. scopeRef,
  66564. restoreFocus,
  66565. contain
  66566. ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66567. let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
  66568. if (!restoreFocus) return;
  66569. let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66570. if (treeNode) {
  66571. var _nodeToRestoreRef_current;
  66572. return treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : void 0, () => {
  66573. let treeNode2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
  66574. if (!treeNode2) return;
  66575. let nodeToRestore = treeNode2.nodeToRestore, activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
  66576. if (restoreFocus && nodeToRestore && (activeElement && $9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef) || activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {
  66577. let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();
  66578. requestAnimationFrame(() => {
  66579. if (ownerDocument.activeElement === ownerDocument.body) {
  66580. let treeNode3 = clonedTree.getTreeNode(scopeRef);
  66581. for (; treeNode3; ) {
  66582. if (treeNode3.nodeToRestore && treeNode3.nodeToRestore.isConnected) {
  66583. $9bf71ea28793e738$var$restoreFocusToElement(treeNode3.nodeToRestore);
  66584. return;
  66585. }
  66586. treeNode3 = treeNode3.parent;
  66587. }
  66588. for (treeNode3 = clonedTree.getTreeNode(scopeRef); treeNode3; ) {
  66589. if (treeNode3.scopeRef && treeNode3.scopeRef.current && $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(treeNode3.scopeRef)) {
  66590. let node2 = $9bf71ea28793e738$var$getFirstInScope(treeNode3.scopeRef.current, !0);
  66591. $9bf71ea28793e738$var$restoreFocusToElement(node2);
  66592. return;
  66593. }
  66594. treeNode3 = treeNode3.parent;
  66595. }
  66596. }
  66597. });
  66598. }
  66599. };
  66600. }
  66601. }, [
  66602. scopeRef,
  66603. restoreFocus
  66604. ]);
  66605. }
  66606. function $9bf71ea28793e738$var$restoreFocusToElement(node2) {
  66607. node2.dispatchEvent(new CustomEvent($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, {
  66608. bubbles: !0,
  66609. cancelable: !0
  66610. })) && $9bf71ea28793e738$var$focusElement(node2);
  66611. }
  66612. function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, opts, scope2) {
  66613. let filter = opts?.tabbable ? $b4b717babfbb907b$export$bebd5a1431fec25d : $b4b717babfbb907b$export$4c063cf1350e6fed, rootElement = root2?.nodeType === Node.ELEMENT_NODE ? root2 : null, doc = $431fbd86ca7dc216$export$b204af158042fbac(rootElement), walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root2 || doc, NodeFilter.SHOW_ELEMENT, {
  66614. acceptNode(node2) {
  66615. var _opts_from;
  66616. return !(opts == null || (_opts_from = opts.from) === null || _opts_from === void 0) && _opts_from.contains(node2) || opts?.tabbable && node2.tagName === "INPUT" && node2.getAttribute("type") === "radio" && (!$9bf71ea28793e738$var$isTabbableRadio(node2) || walker.currentNode.tagName === "INPUT" && walker.currentNode.type === "radio" && walker.currentNode.name === node2.name) ? NodeFilter.FILTER_REJECT : filter(node2) && (!scope2 || $9bf71ea28793e738$var$isElementInScope(node2, scope2)) && (!opts?.accept || opts.accept(node2)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
  66617. }
  66618. });
  66619. return opts?.from && (walker.currentNode = opts.from), walker;
  66620. }
  66621. function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions2 = {}) {
  66622. return {
  66623. focusNext(opts = {}) {
  66624. let root2 = ref.current;
  66625. if (!root2) return null;
  66626. let { from: from2, tabbable = defaultOptions2.tabbable, wrap: wrap2 = defaultOptions2.wrap, accept = defaultOptions2.accept } = opts, node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(root2)), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66627. tabbable,
  66628. accept
  66629. });
  66630. root2.contains(node2) && (walker.currentNode = node2);
  66631. let nextNode = walker.nextNode();
  66632. return !nextNode && wrap2 && (walker.currentNode = root2, nextNode = walker.nextNode()), nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66633. },
  66634. focusPrevious(opts = defaultOptions2) {
  66635. let root2 = ref.current;
  66636. if (!root2) return null;
  66637. let { from: from2, tabbable = defaultOptions2.tabbable, wrap: wrap2 = defaultOptions2.wrap, accept = defaultOptions2.accept } = opts, node2 = from2 || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(root2)), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66638. tabbable,
  66639. accept
  66640. });
  66641. if (root2.contains(node2)) walker.currentNode = node2;
  66642. else {
  66643. let next2 = $9bf71ea28793e738$var$last(walker);
  66644. return next2 && $9bf71ea28793e738$var$focusElement(next2, !0), next2 ?? null;
  66645. }
  66646. let previousNode = walker.previousNode();
  66647. if (!previousNode && wrap2) {
  66648. walker.currentNode = root2;
  66649. let lastNode = $9bf71ea28793e738$var$last(walker);
  66650. if (!lastNode)
  66651. return null;
  66652. previousNode = lastNode;
  66653. }
  66654. return previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode ?? null;
  66655. },
  66656. focusFirst(opts = defaultOptions2) {
  66657. let root2 = ref.current;
  66658. if (!root2) return null;
  66659. let { tabbable = defaultOptions2.tabbable, accept = defaultOptions2.accept } = opts, nextNode = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66660. tabbable,
  66661. accept
  66662. }).nextNode();
  66663. return nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode;
  66664. },
  66665. focusLast(opts = defaultOptions2) {
  66666. let root2 = ref.current;
  66667. if (!root2) return null;
  66668. let { tabbable = defaultOptions2.tabbable, accept = defaultOptions2.accept } = opts, walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, {
  66669. tabbable,
  66670. accept
  66671. }), next2 = $9bf71ea28793e738$var$last(walker);
  66672. return next2 && $9bf71ea28793e738$var$focusElement(next2, !0), next2 ?? null;
  66673. }
  66674. };
  66675. }
  66676. function $9bf71ea28793e738$var$last(walker) {
  66677. let next2, last2;
  66678. do
  66679. last2 = walker.lastChild(), last2 && (next2 = last2);
  66680. while (last2);
  66681. return next2;
  66682. }
  66683. var $9bf71ea28793e738$var$Tree = class _$9bf71ea28793e738$var$Tree {
  66684. get size() {
  66685. return this.fastMap.size;
  66686. }
  66687. getTreeNode(data) {
  66688. return this.fastMap.get(data);
  66689. }
  66690. addTreeNode(scopeRef, parent, nodeToRestore) {
  66691. let parentNode = this.fastMap.get(parent ?? null);
  66692. if (!parentNode) return;
  66693. let node2 = new $9bf71ea28793e738$var$TreeNode({
  66694. scopeRef
  66695. });
  66696. parentNode.addChild(node2), node2.parent = parentNode, this.fastMap.set(scopeRef, node2), nodeToRestore && (node2.nodeToRestore = nodeToRestore);
  66697. }
  66698. addNode(node2) {
  66699. this.fastMap.set(node2.scopeRef, node2);
  66700. }
  66701. removeTreeNode(scopeRef) {
  66702. if (scopeRef === null) return;
  66703. let node2 = this.fastMap.get(scopeRef);
  66704. if (!node2) return;
  66705. let parentNode = node2.parent;
  66706. for (let current of this.traverse()) current !== node2 && node2.nodeToRestore && current.nodeToRestore && node2.scopeRef && node2.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node2.scopeRef.current) && (current.nodeToRestore = node2.nodeToRestore);
  66707. let children = node2.children;
  66708. parentNode && (parentNode.removeChild(node2), children.size > 0 && children.forEach((child) => parentNode && parentNode.addChild(child))), this.fastMap.delete(node2.scopeRef);
  66709. }
  66710. // Pre Order Depth First
  66711. *traverse(node2 = this.root) {
  66712. if (node2.scopeRef != null && (yield node2), node2.children.size > 0) for (let child of node2.children) yield* this.traverse(child);
  66713. }
  66714. clone() {
  66715. var _node_parent;
  66716. let newTree = new _$9bf71ea28793e738$var$Tree();
  66717. var _node_parent_scopeRef;
  66718. for (let node2 of this.traverse()) newTree.addTreeNode(node2.scopeRef, (_node_parent_scopeRef = (_node_parent = node2.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node2.nodeToRestore);
  66719. return newTree;
  66720. }
  66721. constructor() {
  66722. this.fastMap = /* @__PURE__ */ new Map(), this.root = new $9bf71ea28793e738$var$TreeNode({
  66723. scopeRef: null
  66724. }), this.fastMap.set(null, this.root);
  66725. }
  66726. }, $9bf71ea28793e738$var$TreeNode = class {
  66727. addChild(node2) {
  66728. this.children.add(node2), node2.parent = this;
  66729. }
  66730. removeChild(node2) {
  66731. this.children.delete(node2), node2.parent = void 0;
  66732. }
  66733. constructor(props) {
  66734. this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = props.scopeRef;
  66735. }
  66736. }, $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree();
  66737. // ../../node_modules/@react-aria/focus/dist/useFocusRing.mjs
  66738. var import_react75 = __toESM(require_react(), 1);
  66739. function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
  66740. let { autoFocus = !1, isTextInput, within: within3 } = props, state3 = (0, import_react75.useRef)({
  66741. isFocused: !1,
  66742. isFocusVisible: autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27()
  66743. }), [isFocused, setFocused] = (0, import_react75.useState)(!1), [isFocusVisibleState, setFocusVisible] = (0, import_react75.useState)(() => state3.current.isFocused && state3.current.isFocusVisible), updateState2 = (0, import_react75.useCallback)(() => setFocusVisible(state3.current.isFocused && state3.current.isFocusVisible), []), onFocusChange = (0, import_react75.useCallback)((isFocused2) => {
  66744. state3.current.isFocused = isFocused2, setFocused(isFocused2), updateState2();
  66745. }, [
  66746. updateState2
  66747. ]);
  66748. $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => {
  66749. state3.current.isFocusVisible = isFocusVisible, updateState2();
  66750. }, [], {
  66751. isTextInput
  66752. });
  66753. let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
  66754. isDisabled: within3,
  66755. onFocusChange
  66756. }), { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
  66757. isDisabled: !within3,
  66758. onFocusWithinChange: onFocusChange
  66759. });
  66760. return {
  66761. isFocused,
  66762. isFocusVisible: isFocusVisibleState,
  66763. focusProps: within3 ? focusWithinProps : focusProps
  66764. };
  66765. }
  66766. // ../../node_modules/@react-aria/focus/dist/FocusRing.mjs
  66767. var import_react76 = __toESM(require_react(), 1);
  66768. // ../../node_modules/@react-aria/focus/dist/useHasTabbableChild.mjs
  66769. var import_react77 = __toESM(require_react(), 1);
  66770. function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
  66771. let isDisabled3 = options?.isDisabled, [hasTabbableChild, setHasTabbableChild] = (0, import_react77.useState)(!1);
  66772. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66773. if (ref?.current && !isDisabled3) {
  66774. let update2 = () => {
  66775. if (ref.current) {
  66776. let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, {
  66777. tabbable: !0
  66778. });
  66779. setHasTabbableChild(!!walker.nextNode());
  66780. }
  66781. };
  66782. update2();
  66783. let observer = new MutationObserver(update2);
  66784. return observer.observe(ref.current, {
  66785. subtree: !0,
  66786. childList: !0,
  66787. attributes: !0,
  66788. attributeFilter: [
  66789. "tabIndex",
  66790. "disabled"
  66791. ]
  66792. }), () => {
  66793. observer.disconnect();
  66794. };
  66795. }
  66796. }), isDisabled3 ? !1 : hasTabbableChild;
  66797. }
  66798. // ../../node_modules/@react-aria/focus/dist/virtualFocus.mjs
  66799. function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
  66800. let from2 = $55f9b1ae81f22853$export$759df0d867455a91($431fbd86ca7dc216$export$b204af158042fbac(to));
  66801. from2 !== to && (from2 && $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from2, to), to && $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from2));
  66802. }
  66803. function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from2, to) {
  66804. from2.dispatchEvent(new FocusEvent("blur", {
  66805. relatedTarget: to
  66806. })), from2.dispatchEvent(new FocusEvent("focusout", {
  66807. bubbles: !0,
  66808. relatedTarget: to
  66809. }));
  66810. }
  66811. function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from2) {
  66812. to.dispatchEvent(new FocusEvent("focus", {
  66813. relatedTarget: from2
  66814. })), to.dispatchEvent(new FocusEvent("focusin", {
  66815. bubbles: !0,
  66816. relatedTarget: from2
  66817. }));
  66818. }
  66819. function $55f9b1ae81f22853$export$759df0d867455a91(document13) {
  66820. let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(document13), activeDescendant = activeElement?.getAttribute("aria-activedescendant");
  66821. return activeDescendant && document13.getElementById(activeDescendant) || activeElement;
  66822. }
  66823. // ../../node_modules/@react-aria/overlays/dist/useOverlay.mjs
  66824. var import_react78 = __toESM(require_react(), 1);
  66825. var $a11501f3d1d39e6c$var$visibleOverlays = [];
  66826. function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
  66827. let { onClose, shouldCloseOnBlur, isOpen, isDismissable = !1, isKeyboardDismissDisabled = !1, shouldCloseOnInteractOutside } = props;
  66828. (0, import_react78.useEffect)(() => {
  66829. if (isOpen && !$a11501f3d1d39e6c$var$visibleOverlays.includes(ref))
  66830. return $a11501f3d1d39e6c$var$visibleOverlays.push(ref), () => {
  66831. let index4 = $a11501f3d1d39e6c$var$visibleOverlays.indexOf(ref);
  66832. index4 >= 0 && $a11501f3d1d39e6c$var$visibleOverlays.splice(index4, 1);
  66833. };
  66834. }, [
  66835. isOpen,
  66836. ref
  66837. ]);
  66838. let onHide = () => {
  66839. $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose && onClose();
  66840. }, onInteractOutsideStart = (e) => {
  66841. (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) && $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && (e.stopPropagation(), e.preventDefault());
  66842. }, onInteractOutside = (e) => {
  66843. (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) && ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && (e.stopPropagation(), e.preventDefault()), onHide());
  66844. }, onKeyDown = (e) => {
  66845. e.key === "Escape" && !isKeyboardDismissDisabled && !e.nativeEvent.isComposing && (e.stopPropagation(), e.preventDefault(), onHide());
  66846. };
  66847. $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
  66848. ref,
  66849. onInteractOutside: isDismissable && isOpen ? onInteractOutside : void 0,
  66850. onInteractOutsideStart
  66851. });
  66852. let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
  66853. isDisabled: !shouldCloseOnBlur,
  66854. onBlurWithin: (e) => {
  66855. !e.relatedTarget || $9bf71ea28793e738$export$1258395f99bf9cbf(e.relatedTarget) || (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) && onClose?.();
  66856. }
  66857. }), onPointerDownUnderlay = (e) => {
  66858. e.target === e.currentTarget && e.preventDefault();
  66859. };
  66860. return {
  66861. overlayProps: {
  66862. onKeyDown,
  66863. ...focusWithinProps
  66864. },
  66865. underlayProps: {
  66866. onPointerDown: onPointerDownUnderlay
  66867. }
  66868. };
  66869. }
  66870. // ../../node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs
  66871. var import_react79 = __toESM(require_react(), 1);
  66872. function $628037886ba31236$export$f9d5c8beee7d008d(props, state3, ref) {
  66873. let { type: type5 } = props, { isOpen } = state3;
  66874. (0, import_react79.useEffect)(() => {
  66875. ref && ref.current && $dd149f63282afbbf$export$f6211563215e3b37.set(ref.current, state3.close);
  66876. });
  66877. let ariaHasPopup;
  66878. type5 === "menu" ? ariaHasPopup = !0 : type5 === "listbox" && (ariaHasPopup = "listbox");
  66879. let overlayId = $bdb11010cef70236$export$f680877a34711e37();
  66880. return {
  66881. triggerProps: {
  66882. "aria-haspopup": ariaHasPopup,
  66883. "aria-expanded": isOpen,
  66884. "aria-controls": isOpen ? overlayId : void 0,
  66885. onPress: state3.toggle
  66886. },
  66887. overlayProps: {
  66888. id: overlayId
  66889. }
  66890. };
  66891. }
  66892. // ../../node_modules/@react-aria/overlays/dist/usePreventScroll.mjs
  66893. var $49c51c25361d4cd2$var$visualViewport = typeof document < "u" && window.visualViewport, $49c51c25361d4cd2$var$preventScrollCount = 0, $49c51c25361d4cd2$var$restore;
  66894. function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {
  66895. let { isDisabled: isDisabled3 } = options;
  66896. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  66897. if (!isDisabled3)
  66898. return $49c51c25361d4cd2$var$preventScrollCount++, $49c51c25361d4cd2$var$preventScrollCount === 1 && ($c87311424ea30a05$export$fedb369cb70207f1() ? $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollMobileSafari() : $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollStandard()), () => {
  66899. $49c51c25361d4cd2$var$preventScrollCount--, $49c51c25361d4cd2$var$preventScrollCount === 0 && $49c51c25361d4cd2$var$restore();
  66900. };
  66901. }, [
  66902. isDisabled3
  66903. ]);
  66904. }
  66905. function $49c51c25361d4cd2$var$preventScrollStandard() {
  66906. let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
  66907. return $ff5963eb1fccf552$export$e08e3b67e392101e(scrollbarWidth > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
  66908. ("scrollbarGutter" in document.documentElement.style ? $49c51c25361d4cd2$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
  66909. }
  66910. function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
  66911. let scrollable, allowTouchMove = !1, onTouchStart = (e) => {
  66912. let target = e.target;
  66913. scrollable = $cc38e7bd3fc7b213$export$2bb74740c4e19def(target) ? target : $62d8ded9296f3872$export$cfa2225e87938781(target, !0), allowTouchMove = !1;
  66914. let selection = target.ownerDocument.defaultView.getSelection();
  66915. selection && !selection.isCollapsed && selection.containsNode(target, !0) && (allowTouchMove = !0), "selectionStart" in target && "selectionEnd" in target && target.selectionStart < target.selectionEnd && target.ownerDocument.activeElement === target && (allowTouchMove = !0);
  66916. }, style = document.createElement("style");
  66917. style.textContent = `
  66918. @layer {
  66919. * {
  66920. overscroll-behavior: contain;
  66921. }
  66922. }`.trim(), document.head.prepend(style);
  66923. let onTouchMove = (e) => {
  66924. if (!(e.touches.length === 2 || allowTouchMove)) {
  66925. if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {
  66926. e.preventDefault();
  66927. return;
  66928. }
  66929. scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth && e.preventDefault();
  66930. }
  66931. }, onBlur = (e) => {
  66932. let target = e.target, relatedTarget = e.relatedTarget;
  66933. if (relatedTarget && $21f1aa98acb08317$export$c57958e35f31ed73(relatedTarget))
  66934. relatedTarget.focus({
  66935. preventScroll: !0
  66936. }), $49c51c25361d4cd2$var$scrollIntoViewWhenReady(relatedTarget, $21f1aa98acb08317$export$c57958e35f31ed73(target));
  66937. else if (!relatedTarget) {
  66938. var _target_parentElement;
  66939. let focusable = (_target_parentElement = target.parentElement) === null || _target_parentElement === void 0 ? void 0 : _target_parentElement.closest("[tabindex]");
  66940. focusable?.focus({
  66941. preventScroll: !0
  66942. });
  66943. }
  66944. }, focus = HTMLElement.prototype.focus;
  66945. HTMLElement.prototype.focus = function(opts) {
  66946. let wasKeyboardVisible = document.activeElement != null && $21f1aa98acb08317$export$c57958e35f31ed73(document.activeElement);
  66947. focus.call(this, {
  66948. ...opts,
  66949. preventScroll: !0
  66950. }), (!opts || !opts.preventScroll) && $49c51c25361d4cd2$var$scrollIntoViewWhenReady(this, wasKeyboardVisible);
  66951. };
  66952. let removeEvents = $ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$addEvent(document, "touchstart", onTouchStart, {
  66953. passive: !1,
  66954. capture: !0
  66955. }), $49c51c25361d4cd2$var$addEvent(document, "touchmove", onTouchMove, {
  66956. passive: !1,
  66957. capture: !0
  66958. }), $49c51c25361d4cd2$var$addEvent(document, "blur", onBlur, !0));
  66959. return () => {
  66960. removeEvents(), style.remove(), HTMLElement.prototype.focus = focus;
  66961. };
  66962. }
  66963. function $49c51c25361d4cd2$var$setStyle(element, style, value) {
  66964. let cur = element.style[style];
  66965. return element.style[style] = value, () => {
  66966. element.style[style] = cur;
  66967. };
  66968. }
  66969. function $49c51c25361d4cd2$var$addEvent(target, event, handler, options) {
  66970. return target.addEventListener(event, handler, options), () => {
  66971. target.removeEventListener(event, handler, options);
  66972. };
  66973. }
  66974. function $49c51c25361d4cd2$var$scrollIntoViewWhenReady(target, wasKeyboardVisible) {
  66975. wasKeyboardVisible || !$49c51c25361d4cd2$var$visualViewport ? $49c51c25361d4cd2$var$scrollIntoView(target) : $49c51c25361d4cd2$var$visualViewport.addEventListener("resize", () => $49c51c25361d4cd2$var$scrollIntoView(target), {
  66976. once: !0
  66977. });
  66978. }
  66979. function $49c51c25361d4cd2$var$scrollIntoView(target) {
  66980. let root2 = document.scrollingElement || document.documentElement, nextTarget = target;
  66981. for (; nextTarget && nextTarget !== root2; ) {
  66982. let scrollable = $62d8ded9296f3872$export$cfa2225e87938781(nextTarget);
  66983. if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== nextTarget) {
  66984. let scrollableRect = scrollable.getBoundingClientRect(), targetRect = nextTarget.getBoundingClientRect();
  66985. if (targetRect.top < scrollableRect.top || targetRect.bottom > scrollableRect.top + nextTarget.clientHeight) {
  66986. let bottom2 = scrollableRect.bottom;
  66987. $49c51c25361d4cd2$var$visualViewport && (bottom2 = Math.min(bottom2, $49c51c25361d4cd2$var$visualViewport.offsetTop + $49c51c25361d4cd2$var$visualViewport.height));
  66988. let adjustment = targetRect.top - scrollableRect.top - ((bottom2 - scrollableRect.top) / 2 - targetRect.height / 2);
  66989. scrollable.scrollTo({
  66990. // Clamp to the valid range to prevent over-scrolling.
  66991. top: Math.max(0, Math.min(scrollable.scrollHeight - scrollable.clientHeight, scrollable.scrollTop + adjustment)),
  66992. behavior: "smooth"
  66993. });
  66994. }
  66995. }
  66996. nextTarget = scrollable.parentElement;
  66997. }
  66998. }
  66999. // ../../node_modules/@react-aria/overlays/dist/PortalProvider.mjs
  67000. var import_react80 = __toESM(require_react(), 1), $96b38030c423d352$export$60d741e20e0aa309 = (0, import_react80.createContext)({});
  67001. function $96b38030c423d352$export$78efe591171d7d45(props) {
  67002. let { getContainer } = props, { getContainer: ctxGetContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
  67003. return import_react80.default.createElement($96b38030c423d352$export$60d741e20e0aa309.Provider, {
  67004. value: {
  67005. getContainer: getContainer === null ? void 0 : getContainer ?? ctxGetContainer
  67006. }
  67007. }, props.children);
  67008. }
  67009. function $96b38030c423d352$export$9fc1347d4195ccb3() {
  67010. var _useContext;
  67011. return (_useContext = (0, import_react80.useContext)($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== void 0 ? _useContext : {};
  67012. }
  67013. // ../../node_modules/@react-aria/overlays/dist/useModal.mjs
  67014. var import_react81 = __toESM(require_react(), 1), import_react_dom3 = __toESM(require_react_dom(), 1);
  67015. var $f57aed4a881a3485$var$Context = import_react81.default.createContext(null);
  67016. function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
  67017. let { children } = props, parent = (0, import_react81.useContext)($f57aed4a881a3485$var$Context), [modalCount, setModalCount] = (0, import_react81.useState)(0), context = (0, import_react81.useMemo)(() => ({
  67018. parent,
  67019. modalCount,
  67020. addModal() {
  67021. setModalCount((count) => count + 1), parent && parent.addModal();
  67022. },
  67023. removeModal() {
  67024. setModalCount((count) => count - 1), parent && parent.removeModal();
  67025. }
  67026. }), [
  67027. parent,
  67028. modalCount
  67029. ]);
  67030. return import_react81.default.createElement($f57aed4a881a3485$var$Context.Provider, {
  67031. value: context
  67032. }, children);
  67033. }
  67034. function $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {
  67035. let context = (0, import_react81.useContext)($f57aed4a881a3485$var$Context);
  67036. return {
  67037. modalProviderProps: {
  67038. "aria-hidden": context && context.modalCount > 0 ? !0 : void 0
  67039. }
  67040. };
  67041. }
  67042. function $f57aed4a881a3485$var$OverlayContainerDOM(props) {
  67043. let { modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();
  67044. return import_react81.default.createElement("div", {
  67045. "data-overlay-container": !0,
  67046. ...props,
  67047. ...modalProviderProps
  67048. });
  67049. }
  67050. function $f57aed4a881a3485$export$bf688221f59024e5(props) {
  67051. return import_react81.default.createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, import_react81.default.createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));
  67052. }
  67053. function $f57aed4a881a3485$export$b47c3594eab58386(props) {
  67054. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), { portalContainer = isSSR ? null : document.body, ...rest } = props, { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
  67055. if (!props.portalContainer && getContainer && (portalContainer = getContainer()), import_react81.default.useEffect(() => {
  67056. if (portalContainer?.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
  67057. }, [
  67058. portalContainer
  67059. ]), !portalContainer) return null;
  67060. let contents = import_react81.default.createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);
  67061. return import_react_dom3.default.createPortal(contents, portalContainer);
  67062. }
  67063. // ../../node_modules/@react-aria/overlays/dist/ar-AE.mjs
  67064. var $773d5888b972f1cf$exports = {};
  67065. $773d5888b972f1cf$exports = {
  67066. dismiss: "\u062A\u062C\u0627\u0647\u0644"
  67067. };
  67068. // ../../node_modules/@react-aria/overlays/dist/bg-BG.mjs
  67069. var $d11f19852b941573$exports = {};
  67070. $d11f19852b941573$exports = {
  67071. dismiss: "\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"
  67072. };
  67073. // ../../node_modules/@react-aria/overlays/dist/cs-CZ.mjs
  67074. var $b983974c2ee1efb3$exports = {};
  67075. $b983974c2ee1efb3$exports = {
  67076. dismiss: "Odstranit"
  67077. };
  67078. // ../../node_modules/@react-aria/overlays/dist/da-DK.mjs
  67079. var $5809cc9d4e92de73$exports = {};
  67080. $5809cc9d4e92de73$exports = {
  67081. dismiss: "Luk"
  67082. };
  67083. // ../../node_modules/@react-aria/overlays/dist/de-DE.mjs
  67084. var $c68c2e4fc74398d1$exports = {};
  67085. $c68c2e4fc74398d1$exports = {
  67086. dismiss: "Schlie\xDFen"
  67087. };
  67088. // ../../node_modules/@react-aria/overlays/dist/el-GR.mjs
  67089. var $0898b4c153db2b77$exports = {};
  67090. $0898b4c153db2b77$exports = {
  67091. dismiss: "\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"
  67092. };
  67093. // ../../node_modules/@react-aria/overlays/dist/en-US.mjs
  67094. var $6d74810286a15183$exports = {};
  67095. $6d74810286a15183$exports = {
  67096. dismiss: "Dismiss"
  67097. };
  67098. // ../../node_modules/@react-aria/overlays/dist/es-ES.mjs
  67099. var $309d73dc65f78055$exports = {};
  67100. $309d73dc65f78055$exports = {
  67101. dismiss: "Descartar"
  67102. };
  67103. // ../../node_modules/@react-aria/overlays/dist/et-EE.mjs
  67104. var $44ad94f7205cf593$exports = {};
  67105. $44ad94f7205cf593$exports = {
  67106. dismiss: "L\xF5peta"
  67107. };
  67108. // ../../node_modules/@react-aria/overlays/dist/fi-FI.mjs
  67109. var $7c28f5687f0779a9$exports = {};
  67110. $7c28f5687f0779a9$exports = {
  67111. dismiss: "Hylk\xE4\xE4"
  67112. };
  67113. // ../../node_modules/@react-aria/overlays/dist/fr-FR.mjs
  67114. var $e6d75df4b68bd73a$exports = {};
  67115. $e6d75df4b68bd73a$exports = {
  67116. dismiss: "Rejeter"
  67117. };
  67118. // ../../node_modules/@react-aria/overlays/dist/he-IL.mjs
  67119. var $87505c9dab186d0f$exports = {};
  67120. $87505c9dab186d0f$exports = {
  67121. dismiss: "\u05D4\u05EA\u05E2\u05DC\u05DD"
  67122. };
  67123. // ../../node_modules/@react-aria/overlays/dist/hr-HR.mjs
  67124. var $553439c3ffb3e492$exports = {};
  67125. $553439c3ffb3e492$exports = {
  67126. dismiss: "Odbaci"
  67127. };
  67128. // ../../node_modules/@react-aria/overlays/dist/hu-HU.mjs
  67129. var $74cf411061b983a2$exports = {};
  67130. $74cf411061b983a2$exports = {
  67131. dismiss: "Elutas\xEDt\xE1s"
  67132. };
  67133. // ../../node_modules/@react-aria/overlays/dist/it-IT.mjs
  67134. var $e933f298574dc435$exports = {};
  67135. $e933f298574dc435$exports = {
  67136. dismiss: "Ignora"
  67137. };
  67138. // ../../node_modules/@react-aria/overlays/dist/ja-JP.mjs
  67139. var $ac91fc9fe02f71f6$exports = {};
  67140. $ac91fc9fe02f71f6$exports = {
  67141. dismiss: "\u9589\u3058\u308B"
  67142. };
  67143. // ../../node_modules/@react-aria/overlays/dist/ko-KR.mjs
  67144. var $52b96f86422025af$exports = {};
  67145. $52b96f86422025af$exports = {
  67146. dismiss: "\uBB34\uC2DC"
  67147. };
  67148. // ../../node_modules/@react-aria/overlays/dist/lt-LT.mjs
  67149. var $c0d724c3e51dafa6$exports = {};
  67150. $c0d724c3e51dafa6$exports = {
  67151. dismiss: "Atmesti"
  67152. };
  67153. // ../../node_modules/@react-aria/overlays/dist/lv-LV.mjs
  67154. var $c92899672a3fe72e$exports = {};
  67155. $c92899672a3fe72e$exports = {
  67156. dismiss: "Ner\u0101d\u012Bt"
  67157. };
  67158. // ../../node_modules/@react-aria/overlays/dist/nb-NO.mjs
  67159. var $9f576b39d8e7a9d6$exports = {};
  67160. $9f576b39d8e7a9d6$exports = {
  67161. dismiss: "Lukk"
  67162. };
  67163. // ../../node_modules/@react-aria/overlays/dist/nl-NL.mjs
  67164. var $9d025808aeec81a7$exports = {};
  67165. $9d025808aeec81a7$exports = {
  67166. dismiss: "Negeren"
  67167. };
  67168. // ../../node_modules/@react-aria/overlays/dist/pl-PL.mjs
  67169. var $fce709921e2c0fa6$exports = {};
  67170. $fce709921e2c0fa6$exports = {
  67171. dismiss: "Zignoruj"
  67172. };
  67173. // ../../node_modules/@react-aria/overlays/dist/pt-BR.mjs
  67174. var $2599cf0c4ab37f59$exports = {};
  67175. $2599cf0c4ab37f59$exports = {
  67176. dismiss: "Descartar"
  67177. };
  67178. // ../../node_modules/@react-aria/overlays/dist/pt-PT.mjs
  67179. var $3c220ae7ef8a35fd$exports = {};
  67180. $3c220ae7ef8a35fd$exports = {
  67181. dismiss: "Dispensar"
  67182. };
  67183. // ../../node_modules/@react-aria/overlays/dist/ro-RO.mjs
  67184. var $93562b5094072f54$exports = {};
  67185. $93562b5094072f54$exports = {
  67186. dismiss: "Revocare"
  67187. };
  67188. // ../../node_modules/@react-aria/overlays/dist/ru-RU.mjs
  67189. var $cd9e2abd0d06c7b4$exports = {};
  67190. $cd9e2abd0d06c7b4$exports = {
  67191. dismiss: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"
  67192. };
  67193. // ../../node_modules/@react-aria/overlays/dist/sk-SK.mjs
  67194. var $45375701f409adf1$exports = {};
  67195. $45375701f409adf1$exports = {
  67196. dismiss: "Zru\u0161i\u0165"
  67197. };
  67198. // ../../node_modules/@react-aria/overlays/dist/sl-SI.mjs
  67199. var $27fab53a576de9dd$exports = {};
  67200. $27fab53a576de9dd$exports = {
  67201. dismiss: "Opusti"
  67202. };
  67203. // ../../node_modules/@react-aria/overlays/dist/sr-SP.mjs
  67204. var $4438748d9952e7c7$exports = {};
  67205. $4438748d9952e7c7$exports = {
  67206. dismiss: "Odbaci"
  67207. };
  67208. // ../../node_modules/@react-aria/overlays/dist/sv-SE.mjs
  67209. var $0936d7347ef4da4c$exports = {};
  67210. $0936d7347ef4da4c$exports = {
  67211. dismiss: "Avvisa"
  67212. };
  67213. // ../../node_modules/@react-aria/overlays/dist/tr-TR.mjs
  67214. var $29700c92185d38f8$exports = {};
  67215. $29700c92185d38f8$exports = {
  67216. dismiss: "Kapat"
  67217. };
  67218. // ../../node_modules/@react-aria/overlays/dist/uk-UA.mjs
  67219. var $662ccaf2be4c25b3$exports = {};
  67220. $662ccaf2be4c25b3$exports = {
  67221. dismiss: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"
  67222. };
  67223. // ../../node_modules/@react-aria/overlays/dist/zh-CN.mjs
  67224. var $d80a27deda7cdb3c$exports = {};
  67225. $d80a27deda7cdb3c$exports = {
  67226. dismiss: "\u53D6\u6D88"
  67227. };
  67228. // ../../node_modules/@react-aria/overlays/dist/zh-TW.mjs
  67229. var $2b2734393847c884$exports = {};
  67230. $2b2734393847c884$exports = {
  67231. dismiss: "\u95DC\u9589"
  67232. };
  67233. // ../../node_modules/@react-aria/overlays/dist/intlStrings.mjs
  67234. var $a2f21f5f14f60553$exports = {};
  67235. $a2f21f5f14f60553$exports = {
  67236. "ar-AE": $773d5888b972f1cf$exports,
  67237. "bg-BG": $d11f19852b941573$exports,
  67238. "cs-CZ": $b983974c2ee1efb3$exports,
  67239. "da-DK": $5809cc9d4e92de73$exports,
  67240. "de-DE": $c68c2e4fc74398d1$exports,
  67241. "el-GR": $0898b4c153db2b77$exports,
  67242. "en-US": $6d74810286a15183$exports,
  67243. "es-ES": $309d73dc65f78055$exports,
  67244. "et-EE": $44ad94f7205cf593$exports,
  67245. "fi-FI": $7c28f5687f0779a9$exports,
  67246. "fr-FR": $e6d75df4b68bd73a$exports,
  67247. "he-IL": $87505c9dab186d0f$exports,
  67248. "hr-HR": $553439c3ffb3e492$exports,
  67249. "hu-HU": $74cf411061b983a2$exports,
  67250. "it-IT": $e933f298574dc435$exports,
  67251. "ja-JP": $ac91fc9fe02f71f6$exports,
  67252. "ko-KR": $52b96f86422025af$exports,
  67253. "lt-LT": $c0d724c3e51dafa6$exports,
  67254. "lv-LV": $c92899672a3fe72e$exports,
  67255. "nb-NO": $9f576b39d8e7a9d6$exports,
  67256. "nl-NL": $9d025808aeec81a7$exports,
  67257. "pl-PL": $fce709921e2c0fa6$exports,
  67258. "pt-BR": $2599cf0c4ab37f59$exports,
  67259. "pt-PT": $3c220ae7ef8a35fd$exports,
  67260. "ro-RO": $93562b5094072f54$exports,
  67261. "ru-RU": $cd9e2abd0d06c7b4$exports,
  67262. "sk-SK": $45375701f409adf1$exports,
  67263. "sl-SI": $27fab53a576de9dd$exports,
  67264. "sr-SP": $4438748d9952e7c7$exports,
  67265. "sv-SE": $0936d7347ef4da4c$exports,
  67266. "tr-TR": $29700c92185d38f8$exports,
  67267. "uk-UA": $662ccaf2be4c25b3$exports,
  67268. "zh-CN": $d80a27deda7cdb3c$exports,
  67269. "zh-TW": $2b2734393847c884$exports
  67270. };
  67271. // ../../node_modules/@react-aria/overlays/dist/DismissButton.mjs
  67272. var import_react83 = __toESM(require_react(), 1);
  67273. // ../../node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs
  67274. var import_react82 = __toESM(require_react(), 1);
  67275. var $5c3e21d68f1c4674$var$styles = {
  67276. border: 0,
  67277. clip: "rect(0 0 0 0)",
  67278. clipPath: "inset(50%)",
  67279. height: "1px",
  67280. margin: "-1px",
  67281. overflow: "hidden",
  67282. padding: 0,
  67283. position: "absolute",
  67284. width: "1px",
  67285. whiteSpace: "nowrap"
  67286. };
  67287. function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
  67288. let { style, isFocusable: isFocusable2 } = props, [isFocused, setFocused] = (0, import_react82.useState)(!1), { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
  67289. isDisabled: !isFocusable2,
  67290. onFocusWithinChange: (val) => setFocused(val)
  67291. }), combinedStyles = (0, import_react82.useMemo)(() => isFocused ? style : style ? {
  67292. ...$5c3e21d68f1c4674$var$styles,
  67293. ...style
  67294. } : $5c3e21d68f1c4674$var$styles, [
  67295. isFocused
  67296. ]);
  67297. return {
  67298. visuallyHiddenProps: {
  67299. ...focusWithinProps,
  67300. style: combinedStyles
  67301. }
  67302. };
  67303. }
  67304. function $5c3e21d68f1c4674$export$439d29a4e110a164(props) {
  67305. let { children, elementType: Element2 = "div", isFocusable: isFocusable2, style, ...otherProps } = props, { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);
  67306. return import_react82.default.createElement(Element2, $3ef42575df84b30b$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children);
  67307. }
  67308. // ../../node_modules/@react-aria/overlays/dist/DismissButton.mjs
  67309. function $parcel$interopDefault(a3) {
  67310. return a3 && a3.__esModule ? a3.default : a3;
  67311. }
  67312. function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {
  67313. let { onDismiss, ...otherProps } = props, stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($a2f21f5f14f60553$exports), "@react-aria/overlays"), labels = $313b98861ee5dd6c$export$d6875122194c7b44(otherProps, stringFormatter.format("dismiss")), onClick = () => {
  67314. onDismiss && onDismiss();
  67315. };
  67316. return import_react83.default.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, null, import_react83.default.createElement("button", {
  67317. ...labels,
  67318. tabIndex: -1,
  67319. onClick,
  67320. style: {
  67321. width: 1,
  67322. height: 1
  67323. }
  67324. }));
  67325. }
  67326. // ../../node_modules/@react-aria/overlays/dist/ariaHideOutside.mjs
  67327. var $5e3802645cc19319$var$supportsInert = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, $5e3802645cc19319$var$refCountMap = /* @__PURE__ */ new WeakMap(), $5e3802645cc19319$var$observerStack = [];
  67328. function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
  67329. let windowObj = $431fbd86ca7dc216$export$f21a1ffae260145a(targets?.[0]), opts = options instanceof windowObj.Element ? {
  67330. root: options
  67331. } : options;
  67332. var _opts_root;
  67333. let root2 = (_opts_root = opts?.root) !== null && _opts_root !== void 0 ? _opts_root : document.body, shouldUseInert = opts?.shouldUseInert && $5e3802645cc19319$var$supportsInert, visibleNodes = new Set(targets), hiddenNodes = /* @__PURE__ */ new Set(), getHidden = (element) => shouldUseInert && element instanceof windowObj.HTMLElement ? element.inert : element.getAttribute("aria-hidden") === "true", setHidden = (element, hidden) => {
  67334. shouldUseInert && element instanceof windowObj.HTMLElement ? element.inert = hidden : hidden ? element.setAttribute("aria-hidden", "true") : (element.removeAttribute("aria-hidden"), element instanceof windowObj.HTMLElement && (element.inert = !1));
  67335. }, walk = (root3) => {
  67336. for (let element of root3.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) visibleNodes.add(element);
  67337. let acceptNode = (node2) => {
  67338. if (hiddenNodes.has(node2) || visibleNodes.has(node2) || node2.parentElement && hiddenNodes.has(node2.parentElement) && node2.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
  67339. for (let target of visibleNodes)
  67340. if (node2.contains(target)) return NodeFilter.FILTER_SKIP;
  67341. return NodeFilter.FILTER_ACCEPT;
  67342. }, walker = document.createTreeWalker(root3, NodeFilter.SHOW_ELEMENT, {
  67343. acceptNode
  67344. }), acceptRoot = acceptNode(root3);
  67345. if (acceptRoot === NodeFilter.FILTER_ACCEPT && hide2(root3), acceptRoot !== NodeFilter.FILTER_REJECT) {
  67346. let node2 = walker.nextNode();
  67347. for (; node2 != null; )
  67348. hide2(node2), node2 = walker.nextNode();
  67349. }
  67350. }, hide2 = (node2) => {
  67351. var _refCountMap_get;
  67352. let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node2)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;
  67353. getHidden(node2) && refCount === 0 || (refCount === 0 && setHidden(node2, !0), hiddenNodes.add(node2), $5e3802645cc19319$var$refCountMap.set(node2, refCount + 1));
  67354. };
  67355. $5e3802645cc19319$var$observerStack.length && $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].disconnect(), walk(root2);
  67356. let observer = new MutationObserver((changes) => {
  67357. for (let change of changes)
  67358. if (change.type === "childList" && ![
  67359. ...visibleNodes,
  67360. ...hiddenNodes
  67361. ].some((node2) => node2.contains(change.target)))
  67362. for (let node2 of change.addedNodes)
  67363. (node2 instanceof HTMLElement || node2 instanceof SVGElement) && (node2.dataset.liveAnnouncer === "true" || node2.dataset.reactAriaTopLayer === "true") ? visibleNodes.add(node2) : node2 instanceof Element && walk(node2);
  67364. });
  67365. observer.observe(root2, {
  67366. childList: !0,
  67367. subtree: !0
  67368. });
  67369. let observerWrapper = {
  67370. visibleNodes,
  67371. hiddenNodes,
  67372. observe() {
  67373. observer.observe(root2, {
  67374. childList: !0,
  67375. subtree: !0
  67376. });
  67377. },
  67378. disconnect() {
  67379. observer.disconnect();
  67380. }
  67381. };
  67382. return $5e3802645cc19319$var$observerStack.push(observerWrapper), () => {
  67383. observer.disconnect();
  67384. for (let node2 of hiddenNodes) {
  67385. let count = $5e3802645cc19319$var$refCountMap.get(node2);
  67386. count != null && (count === 1 ? (setHidden(node2, !1), $5e3802645cc19319$var$refCountMap.delete(node2)) : $5e3802645cc19319$var$refCountMap.set(node2, count - 1));
  67387. }
  67388. observerWrapper === $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1] ? ($5e3802645cc19319$var$observerStack.pop(), $5e3802645cc19319$var$observerStack.length && $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].observe()) : $5e3802645cc19319$var$observerStack.splice($5e3802645cc19319$var$observerStack.indexOf(observerWrapper), 1);
  67389. };
  67390. }
  67391. function $5e3802645cc19319$export$1020fa7f77e17884(element) {
  67392. let observer = $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1];
  67393. if (observer && !observer.visibleNodes.has(element))
  67394. return observer.visibleNodes.add(element), () => {
  67395. observer.visibleNodes.delete(element);
  67396. };
  67397. }
  67398. // ../../node_modules/@react-aria/overlays/dist/usePopover.mjs
  67399. var import_react84 = __toESM(require_react(), 1);
  67400. function $f2f8a6077418541e$export$542a6fd13ac93354(props, state3) {
  67401. let { triggerRef, popoverRef, groupRef, isNonModal, isKeyboardDismissDisabled, shouldCloseOnInteractOutside, ...otherProps } = props, isSubmenu = otherProps.trigger === "SubmenuTrigger", { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({
  67402. isOpen: state3.isOpen,
  67403. onClose: state3.close,
  67404. shouldCloseOnBlur: !0,
  67405. isDismissable: !isNonModal || isSubmenu,
  67406. isKeyboardDismissDisabled,
  67407. shouldCloseOnInteractOutside
  67408. }, groupRef ?? popoverRef), { overlayProps: positionProps, arrowProps, placement, triggerAnchorPoint: origin } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
  67409. ...otherProps,
  67410. targetRef: triggerRef,
  67411. overlayRef: popoverRef,
  67412. isOpen: state3.isOpen,
  67413. onClose: isNonModal && !isSubmenu ? state3.close : null
  67414. });
  67415. return $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
  67416. isDisabled: isNonModal || !state3.isOpen
  67417. }), (0, import_react84.useEffect)(() => {
  67418. if (state3.isOpen && popoverRef.current) {
  67419. var _groupRef_current, _groupRef_current1;
  67420. return isNonModal ? $5e3802645cc19319$export$1020fa7f77e17884((_groupRef_current = groupRef?.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current) : $5e3802645cc19319$export$1c3ebcada18427bf([
  67421. (_groupRef_current1 = groupRef?.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current
  67422. ], {
  67423. shouldUseInert: !0
  67424. });
  67425. }
  67426. }, [
  67427. isNonModal,
  67428. state3.isOpen,
  67429. popoverRef,
  67430. groupRef
  67431. ]), {
  67432. popoverProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, positionProps),
  67433. arrowProps,
  67434. underlayProps,
  67435. placement,
  67436. triggerAnchorPoint: origin
  67437. };
  67438. }
  67439. // ../../node_modules/@react-aria/overlays/dist/Overlay.mjs
  67440. var import_react85 = __toESM(require_react(), 1), import_react_dom4 = __toESM(require_react_dom(), 1);
  67441. var $337b884510726a0d$export$a2200b96afd16271 = import_react85.default.createContext(null);
  67442. function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
  67443. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), { portalContainer = isSSR ? null : document.body, isExiting } = props, [contain, setContain] = (0, import_react85.useState)(!1), contextValue = (0, import_react85.useMemo)(() => ({
  67444. contain,
  67445. setContain
  67446. }), [
  67447. contain,
  67448. setContain
  67449. ]), { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
  67450. if (!props.portalContainer && getContainer && (portalContainer = getContainer()), !portalContainer) return null;
  67451. let contents = props.children;
  67452. return props.disableFocusManagement || (contents = import_react85.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, {
  67453. restoreFocus: !0,
  67454. contain: (props.shouldContainFocus || contain) && !isExiting
  67455. }, contents)), contents = import_react85.default.createElement($337b884510726a0d$export$a2200b96afd16271.Provider, {
  67456. value: contextValue
  67457. }, import_react85.default.createElement($f1ab8c75478c6f73$export$cf75428e0b9ed1ea, null, contents)), import_react_dom4.default.createPortal(contents, portalContainer);
  67458. }
  67459. function $337b884510726a0d$export$14c98a7594375490() {
  67460. let ctx = (0, import_react85.useContext)($337b884510726a0d$export$a2200b96afd16271), setContain = ctx?.setContain;
  67461. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  67462. setContain?.(!0);
  67463. }, [
  67464. setContain
  67465. ]);
  67466. }
  67467. // ../../node_modules/@react-aria/overlays/dist/useModalOverlay.mjs
  67468. var import_react86 = __toESM(require_react(), 1);
  67469. function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state3, ref) {
  67470. let { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({
  67471. ...props,
  67472. isOpen: state3.isOpen,
  67473. onClose: state3.close
  67474. }, ref);
  67475. return $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
  67476. isDisabled: !state3.isOpen
  67477. }), $337b884510726a0d$export$14c98a7594375490(), (0, import_react86.useEffect)(() => {
  67478. if (state3.isOpen && ref.current) return $5e3802645cc19319$export$1c3ebcada18427bf([
  67479. ref.current
  67480. ], {
  67481. shouldUseInert: !0
  67482. });
  67483. }, [
  67484. state3.isOpen,
  67485. ref
  67486. ]), {
  67487. modalProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps),
  67488. underlayProps
  67489. };
  67490. }
  67491. // ../../node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs
  67492. var import_react88 = __toESM(require_react(), 1);
  67493. // ../../node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs
  67494. var import_react87 = __toESM(require_react(), 1);
  67495. function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
  67496. let [isOpen, setOpen] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || !1, props.onOpenChange), open = (0, import_react87.useCallback)(() => {
  67497. setOpen(!0);
  67498. }, [
  67499. setOpen
  67500. ]), close = (0, import_react87.useCallback)(() => {
  67501. setOpen(!1);
  67502. }, [
  67503. setOpen
  67504. ]), toggle = (0, import_react87.useCallback)(() => {
  67505. setOpen(!isOpen);
  67506. }, [
  67507. setOpen,
  67508. isOpen
  67509. ]);
  67510. return {
  67511. isOpen,
  67512. setOpen,
  67513. open,
  67514. close,
  67515. toggle
  67516. };
  67517. }
  67518. // ../../node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs
  67519. var $8796f90736e175cb$var$TOOLTIP_DELAY = 1500, $8796f90736e175cb$var$TOOLTIP_COOLDOWN = 500, $8796f90736e175cb$var$tooltips = {}, $8796f90736e175cb$var$tooltipId = 0, $8796f90736e175cb$var$globalWarmedUp = !1, $8796f90736e175cb$var$globalWarmUpTimeout = null, $8796f90736e175cb$var$globalCooldownTimeout = null;
  67520. function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
  67521. let { delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props, { isOpen, open, close } = $fc909762b330b746$export$61c6a8c84e605fb6(props), id = (0, import_react88.useMemo)(() => `${++$8796f90736e175cb$var$tooltipId}`, []), closeTimeout = (0, import_react88.useRef)(null), closeCallback = (0, import_react88.useRef)(close), ensureTooltipEntry = () => {
  67522. $8796f90736e175cb$var$tooltips[id] = hideTooltip;
  67523. }, closeOpenTooltips = () => {
  67524. for (let hideTooltipId in $8796f90736e175cb$var$tooltips) hideTooltipId !== id && ($8796f90736e175cb$var$tooltips[hideTooltipId](!0), delete $8796f90736e175cb$var$tooltips[hideTooltipId]);
  67525. }, showTooltip = () => {
  67526. closeTimeout.current && clearTimeout(closeTimeout.current), closeTimeout.current = null, closeOpenTooltips(), ensureTooltipEntry(), $8796f90736e175cb$var$globalWarmedUp = !0, open(), $8796f90736e175cb$var$globalWarmUpTimeout && (clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout), $8796f90736e175cb$var$globalWarmUpTimeout = null), $8796f90736e175cb$var$globalCooldownTimeout && (clearTimeout($8796f90736e175cb$var$globalCooldownTimeout), $8796f90736e175cb$var$globalCooldownTimeout = null);
  67527. }, hideTooltip = (immediate) => {
  67528. immediate || closeDelay <= 0 ? (closeTimeout.current && clearTimeout(closeTimeout.current), closeTimeout.current = null, closeCallback.current()) : closeTimeout.current || (closeTimeout.current = setTimeout(() => {
  67529. closeTimeout.current = null, closeCallback.current();
  67530. }, closeDelay)), $8796f90736e175cb$var$globalWarmUpTimeout && (clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout), $8796f90736e175cb$var$globalWarmUpTimeout = null), $8796f90736e175cb$var$globalWarmedUp && ($8796f90736e175cb$var$globalCooldownTimeout && clearTimeout($8796f90736e175cb$var$globalCooldownTimeout), $8796f90736e175cb$var$globalCooldownTimeout = setTimeout(() => {
  67531. delete $8796f90736e175cb$var$tooltips[id], $8796f90736e175cb$var$globalCooldownTimeout = null, $8796f90736e175cb$var$globalWarmedUp = !1;
  67532. }, Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN, closeDelay)));
  67533. }, warmupTooltip = () => {
  67534. closeOpenTooltips(), ensureTooltipEntry(), !isOpen && !$8796f90736e175cb$var$globalWarmUpTimeout && !$8796f90736e175cb$var$globalWarmedUp ? $8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(() => {
  67535. $8796f90736e175cb$var$globalWarmUpTimeout = null, $8796f90736e175cb$var$globalWarmedUp = !0, showTooltip();
  67536. }, delay) : isOpen || showTooltip();
  67537. };
  67538. return (0, import_react88.useEffect)(() => {
  67539. closeCallback.current = close;
  67540. }, [
  67541. close
  67542. ]), (0, import_react88.useEffect)(() => () => {
  67543. closeTimeout.current && clearTimeout(closeTimeout.current), $8796f90736e175cb$var$tooltips[id] && delete $8796f90736e175cb$var$tooltips[id];
  67544. }, [
  67545. id
  67546. ]), {
  67547. isOpen,
  67548. open: (immediate) => {
  67549. !immediate && delay > 0 && !closeTimeout.current ? warmupTooltip() : showTooltip();
  67550. },
  67551. close: hideTooltip
  67552. };
  67553. }
  67554. // ../../node_modules/react-aria-components/dist/Tooltip.mjs
  67555. var import_react89 = __toESM(require_react(), 1), $4e3b923658d69c60$export$7a7623236eec67fa = (0, import_react89.createContext)(null), $4e3b923658d69c60$export$39ae08fa83328b12 = (0, import_react89.createContext)(null);
  67556. function $4e3b923658d69c60$export$8c610744efcf8a1d(props) {
  67557. let state3 = $8796f90736e175cb$export$4d40659c25ecb50b(props), ref = (0, import_react89.useRef)(null), { triggerProps, tooltipProps } = $4e1b34546679e357$export$a6da6c504e4bba8b(props, state3, ref);
  67558. return import_react89.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  67559. values: [
  67560. [
  67561. $4e3b923658d69c60$export$7a7623236eec67fa,
  67562. state3
  67563. ],
  67564. [
  67565. $4e3b923658d69c60$export$39ae08fa83328b12,
  67566. {
  67567. ...tooltipProps,
  67568. triggerRef: ref
  67569. }
  67570. ]
  67571. ]
  67572. }, import_react89.default.createElement($f645667febf57a63$export$13f3202a3e5ddd5, {
  67573. ...triggerProps,
  67574. ref
  67575. }, props.children));
  67576. }
  67577. var $4e3b923658d69c60$export$28c660c63b792dea = (0, import_react89.forwardRef)(function({ UNSTABLE_portalContainer, ...props }, ref) {
  67578. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e3b923658d69c60$export$39ae08fa83328b12);
  67579. let contextState = (0, import_react89.useContext)($4e3b923658d69c60$export$7a7623236eec67fa), localState = $8796f90736e175cb$export$4d40659c25ecb50b(props), state3 = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState, isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state3.isOpen) || props.isExiting || !1;
  67580. return !state3.isOpen && !isExiting ? null : import_react89.default.createElement($f57aed4a881a3485$export$b47c3594eab58386, {
  67581. portalContainer: UNSTABLE_portalContainer
  67582. }, import_react89.default.createElement($4e3b923658d69c60$var$TooltipInner, {
  67583. ...props,
  67584. tooltipRef: ref,
  67585. isExiting
  67586. }));
  67587. });
  67588. function $4e3b923658d69c60$var$TooltipInner(props) {
  67589. let state3 = (0, import_react89.useContext)($4e3b923658d69c60$export$7a7623236eec67fa), arrowRef = (0, import_react89.useRef)(null), { overlayProps, arrowProps, placement, triggerAnchorPoint } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
  67590. placement: props.placement || "top",
  67591. targetRef: props.triggerRef,
  67592. overlayRef: props.tooltipRef,
  67593. arrowRef,
  67594. offset: props.offset,
  67595. crossOffset: props.crossOffset,
  67596. isOpen: state3.isOpen,
  67597. arrowBoundaryOffset: props.arrowBoundaryOffset,
  67598. shouldFlip: props.shouldFlip,
  67599. containerPadding: props.containerPadding,
  67600. onClose: () => state3.close(!0)
  67601. }), isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(props.tooltipRef, !!placement) || props.isEntering || !1, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  67602. ...props,
  67603. defaultClassName: "react-aria-Tooltip",
  67604. values: {
  67605. placement,
  67606. isEntering,
  67607. isExiting: props.isExiting,
  67608. state: state3
  67609. }
  67610. });
  67611. props = $3ef42575df84b30b$export$9d1611c77c2fe928(props, overlayProps);
  67612. let { tooltipProps } = $326e436e94273fe1$export$1c4b08e0eca38426(props, state3), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  67613. global: !0
  67614. });
  67615. return import_react89.default.createElement("div", {
  67616. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tooltipProps),
  67617. ref: props.tooltipRef,
  67618. style: {
  67619. ...overlayProps.style,
  67620. "--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
  67621. ...renderProps.style
  67622. },
  67623. "data-placement": placement ?? void 0,
  67624. "data-entering": isEntering || void 0,
  67625. "data-exiting": props.isExiting || void 0
  67626. }, import_react89.default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, {
  67627. value: {
  67628. ...arrowProps,
  67629. placement,
  67630. ref: arrowRef
  67631. }
  67632. }, renderProps.children));
  67633. }
  67634. // src/components/components/shared/overlayHelpers.tsx
  67635. var import_react90 = __toESM(require_react(), 1);
  67636. var import_memoizerific10 = __toESM(require_memoizerific(), 1);
  67637. init_theming();
  67638. var convertToReactAriaPlacement = (0, import_memoizerific10.default)(1e3)((p3) => p3 === "left-end" ? "left bottom" : p3 === "right-end" ? "right bottom" : p3 === "left-start" ? "left top" : p3 === "right-start" ? "right top" : p3.replace("-", " ")), Container2 = styled.div({
  67639. width: 500,
  67640. height: 500,
  67641. paddingTop: 100,
  67642. overflowY: "scroll",
  67643. background: "#eee",
  67644. position: "relative"
  67645. }), Trigger = (0, import_react90.forwardRef)((props, ref) => import_react90.default.createElement(
  67646. "button",
  67647. {
  67648. ...props,
  67649. ref,
  67650. style: {
  67651. width: 120,
  67652. height: 50,
  67653. margin: 10
  67654. }
  67655. }
  67656. ));
  67657. Trigger.displayName = "Trigger";
  67658. // src/components/components/tooltip/TooltipProvider.tsx
  67659. var TooltipProvider = ({
  67660. triggerOnFocusOnly = !1,
  67661. placement: placementProp = "top",
  67662. offset: offset3 = 8,
  67663. tooltip,
  67664. children,
  67665. defaultVisible,
  67666. startOpen,
  67667. delayShow = 400,
  67668. delayHide = 200,
  67669. visible,
  67670. onVisibleChange,
  67671. ...props
  67672. }) => {
  67673. let placement = convertToReactAriaPlacement(placementProp), child = import_react91.default.Children.only(children);
  67674. startOpen !== void 0 && deprecate("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");
  67675. let [isOpen, setIsOpen] = (0, import_react91.useState)(defaultVisible ?? startOpen ?? !1), onOpenChange = (0, import_react91.useCallback)(
  67676. (isOpen2) => {
  67677. setIsOpen(isOpen2), onVisibleChange?.(isOpen2);
  67678. },
  67679. [onVisibleChange]
  67680. );
  67681. return import_react91.default.createElement(
  67682. $4e3b923658d69c60$export$8c610744efcf8a1d,
  67683. {
  67684. delay: delayShow,
  67685. closeDelay: delayHide,
  67686. isOpen: visible ?? isOpen,
  67687. onOpenChange,
  67688. trigger: triggerOnFocusOnly ? "focus" : void 0,
  67689. ...props
  67690. },
  67691. import_react91.default.createElement($f645667febf57a63$export$35a3bebf7ef2d934, null, import_react91.default.cloneElement(child, { "aria-describedby": null })),
  67692. import_react91.default.createElement(
  67693. $4e3b923658d69c60$export$28c660c63b792dea,
  67694. {
  67695. "data-testid": "tooltip",
  67696. placement,
  67697. offset: offset3,
  67698. onOpenChange,
  67699. style: { outline: "none" },
  67700. ...props
  67701. },
  67702. tooltip
  67703. )
  67704. );
  67705. };
  67706. // src/components/components/Button/helpers/InteractiveTooltipWrapper.tsx
  67707. var InteractiveTooltipWrapper = ({ children, disableAllTooltips, shortcut, tooltip }) => {
  67708. let tooltipLabel = (0, import_react92.useMemo)(() => {
  67709. let hasShortcuts = document?.body?.getAttribute("data-shortcuts-enabled") !== "false";
  67710. if (!(!tooltip && (!shortcut || !hasShortcuts)))
  67711. return [tooltip, shortcut && hasShortcuts && `[${shortcutToHumanString(shortcut)}]`].filter(Boolean).join(" ");
  67712. }, [shortcut, tooltip]);
  67713. return tooltipLabel ? import_react92.default.createElement(
  67714. TooltipProvider,
  67715. {
  67716. placement: "top",
  67717. tooltip: import_react92.default.createElement(TooltipNote, { note: tooltipLabel }),
  67718. visible: disableAllTooltips ? !1 : void 0
  67719. },
  67720. children
  67721. ) : import_react92.default.createElement(import_react92.default.Fragment, null, children);
  67722. };
  67723. InteractiveTooltipWrapper.displayName = "InteractiveTooltipWrapper";
  67724. // src/components/components/Button/helpers/useAriaDescription.tsx
  67725. var import_react93 = __toESM(require_react(), 1);
  67726. function useAriaDescription(description = "") {
  67727. let describedbyId = description.toLowerCase().trim().replace(/\s+/g, "-");
  67728. return {
  67729. ariaDescriptionAttrs: {
  67730. "aria-describedby": description ? describedbyId : void 0
  67731. },
  67732. AriaDescription: () => description ? import_react93.default.createElement("span", { id: describedbyId, hidden: !0 }, description) : null
  67733. };
  67734. }
  67735. // src/components/components/Button/Button.tsx
  67736. var Button = (0, import_react94.forwardRef)(
  67737. ({
  67738. as = "button",
  67739. asChild = !1,
  67740. animation: animation2 = "none",
  67741. size = "small",
  67742. variant = "outline",
  67743. padding = "medium",
  67744. disabled = !1,
  67745. readOnly = !1,
  67746. active,
  67747. onClick,
  67748. ariaLabel,
  67749. ariaDescription = void 0,
  67750. tooltip = void 0,
  67751. shortcut = void 0,
  67752. disableAllTooltips = !1,
  67753. ...props
  67754. }, ref) => {
  67755. let Comp2 = asChild ? Slot2 : as, deprecated;
  67756. !readOnly && (ariaLabel === void 0 || ariaLabel === "") && (deprecated = "ariaLabel", deprecate(
  67757. `The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${props.children}.`
  67758. )), active !== void 0 && (deprecated = "active", deprecate(
  67759. "The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."
  67760. ));
  67761. let { ariaDescriptionAttrs, AriaDescription } = useAriaDescription(ariaDescription), shortcutAttribute = (0, import_react94.useMemo)(() => shortcut ? shortcutToAriaKeyshortcuts(shortcut) : void 0, [shortcut]), [isAnimating, setIsAnimating] = (0, import_react94.useState)(!1), handleClick = (event) => {
  67762. onClick && onClick(event), animation2 !== "none" && setIsAnimating(!0);
  67763. };
  67764. return (0, import_react94.useEffect)(() => {
  67765. let timer = setTimeout(() => {
  67766. isAnimating && setIsAnimating(!1);
  67767. }, 1e3);
  67768. return () => clearTimeout(timer);
  67769. }, [isAnimating]), import_react94.default.createElement(import_react94.default.Fragment, null, import_react94.default.createElement(
  67770. InteractiveTooltipWrapper,
  67771. {
  67772. disableAllTooltips,
  67773. shortcut,
  67774. tooltip: tooltip || (ariaLabel !== !1 ? ariaLabel : void 0)
  67775. },
  67776. import_react94.default.createElement(
  67777. StyledButton,
  67778. {
  67779. "data-deprecated": deprecated,
  67780. as: Comp2,
  67781. ref,
  67782. variant,
  67783. size,
  67784. padding,
  67785. $disabled: disabled || readOnly,
  67786. "aria-disabled": disabled || readOnly ? "true" : void 0,
  67787. readOnly,
  67788. active,
  67789. animating: isAnimating,
  67790. animation: animation2,
  67791. onClick: disabled || readOnly ? void 0 : handleClick,
  67792. "aria-label": !readOnly && ariaLabel !== !1 ? ariaLabel : void 0,
  67793. "aria-keyshortcuts": readOnly ? void 0 : shortcutAttribute,
  67794. ...readOnly ? {} : ariaDescriptionAttrs,
  67795. ...props
  67796. }
  67797. )
  67798. ), import_react94.default.createElement(AriaDescription, null));
  67799. }
  67800. );
  67801. Button.displayName = "Button";
  67802. var StyledButton = styled("button", {
  67803. shouldForwardProp: (prop) => isPropValid(prop)
  67804. })(
  67805. ({
  67806. theme: theme3,
  67807. variant,
  67808. size,
  67809. $disabled,
  67810. readOnly,
  67811. active,
  67812. animating,
  67813. animation: animation2 = "none",
  67814. padding
  67815. }) => ({
  67816. border: 0,
  67817. cursor: readOnly ? "inherit" : $disabled ? "not-allowed" : "pointer",
  67818. display: "inline-flex",
  67819. gap: "6px",
  67820. alignItems: "center",
  67821. justifyContent: "center",
  67822. overflow: "hidden",
  67823. padding: padding === "none" ? 0 : padding === "small" && size === "small" ? "0 7px" : padding === "small" && size === "medium" ? "0 9px" : size === "small" ? "0 10px" : size === "medium" ? "0 12px" : 0,
  67824. height: size === "small" ? "28px" : "32px",
  67825. position: "relative",
  67826. textAlign: "center",
  67827. textDecoration: "none",
  67828. transitionProperty: "background, box-shadow",
  67829. transitionDuration: "150ms",
  67830. transitionTimingFunction: "ease-out",
  67831. verticalAlign: "top",
  67832. whiteSpace: "nowrap",
  67833. userSelect: "none",
  67834. opacity: $disabled && !readOnly ? 0.5 : 1,
  67835. margin: 0,
  67836. fontSize: `${theme3.typography.size.s1}px`,
  67837. fontWeight: theme3.typography.weight.bold,
  67838. lineHeight: "1",
  67839. background: variant === "solid" ? theme3.base === "light" ? theme3.color.secondary : curriedDarken$1(0.18, theme3.color.secondary) : variant === "outline" ? theme3.button.background : variant === "ghost" && active ? curriedTransparentize$1(0.93, theme3.barSelectedColor) : "transparent",
  67840. color: variant === "solid" ? theme3.color.lightest : variant === "outline" ? theme3.input.color : variant === "ghost" && active ? theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary : variant === "ghost" ? theme3.textMutedColor : theme3.input.color,
  67841. boxShadow: variant === "outline" ? `${theme3.button.border} 0 0 0 1px inset` : "none",
  67842. borderRadius: theme3.input.borderRadius,
  67843. // Making sure that the button never shrinks below its minimum size
  67844. flexShrink: 0,
  67845. ...!readOnly && {
  67846. "&:hover": {
  67847. color: variant === "ghost" ? theme3.color.secondary : void 0,
  67848. background: (() => {
  67849. let bgColor = theme3.color.secondary;
  67850. return variant === "solid" && (bgColor = theme3.base === "light" ? curriedLighten$1(0.1, theme3.color.secondary) : curriedDarken$1(0.3, theme3.color.secondary)), variant === "outline" && (bgColor = theme3.button.background), variant === "ghost" ? curriedTransparentize$1(0.86, theme3.color.secondary) : theme3.base === "light" ? curriedDarken$1(0.02, bgColor) : curriedLighten$1(0.03, bgColor);
  67851. })()
  67852. },
  67853. "&:active": {
  67854. color: variant === "ghost" ? theme3.color.secondary : void 0,
  67855. background: (() => {
  67856. let bgColor = theme3.color.secondary;
  67857. return variant === "solid" && (bgColor = theme3.color.secondary), variant === "outline" && (bgColor = theme3.button.background), variant === "ghost" ? theme3.background.hoverable : theme3.base === "light" ? curriedDarken$1(0.02, bgColor) : curriedLighten$1(0.03, bgColor);
  67858. })()
  67859. },
  67860. "&:focus-visible": {
  67861. outline: `2px solid ${rgba(theme3.color.secondary, 1)}`,
  67862. outlineOffset: 2,
  67863. // Should ensure focus outline gets drawn above next sibling
  67864. zIndex: "1"
  67865. },
  67866. ".sb-bar &:focus-visible, .sb-list &:focus-visible": {
  67867. outlineOffset: 0
  67868. }
  67869. },
  67870. "> svg": {
  67871. flex: "0 0 auto",
  67872. animation: animating && animation2 !== "none" ? `${theme3.animation[animation2]} 1000ms ease-out` : ""
  67873. }
  67874. })
  67875. ), IconButton = (0, import_react94.forwardRef)((props, ref) => (deprecate(
  67876. "`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."
  67877. ), import_react94.default.createElement(Button, { ref, ...props, "data-deprecated": "IconButton" })));
  67878. IconButton.displayName = "IconButton";
  67879. // src/components/components/ToggleButton/ToggleButton.tsx
  67880. var import_react95 = __toESM(require_react(), 1);
  67881. init_polished_esm();
  67882. init_theming();
  67883. var ToggleButton = (0, import_react95.forwardRef)(
  67884. ({ pressed, ...props }, ref) => import_react95.default.createElement(StyledToggle, { role: "switch", "aria-checked": pressed, ref, pressed, ...props })
  67885. );
  67886. ToggleButton.displayName = "ToggleButton";
  67887. var StyledToggle = styled(Button)(
  67888. ({ theme: theme3, variant = "outline", pressed }) => ({
  67889. ...pressed ? {
  67890. ...variant === "solid" ? {
  67891. background: theme3.base === "lighten" ? curriedDarken$1(0.1, theme3.color.secondary) : curriedDarken$1(0.2, theme3.color.secondary)
  67892. } : {},
  67893. ...variant === "outline" ? {
  67894. background: curriedTransparentize$1(0.94, theme3.barSelectedColor),
  67895. boxShadow: `${theme3.barSelectedColor} 0 0 0 1px inset`,
  67896. color: theme3.barSelectedColor
  67897. } : {},
  67898. ...variant === "ghost" ? {
  67899. background: curriedTransparentize$1(0.93, theme3.barSelectedColor),
  67900. color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary
  67901. } : {}
  67902. } : {}
  67903. })
  67904. );
  67905. // src/components/components/ActionList/ActionList.tsx
  67906. var ActionListItem = styled.li(
  67907. ({ active, theme: theme3 }) => ({
  67908. display: "flex",
  67909. alignItems: "center",
  67910. justifyContent: "space-between",
  67911. flex: "0 0 auto",
  67912. overflow: "hidden",
  67913. minHeight: 32,
  67914. gap: 4,
  67915. fontSize: theme3.typography.size.s1,
  67916. fontWeight: active ? theme3.typography.weight.bold : theme3.typography.weight.regular,
  67917. color: active ? "var(--listbox-item-active-color)" : theme3.color.defaultText,
  67918. "--listbox-item-active-color": theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary,
  67919. "--listbox-item-muted-color": active ? "var(--listbox-item-active-color)" : theme3.color.mediumdark,
  67920. '&[aria-disabled="true"]': {
  67921. opacity: 0.5,
  67922. cursor: "not-allowed"
  67923. },
  67924. '&[aria-selected="true"]': {
  67925. color: "var(--listbox-item-active-color)",
  67926. fontWeight: theme3.typography.weight.bold,
  67927. "--listbox-item-muted-color": "var(--listbox-item-active-color)"
  67928. },
  67929. "&:not(:hover, :has(:focus-visible)) :not(input) + input": {
  67930. position: "absolute",
  67931. opacity: 0
  67932. },
  67933. '&[role="option"]': {
  67934. cursor: "pointer",
  67935. borderRadius: theme3.input.borderRadius,
  67936. outlineOffset: -2,
  67937. padding: "0 9px",
  67938. gap: 8,
  67939. "&:hover": {
  67940. background: curriedTransparentize$1(0.86, theme3.color.secondary)
  67941. },
  67942. "&:focus-visible": {
  67943. outline: `2px solid ${theme3.color.secondary}`
  67944. }
  67945. },
  67946. "@supports (interpolate-size: allow-keywords)": {
  67947. interpolateSize: "allow-keywords",
  67948. transitionBehavior: "allow-discrete",
  67949. transitionDuration: "var(--transition-duration, 0.2s)",
  67950. transitionProperty: "opacity, block-size, content-visibility"
  67951. },
  67952. "@media (prefers-reduced-motion: reduce)": {
  67953. transition: "none"
  67954. }
  67955. }),
  67956. ({ transitionStatus }) => {
  67957. switch (transitionStatus) {
  67958. case "preEnter":
  67959. case "exiting":
  67960. case "exited":
  67961. return {
  67962. opacity: 0,
  67963. blockSize: 0,
  67964. contentVisibility: "hidden"
  67965. };
  67966. default:
  67967. return {
  67968. opacity: 1,
  67969. blockSize: "auto",
  67970. contentVisibility: "visible"
  67971. };
  67972. }
  67973. }
  67974. ), ActionListHoverItem = styled(ActionListItem)(({ targetId }) => ({
  67975. gap: 0,
  67976. [`& [data-target-id="${targetId}"]`]: {
  67977. inlineSize: "auto",
  67978. marginLeft: 4,
  67979. opacity: 1,
  67980. "@supports (interpolate-size: allow-keywords)": {
  67981. interpolateSize: "allow-keywords",
  67982. transitionProperty: "inline-size, margin-left, opacity, padding-inline",
  67983. transitionDuration: "var(--transition-duration, 0.2s)"
  67984. }
  67985. },
  67986. [`&:not(:hover, :has(:focus-visible)) [data-target-id="${targetId}"]`]: {
  67987. inlineSize: 0,
  67988. marginLeft: 0,
  67989. opacity: 0,
  67990. paddingInline: 0
  67991. }
  67992. })), StyledButton2 = styled(Button)(({ size }) => ({
  67993. gap: size === "small" ? 6 : 8,
  67994. "&:focus-visible": {
  67995. // Prevent focus outline from being cut off by overflow: hidden
  67996. outlineOffset: -2
  67997. }
  67998. })), StyledToggleButton = styled(ToggleButton)({
  67999. "&:focus-visible": {
  68000. // Prevent focus outline from being cut off by overflow: hidden
  68001. outlineOffset: -2
  68002. }
  68003. }), ActionListButton = (0, import_react96.forwardRef)(
  68004. function({ padding = "small", size = "medium", variant = "ghost", ...props }, ref) {
  68005. return import_react96.default.createElement(StyledButton2, { ...props, variant, padding, size, ref });
  68006. }
  68007. ), ActionListToggle = (0, import_react96.forwardRef)(
  68008. function({ padding = "small", size = "medium", variant = "ghost", ...props }, ref) {
  68009. return import_react96.default.createElement(StyledToggleButton, { ...props, variant, padding, size, ref });
  68010. }
  68011. ), ActionListAction = styled(ActionListButton)(({ theme: theme3 }) => ({
  68012. height: "auto",
  68013. minHeight: 32,
  68014. flex: "0 1 100%",
  68015. textAlign: "start",
  68016. justifyContent: "space-between",
  68017. fontWeight: "inherit",
  68018. color: "inherit",
  68019. "&:hover": {
  68020. color: "inherit"
  68021. },
  68022. "& input:enabled:focus-visible": {
  68023. outline: "none"
  68024. },
  68025. "&:has(input:focus-visible)": {
  68026. outline: `2px solid ${theme3.color.secondary}`,
  68027. outlineOffset: -2
  68028. }
  68029. })), ActionListLink = (props) => import_react96.default.createElement(ActionListAction, { as: "a", ...props }), ActionListText = styled.div(({ theme: theme3 }) => ({
  68030. display: "flex",
  68031. flexDirection: "column",
  68032. justifyContent: "center",
  68033. flexGrow: 1,
  68034. minWidth: 0,
  68035. padding: "8px 0",
  68036. lineHeight: "16px",
  68037. "& > *": {
  68038. margin: 0,
  68039. whiteSpace: "normal"
  68040. },
  68041. "& > span": {
  68042. overflow: "hidden",
  68043. textOverflow: "ellipsis",
  68044. whiteSpace: "nowrap"
  68045. },
  68046. "& small": {
  68047. fontSize: "inherit",
  68048. color: theme3.textMutedColor
  68049. },
  68050. "&:first-child": {
  68051. paddingLeft: 8
  68052. },
  68053. "&:last-child": {
  68054. paddingRight: 8
  68055. },
  68056. 'button > &:first-child, [role="option"] > &:first-child': {
  68057. paddingLeft: 0
  68058. },
  68059. 'button > &:last-child, [role="option"] > &:last-child': {
  68060. paddingRight: 0
  68061. }
  68062. })), ActionListIcon = styled.div({
  68063. display: "flex",
  68064. alignItems: "center",
  68065. justifyContent: "center",
  68066. flex: "0 0 14px",
  68067. width: 14,
  68068. height: 14,
  68069. color: "var(--listbox-item-muted-color)"
  68070. }), ActionList = Object.assign(
  68071. styled.ul(({ theme: theme3, onClick }) => ({
  68072. listStyle: "none",
  68073. margin: 0,
  68074. padding: 4,
  68075. cursor: onClick ? "pointer" : "default",
  68076. "& + *": {
  68077. borderTop: `1px solid ${theme3.appBorderColor}`
  68078. }
  68079. })),
  68080. {
  68081. Item: ActionListItem,
  68082. HoverItem: ActionListHoverItem,
  68083. Button: ActionListButton,
  68084. Toggle: ActionListToggle,
  68085. Action: ActionListAction,
  68086. Link: ActionListLink,
  68087. Text: ActionListText,
  68088. Icon: ActionListIcon
  68089. }
  68090. );
  68091. // src/components/components/Collapsible/Collapsible.tsx
  68092. var import_react97 = __toESM(require_react(), 1);
  68093. init_theming();
  68094. var CollapsibleContent = styled.div(({ collapsed = !1 }) => ({
  68095. blockSize: collapsed ? 0 : "auto",
  68096. contentVisibility: collapsed ? "hidden" : "visible",
  68097. transform: collapsed ? "translateY(-10px)" : "translateY(0)",
  68098. opacity: collapsed ? 0 : 1,
  68099. overflow: "hidden",
  68100. "@supports (interpolate-size: allow-keywords)": {
  68101. interpolateSize: "allow-keywords",
  68102. transition: "all var(--transition-duration, 0.2s)",
  68103. transitionBehavior: "allow-discrete"
  68104. },
  68105. "@media (prefers-reduced-motion: reduce)": {
  68106. transition: "none"
  68107. }
  68108. })), Collapsible = Object.assign(
  68109. function({
  68110. children,
  68111. summary,
  68112. collapsed,
  68113. disabled,
  68114. initialCollapsed,
  68115. storageKey,
  68116. state: providedState,
  68117. ...props
  68118. }) {
  68119. let internalState = useCollapsible({ collapsed, disabled, initialCollapsed, storageKey }), state3 = providedState || internalState;
  68120. return import_react97.default.createElement(import_react97.default.Fragment, null, typeof summary == "function" ? summary(state3) : summary, import_react97.default.createElement(
  68121. CollapsibleContent,
  68122. {
  68123. ...props,
  68124. id: state3.contentId,
  68125. collapsed: state3.isCollapsed,
  68126. "aria-hidden": state3.isCollapsed
  68127. },
  68128. typeof children == "function" ? children(state3) : children
  68129. ));
  68130. },
  68131. {
  68132. Content: CollapsibleContent
  68133. }
  68134. ), useSessionState = (key, initialValue2) => {
  68135. let [value, setValue] = (0, import_react97.useState)(() => {
  68136. try {
  68137. return JSON.parse(sessionStorage.getItem(key)) ?? initialValue2;
  68138. } catch {
  68139. return initialValue2;
  68140. }
  68141. });
  68142. return (0, import_react97.useEffect)(() => {
  68143. try {
  68144. key && sessionStorage.setItem(key, JSON.stringify(value));
  68145. } catch {
  68146. }
  68147. }, [key, value]), [value, setValue];
  68148. }, useCollapsible = ({
  68149. collapsed,
  68150. disabled,
  68151. initialCollapsed = collapsed,
  68152. storageKey
  68153. }) => {
  68154. let [isCollapsed, setCollapsed] = useSessionState(
  68155. storageKey && `useCollapsible:${storageKey}`,
  68156. !!initialCollapsed
  68157. );
  68158. (0, import_react97.useEffect)(() => {
  68159. collapsed !== void 0 && setCollapsed(collapsed);
  68160. }, [collapsed, setCollapsed]);
  68161. let toggleCollapsed = (0, import_react97.useCallback)(
  68162. (event) => {
  68163. event?.stopPropagation(), disabled || setCollapsed((value) => !value);
  68164. },
  68165. [disabled, setCollapsed]
  68166. ), contentId = $bdb11010cef70236$export$f680877a34711e37();
  68167. return {
  68168. contentId,
  68169. isCollapsed,
  68170. isDisabled: !!disabled,
  68171. setCollapsed,
  68172. toggleCollapsed,
  68173. toggleProps: {
  68174. disabled,
  68175. onClick: toggleCollapsed,
  68176. "aria-controls": contentId,
  68177. "aria-expanded": !isCollapsed
  68178. }
  68179. };
  68180. };
  68181. // src/components/components/Card/Card.tsx
  68182. var import_react98 = __toESM(require_react(), 1);
  68183. init_theming();
  68184. var fadeInOut = keyframes({
  68185. "0%": { opacity: 0 },
  68186. "5%": { opacity: 1 },
  68187. "25%": { opacity: 1 },
  68188. "30%": { opacity: 0 }
  68189. }), spin = keyframes({
  68190. "0%": { transform: "rotate(0deg)" },
  68191. "10%": { transform: "rotate(10deg)" },
  68192. "40%": { transform: "rotate(170deg)" },
  68193. "50%": { transform: "rotate(180deg)" },
  68194. "60%": { transform: "rotate(190deg)" },
  68195. "90%": { transform: "rotate(350deg)" },
  68196. "100%": { transform: "rotate(360deg)" }
  68197. }), slide = keyframes({
  68198. to: {
  68199. backgroundPositionX: "36%"
  68200. }
  68201. }), CardContent = styled.div(({ theme: theme3 }) => ({
  68202. borderRadius: theme3.appBorderRadius,
  68203. backgroundColor: theme3.background.content,
  68204. position: "relative"
  68205. })), CardOutline = styled.div(({ animation: animation2 = "none", color: color2, theme: theme3 }) => ({
  68206. position: "relative",
  68207. width: "100%",
  68208. padding: 1,
  68209. overflow: "hidden",
  68210. backgroundColor: theme3.background.content,
  68211. borderRadius: theme3.appBorderRadius + 1,
  68212. boxShadow: `inset 0 0 0 1px ${animation2 === "none" && color2 && theme3.color[color2] || theme3.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,
  68213. transition: "box-shadow 1s",
  68214. "@supports (interpolate-size: allow-keywords)": {
  68215. interpolateSize: "allow-keywords",
  68216. transition: "all var(--transition-duration, 0.2s), box-shadow 1s",
  68217. transitionBehavior: "allow-discrete"
  68218. },
  68219. "@media (prefers-reduced-motion: reduce)": {
  68220. transition: "box-shadow 1s"
  68221. },
  68222. "&:before": {
  68223. content: '""',
  68224. display: animation2 === "none" ? "none" : "block",
  68225. position: "absolute",
  68226. left: 0,
  68227. top: 0,
  68228. width: "100%",
  68229. height: "100%",
  68230. opacity: 1,
  68231. ...animation2 === "rainbow" && {
  68232. animation: `${slide} 10s infinite linear, ${fadeInOut} 60s infinite linear`,
  68233. backgroundImage: "linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",
  68234. backgroundSize: "1000%",
  68235. backgroundPositionX: "100%"
  68236. },
  68237. ...animation2 === "spin" && {
  68238. left: "50%",
  68239. top: "50%",
  68240. marginLeft: "calc(max(100vw, 100vh) * -0.5)",
  68241. marginTop: "calc(max(100vw, 100vh) * -0.5)",
  68242. height: "max(100vw, 100vh)",
  68243. width: "max(100vw, 100vh)",
  68244. animation: `${spin} 3s linear infinite`,
  68245. backgroundImage: color2 === "negative" ? (
  68246. // Hardcoded colors to prevent themes from messing with them (orange+gold, secondary+seafoam)
  68247. "conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)"
  68248. ) : "conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"
  68249. }
  68250. }
  68251. })), Card = Object.assign(
  68252. (0, import_react98.forwardRef)(function({ outlineAnimation = "none", outlineColor, outlineAttrs = {}, ...props }, ref) {
  68253. return import_react98.default.createElement(CardOutline, { animation: outlineAnimation, color: outlineColor, ref, ...outlineAttrs }, import_react98.default.createElement(CardContent, { ...props }));
  68254. }),
  68255. {
  68256. Content: CardContent,
  68257. Outline: CardOutline
  68258. }
  68259. );
  68260. // src/components/components/Modal/Modal.tsx
  68261. var import_react106 = __toESM(require_react(), 1);
  68262. init_client_logger();
  68263. // ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs
  68264. var import_react99 = __toESM(require_react(), 1);
  68265. // ../../node_modules/react-transition-state/dist/esm/hooks/utils.mjs
  68266. var STATUS = ["preEnter", "entering", "entered", "preExit", "exiting", "exited", "unmounted"], getState2 = (status) => ({
  68267. _s: status,
  68268. status: STATUS[status],
  68269. isEnter: status < 3,
  68270. isMounted: status !== 6,
  68271. isResolved: status === 2 || status > 4
  68272. }), startOrEnd = (unmounted) => unmounted ? 6 : 5, getEndStatus = (status, unmountOnExit) => {
  68273. switch (status) {
  68274. case 1:
  68275. case 0:
  68276. return 2;
  68277. case 4:
  68278. case 3:
  68279. return startOrEnd(unmountOnExit);
  68280. }
  68281. }, getTimeout = (timeout) => typeof timeout == "object" ? [timeout.enter, timeout.exit] : [timeout, timeout], nextTick = (transitState, status) => setTimeout(() => {
  68282. isNaN(document.body.offsetTop) || transitState(status + 1);
  68283. }, 0);
  68284. // ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs
  68285. var updateState = (status, setState2, latestState, timeoutId, onChange) => {
  68286. clearTimeout(timeoutId.current);
  68287. let state3 = getState2(status);
  68288. setState2(state3), latestState.current = state3, onChange && onChange({
  68289. current: state3
  68290. });
  68291. }, useTransitionState = ({
  68292. enter = !0,
  68293. exit = !0,
  68294. preEnter,
  68295. preExit,
  68296. timeout,
  68297. initialEntered,
  68298. mountOnEnter,
  68299. unmountOnExit,
  68300. onStateChange: onChange
  68301. } = {}) => {
  68302. let [state3, setState2] = (0, import_react99.useState)(() => getState2(initialEntered ? 2 : startOrEnd(mountOnEnter))), latestState = (0, import_react99.useRef)(state3), timeoutId = (0, import_react99.useRef)(), [enterTimeout, exitTimeout] = getTimeout(timeout), endTransition = (0, import_react99.useCallback)(() => {
  68303. let status = getEndStatus(latestState.current._s, unmountOnExit);
  68304. status && updateState(status, setState2, latestState, timeoutId, onChange);
  68305. }, [onChange, unmountOnExit]), toggle = (0, import_react99.useCallback)((toEnter) => {
  68306. let transitState = (status) => {
  68307. switch (updateState(status, setState2, latestState, timeoutId, onChange), status) {
  68308. case 1:
  68309. enterTimeout >= 0 && (timeoutId.current = setTimeout(endTransition, enterTimeout));
  68310. break;
  68311. case 4:
  68312. exitTimeout >= 0 && (timeoutId.current = setTimeout(endTransition, exitTimeout));
  68313. break;
  68314. case 0:
  68315. case 3:
  68316. timeoutId.current = nextTick(transitState, status);
  68317. break;
  68318. }
  68319. }, enterStage = latestState.current.isEnter;
  68320. typeof toEnter != "boolean" && (toEnter = !enterStage), toEnter ? !enterStage && transitState(enter ? preEnter ? 0 : 1 : 2) : enterStage && transitState(exit ? preExit ? 3 : 4 : startOrEnd(unmountOnExit));
  68321. }, [endTransition, onChange, enter, exit, preEnter, preExit, enterTimeout, exitTimeout, unmountOnExit]);
  68322. return [state3, toggle, endTransition];
  68323. };
  68324. // ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionMap.mjs
  68325. var import_react100 = __toESM(require_react(), 1);
  68326. // src/manager/hooks/useMedia.tsx
  68327. var import_react101 = __toESM(require_react(), 1);
  68328. function useMediaQuery(query) {
  68329. let getMatches = (queryMatch) => typeof window < "u" ? window.matchMedia(queryMatch).matches : !1, [matches4, setMatches] = (0, import_react101.useState)(getMatches(query));
  68330. function handleChange() {
  68331. setMatches(getMatches(query));
  68332. }
  68333. return (0, import_react101.useEffect)(() => {
  68334. let matchMedia = window.matchMedia(query);
  68335. return handleChange(), matchMedia.addEventListener("change", handleChange), () => {
  68336. matchMedia.removeEventListener("change", handleChange);
  68337. };
  68338. }, [query]), matches4;
  68339. }
  68340. // src/components/components/Modal/Modal.styled.tsx
  68341. var Modal_styled_exports = {};
  68342. __export(Modal_styled_exports, {
  68343. Actions: () => Actions,
  68344. Close: () => Close,
  68345. CloseButton: () => CloseButton,
  68346. Col: () => Col,
  68347. Container: () => Container3,
  68348. Content: () => Content,
  68349. Description: () => Description,
  68350. Dialog: () => Dialog,
  68351. Error: () => Error2,
  68352. ErrorWrapper: () => ErrorWrapper,
  68353. Header: () => Header,
  68354. Overlay: () => Overlay,
  68355. Row: () => Row,
  68356. Title: () => Title
  68357. });
  68358. var import_react105 = __toESM(require_react(), 1);
  68359. init_client_logger();
  68360. // ../../node_modules/react-aria-components/dist/RSPContexts.mjs
  68361. var import_react102 = __toESM(require_react(), 1), $4e85f108e88277b8$export$b085522c77523c51 = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$ebe63fadcdce34ed = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$44644b8a16031b5b = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$717b2c0a523a0b53 = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$265015d6dc85bf21 = (0, import_react102.createContext)(null), $4e85f108e88277b8$export$d688439359537581 = (0, import_react102.createContext)({});
  68362. // ../../node_modules/react-aria-components/dist/Heading.mjs
  68363. var import_react103 = __toESM(require_react(), 1), $5cb03073d3f54797$export$a8a3e93435678ff9 = (0, import_react103.forwardRef)(function(props, ref) {
  68364. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581);
  68365. let { children, level = 3, className, ...domProps } = props, Element2 = `h${level}`;
  68366. return import_react103.default.createElement(Element2, {
  68367. ...domProps,
  68368. ref,
  68369. className: className ?? "react-aria-Heading"
  68370. }, children);
  68371. });
  68372. // ../../node_modules/react-aria-components/dist/Text.mjs
  68373. var import_react104 = __toESM(require_react(), 1), $514c0188e459b4c0$export$9afb8bc826b033ea = (0, import_react104.createContext)({}), $514c0188e459b4c0$export$5f1af8db9871e1d6 = (0, import_react104.forwardRef)(function(props, ref) {
  68374. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $514c0188e459b4c0$export$9afb8bc826b033ea);
  68375. let { elementType: ElementType = "span", ...domProps } = props;
  68376. return import_react104.default.createElement(ElementType, {
  68377. className: "react-aria-Text",
  68378. ...domProps,
  68379. ref
  68380. });
  68381. });
  68382. // src/components/components/Modal/Modal.styled.tsx
  68383. init_theming();
  68384. var fadeIn = keyframes({
  68385. from: { opacity: 0 },
  68386. to: { opacity: 1 }
  68387. }), fadeOut = keyframes({
  68388. from: { opacity: 1 },
  68389. to: { opacity: 0 }
  68390. }), expand = keyframes({
  68391. from: { maxHeight: 0 },
  68392. to: {}
  68393. }), zoomIn = keyframes({
  68394. from: {
  68395. opacity: 0,
  68396. transform: "translate(-50%, -50%) scale(0.9)"
  68397. },
  68398. to: {
  68399. opacity: 1,
  68400. transform: "translate(-50%, -50%) scale(1)"
  68401. }
  68402. }), zoomOut = keyframes({
  68403. from: {
  68404. opacity: 1,
  68405. transform: "translate(-50%, -50%) scale(1)"
  68406. },
  68407. to: {
  68408. opacity: 0,
  68409. transform: "translate(-50%, -50%) scale(0.9)"
  68410. }
  68411. }), slideFromBottom = keyframes({
  68412. from: {
  68413. opacity: 0,
  68414. maxHeight: "0px"
  68415. },
  68416. to: {
  68417. opacity: 1,
  68418. maxHeight: "80vh"
  68419. }
  68420. }), slideToBottom = keyframes({
  68421. from: {
  68422. opacity: 1,
  68423. maxHeight: "80vh"
  68424. },
  68425. to: {
  68426. opacity: 0,
  68427. maxHeight: "0px"
  68428. }
  68429. }), Overlay = styled.div(({ $status, $transitionDuration }) => ({
  68430. backdropFilter: "blur(24px)",
  68431. background: "rgba(0, 0, 0, 0.4)",
  68432. position: "absolute",
  68433. inset: 0,
  68434. width: "100%",
  68435. height: "100%",
  68436. zIndex: 1e5,
  68437. "@media (prefers-reduced-motion: no-preference)": {
  68438. animation: $status === "exiting" || $status === "preExit" ? `${fadeOut} ${$transitionDuration}ms` : `${fadeIn} ${$transitionDuration}ms`,
  68439. animationFillMode: "forwards"
  68440. }
  68441. })), Container3 = styled.div(
  68442. ({ theme: theme3 }) => ({
  68443. backgroundColor: theme3.background.bar,
  68444. borderRadius: 6,
  68445. boxShadow: "0px 4px 67px 0px #00000040",
  68446. position: "absolute",
  68447. overflow: "auto",
  68448. zIndex: 1e5,
  68449. "&:focus-visible": {
  68450. outline: "none"
  68451. }
  68452. }),
  68453. ({ theme: theme3, width, height, $variant, $status, $transitionDuration }) => $variant === "dialog" ? {
  68454. top: "50%",
  68455. left: "50%",
  68456. width: width ?? 740,
  68457. height: height ?? "auto",
  68458. maxWidth: "calc(100% - 40px)",
  68459. maxHeight: "85vh",
  68460. "@media (prefers-reduced-motion: no-preference)": {
  68461. willChange: "transform, opacity",
  68462. animationTimingFunction: "cubic-bezier(0.32, 0.72, 0, 1)",
  68463. animation: $status === "exiting" || $status === "preExit" ? `${zoomOut} ${$transitionDuration}ms` : `${zoomIn} ${$transitionDuration}ms`,
  68464. animationFillMode: "forwards !important"
  68465. },
  68466. "@media (prefers-reduced-motion: reduce)": {
  68467. transform: "translate(-50%, -50%) scale(1)"
  68468. }
  68469. } : {
  68470. bottom: "0",
  68471. left: "0",
  68472. right: "0",
  68473. borderRadius: "10px 10px 0 0",
  68474. overflow: "hidden",
  68475. width: width ?? "100%",
  68476. height: height ?? "80%",
  68477. maxWidth: "100%",
  68478. background: theme3.background.content,
  68479. "@supports (interpolate-size: allow-keywords)": {
  68480. interpolateSize: "allow-keywords"
  68481. },
  68482. "@media (prefers-reduced-motion: no-preference)": {
  68483. animationTimingFunction: "cubic-bezier(.9,.16,.77,.64)",
  68484. animation: $status === "exiting" || $status === "preExit" ? `${slideToBottom} ${$transitionDuration}ms` : `${slideFromBottom} ${$transitionDuration}ms`,
  68485. animationFillMode: "forwards !important"
  68486. }
  68487. }
  68488. ), Close = ({ asChild, children, onClick, ...props }) => {
  68489. let { close } = (0, import_react105.useContext)(ModalContext);
  68490. if (asChild && import_react105.default.isValidElement(children)) {
  68491. let handleClick = (event) => {
  68492. onClick?.(event), children.props.onClick?.(event), close?.();
  68493. };
  68494. return import_react105.default.cloneElement(children, {
  68495. ...props,
  68496. onClick: handleClick
  68497. });
  68498. }
  68499. return import_react105.default.createElement(
  68500. Button,
  68501. {
  68502. type: "button",
  68503. padding: "small",
  68504. ariaLabel: "Close modal",
  68505. variant: "ghost",
  68506. shortcut: ["Escape"],
  68507. onClick: close
  68508. },
  68509. import_react105.default.createElement(CrossIcon, null)
  68510. );
  68511. }, Dialog = {
  68512. Close: () => (deprecate("Modal.Dialog.Close is deprecated, please use Modal.Close instead."), import_react105.default.createElement(Close, { "data-deprecated": "Modal.Dialog.Close" }))
  68513. }, CloseButton = ({ ariaLabel, ...props }) => (deprecate("Modal.CloseButton is deprecated, please use Modal.Close instead."), import_react105.default.createElement(Close, { asChild: !0 }, import_react105.default.createElement(Button, { ariaLabel: ariaLabel || "Close", "data-deprecated": "Modal.CloseButton", ...props }, import_react105.default.createElement(CrossIcon, null)))), Content = styled.div({
  68514. display: "flex",
  68515. flexDirection: "column",
  68516. margin: 16,
  68517. gap: 16
  68518. }), Row = styled.div({
  68519. display: "flex",
  68520. justifyContent: "space-between",
  68521. gap: 16
  68522. }), Col = styled.div({
  68523. display: "flex",
  68524. flexDirection: "column",
  68525. gap: 4
  68526. }), Header = ({
  68527. hasClose = !0,
  68528. onClose,
  68529. ...props
  68530. }) => import_react105.default.createElement(Row, null, import_react105.default.createElement(Col, { ...props }), hasClose && import_react105.default.createElement(Close, { onClick: onClose })), Title = styled((props) => import_react105.default.createElement($5cb03073d3f54797$export$a8a3e93435678ff9, { level: 2, ...props }))(({ theme: theme3 }) => ({
  68531. margin: 0,
  68532. fontSize: theme3.typography.size.s3,
  68533. fontWeight: theme3.typography.weight.bold
  68534. })), Description = styled($514c0188e459b4c0$export$5f1af8db9871e1d6)(({ theme: theme3 }) => ({
  68535. position: "relative",
  68536. zIndex: 1,
  68537. margin: 0,
  68538. fontSize: theme3.typography.size.s2
  68539. })), Actions = styled.div({
  68540. display: "flex",
  68541. flexDirection: "row-reverse",
  68542. gap: 8
  68543. }), ErrorWrapper = styled.div(({ theme: theme3 }) => ({
  68544. maxHeight: 100,
  68545. overflow: "auto",
  68546. "@media (prefers-reduced-motion: no-preference)": {
  68547. animation: `${expand} 300ms, ${fadeIn} 300ms`
  68548. },
  68549. backgroundColor: theme3.background.critical,
  68550. color: theme3.color.lightest,
  68551. fontSize: theme3.typography.size.s2,
  68552. "& > div": {
  68553. position: "relative",
  68554. padding: "8px 16px"
  68555. }
  68556. })), Error2 = ({
  68557. children,
  68558. ...props
  68559. }) => import_react105.default.createElement(ErrorWrapper, { ...props }, import_react105.default.createElement("div", null, children));
  68560. // src/components/components/Modal/Modal.tsx
  68561. var ModalContext = (0, import_react106.createContext)({});
  68562. function BaseModal({
  68563. container,
  68564. portalSelector,
  68565. children,
  68566. width,
  68567. height,
  68568. ariaLabel,
  68569. dismissOnClickOutside = !0,
  68570. dismissOnEscape = !0,
  68571. className,
  68572. open,
  68573. onEscapeKeyDown,
  68574. onInteractOutside,
  68575. onOpenChange,
  68576. defaultOpen,
  68577. transitionDuration = 200,
  68578. variant = "dialog",
  68579. ...props
  68580. }) {
  68581. let deprecated;
  68582. (ariaLabel === void 0 || ariaLabel === "") && (deprecated = "ariaLabel", deprecate("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")), onEscapeKeyDown !== void 0 && (deprecated = "onEscapeKeyDown", deprecate(
  68583. "The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead."
  68584. )), onInteractOutside !== void 0 && (deprecated = "onInteractOutside", deprecate(
  68585. "The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."
  68586. ));
  68587. let overlayRef = (0, import_react106.useRef)(null), reducedMotion = useMediaQuery("(prefers-reduced-motion: reduce)"), [{ status, isMounted }, toggle] = useTransitionState({
  68588. timeout: reducedMotion ? 0 : transitionDuration,
  68589. mountOnEnter: !0,
  68590. unmountOnExit: !0
  68591. }), state3 = $fc909762b330b746$export$61c6a8c84e605fb6({
  68592. isOpen: open || isMounted,
  68593. defaultOpen,
  68594. onOpenChange: (isOpen) => {
  68595. toggle(isOpen), onOpenChange?.(isOpen);
  68596. }
  68597. }), close = () => {
  68598. state3.close();
  68599. }, { modalProps, underlayProps } = $8ac8429251c45e4b$export$dbc0f175b25fb0fb(
  68600. {
  68601. isDismissable: dismissOnClickOutside,
  68602. isKeyboardDismissDisabled: !0,
  68603. shouldCloseOnInteractOutside: onInteractOutside ? (element) => {
  68604. let mockedEvent = new MouseEvent("click", {
  68605. bubbles: !0,
  68606. cancelable: !0,
  68607. relatedTarget: element
  68608. });
  68609. return onInteractOutside(mockedEvent), !mockedEvent.defaultPrevented;
  68610. } : void 0
  68611. },
  68612. state3,
  68613. overlayRef
  68614. );
  68615. if ((0, import_react106.useEffect)(() => {
  68616. let shouldBeOpen = open ?? defaultOpen ?? !1;
  68617. shouldBeOpen && !isMounted ? toggle(!0) : !shouldBeOpen && isMounted && toggle(!1);
  68618. }, [open, defaultOpen, isMounted, toggle]), (0, import_react106.useEffect)(() => {
  68619. isMounted && (open || defaultOpen) && onOpenChange?.(!0);
  68620. }, [isMounted]), (0, import_react106.useEffect)(() => {
  68621. if (isMounted && (open || defaultOpen) && overlayRef.current)
  68622. return $5e3802645cc19319$export$1c3ebcada18427bf([overlayRef.current], { shouldUseInert: !0 });
  68623. }, [isMounted, open, defaultOpen, overlayRef]), !isMounted || status === "exited" || status === "unmounted")
  68624. return null;
  68625. let finalModalProps = $3ef42575df84b30b$export$9d1611c77c2fe928(modalProps, {
  68626. onKeyDown: (e) => {
  68627. e.key !== "Escape" ? modalProps.onKeyDown?.(e) : dismissOnEscape && (onEscapeKeyDown?.(e.nativeEvent), e.nativeEvent.defaultPrevented || close());
  68628. }
  68629. }), containerElement = container ?? (portalSelector ? document.querySelector(portalSelector) : void 0);
  68630. return import_react106.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { disableFocusManagement: !0, portalContainer: containerElement || void 0 }, import_react106.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, { restoreFocus: !0, contain: !0, autoFocus: !0 }, import_react106.default.createElement(
  68631. Overlay,
  68632. {
  68633. $status: status,
  68634. $transitionDuration: transitionDuration,
  68635. ...underlayProps
  68636. }
  68637. ), import_react106.default.createElement("div", { role: "dialog", "aria-label": ariaLabel, ref: overlayRef, ...finalModalProps }, import_react106.default.createElement(ModalContext.Provider, { value: { close } }, import_react106.default.createElement("div", { tabIndex: -1 }, import_react106.default.createElement(
  68638. Container3,
  68639. {
  68640. "data-deprecated": deprecated,
  68641. $variant: variant,
  68642. $status: status,
  68643. $transitionDuration: transitionDuration,
  68644. className,
  68645. width,
  68646. height,
  68647. ...props
  68648. },
  68649. children
  68650. ))))));
  68651. }
  68652. var Modal = Object.assign(BaseModal, Modal_styled_exports), ModalDecorator = (Story, { args }) => {
  68653. let [container, setContainer] = (0, import_react106.useState)(null);
  68654. return args.container || args.portalSelector ? import_react106.default.createElement(Story, { args }) : import_react106.default.createElement(import_react106.default.Fragment, null, import_react106.default.createElement($96b38030c423d352$export$78efe591171d7d45, { getContainer: () => container }, import_react106.default.createElement(Story, { args })), import_react106.default.createElement(
  68655. "div",
  68656. {
  68657. ref: (element) => setContainer(element ?? null),
  68658. style: {
  68659. width: "100%",
  68660. height: "100%",
  68661. minHeight: "600px",
  68662. transform: "translateZ(0)"
  68663. }
  68664. }
  68665. ));
  68666. };
  68667. // src/components/components/spaced/Spaced.tsx
  68668. var import_react107 = __toESM(require_react(), 1);
  68669. init_theming();
  68670. var toNumber2 = (input2) => typeof input2 == "number" ? input2 : Number(input2), Container4 = styled.div(
  68671. ({ theme: theme3, col, row = 1 }) => col ? {
  68672. display: "inline-block",
  68673. verticalAlign: "inherit",
  68674. "& > *": {
  68675. marginLeft: col * theme3.layoutMargin,
  68676. verticalAlign: "inherit"
  68677. },
  68678. [`& > *:first-child${ignoreSsrWarning}`]: {
  68679. marginLeft: 0
  68680. }
  68681. } : {
  68682. "& > *": {
  68683. marginTop: row * theme3.layoutMargin
  68684. },
  68685. [`& > *:first-child${ignoreSsrWarning}`]: {
  68686. marginTop: 0
  68687. }
  68688. },
  68689. ({ theme: theme3, outer, col, row }) => {
  68690. switch (!0) {
  68691. case !!(outer && col):
  68692. return {
  68693. marginLeft: outer * theme3.layoutMargin,
  68694. marginRight: outer * theme3.layoutMargin
  68695. };
  68696. case !!(outer && row):
  68697. return {
  68698. marginTop: outer * theme3.layoutMargin,
  68699. marginBottom: outer * theme3.layoutMargin
  68700. };
  68701. default:
  68702. return {};
  68703. }
  68704. }
  68705. ), Spaced = ({ col, row, outer, children, ...rest }) => {
  68706. let outerAmount = toNumber2(typeof outer == "number" || !outer ? outer : col || row);
  68707. return import_react107.default.createElement(Container4, { col, row, outer: outerAmount, ...rest }, children);
  68708. };
  68709. // src/components/components/placeholder/placeholder.tsx
  68710. var import_react108 = __toESM(require_react(), 1);
  68711. init_theming();
  68712. var Title2 = styled.div(({ theme: theme3 }) => ({
  68713. fontWeight: theme3.typography.weight.bold
  68714. })), Desc = styled.div(), Message = styled.div(({ theme: theme3 }) => ({
  68715. padding: 30,
  68716. textAlign: "center",
  68717. color: theme3.color.defaultText,
  68718. fontSize: theme3.typography.size.s2 - 1
  68719. })), Placeholder = ({ children, ...props }) => {
  68720. let [title, desc] = import_react108.Children.toArray(children);
  68721. return import_react108.default.createElement(Message, { ...props }, import_react108.default.createElement(Title2, null, title), desc && import_react108.default.createElement(Desc, null, desc));
  68722. };
  68723. // src/components/index.ts
  68724. init_ScrollArea();
  68725. // src/components/components/Zoom/ZoomElement.tsx
  68726. var import_react110 = __toESM(require_react(), 1);
  68727. init_theming();
  68728. // ../../node_modules/use-resize-observer/dist/bundle.esm.js
  68729. var import_react109 = __toESM(require_react());
  68730. function useResolvedElement(subscriber, refOrElement) {
  68731. var lastReportRef = (0, import_react109.useRef)(null), refOrElementRef = (0, import_react109.useRef)(null);
  68732. refOrElementRef.current = refOrElement;
  68733. var cbElementRef = (0, import_react109.useRef)(null);
  68734. (0, import_react109.useEffect)(function() {
  68735. evaluateSubscription();
  68736. });
  68737. var evaluateSubscription = (0, import_react109.useCallback)(function() {
  68738. var cbElement = cbElementRef.current, refOrElement2 = refOrElementRef.current, element = cbElement || (refOrElement2 ? refOrElement2 instanceof Element ? refOrElement2 : refOrElement2.current : null);
  68739. lastReportRef.current && lastReportRef.current.element === element && lastReportRef.current.subscriber === subscriber || (lastReportRef.current && lastReportRef.current.cleanup && lastReportRef.current.cleanup(), lastReportRef.current = {
  68740. element,
  68741. subscriber,
  68742. // Only calling the subscriber, if there's an actual element to report.
  68743. // Setting cleanup to undefined unless a subscriber returns one, as an existing cleanup function would've been just called.
  68744. cleanup: element ? subscriber(element) : void 0
  68745. });
  68746. }, [subscriber]);
  68747. return (0, import_react109.useEffect)(function() {
  68748. return function() {
  68749. lastReportRef.current && lastReportRef.current.cleanup && (lastReportRef.current.cleanup(), lastReportRef.current = null);
  68750. };
  68751. }, []), (0, import_react109.useCallback)(function(element) {
  68752. cbElementRef.current = element, evaluateSubscription();
  68753. }, [evaluateSubscription]);
  68754. }
  68755. function extractSize(entry, boxProp, sizeType) {
  68756. return entry[boxProp] ? entry[boxProp][0] ? entry[boxProp][0][sizeType] : (
  68757. // TS complains about this, because the RO entry type follows the spec and does not reflect Firefox's current
  68758. // behaviour of returning objects instead of arrays for `borderBoxSize` and `contentBoxSize`.
  68759. // @ts-ignore
  68760. entry[boxProp][sizeType]
  68761. ) : boxProp === "contentBoxSize" ? entry.contentRect[sizeType === "inlineSize" ? "width" : "height"] : void 0;
  68762. }
  68763. function useResizeObserver2(opts) {
  68764. opts === void 0 && (opts = {});
  68765. var onResize = opts.onResize, onResizeRef = (0, import_react109.useRef)(void 0);
  68766. onResizeRef.current = onResize;
  68767. var round3 = opts.round || Math.round, resizeObserverRef = (0, import_react109.useRef)(), _useState = (0, import_react109.useState)({
  68768. width: void 0,
  68769. height: void 0
  68770. }), size = _useState[0], setSize = _useState[1], didUnmount = (0, import_react109.useRef)(!1);
  68771. (0, import_react109.useEffect)(function() {
  68772. return didUnmount.current = !1, function() {
  68773. didUnmount.current = !0;
  68774. };
  68775. }, []);
  68776. var previous = (0, import_react109.useRef)({
  68777. width: void 0,
  68778. height: void 0
  68779. }), refCallback = useResolvedElement((0, import_react109.useCallback)(function(element) {
  68780. return (!resizeObserverRef.current || resizeObserverRef.current.box !== opts.box || resizeObserverRef.current.round !== round3) && (resizeObserverRef.current = {
  68781. box: opts.box,
  68782. round: round3,
  68783. instance: new ResizeObserver(function(entries) {
  68784. var entry = entries[0], boxProp = opts.box === "border-box" ? "borderBoxSize" : opts.box === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize", reportedWidth = extractSize(entry, boxProp, "inlineSize"), reportedHeight = extractSize(entry, boxProp, "blockSize"), newWidth = reportedWidth ? round3(reportedWidth) : void 0, newHeight = reportedHeight ? round3(reportedHeight) : void 0;
  68785. if (previous.current.width !== newWidth || previous.current.height !== newHeight) {
  68786. var newSize = {
  68787. width: newWidth,
  68788. height: newHeight
  68789. };
  68790. previous.current.width = newWidth, previous.current.height = newHeight, onResizeRef.current ? onResizeRef.current(newSize) : didUnmount.current || setSize(newSize);
  68791. }
  68792. })
  68793. }), resizeObserverRef.current.instance.observe(element, {
  68794. box: opts.box
  68795. }), function() {
  68796. resizeObserverRef.current && resizeObserverRef.current.instance.unobserve(element);
  68797. };
  68798. }, [opts.box, round3]), opts.ref);
  68799. return (0, import_react109.useMemo)(function() {
  68800. return {
  68801. ref: refCallback,
  68802. width: size.width,
  68803. height: size.height
  68804. };
  68805. }, [refCallback, size.width, size.height]);
  68806. }
  68807. // src/components/components/Zoom/ZoomElement.tsx
  68808. var ZoomElementWrapper = styled.div(
  68809. ({ centered = !1, scale = 1, elementHeight }) => ({
  68810. height: elementHeight || "auto",
  68811. transformOrigin: centered ? "center top" : "left top",
  68812. transform: `scale(${1 / scale})`
  68813. })
  68814. );
  68815. function ZoomElement({ centered, scale, children }) {
  68816. let componentWrapperRef = (0, import_react110.useRef)(null), [elementHeight, setElementHeight] = (0, import_react110.useState)(0), onResize = (0, import_react110.useCallback)(
  68817. ({ height }) => {
  68818. height && setElementHeight(height / scale);
  68819. },
  68820. [scale]
  68821. );
  68822. return (0, import_react110.useEffect)(() => {
  68823. componentWrapperRef.current && setElementHeight(componentWrapperRef.current.getBoundingClientRect().height);
  68824. }, [scale]), useResizeObserver2({
  68825. ref: componentWrapperRef,
  68826. onResize
  68827. }), import_react110.default.createElement(ZoomElementWrapper, { centered, scale, elementHeight }, import_react110.default.createElement("div", { ref: componentWrapperRef, className: "innerZoomElementWrapper" }, children));
  68828. }
  68829. // src/components/components/Zoom/ZoomIFrame.tsx
  68830. var import_react111 = __toESM(require_react(), 1), ZoomIFrame = class extends import_react111.Component {
  68831. constructor() {
  68832. super(...arguments);
  68833. // @ts-expect-error (non strict)
  68834. this.iframe = null;
  68835. }
  68836. componentDidMount() {
  68837. let { iFrameRef } = this.props;
  68838. this.iframe = iFrameRef.current;
  68839. }
  68840. shouldComponentUpdate(nextProps) {
  68841. let { scale, active } = this.props;
  68842. return scale !== nextProps.scale && this.setIframeInnerZoom(nextProps.scale), active !== nextProps.active && this.iframe.setAttribute("data-is-storybook", nextProps.active ? "true" : "false"), nextProps.children.props.src !== this.props.children.props.src;
  68843. }
  68844. setIframeInnerZoom(scale) {
  68845. try {
  68846. Object.assign(this.iframe.contentDocument.body.style, {
  68847. width: `${1 / scale * 100}%`,
  68848. height: `${1 / scale * 100}%`,
  68849. transform: `scale(${scale})`,
  68850. transformOrigin: "top left"
  68851. });
  68852. } catch {
  68853. this.setIframeZoom(scale);
  68854. }
  68855. }
  68856. setIframeZoom(scale) {
  68857. Object.assign(this.iframe.style, {
  68858. width: `${1 / scale * 100}%`,
  68859. height: `${1 / scale * 100}%`,
  68860. transform: `scale(${scale})`,
  68861. transformOrigin: "top left"
  68862. });
  68863. }
  68864. render() {
  68865. let { children } = this.props;
  68866. return import_react111.default.createElement(import_react111.default.Fragment, null, children);
  68867. }
  68868. };
  68869. // src/components/components/Zoom/Zoom.tsx
  68870. var Zoom = {
  68871. Element: ZoomElement,
  68872. IFrame: ZoomIFrame
  68873. };
  68874. // src/components/components/ErrorFormatter/ErrorFormatter.tsx
  68875. var import_react112 = __toESM(require_react(), 1);
  68876. init_dist();
  68877. init_theming();
  68878. var { document: document11 } = scope, ErrorName = styled.strong(({ theme: theme3 }) => ({
  68879. color: theme3.color.orange
  68880. })), ErrorImportant = styled.strong(({ theme: theme3 }) => ({
  68881. color: theme3.color.ancillary,
  68882. textDecoration: "underline"
  68883. })), ErrorDetail = styled.em(({ theme: theme3 }) => ({
  68884. color: theme3.textMutedColor
  68885. })), firstLineRegex = /(Error): (.*)\n/, linesRegexChromium = /at (?:(.*) )?\(?(.+)\)?/, linesRegexFirefox = /([^@]+)?(?:\/<)?@(.+)?/, linesRegexSafari = /([^@]+)?@(.+)?/, ErrorFormatter = ({ error }) => {
  68886. if (!error)
  68887. return import_react112.default.createElement(import_react112.Fragment, null, "This error has no stack or message");
  68888. if (!error.stack)
  68889. return import_react112.default.createElement(import_react112.Fragment, null, error.message || "This error has no stack or message");
  68890. let input2 = error.stack.toString();
  68891. input2 && error.message && !input2.includes(error.message) && (input2 = `Error: ${error.message}
  68892. ${input2}`);
  68893. let match3 = input2.match(firstLineRegex);
  68894. if (!match3)
  68895. return import_react112.default.createElement(import_react112.Fragment, null, input2);
  68896. let [, type5, name] = match3, rawLines = input2.split(/\n/).slice(1), [, ...lines] = rawLines.map((line2) => {
  68897. let result = line2.match(linesRegexChromium) || line2.match(linesRegexFirefox) || line2.match(linesRegexSafari);
  68898. return result ? {
  68899. name: (result[1] || "").replace("/<", ""),
  68900. location: result[2].replace(document11.location.origin, "")
  68901. } : null;
  68902. }).filter(Boolean);
  68903. return import_react112.default.createElement(import_react112.Fragment, null, import_react112.default.createElement("span", null, type5), ": ", import_react112.default.createElement(ErrorName, null, name), import_react112.default.createElement("br", null), lines.map(
  68904. (l, i) => l?.name ? import_react112.default.createElement(import_react112.Fragment, { key: i }, " ", "at ", import_react112.default.createElement(ErrorImportant, null, l.name), " (", import_react112.default.createElement(ErrorDetail, null, l.location), ")", import_react112.default.createElement("br", null)) : import_react112.default.createElement(import_react112.Fragment, { key: i }, " ", "at ", import_react112.default.createElement(ErrorDetail, null, l?.location), import_react112.default.createElement("br", null))
  68905. ));
  68906. };
  68907. // src/components/components/Select/Select.tsx
  68908. var import_react125 = __toESM(require_react(), 1);
  68909. init_polished_esm();
  68910. init_theming();
  68911. // src/components/components/Form/Form.tsx
  68912. init_theming();
  68913. // src/components/components/Form/Checkbox.tsx
  68914. var import_react113 = __toESM(require_react(), 1);
  68915. init_theming();
  68916. var Input = styled.input(({ theme: theme3 }) => ({
  68917. appearance: "none",
  68918. backgroundColor: theme3.input.background,
  68919. border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
  68920. borderRadius: 2,
  68921. display: "grid",
  68922. flexShrink: 0,
  68923. height: 14,
  68924. margin: 0,
  68925. placeContent: "center",
  68926. transition: "background-color 0.1s",
  68927. width: 14,
  68928. "&:enabled": {
  68929. cursor: "pointer"
  68930. },
  68931. "&:disabled": {
  68932. backgroundColor: "transparent",
  68933. borderColor: theme3.input.border
  68934. },
  68935. "&:disabled:checked, &:disabled:indeterminate": {
  68936. backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark
  68937. },
  68938. "&:checked, &:indeterminate": {
  68939. border: "none",
  68940. backgroundColor: color.secondary
  68941. },
  68942. "&:checked::before": {
  68943. content: '""',
  68944. width: 14,
  68945. height: 14,
  68946. background: `no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`
  68947. },
  68948. "&:indeterminate::before": {
  68949. content: '""',
  68950. width: 8,
  68951. height: 2,
  68952. background: "white"
  68953. },
  68954. "&:enabled:focus-visible": {
  68955. outline: `2px solid ${theme3.color.secondary}`,
  68956. outlineOffset: 2
  68957. }
  68958. })), Checkbox = (props) => import_react113.default.createElement(Input, { ...props, type: "checkbox" });
  68959. // src/components/components/Form/Field.tsx
  68960. var import_react114 = __toESM(require_react(), 1);
  68961. init_theming();
  68962. var Wrapper2 = styled.label(({ theme: theme3 }) => ({
  68963. display: "flex",
  68964. borderBottom: `1px solid ${theme3.appBorderColor}`,
  68965. margin: "0 15px",
  68966. padding: "8px 0",
  68967. "&:last-child": {
  68968. marginBottom: "3rem"
  68969. }
  68970. })), Label = styled.span(({ theme: theme3 }) => ({
  68971. minWidth: 100,
  68972. fontWeight: theme3.typography.weight.bold,
  68973. marginRight: 15,
  68974. display: "flex",
  68975. justifyContent: "flex-start",
  68976. alignItems: "center",
  68977. lineHeight: "16px"
  68978. })), Field = ({ label, children, ...props }) => import_react114.default.createElement(Wrapper2, { ...props }, label ? import_react114.default.createElement(Label, null, import_react114.default.createElement("span", null, label)) : null, children);
  68979. // src/components/components/Form/Input.tsx
  68980. var import_react115 = __toESM(require_react(), 1), import_react116 = __toESM(require_react(), 1);
  68981. init_theming();
  68982. // src/components/components/Form/styles.ts
  68983. var sizes = (({ size }) => {
  68984. switch (size) {
  68985. case "100%":
  68986. return { width: "100%" };
  68987. case "flex":
  68988. return { flex: 1 };
  68989. case "auto":
  68990. default:
  68991. return { display: "inline" };
  68992. }
  68993. }), alignment = (({
  68994. align: align2
  68995. }) => {
  68996. switch (align2) {
  68997. case "end":
  68998. return { textAlign: "right" };
  68999. case "center":
  69000. return { textAlign: "center" };
  69001. case "start":
  69002. default:
  69003. return { textAlign: "left" };
  69004. }
  69005. }), validation = (({
  69006. valid,
  69007. theme: theme3
  69008. }) => {
  69009. switch (valid) {
  69010. case "valid":
  69011. return { boxShadow: `${theme3.color.positive} 0 0 0 1px inset !important` };
  69012. case "error":
  69013. return { boxShadow: `${theme3.color.negative} 0 0 0 1px inset !important` };
  69014. case "warn":
  69015. return {
  69016. boxShadow: `${theme3.color.warning} 0 0 0 1px inset`
  69017. };
  69018. case void 0:
  69019. case null:
  69020. default:
  69021. return {};
  69022. }
  69023. }), styleResets = {
  69024. // resets
  69025. appearance: "none",
  69026. border: "0 none",
  69027. boxSizing: "inherit",
  69028. display: "block",
  69029. margin: " 0",
  69030. background: "transparent",
  69031. padding: 0,
  69032. fontSize: "inherit",
  69033. position: "relative"
  69034. }, styles3 = (({ theme: theme3 }) => ({
  69035. ...styleResets,
  69036. transition: "box-shadow 200ms ease-out, opacity 200ms ease-out",
  69037. color: theme3.input.color || "inherit",
  69038. background: theme3.input.background,
  69039. boxShadow: `${theme3.input.border} 0 0 0 1px inset`,
  69040. borderRadius: theme3.input.borderRadius,
  69041. fontSize: theme3.typography.size.s2 - 1,
  69042. lineHeight: "20px",
  69043. padding: "6px 10px",
  69044. // 32
  69045. boxSizing: "border-box",
  69046. height: 32,
  69047. '&[type="file"]': {
  69048. height: "auto"
  69049. },
  69050. "&:focus": {
  69051. boxShadow: `${theme3.color.secondary} 0 0 0 1px inset`,
  69052. outline: "none",
  69053. "@media (forced-colors: active)": {
  69054. outline: "1px solid highlight"
  69055. }
  69056. },
  69057. '&[disabled], &[aria-disabled="true"]': {
  69058. background: theme3.base === "light" ? theme3.color.lighter : "transparent",
  69059. cursor: "not-allowed"
  69060. },
  69061. "&:-webkit-autofill": { WebkitBoxShadow: `0 0 0 3em ${theme3.color.lightest} inset` },
  69062. "&::placeholder": {
  69063. color: theme3.textMutedColor,
  69064. opacity: 1
  69065. }
  69066. }));
  69067. // src/components/components/Form/Input.tsx
  69068. var Wrapper3 = styled.div({
  69069. position: "relative",
  69070. width: "100%"
  69071. }), Mask = styled.div(
  69072. ({ theme: theme3 }) => ({
  69073. position: "absolute",
  69074. left: 0,
  69075. right: 0,
  69076. top: 0,
  69077. bottom: 0,
  69078. display: "flex",
  69079. alignItems: "center",
  69080. pointerEvents: "none",
  69081. overflow: "hidden",
  69082. color: theme3.textMutedColor,
  69083. "span:first-of-type": {
  69084. opacity: 0
  69085. }
  69086. }),
  69087. (props) => {
  69088. let { fontSize, lineHeight, padding } = styles3(props);
  69089. return { fontSize, lineHeight, padding };
  69090. }
  69091. ), Input2 = Object.assign(
  69092. styled(
  69093. (0, import_react116.forwardRef)(function({ size, valid, align: align2, value, suffix, ...props }, ref) {
  69094. let suffixId = $bdb11010cef70236$export$f680877a34711e37();
  69095. return import_react115.default.createElement(Wrapper3, null, import_react115.default.createElement(
  69096. "input",
  69097. {
  69098. ...props,
  69099. value,
  69100. ref,
  69101. "aria-describedby": suffix ? suffixId : void 0
  69102. }
  69103. ), suffix && import_react115.default.createElement(Mask, { "aria-hidden": !0 }, import_react115.default.createElement("span", null, value), import_react115.default.createElement("span", { id: suffixId }, suffix)));
  69104. })
  69105. )(styles3, sizes, alignment, validation, {
  69106. minHeight: 32,
  69107. width: "100%"
  69108. }),
  69109. {
  69110. displayName: "Input"
  69111. }
  69112. );
  69113. // src/components/components/Form/Radio.tsx
  69114. var import_react117 = __toESM(require_react(), 1);
  69115. init_theming();
  69116. var Input4 = styled.input(({ theme: theme3 }) => ({
  69117. appearance: "none",
  69118. backgroundColor: theme3.input.background,
  69119. border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
  69120. borderRadius: 8,
  69121. display: "grid",
  69122. flexShrink: 0,
  69123. height: 16,
  69124. margin: -1,
  69125. placeContent: "center",
  69126. transition: "background-color 0.1s",
  69127. width: 16,
  69128. "&:enabled": {
  69129. cursor: "pointer"
  69130. },
  69131. "&:disabled": {
  69132. backgroundColor: "transparent",
  69133. borderColor: theme3.input.border
  69134. },
  69135. "&:disabled:checked": {
  69136. backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark,
  69137. borderColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark
  69138. },
  69139. "&:checked": {
  69140. backgroundColor: color.secondary,
  69141. borderColor: color.secondary,
  69142. boxShadow: `inset 0 0 0 2px ${theme3.input.background}`
  69143. },
  69144. "&:enabled:focus-visible": {
  69145. outline: `2px solid ${theme3.color.secondary}`,
  69146. outlineOffset: 2
  69147. }
  69148. })), Radio = (props) => import_react117.default.createElement(Input4, { ...props, type: "radio" });
  69149. // src/components/components/Form/Select.tsx
  69150. var import_react118 = __toESM(require_react(), 1);
  69151. init_theming();
  69152. var BaseSelect = styled.select(sizes, ({ theme: theme3 }) => ({
  69153. appearance: "none",
  69154. background: `calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,
  69155. backgroundSize: 10,
  69156. padding: "6px 30px 6px 10px",
  69157. "@supports (appearance: base-select)": {
  69158. appearance: "base-select",
  69159. background: theme3.input.background,
  69160. padding: "6px 10px"
  69161. },
  69162. transition: "box-shadow 200ms ease-out, opacity 200ms ease-out",
  69163. color: theme3.input.color || "inherit",
  69164. boxShadow: `${theme3.input.border} 0 0 0 1px inset`,
  69165. borderRadius: theme3.input.borderRadius,
  69166. fontSize: theme3.typography.size.s2 - 1,
  69167. lineHeight: "20px",
  69168. boxSizing: "border-box",
  69169. border: "none",
  69170. cursor: "pointer",
  69171. "& > button": {
  69172. display: "flex",
  69173. alignItems: "center",
  69174. justifyContent: "space-between",
  69175. width: "100%",
  69176. gap: 8,
  69177. "& > svg": {
  69178. width: 14,
  69179. height: 14,
  69180. color: theme3.textMutedColor
  69181. }
  69182. },
  69183. "&:has(option:not([hidden]):checked)": {
  69184. color: theme3.color.defaultText
  69185. },
  69186. "&:focus-visible, &:focus-within": {
  69187. outline: "none",
  69188. boxShadow: `${theme3.color.secondary} 0 0 0 1px inset`
  69189. },
  69190. "&::picker-icon": {
  69191. display: "none"
  69192. },
  69193. "&::picker(select)": {
  69194. appearance: "base-select",
  69195. border: `1px solid ${theme3.input.border}`,
  69196. padding: 4,
  69197. marginTop: 4,
  69198. background: theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  69199. filter: `
  69200. drop-shadow(0 5px 5px rgba(0,0,0,0.05))
  69201. drop-shadow(0 0 3px rgba(0,0,0,0.1))
  69202. `,
  69203. borderRadius: theme3.appBorderRadius + 2,
  69204. fontSize: theme3.typography.size.s1,
  69205. cursor: "default",
  69206. transition: "opacity 100ms ease-in-out, transform 100ms ease-in-out",
  69207. transformOrigin: "top",
  69208. transform: "translateY(0)",
  69209. opacity: 1,
  69210. "@starting-style": {
  69211. transform: "translateY(-0.25rem) scale(0.95)",
  69212. opacity: 0
  69213. }
  69214. },
  69215. "& optgroup label": {
  69216. display: "block",
  69217. padding: "3px 6px"
  69218. },
  69219. "& option": {
  69220. lineHeight: "18px",
  69221. padding: "7px 10px",
  69222. borderRadius: 4,
  69223. outline: "none",
  69224. cursor: "pointer",
  69225. color: theme3.color.defaultText,
  69226. "&::checkmark": {
  69227. display: "none"
  69228. },
  69229. "&:hover, &:focus-visible": {
  69230. backgroundColor: theme3.background.hoverable
  69231. },
  69232. "&:checked": {
  69233. color: theme3.color.secondary,
  69234. fontWeight: theme3.typography.weight.bold
  69235. },
  69236. "&:disabled": {
  69237. backgroundColor: "transparent",
  69238. cursor: "default",
  69239. color: theme3.color.defaultText
  69240. }
  69241. }
  69242. })), Select = ({ children, ...props }) => (
  69243. // @ts-expect-error Weird props mismatch
  69244. import_react118.default.createElement(BaseSelect, { ...props }, !isTestEnvironment() && import_react118.default.createElement("button", null, import_react118.default.createElement("selectedcontent", null), import_react118.default.createElement(
  69245. "svg",
  69246. {
  69247. xmlns: "http://www.w3.org/2000/svg",
  69248. viewBox: "0 0 24 24",
  69249. fill: "none",
  69250. stroke: "currentColor",
  69251. strokeWidth: "2",
  69252. strokeLinecap: "round",
  69253. strokeLinejoin: "round",
  69254. "aria-hidden": "true"
  69255. },
  69256. import_react118.default.createElement("path", { d: "m6 9 6 6 6-6" })
  69257. )), import_react118.default.createElement("optgroup", null, children))
  69258. );
  69259. // src/components/components/Form/Textarea.tsx
  69260. var import_react122 = __toESM(require_react(), 1);
  69261. // ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js
  69262. init_extends();
  69263. init_objectWithoutPropertiesLoose();
  69264. var React60 = __toESM(require_react());
  69265. // ../../node_modules/use-latest/dist/use-latest.esm.js
  69266. var import_react120 = __toESM(require_react());
  69267. // ../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js
  69268. var import_react119 = __toESM(require_react()), index2 = import_react119.useLayoutEffect;
  69269. // ../../node_modules/use-latest/dist/use-latest.esm.js
  69270. var useLatest = function(value) {
  69271. var ref = import_react120.default.useRef(value);
  69272. return index2(function() {
  69273. ref.current = value;
  69274. }), ref;
  69275. };
  69276. // ../../node_modules/use-composed-ref/dist/use-composed-ref.esm.js
  69277. var import_react121 = __toESM(require_react()), updateRef = function(ref, value) {
  69278. if (typeof ref == "function") {
  69279. ref(value);
  69280. return;
  69281. }
  69282. ref.current = value;
  69283. }, useComposedRef = function(libRef, userRef) {
  69284. var prevUserRef = import_react121.default.useRef();
  69285. return import_react121.default.useCallback(function(instance) {
  69286. libRef.current = instance, prevUserRef.current && updateRef(prevUserRef.current, null), prevUserRef.current = userRef, userRef && updateRef(userRef, instance);
  69287. }, [userRef]);
  69288. };
  69289. // ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js
  69290. var HIDDEN_TEXTAREA_STYLE = {
  69291. "min-height": "0",
  69292. "max-height": "none",
  69293. height: "0",
  69294. visibility: "hidden",
  69295. overflow: "hidden",
  69296. position: "absolute",
  69297. "z-index": "-1000",
  69298. top: "0",
  69299. right: "0",
  69300. display: "block"
  69301. }, forceHiddenStyles = function(node2) {
  69302. Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) {
  69303. node2.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], "important");
  69304. });
  69305. }, forceHiddenStyles$1 = forceHiddenStyles, hiddenTextarea = null, getHeight = function(node2, sizingData) {
  69306. var height = node2.scrollHeight;
  69307. return sizingData.sizingStyle.boxSizing === "border-box" ? height + sizingData.borderSize : height - sizingData.paddingSize;
  69308. };
  69309. function calculateNodeHeight(sizingData, value, minRows, maxRows) {
  69310. minRows === void 0 && (minRows = 1), maxRows === void 0 && (maxRows = 1 / 0), hiddenTextarea || (hiddenTextarea = document.createElement("textarea"), hiddenTextarea.setAttribute("tabindex", "-1"), hiddenTextarea.setAttribute("aria-hidden", "true"), forceHiddenStyles$1(hiddenTextarea)), hiddenTextarea.parentNode === null && document.body.appendChild(hiddenTextarea);
  69311. var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle, boxSizing = sizingStyle.boxSizing;
  69312. Object.keys(sizingStyle).forEach(function(_key) {
  69313. var key = _key;
  69314. hiddenTextarea.style[key] = sizingStyle[key];
  69315. }), forceHiddenStyles$1(hiddenTextarea), hiddenTextarea.value = value;
  69316. var height = getHeight(hiddenTextarea, sizingData);
  69317. hiddenTextarea.value = value, height = getHeight(hiddenTextarea, sizingData), hiddenTextarea.value = "x";
  69318. var rowHeight = hiddenTextarea.scrollHeight - paddingSize, minHeight = rowHeight * minRows;
  69319. boxSizing === "border-box" && (minHeight = minHeight + paddingSize + borderSize), height = Math.max(minHeight, height);
  69320. var maxHeight = rowHeight * maxRows;
  69321. return boxSizing === "border-box" && (maxHeight = maxHeight + paddingSize + borderSize), height = Math.min(maxHeight, height), [height, rowHeight];
  69322. }
  69323. var noop3 = function() {
  69324. }, pick2 = function(props, obj) {
  69325. return props.reduce(function(acc, prop) {
  69326. return acc[prop] = obj[prop], acc;
  69327. }, {});
  69328. }, SIZING_STYLE = [
  69329. "borderBottomWidth",
  69330. "borderLeftWidth",
  69331. "borderRightWidth",
  69332. "borderTopWidth",
  69333. "boxSizing",
  69334. "fontFamily",
  69335. "fontSize",
  69336. "fontStyle",
  69337. "fontWeight",
  69338. "letterSpacing",
  69339. "lineHeight",
  69340. "paddingBottom",
  69341. "paddingLeft",
  69342. "paddingRight",
  69343. "paddingTop",
  69344. // non-standard
  69345. "tabSize",
  69346. "textIndent",
  69347. // non-standard
  69348. "textRendering",
  69349. "textTransform",
  69350. "width",
  69351. "wordBreak",
  69352. "wordSpacing",
  69353. "scrollbarGutter"
  69354. ], isIE = !!document.documentElement.currentStyle, getSizingData = function(node2) {
  69355. var style = window.getComputedStyle(node2);
  69356. if (style === null)
  69357. return null;
  69358. var sizingStyle = pick2(SIZING_STYLE, style), boxSizing = sizingStyle.boxSizing;
  69359. if (boxSizing === "")
  69360. return null;
  69361. isIE && boxSizing === "border-box" && (sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + "px");
  69362. var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop), borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);
  69363. return {
  69364. sizingStyle,
  69365. paddingSize,
  69366. borderSize
  69367. };
  69368. }, getSizingData$1 = getSizingData;
  69369. function useListener(target, type5, listener) {
  69370. var latestListener = useLatest(listener);
  69371. React60.useLayoutEffect(function() {
  69372. var handler = function(ev) {
  69373. return latestListener.current(ev);
  69374. };
  69375. if (target)
  69376. return target.addEventListener(type5, handler), function() {
  69377. return target.removeEventListener(type5, handler);
  69378. };
  69379. }, []);
  69380. }
  69381. var useFormResetListener = function(libRef, listener) {
  69382. useListener(document.body, "reset", function(ev) {
  69383. libRef.current.form === ev.target && listener(ev);
  69384. });
  69385. }, useWindowResizeListener = function(listener) {
  69386. useListener(window, "resize", listener);
  69387. }, useFontsLoadedListener = function(listener) {
  69388. useListener(document.fonts, "loadingdone", listener);
  69389. }, _excluded4 = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], TextareaAutosize = function(_ref, userRef) {
  69390. var cacheMeasurements = _ref.cacheMeasurements, maxRows = _ref.maxRows, minRows = _ref.minRows, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop3 : _ref$onChange, _ref$onHeightChange = _ref.onHeightChange, onHeightChange = _ref$onHeightChange === void 0 ? noop3 : _ref$onHeightChange, props = _objectWithoutPropertiesLoose(_ref, _excluded4), isControlled = props.value !== void 0, libRef = React60.useRef(null), ref = useComposedRef(libRef, userRef), heightRef = React60.useRef(0), measurementsCacheRef = React60.useRef(), resizeTextarea = function() {
  69391. var node2 = libRef.current, nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node2);
  69392. if (nodeSizingData) {
  69393. measurementsCacheRef.current = nodeSizingData;
  69394. var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node2.value || node2.placeholder || "x", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1];
  69395. heightRef.current !== height && (heightRef.current = height, node2.style.setProperty("height", height + "px", "important"), onHeightChange(height, {
  69396. rowHeight
  69397. }));
  69398. }
  69399. }, handleChange = function(event) {
  69400. isControlled || resizeTextarea(), onChange(event);
  69401. };
  69402. return React60.useLayoutEffect(resizeTextarea), useFormResetListener(libRef, function() {
  69403. if (!isControlled) {
  69404. var currentValue = libRef.current.value;
  69405. requestAnimationFrame(function() {
  69406. var node2 = libRef.current;
  69407. node2 && currentValue !== node2.value && resizeTextarea();
  69408. });
  69409. }
  69410. }), useWindowResizeListener(resizeTextarea), useFontsLoadedListener(resizeTextarea), React60.createElement("textarea", _extends({}, props, {
  69411. onChange: handleChange,
  69412. ref
  69413. }));
  69414. }, index3 = React60.forwardRef(TextareaAutosize);
  69415. // src/components/components/Form/Textarea.tsx
  69416. init_theming();
  69417. var Textarea = Object.assign(
  69418. styled(
  69419. (0, import_react122.forwardRef)(function({ size, valid, align: align2, ...props }, ref) {
  69420. return import_react122.default.createElement(index3, { ...props, ref });
  69421. })
  69422. )(styles3, sizes, alignment, validation, ({ height = 400 }) => ({
  69423. overflow: "visible",
  69424. maxHeight: height
  69425. })),
  69426. {
  69427. displayName: "Textarea"
  69428. }
  69429. );
  69430. // src/components/components/Form/Form.tsx
  69431. var Form2 = Object.assign(
  69432. styled.form({
  69433. boxSizing: "border-box",
  69434. width: "100%"
  69435. }),
  69436. {
  69437. Field,
  69438. Input: Input2,
  69439. Select,
  69440. Textarea,
  69441. Button,
  69442. Checkbox,
  69443. Radio
  69444. }
  69445. );
  69446. // src/components/components/Popover/Popover.tsx
  69447. var import_react123 = __toESM(require_react(), 1);
  69448. init_theming();
  69449. var Wrapper4 = styled.div(
  69450. ({ hasCloseButton, padding }) => ({
  69451. display: "inline-block",
  69452. position: "relative",
  69453. minHeight: hasCloseButton ? 36 : void 0,
  69454. zIndex: 2147483647,
  69455. colorScheme: "light dark",
  69456. padding
  69457. }),
  69458. ({ theme: theme3, hasChrome }) => hasChrome ? {
  69459. filter: `
  69460. drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
  69461. drop-shadow(0 1px 3px rgba(0,0,0,0.1))
  69462. `,
  69463. borderRadius: theme3.appBorderRadius + 2,
  69464. fontSize: theme3.typography.size.s1
  69465. } : {},
  69466. ({ theme: theme3, bgColor }) => bgColor === "default" && {
  69467. background: theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app,
  69468. color: theme3.color.defaultText
  69469. },
  69470. ({ theme: theme3, bgColor }) => bgColor === "inverse" && {
  69471. background: theme3.base === "light" ? theme3.color.darkest : theme3.color.lightest,
  69472. color: theme3.color.inverseText
  69473. },
  69474. ({ theme: theme3, bgColor }) => (bgColor === "positive" || bgColor === "negative" || bgColor === "warning") && {
  69475. background: theme3.background[bgColor],
  69476. color: theme3.color[`${bgColor}Text`]
  69477. }
  69478. ), AbsoluteButton = styled(Button)({
  69479. position: "absolute",
  69480. top: 4,
  69481. right: 4
  69482. }), Popover = (0, import_react123.forwardRef)(
  69483. ({
  69484. children,
  69485. color: color2 = "default",
  69486. hasChrome = !0,
  69487. hideLabel = "Close",
  69488. onHide,
  69489. padding = 8,
  69490. ...props
  69491. }, ref) => import_react123.default.createElement(
  69492. Wrapper4,
  69493. {
  69494. bgColor: color2,
  69495. hasChrome,
  69496. hasCloseButton: !!onHide,
  69497. padding,
  69498. ref,
  69499. ...props
  69500. },
  69501. children,
  69502. onHide && import_react123.default.createElement(
  69503. AbsoluteButton,
  69504. {
  69505. ariaLabel: hideLabel,
  69506. onClick: onHide,
  69507. padding: "small",
  69508. variant: "ghost",
  69509. size: "small"
  69510. },
  69511. import_react123.default.createElement(CloseIcon, null)
  69512. )
  69513. )
  69514. );
  69515. Popover.displayName = "Popover";
  69516. // src/components/components/Select/SelectOption.tsx
  69517. var import_react124 = __toESM(require_react(), 1);
  69518. var SelectOption = ({
  69519. id,
  69520. title,
  69521. description,
  69522. icon,
  69523. aside,
  69524. children,
  69525. isSelected,
  69526. isActive,
  69527. onClick,
  69528. onFocus,
  69529. onKeyDown,
  69530. shouldLookDisabled = !1,
  69531. ...props
  69532. }) => import_react124.default.createElement(
  69533. ActionList.Item,
  69534. {
  69535. ...props,
  69536. id,
  69537. role: "option",
  69538. tabIndex: isActive ? 0 : -1,
  69539. "aria-selected": isSelected,
  69540. "aria-disabled": shouldLookDisabled ? !0 : void 0,
  69541. onClick,
  69542. onFocus,
  69543. onKeyDown
  69544. },
  69545. children ?? import_react124.default.createElement(import_react124.default.Fragment, null, icon && import_react124.default.createElement(ActionList.Icon, null, icon), import_react124.default.createElement(ActionList.Text, null, import_react124.default.createElement("p", null, title), description && import_react124.default.createElement("small", null, description)), aside)
  69546. );
  69547. SelectOption.displayName = "SelectOption";
  69548. // src/components/components/Select/helpers.tsx
  69549. init_theming();
  69550. var PAGE_STEP_SIZE = 5, UNDEFINED_VALUE = Symbol.for("undefined");
  69551. function isLiteralValue(value) {
  69552. return value == null || typeof value == "string" || typeof value == "number" || typeof value == "boolean" || typeof value == "symbol";
  69553. }
  69554. function optionToInternal(option) {
  69555. return {
  69556. ...option,
  69557. type: "option",
  69558. value: externalToValue(option.value)
  69559. };
  69560. }
  69561. function optionOrResetToInternal(option) {
  69562. return "type" in option && option.type === "reset" ? option : optionToInternal(option);
  69563. }
  69564. function valueToExternal(value) {
  69565. if (value !== UNDEFINED_VALUE)
  69566. return value;
  69567. }
  69568. function externalToValue(value) {
  69569. return value === void 0 ? UNDEFINED_VALUE : value;
  69570. }
  69571. var Listbox = styled("ul")({
  69572. minWidth: 180,
  69573. height: "100%",
  69574. borderRadius: 6,
  69575. overflow: "hidden auto",
  69576. listStyle: "none",
  69577. margin: 0,
  69578. padding: 4
  69579. });
  69580. // src/components/components/Select/Select.tsx
  69581. function valueToId(parentId, { value }) {
  69582. return `${parentId}-opt-${String(value) ?? "sb-reset"}`;
  69583. }
  69584. var SelectedOptionCount = styled.span(({ theme: theme3 }) => ({
  69585. appearance: "none",
  69586. color: theme3.textMutedColor,
  69587. fontSize: 12
  69588. }));
  69589. function setSelectedFromDefault(options, defaultOptions2) {
  69590. return defaultOptions2 === void 0 ? [] : isLiteralValue(defaultOptions2) ? options.filter((opt) => opt.value === defaultOptions2).map(optionToInternal) : options.filter((opt) => defaultOptions2.some((def) => opt.value === def)).map(optionToInternal);
  69591. }
  69592. var StyledButton3 = styled(Button)(
  69593. ({ $isOpen: isOpen, $hasSelection: hasSelection, theme: theme3 }) => isOpen || hasSelection ? {
  69594. boxShadow: "none",
  69595. background: curriedTransparentize$1(0.93, theme3.barSelectedColor),
  69596. color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary
  69597. } : {}
  69598. ), Underlay = styled.div({
  69599. position: "fixed",
  69600. inset: 0,
  69601. // This will do for now, our popovers use the max z-index of 2147483647. We'll want to
  69602. // inherit a base from a CSS variable and add preset values to it in the future (e.g.
  69603. // 100 for underlay, 200 for overlay) if we start using Select in dialogs.
  69604. zIndex: 1e3
  69605. }), MinimalistPopover = ({ children, handleClose, triggerRef }) => {
  69606. let popoverRef = import_react125.default.useRef(null);
  69607. $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
  69608. ref: popoverRef,
  69609. onInteractOutside: handleClose
  69610. }), (0, import_react125.useEffect)(() => {
  69611. if (popoverRef.current)
  69612. return $5e3802645cc19319$export$1c3ebcada18427bf([popoverRef.current], { shouldUseInert: !0 });
  69613. }, []);
  69614. let { overlayProps: positionProps } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
  69615. targetRef: triggerRef,
  69616. overlayRef: popoverRef,
  69617. placement: "bottom start",
  69618. offset: 8,
  69619. maxHeight: 504,
  69620. isOpen: !0
  69621. }), { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(
  69622. {
  69623. isOpen: !0,
  69624. onClose: handleClose,
  69625. isDismissable: !0,
  69626. /* We do this ourselves. */
  69627. shouldCloseOnBlur: !1,
  69628. /* We also do this ourselves. */
  69629. isKeyboardDismissDisabled: !0
  69630. },
  69631. popoverRef
  69632. ), theme3 = useTheme();
  69633. return positionProps.style = {
  69634. ...positionProps.style,
  69635. overflow: "hidden auto",
  69636. scrollbarColor: `${theme3.barTextColor} transparent`,
  69637. scrollbarWidth: "thin"
  69638. }, import_react125.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { disableFocusManagement: !0, ...overlayProps }, import_react125.default.createElement(Underlay, { ...underlayProps }), import_react125.default.createElement(Popover, { hasChrome: !0, ref: popoverRef, padding: 0, ...positionProps }, children));
  69639. }, Select2 = (0, import_react125.forwardRef)(
  69640. ({
  69641. children,
  69642. icon,
  69643. disabled = !1,
  69644. options: calleeOptions,
  69645. defaultOptions: defaultOptions2,
  69646. multiSelect = !1,
  69647. onReset,
  69648. padding = "small",
  69649. resetLabel,
  69650. onSelect,
  69651. onDeselect,
  69652. onChange,
  69653. tooltip,
  69654. ariaLabel,
  69655. showSelectedOptionTitle = !0,
  69656. ...props
  69657. }, ref) => {
  69658. let [isOpen, setIsOpen] = (0, import_react125.useState)(props.defaultOpen || !1), [shouldRefocusTrigger, setShouldRefocusTrigger] = (0, import_react125.useState)(!1), triggerRef = $df56164dff5785e2$export$4338b53315abf666(ref), id = (0, import_react125.useMemo)(() => "select-" + Math.random().toString(36).substring(2, 15), []), listboxId = `${id}-listbox`, listboxRef = (0, import_react125.useRef)(null), otState = $fc909762b330b746$export$61c6a8c84e605fb6({
  69659. isOpen: isOpen && !disabled,
  69660. onOpenChange: setIsOpen
  69661. }), handleClose = (0, import_react125.useCallback)(() => {
  69662. setIsOpen(!1), setShouldRefocusTrigger(!0);
  69663. }, []);
  69664. (0, import_react125.useEffect)(() => {
  69665. !otState.isOpen && shouldRefocusTrigger && (triggerRef.current?.focus(), setShouldRefocusTrigger(!1));
  69666. }, [otState.isOpen, shouldRefocusTrigger, triggerRef]);
  69667. let [selectedOptions, setSelectedOptions] = (0, import_react125.useState)(
  69668. setSelectedFromDefault(calleeOptions, defaultOptions2)
  69669. ), handleSelectOption = (0, import_react125.useCallback)(
  69670. (option) => {
  69671. option.type === "reset" ? (onChange?.([]), onReset?.(), setSelectedOptions([])) : setSelectedOptions(multiSelect ? (previous) => {
  69672. let newSelected = [];
  69673. return previous?.some((opt) => opt.value === option.value) ? (onDeselect?.(valueToExternal(option.value)), newSelected = previous?.filter((opt) => opt.value !== option.value) ?? []) : (onSelect?.(valueToExternal(option.value)), newSelected = [...previous ?? [], option]), onChange?.(newSelected.map((opt) => valueToExternal(opt.value))), newSelected;
  69674. } : (current) => current.every((opt) => opt.value !== option.value) ? (onSelect?.(valueToExternal(option.value)), onChange?.([valueToExternal(option.value)]), [option]) : current);
  69675. },
  69676. [multiSelect, onChange, onSelect, onDeselect, onReset]
  69677. ), resetOption = (0, import_react125.useMemo)(
  69678. () => onReset ? {
  69679. type: "reset",
  69680. value: void 0,
  69681. title: resetLabel ?? "Reset selection",
  69682. icon: import_react125.default.createElement(RefreshIcon, null),
  69683. description: void 0,
  69684. children: void 0
  69685. } : void 0,
  69686. [onReset, resetLabel]
  69687. ), options = (0, import_react125.useMemo)(
  69688. () => resetOption ? [resetOption, ...calleeOptions] : calleeOptions,
  69689. [calleeOptions, resetOption]
  69690. );
  69691. (0, import_react125.useEffect)(() => {
  69692. defaultOptions2 && setSelectedOptions(setSelectedFromDefault(calleeOptions, defaultOptions2));
  69693. }, [defaultOptions2, calleeOptions]);
  69694. let [activeOption, setActiveOptionState] = (0, import_react125.useState)(
  69695. void 0
  69696. ), setActiveOption = (0, import_react125.useCallback)(
  69697. (option, changeSelection = !0) => {
  69698. setActiveOptionState(optionOrResetToInternal(option)), !multiSelect && changeSelection && handleSelectOption(optionOrResetToInternal(option));
  69699. },
  69700. [multiSelect, handleSelectOption]
  69701. ), moveActiveOptionDown = (0, import_react125.useCallback)(
  69702. (step2 = 1) => {
  69703. if (!isOpen || !activeOption) {
  69704. setActiveOption(options[step2 === 1 ? 0 : Math.min(step2, options.length - 1)]);
  69705. return;
  69706. }
  69707. let currentIndex = options.findIndex(
  69708. (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
  69709. ), nextIndex = currentIndex + step2, newActiveOption;
  69710. nextIndex >= options.length && currentIndex === options.length - 1 ? newActiveOption = options[0] : newActiveOption = options[Math.min(options.length - 1, nextIndex)], setActiveOption(newActiveOption);
  69711. },
  69712. [isOpen, activeOption, setActiveOption, options]
  69713. ), moveActiveOptionUp = (0, import_react125.useCallback)(
  69714. (step2 = 1) => {
  69715. if (!isOpen || !activeOption) {
  69716. setActiveOption(options[Math.max(0, options.length - step2)]);
  69717. return;
  69718. }
  69719. let currentIndex = options.findIndex(
  69720. (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
  69721. ), nextIndex = currentIndex - step2, newActiveOption;
  69722. nextIndex < 0 && currentIndex === 0 ? newActiveOption = options[options.length - 1] : newActiveOption = options[Math.max(0, nextIndex)], setActiveOption(newActiveOption);
  69723. },
  69724. [isOpen, activeOption, setActiveOption, options]
  69725. ), handleButtonKeyDown = (0, import_react125.useCallback)(
  69726. (e) => {
  69727. let openAt = (index4) => {
  69728. e.preventDefault(), setActiveOption(options[index4]), setIsOpen(!0);
  69729. }, indexOfFirstSelected = options.findIndex(
  69730. (option) => selectedOptions.some((sel) => sel.value === externalToValue(option.value))
  69731. ), hasSelection = indexOfFirstSelected !== -1, listStart = resetOption && !hasSelection ? 1 : 0, listEnd = options.length - 1;
  69732. e.key === "Enter" || e.key === " " ? openAt(hasSelection ? Math.min(indexOfFirstSelected, listEnd) : listStart) : e.key === "ArrowDown" ? openAt(hasSelection ? Math.min(indexOfFirstSelected + 1, listEnd) : listStart) : e.key === "ArrowUp" ? openAt(hasSelection ? Math.max(indexOfFirstSelected - 1, listStart) : listEnd) : e.key === "Home" ? openAt(listStart) : e.key === "End" ? openAt(listEnd) : e.key === "PageDown" ? openAt(
  69733. Math.min((hasSelection ? indexOfFirstSelected : listStart) + PAGE_STEP_SIZE, listEnd)
  69734. ) : e.key === "PageUp" && openAt(Math.max(0, (hasSelection ? indexOfFirstSelected : listEnd) - PAGE_STEP_SIZE));
  69735. },
  69736. [options, resetOption, setActiveOption, selectedOptions]
  69737. ), handleListboxKeyDown = (0, import_react125.useCallback)(
  69738. (e) => {
  69739. e.key !== "Tab" ? e.preventDefault() : handleClose(), e.key === "Escape" ? handleClose() : e.key === "ArrowDown" ? moveActiveOptionDown() : e.key === "ArrowUp" ? moveActiveOptionUp() : e.key === "Home" ? setActiveOption(options[0]) : e.key === "End" ? setActiveOption(options[options.length - 1]) : e.key === "PageDown" ? moveActiveOptionDown(PAGE_STEP_SIZE) : e.key === "PageUp" && moveActiveOptionUp(PAGE_STEP_SIZE);
  69740. },
  69741. [handleClose, moveActiveOptionDown, moveActiveOptionUp, options, setActiveOption]
  69742. );
  69743. (0, import_react125.useEffect)(() => {
  69744. if (isOpen && activeOption) {
  69745. let optionElement = document.getElementById(valueToId(id, activeOption));
  69746. optionElement && (optionElement.scrollIntoView({ block: "nearest" }), optionElement.focus());
  69747. } else isOpen && listboxRef.current?.focus();
  69748. }, [isOpen, activeOption, id]);
  69749. let finalAriaLabel = (0, import_react125.useMemo)(() => selectedOptions.length === 1 ? `${ariaLabel} ${selectedOptions[0].title}` : selectedOptions.length ? `${ariaLabel}, ${selectedOptions.length} values selected` : ariaLabel, [ariaLabel, selectedOptions]);
  69750. return import_react125.default.createElement(import_react125.default.Fragment, null, import_react125.default.createElement(
  69751. StyledButton3,
  69752. {
  69753. ...props,
  69754. variant: "ghost",
  69755. ariaLabel: finalAriaLabel,
  69756. tooltip: tooltip ?? ariaLabel,
  69757. disableAllTooltips: isOpen,
  69758. id,
  69759. ref: triggerRef,
  69760. padding,
  69761. $isOpen: isOpen,
  69762. $hasSelection: !!selectedOptions.length,
  69763. "aria-disabled": disabled,
  69764. disabled,
  69765. onClick: () => {
  69766. isOpen ? handleClose() : setIsOpen(!0);
  69767. },
  69768. tabIndex: isOpen ? -1 : 0,
  69769. onKeyDown: handleButtonKeyDown,
  69770. role: "button",
  69771. "aria-controls": isOpen ? listboxId : void 0,
  69772. "aria-expanded": isOpen,
  69773. "aria-haspopup": "listbox"
  69774. },
  69775. !multiSelect && import_react125.default.createElement(import_react125.default.Fragment, null, icon, showSelectedOptionTitle && selectedOptions[0]?.title || children),
  69776. multiSelect && import_react125.default.createElement(import_react125.default.Fragment, null, icon, children, !!selectedOptions.length && import_react125.default.createElement(
  69777. SelectedOptionCount,
  69778. {
  69779. "aria-label": `${selectedOptions.length} ${selectedOptions.length > 1 ? "items" : "item"} selected`
  69780. },
  69781. selectedOptions?.length
  69782. ))
  69783. ), otState.isOpen && import_react125.default.createElement(MinimalistPopover, { handleClose, triggerRef }, import_react125.default.createElement(
  69784. Listbox,
  69785. {
  69786. "aria-label": ariaLabel,
  69787. role: "listbox",
  69788. id: listboxId,
  69789. ref: listboxRef,
  69790. "aria-multiselectable": multiSelect,
  69791. onKeyDown: handleListboxKeyDown,
  69792. tabIndex: isOpen ? 0 : -1
  69793. },
  69794. options.map((opt) => ({
  69795. option: optionOrResetToInternal(opt),
  69796. externalOption: opt
  69797. })).map(({ externalOption, option }) => {
  69798. let isSelected = selectedOptions?.some((sel) => sel.value === option.value) && option !== resetOption, isReset = option === resetOption;
  69799. return import_react125.default.createElement(
  69800. SelectOption,
  69801. {
  69802. key: option.value === void 0 ? "sb-reset" : String(option.value),
  69803. title: option.title,
  69804. description: option.description,
  69805. aside: option.aside,
  69806. icon: !isReset && multiSelect ? (
  69807. // Purely decorative.
  69808. import_react125.default.createElement(Form2.Checkbox, { checked: isSelected, hidden: !0, role: "presentation" })
  69809. ) : option.icon,
  69810. id: valueToId(id, option),
  69811. isActive: isOpen && activeOption?.value === option.value,
  69812. isSelected,
  69813. onClick: () => {
  69814. handleSelectOption(option), multiSelect || handleClose();
  69815. },
  69816. onFocus: () => setActiveOption(externalOption, !1),
  69817. shouldLookDisabled: isReset && selectedOptions.length === 0 && multiSelect,
  69818. onKeyDown: (e) => {
  69819. e.key === "Enter" || e.key === " " ? (e.preventDefault(), handleSelectOption(option), multiSelect || handleClose()) : e.key === "Tab" && (multiSelect || handleSelectOption(option), handleClose());
  69820. }
  69821. },
  69822. option.children
  69823. );
  69824. })
  69825. )));
  69826. }
  69827. );
  69828. Select2.displayName = "Select";
  69829. // src/components/components/Popover/PopoverProvider.tsx
  69830. var import_react157 = __toESM(require_react(), 1);
  69831. init_client_logger();
  69832. // ../../node_modules/@react-aria/collections/dist/BaseCollection.mjs
  69833. var $23b9f4fcf0fe224b$export$d68d59712b04d9d1 = class {
  69834. get childNodes() {
  69835. throw new Error("childNodes is not supported");
  69836. }
  69837. clone() {
  69838. let node2 = new this.constructor(this.key);
  69839. return node2.value = this.value, node2.level = this.level, node2.hasChildNodes = this.hasChildNodes, node2.rendered = this.rendered, node2.textValue = this.textValue, node2["aria-label"] = this["aria-label"], node2.index = this.index, node2.parentKey = this.parentKey, node2.prevKey = this.prevKey, node2.nextKey = this.nextKey, node2.firstChildKey = this.firstChildKey, node2.lastChildKey = this.lastChildKey, node2.props = this.props, node2.render = this.render, node2.colSpan = this.colSpan, node2.colIndex = this.colIndex, node2;
  69840. }
  69841. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  69842. filter(collection, newCollection, filterFn) {
  69843. let clone3 = this.clone();
  69844. return newCollection.addDescendants(clone3, collection), clone3;
  69845. }
  69846. constructor(key) {
  69847. this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = key;
  69848. }
  69849. }, $23b9f4fcf0fe224b$export$b1918e978f1ee46f = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  69850. filter(collection, newCollection, filterFn) {
  69851. let [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, this.firstChildKey, filterFn), newNode = this.clone();
  69852. return newNode.firstChildKey = firstKey, newNode.lastChildKey = lastKey, newNode;
  69853. }
  69854. }, $23b9f4fcf0fe224b$export$5ae2504e948afce5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  69855. };
  69856. $23b9f4fcf0fe224b$export$5ae2504e948afce5.type = "header";
  69857. var $23b9f4fcf0fe224b$export$8258a0665a675899 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  69858. };
  69859. $23b9f4fcf0fe224b$export$8258a0665a675899.type = "loader";
  69860. var $23b9f4fcf0fe224b$export$fd11f34e1d07f134 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
  69861. filter(collection, newCollection, filterFn) {
  69862. if (filterFn(this.textValue, this)) {
  69863. let clone3 = this.clone();
  69864. return newCollection.addDescendants(clone3, collection), clone3;
  69865. }
  69866. return null;
  69867. }
  69868. };
  69869. $23b9f4fcf0fe224b$export$fd11f34e1d07f134.type = "item";
  69870. var $23b9f4fcf0fe224b$export$437f11dc9b403b78 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
  69871. filter(collection, newCollection, filterFn) {
  69872. let filteredSection = super.filter(collection, newCollection, filterFn);
  69873. if (filteredSection && filteredSection.lastChildKey !== null) {
  69874. let lastChild = collection.getItem(filteredSection.lastChildKey);
  69875. if (lastChild && lastChild.type !== "header") return filteredSection;
  69876. }
  69877. return null;
  69878. }
  69879. };
  69880. $23b9f4fcf0fe224b$export$437f11dc9b403b78.type = "section";
  69881. var $23b9f4fcf0fe224b$export$408d25a4e12db025 = class {
  69882. get size() {
  69883. return this.itemCount;
  69884. }
  69885. getKeys() {
  69886. return this.keyMap.keys();
  69887. }
  69888. *[Symbol.iterator]() {
  69889. let node2 = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
  69890. for (; node2; )
  69891. yield node2, node2 = node2.nextKey != null ? this.keyMap.get(node2.nextKey) : void 0;
  69892. }
  69893. getChildren(key) {
  69894. let keyMap = this.keyMap;
  69895. return {
  69896. *[Symbol.iterator]() {
  69897. let parent = keyMap.get(key), node2 = parent?.firstChildKey != null ? keyMap.get(parent.firstChildKey) : null;
  69898. for (; node2; )
  69899. yield node2, node2 = node2.nextKey != null ? keyMap.get(node2.nextKey) : void 0;
  69900. }
  69901. };
  69902. }
  69903. getKeyBefore(key) {
  69904. let node2 = this.keyMap.get(key);
  69905. if (!node2) return null;
  69906. if (node2.prevKey != null) {
  69907. for (node2 = this.keyMap.get(node2.prevKey); node2 && node2.type !== "item" && node2.lastChildKey != null; ) node2 = this.keyMap.get(node2.lastChildKey);
  69908. var _node_key;
  69909. return (_node_key = node2?.key) !== null && _node_key !== void 0 ? _node_key : null;
  69910. }
  69911. return node2.parentKey;
  69912. }
  69913. getKeyAfter(key) {
  69914. let node2 = this.keyMap.get(key);
  69915. if (!node2) return null;
  69916. if (node2.type !== "item" && node2.firstChildKey != null) return node2.firstChildKey;
  69917. for (; node2; ) {
  69918. if (node2.nextKey != null) return node2.nextKey;
  69919. if (node2.parentKey != null) node2 = this.keyMap.get(node2.parentKey);
  69920. else return null;
  69921. }
  69922. return null;
  69923. }
  69924. getFirstKey() {
  69925. return this.firstKey;
  69926. }
  69927. getLastKey() {
  69928. let node2 = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
  69929. for (; node2?.lastChildKey != null; ) node2 = this.keyMap.get(node2.lastChildKey);
  69930. var _node_key;
  69931. return (_node_key = node2?.key) !== null && _node_key !== void 0 ? _node_key : null;
  69932. }
  69933. getItem(key) {
  69934. var _this_keyMap_get;
  69935. return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
  69936. }
  69937. at() {
  69938. throw new Error("Not implemented");
  69939. }
  69940. clone() {
  69941. let Constructor = this.constructor, collection = new Constructor();
  69942. return collection.keyMap = new Map(this.keyMap), collection.firstKey = this.firstKey, collection.lastKey = this.lastKey, collection.itemCount = this.itemCount, collection;
  69943. }
  69944. addNode(node2) {
  69945. if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
  69946. node2.type === "item" && this.keyMap.get(node2.key) == null && this.itemCount++, this.keyMap.set(node2.key, node2);
  69947. }
  69948. // Deeply add a node and its children to the collection from another collection, primarily used when filtering a collection
  69949. addDescendants(node2, oldCollection) {
  69950. this.addNode(node2);
  69951. let children = oldCollection.getChildren(node2.key);
  69952. for (let child of children) this.addDescendants(child, oldCollection);
  69953. }
  69954. removeNode(key) {
  69955. if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
  69956. let node2 = this.keyMap.get(key);
  69957. node2 != null && node2.type === "item" && this.itemCount--, this.keyMap.delete(key);
  69958. }
  69959. commit(firstKey, lastKey, isSSR = !1) {
  69960. if (this.frozen) throw new Error("Cannot commit a frozen collection");
  69961. this.firstKey = firstKey, this.lastKey = lastKey, this.frozen = !isSSR;
  69962. }
  69963. filter(filterFn) {
  69964. let newCollection = new this.constructor(), [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(this, newCollection, this.firstKey, filterFn);
  69965. return newCollection?.commit(firstKey, lastKey), newCollection;
  69966. }
  69967. constructor() {
  69968. this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
  69969. }
  69970. };
  69971. function $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, firstChildKey, filterFn) {
  69972. if (firstChildKey == null) return [
  69973. null,
  69974. null
  69975. ];
  69976. let firstNode = null, lastNode = null, currentNode = collection.getItem(firstChildKey);
  69977. for (; currentNode != null; ) {
  69978. let newNode = currentNode.filter(collection, newCollection, filterFn);
  69979. newNode != null && (newNode.nextKey = null, lastNode && (newNode.prevKey = lastNode.key, lastNode.nextKey = newNode.key), firstNode == null && (firstNode = newNode), newCollection.addNode(newNode), lastNode = newNode), currentNode = currentNode.nextKey ? collection.getItem(currentNode.nextKey) : null;
  69980. }
  69981. if (lastNode && lastNode.type === "separator") {
  69982. let prevKey = lastNode.prevKey;
  69983. newCollection.removeNode(lastNode.key), prevKey ? (lastNode = newCollection.getItem(prevKey), lastNode.nextKey = null) : lastNode = null;
  69984. }
  69985. var _firstNode_key, _lastNode_key;
  69986. return [
  69987. (_firstNode_key = firstNode?.key) !== null && _firstNode_key !== void 0 ? _firstNode_key : null,
  69988. (_lastNode_key = lastNode?.key) !== null && _lastNode_key !== void 0 ? _lastNode_key : null
  69989. ];
  69990. }
  69991. // ../../node_modules/@react-aria/collections/dist/Document.mjs
  69992. var $681cc3c98f569e39$export$410b0c854570d131 = class {
  69993. *[Symbol.iterator]() {
  69994. let node2 = this.firstChild;
  69995. for (; node2; )
  69996. yield node2, node2 = node2.nextSibling;
  69997. }
  69998. get firstChild() {
  69999. return this._firstChild;
  70000. }
  70001. set firstChild(firstChild) {
  70002. this._firstChild = firstChild, this.ownerDocument.markDirty(this);
  70003. }
  70004. get lastChild() {
  70005. return this._lastChild;
  70006. }
  70007. set lastChild(lastChild) {
  70008. this._lastChild = lastChild, this.ownerDocument.markDirty(this);
  70009. }
  70010. get previousSibling() {
  70011. return this._previousSibling;
  70012. }
  70013. set previousSibling(previousSibling) {
  70014. this._previousSibling = previousSibling, this.ownerDocument.markDirty(this);
  70015. }
  70016. get nextSibling() {
  70017. return this._nextSibling;
  70018. }
  70019. set nextSibling(nextSibling) {
  70020. this._nextSibling = nextSibling, this.ownerDocument.markDirty(this);
  70021. }
  70022. get parentNode() {
  70023. return this._parentNode;
  70024. }
  70025. set parentNode(parentNode) {
  70026. this._parentNode = parentNode, this.ownerDocument.markDirty(this);
  70027. }
  70028. get isConnected() {
  70029. var _this_parentNode;
  70030. return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || !1;
  70031. }
  70032. invalidateChildIndices(child) {
  70033. (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || child.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = child, this.ownerDocument.markDirty(this));
  70034. }
  70035. updateChildIndices() {
  70036. let node2 = this._minInvalidChildIndex;
  70037. for (; node2; )
  70038. node2.index = node2.previousSibling ? node2.previousSibling.index + 1 : 0, node2 = node2.nextSibling;
  70039. this._minInvalidChildIndex = null;
  70040. }
  70041. appendChild(child) {
  70042. child.parentNode && child.parentNode.removeChild(child), this.firstChild == null && (this.firstChild = child), this.lastChild ? (this.lastChild.nextSibling = child, child.index = this.lastChild.index + 1, child.previousSibling = this.lastChild) : (child.previousSibling = null, child.index = 0), child.parentNode = this, child.nextSibling = null, this.lastChild = child, this.ownerDocument.markDirty(this), this.isConnected && this.ownerDocument.queueUpdate();
  70043. }
  70044. insertBefore(newNode, referenceNode) {
  70045. if (referenceNode == null) return this.appendChild(newNode);
  70046. newNode.parentNode && newNode.parentNode.removeChild(newNode), newNode.nextSibling = referenceNode, newNode.previousSibling = referenceNode.previousSibling, newNode.index = referenceNode.index - 1, this.firstChild === referenceNode ? this.firstChild = newNode : referenceNode.previousSibling && (referenceNode.previousSibling.nextSibling = newNode), referenceNode.previousSibling = newNode, newNode.parentNode = referenceNode.parentNode, this.invalidateChildIndices(newNode), this.isConnected && this.ownerDocument.queueUpdate();
  70047. }
  70048. removeChild(child) {
  70049. child.parentNode !== this || !this.ownerDocument.isMounted || (this._minInvalidChildIndex === child && (this._minInvalidChildIndex = null), child.nextSibling && (this.invalidateChildIndices(child.nextSibling), child.nextSibling.previousSibling = child.previousSibling), child.previousSibling && (child.previousSibling.nextSibling = child.nextSibling), this.firstChild === child && (this.firstChild = child.nextSibling), this.lastChild === child && (this.lastChild = child.previousSibling), child.parentNode = null, child.nextSibling = null, child.previousSibling = null, child.index = 0, this.ownerDocument.markDirty(child), this.isConnected && this.ownerDocument.queueUpdate());
  70050. }
  70051. addEventListener() {
  70052. }
  70053. removeEventListener() {
  70054. }
  70055. get previousVisibleSibling() {
  70056. let node2 = this.previousSibling;
  70057. for (; node2 && node2.isHidden; ) node2 = node2.previousSibling;
  70058. return node2;
  70059. }
  70060. get nextVisibleSibling() {
  70061. let node2 = this.nextSibling;
  70062. for (; node2 && node2.isHidden; ) node2 = node2.nextSibling;
  70063. return node2;
  70064. }
  70065. get firstVisibleChild() {
  70066. let node2 = this.firstChild;
  70067. for (; node2 && node2.isHidden; ) node2 = node2.nextSibling;
  70068. return node2;
  70069. }
  70070. get lastVisibleChild() {
  70071. let node2 = this.lastChild;
  70072. for (; node2 && node2.isHidden; ) node2 = node2.previousSibling;
  70073. return node2;
  70074. }
  70075. constructor(ownerDocument) {
  70076. this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = ownerDocument;
  70077. }
  70078. }, $681cc3c98f569e39$export$dc064fe9e59310fd = class _$681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export$410b0c854570d131 {
  70079. get index() {
  70080. return this._index;
  70081. }
  70082. set index(index4) {
  70083. this._index = index4, this.ownerDocument.markDirty(this);
  70084. }
  70085. get level() {
  70086. var _this_node;
  70087. return this.parentNode instanceof _$681cc3c98f569e39$export$dc064fe9e59310fd ? this.parentNode.level + (((_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.type) === "item" ? 1 : 0) : 0;
  70088. }
  70089. /**
  70090. * Lazily gets a mutable instance of a Node. If the node has already
  70091. * been cloned during this update cycle, it just returns the existing one.
  70092. */
  70093. getMutableNode() {
  70094. return this.node == null ? null : (this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node);
  70095. }
  70096. updateNode() {
  70097. var _this_parentNode_node, _this_previousVisibleSibling_node, _this_previousVisibleSibling, _nextSibling_node, _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild;
  70098. let nextSibling = this.nextVisibleSibling, node2 = this.getMutableNode();
  70099. if (node2 != null) {
  70100. node2.index = this.index, node2.level = this.level;
  70101. var _this_parentNode_node_key;
  70102. node2.parentKey = this.parentNode instanceof _$681cc3c98f569e39$export$dc064fe9e59310fd && (_this_parentNode_node_key = (_this_parentNode_node = this.parentNode.node) === null || _this_parentNode_node === void 0 ? void 0 : _this_parentNode_node.key) !== null && _this_parentNode_node_key !== void 0 ? _this_parentNode_node_key : null;
  70103. var _this_previousVisibleSibling_node_key;
  70104. node2.prevKey = (_this_previousVisibleSibling_node_key = (_this_previousVisibleSibling = this.previousVisibleSibling) === null || _this_previousVisibleSibling === void 0 || (_this_previousVisibleSibling_node = _this_previousVisibleSibling.node) === null || _this_previousVisibleSibling_node === void 0 ? void 0 : _this_previousVisibleSibling_node.key) !== null && _this_previousVisibleSibling_node_key !== void 0 ? _this_previousVisibleSibling_node_key : null;
  70105. var _nextSibling_node_key;
  70106. node2.nextKey = (_nextSibling_node_key = nextSibling == null || (_nextSibling_node = nextSibling.node) === null || _nextSibling_node === void 0 ? void 0 : _nextSibling_node.key) !== null && _nextSibling_node_key !== void 0 ? _nextSibling_node_key : null, node2.hasChildNodes = !!this.firstChild;
  70107. var _this_firstVisibleChild_node_key;
  70108. node2.firstChildKey = (_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 || (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null;
  70109. var _this_lastVisibleChild_node_key;
  70110. if (node2.lastChildKey = (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 || (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null, (node2.colSpan != null || node2.colIndex != null) && nextSibling) {
  70111. var _node_colIndex, _node_colSpan;
  70112. let nextColIndex = ((_node_colIndex = node2.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node2.index) + ((_node_colSpan = node2.colSpan) !== null && _node_colSpan !== void 0 ? _node_colSpan : 1);
  70113. if (nextSibling.node != null && nextColIndex !== nextSibling.node.colIndex) {
  70114. let siblingNode = nextSibling.getMutableNode();
  70115. siblingNode.colIndex = nextColIndex;
  70116. }
  70117. }
  70118. }
  70119. }
  70120. setProps(obj, ref, CollectionNodeClass, rendered, render) {
  70121. let node2, { value: value1, textValue, id, ...props } = obj;
  70122. if (this.node == null ? (node2 = new CollectionNodeClass(id ?? `react-aria-${++this.ownerDocument.nodeId}`), this.node = node2) : node2 = this.getMutableNode(), props.ref = ref, node2.props = props, node2.rendered = rendered, node2.render = render, node2.value = value1, node2.textValue = textValue || (typeof props.children == "string" ? props.children : "") || obj["aria-label"] || "", id != null && id !== node2.key) throw new Error("Cannot change the id of an item");
  70123. props.colSpan != null && (node2.colSpan = props.colSpan), this.isConnected && this.ownerDocument.queueUpdate();
  70124. }
  70125. get style() {
  70126. let element = this;
  70127. return {
  70128. get display() {
  70129. return element.isHidden ? "none" : "";
  70130. },
  70131. set display(value) {
  70132. let isHidden3 = value === "none";
  70133. if (element.isHidden !== isHidden3) {
  70134. var _element_parentNode, _element_parentNode1;
  70135. (((_element_parentNode = element.parentNode) === null || _element_parentNode === void 0 ? void 0 : _element_parentNode.firstVisibleChild) === element || ((_element_parentNode1 = element.parentNode) === null || _element_parentNode1 === void 0 ? void 0 : _element_parentNode1.lastVisibleChild) === element) && element.ownerDocument.markDirty(element.parentNode);
  70136. let prev2 = element.previousVisibleSibling, next2 = element.nextVisibleSibling;
  70137. prev2 && element.ownerDocument.markDirty(prev2), next2 && element.ownerDocument.markDirty(next2), element.isHidden = isHidden3, element.ownerDocument.markDirty(element);
  70138. }
  70139. }
  70140. };
  70141. }
  70142. hasAttribute() {
  70143. }
  70144. setAttribute() {
  70145. }
  70146. setAttributeNS() {
  70147. }
  70148. removeAttribute() {
  70149. }
  70150. constructor(type5, ownerDocument) {
  70151. super(ownerDocument), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
  70152. }
  70153. }, $681cc3c98f569e39$export$b34a105447964f9f = class extends $681cc3c98f569e39$export$410b0c854570d131 {
  70154. get isConnected() {
  70155. return this.isMounted;
  70156. }
  70157. createElement(type5) {
  70158. return new $681cc3c98f569e39$export$dc064fe9e59310fd(type5, this);
  70159. }
  70160. getMutableCollection() {
  70161. return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
  70162. }
  70163. markDirty(node2) {
  70164. this.dirtyNodes.add(node2);
  70165. }
  70166. addNode(element) {
  70167. if (element.isHidden || element.node == null) return;
  70168. let collection = this.getMutableCollection();
  70169. if (!collection.getItem(element.node.key)) for (let child of element) this.addNode(child);
  70170. collection.addNode(element.node);
  70171. }
  70172. removeNode(node2) {
  70173. if (node2.node == null) return;
  70174. for (let child of node2) this.removeNode(child);
  70175. this.getMutableCollection().removeNode(node2.node.key);
  70176. }
  70177. /** Finalizes the collection update, updating all nodes and freezing the collection. */
  70178. getCollection() {
  70179. return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
  70180. }
  70181. updateCollection() {
  70182. for (let element of this.dirtyNodes) element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (!element.isConnected || element.isHidden) ? this.removeNode(element) : element.updateChildIndices();
  70183. for (let element of this.dirtyNodes) element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (element.isConnected && !element.isHidden && (element.updateNode(), this.addNode(element)), element.isMutated = !1);
  70184. if (this.dirtyNodes.clear(), this.nextCollection) {
  70185. var _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild, _this_firstVisibleChild_node_key, _this_lastVisibleChild_node_key;
  70186. this.nextCollection.commit((_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 || (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null, (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 || (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null);
  70187. }
  70188. }
  70189. queueUpdate() {
  70190. if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
  70191. this.queuedRender = !0, this.inSubscription = !0;
  70192. for (let fn4 of this.subscriptions) fn4();
  70193. this.inSubscription = !1;
  70194. }
  70195. }
  70196. subscribe(fn4) {
  70197. return this.subscriptions.add(fn4), () => this.subscriptions.delete(fn4);
  70198. }
  70199. resetAfterSSR() {
  70200. this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
  70201. }
  70202. constructor(collection) {
  70203. super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = !0, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = collection, this.nextCollection = collection;
  70204. }
  70205. };
  70206. // ../../node_modules/@react-aria/collections/dist/useCachedChildren.mjs
  70207. var import_react126 = __toESM(require_react(), 1);
  70208. function $e948873055cbafe4$export$727c8fc270210f13(props) {
  70209. let { children, items, idScope, addIdAndValue, dependencies = [] } = props, cache = (0, import_react126.useMemo)(() => /* @__PURE__ */ new WeakMap(), dependencies);
  70210. return (0, import_react126.useMemo)(() => {
  70211. if (items && typeof children == "function") {
  70212. let res = [];
  70213. for (let item of items) {
  70214. let rendered = cache.get(item);
  70215. if (!rendered) {
  70216. rendered = children(item);
  70217. var _rendered_props_id, _ref;
  70218. let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
  70219. if (key == null) throw new Error("Could not determine key for item");
  70220. idScope && (key = idScope + ":" + key), rendered = (0, import_react126.cloneElement)(rendered, addIdAndValue ? {
  70221. key,
  70222. id: key,
  70223. value: item
  70224. } : {
  70225. key
  70226. }), cache.set(item, rendered);
  70227. }
  70228. res.push(rendered);
  70229. }
  70230. return res;
  70231. } else if (typeof children != "function") return children;
  70232. }, [
  70233. children,
  70234. items,
  70235. cache,
  70236. idScope,
  70237. addIdAndValue
  70238. ]);
  70239. }
  70240. // ../../node_modules/@react-aria/collections/dist/Hidden.mjs
  70241. var import_react127 = __toESM(require_react(), 1);
  70242. if (typeof HTMLTemplateElement < "u") {
  70243. let getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
  70244. Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
  70245. configurable: !0,
  70246. enumerable: !0,
  70247. get: function() {
  70248. return this.dataset.reactAriaHidden ? this.content.firstChild : getFirstChild.call(this);
  70249. }
  70250. });
  70251. }
  70252. var $f39a9eba43920ace$export$94b6d0abf7d33e8c = (0, import_react127.createContext)(!1);
  70253. function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
  70254. if ((0, import_react127.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c))
  70255. return import_react127.default.createElement(import_react127.default.Fragment, null, props.children);
  70256. let children = import_react127.default.createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {
  70257. value: !0
  70258. }, props.children);
  70259. return import_react127.default.createElement("template", {
  70260. "data-react-aria-hidden": !0
  70261. }, children);
  70262. }
  70263. function $f39a9eba43920ace$export$86427a43e3e48ebb(fn4) {
  70264. let Wrapper9 = (props, ref) => (0, import_react127.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c) ? null : fn4(props, ref);
  70265. return Wrapper9.displayName = fn4.displayName || fn4.name, (0, import_react127.forwardRef)(Wrapper9);
  70266. }
  70267. function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
  70268. return (0, import_react127.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);
  70269. }
  70270. // ../../node_modules/@react-aria/collections/dist/CollectionBuilder.mjs
  70271. var import_react_dom5 = __toESM(require_react_dom(), 1);
  70272. var import_react128 = __toESM(require_react(), 1);
  70273. var import_shim = __toESM(require_shim(), 1), $e1995378a142960e$var$ShallowRenderContext = (0, import_react128.createContext)(!1), $e1995378a142960e$var$CollectionDocumentContext = (0, import_react128.createContext)(null);
  70274. function $e1995378a142960e$export$bf788dd355e3a401(props) {
  70275. if ((0, import_react128.useContext)($e1995378a142960e$var$CollectionDocumentContext))
  70276. return props.content;
  70277. let { collection, document: document13 } = $e1995378a142960e$var$useCollectionDocument(props.createCollection);
  70278. return import_react128.default.createElement(import_react128.default.Fragment, null, import_react128.default.createElement($f39a9eba43920ace$export$8dc98ba7eadeaa56, null, import_react128.default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {
  70279. value: document13
  70280. }, props.content)), import_react128.default.createElement($e1995378a142960e$var$CollectionInner, {
  70281. render: props.children,
  70282. collection
  70283. }));
  70284. }
  70285. function $e1995378a142960e$var$CollectionInner({ collection, render }) {
  70286. return render(collection);
  70287. }
  70288. function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {
  70289. let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), isSSRRef = (0, import_react128.useRef)(isSSR);
  70290. isSSRRef.current = isSSR;
  70291. let getSnapshotWrapper = (0, import_react128.useCallback)(() => isSSRRef.current ? getServerSnapshot() : getSnapshot(), [
  70292. getSnapshot,
  70293. getServerSnapshot
  70294. ]);
  70295. return (0, import_shim.useSyncExternalStore)(subscribe, getSnapshotWrapper);
  70296. }
  70297. var $e1995378a142960e$var$useSyncExternalStore = typeof import_react128.default.useSyncExternalStore == "function" ? import_react128.default.useSyncExternalStore : $e1995378a142960e$var$useSyncExternalStoreFallback;
  70298. function $e1995378a142960e$var$useCollectionDocument(createCollection) {
  70299. let [document13] = (0, import_react128.useState)(() => new $681cc3c98f569e39$export$b34a105447964f9f(createCollection?.() || new $23b9f4fcf0fe224b$export$408d25a4e12db025())), subscribe = (0, import_react128.useCallback)((fn4) => document13.subscribe(fn4), [
  70300. document13
  70301. ]), getSnapshot = (0, import_react128.useCallback)(() => {
  70302. let collection2 = document13.getCollection();
  70303. return document13.isSSR && document13.resetAfterSSR(), collection2;
  70304. }, [
  70305. document13
  70306. ]), getServerSnapshot = (0, import_react128.useCallback)(() => (document13.isSSR = !0, document13.getCollection()), [
  70307. document13
  70308. ]), collection = $e1995378a142960e$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
  70309. return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (document13.isMounted = !0, () => {
  70310. document13.isMounted = !1;
  70311. }), [
  70312. document13
  70313. ]), {
  70314. collection,
  70315. document: document13
  70316. };
  70317. }
  70318. var $e1995378a142960e$var$SSRContext = (0, import_react128.createContext)(null);
  70319. function $e1995378a142960e$var$createCollectionNodeClass(type5) {
  70320. var _class;
  70321. return _class = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  70322. }, _class.type = type5, _class;
  70323. }
  70324. function $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, rendered, children, render) {
  70325. typeof CollectionNodeClass == "string" && (CollectionNodeClass = $e1995378a142960e$var$createCollectionNodeClass(CollectionNodeClass));
  70326. let itemRef = (0, import_react128.useCallback)((element) => {
  70327. element?.setProps(props, ref, CollectionNodeClass, rendered, render);
  70328. }, [
  70329. props,
  70330. ref,
  70331. rendered,
  70332. render,
  70333. CollectionNodeClass
  70334. ]), parentNode = (0, import_react128.useContext)($e1995378a142960e$var$SSRContext);
  70335. if (parentNode) {
  70336. let element = parentNode.ownerDocument.nodesByProps.get(props);
  70337. return element || (element = parentNode.ownerDocument.createElement(CollectionNodeClass.type), element.setProps(props, ref, CollectionNodeClass, rendered, render), parentNode.appendChild(element), parentNode.ownerDocument.updateCollection(), parentNode.ownerDocument.nodesByProps.set(props, element)), children ? import_react128.default.createElement($e1995378a142960e$var$SSRContext.Provider, {
  70338. value: element
  70339. }, children) : null;
  70340. }
  70341. return import_react128.default.createElement(CollectionNodeClass.type, {
  70342. ref: itemRef
  70343. }, children);
  70344. }
  70345. function $e1995378a142960e$export$18af5c7a9e9b3664(CollectionNodeClass, render) {
  70346. let Component5 = ({ node: node2 }) => render(node2.props, node2.props.ref, node2), Result = (0, import_react128.forwardRef)((props, ref) => {
  70347. let focusableProps = (0, import_react128.useContext)($f645667febf57a63$export$f9762fab77588ecb);
  70348. if (!(0, import_react128.useContext)($e1995378a142960e$var$ShallowRenderContext)) {
  70349. if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection.");
  70350. return render(props, ref);
  70351. }
  70352. return $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, "children" in props ? props.children : null, null, (node2) => (
  70353. // Forward FocusableContext to real DOM tree so tooltips work.
  70354. import_react128.default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
  70355. value: focusableProps
  70356. }, import_react128.default.createElement(Component5, {
  70357. node: node2
  70358. }))
  70359. ));
  70360. });
  70361. return Result.displayName = render.name, Result;
  70362. }
  70363. function $e1995378a142960e$export$e953bb1cd0f19726(CollectionNodeClass, render, useChildren = $e1995378a142960e$var$useCollectionChildren) {
  70364. let Component5 = ({ node: node2 }) => render(node2.props, node2.props.ref, node2), Result = (0, import_react128.forwardRef)((props, ref) => {
  70365. let children = useChildren(props);
  70366. var _useSSRCollectionNode;
  70367. return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, null, children, (node2) => import_react128.default.createElement(Component5, {
  70368. node: node2
  70369. }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : import_react128.default.createElement(import_react128.default.Fragment, null);
  70370. });
  70371. return Result.displayName = render.name, Result;
  70372. }
  70373. function $e1995378a142960e$var$useCollectionChildren(options) {
  70374. return $e948873055cbafe4$export$727c8fc270210f13({
  70375. ...options,
  70376. addIdAndValue: !0
  70377. });
  70378. }
  70379. var $e1995378a142960e$var$CollectionContext = (0, import_react128.createContext)(null);
  70380. function $e1995378a142960e$export$fb8073518f34e6ec(props) {
  70381. let ctx = (0, import_react128.useContext)($e1995378a142960e$var$CollectionContext), dependencies = (ctx?.dependencies || []).concat(props.dependencies), idScope = props.idScope || ctx?.idScope, children = $e1995378a142960e$var$useCollectionChildren({
  70382. ...props,
  70383. idScope,
  70384. dependencies
  70385. });
  70386. return (0, import_react128.useContext)($e1995378a142960e$var$CollectionDocumentContext) && (children = import_react128.default.createElement($e1995378a142960e$var$CollectionRoot, null, children)), ctx = (0, import_react128.useMemo)(() => ({
  70387. dependencies,
  70388. idScope
  70389. }), [
  70390. idScope,
  70391. ...dependencies
  70392. ]), import_react128.default.createElement($e1995378a142960e$var$CollectionContext.Provider, {
  70393. value: ctx
  70394. }, children);
  70395. }
  70396. function $e1995378a142960e$var$CollectionRoot({ children }) {
  70397. let doc = (0, import_react128.useContext)($e1995378a142960e$var$CollectionDocumentContext), wrappedChildren = (0, import_react128.useMemo)(() => import_react128.default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {
  70398. value: null
  70399. }, import_react128.default.createElement($e1995378a142960e$var$ShallowRenderContext.Provider, {
  70400. value: !0
  70401. }, children)), [
  70402. children
  70403. ]);
  70404. return $b5e257d569688ac6$export$535bd6ca7f90a273() ? import_react128.default.createElement($e1995378a142960e$var$SSRContext.Provider, {
  70405. value: doc
  70406. }, wrappedChildren) : (0, import_react_dom5.createPortal)(wrappedChildren, doc);
  70407. }
  70408. // ../../node_modules/react-aria-components/dist/Label.mjs
  70409. var import_react129 = __toESM(require_react(), 1), $01b77f81d0f07f68$export$75b6ee27786ba447 = (0, import_react129.createContext)({}), $01b77f81d0f07f68$export$b04be29aa201d4f5 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, ref) {
  70410. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
  70411. let { elementType: ElementType = "label", ...labelProps } = props;
  70412. return import_react129.default.createElement(ElementType, {
  70413. className: "react-aria-Label",
  70414. ...labelProps,
  70415. ref
  70416. });
  70417. });
  70418. // ../../node_modules/@react-aria/label/dist/useLabel.mjs
  70419. function $d191a55c9702f145$export$8467354a121f1b9f(props) {
  70420. let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
  70421. id = $bdb11010cef70236$export$f680877a34711e37(id);
  70422. let labelId = $bdb11010cef70236$export$f680877a34711e37(), labelProps = {};
  70423. label && (ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId, labelProps = {
  70424. id: labelId,
  70425. htmlFor: labelElementType === "label" ? id : void 0
  70426. });
  70427. let fieldProps = $313b98861ee5dd6c$export$d6875122194c7b44({
  70428. id,
  70429. "aria-label": ariaLabel,
  70430. "aria-labelledby": ariaLabelledby
  70431. });
  70432. return {
  70433. labelProps,
  70434. fieldProps
  70435. };
  70436. }
  70437. // ../../node_modules/@react-aria/progress/dist/useProgressBar.mjs
  70438. function $204d9ebcedfb8806$export$ed5abd763a836edc(props) {
  70439. let { value = 0, minValue = 0, maxValue = 100, valueLabel, isIndeterminate, formatOptions = {
  70440. style: "percent"
  70441. } } = props, domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70442. labelable: !0
  70443. }), { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({
  70444. ...props,
  70445. // Progress bar is not an HTML input element so it
  70446. // shouldn't be labeled by a <label> element.
  70447. labelElementType: "span"
  70448. });
  70449. value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
  70450. let percentage = (value - minValue) / (maxValue - minValue), formatter2 = $a916eb452884faea$export$b7a616150fdb9f44(formatOptions);
  70451. if (!isIndeterminate && !valueLabel) {
  70452. let valueToFormat = formatOptions.style === "percent" ? percentage : value;
  70453. valueLabel = formatter2.format(valueToFormat);
  70454. }
  70455. return {
  70456. progressBarProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
  70457. ...fieldProps,
  70458. "aria-valuenow": isIndeterminate ? void 0 : value,
  70459. "aria-valuemin": minValue,
  70460. "aria-valuemax": maxValue,
  70461. "aria-valuetext": isIndeterminate ? void 0 : valueLabel,
  70462. role: "progressbar"
  70463. }),
  70464. labelProps
  70465. };
  70466. }
  70467. // ../../node_modules/react-aria-components/dist/ProgressBar.mjs
  70468. var import_react130 = __toESM(require_react(), 1), $0393f8ab869a0f1a$export$e9f3bf65a26ce129 = (0, import_react130.createContext)(null), $0393f8ab869a0f1a$export$c17561cb55d4db30 = (0, import_react130.forwardRef)(function(props, ref) {
  70469. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $0393f8ab869a0f1a$export$e9f3bf65a26ce129);
  70470. let { value = 0, minValue = 0, maxValue = 100, isIndeterminate = !1 } = props;
  70471. value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
  70472. let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]), { progressBarProps, labelProps } = $204d9ebcedfb8806$export$ed5abd763a836edc({
  70473. ...props,
  70474. label
  70475. }), percentage = isIndeterminate ? void 0 : (value - minValue) / (maxValue - minValue) * 100, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  70476. ...props,
  70477. defaultClassName: "react-aria-ProgressBar",
  70478. values: {
  70479. percentage,
  70480. valueText: progressBarProps["aria-valuetext"],
  70481. isIndeterminate
  70482. }
  70483. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70484. global: !0
  70485. });
  70486. return import_react130.default.createElement("div", {
  70487. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, progressBarProps),
  70488. ref,
  70489. slot: props.slot || void 0
  70490. }, import_react130.default.createElement($01b77f81d0f07f68$export$75b6ee27786ba447.Provider, {
  70491. value: {
  70492. ...labelProps,
  70493. ref: labelRef,
  70494. elementType: "span"
  70495. }
  70496. }, renderProps.children));
  70497. });
  70498. // ../../node_modules/react-aria-components/dist/Button.mjs
  70499. init_import();
  70500. // ../../node_modules/@react-aria/button/dist/useButton.mjs
  70501. function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
  70502. let { elementType = "button", isDisabled: isDisabled3, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type: type5 = "button" } = props, additionalProps;
  70503. elementType === "button" ? additionalProps = {
  70504. type: type5,
  70505. disabled: isDisabled3,
  70506. form: props.form,
  70507. formAction: props.formAction,
  70508. formEncType: props.formEncType,
  70509. formMethod: props.formMethod,
  70510. formNoValidate: props.formNoValidate,
  70511. formTarget: props.formTarget,
  70512. name: props.name,
  70513. value: props.value
  70514. } : additionalProps = {
  70515. role: "button",
  70516. href: elementType === "a" && !isDisabled3 ? href : void 0,
  70517. target: elementType === "a" ? target : void 0,
  70518. type: elementType === "input" ? type5 : void 0,
  70519. disabled: elementType === "input" ? isDisabled3 : void 0,
  70520. "aria-disabled": !isDisabled3 || elementType === "input" ? void 0 : isDisabled3,
  70521. rel: elementType === "a" ? rel : void 0
  70522. };
  70523. let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
  70524. onPressStart,
  70525. onPressEnd,
  70526. onPressChange,
  70527. onPress,
  70528. onPressUp,
  70529. onClick,
  70530. isDisabled: isDisabled3,
  70531. preventFocusOnPress,
  70532. ref
  70533. }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref);
  70534. allowFocusWhenDisabled && (focusableProps.tabIndex = isDisabled3 ? -1 : focusableProps.tabIndex);
  70535. let buttonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, pressProps, $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70536. labelable: !0
  70537. }));
  70538. return {
  70539. isPressed,
  70540. buttonProps: $3ef42575df84b30b$export$9d1611c77c2fe928(additionalProps, buttonProps, {
  70541. "aria-haspopup": props["aria-haspopup"],
  70542. "aria-expanded": props["aria-expanded"],
  70543. "aria-controls": props["aria-controls"],
  70544. "aria-pressed": props["aria-pressed"],
  70545. "aria-current": props["aria-current"],
  70546. "aria-disabled": props["aria-disabled"]
  70547. })
  70548. };
  70549. }
  70550. // ../../node_modules/@react-aria/button/node_modules/@react-aria/toolbar/dist/useToolbar.mjs
  70551. var import_react131 = __toESM(require_react(), 1);
  70552. // ../../node_modules/react-aria-components/dist/Button.mjs
  70553. var import_react132 = __toESM(require_react(), 1), $d2b4bc8c273e7be6$export$24d547caef80ccd1 = (0, import_react132.createContext)({}), $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, ref) {
  70554. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1), props = $d2b4bc8c273e7be6$var$disablePendingProps(props);
  70555. let ctx = props, { isPending } = ctx, { buttonProps, isPressed } = $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
  70556. ...props,
  70557. isDisabled: props.isDisabled || isPending
  70558. }), renderValues = {
  70559. isHovered,
  70560. isPressed: (ctx.isPressed || isPressed) && !isPending,
  70561. isFocused,
  70562. isFocusVisible,
  70563. isDisabled: props.isDisabled || !1,
  70564. isPending: isPending ?? !1
  70565. }, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  70566. ...props,
  70567. values: renderValues,
  70568. defaultClassName: "react-aria-Button"
  70569. }), buttonId = $bdb11010cef70236$export$f680877a34711e37(buttonProps.id), progressId = $bdb11010cef70236$export$f680877a34711e37(), ariaLabelledby = buttonProps["aria-labelledby"];
  70570. isPending && (ariaLabelledby ? ariaLabelledby = `${ariaLabelledby} ${progressId}` : buttonProps["aria-label"] && (ariaLabelledby = `${buttonId} ${progressId}`));
  70571. let wasPending = (0, import_react132.useRef)(isPending);
  70572. (0, import_react132.useEffect)(() => {
  70573. let message = {
  70574. "aria-labelledby": ariaLabelledby || buttonId
  70575. };
  70576. !wasPending.current && isFocused && isPending ? $319e236875307eab$export$a9b970dcc4ae71a9(message, "assertive") : wasPending.current && isFocused && !isPending && $319e236875307eab$export$a9b970dcc4ae71a9(message, "assertive"), wasPending.current = isPending;
  70577. }, [
  70578. isPending,
  70579. isFocused,
  70580. ariaLabelledby,
  70581. buttonId
  70582. ]);
  70583. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70584. global: !0
  70585. });
  70586. return delete DOMProps.onClick, import_react132.default.createElement("button", {
  70587. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, buttonProps, focusProps, hoverProps),
  70588. // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
  70589. // We do this by changing the button's type to button.
  70590. type: buttonProps.type === "submit" && isPending ? "button" : buttonProps.type,
  70591. id: buttonId,
  70592. ref,
  70593. "aria-labelledby": ariaLabelledby,
  70594. slot: props.slot || void 0,
  70595. "aria-disabled": isPending ? "true" : buttonProps["aria-disabled"],
  70596. "data-disabled": props.isDisabled || void 0,
  70597. "data-pressed": renderValues.isPressed || void 0,
  70598. "data-hovered": isHovered || void 0,
  70599. "data-focused": isFocused || void 0,
  70600. "data-pending": isPending || void 0,
  70601. "data-focus-visible": isFocusVisible || void 0
  70602. }, import_react132.default.createElement($0393f8ab869a0f1a$export$e9f3bf65a26ce129.Provider, {
  70603. value: {
  70604. id: progressId
  70605. }
  70606. }, renderProps.children));
  70607. });
  70608. function $d2b4bc8c273e7be6$var$disablePendingProps(props) {
  70609. return props.isPending && (props.onPress = void 0, props.onPressStart = void 0, props.onPressEnd = void 0, props.onPressChange = void 0, props.onPressUp = void 0, props.onKeyDown = void 0, props.onKeyUp = void 0, props.onClick = void 0, props.href = void 0), props;
  70610. }
  70611. // ../../node_modules/react-aria-components/dist/Popover.mjs
  70612. var import_react133 = __toESM(require_react(), 1);
  70613. var $07b14b47974efb58$export$9b9a0cd73afb7ca4 = (0, import_react133.createContext)(null), $07b14b47974efb58$var$PopoverGroupContext = (0, import_react133.createContext)(null), $07b14b47974efb58$export$5b6b19405a83ff9d = (0, import_react133.forwardRef)(function(props, ref) {
  70614. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $07b14b47974efb58$export$9b9a0cd73afb7ca4);
  70615. let contextState = (0, import_react133.useContext)($de32f1b87079253c$export$d2f961adcb0afbe), localState = $fc909762b330b746$export$61c6a8c84e605fb6(props), state3 = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState, isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state3.isOpen) || props.isExiting || !1, isHidden3 = $f39a9eba43920ace$export$b5d7cc18bb8d2b59(), { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
  70616. if (isHidden3) {
  70617. let children = props.children;
  70618. return typeof children == "function" && (children = children({
  70619. trigger: props.trigger || null,
  70620. placement: "bottom",
  70621. isEntering: !1,
  70622. isExiting: !1,
  70623. defaultChildren: null
  70624. })), import_react133.default.createElement(import_react133.default.Fragment, null, children);
  70625. }
  70626. return state3 && !state3.isOpen && !isExiting ? null : import_react133.default.createElement($07b14b47974efb58$var$PopoverInner, {
  70627. ...props,
  70628. triggerRef: props.triggerRef,
  70629. state: state3,
  70630. popoverRef: ref,
  70631. isExiting,
  70632. dir: direction
  70633. });
  70634. });
  70635. function $07b14b47974efb58$var$PopoverInner({ state: state3, isExiting, UNSTABLE_portalContainer, clearContexts, ...props }) {
  70636. let arrowRef = (0, import_react133.useRef)(null), containerRef = (0, import_react133.useRef)(null), groupCtx = (0, import_react133.useContext)($07b14b47974efb58$var$PopoverGroupContext), isSubPopover = groupCtx && props.trigger === "SubmenuTrigger";
  70637. var _props_offset;
  70638. let { popoverProps, underlayProps, arrowProps, placement, triggerAnchorPoint } = $f2f8a6077418541e$export$542a6fd13ac93354({
  70639. ...props,
  70640. offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8,
  70641. arrowRef,
  70642. // If this is a submenu/subdialog, use the root popover's container
  70643. // to detect outside interaction and add aria-hidden.
  70644. groupRef: isSubPopover ? groupCtx : containerRef
  70645. }, state3), ref = props.popoverRef, isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(ref, !!placement) || props.isEntering || !1, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  70646. ...props,
  70647. defaultClassName: "react-aria-Popover",
  70648. values: {
  70649. trigger: props.trigger || null,
  70650. placement,
  70651. isEntering,
  70652. isExiting
  70653. }
  70654. }), shouldBeDialog = !props.isNonModal || props.trigger === "SubmenuTrigger", [isDialog, setDialog] = (0, import_react133.useState)(!1);
  70655. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  70656. ref.current && setDialog(shouldBeDialog && !ref.current.querySelector("[role=dialog]"));
  70657. }, [
  70658. ref,
  70659. shouldBeDialog
  70660. ]), (0, import_react133.useEffect)(() => {
  70661. isDialog && props.trigger !== "SubmenuTrigger" && ref.current && !ref.current.contains(document.activeElement) && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
  70662. }, [
  70663. isDialog,
  70664. ref,
  70665. props.trigger
  70666. ]);
  70667. let children = (0, import_react133.useMemo)(() => {
  70668. let children2 = renderProps.children;
  70669. if (clearContexts) for (let Context of clearContexts) children2 = import_react133.default.createElement(Context.Provider, {
  70670. value: null
  70671. }, children2);
  70672. return children2;
  70673. }, [
  70674. renderProps.children,
  70675. clearContexts
  70676. ]), style = {
  70677. ...popoverProps.style,
  70678. "--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
  70679. ...renderProps.style
  70680. }, overlay = import_react133.default.createElement("div", {
  70681. ...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70682. global: !0
  70683. }), popoverProps),
  70684. ...renderProps,
  70685. role: isDialog ? "dialog" : void 0,
  70686. tabIndex: isDialog ? -1 : void 0,
  70687. "aria-label": props["aria-label"],
  70688. "aria-labelledby": props["aria-labelledby"],
  70689. ref,
  70690. slot: props.slot || void 0,
  70691. style,
  70692. dir: props.dir,
  70693. "data-trigger": props.trigger,
  70694. "data-placement": placement,
  70695. "data-entering": isEntering || void 0,
  70696. "data-exiting": isExiting || void 0
  70697. }, !props.isNonModal && import_react133.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
  70698. onDismiss: state3.close
  70699. }), import_react133.default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, {
  70700. value: {
  70701. ...arrowProps,
  70702. placement,
  70703. ref: arrowRef
  70704. }
  70705. }, children), import_react133.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
  70706. onDismiss: state3.close
  70707. }));
  70708. if (!isSubPopover) return import_react133.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
  70709. ...props,
  70710. shouldContainFocus: isDialog,
  70711. isExiting,
  70712. portalContainer: UNSTABLE_portalContainer
  70713. }, !props.isNonModal && state3.isOpen && import_react133.default.createElement("div", {
  70714. "data-testid": "underlay",
  70715. ...underlayProps,
  70716. style: {
  70717. position: "fixed",
  70718. inset: 0
  70719. }
  70720. }), import_react133.default.createElement("div", {
  70721. ref: containerRef,
  70722. style: {
  70723. display: "contents"
  70724. }
  70725. }, import_react133.default.createElement($07b14b47974efb58$var$PopoverGroupContext.Provider, {
  70726. value: containerRef
  70727. }, overlay)));
  70728. var _ref;
  70729. return import_react133.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
  70730. ...props,
  70731. shouldContainFocus: isDialog,
  70732. isExiting,
  70733. portalContainer: (_ref = UNSTABLE_portalContainer ?? groupCtx?.current) !== null && _ref !== void 0 ? _ref : void 0
  70734. }, overlay);
  70735. }
  70736. // ../../node_modules/react-aria-components/dist/Collection.mjs
  70737. var import_react134 = __toESM(require_react(), 1), $7135fc7d473fd974$export$d40e14dec8b060a8 = (0, import_react134.createContext)(null), $7135fc7d473fd974$export$6e2c8f0811a474ce = $e1995378a142960e$export$e953bb1cd0f19726("section", (props, ref, section) => {
  70738. let { name, render } = (0, import_react134.useContext)($7135fc7d473fd974$export$d40e14dec8b060a8);
  70739. return render(props, ref, section, "react-aria-Section");
  70740. }), $7135fc7d473fd974$export$a164736487e3f0ae = {
  70741. CollectionRoot({ collection, renderDropIndicator }) {
  70742. return $7135fc7d473fd974$var$useCollectionRender(collection, null, renderDropIndicator);
  70743. },
  70744. CollectionBranch({ collection, parent, renderDropIndicator }) {
  70745. return $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator);
  70746. }
  70747. };
  70748. function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator) {
  70749. return $e948873055cbafe4$export$727c8fc270210f13({
  70750. items: parent ? collection.getChildren(parent.key) : collection,
  70751. dependencies: [
  70752. renderDropIndicator
  70753. ],
  70754. children(node2) {
  70755. let rendered = node2.render(node2);
  70756. return !renderDropIndicator || node2.type !== "item" ? rendered : import_react134.default.createElement(import_react134.default.Fragment, null, renderDropIndicator({
  70757. type: "item",
  70758. key: node2.key,
  70759. dropPosition: "before"
  70760. }), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node2, renderDropIndicator));
  70761. }
  70762. });
  70763. }
  70764. function $7135fc7d473fd974$export$2dbbd341daed716d(collection, node2, renderDropIndicator) {
  70765. let key = node2.key, keyAfter = collection.getKeyAfter(key), nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
  70766. for (; nextItemInFlattenedCollection != null && nextItemInFlattenedCollection.type !== "item"; )
  70767. keyAfter = collection.getKeyAfter(nextItemInFlattenedCollection.key), nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
  70768. let nextItemInSameLevel = node2.nextKey != null ? collection.getItem(node2.nextKey) : null;
  70769. for (; nextItemInSameLevel != null && nextItemInSameLevel.type !== "item"; ) nextItemInSameLevel = nextItemInSameLevel.nextKey != null ? collection.getItem(nextItemInSameLevel.nextKey) : null;
  70770. let afterIndicators = [];
  70771. if (nextItemInSameLevel == null) {
  70772. let current = node2;
  70773. for (; current && (!nextItemInFlattenedCollection || current.parentKey !== nextItemInFlattenedCollection.parentKey && nextItemInFlattenedCollection.level < current.level); ) {
  70774. let indicator = renderDropIndicator({
  70775. type: "item",
  70776. key: current.key,
  70777. dropPosition: "after"
  70778. });
  70779. (0, import_react134.isValidElement)(indicator) && afterIndicators.push((0, import_react134.cloneElement)(indicator, {
  70780. key: `${current.key}-after`
  70781. })), current = current.parentKey != null ? collection.getItem(current.parentKey) : null;
  70782. }
  70783. }
  70784. return afterIndicators;
  70785. }
  70786. var $7135fc7d473fd974$export$4feb769f8ddf26c5 = (0, import_react134.createContext)($7135fc7d473fd974$export$a164736487e3f0ae);
  70787. function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
  70788. return (0, import_react134.useMemo)(() => focusedKey != null ? /* @__PURE__ */ new Set([
  70789. focusedKey
  70790. ]) : null, [
  70791. focusedKey
  70792. ]);
  70793. }
  70794. // ../../node_modules/react-aria-components/dist/context.mjs
  70795. var import_react135 = __toESM(require_react(), 1), $8e6cc465cc68f603$export$b0d3ecf7112093a7 = (0, import_react135.createContext)(null), $8e6cc465cc68f603$export$698f465ec27e93df = (0, import_react135.createContext)(null);
  70796. // ../../node_modules/react-aria-components/dist/Header.mjs
  70797. var import_react136 = __toESM(require_react(), 1), $72a5793c14baf454$export$e0e4026c12a8bdbb = (0, import_react136.createContext)({}), $72a5793c14baf454$export$8b251419efc915eb = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$5ae2504e948afce5, function(props, ref) {
  70798. return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb), import_react136.default.createElement("header", {
  70799. className: "react-aria-Header",
  70800. ...props,
  70801. ref
  70802. }, props.children);
  70803. });
  70804. // ../../node_modules/react-aria-components/dist/Keyboard.mjs
  70805. var import_react137 = __toESM(require_react(), 1), $63df2425e2108aa8$export$744d98a3b8a94e1c = (0, import_react137.createContext)({}), $63df2425e2108aa8$export$16e4d70cc375e707 = (0, import_react137.forwardRef)(function(props, ref) {
  70806. return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $63df2425e2108aa8$export$744d98a3b8a94e1c), import_react137.default.createElement("kbd", {
  70807. dir: "ltr",
  70808. ...props,
  70809. ref
  70810. });
  70811. });
  70812. // ../../node_modules/@react-aria/separator/dist/useSeparator.mjs
  70813. function $f4b273590fab9f93$export$52210f68a14655d0(props) {
  70814. let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70815. labelable: !0
  70816. }), ariaOrientation;
  70817. return props.orientation === "vertical" && (ariaOrientation = "vertical"), props.elementType !== "hr" ? {
  70818. separatorProps: {
  70819. ...domProps,
  70820. role: "separator",
  70821. "aria-orientation": ariaOrientation
  70822. }
  70823. } : {
  70824. separatorProps: domProps
  70825. };
  70826. }
  70827. // ../../node_modules/react-aria-components/dist/Separator.mjs
  70828. var import_react138 = __toESM(require_react(), 1), $431f98aba6844401$export$6615d83f6de245ce = (0, import_react138.createContext)({}), $431f98aba6844401$export$7750289ca694c0b5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  70829. filter(collection, newCollection) {
  70830. let prevItem = newCollection.getItem(this.prevKey);
  70831. if (prevItem && prevItem.type !== "separator") {
  70832. let clone3 = this.clone();
  70833. return newCollection.addDescendants(clone3, collection), clone3;
  70834. }
  70835. return null;
  70836. }
  70837. };
  70838. $431f98aba6844401$export$7750289ca694c0b5.type = "separator";
  70839. var $431f98aba6844401$export$1ff3c3f08ae963c0 = $e1995378a142960e$export$18af5c7a9e9b3664($431f98aba6844401$export$7750289ca694c0b5, function(props, ref) {
  70840. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $431f98aba6844401$export$6615d83f6de245ce);
  70841. let { elementType, orientation, style, className, slot, ...otherProps } = props, Element2 = elementType || "hr";
  70842. Element2 === "hr" && orientation === "vertical" && (Element2 = "div");
  70843. let { separatorProps } = $f4b273590fab9f93$export$52210f68a14655d0({
  70844. ...otherProps,
  70845. elementType,
  70846. orientation
  70847. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  70848. global: !0
  70849. });
  70850. return import_react138.default.createElement(Element2, {
  70851. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, separatorProps),
  70852. style,
  70853. className: className ?? "react-aria-Separator",
  70854. ref,
  70855. slot: slot || void 0
  70856. });
  70857. });
  70858. // ../../node_modules/@react-aria/menu/dist/ar-AE.mjs
  70859. var $c0398ad35c3639b7$exports = {};
  70860. $c0398ad35c3639b7$exports = {
  70861. longPressMessage: "\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"
  70862. };
  70863. // ../../node_modules/@react-aria/menu/dist/bg-BG.mjs
  70864. var $7af657c4165927c3$exports = {};
  70865. $7af657c4165927c3$exports = {
  70866. longPressMessage: "\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"
  70867. };
  70868. // ../../node_modules/@react-aria/menu/dist/cs-CZ.mjs
  70869. var $d95d4da6d531ab81$exports = {};
  70870. $d95d4da6d531ab81$exports = {
  70871. longPressMessage: "Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"
  70872. };
  70873. // ../../node_modules/@react-aria/menu/dist/da-DK.mjs
  70874. var $24ebda9c775dca17$exports = {};
  70875. $24ebda9c775dca17$exports = {
  70876. longPressMessage: "Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"
  70877. };
  70878. // ../../node_modules/@react-aria/menu/dist/de-DE.mjs
  70879. var $743e0dfca6cab1e9$exports = {};
  70880. $743e0dfca6cab1e9$exports = {
  70881. longPressMessage: "Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"
  70882. };
  70883. // ../../node_modules/@react-aria/menu/dist/el-GR.mjs
  70884. var $a2f41026e05f1c84$exports = {};
  70885. $a2f41026e05f1c84$exports = {
  70886. longPressMessage: "\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"
  70887. };
  70888. // ../../node_modules/@react-aria/menu/dist/en-US.mjs
  70889. var $43b800e97c901737$exports = {};
  70890. $43b800e97c901737$exports = {
  70891. longPressMessage: "Long press or press Alt + ArrowDown to open menu"
  70892. };
  70893. // ../../node_modules/@react-aria/menu/dist/es-ES.mjs
  70894. var $442f5f6ac211e29f$exports = {};
  70895. $442f5f6ac211e29f$exports = {
  70896. longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"
  70897. };
  70898. // ../../node_modules/@react-aria/menu/dist/et-EE.mjs
  70899. var $dff280acfeb2d8ac$exports = {};
  70900. $dff280acfeb2d8ac$exports = {
  70901. longPressMessage: "Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"
  70902. };
  70903. // ../../node_modules/@react-aria/menu/dist/fi-FI.mjs
  70904. var $51608325613944d7$exports = {};
  70905. $51608325613944d7$exports = {
  70906. longPressMessage: "Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"
  70907. };
  70908. // ../../node_modules/@react-aria/menu/dist/fr-FR.mjs
  70909. var $c4a1b1eabeaa87be$exports = {};
  70910. $c4a1b1eabeaa87be$exports = {
  70911. longPressMessage: "Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."
  70912. };
  70913. // ../../node_modules/@react-aria/menu/dist/he-IL.mjs
  70914. var $8c74815cdee18d1b$exports = {};
  70915. $8c74815cdee18d1b$exports = {
  70916. longPressMessage: "\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"
  70917. };
  70918. // ../../node_modules/@react-aria/menu/dist/hr-HR.mjs
  70919. var $fd0e9ef6a7fe0ec9$exports = {};
  70920. $fd0e9ef6a7fe0ec9$exports = {
  70921. longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"
  70922. };
  70923. // ../../node_modules/@react-aria/menu/dist/hu-HU.mjs
  70924. var $a89a74a39eba465a$exports = {};
  70925. $a89a74a39eba465a$exports = {
  70926. longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"
  70927. };
  70928. // ../../node_modules/@react-aria/menu/dist/it-IT.mjs
  70929. var $edc7c66594a0ae8a$exports = {};
  70930. $edc7c66594a0ae8a$exports = {
  70931. longPressMessage: "Premere a lungo o premere Alt + Freccia gi\xF9 per aprire il menu"
  70932. };
  70933. // ../../node_modules/@react-aria/menu/dist/ja-JP.mjs
  70934. var $f1ab51510712db52$exports = {};
  70935. $f1ab51510712db52$exports = {
  70936. longPressMessage: "\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"
  70937. };
  70938. // ../../node_modules/@react-aria/menu/dist/ko-KR.mjs
  70939. var $f9b672d9b82fa3d6$exports = {};
  70940. $f9b672d9b82fa3d6$exports = {
  70941. longPressMessage: "\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"
  70942. };
  70943. // ../../node_modules/@react-aria/menu/dist/lt-LT.mjs
  70944. var $a385f3910feda499$exports = {};
  70945. $a385f3910feda499$exports = {
  70946. longPressMessage: "Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."
  70947. };
  70948. // ../../node_modules/@react-aria/menu/dist/lv-LV.mjs
  70949. var $4f1bde932c441789$exports = {};
  70950. $4f1bde932c441789$exports = {
  70951. longPressMessage: "Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"
  70952. };
  70953. // ../../node_modules/@react-aria/menu/dist/nb-NO.mjs
  70954. var $914a51a8a594d5be$exports = {};
  70955. $914a51a8a594d5be$exports = {
  70956. longPressMessage: "Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"
  70957. };
  70958. // ../../node_modules/@react-aria/menu/dist/nl-NL.mjs
  70959. var $89aaf803103bb500$exports = {};
  70960. $89aaf803103bb500$exports = {
  70961. longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"
  70962. };
  70963. // ../../node_modules/@react-aria/menu/dist/pl-PL.mjs
  70964. var $c685891476dbaaca$exports = {};
  70965. $c685891476dbaaca$exports = {
  70966. longPressMessage: "Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"
  70967. };
  70968. // ../../node_modules/@react-aria/menu/dist/pt-BR.mjs
  70969. var $885879b9b10c2959$exports = {};
  70970. $885879b9b10c2959$exports = {
  70971. longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"
  70972. };
  70973. // ../../node_modules/@react-aria/menu/dist/pt-PT.mjs
  70974. var $6b39616688a51692$exports = {};
  70975. $6b39616688a51692$exports = {
  70976. longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"
  70977. };
  70978. // ../../node_modules/@react-aria/menu/dist/ro-RO.mjs
  70979. var $f26362aed63f47e2$exports = {};
  70980. $f26362aed63f47e2$exports = {
  70981. longPressMessage: "Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"
  70982. };
  70983. // ../../node_modules/@react-aria/menu/dist/ru-RU.mjs
  70984. var $06cbade644558bf0$exports = {};
  70985. $06cbade644558bf0$exports = {
  70986. longPressMessage: "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"
  70987. };
  70988. // ../../node_modules/@react-aria/menu/dist/sk-SK.mjs
  70989. var $0a391ff68f9d59b1$exports = {};
  70990. $0a391ff68f9d59b1$exports = {
  70991. longPressMessage: "Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"
  70992. };
  70993. // ../../node_modules/@react-aria/menu/dist/sl-SI.mjs
  70994. var $8193cf0e649c7928$exports = {};
  70995. $8193cf0e649c7928$exports = {
  70996. longPressMessage: "Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"
  70997. };
  70998. // ../../node_modules/@react-aria/menu/dist/sr-SP.mjs
  70999. var $f398debcce5a5c55$exports = {};
  71000. $f398debcce5a5c55$exports = {
  71001. longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"
  71002. };
  71003. // ../../node_modules/@react-aria/menu/dist/sv-SE.mjs
  71004. var $9e9fef000aa4c013$exports = {};
  71005. $9e9fef000aa4c013$exports = {
  71006. longPressMessage: "H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"
  71007. };
  71008. // ../../node_modules/@react-aria/menu/dist/tr-TR.mjs
  71009. var $c016c8183bbe3d68$exports = {};
  71010. $c016c8183bbe3d68$exports = {
  71011. longPressMessage: "Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"
  71012. };
  71013. // ../../node_modules/@react-aria/menu/dist/uk-UA.mjs
  71014. var $ca4f6c8462244e62$exports = {};
  71015. $ca4f6c8462244e62$exports = {
  71016. longPressMessage: "\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"
  71017. };
  71018. // ../../node_modules/@react-aria/menu/dist/zh-CN.mjs
  71019. var $2d9960c02ccac927$exports = {};
  71020. $2d9960c02ccac927$exports = {
  71021. longPressMessage: "\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"
  71022. };
  71023. // ../../node_modules/@react-aria/menu/dist/zh-TW.mjs
  71024. var $f1b682a4c8c5631c$exports = {};
  71025. $f1b682a4c8c5631c$exports = {
  71026. longPressMessage: "\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"
  71027. };
  71028. // ../../node_modules/@react-aria/menu/dist/intlStrings.mjs
  71029. var $2cbb7ca666678a14$exports = {};
  71030. $2cbb7ca666678a14$exports = {
  71031. "ar-AE": $c0398ad35c3639b7$exports,
  71032. "bg-BG": $7af657c4165927c3$exports,
  71033. "cs-CZ": $d95d4da6d531ab81$exports,
  71034. "da-DK": $24ebda9c775dca17$exports,
  71035. "de-DE": $743e0dfca6cab1e9$exports,
  71036. "el-GR": $a2f41026e05f1c84$exports,
  71037. "en-US": $43b800e97c901737$exports,
  71038. "es-ES": $442f5f6ac211e29f$exports,
  71039. "et-EE": $dff280acfeb2d8ac$exports,
  71040. "fi-FI": $51608325613944d7$exports,
  71041. "fr-FR": $c4a1b1eabeaa87be$exports,
  71042. "he-IL": $8c74815cdee18d1b$exports,
  71043. "hr-HR": $fd0e9ef6a7fe0ec9$exports,
  71044. "hu-HU": $a89a74a39eba465a$exports,
  71045. "it-IT": $edc7c66594a0ae8a$exports,
  71046. "ja-JP": $f1ab51510712db52$exports,
  71047. "ko-KR": $f9b672d9b82fa3d6$exports,
  71048. "lt-LT": $a385f3910feda499$exports,
  71049. "lv-LV": $4f1bde932c441789$exports,
  71050. "nb-NO": $914a51a8a594d5be$exports,
  71051. "nl-NL": $89aaf803103bb500$exports,
  71052. "pl-PL": $c685891476dbaaca$exports,
  71053. "pt-BR": $885879b9b10c2959$exports,
  71054. "pt-PT": $6b39616688a51692$exports,
  71055. "ro-RO": $f26362aed63f47e2$exports,
  71056. "ru-RU": $06cbade644558bf0$exports,
  71057. "sk-SK": $0a391ff68f9d59b1$exports,
  71058. "sl-SI": $8193cf0e649c7928$exports,
  71059. "sr-SP": $f398debcce5a5c55$exports,
  71060. "sv-SE": $9e9fef000aa4c013$exports,
  71061. "tr-TR": $c016c8183bbe3d68$exports,
  71062. "uk-UA": $ca4f6c8462244e62$exports,
  71063. "zh-CN": $2d9960c02ccac927$exports,
  71064. "zh-TW": $f1b682a4c8c5631c$exports
  71065. };
  71066. // ../../node_modules/@react-aria/menu/dist/utils.mjs
  71067. var $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
  71068. // ../../node_modules/@react-aria/selection/dist/utils.mjs
  71069. function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
  71070. return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
  71071. }
  71072. function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) {
  71073. var _collectionRef_current, _collectionRef_current1;
  71074. let selector = `[data-key="${CSS.escape(String(key))}"]`, collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection;
  71075. return collection && (selector = `[data-collection="${CSS.escape(collection)}"]${selector}`), (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector);
  71076. }
  71077. var $feb5ffebff200149$var$collectionMap = /* @__PURE__ */ new WeakMap();
  71078. function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) {
  71079. let id = $bdb11010cef70236$export$f680877a34711e37();
  71080. return $feb5ffebff200149$var$collectionMap.set(collection, id), id;
  71081. }
  71082. function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) {
  71083. return $feb5ffebff200149$var$collectionMap.get(collection);
  71084. }
  71085. // ../../node_modules/@react-aria/selection/dist/useTypeSelect.mjs
  71086. var import_react139 = __toESM(require_react(), 1), $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
  71087. function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
  71088. let { keyboardDelegate, selectionManager, onTypeSelect } = options, state3 = (0, import_react139.useRef)({
  71089. search: "",
  71090. timeout: void 0
  71091. }).current, onKeyDown = (e) => {
  71092. let character2 = $fb3050f43d946246$var$getStringForKey(e.key);
  71093. if (!(!character2 || e.ctrlKey || e.metaKey || !e.currentTarget.contains(e.target) || state3.search.length === 0 && character2 === " ")) {
  71094. if (character2 === " " && state3.search.trim().length > 0 && (e.preventDefault(), "continuePropagation" in e || e.stopPropagation()), state3.search += character2, keyboardDelegate.getKeyForSearch != null) {
  71095. let key = keyboardDelegate.getKeyForSearch(state3.search, selectionManager.focusedKey);
  71096. key == null && (key = keyboardDelegate.getKeyForSearch(state3.search)), key != null && (selectionManager.setFocusedKey(key), onTypeSelect && onTypeSelect(key));
  71097. }
  71098. clearTimeout(state3.timeout), state3.timeout = setTimeout(() => {
  71099. state3.search = "";
  71100. }, $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);
  71101. }
  71102. };
  71103. return {
  71104. typeSelectProps: {
  71105. // Using a capturing listener to catch the keydown event before
  71106. // other hooks in order to handle the Spacebar event.
  71107. onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDown : void 0
  71108. }
  71109. };
  71110. }
  71111. function $fb3050f43d946246$var$getStringForKey(key) {
  71112. return key.length === 1 || !/^[A-Z]/i.test(key) ? key : "";
  71113. }
  71114. // ../../node_modules/@react-aria/selection/dist/useSelectableCollection.mjs
  71115. var import_react_dom6 = __toESM(require_react_dom(), 1), import_react140 = __toESM(require_react(), 1);
  71116. function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
  71117. let { selectionManager: manager, keyboardDelegate: delegate, ref, autoFocus = !1, shouldFocusWrap = !1, disallowEmptySelection = !1, disallowSelectAll = !1, escapeKeyBehavior = "clearSelection", selectOnFocus = manager.selectionBehavior === "replace", disallowTypeAhead = !1, shouldUseVirtualFocus, allowsTabNavigation = !1, isVirtualized, scrollRef = ref, linkBehavior = "action" } = options, { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572(), onKeyDown = (e) => {
  71118. var _ref_current;
  71119. if (e.altKey && e.key === "Tab" && e.preventDefault(), !(!((_ref_current = ref.current) === null || _ref_current === void 0) && _ref_current.contains(e.target))) return;
  71120. let navigateToKey = (key, childFocus) => {
  71121. if (key != null) {
  71122. if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
  71123. (0, import_react_dom6.flushSync)(() => {
  71124. manager.setFocusedKey(key, childFocus);
  71125. });
  71126. let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key), itemProps = manager.getItemProps(key);
  71127. item && router.open(item, e, itemProps.href, itemProps.routerOptions);
  71128. return;
  71129. }
  71130. if (manager.setFocusedKey(key, childFocus), manager.isLink(key) && linkBehavior === "override") return;
  71131. e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(key) : selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e) && manager.replaceSelection(key);
  71132. }
  71133. };
  71134. switch (e.key) {
  71135. case "ArrowDown":
  71136. if (delegate.getKeyBelow) {
  71137. var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
  71138. let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
  71139. nextKey == null && shouldFocusWrap && (nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71140. }
  71141. break;
  71142. case "ArrowUp":
  71143. if (delegate.getKeyAbove) {
  71144. var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
  71145. let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
  71146. nextKey == null && shouldFocusWrap && (nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71147. }
  71148. break;
  71149. case "ArrowLeft":
  71150. if (delegate.getKeyLeftOf) {
  71151. var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
  71152. let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
  71153. nextKey == null && shouldFocusWrap && (nextKey = direction === "rtl" ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey, direction === "rtl" ? "first" : "last"));
  71154. }
  71155. break;
  71156. case "ArrowRight":
  71157. if (delegate.getKeyRightOf) {
  71158. var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
  71159. let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
  71160. nextKey == null && shouldFocusWrap && (nextKey = direction === "rtl" ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey)), nextKey != null && (e.preventDefault(), navigateToKey(nextKey, direction === "rtl" ? "last" : "first"));
  71161. }
  71162. break;
  71163. case "Home":
  71164. if (delegate.getFirstKey) {
  71165. if (manager.focusedKey === null && e.shiftKey) return;
  71166. e.preventDefault();
  71167. let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
  71168. manager.setFocusedKey(firstKey), firstKey != null && ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(firstKey) : selectOnFocus && manager.replaceSelection(firstKey));
  71169. }
  71170. break;
  71171. case "End":
  71172. if (delegate.getLastKey) {
  71173. if (manager.focusedKey === null && e.shiftKey) return;
  71174. e.preventDefault();
  71175. let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
  71176. manager.setFocusedKey(lastKey), lastKey != null && ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(lastKey) : selectOnFocus && manager.replaceSelection(lastKey));
  71177. }
  71178. break;
  71179. case "PageDown":
  71180. if (delegate.getKeyPageBelow && manager.focusedKey != null) {
  71181. let nextKey = delegate.getKeyPageBelow(manager.focusedKey);
  71182. nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71183. }
  71184. break;
  71185. case "PageUp":
  71186. if (delegate.getKeyPageAbove && manager.focusedKey != null) {
  71187. let nextKey = delegate.getKeyPageAbove(manager.focusedKey);
  71188. nextKey != null && (e.preventDefault(), navigateToKey(nextKey));
  71189. }
  71190. break;
  71191. case "a":
  71192. $21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== !0 && (e.preventDefault(), manager.selectAll());
  71193. break;
  71194. case "Escape":
  71195. escapeKeyBehavior === "clearSelection" && !disallowEmptySelection && manager.selectedKeys.size !== 0 && (e.stopPropagation(), e.preventDefault(), manager.clearSelection());
  71196. break;
  71197. case "Tab":
  71198. if (!allowsTabNavigation) {
  71199. if (e.shiftKey) ref.current.focus();
  71200. else {
  71201. let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, {
  71202. tabbable: !0
  71203. }), next2, last2;
  71204. do
  71205. last2 = walker.lastChild(), last2 && (next2 = last2);
  71206. while (last2);
  71207. next2 && !next2.contains(document.activeElement) && $7215afc6de606d6b$export$de79e2c695e052f3(next2);
  71208. }
  71209. break;
  71210. }
  71211. }
  71212. }, scrollPos = (0, import_react140.useRef)({
  71213. top: 0,
  71214. left: 0
  71215. });
  71216. $e9faafb641e167db$export$90fc3a17d93f704c(scrollRef, "scroll", isVirtualized ? void 0 : () => {
  71217. var _scrollRef_current, _scrollRef_current1, _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;
  71218. scrollPos.current = {
  71219. top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,
  71220. left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0
  71221. };
  71222. });
  71223. let onFocus = (e) => {
  71224. if (manager.isFocused) {
  71225. e.currentTarget.contains(e.target) || manager.setFocused(!1);
  71226. return;
  71227. }
  71228. if (e.currentTarget.contains(e.target)) {
  71229. if (manager.setFocused(!0), manager.focusedKey == null) {
  71230. var _delegate_getLastKey, _delegate_getFirstKey;
  71231. let navigateToKey = (key) => {
  71232. key != null && (manager.setFocusedKey(key), selectOnFocus && !manager.isSelected(key) && manager.replaceSelection(key));
  71233. }, relatedTarget = e.relatedTarget;
  71234. var _manager_lastSelectedKey, _manager_firstSelectedKey;
  71235. relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING ? navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) : navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
  71236. } else !isVirtualized && scrollRef.current && (scrollRef.current.scrollTop = scrollPos.current.top, scrollRef.current.scrollLeft = scrollPos.current.left);
  71237. if (manager.focusedKey != null && scrollRef.current) {
  71238. let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
  71239. element instanceof HTMLElement && (!element.contains(document.activeElement) && !shouldUseVirtualFocus && $7215afc6de606d6b$export$de79e2c695e052f3(element), $507fabe10e71c6fb$export$630ff653c5ada6a9() === "keyboard" && $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
  71240. containingElement: ref.current
  71241. }));
  71242. }
  71243. }
  71244. }, onBlur = (e) => {
  71245. e.currentTarget.contains(e.relatedTarget) || manager.setFocused(!1);
  71246. }, shouldVirtualFocusFirst = (0, import_react140.useRef)(!1);
  71247. $e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, shouldUseVirtualFocus ? (e) => {
  71248. let { detail } = e;
  71249. e.stopPropagation(), manager.setFocused(!0), detail?.focusStrategy === "first" && (shouldVirtualFocusFirst.current = !0);
  71250. } : void 0);
  71251. let updateActiveDescendant = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
  71252. var _delegate_getFirstKey, _delegate_getFirstKey1;
  71253. let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
  71254. if (keyToFocus == null) {
  71255. let previousActiveElement = $d4ee10de306f2510$export$cd4e5573fbe2b576();
  71256. $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current), $55f9b1ae81f22853$export$2b35b76d2e30e129(previousActiveElement, null), manager.collection.size > 0 && (shouldVirtualFocusFirst.current = !1);
  71257. } else
  71258. manager.setFocusedKey(keyToFocus), shouldVirtualFocusFirst.current = !1;
  71259. });
  71260. $ca9b37712f007381$export$72ef708ab07251f1(() => {
  71261. shouldVirtualFocusFirst.current && updateActiveDescendant();
  71262. }, [
  71263. manager.collection,
  71264. updateActiveDescendant
  71265. ]);
  71266. let resetFocusFirstFlag = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
  71267. manager.collection.size > 0 && (shouldVirtualFocusFirst.current = !1);
  71268. });
  71269. $ca9b37712f007381$export$72ef708ab07251f1(() => {
  71270. resetFocusFirstFlag();
  71271. }, [
  71272. manager.focusedKey,
  71273. resetFocusFirstFlag
  71274. ]), $e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, shouldUseVirtualFocus ? (e) => {
  71275. var _e_detail;
  71276. e.stopPropagation(), manager.setFocused(!1), !((_e_detail = e.detail) === null || _e_detail === void 0) && _e_detail.clearFocusKey && manager.setFocusedKey(null);
  71277. } : void 0);
  71278. let autoFocusRef = (0, import_react140.useRef)(autoFocus), didAutoFocusRef = (0, import_react140.useRef)(!1);
  71279. (0, import_react140.useEffect)(() => {
  71280. if (autoFocusRef.current) {
  71281. var _delegate_getFirstKey, _delegate_getLastKey;
  71282. let focusedKey = null;
  71283. var _delegate_getFirstKey1;
  71284. autoFocus === "first" && (focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null);
  71285. var _delegate_getLastKey1;
  71286. autoFocus === "last" && (focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null);
  71287. let selectedKeys = manager.selectedKeys;
  71288. if (selectedKeys.size) {
  71289. for (let key of selectedKeys) if (manager.canSelectItem(key)) {
  71290. focusedKey = key;
  71291. break;
  71292. }
  71293. }
  71294. manager.setFocused(!0), manager.setFocusedKey(focusedKey), focusedKey == null && !shouldUseVirtualFocus && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current), manager.collection.size > 0 && (autoFocusRef.current = !1, didAutoFocusRef.current = !0);
  71295. }
  71296. });
  71297. let lastFocusedKey = (0, import_react140.useRef)(manager.focusedKey), raf = (0, import_react140.useRef)(null);
  71298. (0, import_react140.useEffect)(() => {
  71299. if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
  71300. let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9(), element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
  71301. if (!(element instanceof HTMLElement))
  71302. return;
  71303. (modality === "keyboard" || didAutoFocusRef.current) && (raf.current && cancelAnimationFrame(raf.current), raf.current = requestAnimationFrame(() => {
  71304. scrollRef.current && ($2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element), modality !== "virtual" && $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
  71305. containingElement: ref.current
  71306. }));
  71307. }));
  71308. }
  71309. !shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current), lastFocusedKey.current = manager.focusedKey, didAutoFocusRef.current = !1;
  71310. }), (0, import_react140.useEffect)(() => () => {
  71311. raf.current && cancelAnimationFrame(raf.current);
  71312. }, []), $e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
  71313. e.preventDefault(), manager.setFocused(!0);
  71314. });
  71315. let handlers = {
  71316. onKeyDown,
  71317. onFocus,
  71318. onBlur,
  71319. onMouseDown(e) {
  71320. scrollRef.current === e.target && e.preventDefault();
  71321. }
  71322. }, { typeSelectProps } = $fb3050f43d946246$export$e32c88dfddc6e1d8({
  71323. keyboardDelegate: delegate,
  71324. selectionManager: manager
  71325. });
  71326. disallowTypeAhead || (handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers));
  71327. let tabIndex;
  71328. shouldUseVirtualFocus || (tabIndex = manager.focusedKey == null ? 0 : -1);
  71329. let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection);
  71330. return {
  71331. collectionProps: $3ef42575df84b30b$export$9d1611c77c2fe928(handlers, {
  71332. tabIndex,
  71333. "data-collection": collectionId
  71334. })
  71335. };
  71336. }
  71337. // ../../node_modules/@react-aria/selection/dist/useSelectableItem.mjs
  71338. var import_react141 = __toESM(require_react(), 1);
  71339. function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
  71340. let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled: isDisabled3, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options, router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
  71341. id = $bdb11010cef70236$export$f680877a34711e37(id);
  71342. let onSelect = (e) => {
  71343. if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
  71344. else {
  71345. if (manager.selectionMode === "none") return;
  71346. if (manager.isLink(key)) {
  71347. if (linkBehavior === "selection" && ref.current) {
  71348. let itemProps2 = manager.getItemProps(key);
  71349. router.open(ref.current, e, itemProps2.href, itemProps2.routerOptions), manager.setSelectedKeys(manager.selectedKeys);
  71350. return;
  71351. } else if (linkBehavior === "override" || linkBehavior === "none") return;
  71352. }
  71353. manager.selectionMode === "single" ? manager.isSelected(key) && !manager.disallowEmptySelection ? manager.toggleSelection(key) : manager.replaceSelection(key) : e && e.shiftKey ? manager.extendSelection(key) : manager.selectionBehavior === "toggle" || e && ($21f1aa98acb08317$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? manager.toggleSelection(key) : manager.replaceSelection(key);
  71354. }
  71355. };
  71356. (0, import_react141.useEffect)(() => {
  71357. key === manager.focusedKey && manager.isFocused && (shouldUseVirtualFocus ? $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current) : focus ? focus() : document.activeElement !== ref.current && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current));
  71358. }, [
  71359. ref,
  71360. key,
  71361. manager.focusedKey,
  71362. manager.childFocusStrategy,
  71363. manager.isFocused,
  71364. shouldUseVirtualFocus
  71365. ]), isDisabled3 = isDisabled3 || manager.isDisabled(key);
  71366. let itemProps = {};
  71367. !shouldUseVirtualFocus && !isDisabled3 ? itemProps = {
  71368. tabIndex: key === manager.focusedKey ? 0 : -1,
  71369. onFocus(e) {
  71370. e.target === ref.current && manager.setFocusedKey(key);
  71371. }
  71372. } : isDisabled3 && (itemProps.onMouseDown = (e) => {
  71373. e.preventDefault();
  71374. });
  71375. let isLinkOverride = manager.isLink(key) && linkBehavior === "override", isActionOverride = onAction && options.UNSTABLE_itemBehavior === "action", hasLinkAction = manager.isLink(key) && linkBehavior !== "selection" && linkBehavior !== "none", allowsSelection = !isDisabled3 && manager.canSelectItem(key) && !isLinkOverride && !isActionOverride, allowsActions = (onAction || hasLinkAction) && !isDisabled3, hasPrimaryAction = allowsActions && (manager.selectionBehavior === "replace" ? !allowsSelection : !allowsSelection || manager.isEmpty), hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === "replace", hasAction = hasPrimaryAction || hasSecondaryAction, modality = (0, import_react141.useRef)(null), longPressEnabled = hasAction && allowsSelection, longPressEnabledOnPressStart = (0, import_react141.useRef)(!1), hadPrimaryActionOnPressStart = (0, import_react141.useRef)(!1), collectionItemProps = manager.getItemProps(key), performAction = (e) => {
  71376. if (onAction) {
  71377. var _ref_current;
  71378. onAction(), (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.dispatchEvent(new CustomEvent("react-aria-item-action", {
  71379. bubbles: !0
  71380. }));
  71381. }
  71382. hasLinkAction && ref.current && router.open(ref.current, e, collectionItemProps.href, collectionItemProps.routerOptions);
  71383. }, itemPressProps = {
  71384. ref
  71385. };
  71386. if (shouldSelectOnPressUp ? (itemPressProps.onPressStart = (e) => {
  71387. modality.current = e.pointerType, longPressEnabledOnPressStart.current = longPressEnabled, e.pointerType === "keyboard" && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey()) && onSelect(e);
  71388. }, allowsDifferentPressOrigin ? (itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
  71389. e.pointerType === "mouse" && allowsSelection && onSelect(e);
  71390. }, itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
  71391. e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection && onSelect(e);
  71392. }) : itemPressProps.onPress = (e) => {
  71393. if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== "mouse") {
  71394. if (e.pointerType === "keyboard" && !$880e95eb8b93ba9a$var$isActionKey()) return;
  71395. performAction(e);
  71396. } else e.pointerType !== "keyboard" && allowsSelection && onSelect(e);
  71397. }) : (itemPressProps.onPressStart = (e) => {
  71398. modality.current = e.pointerType, longPressEnabledOnPressStart.current = longPressEnabled, hadPrimaryActionOnPressStart.current = hasPrimaryAction, allowsSelection && (e.pointerType === "mouse" && !hasPrimaryAction || e.pointerType === "keyboard" && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey())) && onSelect(e);
  71399. }, itemPressProps.onPress = (e) => {
  71400. (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && hasAction && $880e95eb8b93ba9a$var$isActionKey() || e.pointerType === "mouse" && hadPrimaryActionOnPressStart.current) && (hasAction ? performAction(e) : allowsSelection && onSelect(e));
  71401. }), itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection), itemProps["data-key"] = key, itemPressProps.preventFocusOnPress = shouldUseVirtualFocus, shouldUseVirtualFocus && (itemPressProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, {
  71402. onPressStart(e) {
  71403. e.pointerType !== "touch" && (manager.setFocused(!0), manager.setFocusedKey(key));
  71404. },
  71405. onPress(e) {
  71406. e.pointerType === "touch" && (manager.setFocused(!0), manager.setFocusedKey(key));
  71407. }
  71408. })), collectionItemProps)
  71409. for (let key2 of [
  71410. "onPressStart",
  71411. "onPressEnd",
  71412. "onPressChange",
  71413. "onPress",
  71414. "onPressUp",
  71415. "onClick"
  71416. ]) collectionItemProps[key2] && (itemPressProps[key2] = $ff5963eb1fccf552$export$e08e3b67e392101e(itemPressProps[key2], collectionItemProps[key2]));
  71417. let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps), onDoubleClick = hasSecondaryAction ? (e) => {
  71418. modality.current === "mouse" && (e.stopPropagation(), e.preventDefault(), performAction(e));
  71419. } : void 0, { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({
  71420. isDisabled: !longPressEnabled,
  71421. onLongPress(e) {
  71422. e.pointerType === "touch" && (onSelect(e), manager.setSelectionBehavior("toggle"));
  71423. }
  71424. }), onDragStartCapture = (e) => {
  71425. modality.current === "touch" && longPressEnabledOnPressStart.current && e.preventDefault();
  71426. }, onClick = linkBehavior !== "none" && manager.isLink(key) ? (e) => {
  71427. $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening || e.preventDefault();
  71428. } : void 0;
  71429. return {
  71430. itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
  71431. itemProps,
  71432. allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled3 ? pressProps : {},
  71433. longPressEnabled ? longPressProps : {},
  71434. {
  71435. onDoubleClick,
  71436. onDragStartCapture,
  71437. onClick,
  71438. id
  71439. },
  71440. // Prevent DOM focus from moving on mouse down when using virtual focus
  71441. shouldUseVirtualFocus ? {
  71442. onMouseDown: (e) => e.preventDefault()
  71443. } : void 0
  71444. ),
  71445. isPressed,
  71446. isSelected: manager.isSelected(key),
  71447. isFocused: manager.isFocused && manager.focusedKey === key,
  71448. isDisabled: isDisabled3,
  71449. allowsSelection,
  71450. hasAction
  71451. };
  71452. }
  71453. function $880e95eb8b93ba9a$var$isActionKey() {
  71454. let event = window.event;
  71455. return event?.key === "Enter";
  71456. }
  71457. function $880e95eb8b93ba9a$var$isSelectionKey() {
  71458. let event = window.event;
  71459. return event?.key === " " || event?.code === "Space";
  71460. }
  71461. // ../../node_modules/@react-aria/selection/dist/DOMLayoutDelegate.mjs
  71462. var $657e4dc4a6e88df0$export$8f5ed9ff9f511381 = class {
  71463. getItemRect(key) {
  71464. let container = this.ref.current;
  71465. if (!container) return null;
  71466. let item = key != null ? $feb5ffebff200149$export$c3d8340acf92597f(this.ref, key) : null;
  71467. if (!item) return null;
  71468. let containerRect = container.getBoundingClientRect(), itemRect = item.getBoundingClientRect();
  71469. return {
  71470. x: itemRect.left - containerRect.left - container.clientLeft + container.scrollLeft,
  71471. y: itemRect.top - containerRect.top - container.clientTop + container.scrollTop,
  71472. width: itemRect.width,
  71473. height: itemRect.height
  71474. };
  71475. }
  71476. getContentSize() {
  71477. let container = this.ref.current;
  71478. var _container_scrollWidth, _container_scrollHeight;
  71479. return {
  71480. width: (_container_scrollWidth = container?.scrollWidth) !== null && _container_scrollWidth !== void 0 ? _container_scrollWidth : 0,
  71481. height: (_container_scrollHeight = container?.scrollHeight) !== null && _container_scrollHeight !== void 0 ? _container_scrollHeight : 0
  71482. };
  71483. }
  71484. getVisibleRect() {
  71485. let container = this.ref.current;
  71486. var _container_scrollLeft, _container_scrollTop, _container_clientWidth, _container_clientHeight;
  71487. return {
  71488. x: (_container_scrollLeft = container?.scrollLeft) !== null && _container_scrollLeft !== void 0 ? _container_scrollLeft : 0,
  71489. y: (_container_scrollTop = container?.scrollTop) !== null && _container_scrollTop !== void 0 ? _container_scrollTop : 0,
  71490. width: (_container_clientWidth = container?.clientWidth) !== null && _container_clientWidth !== void 0 ? _container_clientWidth : 0,
  71491. height: (_container_clientHeight = container?.clientHeight) !== null && _container_clientHeight !== void 0 ? _container_clientHeight : 0
  71492. };
  71493. }
  71494. constructor(ref) {
  71495. this.ref = ref;
  71496. }
  71497. };
  71498. // ../../node_modules/@react-aria/selection/dist/ListKeyboardDelegate.mjs
  71499. var $2a25aae57d74318e$export$a05409b8bb224a5a = class {
  71500. isDisabled(item) {
  71501. var _item_props;
  71502. return this.disabledBehavior === "all" && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));
  71503. }
  71504. findNextNonDisabled(key, getNext) {
  71505. let nextKey = key;
  71506. for (; nextKey != null; ) {
  71507. let item = this.collection.getItem(nextKey);
  71508. if (item?.type === "item" && !this.isDisabled(item)) return nextKey;
  71509. nextKey = getNext(nextKey);
  71510. }
  71511. return null;
  71512. }
  71513. getNextKey(key) {
  71514. let nextKey = key;
  71515. return nextKey = this.collection.getKeyAfter(nextKey), this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyAfter(key2));
  71516. }
  71517. getPreviousKey(key) {
  71518. let nextKey = key;
  71519. return nextKey = this.collection.getKeyBefore(nextKey), this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyBefore(key2));
  71520. }
  71521. findKey(key, nextKey, shouldSkip) {
  71522. let tempKey = key, itemRect = this.layoutDelegate.getItemRect(tempKey);
  71523. if (!itemRect || tempKey == null) return null;
  71524. let prevRect = itemRect;
  71525. do {
  71526. if (tempKey = nextKey(tempKey), tempKey == null) break;
  71527. itemRect = this.layoutDelegate.getItemRect(tempKey);
  71528. } while (itemRect && shouldSkip(prevRect, itemRect) && tempKey != null);
  71529. return tempKey;
  71530. }
  71531. isSameRow(prevRect, itemRect) {
  71532. return prevRect.y === itemRect.y || prevRect.x !== itemRect.x;
  71533. }
  71534. isSameColumn(prevRect, itemRect) {
  71535. return prevRect.x === itemRect.x || prevRect.y !== itemRect.y;
  71536. }
  71537. getKeyBelow(key) {
  71538. return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(key, (key2) => this.getNextKey(key2), this.isSameRow) : this.getNextKey(key);
  71539. }
  71540. getKeyAbove(key) {
  71541. return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(key, (key2) => this.getPreviousKey(key2), this.isSameRow) : this.getPreviousKey(key);
  71542. }
  71543. getNextColumn(key, right2) {
  71544. return right2 ? this.getPreviousKey(key) : this.getNextKey(key);
  71545. }
  71546. getKeyRightOf(key) {
  71547. let layoutDelegateMethod = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
  71548. return this.layoutDelegate[layoutDelegateMethod] ? (key = this.layoutDelegate[layoutDelegateMethod](key), this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(key, this.direction === "rtl") : this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(key, this.direction === "rtl") : null;
  71549. }
  71550. getKeyLeftOf(key) {
  71551. let layoutDelegateMethod = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
  71552. return this.layoutDelegate[layoutDelegateMethod] ? (key = this.layoutDelegate[layoutDelegateMethod](key), this.findNextNonDisabled(key, (key2) => this.layoutDelegate[layoutDelegateMethod](key2))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(key, this.direction === "ltr") : this.findKey(key, (key2) => this.getNextColumn(key2, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(key, this.direction === "ltr") : null;
  71553. }
  71554. getFirstKey() {
  71555. let key = this.collection.getFirstKey();
  71556. return this.findNextNonDisabled(key, (key2) => this.collection.getKeyAfter(key2));
  71557. }
  71558. getLastKey() {
  71559. let key = this.collection.getLastKey();
  71560. return this.findNextNonDisabled(key, (key2) => this.collection.getKeyBefore(key2));
  71561. }
  71562. getKeyPageAbove(key) {
  71563. let menu = this.ref.current, itemRect = this.layoutDelegate.getItemRect(key);
  71564. if (!itemRect) return null;
  71565. if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getFirstKey();
  71566. let nextKey = key;
  71567. if (this.orientation === "horizontal") {
  71568. let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width);
  71569. for (; itemRect && itemRect.x > pageX && nextKey != null; )
  71570. nextKey = this.getKeyAbove(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71571. } else {
  71572. let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height);
  71573. for (; itemRect && itemRect.y > pageY && nextKey != null; )
  71574. nextKey = this.getKeyAbove(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71575. }
  71576. return nextKey ?? this.getFirstKey();
  71577. }
  71578. getKeyPageBelow(key) {
  71579. let menu = this.ref.current, itemRect = this.layoutDelegate.getItemRect(key);
  71580. if (!itemRect) return null;
  71581. if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getLastKey();
  71582. let nextKey = key;
  71583. if (this.orientation === "horizontal") {
  71584. let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width);
  71585. for (; itemRect && itemRect.x < pageX && nextKey != null; )
  71586. nextKey = this.getKeyBelow(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71587. } else {
  71588. let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height);
  71589. for (; itemRect && itemRect.y < pageY && nextKey != null; )
  71590. nextKey = this.getKeyBelow(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
  71591. }
  71592. return nextKey ?? this.getLastKey();
  71593. }
  71594. getKeyForSearch(search, fromKey) {
  71595. if (!this.collator) return null;
  71596. let collection = this.collection, key = fromKey || this.getFirstKey();
  71597. for (; key != null; ) {
  71598. let item = collection.getItem(key);
  71599. if (!item) return null;
  71600. let substring = item.textValue.slice(0, search.length);
  71601. if (item.textValue && this.collator.compare(substring, search) === 0) return key;
  71602. key = this.getNextKey(key);
  71603. }
  71604. return null;
  71605. }
  71606. constructor(...args) {
  71607. if (args.length === 1) {
  71608. let opts = args[0];
  71609. this.collection = opts.collection, this.ref = opts.ref, this.collator = opts.collator, this.disabledKeys = opts.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = opts.disabledBehavior || "all", this.orientation = opts.orientation || "vertical", this.direction = opts.direction, this.layout = opts.layout || "stack", this.layoutDelegate = opts.layoutDelegate || new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(opts.ref);
  71610. } else
  71611. this.collection = args[0], this.disabledKeys = args[1], this.ref = args[2], this.collator = args[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(this.ref);
  71612. this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
  71613. }
  71614. };
  71615. // ../../node_modules/@react-aria/selection/dist/useSelectableList.mjs
  71616. var import_react142 = __toESM(require_react(), 1);
  71617. function $982254629710d113$export$b95089534ab7c1fd(props) {
  71618. let { selectionManager, collection, disabledKeys, ref, keyboardDelegate, layoutDelegate } = props, collator = $325a3faab7a68acd$export$a16aca283550c30d({
  71619. usage: "search",
  71620. sensitivity: "base"
  71621. }), disabledBehavior = selectionManager.disabledBehavior, delegate = (0, import_react142.useMemo)(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
  71622. collection,
  71623. disabledKeys,
  71624. disabledBehavior,
  71625. ref,
  71626. collator,
  71627. layoutDelegate
  71628. }), [
  71629. keyboardDelegate,
  71630. layoutDelegate,
  71631. collection,
  71632. disabledKeys,
  71633. ref,
  71634. collator,
  71635. disabledBehavior
  71636. ]), { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
  71637. ...props,
  71638. ref,
  71639. selectionManager,
  71640. keyboardDelegate: delegate
  71641. });
  71642. return {
  71643. listProps: collectionProps
  71644. };
  71645. }
  71646. // ../../node_modules/@react-aria/menu/dist/useMenu.mjs
  71647. function $d5336fe17ce95402$export$38eaa17faae8f579(props, state3, ref) {
  71648. let { shouldFocusWrap = !0, onKeyDown, onKeyUp, ...otherProps } = props;
  71649. !props["aria-label"] && props["aria-labelledby"];
  71650. let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  71651. labelable: !0
  71652. }), { listProps } = $982254629710d113$export$b95089534ab7c1fd({
  71653. ...otherProps,
  71654. ref,
  71655. selectionManager: state3.selectionManager,
  71656. collection: state3.collection,
  71657. disabledKeys: state3.disabledKeys,
  71658. shouldFocusWrap,
  71659. linkBehavior: "override"
  71660. });
  71661. return $fc79756100351201$export$6f49b4016bfc8d56.set(state3, {
  71662. onClose: props.onClose,
  71663. onAction: props.onAction,
  71664. shouldUseVirtualFocus: props.shouldUseVirtualFocus
  71665. }), {
  71666. menuProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
  71667. onKeyDown,
  71668. onKeyUp
  71669. }, {
  71670. role: "menu",
  71671. ...listProps,
  71672. onKeyDown: (e) => {
  71673. var _listProps_onKeyDown;
  71674. (e.key !== "Escape" || props.shouldUseVirtualFocus) && ((_listProps_onKeyDown = listProps.onKeyDown) === null || _listProps_onKeyDown === void 0 || _listProps_onKeyDown.call(listProps, e));
  71675. }
  71676. })
  71677. };
  71678. }
  71679. // ../../node_modules/@react-stately/collections/dist/Item.mjs
  71680. var import_react143 = __toESM(require_react(), 1);
  71681. function $c1d7fb2ec91bae71$var$Item(props) {
  71682. return null;
  71683. }
  71684. $c1d7fb2ec91bae71$var$Item.getCollectionNode = function* (props, context) {
  71685. let { childItems, title, children } = props, rendered = props.title || props.children, textValue = props.textValue || (typeof rendered == "string" ? rendered : "") || props["aria-label"] || "";
  71686. !textValue && context?.suppressTextValueWarning, yield {
  71687. type: "item",
  71688. props,
  71689. rendered,
  71690. textValue,
  71691. "aria-label": props["aria-label"],
  71692. hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),
  71693. *childNodes() {
  71694. if (childItems) for (let child of childItems) yield {
  71695. type: "item",
  71696. value: child
  71697. };
  71698. else if (title) {
  71699. let items = [];
  71700. import_react143.default.Children.forEach(children, (child) => {
  71701. items.push({
  71702. type: "item",
  71703. element: child
  71704. });
  71705. }), yield* items;
  71706. }
  71707. }
  71708. };
  71709. };
  71710. function $c1d7fb2ec91bae71$var$hasChildItems(props) {
  71711. return props.hasChildItems != null ? props.hasChildItems : !!(props.childItems || props.title && import_react143.default.Children.count(props.children) > 0);
  71712. }
  71713. var $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;
  71714. // ../../node_modules/@react-stately/collections/dist/Section.mjs
  71715. var import_react144 = __toESM(require_react(), 1);
  71716. function $9fc4852771d079eb$var$Section(props) {
  71717. return null;
  71718. }
  71719. $9fc4852771d079eb$var$Section.getCollectionNode = function* (props) {
  71720. let { children, title, items } = props;
  71721. yield {
  71722. type: "section",
  71723. props,
  71724. hasChildNodes: !0,
  71725. rendered: title,
  71726. "aria-label": props["aria-label"],
  71727. *childNodes() {
  71728. if (typeof children == "function") {
  71729. if (!items) throw new Error("props.children was a function but props.items is missing");
  71730. for (let item of items) yield {
  71731. type: "item",
  71732. value: item,
  71733. renderer: children
  71734. };
  71735. } else {
  71736. let items2 = [];
  71737. import_react144.default.Children.forEach(children, (child) => {
  71738. items2.push({
  71739. type: "item",
  71740. element: child
  71741. });
  71742. }), yield* items2;
  71743. }
  71744. }
  71745. };
  71746. };
  71747. // ../../node_modules/@react-stately/collections/dist/CollectionBuilder.mjs
  71748. var import_react145 = __toESM(require_react(), 1), $eb2240fc39a57fa5$export$bf788dd355e3a401 = class {
  71749. build(props, context) {
  71750. return this.context = context, $eb2240fc39a57fa5$var$iterable(() => this.iterateCollection(props));
  71751. }
  71752. *iterateCollection(props) {
  71753. let { children, items } = props;
  71754. if (import_react145.default.isValidElement(children) && children.type === import_react145.default.Fragment) yield* this.iterateCollection({
  71755. children: children.props.children,
  71756. items
  71757. });
  71758. else if (typeof children == "function") {
  71759. if (!items) throw new Error("props.children was a function but props.items is missing");
  71760. let index4 = 0;
  71761. for (let item of items)
  71762. yield* this.getFullNode({
  71763. value: item,
  71764. index: index4
  71765. }, {
  71766. renderer: children
  71767. }), index4++;
  71768. } else {
  71769. let items2 = [];
  71770. import_react145.default.Children.forEach(children, (child) => {
  71771. child && items2.push(child);
  71772. });
  71773. let index4 = 0;
  71774. for (let item of items2) {
  71775. let nodes = this.getFullNode({
  71776. element: item,
  71777. index: index4
  71778. }, {});
  71779. for (let node2 of nodes)
  71780. index4++, yield node2;
  71781. }
  71782. }
  71783. }
  71784. getKey(item, partialNode, state3, parentKey) {
  71785. if (item.key != null) return item.key;
  71786. if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
  71787. let v = partialNode.value;
  71788. if (v != null) {
  71789. var _v_key;
  71790. let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
  71791. if (key == null) throw new Error("No key found for item");
  71792. return key;
  71793. }
  71794. return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
  71795. }
  71796. getChildState(state3, partialNode) {
  71797. return {
  71798. renderer: partialNode.renderer || state3.renderer
  71799. };
  71800. }
  71801. *getFullNode(partialNode, state3, parentKey, parentNode) {
  71802. if (import_react145.default.isValidElement(partialNode.element) && partialNode.element.type === import_react145.default.Fragment) {
  71803. let children = [];
  71804. import_react145.default.Children.forEach(partialNode.element.props.children, (child) => {
  71805. children.push(child);
  71806. });
  71807. var _partialNode_index;
  71808. let index4 = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0;
  71809. for (let child of children) yield* this.getFullNode({
  71810. element: child,
  71811. index: index4++
  71812. }, state3, parentKey, parentNode);
  71813. return;
  71814. }
  71815. let element = partialNode.element;
  71816. if (!element && partialNode.value && state3 && state3.renderer) {
  71817. let cached = this.cache.get(partialNode.value);
  71818. if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
  71819. cached.index = partialNode.index, cached.parentKey = parentNode ? parentNode.key : null, yield cached;
  71820. return;
  71821. }
  71822. element = state3.renderer(partialNode.value);
  71823. }
  71824. if (import_react145.default.isValidElement(element)) {
  71825. let type5 = element.type;
  71826. if (typeof type5 != "function" && typeof type5.getCollectionNode != "function") {
  71827. let name = element.type;
  71828. throw new Error(`Unknown element <${name}> in collection.`);
  71829. }
  71830. let childNodes = type5.getCollectionNode(element.props, this.context);
  71831. var _partialNode_index1;
  71832. let index4 = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0, result = childNodes.next();
  71833. for (; !result.done && result.value; ) {
  71834. let childNode = result.value;
  71835. partialNode.index = index4;
  71836. var _childNode_key;
  71837. let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null;
  71838. nodeKey == null && (nodeKey = childNode.element ? null : this.getKey(element, partialNode, state3, parentKey));
  71839. let children = [
  71840. ...this.getFullNode({
  71841. ...childNode,
  71842. key: nodeKey,
  71843. index: index4,
  71844. wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
  71845. }, this.getChildState(state3, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode)
  71846. ];
  71847. for (let node3 of children) {
  71848. var _childNode_value, _ref;
  71849. node3.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== void 0 ? _childNode_value : partialNode.value) !== null && _ref !== void 0 ? _ref : null, node3.value && this.cache.set(node3.value, node3);
  71850. var _parentNode_type;
  71851. if (partialNode.type && node3.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node3.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode?.type) !== null && _parentNode_type !== void 0 ? _parentNode_type : "unknown parent type")}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
  71852. index4++, yield node3;
  71853. }
  71854. result = childNodes.next(children);
  71855. }
  71856. return;
  71857. }
  71858. if (partialNode.key == null || partialNode.type == null) return;
  71859. let builder = this;
  71860. var _partialNode_value, _partialNode_textValue;
  71861. let node2 = {
  71862. type: partialNode.type,
  71863. props: partialNode.props,
  71864. key: partialNode.key,
  71865. parentKey: parentNode ? parentNode.key : null,
  71866. value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null,
  71867. level: parentNode ? parentNode.level + 1 : 0,
  71868. index: partialNode.index,
  71869. rendered: partialNode.rendered,
  71870. textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : "",
  71871. "aria-label": partialNode["aria-label"],
  71872. wrapper: partialNode.wrapper,
  71873. shouldInvalidate: partialNode.shouldInvalidate,
  71874. hasChildNodes: partialNode.hasChildNodes || !1,
  71875. childNodes: $eb2240fc39a57fa5$var$iterable(function* () {
  71876. if (!partialNode.hasChildNodes || !partialNode.childNodes) return;
  71877. let index4 = 0;
  71878. for (let child of partialNode.childNodes()) {
  71879. child.key != null && (child.key = `${node2.key}${child.key}`);
  71880. let nodes = builder.getFullNode({
  71881. ...child,
  71882. index: index4
  71883. }, builder.getChildState(state3, child), node2.key, node2);
  71884. for (let node3 of nodes)
  71885. index4++, yield node3;
  71886. }
  71887. })
  71888. };
  71889. yield node2;
  71890. }
  71891. constructor() {
  71892. this.cache = /* @__PURE__ */ new WeakMap();
  71893. }
  71894. };
  71895. function $eb2240fc39a57fa5$var$iterable(iterator) {
  71896. let cache = [], iterable = null;
  71897. return {
  71898. *[Symbol.iterator]() {
  71899. for (let item of cache) yield item;
  71900. iterable || (iterable = iterator());
  71901. for (let item of iterable)
  71902. cache.push(item), yield item;
  71903. }
  71904. };
  71905. }
  71906. function $eb2240fc39a57fa5$var$compose(outer, inner) {
  71907. if (outer && inner) return (element) => outer(inner(element));
  71908. if (outer) return outer;
  71909. if (inner) return inner;
  71910. }
  71911. function $eb2240fc39a57fa5$var$capitalize(str2) {
  71912. return str2[0].toUpperCase() + str2.slice(1);
  71913. }
  71914. // ../../node_modules/@react-stately/collections/dist/useCollection.mjs
  71915. var import_react146 = __toESM(require_react(), 1);
  71916. function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {
  71917. let builder = (0, import_react146.useMemo)(() => new $eb2240fc39a57fa5$export$bf788dd355e3a401(), []), { children, items, collection } = props;
  71918. return (0, import_react146.useMemo)(() => {
  71919. if (collection) return collection;
  71920. let nodes = builder.build({
  71921. children,
  71922. items
  71923. }, context);
  71924. return factory(nodes);
  71925. }, [
  71926. builder,
  71927. children,
  71928. items,
  71929. collection,
  71930. context,
  71931. factory
  71932. ]);
  71933. }
  71934. // ../../node_modules/@react-stately/collections/dist/getChildNodes.mjs
  71935. function $c5a24bc478652b5f$export$1005530eda016c13(node2, collection) {
  71936. return typeof collection.getChildren == "function" ? collection.getChildren(node2.key) : node2.childNodes;
  71937. }
  71938. function $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {
  71939. return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);
  71940. }
  71941. function $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index4) {
  71942. if (index4 < 0) return;
  71943. let i = 0;
  71944. for (let item of iterable) {
  71945. if (i === index4) return item;
  71946. i++;
  71947. }
  71948. }
  71949. function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a3, b) {
  71950. if (a3.parentKey === b.parentKey) return a3.index - b.index;
  71951. let aAncestors = [
  71952. ...$c5a24bc478652b5f$var$getAncestors(collection, a3),
  71953. a3
  71954. ], bAncestors = [
  71955. ...$c5a24bc478652b5f$var$getAncestors(collection, b),
  71956. b
  71957. ], firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a4, i) => a4 !== bAncestors[i]);
  71958. return firstNonMatchingAncestor !== -1 ? (a3 = aAncestors[firstNonMatchingAncestor], b = bAncestors[firstNonMatchingAncestor], a3.index - b.index) : aAncestors.findIndex((node2) => node2 === b) >= 0 ? 1 : (bAncestors.findIndex((node2) => node2 === a3) >= 0, -1);
  71959. }
  71960. function $c5a24bc478652b5f$var$getAncestors(collection, node2) {
  71961. let parents = [], currNode = node2;
  71962. for (; currNode?.parentKey != null; )
  71963. currNode = collection.getItem(currNode.parentKey), currNode && parents.unshift(currNode);
  71964. return parents;
  71965. }
  71966. // ../../node_modules/@react-stately/collections/dist/getItemCount.mjs
  71967. var $453cc9f0df89c0a5$var$cache = /* @__PURE__ */ new WeakMap();
  71968. function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
  71969. let count = $453cc9f0df89c0a5$var$cache.get(collection);
  71970. if (count != null) return count;
  71971. let counter = 0, countItems = (items) => {
  71972. for (let item of items)
  71973. item.type === "section" ? countItems($c5a24bc478652b5f$export$1005530eda016c13(item, collection)) : item.type === "item" && counter++;
  71974. };
  71975. return countItems(collection), $453cc9f0df89c0a5$var$cache.set(collection, counter), counter;
  71976. }
  71977. // ../../node_modules/@react-aria/menu/dist/useMenuItem.mjs
  71978. var import_react147 = __toESM(require_react(), 1);
  71979. function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state3, ref) {
  71980. let { id, key, closeOnSelect, isVirtualized, "aria-haspopup": hasPopup, onPressStart, onPressUp: pressUpProp, onPress, onPressChange: pressChangeProp, onPressEnd, onClick: onClickProp, onHoverStart: hoverStartProp, onHoverChange, onHoverEnd, onKeyDown, onKeyUp, onFocus, onFocusChange, onBlur, selectionManager = state3.selectionManager } = props, isTrigger = !!hasPopup, isTriggerExpanded = isTrigger && props["aria-expanded"] === "true";
  71981. var _props_isDisabled;
  71982. let isDisabled3 = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : selectionManager.isDisabled(key);
  71983. var _props_isSelected;
  71984. let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : selectionManager.isSelected(key), data = $fc79756100351201$export$6f49b4016bfc8d56.get(state3), item = state3.collection.getItem(key), onClose = props.onClose || data.onClose, router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572(), performAction = () => {
  71985. var _item_props;
  71986. if (!isTrigger && (!(item == null || (_item_props = item.props) === null || _item_props === void 0) && _item_props.onAction ? item.props.onAction() : props.onAction && props.onAction(key), data.onAction)) {
  71987. let onAction = data.onAction;
  71988. onAction(key);
  71989. }
  71990. }, role = "menuitem";
  71991. isTrigger || (selectionManager.selectionMode === "single" ? role = "menuitemradio" : selectionManager.selectionMode === "multiple" && (role = "menuitemcheckbox"));
  71992. let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), keyboardId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), ariaProps = {
  71993. id,
  71994. "aria-disabled": isDisabled3 || void 0,
  71995. role,
  71996. "aria-label": props["aria-label"],
  71997. "aria-labelledby": labelId,
  71998. "aria-describedby": [
  71999. descriptionId,
  72000. keyboardId
  72001. ].filter(Boolean).join(" ") || void 0,
  72002. "aria-controls": props["aria-controls"],
  72003. "aria-haspopup": hasPopup,
  72004. "aria-expanded": props["aria-expanded"]
  72005. };
  72006. selectionManager.selectionMode !== "none" && !isTrigger && (ariaProps["aria-checked"] = isSelected), isVirtualized && (ariaProps["aria-posinset"] = item?.index, ariaProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state3.collection));
  72007. let isPressedRef = (0, import_react147.useRef)(!1), onPressChange = (isPressed2) => {
  72008. pressChangeProp?.(isPressed2), isPressedRef.current = isPressed2;
  72009. }, interaction = (0, import_react147.useRef)(null), onPressUp = (e) => {
  72010. e.pointerType !== "keyboard" && (interaction.current = {
  72011. pointerType: e.pointerType
  72012. }), e.pointerType === "mouse" && (isPressedRef.current || e.target.click()), pressUpProp?.(e);
  72013. }, onClick = (e) => {
  72014. var _interaction_current, _interaction_current1;
  72015. onClickProp?.(e), performAction(), $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, item.props.href, item?.props.routerOptions);
  72016. let shouldClose = ((_interaction_current = interaction.current) === null || _interaction_current === void 0 ? void 0 : _interaction_current.pointerType) === "keyboard" ? ((_interaction_current1 = interaction.current) === null || _interaction_current1 === void 0 ? void 0 : _interaction_current1.key) === "Enter" || selectionManager.selectionMode === "none" || selectionManager.isLink(key) : selectionManager.selectionMode !== "multiple" || selectionManager.isLink(key);
  72017. shouldClose = closeOnSelect ?? shouldClose, onClose && !isTrigger && shouldClose && onClose(), interaction.current = null;
  72018. }, { itemProps, isFocused } = $880e95eb8b93ba9a$export$ecf600387e221c37({
  72019. id,
  72020. selectionManager,
  72021. key,
  72022. ref,
  72023. shouldSelectOnPressUp: !0,
  72024. allowsDifferentPressOrigin: !0,
  72025. // Disable all handling of links in useSelectable item
  72026. // because we handle it ourselves. The behavior of menus
  72027. // is slightly different from other collections because
  72028. // actions are performed on key down rather than key up.
  72029. linkBehavior: "none",
  72030. shouldUseVirtualFocus: data.shouldUseVirtualFocus
  72031. }), { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
  72032. onPressStart,
  72033. onPress,
  72034. onPressUp,
  72035. onPressChange,
  72036. onPressEnd,
  72037. isDisabled: isDisabled3
  72038. }), { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
  72039. isDisabled: isDisabled3,
  72040. onHoverStart(e) {
  72041. !$507fabe10e71c6fb$export$b9b3dfddab17db27() && !(isTriggerExpanded && hasPopup) && (selectionManager.setFocused(!0), selectionManager.setFocusedKey(key)), hoverStartProp?.(e);
  72042. },
  72043. onHoverChange,
  72044. onHoverEnd
  72045. }), { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd({
  72046. onKeyDown: (e) => {
  72047. if (e.repeat) {
  72048. e.continuePropagation();
  72049. return;
  72050. }
  72051. switch (e.key) {
  72052. case " ":
  72053. interaction.current = {
  72054. pointerType: "keyboard",
  72055. key: " "
  72056. }, e.target.click();
  72057. break;
  72058. case "Enter":
  72059. interaction.current = {
  72060. pointerType: "keyboard",
  72061. key: "Enter"
  72062. }, e.target.tagName !== "A" && e.target.click();
  72063. break;
  72064. default:
  72065. isTrigger || e.continuePropagation(), onKeyDown?.(e);
  72066. break;
  72067. }
  72068. },
  72069. onKeyUp
  72070. }), { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
  72071. onBlur,
  72072. onFocus,
  72073. onFocusChange
  72074. }), domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item?.props);
  72075. delete domProps.id;
  72076. let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item?.props);
  72077. return {
  72078. menuItemProps: {
  72079. ...ariaProps,
  72080. ...$3ef42575df84b30b$export$9d1611c77c2fe928(
  72081. domProps,
  72082. linkProps,
  72083. isTrigger ? {
  72084. onFocus: itemProps.onFocus,
  72085. "data-collection": itemProps["data-collection"],
  72086. "data-key": itemProps["data-key"]
  72087. } : itemProps,
  72088. pressProps,
  72089. hoverProps,
  72090. keyboardProps,
  72091. focusProps,
  72092. // Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
  72093. data.shouldUseVirtualFocus || isTrigger ? {
  72094. onMouseDown: (e) => e.preventDefault()
  72095. } : void 0,
  72096. isDisabled3 ? void 0 : {
  72097. onClick
  72098. }
  72099. ),
  72100. // If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
  72101. tabIndex: itemProps.tabIndex != null && isTriggerExpanded && !data.shouldUseVirtualFocus ? -1 : itemProps.tabIndex
  72102. },
  72103. labelProps: {
  72104. id: labelId
  72105. },
  72106. descriptionProps: {
  72107. id: descriptionId
  72108. },
  72109. keyboardShortcutProps: {
  72110. id: keyboardId
  72111. },
  72112. isFocused,
  72113. isFocusVisible: isFocused && selectionManager.isFocused && $507fabe10e71c6fb$export$b9b3dfddab17db27() && !isTriggerExpanded,
  72114. isSelected,
  72115. isPressed,
  72116. isDisabled: isDisabled3
  72117. };
  72118. }
  72119. // ../../node_modules/@react-aria/menu/dist/useMenuSection.mjs
  72120. function $3e5eb2498db5b506$export$73f7a44322579622(props) {
  72121. let { heading, "aria-label": ariaLabel } = props, headingId = $bdb11010cef70236$export$f680877a34711e37();
  72122. return {
  72123. itemProps: {
  72124. role: "presentation"
  72125. },
  72126. headingProps: heading ? {
  72127. // Techincally, menus cannot contain headings according to ARIA.
  72128. // We hide the heading from assistive technology, using role="presentation",
  72129. // and only use it as a label for the nested group.
  72130. id: headingId,
  72131. role: "presentation"
  72132. } : {},
  72133. groupProps: {
  72134. role: "group",
  72135. "aria-label": ariaLabel,
  72136. "aria-labelledby": heading ? headingId : void 0
  72137. }
  72138. };
  72139. }
  72140. // ../../node_modules/@react-aria/menu/dist/useSafelyMouseToSubmenu.mjs
  72141. var import_react148 = __toESM(require_react(), 1);
  72142. var $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS = 2, $d275435c250248f8$var$THROTTLE_TIME = 50, $d275435c250248f8$var$TIMEOUT_TIME = 1e3, $d275435c250248f8$var$ANGLE_PADDING = Math.PI / 12;
  72143. function $d275435c250248f8$export$85ec83e04c95f50a(options) {
  72144. let { menuRef, submenuRef, isOpen, isDisabled: isDisabled3 } = options, prevPointerPos = (0, import_react148.useRef)(void 0), submenuRect = (0, import_react148.useRef)(void 0), lastProcessedTime = (0, import_react148.useRef)(0), timeout = (0, import_react148.useRef)(void 0), autoCloseTimeout = (0, import_react148.useRef)(void 0), submenuSide = (0, import_react148.useRef)(void 0), movementsTowardsSubmenuCount = (0, import_react148.useRef)(2), [preventPointerEvents, setPreventPointerEvents] = (0, import_react148.useState)(!1);
  72145. $9daab02d461809db$export$683480f191c0e3ea({
  72146. ref: submenuRef,
  72147. onResize: () => {
  72148. submenuRef.current && (submenuRect.current = submenuRef.current.getBoundingClientRect(), submenuSide.current = void 0);
  72149. }
  72150. });
  72151. let reset2 = () => {
  72152. setPreventPointerEvents(!1), movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS, prevPointerPos.current = void 0;
  72153. }, modality = $507fabe10e71c6fb$export$98e20ec92f614cfe(), onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
  72154. preventPointerEvents && e.preventDefault();
  72155. });
  72156. (0, import_react148.useEffect)(() => {
  72157. preventPointerEvents && menuRef.current ? menuRef.current.style.pointerEvents = "none" : menuRef.current.style.pointerEvents = "";
  72158. }, [
  72159. menuRef,
  72160. preventPointerEvents
  72161. ]), (0, import_react148.useEffect)(() => {
  72162. let submenu = submenuRef.current, menu = menuRef.current;
  72163. if (isDisabled3 || !submenu || !isOpen || modality !== "pointer" || !menu) {
  72164. reset2();
  72165. return;
  72166. }
  72167. submenuRect.current = submenu.getBoundingClientRect();
  72168. let onPointerMove = (e) => {
  72169. if (e.pointerType === "touch" || e.pointerType === "pen") return;
  72170. let currentTime = Date.now();
  72171. if (currentTime - lastProcessedTime.current < $d275435c250248f8$var$THROTTLE_TIME) return;
  72172. clearTimeout(timeout.current), clearTimeout(autoCloseTimeout.current);
  72173. let { clientX: mouseX, clientY: mouseY } = e;
  72174. if (!prevPointerPos.current) {
  72175. prevPointerPos.current = {
  72176. x: mouseX,
  72177. y: mouseY
  72178. };
  72179. return;
  72180. }
  72181. if (!submenuRect.current) return;
  72182. if (submenuSide.current || (submenuSide.current = mouseX > submenuRect.current.right ? "left" : "right"), mouseX < menu.getBoundingClientRect().left || mouseX > menu.getBoundingClientRect().right || mouseY < menu.getBoundingClientRect().top || mouseY > menu.getBoundingClientRect().bottom) {
  72183. reset2();
  72184. return;
  72185. }
  72186. let prevMouseX = prevPointerPos.current.x, prevMouseY = prevPointerPos.current.y, toSubmenuX = submenuSide.current === "right" ? submenuRect.current.left - prevMouseX : prevMouseX - submenuRect.current.right, angleTop = Math.atan2(prevMouseY - submenuRect.current.top, toSubmenuX) + $d275435c250248f8$var$ANGLE_PADDING, angleBottom = Math.atan2(prevMouseY - submenuRect.current.bottom, toSubmenuX) - $d275435c250248f8$var$ANGLE_PADDING, anglePointer = Math.atan2(prevMouseY - mouseY, submenuSide.current === "left" ? -(mouseX - prevMouseX) : mouseX - prevMouseX), isMovingTowardsSubmenu = anglePointer < angleTop && anglePointer > angleBottom;
  72187. movementsTowardsSubmenuCount.current = isMovingTowardsSubmenu ? Math.min(movementsTowardsSubmenuCount.current + 1, $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) : Math.max(movementsTowardsSubmenuCount.current - 1, 0), movementsTowardsSubmenuCount.current >= $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS ? setPreventPointerEvents(!0) : setPreventPointerEvents(!1), lastProcessedTime.current = currentTime, prevPointerPos.current = {
  72188. x: mouseX,
  72189. y: mouseY
  72190. }, isMovingTowardsSubmenu && (timeout.current = setTimeout(() => {
  72191. reset2(), autoCloseTimeout.current = setTimeout(() => {
  72192. let target = document.elementFromPoint(mouseX, mouseY);
  72193. target && menu.contains(target) && target.dispatchEvent(new PointerEvent("pointerover", {
  72194. bubbles: !0,
  72195. cancelable: !0
  72196. }));
  72197. }, 100);
  72198. }, $d275435c250248f8$var$TIMEOUT_TIME));
  72199. };
  72200. return window.addEventListener("pointermove", onPointerMove), window.addEventListener("pointerdown", onPointerDown, !0), () => {
  72201. window.removeEventListener("pointermove", onPointerMove), window.removeEventListener("pointerdown", onPointerDown, !0), clearTimeout(timeout.current), clearTimeout(autoCloseTimeout.current), movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS;
  72202. };
  72203. }, [
  72204. isDisabled3,
  72205. isOpen,
  72206. menuRef,
  72207. modality,
  72208. setPreventPointerEvents,
  72209. onPointerDown,
  72210. submenuRef
  72211. ]);
  72212. }
  72213. // ../../node_modules/@react-aria/menu/dist/useSubmenuTrigger.mjs
  72214. var import_react149 = __toESM(require_react(), 1);
  72215. function $0065b146e7192841$export$7138b0d059a6e743(props, state3, ref) {
  72216. let { parentMenuRef, submenuRef, type: type5 = "menu", isDisabled: isDisabled3, delay = 200, shouldUseVirtualFocus } = props, submenuTriggerId = $bdb11010cef70236$export$f680877a34711e37(), overlayId = $bdb11010cef70236$export$f680877a34711e37(), { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), openTimeout = (0, import_react149.useRef)(void 0), cancelOpenTimeout = (0, import_react149.useCallback)(() => {
  72217. openTimeout.current && (clearTimeout(openTimeout.current), openTimeout.current = void 0);
  72218. }, [
  72219. openTimeout
  72220. ]), onSubmenuOpen = $8ae05eaa5c114e9c$export$7f54fc3180508a52((focusStrategy) => {
  72221. cancelOpenTimeout(), state3.open(focusStrategy);
  72222. }), onSubmenuClose = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
  72223. cancelOpenTimeout(), state3.close();
  72224. });
  72225. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => {
  72226. cancelOpenTimeout();
  72227. }, [
  72228. cancelOpenTimeout
  72229. ]);
  72230. let submenuKeyDown = (e) => {
  72231. if (e.currentTarget.contains(document.activeElement))
  72232. switch (e.key) {
  72233. case "ArrowLeft":
  72234. direction === "ltr" && e.currentTarget.contains(e.target) && (e.preventDefault(), e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current));
  72235. break;
  72236. case "ArrowRight":
  72237. direction === "rtl" && e.currentTarget.contains(e.target) && (e.preventDefault(), e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current));
  72238. break;
  72239. case "Escape":
  72240. var _submenuRef_current;
  72241. !((_submenuRef_current = submenuRef.current) === null || _submenuRef_current === void 0) && _submenuRef_current.contains(e.target) && (e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current));
  72242. break;
  72243. }
  72244. };
  72245. var _state_focusStrategy;
  72246. let submenuProps = {
  72247. id: overlayId,
  72248. "aria-labelledby": submenuTriggerId,
  72249. submenuLevel: state3.submenuLevel,
  72250. ...type5 === "menu" && {
  72251. onClose: state3.closeAll,
  72252. autoFocus: (_state_focusStrategy = state3.focusStrategy) !== null && _state_focusStrategy !== void 0 ? _state_focusStrategy : void 0,
  72253. onKeyDown: submenuKeyDown
  72254. }
  72255. }, submenuTriggerKeyDown = (e) => {
  72256. switch (e.key) {
  72257. case "ArrowRight":
  72258. isDisabled3 || (direction === "ltr" ? (e.preventDefault(), state3.isOpen || onSubmenuOpen("first"), type5 === "menu" && submenuRef?.current && document.activeElement === ref?.current && $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current)) : state3.isOpen ? onSubmenuClose() : e.continuePropagation());
  72259. break;
  72260. case "ArrowLeft":
  72261. isDisabled3 || (direction === "rtl" ? (e.preventDefault(), state3.isOpen || onSubmenuOpen("first"), type5 === "menu" && submenuRef?.current && document.activeElement === ref?.current && $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current)) : state3.isOpen ? onSubmenuClose() : e.continuePropagation());
  72262. break;
  72263. default:
  72264. e.continuePropagation();
  72265. break;
  72266. }
  72267. }, onPressStart = (e) => {
  72268. !isDisabled3 && (e.pointerType === "virtual" || e.pointerType === "keyboard") && onSubmenuOpen("first");
  72269. }, onPress = (e) => {
  72270. !isDisabled3 && (e.pointerType === "touch" || e.pointerType === "mouse") && onSubmenuOpen();
  72271. }, onHoverChange = (isHovered) => {
  72272. isDisabled3 || (isHovered && !state3.isOpen ? openTimeout.current || (openTimeout.current = setTimeout(() => {
  72273. onSubmenuOpen();
  72274. }, delay)) : isHovered || cancelOpenTimeout());
  72275. };
  72276. $e9faafb641e167db$export$90fc3a17d93f704c(parentMenuRef, "focusin", (e) => {
  72277. var _parentMenuRef_current;
  72278. state3.isOpen && (!((_parentMenuRef_current = parentMenuRef.current) === null || _parentMenuRef_current === void 0) && _parentMenuRef_current.contains(e.target)) && e.target !== ref.current && onSubmenuClose();
  72279. });
  72280. let shouldCloseOnInteractOutside = (target) => target !== ref.current;
  72281. return $d275435c250248f8$export$85ec83e04c95f50a({
  72282. menuRef: parentMenuRef,
  72283. submenuRef,
  72284. isOpen: state3.isOpen,
  72285. isDisabled: isDisabled3
  72286. }), {
  72287. submenuTriggerProps: {
  72288. id: submenuTriggerId,
  72289. "aria-controls": state3.isOpen ? overlayId : void 0,
  72290. "aria-haspopup": isDisabled3 ? void 0 : type5,
  72291. "aria-expanded": state3.isOpen ? "true" : "false",
  72292. onPressStart,
  72293. onPress,
  72294. onHoverChange,
  72295. onKeyDown: submenuTriggerKeyDown,
  72296. isOpen: state3.isOpen
  72297. },
  72298. submenuProps,
  72299. popoverProps: {
  72300. isNonModal: !0,
  72301. shouldCloseOnInteractOutside
  72302. }
  72303. };
  72304. }
  72305. // ../../node_modules/@react-stately/menu/dist/useMenuTriggerState.mjs
  72306. var import_react150 = __toESM(require_react(), 1);
  72307. function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
  72308. let overlayTriggerState = $fc909762b330b746$export$61c6a8c84e605fb6(props), [focusStrategy, setFocusStrategy] = (0, import_react150.useState)(null), [expandedKeysStack, setExpandedKeysStack] = (0, import_react150.useState)([]), closeAll = () => {
  72309. setExpandedKeysStack([]), overlayTriggerState.close();
  72310. };
  72311. return {
  72312. focusStrategy,
  72313. ...overlayTriggerState,
  72314. open(focusStrategy2 = null) {
  72315. setFocusStrategy(focusStrategy2), overlayTriggerState.open();
  72316. },
  72317. toggle(focusStrategy2 = null) {
  72318. setFocusStrategy(focusStrategy2), overlayTriggerState.toggle();
  72319. },
  72320. close() {
  72321. closeAll();
  72322. },
  72323. expandedKeysStack,
  72324. openSubmenu: (triggerKey, level) => {
  72325. setExpandedKeysStack((oldStack) => level > oldStack.length ? oldStack : [
  72326. ...oldStack.slice(0, level),
  72327. triggerKey
  72328. ]);
  72329. },
  72330. closeSubmenu: (triggerKey, level) => {
  72331. setExpandedKeysStack((oldStack) => oldStack[level] === triggerKey ? oldStack.slice(0, level) : oldStack);
  72332. }
  72333. };
  72334. }
  72335. // ../../node_modules/@react-stately/menu/dist/useSubmenuTriggerState.mjs
  72336. var import_react151 = __toESM(require_react(), 1);
  72337. function $e5614764aa47eb35$export$cfc51cf86138bf98(props, state3) {
  72338. let { triggerKey } = props, { expandedKeysStack, openSubmenu, closeSubmenu, close: closeAll } = state3, [submenuLevel] = (0, import_react151.useState)(expandedKeysStack?.length), isOpen = (0, import_react151.useMemo)(() => expandedKeysStack[submenuLevel] === triggerKey, [
  72339. expandedKeysStack,
  72340. triggerKey,
  72341. submenuLevel
  72342. ]), [focusStrategy, setFocusStrategy] = (0, import_react151.useState)(null), open = (0, import_react151.useCallback)((focusStrategy2) => {
  72343. setFocusStrategy(focusStrategy2 ?? null), openSubmenu(triggerKey, submenuLevel);
  72344. }, [
  72345. openSubmenu,
  72346. submenuLevel,
  72347. triggerKey
  72348. ]), close = (0, import_react151.useCallback)(() => {
  72349. setFocusStrategy(null), closeSubmenu(triggerKey, submenuLevel);
  72350. }, [
  72351. closeSubmenu,
  72352. submenuLevel,
  72353. triggerKey
  72354. ]), toggle = (0, import_react151.useCallback)((focusStrategy2) => {
  72355. setFocusStrategy(focusStrategy2 ?? null), isOpen ? close() : open(focusStrategy2);
  72356. }, [
  72357. close,
  72358. open,
  72359. isOpen
  72360. ]);
  72361. return (0, import_react151.useMemo)(() => ({
  72362. focusStrategy,
  72363. isOpen,
  72364. open,
  72365. close,
  72366. closeAll,
  72367. submenuLevel,
  72368. // TODO: Placeholders that aren't used but give us parity with OverlayTriggerState so we can use this in Popover. Refactor if we update Popover via
  72369. // https://github.com/adobe/react-spectrum/pull/4976#discussion_r1336472863
  72370. setOpen: () => {
  72371. },
  72372. toggle
  72373. }), [
  72374. isOpen,
  72375. open,
  72376. close,
  72377. closeAll,
  72378. focusStrategy,
  72379. toggle,
  72380. submenuLevel
  72381. ]);
  72382. }
  72383. // ../../node_modules/@react-stately/tree/dist/TreeCollection.mjs
  72384. var $05ca4cd7c4a5a999$export$863faf230ee2118a = class {
  72385. *[Symbol.iterator]() {
  72386. yield* this.iterable;
  72387. }
  72388. get size() {
  72389. return this.keyMap.size;
  72390. }
  72391. getKeys() {
  72392. return this.keyMap.keys();
  72393. }
  72394. getKeyBefore(key) {
  72395. let node2 = this.keyMap.get(key);
  72396. var _node_prevKey;
  72397. return node2 && (_node_prevKey = node2.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null;
  72398. }
  72399. getKeyAfter(key) {
  72400. let node2 = this.keyMap.get(key);
  72401. var _node_nextKey;
  72402. return node2 && (_node_nextKey = node2.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null;
  72403. }
  72404. getFirstKey() {
  72405. return this.firstKey;
  72406. }
  72407. getLastKey() {
  72408. return this.lastKey;
  72409. }
  72410. getItem(key) {
  72411. var _this_keyMap_get;
  72412. return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
  72413. }
  72414. at(idx) {
  72415. let keys3 = [
  72416. ...this.getKeys()
  72417. ];
  72418. return this.getItem(keys3[idx]);
  72419. }
  72420. constructor(nodes, { expandedKeys } = {}) {
  72421. this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = nodes, expandedKeys = expandedKeys || /* @__PURE__ */ new Set();
  72422. let visit = (node2) => {
  72423. if (this.keyMap.set(node2.key, node2), node2.childNodes && (node2.type === "section" || expandedKeys.has(node2.key))) for (let child of node2.childNodes) visit(child);
  72424. };
  72425. for (let node2 of nodes) visit(node2);
  72426. let last2 = null, index4 = 0;
  72427. for (let [key, node2] of this.keyMap)
  72428. last2 ? (last2.nextKey = key, node2.prevKey = last2.key) : (this.firstKey = key, node2.prevKey = void 0), node2.type === "item" && (node2.index = index4++), last2 = node2, last2.nextKey = void 0;
  72429. var _last_key;
  72430. this.lastKey = (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null;
  72431. }
  72432. };
  72433. // ../../node_modules/@react-stately/selection/dist/Selection.mjs
  72434. var $e40ea825a81a3709$export$52baac22726c72bf = class _$e40ea825a81a3709$export$52baac22726c72bf extends Set {
  72435. constructor(keys3, anchorKey, currentKey) {
  72436. super(keys3), keys3 instanceof _$e40ea825a81a3709$export$52baac22726c72bf ? (this.anchorKey = anchorKey ?? keys3.anchorKey, this.currentKey = currentKey ?? keys3.currentKey) : (this.anchorKey = anchorKey ?? null, this.currentKey = currentKey ?? null);
  72437. }
  72438. };
  72439. // ../../node_modules/@react-stately/selection/dist/useMultipleSelectionState.mjs
  72440. var import_react152 = __toESM(require_react(), 1);
  72441. function $7af3f5b51489e0b5$var$equalSets(setA, setB) {
  72442. if (setA.size !== setB.size) return !1;
  72443. for (let item of setA)
  72444. if (!setB.has(item)) return !1;
  72445. return !0;
  72446. }
  72447. function $7af3f5b51489e0b5$export$253fe78d46329472(props) {
  72448. let { selectionMode = "none", disallowEmptySelection = !1, allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior = "all" } = props, isFocusedRef = (0, import_react152.useRef)(!1), [, setFocused] = (0, import_react152.useState)(!1), focusedKeyRef = (0, import_react152.useRef)(null), childFocusStrategyRef = (0, import_react152.useRef)(null), [, setFocusedKey] = (0, import_react152.useState)(null), selectedKeysProp = (0, import_react152.useMemo)(() => $7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [
  72449. props.selectedKeys
  72450. ]), defaultSelectedKeys = (0, import_react152.useMemo)(() => $7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new $e40ea825a81a3709$export$52baac22726c72bf()), [
  72451. props.defaultSelectedKeys
  72452. ]), [selectedKeys, setSelectedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange), disabledKeysProp = (0, import_react152.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [
  72453. props.disabledKeys
  72454. ]), [selectionBehavior, setSelectionBehavior] = (0, import_react152.useState)(selectionBehaviorProp);
  72455. selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys == "object" && selectedKeys.size === 0 && setSelectionBehavior("replace");
  72456. let lastSelectionBehavior = (0, import_react152.useRef)(selectionBehaviorProp);
  72457. return (0, import_react152.useEffect)(() => {
  72458. selectionBehaviorProp !== lastSelectionBehavior.current && (setSelectionBehavior(selectionBehaviorProp), lastSelectionBehavior.current = selectionBehaviorProp);
  72459. }, [
  72460. selectionBehaviorProp
  72461. ]), {
  72462. selectionMode,
  72463. disallowEmptySelection,
  72464. selectionBehavior,
  72465. setSelectionBehavior,
  72466. get isFocused() {
  72467. return isFocusedRef.current;
  72468. },
  72469. setFocused(f4) {
  72470. isFocusedRef.current = f4, setFocused(f4);
  72471. },
  72472. get focusedKey() {
  72473. return focusedKeyRef.current;
  72474. },
  72475. get childFocusStrategy() {
  72476. return childFocusStrategyRef.current;
  72477. },
  72478. setFocusedKey(k, childFocusStrategy = "first") {
  72479. focusedKeyRef.current = k, childFocusStrategyRef.current = childFocusStrategy, setFocusedKey(k);
  72480. },
  72481. selectedKeys,
  72482. setSelectedKeys(keys3) {
  72483. (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys3, selectedKeys)) && setSelectedKeys(keys3);
  72484. },
  72485. disabledKeys: disabledKeysProp,
  72486. disabledBehavior
  72487. };
  72488. }
  72489. function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {
  72490. return selection ? selection === "all" ? "all" : new $e40ea825a81a3709$export$52baac22726c72bf(selection) : defaultValue;
  72491. }
  72492. // ../../node_modules/@react-stately/selection/dist/SelectionManager.mjs
  72493. var $d496c0a20b6e58ec$export$6c8a5aaad13c9852 = class _$d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
  72494. /**
  72495. * The type of selection that is allowed in the collection.
  72496. */
  72497. get selectionMode() {
  72498. return this.state.selectionMode;
  72499. }
  72500. /**
  72501. * Whether the collection allows empty selection.
  72502. */
  72503. get disallowEmptySelection() {
  72504. return this.state.disallowEmptySelection;
  72505. }
  72506. /**
  72507. * The selection behavior for the collection.
  72508. */
  72509. get selectionBehavior() {
  72510. return this.state.selectionBehavior;
  72511. }
  72512. /**
  72513. * Sets the selection behavior for the collection.
  72514. */
  72515. setSelectionBehavior(selectionBehavior) {
  72516. this.state.setSelectionBehavior(selectionBehavior);
  72517. }
  72518. /**
  72519. * Whether the collection is currently focused.
  72520. */
  72521. get isFocused() {
  72522. return this.state.isFocused;
  72523. }
  72524. /**
  72525. * Sets whether the collection is focused.
  72526. */
  72527. setFocused(isFocused) {
  72528. this.state.setFocused(isFocused);
  72529. }
  72530. /**
  72531. * The current focused key in the collection.
  72532. */
  72533. get focusedKey() {
  72534. return this.state.focusedKey;
  72535. }
  72536. /** Whether the first or last child of the focused key should receive focus. */
  72537. get childFocusStrategy() {
  72538. return this.state.childFocusStrategy;
  72539. }
  72540. /**
  72541. * Sets the focused key.
  72542. */
  72543. setFocusedKey(key, childFocusStrategy) {
  72544. (key == null || this.collection.getItem(key)) && this.state.setFocusedKey(key, childFocusStrategy);
  72545. }
  72546. /**
  72547. * The currently selected keys in the collection.
  72548. */
  72549. get selectedKeys() {
  72550. return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
  72551. }
  72552. /**
  72553. * The raw selection value for the collection.
  72554. * Either 'all' for select all, or a set of keys.
  72555. */
  72556. get rawSelection() {
  72557. return this.state.selectedKeys;
  72558. }
  72559. /**
  72560. * Returns whether a key is selected.
  72561. */
  72562. isSelected(key) {
  72563. if (this.state.selectionMode === "none") return !1;
  72564. let mappedKey = this.getKey(key);
  72565. return mappedKey == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(mappedKey) : this.state.selectedKeys.has(mappedKey);
  72566. }
  72567. /**
  72568. * Whether the selection is empty.
  72569. */
  72570. get isEmpty() {
  72571. return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
  72572. }
  72573. /**
  72574. * Whether all items in the collection are selected.
  72575. */
  72576. get isSelectAll() {
  72577. if (this.isEmpty) return !1;
  72578. if (this.state.selectedKeys === "all") return !0;
  72579. if (this._isSelectAll != null) return this._isSelectAll;
  72580. let allKeys = this.getSelectAllKeys(), selectedKeys = this.state.selectedKeys;
  72581. return this._isSelectAll = allKeys.every((k) => selectedKeys.has(k)), this._isSelectAll;
  72582. }
  72583. get firstSelectedKey() {
  72584. let first = null;
  72585. for (let key of this.state.selectedKeys) {
  72586. let item = this.collection.getItem(key);
  72587. (!first || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, first) < 0) && (first = item);
  72588. }
  72589. var _first_key;
  72590. return (_first_key = first?.key) !== null && _first_key !== void 0 ? _first_key : null;
  72591. }
  72592. get lastSelectedKey() {
  72593. let last2 = null;
  72594. for (let key of this.state.selectedKeys) {
  72595. let item = this.collection.getItem(key);
  72596. (!last2 || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, last2) > 0) && (last2 = item);
  72597. }
  72598. var _last_key;
  72599. return (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null;
  72600. }
  72601. get disabledKeys() {
  72602. return this.state.disabledKeys;
  72603. }
  72604. get disabledBehavior() {
  72605. return this.state.disabledBehavior;
  72606. }
  72607. /**
  72608. * Extends the selection to the given key.
  72609. */
  72610. extendSelection(toKey2) {
  72611. if (this.selectionMode === "none") return;
  72612. if (this.selectionMode === "single") {
  72613. this.replaceSelection(toKey2);
  72614. return;
  72615. }
  72616. let mappedToKey = this.getKey(toKey2);
  72617. if (mappedToKey == null) return;
  72618. let selection;
  72619. if (this.state.selectedKeys === "all") selection = new $e40ea825a81a3709$export$52baac22726c72bf([
  72620. mappedToKey
  72621. ], mappedToKey, mappedToKey);
  72622. else {
  72623. let selectedKeys = this.state.selectedKeys;
  72624. var _selectedKeys_anchorKey;
  72625. let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : mappedToKey;
  72626. selection = new $e40ea825a81a3709$export$52baac22726c72bf(selectedKeys, anchorKey, mappedToKey);
  72627. var _selectedKeys_currentKey;
  72628. for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : mappedToKey)) selection.delete(key);
  72629. for (let key of this.getKeyRange(mappedToKey, anchorKey)) this.canSelectItem(key) && selection.add(key);
  72630. }
  72631. this.state.setSelectedKeys(selection);
  72632. }
  72633. getKeyRange(from2, to) {
  72634. let fromItem = this.collection.getItem(from2), toItem = this.collection.getItem(to);
  72635. return fromItem && toItem ? $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, fromItem, toItem) <= 0 ? this.getKeyRangeInternal(from2, to) : this.getKeyRangeInternal(to, from2) : [];
  72636. }
  72637. getKeyRangeInternal(from2, to) {
  72638. var _this_layoutDelegate;
  72639. if (!((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0) && _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from2, to);
  72640. let keys3 = [], key = from2;
  72641. for (; key != null; ) {
  72642. let item = this.collection.getItem(key);
  72643. if (item && (item.type === "item" || item.type === "cell" && this.allowsCellSelection) && keys3.push(key), key === to) return keys3;
  72644. key = this.collection.getKeyAfter(key);
  72645. }
  72646. return [];
  72647. }
  72648. getKey(key) {
  72649. let item = this.collection.getItem(key);
  72650. if (!item || item.type === "cell" && this.allowsCellSelection) return key;
  72651. for (; item && item.type !== "item" && item.parentKey != null; ) item = this.collection.getItem(item.parentKey);
  72652. return !item || item.type !== "item" ? null : item.key;
  72653. }
  72654. /**
  72655. * Toggles whether the given key is selected.
  72656. */
  72657. toggleSelection(key) {
  72658. if (this.selectionMode === "none") return;
  72659. if (this.selectionMode === "single" && !this.isSelected(key)) {
  72660. this.replaceSelection(key);
  72661. return;
  72662. }
  72663. let mappedKey = this.getKey(key);
  72664. if (mappedKey == null) return;
  72665. let keys3 = new $e40ea825a81a3709$export$52baac22726c72bf(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
  72666. keys3.has(mappedKey) ? keys3.delete(mappedKey) : this.canSelectItem(mappedKey) && (keys3.add(mappedKey), keys3.anchorKey = mappedKey, keys3.currentKey = mappedKey), !(this.disallowEmptySelection && keys3.size === 0) && this.state.setSelectedKeys(keys3);
  72667. }
  72668. /**
  72669. * Replaces the selection with only the given key.
  72670. */
  72671. replaceSelection(key) {
  72672. if (this.selectionMode === "none") return;
  72673. let mappedKey = this.getKey(key);
  72674. if (mappedKey == null) return;
  72675. let selection = this.canSelectItem(mappedKey) ? new $e40ea825a81a3709$export$52baac22726c72bf([
  72676. mappedKey
  72677. ], mappedKey, mappedKey) : new $e40ea825a81a3709$export$52baac22726c72bf();
  72678. this.state.setSelectedKeys(selection);
  72679. }
  72680. /**
  72681. * Replaces the selection with the given keys.
  72682. */
  72683. setSelectedKeys(keys3) {
  72684. if (this.selectionMode === "none") return;
  72685. let selection = new $e40ea825a81a3709$export$52baac22726c72bf();
  72686. for (let key of keys3) {
  72687. let mappedKey = this.getKey(key);
  72688. if (mappedKey != null && (selection.add(mappedKey), this.selectionMode === "single"))
  72689. break;
  72690. }
  72691. this.state.setSelectedKeys(selection);
  72692. }
  72693. getSelectAllKeys() {
  72694. let keys3 = [], addKeys = (key) => {
  72695. for (; key != null; ) {
  72696. if (this.canSelectItem(key)) {
  72697. var _getFirstItem;
  72698. let item = this.collection.getItem(key);
  72699. item?.type === "item" && keys3.push(key);
  72700. var _getFirstItem_key;
  72701. item?.hasChildNodes && (this.allowsCellSelection || item.type !== "item") && addKeys((_getFirstItem_key = (_getFirstItem = $c5a24bc478652b5f$export$fbdeaa6a76694f71($c5a24bc478652b5f$export$1005530eda016c13(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key) !== null && _getFirstItem_key !== void 0 ? _getFirstItem_key : null);
  72702. }
  72703. key = this.collection.getKeyAfter(key);
  72704. }
  72705. };
  72706. return addKeys(this.collection.getFirstKey()), keys3;
  72707. }
  72708. /**
  72709. * Selects all items in the collection.
  72710. */
  72711. selectAll() {
  72712. !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
  72713. }
  72714. /**
  72715. * Removes all keys from the selection.
  72716. */
  72717. clearSelection() {
  72718. !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new $e40ea825a81a3709$export$52baac22726c72bf());
  72719. }
  72720. /**
  72721. * Toggles between select all and an empty selection.
  72722. */
  72723. toggleSelectAll() {
  72724. this.isSelectAll ? this.clearSelection() : this.selectAll();
  72725. }
  72726. select(key, e) {
  72727. this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(key) && !this.disallowEmptySelection ? this.toggleSelection(key) : this.replaceSelection(key) : this.selectionBehavior === "toggle" || e && (e.pointerType === "touch" || e.pointerType === "virtual") ? this.toggleSelection(key) : this.replaceSelection(key));
  72728. }
  72729. /**
  72730. * Returns whether the current selection is equal to the given selection.
  72731. */
  72732. isSelectionEqual(selection) {
  72733. if (selection === this.state.selectedKeys) return !0;
  72734. let selectedKeys = this.selectedKeys;
  72735. if (selection.size !== selectedKeys.size) return !1;
  72736. for (let key of selection)
  72737. if (!selectedKeys.has(key)) return !1;
  72738. for (let key of selectedKeys)
  72739. if (!selection.has(key)) return !1;
  72740. return !0;
  72741. }
  72742. canSelectItem(key) {
  72743. var _item_props;
  72744. if (this.state.selectionMode === "none" || this.state.disabledKeys.has(key)) return !1;
  72745. let item = this.collection.getItem(key);
  72746. return !(!item || !(item == null || (_item_props = item.props) === null || _item_props === void 0) && _item_props.isDisabled || item.type === "cell" && !this.allowsCellSelection);
  72747. }
  72748. isDisabled(key) {
  72749. var _this_collection_getItem_props, _this_collection_getItem;
  72750. return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(key) || !!(!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 || (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0) && _this_collection_getItem_props.isDisabled));
  72751. }
  72752. isLink(key) {
  72753. var _this_collection_getItem_props, _this_collection_getItem;
  72754. return !!(!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 || (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0) && _this_collection_getItem_props.href);
  72755. }
  72756. getItemProps(key) {
  72757. var _this_collection_getItem;
  72758. return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;
  72759. }
  72760. withCollection(collection) {
  72761. return new _$d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, this.state, {
  72762. allowsCellSelection: this.allowsCellSelection,
  72763. layoutDelegate: this.layoutDelegate || void 0
  72764. });
  72765. }
  72766. constructor(collection, state3, options) {
  72767. this.collection = collection, this.state = state3;
  72768. var _options_allowsCellSelection;
  72769. this.allowsCellSelection = (_options_allowsCellSelection = options?.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : !1, this._isSelectAll = null, this.layoutDelegate = options?.layoutDelegate || null;
  72770. }
  72771. };
  72772. // ../../node_modules/@react-stately/tree/dist/useTreeState.mjs
  72773. var import_react153 = __toESM(require_react(), 1);
  72774. function $875d6693e12af071$export$728d6ba534403756(props) {
  72775. let { onExpandedChange } = props, [expandedKeys, setExpandedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.expandedKeys ? new Set(props.expandedKeys) : void 0, props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : /* @__PURE__ */ new Set(), onExpandedChange), selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props), disabledKeys = (0, import_react153.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [
  72776. props.disabledKeys
  72777. ]), tree = $7613b1592d41b092$export$6cd28814d92fa9c9(props, (0, import_react153.useCallback)((nodes) => new $05ca4cd7c4a5a999$export$863faf230ee2118a(nodes, {
  72778. expandedKeys
  72779. }), [
  72780. expandedKeys
  72781. ]), null);
  72782. return (0, import_react153.useEffect)(() => {
  72783. selectionState.focusedKey != null && !tree.getItem(selectionState.focusedKey) && selectionState.setFocusedKey(null);
  72784. }, [
  72785. tree,
  72786. selectionState.focusedKey
  72787. ]), {
  72788. collection: tree,
  72789. expandedKeys,
  72790. disabledKeys,
  72791. toggleKey: (key) => {
  72792. setExpandedKeys($875d6693e12af071$var$toggleKey(expandedKeys, key));
  72793. },
  72794. setExpandedKeys,
  72795. selectionManager: new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(tree, selectionState)
  72796. };
  72797. }
  72798. function $875d6693e12af071$var$toggleKey(set3, key) {
  72799. let res = new Set(set3);
  72800. return res.has(key) ? res.delete(key) : res.add(key), res;
  72801. }
  72802. // ../../node_modules/react-aria-components/dist/Menu.mjs
  72803. var import_react154 = __toESM(require_react(), 1), $3674c52c6b3c5bce$export$c7e742effb1c51e2 = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$export$24aad8519b95b41b = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$export$795aec4671cbae19 = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$var$SelectionManagerContext = (0, import_react154.createContext)(null);
  72804. var $3674c52c6b3c5bce$var$SubmenuTriggerContext = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$var$SubmenuTriggerNode = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  72805. filter(collection, newCollection, filterFn) {
  72806. let triggerNode = collection.getItem(this.firstChildKey);
  72807. if (triggerNode && filterFn(triggerNode.textValue, this)) {
  72808. let clone3 = this.clone();
  72809. return newCollection.addDescendants(clone3, collection), clone3;
  72810. }
  72811. return null;
  72812. }
  72813. };
  72814. $3674c52c6b3c5bce$var$SubmenuTriggerNode.type = "submenutrigger";
  72815. var $3674c52c6b3c5bce$export$ecabc99eeffab7ca = $e1995378a142960e$export$e953bb1cd0f19726($3674c52c6b3c5bce$var$SubmenuTriggerNode, (props, ref, item) => {
  72816. let { CollectionBranch } = (0, import_react154.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), state3 = (0, import_react154.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), rootMenuTriggerState = (0, import_react154.useContext)($3674c52c6b3c5bce$export$795aec4671cbae19), submenuTriggerState = $e5614764aa47eb35$export$cfc51cf86138bf98({
  72817. triggerKey: item.key
  72818. }, rootMenuTriggerState), submenuRef = (0, import_react154.useRef)(null), itemRef = $df56164dff5785e2$export$4338b53315abf666(ref), { parentMenuRef, shouldUseVirtualFocus } = (0, import_react154.useContext)($3674c52c6b3c5bce$var$SubmenuTriggerContext), { submenuTriggerProps, submenuProps, popoverProps } = $0065b146e7192841$export$7138b0d059a6e743({
  72819. parentMenuRef,
  72820. submenuRef,
  72821. delay: props.delay,
  72822. shouldUseVirtualFocus
  72823. }, submenuTriggerState, itemRef);
  72824. return import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  72825. values: [
  72826. [
  72827. $3674c52c6b3c5bce$var$MenuItemContext,
  72828. {
  72829. ...submenuTriggerProps,
  72830. onAction: void 0,
  72831. ref: itemRef
  72832. }
  72833. ],
  72834. [
  72835. $3674c52c6b3c5bce$export$c7e742effb1c51e2,
  72836. {
  72837. ref: submenuRef,
  72838. ...submenuProps
  72839. }
  72840. ],
  72841. [
  72842. $de32f1b87079253c$export$d2f961adcb0afbe,
  72843. submenuTriggerState
  72844. ],
  72845. [
  72846. $07b14b47974efb58$export$9b9a0cd73afb7ca4,
  72847. {
  72848. trigger: "SubmenuTrigger",
  72849. triggerRef: itemRef,
  72850. placement: "end top",
  72851. "aria-labelledby": submenuProps["aria-labelledby"],
  72852. ...popoverProps
  72853. }
  72854. ]
  72855. ]
  72856. }, import_react154.default.createElement(CollectionBranch, {
  72857. collection: state3.collection,
  72858. parent: item
  72859. }), props.children[1]);
  72860. }, (props) => props.children[0]), $3674c52c6b3c5bce$export$d9b273488cd8ce6f = (0, import_react154.forwardRef)(function(props, ref) {
  72861. return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3674c52c6b3c5bce$export$c7e742effb1c51e2), import_react154.default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
  72862. content: import_react154.default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props)
  72863. }, (collection) => import_react154.default.createElement($3674c52c6b3c5bce$var$MenuInner, {
  72864. props,
  72865. collection,
  72866. menuRef: ref
  72867. }));
  72868. });
  72869. function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
  72870. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $8e6cc465cc68f603$export$b0d3ecf7112093a7);
  72871. let { filter, ...autocompleteMenuProps } = props, filteredCollection = (0, import_react154.useMemo)(() => filter ? collection.filter(filter) : collection, [
  72872. collection,
  72873. filter
  72874. ]), state3 = $875d6693e12af071$export$728d6ba534403756({
  72875. ...props,
  72876. collection: filteredCollection,
  72877. children: void 0
  72878. }), triggerState = (0, import_react154.useContext)($3674c52c6b3c5bce$export$795aec4671cbae19), { isVirtualized, CollectionRoot } = (0, import_react154.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), { menuProps } = $d5336fe17ce95402$export$38eaa17faae8f579({
  72879. ...props,
  72880. isVirtualized,
  72881. onClose: props.onClose || triggerState?.close
  72882. }, state3, ref), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  72883. defaultClassName: "react-aria-Menu",
  72884. className: props.className,
  72885. style: props.style,
  72886. values: {
  72887. isEmpty: state3.collection.size === 0
  72888. }
  72889. }), emptyState = null;
  72890. state3.collection.size === 0 && props.renderEmptyState && (emptyState = import_react154.default.createElement("div", {
  72891. role: "menuitem",
  72892. style: {
  72893. display: "contents"
  72894. }
  72895. }, props.renderEmptyState()));
  72896. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  72897. global: !0
  72898. });
  72899. return import_react154.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, import_react154.default.createElement("div", {
  72900. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuProps),
  72901. ref,
  72902. slot: props.slot || void 0,
  72903. "data-empty": state3.collection.size === 0 || void 0,
  72904. onScroll: props.onScroll
  72905. }, import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  72906. values: [
  72907. [
  72908. $3674c52c6b3c5bce$export$24aad8519b95b41b,
  72909. state3
  72910. ],
  72911. [
  72912. $431f98aba6844401$export$6615d83f6de245ce,
  72913. {
  72914. elementType: "div"
  72915. }
  72916. ],
  72917. [
  72918. $7135fc7d473fd974$export$d40e14dec8b060a8,
  72919. {
  72920. name: "MenuSection",
  72921. render: $3674c52c6b3c5bce$var$MenuSectionInner
  72922. }
  72923. ],
  72924. [
  72925. $3674c52c6b3c5bce$var$SubmenuTriggerContext,
  72926. {
  72927. parentMenuRef: ref,
  72928. shouldUseVirtualFocus: autocompleteMenuProps?.shouldUseVirtualFocus
  72929. }
  72930. ],
  72931. [
  72932. $3674c52c6b3c5bce$var$MenuItemContext,
  72933. null
  72934. ],
  72935. [
  72936. $8e6cc465cc68f603$export$b0d3ecf7112093a7,
  72937. null
  72938. ],
  72939. [
  72940. $8e6cc465cc68f603$export$698f465ec27e93df,
  72941. null
  72942. ],
  72943. [
  72944. $3674c52c6b3c5bce$var$SelectionManagerContext,
  72945. state3.selectionManager
  72946. ],
  72947. /* Ensure root MenuTriggerState is defined, in case Menu is rendered outside a MenuTrigger. */
  72948. /* We assume the context can never change between defined and undefined. */
  72949. /* eslint-disable-next-line react-hooks/rules-of-hooks */
  72950. [
  72951. $3674c52c6b3c5bce$export$795aec4671cbae19,
  72952. triggerState ?? $a28c903ee9ad8dc5$export$79fefeb1c2091ac3({})
  72953. ]
  72954. ]
  72955. }, import_react154.default.createElement(CollectionRoot, {
  72956. collection: state3.collection,
  72957. persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state3.selectionManager.focusedKey),
  72958. scrollRef: ref
  72959. })), emptyState));
  72960. }
  72961. var $3674c52c6b3c5bce$var$GroupSelectionManager = class extends $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
  72962. get focusedKey() {
  72963. return this.parent.focusedKey;
  72964. }
  72965. get isFocused() {
  72966. return this.parent.isFocused;
  72967. }
  72968. setFocusedKey(key, childFocusStrategy) {
  72969. return this.parent.setFocusedKey(key, childFocusStrategy);
  72970. }
  72971. setFocused(isFocused) {
  72972. this.parent.setFocused(isFocused);
  72973. }
  72974. get childFocusStrategy() {
  72975. return this.parent.childFocusStrategy;
  72976. }
  72977. constructor(parent, state3) {
  72978. super(parent.collection, state3), this.parent = parent;
  72979. }
  72980. };
  72981. function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className = "react-aria-MenuSection") {
  72982. var _section_props, _section_props1;
  72983. let state3 = (0, import_react154.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), { CollectionBranch } = (0, import_react154.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
  72984. var _section_props_arialabel;
  72985. let { headingProps, groupProps } = $3e5eb2498db5b506$export$73f7a44322579622({
  72986. heading,
  72987. "aria-label": (_section_props_arialabel = section.props["aria-label"]) !== null && _section_props_arialabel !== void 0 ? _section_props_arialabel : void 0
  72988. }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  72989. defaultClassName: className,
  72990. className: (_section_props = section.props) === null || _section_props === void 0 ? void 0 : _section_props.className,
  72991. style: (_section_props1 = section.props) === null || _section_props1 === void 0 ? void 0 : _section_props1.style,
  72992. values: {}
  72993. }), parent = (0, import_react154.useContext)($3674c52c6b3c5bce$var$SelectionManagerContext), selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props), manager = props.selectionMode != null ? new $3674c52c6b3c5bce$var$GroupSelectionManager(parent, selectionState) : parent, DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  72994. global: !0
  72995. });
  72996. return delete DOMProps.id, import_react154.default.createElement("section", {
  72997. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
  72998. ref
  72999. }, import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  73000. values: [
  73001. [
  73002. $72a5793c14baf454$export$e0e4026c12a8bdbb,
  73003. {
  73004. ...headingProps,
  73005. ref: headingRef
  73006. }
  73007. ],
  73008. [
  73009. $3674c52c6b3c5bce$var$SelectionManagerContext,
  73010. manager
  73011. ]
  73012. ]
  73013. }, import_react154.default.createElement(CollectionBranch, {
  73014. collection: state3.collection,
  73015. parent: section
  73016. })));
  73017. }
  73018. var $3674c52c6b3c5bce$export$4b1545b4f2016d26 = $e1995378a142960e$export$e953bb1cd0f19726($23b9f4fcf0fe224b$export$437f11dc9b403b78, $3674c52c6b3c5bce$var$MenuSectionInner), $3674c52c6b3c5bce$var$MenuItemContext = (0, import_react154.createContext)(null), $3674c52c6b3c5bce$export$2ce376c2cc3355c8 = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$fd11f34e1d07f134, function(props, forwardedRef, item) {
  73019. var _useSlottedContext;
  73020. [props, forwardedRef] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, forwardedRef, $3674c52c6b3c5bce$var$MenuItemContext);
  73021. let id = (_useSlottedContext = $64fa3d84918910a7$export$fabf2dc03a41866e($3674c52c6b3c5bce$var$MenuItemContext)) === null || _useSlottedContext === void 0 ? void 0 : _useSlottedContext.id, state3 = (0, import_react154.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), selectionManager = (0, import_react154.useContext)($3674c52c6b3c5bce$var$SelectionManagerContext), { menuItemProps, labelProps, descriptionProps, keyboardShortcutProps, ...states } = $a2e5df62f93c7633$export$9d32628fc2aea7da({
  73022. ...props,
  73023. id,
  73024. key: item.key,
  73025. selectionManager
  73026. }, state3, ref), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
  73027. isDisabled: states.isDisabled
  73028. }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  73029. ...props,
  73030. id: void 0,
  73031. children: item.rendered,
  73032. defaultClassName: "react-aria-MenuItem",
  73033. values: {
  73034. ...states,
  73035. isHovered,
  73036. isFocusVisible: states.isFocusVisible,
  73037. selectionMode: selectionManager.selectionMode,
  73038. selectionBehavior: selectionManager.selectionBehavior,
  73039. hasSubmenu: !!props["aria-haspopup"],
  73040. isOpen: props["aria-expanded"] === "true"
  73041. }
  73042. }), ElementType = props.href ? "a" : "div", DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  73043. global: !0
  73044. });
  73045. return delete DOMProps.id, delete DOMProps.onClick, import_react154.default.createElement(ElementType, {
  73046. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuItemProps, hoverProps),
  73047. ref,
  73048. "data-disabled": states.isDisabled || void 0,
  73049. "data-hovered": isHovered || void 0,
  73050. "data-focused": states.isFocused || void 0,
  73051. "data-focus-visible": states.isFocusVisible || void 0,
  73052. "data-pressed": states.isPressed || void 0,
  73053. "data-selected": states.isSelected || void 0,
  73054. "data-selection-mode": selectionManager.selectionMode === "none" ? void 0 : selectionManager.selectionMode,
  73055. "data-has-submenu": !!props["aria-haspopup"] || void 0,
  73056. "data-open": props["aria-expanded"] === "true" || void 0
  73057. }, import_react154.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  73058. values: [
  73059. [
  73060. $514c0188e459b4c0$export$9afb8bc826b033ea,
  73061. {
  73062. slots: {
  73063. [$64fa3d84918910a7$export$c62b8e45d58ddad9]: labelProps,
  73064. label: labelProps,
  73065. description: descriptionProps
  73066. }
  73067. }
  73068. ],
  73069. [
  73070. $63df2425e2108aa8$export$744d98a3b8a94e1c,
  73071. keyboardShortcutProps
  73072. ]
  73073. ]
  73074. }, renderProps.children));
  73075. });
  73076. // ../../node_modules/@react-aria/dialog/dist/useDialog.mjs
  73077. var import_react155 = __toESM(require_react(), 1);
  73078. function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
  73079. let { role = "dialog" } = props, titleId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
  73080. titleId = props["aria-label"] ? void 0 : titleId;
  73081. let isRefocusing = (0, import_react155.useRef)(!1);
  73082. return (0, import_react155.useEffect)(() => {
  73083. if (ref.current && !ref.current.contains(document.activeElement)) {
  73084. $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
  73085. let timeout = setTimeout(() => {
  73086. (document.activeElement === ref.current || document.activeElement === document.body) && (isRefocusing.current = !0, ref.current && (ref.current.blur(), $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current)), isRefocusing.current = !1);
  73087. }, 500);
  73088. return () => {
  73089. clearTimeout(timeout);
  73090. };
  73091. }
  73092. }, [
  73093. ref
  73094. ]), $337b884510726a0d$export$14c98a7594375490(), {
  73095. dialogProps: {
  73096. ...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  73097. labelable: !0
  73098. }),
  73099. role,
  73100. tabIndex: -1,
  73101. "aria-labelledby": props["aria-labelledby"] || titleId,
  73102. // Prevent blur events from reaching useOverlay, which may cause
  73103. // popovers to close. Since focus is contained within the dialog,
  73104. // we don't want this to occur due to the above useEffect.
  73105. onBlur: (e) => {
  73106. isRefocusing.current && e.stopPropagation();
  73107. }
  73108. },
  73109. titleProps: {
  73110. id: titleId
  73111. }
  73112. };
  73113. }
  73114. // ../../node_modules/react-aria-components/dist/Dialog.mjs
  73115. var import_react156 = __toESM(require_react(), 1), $de32f1b87079253c$export$8b93a07348a7730c = (0, import_react156.createContext)(null), $de32f1b87079253c$export$d2f961adcb0afbe = (0, import_react156.createContext)(null);
  73116. function $de32f1b87079253c$export$2e1e1122cf0cba88(props) {
  73117. let state3 = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props), buttonRef = (0, import_react156.useRef)(null), { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({
  73118. type: "dialog"
  73119. }, state3, buttonRef), [buttonWidth, setButtonWidth] = (0, import_react156.useState)(null), onResize = (0, import_react156.useCallback)(() => {
  73120. buttonRef.current && setButtonWidth(buttonRef.current.offsetWidth + "px");
  73121. }, [
  73122. buttonRef
  73123. ]);
  73124. return $9daab02d461809db$export$683480f191c0e3ea({
  73125. ref: buttonRef,
  73126. onResize
  73127. }), triggerProps.id = $bdb11010cef70236$export$f680877a34711e37(), overlayProps["aria-labelledby"] = triggerProps.id, import_react156.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  73128. values: [
  73129. [
  73130. $de32f1b87079253c$export$d2f961adcb0afbe,
  73131. state3
  73132. ],
  73133. [
  73134. $3674c52c6b3c5bce$export$795aec4671cbae19,
  73135. state3
  73136. ],
  73137. [
  73138. $de32f1b87079253c$export$8b93a07348a7730c,
  73139. overlayProps
  73140. ],
  73141. [
  73142. $07b14b47974efb58$export$9b9a0cd73afb7ca4,
  73143. {
  73144. trigger: "DialogTrigger",
  73145. triggerRef: buttonRef,
  73146. "aria-labelledby": overlayProps["aria-labelledby"],
  73147. style: {
  73148. "--trigger-width": buttonWidth
  73149. }
  73150. }
  73151. ]
  73152. ]
  73153. }, import_react156.default.createElement($f1ab8c75478c6f73$export$3351871ee4b288b8, {
  73154. ...triggerProps,
  73155. ref: buttonRef,
  73156. isPressed: state3.isOpen
  73157. }, props.children));
  73158. }
  73159. var $de32f1b87079253c$export$3ddf2d174ce01153 = (0, import_react156.forwardRef)(function(props, ref) {
  73160. let originalAriaLabelledby = props["aria-labelledby"];
  73161. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $de32f1b87079253c$export$8b93a07348a7730c);
  73162. let { dialogProps, titleProps } = $40df3f8667284809$export$d55e7ee900f34e93({
  73163. ...props,
  73164. // Only pass aria-labelledby from props, not context.
  73165. // Context is used as a fallback below.
  73166. "aria-labelledby": originalAriaLabelledby
  73167. }, ref), state3 = (0, import_react156.useContext)($de32f1b87079253c$export$d2f961adcb0afbe);
  73168. !dialogProps["aria-label"] && !dialogProps["aria-labelledby"] && props["aria-labelledby"] && (dialogProps["aria-labelledby"] = props["aria-labelledby"]);
  73169. let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  73170. defaultClassName: "react-aria-Dialog",
  73171. className: props.className,
  73172. style: props.style,
  73173. children: props.children,
  73174. values: {
  73175. close: state3?.close || (() => {
  73176. })
  73177. }
  73178. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  73179. global: !0
  73180. });
  73181. return import_react156.default.createElement("section", {
  73182. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, dialogProps),
  73183. ref,
  73184. slot: props.slot || void 0
  73185. }, import_react156.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  73186. values: [
  73187. [
  73188. $4e85f108e88277b8$export$d688439359537581,
  73189. {
  73190. slots: {
  73191. [$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
  73192. title: {
  73193. ...titleProps,
  73194. level: 2
  73195. }
  73196. }
  73197. }
  73198. ],
  73199. [
  73200. $d2b4bc8c273e7be6$export$24d547caef80ccd1,
  73201. {
  73202. slots: {
  73203. [$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
  73204. close: {
  73205. onPress: () => state3?.close()
  73206. }
  73207. }
  73208. }
  73209. ]
  73210. ]
  73211. }, renderProps.children));
  73212. });
  73213. // src/components/components/Popover/PopoverProvider.tsx
  73214. var PopoverProvider = ({
  73215. ariaLabel,
  73216. placement: placementProp = "bottom-start",
  73217. hasChrome = !0,
  73218. hasCloseButton = !1,
  73219. closeLabel,
  73220. offset: offset3 = 8,
  73221. padding,
  73222. popover,
  73223. children,
  73224. defaultVisible,
  73225. visible,
  73226. onVisibleChange,
  73227. ...props
  73228. }) => {
  73229. ariaLabel || deprecate(
  73230. "The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose."
  73231. );
  73232. let placement = convertToReactAriaPlacement(placementProp), [isOpen, setIsOpen] = (0, import_react157.useState)(defaultVisible ?? !1), onOpenChange = (0, import_react157.useCallback)(
  73233. (isOpen2) => {
  73234. setIsOpen(isOpen2), onVisibleChange?.(isOpen2);
  73235. },
  73236. [onVisibleChange]
  73237. ), onHide = (0, import_react157.useCallback)(() => onOpenChange(!1), [onOpenChange]);
  73238. return import_react157.default.createElement(
  73239. $de32f1b87079253c$export$2e1e1122cf0cba88,
  73240. {
  73241. defaultOpen: defaultVisible,
  73242. isOpen: visible ?? isOpen,
  73243. onOpenChange,
  73244. ...props
  73245. },
  73246. import_react157.default.createElement(
  73247. $3b117e43dc0ca95d$export$27c701ed9e449e99,
  73248. null,
  73249. /* React-aria does not inject aria-haspopup='dialog' to support legacy screen readers, so we do it ourselves. */
  73250. (0, import_react157.cloneElement)(
  73251. children,
  73252. // @ts-expect-error aria-haspopup is a valid ARIA attribute but cloneElement types are too strict
  73253. { "aria-haspopup": "dialog" }
  73254. )
  73255. ),
  73256. import_react157.default.createElement(
  73257. $07b14b47974efb58$export$5b6b19405a83ff9d,
  73258. {
  73259. "aria-label": ariaLabel,
  73260. placement,
  73261. offset: offset3,
  73262. style: { outline: "none" }
  73263. },
  73264. import_react157.default.createElement(
  73265. Popover,
  73266. {
  73267. hasChrome,
  73268. hideLabel: closeLabel,
  73269. onHide: hasCloseButton ? onHide : void 0,
  73270. padding
  73271. },
  73272. typeof popover == "function" ? popover({ onHide }) : popover
  73273. )
  73274. )
  73275. );
  73276. };
  73277. // src/components/components/tooltip/Tooltip.tsx
  73278. var import_react158 = __toESM(require_react(), 1);
  73279. var Tooltip2 = (0, import_react158.forwardRef)((props, ref) => import_react158.default.createElement(Popover, { ref, ...props }));
  73280. Tooltip2.displayName = "Tooltip";
  73281. // src/components/components/tooltip/lazy-WithTooltip.tsx
  73282. var import_react160 = __toESM(require_react(), 1), LazyWithTooltip = (0, import_react160.lazy)(
  73283. () => Promise.resolve().then(() => (init_WithTooltip(), WithTooltip_exports)).then((mod) => ({ default: mod.WithTooltip }))
  73284. ), WithTooltip = (props) => import_react160.default.createElement(import_react160.Suspense, { fallback: import_react160.default.createElement("div", null) }, import_react160.default.createElement(LazyWithTooltip, { ...props })), LazyWithTooltipPure = (0, import_react160.lazy)(
  73285. () => Promise.resolve().then(() => (init_WithTooltip(), WithTooltip_exports)).then((mod) => ({ default: mod.WithTooltipPure }))
  73286. ), WithTooltipPure2 = (props) => import_react160.default.createElement(import_react160.Suspense, { fallback: import_react160.default.createElement("div", null) }, import_react160.default.createElement(LazyWithTooltipPure, { ...props }));
  73287. // src/components/components/tooltip/TooltipMessage.tsx
  73288. var import_react161 = __toESM(require_react(), 1);
  73289. init_client_logger();
  73290. init_theming();
  73291. var Title3 = styled.div(({ theme: theme3 }) => ({
  73292. fontWeight: theme3.typography.weight.bold
  73293. })), Desc2 = styled.span(), Links = styled.div(({ theme: theme3 }) => ({
  73294. marginTop: 8,
  73295. textAlign: "center",
  73296. "> *": {
  73297. margin: "0 8px",
  73298. fontWeight: theme3.typography.weight.bold
  73299. }
  73300. })), Message2 = styled.div(({ theme: theme3 }) => ({
  73301. color: theme3.color.defaultText,
  73302. lineHeight: "18px"
  73303. })), MessageWrapper = styled.div({
  73304. padding: 15,
  73305. width: 280,
  73306. boxSizing: "border-box"
  73307. }), TooltipMessage = ({ title, desc, links }) => (deprecate(
  73308. "`TooltipMessage` is deprecated and will be removed in Storybook 11, use `Popover` and `PopoverProvider` instead."
  73309. ), import_react161.default.createElement(MessageWrapper, { "data-deprecated": "TooltipMessage" }, import_react161.default.createElement(Message2, null, title && import_react161.default.createElement(Title3, null, title), desc && import_react161.default.createElement(Desc2, null, desc)), links && import_react161.default.createElement(Links, null, links.map(({ title: linkTitle, ...other }) => import_react161.default.createElement(Link2, { ...other, key: linkTitle }, linkTitle)))));
  73310. // src/components/components/tooltip/TooltipLinkList.tsx
  73311. var import_react163 = __toESM(require_react(), 1);
  73312. init_client_logger();
  73313. init_theming();
  73314. // src/components/components/tooltip/ListItem.tsx
  73315. var import_react162 = __toESM(require_react(), 1);
  73316. init_client_logger();
  73317. var import_memoizerific12 = __toESM(require_memoizerific(), 1);
  73318. init_theming();
  73319. var Title4 = styled(({ active, loading, disabled, ...rest }) => import_react162.default.createElement("span", { ...rest }))(
  73320. ({ theme: theme3 }) => ({
  73321. color: theme3.color.defaultText,
  73322. // Previously was theme.typography.weight.normal but this weight does not exists in Theme
  73323. fontWeight: theme3.typography.weight.regular
  73324. }),
  73325. ({ active, theme: theme3 }) => active ? {
  73326. color: theme3.color.secondary,
  73327. fontWeight: theme3.typography.weight.bold
  73328. } : {},
  73329. ({ loading, theme: theme3 }) => loading ? {
  73330. display: "inline-block",
  73331. flex: "none",
  73332. ...theme3.animation.inlineGlow
  73333. } : {},
  73334. ({ disabled, theme: theme3 }) => disabled ? {
  73335. color: theme3.textMutedColor
  73336. } : {}
  73337. ), Right = styled.span({
  73338. display: "flex",
  73339. "& svg": {
  73340. height: 12,
  73341. width: 12,
  73342. margin: "3px 0",
  73343. verticalAlign: "top"
  73344. }
  73345. }), Center = styled.span(
  73346. {
  73347. flex: 1,
  73348. textAlign: "left",
  73349. display: "flex",
  73350. flexDirection: "column",
  73351. minWidth: 0
  73352. // required for overflow
  73353. },
  73354. ({ isIndented }) => isIndented ? { marginLeft: 24 } : {}
  73355. ), CenterText = styled.span(
  73356. ({ theme: theme3 }) => ({
  73357. fontSize: "11px",
  73358. lineHeight: "14px"
  73359. }),
  73360. ({ active, theme: theme3 }) => active ? {
  73361. color: theme3.color.secondary
  73362. } : {},
  73363. ({ theme: theme3, disabled }) => disabled ? {
  73364. color: theme3.textMutedColor
  73365. } : {}
  73366. ), Left = styled.span(
  73367. ({ active, theme: theme3 }) => active ? {
  73368. color: theme3.color.secondary
  73369. } : {},
  73370. () => ({
  73371. display: "flex",
  73372. maxWidth: 14
  73373. })
  73374. ), Item = styled.button(
  73375. ({ theme: theme3 }) => ({
  73376. width: "100%",
  73377. minWidth: 0,
  73378. // required for overflow
  73379. border: "none",
  73380. borderRadius: theme3.appBorderRadius,
  73381. background: "none",
  73382. fontSize: theme3.typography.size.s1,
  73383. transition: "background 150ms ease-out",
  73384. color: theme3.color.dark,
  73385. textDecoration: "none",
  73386. justifyContent: "space-between",
  73387. lineHeight: "18px",
  73388. padding: "7px 10px",
  73389. display: "flex",
  73390. alignItems: "center",
  73391. "& > * + *": {
  73392. paddingLeft: 10
  73393. },
  73394. "&:focus-visible": {
  73395. outline: `2px solid ${theme3.color.secondary}`,
  73396. outlineOffset: 0
  73397. }
  73398. }),
  73399. ({ theme: theme3, href, onClick }) => (href || onClick) && {
  73400. cursor: "pointer",
  73401. "&:hover": {
  73402. background: theme3.background.hoverable
  73403. },
  73404. "&:hover svg": {
  73405. opacity: 1
  73406. }
  73407. },
  73408. ({ theme: theme3, as }) => as === "label" && {
  73409. "&:has(input:not(:disabled))": {
  73410. cursor: "pointer",
  73411. "&:hover": {
  73412. background: theme3.background.hoverable
  73413. }
  73414. }
  73415. },
  73416. ({ disabled }) => disabled && { cursor: "not-allowed" }
  73417. ), getItemProps = (0, import_memoizerific12.default)(100)(({ onClick, input: input2, href, LinkWrapper }) => ({
  73418. ...onClick && {
  73419. as: "button",
  73420. role: "button",
  73421. onClick
  73422. },
  73423. ...input2 && {
  73424. as: "label"
  73425. },
  73426. ...href && {
  73427. as: "a",
  73428. role: "link",
  73429. href,
  73430. ...LinkWrapper && {
  73431. as: LinkWrapper,
  73432. to: href
  73433. }
  73434. }
  73435. })), ListItem = (0, import_react162.forwardRef)((props, ref) => {
  73436. let {
  73437. loading = !1,
  73438. title = import_react162.default.createElement("span", null, "Loading state"),
  73439. center = null,
  73440. right: right2 = null,
  73441. active = !1,
  73442. disabled = !1,
  73443. isIndented = !1,
  73444. href = void 0,
  73445. onClick = void 0,
  73446. icon,
  73447. input: input2,
  73448. LinkWrapper = void 0,
  73449. ...rest
  73450. } = props, commonProps = { active, disabled }, itemProps = getItemProps(props), left2 = icon || input2;
  73451. return deprecate(
  73452. "`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."
  73453. ), import_react162.default.createElement(Item, { "data-deprecated": "ListItem", ref, ...rest, ...commonProps, ...itemProps }, import_react162.default.createElement(import_react162.default.Fragment, null, left2 && import_react162.default.createElement(Left, { ...commonProps }, left2), title || center ? import_react162.default.createElement(Center, { isIndented: isIndented && !left2 }, title && import_react162.default.createElement(Title4, { ...commonProps, loading }, title), center && import_react162.default.createElement(CenterText, { ...commonProps }, center)) : null, right2 && import_react162.default.createElement(Right, { ...commonProps }, right2)));
  73454. });
  73455. ListItem.displayName = "ListItem";
  73456. var ListItem_default = ListItem;
  73457. // src/components/components/tooltip/TooltipLinkList.tsx
  73458. var List = styled.div(
  73459. {
  73460. minWidth: 180,
  73461. overflow: "hidden",
  73462. overflowY: "auto",
  73463. maxHeight: 15.5 * 32 + 8
  73464. // 15.5 items at 32px each + 8px padding
  73465. },
  73466. ({ theme: theme3 }) => ({
  73467. borderRadius: theme3.appBorderRadius + 2
  73468. }),
  73469. ({ theme: theme3 }) => theme3.base === "dark" ? { background: theme3.background.content } : {}
  73470. ), Group = styled.div(({ theme: theme3 }) => ({
  73471. padding: 4,
  73472. "& + &": {
  73473. borderTop: `1px solid ${theme3.appBorderColor}`
  73474. }
  73475. })), Item2 = ({ id, onClick, ...rest }) => {
  73476. let { active, disabled, title, href } = rest, handleClick = (0, import_react163.useCallback)(
  73477. (event) => onClick?.(event, { id, active, disabled, title, href }),
  73478. [onClick, id, active, disabled, title, href]
  73479. );
  73480. return import_react163.default.createElement(ListItem_default, { id: `list-item-${id}`, ...rest, ...onClick && { onClick: handleClick } });
  73481. }, TooltipLinkList = ({ links, LinkWrapper, ...props }) => {
  73482. deprecate(
  73483. "`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead."
  73484. );
  73485. let groups = Array.isArray(links[0]) ? links : [links], isIndented = groups.some(
  73486. (group) => group.some((link) => "icon" in link && link.icon || "input" in link && link.input)
  73487. );
  73488. return import_react163.default.createElement(List, { "data-deprecated": "TooltipLinkList", ...props, className: "sb-list" }, groups.filter((group) => group.length).map((group, index4) => import_react163.default.createElement(Group, { key: group.map((link) => link.id).join(`~${index4}~`) }, group.map((link) => "content" in link ? import_react163.default.createElement(import_react163.Fragment, { key: link.id }, link.content) : import_react163.default.createElement(Item2, { key: link.id, isIndented, LinkWrapper, ...link })))));
  73489. };
  73490. // src/components/components/Tabs/Tabs.tsx
  73491. var import_react169 = __toESM(require_react(), 1);
  73492. init_client_logger();
  73493. init_theming();
  73494. // src/components/components/Bar/Bar.tsx
  73495. var import_react164 = __toESM(require_react(), 1);
  73496. init_client_logger();
  73497. init_theming();
  73498. var StyledBar = styled.div(
  73499. ({ backgroundColor, border = !1, innerStyle = {}, scrollable, theme: theme3 }) => ({
  73500. color: theme3.barTextColor,
  73501. width: "100%",
  73502. minHeight: 40,
  73503. flexShrink: 0,
  73504. // TODO in Storybook 11: Apply background regardless of border.
  73505. scrollbarColor: `${theme3.barTextColor} ${border ? backgroundColor || theme3.barBg : "transparent"}`,
  73506. scrollbarWidth: "thin",
  73507. overflow: scrollable ? "auto" : "hidden",
  73508. overflowY: "hidden",
  73509. display: "flex",
  73510. alignItems: "center",
  73511. gap: scrollable ? 0 : 6,
  73512. paddingInline: scrollable ? 0 : 6,
  73513. // TODO in Storybook 11: Apply background regardless of border.
  73514. ...border ? {
  73515. boxShadow: `${theme3.appBorderColor} 0 -1px 0 0 inset`,
  73516. background: backgroundColor || theme3.barBg
  73517. } : {},
  73518. ...innerStyle
  73519. })
  73520. ), HeightPreserver = styled.div(({ innerStyle }) => ({
  73521. minHeight: 40,
  73522. display: "flex",
  73523. alignItems: "center",
  73524. width: "100%",
  73525. gap: 6,
  73526. paddingInline: 6,
  73527. ...innerStyle
  73528. })), Bar = (0, import_react164.forwardRef)(
  73529. ({ scrollable = !0, children, innerStyle, ...rest }, ref) => import_react164.default.createElement(
  73530. StyledBar,
  73531. {
  73532. ...rest,
  73533. ref,
  73534. innerStyle: scrollable ? void 0 : innerStyle,
  73535. scrollable
  73536. },
  73537. scrollable ? import_react164.default.createElement(HeightPreserver, { innerStyle }, children) : children
  73538. )
  73539. );
  73540. Bar.displayName = "Bar";
  73541. var Side = styled.div(
  73542. {
  73543. display: "flex",
  73544. whiteSpace: "nowrap",
  73545. flexBasis: "auto",
  73546. marginLeft: 3,
  73547. marginRight: 10
  73548. },
  73549. ({ scrollable }) => scrollable ? { flexShrink: 0 } : {},
  73550. ({ left: left2 }) => left2 ? {
  73551. "& > *": {
  73552. marginLeft: 4
  73553. }
  73554. } : {},
  73555. ({ right: right2 }) => right2 ? {
  73556. gap: 6
  73557. } : {}
  73558. );
  73559. Side.displayName = "Side";
  73560. var BarInner = styled.div(({ bgColor }) => ({
  73561. display: "flex",
  73562. justifyContent: "space-between",
  73563. position: "relative",
  73564. flexWrap: "nowrap",
  73565. flexShrink: 0,
  73566. height: 40,
  73567. width: "100%",
  73568. backgroundColor: bgColor || ""
  73569. })), BarWithoutPadding = styled(Bar)({
  73570. paddingInline: 0
  73571. }), FlexBar = ({ children, backgroundColor, className = "", ...rest }) => {
  73572. deprecate('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');
  73573. let [left2, right2] = import_react164.Children.toArray(children);
  73574. return import_react164.default.createElement(
  73575. BarWithoutPadding,
  73576. {
  73577. "data-deprecated": "FlexBar",
  73578. backgroundColor,
  73579. className: `sb-bar ${className}`,
  73580. ...rest
  73581. },
  73582. import_react164.default.createElement(BarInner, { bgColor: backgroundColor }, import_react164.default.createElement(Side, { scrollable: rest.scrollable, left: !0 }, left2), right2 ? import_react164.default.createElement(Side, { right: !0 }, right2) : null)
  73583. );
  73584. };
  73585. FlexBar.displayName = "FlexBar";
  73586. // src/components/components/Tabs/Button.tsx
  73587. var import_react165 = __toESM(require_react(), 1);
  73588. init_client_logger();
  73589. init_theming();
  73590. var isLink = (obj) => typeof obj.props.href == "string", isButton = (obj) => typeof obj.props.href != "string";
  73591. function ForwardRefFunction({ children, ...rest }, ref) {
  73592. let o = { props: rest, ref };
  73593. if (isLink(o))
  73594. return import_react165.default.createElement("a", { ref: o.ref, ...o.props }, children);
  73595. if (isButton(o))
  73596. return import_react165.default.createElement("button", { ref: o.ref, type: "button", ...o.props }, children);
  73597. throw new Error("invalid props");
  73598. }
  73599. var ButtonOrLink = (0, import_react165.forwardRef)(ForwardRefFunction);
  73600. ButtonOrLink.displayName = "ButtonOrLink";
  73601. var StyledTabButton = styled(ButtonOrLink, { shouldForwardProp: isPropValid })(
  73602. {
  73603. whiteSpace: "normal",
  73604. display: "inline-flex",
  73605. overflow: "hidden",
  73606. verticalAlign: "top",
  73607. justifyContent: "center",
  73608. alignItems: "center",
  73609. textAlign: "center",
  73610. textDecoration: "none",
  73611. "&:empty": {
  73612. display: "none"
  73613. },
  73614. "&[hidden]": {
  73615. display: "none"
  73616. }
  73617. },
  73618. ({ theme: theme3 }) => ({
  73619. padding: "0 15px",
  73620. transition: "color 0.2s linear, border-bottom-color 0.2s linear",
  73621. height: 40,
  73622. lineHeight: "12px",
  73623. cursor: "pointer",
  73624. background: "transparent",
  73625. border: "0 solid transparent",
  73626. borderTop: "3px solid transparent",
  73627. borderBottom: "3px solid transparent",
  73628. fontWeight: "bold",
  73629. fontSize: 13,
  73630. "&:focus": {
  73631. outline: "0 none",
  73632. borderBottomColor: theme3.barSelectedColor
  73633. }
  73634. }),
  73635. ({ active, textColor, theme: theme3 }) => active ? {
  73636. color: textColor || theme3.barSelectedColor,
  73637. borderBottomColor: theme3.barSelectedColor
  73638. } : {
  73639. color: textColor || theme3.barTextColor,
  73640. borderBottomColor: "transparent",
  73641. "&:hover": {
  73642. color: theme3.barHoverColor
  73643. }
  73644. }
  73645. ), TabButton = (0, import_react165.forwardRef)((props, ref) => (deprecate("The `TabButton` component is deprecated. Use `TabList` instead."), import_react165.default.createElement(StyledTabButton, { "data-deprecated": "TabButton", ref, ...props })));
  73646. TabButton.displayName = "TabButton";
  73647. // src/components/components/Tabs/EmptyTabContent.tsx
  73648. var import_react166 = __toESM(require_react(), 1);
  73649. init_theming();
  73650. var Wrapper6 = styled.div(({ theme: theme3 }) => ({
  73651. height: "100%",
  73652. display: "flex",
  73653. padding: 30,
  73654. alignItems: "center",
  73655. justifyContent: "center",
  73656. flexDirection: "column",
  73657. gap: 15,
  73658. background: theme3.background.content
  73659. })), Content2 = styled.div({
  73660. display: "flex",
  73661. flexDirection: "column",
  73662. gap: 4,
  73663. maxWidth: 415
  73664. }), Title5 = styled.div(({ theme: theme3 }) => ({
  73665. fontWeight: theme3.typography.weight.bold,
  73666. fontSize: theme3.typography.size.s2 - 1,
  73667. textAlign: "center",
  73668. color: theme3.color.defaultText
  73669. })), Footer = styled.div(({ theme: theme3 }) => ({
  73670. fontSize: theme3.typography.size.s2 - 1
  73671. })), Description2 = styled.div(({ theme: theme3 }) => ({
  73672. fontWeight: theme3.typography.weight.regular,
  73673. fontSize: theme3.typography.size.s2 - 1,
  73674. textAlign: "center",
  73675. color: theme3.textMutedColor
  73676. })), EmptyTabContent = ({ title, description, footer }) => import_react166.default.createElement(Wrapper6, null, import_react166.default.createElement(Content2, null, import_react166.default.createElement(Title5, null, title), description && import_react166.default.createElement(Description2, null, description)), footer && import_react166.default.createElement(Footer, null, footer));
  73677. // src/components/components/Tabs/Tabs.helpers.tsx
  73678. var import_react167 = __toESM(require_react(), 1);
  73679. init_client_logger();
  73680. init_theming();
  73681. var VisuallyHidden = styled.div(
  73682. ({ active }) => active ? { display: "block" } : { display: "none" }
  73683. ), childrenToList = (children) => (deprecate("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."), import_react167.Children.toArray(children).map(
  73684. // @ts-expect-error (non strict)
  73685. ({
  73686. props: { title, id, color: color2, children: childrenOfChild }
  73687. }) => {
  73688. let content = Array.isArray(
  73689. childrenOfChild
  73690. ) ? childrenOfChild[0] : childrenOfChild;
  73691. return {
  73692. title,
  73693. id,
  73694. ...color2 ? { color: color2 } : {},
  73695. render: typeof content == "function" ? content : ({ active }) => import_react167.default.createElement(VisuallyHidden, { active, role: "tabpanel" }, content)
  73696. };
  73697. }
  73698. ));
  73699. // src/components/components/Tabs/Tabs.hooks.tsx
  73700. var import_react168 = __toESM(require_react(), 1);
  73701. init_client_logger();
  73702. init_theming();
  73703. var CollapseIcon2 = styled.span(({ theme: theme3, isActive }) => ({
  73704. display: "inline-block",
  73705. width: 0,
  73706. height: 0,
  73707. marginLeft: 8,
  73708. color: isActive ? theme3.color.secondary : theme3.color.mediumdark,
  73709. borderRight: "3px solid transparent",
  73710. borderLeft: "3px solid transparent",
  73711. borderTop: "3px solid",
  73712. transition: "transform .1s ease-out"
  73713. })), AddonButton = styled(TabButton)(({ active, theme: theme3, preActive }) => `
  73714. color: ${preActive || active ? theme3.barSelectedColor : theme3.barTextColor};
  73715. .addon-collapsible-icon {
  73716. color: ${preActive || active ? theme3.barSelectedColor : theme3.barTextColor};
  73717. }
  73718. &:hover {
  73719. color: ${theme3.barHoverColor};
  73720. .addon-collapsible-icon {
  73721. color: ${theme3.barHoverColor};
  73722. }
  73723. }
  73724. `);
  73725. function useList(list) {
  73726. deprecate("The `useList` tabs hook is deprecated. Use `TabsView` instead.");
  73727. let tabBarRef = (0, import_react168.useRef)(), addonsRef = (0, import_react168.useRef)(), tabRefs = (0, import_react168.useRef)(/* @__PURE__ */ new Map()), { width: tabBarWidth = 1 } = useResizeObserver2({
  73728. // @ts-expect-error (non strict)
  73729. ref: tabBarRef
  73730. }), [visibleList, setVisibleList] = (0, import_react168.useState)(list), [invisibleList, setInvisibleList] = (0, import_react168.useState)([]), previousList = (0, import_react168.useRef)(list), AddonTab = (0, import_react168.useCallback)(
  73731. ({
  73732. menuName,
  73733. actions
  73734. }) => {
  73735. let isAddonsActive = invisibleList.some(({ active }) => active), [isTooltipVisible, setTooltipVisible] = (0, import_react168.useState)(!1);
  73736. return import_react168.default.createElement(import_react168.default.Fragment, null, import_react168.default.createElement(
  73737. PopoverProvider,
  73738. {
  73739. ariaLabel: "Additional tabs",
  73740. visible: isTooltipVisible,
  73741. onVisibleChange: setTooltipVisible,
  73742. placement: "bottom",
  73743. popover: import_react168.default.createElement(
  73744. TooltipLinkList,
  73745. {
  73746. links: invisibleList.map(({ title, id, color: color2, active }) => ({
  73747. id,
  73748. title,
  73749. color: color2,
  73750. active,
  73751. onClick: (e) => {
  73752. e.preventDefault(), actions.onSelect(id);
  73753. }
  73754. }))
  73755. }
  73756. )
  73757. },
  73758. import_react168.default.createElement(
  73759. AddonButton,
  73760. {
  73761. id: "addons-menu-button",
  73762. ref: addonsRef,
  73763. active: isAddonsActive,
  73764. preActive: isTooltipVisible,
  73765. style: { visibility: invisibleList.length ? "visible" : "hidden" },
  73766. "aria-hidden": !invisibleList.length,
  73767. className: "tabbutton",
  73768. type: "button",
  73769. role: "tab"
  73770. },
  73771. menuName,
  73772. import_react168.default.createElement(
  73773. CollapseIcon2,
  73774. {
  73775. className: "addon-collapsible-icon",
  73776. isActive: isAddonsActive || isTooltipVisible
  73777. }
  73778. )
  73779. )
  73780. ), invisibleList.map(({ title, id, color: color2 }, index4) => {
  73781. let indexId = `index-${index4}`;
  73782. return import_react168.default.createElement(
  73783. TabButton,
  73784. {
  73785. id: `tabbutton-${sanitize(id) ?? indexId}`,
  73786. style: { visibility: "hidden" },
  73787. "aria-hidden": !0,
  73788. tabIndex: -1,
  73789. ref: (ref) => {
  73790. tabRefs.current.set(id, ref);
  73791. },
  73792. className: "tabbutton",
  73793. type: "button",
  73794. key: id,
  73795. textColor: color2,
  73796. role: "tab"
  73797. },
  73798. title
  73799. );
  73800. }));
  73801. },
  73802. [invisibleList]
  73803. ), setTabLists = (0, import_react168.useCallback)(() => {
  73804. if (!tabBarRef.current || !addonsRef.current)
  73805. return;
  73806. let { x, width } = tabBarRef.current.getBoundingClientRect(), { width: widthAddonsTab } = addonsRef.current.getBoundingClientRect(), rightBorder = invisibleList.length ? x + width - widthAddonsTab : x + width, newVisibleList = [], widthSum = 0, newInvisibleList = list.filter((item) => {
  73807. let { id } = item, tabButton = tabRefs.current.get(id), { width: tabWidth = 0 } = tabButton?.getBoundingClientRect() || {}, crossBorder = x + widthSum + tabWidth > rightBorder;
  73808. return (!crossBorder || !tabButton) && newVisibleList.push(item), widthSum += tabWidth, crossBorder;
  73809. });
  73810. (newVisibleList.length !== visibleList.length || previousList.current !== list) && (setVisibleList(newVisibleList), setInvisibleList(newInvisibleList), previousList.current = list);
  73811. }, [invisibleList.length, list, visibleList]);
  73812. return (0, import_react168.useLayoutEffect)(setTabLists, [setTabLists, tabBarWidth]), {
  73813. tabRefs,
  73814. addonsRef,
  73815. tabBarRef,
  73816. visibleList,
  73817. invisibleList,
  73818. AddonTab
  73819. };
  73820. }
  73821. // src/components/components/Tabs/Tabs.tsx
  73822. var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper7 = styled.div(
  73823. ({ theme: theme3, bordered }) => bordered ? {
  73824. backgroundClip: "padding-box",
  73825. border: `1px solid ${theme3.appBorderColor}`,
  73826. borderRadius: theme3.appBorderRadius,
  73827. overflow: "hidden",
  73828. boxSizing: "border-box"
  73829. } : {},
  73830. ({ absolute }) => absolute ? {
  73831. width: "100%",
  73832. height: "100%",
  73833. boxSizing: "border-box",
  73834. display: "flex",
  73835. flexDirection: "column"
  73836. } : {
  73837. display: "block"
  73838. }
  73839. ), StyledTabBar = styled.div({
  73840. overflow: "hidden",
  73841. "&:first-of-type": {
  73842. marginLeft: -3
  73843. },
  73844. whiteSpace: "nowrap",
  73845. flexGrow: 1
  73846. }), TabBar = (0, import_react169.forwardRef)(
  73847. (props, ref) => (deprecate("The `TabBar` component is deprecated. Use `TabsView` instead."), import_react169.default.createElement(StyledTabBar, { "data-deprecated": "TabBar", ...props, ref }))
  73848. );
  73849. TabBar.displayName = "TabBar";
  73850. var Content3 = styled.div(
  73851. {
  73852. display: "block",
  73853. position: "relative",
  73854. container: "tab-content / inline-size"
  73855. },
  73856. ({ theme: theme3 }) => ({
  73857. fontSize: theme3.typography.size.s2 - 1,
  73858. background: theme3.background.content
  73859. }),
  73860. ({ bordered, theme: theme3 }) => bordered ? {
  73861. borderRadius: `0 0 ${theme3.appBorderRadius - 1}px ${theme3.appBorderRadius - 1}px`
  73862. } : {},
  73863. ({ absolute, bordered }) => absolute ? {
  73864. height: `calc(100% - ${bordered ? 42 : 40}px)`,
  73865. position: "absolute",
  73866. left: 0 + (bordered ? 1 : 0),
  73867. right: 0 + (bordered ? 1 : 0),
  73868. bottom: 0 + (bordered ? 1 : 0),
  73869. top: 40 + (bordered ? 1 : 0),
  73870. overflow: "auto",
  73871. [`& > *:first-child${ignoreSsrWarning2}`]: {
  73872. position: "absolute",
  73873. left: 0 + (bordered ? 1 : 0),
  73874. right: 0 + (bordered ? 1 : 0),
  73875. bottom: 0 + (bordered ? 1 : 0),
  73876. top: 0 + (bordered ? 1 : 0),
  73877. height: `calc(100% - ${bordered ? 2 : 0}px)`,
  73878. overflow: "auto"
  73879. }
  73880. } : {}
  73881. ), TabWrapper = (0, import_react169.forwardRef)(
  73882. ({ active, render, children }, ref) => (deprecate("The `TabWrapper` component is deprecated. Use `TabsView` instead."), import_react169.default.createElement(VisuallyHidden, { "data-deprecated": "TabWrapper", ref, active }, render ? render() : children))
  73883. );
  73884. TabWrapper.displayName = "TabWrapper";
  73885. var TabErrorBoundary = class extends import_react169.Component {
  73886. constructor(props) {
  73887. super(props), this.state = { hasError: !1 };
  73888. }
  73889. static getDerivedStateFromError() {
  73890. return { hasError: !0 };
  73891. }
  73892. componentDidCatch(error, info) {
  73893. console.error("Error rendering addon panel"), console.error(error), console.error(info.componentStack);
  73894. }
  73895. render() {
  73896. return this.state.hasError && this.props.active ? import_react169.default.createElement(
  73897. EmptyTabContent,
  73898. {
  73899. title: "This addon has errors",
  73900. description: "Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."
  73901. }
  73902. ) : this.props.children;
  73903. }
  73904. }, Tabs = (0, import_react169.memo)(
  73905. ({
  73906. children,
  73907. selected = null,
  73908. actions,
  73909. absolute = !1,
  73910. bordered = !1,
  73911. tools = null,
  73912. backgroundColor,
  73913. id: htmlId = null,
  73914. menuName = "Tabs",
  73915. emptyState,
  73916. showToolsWhenEmpty
  73917. }) => {
  73918. deprecate("The `Tabs` component is deprecated. Use `TabsView` instead.");
  73919. let list = (0, import_react169.useMemo)(
  73920. () => childrenToList(children).map((i, index4) => ({
  73921. ...i,
  73922. active: selected ? i.id === selected : index4 === 0
  73923. })),
  73924. [children, selected]
  73925. ), { visibleList, tabBarRef, tabRefs, AddonTab } = useList(list), EmptyContent = emptyState ?? import_react169.default.createElement(EmptyTabContent, { title: "Nothing found" });
  73926. return !showToolsWhenEmpty && list.length === 0 ? EmptyContent : (
  73927. // @ts-expect-error (non strict)
  73928. import_react169.default.createElement(Wrapper7, { "data-deprecated": "Tabs", absolute, bordered, id: htmlId }, import_react169.default.createElement(FlexBar, { scrollable: !1, border: !0, backgroundColor }, import_react169.default.createElement(TabBar, { style: { whiteSpace: "normal" }, ref: tabBarRef, role: "tablist" }, visibleList.map(({ title, id, active, color: color2 }, index4) => {
  73929. let indexId = `index-${index4}`;
  73930. return import_react169.default.createElement(
  73931. TabButton,
  73932. {
  73933. id: `tabbutton-${sanitize(id) ?? indexId}`,
  73934. ref: (ref) => {
  73935. tabRefs.current.set(id, ref);
  73936. },
  73937. className: `tabbutton ${active ? "tabbutton-active" : ""}`,
  73938. type: "button",
  73939. key: id,
  73940. active,
  73941. textColor: color2,
  73942. onClick: (e) => {
  73943. e.preventDefault(), actions.onSelect(id);
  73944. },
  73945. role: "tab",
  73946. "aria-selected": active
  73947. },
  73948. typeof title == "function" ? import_react169.default.createElement("title", null) : title
  73949. );
  73950. }), import_react169.default.createElement(AddonTab, { menuName, actions })), tools), import_react169.default.createElement(Content3, { id: "panel-tab-content", bordered, absolute }, list.length ? list.map(({ id, active, render }) => import_react169.default.createElement(TabErrorBoundary, { key: id, active }, import_react169.default.createElement(render, { active }, null))) : EmptyContent))
  73951. );
  73952. }
  73953. );
  73954. Tabs.displayName = "Tabs";
  73955. var TabsState = class extends import_react169.Component {
  73956. constructor(props) {
  73957. super(props);
  73958. this.handlers = {
  73959. onSelect: (id) => this.setState({ selected: id })
  73960. };
  73961. deprecate("The `TabsState` class is deprecated. Use `TabsView` instead."), this.state = {
  73962. selected: props.initial
  73963. };
  73964. }
  73965. render() {
  73966. let { bordered = !1, absolute = !1, children, backgroundColor, menuName } = this.props, { selected } = this.state;
  73967. return import_react169.default.createElement(
  73968. Tabs,
  73969. {
  73970. bordered,
  73971. absolute,
  73972. selected,
  73973. backgroundColor,
  73974. menuName,
  73975. actions: this.handlers
  73976. },
  73977. children
  73978. );
  73979. }
  73980. };
  73981. TabsState.defaultProps = {
  73982. children: [],
  73983. // @ts-expect-error (non strict)
  73984. initial: null,
  73985. absolute: !1,
  73986. bordered: !1,
  73987. backgroundColor: "",
  73988. // @ts-expect-error (non strict)
  73989. menuName: void 0
  73990. };
  73991. // src/components/components/Bar/Separator.tsx
  73992. var import_react170 = __toESM(require_react(), 1);
  73993. init_theming();
  73994. var Separator2 = styled.span(
  73995. ({ theme: theme3 }) => ({
  73996. display: "inline-block",
  73997. width: 1,
  73998. height: 20,
  73999. background: theme3.appBorderColor,
  74000. marginLeft: 2,
  74001. marginRight: 2
  74002. }),
  74003. ({ force }) => force ? {} : {
  74004. "& + &": {
  74005. display: "none"
  74006. }
  74007. }
  74008. );
  74009. Separator2.displayName = "Separator";
  74010. var interleaveSeparators = (list) => list.reduce(
  74011. (acc, item, index4) => item ? import_react170.default.createElement(import_react170.Fragment, { key: item.id || item.key || `f-${index4}` }, acc, index4 > 0 ? import_react170.default.createElement(Separator2, { key: `s-${index4}` }) : null, item.render() || item) : acc,
  74012. null
  74013. );
  74014. // src/components/components/addon-panel/addon-panel.tsx
  74015. var import_react171 = __toESM(require_react(), 1);
  74016. init_theming();
  74017. init_ScrollArea();
  74018. var usePrevious = (value) => {
  74019. let ref = (0, import_react171.useRef)();
  74020. return (0, import_react171.useEffect)(() => {
  74021. ref.current = value;
  74022. }, [value]), ref.current;
  74023. }, useUpdate = (update2, value) => {
  74024. let previousValue = usePrevious(value);
  74025. return update2 ? value : previousValue;
  74026. }, Div2 = styled.div(({ theme: theme3 }) => ({
  74027. fontSize: theme3.typography.size.s2 - 1,
  74028. height: "100%"
  74029. })), AddonPanel = ({
  74030. active,
  74031. children,
  74032. hasScrollbar = !0,
  74033. hasHorizontalScrollbar = !1
  74034. }) => (
  74035. // the hidden attribute is an valid html element that's both accessible and works to visually hide content
  74036. import_react171.default.createElement(Div2, { hidden: !active }, hasScrollbar || hasHorizontalScrollbar ? import_react171.default.createElement(ScrollArea2, { vertical: hasScrollbar, horizontal: hasHorizontalScrollbar }, useUpdate(active, children)) : useUpdate(active, children))
  74037. );
  74038. // src/components/components/Toolbar/Toolbar.tsx
  74039. var import_react173 = __toESM(require_react(), 1);
  74040. // ../../node_modules/@react-aria/toolbar/dist/useToolbar.mjs
  74041. var import_react172 = __toESM(require_react(), 1);
  74042. function $2680b1829e803644$export$fa142eb1681c5202(props, ref) {
  74043. let { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props, [isInToolbar, setInToolbar] = (0, import_react172.useState)(!1);
  74044. $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
  74045. var _ref_current_parentElement;
  74046. setInToolbar(!!(ref.current && (!((_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0) && _ref_current_parentElement.closest('[role="toolbar"]'))));
  74047. });
  74048. let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), shouldReverse = direction === "rtl" && orientation === "horizontal", focusManager = $9bf71ea28793e738$export$c5251b9e124bf29(ref), onKeyDown = (e) => {
  74049. if (e.currentTarget.contains(e.target)) {
  74050. if (orientation === "horizontal" && e.key === "ArrowRight" || orientation === "vertical" && e.key === "ArrowDown")
  74051. shouldReverse ? focusManager.focusPrevious() : focusManager.focusNext();
  74052. else if (orientation === "horizontal" && e.key === "ArrowLeft" || orientation === "vertical" && e.key === "ArrowUp")
  74053. shouldReverse ? focusManager.focusNext() : focusManager.focusPrevious();
  74054. else if (e.key === "Tab") {
  74055. e.stopPropagation(), lastFocused.current = document.activeElement, e.shiftKey ? focusManager.focusFirst() : focusManager.focusLast();
  74056. return;
  74057. } else
  74058. return;
  74059. e.stopPropagation(), e.preventDefault();
  74060. }
  74061. }, lastFocused = (0, import_react172.useRef)(null), onBlur = (e) => {
  74062. !e.currentTarget.contains(e.relatedTarget) && !lastFocused.current && (lastFocused.current = e.target);
  74063. }, onFocus = (e) => {
  74064. var _ref_current;
  74065. if (lastFocused.current && !e.currentTarget.contains(e.relatedTarget) && (!((_ref_current = ref.current) === null || _ref_current === void 0) && _ref_current.contains(e.target))) {
  74066. var _lastFocused_current;
  74067. (_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 || _lastFocused_current.focus(), lastFocused.current = null;
  74068. }
  74069. };
  74070. return {
  74071. toolbarProps: {
  74072. ...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74073. labelable: !0
  74074. }),
  74075. role: isInToolbar ? "group" : "toolbar",
  74076. "aria-orientation": orientation,
  74077. "aria-label": ariaLabel,
  74078. "aria-labelledby": ariaLabel == null ? ariaLabelledBy : void 0,
  74079. onKeyDownCapture: isInToolbar ? void 0 : onKeyDown,
  74080. onFocusCapture: isInToolbar ? void 0 : onFocus,
  74081. onBlurCapture: isInToolbar ? void 0 : onBlur
  74082. }
  74083. };
  74084. }
  74085. // src/components/components/Toolbar/Toolbar.tsx
  74086. var AbstractToolbar = ({
  74087. "aria-label": ariaLabel,
  74088. "aria-labelledby": ariaLabelledby,
  74089. ...rest
  74090. }) => {
  74091. let ref = (0, import_react173.useRef)(null), { toolbarProps } = $2680b1829e803644$export$fa142eb1681c5202(
  74092. {
  74093. "aria-label": ariaLabel,
  74094. "aria-labelledby": ariaLabelledby,
  74095. orientation: "horizontal"
  74096. },
  74097. ref
  74098. );
  74099. return import_react173.default.createElement("div", { ref, ...toolbarProps, ...rest });
  74100. }, Toolbar = ({
  74101. "aria-label": ariaLabel,
  74102. "aria-labelledby": ariaLabelledby,
  74103. ...rest
  74104. }) => {
  74105. let ref = (0, import_react173.useRef)(null), { toolbarProps } = $2680b1829e803644$export$fa142eb1681c5202(
  74106. {
  74107. "aria-label": ariaLabel,
  74108. "aria-labelledby": ariaLabelledby,
  74109. orientation: "horizontal"
  74110. },
  74111. ref
  74112. );
  74113. return import_react173.default.createElement(Bar, { ref, ...toolbarProps, ...rest });
  74114. };
  74115. // src/components/components/Tabs/TabList.tsx
  74116. var import_react175 = __toESM(require_react(), 1);
  74117. // ../../node_modules/@react-aria/tabs/dist/utils.mjs
  74118. var $99b62ae3ff97ec45$export$c5f62239608282b6 = /* @__PURE__ */ new WeakMap();
  74119. function $99b62ae3ff97ec45$export$567fc7097e064344(state3, key, role) {
  74120. return state3 ? (typeof key == "string" && (key = key.replace(/\s+/g, "")), `${$99b62ae3ff97ec45$export$c5f62239608282b6.get(state3)}-${role}-${key}`) : "";
  74121. }
  74122. // ../../node_modules/@react-aria/tabs/dist/useTab.mjs
  74123. function $0175d55c2a017ebc$export$fdf4756d5b8ef90a(props, state3, ref) {
  74124. let { key, isDisabled: propsDisabled, shouldSelectOnPressUp } = props, { selectionManager: manager, selectedKey } = state3, isSelected = key === selectedKey, isDisabled3 = propsDisabled || state3.isDisabled || state3.selectionManager.isDisabled(key), { itemProps, isPressed } = $880e95eb8b93ba9a$export$ecf600387e221c37({
  74125. selectionManager: manager,
  74126. key,
  74127. ref,
  74128. isDisabled: isDisabled3,
  74129. shouldSelectOnPressUp,
  74130. linkBehavior: "selection"
  74131. }), tabId = $99b62ae3ff97ec45$export$567fc7097e064344(state3, key, "tab"), tabPanelId = $99b62ae3ff97ec45$export$567fc7097e064344(state3, key, "tabpanel"), { tabIndex } = itemProps, item = state3.collection.getItem(key), domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item?.props, {
  74132. labelable: !0
  74133. });
  74134. delete domProps.id;
  74135. let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item?.props), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
  74136. isDisabled: isDisabled3
  74137. }, ref);
  74138. return {
  74139. tabProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusableProps, linkProps, itemProps, {
  74140. id: tabId,
  74141. "aria-selected": isSelected,
  74142. "aria-disabled": isDisabled3 || void 0,
  74143. "aria-controls": isSelected ? tabPanelId : void 0,
  74144. tabIndex: isDisabled3 ? void 0 : tabIndex,
  74145. role: "tab"
  74146. }),
  74147. isSelected,
  74148. isDisabled: isDisabled3,
  74149. isPressed
  74150. };
  74151. }
  74152. // ../../node_modules/@react-aria/tabs/dist/useTabPanel.mjs
  74153. function $34bce698202e07cb$export$fae0121b5afe572d(props, state3, ref) {
  74154. let tabIndex = $83013635b024ae3d$export$eac1895992b9f3d6(ref) ? void 0 : 0;
  74155. var _props_id;
  74156. let id = $99b62ae3ff97ec45$export$567fc7097e064344(state3, (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : state3?.selectedKey, "tabpanel"), tabPanelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
  74157. ...props,
  74158. id,
  74159. "aria-labelledby": $99b62ae3ff97ec45$export$567fc7097e064344(state3, state3?.selectedKey, "tab")
  74160. });
  74161. return {
  74162. tabPanelProps: $3ef42575df84b30b$export$9d1611c77c2fe928(tabPanelProps, {
  74163. tabIndex,
  74164. role: "tabpanel",
  74165. "aria-describedby": props["aria-describedby"],
  74166. "aria-details": props["aria-details"]
  74167. })
  74168. };
  74169. }
  74170. // ../../node_modules/@react-aria/tabs/dist/TabsKeyboardDelegate.mjs
  74171. var $bfc6f2d60b8a4c40$export$15010ca3c1abe90b = class {
  74172. getKeyLeftOf(key) {
  74173. return this.flipDirection ? this.getNextKey(key) : this.getPreviousKey(key);
  74174. }
  74175. getKeyRightOf(key) {
  74176. return this.flipDirection ? this.getPreviousKey(key) : this.getNextKey(key);
  74177. }
  74178. isDisabled(key) {
  74179. var _this_collection_getItem_props, _this_collection_getItem;
  74180. return this.disabledKeys.has(key) || !!(!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 || (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0) && _this_collection_getItem_props.isDisabled);
  74181. }
  74182. getFirstKey() {
  74183. let key = this.collection.getFirstKey();
  74184. return key != null && this.isDisabled(key) && (key = this.getNextKey(key)), key;
  74185. }
  74186. getLastKey() {
  74187. let key = this.collection.getLastKey();
  74188. return key != null && this.isDisabled(key) && (key = this.getPreviousKey(key)), key;
  74189. }
  74190. getKeyAbove(key) {
  74191. return this.tabDirection ? null : this.getPreviousKey(key);
  74192. }
  74193. getKeyBelow(key) {
  74194. return this.tabDirection ? null : this.getNextKey(key);
  74195. }
  74196. getNextKey(startKey) {
  74197. let key = startKey;
  74198. do
  74199. key = this.collection.getKeyAfter(key), key == null && (key = this.collection.getFirstKey());
  74200. while (key != null && this.isDisabled(key));
  74201. return key;
  74202. }
  74203. getPreviousKey(startKey) {
  74204. let key = startKey;
  74205. do
  74206. key = this.collection.getKeyBefore(key), key == null && (key = this.collection.getLastKey());
  74207. while (key != null && this.isDisabled(key));
  74208. return key;
  74209. }
  74210. constructor(collection, direction, orientation, disabledKeys = /* @__PURE__ */ new Set()) {
  74211. this.collection = collection, this.flipDirection = direction === "rtl" && orientation === "horizontal", this.disabledKeys = disabledKeys, this.tabDirection = orientation === "horizontal";
  74212. }
  74213. };
  74214. // ../../node_modules/@react-aria/tabs/dist/useTabList.mjs
  74215. var import_react174 = __toESM(require_react(), 1);
  74216. function $58d314389b21fa3f$export$773e389e644c5874(props, state3, ref) {
  74217. let { orientation = "horizontal", keyboardActivation = "automatic" } = props, { collection, selectionManager: manager, disabledKeys } = state3, { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), delegate = (0, import_react174.useMemo)(() => new $bfc6f2d60b8a4c40$export$15010ca3c1abe90b(collection, direction, orientation, disabledKeys), [
  74218. collection,
  74219. disabledKeys,
  74220. orientation,
  74221. direction
  74222. ]), { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
  74223. ref,
  74224. selectionManager: manager,
  74225. keyboardDelegate: delegate,
  74226. selectOnFocus: keyboardActivation === "automatic",
  74227. disallowEmptySelection: !0,
  74228. scrollRef: ref,
  74229. linkBehavior: "selection"
  74230. }), tabsId = $bdb11010cef70236$export$f680877a34711e37();
  74231. $99b62ae3ff97ec45$export$c5f62239608282b6.set(state3, tabsId);
  74232. let tabListLabelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
  74233. ...props,
  74234. id: tabsId
  74235. });
  74236. return {
  74237. tabListProps: {
  74238. ...$3ef42575df84b30b$export$9d1611c77c2fe928(collectionProps, tabListLabelProps),
  74239. role: "tablist",
  74240. "aria-orientation": orientation,
  74241. tabIndex: void 0
  74242. }
  74243. };
  74244. }
  74245. // src/components/components/Tabs/TabList.tsx
  74246. init_theming();
  74247. var StyledTabButton2 = styled.button(
  74248. {
  74249. whiteSpace: "normal",
  74250. display: "inline-flex",
  74251. overflow: "hidden",
  74252. verticalAlign: "top",
  74253. justifyContent: "center",
  74254. alignItems: "center",
  74255. textAlign: "center",
  74256. textDecoration: "none",
  74257. scrollSnapAlign: "start",
  74258. "&:empty": {
  74259. display: "none"
  74260. },
  74261. "&[hidden]": {
  74262. display: "none"
  74263. }
  74264. },
  74265. ({ theme: theme3 }) => ({
  74266. padding: "0 15px",
  74267. transition: "color 0.2s linear, border-bottom-color 0.2s linear",
  74268. height: 40,
  74269. lineHeight: "12px",
  74270. cursor: "pointer",
  74271. background: "transparent",
  74272. border: "0 solid transparent",
  74273. borderTop: "3px solid transparent",
  74274. borderBottom: "3px solid transparent",
  74275. fontWeight: "bold",
  74276. fontSize: 13,
  74277. "&:focus-visible": {
  74278. outline: "0 none",
  74279. boxShadow: `inset 0 0 0 2px ${theme3.barSelectedColor}`
  74280. }
  74281. }),
  74282. ({ isSelected, theme: theme3 }) => isSelected ? {
  74283. color: theme3.barSelectedColor,
  74284. borderBottomColor: theme3.barSelectedColor
  74285. } : {
  74286. color: theme3.barTextColor,
  74287. borderBottomColor: "transparent",
  74288. "&:hover": {
  74289. color: theme3.barHoverColor
  74290. }
  74291. }
  74292. ), TabListContainer = styled.div({
  74293. display: "flex",
  74294. alignItems: "center",
  74295. flexShrink: 0,
  74296. position: "relative",
  74297. overflow: "hidden"
  74298. }), ScrollContainer = styled.div({
  74299. display: "flex",
  74300. overflowX: "auto",
  74301. scrollbarWidth: "none",
  74302. msOverflowStyle: "none",
  74303. WebkitScrollbar: "none",
  74304. scrollSnapType: "x mandatory",
  74305. flex: 1,
  74306. "&::-webkit-scrollbar": {
  74307. display: "none"
  74308. }
  74309. }), StyledTabList = styled.div({
  74310. display: "flex",
  74311. flexShrink: 0
  74312. }), SCROLL_BUTTON_WIDTH = 28, ScrollButtonContainer = styled.div(({ $showStartBorder, $showEndBorder, theme: theme3 }) => ({
  74313. flexShrink: 0,
  74314. display: "flex",
  74315. alignItems: "center",
  74316. justifyContent: "center",
  74317. padding: 6,
  74318. boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme3.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme3.appBorderColor}` : "none"
  74319. })), ScrollButton = styled(Button)({
  74320. flexShrink: 0,
  74321. paddingInline: 0,
  74322. width: 16
  74323. }), TabButton2 = ({ item, state: state3 }) => {
  74324. let { rendered } = item, tabRef = import_react175.default.useRef(null), typedState = state3, { tabProps, isDisabled: isDisabled3, isPressed, isSelected } = $0175d55c2a017ebc$export$fdf4756d5b8ef90a(item, typedState, tabRef);
  74325. return import_react175.default.createElement(
  74326. StyledTabButton2,
  74327. {
  74328. ...tabProps,
  74329. isDisabled: isDisabled3,
  74330. isPressed,
  74331. isSelected,
  74332. className: `tabbutton ${isSelected ? "tabbutton-active" : ""}`,
  74333. ref: tabRef
  74334. },
  74335. rendered
  74336. );
  74337. }, TabList = ({ state: state3, ...rest }) => {
  74338. let containerRef = (0, import_react175.useRef)(null), scrollContainerRef = (0, import_react175.useRef)(null), tabListRef = (0, import_react175.useRef)(null), { tabListProps } = $58d314389b21fa3f$export$773e389e644c5874(
  74339. { orientation: "horizontal" },
  74340. state3,
  74341. tabListRef
  74342. ), [showScrollButtons, setShowScrollButtons] = (0, import_react175.useState)(!1), [canScrollLeft, setCanScrollLeft] = (0, import_react175.useState)(!1), [canScrollRight, setCanScrollRight] = (0, import_react175.useState)(!1), updateScrollState = (0, import_react175.useCallback)(() => {
  74343. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74344. if (!scrollContainer || !container)
  74345. return;
  74346. let { scrollLeft, scrollWidth, clientWidth } = scrollContainer, availableWidth = container.clientWidth - (showScrollButtons ? SCROLL_BUTTON_WIDTH * 2 : 0), needsScrolling = scrollWidth > availableWidth;
  74347. setShowScrollButtons(needsScrolling), needsScrolling ? (setCanScrollLeft(scrollLeft > 0), setCanScrollRight(scrollLeft < scrollWidth - clientWidth)) : (setCanScrollLeft(!1), setCanScrollRight(!1));
  74348. }, [showScrollButtons]), throttledUpdateScrollState = (0, import_react175.useCallback)(() => {
  74349. updateScrollState();
  74350. }, [updateScrollState]);
  74351. (0, import_react175.useEffect)(() => {
  74352. let scrollContainer = scrollContainerRef.current;
  74353. if (!scrollContainer || typeof window > "u")
  74354. return;
  74355. scrollContainer.addEventListener("scroll", throttledUpdateScrollState, { passive: !0 });
  74356. let resizeObserver = null;
  74357. typeof ResizeObserver < "u" && (resizeObserver = new ResizeObserver(throttledUpdateScrollState), resizeObserver.observe(scrollContainer));
  74358. let timeoutId = setTimeout(throttledUpdateScrollState, 0);
  74359. return () => {
  74360. clearTimeout(timeoutId), scrollContainer.removeEventListener("scroll", throttledUpdateScrollState), resizeObserver && resizeObserver.disconnect();
  74361. };
  74362. }, [throttledUpdateScrollState]);
  74363. let scroll = (0, import_react175.useCallback)((direction) => {
  74364. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74365. if (!scrollContainer || !container || typeof window > "u")
  74366. return;
  74367. let availableWidth = container.clientWidth - SCROLL_BUTTON_WIDTH * 2, scrollDistance = direction === "backward" ? -availableWidth : availableWidth;
  74368. typeof scrollContainer.scrollBy == "function" ? scrollContainer.scrollBy({ left: scrollDistance, behavior: "smooth" }) : scrollContainer.scrollLeft += scrollDistance;
  74369. }, []), scrollBackward = (0, import_react175.useCallback)(() => scroll("backward"), [scroll]), scrollForward = (0, import_react175.useCallback)(() => scroll("forward"), [scroll]);
  74370. return import_react175.default.createElement(TabListContainer, { ...rest, ref: containerRef, "data-show-scroll-buttons": showScrollButtons }, showScrollButtons && import_react175.default.createElement(ScrollButtonContainer, { $showEndBorder: canScrollLeft }, import_react175.default.createElement(
  74371. ScrollButton,
  74372. {
  74373. variant: "ghost",
  74374. padding: "small",
  74375. size: "small",
  74376. ariaLabel: "Scroll backward",
  74377. disabled: !canScrollLeft,
  74378. onClick: scrollBackward,
  74379. tabIndex: -1
  74380. },
  74381. import_react175.default.createElement(ChevronSmallLeftIcon, null)
  74382. )), import_react175.default.createElement(ScrollContainer, { ref: scrollContainerRef }, import_react175.default.createElement(StyledTabList, { ref: tabListRef, ...tabListProps }, [...state3.collection].map((item) => import_react175.default.createElement(TabButton2, { key: item.key, item, state: state3 })))), showScrollButtons && import_react175.default.createElement(ScrollButtonContainer, { $showStartBorder: canScrollRight }, import_react175.default.createElement(
  74383. ScrollButton,
  74384. {
  74385. variant: "ghost",
  74386. padding: "small",
  74387. size: "small",
  74388. ariaLabel: "Scroll forward",
  74389. disabled: !canScrollRight,
  74390. onClick: scrollForward,
  74391. tabIndex: -1
  74392. },
  74393. import_react175.default.createElement(ChevronSmallRightIcon, null)
  74394. )));
  74395. };
  74396. // src/components/components/Tabs/TabPanel.tsx
  74397. var import_react176 = __toESM(require_react(), 1);
  74398. init_theming();
  74399. init_ScrollArea();
  74400. var Panel = styled.div({
  74401. overflowY: "hidden",
  74402. height: "100%"
  74403. }), TabPanel = ({
  74404. hasScrollbar = !0,
  74405. renderAllChildren = !1,
  74406. state: state3
  74407. }) => {
  74408. let ref = (0, import_react176.useRef)(null), typedState = state3, { tabPanelProps } = $34bce698202e07cb$export$fae0121b5afe572d(typedState.selectedItem ?? {}, typedState, ref);
  74409. return (renderAllChildren ? [...typedState.collection] : [typedState.selectedItem]).filter((item) => !!item).map((item) => {
  74410. let isSelected = typedState.selectedKey === item.key;
  74411. return import_react176.default.createElement(
  74412. Panel,
  74413. {
  74414. key: item.key,
  74415. ref: isSelected ? ref : void 0,
  74416. ...isSelected ? tabPanelProps : {},
  74417. id: isSelected ? `${tabPanelProps.id}`.replace(/null$/, `${item.key}`) : void 0,
  74418. hidden: isSelected ? void 0 : !0
  74419. },
  74420. hasScrollbar ? import_react176.default.createElement(ScrollArea2, { vertical: !0 }, item.props.children) : item.props.children
  74421. );
  74422. });
  74423. };
  74424. // src/components/components/Tabs/TabsView.tsx
  74425. var import_react180 = __toESM(require_react(), 1);
  74426. // ../../node_modules/@react-stately/list/dist/ListCollection.mjs
  74427. var $a02d57049d202695$export$d085fb9e920b5ca7 = class {
  74428. *[Symbol.iterator]() {
  74429. yield* this.iterable;
  74430. }
  74431. get size() {
  74432. return this._size;
  74433. }
  74434. getKeys() {
  74435. return this.keyMap.keys();
  74436. }
  74437. getKeyBefore(key) {
  74438. let node2 = this.keyMap.get(key);
  74439. var _node_prevKey;
  74440. return node2 && (_node_prevKey = node2.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null;
  74441. }
  74442. getKeyAfter(key) {
  74443. let node2 = this.keyMap.get(key);
  74444. var _node_nextKey;
  74445. return node2 && (_node_nextKey = node2.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null;
  74446. }
  74447. getFirstKey() {
  74448. return this.firstKey;
  74449. }
  74450. getLastKey() {
  74451. return this.lastKey;
  74452. }
  74453. getItem(key) {
  74454. var _this_keyMap_get;
  74455. return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
  74456. }
  74457. at(idx) {
  74458. let keys3 = [
  74459. ...this.getKeys()
  74460. ];
  74461. return this.getItem(keys3[idx]);
  74462. }
  74463. getChildren(key) {
  74464. let node2 = this.keyMap.get(key);
  74465. return node2?.childNodes || [];
  74466. }
  74467. constructor(nodes) {
  74468. this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = nodes;
  74469. let visit = (node2) => {
  74470. if (this.keyMap.set(node2.key, node2), node2.childNodes && node2.type === "section") for (let child of node2.childNodes) visit(child);
  74471. };
  74472. for (let node2 of nodes) visit(node2);
  74473. let last2 = null, index4 = 0, size = 0;
  74474. for (let [key, node2] of this.keyMap)
  74475. last2 ? (last2.nextKey = key, node2.prevKey = last2.key) : (this.firstKey = key, node2.prevKey = void 0), node2.type === "item" && (node2.index = index4++), (node2.type === "section" || node2.type === "item") && size++, last2 = node2, last2.nextKey = void 0;
  74476. this._size = size;
  74477. var _last_key;
  74478. this.lastKey = (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null;
  74479. }
  74480. };
  74481. // ../../node_modules/@react-stately/list/dist/useListState.mjs
  74482. var import_react177 = __toESM(require_react(), 1);
  74483. function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
  74484. let { filter, layoutDelegate } = props, selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props), disabledKeys = (0, import_react177.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [
  74485. props.disabledKeys
  74486. ]), factory = (0, import_react177.useCallback)((nodes) => filter ? new $a02d57049d202695$export$d085fb9e920b5ca7(filter(nodes)) : new $a02d57049d202695$export$d085fb9e920b5ca7(nodes), [
  74487. filter
  74488. ]), context = (0, import_react177.useMemo)(() => ({
  74489. suppressTextValueWarning: props.suppressTextValueWarning
  74490. }), [
  74491. props.suppressTextValueWarning
  74492. ]), collection = $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context), selectionManager = (0, import_react177.useMemo)(() => new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, selectionState, {
  74493. layoutDelegate
  74494. }), [
  74495. collection,
  74496. selectionState,
  74497. layoutDelegate
  74498. ]);
  74499. return $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager), {
  74500. collection,
  74501. disabledKeys,
  74502. selectionManager
  74503. };
  74504. }
  74505. function $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager) {
  74506. let cachedCollection = (0, import_react177.useRef)(null);
  74507. (0, import_react177.useEffect)(() => {
  74508. if (selectionManager.focusedKey != null && !collection.getItem(selectionManager.focusedKey) && cachedCollection.current) {
  74509. let startItem = cachedCollection.current.getItem(selectionManager.focusedKey), cachedItemNodes = [
  74510. ...cachedCollection.current.getKeys()
  74511. ].map((key) => {
  74512. let itemNode = cachedCollection.current.getItem(key);
  74513. return itemNode?.type === "item" ? itemNode : null;
  74514. }).filter((node2) => node2 !== null), itemNodes = [
  74515. ...collection.getKeys()
  74516. ].map((key) => {
  74517. let itemNode = collection.getItem(key);
  74518. return itemNode?.type === "item" ? itemNode : null;
  74519. }).filter((node2) => node2 !== null);
  74520. var _cachedItemNodes_length, _itemNodes_length;
  74521. let diff2 = ((_cachedItemNodes_length = cachedItemNodes?.length) !== null && _cachedItemNodes_length !== void 0 ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes?.length) !== null && _itemNodes_length !== void 0 ? _itemNodes_length : 0);
  74522. var _startItem_index, _startItem_index1, _itemNodes_length1;
  74523. let index4 = Math.min(diff2 > 1 ? Math.max(((_startItem_index = startItem?.index) !== null && _startItem_index !== void 0 ? _startItem_index : 0) - diff2 + 1, 0) : (_startItem_index1 = startItem?.index) !== null && _startItem_index1 !== void 0 ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes?.length) !== null && _itemNodes_length1 !== void 0 ? _itemNodes_length1 : 0) - 1), newNode = null, isReverseSearching = !1;
  74524. for (; index4 >= 0; ) {
  74525. if (!selectionManager.isDisabled(itemNodes[index4].key)) {
  74526. newNode = itemNodes[index4];
  74527. break;
  74528. }
  74529. if (index4 < itemNodes.length - 1 && !isReverseSearching) index4++;
  74530. else {
  74531. isReverseSearching = !0;
  74532. var _startItem_index2, _startItem_index3;
  74533. index4 > ((_startItem_index2 = startItem?.index) !== null && _startItem_index2 !== void 0 ? _startItem_index2 : 0) && (index4 = (_startItem_index3 = startItem?.index) !== null && _startItem_index3 !== void 0 ? _startItem_index3 : 0), index4--;
  74534. }
  74535. }
  74536. selectionManager.setFocusedKey(newNode ? newNode.key : null);
  74537. }
  74538. cachedCollection.current = collection;
  74539. }, [
  74540. collection,
  74541. selectionManager
  74542. ]);
  74543. }
  74544. // ../../node_modules/@react-stately/list/dist/useSingleSelectListState.mjs
  74545. var import_react178 = __toESM(require_react(), 1);
  74546. function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
  74547. var _props_defaultSelectedKey;
  74548. let [selectedKey, setSelectedKey] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange), selectedKeys = (0, import_react178.useMemo)(() => selectedKey != null ? [
  74549. selectedKey
  74550. ] : [], [
  74551. selectedKey
  74552. ]), { collection, disabledKeys, selectionManager } = $e72dd72e1c76a225$export$2f645645f7bca764({
  74553. ...props,
  74554. selectionMode: "single",
  74555. disallowEmptySelection: !0,
  74556. allowDuplicateSelectionEvents: !0,
  74557. selectedKeys,
  74558. onSelectionChange: (keys3) => {
  74559. if (keys3 === "all") return;
  74560. var _keys_values_next_value;
  74561. let key = (_keys_values_next_value = keys3.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
  74562. key === selectedKey && props.onSelectionChange && props.onSelectionChange(key), setSelectedKey(key);
  74563. }
  74564. }), selectedItem = selectedKey != null ? collection.getItem(selectedKey) : null;
  74565. return {
  74566. collection,
  74567. disabledKeys,
  74568. selectionManager,
  74569. selectedKey,
  74570. setSelectedKey,
  74571. selectedItem
  74572. };
  74573. }
  74574. // ../../node_modules/@react-stately/tabs/dist/useTabListState.mjs
  74575. var import_react179 = __toESM(require_react(), 1);
  74576. function $76f919a04c5a7d14$export$4ba071daf4e486(props) {
  74577. var _props_defaultSelectedKey, _ref;
  74578. let state3 = $a0d645289fe9b86b$export$e7f05e985daf4b5f({
  74579. ...props,
  74580. onSelectionChange: props.onSelectionChange ? (key) => {
  74581. var _props_onSelectionChange;
  74582. key != null && ((_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 || _props_onSelectionChange.call(props, key));
  74583. } : void 0,
  74584. suppressTextValueWarning: !0,
  74585. defaultSelectedKey: (_ref = (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : $76f919a04c5a7d14$var$findDefaultSelectedKey(props.collection, props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set())) !== null && _ref !== void 0 ? _ref : void 0
  74586. }), { selectionManager, collection, selectedKey: currentSelectedKey } = state3, lastSelectedKey = (0, import_react179.useRef)(currentSelectedKey);
  74587. return (0, import_react179.useEffect)(() => {
  74588. let selectedKey = currentSelectedKey;
  74589. props.selectedKey == null && (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey)) && (selectedKey = $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, state3.disabledKeys), selectedKey != null && selectionManager.setSelectedKeys([
  74590. selectedKey
  74591. ])), (selectedKey != null && selectionManager.focusedKey == null || !selectionManager.isFocused && selectedKey !== lastSelectedKey.current) && selectionManager.setFocusedKey(selectedKey), lastSelectedKey.current = selectedKey;
  74592. }), {
  74593. ...state3,
  74594. isDisabled: props.isDisabled || !1
  74595. };
  74596. }
  74597. function $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, disabledKeys) {
  74598. let selectedKey = null;
  74599. if (collection) {
  74600. var _collection_getItem_props, _collection_getItem, _collection_getItem_props1, _collection_getItem1;
  74601. for (selectedKey = collection.getFirstKey(); selectedKey != null && (disabledKeys.has(selectedKey) || !((_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 || (_collection_getItem_props = _collection_getItem.props) === null || _collection_getItem_props === void 0) && _collection_getItem_props.isDisabled) && selectedKey !== collection.getLastKey(); ) selectedKey = collection.getKeyAfter(selectedKey);
  74602. selectedKey != null && (disabledKeys.has(selectedKey) || !((_collection_getItem1 = collection.getItem(selectedKey)) === null || _collection_getItem1 === void 0 || (_collection_getItem_props1 = _collection_getItem1.props) === null || _collection_getItem_props1 === void 0) && _collection_getItem_props1.isDisabled) && selectedKey === collection.getLastKey() && (selectedKey = collection.getFirstKey());
  74603. }
  74604. return selectedKey;
  74605. }
  74606. // src/components/components/Tabs/TabsView.tsx
  74607. init_theming();
  74608. var useTabsState = ({
  74609. defaultSelected,
  74610. onSelectionChange,
  74611. selected,
  74612. tabs
  74613. }) => $76f919a04c5a7d14$export$4ba071daf4e486({
  74614. children: tabs.map(({ children: Children10, id, "aria-label": ariaLabel, title: Title6 }) => import_react180.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: id, "aria-label": ariaLabel, title: typeof Title6 == "function" ? import_react180.default.createElement(Title6, null) : Title6 }, typeof Children10 == "function" ? import_react180.default.createElement(Children10, null) : Children10)),
  74615. disabledKeys: tabs.filter(({ isDisabled: isDisabled3 }) => isDisabled3).map(({ id }) => id),
  74616. defaultSelectedKey: defaultSelected,
  74617. onSelectionChange: (key) => onSelectionChange?.(`${key}`),
  74618. selectedKey: selected
  74619. }), Container5 = styled.div({
  74620. display: "flex",
  74621. flexDirection: "column",
  74622. height: "100%"
  74623. }), FlexTabPanel = styled(TabPanel)(() => ({
  74624. flex: 1
  74625. })), FlexTabList = styled(TabList)(({ $simulatedGap }) => ({
  74626. flex: "1 1 0%",
  74627. '&[data-show-scroll-buttons="true"]': { marginInlineEnd: $simulatedGap }
  74628. })), TabsView = ({
  74629. backgroundColor,
  74630. barInnerStyle,
  74631. defaultSelected,
  74632. emptyState,
  74633. onSelectionChange,
  74634. panelProps = {},
  74635. selected,
  74636. showToolsWhenEmpty,
  74637. tabs,
  74638. tools,
  74639. ...props
  74640. }) => {
  74641. let state3 = useTabsState({
  74642. defaultSelected,
  74643. onSelectionChange,
  74644. selected,
  74645. tabs
  74646. }), EmptyContent = emptyState ?? import_react180.default.createElement(EmptyTabContent, { title: "Nothing found" }), hasContent = tabs.length > 0;
  74647. return !showToolsWhenEmpty && !hasContent ? EmptyContent : import_react180.default.createElement(Container5, { ...props }, import_react180.default.createElement(
  74648. Bar,
  74649. {
  74650. scrollable: !1,
  74651. border: !0,
  74652. backgroundColor,
  74653. innerStyle: {
  74654. display: "flex",
  74655. justifyContent: "space-between",
  74656. paddingInlineStart: 0,
  74657. paddingInlineEnd: 10,
  74658. // A11y: the tools must be before the tab list in the DOM for correct tab order.
  74659. // This lets us control order without adding a wrapper div, leading to better flex
  74660. // behavior on tools for our callees (e.g. containerType: 'inline-size' in a11y-addon).
  74661. "> *:not(:last-child)": {
  74662. order: 2
  74663. },
  74664. "> *": {
  74665. flexShrink: 0
  74666. },
  74667. ...barInnerStyle,
  74668. gap: 0
  74669. }
  74670. },
  74671. tools,
  74672. hasContent ? import_react180.default.createElement(FlexTabList, { state: state3, $simulatedGap: barInnerStyle?.gap ?? 6 }) : import_react180.default.createElement("div", null)
  74673. ), hasContent ? import_react180.default.createElement(FlexTabPanel, { state: state3, ...panelProps }) : EmptyContent);
  74674. };
  74675. // src/components/components/Tabs/StatelessTabList.tsx
  74676. var import_react182 = __toESM(require_react(), 1);
  74677. // ../../node_modules/react-aria-components/dist/Tabs.mjs
  74678. var import_react181 = __toESM(require_react(), 1), $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f = (0, import_react181.createContext)(null), $5e8ad37a45e1c704$export$364712098d2aa57c = (0, import_react181.createContext)(null), $5e8ad37a45e1c704$export$b2539bed5023c21c = (0, import_react181.forwardRef)(function(props, ref) {
  74679. [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f);
  74680. let { children, orientation = "horizontal" } = props;
  74681. return children = (0, import_react181.useMemo)(() => typeof children == "function" ? children({
  74682. orientation,
  74683. defaultChildren: null
  74684. }) : children, [
  74685. children,
  74686. orientation
  74687. ]), import_react181.default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
  74688. content: children
  74689. }, (collection) => import_react181.default.createElement($5e8ad37a45e1c704$var$TabsInner, {
  74690. props,
  74691. collection,
  74692. tabsRef: ref
  74693. }));
  74694. });
  74695. function $5e8ad37a45e1c704$var$TabsInner({ props, tabsRef: ref, collection }) {
  74696. let { orientation = "horizontal" } = props, state3 = $76f919a04c5a7d14$export$4ba071daf4e486({
  74697. ...props,
  74698. collection,
  74699. children: void 0
  74700. }), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({
  74701. within: !0
  74702. }), values = (0, import_react181.useMemo)(() => ({
  74703. orientation,
  74704. isFocusWithin: isFocused,
  74705. isFocusVisible
  74706. }), [
  74707. orientation,
  74708. isFocused,
  74709. isFocusVisible
  74710. ]), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74711. ...props,
  74712. defaultClassName: "react-aria-Tabs",
  74713. values
  74714. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74715. global: !0
  74716. });
  74717. return import_react181.default.createElement("div", {
  74718. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, focusProps),
  74719. ref,
  74720. slot: props.slot || void 0,
  74721. "data-focused": isFocused || void 0,
  74722. "data-orientation": orientation,
  74723. "data-focus-visible": isFocusVisible || void 0,
  74724. "data-disabled": state3.isDisabled || void 0
  74725. }, import_react181.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  74726. values: [
  74727. [
  74728. $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f,
  74729. props
  74730. ],
  74731. [
  74732. $5e8ad37a45e1c704$export$364712098d2aa57c,
  74733. state3
  74734. ]
  74735. ]
  74736. }, renderProps.children));
  74737. }
  74738. var $5e8ad37a45e1c704$export$e51a686c67fdaa2d = (0, import_react181.forwardRef)(function(props, ref) {
  74739. return (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c) ? import_react181.default.createElement($5e8ad37a45e1c704$var$TabListInner, {
  74740. props,
  74741. forwardedRef: ref
  74742. }) : import_react181.default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props);
  74743. });
  74744. function $5e8ad37a45e1c704$var$TabListInner({ props, forwardedRef: ref }) {
  74745. let state3 = (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), { CollectionRoot } = (0, import_react181.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), { orientation = "horizontal", keyboardActivation = "automatic" } = $64fa3d84918910a7$export$fabf2dc03a41866e($5e8ad37a45e1c704$export$cfa7aa87c26e7d1f), objectRef = $df56164dff5785e2$export$4338b53315abf666(ref), { tabListProps } = $58d314389b21fa3f$export$773e389e644c5874({
  74746. ...props,
  74747. orientation,
  74748. keyboardActivation
  74749. }, state3, objectRef), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74750. ...props,
  74751. children: null,
  74752. defaultClassName: "react-aria-TabList",
  74753. values: {
  74754. orientation,
  74755. state: state3
  74756. }
  74757. }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74758. global: !0
  74759. });
  74760. return delete DOMProps.id, import_react181.default.createElement("div", {
  74761. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tabListProps),
  74762. ref: objectRef,
  74763. "data-orientation": orientation || void 0
  74764. }, import_react181.default.createElement(CollectionRoot, {
  74765. collection: state3.collection,
  74766. persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state3.selectionManager.focusedKey)
  74767. }));
  74768. }
  74769. var $5e8ad37a45e1c704$var$TabItemNode = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
  74770. };
  74771. $5e8ad37a45e1c704$var$TabItemNode.type = "item";
  74772. var $5e8ad37a45e1c704$export$3e41faf802a29e71 = $e1995378a142960e$export$18af5c7a9e9b3664($5e8ad37a45e1c704$var$TabItemNode, (props, forwardedRef, item) => {
  74773. let state3 = (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), { tabProps, isSelected, isDisabled: isDisabled3, isPressed } = $0175d55c2a017ebc$export$fdf4756d5b8ef90a({
  74774. key: item.key,
  74775. ...props
  74776. }, state3, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
  74777. isDisabled: isDisabled3,
  74778. onHoverStart: props.onHoverStart,
  74779. onHoverEnd: props.onHoverEnd,
  74780. onHoverChange: props.onHoverChange
  74781. }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74782. ...props,
  74783. id: void 0,
  74784. children: item.rendered,
  74785. defaultClassName: "react-aria-Tab",
  74786. values: {
  74787. isSelected,
  74788. isDisabled: isDisabled3,
  74789. isFocused,
  74790. isFocusVisible,
  74791. isPressed,
  74792. isHovered
  74793. }
  74794. }), ElementType = item.props.href ? "a" : "div", DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
  74795. global: !0
  74796. });
  74797. return delete DOMProps.id, delete DOMProps.onClick, import_react181.default.createElement(ElementType, {
  74798. ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tabProps, focusProps, hoverProps),
  74799. ref,
  74800. "data-selected": isSelected || void 0,
  74801. "data-disabled": isDisabled3 || void 0,
  74802. "data-focused": isFocused || void 0,
  74803. "data-focus-visible": isFocusVisible || void 0,
  74804. "data-pressed": isPressed || void 0,
  74805. "data-hovered": isHovered || void 0
  74806. }, renderProps.children);
  74807. }), $5e8ad37a45e1c704$export$3d96ec278d3efce4 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, forwardedRef) {
  74808. let state3 = (0, import_react181.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), { id, ...otherProps } = props, { tabPanelProps } = $34bce698202e07cb$export$fae0121b5afe572d(props, state3, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(), isSelected = state3.selectedKey === props.id, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
  74809. ...props,
  74810. defaultClassName: "react-aria-TabPanel",
  74811. values: {
  74812. isFocused,
  74813. isFocusVisible,
  74814. // @ts-ignore - compatibility with React < 19
  74815. isInert: $cdc5a6778b766db2$export$a9d04c5684123369(!isSelected),
  74816. state: state3
  74817. }
  74818. });
  74819. if (!isSelected && !props.shouldForceMount) return null;
  74820. let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(otherProps, {
  74821. global: !0
  74822. });
  74823. delete DOMProps.id;
  74824. let domProps = isSelected ? $3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, tabPanelProps, focusProps, renderProps) : renderProps;
  74825. return import_react181.default.createElement("div", {
  74826. ...domProps,
  74827. ref,
  74828. "data-focused": isFocused || void 0,
  74829. "data-focus-visible": isFocusVisible || void 0,
  74830. // @ts-ignore
  74831. inert: $cdc5a6778b766db2$export$a9d04c5684123369(!isSelected || props.inert),
  74832. "data-inert": isSelected ? void 0 : "true"
  74833. }, import_react181.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
  74834. values: [
  74835. [
  74836. $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f,
  74837. null
  74838. ],
  74839. [
  74840. $5e8ad37a45e1c704$export$364712098d2aa57c,
  74841. null
  74842. ]
  74843. ]
  74844. }, import_react181.default.createElement($7135fc7d473fd974$export$4feb769f8ddf26c5.Provider, {
  74845. value: $7135fc7d473fd974$export$a164736487e3f0ae
  74846. }, renderProps.children)));
  74847. });
  74848. // src/components/components/Tabs/StatelessTabList.tsx
  74849. init_theming();
  74850. var Root2 = styled.div({
  74851. display: "flex",
  74852. alignItems: "center",
  74853. flexShrink: 0,
  74854. position: "relative",
  74855. overflow: "hidden"
  74856. }), ScrollContainer2 = styled.div({
  74857. display: "flex",
  74858. overflowX: "auto",
  74859. scrollbarWidth: "none",
  74860. msOverflowStyle: "none",
  74861. WebkitScrollbar: "none",
  74862. scrollSnapType: "x mandatory",
  74863. flex: 1,
  74864. "&::-webkit-scrollbar": {
  74865. display: "none"
  74866. }
  74867. }), StyledTabList2 = styled($5e8ad37a45e1c704$export$e51a686c67fdaa2d)({
  74868. display: "flex",
  74869. flexShrink: 0
  74870. }), SCROLL_BUTTON_WIDTH2 = 28, ScrollButtonContainer2 = styled.div(({ $showStartBorder, $showEndBorder, theme: theme3 }) => ({
  74871. flexShrink: 0,
  74872. display: "flex",
  74873. alignItems: "center",
  74874. justifyContent: "center",
  74875. padding: 6,
  74876. boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme3.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme3.appBorderColor}` : "none"
  74877. })), ScrollButton2 = styled(Button)({
  74878. flexShrink: 0,
  74879. paddingInline: 0,
  74880. width: 16
  74881. }), StatelessTabList = ({ children, ...rest }) => {
  74882. let containerRef = (0, import_react182.useRef)(null), scrollContainerRef = (0, import_react182.useRef)(null), [showScrollButtons, setShowScrollButtons] = (0, import_react182.useState)(!1), [canScrollLeft, setCanScrollLeft] = (0, import_react182.useState)(!1), [canScrollRight, setCanScrollRight] = (0, import_react182.useState)(!1), updateScrollState = (0, import_react182.useCallback)(() => {
  74883. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74884. if (!scrollContainer || !container)
  74885. return;
  74886. let { scrollLeft, scrollWidth, clientWidth } = scrollContainer, availableWidth = container.clientWidth - (showScrollButtons ? SCROLL_BUTTON_WIDTH2 * 2 : 0), needsScrolling = scrollWidth > availableWidth;
  74887. setShowScrollButtons(needsScrolling), needsScrolling ? (setCanScrollLeft(scrollLeft > 0), setCanScrollRight(scrollLeft < scrollWidth - clientWidth)) : (setCanScrollLeft(!1), setCanScrollRight(!1));
  74888. }, [showScrollButtons]), throttledUpdateScrollState = (0, import_react182.useCallback)(() => {
  74889. updateScrollState();
  74890. }, [updateScrollState]);
  74891. (0, import_react182.useEffect)(() => {
  74892. let scrollContainer = scrollContainerRef.current;
  74893. if (!scrollContainer || typeof window > "u")
  74894. return;
  74895. scrollContainer.addEventListener("scroll", throttledUpdateScrollState, { passive: !0 });
  74896. let resizeObserver = null;
  74897. typeof ResizeObserver < "u" && (resizeObserver = new ResizeObserver(throttledUpdateScrollState), resizeObserver.observe(scrollContainer));
  74898. let timeoutId = setTimeout(throttledUpdateScrollState, 0);
  74899. return () => {
  74900. clearTimeout(timeoutId), scrollContainer.removeEventListener("scroll", throttledUpdateScrollState), resizeObserver && resizeObserver.disconnect();
  74901. };
  74902. }, [throttledUpdateScrollState]);
  74903. let scroll = (0, import_react182.useCallback)((direction) => {
  74904. let scrollContainer = scrollContainerRef.current, container = containerRef.current;
  74905. if (!scrollContainer || !container || typeof window > "u")
  74906. return;
  74907. let availableWidth = container.clientWidth - SCROLL_BUTTON_WIDTH2 * 2, scrollDistance = direction === "backward" ? -availableWidth : availableWidth;
  74908. typeof scrollContainer.scrollBy == "function" ? scrollContainer.scrollBy({ left: scrollDistance, behavior: "smooth" }) : scrollContainer.scrollLeft += scrollDistance;
  74909. }, []), scrollBackward = (0, import_react182.useCallback)(() => scroll("backward"), [scroll]), scrollForward = (0, import_react182.useCallback)(() => scroll("forward"), [scroll]);
  74910. return import_react182.default.createElement(Root2, { ref: containerRef, className: `tablist ${showScrollButtons ? "tablist-has-scroll" : ""}` }, showScrollButtons && import_react182.default.createElement(ScrollButtonContainer2, { $showEndBorder: canScrollLeft }, import_react182.default.createElement(
  74911. ScrollButton2,
  74912. {
  74913. variant: "ghost",
  74914. padding: "small",
  74915. size: "small",
  74916. ariaLabel: "Scroll backward",
  74917. disabled: !canScrollLeft,
  74918. onClick: scrollBackward,
  74919. tabIndex: -1
  74920. },
  74921. import_react182.default.createElement(ChevronSmallLeftIcon, null)
  74922. )), import_react182.default.createElement(ScrollContainer2, { ref: scrollContainerRef }, import_react182.default.createElement(StyledTabList2, { ...rest }, children)), showScrollButtons && import_react182.default.createElement(ScrollButtonContainer2, { $showStartBorder: canScrollRight }, import_react182.default.createElement(
  74923. ScrollButton2,
  74924. {
  74925. variant: "ghost",
  74926. padding: "small",
  74927. size: "small",
  74928. ariaLabel: "Scroll forward",
  74929. disabled: !canScrollRight,
  74930. onClick: scrollForward,
  74931. tabIndex: -1
  74932. },
  74933. import_react182.default.createElement(ChevronSmallRightIcon, null)
  74934. )));
  74935. };
  74936. // src/components/components/Tabs/StatelessTabPanel.tsx
  74937. var import_react183 = __toESM(require_react(), 1);
  74938. init_theming();
  74939. init_ScrollArea();
  74940. var Root3 = styled($5e8ad37a45e1c704$export$3d96ec278d3efce4)({
  74941. overflowY: "hidden",
  74942. height: "100%",
  74943. display: "block",
  74944. '&[inert="true"]': { display: "none" }
  74945. }), StatelessTabPanel = ({
  74946. children,
  74947. hasScrollbar = !0,
  74948. name,
  74949. ...rest
  74950. }) => import_react183.default.createElement(Root3, { ...rest, shouldForceMount: !0, id: name }, hasScrollbar ? import_react183.default.createElement(ScrollArea2, { vertical: !0 }, children) : children);
  74951. // src/components/components/Tabs/StatelessTabsView.tsx
  74952. var import_react184 = __toESM(require_react(), 1);
  74953. init_theming();
  74954. var Container6 = styled($5e8ad37a45e1c704$export$b2539bed5023c21c)(({ $simulatedGap }) => ({
  74955. display: "flex",
  74956. flexDirection: "column",
  74957. height: "100%",
  74958. ".tablist": {
  74959. flex: "1 1 100%"
  74960. },
  74961. ".tablist.tablist-has-scroll": {
  74962. marginInlineEnd: $simulatedGap
  74963. },
  74964. "& > :not(:first-child)": { flex: 1 }
  74965. })), StatelessTabsView = ({
  74966. backgroundColor,
  74967. barInnerStyle,
  74968. children,
  74969. defaultSelected,
  74970. emptyState,
  74971. onSelectionChange,
  74972. selected,
  74973. showToolsWhenEmpty,
  74974. tools,
  74975. ...props
  74976. }) => {
  74977. let EmptyContent = emptyState ?? import_react184.default.createElement(EmptyTabContent, { title: "Nothing found" }), [tabListChild, ...tabPanelChildren] = import_react184.default.Children.toArray(children), hasContent = tabPanelChildren && tabPanelChildren.length > 0;
  74978. return !showToolsWhenEmpty && !hasContent ? EmptyContent : import_react184.default.createElement(
  74979. Container6,
  74980. {
  74981. ...props,
  74982. $simulatedGap: barInnerStyle?.gap ?? 6,
  74983. defaultSelectedKey: defaultSelected,
  74984. onSelectionChange: (k) => onSelectionChange?.(k ? `${k}` : ""),
  74985. selectedKey: selected
  74986. },
  74987. import_react184.default.createElement(
  74988. Bar,
  74989. {
  74990. scrollable: !1,
  74991. border: !0,
  74992. backgroundColor,
  74993. innerStyle: {
  74994. display: "flex",
  74995. justifyContent: "space-between",
  74996. paddingInlineStart: 0,
  74997. paddingInlineEnd: 10,
  74998. // A11y: the tools must be before the tab list in the DOM for correct tab order.
  74999. // This lets us control order without adding a wrapper div, leading to better flex
  75000. // behavior on tools for our callees (e.g. containerType: 'inline-size' in a11y-addon).
  75001. "> *:not(:last-child)": {
  75002. order: 2
  75003. },
  75004. "> *": {
  75005. flexShrink: 0
  75006. },
  75007. ...barInnerStyle,
  75008. gap: 0
  75009. }
  75010. },
  75011. tools,
  75012. hasContent ? tabListChild : import_react184.default.createElement("div", null)
  75013. ),
  75014. hasContent ? tabPanelChildren : EmptyContent
  75015. );
  75016. };
  75017. // src/components/components/Tabs/StatelessTab.tsx
  75018. var import_react185 = __toESM(require_react(), 1);
  75019. init_theming();
  75020. var StyledTab = styled($5e8ad37a45e1c704$export$3e41faf802a29e71)(({ theme: theme3 }) => ({
  75021. whiteSpace: "normal",
  75022. display: "inline-flex",
  75023. overflow: "hidden",
  75024. verticalAlign: "top",
  75025. justifyContent: "center",
  75026. alignItems: "center",
  75027. textAlign: "center",
  75028. textDecoration: "none",
  75029. scrollSnapAlign: "start",
  75030. "&:empty": {
  75031. display: "none"
  75032. },
  75033. "&[hidden]": {
  75034. display: "none"
  75035. },
  75036. padding: "0 15px",
  75037. transition: "color 0.2s linear, border-bottom-color 0.2s linear",
  75038. height: 40,
  75039. lineHeight: "12px",
  75040. cursor: "pointer",
  75041. background: "transparent",
  75042. border: "0 solid transparent",
  75043. borderTop: "3px solid transparent",
  75044. borderBottom: "3px solid transparent",
  75045. fontWeight: "bold",
  75046. fontSize: 13,
  75047. "&:focus-visible": {
  75048. outline: "0 none",
  75049. boxShadow: `inset 0 0 0 2px ${theme3.barSelectedColor}`
  75050. },
  75051. color: theme3.barTextColor,
  75052. borderBottomColor: "transparent",
  75053. "&:hover": {
  75054. color: theme3.barHoverColor
  75055. },
  75056. "&[data-selected]": {
  75057. color: theme3.barSelectedColor,
  75058. borderBottomColor: theme3.barSelectedColor
  75059. }
  75060. })), StatelessTab = ({ name, ...props }) => import_react185.default.createElement(StyledTab, { id: name, ...props });
  75061. // src/components/brand/StorybookLogo.tsx
  75062. var import_react186 = __toESM(require_react(), 1), StorybookLogo = ({ alt, ...props }) => import_react186.default.createElement("svg", { width: "200px", height: "40px", viewBox: "0 0 200 40", ...props, role: "img" }, alt ? import_react186.default.createElement("title", null, alt) : null, import_react186.default.createElement("defs", null, import_react186.default.createElement(
  75063. "path",
  75064. {
  75065. d: "M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",
  75066. id: "a"
  75067. }
  75068. )), import_react186.default.createElement("g", { fill: "none", fillRule: "evenodd" }, import_react186.default.createElement(
  75069. "path",
  75070. {
  75071. d: "M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",
  75072. fill: "currentColor"
  75073. }
  75074. ), import_react186.default.createElement("mask", { id: "b", fill: "#fff" }, import_react186.default.createElement("use", { xlinkHref: "#a" })), import_react186.default.createElement("use", { fill: "#FF4785", fillRule: "nonzero", xlinkHref: "#a" }), import_react186.default.createElement(
  75075. "path",
  75076. {
  75077. d: "M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",
  75078. fill: "#FFF",
  75079. fillRule: "nonzero",
  75080. mask: "url(#b)"
  75081. }
  75082. )));
  75083. // src/components/brand/StorybookIcon.tsx
  75084. var import_react187 = __toESM(require_react(), 1), StorybookIcon3 = (props) => import_react187.default.createElement("svg", { viewBox: "0 0 64 64", ...props }, import_react187.default.createElement("title", null, "Storybook icon"), import_react187.default.createElement("g", { id: "Artboard", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, import_react187.default.createElement(
  75085. "path",
  75086. {
  75087. d: "M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",
  75088. id: "path-1",
  75089. fill: "#FF4785",
  75090. fillRule: "nonzero"
  75091. }
  75092. ), import_react187.default.createElement(
  75093. "path",
  75094. {
  75095. d: "M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",
  75096. id: "path9_fill-path",
  75097. fill: "#FFFFFF",
  75098. fillRule: "nonzero"
  75099. }
  75100. ), import_react187.default.createElement(
  75101. "path",
  75102. {
  75103. d: "M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",
  75104. id: "Path",
  75105. fill: "#FFFFFF"
  75106. }
  75107. )));
  75108. // src/components/components/Loader/Loader.tsx
  75109. var import_react188 = __toESM(require_react(), 1);
  75110. init_polished_esm();
  75111. init_theming();
  75112. // src/components/components/shared/animation.ts
  75113. init_theming();
  75114. var rotate3602 = keyframes`
  75115. from {
  75116. transform: rotate(0deg);
  75117. }
  75118. to {
  75119. transform: rotate(360deg);
  75120. }
  75121. `;
  75122. // src/components/components/Loader/Loader.tsx
  75123. var LoaderWrapper = styled.div(({ size = 32 }) => ({
  75124. borderRadius: "50%",
  75125. cursor: "progress",
  75126. display: "inline-block",
  75127. overflow: "hidden",
  75128. position: "absolute",
  75129. transition: "all 200ms ease-out",
  75130. verticalAlign: "top",
  75131. top: "50%",
  75132. left: "50%",
  75133. marginTop: -(size / 2),
  75134. marginLeft: -(size / 2),
  75135. height: size,
  75136. width: size,
  75137. zIndex: 4,
  75138. borderWidth: 2,
  75139. borderStyle: "solid",
  75140. borderColor: "rgba(97, 97, 97, 0.29)",
  75141. borderTopColor: "rgb(100,100,100)",
  75142. animation: `${rotate3602} 0.7s linear infinite`,
  75143. mixBlendMode: "difference"
  75144. })), ProgressWrapper = styled.div({
  75145. position: "absolute",
  75146. display: "flex",
  75147. flexDirection: "column",
  75148. justifyContent: "center",
  75149. alignItems: "center",
  75150. width: "100%",
  75151. height: "100%"
  75152. }), ProgressTrack = styled.div(({ theme: theme3 }) => ({
  75153. position: "relative",
  75154. width: "80%",
  75155. marginBottom: "0.75rem",
  75156. maxWidth: 300,
  75157. height: 5,
  75158. borderRadius: 5,
  75159. background: curriedTransparentize$1(0.8, theme3.color.secondary),
  75160. overflow: "hidden",
  75161. cursor: "progress"
  75162. })), ProgressBar2 = styled.div(({ theme: theme3 }) => ({
  75163. position: "absolute",
  75164. top: 0,
  75165. left: 0,
  75166. height: "100%",
  75167. background: theme3.color.secondary
  75168. })), ProgressMessage = styled.div(({ theme: theme3 }) => ({
  75169. minHeight: "2em",
  75170. fontSize: `${theme3.typography.size.s1}px`,
  75171. color: theme3.textMutedColor
  75172. })), ErrorIcon = styled(LightningOffIcon)(({ theme: theme3 }) => ({
  75173. width: 20,
  75174. height: 20,
  75175. marginBottom: "0.5rem",
  75176. color: theme3.textMutedColor
  75177. })), ellipsis = keyframes`
  75178. from { content: "..." }
  75179. 33% { content: "." }
  75180. 66% { content: ".." }
  75181. to { content: "..." }
  75182. `, Ellipsis = styled.span({
  75183. "&::after": {
  75184. content: "'...'",
  75185. animation: `${ellipsis} 1s linear infinite`,
  75186. animationDelay: "1s",
  75187. display: "inline-block",
  75188. width: "1em",
  75189. height: "auto"
  75190. }
  75191. }), Loader = ({ progress, error, size, ...props }) => {
  75192. if (error)
  75193. return import_react188.default.createElement(ProgressWrapper, { "aria-label": error.toString(), "aria-live": "polite", role: "status", ...props }, import_react188.default.createElement(ErrorIcon, null), import_react188.default.createElement(ProgressMessage, null, error.message));
  75194. if (progress) {
  75195. let { value, modules } = progress, { message } = progress;
  75196. return modules && (message += ` ${modules.complete} / ${modules.total} modules`), import_react188.default.createElement(
  75197. ProgressWrapper,
  75198. {
  75199. "aria-label": "Content is loading...",
  75200. "aria-live": "polite",
  75201. "aria-valuemin": 0,
  75202. "aria-valuemax": 100,
  75203. "aria-valuenow": value * 100,
  75204. "aria-valuetext": message,
  75205. role: "progressbar",
  75206. ...props
  75207. },
  75208. import_react188.default.createElement(ProgressTrack, null, import_react188.default.createElement(ProgressBar2, { style: { width: `${value * 100}%` } })),
  75209. import_react188.default.createElement(ProgressMessage, null, message, value < 1 && import_react188.default.createElement(Ellipsis, { key: message }))
  75210. );
  75211. }
  75212. return import_react188.default.createElement(
  75213. LoaderWrapper,
  75214. {
  75215. "aria-label": "Content is loading...",
  75216. "aria-live": "polite",
  75217. role: "status",
  75218. size,
  75219. ...props
  75220. }
  75221. );
  75222. };
  75223. // src/components/components/ProgressSpinner/ProgressSpinner.tsx
  75224. var import_react189 = __toESM(require_react(), 1);
  75225. init_theming();
  75226. var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes({
  75227. "0%": {
  75228. transform: "rotate(0deg)"
  75229. },
  75230. "100%": {
  75231. transform: "rotate(360deg)"
  75232. }
  75233. }), Wrapper8 = styled.div(({ size }) => ({
  75234. display: "inline-flex",
  75235. alignItems: "center",
  75236. justifyContent: "center",
  75237. position: "relative",
  75238. minWidth: size,
  75239. minHeight: size
  75240. })), Circle = styled.svg(
  75241. ({ size, width }) => ({
  75242. position: "absolute",
  75243. width: `${size}px!important`,
  75244. height: `${size}px!important`,
  75245. transform: "rotate(-90deg)",
  75246. circle: {
  75247. r: (size - Math.ceil(width)) / 2,
  75248. cx: size / 2,
  75249. cy: size / 2,
  75250. opacity: 0.15,
  75251. fill: "transparent",
  75252. stroke: "currentColor",
  75253. strokeWidth: width,
  75254. strokeLinecap: "round",
  75255. strokeDasharray: Math.PI * (size - Math.ceil(width))
  75256. }
  75257. }),
  75258. ({ progress }) => progress && {
  75259. circle: {
  75260. opacity: 0.75
  75261. }
  75262. },
  75263. ({ spinner }) => spinner && {
  75264. animation: `${rotate} 1s linear infinite`,
  75265. circle: {
  75266. opacity: 0.25
  75267. }
  75268. }
  75269. ), ProgressSpinner = ({
  75270. percentage = void 0,
  75271. running = !0,
  75272. size = 24,
  75273. width = 1.5,
  75274. children = null,
  75275. ...props
  75276. }) => typeof percentage == "number" ? import_react189.default.createElement(Wrapper8, { size, ...props }, children, import_react189.default.createElement(Circle, { size, width, xmlns: XMLNS }, import_react189.default.createElement("circle", null)), running && import_react189.default.createElement(Circle, { size, width, xmlns: XMLNS, spinner: !0 }, import_react189.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) })), import_react189.default.createElement(Circle, { size, width, xmlns: XMLNS, progress: !0 }, import_react189.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) }))) : import_react189.default.createElement(Wrapper8, { size, ...props }, children);
  75277. // src/components/components/utils/getStoryHref.ts
  75278. init_client_logger();
  75279. function parseQuery(queryString) {
  75280. let query = {}, pairs = queryString.split("&");
  75281. for (let i = 0; i < pairs.length; i++) {
  75282. let pair = pairs[i].split("=");
  75283. query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || "");
  75284. }
  75285. return query;
  75286. }
  75287. var getStoryHref = (baseUrl, storyId, additionalParams = {}) => {
  75288. deprecate(
  75289. "getStoryHref is deprecated and will be removed in Storybook 11, use the api.getStoryHrefs method instead"
  75290. );
  75291. let [url, paramsStr] = baseUrl.split("?"), params = paramsStr ? {
  75292. ...parseQuery(paramsStr),
  75293. ...additionalParams,
  75294. id: storyId
  75295. } : {
  75296. ...additionalParams,
  75297. id: storyId
  75298. };
  75299. return `${url}?${Object.entries(params).map((item) => `${item[0]}=${item[1]}`).join("&")}`;
  75300. };
  75301. // src/components/components/clipboard/ClipboardCode.tsx
  75302. var import_react190 = __toESM(require_react(), 1);
  75303. init_theming();
  75304. var Code3 = styled.pre`
  75305. line-height: 18px;
  75306. padding: 11px 1rem;
  75307. white-space: pre-wrap;
  75308. background: rgba(0, 0, 0, 0.05);
  75309. color: ${color.darkest};
  75310. border-radius: 3px;
  75311. margin: 1rem 0;
  75312. width: 100%;
  75313. display: block;
  75314. overflow: hidden;
  75315. font-family: ${typography.fonts.mono};
  75316. font-size: ${typography.size.s2 - 1}px;
  75317. `, ClipboardCode = ({ code, ...props }) => import_react190.default.createElement(Code3, { id: "clipboard-code", ...props }, code);
  75318. // src/components/index.ts
  75319. var components2 = components, resetComponents = {};
  75320. Object.keys(components).forEach((key) => {
  75321. resetComponents[key] = (0, import_react191.forwardRef)((props, ref) => (0, import_react191.createElement)(key, { ...props, ref }));
  75322. });
  75323. // src/manager/globals/runtime.ts
  75324. init_theming();
  75325. init_create();
  75326. var globalsNameValueMap = {
  75327. react: REACT,
  75328. "react-dom": REACT_DOM,
  75329. "react-dom/client": REACT_DOM_CLIENT,
  75330. "@storybook/icons": dist_exports2,
  75331. "storybook/manager-api": manager_api_exports,
  75332. "storybook/theming": theming_exports,
  75333. "storybook/theming/create": create_exports,
  75334. "storybook/test": test_exports,
  75335. "storybook/internal/channels": channels_exports,
  75336. "storybook/internal/client-logger": client_logger_exports,
  75337. "storybook/internal/components": components_exports,
  75338. "storybook/internal/core-events": core_events_exports,
  75339. "storybook/internal/manager-errors": manager_errors_exports,
  75340. "storybook/internal/router": router_exports,
  75341. "storybook/internal/types": types_exports
  75342. };
  75343. // src/manager/utils/prepareForTelemetry.ts
  75344. init_dist();
  75345. var import_browser_dtector = __toESM(require_browser_dtector_umd_min(), 1), browserInfo;
  75346. function getBrowserInfo() {
  75347. return browserInfo || (browserInfo = new import_browser_dtector.default(scope.navigator?.userAgent).getBrowserInfo()), browserInfo;
  75348. }
  75349. var errorMessages = [
  75350. // It's a harmless issue with react-resize-detector that supposedly will be gone when we move to React 18.
  75351. // https://github.com/maslianok/react-resize-detector/issues/45#issuecomment-1500958024
  75352. "ResizeObserver loop completed with undelivered notifications.",
  75353. "ResizeObserver loop limit exceeded",
  75354. // Safari does not seem to provide any helpful info on window.onerror
  75355. // https://bugs.webkit.org/show_bug.cgi?id=132945
  75356. "Script error.",
  75357. // When react-dev-tools is installed as a browser extension, it will log this error
  75358. "React is running in production mode"
  75359. ], shouldSkipError = (error) => errorMessages.includes(error?.message);
  75360. function prepareForTelemetry(originalError) {
  75361. let error = originalError;
  75362. return (originalError.target === scope || originalError.currentTarget === scope || originalError.srcElement === scope) && (error = new Error(originalError.message), error.name = originalError.name || error.name), originalError.fromStorybook || (error = new UncaughtManagerError({ error })), error.browserInfo = getBrowserInfo(), error;
  75363. }
  75364. // src/manager/globals-runtime.ts
  75365. globalPackages.forEach((key) => {
  75366. globalThis[globalsNameReferenceMap[key]] = globalsNameValueMap[key];
  75367. });
  75368. var queuedErrors = [];
  75369. globalThis.sendTelemetryError = (error) => {
  75370. if (shouldSkipError(error))
  75371. return;
  75372. let channel = globalThis.__STORYBOOK_ADDONS_CHANNEL__, preparedError = prepareForTelemetry(error);
  75373. if (!channel) {
  75374. queuedErrors.push(preparedError);
  75375. return;
  75376. }
  75377. for (; queuedErrors.length > 0; ) {
  75378. let queuedError = queuedErrors.shift();
  75379. channel.emit(TELEMETRY_ERROR, queuedError);
  75380. }
  75381. channel.emit(TELEMETRY_ERROR, preparedError);
  75382. };
  75383. globalThis.addEventListener("error", (args) => {
  75384. let error = args.error || args;
  75385. globalThis.sendTelemetryError(error);
  75386. });
  75387. globalThis.addEventListener("unhandledrejection", ({ reason }) => {
  75388. globalThis.sendTelemetryError(reason);
  75389. });