awel 0.1.0 → 0.1.2
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.
- package/README.md +17 -0
- package/README.zh-CN.md +115 -0
- package/dist/cli/agent.js +11 -0
- package/dist/cli/awel-config.d.ts +6 -0
- package/dist/cli/awel-config.js +20 -0
- package/dist/cli/babel-setup.js +2 -19
- package/dist/cli/comment-popup.js +50 -26
- package/dist/cli/index.js +2 -0
- package/dist/cli/onboarding.d.ts +1 -0
- package/dist/cli/onboarding.js +58 -0
- package/dist/cli/providers/registry.d.ts +12 -0
- package/dist/cli/providers/registry.js +41 -0
- package/dist/cli/providers/vercel.js +18 -4
- package/dist/cli/subprocess.js +76 -14
- package/dist/dashboard/assets/index-B374_cjZ.css +1 -0
- package/dist/dashboard/assets/{index-Bk--q3wu.js → index-BJ6wUfxa.js} +89 -84
- package/dist/dashboard/index.html +2 -2
- package/dist/host/host.js +61 -52
- package/package.json +1 -2
- package/dist/dashboard/assets/index-DkWV03So.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function l(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();function vl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pa={exports:{}},Ii={},ha={exports:{}},
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function l(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();function vl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pa={exports:{}},Ii={},ha={exports:{}},Re={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var mf;function
|
|
9
|
+
*/var mf;function qg(){if(mf)return Re;mf=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function k(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,T={};function I(N,F,C){this.props=N,this.context=F,this.refs=T,this.updater=C||x}I.prototype.isReactComponent={},I.prototype.setState=function(N,F){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,F,"setState")},I.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function b(){}b.prototype=I.prototype;function $(N,F,C){this.props=N,this.context=F,this.refs=T,this.updater=C||x}var D=$.prototype=new b;D.constructor=$,j(D,I.prototype),D.isPureReactComponent=!0;var U=Array.isArray,H=Object.prototype.hasOwnProperty,R={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function K(N,F,C){var Se,Ee={},Q=null,B=null;if(F!=null)for(Se in F.ref!==void 0&&(B=F.ref),F.key!==void 0&&(Q=""+F.key),F)H.call(F,Se)&&!V.hasOwnProperty(Se)&&(Ee[Se]=F[Se]);var J=arguments.length-2;if(J===1)Ee.children=C;else if(1<J){for(var de=Array(J),se=0;se<J;se++)de[se]=arguments[se+2];Ee.children=de}if(N&&N.defaultProps)for(Se in J=N.defaultProps,J)Ee[Se]===void 0&&(Ee[Se]=J[Se]);return{$$typeof:t,type:N,key:Q,ref:B,props:Ee,_owner:R.current}}function G(N,F){return{$$typeof:t,type:N.type,key:F,ref:N.ref,props:N.props,_owner:N._owner}}function X(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function oe(N){var F={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(C){return F[C]})}var M=/\/+/g;function re(N,F){return typeof N=="object"&&N!==null&&N.key!=null?oe(""+N.key):F.toString(36)}function Y(N,F,C,Se,Ee){var Q=typeof N;(Q==="undefined"||Q==="boolean")&&(N=null);var B=!1;if(N===null)B=!0;else switch(Q){case"string":case"number":B=!0;break;case"object":switch(N.$$typeof){case t:case r:B=!0}}if(B)return B=N,Ee=Ee(B),N=Se===""?"."+re(B,0):Se,U(Ee)?(C="",N!=null&&(C=N.replace(M,"$&/")+"/"),Y(Ee,F,C,"",function(se){return se})):Ee!=null&&(X(Ee)&&(Ee=G(Ee,C+(!Ee.key||B&&B.key===Ee.key?"":(""+Ee.key).replace(M,"$&/")+"/")+N)),F.push(Ee)),1;if(B=0,Se=Se===""?".":Se+":",U(N))for(var J=0;J<N.length;J++){Q=N[J];var de=Se+re(Q,J);B+=Y(Q,F,C,de,Ee)}else if(de=k(N),typeof de=="function")for(N=de.call(N),J=0;!(Q=N.next()).done;)Q=Q.value,de=Se+re(Q,J++),B+=Y(Q,F,C,de,Ee);else if(Q==="object")throw F=String(N),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return B}function q(N,F,C){if(N==null)return N;var Se=[],Ee=0;return Y(N,Se,"","",function(Q){return F.call(C,Q,Ee++)}),Se}function fe(N){if(N._status===-1){var F=N._result;F=F(),F.then(function(C){(N._status===0||N._status===-1)&&(N._status=1,N._result=C)},function(C){(N._status===0||N._status===-1)&&(N._status=2,N._result=C)}),N._status===-1&&(N._status=0,N._result=F)}if(N._status===1)return N._result.default;throw N._result}var pe={current:null},ee={transition:null},ue={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:ee,ReactCurrentOwner:R};function S(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:q,forEach:function(N,F,C){q(N,function(){F.apply(this,arguments)},C)},count:function(N){var F=0;return q(N,function(){F++}),F},toArray:function(N){return q(N,function(F){return F})||[]},only:function(N){if(!X(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Re.Component=I,Re.Fragment=i,Re.Profiler=s,Re.PureComponent=$,Re.StrictMode=l,Re.Suspense=p,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,Re.act=S,Re.cloneElement=function(N,F,C){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var Se=j({},N.props),Ee=N.key,Q=N.ref,B=N._owner;if(F!=null){if(F.ref!==void 0&&(Q=F.ref,B=R.current),F.key!==void 0&&(Ee=""+F.key),N.type&&N.type.defaultProps)var J=N.type.defaultProps;for(de in F)H.call(F,de)&&!V.hasOwnProperty(de)&&(Se[de]=F[de]===void 0&&J!==void 0?J[de]:F[de])}var de=arguments.length-2;if(de===1)Se.children=C;else if(1<de){J=Array(de);for(var se=0;se<de;se++)J[se]=arguments[se+2];Se.children=J}return{$$typeof:t,type:N.type,key:Ee,ref:Q,props:Se,_owner:B}},Re.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:a,_context:N},N.Consumer=N},Re.createElement=K,Re.createFactory=function(N){var F=K.bind(null,N);return F.type=N,F},Re.createRef=function(){return{current:null}},Re.forwardRef=function(N){return{$$typeof:f,render:N}},Re.isValidElement=X,Re.lazy=function(N){return{$$typeof:g,_payload:{_status:-1,_result:N},_init:fe}},Re.memo=function(N,F){return{$$typeof:m,type:N,compare:F===void 0?null:F}},Re.startTransition=function(N){var F=ee.transition;ee.transition={};try{N()}finally{ee.transition=F}},Re.unstable_act=S,Re.useCallback=function(N,F){return pe.current.useCallback(N,F)},Re.useContext=function(N){return pe.current.useContext(N)},Re.useDebugValue=function(){},Re.useDeferredValue=function(N){return pe.current.useDeferredValue(N)},Re.useEffect=function(N,F){return pe.current.useEffect(N,F)},Re.useId=function(){return pe.current.useId()},Re.useImperativeHandle=function(N,F,C){return pe.current.useImperativeHandle(N,F,C)},Re.useInsertionEffect=function(N,F){return pe.current.useInsertionEffect(N,F)},Re.useLayoutEffect=function(N,F){return pe.current.useLayoutEffect(N,F)},Re.useMemo=function(N,F){return pe.current.useMemo(N,F)},Re.useReducer=function(N,F,C){return pe.current.useReducer(N,F,C)},Re.useRef=function(N){return pe.current.useRef(N)},Re.useState=function(N){return pe.current.useState(N)},Re.useSyncExternalStore=function(N,F,C){return pe.current.useSyncExternalStore(N,F,C)},Re.useTransition=function(){return pe.current.useTransition()},Re.version="18.3.1",Re}var gf;function wl(){return gf||(gf=1,ha.exports=qg()),ha.exports}/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var yf;function
|
|
17
|
+
*/var yf;function Kg(){if(yf)return Ii;yf=1;var t=wl(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(f,p,m){var g,y={},k=null,x=null;m!==void 0&&(k=""+m),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(x=p.ref);for(g in p)l.call(p,g)&&!a.hasOwnProperty(g)&&(y[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)y[g]===void 0&&(y[g]=p[g]);return{$$typeof:r,type:f,key:k,ref:x,props:y,_owner:s.current}}return Ii.Fragment=i,Ii.jsx=c,Ii.jsxs=c,Ii}var xf;function Qg(){return xf||(xf=1,pa.exports=Kg()),pa.exports}var w=Qg(),_=wl();const Gg=vl(_);var ll={},ma={exports:{}},Lt={},ga={exports:{}},ya={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var vf;function
|
|
25
|
+
*/var vf;function Yg(){return vf||(vf=1,(function(t){function r(ee,ue){var S=ee.length;ee.push(ue);e:for(;0<S;){var N=S-1>>>1,F=ee[N];if(0<s(F,ue))ee[N]=ue,ee[S]=F,S=N;else break e}}function i(ee){return ee.length===0?null:ee[0]}function l(ee){if(ee.length===0)return null;var ue=ee[0],S=ee.pop();if(S!==ue){ee[0]=S;e:for(var N=0,F=ee.length,C=F>>>1;N<C;){var Se=2*(N+1)-1,Ee=ee[Se],Q=Se+1,B=ee[Q];if(0>s(Ee,S))Q<F&&0>s(B,Ee)?(ee[N]=B,ee[Q]=S,N=Q):(ee[N]=Ee,ee[Se]=S,N=Se);else if(Q<F&&0>s(B,S))ee[N]=B,ee[Q]=S,N=Q;else break e}}return ue}function s(ee,ue){var S=ee.sortIndex-ue.sortIndex;return S!==0?S:ee.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var p=[],m=[],g=1,y=null,k=3,x=!1,j=!1,T=!1,I=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(ee){for(var ue=i(m);ue!==null;){if(ue.callback===null)l(m);else if(ue.startTime<=ee)l(m),ue.sortIndex=ue.expirationTime,r(p,ue);else break;ue=i(m)}}function U(ee){if(T=!1,D(ee),!j)if(i(p)!==null)j=!0,fe(H);else{var ue=i(m);ue!==null&&pe(U,ue.startTime-ee)}}function H(ee,ue){j=!1,T&&(T=!1,b(K),K=-1),x=!0;var S=k;try{for(D(ue),y=i(p);y!==null&&(!(y.expirationTime>ue)||ee&&!oe());){var N=y.callback;if(typeof N=="function"){y.callback=null,k=y.priorityLevel;var F=N(y.expirationTime<=ue);ue=t.unstable_now(),typeof F=="function"?y.callback=F:y===i(p)&&l(p),D(ue)}else l(p);y=i(p)}if(y!==null)var C=!0;else{var Se=i(m);Se!==null&&pe(U,Se.startTime-ue),C=!1}return C}finally{y=null,k=S,x=!1}}var R=!1,V=null,K=-1,G=5,X=-1;function oe(){return!(t.unstable_now()-X<G)}function M(){if(V!==null){var ee=t.unstable_now();X=ee;var ue=!0;try{ue=V(!0,ee)}finally{ue?re():(R=!1,V=null)}}else R=!1}var re;if(typeof $=="function")re=function(){$(M)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,q=Y.port2;Y.port1.onmessage=M,re=function(){q.postMessage(null)}}else re=function(){I(M,0)};function fe(ee){V=ee,R||(R=!0,re())}function pe(ee,ue){K=I(function(){ee(t.unstable_now())},ue)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ee){ee.callback=null},t.unstable_continueExecution=function(){j||x||(j=!0,fe(H))},t.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<ee?Math.floor(1e3/ee):5},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_getFirstCallbackNode=function(){return i(p)},t.unstable_next=function(ee){switch(k){case 1:case 2:case 3:var ue=3;break;default:ue=k}var S=k;k=ue;try{return ee()}finally{k=S}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(ee,ue){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var S=k;k=ee;try{return ue()}finally{k=S}},t.unstable_scheduleCallback=function(ee,ue,S){var N=t.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?N+S:N):S=N,ee){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=S+F,ee={id:g++,callback:ue,priorityLevel:ee,startTime:S,expirationTime:F,sortIndex:-1},S>N?(ee.sortIndex=S,r(m,ee),i(p)===null&&ee===i(m)&&(T?(b(K),K=-1):T=!0,pe(U,S-N))):(ee.sortIndex=F,r(p,ee),j||x||(j=!0,fe(H))),ee},t.unstable_shouldYield=oe,t.unstable_wrapCallback=function(ee){var ue=k;return function(){var S=k;k=ue;try{return ee.apply(this,arguments)}finally{k=S}}}})(ya)),ya}var wf;function Xg(){return wf||(wf=1,ga.exports=Yg()),ga.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var kf;function
|
|
34
|
-
`+
|
|
33
|
+
*/var kf;function Jg(){if(kf)return Lt;kf=1;var t=wl(),r=Xg();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,s={};function a(e,n){c(e,n),c(e+"Capture",n)}function c(e,n){for(s[e]=n,e=0;e<n.length;e++)l.add(n[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,g={},y={};function k(e){return p.call(y,e)?!0:p.call(g,e)?!1:m.test(e)?y[e]=!0:(g[e]=!0,!1)}function x(e,n,o,u){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return u?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j(e,n,o,u){if(n===null||typeof n>"u"||x(e,n,o,u))return!0;if(u)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function T(e,n,o,u,d,h,v){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=h,this.removeEmptyString=v}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];I[n]=new T(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new T(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){I[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function $(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 n=e.replace(b,$);I[n]=new T(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(b,$);I[n]=new T(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(b,$);I[n]=new T(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function D(e,n,o,u){var d=I.hasOwnProperty(n)?I[n]:null;(d!==null?d.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(j(n,o,d,u)&&(o=null),u||d===null?k(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):d.mustUseProperty?e[d.propertyName]=o===null?d.type===3?!1:"":o:(n=d.attributeName,u=d.attributeNamespace,o===null?e.removeAttribute(n):(d=d.type,o=d===3||d===4&&o===!0?"":""+o,u?e.setAttributeNS(u,n,o):e.setAttribute(n,o))))}var U=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),R=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),oe=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),ee=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var S=Object.assign,N;function F(e){if(N===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
|
|
34
|
+
`+N+e}var C=!1;function Se(e,n){if(!e||C)return"";C=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(A){var u=A}Reflect.construct(e,[],n)}else{try{n.call()}catch(A){u=A}e.call(n.prototype)}else{try{throw Error()}catch(A){u=A}e()}}catch(A){if(A&&u&&typeof A.stack=="string"){for(var d=A.stack.split(`
|
|
35
35
|
`),h=u.stack.split(`
|
|
36
|
-
`),v=d.length-1,
|
|
37
|
-
`+d[v].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=v&&0<=b);break}}}finally{C=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?D(e):""}function Ee(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=Se(e.type,!1),e;case 11:return e=Se(e.type.render,!1),e;case 1:return e=Se(e.type,!0),e;default:return""}}function K(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 $:return"Fragment";case I:return"Portal";case G:return"Profiler";case J:return"StrictMode";case re:return"Suspense";case Q:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case se:return(e.displayName||"Context")+".Consumer";case Y:return(e._context.displayName||"Context")+".Provider";case M:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return n=e.displayName||null,n!==null?n:K(e.type)||"Memo";case de:n=e._payload,e=e._init;try{return K(e(n))}catch{}}return null}function U(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(n);case 8:return n===J?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function X(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function le(e){var n=pe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(v){u=""+v,h.call(this,v)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(v){u=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ye(e){e._valueTracker||(e._valueTracker=le(e))}function ze(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),u="";return e&&(u=pe(e)?e.checked?"true":"false":e.value),e=u,e!==o?(n.setValue(e),!0):!1}function ce(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 we(e,n){var o=n.checked;return S({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function ve(e,n){var o=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;o=X(n.value!=null?n.value:o),e._wrapperState={initialChecked:u,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ae(e,n){n=n.checked,n!=null&&F(e,"checked",n,!1)}function Ve(e,n){Ae(e,n);var o=X(n.value),u=n.type;if(o!=null)u==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?st(e,n.type,o):n.hasOwnProperty("defaultValue")&&st(e,n.type,X(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function $e(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function st(e,n,o){(n!=="number"||ce(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var He=Array.isArray;function gt(e,n,o,u){if(e=e.options,n){n={};for(var d=0;d<o.length;d++)n["$"+o[d]]=!0;for(o=0;o<e.length;o++)d=n.hasOwnProperty("$"+e[o].value),e[o].selected!==d&&(e[o].selected=d),d&&u&&(e[o].defaultSelected=!0)}else{for(o=""+X(o),n=null,d=0;d<e.length;d++){if(e[d].value===o){e[d].selected=!0,u&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function at(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return S({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function En(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(He(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:X(o)}}function Yi(e,n){var o=X(n.value),u=X(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),u!=null&&(e.defaultValue=""+u)}function Xi(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function W(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 ae(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?W(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ne,_e=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,u,d){MSApp.execUnsafeLocalFunction(function(){return e(n,o,u,d)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ne.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Me(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var ft={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},mn=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(e){mn.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),ft[n]=ft[e]})});function Bt(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||ft.hasOwnProperty(e)&&ft[e]?(""+n).trim():n+"px"}function Nn(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var u=o.indexOf("--")===0,d=Bt(o,n[o],u);o==="float"&&(o="cssFloat"),u?e.setProperty(o,d):e[o]=d}}var Yn=S({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 pt(e,n){if(n){if(Yn[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function rn(e,n){if(e.indexOf("-")===-1)return typeof n.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 zt=null;function jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,mr=null,gr=null;function Iu(e){if(e=gi(e)){if(typeof Tl!="function")throw Error(i(280));var n=e.stateNode;n&&(n=ko(n),Tl(e.stateNode,e.type,n))}}function _u(e){mr?gr?gr.push(e):gr=[e]:mr=e}function Ou(){if(mr){var e=mr,n=gr;if(gr=mr=null,Iu(e),n)for(e=0;e<n.length;e++)Iu(n[e])}}function Ru(e,n){return e(n)}function zu(){}var Ll=!1;function Au(e,n,o){if(Ll)return e(n,o);Ll=!0;try{return Ru(e,n,o)}finally{Ll=!1,(mr!==null||gr!==null)&&(zu(),Ou())}}function Gr(e,n){var o=e.stateNode;if(o===null)return null;var u=ko(o);if(u===null)return null;o=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Il=!1;if(f)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Il=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Il=!1}function Yh(e,n,o,u,d,h,v,b,P){var A=Array.prototype.slice.call(arguments,3);try{n.apply(o,A)}catch(te){this.onError(te)}}var Xr=!1,Ji=null,Zi=!1,_l=null,Xh={onError:function(e){Xr=!0,Ji=e}};function Jh(e,n,o,u,d,h,v,b,P){Xr=!1,Ji=null,Yh.apply(Xh,arguments)}function Zh(e,n,o,u,d,h,v,b,P){if(Jh.apply(this,arguments),Xr){if(Xr){var A=Ji;Xr=!1,Ji=null}else throw Error(i(198));Zi||(Zi=!0,_l=A)}}function Xn(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function Mu(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Du(e){if(Xn(e)!==e)throw Error(i(188))}function em(e){var n=e.alternate;if(!n){if(n=Xn(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,u=n;;){var d=o.return;if(d===null)break;var h=d.alternate;if(h===null){if(u=d.return,u!==null){o=u;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===o)return Du(d),e;if(h===u)return Du(d),n;h=h.sibling}throw Error(i(188))}if(o.return!==u.return)o=d,u=h;else{for(var v=!1,b=d.child;b;){if(b===o){v=!0,o=d,u=h;break}if(b===u){v=!0,u=d,o=h;break}b=b.sibling}if(!v){for(b=h.child;b;){if(b===o){v=!0,o=h,u=d;break}if(b===u){v=!0,u=h,o=d;break}b=b.sibling}if(!v)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function Fu(e){return e=em(e),e!==null?$u(e):null}function $u(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=$u(e);if(n!==null)return n;e=e.sibling}return null}var Uu=r.unstable_scheduleCallback,Bu=r.unstable_cancelCallback,tm=r.unstable_shouldYield,nm=r.unstable_requestPaint,tt=r.unstable_now,rm=r.unstable_getCurrentPriorityLevel,Ol=r.unstable_ImmediatePriority,Vu=r.unstable_UserBlockingPriority,eo=r.unstable_NormalPriority,im=r.unstable_LowPriority,Hu=r.unstable_IdlePriority,to=null,on=null;function om(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(to,e,void 0,(e.current.flags&128)===128)}catch{}}var Yt=Math.clz32?Math.clz32:am,lm=Math.log,sm=Math.LN2;function am(e){return e>>>=0,e===0?32:31-(lm(e)/sm|0)|0}var no=64,ro=4194304;function Jr(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 io(e,n){var o=e.pendingLanes;if(o===0)return 0;var u=0,d=e.suspendedLanes,h=e.pingedLanes,v=o&268435455;if(v!==0){var b=v&~d;b!==0?u=Jr(b):(h&=v,h!==0&&(u=Jr(h)))}else v=o&~d,v!==0?u=Jr(v):h!==0&&(u=Jr(h));if(u===0)return 0;if(n!==0&&n!==u&&(n&d)===0&&(d=u&-u,h=n&-n,d>=h||d===16&&(h&4194240)!==0))return n;if((u&4)!==0&&(u|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=u;0<n;)o=31-Yt(n),d=1<<o,u|=e[o],n&=~d;return u}function um(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 cm(e,n){for(var o=e.suspendedLanes,u=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes;0<h;){var v=31-Yt(h),b=1<<v,P=d[v];P===-1?((b&o)===0||(b&u)!==0)&&(d[v]=um(b,n)):P<=n&&(e.expiredLanes|=b),h&=~b}}function Rl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wu(){var e=no;return no<<=1,(no&4194240)===0&&(no=64),e}function zl(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Zr(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Yt(n),e[n]=o}function dm(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<o;){var d=31-Yt(o),h=1<<d;n[d]=0,u[d]=-1,e[d]=-1,o&=~h}}function Al(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var u=31-Yt(o),d=1<<u;d&n|e[u]&n&&(e[u]|=n),o&=~d}}var Be=0;function qu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ku,Ml,Qu,Gu,Yu,Dl=!1,oo=[],Pn=null,jn=null,Tn=null,ei=new Map,ti=new Map,Ln=[],fm="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 Xu(e,n){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":ei.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(n.pointerId)}}function ni(e,n,o,u,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:o,eventSystemFlags:u,nativeEvent:h,targetContainers:[d]},n!==null&&(n=gi(n),n!==null&&Ml(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function pm(e,n,o,u,d){switch(n){case"focusin":return Pn=ni(Pn,e,n,o,u,d),!0;case"dragenter":return jn=ni(jn,e,n,o,u,d),!0;case"mouseover":return Tn=ni(Tn,e,n,o,u,d),!0;case"pointerover":var h=d.pointerId;return ei.set(h,ni(ei.get(h)||null,e,n,o,u,d)),!0;case"gotpointercapture":return h=d.pointerId,ti.set(h,ni(ti.get(h)||null,e,n,o,u,d)),!0}return!1}function Ju(e){var n=Jn(e.target);if(n!==null){var o=Xn(n);if(o!==null){if(n=o.tag,n===13){if(n=Mu(o),n!==null){e.blockedOn=n,Yu(e.priority,function(){Qu(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=$l(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var u=new o.constructor(o.type,o);zt=u,o.target.dispatchEvent(u),zt=null}else return n=gi(o),n!==null&&Ml(n),e.blockedOn=o,!1;n.shift()}return!0}function Zu(e,n,o){lo(e)&&o.delete(n)}function hm(){Dl=!1,Pn!==null&&lo(Pn)&&(Pn=null),jn!==null&&lo(jn)&&(jn=null),Tn!==null&&lo(Tn)&&(Tn=null),ei.forEach(Zu),ti.forEach(Zu)}function ri(e,n){e.blockedOn===n&&(e.blockedOn=null,Dl||(Dl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,hm)))}function ii(e){function n(d){return ri(d,e)}if(0<oo.length){ri(oo[0],e);for(var o=1;o<oo.length;o++){var u=oo[o];u.blockedOn===e&&(u.blockedOn=null)}}for(Pn!==null&&ri(Pn,e),jn!==null&&ri(jn,e),Tn!==null&&ri(Tn,e),ei.forEach(n),ti.forEach(n),o=0;o<Ln.length;o++)u=Ln[o],u.blockedOn===e&&(u.blockedOn=null);for(;0<Ln.length&&(o=Ln[0],o.blockedOn===null);)Ju(o),o.blockedOn===null&&Ln.shift()}var yr=B.ReactCurrentBatchConfig,so=!0;function mm(e,n,o,u){var d=Be,h=yr.transition;yr.transition=null;try{Be=1,Fl(e,n,o,u)}finally{Be=d,yr.transition=h}}function gm(e,n,o,u){var d=Be,h=yr.transition;yr.transition=null;try{Be=4,Fl(e,n,o,u)}finally{Be=d,yr.transition=h}}function Fl(e,n,o,u){if(so){var d=$l(e,n,o,u);if(d===null)rs(e,n,u,ao,o),Xu(e,u);else if(pm(d,e,n,o,u))u.stopPropagation();else if(Xu(e,u),n&4&&-1<fm.indexOf(e)){for(;d!==null;){var h=gi(d);if(h!==null&&Ku(h),h=$l(e,n,o,u),h===null&&rs(e,n,u,ao,o),h===d)break;d=h}d!==null&&u.stopPropagation()}else rs(e,n,u,null,o)}}var ao=null;function $l(e,n,o,u){if(ao=null,e=jl(u),e=Jn(e),e!==null)if(n=Xn(e),n===null)e=null;else if(o=n.tag,o===13){if(e=Mu(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return ao=e,null}function ec(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(rm()){case Ol:return 1;case Vu:return 4;case eo:case im:return 16;case Hu:return 536870912;default:return 16}default:return 16}}var In=null,Ul=null,uo=null;function tc(){if(uo)return uo;var e,n=Ul,o=n.length,u,d="value"in In?In.value:In.textContent,h=d.length;for(e=0;e<o&&n[e]===d[e];e++);var v=o-e;for(u=1;u<=v&&n[o-u]===d[h-u];u++);return uo=d.slice(e,1<u?1-u:void 0)}function co(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function fo(){return!0}function nc(){return!1}function At(e){function n(o,u,d,h,v){this._reactName=o,this._targetInst=d,this.type=u,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(o=e[b],this[b]=o?o(h):h[b]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?fo:nc,this.isPropagationStopped=nc,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=fo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=fo)},persist:function(){},isPersistent:fo}),n}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bl=At(xr),oi=S({},xr,{view:0,detail:0}),ym=At(oi),Vl,Hl,li,po=S({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ql,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!==li&&(li&&e.type==="mousemove"?(Vl=e.screenX-li.screenX,Hl=e.screenY-li.screenY):Hl=Vl=0,li=e),Vl)},movementY:function(e){return"movementY"in e?e.movementY:Hl}}),rc=At(po),xm=S({},po,{dataTransfer:0}),vm=At(xm),wm=S({},oi,{relatedTarget:0}),Wl=At(wm),km=S({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Sm=At(km),Cm=S({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bm=At(Cm),Em=S({},xr,{data:0}),ic=At(Em),Nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pm={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"},jm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tm(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=jm[e])?!!n[e]:!1}function ql(){return Tm}var Lm=S({},oi,{key:function(e){if(e.key){var n=Nm[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ql,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Im=At(Lm),_m=S({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oc=At(_m),Om=S({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ql}),Rm=At(Om),zm=S({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Am=At(zm),Mm=S({},po,{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}),Dm=At(Mm),Fm=[9,13,27,32],Kl=f&&"CompositionEvent"in window,si=null;f&&"documentMode"in document&&(si=document.documentMode);var $m=f&&"TextEvent"in window&&!si,lc=f&&(!Kl||si&&8<si&&11>=si),sc=" ",ac=!1;function uc(e,n){switch(e){case"keyup":return Fm.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function Um(e,n){switch(e){case"compositionend":return cc(n);case"keypress":return n.which!==32?null:(ac=!0,sc);case"textInput":return e=n.data,e===sc&&ac?null:e;default:return null}}function Bm(e,n){if(vr)return e==="compositionend"||!Kl&&uc(e,n)?(e=tc(),uo=Ul=In=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return lc&&n.locale!=="ko"?null:n.data;default:return null}}var Vm={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 dc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Vm[e.type]:n==="textarea"}function fc(e,n,o,u){_u(u),n=xo(n,"onChange"),0<n.length&&(o=new Bl("onChange","change",null,o,u),e.push({event:o,listeners:n}))}var ai=null,ui=null;function Hm(e){Lc(e,0)}function ho(e){var n=br(e);if(ze(n))return e}function Wm(e,n){if(e==="change")return n}var pc=!1;if(f){var Ql;if(f){var Gl="oninput"in document;if(!Gl){var hc=document.createElement("div");hc.setAttribute("oninput","return;"),Gl=typeof hc.oninput=="function"}Ql=Gl}else Ql=!1;pc=Ql&&(!document.documentMode||9<document.documentMode)}function mc(){ai&&(ai.detachEvent("onpropertychange",gc),ui=ai=null)}function gc(e){if(e.propertyName==="value"&&ho(ui)){var n=[];fc(n,ui,e,jl(e)),Au(Hm,n)}}function qm(e,n,o){e==="focusin"?(mc(),ai=n,ui=o,ai.attachEvent("onpropertychange",gc)):e==="focusout"&&mc()}function Km(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ho(ui)}function Qm(e,n){if(e==="click")return ho(n)}function Gm(e,n){if(e==="input"||e==="change")return ho(n)}function Ym(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Xt=typeof Object.is=="function"?Object.is:Ym;function ci(e,n){if(Xt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),u=Object.keys(n);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var d=o[u];if(!p.call(n,d)||!Xt(e[d],n[d]))return!1}return!0}function yc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xc(e,n){var o=yc(e);e=0;for(var u;o;){if(o.nodeType===3){if(u=e+o.textContent.length,e<=n&&u>=n)return{node:o,offset:n-e};e=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=yc(o)}}function vc(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?vc(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function wc(){for(var e=window,n=ce();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=ce(e.document)}return n}function Yl(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Xm(e){var n=wc(),o=e.focusedElem,u=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&vc(o.ownerDocument.documentElement,o)){if(u!==null&&Yl(o)){if(n=u.start,e=u.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=o.textContent.length,h=Math.min(u.start,d);u=u.end===void 0?h:Math.min(u.end,d),!e.extend&&h>u&&(d=u,u=h,h=d),d=xc(o,h);var v=xc(o,u);d&&v&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==v.node||e.focusOffset!==v.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),h>u?(e.addRange(n),e.extend(v.node,v.offset)):(n.setEnd(v.node,v.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jm=f&&"documentMode"in document&&11>=document.documentMode,wr=null,Xl=null,di=null,Jl=!1;function kc(e,n,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Jl||wr==null||wr!==ce(u)||(u=wr,"selectionStart"in u&&Yl(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),di&&ci(di,u)||(di=u,u=xo(Xl,"onSelect"),0<u.length&&(n=new Bl("onSelect","select",null,n,o),e.push({event:n,listeners:u}),n.target=wr)))}function mo(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var kr={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionend:mo("Transition","TransitionEnd")},Zl={},Sc={};f&&(Sc=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);function go(e){if(Zl[e])return Zl[e];if(!kr[e])return e;var n=kr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Sc)return Zl[e]=n[o];return e}var Cc=go("animationend"),bc=go("animationiteration"),Ec=go("animationstart"),Nc=go("transitionend"),Pc=new Map,jc="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 _n(e,n){Pc.set(e,n),a(n,[e])}for(var es=0;es<jc.length;es++){var ts=jc[es],Zm=ts.toLowerCase(),eg=ts[0].toUpperCase()+ts.slice(1);_n(Zm,"on"+eg)}_n(Cc,"onAnimationEnd"),_n(bc,"onAnimationIteration"),_n(Ec,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(Nc,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),tg=new Set("cancel close invalid load scroll toggle".split(" ").concat(fi));function Tc(e,n,o){var u=e.type||"unknown-event";e.currentTarget=o,Zh(u,n,void 0,e),e.currentTarget=null}function Lc(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var u=e[o],d=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var v=u.length-1;0<=v;v--){var b=u[v],P=b.instance,A=b.currentTarget;if(b=b.listener,P!==h&&d.isPropagationStopped())break e;Tc(d,b,A),h=P}else for(v=0;v<u.length;v++){if(b=u[v],P=b.instance,A=b.currentTarget,b=b.listener,P!==h&&d.isPropagationStopped())break e;Tc(d,b,A),h=P}}}if(Zi)throw e=_l,Zi=!1,_l=null,e}function Qe(e,n){var o=n[us];o===void 0&&(o=n[us]=new Set);var u=e+"__bubble";o.has(u)||(Ic(n,e,2,!1),o.add(u))}function ns(e,n,o){var u=0;n&&(u|=4),Ic(o,e,u,n)}var yo="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[yo]){e[yo]=!0,l.forEach(function(o){o!=="selectionchange"&&(tg.has(o)||ns(o,!1,e),ns(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[yo]||(n[yo]=!0,ns("selectionchange",!1,n))}}function Ic(e,n,o,u){switch(ec(n)){case 1:var d=mm;break;case 4:d=gm;break;default:d=Fl}o=d.bind(null,n,o,e),d=void 0,!Il||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),u?d!==void 0?e.addEventListener(n,o,{capture:!0,passive:d}):e.addEventListener(n,o,!0):d!==void 0?e.addEventListener(n,o,{passive:d}):e.addEventListener(n,o,!1)}function rs(e,n,o,u,d){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var b=u.stateNode.containerInfo;if(b===d||b.nodeType===8&&b.parentNode===d)break;if(v===4)for(v=u.return;v!==null;){var P=v.tag;if((P===3||P===4)&&(P=v.stateNode.containerInfo,P===d||P.nodeType===8&&P.parentNode===d))return;v=v.return}for(;b!==null;){if(v=Jn(b),v===null)return;if(P=v.tag,P===5||P===6){u=h=v;continue e}b=b.parentNode}}u=u.return}Au(function(){var A=h,te=jl(o),ne=[];e:{var Z=Pc.get(e);if(Z!==void 0){var he=Bl,ge=e;switch(e){case"keypress":if(co(o)===0)break e;case"keydown":case"keyup":he=Im;break;case"focusin":ge="focus",he=Wl;break;case"focusout":ge="blur",he=Wl;break;case"beforeblur":case"afterblur":he=Wl;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=vm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=Rm;break;case Cc:case bc:case Ec:he=Sm;break;case Nc:he=Am;break;case"scroll":he=ym;break;case"wheel":he=Dm;break;case"copy":case"cut":case"paste":he=bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=oc}var xe=(n&4)!==0,nt=!xe&&e==="scroll",O=xe?Z!==null?Z+"Capture":null:Z;xe=[];for(var T=A,z;T!==null;){z=T;var oe=z.stateNode;if(z.tag===5&&oe!==null&&(z=oe,O!==null&&(oe=Gr(T,O),oe!=null&&xe.push(hi(T,oe,z)))),nt)break;T=T.return}0<xe.length&&(Z=new he(Z,ge,null,o,te),ne.push({event:Z,listeners:xe}))}}if((n&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",he=e==="mouseout"||e==="pointerout",Z&&o!==zt&&(ge=o.relatedTarget||o.fromElement)&&(Jn(ge)||ge[gn]))break e;if((he||Z)&&(Z=te.window===te?te:(Z=te.ownerDocument)?Z.defaultView||Z.parentWindow:window,he?(ge=o.relatedTarget||o.toElement,he=A,ge=ge?Jn(ge):null,ge!==null&&(nt=Xn(ge),ge!==nt||ge.tag!==5&&ge.tag!==6)&&(ge=null)):(he=null,ge=A),he!==ge)){if(xe=rc,oe="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(xe=oc,oe="onPointerLeave",O="onPointerEnter",T="pointer"),nt=he==null?Z:br(he),z=ge==null?Z:br(ge),Z=new xe(oe,T+"leave",he,o,te),Z.target=nt,Z.relatedTarget=z,oe=null,Jn(te)===A&&(xe=new xe(O,T+"enter",ge,o,te),xe.target=z,xe.relatedTarget=nt,oe=xe),nt=oe,he&&ge)t:{for(xe=he,O=ge,T=0,z=xe;z;z=Sr(z))T++;for(z=0,oe=O;oe;oe=Sr(oe))z++;for(;0<T-z;)xe=Sr(xe),T--;for(;0<z-T;)O=Sr(O),z--;for(;T--;){if(xe===O||O!==null&&xe===O.alternate)break t;xe=Sr(xe),O=Sr(O)}xe=null}else xe=null;he!==null&&_c(ne,Z,he,xe,!1),ge!==null&&nt!==null&&_c(ne,nt,ge,xe,!0)}}e:{if(Z=A?br(A):window,he=Z.nodeName&&Z.nodeName.toLowerCase(),he==="select"||he==="input"&&Z.type==="file")var ke=Wm;else if(dc(Z))if(pc)ke=Gm;else{ke=Km;var Ce=qm}else(he=Z.nodeName)&&he.toLowerCase()==="input"&&(Z.type==="checkbox"||Z.type==="radio")&&(ke=Qm);if(ke&&(ke=ke(e,A))){fc(ne,ke,o,te);break e}Ce&&Ce(e,Z,A),e==="focusout"&&(Ce=Z._wrapperState)&&Ce.controlled&&Z.type==="number"&&st(Z,"number",Z.value)}switch(Ce=A?br(A):window,e){case"focusin":(dc(Ce)||Ce.contentEditable==="true")&&(wr=Ce,Xl=A,di=null);break;case"focusout":di=Xl=wr=null;break;case"mousedown":Jl=!0;break;case"contextmenu":case"mouseup":case"dragend":Jl=!1,kc(ne,o,te);break;case"selectionchange":if(Jm)break;case"keydown":case"keyup":kc(ne,o,te)}var be;if(Kl)e:{switch(e){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else vr?uc(e,o)&&(Pe="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Pe="onCompositionStart");Pe&&(lc&&o.locale!=="ko"&&(vr||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&vr&&(be=tc()):(In=te,Ul="value"in In?In.value:In.textContent,vr=!0)),Ce=xo(A,Pe),0<Ce.length&&(Pe=new ic(Pe,e,null,o,te),ne.push({event:Pe,listeners:Ce}),be?Pe.data=be:(be=cc(o),be!==null&&(Pe.data=be)))),(be=$m?Um(e,o):Bm(e,o))&&(A=xo(A,"onBeforeInput"),0<A.length&&(te=new ic("onBeforeInput","beforeinput",null,o,te),ne.push({event:te,listeners:A}),te.data=be))}Lc(ne,n)})}function hi(e,n,o){return{instance:e,listener:n,currentTarget:o}}function xo(e,n){for(var o=n+"Capture",u=[];e!==null;){var d=e,h=d.stateNode;d.tag===5&&h!==null&&(d=h,h=Gr(e,o),h!=null&&u.unshift(hi(e,h,d)),h=Gr(e,n),h!=null&&u.push(hi(e,h,d))),e=e.return}return u}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _c(e,n,o,u,d){for(var h=n._reactName,v=[];o!==null&&o!==u;){var b=o,P=b.alternate,A=b.stateNode;if(P!==null&&P===u)break;b.tag===5&&A!==null&&(b=A,d?(P=Gr(o,h),P!=null&&v.unshift(hi(o,P,b))):d||(P=Gr(o,h),P!=null&&v.push(hi(o,P,b)))),o=o.return}v.length!==0&&e.push({event:n,listeners:v})}var ng=/\r\n?/g,rg=/\u0000|\uFFFD/g;function Oc(e){return(typeof e=="string"?e:""+e).replace(ng,`
|
|
38
|
-
`).replace(rg,"")}function vo(e,n,o){if(n=Oc(n),Oc(e)!==n&&o)throw Error(i(425))}function wo(){}var is=null,os=null;function ls(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ss=typeof setTimeout=="function"?setTimeout:void 0,ig=typeof clearTimeout=="function"?clearTimeout:void 0,Rc=typeof Promise=="function"?Promise:void 0,og=typeof queueMicrotask=="function"?queueMicrotask:typeof Rc<"u"?function(e){return Rc.resolve(null).then(e).catch(lg)}:ss;function lg(e){setTimeout(function(){throw e})}function as(e,n){var o=n,u=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(u===0){e.removeChild(d),ii(n);return}u--}else o!=="$"&&o!=="$?"&&o!=="$!"||u++;o=d}while(o);ii(n)}function On(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function zc(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),ln="__reactFiber$"+Cr,mi="__reactProps$"+Cr,gn="__reactContainer$"+Cr,us="__reactEvents$"+Cr,sg="__reactListeners$"+Cr,ag="__reactHandles$"+Cr;function Jn(e){var n=e[ln];if(n)return n;for(var o=e.parentNode;o;){if(n=o[gn]||o[ln]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=zc(e);e!==null;){if(o=e[ln])return o;e=zc(e)}return n}e=o,o=e.parentNode}return null}function gi(e){return e=e[ln]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ko(e){return e[mi]||null}var cs=[],Er=-1;function Rn(e){return{current:e}}function Ge(e){0>Er||(e.current=cs[Er],cs[Er]=null,Er--)}function We(e,n){Er++,cs[Er]=e.current,e.current=n}var zn={},yt=Rn(zn),Et=Rn(!1),Zn=zn;function Nr(e,n){var o=e.type.contextTypes;if(!o)return zn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var d={},h;for(h in o)d[h]=n[h];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function Nt(e){return e=e.childContextTypes,e!=null}function So(){Ge(Et),Ge(yt)}function Ac(e,n,o){if(yt.current!==zn)throw Error(i(168));We(yt,n),We(Et,o)}function Mc(e,n,o){var u=e.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return o;u=u.getChildContext();for(var d in u)if(!(d in n))throw Error(i(108,U(e)||"Unknown",d));return S({},o,u)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,Zn=yt.current,We(yt,e),We(Et,Et.current),!0}function Dc(e,n,o){var u=e.stateNode;if(!u)throw Error(i(169));o?(e=Mc(e,n,Zn),u.__reactInternalMemoizedMergedChildContext=e,Ge(Et),Ge(yt),We(yt,e)):Ge(Et),We(Et,o)}var yn=null,bo=!1,ds=!1;function Fc(e){yn===null?yn=[e]:yn.push(e)}function ug(e){bo=!0,Fc(e)}function An(){if(!ds&&yn!==null){ds=!0;var e=0,n=Be;try{var o=yn;for(Be=1;e<o.length;e++){var u=o[e];do u=u(!0);while(u!==null)}yn=null,bo=!1}catch(d){throw yn!==null&&(yn=yn.slice(e+1)),Uu(Ol,An),d}finally{Be=n,ds=!1}}return null}var Pr=[],jr=0,Eo=null,No=0,Vt=[],Ht=0,er=null,xn=1,vn="";function tr(e,n){Pr[jr++]=No,Pr[jr++]=Eo,Eo=e,No=n}function $c(e,n,o){Vt[Ht++]=xn,Vt[Ht++]=vn,Vt[Ht++]=er,er=e;var u=xn;e=vn;var d=32-Yt(u)-1;u&=~(1<<d),o+=1;var h=32-Yt(n)+d;if(30<h){var v=d-d%5;h=(u&(1<<v)-1).toString(32),u>>=v,d-=v,xn=1<<32-Yt(n)+d|o<<d|u,vn=h+e}else xn=1<<h|o<<d|u,vn=e}function fs(e){e.return!==null&&(tr(e,1),$c(e,1,0))}function ps(e){for(;e===Eo;)Eo=Pr[--jr],Pr[jr]=null,No=Pr[--jr],Pr[jr]=null;for(;e===er;)er=Vt[--Ht],Vt[Ht]=null,vn=Vt[--Ht],Vt[Ht]=null,xn=Vt[--Ht],Vt[Ht]=null}var Mt=null,Dt=null,Xe=!1,Jt=null;function Uc(e,n){var o=Qt(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Bc(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Mt=e,Dt=On(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Mt=e,Dt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=er!==null?{id:xn,overflow:vn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Qt(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,Mt=e,Dt=null,!0):!1;default:return!1}}function hs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ms(e){if(Xe){var n=Dt;if(n){var o=n;if(!Bc(e,n)){if(hs(e))throw Error(i(418));n=On(o.nextSibling);var u=Mt;n&&Bc(e,n)?Uc(u,o):(e.flags=e.flags&-4097|2,Xe=!1,Mt=e)}}else{if(hs(e))throw Error(i(418));e.flags=e.flags&-4097|2,Xe=!1,Mt=e}}}function Vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mt=e}function Po(e){if(e!==Mt)return!1;if(!Xe)return Vc(e),Xe=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!ls(e.type,e.memoizedProps)),n&&(n=Dt)){if(hs(e))throw Hc(),Error(i(418));for(;n;)Uc(e,n),n=On(n.nextSibling)}if(Vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Dt=On(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Dt=null}}else Dt=Mt?On(e.stateNode.nextSibling):null;return!0}function Hc(){for(var e=Dt;e;)e=On(e.nextSibling)}function Tr(){Dt=Mt=null,Xe=!1}function gs(e){Jt===null?Jt=[e]:Jt.push(e)}var cg=B.ReactCurrentBatchConfig;function yi(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var u=o.stateNode}if(!u)throw Error(i(147,e));var d=u,h=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===h?n.ref:(n=function(v){var b=d.refs;v===null?delete b[h]:b[h]=v},n._stringRef=h,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function jo(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Wc(e){var n=e._init;return n(e._payload)}function qc(e){function n(O,T){if(e){var z=O.deletions;z===null?(O.deletions=[T],O.flags|=16):z.push(T)}}function o(O,T){if(!e)return null;for(;T!==null;)n(O,T),T=T.sibling;return null}function u(O,T){for(O=new Map;T!==null;)T.key!==null?O.set(T.key,T):O.set(T.index,T),T=T.sibling;return O}function d(O,T){return O=Hn(O,T),O.index=0,O.sibling=null,O}function h(O,T,z){return O.index=z,e?(z=O.alternate,z!==null?(z=z.index,z<T?(O.flags|=2,T):z):(O.flags|=2,T)):(O.flags|=1048576,T)}function v(O){return e&&O.alternate===null&&(O.flags|=2),O}function b(O,T,z,oe){return T===null||T.tag!==6?(T=sa(z,O.mode,oe),T.return=O,T):(T=d(T,z),T.return=O,T)}function P(O,T,z,oe){var ke=z.type;return ke===$?te(O,T,z.props.children,oe,z.key):T!==null&&(T.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===de&&Wc(ke)===T.type)?(oe=d(T,z.props),oe.ref=yi(O,T,z),oe.return=O,oe):(oe=Jo(z.type,z.key,z.props,null,O.mode,oe),oe.ref=yi(O,T,z),oe.return=O,oe)}function A(O,T,z,oe){return T===null||T.tag!==4||T.stateNode.containerInfo!==z.containerInfo||T.stateNode.implementation!==z.implementation?(T=aa(z,O.mode,oe),T.return=O,T):(T=d(T,z.children||[]),T.return=O,T)}function te(O,T,z,oe,ke){return T===null||T.tag!==7?(T=ur(z,O.mode,oe,ke),T.return=O,T):(T=d(T,z),T.return=O,T)}function ne(O,T,z){if(typeof T=="string"&&T!==""||typeof T=="number")return T=sa(""+T,O.mode,z),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case H:return z=Jo(T.type,T.key,T.props,null,O.mode,z),z.ref=yi(O,null,T),z.return=O,z;case I:return T=aa(T,O.mode,z),T.return=O,T;case de:var oe=T._init;return ne(O,oe(T._payload),z)}if(He(T)||ue(T))return T=ur(T,O.mode,z,null),T.return=O,T;jo(O,T)}return null}function Z(O,T,z,oe){var ke=T!==null?T.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return ke!==null?null:b(O,T,""+z,oe);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case H:return z.key===ke?P(O,T,z,oe):null;case I:return z.key===ke?A(O,T,z,oe):null;case de:return ke=z._init,Z(O,T,ke(z._payload),oe)}if(He(z)||ue(z))return ke!==null?null:te(O,T,z,oe,null);jo(O,z)}return null}function he(O,T,z,oe,ke){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return O=O.get(z)||null,b(T,O,""+oe,ke);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case H:return O=O.get(oe.key===null?z:oe.key)||null,P(T,O,oe,ke);case I:return O=O.get(oe.key===null?z:oe.key)||null,A(T,O,oe,ke);case de:var Ce=oe._init;return he(O,T,z,Ce(oe._payload),ke)}if(He(oe)||ue(oe))return O=O.get(z)||null,te(T,O,oe,ke,null);jo(T,oe)}return null}function ge(O,T,z,oe){for(var ke=null,Ce=null,be=T,Pe=T=0,dt=null;be!==null&&Pe<z.length;Pe++){be.index>Pe?(dt=be,be=null):dt=be.sibling;var Fe=Z(O,be,z[Pe],oe);if(Fe===null){be===null&&(be=dt);break}e&&be&&Fe.alternate===null&&n(O,be),T=h(Fe,T,Pe),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe,be=dt}if(Pe===z.length)return o(O,be),Xe&&tr(O,Pe),ke;if(be===null){for(;Pe<z.length;Pe++)be=ne(O,z[Pe],oe),be!==null&&(T=h(be,T,Pe),Ce===null?ke=be:Ce.sibling=be,Ce=be);return Xe&&tr(O,Pe),ke}for(be=u(O,be);Pe<z.length;Pe++)dt=he(be,O,Pe,z[Pe],oe),dt!==null&&(e&&dt.alternate!==null&&be.delete(dt.key===null?Pe:dt.key),T=h(dt,T,Pe),Ce===null?ke=dt:Ce.sibling=dt,Ce=dt);return e&&be.forEach(function(Wn){return n(O,Wn)}),Xe&&tr(O,Pe),ke}function xe(O,T,z,oe){var ke=ue(z);if(typeof ke!="function")throw Error(i(150));if(z=ke.call(z),z==null)throw Error(i(151));for(var Ce=ke=null,be=T,Pe=T=0,dt=null,Fe=z.next();be!==null&&!Fe.done;Pe++,Fe=z.next()){be.index>Pe?(dt=be,be=null):dt=be.sibling;var Wn=Z(O,be,Fe.value,oe);if(Wn===null){be===null&&(be=dt);break}e&&be&&Wn.alternate===null&&n(O,be),T=h(Wn,T,Pe),Ce===null?ke=Wn:Ce.sibling=Wn,Ce=Wn,be=dt}if(Fe.done)return o(O,be),Xe&&tr(O,Pe),ke;if(be===null){for(;!Fe.done;Pe++,Fe=z.next())Fe=ne(O,Fe.value,oe),Fe!==null&&(T=h(Fe,T,Pe),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe);return Xe&&tr(O,Pe),ke}for(be=u(O,be);!Fe.done;Pe++,Fe=z.next())Fe=he(be,O,Pe,Fe.value,oe),Fe!==null&&(e&&Fe.alternate!==null&&be.delete(Fe.key===null?Pe:Fe.key),T=h(Fe,T,Pe),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe);return e&&be.forEach(function(Vg){return n(O,Vg)}),Xe&&tr(O,Pe),ke}function nt(O,T,z,oe){if(typeof z=="object"&&z!==null&&z.type===$&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case H:e:{for(var ke=z.key,Ce=T;Ce!==null;){if(Ce.key===ke){if(ke=z.type,ke===$){if(Ce.tag===7){o(O,Ce.sibling),T=d(Ce,z.props.children),T.return=O,O=T;break e}}else if(Ce.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===de&&Wc(ke)===Ce.type){o(O,Ce.sibling),T=d(Ce,z.props),T.ref=yi(O,Ce,z),T.return=O,O=T;break e}o(O,Ce);break}else n(O,Ce);Ce=Ce.sibling}z.type===$?(T=ur(z.props.children,O.mode,oe,z.key),T.return=O,O=T):(oe=Jo(z.type,z.key,z.props,null,O.mode,oe),oe.ref=yi(O,T,z),oe.return=O,O=oe)}return v(O);case I:e:{for(Ce=z.key;T!==null;){if(T.key===Ce)if(T.tag===4&&T.stateNode.containerInfo===z.containerInfo&&T.stateNode.implementation===z.implementation){o(O,T.sibling),T=d(T,z.children||[]),T.return=O,O=T;break e}else{o(O,T);break}else n(O,T);T=T.sibling}T=aa(z,O.mode,oe),T.return=O,O=T}return v(O);case de:return Ce=z._init,nt(O,T,Ce(z._payload),oe)}if(He(z))return ge(O,T,z,oe);if(ue(z))return xe(O,T,z,oe);jo(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,T!==null&&T.tag===6?(o(O,T.sibling),T=d(T,z),T.return=O,O=T):(o(O,T),T=sa(z,O.mode,oe),T.return=O,O=T),v(O)):o(O,T)}return nt}var Lr=qc(!0),Kc=qc(!1),To=Rn(null),Lo=null,Ir=null,ys=null;function xs(){ys=Ir=Lo=null}function vs(e){var n=To.current;Ge(To),e._currentValue=n}function ws(e,n,o){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===o)break;e=e.return}}function _r(e,n){Lo=e,ys=Ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Pt=!0),e.firstContext=null)}function Wt(e){var n=e._currentValue;if(ys!==e)if(e={context:e,memoizedValue:n,next:null},Ir===null){if(Lo===null)throw Error(i(308));Ir=e,Lo.dependencies={lanes:0,firstContext:e}}else Ir=Ir.next=e;return n}var nr=null;function ks(e){nr===null?nr=[e]:nr.push(e)}function Qc(e,n,o,u){var d=n.interleaved;return d===null?(o.next=o,ks(n)):(o.next=d.next,d.next=o),n.interleaved=o,wn(e,u)}function wn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Mn=!1;function Ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Dn(e,n,o){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(De&2)!==0){var d=u.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),u.pending=n,wn(e,o)}return d=u.interleaved,d===null?(n.next=n,ks(u)):(n.next=d.next,d.next=n),u.interleaved=n,wn(e,o)}function Io(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Al(e,o)}}function Yc(e,n){var o=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var d=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?d=h=v:h=h.next=v,o=o.next}while(o!==null);h===null?d=h=n:h=h.next=n}else d=h=n;o={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:u.shared,effects:u.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function _o(e,n,o,u){var d=e.updateQueue;Mn=!1;var h=d.firstBaseUpdate,v=d.lastBaseUpdate,b=d.shared.pending;if(b!==null){d.shared.pending=null;var P=b,A=P.next;P.next=null,v===null?h=A:v.next=A,v=P;var te=e.alternate;te!==null&&(te=te.updateQueue,b=te.lastBaseUpdate,b!==v&&(b===null?te.firstBaseUpdate=A:b.next=A,te.lastBaseUpdate=P))}if(h!==null){var ne=d.baseState;v=0,te=A=P=null,b=h;do{var Z=b.lane,he=b.eventTime;if((u&Z)===Z){te!==null&&(te=te.next={eventTime:he,lane:0,tag:b.tag,payload:b.payload,callback:b.callback,next:null});e:{var ge=e,xe=b;switch(Z=n,he=o,xe.tag){case 1:if(ge=xe.payload,typeof ge=="function"){ne=ge.call(he,ne,Z);break e}ne=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=xe.payload,Z=typeof ge=="function"?ge.call(he,ne,Z):ge,Z==null)break e;ne=S({},ne,Z);break e;case 2:Mn=!0}}b.callback!==null&&b.lane!==0&&(e.flags|=64,Z=d.effects,Z===null?d.effects=[b]:Z.push(b))}else he={eventTime:he,lane:Z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},te===null?(A=te=he,P=ne):te=te.next=he,v|=Z;if(b=b.next,b===null){if(b=d.shared.pending,b===null)break;Z=b,b=Z.next,Z.next=null,d.lastBaseUpdate=Z,d.shared.pending=null}}while(!0);if(te===null&&(P=ne),d.baseState=P,d.firstBaseUpdate=A,d.lastBaseUpdate=te,n=d.shared.interleaved,n!==null){d=n;do v|=d.lane,d=d.next;while(d!==n)}else h===null&&(d.shared.lanes=0);or|=v,e.lanes=v,e.memoizedState=ne}}function Xc(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var u=e[n],d=u.callback;if(d!==null){if(u.callback=null,u=o,typeof d!="function")throw Error(i(191,d));d.call(u)}}}var xi={},sn=Rn(xi),vi=Rn(xi),wi=Rn(xi);function rr(e){if(e===xi)throw Error(i(174));return e}function Cs(e,n){switch(We(wi,n),We(vi,e),We(sn,xi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ae(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ae(n,e)}Ge(sn),We(sn,n)}function Or(){Ge(sn),Ge(vi),Ge(wi)}function Jc(e){rr(wi.current);var n=rr(sn.current),o=ae(n,e.type);n!==o&&(We(vi,e),We(sn,o))}function bs(e){vi.current===e&&(Ge(sn),Ge(vi))}var Je=Rn(0);function Oo(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Es=[];function Ns(){for(var e=0;e<Es.length;e++)Es[e]._workInProgressVersionPrimary=null;Es.length=0}var Ro=B.ReactCurrentDispatcher,Ps=B.ReactCurrentBatchConfig,ir=0,Ze=null,ot=null,ut=null,zo=!1,ki=!1,Si=0,dg=0;function xt(){throw Error(i(321))}function js(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Xt(e[o],n[o]))return!1;return!0}function Ts(e,n,o,u,d,h){if(ir=h,Ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ro.current=e===null||e.memoizedState===null?mg:gg,e=o(u,d),ki){h=0;do{if(ki=!1,Si=0,25<=h)throw Error(i(301));h+=1,ut=ot=null,n.updateQueue=null,Ro.current=yg,e=o(u,d)}while(ki)}if(Ro.current=Do,n=ot!==null&&ot.next!==null,ir=0,ut=ot=Ze=null,zo=!1,n)throw Error(i(300));return e}function Ls(){var e=Si!==0;return Si=0,e}function an(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ze.memoizedState=ut=e:ut=ut.next=e,ut}function qt(){if(ot===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var n=ut===null?Ze.memoizedState:ut.next;if(n!==null)ut=n,ot=e;else{if(e===null)throw Error(i(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},ut===null?Ze.memoizedState=ut=e:ut=ut.next=e}return ut}function Ci(e,n){return typeof n=="function"?n(e):n}function Is(e){var n=qt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var u=ot,d=u.baseQueue,h=o.pending;if(h!==null){if(d!==null){var v=d.next;d.next=h.next,h.next=v}u.baseQueue=d=h,o.pending=null}if(d!==null){h=d.next,u=u.baseState;var b=v=null,P=null,A=h;do{var te=A.lane;if((ir&te)===te)P!==null&&(P=P.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),u=A.hasEagerState?A.eagerState:e(u,A.action);else{var ne={lane:te,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};P===null?(b=P=ne,v=u):P=P.next=ne,Ze.lanes|=te,or|=te}A=A.next}while(A!==null&&A!==h);P===null?v=u:P.next=b,Xt(u,n.memoizedState)||(Pt=!0),n.memoizedState=u,n.baseState=v,n.baseQueue=P,o.lastRenderedState=u}if(e=o.interleaved,e!==null){d=e;do h=d.lane,Ze.lanes|=h,or|=h,d=d.next;while(d!==e)}else d===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function _s(e){var n=qt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var u=o.dispatch,d=o.pending,h=n.memoizedState;if(d!==null){o.pending=null;var v=d=d.next;do h=e(h,v.action),v=v.next;while(v!==d);Xt(h,n.memoizedState)||(Pt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),o.lastRenderedState=h}return[h,u]}function Zc(){}function ed(e,n){var o=Ze,u=qt(),d=n(),h=!Xt(u.memoizedState,d);if(h&&(u.memoizedState=d,Pt=!0),u=u.queue,Os(rd.bind(null,o,u,e),[e]),u.getSnapshot!==n||h||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,bi(9,nd.bind(null,o,u,d,n),void 0,null),ct===null)throw Error(i(349));(ir&30)!==0||td(o,n,d)}return d}function td(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ze.updateQueue,n===null?(n={lastEffect:null,stores:null},Ze.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function nd(e,n,o,u){n.value=o,n.getSnapshot=u,id(n)&&od(e)}function rd(e,n,o){return o(function(){id(n)&&od(e)})}function id(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Xt(e,o)}catch{return!0}}function od(e){var n=wn(e,1);n!==null&&nn(n,e,1,-1)}function ld(e){var n=an();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:e},n.queue=e,e=e.dispatch=hg.bind(null,Ze,e),[n.memoizedState,e]}function bi(e,n,o,u){return e={tag:e,create:n,destroy:o,deps:u,next:null},n=Ze.updateQueue,n===null?(n={lastEffect:null,stores:null},Ze.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(u=o.next,o.next=e,e.next=u,n.lastEffect=e)),e}function sd(){return qt().memoizedState}function Ao(e,n,o,u){var d=an();Ze.flags|=e,d.memoizedState=bi(1|n,o,void 0,u===void 0?null:u)}function Mo(e,n,o,u){var d=qt();u=u===void 0?null:u;var h=void 0;if(ot!==null){var v=ot.memoizedState;if(h=v.destroy,u!==null&&js(u,v.deps)){d.memoizedState=bi(n,o,h,u);return}}Ze.flags|=e,d.memoizedState=bi(1|n,o,h,u)}function ad(e,n){return Ao(8390656,8,e,n)}function Os(e,n){return Mo(2048,8,e,n)}function ud(e,n){return Mo(4,2,e,n)}function cd(e,n){return Mo(4,4,e,n)}function dd(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function fd(e,n,o){return o=o!=null?o.concat([e]):null,Mo(4,4,dd.bind(null,n,e),o)}function Rs(){}function pd(e,n){var o=qt();n=n===void 0?null:n;var u=o.memoizedState;return u!==null&&n!==null&&js(n,u[1])?u[0]:(o.memoizedState=[e,n],e)}function hd(e,n){var o=qt();n=n===void 0?null:n;var u=o.memoizedState;return u!==null&&n!==null&&js(n,u[1])?u[0]:(e=e(),o.memoizedState=[e,n],e)}function md(e,n,o){return(ir&21)===0?(e.baseState&&(e.baseState=!1,Pt=!0),e.memoizedState=o):(Xt(o,n)||(o=Wu(),Ze.lanes|=o,or|=o,e.baseState=!0),n)}function fg(e,n){var o=Be;Be=o!==0&&4>o?o:4,e(!0);var u=Ps.transition;Ps.transition={};try{e(!1),n()}finally{Be=o,Ps.transition=u}}function gd(){return qt().memoizedState}function pg(e,n,o){var u=Bn(e);if(o={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null},yd(e))xd(n,o);else if(o=Qc(e,n,o,u),o!==null){var d=Ct();nn(o,e,u,d),vd(o,n,u)}}function hg(e,n,o){var u=Bn(e),d={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null};if(yd(e))xd(n,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var v=n.lastRenderedState,b=h(v,o);if(d.hasEagerState=!0,d.eagerState=b,Xt(b,v)){var P=n.interleaved;P===null?(d.next=d,ks(n)):(d.next=P.next,P.next=d),n.interleaved=d;return}}catch{}finally{}o=Qc(e,n,d,u),o!==null&&(d=Ct(),nn(o,e,u,d),vd(o,n,u))}}function yd(e){var n=e.alternate;return e===Ze||n!==null&&n===Ze}function xd(e,n){ki=zo=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function vd(e,n,o){if((o&4194240)!==0){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Al(e,o)}}var Do={readContext:Wt,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},mg={readContext:Wt,useCallback:function(e,n){return an().memoizedState=[e,n===void 0?null:n],e},useContext:Wt,useEffect:ad,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ao(4194308,4,dd.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ao(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ao(4,2,e,n)},useMemo:function(e,n){var o=an();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var u=an();return n=o!==void 0?o(n):n,u.memoizedState=u.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},u.queue=e,e=e.dispatch=pg.bind(null,Ze,e),[u.memoizedState,e]},useRef:function(e){var n=an();return e={current:e},n.memoizedState=e},useState:ld,useDebugValue:Rs,useDeferredValue:function(e){return an().memoizedState=e},useTransition:function(){var e=ld(!1),n=e[0];return e=fg.bind(null,e[1]),an().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var u=Ze,d=an();if(Xe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),ct===null)throw Error(i(349));(ir&30)!==0||td(u,n,o)}d.memoizedState=o;var h={value:o,getSnapshot:n};return d.queue=h,ad(rd.bind(null,u,h,e),[e]),u.flags|=2048,bi(9,nd.bind(null,u,h,o,n),void 0,null),o},useId:function(){var e=an(),n=ct.identifierPrefix;if(Xe){var o=vn,u=xn;o=(u&~(1<<32-Yt(u)-1)).toString(32)+o,n=":"+n+"R"+o,o=Si++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=dg++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},gg={readContext:Wt,useCallback:pd,useContext:Wt,useEffect:Os,useImperativeHandle:fd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:Is,useRef:sd,useState:function(){return Is(Ci)},useDebugValue:Rs,useDeferredValue:function(e){var n=qt();return md(n,ot.memoizedState,e)},useTransition:function(){var e=Is(Ci)[0],n=qt().memoizedState;return[e,n]},useMutableSource:Zc,useSyncExternalStore:ed,useId:gd,unstable_isNewReconciler:!1},yg={readContext:Wt,useCallback:pd,useContext:Wt,useEffect:Os,useImperativeHandle:fd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:_s,useRef:sd,useState:function(){return _s(Ci)},useDebugValue:Rs,useDeferredValue:function(e){var n=qt();return ot===null?n.memoizedState=e:md(n,ot.memoizedState,e)},useTransition:function(){var e=_s(Ci)[0],n=qt().memoizedState;return[e,n]},useMutableSource:Zc,useSyncExternalStore:ed,useId:gd,unstable_isNewReconciler:!1};function Zt(e,n){if(e&&e.defaultProps){n=S({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function zs(e,n,o,u){n=e.memoizedState,o=o(u,n),o=o==null?n:S({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Fo={isMounted:function(e){return(e=e._reactInternals)?Xn(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var u=Ct(),d=Bn(e),h=kn(u,d);h.payload=n,o!=null&&(h.callback=o),n=Dn(e,h,d),n!==null&&(nn(n,e,d,u),Io(n,e,d))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var u=Ct(),d=Bn(e),h=kn(u,d);h.tag=1,h.payload=n,o!=null&&(h.callback=o),n=Dn(e,h,d),n!==null&&(nn(n,e,d,u),Io(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=Ct(),u=Bn(e),d=kn(o,u);d.tag=2,n!=null&&(d.callback=n),n=Dn(e,d,u),n!==null&&(nn(n,e,u,o),Io(n,e,u))}};function wd(e,n,o,u,d,h,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,v):n.prototype&&n.prototype.isPureReactComponent?!ci(o,u)||!ci(d,h):!0}function kd(e,n,o){var u=!1,d=zn,h=n.contextType;return typeof h=="object"&&h!==null?h=Wt(h):(d=Nt(n)?Zn:yt.current,u=n.contextTypes,h=(u=u!=null)?Nr(e,d):zn),n=new n(o,h),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Fo,e.stateNode=n,n._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=h),n}function Sd(e,n,o,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,u),n.state!==e&&Fo.enqueueReplaceState(n,n.state,null)}function As(e,n,o,u){var d=e.stateNode;d.props=o,d.state=e.memoizedState,d.refs={},Ss(e);var h=n.contextType;typeof h=="object"&&h!==null?d.context=Wt(h):(h=Nt(n)?Zn:yt.current,d.context=Nr(e,h)),d.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(zs(e,n,h,o),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&Fo.enqueueReplaceState(d,d.state,null),_o(e,o,d,u),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,n){try{var o="",u=n;do o+=Ee(u),u=u.return;while(u);var d=o}catch(h){d=`
|
|
36
|
+
`),v=d.length-1,E=h.length-1;1<=v&&0<=E&&d[v]!==h[E];)E--;for(;1<=v&&0<=E;v--,E--)if(d[v]!==h[E]){if(v!==1||E!==1)do if(v--,E--,0>E||d[v]!==h[E]){var P=`
|
|
37
|
+
`+d[v].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=v&&0<=E);break}}}finally{C=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?F(e):""}function Ee(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=Se(e.type,!1),e;case 11:return e=Se(e.type.render,!1),e;case 1:return e=Se(e.type,!0),e;default:return""}}function Q(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 R:return"Portal";case G:return"Profiler";case K:return"StrictMode";case re:return"Suspense";case Y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oe:return(e.displayName||"Context")+".Consumer";case X:return(e._context.displayName||"Context")+".Provider";case M:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return n=e.displayName||null,n!==null?n:Q(e.type)||"Memo";case fe:n=e._payload,e=e._init;try{return Q(e(n))}catch{}}return null}function B(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q(n);case 8:return n===K?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function J(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function de(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function se(e){var n=de(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(v){u=""+v,h.call(this,v)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(v){u=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function me(e){e._valueTracker||(e._valueTracker=se(e))}function _e(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),u="";return e&&(u=de(e)?e.checked?"true":"false":e.value),e=u,e!==o?(n.setValue(e),!0):!1}function ce(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 we(e,n){var o=n.checked;return S({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function ve(e,n){var o=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;o=J(n.value!=null?n.value:o),e._wrapperState={initialChecked:u,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ae(e,n){n=n.checked,n!=null&&D(e,"checked",n,!1)}function Ve(e,n){Ae(e,n);var o=J(n.value),u=n.type;if(o!=null)u==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?st(e,n.type,o):n.hasOwnProperty("defaultValue")&&st(e,n.type,J(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function $e(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function st(e,n,o){(n!=="number"||ce(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var He=Array.isArray;function gt(e,n,o,u){if(e=e.options,n){n={};for(var d=0;d<o.length;d++)n["$"+o[d]]=!0;for(o=0;o<e.length;o++)d=n.hasOwnProperty("$"+e[o].value),e[o].selected!==d&&(e[o].selected=d),d&&u&&(e[o].defaultSelected=!0)}else{for(o=""+J(o),n=null,d=0;d<e.length;d++){if(e[d].value===o){e[d].selected=!0,u&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function at(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return S({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function En(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(He(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:J(o)}}function Yi(e,n){var o=J(n.value),u=J(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),u!=null&&(e.defaultValue=""+u)}function Xi(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function W(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 ae(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?W(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ne,Oe=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,u,d){MSApp.execUnsafeLocalFunction(function(){return e(n,o,u,d)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ne.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Me(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var ft={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},mn=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(e){mn.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),ft[n]=ft[e]})});function Bt(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||ft.hasOwnProperty(e)&&ft[e]?(""+n).trim():n+"px"}function Nn(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var u=o.indexOf("--")===0,d=Bt(o,n[o],u);o==="float"&&(o="cssFloat"),u?e.setProperty(o,d):e[o]=d}}var Yn=S({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 pt(e,n){if(n){if(Yn[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function rn(e,n){if(e.indexOf("-")===-1)return typeof n.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 zt=null;function Pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,mr=null,gr=null;function Iu(e){if(e=gi(e)){if(typeof Tl!="function")throw Error(i(280));var n=e.stateNode;n&&(n=ko(n),Tl(e.stateNode,e.type,n))}}function _u(e){mr?gr?gr.push(e):gr=[e]:mr=e}function Ou(){if(mr){var e=mr,n=gr;if(gr=mr=null,Iu(e),n)for(e=0;e<n.length;e++)Iu(n[e])}}function Ru(e,n){return e(n)}function zu(){}var Ll=!1;function Au(e,n,o){if(Ll)return e(n,o);Ll=!0;try{return Ru(e,n,o)}finally{Ll=!1,(mr!==null||gr!==null)&&(zu(),Ou())}}function Gr(e,n){var o=e.stateNode;if(o===null)return null;var u=ko(o);if(u===null)return null;o=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Il=!1;if(f)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Il=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Il=!1}function Jh(e,n,o,u,d,h,v,E,P){var A=Array.prototype.slice.call(arguments,3);try{n.apply(o,A)}catch(te){this.onError(te)}}var Xr=!1,Ji=null,Zi=!1,_l=null,Zh={onError:function(e){Xr=!0,Ji=e}};function em(e,n,o,u,d,h,v,E,P){Xr=!1,Ji=null,Jh.apply(Zh,arguments)}function tm(e,n,o,u,d,h,v,E,P){if(em.apply(this,arguments),Xr){if(Xr){var A=Ji;Xr=!1,Ji=null}else throw Error(i(198));Zi||(Zi=!0,_l=A)}}function Xn(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function Mu(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Du(e){if(Xn(e)!==e)throw Error(i(188))}function nm(e){var n=e.alternate;if(!n){if(n=Xn(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,u=n;;){var d=o.return;if(d===null)break;var h=d.alternate;if(h===null){if(u=d.return,u!==null){o=u;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===o)return Du(d),e;if(h===u)return Du(d),n;h=h.sibling}throw Error(i(188))}if(o.return!==u.return)o=d,u=h;else{for(var v=!1,E=d.child;E;){if(E===o){v=!0,o=d,u=h;break}if(E===u){v=!0,u=d,o=h;break}E=E.sibling}if(!v){for(E=h.child;E;){if(E===o){v=!0,o=h,u=d;break}if(E===u){v=!0,u=h,o=d;break}E=E.sibling}if(!v)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function Fu(e){return e=nm(e),e!==null?$u(e):null}function $u(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=$u(e);if(n!==null)return n;e=e.sibling}return null}var Uu=r.unstable_scheduleCallback,Bu=r.unstable_cancelCallback,rm=r.unstable_shouldYield,im=r.unstable_requestPaint,tt=r.unstable_now,om=r.unstable_getCurrentPriorityLevel,Ol=r.unstable_ImmediatePriority,Vu=r.unstable_UserBlockingPriority,eo=r.unstable_NormalPriority,lm=r.unstable_LowPriority,Hu=r.unstable_IdlePriority,to=null,on=null;function sm(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(to,e,void 0,(e.current.flags&128)===128)}catch{}}var Yt=Math.clz32?Math.clz32:cm,am=Math.log,um=Math.LN2;function cm(e){return e>>>=0,e===0?32:31-(am(e)/um|0)|0}var no=64,ro=4194304;function Jr(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 io(e,n){var o=e.pendingLanes;if(o===0)return 0;var u=0,d=e.suspendedLanes,h=e.pingedLanes,v=o&268435455;if(v!==0){var E=v&~d;E!==0?u=Jr(E):(h&=v,h!==0&&(u=Jr(h)))}else v=o&~d,v!==0?u=Jr(v):h!==0&&(u=Jr(h));if(u===0)return 0;if(n!==0&&n!==u&&(n&d)===0&&(d=u&-u,h=n&-n,d>=h||d===16&&(h&4194240)!==0))return n;if((u&4)!==0&&(u|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=u;0<n;)o=31-Yt(n),d=1<<o,u|=e[o],n&=~d;return u}function dm(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 fm(e,n){for(var o=e.suspendedLanes,u=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes;0<h;){var v=31-Yt(h),E=1<<v,P=d[v];P===-1?((E&o)===0||(E&u)!==0)&&(d[v]=dm(E,n)):P<=n&&(e.expiredLanes|=E),h&=~E}}function Rl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wu(){var e=no;return no<<=1,(no&4194240)===0&&(no=64),e}function zl(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Zr(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Yt(n),e[n]=o}function pm(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<o;){var d=31-Yt(o),h=1<<d;n[d]=0,u[d]=-1,e[d]=-1,o&=~h}}function Al(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var u=31-Yt(o),d=1<<u;d&n|e[u]&n&&(e[u]|=n),o&=~d}}var Be=0;function qu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ku,Ml,Qu,Gu,Yu,Dl=!1,oo=[],jn=null,Pn=null,Tn=null,ei=new Map,ti=new Map,Ln=[],hm="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 Xu(e,n){switch(e){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":ei.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(n.pointerId)}}function ni(e,n,o,u,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:o,eventSystemFlags:u,nativeEvent:h,targetContainers:[d]},n!==null&&(n=gi(n),n!==null&&Ml(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function mm(e,n,o,u,d){switch(n){case"focusin":return jn=ni(jn,e,n,o,u,d),!0;case"dragenter":return Pn=ni(Pn,e,n,o,u,d),!0;case"mouseover":return Tn=ni(Tn,e,n,o,u,d),!0;case"pointerover":var h=d.pointerId;return ei.set(h,ni(ei.get(h)||null,e,n,o,u,d)),!0;case"gotpointercapture":return h=d.pointerId,ti.set(h,ni(ti.get(h)||null,e,n,o,u,d)),!0}return!1}function Ju(e){var n=Jn(e.target);if(n!==null){var o=Xn(n);if(o!==null){if(n=o.tag,n===13){if(n=Mu(o),n!==null){e.blockedOn=n,Yu(e.priority,function(){Qu(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=$l(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var u=new o.constructor(o.type,o);zt=u,o.target.dispatchEvent(u),zt=null}else return n=gi(o),n!==null&&Ml(n),e.blockedOn=o,!1;n.shift()}return!0}function Zu(e,n,o){lo(e)&&o.delete(n)}function gm(){Dl=!1,jn!==null&&lo(jn)&&(jn=null),Pn!==null&&lo(Pn)&&(Pn=null),Tn!==null&&lo(Tn)&&(Tn=null),ei.forEach(Zu),ti.forEach(Zu)}function ri(e,n){e.blockedOn===n&&(e.blockedOn=null,Dl||(Dl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,gm)))}function ii(e){function n(d){return ri(d,e)}if(0<oo.length){ri(oo[0],e);for(var o=1;o<oo.length;o++){var u=oo[o];u.blockedOn===e&&(u.blockedOn=null)}}for(jn!==null&&ri(jn,e),Pn!==null&&ri(Pn,e),Tn!==null&&ri(Tn,e),ei.forEach(n),ti.forEach(n),o=0;o<Ln.length;o++)u=Ln[o],u.blockedOn===e&&(u.blockedOn=null);for(;0<Ln.length&&(o=Ln[0],o.blockedOn===null);)Ju(o),o.blockedOn===null&&Ln.shift()}var yr=U.ReactCurrentBatchConfig,so=!0;function ym(e,n,o,u){var d=Be,h=yr.transition;yr.transition=null;try{Be=1,Fl(e,n,o,u)}finally{Be=d,yr.transition=h}}function xm(e,n,o,u){var d=Be,h=yr.transition;yr.transition=null;try{Be=4,Fl(e,n,o,u)}finally{Be=d,yr.transition=h}}function Fl(e,n,o,u){if(so){var d=$l(e,n,o,u);if(d===null)rs(e,n,u,ao,o),Xu(e,u);else if(mm(d,e,n,o,u))u.stopPropagation();else if(Xu(e,u),n&4&&-1<hm.indexOf(e)){for(;d!==null;){var h=gi(d);if(h!==null&&Ku(h),h=$l(e,n,o,u),h===null&&rs(e,n,u,ao,o),h===d)break;d=h}d!==null&&u.stopPropagation()}else rs(e,n,u,null,o)}}var ao=null;function $l(e,n,o,u){if(ao=null,e=Pl(u),e=Jn(e),e!==null)if(n=Xn(e),n===null)e=null;else if(o=n.tag,o===13){if(e=Mu(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return ao=e,null}function ec(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(om()){case Ol:return 1;case Vu:return 4;case eo:case lm:return 16;case Hu:return 536870912;default:return 16}default:return 16}}var In=null,Ul=null,uo=null;function tc(){if(uo)return uo;var e,n=Ul,o=n.length,u,d="value"in In?In.value:In.textContent,h=d.length;for(e=0;e<o&&n[e]===d[e];e++);var v=o-e;for(u=1;u<=v&&n[o-u]===d[h-u];u++);return uo=d.slice(e,1<u?1-u:void 0)}function co(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function fo(){return!0}function nc(){return!1}function At(e){function n(o,u,d,h,v){this._reactName=o,this._targetInst=d,this.type=u,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(o=e[E],this[E]=o?o(h):h[E]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?fo:nc,this.isPropagationStopped=nc,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=fo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=fo)},persist:function(){},isPersistent:fo}),n}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bl=At(xr),oi=S({},xr,{view:0,detail:0}),vm=At(oi),Vl,Hl,li,po=S({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ql,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!==li&&(li&&e.type==="mousemove"?(Vl=e.screenX-li.screenX,Hl=e.screenY-li.screenY):Hl=Vl=0,li=e),Vl)},movementY:function(e){return"movementY"in e?e.movementY:Hl}}),rc=At(po),wm=S({},po,{dataTransfer:0}),km=At(wm),Sm=S({},oi,{relatedTarget:0}),Wl=At(Sm),Cm=S({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),bm=At(Cm),Em=S({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nm=At(Em),jm=S({},xr,{data:0}),ic=At(jm),Pm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tm={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"},Lm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Im(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Lm[e])?!!n[e]:!1}function ql(){return Im}var _m=S({},oi,{key:function(e){if(e.key){var n=Pm[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ql,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Om=At(_m),Rm=S({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oc=At(Rm),zm=S({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ql}),Am=At(zm),Mm=S({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dm=At(Mm),Fm=S({},po,{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}),$m=At(Fm),Um=[9,13,27,32],Kl=f&&"CompositionEvent"in window,si=null;f&&"documentMode"in document&&(si=document.documentMode);var Bm=f&&"TextEvent"in window&&!si,lc=f&&(!Kl||si&&8<si&&11>=si),sc=" ",ac=!1;function uc(e,n){switch(e){case"keyup":return Um.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function Vm(e,n){switch(e){case"compositionend":return cc(n);case"keypress":return n.which!==32?null:(ac=!0,sc);case"textInput":return e=n.data,e===sc&&ac?null:e;default:return null}}function Hm(e,n){if(vr)return e==="compositionend"||!Kl&&uc(e,n)?(e=tc(),uo=Ul=In=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return lc&&n.locale!=="ko"?null:n.data;default:return null}}var Wm={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 dc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Wm[e.type]:n==="textarea"}function fc(e,n,o,u){_u(u),n=xo(n,"onChange"),0<n.length&&(o=new Bl("onChange","change",null,o,u),e.push({event:o,listeners:n}))}var ai=null,ui=null;function qm(e){Lc(e,0)}function ho(e){var n=br(e);if(_e(n))return e}function Km(e,n){if(e==="change")return n}var pc=!1;if(f){var Ql;if(f){var Gl="oninput"in document;if(!Gl){var hc=document.createElement("div");hc.setAttribute("oninput","return;"),Gl=typeof hc.oninput=="function"}Ql=Gl}else Ql=!1;pc=Ql&&(!document.documentMode||9<document.documentMode)}function mc(){ai&&(ai.detachEvent("onpropertychange",gc),ui=ai=null)}function gc(e){if(e.propertyName==="value"&&ho(ui)){var n=[];fc(n,ui,e,Pl(e)),Au(qm,n)}}function Qm(e,n,o){e==="focusin"?(mc(),ai=n,ui=o,ai.attachEvent("onpropertychange",gc)):e==="focusout"&&mc()}function Gm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ho(ui)}function Ym(e,n){if(e==="click")return ho(n)}function Xm(e,n){if(e==="input"||e==="change")return ho(n)}function Jm(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Xt=typeof Object.is=="function"?Object.is:Jm;function ci(e,n){if(Xt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),u=Object.keys(n);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var d=o[u];if(!p.call(n,d)||!Xt(e[d],n[d]))return!1}return!0}function yc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xc(e,n){var o=yc(e);e=0;for(var u;o;){if(o.nodeType===3){if(u=e+o.textContent.length,e<=n&&u>=n)return{node:o,offset:n-e};e=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=yc(o)}}function vc(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?vc(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function wc(){for(var e=window,n=ce();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=ce(e.document)}return n}function Yl(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Zm(e){var n=wc(),o=e.focusedElem,u=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&vc(o.ownerDocument.documentElement,o)){if(u!==null&&Yl(o)){if(n=u.start,e=u.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=o.textContent.length,h=Math.min(u.start,d);u=u.end===void 0?h:Math.min(u.end,d),!e.extend&&h>u&&(d=u,u=h,h=d),d=xc(o,h);var v=xc(o,u);d&&v&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==v.node||e.focusOffset!==v.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),h>u?(e.addRange(n),e.extend(v.node,v.offset)):(n.setEnd(v.node,v.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var eg=f&&"documentMode"in document&&11>=document.documentMode,wr=null,Xl=null,di=null,Jl=!1;function kc(e,n,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Jl||wr==null||wr!==ce(u)||(u=wr,"selectionStart"in u&&Yl(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),di&&ci(di,u)||(di=u,u=xo(Xl,"onSelect"),0<u.length&&(n=new Bl("onSelect","select",null,n,o),e.push({event:n,listeners:u}),n.target=wr)))}function mo(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var kr={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionend:mo("Transition","TransitionEnd")},Zl={},Sc={};f&&(Sc=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);function go(e){if(Zl[e])return Zl[e];if(!kr[e])return e;var n=kr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Sc)return Zl[e]=n[o];return e}var Cc=go("animationend"),bc=go("animationiteration"),Ec=go("animationstart"),Nc=go("transitionend"),jc=new Map,Pc="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 _n(e,n){jc.set(e,n),a(n,[e])}for(var es=0;es<Pc.length;es++){var ts=Pc[es],tg=ts.toLowerCase(),ng=ts[0].toUpperCase()+ts.slice(1);_n(tg,"on"+ng)}_n(Cc,"onAnimationEnd"),_n(bc,"onAnimationIteration"),_n(Ec,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(Nc,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),rg=new Set("cancel close invalid load scroll toggle".split(" ").concat(fi));function Tc(e,n,o){var u=e.type||"unknown-event";e.currentTarget=o,tm(u,n,void 0,e),e.currentTarget=null}function Lc(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var u=e[o],d=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var v=u.length-1;0<=v;v--){var E=u[v],P=E.instance,A=E.currentTarget;if(E=E.listener,P!==h&&d.isPropagationStopped())break e;Tc(d,E,A),h=P}else for(v=0;v<u.length;v++){if(E=u[v],P=E.instance,A=E.currentTarget,E=E.listener,P!==h&&d.isPropagationStopped())break e;Tc(d,E,A),h=P}}}if(Zi)throw e=_l,Zi=!1,_l=null,e}function Qe(e,n){var o=n[us];o===void 0&&(o=n[us]=new Set);var u=e+"__bubble";o.has(u)||(Ic(n,e,2,!1),o.add(u))}function ns(e,n,o){var u=0;n&&(u|=4),Ic(o,e,u,n)}var yo="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[yo]){e[yo]=!0,l.forEach(function(o){o!=="selectionchange"&&(rg.has(o)||ns(o,!1,e),ns(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[yo]||(n[yo]=!0,ns("selectionchange",!1,n))}}function Ic(e,n,o,u){switch(ec(n)){case 1:var d=ym;break;case 4:d=xm;break;default:d=Fl}o=d.bind(null,n,o,e),d=void 0,!Il||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),u?d!==void 0?e.addEventListener(n,o,{capture:!0,passive:d}):e.addEventListener(n,o,!0):d!==void 0?e.addEventListener(n,o,{passive:d}):e.addEventListener(n,o,!1)}function rs(e,n,o,u,d){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var E=u.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(v===4)for(v=u.return;v!==null;){var P=v.tag;if((P===3||P===4)&&(P=v.stateNode.containerInfo,P===d||P.nodeType===8&&P.parentNode===d))return;v=v.return}for(;E!==null;){if(v=Jn(E),v===null)return;if(P=v.tag,P===5||P===6){u=h=v;continue e}E=E.parentNode}}u=u.return}Au(function(){var A=h,te=Pl(o),ne=[];e:{var Z=jc.get(e);if(Z!==void 0){var he=Bl,ye=e;switch(e){case"keypress":if(co(o)===0)break e;case"keydown":case"keyup":he=Om;break;case"focusin":ye="focus",he=Wl;break;case"focusout":ye="blur",he=Wl;break;case"beforeblur":case"afterblur":he=Wl;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=Am;break;case Cc:case bc:case Ec:he=bm;break;case Nc:he=Dm;break;case"scroll":he=vm;break;case"wheel":he=$m;break;case"copy":case"cut":case"paste":he=Nm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=oc}var xe=(n&4)!==0,nt=!xe&&e==="scroll",O=xe?Z!==null?Z+"Capture":null:Z;xe=[];for(var L=A,z;L!==null;){z=L;var le=z.stateNode;if(z.tag===5&&le!==null&&(z=le,O!==null&&(le=Gr(L,O),le!=null&&xe.push(hi(L,le,z)))),nt)break;L=L.return}0<xe.length&&(Z=new he(Z,ye,null,o,te),ne.push({event:Z,listeners:xe}))}}if((n&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",he=e==="mouseout"||e==="pointerout",Z&&o!==zt&&(ye=o.relatedTarget||o.fromElement)&&(Jn(ye)||ye[gn]))break e;if((he||Z)&&(Z=te.window===te?te:(Z=te.ownerDocument)?Z.defaultView||Z.parentWindow:window,he?(ye=o.relatedTarget||o.toElement,he=A,ye=ye?Jn(ye):null,ye!==null&&(nt=Xn(ye),ye!==nt||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(he=null,ye=A),he!==ye)){if(xe=rc,le="onMouseLeave",O="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(xe=oc,le="onPointerLeave",O="onPointerEnter",L="pointer"),nt=he==null?Z:br(he),z=ye==null?Z:br(ye),Z=new xe(le,L+"leave",he,o,te),Z.target=nt,Z.relatedTarget=z,le=null,Jn(te)===A&&(xe=new xe(O,L+"enter",ye,o,te),xe.target=z,xe.relatedTarget=nt,le=xe),nt=le,he&&ye)t:{for(xe=he,O=ye,L=0,z=xe;z;z=Sr(z))L++;for(z=0,le=O;le;le=Sr(le))z++;for(;0<L-z;)xe=Sr(xe),L--;for(;0<z-L;)O=Sr(O),z--;for(;L--;){if(xe===O||O!==null&&xe===O.alternate)break t;xe=Sr(xe),O=Sr(O)}xe=null}else xe=null;he!==null&&_c(ne,Z,he,xe,!1),ye!==null&&nt!==null&&_c(ne,nt,ye,xe,!0)}}e:{if(Z=A?br(A):window,he=Z.nodeName&&Z.nodeName.toLowerCase(),he==="select"||he==="input"&&Z.type==="file")var ke=Km;else if(dc(Z))if(pc)ke=Xm;else{ke=Gm;var Ce=Qm}else(he=Z.nodeName)&&he.toLowerCase()==="input"&&(Z.type==="checkbox"||Z.type==="radio")&&(ke=Ym);if(ke&&(ke=ke(e,A))){fc(ne,ke,o,te);break e}Ce&&Ce(e,Z,A),e==="focusout"&&(Ce=Z._wrapperState)&&Ce.controlled&&Z.type==="number"&&st(Z,"number",Z.value)}switch(Ce=A?br(A):window,e){case"focusin":(dc(Ce)||Ce.contentEditable==="true")&&(wr=Ce,Xl=A,di=null);break;case"focusout":di=Xl=wr=null;break;case"mousedown":Jl=!0;break;case"contextmenu":case"mouseup":case"dragend":Jl=!1,kc(ne,o,te);break;case"selectionchange":if(eg)break;case"keydown":case"keyup":kc(ne,o,te)}var be;if(Kl)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else vr?uc(e,o)&&(je="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(je="onCompositionStart");je&&(lc&&o.locale!=="ko"&&(vr||je!=="onCompositionStart"?je==="onCompositionEnd"&&vr&&(be=tc()):(In=te,Ul="value"in In?In.value:In.textContent,vr=!0)),Ce=xo(A,je),0<Ce.length&&(je=new ic(je,e,null,o,te),ne.push({event:je,listeners:Ce}),be?je.data=be:(be=cc(o),be!==null&&(je.data=be)))),(be=Bm?Vm(e,o):Hm(e,o))&&(A=xo(A,"onBeforeInput"),0<A.length&&(te=new ic("onBeforeInput","beforeinput",null,o,te),ne.push({event:te,listeners:A}),te.data=be))}Lc(ne,n)})}function hi(e,n,o){return{instance:e,listener:n,currentTarget:o}}function xo(e,n){for(var o=n+"Capture",u=[];e!==null;){var d=e,h=d.stateNode;d.tag===5&&h!==null&&(d=h,h=Gr(e,o),h!=null&&u.unshift(hi(e,h,d)),h=Gr(e,n),h!=null&&u.push(hi(e,h,d))),e=e.return}return u}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _c(e,n,o,u,d){for(var h=n._reactName,v=[];o!==null&&o!==u;){var E=o,P=E.alternate,A=E.stateNode;if(P!==null&&P===u)break;E.tag===5&&A!==null&&(E=A,d?(P=Gr(o,h),P!=null&&v.unshift(hi(o,P,E))):d||(P=Gr(o,h),P!=null&&v.push(hi(o,P,E)))),o=o.return}v.length!==0&&e.push({event:n,listeners:v})}var ig=/\r\n?/g,og=/\u0000|\uFFFD/g;function Oc(e){return(typeof e=="string"?e:""+e).replace(ig,`
|
|
38
|
+
`).replace(og,"")}function vo(e,n,o){if(n=Oc(n),Oc(e)!==n&&o)throw Error(i(425))}function wo(){}var is=null,os=null;function ls(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ss=typeof setTimeout=="function"?setTimeout:void 0,lg=typeof clearTimeout=="function"?clearTimeout:void 0,Rc=typeof Promise=="function"?Promise:void 0,sg=typeof queueMicrotask=="function"?queueMicrotask:typeof Rc<"u"?function(e){return Rc.resolve(null).then(e).catch(ag)}:ss;function ag(e){setTimeout(function(){throw e})}function as(e,n){var o=n,u=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(u===0){e.removeChild(d),ii(n);return}u--}else o!=="$"&&o!=="$?"&&o!=="$!"||u++;o=d}while(o);ii(n)}function On(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function zc(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),ln="__reactFiber$"+Cr,mi="__reactProps$"+Cr,gn="__reactContainer$"+Cr,us="__reactEvents$"+Cr,ug="__reactListeners$"+Cr,cg="__reactHandles$"+Cr;function Jn(e){var n=e[ln];if(n)return n;for(var o=e.parentNode;o;){if(n=o[gn]||o[ln]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=zc(e);e!==null;){if(o=e[ln])return o;e=zc(e)}return n}e=o,o=e.parentNode}return null}function gi(e){return e=e[ln]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ko(e){return e[mi]||null}var cs=[],Er=-1;function Rn(e){return{current:e}}function Ge(e){0>Er||(e.current=cs[Er],cs[Er]=null,Er--)}function We(e,n){Er++,cs[Er]=e.current,e.current=n}var zn={},yt=Rn(zn),Et=Rn(!1),Zn=zn;function Nr(e,n){var o=e.type.contextTypes;if(!o)return zn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var d={},h;for(h in o)d[h]=n[h];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function Nt(e){return e=e.childContextTypes,e!=null}function So(){Ge(Et),Ge(yt)}function Ac(e,n,o){if(yt.current!==zn)throw Error(i(168));We(yt,n),We(Et,o)}function Mc(e,n,o){var u=e.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return o;u=u.getChildContext();for(var d in u)if(!(d in n))throw Error(i(108,B(e)||"Unknown",d));return S({},o,u)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,Zn=yt.current,We(yt,e),We(Et,Et.current),!0}function Dc(e,n,o){var u=e.stateNode;if(!u)throw Error(i(169));o?(e=Mc(e,n,Zn),u.__reactInternalMemoizedMergedChildContext=e,Ge(Et),Ge(yt),We(yt,e)):Ge(Et),We(Et,o)}var yn=null,bo=!1,ds=!1;function Fc(e){yn===null?yn=[e]:yn.push(e)}function dg(e){bo=!0,Fc(e)}function An(){if(!ds&&yn!==null){ds=!0;var e=0,n=Be;try{var o=yn;for(Be=1;e<o.length;e++){var u=o[e];do u=u(!0);while(u!==null)}yn=null,bo=!1}catch(d){throw yn!==null&&(yn=yn.slice(e+1)),Uu(Ol,An),d}finally{Be=n,ds=!1}}return null}var jr=[],Pr=0,Eo=null,No=0,Vt=[],Ht=0,er=null,xn=1,vn="";function tr(e,n){jr[Pr++]=No,jr[Pr++]=Eo,Eo=e,No=n}function $c(e,n,o){Vt[Ht++]=xn,Vt[Ht++]=vn,Vt[Ht++]=er,er=e;var u=xn;e=vn;var d=32-Yt(u)-1;u&=~(1<<d),o+=1;var h=32-Yt(n)+d;if(30<h){var v=d-d%5;h=(u&(1<<v)-1).toString(32),u>>=v,d-=v,xn=1<<32-Yt(n)+d|o<<d|u,vn=h+e}else xn=1<<h|o<<d|u,vn=e}function fs(e){e.return!==null&&(tr(e,1),$c(e,1,0))}function ps(e){for(;e===Eo;)Eo=jr[--Pr],jr[Pr]=null,No=jr[--Pr],jr[Pr]=null;for(;e===er;)er=Vt[--Ht],Vt[Ht]=null,vn=Vt[--Ht],Vt[Ht]=null,xn=Vt[--Ht],Vt[Ht]=null}var Mt=null,Dt=null,Xe=!1,Jt=null;function Uc(e,n){var o=Qt(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Bc(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Mt=e,Dt=On(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Mt=e,Dt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=er!==null?{id:xn,overflow:vn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Qt(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,Mt=e,Dt=null,!0):!1;default:return!1}}function hs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ms(e){if(Xe){var n=Dt;if(n){var o=n;if(!Bc(e,n)){if(hs(e))throw Error(i(418));n=On(o.nextSibling);var u=Mt;n&&Bc(e,n)?Uc(u,o):(e.flags=e.flags&-4097|2,Xe=!1,Mt=e)}}else{if(hs(e))throw Error(i(418));e.flags=e.flags&-4097|2,Xe=!1,Mt=e}}}function Vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mt=e}function jo(e){if(e!==Mt)return!1;if(!Xe)return Vc(e),Xe=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!ls(e.type,e.memoizedProps)),n&&(n=Dt)){if(hs(e))throw Hc(),Error(i(418));for(;n;)Uc(e,n),n=On(n.nextSibling)}if(Vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Dt=On(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Dt=null}}else Dt=Mt?On(e.stateNode.nextSibling):null;return!0}function Hc(){for(var e=Dt;e;)e=On(e.nextSibling)}function Tr(){Dt=Mt=null,Xe=!1}function gs(e){Jt===null?Jt=[e]:Jt.push(e)}var fg=U.ReactCurrentBatchConfig;function yi(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var u=o.stateNode}if(!u)throw Error(i(147,e));var d=u,h=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===h?n.ref:(n=function(v){var E=d.refs;v===null?delete E[h]:E[h]=v},n._stringRef=h,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function Po(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Wc(e){var n=e._init;return n(e._payload)}function qc(e){function n(O,L){if(e){var z=O.deletions;z===null?(O.deletions=[L],O.flags|=16):z.push(L)}}function o(O,L){if(!e)return null;for(;L!==null;)n(O,L),L=L.sibling;return null}function u(O,L){for(O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function d(O,L){return O=Hn(O,L),O.index=0,O.sibling=null,O}function h(O,L,z){return O.index=z,e?(z=O.alternate,z!==null?(z=z.index,z<L?(O.flags|=2,L):z):(O.flags|=2,L)):(O.flags|=1048576,L)}function v(O){return e&&O.alternate===null&&(O.flags|=2),O}function E(O,L,z,le){return L===null||L.tag!==6?(L=sa(z,O.mode,le),L.return=O,L):(L=d(L,z),L.return=O,L)}function P(O,L,z,le){var ke=z.type;return ke===V?te(O,L,z.props.children,le,z.key):L!==null&&(L.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===fe&&Wc(ke)===L.type)?(le=d(L,z.props),le.ref=yi(O,L,z),le.return=O,le):(le=Jo(z.type,z.key,z.props,null,O.mode,le),le.ref=yi(O,L,z),le.return=O,le)}function A(O,L,z,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==z.containerInfo||L.stateNode.implementation!==z.implementation?(L=aa(z,O.mode,le),L.return=O,L):(L=d(L,z.children||[]),L.return=O,L)}function te(O,L,z,le,ke){return L===null||L.tag!==7?(L=ur(z,O.mode,le,ke),L.return=O,L):(L=d(L,z),L.return=O,L)}function ne(O,L,z){if(typeof L=="string"&&L!==""||typeof L=="number")return L=sa(""+L,O.mode,z),L.return=O,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case H:return z=Jo(L.type,L.key,L.props,null,O.mode,z),z.ref=yi(O,null,L),z.return=O,z;case R:return L=aa(L,O.mode,z),L.return=O,L;case fe:var le=L._init;return ne(O,le(L._payload),z)}if(He(L)||ue(L))return L=ur(L,O.mode,z,null),L.return=O,L;Po(O,L)}return null}function Z(O,L,z,le){var ke=L!==null?L.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return ke!==null?null:E(O,L,""+z,le);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case H:return z.key===ke?P(O,L,z,le):null;case R:return z.key===ke?A(O,L,z,le):null;case fe:return ke=z._init,Z(O,L,ke(z._payload),le)}if(He(z)||ue(z))return ke!==null?null:te(O,L,z,le,null);Po(O,z)}return null}function he(O,L,z,le,ke){if(typeof le=="string"&&le!==""||typeof le=="number")return O=O.get(z)||null,E(L,O,""+le,ke);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case H:return O=O.get(le.key===null?z:le.key)||null,P(L,O,le,ke);case R:return O=O.get(le.key===null?z:le.key)||null,A(L,O,le,ke);case fe:var Ce=le._init;return he(O,L,z,Ce(le._payload),ke)}if(He(le)||ue(le))return O=O.get(z)||null,te(L,O,le,ke,null);Po(L,le)}return null}function ye(O,L,z,le){for(var ke=null,Ce=null,be=L,je=L=0,dt=null;be!==null&&je<z.length;je++){be.index>je?(dt=be,be=null):dt=be.sibling;var Fe=Z(O,be,z[je],le);if(Fe===null){be===null&&(be=dt);break}e&&be&&Fe.alternate===null&&n(O,be),L=h(Fe,L,je),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe,be=dt}if(je===z.length)return o(O,be),Xe&&tr(O,je),ke;if(be===null){for(;je<z.length;je++)be=ne(O,z[je],le),be!==null&&(L=h(be,L,je),Ce===null?ke=be:Ce.sibling=be,Ce=be);return Xe&&tr(O,je),ke}for(be=u(O,be);je<z.length;je++)dt=he(be,O,je,z[je],le),dt!==null&&(e&&dt.alternate!==null&&be.delete(dt.key===null?je:dt.key),L=h(dt,L,je),Ce===null?ke=dt:Ce.sibling=dt,Ce=dt);return e&&be.forEach(function(Wn){return n(O,Wn)}),Xe&&tr(O,je),ke}function xe(O,L,z,le){var ke=ue(z);if(typeof ke!="function")throw Error(i(150));if(z=ke.call(z),z==null)throw Error(i(151));for(var Ce=ke=null,be=L,je=L=0,dt=null,Fe=z.next();be!==null&&!Fe.done;je++,Fe=z.next()){be.index>je?(dt=be,be=null):dt=be.sibling;var Wn=Z(O,be,Fe.value,le);if(Wn===null){be===null&&(be=dt);break}e&&be&&Wn.alternate===null&&n(O,be),L=h(Wn,L,je),Ce===null?ke=Wn:Ce.sibling=Wn,Ce=Wn,be=dt}if(Fe.done)return o(O,be),Xe&&tr(O,je),ke;if(be===null){for(;!Fe.done;je++,Fe=z.next())Fe=ne(O,Fe.value,le),Fe!==null&&(L=h(Fe,L,je),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe);return Xe&&tr(O,je),ke}for(be=u(O,be);!Fe.done;je++,Fe=z.next())Fe=he(be,O,je,Fe.value,le),Fe!==null&&(e&&Fe.alternate!==null&&be.delete(Fe.key===null?je:Fe.key),L=h(Fe,L,je),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe);return e&&be.forEach(function(Wg){return n(O,Wg)}),Xe&&tr(O,je),ke}function nt(O,L,z,le){if(typeof z=="object"&&z!==null&&z.type===V&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case H:e:{for(var ke=z.key,Ce=L;Ce!==null;){if(Ce.key===ke){if(ke=z.type,ke===V){if(Ce.tag===7){o(O,Ce.sibling),L=d(Ce,z.props.children),L.return=O,O=L;break e}}else if(Ce.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===fe&&Wc(ke)===Ce.type){o(O,Ce.sibling),L=d(Ce,z.props),L.ref=yi(O,Ce,z),L.return=O,O=L;break e}o(O,Ce);break}else n(O,Ce);Ce=Ce.sibling}z.type===V?(L=ur(z.props.children,O.mode,le,z.key),L.return=O,O=L):(le=Jo(z.type,z.key,z.props,null,O.mode,le),le.ref=yi(O,L,z),le.return=O,O=le)}return v(O);case R:e:{for(Ce=z.key;L!==null;){if(L.key===Ce)if(L.tag===4&&L.stateNode.containerInfo===z.containerInfo&&L.stateNode.implementation===z.implementation){o(O,L.sibling),L=d(L,z.children||[]),L.return=O,O=L;break e}else{o(O,L);break}else n(O,L);L=L.sibling}L=aa(z,O.mode,le),L.return=O,O=L}return v(O);case fe:return Ce=z._init,nt(O,L,Ce(z._payload),le)}if(He(z))return ye(O,L,z,le);if(ue(z))return xe(O,L,z,le);Po(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,L!==null&&L.tag===6?(o(O,L.sibling),L=d(L,z),L.return=O,O=L):(o(O,L),L=sa(z,O.mode,le),L.return=O,O=L),v(O)):o(O,L)}return nt}var Lr=qc(!0),Kc=qc(!1),To=Rn(null),Lo=null,Ir=null,ys=null;function xs(){ys=Ir=Lo=null}function vs(e){var n=To.current;Ge(To),e._currentValue=n}function ws(e,n,o){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===o)break;e=e.return}}function _r(e,n){Lo=e,ys=Ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(jt=!0),e.firstContext=null)}function Wt(e){var n=e._currentValue;if(ys!==e)if(e={context:e,memoizedValue:n,next:null},Ir===null){if(Lo===null)throw Error(i(308));Ir=e,Lo.dependencies={lanes:0,firstContext:e}}else Ir=Ir.next=e;return n}var nr=null;function ks(e){nr===null?nr=[e]:nr.push(e)}function Qc(e,n,o,u){var d=n.interleaved;return d===null?(o.next=o,ks(n)):(o.next=d.next,d.next=o),n.interleaved=o,wn(e,u)}function wn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Mn=!1;function Ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Dn(e,n,o){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(De&2)!==0){var d=u.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),u.pending=n,wn(e,o)}return d=u.interleaved,d===null?(n.next=n,ks(u)):(n.next=d.next,d.next=n),u.interleaved=n,wn(e,o)}function Io(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Al(e,o)}}function Yc(e,n){var o=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var d=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?d=h=v:h=h.next=v,o=o.next}while(o!==null);h===null?d=h=n:h=h.next=n}else d=h=n;o={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:u.shared,effects:u.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function _o(e,n,o,u){var d=e.updateQueue;Mn=!1;var h=d.firstBaseUpdate,v=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var P=E,A=P.next;P.next=null,v===null?h=A:v.next=A,v=P;var te=e.alternate;te!==null&&(te=te.updateQueue,E=te.lastBaseUpdate,E!==v&&(E===null?te.firstBaseUpdate=A:E.next=A,te.lastBaseUpdate=P))}if(h!==null){var ne=d.baseState;v=0,te=A=P=null,E=h;do{var Z=E.lane,he=E.eventTime;if((u&Z)===Z){te!==null&&(te=te.next={eventTime:he,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var ye=e,xe=E;switch(Z=n,he=o,xe.tag){case 1:if(ye=xe.payload,typeof ye=="function"){ne=ye.call(he,ne,Z);break e}ne=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=xe.payload,Z=typeof ye=="function"?ye.call(he,ne,Z):ye,Z==null)break e;ne=S({},ne,Z);break e;case 2:Mn=!0}}E.callback!==null&&E.lane!==0&&(e.flags|=64,Z=d.effects,Z===null?d.effects=[E]:Z.push(E))}else he={eventTime:he,lane:Z,tag:E.tag,payload:E.payload,callback:E.callback,next:null},te===null?(A=te=he,P=ne):te=te.next=he,v|=Z;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;Z=E,E=Z.next,Z.next=null,d.lastBaseUpdate=Z,d.shared.pending=null}}while(!0);if(te===null&&(P=ne),d.baseState=P,d.firstBaseUpdate=A,d.lastBaseUpdate=te,n=d.shared.interleaved,n!==null){d=n;do v|=d.lane,d=d.next;while(d!==n)}else h===null&&(d.shared.lanes=0);or|=v,e.lanes=v,e.memoizedState=ne}}function Xc(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var u=e[n],d=u.callback;if(d!==null){if(u.callback=null,u=o,typeof d!="function")throw Error(i(191,d));d.call(u)}}}var xi={},sn=Rn(xi),vi=Rn(xi),wi=Rn(xi);function rr(e){if(e===xi)throw Error(i(174));return e}function Cs(e,n){switch(We(wi,n),We(vi,e),We(sn,xi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ae(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ae(n,e)}Ge(sn),We(sn,n)}function Or(){Ge(sn),Ge(vi),Ge(wi)}function Jc(e){rr(wi.current);var n=rr(sn.current),o=ae(n,e.type);n!==o&&(We(vi,e),We(sn,o))}function bs(e){vi.current===e&&(Ge(sn),Ge(vi))}var Je=Rn(0);function Oo(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Es=[];function Ns(){for(var e=0;e<Es.length;e++)Es[e]._workInProgressVersionPrimary=null;Es.length=0}var Ro=U.ReactCurrentDispatcher,js=U.ReactCurrentBatchConfig,ir=0,Ze=null,ot=null,ut=null,zo=!1,ki=!1,Si=0,pg=0;function xt(){throw Error(i(321))}function Ps(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Xt(e[o],n[o]))return!1;return!0}function Ts(e,n,o,u,d,h){if(ir=h,Ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ro.current=e===null||e.memoizedState===null?yg:xg,e=o(u,d),ki){h=0;do{if(ki=!1,Si=0,25<=h)throw Error(i(301));h+=1,ut=ot=null,n.updateQueue=null,Ro.current=vg,e=o(u,d)}while(ki)}if(Ro.current=Do,n=ot!==null&&ot.next!==null,ir=0,ut=ot=Ze=null,zo=!1,n)throw Error(i(300));return e}function Ls(){var e=Si!==0;return Si=0,e}function an(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ze.memoizedState=ut=e:ut=ut.next=e,ut}function qt(){if(ot===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var n=ut===null?Ze.memoizedState:ut.next;if(n!==null)ut=n,ot=e;else{if(e===null)throw Error(i(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},ut===null?Ze.memoizedState=ut=e:ut=ut.next=e}return ut}function Ci(e,n){return typeof n=="function"?n(e):n}function Is(e){var n=qt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var u=ot,d=u.baseQueue,h=o.pending;if(h!==null){if(d!==null){var v=d.next;d.next=h.next,h.next=v}u.baseQueue=d=h,o.pending=null}if(d!==null){h=d.next,u=u.baseState;var E=v=null,P=null,A=h;do{var te=A.lane;if((ir&te)===te)P!==null&&(P=P.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),u=A.hasEagerState?A.eagerState:e(u,A.action);else{var ne={lane:te,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};P===null?(E=P=ne,v=u):P=P.next=ne,Ze.lanes|=te,or|=te}A=A.next}while(A!==null&&A!==h);P===null?v=u:P.next=E,Xt(u,n.memoizedState)||(jt=!0),n.memoizedState=u,n.baseState=v,n.baseQueue=P,o.lastRenderedState=u}if(e=o.interleaved,e!==null){d=e;do h=d.lane,Ze.lanes|=h,or|=h,d=d.next;while(d!==e)}else d===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function _s(e){var n=qt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var u=o.dispatch,d=o.pending,h=n.memoizedState;if(d!==null){o.pending=null;var v=d=d.next;do h=e(h,v.action),v=v.next;while(v!==d);Xt(h,n.memoizedState)||(jt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),o.lastRenderedState=h}return[h,u]}function Zc(){}function ed(e,n){var o=Ze,u=qt(),d=n(),h=!Xt(u.memoizedState,d);if(h&&(u.memoizedState=d,jt=!0),u=u.queue,Os(rd.bind(null,o,u,e),[e]),u.getSnapshot!==n||h||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,bi(9,nd.bind(null,o,u,d,n),void 0,null),ct===null)throw Error(i(349));(ir&30)!==0||td(o,n,d)}return d}function td(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ze.updateQueue,n===null?(n={lastEffect:null,stores:null},Ze.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function nd(e,n,o,u){n.value=o,n.getSnapshot=u,id(n)&&od(e)}function rd(e,n,o){return o(function(){id(n)&&od(e)})}function id(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Xt(e,o)}catch{return!0}}function od(e){var n=wn(e,1);n!==null&&nn(n,e,1,-1)}function ld(e){var n=an();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:e},n.queue=e,e=e.dispatch=gg.bind(null,Ze,e),[n.memoizedState,e]}function bi(e,n,o,u){return e={tag:e,create:n,destroy:o,deps:u,next:null},n=Ze.updateQueue,n===null?(n={lastEffect:null,stores:null},Ze.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(u=o.next,o.next=e,e.next=u,n.lastEffect=e)),e}function sd(){return qt().memoizedState}function Ao(e,n,o,u){var d=an();Ze.flags|=e,d.memoizedState=bi(1|n,o,void 0,u===void 0?null:u)}function Mo(e,n,o,u){var d=qt();u=u===void 0?null:u;var h=void 0;if(ot!==null){var v=ot.memoizedState;if(h=v.destroy,u!==null&&Ps(u,v.deps)){d.memoizedState=bi(n,o,h,u);return}}Ze.flags|=e,d.memoizedState=bi(1|n,o,h,u)}function ad(e,n){return Ao(8390656,8,e,n)}function Os(e,n){return Mo(2048,8,e,n)}function ud(e,n){return Mo(4,2,e,n)}function cd(e,n){return Mo(4,4,e,n)}function dd(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function fd(e,n,o){return o=o!=null?o.concat([e]):null,Mo(4,4,dd.bind(null,n,e),o)}function Rs(){}function pd(e,n){var o=qt();n=n===void 0?null:n;var u=o.memoizedState;return u!==null&&n!==null&&Ps(n,u[1])?u[0]:(o.memoizedState=[e,n],e)}function hd(e,n){var o=qt();n=n===void 0?null:n;var u=o.memoizedState;return u!==null&&n!==null&&Ps(n,u[1])?u[0]:(e=e(),o.memoizedState=[e,n],e)}function md(e,n,o){return(ir&21)===0?(e.baseState&&(e.baseState=!1,jt=!0),e.memoizedState=o):(Xt(o,n)||(o=Wu(),Ze.lanes|=o,or|=o,e.baseState=!0),n)}function hg(e,n){var o=Be;Be=o!==0&&4>o?o:4,e(!0);var u=js.transition;js.transition={};try{e(!1),n()}finally{Be=o,js.transition=u}}function gd(){return qt().memoizedState}function mg(e,n,o){var u=Bn(e);if(o={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null},yd(e))xd(n,o);else if(o=Qc(e,n,o,u),o!==null){var d=Ct();nn(o,e,u,d),vd(o,n,u)}}function gg(e,n,o){var u=Bn(e),d={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null};if(yd(e))xd(n,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var v=n.lastRenderedState,E=h(v,o);if(d.hasEagerState=!0,d.eagerState=E,Xt(E,v)){var P=n.interleaved;P===null?(d.next=d,ks(n)):(d.next=P.next,P.next=d),n.interleaved=d;return}}catch{}finally{}o=Qc(e,n,d,u),o!==null&&(d=Ct(),nn(o,e,u,d),vd(o,n,u))}}function yd(e){var n=e.alternate;return e===Ze||n!==null&&n===Ze}function xd(e,n){ki=zo=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function vd(e,n,o){if((o&4194240)!==0){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Al(e,o)}}var Do={readContext:Wt,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},yg={readContext:Wt,useCallback:function(e,n){return an().memoizedState=[e,n===void 0?null:n],e},useContext:Wt,useEffect:ad,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ao(4194308,4,dd.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ao(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ao(4,2,e,n)},useMemo:function(e,n){var o=an();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var u=an();return n=o!==void 0?o(n):n,u.memoizedState=u.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},u.queue=e,e=e.dispatch=mg.bind(null,Ze,e),[u.memoizedState,e]},useRef:function(e){var n=an();return e={current:e},n.memoizedState=e},useState:ld,useDebugValue:Rs,useDeferredValue:function(e){return an().memoizedState=e},useTransition:function(){var e=ld(!1),n=e[0];return e=hg.bind(null,e[1]),an().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var u=Ze,d=an();if(Xe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),ct===null)throw Error(i(349));(ir&30)!==0||td(u,n,o)}d.memoizedState=o;var h={value:o,getSnapshot:n};return d.queue=h,ad(rd.bind(null,u,h,e),[e]),u.flags|=2048,bi(9,nd.bind(null,u,h,o,n),void 0,null),o},useId:function(){var e=an(),n=ct.identifierPrefix;if(Xe){var o=vn,u=xn;o=(u&~(1<<32-Yt(u)-1)).toString(32)+o,n=":"+n+"R"+o,o=Si++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=pg++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},xg={readContext:Wt,useCallback:pd,useContext:Wt,useEffect:Os,useImperativeHandle:fd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:Is,useRef:sd,useState:function(){return Is(Ci)},useDebugValue:Rs,useDeferredValue:function(e){var n=qt();return md(n,ot.memoizedState,e)},useTransition:function(){var e=Is(Ci)[0],n=qt().memoizedState;return[e,n]},useMutableSource:Zc,useSyncExternalStore:ed,useId:gd,unstable_isNewReconciler:!1},vg={readContext:Wt,useCallback:pd,useContext:Wt,useEffect:Os,useImperativeHandle:fd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:_s,useRef:sd,useState:function(){return _s(Ci)},useDebugValue:Rs,useDeferredValue:function(e){var n=qt();return ot===null?n.memoizedState=e:md(n,ot.memoizedState,e)},useTransition:function(){var e=_s(Ci)[0],n=qt().memoizedState;return[e,n]},useMutableSource:Zc,useSyncExternalStore:ed,useId:gd,unstable_isNewReconciler:!1};function Zt(e,n){if(e&&e.defaultProps){n=S({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function zs(e,n,o,u){n=e.memoizedState,o=o(u,n),o=o==null?n:S({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Fo={isMounted:function(e){return(e=e._reactInternals)?Xn(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var u=Ct(),d=Bn(e),h=kn(u,d);h.payload=n,o!=null&&(h.callback=o),n=Dn(e,h,d),n!==null&&(nn(n,e,d,u),Io(n,e,d))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var u=Ct(),d=Bn(e),h=kn(u,d);h.tag=1,h.payload=n,o!=null&&(h.callback=o),n=Dn(e,h,d),n!==null&&(nn(n,e,d,u),Io(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=Ct(),u=Bn(e),d=kn(o,u);d.tag=2,n!=null&&(d.callback=n),n=Dn(e,d,u),n!==null&&(nn(n,e,u,o),Io(n,e,u))}};function wd(e,n,o,u,d,h,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,v):n.prototype&&n.prototype.isPureReactComponent?!ci(o,u)||!ci(d,h):!0}function kd(e,n,o){var u=!1,d=zn,h=n.contextType;return typeof h=="object"&&h!==null?h=Wt(h):(d=Nt(n)?Zn:yt.current,u=n.contextTypes,h=(u=u!=null)?Nr(e,d):zn),n=new n(o,h),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Fo,e.stateNode=n,n._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=h),n}function Sd(e,n,o,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,u),n.state!==e&&Fo.enqueueReplaceState(n,n.state,null)}function As(e,n,o,u){var d=e.stateNode;d.props=o,d.state=e.memoizedState,d.refs={},Ss(e);var h=n.contextType;typeof h=="object"&&h!==null?d.context=Wt(h):(h=Nt(n)?Zn:yt.current,d.context=Nr(e,h)),d.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(zs(e,n,h,o),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&Fo.enqueueReplaceState(d,d.state,null),_o(e,o,d,u),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,n){try{var o="",u=n;do o+=Ee(u),u=u.return;while(u);var d=o}catch(h){d=`
|
|
39
39
|
Error generating stack: `+h.message+`
|
|
40
|
-
`+h.stack}return{value:e,source:n,stack:d,digest:null}}function Ms(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Ds(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var xg=typeof WeakMap=="function"?WeakMap:Map;function Cd(e,n,o){o=kn(-1,o),o.tag=3,o.payload={element:null};var u=n.value;return o.callback=function(){qo||(qo=!0,Zs=u),Ds(e,n)},o}function bd(e,n,o){o=kn(-1,o),o.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=n.value;o.payload=function(){return u(d)},o.callback=function(){Ds(e,n)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){Ds(e,n),typeof u!="function"&&($n===null?$n=new Set([this]):$n.add(this));var v=n.stack;this.componentDidCatch(n.value,{componentStack:v!==null?v:""})}),o}function Ed(e,n,o){var u=e.pingCache;if(u===null){u=e.pingCache=new xg;var d=new Set;u.set(n,d)}else d=u.get(n),d===void 0&&(d=new Set,u.set(n,d));d.has(o)||(d.add(o),e=_g.bind(null,e,n,o),n.then(e,e))}function Nd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Pd(e,n,o,u,d){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=kn(-1,1),n.tag=2,Dn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var vg=B.ReactCurrentOwner,Pt=!1;function St(e,n,o,u){n.child=e===null?Kc(n,null,o,u):Lr(n,e.child,o,u)}function jd(e,n,o,u,d){o=o.render;var h=n.ref;return _r(n,d),u=Ts(e,n,o,u,h,d),o=Ls(),e!==null&&!Pt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Sn(e,n,d)):(Xe&&o&&fs(n),n.flags|=1,St(e,n,u,d),n.child)}function Td(e,n,o,u,d){if(e===null){var h=o.type;return typeof h=="function"&&!la(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=h,Ld(e,n,h,u,d)):(e=Jo(o.type,null,u,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,(e.lanes&d)===0){var v=h.memoizedProps;if(o=o.compare,o=o!==null?o:ci,o(v,u)&&e.ref===n.ref)return Sn(e,n,d)}return n.flags|=1,e=Hn(h,u),e.ref=n.ref,e.return=n,n.child=e}function Ld(e,n,o,u,d){if(e!==null){var h=e.memoizedProps;if(ci(h,u)&&e.ref===n.ref)if(Pt=!1,n.pendingProps=u=h,(e.lanes&d)!==0)(e.flags&131072)!==0&&(Pt=!0);else return n.lanes=e.lanes,Sn(e,n,d)}return Fs(e,n,o,u,d)}function Id(e,n,o){var u=n.pendingProps,d=u.children,h=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(Ar,Ft),Ft|=o;else{if((o&1073741824)===0)return e=h!==null?h.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,We(Ar,Ft),Ft|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=h!==null?h.baseLanes:o,We(Ar,Ft),Ft|=u}else h!==null?(u=h.baseLanes|o,n.memoizedState=null):u=o,We(Ar,Ft),Ft|=u;return St(e,n,d,o),n.child}function _d(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Fs(e,n,o,u,d){var h=Nt(o)?Zn:yt.current;return h=Nr(n,h),_r(n,d),o=Ts(e,n,o,u,h,d),u=Ls(),e!==null&&!Pt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Sn(e,n,d)):(Xe&&u&&fs(n),n.flags|=1,St(e,n,o,d),n.child)}function Od(e,n,o,u,d){if(Nt(o)){var h=!0;Co(n)}else h=!1;if(_r(n,d),n.stateNode===null)Uo(e,n),kd(n,o,u),As(n,o,u,d),u=!0;else if(e===null){var v=n.stateNode,b=n.memoizedProps;v.props=b;var P=v.context,A=o.contextType;typeof A=="object"&&A!==null?A=Wt(A):(A=Nt(o)?Zn:yt.current,A=Nr(n,A));var te=o.getDerivedStateFromProps,ne=typeof te=="function"||typeof v.getSnapshotBeforeUpdate=="function";ne||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(b!==u||P!==A)&&Sd(n,v,u,A),Mn=!1;var Z=n.memoizedState;v.state=Z,_o(n,u,v,d),P=n.memoizedState,b!==u||Z!==P||Et.current||Mn?(typeof te=="function"&&(zs(n,o,te,u),P=n.memoizedState),(b=Mn||wd(n,o,b,u,Z,P,A))?(ne||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(n.flags|=4194308)):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=P),v.props=u,v.state=P,v.context=A,u=b):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{v=n.stateNode,Gc(e,n),b=n.memoizedProps,A=n.type===n.elementType?b:Zt(n.type,b),v.props=A,ne=n.pendingProps,Z=v.context,P=o.contextType,typeof P=="object"&&P!==null?P=Wt(P):(P=Nt(o)?Zn:yt.current,P=Nr(n,P));var he=o.getDerivedStateFromProps;(te=typeof he=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(b!==ne||Z!==P)&&Sd(n,v,u,P),Mn=!1,Z=n.memoizedState,v.state=Z,_o(n,u,v,d);var ge=n.memoizedState;b!==ne||Z!==ge||Et.current||Mn?(typeof he=="function"&&(zs(n,o,he,u),ge=n.memoizedState),(A=Mn||wd(n,o,A,u,Z,ge,P)||!1)?(te||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,ge,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,ge,P)),typeof v.componentDidUpdate=="function"&&(n.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof v.componentDidUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=ge),v.props=u,v.state=ge,v.context=P,u=A):(typeof v.componentDidUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),u=!1)}return $s(e,n,o,u,h,d)}function $s(e,n,o,u,d,h){_d(e,n);var v=(n.flags&128)!==0;if(!u&&!v)return d&&Dc(n,o,!1),Sn(e,n,h);u=n.stateNode,vg.current=n;var b=v&&typeof o.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,e!==null&&v?(n.child=Lr(n,e.child,null,h),n.child=Lr(n,null,b,h)):St(e,n,b,h),n.memoizedState=u.state,d&&Dc(n,o,!0),n.child}function Rd(e){var n=e.stateNode;n.pendingContext?Ac(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Ac(e,n.context,!1),Cs(e,n.containerInfo)}function zd(e,n,o,u,d){return Tr(),gs(d),n.flags|=256,St(e,n,o,u),n.child}var Us={dehydrated:null,treeContext:null,retryLane:0};function Bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ad(e,n,o){var u=n.pendingProps,d=Je.current,h=!1,v=(n.flags&128)!==0,b;if((b=v)||(b=e!==null&&e.memoizedState===null?!1:(d&2)!==0),b?(h=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),We(Je,d&1),e===null)return ms(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(v=u.children,e=u.fallback,h?(u=n.mode,h=n.child,v={mode:"hidden",children:v},(u&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=v):h=Zo(v,u,0,null),e=ur(e,u,o,null),h.return=n,e.return=n,h.sibling=e,n.child=h,n.child.memoizedState=Bs(o),n.memoizedState=Us,e):Vs(n,v));if(d=e.memoizedState,d!==null&&(b=d.dehydrated,b!==null))return wg(e,n,v,u,b,d,o);if(h){h=u.fallback,v=n.mode,d=e.child,b=d.sibling;var P={mode:"hidden",children:u.children};return(v&1)===0&&n.child!==d?(u=n.child,u.childLanes=0,u.pendingProps=P,n.deletions=null):(u=Hn(d,P),u.subtreeFlags=d.subtreeFlags&14680064),b!==null?h=Hn(b,h):(h=ur(h,v,o,null),h.flags|=2),h.return=n,u.return=n,u.sibling=h,n.child=u,u=h,h=n.child,v=e.child.memoizedState,v=v===null?Bs(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},h.memoizedState=v,h.childLanes=e.childLanes&~o,n.memoizedState=Us,u}return h=e.child,e=h.sibling,u=Hn(h,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=o),u.return=n,u.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=u,n.memoizedState=null,u}function Vs(e,n){return n=Zo({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function $o(e,n,o,u){return u!==null&&gs(u),Lr(n,e.child,null,o),e=Vs(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function wg(e,n,o,u,d,h,v){if(o)return n.flags&256?(n.flags&=-257,u=Ms(Error(i(422))),$o(e,n,v,u)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(h=u.fallback,d=n.mode,u=Zo({mode:"visible",children:u.children},d,0,null),h=ur(h,d,v,null),h.flags|=2,u.return=n,h.return=n,u.sibling=h,n.child=u,(n.mode&1)!==0&&Lr(n,e.child,null,v),n.child.memoizedState=Bs(v),n.memoizedState=Us,h);if((n.mode&1)===0)return $o(e,n,v,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var b=u.dgst;return u=b,h=Error(i(419)),u=Ms(h,u,void 0),$o(e,n,v,u)}if(b=(v&e.childLanes)!==0,Pt||b){if(u=ct,u!==null){switch(v&-v){case 4:d=2;break;case 16:d=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:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(u.suspendedLanes|v))!==0?0:d,d!==0&&d!==h.retryLane&&(h.retryLane=d,wn(e,d),nn(u,e,d,-1))}return oa(),u=Ms(Error(i(421))),$o(e,n,v,u)}return d.data==="$?"?(n.flags|=128,n.child=e.child,n=Og.bind(null,e),d._reactRetry=n,null):(e=h.treeContext,Dt=On(d.nextSibling),Mt=n,Xe=!0,Jt=null,e!==null&&(Vt[Ht++]=xn,Vt[Ht++]=vn,Vt[Ht++]=er,xn=e.id,vn=e.overflow,er=n),n=Vs(n,u.children),n.flags|=4096,n)}function Md(e,n,o){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),ws(e.return,n,o)}function Hs(e,n,o,u,d){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(h.isBackwards=n,h.rendering=null,h.renderingStartTime=0,h.last=u,h.tail=o,h.tailMode=d)}function Dd(e,n,o){var u=n.pendingProps,d=u.revealOrder,h=u.tail;if(St(e,n,u.children,o),u=Je.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Md(e,o,n);else if(e.tag===19)Md(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(We(Je,u),(n.mode&1)===0)n.memoizedState=null;else switch(d){case"forwards":for(o=n.child,d=null;o!==null;)e=o.alternate,e!==null&&Oo(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=n.child,n.child=null):(d=o.sibling,o.sibling=null),Hs(n,!1,d,o,h);break;case"backwards":for(o=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Oo(e)===null){n.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}Hs(n,!0,o,null,h);break;case"together":Hs(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Uo(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Sn(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),or|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=Hn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Hn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function kg(e,n,o){switch(n.tag){case 3:Rd(n),Tr();break;case 5:Jc(n);break;case 1:Nt(n.type)&&Co(n);break;case 4:Cs(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,d=n.memoizedProps.value;We(To,u._currentValue),u._currentValue=d;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(We(Je,Je.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Ad(e,n,o):(We(Je,Je.current&1),e=Sn(e,n,o),e!==null?e.sibling:null);We(Je,Je.current&1);break;case 19:if(u=(o&n.childLanes)!==0,(e.flags&128)!==0){if(u)return Dd(e,n,o);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),We(Je,Je.current),u)break;return null;case 22:case 23:return n.lanes=0,Id(e,n,o)}return Sn(e,n,o)}var Fd,Ws,$d,Ud;Fd=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Ws=function(){},$d=function(e,n,o,u){var d=e.memoizedProps;if(d!==u){e=n.stateNode,rr(sn.current);var h=null;switch(o){case"input":d=we(e,d),u=we(e,u),h=[];break;case"select":d=S({},d,{value:void 0}),u=S({},u,{value:void 0}),h=[];break;case"textarea":d=at(e,d),u=at(e,u),h=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=wo)}pt(o,u);var v;o=null;for(A in d)if(!u.hasOwnProperty(A)&&d.hasOwnProperty(A)&&d[A]!=null)if(A==="style"){var b=d[A];for(v in b)b.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(s.hasOwnProperty(A)?h||(h=[]):(h=h||[]).push(A,null));for(A in u){var P=u[A];if(b=d!=null?d[A]:void 0,u.hasOwnProperty(A)&&P!==b&&(P!=null||b!=null))if(A==="style")if(b){for(v in b)!b.hasOwnProperty(v)||P&&P.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in P)P.hasOwnProperty(v)&&b[v]!==P[v]&&(o||(o={}),o[v]=P[v])}else o||(h||(h=[]),h.push(A,o)),o=P;else A==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,b=b?b.__html:void 0,P!=null&&b!==P&&(h=h||[]).push(A,P)):A==="children"?typeof P!="string"&&typeof P!="number"||(h=h||[]).push(A,""+P):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(s.hasOwnProperty(A)?(P!=null&&A==="onScroll"&&Qe("scroll",e),h||b===P||(h=[])):(h=h||[]).push(A,P))}o&&(h=h||[]).push("style",o);var A=h;(n.updateQueue=A)&&(n.flags|=4)}},Ud=function(e,n,o,u){o!==u&&(n.flags|=4)};function Ei(e,n){if(!Xe)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function vt(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(n)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=o,n}function Sg(e,n,o){var u=n.pendingProps;switch(ps(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(n),null;case 1:return Nt(n.type)&&So(),vt(n),null;case 3:return u=n.stateNode,Or(),Ge(Et),Ge(yt),Ns(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Po(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Jt!==null&&(na(Jt),Jt=null))),Ws(e,n),vt(n),null;case 5:bs(n);var d=rr(wi.current);if(o=n.type,e!==null&&n.stateNode!=null)$d(e,n,o,u,d),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(i(166));return vt(n),null}if(e=rr(sn.current),Po(n)){u=n.stateNode,o=n.type;var h=n.memoizedProps;switch(u[ln]=n,u[mi]=h,e=(n.mode&1)!==0,o){case"dialog":Qe("cancel",u),Qe("close",u);break;case"iframe":case"object":case"embed":Qe("load",u);break;case"video":case"audio":for(d=0;d<fi.length;d++)Qe(fi[d],u);break;case"source":Qe("error",u);break;case"img":case"image":case"link":Qe("error",u),Qe("load",u);break;case"details":Qe("toggle",u);break;case"input":ve(u,h),Qe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!h.multiple},Qe("invalid",u);break;case"textarea":En(u,h),Qe("invalid",u)}pt(o,h),d=null;for(var v in h)if(h.hasOwnProperty(v)){var b=h[v];v==="children"?typeof b=="string"?u.textContent!==b&&(h.suppressHydrationWarning!==!0&&vo(u.textContent,b,e),d=["children",b]):typeof b=="number"&&u.textContent!==""+b&&(h.suppressHydrationWarning!==!0&&vo(u.textContent,b,e),d=["children",""+b]):s.hasOwnProperty(v)&&b!=null&&v==="onScroll"&&Qe("scroll",u)}switch(o){case"input":ye(u),$e(u,h,!0);break;case"textarea":ye(u),Xi(u);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(u.onclick=wo)}u=d,n.updateQueue=u,u!==null&&(n.flags|=4)}else{v=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=W(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=v.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=v.createElement(o,{is:u.is}):(e=v.createElement(o),o==="select"&&(v=e,u.multiple?v.multiple=!0:u.size&&(v.size=u.size))):e=v.createElementNS(e,o),e[ln]=n,e[mi]=u,Fd(e,n,!1,!1),n.stateNode=e;e:{switch(v=rn(o,u),o){case"dialog":Qe("cancel",e),Qe("close",e),d=u;break;case"iframe":case"object":case"embed":Qe("load",e),d=u;break;case"video":case"audio":for(d=0;d<fi.length;d++)Qe(fi[d],e);d=u;break;case"source":Qe("error",e),d=u;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),d=u;break;case"details":Qe("toggle",e),d=u;break;case"input":ve(e,u),d=we(e,u),Qe("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=S({},u,{value:void 0}),Qe("invalid",e);break;case"textarea":En(e,u),d=at(e,u),Qe("invalid",e);break;default:d=u}pt(o,d),b=d;for(h in b)if(b.hasOwnProperty(h)){var P=b[h];h==="style"?Nn(e,P):h==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&_e(e,P)):h==="children"?typeof P=="string"?(o!=="textarea"||P!=="")&&Me(e,P):typeof P=="number"&&Me(e,""+P):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(s.hasOwnProperty(h)?P!=null&&h==="onScroll"&&Qe("scroll",e):P!=null&&F(e,h,P,v))}switch(o){case"input":ye(e),$e(e,u,!1);break;case"textarea":ye(e),Xi(e);break;case"option":u.value!=null&&e.setAttribute("value",""+X(u.value));break;case"select":e.multiple=!!u.multiple,h=u.value,h!=null?gt(e,!!u.multiple,h,!1):u.defaultValue!=null&>(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=wo)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return vt(n),null;case 6:if(e&&n.stateNode!=null)Ud(e,n,e.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(i(166));if(o=rr(wi.current),rr(sn.current),Po(n)){if(u=n.stateNode,o=n.memoizedProps,u[ln]=n,(h=u.nodeValue!==o)&&(e=Mt,e!==null))switch(e.tag){case 3:vo(u.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vo(u.nodeValue,o,(e.mode&1)!==0)}h&&(n.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[ln]=n,n.stateNode=u}return vt(n),null;case 13:if(Ge(Je),u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Xe&&Dt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Hc(),Tr(),n.flags|=98560,h=!1;else if(h=Po(n),u!==null&&u.dehydrated!==null){if(e===null){if(!h)throw Error(i(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[ln]=n}else Tr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;vt(n),h=!1}else Jt!==null&&(na(Jt),Jt=null),h=!0;if(!h)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Je.current&1)!==0?lt===0&&(lt=3):oa())),n.updateQueue!==null&&(n.flags|=4),vt(n),null);case 4:return Or(),Ws(e,n),e===null&&pi(n.stateNode.containerInfo),vt(n),null;case 10:return vs(n.type._context),vt(n),null;case 17:return Nt(n.type)&&So(),vt(n),null;case 19:if(Ge(Je),h=n.memoizedState,h===null)return vt(n),null;if(u=(n.flags&128)!==0,v=h.rendering,v===null)if(u)Ei(h,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(v=Oo(e),v!==null){for(n.flags|=128,Ei(h,!1),u=v.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=o,o=n.child;o!==null;)h=o,e=u,h.flags&=14680066,v=h.alternate,v===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=v.childLanes,h.lanes=v.lanes,h.child=v.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=v.memoizedProps,h.memoizedState=v.memoizedState,h.updateQueue=v.updateQueue,h.type=v.type,e=v.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return We(Je,Je.current&1|2),n.child}e=e.sibling}h.tail!==null&&tt()>Mr&&(n.flags|=128,u=!0,Ei(h,!1),n.lanes=4194304)}else{if(!u)if(e=Oo(v),e!==null){if(n.flags|=128,u=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),Ei(h,!0),h.tail===null&&h.tailMode==="hidden"&&!v.alternate&&!Xe)return vt(n),null}else 2*tt()-h.renderingStartTime>Mr&&o!==1073741824&&(n.flags|=128,u=!0,Ei(h,!1),n.lanes=4194304);h.isBackwards?(v.sibling=n.child,n.child=v):(o=h.last,o!==null?o.sibling=v:n.child=v,h.last=v)}return h.tail!==null?(n=h.tail,h.rendering=n,h.tail=n.sibling,h.renderingStartTime=tt(),n.sibling=null,o=Je.current,We(Je,u?o&1|2:o&1),n):(vt(n),null);case 22:case 23:return ia(),u=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(Ft&1073741824)!==0&&(vt(n),n.subtreeFlags&6&&(n.flags|=8192)):vt(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Cg(e,n){switch(ps(n),n.tag){case 1:return Nt(n.type)&&So(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Or(),Ge(Et),Ge(yt),Ns(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return bs(n),null;case 13:if(Ge(Je),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Tr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ge(Je),null;case 4:return Or(),null;case 10:return vs(n.type._context),null;case 22:case 23:return ia(),null;case 24:return null;default:return null}}var Bo=!1,wt=!1,bg=typeof WeakSet=="function"?WeakSet:Set,me=null;function zr(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){et(e,n,u)}else o.current=null}function qs(e,n,o){try{o()}catch(u){et(e,n,u)}}var Bd=!1;function Eg(e,n){if(is=so,e=wc(),Yl(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var v=0,b=-1,P=-1,A=0,te=0,ne=e,Z=null;t:for(;;){for(var he;ne!==o||d!==0&&ne.nodeType!==3||(b=v+d),ne!==h||u!==0&&ne.nodeType!==3||(P=v+u),ne.nodeType===3&&(v+=ne.nodeValue.length),(he=ne.firstChild)!==null;)Z=ne,ne=he;for(;;){if(ne===e)break t;if(Z===o&&++A===d&&(b=v),Z===h&&++te===u&&(P=v),(he=ne.nextSibling)!==null)break;ne=Z,Z=ne.parentNode}ne=he}o=b===-1||P===-1?null:{start:b,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(os={focusedElem:e,selectionRange:o},so=!1,me=n;me!==null;)if(n=me,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,me=e;else for(;me!==null;){n=me;try{var ge=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var xe=ge.memoizedProps,nt=ge.memoizedState,O=n.stateNode,T=O.getSnapshotBeforeUpdate(n.elementType===n.type?xe:Zt(n.type,xe),nt);O.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var z=n.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(oe){et(n,n.return,oe)}if(e=n.sibling,e!==null){e.return=n.return,me=e;break}me=n.return}return ge=Bd,Bd=!1,ge}function Ni(e,n,o){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var h=d.destroy;d.destroy=void 0,h!==void 0&&qs(n,o,h)}d=d.next}while(d!==u)}}function Vo(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var u=o.create;o.destroy=u()}o=o.next}while(o!==n)}}function Ks(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Vd(e){var n=e.alternate;n!==null&&(e.alternate=null,Vd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[ln],delete n[mi],delete n[us],delete n[sg],delete n[ag])),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 Hd(e){return e.tag===5||e.tag===3||e.tag===4}function Wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(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 Qs(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=wo));else if(u!==4&&(e=e.child,e!==null))for(Qs(e,n,o),e=e.sibling;e!==null;)Qs(e,n,o),e=e.sibling}function Gs(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Gs(e,n,o),e=e.sibling;e!==null;)Gs(e,n,o),e=e.sibling}var ht=null,en=!1;function Fn(e,n,o){for(o=o.child;o!==null;)qd(e,n,o),o=o.sibling}function qd(e,n,o){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(to,o)}catch{}switch(o.tag){case 5:wt||zr(o,n);case 6:var u=ht,d=en;ht=null,Fn(e,n,o),ht=u,en=d,ht!==null&&(en?(e=ht,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):ht.removeChild(o.stateNode));break;case 18:ht!==null&&(en?(e=ht,o=o.stateNode,e.nodeType===8?as(e.parentNode,o):e.nodeType===1&&as(e,o),ii(e)):as(ht,o.stateNode));break;case 4:u=ht,d=en,ht=o.stateNode.containerInfo,en=!0,Fn(e,n,o),ht=u,en=d;break;case 0:case 11:case 14:case 15:if(!wt&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var h=d,v=h.destroy;h=h.tag,v!==void 0&&((h&2)!==0||(h&4)!==0)&&qs(o,n,v),d=d.next}while(d!==u)}Fn(e,n,o);break;case 1:if(!wt&&(zr(o,n),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(b){et(o,n,b)}Fn(e,n,o);break;case 21:Fn(e,n,o);break;case 22:o.mode&1?(wt=(u=wt)||o.memoizedState!==null,Fn(e,n,o),wt=u):Fn(e,n,o);break;default:Fn(e,n,o)}}function Kd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new bg),n.forEach(function(u){var d=Rg.bind(null,e,u);o.has(u)||(o.add(u),u.then(d,d))})}}function tn(e,n){var o=n.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];try{var h=e,v=n,b=v;e:for(;b!==null;){switch(b.tag){case 5:ht=b.stateNode,en=!1;break e;case 3:ht=b.stateNode.containerInfo,en=!0;break e;case 4:ht=b.stateNode.containerInfo,en=!0;break e}b=b.return}if(ht===null)throw Error(i(160));qd(h,v,d),ht=null,en=!1;var P=d.alternate;P!==null&&(P.return=null),d.return=null}catch(A){et(d,n,A)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Qd(n,e),n=n.sibling}function Qd(e,n){var o=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(n,e),un(e),u&4){try{Ni(3,e,e.return),Vo(3,e)}catch(xe){et(e,e.return,xe)}try{Ni(5,e,e.return)}catch(xe){et(e,e.return,xe)}}break;case 1:tn(n,e),un(e),u&512&&o!==null&&zr(o,o.return);break;case 5:if(tn(n,e),un(e),u&512&&o!==null&&zr(o,o.return),e.flags&32){var d=e.stateNode;try{Me(d,"")}catch(xe){et(e,e.return,xe)}}if(u&4&&(d=e.stateNode,d!=null)){var h=e.memoizedProps,v=o!==null?o.memoizedProps:h,b=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{b==="input"&&h.type==="radio"&&h.name!=null&&Ae(d,h),rn(b,v);var A=rn(b,h);for(v=0;v<P.length;v+=2){var te=P[v],ne=P[v+1];te==="style"?Nn(d,ne):te==="dangerouslySetInnerHTML"?_e(d,ne):te==="children"?Me(d,ne):F(d,te,ne,A)}switch(b){case"input":Ve(d,h);break;case"textarea":Yi(d,h);break;case"select":var Z=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!h.multiple;var he=h.value;he!=null?gt(d,!!h.multiple,he,!1):Z!==!!h.multiple&&(h.defaultValue!=null?gt(d,!!h.multiple,h.defaultValue,!0):gt(d,!!h.multiple,h.multiple?[]:"",!1))}d[mi]=h}catch(xe){et(e,e.return,xe)}}break;case 6:if(tn(n,e),un(e),u&4){if(e.stateNode===null)throw Error(i(162));d=e.stateNode,h=e.memoizedProps;try{d.nodeValue=h}catch(xe){et(e,e.return,xe)}}break;case 3:if(tn(n,e),un(e),u&4&&o!==null&&o.memoizedState.isDehydrated)try{ii(n.containerInfo)}catch(xe){et(e,e.return,xe)}break;case 4:tn(n,e),un(e);break;case 13:tn(n,e),un(e),d=e.child,d.flags&8192&&(h=d.memoizedState!==null,d.stateNode.isHidden=h,!h||d.alternate!==null&&d.alternate.memoizedState!==null||(Js=tt())),u&4&&Kd(e);break;case 22:if(te=o!==null&&o.memoizedState!==null,e.mode&1?(wt=(A=wt)||te,tn(n,e),wt=A):tn(n,e),un(e),u&8192){if(A=e.memoizedState!==null,(e.stateNode.isHidden=A)&&!te&&(e.mode&1)!==0)for(me=e,te=e.child;te!==null;){for(ne=me=te;me!==null;){switch(Z=me,he=Z.child,Z.tag){case 0:case 11:case 14:case 15:Ni(4,Z,Z.return);break;case 1:zr(Z,Z.return);var ge=Z.stateNode;if(typeof ge.componentWillUnmount=="function"){u=Z,o=Z.return;try{n=u,ge.props=n.memoizedProps,ge.state=n.memoizedState,ge.componentWillUnmount()}catch(xe){et(u,o,xe)}}break;case 5:zr(Z,Z.return);break;case 22:if(Z.memoizedState!==null){Xd(ne);continue}}he!==null?(he.return=Z,me=he):Xd(ne)}te=te.sibling}e:for(te=null,ne=e;;){if(ne.tag===5){if(te===null){te=ne;try{d=ne.stateNode,A?(h=d.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(b=ne.stateNode,P=ne.memoizedProps.style,v=P!=null&&P.hasOwnProperty("display")?P.display:null,b.style.display=Bt("display",v))}catch(xe){et(e,e.return,xe)}}}else if(ne.tag===6){if(te===null)try{ne.stateNode.nodeValue=A?"":ne.memoizedProps}catch(xe){et(e,e.return,xe)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===e)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===e)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===e)break e;te===ne&&(te=null),ne=ne.return}te===ne&&(te=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:tn(n,e),un(e),u&4&&Kd(e);break;case 21:break;default:tn(n,e),un(e)}}function un(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Hd(o)){var u=o;break e}o=o.return}throw Error(i(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(Me(d,""),u.flags&=-33);var h=Wd(e);Gs(e,h,d);break;case 3:case 4:var v=u.stateNode.containerInfo,b=Wd(e);Qs(e,b,v);break;default:throw Error(i(161))}}catch(P){et(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ng(e,n,o){me=e,Gd(e)}function Gd(e,n,o){for(var u=(e.mode&1)!==0;me!==null;){var d=me,h=d.child;if(d.tag===22&&u){var v=d.memoizedState!==null||Bo;if(!v){var b=d.alternate,P=b!==null&&b.memoizedState!==null||wt;b=Bo;var A=wt;if(Bo=v,(wt=P)&&!A)for(me=d;me!==null;)v=me,P=v.child,v.tag===22&&v.memoizedState!==null?Jd(d):P!==null?(P.return=v,me=P):Jd(d);for(;h!==null;)me=h,Gd(h),h=h.sibling;me=d,Bo=b,wt=A}Yd(e)}else(d.subtreeFlags&8772)!==0&&h!==null?(h.return=d,me=h):Yd(e)}}function Yd(e){for(;me!==null;){var n=me;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:wt||Vo(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!wt)if(o===null)u.componentDidMount();else{var d=n.elementType===n.type?o.memoizedProps:Zt(n.type,o.memoizedProps);u.componentDidUpdate(d,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var h=n.updateQueue;h!==null&&Xc(n,h,u);break;case 3:var v=n.updateQueue;if(v!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Xc(n,v,o)}break;case 5:var b=n.stateNode;if(o===null&&n.flags&4){o=b;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&o.focus();break;case"img":P.src&&(o.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var A=n.alternate;if(A!==null){var te=A.memoizedState;if(te!==null){var ne=te.dehydrated;ne!==null&&ii(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}wt||n.flags&512&&Ks(n)}catch(Z){et(n,n.return,Z)}}if(n===e){me=null;break}if(o=n.sibling,o!==null){o.return=n.return,me=o;break}me=n.return}}function Xd(e){for(;me!==null;){var n=me;if(n===e){me=null;break}var o=n.sibling;if(o!==null){o.return=n.return,me=o;break}me=n.return}}function Jd(e){for(;me!==null;){var n=me;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Vo(4,n)}catch(P){et(n,o,P)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var d=n.return;try{u.componentDidMount()}catch(P){et(n,d,P)}}var h=n.return;try{Ks(n)}catch(P){et(n,h,P)}break;case 5:var v=n.return;try{Ks(n)}catch(P){et(n,v,P)}}}catch(P){et(n,n.return,P)}if(n===e){me=null;break}var b=n.sibling;if(b!==null){b.return=n.return,me=b;break}me=n.return}}var Pg=Math.ceil,Ho=B.ReactCurrentDispatcher,Ys=B.ReactCurrentOwner,Kt=B.ReactCurrentBatchConfig,De=0,ct=null,rt=null,mt=0,Ft=0,Ar=Rn(0),lt=0,Pi=null,or=0,Wo=0,Xs=0,ji=null,jt=null,Js=0,Mr=1/0,Cn=null,qo=!1,Zs=null,$n=null,Ko=!1,Un=null,Qo=0,Ti=0,ea=null,Go=-1,Yo=0;function Ct(){return(De&6)!==0?tt():Go!==-1?Go:Go=tt()}function Bn(e){return(e.mode&1)===0?1:(De&2)!==0&&mt!==0?mt&-mt:cg.transition!==null?(Yo===0&&(Yo=Wu()),Yo):(e=Be,e!==0||(e=window.event,e=e===void 0?16:ec(e.type)),e)}function nn(e,n,o,u){if(50<Ti)throw Ti=0,ea=null,Error(i(185));Zr(e,o,u),((De&2)===0||e!==ct)&&(e===ct&&((De&2)===0&&(Wo|=o),lt===4&&Vn(e,mt)),Tt(e,u),o===1&&De===0&&(n.mode&1)===0&&(Mr=tt()+500,bo&&An()))}function Tt(e,n){var o=e.callbackNode;cm(e,n);var u=io(e,e===ct?mt:0);if(u===0)o!==null&&Bu(o),e.callbackNode=null,e.callbackPriority=0;else if(n=u&-u,e.callbackPriority!==n){if(o!=null&&Bu(o),n===1)e.tag===0?ug(ef.bind(null,e)):Fc(ef.bind(null,e)),og(function(){(De&6)===0&&An()}),o=null;else{switch(qu(u)){case 1:o=Ol;break;case 4:o=Vu;break;case 16:o=eo;break;case 536870912:o=Hu;break;default:o=eo}o=uf(o,Zd.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Zd(e,n){if(Go=-1,Yo=0,(De&6)!==0)throw Error(i(327));var o=e.callbackNode;if(Dr()&&e.callbackNode!==o)return null;var u=io(e,e===ct?mt:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||n)n=Xo(e,u);else{n=u;var d=De;De|=2;var h=nf();(ct!==e||mt!==n)&&(Cn=null,Mr=tt()+500,sr(e,n));do try{Lg();break}catch(b){tf(e,b)}while(!0);xs(),Ho.current=h,De=d,rt!==null?n=0:(ct=null,mt=0,n=lt)}if(n!==0){if(n===2&&(d=Rl(e),d!==0&&(u=d,n=ta(e,d))),n===1)throw o=Pi,sr(e,0),Vn(e,u),Tt(e,tt()),o;if(n===6)Vn(e,u);else{if(d=e.current.alternate,(u&30)===0&&!jg(d)&&(n=Xo(e,u),n===2&&(h=Rl(e),h!==0&&(u=h,n=ta(e,h))),n===1))throw o=Pi,sr(e,0),Vn(e,u),Tt(e,tt()),o;switch(e.finishedWork=d,e.finishedLanes=u,n){case 0:case 1:throw Error(i(345));case 2:ar(e,jt,Cn);break;case 3:if(Vn(e,u),(u&130023424)===u&&(n=Js+500-tt(),10<n)){if(io(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){Ct(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=ss(ar.bind(null,e,jt,Cn),n);break}ar(e,jt,Cn);break;case 4:if(Vn(e,u),(u&4194240)===u)break;for(n=e.eventTimes,d=-1;0<u;){var v=31-Yt(u);h=1<<v,v=n[v],v>d&&(d=v),u&=~h}if(u=d,u=tt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*Pg(u/1960))-u,10<u){e.timeoutHandle=ss(ar.bind(null,e,jt,Cn),u);break}ar(e,jt,Cn);break;case 5:ar(e,jt,Cn);break;default:throw Error(i(329))}}}return Tt(e,tt()),e.callbackNode===o?Zd.bind(null,e):null}function ta(e,n){var o=ji;return e.current.memoizedState.isDehydrated&&(sr(e,n).flags|=256),e=Xo(e,n),e!==2&&(n=jt,jt=o,n!==null&&na(n)),e}function na(e){jt===null?jt=e:jt.push.apply(jt,e)}function jg(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var d=o[u],h=d.getSnapshot;d=d.value;try{if(!Xt(h(),d))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Vn(e,n){for(n&=~Xs,n&=~Wo,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-Yt(n),u=1<<o;e[o]=-1,n&=~u}}function ef(e){if((De&6)!==0)throw Error(i(327));Dr();var n=io(e,0);if((n&1)===0)return Tt(e,tt()),null;var o=Xo(e,n);if(e.tag!==0&&o===2){var u=Rl(e);u!==0&&(n=u,o=ta(e,u))}if(o===1)throw o=Pi,sr(e,0),Vn(e,n),Tt(e,tt()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ar(e,jt,Cn),Tt(e,tt()),null}function ra(e,n){var o=De;De|=1;try{return e(n)}finally{De=o,De===0&&(Mr=tt()+500,bo&&An())}}function lr(e){Un!==null&&Un.tag===0&&(De&6)===0&&Dr();var n=De;De|=1;var o=Kt.transition,u=Be;try{if(Kt.transition=null,Be=1,e)return e()}finally{Be=u,Kt.transition=o,De=n,(De&6)===0&&An()}}function ia(){Ft=Ar.current,Ge(Ar)}function sr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,ig(o)),rt!==null)for(o=rt.return;o!==null;){var u=o;switch(ps(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&So();break;case 3:Or(),Ge(Et),Ge(yt),Ns();break;case 5:bs(u);break;case 4:Or();break;case 13:Ge(Je);break;case 19:Ge(Je);break;case 10:vs(u.type._context);break;case 22:case 23:ia()}o=o.return}if(ct=e,rt=e=Hn(e.current,null),mt=Ft=n,lt=0,Pi=null,Xs=Wo=or=0,jt=ji=null,nr!==null){for(n=0;n<nr.length;n++)if(o=nr[n],u=o.interleaved,u!==null){o.interleaved=null;var d=u.next,h=o.pending;if(h!==null){var v=h.next;h.next=d,u.next=v}o.pending=u}nr=null}return e}function tf(e,n){do{var o=rt;try{if(xs(),Ro.current=Do,zo){for(var u=Ze.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}zo=!1}if(ir=0,ut=ot=Ze=null,ki=!1,Si=0,Ys.current=null,o===null||o.return===null){lt=1,Pi=n,rt=null;break}e:{var h=e,v=o.return,b=o,P=n;if(n=mt,b.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var A=P,te=b,ne=te.tag;if((te.mode&1)===0&&(ne===0||ne===11||ne===15)){var Z=te.alternate;Z?(te.updateQueue=Z.updateQueue,te.memoizedState=Z.memoizedState,te.lanes=Z.lanes):(te.updateQueue=null,te.memoizedState=null)}var he=Nd(v);if(he!==null){he.flags&=-257,Pd(he,v,b,h,n),he.mode&1&&Ed(h,A,n),n=he,P=A;var ge=n.updateQueue;if(ge===null){var xe=new Set;xe.add(P),n.updateQueue=xe}else ge.add(P);break e}else{if((n&1)===0){Ed(h,A,n),oa();break e}P=Error(i(426))}}else if(Xe&&b.mode&1){var nt=Nd(v);if(nt!==null){(nt.flags&65536)===0&&(nt.flags|=256),Pd(nt,v,b,h,n),gs(Rr(P,b));break e}}h=P=Rr(P,b),lt!==4&&(lt=2),ji===null?ji=[h]:ji.push(h),h=v;do{switch(h.tag){case 3:h.flags|=65536,n&=-n,h.lanes|=n;var O=Cd(h,P,n);Yc(h,O);break e;case 1:b=P;var T=h.type,z=h.stateNode;if((h.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&($n===null||!$n.has(z)))){h.flags|=65536,n&=-n,h.lanes|=n;var oe=bd(h,b,n);Yc(h,oe);break e}}h=h.return}while(h!==null)}of(o)}catch(ke){n=ke,rt===o&&o!==null&&(rt=o=o.return);continue}break}while(!0)}function nf(){var e=Ho.current;return Ho.current=Do,e===null?Do:e}function oa(){(lt===0||lt===3||lt===2)&&(lt=4),ct===null||(or&268435455)===0&&(Wo&268435455)===0||Vn(ct,mt)}function Xo(e,n){var o=De;De|=2;var u=nf();(ct!==e||mt!==n)&&(Cn=null,sr(e,n));do try{Tg();break}catch(d){tf(e,d)}while(!0);if(xs(),De=o,Ho.current=u,rt!==null)throw Error(i(261));return ct=null,mt=0,lt}function Tg(){for(;rt!==null;)rf(rt)}function Lg(){for(;rt!==null&&!tm();)rf(rt)}function rf(e){var n=af(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,n===null?of(e):rt=n,Ys.current=null}function of(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Sg(o,n,Ft),o!==null){rt=o;return}}else{if(o=Cg(o,n),o!==null){o.flags&=32767,rt=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lt=6,rt=null;return}}if(n=n.sibling,n!==null){rt=n;return}rt=n=e}while(n!==null);lt===0&&(lt=5)}function ar(e,n,o){var u=Be,d=Kt.transition;try{Kt.transition=null,Be=1,Ig(e,n,o,u)}finally{Kt.transition=d,Be=u}return null}function Ig(e,n,o,u){do Dr();while(Un!==null);if((De&6)!==0)throw Error(i(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var h=o.lanes|o.childLanes;if(dm(e,h),e===ct&&(rt=ct=null,mt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ko||(Ko=!0,uf(eo,function(){return Dr(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=Kt.transition,Kt.transition=null;var v=Be;Be=1;var b=De;De|=4,Ys.current=null,Eg(e,o),Qd(o,e),Xm(os),so=!!is,os=is=null,e.current=o,Ng(o),nm(),De=b,Be=v,Kt.transition=h}else e.current=o;if(Ko&&(Ko=!1,Un=e,Qo=d),h=e.pendingLanes,h===0&&($n=null),om(o.stateNode),Tt(e,tt()),n!==null)for(u=e.onRecoverableError,o=0;o<n.length;o++)d=n[o],u(d.value,{componentStack:d.stack,digest:d.digest});if(qo)throw qo=!1,e=Zs,Zs=null,e;return(Qo&1)!==0&&e.tag!==0&&Dr(),h=e.pendingLanes,(h&1)!==0?e===ea?Ti++:(Ti=0,ea=e):Ti=0,An(),null}function Dr(){if(Un!==null){var e=qu(Qo),n=Kt.transition,o=Be;try{if(Kt.transition=null,Be=16>e?16:e,Un===null)var u=!1;else{if(e=Un,Un=null,Qo=0,(De&6)!==0)throw Error(i(331));var d=De;for(De|=4,me=e.current;me!==null;){var h=me,v=h.child;if((me.flags&16)!==0){var b=h.deletions;if(b!==null){for(var P=0;P<b.length;P++){var A=b[P];for(me=A;me!==null;){var te=me;switch(te.tag){case 0:case 11:case 15:Ni(8,te,h)}var ne=te.child;if(ne!==null)ne.return=te,me=ne;else for(;me!==null;){te=me;var Z=te.sibling,he=te.return;if(Vd(te),te===A){me=null;break}if(Z!==null){Z.return=he,me=Z;break}me=he}}}var ge=h.alternate;if(ge!==null){var xe=ge.child;if(xe!==null){ge.child=null;do{var nt=xe.sibling;xe.sibling=null,xe=nt}while(xe!==null)}}me=h}}if((h.subtreeFlags&2064)!==0&&v!==null)v.return=h,me=v;else e:for(;me!==null;){if(h=me,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Ni(9,h,h.return)}var O=h.sibling;if(O!==null){O.return=h.return,me=O;break e}me=h.return}}var T=e.current;for(me=T;me!==null;){v=me;var z=v.child;if((v.subtreeFlags&2064)!==0&&z!==null)z.return=v,me=z;else e:for(v=T;me!==null;){if(b=me,(b.flags&2048)!==0)try{switch(b.tag){case 0:case 11:case 15:Vo(9,b)}}catch(ke){et(b,b.return,ke)}if(b===v){me=null;break e}var oe=b.sibling;if(oe!==null){oe.return=b.return,me=oe;break e}me=b.return}}if(De=d,An(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(to,e)}catch{}u=!0}return u}finally{Be=o,Kt.transition=n}}return!1}function lf(e,n,o){n=Rr(o,n),n=Cd(e,n,1),e=Dn(e,n,1),n=Ct(),e!==null&&(Zr(e,1,n),Tt(e,n))}function et(e,n,o){if(e.tag===3)lf(e,e,o);else for(;n!==null;){if(n.tag===3){lf(n,e,o);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&($n===null||!$n.has(u))){e=Rr(o,e),e=bd(n,e,1),n=Dn(n,e,1),e=Ct(),n!==null&&(Zr(n,1,e),Tt(n,e));break}}n=n.return}}function _g(e,n,o){var u=e.pingCache;u!==null&&u.delete(n),n=Ct(),e.pingedLanes|=e.suspendedLanes&o,ct===e&&(mt&o)===o&&(lt===4||lt===3&&(mt&130023424)===mt&&500>tt()-Js?sr(e,0):Xs|=o),Tt(e,n)}function sf(e,n){n===0&&((e.mode&1)===0?n=1:(n=ro,ro<<=1,(ro&130023424)===0&&(ro=4194304)));var o=Ct();e=wn(e,n),e!==null&&(Zr(e,n,o),Tt(e,o))}function Og(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),sf(e,o)}function Rg(e,n){var o=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(i(314))}u!==null&&u.delete(n),sf(e,o)}var af;af=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||Et.current)Pt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return Pt=!1,kg(e,n,o);Pt=(e.flags&131072)!==0}else Pt=!1,Xe&&(n.flags&1048576)!==0&&$c(n,No,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;Uo(e,n),e=n.pendingProps;var d=Nr(n,yt.current);_r(n,o),d=Ts(null,n,u,e,d,o);var h=Ls();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Nt(u)?(h=!0,Co(n)):h=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Ss(n),d.updater=Fo,n.stateNode=d,d._reactInternals=n,As(n,u,e,o),n=$s(null,n,u,!0,h,o)):(n.tag=0,Xe&&h&&fs(n),St(null,n,d,o),n=n.child),n;case 16:u=n.elementType;e:{switch(Uo(e,n),e=n.pendingProps,d=u._init,u=d(u._payload),n.type=u,d=n.tag=Ag(u),e=Zt(u,e),d){case 0:n=Fs(null,n,u,e,o);break e;case 1:n=Od(null,n,u,e,o);break e;case 11:n=jd(null,n,u,e,o);break e;case 14:n=Td(null,n,u,Zt(u.type,e),o);break e}throw Error(i(306,u,""))}return n;case 0:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Fs(e,n,u,d,o);case 1:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Od(e,n,u,d,o);case 3:e:{if(Rd(n),e===null)throw Error(i(387));u=n.pendingProps,h=n.memoizedState,d=h.element,Gc(e,n),_o(n,u,null,o);var v=n.memoizedState;if(u=v.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){d=Rr(Error(i(423)),n),n=zd(e,n,u,o,d);break e}else if(u!==d){d=Rr(Error(i(424)),n),n=zd(e,n,u,o,d);break e}else for(Dt=On(n.stateNode.containerInfo.firstChild),Mt=n,Xe=!0,Jt=null,o=Kc(n,null,u,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Tr(),u===d){n=Sn(e,n,o);break e}St(e,n,u,o)}n=n.child}return n;case 5:return Jc(n),e===null&&ms(n),u=n.type,d=n.pendingProps,h=e!==null?e.memoizedProps:null,v=d.children,ls(u,d)?v=null:h!==null&&ls(u,h)&&(n.flags|=32),_d(e,n),St(e,n,v,o),n.child;case 6:return e===null&&ms(n),null;case 13:return Ad(e,n,o);case 4:return Cs(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Lr(n,null,u,o):St(e,n,u,o),n.child;case 11:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),jd(e,n,u,d,o);case 7:return St(e,n,n.pendingProps,o),n.child;case 8:return St(e,n,n.pendingProps.children,o),n.child;case 12:return St(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(u=n.type._context,d=n.pendingProps,h=n.memoizedProps,v=d.value,We(To,u._currentValue),u._currentValue=v,h!==null)if(Xt(h.value,v)){if(h.children===d.children&&!Et.current){n=Sn(e,n,o);break e}}else for(h=n.child,h!==null&&(h.return=n);h!==null;){var b=h.dependencies;if(b!==null){v=h.child;for(var P=b.firstContext;P!==null;){if(P.context===u){if(h.tag===1){P=kn(-1,o&-o),P.tag=2;var A=h.updateQueue;if(A!==null){A=A.shared;var te=A.pending;te===null?P.next=P:(P.next=te.next,te.next=P),A.pending=P}}h.lanes|=o,P=h.alternate,P!==null&&(P.lanes|=o),ws(h.return,o,n),b.lanes|=o;break}P=P.next}}else if(h.tag===10)v=h.type===n.type?null:h.child;else if(h.tag===18){if(v=h.return,v===null)throw Error(i(341));v.lanes|=o,b=v.alternate,b!==null&&(b.lanes|=o),ws(v,o,n),v=h.sibling}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===n){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}St(e,n,d.children,o),n=n.child}return n;case 9:return d=n.type,u=n.pendingProps.children,_r(n,o),d=Wt(d),u=u(d),n.flags|=1,St(e,n,u,o),n.child;case 14:return u=n.type,d=Zt(u,n.pendingProps),d=Zt(u.type,d),Td(e,n,u,d,o);case 15:return Ld(e,n,n.type,n.pendingProps,o);case 17:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Uo(e,n),n.tag=1,Nt(u)?(e=!0,Co(n)):e=!1,_r(n,o),kd(n,u,d),As(n,u,d,o),$s(null,n,u,!0,e,o);case 19:return Dd(e,n,o);case 22:return Id(e,n,o)}throw Error(i(156,n.tag))};function uf(e,n){return Uu(e,n)}function zg(e,n,o,u){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,n,o,u){return new zg(e,n,o,u)}function la(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ag(e){if(typeof e=="function")return la(e)?1:0;if(e!=null){if(e=e.$$typeof,e===M)return 11;if(e===q)return 14}return 2}function Hn(e,n){var o=e.alternate;return o===null?(o=Qt(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Jo(e,n,o,u,d,h){var v=2;if(u=e,typeof e=="function")la(e)&&(v=1);else if(typeof e=="string")v=5;else e:switch(e){case $:return ur(o.children,d,h,n);case J:v=8,d|=8;break;case G:return e=Qt(12,o,n,d|2),e.elementType=G,e.lanes=h,e;case re:return e=Qt(13,o,n,d),e.elementType=re,e.lanes=h,e;case Q:return e=Qt(19,o,n,d),e.elementType=Q,e.lanes=h,e;case fe:return Zo(o,d,h,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:v=10;break e;case se:v=9;break e;case M:v=11;break e;case q:v=14;break e;case de:v=16,u=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Qt(v,o,n,d),n.elementType=e,n.type=u,n.lanes=h,n}function ur(e,n,o,u){return e=Qt(7,e,u,n),e.lanes=o,e}function Zo(e,n,o,u){return e=Qt(22,e,u,n),e.elementType=fe,e.lanes=o,e.stateNode={isHidden:!1},e}function sa(e,n,o){return e=Qt(6,e,null,n),e.lanes=o,e}function aa(e,n,o){return n=Qt(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Mg(e,n,o,u,d){this.tag=n,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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function ua(e,n,o,u,d,h,v,b,P){return e=new Mg(e,n,o,b,P),n===1?(n=1,h===!0&&(n|=8)):n=0,h=Qt(3,null,null,n),e.current=h,h.stateNode=e,h.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ss(h),e}function Dg(e,n,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:u==null?null:""+u,children:e,containerInfo:n,implementation:o}}function cf(e){if(!e)return zn;e=e._reactInternals;e:{if(Xn(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Nt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(Nt(o))return Mc(e,o,n)}return n}function df(e,n,o,u,d,h,v,b,P){return e=ua(o,u,!0,e,d,h,v,b,P),e.context=cf(null),o=e.current,u=Ct(),d=Bn(o),h=kn(u,d),h.callback=n??null,Dn(o,h,d),e.current.lanes=d,Zr(e,d,u),Tt(e,u),e}function el(e,n,o,u){var d=n.current,h=Ct(),v=Bn(d);return o=cf(o),n.context===null?n.context=o:n.pendingContext=o,n=kn(h,v),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=Dn(d,n,v),e!==null&&(nn(e,d,v,h),Io(e,d,v)),v}function tl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ff(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function ca(e,n){ff(e,n),(e=e.alternate)&&ff(e,n)}function Fg(){return null}var pf=typeof reportError=="function"?reportError:function(e){console.error(e)};function da(e){this._internalRoot=e}nl.prototype.render=da.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));el(e,n,null,null)},nl.prototype.unmount=da.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;lr(function(){el(null,e,null,null)}),n[gn]=null}};function nl(e){this._internalRoot=e}nl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Gu();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Ln.length&&n!==0&&n<Ln[o].priority;o++);Ln.splice(o,0,e),o===0&&Ju(e)}};function fa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hf(){}function $g(e,n,o,u,d){if(d){if(typeof u=="function"){var h=u;u=function(){var A=tl(v);h.call(A)}}var v=df(n,u,e,0,null,!1,!1,"",hf);return e._reactRootContainer=v,e[gn]=v.current,pi(e.nodeType===8?e.parentNode:e),lr(),v}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var b=u;u=function(){var A=tl(P);b.call(A)}}var P=ua(e,0,!1,null,null,!1,!1,"",hf);return e._reactRootContainer=P,e[gn]=P.current,pi(e.nodeType===8?e.parentNode:e),lr(function(){el(n,P,o,u)}),P}function il(e,n,o,u,d){var h=o._reactRootContainer;if(h){var v=h;if(typeof d=="function"){var b=d;d=function(){var P=tl(v);b.call(P)}}el(n,v,e,d)}else v=$g(o,n,e,d,u);return tl(v)}Ku=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Jr(n.pendingLanes);o!==0&&(Al(n,o|1),Tt(n,tt()),(De&6)===0&&(Mr=tt()+500,An()))}break;case 13:lr(function(){var u=wn(e,1);if(u!==null){var d=Ct();nn(u,e,1,d)}}),ca(e,1)}},Ml=function(e){if(e.tag===13){var n=wn(e,134217728);if(n!==null){var o=Ct();nn(n,e,134217728,o)}ca(e,134217728)}},Qu=function(e){if(e.tag===13){var n=Bn(e),o=wn(e,n);if(o!==null){var u=Ct();nn(o,e,n,u)}ca(e,n)}},Gu=function(){return Be},Yu=function(e,n){var o=Be;try{return Be=e,n()}finally{Be=o}},Tl=function(e,n,o){switch(n){case"input":if(Ve(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var u=o[n];if(u!==e&&u.form===e.form){var d=ko(u);if(!d)throw Error(i(90));ze(u),Ve(u,d)}}}break;case"textarea":Yi(e,o);break;case"select":n=o.value,n!=null&>(e,!!o.multiple,n,!1)}},Ru=ra,zu=lr;var Ug={usingClientEntryPoint:!1,Events:[gi,br,ko,_u,Ou,ra]},Li={findFiberByHostInstance:Jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bg={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fu(e),e===null?null:e.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||Fg,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 ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{to=ol.inject(Bg),on=ol}catch{}}return Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ug,Lt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fa(n))throw Error(i(200));return Dg(e,n,null,o)},Lt.createRoot=function(e,n){if(!fa(e))throw Error(i(299));var o=!1,u="",d=pf;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=ua(e,1,!1,null,null,o,!1,u,d),e[gn]=n.current,pi(e.nodeType===8?e.parentNode:e),new da(n)},Lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=Fu(n),e=e===null?null:e.stateNode,e},Lt.flushSync=function(e){return lr(e)},Lt.hydrate=function(e,n,o){if(!rl(n))throw Error(i(200));return il(null,e,n,!0,o)},Lt.hydrateRoot=function(e,n,o){if(!fa(e))throw Error(i(405));var u=o!=null&&o.hydratedSources||null,d=!1,h="",v=pf;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),n=df(n,null,e,1,o??null,d,!1,h,v),e[gn]=n.current,pi(e),u)for(e=0;e<u.length;e++)o=u[e],d=o._getVersion,d=d(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,d]:n.mutableSourceEagerHydrationData.push(o,d);return new nl(n)},Lt.render=function(e,n,o){if(!rl(n))throw Error(i(200));return il(null,e,n,!1,o)},Lt.unmountComponentAtNode=function(e){if(!rl(e))throw Error(i(40));return e._reactRootContainer?(lr(function(){il(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1},Lt.unstable_batchedUpdates=ra,Lt.unstable_renderSubtreeIntoContainer=function(e,n,o,u){if(!rl(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return il(e,n,o,!1,u)},Lt.version="18.3.1-next-f1338f8080-20240426",Lt}var Sf;function Xg(){if(Sf)return ma.exports;Sf=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),ma.exports=Yg(),ma.exports}var Cf;function Jg(){if(Cf)return ll;Cf=1;var t=Xg();return ll.createRoot=t.createRoot,ll.hydrateRoot=t.hydrateRoot,ll}var Zg=Jg();const ey=vl(Zg),Te=t=>typeof t=="string",_i=()=>{let t,r;const i=new Promise((l,s)=>{t=l,r=s});return i.resolve=t,i.reject=r,i},bf=t=>t==null?"":""+t,ty=(t,r,i)=>{t.forEach(l=>{r[l]&&(i[l]=r[l])})},ny=/###/g,Ef=t=>t&&t.indexOf("###")>-1?t.replace(ny,"."):t,Nf=t=>!t||Te(t),$i=(t,r,i)=>{const l=Te(r)?r.split("."):r;let s=0;for(;s<l.length-1;){if(Nf(t))return{};const a=Ef(l[s]);!t[a]&&i&&(t[a]=new i),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++s}return Nf(t)?{}:{obj:t,k:Ef(l[s])}},Pf=(t,r,i)=>{const{obj:l,k:s}=$i(t,r,Object);if(l!==void 0||r.length===1){l[s]=i;return}let a=r[r.length-1],c=r.slice(0,r.length-1),f=$i(t,c,Object);for(;f.obj===void 0&&c.length;)a=`${c[c.length-1]}.${a}`,c=c.slice(0,c.length-1),f=$i(t,c,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${a}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${a}`]=i},ry=(t,r,i,l)=>{const{obj:s,k:a}=$i(t,r,Object);s[a]=s[a]||[],s[a].push(i)},pl=(t,r)=>{const{obj:i,k:l}=$i(t,r);if(i&&Object.prototype.hasOwnProperty.call(i,l))return i[l]},iy=(t,r,i)=>{const l=pl(t,i);return l!==void 0?l:pl(r,i)},Wp=(t,r,i)=>{for(const l in r)l!=="__proto__"&&l!=="constructor"&&(l in t?Te(t[l])||t[l]instanceof String||Te(r[l])||r[l]instanceof String?i&&(t[l]=r[l]):Wp(t[l],r[l],i):t[l]=r[l]);return t},Fr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var oy={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ly=t=>Te(t)?t.replace(/[&<>"'\/]/g,r=>oy[r]):t;class sy{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){const i=this.regExpMap.get(r);if(i!==void 0)return i;const l=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,l),this.regExpQueue.push(r),l}}const ay=[" ",",","?","!",";"],uy=new sy(20),cy=(t,r,i)=>{r=r||"",i=i||"";const l=ay.filter(c=>r.indexOf(c)<0&&i.indexOf(c)<0);if(l.length===0)return!0;const s=uy.getRegExp(`(${l.map(c=>c==="?"?"\\?":c).join("|")})`);let a=!s.test(t);if(!a){const c=t.indexOf(i);c>0&&!s.test(t.substring(0,c))&&(a=!0)}return a},$a=(t,r,i=".")=>{if(!t)return;if(t[r])return Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;const l=r.split(i);let s=t;for(let a=0;a<l.length;){if(!s||typeof s!="object")return;let c,f="";for(let p=a;p<l.length;++p)if(p!==a&&(f+=i),f+=l[p],c=s[f],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&p<l.length-1)continue;a+=p-a+1;break}s=c}return s},Wi=t=>t==null?void 0:t.replace("_","-"),dy={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,r){var i,l;(l=(i=console==null?void 0:console[t])==null?void 0:i.apply)==null||l.call(i,console,r)}};class hl{constructor(r,i={}){this.init(r,i)}init(r,i={}){this.prefix=i.prefix||"i18next:",this.logger=r||dy,this.options=i,this.debug=i.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,i,l,s){return s&&!this.debug?null:(Te(r[0])&&(r[0]=`${l}${this.prefix} ${r[0]}`),this.logger[i](r))}create(r){return new hl(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new hl(this.logger,r)}}var fn=new hl;class kl{constructor(){this.observers={}}on(r,i){return r.split(" ").forEach(l=>{this.observers[l]||(this.observers[l]=new Map);const s=this.observers[l].get(i)||0;this.observers[l].set(i,s+1)}),this}off(r,i){if(this.observers[r]){if(!i){delete this.observers[r];return}this.observers[r].delete(i)}}emit(r,...i){this.observers[r]&&Array.from(this.observers[r].entries()).forEach(([s,a])=>{for(let c=0;c<a;c++)s(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,a])=>{for(let c=0;c<a;c++)s.apply(s,[r,...i])})}}class jf extends kl{constructor(r,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){const i=this.options.ns.indexOf(r);i>-1&&this.options.ns.splice(i,1)}getResource(r,i,l,s={}){var m,g;const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;r.indexOf(".")>-1?f=r.split("."):(f=[r,i],l&&(Array.isArray(l)?f.push(...l):Te(l)&&a?f.push(...l.split(a)):f.push(l)));const p=pl(this.data,f);return!p&&!i&&!l&&r.indexOf(".")>-1&&(r=f[0],i=f[1],l=f.slice(2).join(".")),p||!c||!Te(l)?p:$a((g=(m=this.data)==null?void 0:m[r])==null?void 0:g[i],l,a)}addResource(r,i,l,s,a={silent:!1}){const c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let f=[r,i];l&&(f=f.concat(c?l.split(c):l)),r.indexOf(".")>-1&&(f=r.split("."),s=i,i=f[1]),this.addNamespaces(i),Pf(this.data,f,s),a.silent||this.emit("added",r,i,l,s)}addResources(r,i,l,s={silent:!1}){for(const a in l)(Te(l[a])||Array.isArray(l[a]))&&this.addResource(r,i,a,l[a],{silent:!0});s.silent||this.emit("added",r,i,l)}addResourceBundle(r,i,l,s,a,c={silent:!1,skipCopy:!1}){let f=[r,i];r.indexOf(".")>-1&&(f=r.split("."),s=l,l=i,i=f[1]),this.addNamespaces(i);let p=pl(this.data,f)||{};c.skipCopy||(l=JSON.parse(JSON.stringify(l))),s?Wp(p,l,a):p={...p,...l},Pf(this.data,f,p),c.silent||this.emit("added",r,i,l)}removeResourceBundle(r,i){this.hasResourceBundle(r,i)&&delete this.data[r][i],this.removeNamespaces(i),this.emit("removed",r,i)}hasResourceBundle(r,i){return this.getResource(r,i)!==void 0}getResourceBundle(r,i){return i||(i=this.options.defaultNS),this.getResource(r,i)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){const i=this.getDataByLanguage(r);return!!(i&&Object.keys(i)||[]).find(s=>i[s]&&Object.keys(i[s]).length>0)}toJSON(){return this.data}}var qp={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,r,i,l,s){return t.forEach(a=>{var c;r=((c=this.processors[a])==null?void 0:c.process(r,i,l,s))??r}),r}};const Kp=Symbol("i18next/PATH_KEY");function fy(){const t=[],r=Object.create(null);let i;return r.get=(l,s)=>{var a;return(a=i==null?void 0:i.revoke)==null||a.call(i),s===Kp?t:(t.push(s),i=Proxy.revocable(l,r),i.proxy)},Proxy.revocable(Object.create(null),r).proxy}function Ua(t,r){const{[Kp]:i}=t(fy());return i.join((r==null?void 0:r.keySeparator)??".")}const Tf={},xa=t=>!Te(t)&&typeof t!="boolean"&&typeof t!="number";class ml extends kl{constructor(r,i={}){super(),ty(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=fn.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r,i={interpolation:{}}){const l={...i};if(r==null)return!1;const s=this.resolve(r,l);if((s==null?void 0:s.res)===void 0)return!1;const a=xa(s.res);return!(l.returnObjects===!1&&a)}extractFromKey(r,i){let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=i.ns||this.options.defaultNS||[];const c=l&&r.indexOf(l)>-1,f=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!cy(r,l,s);if(c&&!f){const p=r.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:r,namespaces:Te(a)?[a]:a};const m=r.split(l);(l!==s||l===s&&this.options.ns.indexOf(m[0])>-1)&&(a=m.shift()),r=m.join(s)}return{key:r,namespaces:Te(a)?[a]:a}}translate(r,i,l){let s=typeof i=="object"?{...i}:i;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),r==null)return"";typeof r=="function"&&(r=Ua(r,{...this.options,...s})),Array.isArray(r)||(r=[String(r)]);const a=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:f,namespaces:p}=this.extractFromKey(r[r.length-1],s),m=p[p.length-1];let g=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const y=s.lng||this.language,w=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((y==null?void 0:y.toLowerCase())==="cimode")return w?a?{res:`${m}${g}${f}`,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:`${m}${g}${f}`:a?{res:f,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:f;const x=this.resolve(r,s);let N=x==null?void 0:x.res;const L=(x==null?void 0:x.usedKey)||f,_=(x==null?void 0:x.exactUsedKey)||f,j=["[object Number]","[object Function]","[object RegExp]"],V=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,B=s.count!==void 0&&!Te(s.count),H=ml.hasDefaultValue(s),I=B?this.pluralResolver.getSuffix(y,s.count,s):"",$=s.ordinal&&B?this.pluralResolver.getSuffix(y,s.count,{ordinal:!1}):"",J=B&&!s.ordinal&&s.count===0,G=J&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${I}`]||s[`defaultValue${$}`]||s.defaultValue;let Y=N;F&&!N&&H&&(Y=G);const se=xa(Y),M=Object.prototype.toString.apply(Y);if(F&&Y&&se&&j.indexOf(M)<0&&!(Te(V)&&Array.isArray(Y))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(L,Y,{...s,ns:p}):`key '${f} (${this.language})' returned an object instead of string.`;return a?(x.res=re,x.usedParams=this.getUsedParamsDetails(s),x):re}if(c){const re=Array.isArray(Y),Q=re?[]:{},q=re?_:L;for(const de in Y)if(Object.prototype.hasOwnProperty.call(Y,de)){const fe=`${q}${c}${de}`;H&&!N?Q[de]=this.translate(fe,{...s,defaultValue:xa(G)?G[de]:void 0,joinArrays:!1,ns:p}):Q[de]=this.translate(fe,{...s,joinArrays:!1,ns:p}),Q[de]===fe&&(Q[de]=Y[de])}N=Q}}else if(F&&Te(V)&&Array.isArray(N))N=N.join(V),N&&(N=this.extendTranslation(N,r,s,l));else{let re=!1,Q=!1;!this.isValidLookup(N)&&H&&(re=!0,N=G),this.isValidLookup(N)||(Q=!0,N=f);const de=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:N,fe=H&&G!==N&&this.options.updateMissing;if(Q||re||fe){if(this.logger.log(fe?"updateKey":"missingKey",y,m,f,fe?G:N),c){const E=this.resolve(f,{...s,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ee=[];const ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ue&&ue[0])for(let E=0;E<ue.length;E++)ee.push(ue[E]);else this.options.saveMissingTo==="all"?ee=this.languageUtils.toResolveHierarchy(s.lng||this.language):ee.push(s.lng||this.language);const S=(E,D,C)=>{var Ee;const Se=H&&C!==N?C:de;this.options.missingKeyHandler?this.options.missingKeyHandler(E,m,D,Se,fe,s):(Ee=this.backendConnector)!=null&&Ee.saveMissing&&this.backendConnector.saveMissing(E,m,D,Se,fe,s),this.emit("missingKey",E,m,D,N)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?ee.forEach(E=>{const D=this.pluralResolver.getSuffixes(E,s);J&&s[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(C=>{S([E],f+C,s[`defaultValue${C}`]||G)})}):S(ee,f,G))}N=this.extendTranslation(N,r,s,x,l),Q&&N===f&&this.options.appendNamespaceToMissingKey&&(N=`${m}${g}${f}`),(Q||re)&&this.options.parseMissingKeyHandler&&(N=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${f}`:f,re?N:void 0,s))}return a?(x.res=N,x.usedParams=this.getUsedParamsDetails(s),x):N}extendTranslation(r,i,l,s,a){var p,m;if((p=this.i18nFormat)!=null&&p.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...l},l.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init({...l,interpolation:{...this.options.interpolation,...l.interpolation}});const g=Te(r)&&(((m=l==null?void 0:l.interpolation)==null?void 0:m.skipOnVariables)!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(g){const x=r.match(this.interpolator.nestingRegexp);y=x&&x.length}let w=l.replace&&!Te(l.replace)?l.replace:l;if(this.options.interpolation.defaultVariables&&(w={...this.options.interpolation.defaultVariables,...w}),r=this.interpolator.interpolate(r,w,l.lng||this.language||s.usedLng,l),g){const x=r.match(this.interpolator.nestingRegexp),N=x&&x.length;y<N&&(l.nest=!1)}!l.lng&&s&&s.res&&(l.lng=this.language||s.usedLng),l.nest!==!1&&(r=this.interpolator.nest(r,(...x)=>(a==null?void 0:a[0])===x[0]&&!l.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${i[0]}`),null):this.translate(...x,i),l)),l.interpolation&&this.interpolator.reset()}const c=l.postProcess||this.options.postProcess,f=Te(c)?[c]:c;return r!=null&&(f!=null&&f.length)&&l.applyPostProcessor!==!1&&(r=qp.handle(f,r,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(l)},...l}:l,this)),r}resolve(r,i={}){let l,s,a,c,f;return Te(r)&&(r=[r]),r.forEach(p=>{if(this.isValidLookup(l))return;const m=this.extractFromKey(p,i),g=m.key;s=g;let y=m.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const w=i.count!==void 0&&!Te(i.count),x=w&&!i.ordinal&&i.count===0,N=i.context!==void 0&&(Te(i.context)||typeof i.context=="number")&&i.context!=="",L=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);y.forEach(_=>{var j,V;this.isValidLookup(l)||(f=_,!Tf[`${L[0]}-${_}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((V=this.utils)!=null&&V.hasLoadedNamespace(f))&&(Tf[`${L[0]}-${_}`]=!0,this.logger.warn(`key "${s}" for languages "${L.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),L.forEach(F=>{var I;if(this.isValidLookup(l))return;c=F;const B=[g];if((I=this.i18nFormat)!=null&&I.addLookupKeys)this.i18nFormat.addLookupKeys(B,g,F,_,i);else{let $;w&&($=this.pluralResolver.getSuffix(F,i.count,i));const J=`${this.options.pluralSeparator}zero`,G=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(i.ordinal&&$.indexOf(G)===0&&B.push(g+$.replace(G,this.options.pluralSeparator)),B.push(g+$),x&&B.push(g+J)),N){const Y=`${g}${this.options.contextSeparator||"_"}${i.context}`;B.push(Y),w&&(i.ordinal&&$.indexOf(G)===0&&B.push(Y+$.replace(G,this.options.pluralSeparator)),B.push(Y+$),x&&B.push(Y+J))}}let H;for(;H=B.pop();)this.isValidLookup(l)||(a=H,l=this.getResource(F,_,H,i))}))})}),{res:l,usedKey:s,exactUsedKey:a,usedLng:c,usedNS:f}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,i,l,s={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(r,i,l,s):this.resourceStore.getResource(r,i,l,s)}getUsedParamsDetails(r={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],l=r.replace&&!Te(r.replace);let s=l?r.replace:r;if(l&&typeof r.count<"u"&&(s.count=r.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!l){s={...s};for(const a of i)delete s[a]}return s}static hasDefaultValue(r){const i="defaultValue";for(const l in r)if(Object.prototype.hasOwnProperty.call(r,l)&&i===l.substring(0,i.length)&&r[l]!==void 0)return!0;return!1}}class Lf{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fn.create("languageUtils")}getScriptPartFromCode(r){if(r=Wi(r),!r||r.indexOf("-")<0)return null;const i=r.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(r){if(r=Wi(r),!r||r.indexOf("-")<0)return r;const i=r.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(r){if(Te(r)&&r.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(r)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let i;return r.forEach(l=>{if(i)return;const s=this.formatLanguageCode(l);(!this.options.supportedLngs||this.isSupportedCode(s))&&(i=s)}),!i&&this.options.supportedLngs&&r.forEach(l=>{if(i)return;const s=this.getScriptPartFromCode(l);if(this.isSupportedCode(s))return i=s;const a=this.getLanguagePartFromCode(l);if(this.isSupportedCode(a))return i=a;i=this.options.supportedLngs.find(c=>{if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&(c.indexOf("-")>0&&a.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===a||c.indexOf(a)===0&&a.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(r,i){if(!r)return[];if(typeof r=="function"&&(r=r(i)),Te(r)&&(r=[r]),Array.isArray(r))return r;if(!i)return r.default||[];let l=r[i];return l||(l=r[this.getScriptPartFromCode(i)]),l||(l=r[this.formatLanguageCode(i)]),l||(l=r[this.getLanguagePartFromCode(i)]),l||(l=r.default),l||[]}toResolveHierarchy(r,i){const l=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],r),s=[],a=c=>{c&&(this.isSupportedCode(c)?s.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Te(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(r))):Te(r)&&a(this.formatLanguageCode(r)),l.forEach(c=>{s.indexOf(c)<0&&a(this.formatLanguageCode(c))}),s}}const If={zero:0,one:1,two:2,few:3,many:4,other:5},_f={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class py{constructor(r,i={}){this.languageUtils=r,this.options=i,this.logger=fn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,i={}){const l=Wi(r==="dev"?"en":r),s=i.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:l,type:s});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let c;try{c=new Intl.PluralRules(l,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),_f;if(!r.match(/-|_/))return _f;const p=this.languageUtils.getLanguagePartFromCode(r);c=this.getRule(p,i)}return this.pluralRulesCache[a]=c,c}needsPlural(r,i={}){let l=this.getRule(r,i);return l||(l=this.getRule("dev",i)),(l==null?void 0:l.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(r,i,l={}){return this.getSuffixes(r,l).map(s=>`${i}${s}`)}getSuffixes(r,i={}){let l=this.getRule(r,i);return l||(l=this.getRule("dev",i)),l?l.resolvedOptions().pluralCategories.sort((s,a)=>If[s]-If[a]).map(s=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(r,i,l={}){const s=this.getRule(r,l);return s?`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${s.select(i)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",i,l))}}const Of=(t,r,i,l=".",s=!0)=>{let a=iy(t,r,i);return!a&&s&&Te(i)&&(a=$a(t,i,l),a===void 0&&(a=$a(r,i,l))),a},va=t=>t.replace(/\$/g,"$$$$");class Rf{constructor(r={}){var i;this.logger=fn.create("interpolator"),this.options=r,this.format=((i=r==null?void 0:r.interpolation)==null?void 0:i.format)||(l=>l),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});const{escape:i,escapeValue:l,useRawValueToEscape:s,prefix:a,prefixEscaped:c,suffix:f,suffixEscaped:p,formatSeparator:m,unescapeSuffix:g,unescapePrefix:y,nestingPrefix:w,nestingPrefixEscaped:x,nestingSuffix:N,nestingSuffixEscaped:L,nestingOptionsSeparator:_,maxReplaces:j,alwaysFormat:V}=r.interpolation;this.escape=i!==void 0?i:ly,this.escapeValue=l!==void 0?l:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=a?Fr(a):c||"{{",this.suffix=f?Fr(f):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=w?Fr(w):x||Fr("$t("),this.nestingSuffix=N?Fr(N):L||Fr(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=j||1e3,this.alwaysFormat=V!==void 0?V:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const r=(i,l)=>(i==null?void 0:i.source)===l?(i.lastIndex=0,i):new RegExp(l,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,i,l,s){var x;let a,c,f;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=N=>{if(N.indexOf(this.formatSeparator)<0){const V=Of(i,p,N,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(V,void 0,l,{...s,...i,interpolationkey:N}):V}const L=N.split(this.formatSeparator),_=L.shift().trim(),j=L.join(this.formatSeparator).trim();return this.format(Of(i,p,_,this.options.keySeparator,this.options.ignoreJSONStructure),j,l,{...s,...i,interpolationkey:_})};this.resetRegExp();const g=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,y=((x=s==null?void 0:s.interpolation)==null?void 0:x.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:N=>va(N)},{regex:this.regexp,safeValue:N=>this.escapeValue?va(this.escape(N)):va(N)}].forEach(N=>{for(f=0;a=N.regex.exec(r);){const L=a[1].trim();if(c=m(L),c===void 0)if(typeof g=="function"){const j=g(r,a,s);c=Te(j)?j:""}else if(s&&Object.prototype.hasOwnProperty.call(s,L))c="";else if(y){c=a[0];continue}else this.logger.warn(`missed to pass in variable ${L} for interpolating ${r}`),c="";else!Te(c)&&!this.useRawValueToEscape&&(c=bf(c));const _=N.safeValue(c);if(r=r.replace(a[0],_),y?(N.regex.lastIndex+=c.length,N.regex.lastIndex-=a[0].length):N.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),r}nest(r,i,l={}){let s,a,c;const f=(p,m)=>{const g=this.nestingOptionsSeparator;if(p.indexOf(g)<0)return p;const y=p.split(new RegExp(`${g}[ ]*{`));let w=`{${y[1]}`;p=y[0],w=this.interpolate(w,c);const x=w.match(/'/g),N=w.match(/"/g);(((x==null?void 0:x.length)??0)%2===0&&!N||N.length%2!==0)&&(w=w.replace(/'/g,'"'));try{c=JSON.parse(w),m&&(c={...m,...c})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,L),`${p}${g}${w}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,p};for(;s=this.nestingRegexp.exec(r);){let p=[];c={...l},c=c.replace&&!Te(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const m=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(m!==-1&&(p=s[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),s[1]=s[1].slice(0,m)),a=i(f.call(this,s[1].trim(),c),c),a&&s[0]===r&&!Te(a))return a;Te(a)||(a=bf(a)),a||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${r}`),a=""),p.length&&(a=p.reduce((g,y)=>this.format(g,y,l.lng,{...l,interpolationkey:s[1].trim()}),a.trim())),r=r.replace(s[0],a),this.regexp.lastIndex=0}return r}}const hy=t=>{let r=t.toLowerCase().trim();const i={};if(t.indexOf("(")>-1){const l=t.split("(");r=l[0].toLowerCase().trim();const s=l[1].substring(0,l[1].length-1);r==="currency"&&s.indexOf(":")<0?i.currency||(i.currency=s.trim()):r==="relativetime"&&s.indexOf(":")<0?i.range||(i.range=s.trim()):s.split(";").forEach(c=>{if(c){const[f,...p]=c.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();i[g]||(i[g]=m),m==="false"&&(i[g]=!1),m==="true"&&(i[g]=!0),isNaN(m)||(i[g]=parseInt(m,10))}})}return{formatName:r,formatOptions:i}},zf=t=>{const r={};return(i,l,s)=>{let a=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(a={...a,[s.interpolationkey]:void 0});const c=l+JSON.stringify(a);let f=r[c];return f||(f=t(Wi(l),s),r[c]=f),f(i)}},my=t=>(r,i,l)=>t(Wi(i),l)(r);class gy{constructor(r={}){this.logger=fn.create("formatter"),this.options=r,this.init(r)}init(r,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const l=i.cacheInBuiltFormats?zf:my;this.formats={number:l((s,a)=>{const c=new Intl.NumberFormat(s,{...a});return f=>c.format(f)}),currency:l((s,a)=>{const c=new Intl.NumberFormat(s,{...a,style:"currency"});return f=>c.format(f)}),datetime:l((s,a)=>{const c=new Intl.DateTimeFormat(s,{...a});return f=>c.format(f)}),relativetime:l((s,a)=>{const c=new Intl.RelativeTimeFormat(s,{...a});return f=>c.format(f,a.range||"day")}),list:l((s,a)=>{const c=new Intl.ListFormat(s,{...a});return f=>c.format(f)})}}add(r,i){this.formats[r.toLowerCase().trim()]=i}addCached(r,i){this.formats[r.toLowerCase().trim()]=zf(i)}format(r,i,l,s={}){const a=i.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(f=>f.indexOf(")")>-1)){const f=a.findIndex(p=>p.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,f)].join(this.formatSeparator)}return a.reduce((f,p)=>{var y;const{formatName:m,formatOptions:g}=hy(p);if(this.formats[m]){let w=f;try{const x=((y=s==null?void 0:s.formatParams)==null?void 0:y[s.interpolationkey])||{},N=x.locale||x.lng||s.locale||s.lng||l;w=this.formats[m](f,N,{...g,...s,...x})}catch(x){this.logger.warn(x)}return w}else this.logger.warn(`there was no format function for ${m}`);return f},r)}}const yy=(t,r)=>{t.pending[r]!==void 0&&(delete t.pending[r],t.pendingCount--)};class xy extends kl{constructor(r,i,l,s={}){var a,c;super(),this.backend=r,this.store=i,this.services=l,this.languageUtils=l.languageUtils,this.options=s,this.logger=fn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(c=(a=this.backend)==null?void 0:a.init)==null||c.call(a,l,s.backend,s)}queueLoad(r,i,l,s){const a={},c={},f={},p={};return r.forEach(m=>{let g=!0;i.forEach(y=>{const w=`${m}|${y}`;!l.reload&&this.store.hasResourceBundle(m,y)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?c[w]===void 0&&(c[w]=!0):(this.state[w]=1,g=!1,c[w]===void 0&&(c[w]=!0),a[w]===void 0&&(a[w]=!0),p[y]===void 0&&(p[y]=!0)))}),g||(f[m]=!0)}),(Object.keys(a).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(a),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}loaded(r,i,l){const s=r.split("|"),a=s[0],c=s[1];i&&this.emit("failedLoading",a,c,i),!i&&l&&this.store.addResourceBundle(a,c,l,void 0,void 0,{skipCopy:!0}),this.state[r]=i?-1:2,i&&l&&(this.state[r]=0);const f={};this.queue.forEach(p=>{ry(p.loaded,[a],c),yy(p,r),i&&p.errors.push(i),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{f[m]||(f[m]={});const g=p.loaded[m];g.length&&g.forEach(y=>{f[m][y]===void 0&&(f[m][y]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(p=>!p.done)}read(r,i,l,s=0,a=this.retryTimeout,c){if(!r.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:i,fcName:l,tried:s,wait:a,callback:c});return}this.readingCalls++;const f=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(m&&g&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,r,i,l,s+1,a*2,c)},a);return}c(m,g)},p=this.backend[l].bind(this.backend);if(p.length===2){try{const m=p(r,i);m&&typeof m.then=="function"?m.then(g=>f(null,g)).catch(f):f(null,m)}catch(m){f(m)}return}return p(r,i,f)}prepareLoading(r,i,l={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();Te(r)&&(r=this.languageUtils.toResolveHierarchy(r)),Te(i)&&(i=[i]);const a=this.queueLoad(r,i,l,s);if(!a.toLoad.length)return a.pending.length||s(),null;a.toLoad.forEach(c=>{this.loadOne(c)})}load(r,i,l){this.prepareLoading(r,i,{},l)}reload(r,i,l){this.prepareLoading(r,i,{reload:!0},l)}loadOne(r,i=""){const l=r.split("|"),s=l[0],a=l[1];this.read(s,a,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${i}loading namespace ${a} for language ${s} failed`,c),!c&&f&&this.logger.log(`${i}loaded namespace ${a} for language ${s}`,f),this.loaded(r,c,f)})}saveMissing(r,i,l,s,a,c={},f=()=>{}){var p,m,g,y,w;if((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace&&!((y=(g=this.services)==null?void 0:g.utils)!=null&&y.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${l}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if((w=this.backend)!=null&&w.create){const x={...c,isUpdate:a},N=this.backend.create.bind(this.backend);if(N.length<6)try{let L;N.length===5?L=N(r,i,l,s,x):L=N(r,i,l,s),L&&typeof L.then=="function"?L.then(_=>f(null,_)).catch(f):f(null,L)}catch(L){f(L)}else N(r,i,l,s,f,x)}!r||!r[0]||this.store.addResource(r[0],i,l,s)}}}const wa=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let r={};if(typeof t[1]=="object"&&(r=t[1]),Te(t[1])&&(r.defaultValue=t[1]),Te(t[2])&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const i=t[3]||t[2];Object.keys(i).forEach(l=>{r[l]=i[l]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Af=t=>{var r,i;return Te(t.ns)&&(t.ns=[t.ns]),Te(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Te(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((i=(r=t.supportedLngs)==null?void 0:r.indexOf)==null?void 0:i.call(r,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},sl=()=>{},vy=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(i=>{typeof t[i]=="function"&&(t[i]=t[i].bind(t))})};class Ui extends kl{constructor(r={},i){if(super(),this.options=Af(r),this.services={},this.logger=fn,this.modules={external:[]},vy(this),i&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,i),this;setTimeout(()=>{this.init(r,i)},0)}}init(r={},i){this.isInitializing=!0,typeof r=="function"&&(i=r,r={}),r.defaultNS==null&&r.ns&&(Te(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const l=wa();this.options={...l,...this.options,...Af(r)},this.options.interpolation={...l.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=l.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?fn.init(s(this.modules.logger),this.options):fn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=gy;const g=new Lf(this.options);this.store=new jf(this.options.resources,this.options);const y=this.services;y.logger=fn,y.resourceStore=this.store,y.languageUtils=g,y.pluralResolver=new py(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==l.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(y.formatter=s(m),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new Rf(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new xy(s(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(x,...N)=>{this.emit(x,...N)}),this.modules.languageDetector&&(y.languageDetector=s(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=s(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new ml(this.services,this.options),this.translator.on("*",(x,...N)=>{this.emit(x,...N)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,i||(i=sl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const f=_i(),p=()=>{const m=(g,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(y),i(g,y)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),f}loadResources(r,i=sl){var a,c;let l=i;const s=Te(r)?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return l();const f=[],p=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(y=>{y!=="cimode"&&f.indexOf(y)<0&&f.push(y)})};s?p(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>p(g)),(c=(a=this.options.preload)==null?void 0:a.forEach)==null||c.call(a,m=>p(m)),this.services.backendConnector.load(f,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),l(m)})}else l(null)}reloadResources(r,i,l){const s=_i();return typeof r=="function"&&(l=r,r=void 0),typeof i=="function"&&(l=i,i=void 0),r||(r=this.languages),i||(i=this.options.ns),l||(l=sl),this.services.backendConnector.reload(r,i,a=>{s.resolve(),l(a)}),s}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&qp.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1)){for(let i=0;i<this.languages.length;i++){const l=this.languages[i];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}!this.resolvedLanguage&&this.languages.indexOf(r)<0&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,i){this.isLanguageChangingTo=r;const l=_i();this.emit("languageChanging",r);const s=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},a=(f,p)=>{p?this.isLanguageChangingTo===r&&(s(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,l.resolve((...m)=>this.t(...m)),i&&i(f,(...m)=>this.t(...m))},c=f=>{var g,y;!r&&!f&&this.services.languageDetector&&(f=[]);const p=Te(f)?f:f&&f[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(Te(f)?[f]:f);m&&(this.language||s(m),this.translator.language||this.translator.changeLanguage(m),(y=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||y.call(g,m)),this.loadResources(m,w=>{a(w,m)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(r),l}getFixedT(r,i,l){const s=(a,c,...f)=>{let p;typeof c!="object"?p=this.options.overloadTranslationOptionHandler([a,c].concat(f)):p={...c},p.lng=p.lng||s.lng,p.lngs=p.lngs||s.lngs,p.ns=p.ns||s.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||l||s.keyPrefix);const m=this.options.keySeparator||".";let g;return p.keyPrefix&&Array.isArray(a)?g=a.map(y=>(typeof y=="function"&&(y=Ua(y,{...this.options,...c})),`${p.keyPrefix}${m}${y}`)):(typeof a=="function"&&(a=Ua(a,{...this.options,...c})),g=p.keyPrefix?`${p.keyPrefix}${m}${a}`:a),this.t(g,p)};return Te(r)?s.lng=r:s.lngs=r,s.ns=i,s.keyPrefix=l,s}t(...r){var i;return(i=this.translator)==null?void 0:i.translate(...r)}exists(...r){var i;return(i=this.translator)==null?void 0:i.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const l=i.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const c=(f,p)=>{const m=this.services.backendConnector.state[`${f}|${p}`];return m===-1||m===0||m===2};if(i.precheck){const f=i.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(l,r)&&(!s||c(a,r)))}loadNamespaces(r,i){const l=_i();return this.options.ns?(Te(r)&&(r=[r]),r.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{l.resolve(),i&&i(s)}),l):(i&&i(),Promise.resolve())}loadLanguages(r,i){const l=_i();Te(r)&&(r=[r]);const s=this.options.preload||[],a=r.filter(c=>s.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return a.length?(this.options.preload=s.concat(a),this.loadResources(c=>{l.resolve(),i&&i(c)}),l):(i&&i(),Promise.resolve())}dir(r){var s,a;if(r||(r=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!r)return"rtl";try{const c=new Intl.Locale(r);if(c&&c.getTextInfo){const f=c.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],l=((a=this.services)==null?void 0:a.languageUtils)||new Lf(wa());return r.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(l.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},i){const l=new Ui(r,i);return l.createInstance=Ui.createInstance,l}cloneInstance(r={},i=sl){const l=r.forkResourceStore;l&&delete r.forkResourceStore;const s={...this.options,...r,isClone:!0},a=new Ui(s);if((r.debug!==void 0||r.prefix!==void 0)&&(a.logger=a.logger.clone(r)),["store","services","language"].forEach(f=>{a[f]=this[f]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},l){const f=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((g,y)=>(g[y]={...p[m][y]},g),p[m]),p),{});a.store=new jf(f,s),a.services.resourceStore=a.store}if(r.interpolation){const p={...wa().interpolation,...this.options.interpolation,...r.interpolation},m={...s,interpolation:p};a.services.interpolator=new Rf(m)}return a.translator=new ml(a.services,s),a.translator.on("*",(f,...p)=>{a.emit(f,...p)}),a.init(s,i),a.translator.options=s,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const bt=Ui.createInstance();bt.createInstance;bt.dir;bt.init;bt.loadResources;bt.reloadResources;bt.use;bt.changeLanguage;bt.getFixedT;bt.t;bt.exists;bt.setDefaultNamespace;bt.hasLoadedNamespace;bt.loadNamespaces;bt.loadLanguages;const wy=(t,r,i,l)=>{var a,c,f,p;const s=[i,{code:r,...l||{}}];if((c=(a=t==null?void 0:t.services)==null?void 0:a.logger)!=null&&c.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);dr(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(p=(f=t==null?void 0:t.services)==null?void 0:f.logger)!=null&&p.warn?t.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Mf={},Qp=(t,r,i,l)=>{dr(i)&&Mf[i]||(dr(i)&&(Mf[i]=new Date),wy(t,r,i,l))},Gp=(t,r)=>()=>{if(t.isInitialized)r();else{const i=()=>{setTimeout(()=>{t.off("initialized",i)},0),r()};t.on("initialized",i)}},Ba=(t,r,i)=>{t.loadNamespaces(r,Gp(t,i))},Df=(t,r,i,l)=>{if(dr(i)&&(i=[i]),t.options.preload&&t.options.preload.indexOf(r)>-1)return Ba(t,i,l);i.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(r,Gp(t,l))},ky=(t,r,i={})=>!r.languages||!r.languages.length?(Qp(r,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:r.languages}),!0):r.hasLoadedNamespace(t,{lng:i.lng,precheck:(l,s)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!s(l.isLanguageChangingTo,t))return!1}}),dr=t=>typeof t=="string",Sy=t=>typeof t=="object"&&t!==null,Cy=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,by={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ey=t=>by[t],Ny=t=>t.replace(Cy,Ey);let Va={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ny,transDefaultProps:void 0};const Py=(t={})=>{Va={...Va,...t}},jy=()=>Va;let Yp;const Ty=t=>{Yp=t},Ly=()=>Yp,Iy={type:"3rdParty",init(t){Py(t.options.react),Ty(t)}},_y=R.createContext();class Oy{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var ka={exports:{}},Sa={};/**
|
|
40
|
+
`+h.stack}return{value:e,source:n,stack:d,digest:null}}function Ms(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Ds(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var wg=typeof WeakMap=="function"?WeakMap:Map;function Cd(e,n,o){o=kn(-1,o),o.tag=3,o.payload={element:null};var u=n.value;return o.callback=function(){qo||(qo=!0,Zs=u),Ds(e,n)},o}function bd(e,n,o){o=kn(-1,o),o.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=n.value;o.payload=function(){return u(d)},o.callback=function(){Ds(e,n)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){Ds(e,n),typeof u!="function"&&($n===null?$n=new Set([this]):$n.add(this));var v=n.stack;this.componentDidCatch(n.value,{componentStack:v!==null?v:""})}),o}function Ed(e,n,o){var u=e.pingCache;if(u===null){u=e.pingCache=new wg;var d=new Set;u.set(n,d)}else d=u.get(n),d===void 0&&(d=new Set,u.set(n,d));d.has(o)||(d.add(o),e=Rg.bind(null,e,n,o),n.then(e,e))}function Nd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function jd(e,n,o,u,d){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=kn(-1,1),n.tag=2,Dn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var kg=U.ReactCurrentOwner,jt=!1;function St(e,n,o,u){n.child=e===null?Kc(n,null,o,u):Lr(n,e.child,o,u)}function Pd(e,n,o,u,d){o=o.render;var h=n.ref;return _r(n,d),u=Ts(e,n,o,u,h,d),o=Ls(),e!==null&&!jt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Sn(e,n,d)):(Xe&&o&&fs(n),n.flags|=1,St(e,n,u,d),n.child)}function Td(e,n,o,u,d){if(e===null){var h=o.type;return typeof h=="function"&&!la(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=h,Ld(e,n,h,u,d)):(e=Jo(o.type,null,u,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,(e.lanes&d)===0){var v=h.memoizedProps;if(o=o.compare,o=o!==null?o:ci,o(v,u)&&e.ref===n.ref)return Sn(e,n,d)}return n.flags|=1,e=Hn(h,u),e.ref=n.ref,e.return=n,n.child=e}function Ld(e,n,o,u,d){if(e!==null){var h=e.memoizedProps;if(ci(h,u)&&e.ref===n.ref)if(jt=!1,n.pendingProps=u=h,(e.lanes&d)!==0)(e.flags&131072)!==0&&(jt=!0);else return n.lanes=e.lanes,Sn(e,n,d)}return Fs(e,n,o,u,d)}function Id(e,n,o){var u=n.pendingProps,d=u.children,h=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(Ar,Ft),Ft|=o;else{if((o&1073741824)===0)return e=h!==null?h.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,We(Ar,Ft),Ft|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=h!==null?h.baseLanes:o,We(Ar,Ft),Ft|=u}else h!==null?(u=h.baseLanes|o,n.memoizedState=null):u=o,We(Ar,Ft),Ft|=u;return St(e,n,d,o),n.child}function _d(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Fs(e,n,o,u,d){var h=Nt(o)?Zn:yt.current;return h=Nr(n,h),_r(n,d),o=Ts(e,n,o,u,h,d),u=Ls(),e!==null&&!jt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Sn(e,n,d)):(Xe&&u&&fs(n),n.flags|=1,St(e,n,o,d),n.child)}function Od(e,n,o,u,d){if(Nt(o)){var h=!0;Co(n)}else h=!1;if(_r(n,d),n.stateNode===null)Uo(e,n),kd(n,o,u),As(n,o,u,d),u=!0;else if(e===null){var v=n.stateNode,E=n.memoizedProps;v.props=E;var P=v.context,A=o.contextType;typeof A=="object"&&A!==null?A=Wt(A):(A=Nt(o)?Zn:yt.current,A=Nr(n,A));var te=o.getDerivedStateFromProps,ne=typeof te=="function"||typeof v.getSnapshotBeforeUpdate=="function";ne||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==u||P!==A)&&Sd(n,v,u,A),Mn=!1;var Z=n.memoizedState;v.state=Z,_o(n,u,v,d),P=n.memoizedState,E!==u||Z!==P||Et.current||Mn?(typeof te=="function"&&(zs(n,o,te,u),P=n.memoizedState),(E=Mn||wd(n,o,E,u,Z,P,A))?(ne||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(n.flags|=4194308)):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=P),v.props=u,v.state=P,v.context=A,u=E):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{v=n.stateNode,Gc(e,n),E=n.memoizedProps,A=n.type===n.elementType?E:Zt(n.type,E),v.props=A,ne=n.pendingProps,Z=v.context,P=o.contextType,typeof P=="object"&&P!==null?P=Wt(P):(P=Nt(o)?Zn:yt.current,P=Nr(n,P));var he=o.getDerivedStateFromProps;(te=typeof he=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==ne||Z!==P)&&Sd(n,v,u,P),Mn=!1,Z=n.memoizedState,v.state=Z,_o(n,u,v,d);var ye=n.memoizedState;E!==ne||Z!==ye||Et.current||Mn?(typeof he=="function"&&(zs(n,o,he,u),ye=n.memoizedState),(A=Mn||wd(n,o,A,u,Z,ye,P)||!1)?(te||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,ye,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,ye,P)),typeof v.componentDidUpdate=="function"&&(n.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof v.componentDidUpdate!="function"||E===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=ye),v.props=u,v.state=ye,v.context=P,u=A):(typeof v.componentDidUpdate!="function"||E===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),u=!1)}return $s(e,n,o,u,h,d)}function $s(e,n,o,u,d,h){_d(e,n);var v=(n.flags&128)!==0;if(!u&&!v)return d&&Dc(n,o,!1),Sn(e,n,h);u=n.stateNode,kg.current=n;var E=v&&typeof o.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,e!==null&&v?(n.child=Lr(n,e.child,null,h),n.child=Lr(n,null,E,h)):St(e,n,E,h),n.memoizedState=u.state,d&&Dc(n,o,!0),n.child}function Rd(e){var n=e.stateNode;n.pendingContext?Ac(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Ac(e,n.context,!1),Cs(e,n.containerInfo)}function zd(e,n,o,u,d){return Tr(),gs(d),n.flags|=256,St(e,n,o,u),n.child}var Us={dehydrated:null,treeContext:null,retryLane:0};function Bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ad(e,n,o){var u=n.pendingProps,d=Je.current,h=!1,v=(n.flags&128)!==0,E;if((E=v)||(E=e!==null&&e.memoizedState===null?!1:(d&2)!==0),E?(h=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),We(Je,d&1),e===null)return ms(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(v=u.children,e=u.fallback,h?(u=n.mode,h=n.child,v={mode:"hidden",children:v},(u&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=v):h=Zo(v,u,0,null),e=ur(e,u,o,null),h.return=n,e.return=n,h.sibling=e,n.child=h,n.child.memoizedState=Bs(o),n.memoizedState=Us,e):Vs(n,v));if(d=e.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return Sg(e,n,v,u,E,d,o);if(h){h=u.fallback,v=n.mode,d=e.child,E=d.sibling;var P={mode:"hidden",children:u.children};return(v&1)===0&&n.child!==d?(u=n.child,u.childLanes=0,u.pendingProps=P,n.deletions=null):(u=Hn(d,P),u.subtreeFlags=d.subtreeFlags&14680064),E!==null?h=Hn(E,h):(h=ur(h,v,o,null),h.flags|=2),h.return=n,u.return=n,u.sibling=h,n.child=u,u=h,h=n.child,v=e.child.memoizedState,v=v===null?Bs(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},h.memoizedState=v,h.childLanes=e.childLanes&~o,n.memoizedState=Us,u}return h=e.child,e=h.sibling,u=Hn(h,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=o),u.return=n,u.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=u,n.memoizedState=null,u}function Vs(e,n){return n=Zo({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function $o(e,n,o,u){return u!==null&&gs(u),Lr(n,e.child,null,o),e=Vs(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Sg(e,n,o,u,d,h,v){if(o)return n.flags&256?(n.flags&=-257,u=Ms(Error(i(422))),$o(e,n,v,u)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(h=u.fallback,d=n.mode,u=Zo({mode:"visible",children:u.children},d,0,null),h=ur(h,d,v,null),h.flags|=2,u.return=n,h.return=n,u.sibling=h,n.child=u,(n.mode&1)!==0&&Lr(n,e.child,null,v),n.child.memoizedState=Bs(v),n.memoizedState=Us,h);if((n.mode&1)===0)return $o(e,n,v,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var E=u.dgst;return u=E,h=Error(i(419)),u=Ms(h,u,void 0),$o(e,n,v,u)}if(E=(v&e.childLanes)!==0,jt||E){if(u=ct,u!==null){switch(v&-v){case 4:d=2;break;case 16:d=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:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(u.suspendedLanes|v))!==0?0:d,d!==0&&d!==h.retryLane&&(h.retryLane=d,wn(e,d),nn(u,e,d,-1))}return oa(),u=Ms(Error(i(421))),$o(e,n,v,u)}return d.data==="$?"?(n.flags|=128,n.child=e.child,n=zg.bind(null,e),d._reactRetry=n,null):(e=h.treeContext,Dt=On(d.nextSibling),Mt=n,Xe=!0,Jt=null,e!==null&&(Vt[Ht++]=xn,Vt[Ht++]=vn,Vt[Ht++]=er,xn=e.id,vn=e.overflow,er=n),n=Vs(n,u.children),n.flags|=4096,n)}function Md(e,n,o){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),ws(e.return,n,o)}function Hs(e,n,o,u,d){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(h.isBackwards=n,h.rendering=null,h.renderingStartTime=0,h.last=u,h.tail=o,h.tailMode=d)}function Dd(e,n,o){var u=n.pendingProps,d=u.revealOrder,h=u.tail;if(St(e,n,u.children,o),u=Je.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Md(e,o,n);else if(e.tag===19)Md(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(We(Je,u),(n.mode&1)===0)n.memoizedState=null;else switch(d){case"forwards":for(o=n.child,d=null;o!==null;)e=o.alternate,e!==null&&Oo(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=n.child,n.child=null):(d=o.sibling,o.sibling=null),Hs(n,!1,d,o,h);break;case"backwards":for(o=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Oo(e)===null){n.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}Hs(n,!0,o,null,h);break;case"together":Hs(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Uo(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Sn(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),or|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=Hn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Hn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function Cg(e,n,o){switch(n.tag){case 3:Rd(n),Tr();break;case 5:Jc(n);break;case 1:Nt(n.type)&&Co(n);break;case 4:Cs(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,d=n.memoizedProps.value;We(To,u._currentValue),u._currentValue=d;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(We(Je,Je.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Ad(e,n,o):(We(Je,Je.current&1),e=Sn(e,n,o),e!==null?e.sibling:null);We(Je,Je.current&1);break;case 19:if(u=(o&n.childLanes)!==0,(e.flags&128)!==0){if(u)return Dd(e,n,o);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),We(Je,Je.current),u)break;return null;case 22:case 23:return n.lanes=0,Id(e,n,o)}return Sn(e,n,o)}var Fd,Ws,$d,Ud;Fd=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Ws=function(){},$d=function(e,n,o,u){var d=e.memoizedProps;if(d!==u){e=n.stateNode,rr(sn.current);var h=null;switch(o){case"input":d=we(e,d),u=we(e,u),h=[];break;case"select":d=S({},d,{value:void 0}),u=S({},u,{value:void 0}),h=[];break;case"textarea":d=at(e,d),u=at(e,u),h=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=wo)}pt(o,u);var v;o=null;for(A in d)if(!u.hasOwnProperty(A)&&d.hasOwnProperty(A)&&d[A]!=null)if(A==="style"){var E=d[A];for(v in E)E.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(s.hasOwnProperty(A)?h||(h=[]):(h=h||[]).push(A,null));for(A in u){var P=u[A];if(E=d!=null?d[A]:void 0,u.hasOwnProperty(A)&&P!==E&&(P!=null||E!=null))if(A==="style")if(E){for(v in E)!E.hasOwnProperty(v)||P&&P.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in P)P.hasOwnProperty(v)&&E[v]!==P[v]&&(o||(o={}),o[v]=P[v])}else o||(h||(h=[]),h.push(A,o)),o=P;else A==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,E=E?E.__html:void 0,P!=null&&E!==P&&(h=h||[]).push(A,P)):A==="children"?typeof P!="string"&&typeof P!="number"||(h=h||[]).push(A,""+P):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(s.hasOwnProperty(A)?(P!=null&&A==="onScroll"&&Qe("scroll",e),h||E===P||(h=[])):(h=h||[]).push(A,P))}o&&(h=h||[]).push("style",o);var A=h;(n.updateQueue=A)&&(n.flags|=4)}},Ud=function(e,n,o,u){o!==u&&(n.flags|=4)};function Ei(e,n){if(!Xe)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function vt(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(n)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=o,n}function bg(e,n,o){var u=n.pendingProps;switch(ps(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(n),null;case 1:return Nt(n.type)&&So(),vt(n),null;case 3:return u=n.stateNode,Or(),Ge(Et),Ge(yt),Ns(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(jo(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Jt!==null&&(na(Jt),Jt=null))),Ws(e,n),vt(n),null;case 5:bs(n);var d=rr(wi.current);if(o=n.type,e!==null&&n.stateNode!=null)$d(e,n,o,u,d),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(i(166));return vt(n),null}if(e=rr(sn.current),jo(n)){u=n.stateNode,o=n.type;var h=n.memoizedProps;switch(u[ln]=n,u[mi]=h,e=(n.mode&1)!==0,o){case"dialog":Qe("cancel",u),Qe("close",u);break;case"iframe":case"object":case"embed":Qe("load",u);break;case"video":case"audio":for(d=0;d<fi.length;d++)Qe(fi[d],u);break;case"source":Qe("error",u);break;case"img":case"image":case"link":Qe("error",u),Qe("load",u);break;case"details":Qe("toggle",u);break;case"input":ve(u,h),Qe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!h.multiple},Qe("invalid",u);break;case"textarea":En(u,h),Qe("invalid",u)}pt(o,h),d=null;for(var v in h)if(h.hasOwnProperty(v)){var E=h[v];v==="children"?typeof E=="string"?u.textContent!==E&&(h.suppressHydrationWarning!==!0&&vo(u.textContent,E,e),d=["children",E]):typeof E=="number"&&u.textContent!==""+E&&(h.suppressHydrationWarning!==!0&&vo(u.textContent,E,e),d=["children",""+E]):s.hasOwnProperty(v)&&E!=null&&v==="onScroll"&&Qe("scroll",u)}switch(o){case"input":me(u),$e(u,h,!0);break;case"textarea":me(u),Xi(u);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(u.onclick=wo)}u=d,n.updateQueue=u,u!==null&&(n.flags|=4)}else{v=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=W(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=v.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=v.createElement(o,{is:u.is}):(e=v.createElement(o),o==="select"&&(v=e,u.multiple?v.multiple=!0:u.size&&(v.size=u.size))):e=v.createElementNS(e,o),e[ln]=n,e[mi]=u,Fd(e,n,!1,!1),n.stateNode=e;e:{switch(v=rn(o,u),o){case"dialog":Qe("cancel",e),Qe("close",e),d=u;break;case"iframe":case"object":case"embed":Qe("load",e),d=u;break;case"video":case"audio":for(d=0;d<fi.length;d++)Qe(fi[d],e);d=u;break;case"source":Qe("error",e),d=u;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),d=u;break;case"details":Qe("toggle",e),d=u;break;case"input":ve(e,u),d=we(e,u),Qe("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=S({},u,{value:void 0}),Qe("invalid",e);break;case"textarea":En(e,u),d=at(e,u),Qe("invalid",e);break;default:d=u}pt(o,d),E=d;for(h in E)if(E.hasOwnProperty(h)){var P=E[h];h==="style"?Nn(e,P):h==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Oe(e,P)):h==="children"?typeof P=="string"?(o!=="textarea"||P!=="")&&Me(e,P):typeof P=="number"&&Me(e,""+P):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(s.hasOwnProperty(h)?P!=null&&h==="onScroll"&&Qe("scroll",e):P!=null&&D(e,h,P,v))}switch(o){case"input":me(e),$e(e,u,!1);break;case"textarea":me(e),Xi(e);break;case"option":u.value!=null&&e.setAttribute("value",""+J(u.value));break;case"select":e.multiple=!!u.multiple,h=u.value,h!=null?gt(e,!!u.multiple,h,!1):u.defaultValue!=null&>(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=wo)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return vt(n),null;case 6:if(e&&n.stateNode!=null)Ud(e,n,e.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(i(166));if(o=rr(wi.current),rr(sn.current),jo(n)){if(u=n.stateNode,o=n.memoizedProps,u[ln]=n,(h=u.nodeValue!==o)&&(e=Mt,e!==null))switch(e.tag){case 3:vo(u.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vo(u.nodeValue,o,(e.mode&1)!==0)}h&&(n.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[ln]=n,n.stateNode=u}return vt(n),null;case 13:if(Ge(Je),u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Xe&&Dt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Hc(),Tr(),n.flags|=98560,h=!1;else if(h=jo(n),u!==null&&u.dehydrated!==null){if(e===null){if(!h)throw Error(i(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[ln]=n}else Tr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;vt(n),h=!1}else Jt!==null&&(na(Jt),Jt=null),h=!0;if(!h)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Je.current&1)!==0?lt===0&&(lt=3):oa())),n.updateQueue!==null&&(n.flags|=4),vt(n),null);case 4:return Or(),Ws(e,n),e===null&&pi(n.stateNode.containerInfo),vt(n),null;case 10:return vs(n.type._context),vt(n),null;case 17:return Nt(n.type)&&So(),vt(n),null;case 19:if(Ge(Je),h=n.memoizedState,h===null)return vt(n),null;if(u=(n.flags&128)!==0,v=h.rendering,v===null)if(u)Ei(h,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(v=Oo(e),v!==null){for(n.flags|=128,Ei(h,!1),u=v.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=o,o=n.child;o!==null;)h=o,e=u,h.flags&=14680066,v=h.alternate,v===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=v.childLanes,h.lanes=v.lanes,h.child=v.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=v.memoizedProps,h.memoizedState=v.memoizedState,h.updateQueue=v.updateQueue,h.type=v.type,e=v.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return We(Je,Je.current&1|2),n.child}e=e.sibling}h.tail!==null&&tt()>Mr&&(n.flags|=128,u=!0,Ei(h,!1),n.lanes=4194304)}else{if(!u)if(e=Oo(v),e!==null){if(n.flags|=128,u=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),Ei(h,!0),h.tail===null&&h.tailMode==="hidden"&&!v.alternate&&!Xe)return vt(n),null}else 2*tt()-h.renderingStartTime>Mr&&o!==1073741824&&(n.flags|=128,u=!0,Ei(h,!1),n.lanes=4194304);h.isBackwards?(v.sibling=n.child,n.child=v):(o=h.last,o!==null?o.sibling=v:n.child=v,h.last=v)}return h.tail!==null?(n=h.tail,h.rendering=n,h.tail=n.sibling,h.renderingStartTime=tt(),n.sibling=null,o=Je.current,We(Je,u?o&1|2:o&1),n):(vt(n),null);case 22:case 23:return ia(),u=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(Ft&1073741824)!==0&&(vt(n),n.subtreeFlags&6&&(n.flags|=8192)):vt(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Eg(e,n){switch(ps(n),n.tag){case 1:return Nt(n.type)&&So(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Or(),Ge(Et),Ge(yt),Ns(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return bs(n),null;case 13:if(Ge(Je),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Tr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ge(Je),null;case 4:return Or(),null;case 10:return vs(n.type._context),null;case 22:case 23:return ia(),null;case 24:return null;default:return null}}var Bo=!1,wt=!1,Ng=typeof WeakSet=="function"?WeakSet:Set,ge=null;function zr(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){et(e,n,u)}else o.current=null}function qs(e,n,o){try{o()}catch(u){et(e,n,u)}}var Bd=!1;function jg(e,n){if(is=so,e=wc(),Yl(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var v=0,E=-1,P=-1,A=0,te=0,ne=e,Z=null;t:for(;;){for(var he;ne!==o||d!==0&&ne.nodeType!==3||(E=v+d),ne!==h||u!==0&&ne.nodeType!==3||(P=v+u),ne.nodeType===3&&(v+=ne.nodeValue.length),(he=ne.firstChild)!==null;)Z=ne,ne=he;for(;;){if(ne===e)break t;if(Z===o&&++A===d&&(E=v),Z===h&&++te===u&&(P=v),(he=ne.nextSibling)!==null)break;ne=Z,Z=ne.parentNode}ne=he}o=E===-1||P===-1?null:{start:E,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(os={focusedElem:e,selectionRange:o},so=!1,ge=n;ge!==null;)if(n=ge,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ge=e;else for(;ge!==null;){n=ge;try{var ye=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var xe=ye.memoizedProps,nt=ye.memoizedState,O=n.stateNode,L=O.getSnapshotBeforeUpdate(n.elementType===n.type?xe:Zt(n.type,xe),nt);O.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var z=n.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(le){et(n,n.return,le)}if(e=n.sibling,e!==null){e.return=n.return,ge=e;break}ge=n.return}return ye=Bd,Bd=!1,ye}function Ni(e,n,o){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var h=d.destroy;d.destroy=void 0,h!==void 0&&qs(n,o,h)}d=d.next}while(d!==u)}}function Vo(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var u=o.create;o.destroy=u()}o=o.next}while(o!==n)}}function Ks(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Vd(e){var n=e.alternate;n!==null&&(e.alternate=null,Vd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[ln],delete n[mi],delete n[us],delete n[ug],delete n[cg])),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 Hd(e){return e.tag===5||e.tag===3||e.tag===4}function Wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(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 Qs(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=wo));else if(u!==4&&(e=e.child,e!==null))for(Qs(e,n,o),e=e.sibling;e!==null;)Qs(e,n,o),e=e.sibling}function Gs(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Gs(e,n,o),e=e.sibling;e!==null;)Gs(e,n,o),e=e.sibling}var ht=null,en=!1;function Fn(e,n,o){for(o=o.child;o!==null;)qd(e,n,o),o=o.sibling}function qd(e,n,o){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(to,o)}catch{}switch(o.tag){case 5:wt||zr(o,n);case 6:var u=ht,d=en;ht=null,Fn(e,n,o),ht=u,en=d,ht!==null&&(en?(e=ht,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):ht.removeChild(o.stateNode));break;case 18:ht!==null&&(en?(e=ht,o=o.stateNode,e.nodeType===8?as(e.parentNode,o):e.nodeType===1&&as(e,o),ii(e)):as(ht,o.stateNode));break;case 4:u=ht,d=en,ht=o.stateNode.containerInfo,en=!0,Fn(e,n,o),ht=u,en=d;break;case 0:case 11:case 14:case 15:if(!wt&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var h=d,v=h.destroy;h=h.tag,v!==void 0&&((h&2)!==0||(h&4)!==0)&&qs(o,n,v),d=d.next}while(d!==u)}Fn(e,n,o);break;case 1:if(!wt&&(zr(o,n),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(E){et(o,n,E)}Fn(e,n,o);break;case 21:Fn(e,n,o);break;case 22:o.mode&1?(wt=(u=wt)||o.memoizedState!==null,Fn(e,n,o),wt=u):Fn(e,n,o);break;default:Fn(e,n,o)}}function Kd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Ng),n.forEach(function(u){var d=Ag.bind(null,e,u);o.has(u)||(o.add(u),u.then(d,d))})}}function tn(e,n){var o=n.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];try{var h=e,v=n,E=v;e:for(;E!==null;){switch(E.tag){case 5:ht=E.stateNode,en=!1;break e;case 3:ht=E.stateNode.containerInfo,en=!0;break e;case 4:ht=E.stateNode.containerInfo,en=!0;break e}E=E.return}if(ht===null)throw Error(i(160));qd(h,v,d),ht=null,en=!1;var P=d.alternate;P!==null&&(P.return=null),d.return=null}catch(A){et(d,n,A)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Qd(n,e),n=n.sibling}function Qd(e,n){var o=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(n,e),un(e),u&4){try{Ni(3,e,e.return),Vo(3,e)}catch(xe){et(e,e.return,xe)}try{Ni(5,e,e.return)}catch(xe){et(e,e.return,xe)}}break;case 1:tn(n,e),un(e),u&512&&o!==null&&zr(o,o.return);break;case 5:if(tn(n,e),un(e),u&512&&o!==null&&zr(o,o.return),e.flags&32){var d=e.stateNode;try{Me(d,"")}catch(xe){et(e,e.return,xe)}}if(u&4&&(d=e.stateNode,d!=null)){var h=e.memoizedProps,v=o!==null?o.memoizedProps:h,E=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{E==="input"&&h.type==="radio"&&h.name!=null&&Ae(d,h),rn(E,v);var A=rn(E,h);for(v=0;v<P.length;v+=2){var te=P[v],ne=P[v+1];te==="style"?Nn(d,ne):te==="dangerouslySetInnerHTML"?Oe(d,ne):te==="children"?Me(d,ne):D(d,te,ne,A)}switch(E){case"input":Ve(d,h);break;case"textarea":Yi(d,h);break;case"select":var Z=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!h.multiple;var he=h.value;he!=null?gt(d,!!h.multiple,he,!1):Z!==!!h.multiple&&(h.defaultValue!=null?gt(d,!!h.multiple,h.defaultValue,!0):gt(d,!!h.multiple,h.multiple?[]:"",!1))}d[mi]=h}catch(xe){et(e,e.return,xe)}}break;case 6:if(tn(n,e),un(e),u&4){if(e.stateNode===null)throw Error(i(162));d=e.stateNode,h=e.memoizedProps;try{d.nodeValue=h}catch(xe){et(e,e.return,xe)}}break;case 3:if(tn(n,e),un(e),u&4&&o!==null&&o.memoizedState.isDehydrated)try{ii(n.containerInfo)}catch(xe){et(e,e.return,xe)}break;case 4:tn(n,e),un(e);break;case 13:tn(n,e),un(e),d=e.child,d.flags&8192&&(h=d.memoizedState!==null,d.stateNode.isHidden=h,!h||d.alternate!==null&&d.alternate.memoizedState!==null||(Js=tt())),u&4&&Kd(e);break;case 22:if(te=o!==null&&o.memoizedState!==null,e.mode&1?(wt=(A=wt)||te,tn(n,e),wt=A):tn(n,e),un(e),u&8192){if(A=e.memoizedState!==null,(e.stateNode.isHidden=A)&&!te&&(e.mode&1)!==0)for(ge=e,te=e.child;te!==null;){for(ne=ge=te;ge!==null;){switch(Z=ge,he=Z.child,Z.tag){case 0:case 11:case 14:case 15:Ni(4,Z,Z.return);break;case 1:zr(Z,Z.return);var ye=Z.stateNode;if(typeof ye.componentWillUnmount=="function"){u=Z,o=Z.return;try{n=u,ye.props=n.memoizedProps,ye.state=n.memoizedState,ye.componentWillUnmount()}catch(xe){et(u,o,xe)}}break;case 5:zr(Z,Z.return);break;case 22:if(Z.memoizedState!==null){Xd(ne);continue}}he!==null?(he.return=Z,ge=he):Xd(ne)}te=te.sibling}e:for(te=null,ne=e;;){if(ne.tag===5){if(te===null){te=ne;try{d=ne.stateNode,A?(h=d.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(E=ne.stateNode,P=ne.memoizedProps.style,v=P!=null&&P.hasOwnProperty("display")?P.display:null,E.style.display=Bt("display",v))}catch(xe){et(e,e.return,xe)}}}else if(ne.tag===6){if(te===null)try{ne.stateNode.nodeValue=A?"":ne.memoizedProps}catch(xe){et(e,e.return,xe)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===e)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===e)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===e)break e;te===ne&&(te=null),ne=ne.return}te===ne&&(te=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:tn(n,e),un(e),u&4&&Kd(e);break;case 21:break;default:tn(n,e),un(e)}}function un(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Hd(o)){var u=o;break e}o=o.return}throw Error(i(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(Me(d,""),u.flags&=-33);var h=Wd(e);Gs(e,h,d);break;case 3:case 4:var v=u.stateNode.containerInfo,E=Wd(e);Qs(e,E,v);break;default:throw Error(i(161))}}catch(P){et(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Pg(e,n,o){ge=e,Gd(e)}function Gd(e,n,o){for(var u=(e.mode&1)!==0;ge!==null;){var d=ge,h=d.child;if(d.tag===22&&u){var v=d.memoizedState!==null||Bo;if(!v){var E=d.alternate,P=E!==null&&E.memoizedState!==null||wt;E=Bo;var A=wt;if(Bo=v,(wt=P)&&!A)for(ge=d;ge!==null;)v=ge,P=v.child,v.tag===22&&v.memoizedState!==null?Jd(d):P!==null?(P.return=v,ge=P):Jd(d);for(;h!==null;)ge=h,Gd(h),h=h.sibling;ge=d,Bo=E,wt=A}Yd(e)}else(d.subtreeFlags&8772)!==0&&h!==null?(h.return=d,ge=h):Yd(e)}}function Yd(e){for(;ge!==null;){var n=ge;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:wt||Vo(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!wt)if(o===null)u.componentDidMount();else{var d=n.elementType===n.type?o.memoizedProps:Zt(n.type,o.memoizedProps);u.componentDidUpdate(d,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var h=n.updateQueue;h!==null&&Xc(n,h,u);break;case 3:var v=n.updateQueue;if(v!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Xc(n,v,o)}break;case 5:var E=n.stateNode;if(o===null&&n.flags&4){o=E;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&o.focus();break;case"img":P.src&&(o.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var A=n.alternate;if(A!==null){var te=A.memoizedState;if(te!==null){var ne=te.dehydrated;ne!==null&&ii(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}wt||n.flags&512&&Ks(n)}catch(Z){et(n,n.return,Z)}}if(n===e){ge=null;break}if(o=n.sibling,o!==null){o.return=n.return,ge=o;break}ge=n.return}}function Xd(e){for(;ge!==null;){var n=ge;if(n===e){ge=null;break}var o=n.sibling;if(o!==null){o.return=n.return,ge=o;break}ge=n.return}}function Jd(e){for(;ge!==null;){var n=ge;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Vo(4,n)}catch(P){et(n,o,P)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var d=n.return;try{u.componentDidMount()}catch(P){et(n,d,P)}}var h=n.return;try{Ks(n)}catch(P){et(n,h,P)}break;case 5:var v=n.return;try{Ks(n)}catch(P){et(n,v,P)}}}catch(P){et(n,n.return,P)}if(n===e){ge=null;break}var E=n.sibling;if(E!==null){E.return=n.return,ge=E;break}ge=n.return}}var Tg=Math.ceil,Ho=U.ReactCurrentDispatcher,Ys=U.ReactCurrentOwner,Kt=U.ReactCurrentBatchConfig,De=0,ct=null,rt=null,mt=0,Ft=0,Ar=Rn(0),lt=0,ji=null,or=0,Wo=0,Xs=0,Pi=null,Pt=null,Js=0,Mr=1/0,Cn=null,qo=!1,Zs=null,$n=null,Ko=!1,Un=null,Qo=0,Ti=0,ea=null,Go=-1,Yo=0;function Ct(){return(De&6)!==0?tt():Go!==-1?Go:Go=tt()}function Bn(e){return(e.mode&1)===0?1:(De&2)!==0&&mt!==0?mt&-mt:fg.transition!==null?(Yo===0&&(Yo=Wu()),Yo):(e=Be,e!==0||(e=window.event,e=e===void 0?16:ec(e.type)),e)}function nn(e,n,o,u){if(50<Ti)throw Ti=0,ea=null,Error(i(185));Zr(e,o,u),((De&2)===0||e!==ct)&&(e===ct&&((De&2)===0&&(Wo|=o),lt===4&&Vn(e,mt)),Tt(e,u),o===1&&De===0&&(n.mode&1)===0&&(Mr=tt()+500,bo&&An()))}function Tt(e,n){var o=e.callbackNode;fm(e,n);var u=io(e,e===ct?mt:0);if(u===0)o!==null&&Bu(o),e.callbackNode=null,e.callbackPriority=0;else if(n=u&-u,e.callbackPriority!==n){if(o!=null&&Bu(o),n===1)e.tag===0?dg(ef.bind(null,e)):Fc(ef.bind(null,e)),sg(function(){(De&6)===0&&An()}),o=null;else{switch(qu(u)){case 1:o=Ol;break;case 4:o=Vu;break;case 16:o=eo;break;case 536870912:o=Hu;break;default:o=eo}o=uf(o,Zd.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Zd(e,n){if(Go=-1,Yo=0,(De&6)!==0)throw Error(i(327));var o=e.callbackNode;if(Dr()&&e.callbackNode!==o)return null;var u=io(e,e===ct?mt:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||n)n=Xo(e,u);else{n=u;var d=De;De|=2;var h=nf();(ct!==e||mt!==n)&&(Cn=null,Mr=tt()+500,sr(e,n));do try{_g();break}catch(E){tf(e,E)}while(!0);xs(),Ho.current=h,De=d,rt!==null?n=0:(ct=null,mt=0,n=lt)}if(n!==0){if(n===2&&(d=Rl(e),d!==0&&(u=d,n=ta(e,d))),n===1)throw o=ji,sr(e,0),Vn(e,u),Tt(e,tt()),o;if(n===6)Vn(e,u);else{if(d=e.current.alternate,(u&30)===0&&!Lg(d)&&(n=Xo(e,u),n===2&&(h=Rl(e),h!==0&&(u=h,n=ta(e,h))),n===1))throw o=ji,sr(e,0),Vn(e,u),Tt(e,tt()),o;switch(e.finishedWork=d,e.finishedLanes=u,n){case 0:case 1:throw Error(i(345));case 2:ar(e,Pt,Cn);break;case 3:if(Vn(e,u),(u&130023424)===u&&(n=Js+500-tt(),10<n)){if(io(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){Ct(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=ss(ar.bind(null,e,Pt,Cn),n);break}ar(e,Pt,Cn);break;case 4:if(Vn(e,u),(u&4194240)===u)break;for(n=e.eventTimes,d=-1;0<u;){var v=31-Yt(u);h=1<<v,v=n[v],v>d&&(d=v),u&=~h}if(u=d,u=tt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*Tg(u/1960))-u,10<u){e.timeoutHandle=ss(ar.bind(null,e,Pt,Cn),u);break}ar(e,Pt,Cn);break;case 5:ar(e,Pt,Cn);break;default:throw Error(i(329))}}}return Tt(e,tt()),e.callbackNode===o?Zd.bind(null,e):null}function ta(e,n){var o=Pi;return e.current.memoizedState.isDehydrated&&(sr(e,n).flags|=256),e=Xo(e,n),e!==2&&(n=Pt,Pt=o,n!==null&&na(n)),e}function na(e){Pt===null?Pt=e:Pt.push.apply(Pt,e)}function Lg(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var d=o[u],h=d.getSnapshot;d=d.value;try{if(!Xt(h(),d))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Vn(e,n){for(n&=~Xs,n&=~Wo,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-Yt(n),u=1<<o;e[o]=-1,n&=~u}}function ef(e){if((De&6)!==0)throw Error(i(327));Dr();var n=io(e,0);if((n&1)===0)return Tt(e,tt()),null;var o=Xo(e,n);if(e.tag!==0&&o===2){var u=Rl(e);u!==0&&(n=u,o=ta(e,u))}if(o===1)throw o=ji,sr(e,0),Vn(e,n),Tt(e,tt()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ar(e,Pt,Cn),Tt(e,tt()),null}function ra(e,n){var o=De;De|=1;try{return e(n)}finally{De=o,De===0&&(Mr=tt()+500,bo&&An())}}function lr(e){Un!==null&&Un.tag===0&&(De&6)===0&&Dr();var n=De;De|=1;var o=Kt.transition,u=Be;try{if(Kt.transition=null,Be=1,e)return e()}finally{Be=u,Kt.transition=o,De=n,(De&6)===0&&An()}}function ia(){Ft=Ar.current,Ge(Ar)}function sr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,lg(o)),rt!==null)for(o=rt.return;o!==null;){var u=o;switch(ps(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&So();break;case 3:Or(),Ge(Et),Ge(yt),Ns();break;case 5:bs(u);break;case 4:Or();break;case 13:Ge(Je);break;case 19:Ge(Je);break;case 10:vs(u.type._context);break;case 22:case 23:ia()}o=o.return}if(ct=e,rt=e=Hn(e.current,null),mt=Ft=n,lt=0,ji=null,Xs=Wo=or=0,Pt=Pi=null,nr!==null){for(n=0;n<nr.length;n++)if(o=nr[n],u=o.interleaved,u!==null){o.interleaved=null;var d=u.next,h=o.pending;if(h!==null){var v=h.next;h.next=d,u.next=v}o.pending=u}nr=null}return e}function tf(e,n){do{var o=rt;try{if(xs(),Ro.current=Do,zo){for(var u=Ze.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}zo=!1}if(ir=0,ut=ot=Ze=null,ki=!1,Si=0,Ys.current=null,o===null||o.return===null){lt=1,ji=n,rt=null;break}e:{var h=e,v=o.return,E=o,P=n;if(n=mt,E.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var A=P,te=E,ne=te.tag;if((te.mode&1)===0&&(ne===0||ne===11||ne===15)){var Z=te.alternate;Z?(te.updateQueue=Z.updateQueue,te.memoizedState=Z.memoizedState,te.lanes=Z.lanes):(te.updateQueue=null,te.memoizedState=null)}var he=Nd(v);if(he!==null){he.flags&=-257,jd(he,v,E,h,n),he.mode&1&&Ed(h,A,n),n=he,P=A;var ye=n.updateQueue;if(ye===null){var xe=new Set;xe.add(P),n.updateQueue=xe}else ye.add(P);break e}else{if((n&1)===0){Ed(h,A,n),oa();break e}P=Error(i(426))}}else if(Xe&&E.mode&1){var nt=Nd(v);if(nt!==null){(nt.flags&65536)===0&&(nt.flags|=256),jd(nt,v,E,h,n),gs(Rr(P,E));break e}}h=P=Rr(P,E),lt!==4&&(lt=2),Pi===null?Pi=[h]:Pi.push(h),h=v;do{switch(h.tag){case 3:h.flags|=65536,n&=-n,h.lanes|=n;var O=Cd(h,P,n);Yc(h,O);break e;case 1:E=P;var L=h.type,z=h.stateNode;if((h.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&($n===null||!$n.has(z)))){h.flags|=65536,n&=-n,h.lanes|=n;var le=bd(h,E,n);Yc(h,le);break e}}h=h.return}while(h!==null)}of(o)}catch(ke){n=ke,rt===o&&o!==null&&(rt=o=o.return);continue}break}while(!0)}function nf(){var e=Ho.current;return Ho.current=Do,e===null?Do:e}function oa(){(lt===0||lt===3||lt===2)&&(lt=4),ct===null||(or&268435455)===0&&(Wo&268435455)===0||Vn(ct,mt)}function Xo(e,n){var o=De;De|=2;var u=nf();(ct!==e||mt!==n)&&(Cn=null,sr(e,n));do try{Ig();break}catch(d){tf(e,d)}while(!0);if(xs(),De=o,Ho.current=u,rt!==null)throw Error(i(261));return ct=null,mt=0,lt}function Ig(){for(;rt!==null;)rf(rt)}function _g(){for(;rt!==null&&!rm();)rf(rt)}function rf(e){var n=af(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,n===null?of(e):rt=n,Ys.current=null}function of(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=bg(o,n,Ft),o!==null){rt=o;return}}else{if(o=Eg(o,n),o!==null){o.flags&=32767,rt=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lt=6,rt=null;return}}if(n=n.sibling,n!==null){rt=n;return}rt=n=e}while(n!==null);lt===0&&(lt=5)}function ar(e,n,o){var u=Be,d=Kt.transition;try{Kt.transition=null,Be=1,Og(e,n,o,u)}finally{Kt.transition=d,Be=u}return null}function Og(e,n,o,u){do Dr();while(Un!==null);if((De&6)!==0)throw Error(i(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var h=o.lanes|o.childLanes;if(pm(e,h),e===ct&&(rt=ct=null,mt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ko||(Ko=!0,uf(eo,function(){return Dr(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=Kt.transition,Kt.transition=null;var v=Be;Be=1;var E=De;De|=4,Ys.current=null,jg(e,o),Qd(o,e),Zm(os),so=!!is,os=is=null,e.current=o,Pg(o),im(),De=E,Be=v,Kt.transition=h}else e.current=o;if(Ko&&(Ko=!1,Un=e,Qo=d),h=e.pendingLanes,h===0&&($n=null),sm(o.stateNode),Tt(e,tt()),n!==null)for(u=e.onRecoverableError,o=0;o<n.length;o++)d=n[o],u(d.value,{componentStack:d.stack,digest:d.digest});if(qo)throw qo=!1,e=Zs,Zs=null,e;return(Qo&1)!==0&&e.tag!==0&&Dr(),h=e.pendingLanes,(h&1)!==0?e===ea?Ti++:(Ti=0,ea=e):Ti=0,An(),null}function Dr(){if(Un!==null){var e=qu(Qo),n=Kt.transition,o=Be;try{if(Kt.transition=null,Be=16>e?16:e,Un===null)var u=!1;else{if(e=Un,Un=null,Qo=0,(De&6)!==0)throw Error(i(331));var d=De;for(De|=4,ge=e.current;ge!==null;){var h=ge,v=h.child;if((ge.flags&16)!==0){var E=h.deletions;if(E!==null){for(var P=0;P<E.length;P++){var A=E[P];for(ge=A;ge!==null;){var te=ge;switch(te.tag){case 0:case 11:case 15:Ni(8,te,h)}var ne=te.child;if(ne!==null)ne.return=te,ge=ne;else for(;ge!==null;){te=ge;var Z=te.sibling,he=te.return;if(Vd(te),te===A){ge=null;break}if(Z!==null){Z.return=he,ge=Z;break}ge=he}}}var ye=h.alternate;if(ye!==null){var xe=ye.child;if(xe!==null){ye.child=null;do{var nt=xe.sibling;xe.sibling=null,xe=nt}while(xe!==null)}}ge=h}}if((h.subtreeFlags&2064)!==0&&v!==null)v.return=h,ge=v;else e:for(;ge!==null;){if(h=ge,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Ni(9,h,h.return)}var O=h.sibling;if(O!==null){O.return=h.return,ge=O;break e}ge=h.return}}var L=e.current;for(ge=L;ge!==null;){v=ge;var z=v.child;if((v.subtreeFlags&2064)!==0&&z!==null)z.return=v,ge=z;else e:for(v=L;ge!==null;){if(E=ge,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Vo(9,E)}}catch(ke){et(E,E.return,ke)}if(E===v){ge=null;break e}var le=E.sibling;if(le!==null){le.return=E.return,ge=le;break e}ge=E.return}}if(De=d,An(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(to,e)}catch{}u=!0}return u}finally{Be=o,Kt.transition=n}}return!1}function lf(e,n,o){n=Rr(o,n),n=Cd(e,n,1),e=Dn(e,n,1),n=Ct(),e!==null&&(Zr(e,1,n),Tt(e,n))}function et(e,n,o){if(e.tag===3)lf(e,e,o);else for(;n!==null;){if(n.tag===3){lf(n,e,o);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&($n===null||!$n.has(u))){e=Rr(o,e),e=bd(n,e,1),n=Dn(n,e,1),e=Ct(),n!==null&&(Zr(n,1,e),Tt(n,e));break}}n=n.return}}function Rg(e,n,o){var u=e.pingCache;u!==null&&u.delete(n),n=Ct(),e.pingedLanes|=e.suspendedLanes&o,ct===e&&(mt&o)===o&&(lt===4||lt===3&&(mt&130023424)===mt&&500>tt()-Js?sr(e,0):Xs|=o),Tt(e,n)}function sf(e,n){n===0&&((e.mode&1)===0?n=1:(n=ro,ro<<=1,(ro&130023424)===0&&(ro=4194304)));var o=Ct();e=wn(e,n),e!==null&&(Zr(e,n,o),Tt(e,o))}function zg(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),sf(e,o)}function Ag(e,n){var o=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(i(314))}u!==null&&u.delete(n),sf(e,o)}var af;af=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||Et.current)jt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return jt=!1,Cg(e,n,o);jt=(e.flags&131072)!==0}else jt=!1,Xe&&(n.flags&1048576)!==0&&$c(n,No,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;Uo(e,n),e=n.pendingProps;var d=Nr(n,yt.current);_r(n,o),d=Ts(null,n,u,e,d,o);var h=Ls();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Nt(u)?(h=!0,Co(n)):h=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Ss(n),d.updater=Fo,n.stateNode=d,d._reactInternals=n,As(n,u,e,o),n=$s(null,n,u,!0,h,o)):(n.tag=0,Xe&&h&&fs(n),St(null,n,d,o),n=n.child),n;case 16:u=n.elementType;e:{switch(Uo(e,n),e=n.pendingProps,d=u._init,u=d(u._payload),n.type=u,d=n.tag=Dg(u),e=Zt(u,e),d){case 0:n=Fs(null,n,u,e,o);break e;case 1:n=Od(null,n,u,e,o);break e;case 11:n=Pd(null,n,u,e,o);break e;case 14:n=Td(null,n,u,Zt(u.type,e),o);break e}throw Error(i(306,u,""))}return n;case 0:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Fs(e,n,u,d,o);case 1:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Od(e,n,u,d,o);case 3:e:{if(Rd(n),e===null)throw Error(i(387));u=n.pendingProps,h=n.memoizedState,d=h.element,Gc(e,n),_o(n,u,null,o);var v=n.memoizedState;if(u=v.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){d=Rr(Error(i(423)),n),n=zd(e,n,u,o,d);break e}else if(u!==d){d=Rr(Error(i(424)),n),n=zd(e,n,u,o,d);break e}else for(Dt=On(n.stateNode.containerInfo.firstChild),Mt=n,Xe=!0,Jt=null,o=Kc(n,null,u,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Tr(),u===d){n=Sn(e,n,o);break e}St(e,n,u,o)}n=n.child}return n;case 5:return Jc(n),e===null&&ms(n),u=n.type,d=n.pendingProps,h=e!==null?e.memoizedProps:null,v=d.children,ls(u,d)?v=null:h!==null&&ls(u,h)&&(n.flags|=32),_d(e,n),St(e,n,v,o),n.child;case 6:return e===null&&ms(n),null;case 13:return Ad(e,n,o);case 4:return Cs(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Lr(n,null,u,o):St(e,n,u,o),n.child;case 11:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Pd(e,n,u,d,o);case 7:return St(e,n,n.pendingProps,o),n.child;case 8:return St(e,n,n.pendingProps.children,o),n.child;case 12:return St(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(u=n.type._context,d=n.pendingProps,h=n.memoizedProps,v=d.value,We(To,u._currentValue),u._currentValue=v,h!==null)if(Xt(h.value,v)){if(h.children===d.children&&!Et.current){n=Sn(e,n,o);break e}}else for(h=n.child,h!==null&&(h.return=n);h!==null;){var E=h.dependencies;if(E!==null){v=h.child;for(var P=E.firstContext;P!==null;){if(P.context===u){if(h.tag===1){P=kn(-1,o&-o),P.tag=2;var A=h.updateQueue;if(A!==null){A=A.shared;var te=A.pending;te===null?P.next=P:(P.next=te.next,te.next=P),A.pending=P}}h.lanes|=o,P=h.alternate,P!==null&&(P.lanes|=o),ws(h.return,o,n),E.lanes|=o;break}P=P.next}}else if(h.tag===10)v=h.type===n.type?null:h.child;else if(h.tag===18){if(v=h.return,v===null)throw Error(i(341));v.lanes|=o,E=v.alternate,E!==null&&(E.lanes|=o),ws(v,o,n),v=h.sibling}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===n){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}St(e,n,d.children,o),n=n.child}return n;case 9:return d=n.type,u=n.pendingProps.children,_r(n,o),d=Wt(d),u=u(d),n.flags|=1,St(e,n,u,o),n.child;case 14:return u=n.type,d=Zt(u,n.pendingProps),d=Zt(u.type,d),Td(e,n,u,d,o);case 15:return Ld(e,n,n.type,n.pendingProps,o);case 17:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Uo(e,n),n.tag=1,Nt(u)?(e=!0,Co(n)):e=!1,_r(n,o),kd(n,u,d),As(n,u,d,o),$s(null,n,u,!0,e,o);case 19:return Dd(e,n,o);case 22:return Id(e,n,o)}throw Error(i(156,n.tag))};function uf(e,n){return Uu(e,n)}function Mg(e,n,o,u){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,n,o,u){return new Mg(e,n,o,u)}function la(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dg(e){if(typeof e=="function")return la(e)?1:0;if(e!=null){if(e=e.$$typeof,e===M)return 11;if(e===q)return 14}return 2}function Hn(e,n){var o=e.alternate;return o===null?(o=Qt(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Jo(e,n,o,u,d,h){var v=2;if(u=e,typeof e=="function")la(e)&&(v=1);else if(typeof e=="string")v=5;else e:switch(e){case V:return ur(o.children,d,h,n);case K:v=8,d|=8;break;case G:return e=Qt(12,o,n,d|2),e.elementType=G,e.lanes=h,e;case re:return e=Qt(13,o,n,d),e.elementType=re,e.lanes=h,e;case Y:return e=Qt(19,o,n,d),e.elementType=Y,e.lanes=h,e;case pe:return Zo(o,d,h,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:v=10;break e;case oe:v=9;break e;case M:v=11;break e;case q:v=14;break e;case fe:v=16,u=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Qt(v,o,n,d),n.elementType=e,n.type=u,n.lanes=h,n}function ur(e,n,o,u){return e=Qt(7,e,u,n),e.lanes=o,e}function Zo(e,n,o,u){return e=Qt(22,e,u,n),e.elementType=pe,e.lanes=o,e.stateNode={isHidden:!1},e}function sa(e,n,o){return e=Qt(6,e,null,n),e.lanes=o,e}function aa(e,n,o){return n=Qt(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Fg(e,n,o,u,d){this.tag=n,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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function ua(e,n,o,u,d,h,v,E,P){return e=new Fg(e,n,o,E,P),n===1?(n=1,h===!0&&(n|=8)):n=0,h=Qt(3,null,null,n),e.current=h,h.stateNode=e,h.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ss(h),e}function $g(e,n,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:u==null?null:""+u,children:e,containerInfo:n,implementation:o}}function cf(e){if(!e)return zn;e=e._reactInternals;e:{if(Xn(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Nt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(Nt(o))return Mc(e,o,n)}return n}function df(e,n,o,u,d,h,v,E,P){return e=ua(o,u,!0,e,d,h,v,E,P),e.context=cf(null),o=e.current,u=Ct(),d=Bn(o),h=kn(u,d),h.callback=n??null,Dn(o,h,d),e.current.lanes=d,Zr(e,d,u),Tt(e,u),e}function el(e,n,o,u){var d=n.current,h=Ct(),v=Bn(d);return o=cf(o),n.context===null?n.context=o:n.pendingContext=o,n=kn(h,v),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=Dn(d,n,v),e!==null&&(nn(e,d,v,h),Io(e,d,v)),v}function tl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ff(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function ca(e,n){ff(e,n),(e=e.alternate)&&ff(e,n)}function Ug(){return null}var pf=typeof reportError=="function"?reportError:function(e){console.error(e)};function da(e){this._internalRoot=e}nl.prototype.render=da.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));el(e,n,null,null)},nl.prototype.unmount=da.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;lr(function(){el(null,e,null,null)}),n[gn]=null}};function nl(e){this._internalRoot=e}nl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Gu();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Ln.length&&n!==0&&n<Ln[o].priority;o++);Ln.splice(o,0,e),o===0&&Ju(e)}};function fa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hf(){}function Bg(e,n,o,u,d){if(d){if(typeof u=="function"){var h=u;u=function(){var A=tl(v);h.call(A)}}var v=df(n,u,e,0,null,!1,!1,"",hf);return e._reactRootContainer=v,e[gn]=v.current,pi(e.nodeType===8?e.parentNode:e),lr(),v}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var E=u;u=function(){var A=tl(P);E.call(A)}}var P=ua(e,0,!1,null,null,!1,!1,"",hf);return e._reactRootContainer=P,e[gn]=P.current,pi(e.nodeType===8?e.parentNode:e),lr(function(){el(n,P,o,u)}),P}function il(e,n,o,u,d){var h=o._reactRootContainer;if(h){var v=h;if(typeof d=="function"){var E=d;d=function(){var P=tl(v);E.call(P)}}el(n,v,e,d)}else v=Bg(o,n,e,d,u);return tl(v)}Ku=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Jr(n.pendingLanes);o!==0&&(Al(n,o|1),Tt(n,tt()),(De&6)===0&&(Mr=tt()+500,An()))}break;case 13:lr(function(){var u=wn(e,1);if(u!==null){var d=Ct();nn(u,e,1,d)}}),ca(e,1)}},Ml=function(e){if(e.tag===13){var n=wn(e,134217728);if(n!==null){var o=Ct();nn(n,e,134217728,o)}ca(e,134217728)}},Qu=function(e){if(e.tag===13){var n=Bn(e),o=wn(e,n);if(o!==null){var u=Ct();nn(o,e,n,u)}ca(e,n)}},Gu=function(){return Be},Yu=function(e,n){var o=Be;try{return Be=e,n()}finally{Be=o}},Tl=function(e,n,o){switch(n){case"input":if(Ve(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var u=o[n];if(u!==e&&u.form===e.form){var d=ko(u);if(!d)throw Error(i(90));_e(u),Ve(u,d)}}}break;case"textarea":Yi(e,o);break;case"select":n=o.value,n!=null&>(e,!!o.multiple,n,!1)}},Ru=ra,zu=lr;var Vg={usingClientEntryPoint:!1,Events:[gi,br,ko,_u,Ou,ra]},Li={findFiberByHostInstance:Jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hg={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fu(e),e===null?null:e.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||Ug,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 ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{to=ol.inject(Hg),on=ol}catch{}}return Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vg,Lt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fa(n))throw Error(i(200));return $g(e,n,null,o)},Lt.createRoot=function(e,n){if(!fa(e))throw Error(i(299));var o=!1,u="",d=pf;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=ua(e,1,!1,null,null,o,!1,u,d),e[gn]=n.current,pi(e.nodeType===8?e.parentNode:e),new da(n)},Lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=Fu(n),e=e===null?null:e.stateNode,e},Lt.flushSync=function(e){return lr(e)},Lt.hydrate=function(e,n,o){if(!rl(n))throw Error(i(200));return il(null,e,n,!0,o)},Lt.hydrateRoot=function(e,n,o){if(!fa(e))throw Error(i(405));var u=o!=null&&o.hydratedSources||null,d=!1,h="",v=pf;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),n=df(n,null,e,1,o??null,d,!1,h,v),e[gn]=n.current,pi(e),u)for(e=0;e<u.length;e++)o=u[e],d=o._getVersion,d=d(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,d]:n.mutableSourceEagerHydrationData.push(o,d);return new nl(n)},Lt.render=function(e,n,o){if(!rl(n))throw Error(i(200));return il(null,e,n,!1,o)},Lt.unmountComponentAtNode=function(e){if(!rl(e))throw Error(i(40));return e._reactRootContainer?(lr(function(){il(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1},Lt.unstable_batchedUpdates=ra,Lt.unstable_renderSubtreeIntoContainer=function(e,n,o,u){if(!rl(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return il(e,n,o,!1,u)},Lt.version="18.3.1-next-f1338f8080-20240426",Lt}var Sf;function Zg(){if(Sf)return ma.exports;Sf=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),ma.exports=Jg(),ma.exports}var Cf;function ey(){if(Cf)return ll;Cf=1;var t=Zg();return ll.createRoot=t.createRoot,ll.hydrateRoot=t.hydrateRoot,ll}var ty=ey();const ny=vl(ty),Te=t=>typeof t=="string",_i=()=>{let t,r;const i=new Promise((l,s)=>{t=l,r=s});return i.resolve=t,i.reject=r,i},bf=t=>t==null?"":""+t,ry=(t,r,i)=>{t.forEach(l=>{r[l]&&(i[l]=r[l])})},iy=/###/g,Ef=t=>t&&t.indexOf("###")>-1?t.replace(iy,"."):t,Nf=t=>!t||Te(t),$i=(t,r,i)=>{const l=Te(r)?r.split("."):r;let s=0;for(;s<l.length-1;){if(Nf(t))return{};const a=Ef(l[s]);!t[a]&&i&&(t[a]=new i),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++s}return Nf(t)?{}:{obj:t,k:Ef(l[s])}},jf=(t,r,i)=>{const{obj:l,k:s}=$i(t,r,Object);if(l!==void 0||r.length===1){l[s]=i;return}let a=r[r.length-1],c=r.slice(0,r.length-1),f=$i(t,c,Object);for(;f.obj===void 0&&c.length;)a=`${c[c.length-1]}.${a}`,c=c.slice(0,c.length-1),f=$i(t,c,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${a}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${a}`]=i},oy=(t,r,i,l)=>{const{obj:s,k:a}=$i(t,r,Object);s[a]=s[a]||[],s[a].push(i)},pl=(t,r)=>{const{obj:i,k:l}=$i(t,r);if(i&&Object.prototype.hasOwnProperty.call(i,l))return i[l]},ly=(t,r,i)=>{const l=pl(t,i);return l!==void 0?l:pl(r,i)},qp=(t,r,i)=>{for(const l in r)l!=="__proto__"&&l!=="constructor"&&(l in t?Te(t[l])||t[l]instanceof String||Te(r[l])||r[l]instanceof String?i&&(t[l]=r[l]):qp(t[l],r[l],i):t[l]=r[l]);return t},Fr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var sy={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ay=t=>Te(t)?t.replace(/[&<>"'\/]/g,r=>sy[r]):t;class uy{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){const i=this.regExpMap.get(r);if(i!==void 0)return i;const l=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,l),this.regExpQueue.push(r),l}}const cy=[" ",",","?","!",";"],dy=new uy(20),fy=(t,r,i)=>{r=r||"",i=i||"";const l=cy.filter(c=>r.indexOf(c)<0&&i.indexOf(c)<0);if(l.length===0)return!0;const s=dy.getRegExp(`(${l.map(c=>c==="?"?"\\?":c).join("|")})`);let a=!s.test(t);if(!a){const c=t.indexOf(i);c>0&&!s.test(t.substring(0,c))&&(a=!0)}return a},$a=(t,r,i=".")=>{if(!t)return;if(t[r])return Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;const l=r.split(i);let s=t;for(let a=0;a<l.length;){if(!s||typeof s!="object")return;let c,f="";for(let p=a;p<l.length;++p)if(p!==a&&(f+=i),f+=l[p],c=s[f],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&p<l.length-1)continue;a+=p-a+1;break}s=c}return s},Wi=t=>t==null?void 0:t.replace("_","-"),py={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,r){var i,l;(l=(i=console==null?void 0:console[t])==null?void 0:i.apply)==null||l.call(i,console,r)}};class hl{constructor(r,i={}){this.init(r,i)}init(r,i={}){this.prefix=i.prefix||"i18next:",this.logger=r||py,this.options=i,this.debug=i.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,i,l,s){return s&&!this.debug?null:(Te(r[0])&&(r[0]=`${l}${this.prefix} ${r[0]}`),this.logger[i](r))}create(r){return new hl(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new hl(this.logger,r)}}var fn=new hl;class kl{constructor(){this.observers={}}on(r,i){return r.split(" ").forEach(l=>{this.observers[l]||(this.observers[l]=new Map);const s=this.observers[l].get(i)||0;this.observers[l].set(i,s+1)}),this}off(r,i){if(this.observers[r]){if(!i){delete this.observers[r];return}this.observers[r].delete(i)}}emit(r,...i){this.observers[r]&&Array.from(this.observers[r].entries()).forEach(([s,a])=>{for(let c=0;c<a;c++)s(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,a])=>{for(let c=0;c<a;c++)s.apply(s,[r,...i])})}}class Pf extends kl{constructor(r,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){const i=this.options.ns.indexOf(r);i>-1&&this.options.ns.splice(i,1)}getResource(r,i,l,s={}){var m,g;const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;r.indexOf(".")>-1?f=r.split("."):(f=[r,i],l&&(Array.isArray(l)?f.push(...l):Te(l)&&a?f.push(...l.split(a)):f.push(l)));const p=pl(this.data,f);return!p&&!i&&!l&&r.indexOf(".")>-1&&(r=f[0],i=f[1],l=f.slice(2).join(".")),p||!c||!Te(l)?p:$a((g=(m=this.data)==null?void 0:m[r])==null?void 0:g[i],l,a)}addResource(r,i,l,s,a={silent:!1}){const c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let f=[r,i];l&&(f=f.concat(c?l.split(c):l)),r.indexOf(".")>-1&&(f=r.split("."),s=i,i=f[1]),this.addNamespaces(i),jf(this.data,f,s),a.silent||this.emit("added",r,i,l,s)}addResources(r,i,l,s={silent:!1}){for(const a in l)(Te(l[a])||Array.isArray(l[a]))&&this.addResource(r,i,a,l[a],{silent:!0});s.silent||this.emit("added",r,i,l)}addResourceBundle(r,i,l,s,a,c={silent:!1,skipCopy:!1}){let f=[r,i];r.indexOf(".")>-1&&(f=r.split("."),s=l,l=i,i=f[1]),this.addNamespaces(i);let p=pl(this.data,f)||{};c.skipCopy||(l=JSON.parse(JSON.stringify(l))),s?qp(p,l,a):p={...p,...l},jf(this.data,f,p),c.silent||this.emit("added",r,i,l)}removeResourceBundle(r,i){this.hasResourceBundle(r,i)&&delete this.data[r][i],this.removeNamespaces(i),this.emit("removed",r,i)}hasResourceBundle(r,i){return this.getResource(r,i)!==void 0}getResourceBundle(r,i){return i||(i=this.options.defaultNS),this.getResource(r,i)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){const i=this.getDataByLanguage(r);return!!(i&&Object.keys(i)||[]).find(s=>i[s]&&Object.keys(i[s]).length>0)}toJSON(){return this.data}}var Kp={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,r,i,l,s){return t.forEach(a=>{var c;r=((c=this.processors[a])==null?void 0:c.process(r,i,l,s))??r}),r}};const Qp=Symbol("i18next/PATH_KEY");function hy(){const t=[],r=Object.create(null);let i;return r.get=(l,s)=>{var a;return(a=i==null?void 0:i.revoke)==null||a.call(i),s===Qp?t:(t.push(s),i=Proxy.revocable(l,r),i.proxy)},Proxy.revocable(Object.create(null),r).proxy}function Ua(t,r){const{[Qp]:i}=t(hy());return i.join((r==null?void 0:r.keySeparator)??".")}const Tf={},xa=t=>!Te(t)&&typeof t!="boolean"&&typeof t!="number";class ml extends kl{constructor(r,i={}){super(),ry(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=fn.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r,i={interpolation:{}}){const l={...i};if(r==null)return!1;const s=this.resolve(r,l);if((s==null?void 0:s.res)===void 0)return!1;const a=xa(s.res);return!(l.returnObjects===!1&&a)}extractFromKey(r,i){let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=i.ns||this.options.defaultNS||[];const c=l&&r.indexOf(l)>-1,f=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!fy(r,l,s);if(c&&!f){const p=r.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:r,namespaces:Te(a)?[a]:a};const m=r.split(l);(l!==s||l===s&&this.options.ns.indexOf(m[0])>-1)&&(a=m.shift()),r=m.join(s)}return{key:r,namespaces:Te(a)?[a]:a}}translate(r,i,l){let s=typeof i=="object"?{...i}:i;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),r==null)return"";typeof r=="function"&&(r=Ua(r,{...this.options,...s})),Array.isArray(r)||(r=[String(r)]);const a=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:f,namespaces:p}=this.extractFromKey(r[r.length-1],s),m=p[p.length-1];let g=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const y=s.lng||this.language,k=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((y==null?void 0:y.toLowerCase())==="cimode")return k?a?{res:`${m}${g}${f}`,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:`${m}${g}${f}`:a?{res:f,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:f;const x=this.resolve(r,s);let j=x==null?void 0:x.res;const T=(x==null?void 0:x.usedKey)||f,I=(x==null?void 0:x.exactUsedKey)||f,b=["[object Number]","[object Function]","[object RegExp]"],$=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,U=s.count!==void 0&&!Te(s.count),H=ml.hasDefaultValue(s),R=U?this.pluralResolver.getSuffix(y,s.count,s):"",V=s.ordinal&&U?this.pluralResolver.getSuffix(y,s.count,{ordinal:!1}):"",K=U&&!s.ordinal&&s.count===0,G=K&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${R}`]||s[`defaultValue${V}`]||s.defaultValue;let X=j;D&&!j&&H&&(X=G);const oe=xa(X),M=Object.prototype.toString.apply(X);if(D&&X&&oe&&b.indexOf(M)<0&&!(Te($)&&Array.isArray(X))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,X,{...s,ns:p}):`key '${f} (${this.language})' returned an object instead of string.`;return a?(x.res=re,x.usedParams=this.getUsedParamsDetails(s),x):re}if(c){const re=Array.isArray(X),Y=re?[]:{},q=re?I:T;for(const fe in X)if(Object.prototype.hasOwnProperty.call(X,fe)){const pe=`${q}${c}${fe}`;H&&!j?Y[fe]=this.translate(pe,{...s,defaultValue:xa(G)?G[fe]:void 0,joinArrays:!1,ns:p}):Y[fe]=this.translate(pe,{...s,joinArrays:!1,ns:p}),Y[fe]===pe&&(Y[fe]=X[fe])}j=Y}}else if(D&&Te($)&&Array.isArray(j))j=j.join($),j&&(j=this.extendTranslation(j,r,s,l));else{let re=!1,Y=!1;!this.isValidLookup(j)&&H&&(re=!0,j=G),this.isValidLookup(j)||(Y=!0,j=f);const fe=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:j,pe=H&&G!==j&&this.options.updateMissing;if(Y||re||pe){if(this.logger.log(pe?"updateKey":"missingKey",y,m,f,pe?G:j),c){const N=this.resolve(f,{...s,keySeparator:!1});N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ee=[];const ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ue&&ue[0])for(let N=0;N<ue.length;N++)ee.push(ue[N]);else this.options.saveMissingTo==="all"?ee=this.languageUtils.toResolveHierarchy(s.lng||this.language):ee.push(s.lng||this.language);const S=(N,F,C)=>{var Ee;const Se=H&&C!==j?C:fe;this.options.missingKeyHandler?this.options.missingKeyHandler(N,m,F,Se,pe,s):(Ee=this.backendConnector)!=null&&Ee.saveMissing&&this.backendConnector.saveMissing(N,m,F,Se,pe,s),this.emit("missingKey",N,m,F,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?ee.forEach(N=>{const F=this.pluralResolver.getSuffixes(N,s);K&&s[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(C=>{S([N],f+C,s[`defaultValue${C}`]||G)})}):S(ee,f,G))}j=this.extendTranslation(j,r,s,x,l),Y&&j===f&&this.options.appendNamespaceToMissingKey&&(j=`${m}${g}${f}`),(Y||re)&&this.options.parseMissingKeyHandler&&(j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${f}`:f,re?j:void 0,s))}return a?(x.res=j,x.usedParams=this.getUsedParamsDetails(s),x):j}extendTranslation(r,i,l,s,a){var p,m;if((p=this.i18nFormat)!=null&&p.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...l},l.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init({...l,interpolation:{...this.options.interpolation,...l.interpolation}});const g=Te(r)&&(((m=l==null?void 0:l.interpolation)==null?void 0:m.skipOnVariables)!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(g){const x=r.match(this.interpolator.nestingRegexp);y=x&&x.length}let k=l.replace&&!Te(l.replace)?l.replace:l;if(this.options.interpolation.defaultVariables&&(k={...this.options.interpolation.defaultVariables,...k}),r=this.interpolator.interpolate(r,k,l.lng||this.language||s.usedLng,l),g){const x=r.match(this.interpolator.nestingRegexp),j=x&&x.length;y<j&&(l.nest=!1)}!l.lng&&s&&s.res&&(l.lng=this.language||s.usedLng),l.nest!==!1&&(r=this.interpolator.nest(r,(...x)=>(a==null?void 0:a[0])===x[0]&&!l.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${i[0]}`),null):this.translate(...x,i),l)),l.interpolation&&this.interpolator.reset()}const c=l.postProcess||this.options.postProcess,f=Te(c)?[c]:c;return r!=null&&(f!=null&&f.length)&&l.applyPostProcessor!==!1&&(r=Kp.handle(f,r,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(l)},...l}:l,this)),r}resolve(r,i={}){let l,s,a,c,f;return Te(r)&&(r=[r]),r.forEach(p=>{if(this.isValidLookup(l))return;const m=this.extractFromKey(p,i),g=m.key;s=g;let y=m.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const k=i.count!==void 0&&!Te(i.count),x=k&&!i.ordinal&&i.count===0,j=i.context!==void 0&&(Te(i.context)||typeof i.context=="number")&&i.context!=="",T=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);y.forEach(I=>{var b,$;this.isValidLookup(l)||(f=I,!Tf[`${T[0]}-${I}`]&&((b=this.utils)!=null&&b.hasLoadedNamespace)&&!(($=this.utils)!=null&&$.hasLoadedNamespace(f))&&(Tf[`${T[0]}-${I}`]=!0,this.logger.warn(`key "${s}" for languages "${T.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(D=>{var R;if(this.isValidLookup(l))return;c=D;const U=[g];if((R=this.i18nFormat)!=null&&R.addLookupKeys)this.i18nFormat.addLookupKeys(U,g,D,I,i);else{let V;k&&(V=this.pluralResolver.getSuffix(D,i.count,i));const K=`${this.options.pluralSeparator}zero`,G=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(k&&(i.ordinal&&V.indexOf(G)===0&&U.push(g+V.replace(G,this.options.pluralSeparator)),U.push(g+V),x&&U.push(g+K)),j){const X=`${g}${this.options.contextSeparator||"_"}${i.context}`;U.push(X),k&&(i.ordinal&&V.indexOf(G)===0&&U.push(X+V.replace(G,this.options.pluralSeparator)),U.push(X+V),x&&U.push(X+K))}}let H;for(;H=U.pop();)this.isValidLookup(l)||(a=H,l=this.getResource(D,I,H,i))}))})}),{res:l,usedKey:s,exactUsedKey:a,usedLng:c,usedNS:f}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,i,l,s={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(r,i,l,s):this.resourceStore.getResource(r,i,l,s)}getUsedParamsDetails(r={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],l=r.replace&&!Te(r.replace);let s=l?r.replace:r;if(l&&typeof r.count<"u"&&(s.count=r.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!l){s={...s};for(const a of i)delete s[a]}return s}static hasDefaultValue(r){const i="defaultValue";for(const l in r)if(Object.prototype.hasOwnProperty.call(r,l)&&i===l.substring(0,i.length)&&r[l]!==void 0)return!0;return!1}}class Lf{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fn.create("languageUtils")}getScriptPartFromCode(r){if(r=Wi(r),!r||r.indexOf("-")<0)return null;const i=r.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(r){if(r=Wi(r),!r||r.indexOf("-")<0)return r;const i=r.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(r){if(Te(r)&&r.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(r)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let i;return r.forEach(l=>{if(i)return;const s=this.formatLanguageCode(l);(!this.options.supportedLngs||this.isSupportedCode(s))&&(i=s)}),!i&&this.options.supportedLngs&&r.forEach(l=>{if(i)return;const s=this.getScriptPartFromCode(l);if(this.isSupportedCode(s))return i=s;const a=this.getLanguagePartFromCode(l);if(this.isSupportedCode(a))return i=a;i=this.options.supportedLngs.find(c=>{if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&(c.indexOf("-")>0&&a.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===a||c.indexOf(a)===0&&a.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(r,i){if(!r)return[];if(typeof r=="function"&&(r=r(i)),Te(r)&&(r=[r]),Array.isArray(r))return r;if(!i)return r.default||[];let l=r[i];return l||(l=r[this.getScriptPartFromCode(i)]),l||(l=r[this.formatLanguageCode(i)]),l||(l=r[this.getLanguagePartFromCode(i)]),l||(l=r.default),l||[]}toResolveHierarchy(r,i){const l=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],r),s=[],a=c=>{c&&(this.isSupportedCode(c)?s.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Te(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(r))):Te(r)&&a(this.formatLanguageCode(r)),l.forEach(c=>{s.indexOf(c)<0&&a(this.formatLanguageCode(c))}),s}}const If={zero:0,one:1,two:2,few:3,many:4,other:5},_f={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class my{constructor(r,i={}){this.languageUtils=r,this.options=i,this.logger=fn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,i={}){const l=Wi(r==="dev"?"en":r),s=i.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:l,type:s});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let c;try{c=new Intl.PluralRules(l,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),_f;if(!r.match(/-|_/))return _f;const p=this.languageUtils.getLanguagePartFromCode(r);c=this.getRule(p,i)}return this.pluralRulesCache[a]=c,c}needsPlural(r,i={}){let l=this.getRule(r,i);return l||(l=this.getRule("dev",i)),(l==null?void 0:l.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(r,i,l={}){return this.getSuffixes(r,l).map(s=>`${i}${s}`)}getSuffixes(r,i={}){let l=this.getRule(r,i);return l||(l=this.getRule("dev",i)),l?l.resolvedOptions().pluralCategories.sort((s,a)=>If[s]-If[a]).map(s=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(r,i,l={}){const s=this.getRule(r,l);return s?`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${s.select(i)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",i,l))}}const Of=(t,r,i,l=".",s=!0)=>{let a=ly(t,r,i);return!a&&s&&Te(i)&&(a=$a(t,i,l),a===void 0&&(a=$a(r,i,l))),a},va=t=>t.replace(/\$/g,"$$$$");class Rf{constructor(r={}){var i;this.logger=fn.create("interpolator"),this.options=r,this.format=((i=r==null?void 0:r.interpolation)==null?void 0:i.format)||(l=>l),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});const{escape:i,escapeValue:l,useRawValueToEscape:s,prefix:a,prefixEscaped:c,suffix:f,suffixEscaped:p,formatSeparator:m,unescapeSuffix:g,unescapePrefix:y,nestingPrefix:k,nestingPrefixEscaped:x,nestingSuffix:j,nestingSuffixEscaped:T,nestingOptionsSeparator:I,maxReplaces:b,alwaysFormat:$}=r.interpolation;this.escape=i!==void 0?i:ay,this.escapeValue=l!==void 0?l:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=a?Fr(a):c||"{{",this.suffix=f?Fr(f):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=k?Fr(k):x||Fr("$t("),this.nestingSuffix=j?Fr(j):T||Fr(")"),this.nestingOptionsSeparator=I||",",this.maxReplaces=b||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const r=(i,l)=>(i==null?void 0:i.source)===l?(i.lastIndex=0,i):new RegExp(l,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,i,l,s){var x;let a,c,f;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=j=>{if(j.indexOf(this.formatSeparator)<0){const $=Of(i,p,j,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,l,{...s,...i,interpolationkey:j}):$}const T=j.split(this.formatSeparator),I=T.shift().trim(),b=T.join(this.formatSeparator).trim();return this.format(Of(i,p,I,this.options.keySeparator,this.options.ignoreJSONStructure),b,l,{...s,...i,interpolationkey:I})};this.resetRegExp();const g=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,y=((x=s==null?void 0:s.interpolation)==null?void 0:x.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:j=>va(j)},{regex:this.regexp,safeValue:j=>this.escapeValue?va(this.escape(j)):va(j)}].forEach(j=>{for(f=0;a=j.regex.exec(r);){const T=a[1].trim();if(c=m(T),c===void 0)if(typeof g=="function"){const b=g(r,a,s);c=Te(b)?b:""}else if(s&&Object.prototype.hasOwnProperty.call(s,T))c="";else if(y){c=a[0];continue}else this.logger.warn(`missed to pass in variable ${T} for interpolating ${r}`),c="";else!Te(c)&&!this.useRawValueToEscape&&(c=bf(c));const I=j.safeValue(c);if(r=r.replace(a[0],I),y?(j.regex.lastIndex+=c.length,j.regex.lastIndex-=a[0].length):j.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),r}nest(r,i,l={}){let s,a,c;const f=(p,m)=>{const g=this.nestingOptionsSeparator;if(p.indexOf(g)<0)return p;const y=p.split(new RegExp(`${g}[ ]*{`));let k=`{${y[1]}`;p=y[0],k=this.interpolate(k,c);const x=k.match(/'/g),j=k.match(/"/g);(((x==null?void 0:x.length)??0)%2===0&&!j||j.length%2!==0)&&(k=k.replace(/'/g,'"'));try{c=JSON.parse(k),m&&(c={...m,...c})}catch(T){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,T),`${p}${g}${k}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,p};for(;s=this.nestingRegexp.exec(r);){let p=[];c={...l},c=c.replace&&!Te(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const m=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(m!==-1&&(p=s[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),s[1]=s[1].slice(0,m)),a=i(f.call(this,s[1].trim(),c),c),a&&s[0]===r&&!Te(a))return a;Te(a)||(a=bf(a)),a||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${r}`),a=""),p.length&&(a=p.reduce((g,y)=>this.format(g,y,l.lng,{...l,interpolationkey:s[1].trim()}),a.trim())),r=r.replace(s[0],a),this.regexp.lastIndex=0}return r}}const gy=t=>{let r=t.toLowerCase().trim();const i={};if(t.indexOf("(")>-1){const l=t.split("(");r=l[0].toLowerCase().trim();const s=l[1].substring(0,l[1].length-1);r==="currency"&&s.indexOf(":")<0?i.currency||(i.currency=s.trim()):r==="relativetime"&&s.indexOf(":")<0?i.range||(i.range=s.trim()):s.split(";").forEach(c=>{if(c){const[f,...p]=c.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();i[g]||(i[g]=m),m==="false"&&(i[g]=!1),m==="true"&&(i[g]=!0),isNaN(m)||(i[g]=parseInt(m,10))}})}return{formatName:r,formatOptions:i}},zf=t=>{const r={};return(i,l,s)=>{let a=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(a={...a,[s.interpolationkey]:void 0});const c=l+JSON.stringify(a);let f=r[c];return f||(f=t(Wi(l),s),r[c]=f),f(i)}},yy=t=>(r,i,l)=>t(Wi(i),l)(r);class xy{constructor(r={}){this.logger=fn.create("formatter"),this.options=r,this.init(r)}init(r,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const l=i.cacheInBuiltFormats?zf:yy;this.formats={number:l((s,a)=>{const c=new Intl.NumberFormat(s,{...a});return f=>c.format(f)}),currency:l((s,a)=>{const c=new Intl.NumberFormat(s,{...a,style:"currency"});return f=>c.format(f)}),datetime:l((s,a)=>{const c=new Intl.DateTimeFormat(s,{...a});return f=>c.format(f)}),relativetime:l((s,a)=>{const c=new Intl.RelativeTimeFormat(s,{...a});return f=>c.format(f,a.range||"day")}),list:l((s,a)=>{const c=new Intl.ListFormat(s,{...a});return f=>c.format(f)})}}add(r,i){this.formats[r.toLowerCase().trim()]=i}addCached(r,i){this.formats[r.toLowerCase().trim()]=zf(i)}format(r,i,l,s={}){const a=i.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(f=>f.indexOf(")")>-1)){const f=a.findIndex(p=>p.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,f)].join(this.formatSeparator)}return a.reduce((f,p)=>{var y;const{formatName:m,formatOptions:g}=gy(p);if(this.formats[m]){let k=f;try{const x=((y=s==null?void 0:s.formatParams)==null?void 0:y[s.interpolationkey])||{},j=x.locale||x.lng||s.locale||s.lng||l;k=this.formats[m](f,j,{...g,...s,...x})}catch(x){this.logger.warn(x)}return k}else this.logger.warn(`there was no format function for ${m}`);return f},r)}}const vy=(t,r)=>{t.pending[r]!==void 0&&(delete t.pending[r],t.pendingCount--)};class wy extends kl{constructor(r,i,l,s={}){var a,c;super(),this.backend=r,this.store=i,this.services=l,this.languageUtils=l.languageUtils,this.options=s,this.logger=fn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(c=(a=this.backend)==null?void 0:a.init)==null||c.call(a,l,s.backend,s)}queueLoad(r,i,l,s){const a={},c={},f={},p={};return r.forEach(m=>{let g=!0;i.forEach(y=>{const k=`${m}|${y}`;!l.reload&&this.store.hasResourceBundle(m,y)?this.state[k]=2:this.state[k]<0||(this.state[k]===1?c[k]===void 0&&(c[k]=!0):(this.state[k]=1,g=!1,c[k]===void 0&&(c[k]=!0),a[k]===void 0&&(a[k]=!0),p[y]===void 0&&(p[y]=!0)))}),g||(f[m]=!0)}),(Object.keys(a).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(a),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}loaded(r,i,l){const s=r.split("|"),a=s[0],c=s[1];i&&this.emit("failedLoading",a,c,i),!i&&l&&this.store.addResourceBundle(a,c,l,void 0,void 0,{skipCopy:!0}),this.state[r]=i?-1:2,i&&l&&(this.state[r]=0);const f={};this.queue.forEach(p=>{oy(p.loaded,[a],c),vy(p,r),i&&p.errors.push(i),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{f[m]||(f[m]={});const g=p.loaded[m];g.length&&g.forEach(y=>{f[m][y]===void 0&&(f[m][y]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(p=>!p.done)}read(r,i,l,s=0,a=this.retryTimeout,c){if(!r.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:i,fcName:l,tried:s,wait:a,callback:c});return}this.readingCalls++;const f=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(m&&g&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,r,i,l,s+1,a*2,c)},a);return}c(m,g)},p=this.backend[l].bind(this.backend);if(p.length===2){try{const m=p(r,i);m&&typeof m.then=="function"?m.then(g=>f(null,g)).catch(f):f(null,m)}catch(m){f(m)}return}return p(r,i,f)}prepareLoading(r,i,l={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();Te(r)&&(r=this.languageUtils.toResolveHierarchy(r)),Te(i)&&(i=[i]);const a=this.queueLoad(r,i,l,s);if(!a.toLoad.length)return a.pending.length||s(),null;a.toLoad.forEach(c=>{this.loadOne(c)})}load(r,i,l){this.prepareLoading(r,i,{},l)}reload(r,i,l){this.prepareLoading(r,i,{reload:!0},l)}loadOne(r,i=""){const l=r.split("|"),s=l[0],a=l[1];this.read(s,a,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${i}loading namespace ${a} for language ${s} failed`,c),!c&&f&&this.logger.log(`${i}loaded namespace ${a} for language ${s}`,f),this.loaded(r,c,f)})}saveMissing(r,i,l,s,a,c={},f=()=>{}){var p,m,g,y,k;if((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace&&!((y=(g=this.services)==null?void 0:g.utils)!=null&&y.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${l}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if((k=this.backend)!=null&&k.create){const x={...c,isUpdate:a},j=this.backend.create.bind(this.backend);if(j.length<6)try{let T;j.length===5?T=j(r,i,l,s,x):T=j(r,i,l,s),T&&typeof T.then=="function"?T.then(I=>f(null,I)).catch(f):f(null,T)}catch(T){f(T)}else j(r,i,l,s,f,x)}!r||!r[0]||this.store.addResource(r[0],i,l,s)}}}const wa=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let r={};if(typeof t[1]=="object"&&(r=t[1]),Te(t[1])&&(r.defaultValue=t[1]),Te(t[2])&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const i=t[3]||t[2];Object.keys(i).forEach(l=>{r[l]=i[l]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Af=t=>{var r,i;return Te(t.ns)&&(t.ns=[t.ns]),Te(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Te(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((i=(r=t.supportedLngs)==null?void 0:r.indexOf)==null?void 0:i.call(r,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},sl=()=>{},ky=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(i=>{typeof t[i]=="function"&&(t[i]=t[i].bind(t))})};class Ui extends kl{constructor(r={},i){if(super(),this.options=Af(r),this.services={},this.logger=fn,this.modules={external:[]},ky(this),i&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,i),this;setTimeout(()=>{this.init(r,i)},0)}}init(r={},i){this.isInitializing=!0,typeof r=="function"&&(i=r,r={}),r.defaultNS==null&&r.ns&&(Te(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const l=wa();this.options={...l,...this.options,...Af(r)},this.options.interpolation={...l.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=l.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?fn.init(s(this.modules.logger),this.options):fn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=xy;const g=new Lf(this.options);this.store=new Pf(this.options.resources,this.options);const y=this.services;y.logger=fn,y.resourceStore=this.store,y.languageUtils=g,y.pluralResolver=new my(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==l.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(y.formatter=s(m),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new Rf(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new wy(s(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(x,...j)=>{this.emit(x,...j)}),this.modules.languageDetector&&(y.languageDetector=s(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=s(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new ml(this.services,this.options),this.translator.on("*",(x,...j)=>{this.emit(x,...j)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,i||(i=sl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const f=_i(),p=()=>{const m=(g,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(y),i(g,y)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),f}loadResources(r,i=sl){var a,c;let l=i;const s=Te(r)?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return l();const f=[],p=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(y=>{y!=="cimode"&&f.indexOf(y)<0&&f.push(y)})};s?p(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>p(g)),(c=(a=this.options.preload)==null?void 0:a.forEach)==null||c.call(a,m=>p(m)),this.services.backendConnector.load(f,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),l(m)})}else l(null)}reloadResources(r,i,l){const s=_i();return typeof r=="function"&&(l=r,r=void 0),typeof i=="function"&&(l=i,i=void 0),r||(r=this.languages),i||(i=this.options.ns),l||(l=sl),this.services.backendConnector.reload(r,i,a=>{s.resolve(),l(a)}),s}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Kp.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1)){for(let i=0;i<this.languages.length;i++){const l=this.languages[i];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}!this.resolvedLanguage&&this.languages.indexOf(r)<0&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,i){this.isLanguageChangingTo=r;const l=_i();this.emit("languageChanging",r);const s=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},a=(f,p)=>{p?this.isLanguageChangingTo===r&&(s(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,l.resolve((...m)=>this.t(...m)),i&&i(f,(...m)=>this.t(...m))},c=f=>{var g,y;!r&&!f&&this.services.languageDetector&&(f=[]);const p=Te(f)?f:f&&f[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(Te(f)?[f]:f);m&&(this.language||s(m),this.translator.language||this.translator.changeLanguage(m),(y=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||y.call(g,m)),this.loadResources(m,k=>{a(k,m)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(r),l}getFixedT(r,i,l){const s=(a,c,...f)=>{let p;typeof c!="object"?p=this.options.overloadTranslationOptionHandler([a,c].concat(f)):p={...c},p.lng=p.lng||s.lng,p.lngs=p.lngs||s.lngs,p.ns=p.ns||s.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||l||s.keyPrefix);const m=this.options.keySeparator||".";let g;return p.keyPrefix&&Array.isArray(a)?g=a.map(y=>(typeof y=="function"&&(y=Ua(y,{...this.options,...c})),`${p.keyPrefix}${m}${y}`)):(typeof a=="function"&&(a=Ua(a,{...this.options,...c})),g=p.keyPrefix?`${p.keyPrefix}${m}${a}`:a),this.t(g,p)};return Te(r)?s.lng=r:s.lngs=r,s.ns=i,s.keyPrefix=l,s}t(...r){var i;return(i=this.translator)==null?void 0:i.translate(...r)}exists(...r){var i;return(i=this.translator)==null?void 0:i.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const l=i.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const c=(f,p)=>{const m=this.services.backendConnector.state[`${f}|${p}`];return m===-1||m===0||m===2};if(i.precheck){const f=i.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(l,r)&&(!s||c(a,r)))}loadNamespaces(r,i){const l=_i();return this.options.ns?(Te(r)&&(r=[r]),r.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{l.resolve(),i&&i(s)}),l):(i&&i(),Promise.resolve())}loadLanguages(r,i){const l=_i();Te(r)&&(r=[r]);const s=this.options.preload||[],a=r.filter(c=>s.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return a.length?(this.options.preload=s.concat(a),this.loadResources(c=>{l.resolve(),i&&i(c)}),l):(i&&i(),Promise.resolve())}dir(r){var s,a;if(r||(r=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!r)return"rtl";try{const c=new Intl.Locale(r);if(c&&c.getTextInfo){const f=c.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],l=((a=this.services)==null?void 0:a.languageUtils)||new Lf(wa());return r.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(l.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},i){const l=new Ui(r,i);return l.createInstance=Ui.createInstance,l}cloneInstance(r={},i=sl){const l=r.forkResourceStore;l&&delete r.forkResourceStore;const s={...this.options,...r,isClone:!0},a=new Ui(s);if((r.debug!==void 0||r.prefix!==void 0)&&(a.logger=a.logger.clone(r)),["store","services","language"].forEach(f=>{a[f]=this[f]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},l){const f=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((g,y)=>(g[y]={...p[m][y]},g),p[m]),p),{});a.store=new Pf(f,s),a.services.resourceStore=a.store}if(r.interpolation){const p={...wa().interpolation,...this.options.interpolation,...r.interpolation},m={...s,interpolation:p};a.services.interpolator=new Rf(m)}return a.translator=new ml(a.services,s),a.translator.on("*",(f,...p)=>{a.emit(f,...p)}),a.init(s,i),a.translator.options=s,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const bt=Ui.createInstance();bt.createInstance;bt.dir;bt.init;bt.loadResources;bt.reloadResources;bt.use;bt.changeLanguage;bt.getFixedT;bt.t;bt.exists;bt.setDefaultNamespace;bt.hasLoadedNamespace;bt.loadNamespaces;bt.loadLanguages;const Sy=(t,r,i,l)=>{var a,c,f,p;const s=[i,{code:r,...l||{}}];if((c=(a=t==null?void 0:t.services)==null?void 0:a.logger)!=null&&c.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);dr(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(p=(f=t==null?void 0:t.services)==null?void 0:f.logger)!=null&&p.warn?t.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Mf={},Gp=(t,r,i,l)=>{dr(i)&&Mf[i]||(dr(i)&&(Mf[i]=new Date),Sy(t,r,i,l))},Yp=(t,r)=>()=>{if(t.isInitialized)r();else{const i=()=>{setTimeout(()=>{t.off("initialized",i)},0),r()};t.on("initialized",i)}},Ba=(t,r,i)=>{t.loadNamespaces(r,Yp(t,i))},Df=(t,r,i,l)=>{if(dr(i)&&(i=[i]),t.options.preload&&t.options.preload.indexOf(r)>-1)return Ba(t,i,l);i.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(r,Yp(t,l))},Cy=(t,r,i={})=>!r.languages||!r.languages.length?(Gp(r,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:r.languages}),!0):r.hasLoadedNamespace(t,{lng:i.lng,precheck:(l,s)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!s(l.isLanguageChangingTo,t))return!1}}),dr=t=>typeof t=="string",by=t=>typeof t=="object"&&t!==null,Ey=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ny={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},jy=t=>Ny[t],Py=t=>t.replace(Ey,jy);let Va={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Py,transDefaultProps:void 0};const Ty=(t={})=>{Va={...Va,...t}},Ly=()=>Va;let Xp;const Iy=t=>{Xp=t},_y=()=>Xp,Oy={type:"3rdParty",init(t){Ty(t.options.react),Iy(t)}},Ry=_.createContext();class zy{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var ka={exports:{}},Sa={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* use-sync-external-store-shim.production.js
|
|
43
43
|
*
|
|
@@ -45,269 +45,274 @@ Error generating stack: `+h.message+`
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var Ff;function
|
|
48
|
+
*/var Ff;function Ay(){if(Ff)return Sa;Ff=1;var t=wl();function r(y,k){return y===k&&(y!==0||1/y===1/k)||y!==y&&k!==k}var i=typeof Object.is=="function"?Object.is:r,l=t.useState,s=t.useEffect,a=t.useLayoutEffect,c=t.useDebugValue;function f(y,k){var x=k(),j=l({inst:{value:x,getSnapshot:k}}),T=j[0].inst,I=j[1];return a(function(){T.value=x,T.getSnapshot=k,p(T)&&I({inst:T})},[y,x,k]),s(function(){return p(T)&&I({inst:T}),y(function(){p(T)&&I({inst:T})})},[y]),c(x),x}function p(y){var k=y.getSnapshot;y=y.value;try{var x=k();return!i(y,x)}catch{return!0}}function m(y,k){return k()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return Sa.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Sa}var $f;function My(){return $f||($f=1,ka.exports=Ay()),ka.exports}var Dy=My();const Fy=(t,r)=>dr(r)?r:by(r)&&dr(r.defaultValue)?r.defaultValue:Array.isArray(t)?t[t.length-1]:t,$y={t:Fy,ready:!1},Uy=()=>()=>{},Ot=(t,r={})=>{var G,X,oe;const{i18n:i}=r,{i18n:l,defaultNS:s}=_.useContext(Ry)||{},a=i||l||_y();a&&!a.reportNamespaces&&(a.reportNamespaces=new zy),a||Gp(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=_.useMemo(()=>{var M;return{...Ly(),...(M=a==null?void 0:a.options)==null?void 0:M.react,...r}},[a,r]),{useSuspense:f,keyPrefix:p}=c,m=s||((G=a==null?void 0:a.options)==null?void 0:G.defaultNS),g=dr(m)?[m]:m||["translation"],y=_.useMemo(()=>g,g);(oe=(X=a==null?void 0:a.reportNamespaces)==null?void 0:X.addUsedNamespaces)==null||oe.call(X,y);const k=_.useRef(0),x=_.useCallback(M=>{if(!a)return Uy;const{bindI18n:re,bindI18nStore:Y}=c,q=()=>{k.current+=1,M()};return re&&a.on(re,q),Y&&a.store.on(Y,q),()=>{re&&re.split(" ").forEach(fe=>a.off(fe,q)),Y&&Y.split(" ").forEach(fe=>a.store.off(fe,q))}},[a,c]),j=_.useRef(),T=_.useCallback(()=>{if(!a)return $y;const M=!!(a.isInitialized||a.initializedStoreOnce)&&y.every(ee=>Cy(ee,a,c)),re=r.lng||a.language,Y=k.current,q=j.current;if(q&&q.ready===M&&q.lng===re&&q.keyPrefix===p&&q.revision===Y)return q;const pe={t:a.getFixedT(re,c.nsMode==="fallback"?y:y[0],p),ready:M,lng:re,keyPrefix:p,revision:Y};return j.current=pe,pe},[a,y,p,c,r.lng]),[I,b]=_.useState(0),{t:$,ready:D}=Dy.useSyncExternalStore(x,T,T);_.useEffect(()=>{if(a&&!D&&!f){const M=()=>b(re=>re+1);r.lng?Df(a,r.lng,y,M):Ba(a,y,M)}},[a,r.lng,y,D,f,I]);const U=a||{},H=_.useRef(null),R=_.useRef(),V=M=>{const re=Object.getOwnPropertyDescriptors(M);re.__original&&delete re.__original;const Y=Object.create(Object.getPrototypeOf(M),re);if(!Object.prototype.hasOwnProperty.call(Y,"__original"))try{Object.defineProperty(Y,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return Y},K=_.useMemo(()=>{const M=U,re=M==null?void 0:M.language;let Y=M;M&&(H.current&&H.current.__original===M?R.current!==re?(Y=V(M),H.current=Y,R.current=re):Y=H.current:(Y=V(M),H.current=Y,R.current=re));const q=[$,Y,D];return q.t=$,q.i18n=Y,q.ready=D,q},[$,U,D,U.resolvedLanguage,U.language,U.languages]);if(a&&f&&!D)throw new Promise(M=>{const re=()=>M();r.lng?Df(a,r.lng,y,re):Ba(a,y,re)});return K},By="Claude Code uses its own tools and can't share chat history with other models",Vy="Delete chat history",Hy="This will permanently delete the chat history and remove all context from this session.",Wy="Collapse",qy="Expand",Ky="Start a conversation with the AI agent.",Qy='Try: "What is this project about?"',Gy="Thinking...",Yy="Ask the agent to do something...",Xy="Inspect element to attach",Jy="Attach image",Zy="attached elements",ex="attached image",tx="attached images",nx="see {{parts}}",rx="Select model",ix="Task completed",ox="Undone",lx="Review",sx="Loading...",ax="Undo",ux="Undoing...",cx="Undo last file change",dx="Undo file changes",fx="This will revert {{count}} file to its previous state.",px="This will revert {{count}} files to their previous state.",hx="Reverted: {{file}}",mx="Reverted {{count}} files: {{files}}",gx="Nothing to undo",yx="Undo failed",xx="{{count}} turn",vx="{{count}} turns",wx="Maximum turns reached",kx="Execution error",Sx="Budget limit exceeded",Cx="Output parsing failed",bx="{{count}} file changed",Ex="{{count}} files changed",Nx="No changes",jx="Read Plan",Px="View Plan",Tx="Leave feedback to revise...",Lx="Send",Ix="Proceed with Plan",_x="Questions answered",Ox="Awel has questions",Rx="Select all that apply",zx="Submit Answers",Ax="Next",Mx="{{count}} tool call",Dx="{{count}} tool calls",Fx="+{{count}} more",$x="Preview {{index}}",Ux="Confirm",Bx="Cancel",Vx="Conversation compacted",Hx="Session initialized",Wx="Attached {{index}}",qx="Click to re-attach this {{level}}",Kx="Toggle theme",Qx="Open",Gx="Editor",Yx="Select editor",Xx={modelSwitchDisabled:By,deleteChatHistory:Vy,deleteChatHistoryDescription:Hy,delete:"Delete",collapse:Wy,expand:qy,emptyState:Ky,emptyStateHint:Qy,thinking:Gy,inputPlaceholder:Yy,inspectElement:Xy,attachImage:Jy,attachedElements:Zy,attachedImage:ex,attachedImages:tx,seeAttached:nx,selectModel:rx,taskCompleted:ix,undone:ox,review:lx,loading:sx,undo:ax,undoing:ux,undoLastFileChange:cx,undoFileChanges:dx,undoConfirmDescription_one:fx,undoConfirmDescription_other:px,revertedFile:hx,revertedFiles:mx,nothingToUndo:gx,undoFailed:yx,turn_one:xx,turn_other:vx,errorMaxTurns:wx,errorDuringExecution:kx,errorMaxBudget:Sx,errorOutputParsing:Cx,fileChanged_one:bx,fileChanged_other:Ex,noChanges:Nx,readPlan:jx,viewPlan:Px,feedbackPlaceholder:Tx,send:Lx,proceedWithPlan:Ix,questionsAnswered:_x,auraHasQuestions:Ox,selectAllThatApply:Rx,submitAnswers:zx,next:Ax,toolCall_one:Mx,toolCall_other:Dx,plusMore:Fx,previewAlt:$x,confirm:Ux,cancel:Bx,conversationCompacted:Vx,sessionInitialized:Hx,attachedAlt:Wx,clickToReattach:qx,toggleTheme:Kx,openInEditor:Qx,editorLabel:Gx,noEditorSelected:Yx},Jx="Claude Code 使用独立的工具集,无法与其他模型共享聊天记录",Zx="删除聊天记录",e0="此操作将永久删除聊天记录并清除当前会话的所有上下文。",t0="收起面板",n0="展开面板",r0="您的 AI 助手已就绪。",i0='您可以试着下达指令,例如:"帮我分析这个项目的架构"',o0="正在深度思考...",l0="给 Agent 下达指令或描述任务...",s0="选取元素并加入上下文",a0="添加图片参考",u0="已关联的元素",c0="已关联的图片",d0="已关联的图片",f0="查阅 {{parts}}",p0="切换模型",h0="目标任务已达成",m0="操作已撤回",g0="复核结果",y0="正在处理中...",x0="撤回操作",v0="正在执行撤回...",w0="撤回最近一次文件改动",k0="撤回文件改动",S0="此操作将把 {{count}} 个文件回滚至变动前的状态。",C0="此操作将把 {{count}} 个文件回滚至变动前的状态。",b0="已成功回滚:{{file}}",E0="已成功回滚 {{count}} 个文件:{{files}}",N0="暂无可撤回的操作记录",j0="撤回执行失败",P0="第 {{count}} 轮交互",T0="第 {{count}} 轮交互",L0="已触发交互轮次上限",I0="任务执行期间发生异常",_0="算力消耗已超出预设上限",O0="结果解析异常",R0="{{count}} 个文件发生变动",z0="{{count}} 个文件发生变动",A0="未监测到任何变动",M0="审阅任务方案",D0="查看执行计划",F0="输入您的调整意见或反馈...",$0="发送指令",U0="批准并执行方案",B0="需求确认完毕",V0="Awel 需要与您进一步确认细节",H0="请勾选所有适用项",W0="提交确认信息",q0="下一步",K0="调用了 {{count}} 个工具",Q0="调用了 {{count}} 个工具",G0="以及另外 {{count}} 项",Y0="预览内容 {{index}}",X0="确认执行",J0="取消操作",Z0="长对话已精简归档",e1="Agent 协作环境初始化完成",t1="附件资源 {{index}}",n1="点击以重新关联此 {{level}}",r1="切换主题",i1="打开",o1="编辑器",l1="选择编辑器",s1={modelSwitchDisabled:Jx,deleteChatHistory:Zx,deleteChatHistoryDescription:e0,delete:"删除",collapse:t0,expand:n0,emptyState:r0,emptyStateHint:i0,thinking:o0,inputPlaceholder:l0,inspectElement:s0,attachImage:a0,attachedElements:u0,attachedImage:c0,attachedImages:d0,seeAttached:f0,selectModel:p0,taskCompleted:h0,undone:m0,review:g0,loading:y0,undo:x0,undoing:v0,undoLastFileChange:w0,undoFileChanges:k0,undoConfirmDescription_one:S0,undoConfirmDescription_other:C0,revertedFile:b0,revertedFiles:E0,nothingToUndo:N0,undoFailed:j0,turn_one:P0,turn_other:T0,errorMaxTurns:L0,errorDuringExecution:I0,errorMaxBudget:_0,errorOutputParsing:O0,fileChanged_one:R0,fileChanged_other:z0,noChanges:A0,readPlan:M0,viewPlan:D0,feedbackPlaceholder:F0,send:$0,proceedWithPlan:U0,questionsAnswered:B0,auraHasQuestions:V0,selectAllThatApply:H0,submitAnswers:W0,next:q0,toolCall_one:K0,toolCall_other:Q0,plusMore:G0,previewAlt:Y0,confirm:X0,cancel:J0,conversationCompacted:Z0,sessionInitialized:e1,attachedAlt:t1,clickToReattach:n1,toggleTheme:r1,openInEditor:i1,editorLabel:o1,noEditorSelected:l1};bt.use(Oy).init({resources:{en:{translation:Xx},zh:{translation:s1}},lng:navigator.language.startsWith("zh")?"zh":"en",fallbackLng:"en",interpolation:{escapeValue:!1}});/**
|
|
49
49
|
* @license lucide-react v0.469.0 - ISC
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/const
|
|
53
|
+
*/const a1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jp=(...t)=>t.filter((r,i,l)=>!!r&&r.trim()!==""&&l.indexOf(r)===i).join(" ").trim();/**
|
|
54
54
|
* @license lucide-react v0.469.0 - ISC
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the ISC license.
|
|
57
57
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var
|
|
58
|
+
*/var u1={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"};/**
|
|
59
59
|
* @license lucide-react v0.469.0 - ISC
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the ISC license.
|
|
62
62
|
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const
|
|
63
|
+
*/const c1=_.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:s="",children:a,iconNode:c,...f},p)=>_.createElement("svg",{ref:p,...u1,width:r,height:r,stroke:t,strokeWidth:l?Number(i)*24/Number(r):i,className:Jp("lucide",s),...f},[...c.map(([m,g])=>_.createElement(m,g)),...Array.isArray(a)?a:[a]]));/**
|
|
64
64
|
* @license lucide-react v0.469.0 - ISC
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the ISC license.
|
|
67
67
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/const
|
|
68
|
+
*/const ze=(t,r)=>{const i=_.forwardRef(({className:l,...s},a)=>_.createElement(c1,{ref:a,iconNode:r,className:Jp(`lucide-${a1(t)}`,l),...s}));return i.displayName=`${t}`,i};/**
|
|
69
69
|
* @license lucide-react v0.469.0 - ISC
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the ISC license.
|
|
72
72
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const
|
|
73
|
+
*/const d1=ze("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
74
74
|
* @license lucide-react v0.469.0 - ISC
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the ISC license.
|
|
77
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const Sl=
|
|
78
|
+
*/const Sl=ze("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
79
79
|
* @license lucide-react v0.469.0 - ISC
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the ISC license.
|
|
82
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const
|
|
83
|
+
*/const f1=ze("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
84
84
|
* @license lucide-react v0.469.0 - ISC
|
|
85
85
|
*
|
|
86
86
|
* This source code is licensed under the ISC license.
|
|
87
87
|
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const au=
|
|
88
|
+
*/const au=ze("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
89
89
|
* @license lucide-react v0.469.0 - ISC
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the ISC license.
|
|
92
92
|
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const
|
|
93
|
+
*/const p1=ze("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
94
94
|
* @license lucide-react v0.469.0 - ISC
|
|
95
95
|
*
|
|
96
96
|
* This source code is licensed under the ISC license.
|
|
97
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const uu=
|
|
98
|
+
*/const uu=ze("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"}]]);/**
|
|
99
99
|
* @license lucide-react v0.469.0 - ISC
|
|
100
100
|
*
|
|
101
101
|
* This source code is licensed under the ISC license.
|
|
102
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const
|
|
103
|
+
*/const Zp=ze("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
104
104
|
* @license lucide-react v0.469.0 - ISC
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the ISC license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const cu=
|
|
108
|
+
*/const cu=ze("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
109
109
|
* @license lucide-react v0.469.0 - ISC
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the ISC license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const
|
|
113
|
+
*/const h1=ze("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
114
114
|
* @license lucide-react v0.469.0 - ISC
|
|
115
115
|
*
|
|
116
116
|
* This source code is licensed under the ISC license.
|
|
117
117
|
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const
|
|
118
|
+
*/const m1=ze("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
119
119
|
* @license lucide-react v0.469.0 - ISC
|
|
120
120
|
*
|
|
121
121
|
* This source code is licensed under the ISC license.
|
|
122
122
|
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const
|
|
123
|
+
*/const g1=ze("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/**
|
|
124
124
|
* @license lucide-react v0.469.0 - ISC
|
|
125
125
|
*
|
|
126
126
|
* This source code is licensed under the ISC license.
|
|
127
127
|
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const
|
|
128
|
+
*/const y1=ze("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
|
|
129
129
|
* @license lucide-react v0.469.0 - ISC
|
|
130
130
|
*
|
|
131
131
|
* This source code is licensed under the ISC license.
|
|
132
132
|
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const
|
|
133
|
+
*/const x1=ze("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
134
134
|
* @license lucide-react v0.469.0 - ISC
|
|
135
135
|
*
|
|
136
136
|
* This source code is licensed under the ISC license.
|
|
137
137
|
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const
|
|
138
|
+
*/const v1=ze("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
139
139
|
* @license lucide-react v0.469.0 - ISC
|
|
140
140
|
*
|
|
141
141
|
* This source code is licensed under the ISC license.
|
|
142
142
|
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const
|
|
143
|
+
*/const eh=ze("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
144
144
|
* @license lucide-react v0.469.0 - ISC
|
|
145
145
|
*
|
|
146
146
|
* This source code is licensed under the ISC license.
|
|
147
147
|
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const
|
|
148
|
+
*/const w1=ze("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
|
|
149
149
|
* @license lucide-react v0.469.0 - ISC
|
|
150
150
|
*
|
|
151
151
|
* This source code is licensed under the ISC license.
|
|
152
152
|
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/const
|
|
153
|
+
*/const k1=ze("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
154
154
|
* @license lucide-react v0.469.0 - ISC
|
|
155
155
|
*
|
|
156
156
|
* This source code is licensed under the ISC license.
|
|
157
157
|
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const
|
|
158
|
+
*/const S1=ze("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
|
|
159
159
|
* @license lucide-react v0.469.0 - ISC
|
|
160
160
|
*
|
|
161
161
|
* This source code is licensed under the ISC license.
|
|
162
162
|
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/const
|
|
163
|
+
*/const C1=ze("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/**
|
|
164
164
|
* @license lucide-react v0.469.0 - ISC
|
|
165
165
|
*
|
|
166
166
|
* This source code is licensed under the ISC license.
|
|
167
167
|
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
-
*/const
|
|
168
|
+
*/const b1=ze("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
169
169
|
* @license lucide-react v0.469.0 - ISC
|
|
170
170
|
*
|
|
171
171
|
* This source code is licensed under the ISC license.
|
|
172
172
|
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/const
|
|
173
|
+
*/const E1=ze("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
|
|
174
174
|
* @license lucide-react v0.469.0 - ISC
|
|
175
175
|
*
|
|
176
176
|
* This source code is licensed under the ISC license.
|
|
177
177
|
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/const
|
|
178
|
+
*/const th=ze("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
179
179
|
* @license lucide-react v0.469.0 - ISC
|
|
180
180
|
*
|
|
181
181
|
* This source code is licensed under the ISC license.
|
|
182
182
|
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/const
|
|
183
|
+
*/const Uf=ze("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
184
184
|
* @license lucide-react v0.469.0 - ISC
|
|
185
185
|
*
|
|
186
186
|
* This source code is licensed under the ISC license.
|
|
187
187
|
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const
|
|
188
|
+
*/const N1=ze("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
189
189
|
* @license lucide-react v0.469.0 - ISC
|
|
190
190
|
*
|
|
191
191
|
* This source code is licensed under the ISC license.
|
|
192
192
|
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const
|
|
193
|
+
*/const j1=ze("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
194
194
|
* @license lucide-react v0.469.0 - ISC
|
|
195
195
|
*
|
|
196
196
|
* This source code is licensed under the ISC license.
|
|
197
197
|
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const
|
|
198
|
+
*/const P1=ze("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
199
199
|
* @license lucide-react v0.469.0 - ISC
|
|
200
200
|
*
|
|
201
201
|
* This source code is licensed under the ISC license.
|
|
202
202
|
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const
|
|
203
|
+
*/const T1=ze("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
|
|
204
204
|
* @license lucide-react v0.469.0 - ISC
|
|
205
205
|
*
|
|
206
206
|
* This source code is licensed under the ISC license.
|
|
207
207
|
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const
|
|
208
|
+
*/const L1=ze("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
209
209
|
* @license lucide-react v0.469.0 - ISC
|
|
210
210
|
*
|
|
211
211
|
* This source code is licensed under the ISC license.
|
|
212
212
|
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const
|
|
213
|
+
*/const I1=ze("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
214
214
|
* @license lucide-react v0.469.0 - ISC
|
|
215
215
|
*
|
|
216
216
|
* This source code is licensed under the ISC license.
|
|
217
217
|
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const
|
|
218
|
+
*/const Bf=ze("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
219
219
|
* @license lucide-react v0.469.0 - ISC
|
|
220
220
|
*
|
|
221
221
|
* This source code is licensed under the ISC license.
|
|
222
222
|
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const
|
|
223
|
+
*/const _1=ze("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
224
224
|
* @license lucide-react v0.469.0 - ISC
|
|
225
225
|
*
|
|
226
226
|
* This source code is licensed under the ISC license.
|
|
227
227
|
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const
|
|
228
|
+
*/const O1=ze("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
229
229
|
* @license lucide-react v0.469.0 - ISC
|
|
230
230
|
*
|
|
231
231
|
* This source code is licensed under the ISC license.
|
|
232
232
|
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const nh=
|
|
233
|
+
*/const nh=ze("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
234
234
|
* @license lucide-react v0.469.0 - ISC
|
|
235
235
|
*
|
|
236
236
|
* This source code is licensed under the ISC license.
|
|
237
237
|
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const
|
|
238
|
+
*/const rh=ze("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
239
239
|
* @license lucide-react v0.469.0 - ISC
|
|
240
240
|
*
|
|
241
241
|
* This source code is licensed under the ISC license.
|
|
242
242
|
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const
|
|
243
|
+
*/const du=ze("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
244
244
|
* @license lucide-react v0.469.0 - ISC
|
|
245
245
|
*
|
|
246
246
|
* This source code is licensed under the ISC license.
|
|
247
247
|
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const
|
|
248
|
+
*/const Vf=ze("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|
249
249
|
* @license lucide-react v0.469.0 - ISC
|
|
250
250
|
*
|
|
251
251
|
* This source code is licensed under the ISC license.
|
|
252
252
|
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/const fr=Re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ih(t){var r,i,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(i=ih(t[r]))&&(l&&(l+=" "),l+=i)}else for(i in t)t[i]&&(l&&(l+=" "),l+=i);return l}function oh(){for(var t,r,i=0,l="",s=arguments.length;i<s;i++)(t=arguments[i])&&(r=ih(t))&&(l&&(l+=" "),l+=r);return l}const Hf=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Wf=oh,E1=(t,r)=>i=>{var l;if((r==null?void 0:r.variants)==null)return Wf(t,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:a}=r,c=Object.keys(s).map(m=>{const g=i==null?void 0:i[m],y=a==null?void 0:a[m];if(g===null)return null;const w=Hf(g)||Hf(y);return s[m][w]}),f=i&&Object.entries(i).reduce((m,g)=>{let[y,w]=g;return w===void 0||(m[y]=w),m},{}),p=r==null||(l=r.compoundVariants)===null||l===void 0?void 0:l.reduce((m,g)=>{let{class:y,className:w,...x}=g;return Object.entries(x).every(N=>{let[L,_]=N;return Array.isArray(_)?_.includes({...a,...f}[L]):{...a,...f}[L]===_})?[...m,y,w]:m},[]);return Wf(t,c,p,i==null?void 0:i.class,i==null?void 0:i.className)},fu="-",N1=t=>{const r=j1(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:c=>{const f=c.split(fu);return f[0]===""&&f.length!==1&&f.shift(),lh(f,r)||P1(c)},getConflictingClassGroupIds:(c,f)=>{const p=i[c]||[];return f&&l[c]?[...p,...l[c]]:p}}},lh=(t,r)=>{var c;if(t.length===0)return r.classGroupId;const i=t[0],l=r.nextPart.get(i),s=l?lh(t.slice(1),l):void 0;if(s)return s;if(r.validators.length===0)return;const a=t.join(fu);return(c=r.validators.find(({validator:f})=>f(a)))==null?void 0:c.classGroupId},qf=/^\[(.+)\]$/,P1=t=>{if(qf.test(t)){const r=qf.exec(t)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},j1=t=>{const{theme:r,prefix:i}=t,l={nextPart:new Map,validators:[]};return L1(Object.entries(t.classGroups),i).forEach(([a,c])=>{Ha(c,l,a,r)}),l},Ha=(t,r,i,l)=>{t.forEach(s=>{if(typeof s=="string"){const a=s===""?r:Kf(r,s);a.classGroupId=i;return}if(typeof s=="function"){if(T1(s)){Ha(s(l),r,i,l);return}r.validators.push({validator:s,classGroupId:i});return}Object.entries(s).forEach(([a,c])=>{Ha(c,Kf(r,a),i,l)})})},Kf=(t,r)=>{let i=t;return r.split(fu).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},T1=t=>t.isThemeGetter,L1=(t,r)=>r?t.map(([i,l])=>{const s=l.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,f])=>[r+c,f])):a);return[i,s]}):t,I1=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,l=new Map;const s=(a,c)=>{i.set(a,c),r++,r>t&&(r=0,l=i,i=new Map)};return{get(a){let c=i.get(a);if(c!==void 0)return c;if((c=l.get(a))!==void 0)return s(a,c),c},set(a,c){i.has(a)?i.set(a,c):s(a,c)}}},sh="!",_1=t=>{const{separator:r,experimentalParseClassName:i}=t,l=r.length===1,s=r[0],a=r.length,c=f=>{const p=[];let m=0,g=0,y;for(let _=0;_<f.length;_++){let j=f[_];if(m===0){if(j===s&&(l||f.slice(_,_+a)===r)){p.push(f.slice(g,_)),g=_+a;continue}if(j==="/"){y=_;continue}}j==="["?m++:j==="]"&&m--}const w=p.length===0?f:f.substring(g),x=w.startsWith(sh),N=x?w.substring(1):w,L=y&&y>g?y-g:void 0;return{modifiers:p,hasImportantModifier:x,baseClassName:N,maybePostfixModifierPosition:L}};return i?f=>i({className:f,parseClassName:c}):c},O1=t=>{if(t.length<=1)return t;const r=[];let i=[];return t.forEach(l=>{l[0]==="["?(r.push(...i.sort(),l),i=[]):i.push(l)}),r.push(...i.sort()),r},R1=t=>({cache:I1(t.cacheSize),parseClassName:_1(t),...N1(t)}),z1=/\s+/,A1=(t,r)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:s}=r,a=[],c=t.trim().split(z1);let f="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{modifiers:g,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:x}=i(m);let N=!!x,L=l(N?w.substring(0,x):w);if(!L){if(!N){f=m+(f.length>0?" "+f:f);continue}if(L=l(w),!L){f=m+(f.length>0?" "+f:f);continue}N=!1}const _=O1(g).join(":"),j=y?_+sh:_,V=j+L;if(a.includes(V))continue;a.push(V);const F=s(L,N);for(let B=0;B<F.length;++B){const H=F[B];a.push(j+H)}f=m+(f.length>0?" "+f:f)}return f};function M1(){let t=0,r,i,l="";for(;t<arguments.length;)(r=arguments[t++])&&(i=ah(r))&&(l&&(l+=" "),l+=i);return l}const ah=t=>{if(typeof t=="string")return t;let r,i="";for(let l=0;l<t.length;l++)t[l]&&(r=ah(t[l]))&&(i&&(i+=" "),i+=r);return i};function D1(t,...r){let i,l,s,a=c;function c(p){const m=r.reduce((g,y)=>y(g),t());return i=R1(m),l=i.cache.get,s=i.cache.set,a=f,f(p)}function f(p){const m=l(p);if(m)return m;const g=A1(p,i);return s(p,g),g}return function(){return a(M1.apply(null,arguments))}}const Ye=t=>{const r=i=>i[t]||[];return r.isThemeGetter=!0,r},uh=/^\[(?:([a-z-]+):)?(.+)\]$/i,F1=/^\d+\/\d+$/,$1=new Set(["px","full","screen"]),U1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B1=/\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$/,V1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,H1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,W1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=t=>Vr(t)||$1.has(t)||F1.test(t),qn=t=>qr(t,"length",Z1),Vr=t=>!!t&&!Number.isNaN(Number(t)),Ca=t=>qr(t,"number",Vr),Oi=t=>!!t&&Number.isInteger(Number(t)),q1=t=>t.endsWith("%")&&Vr(t.slice(0,-1)),Le=t=>uh.test(t),Kn=t=>U1.test(t),K1=new Set(["length","size","percentage"]),Q1=t=>qr(t,K1,ch),G1=t=>qr(t,"position",ch),Y1=new Set(["image","url"]),X1=t=>qr(t,Y1,tv),J1=t=>qr(t,"",ev),Ri=()=>!0,qr=(t,r,i)=>{const l=uh.exec(t);return l?l[1]?typeof r=="string"?l[1]===r:r.has(l[1]):i(l[2]):!1},Z1=t=>B1.test(t)&&!V1.test(t),ch=()=>!1,ev=t=>H1.test(t),tv=t=>W1.test(t),nv=()=>{const t=Ye("colors"),r=Ye("spacing"),i=Ye("blur"),l=Ye("brightness"),s=Ye("borderColor"),a=Ye("borderRadius"),c=Ye("borderSpacing"),f=Ye("borderWidth"),p=Ye("contrast"),m=Ye("grayscale"),g=Ye("hueRotate"),y=Ye("invert"),w=Ye("gap"),x=Ye("gradientColorStops"),N=Ye("gradientColorStopPositions"),L=Ye("inset"),_=Ye("margin"),j=Ye("opacity"),V=Ye("padding"),F=Ye("saturate"),B=Ye("scale"),H=Ye("sepia"),I=Ye("skew"),$=Ye("space"),J=Ye("translate"),G=()=>["auto","contain","none"],Y=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",Le,r],M=()=>[Le,r],re=()=>["",bn,qn],Q=()=>["auto",Vr,Le],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",Le],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[Vr,Le];return{cacheSize:500,separator:":",theme:{colors:[Ri],spacing:[bn,qn],blur:["none","",Kn,Le],brightness:E(),borderColor:[t],borderRadius:["none","","full",Kn,Le],borderSpacing:M(),borderWidth:re(),contrast:E(),grayscale:ue(),hueRotate:E(),invert:ue(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[q1,qn],inset:se(),margin:se(),opacity:E(),padding:M(),saturate:E(),scale:E(),sepia:ue(),skew:E(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[Kn]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:[...q(),Le]}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oi,Le]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",Oi,Le]}],"grid-cols":[{"grid-cols":[Ri]}],"col-start-end":[{col:["auto",{span:["full",Oi,Le]},Le]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[Ri]}],"row-start-end":[{row:["auto",{span:[Oi,Le]},Le]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[V]}],px:[{px:[V]}],py:[{py:[V]}],ps:[{ps:[V]}],pe:[{pe:[V]}],pt:[{pt:[V]}],pr:[{pr:[V]}],pb:[{pb:[V]}],pl:[{pl:[V]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,r]}],"min-w":[{"min-w":[Le,r,"min","max","fit"]}],"max-w":[{"max-w":[Le,r,"none","full","min","max","fit","prose",{screen:[Kn]},Kn]}],h:[{h:[Le,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Kn,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ca]}],"font-family":[{font:[Ri]}],"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",Le]}],"line-clamp":[{"line-clamp":["none",Vr,Ca]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bn,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",bn,qn]}],"underline-offset":[{"underline-offset":["auto",bn,Le]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],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",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),G1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Q1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},X1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:de()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[bn,Le]}],"outline-w":[{outline:[bn,qn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[bn,qn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Kn,J1]}],"shadow-color":[{shadow:[Ri]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Kn,Le]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[F]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[Oi,Le]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",t]}],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",Le]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Le]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[bn,qn,Ca]}],stroke:[{stroke:[t,"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"]}}},rv=D1(nv);function pr(...t){return rv(oh(t))}const iv=E1("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-red-500 text-white hover:bg-red-500/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cr=R.forwardRef(({className:t,variant:r,size:i,...l},s)=>k.jsx("button",{className:pr(iv({variant:r,size:i,className:t})),ref:s,...l}));cr.displayName="Button";function dh({title:t,description:r,confirmLabel:i,cancelLabel:l,variant:s="danger",onConfirm:a,onCancel:c}){const{t:f}=Ot(),p=i??f("confirm"),m=l??f("cancel"),g=R.useCallback(w=>{w.key==="Escape"&&c()},[c]);R.useEffect(()=>(document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)),[g]);const y=s==="danger"?"bg-red-600 hover:bg-red-500 text-white":"bg-amber-600 hover:bg-amber-500 text-white";return k.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:w=>{w.stopPropagation(),w.target===w.currentTarget&&c()},children:k.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-sm shadow-xl mx-4 p-4",children:[k.jsx("h3",{className:"text-sm font-medium text-foreground",children:t}),k.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:r}),k.jsxs("div",{className:"mt-4 flex gap-2 justify-end",children:[k.jsx("button",{onClick:c,className:"text-xs px-3 py-1.5 rounded bg-muted text-muted-foreground hover:bg-accent transition-colors",children:m}),k.jsx("button",{onClick:a,className:`text-xs px-3 py-1.5 rounded transition-colors ${y}`,children:p})]})]})})}const Qf=80;function ov(t){return!t.sourceTrace||t.sourceTrace.length===0?null:t.sourceTrace.map(r=>` ${r.source}${r.line?`:${r.line}`:""}`).join(`
|
|
254
|
-
|
|
253
|
+
*/const ih=ze("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
254
|
+
* @license lucide-react v0.469.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const fr=ze("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function oh(t){var r,i,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(i=oh(t[r]))&&(l&&(l+=" "),l+=i)}else for(i in t)t[i]&&(l&&(l+=" "),l+=i);return l}function lh(){for(var t,r,i=0,l="",s=arguments.length;i<s;i++)(t=arguments[i])&&(r=oh(t))&&(l&&(l+=" "),l+=r);return l}const Hf=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Wf=lh,R1=(t,r)=>i=>{var l;if((r==null?void 0:r.variants)==null)return Wf(t,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:a}=r,c=Object.keys(s).map(m=>{const g=i==null?void 0:i[m],y=a==null?void 0:a[m];if(g===null)return null;const k=Hf(g)||Hf(y);return s[m][k]}),f=i&&Object.entries(i).reduce((m,g)=>{let[y,k]=g;return k===void 0||(m[y]=k),m},{}),p=r==null||(l=r.compoundVariants)===null||l===void 0?void 0:l.reduce((m,g)=>{let{class:y,className:k,...x}=g;return Object.entries(x).every(j=>{let[T,I]=j;return Array.isArray(I)?I.includes({...a,...f}[T]):{...a,...f}[T]===I})?[...m,y,k]:m},[]);return Wf(t,c,p,i==null?void 0:i.class,i==null?void 0:i.className)},fu="-",z1=t=>{const r=M1(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:c=>{const f=c.split(fu);return f[0]===""&&f.length!==1&&f.shift(),sh(f,r)||A1(c)},getConflictingClassGroupIds:(c,f)=>{const p=i[c]||[];return f&&l[c]?[...p,...l[c]]:p}}},sh=(t,r)=>{var c;if(t.length===0)return r.classGroupId;const i=t[0],l=r.nextPart.get(i),s=l?sh(t.slice(1),l):void 0;if(s)return s;if(r.validators.length===0)return;const a=t.join(fu);return(c=r.validators.find(({validator:f})=>f(a)))==null?void 0:c.classGroupId},qf=/^\[(.+)\]$/,A1=t=>{if(qf.test(t)){const r=qf.exec(t)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},M1=t=>{const{theme:r,prefix:i}=t,l={nextPart:new Map,validators:[]};return F1(Object.entries(t.classGroups),i).forEach(([a,c])=>{Ha(c,l,a,r)}),l},Ha=(t,r,i,l)=>{t.forEach(s=>{if(typeof s=="string"){const a=s===""?r:Kf(r,s);a.classGroupId=i;return}if(typeof s=="function"){if(D1(s)){Ha(s(l),r,i,l);return}r.validators.push({validator:s,classGroupId:i});return}Object.entries(s).forEach(([a,c])=>{Ha(c,Kf(r,a),i,l)})})},Kf=(t,r)=>{let i=t;return r.split(fu).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},D1=t=>t.isThemeGetter,F1=(t,r)=>r?t.map(([i,l])=>{const s=l.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,f])=>[r+c,f])):a);return[i,s]}):t,$1=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,l=new Map;const s=(a,c)=>{i.set(a,c),r++,r>t&&(r=0,l=i,i=new Map)};return{get(a){let c=i.get(a);if(c!==void 0)return c;if((c=l.get(a))!==void 0)return s(a,c),c},set(a,c){i.has(a)?i.set(a,c):s(a,c)}}},ah="!",U1=t=>{const{separator:r,experimentalParseClassName:i}=t,l=r.length===1,s=r[0],a=r.length,c=f=>{const p=[];let m=0,g=0,y;for(let I=0;I<f.length;I++){let b=f[I];if(m===0){if(b===s&&(l||f.slice(I,I+a)===r)){p.push(f.slice(g,I)),g=I+a;continue}if(b==="/"){y=I;continue}}b==="["?m++:b==="]"&&m--}const k=p.length===0?f:f.substring(g),x=k.startsWith(ah),j=x?k.substring(1):k,T=y&&y>g?y-g:void 0;return{modifiers:p,hasImportantModifier:x,baseClassName:j,maybePostfixModifierPosition:T}};return i?f=>i({className:f,parseClassName:c}):c},B1=t=>{if(t.length<=1)return t;const r=[];let i=[];return t.forEach(l=>{l[0]==="["?(r.push(...i.sort(),l),i=[]):i.push(l)}),r.push(...i.sort()),r},V1=t=>({cache:$1(t.cacheSize),parseClassName:U1(t),...z1(t)}),H1=/\s+/,W1=(t,r)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:s}=r,a=[],c=t.trim().split(H1);let f="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{modifiers:g,hasImportantModifier:y,baseClassName:k,maybePostfixModifierPosition:x}=i(m);let j=!!x,T=l(j?k.substring(0,x):k);if(!T){if(!j){f=m+(f.length>0?" "+f:f);continue}if(T=l(k),!T){f=m+(f.length>0?" "+f:f);continue}j=!1}const I=B1(g).join(":"),b=y?I+ah:I,$=b+T;if(a.includes($))continue;a.push($);const D=s(T,j);for(let U=0;U<D.length;++U){const H=D[U];a.push(b+H)}f=m+(f.length>0?" "+f:f)}return f};function q1(){let t=0,r,i,l="";for(;t<arguments.length;)(r=arguments[t++])&&(i=uh(r))&&(l&&(l+=" "),l+=i);return l}const uh=t=>{if(typeof t=="string")return t;let r,i="";for(let l=0;l<t.length;l++)t[l]&&(r=uh(t[l]))&&(i&&(i+=" "),i+=r);return i};function K1(t,...r){let i,l,s,a=c;function c(p){const m=r.reduce((g,y)=>y(g),t());return i=V1(m),l=i.cache.get,s=i.cache.set,a=f,f(p)}function f(p){const m=l(p);if(m)return m;const g=W1(p,i);return s(p,g),g}return function(){return a(q1.apply(null,arguments))}}const Ye=t=>{const r=i=>i[t]||[];return r.isThemeGetter=!0,r},ch=/^\[(?:([a-z-]+):)?(.+)\]$/i,Q1=/^\d+\/\d+$/,G1=new Set(["px","full","screen"]),Y1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,X1=/\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$/,J1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Z1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ev=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=t=>Vr(t)||G1.has(t)||Q1.test(t),qn=t=>qr(t,"length",av),Vr=t=>!!t&&!Number.isNaN(Number(t)),Ca=t=>qr(t,"number",Vr),Oi=t=>!!t&&Number.isInteger(Number(t)),tv=t=>t.endsWith("%")&&Vr(t.slice(0,-1)),Le=t=>ch.test(t),Kn=t=>Y1.test(t),nv=new Set(["length","size","percentage"]),rv=t=>qr(t,nv,dh),iv=t=>qr(t,"position",dh),ov=new Set(["image","url"]),lv=t=>qr(t,ov,cv),sv=t=>qr(t,"",uv),Ri=()=>!0,qr=(t,r,i)=>{const l=ch.exec(t);return l?l[1]?typeof r=="string"?l[1]===r:r.has(l[1]):i(l[2]):!1},av=t=>X1.test(t)&&!J1.test(t),dh=()=>!1,uv=t=>Z1.test(t),cv=t=>ev.test(t),dv=()=>{const t=Ye("colors"),r=Ye("spacing"),i=Ye("blur"),l=Ye("brightness"),s=Ye("borderColor"),a=Ye("borderRadius"),c=Ye("borderSpacing"),f=Ye("borderWidth"),p=Ye("contrast"),m=Ye("grayscale"),g=Ye("hueRotate"),y=Ye("invert"),k=Ye("gap"),x=Ye("gradientColorStops"),j=Ye("gradientColorStopPositions"),T=Ye("inset"),I=Ye("margin"),b=Ye("opacity"),$=Ye("padding"),D=Ye("saturate"),U=Ye("scale"),H=Ye("sepia"),R=Ye("skew"),V=Ye("space"),K=Ye("translate"),G=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",Le,r],M=()=>[Le,r],re=()=>["",bn,qn],Y=()=>["auto",Vr,Le],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],fe=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",Le],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[Vr,Le];return{cacheSize:500,separator:":",theme:{colors:[Ri],spacing:[bn,qn],blur:["none","",Kn,Le],brightness:N(),borderColor:[t],borderRadius:["none","","full",Kn,Le],borderSpacing:M(),borderWidth:re(),contrast:N(),grayscale:ue(),hueRotate:N(),invert:ue(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[tv,qn],inset:oe(),margin:oe(),opacity:N(),padding:M(),saturate:N(),scale:N(),sepia:ue(),skew:N(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[Kn]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:[...q(),Le]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oi,Le]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",Oi,Le]}],"grid-cols":[{"grid-cols":[Ri]}],"col-start-end":[{col:["auto",{span:["full",Oi,Le]},Le]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[Ri]}],"row-start-end":[{row:["auto",{span:[Oi,Le]},Le]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],pe:[{pe:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],ms:[{ms:[I]}],me:[{me:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"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",Le,r]}],"min-w":[{"min-w":[Le,r,"min","max","fit"]}],"max-w":[{"max-w":[Le,r,"none","full","min","max","fit","prose",{screen:[Kn]},Kn]}],h:[{h:[Le,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Kn,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ca]}],"font-family":[{font:[Ri]}],"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",Le]}],"line-clamp":[{"line-clamp":["none",Vr,Ca]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bn,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",bn,qn]}],"underline-offset":[{"underline-offset":["auto",bn,Le]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],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",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),iv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lv]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...fe(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:fe()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...fe()]}],"outline-offset":[{"outline-offset":[bn,Le]}],"outline-w":[{outline:[bn,qn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[bn,qn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Kn,sv]}],"shadow-color":[{shadow:[Ri]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Kn,Le]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[D]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-x":[{"scale-x":[U]}],"scale-y":[{"scale-y":[U]}],rotate:[{rotate:[Oi,Le]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",t]}],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",Le]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Le]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[bn,qn,Ca]}],stroke:[{stroke:[t,"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"]}}},fv=K1(dv);function pr(...t){return fv(lh(t))}const pv=R1("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-red-500 text-white hover:bg-red-500/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cr=_.forwardRef(({className:t,variant:r,size:i,...l},s)=>w.jsx("button",{className:pr(pv({variant:r,size:i,className:t})),ref:s,...l}));cr.displayName="Button";function fh({title:t,description:r,confirmLabel:i,cancelLabel:l,variant:s="danger",onConfirm:a,onCancel:c}){const{t:f}=Ot(),p=i??f("confirm"),m=l??f("cancel"),g=_.useCallback(k=>{k.key==="Escape"&&c()},[c]);_.useEffect(()=>(document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)),[g]);const y=s==="danger"?"bg-red-600 hover:bg-red-500 text-white":"bg-amber-600 hover:bg-amber-500 text-white";return w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:k=>{k.stopPropagation(),k.target===k.currentTarget&&c()},children:w.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-sm shadow-xl mx-4 p-4",children:[w.jsx("h3",{className:"text-sm font-medium text-foreground",children:t}),w.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:r}),w.jsxs("div",{className:"mt-4 flex gap-2 justify-end",children:[w.jsx("button",{onClick:c,className:"text-xs px-3 py-1.5 rounded bg-muted text-muted-foreground hover:bg-accent transition-colors",children:m}),w.jsx("button",{onClick:a,className:`text-xs px-3 py-1.5 rounded transition-colors ${y}`,children:p})]})]})})}const Qf=80;function hv(t){return!t.sourceTrace||t.sourceTrace.length===0?null:t.sourceTrace.map(r=>` ${r.source}${r.line?`:${r.line}`:""}`).join(`
|
|
259
|
+
`)}function mv({entries:t,onEntryClick:r,onDismiss:i,onClearAll:l}){const{t:s}=Ot(),[a,c]=_.useState(!1),f=x=>{r(x),c(!1)},p=t.filter(x=>x.level==="error").length,m=t.filter(x=>x.level==="warning").length,g=t.length>0,y=t.slice(-5).reverse(),k=t.length-y.length;return w.jsxs("div",{className:"mx-4 my-1.5 flex flex-col-reverse gap-2",children:[w.jsxs("button",{onClick:()=>g&&c(x=>!x),className:`flex items-center gap-2 px-2.5 py-1.5 rounded-md border border-border bg-card/60 text-xs transition-colors ${g?"hover:bg-muted/60 cursor-pointer":"cursor-default"}`,children:[w.jsxs("span",{className:"flex items-center gap-1 text-red-600/60 dark:text-red-400/60 font-medium",children:[w.jsx(cu,{className:"w-3 h-3"}),p]}),w.jsxs("span",{className:"flex items-center gap-1 text-yellow-600 dark:text-yellow-400/60 font-medium",children:[w.jsx(du,{className:"w-3 h-3"}),m]}),g&&w.jsxs(w.Fragment,{children:[w.jsx("span",{role:"button",onClick:x=>{x.stopPropagation(),l()},className:"flex items-center gap-1 ml-auto text-muted-foreground hover:text-foreground transition-colors",children:w.jsx(rh,{className:"w-3 h-3"})}),w.jsx(Sl,{className:`w-3 h-3 text-muted-foreground transition-transform ${a?"":"rotate-180"}`})]})]}),a&&w.jsxs("div",{className:"flex flex-col gap-1",children:[w.jsx("div",{className:"flex flex-col gap-1 max-h-[140px] overflow-y-auto",children:y.map(x=>w.jsx(gv,{entry:x,onEntryClick:f,onDismiss:i},x.id))}),k>0&&w.jsx("span",{className:"text-[11px] text-muted-foreground px-1",children:s("plusMore",{count:k})})]})]})}function gv({entry:t,onEntryClick:r,onDismiss:i}){const[l,s]=_.useState(!1),a=_.useRef(null),c=hv(t),f=()=>{if(!a.current)return;const p=a.current.getBoundingClientRect();return{position:"fixed",bottom:window.innerHeight-p.top+6,left:p.left}};return w.jsxs("div",{ref:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[w.jsxs("button",{onClick:()=>r(t),className:`group flex items-start gap-1.5 px-2.5 py-2 rounded-md border text-left text-xs transition-colors cursor-pointer w-full ${t.level==="error"?"border-red-300/60 bg-red-100/60 text-red-800 hover:bg-red-200/60 dark:border-red-800/60 dark:bg-red-950/40 dark:text-red-200 dark:hover:bg-red-900/40":"border-yellow-300/60 bg-yellow-100/60 text-yellow-800 hover:bg-yellow-200/60 dark:border-yellow-800/60 dark:bg-yellow-950/40 dark:text-yellow-200 dark:hover:bg-yellow-900/40"}`,children:[t.level==="error"?w.jsx(cu,{className:"w-3.5 h-3.5 mt-0.5 shrink-0 text-red-600 dark:text-red-400"}):w.jsx(du,{className:"w-3.5 h-3.5 mt-0.5 shrink-0 text-yellow-600 dark:text-yellow-400"}),w.jsx("span",{className:"flex-1 min-w-0 truncate",children:t.message.length>Qf?t.message.slice(0,Qf)+"…":t.message}),t.source&&w.jsxs("span",{className:"shrink-0 text-[10px] text-muted-foreground font-mono",children:[t.source.split("/").pop(),t.line?`:${t.line}`:""]}),t.count>1&&w.jsx("span",{className:`shrink-0 px-1.5 py-0.5 rounded text-[10px] font-medium ${t.level==="error"?"bg-red-200/60 text-red-800 dark:bg-red-800/60 dark:text-red-200":"bg-yellow-200/60 text-yellow-800 dark:bg-yellow-800/60 dark:text-yellow-200"}`,children:t.count}),w.jsx("span",{role:"button",onClick:p=>{p.stopPropagation(),i(t.id)},className:"shrink-0 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-foreground transition-opacity",children:w.jsx(fr,{className:"w-3.5 h-3.5"})})]}),l&&c&&w.jsxs("div",{style:f(),className:"z-[9999] w-72 max-h-48 overflow-y-auto rounded-md border border-border bg-card p-2.5 text-xs text-foreground shadow-lg whitespace-pre-wrap break-words font-mono pointer-events-none",children:[t.message,`
|
|
255
260
|
|
|
256
|
-
`,c]})]})}function av({images:t,currentIndex:r,onClose:i,onNavigate:l}){const{t:s}=Ot(),a=t.length>1,c=R.useCallback(()=>{r<t.length-1&&l(r+1)},[r,t.length,l]),f=R.useCallback(()=>{r>0&&l(r-1)},[r,l]);return R.useEffect(()=>{const p=m=>{m.key==="Escape"&&i(),m.key==="ArrowRight"&&c(),m.key==="ArrowLeft"&&f()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[i,c,f]),k.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80",onClick:i,children:[k.jsx("button",{onClick:i,className:"absolute top-4 right-4 text-white/70 hover:text-white transition-colors",children:k.jsx(fr,{className:"w-6 h-6"})}),a&&r>0&&k.jsx("button",{onClick:p=>{p.stopPropagation(),f()},className:"absolute left-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white transition-colors",children:k.jsx(i1,{className:"w-8 h-8"})}),k.jsx("img",{src:t[r],alt:s("previewAlt",{index:r+1}),className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg",onClick:p=>p.stopPropagation()}),a&&r<t.length-1&&k.jsx("button",{onClick:p=>{p.stopPropagation(),c()},className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white transition-colors",children:k.jsx(au,{className:"w-8 h-8"})}),a&&k.jsxs("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-white/70 text-sm",children:[r+1," / ",t.length]})]})}function uv(t,r){const i={};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const cv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fv={};function Gf(t,r){return(fv.jsx?dv:cv).test(t)}const pv=/[ \t\n\f\r]/g;function hv(t){return typeof t=="object"?t.type==="text"?Yf(t.value):!1:Yf(t)}function Yf(t){return t.replace(pv,"")===""}class Qi{constructor(r,i,l){this.normal=i,this.property=r,l&&(this.space=l)}}Qi.prototype.normal={};Qi.prototype.property={};Qi.prototype.space=void 0;function fh(t,r){const i={},l={};for(const s of t)Object.assign(i,s.property),Object.assign(l,s.normal);return new Qi(i,l,r)}function Wa(t){return t.toLowerCase()}class Rt{constructor(r,i){this.attribute=i,this.property=r}}Rt.prototype.attribute="";Rt.prototype.booleanish=!1;Rt.prototype.boolean=!1;Rt.prototype.commaOrSpaceSeparated=!1;Rt.prototype.commaSeparated=!1;Rt.prototype.defined=!1;Rt.prototype.mustUseProperty=!1;Rt.prototype.number=!1;Rt.prototype.overloadedBoolean=!1;Rt.prototype.property="";Rt.prototype.spaceSeparated=!1;Rt.prototype.space=void 0;let mv=0;const Ie=hr(),it=hr(),qa=hr(),ie=hr(),qe=hr(),Hr=hr(),$t=hr();function hr(){return 2**++mv}const Ka=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:it,commaOrSpaceSeparated:$t,commaSeparated:Hr,number:ie,overloadedBoolean:qa,spaceSeparated:qe},Symbol.toStringTag,{value:"Module"})),ba=Object.keys(Ka);class pu extends Rt{constructor(r,i,l,s){let a=-1;if(super(r,i),Xf(this,"space",s),typeof l=="number")for(;++a<ba.length;){const c=ba[a];Xf(this,ba[a],(l&Ka[c])===Ka[c])}}}pu.prototype.defined=!0;function Xf(t,r,i){i&&(t[r]=i)}function Kr(t){const r={},i={};for(const[l,s]of Object.entries(t.properties)){const a=new pu(l,t.transform(t.attributes||{},l),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(a.mustUseProperty=!0),r[l]=a,i[Wa(l)]=l,i[Wa(a.attribute)]=l}return new Qi(r,i,t.space)}const ph=Kr({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:qe,ariaCurrent:null,ariaDescribedBy:qe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:qe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:qe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qe,ariaLevel:ie,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:qe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:qe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:it,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function hh(t,r){return r in t?t[r]:r}function mh(t,r){return hh(t,r.toLowerCase())}const gv=Kr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hr,acceptCharset:qe,accessKey:qe,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:qe,autoFocus:Ie,autoPlay:Ie,blocking:qe,capture:null,charSet:null,checked:Ie,cite:null,className:qe,cols:ie,colSpan:null,content:null,contentEditable:it,controls:Ie,controlsList:qe,coords:ie|Hr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:qa,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:qe,height:ie,hidden:qa,high:ie,href:null,hrefLang:null,htmlFor:qe,httpEquiv:qe,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:qe,itemRef:qe,itemScope:Ie,itemType:qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ie,optimum:ie,pattern:null,ping:qe,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:qe,required:Ie,reversed:Ie,rows:ie,rowSpan:ie,sandbox:qe,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:it,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:mh}),yv=Kr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$t,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Hr,g2:Hr,glyphName:Hr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hh}),gh=Kr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),yh=Kr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mh}),xh=Kr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),xv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vv=/[A-Z]/g,Jf=/-[a-z]/g,wv=/^data[-\w.:]+$/i;function kv(t,r){const i=Wa(r);let l=r,s=Rt;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&wv.test(r)){if(r.charAt(4)==="-"){const a=r.slice(5).replace(Jf,Cv);l="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=r.slice(4);if(!Jf.test(a)){let c=a.replace(vv,Sv);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=pu}return new s(l,r)}function Sv(t){return"-"+t.toLowerCase()}function Cv(t){return t.charAt(1).toUpperCase()}const bv=fh([ph,gv,gh,yh,xh],"html"),hu=fh([ph,yv,gh,yh,xh],"svg");function Ev(t){return t.join(" ").trim()}var $r={},Ea,Zf;function Nv(){if(Zf)return Ea;Zf=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
|
|
257
|
-
`,m="/",g="*",y="",w="comment",x="declaration";function N(_,j){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];j=j||{};var V=1,F=1;function B(Q){var q=Q.match(r);q&&(V+=q.length);var de=Q.lastIndexOf(p);F=~de?Q.length-de:F+Q.length}function H(){var Q={line:V,column:F};return function(q){return q.position=new I(Q),G(),q}}function I(Q){this.start=Q,this.end={line:V,column:F},this.source=j.source}I.prototype.content=_;function $(Q){var q=new Error(j.source+":"+V+":"+F+": "+Q);if(q.reason=Q,q.filename=j.source,q.line=V,q.column=F,q.source=_,!j.silent)throw q}function J(Q){var q=Q.exec(_);if(q){var de=q[0];return B(de),_=_.slice(de.length),q}}function G(){J(i)}function Y(Q){var q;for(Q=Q||[];q=se();)q!==!1&&Q.push(q);return Q}function se(){var Q=H();if(!(m!=_.charAt(0)||g!=_.charAt(1))){for(var q=2;y!=_.charAt(q)&&(g!=_.charAt(q)||m!=_.charAt(q+1));)++q;if(q+=2,y===_.charAt(q-1))return $("End of comment missing");var de=_.slice(2,q-2);return F+=2,B(de),_=_.slice(q),F+=2,Q({type:w,comment:de})}}function M(){var Q=H(),q=J(l);if(q){if(se(),!J(s))return $("property missing ':'");var de=J(a),fe=Q({type:x,property:L(q[0].replace(t,y)),value:de?L(de[0].replace(t,y)):y});return J(c),fe}}function re(){var Q=[];Y(Q);for(var q;q=M();)q!==!1&&(Q.push(q),Y(Q));return Q}return G(),re()}function L(_){return _?_.replace(f,y):y}return Ea=N,Ea}var ep;function Pv(){if(ep)return $r;ep=1;var t=$r&&$r.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty($r,"__esModule",{value:!0}),$r.default=i;const r=t(Nv());function i(l,s){let a=null;if(!l||typeof l!="string")return a;const c=(0,r.default)(l),f=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:g}=p;f?s(m,g,p):g&&(a=a||{},a[m]=g)}),a}return $r}var zi={},tp;function jv(){if(tp)return zi;tp=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(m){return!m||i.test(m)||t.test(m)},c=function(m,g){return g.toUpperCase()},f=function(m,g){return"".concat(g,"-")},p=function(m,g){return g===void 0&&(g={}),a(m)?m:(m=m.toLowerCase(),g.reactCompat?m=m.replace(s,f):m=m.replace(l,f),m.replace(r,c))};return zi.camelCase=p,zi}var Ai,np;function Tv(){if(np)return Ai;np=1;var t=Ai&&Ai.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=t(Pv()),i=jv();function l(s,a){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(f,p){f&&p&&(c[(0,i.camelCase)(f,a)]=p)}),c}return l.default=l,Ai=l,Ai}var Lv=Tv();const Iv=vl(Lv),vh=wh("end"),mu=wh("start");function wh(t){return r;function r(i){const l=i&&i.position&&i.position[t]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function _v(t){const r=mu(t),i=vh(t);if(r&&i)return{start:r,end:i}}function Bi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?rp(t.position):"start"in t||"end"in t?rp(t):"line"in t||"column"in t?Qa(t):""}function Qa(t){return ip(t&&t.line)+":"+ip(t&&t.column)}function rp(t){return Qa(t&&t.start)+"-"+Qa(t&&t.end)}function ip(t){return t&&typeof t=="number"?t:1}class kt extends Error{constructor(r,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let s="",a={},c=!1;if(i&&("line"in i&&"column"in i?a={place:i}:"start"in i&&"end"in i?a={place:i}:"type"in i?a={ancestors:[i],place:i.position}:a={...i}),typeof r=="string"?s=r:!a.cause&&r&&(c=!0,s=r.message,a.cause=r),!a.ruleId&&!a.source&&typeof l=="string"){const p=l.indexOf(":");p===-1?a.ruleId=l:(a.source=l.slice(0,p),a.ruleId=l.slice(p+1))}if(!a.place&&a.ancestors&&a.ancestors){const p=a.ancestors[a.ancestors.length-1];p&&(a.place=p.position)}const f=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=Bi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=c&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}kt.prototype.file="";kt.prototype.name="";kt.prototype.reason="";kt.prototype.message="";kt.prototype.stack="";kt.prototype.column=void 0;kt.prototype.line=void 0;kt.prototype.ancestors=void 0;kt.prototype.cause=void 0;kt.prototype.fatal=void 0;kt.prototype.place=void 0;kt.prototype.ruleId=void 0;kt.prototype.source=void 0;const gu={}.hasOwnProperty,Ov=new Map,Rv=/[A-Z]/g,zv=new Set(["table","tbody","thead","tfoot","tr"]),Av=new Set(["td","th"]),kh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Mv(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let l;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=Wv(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=Hv(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:l,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?hu:bv,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},a=Sh(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function Sh(t,r,i){if(r.type==="element")return Dv(t,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Fv(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Uv(t,r,i);if(r.type==="mdxjsEsm")return $v(t,r);if(r.type==="root")return Bv(t,r,i);if(r.type==="text")return Vv(t,r)}function Dv(t,r,i){const l=t.schema;let s=l;r.tagName.toLowerCase()==="svg"&&l.space==="html"&&(s=hu,t.schema=s),t.ancestors.push(r);const a=bh(t,r.tagName,!1),c=qv(t,r);let f=xu(t,r);return zv.has(r.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!hv(p):!0})),Ch(t,c,a,r),yu(c,f),t.ancestors.pop(),t.schema=l,t.create(r,a,c,i)}function Fv(t,r){if(r.data&&r.data.estree&&t.evaluater){const l=r.data.estree.body[0];return l.type,t.evaluater.evaluateExpression(l.expression)}qi(t,r.position)}function $v(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);qi(t,r.position)}function Uv(t,r,i){const l=t.schema;let s=l;r.name==="svg"&&l.space==="html"&&(s=hu,t.schema=s),t.ancestors.push(r);const a=r.name===null?t.Fragment:bh(t,r.name,!0),c=Kv(t,r),f=xu(t,r);return Ch(t,c,a,r),yu(c,f),t.ancestors.pop(),t.schema=l,t.create(r,a,c,i)}function Bv(t,r,i){const l={};return yu(l,xu(t,r)),t.create(r,t.Fragment,l,i)}function Vv(t,r){return r.value}function Ch(t,r,i,l){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(r.node=l)}function yu(t,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(t.children=i)}}function Hv(t,r,i){return l;function l(s,a,c,f){const m=Array.isArray(c.children)?i:r;return f?m(a,c,f):m(a,c)}}function Wv(t,r){return i;function i(l,s,a,c){const f=Array.isArray(a.children),p=mu(l);return r(s,a,c,f,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function qv(t,r){const i={};let l,s;for(s in r.properties)if(s!=="children"&&gu.call(r.properties,s)){const a=Qv(t,s,r.properties[s]);if(a){const[c,f]=a;t.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&Av.has(r.tagName)?l=f:i[c]=f}}if(l){const a=i.style||(i.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function Kv(t,r){const i={};for(const l of r.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];a.type;const c=a.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,t.evaluater.evaluateExpression(f.argument))}else qi(t,r.position);else{const s=l.name;let a;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&t.evaluater){const f=l.value.data.estree.body[0];f.type,a=t.evaluater.evaluateExpression(f.expression)}else qi(t,r.position);else a=l.value===null?!0:l.value;i[s]=a}return i}function xu(t,r){const i=[];let l=-1;const s=t.passKeys?new Map:Ov;for(;++l<r.children.length;){const a=r.children[l];let c;if(t.passKeys){const p=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(p){const m=s.get(p)||0;c=p+"-"+m,s.set(p,m+1)}}const f=Sh(t,a,c);f!==void 0&&i.push(f)}return i}function Qv(t,r,i){const l=kv(t.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?uv(i):Ev(i)),l.property==="style"){let s=typeof i=="object"?i:Gv(t,String(i));return t.stylePropertyNameCase==="css"&&(s=Yv(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&l.space?xv[l.property]||l.property:l.attribute,i]}}function Gv(t,r){try{return Iv(r,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const l=i,s=new kt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=kh+"#cannot-parse-style-attribute",s}}function bh(t,r,i){let l;if(!i)l={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let a=-1,c;for(;++a<s.length;){const f=Gf(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(a&&f.type==="Literal"),optional:!1}:f}l=c}else l=Gf(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(l.type==="Literal"){const s=l.value;return gu.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(l);qi(t)}function qi(t,r){const i=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=kh+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Yv(t){const r={};let i;for(i in t)gu.call(t,i)&&(r[Xv(i)]=t[i]);return r}function Xv(t){let r=t.replace(Rv,Jv);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Jv(t){return"-"+t.toLowerCase()}const Na={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Zv={};function ew(t,r){const i=Zv,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Eh(t,l,s)}function Eh(t,r,i){if(tw(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return op(t.children,r,i)}return Array.isArray(t)?op(t,r,i):""}function op(t,r,i){const l=[];let s=-1;for(;++s<t.length;)l[s]=Eh(t[s],r,i);return l.join("")}function tw(t){return!!(t&&typeof t=="object")}const lp=document.createElement("i");function vu(t){const r="&"+t+";";lp.innerHTML=r;const i=lp.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===r?!1:i}function pn(t,r,i,l){const s=t.length;let a=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,l.length<1e4)c=Array.from(l),c.unshift(r,i),t.splice(...c);else for(i&&t.splice(r,i);a<l.length;)c=l.slice(a,a+1e4),c.unshift(r,0),t.splice(...c),a+=1e4,r+=1e4}function Gt(t,r){return t.length>0?(pn(t,t.length,0,r),t):r}const sp={}.hasOwnProperty;function nw(t){const r={};let i=-1;for(;++i<t.length;)rw(r,t[i]);return r}function rw(t,r){let i;for(i in r){const s=(sp.call(t,i)?t[i]:void 0)||(t[i]={}),a=r[i];let c;if(a)for(c in a){sp.call(s,c)||(s[c]=[]);const f=a[c];iw(s[c],Array.isArray(f)?f:f?[f]:[])}}}function iw(t,r){let i=-1;const l=[];for(;++i<r.length;)(r[i].add==="after"?t:l).push(r[i]);pn(t,0,0,l)}function Nh(t,r){const i=Number.parseInt(t,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Wr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dn=Gn(/[A-Za-z]/),Ut=Gn(/[\dA-Za-z]/),ow=Gn(/[#-'*+\--9=?A-Z^-~]/);function Ga(t){return t!==null&&(t<32||t===127)}const Ya=Gn(/\d/),lw=Gn(/[\dA-Fa-f]/),sw=Gn(/[!-/:-@[-`{-~]/);function je(t){return t!==null&&t<-2}function _t(t){return t!==null&&(t<0||t===32)}function Ue(t){return t===-2||t===-1||t===32}const aw=Gn(new RegExp("\\p{P}|\\p{S}","u")),uw=Gn(/\s/);function Gn(t){return r;function r(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Qr(t){const r=[];let i=-1,l=0,s=0;for(;++i<t.length;){const a=t.charCodeAt(i);let c="";if(a===37&&Ut(t.charCodeAt(i+1))&&Ut(t.charCodeAt(i+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(c=String.fromCharCode(a));else if(a>55295&&a<57344){const f=t.charCodeAt(i+1);a<56320&&f>56319&&f<57344?(c=String.fromCharCode(a,f),s=1):c="�"}else c=String.fromCharCode(a);c&&(r.push(t.slice(l,i),encodeURIComponent(c)),l=i+s+1,c=""),s&&(i+=s,s=0)}return r.join("")+t.slice(l)}function Ke(t,r,i,l){const s=l?l-1:Number.POSITIVE_INFINITY;let a=0;return c;function c(p){return Ue(p)?(t.enter(i),f(p)):r(p)}function f(p){return Ue(p)&&a++<s?(t.consume(p),f):(t.exit(i),r(p))}}const cw={tokenize:dw};function dw(t){const r=t.attempt(this.parser.constructs.contentInitial,l,s);let i;return r;function l(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Ke(t,r,"linePrefix")}function s(f){return t.enter("paragraph"),a(f)}function a(f){const p=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,c(f)}function c(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return je(f)?(t.consume(f),t.exit("chunkText"),a):(t.consume(f),c)}}const fw={tokenize:pw},ap={tokenize:hw};function pw(t){const r=this,i=[];let l=0,s,a,c;return f;function f(F){if(l<i.length){const B=i[l];return r.containerState=B[1],t.attempt(B[0].continuation,p,m)(F)}return m(F)}function p(F){if(l++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&V();const B=r.events.length;let H=B,I;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){I=r.events[H][1].end;break}j(l);let $=B;for(;$<r.events.length;)r.events[$][1].end={...I},$++;return pn(r.events,H+1,0,r.events.slice(B)),r.events.length=$,m(F)}return f(F)}function m(F){if(l===i.length){if(!s)return w(F);if(s.currentConstruct&&s.currentConstruct.concrete)return N(F);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(ap,g,y)(F)}function g(F){return s&&V(),j(l),w(F)}function y(F){return r.parser.lazy[r.now().line]=l!==i.length,c=r.now().offset,N(F)}function w(F){return r.containerState={},t.attempt(ap,x,N)(F)}function x(F){return l++,i.push([r.currentConstruct,r.containerState]),w(F)}function N(F){if(F===null){s&&V(),j(0),t.consume(F);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),L(F)}function L(F){if(F===null){_(t.exit("chunkFlow"),!0),j(0),t.consume(F);return}return je(F)?(t.consume(F),_(t.exit("chunkFlow")),l=0,r.interrupt=void 0,f):(t.consume(F),L)}function _(F,B){const H=r.sliceStream(F);if(B&&H.push(null),F.previous=a,a&&(a.next=F),a=F,s.defineSkip(F.start),s.write(H),r.parser.lazy[F.start.line]){let I=s.events.length;for(;I--;)if(s.events[I][1].start.offset<c&&(!s.events[I][1].end||s.events[I][1].end.offset>c))return;const $=r.events.length;let J=$,G,Y;for(;J--;)if(r.events[J][0]==="exit"&&r.events[J][1].type==="chunkFlow"){if(G){Y=r.events[J][1].end;break}G=!0}for(j(l),I=$;I<r.events.length;)r.events[I][1].end={...Y},I++;pn(r.events,J+1,0,r.events.slice($)),r.events.length=I}}function j(F){let B=i.length;for(;B-- >F;){const H=i[B];r.containerState=H[1],H[0].exit.call(r,t)}i.length=F}function V(){s.write([null]),a=void 0,s=void 0,r.containerState._closeFlow=void 0}}function hw(t,r,i){return Ke(t,t.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function up(t){if(t===null||_t(t)||uw(t))return 1;if(aw(t))return 2}function wu(t,r,i){const l=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!l.includes(a)&&(r=a(r,i),l.push(a))}return r}const Xa={name:"attention",resolveAll:mw,tokenize:gw};function mw(t,r){let i=-1,l,s,a,c,f,p,m,g;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(l=i;l--;)if(t[l][0]==="exit"&&t[l][1].type==="attentionSequence"&&t[l][1]._open&&r.sliceSerialize(t[l][1]).charCodeAt(0)===r.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[l][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[l][1].end.offset-t[l][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;p=t[l][1].end.offset-t[l][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const y={...t[l][1].end},w={...t[i][1].start};cp(y,-p),cp(w,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...t[l][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:w},a={type:p>1?"strongText":"emphasisText",start:{...t[l][1].end},end:{...t[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},t[l][1].end={...c.start},t[i][1].start={...f.end},m=[],t[l][1].end.offset-t[l][1].start.offset&&(m=Gt(m,[["enter",t[l][1],r],["exit",t[l][1],r]])),m=Gt(m,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",a,r]]),m=Gt(m,wu(r.parser.constructs.insideSpan.null,t.slice(l+1,i),r)),m=Gt(m,[["exit",a,r],["enter",f,r],["exit",f,r],["exit",s,r]]),t[i][1].end.offset-t[i][1].start.offset?(g=2,m=Gt(m,[["enter",t[i][1],r],["exit",t[i][1],r]])):g=0,pn(t,l-1,i-l+3,m),i=l+m.length-g-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function gw(t,r){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,s=up(l);let a;return c;function c(p){return a=p,t.enter("attentionSequence"),f(p)}function f(p){if(p===a)return t.consume(p),f;const m=t.exit("attentionSequence"),g=up(p),y=!g||g===2&&s||i.includes(p),w=!s||s===2&&g||i.includes(l);return m._open=!!(a===42?y:y&&(s||!w)),m._close=!!(a===42?w:w&&(g||!y)),r(p)}}function cp(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const yw={name:"autolink",tokenize:xw};function xw(t,r,i){let l=0;return s;function s(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(x){return dn(x)?(t.consume(x),c):x===64?i(x):m(x)}function c(x){return x===43||x===45||x===46||Ut(x)?(l=1,f(x)):m(x)}function f(x){return x===58?(t.consume(x),l=0,p):(x===43||x===45||x===46||Ut(x))&&l++<32?(t.consume(x),f):(l=0,m(x))}function p(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r):x===null||x===32||x===60||Ga(x)?i(x):(t.consume(x),p)}function m(x){return x===64?(t.consume(x),g):ow(x)?(t.consume(x),m):i(x)}function g(x){return Ut(x)?y(x):i(x)}function y(x){return x===46?(t.consume(x),l=0,g):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r):w(x)}function w(x){if((x===45||Ut(x))&&l++<63){const N=x===45?w:y;return t.consume(x),N}return i(x)}}const Cl={partial:!0,tokenize:vw};function vw(t,r,i){return l;function l(a){return Ue(a)?Ke(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||je(a)?r(a):i(a)}}const Ph={continuation:{tokenize:kw},exit:Sw,name:"blockQuote",tokenize:ww};function ww(t,r,i){const l=this;return s;function s(c){if(c===62){const f=l.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),a}return i(c)}function a(c){return Ue(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(c))}}function kw(t,r,i){const l=this;return s;function s(c){return Ue(c)?Ke(t,a,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):a(c)}function a(c){return t.attempt(Ph,r,i)(c)}}function Sw(t){t.exit("blockQuote")}const jh={name:"characterEscape",tokenize:Cw};function Cw(t,r,i){return l;function l(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return sw(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):i(a)}}const Th={name:"characterReference",tokenize:bw};function bw(t,r,i){const l=this;let s=0,a,c;return f;function f(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),p}function p(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),a=31,c=Ut,g(y))}function m(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,c=lw,g):(t.enter("characterReferenceValue"),a=7,c=Ya,g(y))}function g(y){if(y===59&&s){const w=t.exit("characterReferenceValue");return c===Ut&&!vu(l.sliceSerialize(w))?i(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return c(y)&&s++<a?(t.consume(y),g):i(y)}}const dp={partial:!0,tokenize:Nw},fp={concrete:!0,name:"codeFenced",tokenize:Ew};function Ew(t,r,i){const l=this,s={partial:!0,tokenize:H};let a=0,c=0,f;return p;function p(I){return m(I)}function m(I){const $=l.events[l.events.length-1];return a=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,f=I,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g(I)}function g(I){return I===f?(c++,t.consume(I),g):c<3?i(I):(t.exit("codeFencedFenceSequence"),Ue(I)?Ke(t,y,"whitespace")(I):y(I))}function y(I){return I===null||je(I)?(t.exit("codeFencedFence"),l.interrupt?r(I):t.check(dp,L,B)(I)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(I))}function w(I){return I===null||je(I)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(I)):Ue(I)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ke(t,x,"whitespace")(I)):I===96&&I===f?i(I):(t.consume(I),w)}function x(I){return I===null||je(I)?y(I):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),N(I))}function N(I){return I===null||je(I)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(I)):I===96&&I===f?i(I):(t.consume(I),N)}function L(I){return t.attempt(s,B,_)(I)}function _(I){return t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),j}function j(I){return a>0&&Ue(I)?Ke(t,V,"linePrefix",a+1)(I):V(I)}function V(I){return I===null||je(I)?t.check(dp,L,B)(I):(t.enter("codeFlowValue"),F(I))}function F(I){return I===null||je(I)?(t.exit("codeFlowValue"),V(I)):(t.consume(I),F)}function B(I){return t.exit("codeFenced"),r(I)}function H(I,$,J){let G=0;return Y;function Y(q){return I.enter("lineEnding"),I.consume(q),I.exit("lineEnding"),se}function se(q){return I.enter("codeFencedFence"),Ue(q)?Ke(I,M,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):M(q)}function M(q){return q===f?(I.enter("codeFencedFenceSequence"),re(q)):J(q)}function re(q){return q===f?(G++,I.consume(q),re):G>=c?(I.exit("codeFencedFenceSequence"),Ue(q)?Ke(I,Q,"whitespace")(q):Q(q)):J(q)}function Q(q){return q===null||je(q)?(I.exit("codeFencedFence"),$(q)):J(q)}}}function Nw(t,r,i){const l=this;return s;function s(c){return c===null?i(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a)}function a(c){return l.parser.lazy[l.now().line]?i(c):r(c)}}const Pa={name:"codeIndented",tokenize:jw},Pw={partial:!0,tokenize:Tw};function jw(t,r,i){const l=this;return s;function s(m){return t.enter("codeIndented"),Ke(t,a,"linePrefix",5)(m)}function a(m){const g=l.events[l.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(m):i(m)}function c(m){return m===null?p(m):je(m)?t.attempt(Pw,c,p)(m):(t.enter("codeFlowValue"),f(m))}function f(m){return m===null||je(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),f)}function p(m){return t.exit("codeIndented"),r(m)}}function Tw(t,r,i){const l=this;return s;function s(c){return l.parser.lazy[l.now().line]?i(c):je(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Ke(t,a,"linePrefix",5)(c)}function a(c){const f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):je(c)?s(c):i(c)}}const Lw={name:"codeText",previous:_w,resolve:Iw,tokenize:Ow};function Iw(t){let r=t.length-4,i=3,l,s;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(l=i;++l<r;)if(t[l][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(l=i-1,r++;++l<=r;)s===void 0?l!==r&&t[l][1].type!=="lineEnding"&&(s=l):(l===r||t[l][1].type==="lineEnding")&&(t[s][1].type="codeTextData",l!==s+2&&(t[s][1].end=t[l-1][1].end,t.splice(s+2,l-s-2),r-=l-s-2,l=s+2),s=void 0);return t}function _w(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ow(t,r,i){let l=0,s,a;return c;function c(y){return t.enter("codeText"),t.enter("codeTextSequence"),f(y)}function f(y){return y===96?(t.consume(y),l++,f):(t.exit("codeTextSequence"),p(y))}function p(y){return y===null?i(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),p):y===96?(a=t.enter("codeTextSequence"),s=0,g(y)):je(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||je(y)?(t.exit("codeTextData"),p(y)):(t.consume(y),m)}function g(y){return y===96?(t.consume(y),s++,g):s===l?(t.exit("codeTextSequence"),t.exit("codeText"),r(y)):(a.type="codeTextData",m(y))}}class Rw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(r,l):r>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(r,i,l){const s=i||0;this.setCursor(Math.trunc(r));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return l&&Mi(this.left,l),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Mi(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);Mi(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Mi(this.left,i.reverse())}}}function Mi(t,r){let i=0;if(r.length<1e4)t.push(...r);else for(;i<r.length;)t.push(...r.slice(i,i+1e4)),i+=1e4}function Lh(t){const r={};let i=-1,l,s,a,c,f,p,m;const g=new Rw(t);for(;++i<g.length;){for(;i in r;)i=r[i];if(l=g.get(i),i&&l[1].type==="chunkFlow"&&g.get(i-1)[1].type==="listItemPrefix"&&(p=l[1]._tokenizer.events,a=0,a<p.length&&p[a][1].type==="lineEndingBlank"&&(a+=2),a<p.length&&p[a][1].type==="content"))for(;++a<p.length&&p[a][1].type!=="content";)p[a][1].type==="chunkText"&&(p[a][1]._isInFirstContentOfListItem=!0,a++);if(l[0]==="enter")l[1].contentType&&(Object.assign(r,zw(g,i)),i=r[i],m=!0);else if(l[1]._container){for(a=i,s=void 0;a--;)if(c=g.get(a),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=a);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(l[1].end={...g.get(s)[1].start},f=g.slice(s,i),f.unshift(l),g.splice(s,i-s+1,f))}}return pn(t,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function zw(t,r){const i=t.get(r)[1],l=t.get(r)[2];let s=r-1;const a=[];let c=i._tokenizer;c||(c=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,p=[],m={};let g,y,w=-1,x=i,N=0,L=0;const _=[L];for(;x;){for(;t.get(++s)[1]!==x;);a.push(s),x._tokenizer||(g=l.sliceStream(x),x.next||g.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=i;++w<f.length;)f[w][0]==="exit"&&f[w-1][0]==="enter"&&f[w][1].type===f[w-1][1].type&&f[w][1].start.line!==f[w][1].end.line&&(L=w+1,_.push(L),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):_.pop(),w=_.length;w--;){const j=f.slice(_[w],_[w+1]),V=a.pop();p.push([V,V+j.length-1]),t.splice(V,2,j)}for(p.reverse(),w=-1;++w<p.length;)m[N+p[w][0]]=N+p[w][1],N+=p[w][1]-p[w][0]-1;return m}const Aw={resolve:Dw,tokenize:Fw},Mw={partial:!0,tokenize:$w};function Dw(t){return Lh(t),t}function Fw(t,r){let i;return l;function l(f){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?a(f):je(f)?t.check(Mw,c,a)(f):(t.consume(f),s)}function a(f){return t.exit("chunkContent"),t.exit("content"),r(f)}function c(f){return t.consume(f),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function $w(t,r,i){const l=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ke(t,a,"linePrefix")}function a(c){if(c===null||je(c))return i(c);const f=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):t.interrupt(l.parser.constructs.flow,i,r)(c)}}function Ih(t,r,i,l,s,a,c,f,p){const m=p||Number.POSITIVE_INFINITY;let g=0;return y;function y(j){return j===60?(t.enter(l),t.enter(s),t.enter(a),t.consume(j),t.exit(a),w):j===null||j===32||j===41||Ga(j)?i(j):(t.enter(l),t.enter(c),t.enter(f),t.enter("chunkString",{contentType:"string"}),L(j))}function w(j){return j===62?(t.enter(a),t.consume(j),t.exit(a),t.exit(s),t.exit(l),r):(t.enter(f),t.enter("chunkString",{contentType:"string"}),x(j))}function x(j){return j===62?(t.exit("chunkString"),t.exit(f),w(j)):j===null||j===60||je(j)?i(j):(t.consume(j),j===92?N:x)}function N(j){return j===60||j===62||j===92?(t.consume(j),x):x(j)}function L(j){return!g&&(j===null||j===41||_t(j))?(t.exit("chunkString"),t.exit(f),t.exit(c),t.exit(l),r(j)):g<m&&j===40?(t.consume(j),g++,L):j===41?(t.consume(j),g--,L):j===null||j===32||j===40||Ga(j)?i(j):(t.consume(j),j===92?_:L)}function _(j){return j===40||j===41||j===92?(t.consume(j),L):L(j)}}function _h(t,r,i,l,s,a){const c=this;let f=0,p;return m;function m(x){return t.enter(l),t.enter(s),t.consume(x),t.exit(s),t.enter(a),g}function g(x){return f>999||x===null||x===91||x===93&&!p||x===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(t.exit(a),t.enter(s),t.consume(x),t.exit(s),t.exit(l),r):je(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),g):(t.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||je(x)||f++>999?(t.exit("chunkString"),g(x)):(t.consume(x),p||(p=!Ue(x)),x===92?w:y)}function w(x){return x===91||x===92||x===93?(t.consume(x),f++,y):y(x)}}function Oh(t,r,i,l,s,a){let c;return f;function f(w){return w===34||w===39||w===40?(t.enter(l),t.enter(s),t.consume(w),t.exit(s),c=w===40?41:w,p):i(w)}function p(w){return w===c?(t.enter(s),t.consume(w),t.exit(s),t.exit(l),r):(t.enter(a),m(w))}function m(w){return w===c?(t.exit(a),p(c)):w===null?i(w):je(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),Ke(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===c||w===null||je(w)?(t.exit("chunkString"),m(w)):(t.consume(w),w===92?y:g)}function y(w){return w===c||w===92?(t.consume(w),g):g(w)}}function Vi(t,r){let i;return l;function l(s){return je(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i=!0,l):Ue(s)?Ke(t,l,i?"linePrefix":"lineSuffix")(s):r(s)}}const Uw={name:"definition",tokenize:Vw},Bw={partial:!0,tokenize:Hw};function Vw(t,r,i){const l=this;let s;return a;function a(x){return t.enter("definition"),c(x)}function c(x){return _h.call(l,t,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return s=Wr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),p):i(x)}function p(x){return _t(x)?Vi(t,m)(x):m(x)}function m(x){return Ih(t,g,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function g(x){return t.attempt(Bw,y,y)(x)}function y(x){return Ue(x)?Ke(t,w,"whitespace")(x):w(x)}function w(x){return x===null||je(x)?(t.exit("definition"),l.parser.defined.push(s),r(x)):i(x)}}function Hw(t,r,i){return l;function l(f){return _t(f)?Vi(t,s)(f):i(f)}function s(f){return Oh(t,a,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function a(f){return Ue(f)?Ke(t,c,"whitespace")(f):c(f)}function c(f){return f===null||je(f)?r(f):i(f)}}const Ww={name:"hardBreakEscape",tokenize:qw};function qw(t,r,i){return l;function l(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return je(a)?(t.exit("hardBreakEscape"),r(a)):i(a)}}const Kw={name:"headingAtx",resolve:Qw,tokenize:Gw};function Qw(t,r){let i=t.length-2,l=3,s,a;return t[l][1].type==="whitespace"&&(l+=2),i-2>l&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&t[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(s={type:"atxHeadingText",start:t[l][1].start,end:t[i][1].end},a={type:"chunkText",start:t[l][1].start,end:t[i][1].end,contentType:"text"},pn(t,l,i-l+1,[["enter",s,r],["enter",a,r],["exit",a,r],["exit",s,r]])),t}function Gw(t,r,i){let l=0;return s;function s(g){return t.enter("atxHeading"),a(g)}function a(g){return t.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&l++<6?(t.consume(g),c):g===null||_t(g)?(t.exit("atxHeadingSequence"),f(g)):i(g)}function f(g){return g===35?(t.enter("atxHeadingSequence"),p(g)):g===null||je(g)?(t.exit("atxHeading"),r(g)):Ue(g)?Ke(t,f,"whitespace")(g):(t.enter("atxHeadingText"),m(g))}function p(g){return g===35?(t.consume(g),p):(t.exit("atxHeadingSequence"),f(g))}function m(g){return g===null||g===35||_t(g)?(t.exit("atxHeadingText"),f(g)):(t.consume(g),m)}}const Yw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],pp=["pre","script","style","textarea"],Xw={concrete:!0,name:"htmlFlow",resolveTo:ek,tokenize:tk},Jw={partial:!0,tokenize:rk},Zw={partial:!0,tokenize:nk};function ek(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function tk(t,r,i){const l=this;let s,a,c,f,p;return m;function m(C){return g(C)}function g(C){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(C),y}function y(C){return C===33?(t.consume(C),w):C===47?(t.consume(C),a=!0,L):C===63?(t.consume(C),s=3,l.interrupt?r:S):dn(C)?(t.consume(C),c=String.fromCharCode(C),_):i(C)}function w(C){return C===45?(t.consume(C),s=2,x):C===91?(t.consume(C),s=5,f=0,N):dn(C)?(t.consume(C),s=4,l.interrupt?r:S):i(C)}function x(C){return C===45?(t.consume(C),l.interrupt?r:S):i(C)}function N(C){const Se="CDATA[";return C===Se.charCodeAt(f++)?(t.consume(C),f===Se.length?l.interrupt?r:M:N):i(C)}function L(C){return dn(C)?(t.consume(C),c=String.fromCharCode(C),_):i(C)}function _(C){if(C===null||C===47||C===62||_t(C)){const Se=C===47,Ee=c.toLowerCase();return!Se&&!a&&pp.includes(Ee)?(s=1,l.interrupt?r(C):M(C)):Yw.includes(c.toLowerCase())?(s=6,Se?(t.consume(C),j):l.interrupt?r(C):M(C)):(s=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(C):a?V(C):F(C))}return C===45||Ut(C)?(t.consume(C),c+=String.fromCharCode(C),_):i(C)}function j(C){return C===62?(t.consume(C),l.interrupt?r:M):i(C)}function V(C){return Ue(C)?(t.consume(C),V):Y(C)}function F(C){return C===47?(t.consume(C),Y):C===58||C===95||dn(C)?(t.consume(C),B):Ue(C)?(t.consume(C),F):Y(C)}function B(C){return C===45||C===46||C===58||C===95||Ut(C)?(t.consume(C),B):H(C)}function H(C){return C===61?(t.consume(C),I):Ue(C)?(t.consume(C),H):F(C)}function I(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(t.consume(C),p=C,$):Ue(C)?(t.consume(C),I):J(C)}function $(C){return C===p?(t.consume(C),p=null,G):C===null||je(C)?i(C):(t.consume(C),$)}function J(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||_t(C)?H(C):(t.consume(C),J)}function G(C){return C===47||C===62||Ue(C)?F(C):i(C)}function Y(C){return C===62?(t.consume(C),se):i(C)}function se(C){return C===null||je(C)?M(C):Ue(C)?(t.consume(C),se):i(C)}function M(C){return C===45&&s===2?(t.consume(C),de):C===60&&s===1?(t.consume(C),fe):C===62&&s===4?(t.consume(C),E):C===63&&s===3?(t.consume(C),S):C===93&&s===5?(t.consume(C),ue):je(C)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Jw,D,re)(C)):C===null||je(C)?(t.exit("htmlFlowData"),re(C)):(t.consume(C),M)}function re(C){return t.check(Zw,Q,D)(C)}function Q(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),q}function q(C){return C===null||je(C)?re(C):(t.enter("htmlFlowData"),M(C))}function de(C){return C===45?(t.consume(C),S):M(C)}function fe(C){return C===47?(t.consume(C),c="",ee):M(C)}function ee(C){if(C===62){const Se=c.toLowerCase();return pp.includes(Se)?(t.consume(C),E):M(C)}return dn(C)&&c.length<8?(t.consume(C),c+=String.fromCharCode(C),ee):M(C)}function ue(C){return C===93?(t.consume(C),S):M(C)}function S(C){return C===62?(t.consume(C),E):C===45&&s===2?(t.consume(C),S):M(C)}function E(C){return C===null||je(C)?(t.exit("htmlFlowData"),D(C)):(t.consume(C),E)}function D(C){return t.exit("htmlFlow"),r(C)}}function nk(t,r,i){const l=this;return s;function s(c){return je(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a):i(c)}function a(c){return l.parser.lazy[l.now().line]?i(c):r(c)}}function rk(t,r,i){return l;function l(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Cl,r,i)}}const ik={name:"htmlText",tokenize:ok};function ok(t,r,i){const l=this;let s,a,c;return f;function f(S){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(S),p}function p(S){return S===33?(t.consume(S),m):S===47?(t.consume(S),H):S===63?(t.consume(S),F):dn(S)?(t.consume(S),J):i(S)}function m(S){return S===45?(t.consume(S),g):S===91?(t.consume(S),a=0,N):dn(S)?(t.consume(S),V):i(S)}function g(S){return S===45?(t.consume(S),x):i(S)}function y(S){return S===null?i(S):S===45?(t.consume(S),w):je(S)?(c=y,fe(S)):(t.consume(S),y)}function w(S){return S===45?(t.consume(S),x):y(S)}function x(S){return S===62?de(S):S===45?w(S):y(S)}function N(S){const E="CDATA[";return S===E.charCodeAt(a++)?(t.consume(S),a===E.length?L:N):i(S)}function L(S){return S===null?i(S):S===93?(t.consume(S),_):je(S)?(c=L,fe(S)):(t.consume(S),L)}function _(S){return S===93?(t.consume(S),j):L(S)}function j(S){return S===62?de(S):S===93?(t.consume(S),j):L(S)}function V(S){return S===null||S===62?de(S):je(S)?(c=V,fe(S)):(t.consume(S),V)}function F(S){return S===null?i(S):S===63?(t.consume(S),B):je(S)?(c=F,fe(S)):(t.consume(S),F)}function B(S){return S===62?de(S):F(S)}function H(S){return dn(S)?(t.consume(S),I):i(S)}function I(S){return S===45||Ut(S)?(t.consume(S),I):$(S)}function $(S){return je(S)?(c=$,fe(S)):Ue(S)?(t.consume(S),$):de(S)}function J(S){return S===45||Ut(S)?(t.consume(S),J):S===47||S===62||_t(S)?G(S):i(S)}function G(S){return S===47?(t.consume(S),de):S===58||S===95||dn(S)?(t.consume(S),Y):je(S)?(c=G,fe(S)):Ue(S)?(t.consume(S),G):de(S)}function Y(S){return S===45||S===46||S===58||S===95||Ut(S)?(t.consume(S),Y):se(S)}function se(S){return S===61?(t.consume(S),M):je(S)?(c=se,fe(S)):Ue(S)?(t.consume(S),se):G(S)}function M(S){return S===null||S===60||S===61||S===62||S===96?i(S):S===34||S===39?(t.consume(S),s=S,re):je(S)?(c=M,fe(S)):Ue(S)?(t.consume(S),M):(t.consume(S),Q)}function re(S){return S===s?(t.consume(S),s=void 0,q):S===null?i(S):je(S)?(c=re,fe(S)):(t.consume(S),re)}function Q(S){return S===null||S===34||S===39||S===60||S===61||S===96?i(S):S===47||S===62||_t(S)?G(S):(t.consume(S),Q)}function q(S){return S===47||S===62||_t(S)?G(S):i(S)}function de(S){return S===62?(t.consume(S),t.exit("htmlTextData"),t.exit("htmlText"),r):i(S)}function fe(S){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),ee}function ee(S){return Ue(S)?Ke(t,ue,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ue(S)}function ue(S){return t.enter("htmlTextData"),c(S)}}const ku={name:"labelEnd",resolveAll:uk,resolveTo:ck,tokenize:dk},lk={tokenize:fk},sk={tokenize:pk},ak={tokenize:hk};function uk(t){let r=-1;const i=[];for(;++r<t.length;){const l=t[r][1];if(i.push(t[r]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const s=l.type==="labelImage"?4:2;l.type="data",r+=s}}return t.length!==i.length&&pn(t,0,t.length,i),t}function ck(t,r){let i=t.length,l=0,s,a,c,f;for(;i--;)if(s=t[i][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=i,s.type!=="labelLink")){l=2;break}}else s.type==="labelEnd"&&(c=i);const p={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[a][1].start},end:{...t[c][1].end}},g={type:"labelText",start:{...t[a+l+2][1].end},end:{...t[c-2][1].start}};return f=[["enter",p,r],["enter",m,r]],f=Gt(f,t.slice(a+1,a+l+3)),f=Gt(f,[["enter",g,r]]),f=Gt(f,wu(r.parser.constructs.insideSpan.null,t.slice(a+l+4,c-3),r)),f=Gt(f,[["exit",g,r],t[c-2],t[c-1],["exit",m,r]]),f=Gt(f,t.slice(c+1)),f=Gt(f,[["exit",p,r]]),pn(t,a,t.length,f),t}function dk(t,r,i){const l=this;let s=l.events.length,a,c;for(;s--;)if((l.events[s][1].type==="labelImage"||l.events[s][1].type==="labelLink")&&!l.events[s][1]._balanced){a=l.events[s][1];break}return f;function f(w){return a?a._inactive?y(w):(c=l.parser.defined.includes(Wr(l.sliceSerialize({start:a.end,end:l.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(w),t.exit("labelMarker"),t.exit("labelEnd"),p):i(w)}function p(w){return w===40?t.attempt(lk,g,c?g:y)(w):w===91?t.attempt(sk,g,c?m:y)(w):c?g(w):y(w)}function m(w){return t.attempt(ak,g,y)(w)}function g(w){return r(w)}function y(w){return a._balanced=!0,i(w)}}function fk(t,r,i){return l;function l(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),s}function s(y){return _t(y)?Vi(t,a)(y):a(y)}function a(y){return y===41?g(y):Ih(t,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return _t(y)?Vi(t,p)(y):g(y)}function f(y){return i(y)}function p(y){return y===34||y===39||y===40?Oh(t,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function m(y){return _t(y)?Vi(t,g)(y):g(y)}function g(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),r):i(y)}}function pk(t,r,i){const l=this;return s;function s(f){return _h.call(l,t,a,c,"reference","referenceMarker","referenceString")(f)}function a(f){return l.parser.defined.includes(Wr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?r(f):i(f)}function c(f){return i(f)}}function hk(t,r,i){return l;function l(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),r):i(a)}}const mk={name:"labelStartImage",resolveAll:ku.resolveAll,tokenize:gk};function gk(t,r,i){const l=this;return s;function s(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),a}function a(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(f):r(f)}}const yk={name:"labelStartLink",resolveAll:ku.resolveAll,tokenize:xk};function xk(t,r,i){const l=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),a}function a(c){return c===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(c):r(c)}}const ja={name:"lineEnding",tokenize:vk};function vk(t,r){return i;function i(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),Ke(t,r,"linePrefix")}}const fl={name:"thematicBreak",tokenize:wk};function wk(t,r,i){let l=0,s;return a;function a(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,f(m)}function f(m){return m===s?(t.enter("thematicBreakSequence"),p(m)):l>=3&&(m===null||je(m))?(t.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===s?(t.consume(m),l++,p):(t.exit("thematicBreakSequence"),Ue(m)?Ke(t,f,"whitespace")(m):f(m))}}const It={continuation:{tokenize:bk},exit:Nk,name:"list",tokenize:Ck},kk={partial:!0,tokenize:Pk},Sk={partial:!0,tokenize:Ek};function Ck(t,r,i){const l=this,s=l.events[l.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(x){const N=l.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(N==="listUnordered"?!l.containerState.marker||x===l.containerState.marker:Ya(x)){if(l.containerState.type||(l.containerState.type=N,t.enter(N,{_container:!0})),N==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(fl,i,m)(x):m(x);if(!l.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(x)}return i(x)}function p(x){return Ya(x)&&++c<10?(t.consume(x),p):(!l.interrupt||c<2)&&(l.containerState.marker?x===l.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),m(x)):i(x)}function m(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||x,t.check(Cl,l.interrupt?i:g,t.attempt(kk,w,y))}function g(x){return l.containerState.initialBlankLine=!0,a++,w(x)}function y(x){return Ue(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),w):i(x)}function w(x){return l.containerState.size=a+l.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(x)}}function bk(t,r,i){const l=this;return l.containerState._closeFlow=void 0,t.check(Cl,s,a);function s(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Ke(t,r,"listItemIndent",l.containerState.size+1)(f)}function a(f){return l.containerState.furtherBlankLines||!Ue(f)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,c(f)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,t.attempt(Sk,r,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Ke(t,t.attempt(It,r,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Ek(t,r,i){const l=this;return Ke(t,s,"listItemIndent",l.containerState.size+1);function s(a){const c=l.events[l.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===l.containerState.size?r(a):i(a)}}function Nk(t){t.exit(this.containerState.type)}function Pk(t,r,i){const l=this;return Ke(t,s,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const c=l.events[l.events.length-1];return!Ue(a)&&c&&c[1].type==="listItemPrefixWhitespace"?r(a):i(a)}}const hp={name:"setextUnderline",resolveTo:jk,tokenize:Tk};function jk(t,r){let i=t.length,l,s,a;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){l=i;break}t[i][1].type==="paragraph"&&(s=i)}else t[i][1].type==="content"&&t.splice(i,1),!a&&t[i][1].type==="definition"&&(a=i);const c={type:"setextHeading",start:{...t[l][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",c,r]),t.splice(a+1,0,["exit",t[l][1],r]),t[l][1].end={...t[a][1].end}):t[l][1]=c,t.push(["exit",c,r]),t}function Tk(t,r,i){const l=this;let s;return a;function a(m){let g=l.events.length,y;for(;g--;)if(l.events[g][1].type!=="lineEnding"&&l.events[g][1].type!=="linePrefix"&&l.events[g][1].type!=="content"){y=l.events[g][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||y)?(t.enter("setextHeadingLine"),s=m,c(m)):i(m)}function c(m){return t.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===s?(t.consume(m),f):(t.exit("setextHeadingLineSequence"),Ue(m)?Ke(t,p,"lineSuffix")(m):p(m))}function p(m){return m===null||je(m)?(t.exit("setextHeadingLine"),r(m)):i(m)}}const Lk={tokenize:Ik};function Ik(t){const r=this,i=t.attempt(Cl,l,t.attempt(this.parser.constructs.flowInitial,s,Ke(t,t.attempt(this.parser.constructs.flow,s,t.attempt(Aw,s)),"linePrefix")));return i;function l(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r.currentConstruct=void 0,i}}const _k={resolveAll:zh()},Ok=Rh("string"),Rk=Rh("text");function Rh(t){return{resolveAll:zh(t==="text"?zk:void 0),tokenize:r};function r(i){const l=this,s=this.parser.constructs[t],a=i.attempt(s,c,f);return c;function c(g){return m(g)?a(g):f(g)}function f(g){if(g===null){i.consume(g);return}return i.enter("data"),i.consume(g),p}function p(g){return m(g)?(i.exit("data"),a(g)):(i.consume(g),p)}function m(g){if(g===null)return!0;const y=s[g];let w=-1;if(y)for(;++w<y.length;){const x=y[w];if(!x.previous||x.previous.call(l,l.previous))return!0}return!1}}}function zh(t){return r;function r(i,l){let s=-1,a;for(;++s<=i.length;)a===void 0?i[s]&&i[s][1].type==="data"&&(a=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==a+2&&(i[a][1].end=i[s-1][1].end,i.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(i,l):i}}function zk(t,r){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const l=t[i-1][1],s=r.sliceStream(l);let a=s.length,c=-1,f=0,p;for(;a--;){const m=s[a];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)p=!0,f++;else if(m!==-1){a++;break}}if(r._contentTypeTextTrailing&&i===t.length&&(f=0),f){const m={type:i===t.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?c:l.start._bufferIndex+c,_index:l.start._index+a,line:l.end.line,column:l.end.column-f,offset:l.end.offset-f},end:{...l.end}};l.end={...m.start},l.start.offset===l.end.offset?Object.assign(l,m):(t.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return t}const Ak={42:It,43:It,45:It,48:It,49:It,50:It,51:It,52:It,53:It,54:It,55:It,56:It,57:It,62:Ph},Mk={91:Uw},Dk={[-2]:Pa,[-1]:Pa,32:Pa},Fk={35:Kw,42:fl,45:[hp,fl],60:Xw,61:hp,95:fl,96:fp,126:fp},$k={38:Th,92:jh},Uk={[-5]:ja,[-4]:ja,[-3]:ja,33:mk,38:Th,42:Xa,60:[yw,ik],91:yk,92:[Ww,jh],93:ku,95:Xa,96:Lw},Bk={null:[Xa,_k]},Vk={null:[42,95]},Hk={null:[]},Wk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Vk,contentInitial:Mk,disable:Hk,document:Ak,flow:Fk,flowInitial:Dk,insideSpan:Bk,string:$k,text:Uk},Symbol.toStringTag,{value:"Module"}));function qk(t,r,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},a=[];let c=[],f=[];const p={attempt:$(H),check:$(I),consume:V,enter:F,exit:B,interrupt:$(I,{interrupt:!0})},m={code:null,containerState:{},defineSkip:L,events:[],now:N,parser:t,previous:null,sliceSerialize:w,sliceStream:x,write:y};let g=r.tokenize.call(m,p);return r.resolveAll&&a.push(r),m;function y(se){return c=Gt(c,se),_(),c[c.length-1]!==null?[]:(J(r,0),m.events=wu(a,m.events,m),m.events)}function w(se,M){return Qk(x(se),M)}function x(se){return Kk(c,se)}function N(){const{_bufferIndex:se,_index:M,line:re,column:Q,offset:q}=l;return{_bufferIndex:se,_index:M,line:re,column:Q,offset:q}}function L(se){s[se.line]=se.column,Y()}function _(){let se;for(;l._index<c.length;){const M=c[l._index];if(typeof M=="string")for(se=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===se&&l._bufferIndex<M.length;)j(M.charCodeAt(l._bufferIndex));else j(M)}}function j(se){g=g(se)}function V(se){je(se)?(l.line++,l.column=1,l.offset+=se===-3?2:1,Y()):se!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),m.previous=se}function F(se,M){const re=M||{};return re.type=se,re.start=N(),m.events.push(["enter",re,m]),f.push(re),re}function B(se){const M=f.pop();return M.end=N(),m.events.push(["exit",M,m]),M}function H(se,M){J(se,M.from)}function I(se,M){M.restore()}function $(se,M){return re;function re(Q,q,de){let fe,ee,ue,S;return Array.isArray(Q)?D(Q):"tokenize"in Q?D([Q]):E(Q);function E(K){return U;function U(X){const pe=X!==null&&K[X],le=X!==null&&K.null,ye=[...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(le)?le:le?[le]:[]];return D(ye)(X)}}function D(K){return fe=K,ee=0,K.length===0?de:C(K[ee])}function C(K){return U;function U(X){return S=G(),ue=K,K.partial||(m.currentConstruct=K),K.name&&m.parser.constructs.disable.null.includes(K.name)?Ee():K.tokenize.call(M?Object.assign(Object.create(m),M):m,p,Se,Ee)(X)}}function Se(K){return se(ue,S),q}function Ee(K){return S.restore(),++ee<fe.length?C(fe[ee]):de}}}function J(se,M){se.resolveAll&&!a.includes(se)&&a.push(se),se.resolve&&pn(m.events,M,m.events.length-M,se.resolve(m.events.slice(M),m)),se.resolveTo&&(m.events=se.resolveTo(m.events,m))}function G(){const se=N(),M=m.previous,re=m.currentConstruct,Q=m.events.length,q=Array.from(f);return{from:Q,restore:de};function de(){l=se,m.previous=M,m.currentConstruct=re,m.events.length=Q,f=q,Y()}}function Y(){l.line in s&&l.column<2&&(l.column=s[l.line],l.offset+=s[l.line]-1)}}function Kk(t,r){const i=r.start._index,l=r.start._bufferIndex,s=r.end._index,a=r.end._bufferIndex;let c;if(i===s)c=[t[i].slice(l,a)];else{if(c=t.slice(i,s),l>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(l):c.shift()}a>0&&c.push(t[s].slice(0,a))}return c}function Qk(t,r){let i=-1;const l=[];let s;for(;++i<t.length;){const a=t[i];let c;if(typeof a=="string")c=a;else switch(a){case-5:{c="\r";break}case-4:{c=`
|
|
261
|
+
`,c]})]})}function yv({images:t,currentIndex:r,onClose:i,onNavigate:l}){const{t:s}=Ot(),a=t.length>1,c=_.useCallback(()=>{r<t.length-1&&l(r+1)},[r,t.length,l]),f=_.useCallback(()=>{r>0&&l(r-1)},[r,l]);return _.useEffect(()=>{const p=m=>{m.key==="Escape"&&i(),m.key==="ArrowRight"&&c(),m.key==="ArrowLeft"&&f()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[i,c,f]),w.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80",onClick:i,children:[w.jsx("button",{onClick:i,className:"absolute top-4 right-4 text-white/70 hover:text-white transition-colors",children:w.jsx(fr,{className:"w-6 h-6"})}),a&&r>0&&w.jsx("button",{onClick:p=>{p.stopPropagation(),f()},className:"absolute left-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white transition-colors",children:w.jsx(f1,{className:"w-8 h-8"})}),w.jsx("img",{src:t[r],alt:s("previewAlt",{index:r+1}),className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg",onClick:p=>p.stopPropagation()}),a&&r<t.length-1&&w.jsx("button",{onClick:p=>{p.stopPropagation(),c()},className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white transition-colors",children:w.jsx(au,{className:"w-8 h-8"})}),a&&w.jsxs("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-white/70 text-sm",children:[r+1," / ",t.length]})]})}function xv(t,r){const i={};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const vv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kv={};function Gf(t,r){return(kv.jsx?wv:vv).test(t)}const Sv=/[ \t\n\f\r]/g;function Cv(t){return typeof t=="object"?t.type==="text"?Yf(t.value):!1:Yf(t)}function Yf(t){return t.replace(Sv,"")===""}class Qi{constructor(r,i,l){this.normal=i,this.property=r,l&&(this.space=l)}}Qi.prototype.normal={};Qi.prototype.property={};Qi.prototype.space=void 0;function ph(t,r){const i={},l={};for(const s of t)Object.assign(i,s.property),Object.assign(l,s.normal);return new Qi(i,l,r)}function Wa(t){return t.toLowerCase()}class Rt{constructor(r,i){this.attribute=i,this.property=r}}Rt.prototype.attribute="";Rt.prototype.booleanish=!1;Rt.prototype.boolean=!1;Rt.prototype.commaOrSpaceSeparated=!1;Rt.prototype.commaSeparated=!1;Rt.prototype.defined=!1;Rt.prototype.mustUseProperty=!1;Rt.prototype.number=!1;Rt.prototype.overloadedBoolean=!1;Rt.prototype.property="";Rt.prototype.spaceSeparated=!1;Rt.prototype.space=void 0;let bv=0;const Ie=hr(),it=hr(),qa=hr(),ie=hr(),qe=hr(),Hr=hr(),$t=hr();function hr(){return 2**++bv}const Ka=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:it,commaOrSpaceSeparated:$t,commaSeparated:Hr,number:ie,overloadedBoolean:qa,spaceSeparated:qe},Symbol.toStringTag,{value:"Module"})),ba=Object.keys(Ka);class pu extends Rt{constructor(r,i,l,s){let a=-1;if(super(r,i),Xf(this,"space",s),typeof l=="number")for(;++a<ba.length;){const c=ba[a];Xf(this,ba[a],(l&Ka[c])===Ka[c])}}}pu.prototype.defined=!0;function Xf(t,r,i){i&&(t[r]=i)}function Kr(t){const r={},i={};for(const[l,s]of Object.entries(t.properties)){const a=new pu(l,t.transform(t.attributes||{},l),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(a.mustUseProperty=!0),r[l]=a,i[Wa(l)]=l,i[Wa(a.attribute)]=l}return new Qi(r,i,t.space)}const hh=Kr({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:qe,ariaCurrent:null,ariaDescribedBy:qe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:qe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:qe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qe,ariaLevel:ie,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:qe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:qe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:it,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function mh(t,r){return r in t?t[r]:r}function gh(t,r){return mh(t,r.toLowerCase())}const Ev=Kr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hr,acceptCharset:qe,accessKey:qe,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:qe,autoFocus:Ie,autoPlay:Ie,blocking:qe,capture:null,charSet:null,checked:Ie,cite:null,className:qe,cols:ie,colSpan:null,content:null,contentEditable:it,controls:Ie,controlsList:qe,coords:ie|Hr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:qa,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:qe,height:ie,hidden:qa,high:ie,href:null,hrefLang:null,htmlFor:qe,httpEquiv:qe,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:qe,itemRef:qe,itemScope:Ie,itemType:qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ie,optimum:ie,pattern:null,ping:qe,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:qe,required:Ie,reversed:Ie,rows:ie,rowSpan:ie,sandbox:qe,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:it,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:gh}),Nv=Kr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$t,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Hr,g2:Hr,glyphName:Hr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mh}),yh=Kr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),xh=Kr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gh}),vh=Kr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),jv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Pv=/[A-Z]/g,Jf=/-[a-z]/g,Tv=/^data[-\w.:]+$/i;function Lv(t,r){const i=Wa(r);let l=r,s=Rt;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Tv.test(r)){if(r.charAt(4)==="-"){const a=r.slice(5).replace(Jf,_v);l="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=r.slice(4);if(!Jf.test(a)){let c=a.replace(Pv,Iv);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=pu}return new s(l,r)}function Iv(t){return"-"+t.toLowerCase()}function _v(t){return t.charAt(1).toUpperCase()}const Ov=ph([hh,Ev,yh,xh,vh],"html"),hu=ph([hh,Nv,yh,xh,vh],"svg");function Rv(t){return t.join(" ").trim()}var $r={},Ea,Zf;function zv(){if(Zf)return Ea;Zf=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
|
|
262
|
+
`,m="/",g="*",y="",k="comment",x="declaration";function j(I,b){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];b=b||{};var $=1,D=1;function U(Y){var q=Y.match(r);q&&($+=q.length);var fe=Y.lastIndexOf(p);D=~fe?Y.length-fe:D+Y.length}function H(){var Y={line:$,column:D};return function(q){return q.position=new R(Y),G(),q}}function R(Y){this.start=Y,this.end={line:$,column:D},this.source=b.source}R.prototype.content=I;function V(Y){var q=new Error(b.source+":"+$+":"+D+": "+Y);if(q.reason=Y,q.filename=b.source,q.line=$,q.column=D,q.source=I,!b.silent)throw q}function K(Y){var q=Y.exec(I);if(q){var fe=q[0];return U(fe),I=I.slice(fe.length),q}}function G(){K(i)}function X(Y){var q;for(Y=Y||[];q=oe();)q!==!1&&Y.push(q);return Y}function oe(){var Y=H();if(!(m!=I.charAt(0)||g!=I.charAt(1))){for(var q=2;y!=I.charAt(q)&&(g!=I.charAt(q)||m!=I.charAt(q+1));)++q;if(q+=2,y===I.charAt(q-1))return V("End of comment missing");var fe=I.slice(2,q-2);return D+=2,U(fe),I=I.slice(q),D+=2,Y({type:k,comment:fe})}}function M(){var Y=H(),q=K(l);if(q){if(oe(),!K(s))return V("property missing ':'");var fe=K(a),pe=Y({type:x,property:T(q[0].replace(t,y)),value:fe?T(fe[0].replace(t,y)):y});return K(c),pe}}function re(){var Y=[];X(Y);for(var q;q=M();)q!==!1&&(Y.push(q),X(Y));return Y}return G(),re()}function T(I){return I?I.replace(f,y):y}return Ea=j,Ea}var ep;function Av(){if(ep)return $r;ep=1;var t=$r&&$r.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty($r,"__esModule",{value:!0}),$r.default=i;const r=t(zv());function i(l,s){let a=null;if(!l||typeof l!="string")return a;const c=(0,r.default)(l),f=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:g}=p;f?s(m,g,p):g&&(a=a||{},a[m]=g)}),a}return $r}var zi={},tp;function Mv(){if(tp)return zi;tp=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(m){return!m||i.test(m)||t.test(m)},c=function(m,g){return g.toUpperCase()},f=function(m,g){return"".concat(g,"-")},p=function(m,g){return g===void 0&&(g={}),a(m)?m:(m=m.toLowerCase(),g.reactCompat?m=m.replace(s,f):m=m.replace(l,f),m.replace(r,c))};return zi.camelCase=p,zi}var Ai,np;function Dv(){if(np)return Ai;np=1;var t=Ai&&Ai.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=t(Av()),i=Mv();function l(s,a){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(f,p){f&&p&&(c[(0,i.camelCase)(f,a)]=p)}),c}return l.default=l,Ai=l,Ai}var Fv=Dv();const $v=vl(Fv),wh=kh("end"),mu=kh("start");function kh(t){return r;function r(i){const l=i&&i.position&&i.position[t]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function Uv(t){const r=mu(t),i=wh(t);if(r&&i)return{start:r,end:i}}function Bi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?rp(t.position):"start"in t||"end"in t?rp(t):"line"in t||"column"in t?Qa(t):""}function Qa(t){return ip(t&&t.line)+":"+ip(t&&t.column)}function rp(t){return Qa(t&&t.start)+"-"+Qa(t&&t.end)}function ip(t){return t&&typeof t=="number"?t:1}class kt extends Error{constructor(r,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let s="",a={},c=!1;if(i&&("line"in i&&"column"in i?a={place:i}:"start"in i&&"end"in i?a={place:i}:"type"in i?a={ancestors:[i],place:i.position}:a={...i}),typeof r=="string"?s=r:!a.cause&&r&&(c=!0,s=r.message,a.cause=r),!a.ruleId&&!a.source&&typeof l=="string"){const p=l.indexOf(":");p===-1?a.ruleId=l:(a.source=l.slice(0,p),a.ruleId=l.slice(p+1))}if(!a.place&&a.ancestors&&a.ancestors){const p=a.ancestors[a.ancestors.length-1];p&&(a.place=p.position)}const f=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=Bi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=c&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}kt.prototype.file="";kt.prototype.name="";kt.prototype.reason="";kt.prototype.message="";kt.prototype.stack="";kt.prototype.column=void 0;kt.prototype.line=void 0;kt.prototype.ancestors=void 0;kt.prototype.cause=void 0;kt.prototype.fatal=void 0;kt.prototype.place=void 0;kt.prototype.ruleId=void 0;kt.prototype.source=void 0;const gu={}.hasOwnProperty,Bv=new Map,Vv=/[A-Z]/g,Hv=new Set(["table","tbody","thead","tfoot","tr"]),Wv=new Set(["td","th"]),Sh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qv(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let l;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=ew(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=Zv(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:l,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?hu:Ov,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},a=Ch(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function Ch(t,r,i){if(r.type==="element")return Kv(t,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Qv(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Yv(t,r,i);if(r.type==="mdxjsEsm")return Gv(t,r);if(r.type==="root")return Xv(t,r,i);if(r.type==="text")return Jv(t,r)}function Kv(t,r,i){const l=t.schema;let s=l;r.tagName.toLowerCase()==="svg"&&l.space==="html"&&(s=hu,t.schema=s),t.ancestors.push(r);const a=Eh(t,r.tagName,!1),c=tw(t,r);let f=xu(t,r);return Hv.has(r.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!Cv(p):!0})),bh(t,c,a,r),yu(c,f),t.ancestors.pop(),t.schema=l,t.create(r,a,c,i)}function Qv(t,r){if(r.data&&r.data.estree&&t.evaluater){const l=r.data.estree.body[0];return l.type,t.evaluater.evaluateExpression(l.expression)}qi(t,r.position)}function Gv(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);qi(t,r.position)}function Yv(t,r,i){const l=t.schema;let s=l;r.name==="svg"&&l.space==="html"&&(s=hu,t.schema=s),t.ancestors.push(r);const a=r.name===null?t.Fragment:Eh(t,r.name,!0),c=nw(t,r),f=xu(t,r);return bh(t,c,a,r),yu(c,f),t.ancestors.pop(),t.schema=l,t.create(r,a,c,i)}function Xv(t,r,i){const l={};return yu(l,xu(t,r)),t.create(r,t.Fragment,l,i)}function Jv(t,r){return r.value}function bh(t,r,i,l){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(r.node=l)}function yu(t,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(t.children=i)}}function Zv(t,r,i){return l;function l(s,a,c,f){const m=Array.isArray(c.children)?i:r;return f?m(a,c,f):m(a,c)}}function ew(t,r){return i;function i(l,s,a,c){const f=Array.isArray(a.children),p=mu(l);return r(s,a,c,f,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function tw(t,r){const i={};let l,s;for(s in r.properties)if(s!=="children"&&gu.call(r.properties,s)){const a=rw(t,s,r.properties[s]);if(a){const[c,f]=a;t.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&Wv.has(r.tagName)?l=f:i[c]=f}}if(l){const a=i.style||(i.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function nw(t,r){const i={};for(const l of r.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];a.type;const c=a.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,t.evaluater.evaluateExpression(f.argument))}else qi(t,r.position);else{const s=l.name;let a;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&t.evaluater){const f=l.value.data.estree.body[0];f.type,a=t.evaluater.evaluateExpression(f.expression)}else qi(t,r.position);else a=l.value===null?!0:l.value;i[s]=a}return i}function xu(t,r){const i=[];let l=-1;const s=t.passKeys?new Map:Bv;for(;++l<r.children.length;){const a=r.children[l];let c;if(t.passKeys){const p=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(p){const m=s.get(p)||0;c=p+"-"+m,s.set(p,m+1)}}const f=Ch(t,a,c);f!==void 0&&i.push(f)}return i}function rw(t,r,i){const l=Lv(t.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?xv(i):Rv(i)),l.property==="style"){let s=typeof i=="object"?i:iw(t,String(i));return t.stylePropertyNameCase==="css"&&(s=ow(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&l.space?jv[l.property]||l.property:l.attribute,i]}}function iw(t,r){try{return $v(r,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const l=i,s=new kt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=Sh+"#cannot-parse-style-attribute",s}}function Eh(t,r,i){let l;if(!i)l={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let a=-1,c;for(;++a<s.length;){const f=Gf(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(a&&f.type==="Literal"),optional:!1}:f}l=c}else l=Gf(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(l.type==="Literal"){const s=l.value;return gu.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(l);qi(t)}function qi(t,r){const i=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=Sh+"#cannot-handle-mdx-estrees-without-createevaluater",i}function ow(t){const r={};let i;for(i in t)gu.call(t,i)&&(r[lw(i)]=t[i]);return r}function lw(t){let r=t.replace(Vv,sw);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function sw(t){return"-"+t.toLowerCase()}const Na={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},aw={};function uw(t,r){const i=aw,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Nh(t,l,s)}function Nh(t,r,i){if(cw(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return op(t.children,r,i)}return Array.isArray(t)?op(t,r,i):""}function op(t,r,i){const l=[];let s=-1;for(;++s<t.length;)l[s]=Nh(t[s],r,i);return l.join("")}function cw(t){return!!(t&&typeof t=="object")}const lp=document.createElement("i");function vu(t){const r="&"+t+";";lp.innerHTML=r;const i=lp.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===r?!1:i}function pn(t,r,i,l){const s=t.length;let a=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,l.length<1e4)c=Array.from(l),c.unshift(r,i),t.splice(...c);else for(i&&t.splice(r,i);a<l.length;)c=l.slice(a,a+1e4),c.unshift(r,0),t.splice(...c),a+=1e4,r+=1e4}function Gt(t,r){return t.length>0?(pn(t,t.length,0,r),t):r}const sp={}.hasOwnProperty;function dw(t){const r={};let i=-1;for(;++i<t.length;)fw(r,t[i]);return r}function fw(t,r){let i;for(i in r){const s=(sp.call(t,i)?t[i]:void 0)||(t[i]={}),a=r[i];let c;if(a)for(c in a){sp.call(s,c)||(s[c]=[]);const f=a[c];pw(s[c],Array.isArray(f)?f:f?[f]:[])}}}function pw(t,r){let i=-1;const l=[];for(;++i<r.length;)(r[i].add==="after"?t:l).push(r[i]);pn(t,0,0,l)}function jh(t,r){const i=Number.parseInt(t,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Wr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dn=Gn(/[A-Za-z]/),Ut=Gn(/[\dA-Za-z]/),hw=Gn(/[#-'*+\--9=?A-Z^-~]/);function Ga(t){return t!==null&&(t<32||t===127)}const Ya=Gn(/\d/),mw=Gn(/[\dA-Fa-f]/),gw=Gn(/[!-/:-@[-`{-~]/);function Pe(t){return t!==null&&t<-2}function _t(t){return t!==null&&(t<0||t===32)}function Ue(t){return t===-2||t===-1||t===32}const yw=Gn(new RegExp("\\p{P}|\\p{S}","u")),xw=Gn(/\s/);function Gn(t){return r;function r(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Qr(t){const r=[];let i=-1,l=0,s=0;for(;++i<t.length;){const a=t.charCodeAt(i);let c="";if(a===37&&Ut(t.charCodeAt(i+1))&&Ut(t.charCodeAt(i+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(c=String.fromCharCode(a));else if(a>55295&&a<57344){const f=t.charCodeAt(i+1);a<56320&&f>56319&&f<57344?(c=String.fromCharCode(a,f),s=1):c="�"}else c=String.fromCharCode(a);c&&(r.push(t.slice(l,i),encodeURIComponent(c)),l=i+s+1,c=""),s&&(i+=s,s=0)}return r.join("")+t.slice(l)}function Ke(t,r,i,l){const s=l?l-1:Number.POSITIVE_INFINITY;let a=0;return c;function c(p){return Ue(p)?(t.enter(i),f(p)):r(p)}function f(p){return Ue(p)&&a++<s?(t.consume(p),f):(t.exit(i),r(p))}}const vw={tokenize:ww};function ww(t){const r=t.attempt(this.parser.constructs.contentInitial,l,s);let i;return r;function l(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Ke(t,r,"linePrefix")}function s(f){return t.enter("paragraph"),a(f)}function a(f){const p=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,c(f)}function c(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return Pe(f)?(t.consume(f),t.exit("chunkText"),a):(t.consume(f),c)}}const kw={tokenize:Sw},ap={tokenize:Cw};function Sw(t){const r=this,i=[];let l=0,s,a,c;return f;function f(D){if(l<i.length){const U=i[l];return r.containerState=U[1],t.attempt(U[0].continuation,p,m)(D)}return m(D)}function p(D){if(l++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&$();const U=r.events.length;let H=U,R;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){R=r.events[H][1].end;break}b(l);let V=U;for(;V<r.events.length;)r.events[V][1].end={...R},V++;return pn(r.events,H+1,0,r.events.slice(U)),r.events.length=V,m(D)}return f(D)}function m(D){if(l===i.length){if(!s)return k(D);if(s.currentConstruct&&s.currentConstruct.concrete)return j(D);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(ap,g,y)(D)}function g(D){return s&&$(),b(l),k(D)}function y(D){return r.parser.lazy[r.now().line]=l!==i.length,c=r.now().offset,j(D)}function k(D){return r.containerState={},t.attempt(ap,x,j)(D)}function x(D){return l++,i.push([r.currentConstruct,r.containerState]),k(D)}function j(D){if(D===null){s&&$(),b(0),t.consume(D);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),T(D)}function T(D){if(D===null){I(t.exit("chunkFlow"),!0),b(0),t.consume(D);return}return Pe(D)?(t.consume(D),I(t.exit("chunkFlow")),l=0,r.interrupt=void 0,f):(t.consume(D),T)}function I(D,U){const H=r.sliceStream(D);if(U&&H.push(null),D.previous=a,a&&(a.next=D),a=D,s.defineSkip(D.start),s.write(H),r.parser.lazy[D.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<c&&(!s.events[R][1].end||s.events[R][1].end.offset>c))return;const V=r.events.length;let K=V,G,X;for(;K--;)if(r.events[K][0]==="exit"&&r.events[K][1].type==="chunkFlow"){if(G){X=r.events[K][1].end;break}G=!0}for(b(l),R=V;R<r.events.length;)r.events[R][1].end={...X},R++;pn(r.events,K+1,0,r.events.slice(V)),r.events.length=R}}function b(D){let U=i.length;for(;U-- >D;){const H=i[U];r.containerState=H[1],H[0].exit.call(r,t)}i.length=D}function $(){s.write([null]),a=void 0,s=void 0,r.containerState._closeFlow=void 0}}function Cw(t,r,i){return Ke(t,t.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function up(t){if(t===null||_t(t)||xw(t))return 1;if(yw(t))return 2}function wu(t,r,i){const l=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!l.includes(a)&&(r=a(r,i),l.push(a))}return r}const Xa={name:"attention",resolveAll:bw,tokenize:Ew};function bw(t,r){let i=-1,l,s,a,c,f,p,m,g;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(l=i;l--;)if(t[l][0]==="exit"&&t[l][1].type==="attentionSequence"&&t[l][1]._open&&r.sliceSerialize(t[l][1]).charCodeAt(0)===r.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[l][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[l][1].end.offset-t[l][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;p=t[l][1].end.offset-t[l][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const y={...t[l][1].end},k={...t[i][1].start};cp(y,-p),cp(k,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...t[l][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:k},a={type:p>1?"strongText":"emphasisText",start:{...t[l][1].end},end:{...t[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},t[l][1].end={...c.start},t[i][1].start={...f.end},m=[],t[l][1].end.offset-t[l][1].start.offset&&(m=Gt(m,[["enter",t[l][1],r],["exit",t[l][1],r]])),m=Gt(m,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",a,r]]),m=Gt(m,wu(r.parser.constructs.insideSpan.null,t.slice(l+1,i),r)),m=Gt(m,[["exit",a,r],["enter",f,r],["exit",f,r],["exit",s,r]]),t[i][1].end.offset-t[i][1].start.offset?(g=2,m=Gt(m,[["enter",t[i][1],r],["exit",t[i][1],r]])):g=0,pn(t,l-1,i-l+3,m),i=l+m.length-g-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function Ew(t,r){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,s=up(l);let a;return c;function c(p){return a=p,t.enter("attentionSequence"),f(p)}function f(p){if(p===a)return t.consume(p),f;const m=t.exit("attentionSequence"),g=up(p),y=!g||g===2&&s||i.includes(p),k=!s||s===2&&g||i.includes(l);return m._open=!!(a===42?y:y&&(s||!k)),m._close=!!(a===42?k:k&&(g||!y)),r(p)}}function cp(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const Nw={name:"autolink",tokenize:jw};function jw(t,r,i){let l=0;return s;function s(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(x){return dn(x)?(t.consume(x),c):x===64?i(x):m(x)}function c(x){return x===43||x===45||x===46||Ut(x)?(l=1,f(x)):m(x)}function f(x){return x===58?(t.consume(x),l=0,p):(x===43||x===45||x===46||Ut(x))&&l++<32?(t.consume(x),f):(l=0,m(x))}function p(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r):x===null||x===32||x===60||Ga(x)?i(x):(t.consume(x),p)}function m(x){return x===64?(t.consume(x),g):hw(x)?(t.consume(x),m):i(x)}function g(x){return Ut(x)?y(x):i(x)}function y(x){return x===46?(t.consume(x),l=0,g):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r):k(x)}function k(x){if((x===45||Ut(x))&&l++<63){const j=x===45?k:y;return t.consume(x),j}return i(x)}}const Cl={partial:!0,tokenize:Pw};function Pw(t,r,i){return l;function l(a){return Ue(a)?Ke(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||Pe(a)?r(a):i(a)}}const Ph={continuation:{tokenize:Lw},exit:Iw,name:"blockQuote",tokenize:Tw};function Tw(t,r,i){const l=this;return s;function s(c){if(c===62){const f=l.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),a}return i(c)}function a(c){return Ue(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(c))}}function Lw(t,r,i){const l=this;return s;function s(c){return Ue(c)?Ke(t,a,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):a(c)}function a(c){return t.attempt(Ph,r,i)(c)}}function Iw(t){t.exit("blockQuote")}const Th={name:"characterEscape",tokenize:_w};function _w(t,r,i){return l;function l(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return gw(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):i(a)}}const Lh={name:"characterReference",tokenize:Ow};function Ow(t,r,i){const l=this;let s=0,a,c;return f;function f(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),p}function p(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),a=31,c=Ut,g(y))}function m(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,c=mw,g):(t.enter("characterReferenceValue"),a=7,c=Ya,g(y))}function g(y){if(y===59&&s){const k=t.exit("characterReferenceValue");return c===Ut&&!vu(l.sliceSerialize(k))?i(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return c(y)&&s++<a?(t.consume(y),g):i(y)}}const dp={partial:!0,tokenize:zw},fp={concrete:!0,name:"codeFenced",tokenize:Rw};function Rw(t,r,i){const l=this,s={partial:!0,tokenize:H};let a=0,c=0,f;return p;function p(R){return m(R)}function m(R){const V=l.events[l.events.length-1];return a=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,f=R,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g(R)}function g(R){return R===f?(c++,t.consume(R),g):c<3?i(R):(t.exit("codeFencedFenceSequence"),Ue(R)?Ke(t,y,"whitespace")(R):y(R))}function y(R){return R===null||Pe(R)?(t.exit("codeFencedFence"),l.interrupt?r(R):t.check(dp,T,U)(R)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),k(R))}function k(R){return R===null||Pe(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(R)):Ue(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ke(t,x,"whitespace")(R)):R===96&&R===f?i(R):(t.consume(R),k)}function x(R){return R===null||Pe(R)?y(R):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),j(R))}function j(R){return R===null||Pe(R)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(R)):R===96&&R===f?i(R):(t.consume(R),j)}function T(R){return t.attempt(s,U,I)(R)}function I(R){return t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),b}function b(R){return a>0&&Ue(R)?Ke(t,$,"linePrefix",a+1)(R):$(R)}function $(R){return R===null||Pe(R)?t.check(dp,T,U)(R):(t.enter("codeFlowValue"),D(R))}function D(R){return R===null||Pe(R)?(t.exit("codeFlowValue"),$(R)):(t.consume(R),D)}function U(R){return t.exit("codeFenced"),r(R)}function H(R,V,K){let G=0;return X;function X(q){return R.enter("lineEnding"),R.consume(q),R.exit("lineEnding"),oe}function oe(q){return R.enter("codeFencedFence"),Ue(q)?Ke(R,M,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):M(q)}function M(q){return q===f?(R.enter("codeFencedFenceSequence"),re(q)):K(q)}function re(q){return q===f?(G++,R.consume(q),re):G>=c?(R.exit("codeFencedFenceSequence"),Ue(q)?Ke(R,Y,"whitespace")(q):Y(q)):K(q)}function Y(q){return q===null||Pe(q)?(R.exit("codeFencedFence"),V(q)):K(q)}}}function zw(t,r,i){const l=this;return s;function s(c){return c===null?i(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a)}function a(c){return l.parser.lazy[l.now().line]?i(c):r(c)}}const ja={name:"codeIndented",tokenize:Mw},Aw={partial:!0,tokenize:Dw};function Mw(t,r,i){const l=this;return s;function s(m){return t.enter("codeIndented"),Ke(t,a,"linePrefix",5)(m)}function a(m){const g=l.events[l.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(m):i(m)}function c(m){return m===null?p(m):Pe(m)?t.attempt(Aw,c,p)(m):(t.enter("codeFlowValue"),f(m))}function f(m){return m===null||Pe(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),f)}function p(m){return t.exit("codeIndented"),r(m)}}function Dw(t,r,i){const l=this;return s;function s(c){return l.parser.lazy[l.now().line]?i(c):Pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Ke(t,a,"linePrefix",5)(c)}function a(c){const f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):Pe(c)?s(c):i(c)}}const Fw={name:"codeText",previous:Uw,resolve:$w,tokenize:Bw};function $w(t){let r=t.length-4,i=3,l,s;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(l=i;++l<r;)if(t[l][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(l=i-1,r++;++l<=r;)s===void 0?l!==r&&t[l][1].type!=="lineEnding"&&(s=l):(l===r||t[l][1].type==="lineEnding")&&(t[s][1].type="codeTextData",l!==s+2&&(t[s][1].end=t[l-1][1].end,t.splice(s+2,l-s-2),r-=l-s-2,l=s+2),s=void 0);return t}function Uw(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bw(t,r,i){let l=0,s,a;return c;function c(y){return t.enter("codeText"),t.enter("codeTextSequence"),f(y)}function f(y){return y===96?(t.consume(y),l++,f):(t.exit("codeTextSequence"),p(y))}function p(y){return y===null?i(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),p):y===96?(a=t.enter("codeTextSequence"),s=0,g(y)):Pe(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||Pe(y)?(t.exit("codeTextData"),p(y)):(t.consume(y),m)}function g(y){return y===96?(t.consume(y),s++,g):s===l?(t.exit("codeTextSequence"),t.exit("codeText"),r(y)):(a.type="codeTextData",m(y))}}class Vw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(r,l):r>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(r,i,l){const s=i||0;this.setCursor(Math.trunc(r));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return l&&Mi(this.left,l),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Mi(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);Mi(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Mi(this.left,i.reverse())}}}function Mi(t,r){let i=0;if(r.length<1e4)t.push(...r);else for(;i<r.length;)t.push(...r.slice(i,i+1e4)),i+=1e4}function Ih(t){const r={};let i=-1,l,s,a,c,f,p,m;const g=new Vw(t);for(;++i<g.length;){for(;i in r;)i=r[i];if(l=g.get(i),i&&l[1].type==="chunkFlow"&&g.get(i-1)[1].type==="listItemPrefix"&&(p=l[1]._tokenizer.events,a=0,a<p.length&&p[a][1].type==="lineEndingBlank"&&(a+=2),a<p.length&&p[a][1].type==="content"))for(;++a<p.length&&p[a][1].type!=="content";)p[a][1].type==="chunkText"&&(p[a][1]._isInFirstContentOfListItem=!0,a++);if(l[0]==="enter")l[1].contentType&&(Object.assign(r,Hw(g,i)),i=r[i],m=!0);else if(l[1]._container){for(a=i,s=void 0;a--;)if(c=g.get(a),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=a);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(l[1].end={...g.get(s)[1].start},f=g.slice(s,i),f.unshift(l),g.splice(s,i-s+1,f))}}return pn(t,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function Hw(t,r){const i=t.get(r)[1],l=t.get(r)[2];let s=r-1;const a=[];let c=i._tokenizer;c||(c=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,p=[],m={};let g,y,k=-1,x=i,j=0,T=0;const I=[T];for(;x;){for(;t.get(++s)[1]!==x;);a.push(s),x._tokenizer||(g=l.sliceStream(x),x.next||g.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=i;++k<f.length;)f[k][0]==="exit"&&f[k-1][0]==="enter"&&f[k][1].type===f[k-1][1].type&&f[k][1].start.line!==f[k][1].end.line&&(T=k+1,I.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):I.pop(),k=I.length;k--;){const b=f.slice(I[k],I[k+1]),$=a.pop();p.push([$,$+b.length-1]),t.splice($,2,b)}for(p.reverse(),k=-1;++k<p.length;)m[j+p[k][0]]=j+p[k][1],j+=p[k][1]-p[k][0]-1;return m}const Ww={resolve:Kw,tokenize:Qw},qw={partial:!0,tokenize:Gw};function Kw(t){return Ih(t),t}function Qw(t,r){let i;return l;function l(f){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?a(f):Pe(f)?t.check(qw,c,a)(f):(t.consume(f),s)}function a(f){return t.exit("chunkContent"),t.exit("content"),r(f)}function c(f){return t.consume(f),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function Gw(t,r,i){const l=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ke(t,a,"linePrefix")}function a(c){if(c===null||Pe(c))return i(c);const f=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):t.interrupt(l.parser.constructs.flow,i,r)(c)}}function _h(t,r,i,l,s,a,c,f,p){const m=p||Number.POSITIVE_INFINITY;let g=0;return y;function y(b){return b===60?(t.enter(l),t.enter(s),t.enter(a),t.consume(b),t.exit(a),k):b===null||b===32||b===41||Ga(b)?i(b):(t.enter(l),t.enter(c),t.enter(f),t.enter("chunkString",{contentType:"string"}),T(b))}function k(b){return b===62?(t.enter(a),t.consume(b),t.exit(a),t.exit(s),t.exit(l),r):(t.enter(f),t.enter("chunkString",{contentType:"string"}),x(b))}function x(b){return b===62?(t.exit("chunkString"),t.exit(f),k(b)):b===null||b===60||Pe(b)?i(b):(t.consume(b),b===92?j:x)}function j(b){return b===60||b===62||b===92?(t.consume(b),x):x(b)}function T(b){return!g&&(b===null||b===41||_t(b))?(t.exit("chunkString"),t.exit(f),t.exit(c),t.exit(l),r(b)):g<m&&b===40?(t.consume(b),g++,T):b===41?(t.consume(b),g--,T):b===null||b===32||b===40||Ga(b)?i(b):(t.consume(b),b===92?I:T)}function I(b){return b===40||b===41||b===92?(t.consume(b),T):T(b)}}function Oh(t,r,i,l,s,a){const c=this;let f=0,p;return m;function m(x){return t.enter(l),t.enter(s),t.consume(x),t.exit(s),t.enter(a),g}function g(x){return f>999||x===null||x===91||x===93&&!p||x===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(t.exit(a),t.enter(s),t.consume(x),t.exit(s),t.exit(l),r):Pe(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),g):(t.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||Pe(x)||f++>999?(t.exit("chunkString"),g(x)):(t.consume(x),p||(p=!Ue(x)),x===92?k:y)}function k(x){return x===91||x===92||x===93?(t.consume(x),f++,y):y(x)}}function Rh(t,r,i,l,s,a){let c;return f;function f(k){return k===34||k===39||k===40?(t.enter(l),t.enter(s),t.consume(k),t.exit(s),c=k===40?41:k,p):i(k)}function p(k){return k===c?(t.enter(s),t.consume(k),t.exit(s),t.exit(l),r):(t.enter(a),m(k))}function m(k){return k===c?(t.exit(a),p(c)):k===null?i(k):Pe(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),Ke(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===c||k===null||Pe(k)?(t.exit("chunkString"),m(k)):(t.consume(k),k===92?y:g)}function y(k){return k===c||k===92?(t.consume(k),g):g(k)}}function Vi(t,r){let i;return l;function l(s){return Pe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i=!0,l):Ue(s)?Ke(t,l,i?"linePrefix":"lineSuffix")(s):r(s)}}const Yw={name:"definition",tokenize:Jw},Xw={partial:!0,tokenize:Zw};function Jw(t,r,i){const l=this;let s;return a;function a(x){return t.enter("definition"),c(x)}function c(x){return Oh.call(l,t,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return s=Wr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),p):i(x)}function p(x){return _t(x)?Vi(t,m)(x):m(x)}function m(x){return _h(t,g,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function g(x){return t.attempt(Xw,y,y)(x)}function y(x){return Ue(x)?Ke(t,k,"whitespace")(x):k(x)}function k(x){return x===null||Pe(x)?(t.exit("definition"),l.parser.defined.push(s),r(x)):i(x)}}function Zw(t,r,i){return l;function l(f){return _t(f)?Vi(t,s)(f):i(f)}function s(f){return Rh(t,a,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function a(f){return Ue(f)?Ke(t,c,"whitespace")(f):c(f)}function c(f){return f===null||Pe(f)?r(f):i(f)}}const ek={name:"hardBreakEscape",tokenize:tk};function tk(t,r,i){return l;function l(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return Pe(a)?(t.exit("hardBreakEscape"),r(a)):i(a)}}const nk={name:"headingAtx",resolve:rk,tokenize:ik};function rk(t,r){let i=t.length-2,l=3,s,a;return t[l][1].type==="whitespace"&&(l+=2),i-2>l&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&t[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(s={type:"atxHeadingText",start:t[l][1].start,end:t[i][1].end},a={type:"chunkText",start:t[l][1].start,end:t[i][1].end,contentType:"text"},pn(t,l,i-l+1,[["enter",s,r],["enter",a,r],["exit",a,r],["exit",s,r]])),t}function ik(t,r,i){let l=0;return s;function s(g){return t.enter("atxHeading"),a(g)}function a(g){return t.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&l++<6?(t.consume(g),c):g===null||_t(g)?(t.exit("atxHeadingSequence"),f(g)):i(g)}function f(g){return g===35?(t.enter("atxHeadingSequence"),p(g)):g===null||Pe(g)?(t.exit("atxHeading"),r(g)):Ue(g)?Ke(t,f,"whitespace")(g):(t.enter("atxHeadingText"),m(g))}function p(g){return g===35?(t.consume(g),p):(t.exit("atxHeadingSequence"),f(g))}function m(g){return g===null||g===35||_t(g)?(t.exit("atxHeadingText"),f(g)):(t.consume(g),m)}}const ok=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],pp=["pre","script","style","textarea"],lk={concrete:!0,name:"htmlFlow",resolveTo:uk,tokenize:ck},sk={partial:!0,tokenize:fk},ak={partial:!0,tokenize:dk};function uk(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function ck(t,r,i){const l=this;let s,a,c,f,p;return m;function m(C){return g(C)}function g(C){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(C),y}function y(C){return C===33?(t.consume(C),k):C===47?(t.consume(C),a=!0,T):C===63?(t.consume(C),s=3,l.interrupt?r:S):dn(C)?(t.consume(C),c=String.fromCharCode(C),I):i(C)}function k(C){return C===45?(t.consume(C),s=2,x):C===91?(t.consume(C),s=5,f=0,j):dn(C)?(t.consume(C),s=4,l.interrupt?r:S):i(C)}function x(C){return C===45?(t.consume(C),l.interrupt?r:S):i(C)}function j(C){const Se="CDATA[";return C===Se.charCodeAt(f++)?(t.consume(C),f===Se.length?l.interrupt?r:M:j):i(C)}function T(C){return dn(C)?(t.consume(C),c=String.fromCharCode(C),I):i(C)}function I(C){if(C===null||C===47||C===62||_t(C)){const Se=C===47,Ee=c.toLowerCase();return!Se&&!a&&pp.includes(Ee)?(s=1,l.interrupt?r(C):M(C)):ok.includes(c.toLowerCase())?(s=6,Se?(t.consume(C),b):l.interrupt?r(C):M(C)):(s=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(C):a?$(C):D(C))}return C===45||Ut(C)?(t.consume(C),c+=String.fromCharCode(C),I):i(C)}function b(C){return C===62?(t.consume(C),l.interrupt?r:M):i(C)}function $(C){return Ue(C)?(t.consume(C),$):X(C)}function D(C){return C===47?(t.consume(C),X):C===58||C===95||dn(C)?(t.consume(C),U):Ue(C)?(t.consume(C),D):X(C)}function U(C){return C===45||C===46||C===58||C===95||Ut(C)?(t.consume(C),U):H(C)}function H(C){return C===61?(t.consume(C),R):Ue(C)?(t.consume(C),H):D(C)}function R(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(t.consume(C),p=C,V):Ue(C)?(t.consume(C),R):K(C)}function V(C){return C===p?(t.consume(C),p=null,G):C===null||Pe(C)?i(C):(t.consume(C),V)}function K(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||_t(C)?H(C):(t.consume(C),K)}function G(C){return C===47||C===62||Ue(C)?D(C):i(C)}function X(C){return C===62?(t.consume(C),oe):i(C)}function oe(C){return C===null||Pe(C)?M(C):Ue(C)?(t.consume(C),oe):i(C)}function M(C){return C===45&&s===2?(t.consume(C),fe):C===60&&s===1?(t.consume(C),pe):C===62&&s===4?(t.consume(C),N):C===63&&s===3?(t.consume(C),S):C===93&&s===5?(t.consume(C),ue):Pe(C)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(sk,F,re)(C)):C===null||Pe(C)?(t.exit("htmlFlowData"),re(C)):(t.consume(C),M)}function re(C){return t.check(ak,Y,F)(C)}function Y(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),q}function q(C){return C===null||Pe(C)?re(C):(t.enter("htmlFlowData"),M(C))}function fe(C){return C===45?(t.consume(C),S):M(C)}function pe(C){return C===47?(t.consume(C),c="",ee):M(C)}function ee(C){if(C===62){const Se=c.toLowerCase();return pp.includes(Se)?(t.consume(C),N):M(C)}return dn(C)&&c.length<8?(t.consume(C),c+=String.fromCharCode(C),ee):M(C)}function ue(C){return C===93?(t.consume(C),S):M(C)}function S(C){return C===62?(t.consume(C),N):C===45&&s===2?(t.consume(C),S):M(C)}function N(C){return C===null||Pe(C)?(t.exit("htmlFlowData"),F(C)):(t.consume(C),N)}function F(C){return t.exit("htmlFlow"),r(C)}}function dk(t,r,i){const l=this;return s;function s(c){return Pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a):i(c)}function a(c){return l.parser.lazy[l.now().line]?i(c):r(c)}}function fk(t,r,i){return l;function l(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Cl,r,i)}}const pk={name:"htmlText",tokenize:hk};function hk(t,r,i){const l=this;let s,a,c;return f;function f(S){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(S),p}function p(S){return S===33?(t.consume(S),m):S===47?(t.consume(S),H):S===63?(t.consume(S),D):dn(S)?(t.consume(S),K):i(S)}function m(S){return S===45?(t.consume(S),g):S===91?(t.consume(S),a=0,j):dn(S)?(t.consume(S),$):i(S)}function g(S){return S===45?(t.consume(S),x):i(S)}function y(S){return S===null?i(S):S===45?(t.consume(S),k):Pe(S)?(c=y,pe(S)):(t.consume(S),y)}function k(S){return S===45?(t.consume(S),x):y(S)}function x(S){return S===62?fe(S):S===45?k(S):y(S)}function j(S){const N="CDATA[";return S===N.charCodeAt(a++)?(t.consume(S),a===N.length?T:j):i(S)}function T(S){return S===null?i(S):S===93?(t.consume(S),I):Pe(S)?(c=T,pe(S)):(t.consume(S),T)}function I(S){return S===93?(t.consume(S),b):T(S)}function b(S){return S===62?fe(S):S===93?(t.consume(S),b):T(S)}function $(S){return S===null||S===62?fe(S):Pe(S)?(c=$,pe(S)):(t.consume(S),$)}function D(S){return S===null?i(S):S===63?(t.consume(S),U):Pe(S)?(c=D,pe(S)):(t.consume(S),D)}function U(S){return S===62?fe(S):D(S)}function H(S){return dn(S)?(t.consume(S),R):i(S)}function R(S){return S===45||Ut(S)?(t.consume(S),R):V(S)}function V(S){return Pe(S)?(c=V,pe(S)):Ue(S)?(t.consume(S),V):fe(S)}function K(S){return S===45||Ut(S)?(t.consume(S),K):S===47||S===62||_t(S)?G(S):i(S)}function G(S){return S===47?(t.consume(S),fe):S===58||S===95||dn(S)?(t.consume(S),X):Pe(S)?(c=G,pe(S)):Ue(S)?(t.consume(S),G):fe(S)}function X(S){return S===45||S===46||S===58||S===95||Ut(S)?(t.consume(S),X):oe(S)}function oe(S){return S===61?(t.consume(S),M):Pe(S)?(c=oe,pe(S)):Ue(S)?(t.consume(S),oe):G(S)}function M(S){return S===null||S===60||S===61||S===62||S===96?i(S):S===34||S===39?(t.consume(S),s=S,re):Pe(S)?(c=M,pe(S)):Ue(S)?(t.consume(S),M):(t.consume(S),Y)}function re(S){return S===s?(t.consume(S),s=void 0,q):S===null?i(S):Pe(S)?(c=re,pe(S)):(t.consume(S),re)}function Y(S){return S===null||S===34||S===39||S===60||S===61||S===96?i(S):S===47||S===62||_t(S)?G(S):(t.consume(S),Y)}function q(S){return S===47||S===62||_t(S)?G(S):i(S)}function fe(S){return S===62?(t.consume(S),t.exit("htmlTextData"),t.exit("htmlText"),r):i(S)}function pe(S){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),ee}function ee(S){return Ue(S)?Ke(t,ue,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ue(S)}function ue(S){return t.enter("htmlTextData"),c(S)}}const ku={name:"labelEnd",resolveAll:xk,resolveTo:vk,tokenize:wk},mk={tokenize:kk},gk={tokenize:Sk},yk={tokenize:Ck};function xk(t){let r=-1;const i=[];for(;++r<t.length;){const l=t[r][1];if(i.push(t[r]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const s=l.type==="labelImage"?4:2;l.type="data",r+=s}}return t.length!==i.length&&pn(t,0,t.length,i),t}function vk(t,r){let i=t.length,l=0,s,a,c,f;for(;i--;)if(s=t[i][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=i,s.type!=="labelLink")){l=2;break}}else s.type==="labelEnd"&&(c=i);const p={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[a][1].start},end:{...t[c][1].end}},g={type:"labelText",start:{...t[a+l+2][1].end},end:{...t[c-2][1].start}};return f=[["enter",p,r],["enter",m,r]],f=Gt(f,t.slice(a+1,a+l+3)),f=Gt(f,[["enter",g,r]]),f=Gt(f,wu(r.parser.constructs.insideSpan.null,t.slice(a+l+4,c-3),r)),f=Gt(f,[["exit",g,r],t[c-2],t[c-1],["exit",m,r]]),f=Gt(f,t.slice(c+1)),f=Gt(f,[["exit",p,r]]),pn(t,a,t.length,f),t}function wk(t,r,i){const l=this;let s=l.events.length,a,c;for(;s--;)if((l.events[s][1].type==="labelImage"||l.events[s][1].type==="labelLink")&&!l.events[s][1]._balanced){a=l.events[s][1];break}return f;function f(k){return a?a._inactive?y(k):(c=l.parser.defined.includes(Wr(l.sliceSerialize({start:a.end,end:l.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(k),t.exit("labelMarker"),t.exit("labelEnd"),p):i(k)}function p(k){return k===40?t.attempt(mk,g,c?g:y)(k):k===91?t.attempt(gk,g,c?m:y)(k):c?g(k):y(k)}function m(k){return t.attempt(yk,g,y)(k)}function g(k){return r(k)}function y(k){return a._balanced=!0,i(k)}}function kk(t,r,i){return l;function l(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),s}function s(y){return _t(y)?Vi(t,a)(y):a(y)}function a(y){return y===41?g(y):_h(t,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return _t(y)?Vi(t,p)(y):g(y)}function f(y){return i(y)}function p(y){return y===34||y===39||y===40?Rh(t,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function m(y){return _t(y)?Vi(t,g)(y):g(y)}function g(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),r):i(y)}}function Sk(t,r,i){const l=this;return s;function s(f){return Oh.call(l,t,a,c,"reference","referenceMarker","referenceString")(f)}function a(f){return l.parser.defined.includes(Wr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?r(f):i(f)}function c(f){return i(f)}}function Ck(t,r,i){return l;function l(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),r):i(a)}}const bk={name:"labelStartImage",resolveAll:ku.resolveAll,tokenize:Ek};function Ek(t,r,i){const l=this;return s;function s(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),a}function a(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(f):r(f)}}const Nk={name:"labelStartLink",resolveAll:ku.resolveAll,tokenize:jk};function jk(t,r,i){const l=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),a}function a(c){return c===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(c):r(c)}}const Pa={name:"lineEnding",tokenize:Pk};function Pk(t,r){return i;function i(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),Ke(t,r,"linePrefix")}}const fl={name:"thematicBreak",tokenize:Tk};function Tk(t,r,i){let l=0,s;return a;function a(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,f(m)}function f(m){return m===s?(t.enter("thematicBreakSequence"),p(m)):l>=3&&(m===null||Pe(m))?(t.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===s?(t.consume(m),l++,p):(t.exit("thematicBreakSequence"),Ue(m)?Ke(t,f,"whitespace")(m):f(m))}}const It={continuation:{tokenize:Ok},exit:zk,name:"list",tokenize:_k},Lk={partial:!0,tokenize:Ak},Ik={partial:!0,tokenize:Rk};function _k(t,r,i){const l=this,s=l.events[l.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(x){const j=l.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(j==="listUnordered"?!l.containerState.marker||x===l.containerState.marker:Ya(x)){if(l.containerState.type||(l.containerState.type=j,t.enter(j,{_container:!0})),j==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(fl,i,m)(x):m(x);if(!l.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(x)}return i(x)}function p(x){return Ya(x)&&++c<10?(t.consume(x),p):(!l.interrupt||c<2)&&(l.containerState.marker?x===l.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),m(x)):i(x)}function m(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||x,t.check(Cl,l.interrupt?i:g,t.attempt(Lk,k,y))}function g(x){return l.containerState.initialBlankLine=!0,a++,k(x)}function y(x){return Ue(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),k):i(x)}function k(x){return l.containerState.size=a+l.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(x)}}function Ok(t,r,i){const l=this;return l.containerState._closeFlow=void 0,t.check(Cl,s,a);function s(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Ke(t,r,"listItemIndent",l.containerState.size+1)(f)}function a(f){return l.containerState.furtherBlankLines||!Ue(f)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,c(f)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,t.attempt(Ik,r,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Ke(t,t.attempt(It,r,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Rk(t,r,i){const l=this;return Ke(t,s,"listItemIndent",l.containerState.size+1);function s(a){const c=l.events[l.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===l.containerState.size?r(a):i(a)}}function zk(t){t.exit(this.containerState.type)}function Ak(t,r,i){const l=this;return Ke(t,s,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const c=l.events[l.events.length-1];return!Ue(a)&&c&&c[1].type==="listItemPrefixWhitespace"?r(a):i(a)}}const hp={name:"setextUnderline",resolveTo:Mk,tokenize:Dk};function Mk(t,r){let i=t.length,l,s,a;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){l=i;break}t[i][1].type==="paragraph"&&(s=i)}else t[i][1].type==="content"&&t.splice(i,1),!a&&t[i][1].type==="definition"&&(a=i);const c={type:"setextHeading",start:{...t[l][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",c,r]),t.splice(a+1,0,["exit",t[l][1],r]),t[l][1].end={...t[a][1].end}):t[l][1]=c,t.push(["exit",c,r]),t}function Dk(t,r,i){const l=this;let s;return a;function a(m){let g=l.events.length,y;for(;g--;)if(l.events[g][1].type!=="lineEnding"&&l.events[g][1].type!=="linePrefix"&&l.events[g][1].type!=="content"){y=l.events[g][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||y)?(t.enter("setextHeadingLine"),s=m,c(m)):i(m)}function c(m){return t.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===s?(t.consume(m),f):(t.exit("setextHeadingLineSequence"),Ue(m)?Ke(t,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Pe(m)?(t.exit("setextHeadingLine"),r(m)):i(m)}}const Fk={tokenize:$k};function $k(t){const r=this,i=t.attempt(Cl,l,t.attempt(this.parser.constructs.flowInitial,s,Ke(t,t.attempt(this.parser.constructs.flow,s,t.attempt(Ww,s)),"linePrefix")));return i;function l(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r.currentConstruct=void 0,i}}const Uk={resolveAll:Ah()},Bk=zh("string"),Vk=zh("text");function zh(t){return{resolveAll:Ah(t==="text"?Hk:void 0),tokenize:r};function r(i){const l=this,s=this.parser.constructs[t],a=i.attempt(s,c,f);return c;function c(g){return m(g)?a(g):f(g)}function f(g){if(g===null){i.consume(g);return}return i.enter("data"),i.consume(g),p}function p(g){return m(g)?(i.exit("data"),a(g)):(i.consume(g),p)}function m(g){if(g===null)return!0;const y=s[g];let k=-1;if(y)for(;++k<y.length;){const x=y[k];if(!x.previous||x.previous.call(l,l.previous))return!0}return!1}}}function Ah(t){return r;function r(i,l){let s=-1,a;for(;++s<=i.length;)a===void 0?i[s]&&i[s][1].type==="data"&&(a=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==a+2&&(i[a][1].end=i[s-1][1].end,i.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(i,l):i}}function Hk(t,r){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const l=t[i-1][1],s=r.sliceStream(l);let a=s.length,c=-1,f=0,p;for(;a--;){const m=s[a];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)p=!0,f++;else if(m!==-1){a++;break}}if(r._contentTypeTextTrailing&&i===t.length&&(f=0),f){const m={type:i===t.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?c:l.start._bufferIndex+c,_index:l.start._index+a,line:l.end.line,column:l.end.column-f,offset:l.end.offset-f},end:{...l.end}};l.end={...m.start},l.start.offset===l.end.offset?Object.assign(l,m):(t.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return t}const Wk={42:It,43:It,45:It,48:It,49:It,50:It,51:It,52:It,53:It,54:It,55:It,56:It,57:It,62:Ph},qk={91:Yw},Kk={[-2]:ja,[-1]:ja,32:ja},Qk={35:nk,42:fl,45:[hp,fl],60:lk,61:hp,95:fl,96:fp,126:fp},Gk={38:Lh,92:Th},Yk={[-5]:Pa,[-4]:Pa,[-3]:Pa,33:bk,38:Lh,42:Xa,60:[Nw,pk],91:Nk,92:[ek,Th],93:ku,95:Xa,96:Fw},Xk={null:[Xa,Uk]},Jk={null:[42,95]},Zk={null:[]},eS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Jk,contentInitial:qk,disable:Zk,document:Wk,flow:Qk,flowInitial:Kk,insideSpan:Xk,string:Gk,text:Yk},Symbol.toStringTag,{value:"Module"}));function tS(t,r,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},a=[];let c=[],f=[];const p={attempt:V(H),check:V(R),consume:$,enter:D,exit:U,interrupt:V(R,{interrupt:!0})},m={code:null,containerState:{},defineSkip:T,events:[],now:j,parser:t,previous:null,sliceSerialize:k,sliceStream:x,write:y};let g=r.tokenize.call(m,p);return r.resolveAll&&a.push(r),m;function y(oe){return c=Gt(c,oe),I(),c[c.length-1]!==null?[]:(K(r,0),m.events=wu(a,m.events,m),m.events)}function k(oe,M){return rS(x(oe),M)}function x(oe){return nS(c,oe)}function j(){const{_bufferIndex:oe,_index:M,line:re,column:Y,offset:q}=l;return{_bufferIndex:oe,_index:M,line:re,column:Y,offset:q}}function T(oe){s[oe.line]=oe.column,X()}function I(){let oe;for(;l._index<c.length;){const M=c[l._index];if(typeof M=="string")for(oe=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===oe&&l._bufferIndex<M.length;)b(M.charCodeAt(l._bufferIndex));else b(M)}}function b(oe){g=g(oe)}function $(oe){Pe(oe)?(l.line++,l.column=1,l.offset+=oe===-3?2:1,X()):oe!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),m.previous=oe}function D(oe,M){const re=M||{};return re.type=oe,re.start=j(),m.events.push(["enter",re,m]),f.push(re),re}function U(oe){const M=f.pop();return M.end=j(),m.events.push(["exit",M,m]),M}function H(oe,M){K(oe,M.from)}function R(oe,M){M.restore()}function V(oe,M){return re;function re(Y,q,fe){let pe,ee,ue,S;return Array.isArray(Y)?F(Y):"tokenize"in Y?F([Y]):N(Y);function N(Q){return B;function B(J){const de=J!==null&&Q[J],se=J!==null&&Q.null,me=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(se)?se:se?[se]:[]];return F(me)(J)}}function F(Q){return pe=Q,ee=0,Q.length===0?fe:C(Q[ee])}function C(Q){return B;function B(J){return S=G(),ue=Q,Q.partial||(m.currentConstruct=Q),Q.name&&m.parser.constructs.disable.null.includes(Q.name)?Ee():Q.tokenize.call(M?Object.assign(Object.create(m),M):m,p,Se,Ee)(J)}}function Se(Q){return oe(ue,S),q}function Ee(Q){return S.restore(),++ee<pe.length?C(pe[ee]):fe}}}function K(oe,M){oe.resolveAll&&!a.includes(oe)&&a.push(oe),oe.resolve&&pn(m.events,M,m.events.length-M,oe.resolve(m.events.slice(M),m)),oe.resolveTo&&(m.events=oe.resolveTo(m.events,m))}function G(){const oe=j(),M=m.previous,re=m.currentConstruct,Y=m.events.length,q=Array.from(f);return{from:Y,restore:fe};function fe(){l=oe,m.previous=M,m.currentConstruct=re,m.events.length=Y,f=q,X()}}function X(){l.line in s&&l.column<2&&(l.column=s[l.line],l.offset+=s[l.line]-1)}}function nS(t,r){const i=r.start._index,l=r.start._bufferIndex,s=r.end._index,a=r.end._bufferIndex;let c;if(i===s)c=[t[i].slice(l,a)];else{if(c=t.slice(i,s),l>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(l):c.shift()}a>0&&c.push(t[s].slice(0,a))}return c}function rS(t,r){let i=-1;const l=[];let s;for(;++i<t.length;){const a=t[i];let c;if(typeof a=="string")c=a;else switch(a){case-5:{c="\r";break}case-4:{c=`
|
|
258
263
|
`;break}case-3:{c=`\r
|
|
259
|
-
`;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(a)}s=a===-2,l.push(c)}return l.join("")}function Gk(t){const l={constructs:nw([Wk,...(t||{}).extensions||[]]),content:s(cw),defined:[],document:s(fw),flow:s(Lk),lazy:{},string:s(Ok),text:s(Rk)};return l;function s(a){return c;function c(f){return qk(l,a,f)}}}function Yk(t){for(;!Lh(t););return t}const mp=/[\0\t\n\r]/g;function Xk(){let t=1,r="",i=!0,l;return s;function s(a,c,f){const p=[];let m,g,y,w,x;for(a=r+(typeof a=="string"?a.toString():new TextDecoder(c||void 0).decode(a)),y=0,r="",i&&(a.charCodeAt(0)===65279&&y++,i=void 0);y<a.length;){if(mp.lastIndex=y,m=mp.exec(a),w=m&&m.index!==void 0?m.index:a.length,x=a.charCodeAt(w),!m){r=a.slice(y);break}if(x===10&&y===w&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),y<w&&(p.push(a.slice(y,w)),t+=w-y),x){case 0:{p.push(65533),t++;break}case 9:{for(g=Math.ceil(t/4)*4,p.push(-2);t++<g;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:l=!0,t=1}y=w+1}return f&&(l&&p.push(-5),r&&p.push(r),p.push(null)),p}}const Jk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zk(t){return t.replace(Jk,eS)}function eS(t,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),a=s===120||s===88;return Nh(i.slice(a?2:1),a?16:10)}return vu(i)||t}const Ah={}.hasOwnProperty;function tS(t,r,i){return typeof r!="string"&&(i=r,r=void 0),nS(i)(Yk(Gk(i).document().write(Xk()(t,r,!0))))}function nS(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(st),autolinkProtocol:G,autolinkEmail:G,atxHeading:a(ve),blockQuote:a(le),characterEscape:G,characterReference:G,codeFenced:a(ye),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:a(ye,c),codeText:a(ze,c),codeTextData:G,data:G,codeFlowValue:G,definition:a(ce),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:a(we),hardBreakEscape:a(Ae),hardBreakTrailing:a(Ae),htmlFlow:a(Ve,c),htmlFlowData:G,htmlText:a(Ve,c),htmlTextData:G,image:a($e),label:c,link:a(st),listItem:a(gt),listItemValue:w,listOrdered:a(He,y),listUnordered:a(He),paragraph:a(at),reference:C,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:a(ve),strong:a(En),thematicBreak:a(Xi)},exit:{atxHeading:p(),atxHeadingSequence:H,autolink:p(),autolinkEmail:pe,autolinkProtocol:X,blockQuote:p(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:K,characterReference:U,codeFenced:p(_),codeFencedFence:L,codeFencedFenceInfo:x,codeFencedFenceMeta:N,codeFlowValue:Y,codeIndented:p(j),codeText:p(q),codeTextData:Y,data:Y,definition:p(),definitionDestinationString:B,definitionLabelString:V,definitionTitleString:F,emphasis:p(),hardBreakEscape:p(M),hardBreakTrailing:p(M),htmlFlow:p(re),htmlFlowData:Y,htmlText:p(Q),htmlTextData:Y,image:p(fe),label:ue,labelText:ee,lineEnding:se,link:p(de),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Se,resourceDestinationString:S,resourceTitleString:E,resource:D,setextHeading:p(J),setextHeadingLineSequence:$,setextHeadingText:I,strong:p(),thematicBreak:p()}};Mh(r,(t||{}).mdastExtensions||[]);const i={};return l;function l(W){let ae={type:"root",children:[]};const Ne={stack:[ae],tokenStack:[],config:r,enter:f,exit:m,buffer:c,resume:g,data:i},_e=[];let Me=-1;for(;++Me<W.length;)if(W[Me][1].type==="listOrdered"||W[Me][1].type==="listUnordered")if(W[Me][0]==="enter")_e.push(Me);else{const ft=_e.pop();Me=s(W,ft,Me)}for(Me=-1;++Me<W.length;){const ft=r[W[Me][0]];Ah.call(ft,W[Me][1].type)&&ft[W[Me][1].type].call(Object.assign({sliceSerialize:W[Me][2].sliceSerialize},Ne),W[Me][1])}if(Ne.tokenStack.length>0){const ft=Ne.tokenStack[Ne.tokenStack.length-1];(ft[1]||gp).call(Ne,void 0,ft[0])}for(ae.position={start:Qn(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Qn(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<r.transforms.length;)ae=r.transforms[Me](ae)||ae;return ae}function s(W,ae,Ne){let _e=ae-1,Me=-1,ft=!1,mn,Bt,Nn,Yn;for(;++_e<=Ne;){const pt=W[_e];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?Me++:Me--,Yn=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(mn&&!Yn&&!Me&&!Nn&&(Nn=_e),Yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yn=void 0}if(!Me&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||Me===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(mn){let rn=_e;for(Bt=void 0;rn--;){const zt=W[rn];if(zt[1].type==="lineEnding"||zt[1].type==="lineEndingBlank"){if(zt[0]==="exit")continue;Bt&&(W[Bt][1].type="lineEndingBlank",ft=!0),zt[1].type="lineEnding",Bt=rn}else if(!(zt[1].type==="linePrefix"||zt[1].type==="blockQuotePrefix"||zt[1].type==="blockQuotePrefixWhitespace"||zt[1].type==="blockQuoteMarker"||zt[1].type==="listItemIndent"))break}Nn&&(!Bt||Nn<Bt)&&(mn._spread=!0),mn.end=Object.assign({},Bt?W[Bt][1].start:pt[1].end),W.splice(Bt||_e,0,["exit",mn,pt[2]]),_e++,Ne++}if(pt[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};mn=rn,W.splice(_e,0,["enter",rn,pt[2]]),_e++,Ne++,Nn=void 0,Yn=!0}}}return W[ae][1]._spread=ft,Ne}function a(W,ae){return Ne;function Ne(_e){f.call(this,W(_e),_e),ae&&ae.call(this,_e)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(W,ae,Ne){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ae,Ne||void 0]),W.position={start:Qn(ae.start),end:void 0}}function p(W){return ae;function ae(Ne){W&&W.call(this,Ne),m.call(this,Ne)}}function m(W,ae){const Ne=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==W.type&&(ae?ae.call(this,W,_e[0]):(_e[1]||gp).call(this,W,_e[0]));else throw new Error("Cannot close `"+W.type+"` ("+Bi({start:W.start,end:W.end})+"): it’s not open");Ne.position.end=Qn(W.end)}function g(){return ew(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function w(W){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function x(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=W}function N(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=W}function L(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W.replace(/(\r?\n|\r)$/g,"")}function V(W){const ae=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=ae,Ne.identifier=Wr(this.sliceSerialize(W)).toLowerCase()}function F(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.title=W}function B(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.url=W}function H(W){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Ne=this.sliceSerialize(W).length;ae.depth=Ne}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function $(W){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function J(){this.data.setextHeadingSlurpLineEnding=void 0}function G(W){const Ne=this.stack[this.stack.length-1].children;let _e=Ne[Ne.length-1];(!_e||_e.type!=="text")&&(_e=Yi(),_e.position={start:Qn(W.start),end:void 0},Ne.push(_e)),this.stack.push(_e)}function Y(W){const ae=this.stack.pop();ae.value+=this.sliceSerialize(W),ae.position.end=Qn(W.end)}function se(W){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=ae.children[ae.children.length-1];Ne.position.end=Qn(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ae.type)&&(G.call(this,W),Y.call(this,W))}function M(){this.data.atHardBreak=!0}function re(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function Q(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function q(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function de(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ae,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function fe(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ae,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function ee(W){const ae=this.sliceSerialize(W),Ne=this.stack[this.stack.length-2];Ne.label=Zk(ae),Ne.identifier=Wr(ae).toLowerCase()}function ue(){const W=this.stack[this.stack.length-1],ae=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const _e=W.children;Ne.children=_e}else Ne.alt=ae}function S(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.url=W}function E(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.title=W}function D(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function Se(W){const ae=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=ae,Ne.identifier=Wr(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function Ee(W){this.data.characterReferenceType=W.type}function K(W){const ae=this.sliceSerialize(W),Ne=this.data.characterReferenceType;let _e;Ne?(_e=Nh(ae,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=vu(ae);const Me=this.stack[this.stack.length-1];Me.value+=_e}function U(W){const ae=this.stack.pop();ae.position.end=Qn(W.end)}function X(W){Y.call(this,W);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(W)}function pe(W){Y.call(this,W);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(W)}function le(){return{type:"blockquote",children:[]}}function ye(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Ae(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function $e(){return{type:"image",title:null,url:"",alt:null}}function st(){return{type:"link",title:null,url:"",children:[]}}function He(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function gt(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function at(){return{type:"paragraph",children:[]}}function En(){return{type:"strong",children:[]}}function Yi(){return{type:"text",value:""}}function Xi(){return{type:"thematicBreak"}}}function Qn(t){return{line:t.line,column:t.column,offset:t.offset}}function Mh(t,r){let i=-1;for(;++i<r.length;){const l=r[i];Array.isArray(l)?Mh(t,l):rS(t,l)}}function rS(t,r){let i;for(i in r)if(Ah.call(r,i))switch(i){case"canContainEols":{const l=r[i];l&&t[i].push(...l);break}case"transforms":{const l=r[i];l&&t[i].push(...l);break}case"enter":case"exit":{const l=r[i];l&&Object.assign(t[i],l);break}}}function gp(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Bi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Bi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Bi({start:r.start,end:r.end})+") is still open")}function iS(t){const r=this;r.parser=i;function i(l){return tS(l,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function oS(t,r){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,i),t.applyData(r,i)}function lS(t,r){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,i),[t.applyData(r,i),{type:"text",value:`
|
|
260
|
-
`}]}function
|
|
261
|
-
`:"",l={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(l.className=["language-"+s[0]]);let a={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return r.meta&&(a.data={meta:r.meta}),t.patch(r,a),a=t.applyData(r,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(r,a),a}function
|
|
264
|
+
`;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(a)}s=a===-2,l.push(c)}return l.join("")}function iS(t){const l={constructs:dw([eS,...(t||{}).extensions||[]]),content:s(vw),defined:[],document:s(kw),flow:s(Fk),lazy:{},string:s(Bk),text:s(Vk)};return l;function s(a){return c;function c(f){return tS(l,a,f)}}}function oS(t){for(;!Ih(t););return t}const mp=/[\0\t\n\r]/g;function lS(){let t=1,r="",i=!0,l;return s;function s(a,c,f){const p=[];let m,g,y,k,x;for(a=r+(typeof a=="string"?a.toString():new TextDecoder(c||void 0).decode(a)),y=0,r="",i&&(a.charCodeAt(0)===65279&&y++,i=void 0);y<a.length;){if(mp.lastIndex=y,m=mp.exec(a),k=m&&m.index!==void 0?m.index:a.length,x=a.charCodeAt(k),!m){r=a.slice(y);break}if(x===10&&y===k&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),y<k&&(p.push(a.slice(y,k)),t+=k-y),x){case 0:{p.push(65533),t++;break}case 9:{for(g=Math.ceil(t/4)*4,p.push(-2);t++<g;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:l=!0,t=1}y=k+1}return f&&(l&&p.push(-5),r&&p.push(r),p.push(null)),p}}const sS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aS(t){return t.replace(sS,uS)}function uS(t,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),a=s===120||s===88;return jh(i.slice(a?2:1),a?16:10)}return vu(i)||t}const Mh={}.hasOwnProperty;function cS(t,r,i){return typeof r!="string"&&(i=r,r=void 0),dS(i)(oS(iS(i).document().write(lS()(t,r,!0))))}function dS(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(st),autolinkProtocol:G,autolinkEmail:G,atxHeading:a(ve),blockQuote:a(se),characterEscape:G,characterReference:G,codeFenced:a(me),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:a(me,c),codeText:a(_e,c),codeTextData:G,data:G,codeFlowValue:G,definition:a(ce),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:a(we),hardBreakEscape:a(Ae),hardBreakTrailing:a(Ae),htmlFlow:a(Ve,c),htmlFlowData:G,htmlText:a(Ve,c),htmlTextData:G,image:a($e),label:c,link:a(st),listItem:a(gt),listItemValue:k,listOrdered:a(He,y),listUnordered:a(He),paragraph:a(at),reference:C,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:a(ve),strong:a(En),thematicBreak:a(Xi)},exit:{atxHeading:p(),atxHeadingSequence:H,autolink:p(),autolinkEmail:de,autolinkProtocol:J,blockQuote:p(),characterEscapeValue:X,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:Q,characterReference:B,codeFenced:p(I),codeFencedFence:T,codeFencedFenceInfo:x,codeFencedFenceMeta:j,codeFlowValue:X,codeIndented:p(b),codeText:p(q),codeTextData:X,data:X,definition:p(),definitionDestinationString:U,definitionLabelString:$,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(M),hardBreakTrailing:p(M),htmlFlow:p(re),htmlFlowData:X,htmlText:p(Y),htmlTextData:X,image:p(pe),label:ue,labelText:ee,lineEnding:oe,link:p(fe),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Se,resourceDestinationString:S,resourceTitleString:N,resource:F,setextHeading:p(K),setextHeadingLineSequence:V,setextHeadingText:R,strong:p(),thematicBreak:p()}};Dh(r,(t||{}).mdastExtensions||[]);const i={};return l;function l(W){let ae={type:"root",children:[]};const Ne={stack:[ae],tokenStack:[],config:r,enter:f,exit:m,buffer:c,resume:g,data:i},Oe=[];let Me=-1;for(;++Me<W.length;)if(W[Me][1].type==="listOrdered"||W[Me][1].type==="listUnordered")if(W[Me][0]==="enter")Oe.push(Me);else{const ft=Oe.pop();Me=s(W,ft,Me)}for(Me=-1;++Me<W.length;){const ft=r[W[Me][0]];Mh.call(ft,W[Me][1].type)&&ft[W[Me][1].type].call(Object.assign({sliceSerialize:W[Me][2].sliceSerialize},Ne),W[Me][1])}if(Ne.tokenStack.length>0){const ft=Ne.tokenStack[Ne.tokenStack.length-1];(ft[1]||gp).call(Ne,void 0,ft[0])}for(ae.position={start:Qn(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Qn(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<r.transforms.length;)ae=r.transforms[Me](ae)||ae;return ae}function s(W,ae,Ne){let Oe=ae-1,Me=-1,ft=!1,mn,Bt,Nn,Yn;for(;++Oe<=Ne;){const pt=W[Oe];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?Me++:Me--,Yn=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(mn&&!Yn&&!Me&&!Nn&&(Nn=Oe),Yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yn=void 0}if(!Me&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||Me===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(mn){let rn=Oe;for(Bt=void 0;rn--;){const zt=W[rn];if(zt[1].type==="lineEnding"||zt[1].type==="lineEndingBlank"){if(zt[0]==="exit")continue;Bt&&(W[Bt][1].type="lineEndingBlank",ft=!0),zt[1].type="lineEnding",Bt=rn}else if(!(zt[1].type==="linePrefix"||zt[1].type==="blockQuotePrefix"||zt[1].type==="blockQuotePrefixWhitespace"||zt[1].type==="blockQuoteMarker"||zt[1].type==="listItemIndent"))break}Nn&&(!Bt||Nn<Bt)&&(mn._spread=!0),mn.end=Object.assign({},Bt?W[Bt][1].start:pt[1].end),W.splice(Bt||Oe,0,["exit",mn,pt[2]]),Oe++,Ne++}if(pt[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};mn=rn,W.splice(Oe,0,["enter",rn,pt[2]]),Oe++,Ne++,Nn=void 0,Yn=!0}}}return W[ae][1]._spread=ft,Ne}function a(W,ae){return Ne;function Ne(Oe){f.call(this,W(Oe),Oe),ae&&ae.call(this,Oe)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(W,ae,Ne){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ae,Ne||void 0]),W.position={start:Qn(ae.start),end:void 0}}function p(W){return ae;function ae(Ne){W&&W.call(this,Ne),m.call(this,Ne)}}function m(W,ae){const Ne=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==W.type&&(ae?ae.call(this,W,Oe[0]):(Oe[1]||gp).call(this,W,Oe[0]));else throw new Error("Cannot close `"+W.type+"` ("+Bi({start:W.start,end:W.end})+"): it’s not open");Ne.position.end=Qn(W.end)}function g(){return uw(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function k(W){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function x(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=W}function j(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=W}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W.replace(/(\r?\n|\r)$/g,"")}function $(W){const ae=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=ae,Ne.identifier=Wr(this.sliceSerialize(W)).toLowerCase()}function D(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.title=W}function U(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.url=W}function H(W){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Ne=this.sliceSerialize(W).length;ae.depth=Ne}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function V(W){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function G(W){const Ne=this.stack[this.stack.length-1].children;let Oe=Ne[Ne.length-1];(!Oe||Oe.type!=="text")&&(Oe=Yi(),Oe.position={start:Qn(W.start),end:void 0},Ne.push(Oe)),this.stack.push(Oe)}function X(W){const ae=this.stack.pop();ae.value+=this.sliceSerialize(W),ae.position.end=Qn(W.end)}function oe(W){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=ae.children[ae.children.length-1];Ne.position.end=Qn(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ae.type)&&(G.call(this,W),X.call(this,W))}function M(){this.data.atHardBreak=!0}function re(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function Y(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function q(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function fe(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ae,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function pe(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ae,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function ee(W){const ae=this.sliceSerialize(W),Ne=this.stack[this.stack.length-2];Ne.label=aS(ae),Ne.identifier=Wr(ae).toLowerCase()}function ue(){const W=this.stack[this.stack.length-1],ae=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const Oe=W.children;Ne.children=Oe}else Ne.alt=ae}function S(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.url=W}function N(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.title=W}function F(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function Se(W){const ae=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=ae,Ne.identifier=Wr(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function Ee(W){this.data.characterReferenceType=W.type}function Q(W){const ae=this.sliceSerialize(W),Ne=this.data.characterReferenceType;let Oe;Ne?(Oe=jh(ae,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Oe=vu(ae);const Me=this.stack[this.stack.length-1];Me.value+=Oe}function B(W){const ae=this.stack.pop();ae.position.end=Qn(W.end)}function J(W){X.call(this,W);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(W)}function de(W){X.call(this,W);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(W)}function se(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function _e(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Ae(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function $e(){return{type:"image",title:null,url:"",alt:null}}function st(){return{type:"link",title:null,url:"",children:[]}}function He(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function gt(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function at(){return{type:"paragraph",children:[]}}function En(){return{type:"strong",children:[]}}function Yi(){return{type:"text",value:""}}function Xi(){return{type:"thematicBreak"}}}function Qn(t){return{line:t.line,column:t.column,offset:t.offset}}function Dh(t,r){let i=-1;for(;++i<r.length;){const l=r[i];Array.isArray(l)?Dh(t,l):fS(t,l)}}function fS(t,r){let i;for(i in r)if(Mh.call(r,i))switch(i){case"canContainEols":{const l=r[i];l&&t[i].push(...l);break}case"transforms":{const l=r[i];l&&t[i].push(...l);break}case"enter":case"exit":{const l=r[i];l&&Object.assign(t[i],l);break}}}function gp(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Bi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Bi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Bi({start:r.start,end:r.end})+") is still open")}function pS(t){const r=this;r.parser=i;function i(l){return cS(l,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function hS(t,r){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,i),t.applyData(r,i)}function mS(t,r){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,i),[t.applyData(r,i),{type:"text",value:`
|
|
265
|
+
`}]}function gS(t,r){const i=r.value?r.value+`
|
|
266
|
+
`:"",l={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(l.className=["language-"+s[0]]);let a={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return r.meta&&(a.data={meta:r.meta}),t.patch(r,a),a=t.applyData(r,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(r,a),a}function yS(t,r){const i={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function xS(t,r){const i={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function vS(t,r){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=String(r.identifier).toUpperCase(),s=Qr(l.toLowerCase()),a=t.footnoteOrder.indexOf(l);let c,f=t.footnoteCounts.get(l);f===void 0?(f=0,t.footnoteOrder.push(l),c=t.footnoteOrder.length):c=a+1,f+=1,t.footnoteCounts.set(l,f);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(r,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(r,m),t.applyData(r,m)}function wS(t,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function kS(t,r){if(t.options.allowDangerousHtml){const i={type:"raw",value:r.value};return t.patch(r,i),t.applyData(r,i)}}function Fh(t,r){const i=r.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+l}];const s=t.all(r),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=l:s.push({type:"text",value:l}),s}function SS(t,r){const i=String(r.identifier).toUpperCase(),l=t.definitionById.get(i);if(!l)return Fh(t,r);const s={src:Qr(l.url||""),alt:r.alt};l.title!==null&&l.title!==void 0&&(s.title=l.title);const a={type:"element",tagName:"img",properties:s,children:[]};return t.patch(r,a),t.applyData(r,a)}function CS(t,r){const i={src:Qr(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return t.patch(r,l),t.applyData(r,l)}function bS(t,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(r,l),t.applyData(r,l)}function ES(t,r){const i=String(r.identifier).toUpperCase(),l=t.definitionById.get(i);if(!l)return Fh(t,r);const s={href:Qr(l.url||"")};l.title!==null&&l.title!==void 0&&(s.title=l.title);const a={type:"element",tagName:"a",properties:s,children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function NS(t,r){const i={href:Qr(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function jS(t,r,i){const l=t.all(r),s=i?PS(i):$h(r),a={},c=[];if(typeof r.checked=="boolean"){const g=l[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},l.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let f=-1;for(;++f<l.length;){const g=l[f];(s||f!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
|
|
262
267
|
`}),g.type==="element"&&g.tagName==="p"&&!s?c.push(...g.children):c.push(g)}const p=l[l.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
|
|
263
|
-
`});const m={type:"element",tagName:"li",properties:a,children:c};return t.patch(r,m),t.applyData(r,m)}function
|
|
268
|
+
`});const m={type:"element",tagName:"li",properties:a,children:c};return t.patch(r,m),t.applyData(r,m)}function PS(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const i=t.children;let l=-1;for(;!r&&++l<i.length;)r=$h(i[l])}return r}function $h(t){const r=t.spread;return r??t.children.length>1}function TS(t,r){const i={},l=t.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++s<l.length;){const c=l[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const a={type:"element",tagName:r.ordered?"ol":"ul",properties:i,children:t.wrap(l,!0)};return t.patch(r,a),t.applyData(r,a)}function LS(t,r){const i={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function IS(t,r){const i={type:"root",children:t.wrap(t.all(r))};return t.patch(r,i),t.applyData(r,i)}function _S(t,r){const i={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function OS(t,r){const i=t.all(r),l=i.shift(),s=[];if(l){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([l],!0)};t.patch(r.children[0],c),s.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},f=mu(r.children[1]),p=wh(r.children[r.children.length-1]);f&&p&&(c.position={start:f,end:p}),s.push(c)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(r,a),t.applyData(r,a)}function RS(t,r,i){const l=i?i.children:void 0,a=(l?l.indexOf(r):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:r.children.length;let p=-1;const m=[];for(;++p<f;){const y=r.children[p],k={},x=c?c[p]:void 0;x&&(k.align=x);let j={type:"element",tagName:a,properties:k,children:[]};y&&(j.children=t.all(y),t.patch(y,j),j=t.applyData(y,j)),m.push(j)}const g={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(r,g),t.applyData(r,g)}function zS(t,r){const i={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}const yp=9,xp=32;function AS(t){const r=String(t),i=/\r?\n|\r/g;let l=i.exec(r),s=0;const a=[];for(;l;)a.push(vp(r.slice(s,l.index),s>0,!0),l[0]),s=l.index+l[0].length,l=i.exec(r);return a.push(vp(r.slice(s),s>0,!1)),a.join("")}function vp(t,r,i){let l=0,s=t.length;if(r){let a=t.codePointAt(l);for(;a===yp||a===xp;)l++,a=t.codePointAt(l)}if(i){let a=t.codePointAt(s-1);for(;a===yp||a===xp;)s--,a=t.codePointAt(s-1)}return s>l?t.slice(l,s):""}function MS(t,r){const i={type:"text",value:AS(String(r.value))};return t.patch(r,i),t.applyData(r,i)}function DS(t,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,i),t.applyData(r,i)}const FS={blockquote:hS,break:mS,code:gS,delete:yS,emphasis:xS,footnoteReference:vS,heading:wS,html:kS,imageReference:SS,image:CS,inlineCode:bS,linkReference:ES,link:NS,listItem:jS,list:TS,paragraph:LS,root:IS,strong:_S,table:OS,tableCell:zS,tableRow:RS,text:MS,thematicBreak:DS,toml:al,yaml:al,definition:al,footnoteDefinition:al};function al(){}const Uh=-1,bl=0,Hi=1,gl=2,Su=3,Cu=4,bu=5,Eu=6,Bh=7,Vh=8,wp=typeof self=="object"?self:globalThis,$S=(t,r)=>{const i=(s,a)=>(t.set(a,s),s),l=s=>{if(t.has(s))return t.get(s);const[a,c]=r[s];switch(a){case bl:case Uh:return i(c,s);case Hi:{const f=i([],s);for(const p of c)f.push(l(p));return f}case gl:{const f=i({},s);for(const[p,m]of c)f[l(p)]=l(m);return f}case Su:return i(new Date(c),s);case Cu:{const{source:f,flags:p}=c;return i(new RegExp(f,p),s)}case bu:{const f=i(new Map,s);for(const[p,m]of c)f.set(l(p),l(m));return f}case Eu:{const f=i(new Set,s);for(const p of c)f.add(l(p));return f}case Bh:{const{name:f,message:p}=c;return i(new wp[f](p),s)}case Vh:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(new wp[a](c),s)};return l},kp=t=>$S(new Map,t)(0),Ur="",{toString:US}={},{keys:BS}=Object,Di=t=>{const r=typeof t;if(r!=="object"||!t)return[bl,r];const i=US.call(t).slice(8,-1);switch(i){case"Array":return[Hi,Ur];case"Object":return[gl,Ur];case"Date":return[Su,Ur];case"RegExp":return[Cu,Ur];case"Map":return[bu,Ur];case"Set":return[Eu,Ur];case"DataView":return[Hi,i]}return i.includes("Array")?[Hi,i]:i.includes("Error")?[Bh,i]:[gl,i]},ul=([t,r])=>t===bl&&(r==="function"||r==="symbol"),VS=(t,r,i,l)=>{const s=(c,f)=>{const p=l.push(c)-1;return i.set(f,p),p},a=c=>{if(i.has(c))return i.get(c);let[f,p]=Di(c);switch(f){case bl:{let g=c;switch(p){case"bigint":f=Vh,g=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);g=null;break;case"undefined":return s([Uh],c)}return s([f,g],c)}case Hi:{if(p){let k=c;return p==="DataView"?k=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(k=new Uint8Array(c)),s([p,[...k]],c)}const g=[],y=s([f,g],c);for(const k of c)g.push(a(k));return y}case gl:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(r&&"toJSON"in c)return a(c.toJSON());const g=[],y=s([f,g],c);for(const k of BS(c))(t||!ul(Di(c[k])))&&g.push([a(k),a(c[k])]);return y}case Su:return s([f,c.toISOString()],c);case Cu:{const{source:g,flags:y}=c;return s([f,{source:g,flags:y}],c)}case bu:{const g=[],y=s([f,g],c);for(const[k,x]of c)(t||!(ul(Di(k))||ul(Di(x))))&&g.push([a(k),a(x)]);return y}case Eu:{const g=[],y=s([f,g],c);for(const k of c)(t||!ul(Di(k)))&&g.push(a(k));return y}}const{message:m}=c;return s([f,{name:p,message:m}],c)};return a},Sp=(t,{json:r,lossy:i}={})=>{const l=[];return VS(!(r||i),!!r,new Map,l)(t),l},yl=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?kp(Sp(t,r)):structuredClone(t):(t,r)=>kp(Sp(t,r));function HS(t,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function WS(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function qS(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||HS,l=t.options.footnoteBackLabel||WS,s=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[p]);if(!m)continue;const g=t.all(m),y=String(m.identifier).toUpperCase(),k=Qr(y.toLowerCase());let x=0;const j=[],T=t.footnoteCounts.get(y);for(;T!==void 0&&++x<=T;){j.length>0&&j.push({type:"text",value:" "});let $=typeof i=="string"?i:i(p,x);typeof $=="string"&&($={type:"text",value:$}),j.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+k+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(p,x),className:["data-footnote-backref"]},children:Array.isArray($)?$:[$]})}const I=g[g.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const $=I.children[I.children.length-1];$&&$.type==="text"?$.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...j)}else g.push(...j);const b={type:"element",tagName:"li",properties:{id:r+"fn-"+k},children:t.wrap(g,!0)};t.patch(m,b),f.push(b)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...yl(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
264
269
|
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(f,!0)},{type:"text",value:`
|
|
265
|
-
`}]}}const
|
|
270
|
+
`}]}}const Hh=(function(t){if(t==null)return YS;if(typeof t=="function")return El(t);if(typeof t=="object")return Array.isArray(t)?KS(t):QS(t);if(typeof t=="string")return GS(t);throw new Error("Expected function, string, or object as test")});function KS(t){const r=[];let i=-1;for(;++i<t.length;)r[i]=Hh(t[i]);return El(l);function l(...s){let a=-1;for(;++a<r.length;)if(r[a].apply(this,s))return!0;return!1}}function QS(t){const r=t;return El(i);function i(l){const s=l;let a;for(a in t)if(s[a]!==r[a])return!1;return!0}}function GS(t){return El(r);function r(i){return i&&i.type===t}}function El(t){return r;function r(i,l,s){return!!(XS(i)&&t.call(this,i,typeof l=="number"?l:void 0,s||void 0))}}function YS(){return!0}function XS(t){return t!==null&&typeof t=="object"&&"type"in t}const Wh=[],JS=!0,Cp=!1,ZS="skip";function eC(t,r,i,l){let s;typeof r=="function"&&typeof i!="function"?(l=i,i=r):s=r;const a=Hh(s),c=l?-1:1;f(t,void 0,[])();function f(p,m,g){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return k;function k(){let x=Wh,j,T,I;if((!r||a(p,m,g[g.length-1]||void 0))&&(x=tC(i(p,g)),x[0]===Cp))return x;if("children"in p&&p.children){const b=p;if(b.children&&x[0]!==ZS)for(T=(l?b.children.length:-1)+c,I=g.concat(b);T>-1&&T<b.children.length;){const $=b.children[T];if(j=f($,T,I)(),j[0]===Cp)return j;T=typeof j[1]=="number"?j[1]:T+c}}return x}}}function tC(t){return Array.isArray(t)?t:typeof t=="number"?[JS,t]:t==null?Wh:[t]}function qh(t,r,i,l){let s,a,c;typeof r=="function"&&typeof i!="function"?(a=void 0,c=r,s=i):(a=r,c=i,s=l),eC(t,a,f,s);function f(p,m){const g=m[m.length-1],y=g?g.children.indexOf(p):void 0;return c(p,y,g)}}const Ja={}.hasOwnProperty,nC={};function rC(t,r){const i=r||nC,l=new Map,s=new Map,a=new Map,c={...FS,...i.handlers},f={all:m,applyData:oC,definitionById:l,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:c,one:p,options:i,patch:iC,wrap:sC};return qh(t,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?l:s,k=String(g.identifier).toUpperCase();y.has(k)||y.set(k,g)}}),f;function p(g,y){const k=g.type,x=f.handlers[k];if(Ja.call(f.handlers,k)&&x)return x(f,g,y);if(f.options.passThrough&&f.options.passThrough.includes(k)){if("children"in g){const{children:T,...I}=g,b=yl(I);return b.children=f.all(g),b}return yl(g)}return(f.options.unknownHandler||lC)(f,g,y)}function m(g){const y=[];if("children"in g){const k=g.children;let x=-1;for(;++x<k.length;){const j=f.one(k[x],g);if(j){if(x&&k[x-1].type==="break"&&(!Array.isArray(j)&&j.type==="text"&&(j.value=bp(j.value)),!Array.isArray(j)&&j.type==="element")){const T=j.children[0];T&&T.type==="text"&&(T.value=bp(T.value))}Array.isArray(j)?y.push(...j):y.push(j)}}}return y}}function iC(t,r){t.position&&(r.position=Uv(t))}function oC(t,r){let i=r;if(t&&t.data){const l=t.data.hName,s=t.data.hChildren,a=t.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const c="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:c}}i.type==="element"&&a&&Object.assign(i.properties,yl(a)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function lC(t,r){const i=r.data||{},l="value"in r&&!(Ja.call(i,"hProperties")||Ja.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function sC(t,r){const i=[];let l=-1;for(r&&i.push({type:"text",value:`
|
|
266
271
|
`});++l<t.length;)l&&i.push({type:"text",value:`
|
|
267
272
|
`}),i.push(t[l]);return r&&t.length>0&&i.push({type:"text",value:`
|
|
268
|
-
`}),i}function bp(t){let r=0,i=t.charCodeAt(r);for(;i===9||i===32;)r++,i=t.charCodeAt(r);return t.slice(r)}function Ep(t,r){const i=
|
|
269
|
-
`},s),a}function ZS(t,r){return t&&"run"in t?async function(i,l){const s=Ep(i,{file:l,...r});await t.run(s,l)}:function(i,l){return Ep(i,{file:l,...t||r})}}function Np(t){if(t)throw t}var Ta,Pp;function eC(){if(Pp)return Ta;Pp=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},a=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var g=t.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!g&&!y)return!1;var w;for(w in m);return typeof w>"u"||t.call(m,w)},c=function(m,g){i&&g.name==="__proto__"?i(m,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):m[g.name]=g.newValue},f=function(m,g){if(g==="__proto__")if(t.call(m,g)){if(l)return l(m,g).value}else return;return m[g]};return Ta=function p(){var m,g,y,w,x,N,L=arguments[0],_=1,j=arguments.length,V=!1;for(typeof L=="boolean"&&(V=L,L=arguments[1]||{},_=2),(L==null||typeof L!="object"&&typeof L!="function")&&(L={});_<j;++_)if(m=arguments[_],m!=null)for(g in m)y=f(L,g),w=f(m,g),L!==w&&(V&&w&&(a(w)||(x=s(w)))?(x?(x=!1,N=y&&s(y)?y:[]):N=y&&a(y)?y:{},c(L,{name:g,newValue:p(V,N,w)})):typeof w<"u"&&c(L,{name:g,newValue:w}));return L},Ta}var tC=eC();const La=vl(tC);function Za(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function nC(){const t=[],r={run:i,use:l};return r;function i(...s){let a=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(p,...m){const g=t[++a];let y=-1;if(p){c(p);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,g?rC(g,f)(...m):c(null,...m)}}function l(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function rC(t,r){let i;return l;function l(...c){const f=t.length>c.length;let p;f&&c.push(s);try{p=t.apply(this,c)}catch(m){const g=m;if(f&&i)throw g;return s(g)}f||(p&&p.then&&typeof p.then=="function"?p.then(a,s):p instanceof Error?s(p):a(p))}function s(c,...f){i||(i=!0,r(c,...f))}function a(c){s(null,c)}}const cn={basename:iC,dirname:oC,extname:lC,join:sC,sep:"/"};function iC(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Gi(t);let i=0,l=-1,s=t.length,a;if(r===void 0||r.length===0||r.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){i=s+1;break}}else l<0&&(a=!0,l=s+1);return l<0?"":t.slice(i,l)}if(r===t)return"";let c=-1,f=r.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){i=s+1;break}}else c<0&&(a=!0,c=s+1),f>-1&&(t.codePointAt(s)===r.codePointAt(f--)?f<0&&(l=s):(f=-1,l=c));return i===l?l=c:l<0&&(l=t.length),t.slice(i,l)}function oC(t){if(Gi(t),t.length===0)return".";let r=-1,i=t.length,l;for(;--i;)if(t.codePointAt(i)===47){if(l){r=i;break}}else l||(l=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function lC(t){Gi(t);let r=t.length,i=-1,l=0,s=-1,a=0,c;for(;r--;){const f=t.codePointAt(r);if(f===47){if(c){l=r+1;break}continue}i<0&&(c=!0,i=r+1),f===46?s<0?s=r:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||i<0||a===0||a===1&&s===i-1&&s===l+1?"":t.slice(s,i)}function sC(...t){let r=-1,i;for(;++r<t.length;)Gi(t[r]),t[r]&&(i=i===void 0?t[r]:i+"/"+t[r]);return i===void 0?".":aC(i)}function aC(t){Gi(t);const r=t.codePointAt(0)===47;let i=uC(t,!r);return i.length===0&&!r&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),r?"/"+i:i}function uC(t,r){let i="",l=0,s=-1,a=0,c=-1,f,p;for(;++c<=t.length;){if(c<t.length)f=t.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||a===1))if(s!==c-1&&a===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",l=0):(i=i.slice(0,p),l=i.length-1-i.lastIndexOf("/")),s=c,a=0;continue}}else if(i.length>0){i="",l=0,s=c,a=0;continue}}r&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+t.slice(s+1,c):i=t.slice(s+1,c),l=c-s-1;s=c,a=0}else f===46&&a>-1?a++:a=-1}return i}function Gi(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const cC={cwd:dC};function dC(){return"/"}function eu(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function fC(t){if(typeof t=="string")t=new URL(t);else if(!eu(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return pC(t)}function pC(t){if(t.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const r=t.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const l=r.codePointAt(i+2);if(l===70||l===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const Ia=["history","path","basename","stem","extname","dirname"];class qh{constructor(r){let i;r?eu(r)?i={path:r}:typeof r=="string"||hC(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":cC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Ia.length;){const a=Ia[l];a in i&&i[a]!==void 0&&i[a]!==null&&(this[a]=a==="history"?[...i[a]]:i[a])}let s;for(s in i)Ia.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(r){Oa(r,"basename"),_a(r,"basename"),this.path=cn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?cn.dirname(this.path):void 0}set dirname(r){jp(this.basename,"dirname"),this.path=cn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?cn.extname(this.path):void 0}set extname(r){if(_a(r,"extname"),jp(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){eu(r)&&(r=fC(r)),Oa(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?cn.basename(this.path,this.extname):void 0}set stem(r){Oa(r,"stem"),_a(r,"stem"),this.path=cn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,l){const s=this.message(r,i,l);throw s.fatal=!0,s}info(r,i,l){const s=this.message(r,i,l);return s.fatal=void 0,s}message(r,i,l){const s=new kt(r,i,l);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function _a(t,r){if(t&&t.includes(cn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+cn.sep+"`")}function Oa(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function jp(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function hC(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const mC=(function(t){const l=this.constructor.prototype,s=l[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,l),a}),gC={}.hasOwnProperty;class Nu extends mC{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=nC()}copy(){const r=new Nu;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];r.use(...l)}return r.data(La(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(Aa("data",this.frozen),this.namespace[r]=i,this):gC.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Aa("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const s=i.call(r,...l);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=cl(r),l=this.parser||this.Parser;return Ra("parse",l),l(String(i),i)}process(r,i){const l=this;return this.freeze(),Ra("process",this.parser||this.Parser),za("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(a,c){const f=cl(r),p=l.parse(f);l.run(p,f,function(g,y,w){if(g||!y||!w)return m(g);const x=y,N=l.stringify(x,w);vC(N)?w.value=N:w.result=N,m(g,w)});function m(g,y){g||!y?c(g):a?a(y):i(void 0,y)}}}processSync(r){let i=!1,l;return this.freeze(),Ra("processSync",this.parser||this.Parser),za("processSync",this.compiler||this.Compiler),this.process(r,s),Lp("processSync","process",i),l;function s(a,c){i=!0,Np(a),l=c}}run(r,i,l){Tp(r),this.freeze();const s=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?a(void 0,l):new Promise(a);function a(c,f){const p=cl(i);s.run(r,p,m);function m(g,y,w){const x=y||r;g?f(g):c?c(x):l(void 0,x,w)}}}runSync(r,i){let l=!1,s;return this.run(r,i,a),Lp("runSync","run",l),s;function a(c,f){Np(c),s=f,l=!0}}stringify(r,i){this.freeze();const l=cl(i),s=this.compiler||this.Compiler;return za("stringify",s),Tp(r),s(r,l)}use(r,...i){const l=this.attachers,s=this.namespace;if(Aa("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?f(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function a(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[g,...y]=m;p(g,y)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(s.settings=La(!0,s.settings,m.settings))}function f(m){let g=-1;if(m!=null)if(Array.isArray(m))for(;++g<m.length;){const y=m[g];a(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,g){let y=-1,w=-1;for(;++y<l.length;)if(l[y][0]===m){w=y;break}if(w===-1)l.push([m,...g]);else if(g.length>0){let[x,...N]=g;const L=l[w][1];Za(L)&&Za(x)&&(x=La(!0,L,x)),l[w]=[m,x,...N]}}}}const yC=new Nu().freeze();function Ra(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function za(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Aa(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tp(t){if(!Za(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Lp(t,r,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function cl(t){return xC(t)?t:new qh(t)}function xC(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function vC(t){return typeof t=="string"||wC(t)}function wC(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const kC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ip=[],_p={allowDangerousHtml:!0},SC=/^(https?|ircs?|mailto|xmpp)$/i,CC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Kh(t){const r=bC(t),i=EC(t);return NC(r.runSync(r.parse(i),i),t)}function bC(t){const r=t.rehypePlugins||Ip,i=t.remarkPlugins||Ip,l=t.remarkRehypeOptions?{...t.remarkRehypeOptions,..._p}:_p;return yC().use(iS).use(i).use(ZS,l).use(r)}function EC(t){const r=t.children||"",i=new qh;return typeof r=="string"&&(i.value=r),i}function NC(t,r){const i=r.allowedElements,l=r.allowElement,s=r.components,a=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,p=r.urlTransform||PC;for(const g of CC)Object.hasOwn(r,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+kC+g.id,void 0);return Wh(t,m),Mv(t,{Fragment:k.Fragment,components:s,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function m(g,y,w){if(g.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let x;for(x in Na)if(Object.hasOwn(Na,x)&&Object.hasOwn(g.properties,x)){const N=g.properties[x],L=Na[x];(L===null||L.includes(g.tagName))&&(g.properties[x]=p(String(N||""),x,g))}}if(g.type==="element"){let x=i?!i.includes(g.tagName):a?a.includes(g.tagName):!1;if(!x&&l&&typeof y=="number"&&(x=!l(g,y,w)),x&&w&&typeof y=="number")return f&&g.children?w.children.splice(y,1,...g.children):w.children.splice(y,1),y}}}function PC(t){const r=t.indexOf(":"),i=t.indexOf("?"),l=t.indexOf("#"),s=t.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||l!==-1&&r>l||SC.test(t.slice(0,r))?t:""}function jC({text:t}){return k.jsx("div",{className:"text-sm text-foreground",children:k.jsx(Kh,{components:{pre:({children:r})=>k.jsx("pre",{className:"bg-card rounded-lg p-2 overflow-x-auto text-xs my-2",children:r}),code:({className:r,children:i,...l})=>!r?k.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-muted-foreground text-xs",...l,children:i}):k.jsx("code",{className:r,...l,children:i}),a:({children:r,...i})=>k.jsx("a",{className:"text-muted-foreground hover:text-foreground underline",...i,children:r}),ul:({children:r})=>k.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1.5 text-sm",children:r}),ol:({children:r})=>k.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1.5 text-sm",children:r}),p:({children:r})=>k.jsx("p",{className:"my-1.5 leading-relaxed text-sm",children:r}),h1:({children:r})=>k.jsx("h1",{className:"text-base font-semibold text-foreground mt-3 mb-1",children:r}),h2:({children:r})=>k.jsx("h2",{className:"text-sm font-semibold text-foreground mt-2 mb-1",children:r}),h3:({children:r})=>k.jsx("h3",{className:"text-sm font-medium text-foreground mt-1.5 mb-0.5",children:r}),blockquote:({children:r})=>k.jsx("blockquote",{className:"border-l-2 border-border pl-2 my-1.5 text-muted-foreground italic text-sm",children:r}),li:({children:r})=>k.jsx("li",{className:"text-sm",children:r})},children:t})})}function Op({el:t}){var s;const r=t.component||`<${t.tag}>`,i=((s=t.source)==null?void 0:s.split("/").pop())||null,l=i?t.line?`${i}:${t.line}`:i:null;return k.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-medium bg-rose-100 text-rose-800 dark:bg-rose-800/80 dark:text-rose-100 align-baseline mx-0.5",children:[r,l&&k.jsx("span",{className:"text-rose-600 dark:text-rose-200 font-mono",children:l})]})}function TC({content:t,imageUrls:r,consoleEntries:i,attachedElements:l,contentSegments:s,onConsoleEntryClick:a,onImageClick:c}){const{t:f}=Ot(),p=r??[],m=s&&s.length>0&&l&&l.length>0;return k.jsxs("div",{className:"text-foreground bg-muted/50 rounded-lg px-3 py-2 text-sm self-end max-w-[85%]",children:[p.length>0&&k.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:p.map((g,y)=>k.jsx("img",{src:g,alt:f("attachedAlt",{index:y+1}),className:`max-w-[200px] max-h-[200px] rounded-lg border border-border/50 object-cover ${c?"cursor-pointer hover:opacity-80 transition-opacity":""}`,onClick:c?()=>c(p,y):void 0},y))}),i&&i.length>0&&k.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:i.map(g=>k.jsxs("button",{type:"button",onClick:()=>a==null?void 0:a(g),className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-medium transition-colors ${g.level==="error"?"bg-red-100 text-red-800 hover:bg-red-200 dark:bg-red-800/80 dark:text-red-100 dark:hover:bg-red-700/80":"bg-yellow-100 text-yellow-800 hover:bg-yellow-200 dark:bg-yellow-800/80 dark:text-yellow-100 dark:hover:bg-yellow-700/80"}`,title:f("clickToReattach",{level:g.level}),children:[g.level==="error"?k.jsx(cu,{className:"w-3 h-3"}):k.jsx(du,{className:"w-3 h-3"}),k.jsx("span",{className:"truncate max-w-[180px]",children:g.message.length>40?g.message.slice(0,40)+"…":g.message})]},g.id))}),m?k.jsx("span",{children:s.map((g,y)=>{if(g.type==="text")return k.jsx("span",{children:g.text},y);const w=l[g.elementIndex];return w?k.jsx(Op,{el:w},y):null})}):k.jsxs(k.Fragment,{children:[l&&l.length>0&&k.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:l.map((g,y)=>k.jsx(Op,{el:g},`${g.tag}:${g.source}:${g.line}:${y}`))}),t]})]})}function LC({text:t}){return k.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs py-1",children:[k.jsx(eh,{className:"w-3 h-3 animate-spin"}),k.jsx("span",{children:t})]})}const IC={Read:f1,Write:Bf,Edit:Bf,Bash:th,Grep:k1,Glob:p1,Ls:g1},_C={Read:"text-blue-400 border-blue-500/50",Write:"text-foreground border-border/50",Edit:"text-foreground border-border/50",Bash:"text-purple-400 border-purple-500/50",Grep:"text-orange-400 border-orange-500/50",Glob:"text-cyan-400 border-cyan-500/50",Ls:"text-cyan-400 border-cyan-500/50"};function OC({toolName:t,input:r}){const[i,l]=R.useState(!1),s=IC[t]||rh,a=_C[t]||"text-amber-400 border-amber-500/50",c=R.useMemo(()=>{if(!r)return null;switch(t){case"Read":return r.file_path?`${r.file_path}`:null;case"Write":case"Edit":return r.file_path?`${r.file_path}`:null;case"Bash":return r.command?`${r.command}`:null;case"Grep":return r.pattern?`pattern: ${r.pattern}`:null;case"Glob":return r.pattern?`${r.pattern}`:null;case"Ls":return r.path?`${r.path}`:null;default:return r.file_path?`${r.file_path}`:r.command?`${r.command}`:r.pattern?`${r.pattern}`:null}},[r,t]),f=m=>{const g=m.split("/");return g.length<=2?m:`.../${g.slice(-2).join("/")}`},p=c&&typeof c=="string"&&c.includes("/")?f(c):c;return k.jsxs("div",{className:`border-l-2 ${a.split(" ")[1]} pl-3 py-1.5 my-1`,children:[k.jsxs("div",{className:`flex items-center gap-2 text-xs cursor-pointer transition-colors ${a.split(" ")[0]} hover:brightness-125`,onClick:()=>l(!i),children:[k.jsx(s,{className:"w-3.5 h-3.5"}),k.jsx("span",{className:"font-medium",children:t}),p&&k.jsx("span",{className:"text-muted-foreground truncate max-w-[250px] font-mono text-[11px]",children:p}),k.jsx("span",{className:"text-muted-foreground text-[10px] ml-auto",children:i?"▼":"▶"})]}),i&&r&&k.jsx("pre",{className:"text-muted-foreground text-[11px] mt-2 overflow-x-auto max-h-48 overflow-y-auto bg-card/50 rounded p-2 font-mono",children:JSON.stringify(r,null,2)})]})}function RC({toolName:t,output:r,isError:i}){const[l,s]=R.useState(!1),a=R.useMemo(()=>r?/^\s*\d+[→:]/.test(r)||r.includes(`
|
|
270
|
-
1→`):!1,[r]),c=
|
|
271
|
-
`);return m.length>0&&m.every(g=>g.startsWith("/")||g.startsWith("./")||g.match(/^[a-zA-Z0-9_.-]+$/))},[r]),f=
|
|
273
|
+
`}),i}function bp(t){let r=0,i=t.charCodeAt(r);for(;i===9||i===32;)r++,i=t.charCodeAt(r);return t.slice(r)}function Ep(t,r){const i=rC(t,r),l=i.one(t,void 0),s=qS(i),a=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
|
|
274
|
+
`},s),a}function aC(t,r){return t&&"run"in t?async function(i,l){const s=Ep(i,{file:l,...r});await t.run(s,l)}:function(i,l){return Ep(i,{file:l,...t||r})}}function Np(t){if(t)throw t}var Ta,jp;function uC(){if(jp)return Ta;jp=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},a=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var g=t.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!g&&!y)return!1;var k;for(k in m);return typeof k>"u"||t.call(m,k)},c=function(m,g){i&&g.name==="__proto__"?i(m,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):m[g.name]=g.newValue},f=function(m,g){if(g==="__proto__")if(t.call(m,g)){if(l)return l(m,g).value}else return;return m[g]};return Ta=function p(){var m,g,y,k,x,j,T=arguments[0],I=1,b=arguments.length,$=!1;for(typeof T=="boolean"&&($=T,T=arguments[1]||{},I=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});I<b;++I)if(m=arguments[I],m!=null)for(g in m)y=f(T,g),k=f(m,g),T!==k&&($&&k&&(a(k)||(x=s(k)))?(x?(x=!1,j=y&&s(y)?y:[]):j=y&&a(y)?y:{},c(T,{name:g,newValue:p($,j,k)})):typeof k<"u"&&c(T,{name:g,newValue:k}));return T},Ta}var cC=uC();const La=vl(cC);function Za(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function dC(){const t=[],r={run:i,use:l};return r;function i(...s){let a=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(p,...m){const g=t[++a];let y=-1;if(p){c(p);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,g?fC(g,f)(...m):c(null,...m)}}function l(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function fC(t,r){let i;return l;function l(...c){const f=t.length>c.length;let p;f&&c.push(s);try{p=t.apply(this,c)}catch(m){const g=m;if(f&&i)throw g;return s(g)}f||(p&&p.then&&typeof p.then=="function"?p.then(a,s):p instanceof Error?s(p):a(p))}function s(c,...f){i||(i=!0,r(c,...f))}function a(c){s(null,c)}}const cn={basename:pC,dirname:hC,extname:mC,join:gC,sep:"/"};function pC(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Gi(t);let i=0,l=-1,s=t.length,a;if(r===void 0||r.length===0||r.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){i=s+1;break}}else l<0&&(a=!0,l=s+1);return l<0?"":t.slice(i,l)}if(r===t)return"";let c=-1,f=r.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){i=s+1;break}}else c<0&&(a=!0,c=s+1),f>-1&&(t.codePointAt(s)===r.codePointAt(f--)?f<0&&(l=s):(f=-1,l=c));return i===l?l=c:l<0&&(l=t.length),t.slice(i,l)}function hC(t){if(Gi(t),t.length===0)return".";let r=-1,i=t.length,l;for(;--i;)if(t.codePointAt(i)===47){if(l){r=i;break}}else l||(l=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function mC(t){Gi(t);let r=t.length,i=-1,l=0,s=-1,a=0,c;for(;r--;){const f=t.codePointAt(r);if(f===47){if(c){l=r+1;break}continue}i<0&&(c=!0,i=r+1),f===46?s<0?s=r:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||i<0||a===0||a===1&&s===i-1&&s===l+1?"":t.slice(s,i)}function gC(...t){let r=-1,i;for(;++r<t.length;)Gi(t[r]),t[r]&&(i=i===void 0?t[r]:i+"/"+t[r]);return i===void 0?".":yC(i)}function yC(t){Gi(t);const r=t.codePointAt(0)===47;let i=xC(t,!r);return i.length===0&&!r&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),r?"/"+i:i}function xC(t,r){let i="",l=0,s=-1,a=0,c=-1,f,p;for(;++c<=t.length;){if(c<t.length)f=t.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||a===1))if(s!==c-1&&a===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",l=0):(i=i.slice(0,p),l=i.length-1-i.lastIndexOf("/")),s=c,a=0;continue}}else if(i.length>0){i="",l=0,s=c,a=0;continue}}r&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+t.slice(s+1,c):i=t.slice(s+1,c),l=c-s-1;s=c,a=0}else f===46&&a>-1?a++:a=-1}return i}function Gi(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const vC={cwd:wC};function wC(){return"/"}function eu(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function kC(t){if(typeof t=="string")t=new URL(t);else if(!eu(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return SC(t)}function SC(t){if(t.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const r=t.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const l=r.codePointAt(i+2);if(l===70||l===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const Ia=["history","path","basename","stem","extname","dirname"];class Kh{constructor(r){let i;r?eu(r)?i={path:r}:typeof r=="string"||CC(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":vC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Ia.length;){const a=Ia[l];a in i&&i[a]!==void 0&&i[a]!==null&&(this[a]=a==="history"?[...i[a]]:i[a])}let s;for(s in i)Ia.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(r){Oa(r,"basename"),_a(r,"basename"),this.path=cn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?cn.dirname(this.path):void 0}set dirname(r){Pp(this.basename,"dirname"),this.path=cn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?cn.extname(this.path):void 0}set extname(r){if(_a(r,"extname"),Pp(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){eu(r)&&(r=kC(r)),Oa(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?cn.basename(this.path,this.extname):void 0}set stem(r){Oa(r,"stem"),_a(r,"stem"),this.path=cn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,l){const s=this.message(r,i,l);throw s.fatal=!0,s}info(r,i,l){const s=this.message(r,i,l);return s.fatal=void 0,s}message(r,i,l){const s=new kt(r,i,l);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function _a(t,r){if(t&&t.includes(cn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+cn.sep+"`")}function Oa(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Pp(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function CC(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const bC=(function(t){const l=this.constructor.prototype,s=l[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,l),a}),EC={}.hasOwnProperty;class Nu extends bC{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=dC()}copy(){const r=new Nu;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];r.use(...l)}return r.data(La(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(Aa("data",this.frozen),this.namespace[r]=i,this):EC.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Aa("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const s=i.call(r,...l);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=cl(r),l=this.parser||this.Parser;return Ra("parse",l),l(String(i),i)}process(r,i){const l=this;return this.freeze(),Ra("process",this.parser||this.Parser),za("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(a,c){const f=cl(r),p=l.parse(f);l.run(p,f,function(g,y,k){if(g||!y||!k)return m(g);const x=y,j=l.stringify(x,k);PC(j)?k.value=j:k.result=j,m(g,k)});function m(g,y){g||!y?c(g):a?a(y):i(void 0,y)}}}processSync(r){let i=!1,l;return this.freeze(),Ra("processSync",this.parser||this.Parser),za("processSync",this.compiler||this.Compiler),this.process(r,s),Lp("processSync","process",i),l;function s(a,c){i=!0,Np(a),l=c}}run(r,i,l){Tp(r),this.freeze();const s=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?a(void 0,l):new Promise(a);function a(c,f){const p=cl(i);s.run(r,p,m);function m(g,y,k){const x=y||r;g?f(g):c?c(x):l(void 0,x,k)}}}runSync(r,i){let l=!1,s;return this.run(r,i,a),Lp("runSync","run",l),s;function a(c,f){Np(c),s=f,l=!0}}stringify(r,i){this.freeze();const l=cl(i),s=this.compiler||this.Compiler;return za("stringify",s),Tp(r),s(r,l)}use(r,...i){const l=this.attachers,s=this.namespace;if(Aa("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?f(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function a(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[g,...y]=m;p(g,y)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(s.settings=La(!0,s.settings,m.settings))}function f(m){let g=-1;if(m!=null)if(Array.isArray(m))for(;++g<m.length;){const y=m[g];a(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,g){let y=-1,k=-1;for(;++y<l.length;)if(l[y][0]===m){k=y;break}if(k===-1)l.push([m,...g]);else if(g.length>0){let[x,...j]=g;const T=l[k][1];Za(T)&&Za(x)&&(x=La(!0,T,x)),l[k]=[m,x,...j]}}}}const NC=new Nu().freeze();function Ra(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function za(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Aa(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tp(t){if(!Za(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Lp(t,r,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function cl(t){return jC(t)?t:new Kh(t)}function jC(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function PC(t){return typeof t=="string"||TC(t)}function TC(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const LC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ip=[],_p={allowDangerousHtml:!0},IC=/^(https?|ircs?|mailto|xmpp)$/i,_C=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Qh(t){const r=OC(t),i=RC(t);return zC(r.runSync(r.parse(i),i),t)}function OC(t){const r=t.rehypePlugins||Ip,i=t.remarkPlugins||Ip,l=t.remarkRehypeOptions?{...t.remarkRehypeOptions,..._p}:_p;return NC().use(pS).use(i).use(aC,l).use(r)}function RC(t){const r=t.children||"",i=new Kh;return typeof r=="string"&&(i.value=r),i}function zC(t,r){const i=r.allowedElements,l=r.allowElement,s=r.components,a=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,p=r.urlTransform||AC;for(const g of _C)Object.hasOwn(r,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+LC+g.id,void 0);return qh(t,m),qv(t,{Fragment:w.Fragment,components:s,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function m(g,y,k){if(g.type==="raw"&&k&&typeof y=="number")return c?k.children.splice(y,1):k.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let x;for(x in Na)if(Object.hasOwn(Na,x)&&Object.hasOwn(g.properties,x)){const j=g.properties[x],T=Na[x];(T===null||T.includes(g.tagName))&&(g.properties[x]=p(String(j||""),x,g))}}if(g.type==="element"){let x=i?!i.includes(g.tagName):a?a.includes(g.tagName):!1;if(!x&&l&&typeof y=="number"&&(x=!l(g,y,k)),x&&k&&typeof y=="number")return f&&g.children?k.children.splice(y,1,...g.children):k.children.splice(y,1),y}}}function AC(t){const r=t.indexOf(":"),i=t.indexOf("?"),l=t.indexOf("#"),s=t.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||l!==-1&&r>l||IC.test(t.slice(0,r))?t:""}function MC({text:t}){return w.jsx("div",{className:"text-sm text-foreground",children:w.jsx(Qh,{components:{pre:({children:r})=>w.jsx("pre",{className:"bg-card rounded-lg p-2 overflow-x-auto text-xs my-2",children:r}),code:({className:r,children:i,...l})=>!r?w.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-muted-foreground text-xs",...l,children:i}):w.jsx("code",{className:r,...l,children:i}),a:({children:r,...i})=>w.jsx("a",{className:"text-muted-foreground hover:text-foreground underline",...i,children:r}),ul:({children:r})=>w.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1.5 text-sm",children:r}),ol:({children:r})=>w.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1.5 text-sm",children:r}),p:({children:r})=>w.jsx("p",{className:"my-1.5 leading-relaxed text-sm",children:r}),h1:({children:r})=>w.jsx("h1",{className:"text-base font-semibold text-foreground mt-3 mb-1",children:r}),h2:({children:r})=>w.jsx("h2",{className:"text-sm font-semibold text-foreground mt-2 mb-1",children:r}),h3:({children:r})=>w.jsx("h3",{className:"text-sm font-medium text-foreground mt-1.5 mb-0.5",children:r}),blockquote:({children:r})=>w.jsx("blockquote",{className:"border-l-2 border-border pl-2 my-1.5 text-muted-foreground italic text-sm",children:r}),li:({children:r})=>w.jsx("li",{className:"text-sm",children:r})},children:t})})}function Op({el:t}){var s;const r=t.component||`<${t.tag}>`,i=((s=t.source)==null?void 0:s.split("/").pop())||null,l=i?t.line?`${i}:${t.line}`:i:null;return w.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-medium bg-rose-100 text-rose-800 dark:bg-rose-800/80 dark:text-rose-100 align-baseline mx-0.5",children:[r,l&&w.jsx("span",{className:"text-rose-600 dark:text-rose-200 font-mono",children:l})]})}function DC({content:t,imageUrls:r,consoleEntries:i,attachedElements:l,contentSegments:s,onConsoleEntryClick:a,onImageClick:c}){const{t:f}=Ot(),p=r??[],m=s&&s.length>0&&l&&l.length>0;return w.jsxs("div",{className:"text-foreground bg-muted/50 rounded-lg px-3 py-2 text-sm self-end max-w-[85%]",children:[p.length>0&&w.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:p.map((g,y)=>w.jsx("img",{src:g,alt:f("attachedAlt",{index:y+1}),className:`max-w-[200px] max-h-[200px] rounded-lg border border-border/50 object-cover ${c?"cursor-pointer hover:opacity-80 transition-opacity":""}`,onClick:c?()=>c(p,y):void 0},y))}),i&&i.length>0&&w.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:i.map(g=>w.jsxs("button",{type:"button",onClick:()=>a==null?void 0:a(g),className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-medium transition-colors ${g.level==="error"?"bg-red-100 text-red-800 hover:bg-red-200 dark:bg-red-800/80 dark:text-red-100 dark:hover:bg-red-700/80":"bg-yellow-100 text-yellow-800 hover:bg-yellow-200 dark:bg-yellow-800/80 dark:text-yellow-100 dark:hover:bg-yellow-700/80"}`,title:f("clickToReattach",{level:g.level}),children:[g.level==="error"?w.jsx(cu,{className:"w-3 h-3"}):w.jsx(du,{className:"w-3 h-3"}),w.jsx("span",{className:"truncate max-w-[180px]",children:g.message.length>40?g.message.slice(0,40)+"…":g.message})]},g.id))}),m?w.jsx("span",{children:s.map((g,y)=>{if(g.type==="text")return w.jsx("span",{children:g.text},y);const k=l[g.elementIndex];return k?w.jsx(Op,{el:k},y):null})}):w.jsxs(w.Fragment,{children:[l&&l.length>0&&w.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:l.map((g,y)=>w.jsx(Op,{el:g},`${g.tag}:${g.source}:${g.line}:${y}`))}),t]})]})}function FC({text:t}){return w.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs py-1",children:[w.jsx(th,{className:"w-3 h-3 animate-spin"}),w.jsx("span",{children:t})]})}const $C={Read:k1,Write:Bf,Edit:Bf,Bash:nh,Grep:L1,Glob:S1,Ls:E1},UC={Read:"text-blue-400 border-blue-500/50",Write:"text-foreground border-border/50",Edit:"text-foreground border-border/50",Bash:"text-purple-400 border-purple-500/50",Grep:"text-orange-400 border-orange-500/50",Glob:"text-cyan-400 border-cyan-500/50",Ls:"text-cyan-400 border-cyan-500/50"};function BC({toolName:t,input:r}){const[i,l]=_.useState(!1),s=$C[t]||ih,a=UC[t]||"text-amber-400 border-amber-500/50",c=_.useMemo(()=>{if(!r)return null;switch(t){case"Read":return r.file_path?`${r.file_path}`:null;case"Write":case"Edit":return r.file_path?`${r.file_path}`:null;case"Bash":return r.command?`${r.command}`:null;case"Grep":return r.pattern?`pattern: ${r.pattern}`:null;case"Glob":return r.pattern?`${r.pattern}`:null;case"Ls":return r.path?`${r.path}`:null;default:return r.file_path?`${r.file_path}`:r.command?`${r.command}`:r.pattern?`${r.pattern}`:null}},[r,t]),f=m=>{const g=m.split("/");return g.length<=2?m:`.../${g.slice(-2).join("/")}`},p=c&&typeof c=="string"&&c.includes("/")?f(c):c;return w.jsxs("div",{className:`border-l-2 ${a.split(" ")[1]} pl-3 py-1.5 my-1`,children:[w.jsxs("div",{className:`flex items-center gap-2 text-xs cursor-pointer transition-colors ${a.split(" ")[0]} hover:brightness-125`,onClick:()=>l(!i),children:[w.jsx(s,{className:"w-3.5 h-3.5"}),w.jsx("span",{className:"font-medium",children:t}),p&&w.jsx("span",{className:"text-muted-foreground truncate max-w-[250px] font-mono text-[11px]",children:p}),w.jsx("span",{className:"text-muted-foreground text-[10px] ml-auto",children:i?"▼":"▶"})]}),i&&r&&w.jsx("pre",{className:"text-muted-foreground text-[11px] mt-2 overflow-x-auto max-h-48 overflow-y-auto bg-card/50 rounded p-2 font-mono",children:JSON.stringify(r,null,2)})]})}function VC({toolName:t,output:r,isError:i}){const[l,s]=_.useState(!1),a=_.useMemo(()=>r?/^\s*\d+[→:]/.test(r)||r.includes(`
|
|
275
|
+
1→`):!1,[r]),c=_.useMemo(()=>{if(!r)return!1;const m=r.trim().split(`
|
|
276
|
+
`);return m.length>0&&m.every(g=>g.startsWith("/")||g.startsWith("./")||g.match(/^[a-zA-Z0-9_.-]+$/))},[r]),f=_.useMemo(()=>{if(!r)return"";if(c){const g=r.trim().split(`
|
|
272
277
|
`);return g.length<=3?g.join(", "):`${g.length} files found`}if(a)return`${r.trim().split(`
|
|
273
278
|
`).length} lines`;const m=r.split(`
|
|
274
279
|
`)[0];return m.length>60?m.slice(0,60)+"...":m},[r,c,a]),p=((r==null?void 0:r.length)||0)>80||((r==null?void 0:r.split(`
|
|
275
|
-
`).length)||0)>1;return
|
|
276
|
-
`)}),!M&&i&&x&&k.jsx("div",{className:"mt-2 text-muted-foreground text-xs whitespace-pre-wrap max-h-32 overflow-y-auto",children:i}),$&&k.jsx(dh,{title:w("undoFileChanges"),description:w("undoConfirmDescription",{count:(f==null?void 0:f.length)??0}),confirmLabel:w("undo"),variant:"warning",onConfirm:ee,onCancel:()=>J(!1)})]})}const Pu=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));Pu.displayName="Card";const ju=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("flex flex-col space-y-1.5 p-6",t),...r}));ju.displayName="CardHeader";const Tu=R.forwardRef(({className:t,...r},i)=>k.jsx("h3",{ref:i,className:pr("text-2xl font-semibold leading-none tracking-tight",t),...r}));Tu.displayName="CardTitle";const $C=R.forwardRef(({className:t,...r},i)=>k.jsx("p",{ref:i,className:pr("text-sm text-muted-foreground",t),...r}));$C.displayName="CardDescription";const Qh=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("p-6 pt-0",t),...r}));Qh.displayName="CardContent";const Lu=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("flex items-center p-6 pt-0",t),...r}));Lu.displayName="CardFooter";function UC({planId:t,title:r,content:i,onApprove:l,onComment:s,disabled:a}){const{t:c}=Ot(),[f,p]=R.useState(!1),[m,g]=R.useState(!1),[y,w]=R.useState("");R.useEffect(()=>{if(!f)return;const j=V=>{V.key==="Escape"&&p(!1)};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[f]);const x=()=>{g(!0),p(!1),l(t)},N=()=>{const j=y.trim();j&&(p(!1),s(t,j),w(""))},L=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),N())},_={pre:({children:j})=>k.jsx("pre",{className:"bg-card rounded-lg p-2 overflow-x-auto text-xs my-2",children:j}),code:({className:j,children:V,...F})=>!j?k.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-muted-foreground text-xs",...F,children:V}):k.jsx("code",{className:j,...F,children:V}),a:({children:j,...V})=>k.jsx("a",{className:"text-muted-foreground hover:text-foreground underline",...V,children:j}),ul:({children:j})=>k.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1.5 text-sm",children:j}),ol:({children:j})=>k.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1.5 text-sm",children:j}),p:({children:j})=>k.jsx("p",{className:"my-1.5 leading-relaxed text-sm",children:j}),h1:({children:j})=>k.jsx("h1",{className:"text-base font-semibold text-foreground mt-3 mb-1",children:j}),h2:({children:j})=>k.jsx("h2",{className:"text-sm font-semibold text-foreground mt-2 mb-1",children:j}),h3:({children:j})=>k.jsx("h3",{className:"text-sm font-medium text-foreground mt-1.5 mb-0.5",children:j}),blockquote:({children:j})=>k.jsx("blockquote",{className:"border-l-2 border-border pl-2 my-1.5 text-muted-foreground italic text-sm",children:j}),li:({children:j})=>k.jsx("li",{className:"text-sm",children:j})};return k.jsxs(k.Fragment,{children:[k.jsxs(Pu,{className:"border-border/50 bg-card/80",children:[k.jsx(ju,{className:"p-3 pb-1",children:k.jsxs(Tu,{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[k.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r]})}),k.jsx(Lu,{className:"p-3 pt-2",children:k.jsx("button",{onClick:()=>p(!0),className:`w-full text-xs font-medium px-4 py-2 rounded transition-colors ${m?"bg-muted text-muted-foreground hover:bg-accent":"bg-primary text-primary-foreground hover:bg-primary/90"}`,children:c(m?"readPlan":"viewPlan")})})]}),f&&k.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:j=>{j.target===j.currentTarget&&p(!1)},children:k.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-2xl max-h-[80vh] flex flex-col shadow-xl mx-4",children:[k.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border shrink-0",children:[k.jsxs("h2",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[k.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r]}),k.jsx("button",{onClick:()=>p(!1),className:"text-muted-foreground hover:text-foreground transition-colors p-1",children:k.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),k.jsx("div",{className:"flex-1 overflow-y-auto p-4 text-sm text-foreground min-h-0",children:k.jsx(Kh,{components:_,children:i})}),!m&&!a&&k.jsxs("div",{className:"p-4 border-t border-border flex flex-col gap-2 shrink-0",children:[k.jsxs("div",{className:"flex gap-2",children:[k.jsx("input",{type:"text",value:y,onChange:j=>w(j.target.value),onKeyDown:L,placeholder:c("feedbackPlaceholder"),className:"flex-1 bg-muted text-foreground text-xs rounded px-3 py-1.5 border border-border focus:border-ring focus:outline-none placeholder:text-muted-foreground"}),k.jsx("button",{onClick:N,disabled:!y.trim(),className:"text-xs px-3 py-1.5 rounded bg-muted text-muted-foreground hover:bg-accent disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:c("send")})]}),k.jsx("button",{onClick:x,className:"w-full text-xs font-medium px-4 py-2 rounded bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:c("proceedWithPlan")})]})]})})]})}function BC({questionId:t,questions:r,onAnswer:i,disabled:l}){var H;const{t:s}=Ot(),[a,c]=R.useState(!1),f=a||!!l,[p,m]=R.useState(0),[g,y]=R.useState(()=>{const I={};for(let $=0;$<r.length;$++)I[$]=[];return I}),[w,x]=R.useState(()=>{const I={};for(let $=0;$<r.length;$++)I[$]="";return I}),N=(I,$,J)=>{f||y(G=>{const Y=G[I]||[];if(J){const se=Y.includes($)?Y.filter(M=>M!==$):[...Y,$];return{...G,[I]:se}}return{...G,[I]:[$]}})},L=()=>{if(f)return;c(!0);const I={};r.forEach(($,J)=>{var Y;const G=(g[J]||[]).map(se=>$.options[se].label);(Y=w[J])!=null&&Y.trim()&&G.push(w[J].trim()),I[$.header]=G}),i(t,I)},_=r.length>1,j=p===r.length-1,V=r[p],F=p,B=()=>{j?L():m(I=>I+1)};return k.jsxs(Pu,{className:`border-violet-700/50 bg-card/80 ${f?"opacity-80":""}`,children:[k.jsx(ju,{className:"p-3 pb-1",children:k.jsxs(Tu,{className:"text-sm font-medium text-violet-400 flex items-center gap-2",children:[k.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s(f?"questionsAnswered":"auraHasQuestions")]})}),_&&k.jsx("div",{className:"flex gap-1 px-3 pt-1 border-b border-border/60",children:r.map((I,$)=>{var Y;const J=$===p,G=(g[$]||[]).length>0||((Y=w[$])==null?void 0:Y.trim().length)>0;return k.jsxs("button",{type:"button",onClick:()=>m($),className:`relative px-2.5 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5 ${J?"text-violet-300 border-b-2 border-violet-500":"text-muted-foreground hover:text-foreground"}`,children:[I.header,G&&k.jsx("svg",{className:"w-3 h-3 text-violet-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})]},$)})}),k.jsx(Qh,{className:"p-3 pt-1 space-y-4",children:k.jsxs("div",{className:"space-y-2",children:[k.jsxs("div",{className:"flex items-start gap-2",children:[!_&&k.jsx("span",{className:"shrink-0 mt-0.5 text-[10px] font-medium uppercase tracking-wider bg-violet-900/50 text-violet-300 px-1.5 py-0.5 rounded",children:V.header}),k.jsx("p",{className:"text-xs text-foreground leading-relaxed",children:V.question})]}),V.multiSelect&&!f&&k.jsx("p",{className:"text-[10px] text-muted-foreground ml-0.5",children:s("selectAllThatApply")}),k.jsxs("div",{className:"space-y-1.5",children:[V.options.map((I,$)=>{const J=(g[F]||[]).includes($);return k.jsx("button",{type:"button",disabled:f,onClick:()=>N(F,$,V.multiSelect),className:`w-full text-left rounded-md border px-3 py-2 transition-colors ${f?J?"border-violet-600/60 bg-violet-950/40":"border-border bg-card/50 opacity-50":J?"border-violet-500/70 bg-violet-950/50":"border-border/50 bg-muted/40 hover:border-ring"}`,children:k.jsxs("div",{className:"flex items-start gap-2",children:[k.jsx("span",{className:`shrink-0 mt-0.5 w-3.5 h-3.5 flex items-center justify-center border ${V.multiSelect?"rounded-sm":"rounded-full"} ${J?"border-violet-400 bg-violet-500":"border-border"}`,children:J&&(V.multiSelect?k.jsx("svg",{className:"w-2.5 h-2.5 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}):k.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white"}))}),k.jsxs("div",{className:"min-w-0",children:[k.jsx("p",{className:`text-xs font-medium ${J?"text-violet-200":"text-foreground"}`,children:I.label}),k.jsx("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5",children:I.description})]})]})},$)}),!f&&k.jsx("input",{type:"text",value:w[F]||"",onChange:I=>x($=>({...$,[F]:I.target.value})),placeholder:s("additionalContext","Add additional context..."),className:"w-full text-xs bg-muted/60 border border-border/50 rounded-md px-3 py-2 text-foreground placeholder-muted-foreground outline-none focus:border-violet-500/70 transition-colors"}),f&&((H=w[F])==null?void 0:H.trim())&&k.jsx("div",{className:"text-xs text-muted-foreground border border-border rounded-md px-3 py-2 bg-card/50",children:w[F].trim()})]})]})}),!f&&k.jsx(Lu,{className:"p-3 pt-0",children:k.jsx("button",{onClick:B,className:"w-full text-xs font-medium px-4 py-2 rounded bg-violet-600 text-white hover:bg-violet-500 transition-colors",children:s(j?"submitAnswers":"next")})})]})}function VC({toolCount:t,children:r}){const{t:i}=Ot(),[l,s]=R.useState(!1),a=i("toolCall",{count:t});return k.jsxs("div",{className:"my-1",children:[k.jsxs("button",{onClick:()=>s(!l),className:"flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors py-1 px-2 rounded hover:bg-muted/50 w-full",children:[k.jsx(rh,{className:"w-3 h-3"}),k.jsx("span",{children:a}),l?k.jsx(Sl,{className:"w-3 h-3 ml-auto"}):k.jsx(au,{className:"w-3 h-3 ml-auto"})]}),l&&k.jsx("div",{className:"mt-1 space-y-0.5",children:r})]})}function Br(t){if(typeof t=="string")return t;if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch{return String(t)}}function Rp(t,r){var i,l,s,a,c,f;try{const p=JSON.parse(r);switch(t){case"user":return{type:"user",text:p.text};case"status":return{type:"status",text:p.message};case"text":return p.type==="assistant"&&((i=p.message)!=null&&i.content)?{type:"text",text:p.message.content.filter(g=>g.type==="text").map(g=>g.text).join(""),model:(l=p.message)==null?void 0:l.model}:{type:"text",text:Br(p.message||p.text||r)};case"tool_use":return{type:"tool_use",toolName:p.tool||p.name,toolInput:p.input};case"tool_result":{const m=p.content||p.result,g=typeof m=="string"?m:JSON.stringify(m);return{type:"tool_result",toolName:p.tool,toolOutput:g,isError:p.is_error||((s=p.subtype)==null?void 0:s.startsWith("error"))}}case"result":{const m=Array.isArray(p.errors)?p.errors.map(Br):p.errors?[Br(p.errors)]:void 0;return{type:"result",resultSubtype:p.subtype,resultText:p.result,resultErrors:m,numTurns:p.num_turns,durationMs:p.duration_ms,totalCostUsd:p.total_cost_usd,fileStats:p.file_stats,isError:p.is_error||p.subtype!=="success"}}case"message":{if(p.type==="system"&&p.subtype==="init")return{type:"system",model:p.model,tools:p.tools};if(p.type==="system"&&p.subtype==="compact_boundary")return{type:"compact_boundary",compactTrigger:(a=p.compact_metadata)==null?void 0:a.trigger,preTokens:(c=p.compact_metadata)==null?void 0:c.pre_tokens};if(p.type==="result"){const m=Array.isArray(p.errors)?p.errors.map(Br):p.errors?[Br(p.errors)]:void 0;return{type:"result",resultSubtype:p.subtype,resultText:p.result,resultErrors:m,numTurns:p.num_turns,durationMs:p.duration_ms,totalCostUsd:p.total_cost_usd,fileStats:p.file_stats,isError:p.is_error||p.subtype!=="success"}}if((f=p.message)!=null&&f.content){const m=p.message.content.filter(g=>g.type==="text").map(g=>g.text).join("");if(m)return{type:"text",text:m}}return null}case"plan":return{type:"plan",planId:p.planId,planTitle:p.planTitle,planContent:p.planContent};case"question":return{type:"question",questionId:p.questionId,questions:p.questions};case"done":return{type:"done",text:p.message};case"error":return{type:"error",text:Br(p.message||"Unknown error")};default:return null}}catch{return{type:"text",text:r}}}function HC(t){const r=[];if(t.attributes)for(const[i,l]of Object.entries(t.attributes))r.push(l?`${i}="${l}"`:i);return r.length>0?`<${t.tag} ${r.join(" ")}>`:`<${t.tag}>`}function WC(t){return t.length===1?tu(t[0]):t.map((r,i)=>{const l=r.component||`<${r.tag}>`;return`[Component ${i+1}: ${l}]
|
|
280
|
+
`).length)||0)>1;return w.jsxs("div",{className:`border-l-2 ${i?"border-red-500/50":"border-border/50"} pl-3 py-1 my-0.5`,children:[w.jsxs("div",{className:`flex items-center gap-2 text-xs cursor-pointer transition-colors ${i?"text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300":"text-muted-foreground hover:text-foreground"}`,onClick:()=>s(!l),children:[i?w.jsx(uu,{className:"w-3 h-3"}):a?w.jsx(eh,{className:"w-3 h-3"}):w.jsx(Zp,{className:"w-3 h-3"}),w.jsx("span",{className:"text-muted-foreground",children:t?`← ${t}`:"← result"}),f&&w.jsx("span",{className:"text-muted-foreground truncate max-w-[200px] font-mono text-[11px]",children:f}),p&&w.jsx("span",{className:"text-muted-foreground ml-auto",children:l?w.jsx(Sl,{className:"w-3 h-3"}):w.jsx(au,{className:"w-3 h-3"})})]}),l&&r&&w.jsx("pre",{className:`text-[11px] mt-2 overflow-x-auto max-h-64 overflow-y-auto rounded p-2 font-mono ${i?"text-red-700 bg-red-100/50 dark:text-red-300 dark:bg-red-950/30":"text-muted-foreground bg-card/50"}`,children:r})]})}function HC({model:t,tools:r}){const{t:i}=Ot(),[l,s]=_.useState(!1);return w.jsxs("div",{className:"flex items-start gap-2 text-muted-foreground text-xs py-1 cursor-pointer hover:text-foreground transition-colors",onClick:()=>s(!l),children:[w.jsx(b1,{className:"w-3 h-3 mt-0.5 shrink-0"}),w.jsxs("div",{children:[w.jsx("span",{children:i("sessionInitialized")}),t&&w.jsxs("span",{className:"text-muted-foreground",children:[" · ",t]}),l&&r&&r.length>0&&w.jsxs("div",{className:"mt-1 text-muted-foreground",children:["Tools: ",r.join(", ")]})]})]})}function WC({text:t}){return w.jsxs("div",{className:"flex items-start gap-2 text-red-600 dark:text-red-400 text-xs py-1",children:[w.jsx(uu,{className:"w-3 h-3 mt-0.5 shrink-0"}),w.jsx("span",{className:"whitespace-pre-wrap",children:t})]})}function qC({trigger:t,preTokens:r}){const{t:i}=Ot();return w.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs py-2 my-1 border-t border-b border-border/50",children:[w.jsx(T1,{className:"w-3 h-3"}),w.jsxs("span",{children:[i("conversationCompacted"),t&&w.jsxs("span",{className:"text-muted-foreground",children:[" (",t,")"]}),r&&w.jsxs("span",{className:"text-muted-foreground",children:[" · ",r.toLocaleString()," tokens"]})]})]})}const KC={error_max_turns:"errorMaxTurns",error_during_execution:"errorDuringExecution",error_max_budget_usd:"errorMaxBudget",error_max_structured_output_retries:"errorOutputParsing"};function QC({msgId:t,subtype:r,result:i,errors:l,numTurns:s,durationMs:a,totalCostUsd:c,fileStats:f,undone:p,isLatest:m,onReviewDiffs:g,onUndone:y}){const{t:k}=Ot(),[x,j]=_.useState(!1),[T,I]=_.useState("idle"),[b,$]=_.useState(""),[D,U]=_.useState(!1),[H,R]=_.useState(!1),[V,K]=_.useState(!1),G=_.useRef(),X=_.useCallback(()=>{G.current=setTimeout(()=>R(!0),300)},[]),oe=_.useCallback(()=>{clearTimeout(G.current),R(!1)},[]);if(r==="waiting_for_input")return null;const M=r!=="success",re=KC[r],Y=re?k(re):"Error",q=a?(a/1e3).toFixed(1):null,fe=f&&f.length>0,pe=S=>{S.stopPropagation(),!(T==="loading"||T==="undone")&&K(!0)},ee=async()=>{K(!1),I("loading");try{const N=await(await fetch("/api/undo",{method:"POST"})).json();if(N.success){I("undone");const F=N.restored;F.length===1?$(k("revertedFile",{file:F[0]})):$(k("revertedFiles",{count:F.length,files:F.join(", ")})),y==null||y(t)}else I("error"),$(N.error||k("nothingToUndo"))}catch{I("error"),$(k("undoFailed"))}},ue=async S=>{var N;if(S.stopPropagation(),!D){U(!0);try{const C=await(await fetch("/api/undo/diff")).json();C.success&&((N=C.diffs)==null?void 0:N.length)>0&&(g==null||g(C.diffs))}catch{}finally{U(!1)}}};return w.jsxs("div",{className:`border-l-2 ${M?"border-red-500/50":"border-border/50"} pl-3 py-2 my-2`,children:[w.jsxs("div",{className:`flex items-center gap-2 text-xs cursor-pointer transition-colors ${M?"text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300":"text-foreground hover:text-foreground"}`,onClick:()=>j(!x),children:[M?w.jsx(uu,{className:"w-3 h-3"}):w.jsx(Zp,{className:"w-3 h-3"}),w.jsx("span",{className:"font-medium",children:M?Y:k("taskCompleted")}),fe&&p&&w.jsxs("span",{className:"ml-auto flex items-center gap-1 text-muted-foreground",children:[w.jsx(Vf,{className:"w-3 h-3"}),k("undone")]}),m&&!M&&fe&&!p&&T==="idle"&&w.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[w.jsxs("div",{className:"relative",onMouseEnter:X,onMouseLeave:oe,children:[w.jsxs("button",{onClick:ue,className:"flex items-center gap-1 px-2 py-0.5 rounded bg-blue-100/60 text-blue-700 hover:bg-blue-200/60 hover:text-blue-800 dark:bg-blue-900/40 dark:text-blue-300 dark:hover:bg-blue-800/50 dark:hover:text-blue-200 transition-colors",disabled:D,children:[w.jsx(v1,{className:"w-3 h-3"}),w.jsx("span",{children:k(D?"loading":"review")})]}),H&&w.jsx("div",{className:"absolute bottom-full right-0 mb-1.5 w-max max-w-xs bg-card border border-border rounded-md shadow-lg py-1.5 px-2 z-50",children:f.map(S=>w.jsxs("div",{className:"flex items-center gap-2 text-[11px] leading-5 whitespace-nowrap",children:[w.jsx("span",{className:"text-muted-foreground truncate max-w-[180px]",children:S.relativePath}),w.jsxs("span",{className:"text-green-600 dark:text-green-400",children:["+",S.additions]}),w.jsxs("span",{className:"text-red-600 dark:text-red-400",children:["-",S.deletions]})]},S.relativePath))})]}),w.jsxs("button",{onClick:pe,className:"flex items-center gap-1 px-2 py-0.5 rounded bg-amber-100/60 text-amber-700 hover:bg-amber-200/60 hover:text-amber-800 dark:bg-amber-900/40 dark:text-amber-300 dark:hover:bg-amber-800/50 dark:hover:text-amber-200 transition-colors",title:k("undoLastFileChange"),children:[w.jsx(Vf,{className:"w-3 h-3"}),w.jsx("span",{children:k("undo")})]})]}),T==="loading"&&w.jsx("span",{className:"ml-auto text-muted-foreground animate-pulse",children:k("undoing")}),T==="error"&&w.jsx("span",{className:"ml-auto text-muted-foreground",children:b})]}),w.jsxs("div",{className:"flex items-center gap-3 mt-1 text-muted-foreground text-xs",children:[s&&w.jsxs("span",{className:"flex items-center gap-1",children:[w.jsx(h1,{className:"w-3 h-3"}),k("turn",{count:s})]}),q&&w.jsxs("span",{children:[q,"s"]}),c!==void 0&&c>0&&w.jsxs("span",{className:"flex items-center gap-0.5",children:[w.jsx(y1,{className:"w-3 h-3"}),c.toFixed(4)]})]}),M&&l&&l.length>0&&x&&w.jsx("div",{className:"mt-2 text-red-700 dark:text-red-300 text-xs whitespace-pre-wrap",children:l.join(`
|
|
281
|
+
`)}),!M&&i&&x&&w.jsx("div",{className:"mt-2 text-muted-foreground text-xs whitespace-pre-wrap max-h-32 overflow-y-auto",children:i}),V&&w.jsx(fh,{title:k("undoFileChanges"),description:k("undoConfirmDescription",{count:(f==null?void 0:f.length)??0}),confirmLabel:k("undo"),variant:"warning",onConfirm:ee,onCancel:()=>K(!1)})]})}const ju=_.forwardRef(({className:t,...r},i)=>w.jsx("div",{ref:i,className:pr("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));ju.displayName="Card";const Pu=_.forwardRef(({className:t,...r},i)=>w.jsx("div",{ref:i,className:pr("flex flex-col space-y-1.5 p-6",t),...r}));Pu.displayName="CardHeader";const Tu=_.forwardRef(({className:t,...r},i)=>w.jsx("h3",{ref:i,className:pr("text-2xl font-semibold leading-none tracking-tight",t),...r}));Tu.displayName="CardTitle";const GC=_.forwardRef(({className:t,...r},i)=>w.jsx("p",{ref:i,className:pr("text-sm text-muted-foreground",t),...r}));GC.displayName="CardDescription";const Gh=_.forwardRef(({className:t,...r},i)=>w.jsx("div",{ref:i,className:pr("p-6 pt-0",t),...r}));Gh.displayName="CardContent";const Lu=_.forwardRef(({className:t,...r},i)=>w.jsx("div",{ref:i,className:pr("flex items-center p-6 pt-0",t),...r}));Lu.displayName="CardFooter";function YC({planId:t,title:r,content:i,onApprove:l,onComment:s,disabled:a}){const{t:c}=Ot(),[f,p]=_.useState(!1),[m,g]=_.useState(!1),[y,k]=_.useState("");_.useEffect(()=>{if(!f)return;const b=$=>{$.key==="Escape"&&p(!1)};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[f]);const x=()=>{g(!0),p(!1),l(t)},j=()=>{const b=y.trim();b&&(p(!1),s(t,b),k(""))},T=b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),j())},I={pre:({children:b})=>w.jsx("pre",{className:"bg-card rounded-lg p-2 overflow-x-auto text-xs my-2",children:b}),code:({className:b,children:$,...D})=>!b?w.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-muted-foreground text-xs",...D,children:$}):w.jsx("code",{className:b,...D,children:$}),a:({children:b,...$})=>w.jsx("a",{className:"text-muted-foreground hover:text-foreground underline",...$,children:b}),ul:({children:b})=>w.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1.5 text-sm",children:b}),ol:({children:b})=>w.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1.5 text-sm",children:b}),p:({children:b})=>w.jsx("p",{className:"my-1.5 leading-relaxed text-sm",children:b}),h1:({children:b})=>w.jsx("h1",{className:"text-base font-semibold text-foreground mt-3 mb-1",children:b}),h2:({children:b})=>w.jsx("h2",{className:"text-sm font-semibold text-foreground mt-2 mb-1",children:b}),h3:({children:b})=>w.jsx("h3",{className:"text-sm font-medium text-foreground mt-1.5 mb-0.5",children:b}),blockquote:({children:b})=>w.jsx("blockquote",{className:"border-l-2 border-border pl-2 my-1.5 text-muted-foreground italic text-sm",children:b}),li:({children:b})=>w.jsx("li",{className:"text-sm",children:b})};return w.jsxs(w.Fragment,{children:[w.jsxs(ju,{className:"border-border/50 bg-card/80",children:[w.jsx(Pu,{className:"p-3 pb-1",children:w.jsxs(Tu,{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[w.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r]})}),w.jsx(Lu,{className:"p-3 pt-2",children:w.jsx("button",{onClick:()=>p(!0),className:`w-full text-xs font-medium px-4 py-2 rounded transition-colors ${m?"bg-muted text-muted-foreground hover:bg-accent":"bg-primary text-primary-foreground hover:bg-primary/90"}`,children:c(m?"readPlan":"viewPlan")})})]}),f&&w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:b=>{b.target===b.currentTarget&&p(!1)},children:w.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-2xl max-h-[80vh] flex flex-col shadow-xl mx-4",children:[w.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border shrink-0",children:[w.jsxs("h2",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[w.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r]}),w.jsx("button",{onClick:()=>p(!1),className:"text-muted-foreground hover:text-foreground transition-colors p-1",children:w.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),w.jsx("div",{className:"flex-1 overflow-y-auto p-4 text-sm text-foreground min-h-0",children:w.jsx(Qh,{components:I,children:i})}),!m&&!a&&w.jsxs("div",{className:"p-4 border-t border-border flex flex-col gap-2 shrink-0",children:[w.jsxs("div",{className:"flex gap-2",children:[w.jsx("input",{type:"text",value:y,onChange:b=>k(b.target.value),onKeyDown:T,placeholder:c("feedbackPlaceholder"),className:"flex-1 bg-muted text-foreground text-xs rounded px-3 py-1.5 border border-border focus:border-ring focus:outline-none placeholder:text-muted-foreground"}),w.jsx("button",{onClick:j,disabled:!y.trim(),className:"text-xs px-3 py-1.5 rounded bg-muted text-muted-foreground hover:bg-accent disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:c("send")})]}),w.jsx("button",{onClick:x,className:"w-full text-xs font-medium px-4 py-2 rounded bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:c("proceedWithPlan")})]})]})})]})}function XC({questionId:t,questions:r,onAnswer:i,disabled:l,answered:s}){var R;const{t:a}=Ot(),[c,f]=_.useState(!!s),p=c||!!l,[m,g]=_.useState(0),[y,k]=_.useState(()=>{const V={};for(let K=0;K<r.length;K++)V[K]=[];return V}),[x,j]=_.useState(()=>{const V={};for(let K=0;K<r.length;K++)V[K]="";return V}),T=(V,K,G)=>{p||k(X=>{const oe=X[V]||[];if(G){const M=oe.includes(K)?oe.filter(re=>re!==K):[...oe,K];return{...X,[V]:M}}return{...X,[V]:[K]}})},I=()=>{if(p)return;f(!0);const V={};r.forEach((K,G)=>{var oe;const X=(y[G]||[]).map(M=>K.options[M].label);(oe=x[G])!=null&&oe.trim()&&X.push(x[G].trim()),V[K.header]=X}),i(t,V)},b=r.length>1,$=m===r.length-1,D=r[m],U=m,H=()=>{$?I():g(V=>V+1)};return w.jsxs(ju,{className:`border-violet-700/50 bg-card/80 ${p?"opacity-80":""}`,children:[w.jsx(Pu,{className:"p-3 pb-1",children:w.jsxs(Tu,{className:"text-sm font-medium text-violet-400 flex items-center gap-2",children:[w.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),a(p?"questionsAnswered":"auraHasQuestions")]})}),b&&w.jsx("div",{className:"flex gap-1 px-3 pt-1 border-b border-border/60",children:r.map((V,K)=>{var oe;const G=K===m,X=(y[K]||[]).length>0||((oe=x[K])==null?void 0:oe.trim().length)>0;return w.jsxs("button",{type:"button",onClick:()=>g(K),className:`relative px-2.5 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5 ${G?"text-violet-300 border-b-2 border-violet-500":"text-muted-foreground hover:text-foreground"}`,children:[V.header,X&&w.jsx("svg",{className:"w-3 h-3 text-violet-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})]},K)})}),w.jsx(Gh,{className:"p-3 pt-1 space-y-4",children:w.jsxs("div",{className:"space-y-2",children:[w.jsxs("div",{className:"flex items-start gap-2",children:[!b&&w.jsx("span",{className:"shrink-0 mt-0.5 text-[10px] font-medium uppercase tracking-wider bg-violet-900/50 text-violet-300 px-1.5 py-0.5 rounded",children:D.header}),w.jsx("p",{className:"text-xs text-foreground leading-relaxed",children:D.question})]}),D.multiSelect&&!p&&w.jsx("p",{className:"text-[10px] text-muted-foreground ml-0.5",children:a("selectAllThatApply")}),w.jsxs("div",{className:"space-y-1.5",children:[D.options.map((V,K)=>{const G=(y[U]||[]).includes(K);return w.jsx("button",{type:"button",disabled:p,onClick:()=>T(U,K,D.multiSelect),className:`w-full text-left rounded-md border px-3 py-2 transition-colors ${p?G?"border-violet-600/60 bg-violet-950/40":"border-border bg-card/50 opacity-50":G?"border-violet-500/70 bg-violet-950/50":"border-border/50 bg-muted/40 hover:border-ring"}`,children:w.jsxs("div",{className:"flex items-start gap-2",children:[w.jsx("span",{className:`shrink-0 mt-0.5 w-3.5 h-3.5 flex items-center justify-center border ${D.multiSelect?"rounded-sm":"rounded-full"} ${G?"border-violet-400 bg-violet-500":"border-border"}`,children:G&&(D.multiSelect?w.jsx("svg",{className:"w-2.5 h-2.5 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}):w.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white"}))}),w.jsxs("div",{className:"min-w-0",children:[w.jsx("p",{className:`text-xs font-medium ${G?"text-violet-200":"text-foreground"}`,children:V.label}),w.jsx("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5",children:V.description})]})]})},K)}),!p&&w.jsx("input",{type:"text",value:x[U]||"",onChange:V=>j(K=>({...K,[U]:V.target.value})),placeholder:a("additionalContext","Add additional context..."),className:"w-full text-xs bg-muted/60 border border-border/50 rounded-md px-3 py-2 text-foreground placeholder-muted-foreground outline-none focus:border-violet-500/70 transition-colors"}),p&&((R=x[U])==null?void 0:R.trim())&&w.jsx("div",{className:"text-xs text-muted-foreground border border-border rounded-md px-3 py-2 bg-card/50",children:x[U].trim()})]})]})}),!p&&w.jsx(Lu,{className:"p-3 pt-0",children:w.jsx("button",{onClick:H,className:"w-full text-xs font-medium px-4 py-2 rounded bg-violet-600 text-white hover:bg-violet-500 transition-colors",children:a($?"submitAnswers":"next")})})]})}function JC({toolCount:t,children:r}){const{t:i}=Ot(),[l,s]=_.useState(!1),a=i("toolCall",{count:t});return w.jsxs("div",{className:"my-1",children:[w.jsxs("button",{onClick:()=>s(!l),className:"flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors py-1 px-2 rounded hover:bg-muted/50 w-full",children:[w.jsx(ih,{className:"w-3 h-3"}),w.jsx("span",{children:a}),l?w.jsx(Sl,{className:"w-3 h-3 ml-auto"}):w.jsx(au,{className:"w-3 h-3 ml-auto"})]}),l&&w.jsx("div",{className:"mt-1 space-y-0.5",children:r})]})}function Br(t){if(typeof t=="string")return t;if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch{return String(t)}}function Rp(t,r){var i,l,s,a,c,f;try{const p=JSON.parse(r);switch(t){case"user":return{type:"user",text:p.text};case"status":return{type:"status",text:p.message};case"text":return p.type==="assistant"&&((i=p.message)!=null&&i.content)?{type:"text",text:p.message.content.filter(g=>g.type==="text").map(g=>g.text).join(""),model:(l=p.message)==null?void 0:l.model}:{type:"text",text:Br(p.message||p.text||r)};case"tool_use":return{type:"tool_use",toolName:p.tool||p.name,toolInput:p.input};case"tool_result":{const m=p.content||p.result,g=typeof m=="string"?m:JSON.stringify(m);return{type:"tool_result",toolName:p.tool,toolOutput:g,isError:p.is_error||((s=p.subtype)==null?void 0:s.startsWith("error"))}}case"result":{const m=Array.isArray(p.errors)?p.errors.map(Br):p.errors?[Br(p.errors)]:void 0;return{type:"result",resultSubtype:p.subtype,resultText:p.result,resultErrors:m,numTurns:p.num_turns,durationMs:p.duration_ms,totalCostUsd:p.total_cost_usd,fileStats:p.file_stats,isError:p.is_error||p.subtype!=="success"}}case"message":{if(p.type==="system"&&p.subtype==="init")return{type:"system",model:p.model,tools:p.tools};if(p.type==="system"&&p.subtype==="compact_boundary")return{type:"compact_boundary",compactTrigger:(a=p.compact_metadata)==null?void 0:a.trigger,preTokens:(c=p.compact_metadata)==null?void 0:c.pre_tokens};if(p.type==="result"){const m=Array.isArray(p.errors)?p.errors.map(Br):p.errors?[Br(p.errors)]:void 0;return{type:"result",resultSubtype:p.subtype,resultText:p.result,resultErrors:m,numTurns:p.num_turns,durationMs:p.duration_ms,totalCostUsd:p.total_cost_usd,fileStats:p.file_stats,isError:p.is_error||p.subtype!=="success"}}if((f=p.message)!=null&&f.content){const m=p.message.content.filter(g=>g.type==="text").map(g=>g.text).join("");if(m)return{type:"text",text:m}}return null}case"plan":return{type:"plan",planId:p.planId,planTitle:p.planTitle,planContent:p.planContent};case"question":return{type:"question",questionId:p.questionId,questions:p.questions};case"done":return{type:"done",text:p.message};case"error":return{type:"error",text:Br(p.message||"Unknown error")};default:return null}}catch{return{type:"text",text:r}}}function ZC(t){const r=[];if(t.attributes)for(const[i,l]of Object.entries(t.attributes))r.push(l?`${i}="${l}"`:i);return r.length>0?`<${t.tag} ${r.join(" ")}>`:`<${t.tag}>`}function eb(t){return t.length===1?tu(t[0]):t.map((r,i)=>{const l=r.component||`<${r.tag}>`;return`[Component ${i+1}: ${l}]
|
|
277
282
|
${tu(r)}`}).join(`
|
|
278
283
|
|
|
279
|
-
`)}function tu(t){const r=["[Inspector Context]"];if(r.push(""),r.push("## Selected Tag"),r.push(`Rendered HTML: ${
|
|
280
|
-
`)}function
|
|
284
|
+
`)}function tu(t){const r=["[Inspector Context]"];if(r.push(""),r.push("## Selected Tag"),r.push(`Rendered HTML: ${ZC(t)}`),t.text&&r.push(`Text content: "${t.text}"`),r.push(""),r.push("IMPORTANT: The user selected this specific <"+t.tag+"> tag. Any changes must target ONLY this element, not the entire parent component."),t.component){if(r.push(""),r.push("## Parent Component Context"),r.push(`Component: ${t.component}`),t.source){let i=`Source: ${t.source}`;t.line&&(i+=`:${t.line}`),t.column&&(i+=`:${t.column}`),r.push(i)}t.propsTypeDefinition&&(r.push(""),r.push("Props type definition:"),r.push("```tsx"),r.push(t.propsTypeDefinition),r.push("```")),t.sourceSnippet&&(r.push(""),r.push(`Source code around line ${t.line} (find the <${t.tag}> within this snippet):`),r.push("```tsx"),r.push(t.sourceSnippet),r.push("```"))}else{if(t.source){r.push(""),r.push("## Source Context");let i=`Source: ${t.source}`;t.line&&(i+=`:${t.line}`),t.column&&(i+=`:${t.column}`),r.push(i)}t.sourceSnippet&&(r.push(""),r.push(`Source code around line ${t.line}:`),r.push("```tsx"),r.push(t.sourceSnippet),r.push("```"))}return r.join(`
|
|
285
|
+
`)}function tb(t,r){const[i,l]=_.useState([]),[s,a]=_.useState(!1),[c,f]=_.useState(!1),[p,m]=_.useState(!1),[g,y]=_.useState([]),[k,x]=_.useState([]),[j,T]=_.useState([]),I=_.useRef(null),b=_.useRef(null),$=_.useRef(void 0),D=_.useRef(null),U=_.useRef(null),H=_.useRef([]),R=_.useRef(null);_.useEffect(()=>{var Q;(Q=I.current)==null||Q.scrollIntoView({behavior:"smooth"})},[i]),_.useEffect(()=>{const Q=document.documentElement.scrollHeight;window.parent.postMessage({type:"AWEL_RESIZE",height:Q},"*")},[i,s,g]),_.useEffect(()=>()=>{var Q;(Q=b.current)==null||Q.close()},[]),_.useEffect(()=>{async function Q(){try{const J=await(await fetch("/api/chat/history")).json();if(J.history&&Array.isArray(J.history)){const de=[];let se;for(const me of J.history){const _e=Rp(me.eventType,me.data);_e&&(_e.toolName&&(se=_e.toolName),_e.type==="tool_result"&&!_e.toolName&&(_e.toolName=se),de.push({id:me.id||crypto.randomUUID(),type:_e.type||"text",timestamp:new Date(me.timestamp||Date.now()),..._e}))}for(let me=0;me<de.length-1;me++)de[me].type==="question"&&(de[me].answered=!0);l(de)}}catch{}}Q()},[]),_.useEffect(()=>{function Q(B){var J;if(((J=B.data)==null?void 0:J.type)==="AWEL_CONSOLE_ENTRIES"){const de=B.data.entries;y(de),window.parent.postMessage({type:"AWEL_CONSOLE_VIEWED"},"*")}}return window.addEventListener("message",Q),()=>window.removeEventListener("message",Q)},[]),_.useEffect(()=>{function Q(B){var J;((J=B.data)==null?void 0:J.type)==="AWEL_PAGE_CONTEXT"&&(R.current=B.data.context)}return window.addEventListener("message",Q),window.parent.postMessage({type:"AWEL_REQUEST_PAGE_CONTEXT"},"*"),()=>window.removeEventListener("message",Q)},[]);const V=_.useCallback(Q=>{x(B=>B.some(J=>J.id===Q.id)?B:[...B,Q]),y(B=>B.filter(J=>J.id!==Q.id)),window.parent.postMessage({type:"AWEL_CONSOLE_DISMISS",id:Q.id},"*")},[]),K=_.useCallback(Q=>{x(B=>{const J=B.find(de=>de.id===Q);return J&&y(de=>[...de,J]),B.filter(de=>de.id!==Q)})},[]),G=_.useCallback(Q=>{x(B=>B.some(J=>J.id===Q.id)?B:[...B,Q])},[]),X=_.useCallback(Q=>{y(B=>B.filter(J=>J.id!==Q)),window.parent.postMessage({type:"AWEL_CONSOLE_DISMISS",id:Q},"*")},[]),oe=_.useCallback(()=>{y([]),window.parent.postMessage({type:"AWEL_CONSOLE_CLEAR"},"*")},[]);_.useEffect(()=>{H.current=k},[k]);const M=_.useCallback(Q=>{const B=crypto.randomUUID();return l(J=>[...J,{id:B,type:Q.type||"text",timestamp:new Date,...Q}]),B},[]),re=_.useCallback((Q,B)=>(fetch("/api/chat/history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventType:"user",data:JSON.stringify({type:"user",text:Q})})}).catch(()=>{}),M({type:"user",text:Q,imageUrls:B==null?void 0:B.imageUrls,consoleEntries:B==null?void 0:B.consoleEntries,attachedElements:B==null?void 0:B.attachedElements,contentSegments:B==null?void 0:B.contentSegments})),[M]),Y=_.useCallback(Q=>B=>{const J=Rp(Q,B.data||"");if(J){J.toolName&&($.current=J.toolName),J.type==="tool_result"&&!J.toolName&&(J.toolName=$.current),(J.type==="plan"||J.type==="question")&&f(!0);const de=J.type&&["text","tool_use","tool_result","result","plan","question"].includes(J.type);l(se=>{const me=de?se.filter(_e=>_e.type!=="status"):se;if(J.type==="text"&&J.text){const _e=me[me.length-1];if(_e&&_e.type==="text"){const ce=[...me];return ce[ce.length-1]={..._e,text:(_e.text||"")+J.text},ce}}return[...me,{id:crypto.randomUUID(),type:J.type||"text",timestamp:new Date,...J}]})}},[]),q=_.useCallback(Q=>{Q instanceof MessageEvent?M({type:"error",text:Q.data||"Connection error"}):M({type:"error",text:"Connection lost"}),a(!1)},[M]),fe=["text","tool_use","tool_result","status","plan","question","result","message"],pe=_.useCallback((Q,B,J)=>{var se;a(!0),f(!1),m(!1),(se=b.current)==null||se.close();const de=new EventSource("/api/stream");b.current=de;for(const me of fe)de.addEventListener(me,Y(me));de.addEventListener("done",me=>{Y("done")(me),de.close(),b.current=null,a(!1)}),de.addEventListener("error",me=>{me instanceof MessageEvent?Y("error")(me):(de.close(),b.current=null,q(me))}),de.onopen=()=>{const me={prompt:Q,model:t};B&&B.length>0&&(me.consoleEntries=B),J&&J.length>0&&(me.images=J),R.current&&(me.pageContext=R.current),fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(me)}).catch(()=>{de.close(),b.current=null,q(new Event("error"))})}},[t,Y,q]);_.useEffect(()=>{const Q=new EventSource("/api/inspector/events");return Q.addEventListener("selection",B=>{var J,de,se;try{const me=JSON.parse(B.data);if(me.mode==="attach")(J=D.current)==null||J.call(D,{element:me});else if((de=me.comment)!=null&&de.trim()){const ce=tu(me)+`
|
|
281
286
|
|
|
282
|
-
`+
|
|
287
|
+
`+me.comment;re(me.comment,{attachedElements:[me]}),pe(ce)}else{const _e=me.component||`<${me.tag}>`,we=me.props&&Object.values(me.props).some(ve=>ve==="undefined"||ve==="null")?`Why is ${_e} receiving undefined props?`:`Explain what ${_e} does and how I can modify it.`;(se=D.current)==null||se.call(D,{element:me,suggestedText:we,clearExisting:!0})}}catch{}}),()=>Q.close()},[re,pe]);const ee=_.useCallback(()=>{var Q;fetch("/api/stream/abort",{method:"POST"}).catch(()=>{}),(Q=b.current)==null||Q.close(),b.current=null,a(!1),f(!1),m(!0),l(B=>B.filter(J=>J.type!=="status"))},[]),ue=_.useCallback(Q=>{T(B=>B.filter((J,de)=>de!==Q))},[]),S=_.useCallback((Q,B)=>{const J=H.current.length>0?[...H.current]:void 0;J&&x([]),B!=null&&B.imageDataUrls&&B.imageDataUrls.length>0&&T([]);let de=Q;B!=null&&B.elements&&B.elements.length>0&&(de=eb(B.elements)+`
|
|
283
288
|
|
|
284
|
-
`+
|
|
289
|
+
`+de),re(Q,{imageUrls:B==null?void 0:B.imageDataUrls,consoleEntries:J,attachedElements:B==null?void 0:B.elements,contentSegments:B==null?void 0:B.contentSegments}),pe(de,J,B==null?void 0:B.imageDataUrls)},[re,pe]),N=_.useCallback(async Q=>{await fetch("/api/plan/approve",{method:"POST"});const de=(await(await fetch("/api/plan/active")).json()).plan;if(!de)return;const se=`The user has approved the following plan. Execute it now.
|
|
285
290
|
|
|
286
|
-
## ${
|
|
291
|
+
## ${de.plan.title}
|
|
287
292
|
|
|
288
|
-
${
|
|
293
|
+
${de.plan.content}
|
|
289
294
|
|
|
290
|
-
Original request: ${
|
|
295
|
+
Original request: ${de.originalPrompt}`;pe(se)},[pe]),F=_.useCallback(async(Q,B)=>{await fetch("/api/plan/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({planId:Q,comment:B})}),re(B);const J=`The user provided feedback on your proposed plan. Please revise the plan based on their feedback and call ProposePlan again with the updated plan.
|
|
291
296
|
|
|
292
|
-
User feedback: ${
|
|
297
|
+
User feedback: ${B}`;pe(J)},[pe,re]),C=_.useCallback((Q,B)=>{l(me=>me.map(_e=>_e.type==="question"&&_e.questionId===Q?{..._e,answered:!0}:_e));const se=`The user answered your clarifying questions. Here are their selections:
|
|
293
298
|
|
|
294
|
-
${Object.entries(
|
|
299
|
+
${Object.entries(B).map(([me,_e])=>`**${me}**: ${_e.join(", ")}`).join(`
|
|
295
300
|
`)}
|
|
296
301
|
|
|
297
|
-
Please proceed based on these answers.`;
|
|
302
|
+
Please proceed based on these answers.`;pe(se)},[pe]),Se=_.useCallback(Q=>{l(B=>B.map(J=>J.id===Q?{...J,undone:!0}:J))},[]),Ee=_.useMemo(()=>{var de;const Q=[];let B=0,J=-1;for(let se=i.length-1;se>=0;se--)if(i[se].type==="result"&&((de=i[se].fileStats)!=null&&de.length)&&!i[se].undone){J=se;break}for(;B<i.length;){const se=i[B];if(se.type==="tool_use"||se.type==="tool_result"){const _e=[];for(;B<i.length&&(i[B].type==="tool_use"||i[B].type==="tool_result");)_e.push(i[B]),B++;const ce=_e.filter(ve=>ve.type==="tool_use").length,we=_e.map(ve=>ve.type==="tool_use"?_.createElement(BC,{key:ve.id,toolName:ve.toolName||"Tool",input:ve.toolInput}):_.createElement(VC,{key:ve.id,toolName:ve.toolName,output:ve.toolOutput,isError:ve.isError}));Q.push(_.createElement(JC,{key:`tool-group-${_e[0].id}`,toolCount:ce,children:we}));continue}let me=null;switch(se.type){case"user":me=_.createElement(DC,{key:se.id,content:se.text||"",imageUrls:se.imageUrls,consoleEntries:se.consoleEntries,attachedElements:se.attachedElements,contentSegments:se.contentSegments,onConsoleEntryClick:G,onImageClick:(_e,ce)=>{var we;return(we=U.current)==null?void 0:we.call(U,_e,ce)}});break;case"status":me=_.createElement(FC,{key:se.id,text:se.text||""});break;case"text":me=se.text?_.createElement(MC,{key:se.id,text:se.text}):null;break;case"system":me=_.createElement(HC,{key:se.id,model:se.model,tools:se.tools});break;case"compact_boundary":me=_.createElement(qC,{key:se.id,trigger:se.compactTrigger,preTokens:se.preTokens});break;case"plan":me=_.createElement(YC,{key:se.id,planId:se.planId||"",title:se.planTitle||"Plan",content:se.planContent||"",onApprove:N,onComment:F,disabled:p});break;case"question":me=se.questions?_.createElement(XC,{key:se.id,questionId:se.questionId||"",questions:se.questions,onAnswer:C,disabled:p,answered:se.answered}):null;break;case"result":me=_.createElement(QC,{key:se.id,msgId:se.id,subtype:se.resultSubtype||"success",result:se.resultText,errors:se.resultErrors,numTurns:se.numTurns,durationMs:se.durationMs,totalCostUsd:se.totalCostUsd,fileStats:se.fileStats,undone:se.undone,isLatest:B===J,onReviewDiffs:r,onUndone:Se});break;case"error":me=_.createElement(WC,{key:se.id,text:se.text||"Unknown error"});break}me&&Q.push(me),B++}return Q},[i,N,F,C,G,r,p]);return{messages:i,isLoading:s,waitingForInput:c,onElementAttachedRef:D,onImageClickRef:U,submitMessage:S,stopStream:ee,messagesEndRef:I,renderedMessages:Ee,consoleEntries:g,handleConsoleEntryClick:V,dismissConsoleEntry:X,clearConsoleEntries:oe,attachedConsoleEntries:k,removeAttachedConsoleEntry:K,imageAttachments:j,setImageAttachments:T,removeImageAttachment:ue}}function zp({text:t,children:r}){return w.jsxs("div",{className:"relative group/tip",children:[r,w.jsx("div",{className:`invisible group-hover/tip:visible opacity-0 group-hover/tip:opacity-100 transition-opacity duration-100
|
|
298
303
|
absolute z-[60] px-2 py-1 text-[10px] leading-tight text-muted-foreground bg-card border border-border rounded shadow-lg
|
|
299
|
-
whitespace-nowrap pointer-events-none bottom-full mb-1.5 right-0`,children:t})]})}function
|
|
300
|
-
`)})();return
|
|
304
|
+
whitespace-nowrap pointer-events-none bottom-full mb-1.5 right-0`,children:t})]})}function nb({selectedModel:t,onHasMessagesChange:r,onStreamingChange:i,onReviewDiffs:l}){const{t:s}=Ot(),{messages:a,isLoading:c,waitingForInput:f,onElementAttachedRef:p,onImageClickRef:m,submitMessage:g,stopStream:y,messagesEndRef:k,renderedMessages:x,consoleEntries:j,handleConsoleEntryClick:T,dismissConsoleEntry:I,clearConsoleEntries:b,attachedConsoleEntries:$,removeAttachedConsoleEntry:D,imageAttachments:U,setImageAttachments:H,removeImageAttachment:R}=tb(t,l),V=_.useRef(null),K=_.useRef(null),G=_.useRef(new Map),X=_.useRef(0),[oe,M]=_.useState(!0),[re,Y]=_.useState(null),[q,fe]=_.useState(0),pe=()=>{var ce;(ce=V.current)==null||ce.click()},ee=ce=>{const we=ce.target.files;if(!(!we||we.length===0)){for(const ve of Array.from(we)){const Ae=new FileReader;Ae.onload=()=>{const Ve=Ae.result;H($e=>[...$e,{dataUrl:Ve,mediaType:ve.type,name:ve.name}])},Ae.readAsDataURL(ve)}ce.target.value=""}};_.useEffect(()=>{r==null||r(a.length>0)},[a.length,r]),_.useEffect(()=>{i==null||i(c)},[c,i]),_.useEffect(()=>{const ce=we=>{var ve;((ve=we.data)==null?void 0:ve.type)==="AWEL_SCREENSHOT_ANNOTATION"&&we.data.dataUrl&&H(Ae=>[...Ae,{dataUrl:we.data.dataUrl,mediaType:"image/png",name:"screenshot.png"}])};return window.addEventListener("message",ce),()=>window.removeEventListener("message",ce)},[H]);const ue=_.useCallback(()=>{const ce=K.current;if(!ce)return"";let we="";const ve=Ae=>{var Ve;if(Ae.nodeType===Node.TEXT_NODE)we+=Ae.textContent||"";else if(!((Ve=Ae.dataset)!=null&&Ve.chipId))for(const $e of Array.from(Ae.childNodes))ve($e)};for(const Ae of Array.from(ce.childNodes))ve(Ae);return we.trim()},[]),S=_.useCallback(()=>{const ce=K.current;if(!ce)return[];const we=[];return ce.querySelectorAll("[data-chip-id]").forEach(ve=>{const Ae=ve.dataset.chipId,Ve=G.current.get(Ae);Ve&&we.push(Ve)}),we},[]),N=_.useCallback(()=>{const ce=K.current;if(!ce)return;const we=new Set;ce.querySelectorAll("[data-chip-id]").forEach(ve=>{we.add(ve.dataset.chipId)});for(const ve of G.current.keys())we.has(ve)||G.current.delete(ve)},[]),F=_.useCallback(()=>{if(!K.current){M(!0);return}const we=ue(),ve=G.current.size>0;M(!we&&!ve)},[ue]),C=_.useCallback(()=>{K.current&&(K.current.innerHTML="",G.current.clear(),M(!0))},[]),Se=_.useCallback(()=>{const ce=K.current;if(!ce)return;const we=document.createRange();we.selectNodeContents(ce),we.collapse(!1);const ve=window.getSelection();ve==null||ve.removeAllRanges(),ve==null||ve.addRange(we)},[]),Ee=_.useCallback(ce=>{const we=K.current;if(!we)return;const ve=`${ce.tag}:${ce.source}:${ce.line}`;for(const[,at]of G.current)if(`${at.tag}:${at.source}:${at.line}`===ve)return;const Ae=`chip-${++X.current}`;G.current.set(Ae,ce);const Ve=ce.component||`<${ce.tag}>`,$e=document.createElement("span");$e.dataset.chipId=Ae,$e.contentEditable="false",$e.style.cssText=["display:inline-flex","align-items:center","gap:3px","padding:1px 6px","margin:0 2px","border-radius:4px","background:rgba(136,19,57,0.75)","color:#ffe4e6","font-size:11px","font-weight:500","line-height:18px","white-space:nowrap","user-select:all","vertical-align:baseline"].join(";");const st=document.createElement("span");st.textContent=Ve,$e.appendChild(st);const He=document.createElement("span");He.dataset.removeChip=Ae,He.textContent="×",He.style.cssText="cursor:pointer;opacity:0.6;font-size:13px;line-height:1;",He.onmouseenter=()=>{He.style.opacity="1"},He.onmouseleave=()=>{He.style.opacity="0.6"},$e.appendChild(He);const gt=window.getSelection();if(gt&>.rangeCount>0&&we.contains(gt.anchorNode)){const at=gt.getRangeAt(0);at.deleteContents(),at.insertNode($e),at.setStartAfter($e),at.collapse(!0),gt.removeAllRanges(),gt.addRange(at)}else we.appendChild($e);(!$e.nextSibling||$e.nextSibling.nodeType===Node.TEXT_NODE&&!$e.nextSibling.textContent)&&$e.after(document.createTextNode(" ")),F()},[F]);_.useEffect(()=>(p.current=ce=>{const we=K.current;we&&(ce.clearExisting&&(we.innerHTML="",G.current.clear()),Ee(ce.element),ce.suggestedText&&(ue().trim()||we.appendChild(document.createTextNode(ce.suggestedText))),F(),we.focus(),Se())},()=>{p.current=null}),[p,Ee,ue,F,Se]),_.useEffect(()=>(m.current=(ce,we)=>{Y(ce),fe(we)},()=>{m.current=null}),[m]);const Q=_.useCallback(()=>{N(),F();const ce=K.current;ce&&(ce.scrollTop=ce.scrollHeight)},[N,F]),B=_.useCallback(()=>{const ce=K.current;if(!ce)return;const we=[];let ve=!1;const Ae=Ve=>{var $e;if(Ve.nodeType===Node.TEXT_NODE){const st=Ve.textContent||"";st&&we.push({type:"text",text:st})}else if(($e=Ve.dataset)!=null&&$e.chipId){ve=!0;const st=Ve.dataset.chipId,He=G.current.get(st);if(He){const at=S().findIndex(En=>`${En.tag}:${En.source}:${En.line}`==`${He.tag}:${He.source}:${He.line}`);we.push({type:"element",elementIndex:at>=0?at:0})}}else for(const st of Array.from(Ve.childNodes))Ae(st)};for(const Ve of Array.from(ce.childNodes))Ae(Ve);return ve?we:void 0},[S]),J=_.useCallback(ce=>{ce==null||ce.preventDefault();const we=ue(),ve=S(),Ae=U.length>0;if(!(!!we||ve.length>0||Ae)||c)return;let $e=we;if(!$e){const He=[];ve.length>0&&He.push(s("attachedElements")),Ae&&He.push(U.length===1?s("attachedImage"):s("attachedImages")),$e=`(${s("seeAttached",{parts:He.join(" & ")})})`}const st=B();g($e,{elements:ve.length>0?ve:void 0,imageDataUrls:Ae?U.map(He=>He.dataUrl):void 0,contentSegments:st}),C()},[ue,S,B,U,c,g,C,s]),de=_.useCallback(ce=>{ce.key==="Enter"&&!ce.shiftKey&&(ce.preventDefault(),J())},[J]),se=_.useCallback(ce=>{ce.preventDefault();const we=ce.clipboardData.getData("text/plain");document.execCommand("insertText",!1,we)},[]),me=_.useCallback(ce=>{var Ae;const ve=ce.target.closest("[data-remove-chip]");if(ve){const Ve=ve.dataset.removeChip,$e=(Ae=K.current)==null?void 0:Ae.querySelector(`[data-chip-id="${Ve}"]`);$e&&($e.remove(),G.current.delete(Ve),F())}},[F]),_e=_.useCallback(()=>{window.parent.postMessage({type:"AWEL_INSPECT_FOR_ATTACH"},"*")},[]);return w.jsxs("div",{className:"flex flex-col relative h-full min-h-0 overflow-hidden",children:[w.jsxs("div",{className:"overflow-y-auto p-4 space-y-3 flex-1 min-h-0 break-words",children:[a.length===0?w.jsxs("div",{className:"flex flex-col items-center justify-center min-h-full gap-4 text-muted-foreground text-center",children:[w.jsx(nh,{className:"w-8 h-8 opacity-50"}),w.jsx("p",{className:"text-sm",children:s("emptyState")}),w.jsx("p",{className:"text-xs mt-1 text-muted-foreground",children:s("emptyStateHint")})]}):x,c&&w.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs",children:[w.jsx(th,{className:"w-3 h-3 animate-spin"}),w.jsx("span",{children:s("thinking")})]}),w.jsx("div",{ref:k})]}),U.length>0&&w.jsx("div",{className:"mx-4 mt-2 mb-2 flex flex-wrap gap-2",children:U.map((ce,we)=>w.jsxs("div",{className:"relative group",title:ce.name,children:[w.jsx("img",{src:ce.dataUrl,alt:ce.name,className:"w-10 h-10 rounded-lg border border-border/50 object-cover cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>{Y(U.map(ve=>ve.dataUrl)),fe(we)}}),w.jsx("button",{onClick:()=>R(we),className:"absolute -top-1.5 -right-1.5 hidden group-hover:flex items-center justify-center w-4 h-4 rounded-full bg-muted text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:w.jsx(fr,{className:"w-2.5 h-2.5"})})]},we))}),w.jsxs("div",{className:"border-t border-border flex items-end",children:[w.jsx("div",{className:"flex-1 min-w-0",children:w.jsx(mv,{entries:j,onEntryClick:T,onDismiss:I,onClearAll:b})}),w.jsxs("div",{className:"flex items-center gap-0.5 mr-4 mb-1.5",children:[w.jsx(zp,{text:s("inspectElement"),children:w.jsx("button",{type:"button",onClick:_e,className:`shrink-0 p-1 rounded transition-colors ${oe?"text-muted-foreground hover:text-foreground":"text-rose-600 dark:text-rose-400"}`,children:w.jsx(g1,{className:"w-4 h-4"})})}),w.jsx(zp,{text:s("attachImage"),children:w.jsx("button",{type:"button",onClick:pe,className:`shrink-0 p-1 rounded transition-colors ${U.length>0?"text-blue-600 dark:text-blue-400":"text-muted-foreground hover:text-foreground"}`,children:w.jsx(C1,{className:"w-4 h-4"})})})]})]}),w.jsx("input",{ref:V,type:"file",accept:"image/*",multiple:!0,onChange:ee,className:"hidden"}),w.jsxs("form",{onSubmit:J,children:[$.length>0&&w.jsx("div",{className:"px-4 pt-3 pb-0 flex items-center gap-1.5 flex-wrap",children:$.map(ce=>w.jsx(rb,{entry:ce,onRemove:D},ce.id))}),w.jsxs("div",{className:"flex gap-2 p-4 pt-1.5 items-end",children:[w.jsxs("div",{className:"flex-1 bg-card border border-border rounded-lg focus-within:ring-2 focus-within:ring-ring/50 focus-within:border-ring relative min-h-[36px]",children:[w.jsx("div",{ref:K,contentEditable:!c&&!f,suppressContentEditableWarning:!0,onInput:Q,onKeyDown:de,onPaste:se,onClick:me,className:`px-4 py-2 text-sm text-foreground focus:outline-none min-w-0 ${c||f?"opacity-50 cursor-not-allowed":""}`,style:{whiteSpace:"pre-wrap",wordBreak:"break-word",minHeight:"20px",maxHeight:"80px",overflowY:"auto"}}),oe&&w.jsx("div",{className:"absolute left-4 top-2 text-sm text-muted-foreground pointer-events-none",children:s("inputPlaceholder")})]}),c||f?w.jsx(cr,{type:"button",onClick:y,className:"bg-red-600 hover:bg-red-700 text-white",children:w.jsx(_1,{className:"w-3.5 h-3.5"})}):w.jsx(cr,{type:"submit",disabled:oe&&U.length===0,className:"bg-primary hover:bg-primary/90 text-primary-foreground",children:w.jsx(I1,{className:"w-4 h-4"})})]})]}),re&&w.jsx(yv,{images:re,currentIndex:q,onClose:()=>Y(null),onNavigate:fe})]})}function rb({entry:t,onRemove:r}){const[i,l]=_.useState(!1),s=t.level==="error",a=(()=>{const c=[t.message];if(t.sourceTrace&&t.sourceTrace.length>0){c.push("");for(const f of t.sourceTrace)c.push(` ${f.source}${f.line?`:${f.line}`:""}`)}else if(t.source){let f=t.source;t.line&&(f+=`:${t.line}`),t.column&&(f+=`:${t.column}`),c.push(`Source: ${f}`)}return t.count>1&&(c.push(""),c.push(`Occurred ${t.count} times`)),c.join(`
|
|
305
|
+
`)})();return w.jsxs("div",{className:"relative",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[w.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold cursor-default ${s?"bg-red-100 text-red-800 dark:bg-red-800 dark:text-red-100":"bg-yellow-100 text-yellow-800 dark:bg-yellow-800 dark:text-yellow-100"}`,children:[s?"error":"warning",w.jsx("span",{className:`font-normal text-[11px] truncate max-w-[160px] ${s?"text-red-600 dark:text-red-200":"text-yellow-600 dark:text-yellow-200"}`,children:t.message.length>40?t.message.slice(0,40)+"…":t.message}),w.jsx("button",{type:"button",onClick:()=>r(t.id),className:"text-current opacity-60 hover:opacity-100 transition-opacity",children:w.jsx(fr,{className:"w-3 h-3"})})]}),i&&w.jsx("div",{className:"absolute bottom-full left-0 mb-1.5 z-50 w-72 max-h-48 overflow-y-auto rounded-md border border-border bg-card p-2.5 text-xs text-foreground shadow-lg whitespace-pre-wrap break-words font-mono",children:a})]})}const Ma={"claude-code":"text-orange-600 dark:text-orange-400",anthropic:"text-orange-600 dark:text-orange-400",openai:"text-green-600 dark:text-green-400","google-ai":"text-blue-600 dark:text-blue-400","vercel-gateway":"text-purple-600 dark:text-purple-400",qwen:"text-cyan-600 dark:text-cyan-400",minimax:"text-pink-600 dark:text-pink-400"},Da={"claude-code":"Claude Code",anthropic:"Anthropic",openai:"OpenAI","google-ai":"Google AI","vercel-gateway":"Vercel AI Gateway",qwen:"Qwen",minimax:"MiniMax"},ib={anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY","google-ai":"GOOGLE_GENERATIVE_AI_API_KEY","vercel-gateway":"AI_GATEWAY_API_KEY",qwen:"DASHSCOPE_API_KEY",minimax:"MINIMAX_API_KEY"};function Ap({text:t,children:r,position:i="bottom"}){return w.jsxs("div",{className:"relative group/tip",children:[r,w.jsx("div",{className:`invisible group-hover/tip:visible opacity-0 group-hover/tip:opacity-100 transition-opacity duration-100
|
|
301
306
|
absolute z-[60] px-2 py-1 text-[10px] leading-tight text-muted-foreground bg-card border border-border rounded shadow-lg
|
|
302
307
|
whitespace-nowrap pointer-events-none
|
|
303
|
-
${i==="bottom"?"top-full mt-1.5 left-1/2 -translate-x-1/2":"bottom-full mb-1.5 left-1/2 -translate-x-1/2"}`,children:t})]})}function YC({provider:t}){const[r,i]=R.useState(!1),l=GC[t];if(!l)return null;const s=`export ${l}=your-key-here`,a=async c=>{c.stopPropagation();try{await navigator.clipboard.writeText(s),i(!0),setTimeout(()=>i(!1),1500)}catch{}};return k.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 mt-1 px-1.5 py-0.5 rounded bg-muted/80 hover:bg-accent/80 transition-colors text-[10px] font-mono text-muted-foreground hover:text-foreground w-fit",children:[k.jsx("span",{className:"truncate max-w-[220px]",children:s}),r?k.jsx(r1,{className:"w-2.5 h-2.5 text-emerald-600 dark:text-emerald-400 flex-shrink-0"}):k.jsx(s1,{className:"w-2.5 h-2.5 flex-shrink-0"})]})}function XC({selectedModel:t,onModelChange:r,chatHasMessages:i}){const{t:l}=Ot(),[s,a]=R.useState([]),[c,f]=R.useState(!1),[p,m]=R.useState("all"),g=s.find(H=>H.id===t),y=(g==null?void 0:g.provider)==="claude-code",w=i&&y;R.useEffect(()=>{async function H(){try{const $=await(await fetch("/api/models")).json();if($.models&&Array.isArray($.models)){a($.models);const J=$.models.find(G=>G.id===t);if($.models.length>0&&(!J||!J.available)){const G=$.models.find(Y=>Y.available);G&&r(G.id)}}}catch{}}H()},[]);const x=R.useCallback(H=>{H.key==="Escape"&&f(!1)},[]);R.useEffect(()=>{if(c)return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,x]);const N=s.filter(H=>H.available),L=s.filter(H=>!H.available),_=N.reduce((H,I)=>(H[I.provider]||(H[I.provider]=[]),H[I.provider].push(I),H),{}),j=[...new Set(L.map(H=>H.provider))],V=Object.keys(_),F=p==="all"?_:{[p]:_[p]||[]};if(s.length===0)return null;const B=k.jsxs("button",{onClick:()=>{w||(m("all"),f(!0))},disabled:w,className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md border text-xs transition-colors max-w-[10rem] ${w?"bg-muted/50 border-muted/50 cursor-default text-muted-foreground":"bg-muted/80 hover:bg-accent/80 border-border/50 text-foreground"}`,children:[g&&k.jsx("span",{className:`truncate ${w?"text-muted-foreground":Ma[g.provider]}`,children:g.label}),!g&&k.jsx("span",{children:l("selectModel")}),!w&&k.jsx(o1,{className:"w-3 h-3 text-muted-foreground flex-shrink-0"})]});return k.jsxs("div",{className:"relative",children:[w?k.jsx(Ap,{text:l("modelSwitchDisabled"),children:B}):B,c&&!w&&k.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:H=>{H.target===H.currentTarget&&f(!1)},children:k.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-md shadow-xl mx-4 flex flex-col max-h-[70vh]",children:[k.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[k.jsx("h3",{className:"text-sm font-medium text-foreground",children:l("selectModel")}),k.jsx("button",{onClick:()=>f(!1),className:"text-muted-foreground hover:text-foreground transition-colors",children:k.jsx(fr,{className:"w-4 h-4"})})]}),k.jsx("div",{className:"px-4 py-2.5 border-b border-border",children:k.jsxs("div",{className:"relative",children:[k.jsxs("select",{value:p,onChange:H=>m(H.target.value),className:"w-full text-xs bg-muted border border-border rounded-md px-2.5 py-1.5 pr-7 text-foreground outline-none focus:border-ring transition-colors appearance-none",children:[k.jsx("option",{value:"all",children:l("allProviders","All Providers")}),V.map(H=>k.jsx("option",{value:H,children:Da[H]||H},H))]}),k.jsx(Sl,{className:"w-3.5 h-3.5 text-muted-foreground absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none"})]})}),k.jsxs("div",{className:"overflow-y-auto flex-1",children:[Object.entries(F).map(([H,I])=>k.jsxs("div",{children:[k.jsx("div",{className:`px-4 py-1.5 text-[10px] font-medium uppercase tracking-wider bg-card/50 sticky top-0 ${Ma[H]||"text-muted-foreground"}`,children:Da[H]||H}),I.map($=>{const J=i&&!y&&$.provider==="claude-code",G=k.jsxs("button",{disabled:J,onClick:()=>{J||(r($.id),f(!1))},className:`w-full text-left px-4 py-2 text-xs transition-colors ${J?"text-muted-foreground cursor-not-allowed":$.id===t?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`,children:[k.jsx("span",{className:J?"text-muted-foreground":Ma[$.provider],children:$.label}),J&&k.jsx(Uf,{className:"w-3 h-3 text-muted-foreground inline ml-1.5"}),$.id===t&&k.jsx("span",{className:"ml-2 text-[10px] text-muted-foreground",children:"✓"})]},$.id);return J?k.jsx(Ap,{text:l("modelSwitchDisabled"),position:"top",children:G},$.id):G})]},H)),p==="all"&&j.length>0&&k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"flex items-center gap-2 px-4 py-2",children:[k.jsx("div",{className:"flex-1 border-t border-border"}),k.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Unavailable"}),k.jsx("div",{className:"flex-1 border-t border-border"})]}),j.map(H=>k.jsxs("div",{className:"px-4 py-2 text-xs text-muted-foreground",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx(Uf,{className:"w-3 h-3 text-muted-foreground"}),k.jsx("span",{children:Da[H]||H}),k.jsx("span",{className:"text-[10px] text-muted-foreground",children:H==="claude-code"?"CLI not installed":"API key required"})]}),k.jsx(YC,{provider:H})]},H))]})]})]})})]})}function hn(){}hn.prototype={diff:function(r,i){var l,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.callback;typeof s=="function"&&(a=s,s={});var c=this;function f(B){return B=c.postProcess(B,s),a?(setTimeout(function(){a(B)},0),!0):B}r=this.castInput(r,s),i=this.castInput(i,s),r=this.removeEmpty(this.tokenize(r,s)),i=this.removeEmpty(this.tokenize(i,s));var p=i.length,m=r.length,g=1,y=p+m;s.maxEditLength!=null&&(y=Math.min(y,s.maxEditLength));var w=(l=s.timeout)!==null&&l!==void 0?l:1/0,x=Date.now()+w,N=[{oldPos:-1,lastComponent:void 0}],L=this.extractCommon(N[0],i,r,0,s);if(N[0].oldPos+1>=m&&L+1>=p)return f(Mp(c,N[0].lastComponent,i,r,c.useLongestToken));var _=-1/0,j=1/0;function V(){for(var B=Math.max(_,-g);B<=Math.min(j,g);B+=2){var H=void 0,I=N[B-1],$=N[B+1];I&&(N[B-1]=void 0);var J=!1;if($){var G=$.oldPos-B;J=$&&0<=G&&G<p}var Y=I&&I.oldPos+1<m;if(!J&&!Y){N[B]=void 0;continue}if(!Y||J&&I.oldPos<$.oldPos?H=c.addToPath($,!0,!1,0,s):H=c.addToPath(I,!1,!0,1,s),L=c.extractCommon(H,i,r,B,s),H.oldPos+1>=m&&L+1>=p)return f(Mp(c,H.lastComponent,i,r,c.useLongestToken));N[B]=H,H.oldPos+1>=m&&(j=Math.min(j,B-1)),L+1>=p&&(_=Math.max(_,B+1))}g++}if(a)(function B(){setTimeout(function(){if(g>y||Date.now()>x)return a();V()||B()},0)})();else for(;g<=y&&Date.now()<=x;){var F=V();if(F)return F}},addToPath:function(r,i,l,s,a){var c=r.lastComponent;return c&&!a.oneChangePerToken&&c.added===i&&c.removed===l?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:i,removed:l,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:i,removed:l,previousComponent:c}}},extractCommon:function(r,i,l,s,a){for(var c=i.length,f=l.length,p=r.oldPos,m=p-s,g=0;m+1<c&&p+1<f&&this.equals(l[p+1],i[m+1],a);)m++,p++,g++,a.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return g&&!a.oneChangePerToken&&(r.lastComponent={count:g,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=p,m},equals:function(r,i,l){return l.comparator?l.comparator(r,i):r===i||l.ignoreCase&&r.toLowerCase()===i.toLowerCase()},removeEmpty:function(r){for(var i=[],l=0;l<r.length;l++)r[l]&&i.push(r[l]);return i},castInput:function(r){return r},tokenize:function(r){return Array.from(r)},join:function(r){return r.join("")},postProcess:function(r){return r}};function Mp(t,r,i,l,s){for(var a=[],c;r;)a.push(r),c=r.previousComponent,delete r.previousComponent,r=c;a.reverse();for(var f=0,p=a.length,m=0,g=0;f<p;f++){var y=a[f];if(y.removed)y.value=t.join(l.slice(g,g+y.count)),g+=y.count;else{if(!y.added&&s){var w=i.slice(m,m+y.count);w=w.map(function(x,N){var L=l[g+N];return L.length>x.length?L:x}),y.value=t.join(w)}else y.value=t.join(i.slice(m,m+y.count));m+=y.count,y.added||(g+=y.count)}}return a}function Dp(t,r){var i;for(i=0;i<t.length&&i<r.length;i++)if(t[i]!=r[i])return t.slice(0,i);return t.slice(0,i)}function Fp(t,r){var i;if(!t||!r||t[t.length-1]!=r[r.length-1])return"";for(i=0;i<t.length&&i<r.length;i++)if(t[t.length-(i+1)]!=r[r.length-(i+1)])return t.slice(-i);return t.slice(-i)}function nu(t,r,i){if(t.slice(0,r.length)!=r)throw Error("string ".concat(JSON.stringify(t)," doesn't start with prefix ").concat(JSON.stringify(r),"; this is a bug"));return i+t.slice(r.length)}function ru(t,r,i){if(!r)return t+i;if(t.slice(-r.length)!=r)throw Error("string ".concat(JSON.stringify(t)," doesn't end with suffix ").concat(JSON.stringify(r),"; this is a bug"));return t.slice(0,-r.length)+i}function Fi(t,r){return nu(t,r,"")}function dl(t,r){return ru(t,r,"")}function $p(t,r){return r.slice(0,JC(t,r))}function JC(t,r){var i=0;t.length>r.length&&(i=t.length-r.length);var l=r.length;t.length<r.length&&(l=t.length);var s=Array(l),a=0;s[0]=0;for(var c=1;c<l;c++){for(r[c]==r[a]?s[c]=s[a]:s[c]=a;a>0&&r[c]!=r[a];)a=s[a];r[c]==r[a]&&a++}a=0;for(var f=i;f<t.length;f++){for(;a>0&&t[f]!=r[a];)a=s[a];t[f]==r[a]&&a++}return a}var xl="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",ZC=new RegExp("[".concat(xl,"]+|\\s+|[^").concat(xl,"]"),"ug"),Nl=new hn;Nl.equals=function(t,r,i){return i.ignoreCase&&(t=t.toLowerCase(),r=r.toLowerCase()),t.trim()===r.trim()};Nl.tokenize=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;if(r.intlSegmenter){if(r.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');i=Array.from(r.intlSegmenter.segment(t),function(a){return a.segment})}else i=t.match(ZC)||[];var l=[],s=null;return i.forEach(function(a){/\s/.test(a)?s==null?l.push(a):l.push(l.pop()+a):/\s/.test(s)?l[l.length-1]==s?l.push(l.pop()+a):l.push(s+a):l.push(a),s=a}),l};Nl.join=function(t){return t.map(function(r,i){return i==0?r:r.replace(/^\s+/,"")}).join("")};Nl.postProcess=function(t,r){if(!t||r.oneChangePerToken)return t;var i=null,l=null,s=null;return t.forEach(function(a){a.added?l=a:a.removed?s=a:((l||s)&&Up(i,s,l,a),i=a,l=null,s=null)}),(l||s)&&Up(i,s,l,null),t};function Up(t,r,i,l){if(r&&i){var s=r.value.match(/^\s*/)[0],a=r.value.match(/\s*$/)[0],c=i.value.match(/^\s*/)[0],f=i.value.match(/\s*$/)[0];if(t){var p=Dp(s,c);t.value=ru(t.value,c,p),r.value=Fi(r.value,p),i.value=Fi(i.value,p)}if(l){var m=Fp(a,f);l.value=nu(l.value,f,m),r.value=dl(r.value,m),i.value=dl(i.value,m)}}else if(i)t&&(i.value=i.value.replace(/^\s*/,"")),l&&(l.value=l.value.replace(/^\s*/,""));else if(t&&l){var g=l.value.match(/^\s*/)[0],y=r.value.match(/^\s*/)[0],w=r.value.match(/\s*$/)[0],x=Dp(g,y);r.value=Fi(r.value,x);var N=Fp(Fi(g,x),w);r.value=dl(r.value,N),l.value=nu(l.value,g,N),t.value=ru(t.value,g,g.slice(0,g.length-N.length))}else if(l){var L=l.value.match(/^\s*/)[0],_=r.value.match(/\s*$/)[0],j=$p(_,L);r.value=dl(r.value,j)}else if(t){var V=t.value.match(/\s*$/)[0],F=r.value.match(/^\s*/)[0],B=$p(V,F);r.value=Fi(r.value,B)}}var eb=new hn;eb.tokenize=function(t){var r=new RegExp("(\\r?\\n)|[".concat(xl,"]+|[^\\S\\n\\r]+|[^").concat(xl,"]"),"ug");return t.match(r)||[]};var Pl=new hn;Pl.tokenize=function(t,r){r.stripTrailingCr&&(t=t.replace(/\r\n/g,`
|
|
304
|
-
`));var i=[],l=t.split(/(\n|\r\n)/);l[l.length-1]||l.pop();for(var s=0;s<l.length;s++){var a=l[s];s%2&&!r.newlineIsToken?i[i.length-1]+=a:i.push(a)}return i};
|
|
308
|
+
${i==="bottom"?"top-full mt-1.5 left-1/2 -translate-x-1/2":"bottom-full mb-1.5 left-1/2 -translate-x-1/2"}`,children:t})]})}function ob({provider:t}){const[r,i]=_.useState(!1),l=ib[t];if(!l)return null;const s=`export ${l}=your-key-here`,a=async c=>{c.stopPropagation();try{await navigator.clipboard.writeText(s),i(!0),setTimeout(()=>i(!1),1500)}catch{}};return w.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 mt-1 px-1.5 py-0.5 rounded bg-muted/80 hover:bg-accent/80 transition-colors text-[10px] font-mono text-muted-foreground hover:text-foreground w-fit",children:[w.jsx("span",{className:"truncate max-w-[220px]",children:s}),r?w.jsx(d1,{className:"w-2.5 h-2.5 text-emerald-600 dark:text-emerald-400 flex-shrink-0"}):w.jsx(m1,{className:"w-2.5 h-2.5 flex-shrink-0"})]})}function lb({selectedModel:t,onModelChange:r,chatHasMessages:i}){const{t:l}=Ot(),[s,a]=_.useState([]),[c,f]=_.useState(!1),[p,m]=_.useState("all"),g=s.find(H=>H.id===t),y=(g==null?void 0:g.provider)==="claude-code",k=i&&y;_.useEffect(()=>{async function H(){try{const V=await(await fetch("/api/models")).json();if(V.models&&Array.isArray(V.models)){a(V.models);const K=V.models.find(G=>G.id===t);if(V.models.length>0&&(!K||!K.available)){const G=V.models.find(X=>X.available);G&&r(G.id)}}}catch{}}H()},[]);const x=_.useCallback(H=>{H.key==="Escape"&&f(!1)},[]);_.useEffect(()=>{if(c)return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,x]);const j=s.filter(H=>H.available),T=s.filter(H=>!H.available),I=j.reduce((H,R)=>(H[R.provider]||(H[R.provider]=[]),H[R.provider].push(R),H),{}),b=[...new Set(T.map(H=>H.provider))],$=Object.keys(I),D=p==="all"?I:{[p]:I[p]||[]};if(s.length===0)return null;const U=w.jsxs("button",{onClick:()=>{k||(m("all"),f(!0))},disabled:k,className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md border text-xs transition-colors max-w-[10rem] ${k?"bg-muted/50 border-muted/50 cursor-default text-muted-foreground":"bg-muted/80 hover:bg-accent/80 border-border/50 text-foreground"}`,children:[g&&w.jsx("span",{className:`truncate ${k?"text-muted-foreground":Ma[g.provider]}`,children:g.label}),!g&&w.jsx("span",{children:l("selectModel")}),!k&&w.jsx(p1,{className:"w-3 h-3 text-muted-foreground flex-shrink-0"})]});return w.jsxs("div",{className:"relative",children:[k?w.jsx(Ap,{text:l("modelSwitchDisabled"),children:U}):U,c&&!k&&w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:H=>{H.target===H.currentTarget&&f(!1)},children:w.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-md shadow-xl mx-4 flex flex-col max-h-[70vh]",children:[w.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[w.jsx("h3",{className:"text-sm font-medium text-foreground",children:l("selectModel")}),w.jsx("button",{onClick:()=>f(!1),className:"text-muted-foreground hover:text-foreground transition-colors",children:w.jsx(fr,{className:"w-4 h-4"})})]}),w.jsx("div",{className:"px-4 py-2.5 border-b border-border",children:w.jsxs("div",{className:"relative",children:[w.jsxs("select",{value:p,onChange:H=>m(H.target.value),className:"w-full text-xs bg-muted border border-border rounded-md px-2.5 py-1.5 pr-7 text-foreground outline-none focus:border-ring transition-colors appearance-none",children:[w.jsx("option",{value:"all",children:l("allProviders","All Providers")}),$.map(H=>w.jsx("option",{value:H,children:Da[H]||H},H))]}),w.jsx(Sl,{className:"w-3.5 h-3.5 text-muted-foreground absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none"})]})}),w.jsxs("div",{className:"overflow-y-auto flex-1",children:[Object.entries(D).map(([H,R])=>w.jsxs("div",{children:[w.jsx("div",{className:`px-4 py-1.5 text-[10px] font-medium uppercase tracking-wider bg-card/50 sticky top-0 ${Ma[H]||"text-muted-foreground"}`,children:Da[H]||H}),R.map(V=>{const K=i&&!y&&V.provider==="claude-code",G=w.jsxs("button",{disabled:K,onClick:()=>{K||(r(V.id),f(!1))},className:`w-full text-left px-4 py-2 text-xs transition-colors ${K?"text-muted-foreground cursor-not-allowed":V.id===t?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`,children:[w.jsx("span",{className:K?"text-muted-foreground":Ma[V.provider],children:V.label}),K&&w.jsx(Uf,{className:"w-3 h-3 text-muted-foreground inline ml-1.5"}),V.id===t&&w.jsx("span",{className:"ml-2 text-[10px] text-muted-foreground",children:"✓"})]},V.id);return K?w.jsx(Ap,{text:l("modelSwitchDisabled"),position:"top",children:G},V.id):G})]},H)),p==="all"&&b.length>0&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex items-center gap-2 px-4 py-2",children:[w.jsx("div",{className:"flex-1 border-t border-border"}),w.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Unavailable"}),w.jsx("div",{className:"flex-1 border-t border-border"})]}),b.map(H=>w.jsxs("div",{className:"px-4 py-2 text-xs text-muted-foreground",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Uf,{className:"w-3 h-3 text-muted-foreground"}),w.jsx("span",{children:Da[H]||H}),w.jsx("span",{className:"text-[10px] text-muted-foreground",children:H==="claude-code"?"CLI not installed":"API key required"})]}),w.jsx(ob,{provider:H})]},H))]})]})]})})]})}function hn(){}hn.prototype={diff:function(r,i){var l,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.callback;typeof s=="function"&&(a=s,s={});var c=this;function f(U){return U=c.postProcess(U,s),a?(setTimeout(function(){a(U)},0),!0):U}r=this.castInput(r,s),i=this.castInput(i,s),r=this.removeEmpty(this.tokenize(r,s)),i=this.removeEmpty(this.tokenize(i,s));var p=i.length,m=r.length,g=1,y=p+m;s.maxEditLength!=null&&(y=Math.min(y,s.maxEditLength));var k=(l=s.timeout)!==null&&l!==void 0?l:1/0,x=Date.now()+k,j=[{oldPos:-1,lastComponent:void 0}],T=this.extractCommon(j[0],i,r,0,s);if(j[0].oldPos+1>=m&&T+1>=p)return f(Mp(c,j[0].lastComponent,i,r,c.useLongestToken));var I=-1/0,b=1/0;function $(){for(var U=Math.max(I,-g);U<=Math.min(b,g);U+=2){var H=void 0,R=j[U-1],V=j[U+1];R&&(j[U-1]=void 0);var K=!1;if(V){var G=V.oldPos-U;K=V&&0<=G&&G<p}var X=R&&R.oldPos+1<m;if(!K&&!X){j[U]=void 0;continue}if(!X||K&&R.oldPos<V.oldPos?H=c.addToPath(V,!0,!1,0,s):H=c.addToPath(R,!1,!0,1,s),T=c.extractCommon(H,i,r,U,s),H.oldPos+1>=m&&T+1>=p)return f(Mp(c,H.lastComponent,i,r,c.useLongestToken));j[U]=H,H.oldPos+1>=m&&(b=Math.min(b,U-1)),T+1>=p&&(I=Math.max(I,U+1))}g++}if(a)(function U(){setTimeout(function(){if(g>y||Date.now()>x)return a();$()||U()},0)})();else for(;g<=y&&Date.now()<=x;){var D=$();if(D)return D}},addToPath:function(r,i,l,s,a){var c=r.lastComponent;return c&&!a.oneChangePerToken&&c.added===i&&c.removed===l?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:i,removed:l,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:i,removed:l,previousComponent:c}}},extractCommon:function(r,i,l,s,a){for(var c=i.length,f=l.length,p=r.oldPos,m=p-s,g=0;m+1<c&&p+1<f&&this.equals(l[p+1],i[m+1],a);)m++,p++,g++,a.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return g&&!a.oneChangePerToken&&(r.lastComponent={count:g,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=p,m},equals:function(r,i,l){return l.comparator?l.comparator(r,i):r===i||l.ignoreCase&&r.toLowerCase()===i.toLowerCase()},removeEmpty:function(r){for(var i=[],l=0;l<r.length;l++)r[l]&&i.push(r[l]);return i},castInput:function(r){return r},tokenize:function(r){return Array.from(r)},join:function(r){return r.join("")},postProcess:function(r){return r}};function Mp(t,r,i,l,s){for(var a=[],c;r;)a.push(r),c=r.previousComponent,delete r.previousComponent,r=c;a.reverse();for(var f=0,p=a.length,m=0,g=0;f<p;f++){var y=a[f];if(y.removed)y.value=t.join(l.slice(g,g+y.count)),g+=y.count;else{if(!y.added&&s){var k=i.slice(m,m+y.count);k=k.map(function(x,j){var T=l[g+j];return T.length>x.length?T:x}),y.value=t.join(k)}else y.value=t.join(i.slice(m,m+y.count));m+=y.count,y.added||(g+=y.count)}}return a}function Dp(t,r){var i;for(i=0;i<t.length&&i<r.length;i++)if(t[i]!=r[i])return t.slice(0,i);return t.slice(0,i)}function Fp(t,r){var i;if(!t||!r||t[t.length-1]!=r[r.length-1])return"";for(i=0;i<t.length&&i<r.length;i++)if(t[t.length-(i+1)]!=r[r.length-(i+1)])return t.slice(-i);return t.slice(-i)}function nu(t,r,i){if(t.slice(0,r.length)!=r)throw Error("string ".concat(JSON.stringify(t)," doesn't start with prefix ").concat(JSON.stringify(r),"; this is a bug"));return i+t.slice(r.length)}function ru(t,r,i){if(!r)return t+i;if(t.slice(-r.length)!=r)throw Error("string ".concat(JSON.stringify(t)," doesn't end with suffix ").concat(JSON.stringify(r),"; this is a bug"));return t.slice(0,-r.length)+i}function Fi(t,r){return nu(t,r,"")}function dl(t,r){return ru(t,r,"")}function $p(t,r){return r.slice(0,sb(t,r))}function sb(t,r){var i=0;t.length>r.length&&(i=t.length-r.length);var l=r.length;t.length<r.length&&(l=t.length);var s=Array(l),a=0;s[0]=0;for(var c=1;c<l;c++){for(r[c]==r[a]?s[c]=s[a]:s[c]=a;a>0&&r[c]!=r[a];)a=s[a];r[c]==r[a]&&a++}a=0;for(var f=i;f<t.length;f++){for(;a>0&&t[f]!=r[a];)a=s[a];t[f]==r[a]&&a++}return a}var xl="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",ab=new RegExp("[".concat(xl,"]+|\\s+|[^").concat(xl,"]"),"ug"),Nl=new hn;Nl.equals=function(t,r,i){return i.ignoreCase&&(t=t.toLowerCase(),r=r.toLowerCase()),t.trim()===r.trim()};Nl.tokenize=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;if(r.intlSegmenter){if(r.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');i=Array.from(r.intlSegmenter.segment(t),function(a){return a.segment})}else i=t.match(ab)||[];var l=[],s=null;return i.forEach(function(a){/\s/.test(a)?s==null?l.push(a):l.push(l.pop()+a):/\s/.test(s)?l[l.length-1]==s?l.push(l.pop()+a):l.push(s+a):l.push(a),s=a}),l};Nl.join=function(t){return t.map(function(r,i){return i==0?r:r.replace(/^\s+/,"")}).join("")};Nl.postProcess=function(t,r){if(!t||r.oneChangePerToken)return t;var i=null,l=null,s=null;return t.forEach(function(a){a.added?l=a:a.removed?s=a:((l||s)&&Up(i,s,l,a),i=a,l=null,s=null)}),(l||s)&&Up(i,s,l,null),t};function Up(t,r,i,l){if(r&&i){var s=r.value.match(/^\s*/)[0],a=r.value.match(/\s*$/)[0],c=i.value.match(/^\s*/)[0],f=i.value.match(/\s*$/)[0];if(t){var p=Dp(s,c);t.value=ru(t.value,c,p),r.value=Fi(r.value,p),i.value=Fi(i.value,p)}if(l){var m=Fp(a,f);l.value=nu(l.value,f,m),r.value=dl(r.value,m),i.value=dl(i.value,m)}}else if(i)t&&(i.value=i.value.replace(/^\s*/,"")),l&&(l.value=l.value.replace(/^\s*/,""));else if(t&&l){var g=l.value.match(/^\s*/)[0],y=r.value.match(/^\s*/)[0],k=r.value.match(/\s*$/)[0],x=Dp(g,y);r.value=Fi(r.value,x);var j=Fp(Fi(g,x),k);r.value=dl(r.value,j),l.value=nu(l.value,g,j),t.value=ru(t.value,g,g.slice(0,g.length-j.length))}else if(l){var T=l.value.match(/^\s*/)[0],I=r.value.match(/\s*$/)[0],b=$p(I,T);r.value=dl(r.value,b)}else if(t){var $=t.value.match(/\s*$/)[0],D=r.value.match(/^\s*/)[0],U=$p($,D);r.value=Fi(r.value,U)}}var ub=new hn;ub.tokenize=function(t){var r=new RegExp("(\\r?\\n)|[".concat(xl,"]+|[^\\S\\n\\r]+|[^").concat(xl,"]"),"ug");return t.match(r)||[]};var jl=new hn;jl.tokenize=function(t,r){r.stripTrailingCr&&(t=t.replace(/\r\n/g,`
|
|
309
|
+
`));var i=[],l=t.split(/(\n|\r\n)/);l[l.length-1]||l.pop();for(var s=0;s<l.length;s++){var a=l[s];s%2&&!r.newlineIsToken?i[i.length-1]+=a:i.push(a)}return i};jl.equals=function(t,r,i){return i.ignoreWhitespace?((!i.newlineIsToken||!t.includes(`
|
|
305
310
|
`))&&(t=t.trim()),(!i.newlineIsToken||!r.includes(`
|
|
306
311
|
`))&&(r=r.trim())):i.ignoreNewlineAtEof&&!i.newlineIsToken&&(t.endsWith(`
|
|
307
312
|
`)&&(t=t.slice(0,-1)),r.endsWith(`
|
|
308
|
-
`)&&(r=r.slice(0,-1))),hn.prototype.equals.call(this,t,r,i)};function Bp(t,r,i){return
|
|
309
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ki=new hn;Ki.useLongestToken=!0;Ki.tokenize=
|
|
310
|
-
`)?
|
|
313
|
+
`)&&(r=r.slice(0,-1))),hn.prototype.equals.call(this,t,r,i)};function Bp(t,r,i){return jl.diff(t,r,i)}var cb=new hn;cb.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var db=new hn;db.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function Vp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);r&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,l)}return i}function Hp(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Vp(Object(i),!0).forEach(function(l){hb(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vp(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function fb(t,r){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function pb(t){var r=fb(t,"string");return typeof r=="symbol"?r:r+""}function iu(t){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},iu(t)}function hb(t,r,i){return r=pb(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Fa(t){return mb(t)||gb(t)||yb(t)||xb()}function mb(t){if(Array.isArray(t))return ou(t)}function gb(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yb(t,r){if(t){if(typeof t=="string")return ou(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ou(t,r)}}function ou(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,l=new Array(r);i<r;i++)l[i]=t[i];return l}function xb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
314
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ki=new hn;Ki.useLongestToken=!0;Ki.tokenize=jl.tokenize;Ki.castInput=function(t,r){var i=r.undefinedReplacement,l=r.stringifyReplacer,s=l===void 0?function(a,c){return typeof c>"u"?i:c}:l;return typeof t=="string"?t:JSON.stringify(lu(t,null,null,s),s," ")};Ki.equals=function(t,r,i){return hn.prototype.equals.call(Ki,t.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"),i)};function lu(t,r,i,l,s){r=r||[],i=i||[],l&&(t=l(s,t));var a;for(a=0;a<r.length;a+=1)if(r[a]===t)return i[a];var c;if(Object.prototype.toString.call(t)==="[object Array]"){for(r.push(t),c=new Array(t.length),i.push(c),a=0;a<t.length;a+=1)c[a]=lu(t[a],r,i,l,s);return r.pop(),i.pop(),c}if(t&&t.toJSON&&(t=t.toJSON()),iu(t)==="object"&&t!==null){r.push(t),c={},i.push(c);var f=[],p;for(p in t)Object.prototype.hasOwnProperty.call(t,p)&&f.push(p);for(f.sort(),a=0;a<f.length;a+=1)p=f[a],c[p]=lu(t[p],r,i,l,p);r.pop(),i.pop()}else c=t;return c}var su=new hn;su.tokenize=function(t){return t.slice()};su.join=su.removeEmpty=function(t){return t};function vb(t,r,i,l,s,a,c){if(c||(c={}),typeof c=="function"&&(c={callback:c}),typeof c.context>"u"&&(c.context=4),c.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(c.callback){var f=c,p=f.callback;Bp(i,l,Hp(Hp({},c),{},{callback:function(y){var k=m(y);p(k)}}))}else return m(Bp(i,l,c));function m(g){if(!g)return;g.push({value:"",lines:[]});function y(K){return K.map(function(G){return" "+G})}for(var k=[],x=0,j=0,T=[],I=1,b=1,$=function(){var G=g[D],X=G.lines||wb(G.value);if(G.lines=X,G.added||G.removed){var oe;if(!x){var M=g[D-1];x=I,j=b,M&&(T=c.context>0?y(M.lines.slice(-c.context)):[],x-=T.length,j-=T.length)}(oe=T).push.apply(oe,Fa(X.map(function(pe){return(G.added?"+":"-")+pe}))),G.added?b+=X.length:I+=X.length}else{if(x)if(X.length<=c.context*2&&D<g.length-2){var re;(re=T).push.apply(re,Fa(y(X)))}else{var Y,q=Math.min(X.length,c.context);(Y=T).push.apply(Y,Fa(y(X.slice(0,q))));var fe={oldStart:x,oldLines:I-x+q,newStart:j,newLines:b-j+q,lines:T};k.push(fe),x=0,j=0,T=[]}I+=X.length,b+=X.length}},D=0;D<g.length;D++)$();for(var U=0,H=k;U<H.length;U++)for(var R=H[U],V=0;V<R.lines.length;V++)R.lines[V].endsWith(`
|
|
315
|
+
`)?R.lines[V]=R.lines[V].slice(0,-1):(R.lines.splice(V+1,0,"\"),V++);return{oldFileName:t,newFileName:r,oldHeader:s,newHeader:a,hunks:k}}}function wb(t){var r=t.endsWith(`
|
|
311
316
|
`),i=t.split(`
|
|
312
317
|
`).map(function(l){return l+`
|
|
313
|
-
`});return r?i.pop():i.push(i.pop().slice(0,-1)),i}function
|
|
318
|
+
`});return r?i.pop():i.push(i.pop().slice(0,-1)),i}const Wp=[{id:"vscode",name:"VS Code",url:t=>`vscode://file/${t}`},{id:"cursor",name:"Cursor",url:t=>`cursor://file/${t}`},{id:"windsurf",name:"Windsurf",url:t=>`windsurf://file/${t}`},{id:"zed",name:"Zed",url:t=>`zed://file/${t}`},{id:"sublime",name:"Sublime Text",url:t=>`subl://open?url=file:///${t}`},{id:"jetbrains",name:"JetBrains",url:t=>`jetbrains://open?file=${t}`}],Yh="awel-preferred-editor";function kb(){try{return localStorage.getItem(Yh)??""}catch{return""}}function Sb(t){try{localStorage.setItem(Yh,t)}catch{}}function Cb({diffs:t,onClose:r}){const{t:i}=Ot(),[l,s]=_.useState(0),[a,c]=_.useState(kb),[f,p]=_.useState(null);_.useEffect(()=>{fetch("/api/project-info").then(b=>b.json()).then(b=>p(b.projectCwd)).catch(()=>{})},[]);const m=_.useCallback(b=>{c(b),Sb(b)},[]),g=_.useCallback(()=>{if(!f||!a)return;const b=Wp.find(D=>D.id===a);if(!b)return;const $=`${f}/${t[l].relativePath}`;window.open(b.url($),"_self")},[f,a,t,l]),y=t[l],k=vb(y.relativePath,y.relativePath,y.originalContent,y.currentContent,"","",{context:3}),x=_.useCallback(b=>{b.key==="Escape"?r():b.key==="ArrowDown"?(b.preventDefault(),s($=>Math.min($+1,t.length-1))):b.key==="ArrowUp"&&(b.preventDefault(),s($=>Math.max($-1,0)))},[r,t.length]);_.useEffect(()=>(document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)),[x]);const j=b=>{const $=b.split("/");return $[$.length-1]},T=b=>{const $=b.split("/");return $.length>1?$.slice(0,-1).join("/"):""},I=b=>!b.existed&&b.existsNow;return w.jsx("div",{className:"fixed inset-0 z-50",onClick:b=>{b.stopPropagation(),r()},children:w.jsxs("div",{className:"absolute inset-0 bg-background overflow-hidden flex flex-col",onClick:b=>b.stopPropagation(),children:[w.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[w.jsx("span",{className:"text-sm text-foreground",children:i("fileChanged",{count:t.length})}),w.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:w.jsx(fr,{className:"w-4 h-4"})})]}),w.jsxs("div",{className:"flex flex-1 min-h-0",children:[w.jsx("div",{className:"w-64 border-r border-border overflow-y-auto flex-shrink-0",children:t.map((b,$)=>w.jsx("button",{onClick:()=>s($),className:`w-full text-left px-3 py-2 text-xs border-b border-border/50 transition-colors ${$===l?"bg-muted text-foreground":"text-muted-foreground hover:bg-card hover:text-foreground"}`,children:w.jsxs("div",{className:"flex items-center gap-2",children:[I(b)?w.jsx(w1,{className:"w-3.5 h-3.5 text-green-600 dark:text-green-400 flex-shrink-0"}):w.jsx(eh,{className:"w-3.5 h-3.5 text-blue-600 dark:text-blue-400 flex-shrink-0"}),w.jsxs("div",{className:"min-w-0",children:[w.jsx("div",{className:"font-medium truncate",children:j(b.relativePath)}),T(b.relativePath)&&w.jsx("div",{className:"text-muted-foreground truncate",children:T(b.relativePath)})]}),w.jsx("span",{className:`ml-auto text-[10px] px-1.5 py-0.5 rounded flex-shrink-0 ${I(b)?"bg-green-100/60 text-green-700 dark:bg-green-900/40 dark:text-green-400":"bg-blue-100/60 text-blue-700 dark:bg-blue-900/40 dark:text-blue-400"}`,children:I(b)?"New":"Modified"})]})},b.relativePath))}),w.jsxs("div",{className:"flex-1 overflow-auto flex flex-col",children:[w.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 border-b border-border/50 bg-muted/30 flex-shrink-0",children:[w.jsx("span",{className:"text-xs text-muted-foreground font-mono truncate mr-4",children:y.relativePath}),w.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[w.jsxs("select",{value:a,onChange:b=>m(b.target.value),className:"text-xs bg-background border border-border rounded px-1.5 py-0.5 text-foreground outline-none",children:[w.jsx("option",{value:"",disabled:!0,children:i("noEditorSelected")}),Wp.map(b=>w.jsx("option",{value:b.id,children:b.name},b.id))]}),w.jsxs("button",{onClick:g,disabled:!a||!f,className:"flex items-center gap-1 text-xs px-2 py-0.5 rounded border border-border bg-background text-foreground hover:bg-muted disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[w.jsx(x1,{className:"w-3 h-3"}),i("openInEditor")]})]})]}),w.jsx("div",{className:"font-mono text-xs leading-5 overflow-auto flex-1",children:k.hunks.length===0?w.jsx("div",{className:"p-4 text-muted-foreground",children:i("noChanges")}):k.hunks.map((b,$)=>w.jsxs("div",{children:[w.jsxs("div",{className:"bg-muted/50 text-muted-foreground px-4 py-1 select-none border-y border-border/50",children:["@@ -",b.oldStart,",",b.oldLines," +",b.newStart,",",b.newLines," @@"]}),bb(b)]},$))})]})]})]})})}function bb(t){let r=t.oldStart,i=t.newStart;return t.lines.map((l,s)=>{const a=l[0],c=l.slice(1);let f="",p="text-muted-foreground",m="",g="";return a==="-"?(f="bg-red-100/50 dark:bg-red-900/20",p="text-red-700 dark:text-red-300",m=String(r++),g=""):a==="+"?(f="bg-green-100/50 dark:bg-green-900/20",p="text-green-700 dark:text-green-300",m="",g=String(i++)):(m=String(r++),g=String(i++)),w.jsxs("div",{className:`flex ${f}`,children:[w.jsx("span",{className:"w-10 text-right pr-1 text-muted-foreground select-none flex-shrink-0",children:m}),w.jsx("span",{className:"w-10 text-right pr-1 text-muted-foreground select-none flex-shrink-0",children:g}),w.jsx("span",{className:`w-6 text-center select-none flex-shrink-0 ${a==="+"?"text-green-500":a==="-"?"text-red-500":"text-muted-foreground"}`,children:a===" "?"":a}),w.jsx("span",{className:`flex-1 whitespace-pre ${p}`,children:c})]},s)})}const Xh="awel-theme";function Eb(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Nb(){const t=localStorage.getItem(Xh);return t==="light"||t==="dark"||t==="system"?t:"system"}function jb(){const[t,r]=_.useState(Nb),[i,l]=_.useState(Eb),s=t==="system"?i:t,a=_.useCallback(c=>{r(c),localStorage.setItem(Xh,c)},[]);return _.useEffect(()=>{const c=document.documentElement;s==="dark"?c.classList.add("dark"):c.classList.remove("dark"),window.parent.postMessage({type:"AWEL_THEME",theme:s},"*")},[s]),_.useEffect(()=>{const c=window.matchMedia("(prefers-color-scheme: dark)"),f=p=>{l(p.matches?"dark":"light")};return c.addEventListener("change",f),()=>c.removeEventListener("change",f)},[]),{theme:t,resolvedTheme:s,setTheme:a}}function Pb(){const{t}=Ot(),{resolvedTheme:r,setTheme:i}=jb(),[l,s]=_.useState(()=>localStorage.getItem("awel-model")||"sonnet"),[a,c]=_.useState(!1),[f,p]=_.useState(0),[m,g]=_.useState(!1),[y,k]=_.useState(!1),[x,j]=_.useState(null),[T,I]=_.useState(!1),b=_.useCallback(X=>{j(X),window.parent.postMessage({type:"AWEL_HIDE_CONTROLS"},"*")},[]),$=_.useCallback(()=>{j(null),window.parent.postMessage({type:"AWEL_SHOW_CONTROLS"},"*")},[]),D=async()=>{I(!1),await fetch("/api/chat/history",{method:"DELETE"}),p(X=>X+1)},U=X=>{s(X),localStorage.setItem("awel-model",X)},H=_.useCallback(X=>{g(X)},[]),R=()=>{window.parent.postMessage({type:"AWEL_CLOSE"},"*")},V=()=>{c(X=>!X)},K=()=>{window.parent.postMessage({type:"AWEL_CLOSE"},"*")},G=()=>{i(r==="dark"?"light":"dark")};return w.jsxs("div",{className:"fixed inset-0",onClick:K,children:[w.jsxs("div",{className:`absolute top-6 right-6 bottom-20 bg-background rounded-xl shadow-2xl flex flex-col overflow-hidden border border-border ${a?"left-6":"w-[380px]"}`,onClick:X=>X.stopPropagation(),children:[w.jsxs("header",{className:"flex items-center justify-between px-4 py-2.5 border-b border-border shrink-0",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"text-sm leading-none",children:"🌸"}),w.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Awel"}),y&&w.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(lb,{selectedModel:l,onModelChange:U,chatHasMessages:m}),w.jsx(cr,{variant:"ghost",size:"icon",onClick:G,className:"h-7 w-7 hover:bg-muted",title:t("toggleTheme"),children:r==="dark"?w.jsx(O1,{className:"w-3.5 h-3.5"}):w.jsx(P1,{className:"w-3.5 h-3.5"})}),w.jsx(cr,{variant:"ghost",size:"icon",onClick:()=>I(!0),className:"h-7 w-7 hover:bg-muted",title:t("deleteChatHistory"),children:w.jsx(rh,{className:"w-3.5 h-3.5"})}),w.jsx(cr,{variant:"ghost",size:"icon",onClick:V,className:"h-7 w-7 hover:bg-muted",title:t(a?"collapse":"expand"),children:a?w.jsx(j1,{className:"w-3.5 h-3.5"}):w.jsx(N1,{className:"w-3.5 h-3.5"})}),w.jsx(cr,{variant:"ghost",size:"icon",onClick:R,className:"h-7 w-7 hover:bg-muted",children:w.jsx(fr,{className:"w-3.5 h-3.5"})})]})]}),w.jsx(nb,{selectedModel:l,onHasMessagesChange:H,onStreamingChange:k,onReviewDiffs:b},f)]}),x&&w.jsx(Cb,{diffs:x,onClose:$}),T&&w.jsx(fh,{title:t("deleteChatHistory"),description:t("deleteChatHistoryDescription"),confirmLabel:t("delete"),variant:"danger",onConfirm:D,onCancel:()=>I(!1)})]})}ny.createRoot(document.getElementById("root")).render(w.jsx(Gg.StrictMode,{children:w.jsx(Pb,{})}));
|