You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
36 KiB
99 lines
36 KiB
/**
|
|
* @license React
|
|
* react-dom-server.node.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';var aa=require("util"),ba=require("react"),k=null,l=0,q=!0;
|
|
function r(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<l&&(t(a,k.subarray(0,l)),k=new Uint8Array(2048),l=0),t(a,u.encode(b));else{var c=k;0<l&&(c=k.subarray(l));c=u.encodeInto(b,c);var d=c.read;l+=c.written;d<b.length&&(t(a,k),k=new Uint8Array(2048),l=u.encodeInto(b.slice(d),k).written);2048===l&&(t(a,k),k=new Uint8Array(2048),l=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<l&&(t(a,k.subarray(0,l)),k=new Uint8Array(2048),l=0),t(a,b)):(c=k.length-l,c<b.byteLength&&(0===c?t(a,
|
|
k):(k.set(b.subarray(0,c),l),l+=c,t(a,k),b=b.subarray(c)),k=new Uint8Array(2048),l=0),k.set(b,l),l+=b.byteLength,2048===l&&(t(a,k),k=new Uint8Array(2048),l=0)))}function t(a,b){a=a.write(b);q=q&&a}function v(a,b){r(a,b);return q}function ca(a){k&&0<l&&a.write(k.subarray(0,l));k=null;l=0;q=!0}var u=new aa.TextEncoder;function w(a){return u.encode(a)}
|
|
var x=Object.prototype.hasOwnProperty,da=/^[: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]*$/,ea={},fa={};
|
|
function ha(a){if(x.call(fa,a))return!0;if(x.call(ea,a))return!1;if(da.test(a))return fa[a]=!0;ea[a]=!0;return!1}function y(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 z={};
|
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z[a]=new y(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];z[b]=new y(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z[a]=new y(a,2,!1,a.toLowerCase(),null,!1,!1)});
|
|
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){z[a]=new y(a,2,!1,a,null,!1,!1)});"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){z[a]=new y(a,3,!1,a.toLowerCase(),null,!1,!1)});
|
|
["checked","multiple","muted","selected"].forEach(function(a){z[a]=new y(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){z[a]=new y(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){z[a]=new y(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){z[a]=new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var ia=/[\-:]([a-z])/g;function ja(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(ia,
|
|
ja);z[b]=new y(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(ia,ja);z[b]=new y(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(ia,ja);z[b]=new y(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){z[a]=new y(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
|
z.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){z[a]=new y(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
|
var B={animationIterationCount:!0,aspectRatio:!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},ka=["Webkit","ms","Moz","O"];Object.keys(B).forEach(function(a){ka.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);B[b]=B[a]})});var la=/["'&<>]/;
|
|
function D(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=la.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 ma=/([A-Z])/g,na=/^ms-/,oa=Array.isArray,pa=w("<script>"),qa=w("\x3c/script>"),ra=w('<script src="'),sa=w('<script type="module" src="'),ta=w('" async="">\x3c/script>'),ua=/(<\/|<)(s)(cript)/gi;function va(a,b,c,d){return""+b+("s"===c?"\\u0073":"\\u0053")+d}function E(a,b){return{insertionMode:a,selectedValue:b}}
|
|
function wa(a,b,c){switch(b){case "select":return E(1,null!=c.value?c.value:c.defaultValue);case "svg":return E(2,null);case "math":return E(3,null);case "foreignObject":return E(1,null);case "table":return E(4,null);case "thead":case "tbody":case "tfoot":return E(5,null);case "colgroup":return E(7,null);case "tr":return E(6,null)}return 4<=a.insertionMode||0===a.insertionMode?E(1,null):a}var xa=w("\x3c!-- --\x3e"),ya=new Map,za=w(' style="'),Aa=w(":"),Ba=w(";");
|
|
function Ca(a,b,c){if("object"!==typeof c)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.");b=!0;for(var d in c)if(x.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=D(d);f=D((""+f).trim())}else{e=d;var g=ya.get(e);void 0!==g?e=g:(g=w(D(e.replace(ma,"-$1").toLowerCase().replace(na,"-ms-"))),ya.set(e,g),e=g);f="number"===typeof f?0===f||x.call(B,
|
|
d)?""+f:f+"px":D((""+f).trim())}b?(b=!1,a.push(za,e,Aa,f)):a.push(Ba,e,Aa,f)}}b||a.push(F)}var H=w(" "),I=w('="'),F=w('"'),Da=w('=""');
|
|
function J(a,b,c,d){switch(c){case "style":Ca(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=z.hasOwnProperty(c)?z[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(H,c,Da);break;case 4:!0===d?a.push(H,c,Da):!1!==
|
|
d&&a.push(H,c,I,D(d),F);break;case 5:isNaN(d)||a.push(H,c,I,D(d),F);break;case 6:!isNaN(d)&&1<=d&&a.push(H,c,I,D(d),F);break;default:b.sanitizeURL&&(d=""+d),a.push(H,c,I,D(d),F)}}else if(ha(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(H,c,I,D(d),F)}}var K=w(">"),Ea=w("/>");
|
|
function L(a,b,c){if(null!=b){if(null!=c)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!==typeof b||!("__html"in b))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");b=b.__html;null!==b&&void 0!==b&&a.push(""+b)}}function Fa(a){var b="";ba.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Ga=w(' selected=""');
|
|
function Ha(a,b,c,d){a.push(M(c));var f=c=null,e;for(e in b)if(x.call(b,e)){var g=b[e];if(null!=g)switch(e){case "children":c=g;break;case "dangerouslySetInnerHTML":f=g;break;default:J(a,d,e,g)}}a.push(K);L(a,f,c);return"string"===typeof c?(a.push(D(c)),null):c}var Ia=w("\n"),Ja=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ka=new Map;function M(a){var b=Ka.get(a);if(void 0===b){if(!Ja.test(a))throw Error("Invalid tag: "+a);b=w("<"+a);Ka.set(a,b)}return b}var La=w("<!DOCTYPE html>");
|
|
function Ma(a,b,c,d,f){switch(b){case "select":a.push(M("select"));var e=null,g=null;for(p in c)if(x.call(c,p)){var h=c[p];if(null!=h)switch(p){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "defaultValue":case "value":break;default:J(a,d,p,h)}}a.push(K);L(a,g,e);return e;case "option":g=f.selectedValue;a.push(M("option"));var m=h=null,n=null;var p=null;for(e in c)if(x.call(c,e)&&(b=c[e],null!=b))switch(e){case "children":h=b;break;case "selected":n=b;break;case "dangerouslySetInnerHTML":p=
|
|
b;break;case "value":m=b;default:J(a,d,e,b)}if(null!=g)if(c=null!==m?""+m:Fa(h),oa(g))for(d=0;d<g.length;d++){if(""+g[d]===c){a.push(Ga);break}}else""+g===c&&a.push(Ga);else n&&a.push(Ga);a.push(K);L(a,p,h);return h;case "textarea":a.push(M("textarea"));p=g=e=null;for(h in c)if(x.call(c,h)&&(m=c[h],null!=m))switch(h){case "children":p=m;break;case "value":e=m;break;case "defaultValue":g=m;break;case "dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
|
|
default:J(a,d,h,m)}null===e&&null!==g&&(e=g);a.push(K);if(null!=p){if(null!=e)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(oa(p)&&1<p.length)throw Error("<textarea> can only have at most one child.");e=""+p}"string"===typeof e&&"\n"===e[0]&&a.push(Ia);null!==e&&a.push(D(""+e));return null;case "input":a.push(M("input"));m=p=h=e=null;for(g in c)if(x.call(c,g)&&(n=c[g],null!=n))switch(g){case "children":case "dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
|
|
case "defaultChecked":m=n;break;case "defaultValue":h=n;break;case "checked":p=n;break;case "value":e=n;break;default:J(a,d,g,n)}null!==p?J(a,d,"checked",p):null!==m&&J(a,d,"checked",m);null!==e?J(a,d,"value",e):null!==h&&J(a,d,"value",h);a.push(Ea);return null;case "menuitem":a.push(M("menuitem"));for(var C in c)if(x.call(c,C)&&(e=c[C],null!=e))switch(C){case "children":case "dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:J(a,d,C,e)}a.push(K);
|
|
return null;case "listing":case "pre":a.push(M(b));g=e=null;for(m in c)if(x.call(c,m)&&(h=c[m],null!=h))switch(m){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;default:J(a,d,m,h)}a.push(K);if(null!=g){if(null!=e)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!==typeof g||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
|
|
c=g.__html;null!==c&&void 0!==c&&("string"===typeof c&&0<c.length&&"\n"===c[0]?a.push(Ia,c):a.push(""+c))}"string"===typeof e&&"\n"===e[0]&&a.push(Ia);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(M(b));for(var G in c)if(x.call(c,G)&&(e=c[G],null!=e))switch(G){case "children":case "dangerouslySetInnerHTML":throw Error(b+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
|
|
default:J(a,d,G,e)}a.push(Ea);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 Ha(a,c,b,d);case "html":return 0===f.insertionMode&&a.push(La),Ha(a,c,b,d);default:if(-1===b.indexOf("-")&&"string"!==typeof c.is)return Ha(a,c,b,d);a.push(M(b));g=e=null;for(n in c)if(x.call(c,n)&&(h=c[n],null!=h))switch(n){case "children":e=h;break;case "dangerouslySetInnerHTML":g=
|
|
h;break;case "style":Ca(a,d,h);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:ha(n)&&"function"!==typeof h&&"symbol"!==typeof h&&a.push(H,n,I,D(h),F)}a.push(K);L(a,g,e);return e}}var Na=w("</"),Oa=w(">"),Pa=w('<template id="'),Qa=w('"></template>'),Ra=w("\x3c!--$--\x3e"),Sa=w('\x3c!--$?--\x3e<template id="'),Ta=w('"></template>'),Ua=w("\x3c!--$!--\x3e"),Va=w("\x3c!--/$--\x3e");
|
|
function Wa(a,b,c){r(a,Sa);if(null===c)throw Error("An ID must have been assigned before we can complete the boundary.");r(a,c);return v(a,Ta)}
|
|
var Xa=w('<div hidden id="'),Ya=w('">'),Za=w("</div>"),$a=w('<svg aria-hidden="true" style="display:none" id="'),ab=w('">'),bb=w("</svg>"),cb=w('<math aria-hidden="true" style="display:none" id="'),db=w('">'),eb=w("</math>"),fb=w('<table hidden id="'),gb=w('">'),hb=w("</table>"),ib=w('<table hidden><tbody id="'),jb=w('">'),kb=w("</tbody></table>"),lb=w('<table hidden><tr id="'),mb=w('">'),nb=w("</tr></table>"),ob=w('<table hidden><colgroup id="'),pb=w('">'),qb=w("</colgroup></table>");
|
|
function rb(a,b,c,d){switch(c.insertionMode){case 0:case 1:return r(a,Xa),r(a,b.segmentPrefix),r(a,d.toString(16)),v(a,Ya);case 2:return r(a,$a),r(a,b.segmentPrefix),r(a,d.toString(16)),v(a,ab);case 3:return r(a,cb),r(a,b.segmentPrefix),r(a,d.toString(16)),v(a,db);case 4:return r(a,fb),r(a,b.segmentPrefix),r(a,d.toString(16)),v(a,gb);case 5:return r(a,ib),r(a,b.segmentPrefix),r(a,d.toString(16)),v(a,jb);case 6:return r(a,lb),r(a,b.segmentPrefix),r(a,d.toString(16)),v(a,mb);case 7:return r(a,ob),r(a,
|
|
b.segmentPrefix),r(a,d.toString(16)),v(a,pb);default:throw Error("Unknown insertion mode. This is a bug in React.");}}function sb(a,b){switch(b.insertionMode){case 0:case 1:return v(a,Za);case 2:return v(a,bb);case 3:return v(a,eb);case 4:return v(a,hb);case 5:return v(a,kb);case 6:return v(a,nb);case 7:return v(a,qb);default:throw Error("Unknown insertion mode. This is a bug in React.");}}
|
|
var tb=w('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("'),ub=w('$RS("'),vb=w('","'),wb=w('")\x3c/script>'),xb=w('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("'),
|
|
yb=w('$RC("'),zb=w('","'),Ab=w('")\x3c/script>'),Bb=w('function $RX(a){if(a=document.getElementById(a))a=a.previousSibling,a.data="$!",a._reactRetry&&a._reactRetry()};$RX("'),Cb=w('$RX("'),Db=w('")\x3c/script>'),N=Object.assign,Eb=Symbol.for("react.element"),Fb=Symbol.for("react.portal"),Gb=Symbol.for("react.fragment"),Hb=Symbol.for("react.strict_mode"),Ib=Symbol.for("react.profiler"),Jb=Symbol.for("react.provider"),Kb=Symbol.for("react.context"),Lb=Symbol.for("react.forward_ref"),Mb=Symbol.for("react.suspense"),
|
|
Nb=Symbol.for("react.suspense_list"),Ob=Symbol.for("react.memo"),Pb=Symbol.for("react.lazy"),Qb=Symbol.for("react.scope"),Rb=Symbol.for("react.debug_trace_mode"),Sb=Symbol.for("react.legacy_hidden"),Tb=Symbol.for("react.default_value"),Ub=Symbol.iterator;
|
|
function Vb(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 Gb:return"Fragment";case Fb:return"Portal";case Ib:return"Profiler";case Hb:return"StrictMode";case Mb:return"Suspense";case Nb:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Kb:return(a.displayName||"Context")+".Consumer";case Jb:return(a._context.displayName||"Context")+".Provider";case Lb:var b=a.render;a=a.displayName;a||(a=b.displayName||
|
|
b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case Ob:return b=a.displayName||null,null!==b?b:Vb(a.type)||"Memo";case Pb:b=a._payload;a=a._init;try{return Vb(a(b))}catch(c){}}return null}var Wb={};function Xb(a,b){a=a.contextTypes;if(!a)return Wb;var c={},d;for(d in a)c[d]=b[d];return c}var O=null;
|
|
function P(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");P(a,c)}b.context._currentValue=b.value}}function Yb(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Yb(a)}
|
|
function Zb(a){var b=a.parent;null!==b&&Zb(b);a.context._currentValue=a.value}function $b(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?P(a,b):$b(a,b)}
|
|
function ac(a,b){var c=b.parent;if(null===c)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?P(a,c):ac(a,c);b.context._currentValue=b.value}function Q(a){var b=O;b!==a&&(null===b?Zb(a):null===a?Yb(b):b.depth===a.depth?P(b,a):b.depth>a.depth?$b(b,a):ac(b,a),O=a)}
|
|
var bc={isMounted:function(){return!1},enqueueSetState:function(a,b){a=a._reactInternals;null!==a.queue&&a.queue.push(b)},enqueueReplaceState:function(a,b){a=a._reactInternals;a.replace=!0;a.queue=[b]},enqueueForceUpdate:function(){}};
|
|
function cc(a,b,c,d){var f=void 0!==a.state?a.state:null;a.updater=bc;a.props=c;a.state=f;var e={queue:[],replace:!1};a._reactInternals=e;var g=b.contextType;a.context="object"===typeof g&&null!==g?g._currentValue:d;g=b.getDerivedStateFromProps;"function"===typeof g&&(g=g(c,f),f=null===g||void 0===g?f:N({},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&&bc.enqueueReplaceState(a,a.state,null),null!==e.queue&&0<e.queue.length)if(b=e.queue,g=e.replace,e.queue=null,e.replace=!1,g&&1===b.length)a.state=b[0];else{e=g?b[0]:a.state;f=!0;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=!1,e=N({},e,h)):N(e,h))}a.state=e}else e.queue=null}
|
|
var dc={id:1,overflow:""};function ec(a,b,c){var d=a.id;a=a.overflow;var f=32-fc(d)-1;d&=~(1<<f);c+=1;var e=32-fc(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-fc(b)+f|c<<f|d,overflow:e+a}}return{id:1<<e|c<<f|d,overflow:a}}var fc=Math.clz32?Math.clz32:gc,hc=Math.log,ic=Math.LN2;function gc(a){a>>>=0;return 0===a?32:31-(hc(a)/ic|0)|0}function jc(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}
|
|
var kc="function"===typeof Object.is?Object.is:jc,R=null,lc=null,mc=null,S=null,T=!1,nc=!1,U=0,V=null,oc=0;
|
|
function W(){if(null===R)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return R}
|
|
function pc(){if(0<oc)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function qc(){null===S?null===mc?(T=!1,mc=S=pc()):(T=!0,S=mc):null===S.next?(T=!1,S=S.next=pc()):(T=!0,S=S.next);return S}function rc(){lc=R=null;nc=!1;mc=null;oc=0;S=V=null}function sc(a,b){return"function"===typeof b?b(a):b}
|
|
function tc(a,b,c){R=W();S=qc();if(T){var d=S.queue;b=d.dispatch;if(null!==V&&(c=V.get(d),void 0!==c)){V.delete(d);d=S.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);S.memoizedState=d;return[d,b]}return[S.memoizedState,b]}a=a===sc?"function"===typeof b?b():b:void 0!==c?c(b):b;S.memoizedState=a;a=S.queue={last:null,dispatch:null};a=a.dispatch=uc.bind(null,R,a);return[S.memoizedState,a]}
|
|
function vc(a,b){R=W();S=qc();b=void 0===b?null:b;if(null!==S){var c=S.memoizedState;if(null!==c&&null!==b){var d=c[1];a:if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!kc(b[f],d[f])){d=!1;break a}d=!0}if(d)return c[0]}}a=a();S.memoizedState=[a,b];return a}
|
|
function uc(a,b,c){if(25<=oc)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a===R)if(nc=!0,a={action:c,next:null},null===V&&(V=new Map),c=V.get(b),void 0===c)V.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function wc(){throw Error("startTransition cannot be called during server rendering.");}function xc(){}
|
|
var zc={readContext:function(a){return a._currentValue},useContext:function(a){W();return a._currentValue},useMemo:vc,useReducer:tc,useRef:function(a){R=W();S=qc();var b=S.memoizedState;return null===b?(a={current:a},S.memoizedState=a):b},useState:function(a){return tc(sc,a)},useInsertionEffect:xc,useLayoutEffect:function(){},useCallback:function(a,b){return vc(function(){return a},b)},useImperativeHandle:xc,useEffect:xc,useDebugValue:xc,useDeferredValue:function(a){W();return a},useTransition:function(){W();
|
|
return[!1,wc]},useId:function(){var a=lc.treeContext;var b=a.overflow;a=a.id;a=(a&~(1<<32-fc(a)-1)).toString(32)+b;var c=yc;if(null===c)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");b=U++;a=":"+c.idPrefix+"R"+a;0<b&&(a+="H"+b.toString(32));return a+":"},useMutableSource:function(a,b){W();return b(a._source)},useSyncExternalStore:function(a,b,c){if(void 0===c)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
|
|
return c()}},yc=null,Ac=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Bc(a){console.error(a)}function X(){}function Cc(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&setImmediate(function(){return Dc(a)})}function Ec(a,b,c,d,f,e,g,h){a.allPendingTasks++;null===c?a.pendingRootTasks++:c.pendingTasks++;var m={node:b,ping:function(){return Cc(a,m)},blockedBoundary:c,blockedSegment:d,abortSet:f,legacyContext:e,context:g,treeContext:h};f.add(m);return m}
|
|
function Fc(a,b,c,d){return{status:0,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:c}}function Y(a,b){a=a.onError;a(b)}function Gc(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 Hc(a,b,c,d,f){R={};lc=b;U=0;for(a=c(d,f);nc;)nc=!1,U=0,oc+=1,S=null,a=c(d,f);rc();return a}
|
|
function Ic(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((Vb(d)||"Unknown")+'.getChildContext(): key "'+h+'" is not defined in childContextTypes.');d=N({},g,c)}b.legacyContext=d;Z(a,b,f);b.legacyContext=g}else Z(a,b,f)}
|
|
function Jc(a,b){if(a&&a.defaultProps){b=N({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}
|
|
function Kc(a,b,c,d,f){if("function"===typeof c)if(c.prototype&&c.prototype.isReactComponent){f=Xb(c,b.legacyContext);var e=c.contextType;e=new c(d,"object"===typeof e&&null!==e?e._currentValue:f);cc(e,c,d,f);Ic(a,b,e,c)}else{e=Xb(c,b.legacyContext);f=Hc(a,b,c,d,e);var g=0!==U;if("object"===typeof f&&null!==f&&"function"===typeof f.render&&void 0===f.$$typeof)cc(f,c,d,e),Ic(a,b,f,c);else if(g){d=b.treeContext;b.treeContext=ec(d,1,0);try{Z(a,b,f)}finally{b.treeContext=d}}else Z(a,b,f)}else if("string"===
|
|
typeof c)switch(f=b.blockedSegment,e=Ma(f.chunks,c,d,a.responseState,f.formatContext),g=f.formatContext,f.formatContext=wa(g,c,d),Lc(a,b,e),f.formatContext=g,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(Na,c,Oa)}else{switch(c){case Sb:case Rb:case Hb:case Ib:case Gb:Z(a,b,d.children);return;case Nb:Z(a,b,d.children);return;case Qb:throw Error("ReactDOMServer does not yet support scope components.");
|
|
case Mb:a:{c=b.blockedBoundary;f=b.blockedSegment;e=d.fallback;d=d.children;g=new Set;var h={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:g},m=Fc(a,f.chunks.length,h,f.formatContext);f.children.push(m);var n=Fc(a,0,null,f.formatContext);n.parentFlushed=!0;b.blockedBoundary=h;b.blockedSegment=n;try{if(Lc(a,b,d),n.status=1,Mc(h,n),0===h.pendingTasks)break a}catch(p){n.status=4,Y(a,p),h.forceClientRender=!0}finally{b.blockedBoundary=
|
|
c,b.blockedSegment=f}b=Ec(a,e,c,m,g,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===typeof c&&null!==c)switch(c.$$typeof){case Lb:d=Hc(a,b,c.render,d,f);if(0!==U){c=b.treeContext;b.treeContext=ec(c,1,0);try{Z(a,b,d)}finally{b.treeContext=c}}else Z(a,b,d);return;case Ob:c=c.type;d=Jc(c,d);Kc(a,b,c,d,f);return;case Jb:f=d.children;c=c._context;d=d.value;e=c._currentValue;c._currentValue=d;g=O;O=d={parent:g,depth:null===g?0:g.depth+1,context:c,parentValue:e,value:d};
|
|
b.context=d;Z(a,b,f);a=O;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=d===Tb?a.context._defaultValue:d;a=O=a.parent;b.context=a;return;case Kb:d=d.children;d=d(c._currentValue);Z(a,b,d);return;case Pb:f=c._init;c=f(c._payload);d=Jc(c,d);Kc(a,b,c,d,void 0);return}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((null==
|
|
c?c:typeof c)+"."));}}
|
|
function Z(a,b,c){b.node=c;if("object"===typeof c&&null!==c){switch(c.$$typeof){case Eb:Kc(a,b,c.type,c.props,c.ref);return;case Fb:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Pb:var d=c._init;c=d(c._payload);Z(a,b,c);return}if(oa(c)){Nc(a,b,c);return}null===c||"object"!==typeof c?d=null:(d=Ub&&c[Ub]||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);Nc(a,b,f)}return}b=Object.prototype.toString.call(c);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(c).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}"string"===typeof c?""!==c&&b.blockedSegment.chunks.push(D(c),xa):"number"===typeof c&&(a=""+c,""!==a&&b.blockedSegment.chunks.push(D(a),xa))}
|
|
function Nc(a,b,c){for(var d=c.length,f=0;f<d;f++){var e=b.treeContext;b.treeContext=ec(e,d,f);try{Lc(a,b,c[f])}finally{b.treeContext=e}}}
|
|
function Lc(a,b,c){var d=b.blockedSegment.formatContext,f=b.legacyContext,e=b.context;try{return Z(a,b,c)}catch(m){if(rc(),"object"===typeof m&&null!==m&&"function"===typeof m.then){c=m;var g=b.blockedSegment,h=Fc(a,g.chunks.length,null,g.formatContext);g.children.push(h);a=Ec(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;Q(e)}else throw b.blockedSegment.formatContext=d,b.legacyContext=
|
|
f,b.context=e,Q(e),m;}}function Oc(a){var b=a.blockedBoundary;a=a.blockedSegment;a.status=3;Pc(this,b,a)}
|
|
function Qc(a){var b=a.blockedBoundary;a.blockedSegment.status=3;null===b?(this.allPendingTasks--,2!==this.status&&(this.status=2,null!==this.destination&&this.destination.end())):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.parentFlushed&&this.clientRenderedBoundaries.push(b)),b.fallbackAbortableTasks.forEach(Qc,this),b.fallbackAbortableTasks.clear(),this.allPendingTasks--,0===this.allPendingTasks&&(a=this.onAllReady,a()))}
|
|
function Mc(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=!0;1===c.status&&Mc(a,c)}else a.completedSegments.push(b)}
|
|
function Pc(a,b,c){if(null===b){if(c.parentFlushed){if(null!==a.completedRootSegment)throw Error("There can only be one root segment. This is a bug in React.");a.completedRootSegment=c}a.pendingRootTasks--;0===a.pendingRootTasks&&(a.onShellError=X,b=a.onShellReady,b())}else b.pendingTasks--,b.forceClientRender||(0===b.pendingTasks?(c.parentFlushed&&1===c.status&&Mc(b,c),b.parentFlushed&&a.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(Oc,a),b.fallbackAbortableTasks.clear()):c.parentFlushed&&
|
|
1===c.status&&(Mc(b,c),1===b.completedSegments.length&&b.parentFlushed&&a.partialBoundaries.push(b)));a.allPendingTasks--;0===a.allPendingTasks&&(a=a.onAllReady,a())}
|
|
function Dc(a){if(2!==a.status){var b=O,c=Ac.current;Ac.current=zc;var d=yc;yc=a.responseState;try{var f=a.pingedTasks,e;for(e=0;e<f.length;e++){var g=f[e];var h=a,m=g.blockedSegment;if(0===m.status){Q(g.context);try{Z(h,g,g.node),g.abortSet.delete(g),m.status=1,Pc(h,g.blockedBoundary,m)}catch(A){if(rc(),"object"===typeof A&&null!==A&&"function"===typeof A.then){var n=g.ping;A.then(n,n)}else{g.abortSet.delete(g);m.status=4;var p=g.blockedBoundary,C=A;Y(h,C);null===p?Gc(h,C):(p.pendingTasks--,p.forceClientRender||
|
|
(p.forceClientRender=!0,p.parentFlushed&&h.clientRenderedBoundaries.push(p)));h.allPendingTasks--;if(0===h.allPendingTasks){var G=h.onAllReady;G()}}}finally{}}}f.splice(0,e);null!==a.destination&&Rc(a,a.destination)}catch(A){Y(a,A),Gc(a,A)}finally{yc=d,Ac.current=c,c===zc&&Q(b)}}}
|
|
function Sc(a,b,c){c.parentFlushed=!0;switch(c.status){case 0:var d=c.id=a.nextSegmentId++;a=a.responseState;r(b,Pa);r(b,a.placeholderPrefix);a=d.toString(16);r(b,a);return v(b,Qa);case 1:c.status=2;var f=!0;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++)r(b,d[e]);f=Tc(a,b,f)}for(;e<d.length-1;e++)r(b,d[e]);e<d.length&&(f=v(b,d[e]));return f;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.");
|
|
}}
|
|
function Tc(a,b,c){var d=c.boundary;if(null===d)return Sc(a,b,c);d.parentFlushed=!0;if(d.forceClientRender)v(b,Ua),Sc(a,b,c);else 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=w(f.boundaryPrefix+e.toString(16));d=d.id=f;Wa(b,a.responseState,d);Sc(a,b,c)}else if(d.byteSize>a.progressiveChunkSize)d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),Wa(b,a.responseState,d.id),Sc(a,
|
|
b,c);else{v(b,Ra);c=d.completedSegments;if(1!==c.length)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");Tc(a,b,c[0])}return v(b,Va)}function Uc(a,b,c){rb(b,a.responseState,c.formatContext,c.id);Tc(a,b,c);return sb(b,c.formatContext)}
|
|
function Vc(a,b,c){for(var d=c.completedSegments,f=0;f<d.length;f++)Wc(a,b,c,d[f]);d.length=0;a=a.responseState;d=c.id;c=c.rootSegmentID;r(b,a.startInlineScript);a.sentCompleteBoundaryFunction?r(b,yb):(a.sentCompleteBoundaryFunction=!0,r(b,xb));if(null===d)throw Error("An ID must have been assigned before we can complete the boundary.");c=c.toString(16);r(b,d);r(b,zb);r(b,a.segmentPrefix);r(b,c);return v(b,Ab)}
|
|
function Wc(a,b,c,d){if(2===d.status)return!0;var f=d.id;if(-1===f){if(-1===(d.id=c.rootSegmentID))throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return Uc(a,b,d)}Uc(a,b,d);a=a.responseState;r(b,a.startInlineScript);a.sentCompleteSegmentFunction?r(b,ub):(a.sentCompleteSegmentFunction=!0,r(b,tb));r(b,a.segmentPrefix);f=f.toString(16);r(b,f);r(b,vb);r(b,a.placeholderPrefix);r(b,f);return v(b,wb)}
|
|
function Rc(a,b){k=new Uint8Array(2048);l=0;q=!0;try{var c=a.completedRootSegment;if(null!==c&&0===a.pendingRootTasks){Tc(a,b,c);a.completedRootSegment=null;var d=a.responseState.bootstrapChunks;for(c=0;c<d.length-1;c++)r(b,d[c]);c<d.length&&v(b,d[c])}var f=a.clientRenderedBoundaries,e;for(e=0;e<f.length;e++){d=b;var g=a.responseState,h=f[e].id;r(d,g.startInlineScript);g.sentClientRenderFunction?r(d,Cb):(g.sentClientRenderFunction=!0,r(d,Bb));if(null===h)throw Error("An ID must have been assigned before we can complete the boundary.");
|
|
r(d,h);if(!v(d,Db)){a.destination=null;e++;f.splice(0,e);return}}f.splice(0,e);var m=a.completedBoundaries;for(e=0;e<m.length;e++)if(!Vc(a,b,m[e])){a.destination=null;e++;m.splice(0,e);return}m.splice(0,e);ca(b);k=new Uint8Array(2048);l=0;q=!0;var n=a.partialBoundaries;for(e=0;e<n.length;e++){var p=n[e];a:{f=a;g=b;var C=p.completedSegments;for(h=0;h<C.length;h++)if(!Wc(f,g,p,C[h])){h++;C.splice(0,h);var G=!1;break a}C.splice(0,h);G=!0}if(!G){a.destination=null;e++;n.splice(0,e);return}}n.splice(0,
|
|
e);var A=a.completedBoundaries;for(e=0;e<A.length;e++)if(!Vc(a,b,A[e])){a.destination=null;e++;A.splice(0,e);return}A.splice(0,e)}finally{ca(b),"function"===typeof b.flush&&b.flush(),0===a.allPendingTasks&&0===a.pingedTasks.length&&0===a.clientRenderedBoundaries.length&&0===a.completedBoundaries.length&&b.end()}}function Xc(a){setImmediate(function(){return Dc(a)})}
|
|
function Yc(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{Rc(a,b)}catch(c){Y(a,c),Gc(a,c)}}}function Zc(a){try{var b=a.abortableTasks;b.forEach(Qc,a);b.clear();null!==a.destination&&Rc(a,a.destination)}catch(c){Y(a,c),Gc(a,c)}}function $c(a,b){return function(){return Yc(b,a)}}function ad(a){return function(){return Zc(a)}}
|
|
function bd(a,b){var c=b?b.identifierPrefix:void 0,d=b?b.nonce:void 0,f=b?b.bootstrapScriptContent:void 0,e=b?b.bootstrapScripts:void 0;var g=b?b.bootstrapModules:void 0;c=void 0===c?"":c;d=void 0===d?pa:w('<script nonce="'+D(d)+'">');var h=[];void 0!==f&&h.push(d,(""+f).replace(ua,va),qa);if(void 0!==e)for(f=0;f<e.length;f++)h.push(ra,D(e[f]),ta);if(void 0!==g)for(e=0;e<g.length;e++)h.push(sa,D(g[e]),ta);g={bootstrapChunks:h,startInlineScript:d,placeholderPrefix:w(c+"P:"),segmentPrefix:w(c+"S:"),
|
|
boundaryPrefix:c+"B:",idPrefix:c,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1};e=b?b.namespaceURI:void 0;e=E("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null);f=b?b.progressiveChunkSize:void 0;d=b?b.onError:void 0;h=b?b.onAllReady:void 0;var m=b?b.onShellReady:void 0,n=b?b.onShellError:void 0;b=[];c=new Set;g={destination:null,responseState:g,progressiveChunkSize:void 0===f?12800:f,status:0,fatalError:null,
|
|
nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===d?Bc:d,onAllReady:void 0===h?X:h,onShellReady:void 0===m?X:m,onShellError:void 0===n?X:n,onFatalError:X};e=Fc(g,0,null,e);e.parentFlushed=!0;a=Ec(g,a,null,e,c,Wb,null,dc);b.push(a);return g}
|
|
exports.renderToPipeableStream=function(a,b){var c=bd(a,b),d=!1;Xc(c);return{pipe:function(a){if(d)throw Error("React currently only supports piping to one writable stream.");d=!0;Yc(c,a);a.on("drain",$c(a,c));a.on("close",ad(c));return a},abort:function(){Zc(c)}}};exports.version="18.1.0";
|