oh-my-pr 2.2.0 → 2.4.0

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.
@@ -0,0 +1,8 @@
1
+ function lv(n,o){for(var s=0;s<o.length;s++){const l=o[s];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(l,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function up(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var aa={exports:{}},xo={},ua={exports:{}},he={};var df;function av(){if(df)return he;df=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.iterator;function S(P){return P===null||typeof P!="object"?null:(P=b&&P[b]||P["@@iterator"],typeof P=="function"?P:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,k={};function N(P,z,ue){this.props=P,this.context=z,this.refs=k,this.updater=ue||j}N.prototype.isReactComponent={},N.prototype.setState=function(P,z){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,z,"setState")},N.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function R(){}R.prototype=N.prototype;function I(P,z,ue){this.props=P,this.context=z,this.refs=k,this.updater=ue||j}var L=I.prototype=new R;L.constructor=I,O(L,N.prototype),L.isPureReactComponent=!0;var D=Array.isArray,Q=Object.prototype.hasOwnProperty,W={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function ne(P,z,ue){var de,ge={},ve=null,xe=null;if(z!=null)for(de in z.ref!==void 0&&(xe=z.ref),z.key!==void 0&&(ve=""+z.key),z)Q.call(z,de)&&!V.hasOwnProperty(de)&&(ge[de]=z[de]);var we=arguments.length-2;if(we===1)ge.children=ue;else if(1<we){for(var Ce=Array(we),Xe=0;Xe<we;Xe++)Ce[Xe]=arguments[Xe+2];ge.children=Ce}if(P&&P.defaultProps)for(de in we=P.defaultProps,we)ge[de]===void 0&&(ge[de]=we[de]);return{$$typeof:n,type:P,key:ve,ref:xe,props:ge,_owner:W.current}}function F(P,z){return{$$typeof:n,type:P.type,key:z,ref:P.ref,props:P.props,_owner:P._owner}}function re(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function pe(P){var z={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ue){return z[ue]})}var ee=/\/+/g;function ce(P,z){return typeof P=="object"&&P!==null&&P.key!=null?pe(""+P.key):z.toString(36)}function G(P,z,ue,de,ge){var ve=typeof P;(ve==="undefined"||ve==="boolean")&&(P=null);var xe=!1;if(P===null)xe=!0;else switch(ve){case"string":case"number":xe=!0;break;case"object":switch(P.$$typeof){case n:case o:xe=!0}}if(xe)return xe=P,ge=ge(xe),P=de===""?"."+ce(xe,0):de,D(ge)?(ue="",P!=null&&(ue=P.replace(ee,"$&/")+"/"),G(ge,z,ue,"",function(Xe){return Xe})):ge!=null&&(re(ge)&&(ge=F(ge,ue+(!ge.key||xe&&xe.key===ge.key?"":(""+ge.key).replace(ee,"$&/")+"/")+P)),z.push(ge)),1;if(xe=0,de=de===""?".":de+":",D(P))for(var we=0;we<P.length;we++){ve=P[we];var Ce=de+ce(ve,we);xe+=G(ve,z,ue,Ce,ge)}else if(Ce=S(P),typeof Ce=="function")for(P=Ce.call(P),we=0;!(ve=P.next()).done;)ve=ve.value,Ce=de+ce(ve,we++),xe+=G(ve,z,ue,Ce,ge);else if(ve==="object")throw z=String(P),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return xe}function me(P,z,ue){if(P==null)return P;var de=[],ge=0;return G(P,de,"","",function(ve){return z.call(ue,ve,ge++)}),de}function le(P){if(P._status===-1){var z=P._result;z=z(),z.then(function(ue){(P._status===0||P._status===-1)&&(P._status=1,P._result=ue)},function(ue){(P._status===0||P._status===-1)&&(P._status=2,P._result=ue)}),P._status===-1&&(P._status=0,P._result=z)}if(P._status===1)return P._result.default;throw P._result}var ie={current:null},M={transition:null},q={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:M,ReactCurrentOwner:W};function K(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:me,forEach:function(P,z,ue){me(P,function(){z.apply(this,arguments)},ue)},count:function(P){var z=0;return me(P,function(){z++}),z},toArray:function(P){return me(P,function(z){return z})||[]},only:function(P){if(!re(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},he.Component=N,he.Fragment=s,he.Profiler=u,he.PureComponent=I,he.StrictMode=l,he.Suspense=g,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,he.act=K,he.cloneElement=function(P,z,ue){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var de=O({},P.props),ge=P.key,ve=P.ref,xe=P._owner;if(z!=null){if(z.ref!==void 0&&(ve=z.ref,xe=W.current),z.key!==void 0&&(ge=""+z.key),P.type&&P.type.defaultProps)var we=P.type.defaultProps;for(Ce in z)Q.call(z,Ce)&&!V.hasOwnProperty(Ce)&&(de[Ce]=z[Ce]===void 0&&we!==void 0?we[Ce]:z[Ce])}var Ce=arguments.length-2;if(Ce===1)de.children=ue;else if(1<Ce){we=Array(Ce);for(var Xe=0;Xe<Ce;Xe++)we[Xe]=arguments[Xe+2];de.children=we}return{$$typeof:n,type:P.type,key:ge,ref:ve,props:de,_owner:xe}},he.createContext=function(P){return P={$$typeof:p,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:f,_context:P},P.Consumer=P},he.createElement=ne,he.createFactory=function(P){var z=ne.bind(null,P);return z.type=P,z},he.createRef=function(){return{current:null}},he.forwardRef=function(P){return{$$typeof:h,render:P}},he.isValidElement=re,he.lazy=function(P){return{$$typeof:x,_payload:{_status:-1,_result:P},_init:le}},he.memo=function(P,z){return{$$typeof:v,type:P,compare:z===void 0?null:z}},he.startTransition=function(P){var z=M.transition;M.transition={};try{P()}finally{M.transition=z}},he.unstable_act=K,he.useCallback=function(P,z){return ie.current.useCallback(P,z)},he.useContext=function(P){return ie.current.useContext(P)},he.useDebugValue=function(){},he.useDeferredValue=function(P){return ie.current.useDeferredValue(P)},he.useEffect=function(P,z){return ie.current.useEffect(P,z)},he.useId=function(){return ie.current.useId()},he.useImperativeHandle=function(P,z,ue){return ie.current.useImperativeHandle(P,z,ue)},he.useInsertionEffect=function(P,z){return ie.current.useInsertionEffect(P,z)},he.useLayoutEffect=function(P,z){return ie.current.useLayoutEffect(P,z)},he.useMemo=function(P,z){return ie.current.useMemo(P,z)},he.useReducer=function(P,z,ue){return ie.current.useReducer(P,z,ue)},he.useRef=function(P){return ie.current.useRef(P)},he.useState=function(P){return ie.current.useState(P)},he.useSyncExternalStore=function(P,z,ue){return ie.current.useSyncExternalStore(P,z,ue)},he.useTransition=function(){return ie.current.useTransition()},he.version="18.3.1",he}var ff;function ti(){return ff||(ff=1,ua.exports=av()),ua.exports}var pf;function uv(){if(pf)return xo;pf=1;var n=ti(),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(h,g,v){var x,b={},S=null,j=null;v!==void 0&&(S=""+v),g.key!==void 0&&(S=""+g.key),g.ref!==void 0&&(j=g.ref);for(x in g)l.call(g,x)&&!f.hasOwnProperty(x)&&(b[x]=g[x]);if(h&&h.defaultProps)for(x in g=h.defaultProps,g)b[x]===void 0&&(b[x]=g[x]);return{$$typeof:o,type:h,key:S,ref:j,props:b,_owner:u.current}}return xo.Fragment=s,xo.jsx=p,xo.jsxs=p,xo}var hf;function cv(){return hf||(hf=1,aa.exports=uv()),aa.exports}var d=cv(),Us={},ca={exports:{}},st={},da={exports:{}},fa={};var mf;function dv(){return mf||(mf=1,(function(n){function o(M,q){var K=M.length;M.push(q);e:for(;0<K;){var P=K-1>>>1,z=M[P];if(0<u(z,q))M[P]=q,M[K]=z,K=P;else break e}}function s(M){return M.length===0?null:M[0]}function l(M){if(M.length===0)return null;var q=M[0],K=M.pop();if(K!==q){M[0]=K;e:for(var P=0,z=M.length,ue=z>>>1;P<ue;){var de=2*(P+1)-1,ge=M[de],ve=de+1,xe=M[ve];if(0>u(ge,K))ve<z&&0>u(xe,ge)?(M[P]=xe,M[ve]=K,P=ve):(M[P]=ge,M[de]=K,P=de);else if(ve<z&&0>u(xe,K))M[P]=xe,M[ve]=K,P=ve;else break e}}return q}function u(M,q){var K=M.sortIndex-q.sortIndex;return K!==0?K:M.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();n.unstable_now=function(){return p.now()-h}}var g=[],v=[],x=1,b=null,S=3,j=!1,O=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(M){for(var q=s(v);q!==null;){if(q.callback===null)l(v);else if(q.startTime<=M)l(v),q.sortIndex=q.expirationTime,o(g,q);else break;q=s(v)}}function D(M){if(k=!1,L(M),!O)if(s(g)!==null)O=!0,le(Q);else{var q=s(v);q!==null&&ie(D,q.startTime-M)}}function Q(M,q){O=!1,k&&(k=!1,R(ne),ne=-1),j=!0;var K=S;try{for(L(q),b=s(g);b!==null&&(!(b.expirationTime>q)||M&&!pe());){var P=b.callback;if(typeof P=="function"){b.callback=null,S=b.priorityLevel;var z=P(b.expirationTime<=q);q=n.unstable_now(),typeof z=="function"?b.callback=z:b===s(g)&&l(g),L(q)}else l(g);b=s(g)}if(b!==null)var ue=!0;else{var de=s(v);de!==null&&ie(D,de.startTime-q),ue=!1}return ue}finally{b=null,S=K,j=!1}}var W=!1,V=null,ne=-1,F=5,re=-1;function pe(){return!(n.unstable_now()-re<F)}function ee(){if(V!==null){var M=n.unstable_now();re=M;var q=!0;try{q=V(!0,M)}finally{q?ce():(W=!1,V=null)}}else W=!1}var ce;if(typeof I=="function")ce=function(){I(ee)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,me=G.port2;G.port1.onmessage=ee,ce=function(){me.postMessage(null)}}else ce=function(){N(ee,0)};function le(M){V=M,W||(W=!0,ce())}function ie(M,q){ne=N(function(){M(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_continueExecution=function(){O||j||(O=!0,le(Q))},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return s(g)},n.unstable_next=function(M){switch(S){case 1:case 2:case 3:var q=3;break;default:q=S}var K=S;S=q;try{return M()}finally{S=K}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(M,q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var K=S;S=M;try{return q()}finally{S=K}},n.unstable_scheduleCallback=function(M,q,K){var P=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?P+K:P):K=P,M){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=K+z,M={id:x++,callback:q,priorityLevel:M,startTime:K,expirationTime:z,sortIndex:-1},K>P?(M.sortIndex=K,o(v,M),s(g)===null&&M===s(v)&&(k?(R(ne),ne=-1):k=!0,ie(D,K-P))):(M.sortIndex=z,o(g,M),O||j||(O=!0,le(Q))),M},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(M){var q=S;return function(){var K=S;S=q;try{return M.apply(this,arguments)}finally{S=K}}}})(fa)),fa}var gf;function fv(){return gf||(gf=1,da.exports=dv()),da.exports}var vf;function pv(){if(vf)return st;vf=1;var n=ti(),o=fv();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function f(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},b={};function S(e){return g.call(b,e)?!0:g.call(x,e)?!1:v.test(e)?b[e]=!0:(x[e]=!0,!1)}function j(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function O(e,t,r,i){if(t===null||typeof t>"u"||j(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function k(e,t,r,i,a,c,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=m}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R,I);N[t]=new k(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R,I);N[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R,I);N[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function L(e,t,r,i){var a=N.hasOwnProperty(t)?N[t]:null;(a!==null?a.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(O(t,r,a,i)&&(r=null),i||a===null?S(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,i=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,i?e.setAttributeNS(i,t,r):e.setAttribute(t,r))))}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Q=Symbol.for("react.element"),W=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),pe=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),M=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=M&&e[M]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,P;function z(e){if(P===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
2
+ `+P+e}var ue=!1;function de(e,t){if(!e||ue)return"";ue=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(A){var i=A}Reflect.construct(e,[],t)}else{try{t.call()}catch(A){i=A}e.call(t.prototype)}else{try{throw Error()}catch(A){i=A}e()}}catch(A){if(A&&i&&typeof A.stack=="string"){for(var a=A.stack.split(`
3
+ `),c=i.stack.split(`
4
+ `),m=a.length-1,w=c.length-1;1<=m&&0<=w&&a[m]!==c[w];)w--;for(;1<=m&&0<=w;m--,w--)if(a[m]!==c[w]){if(m!==1||w!==1)do if(m--,w--,0>w||a[m]!==c[w]){var C=`
5
+ `+a[m].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=m&&0<=w);break}}}finally{ue=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function ge(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function ve(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case W:return"Portal";case F:return"Profiler";case ne:return"StrictMode";case ce:return"Suspense";case G:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pe:return(e.displayName||"Context")+".Consumer";case re:return(e._context.displayName||"Context")+".Provider";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case me:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function xe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(t);case 8:return t===ne?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function we(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xe(e){var t=Ce(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(m){i=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zn(e){e._valueTracker||(e._valueTracker=Xe(e))}function _o(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=Ce(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function Ht(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mi(e,t){var r=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function vu(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=we(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yu(e,t){t=t.checked,t!=null&&L(e,"checked",t,!1)}function gi(e,t){yu(e,t);var r=we(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vi(e,t.type,r):t.hasOwnProperty("defaultValue")&&vi(e,t.type,we(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function vi(e,t,r){(t!=="number"||Ht(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ar=Array.isArray;function Jn(e,t,r,i){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&i&&(e[r].defaultSelected=!0)}else{for(r=""+we(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function yi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wu(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(s(92));if(Ar(r)){if(1<r.length)throw Error(s(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:we(r)}}function bu(e,t){var r=we(t.value),i=we(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function Su(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ao,ku=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,i,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,i,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ao=Ao||document.createElement("div"),Ao.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ao.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Mr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dm=["Webkit","ms","Moz","O"];Object.keys(Mr).forEach(function(e){dm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mr[t]=Mr[e]})});function Eu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Mr.hasOwnProperty(e)&&Mr[e]?(""+t).trim():t+"px"}function Nu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,a=Eu(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,a):e[r]=a}}var fm=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wi(e,t){if(t){if(fm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function bi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Si=null;function Ci(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ki=null,er=null,tr=null;function Pu(e){if(e=ro(e)){if(typeof ki!="function")throw Error(s(280));var t=e.stateNode;t&&(t=ns(t),ki(e.stateNode,e.type,t))}}function ju(e){er?tr?tr.push(e):tr=[e]:er=e}function Ru(){if(er){var e=er,t=tr;if(tr=er=null,Pu(e),t)for(e=0;e<t.length;e++)Pu(t[e])}}function Tu(e,t){return e(t)}function Ou(){}var Ei=!1;function _u(e,t,r){if(Ei)return e(t,r);Ei=!0;try{return Tu(e,t,r)}finally{Ei=!1,(er!==null||tr!==null)&&(Ou(),Ru())}}function Lr(e,t){var r=e.stateNode;if(r===null)return null;var i=ns(r);if(i===null)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var Ni=!1;if(h)try{var Dr={};Object.defineProperty(Dr,"passive",{get:function(){Ni=!0}}),window.addEventListener("test",Dr,Dr),window.removeEventListener("test",Dr,Dr)}catch{Ni=!1}function pm(e,t,r,i,a,c,m,w,C){var A=Array.prototype.slice.call(arguments,3);try{t.apply(r,A)}catch(U){this.onError(U)}}var Fr=!1,Io=null,Mo=!1,Pi=null,hm={onError:function(e){Fr=!0,Io=e}};function mm(e,t,r,i,a,c,m,w,C){Fr=!1,Io=null,pm.apply(hm,arguments)}function gm(e,t,r,i,a,c,m,w,C){if(mm.apply(this,arguments),Fr){if(Fr){var A=Io;Fr=!1,Io=null}else throw Error(s(198));Mo||(Mo=!0,Pi=A)}}function Tn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Au(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Iu(e){if(Tn(e)!==e)throw Error(s(188))}function vm(e){var t=e.alternate;if(!t){if(t=Tn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,i=t;;){var a=r.return;if(a===null)break;var c=a.alternate;if(c===null){if(i=a.return,i!==null){r=i;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===r)return Iu(a),e;if(c===i)return Iu(a),t;c=c.sibling}throw Error(s(188))}if(r.return!==i.return)r=a,i=c;else{for(var m=!1,w=a.child;w;){if(w===r){m=!0,r=a,i=c;break}if(w===i){m=!0,i=a,r=c;break}w=w.sibling}if(!m){for(w=c.child;w;){if(w===r){m=!0,r=c,i=a;break}if(w===i){m=!0,i=c,r=a;break}w=w.sibling}if(!m)throw Error(s(189))}}if(r.alternate!==i)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function Mu(e){return e=vm(e),e!==null?Lu(e):null}function Lu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Lu(e);if(t!==null)return t;e=e.sibling}return null}var Du=o.unstable_scheduleCallback,Fu=o.unstable_cancelCallback,ym=o.unstable_shouldYield,xm=o.unstable_requestPaint,_e=o.unstable_now,wm=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,zu=o.unstable_UserBlockingPriority,Lo=o.unstable_NormalPriority,bm=o.unstable_LowPriority,$u=o.unstable_IdlePriority,Do=null,At=null;function Sm(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Do,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:Em,Cm=Math.log,km=Math.LN2;function Em(e){return e>>>=0,e===0?32:31-(Cm(e)/km|0)|0}var Fo=64,zo=4194304;function zr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $o(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,c=e.pingedLanes,m=r&268435455;if(m!==0){var w=m&~a;w!==0?i=zr(w):(c&=m,c!==0&&(i=zr(c)))}else m=r&~a,m!==0?i=zr(m):c!==0&&(i=zr(c));if(i===0)return 0;if(t!==0&&t!==i&&(t&a)===0&&(a=i&-i,c=t&-t,a>=c||a===16&&(c&4194240)!==0))return t;if((i&4)!==0&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)r=31-St(t),a=1<<r,i|=e[r],t&=~a;return i}function Nm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pm(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes;0<c;){var m=31-St(c),w=1<<m,C=a[m];C===-1?((w&r)===0||(w&i)!==0)&&(a[m]=Nm(w,t)):C<=t&&(e.expiredLanes|=w),c&=~w}}function Ri(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Uu(){var e=Fo;return Fo<<=1,(Fo&4194240)===0&&(Fo=64),e}function Ti(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function $r(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=r}function jm(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-St(r),c=1<<a;t[a]=0,i[a]=-1,e[a]=-1,r&=~c}}function Oi(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-St(r),a=1<<i;a&t|e[i]&t&&(e[i]|=t),r&=~a}}var Se=0;function Hu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Bu,_i,Wu,Vu,Qu,Ai=!1,Uo=[],tn=null,nn=null,rn=null,Ur=new Map,Hr=new Map,on=[],Rm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ku(e,t){switch(e){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":Ur.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hr.delete(t.pointerId)}}function Br(e,t,r,i,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:c,targetContainers:[a]},t!==null&&(t=ro(t),t!==null&&_i(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Tm(e,t,r,i,a){switch(t){case"focusin":return tn=Br(tn,e,t,r,i,a),!0;case"dragenter":return nn=Br(nn,e,t,r,i,a),!0;case"mouseover":return rn=Br(rn,e,t,r,i,a),!0;case"pointerover":var c=a.pointerId;return Ur.set(c,Br(Ur.get(c)||null,e,t,r,i,a)),!0;case"gotpointercapture":return c=a.pointerId,Hr.set(c,Br(Hr.get(c)||null,e,t,r,i,a)),!0}return!1}function qu(e){var t=On(e.target);if(t!==null){var r=Tn(t);if(r!==null){if(t=r.tag,t===13){if(t=Au(r),t!==null){e.blockedOn=t,Qu(e.priority,function(){Wu(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ho(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Mi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Si=i,r.target.dispatchEvent(i),Si=null}else return t=ro(r),t!==null&&_i(t),e.blockedOn=r,!1;t.shift()}return!0}function Gu(e,t,r){Ho(e)&&r.delete(t)}function Om(){Ai=!1,tn!==null&&Ho(tn)&&(tn=null),nn!==null&&Ho(nn)&&(nn=null),rn!==null&&Ho(rn)&&(rn=null),Ur.forEach(Gu),Hr.forEach(Gu)}function Wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ai||(Ai=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Om)))}function Vr(e){function t(a){return Wr(a,e)}if(0<Uo.length){Wr(Uo[0],e);for(var r=1;r<Uo.length;r++){var i=Uo[r];i.blockedOn===e&&(i.blockedOn=null)}}for(tn!==null&&Wr(tn,e),nn!==null&&Wr(nn,e),rn!==null&&Wr(rn,e),Ur.forEach(t),Hr.forEach(t),r=0;r<on.length;r++)i=on[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<on.length&&(r=on[0],r.blockedOn===null);)qu(r),r.blockedOn===null&&on.shift()}var nr=D.ReactCurrentBatchConfig,Bo=!0;function _m(e,t,r,i){var a=Se,c=nr.transition;nr.transition=null;try{Se=1,Ii(e,t,r,i)}finally{Se=a,nr.transition=c}}function Am(e,t,r,i){var a=Se,c=nr.transition;nr.transition=null;try{Se=4,Ii(e,t,r,i)}finally{Se=a,nr.transition=c}}function Ii(e,t,r,i){if(Bo){var a=Mi(e,t,r,i);if(a===null)Zi(e,t,i,Wo,r),Ku(e,i);else if(Tm(a,e,t,r,i))i.stopPropagation();else if(Ku(e,i),t&4&&-1<Rm.indexOf(e)){for(;a!==null;){var c=ro(a);if(c!==null&&Bu(c),c=Mi(e,t,r,i),c===null&&Zi(e,t,i,Wo,r),c===a)break;a=c}a!==null&&i.stopPropagation()}else Zi(e,t,i,null,r)}}var Wo=null;function Mi(e,t,r,i){if(Wo=null,e=Ci(i),e=On(e),e!==null)if(t=Tn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Au(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wo=e,null}function Xu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wm()){case ji:return 1;case zu:return 4;case Lo:case bm:return 16;case $u:return 536870912;default:return 16}default:return 16}}var sn=null,Li=null,Vo=null;function Yu(){if(Vo)return Vo;var e,t=Li,r=t.length,i,a="value"in sn?sn.value:sn.textContent,c=a.length;for(e=0;e<r&&t[e]===a[e];e++);var m=r-e;for(i=1;i<=m&&t[r-i]===a[c-i];i++);return Vo=a.slice(e,1<i?1-i:void 0)}function Qo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ko(){return!0}function Zu(){return!1}function it(e){function t(r,i,a,c,m){this._reactName=r,this._targetInst=a,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ko:Zu,this.isPropagationStopped=Zu,this}return K(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ko)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ko)},persist:function(){},isPersistent:Ko}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=it(rr),Qr=K({},rr,{view:0,detail:0}),Im=it(Qr),Fi,zi,Kr,qo=K({},Qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ui,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kr&&(Kr&&e.type==="mousemove"?(Fi=e.screenX-Kr.screenX,zi=e.screenY-Kr.screenY):zi=Fi=0,Kr=e),Fi)},movementY:function(e){return"movementY"in e?e.movementY:zi}}),Ju=it(qo),Mm=K({},qo,{dataTransfer:0}),Lm=it(Mm),Dm=K({},Qr,{relatedTarget:0}),$i=it(Dm),Fm=K({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),zm=it(Fm),$m=K({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Um=it($m),Hm=K({},rr,{data:0}),ec=it(Hm),Bm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Vm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vm[e])?!!t[e]:!1}function Ui(){return Qm}var Km=K({},Qr,{key:function(e){if(e.key){var t=Bm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ui,charCode:function(e){return e.type==="keypress"?Qo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qm=it(Km),Gm=K({},qo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tc=it(Gm),Xm=K({},Qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ui}),Ym=it(Xm),Zm=K({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=it(Zm),eg=K({},qo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tg=it(eg),ng=[9,13,27,32],Hi=h&&"CompositionEvent"in window,qr=null;h&&"documentMode"in document&&(qr=document.documentMode);var rg=h&&"TextEvent"in window&&!qr,nc=h&&(!Hi||qr&&8<qr&&11>=qr),rc=" ",oc=!1;function sc(e,t){switch(e){case"keyup":return ng.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ic(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var or=!1;function og(e,t){switch(e){case"compositionend":return ic(t);case"keypress":return t.which!==32?null:(oc=!0,rc);case"textInput":return e=t.data,e===rc&&oc?null:e;default:return null}}function sg(e,t){if(or)return e==="compositionend"||!Hi&&sc(e,t)?(e=Yu(),Vo=Li=sn=null,or=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nc&&t.locale!=="ko"?null:t.data;default:return null}}var ig={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ig[e.type]:t==="textarea"}function ac(e,t,r,i){ju(i),t=Jo(t,"onChange"),0<t.length&&(r=new Di("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Gr=null,Xr=null;function lg(e){Nc(e,0)}function Go(e){var t=ur(e);if(_o(t))return e}function ag(e,t){if(e==="change")return t}var uc=!1;if(h){var Bi;if(h){var Wi="oninput"in document;if(!Wi){var cc=document.createElement("div");cc.setAttribute("oninput","return;"),Wi=typeof cc.oninput=="function"}Bi=Wi}else Bi=!1;uc=Bi&&(!document.documentMode||9<document.documentMode)}function dc(){Gr&&(Gr.detachEvent("onpropertychange",fc),Xr=Gr=null)}function fc(e){if(e.propertyName==="value"&&Go(Xr)){var t=[];ac(t,Xr,e,Ci(e)),_u(lg,t)}}function ug(e,t,r){e==="focusin"?(dc(),Gr=t,Xr=r,Gr.attachEvent("onpropertychange",fc)):e==="focusout"&&dc()}function cg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Go(Xr)}function dg(e,t){if(e==="click")return Go(t)}function fg(e,t){if(e==="input"||e==="change")return Go(t)}function pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:pg;function Yr(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var a=r[i];if(!g.call(t,a)||!Ct(e[a],t[a]))return!1}return!0}function pc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hc(e,t){var r=pc(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pc(r)}}function mc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gc(){for(var e=window,t=Ht();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ht(e.document)}return t}function Vi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hg(e){var t=gc(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&mc(r.ownerDocument.documentElement,r)){if(i!==null&&Vi(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,c=Math.min(i.start,a);i=i.end===void 0?c:Math.min(i.end,a),!e.extend&&c>i&&(a=i,i=c,c=a),a=hc(r,c);var m=hc(r,i);a&&m&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),c>i?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mg=h&&"documentMode"in document&&11>=document.documentMode,sr=null,Qi=null,Zr=null,Ki=!1;function vc(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ki||sr==null||sr!==Ht(i)||(i=sr,"selectionStart"in i&&Vi(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Zr&&Yr(Zr,i)||(Zr=i,i=Jo(Qi,"onSelect"),0<i.length&&(t=new Di("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=sr)))}function Xo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ir={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionend:Xo("Transition","TransitionEnd")},qi={},yc={};h&&(yc=document.createElement("div").style,"AnimationEvent"in window||(delete ir.animationend.animation,delete ir.animationiteration.animation,delete ir.animationstart.animation),"TransitionEvent"in window||delete ir.transitionend.transition);function Yo(e){if(qi[e])return qi[e];if(!ir[e])return e;var t=ir[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in yc)return qi[e]=t[r];return e}var xc=Yo("animationend"),wc=Yo("animationiteration"),bc=Yo("animationstart"),Sc=Yo("transitionend"),Cc=new Map,kc="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".split(" ");function ln(e,t){Cc.set(e,t),f(t,[e])}for(var Gi=0;Gi<kc.length;Gi++){var Xi=kc[Gi],gg=Xi.toLowerCase(),vg=Xi[0].toUpperCase()+Xi.slice(1);ln(gg,"on"+vg)}ln(xc,"onAnimationEnd"),ln(wc,"onAnimationIteration"),ln(bc,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Sc,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jr));function Ec(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,gm(i,t,void 0,e),e.currentTarget=null}function Nc(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],a=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var m=i.length-1;0<=m;m--){var w=i[m],C=w.instance,A=w.currentTarget;if(w=w.listener,C!==c&&a.isPropagationStopped())break e;Ec(a,w,A),c=C}else for(m=0;m<i.length;m++){if(w=i[m],C=w.instance,A=w.currentTarget,w=w.listener,C!==c&&a.isPropagationStopped())break e;Ec(a,w,A),c=C}}}if(Mo)throw e=Pi,Mo=!1,Pi=null,e}function Ee(e,t){var r=t[ol];r===void 0&&(r=t[ol]=new Set);var i=e+"__bubble";r.has(i)||(Pc(t,e,2,!1),r.add(i))}function Yi(e,t,r){var i=0;t&&(i|=4),Pc(r,e,i,t)}var Zo="_reactListening"+Math.random().toString(36).slice(2);function eo(e){if(!e[Zo]){e[Zo]=!0,l.forEach(function(r){r!=="selectionchange"&&(yg.has(r)||Yi(r,!1,e),Yi(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zo]||(t[Zo]=!0,Yi("selectionchange",!1,t))}}function Pc(e,t,r,i){switch(Xu(t)){case 1:var a=_m;break;case 4:a=Am;break;default:a=Ii}r=a.bind(null,t,r,e),a=void 0,!Ni||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Zi(e,t,r,i,a){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var w=i.stateNode.containerInfo;if(w===a||w.nodeType===8&&w.parentNode===a)break;if(m===4)for(m=i.return;m!==null;){var C=m.tag;if((C===3||C===4)&&(C=m.stateNode.containerInfo,C===a||C.nodeType===8&&C.parentNode===a))return;m=m.return}for(;w!==null;){if(m=On(w),m===null)return;if(C=m.tag,C===5||C===6){i=c=m;continue e}w=w.parentNode}}i=i.return}_u(function(){var A=c,U=Ci(r),H=[];e:{var $=Cc.get(e);if($!==void 0){var X=Di,Z=e;switch(e){case"keypress":if(Qo(r)===0)break e;case"keydown":case"keyup":X=qm;break;case"focusin":Z="focus",X=$i;break;case"focusout":Z="blur",X=$i;break;case"beforeblur":case"afterblur":X=$i;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Ju;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Ym;break;case xc:case wc:case bc:X=zm;break;case Sc:X=Jm;break;case"scroll":X=Im;break;case"wheel":X=tg;break;case"copy":case"cut":case"paste":X=Um;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=tc}var J=(t&4)!==0,Ae=!J&&e==="scroll",T=J?$!==null?$+"Capture":null:$;J=[];for(var E=A,_;E!==null;){_=E;var B=_.stateNode;if(_.tag===5&&B!==null&&(_=B,T!==null&&(B=Lr(E,T),B!=null&&J.push(to(E,B,_)))),Ae)break;E=E.return}0<J.length&&($=new X($,Z,null,r,U),H.push({event:$,listeners:J}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",$&&r!==Si&&(Z=r.relatedTarget||r.fromElement)&&(On(Z)||Z[Bt]))break e;if((X||$)&&($=U.window===U?U:($=U.ownerDocument)?$.defaultView||$.parentWindow:window,X?(Z=r.relatedTarget||r.toElement,X=A,Z=Z?On(Z):null,Z!==null&&(Ae=Tn(Z),Z!==Ae||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(X=null,Z=A),X!==Z)){if(J=Ju,B="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(J=tc,B="onPointerLeave",T="onPointerEnter",E="pointer"),Ae=X==null?$:ur(X),_=Z==null?$:ur(Z),$=new J(B,E+"leave",X,r,U),$.target=Ae,$.relatedTarget=_,B=null,On(U)===A&&(J=new J(T,E+"enter",Z,r,U),J.target=_,J.relatedTarget=Ae,B=J),Ae=B,X&&Z)t:{for(J=X,T=Z,E=0,_=J;_;_=lr(_))E++;for(_=0,B=T;B;B=lr(B))_++;for(;0<E-_;)J=lr(J),E--;for(;0<_-E;)T=lr(T),_--;for(;E--;){if(J===T||T!==null&&J===T.alternate)break t;J=lr(J),T=lr(T)}J=null}else J=null;X!==null&&jc(H,$,X,J,!1),Z!==null&&Ae!==null&&jc(H,Ae,Z,J,!0)}}e:{if($=A?ur(A):window,X=$.nodeName&&$.nodeName.toLowerCase(),X==="select"||X==="input"&&$.type==="file")var te=ag;else if(lc($))if(uc)te=fg;else{te=cg;var oe=ug}else(X=$.nodeName)&&X.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(te=dg);if(te&&(te=te(e,A))){ac(H,te,r,U);break e}oe&&oe(e,$,A),e==="focusout"&&(oe=$._wrapperState)&&oe.controlled&&$.type==="number"&&vi($,"number",$.value)}switch(oe=A?ur(A):window,e){case"focusin":(lc(oe)||oe.contentEditable==="true")&&(sr=oe,Qi=A,Zr=null);break;case"focusout":Zr=Qi=sr=null;break;case"mousedown":Ki=!0;break;case"contextmenu":case"mouseup":case"dragend":Ki=!1,vc(H,r,U);break;case"selectionchange":if(mg)break;case"keydown":case"keyup":vc(H,r,U)}var se;if(Hi)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else or?sc(e,r)&&(ae="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ae="onCompositionStart");ae&&(nc&&r.locale!=="ko"&&(or||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&or&&(se=Yu()):(sn=U,Li="value"in sn?sn.value:sn.textContent,or=!0)),oe=Jo(A,ae),0<oe.length&&(ae=new ec(ae,e,null,r,U),H.push({event:ae,listeners:oe}),se?ae.data=se:(se=ic(r),se!==null&&(ae.data=se)))),(se=rg?og(e,r):sg(e,r))&&(A=Jo(A,"onBeforeInput"),0<A.length&&(U=new ec("onBeforeInput","beforeinput",null,r,U),H.push({event:U,listeners:A}),U.data=se))}Nc(H,t)})}function to(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Jo(e,t){for(var r=t+"Capture",i=[];e!==null;){var a=e,c=a.stateNode;a.tag===5&&c!==null&&(a=c,c=Lr(e,r),c!=null&&i.unshift(to(e,c,a)),c=Lr(e,t),c!=null&&i.push(to(e,c,a))),e=e.return}return i}function lr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function jc(e,t,r,i,a){for(var c=t._reactName,m=[];r!==null&&r!==i;){var w=r,C=w.alternate,A=w.stateNode;if(C!==null&&C===i)break;w.tag===5&&A!==null&&(w=A,a?(C=Lr(r,c),C!=null&&m.unshift(to(r,C,w))):a||(C=Lr(r,c),C!=null&&m.push(to(r,C,w)))),r=r.return}m.length!==0&&e.push({event:t,listeners:m})}var xg=/\r\n?/g,wg=/\u0000|\uFFFD/g;function Rc(e){return(typeof e=="string"?e:""+e).replace(xg,`
6
+ `).replace(wg,"")}function es(e,t,r){if(t=Rc(t),Rc(e)!==t&&r)throw Error(s(425))}function ts(){}var Ji=null,el=null;function tl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nl=typeof setTimeout=="function"?setTimeout:void 0,bg=typeof clearTimeout=="function"?clearTimeout:void 0,Tc=typeof Promise=="function"?Promise:void 0,Sg=typeof queueMicrotask=="function"?queueMicrotask:typeof Tc<"u"?function(e){return Tc.resolve(null).then(e).catch(Cg)}:nl;function Cg(e){setTimeout(function(){throw e})}function rl(e,t){var r=t,i=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(i===0){e.removeChild(a),Vr(t);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=a}while(r);Vr(t)}function an(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Oc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ar=Math.random().toString(36).slice(2),It="__reactFiber$"+ar,no="__reactProps$"+ar,Bt="__reactContainer$"+ar,ol="__reactEvents$"+ar,kg="__reactListeners$"+ar,Eg="__reactHandles$"+ar;function On(e){var t=e[It];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Bt]||r[It]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Oc(e);e!==null;){if(r=e[It])return r;e=Oc(e)}return t}e=r,r=e.parentNode}return null}function ro(e){return e=e[It]||e[Bt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ur(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function ns(e){return e[no]||null}var sl=[],cr=-1;function un(e){return{current:e}}function Ne(e){0>cr||(e.current=sl[cr],sl[cr]=null,cr--)}function ke(e,t){cr++,sl[cr]=e.current,e.current=t}var cn={},Qe=un(cn),et=un(!1),_n=cn;function dr(e,t){var r=e.type.contextTypes;if(!r)return cn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in r)a[c]=t[c];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function tt(e){return e=e.childContextTypes,e!=null}function rs(){Ne(et),Ne(Qe)}function _c(e,t,r){if(Qe.current!==cn)throw Error(s(168));ke(Qe,t),ke(et,r)}function Ac(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var a in i)if(!(a in t))throw Error(s(108,xe(e)||"Unknown",a));return K({},r,i)}function os(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,_n=Qe.current,ke(Qe,e),ke(et,et.current),!0}function Ic(e,t,r){var i=e.stateNode;if(!i)throw Error(s(169));r?(e=Ac(e,t,_n),i.__reactInternalMemoizedMergedChildContext=e,Ne(et),Ne(Qe),ke(Qe,e)):Ne(et),ke(et,r)}var Wt=null,ss=!1,il=!1;function Mc(e){Wt===null?Wt=[e]:Wt.push(e)}function Ng(e){ss=!0,Mc(e)}function dn(){if(!il&&Wt!==null){il=!0;var e=0,t=Se;try{var r=Wt;for(Se=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}Wt=null,ss=!1}catch(a){throw Wt!==null&&(Wt=Wt.slice(e+1)),Du(ji,dn),a}finally{Se=t,il=!1}}return null}var fr=[],pr=0,is=null,ls=0,pt=[],ht=0,An=null,Vt=1,Qt="";function In(e,t){fr[pr++]=ls,fr[pr++]=is,is=e,ls=t}function Lc(e,t,r){pt[ht++]=Vt,pt[ht++]=Qt,pt[ht++]=An,An=e;var i=Vt;e=Qt;var a=32-St(i)-1;i&=~(1<<a),r+=1;var c=32-St(t)+a;if(30<c){var m=a-a%5;c=(i&(1<<m)-1).toString(32),i>>=m,a-=m,Vt=1<<32-St(t)+a|r<<a|i,Qt=c+e}else Vt=1<<c|r<<a|i,Qt=e}function ll(e){e.return!==null&&(In(e,1),Lc(e,1,0))}function al(e){for(;e===is;)is=fr[--pr],fr[pr]=null,ls=fr[--pr],fr[pr]=null;for(;e===An;)An=pt[--ht],pt[ht]=null,Qt=pt[--ht],pt[ht]=null,Vt=pt[--ht],pt[ht]=null}var lt=null,at=null,je=!1,kt=null;function Dc(e,t){var r=yt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Fc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lt=e,at=an(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=An!==null?{id:Vt,overflow:Qt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=yt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,lt=e,at=null,!0):!1;default:return!1}}function ul(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cl(e){if(je){var t=at;if(t){var r=t;if(!Fc(e,t)){if(ul(e))throw Error(s(418));t=an(r.nextSibling);var i=lt;t&&Fc(e,t)?Dc(i,r):(e.flags=e.flags&-4097|2,je=!1,lt=e)}}else{if(ul(e))throw Error(s(418));e.flags=e.flags&-4097|2,je=!1,lt=e}}}function zc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function as(e){if(e!==lt)return!1;if(!je)return zc(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tl(e.type,e.memoizedProps)),t&&(t=at)){if(ul(e))throw $c(),Error(s(418));for(;t;)Dc(e,t),t=an(t.nextSibling)}if(zc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){at=an(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}at=null}}else at=lt?an(e.stateNode.nextSibling):null;return!0}function $c(){for(var e=at;e;)e=an(e.nextSibling)}function hr(){at=lt=null,je=!1}function dl(e){kt===null?kt=[e]:kt.push(e)}var Pg=D.ReactCurrentBatchConfig;function oo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(s(309));var i=r.stateNode}if(!i)throw Error(s(147,e));var a=i,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(m){var w=a.refs;m===null?delete w[c]:w[c]=m},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function us(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Uc(e){var t=e._init;return t(e._payload)}function Hc(e){function t(T,E){if(e){var _=T.deletions;_===null?(T.deletions=[E],T.flags|=16):_.push(E)}}function r(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function i(T,E){for(T=new Map;E!==null;)E.key!==null?T.set(E.key,E):T.set(E.index,E),E=E.sibling;return T}function a(T,E){return T=xn(T,E),T.index=0,T.sibling=null,T}function c(T,E,_){return T.index=_,e?(_=T.alternate,_!==null?(_=_.index,_<E?(T.flags|=2,E):_):(T.flags|=2,E)):(T.flags|=1048576,E)}function m(T){return e&&T.alternate===null&&(T.flags|=2),T}function w(T,E,_,B){return E===null||E.tag!==6?(E=na(_,T.mode,B),E.return=T,E):(E=a(E,_),E.return=T,E)}function C(T,E,_,B){var te=_.type;return te===V?U(T,E,_.props.children,B,_.key):E!==null&&(E.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Uc(te)===E.type)?(B=a(E,_.props),B.ref=oo(T,E,_),B.return=T,B):(B=As(_.type,_.key,_.props,null,T.mode,B),B.ref=oo(T,E,_),B.return=T,B)}function A(T,E,_,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=ra(_,T.mode,B),E.return=T,E):(E=a(E,_.children||[]),E.return=T,E)}function U(T,E,_,B,te){return E===null||E.tag!==7?(E=Hn(_,T.mode,B,te),E.return=T,E):(E=a(E,_),E.return=T,E)}function H(T,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return E=na(""+E,T.mode,_),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Q:return _=As(E.type,E.key,E.props,null,T.mode,_),_.ref=oo(T,null,E),_.return=T,_;case W:return E=ra(E,T.mode,_),E.return=T,E;case le:var B=E._init;return H(T,B(E._payload),_)}if(Ar(E)||q(E))return E=Hn(E,T.mode,_,null),E.return=T,E;us(T,E)}return null}function $(T,E,_,B){var te=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return te!==null?null:w(T,E,""+_,B);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Q:return _.key===te?C(T,E,_,B):null;case W:return _.key===te?A(T,E,_,B):null;case le:return te=_._init,$(T,E,te(_._payload),B)}if(Ar(_)||q(_))return te!==null?null:U(T,E,_,B,null);us(T,_)}return null}function X(T,E,_,B,te){if(typeof B=="string"&&B!==""||typeof B=="number")return T=T.get(_)||null,w(E,T,""+B,te);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return T=T.get(B.key===null?_:B.key)||null,C(E,T,B,te);case W:return T=T.get(B.key===null?_:B.key)||null,A(E,T,B,te);case le:var oe=B._init;return X(T,E,_,oe(B._payload),te)}if(Ar(B)||q(B))return T=T.get(_)||null,U(E,T,B,te,null);us(E,B)}return null}function Z(T,E,_,B){for(var te=null,oe=null,se=E,ae=E=0,He=null;se!==null&&ae<_.length;ae++){se.index>ae?(He=se,se=null):He=se.sibling;var be=$(T,se,_[ae],B);if(be===null){se===null&&(se=He);break}e&&se&&be.alternate===null&&t(T,se),E=c(be,E,ae),oe===null?te=be:oe.sibling=be,oe=be,se=He}if(ae===_.length)return r(T,se),je&&In(T,ae),te;if(se===null){for(;ae<_.length;ae++)se=H(T,_[ae],B),se!==null&&(E=c(se,E,ae),oe===null?te=se:oe.sibling=se,oe=se);return je&&In(T,ae),te}for(se=i(T,se);ae<_.length;ae++)He=X(se,T,ae,_[ae],B),He!==null&&(e&&He.alternate!==null&&se.delete(He.key===null?ae:He.key),E=c(He,E,ae),oe===null?te=He:oe.sibling=He,oe=He);return e&&se.forEach(function(wn){return t(T,wn)}),je&&In(T,ae),te}function J(T,E,_,B){var te=q(_);if(typeof te!="function")throw Error(s(150));if(_=te.call(_),_==null)throw Error(s(151));for(var oe=te=null,se=E,ae=E=0,He=null,be=_.next();se!==null&&!be.done;ae++,be=_.next()){se.index>ae?(He=se,se=null):He=se.sibling;var wn=$(T,se,be.value,B);if(wn===null){se===null&&(se=He);break}e&&se&&wn.alternate===null&&t(T,se),E=c(wn,E,ae),oe===null?te=wn:oe.sibling=wn,oe=wn,se=He}if(be.done)return r(T,se),je&&In(T,ae),te;if(se===null){for(;!be.done;ae++,be=_.next())be=H(T,be.value,B),be!==null&&(E=c(be,E,ae),oe===null?te=be:oe.sibling=be,oe=be);return je&&In(T,ae),te}for(se=i(T,se);!be.done;ae++,be=_.next())be=X(se,T,ae,be.value,B),be!==null&&(e&&be.alternate!==null&&se.delete(be.key===null?ae:be.key),E=c(be,E,ae),oe===null?te=be:oe.sibling=be,oe=be);return e&&se.forEach(function(iv){return t(T,iv)}),je&&In(T,ae),te}function Ae(T,E,_,B){if(typeof _=="object"&&_!==null&&_.type===V&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Q:e:{for(var te=_.key,oe=E;oe!==null;){if(oe.key===te){if(te=_.type,te===V){if(oe.tag===7){r(T,oe.sibling),E=a(oe,_.props.children),E.return=T,T=E;break e}}else if(oe.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Uc(te)===oe.type){r(T,oe.sibling),E=a(oe,_.props),E.ref=oo(T,oe,_),E.return=T,T=E;break e}r(T,oe);break}else t(T,oe);oe=oe.sibling}_.type===V?(E=Hn(_.props.children,T.mode,B,_.key),E.return=T,T=E):(B=As(_.type,_.key,_.props,null,T.mode,B),B.ref=oo(T,E,_),B.return=T,T=B)}return m(T);case W:e:{for(oe=_.key;E!==null;){if(E.key===oe)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){r(T,E.sibling),E=a(E,_.children||[]),E.return=T,T=E;break e}else{r(T,E);break}else t(T,E);E=E.sibling}E=ra(_,T.mode,B),E.return=T,T=E}return m(T);case le:return oe=_._init,Ae(T,E,oe(_._payload),B)}if(Ar(_))return Z(T,E,_,B);if(q(_))return J(T,E,_,B);us(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,E!==null&&E.tag===6?(r(T,E.sibling),E=a(E,_),E.return=T,T=E):(r(T,E),E=na(_,T.mode,B),E.return=T,T=E),m(T)):r(T,E)}return Ae}var mr=Hc(!0),Bc=Hc(!1),cs=un(null),ds=null,gr=null,fl=null;function pl(){fl=gr=ds=null}function hl(e){var t=cs.current;Ne(cs),e._currentValue=t}function ml(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function vr(e,t){ds=e,fl=gr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(fl!==e)if(e={context:e,memoizedValue:t,next:null},gr===null){if(ds===null)throw Error(s(308));gr=e,ds.dependencies={lanes:0,firstContext:e}}else gr=gr.next=e;return t}var Mn=null;function gl(e){Mn===null?Mn=[e]:Mn.push(e)}function Wc(e,t,r,i){var a=t.interleaved;return a===null?(r.next=r,gl(t)):(r.next=a.next,a.next=r),t.interleaved=r,Kt(e,i)}function Kt(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var fn=!1;function vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ye&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,Kt(e,r)}return a=i.interleaved,a===null?(t.next=t,gl(i)):(t.next=a.next,a.next=t),i.interleaved=t,Kt(e,r)}function fs(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,Oi(e,r)}}function Qc(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var a=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var m={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};c===null?a=c=m:c=c.next=m,r=r.next}while(r!==null);c===null?a=c=t:c=c.next=t}else a=c=t;r={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ps(e,t,r,i){var a=e.updateQueue;fn=!1;var c=a.firstBaseUpdate,m=a.lastBaseUpdate,w=a.shared.pending;if(w!==null){a.shared.pending=null;var C=w,A=C.next;C.next=null,m===null?c=A:m.next=A,m=C;var U=e.alternate;U!==null&&(U=U.updateQueue,w=U.lastBaseUpdate,w!==m&&(w===null?U.firstBaseUpdate=A:w.next=A,U.lastBaseUpdate=C))}if(c!==null){var H=a.baseState;m=0,U=A=C=null,w=c;do{var $=w.lane,X=w.eventTime;if((i&$)===$){U!==null&&(U=U.next={eventTime:X,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var Z=e,J=w;switch($=t,X=r,J.tag){case 1:if(Z=J.payload,typeof Z=="function"){H=Z.call(X,H,$);break e}H=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=J.payload,$=typeof Z=="function"?Z.call(X,H,$):Z,$==null)break e;H=K({},H,$);break e;case 2:fn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,$=a.effects,$===null?a.effects=[w]:$.push(w))}else X={eventTime:X,lane:$,tag:w.tag,payload:w.payload,callback:w.callback,next:null},U===null?(A=U=X,C=H):U=U.next=X,m|=$;if(w=w.next,w===null){if(w=a.shared.pending,w===null)break;$=w,w=$.next,$.next=null,a.lastBaseUpdate=$,a.shared.pending=null}}while(!0);if(U===null&&(C=H),a.baseState=C,a.firstBaseUpdate=A,a.lastBaseUpdate=U,t=a.shared.interleaved,t!==null){a=t;do m|=a.lane,a=a.next;while(a!==t)}else c===null&&(a.shared.lanes=0);Fn|=m,e.lanes=m,e.memoizedState=H}}function Kc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=r,typeof a!="function")throw Error(s(191,a));a.call(i)}}}var so={},Mt=un(so),io=un(so),lo=un(so);function Ln(e){if(e===so)throw Error(s(174));return e}function yl(e,t){switch(ke(lo,t),ke(io,e),ke(Mt,so),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xi(t,e)}Ne(Mt),ke(Mt,t)}function yr(){Ne(Mt),Ne(io),Ne(lo)}function qc(e){Ln(lo.current);var t=Ln(Mt.current),r=xi(t,e.type);t!==r&&(ke(io,e),ke(Mt,r))}function xl(e){io.current===e&&(Ne(Mt),Ne(io))}var Re=un(0);function hs(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wl=[];function bl(){for(var e=0;e<wl.length;e++)wl[e]._workInProgressVersionPrimary=null;wl.length=0}var ms=D.ReactCurrentDispatcher,Sl=D.ReactCurrentBatchConfig,Dn=0,Te=null,De=null,$e=null,gs=!1,ao=!1,uo=0,jg=0;function Ke(){throw Error(s(321))}function Cl(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ct(e[r],t[r]))return!1;return!0}function kl(e,t,r,i,a,c){if(Dn=c,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ms.current=e===null||e.memoizedState===null?_g:Ag,e=r(i,a),ao){c=0;do{if(ao=!1,uo=0,25<=c)throw Error(s(301));c+=1,$e=De=null,t.updateQueue=null,ms.current=Ig,e=r(i,a)}while(ao)}if(ms.current=xs,t=De!==null&&De.next!==null,Dn=0,$e=De=Te=null,gs=!1,t)throw Error(s(300));return e}function El(){var e=uo!==0;return uo=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Te.memoizedState=$e=e:$e=$e.next=e,$e}function gt(){if(De===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=$e===null?Te.memoizedState:$e.next;if(t!==null)$e=t,De=e;else{if(e===null)throw Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},$e===null?Te.memoizedState=$e=e:$e=$e.next=e}return $e}function co(e,t){return typeof t=="function"?t(e):t}function Nl(e){var t=gt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var i=De,a=i.baseQueue,c=r.pending;if(c!==null){if(a!==null){var m=a.next;a.next=c.next,c.next=m}i.baseQueue=a=c,r.pending=null}if(a!==null){c=a.next,i=i.baseState;var w=m=null,C=null,A=c;do{var U=A.lane;if((Dn&U)===U)C!==null&&(C=C.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),i=A.hasEagerState?A.eagerState:e(i,A.action);else{var H={lane:U,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};C===null?(w=C=H,m=i):C=C.next=H,Te.lanes|=U,Fn|=U}A=A.next}while(A!==null&&A!==c);C===null?m=i:C.next=w,Ct(i,t.memoizedState)||(nt=!0),t.memoizedState=i,t.baseState=m,t.baseQueue=C,r.lastRenderedState=i}if(e=r.interleaved,e!==null){a=e;do c=a.lane,Te.lanes|=c,Fn|=c,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Pl(e){var t=gt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var i=r.dispatch,a=r.pending,c=t.memoizedState;if(a!==null){r.pending=null;var m=a=a.next;do c=e(c,m.action),m=m.next;while(m!==a);Ct(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function Gc(){}function Xc(e,t){var r=Te,i=gt(),a=t(),c=!Ct(i.memoizedState,a);if(c&&(i.memoizedState=a,nt=!0),i=i.queue,jl(Jc.bind(null,r,i,e),[e]),i.getSnapshot!==t||c||$e!==null&&$e.memoizedState.tag&1){if(r.flags|=2048,fo(9,Zc.bind(null,r,i,a,t),void 0,null),Ue===null)throw Error(s(349));(Dn&30)!==0||Yc(r,t,a)}return a}function Yc(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Zc(e,t,r,i){t.value=r,t.getSnapshot=i,ed(t)&&td(e)}function Jc(e,t,r){return r(function(){ed(t)&&td(e)})}function ed(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ct(e,r)}catch{return!0}}function td(e){var t=Kt(e,1);t!==null&&jt(t,e,1,-1)}function nd(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:co,lastRenderedState:e},t.queue=e,e=e.dispatch=Og.bind(null,Te,e),[t.memoizedState,e]}function fo(e,t,r,i){return e={tag:e,create:t,destroy:r,deps:i,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e)),e}function rd(){return gt().memoizedState}function vs(e,t,r,i){var a=Lt();Te.flags|=e,a.memoizedState=fo(1|t,r,void 0,i===void 0?null:i)}function ys(e,t,r,i){var a=gt();i=i===void 0?null:i;var c=void 0;if(De!==null){var m=De.memoizedState;if(c=m.destroy,i!==null&&Cl(i,m.deps)){a.memoizedState=fo(t,r,c,i);return}}Te.flags|=e,a.memoizedState=fo(1|t,r,c,i)}function od(e,t){return vs(8390656,8,e,t)}function jl(e,t){return ys(2048,8,e,t)}function sd(e,t){return ys(4,2,e,t)}function id(e,t){return ys(4,4,e,t)}function ld(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ad(e,t,r){return r=r!=null?r.concat([e]):null,ys(4,4,ld.bind(null,t,e),r)}function Rl(){}function ud(e,t){var r=gt();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&Cl(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function cd(e,t){var r=gt();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&Cl(t,i[1])?i[0]:(e=e(),r.memoizedState=[e,t],e)}function dd(e,t,r){return(Dn&21)===0?(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=r):(Ct(r,t)||(r=Uu(),Te.lanes|=r,Fn|=r,e.baseState=!0),t)}function Rg(e,t){var r=Se;Se=r!==0&&4>r?r:4,e(!0);var i=Sl.transition;Sl.transition={};try{e(!1),t()}finally{Se=r,Sl.transition=i}}function fd(){return gt().memoizedState}function Tg(e,t,r){var i=vn(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},pd(e))hd(t,r);else if(r=Wc(e,t,r,i),r!==null){var a=Ze();jt(r,e,i,a),md(r,t,i)}}function Og(e,t,r){var i=vn(e),a={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(pd(e))hd(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,w=c(m,r);if(a.hasEagerState=!0,a.eagerState=w,Ct(w,m)){var C=t.interleaved;C===null?(a.next=a,gl(t)):(a.next=C.next,C.next=a),t.interleaved=a;return}}catch{}r=Wc(e,t,a,i),r!==null&&(a=Ze(),jt(r,e,i,a),md(r,t,i))}}function pd(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function hd(e,t){ao=gs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function md(e,t,r){if((r&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,Oi(e,r)}}var xs={readContext:mt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},_g={readContext:mt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:od,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,vs(4194308,4,ld.bind(null,t,e),r)},useLayoutEffect:function(e,t){return vs(4194308,4,e,t)},useInsertionEffect:function(e,t){return vs(4,2,e,t)},useMemo:function(e,t){var r=Lt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=Lt();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Tg.bind(null,Te,e),[i.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:nd,useDebugValue:Rl,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=nd(!1),t=e[0];return e=Rg.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=Te,a=Lt();if(je){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ue===null)throw Error(s(349));(Dn&30)!==0||Yc(i,t,r)}a.memoizedState=r;var c={value:r,getSnapshot:t};return a.queue=c,od(Jc.bind(null,i,c,e),[e]),i.flags|=2048,fo(9,Zc.bind(null,i,c,r,t),void 0,null),r},useId:function(){var e=Lt(),t=Ue.identifierPrefix;if(je){var r=Qt,i=Vt;r=(i&~(1<<32-St(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=uo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=jg++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ag={readContext:mt,useCallback:ud,useContext:mt,useEffect:jl,useImperativeHandle:ad,useInsertionEffect:sd,useLayoutEffect:id,useMemo:cd,useReducer:Nl,useRef:rd,useState:function(){return Nl(co)},useDebugValue:Rl,useDeferredValue:function(e){var t=gt();return dd(t,De.memoizedState,e)},useTransition:function(){var e=Nl(co)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Gc,useSyncExternalStore:Xc,useId:fd,unstable_isNewReconciler:!1},Ig={readContext:mt,useCallback:ud,useContext:mt,useEffect:jl,useImperativeHandle:ad,useInsertionEffect:sd,useLayoutEffect:id,useMemo:cd,useReducer:Pl,useRef:rd,useState:function(){return Pl(co)},useDebugValue:Rl,useDeferredValue:function(e){var t=gt();return De===null?t.memoizedState=e:dd(t,De.memoizedState,e)},useTransition:function(){var e=Pl(co)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Gc,useSyncExternalStore:Xc,useId:fd,unstable_isNewReconciler:!1};function Et(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Tl(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:K({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ws={isMounted:function(e){return(e=e._reactInternals)?Tn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var i=Ze(),a=vn(e),c=qt(i,a);c.payload=t,r!=null&&(c.callback=r),t=pn(e,c,a),t!==null&&(jt(t,e,a,i),fs(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=Ze(),a=vn(e),c=qt(i,a);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=pn(e,c,a),t!==null&&(jt(t,e,a,i),fs(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ze(),i=vn(e),a=qt(r,i);a.tag=2,t!=null&&(a.callback=t),t=pn(e,a,i),t!==null&&(jt(t,e,i,r),fs(t,e,i))}};function gd(e,t,r,i,a,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,m):t.prototype&&t.prototype.isPureReactComponent?!Yr(r,i)||!Yr(a,c):!0}function vd(e,t,r){var i=!1,a=cn,c=t.contextType;return typeof c=="object"&&c!==null?c=mt(c):(a=tt(t)?_n:Qe.current,i=t.contextTypes,c=(i=i!=null)?dr(e,a):cn),t=new t(r,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ws,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=c),t}function yd(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&ws.enqueueReplaceState(t,t.state,null)}function Ol(e,t,r,i){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},vl(e);var c=t.contextType;typeof c=="object"&&c!==null?a.context=mt(c):(c=tt(t)?_n:Qe.current,a.context=dr(e,c)),a.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Tl(e,t,c,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ws.enqueueReplaceState(a,a.state,null),ps(e,r,a,i),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function xr(e,t){try{var r="",i=t;do r+=ge(i),i=i.return;while(i);var a=r}catch(c){a=`
7
+ Error generating stack: `+c.message+`
8
+ `+c.stack}return{value:e,source:t,stack:a,digest:null}}function _l(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Al(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Mg=typeof WeakMap=="function"?WeakMap:Map;function xd(e,t,r){r=qt(-1,r),r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){Ps||(Ps=!0,ql=i),Al(e,t)},r}function wd(e,t,r){r=qt(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var a=t.value;r.payload=function(){return i(a)},r.callback=function(){Al(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(r.callback=function(){Al(e,t),typeof i!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),r}function bd(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new Mg;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(r)||(a.add(r),e=Gg.bind(null,e,t,r),t.then(e,e))}function Sd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Cd(e,t,r,i,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=qt(-1,1),t.tag=2,pn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Lg=D.ReactCurrentOwner,nt=!1;function Ye(e,t,r,i){t.child=e===null?Bc(t,null,r,i):mr(t,e.child,r,i)}function kd(e,t,r,i,a){r=r.render;var c=t.ref;return vr(t,a),i=kl(e,t,r,i,c,a),r=El(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Gt(e,t,a)):(je&&r&&ll(t),t.flags|=1,Ye(e,t,i,a),t.child)}function Ed(e,t,r,i,a){if(e===null){var c=r.type;return typeof c=="function"&&!ta(c)&&c.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=c,Nd(e,t,c,i,a)):(e=As(r.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&a)===0){var m=c.memoizedProps;if(r=r.compare,r=r!==null?r:Yr,r(m,i)&&e.ref===t.ref)return Gt(e,t,a)}return t.flags|=1,e=xn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Nd(e,t,r,i,a){if(e!==null){var c=e.memoizedProps;if(Yr(c,i)&&e.ref===t.ref)if(nt=!1,t.pendingProps=i=c,(e.lanes&a)!==0)(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Gt(e,t,a)}return Il(e,t,r,i,a)}function Pd(e,t,r){var i=t.pendingProps,a=i.children,c=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(br,ut),ut|=r;else{if((r&1073741824)===0)return e=c!==null?c.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(br,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=c!==null?c.baseLanes:r,ke(br,ut),ut|=i}else c!==null?(i=c.baseLanes|r,t.memoizedState=null):i=r,ke(br,ut),ut|=i;return Ye(e,t,a,r),t.child}function jd(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,r,i,a){var c=tt(r)?_n:Qe.current;return c=dr(t,c),vr(t,a),r=kl(e,t,r,i,c,a),i=El(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Gt(e,t,a)):(je&&i&&ll(t),t.flags|=1,Ye(e,t,r,a),t.child)}function Rd(e,t,r,i,a){if(tt(r)){var c=!0;os(t)}else c=!1;if(vr(t,a),t.stateNode===null)Ss(e,t),vd(t,r,i),Ol(t,r,i,a),i=!0;else if(e===null){var m=t.stateNode,w=t.memoizedProps;m.props=w;var C=m.context,A=r.contextType;typeof A=="object"&&A!==null?A=mt(A):(A=tt(r)?_n:Qe.current,A=dr(t,A));var U=r.getDerivedStateFromProps,H=typeof U=="function"||typeof m.getSnapshotBeforeUpdate=="function";H||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==i||C!==A)&&yd(t,m,i,A),fn=!1;var $=t.memoizedState;m.state=$,ps(t,i,m,a),C=t.memoizedState,w!==i||$!==C||et.current||fn?(typeof U=="function"&&(Tl(t,r,U,i),C=t.memoizedState),(w=fn||gd(t,r,w,i,$,C,A))?(H||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=C),m.props=i,m.state=C,m.context=A,i=w):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{m=t.stateNode,Vc(e,t),w=t.memoizedProps,A=t.type===t.elementType?w:Et(t.type,w),m.props=A,H=t.pendingProps,$=m.context,C=r.contextType,typeof C=="object"&&C!==null?C=mt(C):(C=tt(r)?_n:Qe.current,C=dr(t,C));var X=r.getDerivedStateFromProps;(U=typeof X=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==H||$!==C)&&yd(t,m,i,C),fn=!1,$=t.memoizedState,m.state=$,ps(t,i,m,a);var Z=t.memoizedState;w!==H||$!==Z||et.current||fn?(typeof X=="function"&&(Tl(t,r,X,i),Z=t.memoizedState),(A=fn||gd(t,r,A,i,$,Z,C)||!1)?(U||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(i,Z,C),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(i,Z,C)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Z),m.props=i,m.state=Z,m.context=C,i=A):(typeof m.componentDidUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),i=!1)}return Ml(e,t,r,i,c,a)}function Ml(e,t,r,i,a,c){jd(e,t);var m=(t.flags&128)!==0;if(!i&&!m)return a&&Ic(t,r,!1),Gt(e,t,c);i=t.stateNode,Lg.current=t;var w=m&&typeof r.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&m?(t.child=mr(t,e.child,null,c),t.child=mr(t,null,w,c)):Ye(e,t,w,c),t.memoizedState=i.state,a&&Ic(t,r,!0),t.child}function Td(e){var t=e.stateNode;t.pendingContext?_c(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_c(e,t.context,!1),yl(e,t.containerInfo)}function Od(e,t,r,i,a){return hr(),dl(a),t.flags|=256,Ye(e,t,r,i),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function _d(e,t,r){var i=t.pendingProps,a=Re.current,c=!1,m=(t.flags&128)!==0,w;if((w=m)||(w=e!==null&&e.memoizedState===null?!1:(a&2)!==0),w?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ke(Re,a&1),e===null)return cl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(m=i.children,e=i.fallback,c?(i=t.mode,c=t.child,m={mode:"hidden",children:m},(i&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=m):c=Is(m,i,0,null),e=Hn(e,i,r,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=Dl(r),t.memoizedState=Ll,e):Fl(t,m));if(a=e.memoizedState,a!==null&&(w=a.dehydrated,w!==null))return Dg(e,t,m,i,w,a,r);if(c){c=i.fallback,m=t.mode,a=e.child,w=a.sibling;var C={mode:"hidden",children:i.children};return(m&1)===0&&t.child!==a?(i=t.child,i.childLanes=0,i.pendingProps=C,t.deletions=null):(i=xn(a,C),i.subtreeFlags=a.subtreeFlags&14680064),w!==null?c=xn(w,c):(c=Hn(c,m,r,null),c.flags|=2),c.return=t,i.return=t,i.sibling=c,t.child=i,i=c,c=t.child,m=e.child.memoizedState,m=m===null?Dl(r):{baseLanes:m.baseLanes|r,cachePool:null,transitions:m.transitions},c.memoizedState=m,c.childLanes=e.childLanes&~r,t.memoizedState=Ll,i}return c=e.child,e=c.sibling,i=xn(c,{mode:"visible",children:i.children}),(t.mode&1)===0&&(i.lanes=r),i.return=t,i.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Fl(e,t){return t=Is({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bs(e,t,r,i){return i!==null&&dl(i),mr(t,e.child,null,r),e=Fl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dg(e,t,r,i,a,c,m){if(r)return t.flags&256?(t.flags&=-257,i=_l(Error(s(422))),bs(e,t,m,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=i.fallback,a=t.mode,i=Is({mode:"visible",children:i.children},a,0,null),c=Hn(c,a,m,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,(t.mode&1)!==0&&mr(t,e.child,null,m),t.child.memoizedState=Dl(m),t.memoizedState=Ll,c);if((t.mode&1)===0)return bs(e,t,m,null);if(a.data==="$!"){if(i=a.nextSibling&&a.nextSibling.dataset,i)var w=i.dgst;return i=w,c=Error(s(419)),i=_l(c,i,void 0),bs(e,t,m,i)}if(w=(m&e.childLanes)!==0,nt||w){if(i=Ue,i!==null){switch(m&-m){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|m))!==0?0:a,a!==0&&a!==c.retryLane&&(c.retryLane=a,Kt(e,a),jt(i,e,a,-1))}return ea(),i=_l(Error(s(421))),bs(e,t,m,i)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Xg.bind(null,e),a._reactRetry=t,null):(e=c.treeContext,at=an(a.nextSibling),lt=t,je=!0,kt=null,e!==null&&(pt[ht++]=Vt,pt[ht++]=Qt,pt[ht++]=An,Vt=e.id,Qt=e.overflow,An=t),t=Fl(t,i.children),t.flags|=4096,t)}function Ad(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ml(e.return,t,r)}function zl(e,t,r,i,a){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:a}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=r,c.tailMode=a)}function Id(e,t,r){var i=t.pendingProps,a=i.revealOrder,c=i.tail;if(Ye(e,t,i.children,r),i=Re.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,r,t);else if(e.tag===19)Ad(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(ke(Re,i),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&hs(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),zl(t,!1,a,r,c);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&hs(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}zl(t,!0,r,null,c);break;case"together":zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ss(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=xn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=xn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Fg(e,t,r){switch(t.tag){case 3:Td(t),hr();break;case 5:qc(t);break;case 1:tt(t.type)&&os(t);break;case 4:yl(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,a=t.memoizedProps.value;ke(cs,i._currentValue),i._currentValue=a;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ke(Re,Re.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?_d(e,t,r):(ke(Re,Re.current&1),e=Gt(e,t,r),e!==null?e.sibling:null);ke(Re,Re.current&1);break;case 19:if(i=(r&t.childLanes)!==0,(e.flags&128)!==0){if(i)return Id(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ke(Re,Re.current),i)break;return null;case 22:case 23:return t.lanes=0,Pd(e,t,r)}return Gt(e,t,r)}var Md,$l,Ld,Dd;Md=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},$l=function(){},Ld=function(e,t,r,i){var a=e.memoizedProps;if(a!==i){e=t.stateNode,Ln(Mt.current);var c=null;switch(r){case"input":a=mi(e,a),i=mi(e,i),c=[];break;case"select":a=K({},a,{value:void 0}),i=K({},i,{value:void 0}),c=[];break;case"textarea":a=yi(e,a),i=yi(e,i),c=[];break;default:typeof a.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=ts)}wi(r,i);var m;r=null;for(A in a)if(!i.hasOwnProperty(A)&&a.hasOwnProperty(A)&&a[A]!=null)if(A==="style"){var w=a[A];for(m in w)w.hasOwnProperty(m)&&(r||(r={}),r[m]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(u.hasOwnProperty(A)?c||(c=[]):(c=c||[]).push(A,null));for(A in i){var C=i[A];if(w=a?.[A],i.hasOwnProperty(A)&&C!==w&&(C!=null||w!=null))if(A==="style")if(w){for(m in w)!w.hasOwnProperty(m)||C&&C.hasOwnProperty(m)||(r||(r={}),r[m]="");for(m in C)C.hasOwnProperty(m)&&w[m]!==C[m]&&(r||(r={}),r[m]=C[m])}else r||(c||(c=[]),c.push(A,r)),r=C;else A==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,w=w?w.__html:void 0,C!=null&&w!==C&&(c=c||[]).push(A,C)):A==="children"?typeof C!="string"&&typeof C!="number"||(c=c||[]).push(A,""+C):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(u.hasOwnProperty(A)?(C!=null&&A==="onScroll"&&Ee("scroll",e),c||w===C||(c=[])):(c=c||[]).push(A,C))}r&&(c=c||[]).push("style",r);var A=c;(t.updateQueue=A)&&(t.flags|=4)}},Dd=function(e,t,r,i){r!==i&&(t.flags|=4)};function po(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,i|=a.subtreeFlags&14680064,i|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function zg(e,t,r){var i=t.pendingProps;switch(al(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return tt(t.type)&&rs(),qe(t),null;case 3:return i=t.stateNode,yr(),Ne(et),Ne(Qe),bl(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(as(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kt!==null&&(Yl(kt),kt=null))),$l(e,t),qe(t),null;case 5:xl(t);var a=Ln(lo.current);if(r=t.type,e!==null&&t.stateNode!=null)Ld(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(s(166));return qe(t),null}if(e=Ln(Mt.current),as(t)){i=t.stateNode,r=t.type;var c=t.memoizedProps;switch(i[It]=t,i[no]=c,e=(t.mode&1)!==0,r){case"dialog":Ee("cancel",i),Ee("close",i);break;case"iframe":case"object":case"embed":Ee("load",i);break;case"video":case"audio":for(a=0;a<Jr.length;a++)Ee(Jr[a],i);break;case"source":Ee("error",i);break;case"img":case"image":case"link":Ee("error",i),Ee("load",i);break;case"details":Ee("toggle",i);break;case"input":vu(i,c),Ee("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!c.multiple},Ee("invalid",i);break;case"textarea":wu(i,c),Ee("invalid",i)}wi(r,c),a=null;for(var m in c)if(c.hasOwnProperty(m)){var w=c[m];m==="children"?typeof w=="string"?i.textContent!==w&&(c.suppressHydrationWarning!==!0&&es(i.textContent,w,e),a=["children",w]):typeof w=="number"&&i.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&es(i.textContent,w,e),a=["children",""+w]):u.hasOwnProperty(m)&&w!=null&&m==="onScroll"&&Ee("scroll",i)}switch(r){case"input":Zn(i),xu(i,c,!0);break;case"textarea":Zn(i),Su(i);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(i.onclick=ts)}i=a,t.updateQueue=i,i!==null&&(t.flags|=4)}else{m=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cu(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=m.createElement(r,{is:i.is}):(e=m.createElement(r),r==="select"&&(m=e,i.multiple?m.multiple=!0:i.size&&(m.size=i.size))):e=m.createElementNS(e,r),e[It]=t,e[no]=i,Md(e,t,!1,!1),t.stateNode=e;e:{switch(m=bi(r,i),r){case"dialog":Ee("cancel",e),Ee("close",e),a=i;break;case"iframe":case"object":case"embed":Ee("load",e),a=i;break;case"video":case"audio":for(a=0;a<Jr.length;a++)Ee(Jr[a],e);a=i;break;case"source":Ee("error",e),a=i;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),a=i;break;case"details":Ee("toggle",e),a=i;break;case"input":vu(e,i),a=mi(e,i),Ee("invalid",e);break;case"option":a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=K({},i,{value:void 0}),Ee("invalid",e);break;case"textarea":wu(e,i),a=yi(e,i),Ee("invalid",e);break;default:a=i}wi(r,a),w=a;for(c in w)if(w.hasOwnProperty(c)){var C=w[c];c==="style"?Nu(e,C):c==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&ku(e,C)):c==="children"?typeof C=="string"?(r!=="textarea"||C!=="")&&Ir(e,C):typeof C=="number"&&Ir(e,""+C):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?C!=null&&c==="onScroll"&&Ee("scroll",e):C!=null&&L(e,c,C,m))}switch(r){case"input":Zn(e),xu(e,i,!1);break;case"textarea":Zn(e),Su(e);break;case"option":i.value!=null&&e.setAttribute("value",""+we(i.value));break;case"select":e.multiple=!!i.multiple,c=i.value,c!=null?Jn(e,!!i.multiple,c,!1):i.defaultValue!=null&&Jn(e,!!i.multiple,i.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ts)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Dd(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(r=Ln(lo.current),Ln(Mt.current),as(t)){if(i=t.stateNode,r=t.memoizedProps,i[It]=t,(c=i.nodeValue!==r)&&(e=lt,e!==null))switch(e.tag){case 3:es(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&es(i.nodeValue,r,(e.mode&1)!==0)}c&&(t.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[It]=t,t.stateNode=i}return qe(t),null;case 13:if(Ne(Re),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&at!==null&&(t.mode&1)!==0&&(t.flags&128)===0)$c(),hr(),t.flags|=98560,c=!1;else if(c=as(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[It]=t}else hr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),c=!1}else kt!==null&&(Yl(kt),kt=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Re.current&1)!==0?Fe===0&&(Fe=3):ea())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return yr(),$l(e,t),e===null&&eo(t.stateNode.containerInfo),qe(t),null;case 10:return hl(t.type._context),qe(t),null;case 17:return tt(t.type)&&rs(),qe(t),null;case 19:if(Ne(Re),c=t.memoizedState,c===null)return qe(t),null;if(i=(t.flags&128)!==0,m=c.rendering,m===null)if(i)po(c,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=hs(e),m!==null){for(t.flags|=128,po(c,!1),i=m.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;r!==null;)c=r,e=i,c.flags&=14680066,m=c.alternate,m===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=m.childLanes,c.lanes=m.lanes,c.child=m.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=m.memoizedProps,c.memoizedState=m.memoizedState,c.updateQueue=m.updateQueue,c.type=m.type,e=m.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ke(Re,Re.current&1|2),t.child}e=e.sibling}c.tail!==null&&_e()>Sr&&(t.flags|=128,i=!0,po(c,!1),t.lanes=4194304)}else{if(!i)if(e=hs(m),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),po(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!je)return qe(t),null}else 2*_e()-c.renderingStartTime>Sr&&r!==1073741824&&(t.flags|=128,i=!0,po(c,!1),t.lanes=4194304);c.isBackwards?(m.sibling=t.child,t.child=m):(r=c.last,r!==null?r.sibling=m:t.child=m,c.last=m)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=_e(),t.sibling=null,r=Re.current,ke(Re,i?r&1|2:r&1),t):(qe(t),null);case 22:case 23:return Jl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(ut&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function $g(e,t){switch(al(t),t.tag){case 1:return tt(t.type)&&rs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yr(),Ne(et),Ne(Qe),bl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return xl(t),null;case 13:if(Ne(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(Re),null;case 4:return yr(),null;case 10:return hl(t.type._context),null;case 22:case 23:return Jl(),null;case 24:return null;default:return null}}var Cs=!1,Ge=!1,Ug=typeof WeakSet=="function"?WeakSet:Set,Y=null;function wr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){Oe(e,t,i)}else r.current=null}function Ul(e,t,r){try{r()}catch(i){Oe(e,t,i)}}var Fd=!1;function Hg(e,t){if(Ji=Bo,e=gc(),Vi(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var m=0,w=-1,C=-1,A=0,U=0,H=e,$=null;t:for(;;){for(var X;H!==r||a!==0&&H.nodeType!==3||(w=m+a),H!==c||i!==0&&H.nodeType!==3||(C=m+i),H.nodeType===3&&(m+=H.nodeValue.length),(X=H.firstChild)!==null;)$=H,H=X;for(;;){if(H===e)break t;if($===r&&++A===a&&(w=m),$===c&&++U===i&&(C=m),(X=H.nextSibling)!==null)break;H=$,$=H.parentNode}H=X}r=w===-1||C===-1?null:{start:w,end:C}}else r=null}r=r||{start:0,end:0}}else r=null;for(el={focusedElem:e,selectionRange:r},Bo=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var Z=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var J=Z.memoizedProps,Ae=Z.memoizedState,T=t.stateNode,E=T.getSnapshotBeforeUpdate(t.elementType===t.type?J:Et(t.type,J),Ae);T.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(B){Oe(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return Z=Fd,Fd=!1,Z}function ho(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&e)===e){var c=a.destroy;a.destroy=void 0,c!==void 0&&Ul(t,r,c)}a=a.next}while(a!==i)}}function ks(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function Hl(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[no],delete t[ol],delete t[kg],delete t[Eg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $d(e){return e.tag===5||e.tag===3||e.tag===4}function Ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bl(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ts));else if(i!==4&&(e=e.child,e!==null))for(Bl(e,t,r),e=e.sibling;e!==null;)Bl(e,t,r),e=e.sibling}function Wl(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Wl(e,t,r),e=e.sibling;e!==null;)Wl(e,t,r),e=e.sibling}var Be=null,Nt=!1;function hn(e,t,r){for(r=r.child;r!==null;)Hd(e,t,r),r=r.sibling}function Hd(e,t,r){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Do,r)}catch{}switch(r.tag){case 5:Ge||wr(r,t);case 6:var i=Be,a=Nt;Be=null,hn(e,t,r),Be=i,Nt=a,Be!==null&&(Nt?(e=Be,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Be.removeChild(r.stateNode));break;case 18:Be!==null&&(Nt?(e=Be,r=r.stateNode,e.nodeType===8?rl(e.parentNode,r):e.nodeType===1&&rl(e,r),Vr(e)):rl(Be,r.stateNode));break;case 4:i=Be,a=Nt,Be=r.stateNode.containerInfo,Nt=!0,hn(e,t,r),Be=i,Nt=a;break;case 0:case 11:case 14:case 15:if(!Ge&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){a=i=i.next;do{var c=a,m=c.destroy;c=c.tag,m!==void 0&&((c&2)!==0||(c&4)!==0)&&Ul(r,t,m),a=a.next}while(a!==i)}hn(e,t,r);break;case 1:if(!Ge&&(wr(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(w){Oe(r,t,w)}hn(e,t,r);break;case 21:hn(e,t,r);break;case 22:r.mode&1?(Ge=(i=Ge)||r.memoizedState!==null,hn(e,t,r),Ge=i):hn(e,t,r);break;default:hn(e,t,r)}}function Bd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ug),t.forEach(function(i){var a=Yg.bind(null,e,i);r.has(i)||(r.add(i),i.then(a,a))})}}function Pt(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=r[i];try{var c=e,m=t,w=m;e:for(;w!==null;){switch(w.tag){case 5:Be=w.stateNode,Nt=!1;break e;case 3:Be=w.stateNode.containerInfo,Nt=!0;break e;case 4:Be=w.stateNode.containerInfo,Nt=!0;break e}w=w.return}if(Be===null)throw Error(s(160));Hd(c,m,a),Be=null,Nt=!1;var C=a.alternate;C!==null&&(C.return=null),a.return=null}catch(A){Oe(a,t,A)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Wd(t,e),t=t.sibling}function Wd(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Dt(e),i&4){try{ho(3,e,e.return),ks(3,e)}catch(J){Oe(e,e.return,J)}try{ho(5,e,e.return)}catch(J){Oe(e,e.return,J)}}break;case 1:Pt(t,e),Dt(e),i&512&&r!==null&&wr(r,r.return);break;case 5:if(Pt(t,e),Dt(e),i&512&&r!==null&&wr(r,r.return),e.flags&32){var a=e.stateNode;try{Ir(a,"")}catch(J){Oe(e,e.return,J)}}if(i&4&&(a=e.stateNode,a!=null)){var c=e.memoizedProps,m=r!==null?r.memoizedProps:c,w=e.type,C=e.updateQueue;if(e.updateQueue=null,C!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&yu(a,c),bi(w,m);var A=bi(w,c);for(m=0;m<C.length;m+=2){var U=C[m],H=C[m+1];U==="style"?Nu(a,H):U==="dangerouslySetInnerHTML"?ku(a,H):U==="children"?Ir(a,H):L(a,U,H,A)}switch(w){case"input":gi(a,c);break;case"textarea":bu(a,c);break;case"select":var $=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!c.multiple;var X=c.value;X!=null?Jn(a,!!c.multiple,X,!1):$!==!!c.multiple&&(c.defaultValue!=null?Jn(a,!!c.multiple,c.defaultValue,!0):Jn(a,!!c.multiple,c.multiple?[]:"",!1))}a[no]=c}catch(J){Oe(e,e.return,J)}}break;case 6:if(Pt(t,e),Dt(e),i&4){if(e.stateNode===null)throw Error(s(162));a=e.stateNode,c=e.memoizedProps;try{a.nodeValue=c}catch(J){Oe(e,e.return,J)}}break;case 3:if(Pt(t,e),Dt(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Vr(t.containerInfo)}catch(J){Oe(e,e.return,J)}break;case 4:Pt(t,e),Dt(e);break;case 13:Pt(t,e),Dt(e),a=e.child,a.flags&8192&&(c=a.memoizedState!==null,a.stateNode.isHidden=c,!c||a.alternate!==null&&a.alternate.memoizedState!==null||(Kl=_e())),i&4&&Bd(e);break;case 22:if(U=r!==null&&r.memoizedState!==null,e.mode&1?(Ge=(A=Ge)||U,Pt(t,e),Ge=A):Pt(t,e),Dt(e),i&8192){if(A=e.memoizedState!==null,(e.stateNode.isHidden=A)&&!U&&(e.mode&1)!==0)for(Y=e,U=e.child;U!==null;){for(H=Y=U;Y!==null;){switch($=Y,X=$.child,$.tag){case 0:case 11:case 14:case 15:ho(4,$,$.return);break;case 1:wr($,$.return);var Z=$.stateNode;if(typeof Z.componentWillUnmount=="function"){i=$,r=$.return;try{t=i,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(J){Oe(i,r,J)}}break;case 5:wr($,$.return);break;case 22:if($.memoizedState!==null){Kd(H);continue}}X!==null?(X.return=$,Y=X):Kd(H)}U=U.sibling}e:for(U=null,H=e;;){if(H.tag===5){if(U===null){U=H;try{a=H.stateNode,A?(c=a.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=H.stateNode,C=H.memoizedProps.style,m=C!=null&&C.hasOwnProperty("display")?C.display:null,w.style.display=Eu("display",m))}catch(J){Oe(e,e.return,J)}}}else if(H.tag===6){if(U===null)try{H.stateNode.nodeValue=A?"":H.memoizedProps}catch(J){Oe(e,e.return,J)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===e)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===e)break e;for(;H.sibling===null;){if(H.return===null||H.return===e)break e;U===H&&(U=null),H=H.return}U===H&&(U=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:Pt(t,e),Dt(e),i&4&&Bd(e);break;case 21:break;default:Pt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if($d(r)){var i=r;break e}r=r.return}throw Error(s(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Ir(a,""),i.flags&=-33);var c=Ud(e);Wl(e,c,a);break;case 3:case 4:var m=i.stateNode.containerInfo,w=Ud(e);Bl(e,w,m);break;default:throw Error(s(161))}}catch(C){Oe(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bg(e,t,r){Y=e,Vd(e)}function Vd(e,t,r){for(var i=(e.mode&1)!==0;Y!==null;){var a=Y,c=a.child;if(a.tag===22&&i){var m=a.memoizedState!==null||Cs;if(!m){var w=a.alternate,C=w!==null&&w.memoizedState!==null||Ge;w=Cs;var A=Ge;if(Cs=m,(Ge=C)&&!A)for(Y=a;Y!==null;)m=Y,C=m.child,m.tag===22&&m.memoizedState!==null?qd(a):C!==null?(C.return=m,Y=C):qd(a);for(;c!==null;)Y=c,Vd(c),c=c.sibling;Y=a,Cs=w,Ge=A}Qd(e)}else(a.subtreeFlags&8772)!==0&&c!==null?(c.return=a,Y=c):Qd(e)}}function Qd(e){for(;Y!==null;){var t=Y;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ge||ks(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!Ge)if(r===null)i.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Et(t.type,r.memoizedProps);i.componentDidUpdate(a,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&Kc(t,c,i);break;case 3:var m=t.updateQueue;if(m!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Kc(t,m,r)}break;case 5:var w=t.stateNode;if(r===null&&t.flags&4){r=w;var C=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&r.focus();break;case"img":C.src&&(r.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var A=t.alternate;if(A!==null){var U=A.memoizedState;if(U!==null){var H=U.dehydrated;H!==null&&Vr(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Ge||t.flags&512&&Hl(t)}catch($){Oe(t,t.return,$)}}if(t===e){Y=null;break}if(r=t.sibling,r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Kd(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Y=r;break}Y=t.return}}function qd(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ks(4,t)}catch(C){Oe(t,r,C)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var a=t.return;try{i.componentDidMount()}catch(C){Oe(t,a,C)}}var c=t.return;try{Hl(t)}catch(C){Oe(t,c,C)}break;case 5:var m=t.return;try{Hl(t)}catch(C){Oe(t,m,C)}}}catch(C){Oe(t,t.return,C)}if(t===e){Y=null;break}var w=t.sibling;if(w!==null){w.return=t.return,Y=w;break}Y=t.return}}var Wg=Math.ceil,Es=D.ReactCurrentDispatcher,Vl=D.ReactCurrentOwner,vt=D.ReactCurrentBatchConfig,ye=0,Ue=null,Ie=null,We=0,ut=0,br=un(0),Fe=0,mo=null,Fn=0,Ns=0,Ql=0,go=null,rt=null,Kl=0,Sr=1/0,Xt=null,Ps=!1,ql=null,mn=null,js=!1,gn=null,Rs=0,vo=0,Gl=null,Ts=-1,Os=0;function Ze(){return(ye&6)!==0?_e():Ts!==-1?Ts:Ts=_e()}function vn(e){return(e.mode&1)===0?1:(ye&2)!==0&&We!==0?We&-We:Pg.transition!==null?(Os===0&&(Os=Uu()),Os):(e=Se,e!==0||(e=window.event,e=e===void 0?16:Xu(e.type)),e)}function jt(e,t,r,i){if(50<vo)throw vo=0,Gl=null,Error(s(185));$r(e,r,i),((ye&2)===0||e!==Ue)&&(e===Ue&&((ye&2)===0&&(Ns|=r),Fe===4&&yn(e,We)),ot(e,i),r===1&&ye===0&&(t.mode&1)===0&&(Sr=_e()+500,ss&&dn()))}function ot(e,t){var r=e.callbackNode;Pm(e,t);var i=$o(e,e===Ue?We:0);if(i===0)r!==null&&Fu(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(r!=null&&Fu(r),t===1)e.tag===0?Ng(Xd.bind(null,e)):Mc(Xd.bind(null,e)),Sg(function(){(ye&6)===0&&dn()}),r=null;else{switch(Hu(i)){case 1:r=ji;break;case 4:r=zu;break;case 16:r=Lo;break;case 536870912:r=$u;break;default:r=Lo}r=of(r,Gd.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Gd(e,t){if(Ts=-1,Os=0,(ye&6)!==0)throw Error(s(327));var r=e.callbackNode;if(Cr()&&e.callbackNode!==r)return null;var i=$o(e,e===Ue?We:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||t)t=_s(e,i);else{t=i;var a=ye;ye|=2;var c=Zd();(Ue!==e||We!==t)&&(Xt=null,Sr=_e()+500,$n(e,t));do try{Kg();break}catch(w){Yd(e,w)}while(!0);pl(),Es.current=c,ye=a,Ie!==null?t=0:(Ue=null,We=0,t=Fe)}if(t!==0){if(t===2&&(a=Ri(e),a!==0&&(i=a,t=Xl(e,a))),t===1)throw r=mo,$n(e,0),yn(e,i),ot(e,_e()),r;if(t===6)yn(e,i);else{if(a=e.current.alternate,(i&30)===0&&!Vg(a)&&(t=_s(e,i),t===2&&(c=Ri(e),c!==0&&(i=c,t=Xl(e,c))),t===1))throw r=mo,$n(e,0),yn(e,i),ot(e,_e()),r;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(s(345));case 2:Un(e,rt,Xt);break;case 3:if(yn(e,i),(i&130023424)===i&&(t=Kl+500-_e(),10<t)){if($o(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Ze(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=nl(Un.bind(null,e,rt,Xt),t);break}Un(e,rt,Xt);break;case 4:if(yn(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var m=31-St(i);c=1<<m,m=t[m],m>a&&(a=m),i&=~c}if(i=a,i=_e()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Wg(i/1960))-i,10<i){e.timeoutHandle=nl(Un.bind(null,e,rt,Xt),i);break}Un(e,rt,Xt);break;case 5:Un(e,rt,Xt);break;default:throw Error(s(329))}}}return ot(e,_e()),e.callbackNode===r?Gd.bind(null,e):null}function Xl(e,t){var r=go;return e.current.memoizedState.isDehydrated&&($n(e,t).flags|=256),e=_s(e,t),e!==2&&(t=rt,rt=r,t!==null&&Yl(t)),e}function Yl(e){rt===null?rt=e:rt.push.apply(rt,e)}function Vg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var a=r[i],c=a.getSnapshot;a=a.value;try{if(!Ct(c(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yn(e,t){for(t&=~Ql,t&=~Ns,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-St(t),i=1<<r;e[r]=-1,t&=~i}}function Xd(e){if((ye&6)!==0)throw Error(s(327));Cr();var t=$o(e,0);if((t&1)===0)return ot(e,_e()),null;var r=_s(e,t);if(e.tag!==0&&r===2){var i=Ri(e);i!==0&&(t=i,r=Xl(e,i))}if(r===1)throw r=mo,$n(e,0),yn(e,t),ot(e,_e()),r;if(r===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Un(e,rt,Xt),ot(e,_e()),null}function Zl(e,t){var r=ye;ye|=1;try{return e(t)}finally{ye=r,ye===0&&(Sr=_e()+500,ss&&dn())}}function zn(e){gn!==null&&gn.tag===0&&(ye&6)===0&&Cr();var t=ye;ye|=1;var r=vt.transition,i=Se;try{if(vt.transition=null,Se=1,e)return e()}finally{Se=i,vt.transition=r,ye=t,(ye&6)===0&&dn()}}function Jl(){ut=br.current,Ne(br)}function $n(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,bg(r)),Ie!==null)for(r=Ie.return;r!==null;){var i=r;switch(al(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&rs();break;case 3:yr(),Ne(et),Ne(Qe),bl();break;case 5:xl(i);break;case 4:yr();break;case 13:Ne(Re);break;case 19:Ne(Re);break;case 10:hl(i.type._context);break;case 22:case 23:Jl()}r=r.return}if(Ue=e,Ie=e=xn(e.current,null),We=ut=t,Fe=0,mo=null,Ql=Ns=Fn=0,rt=go=null,Mn!==null){for(t=0;t<Mn.length;t++)if(r=Mn[t],i=r.interleaved,i!==null){r.interleaved=null;var a=i.next,c=r.pending;if(c!==null){var m=c.next;c.next=a,i.next=m}r.pending=i}Mn=null}return e}function Yd(e,t){do{var r=Ie;try{if(pl(),ms.current=xs,gs){for(var i=Te.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}gs=!1}if(Dn=0,$e=De=Te=null,ao=!1,uo=0,Vl.current=null,r===null||r.return===null){Fe=1,mo=t,Ie=null;break}e:{var c=e,m=r.return,w=r,C=t;if(t=We,w.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var A=C,U=w,H=U.tag;if((U.mode&1)===0&&(H===0||H===11||H===15)){var $=U.alternate;$?(U.updateQueue=$.updateQueue,U.memoizedState=$.memoizedState,U.lanes=$.lanes):(U.updateQueue=null,U.memoizedState=null)}var X=Sd(m);if(X!==null){X.flags&=-257,Cd(X,m,w,c,t),X.mode&1&&bd(c,A,t),t=X,C=A;var Z=t.updateQueue;if(Z===null){var J=new Set;J.add(C),t.updateQueue=J}else Z.add(C);break e}else{if((t&1)===0){bd(c,A,t),ea();break e}C=Error(s(426))}}else if(je&&w.mode&1){var Ae=Sd(m);if(Ae!==null){(Ae.flags&65536)===0&&(Ae.flags|=256),Cd(Ae,m,w,c,t),dl(xr(C,w));break e}}c=C=xr(C,w),Fe!==4&&(Fe=2),go===null?go=[c]:go.push(c),c=m;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var T=xd(c,C,t);Qc(c,T);break e;case 1:w=C;var E=c.type,_=c.stateNode;if((c.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(mn===null||!mn.has(_)))){c.flags|=65536,t&=-t,c.lanes|=t;var B=wd(c,w,t);Qc(c,B);break e}}c=c.return}while(c!==null)}ef(r)}catch(te){t=te,Ie===r&&r!==null&&(Ie=r=r.return);continue}break}while(!0)}function Zd(){var e=Es.current;return Es.current=xs,e===null?xs:e}function ea(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Ue===null||(Fn&268435455)===0&&(Ns&268435455)===0||yn(Ue,We)}function _s(e,t){var r=ye;ye|=2;var i=Zd();(Ue!==e||We!==t)&&(Xt=null,$n(e,t));do try{Qg();break}catch(a){Yd(e,a)}while(!0);if(pl(),ye=r,Es.current=i,Ie!==null)throw Error(s(261));return Ue=null,We=0,Fe}function Qg(){for(;Ie!==null;)Jd(Ie)}function Kg(){for(;Ie!==null&&!ym();)Jd(Ie)}function Jd(e){var t=rf(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?ef(e):Ie=t,Vl.current=null}function ef(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=zg(r,t,ut),r!==null){Ie=r;return}}else{if(r=$g(r,t),r!==null){r.flags&=32767,Ie=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,Ie=null;return}}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);Fe===0&&(Fe=5)}function Un(e,t,r){var i=Se,a=vt.transition;try{vt.transition=null,Se=1,qg(e,t,r,i)}finally{vt.transition=a,Se=i}return null}function qg(e,t,r,i){do Cr();while(gn!==null);if((ye&6)!==0)throw Error(s(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=r.lanes|r.childLanes;if(jm(e,c),e===Ue&&(Ie=Ue=null,We=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||js||(js=!0,of(Lo,function(){return Cr(),null})),c=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||c){c=vt.transition,vt.transition=null;var m=Se;Se=1;var w=ye;ye|=4,Vl.current=null,Hg(e,r),Wd(r,e),hg(el),Bo=!!Ji,el=Ji=null,e.current=r,Bg(r),xm(),ye=w,Se=m,vt.transition=c}else e.current=r;if(js&&(js=!1,gn=e,Rs=a),c=e.pendingLanes,c===0&&(mn=null),Sm(r.stateNode),ot(e,_e()),t!==null)for(i=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],i(a.value,{componentStack:a.stack,digest:a.digest});if(Ps)throw Ps=!1,e=ql,ql=null,e;return(Rs&1)!==0&&e.tag!==0&&Cr(),c=e.pendingLanes,(c&1)!==0?e===Gl?vo++:(vo=0,Gl=e):vo=0,dn(),null}function Cr(){if(gn!==null){var e=Hu(Rs),t=vt.transition,r=Se;try{if(vt.transition=null,Se=16>e?16:e,gn===null)var i=!1;else{if(e=gn,gn=null,Rs=0,(ye&6)!==0)throw Error(s(331));var a=ye;for(ye|=4,Y=e.current;Y!==null;){var c=Y,m=c.child;if((Y.flags&16)!==0){var w=c.deletions;if(w!==null){for(var C=0;C<w.length;C++){var A=w[C];for(Y=A;Y!==null;){var U=Y;switch(U.tag){case 0:case 11:case 15:ho(8,U,c)}var H=U.child;if(H!==null)H.return=U,Y=H;else for(;Y!==null;){U=Y;var $=U.sibling,X=U.return;if(zd(U),U===A){Y=null;break}if($!==null){$.return=X,Y=$;break}Y=X}}}var Z=c.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var Ae=J.sibling;J.sibling=null,J=Ae}while(J!==null)}}Y=c}}if((c.subtreeFlags&2064)!==0&&m!==null)m.return=c,Y=m;else e:for(;Y!==null;){if(c=Y,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:ho(9,c,c.return)}var T=c.sibling;if(T!==null){T.return=c.return,Y=T;break e}Y=c.return}}var E=e.current;for(Y=E;Y!==null;){m=Y;var _=m.child;if((m.subtreeFlags&2064)!==0&&_!==null)_.return=m,Y=_;else e:for(m=E;Y!==null;){if(w=Y,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:ks(9,w)}}catch(te){Oe(w,w.return,te)}if(w===m){Y=null;break e}var B=w.sibling;if(B!==null){B.return=w.return,Y=B;break e}Y=w.return}}if(ye=a,dn(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Do,e)}catch{}i=!0}return i}finally{Se=r,vt.transition=t}}return!1}function tf(e,t,r){t=xr(r,t),t=xd(e,t,1),e=pn(e,t,1),t=Ze(),e!==null&&($r(e,1,t),ot(e,t))}function Oe(e,t,r){if(e.tag===3)tf(e,e,r);else for(;t!==null;){if(t.tag===3){tf(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(mn===null||!mn.has(i))){e=xr(r,e),e=wd(t,e,1),t=pn(t,e,1),e=Ze(),t!==null&&($r(t,1,e),ot(t,e));break}}t=t.return}}function Gg(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&r,Ue===e&&(We&r)===r&&(Fe===4||Fe===3&&(We&130023424)===We&&500>_e()-Kl?$n(e,0):Ql|=r),ot(e,t)}function nf(e,t){t===0&&((e.mode&1)===0?t=1:(t=zo,zo<<=1,(zo&130023424)===0&&(zo=4194304)));var r=Ze();e=Kt(e,t),e!==null&&($r(e,t,r),ot(e,r))}function Xg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),nf(e,r)}function Yg(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),nf(e,r)}var rf;rf=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)nt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return nt=!1,Fg(e,t,r);nt=(e.flags&131072)!==0}else nt=!1,je&&(t.flags&1048576)!==0&&Lc(t,ls,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Ss(e,t),e=t.pendingProps;var a=dr(t,Qe.current);vr(t,r),a=kl(null,t,i,e,a,r);var c=El();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(i)?(c=!0,os(t)):c=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,vl(t),a.updater=ws,t.stateNode=a,a._reactInternals=t,Ol(t,i,e,r),t=Ml(null,t,i,!0,c,r)):(t.tag=0,je&&c&&ll(t),Ye(null,t,a,r),t=t.child),t;case 16:i=t.elementType;e:{switch(Ss(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jg(i),e=Et(i,e),a){case 0:t=Il(null,t,i,e,r);break e;case 1:t=Rd(null,t,i,e,r);break e;case 11:t=kd(null,t,i,e,r);break e;case 14:t=Ed(null,t,i,Et(i.type,e),r);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Et(i,a),Il(e,t,i,a,r);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Et(i,a),Rd(e,t,i,a,r);case 3:e:{if(Td(t),e===null)throw Error(s(387));i=t.pendingProps,c=t.memoizedState,a=c.element,Vc(e,t),ps(t,i,null,r);var m=t.memoizedState;if(i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){a=xr(Error(s(423)),t),t=Od(e,t,i,r,a);break e}else if(i!==a){a=xr(Error(s(424)),t),t=Od(e,t,i,r,a);break e}else for(at=an(t.stateNode.containerInfo.firstChild),lt=t,je=!0,kt=null,r=Bc(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(hr(),i===a){t=Gt(e,t,r);break e}Ye(e,t,i,r)}t=t.child}return t;case 5:return qc(t),e===null&&cl(t),i=t.type,a=t.pendingProps,c=e!==null?e.memoizedProps:null,m=a.children,tl(i,a)?m=null:c!==null&&tl(i,c)&&(t.flags|=32),jd(e,t),Ye(e,t,m,r),t.child;case 6:return e===null&&cl(t),null;case 13:return _d(e,t,r);case 4:return yl(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=mr(t,null,i,r):Ye(e,t,i,r),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Et(i,a),kd(e,t,i,a,r);case 7:return Ye(e,t,t.pendingProps,r),t.child;case 8:return Ye(e,t,t.pendingProps.children,r),t.child;case 12:return Ye(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,a=t.pendingProps,c=t.memoizedProps,m=a.value,ke(cs,i._currentValue),i._currentValue=m,c!==null)if(Ct(c.value,m)){if(c.children===a.children&&!et.current){t=Gt(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var w=c.dependencies;if(w!==null){m=c.child;for(var C=w.firstContext;C!==null;){if(C.context===i){if(c.tag===1){C=qt(-1,r&-r),C.tag=2;var A=c.updateQueue;if(A!==null){A=A.shared;var U=A.pending;U===null?C.next=C:(C.next=U.next,U.next=C),A.pending=C}}c.lanes|=r,C=c.alternate,C!==null&&(C.lanes|=r),ml(c.return,r,t),w.lanes|=r;break}C=C.next}}else if(c.tag===10)m=c.type===t.type?null:c.child;else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=r,w=m.alternate,w!==null&&(w.lanes|=r),ml(m,r,t),m=c.sibling}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===t){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}Ye(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,vr(t,r),a=mt(a),i=i(a),t.flags|=1,Ye(e,t,i,r),t.child;case 14:return i=t.type,a=Et(i,t.pendingProps),a=Et(i.type,a),Ed(e,t,i,a,r);case 15:return Nd(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Et(i,a),Ss(e,t),t.tag=1,tt(i)?(e=!0,os(t)):e=!1,vr(t,r),vd(t,i,a),Ol(t,i,a,r),Ml(null,t,i,!0,e,r);case 19:return Id(e,t,r);case 22:return Pd(e,t,r)}throw Error(s(156,t.tag))};function of(e,t){return Du(e,t)}function Zg(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,i){return new Zg(e,t,r,i)}function ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jg(e){if(typeof e=="function")return ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ee)return 11;if(e===me)return 14}return 2}function xn(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function As(e,t,r,i,a,c){var m=2;if(i=e,typeof e=="function")ta(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case V:return Hn(r.children,a,c,t);case ne:m=8,a|=8;break;case F:return e=yt(12,r,t,a|2),e.elementType=F,e.lanes=c,e;case ce:return e=yt(13,r,t,a),e.elementType=ce,e.lanes=c,e;case G:return e=yt(19,r,t,a),e.elementType=G,e.lanes=c,e;case ie:return Is(r,a,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case re:m=10;break e;case pe:m=9;break e;case ee:m=11;break e;case me:m=14;break e;case le:m=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=yt(m,r,t,a),t.elementType=e,t.type=i,t.lanes=c,t}function Hn(e,t,r,i){return e=yt(7,e,i,t),e.lanes=r,e}function Is(e,t,r,i){return e=yt(22,e,i,t),e.elementType=ie,e.lanes=r,e.stateNode={isHidden:!1},e}function na(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function ra(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ev(e,t,r,i,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ti(0),this.expirationTimes=Ti(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ti(0),this.identifierPrefix=i,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function oa(e,t,r,i,a,c,m,w,C){return e=new ev(e,t,r,w,C),t===1?(t=1,c===!0&&(t|=8)):t=0,c=yt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},vl(c),e}function tv(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:i==null?null:""+i,children:e,containerInfo:t,implementation:r}}function sf(e){if(!e)return cn;e=e._reactInternals;e:{if(Tn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var r=e.type;if(tt(r))return Ac(e,r,t)}return t}function lf(e,t,r,i,a,c,m,w,C){return e=oa(r,i,!0,e,a,c,m,w,C),e.context=sf(null),r=e.current,i=Ze(),a=vn(r),c=qt(i,a),c.callback=t??null,pn(r,c,a),e.current.lanes=a,$r(e,a,i),ot(e,i),e}function Ms(e,t,r,i){var a=t.current,c=Ze(),m=vn(a);return r=sf(r),t.context===null?t.context=r:t.pendingContext=r,t=qt(c,m),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=pn(a,t,m),e!==null&&(jt(e,a,m,c),fs(e,a,m)),m}function Ls(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function af(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function sa(e,t){af(e,t),(e=e.alternate)&&af(e,t)}function nv(){return null}var uf=typeof reportError=="function"?reportError:function(e){console.error(e)};function ia(e){this._internalRoot=e}Ds.prototype.render=ia.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Ms(e,t,null,null)},Ds.prototype.unmount=ia.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){Ms(null,e,null,null)}),t[Bt]=null}};function Ds(e){this._internalRoot=e}Ds.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vu();e={blockedOn:null,target:e,priority:t};for(var r=0;r<on.length&&t!==0&&t<on[r].priority;r++);on.splice(r,0,e),r===0&&qu(e)}};function la(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cf(){}function rv(e,t,r,i,a){if(a){if(typeof i=="function"){var c=i;i=function(){var A=Ls(m);c.call(A)}}var m=lf(t,i,e,0,null,!1,!1,"",cf);return e._reactRootContainer=m,e[Bt]=m.current,eo(e.nodeType===8?e.parentNode:e),zn(),m}for(;a=e.lastChild;)e.removeChild(a);if(typeof i=="function"){var w=i;i=function(){var A=Ls(C);w.call(A)}}var C=oa(e,0,!1,null,null,!1,!1,"",cf);return e._reactRootContainer=C,e[Bt]=C.current,eo(e.nodeType===8?e.parentNode:e),zn(function(){Ms(t,C,r,i)}),C}function zs(e,t,r,i,a){var c=r._reactRootContainer;if(c){var m=c;if(typeof a=="function"){var w=a;a=function(){var C=Ls(m);w.call(C)}}Ms(t,m,e,a)}else m=rv(r,t,e,a,i);return Ls(m)}Bu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=zr(t.pendingLanes);r!==0&&(Oi(t,r|1),ot(t,_e()),(ye&6)===0&&(Sr=_e()+500,dn()))}break;case 13:zn(function(){var i=Kt(e,1);if(i!==null){var a=Ze();jt(i,e,1,a)}}),sa(e,1)}},_i=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var r=Ze();jt(t,e,134217728,r)}sa(e,134217728)}},Wu=function(e){if(e.tag===13){var t=vn(e),r=Kt(e,t);if(r!==null){var i=Ze();jt(r,e,t,i)}sa(e,t)}},Vu=function(){return Se},Qu=function(e,t){var r=Se;try{return Se=e,t()}finally{Se=r}},ki=function(e,t,r){switch(t){case"input":if(gi(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var a=ns(i);if(!a)throw Error(s(90));_o(i),gi(i,a)}}}break;case"textarea":bu(e,r);break;case"select":t=r.value,t!=null&&Jn(e,!!r.multiple,t,!1)}},Tu=Zl,Ou=zn;var ov={usingClientEntryPoint:!1,Events:[ro,ur,ns,ju,Ru,Zl]},yo={findFiberByHostInstance:On,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sv={bundleType:yo.bundleType,version:yo.version,rendererPackageName:yo.rendererPackageName,rendererConfig:yo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Mu(e),e===null?null:e.stateNode},findFiberByHostInstance:yo.findFiberByHostInstance||nv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$s.isDisabled&&$s.supportsFiber)try{Do=$s.inject(sv),At=$s}catch{}}return st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ov,st.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!la(t))throw Error(s(200));return tv(e,t,null,r)},st.createRoot=function(e,t){if(!la(e))throw Error(s(299));var r=!1,i="",a=uf;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=oa(e,1,!1,null,null,r,!1,i,a),e[Bt]=t.current,eo(e.nodeType===8?e.parentNode:e),new ia(t)},st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Mu(t),e=e===null?null:e.stateNode,e},st.flushSync=function(e){return zn(e)},st.hydrate=function(e,t,r){if(!Fs(t))throw Error(s(200));return zs(null,e,t,!0,r)},st.hydrateRoot=function(e,t,r){if(!la(e))throw Error(s(405));var i=r!=null&&r.hydratedSources||null,a=!1,c="",m=uf;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onRecoverableError!==void 0&&(m=r.onRecoverableError)),t=lf(t,null,e,1,r??null,a,!1,c,m),e[Bt]=t.current,eo(e),i)for(e=0;e<i.length;e++)r=i[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Ds(t)},st.render=function(e,t,r){if(!Fs(t))throw Error(s(200));return zs(null,e,t,!1,r)},st.unmountComponentAtNode=function(e){if(!Fs(e))throw Error(s(40));return e._reactRootContainer?(zn(function(){zs(null,null,e,!1,function(){e._reactRootContainer=null,e[Bt]=null})}),!0):!1},st.unstable_batchedUpdates=Zl,st.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Fs(r))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return zs(e,t,r,!1,i)},st.version="18.3.1-next-f1338f8080-20240426",st}var yf;function cp(){if(yf)return ca.exports;yf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),ca.exports=pv(),ca.exports}var xf;function hv(){if(xf)return Us;xf=1;var n=cp();return Us.createRoot=n.createRoot,Us.hydrateRoot=n.hydrateRoot,Us}var mv=hv();function gv(n,o){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,l,u,f,p=[],h="",g=n.split("/");for(g[0]||g.shift();u=g.shift();)s=u[0],s==="*"?(p.push(s),h+=u[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(l=u.indexOf("?",1),f=u.indexOf(".",1),p.push(u.substring(1,~l?l:~f?f:u.length)),h+=~l&&!~f?"(?:/([^/]+?))?":"/([^/]+?)",~f&&(h+=(~l?"?":"")+"\\"+u.substring(f))):h+="/"+u;return{keys:p,pattern:new RegExp("^"+h+(o?"(?=$|/)":"/?$"),"i")}}var y=ti();const En=up(y),Ua=lv({__proto__:null,default:En},[y]);var pa={exports:{}},ha={};var wf;function vv(){if(wf)return ha;wf=1;var n=ti();function o(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var s=typeof Object.is=="function"?Object.is:o,l=n.useState,u=n.useEffect,f=n.useLayoutEffect,p=n.useDebugValue;function h(b,S){var j=S(),O=l({inst:{value:j,getSnapshot:S}}),k=O[0].inst,N=O[1];return f(function(){k.value=j,k.getSnapshot=S,g(k)&&N({inst:k})},[b,j,S]),u(function(){return g(k)&&N({inst:k}),b(function(){g(k)&&N({inst:k})})},[b]),p(j),j}function g(b){var S=b.getSnapshot;b=b.value;try{var j=S();return!s(b,j)}catch{return!0}}function v(b,S){return S()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:h;return ha.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,ha}var bf;function yv(){return bf||(bf=1,pa.exports=vv()),pa.exports}var dp=yv();const xv=Ua.useInsertionEffect,wv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bv=wv?y.useLayoutEffect:y.useEffect,Sv=xv||bv,fp=n=>{const o=y.useRef([n,(...s)=>o[0](...s)]).current;return Sv(()=>{o[0]=n}),o[1]},Cv="popstate",Ha="pushState",Ba="replaceState",kv="hashchange",Sf=[Cv,Ha,Ba,kv],Ev=n=>{for(const o of Sf)addEventListener(o,n);return()=>{for(const o of Sf)removeEventListener(o,n)}},pp=(n,o)=>dp.useSyncExternalStore(Ev,n,o),Cf=()=>location.search,Nv=({ssrSearch:n}={})=>pp(Cf,n!=null?()=>n:Cf),kf=()=>location.pathname,Pv=({ssrPath:n}={})=>pp(kf,n!=null?()=>n:kf),jv=(n,{replace:o=!1,state:s=null}={})=>history[o?Ba:Ha](s,"",n),Rv=(n={})=>[Pv(n),jv],Ef=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ef]>"u"){for(const n of[Ha,Ba]){const o=history[n];history[n]=function(){const s=o.apply(this,arguments),l=new Event(n);return l.arguments=arguments,dispatchEvent(l),s}}Object.defineProperty(window,Ef,{value:!0})}const Tv=(n,o)=>o.toLowerCase().indexOf(n.toLowerCase())?"~"+o:o.slice(n.length)||"/",hp=(n="")=>n==="/"?"":n,Ov=(n,o)=>n[0]==="~"?n.slice(1):hp(o)+n,_v=(n="",o)=>Tv(Nf(hp(n)),Nf(o)),Nf=n=>{try{return decodeURI(n)}catch{return n}},mp={hook:Rv,searchHook:Nv,parser:gv,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n,aroundNav:(n,o,s)=>n(o,s)},gp=y.createContext(mp),ni=()=>y.useContext(gp),vp={},yp=y.createContext(vp),Av=()=>y.useContext(yp),Wa=n=>{const[o,s]=n.hook(n);return[_v(n.base,o),fp((l,u)=>n.aroundNav(s,Ov(l,n.base),u))]},xp=(n,o,s,l)=>{const{pattern:u,keys:f}=o instanceof RegExp?{keys:!1,pattern:o}:n(o||"*",l),p=u.exec(s)||[],[h,...g]=p;return h!==void 0?[!0,(()=>{const v=f!==!1?Object.fromEntries(f.map((b,S)=>[b,g[S]])):p.groups;let x={...g};return v&&Object.assign(x,v),x})(),...l?[h]:[]]:[!1,null]},wp=({children:n,...o})=>{const s=ni(),l=o.hook?mp:s;let u=l;const[f,p=o.ssrSearch??""]=o.ssrPath?.split("?")??[];f&&(o.ssrSearch=p,o.ssrPath=f),o.hrefs=o.hrefs??o.hook?.hrefs,o.searchHook=o.searchHook??o.hook?.searchHook;let h=y.useRef({}),g=h.current,v=g;for(let x in l){const b=x==="base"?l[x]+(o[x]??""):o[x]??l[x];g===v&&b!==v[x]&&(h.current=v={...v}),v[x]=b,(b!==l[x]||b!==u[x])&&(u=v)}return y.createElement(gp.Provider,{value:u,children:n})},Pf=({children:n,component:o},s)=>o?y.createElement(o,{params:s}):typeof n=="function"?n(s):n,Iv=n=>{let o=y.useRef(vp);const s=o.current;return o.current=Object.keys(n).length!==Object.keys(s).length||Object.entries(n).some(([l,u])=>u!==s[l])?n:s},wo=({path:n,nest:o,match:s,...l})=>{const u=ni(),[f]=Wa(u),[p,h,g]=s??xp(u.parser,n,f,o),v=Iv({...Av(),...h});if(!p)return null;const x=g?y.createElement(wp,{base:g},Pf(l,v)):Pf(l,v);return y.createElement(yp.Provider,{value:v,children:x})},Kn=y.forwardRef((n,o)=>{const s=ni(),[l,u]=Wa(s),{to:f="",href:p=f,onClick:h,asChild:g,children:v,className:x,replace:b,state:S,transition:j,...O}=n,k=fp(R=>{R.ctrlKey||R.metaKey||R.altKey||R.shiftKey||R.button!==0||(h?.(R),R.defaultPrevented||(R.preventDefault(),u(p,n)))}),N=s.hrefs(p[0]==="~"?p.slice(1):s.base+p,s);return g&&y.isValidElement(v)?y.cloneElement(v,{onClick:k,href:N}):y.createElement("a",{...O,onClick:k,href:N,className:x?.call?x(l===p):x,children:v,ref:o})}),bp=n=>Array.isArray(n)?n.flatMap(o=>bp(o&&o.type===y.Fragment?o.props.children:o)):[n],Mv=({children:n,location:o})=>{const s=ni(),[l]=Wa(s);for(const u of bp(n)){let f=0;if(y.isValidElement(u)&&(f=xp(s.parser,u.props.path,o||l,u.props.nest))[0])return y.cloneElement(u,{match:f})}return null},Co={v:[]},jf=()=>Co.v.forEach(n=>n()),Lv=n=>(Co.v.push(n)===1&&addEventListener("hashchange",jf),()=>{Co.v=Co.v.filter(o=>o!==n),Co.v.length||removeEventListener("hashchange",jf)}),Dv=()=>"/"+location.hash.replace(/^#?\/?/,""),Fv=(n,{state:o=null,replace:s=!1}={})=>{const l=location.href,[u,f]=n.replace(/^#?\/?/,"").split("?"),p=new URL(location.href);p.hash=`/${u}`,f&&(p.search=f);const h=p.href;s?history.replaceState(o,"",h):history.pushState(o,"",h);const g=typeof HashChangeEvent<"u"?new HashChangeEvent("hashchange",{oldURL:l,newURL:h}):new Event("hashchange",{detail:{oldURL:l,newURL:h}});dispatchEvent(g)},Sp=({ssrPath:n="/"}={})=>[dp.useSyncExternalStore(Lv,Dv,()=>n),Fv];Sp.hrefs=n=>"#"+n;var Rr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zv={setTimeout:(n,o)=>setTimeout(n,o),clearTimeout:n=>clearTimeout(n),setInterval:(n,o)=>setInterval(n,o),clearInterval:n=>clearInterval(n)},$v=class{#e=zv;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,o){return this.#e.setTimeout(n,o)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,o){return this.#e.setInterval(n,o)}clearInterval(n){this.#e.clearInterval(n)}},Qn=new $v;function Uv(n){setTimeout(n,0)}var qn=typeof window>"u"||"Deno"in globalThis;function Je(){}function Hv(n,o){return typeof n=="function"?n(o):n}function ka(n){return typeof n=="number"&&n>=0&&n!==1/0}function Cp(n,o){return Math.max(n+(o||0)-Date.now(),0)}function Nn(n,o){return typeof n=="function"?n(o):n}function xt(n,o){return typeof n=="function"?n(o):n}function Rf(n,o){const{type:s="all",exact:l,fetchStatus:u,predicate:f,queryKey:p,stale:h}=n;if(p){if(l){if(o.queryHash!==Va(p,o.options))return!1}else if(!Eo(o.queryKey,p))return!1}if(s!=="all"){const g=o.isActive();if(s==="active"&&!g||s==="inactive"&&g)return!1}return!(typeof h=="boolean"&&o.isStale()!==h||u&&u!==o.state.fetchStatus||f&&!f(o))}function Tf(n,o){const{exact:s,status:l,predicate:u,mutationKey:f}=n;if(f){if(!o.options.mutationKey)return!1;if(s){if(Gn(o.options.mutationKey)!==Gn(f))return!1}else if(!Eo(o.options.mutationKey,f))return!1}return!(l&&o.state.status!==l||u&&!u(o))}function Va(n,o){return(o?.queryKeyHashFn||Gn)(n)}function Gn(n){return JSON.stringify(n,(o,s)=>Ea(s)?Object.keys(s).sort().reduce((l,u)=>(l[u]=s[u],l),{}):s)}function Eo(n,o){return n===o?!0:typeof n!=typeof o?!1:n&&o&&typeof n=="object"&&typeof o=="object"?Object.keys(o).every(s=>Eo(n[s],o[s])):!1}var Bv=Object.prototype.hasOwnProperty;function kp(n,o,s=0){if(n===o)return n;if(s>500)return o;const l=Of(n)&&Of(o);if(!l&&!(Ea(n)&&Ea(o)))return o;const f=(l?n:Object.keys(n)).length,p=l?o:Object.keys(o),h=p.length,g=l?new Array(h):{};let v=0;for(let x=0;x<h;x++){const b=l?x:p[x],S=n[b],j=o[b];if(S===j){g[b]=S,(l?x<f:Bv.call(n,b))&&v++;continue}if(S===null||j===null||typeof S!="object"||typeof j!="object"){g[b]=j;continue}const O=kp(S,j,s+1);g[b]=O,O===S&&v++}return f===h&&v===f?n:g}function Gs(n,o){if(!o||Object.keys(n).length!==Object.keys(o).length)return!1;for(const s in n)if(n[s]!==o[s])return!1;return!0}function Of(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Ea(n){if(!_f(n))return!1;const o=n.constructor;if(o===void 0)return!0;const s=o.prototype;return!(!_f(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function _f(n){return Object.prototype.toString.call(n)==="[object Object]"}function Wv(n){return new Promise(o=>{Qn.setTimeout(o,n)})}function Na(n,o,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,o):s.structuralSharing!==!1?kp(n,o):o}function Vv(n,o,s=0){const l=[...n,o];return s&&l.length>s?l.slice(1):l}function Qv(n,o,s=0){const l=[o,...n];return s&&l.length>s?l.slice(0,-1):l}var Qa=Symbol();function Ep(n,o){return!n.queryFn&&o?.initialPromise?()=>o.initialPromise:!n.queryFn||n.queryFn===Qa?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ka(n,o){return typeof n=="function"?n(...o):!!n}function Kv(n,o,s){let l=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=o(),l||(l=!0,u.aborted?s():u.addEventListener("abort",s,{once:!0})),u)}),n}var qv=class extends Rr{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!qn&&window.addEventListener){const o=()=>n();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(o=>{o(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qa=new qv;function Pa(){let n,o;const s=new Promise((u,f)=>{n=u,o=f});s.status="pending",s.catch(()=>{});function l(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{l({status:"fulfilled",value:u}),n(u)},s.reject=u=>{l({status:"rejected",reason:u}),o(u)},s}var Gv=Uv;function Xv(){let n=[],o=0,s=h=>{h()},l=h=>{h()},u=Gv;const f=h=>{o?n.push(h):u(()=>{s(h)})},p=()=>{const h=n;n=[],h.length&&u(()=>{l(()=>{h.forEach(g=>{s(g)})})})};return{batch:h=>{let g;o++;try{g=h()}finally{o--,o||p()}return g},batchCalls:h=>(...g)=>{f(()=>{h(...g)})},schedule:f,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{u=h}}}var ze=Xv(),Yv=class extends Rr{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!qn&&window.addEventListener){const o=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},Xs=new Yv;function Zv(n){return Math.min(1e3*2**n,3e4)}function Np(n){return(n??"online")==="online"?Xs.isOnline():!0}var ja=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Pp(n){let o=!1,s=0,l;const u=Pa(),f=()=>u.status!=="pending",p=k=>{if(!f()){const N=new ja(k);S(N),n.onCancel?.(N)}},h=()=>{o=!0},g=()=>{o=!1},v=()=>qa.isFocused()&&(n.networkMode==="always"||Xs.isOnline())&&n.canRun(),x=()=>Np(n.networkMode)&&n.canRun(),b=k=>{f()||(l?.(),u.resolve(k))},S=k=>{f()||(l?.(),u.reject(k))},j=()=>new Promise(k=>{l=N=>{(f()||v())&&k(N)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),O=()=>{if(f())return;let k;const N=s===0?n.initialPromise:void 0;try{k=N??n.fn()}catch(R){k=Promise.reject(R)}Promise.resolve(k).then(b).catch(R=>{if(f())return;const I=n.retry??(qn?0:3),L=n.retryDelay??Zv,D=typeof L=="function"?L(s,R):L,Q=I===!0||typeof I=="number"&&s<I||typeof I=="function"&&I(s,R);if(o||!Q){S(R);return}s++,n.onFail?.(s,R),Wv(D).then(()=>v()?void 0:j()).then(()=>{o?S(R):O()})})};return{promise:u,status:()=>u.status,cancel:p,continue:()=>(l?.(),u),cancelRetry:h,continueRetry:g,canStart:x,start:()=>(x()?O():j().then(O),u)}}var jp=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ka(this.gcTime)&&(this.#e=Qn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(qn?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Qn.clearTimeout(this.#e),this.#e=void 0)}},Jv=class extends jp{#e;#t;#n;#o;#r;#i;#l;constructor(n){super(),this.#l=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#o=n.client,this.#n=this.#o.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=If(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const o=If(this.options);o.data!==void 0&&(this.setState(Af(o.data,o.dataUpdatedAt)),this.#e=o)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,o){const s=Na(this.state.data,n,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:o?.updatedAt,manual:o?.manual}),s}setState(n,o){this.#s({type:"setState",state:n,setStateOptions:o})}cancel(n){const o=this.#r?.promise;return this.#r?.cancel(n),o?o.then(Je).catch(Je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>xt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Nn(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Cp(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(o=>o.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(o=>o.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(o=>o!==n),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,o){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&o?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#l=!0,s.signal)})},u=()=>{const h=Ep(this.options,o),v=(()=>{const x={client:this.#o,queryKey:this.queryKey,meta:this.meta};return l(x),x})();return this.#l=!1,this.options.persister?this.options.persister(h,v,this):h(v)},p=(()=>{const h={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:u};return l(h),h})();this.options.behavior?.onFetch(p,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==p.fetchOptions?.meta)&&this.#s({type:"fetch",meta:p.fetchOptions?.meta}),this.#r=Pp({initialPromise:o?.initialPromise,fn:p.fetchFn,onCancel:h=>{h instanceof ja&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(h,g)=>{this.#s({type:"failed",failureCount:h,error:g})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof ja){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(n){const o=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Rp(s.data,this.options),fetchMeta:n.meta??null};case"success":const l={...s,...Af(n.data,n.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?l:void 0,l;case"error":const u=n.error;return{...s,error:u,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=o(this.state),ze.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function Rp(n,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Np(o.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Af(n,o){return{data:n,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function If(n){const o=typeof n.initialData=="function"?n.initialData():n.initialData,s=o!==void 0,l=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var ey=class extends Rr{constructor(n,o){super(),this.options=o,this.#e=n,this.#s=null,this.#l=Pa(),this.bindMethods(),this.setOptions(o)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#i;#l;#s;#m;#f;#p;#u;#c;#a;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Mf(this.#t,this.options)?this.#d():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ra(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ra(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#t.removeObserver(this)}setOptions(n){const o=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof xt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),o._defaulted&&!Gs(this.options,o)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const l=this.hasListeners();l&&Lf(this.#t,s,this.options,o)&&this.#d(),this.updateResult(),l&&(this.#t!==s||xt(this.options.enabled,this.#t)!==xt(o.enabled,this.#t)||Nn(this.options.staleTime,this.#t)!==Nn(o.staleTime,this.#t))&&this.#g();const u=this.#v();l&&(this.#t!==s||xt(this.options.enabled,this.#t)!==xt(o.enabled,this.#t)||u!==this.#a)&&this.#y(u)}getOptimisticResult(n){const o=this.#e.getQueryCache().build(this.#e,n),s=this.createResult(o,n);return ny(this,s)&&(this.#o=s,this.#i=this.options,this.#r=this.#t.state),s}getCurrentResult(){return this.#o}trackResult(n,o){return new Proxy(n,{get:(s,l)=>(this.trackProp(l),o?.(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,l))})}trackProp(n){this.#h.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const o=this.#e.defaultQueryOptions(n),s=this.#e.getQueryCache().build(this.#e,o);return s.fetch().then(()=>this.createResult(s,o))}fetch(n){return this.#d({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(n){this.#S();let o=this.#t.fetch(this.options,n);return n?.throwOnError||(o=o.catch(Je)),o}#g(){this.#w();const n=Nn(this.options.staleTime,this.#t);if(qn||this.#o.isStale||!ka(n))return;const s=Cp(this.#o.dataUpdatedAt,n)+1;this.#u=Qn.setTimeout(()=>{this.#o.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#b(),this.#a=n,!(qn||xt(this.options.enabled,this.#t)===!1||!ka(this.#a)||this.#a===0)&&(this.#c=Qn.setInterval(()=>{(this.options.refetchIntervalInBackground||qa.isFocused())&&this.#d()},this.#a))}#x(){this.#g(),this.#y(this.#v())}#w(){this.#u&&(Qn.clearTimeout(this.#u),this.#u=void 0)}#b(){this.#c&&(Qn.clearInterval(this.#c),this.#c=void 0)}createResult(n,o){const s=this.#t,l=this.options,u=this.#o,f=this.#r,p=this.#i,g=n!==s?n.state:this.#n,{state:v}=n;let x={...v},b=!1,S;if(o._optimisticResults){const ne=this.hasListeners(),F=!ne&&Mf(n,o),re=ne&&Lf(n,s,o,l);(F||re)&&(x={...x,...Rp(v.data,n.options)}),o._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:j,errorUpdatedAt:O,status:k}=x;S=x.data;let N=!1;if(o.placeholderData!==void 0&&S===void 0&&k==="pending"){let ne;u?.isPlaceholderData&&o.placeholderData===p?.placeholderData?(ne=u.data,N=!0):ne=typeof o.placeholderData=="function"?o.placeholderData(this.#p?.state.data,this.#p):o.placeholderData,ne!==void 0&&(k="success",S=Na(u?.data,ne,o),b=!0)}if(o.select&&S!==void 0&&!N)if(u&&S===f?.data&&o.select===this.#m)S=this.#f;else try{this.#m=o.select,S=o.select(S),S=Na(u?.data,S,o),this.#f=S,this.#s=null}catch(ne){this.#s=ne}this.#s&&(j=this.#s,S=this.#f,O=Date.now(),k="error");const R=x.fetchStatus==="fetching",I=k==="pending",L=k==="error",D=I&&R,Q=S!==void 0,V={status:k,fetchStatus:x.fetchStatus,isPending:I,isSuccess:k==="success",isError:L,isInitialLoading:D,isLoading:D,data:S,dataUpdatedAt:x.dataUpdatedAt,error:j,errorUpdatedAt:O,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>g.dataUpdateCount||x.errorUpdateCount>g.errorUpdateCount,isFetching:R,isRefetching:R&&!I,isLoadingError:L&&!Q,isPaused:x.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:L&&Q,isStale:Ga(n,o),refetch:this.refetch,promise:this.#l,isEnabled:xt(o.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ne=V.data!==void 0,F=V.status==="error"&&!ne,re=ce=>{F?ce.reject(V.error):ne&&ce.resolve(V.data)},pe=()=>{const ce=this.#l=V.promise=Pa();re(ce)},ee=this.#l;switch(ee.status){case"pending":n.queryHash===s.queryHash&&re(ee);break;case"fulfilled":(F||V.data!==ee.value)&&pe();break;case"rejected":(!F||V.error!==ee.reason)&&pe();break}}return V}updateResult(){const n=this.#o,o=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#p=this.#t),Gs(o,n))return;this.#o=o;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!this.#h.size)return!0;const f=new Set(u??this.#h);return this.options.throwOnError&&f.add("error"),Object.keys(this.#o).some(p=>{const h=p;return this.#o[h]!==n[h]&&f.has(h)})};this.#C({listeners:s()})}#S(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const o=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(o?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#C(n){ze.batch(()=>{n.listeners&&this.listeners.forEach(o=>{o(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ty(n,o){return xt(o.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&o.retryOnMount===!1)}function Mf(n,o){return ty(n,o)||n.state.data!==void 0&&Ra(n,o,o.refetchOnMount)}function Ra(n,o,s){if(xt(o.enabled,n)!==!1&&Nn(o.staleTime,n)!=="static"){const l=typeof s=="function"?s(n):s;return l==="always"||l!==!1&&Ga(n,o)}return!1}function Lf(n,o,s,l){return(n!==o||xt(l.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Ga(n,s)}function Ga(n,o){return xt(o.enabled,n)!==!1&&n.isStaleByTime(Nn(o.staleTime,n))}function ny(n,o){return!Gs(n.getCurrentResult(),o)}function Df(n){return{onFetch:(o,s)=>{const l=o.options,u=o.fetchOptions?.meta?.fetchMore?.direction,f=o.state.data?.pages||[],p=o.state.data?.pageParams||[];let h={pages:[],pageParams:[]},g=0;const v=async()=>{let x=!1;const b=O=>{Kv(O,()=>o.signal,()=>x=!0)},S=Ep(o.options,o.fetchOptions),j=async(O,k,N)=>{if(x)return Promise.reject();if(k==null&&O.pages.length)return Promise.resolve(O);const I=(()=>{const W={client:o.client,queryKey:o.queryKey,pageParam:k,direction:N?"backward":"forward",meta:o.options.meta};return b(W),W})(),L=await S(I),{maxPages:D}=o.options,Q=N?Qv:Vv;return{pages:Q(O.pages,L,D),pageParams:Q(O.pageParams,k,D)}};if(u&&f.length){const O=u==="backward",k=O?ry:Ff,N={pages:f,pageParams:p},R=k(l,N);h=await j(N,R,O)}else{const O=n??f.length;do{const k=g===0?p[0]??l.initialPageParam:Ff(l,h);if(g>0&&k==null)break;h=await j(h,k),g++}while(g<O)}return h};o.options.persister?o.fetchFn=()=>o.options.persister?.(v,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},s):o.fetchFn=v}}}function Ff(n,{pages:o,pageParams:s}){const l=o.length-1;return o.length>0?n.getNextPageParam(o[l],o,s[l],s):void 0}function ry(n,{pages:o,pageParams:s}){return o.length>0?n.getPreviousPageParam?.(o[0],o,s[0],s):void 0}var oy=class extends jp{#e;#t;#n;#o;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||Tp(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(o=>o!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(n){const o=()=>{this.#r({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Pp({fn:()=>this.options.mutationFn?this.options.mutationFn(n,s):Promise.reject(new Error("No mutationFn found")),onFail:(f,p)=>{this.#r({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#r({type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const l=this.state.status==="pending",u=!this.#o.canStart();try{if(l)o();else{this.#r({type:"pending",variables:n,isPaused:u}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,s);const p=await this.options.onMutate?.(n,s);p!==this.state.context&&this.#r({type:"pending",context:p,variables:n,isPaused:u})}const f=await this.#o.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,s),await this.options.onSuccess?.(f,n,this.state.context,s),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(f,null,n,this.state.context,s),this.#r({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,s)}catch(p){Promise.reject(p)}try{await this.options.onError?.(f,n,this.state.context,s)}catch(p){Promise.reject(p)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,s)}catch(p){Promise.reject(p)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,s)}catch(p){Promise.reject(p)}throw this.#r({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#r(n){const o=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=o(this.state),ze.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function Tp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sy=class extends Rr{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,o,s){const l=new oy({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(o),state:s});return this.add(l),l}add(n){this.#e.add(n);const o=Hs(n);if(typeof o=="string"){const s=this.#t.get(o);s?s.push(n):this.#t.set(o,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const o=Hs(n);if(typeof o=="string"){const s=this.#t.get(o);if(s)if(s.length>1){const l=s.indexOf(n);l!==-1&&s.splice(l,1)}else s[0]===n&&this.#t.delete(o)}}this.notify({type:"removed",mutation:n})}canRun(n){const o=Hs(n);if(typeof o=="string"){const l=this.#t.get(o)?.find(u=>u.state.status==="pending");return!l||l===n}else return!0}runNext(n){const o=Hs(n);return typeof o=="string"?this.#t.get(o)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ze.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const o={exact:!0,...n};return this.getAll().find(s=>Tf(o,s))}findAll(n={}){return this.getAll().filter(o=>Tf(n,o))}notify(n){ze.batch(()=>{this.listeners.forEach(o=>{o(n)})})}resumePausedMutations(){const n=this.getAll().filter(o=>o.state.isPaused);return ze.batch(()=>Promise.all(n.map(o=>o.continue().catch(Je))))}};function Hs(n){return n.options.scope?.id}var iy=class extends Rr{#e;#t=void 0;#n;#o;constructor(o,s){super(),this.#e=o,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){const s=this.options;this.options=this.#e.defaultMutationOptions(o),Gs(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&Gn(s.mutationKey)!==Gn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(o){this.#r(),this.#i(o)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(o,s){return this.#o=s,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(o)}#r(){const o=this.#n?.state??Tp();this.#t={...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset}}#i(o){ze.batch(()=>{if(this.#o&&this.hasListeners()){const s=this.#t.variables,l=this.#t.context,u={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(o?.type==="success"){try{this.#o.onSuccess?.(o.data,s,l,u)}catch(f){Promise.reject(f)}try{this.#o.onSettled?.(o.data,null,s,l,u)}catch(f){Promise.reject(f)}}else if(o?.type==="error"){try{this.#o.onError?.(o.error,s,l,u)}catch(f){Promise.reject(f)}try{this.#o.onSettled?.(void 0,o.error,s,l,u)}catch(f){Promise.reject(f)}}}this.listeners.forEach(s=>{s(this.#t)})})}},ly=class extends Rr{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,o,s){const l=o.queryKey,u=o.queryHash??Va(l,o);let f=this.get(u);return f||(f=new Jv({client:n,queryKey:l,queryHash:u,options:n.defaultQueryOptions(o),state:s,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const o=this.#e.get(n.queryHash);o&&(n.destroy(),o===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ze.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const o={exact:!0,...n};return this.getAll().find(s=>Rf(o,s))}findAll(n={}){const o=this.getAll();return Object.keys(n).length>0?o.filter(s=>Rf(n,s)):o}notify(n){ze.batch(()=>{this.listeners.forEach(o=>{o(n)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},ay=class{#e;#t;#n;#o;#r;#i;#l;#s;constructor(n={}){this.#e=n.queryCache||new ly,this.#t=n.mutationCache||new sy,this.#n=n.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#l=qa.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Xs.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state.data}ensureQueryData(n){const o=this.defaultQueryOptions(n),s=this.#e.build(this,o),l=s.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Nn(o.staleTime,s))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:o,state:s})=>{const l=s.data;return[o,l]})}setQueryData(n,o,s){const l=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(l.queryHash)?.state.data,p=Hv(o,f);if(p!==void 0)return this.#e.build(this,l).setData(p,{...s,manual:!0})}setQueriesData(n,o,s){return ze.batch(()=>this.#e.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,o,s)]))}getQueryState(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state}removeQueries(n){const o=this.#e;ze.batch(()=>{o.findAll(n).forEach(s=>{o.remove(s)})})}resetQueries(n,o){const s=this.#e;return ze.batch(()=>(s.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},o)))}cancelQueries(n,o={}){const s={revert:!0,...o},l=ze.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(l).then(Je).catch(Je)}invalidateQueries(n,o={}){return ze.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},o)))}refetchQueries(n,o={}){const s={...o,cancelRefetch:o.cancelRefetch??!0},l=ze.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(Je)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(Je)}fetchQuery(n){const o=this.defaultQueryOptions(n);o.retry===void 0&&(o.retry=!1);const s=this.#e.build(this,o);return s.isStaleByTime(Nn(o.staleTime,s))?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Je).catch(Je)}fetchInfiniteQuery(n){return n.behavior=Df(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Je).catch(Je)}ensureInfiniteQueryData(n){return n.behavior=Df(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Xs.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,o){this.#o.set(Gn(n),{queryKey:n,defaultOptions:o})}getQueryDefaults(n){const o=[...this.#o.values()],s={};return o.forEach(l=>{Eo(n,l.queryKey)&&Object.assign(s,l.defaultOptions)}),s}setMutationDefaults(n,o){this.#r.set(Gn(n),{mutationKey:n,defaultOptions:o})}getMutationDefaults(n){const o=[...this.#r.values()],s={};return o.forEach(l=>{Eo(n,l.mutationKey)&&Object.assign(s,l.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const o={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return o.queryHash||(o.queryHash=Va(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===Qa&&(o.enabled=!1),o}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Op=y.createContext(void 0),_p=n=>{const o=y.useContext(Op);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},uy=({client:n,children:o})=>(y.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(Op.Provider,{value:n,children:o})),Ap=y.createContext(!1),cy=()=>y.useContext(Ap);Ap.Provider;function dy(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var fy=y.createContext(dy()),py=()=>y.useContext(fy),hy=(n,o,s)=>{const l=s?.state.error&&typeof n.throwOnError=="function"?Ka(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(o.isReset()||(n.retryOnMount=!1))},my=n=>{y.useEffect(()=>{n.clearReset()},[n])},gy=({result:n,errorResetBoundary:o,throwOnError:s,query:l,suspense:u})=>n.isError&&!o.isReset()&&!n.isFetching&&l&&(u&&n.data===void 0||Ka(s,[n.error,l])),vy=n=>{if(n.suspense){const s=u=>u==="static"?u:Math.max(u??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...u)=>s(l(...u)):s(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},yy=(n,o)=>n.isLoading&&n.isFetching&&!o,xy=(n,o)=>n?.suspense&&o.isPending,zf=(n,o,s)=>o.fetchOptimistic(n).catch(()=>{s.clearReset()});function wy(n,o,s){const l=cy(),u=py(),f=_p(),p=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(p);const h=f.getQueryCache().get(p.queryHash);p._optimisticResults=l?"isRestoring":"optimistic",vy(p),hy(p,u,h),my(u);const g=!f.getQueryCache().get(p.queryHash),[v]=y.useState(()=>new o(f,p)),x=v.getOptimisticResult(p),b=!l&&n.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(S=>{const j=b?v.subscribe(ze.batchCalls(S)):Je;return v.updateResult(),j},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),y.useEffect(()=>{v.setOptions(p)},[p,v]),xy(p,x))throw zf(p,v,u);if(gy({result:x,errorResetBoundary:u,throwOnError:p.throwOnError,query:h,suspense:p.suspense}))throw x.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(p,x),p.experimental_prefetchInRender&&!qn&&yy(x,l)&&(g?zf(p,v,u):h?.promise)?.catch(Je).finally(()=>{v.updateResult()}),p.notifyOnChangeProps?x:v.trackResult(x)}function Tt(n,o){return wy(n,ey)}function Rt(n,o){const s=_p(),[l]=y.useState(()=>new iy(s,n));y.useEffect(()=>{l.setOptions(n)},[l,n]);const u=y.useSyncExternalStore(y.useCallback(p=>l.subscribe(ze.batchCalls(p)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=y.useCallback((p,h)=>{l.mutate(p,h).catch(Je)},[l]);if(u.error&&Ka(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}const Xa="__PORT_5000__".startsWith("__")?"":"__PORT_5000__";async function Ya(n){if(!n.ok){const o=await n.text()||n.statusText;throw new Error(`${n.status}: ${o}`)}}async function by(n,o){const s=await fetch(`${Xa}${n}`,o);return await Ya(s),await s.json()}async function wt(n,o,s){const l=await fetch(`${Xa}${o}`,{method:n,headers:s?{"Content-Type":"application/json"}:{},body:s?JSON.stringify(s):void 0});return await Ya(l),l}const Sy=({on401:n})=>async({queryKey:o})=>{const s=await fetch(`${Xa}${o.join("/")}`);return await Ya(s),await s.json()},Me=new ay({defaultOptions:{queries:{queryFn:Sy({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),Cy=1,ky=1e6;let ma=0;function Ey(){return ma=(ma+1)%Number.MAX_SAFE_INTEGER,ma.toString()}const ga=new Map,$f=n=>{if(ga.has(n))return;const o=setTimeout(()=>{ga.delete(n),ko({type:"REMOVE_TOAST",toastId:n})},ky);ga.set(n,o)},Ny=(n,o)=>{switch(o.type){case"ADD_TOAST":return{...n,toasts:[o.toast,...n.toasts].slice(0,Cy)};case"UPDATE_TOAST":return{...n,toasts:n.toasts.map(s=>s.id===o.toast.id?{...s,...o.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=o;return s?$f(s):n.toasts.forEach(l=>{$f(l.id)}),{...n,toasts:n.toasts.map(l=>l.id===s||s===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return o.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(s=>s.id!==o.toastId)}}},Qs=[];let Ks={toasts:[]};function ko(n){Ks=Ny(Ks,n),Qs.forEach(o=>{o(Ks)})}function Xn({...n}){const o=Ey(),s=u=>ko({type:"UPDATE_TOAST",toast:{...u,id:o}}),l=()=>ko({type:"DISMISS_TOAST",toastId:o});return ko({type:"ADD_TOAST",toast:{...n,id:o,open:!0,onOpenChange:u=>{u||l()}}}),{id:o,dismiss:l,update:s}}function Py(){const[n,o]=y.useState(Ks);return y.useEffect(()=>(Qs.push(o),()=>{const s=Qs.indexOf(o);s>-1&&Qs.splice(s,1)}),[n]),{...n,toast:Xn,dismiss:s=>ko({type:"DISMISS_TOAST",toastId:s})}}var ri=cp();const jy=up(ri);function Le(n,o,{checkForDefaultPrevented:s=!0}={}){return function(u){if(n?.(u),s===!1||!u.defaultPrevented)return o?.(u)}}function Uf(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Za(...n){return o=>{let s=!1;const l=n.map(u=>{const f=Uf(u,o);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<l.length;u++){const f=l[u];typeof f=="function"?f():Uf(n[u],null)}}}}function bt(...n){return y.useCallback(Za(...n),n)}function Ro(n,o=[]){let s=[];function l(f,p){const h=y.createContext(p),g=s.length;s=[...s,p];const v=b=>{const{scope:S,children:j,...O}=b,k=S?.[n]?.[g]||h,N=y.useMemo(()=>O,Object.values(O));return d.jsx(k.Provider,{value:N,children:j})};v.displayName=f+"Provider";function x(b,S){const j=S?.[n]?.[g]||h,O=y.useContext(j);if(O)return O;if(p!==void 0)return p;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[v,x]}const u=()=>{const f=s.map(p=>y.createContext(p));return function(h){const g=h?.[n]||f;return y.useMemo(()=>({[`__scope${n}`]:{...h,[n]:g}}),[h,g])}};return u.scopeName=n,[l,Ry(u,...o)]}function Ry(...n){const o=n[0];if(n.length===1)return o;const s=()=>{const l=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const p=l.reduce((h,{useScope:g,scopeName:v})=>{const b=g(f)[`__scope${v}`];return{...h,...b}},{});return y.useMemo(()=>({[`__scope${o.scopeName}`]:p}),[p])}};return s.scopeName=o.scopeName,s}function Hf(n){const o=Ty(n),s=y.forwardRef((l,u)=>{const{children:f,...p}=l,h=y.Children.toArray(f),g=h.find(_y);if(g){const v=g.props.children,x=h.map(b=>b===g?y.Children.count(v)>1?y.Children.only(null):y.isValidElement(v)?v.props.children:null:b);return d.jsx(o,{...p,ref:u,children:y.isValidElement(v)?y.cloneElement(v,void 0,x):null})}return d.jsx(o,{...p,ref:u,children:f})});return s.displayName=`${n}.Slot`,s}function Ty(n){const o=y.forwardRef((s,l)=>{const{children:u,...f}=s;if(y.isValidElement(u)){const p=Iy(u),h=Ay(f,u.props);return u.type!==y.Fragment&&(h.ref=l?Za(l,p):p),y.cloneElement(u,h)}return y.Children.count(u)>1?y.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Oy=Symbol("radix.slottable");function _y(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Oy}function Ay(n,o){const s={...o};for(const l in o){const u=n[l],f=o[l];/^on[A-Z]/.test(l)?u&&f?s[l]=(...h)=>{const g=f(...h);return u(...h),g}:u&&(s[l]=u):l==="style"?s[l]={...u,...f}:l==="className"&&(s[l]=[u,f].filter(Boolean).join(" "))}return{...n,...s}}function Iy(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function My(n){const o=n+"CollectionProvider",[s,l]=Ro(o),[u,f]=s(o,{collectionRef:{current:null},itemMap:new Map}),p=k=>{const{scope:N,children:R}=k,I=En.useRef(null),L=En.useRef(new Map).current;return d.jsx(u,{scope:N,itemMap:L,collectionRef:I,children:R})};p.displayName=o;const h=n+"CollectionSlot",g=Hf(h),v=En.forwardRef((k,N)=>{const{scope:R,children:I}=k,L=f(h,R),D=bt(N,L.collectionRef);return d.jsx(g,{ref:D,children:I})});v.displayName=h;const x=n+"CollectionItemSlot",b="data-radix-collection-item",S=Hf(x),j=En.forwardRef((k,N)=>{const{scope:R,children:I,...L}=k,D=En.useRef(null),Q=bt(N,D),W=f(x,R);return En.useEffect(()=>(W.itemMap.set(D,{ref:D,...L}),()=>{W.itemMap.delete(D)})),d.jsx(S,{[b]:"",ref:Q,children:I})});j.displayName=x;function O(k){const N=f(n+"CollectionConsumer",k);return En.useCallback(()=>{const I=N.collectionRef.current;if(!I)return[];const L=Array.from(I.querySelectorAll(`[${b}]`));return Array.from(N.itemMap.values()).sort((W,V)=>L.indexOf(W.ref.current)-L.indexOf(V.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:p,Slot:v,ItemSlot:j},O,l]}function Ly(n){const o=Dy(n),s=y.forwardRef((l,u)=>{const{children:f,...p}=l,h=y.Children.toArray(f),g=h.find(zy);if(g){const v=g.props.children,x=h.map(b=>b===g?y.Children.count(v)>1?y.Children.only(null):y.isValidElement(v)?v.props.children:null:b);return d.jsx(o,{...p,ref:u,children:y.isValidElement(v)?y.cloneElement(v,void 0,x):null})}return d.jsx(o,{...p,ref:u,children:f})});return s.displayName=`${n}.Slot`,s}function Dy(n){const o=y.forwardRef((s,l)=>{const{children:u,...f}=s;if(y.isValidElement(u)){const p=Uy(u),h=$y(f,u.props);return u.type!==y.Fragment&&(h.ref=l?Za(l,p):p),y.cloneElement(u,h)}return y.Children.count(u)>1?y.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Fy=Symbol("radix.slottable");function zy(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Fy}function $y(n,o){const s={...o};for(const l in o){const u=n[l],f=o[l];/^on[A-Z]/.test(l)?u&&f?s[l]=(...h)=>{const g=f(...h);return u(...h),g}:u&&(s[l]=u):l==="style"?s[l]={...u,...f}:l==="className"&&(s[l]=[u,f].filter(Boolean).join(" "))}return{...n,...s}}function Uy(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Hy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=Hy.reduce((n,o)=>{const s=Ly(`Primitive.${o}`),l=y.forwardRef((u,f)=>{const{asChild:p,...h}=u,g=p?s:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(g,{...h,ref:f})});return l.displayName=`Primitive.${o}`,{...n,[o]:l}},{});function Ip(n,o){n&&ri.flushSync(()=>n.dispatchEvent(o))}function Pn(n){const o=y.useRef(n);return y.useEffect(()=>{o.current=n}),y.useMemo(()=>(...s)=>o.current?.(...s),[])}function By(n,o=globalThis?.document){const s=Pn(n);y.useEffect(()=>{const l=u=>{u.key==="Escape"&&s(u)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[s,o])}var Wy="DismissableLayer",Ta="dismissableLayer.update",Vy="dismissableLayer.pointerDownOutside",Qy="dismissableLayer.focusOutside",Bf,Mp=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ja=y.forwardRef((n,o)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:p,onDismiss:h,...g}=n,v=y.useContext(Mp),[x,b]=y.useState(null),S=x?.ownerDocument??globalThis?.document,[,j]=y.useState({}),O=bt(o,V=>b(V)),k=Array.from(v.layers),[N]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),R=k.indexOf(N),I=x?k.indexOf(x):-1,L=v.layersWithOutsidePointerEventsDisabled.size>0,D=I>=R,Q=qy(V=>{const ne=V.target,F=[...v.branches].some(re=>re.contains(ne));!D||F||(u?.(V),p?.(V),V.defaultPrevented||h?.())},S),W=Gy(V=>{const ne=V.target;[...v.branches].some(re=>re.contains(ne))||(f?.(V),p?.(V),V.defaultPrevented||h?.())},S);return By(V=>{I===v.layers.size-1&&(l?.(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},S),y.useEffect(()=>{if(x)return s&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Bf=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(x)),v.layers.add(x),Wf(),()=>{s&&v.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Bf)}},[x,S,s,v]),y.useEffect(()=>()=>{x&&(v.layers.delete(x),v.layersWithOutsidePointerEventsDisabled.delete(x),Wf())},[x,v]),y.useEffect(()=>{const V=()=>j({});return document.addEventListener(Ta,V),()=>document.removeEventListener(Ta,V)},[]),d.jsx(Ve.div,{...g,ref:O,style:{pointerEvents:L?D?"auto":"none":void 0,...n.style},onFocusCapture:Le(n.onFocusCapture,W.onFocusCapture),onBlurCapture:Le(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Le(n.onPointerDownCapture,Q.onPointerDownCapture)})});Ja.displayName=Wy;var Ky="DismissableLayerBranch",Lp=y.forwardRef((n,o)=>{const s=y.useContext(Mp),l=y.useRef(null),u=bt(o,l);return y.useEffect(()=>{const f=l.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),d.jsx(Ve.div,{...n,ref:u})});Lp.displayName=Ky;function qy(n,o=globalThis?.document){const s=Pn(n),l=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const f=h=>{if(h.target&&!l.current){let g=function(){Dp(Vy,s,v,{discrete:!0})};const v={originalEvent:h};h.pointerType==="touch"?(o.removeEventListener("click",u.current),u.current=g,o.addEventListener("click",u.current,{once:!0})):g()}else o.removeEventListener("click",u.current);l.current=!1},p=window.setTimeout(()=>{o.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(p),o.removeEventListener("pointerdown",f),o.removeEventListener("click",u.current)}},[o,s]),{onPointerDownCapture:()=>l.current=!0}}function Gy(n,o=globalThis?.document){const s=Pn(n),l=y.useRef(!1);return y.useEffect(()=>{const u=f=>{f.target&&!l.current&&Dp(Qy,s,{originalEvent:f},{discrete:!1})};return o.addEventListener("focusin",u),()=>o.removeEventListener("focusin",u)},[o,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Wf(){const n=new CustomEvent(Ta);document.dispatchEvent(n)}function Dp(n,o,s,{discrete:l}){const u=s.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),l?Ip(u,f):u.dispatchEvent(f)}var Xy=Ja,Yy=Lp,$t=globalThis?.document?y.useLayoutEffect:()=>{},Zy="Portal",Fp=y.forwardRef((n,o)=>{const{container:s,...l}=n,[u,f]=y.useState(!1);$t(()=>f(!0),[]);const p=s||u&&globalThis?.document?.body;return p?jy.createPortal(d.jsx(Ve.div,{...l,ref:o}),p):null});Fp.displayName=Zy;function Jy(n,o){return y.useReducer((s,l)=>o[s][l]??s,n)}var oi=n=>{const{present:o,children:s}=n,l=ex(o),u=typeof s=="function"?s({present:l.isPresent}):y.Children.only(s),f=bt(l.ref,tx(u));return typeof s=="function"||l.isPresent?y.cloneElement(u,{ref:f}):null};oi.displayName="Presence";function ex(n){const[o,s]=y.useState(),l=y.useRef(null),u=y.useRef(n),f=y.useRef("none"),p=n?"mounted":"unmounted",[h,g]=Jy(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const v=Bs(l.current);f.current=h==="mounted"?v:"none"},[h]),$t(()=>{const v=l.current,x=u.current;if(x!==n){const S=f.current,j=Bs(v);n?g("MOUNT"):j==="none"||v?.display==="none"?g("UNMOUNT"):g(x&&S!==j?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,g]),$t(()=>{if(o){let v;const x=o.ownerDocument.defaultView??window,b=j=>{const k=Bs(l.current).includes(CSS.escape(j.animationName));if(j.target===o&&k&&(g("ANIMATION_END"),!u.current)){const N=o.style.animationFillMode;o.style.animationFillMode="forwards",v=x.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=N)})}},S=j=>{j.target===o&&(f.current=Bs(l.current))};return o.addEventListener("animationstart",S),o.addEventListener("animationcancel",b),o.addEventListener("animationend",b),()=>{x.clearTimeout(v),o.removeEventListener("animationstart",S),o.removeEventListener("animationcancel",b),o.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[o,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:y.useCallback(v=>{l.current=v?getComputedStyle(v):null,s(v)},[])}}function Bs(n){return n?.animationName||"none"}function tx(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var nx=Ua[" useInsertionEffect ".trim().toString()]||$t;function eu({prop:n,defaultProp:o,onChange:s=()=>{},caller:l}){const[u,f,p]=rx({defaultProp:o,onChange:s}),h=n!==void 0,g=h?n:u;{const x=y.useRef(n!==void 0);y.useEffect(()=>{const b=x.current;b!==h&&console.warn(`${l} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=h},[h,l])}const v=y.useCallback(x=>{if(h){const b=ox(x)?x(n):x;b!==n&&p.current?.(b)}else f(x)},[h,n,f,p]);return[g,v]}function rx({defaultProp:n,onChange:o}){const[s,l]=y.useState(n),u=y.useRef(s),f=y.useRef(o);return nx(()=>{f.current=o},[o]),y.useEffect(()=>{u.current!==s&&(f.current?.(s),u.current=s)},[s,u]),[s,l,f]}function ox(n){return typeof n=="function"}var sx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ix="VisuallyHidden",si=y.forwardRef((n,o)=>d.jsx(Ve.span,{...n,ref:o,style:{...sx,...n.style}}));si.displayName=ix;var lx=si,tu="ToastProvider",[nu,ax,ux]=My("Toast"),[zp]=Ro("Toast",[ux]),[cx,ii]=zp(tu),$p=n=>{const{__scopeToast:o,label:s="Notification",duration:l=5e3,swipeDirection:u="right",swipeThreshold:f=50,children:p}=n,[h,g]=y.useState(null),[v,x]=y.useState(0),b=y.useRef(!1),S=y.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${tu}\`. Expected non-empty \`string\`.`),d.jsx(nu.Provider,{scope:o,children:d.jsx(cx,{scope:o,label:s,duration:l,swipeDirection:u,swipeThreshold:f,toastCount:v,viewport:h,onViewportChange:g,onToastAdd:y.useCallback(()=>x(j=>j+1),[]),onToastRemove:y.useCallback(()=>x(j=>j-1),[]),isFocusedToastEscapeKeyDownRef:b,isClosePausedRef:S,children:p})})};$p.displayName=tu;var Up="ToastViewport",dx=["F8"],Oa="toast.viewportPause",_a="toast.viewportResume",Hp=y.forwardRef((n,o)=>{const{__scopeToast:s,hotkey:l=dx,label:u="Notifications ({hotkey})",...f}=n,p=ii(Up,s),h=ax(s),g=y.useRef(null),v=y.useRef(null),x=y.useRef(null),b=y.useRef(null),S=bt(o,b,p.onViewportChange),j=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=p.toastCount>0;y.useEffect(()=>{const N=R=>{l.length!==0&&l.every(L=>R[L]||R.code===L)&&b.current?.focus()};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[l]),y.useEffect(()=>{const N=g.current,R=b.current;if(O&&N&&R){const I=()=>{if(!p.isClosePausedRef.current){const W=new CustomEvent(Oa);R.dispatchEvent(W),p.isClosePausedRef.current=!0}},L=()=>{if(p.isClosePausedRef.current){const W=new CustomEvent(_a);R.dispatchEvent(W),p.isClosePausedRef.current=!1}},D=W=>{!N.contains(W.relatedTarget)&&L()},Q=()=>{N.contains(document.activeElement)||L()};return N.addEventListener("focusin",I),N.addEventListener("focusout",D),N.addEventListener("pointermove",I),N.addEventListener("pointerleave",Q),window.addEventListener("blur",I),window.addEventListener("focus",L),()=>{N.removeEventListener("focusin",I),N.removeEventListener("focusout",D),N.removeEventListener("pointermove",I),N.removeEventListener("pointerleave",Q),window.removeEventListener("blur",I),window.removeEventListener("focus",L)}}},[O,p.isClosePausedRef]);const k=y.useCallback(({tabbingDirection:N})=>{const I=h().map(L=>{const D=L.ref.current,Q=[D,...kx(D)];return N==="forwards"?Q:Q.reverse()});return(N==="forwards"?I.reverse():I).flat()},[h]);return y.useEffect(()=>{const N=b.current;if(N){const R=I=>{const L=I.altKey||I.ctrlKey||I.metaKey;if(I.key==="Tab"&&!L){const Q=document.activeElement,W=I.shiftKey;if(I.target===N&&W){v.current?.focus();return}const F=k({tabbingDirection:W?"backwards":"forwards"}),re=F.findIndex(pe=>pe===Q);va(F.slice(re+1))?I.preventDefault():W?v.current?.focus():x.current?.focus()}};return N.addEventListener("keydown",R),()=>N.removeEventListener("keydown",R)}},[h,k]),d.jsxs(Yy,{ref:g,role:"region","aria-label":u.replace("{hotkey}",j),tabIndex:-1,style:{pointerEvents:O?void 0:"none"},children:[O&&d.jsx(Aa,{ref:v,onFocusFromOutsideViewport:()=>{const N=k({tabbingDirection:"forwards"});va(N)}}),d.jsx(nu.Slot,{scope:s,children:d.jsx(Ve.ol,{tabIndex:-1,...f,ref:S})}),O&&d.jsx(Aa,{ref:x,onFocusFromOutsideViewport:()=>{const N=k({tabbingDirection:"backwards"});va(N)}})]})});Hp.displayName=Up;var Bp="ToastFocusProxy",Aa=y.forwardRef((n,o)=>{const{__scopeToast:s,onFocusFromOutsideViewport:l,...u}=n,f=ii(Bp,s);return d.jsx(si,{tabIndex:0,...u,ref:o,style:{position:"fixed"},onFocus:p=>{const h=p.relatedTarget;!f.viewport?.contains(h)&&l()}})});Aa.displayName=Bp;var To="Toast",fx="toast.swipeStart",px="toast.swipeMove",hx="toast.swipeCancel",mx="toast.swipeEnd",Wp=y.forwardRef((n,o)=>{const{forceMount:s,open:l,defaultOpen:u,onOpenChange:f,...p}=n,[h,g]=eu({prop:l,defaultProp:u??!0,onChange:f,caller:To});return d.jsx(oi,{present:s||h,children:d.jsx(yx,{open:h,...p,ref:o,onClose:()=>g(!1),onPause:Pn(n.onPause),onResume:Pn(n.onResume),onSwipeStart:Le(n.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Le(n.onSwipeMove,v=>{const{x,y:b}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${b}px`)}),onSwipeCancel:Le(n.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Le(n.onSwipeEnd,v=>{const{x,y:b}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${b}px`),g(!1)})})})});Wp.displayName=To;var[gx,vx]=zp(To,{onClose(){}}),yx=y.forwardRef((n,o)=>{const{__scopeToast:s,type:l="foreground",duration:u,open:f,onClose:p,onEscapeKeyDown:h,onPause:g,onResume:v,onSwipeStart:x,onSwipeMove:b,onSwipeCancel:S,onSwipeEnd:j,...O}=n,k=ii(To,s),[N,R]=y.useState(null),I=bt(o,G=>R(G)),L=y.useRef(null),D=y.useRef(null),Q=u||k.duration,W=y.useRef(0),V=y.useRef(Q),ne=y.useRef(0),{onToastAdd:F,onToastRemove:re}=k,pe=Pn(()=>{N?.contains(document.activeElement)&&k.viewport?.focus(),p()}),ee=y.useCallback(G=>{!G||G===1/0||(window.clearTimeout(ne.current),W.current=new Date().getTime(),ne.current=window.setTimeout(pe,G))},[pe]);y.useEffect(()=>{const G=k.viewport;if(G){const me=()=>{ee(V.current),v?.()},le=()=>{const ie=new Date().getTime()-W.current;V.current=V.current-ie,window.clearTimeout(ne.current),g?.()};return G.addEventListener(Oa,le),G.addEventListener(_a,me),()=>{G.removeEventListener(Oa,le),G.removeEventListener(_a,me)}}},[k.viewport,Q,g,v,ee]),y.useEffect(()=>{f&&!k.isClosePausedRef.current&&ee(Q)},[f,Q,k.isClosePausedRef,ee]),y.useEffect(()=>(F(),()=>re()),[F,re]);const ce=y.useMemo(()=>N?Yp(N):null,[N]);return k.viewport?d.jsxs(d.Fragment,{children:[ce&&d.jsx(xx,{__scopeToast:s,role:"status","aria-live":l==="foreground"?"assertive":"polite",children:ce}),d.jsx(gx,{scope:s,onClose:pe,children:ri.createPortal(d.jsx(nu.ItemSlot,{scope:s,children:d.jsx(Xy,{asChild:!0,onEscapeKeyDown:Le(h,()=>{k.isFocusedToastEscapeKeyDownRef.current||pe(),k.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(Ve.li,{tabIndex:0,"data-state":f?"open":"closed","data-swipe-direction":k.swipeDirection,...O,ref:I,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:Le(n.onKeyDown,G=>{G.key==="Escape"&&(h?.(G.nativeEvent),G.nativeEvent.defaultPrevented||(k.isFocusedToastEscapeKeyDownRef.current=!0,pe()))}),onPointerDown:Le(n.onPointerDown,G=>{G.button===0&&(L.current={x:G.clientX,y:G.clientY})}),onPointerMove:Le(n.onPointerMove,G=>{if(!L.current)return;const me=G.clientX-L.current.x,le=G.clientY-L.current.y,ie=!!D.current,M=["left","right"].includes(k.swipeDirection),q=["left","up"].includes(k.swipeDirection)?Math.min:Math.max,K=M?q(0,me):0,P=M?0:q(0,le),z=G.pointerType==="touch"?10:2,ue={x:K,y:P},de={originalEvent:G,delta:ue};ie?(D.current=ue,Ws(px,b,de,{discrete:!1})):Vf(ue,k.swipeDirection,z)?(D.current=ue,Ws(fx,x,de,{discrete:!1}),G.target.setPointerCapture(G.pointerId)):(Math.abs(me)>z||Math.abs(le)>z)&&(L.current=null)}),onPointerUp:Le(n.onPointerUp,G=>{const me=D.current,le=G.target;if(le.hasPointerCapture(G.pointerId)&&le.releasePointerCapture(G.pointerId),D.current=null,L.current=null,me){const ie=G.currentTarget,M={originalEvent:G,delta:me};Vf(me,k.swipeDirection,k.swipeThreshold)?Ws(mx,j,M,{discrete:!0}):Ws(hx,S,M,{discrete:!0}),ie.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),k.viewport)})]}):null}),xx=n=>{const{__scopeToast:o,children:s,...l}=n,u=ii(To,o),[f,p]=y.useState(!1),[h,g]=y.useState(!1);return Sx(()=>p(!0)),y.useEffect(()=>{const v=window.setTimeout(()=>g(!0),1e3);return()=>window.clearTimeout(v)},[]),h?null:d.jsx(Fp,{asChild:!0,children:d.jsx(si,{...l,children:f&&d.jsxs(d.Fragment,{children:[u.label," ",s]})})})},wx="ToastTitle",Vp=y.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n;return d.jsx(Ve.div,{...l,ref:o})});Vp.displayName=wx;var bx="ToastDescription",Qp=y.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n;return d.jsx(Ve.div,{...l,ref:o})});Qp.displayName=bx;var Kp="ToastAction",qp=y.forwardRef((n,o)=>{const{altText:s,...l}=n;return s.trim()?d.jsx(Xp,{altText:s,asChild:!0,children:d.jsx(ru,{...l,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${Kp}\`. Expected non-empty \`string\`.`),null)});qp.displayName=Kp;var Gp="ToastClose",ru=y.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n,u=vx(Gp,s);return d.jsx(Xp,{asChild:!0,children:d.jsx(Ve.button,{type:"button",...l,ref:o,onClick:Le(n.onClick,u.onClose)})})});ru.displayName=Gp;var Xp=y.forwardRef((n,o)=>{const{__scopeToast:s,altText:l,...u}=n;return d.jsx(Ve.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":l||void 0,...u,ref:o})});function Yp(n){const o=[];return Array.from(n.childNodes).forEach(l=>{if(l.nodeType===l.TEXT_NODE&&l.textContent&&o.push(l.textContent),Cx(l)){const u=l.ariaHidden||l.hidden||l.style.display==="none",f=l.dataset.radixToastAnnounceExclude==="";if(!u)if(f){const p=l.dataset.radixToastAnnounceAlt;p&&o.push(p)}else o.push(...Yp(l))}}),o}function Ws(n,o,s,{discrete:l}){const u=s.originalEvent.currentTarget,f=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),l?Ip(u,f):u.dispatchEvent(f)}var Vf=(n,o,s=0)=>{const l=Math.abs(n.x),u=Math.abs(n.y),f=l>u;return o==="left"||o==="right"?f&&l>s:!f&&u>s};function Sx(n=()=>{}){const o=Pn(n);$t(()=>{let s=0,l=0;return s=window.requestAnimationFrame(()=>l=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(l)}},[o])}function Cx(n){return n.nodeType===n.ELEMENT_NODE}function kx(n){const o=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const u=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||u?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function va(n){const o=document.activeElement;return n.some(s=>s===o?!0:(s.focus(),document.activeElement!==o))}var Ex=$p,Zp=Hp,Jp=Wp,eh=Vp,th=Qp,nh=qp,rh=ru;function oh(n){var o,s,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(o=0;o<u;o++)n[o]&&(s=oh(n[o]))&&(l&&(l+=" "),l+=s)}else for(s in n)n[s]&&(l&&(l+=" "),l+=s);return l}function sh(){for(var n,o,s=0,l="",u=arguments.length;s<u;s++)(n=arguments[s])&&(o=oh(n))&&(l&&(l+=" "),l+=o);return l}const Qf=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Kf=sh,Nx=(n,o)=>s=>{var l;if(o?.variants==null)return Kf(n,s?.class,s?.className);const{variants:u,defaultVariants:f}=o,p=Object.keys(u).map(v=>{const x=s?.[v],b=f?.[v];if(x===null)return null;const S=Qf(x)||Qf(b);return u[v][S]}),h=s&&Object.entries(s).reduce((v,x)=>{let[b,S]=x;return S===void 0||(v[b]=S),v},{}),g=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((v,x)=>{let{class:b,className:S,...j}=x;return Object.entries(j).every(O=>{let[k,N]=O;return Array.isArray(N)?N.includes({...f,...h}[k]):{...f,...h}[k]===N})?[...v,b,S]:v},[]);return Kf(n,p,g,s?.class,s?.className)};const Px=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ih=(...n)=>n.filter((o,s,l)=>!!o&&l.indexOf(o)===s).join(" ");var jx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Rx=y.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u="",children:f,iconNode:p,...h},g)=>y.createElement("svg",{ref:g,...jx,width:o,height:o,stroke:n,strokeWidth:l?Number(s)*24/Number(o):s,className:ih("lucide",u),...h},[...p.map(([v,x])=>y.createElement(v,x)),...Array.isArray(f)?f:[f]]));const lh=(n,o)=>{const s=y.forwardRef(({className:l,...u},f)=>y.createElement(Rx,{ref:f,iconNode:o,className:ih(`lucide-${Px(n)}`,l),...u}));return s.displayName=`${n}`,s};const Tx=lh("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Ox=lh("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ou="-",_x=n=>{const o=Ix(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:p=>{const h=p.split(ou);return h[0]===""&&h.length!==1&&h.shift(),ah(h,o)||Ax(p)},getConflictingClassGroupIds:(p,h)=>{const g=s[p]||[];return h&&l[p]?[...g,...l[p]]:g}}},ah=(n,o)=>{if(n.length===0)return o.classGroupId;const s=n[0],l=o.nextPart.get(s),u=l?ah(n.slice(1),l):void 0;if(u)return u;if(o.validators.length===0)return;const f=n.join(ou);return o.validators.find(({validator:p})=>p(f))?.classGroupId},qf=/^\[(.+)\]$/,Ax=n=>{if(qf.test(n)){const o=qf.exec(n)[1],s=o?.substring(0,o.indexOf(":"));if(s)return"arbitrary.."+s}},Ix=n=>{const{theme:o,prefix:s}=n,l={nextPart:new Map,validators:[]};return Lx(Object.entries(n.classGroups),s).forEach(([f,p])=>{Ia(p,l,f,o)}),l},Ia=(n,o,s,l)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?o:Gf(o,u);f.classGroupId=s;return}if(typeof u=="function"){if(Mx(u)){Ia(u(l),o,s,l);return}o.validators.push({validator:u,classGroupId:s});return}Object.entries(u).forEach(([f,p])=>{Ia(p,Gf(o,f),s,l)})})},Gf=(n,o)=>{let s=n;return o.split(ou).forEach(l=>{s.nextPart.has(l)||s.nextPart.set(l,{nextPart:new Map,validators:[]}),s=s.nextPart.get(l)}),s},Mx=n=>n.isThemeGetter,Lx=(n,o)=>o?n.map(([s,l])=>{const u=l.map(f=>typeof f=="string"?o+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([p,h])=>[o+p,h])):f);return[s,u]}):n,Dx=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,s=new Map,l=new Map;const u=(f,p)=>{s.set(f,p),o++,o>n&&(o=0,l=s,s=new Map)};return{get(f){let p=s.get(f);if(p!==void 0)return p;if((p=l.get(f))!==void 0)return u(f,p),p},set(f,p){s.has(f)?s.set(f,p):u(f,p)}}},uh="!",Fx=n=>{const{separator:o,experimentalParseClassName:s}=n,l=o.length===1,u=o[0],f=o.length,p=h=>{const g=[];let v=0,x=0,b;for(let N=0;N<h.length;N++){let R=h[N];if(v===0){if(R===u&&(l||h.slice(N,N+f)===o)){g.push(h.slice(x,N)),x=N+f;continue}if(R==="/"){b=N;continue}}R==="["?v++:R==="]"&&v--}const S=g.length===0?h:h.substring(x),j=S.startsWith(uh),O=j?S.substring(1):S,k=b&&b>x?b-x:void 0;return{modifiers:g,hasImportantModifier:j,baseClassName:O,maybePostfixModifierPosition:k}};return s?h=>s({className:h,parseClassName:p}):p},zx=n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(l=>{l[0]==="["?(o.push(...s.sort(),l),s=[]):s.push(l)}),o.push(...s.sort()),o},$x=n=>({cache:Dx(n.cacheSize),parseClassName:Fx(n),..._x(n)}),Ux=/\s+/,Hx=(n,o)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:u}=o,f=[],p=n.trim().split(Ux);let h="";for(let g=p.length-1;g>=0;g-=1){const v=p[g],{modifiers:x,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:j}=s(v);let O=!!j,k=l(O?S.substring(0,j):S);if(!k){if(!O){h=v+(h.length>0?" "+h:h);continue}if(k=l(S),!k){h=v+(h.length>0?" "+h:h);continue}O=!1}const N=zx(x).join(":"),R=b?N+uh:N,I=R+k;if(f.includes(I))continue;f.push(I);const L=u(k,O);for(let D=0;D<L.length;++D){const Q=L[D];f.push(R+Q)}h=v+(h.length>0?" "+h:h)}return h};function Bx(){let n=0,o,s,l="";for(;n<arguments.length;)(o=arguments[n++])&&(s=ch(o))&&(l&&(l+=" "),l+=s);return l}const ch=n=>{if(typeof n=="string")return n;let o,s="";for(let l=0;l<n.length;l++)n[l]&&(o=ch(n[l]))&&(s&&(s+=" "),s+=o);return s};function Wx(n,...o){let s,l,u,f=p;function p(g){const v=o.reduce((x,b)=>b(x),n());return s=$x(v),l=s.cache.get,u=s.cache.set,f=h,h(g)}function h(g){const v=l(g);if(v)return v;const x=Hx(g,s);return u(g,x),x}return function(){return f(Bx.apply(null,arguments))}}const Pe=n=>{const o=s=>s[n]||[];return o.isThemeGetter=!0,o},dh=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vx=/^\d+\/\d+$/,Qx=new Set(["px","full","screen"]),Kx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=n=>kr(n)||Qx.has(n)||Vx.test(n),bn=n=>Tr(n,"length",sw),kr=n=>!!n&&!Number.isNaN(Number(n)),ya=n=>Tr(n,"number",kr),bo=n=>!!n&&Number.isInteger(Number(n)),Zx=n=>n.endsWith("%")&&kr(n.slice(0,-1)),fe=n=>dh.test(n),Sn=n=>Kx.test(n),Jx=new Set(["length","size","percentage"]),ew=n=>Tr(n,Jx,fh),tw=n=>Tr(n,"position",fh),nw=new Set(["image","url"]),rw=n=>Tr(n,nw,lw),ow=n=>Tr(n,"",iw),So=()=>!0,Tr=(n,o,s)=>{const l=dh.exec(n);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):s(l[2]):!1},sw=n=>qx.test(n)&&!Gx.test(n),fh=()=>!1,iw=n=>Xx.test(n),lw=n=>Yx.test(n),aw=()=>{const n=Pe("colors"),o=Pe("spacing"),s=Pe("blur"),l=Pe("brightness"),u=Pe("borderColor"),f=Pe("borderRadius"),p=Pe("borderSpacing"),h=Pe("borderWidth"),g=Pe("contrast"),v=Pe("grayscale"),x=Pe("hueRotate"),b=Pe("invert"),S=Pe("gap"),j=Pe("gradientColorStops"),O=Pe("gradientColorStopPositions"),k=Pe("inset"),N=Pe("margin"),R=Pe("opacity"),I=Pe("padding"),L=Pe("saturate"),D=Pe("scale"),Q=Pe("sepia"),W=Pe("skew"),V=Pe("space"),ne=Pe("translate"),F=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",fe,o],ee=()=>[fe,o],ce=()=>["",Yt,bn],G=()=>["auto",kr,fe],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",fe],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[kr,fe];return{cacheSize:500,separator:":",theme:{colors:[So],spacing:[Yt,bn],blur:["none","",Sn,fe],brightness:P(),borderColor:[n],borderRadius:["none","","full",Sn,fe],borderSpacing:ee(),borderWidth:ce(),contrast:P(),grayscale:q(),hueRotate:P(),invert:q(),gap:ee(),gradientColorStops:[n],gradientColorStopPositions:[Zx,bn],inset:pe(),margin:pe(),opacity:P(),padding:ee(),saturate:P(),scale:P(),sepia:q(),skew:P(),space:ee(),translate:ee()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[Sn]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...me(),fe]}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bo,fe]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",bo,fe]}],"grid-cols":[{"grid-cols":[So]}],"col-start-end":[{col:["auto",{span:["full",bo,fe]},fe]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[So]}],"row-start-end":[{row:["auto",{span:[bo,fe]},fe]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,o]}],"min-w":[{"min-w":[fe,o,"min","max","fit"]}],"max-w":[{"max-w":[fe,o,"none","full","min","max","fit","prose",{screen:[Sn]},Sn]}],h:[{h:[fe,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,o,"auto","min","max","fit"]}],"font-size":[{text:["base",Sn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ya]}],"font-family":[{font:[So]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",kr,ya]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yt,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yt,bn]}],"underline-offset":[{"underline-offset":["auto",Yt,fe]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),tw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ew]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rw]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:le()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[Yt,fe]}],"outline-w":[{outline:[Yt,bn]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[Yt,bn]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Sn,ow]}],"shadow-color":[{shadow:[So]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[l]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",Sn,fe]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[b]}],saturate:[{saturate:[L]}],sepia:[{sepia:[Q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-y":[{"border-spacing-y":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[bo,fe]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[W]}],"skew-y":[{"skew-y":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Yt,bn,ya]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},uw=Wx(aw);function ft(...n){return uw(sh(n))}const cw=Ex,ph=y.forwardRef(({className:n,...o},s)=>d.jsx(Zp,{ref:s,className:ft("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...o}));ph.displayName=Zp.displayName;const dw=Nx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),hh=y.forwardRef(({className:n,variant:o,...s},l)=>d.jsx(Jp,{ref:l,className:ft(dw({variant:o}),n),...s}));hh.displayName=Jp.displayName;const fw=y.forwardRef(({className:n,...o},s)=>d.jsx(nh,{ref:s,className:ft("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...o}));fw.displayName=nh.displayName;const mh=y.forwardRef(({className:n,...o},s)=>d.jsx(rh,{ref:s,className:ft("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...o,children:d.jsx(Ox,{className:"h-4 w-4"})}));mh.displayName=rh.displayName;const gh=y.forwardRef(({className:n,...o},s)=>d.jsx(eh,{ref:s,className:ft("text-sm font-semibold",n),...o}));gh.displayName=eh.displayName;const vh=y.forwardRef(({className:n,...o},s)=>d.jsx(th,{ref:s,className:ft("text-sm opacity-90",n),...o}));vh.displayName=th.displayName;function pw(){const{toasts:n}=Py();return d.jsxs(cw,{children:[n.map(function({id:o,title:s,description:l,action:u,...f}){return d.jsxs(hh,{...f,children:[d.jsxs("div",{className:"grid gap-1",children:[s&&d.jsx(gh,{children:s}),l&&d.jsx(vh,{children:l})]}),u,d.jsx(mh,{})]},o)}),d.jsx(ph,{})]})}var hw=Ua[" useId ".trim().toString()]||(()=>{}),mw=0;function yh(n){const[o,s]=y.useState(hw());return $t(()=>{s(l=>l??String(mw++))},[n]),o?`radix-${o}`:""}const gw=["top","right","bottom","left"],jn=Math.min,ct=Math.max,Ys=Math.round,Vs=Math.floor,zt=n=>({x:n,y:n}),vw={left:"right",right:"left",bottom:"top",top:"bottom"};function Ma(n,o,s){return ct(n,jn(o,s))}function Zt(n,o){return typeof n=="function"?n(o):n}function Jt(n){return n.split("-")[0]}function Or(n){return n.split("-")[1]}function su(n){return n==="x"?"y":"x"}function iu(n){return n==="y"?"height":"width"}function Ft(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function lu(n){return su(Ft(n))}function yw(n,o,s){s===void 0&&(s=!1);const l=Or(n),u=lu(n),f=iu(u);let p=u==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return o.reference[f]>o.floating[f]&&(p=Zs(p)),[p,Zs(p)]}function xw(n){const o=Zs(n);return[La(n),o,La(o)]}function La(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Xf=["left","right"],Yf=["right","left"],ww=["top","bottom"],bw=["bottom","top"];function Sw(n,o,s){switch(n){case"top":case"bottom":return s?o?Yf:Xf:o?Xf:Yf;case"left":case"right":return o?ww:bw;default:return[]}}function Cw(n,o,s,l){const u=Or(n);let f=Sw(Jt(n),s==="start",l);return u&&(f=f.map(p=>p+"-"+u),o&&(f=f.concat(f.map(La)))),f}function Zs(n){const o=Jt(n);return vw[o]+n.slice(o.length)}function kw(n){return{top:0,right:0,bottom:0,left:0,...n}}function xh(n){return typeof n!="number"?kw(n):{top:n,right:n,bottom:n,left:n}}function Js(n){const{x:o,y:s,width:l,height:u}=n;return{width:l,height:u,top:s,left:o,right:o+l,bottom:s+u,x:o,y:s}}function Zf(n,o,s){let{reference:l,floating:u}=n;const f=Ft(o),p=lu(o),h=iu(p),g=Jt(o),v=f==="y",x=l.x+l.width/2-u.width/2,b=l.y+l.height/2-u.height/2,S=l[h]/2-u[h]/2;let j;switch(g){case"top":j={x,y:l.y-u.height};break;case"bottom":j={x,y:l.y+l.height};break;case"right":j={x:l.x+l.width,y:b};break;case"left":j={x:l.x-u.width,y:b};break;default:j={x:l.x,y:l.y}}switch(Or(o)){case"start":j[p]-=S*(s&&v?-1:1);break;case"end":j[p]+=S*(s&&v?-1:1);break}return j}async function Ew(n,o){var s;o===void 0&&(o={});const{x:l,y:u,platform:f,rects:p,elements:h,strategy:g}=n,{boundary:v="clippingAncestors",rootBoundary:x="viewport",elementContext:b="floating",altBoundary:S=!1,padding:j=0}=Zt(o,n),O=xh(j),N=h[S?b==="floating"?"reference":"floating":b],R=Js(await f.getClippingRect({element:(s=await(f.isElement==null?void 0:f.isElement(N)))==null||s?N:N.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:v,rootBoundary:x,strategy:g})),I=b==="floating"?{x:l,y:u,width:p.floating.width,height:p.floating.height}:p.reference,L=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),D=await(f.isElement==null?void 0:f.isElement(L))?await(f.getScale==null?void 0:f.getScale(L))||{x:1,y:1}:{x:1,y:1},Q=Js(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:I,offsetParent:L,strategy:g}):I);return{top:(R.top-Q.top+O.top)/D.y,bottom:(Q.bottom-R.bottom+O.bottom)/D.y,left:(R.left-Q.left+O.left)/D.x,right:(Q.right-R.right+O.right)/D.x}}const Nw=50,Pw=async(n,o,s)=>{const{placement:l="bottom",strategy:u="absolute",middleware:f=[],platform:p}=s,h=p.detectOverflow?p:{...p,detectOverflow:Ew},g=await(p.isRTL==null?void 0:p.isRTL(o));let v=await p.getElementRects({reference:n,floating:o,strategy:u}),{x,y:b}=Zf(v,l,g),S=l,j=0;const O={};for(let k=0;k<f.length;k++){const N=f[k];if(!N)continue;const{name:R,fn:I}=N,{x:L,y:D,data:Q,reset:W}=await I({x,y:b,initialPlacement:l,placement:S,strategy:u,middlewareData:O,rects:v,platform:h,elements:{reference:n,floating:o}});x=L??x,b=D??b,O[R]={...O[R],...Q},W&&j<Nw&&(j++,typeof W=="object"&&(W.placement&&(S=W.placement),W.rects&&(v=W.rects===!0?await p.getElementRects({reference:n,floating:o,strategy:u}):W.rects),{x,y:b}=Zf(v,S,g)),k=-1)}return{x,y:b,placement:S,strategy:u,middlewareData:O}},jw=n=>({name:"arrow",options:n,async fn(o){const{x:s,y:l,placement:u,rects:f,platform:p,elements:h,middlewareData:g}=o,{element:v,padding:x=0}=Zt(n,o)||{};if(v==null)return{};const b=xh(x),S={x:s,y:l},j=lu(u),O=iu(j),k=await p.getDimensions(v),N=j==="y",R=N?"top":"left",I=N?"bottom":"right",L=N?"clientHeight":"clientWidth",D=f.reference[O]+f.reference[j]-S[j]-f.floating[O],Q=S[j]-f.reference[j],W=await(p.getOffsetParent==null?void 0:p.getOffsetParent(v));let V=W?W[L]:0;(!V||!await(p.isElement==null?void 0:p.isElement(W)))&&(V=h.floating[L]||f.floating[O]);const ne=D/2-Q/2,F=V/2-k[O]/2-1,re=jn(b[R],F),pe=jn(b[I],F),ee=re,ce=V-k[O]-pe,G=V/2-k[O]/2+ne,me=Ma(ee,G,ce),le=!g.arrow&&Or(u)!=null&&G!==me&&f.reference[O]/2-(G<ee?re:pe)-k[O]/2<0,ie=le?G<ee?G-ee:G-ce:0;return{[j]:S[j]+ie,data:{[j]:me,centerOffset:G-me-ie,...le&&{alignmentOffset:ie}},reset:le}}}),Rw=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var s,l;const{placement:u,middlewareData:f,rects:p,initialPlacement:h,platform:g,elements:v}=o,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:k=!0,...N}=Zt(n,o);if((s=f.arrow)!=null&&s.alignmentOffset)return{};const R=Jt(u),I=Ft(h),L=Jt(h)===h,D=await(g.isRTL==null?void 0:g.isRTL(v.floating)),Q=S||(L||!k?[Zs(h)]:xw(h)),W=O!=="none";!S&&W&&Q.push(...Cw(h,k,O,D));const V=[h,...Q],ne=await g.detectOverflow(o,N),F=[];let re=((l=f.flip)==null?void 0:l.overflows)||[];if(x&&F.push(ne[R]),b){const G=yw(u,p,D);F.push(ne[G[0]],ne[G[1]])}if(re=[...re,{placement:u,overflows:F}],!F.every(G=>G<=0)){var pe,ee;const G=(((pe=f.flip)==null?void 0:pe.index)||0)+1,me=V[G];if(me&&(!(b==="alignment"?I!==Ft(me):!1)||re.every(M=>Ft(M.placement)===I?M.overflows[0]>0:!0)))return{data:{index:G,overflows:re},reset:{placement:me}};let le=(ee=re.filter(ie=>ie.overflows[0]<=0).sort((ie,M)=>ie.overflows[1]-M.overflows[1])[0])==null?void 0:ee.placement;if(!le)switch(j){case"bestFit":{var ce;const ie=(ce=re.filter(M=>{if(W){const q=Ft(M.placement);return q===I||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,K)=>q+K,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:ce[0];ie&&(le=ie);break}case"initialPlacement":le=h;break}if(u!==le)return{reset:{placement:le}}}return{}}}};function Jf(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function ep(n){return gw.some(o=>n[o]>=0)}const Tw=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:s,platform:l}=o,{strategy:u="referenceHidden",...f}=Zt(n,o);switch(u){case"referenceHidden":{const p=await l.detectOverflow(o,{...f,elementContext:"reference"}),h=Jf(p,s.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:ep(h)}}}case"escaped":{const p=await l.detectOverflow(o,{...f,altBoundary:!0}),h=Jf(p,s.floating);return{data:{escapedOffsets:h,escaped:ep(h)}}}default:return{}}}}},wh=new Set(["left","top"]);async function Ow(n,o){const{placement:s,platform:l,elements:u}=n,f=await(l.isRTL==null?void 0:l.isRTL(u.floating)),p=Jt(s),h=Or(s),g=Ft(s)==="y",v=wh.has(p)?-1:1,x=f&&g?-1:1,b=Zt(o,n);let{mainAxis:S,crossAxis:j,alignmentAxis:O}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof O=="number"&&(j=h==="end"?O*-1:O),g?{x:j*x,y:S*v}:{x:S*v,y:j*x}}const _w=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var s,l;const{x:u,y:f,placement:p,middlewareData:h}=o,g=await Ow(o,n);return p===((s=h.offset)==null?void 0:s.placement)&&(l=h.arrow)!=null&&l.alignmentOffset?{}:{x:u+g.x,y:f+g.y,data:{...g,placement:p}}}}},Aw=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:s,y:l,placement:u,platform:f}=o,{mainAxis:p=!0,crossAxis:h=!1,limiter:g={fn:R=>{let{x:I,y:L}=R;return{x:I,y:L}}},...v}=Zt(n,o),x={x:s,y:l},b=await f.detectOverflow(o,v),S=Ft(Jt(u)),j=su(S);let O=x[j],k=x[S];if(p){const R=j==="y"?"top":"left",I=j==="y"?"bottom":"right",L=O+b[R],D=O-b[I];O=Ma(L,O,D)}if(h){const R=S==="y"?"top":"left",I=S==="y"?"bottom":"right",L=k+b[R],D=k-b[I];k=Ma(L,k,D)}const N=g.fn({...o,[j]:O,[S]:k});return{...N,data:{x:N.x-s,y:N.y-l,enabled:{[j]:p,[S]:h}}}}}},Iw=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:s,y:l,placement:u,rects:f,middlewareData:p}=o,{offset:h=0,mainAxis:g=!0,crossAxis:v=!0}=Zt(n,o),x={x:s,y:l},b=Ft(u),S=su(b);let j=x[S],O=x[b];const k=Zt(h,o),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(g){const L=S==="y"?"height":"width",D=f.reference[S]-f.floating[L]+N.mainAxis,Q=f.reference[S]+f.reference[L]-N.mainAxis;j<D?j=D:j>Q&&(j=Q)}if(v){var R,I;const L=S==="y"?"width":"height",D=wh.has(Jt(u)),Q=f.reference[b]-f.floating[L]+(D&&((R=p.offset)==null?void 0:R[b])||0)+(D?0:N.crossAxis),W=f.reference[b]+f.reference[L]+(D?0:((I=p.offset)==null?void 0:I[b])||0)-(D?N.crossAxis:0);O<Q?O=Q:O>W&&(O=W)}return{[S]:j,[b]:O}}}},Mw=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var s,l;const{placement:u,rects:f,platform:p,elements:h}=o,{apply:g=()=>{},...v}=Zt(n,o),x=await p.detectOverflow(o,v),b=Jt(u),S=Or(u),j=Ft(u)==="y",{width:O,height:k}=f.floating;let N,R;b==="top"||b==="bottom"?(N=b,R=S===(await(p.isRTL==null?void 0:p.isRTL(h.floating))?"start":"end")?"left":"right"):(R=b,N=S==="end"?"top":"bottom");const I=k-x.top-x.bottom,L=O-x.left-x.right,D=jn(k-x[N],I),Q=jn(O-x[R],L),W=!o.middlewareData.shift;let V=D,ne=Q;if((s=o.middlewareData.shift)!=null&&s.enabled.x&&(ne=L),(l=o.middlewareData.shift)!=null&&l.enabled.y&&(V=I),W&&!S){const re=ct(x.left,0),pe=ct(x.right,0),ee=ct(x.top,0),ce=ct(x.bottom,0);j?ne=O-2*(re!==0||pe!==0?re+pe:ct(x.left,x.right)):V=k-2*(ee!==0||ce!==0?ee+ce:ct(x.top,x.bottom))}await g({...o,availableWidth:ne,availableHeight:V});const F=await p.getDimensions(h.floating);return O!==F.width||k!==F.height?{reset:{rects:!0}}:{}}}};function li(){return typeof window<"u"}function _r(n){return bh(n)?(n.nodeName||"").toLowerCase():"#document"}function dt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Ut(n){var o;return(o=(bh(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function bh(n){return li()?n instanceof Node||n instanceof dt(n).Node:!1}function Ot(n){return li()?n instanceof Element||n instanceof dt(n).Element:!1}function en(n){return li()?n instanceof HTMLElement||n instanceof dt(n).HTMLElement:!1}function tp(n){return!li()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof dt(n).ShadowRoot}function Oo(n){const{overflow:o,overflowX:s,overflowY:l,display:u}=_t(n);return/auto|scroll|overlay|hidden|clip/.test(o+l+s)&&u!=="inline"&&u!=="contents"}function Lw(n){return/^(table|td|th)$/.test(_r(n))}function ai(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Dw=/transform|translate|scale|rotate|perspective|filter/,Fw=/paint|layout|strict|content/,Bn=n=>!!n&&n!=="none";let xa;function au(n){const o=Ot(n)?_t(n):n;return Bn(o.transform)||Bn(o.translate)||Bn(o.scale)||Bn(o.rotate)||Bn(o.perspective)||!uu()&&(Bn(o.backdropFilter)||Bn(o.filter))||Dw.test(o.willChange||"")||Fw.test(o.contain||"")}function zw(n){let o=Rn(n);for(;en(o)&&!Nr(o);){if(au(o))return o;if(ai(o))return null;o=Rn(o)}return null}function uu(){return xa==null&&(xa=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xa}function Nr(n){return/^(html|body|#document)$/.test(_r(n))}function _t(n){return dt(n).getComputedStyle(n)}function ui(n){return Ot(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Rn(n){if(_r(n)==="html")return n;const o=n.assignedSlot||n.parentNode||tp(n)&&n.host||Ut(n);return tp(o)?o.host:o}function Sh(n){const o=Rn(n);return Nr(o)?n.ownerDocument?n.ownerDocument.body:n.body:en(o)&&Oo(o)?o:Sh(o)}function No(n,o,s){var l;o===void 0&&(o=[]),s===void 0&&(s=!0);const u=Sh(n),f=u===((l=n.ownerDocument)==null?void 0:l.body),p=dt(u);if(f){const h=Da(p);return o.concat(p,p.visualViewport||[],Oo(u)?u:[],h&&s?No(h):[])}else return o.concat(u,No(u,[],s))}function Da(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ch(n){const o=_t(n);let s=parseFloat(o.width)||0,l=parseFloat(o.height)||0;const u=en(n),f=u?n.offsetWidth:s,p=u?n.offsetHeight:l,h=Ys(s)!==f||Ys(l)!==p;return h&&(s=f,l=p),{width:s,height:l,$:h}}function cu(n){return Ot(n)?n:n.contextElement}function Er(n){const o=cu(n);if(!en(o))return zt(1);const s=o.getBoundingClientRect(),{width:l,height:u,$:f}=Ch(o);let p=(f?Ys(s.width):s.width)/l,h=(f?Ys(s.height):s.height)/u;return(!p||!Number.isFinite(p))&&(p=1),(!h||!Number.isFinite(h))&&(h=1),{x:p,y:h}}const $w=zt(0);function kh(n){const o=dt(n);return!uu()||!o.visualViewport?$w:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Uw(n,o,s){return o===void 0&&(o=!1),!s||o&&s!==dt(n)?!1:o}function Yn(n,o,s,l){o===void 0&&(o=!1),s===void 0&&(s=!1);const u=n.getBoundingClientRect(),f=cu(n);let p=zt(1);o&&(l?Ot(l)&&(p=Er(l)):p=Er(n));const h=Uw(f,s,l)?kh(f):zt(0);let g=(u.left+h.x)/p.x,v=(u.top+h.y)/p.y,x=u.width/p.x,b=u.height/p.y;if(f){const S=dt(f),j=l&&Ot(l)?dt(l):l;let O=S,k=Da(O);for(;k&&l&&j!==O;){const N=Er(k),R=k.getBoundingClientRect(),I=_t(k),L=R.left+(k.clientLeft+parseFloat(I.paddingLeft))*N.x,D=R.top+(k.clientTop+parseFloat(I.paddingTop))*N.y;g*=N.x,v*=N.y,x*=N.x,b*=N.y,g+=L,v+=D,O=dt(k),k=Da(O)}}return Js({width:x,height:b,x:g,y:v})}function ci(n,o){const s=ui(n).scrollLeft;return o?o.left+s:Yn(Ut(n)).left+s}function Eh(n,o){const s=n.getBoundingClientRect(),l=s.left+o.scrollLeft-ci(n,s),u=s.top+o.scrollTop;return{x:l,y:u}}function Hw(n){let{elements:o,rect:s,offsetParent:l,strategy:u}=n;const f=u==="fixed",p=Ut(l),h=o?ai(o.floating):!1;if(l===p||h&&f)return s;let g={scrollLeft:0,scrollTop:0},v=zt(1);const x=zt(0),b=en(l);if((b||!b&&!f)&&((_r(l)!=="body"||Oo(p))&&(g=ui(l)),b)){const j=Yn(l);v=Er(l),x.x=j.x+l.clientLeft,x.y=j.y+l.clientTop}const S=p&&!b&&!f?Eh(p,g):zt(0);return{width:s.width*v.x,height:s.height*v.y,x:s.x*v.x-g.scrollLeft*v.x+x.x+S.x,y:s.y*v.y-g.scrollTop*v.y+x.y+S.y}}function Bw(n){return Array.from(n.getClientRects())}function Ww(n){const o=Ut(n),s=ui(n),l=n.ownerDocument.body,u=ct(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),f=ct(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let p=-s.scrollLeft+ci(n);const h=-s.scrollTop;return _t(l).direction==="rtl"&&(p+=ct(o.clientWidth,l.clientWidth)-u),{width:u,height:f,x:p,y:h}}const np=25;function Vw(n,o){const s=dt(n),l=Ut(n),u=s.visualViewport;let f=l.clientWidth,p=l.clientHeight,h=0,g=0;if(u){f=u.width,p=u.height;const x=uu();(!x||x&&o==="fixed")&&(h=u.offsetLeft,g=u.offsetTop)}const v=ci(l);if(v<=0){const x=l.ownerDocument,b=x.body,S=getComputedStyle(b),j=x.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,O=Math.abs(l.clientWidth-b.clientWidth-j);O<=np&&(f-=O)}else v<=np&&(f+=v);return{width:f,height:p,x:h,y:g}}function Qw(n,o){const s=Yn(n,!0,o==="fixed"),l=s.top+n.clientTop,u=s.left+n.clientLeft,f=en(n)?Er(n):zt(1),p=n.clientWidth*f.x,h=n.clientHeight*f.y,g=u*f.x,v=l*f.y;return{width:p,height:h,x:g,y:v}}function rp(n,o,s){let l;if(o==="viewport")l=Vw(n,s);else if(o==="document")l=Ww(Ut(n));else if(Ot(o))l=Qw(o,s);else{const u=kh(n);l={x:o.x-u.x,y:o.y-u.y,width:o.width,height:o.height}}return Js(l)}function Nh(n,o){const s=Rn(n);return s===o||!Ot(s)||Nr(s)?!1:_t(s).position==="fixed"||Nh(s,o)}function Kw(n,o){const s=o.get(n);if(s)return s;let l=No(n,[],!1).filter(h=>Ot(h)&&_r(h)!=="body"),u=null;const f=_t(n).position==="fixed";let p=f?Rn(n):n;for(;Ot(p)&&!Nr(p);){const h=_t(p),g=au(p);!g&&h.position==="fixed"&&(u=null),(f?!g&&!u:!g&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Oo(p)&&!g&&Nh(n,p))?l=l.filter(x=>x!==p):u=h,p=Rn(p)}return o.set(n,l),l}function qw(n){let{element:o,boundary:s,rootBoundary:l,strategy:u}=n;const p=[...s==="clippingAncestors"?ai(o)?[]:Kw(o,this._c):[].concat(s),l],h=rp(o,p[0],u);let g=h.top,v=h.right,x=h.bottom,b=h.left;for(let S=1;S<p.length;S++){const j=rp(o,p[S],u);g=ct(j.top,g),v=jn(j.right,v),x=jn(j.bottom,x),b=ct(j.left,b)}return{width:v-b,height:x-g,x:b,y:g}}function Gw(n){const{width:o,height:s}=Ch(n);return{width:o,height:s}}function Xw(n,o,s){const l=en(o),u=Ut(o),f=s==="fixed",p=Yn(n,!0,f,o);let h={scrollLeft:0,scrollTop:0};const g=zt(0);function v(){g.x=ci(u)}if(l||!l&&!f)if((_r(o)!=="body"||Oo(u))&&(h=ui(o)),l){const j=Yn(o,!0,f,o);g.x=j.x+o.clientLeft,g.y=j.y+o.clientTop}else u&&v();f&&!l&&u&&v();const x=u&&!l&&!f?Eh(u,h):zt(0),b=p.left+h.scrollLeft-g.x-x.x,S=p.top+h.scrollTop-g.y-x.y;return{x:b,y:S,width:p.width,height:p.height}}function wa(n){return _t(n).position==="static"}function op(n,o){if(!en(n)||_t(n).position==="fixed")return null;if(o)return o(n);let s=n.offsetParent;return Ut(n)===s&&(s=s.ownerDocument.body),s}function Ph(n,o){const s=dt(n);if(ai(n))return s;if(!en(n)){let u=Rn(n);for(;u&&!Nr(u);){if(Ot(u)&&!wa(u))return u;u=Rn(u)}return s}let l=op(n,o);for(;l&&Lw(l)&&wa(l);)l=op(l,o);return l&&Nr(l)&&wa(l)&&!au(l)?s:l||zw(n)||s}const Yw=async function(n){const o=this.getOffsetParent||Ph,s=this.getDimensions,l=await s(n.floating);return{reference:Xw(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Zw(n){return _t(n).direction==="rtl"}const Jw={convertOffsetParentRelativeRectToViewportRelativeRect:Hw,getDocumentElement:Ut,getClippingRect:qw,getOffsetParent:Ph,getElementRects:Yw,getClientRects:Bw,getDimensions:Gw,getScale:Er,isElement:Ot,isRTL:Zw};function jh(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function e0(n,o){let s=null,l;const u=Ut(n);function f(){var h;clearTimeout(l),(h=s)==null||h.disconnect(),s=null}function p(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),f();const v=n.getBoundingClientRect(),{left:x,top:b,width:S,height:j}=v;if(h||o(),!S||!j)return;const O=Vs(b),k=Vs(u.clientWidth-(x+S)),N=Vs(u.clientHeight-(b+j)),R=Vs(x),L={rootMargin:-O+"px "+-k+"px "+-N+"px "+-R+"px",threshold:ct(0,jn(1,g))||1};let D=!0;function Q(W){const V=W[0].intersectionRatio;if(V!==g){if(!D)return p();V?p(!1,V):l=setTimeout(()=>{p(!1,1e-7)},1e3)}V===1&&!jh(v,n.getBoundingClientRect())&&p(),D=!1}try{s=new IntersectionObserver(Q,{...L,root:u.ownerDocument})}catch{s=new IntersectionObserver(Q,L)}s.observe(n)}return p(!0),f}function t0(n,o,s,l){l===void 0&&(l={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=l,v=cu(n),x=u||f?[...v?No(v):[],...o?No(o):[]]:[];x.forEach(R=>{u&&R.addEventListener("scroll",s,{passive:!0}),f&&R.addEventListener("resize",s)});const b=v&&h?e0(v,s):null;let S=-1,j=null;p&&(j=new ResizeObserver(R=>{let[I]=R;I&&I.target===v&&j&&o&&(j.unobserve(o),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var L;(L=j)==null||L.observe(o)})),s()}),v&&!g&&j.observe(v),o&&j.observe(o));let O,k=g?Yn(n):null;g&&N();function N(){const R=Yn(n);k&&!jh(k,R)&&s(),k=R,O=requestAnimationFrame(N)}return s(),()=>{var R;x.forEach(I=>{u&&I.removeEventListener("scroll",s),f&&I.removeEventListener("resize",s)}),b?.(),(R=j)==null||R.disconnect(),j=null,g&&cancelAnimationFrame(O)}}const n0=_w,r0=Aw,o0=Rw,s0=Mw,i0=Tw,sp=jw,l0=Iw,a0=(n,o,s)=>{const l=new Map,u={platform:Jw,...s},f={...u.platform,_c:l};return Pw(n,o,{...u,platform:f})};var u0=typeof document<"u",c0=function(){},qs=u0?y.useLayoutEffect:c0;function ei(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let s,l,u;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==o.length)return!1;for(l=s;l--!==0;)if(!ei(n[l],o[l]))return!1;return!0}if(u=Object.keys(n),s=u.length,s!==Object.keys(o).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(o,u[l]))return!1;for(l=s;l--!==0;){const f=u[l];if(!(f==="_owner"&&n.$$typeof)&&!ei(n[f],o[f]))return!1}return!0}return n!==n&&o!==o}function Rh(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ip(n,o){const s=Rh(n);return Math.round(o*s)/s}function ba(n){const o=y.useRef(n);return qs(()=>{o.current=n}),o}function d0(n){n===void 0&&(n={});const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:u,elements:{reference:f,floating:p}={},transform:h=!0,whileElementsMounted:g,open:v}=n,[x,b]=y.useState({x:0,y:0,strategy:s,placement:o,middlewareData:{},isPositioned:!1}),[S,j]=y.useState(l);ei(S,l)||j(l);const[O,k]=y.useState(null),[N,R]=y.useState(null),I=y.useCallback(M=>{M!==W.current&&(W.current=M,k(M))},[]),L=y.useCallback(M=>{M!==V.current&&(V.current=M,R(M))},[]),D=f||O,Q=p||N,W=y.useRef(null),V=y.useRef(null),ne=y.useRef(x),F=g!=null,re=ba(g),pe=ba(u),ee=ba(v),ce=y.useCallback(()=>{if(!W.current||!V.current)return;const M={placement:o,strategy:s,middleware:S};pe.current&&(M.platform=pe.current),a0(W.current,V.current,M).then(q=>{const K={...q,isPositioned:ee.current!==!1};G.current&&!ei(ne.current,K)&&(ne.current=K,ri.flushSync(()=>{b(K)}))})},[S,o,s,pe,ee]);qs(()=>{v===!1&&ne.current.isPositioned&&(ne.current.isPositioned=!1,b(M=>({...M,isPositioned:!1})))},[v]);const G=y.useRef(!1);qs(()=>(G.current=!0,()=>{G.current=!1}),[]),qs(()=>{if(D&&(W.current=D),Q&&(V.current=Q),D&&Q){if(re.current)return re.current(D,Q,ce);ce()}},[D,Q,ce,re,F]);const me=y.useMemo(()=>({reference:W,floating:V,setReference:I,setFloating:L}),[I,L]),le=y.useMemo(()=>({reference:D,floating:Q}),[D,Q]),ie=y.useMemo(()=>{const M={position:s,left:0,top:0};if(!le.floating)return M;const q=ip(le.floating,x.x),K=ip(le.floating,x.y);return h?{...M,transform:"translate("+q+"px, "+K+"px)",...Rh(le.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:q,top:K}},[s,h,le.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:ce,refs:me,elements:le,floatingStyles:ie}),[x,ce,me,le,ie])}const f0=n=>{function o(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:l,padding:u}=typeof n=="function"?n(s):n;return l&&o(l)?l.current!=null?sp({element:l.current,padding:u}).fn(s):{}:l?sp({element:l,padding:u}).fn(s):{}}}},p0=(n,o)=>{const s=n0(n);return{name:s.name,fn:s.fn,options:[n,o]}},h0=(n,o)=>{const s=r0(n);return{name:s.name,fn:s.fn,options:[n,o]}},m0=(n,o)=>({fn:l0(n).fn,options:[n,o]}),g0=(n,o)=>{const s=o0(n);return{name:s.name,fn:s.fn,options:[n,o]}},v0=(n,o)=>{const s=s0(n);return{name:s.name,fn:s.fn,options:[n,o]}},y0=(n,o)=>{const s=i0(n);return{name:s.name,fn:s.fn,options:[n,o]}},x0=(n,o)=>{const s=f0(n);return{name:s.name,fn:s.fn,options:[n,o]}};var w0="Arrow",Th=y.forwardRef((n,o)=>{const{children:s,width:l=10,height:u=5,...f}=n;return d.jsx(Ve.svg,{...f,ref:o,width:l,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Th.displayName=w0;var b0=Th;function S0(n){const[o,s]=y.useState(void 0);return $t(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let p,h;if("borderBoxSize"in f){const g=f.borderBoxSize,v=Array.isArray(g)?g[0]:g;p=v.inlineSize,h=v.blockSize}else p=n.offsetWidth,h=n.offsetHeight;s({width:p,height:h})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else s(void 0)},[n]),o}var du="Popper",[Oh,_h]=Ro(du),[C0,Ah]=Oh(du),Ih=n=>{const{__scopePopper:o,children:s}=n,[l,u]=y.useState(null);return d.jsx(C0,{scope:o,anchor:l,onAnchorChange:u,children:s})};Ih.displayName=du;var Mh="PopperAnchor",Lh=y.forwardRef((n,o)=>{const{__scopePopper:s,virtualRef:l,...u}=n,f=Ah(Mh,s),p=y.useRef(null),h=bt(o,p),g=y.useRef(null);return y.useEffect(()=>{const v=g.current;g.current=l?.current||p.current,v!==g.current&&f.onAnchorChange(g.current)}),l?null:d.jsx(Ve.div,{...u,ref:h})});Lh.displayName=Mh;var fu="PopperContent",[k0,E0]=Oh(fu),Dh=y.forwardRef((n,o)=>{const{__scopePopper:s,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:S=!1,updatePositionStrategy:j="optimized",onPlaced:O,...k}=n,N=Ah(fu,s),[R,I]=y.useState(null),L=bt(o,xe=>I(xe)),[D,Q]=y.useState(null),W=S0(D),V=W?.width??0,ne=W?.height??0,F=l+(f!=="center"?"-"+f:""),re=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},pe=Array.isArray(v)?v:[v],ee=pe.length>0,ce={padding:re,boundary:pe.filter(P0),altBoundary:ee},{refs:G,floatingStyles:me,placement:le,isPositioned:ie,middlewareData:M}=d0({strategy:"fixed",placement:F,whileElementsMounted:(...xe)=>t0(...xe,{animationFrame:j==="always"}),elements:{reference:N.anchor},middleware:[p0({mainAxis:u+ne,alignmentAxis:p}),g&&h0({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?m0():void 0,...ce}),g&&g0({...ce}),v0({...ce,apply:({elements:xe,rects:we,availableWidth:Ce,availableHeight:Xe})=>{const{width:Zn,height:_o}=we.reference,Ht=xe.floating.style;Ht.setProperty("--radix-popper-available-width",`${Ce}px`),Ht.setProperty("--radix-popper-available-height",`${Xe}px`),Ht.setProperty("--radix-popper-anchor-width",`${Zn}px`),Ht.setProperty("--radix-popper-anchor-height",`${_o}px`)}}),D&&x0({element:D,padding:h}),j0({arrowWidth:V,arrowHeight:ne}),S&&y0({strategy:"referenceHidden",...ce})]}),[q,K]=$h(le),P=Pn(O);$t(()=>{ie&&P?.()},[ie,P]);const z=M.arrow?.x,ue=M.arrow?.y,de=M.arrow?.centerOffset!==0,[ge,ve]=y.useState();return $t(()=>{R&&ve(window.getComputedStyle(R).zIndex)},[R]),d.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:ie?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:d.jsx(k0,{scope:s,placedSide:q,onArrowChange:Q,arrowX:z,arrowY:ue,shouldHideArrow:de,children:d.jsx(Ve.div,{"data-side":q,"data-align":K,...k,ref:L,style:{...k.style,animation:ie?void 0:"none"}})})})});Dh.displayName=fu;var Fh="PopperArrow",N0={top:"bottom",right:"left",bottom:"top",left:"right"},zh=y.forwardRef(function(o,s){const{__scopePopper:l,...u}=o,f=E0(Fh,l),p=N0[f.placedSide];return d.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[p]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:d.jsx(b0,{...u,ref:s,style:{...u.style,display:"block"}})})});zh.displayName=Fh;function P0(n){return n!==null}var j0=n=>({name:"transformOrigin",options:n,fn(o){const{placement:s,rects:l,middlewareData:u}=o,p=u.arrow?.centerOffset!==0,h=p?0:n.arrowWidth,g=p?0:n.arrowHeight,[v,x]=$h(s),b={start:"0%",center:"50%",end:"100%"}[x],S=(u.arrow?.x??0)+h/2,j=(u.arrow?.y??0)+g/2;let O="",k="";return v==="bottom"?(O=p?b:`${S}px`,k=`${-g}px`):v==="top"?(O=p?b:`${S}px`,k=`${l.floating.height+g}px`):v==="right"?(O=`${-g}px`,k=p?b:`${j}px`):v==="left"&&(O=`${l.floating.width+g}px`,k=p?b:`${j}px`),{data:{x:O,y:k}}}});function $h(n){const[o,s="center"]=n.split("-");return[o,s]}var R0=Ih,T0=Lh,O0=Dh,_0=zh,A0=Symbol("radix.slottable");function I0(n){const o=({children:s})=>d.jsx(d.Fragment,{children:s});return o.displayName=`${n}.Slottable`,o.__radixId=A0,o}var[di]=Ro("Tooltip",[_h]),fi=_h(),Uh="TooltipProvider",M0=700,Fa="tooltip.open",[L0,pu]=di(Uh),Hh=n=>{const{__scopeTooltip:o,delayDuration:s=M0,skipDelayDuration:l=300,disableHoverableContent:u=!1,children:f}=n,p=y.useRef(!0),h=y.useRef(!1),g=y.useRef(0);return y.useEffect(()=>{const v=g.current;return()=>window.clearTimeout(v)},[]),d.jsx(L0,{scope:o,isOpenDelayedRef:p,delayDuration:s,onOpen:y.useCallback(()=>{window.clearTimeout(g.current),p.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>p.current=!0,l)},[l]),isPointerInTransitRef:h,onPointerInTransitChange:y.useCallback(v=>{h.current=v},[]),disableHoverableContent:u,children:f})};Hh.displayName=Uh;var Po="Tooltip",[D0,pi]=di(Po),Bh=n=>{const{__scopeTooltip:o,children:s,open:l,defaultOpen:u,onOpenChange:f,disableHoverableContent:p,delayDuration:h}=n,g=pu(Po,n.__scopeTooltip),v=fi(o),[x,b]=y.useState(null),S=yh(),j=y.useRef(0),O=p??g.disableHoverableContent,k=h??g.delayDuration,N=y.useRef(!1),[R,I]=eu({prop:l,defaultProp:u??!1,onChange:V=>{V?(g.onOpen(),document.dispatchEvent(new CustomEvent(Fa))):g.onClose(),f?.(V)},caller:Po}),L=y.useMemo(()=>R?N.current?"delayed-open":"instant-open":"closed",[R]),D=y.useCallback(()=>{window.clearTimeout(j.current),j.current=0,N.current=!1,I(!0)},[I]),Q=y.useCallback(()=>{window.clearTimeout(j.current),j.current=0,I(!1)},[I]),W=y.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{N.current=!0,I(!0),j.current=0},k)},[k,I]);return y.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]),d.jsx(R0,{...v,children:d.jsx(D0,{scope:o,contentId:S,open:R,stateAttribute:L,trigger:x,onTriggerChange:b,onTriggerEnter:y.useCallback(()=>{g.isOpenDelayedRef.current?W():D()},[g.isOpenDelayedRef,W,D]),onTriggerLeave:y.useCallback(()=>{O?Q():(window.clearTimeout(j.current),j.current=0)},[Q,O]),onOpen:D,onClose:Q,disableHoverableContent:O,children:s})})};Bh.displayName=Po;var za="TooltipTrigger",Wh=y.forwardRef((n,o)=>{const{__scopeTooltip:s,...l}=n,u=pi(za,s),f=pu(za,s),p=fi(s),h=y.useRef(null),g=bt(o,h,u.onTriggerChange),v=y.useRef(!1),x=y.useRef(!1),b=y.useCallback(()=>v.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),d.jsx(T0,{asChild:!0,...p,children:d.jsx(Ve.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...l,ref:g,onPointerMove:Le(n.onPointerMove,S=>{S.pointerType!=="touch"&&!x.current&&!f.isPointerInTransitRef.current&&(u.onTriggerEnter(),x.current=!0)}),onPointerLeave:Le(n.onPointerLeave,()=>{u.onTriggerLeave(),x.current=!1}),onPointerDown:Le(n.onPointerDown,()=>{u.open&&u.onClose(),v.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:Le(n.onFocus,()=>{v.current||u.onOpen()}),onBlur:Le(n.onBlur,u.onClose),onClick:Le(n.onClick,u.onClose)})})});Wh.displayName=za;var F0="TooltipPortal",[lb,z0]=di(F0,{forceMount:void 0}),Pr="TooltipContent",Vh=y.forwardRef((n,o)=>{const s=z0(Pr,n.__scopeTooltip),{forceMount:l=s.forceMount,side:u="top",...f}=n,p=pi(Pr,n.__scopeTooltip);return d.jsx(oi,{present:l||p.open,children:p.disableHoverableContent?d.jsx(Qh,{side:u,...f,ref:o}):d.jsx($0,{side:u,...f,ref:o})})}),$0=y.forwardRef((n,o)=>{const s=pi(Pr,n.__scopeTooltip),l=pu(Pr,n.__scopeTooltip),u=y.useRef(null),f=bt(o,u),[p,h]=y.useState(null),{trigger:g,onClose:v}=s,x=u.current,{onPointerInTransitChange:b}=l,S=y.useCallback(()=>{h(null),b(!1)},[b]),j=y.useCallback((O,k)=>{const N=O.currentTarget,R={x:O.clientX,y:O.clientY},I=V0(R,N.getBoundingClientRect()),L=Q0(R,I),D=K0(k.getBoundingClientRect()),Q=G0([...L,...D]);h(Q),b(!0)},[b]);return y.useEffect(()=>()=>S(),[S]),y.useEffect(()=>{if(g&&x){const O=N=>j(N,x),k=N=>j(N,g);return g.addEventListener("pointerleave",O),x.addEventListener("pointerleave",k),()=>{g.removeEventListener("pointerleave",O),x.removeEventListener("pointerleave",k)}}},[g,x,j,S]),y.useEffect(()=>{if(p){const O=k=>{const N=k.target,R={x:k.clientX,y:k.clientY},I=g?.contains(N)||x?.contains(N),L=!q0(R,p);I?S():L&&(S(),v())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[g,x,p,v,S]),d.jsx(Qh,{...n,ref:f})}),[U0,H0]=di(Po,{isInside:!1}),B0=I0("TooltipContent"),Qh=y.forwardRef((n,o)=>{const{__scopeTooltip:s,children:l,"aria-label":u,onEscapeKeyDown:f,onPointerDownOutside:p,...h}=n,g=pi(Pr,s),v=fi(s),{onClose:x}=g;return y.useEffect(()=>(document.addEventListener(Fa,x),()=>document.removeEventListener(Fa,x)),[x]),y.useEffect(()=>{if(g.trigger){const b=S=>{S.target?.contains(g.trigger)&&x()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[g.trigger,x]),d.jsx(Ja,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b=>b.preventDefault(),onDismiss:x,children:d.jsxs(O0,{"data-state":g.stateAttribute,...v,...h,ref:o,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(B0,{children:l}),d.jsx(U0,{scope:s,isInside:!0,children:d.jsx(lx,{id:g.contentId,role:"tooltip",children:u||l})})]})})});Vh.displayName=Pr;var Kh="TooltipArrow",W0=y.forwardRef((n,o)=>{const{__scopeTooltip:s,...l}=n,u=fi(s);return H0(Kh,s).isInside?null:d.jsx(_0,{...u,...l,ref:o})});W0.displayName=Kh;function V0(n,o){const s=Math.abs(o.top-n.y),l=Math.abs(o.bottom-n.y),u=Math.abs(o.right-n.x),f=Math.abs(o.left-n.x);switch(Math.min(s,l,u,f)){case f:return"left";case u:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function Q0(n,o,s=5){const l=[];switch(o){case"top":l.push({x:n.x-s,y:n.y+s},{x:n.x+s,y:n.y+s});break;case"bottom":l.push({x:n.x-s,y:n.y-s},{x:n.x+s,y:n.y-s});break;case"left":l.push({x:n.x+s,y:n.y-s},{x:n.x+s,y:n.y+s});break;case"right":l.push({x:n.x-s,y:n.y-s},{x:n.x-s,y:n.y+s});break}return l}function K0(n){const{top:o,right:s,bottom:l,left:u}=n;return[{x:u,y:o},{x:s,y:o},{x:s,y:l},{x:u,y:l}]}function q0(n,o){const{x:s,y:l}=n;let u=!1;for(let f=0,p=o.length-1;f<o.length;p=f++){const h=o[f],g=o[p],v=h.x,x=h.y,b=g.x,S=g.y;x>l!=S>l&&s<(b-v)*(l-x)/(S-x)+v&&(u=!u)}return u}function G0(n){const o=n.slice();return o.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),X0(o)}function X0(n){if(n.length<=1)return n.slice();const o=[];for(let l=0;l<n.length;l++){const u=n[l];for(;o.length>=2;){const f=o[o.length-1],p=o[o.length-2];if((f.x-p.x)*(u.y-p.y)>=(f.y-p.y)*(u.x-p.x))o.pop();else break}o.push(u)}o.pop();const s=[];for(let l=n.length-1;l>=0;l--){const u=n[l];for(;s.length>=2;){const f=s[s.length-1],p=s[s.length-2];if((f.x-p.x)*(u.y-p.y)>=(f.y-p.y)*(u.x-p.x))s.pop();else break}s.push(u)}return s.pop(),o.length===1&&s.length===1&&o[0].x===s[0].x&&o[0].y===s[0].y?o:o.concat(s)}var Y0=Hh,Z0=Bh,J0=Wh,qh=Vh;const e1=Y0,t1=Z0,n1=J0,Gh=y.forwardRef(({className:n,sideOffset:o=4,...s},l)=>d.jsx(qh,{ref:l,sideOffset:o,className:ft("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",n),...s}));Gh.displayName=qh.displayName;var hi="Collapsible",[r1]=Ro(hi),[o1,hu]=r1(hi),Xh=y.forwardRef((n,o)=>{const{__scopeCollapsible:s,open:l,defaultOpen:u,disabled:f,onOpenChange:p,...h}=n,[g,v]=eu({prop:l,defaultProp:u??!1,onChange:p,caller:hi});return d.jsx(o1,{scope:s,disabled:f,contentId:yh(),open:g,onOpenToggle:y.useCallback(()=>v(x=>!x),[v]),children:d.jsx(Ve.div,{"data-state":gu(g),"data-disabled":f?"":void 0,...h,ref:o})})});Xh.displayName=hi;var Yh="CollapsibleTrigger",Zh=y.forwardRef((n,o)=>{const{__scopeCollapsible:s,...l}=n,u=hu(Yh,s);return d.jsx(Ve.button,{type:"button","aria-controls":u.contentId,"aria-expanded":u.open||!1,"data-state":gu(u.open),"data-disabled":u.disabled?"":void 0,disabled:u.disabled,...l,ref:o,onClick:Le(n.onClick,u.onOpenToggle)})});Zh.displayName=Yh;var mu="CollapsibleContent",Jh=y.forwardRef((n,o)=>{const{forceMount:s,...l}=n,u=hu(mu,n.__scopeCollapsible);return d.jsx(oi,{present:s||u.open,children:({present:f})=>d.jsx(s1,{...l,ref:o,present:f})})});Jh.displayName=mu;var s1=y.forwardRef((n,o)=>{const{__scopeCollapsible:s,present:l,children:u,...f}=n,p=hu(mu,s),[h,g]=y.useState(l),v=y.useRef(null),x=bt(o,v),b=y.useRef(0),S=b.current,j=y.useRef(0),O=j.current,k=p.open||h,N=y.useRef(k),R=y.useRef(void 0);return y.useEffect(()=>{const I=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(I)},[]),$t(()=>{const I=v.current;if(I){R.current=R.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const L=I.getBoundingClientRect();b.current=L.height,j.current=L.width,N.current||(I.style.transitionDuration=R.current.transitionDuration,I.style.animationName=R.current.animationName),g(l)}},[p.open,l]),d.jsx(Ve.div,{"data-state":gu(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!k,...f,ref:x,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":O?`${O}px`:void 0,...n.style},children:k&&u})});function gu(n){return n?"open":"closed"}var i1=Xh,l1=Zh,a1=Jh;function u1(n){const o=n.split("/");if(o.length!==2||!o[0]||!o[1])return`https://github.com/${n}`;const[s,l]=o;return`https://github.com/${encodeURIComponent(s)}/${encodeURIComponent(l)}`}function c1(n){const o=n.githubConnected?n.repos.filter(u=>!u.accessible):[],s=!n.githubConnected||o.length>0,l=n.githubConnected?`${o.length} inaccessible repo${o.length===1?"":"s"}`:"GitHub not connected";return{hasIssues:s,inaccessibleRepos:o,summary:l}}function Cn({children:n}){return d.jsx("code",{className:"rounded border border-border bg-muted/30 px-1 py-0.5 text-[11px] font-mono",children:n})}function Wn({number:n,children:o}){return d.jsxs("div",{className:"flex gap-2.5",children:[d.jsx("span",{className:"mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center border border-border text-[10px] text-muted-foreground",children:n}),d.jsx("div",{className:"flex-1 text-[12px] leading-relaxed",children:o})]})}function d1(){const[n,o]=y.useState(!1);return d.jsxs("div",{className:"space-y-3",children:[d.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Code Factory needs a GitHub token to read repositories and sync PR feedback. Choose one of these options:"}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"border border-border p-3 space-y-2",children:[d.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wider",children:"Option A — GitHub CLI (recommended)"}),d.jsxs(Wn,{number:1,children:["Install the GitHub CLI from"," ",d.jsx("a",{href:"https://cli.github.com",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:"cli.github.com"})]}),d.jsxs(Wn,{number:2,children:["Run ",d.jsx(Cn,{children:"gh auth login"})," and follow the prompts to authenticate."]}),d.jsxs(Wn,{number:3,children:["Restart Code Factory — it will automatically detect your token via ",d.jsx(Cn,{children:"gh auth token"}),"."]})]}),d.jsxs("div",{className:"border border-border p-3 space-y-2",children:[d.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wider",children:"Option B — Environment variable"}),d.jsxs(Wn,{number:1,children:["Create a Personal Access Token at"," ",d.jsx("a",{href:"https://github.com/settings/tokens",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:"github.com/settings/tokens"})," ","with ",d.jsx(Cn,{children:"repo"})," and ",d.jsx(Cn,{children:"read:user"})," scopes."]}),d.jsxs(Wn,{number:2,children:["Set it before starting the app: ",d.jsx(Cn,{children:"export GITHUB_TOKEN=ghp_your_token"})]})]}),d.jsxs("div",{className:"border border-border p-3 space-y-2",children:[d.jsxs("button",{onClick:()=>o(!n),className:"flex w-full items-center justify-between text-[11px] font-medium uppercase tracking-wider",children:[d.jsx("span",{children:"Option C — Enter token in settings"}),d.jsx("span",{className:"text-muted-foreground",children:n?"▲":"▼"})]}),n&&d.jsxs("div",{className:"space-y-2 pt-1",children:[d.jsxs(Wn,{number:1,children:["Create a"," ",d.jsx("a",{href:"https://github.com/settings/tokens",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:"Personal Access Token"})," ","with ",d.jsx(Cn,{children:"repo"})," and ",d.jsx(Cn,{children:"read:user"})," scopes."]}),d.jsxs(Wn,{number:2,children:["Paste it via the API: ",d.jsx(Cn,{children:`curl -X PATCH http://localhost:5001/api/config -H 'Content-Type: application/json' -d '{"githubToken":"ghp_your_token"}'`})]})]})]})]})]})}function f1(){const[n,o]=y.useState(!1),[s,l]=y.useState(!0),{data:u,isLoading:f}=Tt({queryKey:["/api/onboarding/status"],refetchInterval:3e4});if(f||!u)return null;const{hasIssues:p,inaccessibleRepos:h,summary:g}=c1(u);return!p||n?null:d.jsxs("div",{className:"shrink-0 border-b border-amber-500/30 bg-amber-500/5",children:[d.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[d.jsxs("button",{onClick:()=>l(!s),className:"flex items-center gap-2 text-left",children:[d.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full bg-amber-400"}),d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider text-amber-400",children:"Setup needed"}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:g}),d.jsx("span",{className:"text-[10px] text-muted-foreground",children:s?"▲":"▼"})]}),d.jsx("button",{onClick:()=>o(!0),className:"text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground",children:"dismiss"})]}),s&&d.jsxs("div",{className:"border-t border-amber-500/20 px-4 py-4 space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider text-destructive",children:"GitHub not connected"}),u.githubError&&d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["— ",u.githubError]})]}),d.jsx(d1,{})]}),u.githubConnected&&h.length>0&&d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wider",children:"Repository access issues"}),d.jsx("div",{className:"space-y-3",children:h.map(v=>d.jsxs("div",{className:"space-y-1",children:[d.jsx("div",{className:"text-[11px] font-medium",children:d.jsx("a",{href:`https://github.com/${v.repo}`,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:v.repo})}),d.jsxs("p",{className:"text-[12px] text-destructive",children:["Cannot access this repository: ",v.error??"unknown error"]})]},v.repo))})]})]})]})}function p1(n){return n.replace("_"," ").toUpperCase()}function h1(n){return n==="in_progress"?"border-foreground text-foreground animate-pulse":n==="failed"?"border-destructive text-destructive":n==="warning"?"border-yellow-500 text-yellow-500":n==="resolved"?"border-foreground/20 text-muted-foreground":n==="rejected"?"border-foreground/20 text-muted-foreground line-through":n==="flagged"?"border-foreground/40 text-foreground/60":n==="queued"?"border-foreground text-foreground":"border-foreground/30 text-foreground/60"}function em(n){return n==="resolved"||n==="rejected"}function m1(n){return em(n)||n==="warning"}function tm(n){return n.length===0?!1:n.every(o=>em(o.status))}function jo(n){return n.reduce((o,s)=>(s.status==="queued"?o.queued+=1:s.status==="in_progress"?o.inProgress+=1:s.status==="failed"?o.failed+=1:s.status==="warning"&&(o.warning+=1),o),{queued:0,inProgress:0,failed:0,warning:0})}const g1={idle:"IDLE",triaging:"TRIAGING",awaiting_repair_slot:"REPAIR QUEUED",repairing:"REPAIRING",awaiting_ci:"WAITING FOR CI",verifying:"VERIFYING",healed:"HEALED",cooldown:"COOLDOWN",blocked:"BLOCKED",escalated:"ESCALATED",superseded:"SUPERSEDED"},v1={idle:[],triaging:["cancel"],awaiting_repair_slot:["pause","cancel"],repairing:["pause","cancel"],awaiting_ci:["pause","cancel"],verifying:["cancel"],healed:[],cooldown:["resume","cancel"],blocked:["retry"],escalated:["retry"],superseded:[]},y1={idle:"neutral",triaging:"info",awaiting_repair_slot:"warning",repairing:"info",awaiting_ci:"info",verifying:"info",healed:"success",cooldown:"warning",blocked:"danger",escalated:"danger",superseded:"neutral"},x1={idle:"Waiting for a new failing check on the current PR head.",triaging:"Classifying the current failure set before deciding whether it is safe to repair.",awaiting_repair_slot:"Ready for the next bounded repair attempt as soon as a slot is free.",repairing:"A repair agent is actively working in an isolated worktree.",awaiting_ci:"A repair was pushed and the new head SHA is waiting for CI to settle.",verifying:"Comparing the latest check results against the previous failure fingerprint.",healed:"The latest repair cycle converged to green and the session is complete.",cooldown:"Cooling down before another retry is allowed.",blocked:"Stopped because the failure looks external or unsafe to repair in-branch.",escalated:"Stopped because retries were exhausted or the failure did not improve.",superseded:"Replaced after the PR head moved to a newer commit."};function w1(n){return g1[n]}function b1(n){return v1[n]}function lp(n){return n==="pause"?"Pause":n==="resume"?"Resume":n==="retry"?"Retry":"Cancel"}function S1(n){return y1[n]}function C1(n){return x1[n]}function k1(n){const o=n.attemptCount,s=o===1?"":"s";return o===0?n.state==="triaging"?"Preparing attempt 1":n.state==="awaiting_repair_slot"?"Queued for attempt 1":n.state==="healed"?"Healed without a repair attempt":"No repair attempts yet":n.state==="repairing"?`Attempt ${o} running`:n.state==="awaiting_ci"?`Attempt ${o} pushed, waiting on CI`:n.state==="verifying"?`Attempt ${o} verifying`:n.state==="healed"?`Healed after ${o} attempt${s}`:n.state==="blocked"?`${o} attempt${s} before blocking`:n.state==="escalated"?`${o} attempt${s} before escalation`:n.state==="cooldown"?`${o} attempt${s}, cooling down`:n.state==="superseded"?`${o} attempt${s}, superseded`:`${o} attempt${s} recorded`}function E1(n){return n?n.blockedReason??n.escalationReason??n.latestFingerprint??null:null}function N1(n,o){const s=n.filter(l=>l.prId===o);return s.length===0?null:s.reduce((l,u)=>u.updatedAt>l.updatedAt?u:l)}function P1(n,o){return N1(n,o)}function j1(n,o){return{stateLabel:w1(n.state),tone:S1(n.state),attemptSummary:k1(n),reasonSummary:E1(n),statusHint:C1(n.state),actions:b1(n.state).map(s=>({label:lp(s),available:!0,hint:`${lp(s)} controls are planned but not wired to the backend yet.`}))}}function jr(n){return n?new Date(n).toLocaleTimeString("en-US",{hour12:!1}):null}function nm(n){return n.watchEnabled}function rm(n){return n==="processing"?"autonomous run active":n==="done"?"completed":n==="error"?"attention needed":n==="archived"?"archived":"watching"}function R1(n){return`${Math.max(1,Math.round((n??12e4)/1e3))}s`}const ap={neutral:"border-border text-muted-foreground",info:"border-foreground text-foreground",warning:"border-yellow-600 text-yellow-600",success:"border-green-600 text-green-600",danger:"border-destructive text-destructive"};function om({status:n}){const o=n==="watching"?"bg-foreground/30":n==="processing"?"bg-foreground animate-pulse":n==="done"?"bg-foreground":n==="archived"?"bg-foreground/15":"bg-destructive";return d.jsx("span",{className:`inline-block h-1.5 w-1.5 shrink-0 ${o}`})}function T1({status:n}){const o=h1(n);return d.jsx("span",{className:`inline-block border px-1.5 py-0 text-[11px] uppercase tracking-wide ${o}`,children:p1(n)})}function $a(){return d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"watch paused"})}function sm({href:n,testId:o,label:s,hint:l,className:u,dotClassName:f,hintClassName:p,onClick:h}){return d.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:h,"data-testid":o,className:`inline-flex items-center border border-green-600 bg-green-600/10 font-medium uppercase text-green-500 transition-colors hover:bg-green-600/20 ${u}`,children:[d.jsx("span",{className:`inline-block rounded-full bg-green-500 ${f}`}),s,l&&d.jsx("span",{className:p,children:l})]})}function im({pr:n}){const o=jo(n.feedbackItems).inProgress;if(!(n.status==="processing")&&o===0)return null;const l=o>0?`${o} agent${o!==1?"s":""} running on this PR`:"Agent run active on this PR";return d.jsxs(t1,{children:[d.jsx(n1,{asChild:!0,children:d.jsxs("span",{className:"inline-flex shrink-0 cursor-default items-center gap-0.5 text-[12px]","data-testid":`agent-indicator-${n.id}`,children:[d.jsx("span",{className:"animate-pulse",children:"🤖"}),o>0&&d.jsx("span",{className:"text-[10px] text-muted-foreground",children:o})]})}),d.jsx(Gh,{side:"top",children:d.jsx("p",{className:"text-xs",children:l})})]})}function O1({pr:n,isSelected:o,onSelect:s}){const l=jr(n.lastChecked),u=nm(n),p=!(n.status==="processing"||jo(n.feedbackItems).inProgress>0)&&tm(n.feedbackItems);return d.jsx("div",{onClick:s,onKeyDown:h=>{h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s())},role:"button",tabIndex:0,"data-testid":`pr-row-${n.id}`,className:`w-full border-b border-border px-4 py-3 text-left transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring ${o?"bg-muted":""}`,children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(om,{status:n.status}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("span",{className:"w-12 shrink-0 text-muted-foreground",children:["#",n.number]}),d.jsx("span",{className:"truncate",children:n.title}),d.jsx(im,{pr:n})]}),p&&d.jsx(sm,{href:n.url,testId:`ready-to-merge-${n.id}`,label:"Ready to merge",hint:"— click to open PR",onClick:h=>h.stopPropagation(),className:"mt-1.5 ml-[3.75rem] gap-1.5 px-2 py-0.5 text-[11px] tracking-wider",dotClassName:"h-1.5 w-1.5",hintClassName:"text-[10px] normal-case tracking-normal text-green-500/70"}),d.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 pl-[3.75rem] text-[11px] text-muted-foreground",children:[d.jsx("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",onClick:h=>h.stopPropagation(),className:"underline decoration-border underline-offset-2 transition-colors hover:text-foreground",children:n.repo}),d.jsx("span",{children:rm(n.status)}),!u&&d.jsx($a,{}),n.feedbackItems.length>0&&(()=>{const h=jo(n.feedbackItems),g=[];return h.queued>0&&g.push(`${h.queued}q`),h.inProgress>0&&g.push(`${h.inProgress} active`),h.failed>0&&g.push(`${h.failed} failed`),h.warning>0&&g.push(`${h.warning} warn`),g.length===0?d.jsxs("span",{children:[n.feedbackItems.length," items"]}):d.jsx("span",{children:g.join(" · ")})})(),l&&d.jsxs("span",{children:["checked ",l]})]})]})]})})}function _1({item:n,prId:o,readOnly:s}){const l=Rt({mutationFn:async h=>(await wt("PATCH",`/api/prs/${o}/feedback/${n.id}`,{decision:h})).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/prs"]}),Me.invalidateQueries({queryKey:["/api/prs",o]})}}),u=Rt({mutationFn:async()=>(await wt("POST",`/api/prs/${o}/feedback/${n.id}/retry`)).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/prs"]}),Me.invalidateQueries({queryKey:["/api/prs",o]}),Me.invalidateQueries({queryKey:["/api/logs"]})},onError:h=>{Vn("Could not retry feedback item",h)}}),f=jr(n.createdAt),p=m1(n.status);return d.jsxs(i1,{defaultOpen:!p,className:"border-b border-border",children:[d.jsx("div",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx("div",{className:"shrink-0 pt-0.5",children:d.jsx(T1,{status:n.status})}),d.jsx("div",{className:"min-w-0 flex-1",children:d.jsxs("div",{className:"mb-1 flex flex-wrap items-center gap-2",children:[d.jsx("span",{className:"font-medium",children:n.author}),n.file&&d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[n.file,n.line?`:${n.line}`:""]}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:n.type.replace("_"," ")}),f&&d.jsx("span",{className:"text-[11px] text-muted-foreground",children:f})]})}),d.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[!s&&(n.status==="failed"||n.status==="warning")&&d.jsx("button",{onClick:()=>u.mutate(),disabled:u.isPending,"data-testid":`retry-${n.id}`,className:"px-1.5 py-0.5 text-[10px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background border border-border text-muted-foreground disabled:opacity-30",children:"R"}),d.jsx(l1,{asChild:!0,children:d.jsx("button",{"data-testid":`toggle-${n.id}`,className:"px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:bg-foreground hover:text-background border border-border",children:"↕"})}),!s&&["accept","reject","flag"].map(h=>d.jsx("button",{onClick:()=>l.mutate(h),"data-testid":`override-${h}-${n.id}`,className:`px-1.5 py-0.5 text-[10px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background ${n.decision===h?"bg-foreground text-background":"border border-border text-muted-foreground"}`,children:h.charAt(0)},h))]})]})}),d.jsx(a1,{children:d.jsxs("div",{className:"px-4 pb-3",children:[n.bodyHtml?d.jsx("div",{className:"feedback-markdown text-[12px] leading-relaxed",dangerouslySetInnerHTML:{__html:n.bodyHtml}}):d.jsx("p",{className:"whitespace-pre-wrap text-[12px] leading-relaxed text-foreground/80",children:n.body}),(n.statusReason||n.decisionReason)&&d.jsx("p",{className:"mt-2 text-[11px] text-muted-foreground",children:n.statusReason||n.decisionReason})]})})]})}function A1({prId:n}){const o=y.useRef(null),{data:s=[]}=Tt({queryKey:["/api/logs",n??"all"],queryFn:async()=>{const l=n?`/api/logs?prId=${encodeURIComponent(n)}`:"/api/logs";return(await wt("GET",l)).json()},refetchInterval:1500});return y.useEffect(()=>{const l=o.current;l&&(l.scrollTop=l.scrollHeight)},[s.length,n]),d.jsx("div",{className:"flex h-full flex-col",children:d.jsx("div",{ref:o,className:"flex-1 overflow-y-auto p-4 font-mono text-[11px] leading-relaxed",children:s.length===0?d.jsx("span",{className:"text-muted-foreground",children:"No log entries."}):s.map(l=>d.jsxs("div",{className:"border-b border-border/60 py-2 last:border-b-0","data-testid":`log-${l.id}`,children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] uppercase tracking-wider text-muted-foreground",children:[d.jsx("span",{children:jr(l.timestamp)}),d.jsx("span",{className:l.level==="error"?"text-destructive":l.level==="warn"?"text-foreground/80":"text-foreground/55",children:l.level}),l.phase&&d.jsx("span",{className:"border border-border px-1 py-0",children:l.phase}),l.runId&&d.jsxs("span",{className:"normal-case text-foreground/45",children:["run ",l.runId.slice(0,8)]})]}),d.jsx("div",{className:"mt-1 break-words text-foreground/75",children:l.message}),l.metadata&&Object.keys(l.metadata).length>0&&d.jsx("pre",{className:"mt-1 whitespace-pre-wrap break-all text-[10px] text-muted-foreground",children:JSON.stringify(l.metadata,null,2)})]},l.id))})})}function I1({pr:n,config:o,healingSessions:s}){const l=P1(s,n.id),u=l?j1(l):null,f=u?ap[u.tone]:ap.neutral;return d.jsxs("div",{className:"shrink-0 border-b border-border px-4 py-3","data-testid":"panel-ci-healing",children:[d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:"CI healing"}),d.jsx("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:u?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:`inline-flex border px-1.5 py-0.5 text-[11px] uppercase tracking-wider ${f}`,children:u.stateLabel}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:u.attemptSummary})]}):d.jsx("span",{className:"text-[11px] text-muted-foreground",children:o?.autoHealCI===!1?"Automatic CI healing is disabled in settings.":"No healing session yet for this PR."})})]}),l&&d.jsxs("span",{className:"shrink-0 text-[10px] text-muted-foreground",children:["head ",l.currentHeadSha.slice(0,7)]})]}),u?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mt-2 grid gap-1 text-[11px] text-muted-foreground",children:[u.reasonSummary&&d.jsxs("div",{children:["Reason: ",u.reasonSummary]}),d.jsx("div",{children:u.statusHint}),d.jsxs("div",{children:["Attempts: ",u.attemptSummary,l?.latestFingerprint?` · fingerprint ${l.latestFingerprint}`:""]})]}),u.actions.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:u.actions.map(p=>d.jsx("button",{type:"button",disabled:!0,title:p.hint,className:`border px-2 py-0.5 text-[10px] uppercase tracking-wider transition-colors ${p.available?"border-border text-foreground/70 hover:bg-muted":"border-border text-muted-foreground/60"} disabled:opacity-100`,children:p.label},p.label))}),d.jsx("div",{className:"mt-1 text-[10px] text-muted-foreground",children:"Operator controls are read-only until healing action endpoints are added."})]})]}):o?.autoHealCI!==!1&&d.jsx("div",{className:"mt-2 text-[11px] text-muted-foreground",children:"The watcher will create a healing session when a failing check is classified as healable."})]})}function M1({prId:n}){const[o,s]=y.useState("ask");return d.jsxs("div",{className:"w-80 shrink-0 border-l border-border flex flex-col",children:[d.jsxs("div",{className:"flex border-b border-border",children:[d.jsx("button",{onClick:()=>s("ask"),"data-testid":"tab-ask",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${o==="ask"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:"Ask Agent"}),d.jsx("button",{onClick:()=>s("activity"),"data-testid":"tab-activity",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${o==="activity"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:"Activity"})]}),d.jsx("div",{className:"flex-1 overflow-hidden",children:o==="activity"?d.jsx(A1,{prId:n}):n?d.jsx(L1,{prId:n}):d.jsx("div",{className:"flex h-full items-center justify-center text-[12px] text-muted-foreground",children:"Select a PR to ask questions."})})]})}function L1({prId:n}){const[o,s]=y.useState(""),l=y.useRef(null),{data:u=[]}=Tt({queryKey:["/api/prs",n,"questions"],refetchInterval:2e3}),f=Rt({mutationFn:p=>wt("POST",`/api/prs/${n}/questions`,{question:p}).then(h=>h.json()),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/prs",n,"questions"]}),s("")}});return y.useEffect(()=>{const p=l.current;p&&(p.scrollTop=p.scrollHeight)},[u.length,u[u.length-1]?.status]),d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsx("div",{className:"border-b border-border px-4 py-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:"Ask Agent"}),d.jsx("div",{ref:l,className:"flex-1 overflow-y-auto p-4 space-y-3",children:u.length===0?d.jsx("span",{className:"text-[12px] text-muted-foreground",children:"Ask questions about this PR — the agent will read activity logs, feedback, and status to answer."}):u.map(p=>d.jsxs("div",{className:"space-y-1.5","data-testid":`question-${p.id}`,children:[d.jsxs("div",{className:"text-[12px]",children:[d.jsx("span",{className:"font-medium text-foreground/90",children:"Q: "}),d.jsx("span",{className:"text-foreground/80",children:p.question})]}),p.status==="pending"||p.status==="answering"?d.jsx("div",{className:"text-[11px] text-muted-foreground animate-pulse",children:"Agent is thinking..."}):p.status==="error"?d.jsxs("div",{className:"text-[11px] text-destructive",children:["Error: ",p.error||"Unknown error"]}):d.jsx("div",{className:"text-[12px] leading-relaxed text-foreground/75 whitespace-pre-wrap border-l-2 border-border pl-3",children:p.answer}),d.jsxs("div",{className:"text-[10px] text-muted-foreground",children:[jr(p.createdAt),p.answeredAt&&` — answered ${jr(p.answeredAt)}`]})]},p.id))}),d.jsxs("form",{onSubmit:p=>{p.preventDefault(),o.trim()&&!f.isPending&&f.mutate(o.trim())},className:"border-t border-border p-3",children:[d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",value:o,onChange:p=>s(p.target.value),placeholder:"Was the review done? Why did this fail?","data-testid":"input-question",className:"flex-1 border border-border bg-transparent px-2 py-1 text-[12px] placeholder:text-muted-foreground/50 focus:border-foreground focus:outline-none"}),d.jsx("button",{type:"submit",disabled:f.isPending||!o.trim(),"data-testid":"button-ask",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:f.isPending?"...":"Ask"})]}),f.isError&&d.jsx("div",{className:"mt-1 text-[11px] text-destructive",children:lm(f.error)})]})]})}function lm(n){if(!(n instanceof Error))return String(n);const o=n.message.replace(/^\d+:\s*/,"").trim();if(!o)return"Request failed";try{const s=JSON.parse(o);if(typeof s.error=="string")return s.error;if(typeof s.message=="string")return s.message}catch{}return o}function Vn(n,o){Xn({variant:"destructive",title:n,description:lm(o)})}function D1(){const[n,o]=y.useState(null),[s,l]=y.useState(""),[u,f]=y.useState(""),[p,h]=y.useState("active"),{data:g=[],isLoading:v}=Tt({queryKey:["/api/prs"],refetchInterval:3e3}),{data:x=[],isLoading:b}=Tt({queryKey:["/api/prs/archived"],refetchInterval:1e4}),{data:S}=Tt({queryKey:["/api/config"],refetchInterval:5e3}),{data:j=[]}=Tt({queryKey:["/api/healing-sessions"],queryFn:async()=>by("/api/healing-sessions"),refetchInterval:5e3}),{data:O=[]}=Tt({queryKey:["/api/repos"],refetchInterval:5e3}),k=p==="active"?g:x,N=p==="archived";y.useEffect(()=>{if(k.length===0){n!==null&&o(null);return}(!n||!k.some(F=>F.id===n))&&o(k[0].id)},[k,n]);const R=k.find(F=>F.id===n)??null,I=R?nm(R):!0,L=Rt({mutationFn:async F=>(await wt("POST","/api/prs",{url:F})).json(),onSuccess:F=>{Me.invalidateQueries({queryKey:["/api/prs"]}),l(""),o(F.id)},onError:F=>{Vn("Could not add PR",F)}}),D=Rt({mutationFn:async F=>(await wt("POST",`/api/prs/${F}/apply`)).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/prs"]}),Me.invalidateQueries({queryKey:["/api/logs"]})},onError:F=>{Vn("Could not run babysitter",F)}}),Q=Rt({mutationFn:async({id:F,enabled:re})=>(await wt("PATCH",`/api/prs/${F}/watch`,{enabled:re})).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/prs"]}),Me.invalidateQueries({queryKey:["/api/prs/archived"]}),Me.invalidateQueries({queryKey:["/api/logs"]})},onError:F=>{Vn("Could not update PR watch state",F)}}),W=Rt({mutationFn:async F=>(await wt("PATCH","/api/config",F)).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/config"]})},onError:F=>{Vn("Could not update settings",F)}}),V=Rt({mutationFn:async()=>(await wt("POST","/api/repos/sync")).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/prs"]}),Me.invalidateQueries({queryKey:["/api/repos"]})},onError:F=>{Vn("Could not sync repositories",F)}}),ne=Rt({mutationFn:async F=>(await wt("POST","/api/repos",{repo:F})).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/repos"]}),Me.invalidateQueries({queryKey:["/api/prs"]}),f("")},onError:F=>{Vn("Could not watch repository",F)}});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsxs("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-label":"PR Feedback Agent",children:[d.jsx("rect",{x:"1",y:"1",width:"14",height:"14",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("path",{d:"M4 5h8M4 8h5M4 11h6",stroke:"currentColor",strokeWidth:"1"})]}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"code factory"}),d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"autonomous"}),d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["poll ",R1(S?.pollIntervalMs)]}),d.jsx(Kn,{href:"/changelogs",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"changelogs"}),d.jsx(Kn,{href:"/releases",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"releases"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[g.length," PR",g.length!==1?"s":""," in ",O.length," repo",O.length!==1?"s":""]}),d.jsx("label",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Agent"}),d.jsxs("select",{value:S?.codingAgent??"codex",onChange:F=>{const re=F.target.value;W.mutate({codingAgent:re})},disabled:W.isPending,"data-testid":"select-coding-agent",className:"border border-border bg-transparent px-2 py-0.5 text-[11px] focus:border-foreground focus:outline-none disabled:opacity-50",children:[d.jsx("option",{value:"codex",children:"codex"}),d.jsx("option",{value:"claude",children:"claude"})]}),d.jsxs("label",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[d.jsx("input",{type:"checkbox",checked:S?.autoResolveMergeConflicts??!0,onChange:F=>W.mutate({autoResolveMergeConflicts:F.target.checked}),disabled:W.isPending,"data-testid":"checkbox-auto-resolve-conflicts",className:"accent-foreground"}),"Auto-resolve conflicts"]}),d.jsxs("label",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[d.jsx("input",{type:"checkbox",checked:S?.autoUpdateDocs??!0,onChange:F=>W.mutate({autoUpdateDocs:F.target.checked}),disabled:W.isPending,"data-testid":"checkbox-auto-update-docs",className:"accent-foreground"}),"Auto-update docs"]}),d.jsx(Kn,{href:"/settings",className:"border border-border px-2 py-0.5 text-[11px] text-muted-foreground hover:text-foreground",children:"settings"})]})]}),d.jsx(f1,{}),d.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[d.jsxs("div",{className:"flex w-80 shrink-0 flex-col border-r border-border",children:[d.jsxs("div",{className:"flex border-b border-border",children:[d.jsxs("button",{onClick:()=>h("active"),"data-testid":"tab-active",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${p==="active"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:["Active (",g.length,")"]}),d.jsxs("button",{onClick:()=>h("archived"),"data-testid":"tab-archived",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${p==="archived"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:["Archived (",x.length,")"]})]}),!N&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"border-b border-border px-3 py-2 text-[11px] text-muted-foreground",children:"Add a PR or watch a repo. Sync and babysit start automatically."}),d.jsx("form",{onSubmit:F=>{F.preventDefault(),s.trim()&&L.mutate(s.trim())},className:"border-b border-border p-3",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",value:s,onChange:F=>l(F.target.value),placeholder:"github.com/owner/repo/pull/123","data-testid":"input-add-pr",className:"flex-1 border border-border bg-transparent px-2 py-1 text-[12px] placeholder:text-muted-foreground/50 focus:border-foreground focus:outline-none"}),d.jsx("button",{type:"submit",disabled:L.isPending||!s.trim(),"data-testid":"button-add-pr",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:"Add"})]})}),d.jsxs("form",{onSubmit:F=>{F.preventDefault(),u.trim()&&ne.mutate(u.trim())},className:"border-b border-border p-3",children:[d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",value:u,onChange:F=>f(F.target.value),placeholder:"owner/repo","data-testid":"input-add-repo",className:"flex-1 border border-border bg-transparent px-2 py-1 text-[12px] placeholder:text-muted-foreground/50 focus:border-foreground focus:outline-none"}),d.jsx("button",{type:"submit",disabled:ne.isPending||!u.trim(),"data-testid":"button-add-repo",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:"Watch"})]}),d.jsxs("div",{className:"mt-3",children:[d.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[d.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:"Tracked repositories"}),d.jsx("button",{type:"button",onClick:()=>V.mutate(),disabled:V.isPending,"data-testid":"button-sync-repos",className:"border border-border px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:V.isPending?"Fetching…":"Fetch"})]}),O.length===0?d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"No repositories being watched yet."}):d.jsx("div",{className:"space-y-1 text-[12px]",children:O.map(F=>d.jsx("a",{href:u1(F),target:"_blank",rel:"noopener noreferrer","data-testid":`tracked-repo-${F.replace("/","-")}`,className:"block break-all text-foreground/75 underline decoration-border underline-offset-2 transition-colors hover:text-foreground",children:F},F))})]})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:(N?b:v)?d.jsx("div",{className:"p-4 text-[12px] text-muted-foreground",children:"Loading..."}):k.length===0?d.jsx("div",{className:"p-4 text-[12px] text-muted-foreground",children:N?"No archived PRs. Closed PRs are archived automatically.":"No PRs tracked yet. Add a repository to watch or add a PR URL."}):k.map(F=>d.jsx(O1,{pr:F,isSelected:F.id===n,onSelect:()=>o(F.id)},F.id))})]}),d.jsx("div",{className:"flex flex-1 flex-col overflow-hidden",children:R?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"shrink-0 border-b border-border px-4 py-3",children:[d.jsxs("div",{className:"mb-1 flex items-start justify-between gap-4",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(om,{status:R.status}),d.jsx("span",{className:"truncate font-medium",children:R.title}),d.jsx(im,{pr:R}),!I&&d.jsx($a,{}),d.jsxs("a",{href:R.url,target:"_blank",rel:"noopener noreferrer",className:"shrink-0 text-[11px] text-muted-foreground underline decoration-border underline-offset-2 transition-colors hover:text-foreground",children:[R.repo,"#",R.number]})]}),d.jsxs("div",{className:"mt-1 flex flex-wrap gap-x-4 gap-y-1 text-[11px] text-muted-foreground",children:[d.jsxs("span",{children:["status: ",rm(R.status)]}),!I&&d.jsx($a,{}),d.jsxs("span",{children:[R.feedbackItems.length," items"]}),R.feedbackItems.length>0&&(()=>{const F=jo(R.feedbackItems);return d.jsxs(d.Fragment,{children:[F.queued>0&&d.jsxs("span",{children:[F.queued," queued"]}),F.inProgress>0&&d.jsxs("span",{children:[F.inProgress," in progress"]}),F.failed>0&&d.jsxs("span",{children:[F.failed," failed"]}),F.warning>0&&d.jsxs("span",{children:[F.warning," warnings"]})]})})(),R.testsPassed!==null&&d.jsxs("span",{children:["tests: ",R.testsPassed?"pass":"fail"]}),R.lintPassed!==null&&d.jsxs("span",{children:["lint: ",R.lintPassed?"pass":"fail"]}),R.lastChecked&&d.jsxs("span",{children:["checked ",jr(R.lastChecked)]})]})]}),!N&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>D.mutate(R.id),disabled:D.isPending||R.status==="processing","data-testid":"button-apply",className:"border border-border px-2 py-0.5 text-[10px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:R.status==="processing"?"Running":"Run now"}),d.jsx("button",{onClick:()=>Q.mutate({id:R.id,enabled:!I}),disabled:Q.isPending,"data-testid":"button-toggle-watch",className:"border border-border px-2 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:I?"Pause watch":"Resume watch"})]})]}),tm(R.feedbackItems)&&R.status!=="processing"&&jo(R.feedbackItems).inProgress===0&&d.jsx(sm,{href:R.url,testId:"detail-ready-to-merge",label:"All comments resolved — ready to merge",hint:"Open PR on GitHub →",className:"mt-2 gap-2 px-3 py-1.5 text-[12px] tracking-wider",dotClassName:"h-2 w-2",hintClassName:"text-[11px] normal-case tracking-normal text-green-500/70"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:I?"Background watcher syncs GitHub feedback and pushes approved fixes automatically.":"Background watch is paused for this PR; manual runs still work."})]}),d.jsx(I1,{pr:R,config:S,healingSessions:j}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:R.feedbackItems.length===0?d.jsx("div",{className:"p-4 text-[12px] text-muted-foreground",children:I?"No feedback yet. The watcher will sync GitHub comments automatically.":"No feedback yet. Background watch is paused for this PR."}):R.feedbackItems.map(F=>d.jsx(_1,{item:F,prId:R.id,readOnly:N},F.id))})]}):d.jsx("div",{className:"flex flex-1 items-center justify-center text-[12px] text-muted-foreground",children:"Select a PR from the left panel."})}),d.jsx(M1,{prId:n})]})]})}function F1(){const{data:n}=Tt({queryKey:["/api/config"]}),[o,s]=y.useState(""),[l,u]=y.useState(!1),f=Rt({mutationFn:async p=>(await wt("PATCH","/api/config",p)).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/config"]}),Xn({description:"Settings saved."})},onError:p=>{Xn({variant:"destructive",description:`Failed to save: ${p.message}`})}});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsx("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Kn,{href:"/",className:"text-[11px] text-muted-foreground hover:text-foreground",children:"← back"}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"settings"})]})}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:d.jsxs("div",{className:"mx-auto flex max-w-2xl flex-col gap-8",children:[d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Agent"}),d.jsx("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Coding Agent"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"CLI agent used to apply fixes"})]}),d.jsxs("select",{value:n?.codingAgent??"codex",onChange:p=>{const h=p.target.value;f.mutate({codingAgent:h})},disabled:f.isPending,className:"border border-border bg-transparent px-2 py-1 text-sm focus:border-foreground focus:outline-none disabled:opacity-50",children:[d.jsx("option",{value:"codex",children:"codex"}),d.jsx("option",{value:"claude",children:"claude"})]})]})})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Tuning"}),d.jsxs("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:[d.jsx(kn,{label:"Max turns",description:"Maximum agent turns per feedback item",value:n?.maxTurns??15,onChange:p=>f.mutate({maxTurns:p}),disabled:f.isPending}),d.jsx(kn,{label:"Poll interval (ms)",description:"How often to check for new feedback",value:n?.pollIntervalMs??12e4,onChange:p=>f.mutate({pollIntervalMs:p}),disabled:f.isPending}),d.jsx(kn,{label:"Batch window (ms)",description:"Time to batch feedback before processing",value:n?.batchWindowMs??3e5,onChange:p=>f.mutate({batchWindowMs:p}),disabled:f.isPending}),d.jsx(kn,{label:"Max changes per run",description:"Limit on concurrent changes",value:n?.maxChangesPerRun??20,onChange:p=>f.mutate({maxChangesPerRun:p}),disabled:f.isPending}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Auto-update docs"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"Automatically assess whether tracked PRs need documentation updates."})]}),d.jsx("input",{type:"checkbox",checked:n?.autoUpdateDocs??!0,onChange:p=>f.mutate({autoUpdateDocs:p.target.checked}),disabled:f.isPending,className:"h-4 w-4 accent-foreground"})]})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"CI Healing"}),d.jsxs("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:[d.jsxs("div",{className:"flex items-center justify-between gap-3",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Automatic CI healing"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"Classify healable CI failures and run bounded repair attempts in isolated worktrees."})]}),d.jsx("input",{type:"checkbox",checked:n?.autoHealCI??!1,onChange:p=>f.mutate({autoHealCI:p.target.checked}),disabled:f.isPending,className:"h-4 w-4 accent-foreground"})]}),d.jsx(kn,{label:"Max healing attempts per session",description:"Upper bound on repair attempts for a single healing session",value:n?.maxHealingAttemptsPerSession??3,onChange:p=>f.mutate({maxHealingAttemptsPerSession:p}),disabled:f.isPending}),d.jsx(kn,{label:"Max healing attempts per fingerprint",description:"Cap retries for the same failure fingerprint",value:n?.maxHealingAttemptsPerFingerprint??2,onChange:p=>f.mutate({maxHealingAttemptsPerFingerprint:p}),disabled:f.isPending}),d.jsx(kn,{label:"Max concurrent healing runs",description:"How many healing runs can execute at once",value:n?.maxConcurrentHealingRuns??1,onChange:p=>f.mutate({maxConcurrentHealingRuns:p}),disabled:f.isPending}),d.jsx(kn,{label:"Healing cooldown (ms)",description:"Backoff before a cooldowned session can retry",value:n?.healingCooldownMs??3e5,onChange:p=>f.mutate({healingCooldownMs:p}),disabled:f.isPending})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Releases"}),d.jsx("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:d.jsxs("label",{className:"flex items-start justify-between gap-3",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Automatic release creation"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"Evaluate merged PRs and publish GitHub releases automatically when the agent decides they are release-worthy."})]}),d.jsx("input",{type:"checkbox",checked:n?.autoCreateReleases??!0,onChange:p=>f.mutate({autoCreateReleases:p.target.checked}),disabled:f.isPending,className:"mt-1 accent-foreground","data-testid":"checkbox-auto-create-releases"})]})})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"GitHub"}),d.jsxs("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Token"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:n?.githubToken||"not set"})]}),l?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{type:"password",value:o,onChange:p=>s(p.target.value),placeholder:"ghp_...",className:"border border-border bg-transparent px-2 py-1 text-sm focus:border-foreground focus:outline-none"}),d.jsx("button",{onClick:()=>{o&&(f.mutate({githubToken:o}),s(""),u(!1))},disabled:!o||f.isPending,className:"border border-border px-2 py-1 text-xs hover:bg-muted disabled:opacity-50",children:"save"}),d.jsx("button",{onClick:()=>{u(!1),s("")},className:"px-2 py-1 text-xs text-muted-foreground hover:text-foreground",children:"cancel"})]}):d.jsx("button",{onClick:()=>u(!0),className:"border border-border px-2 py-1 text-xs hover:bg-muted",children:"update"})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Trusted reviewers"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:n?.trustedReviewers?.length?n.trustedReviewers.join(", "):"none configured"})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Ignored bots"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:n?.ignoredBots?.length?n.ignoredBots.join(", "):"none configured"})]})]})]})]})})]})}function kn({label:n,description:o,value:s,onChange:l,disabled:u}){return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:n}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:o})]}),d.jsx("input",{type:"number",value:s,onChange:f=>{const p=parseInt(f.target.value,10);isNaN(p)||l(p)},disabled:u,className:"w-28 border border-border bg-transparent px-2 py-1 text-right text-sm focus:border-foreground focus:outline-none disabled:opacity-50"})]})}function z1(n){return new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function $1(n){const o=n.match(/##\s*Twitter\/X\s*(?:Thread)?\n([\s\S]*?)(?=\n##\s|\s*$)/i),s=n.match(/##\s*LinkedIn\s*(?:\/\s*General)?\n([\s\S]*?)(?=\n##\s|\s*$)/i);return{twitter:o?o[1].trim():null,linkedin:s?s[1].trim():null}}function U1({text:n}){const[o,s]=y.useState(!1),l=async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),2e3)}catch{}};return d.jsx("button",{onClick:l,className:"border border-border px-2 py-0.5 text-[11px] uppercase tracking-wider text-muted-foreground hover:border-foreground hover:text-foreground focus:outline-none",children:o?"copied":"copy"})}function Sa({title:n,content:o}){return d.jsxs("div",{className:"mt-4",children:[d.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[d.jsx("span",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:n}),d.jsx(U1,{text:o})]}),d.jsx("pre",{className:"whitespace-pre-wrap border border-border bg-background p-3 text-[12px] leading-relaxed font-mono",children:o})]})}function H1({status:n}){const o=n==="done"?"border-foreground/40 text-foreground":n==="generating"?"border-border text-muted-foreground animate-pulse":"border-destructive/40 text-destructive";return d.jsx("span",{className:`border px-1.5 py-0 text-[10px] uppercase tracking-wider ${o}`,children:n})}function B1({changelog:n}){const[o,s]=y.useState(!1),l=n.content?$1(n.content):null;return d.jsxs("div",{className:"border border-border",children:[d.jsxs("div",{className:"flex cursor-pointer items-center justify-between px-4 py-3 hover:bg-muted/30",onClick:()=>n.status==="done"&&s(u=>!u),children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(H1,{status:n.status}),d.jsx("span",{className:"text-sm font-medium",children:z1(n.createdAt)}),d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[n.triggerCount," PR",n.triggerCount!==1?"s":""," merged"]}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:n.prSummaries.map(u=>`#${u.number}`).join(" · ")})]}),n.status==="done"&&d.jsx("span",{className:"text-[11px] text-muted-foreground",children:o?"▲":"▼"})]}),o&&n.status==="done"&&d.jsxs("div",{className:"border-t border-border px-4 pb-4 pt-3",children:[n.error&&d.jsx("p",{className:"mb-3 text-[12px] text-destructive",children:n.error}),l?.twitter&&d.jsx(Sa,{title:"Twitter / X Thread",content:l.twitter}),l?.linkedin&&d.jsx(Sa,{title:"LinkedIn / General",content:l.linkedin}),!l?.twitter&&!l?.linkedin&&n.content&&d.jsx(Sa,{title:"Full output",content:n.content})]}),n.status==="error"&&n.error&&d.jsx("div",{className:"border-t border-border px-4 py-3",children:d.jsx("p",{className:"text-[12px] text-destructive",children:n.error})}),n.status==="generating"&&d.jsx("div",{className:"border-t border-border px-4 py-2.5",children:d.jsx("span",{className:"text-[11px] text-muted-foreground",children:"Generating social media post with AI agent…"})})]})}function W1(){const{data:n=[],isLoading:o}=Tt({queryKey:["/api/changelogs"],refetchInterval:s=>s.state.data?.some(u=>u.status==="generating")?5e3:!1});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsxs("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-label":"PR Feedback Agent",children:[d.jsx("rect",{x:"1",y:"1",width:"14",height:"14",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("path",{d:"M4 5h8M4 8h5M4 11h6",stroke:"currentColor",strokeWidth:"1"})]}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"code factory"}),d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"changelogs"})]}),d.jsx(Kn,{href:"/",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"← back to dashboard"})]}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:d.jsxs("div",{className:"mx-auto max-w-3xl",children:[d.jsxs("div",{className:"mb-5",children:[d.jsx("h1",{className:"text-base font-medium",children:"Social Media Changelogs"}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Generated automatically every 5 PRs merged to main. Copy and paste into Twitter/X or LinkedIn."})]}),!o&&n.length===0&&d.jsxs("div",{className:"border border-border px-4 py-8 text-center",children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"No changelogs yet."}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"A post will be generated automatically after every 5 PRs are merged to main."})]}),o&&d.jsx("div",{className:"border border-border px-4 py-6 text-center",children:d.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Loading…"})}),d.jsx("div",{className:"flex flex-col gap-2",children:n.map(s=>d.jsx(B1,{changelog:s},s.id))})]})})]})}const V1=new Set(["detected","evaluating","proposed","publishing"]);function am(n){return V1.has(n)}function Q1(n){return n==="published"||n==="skipped"||n==="error"}function K1(n){return typeof n=="object"&&n!==null&&"status"in n&&typeof n.status=="string"}function Ca(n){if(!n)return"n/a";const o=new Date(n);return Number.isNaN(o.getTime())?"n/a":o.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function q1(n){return n?n.slice(0,7):"n/a"}function G1({status:n}){const o=n==="published"?"border-foreground/40 text-foreground":n==="skipped"?"border-border text-muted-foreground":n==="error"?"border-destructive/40 text-destructive":am(n)?"border-border text-muted-foreground animate-pulse":"border-border text-muted-foreground";return d.jsx("span",{className:`border px-1.5 py-0 text-[10px] uppercase tracking-wider ${o}`,children:n})}function X1({text:n}){const[o,s]=y.useState(!1),l=async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),1500)}catch(u){const f=u instanceof Error?u.message:"Clipboard write failed";Xn({variant:"destructive",description:`Failed to copy: ${f}`})}};return d.jsx("button",{onClick:l,className:"border border-border px-2 py-0.5 text-[11px] uppercase tracking-wider text-muted-foreground hover:border-foreground hover:text-foreground",children:o?"copied":"copy"})}function Y1({run:n,onRetry:o,retryPending:s}){const[l,u]=y.useState(!1),p=!(!!n.decisionReason||!!n.releaseTitle||!!n.releaseNotes||!!n.error||!!n.githubReleaseUrl||n.includedPrs.length>0)&&Q1(n.status);return d.jsxs("div",{className:"border border-border",children:[d.jsxs("button",{className:"flex w-full items-center justify-between px-4 py-3 text-left hover:bg-muted/30",onClick:()=>u(h=>!h),children:[d.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[d.jsx(G1,{status:n.status}),d.jsx("span",{className:"truncate text-sm font-medium",children:n.repo}),d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["#",n.triggerPrNumber]}),n.proposedVersion&&d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:n.proposedVersion}),!n.proposedVersion&&n.recommendedBump&&d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["bump ",n.recommendedBump]})]}),d.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-muted-foreground",children:[d.jsx("span",{children:Ca(n.createdAt)}),d.jsx("span",{children:l?"▲":"▼"})]})]}),l&&d.jsxs("div",{className:"border-t border-border px-4 pb-4 pt-3",children:[d.jsxs("div",{className:"mb-3 text-[12px] text-muted-foreground",children:["Trigger PR:"," ",d.jsxs("a",{href:n.triggerPrUrl,target:"_blank",rel:"noreferrer noopener",className:"underline underline-offset-2",children:["#",n.triggerPrNumber," ",n.triggerPrTitle]})]}),n.decisionReason&&d.jsx("p",{className:"mb-3 text-[12px] leading-relaxed",children:n.decisionReason}),n.releaseTitle&&d.jsxs("p",{className:"mb-3 text-[12px]",children:[d.jsx("span",{className:"text-muted-foreground",children:"Release title:"})," ",d.jsx("span",{children:n.releaseTitle})]}),d.jsxs("div",{className:"mb-3 grid grid-cols-1 gap-2 text-[12px] text-muted-foreground md:grid-cols-2",children:[d.jsxs("div",{children:["Base branch: ",n.baseBranch||"n/a"]}),d.jsxs("div",{children:["Trigger SHA: ",q1(n.triggerMergeSha)]}),d.jsxs("div",{children:["Merged at: ",Ca(n.triggerMergedAt)]}),d.jsxs("div",{children:["Updated: ",Ca(n.updatedAt)]})]}),n.includedPrs.length>0&&d.jsxs("div",{className:"mb-3",children:[d.jsxs("div",{className:"mb-1.5 text-[11px] uppercase tracking-wider text-muted-foreground",children:["Included PRs (",n.includedPrs.length,")"]}),d.jsx("div",{className:"space-y-1 border border-border p-3 text-[12px]",children:n.includedPrs.map(h=>d.jsxs("div",{className:"flex items-center justify-between gap-3",children:[d.jsxs("span",{className:"truncate",children:["#",h.number," ",h.title]}),d.jsx("a",{href:h.url,target:"_blank",rel:"noreferrer noopener",className:"text-muted-foreground hover:text-foreground",children:"open"})]},`${h.mergeSha}-${h.number}`))})]}),n.releaseNotes&&d.jsxs("div",{className:"mb-3",children:[d.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[d.jsx("span",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Release Notes"}),d.jsx(X1,{text:n.releaseNotes})]}),d.jsx("pre",{className:"whitespace-pre-wrap border border-border bg-background p-3 text-[12px] leading-relaxed font-mono",children:n.releaseNotes})]}),n.error&&d.jsx("div",{className:"mb-3 border border-destructive/40 bg-destructive/5 p-3 text-[12px] text-destructive",children:n.error}),d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.githubReleaseUrl&&d.jsx("a",{href:n.githubReleaseUrl,target:"_blank",rel:"noreferrer noopener",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider text-muted-foreground hover:text-foreground",children:"open release"}),n.status==="error"&&d.jsx("button",{onClick:()=>o(n.id),disabled:s,className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider text-muted-foreground hover:text-foreground disabled:opacity-50",children:"retry"})]}),p&&d.jsx("p",{className:"mt-2 text-[12px] text-muted-foreground",children:"No details available yet."})]})]})}function Z1(){const{data:n=[],isLoading:o}=Tt({queryKey:["/api/releases"],refetchInterval:l=>{const u=l.state.data;return Array.isArray(u)&&u.some(f=>K1(f)&&am(f.status))?5e3:!1}}),s=Rt({mutationFn:async l=>(await wt("POST",`/api/releases/${l}/retry`)).json(),onSuccess:()=>{Me.invalidateQueries({queryKey:["/api/releases"]}),Xn({description:"Retry queued."})},onError:l=>{Xn({variant:"destructive",description:`Retry failed: ${l.message}`})}});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsxs("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-label":"Release Management",children:[d.jsx("rect",{x:"1",y:"1",width:"14",height:"14",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("path",{d:"M4 6h8M4 9h8M4 12h5",stroke:"currentColor",strokeWidth:"1"})]}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"code factory"}),d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"releases"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Kn,{href:"/settings",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"settings"}),d.jsx(Kn,{href:"/",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"← back to dashboard"})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:d.jsxs("div",{className:"mx-auto max-w-4xl",children:[d.jsxs("div",{className:"mb-5",children:[d.jsx("h1",{className:"text-base font-medium",children:"Release Management"}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Every merged PR can trigger agent evaluation. This page shows release decisions, version bumps, notes, and publishing outcomes."})]}),o&&d.jsx("div",{className:"border border-border px-4 py-6 text-center",children:d.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Loading…"})}),!o&&n.length===0&&d.jsxs("div",{className:"border border-border px-4 py-8 text-center",children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"No release runs yet."}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Runs appear after merged PRs are evaluated for release-worthiness."})]}),d.jsx("div",{className:"flex flex-col gap-2",children:n.map(l=>d.jsx(Y1,{run:l,onRetry:u=>s.mutate(u),retryPending:s.isPending},l.id))})]})})]})}const um=y.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:ft("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",n),...o}));um.displayName="Card";const J1=y.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:ft("flex flex-col space-y-1.5 p-6",n),...o}));J1.displayName="CardHeader";const eb=y.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:ft("text-2xl font-semibold leading-none tracking-tight",n),...o}));eb.displayName="CardTitle";const tb=y.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:ft("text-sm text-muted-foreground",n),...o}));tb.displayName="CardDescription";const cm=y.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:ft("p-6 pt-0",n),...o}));cm.displayName="CardContent";const nb=y.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:ft("flex items-center p-6 pt-0",n),...o}));nb.displayName="CardFooter";function rb(){return d.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:d.jsx(um,{className:"w-full max-w-md mx-4",children:d.jsxs(cm,{className:"pt-6",children:[d.jsxs("div",{className:"flex mb-4 gap-2",children:[d.jsx(Tx,{className:"h-8 w-8 text-red-500"}),d.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),d.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}function ob(){return d.jsxs(Mv,{children:[d.jsx(wo,{path:"/",component:D1}),d.jsx(wo,{path:"/settings",component:F1}),d.jsx(wo,{path:"/changelogs",component:W1}),d.jsx(wo,{path:"/releases",component:Z1}),d.jsx(wo,{component:rb})]})}function sb(){return d.jsx(uy,{client:Me,children:d.jsxs(e1,{children:[d.jsx(pw,{}),d.jsx(wp,{hook:Sp,children:d.jsx(ob,{})})]})})}window.location.hash||(window.location.hash="#/");mv.createRoot(document.getElementById("root")).render(d.jsx(sb,{}));