超兴学习通自动化 ——— Chaoxing Auto(学习通自动完成讨论)

超兴学习通自动化脚本,能自动完成讨论,具备自动完成讨论任务、一键回复指定话题、批量回复和创建话题等功能,让讨论任务变得轻松简单。

  1. // ==UserScript==
  2. // @name 超兴学习通自动化 ——— Chaoxing Auto(学习通自动完成讨论)
  3. // @namespace https://github.com/lcandy2/Chaoxing-Auto
  4. // @version 1.2
  5. // @author lcandy2 (甜檸Cirtron)
  6. // @description 超兴学习通自动化脚本,能自动完成讨论,具备自动完成讨论任务、一键回复指定话题、批量回复和创建话题等功能,让讨论任务变得轻松简单。
  7. // @license None
  8. // @homepage https://greasyfork.org/scripts/489933
  9. // @homepageURL https://github.com/lcandy2/user.js/tree/main/chaoxing.com
  10. // @source https://github.com/lcandy2/Chaoxing-Auto
  11. // @match https://mooc1.chaoxing.com/bbscircle/grouptopic*
  12. // @match https://mooc1.chaoxing.com/mooc-ans/bbscircle/grouptopic*
  13. // @match https://mooc1.chaoxing.com/bbscircle/gettopicdetail*
  14. // @match https://mooc1.chaoxing.com/mooc-ans/bbscircle/gettopicdetail*
  15. // @match https://groupweb.chaoxing.com/course/topic/topicList*
  16. // @match https://groupweb.chaoxing.com/course/topic/v3/bbs*
  17. // @require https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js
  18. // @require https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js
  19. // @require https://registry.npmmirror.com/react-draggable/4.4.6/files/build/web/react-draggable.min.js
  20. // @require https://registry.npmmirror.com/@emotion/react/11.11.4/files/dist/emotion-react.umd.min.js
  21. // @require https://registry.npmmirror.com/@emotion/styled/11.11.0/files/dist/emotion-styled.umd.min.js
  22. // @require https://registry.npmmirror.com/@mui/material/5.15.13/files/umd/material-ui.production.min.js
  23. // @grant GM_addStyle
  24. // @grant GM_deleteValue
  25. // @grant GM_getValue
  26. // @grant GM_setValue
  27. // ==/UserScript==
  28.  
  29. (t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const o=document.createElement("style");o.textContent=t,document.head.append(o)})(' .floating-overlay{position:fixed;top:0;left:0;z-index:1001}.floating-overlay .MuiDialog-root{position:static}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.googlefonts.cn/s/materialicons/v141/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2")}.material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased} ');
  30.  
  31. (function (e, material, R, react, P, M) {
  32. 'use strict';
  33.  
  34. function _interopNamespaceDefault(e) {
  35. const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
  36. if (e) {
  37. for (const k in e) {
  38. if (k !== 'default') {
  39. const d = Object.getOwnPropertyDescriptor(e, k);
  40. Object.defineProperty(n, k, d.get ? d : {
  41. enumerable: true,
  42. get: () => e[k]
  43. });
  44. }
  45. }
  46. }
  47. n.default = e;
  48. return Object.freeze(n);
  49. }
  50.  
  51. const e__namespace = /*#__PURE__*/_interopNamespaceDefault(e);
  52.  
  53. function I(e) {
  54. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  55. }
  56.  
  57. function F(e) {
  58. if (e.__esModule) return e;
  59. var t = e.default;
  60. if ("function" == typeof t) {
  61. var n = function e() {
  62. return this instanceof e ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
  63. };
  64. n.prototype = t.prototype;
  65. } else n = {};
  66. return Object.defineProperty(n, "__esModule", {
  67. value: !0
  68. }), Object.keys(e).forEach((function(t) {
  69. var r = Object.getOwnPropertyDescriptor(e, t);
  70. Object.defineProperty(n, t, r.get ? r : {
  71. enumerable: !0,
  72. get: function() {
  73. return e[t];
  74. }
  75. });
  76. })), n;
  77. }
  78.  
  79. var B = {
  80. exports: {}
  81. }, N = {}, L = e, z = Symbol.for("react.element"), D = Symbol.for("react.fragment"), W = Object.prototype.hasOwnProperty, V = L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, H = {
  82. key: !0,
  83. ref: !0,
  84. __self: !0,
  85. __source: !0
  86. };
  87.  
  88. function q(e, t, n) {
  89. var r, o = {}, i = null, a = null;
  90. for (r in void 0 !== n && (i = "" + n), void 0 !== t.key && (i = "" + t.key), void 0 !== t.ref && (a = t.ref),
  91. t) W.call(t, r) && !H.hasOwnProperty(r) && (o[r] = t[r]);
  92. if (e && e.defaultProps) for (r in t = e.defaultProps) void 0 === o[r] && (o[r] = t[r]);
  93. return {
  94. $$typeof: z,
  95. type: e,
  96. key: i,
  97. ref: a,
  98. props: o,
  99. _owner: V.current
  100. };
  101. }
  102.  
  103. N.Fragment = D, N.jsx = q, N.jsxs = q, B.exports = N;
  104.  
  105. var K = B.exports;
  106.  
  107. const U = new URL("https://mooc1.chaoxing.com/bbscircle/grouptopic"), X = new URL("https://mooc1.chaoxing.com/mooc-ans/bbscircle/grouptopic"), G = new URL("https://mooc1.chaoxing.com/bbscircle/gettopicdetail"), Y = new URL("https://mooc1.chaoxing.com/mooc-ans/bbscircle/gettopicdetail"), J = new URL("https://groupweb.chaoxing.com/course/topic/topicList"), Z = new URL("https://groupweb.chaoxing.com/course/topic/v3/bbs"), Q = window.location.href, ee = () => oe() || ae(), te = () => ie() || se(), ne = () => oe() || ie(), re = () => ae() || se(), oe = () => {
  108. const e = J.href;
  109. return Q.includes(e);
  110. }, ie = () => {
  111. const e = U.href, t = X.href;
  112. return Q.includes(e) || Q.includes(t);
  113. }, ae = () => {
  114. const e = Z.href;
  115. return Q.includes(e);
  116. }, se = () => {
  117. const e = G.href, t = Y.href;
  118. return Q.includes(e) || Q.includes(t);
  119. };
  120.  
  121. var le = {
  122. BASE_URL: "/",
  123. MODE: "production",
  124. DEV: !1,
  125. PROD: !0,
  126. SSR: !1
  127. };
  128.  
  129. const ce = e => {
  130. let t;
  131. const n = new Set, r = (e, r) => {
  132. const o = "function" == typeof e ? e(t) : e;
  133. if (!Object.is(o, t)) {
  134. const e = t;
  135. t = (null != r ? r : "object" != typeof o || null === o) ? o : Object.assign({}, t, o),
  136. n.forEach((n => n(t, e)));
  137. }
  138. }, o = () => t, i = {
  139. setState: r,
  140. getState: o,
  141. getInitialState: () => a,
  142. subscribe: e => (n.add(e), () => n.delete(e)),
  143. destroy: () => {
  144. "production" !== (le ? "production" : void 0) && console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),
  145. n.clear();
  146. }
  147. }, a = t = e(r, o, i);
  148. return i;
  149. };
  150.  
  151. var ue = {
  152. exports: {}
  153. }, de = {}, pe = {
  154. exports: {}
  155. }, fe = {}, he = e;
  156.  
  157. var me = "function" == typeof Object.is ? Object.is : function(e, t) {
  158. return e === t && (0 !== e || 1 / e == 1 / t) || e != e && t != t;
  159. }, ge = he.useState, ye = he.useEffect, be = he.useLayoutEffect, ve = he.useDebugValue;
  160.  
  161. function xe(e) {
  162. var t = e.getSnapshot;
  163. e = e.value;
  164. try {
  165. var n = t();
  166. return !me(e, n);
  167. } catch (r) {
  168. return !0;
  169. }
  170. }
  171.  
  172. var Se = "undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement ? function(e, t) {
  173. return t();
  174. } : function(e, t) {
  175. var n = t(), r = ge({
  176. inst: {
  177. value: n,
  178. getSnapshot: t
  179. }
  180. }), o = r[0].inst, i = r[1];
  181. return be((function() {
  182. o.value = n, o.getSnapshot = t, xe(o) && i({
  183. inst: o
  184. });
  185. }), [ e, n, t ]), ye((function() {
  186. return xe(o) && i({
  187. inst: o
  188. }), e((function() {
  189. xe(o) && i({
  190. inst: o
  191. });
  192. }));
  193. }), [ e ]), ve(n), n;
  194. };
  195.  
  196. fe.useSyncExternalStore = void 0 !== he.useSyncExternalStore ? he.useSyncExternalStore : Se,
  197. pe.exports = fe;
  198.  
  199. var we = pe.exports, Ce = e, ke = we;
  200.  
  201. var je = "function" == typeof Object.is ? Object.is : function(e, t) {
  202. return e === t && (0 !== e || 1 / e == 1 / t) || e != e && t != t;
  203. }, Te = ke.useSyncExternalStore, Re = Ce.useRef, Ee = Ce.useEffect, $e = Ce.useMemo, _e = Ce.useDebugValue;
  204.  
  205. de.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
  206. var i = Re(null);
  207. if (null === i.current) {
  208. var a = {
  209. hasValue: !1,
  210. value: null
  211. };
  212. i.current = a;
  213. } else a = i.current;
  214. i = $e((function() {
  215. function e(e) {
  216. if (!l) {
  217. if (l = !0, i = e, e = r(e), void 0 !== o && a.hasValue) {
  218. var t = a.value;
  219. if (o(t, e)) return s = t;
  220. }
  221. return s = e;
  222. }
  223. if (t = s, je(i, e)) return t;
  224. var n = r(e);
  225. return void 0 !== o && o(t, n) ? t : (i = e, s = n);
  226. }
  227. var i, s, l = !1, c = void 0 === n ? null : n;
  228. return [ function() {
  229. return e(t());
  230. }, null === c ? void 0 : function() {
  231. return e(c());
  232. } ];
  233. }), [ t, n, r, o ]);
  234. var s = Te(e, i[0], i[1]);
  235. return Ee((function() {
  236. a.hasValue = !0, a.value = s;
  237. }), [ s ]), _e(s), s;
  238. }, ue.exports = de;
  239.  
  240. const Oe = I(ue.exports);
  241.  
  242. var Ae = {
  243. BASE_URL: "/",
  244. MODE: "production",
  245. DEV: !1,
  246. PROD: !0,
  247. SSR: !1
  248. };
  249.  
  250. const {useDebugValue: Pe} = e, {useSyncExternalStoreWithSelector: Me} = Oe;
  251.  
  252. let Ie = !1;
  253.  
  254. const Fe = e => e;
  255.  
  256. const Be = e => {
  257. "production" !== (Ae ? "production" : void 0) && "function" != typeof e && console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");
  258. const t = "function" == typeof e ? (e => e ? ce(e) : ce)(e) : e, n = (e, n) => function(e, t = Fe, n) {
  259. "production" !== (Ae ? "production" : void 0) && n && !Ie && (console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),
  260. Ie = !0);
  261. const r = Me(e.subscribe, e.getState, e.getServerState || e.getInitialState, t, n);
  262. return Pe(r), r;
  263. }(t, e, n);
  264. return Object.assign(n, t), n;
  265. }, Ne = e => e ? Be(e) : Be;
  266.  
  267. var Le = {
  268. BASE_URL: "/",
  269. MODE: "production",
  270. DEV: !1,
  271. PROD: !0,
  272. SSR: !1
  273. };
  274.  
  275. const ze = (e, t) => (...n) => Object.assign({}, e, t(...n));
  276.  
  277. function De(e, t) {
  278. let n;
  279. try {
  280. n = e();
  281. } catch (r) {
  282. return;
  283. }
  284. return {
  285. getItem: e => {
  286. var r;
  287. const o = e => null === e ? null : JSON.parse(e, null == t ? void 0 : t.reviver), i = null != (r = n.getItem(e)) ? r : null;
  288. return i instanceof Promise ? i.then(o) : o(i);
  289. },
  290. setItem: (e, r) => n.setItem(e, JSON.stringify(r, null == t ? void 0 : t.replacer)),
  291. removeItem: e => n.removeItem(e)
  292. };
  293. }
  294.  
  295. const We = e => t => {
  296. try {
  297. const n = e(t);
  298. return n instanceof Promise ? n : {
  299. then: e => We(e)(n),
  300. catch(e) {
  301. return this;
  302. }
  303. };
  304. } catch (n) {
  305. return {
  306. then(e) {
  307. return this;
  308. },
  309. catch: e => We(e)(n)
  310. };
  311. }
  312. }, Ve = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ("production" !== (Le ? "production" : void 0) && console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),
  313. ((e, t) => (n, r, o) => {
  314. let i = {
  315. getStorage: () => localStorage,
  316. serialize: JSON.stringify,
  317. deserialize: JSON.parse,
  318. partialize: e => e,
  319. version: 0,
  320. merge: (e, t) => ({
  321. ...t,
  322. ...e
  323. }),
  324. ...t
  325. }, a = !1;
  326. const s = new Set, l = new Set;
  327. let c;
  328. try {
  329. c = i.getStorage();
  330. } catch (g) {}
  331. if (!c) return e(((...e) => {
  332. console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),
  333. n(...e);
  334. }), r, o);
  335. const u = We(i.serialize), d = () => {
  336. const e = i.partialize({
  337. ...r()
  338. });
  339. let t;
  340. const n = u({
  341. state: e,
  342. version: i.version
  343. }).then((e => c.setItem(i.name, e))).catch((e => {
  344. t = e;
  345. }));
  346. if (t) throw t;
  347. return n;
  348. }, p = o.setState;
  349. o.setState = (e, t) => {
  350. p(e, t), d();
  351. };
  352. const f = e(((...e) => {
  353. n(...e), d();
  354. }), r, o);
  355. let h;
  356. const m = () => {
  357. var e;
  358. if (!c) return;
  359. a = !1, s.forEach((e => e(r())));
  360. const t = (null == (e = i.onRehydrateStorage) ? void 0 : e.call(i, r())) || void 0;
  361. return We(c.getItem.bind(c))(i.name).then((e => {
  362. if (e) return i.deserialize(e);
  363. })).then((e => {
  364. if (e) {
  365. if ("number" != typeof e.version || e.version === i.version) return e.state;
  366. if (i.migrate) return i.migrate(e.state, e.version);
  367. console.error("State loaded from storage couldn't be migrated since no migrate function was provided");
  368. }
  369. })).then((e => {
  370. var t;
  371. return h = i.merge(e, null != (t = r()) ? t : f), n(h, !0), d();
  372. })).then((() => {
  373. null == t || t(h, void 0), a = !0, l.forEach((e => e(h)));
  374. })).catch((e => {
  375. null == t || t(void 0, e);
  376. }));
  377. };
  378. return o.persist = {
  379. setOptions: e => {
  380. i = {
  381. ...i,
  382. ...e
  383. }, e.getStorage && (c = e.getStorage());
  384. },
  385. clearStorage: () => {
  386. null == c || c.removeItem(i.name);
  387. },
  388. getOptions: () => i,
  389. rehydrate: () => m(),
  390. hasHydrated: () => a,
  391. onHydrate: e => (s.add(e), () => {
  392. s.delete(e);
  393. }),
  394. onFinishHydration: e => (l.add(e), () => {
  395. l.delete(e);
  396. })
  397. }, m(), h || f;
  398. })(e, t)) : ((e, t) => (n, r, o) => {
  399. let i = {
  400. storage: De((() => localStorage)),
  401. partialize: e => e,
  402. version: 0,
  403. merge: (e, t) => ({
  404. ...t,
  405. ...e
  406. }),
  407. ...t
  408. }, a = !1;
  409. const s = new Set, l = new Set;
  410. let c = i.storage;
  411. if (!c) return e(((...e) => {
  412. console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),
  413. n(...e);
  414. }), r, o);
  415. const u = () => {
  416. const e = i.partialize({
  417. ...r()
  418. });
  419. return c.setItem(i.name, {
  420. state: e,
  421. version: i.version
  422. });
  423. }, d = o.setState;
  424. o.setState = (e, t) => {
  425. d(e, t), u();
  426. };
  427. const p = e(((...e) => {
  428. n(...e), u();
  429. }), r, o);
  430. let f;
  431. o.getInitialState = () => p;
  432. const h = () => {
  433. var e, t;
  434. if (!c) return;
  435. a = !1, s.forEach((e => {
  436. var t;
  437. return e(null != (t = r()) ? t : p);
  438. }));
  439. const o = (null == (t = i.onRehydrateStorage) ? void 0 : t.call(i, null != (e = r()) ? e : p)) || void 0;
  440. return We(c.getItem.bind(c))(i.name).then((e => {
  441. if (e) {
  442. if ("number" != typeof e.version || e.version === i.version) return e.state;
  443. if (i.migrate) return i.migrate(e.state, e.version);
  444. console.error("State loaded from storage couldn't be migrated since no migrate function was provided");
  445. }
  446. })).then((e => {
  447. var t;
  448. return f = i.merge(e, null != (t = r()) ? t : p), n(f, !0), u();
  449. })).then((() => {
  450. null == o || o(f, void 0), f = r(), a = !0, l.forEach((e => e(f)));
  451. })).catch((e => {
  452. null == o || o(void 0, e);
  453. }));
  454. };
  455. return o.persist = {
  456. setOptions: e => {
  457. i = {
  458. ...i,
  459. ...e
  460. }, e.storage && (c = e.storage);
  461. },
  462. clearStorage: () => {
  463. null == c || c.removeItem(i.name);
  464. },
  465. getOptions: () => i,
  466. rehydrate: () => h(),
  467. hasHydrated: () => a,
  468. onHydrate: e => (s.add(e), () => {
  469. s.delete(e);
  470. }),
  471. onFinishHydration: e => (l.add(e), () => {
  472. l.delete(e);
  473. })
  474. }, i.skipHydration || h(), f || p;
  475. })(e, t);
  476.  
  477. var He = (() => "undefined" != typeof GM_deleteValue ? GM_deleteValue : void 0)(), qe = (() => "undefined" != typeof GM_getValue ? GM_getValue : void 0)(), Ke = (() => "undefined" != typeof GM_setValue ? GM_setValue : void 0)();
  478.  
  479. const Ue = {
  480. getItem: async e => await qe(e) || null,
  481. setItem: async (e, t) => {
  482. await Ke(e, t);
  483. },
  484. removeItem: async e => {
  485. await He(e);
  486. }
  487. }, Xe = Ne(ze({
  488. logItems: []
  489. }, (e => ({
  490. addLogItem: t => {
  491. e((e => ({
  492. logItems: [ ...e.logItems, t ]
  493. })));
  494. }
  495. })))), Ge = Ne(Ve(ze({
  496. standbyTime: 1e3,
  497. replyCountTimes: 1,
  498. newTopicCountTimes: 3,
  499. _hasHydrated: !1
  500. }, (e => ({
  501. setStandbyTime: t => {
  502. e({
  503. standbyTime: t
  504. });
  505. },
  506. setReplyCountTimes: t => {
  507. e({
  508. replyCountTimes: t
  509. });
  510. },
  511. setNewTopicCountTimes: t => {
  512. e({
  513. newTopicCountTimes: t
  514. });
  515. },
  516. setHasHydrated: t => {
  517. e({
  518. _hasHydrated: t
  519. });
  520. }
  521. }))), {
  522. name: "topic_settings",
  523. storage: De((() => Ue)),
  524. onRehydrateStorage: () => e => {
  525. e && e.setHasHydrated(!0);
  526. }
  527. })), Ye = Ne(ze({
  528. currentStatus: null,
  529. currentPage: null,
  530. isInActionFrame: !1,
  531. actionFrameStatus: {},
  532. actionNewTopicStatus: null,
  533. topicDetail: {},
  534. topicList: [],
  535. titleList: [],
  536. actionFrameRunningType: ""
  537. }, (e => ({
  538. setCurrentStatus: t => {
  539. e({
  540. currentStatus: t
  541. });
  542. },
  543. setCurrentPage: t => {
  544. e({
  545. currentPage: t
  546. });
  547. },
  548. setIsInActionFrame: t => {
  549. e({
  550. isInActionFrame: t
  551. });
  552. },
  553. setActionFrameStatus: t => {
  554. e({
  555. actionFrameStatus: t
  556. });
  557. },
  558. setActionFrameStatusStatus: t => {
  559. e((e => ({
  560. actionFrameStatus: {
  561. ...e.actionFrameStatus,
  562. status: t
  563. }
  564. })));
  565. },
  566. setActionFrameStatusIndex: t => {
  567. e((e => ({
  568. actionFrameStatus: {
  569. ...e.actionFrameStatus,
  570. index: t
  571. }
  572. })));
  573. },
  574. setActionFrameStatusTotal: t => {
  575. e((e => ({
  576. actionFrameStatus: {
  577. ...e.actionFrameStatus,
  578. total: t
  579. }
  580. })));
  581. },
  582. setActionFrameStatusSrc: t => {
  583. e((e => ({
  584. actionFrameStatus: {
  585. ...e.actionFrameStatus,
  586. src: t
  587. }
  588. })));
  589. },
  590. setActionNewTopicStatus: t => {
  591. e({
  592. actionNewTopicStatus: t
  593. });
  594. },
  595. setTopicDetail: t => {
  596. e({
  597. topicDetail: t
  598. });
  599. },
  600. setTopicList: t => {
  601. e({
  602. topicList: t
  603. });
  604. },
  605. setTitleList: t => {
  606. e({
  607. titleList: t
  608. });
  609. },
  610. setActionFrameRunningType: t => {
  611. e({
  612. actionFrameRunningType: t
  613. });
  614. }
  615. }))));
  616.  
  617. async function Je(e = 1) {
  618. const t = await Ge.getState().standbyTime;
  619. return new Promise((n => setTimeout(n, t * e)));
  620. }
  621.  
  622. async function Ze() {
  623. const e = ae(), t = se(), n = Xe.getState().addLogItem, r = {
  624. title: void 0,
  625. content: void 0,
  626. replies: void 0
  627. };
  628. if (e && !t) try {
  629. const e = document.querySelector(".topicDetail_detail"), t = document.querySelector(".topicDetail_replyList");
  630. if (!e || !t) return;
  631. const n = Qe(e), o = tt(e), i = await nt(t);
  632. r.title = n, r.content = o, r.replies = i;
  633. } catch (o) {
  634. console.error(o), n(`获取讨论详情失败:${o}`);
  635. } else if (t && !e) try {
  636. const e = document.querySelectorAll("div");
  637. let t;
  638. for (let r = 0; r < e.length; r++) if (e[r].className.match(/content\d{4}/)) {
  639. t = e[r];
  640. break;
  641. }
  642. if (!t) return;
  643. const n = rt(t), o = ot(t), i = it(t);
  644. r.title = n, r.content = o, r.replies = i;
  645. } catch (o) {
  646. console.error(o), n(`获取讨论详情失败:${o}`);
  647. }
  648. return r;
  649. }
  650.  
  651. const Qe = e => {
  652. var t;
  653. const n = e.querySelector(".topicDetail_title");
  654. return n ? null == (t = n.textContent) ? void 0 : t.trim() : void 0;
  655. }, et = e => {
  656. const t = document.querySelector(".topicDetail_replyList");
  657. if (!t) return void console.error("Element not found");
  658. if (t.children.length > 1) return void e();
  659. const n = new MutationObserver(((t, n) => {
  660. for (let r of t) "childList" === r.type && e();
  661. }));
  662. return n.observe(t, {
  663. attributes: !1,
  664. childList: !0,
  665. subtree: !0
  666. }), () => n.disconnect();
  667. }, tt = e => {
  668. const t = e.querySelector(".topicDetail_main");
  669. if (!t) return;
  670. return Array.from(t.children).filter((e => !e.classList.contains("topicDetail_info"))).map((e => {
  671. var t;
  672. return null == (t = e.textContent) ? void 0 : t.trim();
  673. })).join(" ");
  674. }, nt = async e => {
  675. const t = document.querySelector(".classReplyCount span"), n = Number((null == t ? void 0 : t.textContent) || 0);
  676. let r = (() => {
  677. Je(.5);
  678. return Array.from(e.querySelectorAll(".topicDetail_replyItem")).map((e => {
  679. var t, n;
  680. const r = e.querySelector(".author"), o = e.querySelector(".replyContent");
  681. return {
  682. author: r ? null == (t = r.textContent) ? void 0 : t.trim() : "",
  683. content: o ? null == (n = o.textContent) ? void 0 : n.trim() : ""
  684. };
  685. }));
  686. })();
  687. return 0 === n || r.length > 0 ? r : [ {
  688. content: "NEED_OBSERVE"
  689. } ];
  690. }, rt = e => {
  691. var t;
  692. const n = e.querySelector(".oneDiv");
  693. let r;
  694. if (n) {
  695. let e = n.querySelector("h3");
  696. if (e) {
  697. let n = e.querySelector("em");
  698. n && n.remove(), r = null == (t = e.textContent) ? void 0 : t.trim();
  699. }
  700. }
  701. return r;
  702. }, ot = e => {
  703. var t;
  704. const n = e.querySelector("#topicContent");
  705. return n ? null == (t = n.textContent) ? void 0 : t.trim() : void 0;
  706. }, it = e => {
  707. var t, n;
  708. let r, o = [];
  709. if (e && e.children.length > 1) {
  710. r = e.children[1];
  711. let i = r.querySelectorAll("div");
  712. for (let e = 0; e < i.length; e++) {
  713. if (i[e].parentElement !== r) continue;
  714. let a = {}, s = i[e].querySelector("p > span.name"), l = i[e].querySelector("h3");
  715. s && (a.author = null == (t = s.textContent) ? void 0 : t.trim()), l && (a.content = null == (n = l.textContent) ? void 0 : n.trim()),
  716. a.content && o.push(a);
  717. }
  718. }
  719. return o;
  720. }, at = window.location.hash, st = "cxauto_success_", lt = "cxauto_action_trigger", ct = "cxauto_action_reply_index_", ut = "cxauto_action_new_topic_title_", dt = e => {
  721. at.includes(e) || window.history.replaceState(null, "", `${at}#${e}`);
  722. }, pt = () => at.includes("cxauto_start"), ft = () => {
  723. const e = st, t = at.match(new RegExp(`${e}(\\w+)`));
  724. return t ? t[1] : at.includes(e.slice(0, -1));
  725. }, ht = () => {
  726. const e = lt;
  727. return at.includes(e);
  728. }, mt = () => {
  729. const e = ct, t = at.match(new RegExp(`${e}(\\d+)`));
  730. return t ? parseInt(t[1]) : 0;
  731. }, gt = (e, t) => {
  732. const n = st + e;
  733. return t ? `${t}#${n}` : (dt(n), !0);
  734. }, yt = e => e ? `${e}#${lt}` : (dt(lt), !0), bt = (e, t) => {
  735. const n = `${ct}${e}`;
  736. return t ? `${t}#${n}` : (dt(n), !0);
  737. }, vt = (e, t) => {
  738. const n = `${ut}${e}`;
  739. return t ? `${t}#${n}` : (dt(n), !0);
  740. }, xt = ee() && !te() ? "new" : te() && !ee() ? "legacy" : null;
  741.  
  742. function St(e) {
  743. const t = Xe.getState().addLogItem;
  744. t("----- 执行失败 -----"), t(e.toString()), t(`-v=${xt}`), console.error(e, xt);
  745. }
  746.  
  747. const wt = () => Array.from(document.querySelectorAll("div#showTopics div.content1118")).filter((e => Array.from(e.children).some((e => e.classList.contains("oneRight"))))).map((e => {
  748. var t, n, r;
  749. const o = e.querySelector("h3 a"), i = (null == (t = null == o ? void 0 : o.textContent) ? void 0 : t.trim()) || "", a = e.querySelector("p.clearfix");
  750. return {
  751. title: i,
  752. author: (null == (n = null == a ? void 0 : a.children[0].textContent) ? void 0 : n.trim()) || "",
  753. replyCount: (null == (r = null == a ? void 0 : a.children[1].textContent) ? void 0 : r.trim()) || "",
  754. url: (null == o ? void 0 : o.getAttribute("href")) || ""
  755. };
  756. })), Ct = () => Array.from(document.querySelectorAll("div.dataCon ul.dataBody li.dataBody_topic")).map((e => {
  757. var t, n, r;
  758. const o = e.querySelector("span.author"), i = (null == (t = null == o ? void 0 : o.textContent) ? void 0 : t.trim()) || "", a = e.querySelector("div.topic_interactive div.comment span"), s = (null == (n = null == a ? void 0 : a.textContent) ? void 0 : n.trim()) || "", l = e.querySelector("a.topicli_link"), c = (null == l ? void 0 : l.getAttribute("href")) || "";
  759. return {
  760. title: (null == (r = null == l ? void 0 : l.textContent) ? void 0 : r.trim()) || "",
  761. author: i,
  762. replyCount: s,
  763. url: c
  764. };
  765. })), kt = ae() && !se() ? "new" : se() && !ae() ? "legacy" : null, jt = "new" === kt, Tt = Xe.getState().addLogItem;
  766.  
  767. const Rt = (e, t) => {
  768. if (!e.replies) throw new Error("topicDetail.replies is undefined");
  769. const n = e.replies.map((e => e.content || "")), r = [];
  770. if (n.length <= 0) {
  771. for (let n = 0; n < t; n++) r.push(e.content || e.title || "");
  772. return r;
  773. }
  774. let o = !0;
  775. n.length <= t && (o = !1);
  776. for (let i = 0; i < t; i++) {
  777. const e = Math.floor(Math.random() * n.length);
  778. r.push(n[e]), o && n.splice(e, 1);
  779. }
  780. return r;
  781. }, Et = async e => {
  782. try {
  783. const t = document.querySelector(e);
  784. if (console.log(t, e), !t) throw new Error("无法找到进行回复的按钮。");
  785. return t.click(), Tt("已点击进行回复的按钮,即将继续..."), await Je(.1), !0;
  786. } catch (t) {
  787. return St(t), !1;
  788. }
  789. }, $t = async e => {
  790. try {
  791. const t = document.querySelector(e);
  792. if (!t) throw new Error("无法找到用于回复的文本区域。");
  793. return t.click(), t.focus(), Tt("已找到用于回复的文本区域,等待回复..."), await Je(.1), t;
  794. } catch (t) {
  795. St(t);
  796. }
  797. }, _t = async ({selector: e, textarea: t, contextToReply: n}) => {
  798. try {
  799. const r = document.querySelector(e);
  800. if (!r || !t) throw new Error("Required elements not found.");
  801. for (let e = 0; e < n.length; e++) t.value = n[e], Tt(`Reply ${n[e]} filled, waiting to submit...`),
  802. "legacy" === kt && r.addEventListener("click", (function(e) {
  803. e.preventDefault();
  804. })), await Je(1), r.click(), t.value = "", e !== n.length - 1 && (Tt("Reply submitted, waiting to continue..."),
  805. await Je(1));
  806. return !0;
  807. } catch (r) {
  808. St(r);
  809. }
  810. };
  811.  
  812. const Ot = ({setCurrentStatus: e}) => async () => {
  813. e("triggered");
  814. }, At = async ({setCurrentStatus: e}) => {
  815. e(await async function() {
  816. const {replyCountTimes: e} = Ge.getState(), {topicDetail: t} = Ye.getState(), n = Rt(t, e);
  817. console.debug("currentVersion", kt);
  818. try {
  819. if (n.length <= 0) throw new Error("未获取到回复评论。");
  820. const e = jt ? "div.topicDetail_detail div.replyBtn" : "div.oneDiv p.clearfix a.tl1", t = jt ? "div.topicDetail_editContainer div.replyEdit textarea" : "div.plDiv div.hfpl textarea", r = jt ? "div.replyEditBtnGroup div.addReply" : "div.plDiv div.hfpl input.grenBtn", o = await Et(e), i = await $t(t), a = await _t({
  821. selector: r,
  822. textarea: i,
  823. contextToReply: n
  824. });
  825. if (o && i && a) return !0;
  826. } catch (r) {
  827. return St(r), !1;
  828. }
  829. }() ? "success" : "failed");
  830. }, Pt = e => {
  831. const t = {
  832. type: "cxauto_action_frame",
  833. status: "success",
  834. index: e
  835. };
  836. console.debug("PostMessageSuccess", t), window.parent.postMessage(t, "*");
  837. }, Mt = () => {
  838. window.addEventListener("message", (e => {
  839. if (console.debug("ReceiveMessage", e.data), "cxauto_action_frame" === e.data.type) {
  840. const t = Ye.getState().actionFrameStatus.status, n = Ye.getState().actionFrameStatus.index;
  841. "success" === e.data.status && "running" === t && n === e.data.index && Ye.getState().setActionFrameStatusStatus("success");
  842. }
  843. }));
  844. }, It = Ye.getState().setActionFrameStatusStatus, Ft = Ye.getState().setActionFrameStatusIndex, Bt = Ye.getState().setActionFrameStatusTotal, Nt = Ye.getState().setActionFrameStatusSrc, Lt = Xe.getState().addLogItem;
  845.  
  846. const zt = () => {
  847. const {topicList: e} = Ye.getState();
  848. return e.length, Ft(0), Bt(e.length), Nt(""), !0;
  849. }, Dt = async (e, t) => (Lt("等待继续..."), Nt(""), await Je(.5), e === t - 1 || (Ft(e + 1),
  850. It("waitingToStart"), !1));
  851.  
  852. async function Wt() {
  853. let e, t, n;
  854. Ge.getState(), Ye.getState(), ee() ? (e = "div.bnt_group a.jb_btn", t = "div.edit_main div.edit_title input",
  855. n = "div.edit_main div.edit_btn div.jb_btn") : (e = "div.operations a.addTopics",
  856. t = "form#addGroupTopicForm input#c_title", n = "div.listBtn a.qdBtn");
  857. if (await Ht(e)) {
  858. let e = (() => {
  859. const e = ut, t = at.match(new RegExp(`${e}([^#]+)`));
  860. return t ? decodeURIComponent(t[1]) : "";
  861. })();
  862. "" === e && (e = "如何学好该课程?");
  863. if (await qt(t, e)) {
  864. if (await Kt(n)) return !0;
  865. }
  866. }
  867. return !1;
  868. }
  869.  
  870. const Vt = Xe.getState().addLogItem, Ht = async e => {
  871. try {
  872. const t = document.querySelector(e);
  873. if (console.log(t, e), !t) throw new Error("无法找到发表讨论的按钮。");
  874. return t.click(), Vt("已点击进行回复的按钮,即将继续..."), await Je(.3), !0;
  875. } catch (t) {
  876. return St(t), !1;
  877. }
  878. }, qt = async (e, t) => {
  879. try {
  880. const n = document.querySelector(e);
  881. if (!n) throw new Error("无法找到输入标题的输入框。");
  882. return n.click(), n.focus(), n.value = t, Vt(`已输入标题:${t},即将继续...`), await Je(1),
  883. !0;
  884. } catch (n) {
  885. return St(n), !1;
  886. }
  887. }, Kt = async e => {
  888. try {
  889. const t = document.querySelector(e);
  890. if (!t) throw new Error("无法找到发表讨论的按钮。");
  891. return Vt("已点击发表讨论的按钮,即将继续..."), te() && (window.alert = () => !1), t.click(), await Je(1),
  892. !0;
  893. } catch (t) {
  894. return St(t), !1;
  895. }
  896. }, Ut = async ({setCurrentStatus: e}) => {
  897. e(await Wt() ? "success" : "failed");
  898. };
  899.  
  900. const Xt = Ye.getState().setActionFrameStatusStatus, Gt = Ye.getState().setActionFrameStatusIndex, Yt = Ye.getState().setActionFrameStatusTotal, Jt = Ye.getState().setActionFrameStatusSrc, Zt = Xe.getState().addLogItem;
  901.  
  902. const Qt = () => {
  903. const {newTopicCountTimes: e} = Ge.getState(), {topicList: t, setTitleList: n} = Ye.getState(), r = e, o = ((e, t) => {
  904. const n = [], r = e.map((e => e.title)).filter((e => void 0 !== e));
  905. if (r.length <= 0) {
  906. for (let e = 0; e < t; e++) n.push("如何学好该课程?");
  907. return n;
  908. }
  909. let o = !0;
  910. r.length <= t && (o = !1);
  911. for (let i = 0; i < t; i++) {
  912. const e = Math.floor(Math.random() * r.length);
  913. let t = r[e];
  914. o && r.splice(e, 1), n.push(t);
  915. }
  916. return n;
  917. })(t, r);
  918. return n(o), Gt(0), Yt(r), Jt(""), !0;
  919. }, en = async (e, t) => (Zt("等待继续..."), Jt(""), await Je(.5), e === t - 1 || (Gt(e + 1),
  920. Xt("waitingToStart"), !1));
  921.  
  922. function tn() {
  923. const {currentPage: e$1, setCurrentPage: t} = Ye(), {topicDetail: o, setTopicDetail: i} = Ye(), {topicList: a, setTopicList: s} = Ye(), {currentStatus: p, setCurrentStatus: f} = Ye(), {isInActionFrame: h, setIsInActionFrame: m} = Ye(), [g, y] = e.useState(!0), {addLogItem: b} = Xe(), {actionFrameStatus: v, setActionFrameStatus: x, setActionFrameStatusStatus: S} = Ye(), w = v.status, {actionFrameRunningType: C, setActionFrameRunningType: k} = Ye();
  924. e.useEffect((() => {
  925. const e = ft();
  926. !0 === e || "singleReply" === e || "newTopic" === e ? f("success") : "multiReply" === e && S("finished"),
  927. ht() && m(!0), re() ? t("detail") : ne() && t("list");
  928. }), []), e.useEffect((() => {
  929. if ("list" === e$1 || "detail" === e$1) {
  930. let t;
  931. switch (e$1) {
  932. case "detail":
  933. t = "讨论详情", (async () => {
  934. const e = await Ze();
  935. if (e) if (e.replies && e.replies[0] && e.replies[0].content && "NEED_OBSERVE" === e.replies[0].content) {
  936. let e;
  937. console.debug("NEED_OBSERVE"), e = et((async () => {
  938. console.log("Replies changed"), e && e();
  939. const t = await Ze();
  940. t && (console.debug("topicDetail", t), i(t), p || f("idle"));
  941. }));
  942. } else i(e), p || f("idle");
  943. })();
  944. break;
  945.  
  946. case "list":
  947. t = "讨论列表";
  948. const e = function() {
  949. const e = "new" === (oe() && !ie() ? "new" : ie() && !oe() ? "legacy" : null);
  950. try {
  951. if (e) {
  952. const e = Ct();
  953. return console.debug("getNewItems", e), e;
  954. }
  955. {
  956. const e = wt();
  957. return console.debug("getLegacyItems", e), e;
  958. }
  959. } catch (t) {
  960. St(t);
  961. }
  962. }();
  963. e && (s(e), w || p || S("idle"));
  964. break;
  965.  
  966. default:
  967. t = "未知页面";
  968. }
  969. b(`检测到当前为 [${t}]`);
  970. }
  971. }), [ e$1 ]), function({topicDetail: e$1}) {
  972. const {addLogItem: t} = Xe();
  973. e.useEffect((() => {
  974. e$1 && (e$1.title && t(`获取到讨论标题:${e$1.title}`), e$1.content && t(`获取到讨论内容:${e$1.content}`),
  975. e$1.replies && t(`获取到讨论回复:共 ${e$1.replies.length} 条`));
  976. }), [ e$1 ]);
  977. }({
  978. topicDetail: o
  979. });
  980. const j = Ot({
  981. setCurrentStatus: f
  982. });
  983. !function({setCurrentStatus: e$1, currentStatus: t, setIsButtonDisabled: r, setIsInActionFrame: o, actionFrameStatusStatus: i, actionFrameRunningType: a}) {
  984. const {addLogItem: s} = Xe();
  985. e.useEffect((() => {
  986. switch (t) {
  987. case "running":
  988. default:
  989. r(!0);
  990. break;
  991.  
  992. case "triggered":
  993. r(!0), e$1("running"), re() ? At({
  994. setCurrentStatus: e$1
  995. }) : ne() && Ut({
  996. setCurrentStatus: e$1
  997. });
  998. break;
  999.  
  1000. case "success":
  1001. r(!1), re() ? gt("singleReply") : "finished" === i ? "multiReply" === a ? gt("multiReply") : "newTopic" === a ? gt("newTopic") : gt() : gt(),
  1002. s("All done!");
  1003. break;
  1004.  
  1005. case "idle":
  1006. r(!1);
  1007. const t = ht();
  1008. (pt() || t) && e$1("triggered");
  1009. break;
  1010.  
  1011. case "failed":
  1012. r(!1);
  1013. }
  1014. }), [ t ]);
  1015. }({
  1016. setCurrentStatus: f,
  1017. currentStatus: p,
  1018. setIsButtonDisabled: y,
  1019. setIsInActionFrame: m,
  1020. actionFrameStatusStatus: w,
  1021. actionFrameRunningType: C
  1022. }), e.useEffect((() => {
  1023. a.length && b(`获取到发起的讨论:共 ${a.length} 条`);
  1024. }), [ a ]), e.useEffect((() => {
  1025. h && "success" === p && (console.debug("PostMessageSuccess"), Pt(mt() || 0));
  1026. }), [ h, p ]);
  1027. return e.useEffect((() => {
  1028. const e = w;
  1029. e && console.debug("PanelActions useEffect actionFrameStatus", v);
  1030. const t = async () => {
  1031. if (e) {
  1032. const t = await async function(e) {
  1033. const {actionFrameStatus: t} = Ye.getState(), n = t.total, {topicList: r} = Ye.getState();
  1034. console.debug("RunningTopicListReply Status", e), "triggered" === e && (zt(), Lt("开始:批量回复讨论"),
  1035. await Je(.3), It("waitingToStart"));
  1036. const o = t.index || 0;
  1037. try {
  1038. if ("waitingToStart" === e) {
  1039. const e = r[o].url;
  1040. if (e) {
  1041. const t = yt(e).toString(), n = bt(o, t).toString();
  1042. Nt(n), Lt(`正在回复讨论:${r[o].title}`), await Je(.5), Mt(), It("running");
  1043. } else St("未找到讨论链接"), It("failed");
  1044. }
  1045. if ("failed" === e && It("waitingToNext"), "success" === e) {
  1046. const e = r[o].title;
  1047. Lt(`已回复讨论:${e}`), await Je(1), It("waitingToNext");
  1048. }
  1049. const t = n || 0;
  1050. if ("waitingToNext" === e) return await Dt(o, t);
  1051. } catch (i) {
  1052. St(i), It("failed");
  1053. }
  1054. return !1;
  1055. }(e);
  1056. t && S("finished");
  1057. }
  1058. }, n = async () => {
  1059. if (e) {
  1060. const t = await async function(e) {
  1061. const {actionFrameStatus: t} = Ye.getState(), n = t.total, {titleList: r} = Ye.getState();
  1062. Ge.getState(), console.debug("RunningTopicListReply Status", e), "triggered" === e && (Qt(),
  1063. Zt("开始:批量发起讨论"), await Je(.3), Xt("waitingToStart"));
  1064. const o = t.index || 0;
  1065. try {
  1066. if ("waitingToStart" === e) {
  1067. const e = r[o], t = window.location.href, n = vt(e, t).toString();
  1068. if (n) {
  1069. const e = yt(n).toString(), t = bt(o, e).toString();
  1070. Jt(t), Zt(`正在创建新讨论:${r[o]}`), await Je(.5), Mt(), Xt("running");
  1071. } else St("未知错误"), Xt("failed");
  1072. }
  1073. if ("failed" === e && Xt("waitingToNext"), "success" === e) {
  1074. const e = r[o];
  1075. Zt(`已回复讨论:${e}`), await Je(1), Xt("waitingToNext");
  1076. }
  1077. const t = n || 0;
  1078. if ("waitingToNext" === e) return await en(o, t);
  1079. } catch (i) {
  1080. St(i), Xt("failed");
  1081. }
  1082. return !1;
  1083. }(e);
  1084. t && S("finished");
  1085. }
  1086. };
  1087. "triggered" === e || "waitingToStart" === e || "waitingToNext" === e || "failed" === e || "success" === e ? "multiReply" === C ? (t(),
  1088. f("running")) : "newTopic" === C && (n(), f("running")) : "finished" === e ? f("success") : "idle" === e && f("idle");
  1089. }), [ w ]), K.jsxs(K.Fragment, {
  1090. children: [ g && K.jsx(material.CircularProgress, {
  1091. size: "2em"
  1092. }), "success" === p && "detail" === e$1 && K.jsxs(K.Fragment, {
  1093. children: [ K.jsx(material.Icon, {
  1094. color: "success",
  1095. children: "done"
  1096. }), K.jsx(material.Typography, {
  1097. variant: "body2",
  1098. children: "已完成"
  1099. }) ]
  1100. }), "failed" === p && K.jsxs(K.Fragment, {
  1101. children: [ K.jsx(material.Icon, {
  1102. color: "error",
  1103. children: "error"
  1104. }), K.jsx(material.Typography, {
  1105. variant: "body2",
  1106. children: "错误"
  1107. }) ]
  1108. }), "detail" === e$1 && !h && K.jsxs(material.Button, {
  1109. autoFocus: "success" !== p,
  1110. disabled: g,
  1111. onClick: j,
  1112. children: [ ("success" === p || "failed" === p) && "再次", "回复讨论" ]
  1113. }), "list" === e$1 && !h && K.jsxs(K.Fragment, {
  1114. children: [ K.jsxs(material.Button, {
  1115. autoFocus: !0,
  1116. disabled: g,
  1117. onClick: async () => {
  1118. S("triggered"), k("newTopic");
  1119. },
  1120. children: [ "finished" === w && "newTopic" === C && K.jsx(material.Icon, {
  1121. color: "success",
  1122. children: "done"
  1123. }), "finished" === w && "newTopic" === C && "再次", "发起讨论" ]
  1124. }), K.jsxs(material.Button, {
  1125. autoFocus: "success" !== p || "finished" !== w,
  1126. disabled: g,
  1127. onClick: async () => {
  1128. S("triggered"), k("multiReply");
  1129. },
  1130. children: [ "finished" === w && "multiReply" === C && K.jsx(material.Icon, {
  1131. color: "success",
  1132. children: "done"
  1133. }), "finished" === w && "multiReply" === C ? "再次批量回复" : "批量回复讨论" ]
  1134. }) ]
  1135. }) ]
  1136. });
  1137. }
  1138.  
  1139. function nn(e, t) {
  1140. if (null == e) return {};
  1141. var n, r, o = {}, i = Object.keys(e);
  1142. for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
  1143. return o;
  1144. }
  1145.  
  1146. function rn() {
  1147. return rn = Object.assign ? Object.assign.bind() : function(e) {
  1148. for (var t = 1; t < arguments.length; t++) {
  1149. var n = arguments[t];
  1150. for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
  1151. }
  1152. return e;
  1153. }, rn.apply(this, arguments);
  1154. }
  1155.  
  1156. var on, an = {
  1157. exports: {}
  1158. }, sn = {}, ln = Symbol.for("react.element"), cn = Symbol.for("react.portal"), un = Symbol.for("react.fragment"), dn = Symbol.for("react.strict_mode"), pn = Symbol.for("react.profiler"), fn = Symbol.for("react.provider"), hn = Symbol.for("react.context"), mn = Symbol.for("react.server_context"), gn = Symbol.for("react.forward_ref"), yn = Symbol.for("react.suspense"), bn = Symbol.for("react.suspense_list"), vn = Symbol.for("react.memo"), xn = Symbol.for("react.lazy"), Sn = Symbol.for("react.offscreen");
  1159.  
  1160. function wn(e) {
  1161. if ("object" == typeof e && null !== e) {
  1162. var t = e.$$typeof;
  1163. switch (t) {
  1164. case ln:
  1165. switch (e = e.type) {
  1166. case un:
  1167. case pn:
  1168. case dn:
  1169. case yn:
  1170. case bn:
  1171. return e;
  1172.  
  1173. default:
  1174. switch (e = e && e.$$typeof) {
  1175. case mn:
  1176. case hn:
  1177. case gn:
  1178. case xn:
  1179. case vn:
  1180. case fn:
  1181. return e;
  1182.  
  1183. default:
  1184. return t;
  1185. }
  1186. }
  1187.  
  1188. case cn:
  1189. return t;
  1190. }
  1191. }
  1192. }
  1193.  
  1194. on = Symbol.for("react.module.reference"), sn.ContextConsumer = hn, sn.ContextProvider = fn,
  1195. sn.Element = ln, sn.ForwardRef = gn, sn.Fragment = un, sn.Lazy = xn, sn.Memo = vn,
  1196. sn.Portal = cn, sn.Profiler = pn, sn.StrictMode = dn, sn.Suspense = yn, sn.SuspenseList = bn,
  1197. sn.isAsyncMode = function() {
  1198. return !1;
  1199. }, sn.isConcurrentMode = function() {
  1200. return !1;
  1201. }, sn.isContextConsumer = function(e) {
  1202. return wn(e) === hn;
  1203. }, sn.isContextProvider = function(e) {
  1204. return wn(e) === fn;
  1205. }, sn.isElement = function(e) {
  1206. return "object" == typeof e && null !== e && e.$$typeof === ln;
  1207. }, sn.isForwardRef = function(e) {
  1208. return wn(e) === gn;
  1209. }, sn.isFragment = function(e) {
  1210. return wn(e) === un;
  1211. }, sn.isLazy = function(e) {
  1212. return wn(e) === xn;
  1213. }, sn.isMemo = function(e) {
  1214. return wn(e) === vn;
  1215. }, sn.isPortal = function(e) {
  1216. return wn(e) === cn;
  1217. }, sn.isProfiler = function(e) {
  1218. return wn(e) === pn;
  1219. }, sn.isStrictMode = function(e) {
  1220. return wn(e) === dn;
  1221. }, sn.isSuspense = function(e) {
  1222. return wn(e) === yn;
  1223. }, sn.isSuspenseList = function(e) {
  1224. return wn(e) === bn;
  1225. }, sn.isValidElementType = function(e) {
  1226. return "string" == typeof e || "function" == typeof e || e === un || e === pn || e === dn || e === yn || e === bn || e === Sn || "object" == typeof e && null !== e && (e.$$typeof === xn || e.$$typeof === vn || e.$$typeof === fn || e.$$typeof === hn || e.$$typeof === gn || e.$$typeof === on || void 0 !== e.getModuleId);
  1227. }, sn.typeOf = wn, an.exports = sn;
  1228.  
  1229. var Cn = an.exports;
  1230.  
  1231. function kn(e) {
  1232. var t, n, r = "";
  1233. if ("string" == typeof e || "number" == typeof e) r += e; else if ("object" == typeof e) if (Array.isArray(e)) {
  1234. var o = e.length;
  1235. for (t = 0; t < o; t++) e[t] && (n = kn(e[t])) && (r && (r += " "), r += n);
  1236. } else for (n in e) e[n] && (r && (r += " "), r += n);
  1237. return r;
  1238. }
  1239.  
  1240. function jn() {
  1241. for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = kn(e)) && (r && (r += " "),
  1242. r += t);
  1243. return r;
  1244. }
  1245.  
  1246. function Tn(e) {
  1247. if ("object" != typeof e || null === e) return !1;
  1248. const t = Object.getPrototypeOf(e);
  1249. return !(null !== t && t !== Object.prototype && null !== Object.getPrototypeOf(t) || Symbol.toStringTag in e || Symbol.iterator in e);
  1250. }
  1251.  
  1252. function Rn(e) {
  1253. if (!Tn(e)) return e;
  1254. const t = {};
  1255. return Object.keys(e).forEach((n => {
  1256. t[n] = Rn(e[n]);
  1257. })), t;
  1258. }
  1259.  
  1260. function En(e, t, n = {
  1261. clone: !0
  1262. }) {
  1263. const r = n.clone ? rn({}, e) : e;
  1264. return Tn(e) && Tn(t) && Object.keys(t).forEach((o => {
  1265. "__proto__" !== o && (Tn(t[o]) && o in e && Tn(e[o]) ? r[o] = En(e[o], t[o], n) : n.clone ? r[o] = Tn(t[o]) ? Rn(t[o]) : t[o] : r[o] = t[o]);
  1266. })), r;
  1267. }
  1268.  
  1269. const $n = Object.freeze(Object.defineProperty({
  1270. __proto__: null,
  1271. default: En,
  1272. isPlainObject: Tn
  1273. }, Symbol.toStringTag, {
  1274. value: "Module"
  1275. }));
  1276.  
  1277. function _n(e) {
  1278. let t = "https://mui.com/production-error/?code=" + e;
  1279. for (let n = 1; n < arguments.length; n += 1) t += "&args[]=" + encodeURIComponent(arguments[n]);
  1280. return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
  1281. }
  1282.  
  1283. const On = Object.freeze(Object.defineProperty({
  1284. __proto__: null,
  1285. default: _n
  1286. }, Symbol.toStringTag, {
  1287. value: "Module"
  1288. })), An = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
  1289.  
  1290. function Pn(e) {
  1291. const t = `${e}`.match(An);
  1292. return t && t[1] || "";
  1293. }
  1294.  
  1295. function Mn(e, t = "") {
  1296. return e.displayName || e.name || Pn(e) || t;
  1297. }
  1298.  
  1299. function In(e, t, n) {
  1300. const r = Mn(t);
  1301. return e.displayName || ("" !== r ? `${n}(${r})` : n);
  1302. }
  1303.  
  1304. const Fn = Object.freeze(Object.defineProperty({
  1305. __proto__: null,
  1306. default: function(e) {
  1307. if (null != e) {
  1308. if ("string" == typeof e) return e;
  1309. if ("function" == typeof e) return Mn(e, "Component");
  1310. if ("object" == typeof e) switch (e.$$typeof) {
  1311. case Cn.ForwardRef:
  1312. return In(e, e.render, "ForwardRef");
  1313.  
  1314. case Cn.Memo:
  1315. return In(e, e.type, "memo");
  1316.  
  1317. default:
  1318. return;
  1319. }
  1320. }
  1321. },
  1322. getFunctionName: Pn
  1323. }, Symbol.toStringTag, {
  1324. value: "Module"
  1325. }));
  1326.  
  1327. function Bn(e) {
  1328. if ("string" != typeof e) throw new Error(_n(7));
  1329. return e.charAt(0).toUpperCase() + e.slice(1);
  1330. }
  1331.  
  1332. const Nn = Object.freeze(Object.defineProperty({
  1333. __proto__: null,
  1334. default: Bn
  1335. }, Symbol.toStringTag, {
  1336. value: "Module"
  1337. }));
  1338.  
  1339. function Ln(e, t = 166) {
  1340. let n;
  1341. function r(...r) {
  1342. clearTimeout(n), n = setTimeout((() => {
  1343. e.apply(this, r);
  1344. }), t);
  1345. }
  1346. return r.clear = () => {
  1347. clearTimeout(n);
  1348. }, r;
  1349. }
  1350.  
  1351. function zn(e) {
  1352. return e && e.ownerDocument || document;
  1353. }
  1354.  
  1355. function Dn(e) {
  1356. return zn(e).defaultView || window;
  1357. }
  1358.  
  1359. const Wn = "undefined" != typeof window ? e__namespace.useLayoutEffect : e__namespace.useEffect;
  1360.  
  1361. function Vn(t) {
  1362. const n = e__namespace.useRef(t);
  1363. return Wn((() => {
  1364. n.current = t;
  1365. })), e__namespace.useRef(((...e) => (0, n.current)(...e))).current;
  1366. }
  1367.  
  1368. function Hn(...t) {
  1369. return e__namespace.useMemo((() => t.every((e => null == e)) ? null : e => {
  1370. t.forEach((t => {
  1371. !function(e, t) {
  1372. "function" == typeof e ? e(t) : e && (e.current = t);
  1373. }(t, e);
  1374. }));
  1375. }), t);
  1376. }
  1377.  
  1378. const qn = {};
  1379.  
  1380. const Kn = [];
  1381.  
  1382. class Un {
  1383. constructor() {
  1384. this.currentId = null, this.clear = () => {
  1385. null !== this.currentId && (clearTimeout(this.currentId), this.currentId = null);
  1386. }, this.disposeEffect = () => this.clear;
  1387. }
  1388. static create() {
  1389. return new Un;
  1390. }
  1391. start(e, t) {
  1392. this.clear(), this.currentId = setTimeout((() => {
  1393. this.currentId = null, t();
  1394. }), e);
  1395. }
  1396. }
  1397.  
  1398. function Xn() {
  1399. const t = function(t, n) {
  1400. const r = e__namespace.useRef(qn);
  1401. return r.current === qn && (r.current = t(n)), r;
  1402. }(Un.create).current;
  1403. var n;
  1404. return n = t.disposeEffect, e__namespace.useEffect(n, Kn), t;
  1405. }
  1406.  
  1407. let Gn = !0, Yn = !1;
  1408.  
  1409. const Jn = new Un, Zn = {
  1410. text: !0,
  1411. search: !0,
  1412. url: !0,
  1413. tel: !0,
  1414. email: !0,
  1415. password: !0,
  1416. number: !0,
  1417. date: !0,
  1418. month: !0,
  1419. week: !0,
  1420. time: !0,
  1421. datetime: !0,
  1422. "datetime-local": !0
  1423. };
  1424.  
  1425. function Qn(e) {
  1426. e.metaKey || e.altKey || e.ctrlKey || (Gn = !0);
  1427. }
  1428.  
  1429. function er() {
  1430. Gn = !1;
  1431. }
  1432.  
  1433. function tr() {
  1434. "hidden" === this.visibilityState && Yn && (Gn = !0);
  1435. }
  1436.  
  1437. function nr(e) {
  1438. const {target: t} = e;
  1439. try {
  1440. return t.matches(":focus-visible");
  1441. } catch (n) {}
  1442. return Gn || function(e) {
  1443. const {type: t, tagName: n} = e;
  1444. return !("INPUT" !== n || !Zn[t] || e.readOnly) || "TEXTAREA" === n && !e.readOnly || !!e.isContentEditable;
  1445. }(t);
  1446. }
  1447.  
  1448. function rr() {
  1449. const t = e__namespace.useCallback((e => {
  1450. var t;
  1451. null != e && ((t = e.ownerDocument).addEventListener("keydown", Qn, !0), t.addEventListener("mousedown", er, !0),
  1452. t.addEventListener("pointerdown", er, !0), t.addEventListener("touchstart", er, !0),
  1453. t.addEventListener("visibilitychange", tr, !0));
  1454. }), []), n = e__namespace.useRef(!1);
  1455. return {
  1456. isFocusVisibleRef: n,
  1457. onFocus: function(e) {
  1458. return !!nr(e) && (n.current = !0, !0);
  1459. },
  1460. onBlur: function() {
  1461. return !!n.current && (Yn = !0, Jn.start(100, (() => {
  1462. Yn = !1;
  1463. })), n.current = !1, !0);
  1464. },
  1465. ref: t
  1466. };
  1467. }
  1468.  
  1469. let or;
  1470.  
  1471. function ir() {
  1472. if (or) return or;
  1473. const e = document.createElement("div"), t = document.createElement("div");
  1474. return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl",
  1475. e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute",
  1476. e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e),
  1477. or = "reverse", e.scrollLeft > 0 ? or = "default" : (e.scrollLeft = 1, 0 === e.scrollLeft && (or = "negative")),
  1478. document.body.removeChild(e), or;
  1479. }
  1480.  
  1481. function ar(e, t) {
  1482. const n = e.scrollLeft;
  1483. if ("rtl" !== t) return n;
  1484. switch (ir()) {
  1485. case "negative":
  1486. return e.scrollWidth - e.clientWidth + n;
  1487.  
  1488. case "reverse":
  1489. return e.scrollWidth - e.clientWidth - n;
  1490.  
  1491. default:
  1492. return n;
  1493. }
  1494. }
  1495.  
  1496. function sr(e, t) {
  1497. const n = rn({}, t);
  1498. return Object.keys(e).forEach((r => {
  1499. if (r.toString().match(/^(components|slots)$/)) n[r] = rn({}, e[r], n[r]); else if (r.toString().match(/^(componentsProps|slotProps)$/)) {
  1500. const o = e[r] || {}, i = t[r];
  1501. n[r] = {}, i && Object.keys(i) ? o && Object.keys(o) ? (n[r] = rn({}, i), Object.keys(o).forEach((e => {
  1502. n[r][e] = sr(o[e], i[e]);
  1503. }))) : n[r] = i : n[r] = o;
  1504. } else void 0 === n[r] && (n[r] = e[r]);
  1505. })), n;
  1506. }
  1507.  
  1508. function lr(e, t, n = void 0) {
  1509. const r = {};
  1510. return Object.keys(e).forEach((o => {
  1511. r[o] = e[o].reduce(((e, r) => {
  1512. if (r) {
  1513. const o = t(r);
  1514. "" !== o && e.push(o), n && n[r] && e.push(n[r]);
  1515. }
  1516. return e;
  1517. }), []).join(" ");
  1518. })), r;
  1519. }
  1520.  
  1521. const cr = e => e, ur = (() => {
  1522. let e = cr;
  1523. return {
  1524. configure(t) {
  1525. e = t;
  1526. },
  1527. generate: t => e(t),
  1528. reset() {
  1529. e = cr;
  1530. }
  1531. };
  1532. })(), dr = {
  1533. active: "active",
  1534. checked: "checked",
  1535. completed: "completed",
  1536. disabled: "disabled",
  1537. error: "error",
  1538. expanded: "expanded",
  1539. focused: "focused",
  1540. focusVisible: "focusVisible",
  1541. open: "open",
  1542. readOnly: "readOnly",
  1543. required: "required",
  1544. selected: "selected"
  1545. };
  1546.  
  1547. function pr(e, t, n = "Mui") {
  1548. const r = dr[t];
  1549. return r ? `${n}-${r}` : `${ur.generate(e)}-${t}`;
  1550. }
  1551.  
  1552. function fr(e, t, n = "Mui") {
  1553. const r = {};
  1554. return t.forEach((t => {
  1555. r[t] = pr(e, t, n);
  1556. })), r;
  1557. }
  1558.  
  1559. const hr = Object.freeze(Object.defineProperty({
  1560. __proto__: null,
  1561. default: function(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
  1562. return Math.max(t, Math.min(e, n));
  1563. }
  1564. }, Symbol.toStringTag, {
  1565. value: "Module"
  1566. }));
  1567.  
  1568. function mr(e) {
  1569. if (void 0 === e) return {};
  1570. const t = {};
  1571. return Object.keys(e).filter((t => !(t.match(/^on[A-Z]/) && "function" == typeof e[t]))).forEach((n => {
  1572. t[n] = e[n];
  1573. })), t;
  1574. }
  1575.  
  1576. function gr(e) {
  1577. const {getSlotProps: t, additionalProps: n, externalSlotProps: r, externalForwardedProps: o, className: i} = e;
  1578. if (!t) {
  1579. const e = jn(null == n ? void 0 : n.className, i, null == o ? void 0 : o.className, null == r ? void 0 : r.className), t = rn({}, null == n ? void 0 : n.style, null == o ? void 0 : o.style, null == r ? void 0 : r.style), a = rn({}, n, o, r);
  1580. return e.length > 0 && (a.className = e), Object.keys(t).length > 0 && (a.style = t),
  1581. {
  1582. props: a,
  1583. internalRef: void 0
  1584. };
  1585. }
  1586. const a = function(e, t = []) {
  1587. if (void 0 === e) return {};
  1588. const n = {};
  1589. return Object.keys(e).filter((n => n.match(/^on[A-Z]/) && "function" == typeof e[n] && !t.includes(n))).forEach((t => {
  1590. n[t] = e[t];
  1591. })), n;
  1592. }(rn({}, o, r)), s = mr(r), l = mr(o), c = t(a), u = jn(null == c ? void 0 : c.className, null == n ? void 0 : n.className, i, null == o ? void 0 : o.className, null == r ? void 0 : r.className), d = rn({}, null == c ? void 0 : c.style, null == n ? void 0 : n.style, null == o ? void 0 : o.style, null == r ? void 0 : r.style), p = rn({}, c, n, l, s);
  1593. return u.length > 0 && (p.className = u), Object.keys(d).length > 0 && (p.style = d),
  1594. {
  1595. props: p,
  1596. internalRef: c.ref
  1597. };
  1598. }
  1599.  
  1600. const yr = [ "elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps" ];
  1601.  
  1602. function br(e) {
  1603. var t;
  1604. const {elementType: n, externalSlotProps: r, ownerState: o, skipResolvingSlotProps: i = !1} = e, a = nn(e, yr), s = i ? {} : function(e, t, n) {
  1605. return "function" == typeof e ? e(t, n) : e;
  1606. }(r, o), {props: l, internalRef: c} = gr(rn({}, a, {
  1607. externalSlotProps: s
  1608. })), u = function(e, t, n) {
  1609. return void 0 === e || "string" == typeof e ? t : rn({}, t, {
  1610. ownerState: rn({}, t.ownerState, n)
  1611. });
  1612. }(n, rn({}, l, {
  1613. ref: Hn(c, null == s ? void 0 : s.ref, null == (t = e.additionalProps) ? void 0 : t.ref)
  1614. }), o);
  1615. return u;
  1616. }
  1617.  
  1618. const vr = e__namespace.createContext(), xr = () => {
  1619. const t = e__namespace.useContext(vr);
  1620. return null != t && t;
  1621. };
  1622.  
  1623. var Sr, wr = {}, Cr = {
  1624. exports: {}
  1625. };
  1626.  
  1627. (Sr = Cr).exports = function(e) {
  1628. return e && e.__esModule ? e : {
  1629. default: e
  1630. };
  1631. }, Sr.exports.__esModule = !0, Sr.exports.default = Sr.exports;
  1632.  
  1633. var kr, jr = Cr.exports, Tr = {
  1634. exports: {}
  1635. };
  1636.  
  1637. var Rr, Er = {
  1638. exports: {}
  1639. };
  1640.  
  1641. var $r = function() {
  1642. function e(e) {
  1643. var t = this;
  1644. this._insertTag = function(e) {
  1645. var n;
  1646. n = 0 === t.tags.length ? t.insertionPoint ? t.insertionPoint.nextSibling : t.prepend ? t.container.firstChild : t.before : t.tags[t.tags.length - 1].nextSibling,
  1647. t.container.insertBefore(e, n), t.tags.push(e);
  1648. }, this.isSpeedy = void 0 === e.speedy || e.speedy, this.tags = [], this.ctr = 0,
  1649. this.nonce = e.nonce, this.key = e.key, this.container = e.container, this.prepend = e.prepend,
  1650. this.insertionPoint = e.insertionPoint, this.before = null;
  1651. }
  1652. var t = e.prototype;
  1653. return t.hydrate = function(e) {
  1654. e.forEach(this._insertTag);
  1655. }, t.insert = function(e) {
  1656. this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(function(e) {
  1657. var t = document.createElement("style");
  1658. return t.setAttribute("data-emotion", e.key), void 0 !== e.nonce && t.setAttribute("nonce", e.nonce),
  1659. t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
  1660. }(this));
  1661. var t = this.tags[this.tags.length - 1];
  1662. if (this.isSpeedy) {
  1663. var n = function(e) {
  1664. if (e.sheet) return e.sheet;
  1665. for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
  1666. }(t);
  1667. try {
  1668. n.insertRule(e, n.cssRules.length);
  1669. } catch (r) {}
  1670. } else t.appendChild(document.createTextNode(e));
  1671. this.ctr++;
  1672. }, t.flush = function() {
  1673. this.tags.forEach((function(e) {
  1674. return e.parentNode && e.parentNode.removeChild(e);
  1675. })), this.tags = [], this.ctr = 0;
  1676. }, e;
  1677. }(), _r = "-ms-", Or = "-moz-", Ar = "-webkit-", Pr = "comm", Mr = "rule", Ir = "decl", Fr = "@keyframes", Br = Math.abs, Nr = String.fromCharCode, Lr = Object.assign;
  1678.  
  1679. function zr(e) {
  1680. return e.trim();
  1681. }
  1682.  
  1683. function Dr(e, t, n) {
  1684. return e.replace(t, n);
  1685. }
  1686.  
  1687. function Wr(e, t) {
  1688. return e.indexOf(t);
  1689. }
  1690.  
  1691. function Vr(e, t) {
  1692. return 0 | e.charCodeAt(t);
  1693. }
  1694.  
  1695. function Hr(e, t, n) {
  1696. return e.slice(t, n);
  1697. }
  1698.  
  1699. function qr(e) {
  1700. return e.length;
  1701. }
  1702.  
  1703. function Kr(e) {
  1704. return e.length;
  1705. }
  1706.  
  1707. function Ur(e, t) {
  1708. return t.push(e), e;
  1709. }
  1710.  
  1711. var Xr = 1, Gr = 1, Yr = 0, Jr = 0, Zr = 0, Qr = "";
  1712.  
  1713. function eo(e, t, n, r, o, i, a) {
  1714. return {
  1715. value: e,
  1716. root: t,
  1717. parent: n,
  1718. type: r,
  1719. props: o,
  1720. children: i,
  1721. line: Xr,
  1722. column: Gr,
  1723. length: a,
  1724. return: ""
  1725. };
  1726. }
  1727.  
  1728. function to(e, t) {
  1729. return Lr(eo("", null, null, "", null, null, 0), e, {
  1730. length: -e.length
  1731. }, t);
  1732. }
  1733.  
  1734. function no() {
  1735. return Zr = Jr < Yr ? Vr(Qr, Jr++) : 0, Gr++, 10 === Zr && (Gr = 1, Xr++), Zr;
  1736. }
  1737.  
  1738. function ro() {
  1739. return Vr(Qr, Jr);
  1740. }
  1741.  
  1742. function oo() {
  1743. return Jr;
  1744. }
  1745.  
  1746. function io(e, t) {
  1747. return Hr(Qr, e, t);
  1748. }
  1749.  
  1750. function ao(e) {
  1751. switch (e) {
  1752. case 0:
  1753. case 9:
  1754. case 10:
  1755. case 13:
  1756. case 32:
  1757. return 5;
  1758.  
  1759. case 33:
  1760. case 43:
  1761. case 44:
  1762. case 47:
  1763. case 62:
  1764. case 64:
  1765. case 126:
  1766. case 59:
  1767. case 123:
  1768. case 125:
  1769. return 4;
  1770.  
  1771. case 58:
  1772. return 3;
  1773.  
  1774. case 34:
  1775. case 39:
  1776. case 40:
  1777. case 91:
  1778. return 2;
  1779.  
  1780. case 41:
  1781. case 93:
  1782. return 1;
  1783. }
  1784. return 0;
  1785. }
  1786.  
  1787. function so(e) {
  1788. return Xr = Gr = 1, Yr = qr(Qr = e), Jr = 0, [];
  1789. }
  1790.  
  1791. function lo(e) {
  1792. return Qr = "", e;
  1793. }
  1794.  
  1795. function co(e) {
  1796. return zr(io(Jr - 1, fo(91 === e ? e + 2 : 40 === e ? e + 1 : e)));
  1797. }
  1798.  
  1799. function uo(e) {
  1800. for (;(Zr = ro()) && Zr < 33; ) no();
  1801. return ao(e) > 2 || ao(Zr) > 3 ? "" : " ";
  1802. }
  1803.  
  1804. function po(e, t) {
  1805. for (;--t && no() && !(Zr < 48 || Zr > 102 || Zr > 57 && Zr < 65 || Zr > 70 && Zr < 97); ) ;
  1806. return io(e, oo() + (t < 6 && 32 == ro() && 32 == no()));
  1807. }
  1808.  
  1809. function fo(e) {
  1810. for (;no(); ) switch (Zr) {
  1811. case e:
  1812. return Jr;
  1813.  
  1814. case 34:
  1815. case 39:
  1816. 34 !== e && 39 !== e && fo(Zr);
  1817. break;
  1818.  
  1819. case 40:
  1820. 41 === e && fo(e);
  1821. break;
  1822.  
  1823. case 92:
  1824. no();
  1825. }
  1826. return Jr;
  1827. }
  1828.  
  1829. function ho(e, t) {
  1830. for (;no() && e + Zr !== 57 && (e + Zr !== 84 || 47 !== ro()); ) ;
  1831. return "/*" + io(t, Jr - 1) + "*" + Nr(47 === e ? e : no());
  1832. }
  1833.  
  1834. function mo(e) {
  1835. for (;!ao(ro()); ) no();
  1836. return io(e, Jr);
  1837. }
  1838.  
  1839. function go(e) {
  1840. return lo(yo("", null, null, null, [ "" ], e = so(e), 0, [ 0 ], e));
  1841. }
  1842.  
  1843. function yo(e, t, n, r, o, i, a, s, l) {
  1844. for (var c = 0, u = 0, d = a, p = 0, f = 0, h = 0, m = 1, g = 1, y = 1, b = 0, v = "", x = o, S = i, w = r, C = v; g; ) switch (h = b,
  1845. b = no()) {
  1846. case 40:
  1847. if (108 != h && 58 == Vr(C, d - 1)) {
  1848. -1 != Wr(C += Dr(co(b), "&", "&\f"), "&\f") && (y = -1);
  1849. break;
  1850. }
  1851.  
  1852. case 34:
  1853. case 39:
  1854. case 91:
  1855. C += co(b);
  1856. break;
  1857.  
  1858. case 9:
  1859. case 10:
  1860. case 13:
  1861. case 32:
  1862. C += uo(h);
  1863. break;
  1864.  
  1865. case 92:
  1866. C += po(oo() - 1, 7);
  1867. continue;
  1868.  
  1869. case 47:
  1870. switch (ro()) {
  1871. case 42:
  1872. case 47:
  1873. Ur(vo(ho(no(), oo()), t, n), l);
  1874. break;
  1875.  
  1876. default:
  1877. C += "/";
  1878. }
  1879. break;
  1880.  
  1881. case 123 * m:
  1882. s[c++] = qr(C) * y;
  1883.  
  1884. case 125 * m:
  1885. case 59:
  1886. case 0:
  1887. switch (b) {
  1888. case 0:
  1889. case 125:
  1890. g = 0;
  1891.  
  1892. case 59 + u:
  1893. -1 == y && (C = Dr(C, /\f/g, "")), f > 0 && qr(C) - d && Ur(f > 32 ? xo(C + ";", r, n, d - 1) : xo(Dr(C, " ", "") + ";", r, n, d - 2), l);
  1894. break;
  1895.  
  1896. case 59:
  1897. C += ";";
  1898.  
  1899. default:
  1900. if (Ur(w = bo(C, t, n, c, u, o, s, v, x = [], S = [], d), i), 123 === b) if (0 === u) yo(C, t, w, w, x, i, d, s, S); else switch (99 === p && 110 === Vr(C, 3) ? 100 : p) {
  1901. case 100:
  1902. case 108:
  1903. case 109:
  1904. case 115:
  1905. yo(e, w, w, r && Ur(bo(e, w, w, 0, 0, o, s, v, o, x = [], d), S), o, S, d, s, r ? x : S);
  1906. break;
  1907.  
  1908. default:
  1909. yo(C, w, w, w, [ "" ], S, 0, s, S);
  1910. }
  1911. }
  1912. c = u = f = 0, m = y = 1, v = C = "", d = a;
  1913. break;
  1914.  
  1915. case 58:
  1916. d = 1 + qr(C), f = h;
  1917.  
  1918. default:
  1919. if (m < 1) if (123 == b) --m; else if (125 == b && 0 == m++ && 125 == (Zr = Jr > 0 ? Vr(Qr, --Jr) : 0,
  1920. Gr--, 10 === Zr && (Gr = 1, Xr--), Zr)) continue;
  1921. switch (C += Nr(b), b * m) {
  1922. case 38:
  1923. y = u > 0 ? 1 : (C += "\f", -1);
  1924. break;
  1925.  
  1926. case 44:
  1927. s[c++] = (qr(C) - 1) * y, y = 1;
  1928. break;
  1929.  
  1930. case 64:
  1931. 45 === ro() && (C += co(no())), p = ro(), u = d = qr(v = C += mo(oo())), b++;
  1932. break;
  1933.  
  1934. case 45:
  1935. 45 === h && 2 == qr(C) && (m = 0);
  1936. }
  1937. }
  1938. return i;
  1939. }
  1940.  
  1941. function bo(e, t, n, r, o, i, a, s, l, c, u) {
  1942. for (var d = o - 1, p = 0 === o ? i : [ "" ], f = Kr(p), h = 0, m = 0, g = 0; h < r; ++h) for (var y = 0, b = Hr(e, d + 1, d = Br(m = a[h])), v = e; y < f; ++y) (v = zr(m > 0 ? p[y] + " " + b : Dr(b, /&\f/g, p[y]))) && (l[g++] = v);
  1943. return eo(e, t, n, 0 === o ? Mr : s, l, c, u);
  1944. }
  1945.  
  1946. function vo(e, t, n) {
  1947. return eo(e, t, n, Pr, Nr(Zr), Hr(e, 2, -2), 0);
  1948. }
  1949.  
  1950. function xo(e, t, n, r) {
  1951. return eo(e, t, n, Ir, Hr(e, 0, r), Hr(e, r + 1, -1), r);
  1952. }
  1953.  
  1954. function So(e, t) {
  1955. for (var n = "", r = Kr(e), o = 0; o < r; o++) n += t(e[o], o, e, t) || "";
  1956. return n;
  1957. }
  1958.  
  1959. function wo(e, t, n, r) {
  1960. switch (e.type) {
  1961. case "@layer":
  1962. if (e.children.length) break;
  1963.  
  1964. case "@import":
  1965. case Ir:
  1966. return e.return = e.return || e.value;
  1967.  
  1968. case Pr:
  1969. return "";
  1970.  
  1971. case Fr:
  1972. return e.return = e.value + "{" + So(e.children, r) + "}";
  1973.  
  1974. case Mr:
  1975. e.value = e.props.join(",");
  1976. }
  1977. return qr(n = So(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
  1978. }
  1979.  
  1980. var Co = function(e, t, n) {
  1981. for (var r = 0, o = 0; r = o, o = ro(), 38 === r && 12 === o && (t[n] = 1), !ao(o); ) no();
  1982. return io(e, Jr);
  1983. }, ko = function(e, t) {
  1984. return lo(function(e, t) {
  1985. var n = -1, r = 44;
  1986. do {
  1987. switch (ao(r)) {
  1988. case 0:
  1989. 38 === r && 12 === ro() && (t[n] = 1), e[n] += Co(Jr - 1, t, n);
  1990. break;
  1991.  
  1992. case 2:
  1993. e[n] += co(r);
  1994. break;
  1995.  
  1996. case 4:
  1997. if (44 === r) {
  1998. e[++n] = 58 === ro() ? "&\f" : "", t[n] = e[n].length;
  1999. break;
  2000. }
  2001.  
  2002. default:
  2003. e[n] += Nr(r);
  2004. }
  2005. } while (r = no());
  2006. return e;
  2007. }(so(e), t));
  2008. }, jo = new WeakMap, To = function(e) {
  2009. if ("rule" === e.type && e.parent && !(e.length < 1)) {
  2010. for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; "rule" !== n.type; ) if (!(n = n.parent)) return;
  2011. if ((1 !== e.props.length || 58 === t.charCodeAt(0) || jo.get(n)) && !r) {
  2012. jo.set(e, !0);
  2013. for (var o = [], i = ko(t, o), a = n.props, s = 0, l = 0; s < i.length; s++) for (var c = 0; c < a.length; c++,
  2014. l++) e.props[l] = o[s] ? i[s].replace(/&\f/g, a[c]) : a[c] + " " + i[s];
  2015. }
  2016. }
  2017. }, Ro = function(e) {
  2018. if ("decl" === e.type) {
  2019. var t = e.value;
  2020. 108 === t.charCodeAt(0) && 98 === t.charCodeAt(2) && (e.return = "", e.value = "");
  2021. }
  2022. };
  2023.  
  2024. function Eo(e, t) {
  2025. switch (function(e, t) {
  2026. return 45 ^ Vr(e, 0) ? (((t << 2 ^ Vr(e, 0)) << 2 ^ Vr(e, 1)) << 2 ^ Vr(e, 2)) << 2 ^ Vr(e, 3) : 0;
  2027. }(e, t)) {
  2028. case 5103:
  2029. return Ar + "print-" + e + e;
  2030.  
  2031. case 5737:
  2032. case 4201:
  2033. case 3177:
  2034. case 3433:
  2035. case 1641:
  2036. case 4457:
  2037. case 2921:
  2038. case 5572:
  2039. case 6356:
  2040. case 5844:
  2041. case 3191:
  2042. case 6645:
  2043. case 3005:
  2044. case 6391:
  2045. case 5879:
  2046. case 5623:
  2047. case 6135:
  2048. case 4599:
  2049. case 4855:
  2050. case 4215:
  2051. case 6389:
  2052. case 5109:
  2053. case 5365:
  2054. case 5621:
  2055. case 3829:
  2056. return Ar + e + e;
  2057.  
  2058. case 5349:
  2059. case 4246:
  2060. case 4810:
  2061. case 6968:
  2062. case 2756:
  2063. return Ar + e + Or + e + _r + e + e;
  2064.  
  2065. case 6828:
  2066. case 4268:
  2067. return Ar + e + _r + e + e;
  2068.  
  2069. case 6165:
  2070. return Ar + e + _r + "flex-" + e + e;
  2071.  
  2072. case 5187:
  2073. return Ar + e + Dr(e, /(\w+).+(:[^]+)/, Ar + "box-$1$2" + _r + "flex-$1$2") + e;
  2074.  
  2075. case 5443:
  2076. return Ar + e + _r + "flex-item-" + Dr(e, /flex-|-self/, "") + e;
  2077.  
  2078. case 4675:
  2079. return Ar + e + _r + "flex-line-pack" + Dr(e, /align-content|flex-|-self/, "") + e;
  2080.  
  2081. case 5548:
  2082. return Ar + e + _r + Dr(e, "shrink", "negative") + e;
  2083.  
  2084. case 5292:
  2085. return Ar + e + _r + Dr(e, "basis", "preferred-size") + e;
  2086.  
  2087. case 6060:
  2088. return Ar + "box-" + Dr(e, "-grow", "") + Ar + e + _r + Dr(e, "grow", "positive") + e;
  2089.  
  2090. case 4554:
  2091. return Ar + Dr(e, /([^-])(transform)/g, "$1" + Ar + "$2") + e;
  2092.  
  2093. case 6187:
  2094. return Dr(Dr(Dr(e, /(zoom-|grab)/, Ar + "$1"), /(image-set)/, Ar + "$1"), e, "") + e;
  2095.  
  2096. case 5495:
  2097. case 3959:
  2098. return Dr(e, /(image-set\([^]*)/, Ar + "$1$`$1");
  2099.  
  2100. case 4968:
  2101. return Dr(Dr(e, /(.+:)(flex-)?(.*)/, Ar + "box-pack:$3" + _r + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Ar + e + e;
  2102.  
  2103. case 4095:
  2104. case 3583:
  2105. case 4068:
  2106. case 2532:
  2107. return Dr(e, /(.+)-inline(.+)/, Ar + "$1$2") + e;
  2108.  
  2109. case 8116:
  2110. case 7059:
  2111. case 5753:
  2112. case 5535:
  2113. case 5445:
  2114. case 5701:
  2115. case 4933:
  2116. case 4677:
  2117. case 5533:
  2118. case 5789:
  2119. case 5021:
  2120. case 4765:
  2121. if (qr(e) - 1 - t > 6) switch (Vr(e, t + 1)) {
  2122. case 109:
  2123. if (45 !== Vr(e, t + 4)) break;
  2124.  
  2125. case 102:
  2126. return Dr(e, /(.+:)(.+)-([^]+)/, "$1" + Ar + "$2-$3$1" + Or + (108 == Vr(e, t + 3) ? "$3" : "$2-$3")) + e;
  2127.  
  2128. case 115:
  2129. return ~Wr(e, "stretch") ? Eo(Dr(e, "stretch", "fill-available"), t) + e : e;
  2130. }
  2131. break;
  2132.  
  2133. case 4949:
  2134. if (115 !== Vr(e, t + 1)) break;
  2135.  
  2136. case 6444:
  2137. switch (Vr(e, qr(e) - 3 - (~Wr(e, "!important") && 10))) {
  2138. case 107:
  2139. return Dr(e, ":", ":" + Ar) + e;
  2140.  
  2141. case 101:
  2142. return Dr(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Ar + (45 === Vr(e, 14) ? "inline-" : "") + "box$3$1" + Ar + "$2$3$1" + _r + "$2box$3") + e;
  2143. }
  2144. break;
  2145.  
  2146. case 5936:
  2147. switch (Vr(e, t + 11)) {
  2148. case 114:
  2149. return Ar + e + _r + Dr(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
  2150.  
  2151. case 108:
  2152. return Ar + e + _r + Dr(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
  2153.  
  2154. case 45:
  2155. return Ar + e + _r + Dr(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
  2156. }
  2157. return Ar + e + _r + e + e;
  2158. }
  2159. return e;
  2160. }
  2161.  
  2162. var $o = [ function(e, t, n, r) {
  2163. if (e.length > -1 && !e.return) switch (e.type) {
  2164. case Ir:
  2165. e.return = Eo(e.value, e.length);
  2166. break;
  2167.  
  2168. case Fr:
  2169. return So([ to(e, {
  2170. value: Dr(e.value, "@", "@" + Ar)
  2171. }) ], r);
  2172.  
  2173. case Mr:
  2174. if (e.length) return function(e, t) {
  2175. return e.map(t).join("");
  2176. }(e.props, (function(t) {
  2177. switch (function(e, t) {
  2178. return (e = t.exec(e)) ? e[0] : e;
  2179. }(t, /(::plac\w+|:read-\w+)/)) {
  2180. case ":read-only":
  2181. case ":read-write":
  2182. return So([ to(e, {
  2183. props: [ Dr(t, /:(read-\w+)/, ":-moz-$1") ]
  2184. }) ], r);
  2185.  
  2186. case "::placeholder":
  2187. return So([ to(e, {
  2188. props: [ Dr(t, /:(plac\w+)/, ":" + Ar + "input-$1") ]
  2189. }), to(e, {
  2190. props: [ Dr(t, /:(plac\w+)/, ":-moz-$1") ]
  2191. }), to(e, {
  2192. props: [ Dr(t, /:(plac\w+)/, _r + "input-$1") ]
  2193. }) ], r);
  2194. }
  2195. return "";
  2196. }));
  2197. }
  2198. } ];
  2199.  
  2200. let _o;
  2201.  
  2202. function Oo(e, t) {
  2203. return R(e, t);
  2204. }
  2205.  
  2206. "object" == typeof document && (_o = function(e) {
  2207. var t = e.key;
  2208. if ("css" === t) {
  2209. var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
  2210. Array.prototype.forEach.call(n, (function(e) {
  2211. -1 !== e.getAttribute("data-emotion").indexOf(" ") && (document.head.appendChild(e),
  2212. e.setAttribute("data-s", ""));
  2213. }));
  2214. }
  2215. var r, o, i = e.stylisPlugins || $o, a = {}, s = [];
  2216. r = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + t + ' "]'), (function(e) {
  2217. for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) a[t[n]] = !0;
  2218. s.push(e);
  2219. }));
  2220. var l, c, u, d, p = [ wo, (d = function(e) {
  2221. l.insert(e);
  2222. }, function(e) {
  2223. e.root || (e = e.return) && d(e);
  2224. }) ], f = (c = [ To, Ro ].concat(i, p), u = Kr(c), function(e, t, n, r) {
  2225. for (var o = "", i = 0; i < u; i++) o += c[i](e, t, n, r) || "";
  2226. return o;
  2227. });
  2228. o = function(e, t, n, r) {
  2229. l = n, So(go(e ? e + "{" + t.styles + "}" : t.styles), f), r && (h.inserted[t.name] = !0);
  2230. };
  2231. var h = {
  2232. key: t,
  2233. sheet: new $r({
  2234. key: t,
  2235. container: r,
  2236. nonce: e.nonce,
  2237. speedy: e.speedy,
  2238. prepend: e.prepend,
  2239. insertionPoint: e.insertionPoint
  2240. }),
  2241. nonce: e.nonce,
  2242. inserted: a,
  2243. registered: {},
  2244. insert: o
  2245. };
  2246. return h.sheet.hydrate(s), h;
  2247. }({
  2248. key: "css",
  2249. prepend: !0
  2250. }));
  2251.  
  2252. const Ao = F(Object.freeze(Object.defineProperty({
  2253. __proto__: null,
  2254. GlobalStyles: function(e) {
  2255. const {styles: t, defaultTheme: n = {}} = e, r = "function" == typeof t ? e => {
  2256. return t(null == (r = e) || 0 === Object.keys(r).length ? n : e);
  2257. var r;
  2258. } : t;
  2259. return K.jsx(react.Global, {
  2260. styles: r
  2261. });
  2262. },
  2263. StyledEngineProvider: function(e) {
  2264. const {injectFirst: t, children: n} = e;
  2265. return t && _o ? K.jsx(react.CacheProvider, {
  2266. value: _o,
  2267. children: n
  2268. }) : n;
  2269. },
  2270. ThemeContext: react.ThemeContext,
  2271. css: react.css,
  2272. default: Oo,
  2273. internal_processStyles: (e, t) => {
  2274. Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
  2275. },
  2276. keyframes: react.keyframes
  2277. }, Symbol.toStringTag, {
  2278. value: "Module"
  2279. }))), Po = F($n), Mo = F(Nn), Io = F(Fn), Fo = [ "values", "unit", "step" ], Bo = e => {
  2280. const t = Object.keys(e).map((t => ({
  2281. key: t,
  2282. val: e[t]
  2283. }))) || [];
  2284. return t.sort(((e, t) => e.val - t.val)), t.reduce(((e, t) => rn({}, e, {
  2285. [t.key]: t.val
  2286. })), {});
  2287. };
  2288.  
  2289. function No(e) {
  2290. const {values: t = {
  2291. xs: 0,
  2292. sm: 600,
  2293. md: 900,
  2294. lg: 1200,
  2295. xl: 1536
  2296. }, unit: n = "px", step: r = 5} = e, o = nn(e, Fo), i = Bo(t), a = Object.keys(i);
  2297. function s(e) {
  2298. return `@media (min-width:${"number" == typeof t[e] ? t[e] : e}${n})`;
  2299. }
  2300. function l(e) {
  2301. return `@media (max-width:${("number" == typeof t[e] ? t[e] : e) - r / 100}${n})`;
  2302. }
  2303. function c(e, o) {
  2304. const i = a.indexOf(o);
  2305. return `@media (min-width:${"number" == typeof t[e] ? t[e] : e}${n}) and (max-width:${(-1 !== i && "number" == typeof t[a[i]] ? t[a[i]] : o) - r / 100}${n})`;
  2306. }
  2307. return rn({
  2308. keys: a,
  2309. values: i,
  2310. up: s,
  2311. down: l,
  2312. between: c,
  2313. only: function(e) {
  2314. return a.indexOf(e) + 1 < a.length ? c(e, a[a.indexOf(e) + 1]) : s(e);
  2315. },
  2316. not: function(e) {
  2317. const t = a.indexOf(e);
  2318. return 0 === t ? s(a[1]) : t === a.length - 1 ? l(a[t]) : c(e, a[a.indexOf(e) + 1]).replace("@media", "@media not all and");
  2319. },
  2320. unit: n
  2321. }, o);
  2322. }
  2323.  
  2324. const Lo = {
  2325. borderRadius: 4
  2326. };
  2327.  
  2328. function zo(e, t) {
  2329. return t ? En(e, t, {
  2330. clone: !1
  2331. }) : e;
  2332. }
  2333.  
  2334. const Do = {
  2335. xs: 0,
  2336. sm: 600,
  2337. md: 900,
  2338. lg: 1200,
  2339. xl: 1536
  2340. }, Wo = {
  2341. keys: [ "xs", "sm", "md", "lg", "xl" ],
  2342. up: e => `@media (min-width:${Do[e]}px)`
  2343. };
  2344.  
  2345. function Vo(e, t, n) {
  2346. const r = e.theme || {};
  2347. if (Array.isArray(t)) {
  2348. const e = r.breakpoints || Wo;
  2349. return t.reduce(((r, o, i) => (r[e.up(e.keys[i])] = n(t[i]), r)), {});
  2350. }
  2351. if ("object" == typeof t) {
  2352. const e = r.breakpoints || Wo;
  2353. return Object.keys(t).reduce(((r, o) => {
  2354. if (-1 !== Object.keys(e.values || Do).indexOf(o)) {
  2355. r[e.up(o)] = n(t[o], o);
  2356. } else {
  2357. const e = o;
  2358. r[e] = t[e];
  2359. }
  2360. return r;
  2361. }), {});
  2362. }
  2363. return n(t);
  2364. }
  2365.  
  2366. function Ho(e, t, n = !0) {
  2367. if (!t || "string" != typeof t) return null;
  2368. if (e && e.vars && n) {
  2369. const n = `vars.${t}`.split(".").reduce(((e, t) => e && e[t] ? e[t] : null), e);
  2370. if (null != n) return n;
  2371. }
  2372. return t.split(".").reduce(((e, t) => e && null != e[t] ? e[t] : null), e);
  2373. }
  2374.  
  2375. function qo(e, t, n, r = n) {
  2376. let o;
  2377. return o = "function" == typeof e ? e(n) : Array.isArray(e) ? e[n] || r : Ho(e, n) || r,
  2378. t && (o = t(o, r, e)), o;
  2379. }
  2380.  
  2381. function Ko(e) {
  2382. const {prop: t, cssProperty: n = e.prop, themeKey: r, transform: o} = e, i = e => {
  2383. if (null == e[t]) return null;
  2384. const i = e[t], a = Ho(e.theme, r) || {};
  2385. return Vo(e, i, (e => {
  2386. let r = qo(a, o, e);
  2387. return e === r && "string" == typeof e && (r = qo(a, o, `${t}${"default" === e ? "" : Bn(e)}`, e)),
  2388. !1 === n ? r : {
  2389. [n]: r
  2390. };
  2391. }));
  2392. };
  2393. return i.propTypes = {}, i.filterProps = [ t ], i;
  2394. }
  2395.  
  2396. const Uo = {
  2397. m: "margin",
  2398. p: "padding"
  2399. }, Xo = {
  2400. t: "Top",
  2401. r: "Right",
  2402. b: "Bottom",
  2403. l: "Left",
  2404. x: [ "Left", "Right" ],
  2405. y: [ "Top", "Bottom" ]
  2406. }, Go = {
  2407. marginX: "mx",
  2408. marginY: "my",
  2409. paddingX: "px",
  2410. paddingY: "py"
  2411. }, Yo = function(e) {
  2412. const t = {};
  2413. return n => (void 0 === t[n] && (t[n] = e(n)), t[n]);
  2414. }((e => {
  2415. if (e.length > 2) {
  2416. if (!Go[e]) return [ e ];
  2417. e = Go[e];
  2418. }
  2419. const [t, n] = e.split(""), r = Uo[t], o = Xo[n] || "";
  2420. return Array.isArray(o) ? o.map((e => r + e)) : [ r + o ];
  2421. })), Jo = [ "m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd" ], Zo = [ "p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd" ];
  2422.  
  2423. function Qo(e, t, n, r) {
  2424. var o;
  2425. const i = null != (o = Ho(e, t, !1)) ? o : n;
  2426. return "number" == typeof i ? e => "string" == typeof e ? e : i * e : Array.isArray(i) ? e => "string" == typeof e ? e : i[e] : "function" == typeof i ? i : () => {};
  2427. }
  2428.  
  2429. function ei(e) {
  2430. return Qo(e, "spacing", 8);
  2431. }
  2432.  
  2433. function ti(e, t) {
  2434. if ("string" == typeof t || null == t) return t;
  2435. const n = e(Math.abs(t));
  2436. return t >= 0 ? n : "number" == typeof n ? -n : `-${n}`;
  2437. }
  2438.  
  2439. function ni(e, t, n, r) {
  2440. if (-1 === t.indexOf(n)) return null;
  2441. const o = function(e, t) {
  2442. return n => e.reduce(((e, r) => (e[r] = ti(t, n), e)), {});
  2443. }(Yo(n), r);
  2444. return Vo(e, e[n], o);
  2445. }
  2446.  
  2447. function ri(e, t) {
  2448. const n = ei(e.theme);
  2449. return Object.keys(e).map((r => ni(e, t, r, n))).reduce(zo, {});
  2450. }
  2451.  
  2452. function oi(e) {
  2453. return ri(e, Jo);
  2454. }
  2455.  
  2456. function ii(e) {
  2457. return ri(e, Zo);
  2458. }
  2459.  
  2460. function ai(...e) {
  2461. const t = e.reduce(((e, t) => (t.filterProps.forEach((n => {
  2462. e[n] = t;
  2463. })), e)), {}), n = e => Object.keys(e).reduce(((n, r) => t[r] ? zo(n, t[r](e)) : n), {});
  2464. return n.propTypes = {}, n.filterProps = e.reduce(((e, t) => e.concat(t.filterProps)), []),
  2465. n;
  2466. }
  2467.  
  2468. function si(e) {
  2469. return "number" != typeof e ? e : `${e}px solid`;
  2470. }
  2471.  
  2472. function li(e, t) {
  2473. return Ko({
  2474. prop: e,
  2475. themeKey: "borders",
  2476. transform: t
  2477. });
  2478. }
  2479.  
  2480. oi.propTypes = {}, oi.filterProps = Jo, ii.propTypes = {}, ii.filterProps = Zo;
  2481.  
  2482. const ci = li("border", si), ui = li("borderTop", si), di = li("borderRight", si), pi = li("borderBottom", si), fi = li("borderLeft", si), hi = li("borderColor"), mi = li("borderTopColor"), gi = li("borderRightColor"), yi = li("borderBottomColor"), bi = li("borderLeftColor"), vi = li("outline", si), xi = li("outlineColor"), Si = e => {
  2483. if (void 0 !== e.borderRadius && null !== e.borderRadius) {
  2484. const t = Qo(e.theme, "shape.borderRadius", 4), n = e => ({
  2485. borderRadius: ti(t, e)
  2486. });
  2487. return Vo(e, e.borderRadius, n);
  2488. }
  2489. return null;
  2490. };
  2491.  
  2492. Si.propTypes = {}, Si.filterProps = [ "borderRadius" ], ai(ci, ui, di, pi, fi, hi, mi, gi, yi, bi, Si, vi, xi);
  2493.  
  2494. const wi = e => {
  2495. if (void 0 !== e.gap && null !== e.gap) {
  2496. const t = Qo(e.theme, "spacing", 8), n = e => ({
  2497. gap: ti(t, e)
  2498. });
  2499. return Vo(e, e.gap, n);
  2500. }
  2501. return null;
  2502. };
  2503.  
  2504. wi.propTypes = {}, wi.filterProps = [ "gap" ];
  2505.  
  2506. const Ci = e => {
  2507. if (void 0 !== e.columnGap && null !== e.columnGap) {
  2508. const t = Qo(e.theme, "spacing", 8), n = e => ({
  2509. columnGap: ti(t, e)
  2510. });
  2511. return Vo(e, e.columnGap, n);
  2512. }
  2513. return null;
  2514. };
  2515.  
  2516. Ci.propTypes = {}, Ci.filterProps = [ "columnGap" ];
  2517.  
  2518. const ki = e => {
  2519. if (void 0 !== e.rowGap && null !== e.rowGap) {
  2520. const t = Qo(e.theme, "spacing", 8), n = e => ({
  2521. rowGap: ti(t, e)
  2522. });
  2523. return Vo(e, e.rowGap, n);
  2524. }
  2525. return null;
  2526. };
  2527.  
  2528. ki.propTypes = {}, ki.filterProps = [ "rowGap" ];
  2529.  
  2530. function ji(e, t) {
  2531. return "grey" === t ? t : e;
  2532. }
  2533.  
  2534. ai(wi, Ci, ki, Ko({
  2535. prop: "gridColumn"
  2536. }), Ko({
  2537. prop: "gridRow"
  2538. }), Ko({
  2539. prop: "gridAutoFlow"
  2540. }), Ko({
  2541. prop: "gridAutoColumns"
  2542. }), Ko({
  2543. prop: "gridAutoRows"
  2544. }), Ko({
  2545. prop: "gridTemplateColumns"
  2546. }), Ko({
  2547. prop: "gridTemplateRows"
  2548. }), Ko({
  2549. prop: "gridTemplateAreas"
  2550. }), Ko({
  2551. prop: "gridArea"
  2552. }));
  2553.  
  2554. function Ti(e) {
  2555. return e <= 1 && 0 !== e ? 100 * e + "%" : e;
  2556. }
  2557.  
  2558. ai(Ko({
  2559. prop: "color",
  2560. themeKey: "palette",
  2561. transform: ji
  2562. }), Ko({
  2563. prop: "bgcolor",
  2564. cssProperty: "backgroundColor",
  2565. themeKey: "palette",
  2566. transform: ji
  2567. }), Ko({
  2568. prop: "backgroundColor",
  2569. themeKey: "palette",
  2570. transform: ji
  2571. }));
  2572.  
  2573. const Ri = Ko({
  2574. prop: "width",
  2575. transform: Ti
  2576. }), Ei = e => {
  2577. if (void 0 !== e.maxWidth && null !== e.maxWidth) {
  2578. const t = t => {
  2579. var n, r;
  2580. const o = (null == (n = e.theme) || null == (n = n.breakpoints) || null == (n = n.values) ? void 0 : n[t]) || Do[t];
  2581. return o ? "px" !== (null == (r = e.theme) || null == (r = r.breakpoints) ? void 0 : r.unit) ? {
  2582. maxWidth: `${o}${e.theme.breakpoints.unit}`
  2583. } : {
  2584. maxWidth: o
  2585. } : {
  2586. maxWidth: Ti(t)
  2587. };
  2588. };
  2589. return Vo(e, e.maxWidth, t);
  2590. }
  2591. return null;
  2592. };
  2593.  
  2594. Ei.filterProps = [ "maxWidth" ];
  2595.  
  2596. const $i = Ko({
  2597. prop: "minWidth",
  2598. transform: Ti
  2599. }), _i = Ko({
  2600. prop: "height",
  2601. transform: Ti
  2602. }), Oi = Ko({
  2603. prop: "maxHeight",
  2604. transform: Ti
  2605. }), Ai = Ko({
  2606. prop: "minHeight",
  2607. transform: Ti
  2608. });
  2609.  
  2610. Ko({
  2611. prop: "size",
  2612. cssProperty: "width",
  2613. transform: Ti
  2614. }), Ko({
  2615. prop: "size",
  2616. cssProperty: "height",
  2617. transform: Ti
  2618. });
  2619.  
  2620. ai(Ri, Ei, $i, _i, Oi, Ai, Ko({
  2621. prop: "boxSizing"
  2622. }));
  2623.  
  2624. const Pi = {
  2625. border: {
  2626. themeKey: "borders",
  2627. transform: si
  2628. },
  2629. borderTop: {
  2630. themeKey: "borders",
  2631. transform: si
  2632. },
  2633. borderRight: {
  2634. themeKey: "borders",
  2635. transform: si
  2636. },
  2637. borderBottom: {
  2638. themeKey: "borders",
  2639. transform: si
  2640. },
  2641. borderLeft: {
  2642. themeKey: "borders",
  2643. transform: si
  2644. },
  2645. borderColor: {
  2646. themeKey: "palette"
  2647. },
  2648. borderTopColor: {
  2649. themeKey: "palette"
  2650. },
  2651. borderRightColor: {
  2652. themeKey: "palette"
  2653. },
  2654. borderBottomColor: {
  2655. themeKey: "palette"
  2656. },
  2657. borderLeftColor: {
  2658. themeKey: "palette"
  2659. },
  2660. outline: {
  2661. themeKey: "borders",
  2662. transform: si
  2663. },
  2664. outlineColor: {
  2665. themeKey: "palette"
  2666. },
  2667. borderRadius: {
  2668. themeKey: "shape.borderRadius",
  2669. style: Si
  2670. },
  2671. color: {
  2672. themeKey: "palette",
  2673. transform: ji
  2674. },
  2675. bgcolor: {
  2676. themeKey: "palette",
  2677. cssProperty: "backgroundColor",
  2678. transform: ji
  2679. },
  2680. backgroundColor: {
  2681. themeKey: "palette",
  2682. transform: ji
  2683. },
  2684. p: {
  2685. style: ii
  2686. },
  2687. pt: {
  2688. style: ii
  2689. },
  2690. pr: {
  2691. style: ii
  2692. },
  2693. pb: {
  2694. style: ii
  2695. },
  2696. pl: {
  2697. style: ii
  2698. },
  2699. px: {
  2700. style: ii
  2701. },
  2702. py: {
  2703. style: ii
  2704. },
  2705. padding: {
  2706. style: ii
  2707. },
  2708. paddingTop: {
  2709. style: ii
  2710. },
  2711. paddingRight: {
  2712. style: ii
  2713. },
  2714. paddingBottom: {
  2715. style: ii
  2716. },
  2717. paddingLeft: {
  2718. style: ii
  2719. },
  2720. paddingX: {
  2721. style: ii
  2722. },
  2723. paddingY: {
  2724. style: ii
  2725. },
  2726. paddingInline: {
  2727. style: ii
  2728. },
  2729. paddingInlineStart: {
  2730. style: ii
  2731. },
  2732. paddingInlineEnd: {
  2733. style: ii
  2734. },
  2735. paddingBlock: {
  2736. style: ii
  2737. },
  2738. paddingBlockStart: {
  2739. style: ii
  2740. },
  2741. paddingBlockEnd: {
  2742. style: ii
  2743. },
  2744. m: {
  2745. style: oi
  2746. },
  2747. mt: {
  2748. style: oi
  2749. },
  2750. mr: {
  2751. style: oi
  2752. },
  2753. mb: {
  2754. style: oi
  2755. },
  2756. ml: {
  2757. style: oi
  2758. },
  2759. mx: {
  2760. style: oi
  2761. },
  2762. my: {
  2763. style: oi
  2764. },
  2765. margin: {
  2766. style: oi
  2767. },
  2768. marginTop: {
  2769. style: oi
  2770. },
  2771. marginRight: {
  2772. style: oi
  2773. },
  2774. marginBottom: {
  2775. style: oi
  2776. },
  2777. marginLeft: {
  2778. style: oi
  2779. },
  2780. marginX: {
  2781. style: oi
  2782. },
  2783. marginY: {
  2784. style: oi
  2785. },
  2786. marginInline: {
  2787. style: oi
  2788. },
  2789. marginInlineStart: {
  2790. style: oi
  2791. },
  2792. marginInlineEnd: {
  2793. style: oi
  2794. },
  2795. marginBlock: {
  2796. style: oi
  2797. },
  2798. marginBlockStart: {
  2799. style: oi
  2800. },
  2801. marginBlockEnd: {
  2802. style: oi
  2803. },
  2804. displayPrint: {
  2805. cssProperty: !1,
  2806. transform: e => ({
  2807. "@media print": {
  2808. display: e
  2809. }
  2810. })
  2811. },
  2812. display: {},
  2813. overflow: {},
  2814. textOverflow: {},
  2815. visibility: {},
  2816. whiteSpace: {},
  2817. flexBasis: {},
  2818. flexDirection: {},
  2819. flexWrap: {},
  2820. justifyContent: {},
  2821. alignItems: {},
  2822. alignContent: {},
  2823. order: {},
  2824. flex: {},
  2825. flexGrow: {},
  2826. flexShrink: {},
  2827. alignSelf: {},
  2828. justifyItems: {},
  2829. justifySelf: {},
  2830. gap: {
  2831. style: wi
  2832. },
  2833. rowGap: {
  2834. style: ki
  2835. },
  2836. columnGap: {
  2837. style: Ci
  2838. },
  2839. gridColumn: {},
  2840. gridRow: {},
  2841. gridAutoFlow: {},
  2842. gridAutoColumns: {},
  2843. gridAutoRows: {},
  2844. gridTemplateColumns: {},
  2845. gridTemplateRows: {},
  2846. gridTemplateAreas: {},
  2847. gridArea: {},
  2848. position: {},
  2849. zIndex: {
  2850. themeKey: "zIndex"
  2851. },
  2852. top: {},
  2853. right: {},
  2854. bottom: {},
  2855. left: {},
  2856. boxShadow: {
  2857. themeKey: "shadows"
  2858. },
  2859. width: {
  2860. transform: Ti
  2861. },
  2862. maxWidth: {
  2863. style: Ei
  2864. },
  2865. minWidth: {
  2866. transform: Ti
  2867. },
  2868. height: {
  2869. transform: Ti
  2870. },
  2871. maxHeight: {
  2872. transform: Ti
  2873. },
  2874. minHeight: {
  2875. transform: Ti
  2876. },
  2877. boxSizing: {},
  2878. fontFamily: {
  2879. themeKey: "typography"
  2880. },
  2881. fontSize: {
  2882. themeKey: "typography"
  2883. },
  2884. fontStyle: {
  2885. themeKey: "typography"
  2886. },
  2887. fontWeight: {
  2888. themeKey: "typography"
  2889. },
  2890. letterSpacing: {},
  2891. textTransform: {},
  2892. lineHeight: {},
  2893. textAlign: {},
  2894. typography: {
  2895. cssProperty: !1,
  2896. themeKey: "typography"
  2897. }
  2898. };
  2899.  
  2900. function Mi() {
  2901. function e(e, t, n, r) {
  2902. const o = {
  2903. [e]: t,
  2904. theme: n
  2905. }, i = r[e];
  2906. if (!i) return {
  2907. [e]: t
  2908. };
  2909. const {cssProperty: a = e, themeKey: s, transform: l, style: c} = i;
  2910. if (null == t) return null;
  2911. if ("typography" === s && "inherit" === t) return {
  2912. [e]: t
  2913. };
  2914. const u = Ho(n, s) || {};
  2915. if (c) return c(o);
  2916. return Vo(o, t, (t => {
  2917. let n = qo(u, l, t);
  2918. return t === n && "string" == typeof t && (n = qo(u, l, `${e}${"default" === t ? "" : Bn(t)}`, t)),
  2919. !1 === a ? n : {
  2920. [a]: n
  2921. };
  2922. }));
  2923. }
  2924. return function t(n) {
  2925. var r;
  2926. const {sx: o, theme: i = {}} = n || {};
  2927. if (!o) return null;
  2928. const a = null != (r = i.unstable_sxConfig) ? r : Pi;
  2929. function s(n) {
  2930. let r = n;
  2931. if ("function" == typeof n) r = n(i); else if ("object" != typeof n) return n;
  2932. if (!r) return null;
  2933. const o = function(e = {}) {
  2934. var t;
  2935. return (null == (t = e.keys) ? void 0 : t.reduce(((t, n) => (t[e.up(n)] = {}, t)), {})) || {};
  2936. }(i.breakpoints), s = Object.keys(o);
  2937. let l = o;
  2938. return Object.keys(r).forEach((n => {
  2939. const o = (s = r[n], c = i, "function" == typeof s ? s(c) : s);
  2940. var s, c;
  2941. if (null != o) if ("object" == typeof o) if (a[n]) l = zo(l, e(n, o, i, a)); else {
  2942. const e = Vo({
  2943. theme: i
  2944. }, o, (e => ({
  2945. [n]: e
  2946. })));
  2947. !function(...e) {
  2948. const t = e.reduce(((e, t) => e.concat(Object.keys(t))), []), n = new Set(t);
  2949. return e.every((e => n.size === Object.keys(e).length));
  2950. }(e, o) ? l = zo(l, e) : l[n] = t({
  2951. sx: o,
  2952. theme: i
  2953. });
  2954. } else l = zo(l, e(n, o, i, a));
  2955. })), c = l, s.reduce(((e, t) => {
  2956. const n = e[t];
  2957. return (!n || 0 === Object.keys(n).length) && delete e[t], e;
  2958. }), c);
  2959. var c;
  2960. }
  2961. return Array.isArray(o) ? o.map(s) : s(o);
  2962. };
  2963. }
  2964.  
  2965. const Ii = Mi();
  2966.  
  2967. Ii.filterProps = [ "sx" ];
  2968.  
  2969. const Fi = Ii;
  2970.  
  2971. function Bi(e, t) {
  2972. const n = this;
  2973. if (n.vars && "function" == typeof n.getColorSchemeSelector) {
  2974. return {
  2975. [n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t
  2976. };
  2977. }
  2978. return n.palette.mode === e ? t : {};
  2979. }
  2980.  
  2981. const Ni = [ "breakpoints", "palette", "spacing", "shape" ];
  2982.  
  2983. function Li(e = {}, ...t) {
  2984. const {breakpoints: n = {}, palette: r = {}, spacing: o, shape: i = {}} = e, a = nn(e, Ni), s = No(n), l = function(e = 8) {
  2985. if (e.mui) return e;
  2986. const t = ei({
  2987. spacing: e
  2988. }), n = (...e) => (0 === e.length ? [ 1 ] : e).map((e => {
  2989. const n = t(e);
  2990. return "number" == typeof n ? `${n}px` : n;
  2991. })).join(" ");
  2992. return n.mui = !0, n;
  2993. }(o);
  2994. let c = En({
  2995. breakpoints: s,
  2996. direction: "ltr",
  2997. components: {},
  2998. palette: rn({
  2999. mode: "light"
  3000. }, r),
  3001. spacing: l,
  3002. shape: rn({}, Lo, i)
  3003. }, a);
  3004. return c.applyStyles = Bi, c = t.reduce(((e, t) => En(e, t)), c), c.unstable_sxConfig = rn({}, Pi, null == a ? void 0 : a.unstable_sxConfig),
  3005. c.unstable_sx = function(e) {
  3006. return Fi({
  3007. sx: e,
  3008. theme: this
  3009. });
  3010. }, c;
  3011. }
  3012.  
  3013. const zi = F(Object.freeze(Object.defineProperty({
  3014. __proto__: null,
  3015. default: Li,
  3016. private_createBreakpoints: No,
  3017. unstable_applyStyles: Bi
  3018. }, Symbol.toStringTag, {
  3019. value: "Module"
  3020. }))), Di = [ "sx" ], Wi = e => {
  3021. var t, n;
  3022. const r = {
  3023. systemProps: {},
  3024. otherProps: {}
  3025. }, o = null != (t = null == e || null == (n = e.theme) ? void 0 : n.unstable_sxConfig) ? t : Pi;
  3026. return Object.keys(e).forEach((t => {
  3027. o[t] ? r.systemProps[t] = e[t] : r.otherProps[t] = e[t];
  3028. })), r;
  3029. };
  3030.  
  3031. function Vi(e) {
  3032. const {sx: t} = e, n = nn(e, Di), {systemProps: r, otherProps: o} = Wi(n);
  3033. let i;
  3034. return i = Array.isArray(t) ? [ r, ...t ] : "function" == typeof t ? (...e) => {
  3035. const n = t(...e);
  3036. return Tn(n) ? rn({}, r, n) : r;
  3037. } : rn({}, r, t), rn({}, o, {
  3038. sx: i
  3039. });
  3040. }
  3041.  
  3042. const Hi = F(Object.freeze(Object.defineProperty({
  3043. __proto__: null,
  3044. default: Fi,
  3045. extendSxProp: Vi,
  3046. unstable_createStyleFunctionSx: Mi,
  3047. unstable_defaultSxConfig: Pi
  3048. }, Symbol.toStringTag, {
  3049. value: "Module"
  3050. })));
  3051.  
  3052. var qi = jr;
  3053.  
  3054. Object.defineProperty(wr, "__esModule", {
  3055. value: !0
  3056. });
  3057.  
  3058. var Ki = wr.default = function(e = {}) {
  3059. const {themeId: t, defaultTheme: n = ia, rootShouldForwardProp: r = oa, slotShouldForwardProp: o = oa} = e, i = e => (0, Qi.default)((0, Xi.default)({}, e, {
  3060. theme: sa((0, Xi.default)({}, e, {
  3061. defaultTheme: n,
  3062. themeId: t
  3063. }))
  3064. }));
  3065. return i.__mui_systemSx = !0, (e, a = {}) => {
  3066. (0, Yi.internal_processStyles)(e, (e => e.filter((e => !(null != e && e.__mui_systemSx)))));
  3067. const {name: s, slot: l, skipVariantsResolver: c, skipSx: u, overridesResolver: d = la(aa(l))} = a, p = (0, Gi.default)(a, na), f = void 0 !== c ? c : l && "Root" !== l && "root" !== l || !1, h = u || !1;
  3068. let m = oa;
  3069. "Root" === l || "root" === l ? m = r : l ? m = o : function(e) {
  3070. return "string" == typeof e && e.charCodeAt(0) > 96;
  3071. }(e) && (m = void 0);
  3072. const g = (0, Yi.default)(e, (0, Xi.default)({
  3073. shouldForwardProp: m,
  3074. label: undefined
  3075. }, p)), y = e => "function" == typeof e && e.__emotion_real !== e || (0, Ji.isPlainObject)(e) ? r => ca(e, (0, Xi.default)({}, r, {
  3076. theme: sa({
  3077. theme: r.theme,
  3078. defaultTheme: n,
  3079. themeId: t
  3080. })
  3081. })) : e, b = (r, ...o) => {
  3082. let a = y(r);
  3083. const l = o ? o.map(y) : [];
  3084. s && d && l.push((e => {
  3085. const r = sa((0, Xi.default)({}, e, {
  3086. defaultTheme: n,
  3087. themeId: t
  3088. }));
  3089. if (!r.components || !r.components[s] || !r.components[s].styleOverrides) return null;
  3090. const o = r.components[s].styleOverrides, i = {};
  3091. return Object.entries(o).forEach((([t, n]) => {
  3092. i[t] = ca(n, (0, Xi.default)({}, e, {
  3093. theme: r
  3094. }));
  3095. })), d(e, i);
  3096. })), s && !f && l.push((e => {
  3097. var r;
  3098. const o = sa((0, Xi.default)({}, e, {
  3099. defaultTheme: n,
  3100. themeId: t
  3101. }));
  3102. return ca({
  3103. variants: null == o || null == (r = o.components) || null == (r = r[s]) ? void 0 : r.variants
  3104. }, (0, Xi.default)({}, e, {
  3105. theme: o
  3106. }));
  3107. })), h || l.push(i);
  3108. const c = l.length - o.length;
  3109. if (Array.isArray(r) && c > 0) {
  3110. const e = new Array(c).fill("");
  3111. a = [ ...r, ...e ], a.raw = [ ...r.raw, ...e ];
  3112. }
  3113. const u = g(a, ...l);
  3114. return e.muiName && (u.muiName = e.muiName), u;
  3115. };
  3116. return g.withConfig && (b.withConfig = g.withConfig), b;
  3117. };
  3118. }, Ui = wr.shouldForwardProp = oa;
  3119.  
  3120. wr.systemDefaultTheme = void 0;
  3121.  
  3122. var Xi = qi((kr || (kr = 1, function(e) {
  3123. function t() {
  3124. return e.exports = t = Object.assign ? Object.assign.bind() : function(e) {
  3125. for (var t = 1; t < arguments.length; t++) {
  3126. var n = arguments[t];
  3127. for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
  3128. }
  3129. return e;
  3130. }, e.exports.__esModule = !0, e.exports.default = e.exports, t.apply(this, arguments);
  3131. }
  3132. e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
  3133. }(Tr)), Tr.exports)), Gi = qi((Rr || (Rr = 1, function(e) {
  3134. e.exports = function(e, t) {
  3135. if (null == e) return {};
  3136. var n, r, o = {}, i = Object.keys(e);
  3137. for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
  3138. return o;
  3139. }, e.exports.__esModule = !0, e.exports.default = e.exports;
  3140. }(Er)), Er.exports)), Yi = function(e, t) {
  3141. if (!t && e && e.__esModule) return e;
  3142. if (null === e || "object" != typeof e && "function" != typeof e) return {
  3143. default: e
  3144. };
  3145. var n = ra(t);
  3146. if (n && n.has(e)) return n.get(e);
  3147. var r = {
  3148. __proto__: null
  3149. }, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
  3150. for (var i in e) if ("default" !== i && Object.prototype.hasOwnProperty.call(e, i)) {
  3151. var a = o ? Object.getOwnPropertyDescriptor(e, i) : null;
  3152. a && (a.get || a.set) ? Object.defineProperty(r, i, a) : r[i] = e[i];
  3153. }
  3154. return r.default = e, n && n.set(e, r), r;
  3155. }(Ao), Ji = Po;
  3156.  
  3157. qi(Mo), qi(Io);
  3158.  
  3159. var Zi = qi(zi), Qi = qi(Hi);
  3160.  
  3161. const ea = [ "ownerState" ], ta = [ "variants" ], na = [ "name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver" ];
  3162.  
  3163. function ra(e) {
  3164. if ("function" != typeof WeakMap) return null;
  3165. var t = new WeakMap, n = new WeakMap;
  3166. return (ra = function(e) {
  3167. return e ? n : t;
  3168. })(e);
  3169. }
  3170.  
  3171. function oa(e) {
  3172. return "ownerState" !== e && "theme" !== e && "sx" !== e && "as" !== e;
  3173. }
  3174.  
  3175. const ia = wr.systemDefaultTheme = (0, Zi.default)(), aa = e => e ? e.charAt(0).toLowerCase() + e.slice(1) : e;
  3176.  
  3177. function sa({defaultTheme: e, theme: t, themeId: n}) {
  3178. return r = t, 0 === Object.keys(r).length ? e : t[n] || t;
  3179. var r;
  3180. }
  3181.  
  3182. function la(e) {
  3183. return e ? (t, n) => n[e] : null;
  3184. }
  3185.  
  3186. function ca(e, t) {
  3187. let {ownerState: n} = t, r = (0, Gi.default)(t, ea);
  3188. const o = "function" == typeof e ? e((0, Xi.default)({
  3189. ownerState: n
  3190. }, r)) : e;
  3191. if (Array.isArray(o)) return o.flatMap((e => ca(e, (0, Xi.default)({
  3192. ownerState: n
  3193. }, r))));
  3194. if (o && "object" == typeof o && Array.isArray(o.variants)) {
  3195. const {variants: e = []} = o;
  3196. let t = (0, Gi.default)(o, ta);
  3197. return e.forEach((e => {
  3198. let o = !0;
  3199. "function" == typeof e.props ? o = e.props((0, Xi.default)({
  3200. ownerState: n
  3201. }, r, n)) : Object.keys(e.props).forEach((t => {
  3202. (null == n ? void 0 : n[t]) !== e.props[t] && r[t] !== e.props[t] && (o = !1);
  3203. })), o && (Array.isArray(t) || (t = [ t ]), t.push("function" == typeof e.style ? e.style((0, Xi.default)({
  3204. ownerState: n
  3205. }, r, n)) : e.style));
  3206. })), t;
  3207. }
  3208. return o;
  3209. }
  3210.  
  3211. var ua = {};
  3212.  
  3213. const da = F(On), pa = F(hr);
  3214.  
  3215. var fa = jr;
  3216.  
  3217. Object.defineProperty(ua, "__esModule", {
  3218. value: !0
  3219. }), ua.alpha = Ta, ua.blend = function(e, t, n, r = 1) {
  3220. const o = (e, t) => Math.round((e ** (1 / r) * (1 - n) + t ** (1 / r) * n) ** r), i = Sa(e), a = Sa(t);
  3221. return Ca({
  3222. type: "rgb",
  3223. values: [ o(i.values[0], a.values[0]), o(i.values[1], a.values[1]), o(i.values[2], a.values[2]) ]
  3224. });
  3225. }, ua.colorChannel = void 0;
  3226.  
  3227. var ha = ua.darken = Ra;
  3228.  
  3229. ua.decomposeColor = Sa, ua.emphasize = function(e, t = .15) {
  3230. return ja(e) > .5 ? Ra(e, t) : Ea(e, t);
  3231. };
  3232.  
  3233. var ma = ua.getContrastRatio = function(e, t) {
  3234. const n = ja(e), r = ja(t);
  3235. return (Math.max(n, r) + .05) / (Math.min(n, r) + .05);
  3236. };
  3237.  
  3238. ua.getLuminance = ja, ua.hexToRgb = xa, ua.hslToRgb = ka;
  3239.  
  3240. var ga = ua.lighten = Ea;
  3241.  
  3242. ua.private_safeAlpha = function(e, t, n) {
  3243. try {
  3244. return Ta(e, t);
  3245. } catch (r) {
  3246. return e;
  3247. }
  3248. }, ua.private_safeColorChannel = void 0, ua.private_safeDarken = function(e, t, n) {
  3249. try {
  3250. return Ra(e, t);
  3251. } catch (r) {
  3252. return e;
  3253. }
  3254. }, ua.private_safeEmphasize = function e(t, n, r) {
  3255. try {
  3256. return e(t, n);
  3257. } catch (o) {
  3258. return t;
  3259. }
  3260. }, ua.private_safeLighten = function(e, t, n) {
  3261. try {
  3262. return Ea(e, t);
  3263. } catch (r) {
  3264. return e;
  3265. }
  3266. }, ua.recomposeColor = Ca, ua.rgbToHex = function(e) {
  3267. if (0 === e.indexOf("#")) return e;
  3268. const {values: t} = Sa(e);
  3269. return `#${t.map(((e, t) => function(e) {
  3270. const t = e.toString(16);
  3271. return 1 === t.length ? `0${t}` : t;
  3272. }(3 === t ? Math.round(255 * e) : e))).join("")}`;
  3273. };
  3274.  
  3275. var ya = fa(da), ba = fa(pa);
  3276.  
  3277. function va(e, t = 0, n = 1) {
  3278. return (0, ba.default)(e, t, n);
  3279. }
  3280.  
  3281. function xa(e) {
  3282. e = e.slice(1);
  3283. const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
  3284. let n = e.match(t);
  3285. return n && 1 === n[0].length && (n = n.map((e => e + e))), n ? `rgb${4 === n.length ? "a" : ""}(${n.map(((e, t) => t < 3 ? parseInt(e, 16) : Math.round(parseInt(e, 16) / 255 * 1e3) / 1e3)).join(", ")})` : "";
  3286. }
  3287.  
  3288. function Sa(e) {
  3289. if (e.type) return e;
  3290. if ("#" === e.charAt(0)) return Sa(xa(e));
  3291. const t = e.indexOf("("), n = e.substring(0, t);
  3292. if (-1 === [ "rgb", "rgba", "hsl", "hsla", "color" ].indexOf(n)) throw new Error((0, ya.default)(9, e));
  3293. let r, o = e.substring(t + 1, e.length - 1);
  3294. if ("color" === n) {
  3295. if (o = o.split(" "), r = o.shift(), 4 === o.length && "/" === o[3].charAt(0) && (o[3] = o[3].slice(1)),
  3296. -1 === [ "srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020" ].indexOf(r)) throw new Error((0, ya.default)(10, r));
  3297. } else o = o.split(",");
  3298. return o = o.map((e => parseFloat(e))), {
  3299. type: n,
  3300. values: o,
  3301. colorSpace: r
  3302. };
  3303. }
  3304.  
  3305. const wa = e => {
  3306. const t = Sa(e);
  3307. return t.values.slice(0, 3).map(((e, n) => -1 !== t.type.indexOf("hsl") && 0 !== n ? `${e}%` : e)).join(" ");
  3308. };
  3309.  
  3310. ua.colorChannel = wa;
  3311.  
  3312. function Ca(e) {
  3313. const {type: t, colorSpace: n} = e;
  3314. let {values: r} = e;
  3315. return -1 !== t.indexOf("rgb") ? r = r.map(((e, t) => t < 3 ? parseInt(e, 10) : e)) : -1 !== t.indexOf("hsl") && (r[1] = `${r[1]}%`,
  3316. r[2] = `${r[2]}%`), r = -1 !== t.indexOf("color") ? `${n} ${r.join(" ")}` : `${r.join(", ")}`,
  3317. `${t}(${r})`;
  3318. }
  3319.  
  3320. function ka(e) {
  3321. e = Sa(e);
  3322. const {values: t} = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), a = (e, t = (e + n / 30) % 12) => o - i * Math.max(Math.min(t - 3, 9 - t, 1), -1);
  3323. let s = "rgb";
  3324. const l = [ Math.round(255 * a(0)), Math.round(255 * a(8)), Math.round(255 * a(4)) ];
  3325. return "hsla" === e.type && (s += "a", l.push(t[3])), Ca({
  3326. type: s,
  3327. values: l
  3328. });
  3329. }
  3330.  
  3331. function ja(e) {
  3332. let t = "hsl" === (e = Sa(e)).type || "hsla" === e.type ? Sa(ka(e)).values : e.values;
  3333. return t = t.map((t => ("color" !== e.type && (t /= 255), t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4))),
  3334. Number((.2126 * t[0] + .7152 * t[1] + .0722 * t[2]).toFixed(3));
  3335. }
  3336.  
  3337. function Ta(e, t) {
  3338. return e = Sa(e), t = va(t), "rgb" !== e.type && "hsl" !== e.type || (e.type += "a"),
  3339. "color" === e.type ? e.values[3] = `/${t}` : e.values[3] = t, Ca(e);
  3340. }
  3341.  
  3342. function Ra(e, t) {
  3343. if (e = Sa(e), t = va(t), -1 !== e.type.indexOf("hsl")) e.values[2] *= 1 - t; else if (-1 !== e.type.indexOf("rgb") || -1 !== e.type.indexOf("color")) for (let n = 0; n < 3; n += 1) e.values[n] *= 1 - t;
  3344. return Ca(e);
  3345. }
  3346.  
  3347. function Ea(e, t) {
  3348. if (e = Sa(e), t = va(t), -1 !== e.type.indexOf("hsl")) e.values[2] += (100 - e.values[2]) * t; else if (-1 !== e.type.indexOf("rgb")) for (let n = 0; n < 3; n += 1) e.values[n] += (255 - e.values[n]) * t; else if (-1 !== e.type.indexOf("color")) for (let n = 0; n < 3; n += 1) e.values[n] += (1 - e.values[n]) * t;
  3349. return Ca(e);
  3350. }
  3351.  
  3352. ua.private_safeColorChannel = (e, t) => {
  3353. try {
  3354. return wa(e);
  3355. } catch (n) {
  3356. return e;
  3357. }
  3358. };
  3359.  
  3360. const $a = {
  3361. black: "#000",
  3362. white: "#fff"
  3363. }, _a = {
  3364. 50: "#fafafa",
  3365. 100: "#f5f5f5",
  3366. 200: "#eeeeee",
  3367. 300: "#e0e0e0",
  3368. 400: "#bdbdbd",
  3369. 500: "#9e9e9e",
  3370. 600: "#757575",
  3371. 700: "#616161",
  3372. 800: "#424242",
  3373. 900: "#212121",
  3374. A100: "#f5f5f5",
  3375. A200: "#eeeeee",
  3376. A400: "#bdbdbd",
  3377. A700: "#616161"
  3378. }, Oa = {
  3379. 50: "#f3e5f5",
  3380. 100: "#e1bee7",
  3381. 200: "#ce93d8",
  3382. 300: "#ba68c8",
  3383. 400: "#ab47bc",
  3384. 500: "#9c27b0",
  3385. 600: "#8e24aa",
  3386. 700: "#7b1fa2",
  3387. 800: "#6a1b9a",
  3388. 900: "#4a148c",
  3389. A100: "#ea80fc",
  3390. A200: "#e040fb",
  3391. A400: "#d500f9",
  3392. A700: "#aa00ff"
  3393. }, Aa = {
  3394. 50: "#ffebee",
  3395. 100: "#ffcdd2",
  3396. 200: "#ef9a9a",
  3397. 300: "#e57373",
  3398. 400: "#ef5350",
  3399. 500: "#f44336",
  3400. 600: "#e53935",
  3401. 700: "#d32f2f",
  3402. 800: "#c62828",
  3403. 900: "#b71c1c",
  3404. A100: "#ff8a80",
  3405. A200: "#ff5252",
  3406. A400: "#ff1744",
  3407. A700: "#d50000"
  3408. }, Pa = {
  3409. 50: "#fff3e0",
  3410. 100: "#ffe0b2",
  3411. 200: "#ffcc80",
  3412. 300: "#ffb74d",
  3413. 400: "#ffa726",
  3414. 500: "#ff9800",
  3415. 600: "#fb8c00",
  3416. 700: "#f57c00",
  3417. 800: "#ef6c00",
  3418. 900: "#e65100",
  3419. A100: "#ffd180",
  3420. A200: "#ffab40",
  3421. A400: "#ff9100",
  3422. A700: "#ff6d00"
  3423. }, Ma = {
  3424. 50: "#e3f2fd",
  3425. 100: "#bbdefb",
  3426. 200: "#90caf9",
  3427. 300: "#64b5f6",
  3428. 400: "#42a5f5",
  3429. 500: "#2196f3",
  3430. 600: "#1e88e5",
  3431. 700: "#1976d2",
  3432. 800: "#1565c0",
  3433. 900: "#0d47a1",
  3434. A100: "#82b1ff",
  3435. A200: "#448aff",
  3436. A400: "#2979ff",
  3437. A700: "#2962ff"
  3438. }, Ia = {
  3439. 50: "#e1f5fe",
  3440. 100: "#b3e5fc",
  3441. 200: "#81d4fa",
  3442. 300: "#4fc3f7",
  3443. 400: "#29b6f6",
  3444. 500: "#03a9f4",
  3445. 600: "#039be5",
  3446. 700: "#0288d1",
  3447. 800: "#0277bd",
  3448. 900: "#01579b",
  3449. A100: "#80d8ff",
  3450. A200: "#40c4ff",
  3451. A400: "#00b0ff",
  3452. A700: "#0091ea"
  3453. }, Fa = {
  3454. 50: "#e8f5e9",
  3455. 100: "#c8e6c9",
  3456. 200: "#a5d6a7",
  3457. 300: "#81c784",
  3458. 400: "#66bb6a",
  3459. 500: "#4caf50",
  3460. 600: "#43a047",
  3461. 700: "#388e3c",
  3462. 800: "#2e7d32",
  3463. 900: "#1b5e20",
  3464. A100: "#b9f6ca",
  3465. A200: "#69f0ae",
  3466. A400: "#00e676",
  3467. A700: "#00c853"
  3468. }, Ba = [ "mode", "contrastThreshold", "tonalOffset" ], Na = {
  3469. text: {
  3470. primary: "rgba(0, 0, 0, 0.87)",
  3471. secondary: "rgba(0, 0, 0, 0.6)",
  3472. disabled: "rgba(0, 0, 0, 0.38)"
  3473. },
  3474. divider: "rgba(0, 0, 0, 0.12)",
  3475. background: {
  3476. paper: $a.white,
  3477. default: $a.white
  3478. },
  3479. action: {
  3480. active: "rgba(0, 0, 0, 0.54)",
  3481. hover: "rgba(0, 0, 0, 0.04)",
  3482. hoverOpacity: .04,
  3483. selected: "rgba(0, 0, 0, 0.08)",
  3484. selectedOpacity: .08,
  3485. disabled: "rgba(0, 0, 0, 0.26)",
  3486. disabledBackground: "rgba(0, 0, 0, 0.12)",
  3487. disabledOpacity: .38,
  3488. focus: "rgba(0, 0, 0, 0.12)",
  3489. focusOpacity: .12,
  3490. activatedOpacity: .12
  3491. }
  3492. }, La = {
  3493. text: {
  3494. primary: $a.white,
  3495. secondary: "rgba(255, 255, 255, 0.7)",
  3496. disabled: "rgba(255, 255, 255, 0.5)",
  3497. icon: "rgba(255, 255, 255, 0.5)"
  3498. },
  3499. divider: "rgba(255, 255, 255, 0.12)",
  3500. background: {
  3501. paper: "#121212",
  3502. default: "#121212"
  3503. },
  3504. action: {
  3505. active: $a.white,
  3506. hover: "rgba(255, 255, 255, 0.08)",
  3507. hoverOpacity: .08,
  3508. selected: "rgba(255, 255, 255, 0.16)",
  3509. selectedOpacity: .16,
  3510. disabled: "rgba(255, 255, 255, 0.3)",
  3511. disabledBackground: "rgba(255, 255, 255, 0.12)",
  3512. disabledOpacity: .38,
  3513. focus: "rgba(255, 255, 255, 0.12)",
  3514. focusOpacity: .12,
  3515. activatedOpacity: .24
  3516. }
  3517. };
  3518.  
  3519. function za(e, t, n, r) {
  3520. const o = r.light || r, i = r.dark || 1.5 * r;
  3521. e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : "light" === t ? e.light = ga(e.main, o) : "dark" === t && (e.dark = ha(e.main, i)));
  3522. }
  3523.  
  3524. function Da(e) {
  3525. const {mode: t = "light", contrastThreshold: n = 3, tonalOffset: r = .2} = e, o = nn(e, Ba), i = e.primary || function(e = "light") {
  3526. return "dark" === e ? {
  3527. main: Ma[200],
  3528. light: Ma[50],
  3529. dark: Ma[400]
  3530. } : {
  3531. main: Ma[700],
  3532. light: Ma[400],
  3533. dark: Ma[800]
  3534. };
  3535. }(t), a = e.secondary || function(e = "light") {
  3536. return "dark" === e ? {
  3537. main: Oa[200],
  3538. light: Oa[50],
  3539. dark: Oa[400]
  3540. } : {
  3541. main: Oa[500],
  3542. light: Oa[300],
  3543. dark: Oa[700]
  3544. };
  3545. }(t), s = e.error || function(e = "light") {
  3546. return "dark" === e ? {
  3547. main: Aa[500],
  3548. light: Aa[300],
  3549. dark: Aa[700]
  3550. } : {
  3551. main: Aa[700],
  3552. light: Aa[400],
  3553. dark: Aa[800]
  3554. };
  3555. }(t), l = e.info || function(e = "light") {
  3556. return "dark" === e ? {
  3557. main: Ia[400],
  3558. light: Ia[300],
  3559. dark: Ia[700]
  3560. } : {
  3561. main: Ia[700],
  3562. light: Ia[500],
  3563. dark: Ia[900]
  3564. };
  3565. }(t), c = e.success || function(e = "light") {
  3566. return "dark" === e ? {
  3567. main: Fa[400],
  3568. light: Fa[300],
  3569. dark: Fa[700]
  3570. } : {
  3571. main: Fa[800],
  3572. light: Fa[500],
  3573. dark: Fa[900]
  3574. };
  3575. }(t), u = e.warning || function(e = "light") {
  3576. return "dark" === e ? {
  3577. main: Pa[400],
  3578. light: Pa[300],
  3579. dark: Pa[700]
  3580. } : {
  3581. main: "#ed6c02",
  3582. light: Pa[500],
  3583. dark: Pa[900]
  3584. };
  3585. }(t);
  3586. function d(e) {
  3587. return ma(e, La.text.primary) >= n ? La.text.primary : Na.text.primary;
  3588. }
  3589. const p = ({color: e, name: t, mainShade: n = 500, lightShade: o = 300, darkShade: i = 700}) => {
  3590. if (!(e = rn({}, e)).main && e[n] && (e.main = e[n]), !e.hasOwnProperty("main")) throw new Error(_n(11, t ? ` (${t})` : "", n));
  3591. if ("string" != typeof e.main) throw new Error(_n(12, t ? ` (${t})` : "", JSON.stringify(e.main)));
  3592. return za(e, "light", o, r), za(e, "dark", i, r), e.contrastText || (e.contrastText = d(e.main)),
  3593. e;
  3594. }, f = {
  3595. dark: La,
  3596. light: Na
  3597. };
  3598. return En(rn({
  3599. common: rn({}, $a),
  3600. mode: t,
  3601. primary: p({
  3602. color: i,
  3603. name: "primary"
  3604. }),
  3605. secondary: p({
  3606. color: a,
  3607. name: "secondary",
  3608. mainShade: "A400",
  3609. lightShade: "A200",
  3610. darkShade: "A700"
  3611. }),
  3612. error: p({
  3613. color: s,
  3614. name: "error"
  3615. }),
  3616. warning: p({
  3617. color: u,
  3618. name: "warning"
  3619. }),
  3620. info: p({
  3621. color: l,
  3622. name: "info"
  3623. }),
  3624. success: p({
  3625. color: c,
  3626. name: "success"
  3627. }),
  3628. grey: _a,
  3629. contrastThreshold: n,
  3630. getContrastText: d,
  3631. augmentColor: p,
  3632. tonalOffset: r
  3633. }, f[t]), o);
  3634. }
  3635.  
  3636. const Wa = [ "fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem" ];
  3637.  
  3638. const Va = {
  3639. textTransform: "uppercase"
  3640. }, Ha = '"Roboto", "Helvetica", "Arial", sans-serif';
  3641.  
  3642. function qa(e, t) {
  3643. const n = "function" == typeof t ? t(e) : t, {fontFamily: r = Ha, fontSize: o = 14, fontWeightLight: i = 300, fontWeightRegular: a = 400, fontWeightMedium: s = 500, fontWeightBold: l = 700, htmlFontSize: c = 16, allVariants: u, pxToRem: d} = n, p = nn(n, Wa), f = o / 14, h = d || (e => e / c * f + "rem"), m = (e, t, n, o, i) => {
  3644. return rn({
  3645. fontFamily: r,
  3646. fontWeight: e,
  3647. fontSize: h(t),
  3648. lineHeight: n
  3649. }, r === Ha ? {
  3650. letterSpacing: (a = o / t, Math.round(1e5 * a) / 1e5) + "em"
  3651. } : {}, i, u);
  3652. var a;
  3653. }, g = {
  3654. h1: m(i, 96, 1.167, -1.5),
  3655. h2: m(i, 60, 1.2, -.5),
  3656. h3: m(a, 48, 1.167, 0),
  3657. h4: m(a, 34, 1.235, .25),
  3658. h5: m(a, 24, 1.334, 0),
  3659. h6: m(s, 20, 1.6, .15),
  3660. subtitle1: m(a, 16, 1.75, .15),
  3661. subtitle2: m(s, 14, 1.57, .1),
  3662. body1: m(a, 16, 1.5, .15),
  3663. body2: m(a, 14, 1.43, .15),
  3664. button: m(s, 14, 1.75, .4, Va),
  3665. caption: m(a, 12, 1.66, .4),
  3666. overline: m(a, 12, 2.66, 1, Va),
  3667. inherit: {
  3668. fontFamily: "inherit",
  3669. fontWeight: "inherit",
  3670. fontSize: "inherit",
  3671. lineHeight: "inherit",
  3672. letterSpacing: "inherit"
  3673. }
  3674. };
  3675. return En(rn({
  3676. htmlFontSize: c,
  3677. pxToRem: h,
  3678. fontFamily: r,
  3679. fontSize: o,
  3680. fontWeightLight: i,
  3681. fontWeightRegular: a,
  3682. fontWeightMedium: s,
  3683. fontWeightBold: l
  3684. }, g), p, {
  3685. clone: !1
  3686. });
  3687. }
  3688.  
  3689. function Ka(...e) {
  3690. return [ `${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)` ].join(",");
  3691. }
  3692.  
  3693. const Ua = [ "none", Ka(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), Ka(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), Ka(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), Ka(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), Ka(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), Ka(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), Ka(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), Ka(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), Ka(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), Ka(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), Ka(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), Ka(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), Ka(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), Ka(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), Ka(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), Ka(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), Ka(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), Ka(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), Ka(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), Ka(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), Ka(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), Ka(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), Ka(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), Ka(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8) ], Xa = [ "duration", "easing", "delay" ], Ga = {
  3694. easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
  3695. easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
  3696. easeIn: "cubic-bezier(0.4, 0, 1, 1)",
  3697. sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
  3698. }, Ya = {
  3699. shortest: 150,
  3700. shorter: 200,
  3701. short: 250,
  3702. standard: 300,
  3703. complex: 375,
  3704. enteringScreen: 225,
  3705. leavingScreen: 195
  3706. };
  3707.  
  3708. function Ja(e) {
  3709. return `${Math.round(e)}ms`;
  3710. }
  3711.  
  3712. function Za(e) {
  3713. if (!e) return 0;
  3714. const t = e / 36;
  3715. return Math.round(10 * (4 + 15 * t ** .25 + t / 5));
  3716. }
  3717.  
  3718. function Qa(e) {
  3719. const t = rn({}, Ga, e.easing), n = rn({}, Ya, e.duration);
  3720. return rn({
  3721. getAutoHeightDuration: Za,
  3722. create: (e = [ "all" ], r = {}) => {
  3723. const {duration: o = n.standard, easing: i = t.easeInOut, delay: a = 0} = r;
  3724. return nn(r, Xa), (Array.isArray(e) ? e : [ e ]).map((e => `${e} ${"string" == typeof o ? o : Ja(o)} ${i} ${"string" == typeof a ? a : Ja(a)}`)).join(",");
  3725. }
  3726. }, e, {
  3727. easing: t,
  3728. duration: n
  3729. });
  3730. }
  3731.  
  3732. const es = {
  3733. mobileStepper: 1e3,
  3734. fab: 1050,
  3735. speedDial: 1050,
  3736. appBar: 1100,
  3737. drawer: 1200,
  3738. modal: 1300,
  3739. snackbar: 1400,
  3740. tooltip: 1500
  3741. }, ts = [ "breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape" ];
  3742.  
  3743. function ns(e = {}, ...t) {
  3744. const {mixins: n = {}, palette: r = {}, transitions: o = {}, typography: i = {}} = e, a = nn(e, ts);
  3745. if (e.vars) throw new Error(_n(18));
  3746. const s = Da(r), l = Li(e);
  3747. let c = En(l, {
  3748. mixins: (u = l.breakpoints, d = n, rn({
  3749. toolbar: {
  3750. minHeight: 56,
  3751. [u.up("xs")]: {
  3752. "@media (orientation: landscape)": {
  3753. minHeight: 48
  3754. }
  3755. },
  3756. [u.up("sm")]: {
  3757. minHeight: 64
  3758. }
  3759. }
  3760. }, d)),
  3761. palette: s,
  3762. shadows: Ua.slice(),
  3763. typography: qa(s, i),
  3764. transitions: Qa(o),
  3765. zIndex: rn({}, es)
  3766. });
  3767. var u, d;
  3768. return c = En(c, a), c = t.reduce(((e, t) => En(e, t)), c), c.unstable_sxConfig = rn({}, Pi, null == a ? void 0 : a.unstable_sxConfig),
  3769. c.unstable_sx = function(e) {
  3770. return Fi({
  3771. sx: e,
  3772. theme: this
  3773. });
  3774. }, c;
  3775. }
  3776.  
  3777. const rs = ns(), os = "$$material", is = Ki({
  3778. themeId: os,
  3779. defaultTheme: rs,
  3780. rootShouldForwardProp: e => Ui(e) && "classes" !== e
  3781. });
  3782.  
  3783. function as(e) {
  3784. const {theme: t, name: n, props: r} = e;
  3785. return t && t.components && t.components[n] && t.components[n].defaultProps ? sr(t.components[n].defaultProps, r) : r;
  3786. }
  3787.  
  3788. function ss(t = null) {
  3789. const n = e__namespace.useContext(react.ThemeContext);
  3790. return n && (r = n, 0 !== Object.keys(r).length) ? n : t;
  3791. var r;
  3792. }
  3793.  
  3794. const ls = Li();
  3795.  
  3796. function cs(e = ls) {
  3797. return ss(e);
  3798. }
  3799.  
  3800. function us({props: e, name: t}) {
  3801. return function({props: e, name: t, defaultTheme: n, themeId: r}) {
  3802. let o = cs(n);
  3803. return r && (o = o[r] || o), as({
  3804. theme: o,
  3805. name: t,
  3806. props: e
  3807. });
  3808. }({
  3809. props: e,
  3810. name: t,
  3811. defaultTheme: rs,
  3812. themeId: os
  3813. });
  3814. }
  3815.  
  3816. const ds = [ "className", "component" ];
  3817.  
  3818. function ps(e) {
  3819. return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
  3820. }
  3821.  
  3822. function fs(e) {
  3823. return pr("MuiSvgIcon", e);
  3824. }
  3825.  
  3826. fr("MuiSvgIcon", [ "root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge" ]);
  3827.  
  3828. const hs = [ "children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox" ], ms = is("svg", {
  3829. name: "MuiSvgIcon",
  3830. slot: "Root",
  3831. overridesResolver: (e, t) => {
  3832. const {ownerState: n} = e;
  3833. return [ t.root, "inherit" !== n.color && t[`color${Bn(n.color)}`], t[`fontSize${Bn(n.fontSize)}`] ];
  3834. }
  3835. })((({theme: e, ownerState: t}) => {
  3836. var n, r, o, i, a, s, l, c, u, d, p, f, h;
  3837. return {
  3838. userSelect: "none",
  3839. width: "1em",
  3840. height: "1em",
  3841. display: "inline-block",
  3842. fill: t.hasSvgAsChild ? void 0 : "currentColor",
  3843. flexShrink: 0,
  3844. transition: null == (n = e.transitions) || null == (r = n.create) ? void 0 : r.call(n, "fill", {
  3845. duration: null == (o = e.transitions) || null == (o = o.duration) ? void 0 : o.shorter
  3846. }),
  3847. fontSize: {
  3848. inherit: "inherit",
  3849. small: (null == (i = e.typography) || null == (a = i.pxToRem) ? void 0 : a.call(i, 20)) || "1.25rem",
  3850. medium: (null == (s = e.typography) || null == (l = s.pxToRem) ? void 0 : l.call(s, 24)) || "1.5rem",
  3851. large: (null == (c = e.typography) || null == (u = c.pxToRem) ? void 0 : u.call(c, 35)) || "2.1875rem"
  3852. }[t.fontSize],
  3853. color: null != (d = null == (p = (e.vars || e).palette) || null == (p = p[t.color]) ? void 0 : p.main) ? d : {
  3854. action: null == (f = (e.vars || e).palette) || null == (f = f.action) ? void 0 : f.active,
  3855. disabled: null == (h = (e.vars || e).palette) || null == (h = h.action) ? void 0 : h.disabled,
  3856. inherit: void 0
  3857. }[t.color]
  3858. };
  3859. })), gs = e__namespace.forwardRef((function(t, n) {
  3860. const r = us({
  3861. props: t,
  3862. name: "MuiSvgIcon"
  3863. }), {children: o, className: i, color: a = "inherit", component: s = "svg", fontSize: l = "medium", htmlColor: c, inheritViewBox: u = !1, titleAccess: d, viewBox: p = "0 0 24 24"} = r, f = nn(r, hs), h = e__namespace.isValidElement(o) && "svg" === o.type, m = rn({}, r, {
  3864. color: a,
  3865. component: s,
  3866. fontSize: l,
  3867. instanceFontSize: t.fontSize,
  3868. inheritViewBox: u,
  3869. viewBox: p,
  3870. hasSvgAsChild: h
  3871. }), g = {};
  3872. u || (g.viewBox = p);
  3873. const y = (e => {
  3874. const {color: t, fontSize: n, classes: r} = e;
  3875. return lr({
  3876. root: [ "root", "inherit" !== t && `color${Bn(t)}`, `fontSize${Bn(n)}` ]
  3877. }, fs, r);
  3878. })(m);
  3879. return K.jsxs(ms, rn({
  3880. as: s,
  3881. className: jn(y.root, i),
  3882. focusable: "false",
  3883. color: c,
  3884. "aria-hidden": !d || void 0,
  3885. role: d ? "img" : void 0,
  3886. ref: n
  3887. }, g, f, h && o.props, {
  3888. ownerState: m,
  3889. children: [ h ? o.props.children : o, d ? K.jsx("title", {
  3890. children: d
  3891. }) : null ]
  3892. }));
  3893. }));
  3894.  
  3895. function ys(t, n) {
  3896. function r(e, r) {
  3897. return K.jsx(gs, rn({
  3898. "data-testid": `${n}Icon`,
  3899. ref: r
  3900. }, e, {
  3901. children: t
  3902. }));
  3903. }
  3904. return r.muiName = gs.muiName, e__namespace.memo(e__namespace.forwardRef(r));
  3905. }
  3906.  
  3907. gs.muiName = "SvgIcon";
  3908.  
  3909. const bs = [ "onChange" ], vs = {
  3910. width: 99,
  3911. height: 99,
  3912. position: "absolute",
  3913. top: -9999,
  3914. overflow: "scroll"
  3915. };
  3916.  
  3917. const xs = ys(K.jsx("path", {
  3918. d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
  3919. }), "KeyboardArrowLeft"), Ss = ys(K.jsx("path", {
  3920. d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
  3921. }), "KeyboardArrowRight");
  3922.  
  3923. function ws(e, t) {
  3924. return (ws = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
  3925. return e.__proto__ = t, e;
  3926. })(e, t);
  3927. }
  3928.  
  3929. const Cs = e.createContext(null);
  3930.  
  3931. function ks(e$1, t) {
  3932. var n = Object.create(null);
  3933. return e$1 && e.Children.map(e$1, (function(e) {
  3934. return e;
  3935. })).forEach((function(e$1) {
  3936. n[e$1.key] = function(e$1) {
  3937. return t && e.isValidElement(e$1) ? t(e$1) : e$1;
  3938. }(e$1);
  3939. })), n;
  3940. }
  3941.  
  3942. function js(e, t, n) {
  3943. return null != n[t] ? n[t] : e.props[t];
  3944. }
  3945.  
  3946. function Ts(e$1, t, n) {
  3947. var r = ks(e$1.children), o = function(e, t) {
  3948. function n(n) {
  3949. return n in t ? t[n] : e[n];
  3950. }
  3951. e = e || {}, t = t || {};
  3952. var r, o = Object.create(null), i = [];
  3953. for (var a in e) a in t ? i.length && (o[a] = i, i = []) : i.push(a);
  3954. var s = {};
  3955. for (var l in t) {
  3956. if (o[l]) for (r = 0; r < o[l].length; r++) {
  3957. var c = o[l][r];
  3958. s[o[l][r]] = n(c);
  3959. }
  3960. s[l] = n(l);
  3961. }
  3962. for (r = 0; r < i.length; r++) s[i[r]] = n(i[r]);
  3963. return s;
  3964. }(t, r);
  3965. return Object.keys(o).forEach((function(s) {
  3966. var l = o[s];
  3967. if (e.isValidElement(l)) {
  3968. var c = s in t, u = s in r, d = t[s], p = e.isValidElement(d) && !d.props.in;
  3969. !u || c && !p ? u || !c || p ? u && c && e.isValidElement(d) && (o[s] = e.cloneElement(l, {
  3970. onExited: n.bind(null, l),
  3971. in: d.props.in,
  3972. exit: js(l, "exit", e$1),
  3973. enter: js(l, "enter", e$1)
  3974. })) : o[s] = e.cloneElement(l, {
  3975. in: !1
  3976. }) : o[s] = e.cloneElement(l, {
  3977. onExited: n.bind(null, l),
  3978. in: !0,
  3979. exit: js(l, "exit", e$1),
  3980. enter: js(l, "enter", e$1)
  3981. });
  3982. }
  3983. })), o;
  3984. }
  3985.  
  3986. var Rs = Object.values || function(e) {
  3987. return Object.keys(e).map((function(t) {
  3988. return e[t];
  3989. }));
  3990. }, Es = function(e$1) {
  3991. var n, r;
  3992. function o(t, n) {
  3993. var r, o = (r = e$1.call(this, t, n) || this).handleExited.bind(function(e) {
  3994. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3995. return e;
  3996. }(r));
  3997. return r.state = {
  3998. contextValue: {
  3999. isMounting: !0
  4000. },
  4001. handleExited: o,
  4002. firstRender: !0
  4003. }, r;
  4004. }
  4005. r = e$1, (n = o).prototype = Object.create(r.prototype), n.prototype.constructor = n,
  4006. ws(n, r);
  4007. var i = o.prototype;
  4008. return i.componentDidMount = function() {
  4009. this.mounted = !0, this.setState({
  4010. contextValue: {
  4011. isMounting: !1
  4012. }
  4013. });
  4014. }, i.componentWillUnmount = function() {
  4015. this.mounted = !1;
  4016. }, o.getDerivedStateFromProps = function(e$1, t) {
  4017. var n, r, o = t.children, i = t.handleExited;
  4018. return {
  4019. children: t.firstRender ? (n = e$1, r = i, ks(n.children, (function(e$1) {
  4020. return e.cloneElement(e$1, {
  4021. onExited: r.bind(null, e$1),
  4022. in: !0,
  4023. appear: js(e$1, "appear", n),
  4024. enter: js(e$1, "enter", n),
  4025. exit: js(e$1, "exit", n)
  4026. });
  4027. }))) : Ts(e$1, o, i),
  4028. firstRender: !1
  4029. };
  4030. }, i.handleExited = function(e, t) {
  4031. var n = ks(this.props.children);
  4032. e.key in n || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((function(t) {
  4033. var n = rn({}, t.children);
  4034. return delete n[e.key], {
  4035. children: n
  4036. };
  4037. })));
  4038. }, i.render = function() {
  4039. var e$1 = this.props, n = e$1.component, r = e$1.childFactory, o = nn(e$1, [ "component", "childFactory" ]), i = this.state.contextValue, a = Rs(this.state.children).map(r);
  4040. return delete o.appear, delete o.enter, delete o.exit, null === n ? e.createElement(Cs.Provider, {
  4041. value: i
  4042. }, a) : e.createElement(Cs.Provider, {
  4043. value: i
  4044. }, e.createElement(n, o, a));
  4045. }, o;
  4046. }(e.Component);
  4047.  
  4048. Es.propTypes = {}, Es.defaultProps = {
  4049. component: "div",
  4050. childFactory: function(e) {
  4051. return e;
  4052. }
  4053. };
  4054.  
  4055. const $s = Es;
  4056.  
  4057. const _s = fr("MuiTouchRipple", [ "root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate" ]), Os = [ "center", "classes", "className" ];
  4058.  
  4059. let As, Ps, Ms, Is, Fs = e => e;
  4060.  
  4061. const Bs = react.keyframes(As || (As = Fs`
  4062. 0% {
  4063. transform: scale(0);
  4064. opacity: 0.1;
  4065. }
  4066.  
  4067. 100% {
  4068. transform: scale(1);
  4069. opacity: 0.3;
  4070. }
  4071. `)), Ns = react.keyframes(Ps || (Ps = Fs`
  4072. 0% {
  4073. opacity: 1;
  4074. }
  4075.  
  4076. 100% {
  4077. opacity: 0;
  4078. }
  4079. `)), Ls = react.keyframes(Ms || (Ms = Fs`
  4080. 0% {
  4081. transform: scale(1);
  4082. }
  4083.  
  4084. 50% {
  4085. transform: scale(0.92);
  4086. }
  4087.  
  4088. 100% {
  4089. transform: scale(1);
  4090. }
  4091. `)), zs = is("span", {
  4092. name: "MuiTouchRipple",
  4093. slot: "Root"
  4094. })({
  4095. overflow: "hidden",
  4096. pointerEvents: "none",
  4097. position: "absolute",
  4098. zIndex: 0,
  4099. top: 0,
  4100. right: 0,
  4101. bottom: 0,
  4102. left: 0,
  4103. borderRadius: "inherit"
  4104. }), Ds = is((function(t) {
  4105. const {className: n, classes: r, pulsate: o = !1, rippleX: i, rippleY: a, rippleSize: s, in: l, onExited: c, timeout: u} = t, [d, p] = e__namespace.useState(!1), f = jn(n, r.ripple, r.rippleVisible, o && r.ripplePulsate), h = {
  4106. width: s,
  4107. height: s,
  4108. top: -s / 2 + a,
  4109. left: -s / 2 + i
  4110. }, m = jn(r.child, d && r.childLeaving, o && r.childPulsate);
  4111. return l || d || p(!0), e__namespace.useEffect((() => {
  4112. if (!l && null != c) {
  4113. const e = setTimeout(c, u);
  4114. return () => {
  4115. clearTimeout(e);
  4116. };
  4117. }
  4118. }), [ c, l, u ]), K.jsx("span", {
  4119. className: f,
  4120. style: h,
  4121. children: K.jsx("span", {
  4122. className: m
  4123. })
  4124. });
  4125. }), {
  4126. name: "MuiTouchRipple",
  4127. slot: "Ripple"
  4128. })(Is || (Is = Fs`
  4129. opacity: 0;
  4130. position: absolute;
  4131.  
  4132. &.${0} {
  4133. opacity: 0.3;
  4134. transform: scale(1);
  4135. animation-name: ${0};
  4136. animation-duration: ${0}ms;
  4137. animation-timing-function: ${0};
  4138. }
  4139.  
  4140. &.${0} {
  4141. animation-duration: ${0}ms;
  4142. }
  4143.  
  4144. & .${0} {
  4145. opacity: 1;
  4146. display: block;
  4147. width: 100%;
  4148. height: 100%;
  4149. border-radius: 50%;
  4150. background-color: currentColor;
  4151. }
  4152.  
  4153. & .${0} {
  4154. opacity: 0;
  4155. animation-name: ${0};
  4156. animation-duration: ${0}ms;
  4157. animation-timing-function: ${0};
  4158. }
  4159.  
  4160. & .${0} {
  4161. position: absolute;
  4162. /* @noflip */
  4163. left: 0px;
  4164. top: 0;
  4165. animation-name: ${0};
  4166. animation-duration: 2500ms;
  4167. animation-timing-function: ${0};
  4168. animation-iteration-count: infinite;
  4169. animation-delay: 200ms;
  4170. }
  4171. `), _s.rippleVisible, Bs, 550, (({theme: e}) => e.transitions.easing.easeInOut), _s.ripplePulsate, (({theme: e}) => e.transitions.duration.shorter), _s.child, _s.childLeaving, Ns, 550, (({theme: e}) => e.transitions.easing.easeInOut), _s.childPulsate, Ls, (({theme: e}) => e.transitions.easing.easeInOut)), Ws = e__namespace.forwardRef((function(t, n) {
  4172. const r = us({
  4173. props: t,
  4174. name: "MuiTouchRipple"
  4175. }), {center: o = !1, classes: i = {}, className: a} = r, s = nn(r, Os), [l, c] = e__namespace.useState([]), u = e__namespace.useRef(0), d = e__namespace.useRef(null);
  4176. e__namespace.useEffect((() => {
  4177. d.current && (d.current(), d.current = null);
  4178. }), [ l ]);
  4179. const p = e__namespace.useRef(!1), f = Xn(), h = e__namespace.useRef(null), m = e__namespace.useRef(null), g = e__namespace.useCallback((e => {
  4180. const {pulsate: t, rippleX: n, rippleY: r, rippleSize: o, cb: a} = e;
  4181. c((e => [ ...e, K.jsx(Ds, {
  4182. classes: {
  4183. ripple: jn(i.ripple, _s.ripple),
  4184. rippleVisible: jn(i.rippleVisible, _s.rippleVisible),
  4185. ripplePulsate: jn(i.ripplePulsate, _s.ripplePulsate),
  4186. child: jn(i.child, _s.child),
  4187. childLeaving: jn(i.childLeaving, _s.childLeaving),
  4188. childPulsate: jn(i.childPulsate, _s.childPulsate)
  4189. },
  4190. timeout: 550,
  4191. pulsate: t,
  4192. rippleX: n,
  4193. rippleY: r,
  4194. rippleSize: o
  4195. }, u.current) ])), u.current += 1, d.current = a;
  4196. }), [ i ]), y = e__namespace.useCallback(((e = {}, t = {}, n = (() => {})) => {
  4197. const {pulsate: r = !1, center: i = o || t.pulsate, fakeElement: a = !1} = t;
  4198. if ("mousedown" === (null == e ? void 0 : e.type) && p.current) return void (p.current = !1);
  4199. "touchstart" === (null == e ? void 0 : e.type) && (p.current = !0);
  4200. const s = a ? null : m.current, l = s ? s.getBoundingClientRect() : {
  4201. width: 0,
  4202. height: 0,
  4203. left: 0,
  4204. top: 0
  4205. };
  4206. let c, u, d;
  4207. if (i || void 0 === e || 0 === e.clientX && 0 === e.clientY || !e.clientX && !e.touches) c = Math.round(l.width / 2),
  4208. u = Math.round(l.height / 2); else {
  4209. const {clientX: t, clientY: n} = e.touches && e.touches.length > 0 ? e.touches[0] : e;
  4210. c = Math.round(t - l.left), u = Math.round(n - l.top);
  4211. }
  4212. if (i) d = Math.sqrt((2 * l.width ** 2 + l.height ** 2) / 3), d % 2 == 0 && (d += 1); else {
  4213. const e = 2 * Math.max(Math.abs((s ? s.clientWidth : 0) - c), c) + 2, t = 2 * Math.max(Math.abs((s ? s.clientHeight : 0) - u), u) + 2;
  4214. d = Math.sqrt(e ** 2 + t ** 2);
  4215. }
  4216. null != e && e.touches ? null === h.current && (h.current = () => {
  4217. g({
  4218. pulsate: r,
  4219. rippleX: c,
  4220. rippleY: u,
  4221. rippleSize: d,
  4222. cb: n
  4223. });
  4224. }, f.start(80, (() => {
  4225. h.current && (h.current(), h.current = null);
  4226. }))) : g({
  4227. pulsate: r,
  4228. rippleX: c,
  4229. rippleY: u,
  4230. rippleSize: d,
  4231. cb: n
  4232. });
  4233. }), [ o, g, f ]), b = e__namespace.useCallback((() => {
  4234. y({}, {
  4235. pulsate: !0
  4236. });
  4237. }), [ y ]), v = e__namespace.useCallback(((e, t) => {
  4238. if (f.clear(), "touchend" === (null == e ? void 0 : e.type) && h.current) return h.current(),
  4239. h.current = null, void f.start(0, (() => {
  4240. v(e, t);
  4241. }));
  4242. h.current = null, c((e => e.length > 0 ? e.slice(1) : e)), d.current = t;
  4243. }), [ f ]);
  4244. return e__namespace.useImperativeHandle(n, (() => ({
  4245. pulsate: b,
  4246. start: y,
  4247. stop: v
  4248. })), [ b, y, v ]), K.jsx(zs, rn({
  4249. className: jn(_s.root, i.root, a),
  4250. ref: m
  4251. }, s, {
  4252. children: K.jsx($s, {
  4253. component: null,
  4254. exit: !0,
  4255. children: l
  4256. })
  4257. }));
  4258. }));
  4259.  
  4260. function Vs(e) {
  4261. return pr("MuiButtonBase", e);
  4262. }
  4263.  
  4264. const Hs = fr("MuiButtonBase", [ "root", "disabled", "focusVisible" ]), qs = [ "action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type" ], Ks = is("button", {
  4265. name: "MuiButtonBase",
  4266. slot: "Root",
  4267. overridesResolver: (e, t) => t.root
  4268. })({
  4269. display: "inline-flex",
  4270. alignItems: "center",
  4271. justifyContent: "center",
  4272. position: "relative",
  4273. boxSizing: "border-box",
  4274. WebkitTapHighlightColor: "transparent",
  4275. backgroundColor: "transparent",
  4276. outline: 0,
  4277. border: 0,
  4278. margin: 0,
  4279. borderRadius: 0,
  4280. padding: 0,
  4281. cursor: "pointer",
  4282. userSelect: "none",
  4283. verticalAlign: "middle",
  4284. MozAppearance: "none",
  4285. WebkitAppearance: "none",
  4286. textDecoration: "none",
  4287. color: "inherit",
  4288. "&::-moz-focus-inner": {
  4289. borderStyle: "none"
  4290. },
  4291. [`&.${Hs.disabled}`]: {
  4292. pointerEvents: "none",
  4293. cursor: "default"
  4294. },
  4295. "@media print": {
  4296. colorAdjust: "exact"
  4297. }
  4298. }), Us = e__namespace.forwardRef((function(t, n) {
  4299. const r = us({
  4300. props: t,
  4301. name: "MuiButtonBase"
  4302. }), {action: o, centerRipple: i = !1, children: a, className: s, component: l = "button", disabled: c = !1, disableRipple: u = !1, disableTouchRipple: d = !1, focusRipple: p = !1, LinkComponent: f = "a", onBlur: h, onClick: m, onContextMenu: g, onDragLeave: y, onFocus: b, onFocusVisible: v, onKeyDown: x, onKeyUp: S, onMouseDown: w, onMouseLeave: C, onMouseUp: k, onTouchEnd: j, onTouchMove: T, onTouchStart: R, tabIndex: E = 0, TouchRippleProps: $, touchRippleRef: _, type: O} = r, A = nn(r, qs), P = e__namespace.useRef(null), M = e__namespace.useRef(null), I = Hn(M, _), {isFocusVisibleRef: F, onFocus: B, onBlur: N, ref: L} = rr(), [z, D] = e__namespace.useState(!1);
  4303. c && z && D(!1), e__namespace.useImperativeHandle(o, (() => ({
  4304. focusVisible: () => {
  4305. D(!0), P.current.focus();
  4306. }
  4307. })), []);
  4308. const [W, V] = e__namespace.useState(!1);
  4309. e__namespace.useEffect((() => {
  4310. V(!0);
  4311. }), []);
  4312. const H = W && !u && !c;
  4313. function q(e, t, n = d) {
  4314. return Vn((r => {
  4315. t && t(r);
  4316. return !n && M.current && M.current[e](r), !0;
  4317. }));
  4318. }
  4319. e__namespace.useEffect((() => {
  4320. z && p && !u && W && M.current.pulsate();
  4321. }), [ u, p, z, W ]);
  4322. const U = q("start", w), X = q("stop", g), G = q("stop", y), Y = q("stop", k), J = q("stop", (e => {
  4323. z && e.preventDefault(), C && C(e);
  4324. })), Z = q("start", R), Q = q("stop", j), ee = q("stop", T), te = q("stop", (e => {
  4325. N(e), !1 === F.current && D(!1), h && h(e);
  4326. }), !1), ne = Vn((e => {
  4327. P.current || (P.current = e.currentTarget), B(e), !0 === F.current && (D(!0), v && v(e)),
  4328. b && b(e);
  4329. })), re = () => {
  4330. const e = P.current;
  4331. return l && "button" !== l && !("A" === e.tagName && e.href);
  4332. }, oe = e__namespace.useRef(!1), ie = Vn((e => {
  4333. p && !oe.current && z && M.current && " " === e.key && (oe.current = !0, M.current.stop(e, (() => {
  4334. M.current.start(e);
  4335. }))), e.target === e.currentTarget && re() && " " === e.key && e.preventDefault(),
  4336. x && x(e), e.target === e.currentTarget && re() && "Enter" === e.key && !c && (e.preventDefault(),
  4337. m && m(e));
  4338. })), ae = Vn((e => {
  4339. p && " " === e.key && M.current && z && !e.defaultPrevented && (oe.current = !1,
  4340. M.current.stop(e, (() => {
  4341. M.current.pulsate(e);
  4342. }))), S && S(e), m && e.target === e.currentTarget && re() && " " === e.key && !e.defaultPrevented && m(e);
  4343. }));
  4344. let se = l;
  4345. "button" === se && (A.href || A.to) && (se = f);
  4346. const le = {};
  4347. "button" === se ? (le.type = void 0 === O ? "button" : O, le.disabled = c) : (A.href || A.to || (le.role = "button"),
  4348. c && (le["aria-disabled"] = c));
  4349. const ce = Hn(n, L, P), ue = rn({}, r, {
  4350. centerRipple: i,
  4351. component: l,
  4352. disabled: c,
  4353. disableRipple: u,
  4354. disableTouchRipple: d,
  4355. focusRipple: p,
  4356. tabIndex: E,
  4357. focusVisible: z
  4358. }), de = (e => {
  4359. const {disabled: t, focusVisible: n, focusVisibleClassName: r, classes: o} = e, i = lr({
  4360. root: [ "root", t && "disabled", n && "focusVisible" ]
  4361. }, Vs, o);
  4362. return n && r && (i.root += ` ${r}`), i;
  4363. })(ue);
  4364. return K.jsxs(Ks, rn({
  4365. as: se,
  4366. className: jn(de.root, s),
  4367. ownerState: ue,
  4368. onBlur: te,
  4369. onClick: m,
  4370. onContextMenu: X,
  4371. onFocus: ne,
  4372. onKeyDown: ie,
  4373. onKeyUp: ae,
  4374. onMouseDown: U,
  4375. onMouseLeave: J,
  4376. onMouseUp: Y,
  4377. onDragLeave: G,
  4378. onTouchEnd: Q,
  4379. onTouchMove: ee,
  4380. onTouchStart: Z,
  4381. ref: ce,
  4382. tabIndex: c ? -1 : E,
  4383. type: O
  4384. }, le, A, {
  4385. children: [ a, H ? K.jsx(Ws, rn({
  4386. ref: I,
  4387. center: i
  4388. }, $)) : null ]
  4389. }));
  4390. }));
  4391.  
  4392. function Xs(e) {
  4393. return pr("MuiTabScrollButton", e);
  4394. }
  4395.  
  4396. const Gs = fr("MuiTabScrollButton", [ "root", "vertical", "horizontal", "disabled" ]), Ys = [ "className", "slots", "slotProps", "direction", "orientation", "disabled" ], Js = is(Us, {
  4397. name: "MuiTabScrollButton",
  4398. slot: "Root",
  4399. overridesResolver: (e, t) => {
  4400. const {ownerState: n} = e;
  4401. return [ t.root, n.orientation && t[n.orientation] ];
  4402. }
  4403. })((({ownerState: e}) => rn({
  4404. width: 40,
  4405. flexShrink: 0,
  4406. opacity: .8,
  4407. [`&.${Gs.disabled}`]: {
  4408. opacity: 0
  4409. }
  4410. }, "vertical" === e.orientation && {
  4411. width: "100%",
  4412. height: 40,
  4413. "& svg": {
  4414. transform: `rotate(${e.isRtl ? -90 : 90}deg)`
  4415. }
  4416. }))), Zs = e__namespace.forwardRef((function(e, t) {
  4417. var n, r;
  4418. const o = us({
  4419. props: e,
  4420. name: "MuiTabScrollButton"
  4421. }), {className: i, slots: a = {}, slotProps: s = {}, direction: l} = o, c = nn(o, Ys), u = rn({
  4422. isRtl: xr()
  4423. }, o), d = (e => {
  4424. const {classes: t, orientation: n, disabled: r} = e;
  4425. return lr({
  4426. root: [ "root", n, r && "disabled" ]
  4427. }, Xs, t);
  4428. })(u), p = null != (n = a.StartScrollButtonIcon) ? n : xs, f = null != (r = a.EndScrollButtonIcon) ? r : Ss, h = br({
  4429. elementType: p,
  4430. externalSlotProps: s.startScrollButtonIcon,
  4431. additionalProps: {
  4432. fontSize: "small"
  4433. },
  4434. ownerState: u
  4435. }), m = br({
  4436. elementType: f,
  4437. externalSlotProps: s.endScrollButtonIcon,
  4438. additionalProps: {
  4439. fontSize: "small"
  4440. },
  4441. ownerState: u
  4442. });
  4443. return K.jsx(Js, rn({
  4444. component: "div",
  4445. className: jn(d.root, i),
  4446. ref: t,
  4447. role: null,
  4448. ownerState: u,
  4449. tabIndex: null
  4450. }, c, {
  4451. children: "left" === l ? K.jsx(p, rn({}, h)) : K.jsx(f, rn({}, m))
  4452. }));
  4453. }));
  4454.  
  4455. function Qs(e) {
  4456. return pr("MuiTabs", e);
  4457. }
  4458.  
  4459. const el = fr("MuiTabs", [ "root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator" ]), tl = [ "aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar" ], nl = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, rl = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, ol = (e, t, n) => {
  4460. let r = !1, o = n(e, t);
  4461. for (;o; ) {
  4462. if (o === e.firstChild) {
  4463. if (r) return;
  4464. r = !0;
  4465. }
  4466. const t = o.disabled || "true" === o.getAttribute("aria-disabled");
  4467. if (o.hasAttribute("tabindex") && !t) return void o.focus();
  4468. o = n(e, o);
  4469. }
  4470. }, il = is("div", {
  4471. name: "MuiTabs",
  4472. slot: "Root",
  4473. overridesResolver: (e, t) => {
  4474. const {ownerState: n} = e;
  4475. return [ {
  4476. [`& .${el.scrollButtons}`]: t.scrollButtons
  4477. }, {
  4478. [`& .${el.scrollButtons}`]: n.scrollButtonsHideMobile && t.scrollButtonsHideMobile
  4479. }, t.root, n.vertical && t.vertical ];
  4480. }
  4481. })((({ownerState: e, theme: t}) => rn({
  4482. overflow: "hidden",
  4483. minHeight: 48,
  4484. WebkitOverflowScrolling: "touch",
  4485. display: "flex"
  4486. }, e.vertical && {
  4487. flexDirection: "column"
  4488. }, e.scrollButtonsHideMobile && {
  4489. [`& .${el.scrollButtons}`]: {
  4490. [t.breakpoints.down("sm")]: {
  4491. display: "none"
  4492. }
  4493. }
  4494. }))), al = is("div", {
  4495. name: "MuiTabs",
  4496. slot: "Scroller",
  4497. overridesResolver: (e, t) => {
  4498. const {ownerState: n} = e;
  4499. return [ t.scroller, n.fixed && t.fixed, n.hideScrollbar && t.hideScrollbar, n.scrollableX && t.scrollableX, n.scrollableY && t.scrollableY ];
  4500. }
  4501. })((({ownerState: e}) => rn({
  4502. position: "relative",
  4503. display: "inline-block",
  4504. flex: "1 1 auto",
  4505. whiteSpace: "nowrap"
  4506. }, e.fixed && {
  4507. overflowX: "hidden",
  4508. width: "100%"
  4509. }, e.hideScrollbar && {
  4510. scrollbarWidth: "none",
  4511. "&::-webkit-scrollbar": {
  4512. display: "none"
  4513. }
  4514. }, e.scrollableX && {
  4515. overflowX: "auto",
  4516. overflowY: "hidden"
  4517. }, e.scrollableY && {
  4518. overflowY: "auto",
  4519. overflowX: "hidden"
  4520. }))), sl = is("div", {
  4521. name: "MuiTabs",
  4522. slot: "FlexContainer",
  4523. overridesResolver: (e, t) => {
  4524. const {ownerState: n} = e;
  4525. return [ t.flexContainer, n.vertical && t.flexContainerVertical, n.centered && t.centered ];
  4526. }
  4527. })((({ownerState: e}) => rn({
  4528. display: "flex"
  4529. }, e.vertical && {
  4530. flexDirection: "column"
  4531. }, e.centered && {
  4532. justifyContent: "center"
  4533. }))), ll = is("span", {
  4534. name: "MuiTabs",
  4535. slot: "Indicator",
  4536. overridesResolver: (e, t) => t.indicator
  4537. })((({ownerState: e, theme: t}) => rn({
  4538. position: "absolute",
  4539. height: 2,
  4540. bottom: 0,
  4541. width: "100%",
  4542. transition: t.transitions.create()
  4543. }, "primary" === e.indicatorColor && {
  4544. backgroundColor: (t.vars || t).palette.primary.main
  4545. }, "secondary" === e.indicatorColor && {
  4546. backgroundColor: (t.vars || t).palette.secondary.main
  4547. }, e.vertical && {
  4548. height: "100%",
  4549. width: 2,
  4550. right: 0
  4551. }))), cl = is((function(t) {
  4552. const {onChange: n} = t, r = nn(t, bs), o = e__namespace.useRef(), i = e__namespace.useRef(null), a = () => {
  4553. o.current = i.current.offsetHeight - i.current.clientHeight;
  4554. };
  4555. return Wn((() => {
  4556. const e = Ln((() => {
  4557. const e = o.current;
  4558. a(), e !== o.current && n(o.current);
  4559. })), t = Dn(i.current);
  4560. return t.addEventListener("resize", e), () => {
  4561. e.clear(), t.removeEventListener("resize", e);
  4562. };
  4563. }), [ n ]), e__namespace.useEffect((() => {
  4564. a(), n(o.current);
  4565. }), [ n ]), K.jsx("div", rn({
  4566. style: vs,
  4567. ref: i
  4568. }, r));
  4569. }))({
  4570. overflowX: "auto",
  4571. overflowY: "hidden",
  4572. scrollbarWidth: "none",
  4573. "&::-webkit-scrollbar": {
  4574. display: "none"
  4575. }
  4576. }), ul = {}, dl = e__namespace.forwardRef((function(t, n) {
  4577. const r = us({
  4578. props: t,
  4579. name: "MuiTabs"
  4580. }), o = function() {
  4581. const e = cs(rs);
  4582. return e[os] || e;
  4583. }(), i = xr(), {"aria-label": a, "aria-labelledby": s, action: l, centered: c = !1, children: u, className: d, component: p = "div", allowScrollButtonsMobile: f = !1, indicatorColor: h = "primary", onChange: m, orientation: g = "horizontal", ScrollButtonComponent: y = Zs, scrollButtons: b = "auto", selectionFollowsFocus: v, slots: x = {}, slotProps: S = {}, TabIndicatorProps: w = {}, TabScrollButtonProps: C = {}, textColor: k = "primary", value: j, variant: T = "standard", visibleScrollbar: R = !1} = r, E = nn(r, tl), $ = "scrollable" === T, _ = "vertical" === g, O = _ ? "scrollTop" : "scrollLeft", A = _ ? "top" : "left", P = _ ? "bottom" : "right", M = _ ? "clientHeight" : "clientWidth", I = _ ? "height" : "width", F = rn({}, r, {
  4584. component: p,
  4585. allowScrollButtonsMobile: f,
  4586. indicatorColor: h,
  4587. orientation: g,
  4588. vertical: _,
  4589. scrollButtons: b,
  4590. textColor: k,
  4591. variant: T,
  4592. visibleScrollbar: R,
  4593. fixed: !$,
  4594. hideScrollbar: $ && !R,
  4595. scrollableX: $ && !_,
  4596. scrollableY: $ && _,
  4597. centered: c && !$,
  4598. scrollButtonsHideMobile: !f
  4599. }), B = (e => {
  4600. const {vertical: t, fixed: n, hideScrollbar: r, scrollableX: o, scrollableY: i, centered: a, scrollButtonsHideMobile: s, classes: l} = e;
  4601. return lr({
  4602. root: [ "root", t && "vertical" ],
  4603. scroller: [ "scroller", n && "fixed", r && "hideScrollbar", o && "scrollableX", i && "scrollableY" ],
  4604. flexContainer: [ "flexContainer", t && "flexContainerVertical", a && "centered" ],
  4605. indicator: [ "indicator" ],
  4606. scrollButtons: [ "scrollButtons", s && "scrollButtonsHideMobile" ],
  4607. scrollableX: [ o && "scrollableX" ],
  4608. hideScrollbar: [ r && "hideScrollbar" ]
  4609. }, Qs, l);
  4610. })(F), N = br({
  4611. elementType: x.StartScrollButtonIcon,
  4612. externalSlotProps: S.startScrollButtonIcon,
  4613. ownerState: F
  4614. }), L = br({
  4615. elementType: x.EndScrollButtonIcon,
  4616. externalSlotProps: S.endScrollButtonIcon,
  4617. ownerState: F
  4618. }), [z, D] = e__namespace.useState(!1), [W, V] = e__namespace.useState(ul), [H, q] = e__namespace.useState(!1), [U, X] = e__namespace.useState(!1), [G, Y] = e__namespace.useState(!1), [J, Z] = e__namespace.useState({
  4619. overflow: "hidden",
  4620. scrollbarWidth: 0
  4621. }), Q = new Map, ee = e__namespace.useRef(null), te = e__namespace.useRef(null), ne = () => {
  4622. const e = ee.current;
  4623. let t, n;
  4624. if (e) {
  4625. const n = e.getBoundingClientRect();
  4626. t = {
  4627. clientWidth: e.clientWidth,
  4628. scrollLeft: e.scrollLeft,
  4629. scrollTop: e.scrollTop,
  4630. scrollLeftNormalized: ar(e, i ? "rtl" : "ltr"),
  4631. scrollWidth: e.scrollWidth,
  4632. top: n.top,
  4633. bottom: n.bottom,
  4634. left: n.left,
  4635. right: n.right
  4636. };
  4637. }
  4638. if (e && !1 !== j) {
  4639. const e = te.current.children;
  4640. if (e.length > 0) {
  4641. const t = e[Q.get(j)];
  4642. n = t ? t.getBoundingClientRect() : null;
  4643. }
  4644. }
  4645. return {
  4646. tabsMeta: t,
  4647. tabMeta: n
  4648. };
  4649. }, re = Vn((() => {
  4650. const {tabsMeta: e, tabMeta: t} = ne();
  4651. let n, r = 0;
  4652. if (_) n = "top", t && e && (r = t.top - e.top + e.scrollTop); else if (n = i ? "right" : "left",
  4653. t && e) {
  4654. const o = i ? e.scrollLeftNormalized + e.clientWidth - e.scrollWidth : e.scrollLeft;
  4655. r = (i ? -1 : 1) * (t[n] - e[n] + o);
  4656. }
  4657. const o = {
  4658. [n]: r,
  4659. [I]: t ? t[I] : 0
  4660. };
  4661. if (isNaN(W[n]) || isNaN(W[I])) V(o); else {
  4662. const e = Math.abs(W[n] - o[n]), t = Math.abs(W[I] - o[I]);
  4663. (e >= 1 || t >= 1) && V(o);
  4664. }
  4665. })), oe = (e, {animation: t = !0} = {}) => {
  4666. t ? function(e, t, n, r = {}, o = (() => {})) {
  4667. const {ease: i = ps, duration: a = 300} = r;
  4668. let s = null;
  4669. const l = t[e];
  4670. const d = r => {
  4671. null === s && (s = r);
  4672. const u = Math.min(1, (r - s) / a);
  4673. t[e] = i(u) * (n - l) + l, u >= 1 ? requestAnimationFrame((() => {
  4674. o(null);
  4675. })) : requestAnimationFrame(d);
  4676. };
  4677. l === n ? o(new Error("Element already at target position")) : requestAnimationFrame(d);
  4678. }(O, ee.current, e, {
  4679. duration: o.transitions.duration.standard
  4680. }) : ee.current[O] = e;
  4681. }, ie = e => {
  4682. let t = ee.current[O];
  4683. _ ? t += e : (t += e * (i ? -1 : 1), t *= i && "reverse" === ir() ? -1 : 1), oe(t);
  4684. }, ae = () => {
  4685. const e = ee.current[M];
  4686. let t = 0;
  4687. const n = Array.from(te.current.children);
  4688. for (let r = 0; r < n.length; r += 1) {
  4689. const o = n[r];
  4690. if (t + o[M] > e) {
  4691. 0 === r && (t = e);
  4692. break;
  4693. }
  4694. t += o[M];
  4695. }
  4696. return t;
  4697. }, se = () => {
  4698. ie(-1 * ae());
  4699. }, le = () => {
  4700. ie(ae());
  4701. }, ce = e__namespace.useCallback((e => {
  4702. Z({
  4703. overflow: null,
  4704. scrollbarWidth: e
  4705. });
  4706. }), []), ue = Vn((e => {
  4707. const {tabsMeta: t, tabMeta: n} = ne();
  4708. if (n && t) if (n[A] < t[A]) {
  4709. const r = t[O] + (n[A] - t[A]);
  4710. oe(r, {
  4711. animation: e
  4712. });
  4713. } else if (n[P] > t[P]) {
  4714. const r = t[O] + (n[P] - t[P]);
  4715. oe(r, {
  4716. animation: e
  4717. });
  4718. }
  4719. })), de = Vn((() => {
  4720. $ && !1 !== b && Y(!G);
  4721. }));
  4722. e__namespace.useEffect((() => {
  4723. const e = Ln((() => {
  4724. ee.current && re();
  4725. }));
  4726. let t;
  4727. const n = n => {
  4728. n.forEach((e => {
  4729. e.removedNodes.forEach((e => {
  4730. var n;
  4731. null == (n = t) || n.unobserve(e);
  4732. })), e.addedNodes.forEach((e => {
  4733. var n;
  4734. null == (n = t) || n.observe(e);
  4735. }));
  4736. })), e(), de();
  4737. }, r = Dn(ee.current);
  4738. let o;
  4739. return r.addEventListener("resize", e), "undefined" != typeof ResizeObserver && (t = new ResizeObserver(e),
  4740. Array.from(te.current.children).forEach((e => {
  4741. t.observe(e);
  4742. }))), "undefined" != typeof MutationObserver && (o = new MutationObserver(n), o.observe(te.current, {
  4743. childList: !0
  4744. })), () => {
  4745. var n, i;
  4746. e.clear(), r.removeEventListener("resize", e), null == (n = o) || n.disconnect(),
  4747. null == (i = t) || i.disconnect();
  4748. };
  4749. }), [ re, de ]), e__namespace.useEffect((() => {
  4750. const e = Array.from(te.current.children), t = e.length;
  4751. if ("undefined" != typeof IntersectionObserver && t > 0 && $ && !1 !== b) {
  4752. const n = e[0], r = e[t - 1], o = {
  4753. root: ee.current,
  4754. threshold: .99
  4755. }, i = new IntersectionObserver((e => {
  4756. q(!e[0].isIntersecting);
  4757. }), o);
  4758. i.observe(n);
  4759. const a = new IntersectionObserver((e => {
  4760. X(!e[0].isIntersecting);
  4761. }), o);
  4762. return a.observe(r), () => {
  4763. i.disconnect(), a.disconnect();
  4764. };
  4765. }
  4766. }), [ $, b, G, null == u ? void 0 : u.length ]), e__namespace.useEffect((() => {
  4767. D(!0);
  4768. }), []), e__namespace.useEffect((() => {
  4769. re();
  4770. })), e__namespace.useEffect((() => {
  4771. ue(ul !== W);
  4772. }), [ ue, W ]), e__namespace.useImperativeHandle(l, (() => ({
  4773. updateIndicator: re,
  4774. updateScrollButtons: de
  4775. })), [ re, de ]);
  4776. const pe = K.jsx(ll, rn({}, w, {
  4777. className: jn(B.indicator, w.className),
  4778. ownerState: F,
  4779. style: rn({}, W, w.style)
  4780. }));
  4781. let fe = 0;
  4782. const he = e__namespace.Children.map(u, (t => {
  4783. if (!e__namespace.isValidElement(t)) return null;
  4784. const n = void 0 === t.props.value ? fe : t.props.value;
  4785. Q.set(n, fe);
  4786. const r = n === j;
  4787. return fe += 1, e__namespace.cloneElement(t, rn({
  4788. fullWidth: "fullWidth" === T,
  4789. indicator: r && !z && pe,
  4790. selected: r,
  4791. selectionFollowsFocus: v,
  4792. onChange: m,
  4793. textColor: k,
  4794. value: n
  4795. }, 1 !== fe || !1 !== j || t.props.tabIndex ? {} : {
  4796. tabIndex: 0
  4797. }));
  4798. })), me = (() => {
  4799. const e = {};
  4800. e.scrollbarSizeListener = $ ? K.jsx(cl, {
  4801. onChange: ce,
  4802. className: jn(B.scrollableX, B.hideScrollbar)
  4803. }) : null;
  4804. const t = $ && ("auto" === b && (H || U) || !0 === b);
  4805. return e.scrollButtonStart = t ? K.jsx(y, rn({
  4806. slots: {
  4807. StartScrollButtonIcon: x.StartScrollButtonIcon
  4808. },
  4809. slotProps: {
  4810. startScrollButtonIcon: N
  4811. },
  4812. orientation: g,
  4813. direction: i ? "right" : "left",
  4814. onClick: se,
  4815. disabled: !H
  4816. }, C, {
  4817. className: jn(B.scrollButtons, C.className)
  4818. })) : null, e.scrollButtonEnd = t ? K.jsx(y, rn({
  4819. slots: {
  4820. EndScrollButtonIcon: x.EndScrollButtonIcon
  4821. },
  4822. slotProps: {
  4823. endScrollButtonIcon: L
  4824. },
  4825. orientation: g,
  4826. direction: i ? "left" : "right",
  4827. onClick: le,
  4828. disabled: !U
  4829. }, C, {
  4830. className: jn(B.scrollButtons, C.className)
  4831. })) : null, e;
  4832. })();
  4833. return K.jsxs(il, rn({
  4834. className: jn(B.root, d),
  4835. ownerState: F,
  4836. ref: n,
  4837. as: p
  4838. }, E, {
  4839. children: [ me.scrollButtonStart, me.scrollbarSizeListener, K.jsxs(al, {
  4840. className: B.scroller,
  4841. ownerState: F,
  4842. style: {
  4843. overflow: J.overflow,
  4844. [_ ? "margin" + (i ? "Left" : "Right") : "marginBottom"]: R ? void 0 : -J.scrollbarWidth
  4845. },
  4846. ref: ee,
  4847. children: [ K.jsx(sl, {
  4848. "aria-label": a,
  4849. "aria-labelledby": s,
  4850. "aria-orientation": "vertical" === g ? "vertical" : null,
  4851. className: B.flexContainer,
  4852. ownerState: F,
  4853. onKeyDown: e => {
  4854. const t = te.current, n = zn(t).activeElement;
  4855. if ("tab" !== n.getAttribute("role")) return;
  4856. let r = "horizontal" === g ? "ArrowLeft" : "ArrowUp", o = "horizontal" === g ? "ArrowRight" : "ArrowDown";
  4857. switch ("horizontal" === g && i && (r = "ArrowRight", o = "ArrowLeft"), e.key) {
  4858. case r:
  4859. e.preventDefault(), ol(t, n, rl);
  4860. break;
  4861.  
  4862. case o:
  4863. e.preventDefault(), ol(t, n, nl);
  4864. break;
  4865.  
  4866. case "Home":
  4867. e.preventDefault(), ol(t, null, nl);
  4868. break;
  4869.  
  4870. case "End":
  4871. e.preventDefault(), ol(t, null, rl);
  4872. }
  4873. },
  4874. ref: te,
  4875. role: "tablist",
  4876. children: he
  4877. }), z && pe ]
  4878. }), me.scrollButtonEnd ]
  4879. }));
  4880. }));
  4881.  
  4882. function pl(e) {
  4883. return pr("MuiTab", e);
  4884. }
  4885.  
  4886. const fl = fr("MuiTab", [ "root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper" ]), hl = [ "className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped" ], ml = is(Us, {
  4887. name: "MuiTab",
  4888. slot: "Root",
  4889. overridesResolver: (e, t) => {
  4890. const {ownerState: n} = e;
  4891. return [ t.root, n.label && n.icon && t.labelIcon, t[`textColor${Bn(n.textColor)}`], n.fullWidth && t.fullWidth, n.wrapped && t.wrapped ];
  4892. }
  4893. })((({theme: e, ownerState: t}) => rn({}, e.typography.button, {
  4894. maxWidth: 360,
  4895. minWidth: 90,
  4896. position: "relative",
  4897. minHeight: 48,
  4898. flexShrink: 0,
  4899. padding: "12px 16px",
  4900. overflow: "hidden",
  4901. whiteSpace: "normal",
  4902. textAlign: "center"
  4903. }, t.label && {
  4904. flexDirection: "top" === t.iconPosition || "bottom" === t.iconPosition ? "column" : "row"
  4905. }, {
  4906. lineHeight: 1.25
  4907. }, t.icon && t.label && {
  4908. minHeight: 72,
  4909. paddingTop: 9,
  4910. paddingBottom: 9,
  4911. [`& > .${fl.iconWrapper}`]: rn({}, "top" === t.iconPosition && {
  4912. marginBottom: 6
  4913. }, "bottom" === t.iconPosition && {
  4914. marginTop: 6
  4915. }, "start" === t.iconPosition && {
  4916. marginRight: e.spacing(1)
  4917. }, "end" === t.iconPosition && {
  4918. marginLeft: e.spacing(1)
  4919. })
  4920. }, "inherit" === t.textColor && {
  4921. color: "inherit",
  4922. opacity: .6,
  4923. [`&.${fl.selected}`]: {
  4924. opacity: 1
  4925. },
  4926. [`&.${fl.disabled}`]: {
  4927. opacity: (e.vars || e).palette.action.disabledOpacity
  4928. }
  4929. }, "primary" === t.textColor && {
  4930. color: (e.vars || e).palette.text.secondary,
  4931. [`&.${fl.selected}`]: {
  4932. color: (e.vars || e).palette.primary.main
  4933. },
  4934. [`&.${fl.disabled}`]: {
  4935. color: (e.vars || e).palette.text.disabled
  4936. }
  4937. }, "secondary" === t.textColor && {
  4938. color: (e.vars || e).palette.text.secondary,
  4939. [`&.${fl.selected}`]: {
  4940. color: (e.vars || e).palette.secondary.main
  4941. },
  4942. [`&.${fl.disabled}`]: {
  4943. color: (e.vars || e).palette.text.disabled
  4944. }
  4945. }, t.fullWidth && {
  4946. flexShrink: 1,
  4947. flexGrow: 1,
  4948. flexBasis: 0,
  4949. maxWidth: "none"
  4950. }, t.wrapped && {
  4951. fontSize: e.typography.pxToRem(12)
  4952. }))), gl = e__namespace.forwardRef((function(t, n) {
  4953. const r = us({
  4954. props: t,
  4955. name: "MuiTab"
  4956. }), {className: o, disabled: i = !1, disableFocusRipple: a = !1, fullWidth: s, icon: l, iconPosition: c = "top", indicator: u, label: d, onChange: p, onClick: f, onFocus: h, selected: m, selectionFollowsFocus: g, textColor: y = "inherit", value: b, wrapped: v = !1} = r, x = nn(r, hl), S = rn({}, r, {
  4957. disabled: i,
  4958. disableFocusRipple: a,
  4959. selected: m,
  4960. icon: !!l,
  4961. iconPosition: c,
  4962. label: !!d,
  4963. fullWidth: s,
  4964. textColor: y,
  4965. wrapped: v
  4966. }), w = (e => {
  4967. const {classes: t, textColor: n, fullWidth: r, wrapped: o, icon: i, label: a, selected: s, disabled: l} = e;
  4968. return lr({
  4969. root: [ "root", i && a && "labelIcon", `textColor${Bn(n)}`, r && "fullWidth", o && "wrapped", s && "selected", l && "disabled" ],
  4970. iconWrapper: [ "iconWrapper" ]
  4971. }, pl, t);
  4972. })(S), C = l && d && e__namespace.isValidElement(l) ? e__namespace.cloneElement(l, {
  4973. className: jn(w.iconWrapper, l.props.className)
  4974. }) : l;
  4975. return K.jsxs(ml, rn({
  4976. focusRipple: !a,
  4977. className: jn(w.root, o),
  4978. ref: n,
  4979. role: "tab",
  4980. "aria-selected": m,
  4981. disabled: i,
  4982. onClick: e => {
  4983. !m && p && p(e, b), f && f(e);
  4984. },
  4985. onFocus: e => {
  4986. g && !m && p && p(e, b), h && h(e);
  4987. },
  4988. ownerState: S,
  4989. tabIndex: m ? 0 : -1
  4990. }, x, {
  4991. children: [ "top" === c || "start" === c ? K.jsxs(e__namespace.Fragment, {
  4992. children: [ C, d ]
  4993. }) : K.jsxs(e__namespace.Fragment, {
  4994. children: [ d, C ]
  4995. }), u ]
  4996. }));
  4997. })), yl = fr("MuiBox", [ "root" ]), bl = ns(), vl = function(t = {}) {
  4998. const {themeId: n, defaultTheme: r, defaultClassName: o = "MuiBox-root", generateClassName: i} = t, a = Oo("div", {
  4999. shouldForwardProp: e => "theme" !== e && "sx" !== e && "as" !== e
  5000. })(Fi);
  5001. return e__namespace.forwardRef((function(e, t) {
  5002. const s = cs(r), l = Vi(e), {className: c, component: u = "div"} = l, d = nn(l, ds);
  5003. return K.jsx(a, rn({
  5004. as: u,
  5005. ref: t,
  5006. className: jn(c, i ? i(o) : o),
  5007. theme: n && s[n] || s
  5008. }, d));
  5009. }));
  5010. }({
  5011. themeId: os,
  5012. defaultTheme: bl,
  5013. defaultClassName: yl.root,
  5014. generateClassName: ur.generate
  5015. });
  5016.  
  5017. function xl() {
  5018. const {logItems: e$1} = Xe(), t = e.useRef(null);
  5019. return e.useEffect((() => {
  5020. t.current && t.current.scrollIntoView({
  5021. behavior: "smooth"
  5022. });
  5023. }), [ e$1 ]), K.jsxs(material.List, {
  5024. dense: !0,
  5025. sx: {},
  5026. children: [ e$1.map(((e, t) => K.jsx(material.ListItem, {
  5027. children: K.jsx(material.ListItemText, {
  5028. primary: e,
  5029. sx: {
  5030. typography: "overline",
  5031. lineHeight: "normal",
  5032. px: 0,
  5033. my: 0
  5034. },
  5035. disableTypography: !0
  5036. })
  5037. }, t))), K.jsx("div", {
  5038. ref: t
  5039. }) ]
  5040. });
  5041. }
  5042.  
  5043. const Sl = ({value: e$1, min: t = 0, max: n = 1 / 0, step: o = 1, decimalScale: i = 0, unit: a, singularUnit: s, helperText: l, textAlign: d = "center", hideActionButtons: p = !1, onChange: f, ...h}) => {
  5044. var w, C;
  5045. const [k, j] = e.useState(null == e$1 ? void 0 : e$1.toString()), T = Math.max(...[ t, n, o ].map((e => (e % 1 || 0).toString().length - 2)), 0), R = i > 0 || T > 0;
  5046. i = i > 0 ? i : T;
  5047. const E = Cl(t, n, R), $ = e => wl(e, t, n, i), _ = $(k).toString() === k && void 0 !== e$1 ? $(e$1).toString() : k, O = e => {
  5048. j(e);
  5049. const t = $(e);
  5050. t.toString() === e && (null == f || f(t));
  5051. }, A = e => () => O($($(_) + e).toString());
  5052. h ?? (h = {}), h.inputProps ?? (h.inputProps = {}), (w = h.inputProps).style ?? (w.style = {}),
  5053. (C = h.inputProps.style).textAlign ?? (C.textAlign = d), h.placeholder ?? (h.placeholder = Math.min(n, Math.max(t, 0)).toString());
  5054. const P = kl(h);
  5055. return p = p || h.readOnly || !1, s ?? (s = a), a ?? (a = s), K.jsx(material.Box, {
  5056. children: K.jsxs(material.FormControl, {
  5057. ...P,
  5058. variant: "outlined",
  5059. children: [ K.jsx(material.InputLabel, {
  5060. shrink: !0,
  5061. htmlFor: "number-input",
  5062. children: h.label
  5063. }), K.jsx(material.OutlinedInput, {
  5064. notched: !0,
  5065. error: h.error || Number(k) < t || Number(k) > n,
  5066. ...h,
  5067. value: _,
  5068. id: "number-input",
  5069. onChange: e => O(e.target.value),
  5070. onBlur: e => O($(e.target.value).toString()),
  5071. onKeyDown: e => {
  5072. const r = (e => {
  5073. if (e.ctrlKey || e.shiftKey || e.altKey) return;
  5074. if ("ArrowUp" === e.key) return void A(o)();
  5075. if ("ArrowDown" === e.key) return void A(-o)();
  5076. const t = e.key;
  5077. if (t.length > 1) return;
  5078. const n = t.charCodeAt(0);
  5079. return n < 32 || n > 126 && n < 160 || n > 255 ? void 0 : t;
  5080. })(e);
  5081. if (!r) return;
  5082. const i = e.target;
  5083. if (null == i.selectionStart || null == i.selectionEnd) return;
  5084. const a = i.value.substring(0, i.selectionStart) + r + i.value.substring(i.selectionEnd);
  5085. a.match(E) ? (Number(a) < t || Number(a) > n) && e.preventDefault() : e.preventDefault();
  5086. },
  5087. onPaste: e => {
  5088. var r;
  5089. const o = null == (r = e.clipboardData) ? void 0 : r.getData("Text");
  5090. (null == o ? void 0 : o.trim().match(E)) ? (Number(!(null == o ? void 0 : o.trim())) < t || Number(!(null == o ? void 0 : o.trim())) > n) && e.preventDefault() : e.preventDefault();
  5091. },
  5092. startAdornment: p ? void 0 : K.jsx(material.InputAdornment, {
  5093. position: "start",
  5094. children: K.jsx(material.IconButton, {
  5095. "aria-label": "decrease value",
  5096. onClick: A(-o),
  5097. edge: "start",
  5098. disabled: h.disabled || $(_) <= t,
  5099. children: K.jsx(material.Icon, {
  5100. children: "do_not_disturb_on"
  5101. })
  5102. })
  5103. }),
  5104. endAdornment: (a || !p) && K.jsxs(material.InputAdornment, {
  5105. position: "end",
  5106. children: [ a && K.jsx(material.Typography, {
  5107. className: "cursor-default select-none",
  5108. children: 1 === $(_) ? s : a
  5109. }), !p && K.jsx(material.IconButton, {
  5110. "aria-label": "increase value",
  5111. onClick: A(o),
  5112. edge: "end",
  5113. disabled: h.disabled || $(_) >= n,
  5114. color: void 0,
  5115. sx: {
  5116. "&:hover": {
  5117. color: e => h.color || e.palette.primary.main
  5118. },
  5119. "&:focus": {
  5120. color: e => h.color || e.palette.primary.main
  5121. },
  5122. transition: e => e.transitions.create("color")
  5123. },
  5124. children: K.jsx(material.Icon, {
  5125. children: "add_circle"
  5126. })
  5127. }) ]
  5128. })
  5129. }), l && K.jsx(material.FormHelperText, {
  5130. children: l
  5131. }) ]
  5132. })
  5133. });
  5134. }, wl = (e, t = -1 / 0, n = 1 / 0, r = 0) => {
  5135. let o = "number" == typeof e ? e : Number(e);
  5136. return o = Math.min(n, Math.max(t, isNaN(o) ? 0 : o)), Number(o.toFixed(r));
  5137. }, Cl = (e, t, n) => {
  5138. let r = "^";
  5139. return r += t < 0 ? "-[0-9]*" : e > 0 ? "[0-9]+" : "-?[0-9]*", n && (r += "(\\.[0-9]*)?"),
  5140. r += "$", new RegExp(r);
  5141. }, kl = e => ({
  5142. color: e.color,
  5143. disabled: e.disabled,
  5144. error: e.error,
  5145. fullWidth: e.fullWidth,
  5146. required: e.required,
  5147. variant: e.variant
  5148. });
  5149.  
  5150. function jl() {
  5151. const {standbyTime: e, setStandbyTime: t} = Ge(), {replyCountTimes: n, setReplyCountTimes: r} = Ge(), {newTopicCountTimes: o, setNewTopicCountTimes: i} = Ge();
  5152. return Ge((e => e._hasHydrated)) ? K.jsxs(material.List, {
  5153. sx: {},
  5154. children: [ K.jsx(material.ListItem, {
  5155. sx: {
  5156. pt: 3
  5157. },
  5158. children: K.jsx(Sl, {
  5159. label: "评论数量",
  5160. min: 1,
  5161. max: 10,
  5162. value: n,
  5163. onChange: r,
  5164. size: "small",
  5165. style: {
  5166. width: 130
  5167. }
  5168. })
  5169. }), K.jsx(material.ListItem, {
  5170. sx: {
  5171. pt: 3
  5172. },
  5173. children: K.jsx(Sl, {
  5174. label: "发起讨论数量",
  5175. min: 1,
  5176. max: 10,
  5177. value: o,
  5178. onChange: i,
  5179. size: "small",
  5180. style: {
  5181. width: 130
  5182. }
  5183. })
  5184. }), K.jsx(material.ListItem, {
  5185. sx: {
  5186. pt: 3
  5187. },
  5188. children: K.jsx(Sl, {
  5189. label: "间隔时间(ms)",
  5190. min: 500,
  5191. max: 1e4,
  5192. value: e,
  5193. step: 100,
  5194. onChange: t,
  5195. size: "small",
  5196. style: {
  5197. width: 200
  5198. }
  5199. })
  5200. }), K.jsx(material.ListItem, {
  5201. sx: {
  5202. pt: 3
  5203. }
  5204. }) ]
  5205. }) : K.jsx("p", {
  5206. children: "Loading..."
  5207. });
  5208. }
  5209.  
  5210. function Tl() {
  5211. return K.jsxs(K.Fragment, {
  5212. children: [ K.jsx(material.Typography, {
  5213. variant: "body1",
  5214. gutterBottom: !0,
  5215. children: "本脚本用于自动化学习通讨论区的评论操作。"
  5216. }), K.jsxs(material.Typography, {
  5217. variant: "body2",
  5218. gutterBottom: !0,
  5219. children: [ "作者:", K.jsx("a", {
  5220. href: "http://github.com/lcandy2",
  5221. target: "_blank",
  5222. children: "@lcandy2"
  5223. }) ]
  5224. }) ]
  5225. });
  5226. }
  5227.  
  5228. function Rl(e) {
  5229. const {children: t, value: n, index: r, ...o} = e;
  5230. return K.jsx("div", {
  5231. role: "tabpanel",
  5232. hidden: n !== r,
  5233. id: `cx-auto-tabpanel-${r}`,
  5234. "aria-labelledby": `cx-auto-tab-${r}`,
  5235. ...o,
  5236. children: n === r && K.jsx(vl, {
  5237. sx: {
  5238. p: 0,
  5239. maxWidth: 280,
  5240. maxHeight: 300,
  5241. minWidth: 260,
  5242. minHeight: 200,
  5243. overflow: "auto"
  5244. },
  5245. children: t
  5246. })
  5247. });
  5248. }
  5249.  
  5250. function El(e) {
  5251. return {
  5252. id: `cx-auto-tab-${e}`,
  5253. "aria-controls": `cx-auto-tabpanel-${e}`
  5254. };
  5255. }
  5256.  
  5257. function $l() {
  5258. const [e$1, t] = e.useState(0), {isInActionFrame: n} = Ye();
  5259. return K.jsxs(vl, {
  5260. sx: {
  5261. width: "100%"
  5262. },
  5263. children: [ !n && K.jsx(vl, {
  5264. sx: {
  5265. borderBottom: 1,
  5266. borderColor: "divider"
  5267. },
  5268. children: K.jsxs(dl, {
  5269. value: e$1,
  5270. onChange: (e, n) => {
  5271. t(n);
  5272. },
  5273. "aria-label": "basic tabs example",
  5274. children: [ K.jsx(gl, {
  5275. disabled: n,
  5276. label: "状态",
  5277. ...El(0)
  5278. }), K.jsx(gl, {
  5279. disabled: n,
  5280. label: "设定",
  5281. ...El(1)
  5282. }), K.jsx(gl, {
  5283. disabled: n,
  5284. label: "关于",
  5285. ...El(2)
  5286. }) ]
  5287. })
  5288. }), K.jsx(Rl, {
  5289. value: e$1,
  5290. index: 0,
  5291. children: K.jsx(xl, {})
  5292. }), !n && K.jsxs(K.Fragment, {
  5293. children: [ K.jsx(Rl, {
  5294. value: e$1,
  5295. index: 1,
  5296. children: K.jsx(jl, {})
  5297. }), K.jsx(Rl, {
  5298. value: e$1,
  5299. index: 2,
  5300. children: K.jsx(Tl, {})
  5301. }) ]
  5302. }) ]
  5303. });
  5304. }
  5305.  
  5306. function _l({title: e$1, canBeClosed: n = !0, handleClose: o, actions: i, draggableProps: a, dialogProps: s, maxWidth: l, children: u}) {
  5307. const [d, p] = e.useState(!0), f = e.useRef(null);
  5308. return d && K.jsx(P, {
  5309. handle: "#draggable-dialog-title",
  5310. cancel: '[class*="MuiDialogContent-root"]',
  5311. nodeRef: f,
  5312. ...a,
  5313. children: K.jsx("div", {
  5314. className: "floating-overlay",
  5315. ref: f,
  5316. children: K.jsxs(material.Dialog, {
  5317. open: !0,
  5318. hideBackdrop: !0,
  5319. disableEnforceFocus: !0,
  5320. disableAutoFocus: !0,
  5321. disableScrollLock: !0,
  5322. disablePortal: !0,
  5323. maxWidth: l || "xs",
  5324. "aria-labelledby": "draggable-dialog-title",
  5325. container: () => document.querySelector(".floating-overlay"),
  5326. ...s,
  5327. children: [ K.jsx(material.DialogTitle, {
  5328. style: {
  5329. cursor: "move"
  5330. },
  5331. id: "draggable-dialog-title",
  5332. children: e$1
  5333. }), n && K.jsx(material.IconButton, {
  5334. "aria-label": "close",
  5335. onClick: () => {
  5336. p(!1), o && o();
  5337. },
  5338. sx: {
  5339. position: "absolute",
  5340. right: 8,
  5341. top: 8,
  5342. color: e => e.palette.grey[500]
  5343. },
  5344. children: K.jsx(material.Icon, {
  5345. children: "close"
  5346. })
  5347. }), K.jsx(material.DialogContent, {
  5348. dividers: !0,
  5349. sx: {
  5350. p: 0
  5351. },
  5352. children: K.jsx(material.DialogContentText, {
  5353. component: "div",
  5354. children: u
  5355. })
  5356. }), i && K.jsx(material.DialogActions, {
  5357. children: i
  5358. }) ]
  5359. })
  5360. })
  5361. });
  5362. }
  5363.  
  5364. function Ol() {
  5365. const [e$1, n] = e.useState(!0);
  5366. e.useRef(null);
  5367. const {isInActionFrame: o, actionFrameStatus: i, setCurrentStatus: a, setCurrentPage: s} = Ye(), l = i.src;
  5368. return e$1 && K.jsxs(K.Fragment, {
  5369. children: [ K.jsx(_l, {
  5370. title: "学习通自动化",
  5371. actions: K.jsx(tn, {}),
  5372. canBeClosed: !o,
  5373. handleClose: () => {
  5374. n(!1), a(null), s(null);
  5375. },
  5376. children: K.jsx($l, {})
  5377. }), l && K.jsxs(_l, {
  5378. title: "--执行讨论回复中--",
  5379. canBeClosed: !1,
  5380. draggableProps: {
  5381. positionOffset: {
  5382. x: "300px",
  5383. y: "30px"
  5384. }
  5385. },
  5386. maxWidth: "sm",
  5387. children: [ K.jsx("iframe", {
  5388. id: "cxauto_action",
  5389. src: l,
  5390. width: "600",
  5391. height: "460"
  5392. }), K.jsx("div", {
  5393. id: "cxauto_action"
  5394. }) ]
  5395. }) ]
  5396. });
  5397. }
  5398.  
  5399. var Al = {}, Pl = M;
  5400.  
  5401. Al.createRoot = Pl.createRoot, Al.hydrateRoot = Pl.hydrateRoot, console.log("Chaoxing auto start!!!"),
  5402. (ee() || te()) && (console.log("Topic Match"), Al.createRoot((() => {
  5403. const e = document.createElement("div");
  5404. return document.body.append(e), e;
  5405. })()).render(K.jsx(e.StrictMode, {
  5406. children: K.jsx(Ol, {})
  5407. })));
  5408.  
  5409. })(React, MaterialUI, emotionStyled, emotionReact, ReactDraggable, ReactDOM);