@r2don/react-naver-map
Version:
## Introduction
1,580 lines • 114 kB
JavaScript
import React, { createContext, useContext, useLayoutEffect, useEffect, useRef, useState, useMemo, createElement, memo, forwardRef, useImperativeHandle, isValidElement, cloneElement, useCallback } from "react";
const isClientSide = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
const isFunction = (value) => typeof value === "function";
const entries = (obj) => {
return Object.entries(obj);
};
const mapContext = createContext(null);
const MapContextProvider = ({
children,
value
}) => {
return /* @__PURE__ */ React.createElement(mapContext.Provider, {
value
}, children);
};
const useMapContext = () => {
const map = useContext(mapContext);
if (!map)
throw new Error("map is not accessible");
return map;
};
const useIsomorphicLayoutEffect = isClientSide ? useLayoutEffect : useEffect;
const useEventHandlers = (map, eventHandlers) => {
useIsomorphicLayoutEffect(() => {
if (!map)
return;
const addListener = (key, handler) => {
return naver.maps.Event.addListener(map, key, handler);
};
const events = entries(eventHandlers).map(([key, handler]) => {
if (!handler)
return;
switch (key) {
case "onDoubleClick":
return addListener("dblclick", handler);
case "onZoomChange":
return addListener("zoom_changed", handler);
default:
return addListener(key.slice(2).toLowerCase(), handler);
}
});
return () => {
naver.maps.Event.removeListener(events.filter((listener) => !!listener));
};
}, [map, eventHandlers]);
};
const HANDLERS = {
onClick: true,
onDoubleClick: true,
onKeyDown: true,
onKeyUp: true,
onZoomChange: true,
onDragStart: true,
onDrag: true,
onDragEnd: true,
onMouseOut: true,
onMouseMove: true,
onMouseOver: true,
onMouseDown: true,
onMouseUp: true,
onMouseWheel: true
};
const isEventHandlerKey = (key) => {
return HANDLERS[key];
};
const INITIAL_LEVEL = 5;
const Map$1 = ({
as = "div",
children,
center = { latitude: 37.566535, longitude: 126.977969 },
zoom = INITIAL_LEVEL,
className,
style,
...rest
}) => {
const { eventHandlers, mapOptions } = entries(rest).reduce((acc, [key, value]) => {
if (isEventHandlerKey(key)) {
acc.eventHandlers[key] = value;
} else {
acc.mapOptions[key] = value;
}
return acc;
}, { mapOptions: {}, eventHandlers: {} });
const { latitude, longitude } = center;
const centerRef = useRef(new naver.maps.LatLng(latitude, longitude));
const ref = useRef(null);
const initializing = useRef(false);
const [map, setMap] = useState(null);
const [init, setInit] = useState(false);
useIsomorphicLayoutEffect(() => {
if (!ref.current || initializing.current)
return;
initializing.current = true;
const map2 = new naver.maps.Map(ref.current, {
center: centerRef.current,
zoom,
...mapOptions
});
const listener = map2.addListener("init", () => setInit(true));
setMap(map2);
return () => {
if (initializing.current) {
initializing.current = false;
return;
}
map2.removeListener(listener);
map2.destroy();
};
}, []);
const memoizedMap = useMemo(() => map, [map]);
useEventHandlers(map, eventHandlers);
return createElement(as, { className, style, ref }, /* @__PURE__ */ React.createElement(MapContextProvider, {
value: memoizedMap
}, init && map && children));
};
const POSITION_MAP = {
CENTER: 0,
TOP_LEFT: 1,
TOP_CENTER: 2,
TOP_RIGHT: 3,
LEFT_CENTER: 4,
LEFT_TOP: 5,
LEFT_BOTTOM: 6,
RIGHT_TOP: 7,
RIGHT_CENTER: 8,
RIGHT_BOTTOM: 9,
BOTTOM_LEFT: 10,
BOTTOM_CENTER: 11,
BOTTOM_RIGHT: 12
};
const ZOOM_SIZE = {
LARGE: 1,
SMALL: 2
};
const ZoomControl = ({
position,
size,
legendDisabled
}) => {
const map = useMapContext();
useIsomorphicLayoutEffect(() => {
const control = new naver.maps.ZoomControl({
position: POSITION_MAP[position],
style: ZOOM_SIZE[size],
legendDisabled
});
control.setMap(map);
return () => {
control.setMap(null);
};
}, [map, size, position, legendDisabled]);
return null;
};
var reactDomServerLegacy_browser_production_min = {};
/**
* @license React
* react-dom-server-legacy.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.
*/
var aa$1 = React;
function l$2(a) {
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
b += "&args[]=" + encodeURIComponent(arguments[c]);
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
var p$1 = Object.prototype.hasOwnProperty, fa$1 = /^[: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]*$/, ha$1 = {}, ia$1 = {};
function ja$1(a) {
if (p$1.call(ia$1, a))
return true;
if (p$1.call(ha$1, a))
return false;
if (fa$1.test(a))
return ia$1[a] = true;
ha$1[a] = true;
return false;
}
function r(a, b, c, d, f, e, g) {
this.acceptsBooleans = 2 === b || 3 === b || 4 === b;
this.attributeName = d;
this.attributeNamespace = f;
this.mustUseProperty = c;
this.propertyName = a;
this.type = b;
this.sanitizeURL = e;
this.removeEmptyString = g;
}
var t$1 = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) {
t$1[a] = new r(a, 0, false, a, null, false, false);
});
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) {
var b = a[0];
t$1[b] = new r(b, 1, false, a[1], null, false, false);
});
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) {
t$1[a] = new r(a, 2, false, a.toLowerCase(), null, false, false);
});
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) {
t$1[a] = new r(a, 2, false, a, null, false, false);
});
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) {
t$1[a] = new r(a, 3, false, a.toLowerCase(), null, false, false);
});
["checked", "multiple", "muted", "selected"].forEach(function(a) {
t$1[a] = new r(a, 3, true, a, null, false, false);
});
["capture", "download"].forEach(function(a) {
t$1[a] = new r(a, 4, false, a, null, false, false);
});
["cols", "rows", "size", "span"].forEach(function(a) {
t$1[a] = new r(a, 6, false, a, null, false, false);
});
["rowSpan", "start"].forEach(function(a) {
t$1[a] = new r(a, 5, false, a.toLowerCase(), null, false, false);
});
var ka$1 = /[\-:]([a-z])/g;
function la$1(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(ka$1, la$1);
t$1[b] = new r(b, 1, false, a, null, false, false);
});
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) {
var b = a.replace(ka$1, la$1);
t$1[b] = new r(b, 1, false, a, "http://www.w3.org/1999/xlink", false, false);
});
["xml:base", "xml:lang", "xml:space"].forEach(function(a) {
var b = a.replace(ka$1, la$1);
t$1[b] = new r(b, 1, false, a, "http://www.w3.org/XML/1998/namespace", false, false);
});
["tabIndex", "crossOrigin"].forEach(function(a) {
t$1[a] = new r(a, 1, false, a.toLowerCase(), null, false, false);
});
t$1.xlinkHref = new r("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false);
["src", "href", "action", "formAction"].forEach(function(a) {
t$1[a] = new r(a, 1, false, a.toLowerCase(), null, true, true);
});
var u$1 = {
animationIterationCount: true,
aspectRatio: true,
borderImageOutset: true,
borderImageSlice: true,
borderImageWidth: true,
boxFlex: true,
boxFlexGroup: true,
boxOrdinalGroup: true,
columnCount: true,
columns: true,
flex: true,
flexGrow: true,
flexPositive: true,
flexShrink: true,
flexNegative: true,
flexOrder: true,
gridArea: true,
gridRow: true,
gridRowEnd: true,
gridRowSpan: true,
gridRowStart: true,
gridColumn: true,
gridColumnEnd: true,
gridColumnSpan: true,
gridColumnStart: true,
fontWeight: true,
lineClamp: true,
lineHeight: true,
opacity: true,
order: true,
orphans: true,
tabSize: true,
widows: true,
zIndex: true,
zoom: true,
fillOpacity: true,
floodOpacity: true,
stopOpacity: true,
strokeDasharray: true,
strokeDashoffset: true,
strokeMiterlimit: true,
strokeOpacity: true,
strokeWidth: true
}, ma = ["Webkit", "ms", "Moz", "O"];
Object.keys(u$1).forEach(function(a) {
ma.forEach(function(b) {
b = b + a.charAt(0).toUpperCase() + a.substring(1);
u$1[b] = u$1[a];
});
});
var na = /["'&<>]/;
function v(a) {
if ("boolean" === typeof a || "number" === typeof a)
return "" + a;
a = "" + a;
var b = na.exec(a);
if (b) {
var c = "", d, f = 0;
for (d = b.index; d < a.length; d++) {
switch (a.charCodeAt(d)) {
case 34:
b = """;
break;
case 38:
b = "&";
break;
case 39:
b = "'";
break;
case 60:
b = "<";
break;
case 62:
b = ">";
break;
default:
continue;
}
f !== d && (c += a.substring(f, d));
f = d + 1;
c += b;
}
a = f !== d ? c + a.substring(f, d) : c;
}
return a;
}
var oa$1 = /([A-Z])/g, pa$1 = /^ms-/, qa$1 = Array.isArray;
function w$1(a, b) {
return { insertionMode: a, selectedValue: b };
}
function ra$1(a, b, c) {
switch (b) {
case "select":
return w$1(1, null != c.value ? c.value : c.defaultValue);
case "svg":
return w$1(2, null);
case "math":
return w$1(3, null);
case "foreignObject":
return w$1(1, null);
case "table":
return w$1(4, null);
case "thead":
case "tbody":
case "tfoot":
return w$1(5, null);
case "colgroup":
return w$1(7, null);
case "tr":
return w$1(6, null);
}
return 4 <= a.insertionMode || 0 === a.insertionMode ? w$1(1, null) : a;
}
var sa$1 = /* @__PURE__ */ new Map();
function ta$1(a, b, c) {
if ("object" !== typeof c)
throw Error(l$2(62));
b = true;
for (var d in c)
if (p$1.call(c, d)) {
var f = c[d];
if (null != f && "boolean" !== typeof f && "" !== f) {
if (0 === d.indexOf("--")) {
var e = v(d);
f = v(("" + f).trim());
} else {
e = d;
var g = sa$1.get(e);
void 0 !== g ? e = g : (g = v(e.replace(oa$1, "-$1").toLowerCase().replace(pa$1, "-ms-")), sa$1.set(e, g), e = g);
f = "number" === typeof f ? 0 === f || p$1.call(u$1, d) ? "" + f : f + "px" : v(("" + f).trim());
}
b ? (b = false, a.push(' style="', e, ":", f)) : a.push(";", e, ":", f);
}
}
b || a.push('"');
}
function x$1(a, b, c, d) {
switch (c) {
case "style":
ta$1(a, b, d);
return;
case "defaultValue":
case "defaultChecked":
case "innerHTML":
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
return;
}
if (!(2 < c.length) || "o" !== c[0] && "O" !== c[0] || "n" !== c[1] && "N" !== c[1]) {
if (b = t$1.hasOwnProperty(c) ? t$1[c] : null, null !== b) {
switch (typeof d) {
case "function":
case "symbol":
return;
case "boolean":
if (!b.acceptsBooleans)
return;
}
c = b.attributeName;
switch (b.type) {
case 3:
d && a.push(" ", c, '=""');
break;
case 4:
true === d ? a.push(" ", c, '=""') : false !== d && a.push(" ", c, '="', v(d), '"');
break;
case 5:
isNaN(d) || a.push(" ", c, '="', v(d), '"');
break;
case 6:
!isNaN(d) && 1 <= d && a.push(" ", c, '="', v(d), '"');
break;
default:
b.sanitizeURL && (d = "" + d), a.push(" ", c, '="', v(d), '"');
}
} else if (ja$1(c)) {
switch (typeof d) {
case "function":
case "symbol":
return;
case "boolean":
if (b = c.toLowerCase().slice(0, 5), "data-" !== b && "aria-" !== b)
return;
}
a.push(" ", c, '="', v(d), '"');
}
}
}
function y$1(a, b, c) {
if (null != b) {
if (null != c)
throw Error(l$2(60));
if ("object" !== typeof b || !("__html" in b))
throw Error(l$2(61));
b = b.__html;
null !== b && void 0 !== b && a.push("" + b);
}
}
function ua$1(a) {
var b = "";
aa$1.Children.forEach(a, function(a2) {
null != a2 && (b += a2);
});
return b;
}
function va$1(a, b, c, d) {
a.push(A(c));
var f = c = null, e;
for (e in b)
if (p$1.call(b, e)) {
var g = b[e];
if (null != g)
switch (e) {
case "children":
c = g;
break;
case "dangerouslySetInnerHTML":
f = g;
break;
default:
x$1(a, d, e, g);
}
}
a.push(">");
y$1(a, f, c);
return "string" === typeof c ? (a.push(v(c)), null) : c;
}
var wa$1 = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, xa$1 = /* @__PURE__ */ new Map();
function A(a) {
var b = xa$1.get(a);
if (void 0 === b) {
if (!wa$1.test(a))
throw Error(l$2(65, a));
b = "<" + a;
xa$1.set(a, b);
}
return b;
}
function ya$1(a, b, c, d, f) {
switch (b) {
case "select":
a.push(A("select"));
var e = null, g = null;
for (n2 in c)
if (p$1.call(c, n2)) {
var h = c[n2];
if (null != h)
switch (n2) {
case "children":
e = h;
break;
case "dangerouslySetInnerHTML":
g = h;
break;
case "defaultValue":
case "value":
break;
default:
x$1(a, d, n2, h);
}
}
a.push(">");
y$1(a, g, e);
return e;
case "option":
g = f.selectedValue;
a.push(A("option"));
var k2 = h = null, m = null;
var n2 = null;
for (e in c)
if (p$1.call(c, e)) {
var q = c[e];
if (null != q)
switch (e) {
case "children":
h = q;
break;
case "selected":
m = q;
break;
case "dangerouslySetInnerHTML":
n2 = q;
break;
case "value":
k2 = q;
default:
x$1(a, d, e, q);
}
}
if (null != g)
if (c = null !== k2 ? "" + k2 : ua$1(h), qa$1(g))
for (d = 0; d < g.length; d++) {
if ("" + g[d] === c) {
a.push(' selected=""');
break;
}
}
else
"" + g === c && a.push(' selected=""');
else
m && a.push(' selected=""');
a.push(">");
y$1(a, n2, h);
return h;
case "textarea":
a.push(A("textarea"));
n2 = g = e = null;
for (h in c)
if (p$1.call(c, h) && (k2 = c[h], null != k2))
switch (h) {
case "children":
n2 = k2;
break;
case "value":
e = k2;
break;
case "defaultValue":
g = k2;
break;
case "dangerouslySetInnerHTML":
throw Error(l$2(91));
default:
x$1(a, d, h, k2);
}
null === e && null !== g && (e = g);
a.push(">");
if (null != n2) {
if (null != e)
throw Error(l$2(92));
if (qa$1(n2) && 1 < n2.length)
throw Error(l$2(93));
e = "" + n2;
}
"string" === typeof e && "\n" === e[0] && a.push("\n");
null !== e && a.push(v("" + e));
return null;
case "input":
a.push(A("input"));
k2 = n2 = h = e = null;
for (g in c)
if (p$1.call(c, g) && (m = c[g], null != m))
switch (g) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(l$2(399, "input"));
case "defaultChecked":
k2 = m;
break;
case "defaultValue":
h = m;
break;
case "checked":
n2 = m;
break;
case "value":
e = m;
break;
default:
x$1(a, d, g, m);
}
null !== n2 ? x$1(a, d, "checked", n2) : null !== k2 && x$1(a, d, "checked", k2);
null !== e ? x$1(a, d, "value", e) : null !== h && x$1(a, d, "value", h);
a.push("/>");
return null;
case "menuitem":
a.push(A("menuitem"));
for (var C2 in c)
if (p$1.call(c, C2) && (e = c[C2], null != e))
switch (C2) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(l$2(400));
default:
x$1(a, d, C2, e);
}
a.push(">");
return null;
case "title":
a.push(A("title"));
e = null;
for (q in c)
if (p$1.call(c, q) && (g = c[q], null != g))
switch (q) {
case "children":
e = g;
break;
case "dangerouslySetInnerHTML":
throw Error(l$2(434));
default:
x$1(a, d, q, g);
}
a.push(">");
return e;
case "listing":
case "pre":
a.push(A(b));
g = e = null;
for (k2 in c)
if (p$1.call(c, k2) && (h = c[k2], null != h))
switch (k2) {
case "children":
e = h;
break;
case "dangerouslySetInnerHTML":
g = h;
break;
default:
x$1(a, d, k2, h);
}
a.push(">");
if (null != g) {
if (null != e)
throw Error(l$2(60));
if ("object" !== typeof g || !("__html" in g))
throw Error(l$2(61));
c = g.__html;
null !== c && void 0 !== c && ("string" === typeof c && 0 < c.length && "\n" === c[0] ? a.push("\n", c) : a.push("" + c));
}
"string" === typeof e && "\n" === e[0] && a.push("\n");
return e;
case "area":
case "base":
case "br":
case "col":
case "embed":
case "hr":
case "img":
case "keygen":
case "link":
case "meta":
case "param":
case "source":
case "track":
case "wbr":
a.push(A(b));
for (var D2 in c)
if (p$1.call(c, D2) && (e = c[D2], null != e))
switch (D2) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(l$2(399, b));
default:
x$1(a, d, D2, e);
}
a.push("/>");
return null;
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":
return va$1(a, c, b, d);
case "html":
return 0 === f.insertionMode && a.push("<!DOCTYPE html>"), va$1(a, c, b, d);
default:
if (-1 === b.indexOf("-") && "string" !== typeof c.is)
return va$1(a, c, b, d);
a.push(A(b));
g = e = null;
for (m in c)
if (p$1.call(c, m) && (h = c[m], null != h))
switch (m) {
case "children":
e = h;
break;
case "dangerouslySetInnerHTML":
g = h;
break;
case "style":
ta$1(a, d, h);
break;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
break;
default:
ja$1(m) && "function" !== typeof h && "symbol" !== typeof h && a.push(" ", m, '="', v(h), '"');
}
a.push(">");
y$1(a, g, e);
return e;
}
}
function za$1(a, b, c) {
a.push('<!--$?--><template id="');
if (null === c)
throw Error(l$2(395));
a.push(c);
return a.push('"></template>');
}
function Aa$1(a, b, c, d) {
switch (c.insertionMode) {
case 0:
case 1:
return a.push('<div hidden id="'), a.push(b.segmentPrefix), b = d.toString(16), a.push(b), a.push('">');
case 2:
return a.push('<svg aria-hidden="true" style="display:none" id="'), a.push(b.segmentPrefix), b = d.toString(16), a.push(b), a.push('">');
case 3:
return a.push('<math aria-hidden="true" style="display:none" id="'), a.push(b.segmentPrefix), b = d.toString(16), a.push(b), a.push('">');
case 4:
return a.push('<table hidden id="'), a.push(b.segmentPrefix), b = d.toString(16), a.push(b), a.push('">');
case 5:
return a.push('<table hidden><tbody id="'), a.push(b.segmentPrefix), b = d.toString(16), a.push(b), a.push('">');
case 6:
return a.push('<table hidden><tr id="'), a.push(b.segmentPrefix), b = d.toString(16), a.push(b), a.push('">');
case 7:
return a.push('<table hidden><colgroup id="'), a.push(b.segmentPrefix), b = d.toString(16), a.push(b), a.push('">');
default:
throw Error(l$2(397));
}
}
function Ba$1(a, b) {
switch (b.insertionMode) {
case 0:
case 1:
return a.push("</div>");
case 2:
return a.push("</svg>");
case 3:
return a.push("</math>");
case 4:
return a.push("</table>");
case 5:
return a.push("</tbody></table>");
case 6:
return a.push("</tr></table>");
case 7:
return a.push("</colgroup></table>");
default:
throw Error(l$2(397));
}
}
var Ca$1 = /[<\u2028\u2029]/g;
function Da$1(a) {
return JSON.stringify(a).replace(Ca$1, function(a2) {
switch (a2) {
case "<":
return "\\u003c";
case "\u2028":
return "\\u2028";
case "\u2029":
return "\\u2029";
default:
throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
}
});
}
function Ea$1(a, b) {
b = void 0 === b ? "" : b;
return { bootstrapChunks: [], startInlineScript: "<script>", placeholderPrefix: b + "P:", segmentPrefix: b + "S:", boundaryPrefix: b + "B:", idPrefix: b, nextSuspenseID: 0, sentCompleteSegmentFunction: false, sentCompleteBoundaryFunction: false, sentClientRenderFunction: false, generateStaticMarkup: a };
}
function Fa$1(a, b, c, d) {
if (c.generateStaticMarkup)
return a.push(v(b)), false;
"" === b ? a = d : (d && a.push("<!-- -->"), a.push(v(b)), a = true);
return a;
}
var B$1 = Object.assign, Ga$1 = Symbol.for("react.element"), Ha$1 = Symbol.for("react.portal"), Ia$1 = Symbol.for("react.fragment"), Ja$1 = Symbol.for("react.strict_mode"), Ka$1 = Symbol.for("react.profiler"), La$1 = Symbol.for("react.provider"), Ma$1 = Symbol.for("react.context"), Na$1 = Symbol.for("react.forward_ref"), Oa$1 = Symbol.for("react.suspense"), Pa$1 = Symbol.for("react.suspense_list"), Qa$1 = Symbol.for("react.memo"), Ra$1 = Symbol.for("react.lazy"), Sa$1 = Symbol.for("react.scope"), Ta$1 = Symbol.for("react.debug_trace_mode"), Ua$1 = Symbol.for("react.legacy_hidden"), Va$1 = Symbol.for("react.default_value"), Wa$1 = Symbol.iterator;
function Xa$1(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 Ia$1:
return "Fragment";
case Ha$1:
return "Portal";
case Ka$1:
return "Profiler";
case Ja$1:
return "StrictMode";
case Oa$1:
return "Suspense";
case Pa$1:
return "SuspenseList";
}
if ("object" === typeof a)
switch (a.$$typeof) {
case Ma$1:
return (a.displayName || "Context") + ".Consumer";
case La$1:
return (a._context.displayName || "Context") + ".Provider";
case Na$1:
var b = a.render;
a = a.displayName;
a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
return a;
case Qa$1:
return b = a.displayName || null, null !== b ? b : Xa$1(a.type) || "Memo";
case Ra$1:
b = a._payload;
a = a._init;
try {
return Xa$1(a(b));
} catch (c) {
}
}
return null;
}
var Ya$1 = {};
function Za$1(a, b) {
a = a.contextTypes;
if (!a)
return Ya$1;
var c = {}, d;
for (d in a)
c[d] = b[d];
return c;
}
var E$1 = null;
function F(a, b) {
if (a !== b) {
a.context._currentValue2 = a.parentValue;
a = a.parent;
var c = b.parent;
if (null === a) {
if (null !== c)
throw Error(l$2(401));
} else {
if (null === c)
throw Error(l$2(401));
F(a, c);
}
b.context._currentValue2 = b.value;
}
}
function $a$1(a) {
a.context._currentValue2 = a.parentValue;
a = a.parent;
null !== a && $a$1(a);
}
function ab$1(a) {
var b = a.parent;
null !== b && ab$1(b);
a.context._currentValue2 = a.value;
}
function bb$1(a, b) {
a.context._currentValue2 = a.parentValue;
a = a.parent;
if (null === a)
throw Error(l$2(402));
a.depth === b.depth ? F(a, b) : bb$1(a, b);
}
function cb$1(a, b) {
var c = b.parent;
if (null === c)
throw Error(l$2(402));
a.depth === c.depth ? F(a, c) : cb$1(a, c);
b.context._currentValue2 = b.value;
}
function G(a) {
var b = E$1;
b !== a && (null === b ? ab$1(a) : null === a ? $a$1(b) : b.depth === a.depth ? F(b, a) : b.depth > a.depth ? bb$1(b, a) : cb$1(b, a), E$1 = a);
}
var db$1 = { isMounted: function() {
return false;
}, enqueueSetState: function(a, b) {
a = a._reactInternals;
null !== a.queue && a.queue.push(b);
}, enqueueReplaceState: function(a, b) {
a = a._reactInternals;
a.replace = true;
a.queue = [b];
}, enqueueForceUpdate: function() {
} };
function eb$1(a, b, c, d) {
var f = void 0 !== a.state ? a.state : null;
a.updater = db$1;
a.props = c;
a.state = f;
var e = { queue: [], replace: false };
a._reactInternals = e;
var g = b.contextType;
a.context = "object" === typeof g && null !== g ? g._currentValue2 : d;
g = b.getDerivedStateFromProps;
"function" === typeof g && (g = g(c, f), f = null === g || void 0 === g ? f : B$1({}, f, g), a.state = f);
if ("function" !== typeof b.getDerivedStateFromProps && "function" !== typeof a.getSnapshotBeforeUpdate && ("function" === typeof a.UNSAFE_componentWillMount || "function" === typeof a.componentWillMount))
if (b = a.state, "function" === typeof a.componentWillMount && a.componentWillMount(), "function" === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(), b !== a.state && db$1.enqueueReplaceState(a, a.state, null), null !== e.queue && 0 < e.queue.length)
if (b = e.queue, g = e.replace, e.queue = null, e.replace = false, g && 1 === b.length)
a.state = b[0];
else {
e = g ? b[0] : a.state;
f = true;
for (g = g ? 1 : 0; g < b.length; g++) {
var h = b[g];
h = "function" === typeof h ? h.call(a, e, c, d) : h;
null != h && (f ? (f = false, e = B$1({}, e, h)) : B$1(e, h));
}
a.state = e;
}
else
e.queue = null;
}
var fb$1 = { id: 1, overflow: "" };
function gb$1(a, b, c) {
var d = a.id;
a = a.overflow;
var f = 32 - H$1(d) - 1;
d &= ~(1 << f);
c += 1;
var e = 32 - H$1(b) + f;
if (30 < e) {
var g = f - f % 5;
e = (d & (1 << g) - 1).toString(32);
d >>= g;
f -= g;
return { id: 1 << 32 - H$1(b) + f | c << f | d, overflow: e + a };
}
return { id: 1 << e | c << f | d, overflow: a };
}
var H$1 = Math.clz32 ? Math.clz32 : hb$1, ib$1 = Math.log, jb$1 = Math.LN2;
function hb$1(a) {
a >>>= 0;
return 0 === a ? 32 : 31 - (ib$1(a) / jb$1 | 0) | 0;
}
function kb$1(a, b) {
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
}
var lb$1 = "function" === typeof Object.is ? Object.is : kb$1, I$1 = null, ob$1 = null, J$1 = null, K$1 = null, L$1 = false, M$1 = false, N$1 = 0, O$1 = null, P$1 = 0;
function Q$1() {
if (null === I$1)
throw Error(l$2(321));
return I$1;
}
function pb$1() {
if (0 < P$1)
throw Error(l$2(312));
return { memoizedState: null, queue: null, next: null };
}
function qb$1() {
null === K$1 ? null === J$1 ? (L$1 = false, J$1 = K$1 = pb$1()) : (L$1 = true, K$1 = J$1) : null === K$1.next ? (L$1 = false, K$1 = K$1.next = pb$1()) : (L$1 = true, K$1 = K$1.next);
return K$1;
}
function rb$1() {
ob$1 = I$1 = null;
M$1 = false;
J$1 = null;
P$1 = 0;
K$1 = O$1 = null;
}
function sb$1(a, b) {
return "function" === typeof b ? b(a) : b;
}
function tb$1(a, b, c) {
I$1 = Q$1();
K$1 = qb$1();
if (L$1) {
var d = K$1.queue;
b = d.dispatch;
if (null !== O$1 && (c = O$1.get(d), void 0 !== c)) {
O$1.delete(d);
d = K$1.memoizedState;
do
d = a(d, c.action), c = c.next;
while (null !== c);
K$1.memoizedState = d;
return [d, b];
}
return [K$1.memoizedState, b];
}
a = a === sb$1 ? "function" === typeof b ? b() : b : void 0 !== c ? c(b) : b;
K$1.memoizedState = a;
a = K$1.queue = { last: null, dispatch: null };
a = a.dispatch = ub$1.bind(null, I$1, a);
return [K$1.memoizedState, a];
}
function vb$1(a, b) {
I$1 = Q$1();
K$1 = qb$1();
b = void 0 === b ? null : b;
if (null !== K$1) {
var c = K$1.memoizedState;
if (null !== c && null !== b) {
var d = c[1];
a:
if (null === d)
d = false;
else {
for (var f = 0; f < d.length && f < b.length; f++)
if (!lb$1(b[f], d[f])) {
d = false;
break a;
}
d = true;
}
if (d)
return c[0];
}
}
a = a();
K$1.memoizedState = [a, b];
return a;
}
function ub$1(a, b, c) {
if (25 <= P$1)
throw Error(l$2(301));
if (a === I$1)
if (M$1 = true, a = { action: c, next: null }, null === O$1 && (O$1 = /* @__PURE__ */ new Map()), c = O$1.get(b), void 0 === c)
O$1.set(b, a);
else {
for (b = c; null !== b.next; )
b = b.next;
b.next = a;
}
}
function wb$1() {
throw Error(l$2(394));
}
function R$1() {
}
var xb$1 = { readContext: function(a) {
return a._currentValue2;
}, useContext: function(a) {
Q$1();
return a._currentValue2;
}, useMemo: vb$1, useReducer: tb$1, useRef: function(a) {
I$1 = Q$1();
K$1 = qb$1();
var b = K$1.memoizedState;
return null === b ? (a = { current: a }, K$1.memoizedState = a) : b;
}, useState: function(a) {
return tb$1(sb$1, a);
}, useInsertionEffect: R$1, useLayoutEffect: function() {
}, useCallback: function(a, b) {
return vb$1(function() {
return a;
}, b);
}, useImperativeHandle: R$1, useEffect: R$1, useDebugValue: R$1, useDeferredValue: function(a) {
Q$1();
return a;
}, useTransition: function() {
Q$1();
return [
false,
wb$1
];
}, useId: function() {
var a = ob$1.treeContext;
var b = a.overflow;
a = a.id;
a = (a & ~(1 << 32 - H$1(a) - 1)).toString(32) + b;
var c = S$1;
if (null === c)
throw Error(l$2(404));
b = N$1++;
a = ":" + c.idPrefix + "R" + a;
0 < b && (a += "H" + b.toString(32));
return a + ":";
}, useMutableSource: function(a, b) {
Q$1();
return b(a._source);
}, useSyncExternalStore: function(a, b, c) {
if (void 0 === c)
throw Error(l$2(407));
return c();
} }, S$1 = null, yb$1 = aa$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
function zb$1(a) {
console.error(a);
return null;
}
function T$1() {
}
function Ab$1(a, b, c, d, f, e, g, h, k2) {
var m = [], n2 = /* @__PURE__ */ new Set();
b = { destination: null, responseState: b, progressiveChunkSize: void 0 === d ? 12800 : d, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: n2, pingedTasks: m, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: void 0 === f ? zb$1 : f, onAllReady: void 0 === e ? T$1 : e, onShellReady: void 0 === g ? T$1 : g, onShellError: void 0 === h ? T$1 : h, onFatalError: void 0 === k2 ? T$1 : k2 };
c = U$1(b, 0, null, c, false, false);
c.parentFlushed = true;
a = Bb$1(b, a, null, c, n2, Ya$1, null, fb$1);
m.push(a);
return b;
}
function Bb$1(a, b, c, d, f, e, g, h) {
a.allPendingTasks++;
null === c ? a.pendingRootTasks++ : c.pendingTasks++;
var k2 = { node: b, ping: function() {
var b2 = a.pingedTasks;
b2.push(k2);
1 === b2.length && Cb$1(a);
}, blockedBoundary: c, blockedSegment: d, abortSet: f, legacyContext: e, context: g, treeContext: h };
f.add(k2);
return k2;
}
function U$1(a, b, c, d, f, e) {
return { status: 0, id: -1, index: b, parentFlushed: false, chunks: [], children: [], formatContext: d, boundary: c, lastPushedText: f, textEmbedded: e };
}
function V$1(a, b) {
a = a.onError(b);
if (null != a && "string" !== typeof a)
throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof a + '" instead');
return a;
}
function W$1(a, b) {
var c = a.onShellError;
c(b);
c = a.onFatalError;
c(b);
null !== a.destination ? (a.status = 2, a.destination.destroy(b)) : (a.status = 1, a.fatalError = b);
}
function Db$1(a, b, c, d, f) {
I$1 = {};
ob$1 = b;
N$1 = 0;
for (a = c(d, f); M$1; )
M$1 = false, N$1 = 0, P$1 += 1, K$1 = null, a = c(d, f);
rb$1();
return a;
}
function Eb$1(a, b, c, d) {
var f = c.render(), e = d.childContextTypes;
if (null !== e && void 0 !== e) {
var g = b.legacyContext;
if ("function" !== typeof c.getChildContext)
d = g;
else {
c = c.getChildContext();
for (var h in c)
if (!(h in e))
throw Error(l$2(108, Xa$1(d) || "Unknown", h));
d = B$1({}, g, c);
}
b.legacyContext = d;
X$1(a, b, f);
b.legacyContext = g;
} else
X$1(a, b, f);
}
function Fb(a, b) {
if (a && a.defaultProps) {
b = B$1({}, b);
a = a.defaultProps;
for (var c in a)
void 0 === b[c] && (b[c] = a[c]);
return b;
}
return b;
}
function Gb$1(a, b, c, d, f) {
if ("function" === typeof c)
if (c.prototype && c.prototype.isReactComponent) {
f = Za$1(c, b.legacyContext);
var e = c.contextType;
e = new c(d, "object" === typeof e && null !== e ? e._currentValue2 : f);
eb$1(e, c, d, f);
Eb$1(a, b, e, c);
} else {
e = Za$1(c, b.legacyContext);
f = Db$1(a, b, c, d, e);
var g = 0 !== N$1;
if ("object" === typeof f && null !== f && "function" === typeof f.render && void 0 === f.$$typeof)
eb$1(f, c, d, e), Eb$1(a, b, f, c);
else if (g) {
d = b.treeContext;
b.treeContext = gb$1(d, 1, 0);
try {
X$1(a, b, f);
} finally {
b.treeContext = d;
}
} else
X$1(a, b, f);
}
else if ("string" === typeof c) {
f = b.blockedSegment;
e = ya$1(f.chunks, c, d, a.responseState, f.formatContext);
f.lastPushedText = false;
g = f.formatContext;
f.formatContext = ra$1(g, c, d);
Hb$1(a, b, e);
f.formatContext = g;
switch (c) {
case "area":
case "base":
case "br":
case "col":
case "embed":
case "hr":
case "img":
case "input":
case "keygen":
case "link":
case "meta":
case "param":
case "source":
case "track":
case "wbr":
break;
default:
f.chunks.push("</", c, ">");
}
f.lastPushedText = false;
} else {
switch (c) {
case Ua$1:
case Ta$1:
case Ja$1:
case Ka$1:
case Ia$1:
X$1(a, b, d.children);
return;
case Pa$1:
X$1(a, b, d.children);
return;
case Sa$1:
throw Error(l$2(343));
case Oa$1:
a: {
c = b.blockedBoundary;
f = b.blockedSegment;
e = d.fallback;
d = d.children;
g = /* @__PURE__ */ new Set();
var h = { id: null, rootSegmentID: -1, parentFlushed: false, pendingTasks: 0, forceClientRender: false, completedSegments: [], byteSize: 0, fallbackAbortableTasks: g, errorDigest: null }, k2 = U$1(a, f.chunks.length, h, f.formatContext, false, false);
f.children.push(k2);
f.lastPushedText = false;
var m = U$1(a, 0, null, f.formatContext, false, false);
m.parentFlushed = true;
b.blockedBoundary = h;
b.blockedSegment = m;
try {
if (Hb$1(a, b, d), a.responseState.generateStaticMarkup || m.lastPushedText && m.textEmbedded && m.chunks.push("<!-- -->"), m.status = 1, Y$1(h, m), 0 === h.pendingTasks)
break a;
} catch (n2) {
m.status = 4, h.forceClientRender = true, h.errorDigest = V$1(a, n2);
} finally {
b.blockedBoundary = c, b.blockedSegment = f;
}
b = Bb$1(a, e, c, k2, g, b.legacyContext, b.context, b.treeContext);
a.pingedTasks.push(b);
}
return;
}
if ("object" === typeof c && null !== c)
switch (c.$$typeof) {
case Na$1:
d = Db$1(a, b, c.render, d, f);
if (0 !== N$1) {
c = b.treeContext;
b.treeContext = gb$1(c, 1, 0);
try {
X$1(a, b, d);
} finally {
b.treeContext = c;
}
} else
X$1(a, b, d);
return;
case Qa$1:
c = c.type;
d = Fb(c, d);
Gb$1(a, b, c, d, f);
return;
case La$1:
f = d.children;
c = c._context;
d = d.value;
e = c._currentValue2;
c._currentValue2 = d;
g = E$1;
E$1 = d = { parent: g, depth: null === g ? 0 : g.depth + 1, context: c, parentValue: e, value: d };
b.context = d;
X$1(a, b, f);
a = E$1;
if (null === a)
throw Error(l$2(403));
d = a.parentValue;
a.context._currentValue2 = d === Va$1 ? a.context._defaultValue : d;
a = E$1 = a.parent;
b.context = a;
return;
case Ma$1:
d = d.children;
d = d(c._currentValue2);
X$1(a, b, d);
return;
case Ra$1:
f = c._init;
c = f(c._payload);
d = Fb(c, d);
Gb$1(a, b, c, d, void 0);
return;
}
throw Error(l$2(130, null == c ? c : typeof c, ""));
}
}
function X$1(a, b, c) {
b.node = c;
if ("object" === typeof c && null !== c) {
switch (c.$$typeof) {
case Ga$1:
Gb$1(a, b, c.type, c.props, c.ref);
return;
case Ha$1:
throw Error(l$2(257));
case Ra$1:
var d = c._init;
c = d(c._payload);
X$1(a, b, c);
return;
}
if (qa$1(c)) {
Ib$1(a, b, c);
return;
}
null === c || "object" !== typeof c ? d = null : (d = Wa$1 && c[Wa$1] || c["@@iterator"], d = "function" === typeof d ? d : null);
if (d && (d = d.call(c))) {
c = d.next();
if (!c.done) {
var f = [];
do
f.push(c.value), c = d.next();
while (!c.done);
Ib$1(a, b, f);
}
return;
}
a = Object.prototype.toString.call(c);
throw Error(l$2(31, "[object Object]" === a ? "object with keys {" + Object.keys(c).join(", ") + "}" : a));
}
"string" === typeof c ? (d = b.blockedSegment, d.lastPushedText = Fa$1(b.blockedSegment.chunks, c, a.responseState, d.lastPushedText)) : "number" === typeof c && (d = b.blockedSegment, d.lastPushedText = Fa$1(b.blockedSegment.chunks, "" + c, a.responseState, d.lastPushedText));
}
function Ib$1(a, b, c) {
for (var d = c.length, f = 0; f < d; f++) {
var e = b.treeContext;
b.treeContext = gb$1(e, d, f);
try {
Hb$1(a, b, c[f]);
} finally {
b.treeContext = e;
}
}
}
function Hb$1(a, b, c) {
var d = b.blockedSegment.formatContext, f = b.legacyContext, e = b.context;
try {
return X$1(a, b, c);
} catch (k2) {
if (rb$1(), "object" === typeof k2 && null !== k2 && "function" === typeof k2.then) {
c = k2;
var g = b.blockedSegment, h = U$1(a, g.chunks.length, null, g.formatContext, g.lastPushedText, true);
g.children.push(h);
g.lastPushedText = false;
a = Bb$1(a, b.node, b.blockedBoundary, h, b.abortSet, b.legacyContext, b.context, b.treeContext).ping;
c.then(a, a);
b.blockedSegment.formatContext = d;
b.legacyContext = f;
b.context = e;
G(e);
} else
throw b.blockedSegment.formatContext = d, b.legacyContext = f, b.context = e, G(e), k2;
}
}
function Jb$1(a) {
var b = a.blockedBoundary;
a = a.blockedSegment;
a.status = 3;
Kb$1(this, b, a);
}
function Lb$1(a, b, c) {
var d = a.blockedBoundary;
a.blockedSegment.status = 3;
null === d ? (b.allPendingTasks--, 2 !== b.status && (b.status = 2, null !== b.destination && b.destination.push(null))) : (d.pendingTasks--, d.forceClientRender || (d.forceClientRender = true, a = void 0 === c ? Error(l$2(432)) : c, d.errorDigest = b.onError(a), d.parentFlushed && b.clientRenderedBoundaries.push(d)), d.fallbackAbortableTasks.forEach(function(a2) {
return Lb$1(a2, b, c);
}), d.fallbackAbortableTasks.clear(), b.allPendingTasks--, 0 === b.allPendingTasks && (d = b.onAllReady, d()));
}
function Y$1(a, b) {
if (0 === b.chunks.length && 1 === b.children.length && null === b.children[0].boundary) {
var c = b.children[0];
c.id = b.id;
c.parentFlushed = true;
1 === c.status && Y$1(a, c);
} else
a.completedSegments.push(b);
}
function Kb$1(a, b, c) {
if (null === b) {
if (c.parentFlushed) {
if (null !== a.completedRootSegment)
throw Error(l$2(389));
a.completedRootSegment = c;
}
a.pendingRootTasks--;
0 === a.pendingRootTasks && (a.onShellError = T$1, b = a.onShellReady, b());
} else
b.pendingTasks--, b.forceClientRender || (0 === b.pendingTasks ? (c.parentFlushed && 1 === c.status && Y$1(b, c), b.parentFlushed && a.completedBoundaries.push(b), b.fallbackAbortableTasks.forEach(Jb$1, a), b.fallbackAbortableTasks.clear()) : c.parentFlushed && 1 === c.status && (Y$1(b, c), 1 === b.completedSegments.length && b.parentFlushed && a.partialBoundaries.push(b)));
a.allPendingTasks--;
0 === a.allPendingTasks && (a = a.onAllReady, a());
}
function Cb$1(a) {
if (2 !== a.status) {
var b = E$1, c = yb$1.current;
yb$1.current = xb$1;
var d = S$1;
S$1 = a.responseState;
try {
var f = a.pingedTasks, e;
for (e = 0; e < f.length; e++) {
var g = f[e];
var h = a, k2 = g.blockedSegment;
if (0 === k2.status) {
G(g.context);
try {
X$1(h, g, g.node), h.responseState.generateStaticMarkup || k2.lastPushedText && k2.textEmbedded && k2.chunks.push("<!-- -->"), g.abortSet.delete(g), k2.status = 1, Kb$1(h, g.blockedBoundary, k2);
} catch (z2) {
if (rb$1(), "object" === typeof z2 && null !== z2 && "function" === typeof z2.then) {
var m = g.ping;
z2.then(m, m);
} else {
g.abortSet.delete(g);
k2.status = 4;
var n2 = g.blockedBoundary, q = z2, C2 = V$1(h, q);
null === n2 ? W$1(h, q) : (n2.pendingTasks--, n2.forceClientRender || (n2.forceClientRender = true, n2.errorDigest = C2, n2.parentFlushed && h.clientRenderedBoundaries.push(n2)));
h.allPendingTasks--;
if (0 === h.allPendingTasks) {
var D2 = h.onAllReady;
D2();
}
}
} finally {
}
}
}
f.splice(0, e);
null !== a.destination && Mb$1(a, a.destination);
} catch (z2) {
V$1(a, z2), W$1(a, z2);
} finally {
S$1 = d, yb$1.current = c, c === xb$1 && G(b);
}
}
}
function Z$1(a, b, c) {
c.parentFlushed = true;
switch (c.status) {
case 0:
var d = c.id = a.nextSegmentId++;
c.lastPushedText = false;
c.textEmbedded = false;
a = a.responseState;
b.push('<template id="');
b.push(a.placeholderPrefix);
a = d.toString(16);
b.push(a);
return b.push('"></template>');
case 1:
c.status = 2;
var f = true;
d = c.chunks;
var e = 0;
c = c.children;
for (var g = 0; g < c.length; g++) {
for (f = c[g]; e < f.index; e++)
b.push(d[e]);
f = Nb$1(a, b, f);
}
for (; e < d.length - 1; e++)
b.push(d[e]);
e < d.length && (f = b.push(d[e]));
return f;
default:
throw Error(l$2(390));
}
}
function Nb$1(a, b, c) {
var d = c.boundary;
if (null === d)
return Z$1(a, b, c);
d.parentFlushed = true;
if (d.forceClientRender)
return a.responseState.generateStaticMarkup || (d = d.errorDigest, b.push("<!--$!-->"), b.push("<template"), d && (b.push(' data-dgst="'), d = v(d), b.push(d), b.push('"')), b.push("></template>")), Z$1(a, b, c), a = a.responseState.generateStaticMarkup ? true : b.push("<!--/$-->"), a;
if (0 < d.pendingTasks) {
d.rootSegmentID = a.nextSegmentId++;
0 < d.completedSegments.length && a.partialBoundaries.push(d);
var f = a.responseState;
var e = f.nextSuspenseID++;
f = f.boundaryPrefix + e.toString(16);
d = d.id = f;
za$1(b, a.responseState, d);
Z$1(a, b, c);
return b.push("<!--/$-->");
}
if (d.byteSize > a.progressiveChunkSize)
return d.rootSegmentID = a.nextSegmentId++, a.completedBoundaries.push(d), za$1(b, a.responseState, d.id), Z$1(a, b, c), b.push("<!--/$-->");
a.responseState.generateStaticMarkup || b.push("<!--$-->");
c = d.completedSegments;
if (1 !== c.length)
throw Error(l$2(391));
Nb$1(a, b, c[0]);
a = a.responseState.generateStaticMarkup ? true : b.push("<!--/$-->");
return a;
}
function Ob$1(a, b, c) {
Aa$1(b, a.responseState, c.formatContext, c.id);
Nb$1(a, b, c);
return Ba$1(b, c.formatContext);
}
function Pb$1(a, b, c) {
for (var d = c.completedSegments, f = 0; f < d.length; f++)
Qb$1(a, b, c, d[f]);
d.length = 0;
a = a.responseState;
d = c.id;
c = c.rootSegmentID;
b.push(a.startInlineScript);
a.sentCompleteBoundaryFunction ? b.push('$RC("') : (a.sentCompleteBoundaryFunction = true, b.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'));
if (null === d)
throw Error(l$2(395));
c = c.toString(16);
b.push(d);
b.push('","');
b.push(a.segmentPrefix);
b.push(c);
return b.push('")<\/script>');
}
function Qb$1(a, b, c, d) {
if (2 === d.status)
return true;
var f = d.id;
if (-1 === f) {
if (-1 === (d.id = c.rootSegmentID))
throw Error(l$2(392));
return Ob$1(a, b, d);
}
Ob$1(a, b, d);
a = a.responseState;
b.push(a.startInlineScript);
a.sentCompleteSegmentFunction ? b.push('$RS("') : (a.sentCompleteSegmentFunction = true, b.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'));
b.push(a.segmentPrefix);
f = f.toString(16);
b.push(f);
b.push('","');
b.push(a.placeholderPrefix);
b.push