"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
"Objects are not valid as a React child (found: "+
(Eo==="[object Object]"
?"object with keys {"+Object.keys(h).join(", ")+"}"
:Eo)+
"). If you meant to render a collection of children, use an array instead.",
);
}
}
returnfe;
}
function_r(h,b,k){
if(h==null)returnh;
varT=[],
I=0;
return(
ur(h,T,"","",function(U){
returnb.call(k,U,I++);
}),T
);
}
functionya(h){
varb=0;
return(
_r(h,function(){
b++;
}),b
);
}
functionba(h,b,k){
_r(
h,
function(){
b.apply(this,arguments);
},
k,
);
}
functionmo(h){
return(
_r(h,function(b){
returnb;
})||[]
);
}
functionUt(h){
if(!wt(h)){
thrownewError(
"React.Children.only expected to receive a single React element child.",
);
}
returnh;
}
functiongn(h){
varb={
$$typeof:S,
_currentValue:h,
_currentValue2:h,
_threadCount:0,
Provider:null,
Consumer:null,
_defaultValue:null,
_globalName:null,
};
b.Provider={$$typeof:m,_context:b};
vark=!1,
T=!1,
I=!1;
{
varU={$$typeof:S,_context:b};
Object.defineProperties(U,{
Provider:{
get:function(){
return(
T||
((T=!0),
B(
"Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?",
)),b.Provider
);
},
set:function(M){
b.Provider=M;
},
},
_currentValue:{
get:function(){
returnb._currentValue;
},
set:function(M){
b._currentValue=M;
},
},
_currentValue2:{
get:function(){
returnb._currentValue2;
},
set:function(M){
b._currentValue2=M;
},
},
_threadCount:{
get:function(){
returnb._threadCount;
},
set:function(M){
b._threadCount=M;
},
},
Consumer:{
get:function(){
return(
k||
((k=!0),
B(
"Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?",
)),b.Consumer
);
},
},
displayName:{
get:function(){
returnb.displayName;
},
set:function(M){
I||
(Me(
"Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",
"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.",
"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.",
Seehttps://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),
h
);
}
functionbe(h){
varb=me();
if(h._context!==void0){
vark=h._context;
k.Consumer===h
?B(
"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?",
)
:k.Provider===h&&
B(
"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?",
);
}
returnb.useContext(h);
}
functionCa(h){
varb=me();
returnb.useState(h);
}
functionEa(h,b,k){
varT=me();
returnT.useReducer(h,b,k);
}
functionRa(h){
varb=me();
returnb.useRef(h);
}
functionbo(h,b){
vark=me();
returnk.useEffect(h,b);
}
functionSo(h,b){
vark=me();
returnk.useInsertionEffect(h,b);
}
functionIa(h,b){
vark=me();
returnk.useLayoutEffect(h,b);
}
function_a(h,b){
vark=me();
returnk.useCallback(h,b);
}
functioncr(h,b){
vark=me();
returnk.useMemo(h,b);
}
functionFr(h,b,k){
varT=me();
returnT.useImperativeHandle(h,b,k);
}
functionkt(h,b){
{
vark=me();
returnk.useDebugValue(h,b);
}
}
functionAr(){
varh=me();
returnh.useTransition();
}
functionDr(h){
varb=me();
returnb.useDeferredValue(h);
}
functionfr(){
varh=me();
returnh.useId();
}
functionyn(h,b,k){
varT=me();
returnT.useSyncExternalStore(h,b,k);
}
varTt=0,
Or,
He,
Ht,
Ct,
Wt,
zt,
Et;
functiondr(){}
dr.__reactDisabledLog=!0;
functionbn(){
{
if(Tt===0){
(Or=console.log),
(He=console.info),
(Ht=console.warn),
(Ct=console.error),
(Wt=console.group),
(zt=console.groupCollapsed),
(Et=console.groupEnd);
varh={
configurable:!0,
enumerable:!0,
value:dr,
writable:!0,
};
Object.defineProperties(console,{
info:h,
log:h,
warn:h,
error:h,
group:h,
groupCollapsed:h,
groupEnd:h,
});
}
Tt++;
}
}
functionSn(){
{
if((Tt--,Tt===0)){
varh={configurable:!0,enumerable:!0,writable:!0};
Object.defineProperties(console,{
log:Le({},h,{value:Or}),
info:Le({},h,{value:He}),
warn:Le({},h,{value:Ht}),
error:Le({},h,{value:Ct}),
group:Le({},h,{value:Wt}),
groupCollapsed:Le({},h,{value:zt}),
groupEnd:Le({},h,{value:Et}),
});
}
Tt<0&&
B(
"disabledDepth fell below zero. This is a bug in React. Please file an issue.",
"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+
typeofh[M]+
"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.",
);
throw((z.name="Invariant Violation"),z);
}
H=h[M](
b,
M,
T,
k,
null,
"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",
);
}catch(Y){
H=Y;
}
H&&
!(HinstanceofError)&&
(pr(I),
B(
"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
"React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.",
)),
Object.defineProperty(b,"type",{
enumerable:!1,
get:function(){
return(
Me(
"Factory.type is deprecated. Access the class directly before passing it to createFactory.",
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.",
),T._updatedFibers.clear();
}
}
}
varCn=!1,
Pt=null;
functionPa(h){
if(Pt===null){
try{
varb=("require"+Math.random()).slice(0,7),
k=Bl&&Bl[b];
Pt=k.call(Bl,"timers").setImmediate;
}catch{
Pt=function(I){
Cn===!1&&
((Cn=!0),
typeofMessageChannel>"u"&&
B(
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.",
));
varU=newMessageChannel();
(U.port1.onmessage=I),U.port2.postMessage(void0);
};
}
}
returnPt(h);
}
vargt=0,
Hr=!1;
functionFa(h){
{
varb=gt;
gt++,q.current===null&&(q.current=[]);
vark=q.isBatchingLegacy,
T;
try{
if(
((q.isBatchingLegacy=!0),
(T=h()),
!k&&q.didScheduleLegacyUpdate)
){
varI=q.current;
I!==null&&((q.didScheduleLegacyUpdate=!1),Rn(I));
}
}catch(ee){
throw(mr(b),ee);
}finally{
q.isBatchingLegacy=k;
}
if(
T!==null&&
typeofT=="object"&&
typeofT.then=="function"
){
varU=T,
M=!1,
H={
then:function(ee,fe){
(M=!0),
U.then(
function(Se){
mr(b),gt===0?Be(Se,ee,fe):ee(Se);
},
function(Se){
mr(b),fe(Se);
},
);
},
};
return(
!Hr&&
typeofPromise<"u"&&
Promise.resolve()
.then(function(){})
.then(function(){
M||
((Hr=!0),
B(
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);",
));
}),H
);
}else{
varz=T;
if((mr(b),gt===0)){
varY=q.current;
Y!==null&&(Rn(Y),(q.current=null));
varQ={
then:function(ee,fe){
q.current===null
?((q.current=[]),Be(z,ee,fe))
:ee(z);
},
};
returnQ;
}else{
varK={
then:function(ee,fe){
ee(z);
},
};
returnK;
}
}
}
}
functionmr(h){
h!==gt-1&&
B(
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ",
"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.",
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofn!="object"||!("__html"inn)){
throwError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
"If you supply `defaultValue` on a <textarea>, do not pass children.",
);
}
if(Xu(R)&&1<R.length){
throwError("<textarea> can only have at most one child.");
}
c=""+R;
}
return(
typeofc=="string"&&
c[0]===
`
` &&
e.push(`
`),
c!==null&&e.push(Ye(""+c)),
null
);
case"input":
e.push(Jt("input")),
(E=
R=
S=
c=
null);
for(mini){
if(qe.call(i,m)&&((x=i[m]),x!=null)){
switch(m){
case"children":
case"dangerouslySetInnerHTML":
throwError(
"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
case"defaultChecked":
E=x;
break;
case"defaultValue":
S=x;
break;
case"checked":
R=x;
break;
case"value":
c=x;
break;
default:
it(e,s,m,x);
}
}
}
return(
R!==null
?it(e,s,"checked",R)
:E!==null&&it(e,s,"checked",E),
c!==null
?it(e,s,"value",c)
:S!==null&&it(e,s,"value",S),
e.push("/>"),
null
);
case"menuitem":
e.push(Jt("menuitem"));
for(varVini){
if(qe.call(i,V)&&((c=i[V]),c!=null)){
switch(V){
case"children":
case"dangerouslySetInnerHTML":
throwError(
"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.",
);
default:
it(e,s,V,c);
}
}
}
returne.push(">"),null;
case"title":
e.push(Jt("title")),(c=null);
for(Dini){
if(qe.call(i,D)&&((m=i[D]),m!=null)){
switch(D){
case"children":
c=m;
break;
case"dangerouslySetInnerHTML":
throwError(
"`dangerouslySetInnerHTML` does not make sense on <title>.",
);
default:
it(e,s,D,m);
}
}
}
returne.push(">"),c;
case"listing":
case"pre":
e.push(Jt(n)),(m=c=null);
for(Eini){
if(qe.call(i,E)&&((S=i[E]),S!=null)){
switch(E){
case"children":
c=S;
break;
case"dangerouslySetInnerHTML":
m=S;
break;
default:
it(e,s,E,S);
}
}
}
if((e.push(">"),m!=null)){
if(c!=null){
throwError(
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofm!="object"||!("__html"inm)){
throwError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
}
(i=m.__html),
i!=null&&
(typeofi=="string"&&
0<i.length&&
i[0]===
`
`
?e.push(
`
`,
i,
)
:e.push(""+i));
}
return(
typeofc=="string"&&
c[0]===
`
` &&
e.push(`
`), c
);
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":
e.push(Jt(n));
for(varteini){
if(qe.call(i,te)&&((c=i[te]),c!=null)){
switch(te){
case"children":
case"dangerouslySetInnerHTML":
throwError(
n+
" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
throwError("Unknown insertion mode. This is a bug in React.");
}
}
functionCp(e,n){
switch(n.insertionMode){
case0:
case1:
returne.push("</div>");
case2:
returne.push("</svg>");
case3:
returne.push("</math>");
case4:
returne.push("</table>");
case5:
returne.push("</tbody></table>");
case6:
returne.push("</tr></table>");
case7:
returne.push("</colgroup></table>");
default:
throwError("Unknown insertion mode. This is a bug in React.");
}
}
varEp=/[<\u2028\u2029]/g;
functionYu(e){
returnJSON.stringify(e).replace(Ep,function(n){
switch(n){
case"<":
return"\\u003c";
case"\u2028":
return"\\u2028";
case"\u2029":
return"\\u2029";
default:
throwError(
"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",
'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 "'+
"A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.",
);
}
returnm;
}
function$p(e,n){
(e.prototype=Object.create(n.prototype)),
(e.prototype.constructor=e),
(e.__proto__=n);
}
varNp=(function(e){
functionn(){
vars=e.call(this,{})||this;
return(s.request=null),(s.startedFlowing=!1),s;
}
$p(n,e);
vari=n.prototype;
return(
(i._destroy=function(s,v){
Uf(this.request),v(s);
}),
(i._read=function(){
this.startedFlowing&&sc(this.request,this);
}),
n
);
})(hp.Readable);
functionVp(){}
functionHf(e,n){
vari=newNp(),
s=Of(
e,
gf(!1,n?n.identifierPrefix:void0),
mf(),
1/0,
Vp,
function(){
(i.startedFlowing=!0),sc(s,i);
},
void0,
void0,
);
return(i.request=s),ic(s),i;
}
ca.renderToNodeStream=function(e,n){
returnHf(e,n);
};
ca.renderToStaticMarkup=function(e,n){
returnjf(
e,
n,
!0,
'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server',
);
};
ca.renderToStaticNodeStream=function(e,n){
returnHf(e,n);
};
ca.renderToString=function(e,n){
returnjf(
e,
n,
!1,
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server',
"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.",
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofn!="object"||!("__html"inn)){
throwError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
"If you supply `defaultValue` on a <textarea>, do not pass children.",
);
}
if(vc(R)&&1<R.length){
throwError("<textarea> can only have at most one child.");
}
c=""+R;
}
return(
typeofc=="string"&&
c[0]===
`
` &&
e.push(fc),
c!==null&&e.push(Ae(""+c)),
null
);
case"input":
e.push(Kt("input")),
(E=
R=
S=
c=
null);
for(mini){
if(et.call(i,m)&&((x=i[m]),x!=null)){
switch(m){
case"children":
case"dangerouslySetInnerHTML":
throwError(
"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
case"defaultChecked":
E=x;
break;
case"defaultValue":
S=x;
break;
case"checked":
R=x;
break;
case"value":
c=x;
break;
default:
st(e,s,m,x);
}
}
}
return(
R!==null
?st(e,s,"checked",R)
:E!==null&&st(e,s,"checked",E),
c!==null
?st(e,s,"value",c)
:S!==null&&st(e,s,"value",S),
e.push(Jf),
null
);
case"menuitem":
e.push(Kt("menuitem"));
for(varVini){
if(et.call(i,V)&&((c=i[V]),c!=null)){
switch(V){
case"children":
case"dangerouslySetInnerHTML":
throwError(
"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.",
);
default:
st(e,s,V,c);
}
}
}
returne.push(un),null;
case"title":
e.push(Kt("title")),(c=null);
for(Dini){
if(et.call(i,D)&&((m=i[D]),m!=null)){
switch(D){
case"children":
c=m;
break;
case"dangerouslySetInnerHTML":
throwError(
"`dangerouslySetInnerHTML` does not make sense on <title>.",
);
default:
st(e,s,D,m);
}
}
}
returne.push(un),c;
case"listing":
case"pre":
e.push(Kt(n)),(m=c=null);
for(Eini){
if(et.call(i,E)&&((S=i[E]),S!=null)){
switch(E){
case"children":
c=S;
break;
case"dangerouslySetInnerHTML":
m=S;
break;
default:
st(e,s,E,S);
}
}
}
if((e.push(un),m!=null)){
if(c!=null){
throwError(
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofm!="object"||!("__html"inm)){
throwError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
}
(i=m.__html),
i!=null&&
(typeofi=="string"&&
0<i.length&&
i[0]===
`
`
?e.push(fc,i)
:e.push(""+i));
}
return(
typeofc=="string"&&
c[0]===
`
` &&
e.push(fc),c
);
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":
e.push(Kt(n));
for(varteini){
if(et.call(i,te)&&((c=i[te]),c!=null)){
switch(te){
case"children":
case"dangerouslySetInnerHTML":
throwError(
n+
" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
"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",
'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 "'+
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.",
),
r.onChange||
r.readOnly||
r.disabled||
r.checked==null||
c(
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.",
"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",
t,
)
:c(
"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.",
),
(ke[r]=!0),
!0
);
}
if(u!=null){
varg=u.registrationNameDependencies,
y=u.possibleRegistrationNames;
if(g.hasOwnProperty(r))return!0;
varw=y.hasOwnProperty(p)?y[p]:null;
if(w!=null){
return(
c(
"Invalid event handler property `%s`. Did you mean `%s`?",
r,
w,
),
(ke[r]=!0),
!0
);
}
if(po.test(r)){
return(
c(
"Unknown event handler property `%s`. It will be ignored.",
r,
),
(ke[r]=!0),
!0
);
}
}elseif(po.test(r)){
return(
va.test(r)&&
c(
"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
r,
),
(ke[r]=!0),
!0
);
}
if(ga.test(r)||dn.test(r))return!0;
if(p==="innerhtml"){
return(
c(
"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.",
),
(ke[r]=!0),
!0
);
}
if(p==="aria"){
return(
c(
"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.",
),
(ke[r]=!0),
!0
);
}
if(
p==="is"&&l!==null&&l!==void0&&typeofl!="string"
){
return(
c(
"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
typeofl,
),
(ke[r]=!0),
!0
);
}
if(typeofl=="number"&&isNaN(l)){
return(
c(
"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
r,
),
(ke[r]=!0),
!0
);
}
varC=er(r),
_=C!==null&&C.type===F;
if(sr.hasOwnProperty(p)){
varO=sr[p];
if(O!==r){
return(
c("Invalid DOM property `%s`. Did you mean `%s`?",r,O),
(ke[r]=!0),
!0
);
}
}elseif(!_&&r!==p){
return(
c(
"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
r,
p,
),
(ke[r]=!0),
!0
);
}
returntypeofl=="boolean"&&Le(r,l,C,!1)
?(l
?c(
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',
l,
r,
r,
l,
r,
)
:c(
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',
l,
r,
r,
l,
r,
r,
r,
),
(ke[r]=!0),
!0)
:_
?!0
:Le(r,l,C,!1)
?((ke[r]=!0),!1)
:((l==="false"||l==="true")&&
C!==null&&
C.type===yt&&
(c(
"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
l,
r,
l==="false"
?"The browser will interpret it as a truthy value."
:'Although this works, it will not work as expected if you pass the string "false".',
r,
l,
),
(ke[r]=!0)),
!0);
};
}
varho=function(t,r,l){
{
varu=[];
for(varpinr){
varg=pt(t,p,r[p],l);
g||u.push(p);
}
vary=u
.map(function(w){
return"`"+w+"`";
})
.join(", ");
u.length===1
?c(
"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",
y,
t,
)
:u.length>1&&
c(
"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",
y,
t,
);
}
};
functionma(t,r,l){
co(t,r)||ho(t,r,l);
}
varpn=function(){};
{
varwt=/^(?:webkit|moz|o)[A-Z]/,
Te=/^-ms-/,
vo=/-(.)/g,
go=/;\s*$/,
xt={},
hn={},
vn=!1,
Ir=!1,
ur=function(t){
returnt.replace(vo,function(r,l){
returnl.toUpperCase();
});
},
_r=function(t){
(xt.hasOwnProperty(t)&&xt[t])||
((xt[t]=!0),
c(
"Unsupported style property %s. Did you mean %s?",
t,
ur(t.replace(Te,"ms-")),
));
},
ya=function(t){
(xt.hasOwnProperty(t)&&xt[t])||
((xt[t]=!0),
c(
"Unsupported vendor-prefixed style property %s. Did you mean %s?",
"A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",
"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.",
);
}
varu=!0;
for(varpinl){
if(!!he.call(l,p)){
varg=l[p];
if(!(g==null||typeofg=="boolean"||g==="")){
vary=void0,
w=void0,
C=p.indexOf("--")===0;
C
?((y=ge(p)),xe(g,p),(w=ge((""+g).trim())))
:(gn(p,g),
(y=wn(p)),
typeofg=="number"
?g!==0&&!he.call(St,p)?(w=g+"px"):(w=""+g)
:(xe(g,p),(w=ge((""+g).trim())))),
u?((u=!1),t.push(Mr,y,Lr,w)):t.push(Br,y,Lr,w);
}
}
}
u||t.push(ht);
}
varWe=" ",
Rt='="',
ht='"',
$t='=""';
functionCe(t,r,l,u){
switch(l){
case"style":{
wo(t,r,u);
return;
}
case"defaultValue":
case"defaultChecked":
case"innerHTML":
case"suppressContentEditableWarning":
case"suppressHydrationWarning":
return;
}
if(
!(
l.length>2&&
(l[0]==="o"||l[0]==="O")&&
(l[1]==="n"||l[1]==="N")
)
){
varp=er(l);
if(p!==null){
switch(typeofu){
case"function":
case"symbol":
return;
case"boolean":
if(!p.acceptsBooleans)return;
}
varg=p.attributeName,
y=g;
switch(p.type){
caseyt:
u&&t.push(We,y,$t);
return;
caseMt:
u===!0
?t.push(We,y,$t)
:u===!1||t.push(We,y,Rt,ge(u),ht);
return;
caseLt:
isNaN(u)||t.push(We,y,Rt,ge(u),ht);
break;
caseft:
!isNaN(u)&&u>=1&&t.push(We,y,Rt,ge(u),ht);
break;
default:
p.sanitizeURL&&(q(u,g),(u=""+u),yo(u)),
t.push(We,y,Rt,ge(u),ht);
}
}elseif(bt(l)){
switch(typeofu){
case"function":
case"symbol":
return;
case"boolean":{
varw=l.toLowerCase().slice(0,5);
if(w!=="data-"&&w!=="aria-")return;
}
}
t.push(We,l,Rt,ge(u),ht);
}
}
}
varrt=">",
pr="/>";
functionhr(t,r,l){
if(r!=null){
if(l!=null){
thrownewError(
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofr!="object"||!("__html"inr)){
thrownewError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
}
varu=r.__html;
u!=null&&(_e(u),t.push(""+u));
}
}
varIt=!1,
vr=!1,
Ze=!1,
_t=!1,
vt=!1,
Ur=!1,
Re=!1;
functionJe(t,r){
{
varl=t[r];
if(l!=null){
varu=me(l);
t.multiple&&!u
?c(
"The `%s` prop supplied to <select> must be an array if `multiple` is true.",
r,
)
:!t.multiple&&
u&&
c(
"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",
r,
);
}
}
}
functionxn(t,r,l){
ve("select",r),
Je(r,"value"),
Je(r,"defaultValue"),
r.value!==void0&&
r.defaultValue!==void0&&
!Ze&&
(c(
"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components",
),
(Ze=!0)),
t.push(Be("select"));
varu=null,
p=null;
for(varginr){
if(he.call(r,g)){
vary=r[g];
if(y==null)continue;
switch(g){
case"children":
u=y;
break;
case"dangerouslySetInnerHTML":
p=y;
break;
case"defaultValue":
case"value":
break;
default:
Ce(t,l,g,y);
break;
}
}
}
returnt.push(rt),hr(t,p,u),u;
}
functiongr(t){
varr="";
return(
e.Children.forEach(t,function(l){
l!=null&&
((r+=l),
!vt&&
typeofl!="string"&&
typeofl!="number"&&
((vt=!0),
c(
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.",
)));
}),r
);
}
varjr=' selected=""';
functionkn(t,r,l,u){
varp=u.selectedValue;
t.push(Be("option"));
varg=null,
y=null,
w=null,
C=null;
for(var_inr){
if(he.call(r,_)){
varO=r[_];
if(O==null)continue;
switch(_){
case"children":
g=O;
break;
case"selected":
(w=O),
Re||
(c(
"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.",
),
(Re=!0));
break;
case"dangerouslySetInnerHTML":
C=O;
break;
case"value":
y=O;
default:
Ce(t,l,_,O);
break;
}
}
}
if(p!=null){
varj;
if(
(y!==null?(q(y,"value"),(j=""+y)):(C!==null&&
(Ur||
((Ur=!0),
c(
"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.",
))),
(j=gr(g))),
me(p))
){
for(varZ=0;Z<p.length;Z++){
q(p[Z],"value");
varde=""+p[Z];
if(de===j){
t.push(jr);
break;
}
}
}elseq(p,"select.value"),""+p===j&&t.push(jr);
}elsew&&t.push(jr);
returnt.push(rt),hr(t,C,g),g;
}
functionTn(t,r,l){
ve("input",r),
r.checked!==void0&&
r.defaultChecked!==void0&&
!vr&&
(c(
"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",
"A component",
r.type,
),
(vr=!0)),
r.value!==void0&&
r.defaultValue!==void0&&
!It&&
(c(
"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",
"A component",
r.type,
),
(It=!0)),
t.push(Be("input"));
varu=null,
p=null,
g=null,
y=null;
for(varwinr){
if(he.call(r,w)){
varC=r[w];
if(C==null)continue;
switch(w){
case"children":
case"dangerouslySetInnerHTML":
thrownewError(
"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
case"defaultChecked":
y=C;
break;
case"defaultValue":
p=C;
break;
case"checked":
g=C;
break;
case"value":
u=C;
break;
default:
Ce(t,l,w,C);
break;
}
}
}
return(
g!==null
?Ce(t,l,"checked",g)
:y!==null&&Ce(t,l,"checked",y),
u!==null
?Ce(t,l,"value",u)
:p!==null&&Ce(t,l,"value",p),
t.push(pr),
null
);
}
functionxo(t,r,l){
ve("textarea",r),
r.value!==void0&&
r.defaultValue!==void0&&
!_t&&
(c(
"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",
),
(_t=!0)),
t.push(Be("textarea"));
varu=null,
p=null,
g=null;
for(varyinr){
if(he.call(r,y)){
varw=r[y];
if(w==null)continue;
switch(y){
case"children":
g=w;
break;
case"value":
u=w;
break;
case"defaultValue":
p=w;
break;
case"dangerouslySetInnerHTML":
thrownewError(
"`dangerouslySetInnerHTML` does not make sense on <textarea>.",
"Use the `defaultValue` or `value` props instead of setting children on <textarea>.",
),
u!=null)
){
thrownewError(
"If you supply `defaultValue` on a <textarea>, do not pass children.",
);
}
if(me(g)){
if(g.length>1){
thrownewError("<textarea> can only have at most one child.");
}
_e(g[0]),(u=""+g[0]);
}
_e(g),(u=""+g);
}
return(
typeofu=="string"&&
u[0]===
`
` &&
t.push(gt),
u!==null&&(q(u,"value"),t.push(Et(""+u))),
null
);
}
functionko(t,r,l,u){
t.push(Be(l));
for(varpinr){
if(he.call(r,p)){
varg=r[p];
if(g==null)continue;
switch(p){
case"children":
case"dangerouslySetInnerHTML":
thrownewError(
l+
" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
default:
Ce(t,u,p,g);
break;
}
}
}
returnt.push(pr),null;
}
functionTo(t,r,l){
t.push(Be("menuitem"));
for(varuinr){
if(he.call(r,u)){
varp=r[u];
if(p==null)continue;
switch(u){
case"children":
case"dangerouslySetInnerHTML":
thrownewError(
"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.",
);
default:
Ce(t,l,u,p);
break;
}
}
}
returnt.push(rt),null;
}
functionCn(t,r,l){
t.push(Be("title"));
varu=null;
for(varpinr){
if(he.call(r,p)){
varg=r[p];
if(g==null)continue;
switch(p){
case"children":
u=g;
break;
case"dangerouslySetInnerHTML":
thrownewError(
"`dangerouslySetInnerHTML` does not make sense on <title>.",
);
default:
Ce(t,l,p,g);
break;
}
}
}
t.push(rt);
{
vary=Array.isArray(u)&&u.length<2?u[0]||null:u;
Array.isArray(u)&&u.length>1
?c(
"A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering",
)
:y!=null&&y.$$typeof!=null
?c(
"A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering",
)
:y!=null&&
typeofy!="string"&&
typeofy!="number"&&
c(
"A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering",
);
}
returnu;
}
functionPt(t,r,l,u){
t.push(Be(l));
varp=null,
g=null;
for(varyinr){
if(he.call(r,y)){
varw=r[y];
if(w==null)continue;
switch(y){
case"children":
p=w;
break;
case"dangerouslySetInnerHTML":
g=w;
break;
default:
Ce(t,u,y,w);
break;
}
}
}
return(
t.push(rt),
hr(t,g,p),
typeofp=="string"?(t.push(Et(p)),null):p
);
}
functionPa(t,r,l,u){
t.push(Be(l));
varp=null,
g=null;
for(varyinr){
if(he.call(r,y)){
varw=r[y];
if(w==null)continue;
switch(y){
case"children":
p=w;
break;
case"dangerouslySetInnerHTML":
g=w;
break;
case"style":
wo(t,u,w);
break;
case"suppressContentEditableWarning":
case"suppressHydrationWarning":
break;
default:
bt(y)&&
typeofw!="function"&&
typeofw!="symbol"&&
t.push(We,y,Rt,ge(w),ht);
break;
}
}
}
returnt.push(rt),hr(t,g,p),p;
}
vargt=`
`;
functionHr(t,r,l,u){
t.push(Be(l));
varp=null,
g=null;
for(varyinr){
if(he.call(r,y)){
varw=r[y];
if(w==null)continue;
switch(y){
case"children":
p=w;
break;
case"dangerouslySetInnerHTML":
g=w;
break;
default:
Ce(t,u,y,w);
break;
}
}
}
if((t.push(rt),g!=null)){
if(p!=null){
thrownewError(
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofg!="object"||!("__html"ing)){
thrownewError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
}
varC=g.__html;
C!=null&&
(typeofC=="string"&&
C.length>0&&
C[0]===
`
`
?t.push(gt,C)
:(_e(C),t.push(""+C)));
}
return(
typeofp=="string"&&
p[0]===
`
` &&
t.push(gt),p
);
}
varFa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
mr=newMap();
functionBe(t){
varr=mr.get(t);
if(r===void0){
if(!Fa.test(t))thrownewError("Invalid tag: "+t);
(r="<"+t),mr.set(t,r);
}
returnr;
}
varEn="<!DOCTYPE html>";
functionRn(t,r,l,u,p){
switch(
(fo(r,l),
fn(r,l),
ma(r,l,null),
!l.suppressContentEditableWarning&&
l.contentEditable&&
l.children!=null&&
c(
"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.",
),
p.insertionMode!==Ar&&
p.insertionMode!==Dr&&
r.indexOf("-")===-1&&
typeofl.is!="string"&&
r.toLowerCase()!==r&&
c(
"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",
"An ID must have been assigned before we can complete the boundary.",
);
}
return(
x(t,l),
x(t,Xs),
(u||p||g)&&(x(t,La),x(t,Ba(u||""))),
(p||g)&&(x(t,La),x(t,Ba(p||""))),
g&&(x(t,La),x(t,Ba(g))),
R(t,Zs)
);
}
varQs=/[<\u2028\u2029]/g;
functionBa(t){
varr=JSON.stringify(t);
returnr.replace(Qs,function(l){
switch(l){
case"<":
return"\\u003c";
case"\u2028":
return"\\u2028";
case"\u2029":
return"\\u2029";
default:
thrownewError(
"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",
"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+
typeoft[y]+
"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.",
);
throw((C.name="Invariant Violation"),C);
}
w=t[y](
r,
y,
u,
l,
null,
"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",
);
}catch(_){
w=_;
}
w&&
!(winstanceofError)&&
(Ln(p),
c(
"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
u||"React class",
l,
y,
typeofw,
),
Ln(null)),
winstanceofError&&
!(w.messageinrl)&&
((rl[w.message]=!0),
Ln(p),
c("Failed %s type: %s",l,w.message),
Ln(null));
}
}
}
}
varGr;
Gr={};
varBn={};
Object.freeze(Bn);
functionDo(t,r){
{
varl=t.contextTypes;
if(!l)returnBn;
varu={};
for(varpinl)u[p]=r[p];
{
varg=ie(t)||"Unknown";
Ka(l,u,"context",g);
}
returnu;
}
}
functionOo(t,r,l,u){
{
if(typeoft.getChildContext!="function"){
{
varp=ie(r)||"Unknown";
Gr[p]||
((Gr[p]=!0),
c(
"%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",
p,
p,
));
}
returnl;
}
varg=t.getChildContext();
for(varying){
if(!(yinu)){
thrownewError(
(ie(r)||"Unknown")+
'.getChildContext(): key "'+
y+
'" is not defined in childContextTypes.',
);
}
}
{
varw=ie(r)||"Unknown";
Ka(u,g,"child context",w);
}
returnQe({},l,g);
}
}
varXr;
Xr={};
varlu=null,
nt=null;
functionqa(t){
t.context._currentValue2=t.parentValue;
}
functionFt(t){
t.context._currentValue2=t.value;
}
functionZr(t,r){
if(t!==r){
qa(t);
varl=t.parent,
u=r.parent;
if(l===null){
if(u!==null){
thrownewError(
"The stacks must reach the root at the same time. This is a bug in React.",
);
}
}else{
if(u===null){
thrownewError(
"The stacks must reach the root at the same time. This is a bug in React.",
);
}
Zr(l,u);
}
Ft(r);
}
}
functionMo(t){
qa(t);
varr=t.parent;
r!==null&&Mo(r);
}
functionUn(t){
varr=t.parent;
r!==null&&Un(r),Ft(t);
}
functionei(t,r){
qa(t);
varl=t.parent;
if(l===null){
thrownewError(
"The depth must equal at least at zero before reaching the root. This is a bug in React.",
);
}
l.depth===r.depth?Zr(l,r):ei(l,r);
}
functionti(t,r){
varl=r.parent;
if(l===null){
thrownewError(
"The depth must equal at least at zero before reaching the root. This is a bug in React.",
);
}
t.depth===l.depth?Zr(t,l):ti(t,l),Ft(r);
}
functionjn(t){
varr=nt,
l=t;
r!==l&&
(r===null
?Un(l)
:l===null
?Mo(r)
:r.depth===l.depth
?Zr(r,l)
:r.depth>l.depth
?ei(r,l)
:ti(r,l),
(nt=l));
}
functionnl(t,r){
varl;
(l=t._currentValue2),
(t._currentValue2=r),
t._currentRenderer2!==void0&&
t._currentRenderer2!==null&&
t._currentRenderer2!==Xr&&
c(
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.",
),
(t._currentRenderer2=Xr);
varu=nt,
p={
parent:u,
depth:u===null?0:u.depth+1,
context:t,
parentValue:l,
value:r,
};
return(nt=p),p;
}
functionLo(t){
varr=nt;
if(r===null){
thrownewError(
"Tried to pop a Context at the root of the app. This is a bug in React.",
);
}
r.context!==t&&
c(
"The parent context is not the expected context. This is probably a bug in React.",
" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.")
:typeofp!="object"
?(y=" However, it is set to a "+typeofp+".")
:p.$$typeof===Ro
?(y=" Did you accidentally pass the Context.Provider instead?")
:p._context!==void0
?(y=" Did you accidentally pass the Context.Consumer instead?")
:(y=" However, it is set to an object with keys {"+
Object.keys(p).join(", ")+
"}."),
c(
"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
ie(t)||"Component",
y,
);
}
}
typeofp=="object"&&p!==null?(u=Hn(p)):(u=l);
varw=newt(r,u);
{
if(
typeoft.getDerivedStateFromProps=="function"&&
(w.state===null||w.state===void0)
){
varC=ie(t)||"Component";
Uo.has(C)||
(Uo.add(C),
c(
"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
"%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",
u,
)
:c(
"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",
u,
)),
t.getInitialState&&
!t.getInitialState.isReactClassApproved&&
!t.state&&
c(
"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",
u,
),
t.getDefaultProps&&
!t.getDefaultProps.isReactClassApproved&&
c(
"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",
u,
),
t.propTypes&&
c(
"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",
u,
),
t.contextType&&
c(
"contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
u,
),
t.contextTypes&&
c(
"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",
u,
),
r.contextType&&
r.contextTypes&&
!Qr.has(r)&&
(Qr.add(r),
c(
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
u,
)),
typeoft.componentShouldUpdate=="function"&&
c(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
u,
),
r.prototype&&
r.prototype.isPureReactComponent&&
typeoft.shouldComponentUpdate<"u"&&
c(
"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
ie(r)||"A pure component",
),
typeoft.componentDidUnmount=="function"&&
c(
"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
u,
),
typeoft.componentDidReceiveProps=="function"&&
c(
"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",
u,
),
typeoft.componentWillRecieveProps=="function"&&
c(
"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
"%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
w,
));
}
varC=r.getDerivedStateFromProps;
typeofC=="function"&&(t.state=al(t,r,C,p,l)),
typeofr.getDerivedStateFromProps!="function"&&
typeoft.getSnapshotBeforeUpdate!="function"&&
(typeoft.UNSAFE_componentWillMount=="function"||
typeoft.componentWillMount=="function")&&
(cu(r,t),fu(g,t,l,u));
}
vardu={id:1,overflow:""};
functionsl(t){
varr=t.overflow,
l=t.id,
u=l&~ai(l);
returnu.toString(32)+r;
}
functionoi(t,r,l){
varu=t.id,
p=t.overflow,
g=No(u)-1,
y=u&~(1<<g),
w=l+1,
C=No(r)+g;
if(C>30){
var_=g-(g%5),
O=(1<<_)-1,
j=(y&O).toString(32),
Z=y>>_,
de=g-_,
we=No(r)+de,
aa=w<<de,
ia=aa|Z,
Dl=j+p;
return{id:(1<<we)|ia,overflow:Dl};
}else{
varla=w<<g,
Vd=la|y,
Yd=p;
return{id:(1<<C)|Vd,overflow:Yd};
}
}
functionNo(t){
return32-Vo(t);
}
functionai(t){
return1<<(No(t)-1);
}
varVo=Math.clz32?Math.clz32:vu,
pu=Math.log,
hu=Math.LN2;
functionvu(t){
varr=t>>>0;
returnr===0?32:(31-((pu(r)/hu)|0))|0;
}
functiongu(t,r){
return(
(t===r&&(t!==0||1/t===1/r))||(t!==t&&r!==r)
);
}
varmu=typeofObject.is=="function"?Object.is:gu,
At=null,
ii=null,
Ke=null,
X=null,
Vt=!1,
G=!1,
Yt=0,
ot=null,
Sr=0,
Gt=25,
$e=!1,
Kr;
functionIe(){
if(At===null){
thrownewError(
`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:
Seehttps://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`,
);
}
return(
$e&&
c(
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks",
),At
);
}
functionqr(t,r){
if(r===null){
return(
c(
"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
Kr,
),!1
);
}
t.length!==r.length&&
c(
`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous:%s
Incoming:%s`,
Kr,
"["+t.join(", ")+"]",
"["+r.join(", ")+"]",
);
for(varl=0;l<r.length&&l<t.length;l++){
if(!mu(t[l],r[l]))return!1;
}
return!0;
}
functionXt(){
if(Sr>0){
thrownewError(
"Rendered more hooks than during the previous render",
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().",
"useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.",
);
}
functionbu(t,r,l){
if(Sr>=Gt){
thrownewError(
"Too many re-renders. React limits the number of renders to prevent an infinite loop.",
);
}
if(t===At){
G=!0;
varu={action:l,next:null};
ot===null&&(ot=newMap());
varp=ot.get(r);
if(p===void0)ot.set(r,u);
else{
for(varg=p;g.next!==null;)g=g.next;
g.next=u;
}
}
}
functionSu(t,r){
returndl(function(){
returnt;
},r);
}
functionwu(t,r,l){
returnIe(),r(t._source);
}
functionxu(t,r,l){
if(l===void0){
thrownewError(
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.",
);
}
returnl();
}
functionku(t){
returnIe(),t;
}
functionTu(){
thrownewError(
"startTransition cannot be called during server rendering.",
);
}
functionCu(){
returnIe(),[!1,Tu];
}
functionEu(){
vart=ii,
r=sl(t.treeContext),
l=en;
if(l===null){
thrownewError(
"Invalid hook call. Hooks can only be called inside of the body of a function component.",
'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 "'+
"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
g,
g,
),
(yi[g]=!0));
}
vary=bl(t,r,l,u,p),
w=cl();
if(
typeofy=="object"&&
y!==null&&
typeofy.render=="function"&&
y.$$typeof===void0
){
varC=ie(l)||"Unknown";
qo[C]||
(c(
"The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",
C,
C,
C,
),
(qo[C]=!0));
}
if(
typeofy=="object"&&
y!==null&&
typeofy.render=="function"&&
y.$$typeof===void0
){
{
var_=ie(l)||"Unknown";
qo[_]||
(c(
"The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",
_,
_,
_,
),
(qo[_]=!0));
}
ll(y,l,u,p),Sl(t,r,y,l,u);
}elseif((kl(l),w)){
varO=r.treeContext,
j=1,
Z=0;
r.treeContext=oi(O,j,Z);
try{
Pe(t,r,y);
}finally{
r.treeContext=O;
}
}elsePe(t,r,y);
Dt(r);
}
functionkl(t){
{
if(
(t&&
t.childContextTypes&&
c(
"%s(...): childContextTypes cannot be defined on a function component.",
t.displayName||t.name||"Component",
),
typeoft.getDerivedStateFromProps=="function")
){
varr=ie(t)||"Unknown";
Qn[r]||
(c(
"%s: Function components do not support getDerivedStateFromProps.",
(c("%s: Function components do not support contextType.",l),
(bi[l]=!0));
}
}
}
functionTl(t,r){
if(t&&t.defaultProps){
varl=Qe({},r),
u=t.defaultProps;
for(varpinu)l[p]===void0&&(l[p]=u[p]);
returnl;
}
returnr;
}
function_u(t,r,l,u,p){
Qo(r,l.render);
varg=bl(t,r,l.render,u,p),
y=cl();
if(y){
varw=r.treeContext,
C=1,
_=0;
r.treeContext=oi(w,C,_);
try{
Pe(t,r,g);
}finally{
r.treeContext=w;
}
}elsePe(t,r,g);
Dt(r);
}
functionCl(t,r,l,u,p){
varg=l.type,
y=Tl(g,u);
Ti(t,r,g,y,p);
}
functionPu(t,r,l,u){
l._context===void0
?l!==l.Consumer&&
(ki||
((ki=!0),
c(
"Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?",
)))
:(l=l._context);
varp=u.children;
typeofp!="function"&&
c(
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.",
);
varg=Hn(l),
y=p(g);
Pe(t,r,y);
}
functionFu(t,r,l,u){
varp=l._context,
g=u.value,
y=u.children,
w;
(w=r.context),
(r.context=nl(p,g)),
Pe(t,r,y),
(r.context=Lo(p)),
w!==r.context&&
c(
"Popping the context provider did not return back to the original snapshot. This is a bug in React.",
);
}
functionAu(t,r,l,u,p){
Ne(r,"Lazy");
varg=l._payload,
y=l._init,
w=y(g),
C=Tl(w,u);
Ti(t,r,w,C,p),Dt(r);
}
functionTi(t,r,l,u,p){
if(typeofl=="function"){
if(Iu(l)){
wl(t,r,l,u);
return;
}else{
xl(t,r,l,u);
return;
}
}
if(typeofl=="string"){
Ko(t,r,l,u);
return;
}
switch(l){
casetu:
case_o:
caseHa:
caseWa:
caseJi:{
Pe(t,r,u.children);
return;
}
caseDn:{
Ne(r,"SuspenseList"),Pe(t,r,u.children),Dt(r);
return;
}
caseza:
thrownewError(
"ReactDOMServer does not yet support scope components.",
);
caseAn:{
Jn(t,r,u);
return;
}
}
if(typeofl=="object"&&l!==null){
switch(l.$$typeof){
caseFn:{
_u(t,r,l,u,p);
return;
}
caseOn:{
Cl(t,r,l,u,p);
return;
}
caseRo:{
Fu(t,r,l,u);
return;
}
caseIo:{
Pu(t,r,l,u);
return;
}
case$r:{
Au(t,r,l,u);
return;
}
}
}
varg="";
throw(
((l===void0||
(typeofl=="object"&&
l!==null&&
Object.keys(l).length===0))&&
(g+=
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),
newError(
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+
("but got: "+(l==null?l:typeofl)+"."+g),
))
);
}
functionDu(t,r){
typeofSymbol=="function"&&
t[Symbol.toStringTag]==="Generator"&&
(wi||
c(
"Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers.",
),
(wi=!0)),
t.entries===r&&
(xi||
c(
"Using Maps as children is not supported. Use an array of keyed ReactElements instead.",
),
(xi=!0));
}
functionPe(t,r,l){
try{
returnOu(t,r,l);
}catch(u){
throw(
((typeofu=="object"&&
u!==null&&
typeofu.then=="function")||
(Zn=Zn!==null?Zn:nn()),
u)
);
}
}
functionOu(t,r,l){
if(((r.node=l),typeofl=="object"&&l!==null)){
switch(l.$$typeof){
caseja:{
varu=l,
p=u.type,
g=u.props,
y=u.ref;
Ti(t,r,p,g,y);
return;
}
caseze:
thrownewError(
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.",
"Objects are not valid as a React child (found: "+
(aa==="[object Object]"
?"object with keys {"+Object.keys(l).join(", ")+"}"
:aa)+
"). If you meant to render a collection of children, use an array instead.",
);
}
if(typeofl=="string"){
varia=r.blockedSegment;
ia.lastPushedText=Xi(
r.blockedSegment.chunks,
l,
t.responseState,
ia.lastPushedText,
);
return;
}
if(typeofl=="number"){
varDl=r.blockedSegment;
Dl.lastPushedText=Xi(
r.blockedSegment.chunks,
""+l,
t.responseState,
Dl.lastPushedText,
);
return;
}
typeofl=="function"&&
c(
"Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.",
"A root segment ID must have been assigned by now. This is a bug in React.",
);
}
returnqn(t,r,u);
}elsereturnqn(t,r,u),Hs(r,t.responseState,p);
}
function_i(t,r){
try{
varl=t.completedRootSegment;
l!==null&&
t.pendingRootTasks===0&&
(Kn(t,r,l),
(t.completedRootSegment=null),
_n(r,t.responseState));
varu=t.clientRenderedBoundaries,
p;
for(p=0;p<u.length;p++){
varg=u[p];
if(!oa(t,r,g)){
(t.destination=null),p++,u.splice(0,p);
return;
}
}
u.splice(0,p);
vary=t.completedBoundaries;
for(p=0;p<y.length;p++){
varw=y[p];
if(!Rl(t,r,w)){
(t.destination=null),p++,y.splice(0,p);
return;
}
}
y.splice(0,p);
varC=t.partialBoundaries;
for(p=0;p<C.length;p++){
var_=C[p];
if(!Il(t,r,_)){
(t.destination=null),p++,C.splice(0,p);
return;
}
}
C.splice(0,p);
varO=t.completedBoundaries;
for(p=0;p<O.length;p++){
varj=O[p];
if(!Rl(t,r,j)){
(t.destination=null),p++,O.splice(0,p);
return;
}
}
O.splice(0,p);
}finally{
t.allPendingTasks===0&&
t.pingedTasks.length===0&&
t.clientRenderedBoundaries.length===0&&
t.completedBoundaries.length===0&&
(t.abortableTasks.size!==0&&
c(
"There was still abortable task at the root when we closed. This is a bug in React.",
),
V(r));
}
}
functionPi(t){
S(function(){
returnRi(t);
});
}
functioneo(t,r){
if(t.status===gi){
(t.status=tn),Oe(r,t.fatalError);
return;
}
if(t.status!==tn&&t.destination===null){
t.destination=r;
try{
_i(t,r);
}catch(l){
Ot(t,l),on(t,l);
}
}
}
function_l(t,r){
try{
varl=t.abortableTasks;
l.forEach(function(u){
returnEl(u,t,r);
}),
l.clear(),
t.destination!==null&&_i(t,t.destination);
}catch(u){
Ot(t,u),on(t,u);
}
}
functionPl(){}
functionFi(t,r,l,u){
varp=!1,
g=null,
y="",
w={
push:function(j){
returnj!==null&&(y+=j),!0;
},
destroy:function(j){
(p=!0),(g=j);
},
},
C=!1;
function_(){
C=!0;
}
varO=yl(
t,
Yi(l,r?r.identifierPrefix:void0),
Gi(),
1/0,
Pl,
void0,
_,
void0,
void0,
);
if((Pi(O),_l(O,u),eo(O,w),p))throwg;
if(!C){
thrownewError(
"A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.",
);
}
returny;
}
functionBu(t,r){
(t.prototype=Object.create(r.prototype)),
(t.prototype.constructor=t),
(t.__proto__=r);
}
varFl=(function(t){
Bu(r,t);
functionr(){
varu;
return(
(u=t.call(this,{})||this),
(u.request=null),
(u.startedFlowing=!1),
u
);
}
varl=r.prototype;
return(
(l._destroy=function(p,g){
_l(this.request),g(p);
}),
(l._read=function(p){
this.startedFlowing&&eo(this.request,this);
}),
r
);
})(n.Readable);
functionUu(){}
functionAl(t,r,l){
functionu(){
(p.startedFlowing=!0),eo(g,p);
}
varp=newFl(),
g=yl(
t,
Yi(!1,r?r.identifierPrefix:void0),
Gi(),
1/0,
Uu,
u,
void0,
void0,
);
return(p.request=g),Pi(g),p;
}
functiono(t,r){
return(
c(
"renderToNodeStream is deprecated. Use renderToPipeableStream instead.",
),Al(t,r)
);
}
functiona(t,r){
returnAl(t,r);
}
functionf(t,r){
returnFi(
t,
r,
!1,
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server',
);
}
functiond(t,r){
returnFi(
t,
r,
!0,
'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server',
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.",
),
a.onChange||
a.readOnly||
a.disabled||
a.checked==null||
c(
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.",
"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",
o,
)
:c(
"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.",
),
(Te[a]=!0),
!0
);
}
if(d!=null){
varr=d.registrationNameDependencies,
l=d.possibleRegistrationNames;
if(r.hasOwnProperty(a))return!0;
varu=l.hasOwnProperty(t)?l[t]:null;
if(u!=null){
return(
c(
"Invalid event handler property `%s`. Did you mean `%s`?",
a,
u,
),
(Te[a]=!0),
!0
);
}
if(vo.test(a)){
return(
c(
"Unknown event handler property `%s`. It will be ignored.",
a,
),
(Te[a]=!0),
!0
);
}
}elseif(vo.test(a)){
return(
go.test(a)&&
c(
"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
a,
),
(Te[a]=!0),
!0
);
}
if(xt.test(a)||hn.test(a))return!0;
if(t==="innerhtml"){
return(
c(
"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.",
),
(Te[a]=!0),
!0
);
}
if(t==="aria"){
return(
c(
"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.",
),
(Te[a]=!0),
!0
);
}
if(
t==="is"&&f!==null&&f!==void0&&typeoff!="string"
){
return(
c(
"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
typeoff,
),
(Te[a]=!0),
!0
);
}
if(typeoff=="number"&&isNaN(f)){
return(
c(
"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
a,
),
(Te[a]=!0),
!0
);
}
varp=uo(a),
g=p!==null&&p.type===Er;
if(pn.hasOwnProperty(t)){
vary=pn[t];
if(y!==a){
return(
c("Invalid DOM property `%s`. Did you mean `%s`?",a,y),
(Te[a]=!0),
!0
);
}
}elseif(!g&&a!==t){
return(
c(
"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
a,
t,
),
(Te[a]=!0),
!0
);
}
returntypeoff=="boolean"&&so(a,f,p,!1)
?(f
?c(
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',
f,
a,
a,
f,
a,
)
:c(
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',
f,
a,
a,
f,
a,
a,
a,
),
(Te[a]=!0),
!0)
:g
?!0
:so(a,f,p,!1)
?((Te[a]=!0),!1)
:((f==="false"||f==="true")&&
p!==null&&
p.type===bt&&
(c(
"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
f,
a,
f==="false"
?"The browser will interpret it as a truthy value."
:'Although this works, it will not work as expected if you pass the string "false".',
a,
f,
),
(Te[a]=!0)),
!0);
};
}
varvn=function(o,a,f){
{
vard=[];
for(vartina){
varr=wt(o,t,a[t],f);
r||d.push(t);
}
varl=d
.map(function(u){
return"`"+u+"`";
})
.join(", ");
d.length===1
?c(
"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",
l,
o,
)
:d.length>1&&
c(
"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",
l,
o,
);
}
};
functionIr(o,a,f){
fn(o,a)||vn(o,a,f);
}
varur=function(){};
{
var_r=/^(?:webkit|moz|o)[A-Z]/,
ya=/^-ms-/,
ba=/-(.)/g,
mo=/;\s*$/,
Ut={},
gn={},
jt=!1,
Pr=!1,
ge=function(o){
returno.replace(ba,function(a,f){
returnf.toUpperCase();
});
},
Sa=function(o){
(Ut.hasOwnProperty(o)&&Ut[o])||
((Ut[o]=!0),
c(
"Unsupported style property %s. Did you mean %s?",
o,
ge(o.replace(ya,"ms-")),
));
},
wa=function(o){
(Ut.hasOwnProperty(o)&&Ut[o])||
((Ut[o]=!0),
c(
"Unsupported vendor-prefixed style property %s. Did you mean %s?",
"A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",
"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.",
);
}
vard=!0;
for(vartinf){
if(!!B.call(f,t)){
varr=f[t];
if(!(r==null||typeofr=="boolean"||r==="")){
varl=void0,
u=void0,
p=t.indexOf("--")===0;
p
?((l=be(t)),ft(r,t),(u=be((""+r).trim())))
:(yo(t,r),
(l=rt(t)),
typeofr=="number"
?r!==0&&!B.call(ar,t)?(u=r+"px"):(u=""+r)
:(ft(r,t),(u=be((""+r).trim())))),
d?((d=!1),o.push(pr,l,hr,u)):o.push(It,l,hr,u);
}
}
}
d||o.push(vt);
}
varZe=F(" "),
_t=F('="'),
vt=F('"'),
Ur=F('=""');
functionRe(o,a,f,d){
switch(f){
case"style":{
vr(o,a,d);
return;
}
case"defaultValue":
case"defaultChecked":
case"innerHTML":
case"suppressContentEditableWarning":
case"suppressHydrationWarning":
return;
}
if(
!(
f.length>2&&
(f[0]==="o"||f[0]==="O")&&
(f[1]==="n"||f[1]==="N")
)
){
vart=uo(f);
if(t!==null){
switch(typeofd){
case"function":
case"symbol":
return;
case"boolean":
if(!t.acceptsBooleans)return;
}
varr=t.attributeName,
l=r;
switch(t.type){
casebt:
d&&o.push(Ze,l,Ur);
return;
caseLe:
d===!0
?o.push(Ze,l,Ur)
:d===!1||o.push(Ze,l,_t,be(d),vt);
return;
caseer:
isNaN(d)||o.push(Ze,l,_t,be(d),vt);
break;
casere:
!isNaN(d)&&d>=1&&o.push(Ze,l,_t,be(d),vt);
break;
default:
t.sanitizeURL&&(Lt(d,r),(d=""+d),Ia(d)),
o.push(Ze,l,_t,be(d),vt);
}
}elseif(St(f)){
switch(typeofd){
case"function":
case"symbol":
return;
case"boolean":{
varu=f.toLowerCase().slice(0,5);
if(u!=="data-"&&u!=="aria-")return;
}
}
o.push(Ze,f,_t,be(d),vt);
}
}
}
varJe=F(">"),
xn=F("/>");
functiongr(o,a,f){
if(a!=null){
if(f!=null){
thrownewError(
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofa!="object"||!("__html"ina)){
thrownewError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
}
vard=a.__html;
d!=null&&(Me(d),o.push(""+d));
}
}
varjr=!1,
kn=!1,
Tn=!1,
xo=!1,
ko=!1,
To=!1,
Cn=!1;
functionPt(o,a){
{
varf=o[a];
if(f!=null){
vard=cr(f);
o.multiple&&!d
?c(
"The `%s` prop supplied to <select> must be an array if `multiple` is true.",
a,
)
:!o.multiple&&
d&&
c(
"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",
a,
);
}
}
}
functionPa(o,a,f){
lr("select",a),
Pt(a,"value"),
Pt(a,"defaultValue"),
a.value!==void0&&
a.defaultValue!==void0&&
!Tn&&
(c(
"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components",
),
(Tn=!0)),
o.push(T("select"));
vard=null,
t=null;
for(varrina){
if(B.call(a,r)){
varl=a[r];
if(l==null)continue;
switch(r){
case"children":
d=l;
break;
case"dangerouslySetInnerHTML":
t=l;
break;
case"defaultValue":
case"value":
break;
default:
Re(o,f,r,l);
break;
}
}
}
returno.push(Je),gr(o,t,d),d;
}
functiongt(o){
vara="";
return(
e.Children.forEach(o,function(f){
f!=null&&
((a+=f),
!ko&&
typeoff!="string"&&
typeoff!="number"&&
((ko=!0),
c(
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.",
)));
}),a
);
}
varHr=F(' selected=""');
functionFa(o,a,f,d){
vart=d.selectedValue;
o.push(T("option"));
varr=null,
l=null,
u=null,
p=null;
for(vargina){
if(B.call(a,g)){
vary=a[g];
if(y==null)continue;
switch(g){
case"children":
r=y;
break;
case"selected":
(u=y),
Cn||
(c(
"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.",
),
(Cn=!0));
break;
case"dangerouslySetInnerHTML":
p=y;
break;
case"value":
l=y;
default:
Re(o,f,g,y);
break;
}
}
}
if(t!=null){
varw;
if(
(l!==null?(Lt(l,"value"),(w=""+l)):(p!==null&&
(To||
((To=!0),
c(
"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.",
))),
(w=gt(r))),
cr(t))
){
for(varC=0;C<t.length;C++){
Lt(t[C],"value");
var_=""+t[C];
if(_===w){
o.push(Hr);
break;
}
}
}elseLt(t,"select.value"),""+t===w&&o.push(Hr);
}elseu&&o.push(Hr);
returno.push(Je),gr(o,p,r),r;
}
functionmr(o,a,f){
lr("input",a),
a.checked!==void0&&
a.defaultChecked!==void0&&
!kn&&
(c(
"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",
"A component",
a.type,
),
(kn=!0)),
a.value!==void0&&
a.defaultValue!==void0&&
!jr&&
(c(
"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",
"A component",
a.type,
),
(jr=!0)),
o.push(T("input"));
vard=null,
t=null,
r=null,
l=null;
for(varuina){
if(B.call(a,u)){
varp=a[u];
if(p==null)continue;
switch(u){
case"children":
case"dangerouslySetInnerHTML":
thrownewError(
"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
case"defaultChecked":
l=p;
break;
case"defaultValue":
t=p;
break;
case"checked":
r=p;
break;
case"value":
d=p;
break;
default:
Re(o,f,u,p);
break;
}
}
}
return(
r!==null
?Re(o,f,"checked",r)
:l!==null&&Re(o,f,"checked",l),
d!==null
?Re(o,f,"value",d)
:t!==null&&Re(o,f,"value",t),
o.push(xn),
null
);
}
functionBe(o,a,f){
lr("textarea",a),
a.value!==void0&&
a.defaultValue!==void0&&
!xo&&
(c(
"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",
),
(xo=!0)),
o.push(T("textarea"));
vard=null,
t=null,
r=null;
for(varlina){
if(B.call(a,l)){
varu=a[l];
if(u==null)continue;
switch(l){
case"children":
r=u;
break;
case"value":
d=u;
break;
case"defaultValue":
t=u;
break;
case"dangerouslySetInnerHTML":
thrownewError(
"`dangerouslySetInnerHTML` does not make sense on <textarea>.",
"Use the `defaultValue` or `value` props instead of setting children on <textarea>.",
),
d!=null)
){
thrownewError(
"If you supply `defaultValue` on a <textarea>, do not pass children.",
);
}
if(cr(r)){
if(r.length>1){
thrownewError("<textarea> can only have at most one child.");
}
Me(r[0]),(d=""+r[0]);
}
Me(r),(d=""+r);
}
return(
typeofd=="string"&&
d[0]===
`
` &&
o.push(_n),
d!==null&&(Lt(d,"value"),o.push(We(""+d))),
null
);
}
functionEn(o,a,f,d){
o.push(T(f));
for(vartina){
if(B.call(a,t)){
varr=a[t];
if(r==null)continue;
switch(t){
case"children":
case"dangerouslySetInnerHTML":
thrownewError(
f+
" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
default:
Re(o,d,t,r);
break;
}
}
}
returno.push(xn),null;
}
functionRn(o,a,f){
o.push(T("menuitem"));
for(vardina){
if(B.call(a,d)){
vart=a[d];
if(t==null)continue;
switch(d){
case"children":
case"dangerouslySetInnerHTML":
thrownewError(
"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.",
);
default:
Re(o,f,d,t);
break;
}
}
}
returno.push(Je),null;
}
functionAa(o,a,f){
o.push(T("title"));
vard=null;
for(vartina){
if(B.call(a,t)){
varr=a[t];
if(r==null)continue;
switch(t){
case"children":
d=r;
break;
case"dangerouslySetInnerHTML":
thrownewError(
"`dangerouslySetInnerHTML` does not make sense on <title>.",
);
default:
Re(o,f,t,r);
break;
}
}
}
o.push(Je);
{
varl=Array.isArray(d)&&d.length<2?d[0]||null:d;
Array.isArray(d)&&d.length>1
?c(
"A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering",
)
:l!=null&&l.$$typeof!=null
?c(
"A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering",
)
:l!=null&&
typeofl!="string"&&
typeofl!="number"&&
c(
"A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering",
);
}
returnd;
}
functionIn(o,a,f,d){
o.push(T(f));
vart=null,
r=null;
for(varlina){
if(B.call(a,l)){
varu=a[l];
if(u==null)continue;
switch(l){
case"children":
t=u;
break;
case"dangerouslySetInnerHTML":
r=u;
break;
default:
Re(o,d,l,u);
break;
}
}
}
return(
o.push(Je),
gr(o,r,t),
typeoft=="string"?(o.push(We(t)),null):t
);
}
functionDa(o,a,f,d){
o.push(T(f));
vart=null,
r=null;
for(varlina){
if(B.call(a,l)){
varu=a[l];
if(u==null)continue;
switch(l){
case"children":
t=u;
break;
case"dangerouslySetInnerHTML":
r=u;
break;
case"style":
vr(o,d,u);
break;
case"suppressContentEditableWarning":
case"suppressHydrationWarning":
break;
default:
St(l)&&
typeofu!="function"&&
typeofu!="symbol"&&
o.push(Ze,l,_t,be(u),vt);
break;
}
}
}
returno.push(Je),gr(o,r,t),t;
}
var_n=F(`
`);
functionh(o,a,f,d){
o.push(T(f));
vart=null,
r=null;
for(varlina){
if(B.call(a,l)){
varu=a[l];
if(u==null)continue;
switch(l){
case"children":
t=u;
break;
case"dangerouslySetInnerHTML":
r=u;
break;
default:
Re(o,d,l,u);
break;
}
}
}
if((o.push(Je),r!=null)){
if(t!=null){
thrownewError(
"Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
);
}
if(typeofr!="object"||!("__html"inr)){
thrownewError(
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
}
varp=r.__html;
p!=null&&
(typeofp=="string"&&
p.length>0&&
p[0]===
`
`
?o.push(_n,p)
:(Me(p),o.push(""+p)));
}
return(
typeoft=="string"&&
t[0]===
`
` &&
o.push(_n),t
);
}
varb=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
k=newMap();
functionT(o){
vara=k.get(o);
if(a===void0){
if(!b.test(o))thrownewError("Invalid tag: "+o);
(a=F("<"+o)),k.set(o,a);
}
returna;
}
varI=F("<!DOCTYPE html>");
functionU(o,a,f,d,t){
switch(
(dn(a,f),
ma(a,f),
Ir(a,f,null),
!f.suppressContentEditableWarning&&
f.contentEditable&&
f.children!=null&&
c(
"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.",
),
t.insertionMode!==Wt&&
t.insertionMode!==zt&&
a.indexOf("-")===-1&&
typeoff.is!="string"&&
a.toLowerCase()!==a&&
c(
"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",
"An ID must have been assigned before we can complete the boundary.",
);
}
return(
P(o,f),
P(o,Ks),
(d||t||r)&&(P(o,Ua),P(o,ja(d||""))),
(t||r)&&(P(o,Ua),P(o,ja(t||""))),
r&&(P(o,Ua),P(o,ja(r))),
W(o,qs)
);
}
varQe=/[<\u2028\u2029]/g;
functionja(o){
vara=JSON.stringify(o);
returna.replace(Qe,function(f){
switch(f){
case"<":
return"\\u003c";
case"\u2028":
return"\\u2028";
case"\u2029":
return"\\u2029";
default:
thrownewError(
"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",
);
}
});
}
varze=Object.assign,
Ji=Symbol.for("react.element"),
Ha=Symbol.for("react.portal"),
Wa=Symbol.for("react.fragment"),
Ro=Symbol.for("react.strict_mode"),
Io=Symbol.for("react.profiler"),
Fn=Symbol.for("react.provider"),
An=Symbol.for("react.context"),
Dn=Symbol.for("react.forward_ref"),
On=Symbol.for("react.suspense"),
$r=Symbol.for("react.suspense_list"),
za=Symbol.for("react.memo"),
_o=Symbol.for("react.lazy"),
tu=Symbol.for("react.scope"),
ru=Symbol.for("react.debug_trace_mode"),
Qi=Symbol.for("react.legacy_hidden"),
nu=Symbol.for("react.default_value"),
Ki=Symbol.iterator,
ou="@@iterator";
functionqi(o){
if(o===null||typeofo!="object")returnnull;
vara=(Ki&&o[Ki])||o[ou];
returntypeofa=="function"?a:null;
}
functionie(o,a,f){
vard=o.displayName;
if(d)returnd;
vart=a.displayName||a.name||"";
returnt!==""?f+"("+t+")":f;
}
functionNr(o){
returno.displayName||"Context";
}
functionne(o){
if(o==null)returnnull;
if(
(typeofo.tag=="number"&&
c(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.",
),
typeofo=="function")
){
returno.displayName||o.name||null;
}
if(typeofo=="string")returno;
switch(o){
caseWa:
return"Fragment";
caseHa:
return"Portal";
caseIo:
return"Profiler";
caseRo:
return"StrictMode";
caseOn:
return"Suspense";
case$r:
return"SuspenseList";
}
if(typeofo=="object"){
switch(o.$$typeof){
caseAn:
vara=o;
returnNr(a)+".Consumer";
caseFn:
varf=o;
returnNr(f._context)+".Provider";
caseDn:
returnie(o,o.render,"ForwardRef");
caseza:
vard=o.displayName||null;
returnd!==null?d:ne(o.type)||"Memo";
case_o:{
vart=o,
r=t._payload,
l=t._init;
try{
returnne(l(r));
}catch{
returnnull;
}
}
}
}
returnnull;
}
varVr=0,
$a,
Na,
Va,
Ya,
Ga,
Xa,
el;
functiontl(){}
tl.__reactDisabledLog=!0;
functionZa(){
{
if(Vr===0){
($a=console.log),
(Na=console.info),
(Va=console.warn),
(Ya=console.error),
(Ga=console.group),
(Xa=console.groupCollapsed),
(el=console.groupEnd);
varo={
configurable:!0,
enumerable:!0,
value:tl,
writable:!0,
};
Object.defineProperties(console,{
info:o,
log:o,
warn:o,
error:o,
group:o,
groupCollapsed:o,
groupEnd:o,
});
}
Vr++;
}
}
functionJa(){
{
if((Vr--,Vr===0)){
varo={configurable:!0,enumerable:!0,writable:!0};
Object.defineProperties(console,{
log:ze({},o,{value:$a}),
info:ze({},o,{value:Na}),
warn:ze({},o,{value:Va}),
error:ze({},o,{value:Ya}),
group:ze({},o,{value:Ga}),
groupCollapsed:ze({},o,{value:Xa}),
groupEnd:ze({},o,{value:el}),
});
}
Vr<0&&
c(
"disabledDepth fell below zero. This is a bug in React. Please file an issue.",
"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+
typeofo[l]+
"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.",
);
throw((p.name="Invariant Violation"),p);
}
u=o[l](
a,
l,
d,
f,
null,
"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",
);
}catch(g){
u=g;
}
u&&
!(uinstanceofError)&&
(Gr(t),
c(
"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
d||"React class",
f,
l,
typeofu,
),
Gr(null)),
uinstanceofError&&
!(u.messageinLn)&&
((Ln[u.message]=!0),
Gr(t),
c("Failed %s type: %s",f,u.message),
Gr(null));
}
}
}
}
varDo;
Do={};
varOo={};
Object.freeze(Oo);
functionXr(o,a){
{
varf=o.contextTypes;
if(!f)returnOo;
vard={};
for(vartinf)d[t]=a[t];
{
varr=ne(o)||"Unknown";
Bn(f,d,"context",r);
}
returnd;
}
}
functionlu(o,a,f,d){
{
if(typeofo.getChildContext!="function"){
{
vart=ne(a)||"Unknown";
Do[t]||
((Do[t]=!0),
c(
"%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",
t,
t,
));
}
returnf;
}
varr=o.getChildContext();
for(varlinr){
if(!(lind)){
thrownewError(
(ne(a)||"Unknown")+
'.getChildContext(): key "'+
l+
'" is not defined in childContextTypes.',
);
}
}
{
varu=ne(a)||"Unknown";
Bn(d,r,"child context",u);
}
returnze({},f,r);
}
}
varnt;
nt={};
varqa=null,
Ft=null;
functionZr(o){
o.context._currentValue=o.parentValue;
}
functionMo(o){
o.context._currentValue=o.value;
}
functionUn(o,a){
if(o!==a){
Zr(o);
varf=o.parent,
d=a.parent;
if(f===null){
if(d!==null){
thrownewError(
"The stacks must reach the root at the same time. This is a bug in React.",
);
}
}else{
if(d===null){
thrownewError(
"The stacks must reach the root at the same time. This is a bug in React.",
);
}
Un(f,d);
}
Mo(a);
}
}
functionei(o){
Zr(o);
vara=o.parent;
a!==null&&ei(a);
}
functionti(o){
vara=o.parent;
a!==null&&ti(a),Mo(o);
}
functionjn(o,a){
Zr(o);
varf=o.parent;
if(f===null){
thrownewError(
"The depth must equal at least at zero before reaching the root. This is a bug in React.",
);
}
f.depth===a.depth?Un(f,a):jn(f,a);
}
functionnl(o,a){
varf=a.parent;
if(f===null){
thrownewError(
"The depth must equal at least at zero before reaching the root. This is a bug in React.",
);
}
o.depth===f.depth?Un(o,f):nl(o,f),Mo(a);
}
functionLo(o){
vara=Ft,
f=o;
a!==f&&
(a===null
?ti(f)
:f===null
?ei(a)
:a.depth===f.depth
?Un(a,f)
:a.depth>f.depth
?jn(a,f)
:nl(a,f),
(Ft=f));
}
functionsu(o,a){
varf;
(f=o._currentValue),
(o._currentValue=a),
o._currentRenderer!==void0&&
o._currentRenderer!==null&&
o._currentRenderer!==nt&&
c(
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.",
),
(o._currentRenderer=nt);
vard=Ft,
t={
parent:d,
depth:d===null?0:d.depth+1,
context:o,
parentValue:f,
value:a,
};
return(Ft=t),t;
}
functionHn(o){
vara=Ft;
if(a===null){
thrownewError(
"Tried to pop a Context at the root of the app. This is a bug in React.",
);
}
a.context!==o&&
c(
"The parent context is not the expected context. This is probably a bug in React.",
" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.")
:typeoft!="object"
?(l=" However, it is set to a "+typeoft+".")
:t.$$typeof===Fn
?(l=" Did you accidentally pass the Context.Provider instead?")
:t._context!==void0
?(l=" Did you accidentally pass the Context.Consumer instead?")
:(l=" However, it is set to an object with keys {"+
Object.keys(t).join(", ")+
"}."),
c(
"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
ne(o)||"Component",
l,
);
}
}
typeoft=="object"&&t!==null?(d=Wn(t)):(d=f);
varu=newo(a,d);
{
if(
typeofo.getDerivedStateFromProps=="function"&&
(u.state===null||u.state===void0)
){
varp=ne(o)||"Component";
zn.has(p)||
(zn.add(p),
c(
"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
"%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",
d,
)
:c(
"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",
d,
)),
o.getInitialState&&
!o.getInitialState.isReactClassApproved&&
!o.state&&
c(
"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",
d,
),
o.getDefaultProps&&
!o.getDefaultProps.isReactClassApproved&&
c(
"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",
d,
),
o.propTypes&&
c(
"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",
d,
),
o.contextType&&
c(
"contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
d,
),
o.contextTypes&&
c(
"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",
d,
),
a.contextType&&
a.contextTypes&&
!zo.has(a)&&
(zo.add(a),
c(
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
d,
)),
typeofo.componentShouldUpdate=="function"&&
c(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
d,
),
a.prototype&&
a.prototype.isPureReactComponent&&
typeofo.shouldComponentUpdate<"u"&&
c(
"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
ne(a)||"A pure component",
),
typeofo.componentDidUnmount=="function"&&
c(
"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
d,
),
typeofo.componentDidReceiveProps=="function"&&
c(
"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",
d,
),
typeofo.componentWillRecieveProps=="function"&&
c(
"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
"%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
u,
));
}
varp=a.getDerivedStateFromProps;
typeofp=="function"&&(o.state=uu(o,a,p,t,f)),
typeofa.getDerivedStateFromProps!="function"&&
typeofo.getSnapshotBeforeUpdate!="function"&&
(typeofo.UNSAFE_componentWillMount=="function"||
typeofo.componentWillMount=="function")&&
(ll(a,o),du(r,o,f,d));
}
varoi={id:1,overflow:""};
functionNo(o){
vara=o.overflow,
f=o.id,
d=f&~pu(f);
returnd.toString(32)+a;
}
functionai(o,a,f){
vard=o.id,
t=o.overflow,
r=Vo(d)-1,
l=d&~(1<<r),
u=f+1,
p=Vo(a)+r;
if(p>30){
varg=r-(r%5),
y=(1<<g)-1,
w=(l&y).toString(32),
C=l>>g,
_=r-g,
O=Vo(a)+_,
j=u<<_,
Z=j|C,
de=w+t;
return{id:(1<<O)|Z,overflow:de};
}else{
varwe=u<<r,
aa=we|l,
ia=t;
return{id:(1<<p)|aa,overflow:ia};
}
}
functionVo(o){
return32-hu(o);
}
functionpu(o){
return1<<(Vo(o)-1);
}
varhu=Math.clz32?Math.clz32:mu,
vu=Math.log,
gu=Math.LN2;
functionmu(o){
vara=o>>>0;
returna===0?32:(31-((vu(a)/gu)|0))|0;
}
functionAt(o,a){
return(
(o===a&&(o!==0||1/o===1/a))||(o!==o&&a!==a)
);
}
varii=typeofObject.is=="function"?Object.is:At,
Ke=null,
X=null,
Vt=null,
G=null,
Yt=!1,
ot=!1,
Sr=0,
Gt=null,
$e=0,
Kr=25,
Ie=!1,
qr;
functionXt(){
if(Ke===null){
thrownewError(
`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:
Seehttps://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`,
);
}
return(
Ie&&
c(
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks",
),Ke
);
}
functionli(o,a){
if(a===null){
return(
c(
"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
qr,
),!1
);
}
o.length!==a.length&&
c(
`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous:%s
Incoming:%s`,
qr,
"["+o.join(", ")+"]",
"["+a.join(", ")+"]",
);
for(varf=0;f<a.length&&f<o.length;f++){
if(!ii(o[f],a[f]))return!1;
}
return!0;
}
functionul(){
if($e>0){
thrownewError(
"Rendered more hooks than during the previous render",
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().",
"useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.",
);
}
functionwu(o,a,f){
if($e>=Kr){
thrownewError(
"Too many re-renders. React limits the number of renders to prevent an infinite loop.",
);
}
if(o===Ke){
ot=!0;
vard={action:f,next:null};
Gt===null&&(Gt=newMap());
vart=Gt.get(a);
if(t===void0)Gt.set(a,d);
else{
for(varr=t;r.next!==null;)r=r.next;
r.next=d;
}
}
}
functionxu(o,a){
returnhl(function(){
returno;
},a);
}
functionku(o,a,f){
returnXt(),a(o._source);
}
functionTu(o,a,f){
if(f===void0){
thrownewError(
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.",
);
}
returnf();
}
functionCu(o){
returnXt(),o;
}
functionEu(){
thrownewError(
"startTransition cannot be called during server rendering.",
);
}
functionGo(){
returnXt(),[!1,Eu];
}
functionvl(){
varo=X,
a=No(o.treeContext),
f=pi;
if(f===null){
thrownewError(
"Invalid hook call. Hooks can only be called inside of the body of a function component.",
'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 "'+
"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
r,
r,
),
(bi[r]=!0));
}
varl=wl(o,a,f,d,t),
u=fl();
if(
typeofl=="object"&&
l!==null&&
typeofl.render=="function"&&
l.$$typeof===void0
){
varp=ne(f)||"Unknown";
Qn[p]||
(c(
"The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",
p,
p,
p,
),
(Qn[p]=!0));
}
if(
typeofl=="object"&&
l!==null&&
typeofl.render=="function"&&
l.$$typeof===void0
){
{
varg=ne(f)||"Unknown";
Qn[g]||
(c(
"The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",
g,
g,
g,
),
(Qn[g]=!0));
}
sl(l,f,d,t),yi(o,a,l,f,d);
}elseif((_u(f),u)){
vary=a.treeContext,
w=1,
C=0;
a.treeContext=ai(y,w,C);
try{
Ue(o,a,l);
}finally{
a.treeContext=y;
}
}elseUe(o,a,l);
mt(a);
}
function_u(o){
{
if(
(o&&
o.childContextTypes&&
c(
"%s(...): childContextTypes cannot be defined on a function component.",
o.displayName||o.name||"Component",
),
typeofo.getDerivedStateFromProps=="function")
){
vara=ne(o)||"Unknown";
wi[a]||
(c(
"%s: Function components do not support getDerivedStateFromProps.",
(c("%s: Function components do not support contextType.",f),
(Si[f]=!0));
}
}
}
functionCl(o,a){
if(o&&o.defaultProps){
varf=ze({},a),
d=o.defaultProps;
for(vartind)f[t]===void0&&(f[t]=d[t]);
returnf;
}
returna;
}
functionPu(o,a,f,d,t){
Dt(a,f.render);
varr=wl(o,a,f.render,d,t),
l=fl();
if(l){
varu=a.treeContext,
p=1,
g=0;
a.treeContext=ai(u,p,g);
try{
Ue(o,a,r);
}finally{
a.treeContext=u;
}
}elseUe(o,a,r);
mt(a);
}
functionFu(o,a,f,d,t){
varr=f.type,
l=Cl(r,d);
Pe(o,a,r,l,t);
}
functionAu(o,a,f,d){
f._context===void0
?f!==f.Consumer&&
(kl||
((kl=!0),
c(
"Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?",
)))
:(f=f._context);
vart=d.children;
typeoft!="function"&&
c(
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.",
);
varr=Wn(f),
l=t(r);
Ue(o,a,l);
}
functionTi(o,a,f,d){
vart=f._context,
r=d.value,
l=d.children,
u;
(u=a.context),
(a.context=su(t,r)),
Ue(o,a,l),
(a.context=Hn(t)),
u!==a.context&&
c(
"Popping the context provider did not return back to the original snapshot. This is a bug in React.",
);
}
functionDu(o,a,f,d,t){
Xn(a,"Lazy");
varr=f._payload,
l=f._init,
u=l(r),
p=Cl(u,d);
Pe(o,a,u,p,t),mt(a);
}
functionPe(o,a,f,d,t){
if(typeoff=="function"){
if(Sl(f)){
qo(o,a,f,d);
return;
}else{
Tl(o,a,f,d);
return;
}
}
if(typeoff=="string"){
bl(o,a,f,d);
return;
}
switch(f){
caseQi:
caseru:
caseRo:
caseIo:
caseWa:{
Ue(o,a,d.children);
return;
}
case$r:{
Xn(a,"SuspenseList"),Ue(o,a,d.children),mt(a);
return;
}
casetu:
thrownewError(
"ReactDOMServer does not yet support scope components.",
);
caseOn:{
Iu(o,a,d);
return;
}
}
if(typeoff=="object"&&f!==null){
switch(f.$$typeof){
caseDn:{
Pu(o,a,f,d,t);
return;
}
caseza:{
Fu(o,a,f,d,t);
return;
}
caseFn:{
Ti(o,a,f,d);
return;
}
caseAn:{
Au(o,a,f,d);
return;
}
case_o:{
Du(o,a,f,d);
return;
}
}
}
varr="";
throw(
((f===void0||
(typeoff=="object"&&
f!==null&&
Object.keys(f).length===0))&&
(r+=
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),
newError(
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+
("but got: "+(f==null?f:typeoff)+"."+r),
))
);
}
functionOu(o,a){
typeofSymbol=="function"&&
o[Symbol.toStringTag]==="Generator"&&
(ki||
c(
"Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers.",
),
(ki=!0)),
o.entries===a&&
(xl||
c(
"Using Maps as children is not supported. Use an array of keyed ReactElements instead.",
),
(xl=!0));
}
functionUe(o,a,f){
try{
returnMu(o,a,f);
}catch(d){
throw(
((typeofd=="object"&&
d!==null&&
typeofd.then=="function")||
(Ot=Ot!==null?Ot:Qo()),
d)
);
}
}
functionMu(o,a,f){
if(((a.node=f),typeoff=="object"&&f!==null)){
switch(f.$$typeof){
caseJi:{
vard=f,
t=d.type,
r=d.props,
l=d.ref;
Pe(o,a,t,r,l);
return;
}
caseHa:
thrownewError(
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.",
);
case_o:{
varu=f,
p=u._payload,
g=u._init,
y;
try{
y=g(p);
}catch(we){
throw(
(typeofwe=="object"&&
we!==null&&
typeofwe.then=="function"&&
Xn(a,"Lazy"),
we)
);
}
Ue(o,a,y);
return;
}
}
if(cr(f)){
ea(o,a,f);
return;
}
varw=qi(f);
if(w){
Ou(f,w);
varC=w.call(f);
if(C){
var_=C.next();
if(!_.done){
varO=[];
doO.push(_.value),(_=C.next());while(!_.done);
ea(o,a,O);
return;
}
return;
}
}
varj=Object.prototype.toString.call(f);
thrownewError(
"Objects are not valid as a React child (found: "+
(j==="[object Object]"
?"object with keys {"+Object.keys(f).join(", ")+"}"
:j)+
"). If you meant to render a collection of children, use an array instead.",
);
}
if(typeoff=="string"){
varZ=a.blockedSegment;
Z.lastPushedText=ht(
a.blockedSegment.chunks,
f,
o.responseState,
Z.lastPushedText,
);
return;
}
if(typeoff=="number"){
varde=a.blockedSegment;
de.lastPushedText=ht(
a.blockedSegment.chunks,
""+f,
o.responseState,
de.lastPushedText,
);
return;
}
typeoff=="function"&&
c(
"Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.",