UNPKG

@mankindui/core

Version:

- a react component library - you can see how @mankindui/core can be used via examples: [usage examples](https://github.com/clarklindev/mankindui-test)

1,403 lines 226 kB
import "../../../_virtual/_commonjsHelpers.js"; import { __exports as zt } from "../../../_virtual/react-dom-server-legacy.browser.development.js"; import "../../../_virtual/_react.js"; import "../../../_virtual/_react-dom.js"; import jc from "react"; import $c from "react-dom"; /** * @license React * react-dom-server-legacy.browser.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var fl; function au() { return fl ? zt : (fl = 1, process.env.NODE_ENV !== "production" && function() { function gl(e, n, t, r) { return "" + n + (t === "s" ? "\\73 " : "\\53 ") + r; } function yl(e, n, t, r) { return "" + n + (t === "s" ? "\\u0073" : "\\u0053") + r; } function Bo(e) { return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/, function(n, t) { return t; }); } function zo(e) { var n = JSON.stringify(e); return '"' + e + '"' === n ? e : n; } function Ut(e) { switch (typeof e) { case "string": return JSON.stringify( 10 >= e.length ? e : e.slice(0, 10) + "..." ); case "object": return dn(e) ? "[...]" : e !== null && e.$$typeof === so ? "client" : (e = Bo(e), e === "Object" ? "{...}" : e); case "function": return e.$$typeof === so ? "client" : (e = e.displayName || e.name) ? "function " + e : "function"; default: return String(e); } } function ln(e) { if (typeof e == "string") return e; switch (e) { case gt: return "Suspense"; case rr: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case tr: return ln(e.render); case or: return ln(e.type); case In: var n = e._payload; e = e._init; try { return ln(e(n)); } catch { } } return ""; } function qn(e, n) { var t = Bo(e); if (t !== "Object" && t !== "Array") return t; var r = -1, o = 0; if (dn(e)) if (Ni.has(e)) { var i = Ni.get(e); t = "<" + ln(i) + ">"; for (var a = 0; a < e.length; a++) { var l = e[a]; l = typeof l == "string" ? l : typeof l == "object" && l !== null ? "{" + qn(l) + "}" : "{" + Ut(l) + "}", "" + a === n ? (r = t.length, o = l.length, t += l) : t = 15 > l.length && 40 > t.length + l.length ? t + l : t + "{...}"; } t += "</" + ln(i) + ">"; } else { for (t = "[", i = 0; i < e.length; i++) 0 < i && (t += ", "), a = e[i], a = typeof a == "object" && a !== null ? qn(a) : Ut(a), "" + i === n ? (r = t.length, o = a.length, t += a) : t = 10 > a.length && 40 > t.length + a.length ? t + a : t + "..."; t += "]"; } else if (e.$$typeof === nr) t = "<" + ln(e.type) + "/>"; else { if (e.$$typeof === so) return "client"; if (Ui.has(e)) { for (t = Ui.get(e), t = "<" + (ln(t) || "..."), i = Object.keys(e), a = 0; a < i.length; a++) { t += " ", l = i[a], t += zo(l) + "="; var c = e[l], s = l === n && typeof c == "object" && c !== null ? qn(c) : Ut(c); typeof c != "string" && (s = "{" + s + "}"), l === n ? (r = t.length, o = s.length, t += s) : t = 10 > s.length && 40 > t.length + s.length ? t + s : t + "..."; } t += ">"; } else { for (t = "{", i = Object.keys(e), a = 0; a < i.length; a++) 0 < a && (t += ", "), l = i[a], t += zo(l) + ": ", c = e[l], c = typeof c == "object" && c !== null ? qn(c) : Ut(c), l === n ? (r = t.length, o = c.length, t += c) : t = 10 > c.length && 40 > t.length + c.length ? t + c : t + "..."; t += "}"; } } return n === void 0 ? t : -1 < r && 0 < o ? (e = " ".repeat(r) + "^".repeat(o), ` ` + t + ` ` + e) : ` ` + t; } function Uo(e, n) { var t = e.length & 3, r = e.length - t, o = n; for (n = 0; n < r; ) { var i = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24; ++n, i = 3432918353 * (i & 65535) + ((3432918353 * (i >>> 16) & 65535) << 16) & 4294967295, i = i << 15 | i >>> 17, i = 461845907 * (i & 65535) + ((461845907 * (i >>> 16) & 65535) << 16) & 4294967295, o ^= i, o = o << 13 | o >>> 19, o = 5 * (o & 65535) + ((5 * (o >>> 16) & 65535) << 16) & 4294967295, o = (o & 65535) + 27492 + (((o >>> 16) + 58964 & 65535) << 16); } switch (i = 0, t) { case 3: i ^= (e.charCodeAt(n + 2) & 255) << 16; case 2: i ^= (e.charCodeAt(n + 1) & 255) << 8; case 1: i ^= e.charCodeAt(n) & 255, i = 3432918353 * (i & 65535) + ((3432918353 * (i >>> 16) & 65535) << 16) & 4294967295, i = i << 15 | i >>> 17, o ^= 461845907 * (i & 65535) + ((461845907 * (i >>> 16) & 65535) << 16) & 4294967295; } return o ^= e.length, o ^= o >>> 16, o = 2246822507 * (o & 65535) + ((2246822507 * (o >>> 16) & 65535) << 16) & 4294967295, o ^= o >>> 13, o = 3266489909 * (o & 65535) + ((3266489909 * (o >>> 16) & 65535) << 16) & 4294967295, (o ^ o >>> 16) >>> 0; } function Nt(e) { return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object"; } function _t(e) { try { return jn(e), !1; } catch { return !0; } } function jn(e) { return "" + e; } function K(e, n) { if (_t(e)) return console.error( "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", n, Nt(e) ), jn(e); } function No(e, n) { if (_t(e)) return console.error( "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", n, Nt(e) ), jn(e); } function sn(e) { if (_t(e)) return console.error( "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.", Nt(e) ), jn(e); } function Br(e) { return E.call(Yi, e) ? !0 : E.call(_i, e) ? !1 : ls.test(e) ? Yi[e] = !0 : (_i[e] = !0, console.error("Invalid attribute name: `%s`", e), !1); } function zr(e, n) { us[n.type] || n.onChange || n.onInput || n.readOnly || n.disabled || n.value == null || console.error( e === "select" ? "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." : "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." ), n.onChange || n.readOnly || n.disabled || n.checked == null || console.error( "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." ); } function bl(e, n) { if (E.call(Dn, n) && Dn[n]) return !0; if (ds.test(n)) { if (e = "aria-" + n.slice(4).toLowerCase(), e = Gi.hasOwnProperty(e) ? e : null, e == null) return console.error( "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", n ), Dn[n] = !0; if (n !== e) return console.error( "Invalid ARIA attribute `%s`. Did you mean `%s`?", n, e ), Dn[n] = !0; } if (hs.test(n)) { if (e = n.toLowerCase(), e = Gi.hasOwnProperty(e) ? e : null, e == null) return Dn[n] = !0, !1; n !== e && (console.error( "Unknown ARIA attribute `%s`. Did you mean `%s`?", n, e ), Dn[n] = !0); } return !0; } function vl(e, n) { var t = [], r; for (r in n) bl(e, r) || t.push(r); n = t.map(function(o) { return "`" + o + "`"; }).join(", "), t.length === 1 ? console.error( "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", n, e ) : 1 < t.length && console.error( "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", n, e ); } function pl(e, n, t, r) { if (E.call(G, n) && G[n]) return !0; var o = n.toLowerCase(); if (o === "onfocusin" || o === "onfocusout") return console.error( "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React." ), G[n] = !0; if (typeof t == "function" && (e === "form" && n === "action" || e === "input" && n === "formAction" || e === "button" && n === "formAction")) return !0; if (r != null) { if (e = r.possibleRegistrationNames, r.registrationNameDependencies.hasOwnProperty(n)) return !0; if (r = e.hasOwnProperty(o) ? e[o] : null, r != null) return console.error( "Invalid event handler property `%s`. Did you mean `%s`?", n, r ), G[n] = !0; if (Vi.test(n)) return console.error( "Unknown event handler property `%s`. It will be ignored.", n ), G[n] = !0; } else if (Vi.test(n)) return fs.test(n) && console.error( "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", n ), G[n] = !0; if (gs.test(n) || ys.test(n)) return !0; if (o === "innerhtml") return console.error( "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`." ), G[n] = !0; if (o === "aria") return console.error( "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead." ), G[n] = !0; if (o === "is" && t !== null && t !== void 0 && typeof t != "string") return console.error( "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof t ), G[n] = !0; if (typeof t == "number" && isNaN(t)) return console.error( "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", n ), G[n] = !0; if (Zi.hasOwnProperty(o)) { if (o = Zi[o], o !== n) return console.error( "Invalid DOM property `%s`. Did you mean `%s`?", n, o ), G[n] = !0; } else if (n !== o) return console.error( "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", n, o ), G[n] = !0; switch (n) { case "dangerouslySetInnerHTML": case "children": case "style": case "suppressContentEditableWarning": case "suppressHydrationWarning": case "defaultValue": case "defaultChecked": case "innerHTML": case "ref": return !0; case "innerText": case "textContent": return !0; } switch (typeof t) { case "boolean": switch (n) { case "autoFocus": case "checked": case "multiple": case "muted": case "selected": case "contentEditable": case "spellCheck": case "draggable": case "value": case "autoReverse": case "externalResourcesRequired": case "focusable": case "preserveAlpha": case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": case "capture": case "download": case "inert": return !0; default: return o = n.toLowerCase().slice(0, 5), o === "data-" || o === "aria-" ? !0 : (t ? console.error( 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', t, n, n, t, n ) : console.error( 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', t, n, n, t, n, n, n ), G[n] = !0); } case "function": case "symbol": return G[n] = !0, !1; case "string": if (t === "false" || t === "true") { switch (n) { case "checked": case "selected": case "multiple": case "muted": case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": case "inert": break; default: return !0; } console.error( "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", t, n, t === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', n, t ), G[n] = !0; } } return !0; } function wl(e, n, t) { var r = [], o; for (o in n) pl(e, o, n[o], t) || r.push(o); n = r.map(function(i) { return "`" + i + "`"; }).join(", "), r.length === 1 ? console.error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ", n, e ) : 1 < r.length && console.error( "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ", n, e ); } function Tl(e) { return e.replace(ps, function(n, t) { return t.toUpperCase(); }); } function v(e) { if (typeof e == "boolean" || typeof e == "number" || typeof e == "bigint") return "" + e; sn(e), e = "" + e; var n = ws.exec(e); if (n) { var t = "", r, o = 0; for (r = n.index; r < e.length; r++) { switch (e.charCodeAt(r)) { case 34: n = "&quot;"; break; case 38: n = "&amp;"; break; case 39: n = "&#x27;"; break; case 60: n = "&lt;"; break; case 62: n = "&gt;"; break; default: continue; } o !== r && (t += e.slice(o, r)), o = r + 1, t += n; } e = o !== r ? t + e.slice(o, r) : t; } return e; } function $n(e) { return xs.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e; } function _o(e) { return sn(e), ("" + e).replace(Es, yl); } function kl(e, n, t, r, o) { return { idPrefix: e === void 0 ? "" : e, nextFormID: 0, streamingFormat: 0, bootstrapScriptContent: t, bootstrapScripts: r, bootstrapModules: o, instructions: fn, hasBody: !1, hasHtml: !1, unknownResources: {}, dnsResources: {}, connectResources: { default: {}, anonymous: {}, credentials: {} }, imageResources: {}, styleResources: {}, scriptResources: {}, moduleUnknownResources: {}, moduleScriptResources: {} }; } function et() { return { htmlChunks: null, headChunks: null, bodyChunks: null, contribution: na }; } function q(e, n, t) { return { insertionMode: e, selectedValue: n, tagScope: t }; } function Yo(e, n, t) { switch (n) { case "noscript": return q( oe, null, e.tagScope | 1 ); case "select": return q( oe, t.value != null ? t.value : t.defaultValue, e.tagScope ); case "svg": return q(ze, null, e.tagScope); case "picture": return q( oe, null, e.tagScope | 2 ); case "math": return q(lr, null, e.tagScope); case "foreignObject": return q(oe, null, e.tagScope); case "table": return q( sr, null, e.tagScope ); case "thead": case "tbody": case "tfoot": return q( ho, null, e.tagScope ); case "colgroup": return q( go, null, e.tagScope ); case "tr": return q( fo, null, e.tagScope ); case "head": if (e.insertionMode < oe) return q( ar, null, e.tagScope ); break; case "html": if (e.insertionMode === Hn) return q( yt, null, e.tagScope ); } return e.insertionMode >= sr || e.insertionMode < oe ? q(oe, null, e.tagScope) : e; } function Go(e, n) { if (typeof n != "object") throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." ); var t = !0, r; for (r in n) if (E.call(n, r)) { var o = n[r]; if (o != null && typeof o != "boolean" && o !== "") { if (r.indexOf("--") === 0) { var i = v(r); No(o, r), o = v(("" + o).trim()); } else { i = r; var a = o; if (-1 < i.indexOf("-")) { var l = i; Ln.hasOwnProperty(l) && Ln[l] || (Ln[l] = !0, console.error( "Unsupported style property %s. Did you mean %s?", l, Tl(l.replace(vs, "ms-")) )); } else if (bs.test(i)) l = i, Ln.hasOwnProperty(l) && Ln[l] || (Ln[l] = !0, console.error( "Unsupported vendor-prefixed style property %s. Did you mean %s?", l, l.charAt(0).toUpperCase() + l.slice(1) )); else if (Qi.test(a)) { l = i; var c = a; co.hasOwnProperty(c) && co[c] || (co[c] = !0, console.error( `Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, l, c.replace( Qi, "" ) )); } typeof a == "number" && (isNaN(a) ? Ji || (Ji = !0, console.error( "`NaN` is an invalid value for the `%s` css style property.", i )) : isFinite(a) || Ki || (Ki = !0, console.error( "`Infinity` is an invalid value for the `%s` css style property.", i ))), i = r, a = ta.get(i), a !== void 0 || (a = v( i.replace(Ts, "-$1").toLowerCase().replace(ks, "-ms-") ), ta.set(i, a)), i = a, typeof o == "number" ? o = o === 0 || ss.has(r) ? "" + o : o + "px" : (No(o, r), o = v( ("" + o).trim() )); } t ? (t = !1, e.push( Cs, i, ra, o )) : e.push(Ps, i, ra, o); } } t || e.push(ie); } function Ur(e, n, t) { t && typeof t != "function" && typeof t != "symbol" && e.push(X, n, yo); } function B(e, n, t) { typeof t != "function" && typeof t != "symbol" && typeof t != "boolean" && e.push( X, n, ue, v(t), ie ); } function Nr(e, n) { this.push('<input type="hidden"'), Xo(e), B(this, "name", n), B(this, "value", e), this.push(bt); } function Xo(e) { if (typeof e != "string") throw Error( "File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration." ); } function Zo(e, n) { if (typeof n.$$FORM_ACTION == "function") { var t = e.nextFormID++; e = e.idPrefix + t; try { var r = n.$$FORM_ACTION(e); if (r) { var o = r.data; o != null && o.forEach(Xo); } return r; } catch (i) { if (typeof i == "object" && i !== null && typeof i.then == "function") throw i; console.error( `Failed to serialize an action for progressive enhancement: %s`, i ); } } return null; } function Vo(e, n, t, r, o, i, a, l) { var c = null; if (typeof r == "function") { l === null || da || (da = !0, console.error( 'Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.' )), o === null && i === null || hr || (hr = !0, console.error( "Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden." )), a === null || ur || (ur = !0, console.error( "Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window." )); var s = Zo(n, r); s !== null ? (l = s.name, r = s.action || "", o = s.encType, i = s.method, a = s.target, c = s.data) : (e.push( X, "formAction", ue, oa, ie ), a = i = o = r = l = null, Jo(n, t)); } return l != null && x(e, "name", l), r != null && x(e, "formAction", r), o != null && x(e, "formEncType", o), i != null && x(e, "formMethod", i), a != null && x(e, "formTarget", a), c; } function x(e, n, t) { switch (n) { case "className": B(e, "class", t); break; case "tabIndex": B(e, "tabindex", t); break; case "dir": case "role": case "viewBox": case "width": case "height": B(e, n, t); break; case "style": Go(e, t); break; case "src": case "href": if (t === "") { console.error( n === "src" ? 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.' : 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', n, n ); break; } case "action": case "formAction": if (t == null || typeof t == "function" || typeof t == "symbol" || typeof t == "boolean") break; K(t, n), t = $n("" + t), e.push( X, n, ue, v(t), ie ); break; case "defaultValue": case "defaultChecked": case "innerHTML": case "suppressContentEditableWarning": case "suppressHydrationWarning": case "ref": break; case "autoFocus": case "multiple": case "muted": Ur(e, n.toLowerCase(), t); break; case "xlinkHref": if (typeof t == "function" || typeof t == "symbol" || typeof t == "boolean") break; K(t, n), t = $n("" + t), e.push( X, "xlink:href", ue, v(t), ie ); break; case "contentEditable": case "spellCheck": case "draggable": case "value": case "autoReverse": case "externalResourcesRequired": case "focusable": case "preserveAlpha": typeof t != "function" && typeof t != "symbol" && e.push( X, n, ue, v(t), ie ); break; case "inert": t !== "" || ea[n] || (ea[n] = !0, console.error( "Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", n )); case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": t && typeof t != "function" && typeof t != "symbol" && e.push(X, n, yo); break; case "capture": case "download": t === !0 ? e.push(X, n, yo) : t !== !1 && typeof t != "function" && typeof t != "symbol" && e.push( X, n, ue, v(t), ie ); break; case "cols": case "rows": case "size": case "span": typeof t != "function" && typeof t != "symbol" && !isNaN(t) && 1 <= t && e.push( X, n, ue, v(t), ie ); break; case "rowSpan": case "start": typeof t == "function" || typeof t == "symbol" || isNaN(t) || e.push( X, n, ue, v(t), ie ); break; case "xlinkActuate": B(e, "xlink:actuate", t); break; case "xlinkArcrole": B(e, "xlink:arcrole", t); break; case "xlinkRole": B(e, "xlink:role", t); break; case "xlinkShow": B(e, "xlink:show", t); break; case "xlinkTitle": B(e, "xlink:title", t); break; case "xlinkType": B(e, "xlink:type", t); break; case "xmlBase": B(e, "xml:base", t); break; case "xmlLang": B(e, "xml:lang", t); break; case "xmlSpace": B(e, "xml:space", t); break; default: if ((!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") && (n = cs.get(n) || n, Br(n))) { switch (typeof t) { case "function": case "symbol": return; case "boolean": var r = n.toLowerCase().slice(0, 5); if (r !== "data-" && r !== "aria-") return; } e.push( X, n, ue, v(t), ie ); } } } function ee(e, n, t) { if (n != null) { if (t != null) throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." ); if (typeof n != "object" || !("__html" in n)) throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." ); n = n.__html, n != null && (sn(n), e.push("" + n)); } } function Qo(e, n) { var t = e[n]; t != null && (t = dn(t), e.multiple && !t ? console.error( "The `%s` prop supplied to <select> must be an array if `multiple` is true.", n ) : !e.multiple && t && console.error( "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.", n )); } function xl(e) { var n = ""; return Di.Children.forEach(e, function(t) { t != null && (n += t, ca || typeof t == "string" || typeof t == "number" || typeof t == "bigint" || (ca = !0, console.error( "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>." ))); }), n; } function Jo(e, n) { (e.instructions & 16) === fn && (e.instructions |= 16, n.bootstrapChunks.unshift( n.startInlineScript, Ss, "<\/script>" )); } function Y(e, n) { e.push(M("link")); for (var t in n) if (E.call(n, t)) { var r = n[t]; if (r != null) switch (t) { case "children": case "dangerouslySetInnerHTML": throw Error( "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); default: x(e, t, r); } } return e.push(bt), null; } function Ko(e) { return sn(e), ("" + e).replace(ms, gl); } function Sn(e, n, t) { e.push(M(t)); for (var r in n) if (E.call(n, r)) { var o = n[r]; if (o != null) switch (r) { case "children": case "dangerouslySetInnerHTML": throw Error( t + " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); default: x(e, r, o); } } return e.push(bt), null; } function qo(e, n) { e.push(M("title")); var t = null, r = null, o; for (o in n) if (E.call(n, o)) { var i = n[o]; if (i != null) switch (o) { case "children": t = i; break; case "dangerouslySetInnerHTML": r = i; break; default: x(e, o, i); } } return e.push(z), n = Array.isArray(t) ? 2 > t.length ? t[0] : null : t, typeof n != "function" && typeof n != "symbol" && n !== null && n !== void 0 && e.push(v("" + n)), ee(e, r, t), e.push(cn("title")), null; } function Yt(e, n) { e.push(M("script")); var t = null, r = null, o; for (o in n) if (E.call(n, o)) { var i = n[o]; if (i != null) switch (o) { case "children": t = i; break; case "dangerouslySetInnerHTML": r = i; break; default: x(e, o, i); } } return e.push(z), t != null && typeof t != "string" && (n = typeof t == "number" ? "a number for children" : Array.isArray(t) ? "an array for children" : "something unexpected for children", console.error( "A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.", n )), ee(e, r, t), typeof t == "string" && e.push(_o(t)), e.push(cn("script")), null; } function _r(e, n, t) { e.push(M(t)); var r = t = null, o; for (o in n) if (E.call(n, o)) { var i = n[o]; if (i != null) switch (o) { case "children": t = i; break; case "dangerouslySetInnerHTML": r = i; break; default: x(e, o, i); } } return e.push(z), ee(e, r, t), t; } function Gt(e, n, t) { e.push(M(t)); var r = t = null, o; for (o in n) if (E.call(n, o)) { var i = n[o]; if (i != null) switch (o) { case "children": t = i; break; case "dangerouslySetInnerHTML": r = i; break; default: x(e, o, i); } } return e.push(z), ee(e, r, t), typeof t == "string" ? (e.push(v(t)), null) : t; } function M(e) { var n = fa.get(e); if (n === void 0) { if (!Fs.test(e)) throw Error("Invalid tag: " + e); n = "<" + e, fa.set(e, n); } return n; } function Rl(e, n, t, r, o, i, a, l, c, s) { vl(n, t), n !== "input" && n !== "textarea" && n !== "select" || t == null || t.value !== null || Xi || (Xi = !0, n === "select" && t.multiple ? console.error( "`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", n ) : console.error( "`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", n )); e: if (n.indexOf("-") === -1) var d = !1; else switch (n) { case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": d = !1; break e; default: d = !0; } switch (d || typeof t.is == "string" || wl(n, t, null), !t.suppressContentEditableWarning && t.contentEditable && t.children != null && console.error( "A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional." ), l.insertionMode !== ze && l.insertionMode !== lr && n.indexOf("-") === -1 && n.toLowerCase() !== n && console.error( "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", n ), n) { case "div": case "span": case "svg": case "path": break; case "a": e.push(M("a")); var h = null, f = null, g; for (g in t) if (E.call(t, g)) { var u = t[g]; if (u != null) switch (g) { case "children": h = u; break; case "dangerouslySetInnerHTML": f = u; break; case "href": u === "" ? B(e, "href", "") : x(e, g, u); break; default: x(e, g, u); } } if (e.push(z), ee(e, f, h), typeof h == "string") { e.push(v(h)); var p = null; } else p = h; return p; case "g": case "p": case "li": break; case "select": zr("select", t), Qo(t, "value"), Qo(t, "defaultValue"), t.value === void 0 || t.defaultValue === void 0 || la || (console.error( "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components" ), la = !0), e.push(M("select")); var R = null, b = null, w; for (w in t) if (E.call(t, w)) { var L = t[w]; if (L != null) switch (w) { case "children": R = L; break; case "dangerouslySetInnerHTML": b = L; break; case "defaultValue": case "value": break; default: x( e, w, L ); } } return e.push(z), ee(e, b, R), R; case "option": var y = l.selectedValue; e.push(M("option")); var T = null, he = null, U = null, O = null, I; for (I in t) if (E.call(t, I)) { var A = t[I]; if (A != null) switch (I) { case "children": T = A; break; case "selected": U = A, ha || (console.error( "Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>." ), ha = !0); break; case "dangerouslySetInnerHTML": O = A; break; case "value": he = A; default: x( e, I, A ); } } if (y != null) { if (he !== null) { K(he, "value"); var de = "" + he; } else O === null || ua || (ua = !0, console.error( "Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected." )), de = xl(T); if (dn(y)) { for (var j = 0; j < y.length; j++) if (K(y[j], "value"), "" + y[j] === de) { e.push(' selected=""'); break; } } else K(y, "select.value"), "" + y === de && e.push(' selected=""'); } else U && e.push(' selected=""'); return e.push(z), ee(e, O, T), T; case "textarea": zr("textarea", t), t.value === void 0 || t.defaultValue === void 0 || sa || (console.error( "Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components" ), sa = !0), e.push(M("textarea")); var k = null, V = null, P = null, _e; for (_e in t) if (E.call(t, _e)) { var pe = t[_e]; if (pe != null) switch (_e) { case "children": P = pe; break; case "value": k = pe; break; case "defaultValue": V = pe; break; case "dangerouslySetInnerHTML": throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." ); default: x( e, _e, pe ); } } if (k === null && V !== null && (k = V), e.push(z), P != null) { if (console.error( "Use the `defaultValue` or `value` props instead of setting children on <textarea>." ), k != null) throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." ); if (dn(P)) { if (1 < P.length) throw Error("<textarea> can only have at most one child."); sn(P[0]), k = "" + P[0]; } sn(P), k = "" + P; } return typeof k == "string" && k[0] === ` ` && e.push(bo), k !== null && (K(k, "value"), e.push(v("" + k))), null; case "input": zr("input", t), e.push(M("input")); var Pe = null, Ye = null, Se = null, $ = null, we = null, Q = null, fe = null, Te = null, Ge = null, J; for (J in t) if (E.call(t, J)) { var le = t[J]; if (le != null) switch (J) { case "children": case "dangerouslySetInnerHTML": throw Error( "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); case "name": Pe = le; break; case "formAction": Ye = le; break; case "formEncType": Se = le; break; case "formMethod": $ = le; break; case "formTarget": we = le; break; case "defaultChecked": Ge = le; break; case "defaultValue": fe = le; break; case "checked": Te = le; break; case "value": Q = le; break; default: x( e, J, le ); } } Ye === null || t.type === "image" || t.type === "submit" || cr || (cr = !0, console.error( 'An input can only specify a formAction along with type="submit" or type="image".' )); var Cr = Vo( e, r, o, Ye, Se, $, we, Pe ); return Te === null || Ge === null || aa || (console.error( "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", "A component", t.type ), aa = !0), Q === null || fe === null || ia || (console.error( "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", "A component", t.type ), ia = !0), Te !== null ? Ur(e, "checked", Te) : Ge !== null && Ur(e, "checked", Ge), Q !== null ? x(e, "value", Q) : fe !== null && x(e, "value", fe), e.push(bt), Cr != null && Cr.forEach(Nr, e), null; case "button": e.push(M("button")); var bn = null, Pr = null, zn = null, vn = null, Un = null, me = null, Sr = null, je; for (je in t) if (E.call(t, je)) { var ke = t[je]; if (ke != null) switch (je) { case "children": bn = ke; break; case "dangerouslySetInnerHTML": Pr = ke; break; case "name": zn = ke; break; case "formAction": vn = ke; break; case "formEncType": Un = ke; break; case "formMethod": me = ke; break; case "formTarget": Sr = ke; break; default: x( e, je, ke ); } } vn === null || t.type == null || t.type === "submit" || cr || (cr = !0, console.error( 'A button can only specify a formAction along with type="submit" or no type.' )); var Rt = Vo( e, r, o, vn, Un, me, Sr, zn ); if (e.push(z), Rt != null && Rt.forEach(Nr, e), ee(e, Pr, bn), typeof bn == "string") { e.push(v(bn)); var $e = null; } else $e = bn; return $e; case "form": e.push(M("form")); var pn = null, Et = null, Fe = null, en = null, Xe = null, nn = null, wn; for (wn in t) if (E.call(t, wn)) { var Ae = t[wn]; if (Ae != null) switch (wn) { case "children": pn = Ae; break; case "dangerouslySetInnerHTML": Et = Ae; break; case "action": Fe = Ae; break; case "encType": en = Ae; break; case "method": Xe = Ae; break; case "target": nn = Ae; break; default: x( e, wn, Ae ); } } var Ct = null, Pt = null; if (typeof Fe == "function") { en === null && Xe === null || hr || (hr = !0, console.error( "Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden." )), nn === null || ur || (ur = !0, console.error( "Cannot specify a target for a form that specifies a function as the