diff --git a/.figmaexportrc.js b/.figmaexportrc.js index 267b03d2..bd59638c 100644 --- a/.figmaexportrc.js +++ b/.figmaexportrc.js @@ -8,6 +8,8 @@ // @ts-check +const { pascalCase } = require('@figma-export/utils') + module.exports = { commands: [ [ @@ -37,7 +39,7 @@ module.exports = { ], outputters: [ require('@figma-export/output-components-as-svg')({ - output: './icons', + output: './icons/svg', getDirname: () => '', getBasename: ({ basename, dirname }) => { // Special handing for the directional arrows which have an odd export naming convention @@ -53,6 +55,29 @@ module.exports = { return `${basename}.svg` }, }), + require('@figma-export/output-components-as-svgr')({ + output: './icons/react', + getFileExtension: () => '.tsx', + getDirname: () => '', + getComponentName: ({ componentName }) => + pascalCase( + componentName + .split('/') + .map((n) => `${n[0].toUpperCase()}${n.slice(1)}`) + .reverse() + .join('') + 'Icon', + ), + getSvgrConfig: () => { + return { + jsxRuntime: 'automatic', + typescript: true, + titleProp: true, + svgProps: { + role: 'img', + }, + } + }, + }), ], }, ], diff --git a/components/dist/asciidoc.css b/components/dist/asciidoc.css index 37034cb1..e714b738 100644 --- a/components/dist/asciidoc.css +++ b/components/dist/asciidoc.css @@ -1,3 +1,11 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, you can obtain one at https://mozilla.org/MPL/2.0/. + * + * Copyright Oxide Computer Company + */ + @layer components { .asciidoc-body .line-through { text-decoration: line-through; diff --git a/components/dist/button.css b/components/dist/button.css index 1a75f014..ba2b3de0 100644 --- a/components/dist/button.css +++ b/components/dist/button.css @@ -1,3 +1,11 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, you can obtain one at https://mozilla.org/MPL/2.0/. + * + * Copyright Oxide Computer Company + */ + button, a, label { diff --git a/components/dist/index.d.ts b/components/dist/index.d.ts index 08413af9..0522b874 100644 --- a/components/dist/index.d.ts +++ b/components/dist/index.d.ts @@ -1,7 +1,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; import * as _asciidoctor_core_types from '@asciidoctor/core/types'; import * as react from 'react'; -import { ReactNode } from 'react'; +import { ReactNode, ReactElement } from 'react'; import { TabsProps, TabsTriggerProps, TabsListProps, TabsContentProps } from '@radix-ui/react-tabs'; import { SetRequired } from 'type-fest'; @@ -53,13 +53,13 @@ interface SpinnerProps { variant?: SpinnerVariant; } declare const Spinner: ({ className, size, variant, }: SpinnerProps) => react_jsx_runtime.JSX.Element; -type Props = { +type Props$1 = { isLoading: boolean; children?: ReactNode; minTime?: number; }; /** Loading spinner that shows for a minimum of `minTime` */ -declare const SpinnerLoader: ({ isLoading, children, minTime }: Props) => react_jsx_runtime.JSX.Element; +declare const SpinnerLoader: ({ isLoading, children, minTime }: Props$1) => react_jsx_runtime.JSX.Element; type TabsRootProps = SetRequired; declare const Tabs: { @@ -69,4 +69,49 @@ declare const Tabs: { Content: ({ className, ...props }: TabsContentProps) => react_jsx_runtime.JSX.Element; }; -export { AsciiDocBlocks, Badge, BadgeColor, BadgeProps, BadgeVariant, Button, ButtonProps, ButtonSize, Spinner, SpinnerLoader, SpinnerSize, SpinnerVariant, Tabs, TabsRootProps, Variant, badgeColors, buttonSizes, buttonStyle, spinnerSizes, spinnerVariants, variants }; +type CheckboxProps = { + indeterminate?: boolean; + children?: React.ReactNode; + className?: string; +} & Omit, 'type'>; +/** Checkbox component that handles label, styling, and indeterminate state */ +declare const Checkbox: ({ indeterminate, children, className, ...inputProps }: CheckboxProps) => react_jsx_runtime.JSX.Element; + +type Props = { + icon?: ReactElement; + title: string; + body?: string; +} & ({ + buttonText: string; + buttonTo: string; +} | { + buttonText: string; + onClick: () => void; +} | { + buttonText?: never; +}); +declare function EmptyMessage(props: Props): react_jsx_runtime.JSX.Element; + +type ListboxItem = { + value: Value; +} & ({ + label: string; + labelString?: never; +} | { + label: ReactNode; + labelString: string; +}); +interface ListboxProps { + selected: Value | null; + onChange: (value: Value) => void; + items: ListboxItem[]; + placeholder?: string; + className?: string; + disabled?: boolean; + hasError?: boolean; + name?: string; + isLoading?: boolean; +} +declare const Listbox: ({ name, selected, items, placeholder, className, onChange, hasError, disabled, isLoading, ...props }: ListboxProps) => react_jsx_runtime.JSX.Element; + +export { AsciiDocBlocks, Badge, BadgeColor, BadgeProps, BadgeVariant, Button, ButtonProps, ButtonSize, Checkbox, CheckboxProps, EmptyMessage, Listbox, ListboxItem, ListboxProps, Spinner, SpinnerLoader, SpinnerSize, SpinnerVariant, Tabs, TabsRootProps, Variant, badgeColors, buttonSizes, buttonStyle, spinnerSizes, spinnerVariants, variants }; diff --git a/components/dist/index.js b/components/dist/index.js index 4a967055..3aa2784e 100644 --- a/components/dist/index.js +++ b/components/dist/index.js @@ -880,42 +880,42 @@ var require_decode = __commonJS({ this.excess = 1; this.consumed = 1; }; - EntityDecoder2.prototype.write = function(str, offset) { + EntityDecoder2.prototype.write = function(str, offset2) { switch (this.state) { case EntityDecoderState.EntityStart: { - if (str.charCodeAt(offset) === CharCodes.NUM) { + if (str.charCodeAt(offset2) === CharCodes.NUM) { this.state = EntityDecoderState.NumericStart; this.consumed += 1; - return this.stateNumericStart(str, offset + 1); + return this.stateNumericStart(str, offset2 + 1); } this.state = EntityDecoderState.NamedEntity; - return this.stateNamedEntity(str, offset); + return this.stateNamedEntity(str, offset2); } case EntityDecoderState.NumericStart: { - return this.stateNumericStart(str, offset); + return this.stateNumericStart(str, offset2); } case EntityDecoderState.NumericDecimal: { - return this.stateNumericDecimal(str, offset); + return this.stateNumericDecimal(str, offset2); } case EntityDecoderState.NumericHex: { - return this.stateNumericHex(str, offset); + return this.stateNumericHex(str, offset2); } case EntityDecoderState.NamedEntity: { - return this.stateNamedEntity(str, offset); + return this.stateNamedEntity(str, offset2); } } }; - EntityDecoder2.prototype.stateNumericStart = function(str, offset) { - if (offset >= str.length) { + EntityDecoder2.prototype.stateNumericStart = function(str, offset2) { + if (offset2 >= str.length) { return -1; } - if ((str.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) { + if ((str.charCodeAt(offset2) | TO_LOWER_BIT) === CharCodes.LOWER_X) { this.state = EntityDecoderState.NumericHex; this.consumed += 1; - return this.stateNumericHex(str, offset + 1); + return this.stateNumericHex(str, offset2 + 1); } this.state = EntityDecoderState.NumericDecimal; - return this.stateNumericDecimal(str, offset); + return this.stateNumericDecimal(str, offset2); }; EntityDecoder2.prototype.addToNumericResult = function(str, start, end, base) { if (start !== end) { @@ -924,32 +924,32 @@ var require_decode = __commonJS({ this.consumed += digitCount; } }; - EntityDecoder2.prototype.stateNumericHex = function(str, offset) { - var startIdx = offset; - while (offset < str.length) { - var char = str.charCodeAt(offset); + EntityDecoder2.prototype.stateNumericHex = function(str, offset2) { + var startIdx = offset2; + while (offset2 < str.length) { + var char = str.charCodeAt(offset2); if (isNumber(char) || isHexadecimalCharacter(char)) { - offset += 1; + offset2 += 1; } else { - this.addToNumericResult(str, startIdx, offset, 16); + this.addToNumericResult(str, startIdx, offset2, 16); return this.emitNumericEntity(char, 3); } } - this.addToNumericResult(str, startIdx, offset, 16); + this.addToNumericResult(str, startIdx, offset2, 16); return -1; }; - EntityDecoder2.prototype.stateNumericDecimal = function(str, offset) { - var startIdx = offset; - while (offset < str.length) { - var char = str.charCodeAt(offset); + EntityDecoder2.prototype.stateNumericDecimal = function(str, offset2) { + var startIdx = offset2; + while (offset2 < str.length) { + var char = str.charCodeAt(offset2); if (isNumber(char)) { - offset += 1; + offset2 += 1; } else { - this.addToNumericResult(str, startIdx, offset, 10); + this.addToNumericResult(str, startIdx, offset2, 10); return this.emitNumericEntity(char, 2); } } - this.addToNumericResult(str, startIdx, offset, 10); + this.addToNumericResult(str, startIdx, offset2, 10); return -1; }; EntityDecoder2.prototype.emitNumericEntity = function(lastCp, expectedLength) { @@ -972,12 +972,12 @@ var require_decode = __commonJS({ } return this.consumed; }; - EntityDecoder2.prototype.stateNamedEntity = function(str, offset) { + EntityDecoder2.prototype.stateNamedEntity = function(str, offset2) { var decodeTree = this.decodeTree; var current = decodeTree[this.treeIndex]; var valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14; - for (; offset < str.length; offset++, this.excess++) { - var char = str.charCodeAt(offset); + for (; offset2 < str.length; offset2++, this.excess++) { + var char = str.charCodeAt(offset2); this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char); if (this.treeIndex < 0) { return this.result === 0 || // If we are parsing an attribute @@ -1048,21 +1048,21 @@ var require_decode = __commonJS({ }); return function decodeWithTrie(str, decodeMode) { var lastIndex = 0; - var offset = 0; - while ((offset = str.indexOf("&", offset)) >= 0) { - ret += str.slice(lastIndex, offset); + var offset2 = 0; + while ((offset2 = str.indexOf("&", offset2)) >= 0) { + ret += str.slice(lastIndex, offset2); decoder.startEntity(decodeMode); var len = decoder.write( str, // Skip the "&" - offset + 1 + offset2 + 1 ); if (len < 0) { - lastIndex = offset + decoder.end(); + lastIndex = offset2 + decoder.end(); break; } - lastIndex = offset + len; - offset = len === 0 ? lastIndex + 1 : lastIndex; + lastIndex = offset2 + len; + offset2 = len === 0 ? lastIndex + 1 : lastIndex; } var result = ret + str.slice(lastIndex); ret = ""; @@ -1384,10 +1384,10 @@ var require_Tokenizer = __commonJS({ Tokenizer2.prototype.isTagStartChar = function(c) { return this.xmlMode ? !isEndOfTagSection(c) : isASCIIAlpha(c); }; - Tokenizer2.prototype.startSpecial = function(sequence, offset) { + Tokenizer2.prototype.startSpecial = function(sequence, offset2) { this.isSpecial = true; this.currentSequence = sequence; - this.sequenceIndex = offset; + this.sequenceIndex = offset2; this.state = State.SpecialStartSequence; }; Tokenizer2.prototype.stateBeforeTagName = function(c) { @@ -2216,17 +2216,17 @@ var require_Parser = __commonJS({ } this.startIndex = endIndex + 1; }; - Parser2.prototype.oncomment = function(start, endIndex, offset) { + Parser2.prototype.oncomment = function(start, endIndex, offset2) { var _a, _b, _c, _d; this.endIndex = endIndex; - (_b = (_a = this.cbs).oncomment) === null || _b === void 0 ? void 0 : _b.call(_a, this.getSlice(start, endIndex - offset)); + (_b = (_a = this.cbs).oncomment) === null || _b === void 0 ? void 0 : _b.call(_a, this.getSlice(start, endIndex - offset2)); (_d = (_c = this.cbs).oncommentend) === null || _d === void 0 ? void 0 : _d.call(_c); this.startIndex = endIndex + 1; }; - Parser2.prototype.oncdata = function(start, endIndex, offset) { + Parser2.prototype.oncdata = function(start, endIndex, offset2) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; this.endIndex = endIndex; - var value = this.getSlice(start, endIndex - offset); + var value = this.getSlice(start, endIndex - offset2); if (this.options.xmlMode || this.options.recognizeCDATA) { (_b = (_a = this.cbs).oncdatastart) === null || _b === void 0 ? void 0 : _b.call(_a); (_d = (_c = this.cbs).ontext) === null || _d === void 0 ? void 0 : _d.call(_c, value); @@ -5981,2188 +5981,6 @@ var require_lib9 = __commonJS({ } }); -// node_modules/react/cjs/react.production.min.js -var require_react_production_min = __commonJS({ - "node_modules/react/cjs/react.production.min.js"(exports) { - "use strict"; - var l = Symbol.for("react.element"); - var n = Symbol.for("react.portal"); - var p = Symbol.for("react.fragment"); - var q = Symbol.for("react.strict_mode"); - var r = Symbol.for("react.profiler"); - var t = Symbol.for("react.provider"); - var u = Symbol.for("react.context"); - var v = Symbol.for("react.forward_ref"); - var w = Symbol.for("react.suspense"); - var x = Symbol.for("react.memo"); - var y = Symbol.for("react.lazy"); - var z = Symbol.iterator; - function A(a) { - if (null === a || "object" !== typeof a) - return null; - a = z && a[z] || a["@@iterator"]; - return "function" === typeof a ? a : null; - } - var B = { isMounted: function() { - return false; - }, enqueueForceUpdate: function() { - }, enqueueReplaceState: function() { - }, enqueueSetState: function() { - } }; - var C = Object.assign; - var D = {}; - function E(a, b, e) { - this.props = a; - this.context = b; - this.refs = D; - this.updater = e || B; - } - E.prototype.isReactComponent = {}; - E.prototype.setState = function(a, b) { - if ("object" !== typeof a && "function" !== typeof a && null != a) - throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - this.updater.enqueueSetState(this, a, b, "setState"); - }; - E.prototype.forceUpdate = function(a) { - this.updater.enqueueForceUpdate(this, a, "forceUpdate"); - }; - function F() { - } - F.prototype = E.prototype; - function G(a, b, e) { - this.props = a; - this.context = b; - this.refs = D; - this.updater = e || B; - } - var H = G.prototype = new F(); - H.constructor = G; - C(H, E.prototype); - H.isPureReactComponent = true; - var I = Array.isArray; - var J = Object.prototype.hasOwnProperty; - var K = { current: null }; - var L = { key: true, ref: true, __self: true, __source: true }; - function M(a, b, e) { - var d, c = {}, k = null, h = null; - if (null != b) - for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) - J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); - var g = arguments.length - 2; - if (1 === g) - c.children = e; - else if (1 < g) { - for (var f = Array(g), m = 0; m < g; m++) - f[m] = arguments[m + 2]; - c.children = f; - } - if (a && a.defaultProps) - for (d in g = a.defaultProps, g) - void 0 === c[d] && (c[d] = g[d]); - return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current }; - } - function N(a, b) { - return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner }; - } - function O(a) { - return "object" === typeof a && null !== a && a.$$typeof === l; - } - function escape(a) { - var b = { "=": "=0", ":": "=2" }; - return "$" + a.replace(/[=:]/g, function(a2) { - return b[a2]; - }); - } - var P = /\/+/g; - function Q(a, b) { - return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); - } - function R(a, b, e, d, c) { - var k = typeof a; - if ("undefined" === k || "boolean" === k) - a = null; - var h = false; - if (null === a) - h = true; - else - switch (k) { - case "string": - case "number": - h = true; - break; - case "object": - switch (a.$$typeof) { - case l: - case n: - h = true; - } - } - if (h) - return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) { - return a2; - })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1; - h = 0; - d = "" === d ? "." : d + ":"; - if (I(a)) - for (var g = 0; g < a.length; g++) { - k = a[g]; - var f = d + Q(k, g); - h += R(k, b, e, f, c); - } - else if (f = A(a), "function" === typeof f) - for (a = f.call(a), g = 0; !(k = a.next()).done; ) - k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c); - else if ("object" === k) - throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); - return h; - } - function S(a, b, e) { - if (null == a) - return a; - var d = [], c = 0; - R(a, d, "", "", function(a2) { - return b.call(e, a2, c++); - }); - return d; - } - function T(a) { - if (-1 === a._status) { - var b = a._result; - b = b(); - b.then(function(b2) { - if (0 === a._status || -1 === a._status) - a._status = 1, a._result = b2; - }, function(b2) { - if (0 === a._status || -1 === a._status) - a._status = 2, a._result = b2; - }); - -1 === a._status && (a._status = 0, a._result = b); - } - if (1 === a._status) - return a._result.default; - throw a._result; - } - var U = { current: null }; - var V = { transition: null }; - var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K }; - exports.Children = { map: S, forEach: function(a, b, e) { - S(a, function() { - b.apply(this, arguments); - }, e); - }, count: function(a) { - var b = 0; - S(a, function() { - b++; - }); - return b; - }, toArray: function(a) { - return S(a, function(a2) { - return a2; - }) || []; - }, only: function(a) { - if (!O(a)) - throw Error("React.Children.only expected to receive a single React element child."); - return a; - } }; - exports.Component = E; - exports.Fragment = p; - exports.Profiler = r; - exports.PureComponent = G; - exports.StrictMode = q; - exports.Suspense = w; - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; - exports.cloneElement = function(a, b, e) { - if (null === a || void 0 === a) - throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); - var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner; - if (null != b) { - void 0 !== b.ref && (k = b.ref, h = K.current); - void 0 !== b.key && (c = "" + b.key); - if (a.type && a.type.defaultProps) - var g = a.type.defaultProps; - for (f in b) - J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); - } - var f = arguments.length - 2; - if (1 === f) - d.children = e; - else if (1 < f) { - g = Array(f); - for (var m = 0; m < f; m++) - g[m] = arguments[m + 2]; - d.children = g; - } - return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h }; - }; - exports.createContext = function(a) { - a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }; - a.Provider = { $$typeof: t, _context: a }; - return a.Consumer = a; - }; - exports.createElement = M; - exports.createFactory = function(a) { - var b = M.bind(null, a); - b.type = a; - return b; - }; - exports.createRef = function() { - return { current: null }; - }; - exports.forwardRef = function(a) { - return { $$typeof: v, render: a }; - }; - exports.isValidElement = O; - exports.lazy = function(a) { - return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T }; - }; - exports.memo = function(a, b) { - return { $$typeof: x, type: a, compare: void 0 === b ? null : b }; - }; - exports.startTransition = function(a) { - var b = V.transition; - V.transition = {}; - try { - a(); - } finally { - V.transition = b; - } - }; - exports.unstable_act = function() { - throw Error("act(...) is not supported in production builds of React."); - }; - exports.useCallback = function(a, b) { - return U.current.useCallback(a, b); - }; - exports.useContext = function(a) { - return U.current.useContext(a); - }; - exports.useDebugValue = function() { - }; - exports.useDeferredValue = function(a) { - return U.current.useDeferredValue(a); - }; - exports.useEffect = function(a, b) { - return U.current.useEffect(a, b); - }; - exports.useId = function() { - return U.current.useId(); - }; - exports.useImperativeHandle = function(a, b, e) { - return U.current.useImperativeHandle(a, b, e); - }; - exports.useInsertionEffect = function(a, b) { - return U.current.useInsertionEffect(a, b); - }; - exports.useLayoutEffect = function(a, b) { - return U.current.useLayoutEffect(a, b); - }; - exports.useMemo = function(a, b) { - return U.current.useMemo(a, b); - }; - exports.useReducer = function(a, b, e) { - return U.current.useReducer(a, b, e); - }; - exports.useRef = function(a) { - return U.current.useRef(a); - }; - exports.useState = function(a) { - return U.current.useState(a); - }; - exports.useSyncExternalStore = function(a, b, e) { - return U.current.useSyncExternalStore(a, b, e); - }; - exports.useTransition = function() { - return U.current.useTransition(); - }; - exports.version = "18.2.0"; - } -}); - -// node_modules/react/cjs/react.development.js -var require_react_development = __commonJS({ - "node_modules/react/cjs/react.development.js"(exports, module2) { - "use strict"; - if (process.env.NODE_ENV !== "production") { - (function() { - "use strict"; - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); - } - var ReactVersion = "18.2.0"; - 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_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 MAYBE_ITERATOR_SYMBOL = Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable !== "object") { - return null; - } - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - if (typeof maybeIterator === "function") { - return maybeIterator; - } - return null; - } - var ReactCurrentDispatcher = { - /** - * @internal - * @type {ReactComponent} - */ - current: null - }; - var ReactCurrentBatchConfig = { - transition: null - }; - var ReactCurrentActQueue = { - current: null, - // Used to reproduce behavior of `batchedUpdates` in legacy mode. - isBatchingLegacy: false, - didScheduleLegacyUpdate: false - }; - var ReactCurrentOwner = { - /** - * @internal - * @type {ReactComponent} - */ - current: null - }; - var ReactDebugCurrentFrame = {}; - var currentExtraStackFrame = null; - function setExtraStackFrame(stack) { - { - currentExtraStackFrame = stack; - } - } - { - ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { - { - currentExtraStackFrame = stack; - } - }; - ReactDebugCurrentFrame.getCurrentStack = null; - ReactDebugCurrentFrame.getStackAddendum = function() { - var stack = ""; - if (currentExtraStackFrame) { - stack += currentExtraStackFrame; - } - var impl = ReactDebugCurrentFrame.getCurrentStack; - if (impl) { - stack += impl() || ""; - } - return stack; - }; - } - var enableScopeAPI = false; - var enableCacheElement = false; - var enableTransitionTracing = false; - var enableLegacyHidden = false; - var enableDebugTracing = false; - var ReactSharedInternals = { - ReactCurrentDispatcher, - ReactCurrentBatchConfig, - ReactCurrentOwner - }; - { - ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; - ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; - } - function warn(format) { - { - { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - printWarning("warn", format, args); - } - } - } - function error(format) { - { - { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - printWarning("error", format, args); - } - } - } - function printWarning(level, format, args) { - { - var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame2.getStackAddendum(); - if (stack !== "") { - format += "%s"; - args = args.concat([stack]); - } - var argsWithFormat = args.map(function(item) { - return String(item); - }); - argsWithFormat.unshift("Warning: " + format); - Function.prototype.apply.call(console[level], console, argsWithFormat); - } - } - var didWarnStateUpdateForUnmountedComponent = {}; - function warnNoop(publicInstance, callerName) { - { - var _constructor = publicInstance.constructor; - var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; - var warningKey = componentName + "." + callerName; - if (didWarnStateUpdateForUnmountedComponent[warningKey]) { - return; - } - error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName); - didWarnStateUpdateForUnmountedComponent[warningKey] = true; - } - } - var ReactNoopUpdateQueue = { - /** - * Checks whether or not this composite component is mounted. - * @param {ReactClass} publicInstance The instance we want to test. - * @return {boolean} True if mounted, false otherwise. - * @protected - * @final - */ - isMounted: function(publicInstance) { - return false; - }, - /** - * Forces an update. This should only be invoked when it is known with - * certainty that we are **not** in a DOM transaction. - * - * You may want to call this when you know that some deeper aspect of the - * component's state has changed but `setState` was not called. - * - * This will not invoke `shouldComponentUpdate`, but it will invoke - * `componentWillUpdate` and `componentDidUpdate`. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {?function} callback Called after component is updated. - * @param {?string} callerName name of the calling function in the public API. - * @internal - */ - enqueueForceUpdate: function(publicInstance, callback, callerName) { - warnNoop(publicInstance, "forceUpdate"); - }, - /** - * Replaces all of the state. Always use this or `setState` to mutate state. - * You should treat `this.state` as immutable. - * - * There is no guarantee that `this.state` will be immediately updated, so - * accessing `this.state` after calling this method may return the old value. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {object} completeState Next state. - * @param {?function} callback Called after component is updated. - * @param {?string} callerName name of the calling function in the public API. - * @internal - */ - enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { - warnNoop(publicInstance, "replaceState"); - }, - /** - * Sets a subset of the state. This only exists because _pendingState is - * internal. This provides a merging strategy that is not available to deep - * properties which is confusing. TODO: Expose pendingState or don't use it - * during the merge. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {object} partialState Next partial state to be merged with state. - * @param {?function} callback Called after component is updated. - * @param {?string} Name of the calling function in the public API. - * @internal - */ - enqueueSetState: function(publicInstance, partialState, callback, callerName) { - warnNoop(publicInstance, "setState"); - } - }; - var assign = Object.assign; - var emptyObject = {}; - { - Object.freeze(emptyObject); - } - function Component(props, context, updater) { - this.props = props; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - } - Component.prototype.isReactComponent = {}; - Component.prototype.setState = function(partialState, callback) { - if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) { - throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - } - this.updater.enqueueSetState(this, partialState, callback, "setState"); - }; - Component.prototype.forceUpdate = function(callback) { - this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); - }; - { - var deprecatedAPIs = { - isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], - replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] - }; - var defineDeprecationWarning = function(methodName, info) { - Object.defineProperty(Component.prototype, methodName, { - get: function() { - warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); - return void 0; - } - }); - }; - for (var fnName in deprecatedAPIs) { - if (deprecatedAPIs.hasOwnProperty(fnName)) { - defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); - } - } - } - function ComponentDummy() { - } - ComponentDummy.prototype = Component.prototype; - function PureComponent(props, context, updater) { - this.props = props; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - } - var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); - pureComponentPrototype.constructor = PureComponent; - assign(pureComponentPrototype, Component.prototype); - pureComponentPrototype.isPureReactComponent = true; - function createRef() { - var refObject = { - current: null - }; - { - Object.seal(refObject); - } - return refObject; - } - var isArrayImpl = Array.isArray; - function isArray(a) { - return isArrayImpl(a); - } - function typeName(value) { - { - var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; - var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; - return type; - } - } - function willCoercionThrow(value) { - { - try { - testStringCoercion(value); - return false; - } catch (e) { - return true; - } - } - } - function testStringCoercion(value) { - return "" + value; - } - function checkKeyStringCoercion(value) { - { - if (willCoercionThrow(value)) { - error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); - return testStringCoercion(value); - } - } - } - function getWrappedName(outerType, innerType, wrapperName) { - var displayName = outerType.displayName; - if (displayName) { - return displayName; - } - var functionName = innerType.displayName || innerType.name || ""; - return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; - } - function getContextName(type) { - return type.displayName || "Context"; - } - function getComponentNameFromType(type) { - if (type == null) { - return null; - } - { - if (typeof type.tag === "number") { - error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); - } - } - if (typeof type === "function") { - return type.displayName || type.name || null; - } - if (typeof type === "string") { - return type; - } - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if (typeof type === "object") { - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - var context = type; - return getContextName(context) + ".Consumer"; - case REACT_PROVIDER_TYPE: - var provider = type; - return getContextName(provider._context) + ".Provider"; - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, "ForwardRef"); - case REACT_MEMO_TYPE: - var outerName = type.displayName || null; - if (outerName !== null) { - return outerName; - } - return getComponentNameFromType(type.type) || "Memo"; - case REACT_LAZY_TYPE: { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return getComponentNameFromType(init(payload)); - } catch (x) { - return null; - } - } - } - } - return null; - } - var hasOwnProperty = Object.prototype.hasOwnProperty; - var RESERVED_PROPS = { - key: true, - ref: true, - __self: true, - __source: true - }; - var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; - { - didWarnAboutStringRefs = {}; - } - function hasValidRef(config) { - { - if (hasOwnProperty.call(config, "ref")) { - var getter = Object.getOwnPropertyDescriptor(config, "ref").get; - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.ref !== void 0; - } - function hasValidKey(config) { - { - if (hasOwnProperty.call(config, "key")) { - var getter = Object.getOwnPropertyDescriptor(config, "key").get; - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.key !== void 0; - } - function defineKeyPropWarningGetter(props, displayName) { - var warnAboutAccessingKey = function() { - { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; - error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); - } - } - }; - warnAboutAccessingKey.isReactWarning = true; - Object.defineProperty(props, "key", { - get: warnAboutAccessingKey, - configurable: true - }); - } - function defineRefPropWarningGetter(props, displayName) { - var warnAboutAccessingRef = function() { - { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; - error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); - } - } - }; - warnAboutAccessingRef.isReactWarning = true; - Object.defineProperty(props, "ref", { - get: warnAboutAccessingRef, - configurable: true - }); - } - function warnIfStringRefCannotBeAutoConverted(config) { - { - if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { - var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); - if (!didWarnAboutStringRefs[componentName]) { - error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); - didWarnAboutStringRefs[componentName] = true; - } - } - } - } - var ReactElement = function(type, key, ref, self, source, owner, props) { - var element = { - // This tag allows us to uniquely identify this as a React Element - $$typeof: REACT_ELEMENT_TYPE, - // Built-in properties that belong on the element - type, - key, - ref, - props, - // Record the component responsible for creating this element. - _owner: owner - }; - { - element._store = {}; - Object.defineProperty(element._store, "validated", { - configurable: false, - enumerable: false, - writable: true, - value: false - }); - Object.defineProperty(element, "_self", { - configurable: false, - enumerable: false, - writable: false, - value: self - }); - Object.defineProperty(element, "_source", { - configurable: false, - enumerable: false, - writable: false, - value: source - }); - if (Object.freeze) { - Object.freeze(element.props); - Object.freeze(element); - } - } - return element; - }; - function createElement(type, config, children) { - var propName; - var props = {}; - var key = null; - var ref = null; - var self = null; - var source = null; - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - { - warnIfStringRefCannotBeAutoConverted(config); - } - } - if (hasValidKey(config)) { - { - checkKeyStringCoercion(config.key); - } - key = "" + config.key; - } - self = config.__self === void 0 ? null : config.__self; - source = config.__source === void 0 ? null : config.__source; - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - props[propName] = config[propName]; - } - } - } - var childrenLength = arguments.length - 2; - if (childrenLength === 1) { - props.children = children; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - { - if (Object.freeze) { - Object.freeze(childArray); - } - } - props.children = childArray; - } - if (type && type.defaultProps) { - var defaultProps = type.defaultProps; - for (propName in defaultProps) { - if (props[propName] === void 0) { - props[propName] = defaultProps[propName]; - } - } - } - { - if (key || ref) { - var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type; - if (key) { - defineKeyPropWarningGetter(props, displayName); - } - if (ref) { - defineRefPropWarningGetter(props, displayName); - } - } - } - return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); - } - function cloneAndReplaceKey(oldElement, newKey) { - var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); - return newElement; - } - function cloneElement(element, config, children) { - if (element === null || element === void 0) { - throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); - } - var propName; - var props = assign({}, element.props); - var key = element.key; - var ref = element.ref; - var self = element._self; - var source = element._source; - var owner = element._owner; - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - owner = ReactCurrentOwner.current; - } - if (hasValidKey(config)) { - { - checkKeyStringCoercion(config.key); - } - key = "" + config.key; - } - var defaultProps; - if (element.type && element.type.defaultProps) { - defaultProps = element.type.defaultProps; - } - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - if (config[propName] === void 0 && defaultProps !== void 0) { - props[propName] = defaultProps[propName]; - } else { - props[propName] = config[propName]; - } - } - } - } - var childrenLength = arguments.length - 2; - if (childrenLength === 1) { - props.children = children; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - props.children = childArray; - } - return ReactElement(element.type, key, ref, self, source, owner, props); - } - function isValidElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - var SEPARATOR = "."; - var SUBSEPARATOR = ":"; - function escape(key) { - var escapeRegex = /[=:]/g; - var escaperLookup = { - "=": "=0", - ":": "=2" - }; - var escapedString = key.replace(escapeRegex, function(match) { - return escaperLookup[match]; - }); - return "$" + escapedString; - } - var didWarnAboutMaps = false; - var userProvidedKeyEscapeRegex = /\/+/g; - function escapeUserProvidedKey(text) { - return text.replace(userProvidedKeyEscapeRegex, "$&/"); - } - function getElementKey(element, index) { - if (typeof element === "object" && element !== null && element.key != null) { - { - checkKeyStringCoercion(element.key); - } - return escape("" + element.key); - } - return index.toString(36); - } - function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { - var type = typeof children; - if (type === "undefined" || type === "boolean") { - children = null; - } - var invokeCallback = false; - if (children === null) { - invokeCallback = true; - } else { - switch (type) { - case "string": - case "number": - invokeCallback = true; - break; - case "object": - switch (children.$$typeof) { - case REACT_ELEMENT_TYPE: - case REACT_PORTAL_TYPE: - invokeCallback = true; - } - } - } - if (invokeCallback) { - var _child = children; - var mappedChild = callback(_child); - var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; - if (isArray(mappedChild)) { - var escapedChildKey = ""; - if (childKey != null) { - escapedChildKey = escapeUserProvidedKey(childKey) + "/"; - } - mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) { - return c; - }); - } else if (mappedChild != null) { - if (isValidElement(mappedChild)) { - { - if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { - checkKeyStringCoercion(mappedChild.key); - } - } - mappedChild = cloneAndReplaceKey( - mappedChild, - // Keep both the (mapped) and old keys if they differ, just as - // traverseAllChildren used to do for objects as children - escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key - (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? ( - // $FlowFixMe Flow incorrectly thinks existing element's key can be a number - // eslint-disable-next-line react-internal/safe-string-coercion - escapeUserProvidedKey("" + mappedChild.key) + "/" - ) : "") + childKey - ); - } - array.push(mappedChild); - } - return 1; - } - var child; - var nextName; - var subtreeCount = 0; - var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (isArray(children)) { - for (var i = 0; i < children.length; i++) { - child = children[i]; - nextName = nextNamePrefix + getElementKey(child, i); - subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); - } - } else { - var iteratorFn = getIteratorFn(children); - if (typeof iteratorFn === "function") { - var iterableChildren = children; - { - if (iteratorFn === iterableChildren.entries) { - if (!didWarnAboutMaps) { - warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); - } - didWarnAboutMaps = true; - } - } - var iterator = iteratorFn.call(iterableChildren); - var step; - var ii = 0; - while (!(step = iterator.next()).done) { - child = step.value; - nextName = nextNamePrefix + getElementKey(child, ii++); - subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); - } - } else if (type === "object") { - var childrenString = String(children); - throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); - } - } - return subtreeCount; - } - function mapChildren(children, func, context) { - if (children == null) { - return children; - } - var result = []; - var count = 0; - mapIntoArray(children, result, "", "", function(child) { - return func.call(context, child, count++); - }); - return result; - } - function countChildren(children) { - var n = 0; - mapChildren(children, function() { - n++; - }); - return n; - } - function forEachChildren(children, forEachFunc, forEachContext) { - mapChildren(children, function() { - forEachFunc.apply(this, arguments); - }, forEachContext); - } - function toArray(children) { - return mapChildren(children, function(child) { - return child; - }) || []; - } - function onlyChild(children) { - if (!isValidElement(children)) { - throw new Error("React.Children.only expected to receive a single React element child."); - } - return children; - } - function createContext(defaultValue) { - var context = { - $$typeof: REACT_CONTEXT_TYPE, - // As a workaround to support multiple concurrent renderers, we categorize - // some renderers as primary and others as secondary. We only expect - // there to be two concurrent renderers at most: React Native (primary) and - // Fabric (secondary); React DOM (primary) and React ART (secondary). - // Secondary renderers store their context values on separate fields. - _currentValue: defaultValue, - _currentValue2: defaultValue, - // Used to track how many concurrent renderers this context currently - // supports within in a single renderer. Such as parallel server rendering. - _threadCount: 0, - // These are circular - Provider: null, - Consumer: null, - // Add these to use same hidden class in VM as ServerContext - _defaultValue: null, - _globalName: null - }; - context.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: context - }; - var hasWarnedAboutUsingNestedContextConsumers = false; - var hasWarnedAboutUsingConsumerProvider = false; - var hasWarnedAboutDisplayNameOnConsumer = false; - { - var Consumer = { - $$typeof: REACT_CONTEXT_TYPE, - _context: context - }; - Object.defineProperties(Consumer, { - Provider: { - get: function() { - if (!hasWarnedAboutUsingConsumerProvider) { - hasWarnedAboutUsingConsumerProvider = true; - error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); - } - return context.Provider; - }, - set: function(_Provider) { - context.Provider = _Provider; - } - }, - _currentValue: { - get: function() { - return context._currentValue; - }, - set: function(_currentValue) { - context._currentValue = _currentValue; - } - }, - _currentValue2: { - get: function() { - return context._currentValue2; - }, - set: function(_currentValue2) { - context._currentValue2 = _currentValue2; - } - }, - _threadCount: { - get: function() { - return context._threadCount; - }, - set: function(_threadCount) { - context._threadCount = _threadCount; - } - }, - Consumer: { - get: function() { - if (!hasWarnedAboutUsingNestedContextConsumers) { - hasWarnedAboutUsingNestedContextConsumers = true; - error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); - } - return context.Consumer; - } - }, - displayName: { - get: function() { - return context.displayName; - }, - set: function(displayName) { - if (!hasWarnedAboutDisplayNameOnConsumer) { - warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); - hasWarnedAboutDisplayNameOnConsumer = true; - } - } - } - }); - context.Consumer = Consumer; - } - { - context._currentRenderer = null; - context._currentRenderer2 = null; - } - return context; - } - var Uninitialized = -1; - var Pending = 0; - var Resolved = 1; - var Rejected = 2; - function lazyInitializer(payload) { - if (payload._status === Uninitialized) { - var ctor = payload._result; - var thenable = ctor(); - thenable.then(function(moduleObject2) { - if (payload._status === Pending || payload._status === Uninitialized) { - var resolved = payload; - resolved._status = Resolved; - resolved._result = moduleObject2; - } - }, function(error2) { - if (payload._status === Pending || payload._status === Uninitialized) { - var rejected = payload; - rejected._status = Rejected; - rejected._result = error2; - } - }); - if (payload._status === Uninitialized) { - var pending = payload; - pending._status = Pending; - pending._result = thenable; - } - } - if (payload._status === Resolved) { - var moduleObject = payload._result; - { - if (moduleObject === void 0) { - error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject); - } - } - { - if (!("default" in moduleObject)) { - error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); - } - } - return moduleObject.default; - } else { - throw payload._result; - } - } - function lazy(ctor) { - var payload = { - // We use these fields to store the result. - _status: Uninitialized, - _result: ctor - }; - var lazyType = { - $$typeof: REACT_LAZY_TYPE, - _payload: payload, - _init: lazyInitializer - }; - { - var defaultProps; - var propTypes; - Object.defineProperties(lazyType, { - defaultProps: { - configurable: true, - get: function() { - return defaultProps; - }, - set: function(newDefaultProps) { - error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); - defaultProps = newDefaultProps; - Object.defineProperty(lazyType, "defaultProps", { - enumerable: true - }); - } - }, - propTypes: { - configurable: true, - get: function() { - return propTypes; - }, - set: function(newPropTypes) { - error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); - propTypes = newPropTypes; - Object.defineProperty(lazyType, "propTypes", { - enumerable: true - }); - } - } - }); - } - return lazyType; - } - function forwardRef2(render) { - { - if (render != null && render.$$typeof === REACT_MEMO_TYPE) { - error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); - } else if (typeof render !== "function") { - error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); - } else { - if (render.length !== 0 && render.length !== 2) { - error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); - } - } - if (render != null) { - if (render.defaultProps != null || render.propTypes != null) { - error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); - } - } - } - var elementType = { - $$typeof: REACT_FORWARD_REF_TYPE, - render - }; - { - var ownName; - Object.defineProperty(elementType, "displayName", { - enumerable: false, - configurable: true, - get: function() { - return ownName; - }, - set: function(name) { - ownName = name; - if (!render.name && !render.displayName) { - render.displayName = name; - } - } - }); - } - return elementType; - } - var REACT_MODULE_REFERENCE; - { - REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); - } - function isValidElementType(type) { - if (typeof type === "string" || typeof type === "function") { - return true; - } - 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 !== void 0) { - return true; - } - } - return false; - } - function memo(type, compare) { - { - if (!isValidElementType(type)) { - error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type); - } - } - var elementType = { - $$typeof: REACT_MEMO_TYPE, - type, - compare: compare === void 0 ? null : compare - }; - { - var ownName; - Object.defineProperty(elementType, "displayName", { - enumerable: false, - configurable: true, - get: function() { - return ownName; - }, - set: function(name) { - ownName = name; - if (!type.name && !type.displayName) { - type.displayName = name; - } - } - }); - } - return elementType; - } - function resolveDispatcher() { - var dispatcher = ReactCurrentDispatcher.current; - { - if (dispatcher === null) { - error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); - } - } - return dispatcher; - } - function useContext(Context) { - var dispatcher = resolveDispatcher(); - { - if (Context._context !== void 0) { - var realContext = Context._context; - if (realContext.Consumer === Context) { - error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); - } else if (realContext.Provider === Context) { - error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); - } - } - } - return dispatcher.useContext(Context); - } - function useState2(initialState) { - var dispatcher = resolveDispatcher(); - return dispatcher.useState(initialState); - } - function useReducer(reducer, initialArg, init) { - var dispatcher = resolveDispatcher(); - return dispatcher.useReducer(reducer, initialArg, init); - } - function useRef2(initialValue) { - var dispatcher = resolveDispatcher(); - return dispatcher.useRef(initialValue); - } - function useEffect2(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useEffect(create, deps); - } - function useInsertionEffect(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useInsertionEffect(create, deps); - } - function useLayoutEffect(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useLayoutEffect(create, deps); - } - function useCallback(callback, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useCallback(callback, deps); - } - function useMemo(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useMemo(create, deps); - } - function useImperativeHandle(ref, create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useImperativeHandle(ref, create, deps); - } - function useDebugValue(value, formatterFn) { - { - var dispatcher = resolveDispatcher(); - return dispatcher.useDebugValue(value, formatterFn); - } - } - function useTransition() { - var dispatcher = resolveDispatcher(); - return dispatcher.useTransition(); - } - function useDeferredValue(value) { - var dispatcher = resolveDispatcher(); - return dispatcher.useDeferredValue(value); - } - function useId() { - var dispatcher = resolveDispatcher(); - return dispatcher.useId(); - } - function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var dispatcher = resolveDispatcher(); - return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); - } - var disabledDepth = 0; - var prevLog; - var prevInfo; - var prevWarn; - var prevError; - var prevGroup; - var prevGroupCollapsed; - var prevGroupEnd; - function disabledLog() { - } - disabledLog.__reactDisabledLog = true; - function disableLogs() { - { - if (disabledDepth === 0) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: true, - enumerable: true, - value: disabledLog, - writable: true - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - } - function reenableLogs() { - { - disabledDepth--; - if (disabledDepth === 0) { - var props = { - configurable: true, - enumerable: true, - writable: true - }; - Object.defineProperties(console, { - log: assign({}, props, { - value: prevLog - }), - info: assign({}, props, { - value: prevInfo - }), - warn: assign({}, props, { - value: prevWarn - }), - error: assign({}, props, { - value: prevError - }), - group: assign({}, props, { - value: prevGroup - }), - groupCollapsed: assign({}, props, { - value: prevGroupCollapsed - }), - groupEnd: assign({}, props, { - value: prevGroupEnd - }) - }); - } - if (disabledDepth < 0) { - error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } - } - } - var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; - var prefix; - function describeBuiltInComponentFrame(name, source, ownerFn) { - { - if (prefix === void 0) { - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = match && match[1] || ""; - } - } - return "\n" + prefix + name; - } - } - var reentry = false; - var componentFrameCache; - { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) { - return ""; - } - { - var frame = componentFrameCache.get(fn); - if (frame !== void 0) { - return frame; - } - } - var control; - reentry = true; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher; - { - previousDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = null; - disableLogs(); - } - try { - if (construct) { - var Fake = function() { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function() { - throw Error(); - } - }); - if (typeof Reflect === "object" && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x) { - control = x; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x) { - control = x; - } - fn(); - } - } catch (sample) { - if (sample && control && typeof sample.stack === "string") { - var sampleLines = sample.stack.split("\n"); - var controlLines = control.stack.split("\n"); - var s = sampleLines.length - 1; - var c = controlLines.length - 1; - while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { - c--; - } - for (; s >= 1 && c >= 0; s--, c--) { - if (sampleLines[s] !== controlLines[c]) { - if (s !== 1 || c !== 1) { - do { - s--; - c--; - if (c < 0 || sampleLines[s] !== controlLines[c]) { - var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); - if (fn.displayName && _frame.includes("")) { - _frame = _frame.replace("", fn.displayName); - } - { - if (typeof fn === "function") { - componentFrameCache.set(fn, _frame); - } - } - return _frame; - } - } while (s >= 1 && c >= 0); - } - break; - } - } - } - } finally { - reentry = false; - { - ReactCurrentDispatcher$1.current = previousDispatcher; - reenableLogs(); - } - Error.prepareStackTrace = previousPrepareStackTrace; - } - var name = fn ? fn.displayName || fn.name : ""; - var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; - { - if (typeof fn === "function") { - componentFrameCache.set(fn, syntheticFrame); - } - } - return syntheticFrame; - } - function describeFunctionComponentFrame(fn, source, ownerFn) { - { - return describeNativeComponentFrame(fn, false); - } - } - function shouldConstruct(Component2) { - var prototype = Component2.prototype; - return !!(prototype && prototype.isReactComponent); - } - function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { - if (type == null) { - return ""; - } - if (typeof type === "function") { - { - return describeNativeComponentFrame(type, shouldConstruct(type)); - } - } - if (typeof type === "string") { - return describeBuiltInComponentFrame(type); - } - switch (type) { - case REACT_SUSPENSE_TYPE: - return describeBuiltInComponentFrame("Suspense"); - case REACT_SUSPENSE_LIST_TYPE: - return describeBuiltInComponentFrame("SuspenseList"); - } - if (typeof type === "object") { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return describeFunctionComponentFrame(type.render); - case REACT_MEMO_TYPE: - return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); - case REACT_LAZY_TYPE: { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); - } catch (x) { - } - } - } - } - return ""; - } - var loggedTypeFailures = {}; - var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - function setCurrentlyValidatingElement(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); - } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); - } - } - } - function checkPropTypes(typeSpecs, values, location, componentName, element) { - { - var has = Function.call.bind(hasOwnProperty); - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - err.name = "Invariant Violation"; - throw err; - } - error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (ex) { - error$1 = ex; - } - if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); - error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); - setCurrentlyValidatingElement(null); - } - if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { - loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); - error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); - } - } - } - } - } - function setCurrentlyValidatingElement$1(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - setExtraStackFrame(stack); - } else { - setExtraStackFrame(null); - } - } - } - var propTypesMisspellWarningShown; - { - propTypesMisspellWarningShown = false; - } - function getDeclarationErrorAddendum() { - if (ReactCurrentOwner.current) { - var name = getComponentNameFromType(ReactCurrentOwner.current.type); - if (name) { - return "\n\nCheck the render method of `" + name + "`."; - } - } - return ""; - } - function getSourceInfoErrorAddendum(source) { - if (source !== void 0) { - var fileName = source.fileName.replace(/^.*[\\\/]/, ""); - var lineNumber = source.lineNumber; - return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; - } - return ""; - } - function getSourceInfoErrorAddendumForProps(elementProps) { - if (elementProps !== null && elementProps !== void 0) { - return getSourceInfoErrorAddendum(elementProps.__source); - } - return ""; - } - var ownerHasKeyUseWarning = {}; - function getCurrentComponentErrorInfo(parentType) { - var info = getDeclarationErrorAddendum(); - if (!info) { - var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; - if (parentName) { - info = "\n\nCheck the top-level render call using <" + parentName + ">."; - } - } - return info; - } - function validateExplicitKey(element, parentType) { - if (!element._store || element._store.validated || element.key != null) { - return; - } - element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { - return; - } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - var childOwner = ""; - if (element && element._owner && element._owner !== ReactCurrentOwner.current) { - childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; - } - { - setCurrentlyValidatingElement$1(element); - error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); - setCurrentlyValidatingElement$1(null); - } - } - function validateChildKeys(node, parentType) { - if (typeof node !== "object") { - return; - } - if (isArray(node)) { - for (var i = 0; i < node.length; i++) { - var child = node[i]; - if (isValidElement(child)) { - validateExplicitKey(child, parentType); - } - } - } else if (isValidElement(node)) { - if (node._store) { - node._store.validated = true; - } - } else if (node) { - var iteratorFn = getIteratorFn(node); - if (typeof iteratorFn === "function") { - if (iteratorFn !== node.entries) { - var iterator = iteratorFn.call(node); - var step; - while (!(step = iterator.next()).done) { - if (isValidElement(step.value)) { - validateExplicitKey(step.value, parentType); - } - } - } - } - } - } - function validatePropTypes(element) { - { - var type = element.type; - if (type === null || type === void 0 || typeof type === "string") { - return; - } - var propTypes; - if (typeof type === "function") { - propTypes = type.propTypes; - } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. - // Inner props are checked in the reconciler. - type.$$typeof === REACT_MEMO_TYPE)) { - propTypes = type.propTypes; - } else { - return; - } - if (propTypes) { - var name = getComponentNameFromType(type); - checkPropTypes(propTypes, element.props, "prop", name, element); - } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; - var _name = getComponentNameFromType(type); - error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); - } - if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) { - error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); - } - } - } - function validateFragmentProps(fragment) { - { - var keys = Object.keys(fragment.props); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$1(fragment); - error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); - setCurrentlyValidatingElement$1(null); - break; - } - } - if (fragment.ref !== null) { - setCurrentlyValidatingElement$1(fragment); - error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$1(null); - } - } - } - function createElementWithValidation(type, props, children) { - var validType = isValidElementType(type); - if (!validType) { - var info = ""; - if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { - info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; - } - var sourceInfo = getSourceInfoErrorAddendumForProps(props); - if (sourceInfo) { - info += sourceInfo; - } else { - info += getDeclarationErrorAddendum(); - } - var typeString; - if (type === null) { - typeString = "null"; - } else if (isArray(type)) { - typeString = "array"; - } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) { - typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />"; - info = " Did you accidentally export a JSX literal instead of a component?"; - } else { - typeString = typeof type; - } - { - error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); - } - } - var element = createElement.apply(this, arguments); - if (element == null) { - return element; - } - if (validType) { - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], type); - } - } - if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps(element); - } else { - validatePropTypes(element); - } - return element; - } - var didWarnAboutDeprecatedCreateFactory = false; - function createFactoryWithValidation(type) { - var validatedFactory = createElementWithValidation.bind(null, type); - validatedFactory.type = type; - { - if (!didWarnAboutDeprecatedCreateFactory) { - didWarnAboutDeprecatedCreateFactory = true; - warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); - } - Object.defineProperty(validatedFactory, "type", { - enumerable: false, - get: function() { - warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); - Object.defineProperty(this, "type", { - value: type - }); - return type; - } - }); - } - return validatedFactory; - } - function cloneElementWithValidation(element, props, children) { - var newElement = cloneElement.apply(this, arguments); - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], newElement.type); - } - validatePropTypes(newElement); - return newElement; - } - function startTransition(scope, options) { - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = {}; - var currentTransition = ReactCurrentBatchConfig.transition; - { - ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set(); - } - try { - scope(); - } finally { - ReactCurrentBatchConfig.transition = prevTransition; - { - if (prevTransition === null && currentTransition._updatedFibers) { - var updatedFibersCount = currentTransition._updatedFibers.size; - if (updatedFibersCount > 10) { - warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."); - } - currentTransition._updatedFibers.clear(); - } - } - } - } - var didWarnAboutMessageChannel = false; - var enqueueTaskImpl = null; - function enqueueTask(task) { - if (enqueueTaskImpl === null) { - try { - var requireString = ("require" + Math.random()).slice(0, 7); - var nodeRequire = module2 && module2[requireString]; - enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate; - } catch (_err) { - enqueueTaskImpl = function(callback) { - { - if (didWarnAboutMessageChannel === false) { - didWarnAboutMessageChannel = true; - if (typeof MessageChannel === "undefined") { - error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."); - } - } - } - var channel = new MessageChannel(); - channel.port1.onmessage = callback; - channel.port2.postMessage(void 0); - }; - } - } - return enqueueTaskImpl(task); - } - var actScopeDepth = 0; - var didWarnNoAwaitAct = false; - function act(callback) { - { - var prevActScopeDepth = actScopeDepth; - actScopeDepth++; - if (ReactCurrentActQueue.current === null) { - ReactCurrentActQueue.current = []; - } - var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; - var result; - try { - ReactCurrentActQueue.isBatchingLegacy = true; - result = callback(); - if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { - var queue = ReactCurrentActQueue.current; - if (queue !== null) { - ReactCurrentActQueue.didScheduleLegacyUpdate = false; - flushActQueue(queue); - } - } - } catch (error2) { - popActScope(prevActScopeDepth); - throw error2; - } finally { - ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; - } - if (result !== null && typeof result === "object" && typeof result.then === "function") { - var thenableResult = result; - var wasAwaited = false; - var thenable = { - then: function(resolve, reject) { - wasAwaited = true; - thenableResult.then(function(returnValue2) { - popActScope(prevActScopeDepth); - if (actScopeDepth === 0) { - recursivelyFlushAsyncActWork(returnValue2, resolve, reject); - } else { - resolve(returnValue2); - } - }, function(error2) { - popActScope(prevActScopeDepth); - reject(error2); - }); - } - }; - { - if (!didWarnNoAwaitAct && typeof Promise !== "undefined") { - Promise.resolve().then(function() { - }).then(function() { - if (!wasAwaited) { - didWarnNoAwaitAct = true; - error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"); - } - }); - } - } - return thenable; - } else { - var returnValue = result; - popActScope(prevActScopeDepth); - if (actScopeDepth === 0) { - var _queue = ReactCurrentActQueue.current; - if (_queue !== null) { - flushActQueue(_queue); - ReactCurrentActQueue.current = null; - } - var _thenable = { - then: function(resolve, reject) { - if (ReactCurrentActQueue.current === null) { - ReactCurrentActQueue.current = []; - recursivelyFlushAsyncActWork(returnValue, resolve, reject); - } else { - resolve(returnValue); - } - } - }; - return _thenable; - } else { - var _thenable2 = { - then: function(resolve, reject) { - resolve(returnValue); - } - }; - return _thenable2; - } - } - } - } - function popActScope(prevActScopeDepth) { - { - if (prevActScopeDepth !== actScopeDepth - 1) { - error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "); - } - actScopeDepth = prevActScopeDepth; - } - } - function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { - { - var queue = ReactCurrentActQueue.current; - if (queue !== null) { - try { - flushActQueue(queue); - enqueueTask(function() { - if (queue.length === 0) { - ReactCurrentActQueue.current = null; - resolve(returnValue); - } else { - recursivelyFlushAsyncActWork(returnValue, resolve, reject); - } - }); - } catch (error2) { - reject(error2); - } - } else { - resolve(returnValue); - } - } - } - var isFlushing = false; - function flushActQueue(queue) { - { - if (!isFlushing) { - isFlushing = true; - var i = 0; - try { - for (; i < queue.length; i++) { - var callback = queue[i]; - do { - callback = callback(true); - } while (callback !== null); - } - queue.length = 0; - } catch (error2) { - queue = queue.slice(i + 1); - throw error2; - } finally { - isFlushing = false; - } - } - } - } - var createElement$1 = createElementWithValidation; - var cloneElement$1 = cloneElementWithValidation; - var createFactory = createFactoryWithValidation; - var Children = { - map: mapChildren, - forEach: forEachChildren, - count: countChildren, - toArray, - only: onlyChild - }; - exports.Children = Children; - exports.Component = Component; - exports.Fragment = REACT_FRAGMENT_TYPE; - exports.Profiler = REACT_PROFILER_TYPE; - exports.PureComponent = PureComponent; - exports.StrictMode = REACT_STRICT_MODE_TYPE; - exports.Suspense = REACT_SUSPENSE_TYPE; - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; - exports.cloneElement = cloneElement$1; - exports.createContext = createContext; - exports.createElement = createElement$1; - exports.createFactory = createFactory; - exports.createRef = createRef; - exports.forwardRef = forwardRef2; - exports.isValidElement = isValidElement; - exports.lazy = lazy; - exports.memo = memo; - exports.startTransition = startTransition; - exports.unstable_act = act; - exports.useCallback = useCallback; - exports.useContext = useContext; - exports.useDebugValue = useDebugValue; - exports.useDeferredValue = useDeferredValue; - exports.useEffect = useEffect2; - exports.useId = useId; - exports.useImperativeHandle = useImperativeHandle; - exports.useInsertionEffect = useInsertionEffect; - exports.useLayoutEffect = useLayoutEffect; - exports.useMemo = useMemo; - exports.useReducer = useReducer; - exports.useRef = useRef2; - exports.useState = useState2; - exports.useSyncExternalStore = useSyncExternalStore; - exports.useTransition = useTransition; - exports.version = ReactVersion; - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); - } - })(); - } - } -}); - -// node_modules/react/index.js -var require_react = __commonJS({ - "node_modules/react/index.js"(exports, module2) { - "use strict"; - if (process.env.NODE_ENV === "production") { - module2.exports = require_react_production_min(); - } else { - module2.exports = require_react_development(); - } - } -}); - // node_modules/inline-style-parser/index.js var require_inline_style_parser = __commonJS({ "node_modules/inline-style-parser/index.js"(exports, module2) { @@ -8411,7 +6229,7 @@ var require_cjs = __commonJS({ var require_utilities3 = __commonJS({ "node_modules/html-react-parser/lib/utilities.js"(exports, module2) { "use strict"; - var React = require_react(); + var React2 = require("react"); var styleToJS = require_cjs().default; function invertObject(obj, override) { if (!obj || typeof obj !== "object") { @@ -8466,7 +6284,7 @@ var require_utilities3 = __commonJS({ props.style = {}; } } - var PRESERVE_CUSTOM_ATTRIBUTES = React.version.split(".")[0] >= 16; + var PRESERVE_CUSTOM_ATTRIBUTES = React2.version.split(".")[0] >= 16; var elementsWithNoTextChildren = /* @__PURE__ */ new Set([ "tr", "tbody", @@ -8556,14 +6374,14 @@ var require_attributes_to_props = __commonJS({ var require_dom_to_react = __commonJS({ "node_modules/html-react-parser/lib/dom-to-react.js"(exports, module2) { "use strict"; - var React = require_react(); + var React2 = require("react"); var attributesToProps2 = require_attributes_to_props(); var utilities = require_utilities3(); var setStyleProp = utilities.setStyleProp; var canTextBeChildOfNode = utilities.canTextBeChildOfNode; function domToReact2(nodes, options) { options = options || {}; - var library = options.library || React; + var library = options.library || React2; var cloneElement = library.cloneElement; var createElement = library.createElement; var isValidElement = library.isValidElement; @@ -9023,7 +6841,7 @@ var require_core = __commonJS({ let numCaptures = 0; return regexps.map((regex) => { numCaptures += 1; - const offset = numCaptures; + const offset2 = numCaptures; let re = source(regex); let out = ""; while (re.length > 0) { @@ -9035,7 +6853,7 @@ var require_core = __commonJS({ out += re.substring(0, match.index); re = re.substring(match.index + match[0].length); if (match[0][0] === "\\" && match[1]) { - out += "\\" + String(Number(match[1]) + offset); + out += "\\" + String(Number(match[1]) + offset2); } else { out += match[0]; if (match[0] === "(") { @@ -9391,14 +7209,14 @@ var require_core = __commonJS({ }; var MultiClassError = new Error(); function remapScopeNames(mode, regexes, { key }) { - let offset = 0; + let offset2 = 0; const scopeNames = mode[key]; const emit = {}; const positions = {}; for (let i = 1; i <= regexes.length; i++) { - positions[i + offset] = scopeNames[i]; - emit[i + offset] = true; - offset += countMatchGroups(regexes[i - 1]); + positions[i + offset2] = scopeNames[i]; + emit[i + offset2] = true; + offset2 += countMatchGroups(regexes[i - 1]); } mode[key] = positions; mode[key]._emit = emit; @@ -58743,6 +56561,9 @@ __export(src_exports, { AsciiDocBlocks: () => AsciiDocBlocks, Badge: () => Badge, Button: () => Button, + Checkbox: () => Checkbox, + EmptyMessage: () => EmptyMessage, + Listbox: () => Listbox, Spinner: () => Spinner, SpinnerLoader: () => SpinnerLoader, Tabs: () => Tabs, @@ -58776,6 +56597,36 @@ var titleCase = (text) => { (text2) => text2.charAt(0).toUpperCase() + text2.substring(1).toLowerCase() ); }; +var make = (tag) => ( + // only one argument here means string interpolations are not allowed + (strings) => { + const Comp = ({ className, children, ...rest }) => React.createElement(tag, { className: cn(strings[0], className), ...rest }, children); + Comp.displayName = `classed.${tag}`; + return Comp; + } +); +var classed = { + button: make("button"), + div: make("div"), + h1: make("h1"), + h2: make("h2"), + h3: make("h3"), + h4: make("h4"), + hr: make("hr"), + header: make("header"), + input: make("input"), + label: make("label"), + li: make("li"), + main: make("main"), + ol: make("ol"), + p: make("p"), + span: make("span"), + table: make("table"), + tbody: make("tbody"), + td: make("td"), + th: make("th"), + tr: make("tr") +}; // components/src/asciidoc/Admonition.tsx var import_jsx_runtime = require("react/jsx-runtime"); @@ -58936,7 +56787,7 @@ var Badge = ({ // components/src/ui/button/Button.tsx var import_classnames3 = __toESM(require_classnames()); -var import_react = __toESM(require_react()); +var import_react = require("react"); var import_jsx_runtime5 = require("react/jsx-runtime"); var buttonSizes = ["sm", "icon", "base"]; var variants = ["primary", "secondary", "ghost", "danger"]; @@ -58947,13 +56798,13 @@ var sizeStyle = { base: "h-10 px-4 text-mono-sm svg:w-5" }; var buttonStyle = ({ - size = "base", + size: size2 = "base", variant = "primary" } = {}) => { return (0, import_classnames3.default)( "ox-button inline-flex items-center justify-center rounded align-top elevation-1 disabled:cursor-not-allowed", `btn-${variant}`, - sizeStyle[size], + sizeStyle[size2], variant === "danger" ? "focus:outline-destructive-secondary" : "focus:outline-accent-secondary" ); }; @@ -58965,7 +56816,7 @@ var Button = (0, import_react.forwardRef)( ({ type = "button", children, - size, + size: size2, variant, className, loading, @@ -58980,7 +56831,7 @@ var Button = (0, import_react.forwardRef)( return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)( "button", { - className: (0, import_classnames3.default)(buttonStyle({ size, variant }), className, { + className: (0, import_classnames3.default)(buttonStyle({ size: size2, variant }), className, { "visually-disabled": isDisabled }), ref, @@ -59000,19 +56851,19 @@ var Button = (0, import_react.forwardRef)( // components/src/ui/spinner/Spinner.tsx var import_classnames4 = __toESM(require_classnames()); -var import_react2 = __toESM(require_react()); +var import_react2 = require("react"); var import_jsx_runtime6 = require("react/jsx-runtime"); var spinnerSizes = ["base", "lg"]; var spinnerVariants = ["primary", "secondary", "ghost", "danger"]; var Spinner = ({ className, - size = "base", + size: size2 = "base", variant = "primary" }) => { - const frameSize = size === "lg" ? 36 : 12; - const center = size === "lg" ? 18 : 6; - const radius = size === "lg" ? 16 : 5; - const strokeWidth = size === "lg" ? 3 : 2; + const frameSize = size2 === "lg" ? 36 : 12; + const center = size2 === "lg" ? 18 : 6; + const radius = size2 === "lg" ? 16 : 5; + const strokeWidth = size2 === "lg" ? 3 : 2; return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)( "svg", { @@ -59022,7 +56873,7 @@ var Spinner = ({ fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "Spinner", - className: (0, import_classnames4.default)("spinner", `spinner-${variant}`, `spinner-${size}`, className), + className: (0, import_classnames4.default)("spinner", `spinner-${variant}`, `spinner-${size2}`, className), children: [ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)( "circle", @@ -59091,11 +56942,631 @@ var Tabs = { List: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_tabs.List, { ...props, className: (0, import_classnames5.default)("ox-tabs-list", className) }), Content: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_tabs.Content, { ...props, className: (0, import_classnames5.default)("ox-tabs-panel", className) }) }; + +// icons/react/Access24Icon.tsx +var import_jsx_runtime8 = require("react/jsx-runtime"); + +// icons/react/Action24Icon.tsx +var import_jsx_runtime9 = require("react/jsx-runtime"); + +// icons/react/AddRoundel24Icon.tsx +var import_jsx_runtime10 = require("react/jsx-runtime"); + +// icons/react/Calendar24Icon.tsx +var import_jsx_runtime11 = require("react/jsx-runtime"); + +// icons/react/Chat24Icon.tsx +var import_jsx_runtime12 = require("react/jsx-runtime"); + +// icons/react/Clipboard24Icon.tsx +var import_jsx_runtime13 = require("react/jsx-runtime"); + +// icons/react/Cloud24Icon.tsx +var import_jsx_runtime14 = require("react/jsx-runtime"); + +// icons/react/Compatibility24Icon.tsx +var import_jsx_runtime15 = require("react/jsx-runtime"); + +// icons/react/Contrast24Icon.tsx +var import_jsx_runtime16 = require("react/jsx-runtime"); + +// icons/react/Cpu24Icon.tsx +var import_jsx_runtime17 = require("react/jsx-runtime"); + +// icons/react/Delete24Icon.tsx +var import_jsx_runtime18 = require("react/jsx-runtime"); + +// icons/react/Dislike24Icon.tsx +var import_jsx_runtime19 = require("react/jsx-runtime"); + +// icons/react/Document24Icon.tsx +var import_jsx_runtime20 = require("react/jsx-runtime"); + +// icons/react/Dots24Icon.tsx +var import_jsx_runtime21 = require("react/jsx-runtime"); + +// icons/react/Download24Icon.tsx +var import_jsx_runtime22 = require("react/jsx-runtime"); + +// icons/react/Email24Icon.tsx +var import_jsx_runtime23 = require("react/jsx-runtime"); + +// icons/react/Error24Icon.tsx +var import_jsx_runtime24 = require("react/jsx-runtime"); + +// icons/react/Firewall24Icon.tsx +var import_jsx_runtime25 = require("react/jsx-runtime"); + +// icons/react/Folder24Icon.tsx +var import_jsx_runtime26 = require("react/jsx-runtime"); + +// icons/react/Gateway24Icon.tsx +var import_jsx_runtime27 = require("react/jsx-runtime"); + +// icons/react/Heart24Icon.tsx +var import_jsx_runtime28 = require("react/jsx-runtime"); + +// icons/react/Hide24Icon.tsx +var import_jsx_runtime29 = require("react/jsx-runtime"); + +// icons/react/Hourglass24Icon.tsx +var import_jsx_runtime30 = require("react/jsx-runtime"); + +// icons/react/Images24Icon.tsx +var import_jsx_runtime31 = require("react/jsx-runtime"); + +// icons/react/Info24Icon.tsx +var import_jsx_runtime32 = require("react/jsx-runtime"); + +// icons/react/Instances24Icon.tsx +var import_jsx_runtime33 = require("react/jsx-runtime"); + +// icons/react/IpGlobal24Icon.tsx +var import_jsx_runtime34 = require("react/jsx-runtime"); + +// icons/react/IpLocal24Icon.tsx +var import_jsx_runtime35 = require("react/jsx-runtime"); + +// icons/react/Issues24Icon.tsx +var import_jsx_runtime36 = require("react/jsx-runtime"); + +// icons/react/Key24Icon.tsx +var import_jsx_runtime37 = require("react/jsx-runtime"); + +// icons/react/Like24Icon.tsx +var import_jsx_runtime38 = require("react/jsx-runtime"); + +// icons/react/LoadBalancer24Icon.tsx +var import_jsx_runtime39 = require("react/jsx-runtime"); + +// icons/react/Location24Icon.tsx +var import_jsx_runtime40 = require("react/jsx-runtime"); + +// icons/react/Logs24Icon.tsx +var import_jsx_runtime41 = require("react/jsx-runtime"); + +// icons/react/Networking24Icon.tsx +var import_jsx_runtime42 = require("react/jsx-runtime"); + +// icons/react/Organization24Icon.tsx +var import_jsx_runtime43 = require("react/jsx-runtime"); + +// icons/react/Overview24Icon.tsx +var import_jsx_runtime44 = require("react/jsx-runtime"); + +// icons/react/Person24Icon.tsx +var import_jsx_runtime45 = require("react/jsx-runtime"); + +// icons/react/PersonGroup24Icon.tsx +var import_jsx_runtime46 = require("react/jsx-runtime"); + +// icons/react/Progress24Icon.tsx +var import_jsx_runtime47 = require("react/jsx-runtime"); + +// icons/react/Prohibited24Icon.tsx +var import_jsx_runtime48 = require("react/jsx-runtime"); + +// icons/react/Router24Icon.tsx +var import_jsx_runtime49 = require("react/jsx-runtime"); + +// icons/react/Safety24Icon.tsx +var import_jsx_runtime50 = require("react/jsx-runtime"); + +// icons/react/Security24Icon.tsx +var import_jsx_runtime51 = require("react/jsx-runtime"); + +// icons/react/Racks24Icon.tsx +var import_jsx_runtime52 = require("react/jsx-runtime"); + +// icons/react/Settings24Icon.tsx +var import_jsx_runtime53 = require("react/jsx-runtime"); + +// icons/react/Snapshots24Icon.tsx +var import_jsx_runtime54 = require("react/jsx-runtime"); + +// icons/react/SoftwareUpdate24Icon.tsx +var import_jsx_runtime55 = require("react/jsx-runtime"); + +// icons/react/Speaker24Icon.tsx +var import_jsx_runtime56 = require("react/jsx-runtime"); + +// icons/react/Storage24Icon.tsx +var import_jsx_runtime57 = require("react/jsx-runtime"); + +// icons/react/Subnet24Icon.tsx +var import_jsx_runtime58 = require("react/jsx-runtime"); + +// icons/react/Resize24Icon.tsx +var import_jsx_runtime59 = require("react/jsx-runtime"); + +// icons/react/Terminal24Icon.tsx +var import_jsx_runtime60 = require("react/jsx-runtime"); + +// icons/react/Transmit24Icon.tsx +var import_jsx_runtime61 = require("react/jsx-runtime"); + +// icons/react/Wireless24Icon.tsx +var import_jsx_runtime62 = require("react/jsx-runtime"); + +// icons/react/Access16Icon.tsx +var import_jsx_runtime63 = require("react/jsx-runtime"); + +// icons/react/Action16Icon.tsx +var import_jsx_runtime64 = require("react/jsx-runtime"); + +// icons/react/AddRoundel16Icon.tsx +var import_jsx_runtime65 = require("react/jsx-runtime"); + +// icons/react/Calendar16Icon.tsx +var import_jsx_runtime66 = require("react/jsx-runtime"); + +// icons/react/Chat16Icon.tsx +var import_jsx_runtime67 = require("react/jsx-runtime"); + +// icons/react/Clipboard16Icon.tsx +var import_jsx_runtime68 = require("react/jsx-runtime"); + +// icons/react/Cloud16Icon.tsx +var import_jsx_runtime69 = require("react/jsx-runtime"); + +// icons/react/Close16Icon.tsx +var import_jsx_runtime70 = require("react/jsx-runtime"); + +// icons/react/Compability16Icon.tsx +var import_jsx_runtime71 = require("react/jsx-runtime"); + +// icons/react/Contrast16Icon.tsx +var import_jsx_runtime72 = require("react/jsx-runtime"); + +// icons/react/Cpu16Icon.tsx +var import_jsx_runtime73 = require("react/jsx-runtime"); + +// icons/react/Delete16Icon.tsx +var import_jsx_runtime74 = require("react/jsx-runtime"); + +// icons/react/Dislike16Icon.tsx +var import_jsx_runtime75 = require("react/jsx-runtime"); + +// icons/react/Document16Icon.tsx +var import_jsx_runtime76 = require("react/jsx-runtime"); + +// icons/react/Dots16Icon.tsx +var import_jsx_runtime77 = require("react/jsx-runtime"); + +// icons/react/DownloadRoundel16Icon.tsx +var import_jsx_runtime78 = require("react/jsx-runtime"); + +// icons/react/Edit16Icon.tsx +var import_jsx_runtime79 = require("react/jsx-runtime"); + +// icons/react/Email16Icon.tsx +var import_jsx_runtime80 = require("react/jsx-runtime"); + +// icons/react/Error16Icon.tsx +var import_jsx_runtime81 = require("react/jsx-runtime"); + +// icons/react/Firewall16Icon.tsx +var import_jsx_runtime82 = require("react/jsx-runtime"); + +// icons/react/Folder16Icon.tsx +var import_jsx_runtime83 = require("react/jsx-runtime"); + +// icons/react/Gateway16Icon.tsx +var import_jsx_runtime84 = require("react/jsx-runtime"); + +// icons/react/Heart16Icon.tsx +var import_jsx_runtime85 = require("react/jsx-runtime"); + +// icons/react/Hide16Icon.tsx +var import_jsx_runtime86 = require("react/jsx-runtime"); + +// icons/react/Hourglass16Icon.tsx +var import_jsx_runtime87 = require("react/jsx-runtime"); + +// icons/react/Images16Icon.tsx +var import_jsx_runtime88 = require("react/jsx-runtime"); + +// icons/react/Info16Icon.tsx +var import_jsx_runtime89 = require("react/jsx-runtime"); + +// icons/react/Instances16Icon.tsx +var import_jsx_runtime90 = require("react/jsx-runtime"); + +// icons/react/Integration16Icon.tsx +var import_jsx_runtime91 = require("react/jsx-runtime"); + +// icons/react/IpGlobal16Icon.tsx +var import_jsx_runtime92 = require("react/jsx-runtime"); + +// icons/react/IpLocal16Icon.tsx +var import_jsx_runtime93 = require("react/jsx-runtime"); + +// icons/react/Issues16Icon.tsx +var import_jsx_runtime94 = require("react/jsx-runtime"); + +// icons/react/Key16Icon.tsx +var import_jsx_runtime95 = require("react/jsx-runtime"); + +// icons/react/Like16Icon.tsx +var import_jsx_runtime96 = require("react/jsx-runtime"); + +// icons/react/Link16Icon.tsx +var import_jsx_runtime97 = require("react/jsx-runtime"); + +// icons/react/LoadBalancer16Icon.tsx +var import_jsx_runtime98 = require("react/jsx-runtime"); + +// icons/react/Logs16Icon.tsx +var import_jsx_runtime99 = require("react/jsx-runtime"); + +// icons/react/Metrics16Icon.tsx +var import_jsx_runtime100 = require("react/jsx-runtime"); + +// icons/react/Networking16Icon.tsx +var import_jsx_runtime101 = require("react/jsx-runtime"); + +// icons/react/NewWindow16Icon.tsx +var import_jsx_runtime102 = require("react/jsx-runtime"); + +// icons/react/Notifications16Icon.tsx +var import_jsx_runtime103 = require("react/jsx-runtime"); + +// icons/react/Organization16Icon.tsx +var import_jsx_runtime104 = require("react/jsx-runtime"); + +// icons/react/Overview16Icon.tsx +var import_jsx_runtime105 = require("react/jsx-runtime"); + +// icons/react/Person16Icon.tsx +var import_jsx_runtime106 = require("react/jsx-runtime"); + +// icons/react/PersonGroup16Icon.tsx +var import_jsx_runtime107 = require("react/jsx-runtime"); + +// icons/react/Profile16Icon.tsx +var import_jsx_runtime108 = require("react/jsx-runtime"); + +// icons/react/Refresh16Icon.tsx +var import_jsx_runtime109 = require("react/jsx-runtime"); + +// icons/react/Ram16Icon.tsx +var import_jsx_runtime110 = require("react/jsx-runtime"); + +// icons/react/Repair16Icon.tsx +var import_jsx_runtime111 = require("react/jsx-runtime"); + +// icons/react/Resize16Icon.tsx +var import_jsx_runtime112 = require("react/jsx-runtime"); + +// icons/react/Router16Icon.tsx +var import_jsx_runtime113 = require("react/jsx-runtime"); + +// icons/react/Search16Icon.tsx +var import_jsx_runtime114 = require("react/jsx-runtime"); + +// icons/react/Security16Icon.tsx +var import_jsx_runtime115 = require("react/jsx-runtime"); + +// icons/react/Servers16Icon.tsx +var import_jsx_runtime116 = require("react/jsx-runtime"); + +// icons/react/Settings16Icon.tsx +var import_jsx_runtime117 = require("react/jsx-runtime"); + +// icons/react/Show16Icon.tsx +var import_jsx_runtime118 = require("react/jsx-runtime"); + +// icons/react/Snapshots16Icon.tsx +var import_jsx_runtime119 = require("react/jsx-runtime"); + +// icons/react/SoftwareUpdate16Icon.tsx +var import_jsx_runtime120 = require("react/jsx-runtime"); + +// icons/react/Ssd16Icon.tsx +var import_jsx_runtime121 = require("react/jsx-runtime"); + +// icons/react/Storage16Icon.tsx +var import_jsx_runtime122 = require("react/jsx-runtime"); + +// icons/react/Subnet16Icon.tsx +var import_jsx_runtime123 = require("react/jsx-runtime"); + +// icons/react/Tags16Icon.tsx +var import_jsx_runtime124 = require("react/jsx-runtime"); + +// icons/react/Terminal16Icon.tsx +var import_jsx_runtime125 = require("react/jsx-runtime"); + +// icons/react/Time16Icon.tsx +var import_jsx_runtime126 = require("react/jsx-runtime"); + +// icons/react/Transmit16Icon.tsx +var import_jsx_runtime127 = require("react/jsx-runtime"); + +// icons/react/Add12Icon.tsx +var import_jsx_runtime128 = require("react/jsx-runtime"); + +// icons/react/AddRoundel12Icon.tsx +var import_jsx_runtime129 = require("react/jsx-runtime"); + +// icons/react/Checkmark12Icon.tsx +var import_jsx_runtime130 = require("react/jsx-runtime"); +var Checkmark12Icon = ({ + title, + titleId, + ...props +}) => /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("svg", { width: 12, height: 12, viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-labelledby": titleId, ...props, children: [ + title ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("title", { id: titleId, children: title }) : null, + /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.492 2.651c.28.242.31.665.067.944L5.447 9.463a.667.667 0 0 1-.974.035L1.475 6.516a.667.667 0 0 1 0-.946l.237-.235a.667.667 0 0 1 .94 0l2.24 2.226L9.3 2.501a.667.667 0 0 1 .938-.068l.253.218Z", fill: "currentColor" }) +] }); +var Checkmark12Icon_default = Checkmark12Icon; + +// icons/react/Close12Icon.tsx +var import_jsx_runtime131 = require("react/jsx-runtime"); + +// icons/react/DirectionRightIcon.tsx +var import_jsx_runtime132 = require("react/jsx-runtime"); + +// icons/react/DirectionUpIcon.tsx +var import_jsx_runtime133 = require("react/jsx-runtime"); + +// icons/react/DirectionDownIcon.tsx +var import_jsx_runtime134 = require("react/jsx-runtime"); + +// icons/react/DirectionLeftIcon.tsx +var import_jsx_runtime135 = require("react/jsx-runtime"); + +// icons/react/Clipboard12Icon.tsx +var import_jsx_runtime136 = require("react/jsx-runtime"); + +// icons/react/Disabled12Icon.tsx +var import_jsx_runtime137 = require("react/jsx-runtime"); + +// icons/react/Error12Icon.tsx +var import_jsx_runtime138 = require("react/jsx-runtime"); + +// icons/react/Filter12Icon.tsx +var import_jsx_runtime139 = require("react/jsx-runtime"); + +// icons/react/Key12Icon.tsx +var import_jsx_runtime140 = require("react/jsx-runtime"); + +// icons/react/Loader12Icon.tsx +var import_jsx_runtime141 = require("react/jsx-runtime"); + +// icons/react/More12Icon.tsx +var import_jsx_runtime142 = require("react/jsx-runtime"); + +// icons/react/NextArrow12Icon.tsx +var import_jsx_runtime143 = require("react/jsx-runtime"); + +// icons/react/PrevArrow12Icon.tsx +var import_jsx_runtime144 = require("react/jsx-runtime"); + +// icons/react/OpenLink12Icon.tsx +var import_jsx_runtime145 = require("react/jsx-runtime"); + +// icons/react/Repair12Icon.tsx +var import_jsx_runtime146 = require("react/jsx-runtime"); + +// icons/react/Security12Icon.tsx +var import_jsx_runtime147 = require("react/jsx-runtime"); + +// icons/react/Success12Icon.tsx +var import_jsx_runtime148 = require("react/jsx-runtime"); + +// icons/react/Unauthorized12Icon.tsx +var import_jsx_runtime149 = require("react/jsx-runtime"); + +// icons/react/Warning12Icon.tsx +var import_jsx_runtime150 = require("react/jsx-runtime"); + +// icons/react/Question12Icon.tsx +var import_jsx_runtime151 = require("react/jsx-runtime"); + +// icons/react/Hide12Icon.tsx +var import_jsx_runtime152 = require("react/jsx-runtime"); + +// icons/react/SelectArrows6Icon.tsx +var import_jsx_runtime153 = require("react/jsx-runtime"); +var SelectArrows6Icon = ({ + title, + titleId, + ...props +}) => /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("svg", { width: 6, height: 14, viewBox: "0 0 6 14", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-labelledby": titleId, ...props, children: [ + title ? /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("title", { id: titleId, children: title }) : null, + /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.322.536a.375.375 0 0 0-.644 0L.341 4.432C.19 4.682.37 5 .662 5h4.676a.375.375 0 0 0 .321-.568L3.322.536Zm-.644 12.928a.375.375 0 0 0 .644 0l2.337-3.896A.375.375 0 0 0 5.338 9H.662a.375.375 0 0 0-.321.568l2.337 3.896Z", fill: "currentColor" }) +] }); +var SelectArrows6Icon_default = SelectArrows6Icon; + +// icons/react/Close8Icon.tsx +var import_jsx_runtime154 = require("react/jsx-runtime"); + +// components/src/ui/checkbox/Checkbox.tsx +var import_classnames6 = __toESM(require_classnames()); +var import_jsx_runtime155 = require("react/jsx-runtime"); +var Check = () => /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Checkmark12Icon_default, { className: "pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" }); +var Indeterminate = classed.div`absolute w-2 h-0.5 left-1 top-[7px] bg-accent pointer-events-none`; +var inputStyle = ` + appearance-none border border-default bg-default h-4 w-4 rounded-sm absolute left-0 outline-none + disabled:cursor-not-allowed + hover:border-hover hover:cursor-pointer + checked:bg-accent-secondary checked:border-accent-secondary checked:hover:border-accent + indeterminate:bg-accent-secondary indeterminate:border-accent hover:indeterminate:bg-accent-secondary-hover +`; +var Checkbox = ({ + indeterminate, + children, + className, + ...inputProps +}) => /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("label", { className: "inline-flex items-center", children: [ + /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("span", { className: "relative h-4 w-4", children: [ + /* @__PURE__ */ (0, import_jsx_runtime155.jsx)( + "input", + { + className: (0, import_classnames6.default)(inputStyle, className), + type: "checkbox", + ref: (el) => el && (el.indeterminate = !!indeterminate), + ...inputProps + } + ), + inputProps.checked && !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Check, {}), + indeterminate && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Indeterminate, {}) + ] }), + children && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "ml-2.5 text-sans-md text-secondary", children }) +] }); + +// components/src/ui/empty-message/EmptyMessage.tsx +var import_classnames7 = __toESM(require_classnames()); +var import_react_router_dom = require("react-router-dom"); +var import_jsx_runtime156 = require("react/jsx-runtime"); +var buttonStyleProps = { variant: "ghost", size: "sm", color: "secondary" }; +function EmptyMessage(props) { + let button = null; + if (props.buttonText && "buttonTo" in props) { + button = /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_router_dom.Link, { className: (0, import_classnames7.default)("mt-6", buttonStyle(buttonStyleProps)), to: props.buttonTo, children: props.buttonText }); + } else if (props.buttonText && "onClick" in props) { + button = /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(Button, { ...buttonStyleProps, className: "mt-6", onClick: props.onClick, children: props.buttonText }); + } + return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("div", { className: "m-4 flex max-w-[14rem] flex-col items-center text-center", children: [ + props.icon && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "mb-4 rounded p-1 leading-[0] text-accent bg-accent-secondary", children: props.icon }), + /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("h3", { className: "text-sans-semi-lg", children: props.title }), + props.body && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("p", { className: "mt-1 text-sans-md text-secondary", children: props.body }), + button + ] }); +} + +// components/src/ui/listbox/Listbox.tsx +var import_react5 = require("@floating-ui/react"); +var import_react6 = require("@headlessui/react"); +var import_classnames8 = __toESM(require_classnames()); +var import_jsx_runtime157 = require("react/jsx-runtime"); +var Listbox = ({ + name, + selected, + items, + placeholder = "Select an option", + className, + onChange, + hasError = false, + disabled, + isLoading = false, + ...props +}) => { + const { refs, floatingStyles } = (0, import_react5.useFloating)({ + middleware: [ + (0, import_react5.offset)(12), + (0, import_react5.flip)(), + (0, import_react5.size)({ + apply({ rects, elements }) { + Object.assign(elements.floating.style, { + width: `${rects.reference.width}px` + }); + } + }) + ] + }); + const selectedItem = selected && items.find((i) => i.value === selected); + const noItems = !isLoading && items.length === 0; + const isDisabled = disabled || noItems; + return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: (0, import_classnames8.default)("relative", className), children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)( + import_react6.Listbox, + { + value: selected, + onChange: (val) => val !== null && onChange(val), + disabled: isDisabled || isLoading, + children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(import_jsx_runtime157.Fragment, { children: [ + /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)( + import_react6.Listbox.Button, + { + name, + ref: refs.setReference, + className: (0, import_classnames8.default)( + `flex h-10 w-full items-center justify-between + rounded border text-sans-md`, + hasError ? "focus-error border-error-secondary hover:border-error" : "border-default hover:border-hover", + open && "ring-2 ring-accent-secondary", + open && hasError && "ring-error-secondary", + isDisabled ? "cursor-not-allowed text-disabled bg-disabled !border-default" : "bg-default", + isDisabled && hasError && "!border-error-secondary" + ), + ...props, + children: [ + /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "w-full px-3 text-left", children: selectedItem ? ( + // labelString is one line, which is what we need when label is a ReactNode + selectedItem.labelString || selectedItem.label + ) : /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { className: "text-quaternary", children: noItems ? "No items" : placeholder }) }), + !isDisabled && /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(SpinnerLoader, { isLoading }), + /* @__PURE__ */ (0, import_jsx_runtime157.jsx)( + "div", + { + className: "ml-3 flex h-[calc(100%-12px)] items-center border-l px-3 border-secondary", + "aria-hidden": true, + children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(SelectArrows6Icon_default, { className: "h-[14px] w-2 text-tertiary" }) + } + ) + ] + } + ), + /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(import_react5.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)( + import_react6.Listbox.Options, + { + ref: refs.setFloating, + style: floatingStyles, + className: "ox-menu pointer-events-auto z-50 overflow-y-auto !outline-none", + children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime157.jsx)( + import_react6.Listbox.Option, + { + value: item.value, + className: "relative border-b border-secondary last:border-0", + children: ({ active, selected: selected2 }) => /* @__PURE__ */ (0, import_jsx_runtime157.jsx)( + "div", + { + className: (0, import_classnames8.default)( + "ox-menu-item text-secondary", + selected2 && "is-selected", + active && "is-highlighted" + ), + children: item.label + } + ) + }, + item.value + )) + } + ) }) + ] }) + } + ) }); +}; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { AsciiDocBlocks, Badge, Button, + Checkbox, + EmptyMessage, + Listbox, Spinner, SpinnerLoader, Tabs, @@ -59108,28 +57579,6 @@ var Tabs = { }); /*! Bundled license information: -react/cjs/react.production.min.js: - (** - * @license React - * react.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. - *) - -react/cjs/react.development.js: - (** - * @license React - * react.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. - *) - classnames/index.js: (*! Copyright (c) 2018 Jed Watson. diff --git a/components/dist/index.js.map b/components/dist/index.js.map index ce8a4fef..4ba2da63 100644 --- a/components/dist/index.js.map +++ b/components/dist/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../node_modules/domelementtype/lib/index.js","../../node_modules/html-react-parser/node_modules/domhandler/lib/node.js","../../node_modules/html-react-parser/node_modules/domhandler/lib/index.js","../../node_modules/entities/lib/generated/generated/decode-data-html.ts","../../node_modules/entities/lib/generated/generated/decode-data-xml.ts","../../node_modules/entities/lib/decode_codepoint.ts","../../node_modules/entities/lib/decode.ts","../../node_modules/htmlparser2/lib/Tokenizer.ts","../../node_modules/htmlparser2/lib/Parser.ts","../../node_modules/htmlparser2/node_modules/domhandler/lib/node.js","../../node_modules/htmlparser2/node_modules/domhandler/lib/index.js","../../node_modules/entities/lib/generated/generated/encode-html.ts","../../node_modules/entities/lib/escape.ts","../../node_modules/entities/lib/encode.ts","../../node_modules/entities/lib/index.ts","../../node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js","../../node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js","../../node_modules/htmlparser2/node_modules/domutils/lib/stringify.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/traversal.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/manipulation.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/querying.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/legacy.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/helpers.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/feeds.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/index.ts","../../node_modules/htmlparser2/lib/index.ts","../../node_modules/html-dom-parser/node_modules/domhandler/lib/node.js","../../node_modules/html-dom-parser/node_modules/domhandler/lib/index.js","../../node_modules/html-dom-parser/lib/server/utilities.js","../../node_modules/html-dom-parser/lib/server/html-to-dom.js","../../node_modules/html-dom-parser/index.js","../../node_modules/react-property/lib/possibleStandardNamesOptimized.js","../../node_modules/react-property/lib/index.js","../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/cjs/react.development.js","../../node_modules/react/index.js","../../node_modules/inline-style-parser/index.js","../../node_modules/style-to-object/index.js","../../node_modules/style-to-js/cjs/utilities.js","../../node_modules/style-to-js/cjs/index.js","../../node_modules/html-react-parser/lib/utilities.js","../../node_modules/html-react-parser/lib/attributes-to-props.js","../../node_modules/html-react-parser/lib/dom-to-react.js","../../node_modules/html-react-parser/index.js","../../node_modules/classnames/index.js","../../node_modules/highlight.js/lib/core.js","../../node_modules/highlight.js/lib/languages/1c.js","../../node_modules/highlight.js/lib/languages/abnf.js","../../node_modules/highlight.js/lib/languages/accesslog.js","../../node_modules/highlight.js/lib/languages/actionscript.js","../../node_modules/highlight.js/lib/languages/ada.js","../../node_modules/highlight.js/lib/languages/angelscript.js","../../node_modules/highlight.js/lib/languages/apache.js","../../node_modules/highlight.js/lib/languages/applescript.js","../../node_modules/highlight.js/lib/languages/arcade.js","../../node_modules/highlight.js/lib/languages/arduino.js","../../node_modules/highlight.js/lib/languages/armasm.js","../../node_modules/highlight.js/lib/languages/xml.js","../../node_modules/highlight.js/lib/languages/asciidoc.js","../../node_modules/highlight.js/lib/languages/aspectj.js","../../node_modules/highlight.js/lib/languages/autohotkey.js","../../node_modules/highlight.js/lib/languages/autoit.js","../../node_modules/highlight.js/lib/languages/avrasm.js","../../node_modules/highlight.js/lib/languages/awk.js","../../node_modules/highlight.js/lib/languages/axapta.js","../../node_modules/highlight.js/lib/languages/bash.js","../../node_modules/highlight.js/lib/languages/basic.js","../../node_modules/highlight.js/lib/languages/bnf.js","../../node_modules/highlight.js/lib/languages/brainfuck.js","../../node_modules/highlight.js/lib/languages/c.js","../../node_modules/highlight.js/lib/languages/cal.js","../../node_modules/highlight.js/lib/languages/capnproto.js","../../node_modules/highlight.js/lib/languages/ceylon.js","../../node_modules/highlight.js/lib/languages/clean.js","../../node_modules/highlight.js/lib/languages/clojure.js","../../node_modules/highlight.js/lib/languages/clojure-repl.js","../../node_modules/highlight.js/lib/languages/cmake.js","../../node_modules/highlight.js/lib/languages/coffeescript.js","../../node_modules/highlight.js/lib/languages/coq.js","../../node_modules/highlight.js/lib/languages/cos.js","../../node_modules/highlight.js/lib/languages/cpp.js","../../node_modules/highlight.js/lib/languages/crmsh.js","../../node_modules/highlight.js/lib/languages/crystal.js","../../node_modules/highlight.js/lib/languages/csharp.js","../../node_modules/highlight.js/lib/languages/csp.js","../../node_modules/highlight.js/lib/languages/css.js","../../node_modules/highlight.js/lib/languages/d.js","../../node_modules/highlight.js/lib/languages/markdown.js","../../node_modules/highlight.js/lib/languages/dart.js","../../node_modules/highlight.js/lib/languages/delphi.js","../../node_modules/highlight.js/lib/languages/diff.js","../../node_modules/highlight.js/lib/languages/django.js","../../node_modules/highlight.js/lib/languages/dns.js","../../node_modules/highlight.js/lib/languages/dockerfile.js","../../node_modules/highlight.js/lib/languages/dos.js","../../node_modules/highlight.js/lib/languages/dsconfig.js","../../node_modules/highlight.js/lib/languages/dts.js","../../node_modules/highlight.js/lib/languages/dust.js","../../node_modules/highlight.js/lib/languages/ebnf.js","../../node_modules/highlight.js/lib/languages/elixir.js","../../node_modules/highlight.js/lib/languages/elm.js","../../node_modules/highlight.js/lib/languages/ruby.js","../../node_modules/highlight.js/lib/languages/erb.js","../../node_modules/highlight.js/lib/languages/erlang-repl.js","../../node_modules/highlight.js/lib/languages/erlang.js","../../node_modules/highlight.js/lib/languages/excel.js","../../node_modules/highlight.js/lib/languages/fix.js","../../node_modules/highlight.js/lib/languages/flix.js","../../node_modules/highlight.js/lib/languages/fortran.js","../../node_modules/highlight.js/lib/languages/fsharp.js","../../node_modules/highlight.js/lib/languages/gams.js","../../node_modules/highlight.js/lib/languages/gauss.js","../../node_modules/highlight.js/lib/languages/gcode.js","../../node_modules/highlight.js/lib/languages/gherkin.js","../../node_modules/highlight.js/lib/languages/glsl.js","../../node_modules/highlight.js/lib/languages/gml.js","../../node_modules/highlight.js/lib/languages/go.js","../../node_modules/highlight.js/lib/languages/golo.js","../../node_modules/highlight.js/lib/languages/gradle.js","../../node_modules/highlight.js/lib/languages/graphql.js","../../node_modules/highlight.js/lib/languages/groovy.js","../../node_modules/highlight.js/lib/languages/haml.js","../../node_modules/highlight.js/lib/languages/handlebars.js","../../node_modules/highlight.js/lib/languages/haskell.js","../../node_modules/highlight.js/lib/languages/haxe.js","../../node_modules/highlight.js/lib/languages/hsp.js","../../node_modules/highlight.js/lib/languages/http.js","../../node_modules/highlight.js/lib/languages/hy.js","../../node_modules/highlight.js/lib/languages/inform7.js","../../node_modules/highlight.js/lib/languages/ini.js","../../node_modules/highlight.js/lib/languages/irpf90.js","../../node_modules/highlight.js/lib/languages/isbl.js","../../node_modules/highlight.js/lib/languages/java.js","../../node_modules/highlight.js/lib/languages/javascript.js","../../node_modules/highlight.js/lib/languages/jboss-cli.js","../../node_modules/highlight.js/lib/languages/json.js","../../node_modules/highlight.js/lib/languages/julia.js","../../node_modules/highlight.js/lib/languages/julia-repl.js","../../node_modules/highlight.js/lib/languages/kotlin.js","../../node_modules/highlight.js/lib/languages/lasso.js","../../node_modules/highlight.js/lib/languages/latex.js","../../node_modules/highlight.js/lib/languages/ldif.js","../../node_modules/highlight.js/lib/languages/leaf.js","../../node_modules/highlight.js/lib/languages/less.js","../../node_modules/highlight.js/lib/languages/lisp.js","../../node_modules/highlight.js/lib/languages/livecodeserver.js","../../node_modules/highlight.js/lib/languages/livescript.js","../../node_modules/highlight.js/lib/languages/llvm.js","../../node_modules/highlight.js/lib/languages/lsl.js","../../node_modules/highlight.js/lib/languages/lua.js","../../node_modules/highlight.js/lib/languages/makefile.js","../../node_modules/highlight.js/lib/languages/mathematica.js","../../node_modules/highlight.js/lib/languages/matlab.js","../../node_modules/highlight.js/lib/languages/maxima.js","../../node_modules/highlight.js/lib/languages/mel.js","../../node_modules/highlight.js/lib/languages/mercury.js","../../node_modules/highlight.js/lib/languages/mipsasm.js","../../node_modules/highlight.js/lib/languages/mizar.js","../../node_modules/highlight.js/lib/languages/perl.js","../../node_modules/highlight.js/lib/languages/mojolicious.js","../../node_modules/highlight.js/lib/languages/monkey.js","../../node_modules/highlight.js/lib/languages/moonscript.js","../../node_modules/highlight.js/lib/languages/n1ql.js","../../node_modules/highlight.js/lib/languages/nestedtext.js","../../node_modules/highlight.js/lib/languages/nginx.js","../../node_modules/highlight.js/lib/languages/nim.js","../../node_modules/highlight.js/lib/languages/nix.js","../../node_modules/highlight.js/lib/languages/node-repl.js","../../node_modules/highlight.js/lib/languages/nsis.js","../../node_modules/highlight.js/lib/languages/objectivec.js","../../node_modules/highlight.js/lib/languages/ocaml.js","../../node_modules/highlight.js/lib/languages/openscad.js","../../node_modules/highlight.js/lib/languages/oxygene.js","../../node_modules/highlight.js/lib/languages/parser3.js","../../node_modules/highlight.js/lib/languages/pf.js","../../node_modules/highlight.js/lib/languages/pgsql.js","../../node_modules/highlight.js/lib/languages/php.js","../../node_modules/highlight.js/lib/languages/php-template.js","../../node_modules/highlight.js/lib/languages/plaintext.js","../../node_modules/highlight.js/lib/languages/pony.js","../../node_modules/highlight.js/lib/languages/powershell.js","../../node_modules/highlight.js/lib/languages/processing.js","../../node_modules/highlight.js/lib/languages/profile.js","../../node_modules/highlight.js/lib/languages/prolog.js","../../node_modules/highlight.js/lib/languages/properties.js","../../node_modules/highlight.js/lib/languages/protobuf.js","../../node_modules/highlight.js/lib/languages/puppet.js","../../node_modules/highlight.js/lib/languages/purebasic.js","../../node_modules/highlight.js/lib/languages/python.js","../../node_modules/highlight.js/lib/languages/python-repl.js","../../node_modules/highlight.js/lib/languages/q.js","../../node_modules/highlight.js/lib/languages/qml.js","../../node_modules/highlight.js/lib/languages/r.js","../../node_modules/highlight.js/lib/languages/reasonml.js","../../node_modules/highlight.js/lib/languages/rib.js","../../node_modules/highlight.js/lib/languages/roboconf.js","../../node_modules/highlight.js/lib/languages/routeros.js","../../node_modules/highlight.js/lib/languages/rsl.js","../../node_modules/highlight.js/lib/languages/ruleslanguage.js","../../node_modules/highlight.js/lib/languages/rust.js","../../node_modules/highlight.js/lib/languages/sas.js","../../node_modules/highlight.js/lib/languages/scala.js","../../node_modules/highlight.js/lib/languages/scheme.js","../../node_modules/highlight.js/lib/languages/scilab.js","../../node_modules/highlight.js/lib/languages/scss.js","../../node_modules/highlight.js/lib/languages/shell.js","../../node_modules/highlight.js/lib/languages/smali.js","../../node_modules/highlight.js/lib/languages/smalltalk.js","../../node_modules/highlight.js/lib/languages/sml.js","../../node_modules/highlight.js/lib/languages/sqf.js","../../node_modules/highlight.js/lib/languages/sql.js","../../node_modules/highlight.js/lib/languages/stan.js","../../node_modules/highlight.js/lib/languages/stata.js","../../node_modules/highlight.js/lib/languages/step21.js","../../node_modules/highlight.js/lib/languages/stylus.js","../../node_modules/highlight.js/lib/languages/subunit.js","../../node_modules/highlight.js/lib/languages/swift.js","../../node_modules/highlight.js/lib/languages/taggerscript.js","../../node_modules/highlight.js/lib/languages/yaml.js","../../node_modules/highlight.js/lib/languages/tap.js","../../node_modules/highlight.js/lib/languages/tcl.js","../../node_modules/highlight.js/lib/languages/thrift.js","../../node_modules/highlight.js/lib/languages/tp.js","../../node_modules/highlight.js/lib/languages/twig.js","../../node_modules/highlight.js/lib/languages/typescript.js","../../node_modules/highlight.js/lib/languages/vala.js","../../node_modules/highlight.js/lib/languages/vbnet.js","../../node_modules/highlight.js/lib/languages/vbscript.js","../../node_modules/highlight.js/lib/languages/vbscript-html.js","../../node_modules/highlight.js/lib/languages/verilog.js","../../node_modules/highlight.js/lib/languages/vhdl.js","../../node_modules/highlight.js/lib/languages/vim.js","../../node_modules/highlight.js/lib/languages/wasm.js","../../node_modules/highlight.js/lib/languages/wren.js","../../node_modules/highlight.js/lib/languages/x86asm.js","../../node_modules/highlight.js/lib/languages/xl.js","../../node_modules/highlight.js/lib/languages/xquery.js","../../node_modules/highlight.js/lib/languages/zephir.js","../../node_modules/highlight.js/lib/index.js","../src/index.ts","../src/asciidoc/Admonition.tsx","../../node_modules/html-react-parser/index.mjs","../src/utils.ts","../src/asciidoc/Listing.tsx","../../node_modules/highlight.js/es/index.js","../src/asciidoc/Table.tsx","../src/asciidoc/index.ts","../src/ui/badge/Badge.tsx","../src/ui/button/Button.tsx","../src/ui/spinner/Spinner.tsx","../src/ui/tabs/Tabs.tsx"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;\n/** Types of elements found in htmlparser2's DOM */\nvar ElementType;\n(function (ElementType) {\n /** Type for the root element of a document */\n ElementType[\"Root\"] = \"root\";\n /** Type for Text */\n ElementType[\"Text\"] = \"text\";\n /** Type for */\n ElementType[\"Directive\"] = \"directive\";\n /** Type for */\n ElementType[\"Comment\"] = \"comment\";\n /** Type for