From 866124a5f209bc5c572d0c46ee70b285f5ed8d64 Mon Sep 17 00:00:00 2001 From: elizabethtrykin Date: Mon, 26 May 2025 21:07:11 -0700 Subject: [PATCH 1/2] widget --- .gitignore | 2 + fern/assets/widget.js | 372 +++++++ fern/custom.js | 39 + fern/docs.yml | 1 + fern/widget/index.tsx | 16 + fern/widget/package-lock.json | 1882 +++++++++++++++++++++++++++++++++ fern/widget/package.json | 24 + fern/widget/vite.config.ts | 22 + fern/widget/voice-widget.tsx | 510 +++++++++ 9 files changed, 2868 insertions(+) create mode 100644 fern/assets/widget.js create mode 100644 fern/custom.js create mode 100644 fern/widget/index.tsx create mode 100644 fern/widget/package-lock.json create mode 100644 fern/widget/package.json create mode 100644 fern/widget/vite.config.ts create mode 100644 fern/widget/voice-widget.tsx diff --git a/.gitignore b/.gitignore index ef6886a6..74231d1f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ **/.definition **/.preview/** +node_modules/ +dist/ .env .DS_Store \ No newline at end of file diff --git a/fern/assets/widget.js b/fern/assets/widget.js new file mode 100644 index 00000000..94f6beb8 --- /dev/null +++ b/fern/assets/widget.js @@ -0,0 +1,372 @@ +var e3=Object.defineProperty;var t3=(pc,Xl,hd)=>Xl in pc?e3(pc,Xl,{enumerable:!0,configurable:!0,writable:!0,value:hd}):pc[Xl]=hd;var _t=(pc,Xl,hd)=>t3(pc,typeof Xl!="symbol"?Xl+"":Xl,hd);(function(){"use strict";function pc(o,u){for(var f=0;fp[b]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}function Xl(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function hd(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var u=o.default;if(typeof u=="function"){var f=function p(){return this instanceof p?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(o).forEach(function(p){var b=Object.getOwnPropertyDescriptor(o,p);Object.defineProperty(f,p,b.get?b:{enumerable:!0,get:function(){return o[p]}})}),f}var Fg={exports:{}},pt={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var lT;function KC(){if(lT)return pt;lT=1;var o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),O=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),Y=Symbol.iterator;function L(j){return j===null||typeof j!="object"?null:(j=Y&&j[Y]||j["@@iterator"],typeof j=="function"?j:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,ae={};function ve(j,V,pe){this.props=j,this.context=V,this.refs=ae,this.updater=pe||x}ve.prototype.isReactComponent={},ve.prototype.setState=function(j,V){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,V,"setState")},ve.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function _e(){}_e.prototype=ve.prototype;function Ce(j,V,pe){this.props=j,this.context=V,this.refs=ae,this.updater=pe||x}var De=Ce.prototype=new _e;De.constructor=Ce,G(De,ve.prototype),De.isPureReactComponent=!0;var oe=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},be=Object.prototype.hasOwnProperty;function ce(j,V,pe,ee,v,C){return pe=C.ref,{$$typeof:o,type:j,key:V,ref:pe!==void 0?pe:null,props:C}}function Se(j,V){return ce(j.type,V,void 0,void 0,void 0,j.props)}function Ue(j){return typeof j=="object"&&j!==null&&j.$$typeof===o}function Te(j){var V={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(pe){return V[pe]})}var Pe=/\/+/g;function Ne(j,V){return typeof j=="object"&&j!==null&&j.key!=null?Te(""+j.key):V.toString(36)}function Qe(){}function lt(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(Qe,Qe):(j.status="pending",j.then(function(V){j.status==="pending"&&(j.status="fulfilled",j.value=V)},function(V){j.status==="pending"&&(j.status="rejected",j.reason=V)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function Fe(j,V,pe,ee,v){var C=typeof j;(C==="undefined"||C==="boolean")&&(j=null);var T=!1;if(j===null)T=!0;else switch(C){case"bigint":case"string":case"number":T=!0;break;case"object":switch(j.$$typeof){case o:case u:T=!0;break;case k:return T=j._init,Fe(T(j._payload),V,pe,ee,v)}}if(T)return v=v(j),T=ee===""?"."+Ne(j,0):ee,oe(v)?(pe="",T!=null&&(pe=T.replace(Pe,"$&/")+"/"),Fe(v,V,pe,"",function(K){return K})):v!=null&&(Ue(v)&&(v=Se(v,pe+(v.key==null||j&&j.key===v.key?"":(""+v.key).replace(Pe,"$&/")+"/")+T)),V.push(v)),1;T=0;var U=ee===""?".":ee+":";if(oe(j))for(var z=0;z";if(typeof R=="object"&&R!==null&&R.$$typeof===me)return"<...>";try{var Z=Y(R);return Z?"<"+Z+">":"<...>"}catch{return"<...>"}}function x(){var R=Ze.A;return R===null?null:R.getOwner()}function G(){return Error("react-stack-top-frame")}function ae(R){if(ba.call(R,"key")){var Z=Object.getOwnPropertyDescriptor(R,"key").get;if(Z&&Z.isReactWarning)return!1}return R.key!==void 0}function ve(R,Z){function Me(){vi||(vi=!0,console.error("%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://react.dev/link/special-props)",Z))}Me.isReactWarning=!0,Object.defineProperty(R,"key",{get:Me,configurable:!0})}function _e(){var R=Y(this.type);return Wl[R]||(Wl[R]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),R=this.props.ref,R!==void 0?R:null}function Ce(R,Z,Me,xe,He,ht,at,Ot){return Me=ht.ref,R={$$typeof:Re,type:R,key:Z,props:ht,_owner:He},(Me!==void 0?Me:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:_e}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ot}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function De(R,Z){return Z=Ce(R.type,Z,void 0,void 0,R._owner,R.props,R._debugStack,R._debugTask),R._store&&(Z._store.validated=R._store.validated),Z}function oe(R){return typeof R=="object"&&R!==null&&R.$$typeof===Re}function P(R){var Z={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Me){return Z[Me]})}function be(R,Z){return typeof R=="object"&&R!==null&&R.key!=null?(k(R.key),P(""+R.key)):Z.toString(36)}function ce(){}function Se(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ce,ce):(R.status="pending",R.then(function(Z){R.status==="pending"&&(R.status="fulfilled",R.value=Z)},function(Z){R.status==="pending"&&(R.status="rejected",R.reason=Z)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Ue(R,Z,Me,xe,He){var ht=typeof R;(ht==="undefined"||ht==="boolean")&&(R=null);var at=!1;if(R===null)at=!0;else switch(ht){case"bigint":case"string":case"number":at=!0;break;case"object":switch(R.$$typeof){case Re:case j:at=!0;break;case me:return at=R._init,Ue(at(R._payload),Z,Me,xe,He)}}if(at){at=R,He=He(at);var Ot=xe===""?"."+be(at,0):xe;return va(He)?(Me="",Ot!=null&&(Me=Ot.replace(wc,"$&/")+"/"),Ue(He,Z,Me,"",function(On){return On})):He!=null&&(oe(He)&&(He.key!=null&&(at&&at.key===He.key||k(He.key)),Me=De(He,Me+(He.key==null||at&&at.key===He.key?"":(""+He.key).replace(wc,"$&/")+"/")+Ot),xe!==""&&at!=null&&oe(at)&&at.key==null&&at._store&&!at._store.validated&&(Me._store.validated=2),He=Me),Z.push(He)),1}if(at=0,Ot=xe===""?".":xe+":",va(R))for(var et=0;et import('./MyComponent')) + +Did you accidentally put curly braces around the import?`,Z),"default"in Z||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent'))`,Z),Z.default;throw R._result}function Ne(){var R=Ze.H;return R===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),R}function Qe(){}function lt(R){if(er===null)try{var Z=("require"+Math.random()).slice(0,7);er=(o&&o[Z]).call(o,"timers").setImmediate}catch{er=function(xe){Mc===!1&&(Mc=!0,typeof MessageChannel>"u"&&console.error("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."));var He=new MessageChannel;He.port1.onmessage=xe,He.port2.postMessage(void 0)}}return er(R)}function Fe(R){return 1 ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(et,On){He=!0,at.then(function(yl){if(re(Z,Me),Me===0){try{Ae(xe),lt(function(){return F(yl,et,On)})}catch(gl){Ze.thrownErrors.push(gl)}if(0 ...)"))}),Ze.actQueue=null),0Ze.recentlyCreatedOwnerStacks++;return Ce(R,He,void 0,void 0,x(),xe,et?Error("react-stack-top-frame"):ua,et?gi(L(R)):bi)},u.createRef=function(){var R={current:null};return Object.seal(R),R},u.forwardRef=function(R){R!=null&&R.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof R!="function"?console.error("forwardRef requires a render function but was given %s.",R===null?"null":typeof R):R.length!==0&&R.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",R.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),R!=null&&R.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Z={$$typeof:T,render:R},Me;return Object.defineProperty(Z,"displayName",{enumerable:!1,configurable:!0,get:function(){return Me},set:function(xe){Me=xe,R.name||R.displayName||(Object.defineProperty(R,"name",{value:xe}),R.displayName=xe)}}),Z},u.isValidElement=oe,u.lazy=function(R){return{$$typeof:me,_payload:{_status:-1,_result:R},_init:Pe}},u.memo=function(R,Z){R==null&&console.error("memo: The first argument must be a component. Instead received: %s",R===null?"null":typeof R),Z={$$typeof:K,type:R,compare:Z===void 0?null:Z};var Me;return Object.defineProperty(Z,"displayName",{enumerable:!1,configurable:!0,get:function(){return Me},set:function(xe){Me=xe,R.name||R.displayName||(Object.defineProperty(R,"name",{value:xe}),R.displayName=xe)}}),Z},u.startTransition=function(R){var Z=Ze.T,Me={};Ze.T=Me,Me._updatedFibers=new Set;try{var xe=R(),He=Ze.S;He!==null&&He(Me,xe),typeof xe=="object"&&xe!==null&&typeof xe.then=="function"&&xe.then(Qe,Qu)}catch(ht){Qu(ht)}finally{Z===null&&Me._updatedFibers&&(R=Me._updatedFibers.size,Me._updatedFibers.clear(),10>>1,j=re[Re];if(0>>1;Reb(ee,Ae))vb(C,ee)?(re[Re]=C,re[v]=Ae,Re=v):(re[Re]=ee,re[pe]=Ae,Re=pe);else if(vb(C,Ae))re[Re]=C,re[v]=Ae,Re=v;else break e}}return F}function b(re,F){var Ae=re.sortIndex-F.sortIndex;return Ae!==0?Ae:re.id-F.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;o.unstable_now=function(){return m.now()}}else{var g=Date,_=g.now();o.unstable_now=function(){return g.now()-_}}var E=[],O=[],k=1,Y=null,L=3,x=!1,G=!1,ae=!1,ve=!1,_e=typeof setTimeout=="function"?setTimeout:null,Ce=typeof clearTimeout=="function"?clearTimeout:null,De=typeof setImmediate<"u"?setImmediate:null;function oe(re){for(var F=f(O);F!==null;){if(F.callback===null)p(O);else if(F.startTime<=re)p(O),F.sortIndex=F.expirationTime,u(E,F);else break;F=f(O)}}function P(re){if(ae=!1,oe(re),!G)if(f(E)!==null)G=!0,be||(be=!0,Ne());else{var F=f(O);F!==null&&Fe(P,F.startTime-re)}}var be=!1,ce=-1,Se=5,Ue=-1;function Te(){return ve?!0:!(o.unstable_now()-Uere&&Te());){var Re=Y.callback;if(typeof Re=="function"){Y.callback=null,L=Y.priorityLevel;var j=Re(Y.expirationTime<=re);if(re=o.unstable_now(),typeof j=="function"){Y.callback=j,oe(re),F=!0;break t}Y===f(E)&&p(E),oe(re)}else p(E);Y=f(E)}if(Y!==null)F=!0;else{var V=f(O);V!==null&&Fe(P,V.startTime-re),F=!1}}break e}finally{Y=null,L=Ae,x=!1}F=void 0}}finally{F?Ne():be=!1}}}var Ne;if(typeof De=="function")Ne=function(){De(Pe)};else if(typeof MessageChannel<"u"){var Qe=new MessageChannel,lt=Qe.port2;Qe.port1.onmessage=Pe,Ne=function(){lt.postMessage(null)}}else Ne=function(){_e(Pe,0)};function Fe(re,F){ce=_e(function(){re(o.unstable_now())},F)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(re){re.callback=null},o.unstable_forceFrameRate=function(re){0>re||125Re?(re.sortIndex=Ae,u(O,re),f(E)===null&&re===f(O)&&(ae?(Ce(ce),ce=-1):ae=!0,Fe(P,Ae-Re))):(re.sortIndex=j,u(E,re),G||x||(G=!0,be||(be=!0,Ne()))),re},o.unstable_shouldYield=Te,o.unstable_wrapCallback=function(re){var F=L;return function(){var Ae=L;L=F;try{return re.apply(this,arguments)}finally{L=Ae}}}}(Db)),Db}var xb={},sT;function ew(){return sT||(sT=1,function(o){var u={};/** + * @license React + * scheduler.development.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */u.NODE_ENV!=="production"&&function(){function f(){if(be=!1,Te){var F=o.unstable_now();Qe=F;var Ae=!0;try{e:{oe=!1,P&&(P=!1,Se(Pe),Pe=-1),De=!0;var Re=Ce;try{t:{for(_(F),_e=b(G);_e!==null&&!(_e.expirationTime>F&&O());){var j=_e.callback;if(typeof j=="function"){_e.callback=null,Ce=_e.priorityLevel;var V=j(_e.expirationTime<=F);if(F=o.unstable_now(),typeof V=="function"){_e.callback=V,_(F),Ae=!0;break t}_e===b(G)&&m(G),_(F)}else m(G);_e=b(G)}if(_e!==null)Ae=!0;else{var pe=b(ae);pe!==null&&k(E,pe.startTime-F),Ae=!1}}break e}finally{_e=null,Ce=Re,De=!1}Ae=void 0}}finally{Ae?lt():Te=!1}}}function p(F,Ae){var Re=F.length;F.push(Ae);e:for(;0>>1,V=F[j];if(0>>1;jg(v,Re))Cg(T,v)?(F[j]=T,F[C]=Re,j=C):(F[j]=v,F[ee]=Re,j=ee);else if(Cg(T,Re))F[j]=T,F[C]=Re,j=C;else break e}}return Ae}function g(F,Ae){var Re=F.sortIndex-Ae.sortIndex;return Re!==0?Re:F.id-Ae.id}function _(F){for(var Ae=b(ae);Ae!==null;){if(Ae.callback===null)m(ae);else if(Ae.startTime<=F)m(ae),Ae.sortIndex=Ae.expirationTime,p(G,Ae);else break;Ae=b(ae)}}function E(F){if(P=!1,_(F),!oe)if(b(G)!==null)oe=!0,Te||(Te=!0,lt());else{var Ae=b(ae);Ae!==null&&k(E,Ae.startTime-F)}}function O(){return be?!0:!(o.unstable_now()-QeF||125j?(F.sortIndex=Re,p(ae,F),b(G)===null&&F===b(ae)&&(P?(Se(Pe),Pe=-1):P=!0,k(E,Re-j))):(F.sortIndex=V,p(G,F),oe||De||(oe=!0,Te||(Te=!0,lt()))),F},o.unstable_shouldYield=O,o.unstable_wrapCallback=function(F){var Ae=Ce;return function(){var Re=Ce;Ce=Ae;try{return F.apply(this,arguments)}finally{Ce=Re}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(xb)),xb}var cT;function fT(){if(cT)return ev.exports;cT=1;var o={};return o.NODE_ENV==="production"?ev.exports=WC():ev.exports=ew(),ev.exports}var tv={exports:{}},Ma={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dT;function tw(){if(dT)return Ma;dT=1;var o=pd();function u(E){var O="https://react.dev/errors/"+E;if(1` tag.%s',G),typeof L=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){G=x.as;var ae=b(G,x.crossOrigin);O.d.L(L,G,{crossOrigin:ae,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Ra.preloadModule=function(L,x){var G="";typeof L=="string"&&L||(G+=" The `href` argument encountered was "+m(L)+"."),x!==void 0&&typeof x!="object"?G+=" The `options` argument encountered was "+m(x)+".":x&&"as"in x&&typeof x.as!="string"&&(G+=" The `as` option encountered was "+m(x.as)+"."),G&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',G),typeof L=="string"&&(x?(G=b(x.as,x.crossOrigin),O.d.m(L,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:G,integrity:typeof x.integrity=="string"?x.integrity:void 0})):O.d.m(L))},Ra.requestFormReset=function(L){O.d.r(L)},Ra.unstable_batchedUpdates=function(L,x){return L(x)},Ra.useFormState=function(L,x,G){return _().useFormState(L,x,G)},Ra.useFormStatus=function(){return _().useHostTransitionStatus()},Ra.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Ra}var pT;function mT(){if(pT)return tv.exports;pT=1;var o={};function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(o.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}}return o.NODE_ENV==="production"?(u(),tv.exports=tw()):tv.exports=nw(),tv.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var yT;function aw(){if(yT)return Vp;yT=1;var o=fT(),u=pd(),f=mT();function p(n){var i="https://react.dev/errors/"+n;if(1j||(n.current=Re[j],Re[j]=null,j--)}function ee(n,i){j++,Re[j]=n.current,n.current=i}var v=V(null),C=V(null),T=V(null),U=V(null);function z(n,i){switch(ee(T,i),ee(C,n),ee(v,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Cl(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Cl(i),n=wr(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}pe(v),ee(v,n)}function K(){pe(v),pe(C),pe(T)}function me(n){n.memoizedState!==null&&ee(U,n);var i=v.current,l=wr(i,n.type);i!==l&&(ee(C,n),ee(v,l))}function we(n){C.current===n&&(pe(v),pe(C)),U.current===n&&(pe(U),aa._currentValue=Ae)}var je=Object.prototype.hasOwnProperty,Tt=o.unstable_scheduleCallback,We=o.unstable_cancelCallback,hn=o.unstable_shouldYield,oa=o.unstable_requestPaint,gt=o.unstable_now,$n=o.unstable_getCurrentPriorityLevel,va=o.unstable_ImmediatePriority,_n=o.unstable_UserBlockingPriority,Ze=o.unstable_NormalPriority,ba=o.unstable_LowPriority,gi=o.unstable_IdlePriority,vi=o.log,Gu=o.unstable_setDisableYieldValue,Wl=null,ua=null;function bi(n){if(typeof vi=="function"&&Gu(n),ua&&typeof ua.setStrictMode=="function")try{ua.setStrictMode(Wl,n)}catch{}}var Pn=Math.clz32?Math.clz32:Mc,wc=Math.log,Qu=Math.LN2;function Mc(n){return n>>>=0,n===0?32:31-(wc(n)/Qu|0)|0}var er=256,qi=4194304;function Kn(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function xa(n,i,l){var s=n.pendingLanes;if(s===0)return 0;var h=0,y=n.suspendedLanes,w=n.pingedLanes;n=n.warmLanes;var M=s&134217727;return M!==0?(s=M&~y,s!==0?h=Kn(s):(w&=M,w!==0?h=Kn(w):l||(l=M&~n,l!==0&&(h=Kn(l))))):(M=s&~y,M!==0?h=Kn(M):w!==0?h=Kn(w):l||(l=s&~n,l!==0&&(h=Kn(l)))),h===0?0:i!==0&&i!==h&&(i&y)===0&&(y=h&-h,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:h}function Si(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function R(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Z(){var n=er;return er<<=1,(er&4194048)===0&&(er=256),n}function Me(){var n=qi;return qi<<=1,(qi&62914560)===0&&(qi=4194304),n}function xe(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function He(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function ht(n,i,l,s,h,y){var w=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var M=n.entanglements,H=n.expirationTimes,$=n.hiddenUpdates;for(l=w&~l;0)":-1h||H[s]!==$[h]){var he=` +`+H[s].replace(" at new "," at ");return n.displayName&&he.includes("")&&(he=he.replace("",n.displayName)),he}while(1<=s&&0<=h);break}}}finally{wd=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Vo(l):""}function Ju(n){switch(n.tag){case 26:case 27:case 5:return Vo(n.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 15:return Sa(n.type,!1);case 11:return Sa(n.type.render,!1);case 1:return Sa(n.type,!0);case 31:return Vo("Activity");default:return""}}function Gr(n){try{var i="";do i+=Ju(n),n=n.return;while(n);return i}catch(l){return` +Error generating stack: `+l.message+` +`+l.stack}}function Wa(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function $u(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Md(n){var i=$u(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),s=""+n[i];if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,y=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(w){s=""+w,y.call(this,w)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(w){s=""+w},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Pu(n){n._valueTracker||(n._valueTracker=Md(n))}function Ku(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),s="";return n&&(s=$u(n)?n.checked?"true":"false":n.value),n=s,n!==l?(i.setValue(n),!0):!1}function nr(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var fm=/[\n"\\]/g;function _i(n){return n.replace(fm,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function dm(n,i,l,s,h,y,w,M){n.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.type=w:n.removeAttribute("type"),i!=null?w==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Wa(i)):n.value!==""+Wa(i)&&(n.value=""+Wa(i)):w!=="submit"&&w!=="reset"||n.removeAttribute("value"),i!=null?Nc(n,w,Wa(i)):l!=null?Nc(n,w,Wa(l)):s!=null&&n.removeAttribute("value"),h==null&&y!=null&&(n.defaultChecked=!!y),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.name=""+Wa(M):n.removeAttribute("name")}function hm(n,i,l,s,h,y,w,M){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),i!=null||l!=null){if(!(y!=="submit"&&y!=="reset"||i!=null))return;l=l!=null?""+Wa(l):"",i=i!=null?""+Wa(i):l,M||i===n.value||(n.value=i),n.defaultValue=i}s=s??h,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=M?n.checked:!!s,n.defaultChecked=!!s,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(n.name=w)}function Nc(n,i,l){i==="number"&&nr(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function Qr(n,i,l,s){if(n=n.options,i){i={};for(var h=0;h"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xd=!1;if(Bi)try{var Wu={};Object.defineProperty(Wu,"passive",{get:function(){xd=!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{xd=!1}var Ti=null,kd=null,Xo=null;function Lc(){if(Xo)return Xo;var n,i=kd,l=i.length,s,h="value"in Ti?Ti.value:Ti.textContent,y=h.length;for(n=0;n=Po),bl=" ",Am=!1;function Vd(n,i){switch(n){case"keyup":return e0.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yc(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ei=!1;function Om(n,i){switch(n){case"compositionend":return Yc(i);case"keypress":return i.which!==32?null:(Am=!0,bl);case"textInput":return n=i.data,n===bl&&Am?null:n;default:return null}}function Cm(n,i){if(Ei)return n==="compositionend"||!qd&&Vd(n,i)?(n=Lc(),Xo=kd=Ti=null,Ei=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:l,offset:i-n};n=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Gc(l)}}function tn(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?tn(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Qc(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=nr(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=nr(n.document)}return i}function Xd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var xm=Bi&&"documentMode"in document&&11>=document.documentMode,Ai=null,eu=null,ei=null,is=!1;function ls(n,i,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;is||Ai==null||Ai!==nr(s)||(s=Ai,"selectionStart"in s&&Xd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ei&&lr(ei,s)||(ei=s,s=So(eu,"onSelect"),0>=w,h-=w,Ji=1<<32-Pn(i)+h|l<y?y:8;var w=re.T,M={};re.T=M,yf(n,!1,i,l);try{var H=h(),$=re.S;if($!==null&&$(M,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var he=Bm(H,s);Os(n,i,he,oi(n))}else Os(n,i,s,oi(n))}catch(ge){Os(n,i,{then:function(){},status:"rejected",reason:ge},oi())}finally{F.p=y,re.T=w}}function PS(){}function uy(n,i,l,s){if(n.tag!==5)throw Error(p(476));var h=sy(n).queue;oy(n,h,i,Ae,l===null?PS:function(){return u0(n),l(s)})}function sy(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:Ae,baseState:Ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:Ae},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function u0(n){var i=sy(n).next.queue;Os(n,i,{},oi())}function fu(){return Wn(aa)}function Wi(){return gn().memoizedState}function cy(){return gn().memoizedState}function KS(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=oi();n=hr(l);var s=Ha(i,n,l);s!==null&&($a(s,i,l),lu(s,i,l)),i={cache:qm()},n.payload=i;return}i=i.return}}function s0(n,i,l){var s=oi();l={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Cs(n)?gf(i,l):(l=tu(n,i,l,s),l!==null&&($a(l,n,s),c0(l,i,s)))}function bh(n,i,l){var s=oi();Os(n,i,l,s)}function Os(n,i,l,s){var h={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Cs(n))gf(i,h);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var w=i.lastRenderedState,M=y(w,l);if(h.hasEagerState=!0,h.eagerState=M,_a(M,w))return Xi(n,i,h,0),Gt===null&&Qi(),!1}catch{}finally{}if(l=tu(n,i,h,s),l!==null)return $a(l,n,s),c0(l,i,s),!0}return!1}function yf(n,i,l,s){if(s={lane:2,revertLane:Xh(),action:s,hasEagerState:!1,eagerState:null,next:null},Cs(n)){if(i)throw Error(p(479))}else i=tu(n,l,s,2),i!==null&&$a(i,n,2)}function Cs(n){var i=n.alternate;return n===it||i!==null&&i===it}function gf(n,i){ou=ru=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function c0(n,i,l){if((l&4194048)!==0){var s=i.lanes;s&=n.pendingLanes,l|=s,i.lanes=l,Ot(n,l)}}var vf={readContext:Wn,use:ch,useCallback:mn,useContext:mn,useEffect:mn,useImperativeHandle:mn,useLayoutEffect:mn,useInsertionEffect:mn,useMemo:mn,useReducer:mn,useRef:mn,useState:mn,useDebugValue:mn,useDeferredValue:mn,useTransition:mn,useSyncExternalStore:mn,useId:mn,useHostTransitionStatus:mn,useFormState:mn,useActionState:mn,useOptimistic:mn,useMemoCache:mn,useCacheRefresh:mn},f0={readContext:Wn,use:ch,useCallback:function(n,i){return Ea().memoizedState=[n,i===void 0?null:i],n},useContext:Wn,useEffect:nn,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,su(4194308,4,Fi.bind(null,i,n),l)},useLayoutEffect:function(n,i){return su(4194308,4,n,i)},useInsertionEffect:function(n,i){su(4,2,n,i)},useMemo:function(n,i){var l=Ea();i=i===void 0?null:i;var s=n();if(qa){bi(!0);try{n()}finally{bi(!1)}}return l.memoizedState=[s,i],s},useReducer:function(n,i,l){var s=Ea();if(l!==void 0){var h=l(i);if(qa){bi(!0);try{l(i)}finally{bi(!1)}}}else h=i;return s.memoizedState=s.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},s.queue=n,n=n.dispatch=s0.bind(null,it,n),[s.memoizedState,n]},useRef:function(n){var i=Ea();return n={current:n},i.memoizedState=n},useState:function(n){n=df(n);var i=n.queue,l=bh.bind(null,it,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:mf,useDeferredValue:function(n,i){var l=Ea();return gh(l,n,i)},useTransition:function(){var n=df(!1);return n=oy.bind(null,it,n.queue,!0,!1),Ea().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var s=it,h=Ea();if(ct){if(l===void 0)throw Error(p(407));l=l()}else{if(l=i(),Gt===null)throw Error(p(349));(wt&124)!==0||ff(s,i,l)}h.memoizedState=l;var y={value:l,getSnapshot:i};return h.queue=y,nn(Pm.bind(null,s,y,n),[n]),s.flags|=2048,io(9,Mi(),hh.bind(null,s,y,l,i),null),l},useId:function(){var n=Ea(),i=Gt.identifierPrefix;if(ct){var l=$i,s=Ji;l=(s&~(1<<32-Pn(s)-1)).toString(32)+l,i="«"+i+"R"+l,l=of++,0$e?(Xn=Ye,Ye=null):Xn=Ye.sibling;var kt=W(J,Ye,I[$e],ye);if(kt===null){Ye===null&&(Ye=Xn);break}n&&Ye&&kt.alternate===null&&i(J,Ye),X=y(kt,X,$e),ft===null?Le=kt:ft.sibling=kt,ft=kt,Ye=Xn}if($e===I.length)return l(J,Ye),ct&&Cn(J,$e),Le;if(Ye===null){for(;$e$e?(Xn=Ye,Ye=null):Xn=Ye.sibling;var Nl=W(J,Ye,kt.value,ye);if(Nl===null){Ye===null&&(Ye=Xn);break}n&&Ye&&Nl.alternate===null&&i(J,Ye),X=y(Nl,X,$e),ft===null?Le=Nl:ft.sibling=Nl,ft=Nl,Ye=Xn}if(kt.done)return l(J,Ye),ct&&Cn(J,$e),Le;if(Ye===null){for(;!kt.done;$e++,kt=I.next())kt=ge(J,kt.value,ye),kt!==null&&(X=y(kt,X,$e),ft===null?Le=kt:ft.sibling=kt,ft=kt);return ct&&Cn(J,$e),Le}for(Ye=s(Ye);!kt.done;$e++,kt=I.next())kt=le(Ye,J,$e,kt.value,ye),kt!==null&&(n&&kt.alternate!==null&&Ye.delete(kt.key===null?$e:kt.key),X=y(kt,X,$e),ft===null?Le=kt:ft.sibling=kt,ft=kt);return n&&Ye.forEach(function(r_){return i(J,r_)}),ct&&Cn(J,$e),Le}function Lt(J,X,I,ye){if(typeof I=="object"&&I!==null&&I.type===G&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case L:e:{for(var Le=I.key;X!==null;){if(X.key===Le){if(Le=I.type,Le===G){if(X.tag===7){l(J,X.sibling),ye=h(X,I.props.children),ye.return=J,J=ye;break e}}else if(X.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===Se&&Ya(Le)===X.type){l(J,X.sibling),ye=h(X,I.props),Sf(ye,I),ye.return=J,J=ye;break e}l(J,X);break}else i(J,X);X=X.sibling}I.type===G?(ye=Oe(I.props.children,J.mode,ye,I.key),ye.return=J,J=ye):(ye=st(I.type,I.key,I.props,null,J.mode,ye),Sf(ye,I),ye.return=J,J=ye)}return w(J);case x:e:{for(Le=I.key;X!==null;){if(X.key===Le)if(X.tag===4&&X.stateNode.containerInfo===I.containerInfo&&X.stateNode.implementation===I.implementation){l(J,X.sibling),ye=h(X,I.children||[]),ye.return=J,J=ye;break e}else{l(J,X);break}else i(J,X);X=X.sibling}ye=os(I,J.mode,ye),ye.return=J,J=ye}return w(J);case Se:return Le=I._init,I=Le(I._payload),Lt(J,X,I,ye)}if(Fe(I))return Je(J,X,I,ye);if(Ne(I)){if(Le=Ne(I),typeof Le!="function")throw Error(p(150));return I=Le.call(I),Ge(J,X,I,ye)}if(typeof I.then=="function")return Lt(J,X,bf(I),ye);if(I.$$typeof===De)return Lt(J,X,ds(J,I),ye);Ms(J,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,X!==null&&X.tag===6?(l(J,X.sibling),ye=h(X,I),ye.return=J,J=ye):(l(J,X),ye=Fr(I,J.mode,ye),ye.return=J,J=ye),w(J)):l(J,X)}return function(J,X,I,ye){try{ws=0;var Le=Lt(J,X,I,ye);return Va=null,Le}catch(Ye){if(Ye===iu||Ye===gs)throw Ye;var ft=Ua(29,Ye,null,J.mode);return ft.lanes=ye,ft.return=J,ft}finally{}}}var Bn=dy(!0),hy=dy(!1),Mn=V(null),el=null;function Ga(n){var i=n.alternate;ee(En,En.current&1),ee(Mn,n),el===null&&(i===null||pr.current!==null||i.memoizedState!==null)&&(el=n)}function py(n){if(n.tag===22){if(ee(En,En.current),ee(Mn,n),el===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(el=n)}}else da()}function da(){ee(En,En.current),ee(Mn,Mn.current)}function tl(n){pe(Mn),el===n&&(el=null),pe(En)}var En=V(0);function ai(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||eg(l)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Sh(n,i,l,s){i=n.memoizedState,l=l(s,i),l=l==null?i:k({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var lo={enqueueSetState:function(n,i,l){n=n._reactInternals;var s=oi(),h=hr(s);h.payload=i,l!=null&&(h.callback=l),i=Ha(n,h,s),i!==null&&($a(i,n,s),lu(i,n,s))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var s=oi(),h=hr(s);h.tag=1,h.payload=i,l!=null&&(h.callback=l),i=Ha(n,h,s),i!==null&&($a(i,n,s),lu(i,n,s))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=oi(),s=hr(l);s.tag=2,i!=null&&(s.callback=i),i=Ha(n,s,l),i!==null&&($a(i,n,l),lu(i,n,l))}};function my(n,i,l,s,h,y,w){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,y,w):i.prototype&&i.prototype.isPureReactComponent?!lr(l,s)||!lr(h,y):!0}function Rs(n,i,l,s){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,s),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,s),i.state!==n&&lo.enqueueReplaceState(i,i.state,null)}function Ri(n,i){var l=i;if("ref"in i){l={};for(var s in i)s!=="ref"&&(l[s]=i[s])}if(n=n.defaultProps){l===i&&(l=k({},l));for(var h in n)l[h]===void 0&&(l[h]=n[h])}return l}var _f=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function yy(n){_f(n)}function Ds(n){console.error(n)}function gy(n){_f(n)}function du(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(s){setTimeout(function(){throw s})}}function vy(n,i,l){try{var s=n.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function _h(n,i,l){return l=hr(l),l.tag=3,l.payload={element:null},l.callback=function(){du(n,i)},l}function h0(n){return n=hr(n),n.tag=3,n}function by(n,i,l,s){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var y=s.value;n.payload=function(){return h(y)},n.callback=function(){vy(i,l,s)}}var w=l.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(n.callback=function(){vy(i,l,s),typeof h!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var M=s.stack;this.componentDidCatch(s.value,{componentStack:M!==null?M:""})})}function ii(n,i,l,s,h){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(i=l.alternate,i!==null&&Ic(i,l,h,!0),l=Mn.current,l!==null){switch(l.tag){case 13:return el===null?go():l.alternate===null&&bn===0&&(bn=3),l.flags&=-257,l.flags|=65536,l.lanes=h,s===nh?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([s]):i.add(s),Rf(n,s,h)),!1;case 22:return l.flags|=65536,s===nh?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([s]):l.add(s)),Rf(n,s,h)),!1}throw Error(p(435,l.tag))}return Rf(n,s,h),go(),!1}if(ct)return i=Mn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,s!==Pc&&(n=Error(p(422),{cause:s}),fs(ti(n,l)))):(s!==Pc&&(i=Error(p(423),{cause:s}),fs(ti(i,l))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,s=ti(s,l),h=_h(n.stateNode,s,h),af(n,h),bn!==4&&(bn=2)),!1;var y=Error(p(520),{cause:s});if(y=ti(y,l),Cf===null?Cf=[y]:Cf.push(y),bn!==4&&(bn=2),i===null)return!0;s=ti(s,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=h&-h,l.lanes|=n,n=_h(l.stateNode,s,n),af(l,n),!1;case 1:if(i=l.type,y=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ol===null||!Ol.has(y))))return l.flags|=65536,h&=-h,l.lanes|=h,h=h0(h),by(h,n,l,s),af(l,h),!1}l=l.return}while(l!==null);return!1}var Sy=Error(p(461)),vt=!1;function Vn(n,i,l,s){i.child=n===null?hy(i,null,l,s):Bn(i,n.child,l,s)}function _y(n,i,l,s,h){l=l.render;var y=i.ref;if("ref"in s){var w={};for(var M in s)M!=="ref"&&(w[M]=s[M])}else w=s;return eo(i),s=oh(n,i,l,w,y,h),M=uh(),n!==null&&!vt?(sh(n,i,h),nl(n,i,h)):(ct&&M&&$c(i),i.flags|=1,Vn(n,i,s,h),i.child)}function p0(n,i,l,s,h){if(n===null){var y=l.type;return typeof y=="function"&&!Pd(y)&&y.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=y,yr(n,i,y,s,h)):(n=st(l.type,null,s,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(y=n.child,!wh(n,h)){var w=y.memoizedProps;if(l=l.compare,l=l!==null?l:lr,l(w,s)&&n.ref===i.ref)return nl(n,i,h)}return i.flags|=1,n=Zi(y,s),n.ref=i.ref,n.return=i,i.child=n}function yr(n,i,l,s,h){if(n!==null){var y=n.memoizedProps;if(lr(y,s)&&n.ref===i.ref)if(vt=!1,i.pendingProps=s=y,wh(n,h))(n.flags&131072)!==0&&(vt=!0);else return i.lanes=n.lanes,nl(n,i,h)}return Eh(n,i,l,s,h)}function hu(n,i,l){var s=i.pendingProps,h=s.children,y=n!==null?n.memoizedState:null;if(s.mode==="hidden"){if((i.flags&128)!==0){if(s=y!==null?y.baseLanes|l:l,n!==null){for(h=i.child=n.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;i.childLanes=y&~s}else i.childLanes=0,i.child=null;return Th(n,i,s,l)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&ys(i,y!==null?y.cachePool:null),y!==null?Zm(i,y):Nn(),py(i);else return i.lanes=i.childLanes=536870912,Th(n,i,y!==null?y.baseLanes|l:l,l)}else y!==null?(ys(i,y.cachePool),Zm(i,y),da(),i.memoizedState=null):(n!==null&&ys(i,null),Nn(),da());return Vn(n,i,h,l),i.child}function Th(n,i,l,s){var h=ms();return h=h===null?null:{parent:wn._currentValue,pool:h},i.memoizedState={baseLanes:l,cachePool:h},n!==null&&ys(i,null),Nn(),py(i),n!==null&&Ic(n,i,s,!0),null}function gr(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(p(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function Eh(n,i,l,s,h){return eo(i),l=oh(n,i,l,s,void 0,h),s=uh(),n!==null&&!vt?(sh(n,i,h),nl(n,i,h)):(ct&&s&&$c(i),i.flags|=1,Vn(n,i,l,h),i.child)}function Ty(n,i,l,s,h,y){return eo(i),i.updateQueue=null,l=ao(i,s,l,h),Jm(n),s=uh(),n!==null&&!vt?(sh(n,i,y),nl(n,i,y)):(ct&&s&&$c(i),i.flags|=1,Vn(n,i,l,y),i.child)}function Ey(n,i,l,s,h){if(eo(i),i.stateNode===null){var y=nu,w=l.contextType;typeof w=="object"&&w!==null&&(y=Wn(w)),y=new l(s,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=lo,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=s,y.state=i.memoizedState,y.refs={},nf(i),w=l.contextType,y.context=typeof w=="object"&&w!==null?Wn(w):nu,y.state=i.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(Sh(i,l,w,s),y.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(w=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),w!==y.state&&lo.enqueueReplaceState(y,y.state,null),Ss(i,s,y,h),lf(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),s=!0}else if(n===null){y=i.stateNode;var M=i.memoizedProps,H=Ri(l,M);y.props=H;var $=y.context,he=l.contextType;w=nu,typeof he=="object"&&he!==null&&(w=Wn(he));var ge=l.getDerivedStateFromProps;he=typeof ge=="function"||typeof y.getSnapshotBeforeUpdate=="function",M=i.pendingProps!==M,he||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(M||$!==w)&&Rs(i,y,s,w),dr=!1;var W=i.memoizedState;y.state=W,Ss(i,s,y,h),lf(),$=i.memoizedState,M||W!==$||dr?(typeof ge=="function"&&(Sh(i,l,ge,s),$=i.memoizedState),(H=dr||my(i,l,H,s,W,$,w))?(he||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=s,i.memoizedState=$),y.props=s,y.state=$,y.context=w,s=H):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),s=!1)}else{y=i.stateNode,ih(n,i),w=i.memoizedProps,he=Ri(l,w),y.props=he,ge=i.pendingProps,W=y.context,$=l.contextType,H=nu,typeof $=="object"&&$!==null&&(H=Wn($)),M=l.getDerivedStateFromProps,($=typeof M=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==ge||W!==H)&&Rs(i,y,s,H),dr=!1,W=i.memoizedState,y.state=W,Ss(i,s,y,h),lf();var le=i.memoizedState;w!==ge||W!==le||dr||n!==null&&n.dependencies!==null&&Fc(n.dependencies)?(typeof M=="function"&&(Sh(i,l,M,s),le=i.memoizedState),(he=dr||my(i,l,he,s,W,le,H)||n!==null&&n.dependencies!==null&&Fc(n.dependencies))?($||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(s,le,H),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(s,le,H)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(i.flags|=1024),i.memoizedProps=s,i.memoizedState=le),y.props=s,y.state=le,y.context=H,s=he):(typeof y.componentDidUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&W===n.memoizedState||(i.flags|=1024),s=!1)}return y=s,gr(n,i),s=(i.flags&128)!==0,y||s?(y=i.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,n!==null&&s?(i.child=Bn(i,n.child,null,h),i.child=Bn(i,null,l,h)):Vn(n,i,l,h),i.memoizedState=y.state,n=i.child):n=nl(n,i,h),n}function Ah(n,i,l,s){return cs(),i.flags|=256,Vn(n,i,l,s),i.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oh(n){return{baseLanes:n,cachePool:ef()}}function Ay(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=Un),n}function m0(n,i,l){var s=i.pendingProps,h=!1,y=(i.flags&128)!==0,w;if((w=y)||(w=n!==null&&n.memoizedState===null?!1:(En.current&2)!==0),w&&(h=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,n===null){if(ct){if(h?Ga(i):da(),ct){var M=Vt,H;if(H=M){e:{for(H=M,M=Ta;H.nodeType!==8;){if(!M){M=null;break e}if(H=ul(H.nextSibling),H===null){M=null;break e}}M=H}M!==null?(i.memoizedState={dehydrated:M,treeContext:ur!==null?{id:Ji,overflow:$i}:null,retryLane:536870912,hydrationErrors:null},H=Ua(18,null,null,0),H.stateNode=M,H.return=i,i.child=H,yn=i,Vt=null,H=!0):H=!1}H||Pi(i)}if(M=i.memoizedState,M!==null&&(M=M.dehydrated,M!==null))return eg(M)?i.lanes=32:i.lanes=536870912,null;tl(i)}return M=s.children,s=s.fallback,h?(da(),h=i.mode,M=Ef({mode:"hidden",children:M},h),s=Oe(s,h,l,null),M.return=i,s.return=i,M.sibling=s,i.child=M,h=i.child,h.memoizedState=Oh(l),h.childLanes=Ay(n,w,l),i.memoizedState=Tf,s):(Ga(i),Ch(i,M))}if(H=n.memoizedState,H!==null&&(M=H.dehydrated,M!==null)){if(y)i.flags&256?(Ga(i),i.flags&=-257,i=Oy(n,i,l)):i.memoizedState!==null?(da(),i.child=n.child,i.flags|=128,i=null):(da(),h=s.fallback,M=i.mode,s=Ef({mode:"visible",children:s.children},M),h=Oe(h,M,l,null),h.flags|=2,s.return=i,h.return=i,s.sibling=h,i.child=s,Bn(i,n.child,null,l),s=i.child,s.memoizedState=Oh(l),s.childLanes=Ay(n,w,l),i.memoizedState=Tf,i=h);else if(Ga(i),eg(M)){if(w=M.nextSibling&&M.nextSibling.dataset,w)var $=w.dgst;w=$,s=Error(p(419)),s.stack="",s.digest=w,fs({value:s,source:null,stack:null}),i=Oy(n,i,l)}else if(vt||Ic(n,i,l,!1),w=(l&n.childLanes)!==0,vt||w){if(w=Gt,w!==null&&(s=l&-l,s=(s&42)!==0?1:et(s),s=(s&(w.suspendedLanes|l))!==0?0:s,s!==0&&s!==H.retryLane))throw H.retryLane=s,or(n,s),$a(w,n,s),Sy;M.data==="$?"||go(),i=Oy(n,i,l)}else M.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=H.treeContext,Vt=ul(M.nextSibling),yn=i,ct=!0,sr=null,Ta=!1,n!==null&&(La[Oi++]=Ji,La[Oi++]=$i,La[Oi++]=ur,Ji=n.id,$i=n.overflow,ur=i),i=Ch(i,s.children),i.flags|=4096);return i}return h?(da(),h=s.fallback,M=i.mode,H=n.child,$=H.sibling,s=Zi(H,{mode:"hidden",children:s.children}),s.subtreeFlags=H.subtreeFlags&65011712,$!==null?h=Zi($,h):(h=Oe(h,M,l,null),h.flags|=2),h.return=i,s.return=i,s.sibling=h,i.child=s,s=h,h=i.child,M=n.child.memoizedState,M===null?M=Oh(l):(H=M.cachePool,H!==null?($=wn._currentValue,H=H.parent!==$?{parent:$,pool:$}:H):H=ef(),M={baseLanes:M.baseLanes|l,cachePool:H}),h.memoizedState=M,h.childLanes=Ay(n,w,l),i.memoizedState=Tf,s):(Ga(i),l=n.child,n=l.sibling,l=Zi(l,{mode:"visible",children:s.children}),l.return=i,l.sibling=null,n!==null&&(w=i.deletions,w===null?(i.deletions=[n],i.flags|=16):w.push(n)),i.child=l,i.memoizedState=null,l)}function Ch(n,i){return i=Ef({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Ef(n,i){return n=Ua(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Oy(n,i,l){return Bn(i,n.child,null,l),n=Ch(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function pu(n,i,l){n.lanes|=i;var s=n.alternate;s!==null&&(s.lanes|=i),Wd(n.return,i,l)}function xs(n,i,l,s,h){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:h}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=s,y.tail=l,y.tailMode=h)}function Cy(n,i,l){var s=i.pendingProps,h=s.revealOrder,y=s.tail;if(Vn(n,i,s.children,l),s=En.current,(s&2)!==0)s=s&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&pu(n,l,i);else if(n.tag===19)pu(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}s&=1}switch(ee(En,s),h){case"forwards":for(l=i.child,h=null;l!==null;)n=l.alternate,n!==null&&ai(n)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),xs(i,!1,h,l,y);break;case"backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&ai(n)===null){i.child=h;break}n=h.sibling,h.sibling=l,l=h,h=n}xs(i,!0,l,null,y);break;case"together":xs(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function nl(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),ho|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(Ic(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(p(153));if(i.child!==null){for(n=i.child,l=Zi(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=Zi(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function wh(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Fc(n)))}function y0(n,i,l){switch(i.tag){case 3:z(i,i.stateNode.containerInfo),Sl(i,wn,n.memoizedState.cache),cs();break;case 27:case 5:me(i);break;case 4:z(i,i.stateNode.containerInfo);break;case 10:Sl(i,i.type,i.memoizedProps.value);break;case 13:var s=i.memoizedState;if(s!==null)return s.dehydrated!==null?(Ga(i),i.flags|=128,null):(l&i.child.childLanes)!==0?m0(n,i,l):(Ga(i),n=nl(n,i,l),n!==null?n.sibling:null);Ga(i);break;case 19:var h=(n.flags&128)!==0;if(s=(l&i.childLanes)!==0,s||(Ic(n,i,l,!1),s=(l&i.childLanes)!==0),h){if(s)return Cy(n,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ee(En,En.current),s)break;return null;case 22:case 23:return i.lanes=0,hu(n,i,l);case 24:Sl(i,wn,n.memoizedState.cache)}return nl(n,i,l)}function wy(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)vt=!0;else{if(!wh(n,l)&&(i.flags&128)===0)return vt=!1,y0(n,i,l);vt=(n.flags&131072)!==0}else vt=!1,ct&&(i.flags&1048576)!==0&&jt(i,Jc,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var s=i.elementType,h=s._init;if(s=h(s._payload),i.type=s,typeof s=="function")Pd(s)?(n=Ri(s,n),i.tag=1,i=Ey(null,i,s,n,l)):(i.tag=0,i=Eh(null,i,s,n,l));else{if(s!=null){if(h=s.$$typeof,h===oe){i.tag=11,i=_y(null,i,s,n,l);break e}else if(h===ce){i.tag=14,i=p0(null,i,s,n,l);break e}}throw i=lt(s)||s,Error(p(306,i,""))}}return i;case 0:return Eh(n,i,i.type,i.pendingProps,l);case 1:return s=i.type,h=Ri(s,i.pendingProps),Ey(n,i,s,h,l);case 3:e:{if(z(i,i.stateNode.containerInfo),n===null)throw Error(p(387));s=i.pendingProps;var y=i.memoizedState;h=y.element,ih(n,i),Ss(i,s,null,l);var w=i.memoizedState;if(s=w.cache,Sl(i,wn,s),s!==y.cache&&eh(i,[wn],l,!0),lf(),s=w.element,y.isDehydrated)if(y={element:s,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=Ah(n,i,s,l);break e}else if(s!==h){h=ti(Error(p(424)),i),fs(h),i=Ah(n,i,s,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Vt=ul(n.firstChild),yn=i,ct=!0,sr=null,Ta=!0,l=hy(i,null,s,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(cs(),s===h){i=nl(n,i,l);break e}Vn(n,i,s,l)}i=i.child}return i;case 26:return gr(n,i),n===null?(l=tp(i.type,null,i.pendingProps,null))?i.memoizedState=l:ct||(l=i.type,n=i.pendingProps,s=Zs(T.current).createElement(l),s[Pt]=i,s[sa]=n,ne(s,l,n),Tn(s),i.stateNode=s):i.memoizedState=tp(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return me(i),n===null&&ct&&(s=i.stateNode=na(i.type,i.pendingProps,T.current),yn=i,Ta=!0,h=Vt,ta(i.type)?(ng=h,Vt=ul(s.firstChild)):Vt=h),Vn(n,i,i.pendingProps.children,l),gr(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&ct&&((h=s=Vt)&&(s=Wy(s,i.type,i.pendingProps,Ta),s!==null?(i.stateNode=s,yn=i,Vt=ul(s.firstChild),Ta=!1,h=!0):h=!1),h||Pi(i)),me(i),h=i.type,y=i.pendingProps,w=n!==null?n.memoizedProps:null,s=y.children,_u(h,y)?s=null:w!==null&&_u(h,w)&&(i.flags|=32),i.memoizedState!==null&&(h=oh(n,i,i0,null,null,l),aa._currentValue=h),gr(n,i),Vn(n,i,s,l),i.child;case 6:return n===null&&ct&&((n=l=Vt)&&(l=Js(l,i.pendingProps,Ta),l!==null?(i.stateNode=l,yn=i,Vt=null,n=!0):n=!1),n||Pi(i)),null;case 13:return m0(n,i,l);case 4:return z(i,i.stateNode.containerInfo),s=i.pendingProps,n===null?i.child=Bn(i,null,s,l):Vn(n,i,s,l),i.child;case 11:return _y(n,i,i.type,i.pendingProps,l);case 7:return Vn(n,i,i.pendingProps,l),i.child;case 8:return Vn(n,i,i.pendingProps.children,l),i.child;case 12:return Vn(n,i,i.pendingProps.children,l),i.child;case 10:return s=i.pendingProps,Sl(i,i.type,s.value),Vn(n,i,s.children,l),i.child;case 9:return h=i.type._context,s=i.pendingProps.children,eo(i),h=Wn(h),s=s(h),i.flags|=1,Vn(n,i,s,l),i.child;case 14:return p0(n,i,i.type,i.pendingProps,l);case 15:return yr(n,i,i.type,i.pendingProps,l);case 19:return Cy(n,i,l);case 31:return s=i.pendingProps,l=i.mode,s={mode:s.mode,children:s.children},n===null?(l=Ef(s,l),l.ref=i.ref,i.child=l,l.return=i,i=l):(l=Zi(n.child,s),l.ref=i.ref,i.child=l,l.return=i,i=l),i;case 22:return hu(n,i,l);case 24:return eo(i),s=Wn(wn),n===null?(h=ms(),h===null&&(h=Gt,y=qm(),h.pooledCache=y,y.refCount++,y!==null&&(h.pooledCacheLanes|=l),h=y),i.memoizedState={parent:s,cache:h},nf(i),Sl(i,wn,h)):((n.lanes&l)!==0&&(ih(n,i),Ss(i,null,null,l),lf()),h=n.memoizedState,y=i.memoizedState,h.parent!==s?(h={parent:s,cache:s},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),Sl(i,wn,s)):(s=y.cache,Sl(i,wn,s),s!==h.cache&&eh(i,[wn],l,!0))),Vn(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(p(156,i.tag))}function vr(n){n.flags|=4}function My(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!rg(i)){if(i=Mn.current,i!==null&&((wt&4194048)===wt?el!==null:(wt&62914560)!==wt&&(wt&536870912)===0||i!==el))throw bs=nh,tf;n.flags|=8192}}function ro(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Me():536870912,n.lanes|=i,js|=i)}function ks(n,i){if(!ct)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function cn(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,s=0;if(i)for(var h=n.child;h!==null;)l|=h.lanes|h.childLanes,s|=h.subtreeFlags&65011712,s|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)l|=h.lanes|h.childLanes,s|=h.subtreeFlags,s|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=s,n.childLanes=l,i}function Yt(n,i,l){var s=i.pendingProps;switch(au(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cn(i),null;case 1:return cn(i),null;case 3:return l=i.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),_l(wn),K(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(ss(i)?vr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,jm())),cn(i),null;case 26:return l=i.memoizedState,n===null?(vr(i),l!==null?(cn(i),My(i,l)):(cn(i),i.flags&=-16777217)):l?l!==n.memoizedState?(vr(i),cn(i),My(i,l)):(cn(i),i.flags&=-16777217):(n.memoizedProps!==s&&vr(i),cn(i),i.flags&=-16777217),null;case 27:we(i),l=T.current;var h=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==s&&vr(i);else{if(!s){if(i.stateNode===null)throw Error(p(166));return cn(i),null}n=v.current,ss(i)?Id(i):(n=na(h,s,l),i.stateNode=n,vr(i))}return cn(i),null;case 5:if(we(i),l=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==s&&vr(i);else{if(!s){if(i.stateNode===null)throw Error(p(166));return cn(i),null}if(n=v.current,ss(i))Id(i);else{switch(h=Zs(T.current),n){case 1:n=h.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:n=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":n=h.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":n=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":n=h.createElement("div"),n.innerHTML="