scribe-widget 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* @return {boolean} True if the event is supported.
|
|
66
66
|
* @internal
|
|
67
67
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
68
|
-
*/function ps(e,t,n,r){Cn(r);var o=wl(t,"onChange");if(o.length>0){var a=new Oi("onChange","change",null,n,r);e.push({event:a,listeners:o})}}var hs=null,ms=null;function gs(e){fl(e,0)}function bs(e){if(et(Xu(e)))return e}function ys(e,t){if("change"===e)return t}var _s=!1;function vs(){hs&&(hs.detachEvent("onpropertychange",ws),hs=null,ms=null)}function ws(e){"value"===e.propertyName&&bs(ms)&&function(e){var t=[];ps(t,ms,e,On(e)),Fn(gs,t)}(e)}function Ss(e,t,n){"focusin"===e?(vs(),function(e,t){ms=t,(hs=e).attachEvent("onpropertychange",ws)}(t,n)):"focusout"===e&&vs()}function xs(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return bs(ms)}function Ts(e,t){if("click"===e)return bs(t)}function Es(e,t){if("input"===e||"change"===e)return bs(t)}function ks(e,t,n,r,o,a,i){var s,l,u,c,d,f,p=n?Xu(n):window;if("select"===(c=(u=p).nodeName&&u.nodeName.toLowerCase())||"input"===c&&"file"===u.type?s=ys:fs(p)?_s?s=Es:(s=xs,l=Ss):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(p)&&(s=Ts),s){var h=s(t,n);if(h)return void ps(e,h,r,o)}l&&l(t,p,n),"focusout"===t&&(f=(d=p)._wrapperState)&&f.controlled&&"number"===d.type&&pt(d,"number",d.value)}function Ps(e,t,n,r,o,a,i){var s="mouseover"===t||"pointerover"===t,l="mouseout"===t||"pointerout"===t;if(s&&r!==En){var u=r.relatedTarget||r.fromElement;if(u&&(Yu(u)||Wu(u)))return}if(l||s){var c,d,f;if(o.window===o)c=o;else{var p=o.ownerDocument;c=p?p.defaultView||p.parentWindow:window}if(l){var h=r.relatedTarget||r.toElement;if(d=n,null!==(f=h?Yu(h):null))(f!==Tr(f)||5!==f.tag&&6!==f.tag)&&(f=null)}else d=null,f=n;if(d!==f){var m=Ii,g="onMouseLeave",b="onMouseEnter",y="mouse";"pointerout"!==t&&"pointerover"!==t||(m=qi,g="onPointerLeave",b="onPointerEnter",y="pointer");var _=null==d?c:Xu(d),v=null==f?c:Xu(f),w=new m(g,y+"leave",d,r,o);w.target=_,w.relatedTarget=v;var S=null;if(Yu(o)===n){var x=new m(b,y+"enter",f,r,o);x.target=v,x.relatedTarget=_,S=x}!function(e,t,n,r,o){var a=r&&o?function(e,t){for(var n=e,r=t,o=0,a=n;a;a=Sl(a))o++;for(var i=0,s=r;s;s=Sl(s))i++;for(;o-i>0;)n=Sl(n),o--;for(;i-o>0;)r=Sl(r),i--;var l=o;for(;l--;){if(n===r||null!==r&&n===r.alternate)return n;n=Sl(n),r=Sl(r)}return null}(r,o):null;null!==r&&xl(e,t,r,a,!1);null!==o&&null!==n&&xl(e,n,o,a,!0)}(e,w,S,d,f)}}}k&&(_s=function(e){if(!k)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var Os="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function As(e,t){if(Os(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var a=n[o];if(!P.call(t,a)||!Os(e[a],t[a]))return!1}return!0}function $s(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rs(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Is(e,t){for(var n=$s(e),r=0,o=0;n;){if(3===n.nodeType){if(o=r+n.textContent.length,r<=t&&o>=t)return{node:n,offset:t-r};r=o}n=$s(Rs(n))}}function Cs(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var o=r.anchorNode,a=r.anchorOffset,i=r.focusNode,s=r.focusOffset;try{o.nodeType,i.nodeType}catch(rw){return null}return function(e,t,n,r,o){var a=0,i=-1,s=-1,l=0,u=0,c=e,d=null;e:for(;;){for(var f=null;c!==t||0!==n&&3!==c.nodeType||(i=a+n),c!==r||0!==o&&3!==c.nodeType||(s=a+o),3===c.nodeType&&(a+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break e;if(d===t&&++l===n&&(i=a),d===r&&++u===o&&(s=a),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}if(-1===i||-1===s)return null;return{start:i,end:s}}(e,o,a,i,s)}function Ds(e){return e&&3===e.nodeType}function Ns(e,t){return!(!e||!t)&&(e===t||!Ds(e)&&(Ds(t)?Ns(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ms(e){return e&&e.ownerDocument&&Ns(e.ownerDocument.documentElement,e)}function Ls(e){try{return"string"==typeof e.contentWindow.location.href}catch(t){return!1}}function js(){for(var e=window,t=tt();t instanceof e.HTMLIFrameElement;){if(!Ls(t))return t;t=tt((e=t.contentWindow).document)}return t}function Fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Bs(e){var t=js(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&Ms(n)){null!==r&&Fs(n)&&function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n);"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var o=r.getSelection(),a=e.textContent.length,i=Math.min(t.start,a),s=void 0===t.end?i:Math.min(t.end,a);if(!o.extend&&i>s){var l=s;s=i,i=l}var u=Is(e,i),c=Is(e,s);if(u&&c){if(1===o.rangeCount&&o.anchorNode===u.node&&o.anchorOffset===u.offset&&o.focusNode===c.node&&o.focusOffset===c.offset)return;var d=n.createRange();d.setStart(u.node,u.offset),o.removeAllRanges(),i>s?(o.addRange(d),o.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),o.addRange(d))}}}(e,t)}(n,r);for(var o=[],a=n;a=a.parentNode;)1===a.nodeType&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"==typeof n.focus&&n.focus();for(var i=0;i<o.length;i++){var s=o[i];s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}}function Us(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:Cs(e))||{start:0,end:0}}var zs=k&&"documentMode"in document&&document.documentMode<=11;var Vs=null,Hs=null,qs=null,Gs=!1;function Ws(e,t,n){var r,o=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Gs&&null!=Vs&&Vs===tt(o)){var a=function(e){if("selectionStart"in e&&Fs(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(Vs);if(!qs||!As(qs,a)){qs=a;var i=wl(Hs,"onSelect");if(i.length>0){var s=new Oi("onSelect","select",null,t,n);e.push({event:s,listeners:i}),s.target=Vs}}}}function Ys(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ks={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},Xs={},Qs={};function Zs(e){if(Xs[e])return Xs[e];if(!Ks[e])return e;var t=Ks[e];for(var n in t)if(t.hasOwnProperty(n)&&n in Qs)return Xs[e]=t[n];return e}k&&(Qs=document.createElement("div").style,"AnimationEvent"in window||(delete Ks.animationend.animation,delete Ks.animationiteration.animation,delete Ks.animationstart.animation),"TransitionEvent"in window||delete Ks.transitionend.transition);var Js=Zs("animationend"),el=Zs("animationiteration"),tl=Zs("animationstart"),nl=Zs("transitionend"),rl=new Map,ol=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function al(e,t){rl.set(e,t),T(t,[e])}function il(e,t,n,r,o,a,i){var s=rl.get(t);if(void 0!==s){var l=Oi,u=t;switch(t){case"keypress":if(0===vi(r))return;case"keydown":case"keyup":l=Hi;break;case"focusin":u="focus",l=Di;break;case"focusout":u="blur",l=Di;break;case"beforeblur":case"afterblur":l=Di;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Ii;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Ci;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Gi;break;case Js:case el:case tl:l=Ni;break;case nl:l=Wi;break;case"scroll":l=$i;break;case"wheel":l=Yi;break;case"copy":case"cut":case"paste":l=Mi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=qi}var c=!!(4&a),d=!c&&"scroll"===t,f=function(e,t,n,r,o){var a=null!==t?t+"Capture":null,i=r?a:t,s=[],l=e,u=null;for(;null!==l;){var c=l,d=c.stateNode;if(5===c.tag&&null!==d&&(u=d,null!==i)){var f=Bn(l,i);null!=f&&s.push(vl(l,f,u))}if(o)break;l=l.return}return s}(n,s,r.type,c,d);if(f.length>0){var p=new l(s,u,null,r,o);e.push({event:p,listeners:f})}}}function sl(e,t,n,r,o,a,i){il(e,t,n,r,o,a),!(7&a)&&(Ps(e,t,n,r,o),ks(e,t,n,r,o),function(e,t,n,r,o){var a=n?Xu(n):window;switch(t){case"focusin":(fs(a)||"true"===a.contentEditable)&&(Vs=a,Hs=n,qs=null);break;case"focusout":Vs=null,Hs=null,qs=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,Ws(e,r,o);break;case"selectionchange":if(zs)break;case"keydown":case"keyup":Ws(e,r,o)}}(e,t,n,r,o),function(e,t,n,r,o){ls(e,t,n,r,o),cs(e,t,n,r,o)}(e,t,n,r,o))}!function(){for(var e=0;e<ol.length;e++){var t=ol[e];al(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}al(Js,"onAnimationEnd"),al(el,"onAnimationIteration"),al(tl,"onAnimationStart"),al("dblclick","onDoubleClick"),al("focusin","onFocus"),al("focusout","onBlur"),al(nl,"onTransitionEnd")}(),E("onMouseEnter",["mouseout","mouseover"]),E("onMouseLeave",["mouseout","mouseover"]),E("onPointerEnter",["pointerout","pointerover"]),E("onPointerLeave",["pointerout","pointerover"]),T("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),T("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),T("onBeforeInput",["compositionend","keypress","textInput","paste"]),T("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),T("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),T("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var ll=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],ul=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ll));function cl(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,s,l){if(Zn.apply(this,arguments),Wn){var u=Jn();Kn||(Kn=!0,Xn=u)}}(r,t,void 0,e),e.currentTarget=null}function dl(e,t,n){var r;if(n)for(var o=t.length-1;o>=0;o--){var a=t[o],i=a.instance,s=a.currentTarget,l=a.listener;if(i!==r&&e.isPropagationStopped())return;cl(e,l,s),r=i}else for(var u=0;u<t.length;u++){var c=t[u],d=c.instance,f=c.currentTarget,p=c.listener;if(d!==r&&e.isPropagationStopped())return;cl(e,p,f),r=d}}function fl(e,t){for(var n=!!(4&t),r=0;r<e.length;r++){var o=e[r];dl(o.event,o.listeners,n)}!function(){if(Kn){var e=Xn;throw Kn=!1,Xn=null,e}}()}function pl(e,t){ul.has(e)||a('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=function(e){var t=e[Uu];void 0===t&&(t=e[Uu]=new Set);return t}(t),r=function(e){return e+"__bubble"}(e);n.has(r)||(bl(t,e,2,!1),n.add(r))}function hl(e,t,n){ul.has(e)&&!t&&a('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),bl(n,e,r,t)}var ml="_reactListening"+Math.random().toString(36).slice(2);function gl(e){if(!e[ml]){e[ml]=!0,w.forEach(function(t){"selectionchange"!==t&&(ul.has(t)||hl(t,!1,e),hl(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[ml]||(t[ml]=!0,hl("selectionchange",!1,t)))}}function bl(e,t,n,r,o){var a=function(e,t,n){var r;switch(hi(t)){case Ia:r=ui;break;case Ca:r=ci;break;default:r=di}return r.bind(null,t,n,e)}(e,t,n),i=void 0;Un&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0)),r?void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,a):void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,a)}function yl(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function _l(e,t,n,r,o){var a=r;if(!(1&t||2&t)){var i=o;if(null!==r){var s=r;e:for(;;){if(null===s)return;var l=s.tag;if(3===l||4===l){var u=s.stateNode.containerInfo;if(yl(u,i))break;if(4===l)for(var c=s.return;null!==c;){var d=c.tag;if(3===d||4===d)if(yl(c.stateNode.containerInfo,i))return;c=c.return}for(;null!==u;){var f=Yu(u);if(null===f)return;var p=f.tag;if(5===p||6===p){s=a=f;continue e}u=u.parentNode}}s=s.return}}}Fn(function(){return function(e,t,n,r){var o=[];sl(o,e,r,n,On(n),t),fl(o,t)}(e,t,n,a)})}function vl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wl(e,t){for(var n=t+"Capture",r=[],o=e;null!==o;){var a=o,i=a.stateNode;if(5===a.tag&&null!==i){var s=i,l=Bn(o,n);null!=l&&r.unshift(vl(o,l,s));var u=Bn(o,t);null!=u&&r.push(vl(o,u,s))}o=o.return}return r}function Sl(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function xl(e,t,n,r,o){for(var a=t._reactName,i=[],s=n;null!==s&&s!==r;){var l=s,u=l.alternate,c=l.stateNode,d=l.tag;if(null!==u&&u===r)break;if(5===d&&null!==c){var f=c;if(o){var p=Bn(s,a);null!=p&&i.unshift(vl(s,p,f))}else if(!o){var h=Bn(s,a);null!=h&&i.push(vl(s,h,f))}}s=s.return}0!==i.length&&e.push({event:t,listeners:i})}var Tl,El,kl,Pl,Ol,Al,$l,Rl=!1,Il="dangerouslySetInnerHTML",Cl="suppressContentEditableWarning",Dl="suppressHydrationWarning",Nl="autoFocus",Ml="children",Ll="style",jl="__html";Tl={dialog:!0,webview:!0},El=function(e,t){gn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||bn||(bn=!0,"select"===e&&t.multiple?a("`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.",e):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),Tn(e,t,{registrationNameDependencies:S,possibleRegistrationNames:x})},Al=k&&!document.documentMode,kl=function(e,t,n){if(!Rl){var r=Ul(n),o=Ul(t);o!==r&&(Rl=!0,a("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(o),JSON.stringify(r)))}},Pl=function(e){if(!Rl){Rl=!0;var t=[];e.forEach(function(e){t.push(e)}),a("Extra attributes from the server: %s",t)}},Ol=function(e,t){!1===t?a("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):a("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},$l=function(e,t){var n=e.namespaceURI===Rt?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var Fl=/\r\n?/g,Bl=/\u0000|\uFFFD/g;function Ul(e){return function(e){if(A(e))a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(e)),$(e)}(e),("string"==typeof e?e:""+e).replace(Fl,"\n").replace(Bl,"")}function zl(e,t,n,r){var o=Ul(t),i=Ul(e);if(i!==o&&(r&&(Rl||(Rl=!0,a('Text content did not match. Server: "%s" Client: "%s"',i,o))),n))throw new Error("Text content does not match server-rendered HTML.")}function Vl(e){return 9===e.nodeType?e:e.ownerDocument}function Hl(){}function ql(e){e.onclick=Hl}function Gl(e,t,n,r){var o,a=un(t,n);switch(El(t,n),t){case"dialog":pl("cancel",e),pl("close",e),o=n;break;case"iframe":case"object":case"embed":pl("load",e),o=n;break;case"video":case"audio":for(var i=0;i<ll.length;i++)pl(ll[i],e);o=n;break;case"source":pl("error",e),o=n;break;case"img":case"image":case"link":pl("error",e),pl("load",e),o=n;break;case"details":pl("toggle",e),o=n;break;case"input":lt(e,n),o=st(e,n),pl("invalid",e);break;case"option":bt(0,n),o=n;break;case"select":Et(e,n),o=Tt(0,n),pl("invalid",e);break;case"textarea":Ot(e,n),o=Pt(e,n),pl("invalid",e);break;default:o=n}switch(ln(t,o),function(e,t,n,r,o){for(var a in r)if(r.hasOwnProperty(a)){var i=r[a];if(a===Ll)i&&Object.freeze(i),rn(t,i);else if(a===Il){var s=i?i[jl]:void 0;null!=s&&Lt(t,s)}else a===Ml?"string"==typeof i?("textarea"!==e||""!==i)&&jt(t,i):"number"==typeof i&&jt(t,""+i):a===Cl||a===Dl||a===Nl||(S.hasOwnProperty(a)?null!=i&&("function"!=typeof i&&Ol(a,i),"onScroll"===a&&pl("scroll",t)):null!=i&&Z(t,a,i,o))}}(t,e,0,o,a),t){case"input":Je(e),dt(e,n,!1);break;case"textarea":Je(e),$t(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",We(Ye(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?xt(n,!!t.multiple,r,!1):null!=t.defaultValue&&xt(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof o.onClick&&ql(e)}}function Wl(e,t,n,r,o){El(t,r);var i,s,l,u,c=null;switch(t){case"input":i=st(e,n),s=st(e,r),c=[];break;case"select":i=Tt(0,n),s=Tt(0,r),c=[];break;case"textarea":i=Pt(e,n),s=Pt(e,r),c=[];break;default:s=r,"function"!=typeof(i=n).onClick&&"function"==typeof s.onClick&&ql(e)}ln(t,s);var d=null;for(l in i)if(!s.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if(l===Ll){var f=i[l];for(u in f)f.hasOwnProperty(u)&&(d||(d={}),d[u]="")}else l===Il||l===Ml||l===Cl||l===Dl||l===Nl||(S.hasOwnProperty(l)?c||(c=[]):(c=c||[]).push(l,null));for(l in s){var p=s[l],h=null!=i?i[l]:void 0;if(s.hasOwnProperty(l)&&p!==h&&(null!=p||null!=h))if(l===Ll)if(p&&Object.freeze(p),h){for(u in h)!h.hasOwnProperty(u)||p&&p.hasOwnProperty(u)||(d||(d={}),d[u]="");for(u in p)p.hasOwnProperty(u)&&h[u]!==p[u]&&(d||(d={}),d[u]=p[u])}else d||(c||(c=[]),c.push(l,d)),d=p;else if(l===Il){var m=p?p[jl]:void 0,g=h?h[jl]:void 0;null!=m&&g!==m&&(c=c||[]).push(l,m)}else l===Ml?"string"!=typeof p&&"number"!=typeof p||(c=c||[]).push(l,""+p):l===Cl||l===Dl||(S.hasOwnProperty(l)?(null!=p&&("function"!=typeof p&&Ol(l,p),"onScroll"===l&&pl("scroll",e)),c||h===p||(c=[])):(c=c||[]).push(l,p))}return d&&(!function(e,t){if(t){var n=an(e),r=an(t),o={};for(var i in n){var s=n[i],l=r[i];if(l&&s!==l){var u=s+","+l;if(o[u])continue;o[u]=!0,a("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",on(e[s])?"Removing":"Updating",s,l)}}}}(d,s[Ll]),(c=c||[]).push(Ll,d)),c}function Yl(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&ut(e,o);un(n,r);switch(function(e,t,n,r){for(var o=0;o<t.length;o+=2){var a=t[o],i=t[o+1];a===Ll?rn(e,i):a===Il?Lt(e,i):a===Ml?jt(e,i):Z(e,a,i,r)}}(e,t,0,un(n,o)),n){case"input":ct(e,o);break;case"textarea":At(e,o);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var o=t.value;null!=o?xt(n,!!t.multiple,o,!1):r!==!!t.multiple&&(null!=t.defaultValue?xt(n,!!t.multiple,t.defaultValue,!0):xt(n,!!t.multiple,t.multiple?[]:"",!1))}(e,o)}}function Kl(e){var t=e.toLowerCase();return cn.hasOwnProperty(t)&&cn[t]||null}function Xl(e,t){Rl||(Rl=!0,a("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function Ql(e,t){Rl||(Rl=!0,a('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function Zl(e,t,n){Rl||(Rl=!0,a("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function Jl(e,t){""!==t&&(Rl||(Rl=!0,a('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var eu,tu,nu=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],ru=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],ou=ru.concat(["button"]),au=["dd","dt","li","option","optgroup","p","rp","rt"],iu={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};tu=function(e,t){var n=we({},e||iu),r={tag:t};return-1!==ru.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==ou.indexOf(t)&&(n.pTagInButtonScope=null),-1!==nu.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var su={};eu=function(e,t,n){var r=(n=n||iu).current,o=r&&r.tag;null!=t&&(null!=e&&a("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===au.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0}(e,o)?null:r,s=i?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,n),l=i||s;if(l){var u=l.tag,c=!!i+"|"+e+"|"+u;if(!su[c]){su[c]=!0;var d=e,f="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var p="";"table"===u&&"tr"===e&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),a("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,f,p)}else a("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}};var lu="suppressHydrationWarning",uu="$",cu="/$",du="$?",fu="$!",pu=null,hu=null;function mu(e){var t;pu=si,t=js(),hu={focusedElem:t,selectionRange:Fs(t)?Us(t):null};return li(!1),null}function gu(e,t,n,r,o){var i=r;if(eu(e,null,i.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var s=""+t.children,l=tu(i.ancestorInfo,e);eu(null,s,l)}var u=function(e,t,n,r){var o,i,s=Vl(n),l=r;if(l===Rt&&(l=Ct(e)),l===Rt){if((o=un(e,t))||e===e.toLowerCase()||a("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var u=s.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;i=u.removeChild(c)}else if("string"==typeof t.is)i=s.createElement(e,{is:t.is});else if(i=s.createElement(e),"select"===e){var d=i;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else i=s.createElementNS(l,e);return l===Rt&&(o||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(i)||P.call(Tl,e)||(Tl[e]=!0,a("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),i}(e,t,n,i.namespace);return Hu(o,u),Zu(u,t),u}function bu(e,t){e.appendChild(t)}function yu(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function _u(e,t,n,r){eu(null,e,n.ancestorInfo);var o=function(e,t){return Vl(t).createTextNode(e)}(e,t);return Hu(r,o),o}var vu="function"==typeof setTimeout?setTimeout:void 0,wu="function"==typeof clearTimeout?clearTimeout:void 0,Su="function"==typeof Promise?Promise:void 0,xu="function"==typeof queueMicrotask?queueMicrotask:void 0!==Su?function(e){return Su.resolve(null).then(e).catch(Tu)}:vu;function Tu(e){setTimeout(function(){throw e})}function Eu(e){jt(e,"")}function ku(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType){var a=o.data;if(a===cu){if(0===r)return e.removeChild(o),void ai(t);r--}else a!==uu&&a!==du&&a!==fu||r++}n=o}while(n);ai(t)}function Pu(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function Ou(e){e.nodeValue=""}function Au(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=zt("display",r)}function $u(e,t){e.nodeValue=t}function Ru(e){return e.data===du}function Iu(e){return e.data===fu}function Cu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){var n=e.data;if(n===uu||n===fu||n===du)break;if(n===cu)return null}}return e}function Du(e){return Cu(e.nextSibling)}function Nu(e,t,n,r,o,a,i){return Hu(a,e),Zu(e,n),function(e,t,n,r,o,a,i){var s,l;switch(s=un(t,n),El(t,n),t){case"dialog":pl("cancel",e),pl("close",e);break;case"iframe":case"object":case"embed":pl("load",e);break;case"video":case"audio":for(var u=0;u<ll.length;u++)pl(ll[u],e);break;case"source":pl("error",e);break;case"img":case"image":case"link":pl("error",e),pl("load",e);break;case"details":pl("toggle",e);break;case"input":lt(e,n),pl("invalid",e);break;case"option":bt(0,n);break;case"select":Et(e,n),pl("invalid",e);break;case"textarea":Ot(e,n),pl("invalid",e)}ln(t,n),l=new Set;for(var c=e.attributes,d=0;d<c.length;d++)switch(c[d].name.toLowerCase()){case"value":case"checked":case"selected":break;default:l.add(c[d].name)}var f=null;for(var p in n)if(n.hasOwnProperty(p)){var h=n[p];if(p===Ml)"string"==typeof h?e.textContent!==h&&(!0!==n[Dl]&&zl(e.textContent,h,a,i),f=[Ml,h]):"number"==typeof h&&e.textContent!==""+h&&(!0!==n[Dl]&&zl(e.textContent,h,a,i),f=[Ml,""+h]);else if(S.hasOwnProperty(p))null!=h&&("function"!=typeof h&&Ol(p,h),"onScroll"===p&&pl("scroll",e));else if(i&&"boolean"==typeof s){var m=void 0,g=z(p);if(!0===n[Dl]);else if(p===Cl||p===Dl||"value"===p||"checked"===p||"selected"===p);else if(p===Il){var b=e.innerHTML,y=h?h[jl]:void 0;if(null!=y){var _=$l(e,y);_!==b&&kl(p,b,_)}}else if(p===Ll){if(l.delete(p),Al){var v=nn(h);v!==(m=e.getAttribute("style"))&&kl(p,m,v)}}else if(s)l.delete(p.toLowerCase()),h!==(m=Q(e,p,h))&&kl(p,m,h);else if(!F(p,g,s)&&!U(p,h,g,s)){var w=!1;if(null!==g)l.delete(g.attributeName),m=X(e,p,h,g);else{var x=r;if(x===Rt&&(x=Ct(t)),x===Rt)l.delete(p.toLowerCase());else{var T=Kl(p);null!==T&&T!==p&&(w=!0,l.delete(T)),l.delete(p)}m=Q(e,p,h)}h===m||w||kl(p,m,h)}}}switch(i&&l.size>0&&!0!==n[Dl]&&Pl(l),t){case"input":Je(e),dt(e,n,!0);break;case"textarea":Je(e),$t(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&ql(e)}return f}(e,t,n,o.namespace,0,!!(1&a.mode),i)}function Mu(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===uu||r===fu||r===du){if(0===n)return t;n--}else r===cu&&n++}t=t.previousSibling}return null}var Lu=Math.random().toString(36).slice(2),ju="__reactFiber$"+Lu,Fu="__reactProps$"+Lu,Bu="__reactContainer$"+Lu,Uu="__reactEvents$"+Lu,zu="__reactListeners$"+Lu,Vu="__reactHandles$"+Lu;function Hu(e,t){t[ju]=e}function qu(e,t){t[Bu]=e}function Gu(e){e[Bu]=null}function Wu(e){return!!e[Bu]}function Yu(e){var t=e[ju];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bu]||n[ju]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var o=Mu(e);null!==o;){var a=o[ju];if(a)return a;o=Mu(o)}return t}n=(e=n).parentNode}return null}function Ku(e){var t=e[ju]||e[Bu];return t&&(5===t.tag||6===t.tag||t.tag===c||3===t.tag)?t:null}function Xu(e){if(5===e.tag||6===e.tag)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Qu(e){return e[Fu]||null}function Zu(e,t){e[Fu]=t}var Ju={},ec=n.ReactDebugCurrentFrame;function tc(e){if(e){var t=e._owner,n=Ie(e.type,e._source,t?t.type:null);ec.setExtraStackFrame(n)}else ec.setExtraStackFrame(null)}function nc(e,t,n,r,o){var i=Function.call.bind(P);for(var s in e)if(i(e,s)){var l=void 0;try{if("function"!=typeof e[s]){var u=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[s](t,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){l=c}!l||l instanceof Error||(tc(o),a("%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).",r||"React class",n,s,typeof l),tc(null)),l instanceof Error&&!(l.message in Ju)&&(Ju[l.message]=!0,tc(o),a("Failed %s type: %s",n,l.message),tc(null))}}var rc,oc=[];rc=[];var ac,ic=-1;function sc(e){return{current:e}}function lc(e,t){ic<0?a("Unexpected pop."):(t!==rc[ic]&&a("Unexpected Fiber popped."),e.current=oc[ic],oc[ic]=null,rc[ic]=null,ic--)}function uc(e,t,n){ic++,oc[ic]=e.current,rc[ic]=n,e.current=t}ac={};var cc={};Object.freeze(cc);var dc=sc(cc),fc=sc(!1),pc=cc;function hc(e,t,n){return n&&yc(t)?pc:dc.current}function mc(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function gc(e,t){var n=e.type.contextTypes;if(!n)return cc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={};for(var a in n)o[a]=t[a];return nc(n,o,"context",je(e)||"Unknown"),r&&mc(e,t,o),o}function bc(){return fc.current}function yc(e){var t=e.childContextTypes;return null!=t}function _c(e){lc(fc,e),lc(dc,e)}function vc(e){lc(fc,e),lc(dc,e)}function wc(e,t,n){if(dc.current!==cc)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");uc(dc,t,e),uc(fc,n,e)}function Sc(e,t,n){var r=e.stateNode,o=t.childContextTypes;if("function"!=typeof r.getChildContext){var i=je(e)||"Unknown";return ac[i]||(ac[i]=!0,a("%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.",i,i)),n}var s=r.getChildContext();for(var l in s)if(!(l in o))throw new Error((je(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return nc(o,s,"child context",je(e)||"Unknown"),we({},n,s)}function xc(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||cc;return pc=dc.current,uc(dc,n,e),uc(fc,fc.current,e),!0}function Tc(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var o=Sc(e,t,pc);r.__reactInternalMemoizedMergedChildContext=o,lc(fc,e),lc(dc,e),uc(dc,o,e),uc(fc,n,e)}else lc(fc,e),uc(fc,n,e)}function Ec(e){if(!function(e){return Tr(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(yc(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var kc=null,Pc=!1,Oc=!1;function Ac(e){null===kc?kc=[e]:kc.push(e)}function $c(){Pc&&Rc()}function Rc(){if(!Oc&&null!==kc){Oc=!0;var e=0,t=La();try{var n=kc;for(ja(Ia);e<n.length;e++){var r=n[e];do{r=r(true)}while(null!==r)}kc=null,Pc=!1}catch(o){throw null!==kc&&(kc=kc.slice(e+1)),Cr(Fr,Rc),o}finally{ja(t),Oc=!1}}return null}var Ic=[],Cc=0,Dc=null,Nc=0,Mc=[],Lc=0,jc=null,Fc=1,Bc="";function Uc(){var e=Bc;return(Fc&~function(e){return 1<<qc(e)-1}(Fc)).toString(32)+e}function zc(e,t){Wc(),Ic[Cc++]=Nc,Ic[Cc++]=Dc,Dc=e,Nc=t}function Vc(e,t,n){Wc(),Mc[Lc++]=Fc,Mc[Lc++]=Bc,Mc[Lc++]=jc,jc=e;var r=Fc,o=Bc,a=qc(r)-1,i=r&~(1<<a),s=n+1,l=qc(t)+a;if(l>30){var u=a-a%5,c=(i&(1<<u)-1).toString(32),d=i>>u,f=a-u,p=qc(t)+f;Fc=1<<p|(s<<f|d),Bc=c+o}else{Fc=1<<l|(s<<a|i),Bc=o}}function Hc(e){if(Wc(),null!==e.return){zc(e,1),Vc(e,1,0)}}function qc(e){return 32-yo(e)}function Gc(e){for(;e===Dc;)Dc=Ic[--Cc],Ic[Cc]=null,Nc=Ic[--Cc],Ic[Cc]=null;for(;e===jc;)jc=Mc[--Lc],Mc[Lc]=null,Bc=Mc[--Lc],Mc[Lc]=null,Fc=Mc[--Lc],Mc[Lc]=null}function Wc(){yd()||a("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Yc=null,Kc=null,Xc=!1,Qc=!1,Zc=null;function Jc(){Qc=!0}function ed(e){var t=e.stateNode.containerInfo;return Kc=Cu(t.firstChild),Yc=e,Xc=!0,Zc=null,Qc=!1,!0}function td(e,t,n){var r,o;return Kc=Cu(t.nextSibling),Yc=e,Xc=!0,Zc=null,Qc=!1,null!==n&&(r=e,o=n,Wc(),Mc[Lc++]=Fc,Mc[Lc++]=Bc,Mc[Lc++]=jc,Fc=o.id,Bc=o.overflow,jc=r),!0}function nd(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?Xl(e,t):8===t.nodeType||Ql(e,t)}(e.stateNode.containerInfo,t);break;case 5:var n=!!(1&e.mode);!function(e,t,n,r,o){(o||!0!==t[lu])&&(1===r.nodeType?Xl(n,r):8===r.nodeType||Ql(n,r))}(e.type,e.memoizedProps,e.stateNode,t,n);break;case c:var r=e.memoizedState;null!==r.dehydrated&&function(e,t){var n=e.parentNode;null!==n&&(1===t.nodeType?Xl(n,t):8===t.nodeType||Ql(n,t))}(r.dehydrated,t)}}function rd(e,t){nd(e,t);var n,r=((n=W_(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var o=e.deletions;null===o?(e.deletions=[r],e.flags|=tr):o.push(r)}function od(e,t){if(!Qc)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t){Zl(e,t)}(n,r);break;case 6:!function(e,t){Jl(e,t)}(n,t.pendingProps)}break;case 5:e.type;var o=e.memoizedProps,a=e.stateNode;switch(t.tag){case 5:var i=t.type;t.pendingProps;!function(e,t,n,r,o,a){(a||!0!==t[lu])&&Zl(n,r)}(0,o,a,i,0,!!(1&e.mode));break;case 6:!function(e,t,n,r,o){(o||!0!==t[lu])&&Jl(n,r)}(0,o,a,t.pendingProps,!!(1&e.mode))}break;case c:var s=e.memoizedState.dehydrated;if(null!==s)switch(t.tag){case 5:var l=t.type;t.pendingProps,function(e,t){var n=e.parentNode;null!==n&&Zl(n,t)}(s,l);break;case 6:!function(e,t){var n=e.parentNode;null!==n&&Jl(n,t)}(s,t.pendingProps)}break;default:return}}function ad(e,t){t.flags=-4097&t.flags|2,od(e,t)}function id(e,t){switch(e.tag){case 5:var n=e.type;e.pendingProps;var r=function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n);return null!==r&&(e.stateNode=r,Yc=e,Kc=Cu(r.firstChild),!0);case 6:var o=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==o&&(e.stateNode=o,Yc=e,Kc=null,!0);case c:var a=function(e){return 8!==e.nodeType?null:e}(t);if(null!==a){var i={dehydrated:a,treeContext:(Wc(),null!==jc?{id:Fc,overflow:Bc}:null),retryLane:Zo};e.memoizedState=i;var s=function(e){var t=W_(h,null,null,0);return t.stateNode=e,t}(a);return s.return=e,e.child=s,Yc=e,Kc=null,!0}return!1;default:return!1}}function sd(e){return!!(1&e.mode)&&0===(e.flags&nr)}function ld(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function ud(e){if(Xc){var t=Kc;if(!t)return sd(e)&&(od(Yc,e),ld()),ad(Yc,e),Xc=!1,void(Yc=e);var n=t;if(!id(e,t)){sd(e)&&(od(Yc,e),ld()),t=Du(n);var r=Yc;if(!t||!id(e,t))return ad(Yc,e),Xc=!1,void(Yc=e);rd(r,n)}}}function cd(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n){return Hu(n,e),n.mode,function(e,t){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var o=Yc;if(null!==o)switch(o.tag){case 3:o.stateNode.containerInfo;!function(e,t,n,r){zl(t.nodeValue,n,r,!0)}(0,t,n,!!(1&o.mode));break;case 5:o.type;var a=o.memoizedProps;o.stateNode;!function(e,t,n,r,o,a){!0!==t[lu]&&zl(r.nodeValue,o,a,!0)}(0,a,0,t,n,!!(1&o.mode))}}return r}function dd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");!function(e,t){Hu(t,e)}(n,e)}function fd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===cu){if(0===n)return Du(t);n--}else r!==uu&&r!==fu&&r!==du||n++}t=t.nextSibling}return null}(n)}function pd(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==c;)t=t.return;Yc=t}function hd(e){if(e!==Yc)return!1;if(!Xc)return pd(e),Xc=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(n=e.type)&&"body"!==n&&!yu(e.type,e.memoizedProps))){var t=Kc;if(t)if(sd(e))md(e),ld();else for(;t;)rd(e,t),t=Du(t)}var n;return pd(e),Kc=e.tag===c?fd(e):Yc?Du(e.stateNode):null,!0}function md(e){for(var t=Kc;t;)nd(e,t),t=Du(t)}function gd(){Yc=null,Kc=null,Xc=!1,Qc=!1}function bd(){null!==Zc&&(Hy(Zc),Zc=null)}function yd(){return Xc}function _d(e){null===Zc?Zc=[e]:Zc.push(e)}var vd=n.ReactCurrentBatchConfig;var wd={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Sd=function(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")},xd=[],Td=[],Ed=[],kd=[],Pd=[],Od=[],Ad=new Set;wd.recordUnsafeLifecycleWarnings=function(e,t){Ad.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&xd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&Td.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&Ed.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&kd.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Pd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Od.push(e))},wd.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;xd.length>0&&(xd.forEach(function(t){e.add(je(t)||"Component"),Ad.add(t.type)}),xd=[]);var t=new Set;Td.length>0&&(Td.forEach(function(e){t.add(je(e)||"Component"),Ad.add(e.type)}),Td=[]);var n=new Set;Ed.length>0&&(Ed.forEach(function(e){n.add(je(e)||"Component"),Ad.add(e.type)}),Ed=[]);var r=new Set;kd.length>0&&(kd.forEach(function(e){r.add(je(e)||"Component"),Ad.add(e.type)}),kd=[]);var i=new Set;Pd.length>0&&(Pd.forEach(function(e){i.add(je(e)||"Component"),Ad.add(e.type)}),Pd=[]);var s=new Set;(Od.length>0&&(Od.forEach(function(e){s.add(je(e)||"Component"),Ad.add(e.type)}),Od=[]),t.size>0)&&a("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",Sd(t));r.size>0&&a("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",Sd(r));s.size>0&&a("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",Sd(s));e.size>0&&o("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Sd(e));n.size>0&&o("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Sd(n));i.size>0&&o("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Sd(i))};var $d,Rd,Id,Cd,Dd,Nd=new Map,Md=new Set;wd.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Md.has(e.type)){var r=Nd.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Nd.set(n,r)),r.push(e))}}else a("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},wd.flushLegacyContextWarning=function(){Nd.forEach(function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach(function(e){r.add(je(e)||"Component"),Md.add(e.type)});var o=Sd(r);try{qe(n),a("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)}finally{He()}}})},wd.discardPendingWarnings=function(){xd=[],Td=[],Ed=[],kd=[],Pd=[],Od=[],Nd=new Map};var Ld;function jd(e,t,n){var r,o=n.ref;if(null!==o&&"function"!=typeof o&&"object"!=typeof o){if(e.mode,!(n._owner&&n._self&&n._owner.stateNode!==n._self||n._owner&&1!==n._owner.tag)&&("function"!=typeof n.type||(r=n.type).prototype&&r.prototype.isReactComponent)&&n._owner){var i=je(e)||"Component";Id[i]||(a('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',i,o),Id[i]=!0)}if(n._owner){var s,l=n._owner;if(l){var u=l;if(1!==u.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");s=u.stateNode}if(!s)throw new Error("Missing owner for string ref "+o+". This error is likely caused by a bug in React. Please file an issue.");var c=s;!function(e,t){if(A(e))a("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,O(e)),$(e)}(o,"ref");var d=""+o;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===d)return t.ref;var f=function(e){var t=c.refs;null===e?delete t[d]:t[d]=e};return f._stringRef=d,f}if("string"!=typeof o)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+o+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return o}function Fd(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Bd(e){var t=je(e)||"Component";Dd[t]||(Dd[t]=!0,a("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."))}function Ud(e){var t=e._payload;return(0,e._init)(t)}function zd(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=tr):r.push(n)}}function n(n,r){if(!e)return null;for(var o=r;null!==o;)t(n,o),o=o.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function o(e,t){var n=K_(e,t);return n.index=0,n.sibling=null,n}function i(t,n,r){if(t.index=r,!e)return t.flags|=pr,n;var o=t.alternate;if(null!==o){var a=o.index;return a<n?(t.flags|=2,n):a}return t.flags|=2,n}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){if(null===t||6!==t.tag){var a=tv(n,e.mode,r);return a.return=e,a}var i=o(t,n);return i.return=e,i}function u(e,t,n,r){var a=n.type;if(a===te)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===a||j_(t,n)||"object"==typeof a&&null!==a&&a.$$typeof===ce&&Ud(a)===t.type)){var i=o(t,n.props);return i.ref=jd(e,t,n),i.return=e,i._debugSource=n._source,i._debugOwner=n._owner,i}var s=Z_(n,e.mode,r);return s.ref=jd(e,t,n),s.return=e,s}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var a=nv(n,e.mode,r);return a.return=e,a}var i=o(t,n.children||[]);return i.return=e,i}function d(e,t,n,r,a){if(null===t||7!==t.tag){var i=J_(n,e.mode,r,a);return i.return=e,i}var s=o(t,n);return s.return=e,s}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=tv(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case J:var o=Z_(t,e.mode,n);return o.ref=jd(e,null,t),o.return=e,o;case ee:var a=nv(t,e.mode,n);return a.return=e,a;case ce:var i=t._payload;return f(e,(0,t._init)(i),n)}if(vt(t)||pe(t)){var s=J_(t,e.mode,n,null);return s.return=e,s}Fd(0,t)}return"function"==typeof t&&Bd(e),null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case J:return n.key===o?u(e,t,n,r):null;case ee:return n.key===o?c(e,t,n,r):null;case ce:var a=n._payload;return p(e,t,(0,n._init)(a),r)}if(vt(n)||pe(n))return null!==o?null:d(e,t,n,r,null);Fd(0,n)}return"function"==typeof n&&Bd(e),null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case J:return u(t,e.get(null===r.key?n:r.key)||null,r,o);case ee:return c(t,e.get(null===r.key?n:r.key)||null,r,o);case ce:var a=r._payload;return h(e,t,n,(0,r._init)(a),o)}if(vt(r)||pe(r))return d(t,e.get(n)||null,r,o,null);Fd(0,r)}return"function"==typeof r&&Bd(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case J:case ee:Ld(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}a("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case ce:var o=e._payload;m((0,e._init)(o),t,n)}return t}return function l(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===te&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case J:return s(function(e,r,a,i){for(var s=a.key,l=r;null!==l;){if(l.key===s){var u=a.type;if(u===te){if(7===l.tag){n(e,l.sibling);var c=o(l,a.props.children);return c.return=e,c._debugSource=a._source,c._debugOwner=a._owner,c}}else if(l.elementType===u||j_(l,a)||"object"==typeof u&&null!==u&&u.$$typeof===ce&&Ud(u)===l.type){n(e,l.sibling);var d=o(l,a.props);return d.ref=jd(e,l,a),d.return=e,d._debugSource=a._source,d._debugOwner=a._owner,d}n(e,l);break}t(e,l),l=l.sibling}if(a.type===te){var f=J_(a.props.children,e.mode,i,a.key);return f.return=e,f}var p=Z_(a,e.mode,i);return p.ref=jd(e,r,a),p.return=e,p}(u,c,d,g));case ee:return s(function(e,r,a,i){for(var s=a.key,l=r;null!==l;){if(l.key===s){if(4===l.tag&&l.stateNode.containerInfo===a.containerInfo&&l.stateNode.implementation===a.implementation){n(e,l.sibling);var u=o(l,a.children||[]);return u.return=e,u}n(e,l);break}t(e,l),l=l.sibling}var c=nv(a,e.mode,i);return c.return=e,c}(u,c,d,g));case ce:var b=d._payload;return l(u,c,(0,d._init)(b),g)}if(vt(d))return function(o,a,s,l){for(var u=null,c=0;c<s.length;c++)u=m(s[c],u,o);for(var d=null,g=null,b=a,y=0,_=0,v=null;null!==b&&_<s.length;_++){b.index>_?(v=b,b=null):v=b.sibling;var w=p(o,b,s[_],l);if(null===w){null===b&&(b=v);break}e&&b&&null===w.alternate&&t(o,b),y=i(w,y,_),null===g?d=w:g.sibling=w,g=w,b=v}if(_===s.length)return n(o,b),yd()&&zc(o,_),d;if(null===b){for(;_<s.length;_++){var S=f(o,s[_],l);null!==S&&(y=i(S,y,_),null===g?d=S:g.sibling=S,g=S)}return yd()&&zc(o,_),d}for(var x=r(0,b);_<s.length;_++){var T=h(x,o,_,s[_],l);null!==T&&(e&&null!==T.alternate&&x.delete(null===T.key?_:T.key),y=i(T,y,_),null===g?d=T:g.sibling=T,g=T)}return e&&x.forEach(function(e){return t(o,e)}),yd()&&zc(o,_),d}(u,c,d,g);if(pe(d))return function(o,s,l,u){var c=pe(l);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===l[Symbol.toStringTag]&&(Rd||a("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."),Rd=!0),l.entries===c&&($d||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$d=!0);var d=c.call(l);if(d)for(var g=null,b=d.next();!b.done;b=d.next())g=m(b.value,g,o);var y=c.call(l);if(null==y)throw new Error("An iterable object provided no iterator.");for(var _=null,v=null,w=s,S=0,x=0,T=null,E=y.next();null!==w&&!E.done;x++,E=y.next()){w.index>x?(T=w,w=null):T=w.sibling;var k=p(o,w,E.value,u);if(null===k){null===w&&(w=T);break}e&&w&&null===k.alternate&&t(o,w),S=i(k,S,x),null===v?_=k:v.sibling=k,v=k,w=T}if(E.done)return n(o,w),yd()&&zc(o,x),_;if(null===w){for(;!E.done;x++,E=y.next()){var P=f(o,E.value,u);null!==P&&(S=i(P,S,x),null===v?_=P:v.sibling=P,v=P)}return yd()&&zc(o,x),_}for(var O=r(0,w);!E.done;x++,E=y.next()){var A=h(O,o,x,E.value,u);null!==A&&(e&&null!==A.alternate&&O.delete(null===A.key?x:A.key),S=i(A,S,x),null===v?_=A:v.sibling=A,v=A)}return e&&O.forEach(function(e){return t(o,e)}),yd()&&zc(o,x),_}(u,c,d,g);Fd(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?s(function(e,t,r,a){if(null!==t&&6===t.tag){n(e,t.sibling);var i=o(t,r);return i.return=e,i}n(e,t);var s=tv(r,e.mode,a);return s.return=e,s}(u,c,""+d,g)):("function"==typeof d&&Bd(u),n(u,c))}}$d=!1,Rd=!1,Id={},Cd={},Dd={},Ld=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=je(t)||"Component";Cd[n]||(Cd[n]=!0,a('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var Vd=zd(!0),Hd=zd(!1);function qd(e,t){for(var n=e.child;null!==n;)X_(n,t),n=n.sibling}var Gd,Wd=sc(null);Gd={};var Yd=null,Kd=null,Xd=null,Qd=!1;function Zd(){Yd=null,Kd=null,Xd=null,Qd=!1}function Jd(){Qd=!0}function ef(){Qd=!1}function tf(e,t,n){uc(Wd,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==Gd&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Gd}function nf(e,t){var n=Wd.current;lc(Wd,t),e._currentValue=n}function rf(e,t,n){for(var r=e;null!==r;){var o=r.alternate;if(ba(r.childLanes,t)?null===o||ba(o.childLanes,t)||(o.childLanes=ya(o.childLanes,t)):(r.childLanes=ya(r.childLanes,t),null!==o&&(o.childLanes=ya(o.childLanes,t))),r===n)break;r=r.return}r!==n&&a("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function of(e,t,n){!function(e,t,n){var r=e.child;null!==r&&(r.return=e);for(;null!==r;){var o=void 0,a=r.dependencies;if(null!==a){o=r.child;for(var i=a.firstContext;null!==i;){if(i.context===t){if(1===r.tag){var l=pa(n),u=wf(ea,l);u.tag=bf;var c=r.updateQueue;if(null===c);else{var d=c.shared,f=d.pending;null===f?u.next=u:(u.next=f.next,f.next=u),d.pending=u}}r.lanes=ya(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=ya(p.lanes,n)),rf(r.return,n,e),a.lanes=ya(a.lanes,n);break}i=i.next}}else if(r.tag===s)o=r.type===e.type?null:r.child;else if(r.tag===h){var m=r.return;if(null===m)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes=ya(m.lanes,n);var g=m.alternate;null!==g&&(g.lanes=ya(g.lanes,n)),rf(m,n,e),o=r.sibling}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}var b=o.sibling;if(null!==b){b.return=o.return,o=b;break}o=o.return}r=o}}(e,t,n)}function af(e,t){Yd=e,Kd=null,Xd=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&(ga(n.lanes,t)&&mg(),n.firstContext=null))}function sf(e){Qd&&a("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().");var t=e._currentValue;if(Xd===e);else{var n={context:e,memoizedValue:t,next:null};if(null===Kd){if(null===Yd)throw new Error("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().");Kd=n,Yd.dependencies={lanes:0,firstContext:n}}else Kd=Kd.next=n}return t}var lf=null;function uf(e){null===lf?lf=[e]:lf.push(e)}function cf(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,pf(e,r)}function df(e,t){return pf(e,t)}var ff=pf;function pf(e,t){e.lanes=ya(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=ya(n.lanes,t)),null===n&&4098&e.flags&&x_(e);for(var r=e,o=e.return;null!==o;)o.childLanes=ya(o.childLanes,t),null!==(n=o.alternate)?n.childLanes=ya(n.childLanes,t):4098&o.flags&&x_(e),r=o,o=o.return;return 3===r.tag?r.stateNode:null}var hf,mf,gf=0,bf=2,yf=!1;function _f(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function vf(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var o={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=o}}function wf(e,t){return{eventTime:e,lane:t,tag:gf,payload:null,callback:null,next:null}}function Sf(e,t,n){var r=e.updateQueue;if(null===r)return null;var o=r.shared;if(mf!==o||hf||(a("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),hf=!0),(Qb&zb)!==Ub){var i=o.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),o.pending=t,ff(e,n)}return function(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,pf(e,r)}(e,o,t,n)}function xf(e,t,n){var r=t.updateQueue;if(null!==r){var o=r.shared;if(ca(n)){var a=o.lanes,i=ya(a=va(a,e.pendingLanes),n);o.lanes=i,Ta(e,i)}}}function Tf(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var o=r.updateQueue;if(n===o){var a=null,i=null,s=n.firstBaseUpdate;if(null!==s){var l=s;do{var u={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};null===i?a=i=u:(i.next=u,i=u),l=l.next}while(null!==l);null===i?a=i=t:(i.next=t,i=t)}else a=i=t;return n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function Ef(e,t,n,r,o,a){switch(n.tag){case 1:var i=n.payload;if("function"==typeof i){Jd();var s=i.call(a,r,o);if(8&e.mode){Qr(!0);try{i.call(a,r,o)}finally{Qr(!1)}}return ef(),s}return i;case 3:e.flags=-65537&e.flags|nr;case gf:var l,u=n.payload;if("function"==typeof u){if(Jd(),l=u.call(a,r,o),8&e.mode){Qr(!0);try{u.call(a,r,o)}finally{Qr(!1)}}ef()}else l=u;return null==l?r:we({},r,l);case bf:return yf=!0,r}return r}function kf(e,t,n,r){var o=e.updateQueue;yf=!1,mf=o.shared;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var c=e.alternate;if(null!==c){var d=c.updateQueue,f=d.lastBaseUpdate;f!==i&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(null!==a){for(var p=o.baseState,h=0,m=null,g=null,b=null,y=a;;){var _=y.lane,v=y.eventTime;if(ba(r,_)){if(null!==b){var w={eventTime:v,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null};b=b.next=w}if(p=Ef(e,0,y,p,t,n),null!==y.callback&&0!==y.lane){e.flags|=64;var S=o.effects;null===S?o.effects=[y]:S.push(y)}}else{var x={eventTime:v,lane:_,tag:y.tag,payload:y.payload,callback:y.callback,next:null};null===b?(g=b=x,m=p):b=b.next=x,h=ya(h,_)}if(null===(y=y.next)){if(null===(s=o.shared.pending))break;var T=s,E=T.next;T.next=null,y=E,o.lastBaseUpdate=T,o.shared.pending=null}}null===b&&(m=p),o.baseState=m,o.firstBaseUpdate=g,o.lastBaseUpdate=b;var k=o.shared.interleaved;if(null!==k){var P=k;do{h=ya(h,P.lane),P=P.next}while(P!==k)}else null===a&&(o.shared.lanes=0);n_(h),e.lanes=h,e.memoizedState=p}mf=null}function Pf(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Of(){yf=!1}function Af(){return yf}function $f(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var o=0;o<r.length;o++){var a=r[o],i=a.callback;null!==i&&(a.callback=null,Pf(i,n))}}hf=!1,mf=null;var Rf={},If=sc(Rf),Cf=sc(Rf),Df=sc(Rf);function Nf(e){if(e===Rf)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Mf(){return Nf(Df.current)}function Lf(e,t){uc(Df,t,e),uc(Cf,e,e),uc(If,Rf,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var o=e.documentElement;n=o?o.namespaceURI:Dt(null,"");break;default:var a=8===r?e.parentNode:e;n=Dt(a.namespaceURI||null,t=a.tagName)}var i=t.toLowerCase();return{namespace:n,ancestorInfo:tu(null,i)}}(t);lc(If,e),uc(If,n,e)}function jf(e){lc(If,e),lc(Cf,e),lc(Df,e)}function Ff(){return Nf(If.current)}function Bf(e){Nf(Df.current);var t,n,r,o=Nf(If.current),a=(t=o,n=e.type,{namespace:Dt((r=t).namespace,n),ancestorInfo:tu(r.ancestorInfo,n)});o!==a&&(uc(Cf,e,e),uc(If,a,e))}function Uf(e){Cf.current===e&&(lc(If,e),lc(Cf,e))}var zf=sc(0);function Vf(e,t){return 0!==(e&t)}function Hf(e){return 1&e}function qf(e,t){return 1&e|t}function Gf(e,t){uc(zf,t,e)}function Wf(e){lc(zf,e)}function Yf(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Kf(e){for(var t=e;null!==t;){if(t.tag===c){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||Ru(r)||Iu(r))return t}}else if(t.tag===m&&void 0!==t.memoizedProps.revealOrder){if(0!==(t.flags&nr))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xf=[];function Qf(){for(var e=0;e<Xf.length;e++){Xf[e]._workInProgressVersionPrimary=null}Xf.length=0}function Zf(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}var Jf,ep,tp=n.ReactCurrentDispatcher,np=n.ReactCurrentBatchConfig;Jf=new Set;var rp=0,op=null,ap=null,ip=null,sp=!1,lp=!1,up=0,cp=0,dp=null,fp=null,pp=-1,hp=!1;function mp(){var e=dp;null===fp?fp=[e]:fp.push(e)}function gp(){var e=dp;null!==fp&&(pp++,fp[pp]!==e&&function(e){var t=je(op);if(!Jf.has(t)&&(Jf.add(t),null!==fp)){for(var n="",r=30,o=0;o<=pp;o++){for(var i=fp[o],s=o===pp?e:i,l=o+1+". "+i;l.length<r;)l+=" ";n+=l+=s+"\n"}a("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function bp(e){null==e||vt(e)||a("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",dp,typeof e)}function yp(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function _p(e,t){if(hp)return!1;if(null===t)return a("%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.",dp),!1;e.length!==t.length&&a("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",dp,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Os(e[n],t[n]))return!1;return!0}function vp(e,t,n,r,o,i){rp=i,op=t,fp=null!==e?e._debugHookTypes:null,pp=-1,hp=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?tp.current=kh:tp.current=null!==fp?Eh:Th;var s=n(r,o);if(lp){var l=0;do{if(lp=!1,up=0,l>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,hp=!1,ap=null,ip=null,t.updateQueue=null,pp=-1,tp.current=Ph,s=n(r,o)}while(lp)}tp.current=xh,t._debugHookTypes=fp;var u=null!==ap&&null!==ap.next;if(rp=0,op=null,ap=null,ip=null,dp=null,fp=null,pp=-1,null!==e&&(e.flags&Sr)!==(t.flags&Sr)&&1&e.mode&&a("Internal React error: Expected static flag was missing. Please notify the React team."),sp=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return s}function wp(){var e=0!==up;return up=0,e}function Sp(e,t,n){t.updateQueue=e.updateQueue,0!==(t.mode&bo)?t.flags&=-50333701:t.flags&=-2053,e.lanes=_a(e.lanes,n)}function xp(){if(tp.current=xh,sp){for(var e=op.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}sp=!1}rp=0,op=null,ap=null,ip=null,fp=null,pp=-1,dp=null,hh=!1,lp=!1,up=0}function Tp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ip?op.memoizedState=ip=e:ip=ip.next=e,ip}function Ep(){var e,t;if(null===ap){var n=op.alternate;e=null!==n?n.memoizedState:null}else e=ap.next;if(null!==(t=null===ip?op.memoizedState:ip.next))t=(ip=t).next,ap=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(ap=e).memoizedState,baseState:ap.baseState,baseQueue:ap.baseQueue,queue:ap.queue,next:null};null===ip?op.memoizedState=ip=r:ip=ip.next=r}return ip}function kp(e,t){return"function"==typeof t?t(e):t}function Pp(e,t,n){var r,o=Tp();r=void 0!==n?n(t):t,o.memoizedState=o.baseState=r;var a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};o.queue=a;var i=a.dispatch=bh.bind(null,op,a);return[o.memoizedState,i]}function Op(e,t,n){var r=Ep(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var i=ap,s=i.baseQueue,l=o.pending;if(null!==l){if(null!==s){var u=s.next,c=l.next;s.next=c,l.next=u}i.baseQueue!==s&&a("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=s=l,o.pending=null}if(null!==s){var d=s.next,f=i.baseState,p=null,h=null,m=null,g=d;do{var b=g.lane;if(ba(rp,b)){if(null!==m){var y={lane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};m=m.next=y}if(g.hasEagerState)f=g.eagerState;else f=e(f,g.action)}else{var _={lane:b,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};null===m?(h=m=_,p=f):m=m.next=_,op.lanes=ya(op.lanes,b),n_(b)}g=g.next}while(null!==g&&g!==d);null===m?p=f:m.next=h,Os(f,r.memoizedState)||mg(),r.memoizedState=f,r.baseState=p,r.baseQueue=m,o.lastRenderedState=f}var v=o.interleaved;if(null!==v){var w=v;do{var S=w.lane;op.lanes=ya(op.lanes,S),n_(S),w=w.next}while(w!==v)}else null===s&&(o.lanes=0);var x=o.dispatch;return[r.memoizedState,x]}function Ap(e,t,n){var r=Ep(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var a=o.dispatch,i=o.pending,s=r.memoizedState;if(null!==i){o.pending=null;var l=i.next,u=l;do{s=e(s,u.action),u=u.next}while(u!==l);Os(s,r.memoizedState)||mg(),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),o.lastRenderedState=s}return[s,a]}function $p(e,t,n){var r,o=op,i=Tp();if(yd()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),ep||r!==n()&&(a("The result of getServerSnapshot should be cached to avoid an infinite loop"),ep=!0)}else{if(r=t(),!ep){var s=t();Os(r,s)||(a("The result of getSnapshot should be cached to avoid an infinite loop"),ep=!0)}var l=My();if(null===l)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ua(0,rp)||Ip(o,t,r)}i.memoizedState=r;var u={value:r,getSnapshot:t};return i.queue=u,qp(Dp.bind(null,o,u,e),[e]),o.flags|=ir,Bp(9,Cp.bind(null,o,u,r,t),void 0,null),r}function Rp(e,t,n){var r=op,o=Ep(),i=t();if(!ep){var s=t();Os(i,s)||(a("The result of getSnapshot should be cached to avoid an infinite loop"),ep=!0)}var l=o.memoizedState,u=!Os(l,i);u&&(o.memoizedState=i,mg());var c=o.queue;if(Gp(Dp.bind(null,r,c,e),[e]),c.getSnapshot!==t||u||null!==ip&&1&ip.memoizedState.tag){r.flags|=ir,Bp(9,Cp.bind(null,r,c,i,t),void 0,null);var d=My();if(null===d)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ua(0,rp)||Ip(r,t,i)}return i}function Ip(e,t,n){e.flags|=ur;var r={getSnapshot:t,value:n},o=op.updateQueue;if(null===o)o={lastEffect:null,stores:null},op.updateQueue=o,o.stores=[r];else{var a=o.stores;null===a?o.stores=[r]:a.push(r)}}function Cp(e,t,n,r){t.value=n,t.getSnapshot=r,Np(t)&&Mp(e)}function Dp(e,t,n){return n(function(){Np(t)&&Mp(e)})}function Np(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Os(n,r)}catch(o){return!0}}function Mp(e){var t=df(e,So);null!==t&&By(t,e,So,ea)}function Lp(e){var t=Tp();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kp,lastRenderedState:e};t.queue=n;var r=n.dispatch=yh.bind(null,op,n);return[t.memoizedState,r]}function jp(e){return Op(kp)}function Fp(e){return Ap(kp)}function Bp(e,t,n,r){var o={tag:e,create:t,destroy:n,deps:r,next:null},a=op.updateQueue;if(null===a)a={lastEffect:null,stores:null},op.updateQueue=a,a.lastEffect=o.next=o;else{var i=a.lastEffect;if(null===i)a.lastEffect=o.next=o;else{var s=i.next;i.next=o,o.next=s,a.lastEffect=o}}return o}function Up(e){var t={current:e};return Tp().memoizedState=t,t}function zp(e){return Ep().memoizedState}function Vp(e,t,n,r){var o=Tp(),a=void 0===r?null:r;op.flags|=e,o.memoizedState=Bp(1|t,n,void 0,a)}function Hp(e,t,n,r){var o=Ep(),a=void 0===r?null:r,i=void 0;if(null!==ap){var s=ap.memoizedState;if(i=s.destroy,null!==a)if(_p(a,s.deps))return void(o.memoizedState=Bp(t,n,i,a))}op.flags|=e,o.memoizedState=Bp(1|t,n,i,a)}function qp(e,t){return 0!==(op.mode&bo)?Vp(41945088,8,e,t):Vp(8390656,8,e,t)}function Gp(e,t){return Hp(ir,8,e,t)}function Wp(e,t){return Vp(4,2,e,t)}function Yp(e,t){return Hp(4,2,e,t)}function Kp(e,t){var n=4;return n|=mr,0!==(op.mode&bo)&&(n|=gr),Vp(n,4,e,t)}function Xp(e,t){return Hp(4,4,e,t)}function Qp(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var o=t;o.hasOwnProperty("current")||a("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var i=e();return o.current=i,function(){o.current=null}}}function Zp(e,t,n){"function"!=typeof t&&a("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,o=4;return o|=mr,0!==(op.mode&bo)&&(o|=gr),Vp(o,4,Qp.bind(null,t,e),r)}function Jp(e,t,n){"function"!=typeof t&&a("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Hp(4,4,Qp.bind(null,t,e),r)}function eh(e,t){}var th=eh;function nh(e,t){var n=void 0===t?null:t;return Tp().memoizedState=[e,n],e}function rh(e,t){var n=Ep(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&_p(r,o[1])))return o[0];return n.memoizedState=[e,r],e}function oh(e,t){var n=Tp(),r=void 0===t?null:t,o=e();return n.memoizedState=[o,r],o}function ah(e,t){var n=Ep(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&_p(r,o[1])))return o[0];var a=e();return n.memoizedState=[a,r],a}function ih(e){return Tp().memoizedState=e,e}function sh(e){return uh(Ep(),ap.memoizedState,e)}function lh(e){var t=Ep();return null===ap?(t.memoizedState=e,e):uh(t,ap.memoizedState,e)}function uh(e,t,n){if(!(0===(rp&(So|To|ko)))){if(!Os(n,t)){var r=da();op.lanes=ya(op.lanes,r),n_(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,mg()),e.memoizedState=n,n}function ch(e,t,n){var r,a,i=La();ja((a=Ca,0!==(r=i)&&r<a?r:a)),e(!0);var s=np.transition;np.transition={};var l=np.transition;np.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(ja(i),np.transition=s,null===s&&l._updatedFibers)l._updatedFibers.size>10&&o("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."),l._updatedFibers.clear()}}function dh(){var e=Lp(!1),t=e[0],n=e[1],r=ch.bind(null,n);return Tp().memoizedState=r,[t,r]}function fh(){return[jp()[0],Ep().memoizedState]}function ph(){return[Fp()[0],Ep().memoizedState]}var hh=!1;function mh(){var e,t=Tp(),n=My().identifierPrefix;if(yd()){e=":"+n+"R"+Uc();var r=up++;r>0&&(e+="H"+r.toString(32)),e+=":"}else{e=":"+n+"r"+(cp++).toString(32)+":"}return t.memoizedState=e,e}function gh(){return Ep().memoizedState}function bh(e,t,n){"function"==typeof arguments[3]&&a("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=jy(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_h(e))vh(t,o);else{var i=cf(e,t,o,r);if(null!==i)By(i,e,r,Ly()),wh(i,t,r)}Sh(e,r)}function yh(e,t,n){"function"==typeof arguments[3]&&a("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=jy(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_h(e))vh(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)){var s=t.lastRenderedReducer;if(null!==s){var l;l=tp.current,tp.current=Ah;try{var u=t.lastRenderedState,c=s(u,n);if(o.hasEagerState=!0,o.eagerState=c,Os(c,u))return void function(e,t,n){var r=t.interleaved;null===r?(n.next=n,uf(t)):(n.next=r.next,r.next=n),t.interleaved=n}(0,t,o)}catch(f){}finally{tp.current=l}}}var d=cf(e,t,o,r);if(null!==d)By(d,e,r,Ly()),wh(d,t,r)}Sh(e,r)}function _h(e){var t=e.alternate;return e===op||null!==t&&t===op}function vh(e,t){lp=sp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wh(e,t,n){if(ca(n)){var r=t.lanes,o=ya(r=va(r,e.pendingLanes),n);t.lanes=o,Ta(e,o)}}function Sh(e,t,n){go(e,t)}var xh={readContext:sf,useCallback:yp,useContext:yp,useEffect:yp,useImperativeHandle:yp,useInsertionEffect:yp,useLayoutEffect:yp,useMemo:yp,useReducer:yp,useRef:yp,useState:yp,useDebugValue:yp,useDeferredValue:yp,useTransition:yp,useMutableSource:yp,useSyncExternalStore:yp,useId:yp,unstable_isNewReconciler:_},Th=null,Eh=null,kh=null,Ph=null,Oh=null,Ah=null,$h=null,Rh=function(){a("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().")},Ih=function(){a("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")};Th={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",mp(),bp(t),nh(e,t)},useContext:function(e){return dp="useContext",mp(),sf(e)},useEffect:function(e,t){return dp="useEffect",mp(),bp(t),qp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",mp(),bp(n),Zp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",mp(),bp(t),Wp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",mp(),bp(t),Kp(e,t)},useMemo:function(e,t){dp="useMemo",mp(),bp(t);var n=tp.current;tp.current=Oh;try{return oh(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",mp();var r=tp.current;tp.current=Oh;try{return Pp(e,t,n)}finally{tp.current=r}},useRef:function(e){return dp="useRef",mp(),Up(e)},useState:function(e){dp="useState",mp();var t=tp.current;tp.current=Oh;try{return Lp(e)}finally{tp.current=t}},useDebugValue:function(e,t){dp="useDebugValue",mp()},useDeferredValue:function(e){return dp="useDeferredValue",mp(),ih(e)},useTransition:function(){return dp="useTransition",mp(),dh()},useMutableSource:function(e,t,n){dp="useMutableSource",mp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",mp(),$p(e,t,n)},useId:function(){return dp="useId",mp(),mh()},unstable_isNewReconciler:_},Eh={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",gp(),nh(e,t)},useContext:function(e){return dp="useContext",gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",gp(),qp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",gp(),Zp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",gp(),Wp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",gp(),Kp(e,t)},useMemo:function(e,t){dp="useMemo",gp();var n=tp.current;tp.current=Oh;try{return oh(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",gp();var r=tp.current;tp.current=Oh;try{return Pp(e,t,n)}finally{tp.current=r}},useRef:function(e){return dp="useRef",gp(),Up(e)},useState:function(e){dp="useState",gp();var t=tp.current;tp.current=Oh;try{return Lp(e)}finally{tp.current=t}},useDebugValue:function(e,t){dp="useDebugValue",gp()},useDeferredValue:function(e){return dp="useDeferredValue",gp(),ih(e)},useTransition:function(){return dp="useTransition",gp(),dh()},useMutableSource:function(e,t,n){dp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",gp(),$p(e,t,n)},useId:function(){return dp="useId",gp(),mh()},unstable_isNewReconciler:_},kh={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",gp(),rh(e,t)},useContext:function(e){return dp="useContext",gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",gp();var n=tp.current;tp.current=Ah;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",gp();var r=tp.current;tp.current=Ah;try{return Op(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",gp(),zp()},useState:function(e){dp="useState",gp();var t=tp.current;tp.current=Ah;try{return jp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",gp(),sh(e)},useTransition:function(){return dp="useTransition",gp(),fh()},useMutableSource:function(e,t,n){dp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",gp(),Rp(e,t)},useId:function(){return dp="useId",gp(),gh()},unstable_isNewReconciler:_},Ph={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",gp(),rh(e,t)},useContext:function(e){return dp="useContext",gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",gp();var n=tp.current;tp.current=$h;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",gp();var r=tp.current;tp.current=$h;try{return Ap(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",gp(),zp()},useState:function(e){dp="useState",gp();var t=tp.current;tp.current=$h;try{return Fp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",gp(),lh(e)},useTransition:function(){return dp="useTransition",gp(),ph()},useMutableSource:function(e,t,n){dp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",gp(),Rp(e,t)},useId:function(){return dp="useId",gp(),gh()},unstable_isNewReconciler:_},Oh={readContext:function(e){return Rh(),sf(e)},useCallback:function(e,t){return dp="useCallback",Ih(),mp(),nh(e,t)},useContext:function(e){return dp="useContext",Ih(),mp(),sf(e)},useEffect:function(e,t){return dp="useEffect",Ih(),mp(),qp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",Ih(),mp(),Zp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",Ih(),mp(),Wp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",Ih(),mp(),Kp(e,t)},useMemo:function(e,t){dp="useMemo",Ih(),mp();var n=tp.current;tp.current=Oh;try{return oh(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",Ih(),mp();var r=tp.current;tp.current=Oh;try{return Pp(e,t,n)}finally{tp.current=r}},useRef:function(e){return dp="useRef",Ih(),mp(),Up(e)},useState:function(e){dp="useState",Ih(),mp();var t=tp.current;tp.current=Oh;try{return Lp(e)}finally{tp.current=t}},useDebugValue:function(e,t){dp="useDebugValue",Ih(),mp()},useDeferredValue:function(e){return dp="useDeferredValue",Ih(),mp(),ih(e)},useTransition:function(){return dp="useTransition",Ih(),mp(),dh()},useMutableSource:function(e,t,n){dp="useMutableSource",Ih(),mp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",Ih(),mp(),$p(e,t,n)},useId:function(){return dp="useId",Ih(),mp(),mh()},unstable_isNewReconciler:_},Ah={readContext:function(e){return Rh(),sf(e)},useCallback:function(e,t){return dp="useCallback",Ih(),gp(),rh(e,t)},useContext:function(e){return dp="useContext",Ih(),gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",Ih(),gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",Ih(),gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",Ih(),gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",Ih(),gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",Ih(),gp();var n=tp.current;tp.current=Ah;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",Ih(),gp();var r=tp.current;tp.current=Ah;try{return Op(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",Ih(),gp(),zp()},useState:function(e){dp="useState",Ih(),gp();var t=tp.current;tp.current=Ah;try{return jp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",Ih(),gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",Ih(),gp(),sh(e)},useTransition:function(){return dp="useTransition",Ih(),gp(),fh()},useMutableSource:function(e,t,n){dp="useMutableSource",Ih(),gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",Ih(),gp(),Rp(e,t)},useId:function(){return dp="useId",Ih(),gp(),gh()},unstable_isNewReconciler:_},$h={readContext:function(e){return Rh(),sf(e)},useCallback:function(e,t){return dp="useCallback",Ih(),gp(),rh(e,t)},useContext:function(e){return dp="useContext",Ih(),gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",Ih(),gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",Ih(),gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",Ih(),gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",Ih(),gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",Ih(),gp();var n=tp.current;tp.current=Ah;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",Ih(),gp();var r=tp.current;tp.current=Ah;try{return Ap(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",Ih(),gp(),zp()},useState:function(e){dp="useState",Ih(),gp();var t=tp.current;tp.current=Ah;try{return Fp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",Ih(),gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",Ih(),gp(),lh(e)},useTransition:function(){return dp="useTransition",Ih(),gp(),ph()},useMutableSource:function(e,t,n){dp="useMutableSource",Ih(),gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",Ih(),gp(),Rp(e,t)},useId:function(){return dp="useId",Ih(),gp(),gh()},unstable_isNewReconciler:_};var Ch=t.unstable_now,Dh=0,Nh=-1,Mh=-1,Lh=-1,jh=!1,Fh=!1;function Bh(){return jh}function Uh(){return Dh}function zh(){Dh=Ch()}function Vh(e){Mh=Ch(),e.actualStartTime<0&&(e.actualStartTime=Ch())}function Hh(e){Mh=-1}function qh(e,t){if(Mh>=0){var n=Ch()-Mh;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Mh=-1}}function Gh(e){if(Nh>=0){var t=Ch()-Nh;Nh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:return void(n.stateNode.effectDuration+=t);case u:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function Wh(e){if(Lh>=0){var t=Ch()-Lh;Lh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case u:var o=n.stateNode;return void(null!==o&&(o.passiveEffectDuration+=t))}n=n.return}}}function Yh(){Nh=Ch()}function Kh(){Lh=Ch()}function Xh(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Qh(e,t){if(e&&e.defaultProps){var n=we({},t),r=e.defaultProps;for(var o in r)void 0===n[o]&&(n[o]=r[o]);return n}return t}var Zh,Jh,em,tm,nm,rm,om,am,im,sm,lm,um={};Zh=new Set,Jh=new Set,em=new Set,tm=new Set,am=new Set,nm=new Set,im=new Set,sm=new Set,lm=new Set;var cm=new Set;function dm(e,t,n,r){var o=e.memoizedState,a=n(r,o);if(8&e.mode){Qr(!0);try{a=n(r,o)}finally{Qr(!1)}}rm(t,a);var i=null==a?o:we({},o,a);(e.memoizedState=i,0===e.lanes)&&(e.updateQueue.baseState=i)}om=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;cm.has(n)||(cm.add(n),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},rm=function(e,t){if(void 0===t){var n=Me(e)||"Component";nm.has(n)||(nm.add(n),a("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(um,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(um);var fm={isMounted:function(e){var t=xr.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||a("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",je(n)||"A component"),r._warnedAboutRefsInRender=!0}var o=er(e);return!!o&&Tr(o)===o},enqueueSetState:function(e,t,n){var r=er(e),o=Ly(),a=jy(r),i=wf(o,a);i.payload=t,null!=n&&(om(n,"setState"),i.callback=n);var s=Sf(r,i,a);null!==s&&(By(s,r,a,o),xf(s,r,a)),go(r,a)},enqueueReplaceState:function(e,t,n){var r=er(e),o=Ly(),a=jy(r),i=wf(o,a);i.tag=1,i.payload=t,null!=n&&(om(n,"replaceState"),i.callback=n);var s=Sf(r,i,a);null!==s&&(By(s,r,a,o),xf(s,r,a)),go(r,a)},enqueueForceUpdate:function(e,t){var n=er(e),r=Ly(),o=jy(n),a=wf(r,o);a.tag=bf,null!=t&&(om(t,"forceUpdate"),a.callback=t);var i=Sf(n,a,o);null!==i&&(By(i,n,o,r),xf(i,n,o)),function(e,t){null!==Yr&&"function"==typeof Yr.markForceUpdateScheduled&&Yr.markForceUpdateScheduled(e,t)}(n,o)}};function pm(e,t,n,r,o,i,s){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){var u=l.shouldComponentUpdate(r,i,s);if(8&e.mode){Qr(!0);try{u=l.shouldComponentUpdate(r,i,s)}finally{Qr(!1)}}return void 0===u&&a("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Me(t)||"Component"),u}return!t.prototype||!t.prototype.isPureReactComponent||(!As(n,r)||!As(o,i))}function hm(e,t){var n;t.updater=fm,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=um}function mm(e,t,n){var r=!1,o=cc,i=cc,s=t.contextType;if("contextType"in t&&(!(null===s||void 0!==s&&s.$$typeof===ae&&void 0===s._context)&&!sm.has(t))){sm.add(t);var l="";l=void 0===s?" 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.":"object"!=typeof s?" However, it is set to a "+typeof s+".":s.$$typeof===oe?" Did you accidentally pass the Context.Provider instead?":void 0!==s._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",a("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Me(t)||"Component",l)}if("object"==typeof s&&null!==s)i=sf(s);else{o=hc(0,t,!0);var u=t.contextTypes;i=(r=null!=u)?gc(e,o):cc}var c=new t(n,i);if(8&e.mode){Qr(!0);try{c=new t(n,i)}finally{Qr(!1)}}var d=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(hm(e,c),"function"==typeof t.getDerivedStateFromProps&&null===d){var f=Me(t)||"Component";Jh.has(f)||(Jh.add(f),a("`%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.",f,null===c.state?"null":"undefined",f))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,m=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?m="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(m="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==m){var g=Me(t)||"Component",b="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";tm.has(g)||(tm.add(g),a("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",g,b,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==m?"\n "+m:""))}}return r&&mc(e,o,i),c}function gm(e,t,n,r){var o=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==o){var i=je(e)||"Component";Zh.has(i)||(Zh.add(i),a("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),fm.enqueueReplaceState(t,t.state,null)}}function bm(e,t,n,r){!function(e,t,n){var r=e.stateNode,o=Me(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||a("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?",o),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&a("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.",o),r.propTypes&&a("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),r.contextType&&a("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),!t.childContextTypes||lm.has(t)||8&e.mode||(lm.add(t),a("%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead\n\n.Learn more about this warning here: https://reactjs.org/link/legacy-context",o)),!t.contextTypes||lm.has(t)||8&e.mode||(lm.add(t),a("%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)),r.contextTypes&&a("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!im.has(t)&&(im.add(t),a("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),"function"==typeof r.componentShouldUpdate&&a("%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.",o),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&a("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Me(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&a("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),"function"==typeof r.componentDidReceiveProps&&a("%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().",o),"function"==typeof r.componentWillRecieveProps&&a("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),"function"==typeof r.UNSAFE_componentWillRecieveProps&&a("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var i=r.props!==n;void 0!==r.props&&i&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),r.defaultProps&&a("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||em.has(t)||(em.add(t),a("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Me(t))),"function"==typeof r.getDerivedStateFromProps&&a("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof r.getDerivedStateFromError&&a("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof t.getSnapshotBeforeUpdate&&a("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var s=r.state;s&&("object"!=typeof s||vt(s))&&a("%s.state: must be set to an object or null",o),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&a("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}(e,t,n);var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},_f(e);var i=t.contextType;if("object"==typeof i&&null!==i)o.context=sf(i);else{var s=hc(0,t,!0);o.context=gc(e,s)}if(o.state===n){var l=Me(t)||"Component";am.has(l)||(am.add(l),a("%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.",l))}8&e.mode&&wd.recordLegacyContextWarning(e,o),wd.recordUnsafeLifecycleWarnings(e,o),o.state=e.memoizedState;var u=t.getDerivedStateFromProps;if("function"==typeof u&&(dm(e,t,u,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(a("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",je(e)||"Component"),fm.enqueueReplaceState(t,t.state,null))}(e,o),kf(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount){var c=4;c|=mr,0!==(e.mode&bo)&&(c|=gr),e.flags|=c}}function ym(e,t){return{value:e,source:t,stack:De(t),digest:null}}function _m(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function vm(e,t){try{0;var n=t.value,r=t.source,o=t.stack,a=null!==o?o:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var i=r?je(r):null,s=(i?"The above error occurred in the <"+i+"> component:":"The above error occurred in one of your React components:")+"\n"+a+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(je(e)||"Anonymous")+".");console.error(s)}catch(rw){setTimeout(function(){throw rw})}}var wm="function"==typeof WeakMap?WeakMap:Map;function Sm(e,t,n){var r=wf(ea,n);r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){f_(o),vm(e,t)},r}function xm(e,t,n){var r=wf(ea,n);r.tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var i=t.value;r.payload=function(){return o(i)},r.callback=function(){F_(e),vm(e,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(r.callback=function(){var n;F_(e),vm(e,t),"function"!=typeof o&&(n=this,null===_y?_y=new Set([n]):_y.add(n));var r=t.value,i=t.stack;this.componentDidCatch(r,{componentStack:null!==i?i:""}),"function"!=typeof o&&(ga(e.lanes,So)||a("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",je(e)||"Unknown"))}),r}function Tm(e,t,n){var r,o=e.pingCache;if(null===o?(o=e.pingCache=new wm,r=new Set,o.set(t,r)):void 0===(r=o.get(t))&&(r=new Set,o.set(t,r)),!r.has(n)){r.add(n);var a=m_.bind(null,e,t,n);Xr&&k_(e,n),t.then(a,a)}}function Em(e){var t=e;do{if(t.tag===c&&Yf(t))return t;t=t.return}while(null!==t);return null}function km(e,t,n,r,o){if(!(1&e.mode)){if(e===t)e.flags|=dr;else{if(e.flags|=nr,n.flags|=fr,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=p;else{var a=wf(ea,So);a.tag=bf,Sf(n,a,So)}n.lanes=ya(n.lanes,So)}return e}return e.flags|=dr,e.lanes=o,e}function Pm(e,t,n,r,o){if(n.flags|=cr,Xr&&k_(e,o),null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=r;!function(e){var t=e.tag;if(!(1&e.mode||0!==t&&t!==l&&t!==f)){var n=e.alternate;n?(e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.lanes=n.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),yd()&&1&n.mode&&Jc();var i=Em(t);if(null!==i)return i.flags&=-257,km(i,t,n,0,o),1&i.mode&&Tm(e,a,o),void function(e,t,n){var r=e.updateQueue;if(null===r){var o=new Set;o.add(n),e.updateQueue=o}else r.add(n)}(i,0,a);if(0===(o&So))return Tm(e,a,o),void r_();r=new Error("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.")}else if(yd()&&1&n.mode){Jc();var s=Em(t);if(null!==s)return 0===(s.flags&dr)&&(s.flags|=rr),km(s,t,n,0,o),void _d(ym(r,n))}!function(e){ry!==Yb&&(ry=Gb);null===ly?ly=[e]:ly.push(e)}(r=ym(r,n));var u=t;do{switch(u.tag){case 3:var c=r;u.flags|=dr;var d=pa(o);return u.lanes=ya(u.lanes,d),void Tf(u,Sm(u,c,d));case 1:var p=r,h=u.type,m=u.stateNode;if(0===(u.flags&nr)&&("function"==typeof h.getDerivedStateFromError||null!==m&&"function"==typeof m.componentDidCatch&&!d_(m))){u.flags|=dr;var g=pa(o);return u.lanes=ya(u.lanes,g),void Tf(u,xm(u,p,g))}}u=u.return}while(null!==u)}var Om,Am,$m,Rm,Im,Cm,Dm,Nm,Mm,Lm=n.ReactCurrentOwner,jm=!1;function Fm(e,t,n,r){t.child=null===e?Hd(t,null,n,r):Vd(t,e.child,n,r)}function Bm(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&nc(a,r,"prop",Me(n))}var i,s,l=n.render,u=t.ref;if(af(t,o),to(t),Lm.current=t,Ge(!0),i=vp(e,t,l,r,u,o),s=wp(),8&t.mode){Qr(!0);try{i=vp(e,t,l,r,u,o),s=wp()}finally{Qr(!1)}}return Ge(!1),no(),null===e||jm?(yd()&&s&&Hc(t),t.flags|=1,Fm(e,t,i,o),t.child):(Sp(e,t,o),bg(e,t,o))}function Um(e,t,n,r,o){if(null===e){var i=n.type;if(function(e){return"function"==typeof e&&!Y_(e)&&void 0===e.defaultProps}(i)&&null===n.compare&&void 0===n.defaultProps){var s;return s=N_(i),t.tag=f,t.type=s,Qm(t,i),zm(e,t,s,r,o)}var l=i.propTypes;if(l&&nc(l,r,"prop",Me(i)),void 0!==n.defaultProps){var u=Me(i)||"Unknown";Mm[u]||(a("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Mm[u]=!0)}var c=Q_(n.type,null,r,t,t.mode,o);return c.ref=t.ref,c.return=t,t.child=c,c}var d=n.type,p=d.propTypes;p&&nc(p,r,"prop",Me(d));var h=e.child;if(!yg(e,o)){var m=h.memoizedProps,g=n.compare;if((g=null!==g?g:As)(m,r)&&e.ref===t.ref)return bg(e,t,o)}t.flags|=1;var b=K_(h,r);return b.ref=t.ref,b.return=t,t.child=b,b}function zm(e,t,n,r,o){if(t.type!==t.elementType){var a=t.elementType;if(a.$$typeof===ce){var i=a,s=i._payload,l=i._init;try{a=l(s)}catch(d){a=null}var u=a&&a.propTypes;u&&nc(u,r,"prop",Me(a))}}if(null!==e){var c=e.memoizedProps;if(As(c,r)&&e.ref===t.ref&&t.type===e.type){if(jm=!1,t.pendingProps=r=c,!yg(e,o))return t.lanes=e.lanes,bg(e,t,o);0!==(e.flags&fr)&&(jm=!0)}}return qm(e,t,n,r,o)}function Vm(e,t,n){var r,o=t.pendingProps,a=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(1&t.mode){if(!ga(n,Zo)){var s;if(null!==i)s=ya(i.baseLanes,n);else s=n;t.lanes=t.childLanes=Zo;var l={baseLanes:s,cachePool:null,transitions:null};return t.memoizedState=l,t.updateQueue=null,Xy(t,s),null}var u={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=u,Xy(t,null!==i?i.baseLanes:n)}else{var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,Xy(t,n)}else null!==i?(r=ya(i.baseLanes,n),t.memoizedState=null):r=n,Xy(t,r);return Fm(e,t,a,n),t.child}function Hm(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=or,t.flags|=hr)}function qm(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&nc(a,r,"prop",Me(n))}var i,s,l;if(i=gc(t,hc(0,n,!0)),af(t,o),to(t),Lm.current=t,Ge(!0),s=vp(e,t,n,r,i,o),l=wp(),8&t.mode){Qr(!0);try{s=vp(e,t,n,r,i,o),l=wp()}finally{Qr(!1)}}return Ge(!1),no(),null===e||jm?(yd()&&l&&Hc(t),t.flags|=1,Fm(e,t,s,o),t.child):(Sp(e,t,o),bg(e,t,o))}function Gm(e,t,n,r,o){switch(yv(t)){case!1:var i=t.stateNode,s=new(0,t.type)(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,s,null);break;case!0:t.flags|=nr,t.flags|=dr;var l=new Error("Simulated error coming from DevTools"),u=pa(o);t.lanes=ya(t.lanes,u),Tf(t,xm(t,ym(l,t),u))}if(t.type!==t.elementType){var c=n.propTypes;c&&nc(c,r,"prop",Me(n))}var d,f;yc(n)?(d=!0,xc(t)):d=!1,af(t,o),null===t.stateNode?(gg(e,t),mm(t,n,r),bm(t,n,r,o),f=!0):f=null===e?function(e,t,n,r){var o=e.stateNode,a=e.memoizedProps;o.props=a;var i=o.context,s=t.contextType,l=cc;l="object"==typeof s&&null!==s?sf(s):gc(e,hc(0,t,!0));var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||a===n&&i===l||gm(e,o,n,l),Of();var d=e.memoizedState,f=o.state=d;if(kf(e,n,o,r),f=e.memoizedState,a===n&&d===f&&!bc()&&!Af()){if("function"==typeof o.componentDidMount){var p=4;p|=mr,0!==(e.mode&bo)&&(p|=gr),e.flags|=p}return!1}"function"==typeof u&&(dm(e,t,u,n),f=e.memoizedState);var h=Af()||pm(e,t,a,n,d,f,l);if(h){if(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount){var m=4;m|=mr,0!==(e.mode&bo)&&(m|=gr),e.flags|=m}}else{if("function"==typeof o.componentDidMount){var g=4;g|=mr,0!==(e.mode&bo)&&(g|=gr),e.flags|=g}e.memoizedProps=n,e.memoizedState=f}return o.props=n,o.state=f,o.context=l,h}(t,n,r,o):function(e,t,n,r,o){var a=t.stateNode;vf(e,t);var i=t.memoizedProps,s=t.type===t.elementType?i:Qh(t.type,i);a.props=s;var l=t.pendingProps,u=a.context,c=n.contextType,d=cc;d="object"==typeof c&&null!==c?sf(c):gc(t,hc(0,n,!0));var f=n.getDerivedStateFromProps,p="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||i===l&&u===d||gm(t,a,r,d),Of();var h=t.memoizedState,m=a.state=h;if(kf(t,r,a,o),m=t.memoizedState,i===l&&h===m&&!bc()&&!Af())return"function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=ar)),!1;"function"==typeof f&&(dm(t,n,f,r),m=t.memoizedState);var g=Af()||pm(t,n,s,r,h,m,d)||v;return g?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,d),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,d)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=ar)):("function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=ar)),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=d,g}(e,t,n,r,o);var p=Wm(e,t,n,f,d,o),h=t.stateNode;return f&&h.props!==r&&(Cm||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",je(t)||"a component"),Cm=!0),p}function Wm(e,t,n,r,o,a){Hm(e,t);var i=0!==(t.flags&nr);if(!r&&!i)return o&&Tc(t,n,!1),bg(e,t,a);var s,l=t.stateNode;if(Lm.current=t,i&&"function"!=typeof n.getDerivedStateFromError)s=null,Hh();else{if(to(t),Ge(!0),s=l.render(),8&t.mode){Qr(!0);try{l.render()}finally{Qr(!1)}}Ge(!1),no()}return t.flags|=1,null!==e&&i?function(e,t,n,r){t.child=Vd(t,e.child,null,r),t.child=Vd(t,null,n,r)}(e,t,s,a):Fm(e,t,s,a),t.memoizedState=l.state,o&&Tc(t,n,!0),t.child}function Ym(e){var t=e.stateNode;t.pendingContext?wc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wc(e,t.context,!1),Lf(e,t.containerInfo)}function Km(e,t,n,r,o){return gd(),_d(o),t.flags|=rr,Fm(e,t,n,r),t.child}function Xm(e,t,n,r){gg(e,t);var o=t.pendingProps,a=n,i=a._payload,s=(0,a._init)(i);t.type=s;var u=t.tag=function(e){if("function"==typeof e)return Y_(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===ie)return l;if(t===ue)return d}return 2}(s),c=Qh(s,o);switch(u){case 0:return Qm(t,s),t.type=s=N_(s),qm(null,t,s,c,r);case 1:return t.type=s=M_(s),Gm(null,t,s,c,r);case l:return t.type=s=L_(s),Bm(null,t,s,c,r);case d:if(t.type!==t.elementType){var f=s.propTypes;f&&nc(f,c,"prop",Me(s))}return Um(null,t,s,Qh(s.type,c),r)}var p="";throw null!==s&&"object"==typeof s&&s.$$typeof===ce&&(p=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+s+". Lazy element type must resolve to a class or function."+p)}function Qm(e,t){if(t&&t.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=ze();r&&(n+="\n\nCheck the render method of `"+r+"`.");var o=r||"",i=e._debugSource;i&&(o=i.fileName+":"+i.lineNumber),Im[o]||(Im[o]=!0,a("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(void 0!==t.defaultProps){var s=Me(t)||"Unknown";Mm[s]||(a("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",s),Mm[s]=!0)}if("function"==typeof t.getDerivedStateFromProps){var l=Me(t)||"Unknown";Rm[l]||(a("%s: Function components do not support getDerivedStateFromProps.",l),Rm[l]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var u=Me(t)||"Unknown";$m[u]||(a("%s: Function components do not support contextType.",u),$m[u]=!0)}}Om={},Am={},$m={},Rm={},Im={},Cm=!1,Dm={},Nm={},Mm={};var Zm={dehydrated:null,treeContext:null,retryLane:0};function Jm(e){return{baseLanes:e,cachePool:null,transitions:null}}function eg(e,t,n){var r=t.pendingProps;_v(t)&&(t.flags|=nr);var o=zf.current,i=!1,s=0!==(t.flags&nr);if(s||function(e,t){return(null===t||null!==t.memoizedState)&&Vf(e,2)}(o,e)?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o=o|1),Gf(t,o=Hf(o)),null===e){ud(t);var l=t.memoizedState;if(null!==l){var u=l.dehydrated;if(null!==u)return function(e,t){1&e.mode?Iu(t)?e.lanes=Eo:e.lanes=Zo:(a("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=So);return null}(t,u)}var c=r.children,d=r.fallback;if(i){var f=function(e,t,n,r){var o,a,i=e.mode,s=e.child,l={mode:"hidden",children:t};1&i||null===s?(o=ng(l,i),a=J_(n,i,r,null)):((o=s).childLanes=0,o.pendingProps=l,2&e.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=0,o.treeBaseDuration=0),a=J_(n,i,r,null));return o.return=e,a.return=e,o.sibling=a,e.child=o,a}(t,c,d,n);return t.child.memoizedState=Jm(n),t.memoizedState=Zm,f}return tg(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,o,i,s){if(n){if(t.flags&rr)return t.flags&=-257,og(e,t,s,_m(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=nr,null;var l=function(e,t,n,r,o){var a=t.mode,i={mode:"visible",children:n},s=ng(i,a),l=J_(r,a,o,null);l.flags|=2,s.return=t,l.return=t,s.sibling=l,t.child=s,!(1&t.mode)||Vd(t,e.child,null,o);return l}(e,t,r.children,r.fallback,s);return t.child.memoizedState=Jm(s),t.memoizedState=Zm,l}if(Xc&&a("We should not be hydrating here. This is a bug in React. Please file a bug."),!(1&t.mode))return og(e,t,s,null);if(Iu(o)){var u,c,d,f=function(e){var t,n,r,o=e.nextSibling&&e.nextSibling.dataset;return o&&(t=o.dgst,n=o.msg,r=o.stck),{message:n,digest:t,stack:r}}(o);return u=f.digest,c=f.message,d=f.stack,og(e,t,s,_m(c?new Error(c):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),u,d))}var p=ga(s,e.childLanes);if(jm||p){var h=My();if(null!==h){var m=function(e,t){var n;switch(fa(t)){case To:n=xo;break;case ko:n=Eo;break;case 64:case 128:case 256:case 512:case Ao:case $o:case Ro:case Io:case Co:case Do:case No:case Mo:case Lo:case jo:case Fo:case Bo:case zo:case Vo:case Ho:case qo:case Go:n=Po;break;case Qo:n=Xo;break;default:n=0}return 0!==(n&(e.suspendedLanes|t))?0:n}(h,s);if(0!==m&&m!==i.retryLane){i.retryLane=m;var g=ea;df(e,m),By(h,e,m,g)}}return r_(),og(e,t,s,_m(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(Ru(o)){t.flags|=nr,t.child=e.child;var b=b_.bind(null,e);return _=b,o._reactRetry=_,null}td(t,o,i.treeContext);var y=tg(t,r.children);return y.flags|=sr,y;var _}(e,t,s,r,h,p,n)}if(i){var m=r.fallback,g=function(e,t,n,r,o){var a,i,s=t.mode,l=e.child,u=l.sibling,c={mode:"hidden",children:n};if(1&s||t.child===l)(a=rg(l,c)).subtreeFlags=l.subtreeFlags&Sr;else{(a=t.child).childLanes=0,a.pendingProps=c,2&t.mode&&(a.actualDuration=0,a.actualStartTime=-1,a.selfBaseDuration=l.selfBaseDuration,a.treeBaseDuration=l.treeBaseDuration),t.deletions=null}null!==u?i=K_(u,r):(i=J_(r,s,o,null)).flags|=2;return i.return=t,a.return=t,a.sibling=i,t.child=a,i}(e,t,r.children,m,n),b=t.child,y=e.child.memoizedState;return b.memoizedState=null===y?Jm(n):function(e,t){return{baseLanes:ya(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(y,n),b.childLanes=function(e,t){return _a(e.childLanes,t)}(e,n),t.memoizedState=Zm,g}var _=function(e,t,n,r){var o=e.child,a=o.sibling,i=rg(o,{mode:"visible",children:n});1&t.mode||(i.lanes=r);if(i.return=t,i.sibling=null,null!==a){var s=t.deletions;null===s?(t.deletions=[a],t.flags|=tr):s.push(a)}return t.child=i,i}(e,t,r.children,n);return t.memoizedState=null,_}function tg(e,t,n){var r=ng({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function ng(e,t,n){return ev(e,t,0,null)}function rg(e,t){return K_(e,t)}function og(e,t,n,r){null!==r&&_d(r),Vd(t,e.child,null,n);var o=tg(t,t.pendingProps.children);return o.flags|=2,t.memoizedState=null,o}function ag(e,t,n){e.lanes=ya(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=ya(r.lanes,t)),rf(e.return,t,n)}function ig(e,t){var n=vt(e),r=!n&&"function"==typeof pe(e);if(n||r){var o=n?"array":"iterable";return a("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,t,o),!1}return!0}function sg(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function lg(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail,s=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!Dm[e])if(Dm[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":a('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":a('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:a('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else a('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(o),function(e,t){void 0===e||Nm[e]||("collapsed"!==e&&"hidden"!==e?(Nm[e]=!0,a('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(Nm[e]=!0,a('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(i,o),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(vt(e)){for(var n=0;n<e.length;n++)if(!ig(e[n],n))return}else{var r=pe(e);if("function"==typeof r){var o=r.call(e);if(o)for(var i=o.next(),s=0;!i.done;i=o.next()){if(!ig(i.value,s))return;s++}}else a('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(s,o),Fm(e,t,s,n);var l=zf.current;Vf(l,2)?(l=qf(l,2),t.flags|=nr):(null!==e&&0!==(e.flags&nr)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===c)null!==r.memoizedState&&ag(r,n,e);else if(r.tag===m)ag(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),l=Hf(l));if(Gf(t,l),1&t.mode)switch(o){case"forwards":var u,d=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Kf(r)&&(n=t),t=t.sibling}return n}(t.child);null===d?(u=t.child,t.child=null):(u=d.sibling,d.sibling=null),sg(t,!1,u,d,i);break;case"backwards":var f=null,p=t.child;for(t.child=null;null!==p;){var h=p.alternate;if(null!==h&&null===Kf(h)){t.child=p;break}var g=p.sibling;p.sibling=f,f=p,p=g}sg(t,!0,f,null,i);break;case"together":sg(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}var ug=!1;var cg,dg,fg,pg,hg=!1;function mg(){jm=!0}function gg(e,t){1&t.mode||null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bg(e,t,n){return null!==e&&(t.dependencies=e.dependencies),Hh(),n_(t.lanes),ga(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=K_(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=K_(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function yg(e,t){return!!ga(e.lanes,t)}function _g(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var o=r.child;if(null===o)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(null===(o=o.sibling))throw new Error("Expected to find the previous sibling.");o.sibling=n}var a=r.deletions;return null===a?(r.deletions=[e],r.flags|=tr):a.push(e),n.flags|=2,n}(e,t,Q_(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||bc()||t.type!==e.type)jm=!0;else{if(!yg(e,n)&&0===(t.flags&nr))return jm=!1,function(e,t,n){switch(t.tag){case 3:Ym(t),t.stateNode,gd();break;case 5:Bf(t);break;case 1:yc(t.type)&&xc(t);break;case 4:Lf(t,t.stateNode.containerInfo);break;case s:var r=t.memoizedProps.value;tf(t,t.type._context,r);break;case u:ga(n,t.childLanes)&&(t.flags|=4);var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0;break;case c:var a=t.memoizedState;if(null!==a){if(null!==a.dehydrated)return Gf(t,Hf(zf.current)),t.flags|=nr,null;if(ga(n,t.child.childLanes))return eg(e,t,n);Gf(t,Hf(zf.current));var i=bg(e,t,n);return null!==i?i.sibling:null}Gf(t,Hf(zf.current));break;case m:var l=0!==(e.flags&nr),d=ga(n,t.childLanes);if(l){if(d)return lg(e,t,n);t.flags|=nr}var f=t.memoizedState;if(null!==f&&(f.rendering=null,f.tail=null,f.lastEffect=null),Gf(t,zf.current),d)break;return null;case b:case y:return t.lanes=0,Vm(e,t,n)}return bg(e,t,n)}(e,t,n);jm=0!==(e.flags&fr)}else if(jm=!1,yd()&&function(e){return Wc(),0!==(e.flags&pr)}(t)){var r=t.index;Vc(t,(Wc(),Nc),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){gg(e,t);var o,i,s,l=t.pendingProps;if(o=gc(t,hc(0,n,!1)),af(t,r),to(t),n.prototype&&"function"==typeof n.prototype.render){var u=Me(n)||"Unknown";Om[u]||(a("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.",u,u),Om[u]=!0)}if(8&t.mode&&wd.recordLegacyContextWarning(t,null),Ge(!0),Lm.current=t,i=vp(null,t,n,l,o,r),s=wp(),Ge(!1),no(),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var c=Me(n)||"Unknown";Am[c]||(a("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),Am[c]=!0)}if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var d=Me(n)||"Unknown";Am[d]||(a("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.",d,d,d),Am[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;return yc(n)?(f=!0,xc(t)):f=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,_f(t),hm(t,i),bm(t,n,l,r),Wm(null,t,n,!0,f,r)}if(t.tag=0,8&t.mode){Qr(!0);try{i=vp(null,t,n,l,o,r),s=wp()}finally{Qr(!1)}}return yd()&&s&&Hc(t),Fm(null,t,i,r),Qm(t,n),t.child}(e,t,t.type,n);case 16:return Xm(e,t,t.elementType,n);case 0:var o=t.type,i=t.pendingProps;return qm(e,t,o,t.elementType===o?i:Qh(o,i),n);case 1:var h=t.type,_=t.pendingProps;return Gm(e,t,h,t.elementType===h?_:Qh(h,_),n);case 3:return function(e,t,n){if(Ym(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,o=t.memoizedState,a=o.element;vf(e,t),kf(t,r,null,n);var i=t.memoizedState;t.stateNode;var s=i.element;if(o.isDehydrated){var l={element:s,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions};if(t.updateQueue.baseState=l,t.memoizedState=l,t.flags&rr)return Km(e,t,s,n,ym(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(s!==a)return Km(e,t,s,n,ym(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));ed(t);var u=Hd(t,null,s,n);t.child=u;for(var c=u;c;)c.flags=-3&c.flags|sr,c=c.sibling}else{if(gd(),s===a)return bg(e,t,n);Fm(e,t,s,n)}return t.child}(e,t,n);case 5:return function(e,t,n){Bf(t),null===e&&ud(t);var r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children;return yu(r,o)?i=null:null!==a&&yu(r,a)&&(t.flags|=32),Hm(e,t),Fm(e,t,i,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&ud(t),null}(e,t);case c:return eg(e,t,n);case 4:return function(e,t,n){Lf(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=Vd(t,null,r,n):Fm(e,t,r,n),t.child}(e,t,n);case l:var v=t.type,w=t.pendingProps;return Bm(e,t,v,t.elementType===v?w:Qh(v,w),n);case 7:return function(e,t,n){return Fm(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return Fm(e,t,t.pendingProps.children,n),t.child}(e,t,n);case u:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,Fm(e,t,t.pendingProps.children,n),t.child}(e,t,n);case s:return function(e,t,n){var r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value;"value"in o||ug||(ug=!0,a("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var l=t.type.propTypes;if(l&&nc(l,o,"prop","Context.Provider"),tf(t,r,s),null!==i){var u=i.value;if(Os(u,s)){if(i.children===o.children&&!bc())return bg(e,t,n)}else of(t,r,n)}return Fm(e,t,o.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(hg||(hg=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var o=t.pendingProps.children;"function"!=typeof o&&a("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."),af(t,n);var i,s=sf(r);return to(t),Lm.current=t,Ge(!0),i=o(s),Ge(!1),no(),t.flags|=1,Fm(e,t,i,n),t.child}(e,t,n);case d:var S=t.type,x=Qh(S,t.pendingProps);if(t.type!==t.elementType){var T=S.propTypes;T&&nc(T,x,"prop",Me(S))}return Um(e,t,S,x=Qh(S.type,x),n);case f:return zm(e,t,t.type,t.pendingProps,n);case p:var E=t.type,k=t.pendingProps;return function(e,t,n,r,o){var a;return gg(e,t),t.tag=1,yc(n)?(a=!0,xc(t)):a=!1,af(t,o),mm(t,n,r),bm(t,n,r,o),Wm(null,t,n,!0,a,o)}(e,t,E,t.elementType===E?k:Qh(E,k),n);case m:return lg(e,t,n);case g:break;case b:return Vm(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function vg(e){e.flags|=4}function wg(e){e.flags|=or,e.flags|=hr}function Sg(e,t){if(!yd())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var o=e.tail,a=null;null!==o;)null!==o.alternate&&(a=o),o=o.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function xg(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(2&e.mode){for(var o=e.selfBaseDuration,a=e.child;null!==a;)n=ya(n,ya(a.lanes,a.childLanes)),r|=a.subtreeFlags&Sr,r|=a.flags&Sr,o+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=o}else for(var i=e.child;null!==i;)n=ya(n,ya(i.lanes,i.childLanes)),r|=i.subtreeFlags&Sr,r|=i.flags&Sr,i.return=e,i=i.sibling;e.subtreeFlags|=r}else{if(2&e.mode){for(var s=e.actualDuration,l=e.selfBaseDuration,u=e.child;null!==u;)n=ya(n,ya(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,s+=u.actualDuration,l+=u.treeBaseDuration,u=u.sibling;e.actualDuration=s,e.treeBaseDuration=l}else for(var c=e.child;null!==c;)n=ya(n,ya(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function Tg(e,t,n){if(Xc&&null!==Kc&&1&t.mode&&0===(t.flags&nr))return md(t),gd(),t.flags|=98560,!1;var r=hd(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(dd(t),xg(t),2&t.mode)if(null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}if(gd(),0===(t.flags&nr)&&(t.memoizedState=null),t.flags|=4,xg(t),2&t.mode&&null!==n){var a=t.child;null!==a&&(t.treeBaseDuration-=a.treeBaseDuration)}return!1}return bd(),!0}function Eg(e,t,n){var r=t.pendingProps;switch(Gc(t),t.tag){case 2:case 16:case f:case 0:case l:case 7:case 8:case u:case 9:case d:return xg(t),null;case 1:return yc(t.type)&&_c(t),xg(t),null;case 3:var o=t.stateNode;if(jf(t),vc(t),Qf(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null===e||null===e.child)if(hd(t))vg(t);else if(null!==e)e.memoizedState.isDehydrated&&0===(t.flags&rr)||(t.flags|=ar,bd());return dg(e,t),xg(t),null;case 5:Uf(t);var a=Mf(),i=t.type;if(null!==e&&null!=t.stateNode)fg(e,t,i,r,a),e.ref!==t.ref&&wg(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return xg(t),null}var h=Ff();if(hd(t))(function(e,t,n){var r=e.stateNode,o=!Qc,a=Nu(r,e.type,e.memoizedProps,0,n,e,o);return e.updateQueue=a,null!==a})(t,0,h)&&vg(t);else{var _=gu(i,r,a,h,t);cg(_,t,!1,!1),t.stateNode=_,function(e,t,n){switch(Gl(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(_,i,r)&&vg(t)}null!==t.ref&&wg(t)}return xg(t),null;case 6:var v=r;if(e&&null!=t.stateNode){var w=e.memoizedProps;pg(e,t,w,v)}else{if("string"!=typeof v&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var S=Mf(),x=Ff();hd(t)?cd(t)&&vg(t):t.stateNode=_u(v,S,x,t)}return xg(t),null;case c:Wf(t);var T=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)if(!Tg(e,t,T))return t.flags&dr?t:null;if(0!==(t.flags&nr))return t.lanes=n,2&t.mode&&Xh(t),t;var E=null!==T;if(E!==(null!==e&&null!==e.memoizedState))if(E)if(t.child.flags|=lr,1&t.mode)null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!0)||Vf(zf.current,1)?ry===Hb&&(ry=Wb):r_();if(null!==t.updateQueue&&(t.flags|=4),xg(t),2&t.mode&&E){var k=t.child;null!==k&&(t.treeBaseDuration-=k.treeBaseDuration)}return null;case 4:return jf(t),dg(e,t),null===e&&gl(t.stateNode.containerInfo),xg(t),null;case s:return nf(t.type._context,t),xg(t),null;case p:return yc(t.type)&&_c(t),xg(t),null;case m:Wf(t);var P=t.memoizedState;if(null===P)return xg(t),null;var O=0!==(t.flags&nr),A=P.rendering;if(null===A)if(O)Sg(P,!1);else{if(!(ry===Hb&&(null===e||0===(e.flags&nr))))for(var $=t.child;null!==$;){var R=Kf($);if(null!==R){O=!0,t.flags|=nr,Sg(P,!1);var I=R.updateQueue;return null!==I&&(t.updateQueue=I,t.flags|=4),t.subtreeFlags=0,qd(t,n),Gf(t,qf(zf.current,2)),t.child}$=$.sibling}null!==P.tail&&Lr()>gy()&&(t.flags|=nr,O=!0,Sg(P,!1),t.lanes=Wo)}else{if(!O){var C=Kf(A);if(null!==C){t.flags|=nr,O=!0;var D=C.updateQueue;if(null!==D&&(t.updateQueue=D,t.flags|=4),Sg(P,!0),null===P.tail&&"hidden"===P.tailMode&&!A.alternate&&!yd())return xg(t),null}else 2*Lr()-P.renderingStartTime>gy()&&n!==Zo&&(t.flags|=nr,O=!0,Sg(P,!1),t.lanes=Wo)}if(P.isBackwards)A.sibling=t.child,t.child=A;else{var N=P.last;null!==N?N.sibling=A:t.child=A,P.last=A}}if(null!==P.tail){var M=P.tail;P.rendering=M,P.tail=M.sibling,P.renderingStartTime=Lr(),M.sibling=null;var L=zf.current;return Gf(t,L=O?qf(L,2):Hf(L)),M}return xg(t),null;case g:break;case b:case y:Qy(t);var j=null!==t.memoizedState;if(null!==e)null!==e.memoizedState!==j&&(t.flags|=lr);return j&&1&t.mode?ga(ty,Zo)&&(xg(t),6&t.subtreeFlags&&(t.flags|=lr)):xg(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kg(e,t,n){switch(Gc(t),t.tag){case 1:yc(t.type)&&_c(t);var r=t.flags;return r&dr?(t.flags=-65537&r|nr,2&t.mode&&Xh(t),t):null;case 3:t.stateNode,jf(t),vc(t),Qf();var o=t.flags;return 0!==(o&dr)&&0===(o&nr)?(t.flags=-65537&o|nr,t):null;case 5:return Uf(t),null;case c:Wf(t);var a=t.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gd()}var i=t.flags;return i&dr?(t.flags=-65537&i|nr,2&t.mode&&Xh(t),t):null;case m:return Wf(t),null;case 4:return jf(t),null;case s:return nf(t.type._context,t),null;case b:case y:return Qy(t),null;default:return null}}function Pg(e,t,n){switch(Gc(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&_c(t);break;case 3:t.stateNode,jf(t),vc(t),Qf();break;case 5:Uf(t);break;case 4:jf(t);break;case c:case m:Wf(t);break;case s:nf(t.type._context,t);break;case b:case y:Qy(t)}}cg=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag||6===o.tag)bu(e,o.stateNode);else if(4===o.tag);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},dg=function(e,t){},fg=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var i=function(e,t,n,r,o,a){var i=a;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var s=""+r.children,l=tu(i.ancestorInfo,t);eu(null,s,l)}return Wl(e,t,n,r)}(t.stateNode,n,a,r,0,Ff());t.updateQueue=i,i&&vg(t)}},pg=function(e,t,n,r){n!==r&&vg(t)};var Og=null;Og=new Set;var Ag=!1,$g=!1,Rg="function"==typeof WeakSet?WeakSet:Set,Ig=null,Cg=null,Dg=null;var Ng=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{Yh(),t.componentWillUnmount()}finally{Gh(e)}else t.componentWillUnmount()};function Mg(e,t){try{Gg(4,e)}catch(n){h_(e,t,n)}}function Lg(e,t,n){try{Ng(e,n)}catch(r){h_(e,t,r)}}function jg(e,t){try{Xg(e)}catch(n){h_(e,t,n)}}function Fg(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{Yh(),r=n(null)}finally{Gh(e)}else r=n(null)}catch(o){h_(e,t,o)}"function"==typeof r&&a("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",je(e))}else n.current=null}function Bg(e,t,n){try{n()}catch(r){h_(e,t,r)}}var Ug=!1;function zg(e,t){mu(e.containerInfo),Ig=t,function(){for(;null!==Ig;){var e=Ig,t=e.child;0!==(e.subtreeFlags&yr)&&null!==t?(t.return=e,Ig=t):Vg()}}();var n=Ug;return Ug=!1,n}function Vg(){for(;null!==Ig;){var e=Ig;qe(e);try{Hg(e)}catch(n){h_(e,e.return,n)}He();var t=e.sibling;if(null!==t)return t.return=e.return,void(Ig=t);Ig=e.return}}function Hg(e){var t,n=e.alternate;if(0!==(e.flags&ar)){switch(qe(e),e.tag){case 0:case l:case f:break;case 1:if(null!==n){var r=n.memoizedProps,o=n.memoizedState,i=e.stateNode;e.type!==e.elementType||Cm||(i.props!==e.memoizedProps&&a("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(e)||"instance"),i.state!==e.memoizedState&&a("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(e)||"instance"));var s=i.getSnapshotBeforeUpdate(e.elementType===e.type?r:Qh(e.type,r),o),u=Og;void 0!==s||u.has(e.type)||(u.add(e.type),a("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",je(e))),i.__reactInternalSnapshotBeforeUpdate=s}break;case 3:var c=e.stateNode;1===(t=c.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;case 5:case 6:case 4:case p:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}He()}}function qg(e,t,n){var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next,i=a;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,void 0!==s&&(8&e?ao(t):4&e&&uo(t),2&e&&R_(!0),Bg(t,n,s),2&e&&R_(!1),8&e?io():4&e&&co())}i=i.next}while(i!==a)}}function Gg(e,t){var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next,i=o;do{if((i.tag&e)===e){8&e?ro(t):4&e&&so(t);var s=i.create;2&e&&R_(!0),i.destroy=s(),2&e&&R_(!1),8&e?oo():4&e&&lo();var l=i.destroy;if(void 0!==l&&"function"!=typeof l){var u=void 0;a("%s must not return anything besides a function, which is used for clean-up.%s",u=4&i.tag?"useLayoutEffect":2&i.tag?"useInsertionEffect":"useEffect",null===l?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof l.then?"\n\nIt looks like you wrote "+u+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+u+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+l)}}i=i.next}while(i!==o)}}function Wg(e,t){if(4&t.flags&&t.tag===u){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,o=r.id,a=r.onPostCommit,i=Uh(),s=null===t.alternate?"mount":"update";Bh()&&(s="nested-update"),"function"==typeof a&&a(o,s,n,i);var l=t.return;e:for(;null!==l;){switch(l.tag){case 3:l.stateNode.passiveEffectDuration+=n;break e;case u:l.stateNode.passiveEffectDuration+=n;break e}l=l.return}}}function Yg(e,t,n,r){if(0!==(n.flags&vr))switch(n.tag){case 0:case l:case f:if(!$g)if(2&n.mode)try{Yh(),Gg(5,n)}finally{Gh(n)}else Gg(5,n);break;case 1:var o=n.stateNode;if(4&n.flags&&!$g)if(null===t)if(n.type!==n.elementType||Cm||(o.props!==n.memoizedProps&&a("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(n)||"instance"),o.state!==n.memoizedState&&a("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(n)||"instance")),2&n.mode)try{Yh(),o.componentDidMount()}finally{Gh(n)}else o.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Qh(n.type,t.memoizedProps),s=t.memoizedState;if(n.type!==n.elementType||Cm||(o.props!==n.memoizedProps&&a("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(n)||"instance"),o.state!==n.memoizedState&&a("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(n)||"instance")),2&n.mode)try{Yh(),o.componentDidUpdate(i,s,o.__reactInternalSnapshotBeforeUpdate)}finally{Gh(n)}else o.componentDidUpdate(i,s,o.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;null!==d&&(n.type!==n.elementType||Cm||(o.props!==n.memoizedProps&&a("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(n)||"instance"),o.state!==n.memoizedState&&a("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(n)||"instance")),$f(0,d,o));break;case 3:var h=n.updateQueue;if(null!==h){var _=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:_=n.child.stateNode}$f(0,h,_)}break;case 5:var v=n.stateNode;if(null===t&&4&n.flags)!function(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(v,n.type,n.memoizedProps);break;case 6:case 4:break;case u:var w=n.memoizedProps,S=w.onCommit,x=w.onRender,T=n.stateNode.effectDuration,E=Uh(),k=null===t?"mount":"update";Bh()&&(k="nested-update"),"function"==typeof x&&x(n.memoizedProps.id,k,n.actualDuration,n.treeBaseDuration,n.actualStartTime,E),"function"==typeof S&&S(n.memoizedProps.id,k,T,E),O=n,xy.push(O),vy||(vy=!0,O_(Ur,function(){return c_(),null}));var P=n.return;e:for(;null!==P;){switch(P.tag){case 3:P.stateNode.effectDuration+=T;break e;case u:P.stateNode.effectDuration+=T;break e}P=P.return}break;case c:!function(e,t){var n=t.memoizedState;if(null===n){var r=t.alternate;if(null!==r){var o=r.memoizedState;if(null!==o){var a=o.dehydrated;null!==a&&function(e){ai(e)}(a)}}}}(0,n);break;case m:case p:case g:case b:case y:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var O;$g||n.flags&or&&Xg(n)}function Kg(e){switch(e.tag){case 0:case l:case f:if(2&e.mode)try{Yh(),Mg(e,e.return)}finally{Gh(e)}else Mg(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(r){h_(e,t,r)}}(e,e.return,t),jg(e,e.return);break;case 5:jg(e,e.return)}}function Xg(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,n=r,"function"==typeof t){var o;if(2&e.mode)try{Yh(),o=t(n)}finally{Gh(e)}else o=t(n);"function"==typeof o&&a("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",je(e))}else t.hasOwnProperty("current")||a("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",je(e)),t.current=n}}function Qg(e){var t,n=e.alternate;if(null!==n&&(e.alternate=null,Qg(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var r=e.stateNode;null!==r&&(delete(t=r)[ju],delete t[Fu],delete t[Uu],delete t[zu],delete t[Vu])}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zg(e){return 5===e.tag||3===e.tag||4===e.tag}function Jg(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Zg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==h;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function eb(e){var t=function(e){for(var t=e.return;null!==t;){if(Zg(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(Eu(n),t.flags&=-33),nb(e,Jg(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;tb(e,Jg(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function tb(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,o,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&ql(n)}(n,o)}else if(4===r);else{var a=e.child;if(null!==a){tb(a,t,n);for(var i=a.sibling;null!==i;)tb(i,t,n),i=i.sibling}}}function nb(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?function(e,t,n){e.insertBefore(t,n)}(n,o,t):function(e,t){e.appendChild(t)}(n,o)}else if(4===r);else{var a=e.child;if(null!==a){nb(a,t,n);for(var i=a.sibling;null!==i;)nb(i,t,n),i=i.sibling}}}var rb=null,ob=!1;function ab(e,t,n){var r,o,a=t;e:for(;null!==a;){switch(a.tag){case 5:rb=a.stateNode,ob=!1;break e;case 3:case 4:rb=a.stateNode.containerInfo,ob=!0;break e}a=a.return}if(null===rb)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");sb(e,t,n),rb=null,ob=!1,null!==(o=(r=n).alternate)&&(o.return=null),r.return=null}function ib(e,t,n){for(var r=n.child;null!==r;)sb(e,t,r),r=r.sibling}function sb(e,t,n){switch(function(e){if(Wr&&"function"==typeof Wr.onCommitFiberUnmount)try{Wr.onCommitFiberUnmount(Gr,e)}catch(t){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",t))}}(n),n.tag){case 5:$g||Fg(n,t);case 6:var r=rb,o=ob;return rb=null,ib(e,t,n),ob=o,void(null!==(rb=r)&&(ob?(x=rb,T=n.stateNode,8===x.nodeType?x.parentNode.removeChild(T):x.removeChild(T)):function(e,t){e.removeChild(t)}(rb,n.stateNode)));case h:return void(null!==rb&&(ob?function(e,t){8===e.nodeType?ku(e.parentNode,t):1===e.nodeType&&ku(e,t),ai(e)}(rb,n.stateNode):ku(rb,n.stateNode)));case 4:var i=rb,s=ob;return rb=n.stateNode.containerInfo,ob=!0,ib(e,t,n),rb=i,void(ob=s);case 0:case l:case d:case f:if(!$g){var u=n.updateQueue;if(null!==u){var c=u.lastEffect;if(null!==c){var p=c.next,m=p;do{var y=m,_=y.destroy,v=y.tag;void 0!==_&&(2&v?Bg(n,t,_):4&v&&(uo(n),2&n.mode?(Yh(),Bg(n,t,_),Gh(n)):Bg(n,t,_),co())),m=m.next}while(m!==p)}}}return void ib(e,t,n);case 1:if(!$g){Fg(n,t);var w=n.stateNode;"function"==typeof w.componentWillUnmount&&Lg(n,t,w)}return void ib(e,t,n);case g:return void ib(e,t,n);case b:if(1&n.mode){var S=$g;$g=S||null!==n.memoizedState,ib(e,t,n),$g=S}else ib(e,t,n);break;default:return void ib(e,t,n)}var x,T}function lb(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Rg),t.forEach(function(t){var r=y_.bind(null,e,t);if(!n.has(t)){if(n.add(t),Xr){if(null===Cg||null===Dg)throw Error("Expected finished root and lanes to be set. This is a bug in React.");k_(Dg,Cg)}t.then(r,r)}})}}function ub(e,t,n){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{ab(e,t,a)}catch(l){h_(a,t,l)}}var i=Be;if(t.subtreeFlags&_r)for(var s=t.child;null!==s;)qe(s),cb(s,e),s=s.sibling;qe(i)}function cb(e,t,n){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case l:case d:case f:if(ub(t,e),db(e),4&o){try{qg(3,e,e.return),Gg(3,e)}catch($){h_(e,e.return,$)}if(2&e.mode){try{Yh(),qg(5,e,e.return)}catch($){h_(e,e.return,$)}Gh(e)}else try{qg(5,e,e.return)}catch($){h_(e,e.return,$)}}return;case 1:return ub(t,e),db(e),void(o&or&&null!==r&&Fg(r,r.return));case 5:if(ub(t,e),db(e),o&or&&null!==r&&Fg(r,r.return),32&e.flags){var a=e.stateNode;try{Eu(a)}catch($){h_(e,e.return,$)}}if(4&o){var i=e.stateNode;if(null!=i){var s=e.memoizedProps,u=null!==r?r.memoizedProps:s,p=e.type,h=e.updateQueue;if(e.updateQueue=null,null!==h)try{!function(e,t,n,r,o){Yl(e,t,n,r,o),Zu(e,o)}(i,h,p,u,s)}catch($){h_(e,e.return,$)}}}return;case 6:if(ub(t,e),db(e),4&o){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var _=e.stateNode,v=e.memoizedProps;null!==r&&r.memoizedProps;try{!function(e,t,n){e.nodeValue=n}(_,0,v)}catch($){h_(e,e.return,$)}}return;case 3:if(ub(t,e),db(e),4&o)if(null!==r)if(r.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch($){h_(e,e.return,$)}return;case 4:return ub(t,e),void db(e);case c:ub(t,e),db(e);var w=e.child;if(w.flags&lr){var S=w.stateNode,x=null!==w.memoizedState;if(S.isHidden=x,x)null!==w.alternate&&null!==w.alternate.memoizedState||(cy=Lr())}if(4&o){try{!function(e){e.memoizedState}(e)}catch($){h_(e,e.return,$)}lb(e)}return;case b:var T=null!==r&&null!==r.memoizedState;if(1&e.mode){var E=$g;$g=E||T,ub(t,e),$g=E}else ub(t,e);if(db(e),o&lr){var k=e.stateNode,P=null!==e.memoizedState,O=e;if(k.isHidden=P,P&&!T&&1&O.mode){Ig=O;for(var A=O.child;null!==A;)Ig=A,mb(A),A=A.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var o=r.stateNode;t?Pu(o):Au(r.stateNode,r.memoizedProps)}catch($){h_(e,e.return,$)}}}else if(6===r.tag){if(null===n)try{var a=r.stateNode;t?Ou(a):$u(a,r.memoizedProps)}catch($){h_(e,e.return,$)}}else if((r.tag!==b&&r.tag!==y||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(O,P)}return;case m:return ub(t,e),db(e),void(4&o&&lb(e));case g:return;default:return ub(t,e),void db(e)}}function db(e){var t=e.flags;if(2&t){try{eb(e)}catch(n){h_(e,e.return,n)}e.flags&=-3}t&sr&&(e.flags&=-4097)}function fb(e,t,n){Cg=n,Dg=t,Ig=e,pb(e,t,n),Cg=null,Dg=null}function pb(e,t,n){for(var r=!!(1&e.mode);null!==Ig;){var o=Ig,a=o.child;if(o.tag===b&&r){var i=null!==o.memoizedState||Ag;if(i){hb(e,t,n);continue}var s=o.alternate,l=null!==s&&null!==s.memoizedState,u=Ag,c=$g;Ag=i,($g=l||$g)&&!c&&(Ig=o,bb(o));for(var d=a;null!==d;)Ig=d,pb(d,t,n),d=d.sibling;Ig=o,Ag=u,$g=c,hb(e,t,n)}else 0!==(o.subtreeFlags&vr)&&null!==a?(a.return=o,Ig=a):hb(e,t,n)}}function hb(e,t,n){for(;null!==Ig;){var r=Ig;if(0!==(r.flags&vr)){var o=r.alternate;qe(r);try{Yg(0,o,r)}catch(i){h_(r,r.return,i)}He()}if(r===e)return void(Ig=null);var a=r.sibling;if(null!==a)return a.return=r.return,void(Ig=a);Ig=r.return}}function mb(e){for(;null!==Ig;){var t=Ig,n=t.child;switch(t.tag){case 0:case l:case d:case f:if(2&t.mode)try{Yh(),qg(4,t,t.return)}finally{Gh(t)}else qg(4,t,t.return);break;case 1:Fg(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&Lg(t,t.return,r);break;case 5:Fg(t,t.return);break;case b:if(null!==t.memoizedState){gb(e);continue}}null!==n?(n.return=t,Ig=n):gb(e)}}function gb(e){for(;null!==Ig;){var t=Ig;if(t===e)return void(Ig=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(Ig=n);Ig=t.return}}function bb(e){for(;null!==Ig;){var t=Ig,n=t.child;if(t.tag===b)if(null!==t.memoizedState){yb(e);continue}null!==n?(n.return=t,Ig=n):yb(e)}}function yb(e){for(;null!==Ig;){var t=Ig;qe(t);try{Kg(t)}catch(r){h_(t,t.return,r)}if(He(),t===e)return void(Ig=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(Ig=n);Ig=t.return}}function _b(e,t,n,r){Ig=t,function(e,t,n,r){for(;null!==Ig;){var o=Ig,a=o.child;0!==(o.subtreeFlags&wr)&&null!==a?(a.return=o,Ig=a):vb(e,t,n,r)}}(t,e,n,r)}function vb(e,t,n,r){for(;null!==Ig;){var o=Ig;if(0!==(o.flags&ir)){qe(o);try{wb(t,o,n,r)}catch(i){h_(o,o.return,i)}He()}if(o===e)return void(Ig=null);var a=o.sibling;if(null!==a)return a.return=o.return,void(Ig=a);Ig=o.return}}function wb(e,t,n,r){switch(t.tag){case 0:case l:case f:if(2&t.mode){Kh();try{Gg(9,t)}finally{Wh(t)}}else Gg(9,t)}}function Sb(e){Ig=e,function(){for(;null!==Ig;){var e=Ig,t=e.child;if(0!==(Ig.flags&tr)){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var o=n[r];Ig=o,Eb(o,e)}var a=e.alternate;if(null!==a){var i=a.child;if(null!==i){a.child=null;do{var s=i.sibling;i.sibling=null,i=s}while(null!==i)}}Ig=e}}0!==(e.subtreeFlags&wr)&&null!==t?(t.return=e,Ig=t):xb()}}()}function xb(){for(;null!==Ig;){var e=Ig;0!==(e.flags&ir)&&(qe(e),Tb(e),He());var t=e.sibling;if(null!==t)return t.return=e.return,void(Ig=t);Ig=e.return}}function Tb(e){switch(e.tag){case 0:case l:case f:2&e.mode?(Kh(),qg(9,e,e.return),Wh(e)):qg(9,e,e.return)}}function Eb(e,t){for(;null!==Ig;){var n=Ig;qe(n),Pb(n,t),He();var r=n.child;null!==r?(r.return=n,Ig=r):kb(e)}}function kb(e){for(;null!==Ig;){var t=Ig,n=t.sibling,r=t.return;if(Qg(t),t===e)return void(Ig=null);if(null!==n)return n.return=r,void(Ig=n);Ig=r}}function Pb(e,t){switch(e.tag){case 0:case l:case f:2&e.mode?(Kh(),qg(8,e,t),Wh(e)):qg(8,e,t)}}function Ob(e){switch(e.tag){case 0:case l:case f:try{Gg(5,e)}catch(n){h_(e,e.return,n)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(n){h_(e,e.return,n)}}}function Ab(e){switch(e.tag){case 0:case l:case f:try{Gg(9,e)}catch(t){h_(e,e.return,t)}}}function $b(e){switch(e.tag){case 0:case l:case f:try{qg(5,e,e.return)}catch(n){h_(e,e.return,n)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Lg(e,e.return,t)}}function Rb(e){switch(e.tag){case 0:case l:case f:try{qg(9,e,e.return)}catch(t){h_(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var Ib=Symbol.for;Ib("selector.component"),Ib("selector.has_pseudo_class"),Ib("selector.role"),Ib("selector.test_id"),Ib("selector.text")}var Cb=[];var Db=n.ReactCurrentActQueue;function Nb(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===Db.current||a("The current testing environment is not configured to support act(...)"),e}var Mb=Math.ceil,Lb=n.ReactCurrentDispatcher,jb=n.ReactCurrentOwner,Fb=n.ReactCurrentBatchConfig,Bb=n.ReactCurrentActQueue,Ub=0,zb=2,Vb=4,Hb=0,qb=1,Gb=2,Wb=3,Yb=4,Kb=5,Xb=6,Qb=Ub,Zb=null,Jb=null,ey=0,ty=0,ny=sc(0),ry=Hb,oy=null,ay=0,iy=0,sy=0,ly=null,uy=null,cy=0,dy=500,fy=1/0,py=500,hy=null;function my(){fy=Lr()+py}function gy(){return fy}var by=!1,yy=null,_y=null,vy=!1,wy=null,Sy=0,xy=[],Ty=null,Ey=50,ky=0,Py=null,Oy=!1,Ay=!1,$y=50,Ry=0,Iy=null,Cy=ea,Dy=0,Ny=!1;function My(){return Zb}function Ly(){return(Qb&(zb|Vb))!==Ub?Lr():Cy!==ea?Cy:Cy=Lr()}function jy(e){if(!(1&e.mode))return So;if((Qb&zb)!==Ub&&0!==ey)return pa(ey);if(null!==vd.transition){if(null!==Fb.transition){var t=Fb.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===Dy&&(Dy=da()),Dy}var n,r=La();return 0!==r?r:void 0===(n=window.event)?Da:hi(n.type)}function Fy(e){var t;return 1&e.mode?(t=na,!((na<<=1)&Uo)&&(na=zo),t):So}function By(e,t,n,r){!function(){if(ky>Ey)throw ky=0,Py=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ry>$y&&(Ry=0,Iy=null,a("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),Ny&&a("useInsertionEffect must not schedule updates."),Oy&&(Ay=!0),Sa(e,n,r),0!==(Qb&zb)&&e===Zb?function(e){if(Ue&&!hh)switch(e.tag){case 0:case l:case f:var t=Jb&&je(Jb)||"Unknown",n=t;if(!T_.has(n))T_.add(n),a("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",je(e)||"Unknown",t,t);break;case 1:E_||(a("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),E_=!0)}}(t):(Xr&&Ea(e,t,n),function(e){if(1&e.mode){if(!Nb())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t)return;if(Qb!==Ub)return;if(0!==e.tag&&e.tag!==l&&e.tag!==f)return}var t;if(null===Bb.current){var n=Be;try{qe(e),a("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",je(e))}finally{n?qe(e):He()}}}(t),e===Zb&&((Qb&zb)===Ub&&(iy=ya(iy,n)),ry===Yb&&qy(e,ey)),Uy(e,r),n!==So||Qb!==Ub||1&t.mode||Bb.isBatchingLegacy||(my(),$c()))}function Uy(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,i=n;i>0;){var s=ha(i),l=1<<s,u=a[s];u===ea?0!==(l&r)&&0===(l&o)||(a[s]=aa(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=oa(e,e===Zb?ey:0);if(0===r)return null!==n&&A_(n),e.callbackNode=null,void(e.callbackPriority=0);var o=fa(r),i=e.callbackPriority;if(i!==o||null!==Bb.current&&n!==P_){var s,l;if(null!=n&&A_(n),o===So)0===e.tag?(null!==Bb.isBatchingLegacy&&(Bb.didScheduleLegacyUpdate=!0),l=Gy.bind(null,e),Pc=!0,Ac(l)):Ac(Gy.bind(null,e)),null!==Bb.current?Bb.current.push(Rc):xu(function(){(Qb&(zb|Vb))===Ub&&Rc()}),s=null;else{var u;switch(Ba(r)){case Ia:u=Fr;break;case Ca:u=Br;break;case Da:u=Ur;break;case Na:u=Vr;break;default:u=Ur}s=O_(u,zy.bind(null,e))}e.callbackPriority=o,e.callbackNode=s}else null==n&&i!==So&&a("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function zy(e,t){if(jh=!1,Fh=!1,Cy=ea,Dy=0,(Qb&(zb|Vb))!==Ub)throw new Error("Should not already be working.");var n=e.callbackNode;if(c_()&&e.callbackNode!==n)return null;var r=oa(e,e===Zb?ey:0);if(0===r)return null;var o=!ua(0,r)&&!function(e,t){return 0!==(t&e.expiredLanes)}(e,r)&&!t,a=o?function(e,t){var n=Qb;Qb|=zb;var r=e_();if(Zb!==e||ey!==t){if(Xr){var o=e.memoizedUpdaters;o.size>0&&(k_(e,ey),o.clear()),ka(e,t)}hy=null,my(),Zy(e,t)}ho(t);for(;;)try{i_();break}catch(a){Jy(e,a)}return Zd(),t_(r),Qb=n,null!==Jb?(null!==Yr&&"function"==typeof Yr.markRenderYielded&&Yr.markRenderYielded(),Hb):(mo(),Zb=null,ey=0,ry)}(e,r):o_(e,r);if(a!==Hb){if(a===Gb){var i=ia(e);0!==i&&(r=i,a=Vy(e,i))}if(a===qb){var s=oy;throw Zy(e,0),qy(e,r),Uy(e,Lr()),s}if(a===Xb)qy(e,r);else{var l=!ua(0,r),u=e.current.alternate;if(l&&!function(e){var t=e;for(;;){if(t.flags&ur){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o],i=a.getSnapshot,s=a.value;try{if(!Os(i(),s))return!1}catch(u){return!1}}}}var l=t.child;if(t.subtreeFlags&ur&&null!==l)l.return=t,t=l;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(u)){if((a=o_(e,r))===Gb){var c=ia(e);0!==c&&(r=c,a=Vy(e,c))}if(a===qb){var d=oy;throw Zy(e,0),qy(e,r),Uy(e,Lr()),d}}e.finishedWork=u,e.finishedLanes=r,function(e,t,n){switch(t){case Hb:case qb:throw new Error("Root did not complete. This is a bug in React.");case Gb:u_(e,uy,hy);break;case Wb:if(qy(e,n),la(n)&&!$_()){var r=cy+dy-Lr();if(r>10){if(0!==oa(e,0))break;var o=e.suspendedLanes;if(!ba(o,n)){Ly(),xa(e,o);break}e.timeoutHandle=vu(u_.bind(null,e,uy,hy),r);break}}u_(e,uy,hy);break;case Yb:if(qy(e,n),function(e){return(e&Oo)===e}(n))break;if(!$_()){var a=function(e,t){for(var n=e.eventTimes,r=ea;t>0;){var o=ha(t),a=1<<o,i=n[o];i>r&&(r=i),t&=~a}return r}(e,n),i=a,s=Lr()-i,l=((u=s)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*Mb(u/1960))-s;if(l>10){e.timeoutHandle=vu(u_.bind(null,e,uy,hy),l);break}}u_(e,uy,hy);break;case Kb:u_(e,uy,hy);break;default:throw new Error("Unknown root exit status.")}var u}(e,a,r)}}return Uy(e,Lr()),e.callbackNode===n?zy.bind(null,e):null}function Vy(e,t){var n=ly;Ua(e)&&(Zy(e,t).flags|=rr,a("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=o_(e,t);if(r!==Gb){var o=uy;uy=n,null!==o&&Hy(o)}return r}function Hy(e){null===uy?uy=e:uy.push.apply(uy,e)}function qy(e,t){t=_a(t,sy),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var o=ha(r),a=1<<o;n[o]=ea,r&=~a}}(e,t=_a(t,iy))}function Gy(e){if(jh=Fh,Fh=!1,(Qb&(zb|Vb))!==Ub)throw new Error("Should not already be working.");c_();var t=oa(e,0);if(!ga(t,So))return Uy(e,Lr()),null;var n=o_(e,t);if(0!==e.tag&&n===Gb){var r=ia(e);0!==r&&(t=r,n=Vy(e,r))}if(n===qb){var o=oy;throw Zy(e,0),qy(e,t),Uy(e,Lr()),o}if(n===Xb)throw new Error("Root did not complete. This is a bug in React.");var a=e.current.alternate;return e.finishedWork=a,e.finishedLanes=t,u_(e,uy,hy),Uy(e,Lr()),null}function Wy(e,t){var n=Qb;Qb|=1;try{return e(t)}finally{(Qb=n)!==Ub||Bb.isBatchingLegacy||(my(),$c())}}function Yy(e){null!==wy&&0===wy.tag&&(Qb&(zb|Vb))===Ub&&c_();var t=Qb;Qb|=1;var n=Fb.transition,r=La();try{return Fb.transition=null,ja(Ia),e?e():void 0}finally{ja(r),Fb.transition=n,((Qb=t)&(zb|Vb))===Ub&&Rc()}}function Ky(){return(Qb&(zb|Vb))!==Ub}function Xy(e,t){uc(ny,ty,e),ty=ya(ty,t)}function Qy(e){ty=ny.current,lc(ny,e)}function Zy(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wu(n)),null!==Jb)for(var r=Jb.return;null!==r;){r.alternate;Pg(0,r),r=r.return}Zb=e;var o=K_(e.current,null);return Jb=o,ey=ty=t,ry=Hb,oy=null,ay=0,iy=0,sy=0,ly=null,uy=null,function(){if(null!==lf){for(var e=0;e<lf.length;e++){var t=lf[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,o=t.pending;if(null!==o){var a=o.next;o.next=r,n.next=a}t.pending=n}}lf=null}}(),wd.discardPendingWarnings(),o}function Jy(e,t){for(;;){var n=Jb;try{if(Zd(),xp(),He(),jb.current=null,null===n||null===n.return)return ry=qb,oy=t,void(Jb=null);2&n.mode&&qh(n,!0),no(),null!==t&&"object"==typeof t&&"function"==typeof t.then?po(n,t,ey):fo(n,t,ey),Pm(e,n.return,n,t,ey),l_(n)}catch(r){t=r,Jb===n&&null!==n?(n=n.return,Jb=n):n=Jb;continue}return}}function e_(){var e=Lb.current;return Lb.current=xh,null===e?xh:e}function t_(e){Lb.current=e}function n_(e){ay=ya(e,ay)}function r_(){ry!==Hb&&ry!==Wb&&ry!==Gb||(ry=Yb),null!==Zb&&(sa(ay)||sa(iy))&&qy(Zb,ey)}function o_(e,t){var n=Qb;Qb|=zb;var r=e_();if(Zb!==e||ey!==t){if(Xr){var o=e.memoizedUpdaters;o.size>0&&(k_(e,ey),o.clear()),ka(e,t)}hy=null,Zy(e,t)}for(ho(t);;)try{a_();break}catch(a){Jy(e,a)}if(Zd(),Qb=n,t_(r),null!==Jb)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return mo(),Zb=null,ey=0,ry}function a_(){for(;null!==Jb;)s_(Jb)}function i_(){for(;null!==Jb&&!Nr();)s_(Jb)}function s_(e){var t,n=e.alternate;qe(e),2&e.mode?(Vh(e),t=w_(n,e,ty),qh(e,!0)):t=w_(n,e,ty),He(),e.memoizedProps=e.pendingProps,null===t?l_(e):Jb=t,jb.current=null}function l_(e){var t=e;do{var n=t.alternate,r=t.return;if(0===(t.flags&cr)){qe(t);var o=void 0;if(2&t.mode?(Vh(t),o=Eg(n,t,ty),qh(t,!1)):o=Eg(n,t,ty),He(),null!==o)return void(Jb=o)}else{var a=kg(0,t);if(null!==a)return a.flags&=32767,void(Jb=a);if(2&t.mode){qh(t,!1);for(var i=t.actualDuration,s=t.child;null!==s;)i+=s.actualDuration,s=s.sibling;t.actualDuration=i}if(null===r)return ry=Xb,void(Jb=null);r.flags|=cr,r.subtreeFlags=0,r.deletions=null}var l=t.sibling;if(null!==l)return void(Jb=l);Jb=t=r}while(null!==t);ry===Hb&&(ry=Kb)}function u_(e,t,n){var r=La(),o=Fb.transition;try{Fb.transition=null,ja(Ia),function(e,t,n,r){do{c_()}while(null!==wy);if(function(){wd.flushLegacyContextWarning(),wd.flushPendingUnsafeLifecycleWarnings()}(),(Qb&(zb|Vb))!==Ub)throw new Error("Should not already be working.");var o=e.finishedWork,i=e.finishedLanes;if(function(e){null!==Yr&&"function"==typeof Yr.markCommitStarted&&Yr.markCommitStarted(e)}(i),null===o)return eo(),null;0===i&&a("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var s=ya(o.lanes,o.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,o=e.eventTimes,a=e.expirationTimes,i=n;i>0;){var s=ha(i),l=1<<s;r[s]=0,o[s]=ea,a[s]=ea,i&=~l}})(e,s),e===Zb&&(Zb=null,Jb=null,ey=0);0===(o.subtreeFlags&wr)&&0===(o.flags&wr)||vy||(vy=!0,Ty=n,O_(Ur,function(){return c_(),null}));var l=!!(15990&o.subtreeFlags),u=!!(15990&o.flags);if(l||u){var c=Fb.transition;Fb.transition=null;var d=La();ja(Ia);var f=Qb;Qb|=Vb,jb.current=null,zg(e,o),zh(),function(e,t,n){Cg=n,Dg=e,qe(t),cb(t,e),qe(t),Cg=null,Dg=null}(e,o,i),e.containerInfo,Bs(hu),li(pu),pu=null,hu=null,e.current=o,function(e){null!==Yr&&"function"==typeof Yr.markLayoutEffectsStarted&&Yr.markLayoutEffectsStarted(e)}(i),fb(o,e,i),null!==Yr&&"function"==typeof Yr.markLayoutEffectsStopped&&Yr.markLayoutEffectsStopped(),Mr(),Qb=f,ja(d),Fb.transition=c}else e.current=o,zh();var p=vy;vy?(vy=!1,wy=e,Sy=i):(Ry=0,Iy=null);s=e.pendingLanes,0===s&&(_y=null);p||__(e.current,!1);(function(e,t){if(Wr&&"function"==typeof Wr.onCommitFiberRoot)try{var n,r=(e.current.flags&nr)===nr;switch(t){case Ia:n=Fr;break;case Ca:n=Br;break;case Da:n=Ur;break;case Na:n=Vr;break;default:n=Ur}Wr.onCommitFiberRoot(Gr,e,n,r)}catch(o){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",o))}})(o.stateNode,r),Xr&&e.memoizedUpdaters.clear();if(function(){Cb.forEach(function(e){return e()})}(),Uy(e,Lr()),null!==t)for(var h=e.onRecoverableError,m=0;m<t.length;m++){var g=t[m],b=g.stack,y=g.digest;h(g.value,{componentStack:b,digest:y})}if(by){by=!1;var _=yy;throw yy=null,_}ga(Sy,So)&&0!==e.tag&&c_();s=e.pendingLanes,ga(s,So)?(Fh=!0,e===Py?ky++:(ky=0,Py=e)):ky=0;Rc(),eo()}(e,t,n,r)}finally{Fb.transition=o,ja(r)}return null}function c_(){if(null!==wy){var e=Ba(Sy),t=(o=Da)>(i=e)?o:i,n=Fb.transition,r=La();try{return Fb.transition=null,ja(t),function(){if(null===wy)return!1;var e=Ty;Ty=null;var t=wy,n=Sy;if(wy=null,Sy=0,(Qb&(zb|Vb))!==Ub)throw new Error("Cannot flush passive effects while already rendering.");Oy=!0,Ay=!1,function(e){null!==Yr&&"function"==typeof Yr.markPassiveEffectsStarted&&Yr.markPassiveEffectsStarted(e)}(n);var r=Qb;Qb|=Vb,Sb(t.current),_b(t,t.current,n,e);var o=xy;xy=[];for(var i=0;i<o.length;i++){Wg(0,o[i])}void(null!==Yr&&"function"==typeof Yr.markPassiveEffectsStopped&&Yr.markPassiveEffectsStopped()),__(t.current,!0),Qb=r,Rc(),Ay?t===Iy?Ry++:(Ry=0,Iy=t):Ry=0;Oy=!1,Ay=!1,function(e){if(Wr&&"function"==typeof Wr.onPostCommitFiberRoot)try{Wr.onPostCommitFiberRoot(Gr,e)}catch(t){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",t))}}(t);var s=t.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}()}finally{ja(r),Fb.transition=n}}var o,i;return!1}function d_(e){return null!==_y&&_y.has(e)}var f_=function(e){by||(by=!0,yy=e)};function p_(e,t,n){var r=Sf(e,Sm(e,ym(n,t),So),So),o=Ly();null!==r&&(Sa(r,So,o),Uy(r,o))}function h_(e,t,n){var r;if(r=n,Zn(null,function(){throw r}),Jn(),R_(!1),3!==e.tag){var o=null;for(o=t;null!==o;){if(3===o.tag)return void p_(o,e,n);if(1===o.tag){var i=o.type,s=o.stateNode;if("function"==typeof i.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&!d_(s)){var l=Sf(o,xm(o,ym(n,e),So),So),u=Ly();return void(null!==l&&(Sa(l,So,u),Uy(l,u)))}}o=o.return}a("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else p_(e,e,n)}function m_(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var o=Ly();xa(e,n),function(e){0!==e.tag&&Nb()&&null===Bb.current&&a("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),Zb===e&&ba(ey,n)&&(ry===Yb||ry===Wb&&la(ey)&&Lr()-cy<dy?Zy(e,0):sy=ya(sy,n)),Uy(e,o)}function g_(e,t){0===t&&(t=Fy(e));var n=Ly(),r=df(e,t);null!==r&&(Sa(r,t,n),Uy(r,n))}function b_(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),g_(e,n)}function y_(e,t){var n,r=0;switch(e.tag){case c:n=e.stateNode;var o=e.memoizedState;null!==o&&(r=o.retryLane);break;case m:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),g_(e,r)}function __(e,t){qe(e),v_(e,gr,$b),t&&v_(e,br,Rb),v_(e,gr,Ob),t&&v_(e,br,Ab),He()}function v_(e,t,n){for(var r=e,o=null;null!==r;){var a=r.subtreeFlags&t;r!==o&&null!==r.child&&0!==a?r=r.child:(0!==(r.flags&t)&&n(r),r=null!==r.sibling?r.sibling:o=r.return)}}var w_,S_=null;function x_(e){if((Qb&zb)===Ub&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===l||t===d||t===f){var n=je(e)||"ReactComponent";if(null!==S_){if(S_.has(n))return;S_.add(n)}else S_=new Set([n]);var r=Be;try{qe(e),a("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?qe(e):He()}}}}w_=function(e,t,n){var r=rv(null,t);try{return _g(e,t,n)}catch(a){if(Qc||null!==a&&"object"==typeof a&&"function"==typeof a.then)throw a;if(Zd(),xp(),Pg(0,t),rv(t,r),2&t.mode&&Vh(t),Zn(null,_g,null,e,t,n),Wn){var o=Jn();"object"==typeof o&&null!==o&&o._suppressLogging&&"object"==typeof a&&null!==a&&!a._suppressLogging&&(a._suppressLogging=!0)}throw a}};var T_,E_=!1;function k_(e,t){Xr&&e.memoizedUpdaters.forEach(function(n){Ea(e,n,t)})}T_=new Set;var P_={};function O_(e,t){var n=Bb.current;return null!==n?(n.push(t),P_):Cr(e,t)}function A_(e){if(e!==P_)return Dr(e)}function $_(){return null!==Bb.current}function R_(e){Ny=e}var I_=null,C_=null,D_=function(e){I_=e};function N_(e){if(null===I_)return e;var t=I_(e);return void 0===t?e:t.current}function M_(e){return N_(e)}function L_(e){if(null===I_)return e;var t=I_(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=N_(e.render);if(e.render!==n){var r={$$typeof:ie,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function j_(e,t){if(null===I_)return!1;var n=e.elementType,r=t.type,o=!1,a="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(o=!0);break;case 0:("function"==typeof r||a===ce)&&(o=!0);break;case l:(a===ie||a===ce)&&(o=!0);break;case d:case f:(a===ue||a===ce)&&(o=!0);break;default:return!1}if(o){var i=I_(n);if(void 0!==i&&i===I_(r))return!0}return!1}function F_(e){null!==I_&&"function"==typeof WeakSet&&(null===C_&&(C_=new WeakSet),C_.add(e))}var B_=function(e,t){if(null!==I_){var n=t.staleFamilies,r=t.updatedFamilies;c_(),Yy(function(){z_(e.current,r,n)})}},U_=function(e,t){e.context===cc&&(c_(),Yy(function(){pv(t,e,null,null)}))};function z_(e,t,n){var r=e.alternate,o=e.child,a=e.sibling,i=e.tag,s=e.type,u=null;switch(i){case 0:case f:case 1:u=s;break;case l:u=s.render}if(null===I_)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(null!==u){var p=I_(u);void 0!==p&&(n.has(p)?d=!0:t.has(p)&&(1===i?d=!0:c=!0))}if(null!==C_&&(C_.has(e)||null!==r&&C_.has(r))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var h=df(e,So);null!==h&&By(h,e,So,ea)}null===o||d||z_(o,t,n),null!==a&&z_(a,t,n)}var V_,H_=function(e,t){var n=new Set,r=new Set(t.map(function(e){return e.current}));return q_(e.current,r,n),n};function q_(e,t,n){var r=e.child,o=e.sibling,a=e.tag,i=e.type,s=null;switch(a){case 0:case f:case 1:s=i;break;case l:s=i.render}var u=!1;null!==s&&t.has(s)&&(u=!0),u?function(e,t){var n=function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t);if(n)return;var r=e;for(;;){switch(r.tag){case 5:return void t.add(r.stateNode);case 4:case 3:return void t.add(r.stateNode.containerInfo)}if(null===r.return)throw new Error("Expected to reach root first.");r=r.return}}(e,n):null!==r&&q_(r,t,n),null!==o&&q_(o,t,n)}V_=!1;try{Object.preventExtensions({})}catch(rw){V_=!0}function G_(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,V_||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var W_=function(e,t,n,r){return new G_(e,t,n,r)};function Y_(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function K_(e,t){var n=e.alternate;null===n?((n=W_(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Sr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case f:n.type=N_(e.type);break;case 1:n.type=M_(e.type);break;case l:n.type=L_(e.type)}return n}function X_(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function Q_(e,t,n,r,o,i){var f=2,p=e;if("function"==typeof e)Y_(e)?(f=1,p=M_(p)):p=N_(p);else if("string"==typeof e)f=5;else e:switch(e){case te:return J_(n.children,o,i,t);case ne:f=8,1&(o|=8)&&(o|=bo);break;case re:return function(e,t,n,r){"string"!=typeof e.id&&a('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var o=W_(u,e,r,2|t);return o.elementType=re,o.lanes=n,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}(n,o,i,t);case se:return function(e,t,n,r){var o=W_(c,e,r,t);return o.elementType=se,o.lanes=n,o}(n,o,i,t);case le:return function(e,t,n,r){var o=W_(m,e,r,t);return o.elementType=le,o.lanes=n,o}(n,o,i,t);case de:return ev(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:f=s;break e;case ae:f=9;break e;case ie:f=l,p=L_(p);break e;case ue:f=d;break e;case ce:f=16,p=null;break e}var h="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=r?je(r):null;throw g&&(h+="\n\nCheck the render method of `"+g+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+h)}var b=W_(f,n,t,o);return b.elementType=e,b.type=p,b.lanes=i,b._debugOwner=r,b}function Z_(e,t,n){var r;r=e._owner;var o=Q_(e.type,e.key,e.props,r,t,n);return o._debugSource=e._source,o._debugOwner=e._owner,o}function J_(e,t,n,r){var o=W_(7,e,r,t);return o.lanes=n,o}function ev(e,t,n,r){var o=W_(b,e,r,t);o.elementType=de,o.lanes=n;return o.stateNode={isHidden:!1},o}function tv(e,t,n){var r=W_(6,e,null,t);return r.lanes=n,r}function nv(e,t,n){var r=null!==e.children?e.children:[],o=W_(4,r,e.key,t);return o.lanes=n,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function rv(e,t){return null===e&&(e=W_(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function ov(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=wa(0),this.expirationTimes=wa(ea),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=wa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var a=this.pendingUpdatersLaneMap=[],i=0;i<wo;i++)a.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function av(e,t,n,r,o,a,i,s,l,u){var c=new ov(e,t,n,s,l),d=function(e,t){var n;return 1===e?(n=1,!0===t&&(n|=8,n|=bo)):n=0,Xr&&(n|=2),W_(3,null,null,n)}(t,a);c.current=d,d.stateNode=c;var f={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=f,_f(d),c}var iv,sv,lv="18.3.1";function uv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e){if(A(e))a("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",O(e)),$(e)}(r),{$$typeof:ee,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function cv(e){if(!e)return cc;var t=er(e),n=Ec(t);if(1===t.tag){var r=t.type;if(yc(r))return Sc(t,r,n)}return n}function dv(e,t,n,r,o,a,i,s){return av(e,t,!1,null,0,r,0,a,i)}function fv(e,t,n,r,o,a,i,s,l,u){var c=av(n,r,!0,e,0,a,0,s,l);c.context=cv(null);var d=c.current,f=Ly(),p=jy(d),h=wf(f,p);return h.callback=null!=t?t:null,Sf(d,h,p),function(e,t,n){e.current.lanes=t,Sa(e,t,n),Uy(e,n)}(c,p,f),c}function pv(e,t,n,r){!function(e,t){if(Wr&&"function"==typeof Wr.onScheduleFiberRoot)try{Wr.onScheduleFiberRoot(Gr,e,t)}catch(n){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",n))}}(t,e);var o=t.current,i=Ly(),s=jy(o);!function(e){null!==Yr&&"function"==typeof Yr.markRenderScheduled&&Yr.markRenderScheduled(e)}(s);var l=cv(n);null===t.context?t.context=l:t.pendingContext=l,Ue&&null!==Be&&!iv&&(iv=!0,a("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",je(Be)||"Unknown"));var u=wf(i,s);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&a("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=Sf(o,u,s);return null!==c&&(By(c,o,s,i),xf(c,o,s)),s}function hv(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function mv(e,t){var n,r,o=e.memoizedState;null!==o&&null!==o.dehydrated&&(o.retryLane=(n=o.retryLane,r=t,0!==n&&n<r?n:r))}function gv(e,t){mv(e,t);var n=e.alternate;n&&mv(n,t)}function bv(e){var t=Rr(e);return null===t?null:t.stateNode}iv=!1,sv={};var yv=function(e){return null};var _v=function(e){return!1};var vv,wv,Sv,xv,Tv,Ev,kv,Pv,Ov,Av=function(e,t,n){var r=t[n],o=vt(e)?e.slice():we({},e);return n+1===t.length?(vt(o)?o.splice(r,1):delete o[r],o):(o[r]=Av(e[r],t,n+1),o)},$v=function(e,t){return Av(e,t,0)},Rv=function(e,t,n,r){var o=t[r],a=vt(e)?e.slice():we({},e);r+1===t.length?(a[n[r]]=a[o],vt(a)?a.splice(o,1):delete a[o]):a[o]=Rv(e[o],t,n,r+1);return a},Iv=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void o("copyWithRename() expects paths to be the same except for the deepest key");return Rv(e,t,n,0)}o("copyWithRename() expects paths of the same length")},Cv=function(e,t,n,r){if(n>=t.length)return r;var o=t[n],a=vt(e)?e.slice():we({},e);return a[o]=Cv(e[o],t,n+1,r),a},Dv=function(e,t,n){return Cv(e,t,0,n)},Nv=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function Mv(e){var t=Ar(e);return null===t?null:t.stateNode}function Lv(e){return null}function jv(){return Be}vv=function(e,t,n,r){var o=Nv(e,t);if(null!==o){var a=Dv(o.memoizedState,n,r);o.memoizedState=a,o.baseState=a,e.memoizedProps=we({},e.memoizedProps);var i=df(e,So);null!==i&&By(i,e,So,ea)}},wv=function(e,t,n){var r=Nv(e,t);if(null!==r){var o=$v(r.memoizedState,n);r.memoizedState=o,r.baseState=o,e.memoizedProps=we({},e.memoizedProps);var a=df(e,So);null!==a&&By(a,e,So,ea)}},Sv=function(e,t,n,r){var o=Nv(e,t);if(null!==o){var a=Iv(o.memoizedState,n,r);o.memoizedState=a,o.baseState=a,e.memoizedProps=we({},e.memoizedProps);var i=df(e,So);null!==i&&By(i,e,So,ea)}},xv=function(e,t,n){e.pendingProps=Dv(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=df(e,So);null!==r&&By(r,e,So,ea)},Tv=function(e,t){e.pendingProps=$v(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=df(e,So);null!==n&&By(n,e,So,ea)},Ev=function(e,t,n){e.pendingProps=Iv(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=df(e,So);null!==r&&By(r,e,So,ea)},kv=function(e){var t=df(e,So);null!==t&&By(t,e,So,ea)},Pv=function(e){yv=e},Ov=function(e){_v=e};var Fv="function"==typeof reportError?reportError:function(e){console.error(e)};function Bv(e){this._internalRoot=e}function Uv(e){this._internalRoot=e}function zv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Vv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hv(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&a("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Wu(e)&&(e._reactRootContainer?a("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):a("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}Uv.prototype.render=Bv.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw new Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?a("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):zv(arguments[1])?a("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==arguments[1]&&a("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=bv(t.current);r&&r.parentNode!==n&&a("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}pv(e,t,null,null)},Uv.prototype.unmount=Bv.prototype.unmount=function(){"function"==typeof arguments[0]&&a("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Ky()&&a("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Yy(function(){pv(null,e,null,null)}),Gu(t)}},Uv.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t=$a(),n={blockedOn:null,target:e,priority:t},r=0;r<Xa.length&&Fa(t,Xa[r].priority);r++);Xa.splice(r,0,n),0===r&&ei(n)}(e)};var qv,Gv=n.ReactCurrentOwner;function Wv(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function Yv(){}function Kv(e,t,n,r,o){qv(n),function(e,t){null!==e&&"function"!=typeof e&&a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}(void 0===o?null:o,"render");var i,s=n._reactRootContainer;if(s){if("function"==typeof o){var l=o;o=function(){var e=hv(i);l.call(e)}}pv(t,i=s,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=hv(i);a.call(e)}}var i=fv(t,r,e,0,0,!1,0,"",Yv);return e._reactRootContainer=i,qu(i.current,e),gl(8===e.nodeType?e.parentNode:e),Yy(),i}for(var s;s=e.lastChild;)e.removeChild(s);if("function"==typeof r){var l=r;r=function(){var e=hv(u);l.call(e)}}var u=dv(e,0,0,!1,0,"",Yv);return e._reactRootContainer=u,qu(u.current,e),gl(8===e.nodeType?e.parentNode:e),Yy(function(){pv(t,u,n,r)}),u}(n,t,e,o,r);return hv(i)}qv=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=bv(e._reactRootContainer.current);t&&t.parentNode!==e&&a("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,r=Wv(e);!(!r||!Ku(r))&&!n&&a("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&a("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};var Xv=!1;var Qv=!1;Pa=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Ua(t)){var n=function(e){return ra(e.pendingLanes)}(t);!function(e,t){0!==t&&(Ta(e,ya(t,So)),Uy(e,Lr()),(Qb&(zb|Vb))===Ub&&(my(),Rc()))}(t,n)}break;case c:Yy(function(){var t=df(e,So);if(null!==t){var n=Ly();By(t,e,So,n)}}),gv(e,So)}},function(e){Oa=e}(function(e){if(e.tag===c){var t=Yo,n=df(e,t);if(null!==n)By(n,e,t,Ly());gv(e,t)}}),function(e){Aa=e}(function(e){if(e.tag===c){var t=jy(e),n=df(e,t);if(null!==n)By(n,e,t,Ly());gv(e,t)}}),function(e){$a=e}(La),function(e){Ra=e}(function(e,t){var n=Ma;try{return Ma=e,t()}finally{Ma=n}}),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||a("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),An=function(e,t,n){switch(t){case"input":return void ft(e,n);case"textarea":return void function(e,t){At(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&xt(n,!!t.multiple,r,!1)}(e,n)}},Nn=Wy,Mn=Yy;var Zv,Jv,ew,tw={usingClientEntryPoint:!1,Events:[Ku,Xu,Qu,Cn,Dn,Wy]};if(!(Jv=(Zv={findFiberByHostInstance:Yu,bundleType:1,version:lv,rendererPackageName:"react-dom"}).findFiberByHostInstance,ew=n.ReactCurrentDispatcher,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return a("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=we({},e,{getLaneLabelMap:Jr,injectProfilingHooks:Zr}),Gr=t.inject(e),Wr=t}catch(n){a("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}({bundleType:Zv.bundleType,version:Zv.version,rendererPackageName:Zv.rendererPackageName,rendererConfig:Zv.rendererConfig,overrideHookState:vv,overrideHookStateDeletePath:wv,overrideHookStateRenamePath:Sv,overrideProps:xv,overridePropsDeletePath:Tv,overridePropsRenamePath:Ev,setErrorHandler:Pv,setSuspenseHandler:Ov,scheduleUpdate:kv,currentDispatcherRef:ew,findHostInstanceByFiber:Mv,findFiberByHostInstance:Jv||Lv,findHostInstancesForRefresh:H_,scheduleRefresh:B_,scheduleRoot:U_,setRefreshHandler:D_,getCurrentFiber:jv,reconcilerVersion:lv}))&&k&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var nw=window.location.protocol;/^(https?|file):$/.test(nw)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===nw?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}reactDom_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tw,reactDom_development.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!zv(t))throw new Error("Target container is not a DOM element.");return uv(e,t,null,n)},reactDom_development.createRoot=function(e,t){return tw.usingClientEntryPoint||a('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!zv(e))throw new Error("createRoot(...): Target container is not a DOM element.");Hv(e);var n=!1,r="",i=Fv;null!=t&&(t.hydrate?o("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===J&&a("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var s=dv(e,1,0,n,0,r,i);return qu(s.current,e),gl(8===e.nodeType?e.parentNode:e),new Bv(s)}(e,t)},reactDom_development.findDOMNode=function(e){Xv||(Xv=!0,a("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=Gv.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||a("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Me(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=er(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var o=Ar(n);if(null===o)return null;if(8&o.mode){var i=je(n)||"Component";if(!sv[i]){sv[i]=!0;var s=Be;try{qe(o),8&n.mode?a("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):a("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{s?qe(s):He()}}}return o.stateNode}(e,"findDOMNode")},reactDom_development.flushSync=function(e){return Ky()&&a("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Yy(e)},reactDom_development.hydrate=function(e,t,n){if(a("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Vv(t))throw new Error("Target container is not a DOM element.");return Wu(t)&&void 0===t._reactRootContainer&&a("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),Kv(null,e,t,!0,n)},reactDom_development.hydrateRoot=function(e,t,n){return tw.usingClientEntryPoint||a('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!zv(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");Hv(e),void 0===t&&a("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Fv;null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError));var l=fv(t,null,e,1,0,o,0,i,s);if(qu(l.current,e),gl(e),r)for(var u=0;u<r.length;u++)Zf(l,r[u]);return new Uv(l)}(e,t,n)},reactDom_development.render=function(e,t,n){if(a("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Vv(t))throw new Error("Target container is not a DOM element.");return Wu(t)&&void 0===t._reactRootContainer&&a("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),Kv(null,e,t,!1,n)},reactDom_development.unmountComponentAtNode=function(e){if(Qv||(Qv=!0,a("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Vv(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(Wu(e)&&void 0===e._reactRootContainer&&a("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=Wv(e);return t&&!Ku(t)&&a("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),Yy(function(){Kv(null,null,e,!1,function(){e._reactRootContainer=null,Gu(e)})}),!0}var n=Wv(e),r=!(!n||!Ku(n)),o=1===e.nodeType&&Vv(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&a("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},reactDom_development.unstable_batchedUpdates=Wy,reactDom_development.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(a("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Vv(n))throw new Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw new Error("parentComponent must be a valid React Component");return Kv(e,t,n,!1,r)}(e,t,n,r)},reactDom_development.version=lv,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),reactDom_development}function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}}"production"===process.env.NODE_ENV?(checkDCE(),reactDom.exports=requireReactDom_production_min()):reactDom.exports=requireReactDom_development();var reactDomExports=reactDom.exports,createRoot,m=reactDomExports;if("production"===process.env.NODE_ENV)createRoot=m.createRoot,m.hydrateRoot;else{var i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;createRoot=function(e,t){i.usingClientEntryPoint=!0;try{return m.createRoot(e,t)}finally{i.usingClientEntryPoint=!1}}}var reactExports=requireReact();const LogoIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M16 4C9.37 4 4 9.37 4 16s5.37 12 12 12 12-5.37 12-12S22.63 4 16 4z",fill:"#2563eb"}),jsxRuntimeExports.jsx("path",{d:"M16 8c-2.2 0-4 1.8-4 4v4c0 2.2 1.8 4 4 4s4-1.8 4-4v-4c0-2.2-1.8-4-4-4z",fill:"white"}),jsxRuntimeExports.jsx("path",{d:"M22 16c0 3.3-2.7 6-6 6s-6-2.7-6-6H8c0 4.1 3.1 7.5 7 7.9V26h2v-2.1c3.9-.4 7-3.8 7-7.9h-2z",fill:"white"})]}),MicIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),jsxRuntimeExports.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),jsxRuntimeExports.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]}),CloseIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),MinimizeIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),jsxRuntimeExports.jsx("path",{d:"M9 3v18"})]}),ErrorIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),ChatIcon=()=>jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntimeExports.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})});function FloatingPanel({children:e,position:t,onClose:n,onMinimize:r}){const o=reactExports.useRef(null),a=reactExports.useRef(!1),i=reactExports.useRef({x:0,y:0,right:20,bottom:20}),s=reactExports.useCallback(e=>{if(e.target.closest("button"))return;a.current=!0;const t=o.current;t&&(i.current={x:e.clientX,y:e.clientY,right:parseInt(t.style.right||"20"),bottom:parseInt(t.style.bottom||"20")})},[]);reactExports.useEffect(()=>{const e=e=>{if(!a.current||!o.current)return;const t=i.current.x-e.clientX,n=i.current.y-e.clientY;o.current.style.right=`${i.current.right+t}px`,o.current.style.bottom=`${i.current.bottom+n}px`},t=()=>{a.current=!1};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[]);const l={bottom:(null==t?void 0:t.bottom)??20,right:(null==t?void 0:t.right)??20,...void 0!==(null==t?void 0:t.top)&&{top:t.top,bottom:"auto"},...void 0!==(null==t?void 0:t.left)&&{left:t.left,right:"auto"}};return jsxRuntimeExports.jsxs("div",{ref:o,className:"scribe-panel",style:l,children:[jsxRuntimeExports.jsxs("div",{className:"panel-header",onMouseDown:s,children:[jsxRuntimeExports.jsxs("div",{className:"drag-handle",children:[jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{})]}),jsxRuntimeExports.jsxs("div",{className:"header-actions",children:[jsxRuntimeExports.jsx("button",{className:"header-btn",onClick:r,title:"Minimize",children:jsxRuntimeExports.jsx(MinimizeIcon,{})}),jsxRuntimeExports.jsx("button",{className:"header-btn",onClick:n,title:"Close",children:jsxRuntimeExports.jsx(CloseIcon,{})})]})]}),jsxRuntimeExports.jsx("div",{className:"panel-content",children:e})]})}function ConfigState({onSubmit:e,initialApiKey:t="",initialBaseUrl:n=""}){const[r,o]=reactExports.useState(t),[a,i]=reactExports.useState(n),[s,l]=reactExports.useState("");return jsxRuntimeExports.jsxs("div",{className:"config-state",children:[jsxRuntimeExports.jsxs("div",{className:"logo",children:[jsxRuntimeExports.jsx("div",{className:"logo-icon",children:jsxRuntimeExports.jsx(LogoIcon,{})}),jsxRuntimeExports.jsx("span",{className:"logo-text",children:"eka.scribe"})]}),jsxRuntimeExports.jsxs("form",{className:"config-form",onSubmit:t=>{t.preventDefault(),a.trim()?(l(""),e(r.trim(),a.trim())):l("Base URL is required")},children:[jsxRuntimeExports.jsxs("div",{className:"form-group",children:[jsxRuntimeExports.jsx("label",{htmlFor:"eka-api-key",children:"API Key"}),jsxRuntimeExports.jsx("input",{id:"eka-api-key",type:"text",value:r,onChange:e=>o(e.target.value),placeholder:"Enter your API key (optional)"})]}),jsxRuntimeExports.jsxs("div",{className:"form-group",children:[jsxRuntimeExports.jsx("label",{htmlFor:"eka-base-url",children:"Base URL"}),jsxRuntimeExports.jsx("input",{id:"eka-base-url",type:"text",value:a,onChange:e=>i(e.target.value),placeholder:"https://api.eka.care",required:!0})]}),s&&jsxRuntimeExports.jsx("p",{className:"config-error",children:s}),jsxRuntimeExports.jsx("button",{type:"submit",className:"config-submit-btn",children:"Continue"})]})]})}function IdleState({onStartRecording:e}){return jsxRuntimeExports.jsxs("div",{className:"idle-state",children:[jsxRuntimeExports.jsxs("div",{className:"logo",children:[jsxRuntimeExports.jsx("div",{className:"logo-icon",children:jsxRuntimeExports.jsx(LogoIcon,{})}),jsxRuntimeExports.jsx("span",{className:"logo-text",children:"eka.scribe"})]}),jsxRuntimeExports.jsxs("button",{className:"start-btn",onClick:e,children:["Start Recording",jsxRuntimeExports.jsx("span",{className:"mic-icon",children:jsxRuntimeExports.jsx(MicIcon,{})})]})]})}function PermissionState({onRequestPermission:e}){return jsxRuntimeExports.jsxs("div",{className:"permission-state",children:[jsxRuntimeExports.jsx("div",{className:"permission-icon",children:jsxRuntimeExports.jsx(MicIcon,{})}),jsxRuntimeExports.jsxs("p",{className:"permission-text",children:["Microphone access is required to record audio.",jsxRuntimeExports.jsx("br",{}),"Please allow access when prompted."]}),jsxRuntimeExports.jsx("button",{className:"permission-btn",onClick:e,children:"Allow Microphone"})]})}function formatTime(e){const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`}function RecordingState({elapsedTime:e,isPaused:t,onPause:n,onResume:r,onStop:o}){return jsxRuntimeExports.jsxs("div",{className:"recording-state",children:[jsxRuntimeExports.jsxs("div",{className:"recording-indicator",children:[jsxRuntimeExports.jsx("div",{className:"recording-icon "+(t?"":"active"),children:jsxRuntimeExports.jsx(ChatIcon,{})}),jsxRuntimeExports.jsx("span",{className:"timer",children:formatTime(e)})]}),jsxRuntimeExports.jsxs("div",{className:"recording-actions",children:[t?jsxRuntimeExports.jsx("button",{className:"resume-btn",onClick:r,children:"Resume"}):jsxRuntimeExports.jsx("button",{className:"pause-btn",onClick:n,children:"Pause"}),jsxRuntimeExports.jsx("button",{className:"stop-btn",onClick:o,title:"Stop recording",children:jsxRuntimeExports.jsx("div",{className:"stop-icon"})})]})]})}function ProcessingState(){return jsxRuntimeExports.jsxs("div",{className:"processing-state",children:[jsxRuntimeExports.jsx("div",{className:"spinner"}),jsxRuntimeExports.jsx("p",{className:"processing-text",children:"Processing your recording..."})]})}function ResultsState({result:e,onNewRecording:t}){return jsxRuntimeExports.jsxs("div",{className:"results-state",children:[jsxRuntimeExports.jsxs("div",{className:"results-header",children:[jsxRuntimeExports.jsx("span",{className:"results-title",children:"Recording Complete"}),jsxRuntimeExports.jsx("button",{className:"new-recording-btn",onClick:t,children:"New Recording"})]}),jsxRuntimeExports.jsx("div",{className:"results-content",children:jsxRuntimeExports.jsxs("div",{className:"transcript-section",children:[jsxRuntimeExports.jsx("div",{className:"section-title",children:"Transcript"}),jsxRuntimeExports.jsx("div",{className:"transcript-text",children:e.transcript||"No transcript available."})]})})]})}function ErrorState({message:e,onRetry:t}){return jsxRuntimeExports.jsxs("div",{className:"error-state",children:[jsxRuntimeExports.jsx("div",{className:"error-icon",children:jsxRuntimeExports.jsx(ErrorIcon,{})}),jsxRuntimeExports.jsx("p",{className:"error-message",children:e}),jsxRuntimeExports.jsx("button",{className:"retry-btn",onClick:t,children:"Try Again"})]})}const WELL_KNOWN_PATH="/.well-known/medscribealliance";var SessionStatus,SessionStatus2,TemplateStatus,TemplateStatus2,UploadType,UploadType2,ErrorCode,ErrorCode2,HttpStatus,HttpStatus2;SessionStatus2=SessionStatus||(SessionStatus={}),SessionStatus2.CREATED="created",SessionStatus2.PROCESSING="processing",SessionStatus2.COMPLETED="completed",SessionStatus2.PARTIAL="partial",SessionStatus2.FAILED="failed",TemplateStatus2=TemplateStatus||(TemplateStatus={}),TemplateStatus2.SUCCESS="success",TemplateStatus2.FAILED="failed",UploadType2=UploadType||(UploadType={}),UploadType2.CHUNKED="chunked",UploadType2.SINGLE="single",ErrorCode2=ErrorCode||(ErrorCode={}),ErrorCode2.AUTHENTICATION_FAILED="authentication_failed",ErrorCode2.TOKEN_EXPIRED="token_expired",ErrorCode2.INVALID_API_KEY="invalid_api_key",ErrorCode2.FORBIDDEN="forbidden",ErrorCode2.RATE_LIMIT_EXCEEDED="rate_limit_exceeded",ErrorCode2.SESSION_NOT_FOUND="session_not_found",ErrorCode2.TEMPLATE_NOT_FOUND="template_not_found",ErrorCode2.WEBHOOK_NOT_FOUND="webhook_not_found",ErrorCode2.SESSION_EXPIRED="session_expired",ErrorCode2.INVALID_REQUEST="invalid_request",ErrorCode2.INVALID_AUDIO_FORMAT="invalid_audio_format",ErrorCode2.CHUNK_TOO_LARGE="chunk_too_large",ErrorCode2.INVALID_TEMPLATE="invalid_template",ErrorCode2.MISSING_REQUIRED_FIELD="missing_required_field",ErrorCode2.PROCESSING_FAILED="processing_failed",ErrorCode2.AUDIO_QUALITY_POOR="audio_quality_poor",ErrorCode2.AUDIO_TOO_SHORT="audio_too_short",ErrorCode2.LANGUAGE_UNSUPPORTED="language_unsupported",ErrorCode2.INTERNAL_ERROR="internal_error",ErrorCode2.SERVICE_UNAVAILABLE="service_unavailable",HttpStatus2=HttpStatus||(HttpStatus={}),HttpStatus2[HttpStatus2.OK=200]="OK",HttpStatus2[HttpStatus2.CREATED=201]="CREATED",HttpStatus2[HttpStatus2.ACCEPTED=202]="ACCEPTED",HttpStatus2[HttpStatus2.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",HttpStatus2[HttpStatus2.BAD_REQUEST=400]="BAD_REQUEST",HttpStatus2[HttpStatus2.UNAUTHORIZED=401]="UNAUTHORIZED",HttpStatus2[HttpStatus2.FORBIDDEN=403]="FORBIDDEN",HttpStatus2[HttpStatus2.NOT_FOUND=404]="NOT_FOUND",HttpStatus2[HttpStatus2.GONE=410]="GONE",HttpStatus2[HttpStatus2.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",HttpStatus2[HttpStatus2.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",HttpStatus2[HttpStatus2.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",HttpStatus2[HttpStatus2.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE";class DiscoveryAPI{constructor(e){this.cachedDiscovery=null,this.cacheTimestamp=0,this.cacheDuration=36e5,this.httpClient=e}async getDiscovery(e,t=!1){const n=Date.now();if(!t&&this.cachedDiscovery&&n-this.cacheTimestamp<this.cacheDuration)return this.cachedDiscovery;const r=e+WELL_KNOWN_PATH,o=await this.httpClient.get(r);return this.cachedDiscovery=o,this.cacheTimestamp=n,o}clearCache(){this.cachedDiscovery=null,this.cacheTimestamp=0}getCachedDiscovery(){const e=Date.now();return this.cachedDiscovery&&e-this.cacheTimestamp<this.cacheDuration?this.cachedDiscovery:null}}var ajv={exports:{}},core$2={},validate={},boolSchema={},errors={},codegen={},code$1={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){const n=[e[0]];let o=0;for(;o<t.length;)s(n,t[o]),n.push(e[++o]);return new r(n)}e._Code=r,e.nil=new r(""),e._=o;const a=new r("+");function i(e,...t){const n=[u(e[0])];let o=0;for(;o<t.length;)n.push(a),s(n,t[o]),n.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new r(n)}function s(e,t){var o;t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(o=t)||"boolean"==typeof o||null===o?o:u(Array.isArray(o)?o.join(","):o))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new r(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new r(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new r(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new r(e.toString())}}(code$1);var scope={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=code$1;class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r,o;(o=r||(e.UsedValueState=r={}))[o.Started=0]="Started",o[o.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=a;class i extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=t._`.${new t.Name(n)}[${r}]`}}e.ValueScopeName=i;const s=t._`\n`;e.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:t.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:o}=r,a=null!==(n=t.key)&&void 0!==n?n:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,r);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:o,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(void 0===n.scopePath)throw new Error(`CodeGen: name "${n}" has no value`);return t._`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach(o=>{if(d.has(o))return;d.set(o,r.Started);let i=a(o);if(i){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${n} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new n(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,r.Completed)})}return l}}}(scope),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=code$1,n=scope;var r=code$1;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=scope;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,n),this}get names(){return O(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||($(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>P(e,t.names),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class g extends h{}g.kind="else";class b extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(R(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return O(e,this.condition),this.else&&P(e,this.else.names),e}}b.kind="if";class y extends h{}y.kind="for";class _ extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return P(super.names,this.iteration.names)}}class v extends y{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:o,to:a}=this;return`for(${t} ${r}=${o}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=O(super.names,this.from);return O(e,this.to)}}class w extends y{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return P(super.names,this.iterable.names)}}class S extends h{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class x extends p{render(e){return"return "+super.render(e)}}x.kind="return";class T extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&P(e,this.catch.names),this.finally&&P(e,this.finally.names),e}}class E extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class k extends h{render(e){return"finally"+super.render(e)}}k.kind="finally";function P(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function O(e,n){return n instanceof t._CodeOrName?P(e,n.names):e}function A(e,n,r){return e instanceof t.Name?a(e):(o=e)instanceof t._Code&&o._items.some(e=>e instanceof t.Name&&1===n[e.str]&&void 0!==r[e.str])?new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=a(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[])):e;var o;function a(e){const t=r[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function $(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${N(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new i(e,o,n)),o}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new l(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const n=["{"];for(const[r,o]of e)n.length>1&&n.push(","),n.push(r),(r!==o||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,o));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(b,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,r,o,a=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const i=this._scope.toName(e);return this._for(new v(a,i,t,r),()=>o(i))}forOf(e,r,o,a=n.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=r instanceof t.Name?r:this.var("_arr",r);return this.forRange("_i",0,t._`${e}.length`,n=>{this.var(i,t._`${e}[${n}]`),o(i)})}return this._for(new w("of",a,i,r),()=>o(i))}forIn(e,r,o,a=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${r})`,o);const i=this._scope.toName(e);return this._for(new w("in",a,i,r),()=>o(i))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new x;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new T;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new k,this.code(n)),this._endBlockNode(E,k)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,o){return this._blockNode(new S(e,n,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=R;const I=D(e.operators.AND);e.and=function(...e){return e.reduce(I)};const C=D(e.operators.OR);function D(e){return(n,r)=>n===t.nil?r:r===t.nil?n:t._`${N(n)} ${e} ${N(r)}`}function N(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(C)}}(codegen);var util={};Object.defineProperty(util,"__esModule",{value:!0}),util.checkStrictMode=util.getErrorPath=util.Type=util.useFunc=util.setEvaluated=util.evaluatedPropsToName=util.mergeEvaluated=util.eachItem=util.unescapeJsonPointer=util.escapeJsonPointer=util.escapeFragment=util.unescapeFragment=util.schemaRefOrVal=util.schemaHasRulesButRef=util.schemaHasRules=util.checkUnknownRules=util.alwaysValidSchema=util.toHash=void 0;const codegen_1$v=codegen,code_1$a=code$1;function toHash(e){const t={};for(const n of e)t[n]=!0;return t}function alwaysValidSchema(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(checkUnknownRules(e,t),!schemaHasRules(t,e.self.RULES.all))}function checkUnknownRules(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const a in t)o[a]||checkStrictMode(e,`unknown keyword: "${a}"`)}function schemaHasRules(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function schemaHasRulesButRef(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1}function schemaRefOrVal({topSchemaRef:e,schemaPath:t},n,r,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return codegen_1$v._`${n}`}return codegen_1$v._`${e}${t}${(0,codegen_1$v.getProperty)(r)}`}function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}function escapeJsonPointer(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function eachItem(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}function makeMergeEvaluated({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(o,a,i,s)=>{const l=void 0===i?a:i instanceof codegen_1$v.Name?(a instanceof codegen_1$v.Name?e(o,a,i):t(o,a,i),i):a instanceof codegen_1$v.Name?(t(o,i,a),a):n(a,i);return s!==codegen_1$v.Name||l instanceof codegen_1$v.Name?l:r(o,l)}}function evaluatedPropsToName(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",codegen_1$v._`{}`);return void 0!==t&&setEvaluated(e,n,t),n}function setEvaluated(e,t,n){Object.keys(n).forEach(n=>e.assign(codegen_1$v._`${t}${(0,codegen_1$v.getProperty)(n)}`,!0))}util.toHash=toHash,util.alwaysValidSchema=alwaysValidSchema,util.checkUnknownRules=checkUnknownRules,util.schemaHasRules=schemaHasRules,util.schemaHasRulesButRef=schemaHasRulesButRef,util.schemaRefOrVal=schemaRefOrVal,util.unescapeFragment=unescapeFragment,util.escapeFragment=escapeFragment,util.escapeJsonPointer=escapeJsonPointer,util.unescapeJsonPointer=unescapeJsonPointer,util.eachItem=eachItem,util.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(e,t,n)=>e.if(codegen_1$v._`${n} !== true && ${t} !== undefined`,()=>{e.if(codegen_1$v._`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,codegen_1$v._`${n} || {}`).code(codegen_1$v._`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if(codegen_1$v._`${n} !== true`,()=>{!0===t?e.assign(n,!0):(e.assign(n,codegen_1$v._`${n} || {}`),setEvaluated(e,n,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(e,t,n)=>e.if(codegen_1$v._`${n} !== true && ${t} !== undefined`,()=>e.assign(n,codegen_1$v._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if(codegen_1$v._`${n} !== true`,()=>e.assign(n,!0===t||codegen_1$v._`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},util.evaluatedPropsToName=evaluatedPropsToName,util.setEvaluated=setEvaluated;const snippets={};function useFunc(e,t){return e.scopeValue("func",{ref:t,code:snippets[t.code]||(snippets[t.code]=new code_1$a._Code(t.code))})}var Type,Type2;function getErrorPath(e,t,n){if(e instanceof codegen_1$v.Name){const r=t===Type.Num;return n?r?codegen_1$v._`"[" + ${e} + "]"`:codegen_1$v._`"['" + ${e} + "']"`:r?codegen_1$v._`"/" + ${e}`:codegen_1$v._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,codegen_1$v.getProperty)(e).toString():"/"+escapeJsonPointer(e)}function checkStrictMode(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}util.useFunc=useFunc,Type2=Type||(util.Type=Type={}),Type2[Type2.Num=0]="Num",Type2[Type2.Str=1]="Str",util.getErrorPath=getErrorPath,util.checkStrictMode=checkStrictMode;var names$1={};Object.defineProperty(names$1,"__esModule",{value:!0});const codegen_1$u=codegen,names={data:new codegen_1$u.Name("data"),valCxt:new codegen_1$u.Name("valCxt"),instancePath:new codegen_1$u.Name("instancePath"),parentData:new codegen_1$u.Name("parentData"),parentDataProperty:new codegen_1$u.Name("parentDataProperty"),rootData:new codegen_1$u.Name("rootData"),dynamicAnchors:new codegen_1$u.Name("dynamicAnchors"),vErrors:new codegen_1$u.Name("vErrors"),errors:new codegen_1$u.Name("errors"),this:new codegen_1$u.Name("this"),self:new codegen_1$u.Name("self"),scope:new codegen_1$u.Name("scope"),json:new codegen_1$u.Name("json"),jsonPos:new codegen_1$u.Name("jsonPos"),jsonLen:new codegen_1$u.Name("jsonLen"),jsonPart:new codegen_1$u.Name("jsonPart")};names$1.default=names,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=codegen,n=util,r=names$1;function o(e,n){const o=e.const("err",n);e.if(t._`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,t._`[${o}]`),t._`${r.default.vErrors}.push(${o})`),e.code(t._`${r.default.errors}++`)}function a(e,n){const{gen:r,validateName:o,schemaEnv:a}=e;a.$async?r.throw(t._`new ${e.ValidationError}(${n})`):(r.assign(t._`${o}.errors`,n),r.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?t.str`"${e}" keyword must be ${n} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(n,r=e.keywordError,i,l){const{it:u}=n,{gen:c,compositeRule:d,allErrors:f}=u,p=s(n,r,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,n=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,n,i)),c||d||a(l,r.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(r.default.errors,n),e.if(t._`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign(t._`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))},e.extendErrors=function({gen:e,keyword:n,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,r.default.errors,i=>{e.const(l,t._`${r.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))})};const i={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,n,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,n,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:n,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof n?n(e):n||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[r.default.data,l]);f&&a.push([i.propertyName,f])}(e,n,c),a.object(...c)}(e,n,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,n.getErrorPath)(o,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:r}},{schemaPath:o,parentSchema:a}){let s=a?r:t.str`${r}/${e}`;return o&&(s=t.str`${s}${(0,n.getErrorPath)(o,n.Type.Str)}`),[i.schemaPath,s]}}(errors),Object.defineProperty(boolSchema,"__esModule",{value:!0}),boolSchema.boolOrEmptySchema=boolSchema.topBoolOrEmptySchema=void 0;const errors_1$3=errors,codegen_1$t=codegen,names_1$6=names$1,boolError={message:"boolean schema is false"};function topBoolOrEmptySchema(e){const{gen:t,schema:n,validateName:r}=e;!1===n?falseSchemaError(e,!1):"object"==typeof n&&!0===n.$async?t.return(names_1$6.default.data):(t.assign(codegen_1$t._`${r}.errors`,null),t.return(!0))}function boolOrEmptySchema(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),falseSchemaError(e)):n.var(t,!0)}function falseSchemaError(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,errors_1$3.reportError)(o,boolError,void 0,t)}boolSchema.topBoolOrEmptySchema=topBoolOrEmptySchema,boolSchema.boolOrEmptySchema=boolOrEmptySchema;var dataType={},rules={};Object.defineProperty(rules,"__esModule",{value:!0}),rules.getRules=rules.isJSONType=void 0;const _jsonTypes=["string","number","integer","boolean","null","object","array"],jsonTypes=new Set(_jsonTypes);function isJSONType(e){return"string"==typeof e&&jsonTypes.has(e)}function getRules(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}rules.isJSONType=isJSONType,rules.getRules=getRules;var applicability={};function schemaHasRulesForType({schema:e,self:t},n){const r=t.RULES.types[n];return r&&!0!==r&&shouldUseGroup(e,r)}function shouldUseGroup(e,t){return t.rules.some(t=>shouldUseRule(e,t))}function shouldUseRule(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}Object.defineProperty(applicability,"__esModule",{value:!0}),applicability.shouldUseRule=applicability.shouldUseGroup=applicability.schemaHasRulesForType=void 0,applicability.schemaHasRulesForType=schemaHasRulesForType,applicability.shouldUseGroup=shouldUseGroup,applicability.shouldUseRule=shouldUseRule,Object.defineProperty(dataType,"__esModule",{value:!0}),dataType.reportTypeError=dataType.checkDataTypes=dataType.checkDataType=dataType.coerceAndCheckDataType=dataType.getJSONTypes=dataType.getSchemaTypes=dataType.DataType=void 0;const rules_1=rules,applicability_1$1=applicability,errors_1$2=errors,codegen_1$s=codegen,util_1$q=util;var DataType,DataType2;function getSchemaTypes(e){const t=getJSONTypes(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t}function getJSONTypes(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(rules_1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}function coerceAndCheckDataType(e,t){const{gen:n,data:r,opts:o}=e,a=coerceToTypes(t,o.coerceTypes),i=t.length>0&&!(0===a.length&&1===t.length&&(0,applicability_1$1.schemaHasRulesForType)(e,t[0]));if(i){const i=checkDataTypes(t,r,o.strictNumbers,DataType.Wrong);n.if(i,()=>{a.length?coerceData(e,t,a):reportTypeError(e)})}return i}DataType2=DataType||(dataType.DataType=DataType={}),DataType2[DataType2.Correct=0]="Correct",DataType2[DataType2.Wrong=1]="Wrong",dataType.getSchemaTypes=getSchemaTypes,dataType.getJSONTypes=getJSONTypes,dataType.coerceAndCheckDataType=coerceAndCheckDataType;const COERCIBLE=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){return t?e.filter(e=>COERCIBLE.has(e)||"array"===t&&"array"===e):[]}function coerceData(e,t,n){const{gen:r,data:o,opts:a}=e,i=r.let("dataType",codegen_1$s._`typeof ${o}`),s=r.let("coerced",codegen_1$s._`undefined`);"array"===a.coerceTypes&&r.if(codegen_1$s._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>r.assign(o,codegen_1$s._`${o}[0]`).assign(i,codegen_1$s._`typeof ${o}`).if(checkDataTypes(t,o,a.strictNumbers),()=>r.assign(s,o))),r.if(codegen_1$s._`${s} !== undefined`);for(const u of n)(COERCIBLE.has(u)||"array"===u&&"array"===a.coerceTypes)&&l(u);function l(e){switch(e){case"string":return void r.elseIf(codegen_1$s._`${i} == "number" || ${i} == "boolean"`).assign(s,codegen_1$s._`"" + ${o}`).elseIf(codegen_1$s._`${o} === null`).assign(s,codegen_1$s._`""`);case"number":return void r.elseIf(codegen_1$s._`${i} == "boolean" || ${o} === null
|
|
68
|
+
*/function ps(e,t,n,r){Cn(r);var o=wl(t,"onChange");if(o.length>0){var a=new Oi("onChange","change",null,n,r);e.push({event:a,listeners:o})}}var hs=null,ms=null;function gs(e){fl(e,0)}function bs(e){if(et(Xu(e)))return e}function ys(e,t){if("change"===e)return t}var _s=!1;function vs(){hs&&(hs.detachEvent("onpropertychange",ws),hs=null,ms=null)}function ws(e){"value"===e.propertyName&&bs(ms)&&function(e){var t=[];ps(t,ms,e,On(e)),Fn(gs,t)}(e)}function Ss(e,t,n){"focusin"===e?(vs(),function(e,t){ms=t,(hs=e).attachEvent("onpropertychange",ws)}(t,n)):"focusout"===e&&vs()}function xs(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return bs(ms)}function Ts(e,t){if("click"===e)return bs(t)}function Es(e,t){if("input"===e||"change"===e)return bs(t)}function ks(e,t,n,r,o,a,i){var s,l,u,c,d,f,p=n?Xu(n):window;if("select"===(c=(u=p).nodeName&&u.nodeName.toLowerCase())||"input"===c&&"file"===u.type?s=ys:fs(p)?_s?s=Es:(s=xs,l=Ss):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(p)&&(s=Ts),s){var h=s(t,n);if(h)return void ps(e,h,r,o)}l&&l(t,p,n),"focusout"===t&&(f=(d=p)._wrapperState)&&f.controlled&&"number"===d.type&&pt(d,"number",d.value)}function Ps(e,t,n,r,o,a,i){var s="mouseover"===t||"pointerover"===t,l="mouseout"===t||"pointerout"===t;if(s&&r!==En){var u=r.relatedTarget||r.fromElement;if(u&&(Yu(u)||Wu(u)))return}if(l||s){var c,d,f;if(o.window===o)c=o;else{var p=o.ownerDocument;c=p?p.defaultView||p.parentWindow:window}if(l){var h=r.relatedTarget||r.toElement;if(d=n,null!==(f=h?Yu(h):null))(f!==Tr(f)||5!==f.tag&&6!==f.tag)&&(f=null)}else d=null,f=n;if(d!==f){var m=Ii,g="onMouseLeave",b="onMouseEnter",y="mouse";"pointerout"!==t&&"pointerover"!==t||(m=qi,g="onPointerLeave",b="onPointerEnter",y="pointer");var _=null==d?c:Xu(d),v=null==f?c:Xu(f),w=new m(g,y+"leave",d,r,o);w.target=_,w.relatedTarget=v;var S=null;if(Yu(o)===n){var x=new m(b,y+"enter",f,r,o);x.target=v,x.relatedTarget=_,S=x}!function(e,t,n,r,o){var a=r&&o?function(e,t){for(var n=e,r=t,o=0,a=n;a;a=Sl(a))o++;for(var i=0,s=r;s;s=Sl(s))i++;for(;o-i>0;)n=Sl(n),o--;for(;i-o>0;)r=Sl(r),i--;var l=o;for(;l--;){if(n===r||null!==r&&n===r.alternate)return n;n=Sl(n),r=Sl(r)}return null}(r,o):null;null!==r&&xl(e,t,r,a,!1);null!==o&&null!==n&&xl(e,n,o,a,!0)}(e,w,S,d,f)}}}k&&(_s=function(e){if(!k)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var Os="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function As(e,t){if(Os(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var a=n[o];if(!P.call(t,a)||!Os(e[a],t[a]))return!1}return!0}function $s(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rs(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Is(e,t){for(var n=$s(e),r=0,o=0;n;){if(3===n.nodeType){if(o=r+n.textContent.length,r<=t&&o>=t)return{node:n,offset:t-r};r=o}n=$s(Rs(n))}}function Cs(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var o=r.anchorNode,a=r.anchorOffset,i=r.focusNode,s=r.focusOffset;try{o.nodeType,i.nodeType}catch(rw){return null}return function(e,t,n,r,o){var a=0,i=-1,s=-1,l=0,u=0,c=e,d=null;e:for(;;){for(var f=null;c!==t||0!==n&&3!==c.nodeType||(i=a+n),c!==r||0!==o&&3!==c.nodeType||(s=a+o),3===c.nodeType&&(a+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break e;if(d===t&&++l===n&&(i=a),d===r&&++u===o&&(s=a),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}if(-1===i||-1===s)return null;return{start:i,end:s}}(e,o,a,i,s)}function Ds(e){return e&&3===e.nodeType}function Ns(e,t){return!(!e||!t)&&(e===t||!Ds(e)&&(Ds(t)?Ns(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ms(e){return e&&e.ownerDocument&&Ns(e.ownerDocument.documentElement,e)}function Ls(e){try{return"string"==typeof e.contentWindow.location.href}catch(t){return!1}}function js(){for(var e=window,t=tt();t instanceof e.HTMLIFrameElement;){if(!Ls(t))return t;t=tt((e=t.contentWindow).document)}return t}function Fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Bs(e){var t=js(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&Ms(n)){null!==r&&Fs(n)&&function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n);"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var o=r.getSelection(),a=e.textContent.length,i=Math.min(t.start,a),s=void 0===t.end?i:Math.min(t.end,a);if(!o.extend&&i>s){var l=s;s=i,i=l}var u=Is(e,i),c=Is(e,s);if(u&&c){if(1===o.rangeCount&&o.anchorNode===u.node&&o.anchorOffset===u.offset&&o.focusNode===c.node&&o.focusOffset===c.offset)return;var d=n.createRange();d.setStart(u.node,u.offset),o.removeAllRanges(),i>s?(o.addRange(d),o.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),o.addRange(d))}}}(e,t)}(n,r);for(var o=[],a=n;a=a.parentNode;)1===a.nodeType&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"==typeof n.focus&&n.focus();for(var i=0;i<o.length;i++){var s=o[i];s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}}function Us(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:Cs(e))||{start:0,end:0}}var zs=k&&"documentMode"in document&&document.documentMode<=11;var Vs=null,Hs=null,qs=null,Gs=!1;function Ws(e,t,n){var r,o=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Gs&&null!=Vs&&Vs===tt(o)){var a=function(e){if("selectionStart"in e&&Fs(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(Vs);if(!qs||!As(qs,a)){qs=a;var i=wl(Hs,"onSelect");if(i.length>0){var s=new Oi("onSelect","select",null,t,n);e.push({event:s,listeners:i}),s.target=Vs}}}}function Ys(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ks={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},Xs={},Qs={};function Zs(e){if(Xs[e])return Xs[e];if(!Ks[e])return e;var t=Ks[e];for(var n in t)if(t.hasOwnProperty(n)&&n in Qs)return Xs[e]=t[n];return e}k&&(Qs=document.createElement("div").style,"AnimationEvent"in window||(delete Ks.animationend.animation,delete Ks.animationiteration.animation,delete Ks.animationstart.animation),"TransitionEvent"in window||delete Ks.transitionend.transition);var Js=Zs("animationend"),el=Zs("animationiteration"),tl=Zs("animationstart"),nl=Zs("transitionend"),rl=new Map,ol=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function al(e,t){rl.set(e,t),T(t,[e])}function il(e,t,n,r,o,a,i){var s=rl.get(t);if(void 0!==s){var l=Oi,u=t;switch(t){case"keypress":if(0===vi(r))return;case"keydown":case"keyup":l=Hi;break;case"focusin":u="focus",l=Di;break;case"focusout":u="blur",l=Di;break;case"beforeblur":case"afterblur":l=Di;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Ii;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Ci;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Gi;break;case Js:case el:case tl:l=Ni;break;case nl:l=Wi;break;case"scroll":l=$i;break;case"wheel":l=Yi;break;case"copy":case"cut":case"paste":l=Mi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=qi}var c=!!(4&a),d=!c&&"scroll"===t,f=function(e,t,n,r,o){var a=null!==t?t+"Capture":null,i=r?a:t,s=[],l=e,u=null;for(;null!==l;){var c=l,d=c.stateNode;if(5===c.tag&&null!==d&&(u=d,null!==i)){var f=Bn(l,i);null!=f&&s.push(vl(l,f,u))}if(o)break;l=l.return}return s}(n,s,r.type,c,d);if(f.length>0){var p=new l(s,u,null,r,o);e.push({event:p,listeners:f})}}}function sl(e,t,n,r,o,a,i){il(e,t,n,r,o,a),!(7&a)&&(Ps(e,t,n,r,o),ks(e,t,n,r,o),function(e,t,n,r,o){var a=n?Xu(n):window;switch(t){case"focusin":(fs(a)||"true"===a.contentEditable)&&(Vs=a,Hs=n,qs=null);break;case"focusout":Vs=null,Hs=null,qs=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,Ws(e,r,o);break;case"selectionchange":if(zs)break;case"keydown":case"keyup":Ws(e,r,o)}}(e,t,n,r,o),function(e,t,n,r,o){ls(e,t,n,r,o),cs(e,t,n,r,o)}(e,t,n,r,o))}!function(){for(var e=0;e<ol.length;e++){var t=ol[e];al(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}al(Js,"onAnimationEnd"),al(el,"onAnimationIteration"),al(tl,"onAnimationStart"),al("dblclick","onDoubleClick"),al("focusin","onFocus"),al("focusout","onBlur"),al(nl,"onTransitionEnd")}(),E("onMouseEnter",["mouseout","mouseover"]),E("onMouseLeave",["mouseout","mouseover"]),E("onPointerEnter",["pointerout","pointerover"]),E("onPointerLeave",["pointerout","pointerover"]),T("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),T("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),T("onBeforeInput",["compositionend","keypress","textInput","paste"]),T("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),T("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),T("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var ll=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],ul=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ll));function cl(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,s,l){if(Zn.apply(this,arguments),Wn){var u=Jn();Kn||(Kn=!0,Xn=u)}}(r,t,void 0,e),e.currentTarget=null}function dl(e,t,n){var r;if(n)for(var o=t.length-1;o>=0;o--){var a=t[o],i=a.instance,s=a.currentTarget,l=a.listener;if(i!==r&&e.isPropagationStopped())return;cl(e,l,s),r=i}else for(var u=0;u<t.length;u++){var c=t[u],d=c.instance,f=c.currentTarget,p=c.listener;if(d!==r&&e.isPropagationStopped())return;cl(e,p,f),r=d}}function fl(e,t){for(var n=!!(4&t),r=0;r<e.length;r++){var o=e[r];dl(o.event,o.listeners,n)}!function(){if(Kn){var e=Xn;throw Kn=!1,Xn=null,e}}()}function pl(e,t){ul.has(e)||a('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=function(e){var t=e[Uu];void 0===t&&(t=e[Uu]=new Set);return t}(t),r=function(e){return e+"__bubble"}(e);n.has(r)||(bl(t,e,2,!1),n.add(r))}function hl(e,t,n){ul.has(e)&&!t&&a('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),bl(n,e,r,t)}var ml="_reactListening"+Math.random().toString(36).slice(2);function gl(e){if(!e[ml]){e[ml]=!0,w.forEach(function(t){"selectionchange"!==t&&(ul.has(t)||hl(t,!1,e),hl(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[ml]||(t[ml]=!0,hl("selectionchange",!1,t)))}}function bl(e,t,n,r,o){var a=function(e,t,n){var r;switch(hi(t)){case Ia:r=ui;break;case Ca:r=ci;break;default:r=di}return r.bind(null,t,n,e)}(e,t,n),i=void 0;Un&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0)),r?void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,a):void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,a)}function yl(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function _l(e,t,n,r,o){var a=r;if(!(1&t||2&t)){var i=o;if(null!==r){var s=r;e:for(;;){if(null===s)return;var l=s.tag;if(3===l||4===l){var u=s.stateNode.containerInfo;if(yl(u,i))break;if(4===l)for(var c=s.return;null!==c;){var d=c.tag;if(3===d||4===d)if(yl(c.stateNode.containerInfo,i))return;c=c.return}for(;null!==u;){var f=Yu(u);if(null===f)return;var p=f.tag;if(5===p||6===p){s=a=f;continue e}u=u.parentNode}}s=s.return}}}Fn(function(){return function(e,t,n,r){var o=[];sl(o,e,r,n,On(n),t),fl(o,t)}(e,t,n,a)})}function vl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wl(e,t){for(var n=t+"Capture",r=[],o=e;null!==o;){var a=o,i=a.stateNode;if(5===a.tag&&null!==i){var s=i,l=Bn(o,n);null!=l&&r.unshift(vl(o,l,s));var u=Bn(o,t);null!=u&&r.push(vl(o,u,s))}o=o.return}return r}function Sl(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function xl(e,t,n,r,o){for(var a=t._reactName,i=[],s=n;null!==s&&s!==r;){var l=s,u=l.alternate,c=l.stateNode,d=l.tag;if(null!==u&&u===r)break;if(5===d&&null!==c){var f=c;if(o){var p=Bn(s,a);null!=p&&i.unshift(vl(s,p,f))}else if(!o){var h=Bn(s,a);null!=h&&i.push(vl(s,h,f))}}s=s.return}0!==i.length&&e.push({event:t,listeners:i})}var Tl,El,kl,Pl,Ol,Al,$l,Rl=!1,Il="dangerouslySetInnerHTML",Cl="suppressContentEditableWarning",Dl="suppressHydrationWarning",Nl="autoFocus",Ml="children",Ll="style",jl="__html";Tl={dialog:!0,webview:!0},El=function(e,t){gn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||bn||(bn=!0,"select"===e&&t.multiple?a("`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.",e):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),Tn(e,t,{registrationNameDependencies:S,possibleRegistrationNames:x})},Al=k&&!document.documentMode,kl=function(e,t,n){if(!Rl){var r=Ul(n),o=Ul(t);o!==r&&(Rl=!0,a("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(o),JSON.stringify(r)))}},Pl=function(e){if(!Rl){Rl=!0;var t=[];e.forEach(function(e){t.push(e)}),a("Extra attributes from the server: %s",t)}},Ol=function(e,t){!1===t?a("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):a("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},$l=function(e,t){var n=e.namespaceURI===Rt?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var Fl=/\r\n?/g,Bl=/\u0000|\uFFFD/g;function Ul(e){return function(e){if(A(e))a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(e)),$(e)}(e),("string"==typeof e?e:""+e).replace(Fl,"\n").replace(Bl,"")}function zl(e,t,n,r){var o=Ul(t),i=Ul(e);if(i!==o&&(r&&(Rl||(Rl=!0,a('Text content did not match. Server: "%s" Client: "%s"',i,o))),n))throw new Error("Text content does not match server-rendered HTML.")}function Vl(e){return 9===e.nodeType?e:e.ownerDocument}function Hl(){}function ql(e){e.onclick=Hl}function Gl(e,t,n,r){var o,a=un(t,n);switch(El(t,n),t){case"dialog":pl("cancel",e),pl("close",e),o=n;break;case"iframe":case"object":case"embed":pl("load",e),o=n;break;case"video":case"audio":for(var i=0;i<ll.length;i++)pl(ll[i],e);o=n;break;case"source":pl("error",e),o=n;break;case"img":case"image":case"link":pl("error",e),pl("load",e),o=n;break;case"details":pl("toggle",e),o=n;break;case"input":lt(e,n),o=st(e,n),pl("invalid",e);break;case"option":bt(0,n),o=n;break;case"select":Et(e,n),o=Tt(0,n),pl("invalid",e);break;case"textarea":Ot(e,n),o=Pt(e,n),pl("invalid",e);break;default:o=n}switch(ln(t,o),function(e,t,n,r,o){for(var a in r)if(r.hasOwnProperty(a)){var i=r[a];if(a===Ll)i&&Object.freeze(i),rn(t,i);else if(a===Il){var s=i?i[jl]:void 0;null!=s&&Lt(t,s)}else a===Ml?"string"==typeof i?("textarea"!==e||""!==i)&&jt(t,i):"number"==typeof i&&jt(t,""+i):a===Cl||a===Dl||a===Nl||(S.hasOwnProperty(a)?null!=i&&("function"!=typeof i&&Ol(a,i),"onScroll"===a&&pl("scroll",t)):null!=i&&Z(t,a,i,o))}}(t,e,0,o,a),t){case"input":Je(e),dt(e,n,!1);break;case"textarea":Je(e),$t(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",We(Ye(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?xt(n,!!t.multiple,r,!1):null!=t.defaultValue&&xt(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof o.onClick&&ql(e)}}function Wl(e,t,n,r,o){El(t,r);var i,s,l,u,c=null;switch(t){case"input":i=st(e,n),s=st(e,r),c=[];break;case"select":i=Tt(0,n),s=Tt(0,r),c=[];break;case"textarea":i=Pt(e,n),s=Pt(e,r),c=[];break;default:s=r,"function"!=typeof(i=n).onClick&&"function"==typeof s.onClick&&ql(e)}ln(t,s);var d=null;for(l in i)if(!s.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if(l===Ll){var f=i[l];for(u in f)f.hasOwnProperty(u)&&(d||(d={}),d[u]="")}else l===Il||l===Ml||l===Cl||l===Dl||l===Nl||(S.hasOwnProperty(l)?c||(c=[]):(c=c||[]).push(l,null));for(l in s){var p=s[l],h=null!=i?i[l]:void 0;if(s.hasOwnProperty(l)&&p!==h&&(null!=p||null!=h))if(l===Ll)if(p&&Object.freeze(p),h){for(u in h)!h.hasOwnProperty(u)||p&&p.hasOwnProperty(u)||(d||(d={}),d[u]="");for(u in p)p.hasOwnProperty(u)&&h[u]!==p[u]&&(d||(d={}),d[u]=p[u])}else d||(c||(c=[]),c.push(l,d)),d=p;else if(l===Il){var m=p?p[jl]:void 0,g=h?h[jl]:void 0;null!=m&&g!==m&&(c=c||[]).push(l,m)}else l===Ml?"string"!=typeof p&&"number"!=typeof p||(c=c||[]).push(l,""+p):l===Cl||l===Dl||(S.hasOwnProperty(l)?(null!=p&&("function"!=typeof p&&Ol(l,p),"onScroll"===l&&pl("scroll",e)),c||h===p||(c=[])):(c=c||[]).push(l,p))}return d&&(!function(e,t){if(t){var n=an(e),r=an(t),o={};for(var i in n){var s=n[i],l=r[i];if(l&&s!==l){var u=s+","+l;if(o[u])continue;o[u]=!0,a("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",on(e[s])?"Removing":"Updating",s,l)}}}}(d,s[Ll]),(c=c||[]).push(Ll,d)),c}function Yl(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&ut(e,o);un(n,r);switch(function(e,t,n,r){for(var o=0;o<t.length;o+=2){var a=t[o],i=t[o+1];a===Ll?rn(e,i):a===Il?Lt(e,i):a===Ml?jt(e,i):Z(e,a,i,r)}}(e,t,0,un(n,o)),n){case"input":ct(e,o);break;case"textarea":At(e,o);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var o=t.value;null!=o?xt(n,!!t.multiple,o,!1):r!==!!t.multiple&&(null!=t.defaultValue?xt(n,!!t.multiple,t.defaultValue,!0):xt(n,!!t.multiple,t.multiple?[]:"",!1))}(e,o)}}function Kl(e){var t=e.toLowerCase();return cn.hasOwnProperty(t)&&cn[t]||null}function Xl(e,t){Rl||(Rl=!0,a("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function Ql(e,t){Rl||(Rl=!0,a('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function Zl(e,t,n){Rl||(Rl=!0,a("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function Jl(e,t){""!==t&&(Rl||(Rl=!0,a('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var eu,tu,nu=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],ru=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],ou=ru.concat(["button"]),au=["dd","dt","li","option","optgroup","p","rp","rt"],iu={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};tu=function(e,t){var n=we({},e||iu),r={tag:t};return-1!==ru.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==ou.indexOf(t)&&(n.pTagInButtonScope=null),-1!==nu.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var su={};eu=function(e,t,n){var r=(n=n||iu).current,o=r&&r.tag;null!=t&&(null!=e&&a("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===au.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0}(e,o)?null:r,s=i?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,n),l=i||s;if(l){var u=l.tag,c=!!i+"|"+e+"|"+u;if(!su[c]){su[c]=!0;var d=e,f="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var p="";"table"===u&&"tr"===e&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),a("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,f,p)}else a("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}};var lu="suppressHydrationWarning",uu="$",cu="/$",du="$?",fu="$!",pu=null,hu=null;function mu(e){var t;pu=si,t=js(),hu={focusedElem:t,selectionRange:Fs(t)?Us(t):null};return li(!1),null}function gu(e,t,n,r,o){var i=r;if(eu(e,null,i.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var s=""+t.children,l=tu(i.ancestorInfo,e);eu(null,s,l)}var u=function(e,t,n,r){var o,i,s=Vl(n),l=r;if(l===Rt&&(l=Ct(e)),l===Rt){if((o=un(e,t))||e===e.toLowerCase()||a("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var u=s.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;i=u.removeChild(c)}else if("string"==typeof t.is)i=s.createElement(e,{is:t.is});else if(i=s.createElement(e),"select"===e){var d=i;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else i=s.createElementNS(l,e);return l===Rt&&(o||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(i)||P.call(Tl,e)||(Tl[e]=!0,a("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),i}(e,t,n,i.namespace);return Hu(o,u),Zu(u,t),u}function bu(e,t){e.appendChild(t)}function yu(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function _u(e,t,n,r){eu(null,e,n.ancestorInfo);var o=function(e,t){return Vl(t).createTextNode(e)}(e,t);return Hu(r,o),o}var vu="function"==typeof setTimeout?setTimeout:void 0,wu="function"==typeof clearTimeout?clearTimeout:void 0,Su="function"==typeof Promise?Promise:void 0,xu="function"==typeof queueMicrotask?queueMicrotask:void 0!==Su?function(e){return Su.resolve(null).then(e).catch(Tu)}:vu;function Tu(e){setTimeout(function(){throw e})}function Eu(e){jt(e,"")}function ku(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType){var a=o.data;if(a===cu){if(0===r)return e.removeChild(o),void ai(t);r--}else a!==uu&&a!==du&&a!==fu||r++}n=o}while(n);ai(t)}function Pu(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function Ou(e){e.nodeValue=""}function Au(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=zt("display",r)}function $u(e,t){e.nodeValue=t}function Ru(e){return e.data===du}function Iu(e){return e.data===fu}function Cu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){var n=e.data;if(n===uu||n===fu||n===du)break;if(n===cu)return null}}return e}function Du(e){return Cu(e.nextSibling)}function Nu(e,t,n,r,o,a,i){return Hu(a,e),Zu(e,n),function(e,t,n,r,o,a,i){var s,l;switch(s=un(t,n),El(t,n),t){case"dialog":pl("cancel",e),pl("close",e);break;case"iframe":case"object":case"embed":pl("load",e);break;case"video":case"audio":for(var u=0;u<ll.length;u++)pl(ll[u],e);break;case"source":pl("error",e);break;case"img":case"image":case"link":pl("error",e),pl("load",e);break;case"details":pl("toggle",e);break;case"input":lt(e,n),pl("invalid",e);break;case"option":bt(0,n);break;case"select":Et(e,n),pl("invalid",e);break;case"textarea":Ot(e,n),pl("invalid",e)}ln(t,n),l=new Set;for(var c=e.attributes,d=0;d<c.length;d++)switch(c[d].name.toLowerCase()){case"value":case"checked":case"selected":break;default:l.add(c[d].name)}var f=null;for(var p in n)if(n.hasOwnProperty(p)){var h=n[p];if(p===Ml)"string"==typeof h?e.textContent!==h&&(!0!==n[Dl]&&zl(e.textContent,h,a,i),f=[Ml,h]):"number"==typeof h&&e.textContent!==""+h&&(!0!==n[Dl]&&zl(e.textContent,h,a,i),f=[Ml,""+h]);else if(S.hasOwnProperty(p))null!=h&&("function"!=typeof h&&Ol(p,h),"onScroll"===p&&pl("scroll",e));else if(i&&"boolean"==typeof s){var m=void 0,g=z(p);if(!0===n[Dl]);else if(p===Cl||p===Dl||"value"===p||"checked"===p||"selected"===p);else if(p===Il){var b=e.innerHTML,y=h?h[jl]:void 0;if(null!=y){var _=$l(e,y);_!==b&&kl(p,b,_)}}else if(p===Ll){if(l.delete(p),Al){var v=nn(h);v!==(m=e.getAttribute("style"))&&kl(p,m,v)}}else if(s)l.delete(p.toLowerCase()),h!==(m=Q(e,p,h))&&kl(p,m,h);else if(!F(p,g,s)&&!U(p,h,g,s)){var w=!1;if(null!==g)l.delete(g.attributeName),m=X(e,p,h,g);else{var x=r;if(x===Rt&&(x=Ct(t)),x===Rt)l.delete(p.toLowerCase());else{var T=Kl(p);null!==T&&T!==p&&(w=!0,l.delete(T)),l.delete(p)}m=Q(e,p,h)}h===m||w||kl(p,m,h)}}}switch(i&&l.size>0&&!0!==n[Dl]&&Pl(l),t){case"input":Je(e),dt(e,n,!0);break;case"textarea":Je(e),$t(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&ql(e)}return f}(e,t,n,o.namespace,0,!!(1&a.mode),i)}function Mu(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===uu||r===fu||r===du){if(0===n)return t;n--}else r===cu&&n++}t=t.previousSibling}return null}var Lu=Math.random().toString(36).slice(2),ju="__reactFiber$"+Lu,Fu="__reactProps$"+Lu,Bu="__reactContainer$"+Lu,Uu="__reactEvents$"+Lu,zu="__reactListeners$"+Lu,Vu="__reactHandles$"+Lu;function Hu(e,t){t[ju]=e}function qu(e,t){t[Bu]=e}function Gu(e){e[Bu]=null}function Wu(e){return!!e[Bu]}function Yu(e){var t=e[ju];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bu]||n[ju]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var o=Mu(e);null!==o;){var a=o[ju];if(a)return a;o=Mu(o)}return t}n=(e=n).parentNode}return null}function Ku(e){var t=e[ju]||e[Bu];return t&&(5===t.tag||6===t.tag||t.tag===c||3===t.tag)?t:null}function Xu(e){if(5===e.tag||6===e.tag)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Qu(e){return e[Fu]||null}function Zu(e,t){e[Fu]=t}var Ju={},ec=n.ReactDebugCurrentFrame;function tc(e){if(e){var t=e._owner,n=Ie(e.type,e._source,t?t.type:null);ec.setExtraStackFrame(n)}else ec.setExtraStackFrame(null)}function nc(e,t,n,r,o){var i=Function.call.bind(P);for(var s in e)if(i(e,s)){var l=void 0;try{if("function"!=typeof e[s]){var u=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[s](t,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){l=c}!l||l instanceof Error||(tc(o),a("%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).",r||"React class",n,s,typeof l),tc(null)),l instanceof Error&&!(l.message in Ju)&&(Ju[l.message]=!0,tc(o),a("Failed %s type: %s",n,l.message),tc(null))}}var rc,oc=[];rc=[];var ac,ic=-1;function sc(e){return{current:e}}function lc(e,t){ic<0?a("Unexpected pop."):(t!==rc[ic]&&a("Unexpected Fiber popped."),e.current=oc[ic],oc[ic]=null,rc[ic]=null,ic--)}function uc(e,t,n){ic++,oc[ic]=e.current,rc[ic]=n,e.current=t}ac={};var cc={};Object.freeze(cc);var dc=sc(cc),fc=sc(!1),pc=cc;function hc(e,t,n){return n&&yc(t)?pc:dc.current}function mc(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function gc(e,t){var n=e.type.contextTypes;if(!n)return cc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={};for(var a in n)o[a]=t[a];return nc(n,o,"context",je(e)||"Unknown"),r&&mc(e,t,o),o}function bc(){return fc.current}function yc(e){var t=e.childContextTypes;return null!=t}function _c(e){lc(fc,e),lc(dc,e)}function vc(e){lc(fc,e),lc(dc,e)}function wc(e,t,n){if(dc.current!==cc)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");uc(dc,t,e),uc(fc,n,e)}function Sc(e,t,n){var r=e.stateNode,o=t.childContextTypes;if("function"!=typeof r.getChildContext){var i=je(e)||"Unknown";return ac[i]||(ac[i]=!0,a("%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.",i,i)),n}var s=r.getChildContext();for(var l in s)if(!(l in o))throw new Error((je(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return nc(o,s,"child context",je(e)||"Unknown"),we({},n,s)}function xc(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||cc;return pc=dc.current,uc(dc,n,e),uc(fc,fc.current,e),!0}function Tc(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var o=Sc(e,t,pc);r.__reactInternalMemoizedMergedChildContext=o,lc(fc,e),lc(dc,e),uc(dc,o,e),uc(fc,n,e)}else lc(fc,e),uc(fc,n,e)}function Ec(e){if(!function(e){return Tr(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(yc(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var kc=null,Pc=!1,Oc=!1;function Ac(e){null===kc?kc=[e]:kc.push(e)}function $c(){Pc&&Rc()}function Rc(){if(!Oc&&null!==kc){Oc=!0;var e=0,t=La();try{var n=kc;for(ja(Ia);e<n.length;e++){var r=n[e];do{r=r(true)}while(null!==r)}kc=null,Pc=!1}catch(o){throw null!==kc&&(kc=kc.slice(e+1)),Cr(Fr,Rc),o}finally{ja(t),Oc=!1}}return null}var Ic=[],Cc=0,Dc=null,Nc=0,Mc=[],Lc=0,jc=null,Fc=1,Bc="";function Uc(){var e=Bc;return(Fc&~function(e){return 1<<qc(e)-1}(Fc)).toString(32)+e}function zc(e,t){Wc(),Ic[Cc++]=Nc,Ic[Cc++]=Dc,Dc=e,Nc=t}function Vc(e,t,n){Wc(),Mc[Lc++]=Fc,Mc[Lc++]=Bc,Mc[Lc++]=jc,jc=e;var r=Fc,o=Bc,a=qc(r)-1,i=r&~(1<<a),s=n+1,l=qc(t)+a;if(l>30){var u=a-a%5,c=(i&(1<<u)-1).toString(32),d=i>>u,f=a-u,p=qc(t)+f;Fc=1<<p|(s<<f|d),Bc=c+o}else{Fc=1<<l|(s<<a|i),Bc=o}}function Hc(e){if(Wc(),null!==e.return){zc(e,1),Vc(e,1,0)}}function qc(e){return 32-yo(e)}function Gc(e){for(;e===Dc;)Dc=Ic[--Cc],Ic[Cc]=null,Nc=Ic[--Cc],Ic[Cc]=null;for(;e===jc;)jc=Mc[--Lc],Mc[Lc]=null,Bc=Mc[--Lc],Mc[Lc]=null,Fc=Mc[--Lc],Mc[Lc]=null}function Wc(){yd()||a("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Yc=null,Kc=null,Xc=!1,Qc=!1,Zc=null;function Jc(){Qc=!0}function ed(e){var t=e.stateNode.containerInfo;return Kc=Cu(t.firstChild),Yc=e,Xc=!0,Zc=null,Qc=!1,!0}function td(e,t,n){var r,o;return Kc=Cu(t.nextSibling),Yc=e,Xc=!0,Zc=null,Qc=!1,null!==n&&(r=e,o=n,Wc(),Mc[Lc++]=Fc,Mc[Lc++]=Bc,Mc[Lc++]=jc,Fc=o.id,Bc=o.overflow,jc=r),!0}function nd(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?Xl(e,t):8===t.nodeType||Ql(e,t)}(e.stateNode.containerInfo,t);break;case 5:var n=!!(1&e.mode);!function(e,t,n,r,o){(o||!0!==t[lu])&&(1===r.nodeType?Xl(n,r):8===r.nodeType||Ql(n,r))}(e.type,e.memoizedProps,e.stateNode,t,n);break;case c:var r=e.memoizedState;null!==r.dehydrated&&function(e,t){var n=e.parentNode;null!==n&&(1===t.nodeType?Xl(n,t):8===t.nodeType||Ql(n,t))}(r.dehydrated,t)}}function rd(e,t){nd(e,t);var n,r=((n=W_(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var o=e.deletions;null===o?(e.deletions=[r],e.flags|=tr):o.push(r)}function od(e,t){if(!Qc)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t){Zl(e,t)}(n,r);break;case 6:!function(e,t){Jl(e,t)}(n,t.pendingProps)}break;case 5:e.type;var o=e.memoizedProps,a=e.stateNode;switch(t.tag){case 5:var i=t.type;t.pendingProps;!function(e,t,n,r,o,a){(a||!0!==t[lu])&&Zl(n,r)}(0,o,a,i,0,!!(1&e.mode));break;case 6:!function(e,t,n,r,o){(o||!0!==t[lu])&&Jl(n,r)}(0,o,a,t.pendingProps,!!(1&e.mode))}break;case c:var s=e.memoizedState.dehydrated;if(null!==s)switch(t.tag){case 5:var l=t.type;t.pendingProps,function(e,t){var n=e.parentNode;null!==n&&Zl(n,t)}(s,l);break;case 6:!function(e,t){var n=e.parentNode;null!==n&&Jl(n,t)}(s,t.pendingProps)}break;default:return}}function ad(e,t){t.flags=-4097&t.flags|2,od(e,t)}function id(e,t){switch(e.tag){case 5:var n=e.type;e.pendingProps;var r=function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n);return null!==r&&(e.stateNode=r,Yc=e,Kc=Cu(r.firstChild),!0);case 6:var o=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==o&&(e.stateNode=o,Yc=e,Kc=null,!0);case c:var a=function(e){return 8!==e.nodeType?null:e}(t);if(null!==a){var i={dehydrated:a,treeContext:(Wc(),null!==jc?{id:Fc,overflow:Bc}:null),retryLane:Zo};e.memoizedState=i;var s=function(e){var t=W_(h,null,null,0);return t.stateNode=e,t}(a);return s.return=e,e.child=s,Yc=e,Kc=null,!0}return!1;default:return!1}}function sd(e){return!!(1&e.mode)&&0===(e.flags&nr)}function ld(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function ud(e){if(Xc){var t=Kc;if(!t)return sd(e)&&(od(Yc,e),ld()),ad(Yc,e),Xc=!1,void(Yc=e);var n=t;if(!id(e,t)){sd(e)&&(od(Yc,e),ld()),t=Du(n);var r=Yc;if(!t||!id(e,t))return ad(Yc,e),Xc=!1,void(Yc=e);rd(r,n)}}}function cd(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n){return Hu(n,e),n.mode,function(e,t){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var o=Yc;if(null!==o)switch(o.tag){case 3:o.stateNode.containerInfo;!function(e,t,n,r){zl(t.nodeValue,n,r,!0)}(0,t,n,!!(1&o.mode));break;case 5:o.type;var a=o.memoizedProps;o.stateNode;!function(e,t,n,r,o,a){!0!==t[lu]&&zl(r.nodeValue,o,a,!0)}(0,a,0,t,n,!!(1&o.mode))}}return r}function dd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");!function(e,t){Hu(t,e)}(n,e)}function fd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===cu){if(0===n)return Du(t);n--}else r!==uu&&r!==fu&&r!==du||n++}t=t.nextSibling}return null}(n)}function pd(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==c;)t=t.return;Yc=t}function hd(e){if(e!==Yc)return!1;if(!Xc)return pd(e),Xc=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(n=e.type)&&"body"!==n&&!yu(e.type,e.memoizedProps))){var t=Kc;if(t)if(sd(e))md(e),ld();else for(;t;)rd(e,t),t=Du(t)}var n;return pd(e),Kc=e.tag===c?fd(e):Yc?Du(e.stateNode):null,!0}function md(e){for(var t=Kc;t;)nd(e,t),t=Du(t)}function gd(){Yc=null,Kc=null,Xc=!1,Qc=!1}function bd(){null!==Zc&&(Hy(Zc),Zc=null)}function yd(){return Xc}function _d(e){null===Zc?Zc=[e]:Zc.push(e)}var vd=n.ReactCurrentBatchConfig;var wd={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Sd=function(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")},xd=[],Td=[],Ed=[],kd=[],Pd=[],Od=[],Ad=new Set;wd.recordUnsafeLifecycleWarnings=function(e,t){Ad.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&xd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&Td.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&Ed.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&kd.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Pd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Od.push(e))},wd.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;xd.length>0&&(xd.forEach(function(t){e.add(je(t)||"Component"),Ad.add(t.type)}),xd=[]);var t=new Set;Td.length>0&&(Td.forEach(function(e){t.add(je(e)||"Component"),Ad.add(e.type)}),Td=[]);var n=new Set;Ed.length>0&&(Ed.forEach(function(e){n.add(je(e)||"Component"),Ad.add(e.type)}),Ed=[]);var r=new Set;kd.length>0&&(kd.forEach(function(e){r.add(je(e)||"Component"),Ad.add(e.type)}),kd=[]);var i=new Set;Pd.length>0&&(Pd.forEach(function(e){i.add(je(e)||"Component"),Ad.add(e.type)}),Pd=[]);var s=new Set;(Od.length>0&&(Od.forEach(function(e){s.add(je(e)||"Component"),Ad.add(e.type)}),Od=[]),t.size>0)&&a("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",Sd(t));r.size>0&&a("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",Sd(r));s.size>0&&a("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",Sd(s));e.size>0&&o("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Sd(e));n.size>0&&o("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Sd(n));i.size>0&&o("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Sd(i))};var $d,Rd,Id,Cd,Dd,Nd=new Map,Md=new Set;wd.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Md.has(e.type)){var r=Nd.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Nd.set(n,r)),r.push(e))}}else a("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},wd.flushLegacyContextWarning=function(){Nd.forEach(function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach(function(e){r.add(je(e)||"Component"),Md.add(e.type)});var o=Sd(r);try{qe(n),a("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)}finally{He()}}})},wd.discardPendingWarnings=function(){xd=[],Td=[],Ed=[],kd=[],Pd=[],Od=[],Nd=new Map};var Ld;function jd(e,t,n){var r,o=n.ref;if(null!==o&&"function"!=typeof o&&"object"!=typeof o){if(e.mode,!(n._owner&&n._self&&n._owner.stateNode!==n._self||n._owner&&1!==n._owner.tag)&&("function"!=typeof n.type||(r=n.type).prototype&&r.prototype.isReactComponent)&&n._owner){var i=je(e)||"Component";Id[i]||(a('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',i,o),Id[i]=!0)}if(n._owner){var s,l=n._owner;if(l){var u=l;if(1!==u.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");s=u.stateNode}if(!s)throw new Error("Missing owner for string ref "+o+". This error is likely caused by a bug in React. Please file an issue.");var c=s;!function(e,t){if(A(e))a("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,O(e)),$(e)}(o,"ref");var d=""+o;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===d)return t.ref;var f=function(e){var t=c.refs;null===e?delete t[d]:t[d]=e};return f._stringRef=d,f}if("string"!=typeof o)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+o+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return o}function Fd(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Bd(e){var t=je(e)||"Component";Dd[t]||(Dd[t]=!0,a("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."))}function Ud(e){var t=e._payload;return(0,e._init)(t)}function zd(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=tr):r.push(n)}}function n(n,r){if(!e)return null;for(var o=r;null!==o;)t(n,o),o=o.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function o(e,t){var n=K_(e,t);return n.index=0,n.sibling=null,n}function i(t,n,r){if(t.index=r,!e)return t.flags|=pr,n;var o=t.alternate;if(null!==o){var a=o.index;return a<n?(t.flags|=2,n):a}return t.flags|=2,n}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){if(null===t||6!==t.tag){var a=tv(n,e.mode,r);return a.return=e,a}var i=o(t,n);return i.return=e,i}function u(e,t,n,r){var a=n.type;if(a===te)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===a||j_(t,n)||"object"==typeof a&&null!==a&&a.$$typeof===ce&&Ud(a)===t.type)){var i=o(t,n.props);return i.ref=jd(e,t,n),i.return=e,i._debugSource=n._source,i._debugOwner=n._owner,i}var s=Z_(n,e.mode,r);return s.ref=jd(e,t,n),s.return=e,s}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var a=nv(n,e.mode,r);return a.return=e,a}var i=o(t,n.children||[]);return i.return=e,i}function d(e,t,n,r,a){if(null===t||7!==t.tag){var i=J_(n,e.mode,r,a);return i.return=e,i}var s=o(t,n);return s.return=e,s}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=tv(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case J:var o=Z_(t,e.mode,n);return o.ref=jd(e,null,t),o.return=e,o;case ee:var a=nv(t,e.mode,n);return a.return=e,a;case ce:var i=t._payload;return f(e,(0,t._init)(i),n)}if(vt(t)||pe(t)){var s=J_(t,e.mode,n,null);return s.return=e,s}Fd(0,t)}return"function"==typeof t&&Bd(e),null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case J:return n.key===o?u(e,t,n,r):null;case ee:return n.key===o?c(e,t,n,r):null;case ce:var a=n._payload;return p(e,t,(0,n._init)(a),r)}if(vt(n)||pe(n))return null!==o?null:d(e,t,n,r,null);Fd(0,n)}return"function"==typeof n&&Bd(e),null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case J:return u(t,e.get(null===r.key?n:r.key)||null,r,o);case ee:return c(t,e.get(null===r.key?n:r.key)||null,r,o);case ce:var a=r._payload;return h(e,t,n,(0,r._init)(a),o)}if(vt(r)||pe(r))return d(t,e.get(n)||null,r,o,null);Fd(0,r)}return"function"==typeof r&&Bd(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case J:case ee:Ld(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}a("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case ce:var o=e._payload;m((0,e._init)(o),t,n)}return t}return function l(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===te&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case J:return s(function(e,r,a,i){for(var s=a.key,l=r;null!==l;){if(l.key===s){var u=a.type;if(u===te){if(7===l.tag){n(e,l.sibling);var c=o(l,a.props.children);return c.return=e,c._debugSource=a._source,c._debugOwner=a._owner,c}}else if(l.elementType===u||j_(l,a)||"object"==typeof u&&null!==u&&u.$$typeof===ce&&Ud(u)===l.type){n(e,l.sibling);var d=o(l,a.props);return d.ref=jd(e,l,a),d.return=e,d._debugSource=a._source,d._debugOwner=a._owner,d}n(e,l);break}t(e,l),l=l.sibling}if(a.type===te){var f=J_(a.props.children,e.mode,i,a.key);return f.return=e,f}var p=Z_(a,e.mode,i);return p.ref=jd(e,r,a),p.return=e,p}(u,c,d,g));case ee:return s(function(e,r,a,i){for(var s=a.key,l=r;null!==l;){if(l.key===s){if(4===l.tag&&l.stateNode.containerInfo===a.containerInfo&&l.stateNode.implementation===a.implementation){n(e,l.sibling);var u=o(l,a.children||[]);return u.return=e,u}n(e,l);break}t(e,l),l=l.sibling}var c=nv(a,e.mode,i);return c.return=e,c}(u,c,d,g));case ce:var b=d._payload;return l(u,c,(0,d._init)(b),g)}if(vt(d))return function(o,a,s,l){for(var u=null,c=0;c<s.length;c++)u=m(s[c],u,o);for(var d=null,g=null,b=a,y=0,_=0,v=null;null!==b&&_<s.length;_++){b.index>_?(v=b,b=null):v=b.sibling;var w=p(o,b,s[_],l);if(null===w){null===b&&(b=v);break}e&&b&&null===w.alternate&&t(o,b),y=i(w,y,_),null===g?d=w:g.sibling=w,g=w,b=v}if(_===s.length)return n(o,b),yd()&&zc(o,_),d;if(null===b){for(;_<s.length;_++){var S=f(o,s[_],l);null!==S&&(y=i(S,y,_),null===g?d=S:g.sibling=S,g=S)}return yd()&&zc(o,_),d}for(var x=r(0,b);_<s.length;_++){var T=h(x,o,_,s[_],l);null!==T&&(e&&null!==T.alternate&&x.delete(null===T.key?_:T.key),y=i(T,y,_),null===g?d=T:g.sibling=T,g=T)}return e&&x.forEach(function(e){return t(o,e)}),yd()&&zc(o,_),d}(u,c,d,g);if(pe(d))return function(o,s,l,u){var c=pe(l);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===l[Symbol.toStringTag]&&(Rd||a("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."),Rd=!0),l.entries===c&&($d||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$d=!0);var d=c.call(l);if(d)for(var g=null,b=d.next();!b.done;b=d.next())g=m(b.value,g,o);var y=c.call(l);if(null==y)throw new Error("An iterable object provided no iterator.");for(var _=null,v=null,w=s,S=0,x=0,T=null,E=y.next();null!==w&&!E.done;x++,E=y.next()){w.index>x?(T=w,w=null):T=w.sibling;var k=p(o,w,E.value,u);if(null===k){null===w&&(w=T);break}e&&w&&null===k.alternate&&t(o,w),S=i(k,S,x),null===v?_=k:v.sibling=k,v=k,w=T}if(E.done)return n(o,w),yd()&&zc(o,x),_;if(null===w){for(;!E.done;x++,E=y.next()){var P=f(o,E.value,u);null!==P&&(S=i(P,S,x),null===v?_=P:v.sibling=P,v=P)}return yd()&&zc(o,x),_}for(var O=r(0,w);!E.done;x++,E=y.next()){var A=h(O,o,x,E.value,u);null!==A&&(e&&null!==A.alternate&&O.delete(null===A.key?x:A.key),S=i(A,S,x),null===v?_=A:v.sibling=A,v=A)}return e&&O.forEach(function(e){return t(o,e)}),yd()&&zc(o,x),_}(u,c,d,g);Fd(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?s(function(e,t,r,a){if(null!==t&&6===t.tag){n(e,t.sibling);var i=o(t,r);return i.return=e,i}n(e,t);var s=tv(r,e.mode,a);return s.return=e,s}(u,c,""+d,g)):("function"==typeof d&&Bd(u),n(u,c))}}$d=!1,Rd=!1,Id={},Cd={},Dd={},Ld=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=je(t)||"Component";Cd[n]||(Cd[n]=!0,a('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var Vd=zd(!0),Hd=zd(!1);function qd(e,t){for(var n=e.child;null!==n;)X_(n,t),n=n.sibling}var Gd,Wd=sc(null);Gd={};var Yd=null,Kd=null,Xd=null,Qd=!1;function Zd(){Yd=null,Kd=null,Xd=null,Qd=!1}function Jd(){Qd=!0}function ef(){Qd=!1}function tf(e,t,n){uc(Wd,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==Gd&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Gd}function nf(e,t){var n=Wd.current;lc(Wd,t),e._currentValue=n}function rf(e,t,n){for(var r=e;null!==r;){var o=r.alternate;if(ba(r.childLanes,t)?null===o||ba(o.childLanes,t)||(o.childLanes=ya(o.childLanes,t)):(r.childLanes=ya(r.childLanes,t),null!==o&&(o.childLanes=ya(o.childLanes,t))),r===n)break;r=r.return}r!==n&&a("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function of(e,t,n){!function(e,t,n){var r=e.child;null!==r&&(r.return=e);for(;null!==r;){var o=void 0,a=r.dependencies;if(null!==a){o=r.child;for(var i=a.firstContext;null!==i;){if(i.context===t){if(1===r.tag){var l=pa(n),u=wf(ea,l);u.tag=bf;var c=r.updateQueue;if(null===c);else{var d=c.shared,f=d.pending;null===f?u.next=u:(u.next=f.next,f.next=u),d.pending=u}}r.lanes=ya(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=ya(p.lanes,n)),rf(r.return,n,e),a.lanes=ya(a.lanes,n);break}i=i.next}}else if(r.tag===s)o=r.type===e.type?null:r.child;else if(r.tag===h){var m=r.return;if(null===m)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes=ya(m.lanes,n);var g=m.alternate;null!==g&&(g.lanes=ya(g.lanes,n)),rf(m,n,e),o=r.sibling}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}var b=o.sibling;if(null!==b){b.return=o.return,o=b;break}o=o.return}r=o}}(e,t,n)}function af(e,t){Yd=e,Kd=null,Xd=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&(ga(n.lanes,t)&&mg(),n.firstContext=null))}function sf(e){Qd&&a("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().");var t=e._currentValue;if(Xd===e);else{var n={context:e,memoizedValue:t,next:null};if(null===Kd){if(null===Yd)throw new Error("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().");Kd=n,Yd.dependencies={lanes:0,firstContext:n}}else Kd=Kd.next=n}return t}var lf=null;function uf(e){null===lf?lf=[e]:lf.push(e)}function cf(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,pf(e,r)}function df(e,t){return pf(e,t)}var ff=pf;function pf(e,t){e.lanes=ya(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=ya(n.lanes,t)),null===n&&4098&e.flags&&x_(e);for(var r=e,o=e.return;null!==o;)o.childLanes=ya(o.childLanes,t),null!==(n=o.alternate)?n.childLanes=ya(n.childLanes,t):4098&o.flags&&x_(e),r=o,o=o.return;return 3===r.tag?r.stateNode:null}var hf,mf,gf=0,bf=2,yf=!1;function _f(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function vf(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var o={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=o}}function wf(e,t){return{eventTime:e,lane:t,tag:gf,payload:null,callback:null,next:null}}function Sf(e,t,n){var r=e.updateQueue;if(null===r)return null;var o=r.shared;if(mf!==o||hf||(a("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),hf=!0),(Qb&zb)!==Ub){var i=o.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),o.pending=t,ff(e,n)}return function(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,pf(e,r)}(e,o,t,n)}function xf(e,t,n){var r=t.updateQueue;if(null!==r){var o=r.shared;if(ca(n)){var a=o.lanes,i=ya(a=va(a,e.pendingLanes),n);o.lanes=i,Ta(e,i)}}}function Tf(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var o=r.updateQueue;if(n===o){var a=null,i=null,s=n.firstBaseUpdate;if(null!==s){var l=s;do{var u={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};null===i?a=i=u:(i.next=u,i=u),l=l.next}while(null!==l);null===i?a=i=t:(i.next=t,i=t)}else a=i=t;return n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function Ef(e,t,n,r,o,a){switch(n.tag){case 1:var i=n.payload;if("function"==typeof i){Jd();var s=i.call(a,r,o);if(8&e.mode){Qr(!0);try{i.call(a,r,o)}finally{Qr(!1)}}return ef(),s}return i;case 3:e.flags=-65537&e.flags|nr;case gf:var l,u=n.payload;if("function"==typeof u){if(Jd(),l=u.call(a,r,o),8&e.mode){Qr(!0);try{u.call(a,r,o)}finally{Qr(!1)}}ef()}else l=u;return null==l?r:we({},r,l);case bf:return yf=!0,r}return r}function kf(e,t,n,r){var o=e.updateQueue;yf=!1,mf=o.shared;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var c=e.alternate;if(null!==c){var d=c.updateQueue,f=d.lastBaseUpdate;f!==i&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(null!==a){for(var p=o.baseState,h=0,m=null,g=null,b=null,y=a;;){var _=y.lane,v=y.eventTime;if(ba(r,_)){if(null!==b){var w={eventTime:v,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null};b=b.next=w}if(p=Ef(e,0,y,p,t,n),null!==y.callback&&0!==y.lane){e.flags|=64;var S=o.effects;null===S?o.effects=[y]:S.push(y)}}else{var x={eventTime:v,lane:_,tag:y.tag,payload:y.payload,callback:y.callback,next:null};null===b?(g=b=x,m=p):b=b.next=x,h=ya(h,_)}if(null===(y=y.next)){if(null===(s=o.shared.pending))break;var T=s,E=T.next;T.next=null,y=E,o.lastBaseUpdate=T,o.shared.pending=null}}null===b&&(m=p),o.baseState=m,o.firstBaseUpdate=g,o.lastBaseUpdate=b;var k=o.shared.interleaved;if(null!==k){var P=k;do{h=ya(h,P.lane),P=P.next}while(P!==k)}else null===a&&(o.shared.lanes=0);n_(h),e.lanes=h,e.memoizedState=p}mf=null}function Pf(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Of(){yf=!1}function Af(){return yf}function $f(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var o=0;o<r.length;o++){var a=r[o],i=a.callback;null!==i&&(a.callback=null,Pf(i,n))}}hf=!1,mf=null;var Rf={},If=sc(Rf),Cf=sc(Rf),Df=sc(Rf);function Nf(e){if(e===Rf)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Mf(){return Nf(Df.current)}function Lf(e,t){uc(Df,t,e),uc(Cf,e,e),uc(If,Rf,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var o=e.documentElement;n=o?o.namespaceURI:Dt(null,"");break;default:var a=8===r?e.parentNode:e;n=Dt(a.namespaceURI||null,t=a.tagName)}var i=t.toLowerCase();return{namespace:n,ancestorInfo:tu(null,i)}}(t);lc(If,e),uc(If,n,e)}function jf(e){lc(If,e),lc(Cf,e),lc(Df,e)}function Ff(){return Nf(If.current)}function Bf(e){Nf(Df.current);var t,n,r,o=Nf(If.current),a=(t=o,n=e.type,{namespace:Dt((r=t).namespace,n),ancestorInfo:tu(r.ancestorInfo,n)});o!==a&&(uc(Cf,e,e),uc(If,a,e))}function Uf(e){Cf.current===e&&(lc(If,e),lc(Cf,e))}var zf=sc(0);function Vf(e,t){return 0!==(e&t)}function Hf(e){return 1&e}function qf(e,t){return 1&e|t}function Gf(e,t){uc(zf,t,e)}function Wf(e){lc(zf,e)}function Yf(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Kf(e){for(var t=e;null!==t;){if(t.tag===c){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||Ru(r)||Iu(r))return t}}else if(t.tag===m&&void 0!==t.memoizedProps.revealOrder){if(0!==(t.flags&nr))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xf=[];function Qf(){for(var e=0;e<Xf.length;e++){Xf[e]._workInProgressVersionPrimary=null}Xf.length=0}function Zf(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}var Jf,ep,tp=n.ReactCurrentDispatcher,np=n.ReactCurrentBatchConfig;Jf=new Set;var rp=0,op=null,ap=null,ip=null,sp=!1,lp=!1,up=0,cp=0,dp=null,fp=null,pp=-1,hp=!1;function mp(){var e=dp;null===fp?fp=[e]:fp.push(e)}function gp(){var e=dp;null!==fp&&(pp++,fp[pp]!==e&&function(e){var t=je(op);if(!Jf.has(t)&&(Jf.add(t),null!==fp)){for(var n="",r=30,o=0;o<=pp;o++){for(var i=fp[o],s=o===pp?e:i,l=o+1+". "+i;l.length<r;)l+=" ";n+=l+=s+"\n"}a("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function bp(e){null==e||vt(e)||a("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",dp,typeof e)}function yp(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function _p(e,t){if(hp)return!1;if(null===t)return a("%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.",dp),!1;e.length!==t.length&&a("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",dp,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Os(e[n],t[n]))return!1;return!0}function vp(e,t,n,r,o,i){rp=i,op=t,fp=null!==e?e._debugHookTypes:null,pp=-1,hp=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?tp.current=kh:tp.current=null!==fp?Eh:Th;var s=n(r,o);if(lp){var l=0;do{if(lp=!1,up=0,l>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,hp=!1,ap=null,ip=null,t.updateQueue=null,pp=-1,tp.current=Ph,s=n(r,o)}while(lp)}tp.current=xh,t._debugHookTypes=fp;var u=null!==ap&&null!==ap.next;if(rp=0,op=null,ap=null,ip=null,dp=null,fp=null,pp=-1,null!==e&&(e.flags&Sr)!==(t.flags&Sr)&&1&e.mode&&a("Internal React error: Expected static flag was missing. Please notify the React team."),sp=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return s}function wp(){var e=0!==up;return up=0,e}function Sp(e,t,n){t.updateQueue=e.updateQueue,0!==(t.mode&bo)?t.flags&=-50333701:t.flags&=-2053,e.lanes=_a(e.lanes,n)}function xp(){if(tp.current=xh,sp){for(var e=op.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}sp=!1}rp=0,op=null,ap=null,ip=null,fp=null,pp=-1,dp=null,hh=!1,lp=!1,up=0}function Tp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ip?op.memoizedState=ip=e:ip=ip.next=e,ip}function Ep(){var e,t;if(null===ap){var n=op.alternate;e=null!==n?n.memoizedState:null}else e=ap.next;if(null!==(t=null===ip?op.memoizedState:ip.next))t=(ip=t).next,ap=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(ap=e).memoizedState,baseState:ap.baseState,baseQueue:ap.baseQueue,queue:ap.queue,next:null};null===ip?op.memoizedState=ip=r:ip=ip.next=r}return ip}function kp(e,t){return"function"==typeof t?t(e):t}function Pp(e,t,n){var r,o=Tp();r=void 0!==n?n(t):t,o.memoizedState=o.baseState=r;var a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};o.queue=a;var i=a.dispatch=bh.bind(null,op,a);return[o.memoizedState,i]}function Op(e,t,n){var r=Ep(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var i=ap,s=i.baseQueue,l=o.pending;if(null!==l){if(null!==s){var u=s.next,c=l.next;s.next=c,l.next=u}i.baseQueue!==s&&a("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=s=l,o.pending=null}if(null!==s){var d=s.next,f=i.baseState,p=null,h=null,m=null,g=d;do{var b=g.lane;if(ba(rp,b)){if(null!==m){var y={lane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};m=m.next=y}if(g.hasEagerState)f=g.eagerState;else f=e(f,g.action)}else{var _={lane:b,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};null===m?(h=m=_,p=f):m=m.next=_,op.lanes=ya(op.lanes,b),n_(b)}g=g.next}while(null!==g&&g!==d);null===m?p=f:m.next=h,Os(f,r.memoizedState)||mg(),r.memoizedState=f,r.baseState=p,r.baseQueue=m,o.lastRenderedState=f}var v=o.interleaved;if(null!==v){var w=v;do{var S=w.lane;op.lanes=ya(op.lanes,S),n_(S),w=w.next}while(w!==v)}else null===s&&(o.lanes=0);var x=o.dispatch;return[r.memoizedState,x]}function Ap(e,t,n){var r=Ep(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var a=o.dispatch,i=o.pending,s=r.memoizedState;if(null!==i){o.pending=null;var l=i.next,u=l;do{s=e(s,u.action),u=u.next}while(u!==l);Os(s,r.memoizedState)||mg(),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),o.lastRenderedState=s}return[s,a]}function $p(e,t,n){var r,o=op,i=Tp();if(yd()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),ep||r!==n()&&(a("The result of getServerSnapshot should be cached to avoid an infinite loop"),ep=!0)}else{if(r=t(),!ep){var s=t();Os(r,s)||(a("The result of getSnapshot should be cached to avoid an infinite loop"),ep=!0)}var l=My();if(null===l)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ua(0,rp)||Ip(o,t,r)}i.memoizedState=r;var u={value:r,getSnapshot:t};return i.queue=u,qp(Dp.bind(null,o,u,e),[e]),o.flags|=ir,Bp(9,Cp.bind(null,o,u,r,t),void 0,null),r}function Rp(e,t,n){var r=op,o=Ep(),i=t();if(!ep){var s=t();Os(i,s)||(a("The result of getSnapshot should be cached to avoid an infinite loop"),ep=!0)}var l=o.memoizedState,u=!Os(l,i);u&&(o.memoizedState=i,mg());var c=o.queue;if(Gp(Dp.bind(null,r,c,e),[e]),c.getSnapshot!==t||u||null!==ip&&1&ip.memoizedState.tag){r.flags|=ir,Bp(9,Cp.bind(null,r,c,i,t),void 0,null);var d=My();if(null===d)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ua(0,rp)||Ip(r,t,i)}return i}function Ip(e,t,n){e.flags|=ur;var r={getSnapshot:t,value:n},o=op.updateQueue;if(null===o)o={lastEffect:null,stores:null},op.updateQueue=o,o.stores=[r];else{var a=o.stores;null===a?o.stores=[r]:a.push(r)}}function Cp(e,t,n,r){t.value=n,t.getSnapshot=r,Np(t)&&Mp(e)}function Dp(e,t,n){return n(function(){Np(t)&&Mp(e)})}function Np(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Os(n,r)}catch(o){return!0}}function Mp(e){var t=df(e,So);null!==t&&By(t,e,So,ea)}function Lp(e){var t=Tp();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kp,lastRenderedState:e};t.queue=n;var r=n.dispatch=yh.bind(null,op,n);return[t.memoizedState,r]}function jp(e){return Op(kp)}function Fp(e){return Ap(kp)}function Bp(e,t,n,r){var o={tag:e,create:t,destroy:n,deps:r,next:null},a=op.updateQueue;if(null===a)a={lastEffect:null,stores:null},op.updateQueue=a,a.lastEffect=o.next=o;else{var i=a.lastEffect;if(null===i)a.lastEffect=o.next=o;else{var s=i.next;i.next=o,o.next=s,a.lastEffect=o}}return o}function Up(e){var t={current:e};return Tp().memoizedState=t,t}function zp(e){return Ep().memoizedState}function Vp(e,t,n,r){var o=Tp(),a=void 0===r?null:r;op.flags|=e,o.memoizedState=Bp(1|t,n,void 0,a)}function Hp(e,t,n,r){var o=Ep(),a=void 0===r?null:r,i=void 0;if(null!==ap){var s=ap.memoizedState;if(i=s.destroy,null!==a)if(_p(a,s.deps))return void(o.memoizedState=Bp(t,n,i,a))}op.flags|=e,o.memoizedState=Bp(1|t,n,i,a)}function qp(e,t){return 0!==(op.mode&bo)?Vp(41945088,8,e,t):Vp(8390656,8,e,t)}function Gp(e,t){return Hp(ir,8,e,t)}function Wp(e,t){return Vp(4,2,e,t)}function Yp(e,t){return Hp(4,2,e,t)}function Kp(e,t){var n=4;return n|=mr,0!==(op.mode&bo)&&(n|=gr),Vp(n,4,e,t)}function Xp(e,t){return Hp(4,4,e,t)}function Qp(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var o=t;o.hasOwnProperty("current")||a("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var i=e();return o.current=i,function(){o.current=null}}}function Zp(e,t,n){"function"!=typeof t&&a("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,o=4;return o|=mr,0!==(op.mode&bo)&&(o|=gr),Vp(o,4,Qp.bind(null,t,e),r)}function Jp(e,t,n){"function"!=typeof t&&a("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Hp(4,4,Qp.bind(null,t,e),r)}function eh(e,t){}var th=eh;function nh(e,t){var n=void 0===t?null:t;return Tp().memoizedState=[e,n],e}function rh(e,t){var n=Ep(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&_p(r,o[1])))return o[0];return n.memoizedState=[e,r],e}function oh(e,t){var n=Tp(),r=void 0===t?null:t,o=e();return n.memoizedState=[o,r],o}function ah(e,t){var n=Ep(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&_p(r,o[1])))return o[0];var a=e();return n.memoizedState=[a,r],a}function ih(e){return Tp().memoizedState=e,e}function sh(e){return uh(Ep(),ap.memoizedState,e)}function lh(e){var t=Ep();return null===ap?(t.memoizedState=e,e):uh(t,ap.memoizedState,e)}function uh(e,t,n){if(!(0===(rp&(So|To|ko)))){if(!Os(n,t)){var r=da();op.lanes=ya(op.lanes,r),n_(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,mg()),e.memoizedState=n,n}function ch(e,t,n){var r,a,i=La();ja((a=Ca,0!==(r=i)&&r<a?r:a)),e(!0);var s=np.transition;np.transition={};var l=np.transition;np.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(ja(i),np.transition=s,null===s&&l._updatedFibers)l._updatedFibers.size>10&&o("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."),l._updatedFibers.clear()}}function dh(){var e=Lp(!1),t=e[0],n=e[1],r=ch.bind(null,n);return Tp().memoizedState=r,[t,r]}function fh(){return[jp()[0],Ep().memoizedState]}function ph(){return[Fp()[0],Ep().memoizedState]}var hh=!1;function mh(){var e,t=Tp(),n=My().identifierPrefix;if(yd()){e=":"+n+"R"+Uc();var r=up++;r>0&&(e+="H"+r.toString(32)),e+=":"}else{e=":"+n+"r"+(cp++).toString(32)+":"}return t.memoizedState=e,e}function gh(){return Ep().memoizedState}function bh(e,t,n){"function"==typeof arguments[3]&&a("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=jy(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_h(e))vh(t,o);else{var i=cf(e,t,o,r);if(null!==i)By(i,e,r,Ly()),wh(i,t,r)}Sh(e,r)}function yh(e,t,n){"function"==typeof arguments[3]&&a("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=jy(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_h(e))vh(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)){var s=t.lastRenderedReducer;if(null!==s){var l;l=tp.current,tp.current=Ah;try{var u=t.lastRenderedState,c=s(u,n);if(o.hasEagerState=!0,o.eagerState=c,Os(c,u))return void function(e,t,n){var r=t.interleaved;null===r?(n.next=n,uf(t)):(n.next=r.next,r.next=n),t.interleaved=n}(0,t,o)}catch(f){}finally{tp.current=l}}}var d=cf(e,t,o,r);if(null!==d)By(d,e,r,Ly()),wh(d,t,r)}Sh(e,r)}function _h(e){var t=e.alternate;return e===op||null!==t&&t===op}function vh(e,t){lp=sp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wh(e,t,n){if(ca(n)){var r=t.lanes,o=ya(r=va(r,e.pendingLanes),n);t.lanes=o,Ta(e,o)}}function Sh(e,t,n){go(e,t)}var xh={readContext:sf,useCallback:yp,useContext:yp,useEffect:yp,useImperativeHandle:yp,useInsertionEffect:yp,useLayoutEffect:yp,useMemo:yp,useReducer:yp,useRef:yp,useState:yp,useDebugValue:yp,useDeferredValue:yp,useTransition:yp,useMutableSource:yp,useSyncExternalStore:yp,useId:yp,unstable_isNewReconciler:_},Th=null,Eh=null,kh=null,Ph=null,Oh=null,Ah=null,$h=null,Rh=function(){a("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().")},Ih=function(){a("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")};Th={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",mp(),bp(t),nh(e,t)},useContext:function(e){return dp="useContext",mp(),sf(e)},useEffect:function(e,t){return dp="useEffect",mp(),bp(t),qp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",mp(),bp(n),Zp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",mp(),bp(t),Wp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",mp(),bp(t),Kp(e,t)},useMemo:function(e,t){dp="useMemo",mp(),bp(t);var n=tp.current;tp.current=Oh;try{return oh(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",mp();var r=tp.current;tp.current=Oh;try{return Pp(e,t,n)}finally{tp.current=r}},useRef:function(e){return dp="useRef",mp(),Up(e)},useState:function(e){dp="useState",mp();var t=tp.current;tp.current=Oh;try{return Lp(e)}finally{tp.current=t}},useDebugValue:function(e,t){dp="useDebugValue",mp()},useDeferredValue:function(e){return dp="useDeferredValue",mp(),ih(e)},useTransition:function(){return dp="useTransition",mp(),dh()},useMutableSource:function(e,t,n){dp="useMutableSource",mp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",mp(),$p(e,t,n)},useId:function(){return dp="useId",mp(),mh()},unstable_isNewReconciler:_},Eh={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",gp(),nh(e,t)},useContext:function(e){return dp="useContext",gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",gp(),qp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",gp(),Zp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",gp(),Wp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",gp(),Kp(e,t)},useMemo:function(e,t){dp="useMemo",gp();var n=tp.current;tp.current=Oh;try{return oh(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",gp();var r=tp.current;tp.current=Oh;try{return Pp(e,t,n)}finally{tp.current=r}},useRef:function(e){return dp="useRef",gp(),Up(e)},useState:function(e){dp="useState",gp();var t=tp.current;tp.current=Oh;try{return Lp(e)}finally{tp.current=t}},useDebugValue:function(e,t){dp="useDebugValue",gp()},useDeferredValue:function(e){return dp="useDeferredValue",gp(),ih(e)},useTransition:function(){return dp="useTransition",gp(),dh()},useMutableSource:function(e,t,n){dp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",gp(),$p(e,t,n)},useId:function(){return dp="useId",gp(),mh()},unstable_isNewReconciler:_},kh={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",gp(),rh(e,t)},useContext:function(e){return dp="useContext",gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",gp();var n=tp.current;tp.current=Ah;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",gp();var r=tp.current;tp.current=Ah;try{return Op(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",gp(),zp()},useState:function(e){dp="useState",gp();var t=tp.current;tp.current=Ah;try{return jp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",gp(),sh(e)},useTransition:function(){return dp="useTransition",gp(),fh()},useMutableSource:function(e,t,n){dp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",gp(),Rp(e,t)},useId:function(){return dp="useId",gp(),gh()},unstable_isNewReconciler:_},Ph={readContext:function(e){return sf(e)},useCallback:function(e,t){return dp="useCallback",gp(),rh(e,t)},useContext:function(e){return dp="useContext",gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",gp();var n=tp.current;tp.current=$h;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",gp();var r=tp.current;tp.current=$h;try{return Ap(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",gp(),zp()},useState:function(e){dp="useState",gp();var t=tp.current;tp.current=$h;try{return Fp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",gp(),lh(e)},useTransition:function(){return dp="useTransition",gp(),ph()},useMutableSource:function(e,t,n){dp="useMutableSource",gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",gp(),Rp(e,t)},useId:function(){return dp="useId",gp(),gh()},unstable_isNewReconciler:_},Oh={readContext:function(e){return Rh(),sf(e)},useCallback:function(e,t){return dp="useCallback",Ih(),mp(),nh(e,t)},useContext:function(e){return dp="useContext",Ih(),mp(),sf(e)},useEffect:function(e,t){return dp="useEffect",Ih(),mp(),qp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",Ih(),mp(),Zp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",Ih(),mp(),Wp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",Ih(),mp(),Kp(e,t)},useMemo:function(e,t){dp="useMemo",Ih(),mp();var n=tp.current;tp.current=Oh;try{return oh(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",Ih(),mp();var r=tp.current;tp.current=Oh;try{return Pp(e,t,n)}finally{tp.current=r}},useRef:function(e){return dp="useRef",Ih(),mp(),Up(e)},useState:function(e){dp="useState",Ih(),mp();var t=tp.current;tp.current=Oh;try{return Lp(e)}finally{tp.current=t}},useDebugValue:function(e,t){dp="useDebugValue",Ih(),mp()},useDeferredValue:function(e){return dp="useDeferredValue",Ih(),mp(),ih(e)},useTransition:function(){return dp="useTransition",Ih(),mp(),dh()},useMutableSource:function(e,t,n){dp="useMutableSource",Ih(),mp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",Ih(),mp(),$p(e,t,n)},useId:function(){return dp="useId",Ih(),mp(),mh()},unstable_isNewReconciler:_},Ah={readContext:function(e){return Rh(),sf(e)},useCallback:function(e,t){return dp="useCallback",Ih(),gp(),rh(e,t)},useContext:function(e){return dp="useContext",Ih(),gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",Ih(),gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",Ih(),gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",Ih(),gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",Ih(),gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",Ih(),gp();var n=tp.current;tp.current=Ah;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",Ih(),gp();var r=tp.current;tp.current=Ah;try{return Op(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",Ih(),gp(),zp()},useState:function(e){dp="useState",Ih(),gp();var t=tp.current;tp.current=Ah;try{return jp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",Ih(),gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",Ih(),gp(),sh(e)},useTransition:function(){return dp="useTransition",Ih(),gp(),fh()},useMutableSource:function(e,t,n){dp="useMutableSource",Ih(),gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",Ih(),gp(),Rp(e,t)},useId:function(){return dp="useId",Ih(),gp(),gh()},unstable_isNewReconciler:_},$h={readContext:function(e){return Rh(),sf(e)},useCallback:function(e,t){return dp="useCallback",Ih(),gp(),rh(e,t)},useContext:function(e){return dp="useContext",Ih(),gp(),sf(e)},useEffect:function(e,t){return dp="useEffect",Ih(),gp(),Gp(e,t)},useImperativeHandle:function(e,t,n){return dp="useImperativeHandle",Ih(),gp(),Jp(e,t,n)},useInsertionEffect:function(e,t){return dp="useInsertionEffect",Ih(),gp(),Yp(e,t)},useLayoutEffect:function(e,t){return dp="useLayoutEffect",Ih(),gp(),Xp(e,t)},useMemo:function(e,t){dp="useMemo",Ih(),gp();var n=tp.current;tp.current=Ah;try{return ah(e,t)}finally{tp.current=n}},useReducer:function(e,t,n){dp="useReducer",Ih(),gp();var r=tp.current;tp.current=Ah;try{return Ap(e)}finally{tp.current=r}},useRef:function(e){return dp="useRef",Ih(),gp(),zp()},useState:function(e){dp="useState",Ih(),gp();var t=tp.current;tp.current=Ah;try{return Fp()}finally{tp.current=t}},useDebugValue:function(e,t){return dp="useDebugValue",Ih(),gp(),th()},useDeferredValue:function(e){return dp="useDeferredValue",Ih(),gp(),lh(e)},useTransition:function(){return dp="useTransition",Ih(),gp(),ph()},useMutableSource:function(e,t,n){dp="useMutableSource",Ih(),gp()},useSyncExternalStore:function(e,t,n){return dp="useSyncExternalStore",Ih(),gp(),Rp(e,t)},useId:function(){return dp="useId",Ih(),gp(),gh()},unstable_isNewReconciler:_};var Ch=t.unstable_now,Dh=0,Nh=-1,Mh=-1,Lh=-1,jh=!1,Fh=!1;function Bh(){return jh}function Uh(){return Dh}function zh(){Dh=Ch()}function Vh(e){Mh=Ch(),e.actualStartTime<0&&(e.actualStartTime=Ch())}function Hh(e){Mh=-1}function qh(e,t){if(Mh>=0){var n=Ch()-Mh;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Mh=-1}}function Gh(e){if(Nh>=0){var t=Ch()-Nh;Nh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:return void(n.stateNode.effectDuration+=t);case u:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function Wh(e){if(Lh>=0){var t=Ch()-Lh;Lh=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case u:var o=n.stateNode;return void(null!==o&&(o.passiveEffectDuration+=t))}n=n.return}}}function Yh(){Nh=Ch()}function Kh(){Lh=Ch()}function Xh(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Qh(e,t){if(e&&e.defaultProps){var n=we({},t),r=e.defaultProps;for(var o in r)void 0===n[o]&&(n[o]=r[o]);return n}return t}var Zh,Jh,em,tm,nm,rm,om,am,im,sm,lm,um={};Zh=new Set,Jh=new Set,em=new Set,tm=new Set,am=new Set,nm=new Set,im=new Set,sm=new Set,lm=new Set;var cm=new Set;function dm(e,t,n,r){var o=e.memoizedState,a=n(r,o);if(8&e.mode){Qr(!0);try{a=n(r,o)}finally{Qr(!1)}}rm(t,a);var i=null==a?o:we({},o,a);(e.memoizedState=i,0===e.lanes)&&(e.updateQueue.baseState=i)}om=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;cm.has(n)||(cm.add(n),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},rm=function(e,t){if(void 0===t){var n=Me(e)||"Component";nm.has(n)||(nm.add(n),a("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(um,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(um);var fm={isMounted:function(e){var t=xr.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||a("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",je(n)||"A component"),r._warnedAboutRefsInRender=!0}var o=er(e);return!!o&&Tr(o)===o},enqueueSetState:function(e,t,n){var r=er(e),o=Ly(),a=jy(r),i=wf(o,a);i.payload=t,null!=n&&(om(n,"setState"),i.callback=n);var s=Sf(r,i,a);null!==s&&(By(s,r,a,o),xf(s,r,a)),go(r,a)},enqueueReplaceState:function(e,t,n){var r=er(e),o=Ly(),a=jy(r),i=wf(o,a);i.tag=1,i.payload=t,null!=n&&(om(n,"replaceState"),i.callback=n);var s=Sf(r,i,a);null!==s&&(By(s,r,a,o),xf(s,r,a)),go(r,a)},enqueueForceUpdate:function(e,t){var n=er(e),r=Ly(),o=jy(n),a=wf(r,o);a.tag=bf,null!=t&&(om(t,"forceUpdate"),a.callback=t);var i=Sf(n,a,o);null!==i&&(By(i,n,o,r),xf(i,n,o)),function(e,t){null!==Yr&&"function"==typeof Yr.markForceUpdateScheduled&&Yr.markForceUpdateScheduled(e,t)}(n,o)}};function pm(e,t,n,r,o,i,s){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){var u=l.shouldComponentUpdate(r,i,s);if(8&e.mode){Qr(!0);try{u=l.shouldComponentUpdate(r,i,s)}finally{Qr(!1)}}return void 0===u&&a("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Me(t)||"Component"),u}return!t.prototype||!t.prototype.isPureReactComponent||(!As(n,r)||!As(o,i))}function hm(e,t){var n;t.updater=fm,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=um}function mm(e,t,n){var r=!1,o=cc,i=cc,s=t.contextType;if("contextType"in t&&(!(null===s||void 0!==s&&s.$$typeof===ae&&void 0===s._context)&&!sm.has(t))){sm.add(t);var l="";l=void 0===s?" 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.":"object"!=typeof s?" However, it is set to a "+typeof s+".":s.$$typeof===oe?" Did you accidentally pass the Context.Provider instead?":void 0!==s._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",a("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Me(t)||"Component",l)}if("object"==typeof s&&null!==s)i=sf(s);else{o=hc(0,t,!0);var u=t.contextTypes;i=(r=null!=u)?gc(e,o):cc}var c=new t(n,i);if(8&e.mode){Qr(!0);try{c=new t(n,i)}finally{Qr(!1)}}var d=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(hm(e,c),"function"==typeof t.getDerivedStateFromProps&&null===d){var f=Me(t)||"Component";Jh.has(f)||(Jh.add(f),a("`%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.",f,null===c.state?"null":"undefined",f))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,m=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?m="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(m="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==m){var g=Me(t)||"Component",b="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";tm.has(g)||(tm.add(g),a("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",g,b,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==m?"\n "+m:""))}}return r&&mc(e,o,i),c}function gm(e,t,n,r){var o=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==o){var i=je(e)||"Component";Zh.has(i)||(Zh.add(i),a("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),fm.enqueueReplaceState(t,t.state,null)}}function bm(e,t,n,r){!function(e,t,n){var r=e.stateNode,o=Me(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||a("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?",o),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&a("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.",o),r.propTypes&&a("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),r.contextType&&a("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),!t.childContextTypes||lm.has(t)||8&e.mode||(lm.add(t),a("%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead\n\n.Learn more about this warning here: https://reactjs.org/link/legacy-context",o)),!t.contextTypes||lm.has(t)||8&e.mode||(lm.add(t),a("%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)),r.contextTypes&&a("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!im.has(t)&&(im.add(t),a("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),"function"==typeof r.componentShouldUpdate&&a("%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.",o),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&a("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Me(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&a("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),"function"==typeof r.componentDidReceiveProps&&a("%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().",o),"function"==typeof r.componentWillRecieveProps&&a("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),"function"==typeof r.UNSAFE_componentWillRecieveProps&&a("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var i=r.props!==n;void 0!==r.props&&i&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),r.defaultProps&&a("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||em.has(t)||(em.add(t),a("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Me(t))),"function"==typeof r.getDerivedStateFromProps&&a("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof r.getDerivedStateFromError&&a("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof t.getSnapshotBeforeUpdate&&a("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var s=r.state;s&&("object"!=typeof s||vt(s))&&a("%s.state: must be set to an object or null",o),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&a("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}(e,t,n);var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},_f(e);var i=t.contextType;if("object"==typeof i&&null!==i)o.context=sf(i);else{var s=hc(0,t,!0);o.context=gc(e,s)}if(o.state===n){var l=Me(t)||"Component";am.has(l)||(am.add(l),a("%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.",l))}8&e.mode&&wd.recordLegacyContextWarning(e,o),wd.recordUnsafeLifecycleWarnings(e,o),o.state=e.memoizedState;var u=t.getDerivedStateFromProps;if("function"==typeof u&&(dm(e,t,u,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(a("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",je(e)||"Component"),fm.enqueueReplaceState(t,t.state,null))}(e,o),kf(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount){var c=4;c|=mr,0!==(e.mode&bo)&&(c|=gr),e.flags|=c}}function ym(e,t){return{value:e,source:t,stack:De(t),digest:null}}function _m(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function vm(e,t){try{0;var n=t.value,r=t.source,o=t.stack,a=null!==o?o:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var i=r?je(r):null,s=(i?"The above error occurred in the <"+i+"> component:":"The above error occurred in one of your React components:")+"\n"+a+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(je(e)||"Anonymous")+".");console.error(s)}catch(rw){setTimeout(function(){throw rw})}}var wm="function"==typeof WeakMap?WeakMap:Map;function Sm(e,t,n){var r=wf(ea,n);r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){f_(o),vm(e,t)},r}function xm(e,t,n){var r=wf(ea,n);r.tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var i=t.value;r.payload=function(){return o(i)},r.callback=function(){F_(e),vm(e,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(r.callback=function(){var n;F_(e),vm(e,t),"function"!=typeof o&&(n=this,null===_y?_y=new Set([n]):_y.add(n));var r=t.value,i=t.stack;this.componentDidCatch(r,{componentStack:null!==i?i:""}),"function"!=typeof o&&(ga(e.lanes,So)||a("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",je(e)||"Unknown"))}),r}function Tm(e,t,n){var r,o=e.pingCache;if(null===o?(o=e.pingCache=new wm,r=new Set,o.set(t,r)):void 0===(r=o.get(t))&&(r=new Set,o.set(t,r)),!r.has(n)){r.add(n);var a=m_.bind(null,e,t,n);Xr&&k_(e,n),t.then(a,a)}}function Em(e){var t=e;do{if(t.tag===c&&Yf(t))return t;t=t.return}while(null!==t);return null}function km(e,t,n,r,o){if(!(1&e.mode)){if(e===t)e.flags|=dr;else{if(e.flags|=nr,n.flags|=fr,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=p;else{var a=wf(ea,So);a.tag=bf,Sf(n,a,So)}n.lanes=ya(n.lanes,So)}return e}return e.flags|=dr,e.lanes=o,e}function Pm(e,t,n,r,o){if(n.flags|=cr,Xr&&k_(e,o),null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=r;!function(e){var t=e.tag;if(!(1&e.mode||0!==t&&t!==l&&t!==f)){var n=e.alternate;n?(e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.lanes=n.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),yd()&&1&n.mode&&Jc();var i=Em(t);if(null!==i)return i.flags&=-257,km(i,t,n,0,o),1&i.mode&&Tm(e,a,o),void function(e,t,n){var r=e.updateQueue;if(null===r){var o=new Set;o.add(n),e.updateQueue=o}else r.add(n)}(i,0,a);if(0===(o&So))return Tm(e,a,o),void r_();r=new Error("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.")}else if(yd()&&1&n.mode){Jc();var s=Em(t);if(null!==s)return 0===(s.flags&dr)&&(s.flags|=rr),km(s,t,n,0,o),void _d(ym(r,n))}!function(e){ry!==Yb&&(ry=Gb);null===ly?ly=[e]:ly.push(e)}(r=ym(r,n));var u=t;do{switch(u.tag){case 3:var c=r;u.flags|=dr;var d=pa(o);return u.lanes=ya(u.lanes,d),void Tf(u,Sm(u,c,d));case 1:var p=r,h=u.type,m=u.stateNode;if(0===(u.flags&nr)&&("function"==typeof h.getDerivedStateFromError||null!==m&&"function"==typeof m.componentDidCatch&&!d_(m))){u.flags|=dr;var g=pa(o);return u.lanes=ya(u.lanes,g),void Tf(u,xm(u,p,g))}}u=u.return}while(null!==u)}var Om,Am,$m,Rm,Im,Cm,Dm,Nm,Mm,Lm=n.ReactCurrentOwner,jm=!1;function Fm(e,t,n,r){t.child=null===e?Hd(t,null,n,r):Vd(t,e.child,n,r)}function Bm(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&nc(a,r,"prop",Me(n))}var i,s,l=n.render,u=t.ref;if(af(t,o),to(t),Lm.current=t,Ge(!0),i=vp(e,t,l,r,u,o),s=wp(),8&t.mode){Qr(!0);try{i=vp(e,t,l,r,u,o),s=wp()}finally{Qr(!1)}}return Ge(!1),no(),null===e||jm?(yd()&&s&&Hc(t),t.flags|=1,Fm(e,t,i,o),t.child):(Sp(e,t,o),bg(e,t,o))}function Um(e,t,n,r,o){if(null===e){var i=n.type;if(function(e){return"function"==typeof e&&!Y_(e)&&void 0===e.defaultProps}(i)&&null===n.compare&&void 0===n.defaultProps){var s;return s=N_(i),t.tag=f,t.type=s,Qm(t,i),zm(e,t,s,r,o)}var l=i.propTypes;if(l&&nc(l,r,"prop",Me(i)),void 0!==n.defaultProps){var u=Me(i)||"Unknown";Mm[u]||(a("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Mm[u]=!0)}var c=Q_(n.type,null,r,t,t.mode,o);return c.ref=t.ref,c.return=t,t.child=c,c}var d=n.type,p=d.propTypes;p&&nc(p,r,"prop",Me(d));var h=e.child;if(!yg(e,o)){var m=h.memoizedProps,g=n.compare;if((g=null!==g?g:As)(m,r)&&e.ref===t.ref)return bg(e,t,o)}t.flags|=1;var b=K_(h,r);return b.ref=t.ref,b.return=t,t.child=b,b}function zm(e,t,n,r,o){if(t.type!==t.elementType){var a=t.elementType;if(a.$$typeof===ce){var i=a,s=i._payload,l=i._init;try{a=l(s)}catch(d){a=null}var u=a&&a.propTypes;u&&nc(u,r,"prop",Me(a))}}if(null!==e){var c=e.memoizedProps;if(As(c,r)&&e.ref===t.ref&&t.type===e.type){if(jm=!1,t.pendingProps=r=c,!yg(e,o))return t.lanes=e.lanes,bg(e,t,o);0!==(e.flags&fr)&&(jm=!0)}}return qm(e,t,n,r,o)}function Vm(e,t,n){var r,o=t.pendingProps,a=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(1&t.mode){if(!ga(n,Zo)){var s;if(null!==i)s=ya(i.baseLanes,n);else s=n;t.lanes=t.childLanes=Zo;var l={baseLanes:s,cachePool:null,transitions:null};return t.memoizedState=l,t.updateQueue=null,Xy(t,s),null}var u={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=u,Xy(t,null!==i?i.baseLanes:n)}else{var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,Xy(t,n)}else null!==i?(r=ya(i.baseLanes,n),t.memoizedState=null):r=n,Xy(t,r);return Fm(e,t,a,n),t.child}function Hm(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=or,t.flags|=hr)}function qm(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&nc(a,r,"prop",Me(n))}var i,s,l;if(i=gc(t,hc(0,n,!0)),af(t,o),to(t),Lm.current=t,Ge(!0),s=vp(e,t,n,r,i,o),l=wp(),8&t.mode){Qr(!0);try{s=vp(e,t,n,r,i,o),l=wp()}finally{Qr(!1)}}return Ge(!1),no(),null===e||jm?(yd()&&l&&Hc(t),t.flags|=1,Fm(e,t,s,o),t.child):(Sp(e,t,o),bg(e,t,o))}function Gm(e,t,n,r,o){switch(yv(t)){case!1:var i=t.stateNode,s=new(0,t.type)(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,s,null);break;case!0:t.flags|=nr,t.flags|=dr;var l=new Error("Simulated error coming from DevTools"),u=pa(o);t.lanes=ya(t.lanes,u),Tf(t,xm(t,ym(l,t),u))}if(t.type!==t.elementType){var c=n.propTypes;c&&nc(c,r,"prop",Me(n))}var d,f;yc(n)?(d=!0,xc(t)):d=!1,af(t,o),null===t.stateNode?(gg(e,t),mm(t,n,r),bm(t,n,r,o),f=!0):f=null===e?function(e,t,n,r){var o=e.stateNode,a=e.memoizedProps;o.props=a;var i=o.context,s=t.contextType,l=cc;l="object"==typeof s&&null!==s?sf(s):gc(e,hc(0,t,!0));var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||a===n&&i===l||gm(e,o,n,l),Of();var d=e.memoizedState,f=o.state=d;if(kf(e,n,o,r),f=e.memoizedState,a===n&&d===f&&!bc()&&!Af()){if("function"==typeof o.componentDidMount){var p=4;p|=mr,0!==(e.mode&bo)&&(p|=gr),e.flags|=p}return!1}"function"==typeof u&&(dm(e,t,u,n),f=e.memoizedState);var h=Af()||pm(e,t,a,n,d,f,l);if(h){if(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount){var m=4;m|=mr,0!==(e.mode&bo)&&(m|=gr),e.flags|=m}}else{if("function"==typeof o.componentDidMount){var g=4;g|=mr,0!==(e.mode&bo)&&(g|=gr),e.flags|=g}e.memoizedProps=n,e.memoizedState=f}return o.props=n,o.state=f,o.context=l,h}(t,n,r,o):function(e,t,n,r,o){var a=t.stateNode;vf(e,t);var i=t.memoizedProps,s=t.type===t.elementType?i:Qh(t.type,i);a.props=s;var l=t.pendingProps,u=a.context,c=n.contextType,d=cc;d="object"==typeof c&&null!==c?sf(c):gc(t,hc(0,n,!0));var f=n.getDerivedStateFromProps,p="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||i===l&&u===d||gm(t,a,r,d),Of();var h=t.memoizedState,m=a.state=h;if(kf(t,r,a,o),m=t.memoizedState,i===l&&h===m&&!bc()&&!Af())return"function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=ar)),!1;"function"==typeof f&&(dm(t,n,f,r),m=t.memoizedState);var g=Af()||pm(t,n,s,r,h,m,d)||v;return g?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,d),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,d)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=ar)):("function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=ar)),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=d,g}(e,t,n,r,o);var p=Wm(e,t,n,f,d,o),h=t.stateNode;return f&&h.props!==r&&(Cm||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",je(t)||"a component"),Cm=!0),p}function Wm(e,t,n,r,o,a){Hm(e,t);var i=0!==(t.flags&nr);if(!r&&!i)return o&&Tc(t,n,!1),bg(e,t,a);var s,l=t.stateNode;if(Lm.current=t,i&&"function"!=typeof n.getDerivedStateFromError)s=null,Hh();else{if(to(t),Ge(!0),s=l.render(),8&t.mode){Qr(!0);try{l.render()}finally{Qr(!1)}}Ge(!1),no()}return t.flags|=1,null!==e&&i?function(e,t,n,r){t.child=Vd(t,e.child,null,r),t.child=Vd(t,null,n,r)}(e,t,s,a):Fm(e,t,s,a),t.memoizedState=l.state,o&&Tc(t,n,!0),t.child}function Ym(e){var t=e.stateNode;t.pendingContext?wc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wc(e,t.context,!1),Lf(e,t.containerInfo)}function Km(e,t,n,r,o){return gd(),_d(o),t.flags|=rr,Fm(e,t,n,r),t.child}function Xm(e,t,n,r){gg(e,t);var o=t.pendingProps,a=n,i=a._payload,s=(0,a._init)(i);t.type=s;var u=t.tag=function(e){if("function"==typeof e)return Y_(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===ie)return l;if(t===ue)return d}return 2}(s),c=Qh(s,o);switch(u){case 0:return Qm(t,s),t.type=s=N_(s),qm(null,t,s,c,r);case 1:return t.type=s=M_(s),Gm(null,t,s,c,r);case l:return t.type=s=L_(s),Bm(null,t,s,c,r);case d:if(t.type!==t.elementType){var f=s.propTypes;f&&nc(f,c,"prop",Me(s))}return Um(null,t,s,Qh(s.type,c),r)}var p="";throw null!==s&&"object"==typeof s&&s.$$typeof===ce&&(p=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+s+". Lazy element type must resolve to a class or function."+p)}function Qm(e,t){if(t&&t.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=ze();r&&(n+="\n\nCheck the render method of `"+r+"`.");var o=r||"",i=e._debugSource;i&&(o=i.fileName+":"+i.lineNumber),Im[o]||(Im[o]=!0,a("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(void 0!==t.defaultProps){var s=Me(t)||"Unknown";Mm[s]||(a("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",s),Mm[s]=!0)}if("function"==typeof t.getDerivedStateFromProps){var l=Me(t)||"Unknown";Rm[l]||(a("%s: Function components do not support getDerivedStateFromProps.",l),Rm[l]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var u=Me(t)||"Unknown";$m[u]||(a("%s: Function components do not support contextType.",u),$m[u]=!0)}}Om={},Am={},$m={},Rm={},Im={},Cm=!1,Dm={},Nm={},Mm={};var Zm={dehydrated:null,treeContext:null,retryLane:0};function Jm(e){return{baseLanes:e,cachePool:null,transitions:null}}function eg(e,t,n){var r=t.pendingProps;_v(t)&&(t.flags|=nr);var o=zf.current,i=!1,s=0!==(t.flags&nr);if(s||function(e,t){return(null===t||null!==t.memoizedState)&&Vf(e,2)}(o,e)?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o=o|1),Gf(t,o=Hf(o)),null===e){ud(t);var l=t.memoizedState;if(null!==l){var u=l.dehydrated;if(null!==u)return function(e,t){1&e.mode?Iu(t)?e.lanes=Eo:e.lanes=Zo:(a("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=So);return null}(t,u)}var c=r.children,d=r.fallback;if(i){var f=function(e,t,n,r){var o,a,i=e.mode,s=e.child,l={mode:"hidden",children:t};1&i||null===s?(o=ng(l,i),a=J_(n,i,r,null)):((o=s).childLanes=0,o.pendingProps=l,2&e.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=0,o.treeBaseDuration=0),a=J_(n,i,r,null));return o.return=e,a.return=e,o.sibling=a,e.child=o,a}(t,c,d,n);return t.child.memoizedState=Jm(n),t.memoizedState=Zm,f}return tg(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,o,i,s){if(n){if(t.flags&rr)return t.flags&=-257,og(e,t,s,_m(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=nr,null;var l=function(e,t,n,r,o){var a=t.mode,i={mode:"visible",children:n},s=ng(i,a),l=J_(r,a,o,null);l.flags|=2,s.return=t,l.return=t,s.sibling=l,t.child=s,!(1&t.mode)||Vd(t,e.child,null,o);return l}(e,t,r.children,r.fallback,s);return t.child.memoizedState=Jm(s),t.memoizedState=Zm,l}if(Xc&&a("We should not be hydrating here. This is a bug in React. Please file a bug."),!(1&t.mode))return og(e,t,s,null);if(Iu(o)){var u,c,d,f=function(e){var t,n,r,o=e.nextSibling&&e.nextSibling.dataset;return o&&(t=o.dgst,n=o.msg,r=o.stck),{message:n,digest:t,stack:r}}(o);return u=f.digest,c=f.message,d=f.stack,og(e,t,s,_m(c?new Error(c):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),u,d))}var p=ga(s,e.childLanes);if(jm||p){var h=My();if(null!==h){var m=function(e,t){var n;switch(fa(t)){case To:n=xo;break;case ko:n=Eo;break;case 64:case 128:case 256:case 512:case Ao:case $o:case Ro:case Io:case Co:case Do:case No:case Mo:case Lo:case jo:case Fo:case Bo:case zo:case Vo:case Ho:case qo:case Go:n=Po;break;case Qo:n=Xo;break;default:n=0}return 0!==(n&(e.suspendedLanes|t))?0:n}(h,s);if(0!==m&&m!==i.retryLane){i.retryLane=m;var g=ea;df(e,m),By(h,e,m,g)}}return r_(),og(e,t,s,_m(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(Ru(o)){t.flags|=nr,t.child=e.child;var b=b_.bind(null,e);return _=b,o._reactRetry=_,null}td(t,o,i.treeContext);var y=tg(t,r.children);return y.flags|=sr,y;var _}(e,t,s,r,h,p,n)}if(i){var m=r.fallback,g=function(e,t,n,r,o){var a,i,s=t.mode,l=e.child,u=l.sibling,c={mode:"hidden",children:n};if(1&s||t.child===l)(a=rg(l,c)).subtreeFlags=l.subtreeFlags&Sr;else{(a=t.child).childLanes=0,a.pendingProps=c,2&t.mode&&(a.actualDuration=0,a.actualStartTime=-1,a.selfBaseDuration=l.selfBaseDuration,a.treeBaseDuration=l.treeBaseDuration),t.deletions=null}null!==u?i=K_(u,r):(i=J_(r,s,o,null)).flags|=2;return i.return=t,a.return=t,a.sibling=i,t.child=a,i}(e,t,r.children,m,n),b=t.child,y=e.child.memoizedState;return b.memoizedState=null===y?Jm(n):function(e,t){return{baseLanes:ya(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(y,n),b.childLanes=function(e,t){return _a(e.childLanes,t)}(e,n),t.memoizedState=Zm,g}var _=function(e,t,n,r){var o=e.child,a=o.sibling,i=rg(o,{mode:"visible",children:n});1&t.mode||(i.lanes=r);if(i.return=t,i.sibling=null,null!==a){var s=t.deletions;null===s?(t.deletions=[a],t.flags|=tr):s.push(a)}return t.child=i,i}(e,t,r.children,n);return t.memoizedState=null,_}function tg(e,t,n){var r=ng({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function ng(e,t,n){return ev(e,t,0,null)}function rg(e,t){return K_(e,t)}function og(e,t,n,r){null!==r&&_d(r),Vd(t,e.child,null,n);var o=tg(t,t.pendingProps.children);return o.flags|=2,t.memoizedState=null,o}function ag(e,t,n){e.lanes=ya(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=ya(r.lanes,t)),rf(e.return,t,n)}function ig(e,t){var n=vt(e),r=!n&&"function"==typeof pe(e);if(n||r){var o=n?"array":"iterable";return a("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,t,o),!1}return!0}function sg(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function lg(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail,s=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!Dm[e])if(Dm[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":a('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":a('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:a('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else a('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(o),function(e,t){void 0===e||Nm[e]||("collapsed"!==e&&"hidden"!==e?(Nm[e]=!0,a('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(Nm[e]=!0,a('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(i,o),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(vt(e)){for(var n=0;n<e.length;n++)if(!ig(e[n],n))return}else{var r=pe(e);if("function"==typeof r){var o=r.call(e);if(o)for(var i=o.next(),s=0;!i.done;i=o.next()){if(!ig(i.value,s))return;s++}}else a('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(s,o),Fm(e,t,s,n);var l=zf.current;Vf(l,2)?(l=qf(l,2),t.flags|=nr):(null!==e&&0!==(e.flags&nr)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===c)null!==r.memoizedState&&ag(r,n,e);else if(r.tag===m)ag(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),l=Hf(l));if(Gf(t,l),1&t.mode)switch(o){case"forwards":var u,d=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Kf(r)&&(n=t),t=t.sibling}return n}(t.child);null===d?(u=t.child,t.child=null):(u=d.sibling,d.sibling=null),sg(t,!1,u,d,i);break;case"backwards":var f=null,p=t.child;for(t.child=null;null!==p;){var h=p.alternate;if(null!==h&&null===Kf(h)){t.child=p;break}var g=p.sibling;p.sibling=f,f=p,p=g}sg(t,!0,f,null,i);break;case"together":sg(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}var ug=!1;var cg,dg,fg,pg,hg=!1;function mg(){jm=!0}function gg(e,t){1&t.mode||null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bg(e,t,n){return null!==e&&(t.dependencies=e.dependencies),Hh(),n_(t.lanes),ga(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=K_(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=K_(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function yg(e,t){return!!ga(e.lanes,t)}function _g(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var o=r.child;if(null===o)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(null===(o=o.sibling))throw new Error("Expected to find the previous sibling.");o.sibling=n}var a=r.deletions;return null===a?(r.deletions=[e],r.flags|=tr):a.push(e),n.flags|=2,n}(e,t,Q_(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||bc()||t.type!==e.type)jm=!0;else{if(!yg(e,n)&&0===(t.flags&nr))return jm=!1,function(e,t,n){switch(t.tag){case 3:Ym(t),t.stateNode,gd();break;case 5:Bf(t);break;case 1:yc(t.type)&&xc(t);break;case 4:Lf(t,t.stateNode.containerInfo);break;case s:var r=t.memoizedProps.value;tf(t,t.type._context,r);break;case u:ga(n,t.childLanes)&&(t.flags|=4);var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0;break;case c:var a=t.memoizedState;if(null!==a){if(null!==a.dehydrated)return Gf(t,Hf(zf.current)),t.flags|=nr,null;if(ga(n,t.child.childLanes))return eg(e,t,n);Gf(t,Hf(zf.current));var i=bg(e,t,n);return null!==i?i.sibling:null}Gf(t,Hf(zf.current));break;case m:var l=0!==(e.flags&nr),d=ga(n,t.childLanes);if(l){if(d)return lg(e,t,n);t.flags|=nr}var f=t.memoizedState;if(null!==f&&(f.rendering=null,f.tail=null,f.lastEffect=null),Gf(t,zf.current),d)break;return null;case b:case y:return t.lanes=0,Vm(e,t,n)}return bg(e,t,n)}(e,t,n);jm=0!==(e.flags&fr)}else if(jm=!1,yd()&&function(e){return Wc(),0!==(e.flags&pr)}(t)){var r=t.index;Vc(t,(Wc(),Nc),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){gg(e,t);var o,i,s,l=t.pendingProps;if(o=gc(t,hc(0,n,!1)),af(t,r),to(t),n.prototype&&"function"==typeof n.prototype.render){var u=Me(n)||"Unknown";Om[u]||(a("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.",u,u),Om[u]=!0)}if(8&t.mode&&wd.recordLegacyContextWarning(t,null),Ge(!0),Lm.current=t,i=vp(null,t,n,l,o,r),s=wp(),Ge(!1),no(),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var c=Me(n)||"Unknown";Am[c]||(a("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),Am[c]=!0)}if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var d=Me(n)||"Unknown";Am[d]||(a("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.",d,d,d),Am[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;return yc(n)?(f=!0,xc(t)):f=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,_f(t),hm(t,i),bm(t,n,l,r),Wm(null,t,n,!0,f,r)}if(t.tag=0,8&t.mode){Qr(!0);try{i=vp(null,t,n,l,o,r),s=wp()}finally{Qr(!1)}}return yd()&&s&&Hc(t),Fm(null,t,i,r),Qm(t,n),t.child}(e,t,t.type,n);case 16:return Xm(e,t,t.elementType,n);case 0:var o=t.type,i=t.pendingProps;return qm(e,t,o,t.elementType===o?i:Qh(o,i),n);case 1:var h=t.type,_=t.pendingProps;return Gm(e,t,h,t.elementType===h?_:Qh(h,_),n);case 3:return function(e,t,n){if(Ym(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,o=t.memoizedState,a=o.element;vf(e,t),kf(t,r,null,n);var i=t.memoizedState;t.stateNode;var s=i.element;if(o.isDehydrated){var l={element:s,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions};if(t.updateQueue.baseState=l,t.memoizedState=l,t.flags&rr)return Km(e,t,s,n,ym(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(s!==a)return Km(e,t,s,n,ym(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));ed(t);var u=Hd(t,null,s,n);t.child=u;for(var c=u;c;)c.flags=-3&c.flags|sr,c=c.sibling}else{if(gd(),s===a)return bg(e,t,n);Fm(e,t,s,n)}return t.child}(e,t,n);case 5:return function(e,t,n){Bf(t),null===e&&ud(t);var r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children;return yu(r,o)?i=null:null!==a&&yu(r,a)&&(t.flags|=32),Hm(e,t),Fm(e,t,i,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&ud(t),null}(e,t);case c:return eg(e,t,n);case 4:return function(e,t,n){Lf(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=Vd(t,null,r,n):Fm(e,t,r,n),t.child}(e,t,n);case l:var v=t.type,w=t.pendingProps;return Bm(e,t,v,t.elementType===v?w:Qh(v,w),n);case 7:return function(e,t,n){return Fm(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return Fm(e,t,t.pendingProps.children,n),t.child}(e,t,n);case u:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,Fm(e,t,t.pendingProps.children,n),t.child}(e,t,n);case s:return function(e,t,n){var r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value;"value"in o||ug||(ug=!0,a("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var l=t.type.propTypes;if(l&&nc(l,o,"prop","Context.Provider"),tf(t,r,s),null!==i){var u=i.value;if(Os(u,s)){if(i.children===o.children&&!bc())return bg(e,t,n)}else of(t,r,n)}return Fm(e,t,o.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(hg||(hg=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var o=t.pendingProps.children;"function"!=typeof o&&a("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."),af(t,n);var i,s=sf(r);return to(t),Lm.current=t,Ge(!0),i=o(s),Ge(!1),no(),t.flags|=1,Fm(e,t,i,n),t.child}(e,t,n);case d:var S=t.type,x=Qh(S,t.pendingProps);if(t.type!==t.elementType){var T=S.propTypes;T&&nc(T,x,"prop",Me(S))}return Um(e,t,S,x=Qh(S.type,x),n);case f:return zm(e,t,t.type,t.pendingProps,n);case p:var E=t.type,k=t.pendingProps;return function(e,t,n,r,o){var a;return gg(e,t),t.tag=1,yc(n)?(a=!0,xc(t)):a=!1,af(t,o),mm(t,n,r),bm(t,n,r,o),Wm(null,t,n,!0,a,o)}(e,t,E,t.elementType===E?k:Qh(E,k),n);case m:return lg(e,t,n);case g:break;case b:return Vm(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function vg(e){e.flags|=4}function wg(e){e.flags|=or,e.flags|=hr}function Sg(e,t){if(!yd())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var o=e.tail,a=null;null!==o;)null!==o.alternate&&(a=o),o=o.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function xg(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(2&e.mode){for(var o=e.selfBaseDuration,a=e.child;null!==a;)n=ya(n,ya(a.lanes,a.childLanes)),r|=a.subtreeFlags&Sr,r|=a.flags&Sr,o+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=o}else for(var i=e.child;null!==i;)n=ya(n,ya(i.lanes,i.childLanes)),r|=i.subtreeFlags&Sr,r|=i.flags&Sr,i.return=e,i=i.sibling;e.subtreeFlags|=r}else{if(2&e.mode){for(var s=e.actualDuration,l=e.selfBaseDuration,u=e.child;null!==u;)n=ya(n,ya(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,s+=u.actualDuration,l+=u.treeBaseDuration,u=u.sibling;e.actualDuration=s,e.treeBaseDuration=l}else for(var c=e.child;null!==c;)n=ya(n,ya(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function Tg(e,t,n){if(Xc&&null!==Kc&&1&t.mode&&0===(t.flags&nr))return md(t),gd(),t.flags|=98560,!1;var r=hd(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(dd(t),xg(t),2&t.mode)if(null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}if(gd(),0===(t.flags&nr)&&(t.memoizedState=null),t.flags|=4,xg(t),2&t.mode&&null!==n){var a=t.child;null!==a&&(t.treeBaseDuration-=a.treeBaseDuration)}return!1}return bd(),!0}function Eg(e,t,n){var r=t.pendingProps;switch(Gc(t),t.tag){case 2:case 16:case f:case 0:case l:case 7:case 8:case u:case 9:case d:return xg(t),null;case 1:return yc(t.type)&&_c(t),xg(t),null;case 3:var o=t.stateNode;if(jf(t),vc(t),Qf(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null===e||null===e.child)if(hd(t))vg(t);else if(null!==e)e.memoizedState.isDehydrated&&0===(t.flags&rr)||(t.flags|=ar,bd());return dg(e,t),xg(t),null;case 5:Uf(t);var a=Mf(),i=t.type;if(null!==e&&null!=t.stateNode)fg(e,t,i,r,a),e.ref!==t.ref&&wg(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return xg(t),null}var h=Ff();if(hd(t))(function(e,t,n){var r=e.stateNode,o=!Qc,a=Nu(r,e.type,e.memoizedProps,0,n,e,o);return e.updateQueue=a,null!==a})(t,0,h)&&vg(t);else{var _=gu(i,r,a,h,t);cg(_,t,!1,!1),t.stateNode=_,function(e,t,n){switch(Gl(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(_,i,r)&&vg(t)}null!==t.ref&&wg(t)}return xg(t),null;case 6:var v=r;if(e&&null!=t.stateNode){var w=e.memoizedProps;pg(e,t,w,v)}else{if("string"!=typeof v&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var S=Mf(),x=Ff();hd(t)?cd(t)&&vg(t):t.stateNode=_u(v,S,x,t)}return xg(t),null;case c:Wf(t);var T=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)if(!Tg(e,t,T))return t.flags&dr?t:null;if(0!==(t.flags&nr))return t.lanes=n,2&t.mode&&Xh(t),t;var E=null!==T;if(E!==(null!==e&&null!==e.memoizedState))if(E)if(t.child.flags|=lr,1&t.mode)null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!0)||Vf(zf.current,1)?ry===Hb&&(ry=Wb):r_();if(null!==t.updateQueue&&(t.flags|=4),xg(t),2&t.mode&&E){var k=t.child;null!==k&&(t.treeBaseDuration-=k.treeBaseDuration)}return null;case 4:return jf(t),dg(e,t),null===e&&gl(t.stateNode.containerInfo),xg(t),null;case s:return nf(t.type._context,t),xg(t),null;case p:return yc(t.type)&&_c(t),xg(t),null;case m:Wf(t);var P=t.memoizedState;if(null===P)return xg(t),null;var O=0!==(t.flags&nr),A=P.rendering;if(null===A)if(O)Sg(P,!1);else{if(!(ry===Hb&&(null===e||0===(e.flags&nr))))for(var $=t.child;null!==$;){var R=Kf($);if(null!==R){O=!0,t.flags|=nr,Sg(P,!1);var I=R.updateQueue;return null!==I&&(t.updateQueue=I,t.flags|=4),t.subtreeFlags=0,qd(t,n),Gf(t,qf(zf.current,2)),t.child}$=$.sibling}null!==P.tail&&Lr()>gy()&&(t.flags|=nr,O=!0,Sg(P,!1),t.lanes=Wo)}else{if(!O){var C=Kf(A);if(null!==C){t.flags|=nr,O=!0;var D=C.updateQueue;if(null!==D&&(t.updateQueue=D,t.flags|=4),Sg(P,!0),null===P.tail&&"hidden"===P.tailMode&&!A.alternate&&!yd())return xg(t),null}else 2*Lr()-P.renderingStartTime>gy()&&n!==Zo&&(t.flags|=nr,O=!0,Sg(P,!1),t.lanes=Wo)}if(P.isBackwards)A.sibling=t.child,t.child=A;else{var N=P.last;null!==N?N.sibling=A:t.child=A,P.last=A}}if(null!==P.tail){var M=P.tail;P.rendering=M,P.tail=M.sibling,P.renderingStartTime=Lr(),M.sibling=null;var L=zf.current;return Gf(t,L=O?qf(L,2):Hf(L)),M}return xg(t),null;case g:break;case b:case y:Qy(t);var j=null!==t.memoizedState;if(null!==e)null!==e.memoizedState!==j&&(t.flags|=lr);return j&&1&t.mode?ga(ty,Zo)&&(xg(t),6&t.subtreeFlags&&(t.flags|=lr)):xg(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kg(e,t,n){switch(Gc(t),t.tag){case 1:yc(t.type)&&_c(t);var r=t.flags;return r&dr?(t.flags=-65537&r|nr,2&t.mode&&Xh(t),t):null;case 3:t.stateNode,jf(t),vc(t),Qf();var o=t.flags;return 0!==(o&dr)&&0===(o&nr)?(t.flags=-65537&o|nr,t):null;case 5:return Uf(t),null;case c:Wf(t);var a=t.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gd()}var i=t.flags;return i&dr?(t.flags=-65537&i|nr,2&t.mode&&Xh(t),t):null;case m:return Wf(t),null;case 4:return jf(t),null;case s:return nf(t.type._context,t),null;case b:case y:return Qy(t),null;default:return null}}function Pg(e,t,n){switch(Gc(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&_c(t);break;case 3:t.stateNode,jf(t),vc(t),Qf();break;case 5:Uf(t);break;case 4:jf(t);break;case c:case m:Wf(t);break;case s:nf(t.type._context,t);break;case b:case y:Qy(t)}}cg=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag||6===o.tag)bu(e,o.stateNode);else if(4===o.tag);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},dg=function(e,t){},fg=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var i=function(e,t,n,r,o,a){var i=a;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var s=""+r.children,l=tu(i.ancestorInfo,t);eu(null,s,l)}return Wl(e,t,n,r)}(t.stateNode,n,a,r,0,Ff());t.updateQueue=i,i&&vg(t)}},pg=function(e,t,n,r){n!==r&&vg(t)};var Og=null;Og=new Set;var Ag=!1,$g=!1,Rg="function"==typeof WeakSet?WeakSet:Set,Ig=null,Cg=null,Dg=null;var Ng=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{Yh(),t.componentWillUnmount()}finally{Gh(e)}else t.componentWillUnmount()};function Mg(e,t){try{Gg(4,e)}catch(n){h_(e,t,n)}}function Lg(e,t,n){try{Ng(e,n)}catch(r){h_(e,t,r)}}function jg(e,t){try{Xg(e)}catch(n){h_(e,t,n)}}function Fg(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{Yh(),r=n(null)}finally{Gh(e)}else r=n(null)}catch(o){h_(e,t,o)}"function"==typeof r&&a("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",je(e))}else n.current=null}function Bg(e,t,n){try{n()}catch(r){h_(e,t,r)}}var Ug=!1;function zg(e,t){mu(e.containerInfo),Ig=t,function(){for(;null!==Ig;){var e=Ig,t=e.child;0!==(e.subtreeFlags&yr)&&null!==t?(t.return=e,Ig=t):Vg()}}();var n=Ug;return Ug=!1,n}function Vg(){for(;null!==Ig;){var e=Ig;qe(e);try{Hg(e)}catch(n){h_(e,e.return,n)}He();var t=e.sibling;if(null!==t)return t.return=e.return,void(Ig=t);Ig=e.return}}function Hg(e){var t,n=e.alternate;if(0!==(e.flags&ar)){switch(qe(e),e.tag){case 0:case l:case f:break;case 1:if(null!==n){var r=n.memoizedProps,o=n.memoizedState,i=e.stateNode;e.type!==e.elementType||Cm||(i.props!==e.memoizedProps&&a("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(e)||"instance"),i.state!==e.memoizedState&&a("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(e)||"instance"));var s=i.getSnapshotBeforeUpdate(e.elementType===e.type?r:Qh(e.type,r),o),u=Og;void 0!==s||u.has(e.type)||(u.add(e.type),a("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",je(e))),i.__reactInternalSnapshotBeforeUpdate=s}break;case 3:var c=e.stateNode;1===(t=c.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;case 5:case 6:case 4:case p:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}He()}}function qg(e,t,n){var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next,i=a;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,void 0!==s&&(8&e?ao(t):4&e&&uo(t),2&e&&R_(!0),Bg(t,n,s),2&e&&R_(!1),8&e?io():4&e&&co())}i=i.next}while(i!==a)}}function Gg(e,t){var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next,i=o;do{if((i.tag&e)===e){8&e?ro(t):4&e&&so(t);var s=i.create;2&e&&R_(!0),i.destroy=s(),2&e&&R_(!1),8&e?oo():4&e&&lo();var l=i.destroy;if(void 0!==l&&"function"!=typeof l){var u=void 0;a("%s must not return anything besides a function, which is used for clean-up.%s",u=4&i.tag?"useLayoutEffect":2&i.tag?"useInsertionEffect":"useEffect",null===l?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof l.then?"\n\nIt looks like you wrote "+u+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+u+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+l)}}i=i.next}while(i!==o)}}function Wg(e,t){if(4&t.flags&&t.tag===u){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,o=r.id,a=r.onPostCommit,i=Uh(),s=null===t.alternate?"mount":"update";Bh()&&(s="nested-update"),"function"==typeof a&&a(o,s,n,i);var l=t.return;e:for(;null!==l;){switch(l.tag){case 3:l.stateNode.passiveEffectDuration+=n;break e;case u:l.stateNode.passiveEffectDuration+=n;break e}l=l.return}}}function Yg(e,t,n,r){if(0!==(n.flags&vr))switch(n.tag){case 0:case l:case f:if(!$g)if(2&n.mode)try{Yh(),Gg(5,n)}finally{Gh(n)}else Gg(5,n);break;case 1:var o=n.stateNode;if(4&n.flags&&!$g)if(null===t)if(n.type!==n.elementType||Cm||(o.props!==n.memoizedProps&&a("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(n)||"instance"),o.state!==n.memoizedState&&a("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(n)||"instance")),2&n.mode)try{Yh(),o.componentDidMount()}finally{Gh(n)}else o.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Qh(n.type,t.memoizedProps),s=t.memoizedState;if(n.type!==n.elementType||Cm||(o.props!==n.memoizedProps&&a("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(n)||"instance"),o.state!==n.memoizedState&&a("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(n)||"instance")),2&n.mode)try{Yh(),o.componentDidUpdate(i,s,o.__reactInternalSnapshotBeforeUpdate)}finally{Gh(n)}else o.componentDidUpdate(i,s,o.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;null!==d&&(n.type!==n.elementType||Cm||(o.props!==n.memoizedProps&&a("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(n)||"instance"),o.state!==n.memoizedState&&a("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(n)||"instance")),$f(0,d,o));break;case 3:var h=n.updateQueue;if(null!==h){var _=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:_=n.child.stateNode}$f(0,h,_)}break;case 5:var v=n.stateNode;if(null===t&&4&n.flags)!function(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(v,n.type,n.memoizedProps);break;case 6:case 4:break;case u:var w=n.memoizedProps,S=w.onCommit,x=w.onRender,T=n.stateNode.effectDuration,E=Uh(),k=null===t?"mount":"update";Bh()&&(k="nested-update"),"function"==typeof x&&x(n.memoizedProps.id,k,n.actualDuration,n.treeBaseDuration,n.actualStartTime,E),"function"==typeof S&&S(n.memoizedProps.id,k,T,E),O=n,xy.push(O),vy||(vy=!0,O_(Ur,function(){return c_(),null}));var P=n.return;e:for(;null!==P;){switch(P.tag){case 3:P.stateNode.effectDuration+=T;break e;case u:P.stateNode.effectDuration+=T;break e}P=P.return}break;case c:!function(e,t){var n=t.memoizedState;if(null===n){var r=t.alternate;if(null!==r){var o=r.memoizedState;if(null!==o){var a=o.dehydrated;null!==a&&function(e){ai(e)}(a)}}}}(0,n);break;case m:case p:case g:case b:case y:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var O;$g||n.flags&or&&Xg(n)}function Kg(e){switch(e.tag){case 0:case l:case f:if(2&e.mode)try{Yh(),Mg(e,e.return)}finally{Gh(e)}else Mg(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(r){h_(e,t,r)}}(e,e.return,t),jg(e,e.return);break;case 5:jg(e,e.return)}}function Xg(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,n=r,"function"==typeof t){var o;if(2&e.mode)try{Yh(),o=t(n)}finally{Gh(e)}else o=t(n);"function"==typeof o&&a("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",je(e))}else t.hasOwnProperty("current")||a("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",je(e)),t.current=n}}function Qg(e){var t,n=e.alternate;if(null!==n&&(e.alternate=null,Qg(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var r=e.stateNode;null!==r&&(delete(t=r)[ju],delete t[Fu],delete t[Uu],delete t[zu],delete t[Vu])}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zg(e){return 5===e.tag||3===e.tag||4===e.tag}function Jg(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Zg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==h;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function eb(e){var t=function(e){for(var t=e.return;null!==t;){if(Zg(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(Eu(n),t.flags&=-33),nb(e,Jg(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;tb(e,Jg(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function tb(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,o,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&ql(n)}(n,o)}else if(4===r);else{var a=e.child;if(null!==a){tb(a,t,n);for(var i=a.sibling;null!==i;)tb(i,t,n),i=i.sibling}}}function nb(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?function(e,t,n){e.insertBefore(t,n)}(n,o,t):function(e,t){e.appendChild(t)}(n,o)}else if(4===r);else{var a=e.child;if(null!==a){nb(a,t,n);for(var i=a.sibling;null!==i;)nb(i,t,n),i=i.sibling}}}var rb=null,ob=!1;function ab(e,t,n){var r,o,a=t;e:for(;null!==a;){switch(a.tag){case 5:rb=a.stateNode,ob=!1;break e;case 3:case 4:rb=a.stateNode.containerInfo,ob=!0;break e}a=a.return}if(null===rb)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");sb(e,t,n),rb=null,ob=!1,null!==(o=(r=n).alternate)&&(o.return=null),r.return=null}function ib(e,t,n){for(var r=n.child;null!==r;)sb(e,t,r),r=r.sibling}function sb(e,t,n){switch(function(e){if(Wr&&"function"==typeof Wr.onCommitFiberUnmount)try{Wr.onCommitFiberUnmount(Gr,e)}catch(t){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",t))}}(n),n.tag){case 5:$g||Fg(n,t);case 6:var r=rb,o=ob;return rb=null,ib(e,t,n),ob=o,void(null!==(rb=r)&&(ob?(x=rb,T=n.stateNode,8===x.nodeType?x.parentNode.removeChild(T):x.removeChild(T)):function(e,t){e.removeChild(t)}(rb,n.stateNode)));case h:return void(null!==rb&&(ob?function(e,t){8===e.nodeType?ku(e.parentNode,t):1===e.nodeType&&ku(e,t),ai(e)}(rb,n.stateNode):ku(rb,n.stateNode)));case 4:var i=rb,s=ob;return rb=n.stateNode.containerInfo,ob=!0,ib(e,t,n),rb=i,void(ob=s);case 0:case l:case d:case f:if(!$g){var u=n.updateQueue;if(null!==u){var c=u.lastEffect;if(null!==c){var p=c.next,m=p;do{var y=m,_=y.destroy,v=y.tag;void 0!==_&&(2&v?Bg(n,t,_):4&v&&(uo(n),2&n.mode?(Yh(),Bg(n,t,_),Gh(n)):Bg(n,t,_),co())),m=m.next}while(m!==p)}}}return void ib(e,t,n);case 1:if(!$g){Fg(n,t);var w=n.stateNode;"function"==typeof w.componentWillUnmount&&Lg(n,t,w)}return void ib(e,t,n);case g:return void ib(e,t,n);case b:if(1&n.mode){var S=$g;$g=S||null!==n.memoizedState,ib(e,t,n),$g=S}else ib(e,t,n);break;default:return void ib(e,t,n)}var x,T}function lb(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Rg),t.forEach(function(t){var r=y_.bind(null,e,t);if(!n.has(t)){if(n.add(t),Xr){if(null===Cg||null===Dg)throw Error("Expected finished root and lanes to be set. This is a bug in React.");k_(Dg,Cg)}t.then(r,r)}})}}function ub(e,t,n){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{ab(e,t,a)}catch(l){h_(a,t,l)}}var i=Be;if(t.subtreeFlags&_r)for(var s=t.child;null!==s;)qe(s),cb(s,e),s=s.sibling;qe(i)}function cb(e,t,n){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case l:case d:case f:if(ub(t,e),db(e),4&o){try{qg(3,e,e.return),Gg(3,e)}catch($){h_(e,e.return,$)}if(2&e.mode){try{Yh(),qg(5,e,e.return)}catch($){h_(e,e.return,$)}Gh(e)}else try{qg(5,e,e.return)}catch($){h_(e,e.return,$)}}return;case 1:return ub(t,e),db(e),void(o&or&&null!==r&&Fg(r,r.return));case 5:if(ub(t,e),db(e),o&or&&null!==r&&Fg(r,r.return),32&e.flags){var a=e.stateNode;try{Eu(a)}catch($){h_(e,e.return,$)}}if(4&o){var i=e.stateNode;if(null!=i){var s=e.memoizedProps,u=null!==r?r.memoizedProps:s,p=e.type,h=e.updateQueue;if(e.updateQueue=null,null!==h)try{!function(e,t,n,r,o){Yl(e,t,n,r,o),Zu(e,o)}(i,h,p,u,s)}catch($){h_(e,e.return,$)}}}return;case 6:if(ub(t,e),db(e),4&o){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var _=e.stateNode,v=e.memoizedProps;null!==r&&r.memoizedProps;try{!function(e,t,n){e.nodeValue=n}(_,0,v)}catch($){h_(e,e.return,$)}}return;case 3:if(ub(t,e),db(e),4&o)if(null!==r)if(r.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch($){h_(e,e.return,$)}return;case 4:return ub(t,e),void db(e);case c:ub(t,e),db(e);var w=e.child;if(w.flags&lr){var S=w.stateNode,x=null!==w.memoizedState;if(S.isHidden=x,x)null!==w.alternate&&null!==w.alternate.memoizedState||(cy=Lr())}if(4&o){try{!function(e){e.memoizedState}(e)}catch($){h_(e,e.return,$)}lb(e)}return;case b:var T=null!==r&&null!==r.memoizedState;if(1&e.mode){var E=$g;$g=E||T,ub(t,e),$g=E}else ub(t,e);if(db(e),o&lr){var k=e.stateNode,P=null!==e.memoizedState,O=e;if(k.isHidden=P,P&&!T&&1&O.mode){Ig=O;for(var A=O.child;null!==A;)Ig=A,mb(A),A=A.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var o=r.stateNode;t?Pu(o):Au(r.stateNode,r.memoizedProps)}catch($){h_(e,e.return,$)}}}else if(6===r.tag){if(null===n)try{var a=r.stateNode;t?Ou(a):$u(a,r.memoizedProps)}catch($){h_(e,e.return,$)}}else if((r.tag!==b&&r.tag!==y||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(O,P)}return;case m:return ub(t,e),db(e),void(4&o&&lb(e));case g:return;default:return ub(t,e),void db(e)}}function db(e){var t=e.flags;if(2&t){try{eb(e)}catch(n){h_(e,e.return,n)}e.flags&=-3}t&sr&&(e.flags&=-4097)}function fb(e,t,n){Cg=n,Dg=t,Ig=e,pb(e,t,n),Cg=null,Dg=null}function pb(e,t,n){for(var r=!!(1&e.mode);null!==Ig;){var o=Ig,a=o.child;if(o.tag===b&&r){var i=null!==o.memoizedState||Ag;if(i){hb(e,t,n);continue}var s=o.alternate,l=null!==s&&null!==s.memoizedState,u=Ag,c=$g;Ag=i,($g=l||$g)&&!c&&(Ig=o,bb(o));for(var d=a;null!==d;)Ig=d,pb(d,t,n),d=d.sibling;Ig=o,Ag=u,$g=c,hb(e,t,n)}else 0!==(o.subtreeFlags&vr)&&null!==a?(a.return=o,Ig=a):hb(e,t,n)}}function hb(e,t,n){for(;null!==Ig;){var r=Ig;if(0!==(r.flags&vr)){var o=r.alternate;qe(r);try{Yg(0,o,r)}catch(i){h_(r,r.return,i)}He()}if(r===e)return void(Ig=null);var a=r.sibling;if(null!==a)return a.return=r.return,void(Ig=a);Ig=r.return}}function mb(e){for(;null!==Ig;){var t=Ig,n=t.child;switch(t.tag){case 0:case l:case d:case f:if(2&t.mode)try{Yh(),qg(4,t,t.return)}finally{Gh(t)}else qg(4,t,t.return);break;case 1:Fg(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&Lg(t,t.return,r);break;case 5:Fg(t,t.return);break;case b:if(null!==t.memoizedState){gb(e);continue}}null!==n?(n.return=t,Ig=n):gb(e)}}function gb(e){for(;null!==Ig;){var t=Ig;if(t===e)return void(Ig=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(Ig=n);Ig=t.return}}function bb(e){for(;null!==Ig;){var t=Ig,n=t.child;if(t.tag===b)if(null!==t.memoizedState){yb(e);continue}null!==n?(n.return=t,Ig=n):yb(e)}}function yb(e){for(;null!==Ig;){var t=Ig;qe(t);try{Kg(t)}catch(r){h_(t,t.return,r)}if(He(),t===e)return void(Ig=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(Ig=n);Ig=t.return}}function _b(e,t,n,r){Ig=t,function(e,t,n,r){for(;null!==Ig;){var o=Ig,a=o.child;0!==(o.subtreeFlags&wr)&&null!==a?(a.return=o,Ig=a):vb(e,t,n,r)}}(t,e,n,r)}function vb(e,t,n,r){for(;null!==Ig;){var o=Ig;if(0!==(o.flags&ir)){qe(o);try{wb(t,o,n,r)}catch(i){h_(o,o.return,i)}He()}if(o===e)return void(Ig=null);var a=o.sibling;if(null!==a)return a.return=o.return,void(Ig=a);Ig=o.return}}function wb(e,t,n,r){switch(t.tag){case 0:case l:case f:if(2&t.mode){Kh();try{Gg(9,t)}finally{Wh(t)}}else Gg(9,t)}}function Sb(e){Ig=e,function(){for(;null!==Ig;){var e=Ig,t=e.child;if(0!==(Ig.flags&tr)){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var o=n[r];Ig=o,Eb(o,e)}var a=e.alternate;if(null!==a){var i=a.child;if(null!==i){a.child=null;do{var s=i.sibling;i.sibling=null,i=s}while(null!==i)}}Ig=e}}0!==(e.subtreeFlags&wr)&&null!==t?(t.return=e,Ig=t):xb()}}()}function xb(){for(;null!==Ig;){var e=Ig;0!==(e.flags&ir)&&(qe(e),Tb(e),He());var t=e.sibling;if(null!==t)return t.return=e.return,void(Ig=t);Ig=e.return}}function Tb(e){switch(e.tag){case 0:case l:case f:2&e.mode?(Kh(),qg(9,e,e.return),Wh(e)):qg(9,e,e.return)}}function Eb(e,t){for(;null!==Ig;){var n=Ig;qe(n),Pb(n,t),He();var r=n.child;null!==r?(r.return=n,Ig=r):kb(e)}}function kb(e){for(;null!==Ig;){var t=Ig,n=t.sibling,r=t.return;if(Qg(t),t===e)return void(Ig=null);if(null!==n)return n.return=r,void(Ig=n);Ig=r}}function Pb(e,t){switch(e.tag){case 0:case l:case f:2&e.mode?(Kh(),qg(8,e,t),Wh(e)):qg(8,e,t)}}function Ob(e){switch(e.tag){case 0:case l:case f:try{Gg(5,e)}catch(n){h_(e,e.return,n)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(n){h_(e,e.return,n)}}}function Ab(e){switch(e.tag){case 0:case l:case f:try{Gg(9,e)}catch(t){h_(e,e.return,t)}}}function $b(e){switch(e.tag){case 0:case l:case f:try{qg(5,e,e.return)}catch(n){h_(e,e.return,n)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Lg(e,e.return,t)}}function Rb(e){switch(e.tag){case 0:case l:case f:try{qg(9,e,e.return)}catch(t){h_(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var Ib=Symbol.for;Ib("selector.component"),Ib("selector.has_pseudo_class"),Ib("selector.role"),Ib("selector.test_id"),Ib("selector.text")}var Cb=[];var Db=n.ReactCurrentActQueue;function Nb(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===Db.current||a("The current testing environment is not configured to support act(...)"),e}var Mb=Math.ceil,Lb=n.ReactCurrentDispatcher,jb=n.ReactCurrentOwner,Fb=n.ReactCurrentBatchConfig,Bb=n.ReactCurrentActQueue,Ub=0,zb=2,Vb=4,Hb=0,qb=1,Gb=2,Wb=3,Yb=4,Kb=5,Xb=6,Qb=Ub,Zb=null,Jb=null,ey=0,ty=0,ny=sc(0),ry=Hb,oy=null,ay=0,iy=0,sy=0,ly=null,uy=null,cy=0,dy=500,fy=1/0,py=500,hy=null;function my(){fy=Lr()+py}function gy(){return fy}var by=!1,yy=null,_y=null,vy=!1,wy=null,Sy=0,xy=[],Ty=null,Ey=50,ky=0,Py=null,Oy=!1,Ay=!1,$y=50,Ry=0,Iy=null,Cy=ea,Dy=0,Ny=!1;function My(){return Zb}function Ly(){return(Qb&(zb|Vb))!==Ub?Lr():Cy!==ea?Cy:Cy=Lr()}function jy(e){if(!(1&e.mode))return So;if((Qb&zb)!==Ub&&0!==ey)return pa(ey);if(null!==vd.transition){if(null!==Fb.transition){var t=Fb.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===Dy&&(Dy=da()),Dy}var n,r=La();return 0!==r?r:void 0===(n=window.event)?Da:hi(n.type)}function Fy(e){var t;return 1&e.mode?(t=na,!((na<<=1)&Uo)&&(na=zo),t):So}function By(e,t,n,r){!function(){if(ky>Ey)throw ky=0,Py=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ry>$y&&(Ry=0,Iy=null,a("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),Ny&&a("useInsertionEffect must not schedule updates."),Oy&&(Ay=!0),Sa(e,n,r),0!==(Qb&zb)&&e===Zb?function(e){if(Ue&&!hh)switch(e.tag){case 0:case l:case f:var t=Jb&&je(Jb)||"Unknown",n=t;if(!T_.has(n))T_.add(n),a("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",je(e)||"Unknown",t,t);break;case 1:E_||(a("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),E_=!0)}}(t):(Xr&&Ea(e,t,n),function(e){if(1&e.mode){if(!Nb())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t)return;if(Qb!==Ub)return;if(0!==e.tag&&e.tag!==l&&e.tag!==f)return}var t;if(null===Bb.current){var n=Be;try{qe(e),a("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",je(e))}finally{n?qe(e):He()}}}(t),e===Zb&&((Qb&zb)===Ub&&(iy=ya(iy,n)),ry===Yb&&qy(e,ey)),Uy(e,r),n!==So||Qb!==Ub||1&t.mode||Bb.isBatchingLegacy||(my(),$c()))}function Uy(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,i=n;i>0;){var s=ha(i),l=1<<s,u=a[s];u===ea?0!==(l&r)&&0===(l&o)||(a[s]=aa(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=oa(e,e===Zb?ey:0);if(0===r)return null!==n&&A_(n),e.callbackNode=null,void(e.callbackPriority=0);var o=fa(r),i=e.callbackPriority;if(i!==o||null!==Bb.current&&n!==P_){var s,l;if(null!=n&&A_(n),o===So)0===e.tag?(null!==Bb.isBatchingLegacy&&(Bb.didScheduleLegacyUpdate=!0),l=Gy.bind(null,e),Pc=!0,Ac(l)):Ac(Gy.bind(null,e)),null!==Bb.current?Bb.current.push(Rc):xu(function(){(Qb&(zb|Vb))===Ub&&Rc()}),s=null;else{var u;switch(Ba(r)){case Ia:u=Fr;break;case Ca:u=Br;break;case Da:u=Ur;break;case Na:u=Vr;break;default:u=Ur}s=O_(u,zy.bind(null,e))}e.callbackPriority=o,e.callbackNode=s}else null==n&&i!==So&&a("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function zy(e,t){if(jh=!1,Fh=!1,Cy=ea,Dy=0,(Qb&(zb|Vb))!==Ub)throw new Error("Should not already be working.");var n=e.callbackNode;if(c_()&&e.callbackNode!==n)return null;var r=oa(e,e===Zb?ey:0);if(0===r)return null;var o=!ua(0,r)&&!function(e,t){return 0!==(t&e.expiredLanes)}(e,r)&&!t,a=o?function(e,t){var n=Qb;Qb|=zb;var r=e_();if(Zb!==e||ey!==t){if(Xr){var o=e.memoizedUpdaters;o.size>0&&(k_(e,ey),o.clear()),ka(e,t)}hy=null,my(),Zy(e,t)}ho(t);for(;;)try{i_();break}catch(a){Jy(e,a)}return Zd(),t_(r),Qb=n,null!==Jb?(null!==Yr&&"function"==typeof Yr.markRenderYielded&&Yr.markRenderYielded(),Hb):(mo(),Zb=null,ey=0,ry)}(e,r):o_(e,r);if(a!==Hb){if(a===Gb){var i=ia(e);0!==i&&(r=i,a=Vy(e,i))}if(a===qb){var s=oy;throw Zy(e,0),qy(e,r),Uy(e,Lr()),s}if(a===Xb)qy(e,r);else{var l=!ua(0,r),u=e.current.alternate;if(l&&!function(e){var t=e;for(;;){if(t.flags&ur){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o],i=a.getSnapshot,s=a.value;try{if(!Os(i(),s))return!1}catch(u){return!1}}}}var l=t.child;if(t.subtreeFlags&ur&&null!==l)l.return=t,t=l;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(u)){if((a=o_(e,r))===Gb){var c=ia(e);0!==c&&(r=c,a=Vy(e,c))}if(a===qb){var d=oy;throw Zy(e,0),qy(e,r),Uy(e,Lr()),d}}e.finishedWork=u,e.finishedLanes=r,function(e,t,n){switch(t){case Hb:case qb:throw new Error("Root did not complete. This is a bug in React.");case Gb:u_(e,uy,hy);break;case Wb:if(qy(e,n),la(n)&&!$_()){var r=cy+dy-Lr();if(r>10){if(0!==oa(e,0))break;var o=e.suspendedLanes;if(!ba(o,n)){Ly(),xa(e,o);break}e.timeoutHandle=vu(u_.bind(null,e,uy,hy),r);break}}u_(e,uy,hy);break;case Yb:if(qy(e,n),function(e){return(e&Oo)===e}(n))break;if(!$_()){var a=function(e,t){for(var n=e.eventTimes,r=ea;t>0;){var o=ha(t),a=1<<o,i=n[o];i>r&&(r=i),t&=~a}return r}(e,n),i=a,s=Lr()-i,l=((u=s)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*Mb(u/1960))-s;if(l>10){e.timeoutHandle=vu(u_.bind(null,e,uy,hy),l);break}}u_(e,uy,hy);break;case Kb:u_(e,uy,hy);break;default:throw new Error("Unknown root exit status.")}var u}(e,a,r)}}return Uy(e,Lr()),e.callbackNode===n?zy.bind(null,e):null}function Vy(e,t){var n=ly;Ua(e)&&(Zy(e,t).flags|=rr,a("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=o_(e,t);if(r!==Gb){var o=uy;uy=n,null!==o&&Hy(o)}return r}function Hy(e){null===uy?uy=e:uy.push.apply(uy,e)}function qy(e,t){t=_a(t,sy),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var o=ha(r),a=1<<o;n[o]=ea,r&=~a}}(e,t=_a(t,iy))}function Gy(e){if(jh=Fh,Fh=!1,(Qb&(zb|Vb))!==Ub)throw new Error("Should not already be working.");c_();var t=oa(e,0);if(!ga(t,So))return Uy(e,Lr()),null;var n=o_(e,t);if(0!==e.tag&&n===Gb){var r=ia(e);0!==r&&(t=r,n=Vy(e,r))}if(n===qb){var o=oy;throw Zy(e,0),qy(e,t),Uy(e,Lr()),o}if(n===Xb)throw new Error("Root did not complete. This is a bug in React.");var a=e.current.alternate;return e.finishedWork=a,e.finishedLanes=t,u_(e,uy,hy),Uy(e,Lr()),null}function Wy(e,t){var n=Qb;Qb|=1;try{return e(t)}finally{(Qb=n)!==Ub||Bb.isBatchingLegacy||(my(),$c())}}function Yy(e){null!==wy&&0===wy.tag&&(Qb&(zb|Vb))===Ub&&c_();var t=Qb;Qb|=1;var n=Fb.transition,r=La();try{return Fb.transition=null,ja(Ia),e?e():void 0}finally{ja(r),Fb.transition=n,((Qb=t)&(zb|Vb))===Ub&&Rc()}}function Ky(){return(Qb&(zb|Vb))!==Ub}function Xy(e,t){uc(ny,ty,e),ty=ya(ty,t)}function Qy(e){ty=ny.current,lc(ny,e)}function Zy(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wu(n)),null!==Jb)for(var r=Jb.return;null!==r;){r.alternate;Pg(0,r),r=r.return}Zb=e;var o=K_(e.current,null);return Jb=o,ey=ty=t,ry=Hb,oy=null,ay=0,iy=0,sy=0,ly=null,uy=null,function(){if(null!==lf){for(var e=0;e<lf.length;e++){var t=lf[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,o=t.pending;if(null!==o){var a=o.next;o.next=r,n.next=a}t.pending=n}}lf=null}}(),wd.discardPendingWarnings(),o}function Jy(e,t){for(;;){var n=Jb;try{if(Zd(),xp(),He(),jb.current=null,null===n||null===n.return)return ry=qb,oy=t,void(Jb=null);2&n.mode&&qh(n,!0),no(),null!==t&&"object"==typeof t&&"function"==typeof t.then?po(n,t,ey):fo(n,t,ey),Pm(e,n.return,n,t,ey),l_(n)}catch(r){t=r,Jb===n&&null!==n?(n=n.return,Jb=n):n=Jb;continue}return}}function e_(){var e=Lb.current;return Lb.current=xh,null===e?xh:e}function t_(e){Lb.current=e}function n_(e){ay=ya(e,ay)}function r_(){ry!==Hb&&ry!==Wb&&ry!==Gb||(ry=Yb),null!==Zb&&(sa(ay)||sa(iy))&&qy(Zb,ey)}function o_(e,t){var n=Qb;Qb|=zb;var r=e_();if(Zb!==e||ey!==t){if(Xr){var o=e.memoizedUpdaters;o.size>0&&(k_(e,ey),o.clear()),ka(e,t)}hy=null,Zy(e,t)}for(ho(t);;)try{a_();break}catch(a){Jy(e,a)}if(Zd(),Qb=n,t_(r),null!==Jb)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return mo(),Zb=null,ey=0,ry}function a_(){for(;null!==Jb;)s_(Jb)}function i_(){for(;null!==Jb&&!Nr();)s_(Jb)}function s_(e){var t,n=e.alternate;qe(e),2&e.mode?(Vh(e),t=w_(n,e,ty),qh(e,!0)):t=w_(n,e,ty),He(),e.memoizedProps=e.pendingProps,null===t?l_(e):Jb=t,jb.current=null}function l_(e){var t=e;do{var n=t.alternate,r=t.return;if(0===(t.flags&cr)){qe(t);var o=void 0;if(2&t.mode?(Vh(t),o=Eg(n,t,ty),qh(t,!1)):o=Eg(n,t,ty),He(),null!==o)return void(Jb=o)}else{var a=kg(0,t);if(null!==a)return a.flags&=32767,void(Jb=a);if(2&t.mode){qh(t,!1);for(var i=t.actualDuration,s=t.child;null!==s;)i+=s.actualDuration,s=s.sibling;t.actualDuration=i}if(null===r)return ry=Xb,void(Jb=null);r.flags|=cr,r.subtreeFlags=0,r.deletions=null}var l=t.sibling;if(null!==l)return void(Jb=l);Jb=t=r}while(null!==t);ry===Hb&&(ry=Kb)}function u_(e,t,n){var r=La(),o=Fb.transition;try{Fb.transition=null,ja(Ia),function(e,t,n,r){do{c_()}while(null!==wy);if(function(){wd.flushLegacyContextWarning(),wd.flushPendingUnsafeLifecycleWarnings()}(),(Qb&(zb|Vb))!==Ub)throw new Error("Should not already be working.");var o=e.finishedWork,i=e.finishedLanes;if(function(e){null!==Yr&&"function"==typeof Yr.markCommitStarted&&Yr.markCommitStarted(e)}(i),null===o)return eo(),null;0===i&&a("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var s=ya(o.lanes,o.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,o=e.eventTimes,a=e.expirationTimes,i=n;i>0;){var s=ha(i),l=1<<s;r[s]=0,o[s]=ea,a[s]=ea,i&=~l}})(e,s),e===Zb&&(Zb=null,Jb=null,ey=0);0===(o.subtreeFlags&wr)&&0===(o.flags&wr)||vy||(vy=!0,Ty=n,O_(Ur,function(){return c_(),null}));var l=!!(15990&o.subtreeFlags),u=!!(15990&o.flags);if(l||u){var c=Fb.transition;Fb.transition=null;var d=La();ja(Ia);var f=Qb;Qb|=Vb,jb.current=null,zg(e,o),zh(),function(e,t,n){Cg=n,Dg=e,qe(t),cb(t,e),qe(t),Cg=null,Dg=null}(e,o,i),e.containerInfo,Bs(hu),li(pu),pu=null,hu=null,e.current=o,function(e){null!==Yr&&"function"==typeof Yr.markLayoutEffectsStarted&&Yr.markLayoutEffectsStarted(e)}(i),fb(o,e,i),null!==Yr&&"function"==typeof Yr.markLayoutEffectsStopped&&Yr.markLayoutEffectsStopped(),Mr(),Qb=f,ja(d),Fb.transition=c}else e.current=o,zh();var p=vy;vy?(vy=!1,wy=e,Sy=i):(Ry=0,Iy=null);s=e.pendingLanes,0===s&&(_y=null);p||__(e.current,!1);(function(e,t){if(Wr&&"function"==typeof Wr.onCommitFiberRoot)try{var n,r=(e.current.flags&nr)===nr;switch(t){case Ia:n=Fr;break;case Ca:n=Br;break;case Da:n=Ur;break;case Na:n=Vr;break;default:n=Ur}Wr.onCommitFiberRoot(Gr,e,n,r)}catch(o){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",o))}})(o.stateNode,r),Xr&&e.memoizedUpdaters.clear();if(function(){Cb.forEach(function(e){return e()})}(),Uy(e,Lr()),null!==t)for(var h=e.onRecoverableError,m=0;m<t.length;m++){var g=t[m],b=g.stack,y=g.digest;h(g.value,{componentStack:b,digest:y})}if(by){by=!1;var _=yy;throw yy=null,_}ga(Sy,So)&&0!==e.tag&&c_();s=e.pendingLanes,ga(s,So)?(Fh=!0,e===Py?ky++:(ky=0,Py=e)):ky=0;Rc(),eo()}(e,t,n,r)}finally{Fb.transition=o,ja(r)}return null}function c_(){if(null!==wy){var e=Ba(Sy),t=(o=Da)>(i=e)?o:i,n=Fb.transition,r=La();try{return Fb.transition=null,ja(t),function(){if(null===wy)return!1;var e=Ty;Ty=null;var t=wy,n=Sy;if(wy=null,Sy=0,(Qb&(zb|Vb))!==Ub)throw new Error("Cannot flush passive effects while already rendering.");Oy=!0,Ay=!1,function(e){null!==Yr&&"function"==typeof Yr.markPassiveEffectsStarted&&Yr.markPassiveEffectsStarted(e)}(n);var r=Qb;Qb|=Vb,Sb(t.current),_b(t,t.current,n,e);var o=xy;xy=[];for(var i=0;i<o.length;i++){Wg(0,o[i])}void(null!==Yr&&"function"==typeof Yr.markPassiveEffectsStopped&&Yr.markPassiveEffectsStopped()),__(t.current,!0),Qb=r,Rc(),Ay?t===Iy?Ry++:(Ry=0,Iy=t):Ry=0;Oy=!1,Ay=!1,function(e){if(Wr&&"function"==typeof Wr.onPostCommitFiberRoot)try{Wr.onPostCommitFiberRoot(Gr,e)}catch(t){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",t))}}(t);var s=t.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}()}finally{ja(r),Fb.transition=n}}var o,i;return!1}function d_(e){return null!==_y&&_y.has(e)}var f_=function(e){by||(by=!0,yy=e)};function p_(e,t,n){var r=Sf(e,Sm(e,ym(n,t),So),So),o=Ly();null!==r&&(Sa(r,So,o),Uy(r,o))}function h_(e,t,n){var r;if(r=n,Zn(null,function(){throw r}),Jn(),R_(!1),3!==e.tag){var o=null;for(o=t;null!==o;){if(3===o.tag)return void p_(o,e,n);if(1===o.tag){var i=o.type,s=o.stateNode;if("function"==typeof i.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&!d_(s)){var l=Sf(o,xm(o,ym(n,e),So),So),u=Ly();return void(null!==l&&(Sa(l,So,u),Uy(l,u)))}}o=o.return}a("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else p_(e,e,n)}function m_(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var o=Ly();xa(e,n),function(e){0!==e.tag&&Nb()&&null===Bb.current&&a("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),Zb===e&&ba(ey,n)&&(ry===Yb||ry===Wb&&la(ey)&&Lr()-cy<dy?Zy(e,0):sy=ya(sy,n)),Uy(e,o)}function g_(e,t){0===t&&(t=Fy(e));var n=Ly(),r=df(e,t);null!==r&&(Sa(r,t,n),Uy(r,n))}function b_(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),g_(e,n)}function y_(e,t){var n,r=0;switch(e.tag){case c:n=e.stateNode;var o=e.memoizedState;null!==o&&(r=o.retryLane);break;case m:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),g_(e,r)}function __(e,t){qe(e),v_(e,gr,$b),t&&v_(e,br,Rb),v_(e,gr,Ob),t&&v_(e,br,Ab),He()}function v_(e,t,n){for(var r=e,o=null;null!==r;){var a=r.subtreeFlags&t;r!==o&&null!==r.child&&0!==a?r=r.child:(0!==(r.flags&t)&&n(r),r=null!==r.sibling?r.sibling:o=r.return)}}var w_,S_=null;function x_(e){if((Qb&zb)===Ub&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===l||t===d||t===f){var n=je(e)||"ReactComponent";if(null!==S_){if(S_.has(n))return;S_.add(n)}else S_=new Set([n]);var r=Be;try{qe(e),a("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?qe(e):He()}}}}w_=function(e,t,n){var r=rv(null,t);try{return _g(e,t,n)}catch(a){if(Qc||null!==a&&"object"==typeof a&&"function"==typeof a.then)throw a;if(Zd(),xp(),Pg(0,t),rv(t,r),2&t.mode&&Vh(t),Zn(null,_g,null,e,t,n),Wn){var o=Jn();"object"==typeof o&&null!==o&&o._suppressLogging&&"object"==typeof a&&null!==a&&!a._suppressLogging&&(a._suppressLogging=!0)}throw a}};var T_,E_=!1;function k_(e,t){Xr&&e.memoizedUpdaters.forEach(function(n){Ea(e,n,t)})}T_=new Set;var P_={};function O_(e,t){var n=Bb.current;return null!==n?(n.push(t),P_):Cr(e,t)}function A_(e){if(e!==P_)return Dr(e)}function $_(){return null!==Bb.current}function R_(e){Ny=e}var I_=null,C_=null,D_=function(e){I_=e};function N_(e){if(null===I_)return e;var t=I_(e);return void 0===t?e:t.current}function M_(e){return N_(e)}function L_(e){if(null===I_)return e;var t=I_(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=N_(e.render);if(e.render!==n){var r={$$typeof:ie,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function j_(e,t){if(null===I_)return!1;var n=e.elementType,r=t.type,o=!1,a="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(o=!0);break;case 0:("function"==typeof r||a===ce)&&(o=!0);break;case l:(a===ie||a===ce)&&(o=!0);break;case d:case f:(a===ue||a===ce)&&(o=!0);break;default:return!1}if(o){var i=I_(n);if(void 0!==i&&i===I_(r))return!0}return!1}function F_(e){null!==I_&&"function"==typeof WeakSet&&(null===C_&&(C_=new WeakSet),C_.add(e))}var B_=function(e,t){if(null!==I_){var n=t.staleFamilies,r=t.updatedFamilies;c_(),Yy(function(){z_(e.current,r,n)})}},U_=function(e,t){e.context===cc&&(c_(),Yy(function(){pv(t,e,null,null)}))};function z_(e,t,n){var r=e.alternate,o=e.child,a=e.sibling,i=e.tag,s=e.type,u=null;switch(i){case 0:case f:case 1:u=s;break;case l:u=s.render}if(null===I_)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(null!==u){var p=I_(u);void 0!==p&&(n.has(p)?d=!0:t.has(p)&&(1===i?d=!0:c=!0))}if(null!==C_&&(C_.has(e)||null!==r&&C_.has(r))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var h=df(e,So);null!==h&&By(h,e,So,ea)}null===o||d||z_(o,t,n),null!==a&&z_(a,t,n)}var V_,H_=function(e,t){var n=new Set,r=new Set(t.map(function(e){return e.current}));return q_(e.current,r,n),n};function q_(e,t,n){var r=e.child,o=e.sibling,a=e.tag,i=e.type,s=null;switch(a){case 0:case f:case 1:s=i;break;case l:s=i.render}var u=!1;null!==s&&t.has(s)&&(u=!0),u?function(e,t){var n=function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t);if(n)return;var r=e;for(;;){switch(r.tag){case 5:return void t.add(r.stateNode);case 4:case 3:return void t.add(r.stateNode.containerInfo)}if(null===r.return)throw new Error("Expected to reach root first.");r=r.return}}(e,n):null!==r&&q_(r,t,n),null!==o&&q_(o,t,n)}V_=!1;try{Object.preventExtensions({})}catch(rw){V_=!0}function G_(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,V_||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var W_=function(e,t,n,r){return new G_(e,t,n,r)};function Y_(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function K_(e,t){var n=e.alternate;null===n?((n=W_(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Sr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case f:n.type=N_(e.type);break;case 1:n.type=M_(e.type);break;case l:n.type=L_(e.type)}return n}function X_(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function Q_(e,t,n,r,o,i){var f=2,p=e;if("function"==typeof e)Y_(e)?(f=1,p=M_(p)):p=N_(p);else if("string"==typeof e)f=5;else e:switch(e){case te:return J_(n.children,o,i,t);case ne:f=8,1&(o|=8)&&(o|=bo);break;case re:return function(e,t,n,r){"string"!=typeof e.id&&a('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var o=W_(u,e,r,2|t);return o.elementType=re,o.lanes=n,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}(n,o,i,t);case se:return function(e,t,n,r){var o=W_(c,e,r,t);return o.elementType=se,o.lanes=n,o}(n,o,i,t);case le:return function(e,t,n,r){var o=W_(m,e,r,t);return o.elementType=le,o.lanes=n,o}(n,o,i,t);case de:return ev(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:f=s;break e;case ae:f=9;break e;case ie:f=l,p=L_(p);break e;case ue:f=d;break e;case ce:f=16,p=null;break e}var h="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=r?je(r):null;throw g&&(h+="\n\nCheck the render method of `"+g+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+h)}var b=W_(f,n,t,o);return b.elementType=e,b.type=p,b.lanes=i,b._debugOwner=r,b}function Z_(e,t,n){var r;r=e._owner;var o=Q_(e.type,e.key,e.props,r,t,n);return o._debugSource=e._source,o._debugOwner=e._owner,o}function J_(e,t,n,r){var o=W_(7,e,r,t);return o.lanes=n,o}function ev(e,t,n,r){var o=W_(b,e,r,t);o.elementType=de,o.lanes=n;return o.stateNode={isHidden:!1},o}function tv(e,t,n){var r=W_(6,e,null,t);return r.lanes=n,r}function nv(e,t,n){var r=null!==e.children?e.children:[],o=W_(4,r,e.key,t);return o.lanes=n,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function rv(e,t){return null===e&&(e=W_(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function ov(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=wa(0),this.expirationTimes=wa(ea),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=wa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var a=this.pendingUpdatersLaneMap=[],i=0;i<wo;i++)a.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function av(e,t,n,r,o,a,i,s,l,u){var c=new ov(e,t,n,s,l),d=function(e,t){var n;return 1===e?(n=1,!0===t&&(n|=8,n|=bo)):n=0,Xr&&(n|=2),W_(3,null,null,n)}(t,a);c.current=d,d.stateNode=c;var f={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=f,_f(d),c}var iv,sv,lv="18.3.1";function uv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e){if(A(e))a("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",O(e)),$(e)}(r),{$$typeof:ee,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function cv(e){if(!e)return cc;var t=er(e),n=Ec(t);if(1===t.tag){var r=t.type;if(yc(r))return Sc(t,r,n)}return n}function dv(e,t,n,r,o,a,i,s){return av(e,t,!1,null,0,r,0,a,i)}function fv(e,t,n,r,o,a,i,s,l,u){var c=av(n,r,!0,e,0,a,0,s,l);c.context=cv(null);var d=c.current,f=Ly(),p=jy(d),h=wf(f,p);return h.callback=null!=t?t:null,Sf(d,h,p),function(e,t,n){e.current.lanes=t,Sa(e,t,n),Uy(e,n)}(c,p,f),c}function pv(e,t,n,r){!function(e,t){if(Wr&&"function"==typeof Wr.onScheduleFiberRoot)try{Wr.onScheduleFiberRoot(Gr,e,t)}catch(n){Kr||(Kr=!0,a("React instrumentation encountered an error: %s",n))}}(t,e);var o=t.current,i=Ly(),s=jy(o);!function(e){null!==Yr&&"function"==typeof Yr.markRenderScheduled&&Yr.markRenderScheduled(e)}(s);var l=cv(n);null===t.context?t.context=l:t.pendingContext=l,Ue&&null!==Be&&!iv&&(iv=!0,a("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",je(Be)||"Unknown"));var u=wf(i,s);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&a("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=Sf(o,u,s);return null!==c&&(By(c,o,s,i),xf(c,o,s)),s}function hv(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function mv(e,t){var n,r,o=e.memoizedState;null!==o&&null!==o.dehydrated&&(o.retryLane=(n=o.retryLane,r=t,0!==n&&n<r?n:r))}function gv(e,t){mv(e,t);var n=e.alternate;n&&mv(n,t)}function bv(e){var t=Rr(e);return null===t?null:t.stateNode}iv=!1,sv={};var yv=function(e){return null};var _v=function(e){return!1};var vv,wv,Sv,xv,Tv,Ev,kv,Pv,Ov,Av=function(e,t,n){var r=t[n],o=vt(e)?e.slice():we({},e);return n+1===t.length?(vt(o)?o.splice(r,1):delete o[r],o):(o[r]=Av(e[r],t,n+1),o)},$v=function(e,t){return Av(e,t,0)},Rv=function(e,t,n,r){var o=t[r],a=vt(e)?e.slice():we({},e);r+1===t.length?(a[n[r]]=a[o],vt(a)?a.splice(o,1):delete a[o]):a[o]=Rv(e[o],t,n,r+1);return a},Iv=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void o("copyWithRename() expects paths to be the same except for the deepest key");return Rv(e,t,n,0)}o("copyWithRename() expects paths of the same length")},Cv=function(e,t,n,r){if(n>=t.length)return r;var o=t[n],a=vt(e)?e.slice():we({},e);return a[o]=Cv(e[o],t,n+1,r),a},Dv=function(e,t,n){return Cv(e,t,0,n)},Nv=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function Mv(e){var t=Ar(e);return null===t?null:t.stateNode}function Lv(e){return null}function jv(){return Be}vv=function(e,t,n,r){var o=Nv(e,t);if(null!==o){var a=Dv(o.memoizedState,n,r);o.memoizedState=a,o.baseState=a,e.memoizedProps=we({},e.memoizedProps);var i=df(e,So);null!==i&&By(i,e,So,ea)}},wv=function(e,t,n){var r=Nv(e,t);if(null!==r){var o=$v(r.memoizedState,n);r.memoizedState=o,r.baseState=o,e.memoizedProps=we({},e.memoizedProps);var a=df(e,So);null!==a&&By(a,e,So,ea)}},Sv=function(e,t,n,r){var o=Nv(e,t);if(null!==o){var a=Iv(o.memoizedState,n,r);o.memoizedState=a,o.baseState=a,e.memoizedProps=we({},e.memoizedProps);var i=df(e,So);null!==i&&By(i,e,So,ea)}},xv=function(e,t,n){e.pendingProps=Dv(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=df(e,So);null!==r&&By(r,e,So,ea)},Tv=function(e,t){e.pendingProps=$v(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=df(e,So);null!==n&&By(n,e,So,ea)},Ev=function(e,t,n){e.pendingProps=Iv(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=df(e,So);null!==r&&By(r,e,So,ea)},kv=function(e){var t=df(e,So);null!==t&&By(t,e,So,ea)},Pv=function(e){yv=e},Ov=function(e){_v=e};var Fv="function"==typeof reportError?reportError:function(e){console.error(e)};function Bv(e){this._internalRoot=e}function Uv(e){this._internalRoot=e}function zv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Vv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hv(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&a("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Wu(e)&&(e._reactRootContainer?a("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):a("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}Uv.prototype.render=Bv.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw new Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?a("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):zv(arguments[1])?a("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==arguments[1]&&a("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=bv(t.current);r&&r.parentNode!==n&&a("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}pv(e,t,null,null)},Uv.prototype.unmount=Bv.prototype.unmount=function(){"function"==typeof arguments[0]&&a("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Ky()&&a("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Yy(function(){pv(null,e,null,null)}),Gu(t)}},Uv.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t=$a(),n={blockedOn:null,target:e,priority:t},r=0;r<Xa.length&&Fa(t,Xa[r].priority);r++);Xa.splice(r,0,n),0===r&&ei(n)}(e)};var qv,Gv=n.ReactCurrentOwner;function Wv(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function Yv(){}function Kv(e,t,n,r,o){qv(n),function(e,t){null!==e&&"function"!=typeof e&&a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}(void 0===o?null:o,"render");var i,s=n._reactRootContainer;if(s){if("function"==typeof o){var l=o;o=function(){var e=hv(i);l.call(e)}}pv(t,i=s,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=hv(i);a.call(e)}}var i=fv(t,r,e,0,0,!1,0,"",Yv);return e._reactRootContainer=i,qu(i.current,e),gl(8===e.nodeType?e.parentNode:e),Yy(),i}for(var s;s=e.lastChild;)e.removeChild(s);if("function"==typeof r){var l=r;r=function(){var e=hv(u);l.call(e)}}var u=dv(e,0,0,!1,0,"",Yv);return e._reactRootContainer=u,qu(u.current,e),gl(8===e.nodeType?e.parentNode:e),Yy(function(){pv(t,u,n,r)}),u}(n,t,e,o,r);return hv(i)}qv=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=bv(e._reactRootContainer.current);t&&t.parentNode!==e&&a("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,r=Wv(e);!(!r||!Ku(r))&&!n&&a("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&a("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};var Xv=!1;var Qv=!1;Pa=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Ua(t)){var n=function(e){return ra(e.pendingLanes)}(t);!function(e,t){0!==t&&(Ta(e,ya(t,So)),Uy(e,Lr()),(Qb&(zb|Vb))===Ub&&(my(),Rc()))}(t,n)}break;case c:Yy(function(){var t=df(e,So);if(null!==t){var n=Ly();By(t,e,So,n)}}),gv(e,So)}},function(e){Oa=e}(function(e){if(e.tag===c){var t=Yo,n=df(e,t);if(null!==n)By(n,e,t,Ly());gv(e,t)}}),function(e){Aa=e}(function(e){if(e.tag===c){var t=jy(e),n=df(e,t);if(null!==n)By(n,e,t,Ly());gv(e,t)}}),function(e){$a=e}(La),function(e){Ra=e}(function(e,t){var n=Ma;try{return Ma=e,t()}finally{Ma=n}}),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||a("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),An=function(e,t,n){switch(t){case"input":return void ft(e,n);case"textarea":return void function(e,t){At(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&xt(n,!!t.multiple,r,!1)}(e,n)}},Nn=Wy,Mn=Yy;var Zv,Jv,ew,tw={usingClientEntryPoint:!1,Events:[Ku,Xu,Qu,Cn,Dn,Wy]};if(!(Jv=(Zv={findFiberByHostInstance:Yu,bundleType:1,version:lv,rendererPackageName:"react-dom"}).findFiberByHostInstance,ew=n.ReactCurrentDispatcher,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return a("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=we({},e,{getLaneLabelMap:Jr,injectProfilingHooks:Zr}),Gr=t.inject(e),Wr=t}catch(n){a("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}({bundleType:Zv.bundleType,version:Zv.version,rendererPackageName:Zv.rendererPackageName,rendererConfig:Zv.rendererConfig,overrideHookState:vv,overrideHookStateDeletePath:wv,overrideHookStateRenamePath:Sv,overrideProps:xv,overridePropsDeletePath:Tv,overridePropsRenamePath:Ev,setErrorHandler:Pv,setSuspenseHandler:Ov,scheduleUpdate:kv,currentDispatcherRef:ew,findHostInstanceByFiber:Mv,findFiberByHostInstance:Jv||Lv,findHostInstancesForRefresh:H_,scheduleRefresh:B_,scheduleRoot:U_,setRefreshHandler:D_,getCurrentFiber:jv,reconcilerVersion:lv}))&&k&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var nw=window.location.protocol;/^(https?|file):$/.test(nw)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===nw?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}reactDom_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tw,reactDom_development.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!zv(t))throw new Error("Target container is not a DOM element.");return uv(e,t,null,n)},reactDom_development.createRoot=function(e,t){return tw.usingClientEntryPoint||a('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!zv(e))throw new Error("createRoot(...): Target container is not a DOM element.");Hv(e);var n=!1,r="",i=Fv;null!=t&&(t.hydrate?o("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===J&&a("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var s=dv(e,1,0,n,0,r,i);return qu(s.current,e),gl(8===e.nodeType?e.parentNode:e),new Bv(s)}(e,t)},reactDom_development.findDOMNode=function(e){Xv||(Xv=!0,a("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=Gv.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||a("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Me(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=er(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var o=Ar(n);if(null===o)return null;if(8&o.mode){var i=je(n)||"Component";if(!sv[i]){sv[i]=!0;var s=Be;try{qe(o),8&n.mode?a("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):a("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{s?qe(s):He()}}}return o.stateNode}(e,"findDOMNode")},reactDom_development.flushSync=function(e){return Ky()&&a("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Yy(e)},reactDom_development.hydrate=function(e,t,n){if(a("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Vv(t))throw new Error("Target container is not a DOM element.");return Wu(t)&&void 0===t._reactRootContainer&&a("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),Kv(null,e,t,!0,n)},reactDom_development.hydrateRoot=function(e,t,n){return tw.usingClientEntryPoint||a('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!zv(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");Hv(e),void 0===t&&a("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Fv;null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError));var l=fv(t,null,e,1,0,o,0,i,s);if(qu(l.current,e),gl(e),r)for(var u=0;u<r.length;u++)Zf(l,r[u]);return new Uv(l)}(e,t,n)},reactDom_development.render=function(e,t,n){if(a("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Vv(t))throw new Error("Target container is not a DOM element.");return Wu(t)&&void 0===t._reactRootContainer&&a("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),Kv(null,e,t,!1,n)},reactDom_development.unmountComponentAtNode=function(e){if(Qv||(Qv=!0,a("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Vv(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(Wu(e)&&void 0===e._reactRootContainer&&a("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=Wv(e);return t&&!Ku(t)&&a("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),Yy(function(){Kv(null,null,e,!1,function(){e._reactRootContainer=null,Gu(e)})}),!0}var n=Wv(e),r=!(!n||!Ku(n)),o=1===e.nodeType&&Vv(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&a("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},reactDom_development.unstable_batchedUpdates=Wy,reactDom_development.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(a("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Vv(n))throw new Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw new Error("parentComponent must be a valid React Component");return Kv(e,t,n,!1,r)}(e,t,n,r)},reactDom_development.version=lv,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),reactDom_development}function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}}"production"===process.env.NODE_ENV?(checkDCE(),reactDom.exports=requireReactDom_production_min()):reactDom.exports=requireReactDom_development();var reactDomExports=reactDom.exports,createRoot,m=reactDomExports;if("production"===process.env.NODE_ENV)createRoot=m.createRoot,m.hydrateRoot;else{var i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;createRoot=function(e,t){i.usingClientEntryPoint=!0;try{return m.createRoot(e,t)}finally{i.usingClientEntryPoint=!1}}}var reactExports=requireReact();const LogoIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M16 4C9.37 4 4 9.37 4 16s5.37 12 12 12 12-5.37 12-12S22.63 4 16 4z",fill:"#2563eb"}),jsxRuntimeExports.jsx("path",{d:"M16 8c-2.2 0-4 1.8-4 4v4c0 2.2 1.8 4 4 4s4-1.8 4-4v-4c0-2.2-1.8-4-4-4z",fill:"white"}),jsxRuntimeExports.jsx("path",{d:"M22 16c0 3.3-2.7 6-6 6s-6-2.7-6-6H8c0 4.1 3.1 7.5 7 7.9V26h2v-2.1c3.9-.4 7-3.8 7-7.9h-2z",fill:"white"})]}),MicIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),jsxRuntimeExports.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),jsxRuntimeExports.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]}),CloseIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),MinimizeIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),jsxRuntimeExports.jsx("path",{d:"M9 3v18"})]}),ErrorIcon=()=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),ChatIcon=()=>jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntimeExports.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})});function FloatingPanel({children:e,position:t,onClose:n,onMinimize:r}){const o=reactExports.useRef(null),a=reactExports.useRef(!1),i=reactExports.useRef({x:0,y:0,right:20,bottom:20}),s=reactExports.useCallback(e=>{if(e.target.closest("button"))return;a.current=!0;const t=o.current;t&&(i.current={x:e.clientX,y:e.clientY,right:parseInt(t.style.right||"20"),bottom:parseInt(t.style.bottom||"20")})},[]);reactExports.useEffect(()=>{const e=e=>{if(!a.current||!o.current)return;const t=i.current.x-e.clientX,n=i.current.y-e.clientY;o.current.style.right=`${i.current.right+t}px`,o.current.style.bottom=`${i.current.bottom+n}px`},t=()=>{a.current=!1};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[]);const l={bottom:(null==t?void 0:t.bottom)??20,right:(null==t?void 0:t.right)??20,...void 0!==(null==t?void 0:t.top)&&{top:t.top,bottom:"auto"},...void 0!==(null==t?void 0:t.left)&&{left:t.left,right:"auto"}};return jsxRuntimeExports.jsxs("div",{ref:o,className:"scribe-panel",style:l,children:[jsxRuntimeExports.jsxs("div",{className:"panel-header",onMouseDown:s,children:[jsxRuntimeExports.jsxs("div",{className:"drag-handle",children:[jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{})]}),jsxRuntimeExports.jsxs("div",{className:"header-actions",children:[jsxRuntimeExports.jsx("button",{className:"header-btn",onClick:r,title:"Minimize",children:jsxRuntimeExports.jsx(MinimizeIcon,{})}),jsxRuntimeExports.jsx("button",{className:"header-btn",onClick:n,title:"Close",children:jsxRuntimeExports.jsx(CloseIcon,{})})]})]}),jsxRuntimeExports.jsx("div",{className:"panel-content",children:e})]})}function ConfigState({onSubmit:e,initialApiKey:t="",initialBaseUrl:n=""}){const[r,o]=reactExports.useState(t),[a,i]=reactExports.useState(n),[s,l]=reactExports.useState("");return jsxRuntimeExports.jsxs("div",{className:"config-state",style:{zIndex:9999},children:[jsxRuntimeExports.jsxs("div",{className:"logo",children:[jsxRuntimeExports.jsx("div",{className:"logo-icon",children:jsxRuntimeExports.jsx(LogoIcon,{})}),jsxRuntimeExports.jsx("span",{className:"logo-text",children:"eka.scribe"})]}),jsxRuntimeExports.jsxs("form",{className:"config-form",onSubmit:t=>{t.preventDefault(),a.trim()?(l(""),e(r.trim(),a.trim())):l("Base URL is required")},children:[jsxRuntimeExports.jsxs("div",{className:"form-group",children:[jsxRuntimeExports.jsx("label",{htmlFor:"eka-api-key",children:"API Key"}),jsxRuntimeExports.jsx("input",{id:"eka-api-key",type:"text",value:r,onChange:e=>o(e.target.value),placeholder:"Enter your API key (optional)"})]}),jsxRuntimeExports.jsxs("div",{className:"form-group",children:[jsxRuntimeExports.jsx("label",{htmlFor:"eka-base-url",children:"Base URL"}),jsxRuntimeExports.jsx("input",{id:"eka-base-url",type:"text",value:a,onChange:e=>i(e.target.value),placeholder:"https://api.eka.care",required:!0})]}),s&&jsxRuntimeExports.jsx("p",{className:"config-error",children:s}),jsxRuntimeExports.jsx("button",{type:"submit",className:"config-submit-btn",children:"Continue"})]})]})}function IdleState({onStartRecording:e}){return jsxRuntimeExports.jsxs("div",{className:"idle-state",children:[jsxRuntimeExports.jsxs("div",{className:"logo",children:[jsxRuntimeExports.jsx("div",{className:"logo-icon",children:jsxRuntimeExports.jsx(LogoIcon,{})}),jsxRuntimeExports.jsx("span",{className:"logo-text",children:"eka.scribe"})]}),jsxRuntimeExports.jsxs("button",{className:"start-btn",onClick:e,children:["Start Recording",jsxRuntimeExports.jsx("span",{className:"mic-icon",children:jsxRuntimeExports.jsx(MicIcon,{})})]})]})}function PermissionState({onRequestPermission:e}){return jsxRuntimeExports.jsxs("div",{className:"permission-state",children:[jsxRuntimeExports.jsx("div",{className:"permission-icon",children:jsxRuntimeExports.jsx(MicIcon,{})}),jsxRuntimeExports.jsxs("p",{className:"permission-text",children:["Microphone access is required to record audio.",jsxRuntimeExports.jsx("br",{}),"Please allow access when prompted."]}),jsxRuntimeExports.jsx("button",{className:"permission-btn",onClick:e,children:"Allow Microphone"})]})}function formatTime(e){const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`}function RecordingState({elapsedTime:e,isPaused:t,onPause:n,onResume:r,onStop:o}){return jsxRuntimeExports.jsxs("div",{className:"recording-state",children:[jsxRuntimeExports.jsxs("div",{className:"recording-indicator",children:[jsxRuntimeExports.jsx("div",{className:"recording-icon "+(t?"":"active"),children:jsxRuntimeExports.jsx(ChatIcon,{})}),jsxRuntimeExports.jsx("span",{className:"timer",children:formatTime(e)})]}),jsxRuntimeExports.jsxs("div",{className:"recording-actions",children:[t?jsxRuntimeExports.jsx("button",{className:"resume-btn",onClick:r,children:"Resume"}):jsxRuntimeExports.jsx("button",{className:"pause-btn",onClick:n,children:"Pause"}),jsxRuntimeExports.jsx("button",{className:"stop-btn",onClick:o,title:"Stop recording",children:jsxRuntimeExports.jsx("div",{className:"stop-icon"})})]})]})}function ProcessingState(){return jsxRuntimeExports.jsxs("div",{className:"processing-state",children:[jsxRuntimeExports.jsx("div",{className:"spinner"}),jsxRuntimeExports.jsx("p",{className:"processing-text",children:"Processing your recording..."})]})}function ResultsState({result:e,onNewRecording:t}){return jsxRuntimeExports.jsxs("div",{className:"results-state",children:[jsxRuntimeExports.jsxs("div",{className:"results-header",children:[jsxRuntimeExports.jsx("span",{className:"results-title",children:"Recording Complete"}),jsxRuntimeExports.jsx("button",{className:"new-recording-btn",onClick:t,children:"New Recording"})]}),jsxRuntimeExports.jsx("div",{className:"results-content",children:jsxRuntimeExports.jsxs("div",{className:"transcript-section",children:[jsxRuntimeExports.jsx("div",{className:"section-title",children:"Transcript"}),jsxRuntimeExports.jsx("div",{className:"transcript-text",children:e.transcript||"No transcript available."})]})})]})}function ErrorState({message:e,onRetry:t}){return jsxRuntimeExports.jsxs("div",{className:"error-state",children:[jsxRuntimeExports.jsx("div",{className:"error-icon",children:jsxRuntimeExports.jsx(ErrorIcon,{})}),jsxRuntimeExports.jsx("p",{className:"error-message",children:e}),jsxRuntimeExports.jsx("button",{className:"retry-btn",onClick:t,children:"Try Again"})]})}const WELL_KNOWN_PATH="/.well-known/medscribealliance";var SessionStatus,SessionStatus2,TemplateStatus,TemplateStatus2,UploadType,UploadType2,ErrorCode,ErrorCode2,HttpStatus,HttpStatus2;SessionStatus2=SessionStatus||(SessionStatus={}),SessionStatus2.CREATED="created",SessionStatus2.PROCESSING="processing",SessionStatus2.COMPLETED="completed",SessionStatus2.PARTIAL="partial",SessionStatus2.FAILED="failed",TemplateStatus2=TemplateStatus||(TemplateStatus={}),TemplateStatus2.SUCCESS="success",TemplateStatus2.FAILED="failed",UploadType2=UploadType||(UploadType={}),UploadType2.CHUNKED="chunked",UploadType2.SINGLE="single",ErrorCode2=ErrorCode||(ErrorCode={}),ErrorCode2.AUTHENTICATION_FAILED="authentication_failed",ErrorCode2.TOKEN_EXPIRED="token_expired",ErrorCode2.INVALID_API_KEY="invalid_api_key",ErrorCode2.FORBIDDEN="forbidden",ErrorCode2.RATE_LIMIT_EXCEEDED="rate_limit_exceeded",ErrorCode2.SESSION_NOT_FOUND="session_not_found",ErrorCode2.TEMPLATE_NOT_FOUND="template_not_found",ErrorCode2.WEBHOOK_NOT_FOUND="webhook_not_found",ErrorCode2.SESSION_EXPIRED="session_expired",ErrorCode2.INVALID_REQUEST="invalid_request",ErrorCode2.INVALID_AUDIO_FORMAT="invalid_audio_format",ErrorCode2.CHUNK_TOO_LARGE="chunk_too_large",ErrorCode2.INVALID_TEMPLATE="invalid_template",ErrorCode2.MISSING_REQUIRED_FIELD="missing_required_field",ErrorCode2.PROCESSING_FAILED="processing_failed",ErrorCode2.AUDIO_QUALITY_POOR="audio_quality_poor",ErrorCode2.AUDIO_TOO_SHORT="audio_too_short",ErrorCode2.LANGUAGE_UNSUPPORTED="language_unsupported",ErrorCode2.INTERNAL_ERROR="internal_error",ErrorCode2.SERVICE_UNAVAILABLE="service_unavailable",HttpStatus2=HttpStatus||(HttpStatus={}),HttpStatus2[HttpStatus2.OK=200]="OK",HttpStatus2[HttpStatus2.CREATED=201]="CREATED",HttpStatus2[HttpStatus2.ACCEPTED=202]="ACCEPTED",HttpStatus2[HttpStatus2.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",HttpStatus2[HttpStatus2.BAD_REQUEST=400]="BAD_REQUEST",HttpStatus2[HttpStatus2.UNAUTHORIZED=401]="UNAUTHORIZED",HttpStatus2[HttpStatus2.FORBIDDEN=403]="FORBIDDEN",HttpStatus2[HttpStatus2.NOT_FOUND=404]="NOT_FOUND",HttpStatus2[HttpStatus2.GONE=410]="GONE",HttpStatus2[HttpStatus2.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",HttpStatus2[HttpStatus2.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",HttpStatus2[HttpStatus2.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",HttpStatus2[HttpStatus2.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE";class DiscoveryAPI{constructor(e){this.cachedDiscovery=null,this.cacheTimestamp=0,this.cacheDuration=36e5,this.httpClient=e}async getDiscovery(e,t=!1){const n=Date.now();if(!t&&this.cachedDiscovery&&n-this.cacheTimestamp<this.cacheDuration)return this.cachedDiscovery;const r=e+WELL_KNOWN_PATH,o=await this.httpClient.get(r);return this.cachedDiscovery=o,this.cacheTimestamp=n,o}clearCache(){this.cachedDiscovery=null,this.cacheTimestamp=0}getCachedDiscovery(){const e=Date.now();return this.cachedDiscovery&&e-this.cacheTimestamp<this.cacheDuration?this.cachedDiscovery:null}}var ajv={exports:{}},core$2={},validate={},boolSchema={},errors={},codegen={},code$1={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){const n=[e[0]];let o=0;for(;o<t.length;)s(n,t[o]),n.push(e[++o]);return new r(n)}e._Code=r,e.nil=new r(""),e._=o;const a=new r("+");function i(e,...t){const n=[u(e[0])];let o=0;for(;o<t.length;)n.push(a),s(n,t[o]),n.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new r(n)}function s(e,t){var o;t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(o=t)||"boolean"==typeof o||null===o?o:u(Array.isArray(o)?o.join(","):o))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new r(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new r(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new r(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new r(e.toString())}}(code$1);var scope={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=code$1;class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r,o;(o=r||(e.UsedValueState=r={}))[o.Started=0]="Started",o[o.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=a;class i extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=t._`.${new t.Name(n)}[${r}]`}}e.ValueScopeName=i;const s=t._`\n`;e.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:t.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:o}=r,a=null!==(n=t.key)&&void 0!==n?n:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,r);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:o,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(void 0===n.scopePath)throw new Error(`CodeGen: name "${n}" has no value`);return t._`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach(o=>{if(d.has(o))return;d.set(o,r.Started);let i=a(o);if(i){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${n} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new n(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,r.Completed)})}return l}}}(scope),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=code$1,n=scope;var r=code$1;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=scope;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=A(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=A(this.rhs,e,n),this}get names(){return O(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=A(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||($(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>P(e,t.names),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class g extends h{}g.kind="else";class b extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(R(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=A(this.condition,e,t),this}get names(){const e=super.names;return O(e,this.condition),this.else&&P(e,this.else.names),e}}b.kind="if";class y extends h{}y.kind="for";class _ extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=A(this.iteration,e,t),this}get names(){return P(super.names,this.iteration.names)}}class v extends y{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:o,to:a}=this;return`for(${t} ${r}=${o}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=O(super.names,this.from);return O(e,this.to)}}class w extends y{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=A(this.iterable,e,t),this}get names(){return P(super.names,this.iterable.names)}}class S extends h{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class x extends p{render(e){return"return "+super.render(e)}}x.kind="return";class T extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&P(e,this.catch.names),this.finally&&P(e,this.finally.names),e}}class E extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class k extends h{render(e){return"finally"+super.render(e)}}k.kind="finally";function P(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function O(e,n){return n instanceof t._CodeOrName?P(e,n.names):e}function A(e,n,r){return e instanceof t.Name?a(e):(o=e)instanceof t._Code&&o._items.some(e=>e instanceof t.Name&&1===n[e.str]&&void 0!==r[e.str])?new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=a(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[])):e;var o;function a(e){const t=r[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function $(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${N(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new i(e,o,n)),o}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new l(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const n=["{"];for(const[r,o]of e)n.length>1&&n.push(","),n.push(r),(r!==o||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,o));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(b,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,r,o,a=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const i=this._scope.toName(e);return this._for(new v(a,i,t,r),()=>o(i))}forOf(e,r,o,a=n.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=r instanceof t.Name?r:this.var("_arr",r);return this.forRange("_i",0,t._`${e}.length`,n=>{this.var(i,t._`${e}[${n}]`),o(i)})}return this._for(new w("of",a,i,r),()=>o(i))}forIn(e,r,o,a=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${r})`,o);const i=this._scope.toName(e);return this._for(new w("in",a,i,r),()=>o(i))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new x;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new T;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new k,this.code(n)),this._endBlockNode(E,k)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,o){return this._blockNode(new S(e,n,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=R;const I=D(e.operators.AND);e.and=function(...e){return e.reduce(I)};const C=D(e.operators.OR);function D(e){return(n,r)=>n===t.nil?r:r===t.nil?n:t._`${N(n)} ${e} ${N(r)}`}function N(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(C)}}(codegen);var util={};Object.defineProperty(util,"__esModule",{value:!0}),util.checkStrictMode=util.getErrorPath=util.Type=util.useFunc=util.setEvaluated=util.evaluatedPropsToName=util.mergeEvaluated=util.eachItem=util.unescapeJsonPointer=util.escapeJsonPointer=util.escapeFragment=util.unescapeFragment=util.schemaRefOrVal=util.schemaHasRulesButRef=util.schemaHasRules=util.checkUnknownRules=util.alwaysValidSchema=util.toHash=void 0;const codegen_1$v=codegen,code_1$a=code$1;function toHash(e){const t={};for(const n of e)t[n]=!0;return t}function alwaysValidSchema(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(checkUnknownRules(e,t),!schemaHasRules(t,e.self.RULES.all))}function checkUnknownRules(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const a in t)o[a]||checkStrictMode(e,`unknown keyword: "${a}"`)}function schemaHasRules(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function schemaHasRulesButRef(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1}function schemaRefOrVal({topSchemaRef:e,schemaPath:t},n,r,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return codegen_1$v._`${n}`}return codegen_1$v._`${e}${t}${(0,codegen_1$v.getProperty)(r)}`}function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}function escapeJsonPointer(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function eachItem(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}function makeMergeEvaluated({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(o,a,i,s)=>{const l=void 0===i?a:i instanceof codegen_1$v.Name?(a instanceof codegen_1$v.Name?e(o,a,i):t(o,a,i),i):a instanceof codegen_1$v.Name?(t(o,i,a),a):n(a,i);return s!==codegen_1$v.Name||l instanceof codegen_1$v.Name?l:r(o,l)}}function evaluatedPropsToName(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",codegen_1$v._`{}`);return void 0!==t&&setEvaluated(e,n,t),n}function setEvaluated(e,t,n){Object.keys(n).forEach(n=>e.assign(codegen_1$v._`${t}${(0,codegen_1$v.getProperty)(n)}`,!0))}util.toHash=toHash,util.alwaysValidSchema=alwaysValidSchema,util.checkUnknownRules=checkUnknownRules,util.schemaHasRules=schemaHasRules,util.schemaHasRulesButRef=schemaHasRulesButRef,util.schemaRefOrVal=schemaRefOrVal,util.unescapeFragment=unescapeFragment,util.escapeFragment=escapeFragment,util.escapeJsonPointer=escapeJsonPointer,util.unescapeJsonPointer=unescapeJsonPointer,util.eachItem=eachItem,util.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(e,t,n)=>e.if(codegen_1$v._`${n} !== true && ${t} !== undefined`,()=>{e.if(codegen_1$v._`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,codegen_1$v._`${n} || {}`).code(codegen_1$v._`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if(codegen_1$v._`${n} !== true`,()=>{!0===t?e.assign(n,!0):(e.assign(n,codegen_1$v._`${n} || {}`),setEvaluated(e,n,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(e,t,n)=>e.if(codegen_1$v._`${n} !== true && ${t} !== undefined`,()=>e.assign(n,codegen_1$v._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if(codegen_1$v._`${n} !== true`,()=>e.assign(n,!0===t||codegen_1$v._`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},util.evaluatedPropsToName=evaluatedPropsToName,util.setEvaluated=setEvaluated;const snippets={};function useFunc(e,t){return e.scopeValue("func",{ref:t,code:snippets[t.code]||(snippets[t.code]=new code_1$a._Code(t.code))})}var Type,Type2;function getErrorPath(e,t,n){if(e instanceof codegen_1$v.Name){const r=t===Type.Num;return n?r?codegen_1$v._`"[" + ${e} + "]"`:codegen_1$v._`"['" + ${e} + "']"`:r?codegen_1$v._`"/" + ${e}`:codegen_1$v._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,codegen_1$v.getProperty)(e).toString():"/"+escapeJsonPointer(e)}function checkStrictMode(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}util.useFunc=useFunc,Type2=Type||(util.Type=Type={}),Type2[Type2.Num=0]="Num",Type2[Type2.Str=1]="Str",util.getErrorPath=getErrorPath,util.checkStrictMode=checkStrictMode;var names$1={};Object.defineProperty(names$1,"__esModule",{value:!0});const codegen_1$u=codegen,names={data:new codegen_1$u.Name("data"),valCxt:new codegen_1$u.Name("valCxt"),instancePath:new codegen_1$u.Name("instancePath"),parentData:new codegen_1$u.Name("parentData"),parentDataProperty:new codegen_1$u.Name("parentDataProperty"),rootData:new codegen_1$u.Name("rootData"),dynamicAnchors:new codegen_1$u.Name("dynamicAnchors"),vErrors:new codegen_1$u.Name("vErrors"),errors:new codegen_1$u.Name("errors"),this:new codegen_1$u.Name("this"),self:new codegen_1$u.Name("self"),scope:new codegen_1$u.Name("scope"),json:new codegen_1$u.Name("json"),jsonPos:new codegen_1$u.Name("jsonPos"),jsonLen:new codegen_1$u.Name("jsonLen"),jsonPart:new codegen_1$u.Name("jsonPart")};names$1.default=names,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=codegen,n=util,r=names$1;function o(e,n){const o=e.const("err",n);e.if(t._`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,t._`[${o}]`),t._`${r.default.vErrors}.push(${o})`),e.code(t._`${r.default.errors}++`)}function a(e,n){const{gen:r,validateName:o,schemaEnv:a}=e;a.$async?r.throw(t._`new ${e.ValidationError}(${n})`):(r.assign(t._`${o}.errors`,n),r.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?t.str`"${e}" keyword must be ${n} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(n,r=e.keywordError,i,l){const{it:u}=n,{gen:c,compositeRule:d,allErrors:f}=u,p=s(n,r,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,n=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,n,i)),c||d||a(l,r.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(r.default.errors,n),e.if(t._`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign(t._`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))},e.extendErrors=function({gen:e,keyword:n,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,r.default.errors,i=>{e.const(l,t._`${r.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))})};const i={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,n,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,n,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:n,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof n?n(e):n||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[r.default.data,l]);f&&a.push([i.propertyName,f])}(e,n,c),a.object(...c)}(e,n,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,n.getErrorPath)(o,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:r}},{schemaPath:o,parentSchema:a}){let s=a?r:t.str`${r}/${e}`;return o&&(s=t.str`${s}${(0,n.getErrorPath)(o,n.Type.Str)}`),[i.schemaPath,s]}}(errors),Object.defineProperty(boolSchema,"__esModule",{value:!0}),boolSchema.boolOrEmptySchema=boolSchema.topBoolOrEmptySchema=void 0;const errors_1$3=errors,codegen_1$t=codegen,names_1$6=names$1,boolError={message:"boolean schema is false"};function topBoolOrEmptySchema(e){const{gen:t,schema:n,validateName:r}=e;!1===n?falseSchemaError(e,!1):"object"==typeof n&&!0===n.$async?t.return(names_1$6.default.data):(t.assign(codegen_1$t._`${r}.errors`,null),t.return(!0))}function boolOrEmptySchema(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),falseSchemaError(e)):n.var(t,!0)}function falseSchemaError(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,errors_1$3.reportError)(o,boolError,void 0,t)}boolSchema.topBoolOrEmptySchema=topBoolOrEmptySchema,boolSchema.boolOrEmptySchema=boolOrEmptySchema;var dataType={},rules={};Object.defineProperty(rules,"__esModule",{value:!0}),rules.getRules=rules.isJSONType=void 0;const _jsonTypes=["string","number","integer","boolean","null","object","array"],jsonTypes=new Set(_jsonTypes);function isJSONType(e){return"string"==typeof e&&jsonTypes.has(e)}function getRules(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}rules.isJSONType=isJSONType,rules.getRules=getRules;var applicability={};function schemaHasRulesForType({schema:e,self:t},n){const r=t.RULES.types[n];return r&&!0!==r&&shouldUseGroup(e,r)}function shouldUseGroup(e,t){return t.rules.some(t=>shouldUseRule(e,t))}function shouldUseRule(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}Object.defineProperty(applicability,"__esModule",{value:!0}),applicability.shouldUseRule=applicability.shouldUseGroup=applicability.schemaHasRulesForType=void 0,applicability.schemaHasRulesForType=schemaHasRulesForType,applicability.shouldUseGroup=shouldUseGroup,applicability.shouldUseRule=shouldUseRule,Object.defineProperty(dataType,"__esModule",{value:!0}),dataType.reportTypeError=dataType.checkDataTypes=dataType.checkDataType=dataType.coerceAndCheckDataType=dataType.getJSONTypes=dataType.getSchemaTypes=dataType.DataType=void 0;const rules_1=rules,applicability_1$1=applicability,errors_1$2=errors,codegen_1$s=codegen,util_1$q=util;var DataType,DataType2;function getSchemaTypes(e){const t=getJSONTypes(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t}function getJSONTypes(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(rules_1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}function coerceAndCheckDataType(e,t){const{gen:n,data:r,opts:o}=e,a=coerceToTypes(t,o.coerceTypes),i=t.length>0&&!(0===a.length&&1===t.length&&(0,applicability_1$1.schemaHasRulesForType)(e,t[0]));if(i){const i=checkDataTypes(t,r,o.strictNumbers,DataType.Wrong);n.if(i,()=>{a.length?coerceData(e,t,a):reportTypeError(e)})}return i}DataType2=DataType||(dataType.DataType=DataType={}),DataType2[DataType2.Correct=0]="Correct",DataType2[DataType2.Wrong=1]="Wrong",dataType.getSchemaTypes=getSchemaTypes,dataType.getJSONTypes=getJSONTypes,dataType.coerceAndCheckDataType=coerceAndCheckDataType;const COERCIBLE=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){return t?e.filter(e=>COERCIBLE.has(e)||"array"===t&&"array"===e):[]}function coerceData(e,t,n){const{gen:r,data:o,opts:a}=e,i=r.let("dataType",codegen_1$s._`typeof ${o}`),s=r.let("coerced",codegen_1$s._`undefined`);"array"===a.coerceTypes&&r.if(codegen_1$s._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>r.assign(o,codegen_1$s._`${o}[0]`).assign(i,codegen_1$s._`typeof ${o}`).if(checkDataTypes(t,o,a.strictNumbers),()=>r.assign(s,o))),r.if(codegen_1$s._`${s} !== undefined`);for(const u of n)(COERCIBLE.has(u)||"array"===u&&"array"===a.coerceTypes)&&l(u);function l(e){switch(e){case"string":return void r.elseIf(codegen_1$s._`${i} == "number" || ${i} == "boolean"`).assign(s,codegen_1$s._`"" + ${o}`).elseIf(codegen_1$s._`${o} === null`).assign(s,codegen_1$s._`""`);case"number":return void r.elseIf(codegen_1$s._`${i} == "boolean" || ${o} === null
|
|
69
69
|
|| (${i} == "string" && ${o} && ${o} == +${o})`).assign(s,codegen_1$s._`+${o}`);case"integer":return void r.elseIf(codegen_1$s._`${i} === "boolean" || ${o} === null
|
|
70
70
|
|| (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(s,codegen_1$s._`+${o}`);case"boolean":return void r.elseIf(codegen_1$s._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(s,!1).elseIf(codegen_1$s._`${o} === "true" || ${o} === 1`).assign(s,!0);case"null":return r.elseIf(codegen_1$s._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(s,null);case"array":r.elseIf(codegen_1$s._`${i} === "string" || ${i} === "number"
|
|
71
71
|
|| ${i} === "boolean" || ${o} === null`).assign(s,codegen_1$s._`[${o}]`)}}r.else(),reportTypeError(e),r.endIf(),r.if(codegen_1$s._`${s} !== undefined`,()=>{r.assign(o,s),assignParentData(e,s)})}function assignParentData({gen:e,parentData:t,parentDataProperty:n},r){e.if(codegen_1$s._`${t} !== undefined`,()=>e.assign(codegen_1$s._`${t}[${n}]`,r))}function checkDataType(e,t,n,r=DataType.Correct){const o=r===DataType.Correct?codegen_1$s.operators.EQ:codegen_1$s.operators.NEQ;let a;switch(e){case"null":return codegen_1$s._`${t} ${o} null`;case"array":a=codegen_1$s._`Array.isArray(${t})`;break;case"object":a=codegen_1$s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=i(codegen_1$s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=i();break;default:return codegen_1$s._`typeof ${t} ${o} ${e}`}return r===DataType.Correct?a:(0,codegen_1$s.not)(a);function i(e=codegen_1$s.nil){return(0,codegen_1$s.and)(codegen_1$s._`typeof ${t} == "number"`,e,n?codegen_1$s._`isFinite(${t})`:codegen_1$s.nil)}}function checkDataTypes(e,t,n,r){if(1===e.length)return checkDataType(e[0],t,n,r);let o;const a=(0,util_1$q.toHash)(e);if(a.array&&a.object){const e=codegen_1$s._`typeof ${t} != "object"`;o=a.null?e:codegen_1$s._`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else o=codegen_1$s.nil;a.number&&delete a.integer;for(const i in a)o=(0,codegen_1$s.and)(o,checkDataType(i,t,n,r));return o}dataType.checkDataType=checkDataType,dataType.checkDataTypes=checkDataTypes;const typeError={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?codegen_1$s._`{type: ${e}}`:codegen_1$s._`{type: ${t}}`};function reportTypeError(e){const t=getTypeErrorContext(e);(0,errors_1$2.reportError)(t,typeError)}function getTypeErrorContext(e){const{gen:t,data:n,schema:r}=e,o=(0,util_1$q.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}dataType.reportTypeError=reportTypeError;var defaults={};Object.defineProperty(defaults,"__esModule",{value:!0}),defaults.assignDefaults=void 0;const codegen_1$r=codegen,util_1$p=util;function assignDefaults(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const o in n)assignDefault(e,o,n[o].default);else"array"===t&&Array.isArray(r)&&r.forEach((t,n)=>assignDefault(e,n,t.default))}function assignDefault(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(void 0===n)return;const s=codegen_1$r._`${a}${(0,codegen_1$r.getProperty)(t)}`;if(o)return void(0,util_1$p.checkStrictMode)(e,`default is ignored for: ${s}`);let l=codegen_1$r._`${s} === undefined`;"empty"===i.useDefaults&&(l=codegen_1$r._`${l} || ${s} === null || ${s} === ""`),r.if(l,codegen_1$r._`${s} = ${(0,codegen_1$r.stringify)(n)}`)}defaults.assignDefaults=assignDefaults;var keyword={},code={};Object.defineProperty(code,"__esModule",{value:!0}),code.validateUnion=code.validateArray=code.usePattern=code.callValidateCode=code.schemaProperties=code.allSchemaProperties=code.noPropertyInData=code.propertyInData=code.isOwnProperty=code.hasPropFunc=code.reportMissingProp=code.checkMissingProp=code.checkReportMissingProp=void 0;const codegen_1$q=codegen,util_1$o=util,names_1$5=names$1,util_2$1=util;function checkReportMissingProp(e,t){const{gen:n,data:r,it:o}=e;n.if(noPropertyInData(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:codegen_1$q._`${t}`},!0),e.error()})}function checkMissingProp({gen:e,data:t,it:{opts:n}},r,o){return(0,codegen_1$q.or)(...r.map(r=>(0,codegen_1$q.and)(noPropertyInData(e,t,r,n.ownProperties),codegen_1$q._`${o} = ${r}`)))}function reportMissingProp(e,t){e.setParams({missingProperty:t},!0),e.error()}function hasPropFunc(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:codegen_1$q._`Object.prototype.hasOwnProperty`})}function isOwnProperty(e,t,n){return codegen_1$q._`${hasPropFunc(e)}.call(${t}, ${n})`}function propertyInData(e,t,n,r){const o=codegen_1$q._`${t}${(0,codegen_1$q.getProperty)(n)} !== undefined`;return r?codegen_1$q._`${o} && ${isOwnProperty(e,t,n)}`:o}function noPropertyInData(e,t,n,r){const o=codegen_1$q._`${t}${(0,codegen_1$q.getProperty)(n)} === undefined`;return r?(0,codegen_1$q.or)(o,(0,codegen_1$q.not)(isOwnProperty(e,t,n))):o}function allSchemaProperties(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}function schemaProperties(e,t){return allSchemaProperties(t).filter(n=>!(0,util_1$o.alwaysValidSchema)(e,t[n]))}function callValidateCode({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,u){const c=u?codegen_1$q._`${e}, ${t}, ${r}${o}`:t,d=[[names_1$5.default.instancePath,(0,codegen_1$q.strConcat)(names_1$5.default.instancePath,a)],[names_1$5.default.parentData,i.parentData],[names_1$5.default.parentDataProperty,i.parentDataProperty],[names_1$5.default.rootData,names_1$5.default.rootData]];i.opts.dynamicRef&&d.push([names_1$5.default.dynamicAnchors,names_1$5.default.dynamicAnchors]);const f=codegen_1$q._`${c}, ${n.object(...d)}`;return l!==codegen_1$q.nil?codegen_1$q._`${s}.call(${l}, ${f})`:codegen_1$q._`${s}(${f})`}code.checkReportMissingProp=checkReportMissingProp,code.checkMissingProp=checkMissingProp,code.reportMissingProp=reportMissingProp,code.hasPropFunc=hasPropFunc,code.isOwnProperty=isOwnProperty,code.propertyInData=propertyInData,code.noPropertyInData=noPropertyInData,code.allSchemaProperties=allSchemaProperties,code.schemaProperties=schemaProperties,code.callValidateCode=callValidateCode;const newRegExp=codegen_1$q._`new RegExp`;function usePattern({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:codegen_1$q._`${"new RegExp"===o.code?newRegExp:(0,util_2$1.useFunc)(e,o)}(${n}, ${r})`})}function validateArray(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return i(()=>t.assign(e,!1)),e}return t.var(a,!0),i(()=>t.break()),a;function i(o){const i=t.const("len",codegen_1$q._`${n}.length`);t.forRange("i",0,i,n=>{e.subschema({keyword:r,dataProp:n,dataPropType:util_1$o.Type.Num},a),t.if((0,codegen_1$q.not)(a),o)})}}function validateUnion(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(e=>(0,util_1$o.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),i=t.name("_valid");t.block(()=>n.forEach((n,o)=>{const s=e.subschema({keyword:r,schemaProp:o,compositeRule:!0},i);t.assign(a,codegen_1$q._`${a} || ${i}`);e.mergeValidEvaluated(s,i)||t.if((0,codegen_1$q.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}code.usePattern=usePattern,code.validateArray=validateArray,code.validateUnion=validateUnion,Object.defineProperty(keyword,"__esModule",{value:!0}),keyword.validateKeywordUsage=keyword.validSchemaType=keyword.funcKeywordCode=keyword.macroKeywordCode=void 0;const codegen_1$p=codegen,names_1$4=names$1,code_1$9=code,errors_1$1=errors;function macroKeywordCode(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=useKeyword(n,r,s);!1!==i.opts.validateSchema&&i.self.validateSchema(s,!0);const u=n.name("valid");e.subschema({schema:s,schemaPath:codegen_1$p.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}function funcKeywordCode(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;checkAsyncKeyword(l,t);const u=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,c=useKeyword(r,o,u),d=r.let("valid");function f(n=(t.async?codegen_1$p._`await `:codegen_1$p.nil)){const o=l.opts.passContext?names_1$4.default.this:names_1$4.default.self,a=!("compile"in t&&!s||!1===t.schema);r.assign(d,codegen_1$p._`${n}${(0,code_1$9.callValidateCode)(e,c,o,a)}`,t.modifying)}function p(e){var n;r.if((0,codegen_1$p.not)(null!==(n=t.valid)&&void 0!==n?n:d),e)}e.block$data(d,function(){if(!1===t.errors)f(),t.modifying&&modifyData(e),p(()=>e.error());else{const n=t.async?function(){const e=r.let("ruleErrs",null);return r.try(()=>f(codegen_1$p._`await `),t=>r.assign(d,!1).if(codegen_1$p._`${t} instanceof ${l.ValidationError}`,()=>r.assign(e,codegen_1$p._`${t}.errors`),()=>r.throw(t))),e}():function(){const e=codegen_1$p._`${c}.errors`;return r.assign(e,null),f(codegen_1$p.nil),e}();t.modifying&&modifyData(e),p(()=>addErrs(e,n))}}),e.ok(null!==(n=t.valid)&&void 0!==n?n:d)}function modifyData(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,codegen_1$p._`${r.parentData}[${r.parentDataProperty}]`))}function addErrs(e,t){const{gen:n}=e;n.if(codegen_1$p._`Array.isArray(${t})`,()=>{n.assign(names_1$4.default.vErrors,codegen_1$p._`${names_1$4.default.vErrors} === null ? ${t} : ${names_1$4.default.vErrors}.concat(${t})`).assign(names_1$4.default.errors,codegen_1$p._`${names_1$4.default.vErrors}.length`),(0,errors_1$1.extendErrors)(e)},()=>e.error())}function checkAsyncKeyword({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function useKeyword(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,codegen_1$p.stringify)(n)})}function validSchemaType(e,t,n=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e)}function validateKeywordUsage({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}keyword.macroKeywordCode=macroKeywordCode,keyword.funcKeywordCode=funcKeywordCode,keyword.validSchemaType=validSchemaType,keyword.validateKeywordUsage=validateKeywordUsage;var subschema={};Object.defineProperty(subschema,"__esModule",{value:!0}),subschema.extendSubschemaMode=subschema.extendSubschemaData=subschema.getSubschema=void 0;const codegen_1$o=codegen,util_1$n=util;function getSubschema(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(void 0!==t&&void 0!==r)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const r=e.schema[t];return void 0===n?{schema:r,schemaPath:codegen_1$o._`${e.schemaPath}${(0,codegen_1$o.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:r[n],schemaPath:codegen_1$o._`${e.schemaPath}${(0,codegen_1$o.getProperty)(t)}${(0,codegen_1$o.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,util_1$n.escapeFragment)(n)}`}}if(void 0!==r){if(void 0===o||void 0===a||void 0===i)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}function extendSubschemaData(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(void 0!==o&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(void 0!==n){const{errorPath:o,dataPathArr:a,opts:i}=t;l(s.let("data",codegen_1$o._`${t.data}${(0,codegen_1$o.getProperty)(n)}`,!0)),e.errorPath=codegen_1$o.str`${o}${(0,util_1$n.getErrorPath)(n,r,i.jsPropertySyntax)}`,e.parentDataProperty=codegen_1$o._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}if(void 0!==o){l(o instanceof codegen_1$o.Name?o:s.let("data",o,!0)),void 0!==i&&(e.propertyName=i)}function l(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}a&&(e.dataTypes=a)}function extendSubschemaMode(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){void 0!==r&&(e.compositeRule=r),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}subschema.getSubschema=getSubschema,subschema.extendSubschemaData=extendSubschemaData,subschema.extendSubschemaMode=extendSubschemaMode;var resolve$2={},fastDeepEqual=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!==o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n},jsonSchemaTraverse={exports:{}},traverse$1=jsonSchemaTraverse.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),_traverse(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function _traverse(e,t,n,r,o,a,i,s,l,u){if(r&&"object"==typeof r&&!Array.isArray(r)){for(var c in t(r,o,a,i,s,l,u),r){var d=r[c];if(Array.isArray(d)){if(c in traverse$1.arrayKeywords)for(var f=0;f<d.length;f++)_traverse(e,t,n,d[f],o+"/"+c+"/"+f,a,o,c,r,f)}else if(c in traverse$1.propsKeywords){if(d&&"object"==typeof d)for(var p in d)_traverse(e,t,n,d[p],o+"/"+c+"/"+escapeJsonPtr(p),a,o,c,r,p)}else(c in traverse$1.keywords||e.allKeys&&!(c in traverse$1.skipKeywords))&&_traverse(e,t,n,d,o+"/"+c,a,o,c,r)}n(r,o,a,i,s,l,u)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}traverse$1.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},traverse$1.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},traverse$1.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},traverse$1.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var jsonSchemaTraverseExports=jsonSchemaTraverse.exports;Object.defineProperty(resolve$2,"__esModule",{value:!0}),resolve$2.getSchemaRefs=resolve$2.resolveUrl=resolve$2.normalizeId=resolve$2._getFullPath=resolve$2.getFullPath=resolve$2.inlineRef=void 0;const util_1$m=util,equal$3=fastDeepEqual,traverse=jsonSchemaTraverseExports,SIMPLE_INLINED=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(e,t=!0){return"boolean"==typeof e||(!0===t?!hasRef(e):!!t&&countKeys(e)<=t)}resolve$2.inlineRef=inlineRef;const REF_KEYWORDS=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(e){for(const t in e){if(REF_KEYWORDS.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(hasRef))return!0;if("object"==typeof n&&hasRef(n))return!0}return!1}function countKeys(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!SIMPLE_INLINED.has(n)&&("object"==typeof e[n]&&(0,util_1$m.eachItem)(e[n],e=>t+=countKeys(e)),t===1/0))return 1/0}return t}function getFullPath(e,t="",n){!1!==n&&(t=normalizeId(t));const r=e.parse(t);return _getFullPath(e,r)}function _getFullPath(e,t){return e.serialize(t).split("#")[0]+"#"}resolve$2.getFullPath=getFullPath,resolve$2._getFullPath=_getFullPath;const TRAILING_SLASH_HASH=/#\/?$/;function normalizeId(e){return e?e.replace(TRAILING_SLASH_HASH,""):""}function resolveUrl(e,t,n){return n=normalizeId(n),e.resolve(t,n)}resolve$2.normalizeId=normalizeId,resolve$2.resolveUrl=resolveUrl;const ANCHOR=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,o=normalizeId(e[n]||t),a={"":o},i=getFullPath(r,o,!1),s={},l=new Set;return traverse(e,{allKeys:!0},(e,t,r,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const n=this.opts.uriResolver.resolve;if(t=normalizeId(f?n(f,t):t),l.has(t))throw c(t);l.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?u(e,r.schema,t):t!==normalizeId(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!ANCHOR.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[n]&&(f=p.call(this,e[n])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),a[t]=f}),s;function u(e,t,n){if(void 0!==t&&!equal$3(e,t))throw c(n)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}}resolve$2.getSchemaRefs=getSchemaRefs,Object.defineProperty(validate,"__esModule",{value:!0}),validate.getData=validate.KeywordCxt=validate.validateFunctionCode=void 0;const boolSchema_1=boolSchema,dataType_1$1=dataType,applicability_1=applicability,dataType_2=dataType,defaults_1=defaults,keyword_1=keyword,subschema_1=subschema,codegen_1$n=codegen,names_1$3=names$1,resolve_1$2=resolve$2,util_1$l=util,errors_1=errors;function validateFunctionCode(e){isSchemaObj(e)&&(checkKeywords(e),schemaCxtHasRules(e))?topSchemaObjCode(e):validateFunction(e,()=>(0,boolSchema_1.topBoolOrEmptySchema)(e))}function validateFunction({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,codegen_1$n._`${names_1$3.default.data}, ${names_1$3.default.valCxt}`,r.$async,()=>{e.code(codegen_1$n._`"use strict"; ${funcSourceUrl(n,o)}`),destructureValCxtES5(e,o),e.code(a)}):e.func(t,codegen_1$n._`${names_1$3.default.data}, ${destructureValCxt(o)}`,r.$async,()=>e.code(funcSourceUrl(n,o)).code(a))}function destructureValCxt(e){return codegen_1$n._`{${names_1$3.default.instancePath}="", ${names_1$3.default.parentData}, ${names_1$3.default.parentDataProperty}, ${names_1$3.default.rootData}=${names_1$3.default.data}${e.dynamicRef?codegen_1$n._`, ${names_1$3.default.dynamicAnchors}={}`:codegen_1$n.nil}}={}`}function destructureValCxtES5(e,t){e.if(names_1$3.default.valCxt,()=>{e.var(names_1$3.default.instancePath,codegen_1$n._`${names_1$3.default.valCxt}.${names_1$3.default.instancePath}`),e.var(names_1$3.default.parentData,codegen_1$n._`${names_1$3.default.valCxt}.${names_1$3.default.parentData}`),e.var(names_1$3.default.parentDataProperty,codegen_1$n._`${names_1$3.default.valCxt}.${names_1$3.default.parentDataProperty}`),e.var(names_1$3.default.rootData,codegen_1$n._`${names_1$3.default.valCxt}.${names_1$3.default.rootData}`),t.dynamicRef&&e.var(names_1$3.default.dynamicAnchors,codegen_1$n._`${names_1$3.default.valCxt}.${names_1$3.default.dynamicAnchors}`)},()=>{e.var(names_1$3.default.instancePath,codegen_1$n._`""`),e.var(names_1$3.default.parentData,codegen_1$n._`undefined`),e.var(names_1$3.default.parentDataProperty,codegen_1$n._`undefined`),e.var(names_1$3.default.rootData,names_1$3.default.data),t.dynamicRef&&e.var(names_1$3.default.dynamicAnchors,codegen_1$n._`{}`)})}function topSchemaObjCode(e){const{schema:t,opts:n,gen:r}=e;validateFunction(e,()=>{n.$comment&&t.$comment&&commentKeyword(e),checkNoDefault(e),r.let(names_1$3.default.vErrors,null),r.let(names_1$3.default.errors,0),n.unevaluated&&resetEvaluated(e),typeAndKeywords(e),returnResults(e)})}function resetEvaluated(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",codegen_1$n._`${n}.evaluated`),t.if(codegen_1$n._`${e.evaluated}.dynamicProps`,()=>t.assign(codegen_1$n._`${e.evaluated}.props`,codegen_1$n._`undefined`)),t.if(codegen_1$n._`${e.evaluated}.dynamicItems`,()=>t.assign(codegen_1$n._`${e.evaluated}.items`,codegen_1$n._`undefined`))}function funcSourceUrl(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?codegen_1$n._`/*# sourceURL=${n} */`:codegen_1$n.nil}function subschemaCode(e,t){isSchemaObj(e)&&(checkKeywords(e),schemaCxtHasRules(e))?subSchemaObjCode(e,t):(0,boolSchema_1.boolOrEmptySchema)(e,t)}function schemaCxtHasRules({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function isSchemaObj(e){return"boolean"!=typeof e.schema}function subSchemaObjCode(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&commentKeyword(e),updateContext(e),checkAsyncSchema(e);const a=r.const("_errs",names_1$3.default.errors);typeAndKeywords(e,a),r.var(t,codegen_1$n._`${a} === ${names_1$3.default.errors}`)}function checkKeywords(e){(0,util_1$l.checkUnknownRules)(e),checkRefsAndKeywords(e)}function typeAndKeywords(e,t){if(e.opts.jtd)return schemaKeywords(e,[],!1,t);const n=(0,dataType_1$1.getSchemaTypes)(e.schema);schemaKeywords(e,n,!(0,dataType_1$1.coerceAndCheckDataType)(e,n),t)}function checkRefsAndKeywords(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,util_1$l.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function checkNoDefault(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,util_1$l.checkStrictMode)(e,"default is ignored in the schema root")}function updateContext(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,resolve_1$2.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function checkAsyncSchema(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(!0===o.$comment)e.code(codegen_1$n._`${names_1$3.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const n=codegen_1$n.str`${r}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(codegen_1$n._`${names_1$3.default.self}.opts.$comment(${a}, ${n}, ${o}.schema)`)}}function returnResults(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if(codegen_1$n._`${names_1$3.default.errors} === 0`,()=>t.return(names_1$3.default.data),()=>t.throw(codegen_1$n._`new ${o}(${names_1$3.default.vErrors})`)):(t.assign(codegen_1$n._`${r}.errors`,names_1$3.default.vErrors),a.unevaluated&&assignEvaluated(e),t.return(codegen_1$n._`${names_1$3.default.errors} === 0`))}function assignEvaluated({gen:e,evaluated:t,props:n,items:r}){n instanceof codegen_1$n.Name&&e.assign(codegen_1$n._`${t}.props`,n),r instanceof codegen_1$n.Name&&e.assign(codegen_1$n._`${t}.items`,r)}function schemaKeywords(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:u}=e,{RULES:c}=u;function d(u){(0,applicability_1.shouldUseGroup)(a,u)&&(u.type?(o.if((0,dataType_2.checkDataType)(u.type,i,l.strictNumbers)),iterateKeywords(e,u),1===t.length&&t[0]===u.type&&n&&(o.else(),(0,dataType_2.reportTypeError)(e)),o.endIf()):iterateKeywords(e,u),s||o.if(codegen_1$n._`${names_1$3.default.errors} === ${r||0}`))}!a.$ref||!l.ignoreKeywordsWithRef&&(0,util_1$l.schemaHasRulesButRef)(a,c)?(l.jtd||checkStrictTypes(e,t),o.block(()=>{for(const e of c.rules)d(e);d(c.post)})):o.block(()=>keywordCode(e,"$ref",c.all.$ref.definition))}function iterateKeywords(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,defaults_1.assignDefaults)(e,t.type),n.block(()=>{for(const n of t.rules)(0,applicability_1.shouldUseRule)(r,n)&&keywordCode(e,n.keyword,n.definition,t.type)})}function checkStrictTypes(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(checkContextTypes(e,t),e.opts.allowUnionTypes||checkMultipleTypes(e,t),checkKeywordTypes(e,e.dataTypes))}function checkContextTypes(e,t){t.length&&(e.dataTypes.length?(t.forEach(t=>{includesType(e.dataTypes,t)||strictTypesError(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),narrowSchemaTypes(e,t)):e.dataTypes=t)}function checkMultipleTypes(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&strictTypesError(e,"use allowUnionTypes to allow union type keyword")}function checkKeywordTypes(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if("object"==typeof o&&(0,applicability_1.shouldUseRule)(e.schema,o)){const{type:n}=o.definition;n.length&&!n.some(e=>hasApplicableType(t,e))&&strictTypesError(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}function hasApplicableType(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function includesType(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function narrowSchemaTypes(e,t){const n=[];for(const r of e.dataTypes)includesType(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}function strictTypesError(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,util_1$l.checkStrictMode)(e,t,e.opts.strictTypes)}validate.validateFunctionCode=validateFunctionCode;class KeywordCxt{constructor(e,t,n){if((0,keyword_1.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,util_1$l.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",getData(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,keyword_1.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",names_1$3.default.errors))}result(e,t,n){this.failResult((0,codegen_1$n.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,codegen_1$n.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(codegen_1$n._`${t} !== undefined && (${(0,codegen_1$n.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?errors_1.reportExtraError:errors_1.reportError)(this,this.def.error,t)}$dataError(){(0,errors_1.reportError)(this,this.def.$dataError||errors_1.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,errors_1.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=codegen_1$n.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=codegen_1$n.nil,t=codegen_1$n.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:o,def:a}=this;n.if((0,codegen_1$n.or)(codegen_1$n._`${r} === undefined`,t)),e!==codegen_1$n.nil&&n.assign(e,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==codegen_1$n.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:o}=this;return(0,codegen_1$n.or)(function(){if(n.length){if(!(t instanceof codegen_1$n.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return codegen_1$n._`${(0,dataType_2.checkDataTypes)(e,t,o.opts.strictNumbers,dataType_2.DataType.Wrong)}`}return codegen_1$n.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return codegen_1$n._`!${n}(${t})`}return codegen_1$n.nil}())}subschema(e,t){const n=(0,subschema_1.getSubschema)(this.it,e);(0,subschema_1.extendSubschemaData)(n,this.it,e),(0,subschema_1.extendSubschemaMode)(n,e);const r={...this.it,...n,items:void 0,props:void 0};return subschemaCode(r,t),r}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=util_1$l.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=util_1$l.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,()=>this.mergeEvaluated(e,codegen_1$n.Name)),!0}}function keywordCode(e,t,n,r){const o=new KeywordCxt(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,keyword_1.funcKeywordCode)(o,n):"macro"in n?(0,keyword_1.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,keyword_1.funcKeywordCode)(o,n)}validate.KeywordCxt=KeywordCxt;const JSON_POINTER=/^\/(?:[^~]|~0|~1)*$/,RELATIVE_JSON_POINTER=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(""===e)return names_1$3.default.rootData;if("/"===e[0]){if(!JSON_POINTER.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=names_1$3.default.rootData}else{const i=RELATIVE_JSON_POINTER.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(a=n[t-s],!o)return a}let i=a;const s=o.split("/");for(const u of s)u&&(a=codegen_1$n._`${a}${(0,codegen_1$n.getProperty)((0,util_1$l.unescapeJsonPointer)(u))}`,i=codegen_1$n._`${i} && ${a}`);return i;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}validate.getData=getData;var validation_error={};Object.defineProperty(validation_error,"__esModule",{value:!0});let ValidationError$1=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};validation_error.default=ValidationError$1;var ref_error={};Object.defineProperty(ref_error,"__esModule",{value:!0});const resolve_1$1=resolve$2;class MissingRefError extends Error{constructor(e,t,n,r){super(r||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,resolve_1$1.resolveUrl)(e,t,n),this.missingSchema=(0,resolve_1$1.normalizeId)((0,resolve_1$1.getFullPath)(e,this.missingRef))}}ref_error.default=MissingRefError;var compile={};Object.defineProperty(compile,"__esModule",{value:!0}),compile.resolveSchema=compile.getCompilingSchema=compile.resolveRef=compile.compileSchema=compile.SchemaEnv=void 0;const codegen_1$m=codegen,validation_error_1=validation_error,names_1$2=names$1,resolve_1=resolve$2,util_1$k=util,validate_1$1=validate;class SchemaEnv{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,resolve_1.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function compileSchema(e){const t=getCompilingSchema.call(this,e);if(t)return t;const n=(0,resolve_1.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new codegen_1$m.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:validation_error_1.default,code:codegen_1$m._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:names_1$2.default.data,parentData:names_1$2.default.parentData,parentDataProperty:names_1$2.default.parentDataProperty,dataNames:[names_1$2.default.data],dataPathArr:[codegen_1$m.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,codegen_1$m.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:codegen_1$m.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:codegen_1$m._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,validate_1$1.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(names_1$2.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const n=new Function(`${names_1$2.default.self}`,`${names_1$2.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;n.evaluated={props:e instanceof codegen_1$m.Name?void 0:e,items:t instanceof codegen_1$m.Name?void 0:t,dynamicProps:e instanceof codegen_1$m.Name,dynamicItems:t instanceof codegen_1$m.Name},n.source&&(n.source.evaluated=(0,codegen_1$m.stringify)(n.evaluated))}return e.validate=n,e}catch(d){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),d}finally{this._compilations.delete(e)}}function resolveRef(e,t,n){var r;n=(0,resolve_1.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=resolve$1.call(this,e,n);if(void 0===a){const o=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:i}=this.opts;o&&(a=new SchemaEnv({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[n]=inlineOrCompile.call(this,a):void 0}function inlineOrCompile(e){return(0,resolve_1.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:compileSchema.call(this,e)}function getCompilingSchema(e){for(const t of this._compilations)if(sameSchemaEnv(t,e))return t}function sameSchemaEnv(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function resolve$1(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||resolveSchema.call(this,e,t)}function resolveSchema(e,t){const n=this.opts.uriResolver.parse(t),r=(0,resolve_1._getFullPath)(this.opts.uriResolver,n);let o=(0,resolve_1.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return getJsonPointer.call(this,n,e);const a=(0,resolve_1.normalizeId)(r),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=resolveSchema.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return getJsonPointer.call(this,n,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||compileSchema.call(this,i),a===(0,resolve_1.normalizeId)(t)){const{schema:t}=i,{schemaId:n}=this.opts,r=t[n];return r&&(o=(0,resolve_1.resolveUrl)(this.opts.uriResolver,o,r)),new SchemaEnv({schema:t,schemaId:n,root:e,baseId:o})}return getJsonPointer.call(this,n,i)}}compile.SchemaEnv=SchemaEnv,compile.compileSchema=compileSchema,compile.resolveRef=resolveRef,compile.getCompilingSchema=getCompilingSchema,compile.resolveSchema=resolveSchema;const PREVENT_SCOPE_CHANGE=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,{baseId:t,schema:n,root:r}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const s of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,util_1$k.unescapeFragment)(s)];if(void 0===e)return;const r="object"==typeof(n=e)&&n[this.opts.schemaId];!PREVENT_SCOPE_CHANGE.has(s)&&r&&(t=(0,resolve_1.resolveUrl)(this.opts.uriResolver,t,r))}let a;if("boolean"!=typeof n&&n.$ref&&!(0,util_1$k.schemaHasRulesButRef)(n,this.RULES)){const e=(0,resolve_1.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=resolveSchema.call(this,r,e)}const{schemaId:i}=this.opts;return a=a||new SchemaEnv({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema?a:void 0}const $id$1="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description="Meta-schema for $data reference (JSON AnySchema extension proposal)",type$1="object",required$1=["$data"],properties$2={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties$1=!1,require$$9={$id:$id$1,description:description,type:type$1,required:required$1,properties:properties$2,additionalProperties:additionalProperties$1};var uri$1={},fastUri$1={exports:{}};const isUUID$1=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),isIPv4$1=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function stringArrayToHexStripped(e){let t="",n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),48!==n){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r]}return t}const nonSimpleDomain$1=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function consumeIsZone(e){return e.length=0,!0}function consumeHextets(e,t,n){if(e.length){const r=stringArrayToHexStripped(e);if(""===r)return n.error=!0,!1;t.push(r),e.length=0}return!0}function getIPV6(e){let t=0;const n={error:!1,address:"",zone:""},r=[],o=[];let a=!1,i=!1,s=consumeHextets;for(let l=0;l<e.length;l++){const u=e[l];if("["!==u&&"]"!==u)if(":"!==u)if("%"===u){if(!s(o,r,n))break;s=consumeIsZone}else o.push(u);else{if(!0===a&&(i=!0),!s(o,r,n))break;if(++t>7){n.error=!0;break}l>0&&":"===e[l-1]&&(a=!0),r.push(":")}}return o.length&&(s===consumeIsZone?n.zone=o.join(""):i?r.push(o.join("")):r.push(stringArrayToHexStripped(o))),n.address=r.join(""),n}function normalizeIPv6$1(e){if(findToken(e,":")<2)return{host:e,isIPV6:!1};const t=getIPV6(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+="%"+t.zone,n+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}function findToken(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}function removeDotSegments$1(e){let t=e;const n=[];let r=-1,o=0;for(;o=t.length;){if(1===o){if("."===t)break;if("/"===t){n.push("/");break}n.push(t);break}if(2===o){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){n.push("/");break}}else if(3===o&&"/.."===t){0!==n.length&&n.pop(),n.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==n.length&&n.pop();continue}}if(-1===(r=t.indexOf("/",1))){n.push(t);break}n.push(t.slice(0,r)),t=t.slice(r)}return n.join("")}function normalizeComponentEncoding$1(e,t){const n=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=n(e.scheme)),void 0!==e.userinfo&&(e.userinfo=n(e.userinfo)),void 0!==e.host&&(e.host=n(e.host)),void 0!==e.path&&(e.path=n(e.path)),void 0!==e.query&&(e.query=n(e.query)),void 0!==e.fragment&&(e.fragment=n(e.fragment)),e}function recomposeAuthority$1(e){const t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let n=unescape(e.host);if(!isIPv4$1(n)){const t=normalizeIPv6$1(n);n=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(n)}return"number"!=typeof e.port&&"string"!=typeof e.port||(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}var utils$1={nonSimpleDomain:nonSimpleDomain$1,recomposeAuthority:recomposeAuthority$1,normalizeComponentEncoding:normalizeComponentEncoding$1,removeDotSegments:removeDotSegments$1,isIPv4:isIPv4$1,isUUID:isUUID$1,normalizeIPv6:normalizeIPv6$1};const{isUUID:isUUID}=utils$1,URN_REG=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function wsIsSecure(e){return!0===e.secure||!1!==e.secure&&(!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2]))}function httpParse(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function httpSerialize(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}function wsParse(e){return e.secure=wsIsSecure(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function wsSerialize(e){if(e.port!==(wsIsSecure(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function urnParse(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(URN_REG);if(n){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const o=getSchemeHandler$1(`${r}:${t.nid||e.nid}`);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function urnSerialize(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),o=getSchemeHandler$1(`${n}:${t.nid||r}`);o&&(e=o.serialize(e,t));const a=e,i=e.nss;return a.path=`${r||t.nid}:${i}`,t.skipEscape=!0,a}function urnuuidParse(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&isUUID(n.uuid)||(n.error=n.error||"UUID is not valid."),n}function urnuuidSerialize(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const http={scheme:"http",domainHost:!0,parse:httpParse,serialize:httpSerialize},https={scheme:"https",domainHost:http.domainHost,parse:httpParse,serialize:httpSerialize},ws={scheme:"ws",domainHost:!0,parse:wsParse,serialize:wsSerialize},wss={scheme:"wss",domainHost:ws.domainHost,parse:ws.parse,serialize:ws.serialize},urn={scheme:"urn",parse:urnParse,serialize:urnSerialize,skipNormalize:!0},urnuuid={scheme:"urn:uuid",parse:urnuuidParse,serialize:urnuuidSerialize,skipNormalize:!0},SCHEMES$1={http:http,https:https,ws:ws,wss:wss,urn:urn,"urn:uuid":urnuuid};function getSchemeHandler$1(e){return e&&(SCHEMES$1[e]||SCHEMES$1[e.toLowerCase()])||void 0}Object.setPrototypeOf(SCHEMES$1,null);var schemes={SCHEMES:SCHEMES$1,getSchemeHandler:getSchemeHandler$1};const{normalizeIPv6:normalizeIPv6,removeDotSegments:removeDotSegments,recomposeAuthority:recomposeAuthority,normalizeComponentEncoding:normalizeComponentEncoding,isIPv4:isIPv4,nonSimpleDomain:nonSimpleDomain}=utils$1,{SCHEMES:SCHEMES,getSchemeHandler:getSchemeHandler}=schemes;function normalize(e,t){return"string"==typeof e?e=serialize(parse(e,t),t):"object"==typeof e&&(e=parse(serialize(e,t),t)),e}function resolve(e,t,n){const r=n?Object.assign({scheme:"null"},n):{scheme:"null"},o=resolveComponent(parse(e,r),parse(t,r),r,!0);return r.skipEscape=!0,serialize(o,r)}function resolveComponent(e,t,n,r){const o={};return r||(e=parse(serialize(e,n),n),t=parse(serialize(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=removeDotSegments(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=removeDotSegments(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=removeDotSegments(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=removeDotSegments(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function equal$2(e,t,n){return"string"==typeof e?(e=unescape(e),e=serialize(normalizeComponentEncoding(parse(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=serialize(normalizeComponentEncoding(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=serialize(normalizeComponentEncoding(parse(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=serialize(normalizeComponentEncoding(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function serialize(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),o=[],a=getSchemeHandler(r.scheme||n.scheme);a&&a.serialize&&a.serialize(n,r),void 0!==n.path&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==r.reference&&n.scheme&&o.push(n.scheme,":");const i=recomposeAuthority(n);if(void 0!==i&&("suffix"!==r.reference&&o.push("//"),o.push(i),n.path&&"/"!==n.path[0]&&o.push("/")),void 0!==n.path){let e=n.path;r.absolutePath||a&&a.absolutePath||(e=removeDotSegments(e)),void 0===i&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),o.push(e)}return void 0!==n.query&&o.push("?",n.query),void 0!==n.fragment&&o.push("#",n.fragment),o.join("")}const URI_PARSE=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function parse(e,t){const n=Object.assign({},t),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let o=!1;"suffix"===n.reference&&(e=n.scheme?n.scheme+":"+e:"//"+e);const a=e.match(URI_PARSE);if(a){if(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5]),r.host){if(!1===isIPv4(r.host)){const e=normalizeIPv6(r.host);r.host=e.host.toLowerCase(),o=e.isIPV6}else o=!0}void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||void 0!==r.query||r.path?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");const t=getSchemeHandler(n.scheme||r.scheme);if(!(n.unicodeSupport||t&&t.unicodeSupport)&&r.host&&(n.domainHost||t&&t.domainHost)&&!1===o&&nonSimpleDomain(r.host))try{r.host=URL.domainToASCII(r.host.toLowerCase())}catch(i){r.error=r.error||"Host's domain name can not be converted to ASCII: "+i}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==r.scheme&&(r.scheme=unescape(r.scheme)),void 0!==r.host&&(r.host=unescape(r.host))),r.path&&(r.path=escape(unescape(r.path))),r.fragment&&(r.fragment=encodeURI(decodeURIComponent(r.fragment)))),t&&t.parse&&t.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}const fastUri={SCHEMES:SCHEMES,normalize:normalize,resolve:resolve,resolveComponent:resolveComponent,equal:equal$2,serialize:serialize,parse:parse};fastUri$1.exports=fastUri,fastUri$1.exports.default=fastUri,fastUri$1.exports.fastUri=fastUri;var fastUriExports=fastUri$1.exports;Object.defineProperty(uri$1,"__esModule",{value:!0});const uri=fastUriExports;uri.code='require("ajv/dist/runtime/uri").default',uri$1.default=uri,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=validate;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=codegen;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=validation_error,o=ref_error,a=rules,i=compile,s=codegen,l=resolve$2,u=dataType,c=util,d=require$$9,f=uri$1,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function y(e){var t,n,r,o,a,i,s,l,u,c,d,h,m,g,b,y,_,v,w,S,x,T,E,k,P;const O=e.strict,A=null===(t=e.code)||void 0===t?void 0:t.optimize,$=!0===A||void 0===A?1:A||0,R=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:p,I=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:O)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:O)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:O)&&void 0!==c?c:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:O)&&void 0!==h?h:"log",strictRequired:null!==(g=null!==(m=e.strictRequired)&&void 0!==m?m:O)&&void 0!==g&&g,code:e.code?{...e.code,optimize:$,regExp:R}:{optimize:$,regExp:R},loopRequired:null!==(b=e.loopRequired)&&void 0!==b?b:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(_=e.meta)||void 0===_||_,messages:null===(v=e.messages)||void 0===v||v,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(S=e.schemaId)&&void 0!==S?S:"$id",addUsedSchema:null===(x=e.addUsedSchema)||void 0===x||x,validateSchema:null===(T=e.validateSchema)||void 0===T||T,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(k=e.unicodeRegExp)||void 0===k||k,int32range:null===(P=e.int32range)||void 0===P||P,uriResolver:I}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:n}),this.logger=function(e){if(!1===e)return k;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),v.call(this,g,e,"NOT SUPPORTED"),v.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=E.call(this),e.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&T.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=d;"id"===n&&(r={...d},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await a.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||i.call(this,n)}async function a(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await u.call(this,e);this.refs[e]||await a.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=w.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new i.SchemaEnv({schema:{},schemaId:n});if(t=i.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=w.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(O.call(this,n,t),!t)return(0,c.eachItem)(n,e=>A.call(this,e)),this;R.call(this,t);const r={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(n,0===r.type.length?e=>A.call(this,e,r):e=>r.type.forEach(t=>A.call(this,e,r,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,a=o[e];r&&a&&(o[e]=C(a))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;n=(0,l.normalizeId)(a||n);const c=l.getSchemaRefs.call(this,e,n);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:c}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),r&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function v(e,t,n,r="error"){for(const o in e){const a=o;a in t&&this.logger[r](`${n}: option ${o}. ${e[a]}`)}}function w(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function x(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function T(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function E(){const e={...this.opts};for(const t of h)delete e[t];return e}_.ValidationError=r.default,_.MissingRefError=o.default,e.default=_;const k={log(){},warn(){},error(){}};const P=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){const{RULES:n}=this;if((0,c.eachItem)(e,e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!P.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function A(e,t,n){var r;const o=null==t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find(({type:e})=>e===n);if(i||(i={type:n,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?$.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach(e=>this.addKeyword(e))}function $(e,t,n){const r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,I]}}}(core$2);var draft7={},core$1={},id={};Object.defineProperty(id,"__esModule",{value:!0});const def$s={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};id.default=def$s;var ref={};Object.defineProperty(ref,"__esModule",{value:!0}),ref.callRef=ref.getValidate=void 0;const ref_error_1$1=ref_error,code_1$8=code,codegen_1$l=codegen,names_1$1=names$1,compile_1$1=compile,util_1$j=util,def$r={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:u}=a;if(("#"===n||"#/"===n)&&o===u.baseId)return function(){if(a===u)return callRef(e,i,a,a.$async);const n=t.scopeValue("root",{ref:u});return callRef(e,codegen_1$l._`${n}.validate`,u,u.$async)}();const c=compile_1$1.resolveRef.call(l,u,o,n);if(void 0===c)throw new ref_error_1$1.default(r.opts.uriResolver,o,n);return c instanceof compile_1$1.SchemaEnv?function(t){const n=getValidate(e,t);callRef(e,n,t,t.$async)}(c):function(r){const o=t.scopeValue("schema",!0===s.code.source?{ref:r,code:(0,codegen_1$l.stringify)(r)}:{ref:r}),a=t.name("valid"),i=e.subschema({schema:r,dataTypes:[],schemaPath:codegen_1$l.nil,topSchemaRef:o,errSchemaPath:n},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function getValidate(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):codegen_1$l._`${n.scopeValue("wrapper",{ref:t})}.validate`}function callRef(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?names_1$1.default.this:codegen_1$l.nil;function c(e){const t=codegen_1$l._`${e}.errors`;o.assign(names_1$1.default.vErrors,codegen_1$l._`${names_1$1.default.vErrors} === null ? ${t} : ${names_1$1.default.vErrors}.concat(${t})`),o.assign(names_1$1.default.errors,codegen_1$l._`${names_1$1.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(r&&!r.dynamicProps)void 0!==r.props&&(a.props=util_1$j.mergeEvaluated.props(o,r.props,a.props));else{const t=o.var("props",codegen_1$l._`${e}.evaluated.props`);a.props=util_1$j.mergeEvaluated.props(o,t,a.props,codegen_1$l.Name)}if(!0!==a.items)if(r&&!r.dynamicItems)void 0!==r.items&&(a.items=util_1$j.mergeEvaluated.items(o,r.items,a.items));else{const t=o.var("items",codegen_1$l._`${e}.evaluated.items`);a.items=util_1$j.mergeEvaluated.items(o,t,a.items,codegen_1$l.Name)}}r?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const n=o.let("valid");o.try(()=>{o.code(codegen_1$l._`await ${(0,code_1$8.callValidateCode)(e,t,u)}`),d(t),i||o.assign(n,!0)},e=>{o.if(codegen_1$l._`!(${e} instanceof ${a.ValidationError})`,()=>o.throw(e)),c(e),i||o.assign(n,!1)}),e.ok(n)}():e.result((0,code_1$8.callValidateCode)(e,t,u),()=>d(t),()=>c(t))}ref.getValidate=getValidate,ref.callRef=callRef,ref.default=def$r,Object.defineProperty(core$1,"__esModule",{value:!0});const id_1=id,ref_1=ref,core=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",id_1.default,ref_1.default];core$1.default=core;var validation$1={},limitNumber={};Object.defineProperty(limitNumber,"__esModule",{value:!0});const codegen_1$k=codegen,ops=codegen_1$k.operators,KWDs={maximum:{okStr:"<=",ok:ops.LTE,fail:ops.GT},minimum:{okStr:">=",ok:ops.GTE,fail:ops.LT},exclusiveMaximum:{okStr:"<",ok:ops.LT,fail:ops.GTE},exclusiveMinimum:{okStr:">",ok:ops.GT,fail:ops.LTE}},error$i={message:({keyword:e,schemaCode:t})=>codegen_1$k.str`must be ${KWDs[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>codegen_1$k._`{comparison: ${KWDs[e].okStr}, limit: ${t}}`},def$q={keyword:Object.keys(KWDs),type:"number",schemaType:"number",$data:!0,error:error$i,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data(codegen_1$k._`${n} ${KWDs[t].fail} ${r} || isNaN(${n})`)}};limitNumber.default=def$q;var multipleOf={};Object.defineProperty(multipleOf,"__esModule",{value:!0});const codegen_1$j=codegen,error$h={message:({schemaCode:e})=>codegen_1$j.str`must be multiple of ${e}`,params:({schemaCode:e})=>codegen_1$j._`{multipleOf: ${e}}`},def$p={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:error$h,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?codegen_1$j._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:codegen_1$j._`${i} !== parseInt(${i})`;e.fail$data(codegen_1$j._`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};multipleOf.default=def$p;var limitLength={},ucs2length$1={};function ucs2length(e){const t=e.length;let n,r=0,o=0;for(;o<t;)r++,n=e.charCodeAt(o++),n>=55296&&n<=56319&&o<t&&(n=e.charCodeAt(o),56320==(64512&n)&&o++);return r}Object.defineProperty(ucs2length$1,"__esModule",{value:!0}),ucs2length$1.default=ucs2length,ucs2length.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(limitLength,"__esModule",{value:!0});const codegen_1$i=codegen,util_1$i=util,ucs2length_1=ucs2length$1,error$g={message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return codegen_1$i.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>codegen_1$i._`{limit: ${e}}`},def$o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:error$g,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a="maxLength"===t?codegen_1$i.operators.GT:codegen_1$i.operators.LT,i=!1===o.opts.unicode?codegen_1$i._`${n}.length`:codegen_1$i._`${(0,util_1$i.useFunc)(e.gen,ucs2length_1.default)}(${n})`;e.fail$data(codegen_1$i._`${i} ${a} ${r}`)}};limitLength.default=def$o;var pattern={};Object.defineProperty(pattern,"__esModule",{value:!0});const code_1$7=code,codegen_1$h=codegen,error$f={message:({schemaCode:e})=>codegen_1$h.str`must match pattern "${e}"`,params:({schemaCode:e})=>codegen_1$h._`{pattern: ${e}}`},def$n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:error$f,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?codegen_1$h._`(new RegExp(${o}, ${i}))`:(0,code_1$7.usePattern)(e,r);e.fail$data(codegen_1$h._`!${s}.test(${t})`)}};pattern.default=def$n;var limitProperties={};Object.defineProperty(limitProperties,"__esModule",{value:!0});const codegen_1$g=codegen,error$e={message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return codegen_1$g.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>codegen_1$g._`{limit: ${e}}`},def$m={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:error$e,code(e){const{keyword:t,data:n,schemaCode:r}=e,o="maxProperties"===t?codegen_1$g.operators.GT:codegen_1$g.operators.LT;e.fail$data(codegen_1$g._`Object.keys(${n}).length ${o} ${r}`)}};limitProperties.default=def$m;var required={};Object.defineProperty(required,"__esModule",{value:!0});const code_1$6=code,codegen_1$f=codegen,util_1$h=util,error$d={message:({params:{missingProperty:e}})=>codegen_1$f.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>codegen_1$f._`{missingProperty: ${e}}`},def$l={keyword:"required",type:"object",schemaType:"array",$data:!0,error:error$d,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===n.length)return;const l=n.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(codegen_1$f.nil,u);else for(const t of n)(0,code_1$6.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const n=t.let("valid",!0);e.block$data(n,()=>function(n,a){e.setParams({missingProperty:n}),t.forOf(n,r,()=>{t.assign(a,(0,code_1$6.propertyInData)(t,o,n,s.ownProperties)),t.if((0,codegen_1$f.not)(a),()=>{e.error(),t.break()})},codegen_1$f.nil)}(i,n)),e.ok(n)}else t.if((0,code_1$6.checkMissingProp)(e,n,i)),(0,code_1$6.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,util_1$h.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",r,n=>{e.setParams({missingProperty:n}),t.if((0,code_1$6.noPropertyInData)(t,o,n,s.ownProperties),()=>e.error())})}}};required.default=def$l;var limitItems={};Object.defineProperty(limitItems,"__esModule",{value:!0});const codegen_1$e=codegen,error$c={message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return codegen_1$e.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>codegen_1$e._`{limit: ${e}}`},def$k={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:error$c,code(e){const{keyword:t,data:n,schemaCode:r}=e,o="maxItems"===t?codegen_1$e.operators.GT:codegen_1$e.operators.LT;e.fail$data(codegen_1$e._`${n}.length ${o} ${r}`)}};limitItems.default=def$k;var uniqueItems={},equal$1={};Object.defineProperty(equal$1,"__esModule",{value:!0});const equal=fastDeepEqual;equal.code='require("ajv/dist/runtime/equal").default',equal$1.default=equal,Object.defineProperty(uniqueItems,"__esModule",{value:!0});const dataType_1=dataType,codegen_1$d=codegen,util_1$g=util,equal_1$2=equal$1,error$b={message:({params:{i:e,j:t}})=>codegen_1$d.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>codegen_1$d._`{i: ${e}, j: ${t}}`},def$j={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:error$b,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),u=a.items?(0,dataType_1.getSchemaTypes)(a.items):[];function c(r,o){const a=t.name("item"),i=(0,dataType_1.checkDataTypes)(u,a,s.opts.strictNumbers,dataType_1.DataType.Wrong),c=t.const("indices",codegen_1$d._`{}`);t.for(codegen_1$d._`;${r}--;`,()=>{t.let(a,codegen_1$d._`${n}[${r}]`),t.if(i,codegen_1$d._`continue`),u.length>1&&t.if(codegen_1$d._`typeof ${a} == "string"`,codegen_1$d._`${a} += "_"`),t.if(codegen_1$d._`typeof ${c}[${a}] == "number"`,()=>{t.assign(o,codegen_1$d._`${c}[${a}]`),e.error(),t.assign(l,!1).break()}).code(codegen_1$d._`${c}[${a}] = ${r}`)})}function d(r,o){const a=(0,util_1$g.useFunc)(t,equal_1$2.default),i=t.name("outer");t.label(i).for(codegen_1$d._`;${r}--;`,()=>t.for(codegen_1$d._`${o} = ${r}; ${o}--;`,()=>t.if(codegen_1$d._`${a}(${n}[${r}], ${n}[${o}])`,()=>{e.error(),t.assign(l,!1).break(i)})))}e.block$data(l,function(){const r=t.let("i",codegen_1$d._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(l,!0),t.if(codegen_1$d._`${r} > 1`,()=>(u.length>0&&!u.some(e=>"object"===e||"array"===e)?c:d)(r,o))},codegen_1$d._`${i} === false`),e.ok(l)}};uniqueItems.default=def$j;var _const={};Object.defineProperty(_const,"__esModule",{value:!0});const codegen_1$c=codegen,util_1$f=util,equal_1$1=equal$1,error$a={message:"must be equal to constant",params:({schemaCode:e})=>codegen_1$c._`{allowedValue: ${e}}`},def$i={keyword:"const",$data:!0,error:error$a,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&"object"==typeof a?e.fail$data(codegen_1$c._`!${(0,util_1$f.useFunc)(t,equal_1$1.default)}(${n}, ${o})`):e.fail(codegen_1$c._`${a} !== ${n}`)}};_const.default=def$i;var _enum={};Object.defineProperty(_enum,"__esModule",{value:!0});const codegen_1$b=codegen,util_1$e=util,equal_1=equal$1,error$9={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>codegen_1$b._`{allowedValues: ${e}}`},def$h={keyword:"enum",schemaType:"array",$data:!0,error:error$9,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,util_1$e.useFunc)(t,equal_1.default);let c;if(s||r)c=t.let("valid"),e.block$data(c,function(){t.assign(c,!1),t.forOf("v",a,e=>t.if(codegen_1$b._`${u()}(${n}, ${e})`,()=>t.assign(c,!0).break()))});else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,codegen_1$b.or)(...o.map((t,r)=>function(e,t){const r=o[t];return"object"==typeof r&&null!==r?codegen_1$b._`${u()}(${n}, ${e}[${t}])`:codegen_1$b._`${n} === ${r}`}(e,r)))}e.pass(c)}};_enum.default=def$h,Object.defineProperty(validation$1,"__esModule",{value:!0});const limitNumber_1=limitNumber,multipleOf_1=multipleOf,limitLength_1=limitLength,pattern_1=pattern,limitProperties_1=limitProperties,required_1=required,limitItems_1=limitItems,uniqueItems_1=uniqueItems,const_1=_const,enum_1=_enum,validation=[limitNumber_1.default,multipleOf_1.default,limitLength_1.default,pattern_1.default,limitProperties_1.default,required_1.default,limitItems_1.default,uniqueItems_1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},const_1.default,enum_1.default];validation$1.default=validation;var applicator={},additionalItems={};Object.defineProperty(additionalItems,"__esModule",{value:!0}),additionalItems.validateAdditionalItems=void 0;const codegen_1$a=codegen,util_1$d=util,error$8={message:({params:{len:e}})=>codegen_1$a.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>codegen_1$a._`{limit: ${e}}`},def$g={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:error$8,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?validateAdditionalItems(e,r):(0,util_1$d.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",codegen_1$a._`${o}.length`);if(!1===r)e.setParams({len:t.length}),e.pass(codegen_1$a._`${s} <= ${t.length}`);else if("object"==typeof r&&!(0,util_1$d.alwaysValidSchema)(i,r)){const r=n.var("valid",codegen_1$a._`${s} <= ${t.length}`);n.if((0,codegen_1$a.not)(r),()=>function(r){n.forRange("i",t.length,s,t=>{e.subschema({keyword:a,dataProp:t,dataPropType:util_1$d.Type.Num},r),i.allErrors||n.if((0,codegen_1$a.not)(r),()=>n.break())})}(r)),e.ok(r)}}additionalItems.validateAdditionalItems=validateAdditionalItems,additionalItems.default=def$g;var prefixItems={},items={};Object.defineProperty(items,"__esModule",{value:!0}),items.validateTuple=void 0;const codegen_1$9=codegen,util_1$c=util,code_1$5=code,def$f={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return validateTuple(e,"additionalItems",t);n.items=!0,(0,util_1$c.alwaysValidSchema)(n,t)||e.ok((0,code_1$5.validateArray)(e))}};function validateTuple(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:r,errSchemaPath:o}=s,a=n.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,util_1$c.checkStrictMode)(s,e,r.strictTuples)}}(o),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=util_1$c.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),u=r.const("len",codegen_1$9._`${a}.length`);n.forEach((t,n)=>{(0,util_1$c.alwaysValidSchema)(s,t)||(r.if(codegen_1$9._`${u} > ${n}`,()=>e.subschema({keyword:i,schemaProp:n,dataProp:n},l)),e.ok(l))})}items.validateTuple=validateTuple,items.default=def$f,Object.defineProperty(prefixItems,"__esModule",{value:!0});const items_1$1=items,def$e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,items_1$1.validateTuple)(e,"items")};prefixItems.default=def$e;var items2020={};Object.defineProperty(items2020,"__esModule",{value:!0});const codegen_1$8=codegen,util_1$b=util,code_1$4=code,additionalItems_1$1=additionalItems,error$7={message:({params:{len:e}})=>codegen_1$8.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>codegen_1$8._`{limit: ${e}}`},def$d={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:error$7,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,(0,util_1$b.alwaysValidSchema)(r,t)||(o?(0,additionalItems_1$1.validateAdditionalItems)(e,o):e.ok((0,code_1$4.validateArray)(e)))}};items2020.default=def$d;var contains={};Object.defineProperty(contains,"__esModule",{value:!0});const codegen_1$7=codegen,util_1$a=util,error$6={message:({params:{min:e,max:t}})=>void 0===t?codegen_1$7.str`must contain at least ${e} valid item(s)`:codegen_1$7.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?codegen_1$7._`{minContains: ${e}}`:codegen_1$7._`{minContains: ${e}, maxContains: ${t}}`},def$c={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:error$6,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=r;a.opts.next?(i=void 0===l?1:l,s=u):i=1;const c=t.const("len",codegen_1$7._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,util_1$a.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,util_1$a.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,util_1$a.alwaysValidSchema)(a,n)){let t=codegen_1$7._`${c} >= ${i}`;return void 0!==s&&(t=codegen_1$7._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),n=t.let("count",0);p(e,()=>t.if(e,()=>function(e){t.code(codegen_1$7._`${e}++`),void 0===s?t.if(codegen_1$7._`${e} >= ${i}`,()=>t.assign(d,!0).break()):(t.if(codegen_1$7._`${e} > ${s}`,()=>t.assign(d,!1).break()),1===i?t.assign(d,!0):t.if(codegen_1$7._`${e} >= ${i}`,()=>t.assign(d,!0)))}(n)))}function p(n,r){t.forRange("i",0,c,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:util_1$a.Type.Num,compositeRule:!0},n),r()})}void 0===s&&1===i?p(d,()=>t.if(d,()=>t.break())):0===i?(t.let(d,!0),void 0!==s&&t.if(codegen_1$7._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset())}};contains.default=def$c;var dependencies={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=codegen,n=util,r=code;e.error={message:({params:{property:e,depsCount:n,deps:r}})=>{const o=1===n?"property":"properties";return t.str`must have ${o} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:r,missingProperty:o}})=>t._`{property: ${e},
|