switch520-auto-secret

让switch520变得丝滑无比:自动填写密码、下载按钮直达下载地址页、百度网盘自动填写密码 , 去Steam查看游戏评价

目前为 2025-03-08 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name switch520-auto-secret
  3. // @description 让switch520变得丝滑无比:自动填写密码、下载按钮直达下载地址页、百度网盘自动填写密码 , 去Steam查看游戏评价
  4. // @version 4.0.0
  5. // @author Kane
  6. // @match *://*.gamers520.com/*
  7. // @match *://*.switch618.com/*
  8. // @match *://*.gamer520.com/*
  9. // @match *://download.gamer520.com/*
  10. // @match *://download.espartasr.com/*
  11. // @match *://download.freer.blog/*
  12. // @match *://www.freer.blog/*
  13. // @match *://*.xxxxx528.com/*
  14. // @match *://www.efemovies.com/*
  15. // @match *://www.espartasr.com/*
  16. // @match *://www.piclabo.xyz/*
  17. // @match *://like.gamer520.com/*
  18. // @match *://pan.baidu.com/*
  19. // @icon https://img.piclabo.xyz/2023/10/25/d67adcffb89dd.jpg
  20. // @license MIT
  21. // @namespace http://tampermonkey.net/
  22. // @require https://unpkg.com/react@18.2.0/umd/react.production.min.js
  23. // @require https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js
  24. // @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js
  25. // @require https://unpkg.com/mobx@6.13.5/dist/mobx.umd.production.min.js
  26. // @require https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.13/dayjs.min.js
  27. // @require https://cdnjs.cloudflare.com/ajax/libs/antd/5.22.7/antd.min.js
  28. // @resource antdCSS https://cdnjs.cloudflare.com/ajax/libs/antd/5.22.7/reset.min.css
  29. // ==/UserScript==
  30.  
  31. /******/ (() => { // webpackBootstrap
  32. /******/ "use strict";
  33. /******/ var __webpack_modules__ = ({
  34.  
  35. /***/ 95:
  36. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  37.  
  38. __webpack_require__.r(__webpack_exports__);
  39. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40. /* harmony export */ analyzeGameNameInArticle: () => (/* binding */ analyzeGameNameInArticle),
  41. /* harmony export */ analyzeGameNameInTitle: () => (/* binding */ analyzeGameNameInTitle),
  42. /* harmony export */ articleContainer: () => (/* binding */ articleContainer),
  43. /* harmony export */ getGameName: () => (/* binding */ getGameName),
  44. /* harmony export */ nameInArticle: () => (/* binding */ nameInArticle),
  45. /* harmony export */ nameInTitle: () => (/* binding */ nameInTitle),
  46. /* harmony export */ titleElement: () => (/* binding */ titleElement)
  47. /* harmony export */ });
  48. var articleContainer = function articleContainer() {
  49. return document.querySelector('div.entry-content.u-text-format.u-clearfix');
  50. };
  51. var titleElement = function titleElement() {
  52. return document.querySelector('h1.entry-title');
  53. };
  54.  
  55. /**
  56. * 根据标题解析出中文名和英文名
  57. */
  58. var analyzeGameNameInTitle = function analyzeGameNameInTitle() {
  59. var _titleElement;
  60. var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_titleElement = titleElement()) === null || _titleElement === void 0 ? void 0 : _titleElement.innerText;
  61. var chineseGameName;
  62. var englishGameName;
  63. var _titleText = title.split(/\/|\|/)[0];
  64.  
  65. //<Liberated: Enhanced Edition>
  66. if (/^[a-zA-Z0-9\s:]+/.test(_titleText)) {
  67. chineseGameName = null;
  68. englishGameName = _titleText.replaceAll(/[\u4e00-\u9fa5]/g, '').replaceAll(/^:|:$/g, '').trim();
  69. }
  70.  
  71. //<商店模拟器 超市 Shop Simulator Supermarket>
  72. if (/^\s*[\u4e00-\u9fa5™…?《][\w\W]*[\u4e00-\u9fa5\s™…?》-](?=(\s|$))/.test(_titleText)) {
  73. var _titleText$match;
  74. chineseGameName = (_titleText$match = _titleText.match(/^\s*[\u4e00-\u9fa5™…?《-]+[\w\W]*[\u4e00-\u9fa5™…?-]+(?=\s?)/)) === null || _titleText$match === void 0 ? void 0 : _titleText$match[0];
  75. englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  76. }
  77.  
  78. //<零号奴隶X Slave Zero X>
  79. if (/^\s*[\u4e00-\u9fa5™…?《]+[a-zA-Z0-9](\s+|\b)/.test(_titleText)) {
  80. var _titleText$match2;
  81. chineseGameName = (_titleText$match2 = _titleText.match(/\s*[\u4e00-\u9fa5《]+[a-zA-Z0-9](?=\s*)/)) === null || _titleText$match2 === void 0 ? void 0 : _titleText$match2[0];
  82. englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  83. }
  84.  
  85. //<我的世界:传奇:minecraft:legends>
  86. if (_titleText.split(':').length - 1 > 2 && /^[\u4e00-\u9fa5]+[\w\W]*:[\w\W]*$/i.test(_titleText)) {
  87. var _titleText$match3;
  88. chineseGameName = (_titleText$match3 = _titleText.match(/^[\u4e00-\u9fa5]+:[\u4e00-\u9fa5]+/g)) === null || _titleText$match3 === void 0 ? void 0 : _titleText$match3[0];
  89. englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  90. }
  91. //<超级竞技场:Hyper Jam>
  92. if (/^[\u4e00-\u9fa5]+:[a-zA-Z\s]+$/.test(_titleText)) {
  93. var _titleText$match4;
  94. chineseGameName = (_titleText$match4 = _titleText.match(/^\s*[\u4e00-\u9fa5]+:?[\u4e00-\u9fa5]*(?=:)/i)) === null || _titleText$match4 === void 0 ? void 0 : _titleText$match4[0];
  95. englishGameName = _titleText.replace(chineseGameName, '').replaceAll(/^:|:$/g, '').trim();
  96. }
  97. var res = {
  98. chinese: chineseGameName,
  99. english: englishGameName
  100. };
  101. return res;
  102. };
  103.  
  104. /**
  105. * 根据文章内容解析出游戏名
  106. */
  107. var analyzeGameNameInArticle = function analyzeGameNameInArticle(rowText, el) {
  108. var _el$childNodes$;
  109. if (/《[\w\W]+》/.test(rowText)) {
  110. var _rowText$match;
  111. false && 0;
  112. return analyzeGameNameInTitle((_rowText$match = rowText.match(/(?<=《)[\w\W]+(?=》)/)) === null || _rowText$match === void 0 ? void 0 : _rowText$match[0]);
  113. } else if (/^《[\w\W]+》\s*[\u4e00-\u9fa5]+\s*[a-zA-Z]+\s*$/.test(rowText)) {
  114. var _rowText$match2;
  115. false && 0;
  116. return analyzeGameNameInTitle(rowText.replaceAll(/[\u4e00-\u9fa5《》][a-zA-Z0-9]+/g, '').replaceAll(/[\u4e00-\u9fa5《》]/g, ''));
  117. } else if (el !== null && el !== void 0 && (_el$childNodes$ = el.childNodes[0]) !== null && _el$childNodes$ !== void 0 && _el$childNodes$.textContent.startsWith('名称:')) {
  118. var _el$childNodes$2, _el$childNodes$3;
  119. false && 0;
  120. return analyzeGameNameInTitle((_el$childNodes$3 = el.childNodes[0]) === null || _el$childNodes$3 === void 0 ? void 0 : _el$childNodes$3.textContent.replace('名称:', '').trim());
  121. } else if ((el === null || el === void 0 ? void 0 : el.tagName.toLowerCase()) === 'p') {
  122. false && 0;
  123. return analyzeGameNameInTitle(rowText);
  124. }
  125. return analyzeGameNameInTitle(rowText);
  126. };
  127. var nameInTitle = function nameInTitle() {
  128. var el = titleElement();
  129. return analyzeGameNameInTitle(el.innerText);
  130. };
  131. var nameInArticle = function nameInArticle() {
  132. var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : articleContainer();
  133. return Array.from(container.querySelectorAll('*')).reduce(function (accu, el) {
  134. if (accu) return accu;
  135. if (el.innerText.includes('解压密码') || el.innerText.includes('去Steam') || !el.innerText.trim()) return null;
  136. return accu = analyzeGameNameInArticle(el.innerText, el);
  137. }, null);
  138. };
  139. var getGameName = function getGameName() {
  140. return titleElement().innerText.split('|')[0];
  141. var articleName = nameInArticle();
  142. var titleName = nameInTitle();
  143. return articleName.english || articleName.chinese || titleName.english || titleName.chinese;
  144. };
  145. if (false) {}
  146.  
  147. /***/ }),
  148.  
  149. /***/ 801:
  150. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  151.  
  152. __webpack_require__.r(__webpack_exports__);
  153. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  154. /* harmony export */ getGameName: () => (/* binding */ getGameName)
  155. /* harmony export */ });
  156. function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
  157. function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
  158. function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
  159. function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
  160. var getGameName = function getGameName() {
  161. var _titleText$match;
  162. var titleText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.querySelector('.article-title').innerText;
  163. var _ref = ((_titleText$match = titleText.match(/*#__PURE__*/_wrapRegExp(/\u300A([\s\S]+?)\(([\s\S]+?)\)\u300B[\w\W]*/, {
  164. chinese: 1,
  165. english: 2
  166. }))) === null || _titleText$match === void 0 ? void 0 : _titleText$match.groups) || {},
  167. chinese = _ref.chinese,
  168. english = _ref.english;
  169. if (!chinese && !english) {
  170. english = titleText.split('|')[0];
  171. }
  172. return {
  173. chinese: chinese,
  174. english: english
  175. };
  176. };
  177. if (false) {}
  178.  
  179. /***/ }),
  180.  
  181. /***/ 312:
  182. /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
  183.  
  184.  
  185. ;// external "antd"
  186. const external_antd_namespaceObject = antd;
  187. // EXTERNAL MODULE: ./node_modules/reaxes-react/index.js
  188. var reaxes_react = __webpack_require__(987);
  189. // EXTERNAL MODULE: ./node_modules/reaxes/index.js + 1 modules
  190. var reaxes = __webpack_require__(396);
  191. // EXTERNAL MODULE: ./node_modules/react-dom/client.js
  192. var client = __webpack_require__(338);
  193. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
  194. var injectStylesIntoStyleTag = __webpack_require__(72);
  195. var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
  196. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
  197. var styleDomAPI = __webpack_require__(825);
  198. var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
  199. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
  200. var insertBySelector = __webpack_require__(659);
  201. var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
  202. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
  203. var setAttributesWithoutAttributes = __webpack_require__(56);
  204. var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
  205. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
  206. var insertStyleElement = __webpack_require__(540);
  207. var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
  208. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
  209. var styleTagTransform = __webpack_require__(113);
  210. var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
  211. // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./projects/switch520-auto-secret/SearchOnSelect/style.module.less
  212. var style_module = __webpack_require__(41);
  213. ;// ./projects/switch520-auto-secret/SearchOnSelect/style.module.less
  214.  
  215.  
  216. var options = {};
  217.  
  218. options.styleTagTransform = (styleTagTransform_default());
  219. options.setAttributes = (setAttributesWithoutAttributes_default());
  220. options.insert = insertBySelector_default().bind(null, "head");
  221. options.domAPI = (styleDomAPI_default());
  222. options.insertStyleElement = (insertStyleElement_default());
  223.  
  224. var update = injectStylesIntoStyleTag_default()(style_module/* default */.A, options);
  225.  
  226.  
  227.  
  228.  
  229. /* harmony default export */ const SearchOnSelect_style_module = (style_module/* default */.A && style_module/* default */.A.locals ? style_module/* default */.A.locals : undefined);
  230.  
  231. ;// ./projects/switch520-auto-secret/SearchOnSelect/index.tsx
  232. /* provided dependency */ var React = __webpack_require__(594);
  233. function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
  234. function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
  235. function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
  236. function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
  237. function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
  238. function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
  239. var notificationKey = 'search-on-steam';
  240. var getSelection = function getSelection() {
  241. return window.getSelection().toString();
  242. };
  243. document.addEventListener('mouseup', function (evt) {
  244. var _className, _className$includes;
  245. if ((_className = evt.target.className) !== null && _className !== void 0 && (_className$includes = _className.includes) !== null && _className$includes !== void 0 && _className$includes.call(_className, 'ant-notification')) {
  246. return;
  247. }
  248. var selection = getSelection();
  249. console.log(evt.target, getSelection());
  250. setState({
  251. selection: selection
  252. });
  253. });
  254. var _orzMobx = (0,reaxes_react/* orzMobx */.ue)({
  255. open: false,
  256. selection: ''
  257. }),
  258. store = _orzMobx.store,
  259. setState = _orzMobx.setState,
  260. mutate = _orzMobx.mutate;
  261. reaxes/* Reaxes */.t_.obsReaction(function (first) {
  262. if (first) return;
  263. var selection = store.selection;
  264. if (selection) {
  265. setState({
  266. open: true
  267. });
  268. } else {
  269. setState({
  270. open: false
  271. });
  272. }
  273. }, function () {
  274. return [store.selection];
  275. });
  276. var App = (0,reaxes_react/* reaxper */.iS)(function () {
  277. var _notification$useNoti = external_antd_namespaceObject.notification.useNotification(),
  278. _notification$useNoti2 = _slicedToArray(_notification$useNoti, 2),
  279. api = _notification$useNoti2[0],
  280. contextHolder = _notification$useNoti2[1];
  281. var open = store.open,
  282. selection = store.selection;
  283. if (open) {
  284. api.open({
  285. message: /*#__PURE__*/React.createElement("a", {
  286. style: {
  287. color: 'black',
  288. fontSize: '20px',
  289. display: "inline-block"
  290. },
  291. onClick: function onClick(e) {
  292. e.preventDefault();
  293. // window.open( `https://store.steampowered.com/search/?sort_by=_ASC&term=${ selection }&supportedlang=schinese%2Cenglish` );
  294. window.open("https://store.steampowered.com/search/?term=".concat(encodeURIComponent(selection.trim()).replace(/%20/g, '+')));
  295. }
  296. }, "Steam\u641C\u7D22\uFF1A", /*#__PURE__*/React.createElement("span", {
  297. style: {
  298. color: '#7f7fff'
  299. }
  300. }, selection)),
  301. placement: 'top',
  302. key: notificationKey,
  303. duration: null,
  304. closable: false,
  305. onClose: null,
  306. closeIcon: null
  307. });
  308. } else {
  309. api.destroy(notificationKey);
  310. }
  311. return contextHolder;
  312. });
  313. var container = document.createElement('div');
  314. document.body.append(container);
  315. var reactRoot = (0,client/* createRoot */.H)(container);
  316. reactRoot.render(/*#__PURE__*/React.createElement(App, null));
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323. /***/ }),
  324.  
  325. /***/ 41:
  326. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  327.  
  328. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  329. /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
  330. /* harmony export */ });
  331. /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
  332. /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
  333. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
  334. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
  335. // Imports
  336.  
  337.  
  338. var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
  339. // Module
  340. ___CSS_LOADER_EXPORT___.push([module.id, `.ant-notification {
  341. z-index: 99999;
  342. }
  343. `, ""]);
  344. // Exports
  345. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  346.  
  347.  
  348. /***/ }),
  349.  
  350. /***/ 543:
  351. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  352.  
  353. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  354. /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
  355. /* harmony export */ });
  356. /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
  357. /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
  358. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
  359. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
  360. // Imports
  361.  
  362.  
  363. var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
  364. // Module
  365. ___CSS_LOADER_EXPORT___.push([module.id, `.app {
  366. color: red;
  367. }
  368. `, ""]);
  369. // Exports
  370. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  371.  
  372.  
  373. /***/ }),
  374.  
  375. /***/ 314:
  376. /***/ ((module) => {
  377.  
  378.  
  379.  
  380. /*
  381. MIT License http://www.opensource.org/licenses/mit-license.php
  382. Author Tobias Koppers @sokra
  383. */
  384. module.exports = function (cssWithMappingToString) {
  385. var list = [];
  386.  
  387. // return the list of modules as css string
  388. list.toString = function toString() {
  389. return this.map(function (item) {
  390. var content = "";
  391. var needLayer = typeof item[5] !== "undefined";
  392. if (item[4]) {
  393. content += "@supports (".concat(item[4], ") {");
  394. }
  395. if (item[2]) {
  396. content += "@media ".concat(item[2], " {");
  397. }
  398. if (needLayer) {
  399. content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
  400. }
  401. content += cssWithMappingToString(item);
  402. if (needLayer) {
  403. content += "}";
  404. }
  405. if (item[2]) {
  406. content += "}";
  407. }
  408. if (item[4]) {
  409. content += "}";
  410. }
  411. return content;
  412. }).join("");
  413. };
  414.  
  415. // import a list of modules into the list
  416. list.i = function i(modules, media, dedupe, supports, layer) {
  417. if (typeof modules === "string") {
  418. modules = [[null, modules, undefined]];
  419. }
  420. var alreadyImportedModules = {};
  421. if (dedupe) {
  422. for (var k = 0; k < this.length; k++) {
  423. var id = this[k][0];
  424. if (id != null) {
  425. alreadyImportedModules[id] = true;
  426. }
  427. }
  428. }
  429. for (var _k = 0; _k < modules.length; _k++) {
  430. var item = [].concat(modules[_k]);
  431. if (dedupe && alreadyImportedModules[item[0]]) {
  432. continue;
  433. }
  434. if (typeof layer !== "undefined") {
  435. if (typeof item[5] === "undefined") {
  436. item[5] = layer;
  437. } else {
  438. item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
  439. item[5] = layer;
  440. }
  441. }
  442. if (media) {
  443. if (!item[2]) {
  444. item[2] = media;
  445. } else {
  446. item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
  447. item[2] = media;
  448. }
  449. }
  450. if (supports) {
  451. if (!item[4]) {
  452. item[4] = "".concat(supports);
  453. } else {
  454. item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
  455. item[4] = supports;
  456. }
  457. }
  458. list.push(item);
  459. }
  460. };
  461. return list;
  462. };
  463.  
  464. /***/ }),
  465.  
  466. /***/ 601:
  467. /***/ ((module) => {
  468.  
  469.  
  470.  
  471. module.exports = function (i) {
  472. return i[1];
  473. };
  474.  
  475. /***/ }),
  476.  
  477. /***/ 338:
  478. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  479.  
  480. var __webpack_unused_export__;
  481.  
  482.  
  483. var m = __webpack_require__(206);
  484. if (true) {
  485. exports.H = m.createRoot;
  486. __webpack_unused_export__ = m.hydrateRoot;
  487. } else { var i; }
  488.  
  489.  
  490. /***/ }),
  491.  
  492. /***/ 987:
  493. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  494.  
  495. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  496. /* harmony export */ iS: () => (/* binding */ p),
  497. /* harmony export */ ue: () => (/* binding */ f)
  498. /* harmony export */ });
  499. /* unused harmony exports Reaxes, Reaxlass, reaxel */
  500. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(594);
  501. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  502. /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(497);
  503. /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(mobx__WEBPACK_IMPORTED_MODULE_1__);
  504. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(206);
  505. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  506. /* harmony import */ var reaxes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(396);
  507. var o={810:r=>{r.exports=react__WEBPACK_IMPORTED_MODULE_0__}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return o[e](t,t.exports,i),t.exports}i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var c={};(()=>{i.d(c,{u1:()=>Fe.Reaxes,TQ:()=>ze,QB:()=>Fe.orzMobx,MR:()=>Fe.reaxel,Bb:()=>Ce});const e=(e=>{var r={};return i.d(r,e),r})({$mobx:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.$mobx,Reaction:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.Reaction,_allowStateChanges:()=>mobx__WEBPACK_IMPORTED_MODULE_1__._allowStateChanges,_allowStateReadsEnd:()=>mobx__WEBPACK_IMPORTED_MODULE_1__._allowStateReadsEnd,_allowStateReadsStart:()=>mobx__WEBPACK_IMPORTED_MODULE_1__._allowStateReadsStart,configure:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.configure,createAtom:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.createAtom,getDependencyTree:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.getDependencyTree,isObservableArray:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.isObservableArray,isObservableMap:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.isObservableMap,isObservableObject:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.isObservableObject,makeObservable:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.makeObservable,observable:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.observable,untracked:()=>mobx__WEBPACK_IMPORTED_MODULE_1__.untracked});var o=i(810);if(!o.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!e.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");const a=(e=>{var r={};return i.d(r,e),r})({unstable_batchedUpdates:()=>react_dom__WEBPACK_IMPORTED_MODULE_2__.unstable_batchedUpdates});function u(e){e()}function l(r){return(0,e.getDependencyTree)(r)}var f="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function s(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+p}}var p=1e4;function y(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return d(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var b=f?function(e){var r=new Map,t=1,n=new e((function(e){var t=r.get(e);t&&(t.reaction.dispose(),r.delete(e))}));return{addReactionToTrack:function(e,o,a){var i=t++;return n.register(a,i,e),e.current=s(o),e.current.finalizationRegistryCleanupToken=i,r.set(i,e.current),e.current},recordReactionAsCommitted:function(e){n.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&r.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(f):function(){var e,r=new Set;function t(){void 0===e&&(e=setTimeout(n,1e4))}function n(){e=void 0;var n=Date.now();r.forEach((function(e){var t=e.current;t&&n>=t.cleanAt&&(t.reaction.dispose(),e.current=null,r.delete(e))})),r.size>0&&t()}return{addReactionToTrack:function(e,n,o){var a;return e.current=s(n),a=e,r.add(a),t(),e.current},recordReactionAsCommitted:function(e){r.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),n())},resetCleanupScheduleForTests:function(){if(r.size>0){var t,n=y(r);try{for(n.s();!(t=n.n()).done;){var o=t.value,a=o.current;a&&(a.reaction.dispose(),o.current=null)}}catch(e){n.e(e)}finally{n.f()}r.clear()}e&&(clearTimeout(e),e=void 0)}}}(),m=b.addReactionToTrack,v=b.recordReactionAsCommitted,h=(b.resetCleanupScheduleForTests,b.forceCleanupTimerToRunNowForTests,!1);function w(){return h}var g=i(810);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return R(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return R(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function j(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,a=void 0,a=function(e,r){if("object"!==S(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(o,"string"),"symbol"===S(a)?a:String(a)),n)}var o,a}function x(e,r,t){return r&&j(e.prototype,r),t&&j(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function T(e){return"observer".concat(e)}var P=x((function e(){!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e)}));function k(){return new P}function E(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"observed";if(w())return r();var n=O(g.useState(k),1)[0],o=O(g.useState(),2)[1],a=function(){return o([])},i=g.useRef(null);if(!i.current)var c=new e.Reaction(T(t),(function(){u.mounted?a():u.changedBeforeMount=!0})),u=m(i,c,n);var f,s,p=i.current.reaction;if(g.useDebugValue(p,l),g.useEffect((function(){return v(i),i.current?(i.current.mounted=!0,i.current.changedBeforeMount&&(i.current.changedBeforeMount=!1,a())):(i.current={reaction:new e.Reaction(T(t),(function(){a()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},a()),function(){i.current.reaction.dispose(),i.current=null}}),[]),p.track((function(){try{f=r()}catch(e){s=e}})),s)throw s;return f}var A="function"==typeof Symbol&&Symbol.for,C=A?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&(0,o.forwardRef)((function(e){return null})).$$typeof,_=A?Symbol.for("react.memo"):"function"==typeof o.memo&&(0,o.memo)((function(e){return null})).$$typeof;function M(e,r){var t;if(_&&e.$$typeof===_)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(w())return e;var n=null!==(t=null==r?void 0:r.forwardRef)&&void 0!==t&&t,a=e,i=e.displayName||e.name;if(C&&e.$$typeof===C&&(n=!0,"function"!=typeof(a=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c,u,l=function(e,r){return E((function(){return a(e,r)}),i)};return""!==i&&(l.displayName=i),e.contextTypes&&(l.contextTypes=e.contextTypes),n&&(l=(0,o.forwardRef)(l)),c=e,u=l=(0,o.memo)(l),Object.keys(c).forEach((function(e){$[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(c,e))})),l}var $={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};var D=i(810);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function N(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return B(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return B(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function I(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,a=void 0,a=function(e,r){if("object"!==U(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(o,"string"),"symbol"===U(a)?a:String(a)),n)}var o,a}function z(e,r,t){return r&&I(e.prototype,r),t&&I(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(e){return"observer".concat(e)}var q=z((function e(){!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e)}));function W(){return new q}function H(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"observed",n=arguments.length>2?arguments[2]:void 0;if(w())return r();var o=N(D.useState(W),1)[0],a=N(D.useState(),2)[1],i=function(){return n.forceUpdate()},c=D.useRef(null);if(!c.current)var u=new e.Reaction(F(t),(function(){f.mounted?(i(),a([])):f.changedBeforeMount=!0})),f=m(c,u,o);var s,p,y=c.current.reaction;if(D.useDebugValue(y,l),D.useEffect((function(){return v(c),c.current?(c.current.mounted=!0,c.current.changedBeforeMount&&(c.current.changedBeforeMount=!1,i())):(c.current={reaction:new e.Reaction(F(t),(function(){i()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},i()),function(){c.current.reaction.dispose(),c.current=null}}),[]),y.track((function(){try{s=r()}catch(e){p=e}})),p)throw p;return s}var Q="function"==typeof Symbol&&Symbol.for,X=Q?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&(0,o.forwardRef)((function(e){return null})).$$typeof,Y=Q?Symbol.for("react.memo"):"function"==typeof o.memo&&(0,o.memo)((function(e){return null})).$$typeof;function L(e,r){var t;if(Y&&e.$$typeof===Y)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(w())return e;var n=null!==(t=null==r?void 0:r.forwardRef)&&void 0!==t&&t,a=e,i=e.displayName||e.name;if(X&&e.$$typeof===X&&(n=!0,"function"!=typeof(a=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c,u,l=function(e,r){return H((function(){return a(e,r)}),i,e.instance)};return""!==i&&(l.displayName=i),e.contextTypes&&(l.contextTypes=e.contextTypes),n&&(l=(0,o.forwardRef)(l)),c=e,u=l,Object.keys(c).forEach((function(e){G[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(c,e))})),l}var V,G={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function J(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==K(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===K(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}(V=a.unstable_batchedUpdates)||(V=u),(0,e.configure)({reactionScheduler:V});var Z=0;var ee={};function re(e){return ee[e]||(ee[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var r="__$mobx-react ".concat(e," (").concat(Z,")");return Z++,r}(e)),ee[e]}function te(e,r){if(ne(e,r))return!0;if("object"!==K(e)||null===e||"object"!==K(r)||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!Object.hasOwnProperty.call(r,t[o])||!ne(e[t[o]],r[t[o]]))return!1;return!0}function ne(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}function oe(e,r,t){Object.hasOwnProperty.call(e,r)?e[r]=t:Object.defineProperty(e,r,{enumerable:!1,configurable:!0,writable:!0,value:t})}var ae=re("patchMixins"),ie=re("patchedDefinition");function ce(e,r){for(var t=this,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];r.locks++;try{var i;return null!=e&&(i=e.apply(this,o)),i}finally{r.locks--,0===r.locks&&r.methods.forEach((function(e){e.apply(t,o)}))}}function ue(e,r){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];ce.call.apply(ce,[this,e,r].concat(n))}}function le(e,r,t){var n=function(e,r){var t=e[ae]=e[ae]||{},n=t[r]=t[r]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!o||!o[ie]){var a=e[r],i=fe(e,r,o?o.enumerable:void 0,n,a);Object.defineProperty(e,r,i)}}function fe(e,r,t,n,o){var a,i=ue(o,n);return J(a={},ie,!0),J(a,"get",(function(){return i})),J(a,"set",(function(o){if(this===e)i=ue(o,n);else{var a=fe(this,r,t,n,o);Object.defineProperty(this,r,a)}})),J(a,"configurable",!0),J(a,"enumerable",t),a}var se=e.$mobx||"$mobx",pe=re("isMobXReactObserver"),ye=re("isUnmounted"),de=re("skipRender"),be=re("isForcingUpdate");function me(e){var r=e.prototype;if(e[pe]){var t=ve(r);console.warn("The provided component class (".concat(t,")\n has already been declared as an observer component."))}else e[pe]=!0;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==o.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==we)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=we;ge(r,"props"),ge(r,"state"),e.contextType&&ge(r,"context");var n=r.render;if("function"!=typeof n){var a=ve(r);throw new Error("[mobx-react] class component (".concat(a,") is missing `render` method.")+"\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return r.render=function(){return he.call(this,n)},le(r,"componentWillUnmount",(function(){var e;if(!0!==w()&&(null===(e=this.render[se])||void 0===e||e.dispose(),this[ye]=!0,!this.render[se])){var r=ve(this);console.warn("The reactive render of an observer class component (".concat(r,")\n was overriden after MobX attached. This may result in a memory leak if the\n overriden reactive render was not properly disposed."))}})),e}function ve(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function he(r){var t=this;if(!0===w())return r.call(this);oe(this,de,!1),oe(this,be,!1);var n=ve(this),a=r.bind(this),i=!1,c=new e.Reaction("".concat(n,".render()"),(function(){if(!i&&(i=!0,!0!==t[ye])){var e=!0;try{oe(t,be,!0),t[de]||o.Component.prototype.forceUpdate.call(t),e=!1}finally{oe(t,be,!1),e&&c.dispose()}}}));function u(){i=!1;var r=void 0,t=void 0;if(c.track((function(){try{t=(0,e._allowStateChanges)(!1,a)}catch(e){r=e}})),r)throw r;return t}return c.reactComponent=this,u[se]=c,this.render=u,u.call(this)}function we(e,r){return w()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!te(this.props,e)}function ge(r,t){var n=re("reactProp_".concat(t,"_valueHolder")),o=re("reactProp_".concat(t,"_atomHolder"));function a(){return this[o]||oe(this,o,(0,e.createAtom)("reactive "+t)),this[o]}Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var r=!1;return e._allowStateReadsStart&&e._allowStateReadsEnd&&(r=(0,e._allowStateReadsStart)(!0)),a.call(this).reportObserved(),e._allowStateReadsStart&&e._allowStateReadsEnd&&(0,e._allowStateReadsEnd)(r),this[n]},set:function(e){this[be]||te(this[n],e)?oe(this,n,e):(oe(this,n,e),oe(this,de,!0),a.call(this).reportChanged(),oe(this,de,!1))}})}var Se=i(810);Se.createContext({});re("disposeOnUnmountProto"),re("disposeOnUnmountInst");function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function Re(r){function t(t,n,o,a,i,c){for(var u=arguments.length,l=new Array(u>6?u-6:0),f=6;f<u;f++)l[f-6]=arguments[f];return(0,e.untracked)((function(){if(a=a||"<<anonymous>>",c=c||o,null==n[o]){if(t){var e=null===n[o]?"null":"undefined";return new Error("The "+i+" `"+c+"` is marked as required in `"+a+"`, but its value is `"+e+"`.")}return null}return r.apply(void 0,[n,o,a,i,c].concat(l))}))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function je(e){var r=Oe(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol}(r,e)?"symbol":r}function xe(r,t){return Re((function(n,o,a,i,c){return(0,e.untracked)((function(){if(r&&je(n[o])===t.toLowerCase())return null;var i;switch(t){case"Array":i=e.isObservableArray;break;case"Object":i=e.isObservableObject;break;case"Map":i=e.isObservableMap;break;default:throw new Error("Unexpected mobxType: ".concat(t))}var u=n[o];if(!i(u)){var l=function(e){var r=je(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}(u),f=r?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+c+"` of type `"+l+"` supplied to `"+a+"`, expected `mobx.Observable"+t+"`"+f+".")}return null}))}))}function Te(r,t){return Re((function(n,o,a,i,c){for(var u=arguments.length,l=new Array(u>5?u-5:0),f=5;f<u;f++)l[f-5]=arguments[f];return(0,e.untracked)((function(){if("function"!=typeof t)return new Error("Property `"+c+"` of component `"+a+"` has invalid PropType notation.");var e=xe(r,"Array")(n,o,a,i,c);if(e instanceof Error)return e;for(var u=n[o],f=0;f<u.length;f++)if((e=t.apply(void 0,[u,f,a,i,c+"["+f+"]"].concat(l)))instanceof Error)return e;return null}))}))}xe(!1,"Array"),Te.bind(null,!1),xe(!1,"Map"),xe(!1,"Object"),xe(!0,"Array"),Te.bind(null,!0),xe(!0,"Object");if(!o.Component)throw new Error("mobx-react requires React to be available");if(!e.observable)throw new Error("mobx-react requires mobx to be available");var Pe=i(810);function ke(e){var r;if(null===(r=e.prototype)||void 0===r||!r.render)return M(e);if(Object.getOwnPropertySymbols(e).find((function(e){return"isMobXReactObserver"===e.description})))return e;var t=e.prototype.render;function n(e,r){var n=e.instance;e.random;return t.call(n)}var a=e.displayName||e.name||"Component";n.displayName=a+"Hooks";var i,c=L(n);return e.prototype.render=function(){return Pe.createElement(c,{instance:this})},!0===(i=e).isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(o.Component,i)||Object.prototype.isPrototypeOf.call(o.PureComponent,i)?me(i):M(i)}var Ee=function(e){var r;if(null===(r=e.prototype)||void 0===r||!r.render)return e;var t=e.prototype.componentDidMount,n=e.prototype.componentDidUpdate,o=e.prototype.componentWillUnmount,a=e.prototype.componentDidRender;return e.hasOwnProperty("componentDidMount")&&delete e.prototype.componentDidMount,e.hasOwnProperty("componentDidUpdate")&&delete e.prototype.componentDidUpdate,e.prototype.componentDidMount=function(){for(var r,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];null==t||t.call.apply(t,[this].concat(o)),null===(r=e.prototype.componentDidRender)||void 0===r||r.call.apply(r,[this,"mount"].concat(o)),this.mountedStack.forEach((function(e){return(0,e.callback)()}))},e.prototype.componentDidUpdate=function(){for(var r,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];null==n||n.call.apply(n,[this].concat(o)),null===(r=e.prototype.componentDidRender)||void 0===r||r.call.apply(r,[this,"update"].concat(o)),this.updatedStack.forEach((function(e){return(0,e.callback)()}))},e.prototype.componentDidRender=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];null==a||a.call.apply(a,[this].concat(r)),this.renderedStack.forEach((function(e){return(0,e.callback)()}))},e.prototype.componentWillUnmount=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];o.call.apply(o,[this].concat(r)),this.unmountStack.forEach((function(e){return(0,e.callback)()}))},e},Ae=Symbol(""),Ce=function(e){if(e.hasOwnProperty(Ae))return e;var r,t=((r=[Ee,ke]).length,1===r.length?r[0]:r.reduce((function(e,r){return function(){return e(r.apply(void 0,arguments))}})))(e);return t[Ae]=!0,t};function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function Me(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ie(n.key),n)}}function $e(e,r){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},$e(e,r)}function De(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=Ne(e);if(r){var o=Ne(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,r){if(r&&("object"===_e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return Ue(e)}(this,t)}}function Ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e){return Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ne(e)}function Be(e,r,t){return(r=Ie(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ie(e){var r=function(e,r){if("object"!==_e(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===_e(r)?r:String(r)}var ze=function(e){!function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&$e(e,r)}(a,e);var r,t,n,o=De(a);function a(){var e;!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,a);for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Be(Ue(e=o.call.apply(o,[this].concat(t))),"mountedStack",[]),Be(Ue(e),"unmountStack",[]),Be(Ue(e),"updatedStack",[]),Be(Ue(e),"renderedStack",[]),e}return r=a,t&&Me(r.prototype,t),n&&Me(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(o.Component);const Fe=(e=>{var r={};return i.d(r,e),r})({Reaxes:()=>reaxes__WEBPACK_IMPORTED_MODULE_3__/* .Reaxes */ .t_,orzMobx:()=>reaxes__WEBPACK_IMPORTED_MODULE_3__/* .orzMobx */ .ue,reaxel:()=>reaxes__WEBPACK_IMPORTED_MODULE_3__/* .reaxel */ .WW})})();var u=c.u1,l=c.TQ,f=c.QB,s=c.MR,p=c.Bb;
  508. //# sourceMappingURL=index.js.map
  509.  
  510. /***/ }),
  511.  
  512. /***/ 396:
  513. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  514.  
  515.  
  516. // EXPORTS
  517. __webpack_require__.d(__webpack_exports__, {
  518. t_: () => (/* binding */ reaxes_a),
  519. ue: () => (/* binding */ reaxes_c),
  520. WW: () => (/* binding */ reaxes_l)
  521. });
  522.  
  523. // EXTERNAL MODULE: external "_"
  524. var external_ = __webpack_require__(224);
  525. // EXTERNAL MODULE: external "mobx"
  526. var external_mobx_ = __webpack_require__(497);
  527. ;// ./node_modules/reaxes-utils/index.js
  528. var r={243:r=>{r.exports=external_}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}};return r[t](i,i.exports,n),i.exports}n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);var o={};(()=>{function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(r,e,n,o){var i=n?n.call(o,r,e):void 0;if(void 0!==i)return!!i;if(r===e)return!0;if("object"!==t(r)||!r||"object"!==t(e)||!e)return!1;var u=Object.keys(r),c=Object.keys(e);if(u.length!==c.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),l=0;l<u.length;l++){var f=u[l];if(!a(f))return!1;var s=r[f],y=e[f];if(!1===(i=n?n.call(o,s,y,f):void 0)||void 0===i&&s!==y)return!1}return!0}n.d(o,{Vj:()=>bt,kk:()=>gt,B7:()=>W,hu:()=>K,nJ:()=>rt,aj:()=>nt,CO:()=>et,DI:()=>tt,Ni:()=>Y,l$:()=>jt,Zk:()=>e,A3:()=>A,$1:()=>vt,lH:()=>O,Ds:()=>c,Nk:()=>Z,t1:()=>B,zW:()=>ft,qw:()=>ht,tI:()=>u,dl:()=>yt,s6:()=>C,Lh:()=>H,bn:()=>_,rN:()=>P,wU:()=>r,Pz:()=>m,P2:()=>wt});var e=function(t){var r;switch(!0){case"function"==typeof queueMicrotask:r=queueMicrotask;break;case!("function"!=typeof Promise||!Promise.resolve):r=function(t){return Promise.resolve().then(t)};break;default:r=setTimeout}r(t)},i=n(243),u=function(t){return!!(i.isObject(t)&&t instanceof Promise)},c=function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=0;return function(){for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];if(n)return Date.now()-o>e?(t(...u),void(o=Date.now())):(o=Date.now(),clearTimeout(r),void(r=setTimeout((function(){return t(...u)}),e)));clearTimeout(r),r=setTimeout((function(){return t(...u)}),e)}};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}m.stable=function(t,r,e,n){void 0===n&&(n=p());var o,i=d(t,"",0,[],void 0,0,n)||t;try{o=0===y.length?JSON.stringify(i,r,e):JSON.stringify(i,g(r),e)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var u=s.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return o};var l="[...]",f="[Circular]",s=[],y=[];function p(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function m(t,r,e,n){var o;void 0===n&&(n=p()),v(t,"",0,[],void 0,0,n);try{o=0===y.length?JSON.stringify(t,r,e):JSON.stringify(t,g(r),e)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var i=s.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function b(t,r,e,n){var o=Object.getOwnPropertyDescriptor(n,e);void 0!==o.get?o.configurable?(Object.defineProperty(n,e,{value:t}),s.push([n,e,r,o])):y.push([r,e,t]):(n[e]=t,s.push([n,e,r]))}function v(t,r,e,n,o,i,u){var c;if(i+=1,"object"===a(t)&&null!==t){for(c=0;c<n.length;c++)if(n[c]===t)return void b(f,t,r,o);if(void 0!==u.depthLimit&&i>u.depthLimit)return void b(l,t,r,o);if(void 0!==u.edgesLimit&&e+1>u.edgesLimit)return void b(l,t,r,o);if(n.push(t),Array.isArray(t))for(c=0;c<t.length;c++)v(t[c],c,c,n,t,i,u);else{var s=Object.keys(t);for(c=0;c<s.length;c++){var y=s[c];v(t[y],y,c,n,t,i,u)}}n.pop()}}function h(t,r){return t<r?-1:t>r?1:0}function d(t,r,e,n,o,i,u){var c;if(i+=1,"object"===a(t)&&null!==t){for(c=0;c<n.length;c++)if(n[c]===t)return void b(f,t,r,o);try{if("function"==typeof t.toJSON)return}catch(t){return}if(void 0!==u.depthLimit&&i>u.depthLimit)return void b(l,t,r,o);if(void 0!==u.edgesLimit&&e+1>u.edgesLimit)return void b(l,t,r,o);if(n.push(t),Array.isArray(t))for(c=0;c<t.length;c++)d(t[c],c,c,n,t,i,u);else{var y={},p=Object.keys(t).sort(h);for(c=0;c<p.length;c++){var m=p[c];d(t[m],m,c,n,t,i,u),y[m]=t[m]}if(void 0===o)return y;s.push([o,r,t]),o[r]=y}n.pop()}}function g(t){return t=void 0!==t?t:function(t,r){return r},function(r,e){if(y.length>0)for(var n=0;n<y.length;n++){var o=y[n];if(o[1]===r&&o[0]===e){e=o[2],y.splice(n,1);break}}return t.call(this,r,e)}}var w=function(t){return t.toString().split("").reduce((function(t,r){return/[A-Z]/.test(r)?t.concat("-".concat(r.toLowerCase())):t.concat(r)}),"")},S=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return e.reduce((function(t,r,e){return t[0]+="string"==typeof r?r:(t.push(r),"%o"),t}),["%c",t])},O=new Proxy((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var r=Object.keys(t).reduce((function(r,e){return"".concat(r).concat(String(w(e)),":").concat(t[e],";")}),"");r.includes("font-weight")||(r+="font-weight:normal;");for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];console.groupCollapsed(...S(r,...n)),console.trace("%c","font-weight:normal;"),console.groupEnd()}}),{get:function(t,r,e){if(["prototype","hasOwnProperty","toString","prototype","length","name","arguments","constructor","isPrototypeOf","apply","call","bind"].includes(r))return t[r];var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"trace";return new Proxy((function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return"trace"===t?(console.groupCollapsed(...S("color:".concat(r,";font-weight:normal;"),...n)),console.trace("%c","font-weight:normal;"),void console.groupEnd()):console[t](...S("color:".concat(r),...n))}),{get:function(e,n,o){return function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];if("trace"===t)return console.groupCollapsed(...S("color:".concat(n,";font-weight:normal;"),...o)),console.trace("%c","font-weight:normal;"),void console.groupEnd();if("apply"===n){var u=o[1];return"trace"===t?(console.groupCollapsed(...S("color:".concat(r),...u)),console.trace("%c","font-weight:normal;"),void console.groupEnd()):console[t](...S("color:".concat(r),...u))}return console[t](...S("color:".concat(n.toString()),...o))}}})};switch(r){case"trace":case"warn":case"log":case"info":case"error":case"debug":return n(r)}return n("trace")}});function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}var A=function(t){switch(t){case null:case"":case void 0:return!0}return"object"===j(t)&&(Array.isArray(t)?0===t.length:0===Object.keys(t).length)},P=function(t){var r=!0;return function(){r&&(t(...arguments),r=!1)}};function k(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var T,E,x,N,I,C=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return[t,...e.map((function(r){if("function"==typeof r)return r(t)}))]},M=C({a:1,b:2},(function(t){return[t.a,"sdad"]})),L=function(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return k(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return k(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(M,2);L[0],L[1];function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function J(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==D(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===D(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function U(t,r,e){!function(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r),r.set(t,e)}function z(t,r){return function(t,r){if(r.get)return r.get.call(t);return r.value}(t,R(t,r,"get"))}function $(t,r,e){return function(t,r,e){if(r.set)r.set.call(t,e);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=e}}(t,R(t,r,"set"),e),e}function R(t,r,e){if(!r.has(t))throw new TypeError("attempted to "+e+" private field on non-instance");return r.get(t)}var W=(T=new WeakMap,E=new WeakMap,x=new WeakMap,N=new WeakMap,I=new WeakMap,class{constructor(){var t=this;U(this,T,{writable:!0,value:[]}),U(this,E,{writable:!0,value:0}),U(this,x,{writable:!0,value:void 0}),U(this,N,{writable:!0,value:void 0}),U(this,I,{writable:!0,value:!1}),J(this,"start",(function(r){return r<=0?console.error("timer.start值是负数! :>",r):!0!==z(t,I)?($(t,E,r),z(t,x).call(t),t):void 0}));$(this,x,(function r(){$(t,I,!0),z(t,E)>=1e3?$(t,N,setTimeout((function(){$(t,E,z(t,E)-1e3),r(),z(t,T).forEach((function(r){try{r(z(t,E))}catch(t){console.error(t,"Timer 订阅运行时错误: 当前执行函数名>".concat(r.name))}}))}),1e3)):($(t,N,setTimeout((function(){$(t,E,0),z(t,T).forEach((function(r){try{r(z(t,E))}catch(t){console.error(t,"Timer 订阅运行时错误: 当前执行函数名>".concat(r.name))}}))}),z(t,E))),$(t,I,!1)),z(t,T).forEach((function(r){try{r(z(t,E))}catch(t){console.error(t,"Timer 订阅运行时错误: 当前执行函数名>".concat(r.name))}}))}))}subscribe(t){return!z(this,T).includes(t)&&z(this,T).push(t),this}unsubscribe(t){return z(this,T).splice(z(this,T).indexOf(t),1),this}destroy(){}stop(){return clearTimeout(z(this,N)),$(this,E,0),$(this,I,!1),this}});function F(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return q(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return q(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var _=function(t,r,e){var n=F(r,2),o=n[0],i=n[1],u=t.slice(0,o),c=t.slice(i);return u.concat(e,c)};function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function Q(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return V(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return V(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href;try{if(t.includes("?")){var r=Q(t.split("?"),2);t=r[1]}if(t.includes("/")){var e=Q(t.split("/"),1);t=e[0]}if(!t.includes("="))return{};if(t.includes("&"))return t.split("&").reduce((function(t,r){var e=Q(r.split("="),2),n=e[0],o=e[1];return t[n]=o,t}),{});var n={},o=Q(t.split("="),2),i=o[0],u=o[1];return n[i]=u,n}catch(r){throw console.error("decodeQueryString -> 转换失败 , 原始字符串为 : ".concat(t)),console.error(r),""}},B=function(t){var r="";for(var e in t){var n=t[e];if("object"===G(n)&&null!==n)throw"暂不支持嵌套对象";if("symbol"===G(e))throw"不支持key为Symbol";r="".concat(r).concat(r&&"&").concat(e,"=").concat(n)}return r},H=function(t){var r,e,n=new Promise((function(n,o){r=n,e=o,"function"==typeof t&&t(n,o)}));return Object.assign(n,{resolve:r,reject:e}),n},X=function(t){return"string"==typeof t?'"'.concat(t,'"'):t},K=function(t,r){for(var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<r.length;n++){var o=r[n];if(o!==t)return e&&O.coral("断言组第 ",n," 个表达式不符合预期为 ",X(t)," 的结果, expressionList[",n,"]: ",X(o)),!1}return!0},Y=function(t){return K(!0,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},tt=function(t){return K(!1,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},rt=function(t,r){for(var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<r.length;n++){var o=r[n];if(o===t)return e&&O["#81cc00"]("断言组第 ",n," 个表达式符合预期为 ",X(t)," 的结果, expressionList[",n,"]: ",X(o)),!0}return e&&O.coral("断言组每个值都不符合预期为 ",X(t)," 的结果, expressionList: ",X(r)),!1},et=function(t){return rt(!0,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},nt=function(t){return rt(!1,t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])};function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function ut(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?it(Object(e),!0).forEach((function(r){lt(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):it(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function ct(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return at(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return at(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw i}}}}function at(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function lt(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==ot(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===ot(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var ft=new class{constructor(){lt(this,"addKey",(function(t){if(Array.isArray(t)){var r,e=!0,n=ct(t);try{for(n.s();!(r=n.n()).done;){if(!r.value.hasOwnProperty("key")){e=!1;break}}}catch(t){n.e(t)}finally{n.f()}return!0===e?t:t.map((function(t){return ut(ut({},t),{},{key:Math.random()})}))}throw"必须传入数组"}))}},st=n(243),yt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return JSON.parse(m(st.cloneDeep(t)))};function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}var mt={get:function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;if(t&&document.cookie&&""!==document.cookie)for(var n=document.cookie.split("; "),o=0;o<n.length;o++){var i=n[o].split("="),u=i.slice(1).join("="),c=e(i[0]);if(0===u.indexOf('"')&&(u=u.slice(1,-1)),t===c){r=e(u);break}}return r},set:function(t,r,e){var n=(e=Object.assign({},{encode:encodeURIComponent,expires:365,path:"/",secure:"https:"===window.location.protocol},e)).expires;if("number"==typeof n&&0!==n&&isFinite(n)&&(n=new Date((new Date).getTime()+864e5*n)),"object"===pt(r))try{r=JSON.stringify(r)}catch(t){}return t=e.encode(t),r=e.encode(r),document.cookie=[t+"="+r,n?"; expires="+n.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("")},remove:function(t){return this.set(t,"",{expires:-1}),!this.get(t)},hasItem:function(t){return new RegExp("(?:|;s*)"+encodeURIComponent(t).replace(/[-.+]/g,"$&")+"s=").test(document.cookie)}};const bt=mt;const vt=function(t,r){if(0!==arguments.length){var e=Object.prototype.toString.call(t).split(" ")[1],n=e.slice(0,e.length-1).toLowerCase();if(1===arguments.length)return n;if(arguments.length>=2)return n===r.toLowerCase()}else console.error("Js类型检测方法参数不建议为空。")};const ht=function t(r,e){if(r&&vt(r,"object")){vt(e,"array")||(e=Array.prototype.slice.call(arguments,1));var n=e.shift();return 0===e.length?r[n]:t.call(this,r[n],e)}console.error("调用的对象不能为空,并必须为【Object】数据类型。")};var dt=n(243);const gt={color:function(){return"#"+Math.floor(16777215*Math.random()).toString(16)},number:function(t,r,e){if(void 0===t)return Math.random();if(void 0===r&&(r=t,t=0),r<t){var n=r;r=t,t=n}if(e){var o=Math.random()*(r-t)+t;if(!0===e)return o;if("number"==typeof e){var i=o.toString(),u=i.indexOf(".");return"0"===(i=i.substr(0,u+1+e))[i.length-1]&&(i=i.substr(0,i.length-1)+dt.random(1,9)),parseFloat(i)}}return Math.floor(Math.random()*(r-t+1)+t)}};function wt(t,r,e){var n,o,i,u=0;e||(e={});var c=function(){u=!1===e.leading?0:(new Date).getTime(),n=null,t.apply(o,i),n||(o=i=null)};return function(){var a=(new Date).getTime();u||!1!==e.leading||(u=a);var l=r-(a-u);o=this,i=arguments,l<=0||l>r?(n&&(clearTimeout(n),n=null),u=a,t.apply(o,i),n||(o=i=null)):n||!1===e.trailing||(n=setTimeout(c,l))}}function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Ot(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==St(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===St(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var jt=(new class{constructor(){Ot(this,"assignPick",(function(t,r){return Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]})),t}))}}).assignPick})();var i=o.Vj,u=o.kk,c=o.B7,a=o.hu,l=o.nJ,f=o.aj,s=o.CO,y=o.DI,p=o.Ni,m=o.l$,b=o.Zk,v=o.A3,h=o.$1,d=o.lH,g=o.Ds,w=o.Nk,S=o.t1,O=o.zW,j=o.qw,A=o.tI,P=o.dl,k=o.s6,T=o.Lh,E=o.bn,x=o.rN,N=o.wU,I=o.Pz,C=o.P2;
  529. //# sourceMappingURL=index.js.map
  530. ;// ./node_modules/reaxes/index.js
  531. var reaxes_o={243:n=>{n.exports=external_}},reaxes_e={};function reaxes_i(t){var n=reaxes_e[t];if(void 0!==n)return n.exports;var r=reaxes_e[t]={exports:{}};return reaxes_o[t](r,r.exports,reaxes_i),r.exports}reaxes_i.d=(t,n)=>{for(var r in n)reaxes_i.o(n,r)&&!reaxes_i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},reaxes_i.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var reaxes_u={};(()=>{reaxes_i.d(reaxes_u,{u1:()=>m,QB:()=>a,MR:()=>l});const t=(t=>{var n={};return reaxes_i.d(n,t),n})({action:()=>external_mobx_.action,observable:()=>external_mobx_.observable,reaction:()=>external_mobx_.reaction});var o=reaxes_i(243);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var a=function(n){var r=(0,t.observable)(n),e=(0,t.action)((function(t,n){return Object.assign(t,n)}));return{store:r,mutate:function(n){(0,t.action)((function(){return n(r)}))()},setState:function(t){return e(r,t)},mutatePartialState:function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,u=function(r){var u=e[r];o.isPlainObject(u)?o.isPlainObject(i[r])&&n(u,i[r]):c(u)&&(0,t.action)((function(){i[r]=u}))()};for(var a in e)u(a)}}},c=function(t){return!!["boolean","string","undefined","number","symbol","bigint"].includes(e(t))||null===t},l=function(t){return t()};const f=(t=>{var n={};return reaxes_i.d(n,t),n})({shallowEqual:()=>N});var s=reaxes_i(243);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,p(o.key),o)}}function y(t,n,r){return(n=p(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function p(t){var n=function(t,n){if("object"!==b(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===b(n)?n:String(n)}var m=new(function(){function n(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),y(this,"_UNSTABLE_EXPIMENTAL_consistentCallback",(function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]},o=r();return[function(r){var e=r(o);return function(){return f.shallowEqual(o,e)?n:(o=e,n=t.apply(void 0,arguments))}},function(){o=r()}]})),y(this,"collectDeps",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!s.isObject(t))throw"the store argument must be a mobx observed object";n.length?n.forEach((function(n){t[n]})):Object.getOwnPropertyNames(t).forEach((function(n){t[n]}))}))}var r,o,e;return r=n,o=[{key:"obsReaction",value:function(n,r){var o=r(),e=(0,t.reaction)(r,(function(t,r){!f.shallowEqual(t,o)&&(n(!1,e),o=t)}));return n(!0,e)}},{key:"contrastedCallback",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]},o=r();return[function(r){var e=r(o);return function(){if(!f.shallowEqual(o,e))return n=t.apply(void 0,arguments),o=e,{next:function(t){return t(n)}}}},function(){o=r()}]}}],o&&v(r.prototype,o),e&&v(r,e),Object.defineProperty(r,"prototype",{writable:!1}),n}())})();var reaxes_a=reaxes_u.u1,reaxes_c=reaxes_u.QB,reaxes_l=reaxes_u.MR;
  532. //# sourceMappingURL=index.js.map
  533.  
  534. /***/ }),
  535.  
  536. /***/ 72:
  537. /***/ ((module) => {
  538.  
  539.  
  540.  
  541. var stylesInDOM = [];
  542. function getIndexByIdentifier(identifier) {
  543. var result = -1;
  544. for (var i = 0; i < stylesInDOM.length; i++) {
  545. if (stylesInDOM[i].identifier === identifier) {
  546. result = i;
  547. break;
  548. }
  549. }
  550. return result;
  551. }
  552. function modulesToDom(list, options) {
  553. var idCountMap = {};
  554. var identifiers = [];
  555. for (var i = 0; i < list.length; i++) {
  556. var item = list[i];
  557. var id = options.base ? item[0] + options.base : item[0];
  558. var count = idCountMap[id] || 0;
  559. var identifier = "".concat(id, " ").concat(count);
  560. idCountMap[id] = count + 1;
  561. var indexByIdentifier = getIndexByIdentifier(identifier);
  562. var obj = {
  563. css: item[1],
  564. media: item[2],
  565. sourceMap: item[3],
  566. supports: item[4],
  567. layer: item[5]
  568. };
  569. if (indexByIdentifier !== -1) {
  570. stylesInDOM[indexByIdentifier].references++;
  571. stylesInDOM[indexByIdentifier].updater(obj);
  572. } else {
  573. var updater = addElementStyle(obj, options);
  574. options.byIndex = i;
  575. stylesInDOM.splice(i, 0, {
  576. identifier: identifier,
  577. updater: updater,
  578. references: 1
  579. });
  580. }
  581. identifiers.push(identifier);
  582. }
  583. return identifiers;
  584. }
  585. function addElementStyle(obj, options) {
  586. var api = options.domAPI(options);
  587. api.update(obj);
  588. var updater = function updater(newObj) {
  589. if (newObj) {
  590. if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
  591. return;
  592. }
  593. api.update(obj = newObj);
  594. } else {
  595. api.remove();
  596. }
  597. };
  598. return updater;
  599. }
  600. module.exports = function (list, options) {
  601. options = options || {};
  602. list = list || [];
  603. var lastIdentifiers = modulesToDom(list, options);
  604. return function update(newList) {
  605. newList = newList || [];
  606. for (var i = 0; i < lastIdentifiers.length; i++) {
  607. var identifier = lastIdentifiers[i];
  608. var index = getIndexByIdentifier(identifier);
  609. stylesInDOM[index].references--;
  610. }
  611. var newLastIdentifiers = modulesToDom(newList, options);
  612. for (var _i = 0; _i < lastIdentifiers.length; _i++) {
  613. var _identifier = lastIdentifiers[_i];
  614. var _index = getIndexByIdentifier(_identifier);
  615. if (stylesInDOM[_index].references === 0) {
  616. stylesInDOM[_index].updater();
  617. stylesInDOM.splice(_index, 1);
  618. }
  619. }
  620. lastIdentifiers = newLastIdentifiers;
  621. };
  622. };
  623.  
  624. /***/ }),
  625.  
  626. /***/ 659:
  627. /***/ ((module) => {
  628.  
  629.  
  630.  
  631. var memo = {};
  632.  
  633. /* istanbul ignore next */
  634. function getTarget(target) {
  635. if (typeof memo[target] === "undefined") {
  636. var styleTarget = document.querySelector(target);
  637.  
  638. // Special case to return head of iframe instead of iframe itself
  639. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  640. try {
  641. // This will throw an exception if access to iframe is blocked
  642. // due to cross-origin restrictions
  643. styleTarget = styleTarget.contentDocument.head;
  644. } catch (e) {
  645. // istanbul ignore next
  646. styleTarget = null;
  647. }
  648. }
  649. memo[target] = styleTarget;
  650. }
  651. return memo[target];
  652. }
  653.  
  654. /* istanbul ignore next */
  655. function insertBySelector(insert, style) {
  656. var target = getTarget(insert);
  657. if (!target) {
  658. throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  659. }
  660. target.appendChild(style);
  661. }
  662. module.exports = insertBySelector;
  663.  
  664. /***/ }),
  665.  
  666. /***/ 540:
  667. /***/ ((module) => {
  668.  
  669.  
  670.  
  671. /* istanbul ignore next */
  672. function insertStyleElement(options) {
  673. var element = document.createElement("style");
  674. options.setAttributes(element, options.attributes);
  675. options.insert(element, options.options);
  676. return element;
  677. }
  678. module.exports = insertStyleElement;
  679.  
  680. /***/ }),
  681.  
  682. /***/ 56:
  683. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  684.  
  685.  
  686.  
  687. /* istanbul ignore next */
  688. function setAttributesWithoutAttributes(styleElement) {
  689. var nonce = true ? __webpack_require__.nc : 0;
  690. if (nonce) {
  691. styleElement.setAttribute("nonce", nonce);
  692. }
  693. }
  694. module.exports = setAttributesWithoutAttributes;
  695.  
  696. /***/ }),
  697.  
  698. /***/ 825:
  699. /***/ ((module) => {
  700.  
  701.  
  702.  
  703. /* istanbul ignore next */
  704. function apply(styleElement, options, obj) {
  705. var css = "";
  706. if (obj.supports) {
  707. css += "@supports (".concat(obj.supports, ") {");
  708. }
  709. if (obj.media) {
  710. css += "@media ".concat(obj.media, " {");
  711. }
  712. var needLayer = typeof obj.layer !== "undefined";
  713. if (needLayer) {
  714. css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
  715. }
  716. css += obj.css;
  717. if (needLayer) {
  718. css += "}";
  719. }
  720. if (obj.media) {
  721. css += "}";
  722. }
  723. if (obj.supports) {
  724. css += "}";
  725. }
  726. var sourceMap = obj.sourceMap;
  727. if (sourceMap && typeof btoa !== "undefined") {
  728. css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  729. }
  730.  
  731. // For old IE
  732. /* istanbul ignore if */
  733. options.styleTagTransform(css, styleElement, options.options);
  734. }
  735. function removeStyleElement(styleElement) {
  736. // istanbul ignore if
  737. if (styleElement.parentNode === null) {
  738. return false;
  739. }
  740. styleElement.parentNode.removeChild(styleElement);
  741. }
  742.  
  743. /* istanbul ignore next */
  744. function domAPI(options) {
  745. if (typeof document === "undefined") {
  746. return {
  747. update: function update() {},
  748. remove: function remove() {}
  749. };
  750. }
  751. var styleElement = options.insertStyleElement(options);
  752. return {
  753. update: function update(obj) {
  754. apply(styleElement, options, obj);
  755. },
  756. remove: function remove() {
  757. removeStyleElement(styleElement);
  758. }
  759. };
  760. }
  761. module.exports = domAPI;
  762.  
  763. /***/ }),
  764.  
  765. /***/ 113:
  766. /***/ ((module) => {
  767.  
  768.  
  769.  
  770. /* istanbul ignore next */
  771. function styleTagTransform(css, styleElement) {
  772. if (styleElement.styleSheet) {
  773. styleElement.styleSheet.cssText = css;
  774. } else {
  775. while (styleElement.firstChild) {
  776. styleElement.removeChild(styleElement.firstChild);
  777. }
  778. styleElement.appendChild(document.createTextNode(css));
  779. }
  780. }
  781. module.exports = styleTagTransform;
  782.  
  783. /***/ }),
  784.  
  785. /***/ 594:
  786. /***/ ((module) => {
  787.  
  788. module.exports = React;
  789.  
  790. /***/ }),
  791.  
  792. /***/ 206:
  793. /***/ ((module) => {
  794.  
  795. module.exports = ReactDOM;
  796.  
  797. /***/ }),
  798.  
  799. /***/ 224:
  800. /***/ ((module) => {
  801.  
  802. module.exports = _;
  803.  
  804. /***/ }),
  805.  
  806. /***/ 497:
  807. /***/ ((module) => {
  808.  
  809. module.exports = mobx;
  810.  
  811. /***/ })
  812.  
  813. /******/ });
  814. /************************************************************************/
  815. /******/ // The module cache
  816. /******/ var __webpack_module_cache__ = {};
  817. /******/
  818. /******/ // The require function
  819. /******/ function __webpack_require__(moduleId) {
  820. /******/ // Check if module is in cache
  821. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  822. /******/ if (cachedModule !== undefined) {
  823. /******/ return cachedModule.exports;
  824. /******/ }
  825. /******/ // Create a new module (and put it into the cache)
  826. /******/ var module = __webpack_module_cache__[moduleId] = {
  827. /******/ id: moduleId,
  828. /******/ // no module.loaded needed
  829. /******/ exports: {}
  830. /******/ };
  831. /******/
  832. /******/ // Execute the module function
  833. /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
  834. /******/
  835. /******/ // Return the exports of the module
  836. /******/ return module.exports;
  837. /******/ }
  838. /******/
  839. /************************************************************************/
  840. /******/ /* webpack/runtime/compat get default export */
  841. /******/ (() => {
  842. /******/ // getDefaultExport function for compatibility with non-harmony modules
  843. /******/ __webpack_require__.n = (module) => {
  844. /******/ var getter = module && module.__esModule ?
  845. /******/ () => (module['default']) :
  846. /******/ () => (module);
  847. /******/ __webpack_require__.d(getter, { a: getter });
  848. /******/ return getter;
  849. /******/ };
  850. /******/ })();
  851. /******/
  852. /******/ /* webpack/runtime/define property getters */
  853. /******/ (() => {
  854. /******/ // define getter functions for harmony exports
  855. /******/ __webpack_require__.d = (exports, definition) => {
  856. /******/ for(var key in definition) {
  857. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  858. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  859. /******/ }
  860. /******/ }
  861. /******/ };
  862. /******/ })();
  863. /******/
  864. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  865. /******/ (() => {
  866. /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
  867. /******/ })();
  868. /******/
  869. /******/ /* webpack/runtime/make namespace object */
  870. /******/ (() => {
  871. /******/ // define __esModule on exports
  872. /******/ __webpack_require__.r = (exports) => {
  873. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  874. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  875. /******/ }
  876. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  877. /******/ };
  878. /******/ })();
  879. /******/
  880. /******/ /* webpack/runtime/nonce */
  881. /******/ (() => {
  882. /******/ __webpack_require__.nc = undefined;
  883. /******/ })();
  884. /******/
  885. /************************************************************************/
  886. var __webpack_exports__ = {};
  887.  
  888. // EXTERNAL MODULE: external "_"
  889. var external_ = __webpack_require__(224);
  890. var external_default = /*#__PURE__*/__webpack_require__.n(external_);
  891. ;// ./generic-services/utils/useMatchDomain/index.ts
  892. function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
  893. function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
  894. function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
  895. function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
  896. /**
  897. * 如果匹配到域名则会执行回调
  898. */
  899.  
  900. var useMatchDomain = /*#__PURE__*/function () {
  901. var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(matcher, callback) {
  902. var _matcher$regExp, _matcher$hosts, _matcher$includes;
  903. var matchResult;
  904. return _regeneratorRuntime().wrap(function _callee$(_context) {
  905. while (1) switch (_context.prev = _context.next) {
  906. case 0:
  907. matchResult = false;
  908. _context.t0 = true;
  909. _context.next = _context.t0 === ((_matcher$regExp = matcher.regExp) === null || _matcher$regExp === void 0 ? void 0 : _matcher$regExp.test(location.href)) ? 4 : _context.t0 === ((_matcher$hosts = matcher.hosts) === null || _matcher$hosts === void 0 ? void 0 : _matcher$hosts.some(function (host) {
  910. return location.host === host;
  911. })) ? 4 : _context.t0 === ((_matcher$includes = matcher.includes) === null || _matcher$includes === void 0 ? void 0 : _matcher$includes.some(function (kw) {
  912. if (external_default().isString(kw)) {
  913. return location.href.includes(kw);
  914. } else {
  915. return kw.every(function (txt) {
  916. return location.href.includes(txt);
  917. });
  918. }
  919. })) ? 4 : 6;
  920. break;
  921. case 4:
  922. matchResult = true;
  923. return _context.abrupt("break", 6);
  924. case 6:
  925. if (!matchResult) {
  926. _context.next = 9;
  927. break;
  928. }
  929. _context.next = 9;
  930. return callback();
  931. case 9:
  932. case "end":
  933. return _context.stop();
  934. }
  935. }, _callee);
  936. }));
  937. return function useMatchDomain(_x, _x2) {
  938. return _ref.apply(this, arguments);
  939. };
  940. }();
  941.  
  942. /**
  943. * regExp,hosts,includes取并集,protocol为约束性规则,与上述规则结果取交集
  944. * 需要注意的是includes规则:第一层的所有规则取并集,如果第一层的某个成员是数组,则数组内的规则取交集,href必须包含该内层数组中的所有字符
  945. * 比如includes:['switch520',['switch','618']]这个规则代表href要么包含'switch520',要么既包含'switch'也同时包含'618'
  946. */
  947.  
  948.  
  949. // EXTERNAL MODULE: external "React"
  950. var external_React_ = __webpack_require__(594);
  951. var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
  952. // EXTERNAL MODULE: ./node_modules/reaxes-react/index.js
  953. var reaxes_react = __webpack_require__(987);
  954. ;// ./projects/switch520-auto-secret/Components/SearchInSteamButton/index.tsx
  955. function SearchInSteamButton_typeof(o) { "@babel/helpers - typeof"; return SearchInSteamButton_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, SearchInSteamButton_typeof(o); }
  956. function SearchInSteamButton_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ SearchInSteamButton_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == SearchInSteamButton_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(SearchInSteamButton_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
  957. function SearchInSteamButton_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
  958. function SearchInSteamButton_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { SearchInSteamButton_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { SearchInSteamButton_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
  959. var SearchInSteam = (0,reaxes_react/* reaxper */.iS)(function () {
  960. return /*#__PURE__*/external_React_default().createElement("div", null, /*#__PURE__*/external_React_default().createElement("button", {
  961. style: {
  962. backgroundColor: '#20a0ff',
  963. color: '#eee',
  964. width: '100%',
  965. padding: '12px 18px',
  966. borderRadius: '4px',
  967. border: 'none',
  968. cursor: 'pointer',
  969. fontSize: '16px',
  970. letterSpacing: '2px',
  971. margin: '0 0 24px 0'
  972. },
  973. onClick: /*#__PURE__*/SearchInSteamButton_asyncToGenerator(/*#__PURE__*/SearchInSteamButton_regeneratorRuntime().mark(function _callee3() {
  974. var searchResult;
  975. return SearchInSteamButton_regeneratorRuntime().wrap(function _callee3$(_context3) {
  976. while (1) switch (_context3.prev = _context3.next) {
  977. case 0:
  978. searchResult = '';
  979. _context3.next = 3;
  980. return useMatchDomain({
  981. includes: ['gamer520.com']
  982. }, /*#__PURE__*/SearchInSteamButton_asyncToGenerator(/*#__PURE__*/SearchInSteamButton_regeneratorRuntime().mark(function _callee() {
  983. var _yield$import, getGameName;
  984. return SearchInSteamButton_regeneratorRuntime().wrap(function _callee$(_context) {
  985. while (1) switch (_context.prev = _context.next) {
  986. case 0:
  987. _context.next = 2;
  988. return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95));
  989. case 2:
  990. _yield$import = _context.sent;
  991. getGameName = _yield$import.getGameName;
  992. searchResult = getGameName();
  993. case 5:
  994. case "end":
  995. return _context.stop();
  996. }
  997. }, _callee);
  998. })));
  999. case 3:
  1000. _context3.next = 5;
  1001. return useMatchDomain({
  1002. includes: ['switch618']
  1003. }, /*#__PURE__*/SearchInSteamButton_asyncToGenerator(/*#__PURE__*/SearchInSteamButton_regeneratorRuntime().mark(function _callee2() {
  1004. var _yield$import2, getGameName, _getGameName, english, chinese;
  1005. return SearchInSteamButton_regeneratorRuntime().wrap(function _callee2$(_context2) {
  1006. while (1) switch (_context2.prev = _context2.next) {
  1007. case 0:
  1008. _context2.next = 2;
  1009. return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 801));
  1010. case 2:
  1011. _yield$import2 = _context2.sent;
  1012. getGameName = _yield$import2.getGameName;
  1013. _getGameName = getGameName(), english = _getGameName.english, chinese = _getGameName.chinese;
  1014. english ? searchResult = english : searchResult = chinese;
  1015. case 6:
  1016. case "end":
  1017. return _context2.stop();
  1018. }
  1019. }, _callee2);
  1020. })));
  1021. case 5:
  1022. window.open("https://store.steampowered.com/search/?term=".concat(encodeURIComponent(searchResult.trim()).replace(/%20/g, '+')));
  1023. case 6:
  1024. case "end":
  1025. return _context3.stop();
  1026. }
  1027. }, _callee3);
  1028. }))
  1029. }, "\u53BBSteam\u641C\u7D22\u6B64\u6E38\u620F"));
  1030. });
  1031.  
  1032.  
  1033.  
  1034. // EXTERNAL MODULE: ./node_modules/react-dom/client.js
  1035. var client = __webpack_require__(338);
  1036. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
  1037. var injectStylesIntoStyleTag = __webpack_require__(72);
  1038. var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
  1039. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
  1040. var styleDomAPI = __webpack_require__(825);
  1041. var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
  1042. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
  1043. var insertBySelector = __webpack_require__(659);
  1044. var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
  1045. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
  1046. var setAttributesWithoutAttributes = __webpack_require__(56);
  1047. var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
  1048. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
  1049. var insertStyleElement = __webpack_require__(540);
  1050. var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
  1051. // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
  1052. var styleTagTransform = __webpack_require__(113);
  1053. var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
  1054. // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./projects/switch520-auto-secret/style.less
  1055. var style = __webpack_require__(543);
  1056. ;// ./projects/switch520-auto-secret/style.less
  1057.  
  1058.  
  1059. var options = {};
  1060.  
  1061. options.styleTagTransform = (styleTagTransform_default());
  1062. options.setAttributes = (setAttributesWithoutAttributes_default());
  1063. options.insert = insertBySelector_default().bind(null, "head");
  1064. options.domAPI = (styleDomAPI_default());
  1065. options.insertStyleElement = (insertStyleElement_default());
  1066.  
  1067. var update = injectStylesIntoStyleTag_default()(style/* default */.A, options);
  1068.  
  1069.  
  1070.  
  1071.  
  1072. /* harmony default export */ const switch520_auto_secret_style = (style/* default */.A && style/* default */.A.locals ? style/* default */.A.locals : undefined);
  1073.  
  1074. ;// ./projects/switch520-auto-secret/index.tsx
  1075. function switch520_auto_secret_typeof(o) { "@babel/helpers - typeof"; return switch520_auto_secret_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, switch520_auto_secret_typeof(o); }
  1076. function switch520_auto_secret_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ switch520_auto_secret_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == switch520_auto_secret_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(switch520_auto_secret_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
  1077. function switch520_auto_secret_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
  1078. function switch520_auto_secret_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { switch520_auto_secret_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { switch520_auto_secret_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
  1079. function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
  1080. function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
  1081. function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
  1082. function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
  1083. function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
  1084. function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
  1085. (function () {
  1086. 'use strict';
  1087.  
  1088. //自动输入密码并提交
  1089. ;
  1090. (function () {
  1091. useMatchDomain({
  1092. includes: ['gamer520.com']
  1093. }, function () {
  1094. var el_input = function () {
  1095. return document.querySelector('input#password') || document.querySelector("input[type='password']") || document.querySelector("input[name='post_password']");
  1096. }();
  1097. var el_submit = function () {
  1098. return document.querySelector("input[type='submit']") || document.querySelector("input[name='Submit']") || document.querySelector("input[value='\u63D0\u4EA4']");
  1099. }();
  1100. document.querySelectorAll('*').forEach(function (node) {
  1101. var innerText = node.innerText;
  1102. if (innerText !== null && innerText !== void 0 && innerText.startsWith('密码保护:') && !(innerText !== null && innerText !== void 0 && innerText.includes('上一篇')) && !(innerText !== null && innerText !== void 0 && innerText.includes('牛夫人')) && !(innerText !== null && innerText !== void 0 && innerText.includes('当前位置')) && !(innerText !== null && innerText !== void 0 && innerText.includes('此内容受密码保护')) && !(innerText !== null && innerText !== void 0 && innerText.includes('永久防迷路'))) {
  1103. // const [result] = innerText.match(/[0-9]{3,6}/) ?? [null];
  1104. var secret = innerText.replace('密码保护:', '');
  1105. if (secret && el_input) {
  1106. el_input.value = secret;
  1107. el_submit.click();
  1108. }
  1109. }
  1110. });
  1111. });
  1112. })();
  1113.  
  1114. //以下代码将百度网盘的链接+提取码融合为一个按钮,点击之后直接跳转并填充密码
  1115. ;
  1116. (function () {
  1117. useMatchDomain({
  1118. includes: ['gamer520.com']
  1119. }, function () {
  1120. /**
  1121. * 拿到链接文本所在的P标签
  1122. */
  1123. var containerDiv = function () {
  1124. return Array.from(document.querySelectorAll('div.entry-content.u-text-format.u-clearfix')).find(function (el) {
  1125. var _el$innerText, _el$innerText$include, _el$innerText2, _el$innerText2$includ, _el$innerText3, _el$innerText3$includ;
  1126. return ((_el$innerText = el.innerText) === null || _el$innerText === void 0 || (_el$innerText$include = _el$innerText.includes) === null || _el$innerText$include === void 0 ? void 0 : _el$innerText$include.call(_el$innerText, '提取码')) && ((_el$innerText2 = el.innerText) === null || _el$innerText2 === void 0 || (_el$innerText2$includ = _el$innerText2.includes) === null || _el$innerText2$includ === void 0 ? void 0 : _el$innerText2$includ.call(_el$innerText2, '链接:')) && ((_el$innerText3 = el.innerText) === null || _el$innerText3 === void 0 || (_el$innerText3$includ = _el$innerText3.includes) === null || _el$innerText3$includ === void 0 ? void 0 : _el$innerText3$includ.call(_el$innerText3, 'https://pan.baidu.com'));
  1127. });
  1128. }();
  1129. if (containerDiv) {
  1130. var _ref = function () {
  1131. //兼容不是<a/>标签的情况,将其转换为a标签
  1132. var aElement = Array.from(containerDiv.querySelectorAll('*')).reduce(function (accu, el) {
  1133. var _el$href, _el$href$startsWith;
  1134. if (accu) return accu;
  1135. if (el.tagName.toLowerCase() === 'a' && (_el$href = el.href) !== null && _el$href !== void 0 && (_el$href$startsWith = _el$href.startsWith) !== null && _el$href$startsWith !== void 0 && _el$href$startsWith.call(_el$href, 'https://pan.baidu.com')) {
  1136. return accu = el;
  1137. } else {
  1138. //如果网盘链接是个普通text,则将其转换为a标签
  1139. if ([el.innerText.includes('链接'), el.innerText.includes('https://pan.baidu.com'), el.children.length === 0 || Array.from(el.childNodes).find(function (e) {
  1140. return e.nodeName === '#text' && e.nodeValue.includes('https://pan.baidu.com');
  1141. })].every(function (bool) {
  1142. return bool;
  1143. })) {
  1144. var url = el.innerText.match(/https?:\/\/pan\.baidu\.com\/[\/a-zA-Z0-9?=&]+/)[0];
  1145. el.innerHTML = el.innerText.replace(url, "<a href=\"".concat(url, "\">").concat(url, "</a>"));
  1146. return accu = el.querySelector('a');
  1147. }
  1148. }
  1149. }, null);
  1150. return [aElement.href, aElement];
  1151. }(),
  1152. _ref2 = _slicedToArray(_ref, 2),
  1153. baiduLink = _ref2[0],
  1154. baiduLinkAElement = _ref2[1];
  1155. var _ref3 = function () {
  1156. var pwdElement = Array.from(containerDiv.querySelectorAll('*')).find(function (el) {
  1157. var _el$innerText4, _el$innerText4$starts;
  1158. return el === null || el === void 0 || (_el$innerText4 = el.innerText) === null || _el$innerText4 === void 0 || (_el$innerText4$starts = _el$innerText4.startsWith) === null || _el$innerText4$starts === void 0 ? void 0 : _el$innerText4$starts.call(_el$innerText4, '提取码:');
  1159. });
  1160. return [pwdElement === null || pwdElement === void 0 ? void 0 : pwdElement.innerText.replace('提取码: ', '').replaceAll(' ', ''), pwdElement];
  1161. }(),
  1162. _ref4 = _slicedToArray(_ref3, 2),
  1163. pwdText = _ref4[0],
  1164. pwdElement = _ref4[1];
  1165. if (!baiduLink.includes('pwd=') && pwdText) {
  1166. var href = baiduLink + (baiduLink.includes('?') ? "&pwd=".concat(pwdText) : "?pwd=".concat(pwdText));
  1167. baiduLinkAElement.href = href;
  1168. baiduLinkAElement.innerText = baiduLinkAElement.innerText.replace(baiduLink, href);
  1169. }
  1170. containerDiv.removeChild(pwdElement);
  1171. }
  1172. });
  1173. })();
  1174.  
  1175. //以下代码跳过获取下载地址的过程 , 不需要点两次立即下载
  1176. ;
  1177. (function () {
  1178. useMatchDomain({
  1179. includes: ['gamer520.com']
  1180. }, function () {
  1181. var downloadButton = new Promise(function (resolve) {
  1182. var interval = setInterval(function () {
  1183. var button = Array.from(document.querySelectorAll('a')).find(function (el) {
  1184. return el.innerText === ' 立即下载';
  1185. });
  1186. if (button) {
  1187. clearInterval(interval);
  1188. resolve(button);
  1189. }
  1190. }, 100);
  1191. });
  1192. downloadButton.then(function (button) {
  1193. var interval, invokedCount, startTime;
  1194. if (button) {
  1195. button.addEventListener('click', function () {
  1196. invokedCount = 0;
  1197. startTime = Date.now();
  1198. interval = setInterval(function () {
  1199. if (invokedCount >= 40 || Date.now() - startTime > 5 * 1000) {
  1200. clearInterval(interval);
  1201. interval = null;
  1202. invokedCount = 0;
  1203. } else {
  1204. invokedCount++;
  1205. var secondDownloadButton = function () {
  1206. return Array.from(document.querySelectorAll('*')).find(function (el) {
  1207. return el.innerText === '立即下载';
  1208. });
  1209. }();
  1210. if (secondDownloadButton) {
  1211. secondDownloadButton.click();
  1212. clearInterval(interval);
  1213. interval = null;
  1214. invokedCount = 0;
  1215. }
  1216. }
  1217. }, 100);
  1218. });
  1219. } else {
  1220. console.warn('downloadButton not founddddddddddddddddddddddddddddddd');
  1221. }
  1222. });
  1223. });
  1224. })();
  1225.  
  1226. //如果有密码,则自动点击网盘按钮
  1227. ;
  1228. (function () {
  1229. useMatchDomain({
  1230. hosts: ['pan.baidu.com']
  1231. }, function () {
  1232. if (location.href.startsWith('https://pan.baidu.com') && location.href.includes('pwd=')) {
  1233. var submitBtn = document.getElementById('submitBtn');
  1234. if (submitBtn.innerText === '提取文件') {
  1235. submitBtn.click();
  1236. }
  1237. }
  1238. });
  1239. })();
  1240.  
  1241. //在游戏网站中划词搜索
  1242. ;
  1243. (function () {
  1244. useMatchDomain({
  1245. includes: ['gamer520', 'switch618']
  1246. }, function () {
  1247. Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 312));
  1248. });
  1249. })();
  1250.  
  1251. //将去steam搜索框插入进页面正文
  1252. ;
  1253. switch520_auto_secret_asyncToGenerator(/*#__PURE__*/switch520_auto_secret_regeneratorRuntime().mark(function _callee2() {
  1254. var container, div, reactRoot;
  1255. return switch520_auto_secret_regeneratorRuntime().wrap(function _callee2$(_context2) {
  1256. while (1) switch (_context2.prev = _context2.next) {
  1257. case 0:
  1258. div = document.createElement('div');
  1259. reactRoot = (0,client/* createRoot */.H)(div);
  1260. _context2.next = 4;
  1261. return useMatchDomain({
  1262. includes: ['gamer520.com']
  1263. }, /*#__PURE__*/switch520_auto_secret_asyncToGenerator(/*#__PURE__*/switch520_auto_secret_regeneratorRuntime().mark(function _callee() {
  1264. var _yield$import, articleContainer;
  1265. return switch520_auto_secret_regeneratorRuntime().wrap(function _callee$(_context) {
  1266. while (1) switch (_context.prev = _context.next) {
  1267. case 0:
  1268. _context.next = 2;
  1269. return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95));
  1270. case 2:
  1271. _yield$import = _context.sent;
  1272. articleContainer = _yield$import.articleContainer;
  1273. container = articleContainer();
  1274. if (!document.body.innerText.includes('牛夫人') && location.pathname !== '/' && container) {
  1275. container.prepend(div);
  1276. reactRoot.render(/*#__PURE__*/external_React_default().createElement(SearchInSteam, null));
  1277. }
  1278. case 6:
  1279. case "end":
  1280. return _context.stop();
  1281. }
  1282. }, _callee);
  1283. })));
  1284. case 4:
  1285. _context2.next = 6;
  1286. return useMatchDomain({
  1287. regExp: /switch618\.com\/[\d+]+.html/g
  1288. }, function () {
  1289. container = document.querySelector(".erphpdown-box");
  1290. container.insertAdjacentElement('afterend', div);
  1291. reactRoot.render(/*#__PURE__*/external_React_default().createElement(SearchInSteam, null));
  1292. });
  1293. case 6:
  1294. case "end":
  1295. return _context2.stop();
  1296. }
  1297. }, _callee2);
  1298. }))();
  1299. })();
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305. /******/ })()
  1306. ;