UNPKG

react-palm

Version:

Elm-like architecture for React apps

1,089 lines (953 loc) 30.3 kB
/** @license React v16.8.4+patch * react-dom-server.browser.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. */ 'use strict'; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } (function (v, E) { "object" === (typeof exports === "undefined" ? "undefined" : _typeof(exports)) && "undefined" !== typeof module ? module.exports = E(require("react")) : "function" === typeof define && define.amd ? define(["react"], E) : v.ReactDOMServer = E(v.React); })(void 0, function (v) { function E(a, b, d, c, f, e, h, g) { if (!a) { a = void 0; if (void 0 === b) a = Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else { var k = [d, c, f, e, h, g], u = 0; a = Error(b.replace(/%s/g, function () { return k[u++]; })); a.name = "Invariant Violation"; } a.framesToPop = 1; throw a; } } function u(a) { for (var b = arguments.length - 1, d = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 0; c < b; c++) { d += "&args[]=" + encodeURIComponent(arguments[c + 1]); } E(!1, "Minified React error #" + a + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", d); } function J(a) { if (null == a) return null; if ("function" === typeof a) return a.displayName || a.name || null; if ("string" === typeof a) return a; switch (a) { case X: return "ConcurrentMode"; case N: return "Fragment"; case Y: return "Portal"; case Z: return "Profiler"; case aa: return "StrictMode"; case O: return "Suspense"; } if ("object" === _typeof(a)) switch (a.$$typeof) { case ba: return "Context.Consumer"; case P: return "Context.Provider"; case ca: var b = a.render; b = b.displayName || b.name || ""; return a.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef"); case da: return J(a.type); case ea: if (a = 1 === a._status ? a._result : null) return J(a); } return null; } function F(a, b) { for (var d = a._threadCount | 0; d <= b; d++) { a[d] = a._currentValue2, a._threadCount = d + 1; } } function ua(a, b, d) { var c = a.contextType; if ("object" === _typeof(c) && null !== c) return F(c, d), c[d]; if (a = a.contextTypes) { d = {}; for (var f in a) { d[f] = b[f]; } b = d; } else b = fa; return b; } function ha(a) { if (ia.call(ja, a)) return !0; if (ia.call(ka, a)) return !1; if (va.test(a)) return ja[a] = !0; ka[a] = !0; return !1; } function wa(a, b, d, c) { if (null !== d && 0 === d.type) return !1; switch (_typeof(b)) { case "function": case "symbol": return !0; case "boolean": if (c) return !1; if (null !== d) return !d.acceptsBooleans; a = a.toLowerCase().slice(0, 5); return "data-" !== a && "aria-" !== a; default: return !1; } } function xa(a, b, d, c) { if (null === b || "undefined" === typeof b || wa(a, b, d, c)) return !0; if (c) return !1; if (null !== d) switch (d.type) { case 3: return !b; case 4: return !1 === b; case 5: return isNaN(b); case 6: return isNaN(b) || 1 > b; } return !1; } function t(a, b, d, c, f) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b; this.attributeName = c; this.attributeNamespace = f; this.mustUseProperty = d; this.propertyName = a; this.type = b; } function C(a) { if ("boolean" === typeof a || "number" === typeof a) return "" + a; a = "" + a; var b = ya.exec(a); if (b) { var d = "", c, f = 0; for (c = b.index; c < a.length; c++) { switch (a.charCodeAt(c)) { case 34: b = "&quot;"; break; case 38: b = "&amp;"; break; case 39: b = "&#x27;"; break; case 60: b = "&lt;"; break; case 62: b = "&gt;"; break; default: continue; } f !== c && (d += a.substring(f, c)); f = c + 1; d += b; } a = f !== c ? d + a.substring(f, c) : d; } return a; } function K() { null === x ? u("307") : void 0; return x; } function la() { 0 < L && u("312"); return { memoizedState: null, queue: null, next: null }; } function Q() { null === k ? null === M ? (G = !1, M = k = la()) : (G = !0, k = M) : null === k.next ? (G = !1, k = k.next = la()) : (G = !0, k = k.next); return k; } function ma(a, b, d, c) { for (; R;) { R = !1, L += 1, k = null, d = a(b, c); } M = x = null; L = 0; k = A = null; return d; } function na(a, b) { return "function" === typeof b ? b(a) : b; } function oa(a, b, d) { x = K(); k = Q(); if (G) { var c = k.queue; b = c.dispatch; if (null !== A && (d = A.get(c), void 0 !== d)) { A.delete(c); c = k.memoizedState; do { c = a(c, d.action), d = d.next; } while (null !== d); k.memoizedState = c; return [c, b]; } return [k.memoizedState, b]; } a = a === na ? "function" === typeof b ? b() : b : void 0 !== d ? d(b) : b; k.memoizedState = a; a = k.queue = { last: null, dispatch: null }; a = a.dispatch = za.bind(null, x, a); return [k.memoizedState, a]; } function za(a, b, d) { 25 > L ? void 0 : u("301"); if (a === x) if (R = !0, a = { action: d, next: null }, null === A && (A = new Map()), d = A.get(b), void 0 === d) A.set(b, a);else { for (b = d; null !== b.next;) { b = b.next; } b.next = a; } } function S() {} function pa(a) { switch (a) { case "svg": return "http://www.w3.org/2000/svg"; case "math": return "http://www.w3.org/1998/Math/MathML"; default: return "http://www.w3.org/1999/xhtml"; } } function Aa(a) { if (void 0 === a || null === a) return a; var b = ""; v.Children.forEach(a, function (a) { null != a && (b += a); }); return b; } function qa(a, b) { void 0 === a && u("152", J(b) || "Component"); } function Ba(a, b, d) { function c(c, f) { var e = ua(f, b, d), g = [], h = !1, m = { isMounted: function isMounted(a) { return !1; }, enqueueForceUpdate: function enqueueForceUpdate(a) { if (null === g) return null; }, enqueueReplaceState: function enqueueReplaceState(a, b) { h = !0; g = [b]; }, enqueueSetState: function enqueueSetState(a, b) { if (null === g) return null; g.push(b); } }, l = void 0; if (f.prototype && f.prototype.isReactComponent) { if (l = new f(c.props, e, m), "function" === typeof f.getDerivedStateFromProps) { var k = f.getDerivedStateFromProps.call(null, c.props, l.state); null != k && (l.state = z({}, l.state, k)); } } else if (x = {}, l = f(c.props, e, m), l = ma(f, c.props, l, e), null == l || null == l.render) { a = l; qa(a, f); return; } l.props = c.props; l.context = e; l.updater = m; m = l.state; void 0 === m && (l.state = m = null); if ("function" === typeof l.UNSAFE_componentWillMount || "function" === typeof l.componentWillMount) if ("function" === typeof l.componentWillMount && "function" !== typeof f.getDerivedStateFromProps && l.componentWillMount(), "function" === typeof l.UNSAFE_componentWillMount && "function" !== typeof f.getDerivedStateFromProps && l.UNSAFE_componentWillMount(), g.length) { m = g; var n = h; g = null; h = !1; if (n && 1 === m.length) l.state = m[0];else { k = n ? m[0] : l.state; var p = !0; for (n = n ? 1 : 0; n < m.length; n++) { var q = m[n]; q = "function" === typeof q ? q.call(l, k, c.props, e) : q; null != q && (p ? (p = !1, k = z({}, k, q)) : z(k, q)); } l.state = k; } } else g = null; a = l.render(); qa(a, f); c = void 0; if ("function" === typeof l.getChildContext && (e = f.childContextTypes, "object" === _typeof(e))) { c = l.getChildContext(); for (var w in c) { w in e ? void 0 : u("108", J(f) || "Unknown", w); } } c && (b = z({}, b, c)); } for (; v.isValidElement(a);) { var f = a, e = f.type; if ("function" !== typeof e) break; c(f, e); } return { child: a, context: b }; } var z = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign, p = "function" === typeof Symbol && Symbol.for, Y = p ? Symbol.for("react.portal") : 60106, N = p ? Symbol.for("react.fragment") : 60107, aa = p ? Symbol.for("react.strict_mode") : 60108, Z = p ? Symbol.for("react.profiler") : 60114, P = p ? Symbol.for("react.provider") : 60109, ba = p ? Symbol.for("react.context") : 60110, X = p ? Symbol.for("react.concurrent_mode") : 60111, ca = p ? Symbol.for("react.forward_ref") : 60112, O = p ? Symbol.for("react.suspense") : 60113, da = p ? Symbol.for("react.memo") : 60115, ea = p ? Symbol.for("react.lazy") : 60116; p = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; p.hasOwnProperty("ReactCurrentDispatcher") || (p.ReactCurrentDispatcher = { current: null }); for (var fa = {}, q = new Uint16Array(16), D = 0; 15 > D; D++) { q[D] = D + 1; } q[15] = 0; var va = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ia = Object.prototype.hasOwnProperty, ka = {}, ja = {}, w = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a) { w[a] = new t(a, 0, !1, a, null); }); [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a) { var b = a[0]; w[b] = new t(b, 1, !1, a[1], null); }); ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) { w[a] = new t(a, 2, !1, a.toLowerCase(), null); }); ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) { w[a] = new t(a, 2, !1, a, null); }); "allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a) { w[a] = new t(a, 3, !1, a.toLowerCase(), null); }); ["checked", "multiple", "muted", "selected"].forEach(function (a) { w[a] = new t(a, 3, !0, a, null); }); ["capture", "download"].forEach(function (a) { w[a] = new t(a, 4, !1, a, null); }); ["cols", "rows", "size", "span"].forEach(function (a) { w[a] = new t(a, 6, !1, a, null); }); ["rowSpan", "start"].forEach(function (a) { w[a] = new t(a, 5, !1, a.toLowerCase(), null); }); var T = /[\-:]([a-z])/g, U = function U(a) { return a[1].toUpperCase(); }; "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a) { var b = a.replace(T, U); w[b] = new t(b, 1, !1, a, null); }); "xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) { var b = a.replace(T, U); w[b] = new t(b, 1, !1, a, "http://www.w3.org/1999/xlink"); }); ["xml:base", "xml:lang", "xml:space"].forEach(function (a) { var b = a.replace(T, U); w[b] = new t(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace"); }); ["tabIndex", "crossOrigin"].forEach(function (a) { w[a] = new t(a, 1, !1, a.toLowerCase(), null); }); var ya = /["'&<>]/, x = null, M = null, k = null, G = !1, R = !1, A = null, L = 0, H = 0, Da = { readContext: function readContext(a, b) { b = H; F(a, b); return a[b]; }, useContext: function useContext(a, b) { K(); b = H; F(a, b); return a[b]; }, useMemo: function useMemo(a, b) { x = K(); k = Q(); b = void 0 === b ? null : b; if (null !== k) { var d = k.memoizedState; if (null !== d && null !== b) { a: { var c = d[1]; if (null === c) c = !1;else { for (var f = 0; f < c.length && f < b.length; f++) { var e = b[f], h = c[f]; if ((e !== h || 0 === e && 1 / e !== 1 / h) && (e === e || h === h)) { c = !1; break a; } } c = !0; } } if (c) return d[0]; } } a = a(); k.memoizedState = [a, b]; return a; }, useReducer: oa, useRef: function useRef(a) { x = K(); k = Q(); var b = k.memoizedState; return null === b ? (a = { current: a }, k.memoizedState = a) : b; }, useState: function useState(a) { return oa(na, a); }, useLayoutEffect: function useLayoutEffect(a, b) {}, useCallback: function useCallback(a, b) { return a; }, useImperativeHandle: S, useEffect: S, useDebugValue: S }, ra = { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }, Ea = z({ menuitem: !0 }, ra), I = { animationIterationCount: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 }, Fa = ["Webkit", "ms", "Moz", "O"]; Object.keys(I).forEach(function (a) { Fa.forEach(function (b) { b = b + a.charAt(0).toUpperCase() + a.substring(1); I[b] = I[a]; }); }); var Ga = /([A-Z])/g, Ha = /^ms-/, B = v.Children.toArray, V = p.ReactCurrentDispatcher, Ia = { listing: !0, pre: !0, textarea: !0 }, Ja = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, sa = {}, W = {}, Ka = Object.prototype.hasOwnProperty, La = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null }, ta = function () { function a(b, d) { if (!(this instanceof a)) throw new TypeError("Cannot call a class as a function"); v.isValidElement(b) ? b.type !== N ? b = [b] : (b = b.props.children, b = v.isValidElement(b) ? [b] : B(b)) : b = B(b); b = { type: null, domNamespace: "http://www.w3.org/1999/xhtml", children: b, childIndex: 0, context: fa, footer: "" }; var c = q[0]; if (0 === c) { var f = q; c = f.length; var e = 2 * c; 65536 >= e ? void 0 : u("304"); var h = new Uint16Array(e); h.set(f); q = h; q[0] = c + 1; for (f = c; f < e - 1; f++) { q[f] = f + 1; } q[e - 1] = 0; } else q[0] = q[c]; this.threadID = c; this.stack = [b]; this.exhausted = !1; this.currentSelectValue = null; this.previousWasTextNode = !1; this.makeStaticMarkup = d; this.suspenseDepth = 0; this.contextIndex = -1; this.contextStack = []; this.contextValueStack = []; } a.prototype.destroy = function () { if (!this.exhausted) { this.exhausted = !0; this.clearProviders(); var a = this.threadID; q[a] = q[0]; q[0] = a; } }; a.prototype.pushProvider = function (a) { var b = ++this.contextIndex, c = a.type._context, f = this.threadID; F(c, f); var e = c[f]; this.contextStack[b] = c; this.contextValueStack[b] = e; c[f] = a.props.value; }; a.prototype.popProvider = function (a) { a = this.contextIndex; var b = this.contextStack[a], c = this.contextValueStack[a]; this.contextStack[a] = null; this.contextValueStack[a] = null; this.contextIndex--; b[this.threadID] = c; }; a.prototype.clearProviders = function () { for (var a = this.contextIndex; 0 <= a; a--) { this.contextStack[a][this.threadID] = this.contextValueStack[a]; } }; a.prototype.read = function (a) { if (this.exhausted) return null; var b = H; H = this.threadID; var c = V.current; V.current = Da; try { for (var f = [""], e = !1; f[0].length < a;) { if (0 === this.stack.length) { this.exhausted = !0; var h = this.threadID; q[h] = q[0]; q[0] = h; break; } var g = this.stack[this.stack.length - 1]; if (e || g.childIndex >= g.children.length) { var k = g.footer; "" !== k && (this.previousWasTextNode = !1); this.stack.pop(); if ("select" === g.type) this.currentSelectValue = null;else if (null != g.type && null != g.type.type && g.type.type.$$typeof === P) this.popProvider(g.type);else if (g.type === O) { this.suspenseDepth--; var p = f.pop(); if (e) { e = !1; var r = g.fallbackFrame; r ? void 0 : u("303"); this.stack.push(r); continue; } else f[this.suspenseDepth] += p; } f[this.suspenseDepth] += k; } else { var m = g.children[g.childIndex++], l = ""; try { l += this.render(m, g.context, g.domNamespace); } catch (Ca) { throw Ca; } finally {} f.length <= this.suspenseDepth && f.push(""); f[this.suspenseDepth] += l; } } return f[0]; } finally { V.current = c, H = b; } }; a.prototype.render = function (a, d, c) { if ("string" === typeof a || "number" === typeof a) { c = "" + a; if ("" === c) return ""; if (this.makeStaticMarkup) return C(c); if (this.previousWasTextNode) return "\x3c!-- --\x3e" + C(c); this.previousWasTextNode = !0; return C(c); } d = Ba(a, d, this.threadID); a = d.child; d = d.context; if (null === a || !1 === a) return ""; if (!v.isValidElement(a)) { if (null != a && null != a.$$typeof) { var b = a.$$typeof; b === Y ? u("257") : void 0; u("258", b.toString()); } a = B(a); this.stack.push({ type: null, domNamespace: c, children: a, childIndex: 0, context: d, footer: "" }); return ""; } b = a.type; if ("string" === typeof b) return this.renderDOM(a, d, c); switch (b) { case aa: case X: case Z: case N: return a = B(a.props.children), this.stack.push({ type: null, domNamespace: c, children: a, childIndex: 0, context: d, footer: "" }), ""; case O: u("294"); } if ("object" === _typeof(b) && null !== b) switch (b.$$typeof) { case ca: x = {}; var e = b.render(a.props, a.ref); e = ma(b.render, a.props, e, a.ref); e = B(e); this.stack.push({ type: null, domNamespace: c, children: e, childIndex: 0, context: d, footer: "" }); return ""; case da: return a = [v.createElement(b.type, z({ ref: a.ref }, a.props))], this.stack.push({ type: null, domNamespace: c, children: a, childIndex: 0, context: d, footer: "" }), ""; case P: return b = B(a.props.children), c = { type: a, domNamespace: c, children: b, childIndex: 0, context: d, footer: "" }, this.pushProvider(a), this.stack.push(c), ""; case ba: b = a.type; e = a.props; var h = this.threadID; F(b, h); b = B(e.children(b[h])); this.stack.push({ type: a, domNamespace: c, children: b, childIndex: 0, context: d, footer: "" }); return ""; case ea: u("295"); } u("130", null == b ? b : _typeof(b), ""); }; a.prototype.renderDOM = function (a, d, c) { var b = a.type.toLowerCase(); "http://www.w3.org/1999/xhtml" === c && pa(b); sa.hasOwnProperty(b) || (Ja.test(b) ? void 0 : u("65", b), sa[b] = !0); var e = a.props; if ("input" === b) e = z({ type: void 0 }, e, { defaultChecked: void 0, defaultValue: void 0, value: null != e.value ? e.value : e.defaultValue, checked: null != e.checked ? e.checked : e.defaultChecked });else if ("textarea" === b) { var h = e.value; if (null == h) { h = e.defaultValue; var g = e.children; null != g && (null != h ? u("92") : void 0, Array.isArray(g) && (1 >= g.length ? void 0 : u("93"), g = g[0]), h = "" + g); null == h && (h = ""); } e = z({}, e, { value: void 0, children: "" + h }); } else if ("select" === b) this.currentSelectValue = null != e.value ? e.value : e.defaultValue, e = z({}, e, { value: void 0 });else if ("option" === b) { g = this.currentSelectValue; var k = Aa(e.children); if (null != g) { var p = null != e.value ? e.value + "" : k; h = !1; if (Array.isArray(g)) for (var r = 0; r < g.length; r++) { if ("" + g[r] === p) { h = !0; break; } } else h = "" + g === p; e = z({ selected: void 0, children: void 0 }, e, { selected: h, children: k }); } } if (h = e) Ea[b] && (null != h.children || null != h.dangerouslySetInnerHTML ? u("137", b, "") : void 0), null != h.dangerouslySetInnerHTML && (null != h.children ? u("60") : void 0, "object" === _typeof(h.dangerouslySetInnerHTML) && "__html" in h.dangerouslySetInnerHTML ? void 0 : u("61")), null != h.style && "object" !== _typeof(h.style) ? u("62", "") : void 0; h = e; g = this.makeStaticMarkup; k = 1 === this.stack.length; p = "<" + a.type; for (y in h) { if (Ka.call(h, y)) { var m = h[y]; if (null != m) { if ("style" === y) { r = void 0; var l = "", q = ""; for (r in m) { if (m.hasOwnProperty(r)) { var n = 0 === r.indexOf("--"), t = m[r]; if (null != t) { var v = r; if (W.hasOwnProperty(v)) v = W[v];else { var x = v.replace(Ga, "-$1").toLowerCase().replace(Ha, "-ms-"); v = W[v] = x; } l += q + v + ":"; q = r; n = null == t || "boolean" === typeof t || "" === t ? "" : n || "number" !== typeof t || 0 === t || I.hasOwnProperty(q) && I[q] ? ("" + t).trim() : t + "px"; l += n; q = ";"; } } } m = l || null; } r = null; b: if (n = b, t = h, -1 === n.indexOf("-")) n = "string" === typeof t.is;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": n = !1; break b; default: n = !0; } if (n) La.hasOwnProperty(y) || (r = y, r = ha(r) && null != m ? r + "=" + ('"' + C(m) + '"') : "");else { n = y; r = m; m = w.hasOwnProperty(n) ? w[n] : null; if (t = "style" !== n) t = null !== m ? 0 === m.type : !(2 < n.length) || "o" !== n[0] && "O" !== n[0] || "n" !== n[1] && "N" !== n[1] ? !1 : !0; t || xa(n, r, m, !1) ? r = "" : null !== m ? (n = m.attributeName, m = m.type, r = 3 === m || 4 === m && !0 === r ? n + '=""' : n + "=" + ('"' + C(r) + '"')) : r = ha(n) ? n + "=" + ('"' + C(r) + '"') : ""; } r && (p += " " + r); } } } g || k && (p += ' data-reactroot=""'); var y = p; h = ""; ra.hasOwnProperty(b) ? y += "/>" : (y += ">", h = "</" + a.type + ">"); a: { g = e.dangerouslySetInnerHTML; if (null != g) { if (null != g.__html) { g = g.__html; break a; } } else if (g = e.children, "string" === typeof g || "number" === typeof g) { g = C(g); break a; } g = null; } null != g ? (e = [], Ia[b] && "\n" === g.charAt(0) && (y += "\n"), y += g) : e = B(e.children); a = a.type; c = null == c || "http://www.w3.org/1999/xhtml" === c ? pa(a) : "http://www.w3.org/2000/svg" === c && "foreignObject" === a ? "http://www.w3.org/1999/xhtml" : c; this.stack.push({ domNamespace: c, type: b, children: e, childIndex: 0, context: d, footer: h }); this.previousWasTextNode = !1; return y; }; return a; }(); p = { renderToString: function renderToString(a) { a = new ta(a, !1); try { return a.read(Infinity); } finally { a.destroy(); } }, renderToStaticMarkup: function renderToStaticMarkup(a) { a = new ta(a, !0); try { return a.read(Infinity); } finally { a.destroy(); } }, renderToNodeStream: function renderToNodeStream() { u("207"); }, renderToStaticNodeStream: function renderToStaticNodeStream() { u("208"); }, version: "16.8.4" }; p = (D = { default: p }, p) || D; return p.default || p; });