UNPKG

tdesign-mobile-vue

Version:
1,180 lines (1,146 loc) 1.13 MB
/** * tdesign v1.10.2 * (c) 2025 TDesign Group * @license MIT */ import { _ as _toConsumableArray } from './dep-fa316889.mjs'; import { _ as _slicedToArray } from './dep-e9967e54.mjs'; import { _ as _typeof } from './dep-a895aa2a.mjs'; import { _ as _classCallCheck, a as _createClass } from './dep-385f5c84.mjs'; import { _ as _defineProperty } from './dep-7762327f.mjs'; import { r as regenerator, _ as _asyncToGenerator } from './dep-aa63169a.mjs'; import { _ as _objectWithoutProperties } from './dep-76a65c31.mjs'; import { c as commonjsGlobal$1, g as getDefaultExportFromCjs$4 } from './dep-a733c437.mjs'; function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function _isNativeReflectConstruct() { return !!t; })(); } function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } function _construct(t, e, r) { if (_isNativeReflectConstruct$7()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; } function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } 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); } function _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).indexOf("[native code]"); } catch (n) { return "function" == typeof t; } } function _wrapNativeSuper(t) { var r = "function" == typeof Map ? new Map() : void 0; return _wrapNativeSuper = function _wrapNativeSuper(t) { if (null === t || !_isNativeFunction(t)) return t; if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); if (void 0 !== r) { if (r.has(t)) return r.get(t); r.set(t, Wrapper); } function Wrapper() { return _construct(t, arguments, _getPrototypeOf(this).constructor); } return Wrapper.prototype = Object.create(t.prototype, { constructor: { value: Wrapper, enumerable: !1, writable: !0, configurable: !0 } }), _setPrototypeOf(Wrapper, t); }, _wrapNativeSuper(t); } function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(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$b(r, a) : void 0; } } function _arrayLikeToArray$b(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; } function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // src/index.ts var f$1 = { reset: [0, 0], bold: [1, 22, "\x1B[22m\x1B[1m"], dim: [2, 22, "\x1B[22m\x1B[2m"], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] }, h$1 = Object.entries(f$1); function a$2(n) { return String(n); } a$2.open = ""; a$2.close = ""; var B = /* @__PURE__ */h$1.reduce(function (n, _ref) { var _ref2 = _slicedToArray(_ref, 1), e = _ref2[0]; return n[e] = a$2, n; }, { isColorSupported: !1 }); function m() { return _objectSpread$b({}, B); } function C$1() { var n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1; var e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || []; return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome; } function p$2() { var n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1; var e = C$1(n), i = function i(r, t, c, o) { var l = "", s = 0; do l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s); while (~o); return l + r.substring(s); }, g = function g(r, t) { var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : r; var o = function o(l) { var s = String(l), b = s.indexOf(t, r.length); return ~b ? r + i(s, t, c, b) + t : r + s + t; }; return o.open = r, o.close = t, o; }, u = { isColorSupported: e }, d = function d(r) { return "\x1B[".concat(r, "m"); }; var _iterator = _createForOfIteratorHelper$b(h$1), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var _step$value = _slicedToArray(_step.value, 2), r = _step$value[0], t = _step$value[1]; u[r] = e ? g(d(t[0]), d(t[1]), t[2]) : a$2; } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } return u; } // src/browser.ts function p$1() { return C$1(); } function a$1() { return p$2(); } var s = p$2(); var _excluded$2 = ["message", "cause"]; function _callSuper$6(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct$6() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$6 = function _isNativeReflectConstruct() { return !!t; })(); } function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(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$a(r, a) : void 0; } } function _arrayLikeToArray$a(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; } function _mergeNamespaces(n, m) { m.forEach(function (e) { e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) { if (k !== 'default' && !(k in n)) { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function get() { return e[k]; } }); } }); }); return Object.freeze(n); } function getKeysOfEnumerableProperties(object, compareKeys) { var rawKeys = Object.keys(object); var keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys); if (Object.getOwnPropertySymbols) { var _iterator = _createForOfIteratorHelper$a(Object.getOwnPropertySymbols(object)), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var symbol = _step.value; if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) { keys.push(symbol); } } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } } return keys; } /** * Return entries (for example, of a map) * with spacing, indentation, and comma * without surrounding punctuation (for example, braces) */ function printIteratorEntries(iterator, config, indentation, depth, refs, printer) { var separator = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ": "; var result = ""; var width = 0; var current = iterator.next(); if (!current.done) { result += config.spacingOuter; var indentationNext = indentation + config.indent; while (!current.done) { result += indentationNext; if (width++ === config.maxWidth) { result += "…"; break; } var name = printer(current.value[0], config, indentationNext, depth, refs); var value = printer(current.value[1], config, indentationNext, depth, refs); result += name + separator + value; current = iterator.next(); if (!current.done) { result += ",".concat(config.spacingInner); } else if (!config.min) { result += ","; } } result += config.spacingOuter + indentation; } return result; } /** * Return values (for example, of a set) * with spacing, indentation, and comma * without surrounding punctuation (braces or brackets) */ function printIteratorValues(iterator, config, indentation, depth, refs, printer) { var result = ""; var width = 0; var current = iterator.next(); if (!current.done) { result += config.spacingOuter; var indentationNext = indentation + config.indent; while (!current.done) { result += indentationNext; if (width++ === config.maxWidth) { result += "…"; break; } result += printer(current.value, config, indentationNext, depth, refs); current = iterator.next(); if (!current.done) { result += ",".concat(config.spacingInner); } else if (!config.min) { result += ","; } } result += config.spacingOuter + indentation; } return result; } /** * Return items (for example, of an array) * with spacing, indentation, and comma * without surrounding punctuation (for example, brackets) */ function printListItems(list, config, indentation, depth, refs, printer) { var result = ""; list = list instanceof ArrayBuffer ? new DataView(list) : list; var isDataView = function isDataView(l) { return l instanceof DataView; }; var length = isDataView(list) ? list.byteLength : list.length; if (length > 0) { result += config.spacingOuter; var indentationNext = indentation + config.indent; for (var i = 0; i < length; i++) { result += indentationNext; if (i === config.maxWidth) { result += "…"; break; } if (isDataView(list) || i in list) { result += printer(isDataView(list) ? list.getInt8(i) : list[i], config, indentationNext, depth, refs); } if (i < length - 1) { result += ",".concat(config.spacingInner); } else if (!config.min) { result += ","; } } result += config.spacingOuter + indentation; } return result; } /** * Return properties of an object * with spacing, indentation, and comma * without surrounding punctuation (for example, braces) */ function printObjectProperties(val, config, indentation, depth, refs, printer) { var result = ""; var keys = getKeysOfEnumerableProperties(val, config.compareKeys); if (keys.length > 0) { result += config.spacingOuter; var indentationNext = indentation + config.indent; for (var i = 0; i < keys.length; i++) { var key = keys[i]; var name = printer(key, config, indentationNext, depth, refs); var value = printer(val[key], config, indentationNext, depth, refs); result += "".concat(indentationNext + name, ": ").concat(value); if (i < keys.length - 1) { result += ",".concat(config.spacingInner); } else if (!config.min) { result += ","; } } result += config.spacingOuter + indentation; } return result; } var asymmetricMatcher = typeof Symbol === "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621; var SPACE$2 = " "; var serialize$5 = function serialize$5(val, config, indentation, depth, refs, printer) { var stringedValue = val.toString(); if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") { if (++depth > config.maxDepth) { return "[".concat(stringedValue, "]"); } return "".concat(stringedValue + SPACE$2, "[").concat(printListItems(val.sample, config, indentation, depth, refs, printer), "]"); } if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") { if (++depth > config.maxDepth) { return "[".concat(stringedValue, "]"); } return "".concat(stringedValue + SPACE$2, "{").concat(printObjectProperties(val.sample, config, indentation, depth, refs, printer), "}"); } if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") { return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs); } if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") { return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs); } if (typeof val.toAsymmetricMatcher !== "function") { throw new TypeError("Asymmetric matcher ".concat(val.constructor.name, " does not implement toAsymmetricMatcher()")); } return val.toAsymmetricMatcher(); }; var test$5 = function test$5(val) { return val && val.$$typeof === asymmetricMatcher; }; var plugin$5 = { serialize: serialize$5, test: test$5 }; var SPACE$1 = " "; var OBJECT_NAMES = new Set(["DOMStringMap", "NamedNodeMap"]); var ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/; function testName(name) { return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name); } var test$4 = function test$4(val) { return val && val.constructor && !!val.constructor.name && testName(val.constructor.name); }; function isNamedNodeMap(collection) { return collection.constructor.name === "NamedNodeMap"; } var serialize$4 = function serialize$4(collection, config, indentation, depth, refs, printer) { var name = collection.constructor.name; if (++depth > config.maxDepth) { return "[".concat(name, "]"); } return (config.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? "{".concat(printObjectProperties(isNamedNodeMap(collection) ? _toConsumableArray(collection).reduce(function (props, attribute) { props[attribute.name] = attribute.value; return props; }, {}) : _objectSpread$a({}, collection), config, indentation, depth, refs, printer), "}") : "[".concat(printListItems(_toConsumableArray(collection), config, indentation, depth, refs, printer), "]")); }; var plugin$4 = { serialize: serialize$4, test: test$4 }; /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ function escapeHTML(str) { return str.replaceAll("<", "&lt;").replaceAll(">", "&gt;"); } // Return empty string if keys is empty. function printProps(keys, props, config, indentation, depth, refs, printer) { var indentationNext = indentation + config.indent; var colors = config.colors; return keys.map(function (key) { var value = props[key]; var printed = printer(value, config, indentationNext, depth, refs); if (typeof value !== "string") { if (printed.includes("\n")) { printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation; } printed = "{".concat(printed, "}"); } return "".concat(config.spacingInner + indentation + colors.prop.open + key + colors.prop.close, "=").concat(colors.value.open).concat(printed).concat(colors.value.close); }).join(""); } // Return empty string if children is empty. function printChildren(children, config, indentation, depth, refs, printer) { return children.map(function (child) { return config.spacingOuter + indentation + (typeof child === "string" ? printText(child, config) : printer(child, config, indentation, depth, refs)); }).join(""); } function printText(text, config) { var contentColor = config.colors.content; return contentColor.open + escapeHTML(text) + contentColor.close; } function printComment(comment, config) { var commentColor = config.colors.comment; return "".concat(commentColor.open, "<!--").concat(escapeHTML(comment), "-->").concat(commentColor.close); } // Separate the functions to format props, children, and element, // so a plugin could override a particular function, if needed. // Too bad, so sad: the traditional (but unnecessary) space // in a self-closing tagColor requires a second test of printedProps. function printElement(type, printedProps, printedChildren, config, indentation) { var tagColor = config.colors.tag; return "".concat(tagColor.open, "<").concat(type).concat(printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open).concat(printedChildren ? ">".concat(tagColor.close).concat(printedChildren).concat(config.spacingOuter).concat(indentation).concat(tagColor.open, "</").concat(type) : "".concat(printedProps && !config.min ? "" : " ", "/"), ">").concat(tagColor.close); } function printElementAsLeaf(type, config) { var tagColor = config.colors.tag; return "".concat(tagColor.open, "<").concat(type).concat(tagColor.close, " \u2026").concat(tagColor.open, " />").concat(tagColor.close); } var ELEMENT_NODE = 1; var TEXT_NODE = 3; var COMMENT_NODE = 8; var FRAGMENT_NODE = 11; var ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/; function testHasAttribute(val) { try { return typeof val.hasAttribute === "function" && val.hasAttribute("is"); } catch (_unused) { return false; } } function testNode(val) { var constructorName = val.constructor.name; var nodeType = val.nodeType, tagName = val.tagName; var isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val); return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment"; } var test$3 = function test$3(val) { var _val$constructor; return (val === null || val === void 0 || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val); }; function nodeIsText(node) { return node.nodeType === TEXT_NODE; } function nodeIsComment(node) { return node.nodeType === COMMENT_NODE; } function nodeIsFragment(node) { return node.nodeType === FRAGMENT_NODE; } var serialize$3 = function serialize$3(node, config, indentation, depth, refs, printer) { if (nodeIsText(node)) { return printText(node.data, config); } if (nodeIsComment(node)) { return printComment(node.data, config); } var type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase(); if (++depth > config.maxDepth) { return printElementAsLeaf(type, config); } return printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes, function (attr) { return attr.name; }).sort(), nodeIsFragment(node) ? {} : _toConsumableArray(node.attributes).reduce(function (props, attribute) { props[attribute.name] = attribute.value; return props; }, {}), config, indentation + config.indent, depth, refs, printer), printChildren(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation); }; var plugin$3 = { serialize: serialize$3, test: test$3 }; // SENTINEL constants are from https://github.com/facebook/immutable-js var IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@"; var IS_LIST_SENTINEL$1 = "@@__IMMUTABLE_LIST__@@"; var IS_KEYED_SENTINEL$1 = "@@__IMMUTABLE_KEYED__@@"; var IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@"; var IS_ORDERED_SENTINEL$1 = "@@__IMMUTABLE_ORDERED__@@"; var IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@"; var IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@"; var IS_SET_SENTINEL$1 = "@@__IMMUTABLE_SET__@@"; var IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@"; var getImmutableName = function getImmutableName(name) { return "Immutable.".concat(name); }; var printAsLeaf = function printAsLeaf(name) { return "[".concat(name, "]"); }; var SPACE = " "; var LAZY = "…"; function printImmutableEntries(val, config, indentation, depth, refs, printer, type) { return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : "".concat(getImmutableName(type) + SPACE, "{").concat(printIteratorEntries(val.entries(), config, indentation, depth, refs, printer), "}"); } // Record has an entries method because it is a collection in immutable v3. // Return an iterator for Immutable Record from version v3 or v4. function getRecordEntries(val) { var i = 0; return { next: function next() { if (i < val._keys.length) { var key = val._keys[i++]; return { done: false, value: [key, val.get(key)] }; } return { done: true, value: undefined }; } }; } function printImmutableRecord(val, config, indentation, depth, refs, printer) { // _name property is defined only for an Immutable Record instance // which was constructed with a second optional descriptive name arg var name = getImmutableName(val._name || "Record"); return ++depth > config.maxDepth ? printAsLeaf(name) : "".concat(name + SPACE, "{").concat(printIteratorEntries(getRecordEntries(val), config, indentation, depth, refs, printer), "}"); } function printImmutableSeq(val, config, indentation, depth, refs, printer) { var name = getImmutableName("Seq"); if (++depth > config.maxDepth) { return printAsLeaf(name); } if (val[IS_KEYED_SENTINEL$1]) { return "".concat(name + SPACE, "{").concat(val._iter || val._object ? printIteratorEntries(val.entries(), config, indentation, depth, refs, printer) : LAZY, "}"); } return "".concat(name + SPACE, "[").concat(val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config, indentation, depth, refs, printer) : LAZY, "]"); } function printImmutableValues(val, config, indentation, depth, refs, printer, type) { return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : "".concat(getImmutableName(type) + SPACE, "[").concat(printIteratorValues(val.values(), config, indentation, depth, refs, printer), "]"); } var serialize$2 = function serialize$2(val, config, indentation, depth, refs, printer) { if (val[IS_MAP_SENTINEL]) { return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL$1] ? "OrderedMap" : "Map"); } if (val[IS_LIST_SENTINEL$1]) { return printImmutableValues(val, config, indentation, depth, refs, printer, "List"); } if (val[IS_SET_SENTINEL$1]) { return printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL$1] ? "OrderedSet" : "Set"); } if (val[IS_STACK_SENTINEL]) { return printImmutableValues(val, config, indentation, depth, refs, printer, "Stack"); } if (val[IS_SEQ_SENTINEL]) { return printImmutableSeq(val, config, indentation, depth, refs, printer); } // For compatibility with immutable v3 and v4, let record be the default. return printImmutableRecord(val, config, indentation, depth, refs, printer); }; // Explicitly comparing sentinel properties to true avoids false positive // when mock identity-obj-proxy returns the key as the value for any key. var test$2 = function test$2(val) { return val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true); }; var plugin$2 = { serialize: serialize$2, test: test$2 }; function getDefaultExportFromCjs$3(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } var reactIs$1 = { exports: {} }; var reactIs_production = {}; /** * @license React * react-is.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_production; function requireReactIs_production() { if (hasRequiredReactIs_production) return reactIs_production; hasRequiredReactIs_production = 1; var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"); var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); function typeOf(object) { if ("object" === _typeof(object) && null !== object) { var $$typeof = object.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: switch (object = object.type, object) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: case REACT_VIEW_TRANSITION_TYPE: return object; default: switch (object = object && object.$$typeof, object) { case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: return object; case REACT_CONSUMER_TYPE: return object; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } } reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE; reactIs_production.ContextProvider = REACT_CONTEXT_TYPE; reactIs_production.Element = REACT_ELEMENT_TYPE; reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE; reactIs_production.Fragment = REACT_FRAGMENT_TYPE; reactIs_production.Lazy = REACT_LAZY_TYPE; reactIs_production.Memo = REACT_MEMO_TYPE; reactIs_production.Portal = REACT_PORTAL_TYPE; reactIs_production.Profiler = REACT_PROFILER_TYPE; reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE; reactIs_production.Suspense = REACT_SUSPENSE_TYPE; reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE; reactIs_production.isContextConsumer = function (object) { return typeOf(object) === REACT_CONSUMER_TYPE; }; reactIs_production.isContextProvider = function (object) { return typeOf(object) === REACT_CONTEXT_TYPE; }; reactIs_production.isElement = function (object) { return "object" === _typeof(object) && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; }; reactIs_production.isForwardRef = function (object) { return typeOf(object) === REACT_FORWARD_REF_TYPE; }; reactIs_production.isFragment = function (object) { return typeOf(object) === REACT_FRAGMENT_TYPE; }; reactIs_production.isLazy = function (object) { return typeOf(object) === REACT_LAZY_TYPE; }; reactIs_production.isMemo = function (object) { return typeOf(object) === REACT_MEMO_TYPE; }; reactIs_production.isPortal = function (object) { return typeOf(object) === REACT_PORTAL_TYPE; }; reactIs_production.isProfiler = function (object) { return typeOf(object) === REACT_PROFILER_TYPE; }; reactIs_production.isStrictMode = function (object) { return typeOf(object) === REACT_STRICT_MODE_TYPE; }; reactIs_production.isSuspense = function (object) { return typeOf(object) === REACT_SUSPENSE_TYPE; }; reactIs_production.isSuspenseList = function (object) { return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; }; reactIs_production.isValidElementType = function (type) { return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === _typeof(type) && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false; }; reactIs_production.typeOf = typeOf; return reactIs_production; } var reactIs_development$1 = {}; /** * @license React * react-is.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_development$1; function requireReactIs_development$1() { if (hasRequiredReactIs_development$1) return reactIs_development$1; hasRequiredReactIs_development$1 = 1; "production" !== process.env.NODE_ENV && function () { function typeOf(object) { if ("object" === _typeof(object) && null !== object) { var $$typeof = object.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: switch (object = object.type, object) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: case REACT_VIEW_TRANSITION_TYPE: return object; default: switch (object = object && object.$$typeof, object) { case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: return object; case REACT_CONSUMER_TYPE: return object; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } } var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"); var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE; reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE; reactIs_development$1.Element = REACT_ELEMENT_TYPE; reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE; reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE; reactIs_development$1.Lazy = REACT_LAZY_TYPE; reactIs_development$1.Memo = REACT_MEMO_TYPE; reactIs_development$1.Portal = REACT_PORTAL_TYPE; reactIs_development$1.Profiler = REACT_PROFILER_TYPE; reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE; reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE; reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE; reactIs_development$1.isContextConsumer = function (object) { return typeOf(object) === REACT_CONSUMER_TYPE; }; reactIs_development$1.isContextProvider = function (object) { return typeOf(object) === REACT_CONTEXT_TYPE; }; reactIs_development$1.isElement = function (object) { return "object" === _typeof(object) && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; }; reactIs_development$1.isForwardRef = function (object) { return typeOf(object) === REACT_FORWARD_REF_TYPE; }; reactIs_development$1.isFragment = function (object) { return typeOf(object) === REACT_FRAGMENT_TYPE; }; reactIs_development$1.isLazy = function (object) { return typeOf(object) === REACT_LAZY_TYPE; }; reactIs_development$1.isMemo = function (object) { return typeOf(object) === REACT_MEMO_TYPE; }; reactIs_development$1.isPortal = function (object) { return typeOf(object) === REACT_PORTAL_TYPE; }; reactIs_development$1.isProfiler = function (object) { return typeOf(object) === REACT_PROFILER_TYPE; }; reactIs_development$1.isStrictMode = function (object) { return typeOf(object) === REACT_STRICT_MODE_TYPE; }; reactIs_development$1.isSuspense = function (object) { return typeOf(object) === REACT_SUSPENSE_TYPE; }; reactIs_development$1.isSuspenseList = function (object) { return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; }; reactIs_development$1.isValidElementType = function (type) { return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === _typeof(type) && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false; }; reactIs_development$1.typeOf = typeOf; }(); return reactIs_development$1; } var hasRequiredReactIs$1; function requireReactIs$1() { if (hasRequiredReactIs$1) return reactIs$1.exports; hasRequiredReactIs$1 = 1; if (process.env.NODE_ENV === 'production') { reactIs$1.exports = requireReactIs_production(); } else { reactIs$1.exports = requireReactIs_development$1(); } return reactIs$1.exports; } var reactIsExports$1 = requireReactIs$1(); var index$1 = /*@__PURE__*/getDefaultExportFromCjs$3(reactIsExports$1); var ReactIs19 = /*#__PURE__*/_mergeNamespaces({ __proto__: null, default: index$1 }, [reactIsExports$1]); var reactIs = { exports: {} }; var reactIs_production_min = {}; /** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_production_min; function requireReactIs_production_min() { if (hasRequiredReactIs_production_min) return reactIs_production_min; hasRequiredReactIs_production_min = 1; var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u; u = Symbol.for("react.module.reference"); function v(a) { if ("object" === _typeof(a) && null !== a) { var r = a.$$typeof; switch (r) { case b: switch (a = a.type, a) { case d: case f: case e: case m: case n: return a; default: switch (a = a && a.$$typeof, a) { case k: case h: case l: case q: case p: case g: return a; default: return r; } } case c: return r; } } } reactIs_production_min.ContextConsumer = h; reactIs_production_min.ContextProvider = g; reactIs_production_min.Element = b; reactIs_production_min.ForwardRef = l; reactIs_production_min.Fragment = d; reactIs_production_min.Lazy = q; reactIs_production_min.Memo = p; reactIs_production_min.Portal = c; reactIs_production_min.Profiler = f; reactIs_production_min.StrictMode = e; reactIs_production_min.Suspense = m; reactIs_production_min.SuspenseList = n; reactIs_production_min.isAsyncMode = function () { return false; }; reactIs_production_min.isConcurrentMode = function () { return false; }; reactIs_production_min.isContextConsumer = function (a) { return v(a) === h; }; reactIs_production_min.isContextProvider = function (a) { return v(a) === g; }; reactIs_production_min.isElement = function (a) { return "object" === _typeof(a) && null !== a && a.$$typeof === b; }; reactIs_production_min.isForwardRef = function (a) { return v(a) === l; }; reactIs_production_min.isFragment = function (a) { return v(a) === d; }; reactIs_production_min.isLazy = function (a) { return v(a) === q; }; reactIs_production_min.isMemo = function (a) { return v(a) === p; }; reactIs_production_min.isPortal = function (a) { return v(a) === c; }; reactIs_production_min.isProfiler = function (a) { return v(a) === f; }; reactIs_production_min.isStrictMode = function (a) { return v(a) === e; }; reactIs_production_min.isSuspense = function (a) { return v(a) === m; }; reactIs_production_min.isSuspenseList = function (a) { return v(a) === n; }; reactIs_production_min.isValidElementType = function (a) { return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === _typeof(a) && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false; }; reactIs_production_min.typeOf = v; return reactIs_production_min; } var reactIs_development = {}; /** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hasRequiredReactIs_development; function requireReactIs_development() { if (hasRequiredReactIs_development) return reactIs_development; hasRequiredReactIs_development = 1; if (process.env.NODE_ENV !== "production") { (function () { // ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for('react.element'); var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); var REACT_CONTEXT_TYPE = Symbol.for('react.context'); var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context'); var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); var REACT_MEMO_TYPE = Symbol.for('react.memo'); var REACT_LAZY_TYPE = Symbol.for('react.lazy'); var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); // ----------------------------------------------------------------------------- var enableScopeAPI = false; // Experimental Create Event Handle API. var enableCacheElement = false; var enableTransitionTracing = false; // No known bugs, but needs performance testing var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber // stuff. Intended to enable React core members to more easily debug scheduling // issues in DEV builds. var enableDebugTracing = false; // Track which Fiber(s) schedule render work. var REACT_MODULE_REFERENCE; { REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); } function isValidElementType(type) { if (typeof type === 'string' || typeof type === 'function') { return true; } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill). if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { return true; } if (_typeof(type) === 'object' && type !== null) { if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { return true; } } return false; } function typeOf(object) { if (_typeof(object) === 'object' && object !== null) { var $$typeof = object.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: var type = object.type; switch (type) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: return type; default: var $$typeofType = type && type.$$typeof; switch ($$typeofType) { case REACT_SERVER_CONTEXT_TYPE: case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: case REACT_PROVIDER_TYPE: return $$typeofType; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } return undefined; } var ContextConsumer = REACT_CONTEXT_TYPE; var ContextProvider = REACT_PROVIDER_TYPE; var Element = REACT_ELEMENT_TYPE; var ForwardRef = REACT_FORWARD_REF_TYPE; var Fragment = REACT_FRAGMENT_TYPE; var Lazy = REACT_LAZY_TYPE; var Memo = REACT_MEMO_TYPE; var Portal = REACT_PORTAL_TYPE; var Profiler = REACT_PROFILER_TYPE; var StrictMode = REACT_STRICT_MODE_TYPE; var Suspense = REACT_SUSPENSE_TYPE; var SuspenseList = REACT_SUSPENSE_LIST_TYPE; var hasWarnedAboutDeprecatedIsAsyncMode = false; var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated function isAsyncMode(object) { { if (!hasWarnedAboutDeprecatedIsAsyncMode) { hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); } } return false; } function isConcurrentMode(object) { { if (!hasWarnedAboutDeprecatedIsConcurrentMode) { hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); } } return false; } function isContextConsumer(object) { return typeOf(object) === REACT_CONTEXT_TYPE; } function isContextProvider(object) { return typeOf(object) === REACT_PROVIDER_TYPE; } function isElement(object) { return _typeof(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; } function isForwardRef(object) { return typeOf(object) === REACT_FORWARD_REF_TYPE; } function isFragment(object) {