aicodeswitch 1.2.2 → 1.2.3
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.
|
@@ -6,7 +6,7 @@ function Mh(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
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 kl=Symbol.for("react.element"),Fh=Symbol.for("react.portal"),Bh=Symbol.for("react.fragment"),Uh=Symbol.for("react.strict_mode"),$h=Symbol.for("react.profiler"),Vh=Symbol.for("react.provider"),Hh=Symbol.for("react.context"),Wh=Symbol.for("react.forward_ref"),Yh=Symbol.for("react.suspense"),Qh=Symbol.for("react.memo"),qh=Symbol.for("react.lazy"),
|
|
9
|
+
*/var kl=Symbol.for("react.element"),Fh=Symbol.for("react.portal"),Bh=Symbol.for("react.fragment"),Uh=Symbol.for("react.strict_mode"),$h=Symbol.for("react.profiler"),Vh=Symbol.for("react.provider"),Hh=Symbol.for("react.context"),Wh=Symbol.for("react.forward_ref"),Yh=Symbol.for("react.suspense"),Qh=Symbol.for("react.memo"),qh=Symbol.for("react.lazy"),hu=Symbol.iterator;function Kh(e){return e===null||typeof e!="object"?null:(e=hu&&e[hu]||e["@@iterator"],typeof e=="function"?e:null)}var jd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ed=Object.assign,Nd={};function vr(e,t,n){this.props=e,this.context=t,this.refs=Nd,this.updater=n||jd}vr.prototype.isReactComponent={};vr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pd(){}Pd.prototype=vr.prototype;function ra(e,t,n){this.props=e,this.context=t,this.refs=Nd,this.updater=n||jd}var la=ra.prototype=new Pd;la.constructor=ra;Ed(la,vr.prototype);la.isPureReactComponent=!0;var mu=Array.isArray,Td=Object.prototype.hasOwnProperty,ia={current:null},Id={key:!0,ref:!0,__self:!0,__source:!0};function _d(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Td.call(t,r)&&!Id.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];l.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)l[r]===void 0&&(l[r]=s[r]);return{$$typeof:kl,type:e,key:i,ref:o,props:l,_owner:ia.current}}function Xh(e,t){return{$$typeof:kl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oa(e){return typeof e=="object"&&e!==null&&e.$$typeof===kl}function Jh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var gu=/\/+/g;function ao(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Jh(""+e.key):t.toString(36)}function Kl(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case kl:case Fh:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+ao(o,0):r,mu(l)?(n="",e!=null&&(n=e.replace(gu,"$&/")+"/"),Kl(l,t,n,"",function(c){return c})):l!=null&&(oa(l)&&(l=Xh(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(gu,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",mu(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+ao(i,s);o+=Kl(i,t,n,a,l)}else if(a=Kh(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+ao(i,s++),o+=Kl(i,t,n,a,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Il(e,t,n){if(e==null)return e;var r=[],l=0;return Kl(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Gh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var We={current:null},Xl={transition:null},Zh={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:Xl,ReactCurrentOwner:ia};function bd(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Il,forEach:function(e,t,n){Il(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Il(e,function(){t++}),t},toArray:function(e){return Il(e,function(t){return t})||[]},only:function(e){if(!oa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=vr;ee.Fragment=Bh;ee.Profiler=$h;ee.PureComponent=ra;ee.StrictMode=Uh;ee.Suspense=Yh;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zh;ee.act=bd;ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ed({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=ia.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Td.call(t,a)&&!Id.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var c=0;c<a;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:kl,type:e.type,key:l,ref:i,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:Hh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vh,_context:e},e.Consumer=e};ee.createElement=_d;ee.createFactory=function(e){var t=_d.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:Wh,render:e}};ee.isValidElement=oa;ee.lazy=function(e){return{$$typeof:qh,_payload:{_status:-1,_result:e},_init:Gh}};ee.memo=function(e,t){return{$$typeof:Qh,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=Xl.transition;Xl.transition={};try{e()}finally{Xl.transition=t}};ee.unstable_act=bd;ee.useCallback=function(e,t){return We.current.useCallback(e,t)};ee.useContext=function(e){return We.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return We.current.useDeferredValue(e)};ee.useEffect=function(e,t){return We.current.useEffect(e,t)};ee.useId=function(){return We.current.useId()};ee.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return We.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};ee.useRef=function(e){return We.current.useRef(e)};ee.useState=function(e){return We.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return We.current.useTransition()};ee.version="18.3.1";Cd.exports=ee;var N=Cd.exports;const Ld=Di(N),em=Mh({__proto__:null,default:Ld},[N]);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ function Mh(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
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 tm=N,nm=Symbol.for("react.element"),rm=Symbol.for("react.fragment"),lm=Object.prototype.hasOwnProperty,im=tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,om={key:!0,ref:!0,__self:!0,__source:!0};function zd(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lm.call(t,r)&&!om.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:nm,type:e,key:i,ref:o,props:l,_owner:im.current}}Mi.Fragment=rm;Mi.jsx=zd;Mi.jsxs=zd;Sd.exports=Mi;var u=Sd.exports,
|
|
17
|
+
*/var tm=N,nm=Symbol.for("react.element"),rm=Symbol.for("react.fragment"),lm=Object.prototype.hasOwnProperty,im=tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,om={key:!0,ref:!0,__self:!0,__source:!0};function zd(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lm.call(t,r)&&!om.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:nm,type:e,key:i,ref:o,props:l,_owner:im.current}}Mi.Fragment=rm;Mi.jsx=zd;Mi.jsxs=zd;Sd.exports=Mi;var u=Sd.exports,Ko={},Od={exports:{}},at={},Rd={exports:{}},Ad={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -30,14 +30,14 @@ function Mh(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
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 am=N,st=sm;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Dd=new Set,el={};function On(e,t){dr(e,t),dr(e+"Capture",t)}function dr(e,t){for(el[e]=t,e=0;e<t.length;e++)Dd.add(t[e])}var Ut=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),
|
|
33
|
+
*/var am=N,st=sm;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Dd=new Set,el={};function On(e,t){dr(e,t),dr(e+"Capture",t)}function dr(e,t){for(el[e]=t,e=0;e<t.length;e++)Dd.add(t[e])}var Ut=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xo=Object.prototype.hasOwnProperty,um=/^[: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]*$/,yu={},xu={};function cm(e){return Xo.call(xu,e)?!0:Xo.call(yu,e)?!1:um.test(e)?xu[e]=!0:(yu[e]=!0,!1)}function dm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fm(e,t,n,r){if(t===null||typeof t>"u"||dm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Ye(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){Re[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var sa=/[\-:]([a-z])/g;function aa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(sa,aa);Re[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(sa,aa);Re[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(sa,aa);Re[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function ua(e,t,n,r){var l=Re.hasOwnProperty(t)?Re[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(fm(t,n,l,r)&&(n=null),r||l===null?cm(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Wt=am.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_l=Symbol.for("react.element"),Wn=Symbol.for("react.portal"),Yn=Symbol.for("react.fragment"),ca=Symbol.for("react.strict_mode"),Jo=Symbol.for("react.profiler"),Md=Symbol.for("react.provider"),Fd=Symbol.for("react.context"),da=Symbol.for("react.forward_ref"),Go=Symbol.for("react.suspense"),Zo=Symbol.for("react.suspense_list"),fa=Symbol.for("react.memo"),qt=Symbol.for("react.lazy"),Bd=Symbol.for("react.offscreen"),vu=Symbol.iterator;function Pr(e){return e===null||typeof e!="object"?null:(e=vu&&e[vu]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,uo;function Dr(e){if(uo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);uo=t&&t[1]||""}return`
|
|
34
34
|
`+uo+e}var co=!1;function fo(e,t){if(!e||co)return"";co=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
|
35
35
|
`),i=r.stack.split(`
|
|
36
36
|
`),o=l.length-1,s=i.length-1;1<=o&&0<=s&&l[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(l[o]!==i[s]){if(o!==1||s!==1)do if(o--,s--,0>s||l[o]!==i[s]){var a=`
|
|
37
|
-
`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dr(e):""}function pm(e){switch(e.tag){case 5:return Dr(e.type);case 16:return Dr("Lazy");case 13:return Dr("Suspense");case 19:return Dr("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function ts(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 Yn:return"Fragment";case Wn:return"Portal";case Go:return"Profiler";case da:return"StrictMode";case Zo:return"Suspense";case es:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fd:return(e.displayName||"Context")+".Consumer";case Md:return(e._context.displayName||"Context")+".Provider";case fa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pa:return t=e.displayName||null,t!==null?t:ts(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return ts(e(t))}catch{}}return null}function hm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ts(t);case 8:return t===da?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ud(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mm(e){var t=Ud(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bl(e){e._valueTracker||(e._valueTracker=mm(e))}function $d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ud(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ui(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 ns(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vd(e,t){t=t.checked,t!=null&&ca(e,"checked",t,!1)}function rs(e,t){Vd(e,t);var n=dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ls(e,t.type,n):t.hasOwnProperty("defaultValue")&&ls(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Su(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ls(e,t,n){(t!=="number"||ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function rr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dn(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function is(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(B(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(B(92));if(Mr(n)){if(1<n.length)throw Error(B(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:dn(n)}}function Hd(e,t){var n=dn(t.value),r=dn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ju(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wd(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 os(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ll,Yd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ll=Ll||document.createElement("div"),Ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ur={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},gm=["Webkit","ms","Moz","O"];Object.keys(Ur).forEach(function(e){gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ur[t]=Ur[e]})});function Qd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ur.hasOwnProperty(e)&&Ur[e]?(""+t).trim():t+"px"}function qd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Qd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var ym=we({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 ss(e,t){if(t){if(ym[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function as(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var us=null;function ha(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cs=null,lr=null,ir=null;function Eu(e){if(e=Cl(e)){if(typeof cs!="function")throw Error(B(280));var t=e.stateNode;t&&(t=Vi(t),cs(e.stateNode,e.type,t))}}function Kd(e){lr?ir?ir.push(e):ir=[e]:lr=e}function Xd(){if(lr){var e=lr,t=ir;if(ir=lr=null,Eu(e),t)for(e=0;e<t.length;e++)Eu(t[e])}}function Jd(e,t){return e(t)}function Gd(){}var po=!1;function Zd(e,t,n){if(po)return e(t,n);po=!0;try{return Jd(e,t,n)}finally{po=!1,(lr!==null||ir!==null)&&(Gd(),Xd())}}function nl(e,t){var n=e.stateNode;if(n===null)return null;var r=Vi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(B(231,t,typeof n));return n}var ds=!1;if(Ut)try{var Tr={};Object.defineProperty(Tr,"passive",{get:function(){ds=!0}}),window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{ds=!1}function xm(e,t,n,r,l,i,o,s,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var $r=!1,ci=null,di=!1,fs=null,vm={onError:function(e){$r=!0,ci=e}};function km(e,t,n,r,l,i,o,s,a){$r=!1,ci=null,xm.apply(vm,arguments)}function wm(e,t,n,r,l,i,o,s,a){if(km.apply(this,arguments),$r){if($r){var c=ci;$r=!1,ci=null}else throw Error(B(198));di||(di=!0,fs=c)}}function Rn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ef(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nu(e){if(Rn(e)!==e)throw Error(B(188))}function Sm(e){var t=e.alternate;if(!t){if(t=Rn(e),t===null)throw Error(B(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Nu(l),e;if(i===r)return Nu(l),t;i=i.sibling}throw Error(B(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o)throw Error(B(189))}}if(n.alternate!==r)throw Error(B(190))}if(n.tag!==3)throw Error(B(188));return n.stateNode.current===n?e:t}function tf(e){return e=Sm(e),e!==null?nf(e):null}function nf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nf(e);if(t!==null)return t;e=e.sibling}return null}var rf=st.unstable_scheduleCallback,Pu=st.unstable_cancelCallback,Cm=st.unstable_shouldYield,jm=st.unstable_requestPaint,je=st.unstable_now,Em=st.unstable_getCurrentPriorityLevel,ma=st.unstable_ImmediatePriority,lf=st.unstable_UserBlockingPriority,fi=st.unstable_NormalPriority,Nm=st.unstable_LowPriority,of=st.unstable_IdlePriority,Fi=null,bt=null;function Pm(e){if(bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Fi,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:_m,Tm=Math.log,Im=Math.LN2;function _m(e){return e>>>=0,e===0?32:31-(Tm(e)/Im|0)|0}var zl=64,Ol=4194304;function Fr(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 pi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Fr(s):(i&=o,i!==0&&(r=Fr(i)))}else o=n&~l,o!==0?r=Fr(o):i!==0&&(r=Fr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),l=1<<n,r|=e[n],t&=~l;return r}function bm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-St(i),s=1<<o,a=l[o];a===-1?(!(s&n)||s&r)&&(l[o]=bm(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function ps(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sf(){var e=zl;return zl<<=1,!(zl&4194240)&&(zl=64),e}function ho(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function zm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-St(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function ga(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var se=0;function af(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uf,ya,cf,df,ff,hs=!1,Rl=[],tn=null,nn=null,rn=null,rl=new Map,ll=new Map,Xt=[],Om="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 Tu(e,t){switch(e){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":rl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ll.delete(t.pointerId)}}function Ir(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Cl(t),t!==null&&ya(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Rm(e,t,n,r,l){switch(t){case"focusin":return tn=Ir(tn,e,t,n,r,l),!0;case"dragenter":return nn=Ir(nn,e,t,n,r,l),!0;case"mouseover":return rn=Ir(rn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return rl.set(i,Ir(rl.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,ll.set(i,Ir(ll.get(i)||null,e,t,n,r,l)),!0}return!1}function pf(e){var t=jn(e.target);if(t!==null){var n=Rn(t);if(n!==null){if(t=n.tag,t===13){if(t=ef(n),t!==null){e.blockedOn=t,ff(e.priority,function(){cf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ms(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);us=r,n.target.dispatchEvent(r),us=null}else return t=Cl(n),t!==null&&ya(t),e.blockedOn=n,!1;t.shift()}return!0}function Iu(e,t,n){Jl(e)&&n.delete(t)}function Am(){hs=!1,tn!==null&&Jl(tn)&&(tn=null),nn!==null&&Jl(nn)&&(nn=null),rn!==null&&Jl(rn)&&(rn=null),rl.forEach(Iu),ll.forEach(Iu)}function _r(e,t){e.blockedOn===t&&(e.blockedOn=null,hs||(hs=!0,st.unstable_scheduleCallback(st.unstable_NormalPriority,Am)))}function il(e){function t(l){return _r(l,e)}if(0<Rl.length){_r(Rl[0],e);for(var n=1;n<Rl.length;n++){var r=Rl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tn!==null&&_r(tn,e),nn!==null&&_r(nn,e),rn!==null&&_r(rn,e),rl.forEach(t),ll.forEach(t),n=0;n<Xt.length;n++)r=Xt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xt.length&&(n=Xt[0],n.blockedOn===null);)pf(n),n.blockedOn===null&&Xt.shift()}var or=Wt.ReactCurrentBatchConfig,hi=!0;function Dm(e,t,n,r){var l=se,i=or.transition;or.transition=null;try{se=1,xa(e,t,n,r)}finally{se=l,or.transition=i}}function Mm(e,t,n,r){var l=se,i=or.transition;or.transition=null;try{se=4,xa(e,t,n,r)}finally{se=l,or.transition=i}}function xa(e,t,n,r){if(hi){var l=ms(e,t,n,r);if(l===null)jo(e,t,r,mi,n),Tu(e,r);else if(Rm(l,e,t,n,r))r.stopPropagation();else if(Tu(e,r),t&4&&-1<Om.indexOf(e)){for(;l!==null;){var i=Cl(l);if(i!==null&&uf(i),i=ms(e,t,n,r),i===null&&jo(e,t,r,mi,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else jo(e,t,r,null,n)}}var mi=null;function ms(e,t,n,r){if(mi=null,e=ha(r),e=jn(e),e!==null)if(t=Rn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ef(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mi=e,null}function hf(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(Em()){case ma:return 1;case lf:return 4;case fi:case Nm:return 16;case of:return 536870912;default:return 16}default:return 16}}var Gt=null,va=null,Gl=null;function mf(){if(Gl)return Gl;var e,t=va,n=t.length,r,l="value"in Gt?Gt.value:Gt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return Gl=l.slice(e,1<r?1-r:void 0)}function Zl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Al(){return!0}function _u(){return!1}function ut(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Al:_u,this.isPropagationStopped=_u,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),t}var kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ka=ut(kr),Sl=we({},kr,{view:0,detail:0}),Fm=ut(Sl),mo,go,br,Bi=we({},Sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wa,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!==br&&(br&&e.type==="mousemove"?(mo=e.screenX-br.screenX,go=e.screenY-br.screenY):go=mo=0,br=e),mo)},movementY:function(e){return"movementY"in e?e.movementY:go}}),bu=ut(Bi),Bm=we({},Bi,{dataTransfer:0}),Um=ut(Bm),$m=we({},Sl,{relatedTarget:0}),yo=ut($m),Vm=we({},kr,{animationName:0,elapsedTime:0,pseudoElement:0}),Hm=ut(Vm),Wm=we({},kr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ym=ut(Wm),Qm=we({},kr,{data:0}),Lu=ut(Qm),qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Km={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"},Xm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xm[e])?!!t[e]:!1}function wa(){return Jm}var Gm=we({},Sl,{key:function(e){if(e.key){var t=qm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Km[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wa,charCode:function(e){return e.type==="keypress"?Zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zm=ut(Gm),eg=we({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zu=ut(eg),tg=we({},Sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wa}),ng=ut(tg),rg=we({},kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),lg=ut(rg),ig=we({},Bi,{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}),og=ut(ig),sg=[9,13,27,32],Sa=Ut&&"CompositionEvent"in window,Vr=null;Ut&&"documentMode"in document&&(Vr=document.documentMode);var ag=Ut&&"TextEvent"in window&&!Vr,gf=Ut&&(!Sa||Vr&&8<Vr&&11>=Vr),Ou=" ",Ru=!1;function yf(e,t){switch(e){case"keyup":return sg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qn=!1;function ug(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(Ru=!0,Ou);case"textInput":return e=t.data,e===Ou&&Ru?null:e;default:return null}}function cg(e,t){if(Qn)return e==="compositionend"||!Sa&&yf(e,t)?(e=mf(),Gl=va=Gt=null,Qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gf&&t.locale!=="ko"?null:t.data;default:return null}}var dg={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 Au(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dg[e.type]:t==="textarea"}function vf(e,t,n,r){Kd(r),t=gi(t,"onChange"),0<t.length&&(n=new ka("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hr=null,ol=null;function fg(e){_f(e,0)}function Ui(e){var t=Xn(e);if($d(t))return e}function pg(e,t){if(e==="change")return t}var kf=!1;if(Ut){var xo;if(Ut){var vo="oninput"in document;if(!vo){var Du=document.createElement("div");Du.setAttribute("oninput","return;"),vo=typeof Du.oninput=="function"}xo=vo}else xo=!1;kf=xo&&(!document.documentMode||9<document.documentMode)}function Mu(){Hr&&(Hr.detachEvent("onpropertychange",wf),ol=Hr=null)}function wf(e){if(e.propertyName==="value"&&Ui(ol)){var t=[];vf(t,ol,e,ha(e)),Zd(fg,t)}}function hg(e,t,n){e==="focusin"?(Mu(),Hr=t,ol=n,Hr.attachEvent("onpropertychange",wf)):e==="focusout"&&Mu()}function mg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ui(ol)}function gg(e,t){if(e==="click")return Ui(t)}function yg(e,t){if(e==="input"||e==="change")return Ui(t)}function xg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:xg;function sl(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!Jo.call(t,l)||!jt(e[l],t[l]))return!1}return!0}function Fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bu(e,t){var n=Fu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fu(n)}}function Sf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cf(){for(var e=window,t=ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ui(e.document)}return t}function Ca(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vg(e){var t=Cf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sf(n.ownerDocument.documentElement,n)){if(r!==null&&Ca(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Bu(n,i);var o=Bu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kg=Ut&&"documentMode"in document&&11>=document.documentMode,qn=null,gs=null,Wr=null,ys=!1;function Uu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ys||qn==null||qn!==ui(r)||(r=qn,"selectionStart"in r&&Ca(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&sl(Wr,r)||(Wr=r,r=gi(gs,"onSelect"),0<r.length&&(t=new ka("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qn)))}function Dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kn={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionend:Dl("Transition","TransitionEnd")},ko={},jf={};Ut&&(jf=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function $i(e){if(ko[e])return ko[e];if(!Kn[e])return e;var t=Kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jf)return ko[e]=t[n];return e}var Ef=$i("animationend"),Nf=$i("animationiteration"),Pf=$i("animationstart"),Tf=$i("transitionend"),If=new Map,$u="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 pn(e,t){If.set(e,t),On(t,[e])}for(var wo=0;wo<$u.length;wo++){var So=$u[wo],wg=So.toLowerCase(),Sg=So[0].toUpperCase()+So.slice(1);pn(wg,"on"+Sg)}pn(Ef,"onAnimationEnd");pn(Nf,"onAnimationIteration");pn(Pf,"onAnimationStart");pn("dblclick","onDoubleClick");pn("focusin","onFocus");pn("focusout","onBlur");pn(Tf,"onTransitionEnd");dr("onMouseEnter",["mouseout","mouseover"]);dr("onMouseLeave",["mouseout","mouseover"]);dr("onPointerEnter",["pointerout","pointerover"]);dr("onPointerLeave",["pointerout","pointerover"]);On("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));On("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));On("onBeforeInput",["compositionend","keypress","textInput","paste"]);On("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));On("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));On("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),Cg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function Vu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,wm(r,t,void 0,e),e.currentTarget=null}function _f(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,c=s.currentTarget;if(s=s.listener,a!==i&&l.isPropagationStopped())break e;Vu(l,s,c),i=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,c=s.currentTarget,s=s.listener,a!==i&&l.isPropagationStopped())break e;Vu(l,s,c),i=a}}}if(di)throw e=fs,di=!1,fs=null,e}function me(e,t){var n=t[Ss];n===void 0&&(n=t[Ss]=new Set);var r=e+"__bubble";n.has(r)||(bf(t,e,2,!1),n.add(r))}function Co(e,t,n){var r=0;t&&(r|=4),bf(n,e,r,t)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function al(e){if(!e[Ml]){e[Ml]=!0,Dd.forEach(function(n){n!=="selectionchange"&&(Cg.has(n)||Co(n,!1,e),Co(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ml]||(t[Ml]=!0,Co("selectionchange",!1,t))}}function bf(e,t,n,r){switch(hf(t)){case 1:var l=Dm;break;case 4:l=Mm;break;default:l=xa}n=l.bind(null,t,n,e),l=void 0,!ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function jo(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;o=o.return}for(;s!==null;){if(o=jn(s),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}s=s.parentNode}}r=r.return}Zd(function(){var c=i,d=ha(n),f=[];e:{var p=If.get(e);if(p!==void 0){var h=ka,v=e;switch(e){case"keypress":if(Zl(n)===0)break e;case"keydown":case"keyup":h=Zm;break;case"focusin":v="focus",h=yo;break;case"focusout":v="blur",h=yo;break;case"beforeblur":case"afterblur":h=yo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=bu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Um;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=ng;break;case Ef:case Nf:case Pf:h=Hm;break;case Tf:h=lg;break;case"scroll":h=Fm;break;case"wheel":h=og;break;case"copy":case"cut":case"paste":h=Ym;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=zu}var w=(t&4)!==0,E=!w&&e==="scroll",m=w?p!==null?p+"Capture":null:p;w=[];for(var y=c,x;y!==null;){x=y;var C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,m!==null&&(C=nl(y,m),C!=null&&w.push(ul(y,C,x)))),E)break;y=y.return}0<w.length&&(p=new h(p,v,null,n,d),f.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==us&&(v=n.relatedTarget||n.fromElement)&&(jn(v)||v[$t]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=c,v=v?jn(v):null,v!==null&&(E=Rn(v),v!==E||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=c),h!==v)){if(w=bu,C="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(w=zu,C="onPointerLeave",m="onPointerEnter",y="pointer"),E=h==null?p:Xn(h),x=v==null?p:Xn(v),p=new w(C,y+"leave",h,n,d),p.target=E,p.relatedTarget=x,C=null,jn(d)===c&&(w=new w(m,y+"enter",v,n,d),w.target=x,w.relatedTarget=E,C=w),E=C,h&&v)t:{for(w=h,m=v,y=0,x=w;x;x=Bn(x))y++;for(x=0,C=m;C;C=Bn(C))x++;for(;0<y-x;)w=Bn(w),y--;for(;0<x-y;)m=Bn(m),x--;for(;y--;){if(w===m||m!==null&&w===m.alternate)break t;w=Bn(w),m=Bn(m)}w=null}else w=null;h!==null&&Hu(f,p,h,w,!1),v!==null&&E!==null&&Hu(f,E,v,w,!0)}}e:{if(p=c?Xn(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var P=pg;else if(Au(p))if(kf)P=yg;else{P=mg;var S=hg}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=gg);if(P&&(P=P(e,c))){vf(f,P,n,d);break e}S&&S(e,p,c),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&ls(p,"number",p.value)}switch(S=c?Xn(c):window,e){case"focusin":(Au(S)||S.contentEditable==="true")&&(qn=S,gs=c,Wr=null);break;case"focusout":Wr=gs=qn=null;break;case"mousedown":ys=!0;break;case"contextmenu":case"mouseup":case"dragend":ys=!1,Uu(f,n,d);break;case"selectionchange":if(kg)break;case"keydown":case"keyup":Uu(f,n,d)}var L;if(Sa)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Qn?yf(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(gf&&n.locale!=="ko"&&(Qn||D!=="onCompositionStart"?D==="onCompositionEnd"&&Qn&&(L=mf()):(Gt=d,va="value"in Gt?Gt.value:Gt.textContent,Qn=!0)),S=gi(c,D),0<S.length&&(D=new Lu(D,e,null,n,d),f.push({event:D,listeners:S}),L?D.data=L:(L=xf(n),L!==null&&(D.data=L)))),(L=ag?ug(e,n):cg(e,n))&&(c=gi(c,"onBeforeInput"),0<c.length&&(d=new Lu("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=L))}_f(f,t)})}function ul(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gi(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=nl(e,n),i!=null&&r.unshift(ul(e,i,l)),i=nl(e,t),i!=null&&r.push(ul(e,i,l))),e=e.return}return r}function Bn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hu(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,c=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&c!==null&&(s=c,l?(a=nl(n,i),a!=null&&o.unshift(ul(n,a,s))):l||(a=nl(n,i),a!=null&&o.push(ul(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jg=/\r\n?/g,Eg=/\u0000|\uFFFD/g;function Wu(e){return(typeof e=="string"?e:""+e).replace(jg,`
|
|
38
|
-
`).replace(Eg,"")}function Fl(e,t,n){if(t=Wu(t),Wu(e)!==t&&n)throw Error(B(425))}function yi(){}var xs=null,vs=null;function ks(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ws=typeof setTimeout=="function"?setTimeout:void 0,Ng=typeof clearTimeout=="function"?clearTimeout:void 0,Yu=typeof Promise=="function"?Promise:void 0,Pg=typeof queueMicrotask=="function"?queueMicrotask:typeof Yu<"u"?function(e){return Yu.resolve(null).then(e).catch(Tg)}:ws;function Tg(e){setTimeout(function(){throw e})}function Eo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),il(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);il(t)}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Qu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var wr=Math.random().toString(36).slice(2),It="__reactFiber$"+wr,cl="__reactProps$"+wr,$t="__reactContainer$"+wr,Ss="__reactEvents$"+wr,Ig="__reactListeners$"+wr,_g="__reactHandles$"+wr;function jn(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qu(e);e!==null;){if(n=e[It])return n;e=Qu(e)}return t}e=n,n=e.parentNode}return null}function Cl(e){return e=e[It]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(B(33))}function Vi(e){return e[cl]||null}var Cs=[],Jn=-1;function hn(e){return{current:e}}function ge(e){0>Jn||(e.current=Cs[Jn],Cs[Jn]=null,Jn--)}function pe(e,t){Jn++,Cs[Jn]=e.current,e.current=t}var fn={},Ue=hn(fn),Xe=hn(!1),In=fn;function fr(e,t){var n=e.type.contextTypes;if(!n)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Je(e){return e=e.childContextTypes,e!=null}function xi(){ge(Xe),ge(Ue)}function qu(e,t,n){if(Ue.current!==fn)throw Error(B(168));pe(Ue,t),pe(Xe,n)}function Lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(B(108,hm(e)||"Unknown",l));return we({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,In=Ue.current,pe(Ue,e),pe(Xe,Xe.current),!0}function Ku(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=Lf(e,t,In),r.__reactInternalMemoizedMergedChildContext=e,ge(Xe),ge(Ue),pe(Ue,e)):ge(Xe),pe(Xe,n)}var Dt=null,Hi=!1,No=!1;function zf(e){Dt===null?Dt=[e]:Dt.push(e)}function bg(e){Hi=!0,zf(e)}function mn(){if(!No&&Dt!==null){No=!0;var e=0,t=se;try{var n=Dt;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,Hi=!1}catch(l){throw Dt!==null&&(Dt=Dt.slice(e+1)),rf(ma,mn),l}finally{se=t,No=!1}}return null}var Gn=[],Zn=0,ki=null,wi=0,ct=[],dt=0,_n=null,Mt=1,Ft="";function kn(e,t){Gn[Zn++]=wi,Gn[Zn++]=ki,ki=e,wi=t}function Of(e,t,n){ct[dt++]=Mt,ct[dt++]=Ft,ct[dt++]=_n,_n=e;var r=Mt;e=Ft;var l=32-St(r)-1;r&=~(1<<l),n+=1;var i=32-St(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Mt=1<<32-St(t)+l|n<<l|r,Ft=i+e}else Mt=1<<i|n<<l|r,Ft=e}function ja(e){e.return!==null&&(kn(e,1),Of(e,1,0))}function Ea(e){for(;e===ki;)ki=Gn[--Zn],Gn[Zn]=null,wi=Gn[--Zn],Gn[Zn]=null;for(;e===_n;)_n=ct[--dt],ct[dt]=null,Ft=ct[--dt],ct[dt]=null,Mt=ct[--dt],ct[dt]=null}var ot=null,lt=null,ye=!1,wt=null;function Rf(e,t){var n=pt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Xu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ot=e,lt=ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_n!==null?{id:Mt,overflow:Ft}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,lt=null,!0):!1;default:return!1}}function js(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Es(e){if(ye){var t=lt;if(t){var n=t;if(!Xu(e,t)){if(js(e))throw Error(B(418));t=ln(n.nextSibling);var r=ot;t&&Xu(e,t)?Rf(r,n):(e.flags=e.flags&-4097|2,ye=!1,ot=e)}}else{if(js(e))throw Error(B(418));e.flags=e.flags&-4097|2,ye=!1,ot=e}}}function Ju(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Bl(e){if(e!==ot)return!1;if(!ye)return Ju(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ks(e.type,e.memoizedProps)),t&&(t=lt)){if(js(e))throw Af(),Error(B(418));for(;t;)Rf(e,t),t=ln(t.nextSibling)}if(Ju(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ot?ln(e.stateNode.nextSibling):null;return!0}function Af(){for(var e=lt;e;)e=ln(e.nextSibling)}function pr(){lt=ot=null,ye=!1}function Na(e){wt===null?wt=[e]:wt.push(e)}var Lg=Wt.ReactCurrentBatchConfig;function Lr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(B(309));var r=n.stateNode}if(!r)throw Error(B(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var s=l.refs;o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(B(284));if(!n._owner)throw Error(B(290,e))}return e}function Ul(e,t){throw e=Object.prototype.toString.call(t),Error(B(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gu(e){var t=e._init;return t(e._payload)}function Df(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function l(m,y){return m=un(m,y),m.index=0,m.sibling=null,m}function i(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=2,y):x):(m.flags|=2,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,y,x,C){return y===null||y.tag!==6?(y=zo(x,m.mode,C),y.return=m,y):(y=l(y,x),y.return=m,y)}function a(m,y,x,C){var P=x.type;return P===Yn?d(m,y,x.props.children,C,x.key):y!==null&&(y.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&Gu(P)===y.type)?(C=l(y,x.props),C.ref=Lr(m,y,x),C.return=m,C):(C=oi(x.type,x.key,x.props,null,m.mode,C),C.ref=Lr(m,y,x),C.return=m,C)}function c(m,y,x,C){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Oo(x,m.mode,C),y.return=m,y):(y=l(y,x.children||[]),y.return=m,y)}function d(m,y,x,C,P){return y===null||y.tag!==7?(y=Tn(x,m.mode,C,P),y.return=m,y):(y=l(y,x),y.return=m,y)}function f(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=zo(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _l:return x=oi(y.type,y.key,y.props,null,m.mode,x),x.ref=Lr(m,null,y),x.return=m,x;case Wn:return y=Oo(y,m.mode,x),y.return=m,y;case qt:var C=y._init;return f(m,C(y._payload),x)}if(Mr(y)||Pr(y))return y=Tn(y,m.mode,x,null),y.return=m,y;Ul(m,y)}return null}function p(m,y,x,C){var P=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return P!==null?null:s(m,y,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case _l:return x.key===P?a(m,y,x,C):null;case Wn:return x.key===P?c(m,y,x,C):null;case qt:return P=x._init,p(m,y,P(x._payload),C)}if(Mr(x)||Pr(x))return P!==null?null:d(m,y,x,C,null);Ul(m,x)}return null}function h(m,y,x,C,P){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(x)||null,s(y,m,""+C,P);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case _l:return m=m.get(C.key===null?x:C.key)||null,a(y,m,C,P);case Wn:return m=m.get(C.key===null?x:C.key)||null,c(y,m,C,P);case qt:var S=C._init;return h(m,y,x,S(C._payload),P)}if(Mr(C)||Pr(C))return m=m.get(x)||null,d(y,m,C,P,null);Ul(y,C)}return null}function v(m,y,x,C){for(var P=null,S=null,L=y,D=y=0,W=null;L!==null&&D<x.length;D++){L.index>D?(W=L,L=null):W=L.sibling;var R=p(m,L,x[D],C);if(R===null){L===null&&(L=W);break}e&&L&&R.alternate===null&&t(m,L),y=i(R,y,D),S===null?P=R:S.sibling=R,S=R,L=W}if(D===x.length)return n(m,L),ye&&kn(m,D),P;if(L===null){for(;D<x.length;D++)L=f(m,x[D],C),L!==null&&(y=i(L,y,D),S===null?P=L:S.sibling=L,S=L);return ye&&kn(m,D),P}for(L=r(m,L);D<x.length;D++)W=h(L,m,D,x[D],C),W!==null&&(e&&W.alternate!==null&&L.delete(W.key===null?D:W.key),y=i(W,y,D),S===null?P=W:S.sibling=W,S=W);return e&&L.forEach(function(z){return t(m,z)}),ye&&kn(m,D),P}function w(m,y,x,C){var P=Pr(x);if(typeof P!="function")throw Error(B(150));if(x=P.call(x),x==null)throw Error(B(151));for(var S=P=null,L=y,D=y=0,W=null,R=x.next();L!==null&&!R.done;D++,R=x.next()){L.index>D?(W=L,L=null):W=L.sibling;var z=p(m,L,R.value,C);if(z===null){L===null&&(L=W);break}e&&L&&z.alternate===null&&t(m,L),y=i(z,y,D),S===null?P=z:S.sibling=z,S=z,L=W}if(R.done)return n(m,L),ye&&kn(m,D),P;if(L===null){for(;!R.done;D++,R=x.next())R=f(m,R.value,C),R!==null&&(y=i(R,y,D),S===null?P=R:S.sibling=R,S=R);return ye&&kn(m,D),P}for(L=r(m,L);!R.done;D++,R=x.next())R=h(L,m,D,R.value,C),R!==null&&(e&&R.alternate!==null&&L.delete(R.key===null?D:R.key),y=i(R,y,D),S===null?P=R:S.sibling=R,S=R);return e&&L.forEach(function(H){return t(m,H)}),ye&&kn(m,D),P}function E(m,y,x,C){if(typeof x=="object"&&x!==null&&x.type===Yn&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case _l:e:{for(var P=x.key,S=y;S!==null;){if(S.key===P){if(P=x.type,P===Yn){if(S.tag===7){n(m,S.sibling),y=l(S,x.props.children),y.return=m,m=y;break e}}else if(S.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&Gu(P)===S.type){n(m,S.sibling),y=l(S,x.props),y.ref=Lr(m,S,x),y.return=m,m=y;break e}n(m,S);break}else t(m,S);S=S.sibling}x.type===Yn?(y=Tn(x.props.children,m.mode,C,x.key),y.return=m,m=y):(C=oi(x.type,x.key,x.props,null,m.mode,C),C.ref=Lr(m,y,x),C.return=m,m=C)}return o(m);case Wn:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),y=l(y,x.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=Oo(x,m.mode,C),y.return=m,m=y}return o(m);case qt:return S=x._init,E(m,y,S(x._payload),C)}if(Mr(x))return v(m,y,x,C);if(Pr(x))return w(m,y,x,C);Ul(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),y=l(y,x),y.return=m,m=y):(n(m,y),y=zo(x,m.mode,C),y.return=m,m=y),o(m)):n(m,y)}return E}var hr=Df(!0),Mf=Df(!1),Si=hn(null),Ci=null,er=null,Pa=null;function Ta(){Pa=er=Ci=null}function Ia(e){var t=Si.current;ge(Si),e._currentValue=t}function Ns(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sr(e,t){Ci=e,Pa=er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Pa!==e)if(e={context:e,memoizedValue:t,next:null},er===null){if(Ci===null)throw Error(B(308));er=e,Ci.dependencies={lanes:0,firstContext:e}}else er=er.next=e;return t}var En=null;function _a(e){En===null?En=[e]:En.push(e)}function Ff(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,_a(t)):(n.next=l.next,l.next=n),t.interleaved=n,Vt(e,r)}function Vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Vt(e,n)}return l=r.interleaved,l===null?(t.next=t,_a(r)):(t.next=l.next,l.next=t),r.interleaved=t,Vt(e,n)}function ei(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ga(e,n)}}function Zu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ji(e,t,n,r){var l=e.updateQueue;Kt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==o&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=a))}if(i!==null){var f=l.baseState;o=0,d=c=a=null,s=i;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,w=s;switch(p=t,h=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=we({},f,p);break e;case 2:Kt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,a=f):d=d.next=h,o|=p;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;p=s,s=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(d===null&&(a=f),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Ln|=o,e.lanes=o,e.memoizedState=f}}function ec(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(B(191,l));l.call(r)}}}var jl={},Lt=hn(jl),dl=hn(jl),fl=hn(jl);function Nn(e){if(e===jl)throw Error(B(174));return e}function La(e,t){switch(pe(fl,t),pe(dl,e),pe(Lt,jl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:os(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=os(t,e)}ge(Lt),pe(Lt,t)}function mr(){ge(Lt),ge(dl),ge(fl)}function Uf(e){Nn(fl.current);var t=Nn(Lt.current),n=os(t,e.type);t!==n&&(pe(dl,e),pe(Lt,n))}function za(e){dl.current===e&&(ge(Lt),ge(dl))}var ve=hn(0);function Ei(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Po=[];function Oa(){for(var e=0;e<Po.length;e++)Po[e]._workInProgressVersionPrimary=null;Po.length=0}var ti=Wt.ReactCurrentDispatcher,To=Wt.ReactCurrentBatchConfig,bn=0,ke=null,Te=null,be=null,Ni=!1,Yr=!1,pl=0,zg=0;function Me(){throw Error(B(321))}function Ra(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Aa(e,t,n,r,l,i){if(bn=i,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ti.current=e===null||e.memoizedState===null?Dg:Mg,e=n(r,l),Yr){i=0;do{if(Yr=!1,pl=0,25<=i)throw Error(B(301));i+=1,be=Te=null,t.updateQueue=null,ti.current=Fg,e=n(r,l)}while(Yr)}if(ti.current=Pi,t=Te!==null&&Te.next!==null,bn=0,be=Te=ke=null,Ni=!1,t)throw Error(B(300));return e}function Da(){var e=pl!==0;return pl=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?ke.memoizedState=be=e:be=be.next=e,be}function gt(){if(Te===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=be===null?ke.memoizedState:be.next;if(t!==null)be=t,Te=e;else{if(e===null)throw Error(B(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},be===null?ke.memoizedState=be=e:be=be.next=e}return be}function hl(e,t){return typeof t=="function"?t(e):t}function Io(e){var t=gt(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=Te,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var s=o=null,a=null,c=i;do{var d=c.lane;if((bn&d)===d)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(s=a=f,o=r):a=a.next=f,ke.lanes|=d,Ln|=d}c=c.next}while(c!==null&&c!==i);a===null?o=r:a.next=s,jt(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,ke.lanes|=i,Ln|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _o(e){var t=gt(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);jt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $f(){}function Vf(e,t){var n=ke,r=gt(),l=t(),i=!jt(r.memoizedState,l);if(i&&(r.memoizedState=l,Ke=!0),r=r.queue,Ma(Yf.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||be!==null&&be.memoizedState.tag&1){if(n.flags|=2048,ml(9,Wf.bind(null,n,r,l,t),void 0,null),Le===null)throw Error(B(349));bn&30||Hf(n,t,l)}return l}function Hf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wf(e,t,n,r){t.value=n,t.getSnapshot=r,Qf(t)&&qf(e)}function Yf(e,t,n){return n(function(){Qf(t)&&qf(e)})}function Qf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function qf(e){var t=Vt(e,1);t!==null&&Ct(t,e,1,-1)}function tc(e){var t=Pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:e},t.queue=e,e=e.dispatch=Ag.bind(null,ke,e),[t.memoizedState,e]}function ml(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Kf(){return gt().memoizedState}function ni(e,t,n,r){var l=Pt();ke.flags|=e,l.memoizedState=ml(1|t,n,void 0,r===void 0?null:r)}function Wi(e,t,n,r){var l=gt();r=r===void 0?null:r;var i=void 0;if(Te!==null){var o=Te.memoizedState;if(i=o.destroy,r!==null&&Ra(r,o.deps)){l.memoizedState=ml(t,n,i,r);return}}ke.flags|=e,l.memoizedState=ml(1|t,n,i,r)}function nc(e,t){return ni(8390656,8,e,t)}function Ma(e,t){return Wi(2048,8,e,t)}function Xf(e,t){return Wi(4,2,e,t)}function Jf(e,t){return Wi(4,4,e,t)}function Gf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zf(e,t,n){return n=n!=null?n.concat([e]):null,Wi(4,4,Gf.bind(null,t,e),n)}function Fa(){}function ep(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tp(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function np(e,t,n){return bn&21?(jt(n,t)||(n=sf(),ke.lanes|=n,Ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function Og(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=To.transition;To.transition={};try{e(!1),t()}finally{se=n,To.transition=r}}function rp(){return gt().memoizedState}function Rg(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lp(e))ip(t,n);else if(n=Ff(e,t,n,r),n!==null){var l=He();Ct(n,e,r,l),op(n,t,r)}}function Ag(e,t,n){var r=an(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lp(e))ip(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,jt(s,o)){var a=t.interleaved;a===null?(l.next=l,_a(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Ff(e,t,l,r),n!==null&&(l=He(),Ct(n,e,r,l),op(n,t,r))}}function lp(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function ip(e,t){Yr=Ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function op(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ga(e,n)}}var Pi={readContext:mt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},Dg={readContext:mt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:nc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ni(4194308,4,Gf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return ni(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rg.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:tc,useDebugValue:Fa,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=tc(!1),t=e[0];return e=Og.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,l=Pt();if(ye){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),Le===null)throw Error(B(349));bn&30||Hf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,nc(Yf.bind(null,r,i,e),[e]),r.flags|=2048,ml(9,Wf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Le.identifierPrefix;if(ye){var n=Ft,r=Mt;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mg={readContext:mt,useCallback:ep,useContext:mt,useEffect:Ma,useImperativeHandle:Zf,useInsertionEffect:Xf,useLayoutEffect:Jf,useMemo:tp,useReducer:Io,useRef:Kf,useState:function(){return Io(hl)},useDebugValue:Fa,useDeferredValue:function(e){var t=gt();return np(t,Te.memoizedState,e)},useTransition:function(){var e=Io(hl)[0],t=gt().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Vf,useId:rp,unstable_isNewReconciler:!1},Fg={readContext:mt,useCallback:ep,useContext:mt,useEffect:Ma,useImperativeHandle:Zf,useInsertionEffect:Xf,useLayoutEffect:Jf,useMemo:tp,useReducer:_o,useRef:Kf,useState:function(){return _o(hl)},useDebugValue:Fa,useDeferredValue:function(e){var t=gt();return Te===null?t.memoizedState=e:np(t,Te.memoizedState,e)},useTransition:function(){var e=_o(hl)[0],t=gt().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Vf,useId:rp,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ps(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yi={isMounted:function(e){return(e=e._reactInternals)?Rn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),l=an(e),i=Bt(r,l);i.payload=t,n!=null&&(i.callback=n),t=on(e,i,l),t!==null&&(Ct(t,e,l,r),ei(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),l=an(e),i=Bt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=on(e,i,l),t!==null&&(Ct(t,e,l,r),ei(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=an(e),l=Bt(n,r);l.tag=2,t!=null&&(l.callback=t),t=on(e,l,r),t!==null&&(Ct(t,e,r,n),ei(t,e,r))}};function rc(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!sl(n,r)||!sl(l,i):!0}function sp(e,t,n){var r=!1,l=fn,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(l=Je(t)?In:Ue.current,r=t.contextTypes,i=(r=r!=null)?fr(e,l):fn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function lc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Yi.enqueueReplaceState(t,t.state,null)}function Ts(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ba(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=mt(i):(i=Je(t)?In:Ue.current,l.context=fr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ps(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Yi.enqueueReplaceState(l,l.state,null),ji(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function gr(e,t){try{var n="",r=t;do n+=pm(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
37
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dr(e):""}function pm(e){switch(e.tag){case 5:return Dr(e.type);case 16:return Dr("Lazy");case 13:return Dr("Suspense");case 19:return Dr("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function es(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 Yn:return"Fragment";case Wn:return"Portal";case Jo:return"Profiler";case ca:return"StrictMode";case Go:return"Suspense";case Zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fd:return(e.displayName||"Context")+".Consumer";case Md:return(e._context.displayName||"Context")+".Provider";case da:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fa:return t=e.displayName||null,t!==null?t:es(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return es(e(t))}catch{}}return null}function hm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return es(t);case 8:return t===ca?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ud(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mm(e){var t=Ud(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bl(e){e._valueTracker||(e._valueTracker=mm(e))}function $d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ud(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ui(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 ts(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ku(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vd(e,t){t=t.checked,t!=null&&ua(e,"checked",t,!1)}function ns(e,t){Vd(e,t);var n=dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rs(e,t.type,n):t.hasOwnProperty("defaultValue")&&rs(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rs(e,t,n){(t!=="number"||ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function rr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dn(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function ls(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(B(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Su(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(B(92));if(Mr(n)){if(1<n.length)throw Error(B(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:dn(n)}}function Hd(e,t){var n=dn(t.value),r=dn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Cu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wd(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 is(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ll,Yd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ll=Ll||document.createElement("div"),Ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ur={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},gm=["Webkit","ms","Moz","O"];Object.keys(Ur).forEach(function(e){gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ur[t]=Ur[e]})});function Qd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ur.hasOwnProperty(e)&&Ur[e]?(""+t).trim():t+"px"}function qd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Qd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var ym=we({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 os(e,t){if(t){if(ym[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function ss(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var as=null;function pa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var us=null,lr=null,ir=null;function ju(e){if(e=Cl(e)){if(typeof us!="function")throw Error(B(280));var t=e.stateNode;t&&(t=Vi(t),us(e.stateNode,e.type,t))}}function Kd(e){lr?ir?ir.push(e):ir=[e]:lr=e}function Xd(){if(lr){var e=lr,t=ir;if(ir=lr=null,ju(e),t)for(e=0;e<t.length;e++)ju(t[e])}}function Jd(e,t){return e(t)}function Gd(){}var po=!1;function Zd(e,t,n){if(po)return e(t,n);po=!0;try{return Jd(e,t,n)}finally{po=!1,(lr!==null||ir!==null)&&(Gd(),Xd())}}function nl(e,t){var n=e.stateNode;if(n===null)return null;var r=Vi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(B(231,t,typeof n));return n}var cs=!1;if(Ut)try{var Tr={};Object.defineProperty(Tr,"passive",{get:function(){cs=!0}}),window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{cs=!1}function xm(e,t,n,r,l,i,o,s,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var $r=!1,ci=null,di=!1,ds=null,vm={onError:function(e){$r=!0,ci=e}};function km(e,t,n,r,l,i,o,s,a){$r=!1,ci=null,xm.apply(vm,arguments)}function wm(e,t,n,r,l,i,o,s,a){if(km.apply(this,arguments),$r){if($r){var c=ci;$r=!1,ci=null}else throw Error(B(198));di||(di=!0,ds=c)}}function Rn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ef(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Eu(e){if(Rn(e)!==e)throw Error(B(188))}function Sm(e){var t=e.alternate;if(!t){if(t=Rn(e),t===null)throw Error(B(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Eu(l),e;if(i===r)return Eu(l),t;i=i.sibling}throw Error(B(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o)throw Error(B(189))}}if(n.alternate!==r)throw Error(B(190))}if(n.tag!==3)throw Error(B(188));return n.stateNode.current===n?e:t}function tf(e){return e=Sm(e),e!==null?nf(e):null}function nf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nf(e);if(t!==null)return t;e=e.sibling}return null}var rf=st.unstable_scheduleCallback,Nu=st.unstable_cancelCallback,Cm=st.unstable_shouldYield,jm=st.unstable_requestPaint,je=st.unstable_now,Em=st.unstable_getCurrentPriorityLevel,ha=st.unstable_ImmediatePriority,lf=st.unstable_UserBlockingPriority,fi=st.unstable_NormalPriority,Nm=st.unstable_LowPriority,of=st.unstable_IdlePriority,Fi=null,bt=null;function Pm(e){if(bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Fi,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:_m,Tm=Math.log,Im=Math.LN2;function _m(e){return e>>>=0,e===0?32:31-(Tm(e)/Im|0)|0}var zl=64,Ol=4194304;function Fr(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 pi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Fr(s):(i&=o,i!==0&&(r=Fr(i)))}else o=n&~l,o!==0?r=Fr(o):i!==0&&(r=Fr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),l=1<<n,r|=e[n],t&=~l;return r}function bm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-St(i),s=1<<o,a=l[o];a===-1?(!(s&n)||s&r)&&(l[o]=bm(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function fs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sf(){var e=zl;return zl<<=1,!(zl&4194240)&&(zl=64),e}function ho(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function zm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-St(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function ma(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var se=0;function af(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uf,ga,cf,df,ff,ps=!1,Rl=[],tn=null,nn=null,rn=null,rl=new Map,ll=new Map,Xt=[],Om="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 Pu(e,t){switch(e){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":rl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ll.delete(t.pointerId)}}function Ir(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Cl(t),t!==null&&ga(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Rm(e,t,n,r,l){switch(t){case"focusin":return tn=Ir(tn,e,t,n,r,l),!0;case"dragenter":return nn=Ir(nn,e,t,n,r,l),!0;case"mouseover":return rn=Ir(rn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return rl.set(i,Ir(rl.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,ll.set(i,Ir(ll.get(i)||null,e,t,n,r,l)),!0}return!1}function pf(e){var t=jn(e.target);if(t!==null){var n=Rn(t);if(n!==null){if(t=n.tag,t===13){if(t=ef(n),t!==null){e.blockedOn=t,ff(e.priority,function(){cf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);as=r,n.target.dispatchEvent(r),as=null}else return t=Cl(n),t!==null&&ga(t),e.blockedOn=n,!1;t.shift()}return!0}function Tu(e,t,n){Jl(e)&&n.delete(t)}function Am(){ps=!1,tn!==null&&Jl(tn)&&(tn=null),nn!==null&&Jl(nn)&&(nn=null),rn!==null&&Jl(rn)&&(rn=null),rl.forEach(Tu),ll.forEach(Tu)}function _r(e,t){e.blockedOn===t&&(e.blockedOn=null,ps||(ps=!0,st.unstable_scheduleCallback(st.unstable_NormalPriority,Am)))}function il(e){function t(l){return _r(l,e)}if(0<Rl.length){_r(Rl[0],e);for(var n=1;n<Rl.length;n++){var r=Rl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tn!==null&&_r(tn,e),nn!==null&&_r(nn,e),rn!==null&&_r(rn,e),rl.forEach(t),ll.forEach(t),n=0;n<Xt.length;n++)r=Xt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xt.length&&(n=Xt[0],n.blockedOn===null);)pf(n),n.blockedOn===null&&Xt.shift()}var or=Wt.ReactCurrentBatchConfig,hi=!0;function Dm(e,t,n,r){var l=se,i=or.transition;or.transition=null;try{se=1,ya(e,t,n,r)}finally{se=l,or.transition=i}}function Mm(e,t,n,r){var l=se,i=or.transition;or.transition=null;try{se=4,ya(e,t,n,r)}finally{se=l,or.transition=i}}function ya(e,t,n,r){if(hi){var l=hs(e,t,n,r);if(l===null)jo(e,t,r,mi,n),Pu(e,r);else if(Rm(l,e,t,n,r))r.stopPropagation();else if(Pu(e,r),t&4&&-1<Om.indexOf(e)){for(;l!==null;){var i=Cl(l);if(i!==null&&uf(i),i=hs(e,t,n,r),i===null&&jo(e,t,r,mi,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else jo(e,t,r,null,n)}}var mi=null;function hs(e,t,n,r){if(mi=null,e=pa(r),e=jn(e),e!==null)if(t=Rn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ef(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mi=e,null}function hf(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(Em()){case ha:return 1;case lf:return 4;case fi:case Nm:return 16;case of:return 536870912;default:return 16}default:return 16}}var Gt=null,xa=null,Gl=null;function mf(){if(Gl)return Gl;var e,t=xa,n=t.length,r,l="value"in Gt?Gt.value:Gt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return Gl=l.slice(e,1<r?1-r:void 0)}function Zl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Al(){return!0}function Iu(){return!1}function ut(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Al:Iu,this.isPropagationStopped=Iu,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),t}var kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},va=ut(kr),Sl=we({},kr,{view:0,detail:0}),Fm=ut(Sl),mo,go,br,Bi=we({},Sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ka,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!==br&&(br&&e.type==="mousemove"?(mo=e.screenX-br.screenX,go=e.screenY-br.screenY):go=mo=0,br=e),mo)},movementY:function(e){return"movementY"in e?e.movementY:go}}),_u=ut(Bi),Bm=we({},Bi,{dataTransfer:0}),Um=ut(Bm),$m=we({},Sl,{relatedTarget:0}),yo=ut($m),Vm=we({},kr,{animationName:0,elapsedTime:0,pseudoElement:0}),Hm=ut(Vm),Wm=we({},kr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ym=ut(Wm),Qm=we({},kr,{data:0}),bu=ut(Qm),qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Km={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"},Xm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xm[e])?!!t[e]:!1}function ka(){return Jm}var Gm=we({},Sl,{key:function(e){if(e.key){var t=qm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Km[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ka,charCode:function(e){return e.type==="keypress"?Zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zm=ut(Gm),eg=we({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lu=ut(eg),tg=we({},Sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ka}),ng=ut(tg),rg=we({},kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),lg=ut(rg),ig=we({},Bi,{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}),og=ut(ig),sg=[9,13,27,32],wa=Ut&&"CompositionEvent"in window,Vr=null;Ut&&"documentMode"in document&&(Vr=document.documentMode);var ag=Ut&&"TextEvent"in window&&!Vr,gf=Ut&&(!wa||Vr&&8<Vr&&11>=Vr),zu=" ",Ou=!1;function yf(e,t){switch(e){case"keyup":return sg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qn=!1;function ug(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(Ou=!0,zu);case"textInput":return e=t.data,e===zu&&Ou?null:e;default:return null}}function cg(e,t){if(Qn)return e==="compositionend"||!wa&&yf(e,t)?(e=mf(),Gl=xa=Gt=null,Qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gf&&t.locale!=="ko"?null:t.data;default:return null}}var dg={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 Ru(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dg[e.type]:t==="textarea"}function vf(e,t,n,r){Kd(r),t=gi(t,"onChange"),0<t.length&&(n=new va("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hr=null,ol=null;function fg(e){_f(e,0)}function Ui(e){var t=Xn(e);if($d(t))return e}function pg(e,t){if(e==="change")return t}var kf=!1;if(Ut){var xo;if(Ut){var vo="oninput"in document;if(!vo){var Au=document.createElement("div");Au.setAttribute("oninput","return;"),vo=typeof Au.oninput=="function"}xo=vo}else xo=!1;kf=xo&&(!document.documentMode||9<document.documentMode)}function Du(){Hr&&(Hr.detachEvent("onpropertychange",wf),ol=Hr=null)}function wf(e){if(e.propertyName==="value"&&Ui(ol)){var t=[];vf(t,ol,e,pa(e)),Zd(fg,t)}}function hg(e,t,n){e==="focusin"?(Du(),Hr=t,ol=n,Hr.attachEvent("onpropertychange",wf)):e==="focusout"&&Du()}function mg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ui(ol)}function gg(e,t){if(e==="click")return Ui(t)}function yg(e,t){if(e==="input"||e==="change")return Ui(t)}function xg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:xg;function sl(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!Xo.call(t,l)||!jt(e[l],t[l]))return!1}return!0}function Mu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fu(e,t){var n=Mu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mu(n)}}function Sf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cf(){for(var e=window,t=ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ui(e.document)}return t}function Sa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vg(e){var t=Cf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sf(n.ownerDocument.documentElement,n)){if(r!==null&&Sa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Fu(n,i);var o=Fu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kg=Ut&&"documentMode"in document&&11>=document.documentMode,qn=null,ms=null,Wr=null,gs=!1;function Bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gs||qn==null||qn!==ui(r)||(r=qn,"selectionStart"in r&&Sa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&sl(Wr,r)||(Wr=r,r=gi(ms,"onSelect"),0<r.length&&(t=new va("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qn)))}function Dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kn={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionend:Dl("Transition","TransitionEnd")},ko={},jf={};Ut&&(jf=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function $i(e){if(ko[e])return ko[e];if(!Kn[e])return e;var t=Kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jf)return ko[e]=t[n];return e}var Ef=$i("animationend"),Nf=$i("animationiteration"),Pf=$i("animationstart"),Tf=$i("transitionend"),If=new Map,Uu="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 pn(e,t){If.set(e,t),On(t,[e])}for(var wo=0;wo<Uu.length;wo++){var So=Uu[wo],wg=So.toLowerCase(),Sg=So[0].toUpperCase()+So.slice(1);pn(wg,"on"+Sg)}pn(Ef,"onAnimationEnd");pn(Nf,"onAnimationIteration");pn(Pf,"onAnimationStart");pn("dblclick","onDoubleClick");pn("focusin","onFocus");pn("focusout","onBlur");pn(Tf,"onTransitionEnd");dr("onMouseEnter",["mouseout","mouseover"]);dr("onMouseLeave",["mouseout","mouseover"]);dr("onPointerEnter",["pointerout","pointerover"]);dr("onPointerLeave",["pointerout","pointerover"]);On("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));On("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));On("onBeforeInput",["compositionend","keypress","textInput","paste"]);On("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));On("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));On("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),Cg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function $u(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,wm(r,t,void 0,e),e.currentTarget=null}function _f(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,c=s.currentTarget;if(s=s.listener,a!==i&&l.isPropagationStopped())break e;$u(l,s,c),i=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,c=s.currentTarget,s=s.listener,a!==i&&l.isPropagationStopped())break e;$u(l,s,c),i=a}}}if(di)throw e=ds,di=!1,ds=null,e}function he(e,t){var n=t[ws];n===void 0&&(n=t[ws]=new Set);var r=e+"__bubble";n.has(r)||(bf(t,e,2,!1),n.add(r))}function Co(e,t,n){var r=0;t&&(r|=4),bf(n,e,r,t)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function al(e){if(!e[Ml]){e[Ml]=!0,Dd.forEach(function(n){n!=="selectionchange"&&(Cg.has(n)||Co(n,!1,e),Co(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ml]||(t[Ml]=!0,Co("selectionchange",!1,t))}}function bf(e,t,n,r){switch(hf(t)){case 1:var l=Dm;break;case 4:l=Mm;break;default:l=ya}n=l.bind(null,t,n,e),l=void 0,!cs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function jo(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;o=o.return}for(;s!==null;){if(o=jn(s),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}s=s.parentNode}}r=r.return}Zd(function(){var c=i,d=pa(n),f=[];e:{var p=If.get(e);if(p!==void 0){var h=va,v=e;switch(e){case"keypress":if(Zl(n)===0)break e;case"keydown":case"keyup":h=Zm;break;case"focusin":v="focus",h=yo;break;case"focusout":v="blur",h=yo;break;case"beforeblur":case"afterblur":h=yo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=_u;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Um;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=ng;break;case Ef:case Nf:case Pf:h=Hm;break;case Tf:h=lg;break;case"scroll":h=Fm;break;case"wheel":h=og;break;case"copy":case"cut":case"paste":h=Ym;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Lu}var w=(t&4)!==0,E=!w&&e==="scroll",m=w?p!==null?p+"Capture":null:p;w=[];for(var y=c,x;y!==null;){x=y;var C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,m!==null&&(C=nl(y,m),C!=null&&w.push(ul(y,C,x)))),E)break;y=y.return}0<w.length&&(p=new h(p,v,null,n,d),f.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==as&&(v=n.relatedTarget||n.fromElement)&&(jn(v)||v[$t]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=c,v=v?jn(v):null,v!==null&&(E=Rn(v),v!==E||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=c),h!==v)){if(w=_u,C="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(w=Lu,C="onPointerLeave",m="onPointerEnter",y="pointer"),E=h==null?p:Xn(h),x=v==null?p:Xn(v),p=new w(C,y+"leave",h,n,d),p.target=E,p.relatedTarget=x,C=null,jn(d)===c&&(w=new w(m,y+"enter",v,n,d),w.target=x,w.relatedTarget=E,C=w),E=C,h&&v)t:{for(w=h,m=v,y=0,x=w;x;x=Bn(x))y++;for(x=0,C=m;C;C=Bn(C))x++;for(;0<y-x;)w=Bn(w),y--;for(;0<x-y;)m=Bn(m),x--;for(;y--;){if(w===m||m!==null&&w===m.alternate)break t;w=Bn(w),m=Bn(m)}w=null}else w=null;h!==null&&Vu(f,p,h,w,!1),v!==null&&E!==null&&Vu(f,E,v,w,!0)}}e:{if(p=c?Xn(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var P=pg;else if(Ru(p))if(kf)P=yg;else{P=mg;var S=hg}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=gg);if(P&&(P=P(e,c))){vf(f,P,n,d);break e}S&&S(e,p,c),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&rs(p,"number",p.value)}switch(S=c?Xn(c):window,e){case"focusin":(Ru(S)||S.contentEditable==="true")&&(qn=S,ms=c,Wr=null);break;case"focusout":Wr=ms=qn=null;break;case"mousedown":gs=!0;break;case"contextmenu":case"mouseup":case"dragend":gs=!1,Bu(f,n,d);break;case"selectionchange":if(kg)break;case"keydown":case"keyup":Bu(f,n,d)}var L;if(wa)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Qn?yf(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(gf&&n.locale!=="ko"&&(Qn||D!=="onCompositionStart"?D==="onCompositionEnd"&&Qn&&(L=mf()):(Gt=d,xa="value"in Gt?Gt.value:Gt.textContent,Qn=!0)),S=gi(c,D),0<S.length&&(D=new bu(D,e,null,n,d),f.push({event:D,listeners:S}),L?D.data=L:(L=xf(n),L!==null&&(D.data=L)))),(L=ag?ug(e,n):cg(e,n))&&(c=gi(c,"onBeforeInput"),0<c.length&&(d=new bu("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=L))}_f(f,t)})}function ul(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gi(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=nl(e,n),i!=null&&r.unshift(ul(e,i,l)),i=nl(e,t),i!=null&&r.push(ul(e,i,l))),e=e.return}return r}function Bn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vu(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,c=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&c!==null&&(s=c,l?(a=nl(n,i),a!=null&&o.unshift(ul(n,a,s))):l||(a=nl(n,i),a!=null&&o.push(ul(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jg=/\r\n?/g,Eg=/\u0000|\uFFFD/g;function Hu(e){return(typeof e=="string"?e:""+e).replace(jg,`
|
|
38
|
+
`).replace(Eg,"")}function Fl(e,t,n){if(t=Hu(t),Hu(e)!==t&&n)throw Error(B(425))}function yi(){}var ys=null,xs=null;function vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ks=typeof setTimeout=="function"?setTimeout:void 0,Ng=typeof clearTimeout=="function"?clearTimeout:void 0,Wu=typeof Promise=="function"?Promise:void 0,Pg=typeof queueMicrotask=="function"?queueMicrotask:typeof Wu<"u"?function(e){return Wu.resolve(null).then(e).catch(Tg)}:ks;function Tg(e){setTimeout(function(){throw e})}function Eo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),il(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);il(t)}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Yu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var wr=Math.random().toString(36).slice(2),It="__reactFiber$"+wr,cl="__reactProps$"+wr,$t="__reactContainer$"+wr,ws="__reactEvents$"+wr,Ig="__reactListeners$"+wr,_g="__reactHandles$"+wr;function jn(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Yu(e);e!==null;){if(n=e[It])return n;e=Yu(e)}return t}e=n,n=e.parentNode}return null}function Cl(e){return e=e[It]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(B(33))}function Vi(e){return e[cl]||null}var Ss=[],Jn=-1;function hn(e){return{current:e}}function me(e){0>Jn||(e.current=Ss[Jn],Ss[Jn]=null,Jn--)}function fe(e,t){Jn++,Ss[Jn]=e.current,e.current=t}var fn={},Ue=hn(fn),Xe=hn(!1),In=fn;function fr(e,t){var n=e.type.contextTypes;if(!n)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Je(e){return e=e.childContextTypes,e!=null}function xi(){me(Xe),me(Ue)}function Qu(e,t,n){if(Ue.current!==fn)throw Error(B(168));fe(Ue,t),fe(Xe,n)}function Lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(B(108,hm(e)||"Unknown",l));return we({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,In=Ue.current,fe(Ue,e),fe(Xe,Xe.current),!0}function qu(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=Lf(e,t,In),r.__reactInternalMemoizedMergedChildContext=e,me(Xe),me(Ue),fe(Ue,e)):me(Xe),fe(Xe,n)}var Dt=null,Hi=!1,No=!1;function zf(e){Dt===null?Dt=[e]:Dt.push(e)}function bg(e){Hi=!0,zf(e)}function mn(){if(!No&&Dt!==null){No=!0;var e=0,t=se;try{var n=Dt;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,Hi=!1}catch(l){throw Dt!==null&&(Dt=Dt.slice(e+1)),rf(ha,mn),l}finally{se=t,No=!1}}return null}var Gn=[],Zn=0,ki=null,wi=0,ct=[],dt=0,_n=null,Mt=1,Ft="";function kn(e,t){Gn[Zn++]=wi,Gn[Zn++]=ki,ki=e,wi=t}function Of(e,t,n){ct[dt++]=Mt,ct[dt++]=Ft,ct[dt++]=_n,_n=e;var r=Mt;e=Ft;var l=32-St(r)-1;r&=~(1<<l),n+=1;var i=32-St(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Mt=1<<32-St(t)+l|n<<l|r,Ft=i+e}else Mt=1<<i|n<<l|r,Ft=e}function Ca(e){e.return!==null&&(kn(e,1),Of(e,1,0))}function ja(e){for(;e===ki;)ki=Gn[--Zn],Gn[Zn]=null,wi=Gn[--Zn],Gn[Zn]=null;for(;e===_n;)_n=ct[--dt],ct[dt]=null,Ft=ct[--dt],ct[dt]=null,Mt=ct[--dt],ct[dt]=null}var ot=null,lt=null,ge=!1,wt=null;function Rf(e,t){var n=pt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ku(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ot=e,lt=ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_n!==null?{id:Mt,overflow:Ft}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,lt=null,!0):!1;default:return!1}}function Cs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function js(e){if(ge){var t=lt;if(t){var n=t;if(!Ku(e,t)){if(Cs(e))throw Error(B(418));t=ln(n.nextSibling);var r=ot;t&&Ku(e,t)?Rf(r,n):(e.flags=e.flags&-4097|2,ge=!1,ot=e)}}else{if(Cs(e))throw Error(B(418));e.flags=e.flags&-4097|2,ge=!1,ot=e}}}function Xu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Bl(e){if(e!==ot)return!1;if(!ge)return Xu(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vs(e.type,e.memoizedProps)),t&&(t=lt)){if(Cs(e))throw Af(),Error(B(418));for(;t;)Rf(e,t),t=ln(t.nextSibling)}if(Xu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ot?ln(e.stateNode.nextSibling):null;return!0}function Af(){for(var e=lt;e;)e=ln(e.nextSibling)}function pr(){lt=ot=null,ge=!1}function Ea(e){wt===null?wt=[e]:wt.push(e)}var Lg=Wt.ReactCurrentBatchConfig;function Lr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(B(309));var r=n.stateNode}if(!r)throw Error(B(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var s=l.refs;o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(B(284));if(!n._owner)throw Error(B(290,e))}return e}function Ul(e,t){throw e=Object.prototype.toString.call(t),Error(B(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ju(e){var t=e._init;return t(e._payload)}function Df(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function l(m,y){return m=un(m,y),m.index=0,m.sibling=null,m}function i(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=2,y):x):(m.flags|=2,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,y,x,C){return y===null||y.tag!==6?(y=zo(x,m.mode,C),y.return=m,y):(y=l(y,x),y.return=m,y)}function a(m,y,x,C){var P=x.type;return P===Yn?d(m,y,x.props.children,C,x.key):y!==null&&(y.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&Ju(P)===y.type)?(C=l(y,x.props),C.ref=Lr(m,y,x),C.return=m,C):(C=oi(x.type,x.key,x.props,null,m.mode,C),C.ref=Lr(m,y,x),C.return=m,C)}function c(m,y,x,C){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Oo(x,m.mode,C),y.return=m,y):(y=l(y,x.children||[]),y.return=m,y)}function d(m,y,x,C,P){return y===null||y.tag!==7?(y=Tn(x,m.mode,C,P),y.return=m,y):(y=l(y,x),y.return=m,y)}function f(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=zo(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _l:return x=oi(y.type,y.key,y.props,null,m.mode,x),x.ref=Lr(m,null,y),x.return=m,x;case Wn:return y=Oo(y,m.mode,x),y.return=m,y;case qt:var C=y._init;return f(m,C(y._payload),x)}if(Mr(y)||Pr(y))return y=Tn(y,m.mode,x,null),y.return=m,y;Ul(m,y)}return null}function p(m,y,x,C){var P=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return P!==null?null:s(m,y,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case _l:return x.key===P?a(m,y,x,C):null;case Wn:return x.key===P?c(m,y,x,C):null;case qt:return P=x._init,p(m,y,P(x._payload),C)}if(Mr(x)||Pr(x))return P!==null?null:d(m,y,x,C,null);Ul(m,x)}return null}function h(m,y,x,C,P){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(x)||null,s(y,m,""+C,P);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case _l:return m=m.get(C.key===null?x:C.key)||null,a(y,m,C,P);case Wn:return m=m.get(C.key===null?x:C.key)||null,c(y,m,C,P);case qt:var S=C._init;return h(m,y,x,S(C._payload),P)}if(Mr(C)||Pr(C))return m=m.get(x)||null,d(y,m,C,P,null);Ul(y,C)}return null}function v(m,y,x,C){for(var P=null,S=null,L=y,D=y=0,W=null;L!==null&&D<x.length;D++){L.index>D?(W=L,L=null):W=L.sibling;var R=p(m,L,x[D],C);if(R===null){L===null&&(L=W);break}e&&L&&R.alternate===null&&t(m,L),y=i(R,y,D),S===null?P=R:S.sibling=R,S=R,L=W}if(D===x.length)return n(m,L),ge&&kn(m,D),P;if(L===null){for(;D<x.length;D++)L=f(m,x[D],C),L!==null&&(y=i(L,y,D),S===null?P=L:S.sibling=L,S=L);return ge&&kn(m,D),P}for(L=r(m,L);D<x.length;D++)W=h(L,m,D,x[D],C),W!==null&&(e&&W.alternate!==null&&L.delete(W.key===null?D:W.key),y=i(W,y,D),S===null?P=W:S.sibling=W,S=W);return e&&L.forEach(function(z){return t(m,z)}),ge&&kn(m,D),P}function w(m,y,x,C){var P=Pr(x);if(typeof P!="function")throw Error(B(150));if(x=P.call(x),x==null)throw Error(B(151));for(var S=P=null,L=y,D=y=0,W=null,R=x.next();L!==null&&!R.done;D++,R=x.next()){L.index>D?(W=L,L=null):W=L.sibling;var z=p(m,L,R.value,C);if(z===null){L===null&&(L=W);break}e&&L&&z.alternate===null&&t(m,L),y=i(z,y,D),S===null?P=z:S.sibling=z,S=z,L=W}if(R.done)return n(m,L),ge&&kn(m,D),P;if(L===null){for(;!R.done;D++,R=x.next())R=f(m,R.value,C),R!==null&&(y=i(R,y,D),S===null?P=R:S.sibling=R,S=R);return ge&&kn(m,D),P}for(L=r(m,L);!R.done;D++,R=x.next())R=h(L,m,D,R.value,C),R!==null&&(e&&R.alternate!==null&&L.delete(R.key===null?D:R.key),y=i(R,y,D),S===null?P=R:S.sibling=R,S=R);return e&&L.forEach(function(H){return t(m,H)}),ge&&kn(m,D),P}function E(m,y,x,C){if(typeof x=="object"&&x!==null&&x.type===Yn&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case _l:e:{for(var P=x.key,S=y;S!==null;){if(S.key===P){if(P=x.type,P===Yn){if(S.tag===7){n(m,S.sibling),y=l(S,x.props.children),y.return=m,m=y;break e}}else if(S.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&Ju(P)===S.type){n(m,S.sibling),y=l(S,x.props),y.ref=Lr(m,S,x),y.return=m,m=y;break e}n(m,S);break}else t(m,S);S=S.sibling}x.type===Yn?(y=Tn(x.props.children,m.mode,C,x.key),y.return=m,m=y):(C=oi(x.type,x.key,x.props,null,m.mode,C),C.ref=Lr(m,y,x),C.return=m,m=C)}return o(m);case Wn:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),y=l(y,x.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=Oo(x,m.mode,C),y.return=m,m=y}return o(m);case qt:return S=x._init,E(m,y,S(x._payload),C)}if(Mr(x))return v(m,y,x,C);if(Pr(x))return w(m,y,x,C);Ul(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),y=l(y,x),y.return=m,m=y):(n(m,y),y=zo(x,m.mode,C),y.return=m,m=y),o(m)):n(m,y)}return E}var hr=Df(!0),Mf=Df(!1),Si=hn(null),Ci=null,er=null,Na=null;function Pa(){Na=er=Ci=null}function Ta(e){var t=Si.current;me(Si),e._currentValue=t}function Es(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sr(e,t){Ci=e,Na=er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Na!==e)if(e={context:e,memoizedValue:t,next:null},er===null){if(Ci===null)throw Error(B(308));er=e,Ci.dependencies={lanes:0,firstContext:e}}else er=er.next=e;return t}var En=null;function Ia(e){En===null?En=[e]:En.push(e)}function Ff(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ia(t)):(n.next=l.next,l.next=n),t.interleaved=n,Vt(e,r)}function Vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function _a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Vt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ia(r)):(t.next=l.next,l.next=t),r.interleaved=t,Vt(e,n)}function ei(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ma(e,n)}}function Gu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ji(e,t,n,r){var l=e.updateQueue;Kt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==o&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=a))}if(i!==null){var f=l.baseState;o=0,d=c=a=null,s=i;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,w=s;switch(p=t,h=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=we({},f,p);break e;case 2:Kt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,a=f):d=d.next=h,o|=p;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;p=s,s=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(d===null&&(a=f),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Ln|=o,e.lanes=o,e.memoizedState=f}}function Zu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(B(191,l));l.call(r)}}}var jl={},Lt=hn(jl),dl=hn(jl),fl=hn(jl);function Nn(e){if(e===jl)throw Error(B(174));return e}function ba(e,t){switch(fe(fl,t),fe(dl,e),fe(Lt,jl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:is(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=is(t,e)}me(Lt),fe(Lt,t)}function mr(){me(Lt),me(dl),me(fl)}function Uf(e){Nn(fl.current);var t=Nn(Lt.current),n=is(t,e.type);t!==n&&(fe(dl,e),fe(Lt,n))}function La(e){dl.current===e&&(me(Lt),me(dl))}var ve=hn(0);function Ei(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Po=[];function za(){for(var e=0;e<Po.length;e++)Po[e]._workInProgressVersionPrimary=null;Po.length=0}var ti=Wt.ReactCurrentDispatcher,To=Wt.ReactCurrentBatchConfig,bn=0,ke=null,Te=null,be=null,Ni=!1,Yr=!1,pl=0,zg=0;function Me(){throw Error(B(321))}function Oa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Ra(e,t,n,r,l,i){if(bn=i,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ti.current=e===null||e.memoizedState===null?Dg:Mg,e=n(r,l),Yr){i=0;do{if(Yr=!1,pl=0,25<=i)throw Error(B(301));i+=1,be=Te=null,t.updateQueue=null,ti.current=Fg,e=n(r,l)}while(Yr)}if(ti.current=Pi,t=Te!==null&&Te.next!==null,bn=0,be=Te=ke=null,Ni=!1,t)throw Error(B(300));return e}function Aa(){var e=pl!==0;return pl=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?ke.memoizedState=be=e:be=be.next=e,be}function gt(){if(Te===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=be===null?ke.memoizedState:be.next;if(t!==null)be=t,Te=e;else{if(e===null)throw Error(B(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},be===null?ke.memoizedState=be=e:be=be.next=e}return be}function hl(e,t){return typeof t=="function"?t(e):t}function Io(e){var t=gt(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=Te,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var s=o=null,a=null,c=i;do{var d=c.lane;if((bn&d)===d)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(s=a=f,o=r):a=a.next=f,ke.lanes|=d,Ln|=d}c=c.next}while(c!==null&&c!==i);a===null?o=r:a.next=s,jt(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,ke.lanes|=i,Ln|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _o(e){var t=gt(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);jt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $f(){}function Vf(e,t){var n=ke,r=gt(),l=t(),i=!jt(r.memoizedState,l);if(i&&(r.memoizedState=l,Ke=!0),r=r.queue,Da(Yf.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||be!==null&&be.memoizedState.tag&1){if(n.flags|=2048,ml(9,Wf.bind(null,n,r,l,t),void 0,null),Le===null)throw Error(B(349));bn&30||Hf(n,t,l)}return l}function Hf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wf(e,t,n,r){t.value=n,t.getSnapshot=r,Qf(t)&&qf(e)}function Yf(e,t,n){return n(function(){Qf(t)&&qf(e)})}function Qf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function qf(e){var t=Vt(e,1);t!==null&&Ct(t,e,1,-1)}function ec(e){var t=Pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:e},t.queue=e,e=e.dispatch=Ag.bind(null,ke,e),[t.memoizedState,e]}function ml(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Kf(){return gt().memoizedState}function ni(e,t,n,r){var l=Pt();ke.flags|=e,l.memoizedState=ml(1|t,n,void 0,r===void 0?null:r)}function Wi(e,t,n,r){var l=gt();r=r===void 0?null:r;var i=void 0;if(Te!==null){var o=Te.memoizedState;if(i=o.destroy,r!==null&&Oa(r,o.deps)){l.memoizedState=ml(t,n,i,r);return}}ke.flags|=e,l.memoizedState=ml(1|t,n,i,r)}function tc(e,t){return ni(8390656,8,e,t)}function Da(e,t){return Wi(2048,8,e,t)}function Xf(e,t){return Wi(4,2,e,t)}function Jf(e,t){return Wi(4,4,e,t)}function Gf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zf(e,t,n){return n=n!=null?n.concat([e]):null,Wi(4,4,Gf.bind(null,t,e),n)}function Ma(){}function ep(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tp(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function np(e,t,n){return bn&21?(jt(n,t)||(n=sf(),ke.lanes|=n,Ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function Og(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=To.transition;To.transition={};try{e(!1),t()}finally{se=n,To.transition=r}}function rp(){return gt().memoizedState}function Rg(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lp(e))ip(t,n);else if(n=Ff(e,t,n,r),n!==null){var l=He();Ct(n,e,r,l),op(n,t,r)}}function Ag(e,t,n){var r=an(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lp(e))ip(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,jt(s,o)){var a=t.interleaved;a===null?(l.next=l,Ia(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Ff(e,t,l,r),n!==null&&(l=He(),Ct(n,e,r,l),op(n,t,r))}}function lp(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function ip(e,t){Yr=Ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function op(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ma(e,n)}}var Pi={readContext:mt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},Dg={readContext:mt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:tc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ni(4194308,4,Gf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return ni(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rg.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:ec,useDebugValue:Ma,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=ec(!1),t=e[0];return e=Og.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,l=Pt();if(ge){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),Le===null)throw Error(B(349));bn&30||Hf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,tc(Yf.bind(null,r,i,e),[e]),r.flags|=2048,ml(9,Wf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Le.identifierPrefix;if(ge){var n=Ft,r=Mt;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mg={readContext:mt,useCallback:ep,useContext:mt,useEffect:Da,useImperativeHandle:Zf,useInsertionEffect:Xf,useLayoutEffect:Jf,useMemo:tp,useReducer:Io,useRef:Kf,useState:function(){return Io(hl)},useDebugValue:Ma,useDeferredValue:function(e){var t=gt();return np(t,Te.memoizedState,e)},useTransition:function(){var e=Io(hl)[0],t=gt().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Vf,useId:rp,unstable_isNewReconciler:!1},Fg={readContext:mt,useCallback:ep,useContext:mt,useEffect:Da,useImperativeHandle:Zf,useInsertionEffect:Xf,useLayoutEffect:Jf,useMemo:tp,useReducer:_o,useRef:Kf,useState:function(){return _o(hl)},useDebugValue:Ma,useDeferredValue:function(e){var t=gt();return Te===null?t.memoizedState=e:np(t,Te.memoizedState,e)},useTransition:function(){var e=_o(hl)[0],t=gt().memoizedState;return[e,t]},useMutableSource:$f,useSyncExternalStore:Vf,useId:rp,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ns(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yi={isMounted:function(e){return(e=e._reactInternals)?Rn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),l=an(e),i=Bt(r,l);i.payload=t,n!=null&&(i.callback=n),t=on(e,i,l),t!==null&&(Ct(t,e,l,r),ei(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),l=an(e),i=Bt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=on(e,i,l),t!==null&&(Ct(t,e,l,r),ei(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=an(e),l=Bt(n,r);l.tag=2,t!=null&&(l.callback=t),t=on(e,l,r),t!==null&&(Ct(t,e,r,n),ei(t,e,r))}};function nc(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!sl(n,r)||!sl(l,i):!0}function sp(e,t,n){var r=!1,l=fn,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(l=Je(t)?In:Ue.current,r=t.contextTypes,i=(r=r!=null)?fr(e,l):fn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function rc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Yi.enqueueReplaceState(t,t.state,null)}function Ps(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},_a(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=mt(i):(i=Je(t)?In:Ue.current,l.context=fr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ns(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Yi.enqueueReplaceState(l,l.state,null),ji(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function gr(e,t){try{var n="",r=t;do n+=pm(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
39
39
|
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function bo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Is(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bg=typeof WeakMap=="function"?WeakMap:Map;function ap(e,t,n){n=Bt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ii||(Ii=!0,Fs=r),Is(e,t)},n}function up(e,t,n){n=Bt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Is(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Is(e,t),typeof r!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ic(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bg;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=ey.bind(null,e,t,n),t.then(e,e))}function oc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sc(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Bt(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e)}var Ug=Wt.ReactCurrentOwner,Ke=!1;function Ve(e,t,n,r){t.child=e===null?Mf(t,null,n,r):hr(t,e.child,n,r)}function ac(e,t,n,r,l){n=n.render;var i=t.ref;return sr(t,l),r=Aa(e,t,n,r,i,l),n=Da(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(ye&&n&&ja(t),t.flags|=1,Ve(e,t,r,l),t.child)}function uc(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Qa(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,cp(e,t,i,r,l)):(e=oi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:sl,n(o,r)&&e.ref===t.ref)return Ht(e,t,l)}return t.flags|=1,e=un(i,r),e.ref=t.ref,e.return=t,t.child=e}function cp(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(sl(i,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,Ht(e,t,l)}return _s(e,t,n,r,l)}function dp(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(nr,rt),rt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(nr,rt),rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pe(nr,rt),rt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pe(nr,rt),rt|=r;return Ve(e,t,l,n),t.child}function fp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,l){var i=Je(n)?In:Ue.current;return i=fr(t,i),sr(t,l),n=Aa(e,t,n,r,i,l),r=Da(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(ye&&r&&ja(t),t.flags|=1,Ve(e,t,n,l),t.child)}function cc(e,t,n,r,l){if(Je(n)){var i=!0;vi(t)}else i=!1;if(sr(t,l),t.stateNode===null)ri(e,t),sp(t,n,r),Ts(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=mt(c):(c=Je(n)?In:Ue.current,c=fr(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==c)&&lc(t,o,r,c),Kt=!1;var p=t.memoizedState;o.state=p,ji(t,r,o,l),a=t.memoizedState,s!==r||p!==a||Xe.current||Kt?(typeof d=="function"&&(Ps(t,n,d,r),a=t.memoizedState),(s=Kt||rc(t,n,s,r,p,a,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Bf(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:vt(t.type,s),o.props=c,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=mt(a):(a=Je(n)?In:Ue.current,a=fr(t,a));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||p!==a)&&lc(t,o,r,a),Kt=!1,p=t.memoizedState,o.state=p,ji(t,r,o,l);var v=t.memoizedState;s!==f||p!==v||Xe.current||Kt?(typeof h=="function"&&(Ps(t,n,h,r),v=t.memoizedState),(c=Kt||rc(t,n,c,r,p,v,a)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return bs(e,t,n,r,i,l)}function bs(e,t,n,r,l,i){fp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Ku(t,n,!1),Ht(e,t,i);r=t.stateNode,Ug.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=hr(t,e.child,null,i),t.child=hr(t,null,s,i)):Ve(e,t,s,i),t.memoizedState=r.state,l&&Ku(t,n,!0),t.child}function pp(e){var t=e.stateNode;t.pendingContext?qu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qu(e,t.context,!1),La(e,t.containerInfo)}function dc(e,t,n,r,l){return pr(),Na(l),t.flags|=256,Ve(e,t,n,r),t.child}var Ls={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function hp(e,t,n){var r=t.pendingProps,l=ve.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),pe(ve,l&1),e===null)return Es(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ki(o,r,0,null),e=Tn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=zs(n),t.memoizedState=Ls,e):Ba(t,o));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return $g(e,t,o,r,s,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,s=l.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=un(l,a),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=un(s,i):(i=Tn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?zs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ls,r}return i=e.child,e=i.sibling,r=un(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ba(e,t){return t=Ki({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $l(e,t,n,r){return r!==null&&Na(r),hr(t,e.child,null,n),e=Ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $g(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=bo(Error(B(422))),$l(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Ki({mode:"visible",children:r.children},l,0,null),i=Tn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&hr(t,e.child,null,o),t.child.memoizedState=zs(o),t.memoizedState=Ls,i);if(!(t.mode&1))return $l(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(B(419)),r=bo(i,r,void 0),$l(e,t,o,r)}if(s=(o&e.childLanes)!==0,Ke||s){if(r=Le,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Vt(e,l),Ct(r,e,l,-1))}return Ya(),r=bo(Error(B(421))),$l(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=ty.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,lt=ln(l.nextSibling),ot=t,ye=!0,wt=null,e!==null&&(ct[dt++]=Mt,ct[dt++]=Ft,ct[dt++]=_n,Mt=e.id,Ft=e.overflow,_n=t),t=Ba(t,r.children),t.flags|=4096,t)}function fc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ns(e.return,t,n)}function Lo(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function mp(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Ve(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fc(e,n,t);else if(e.tag===19)fc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pe(ve,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ei(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Lo(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ei(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Lo(t,!0,n,null,i);break;case"together":Lo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ri(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(B(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vg(e,t,n){switch(t.tag){case 3:pp(t),pr();break;case 5:Uf(t);break;case 1:Je(t.type)&&vi(t);break;case 4:La(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;pe(Si,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?hp(e,t,n):(pe(ve,ve.current&1),e=Ht(e,t,n),e!==null?e.sibling:null);pe(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mp(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),pe(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,dp(e,t,n)}return Ht(e,t,n)}var gp,Os,yp,xp;gp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Os=function(){};yp=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Nn(Lt.current);var i=null;switch(n){case"input":l=ns(e,l),r=ns(e,r),i=[];break;case"select":l=we({},l,{value:void 0}),r=we({},r,{value:void 0}),i=[];break;case"textarea":l=is(e,l),r=is(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=yi)}ss(n,r);var o;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var s=l[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(el.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var a=r[c];if(s=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&a!==s&&(a!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(el.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&me("scroll",e),i||s===a||(i=[])):(i=i||[]).push(c,a))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};xp=function(e,t,n,r){n!==r&&(t.flags|=4)};function zr(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hg(e,t,n){var r=t.pendingProps;switch(Ea(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Je(t.type)&&xi(),Fe(t),null;case 3:return r=t.stateNode,mr(),ge(Xe),ge(Ue),Oa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&($s(wt),wt=null))),Os(e,t),Fe(t),null;case 5:za(t);var l=Nn(fl.current);if(n=t.type,e!==null&&t.stateNode!=null)yp(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(B(166));return Fe(t),null}if(e=Nn(Lt.current),Bl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[It]=t,r[cl]=i,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(l=0;l<Br.length;l++)me(Br[l],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":wu(r,i),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},me("invalid",r);break;case"textarea":Cu(r,i),me("invalid",r)}ss(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Fl(r.textContent,s,e),l=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Fl(r.textContent,s,e),l=["children",""+s]):el.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&me("scroll",r)}switch(n){case"input":bl(r),Su(r,i,!0);break;case"textarea":bl(r),ju(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=yi)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[It]=t,e[cl]=r,gp(e,t,!1,!1),t.stateNode=e;e:{switch(o=as(n,r),n){case"dialog":me("cancel",e),me("close",e),l=r;break;case"iframe":case"object":case"embed":me("load",e),l=r;break;case"video":case"audio":for(l=0;l<Br.length;l++)me(Br[l],e);l=r;break;case"source":me("error",e),l=r;break;case"img":case"image":case"link":me("error",e),me("load",e),l=r;break;case"details":me("toggle",e),l=r;break;case"input":wu(e,r),l=ns(e,r),me("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=we({},r,{value:void 0}),me("invalid",e);break;case"textarea":Cu(e,r),l=is(e,r),me("invalid",e);break;default:l=r}ss(n,l),s=l;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?qd(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Yd(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&tl(e,a):typeof a=="number"&&tl(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(el.hasOwnProperty(i)?a!=null&&i==="onScroll"&&me("scroll",e):a!=null&&ca(e,i,a,o))}switch(n){case"input":bl(e),Su(e,r,!1);break;case"textarea":bl(e),ju(e);break;case"option":r.value!=null&&e.setAttribute("value",""+dn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?rr(e,!!r.multiple,i,!1):r.defaultValue!=null&&rr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=yi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)xp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(B(166));if(n=Nn(fl.current),Nn(Lt.current),Bl(t)){if(r=t.stateNode,n=t.memoizedProps,r[It]=t,(i=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:Fl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[It]=t,t.stateNode=r}return Fe(t),null;case 13:if(ge(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&<!==null&&t.mode&1&&!(t.flags&128))Af(),pr(),t.flags|=98560,i=!1;else if(i=Bl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(B(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(B(317));i[It]=t}else pr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),i=!1}else wt!==null&&($s(wt),wt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Ie===0&&(Ie=3):Ya())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return mr(),Os(e,t),e===null&&al(t.stateNode.containerInfo),Fe(t),null;case 10:return Ia(t.type._context),Fe(t),null;case 17:return Je(t.type)&&xi(),Fe(t),null;case 19:if(ge(ve),i=t.memoizedState,i===null)return Fe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)zr(i,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ei(e),o!==null){for(t.flags|=128,zr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(ve,ve.current&1|2),t.child}e=e.sibling}i.tail!==null&&je()>yr&&(t.flags|=128,r=!0,zr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ei(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ye)return Fe(t),null}else 2*je()-i.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,zr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=je(),t.sibling=null,n=ve.current,pe(ve,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Wa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function Wg(e,t){switch(Ea(t),t.tag){case 1:return Je(t.type)&&xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),ge(Xe),ge(Ue),Oa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return za(t),null;case 13:if(ge(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(ve),null;case 4:return mr(),null;case 10:return Ia(t.type._context),null;case 22:case 23:return Wa(),null;case 24:return null;default:return null}}var Vl=!1,Be=!1,Yg=typeof WeakSet=="function"?WeakSet:Set,Y=null;function tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Rs(e,t,n){try{n()}catch(r){Se(e,t,r)}}var pc=!1;function Qg(e,t){if(xs=hi,e=Cf(),Ca(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||l!==0&&f.nodeType!==3||(s=o+l),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===l&&(s=o),p===i&&++d===r&&(a=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(vs={focusedElem:e,selectionRange:n},hi=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,E=v.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:vt(t.type,w),E);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(C){Se(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=pc,pc=!1,v}function Qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Rs(t,n,i)}l=l.next}while(l!==r)}}function Qi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function As(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vp(e){var t=e.alternate;t!==null&&(e.alternate=null,vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[cl],delete t[Ss],delete t[Ig],delete t[_g])),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 kp(e){return e.tag===5||e.tag===3||e.tag===4}function hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kp(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 Ds(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yi));else if(r!==4&&(e=e.child,e!==null))for(Ds(e,t,n),e=e.sibling;e!==null;)Ds(e,t,n),e=e.sibling}function Ms(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}var ze=null,kt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)wp(e,t,n),n=n.sibling}function wp(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Fi,n)}catch{}switch(n.tag){case 5:Be||tr(n,t);case 6:var r=ze,l=kt;ze=null,Yt(e,t,n),ze=r,kt=l,ze!==null&&(kt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(kt?(e=ze,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),il(e)):Eo(ze,n.stateNode));break;case 4:r=ze,l=kt,ze=n.stateNode.containerInfo,kt=!0,Yt(e,t,n),ze=r,kt=l;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Rs(n,t,o),l=l.next}while(l!==r)}Yt(e,t,n);break;case 1:if(!Be&&(tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Se(n,t,s)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,Yt(e,t,n),Be=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function mc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yg),t.forEach(function(r){var l=ny.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:ze=s.stateNode,kt=!1;break e;case 3:ze=s.stateNode.containerInfo,kt=!0;break e;case 4:ze=s.stateNode.containerInfo,kt=!0;break e}s=s.return}if(ze===null)throw Error(B(160));wp(i,o,l),ze=null,kt=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(c){Se(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sp(t,e),t=t.sibling}function Sp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),Nt(e),r&4){try{Qr(3,e,e.return),Qi(3,e)}catch(w){Se(e,e.return,w)}try{Qr(5,e,e.return)}catch(w){Se(e,e.return,w)}}break;case 1:xt(t,e),Nt(e),r&512&&n!==null&&tr(n,n.return);break;case 5:if(xt(t,e),Nt(e),r&512&&n!==null&&tr(n,n.return),e.flags&32){var l=e.stateNode;try{tl(l,"")}catch(w){Se(e,e.return,w)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Vd(l,i),as(s,o);var c=as(s,i);for(o=0;o<a.length;o+=2){var d=a[o],f=a[o+1];d==="style"?qd(l,f):d==="dangerouslySetInnerHTML"?Yd(l,f):d==="children"?tl(l,f):ca(l,d,f,c)}switch(s){case"input":rs(l,i);break;case"textarea":Hd(l,i);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?rr(l,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?rr(l,!!i.multiple,i.defaultValue,!0):rr(l,!!i.multiple,i.multiple?[]:"",!1))}l[cl]=i}catch(w){Se(e,e.return,w)}}break;case 6:if(xt(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(B(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(w){Se(e,e.return,w)}}break;case 3:if(xt(t,e),Nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{il(t.containerInfo)}catch(w){Se(e,e.return,w)}break;case 4:xt(t,e),Nt(e);break;case 13:xt(t,e),Nt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Va=je())),r&4&&mc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(c=Be)||d,xt(t,e),Be=c):xt(t,e),Nt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(Y=e,d=e.child;d!==null;){for(f=Y=d;Y!==null;){switch(p=Y,h=p.child,p.tag){case 0:case 11:case 14:case 15:Qr(4,p,p.return);break;case 1:tr(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){Se(r,n,w)}}break;case 5:tr(p,p.return);break;case 22:if(p.memoizedState!==null){yc(f);continue}}h!==null?(h.return=p,Y=h):yc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{l=f.stateNode,c?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Qd("display",o))}catch(w){Se(e,e.return,w)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(w){Se(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:xt(t,e),Nt(e),r&4&&mc(e);break;case 21:break;default:xt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kp(n)){var r=n;break e}n=n.return}throw Error(B(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(tl(l,""),r.flags&=-33);var i=hc(e);Ms(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,s=hc(e);Ds(e,s,o);break;default:throw Error(B(161))}}catch(a){Se(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qg(e,t,n){Y=e,Cp(e)}function Cp(e,t,n){for(var r=(e.mode&1)!==0;Y!==null;){var l=Y,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Vl;if(!o){var s=l.alternate,a=s!==null&&s.memoizedState!==null||Be;s=Vl;var c=Be;if(Vl=o,(Be=a)&&!c)for(Y=l;Y!==null;)o=Y,a=o.child,o.tag===22&&o.memoizedState!==null?xc(l):a!==null?(a.return=o,Y=a):xc(l);for(;i!==null;)Y=i,Cp(i),i=i.sibling;Y=l,Vl=s,Be=c}gc(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,Y=i):gc(e)}}function gc(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Qi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ec(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ec(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&il(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(B(163))}Be||t.flags&512&&As(t)}catch(p){Se(t,t.return,p)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function yc(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function xc(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qi(4,t)}catch(a){Se(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){Se(t,l,a)}}var i=t.return;try{As(t)}catch(a){Se(t,i,a)}break;case 5:var o=t.return;try{As(t)}catch(a){Se(t,o,a)}}}catch(a){Se(t,t.return,a)}if(t===e){Y=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Y=s;break}Y=t.return}}var Kg=Math.ceil,Ti=Wt.ReactCurrentDispatcher,Ua=Wt.ReactCurrentOwner,ht=Wt.ReactCurrentBatchConfig,ie=0,Le=null,Pe=null,Oe=0,rt=0,nr=hn(0),Ie=0,gl=null,Ln=0,qi=0,$a=0,qr=null,qe=null,Va=0,yr=1/0,At=null,Ii=!1,Fs=null,sn=null,Hl=!1,Zt=null,_i=0,Kr=0,Bs=null,li=-1,ii=0;function He(){return ie&6?je():li!==-1?li:li=je()}function an(e){return e.mode&1?ie&2&&Oe!==0?Oe&-Oe:Lg.transition!==null?(ii===0&&(ii=sf()),ii):(e=se,e!==0||(e=window.event,e=e===void 0?16:hf(e.type)),e):1}function Ct(e,t,n,r){if(50<Kr)throw Kr=0,Bs=null,Error(B(185));wl(e,n,r),(!(ie&2)||e!==Le)&&(e===Le&&(!(ie&2)&&(qi|=n),Ie===4&&Jt(e,Oe)),Ge(e,r),n===1&&ie===0&&!(t.mode&1)&&(yr=je()+500,Hi&&mn()))}function Ge(e,t){var n=e.callbackNode;Lm(e,t);var r=pi(e,e===Le?Oe:0);if(r===0)n!==null&&Pu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pu(n),t===1)e.tag===0?bg(vc.bind(null,e)):zf(vc.bind(null,e)),Pg(function(){!(ie&6)&&mn()}),n=null;else{switch(af(r)){case 1:n=ma;break;case 4:n=lf;break;case 16:n=fi;break;case 536870912:n=of;break;default:n=fi}n=bp(n,jp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jp(e,t){if(li=-1,ii=0,ie&6)throw Error(B(327));var n=e.callbackNode;if(ar()&&e.callbackNode!==n)return null;var r=pi(e,e===Le?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=bi(e,r);else{t=r;var l=ie;ie|=2;var i=Np();(Le!==e||Oe!==t)&&(At=null,yr=je()+500,Pn(e,t));do try{Gg();break}catch(s){Ep(e,s)}while(!0);Ta(),Ti.current=i,ie=l,Pe!==null?t=0:(Le=null,Oe=0,t=Ie)}if(t!==0){if(t===2&&(l=ps(e),l!==0&&(r=l,t=Us(e,l))),t===1)throw n=gl,Pn(e,0),Jt(e,r),Ge(e,je()),n;if(t===6)Jt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Xg(l)&&(t=bi(e,r),t===2&&(i=ps(e),i!==0&&(r=i,t=Us(e,i))),t===1))throw n=gl,Pn(e,0),Jt(e,r),Ge(e,je()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(B(345));case 2:wn(e,qe,At);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Va+500-je(),10<t)){if(pi(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ws(wn.bind(null,e,qe,At),t);break}wn(e,qe,At);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-St(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kg(r/1960))-r,10<r){e.timeoutHandle=ws(wn.bind(null,e,qe,At),r);break}wn(e,qe,At);break;case 5:wn(e,qe,At);break;default:throw Error(B(329))}}}return Ge(e,je()),e.callbackNode===n?jp.bind(null,e):null}function Us(e,t){var n=qr;return e.current.memoizedState.isDehydrated&&(Pn(e,t).flags|=256),e=bi(e,t),e!==2&&(t=qe,qe=n,t!==null&&$s(t)),e}function $s(e){qe===null?qe=e:qe.push.apply(qe,e)}function Xg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!jt(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t){for(t&=~$a,t&=~qi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function vc(e){if(ie&6)throw Error(B(327));ar();var t=pi(e,0);if(!(t&1))return Ge(e,je()),null;var n=bi(e,t);if(e.tag!==0&&n===2){var r=ps(e);r!==0&&(t=r,n=Us(e,r))}if(n===1)throw n=gl,Pn(e,0),Jt(e,t),Ge(e,je()),n;if(n===6)throw Error(B(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e,qe,At),Ge(e,je()),null}function Ha(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(yr=je()+500,Hi&&mn())}}function zn(e){Zt!==null&&Zt.tag===0&&!(ie&6)&&ar();var t=ie;ie|=1;var n=ht.transition,r=se;try{if(ht.transition=null,se=1,e)return e()}finally{se=r,ht.transition=n,ie=t,!(ie&6)&&mn()}}function Wa(){rt=nr.current,ge(nr)}function Pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ng(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Ea(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xi();break;case 3:mr(),ge(Xe),ge(Ue),Oa();break;case 5:za(r);break;case 4:mr();break;case 13:ge(ve);break;case 19:ge(ve);break;case 10:Ia(r.type._context);break;case 22:case 23:Wa()}n=n.return}if(Le=e,Pe=e=un(e.current,null),Oe=rt=t,Ie=0,gl=null,$a=qi=Ln=0,qe=qr=null,En!==null){for(t=0;t<En.length;t++)if(n=En[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}En=null}return e}function Ep(e,t){do{var n=Pe;try{if(Ta(),ti.current=Pi,Ni){for(var r=ke.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Ni=!1}if(bn=0,be=Te=ke=null,Yr=!1,pl=0,Ua.current=null,n===null||n.return===null){Ie=1,gl=t,Pe=null;break}e:{var i=e,o=n.return,s=n,a=t;if(t=Oe,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=oc(o);if(h!==null){h.flags&=-257,sc(h,o,s,i,t),h.mode&1&&ic(i,c,t),t=h,a=c;var v=t.updateQueue;if(v===null){var w=new Set;w.add(a),t.updateQueue=w}else v.add(a);break e}else{if(!(t&1)){ic(i,c,t),Ya();break e}a=Error(B(426))}}else if(ye&&s.mode&1){var E=oc(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),sc(E,o,s,i,t),Na(gr(a,s));break e}}i=a=gr(a,s),Ie!==4&&(Ie=2),qr===null?qr=[i]:qr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=ap(i,a,t);Zu(i,m);break e;case 1:s=a;var y=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(sn===null||!sn.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=up(i,s,t);Zu(i,C);break e}}i=i.return}while(i!==null)}Tp(n)}catch(P){t=P,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function Np(){var e=Ti.current;return Ti.current=Pi,e===null?Pi:e}function Ya(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Le===null||!(Ln&268435455)&&!(qi&268435455)||Jt(Le,Oe)}function bi(e,t){var n=ie;ie|=2;var r=Np();(Le!==e||Oe!==t)&&(At=null,Pn(e,t));do try{Jg();break}catch(l){Ep(e,l)}while(!0);if(Ta(),ie=n,Ti.current=r,Pe!==null)throw Error(B(261));return Le=null,Oe=0,Ie}function Jg(){for(;Pe!==null;)Pp(Pe)}function Gg(){for(;Pe!==null&&!Cm();)Pp(Pe)}function Pp(e){var t=_p(e.alternate,e,rt);e.memoizedProps=e.pendingProps,t===null?Tp(e):Pe=t,Ua.current=null}function Tp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Wg(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Pe=null;return}}else if(n=Hg(n,t,rt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Ie===0&&(Ie=5)}function wn(e,t,n){var r=se,l=ht.transition;try{ht.transition=null,se=1,Zg(e,t,n,r)}finally{ht.transition=l,se=r}return null}function Zg(e,t,n,r){do ar();while(Zt!==null);if(ie&6)throw Error(B(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(B(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zm(e,i),e===Le&&(Pe=Le=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hl||(Hl=!0,bp(fi,function(){return ar(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ht.transition,ht.transition=null;var o=se;se=1;var s=ie;ie|=4,Ua.current=null,Qg(e,n),Sp(n,e),vg(vs),hi=!!xs,vs=xs=null,e.current=n,qg(n),jm(),ie=s,se=o,ht.transition=i}else e.current=n;if(Hl&&(Hl=!1,Zt=e,_i=l),i=e.pendingLanes,i===0&&(sn=null),Pm(n.stateNode),Ge(e,je()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Ii)throw Ii=!1,e=Fs,Fs=null,e;return _i&1&&e.tag!==0&&ar(),i=e.pendingLanes,i&1?e===Bs?Kr++:(Kr=0,Bs=e):Kr=0,mn(),null}function ar(){if(Zt!==null){var e=af(_i),t=ht.transition,n=se;try{if(ht.transition=null,se=16>e?16:e,Zt===null)var r=!1;else{if(e=Zt,Zt=null,_i=0,ie&6)throw Error(B(331));var l=ie;for(ie|=4,Y=e.current;Y!==null;){var i=Y,o=i.child;if(Y.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var c=s[a];for(Y=c;Y!==null;){var d=Y;switch(d.tag){case 0:case 11:case 15:Qr(8,d,i)}var f=d.child;if(f!==null)f.return=d,Y=f;else for(;Y!==null;){d=Y;var p=d.sibling,h=d.return;if(vp(d),d===c){Y=null;break}if(p!==null){p.return=h,Y=p;break}Y=h}}}var v=i.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var E=w.sibling;w.sibling=null,w=E}while(w!==null)}}Y=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Y=o;else e:for(;Y!==null;){if(i=Y,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Qr(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,Y=m;break e}Y=i.return}}var y=e.current;for(Y=y;Y!==null;){o=Y;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Y=x;else e:for(o=y;Y!==null;){if(s=Y,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Qi(9,s)}}catch(P){Se(s,s.return,P)}if(s===o){Y=null;break e}var C=s.sibling;if(C!==null){C.return=s.return,Y=C;break e}Y=s.return}}if(ie=l,mn(),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Fi,e)}catch{}r=!0}return r}finally{se=n,ht.transition=t}}return!1}function kc(e,t,n){t=gr(n,t),t=ap(e,t,1),e=on(e,t,1),t=He(),e!==null&&(wl(e,1,t),Ge(e,t))}function Se(e,t,n){if(e.tag===3)kc(e,e,n);else for(;t!==null;){if(t.tag===3){kc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sn===null||!sn.has(r))){e=gr(n,e),e=up(t,e,1),t=on(t,e,1),e=He(),t!==null&&(wl(t,1,e),Ge(t,e));break}}t=t.return}}function ey(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Oe&n)===n&&(Ie===4||Ie===3&&(Oe&130023424)===Oe&&500>je()-Va?Pn(e,0):$a|=n),Ge(e,t)}function Ip(e,t){t===0&&(e.mode&1?(t=Ol,Ol<<=1,!(Ol&130023424)&&(Ol=4194304)):t=1);var n=He();e=Vt(e,t),e!==null&&(wl(e,t,n),Ge(e,n))}function ty(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ip(e,n)}function ny(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(B(314))}r!==null&&r.delete(t),Ip(e,n)}var _p;_p=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,Vg(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ye&&t.flags&1048576&&Of(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ri(e,t),e=t.pendingProps;var l=fr(t,Ue.current);sr(t,n),l=Aa(null,t,r,e,l,n);var i=Da();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(i=!0,vi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ba(t),l.updater=Yi,t.stateNode=l,l._reactInternals=t,Ts(t,r,e,n),t=bs(null,t,r,!0,i,n)):(t.tag=0,ye&&i&&ja(t),Ve(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ri(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ly(r),e=vt(r,e),l){case 0:t=_s(null,t,r,e,n);break e;case 1:t=cc(null,t,r,e,n);break e;case 11:t=ac(null,t,r,e,n);break e;case 14:t=uc(null,t,r,vt(r.type,e),n);break e}throw Error(B(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),_s(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),cc(e,t,r,l,n);case 3:e:{if(pp(t),e===null)throw Error(B(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Bf(e,t),ji(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=gr(Error(B(423)),t),t=dc(e,t,r,n,l);break e}else if(r!==l){l=gr(Error(B(424)),t),t=dc(e,t,r,n,l);break e}else for(lt=ln(t.stateNode.containerInfo.firstChild),ot=t,ye=!0,wt=null,n=Mf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===l){t=Ht(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Uf(t),e===null&&Es(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,ks(r,l)?o=null:i!==null&&ks(r,i)&&(t.flags|=32),fp(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&Es(t),null;case 13:return hp(e,t,n);case 4:return La(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),ac(e,t,r,l,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,pe(Si,r._currentValue),r._currentValue=o,i!==null)if(jt(i.value,o)){if(i.children===l.children&&!Xe.current){t=Ht(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Bt(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ns(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(B(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ns(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ve(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,sr(t,n),l=mt(l),r=r(l),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,l=vt(r,t.pendingProps),l=vt(r.type,l),uc(e,t,r,l,n);case 15:return cp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),ri(e,t),t.tag=1,Je(r)?(e=!0,vi(t)):e=!1,sr(t,n),sp(t,r,l),Ts(t,r,l,n),bs(null,t,r,!0,e,n);case 19:return mp(e,t,n);case 22:return dp(e,t,n)}throw Error(B(156,t.tag))};function bp(e,t){return rf(e,t)}function ry(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new ry(e,t,n,r)}function Qa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ly(e){if(typeof e=="function")return Qa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fa)return 11;if(e===pa)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oi(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Qa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yn:return Tn(n.children,l,i,t);case da:o=8,l|=8;break;case Go:return e=pt(12,n,t,l|2),e.elementType=Go,e.lanes=i,e;case Zo:return e=pt(13,n,t,l),e.elementType=Zo,e.lanes=i,e;case es:return e=pt(19,n,t,l),e.elementType=es,e.lanes=i,e;case Bd:return Ki(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Md:o=10;break e;case Fd:o=9;break e;case fa:o=11;break e;case pa:o=14;break e;case qt:o=16,r=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=pt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Tn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Ki(e,t,n,r){return e=pt(22,e,r,t),e.elementType=Bd,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Oo(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iy(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function qa(e,t,n,r,l,i,o,s,a){return e=new iy(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ba(i),e}function oy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Lp(e){if(!e)return fn;e=e._reactInternals;e:{if(Rn(e)!==e||e.tag!==1)throw Error(B(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(B(171))}if(e.tag===1){var n=e.type;if(Je(n))return Lf(e,n,t)}return t}function zp(e,t,n,r,l,i,o,s,a){return e=qa(n,r,!0,e,l,i,o,s,a),e.context=Lp(null),n=e.current,r=He(),l=an(n),i=Bt(r,l),i.callback=t??null,on(n,i,l),e.current.lanes=l,wl(e,l,r),Ge(e,r),e}function Xi(e,t,n,r){var l=t.current,i=He(),o=an(l);return n=Lp(n),t.context===null?t.context=n:t.pendingContext=n,t=Bt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=on(l,t,o),e!==null&&(Ct(e,l,o,i),ei(e,l,o)),o}function Li(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 wc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ka(e,t){wc(e,t),(e=e.alternate)&&wc(e,t)}function sy(){return null}var Op=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xa(e){this._internalRoot=e}Ji.prototype.render=Xa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(B(409));Xi(e,t,null,null)};Ji.prototype.unmount=Xa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){Xi(null,e,null,null)}),t[$t]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=df();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xt.length&&t!==0&&t<Xt[n].priority;n++);Xt.splice(n,0,e),n===0&&pf(e)}};function Ja(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sc(){}function ay(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var c=Li(o);i.call(c)}}var o=zp(t,r,e,0,null,!1,!1,"",Sc);return e._reactRootContainer=o,e[$t]=o.current,al(e.nodeType===8?e.parentNode:e),zn(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var s=r;r=function(){var c=Li(a);s.call(c)}}var a=qa(e,0,!1,null,null,!1,!1,"",Sc);return e._reactRootContainer=a,e[$t]=a.current,al(e.nodeType===8?e.parentNode:e),zn(function(){Xi(t,a,n,r)}),a}function Zi(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var s=l;l=function(){var a=Li(o);s.call(a)}}Xi(t,o,e,l)}else o=ay(n,t,e,l,r);return Li(o)}uf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fr(t.pendingLanes);n!==0&&(ga(t,n|1),Ge(t,je()),!(ie&6)&&(yr=je()+500,mn()))}break;case 13:zn(function(){var r=Vt(e,1);if(r!==null){var l=He();Ct(r,e,1,l)}}),Ka(e,1)}};ya=function(e){if(e.tag===13){var t=Vt(e,134217728);if(t!==null){var n=He();Ct(t,e,134217728,n)}Ka(e,134217728)}};cf=function(e){if(e.tag===13){var t=an(e),n=Vt(e,t);if(n!==null){var r=He();Ct(n,e,t,r)}Ka(e,t)}};df=function(){return se};ff=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};cs=function(e,t,n){switch(t){case"input":if(rs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Vi(r);if(!l)throw Error(B(90));$d(r),rs(r,l)}}}break;case"textarea":Hd(e,n);break;case"select":t=n.value,t!=null&&rr(e,!!n.multiple,t,!1)}};Jd=Ha;Gd=zn;var uy={usingClientEntryPoint:!1,Events:[Cl,Xn,Vi,Kd,Xd,Ha]},Or={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cy={bundleType:Or.bundleType,version:Or.version,rendererPackageName:Or.rendererPackageName,rendererConfig:Or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tf(e),e===null?null:e.stateNode},findFiberByHostInstance:Or.findFiberByHostInstance||sy,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 Wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wl.isDisabled&&Wl.supportsFiber)try{Fi=Wl.inject(cy),bt=Wl}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uy;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ja(t))throw Error(B(200));return oy(e,t,null,n)};at.createRoot=function(e,t){if(!Ja(e))throw Error(B(299));var n=!1,r="",l=Op;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=qa(e,1,!1,null,null,n,!1,r,l),e[$t]=t.current,al(e.nodeType===8?e.parentNode:e),new Xa(t)};at.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(B(188)):(e=Object.keys(e).join(","),Error(B(268,e)));return e=tf(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return zn(e)};at.hydrate=function(e,t,n){if(!Gi(t))throw Error(B(200));return Zi(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!Ja(e))throw Error(B(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Op;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=zp(t,null,e,1,n??null,l,!1,i,o),e[$t]=t.current,al(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ji(t)};at.render=function(e,t,n){if(!Gi(t))throw Error(B(200));return Zi(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!Gi(e))throw Error(B(40));return e._reactRootContainer?(zn(function(){Zi(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1};at.unstable_batchedUpdates=Ha;at.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gi(n))throw Error(B(200));if(e==null||e._reactInternals===void 0)throw Error(B(38));return Zi(e,t,n,!1,r)};at.version="18.3.1-next-f1338f8080-20240426";function Rp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rp)}catch(e){console.error(e)}}Rp(),Od.exports=at;var dy=Od.exports,Cc=dy;Xo.createRoot=Cc.createRoot,Xo.hydrateRoot=Cc.hydrateRoot;/**
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function bo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ts(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bg=typeof WeakMap=="function"?WeakMap:Map;function ap(e,t,n){n=Bt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ii||(Ii=!0,Ms=r),Ts(e,t)},n}function up(e,t,n){n=Bt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ts(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ts(e,t),typeof r!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function lc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bg;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=ey.bind(null,e,t,n),t.then(e,e))}function ic(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function oc(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Bt(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e)}var Ug=Wt.ReactCurrentOwner,Ke=!1;function Ve(e,t,n,r){t.child=e===null?Mf(t,null,n,r):hr(t,e.child,n,r)}function sc(e,t,n,r,l){n=n.render;var i=t.ref;return sr(t,l),r=Ra(e,t,n,r,i,l),n=Aa(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(ge&&n&&Ca(t),t.flags|=1,Ve(e,t,r,l),t.child)}function ac(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Ya(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,cp(e,t,i,r,l)):(e=oi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:sl,n(o,r)&&e.ref===t.ref)return Ht(e,t,l)}return t.flags|=1,e=un(i,r),e.ref=t.ref,e.return=t,t.child=e}function cp(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(sl(i,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,Ht(e,t,l)}return Is(e,t,n,r,l)}function dp(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(nr,rt),rt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(nr,rt),rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,fe(nr,rt),rt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,fe(nr,rt),rt|=r;return Ve(e,t,l,n),t.child}function fp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Is(e,t,n,r,l){var i=Je(n)?In:Ue.current;return i=fr(t,i),sr(t,l),n=Ra(e,t,n,r,i,l),r=Aa(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(ge&&r&&Ca(t),t.flags|=1,Ve(e,t,n,l),t.child)}function uc(e,t,n,r,l){if(Je(n)){var i=!0;vi(t)}else i=!1;if(sr(t,l),t.stateNode===null)ri(e,t),sp(t,n,r),Ps(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=mt(c):(c=Je(n)?In:Ue.current,c=fr(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==c)&&rc(t,o,r,c),Kt=!1;var p=t.memoizedState;o.state=p,ji(t,r,o,l),a=t.memoizedState,s!==r||p!==a||Xe.current||Kt?(typeof d=="function"&&(Ns(t,n,d,r),a=t.memoizedState),(s=Kt||nc(t,n,s,r,p,a,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Bf(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:vt(t.type,s),o.props=c,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=mt(a):(a=Je(n)?In:Ue.current,a=fr(t,a));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||p!==a)&&rc(t,o,r,a),Kt=!1,p=t.memoizedState,o.state=p,ji(t,r,o,l);var v=t.memoizedState;s!==f||p!==v||Xe.current||Kt?(typeof h=="function"&&(Ns(t,n,h,r),v=t.memoizedState),(c=Kt||nc(t,n,c,r,p,v,a)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return _s(e,t,n,r,i,l)}function _s(e,t,n,r,l,i){fp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&qu(t,n,!1),Ht(e,t,i);r=t.stateNode,Ug.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=hr(t,e.child,null,i),t.child=hr(t,null,s,i)):Ve(e,t,s,i),t.memoizedState=r.state,l&&qu(t,n,!0),t.child}function pp(e){var t=e.stateNode;t.pendingContext?Qu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qu(e,t.context,!1),ba(e,t.containerInfo)}function cc(e,t,n,r,l){return pr(),Ea(l),t.flags|=256,Ve(e,t,n,r),t.child}var bs={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function hp(e,t,n){var r=t.pendingProps,l=ve.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),fe(ve,l&1),e===null)return js(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ki(o,r,0,null),e=Tn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ls(n),t.memoizedState=bs,e):Fa(t,o));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return $g(e,t,o,r,s,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,s=l.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=un(l,a),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=un(s,i):(i=Tn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Ls(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=bs,r}return i=e.child,e=i.sibling,r=un(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fa(e,t){return t=Ki({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $l(e,t,n,r){return r!==null&&Ea(r),hr(t,e.child,null,n),e=Fa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $g(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=bo(Error(B(422))),$l(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Ki({mode:"visible",children:r.children},l,0,null),i=Tn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&hr(t,e.child,null,o),t.child.memoizedState=Ls(o),t.memoizedState=bs,i);if(!(t.mode&1))return $l(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(B(419)),r=bo(i,r,void 0),$l(e,t,o,r)}if(s=(o&e.childLanes)!==0,Ke||s){if(r=Le,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Vt(e,l),Ct(r,e,l,-1))}return Wa(),r=bo(Error(B(421))),$l(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=ty.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,lt=ln(l.nextSibling),ot=t,ge=!0,wt=null,e!==null&&(ct[dt++]=Mt,ct[dt++]=Ft,ct[dt++]=_n,Mt=e.id,Ft=e.overflow,_n=t),t=Fa(t,r.children),t.flags|=4096,t)}function dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Es(e.return,t,n)}function Lo(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function mp(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Ve(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dc(e,n,t);else if(e.tag===19)dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fe(ve,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ei(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Lo(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ei(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Lo(t,!0,n,null,i);break;case"together":Lo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ri(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(B(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vg(e,t,n){switch(t.tag){case 3:pp(t),pr();break;case 5:Uf(t);break;case 1:Je(t.type)&&vi(t);break;case 4:ba(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;fe(Si,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?hp(e,t,n):(fe(ve,ve.current&1),e=Ht(e,t,n),e!==null?e.sibling:null);fe(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mp(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),fe(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,dp(e,t,n)}return Ht(e,t,n)}var gp,zs,yp,xp;gp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};zs=function(){};yp=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Nn(Lt.current);var i=null;switch(n){case"input":l=ts(e,l),r=ts(e,r),i=[];break;case"select":l=we({},l,{value:void 0}),r=we({},r,{value:void 0}),i=[];break;case"textarea":l=ls(e,l),r=ls(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=yi)}os(n,r);var o;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var s=l[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(el.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var a=r[c];if(s=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&a!==s&&(a!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(el.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&he("scroll",e),i||s===a||(i=[])):(i=i||[]).push(c,a))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};xp=function(e,t,n,r){n!==r&&(t.flags|=4)};function zr(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hg(e,t,n){var r=t.pendingProps;switch(ja(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Je(t.type)&&xi(),Fe(t),null;case 3:return r=t.stateNode,mr(),me(Xe),me(Ue),za(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(Us(wt),wt=null))),zs(e,t),Fe(t),null;case 5:La(t);var l=Nn(fl.current);if(n=t.type,e!==null&&t.stateNode!=null)yp(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(B(166));return Fe(t),null}if(e=Nn(Lt.current),Bl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[It]=t,r[cl]=i,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(l=0;l<Br.length;l++)he(Br[l],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":ku(r,i),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},he("invalid",r);break;case"textarea":Su(r,i),he("invalid",r)}os(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Fl(r.textContent,s,e),l=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Fl(r.textContent,s,e),l=["children",""+s]):el.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&he("scroll",r)}switch(n){case"input":bl(r),wu(r,i,!0);break;case"textarea":bl(r),Cu(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=yi)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[It]=t,e[cl]=r,gp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ss(n,r),n){case"dialog":he("cancel",e),he("close",e),l=r;break;case"iframe":case"object":case"embed":he("load",e),l=r;break;case"video":case"audio":for(l=0;l<Br.length;l++)he(Br[l],e);l=r;break;case"source":he("error",e),l=r;break;case"img":case"image":case"link":he("error",e),he("load",e),l=r;break;case"details":he("toggle",e),l=r;break;case"input":ku(e,r),l=ts(e,r),he("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=we({},r,{value:void 0}),he("invalid",e);break;case"textarea":Su(e,r),l=ls(e,r),he("invalid",e);break;default:l=r}os(n,l),s=l;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?qd(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Yd(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&tl(e,a):typeof a=="number"&&tl(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(el.hasOwnProperty(i)?a!=null&&i==="onScroll"&&he("scroll",e):a!=null&&ua(e,i,a,o))}switch(n){case"input":bl(e),wu(e,r,!1);break;case"textarea":bl(e),Cu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+dn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?rr(e,!!r.multiple,i,!1):r.defaultValue!=null&&rr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=yi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)xp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(B(166));if(n=Nn(fl.current),Nn(Lt.current),Bl(t)){if(r=t.stateNode,n=t.memoizedProps,r[It]=t,(i=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:Fl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[It]=t,t.stateNode=r}return Fe(t),null;case 13:if(me(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&<!==null&&t.mode&1&&!(t.flags&128))Af(),pr(),t.flags|=98560,i=!1;else if(i=Bl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(B(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(B(317));i[It]=t}else pr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),i=!1}else wt!==null&&(Us(wt),wt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Ie===0&&(Ie=3):Wa())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return mr(),zs(e,t),e===null&&al(t.stateNode.containerInfo),Fe(t),null;case 10:return Ta(t.type._context),Fe(t),null;case 17:return Je(t.type)&&xi(),Fe(t),null;case 19:if(me(ve),i=t.memoizedState,i===null)return Fe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)zr(i,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ei(e),o!==null){for(t.flags|=128,zr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fe(ve,ve.current&1|2),t.child}e=e.sibling}i.tail!==null&&je()>yr&&(t.flags|=128,r=!0,zr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ei(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ge)return Fe(t),null}else 2*je()-i.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,zr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=je(),t.sibling=null,n=ve.current,fe(ve,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Ha(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function Wg(e,t){switch(ja(t),t.tag){case 1:return Je(t.type)&&xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),me(Xe),me(Ue),za(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return La(t),null;case 13:if(me(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ve),null;case 4:return mr(),null;case 10:return Ta(t.type._context),null;case 22:case 23:return Ha(),null;case 24:return null;default:return null}}var Vl=!1,Be=!1,Yg=typeof WeakSet=="function"?WeakSet:Set,Y=null;function tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Os(e,t,n){try{n()}catch(r){Se(e,t,r)}}var fc=!1;function Qg(e,t){if(ys=hi,e=Cf(),Sa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||l!==0&&f.nodeType!==3||(s=o+l),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===l&&(s=o),p===i&&++d===r&&(a=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(xs={focusedElem:e,selectionRange:n},hi=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,E=v.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:vt(t.type,w),E);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(C){Se(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=fc,fc=!1,v}function Qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Os(t,n,i)}l=l.next}while(l!==r)}}function Qi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Rs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vp(e){var t=e.alternate;t!==null&&(e.alternate=null,vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[cl],delete t[ws],delete t[Ig],delete t[_g])),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 kp(e){return e.tag===5||e.tag===3||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kp(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 As(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yi));else if(r!==4&&(e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function Ds(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ds(e,t,n),e=e.sibling;e!==null;)Ds(e,t,n),e=e.sibling}var ze=null,kt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)wp(e,t,n),n=n.sibling}function wp(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Fi,n)}catch{}switch(n.tag){case 5:Be||tr(n,t);case 6:var r=ze,l=kt;ze=null,Yt(e,t,n),ze=r,kt=l,ze!==null&&(kt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(kt?(e=ze,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),il(e)):Eo(ze,n.stateNode));break;case 4:r=ze,l=kt,ze=n.stateNode.containerInfo,kt=!0,Yt(e,t,n),ze=r,kt=l;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Os(n,t,o),l=l.next}while(l!==r)}Yt(e,t,n);break;case 1:if(!Be&&(tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Se(n,t,s)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,Yt(e,t,n),Be=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function hc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yg),t.forEach(function(r){var l=ny.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:ze=s.stateNode,kt=!1;break e;case 3:ze=s.stateNode.containerInfo,kt=!0;break e;case 4:ze=s.stateNode.containerInfo,kt=!0;break e}s=s.return}if(ze===null)throw Error(B(160));wp(i,o,l),ze=null,kt=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(c){Se(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sp(t,e),t=t.sibling}function Sp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),Nt(e),r&4){try{Qr(3,e,e.return),Qi(3,e)}catch(w){Se(e,e.return,w)}try{Qr(5,e,e.return)}catch(w){Se(e,e.return,w)}}break;case 1:xt(t,e),Nt(e),r&512&&n!==null&&tr(n,n.return);break;case 5:if(xt(t,e),Nt(e),r&512&&n!==null&&tr(n,n.return),e.flags&32){var l=e.stateNode;try{tl(l,"")}catch(w){Se(e,e.return,w)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Vd(l,i),ss(s,o);var c=ss(s,i);for(o=0;o<a.length;o+=2){var d=a[o],f=a[o+1];d==="style"?qd(l,f):d==="dangerouslySetInnerHTML"?Yd(l,f):d==="children"?tl(l,f):ua(l,d,f,c)}switch(s){case"input":ns(l,i);break;case"textarea":Hd(l,i);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?rr(l,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?rr(l,!!i.multiple,i.defaultValue,!0):rr(l,!!i.multiple,i.multiple?[]:"",!1))}l[cl]=i}catch(w){Se(e,e.return,w)}}break;case 6:if(xt(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(B(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(w){Se(e,e.return,w)}}break;case 3:if(xt(t,e),Nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{il(t.containerInfo)}catch(w){Se(e,e.return,w)}break;case 4:xt(t,e),Nt(e);break;case 13:xt(t,e),Nt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||($a=je())),r&4&&hc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(c=Be)||d,xt(t,e),Be=c):xt(t,e),Nt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(Y=e,d=e.child;d!==null;){for(f=Y=d;Y!==null;){switch(p=Y,h=p.child,p.tag){case 0:case 11:case 14:case 15:Qr(4,p,p.return);break;case 1:tr(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){Se(r,n,w)}}break;case 5:tr(p,p.return);break;case 22:if(p.memoizedState!==null){gc(f);continue}}h!==null?(h.return=p,Y=h):gc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{l=f.stateNode,c?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Qd("display",o))}catch(w){Se(e,e.return,w)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(w){Se(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:xt(t,e),Nt(e),r&4&&hc(e);break;case 21:break;default:xt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kp(n)){var r=n;break e}n=n.return}throw Error(B(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(tl(l,""),r.flags&=-33);var i=pc(e);Ds(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,s=pc(e);As(e,s,o);break;default:throw Error(B(161))}}catch(a){Se(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qg(e,t,n){Y=e,Cp(e)}function Cp(e,t,n){for(var r=(e.mode&1)!==0;Y!==null;){var l=Y,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Vl;if(!o){var s=l.alternate,a=s!==null&&s.memoizedState!==null||Be;s=Vl;var c=Be;if(Vl=o,(Be=a)&&!c)for(Y=l;Y!==null;)o=Y,a=o.child,o.tag===22&&o.memoizedState!==null?yc(l):a!==null?(a.return=o,Y=a):yc(l);for(;i!==null;)Y=i,Cp(i),i=i.sibling;Y=l,Vl=s,Be=c}mc(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,Y=i):mc(e)}}function mc(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Qi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Zu(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Zu(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&il(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(B(163))}Be||t.flags&512&&Rs(t)}catch(p){Se(t,t.return,p)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function gc(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function yc(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qi(4,t)}catch(a){Se(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){Se(t,l,a)}}var i=t.return;try{Rs(t)}catch(a){Se(t,i,a)}break;case 5:var o=t.return;try{Rs(t)}catch(a){Se(t,o,a)}}}catch(a){Se(t,t.return,a)}if(t===e){Y=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Y=s;break}Y=t.return}}var Kg=Math.ceil,Ti=Wt.ReactCurrentDispatcher,Ba=Wt.ReactCurrentOwner,ht=Wt.ReactCurrentBatchConfig,ie=0,Le=null,Pe=null,Oe=0,rt=0,nr=hn(0),Ie=0,gl=null,Ln=0,qi=0,Ua=0,qr=null,qe=null,$a=0,yr=1/0,At=null,Ii=!1,Ms=null,sn=null,Hl=!1,Zt=null,_i=0,Kr=0,Fs=null,li=-1,ii=0;function He(){return ie&6?je():li!==-1?li:li=je()}function an(e){return e.mode&1?ie&2&&Oe!==0?Oe&-Oe:Lg.transition!==null?(ii===0&&(ii=sf()),ii):(e=se,e!==0||(e=window.event,e=e===void 0?16:hf(e.type)),e):1}function Ct(e,t,n,r){if(50<Kr)throw Kr=0,Fs=null,Error(B(185));wl(e,n,r),(!(ie&2)||e!==Le)&&(e===Le&&(!(ie&2)&&(qi|=n),Ie===4&&Jt(e,Oe)),Ge(e,r),n===1&&ie===0&&!(t.mode&1)&&(yr=je()+500,Hi&&mn()))}function Ge(e,t){var n=e.callbackNode;Lm(e,t);var r=pi(e,e===Le?Oe:0);if(r===0)n!==null&&Nu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Nu(n),t===1)e.tag===0?bg(xc.bind(null,e)):zf(xc.bind(null,e)),Pg(function(){!(ie&6)&&mn()}),n=null;else{switch(af(r)){case 1:n=ha;break;case 4:n=lf;break;case 16:n=fi;break;case 536870912:n=of;break;default:n=fi}n=bp(n,jp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jp(e,t){if(li=-1,ii=0,ie&6)throw Error(B(327));var n=e.callbackNode;if(ar()&&e.callbackNode!==n)return null;var r=pi(e,e===Le?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=bi(e,r);else{t=r;var l=ie;ie|=2;var i=Np();(Le!==e||Oe!==t)&&(At=null,yr=je()+500,Pn(e,t));do try{Gg();break}catch(s){Ep(e,s)}while(!0);Pa(),Ti.current=i,ie=l,Pe!==null?t=0:(Le=null,Oe=0,t=Ie)}if(t!==0){if(t===2&&(l=fs(e),l!==0&&(r=l,t=Bs(e,l))),t===1)throw n=gl,Pn(e,0),Jt(e,r),Ge(e,je()),n;if(t===6)Jt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Xg(l)&&(t=bi(e,r),t===2&&(i=fs(e),i!==0&&(r=i,t=Bs(e,i))),t===1))throw n=gl,Pn(e,0),Jt(e,r),Ge(e,je()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(B(345));case 2:wn(e,qe,At);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=$a+500-je(),10<t)){if(pi(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ks(wn.bind(null,e,qe,At),t);break}wn(e,qe,At);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-St(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kg(r/1960))-r,10<r){e.timeoutHandle=ks(wn.bind(null,e,qe,At),r);break}wn(e,qe,At);break;case 5:wn(e,qe,At);break;default:throw Error(B(329))}}}return Ge(e,je()),e.callbackNode===n?jp.bind(null,e):null}function Bs(e,t){var n=qr;return e.current.memoizedState.isDehydrated&&(Pn(e,t).flags|=256),e=bi(e,t),e!==2&&(t=qe,qe=n,t!==null&&Us(t)),e}function Us(e){qe===null?qe=e:qe.push.apply(qe,e)}function Xg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!jt(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t){for(t&=~Ua,t&=~qi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function xc(e){if(ie&6)throw Error(B(327));ar();var t=pi(e,0);if(!(t&1))return Ge(e,je()),null;var n=bi(e,t);if(e.tag!==0&&n===2){var r=fs(e);r!==0&&(t=r,n=Bs(e,r))}if(n===1)throw n=gl,Pn(e,0),Jt(e,t),Ge(e,je()),n;if(n===6)throw Error(B(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e,qe,At),Ge(e,je()),null}function Va(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(yr=je()+500,Hi&&mn())}}function zn(e){Zt!==null&&Zt.tag===0&&!(ie&6)&&ar();var t=ie;ie|=1;var n=ht.transition,r=se;try{if(ht.transition=null,se=1,e)return e()}finally{se=r,ht.transition=n,ie=t,!(ie&6)&&mn()}}function Ha(){rt=nr.current,me(nr)}function Pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ng(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(ja(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xi();break;case 3:mr(),me(Xe),me(Ue),za();break;case 5:La(r);break;case 4:mr();break;case 13:me(ve);break;case 19:me(ve);break;case 10:Ta(r.type._context);break;case 22:case 23:Ha()}n=n.return}if(Le=e,Pe=e=un(e.current,null),Oe=rt=t,Ie=0,gl=null,Ua=qi=Ln=0,qe=qr=null,En!==null){for(t=0;t<En.length;t++)if(n=En[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}En=null}return e}function Ep(e,t){do{var n=Pe;try{if(Pa(),ti.current=Pi,Ni){for(var r=ke.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Ni=!1}if(bn=0,be=Te=ke=null,Yr=!1,pl=0,Ba.current=null,n===null||n.return===null){Ie=1,gl=t,Pe=null;break}e:{var i=e,o=n.return,s=n,a=t;if(t=Oe,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ic(o);if(h!==null){h.flags&=-257,oc(h,o,s,i,t),h.mode&1&&lc(i,c,t),t=h,a=c;var v=t.updateQueue;if(v===null){var w=new Set;w.add(a),t.updateQueue=w}else v.add(a);break e}else{if(!(t&1)){lc(i,c,t),Wa();break e}a=Error(B(426))}}else if(ge&&s.mode&1){var E=ic(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),oc(E,o,s,i,t),Ea(gr(a,s));break e}}i=a=gr(a,s),Ie!==4&&(Ie=2),qr===null?qr=[i]:qr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=ap(i,a,t);Gu(i,m);break e;case 1:s=a;var y=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(sn===null||!sn.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=up(i,s,t);Gu(i,C);break e}}i=i.return}while(i!==null)}Tp(n)}catch(P){t=P,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function Np(){var e=Ti.current;return Ti.current=Pi,e===null?Pi:e}function Wa(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Le===null||!(Ln&268435455)&&!(qi&268435455)||Jt(Le,Oe)}function bi(e,t){var n=ie;ie|=2;var r=Np();(Le!==e||Oe!==t)&&(At=null,Pn(e,t));do try{Jg();break}catch(l){Ep(e,l)}while(!0);if(Pa(),ie=n,Ti.current=r,Pe!==null)throw Error(B(261));return Le=null,Oe=0,Ie}function Jg(){for(;Pe!==null;)Pp(Pe)}function Gg(){for(;Pe!==null&&!Cm();)Pp(Pe)}function Pp(e){var t=_p(e.alternate,e,rt);e.memoizedProps=e.pendingProps,t===null?Tp(e):Pe=t,Ba.current=null}function Tp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Wg(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Pe=null;return}}else if(n=Hg(n,t,rt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Ie===0&&(Ie=5)}function wn(e,t,n){var r=se,l=ht.transition;try{ht.transition=null,se=1,Zg(e,t,n,r)}finally{ht.transition=l,se=r}return null}function Zg(e,t,n,r){do ar();while(Zt!==null);if(ie&6)throw Error(B(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(B(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zm(e,i),e===Le&&(Pe=Le=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hl||(Hl=!0,bp(fi,function(){return ar(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ht.transition,ht.transition=null;var o=se;se=1;var s=ie;ie|=4,Ba.current=null,Qg(e,n),Sp(n,e),vg(xs),hi=!!ys,xs=ys=null,e.current=n,qg(n),jm(),ie=s,se=o,ht.transition=i}else e.current=n;if(Hl&&(Hl=!1,Zt=e,_i=l),i=e.pendingLanes,i===0&&(sn=null),Pm(n.stateNode),Ge(e,je()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Ii)throw Ii=!1,e=Ms,Ms=null,e;return _i&1&&e.tag!==0&&ar(),i=e.pendingLanes,i&1?e===Fs?Kr++:(Kr=0,Fs=e):Kr=0,mn(),null}function ar(){if(Zt!==null){var e=af(_i),t=ht.transition,n=se;try{if(ht.transition=null,se=16>e?16:e,Zt===null)var r=!1;else{if(e=Zt,Zt=null,_i=0,ie&6)throw Error(B(331));var l=ie;for(ie|=4,Y=e.current;Y!==null;){var i=Y,o=i.child;if(Y.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var c=s[a];for(Y=c;Y!==null;){var d=Y;switch(d.tag){case 0:case 11:case 15:Qr(8,d,i)}var f=d.child;if(f!==null)f.return=d,Y=f;else for(;Y!==null;){d=Y;var p=d.sibling,h=d.return;if(vp(d),d===c){Y=null;break}if(p!==null){p.return=h,Y=p;break}Y=h}}}var v=i.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var E=w.sibling;w.sibling=null,w=E}while(w!==null)}}Y=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Y=o;else e:for(;Y!==null;){if(i=Y,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Qr(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,Y=m;break e}Y=i.return}}var y=e.current;for(Y=y;Y!==null;){o=Y;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Y=x;else e:for(o=y;Y!==null;){if(s=Y,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Qi(9,s)}}catch(P){Se(s,s.return,P)}if(s===o){Y=null;break e}var C=s.sibling;if(C!==null){C.return=s.return,Y=C;break e}Y=s.return}}if(ie=l,mn(),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Fi,e)}catch{}r=!0}return r}finally{se=n,ht.transition=t}}return!1}function vc(e,t,n){t=gr(n,t),t=ap(e,t,1),e=on(e,t,1),t=He(),e!==null&&(wl(e,1,t),Ge(e,t))}function Se(e,t,n){if(e.tag===3)vc(e,e,n);else for(;t!==null;){if(t.tag===3){vc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sn===null||!sn.has(r))){e=gr(n,e),e=up(t,e,1),t=on(t,e,1),e=He(),t!==null&&(wl(t,1,e),Ge(t,e));break}}t=t.return}}function ey(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Oe&n)===n&&(Ie===4||Ie===3&&(Oe&130023424)===Oe&&500>je()-$a?Pn(e,0):Ua|=n),Ge(e,t)}function Ip(e,t){t===0&&(e.mode&1?(t=Ol,Ol<<=1,!(Ol&130023424)&&(Ol=4194304)):t=1);var n=He();e=Vt(e,t),e!==null&&(wl(e,t,n),Ge(e,n))}function ty(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ip(e,n)}function ny(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(B(314))}r!==null&&r.delete(t),Ip(e,n)}var _p;_p=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,Vg(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ge&&t.flags&1048576&&Of(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ri(e,t),e=t.pendingProps;var l=fr(t,Ue.current);sr(t,n),l=Ra(null,t,r,e,l,n);var i=Aa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(i=!0,vi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,_a(t),l.updater=Yi,t.stateNode=l,l._reactInternals=t,Ps(t,r,e,n),t=_s(null,t,r,!0,i,n)):(t.tag=0,ge&&i&&Ca(t),Ve(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ri(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ly(r),e=vt(r,e),l){case 0:t=Is(null,t,r,e,n);break e;case 1:t=uc(null,t,r,e,n);break e;case 11:t=sc(null,t,r,e,n);break e;case 14:t=ac(null,t,r,vt(r.type,e),n);break e}throw Error(B(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),Is(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),uc(e,t,r,l,n);case 3:e:{if(pp(t),e===null)throw Error(B(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Bf(e,t),ji(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=gr(Error(B(423)),t),t=cc(e,t,r,n,l);break e}else if(r!==l){l=gr(Error(B(424)),t),t=cc(e,t,r,n,l);break e}else for(lt=ln(t.stateNode.containerInfo.firstChild),ot=t,ge=!0,wt=null,n=Mf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===l){t=Ht(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Uf(t),e===null&&js(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,vs(r,l)?o=null:i!==null&&vs(r,i)&&(t.flags|=32),fp(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&js(t),null;case 13:return hp(e,t,n);case 4:return ba(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),sc(e,t,r,l,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,fe(Si,r._currentValue),r._currentValue=o,i!==null)if(jt(i.value,o)){if(i.children===l.children&&!Xe.current){t=Ht(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Bt(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Es(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(B(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Es(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ve(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,sr(t,n),l=mt(l),r=r(l),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,l=vt(r,t.pendingProps),l=vt(r.type,l),ac(e,t,r,l,n);case 15:return cp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:vt(r,l),ri(e,t),t.tag=1,Je(r)?(e=!0,vi(t)):e=!1,sr(t,n),sp(t,r,l),Ps(t,r,l,n),_s(null,t,r,!0,e,n);case 19:return mp(e,t,n);case 22:return dp(e,t,n)}throw Error(B(156,t.tag))};function bp(e,t){return rf(e,t)}function ry(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new ry(e,t,n,r)}function Ya(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ly(e){if(typeof e=="function")return Ya(e)?1:0;if(e!=null){if(e=e.$$typeof,e===da)return 11;if(e===fa)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oi(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ya(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yn:return Tn(n.children,l,i,t);case ca:o=8,l|=8;break;case Jo:return e=pt(12,n,t,l|2),e.elementType=Jo,e.lanes=i,e;case Go:return e=pt(13,n,t,l),e.elementType=Go,e.lanes=i,e;case Zo:return e=pt(19,n,t,l),e.elementType=Zo,e.lanes=i,e;case Bd:return Ki(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Md:o=10;break e;case Fd:o=9;break e;case da:o=11;break e;case fa:o=14;break e;case qt:o=16,r=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=pt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Tn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Ki(e,t,n,r){return e=pt(22,e,r,t),e.elementType=Bd,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Oo(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iy(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Qa(e,t,n,r,l,i,o,s,a){return e=new iy(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(i),e}function oy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Lp(e){if(!e)return fn;e=e._reactInternals;e:{if(Rn(e)!==e||e.tag!==1)throw Error(B(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(B(171))}if(e.tag===1){var n=e.type;if(Je(n))return Lf(e,n,t)}return t}function zp(e,t,n,r,l,i,o,s,a){return e=Qa(n,r,!0,e,l,i,o,s,a),e.context=Lp(null),n=e.current,r=He(),l=an(n),i=Bt(r,l),i.callback=t??null,on(n,i,l),e.current.lanes=l,wl(e,l,r),Ge(e,r),e}function Xi(e,t,n,r){var l=t.current,i=He(),o=an(l);return n=Lp(n),t.context===null?t.context=n:t.pendingContext=n,t=Bt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=on(l,t,o),e!==null&&(Ct(e,l,o,i),ei(e,l,o)),o}function Li(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 kc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qa(e,t){kc(e,t),(e=e.alternate)&&kc(e,t)}function sy(){return null}var Op=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ka(e){this._internalRoot=e}Ji.prototype.render=Ka.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(B(409));Xi(e,t,null,null)};Ji.prototype.unmount=Ka.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){Xi(null,e,null,null)}),t[$t]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=df();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xt.length&&t!==0&&t<Xt[n].priority;n++);Xt.splice(n,0,e),n===0&&pf(e)}};function Xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wc(){}function ay(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var c=Li(o);i.call(c)}}var o=zp(t,r,e,0,null,!1,!1,"",wc);return e._reactRootContainer=o,e[$t]=o.current,al(e.nodeType===8?e.parentNode:e),zn(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var s=r;r=function(){var c=Li(a);s.call(c)}}var a=Qa(e,0,!1,null,null,!1,!1,"",wc);return e._reactRootContainer=a,e[$t]=a.current,al(e.nodeType===8?e.parentNode:e),zn(function(){Xi(t,a,n,r)}),a}function Zi(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var s=l;l=function(){var a=Li(o);s.call(a)}}Xi(t,o,e,l)}else o=ay(n,t,e,l,r);return Li(o)}uf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fr(t.pendingLanes);n!==0&&(ma(t,n|1),Ge(t,je()),!(ie&6)&&(yr=je()+500,mn()))}break;case 13:zn(function(){var r=Vt(e,1);if(r!==null){var l=He();Ct(r,e,1,l)}}),qa(e,1)}};ga=function(e){if(e.tag===13){var t=Vt(e,134217728);if(t!==null){var n=He();Ct(t,e,134217728,n)}qa(e,134217728)}};cf=function(e){if(e.tag===13){var t=an(e),n=Vt(e,t);if(n!==null){var r=He();Ct(n,e,t,r)}qa(e,t)}};df=function(){return se};ff=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};us=function(e,t,n){switch(t){case"input":if(ns(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Vi(r);if(!l)throw Error(B(90));$d(r),ns(r,l)}}}break;case"textarea":Hd(e,n);break;case"select":t=n.value,t!=null&&rr(e,!!n.multiple,t,!1)}};Jd=Va;Gd=zn;var uy={usingClientEntryPoint:!1,Events:[Cl,Xn,Vi,Kd,Xd,Va]},Or={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cy={bundleType:Or.bundleType,version:Or.version,rendererPackageName:Or.rendererPackageName,rendererConfig:Or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tf(e),e===null?null:e.stateNode},findFiberByHostInstance:Or.findFiberByHostInstance||sy,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 Wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wl.isDisabled&&Wl.supportsFiber)try{Fi=Wl.inject(cy),bt=Wl}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uy;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xa(t))throw Error(B(200));return oy(e,t,null,n)};at.createRoot=function(e,t){if(!Xa(e))throw Error(B(299));var n=!1,r="",l=Op;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Qa(e,1,!1,null,null,n,!1,r,l),e[$t]=t.current,al(e.nodeType===8?e.parentNode:e),new Ka(t)};at.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(B(188)):(e=Object.keys(e).join(","),Error(B(268,e)));return e=tf(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return zn(e)};at.hydrate=function(e,t,n){if(!Gi(t))throw Error(B(200));return Zi(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!Xa(e))throw Error(B(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Op;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=zp(t,null,e,1,n??null,l,!1,i,o),e[$t]=t.current,al(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ji(t)};at.render=function(e,t,n){if(!Gi(t))throw Error(B(200));return Zi(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!Gi(e))throw Error(B(40));return e._reactRootContainer?(zn(function(){Zi(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1};at.unstable_batchedUpdates=Va;at.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gi(n))throw Error(B(200));if(e==null||e._reactInternals===void 0)throw Error(B(38));return Zi(e,t,n,!1,r)};at.version="18.3.1-next-f1338f8080-20240426";function Rp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rp)}catch(e){console.error(e)}}Rp(),Od.exports=at;var dy=Od.exports,Sc=dy;Ko.createRoot=Sc.createRoot,Ko.hydrateRoot=Sc.hydrateRoot;/**
|
|
41
41
|
* @remix-run/router v1.23.2
|
|
42
42
|
*
|
|
43
43
|
* Copyright (c) Remix Software Inc.
|
|
@@ -46,7 +46,7 @@ Error generating stack: `+i.message+`
|
|
|
46
46
|
* LICENSE.md file in the root directory of this source tree.
|
|
47
47
|
*
|
|
48
48
|
* @license MIT
|
|
49
|
-
*/function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yl.apply(this,arguments)}var en;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(en||(en={}));const
|
|
49
|
+
*/function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yl.apply(this,arguments)}var en;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(en||(en={}));const Cc="popstate";function fy(e){e===void 0&&(e={});function t(l,i){let{pathname:o="/",search:s="",hash:a=""}=An(l.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),$s("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(l,i){let o=l.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let a=l.location.href,c=a.indexOf("#");s=c===-1?a:a.slice(0,c)}return s+"#"+(typeof i=="string"?i:zi(i))}function r(l,i){eo(l.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return hy(t,n,r,e)}function Ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function eo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function py(){return Math.random().toString(36).substr(2,8)}function jc(e,t){return{usr:e.state,key:e.key,idx:t}}function $s(e,t,n,r){return n===void 0&&(n=null),yl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?An(t):t,{state:n,key:t&&t.key||r||py()})}function zi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function An(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hy(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=en.Pop,a=null,c=d();c==null&&(c=0,o.replaceState(yl({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){s=en.Pop;let E=d(),m=E==null?null:E-c;c=E,a&&a({action:s,location:w.location,delta:m})}function p(E,m){s=en.Push;let y=$s(w.location,E,m);n&&n(y,E),c=d()+1;let x=jc(y,c),C=w.createHref(y);try{o.pushState(x,"",C)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(C)}i&&a&&a({action:s,location:w.location,delta:1})}function h(E,m){s=en.Replace;let y=$s(w.location,E,m);n&&n(y,E),c=d();let x=jc(y,c),C=w.createHref(y);o.replaceState(x,"",C),i&&a&&a({action:s,location:w.location,delta:0})}function v(E){let m=l.location.origin!=="null"?l.location.origin:l.location.href,y=typeof E=="string"?E:zi(E);return y=y.replace(/ $/,"%20"),Ce(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let w={get action(){return s},get location(){return e(l,o)},listen(E){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Cc,f),a=E,()=>{l.removeEventListener(Cc,f),a=null}},createHref(E){return t(l,E)},createURL:v,encodeLocation(E){let m=v(E);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:h,go(E){return o.go(E)}};return w}var Ec;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ec||(Ec={}));function my(e,t,n){return n===void 0&&(n="/"),gy(e,t,n)}function gy(e,t,n,r){let l=typeof t=="string"?An(t):t,i=xr(l.pathname||"/",n);if(i==null)return null;let o=Ap(e);yy(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let c=Ty(i);s=Ny(o[a],c)}return s}function Ap(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(i,o,s)=>{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(Ce(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=cn([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(Ce(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ap(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:jy(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of Dp(i.path))l(i,o,a)}),t}function Dp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Dp(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function yy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ey(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xy=/^:[\w-]+$/,vy=3,ky=2,wy=1,Sy=10,Cy=-2,Nc=e=>e==="*";function jy(e,t){let n=e.split("/"),r=n.length;return n.some(Nc)&&(r+=Cy),t&&(r+=ky),n.filter(l=>!Nc(l)).reduce((l,i)=>l+(xy.test(i)?vy:i===""?wy:Sy),r)}function Ey(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Ny(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let s=0;s<r.length;++s){let a=r[s],c=s===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=Vs({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},d),p=a.route;if(!f)return null;Object.assign(l,f.params),o.push({params:l,pathname:cn([i,f.pathname]),pathnameBase:zy(cn([i,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(i=cn([i,f.pathnameBase]))}return o}function Vs(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Py(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let i=l[0],o=i.replace(/(.)\/+$/,"$1"),s=l.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let w=s[f]||"";o=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const v=s[f];return h&&!v?c[p]=void 0:c[p]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function Py(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),eo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Ty(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return eo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function xr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Iy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_y=e=>Iy.test(e);function by(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?An(e):e,i;if(n)if(_y(n))i=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),eo(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Pc(n.substring(1),"/"):i=Pc(n,t)}else i=t;return{pathname:i,search:Oy(r),hash:Ry(l)}}function Pc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Ro(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ly(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mp(e,t){let n=Ly(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Fp(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=An(e):(l=yl({},e),Ce(!l.pathname||!l.pathname.includes("?"),Ro("?","pathname","search",l)),Ce(!l.pathname||!l.pathname.includes("#"),Ro("#","pathname","hash",l)),Ce(!l.search||!l.search.includes("#"),Ro("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;l.pathname=p.join("/")}s=f>=0?t[f]:"/"}let a=by(l,s),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||d)&&(a.pathname+="/"),a}const cn=e=>e.join("/").replace(/\/\/+/g,"/"),zy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Oy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ry=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ay(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bp=["post","put","patch","delete"];new Set(Bp);const Dy=["get",...Bp];new Set(Dy);/**
|
|
50
50
|
* React Router v6.30.3
|
|
51
51
|
*
|
|
52
52
|
* Copyright (c) Remix Software Inc.
|
|
@@ -55,7 +55,7 @@ Error generating stack: `+i.message+`
|
|
|
55
55
|
* LICENSE.md file in the root directory of this source tree.
|
|
56
56
|
*
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(this,arguments)}const to=N.createContext(null),Up=N.createContext(null),gn=N.createContext(null),no=N.createContext(null),Dn=N.createContext({outlet:null,matches:[],isDataRoute:!1}),$p=N.createContext(null);function My(e,t){let{relative:n}=t===void 0?{}:t;El()||Ce(!1);let{basename:r,navigator:l}=N.useContext(gn),{hash:i,pathname:o,search:s}=ro(e,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:cn([r,o])),l.createHref({pathname:a,search:s,hash:i})}function El(){return N.useContext(no)!=null}function Nl(){return El()||Ce(!1),N.useContext(no).location}function Vp(e){N.useContext(gn).static||N.useLayoutEffect(e)}function Hp(){let{isDataRoute:e}=N.useContext(Dn);return e?Jy():Fy()}function Fy(){El()||Ce(!1);let e=N.useContext(to),{basename:t,future:n,navigator:r}=N.useContext(gn),{matches:l}=N.useContext(Dn),{pathname:i}=Nl(),o=JSON.stringify(Mp(l,n.v7_relativeSplatPath)),s=N.useRef(!1);return Vp(()=>{s.current=!0}),N.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=Fp(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:cn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}function ro(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=N.useContext(gn),{matches:l}=N.useContext(Dn),{pathname:i}=Nl(),o=JSON.stringify(Mp(l,r.v7_relativeSplatPath));return N.useMemo(()=>Fp(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function By(e,t){return Uy(e,t)}function Uy(e,t,n,r){El()||Ce(!1);let{navigator:l}=N.useContext(gn),{matches:i}=N.useContext(Dn),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=Nl(),d;if(t){var f;let E=typeof t=="string"?An(t):t;a==="/"||(f=E.pathname)!=null&&f.startsWith(a)||Ce(!1),d=E}else d=c;let p=d.pathname||"/",h=p;if(a!=="/"){let E=a.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let v=my(e,{pathname:h}),w=Yy(v&&v.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:cn([a,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?a:cn([a,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),i,n,r);return t&&w?N.createElement(no.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:en.Pop}},w):w}function $y(){let e=Xy(),t=Ay(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:l},n):null,null)}const Vy=N.createElement($y,null);class Hy extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(Dn.Provider,{value:this.props.routeContext},N.createElement($p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Wy(e){let{routeContext:t,match:n,children:r}=e,l=N.useContext(to);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(Dn.Provider,{value:t},r)}function Yy(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let d=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Ce(!1),o=o.slice(0,Math.min(o.length,d+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:h}=n,v=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||v){a=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,p)=>{let h,v=!1,w=null,E=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,w=f.route.errorElement||Vy,a&&(c<0&&p===0?(Gy("route-fallback"),v=!0,E=null):c===p&&(v=!0,E=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,p+1)),y=()=>{let x;return h?x=w:v?x=E:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(Wy,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(Hy,{location:n.location,revalidation:n.revalidation,component:w,error:h,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var Wp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Wp||{}),Yp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Yp||{});function Qy(e){let t=N.useContext(to);return t||Ce(!1),t}function qy(e){let t=N.useContext(Up);return t||Ce(!1),t}function Ky(e){let t=N.useContext(Dn);return t||Ce(!1),t}function Qp(e){let t=Ky(),n=t.matches[t.matches.length-1];return n.route.id||Ce(!1),n.route.id}function Xy(){var e;let t=N.useContext($p),n=qy(),r=Qp();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Jy(){let{router:e}=Qy(Wp.UseNavigateStable),t=Qp(Yp.UseNavigateStable),n=N.useRef(!1);return Vp(()=>{n.current=!0}),N.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,xl({fromRouteId:t},i)))},[e,t])}const
|
|
58
|
+
*/function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(this,arguments)}const to=N.createContext(null),Up=N.createContext(null),gn=N.createContext(null),no=N.createContext(null),Dn=N.createContext({outlet:null,matches:[],isDataRoute:!1}),$p=N.createContext(null);function My(e,t){let{relative:n}=t===void 0?{}:t;El()||Ce(!1);let{basename:r,navigator:l}=N.useContext(gn),{hash:i,pathname:o,search:s}=ro(e,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:cn([r,o])),l.createHref({pathname:a,search:s,hash:i})}function El(){return N.useContext(no)!=null}function Nl(){return El()||Ce(!1),N.useContext(no).location}function Vp(e){N.useContext(gn).static||N.useLayoutEffect(e)}function Hp(){let{isDataRoute:e}=N.useContext(Dn);return e?Jy():Fy()}function Fy(){El()||Ce(!1);let e=N.useContext(to),{basename:t,future:n,navigator:r}=N.useContext(gn),{matches:l}=N.useContext(Dn),{pathname:i}=Nl(),o=JSON.stringify(Mp(l,n.v7_relativeSplatPath)),s=N.useRef(!1);return Vp(()=>{s.current=!0}),N.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=Fp(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:cn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}function ro(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=N.useContext(gn),{matches:l}=N.useContext(Dn),{pathname:i}=Nl(),o=JSON.stringify(Mp(l,r.v7_relativeSplatPath));return N.useMemo(()=>Fp(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function By(e,t){return Uy(e,t)}function Uy(e,t,n,r){El()||Ce(!1);let{navigator:l}=N.useContext(gn),{matches:i}=N.useContext(Dn),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=Nl(),d;if(t){var f;let E=typeof t=="string"?An(t):t;a==="/"||(f=E.pathname)!=null&&f.startsWith(a)||Ce(!1),d=E}else d=c;let p=d.pathname||"/",h=p;if(a!=="/"){let E=a.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let v=my(e,{pathname:h}),w=Yy(v&&v.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:cn([a,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?a:cn([a,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),i,n,r);return t&&w?N.createElement(no.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:en.Pop}},w):w}function $y(){let e=Xy(),t=Ay(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:l},n):null,null)}const Vy=N.createElement($y,null);class Hy extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(Dn.Provider,{value:this.props.routeContext},N.createElement($p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Wy(e){let{routeContext:t,match:n,children:r}=e,l=N.useContext(to);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(Dn.Provider,{value:t},r)}function Yy(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let d=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Ce(!1),o=o.slice(0,Math.min(o.length,d+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:h}=n,v=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||v){a=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,p)=>{let h,v=!1,w=null,E=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,w=f.route.errorElement||Vy,a&&(c<0&&p===0?(Gy("route-fallback"),v=!0,E=null):c===p&&(v=!0,E=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,p+1)),y=()=>{let x;return h?x=w:v?x=E:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(Wy,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(Hy,{location:n.location,revalidation:n.revalidation,component:w,error:h,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var Wp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Wp||{}),Yp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Yp||{});function Qy(e){let t=N.useContext(to);return t||Ce(!1),t}function qy(e){let t=N.useContext(Up);return t||Ce(!1),t}function Ky(e){let t=N.useContext(Dn);return t||Ce(!1),t}function Qp(e){let t=Ky(),n=t.matches[t.matches.length-1];return n.route.id||Ce(!1),n.route.id}function Xy(){var e;let t=N.useContext($p),n=qy(),r=Qp();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Jy(){let{router:e}=Qy(Wp.UseNavigateStable),t=Qp(Yp.UseNavigateStable),n=N.useRef(!1);return Vp(()=>{n.current=!0}),N.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,xl({fromRouteId:t},i)))},[e,t])}const Tc={};function Gy(e,t,n){Tc[e]||(Tc[e]=!0)}function Zy(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Sn(e){Ce(!1)}function ex(e){let{basename:t="/",children:n=null,location:r,navigationType:l=en.Pop,navigator:i,static:o=!1,future:s}=e;El()&&Ce(!1);let a=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:a,navigator:i,static:o,future:xl({v7_relativeSplatPath:!1},s)}),[a,s,i,o]);typeof r=="string"&&(r=An(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:v="default"}=r,w=N.useMemo(()=>{let E=xr(d,a);return E==null?null:{location:{pathname:E,search:f,hash:p,state:h,key:v},navigationType:l}},[a,d,f,p,h,v,l]);return w==null?null:N.createElement(gn.Provider,{value:c},N.createElement(no.Provider,{children:n,value:w}))}function tx(e){let{children:t,location:n}=e;return By(Hs(t),n)}new Promise(()=>{});function Hs(e,t){t===void 0&&(t=[]);let n=[];return N.Children.forEach(e,(r,l)=>{if(!N.isValidElement(r))return;let i=[...t,l];if(r.type===N.Fragment){n.push.apply(n,Hs(r.props.children,i));return}r.type!==Sn&&Ce(!1),!r.props.index||!r.props.children||Ce(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Hs(r.props.children,i)),n.push(o)}),n}/**
|
|
59
59
|
* React Router DOM v6.30.3
|
|
60
60
|
*
|
|
61
61
|
* Copyright (c) Remix Software Inc.
|
|
@@ -64,20 +64,20 @@ Error generating stack: `+i.message+`
|
|
|
64
64
|
* LICENSE.md file in the root directory of this source tree.
|
|
65
65
|
*
|
|
66
66
|
* @license MIT
|
|
67
|
-
*/function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oi.apply(this,arguments)}function qp(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i<r.length;i++)l=r[i],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function nx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rx(e,t){return e.button===0&&(!t||t==="_self")&&!nx(e)}const lx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ix=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ox="6";try{window.__reactRouterVersion=ox}catch{}const sx=N.createContext({isTransitioning:!1}),ax="startTransition",_c=em[ax];function ux(e){let{basename:t,children:n,future:r,window:l}=e,i=N.useRef();i.current==null&&(i.current=fy({window:l,v5Compat:!0}));let o=i.current,[s,a]=N.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=N.useCallback(f=>{c&&_c?_c(()=>a(f)):a(f)},[a,c]);return N.useLayoutEffect(()=>o.listen(d),[o,d]),N.useEffect(()=>Zy(r),[r]),N.createElement(ex,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const cx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fx=N.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:s,target:a,to:c,preventScrollReset:d,viewTransition:f}=t,p=qp(t,lx),{basename:h}=N.useContext(gn),v,w=!1;if(typeof c=="string"&&dx.test(c)&&(v=c,cx))try{let x=new URL(window.location.href),C=c.startsWith("//")?new URL(x.protocol+c):new URL(c),P=xr(C.pathname,h);C.origin===x.origin&&P!=null?c=P+C.search+C.hash:w=!0}catch{}let E=My(c,{relative:l}),m=hx(c,{replace:o,state:s,target:a,preventScrollReset:d,relative:l,viewTransition:f});function y(x){r&&r(x),x.defaultPrevented||m(x)}return N.createElement("a",Oi({},p,{href:v||E,onClick:w||i?r:y,ref:n,target:a}))}),Un=N.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:s,to:a,viewTransition:c,children:d}=t,f=qp(t,ix),p=ro(a,{relative:f.relative}),h=Nl(),v=N.useContext(Up),{navigator:w,basename:E}=N.useContext(gn),m=v!=null&&mx(p)&&c===!0,y=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,x=h.pathname,C=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;l||(x=x.toLowerCase(),C=C?C.toLowerCase():null,y=y.toLowerCase()),C&&E&&(C=xr(C,E)||C);const P=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=x===y||!o&&x.startsWith(y)&&x.charAt(P)==="/",L=C!=null&&(C===y||!o&&C.startsWith(y)&&C.charAt(y.length)==="/"),D={isActive:S,isPending:L,isTransitioning:m},W=S?r:void 0,R;typeof i=="function"?R=i(D):R=[i,S?"active":null,L?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let z=typeof s=="function"?s(D):s;return N.createElement(fx,Oi({},f,{"aria-current":W,className:R,ref:n,style:z,to:a,viewTransition:c}),typeof d=="function"?d(D):d)});var Ys;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ys||(Ys={}));var bc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bc||(bc={}));function px(e){let t=N.useContext(to);return t||Ce(!1),t}function hx(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:s}=t===void 0?{}:t,a=Hp(),c=Nl(),d=ro(e,{relative:o});return N.useCallback(f=>{if(rx(f,n)){f.preventDefault();let p=r!==void 0?r:zi(c)===zi(d);a(e,{replace:p,state:l,preventScrollReset:i,relative:o,viewTransition:s})}},[c,a,d,r,l,n,e,i,o,s])}function mx(e,t){t===void 0&&(t={});let n=N.useContext(sx);n==null&&Ce(!1);let{basename:r}=px(Ys.useViewTransitionState),l=ro(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=xr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=xr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Hs(l.pathname,o)!=null||Hs(l.pathname,i)!=null}const ne=(e,t)=>{if(!t)return e;const n=new URLSearchParams;Object.entries(t).forEach(([l,i])=>{i!=null&&i!==""&&n.set(l,String(i))});const r=n.toString();return r?`${e}?${r}`:e},re=async(e,t={})=>{const n=localStorage.getItem("auth_token"),r=await fetch(e,{...t,headers:{"Content-Type":"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t.headers||{}}});if(!r.ok){if(r.status===401){localStorage.removeItem("auth_token");const o=await r.text(),s=new Error(o||r.statusText);throw s.status=401,s}const i=await r.text();throw new Error(i||r.statusText)}return r.status===204?void 0:(r.headers.get("content-type")||"").includes("application/json")?r.json():r.text()},J={getAuthStatus:()=>re(ne("/api/auth/status")),login:e=>re(ne("/api/auth/login"),{method:"POST",body:JSON.stringify({authCode:e})}),getVendors:()=>re(ne("/api/vendors")),createVendor:e=>re(ne("/api/vendors"),{method:"POST",body:JSON.stringify(e)}),updateVendor:(e,t)=>re(ne(`/api/vendors/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteVendor:e=>re(ne(`/api/vendors/${e}`),{method:"DELETE"}),getAPIServices:e=>re(ne("/api/services",e?{vendorId:e}:void 0)),createAPIService:e=>re(ne("/api/services"),{method:"POST",body:JSON.stringify(e)}),updateAPIService:(e,t)=>re(ne(`/api/services/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteAPIService:e=>re(ne(`/api/services/${e}`),{method:"DELETE"}),getRoutes:()=>re(ne("/api/routes")),createRoute:e=>re(ne("/api/routes"),{method:"POST",body:JSON.stringify(e)}),updateRoute:(e,t)=>re(ne(`/api/routes/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteRoute:e=>re(ne(`/api/routes/${e}`),{method:"DELETE"}),activateRoute:e=>re(ne(`/api/routes/${e}/activate`),{method:"POST"}),deactivateRoute:e=>re(ne(`/api/routes/${e}/deactivate`),{method:"POST"}),getRules:e=>re(ne("/api/rules",e?{routeId:e}:void 0)),createRule:e=>re(ne("/api/rules"),{method:"POST",body:JSON.stringify(e)}),updateRule:(e,t)=>re(ne(`/api/rules/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteRule:e=>re(ne(`/api/rules/${e}`),{method:"DELETE"}),getLogs:(e,t)=>re(ne("/api/logs",{limit:e,offset:t})),clearLogs:()=>re(ne("/api/logs"),{method:"DELETE"}),getAccessLogs:(e,t)=>re(ne("/api/access-logs",{limit:e,offset:t})),clearAccessLogs:()=>re(ne("/api/access-logs"),{method:"DELETE"}),getErrorLogs:(e,t)=>re(ne("/api/error-logs",{limit:e,offset:t})),clearErrorLogs:()=>re(ne("/api/error-logs"),{method:"DELETE"}),getConfig:()=>re(ne("/api/config")),updateConfig:e=>re(ne("/api/config"),{method:"PUT",body:JSON.stringify(e)}),exportData:async e=>(await re(ne("/api/export"),{method:"POST",body:JSON.stringify({password:e})})).data,importData:(e,t)=>re(ne("/api/import"),{method:"POST",body:JSON.stringify({encryptedData:e,password:t})}),writeClaudeConfig:()=>re(ne("/api/write-config/claude"),{method:"POST"}),writeCodexConfig:()=>re(ne("/api/write-config/codex"),{method:"POST"}),restoreClaudeConfig:()=>re(ne("/api/restore-config/claude"),{method:"POST"}),restoreCodexConfig:()=>re(ne("/api/restore-config/codex"),{method:"POST"}),checkClaudeBackup:()=>re(ne("/api/check-backup/claude")),checkCodexBackup:()=>re(ne("/api/check-backup/codex"))};function gx(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const yx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vx={};function Lc(e,t){return(vx.jsx?xx:yx).test(e)}const kx=/[ \t\n\f\r]/g;function wx(e){return typeof e=="object"?e.type==="text"?zc(e.value):!1:zc(e)}function zc(e){return e.replace(kx,"")===""}class Pl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Pl.prototype.normal={};Pl.prototype.property={};Pl.prototype.space=void 0;function Kp(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new Pl(n,r,t)}function Qs(e){return e.toLowerCase()}class et{constructor(t,n){this.attribute=n,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let Sx=0;const G=Mn(),Ne=Mn(),qs=Mn(),U=Mn(),fe=Mn(),ur=Mn(),nt=Mn();function Mn(){return 2**++Sx}const Ks=Object.freeze(Object.defineProperty({__proto__:null,boolean:G,booleanish:Ne,commaOrSpaceSeparated:nt,commaSeparated:ur,number:U,overloadedBoolean:qs,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Ao=Object.keys(Ks);class Ga extends et{constructor(t,n,r,l){let i=-1;if(super(t,n),Oc(this,"space",l),typeof r=="number")for(;++i<Ao.length;){const o=Ao[i];Oc(this,Ao[i],(r&Ks[o])===Ks[o])}}}Ga.prototype.defined=!0;function Oc(e,t,n){n&&(e[t]=n)}function Sr(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const i=new Ga(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Qs(r)]=r,n[Qs(i.attribute)]=r}return new Pl(t,n,e.space)}const Xp=Sr({properties:{ariaActiveDescendant:null,ariaAtomic:Ne,ariaAutoComplete:null,ariaBusy:Ne,ariaChecked:Ne,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:Ne,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:Ne,ariaFlowTo:fe,ariaGrabbed:Ne,ariaHasPopup:null,ariaHidden:Ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:U,ariaLive:null,ariaModal:Ne,ariaMultiLine:Ne,ariaMultiSelectable:Ne,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Ne,ariaReadOnly:Ne,ariaRelevant:null,ariaRequired:Ne,ariaRoleDescription:fe,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Ne,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jp(e,t){return t in e?e[t]:t}function Gp(e,t){return Jp(e,t.toLowerCase())}const Cx=Sr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ur,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:fe,autoFocus:G,autoPlay:G,blocking:fe,capture:null,charSet:null,checked:G,cite:null,className:fe,cols:U,colSpan:null,content:null,contentEditable:Ne,controls:G,controlsList:fe,coords:U|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:qs,draggable:Ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:fe,height:U,hidden:qs,high:U,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:fe,itemRef:fe,itemScope:G,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,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:G,optimum:U,pattern:null,ping:fe,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:fe,required:G,reversed:G,rows:U,rowSpan:U,sandbox:fe,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:Ne,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Ne,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:G,disableRemotePlayback:G,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Gp}),jx=Sr({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:nt,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:fe,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,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:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nt,rev:nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nt,requiredFeatures:nt,requiredFonts:nt,requiredFormats:nt,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nt,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jp}),Zp=Sr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),eh=Sr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gp}),th=Sr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ex={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"},Nx=/[A-Z]/g,Rc=/-[a-z]/g,Px=/^data[-\w.:]+$/i;function Tx(e,t){const n=Qs(t);let r=t,l=et;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Px.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Rc,_x);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Rc.test(i)){let o=i.replace(Nx,Ix);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=Ga}return new l(r,t)}function Ix(e){return"-"+e.toLowerCase()}function _x(e){return e.charAt(1).toUpperCase()}const bx=Kp([Xp,Cx,Zp,eh,th],"html"),Za=Kp([Xp,jx,Zp,eh,th],"svg");function Lx(e){return e.join(" ").trim()}var eu={},Ac=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zx=/\n/g,Ox=/^\s*/,Rx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ax=/^:\s*/,Dx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mx=/^[;\s]*/,Fx=/^\s+|\s+$/g,Bx=`
|
|
68
|
-
`,Dc="/",Mc="*",Cn="",Ux="comment",$x="declaration";function Vx(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(v){var w=v.match(zx);w&&(n+=w.length);var E=v.lastIndexOf(Bx);r=~E?v.length-E:r+v.length}function i(){var v={line:n,column:r};return function(w){return w.position=new o(v),c(),w}}function o(v){this.start=v,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(v){var w=new Error(t.source+":"+n+":"+r+": "+v);if(w.reason=v,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function a(v){var w=v.exec(e);if(w){var E=w[0];return l(E),e=e.slice(E.length),w}}function c(){a(Ox)}function d(v){var w;for(v=v||[];w=f();)w!==!1&&v.push(w);return v}function f(){var v=i();if(!(Dc!=e.charAt(0)||Mc!=e.charAt(1))){for(var w=2;Cn!=e.charAt(w)&&(Mc!=e.charAt(w)||Dc!=e.charAt(w+1));)++w;if(w+=2,Cn===e.charAt(w-1))return s("End of comment missing");var E=e.slice(2,w-2);return r+=2,l(E),e=e.slice(w),r+=2,v({type:Ux,comment:E})}}function p(){var v=i(),w=a(Rx);if(w){if(f(),!a(Ax))return s("property missing ':'");var E=a(Dx),m=v({type:$x,property:Fc(w[0].replace(Ac,Cn)),value:E?Fc(E[0].replace(Ac,Cn)):Cn});return a(Mx),m}}function h(){var v=[];d(v);for(var w;w=p();)w!==!1&&(v.push(w),d(v));return v}return c(),h()}function Fc(e){return e?e.replace(Fx,Cn):Cn}var Hx=Vx,Wx=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=Qx;const Yx=Wx(Hx);function Qx(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Yx.default)(e),l=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:s}=i;l?t(o,s,i):s&&(n=n||{},n[o]=s)}),n}var lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.camelCase=void 0;var qx=/^--[a-zA-Z0-9_-]+$/,Kx=/-([a-z])/g,Xx=/^[^-]+$/,Jx=/^-(webkit|moz|ms|o|khtml)-/,Gx=/^-(ms)-/,Zx=function(e){return!e||Xx.test(e)||qx.test(e)},ev=function(e,t){return t.toUpperCase()},Bc=function(e,t){return"".concat(t,"-")},tv=function(e,t){return t===void 0&&(t={}),Zx(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Gx,Bc):e=e.replace(Jx,Bc),e.replace(Kx,ev))};lo.camelCase=tv;var nv=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},rv=nv(eu),lv=lo;function Xs(e,t){var n={};return!e||typeof e!="string"||(0,rv.default)(e,function(r,l){r&&l&&(n[(0,lv.camelCase)(r,t)]=l)}),n}Xs.default=Xs;var iv=Xs;const ov=Di(iv),nh=rh("end"),tu=rh("start");function rh(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function sv(e){const t=tu(e),n=nh(e);if(t&&n)return{start:t,end:n}}function Xr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Uc(e.position):"start"in e||"end"in e?Uc(e):"line"in e||"column"in e?Js(e):""}function Js(e){return $c(e&&e.line)+":"+$c(e&&e.column)}function Uc(e){return Js(e&&e.start)+"-"+Js(e&&e.end)}function $c(e){return e&&typeof e=="number"?e:1}class $e extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=s?s.line:void 0,this.name=Xr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$e.prototype.file="";$e.prototype.name="";$e.prototype.reason="";$e.prototype.message="";$e.prototype.stack="";$e.prototype.column=void 0;$e.prototype.line=void 0;$e.prototype.ancestors=void 0;$e.prototype.cause=void 0;$e.prototype.fatal=void 0;$e.prototype.place=void 0;$e.prototype.ruleId=void 0;$e.prototype.source=void 0;const nu={}.hasOwnProperty,av=new Map,uv=/[A-Z]/g,cv=new Set(["table","tbody","thead","tfoot","tr"]),dv=new Set(["td","th"]),lh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fv(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=kv(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=vv(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Za:bx,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=ih(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function ih(e,t,n){if(t.type==="element")return pv(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hv(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gv(e,t,n);if(t.type==="mdxjsEsm")return mv(e,t);if(t.type==="root")return yv(e,t,n);if(t.type==="text")return xv(e,t)}function pv(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=Za,e.schema=l),e.ancestors.push(t);const i=sh(e,t.tagName,!1),o=wv(e,t);let s=lu(e,t);return cv.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!wx(a):!0})),oh(e,o,i,t),ru(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function hv(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}vl(e,t.position)}function mv(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vl(e,t.position)}function gv(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=Za,e.schema=l),e.ancestors.push(t);const i=t.name===null?e.Fragment:sh(e,t.name,!0),o=Sv(e,t),s=lu(e,t);return oh(e,o,i,t),ru(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function yv(e,t,n){const r={};return ru(r,lu(e,t)),e.create(t,e.Fragment,r,n)}function xv(e,t){return t.value}function oh(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ru(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vv(e,t,n){return r;function r(l,i,o,s){const c=Array.isArray(o.children)?n:t;return s?c(i,o,s):c(i,o)}}function kv(e,t){return n;function n(r,l,i,o){const s=Array.isArray(i.children),a=tu(r);return t(l,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function wv(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&nu.call(t.properties,l)){const i=Cv(e,l,t.properties[l]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&dv.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Sv(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else vl(e,t.position);else{const l=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else vl(e,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function lu(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:av;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const c=l.get(a)||0;o=a+"-"+c,l.set(a,c+1)}}const s=ih(e,i,o);s!==void 0&&n.push(s)}return n}function Cv(e,t,n){const r=Tx(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?gx(n):Lx(n)),r.property==="style"){let l=typeof n=="object"?n:jv(e,String(n));return e.stylePropertyNameCase==="css"&&(l=Ev(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?Ex[r.property]||r.property:r.attribute,n]}}function jv(e,t){try{return ov(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new $e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=lh+"#cannot-parse-style-attribute",l}}function sh(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let i=-1,o;for(;++i<l.length;){const s=Lc(l[i])?{type:"Identifier",name:l[i]}:{type:"Literal",value:l[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=Lc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return nu.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);vl(e)}function vl(e,t){const n=new $e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=lh+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ev(e){const t={};let n;for(n in e)nu.call(e,n)&&(t[Nv(n)]=e[n]);return t}function Nv(e){let t=e.replace(uv,Pv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Pv(e){return"-"+e.toLowerCase()}const Do={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"]},Tv={};function Iv(e,t){const n=Tv,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ah(e,r,l)}function ah(e,t,n){if(_v(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Vc(e.children,t,n)}return Array.isArray(e)?Vc(e,t,n):""}function Vc(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=ah(e[l],t,n);return r.join("")}function _v(e){return!!(e&&typeof e=="object")}const Hc=document.createElement("i");function iu(e){const t="&"+e+";";Hc.innerHTML=t;const n=Hc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zt(e,t,n,r){const l=e.length;let i=0,o;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function ft(e,t){return e.length>0?(zt(e,e.length,0,t),e):t}const Wc={}.hasOwnProperty;function bv(e){const t={};let n=-1;for(;++n<e.length;)Lv(t,e[n]);return t}function Lv(e,t){let n;for(n in t){const l=(Wc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Wc.call(l,o)||(l[o]=[]);const s=i[o];zv(l[o],Array.isArray(s)?s:s?[s]:[])}}}function zv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);zt(e,0,0,r)}function uh(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function cr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _t=yn(/[A-Za-z]/),it=yn(/[\dA-Za-z]/),Ov=yn(/[#-'*+\--9=?A-Z^-~]/);function Gs(e){return e!==null&&(e<32||e===127)}const Zs=yn(/\d/),Rv=yn(/[\dA-Fa-f]/),Av=yn(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function oe(e){return e===-2||e===-1||e===32}const Dv=yn(new RegExp("\\p{P}|\\p{S}","u")),Mv=yn(/\s/);function yn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Cr(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&it(e.charCodeAt(n+1))&&it(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function he(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(a){return oe(a)?(e.enter(n),s(a)):t(a)}function s(a){return oe(a)&&i++<l?(e.consume(a),s):(e.exit(n),t(a))}}const Fv={tokenize:Bv};function Bv(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),he(e,t,"linePrefix")}function l(s){return e.enter("paragraph"),i(s)}function i(s){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return K(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const Uv={tokenize:$v},Yc={tokenize:Vv};function $v(e){const t=this,n=[];let r=0,l,i,o;return s;function s(x){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,a,c)(x)}return c(x)}function a(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&y();const C=t.events.length;let P=C,S;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){S=t.events[P][1].end;break}m(r);let L=C;for(;L<t.events.length;)t.events[L][1].end={...S},L++;return zt(t.events,P+1,0,t.events.slice(C)),t.events.length=L,c(x)}return s(x)}function c(x){if(r===n.length){if(!l)return p(x);if(l.currentConstruct&&l.currentConstruct.concrete)return v(x);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yc,d,f)(x)}function d(x){return l&&y(),m(r),p(x)}function f(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,v(x)}function p(x){return t.containerState={},e.attempt(Yc,h,v)(x)}function h(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function v(x){if(x===null){l&&y(),m(0),e.consume(x);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),w(x)}function w(x){if(x===null){E(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return K(x)?(e.consume(x),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),w)}function E(x,C){const P=t.sliceStream(x);if(C&&P.push(null),x.previous=i,i&&(i.next=x),i=x,l.defineSkip(x.start),l.write(P),t.parser.lazy[x.start.line]){let S=l.events.length;for(;S--;)if(l.events[S][1].start.offset<o&&(!l.events[S][1].end||l.events[S][1].end.offset>o))return;const L=t.events.length;let D=L,W,R;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(W){R=t.events[D][1].end;break}W=!0}for(m(r),S=L;S<t.events.length;)t.events[S][1].end={...R},S++;zt(t.events,D+1,0,t.events.slice(L)),t.events.length=S}}function m(x){let C=n.length;for(;C-- >x;){const P=n[C];t.containerState=P[1],P[0].exit.call(t,e)}n.length=x}function y(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Vv(e,t,n){return he(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qc(e){if(e===null||Ze(e)||Mv(e))return 1;if(Dv(e))return 2}function ou(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ea={name:"attention",resolveAll:Hv,tokenize:Wv};function Hv(e,t){let n=-1,r,l,i,o,s,a,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};qc(f,-a),qc(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ft(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ft(c,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=ft(c,ou(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ft(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=ft(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,zt(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Wv(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Qc(r);let i;return o;function o(a){return i=a,e.enter("attentionSequence"),s(a)}function s(a){if(a===i)return e.consume(a),s;const c=e.exit("attentionSequence"),d=Qc(a),f=!d||d===2&&l||n.includes(a),p=!l||l===2&&d||n.includes(r);return c._open=!!(i===42?f:f&&(l||!p)),c._close=!!(i===42?p:p&&(d||!f)),t(a)}}function qc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Yv={name:"autolink",tokenize:Qv};function Qv(e,t,n){let r=0;return l;function l(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return _t(h)?(e.consume(h),o):h===64?n(h):c(h)}function o(h){return h===43||h===45||h===46||it(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||it(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Gs(h)?n(h):(e.consume(h),a)}function c(h){return h===64?(e.consume(h),d):Ov(h)?(e.consume(h),c):n(h)}function d(h){return it(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||it(h))&&r++<63){const v=h===45?p:f;return e.consume(h),v}return n(h)}}const io={partial:!0,tokenize:qv};function qv(e,t,n){return r;function r(i){return oe(i)?he(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||K(i)?t(i):n(i)}}const ch={continuation:{tokenize:Xv},exit:Jv,name:"blockQuote",tokenize:Kv};function Kv(e,t,n){const r=this;return l;function l(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return oe(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Xv(e,t,n){const r=this;return l;function l(o){return oe(o)?he(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(ch,t,n)(o)}}function Jv(e){e.exit("blockQuote")}const dh={name:"characterEscape",tokenize:Gv};function Gv(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),l}function l(i){return Av(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const fh={name:"characterReference",tokenize:Zv};function Zv(e,t,n){const r=this;let l=0,i,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=it,d(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Rv,d):(e.enter("characterReferenceValue"),i=7,o=Zs,d(f))}function d(f){if(f===59&&l){const p=e.exit("characterReferenceValue");return o===it&&!iu(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&l++<i?(e.consume(f),d):n(f)}}const Kc={partial:!0,tokenize:t1},Xc={concrete:!0,name:"codeFenced",tokenize:e1};function e1(e,t,n){const r=this,l={partial:!0,tokenize:P};let i=0,o=0,s;return a;function a(S){return c(S)}function c(S){const L=r.events[r.events.length-1];return i=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(S)}function d(S){return S===s?(o++,e.consume(S),d):o<3?n(S):(e.exit("codeFencedFenceSequence"),oe(S)?he(e,f,"whitespace")(S):f(S))}function f(S){return S===null||K(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Kc,w,C)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||K(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):oe(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),he(e,h,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),p)}function h(S){return S===null||K(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(S))}function v(S){return S===null||K(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===s?n(S):(e.consume(S),v)}function w(S){return e.attempt(l,C,E)(S)}function E(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),m}function m(S){return i>0&&oe(S)?he(e,y,"linePrefix",i+1)(S):y(S)}function y(S){return S===null||K(S)?e.check(Kc,w,C)(S):(e.enter("codeFlowValue"),x(S))}function x(S){return S===null||K(S)?(e.exit("codeFlowValue"),y(S)):(e.consume(S),x)}function C(S){return e.exit("codeFenced"),t(S)}function P(S,L,D){let W=0;return R;function R(I){return S.enter("lineEnding"),S.consume(I),S.exit("lineEnding"),z}function z(I){return S.enter("codeFencedFence"),oe(I)?he(S,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):H(I)}function H(I){return I===s?(S.enter("codeFencedFenceSequence"),O(I)):D(I)}function O(I){return I===s?(W++,S.consume(I),O):W>=o?(S.exit("codeFencedFenceSequence"),oe(I)?he(S,F,"whitespace")(I):F(I)):D(I)}function F(I){return I===null||K(I)?(S.exit("codeFencedFence"),L(I)):D(I)}}}function t1(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Mo={name:"codeIndented",tokenize:r1},n1={partial:!0,tokenize:l1};function r1(e,t,n){const r=this;return l;function l(c){return e.enter("codeIndented"),he(e,i,"linePrefix",5)(c)}function i(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?a(c):K(c)?e.attempt(n1,o,a)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||K(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function a(c){return e.exit("codeIndented"),t(c)}}function l1(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):K(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):he(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):K(o)?l(o):n(o)}}const i1={name:"codeText",previous:s1,resolve:o1,tokenize:a1};function o1(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function s1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function a1(e,t,n){let r=0,l,i;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(i=e.enter("codeTextSequence"),l=0,d(f)):K(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||K(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),l++,d):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}class u1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const l=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&Rr(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Rr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rr(this.left,n.reverse())}}}function Rr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ph(e){const t={};let n=-1,r,l,i,o,s,a,c;const d=new u1(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,c1(d,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(l&&(d.get(l)[1].type="lineEndingBlank"),o[1].type="lineEnding",l=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;l&&(r[1].end={...d.get(l)[1].start},s=d.slice(l,n),s.unshift(r),d.splice(l,n-l+1,s))}}return zt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function c1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,a=[],c={};let d,f,p=-1,h=n,v=0,w=0;const E=[w];for(;h;){for(;e.get(++l)[1]!==h;);i.push(l),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(w=p+1,E.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):E.pop(),p=E.length;p--;){const m=s.slice(E[p],E[p+1]),y=i.pop();a.push([y,y+m.length-1]),e.splice(y,2,m)}for(a.reverse(),p=-1;++p<a.length;)c[v+a[p][0]]=v+a[p][1],v+=a[p][1]-a[p][0]-1;return c}const d1={resolve:p1,tokenize:h1},f1={partial:!0,tokenize:m1};function p1(e){return ph(e),e}function h1(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(s)}function l(s){return s===null?i(s):K(s)?e.check(f1,o,i)(s):(e.consume(s),l)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function m1(e,t,n){const r=this;return l;function l(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),he(e,i,"linePrefix")}function i(o){if(o===null||K(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function hh(e,t,n,r,l,i,o,s,a){const c=a||Number.POSITIVE_INFINITY;let d=0;return f;function f(m){return m===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(m),e.exit(i),p):m===null||m===32||m===41||Gs(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(m))}function p(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),p(m)):m===null||m===60||K(m)?n(m):(e.consume(m),m===92?v:h)}function v(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function w(m){return!d&&(m===null||m===41||Ze(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):d<c&&m===40?(e.consume(m),d++,w):m===41?(e.consume(m),d--,w):m===null||m===32||m===40||Gs(m)?n(m):(e.consume(m),m===92?E:w)}function E(m){return m===40||m===41||m===92?(e.consume(m),w):w(m)}}function mh(e,t,n,r,l,i){const o=this;let s=0,a;return c;function c(h){return e.enter(r),e.enter(l),e.consume(h),e.exit(l),e.enter(i),d}function d(h){return s>999||h===null||h===91||h===93&&!a||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(l),e.consume(h),e.exit(l),e.exit(r),t):K(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||K(h)||s++>999?(e.exit("chunkString"),d(h)):(e.consume(h),a||(a=!oe(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function gh(e,t,n,r,l,i){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(l),e.consume(p),e.exit(l),o=p===40?41:p,a):n(p)}function a(p){return p===o?(e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===o?(e.exit(i),a(o)):p===null?n(p):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),he(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===o||p===null||K(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:d)}function f(p){return p===o||p===92?(e.consume(p),d):d(p)}}function Jr(e,t){let n;return r;function r(l){return K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):oe(l)?he(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const g1={name:"definition",tokenize:x1},y1={partial:!0,tokenize:v1};function x1(e,t,n){const r=this;let l;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return mh.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return l=cr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return Ze(h)?Jr(e,c)(h):c(h)}function c(h){return hh(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(y1,f,f)(h)}function f(h){return oe(h)?he(e,p,"whitespace")(h):p(h)}function p(h){return h===null||K(h)?(e.exit("definition"),r.parser.defined.push(l),t(h)):n(h)}}function v1(e,t,n){return r;function r(s){return Ze(s)?Jr(e,l)(s):n(s)}function l(s){return gh(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return oe(s)?he(e,o,"whitespace")(s):o(s)}function o(s){return s===null||K(s)?t(s):n(s)}}const k1={name:"hardBreakEscape",tokenize:w1};function w1(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return K(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const S1={name:"headingAtx",resolve:C1,tokenize:j1};function C1(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},zt(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function j1(e,t,n){let r=0;return l;function l(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Ze(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),a(d)):d===null||K(d)?(e.exit("atxHeading"),t(d)):oe(d)?he(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function a(d){return d===35?(e.consume(d),a):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Ze(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const E1=["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"],Jc=["pre","script","style","textarea"],N1={concrete:!0,name:"htmlFlow",resolveTo:I1,tokenize:_1},P1={partial:!0,tokenize:L1},T1={partial:!0,tokenize:b1};function I1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function _1(e,t,n){const r=this;let l,i,o,s,a;return c;function c(k){return d(k)}function d(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),f}function f(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),i=!0,w):k===63?(e.consume(k),l=3,r.interrupt?t:g):_t(k)?(e.consume(k),o=String.fromCharCode(k),E):n(k)}function p(k){return k===45?(e.consume(k),l=2,h):k===91?(e.consume(k),l=5,s=0,v):_t(k)?(e.consume(k),l=4,r.interrupt?t:g):n(k)}function h(k){return k===45?(e.consume(k),r.interrupt?t:g):n(k)}function v(k){const Z="CDATA[";return k===Z.charCodeAt(s++)?(e.consume(k),s===Z.length?r.interrupt?t:H:v):n(k)}function w(k){return _t(k)?(e.consume(k),o=String.fromCharCode(k),E):n(k)}function E(k){if(k===null||k===47||k===62||Ze(k)){const Z=k===47,ae=o.toLowerCase();return!Z&&!i&&Jc.includes(ae)?(l=1,r.interrupt?t(k):H(k)):E1.includes(o.toLowerCase())?(l=6,Z?(e.consume(k),m):r.interrupt?t(k):H(k)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):i?y(k):x(k))}return k===45||it(k)?(e.consume(k),o+=String.fromCharCode(k),E):n(k)}function m(k){return k===62?(e.consume(k),r.interrupt?t:H):n(k)}function y(k){return oe(k)?(e.consume(k),y):R(k)}function x(k){return k===47?(e.consume(k),R):k===58||k===95||_t(k)?(e.consume(k),C):oe(k)?(e.consume(k),x):R(k)}function C(k){return k===45||k===46||k===58||k===95||it(k)?(e.consume(k),C):P(k)}function P(k){return k===61?(e.consume(k),S):oe(k)?(e.consume(k),P):x(k)}function S(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,L):oe(k)?(e.consume(k),S):D(k)}function L(k){return k===a?(e.consume(k),a=null,W):k===null||K(k)?n(k):(e.consume(k),L)}function D(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ze(k)?P(k):(e.consume(k),D)}function W(k){return k===47||k===62||oe(k)?x(k):n(k)}function R(k){return k===62?(e.consume(k),z):n(k)}function z(k){return k===null||K(k)?H(k):oe(k)?(e.consume(k),z):n(k)}function H(k){return k===45&&l===2?(e.consume(k),M):k===60&&l===1?(e.consume(k),$):k===62&&l===4?(e.consume(k),Q):k===63&&l===3?(e.consume(k),g):k===93&&l===5?(e.consume(k),A):K(k)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(P1,q,O)(k)):k===null||K(k)?(e.exit("htmlFlowData"),O(k)):(e.consume(k),H)}function O(k){return e.check(T1,F,q)(k)}function F(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),I}function I(k){return k===null||K(k)?O(k):(e.enter("htmlFlowData"),H(k))}function M(k){return k===45?(e.consume(k),g):H(k)}function $(k){return k===47?(e.consume(k),o="",j):H(k)}function j(k){if(k===62){const Z=o.toLowerCase();return Jc.includes(Z)?(e.consume(k),Q):H(k)}return _t(k)&&o.length<8?(e.consume(k),o+=String.fromCharCode(k),j):H(k)}function A(k){return k===93?(e.consume(k),g):H(k)}function g(k){return k===62?(e.consume(k),Q):k===45&&l===2?(e.consume(k),g):H(k)}function Q(k){return k===null||K(k)?(e.exit("htmlFlowData"),q(k)):(e.consume(k),Q)}function q(k){return e.exit("htmlFlow"),t(k)}}function b1(e,t,n){const r=this;return l;function l(o){return K(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function L1(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(io,t,n)}}const z1={name:"htmlText",tokenize:O1};function O1(e,t,n){const r=this;let l,i,o;return s;function s(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),a}function a(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),P):g===63?(e.consume(g),x):_t(g)?(e.consume(g),D):n(g)}function c(g){return g===45?(e.consume(g),d):g===91?(e.consume(g),i=0,v):_t(g)?(e.consume(g),y):n(g)}function d(g){return g===45?(e.consume(g),h):n(g)}function f(g){return g===null?n(g):g===45?(e.consume(g),p):K(g)?(o=f,$(g)):(e.consume(g),f)}function p(g){return g===45?(e.consume(g),h):f(g)}function h(g){return g===62?M(g):g===45?p(g):f(g)}function v(g){const Q="CDATA[";return g===Q.charCodeAt(i++)?(e.consume(g),i===Q.length?w:v):n(g)}function w(g){return g===null?n(g):g===93?(e.consume(g),E):K(g)?(o=w,$(g)):(e.consume(g),w)}function E(g){return g===93?(e.consume(g),m):w(g)}function m(g){return g===62?M(g):g===93?(e.consume(g),m):w(g)}function y(g){return g===null||g===62?M(g):K(g)?(o=y,$(g)):(e.consume(g),y)}function x(g){return g===null?n(g):g===63?(e.consume(g),C):K(g)?(o=x,$(g)):(e.consume(g),x)}function C(g){return g===62?M(g):x(g)}function P(g){return _t(g)?(e.consume(g),S):n(g)}function S(g){return g===45||it(g)?(e.consume(g),S):L(g)}function L(g){return K(g)?(o=L,$(g)):oe(g)?(e.consume(g),L):M(g)}function D(g){return g===45||it(g)?(e.consume(g),D):g===47||g===62||Ze(g)?W(g):n(g)}function W(g){return g===47?(e.consume(g),M):g===58||g===95||_t(g)?(e.consume(g),R):K(g)?(o=W,$(g)):oe(g)?(e.consume(g),W):M(g)}function R(g){return g===45||g===46||g===58||g===95||it(g)?(e.consume(g),R):z(g)}function z(g){return g===61?(e.consume(g),H):K(g)?(o=z,$(g)):oe(g)?(e.consume(g),z):W(g)}function H(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,O):K(g)?(o=H,$(g)):oe(g)?(e.consume(g),H):(e.consume(g),F)}function O(g){return g===l?(e.consume(g),l=void 0,I):g===null?n(g):K(g)?(o=O,$(g)):(e.consume(g),O)}function F(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||Ze(g)?W(g):(e.consume(g),F)}function I(g){return g===47||g===62||Ze(g)?W(g):n(g)}function M(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function $(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),j}function j(g){return oe(g)?he(e,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):A(g)}function A(g){return e.enter("htmlTextData"),o(g)}}const su={name:"labelEnd",resolveAll:M1,resolveTo:F1,tokenize:B1},R1={tokenize:U1},A1={tokenize:$1},D1={tokenize:V1};function M1(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&zt(e,0,e.length,n),e}function F1(e,t){let n=e.length,r=0,l,i,o,s;for(;n--;)if(l=e[n][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(o=n);const a={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",a,t],["enter",c,t]],s=ft(s,e.slice(i+1,i+r+3)),s=ft(s,[["enter",d,t]]),s=ft(s,ou(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=ft(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=ft(s,e.slice(o+1)),s=ft(s,[["exit",a,t]]),zt(e,i,e.length,s),e}function B1(e,t,n){const r=this;let l=r.events.length,i,o;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return s;function s(p){return i?i._inactive?f(p):(o=r.parser.defined.includes(cr(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(R1,d,o?d:f)(p):p===91?e.attempt(A1,d,o?c:f)(p):o?d(p):f(p)}function c(p){return e.attempt(D1,d,f)(p)}function d(p){return t(p)}function f(p){return i._balanced=!0,n(p)}}function U1(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),l}function l(f){return Ze(f)?Jr(e,i)(f):i(f)}function i(f){return f===41?d(f):hh(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Ze(f)?Jr(e,a)(f):d(f)}function s(f){return n(f)}function a(f){return f===34||f===39||f===40?gh(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function c(f){return Ze(f)?Jr(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function $1(e,t,n){const r=this;return l;function l(s){return mh.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(cr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function V1(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),l}function l(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const H1={name:"labelStartImage",resolveAll:su.resolveAll,tokenize:W1};function W1(e,t,n){const r=this;return l;function l(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Y1={name:"labelStartLink",resolveAll:su.resolveAll,tokenize:Q1};function Q1(e,t,n){const r=this;return l;function l(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Fo={name:"lineEnding",tokenize:q1};function q1(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),he(e,t,"linePrefix")}}const si={name:"thematicBreak",tokenize:K1};function K1(e,t,n){let r=0,l;return i;function i(c){return e.enter("thematicBreak"),o(c)}function o(c){return l=c,s(c)}function s(c){return c===l?(e.enter("thematicBreakSequence"),a(c)):r>=3&&(c===null||K(c))?(e.exit("thematicBreak"),t(c)):n(c)}function a(c){return c===l?(e.consume(c),r++,a):(e.exit("thematicBreakSequence"),oe(c)?he(e,s,"whitespace")(c):s(c))}}const Qe={continuation:{tokenize:Z1},exit:t0,name:"list",tokenize:G1},X1={partial:!0,tokenize:n0},J1={partial:!0,tokenize:e0};function G1(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return s;function s(h){const v=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Zs(h)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(si,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return Zs(h)&&++o<10?(e.consume(h),a):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(io,r.interrupt?n:d,e.attempt(X1,p,f))}function d(h){return r.containerState.initialBlankLine=!0,i++,p(h)}function f(h){return oe(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Z1(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(io,l,i);function l(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,he(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!oe(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(J1,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,he(e,e.attempt(Qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function e0(e,t,n){const r=this;return he(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function t0(e){e.exit(this.containerState.type)}function n0(e,t,n){const r=this;return he(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!oe(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Gc={name:"setextUnderline",resolveTo:r0,tokenize:l0};function r0(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function l0(e,t,n){const r=this;let l;return i;function i(c){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),l=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===l?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),oe(c)?he(e,a,"lineSuffix")(c):a(c))}function a(c){return c===null||K(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const i0={tokenize:o0};function o0(e){const t=this,n=e.attempt(io,r,e.attempt(this.parser.constructs.flowInitial,l,he(e,e.attempt(this.parser.constructs.flow,l,e.attempt(d1,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const s0={resolveAll:xh()},a0=yh("string"),u0=yh("text");function yh(e){return{resolveAll:xh(e==="text"?c0:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,s);return o;function o(d){return c(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),a}function a(d){return c(d)?(n.exit("data"),i(d)):(n.consume(d),a)}function c(d){if(d===null)return!0;const f=l[d];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function xh(e){return t;function t(n,r){let l=-1,i;for(;++l<=n.length;)i===void 0?n[l]&&n[l][1].type==="data"&&(i=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==i+2&&(n[i][1].end=n[l-1][1].end,n.splice(i+2,l-i-2),l=i+2),i=void 0);return e?e(n,r):n}}function c0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],l=t.sliceStream(r);let i=l.length,o=-1,s=0,a;for(;i--;){const c=l[i];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)a=!0,s++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const d0={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:ch},f0={91:g1},p0={[-2]:Mo,[-1]:Mo,32:Mo},h0={35:S1,42:si,45:[Gc,si],60:N1,61:Gc,95:si,96:Xc,126:Xc},m0={38:fh,92:dh},g0={[-5]:Fo,[-4]:Fo,[-3]:Fo,33:H1,38:fh,42:ea,60:[Yv,z1],91:Y1,92:[k1,dh],93:su,95:ea,96:i1},y0={null:[ea,s0]},x0={null:[42,95]},v0={null:[]},k0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:x0,contentInitial:f0,disable:v0,document:d0,flow:h0,flowInitial:p0,insideSpan:y0,string:m0,text:g0},Symbol.toStringTag,{value:"Module"}));function w0(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},i=[];let o=[],s=[];const a={attempt:L(P),check:L(S),consume:y,enter:x,exit:C,interrupt:L(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let d=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function f(z){return o=ft(o,z),E(),o[o.length-1]!==null?[]:(D(t,0),c.events=ou(i,c.events,c),c.events)}function p(z,H){return C0(h(z),H)}function h(z){return S0(o,z)}function v(){const{_bufferIndex:z,_index:H,line:O,column:F,offset:I}=r;return{_bufferIndex:z,_index:H,line:O,column:F,offset:I}}function w(z){l[z.line]=z.column,R()}function E(){let z;for(;r._index<o.length;){const H=o[r._index];if(typeof H=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<H.length;)m(H.charCodeAt(r._bufferIndex));else m(H)}}function m(z){d=d(z)}function y(z){K(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,R()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=z}function x(z,H){const O=H||{};return O.type=z,O.start=v(),c.events.push(["enter",O,c]),s.push(O),O}function C(z){const H=s.pop();return H.end=v(),c.events.push(["exit",H,c]),H}function P(z,H){D(z,H.from)}function S(z,H){H.restore()}function L(z,H){return O;function O(F,I,M){let $,j,A,g;return Array.isArray(F)?q(F):"tokenize"in F?q([F]):Q(F);function Q(te){return _;function _(ue){const Ae=ue!==null&&te[ue],xe=ue!==null&&te.null,De=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return q(De)(ue)}}function q(te){return $=te,j=0,te.length===0?M:k(te[j])}function k(te){return _;function _(ue){return g=W(),A=te,te.partial||(c.currentConstruct=te),te.name&&c.parser.constructs.disable.null.includes(te.name)?ae():te.tokenize.call(H?Object.assign(Object.create(c),H):c,a,Z,ae)(ue)}}function Z(te){return z(A,g),I}function ae(te){return g.restore(),++j<$.length?k($[j]):M}}}function D(z,H){z.resolveAll&&!i.includes(z)&&i.push(z),z.resolve&&zt(c.events,H,c.events.length-H,z.resolve(c.events.slice(H),c)),z.resolveTo&&(c.events=z.resolveTo(c.events,c))}function W(){const z=v(),H=c.previous,O=c.currentConstruct,F=c.events.length,I=Array.from(s);return{from:F,restore:M};function M(){r=z,c.previous=H,c.currentConstruct=O,c.events.length=F,s=I,R()}}function R(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function S0(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;let o;if(n===l)o=[e[n].slice(r,i)];else{if(o=e.slice(n,l),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function C0(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
67
|
+
*/function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oi.apply(this,arguments)}function qp(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i<r.length;i++)l=r[i],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function nx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rx(e,t){return e.button===0&&(!t||t==="_self")&&!nx(e)}const lx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ix=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ox="6";try{window.__reactRouterVersion=ox}catch{}const sx=N.createContext({isTransitioning:!1}),ax="startTransition",Ic=em[ax];function ux(e){let{basename:t,children:n,future:r,window:l}=e,i=N.useRef();i.current==null&&(i.current=fy({window:l,v5Compat:!0}));let o=i.current,[s,a]=N.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=N.useCallback(f=>{c&&Ic?Ic(()=>a(f)):a(f)},[a,c]);return N.useLayoutEffect(()=>o.listen(d),[o,d]),N.useEffect(()=>Zy(r),[r]),N.createElement(ex,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const cx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fx=N.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:s,target:a,to:c,preventScrollReset:d,viewTransition:f}=t,p=qp(t,lx),{basename:h}=N.useContext(gn),v,w=!1;if(typeof c=="string"&&dx.test(c)&&(v=c,cx))try{let x=new URL(window.location.href),C=c.startsWith("//")?new URL(x.protocol+c):new URL(c),P=xr(C.pathname,h);C.origin===x.origin&&P!=null?c=P+C.search+C.hash:w=!0}catch{}let E=My(c,{relative:l}),m=hx(c,{replace:o,state:s,target:a,preventScrollReset:d,relative:l,viewTransition:f});function y(x){r&&r(x),x.defaultPrevented||m(x)}return N.createElement("a",Oi({},p,{href:v||E,onClick:w||i?r:y,ref:n,target:a}))}),Un=N.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:s,to:a,viewTransition:c,children:d}=t,f=qp(t,ix),p=ro(a,{relative:f.relative}),h=Nl(),v=N.useContext(Up),{navigator:w,basename:E}=N.useContext(gn),m=v!=null&&mx(p)&&c===!0,y=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,x=h.pathname,C=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;l||(x=x.toLowerCase(),C=C?C.toLowerCase():null,y=y.toLowerCase()),C&&E&&(C=xr(C,E)||C);const P=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=x===y||!o&&x.startsWith(y)&&x.charAt(P)==="/",L=C!=null&&(C===y||!o&&C.startsWith(y)&&C.charAt(y.length)==="/"),D={isActive:S,isPending:L,isTransitioning:m},W=S?r:void 0,R;typeof i=="function"?R=i(D):R=[i,S?"active":null,L?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let z=typeof s=="function"?s(D):s;return N.createElement(fx,Oi({},f,{"aria-current":W,className:R,ref:n,style:z,to:a,viewTransition:c}),typeof d=="function"?d(D):d)});var Ws;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ws||(Ws={}));var _c;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_c||(_c={}));function px(e){let t=N.useContext(to);return t||Ce(!1),t}function hx(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:s}=t===void 0?{}:t,a=Hp(),c=Nl(),d=ro(e,{relative:o});return N.useCallback(f=>{if(rx(f,n)){f.preventDefault();let p=r!==void 0?r:zi(c)===zi(d);a(e,{replace:p,state:l,preventScrollReset:i,relative:o,viewTransition:s})}},[c,a,d,r,l,n,e,i,o,s])}function mx(e,t){t===void 0&&(t={});let n=N.useContext(sx);n==null&&Ce(!1);let{basename:r}=px(Ws.useViewTransitionState),l=ro(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=xr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=xr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vs(l.pathname,o)!=null||Vs(l.pathname,i)!=null}const ne=(e,t)=>{if(!t)return e;const n=new URLSearchParams;Object.entries(t).forEach(([l,i])=>{i!=null&&i!==""&&n.set(l,String(i))});const r=n.toString();return r?`${e}?${r}`:e},re=async(e,t={})=>{const n=localStorage.getItem("auth_token"),r=await fetch(e,{...t,headers:{"Content-Type":"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t.headers||{}}});if(!r.ok){if(r.status===401){localStorage.removeItem("auth_token");const o=await r.text(),s=new Error(o||r.statusText);throw s.status=401,s}const i=await r.text();throw new Error(i||r.statusText)}return r.status===204?void 0:(r.headers.get("content-type")||"").includes("application/json")?r.json():r.text()},J={getAuthStatus:()=>re(ne("/api/auth/status")),login:e=>re(ne("/api/auth/login"),{method:"POST",body:JSON.stringify({authCode:e})}),getVendors:()=>re(ne("/api/vendors")),createVendor:e=>re(ne("/api/vendors"),{method:"POST",body:JSON.stringify(e)}),updateVendor:(e,t)=>re(ne(`/api/vendors/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteVendor:e=>re(ne(`/api/vendors/${e}`),{method:"DELETE"}),getAPIServices:e=>re(ne("/api/services",e?{vendorId:e}:void 0)),createAPIService:e=>re(ne("/api/services"),{method:"POST",body:JSON.stringify(e)}),updateAPIService:(e,t)=>re(ne(`/api/services/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteAPIService:e=>re(ne(`/api/services/${e}`),{method:"DELETE"}),getRoutes:()=>re(ne("/api/routes")),createRoute:e=>re(ne("/api/routes"),{method:"POST",body:JSON.stringify(e)}),updateRoute:(e,t)=>re(ne(`/api/routes/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteRoute:e=>re(ne(`/api/routes/${e}`),{method:"DELETE"}),activateRoute:e=>re(ne(`/api/routes/${e}/activate`),{method:"POST"}),deactivateRoute:e=>re(ne(`/api/routes/${e}/deactivate`),{method:"POST"}),getRules:e=>re(ne("/api/rules",e?{routeId:e}:void 0)),createRule:e=>re(ne("/api/rules"),{method:"POST",body:JSON.stringify(e)}),updateRule:(e,t)=>re(ne(`/api/rules/${e}`),{method:"PUT",body:JSON.stringify(t)}),deleteRule:e=>re(ne(`/api/rules/${e}`),{method:"DELETE"}),getLogs:(e,t)=>re(ne("/api/logs",{limit:e,offset:t})),clearLogs:()=>re(ne("/api/logs"),{method:"DELETE"}),getAccessLogs:(e,t)=>re(ne("/api/access-logs",{limit:e,offset:t})),clearAccessLogs:()=>re(ne("/api/access-logs"),{method:"DELETE"}),getErrorLogs:(e,t)=>re(ne("/api/error-logs",{limit:e,offset:t})),clearErrorLogs:()=>re(ne("/api/error-logs"),{method:"DELETE"}),getConfig:()=>re(ne("/api/config")),updateConfig:e=>re(ne("/api/config"),{method:"PUT",body:JSON.stringify(e)}),exportData:async e=>(await re(ne("/api/export"),{method:"POST",body:JSON.stringify({password:e})})).data,importData:(e,t)=>re(ne("/api/import"),{method:"POST",body:JSON.stringify({encryptedData:e,password:t})}),writeClaudeConfig:()=>re(ne("/api/write-config/claude"),{method:"POST"}),writeCodexConfig:()=>re(ne("/api/write-config/codex"),{method:"POST"}),restoreClaudeConfig:()=>re(ne("/api/restore-config/claude"),{method:"POST"}),restoreCodexConfig:()=>re(ne("/api/restore-config/codex"),{method:"POST"}),checkClaudeBackup:()=>re(ne("/api/check-backup/claude")),checkCodexBackup:()=>re(ne("/api/check-backup/codex"))};function gx(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const yx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vx={};function bc(e,t){return(vx.jsx?xx:yx).test(e)}const kx=/[ \t\n\f\r]/g;function wx(e){return typeof e=="object"?e.type==="text"?Lc(e.value):!1:Lc(e)}function Lc(e){return e.replace(kx,"")===""}class Pl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Pl.prototype.normal={};Pl.prototype.property={};Pl.prototype.space=void 0;function Kp(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new Pl(n,r,t)}function Ys(e){return e.toLowerCase()}class et{constructor(t,n){this.attribute=n,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let Sx=0;const G=Mn(),Ne=Mn(),Qs=Mn(),U=Mn(),de=Mn(),ur=Mn(),nt=Mn();function Mn(){return 2**++Sx}const qs=Object.freeze(Object.defineProperty({__proto__:null,boolean:G,booleanish:Ne,commaOrSpaceSeparated:nt,commaSeparated:ur,number:U,overloadedBoolean:Qs,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),Ao=Object.keys(qs);class Ja extends et{constructor(t,n,r,l){let i=-1;if(super(t,n),zc(this,"space",l),typeof r=="number")for(;++i<Ao.length;){const o=Ao[i];zc(this,Ao[i],(r&qs[o])===qs[o])}}}Ja.prototype.defined=!0;function zc(e,t,n){n&&(e[t]=n)}function Sr(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const i=new Ja(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Ys(r)]=r,n[Ys(i.attribute)]=r}return new Pl(t,n,e.space)}const Xp=Sr({properties:{ariaActiveDescendant:null,ariaAtomic:Ne,ariaAutoComplete:null,ariaBusy:Ne,ariaChecked:Ne,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:Ne,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:Ne,ariaFlowTo:de,ariaGrabbed:Ne,ariaHasPopup:null,ariaHidden:Ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:U,ariaLive:null,ariaModal:Ne,ariaMultiLine:Ne,ariaMultiSelectable:Ne,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Ne,ariaReadOnly:Ne,ariaRelevant:null,ariaRequired:Ne,ariaRoleDescription:de,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Ne,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jp(e,t){return t in e?e[t]:t}function Gp(e,t){return Jp(e,t.toLowerCase())}const Cx=Sr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ur,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:de,autoFocus:G,autoPlay:G,blocking:de,capture:null,charSet:null,checked:G,cite:null,className:de,cols:U,colSpan:null,content:null,contentEditable:Ne,controls:G,controlsList:de,coords:U|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:Qs,draggable:Ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:de,height:U,hidden:Qs,high:U,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:de,itemRef:de,itemScope:G,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,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:G,optimum:U,pattern:null,ping:de,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:de,required:G,reversed:G,rows:U,rowSpan:U,sandbox:de,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:Ne,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Ne,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:G,disableRemotePlayback:G,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Gp}),jx=Sr({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:nt,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:de,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,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:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nt,rev:nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nt,requiredFeatures:nt,requiredFonts:nt,requiredFormats:nt,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nt,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jp}),Zp=Sr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),eh=Sr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gp}),th=Sr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ex={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"},Nx=/[A-Z]/g,Oc=/-[a-z]/g,Px=/^data[-\w.:]+$/i;function Tx(e,t){const n=Ys(t);let r=t,l=et;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Px.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Oc,_x);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Oc.test(i)){let o=i.replace(Nx,Ix);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=Ja}return new l(r,t)}function Ix(e){return"-"+e.toLowerCase()}function _x(e){return e.charAt(1).toUpperCase()}const bx=Kp([Xp,Cx,Zp,eh,th],"html"),Ga=Kp([Xp,jx,Zp,eh,th],"svg");function Lx(e){return e.join(" ").trim()}var Za={},Rc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zx=/\n/g,Ox=/^\s*/,Rx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ax=/^:\s*/,Dx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mx=/^[;\s]*/,Fx=/^\s+|\s+$/g,Bx=`
|
|
68
|
+
`,Ac="/",Dc="*",Cn="",Ux="comment",$x="declaration";function Vx(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(v){var w=v.match(zx);w&&(n+=w.length);var E=v.lastIndexOf(Bx);r=~E?v.length-E:r+v.length}function i(){var v={line:n,column:r};return function(w){return w.position=new o(v),c(),w}}function o(v){this.start=v,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(v){var w=new Error(t.source+":"+n+":"+r+": "+v);if(w.reason=v,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function a(v){var w=v.exec(e);if(w){var E=w[0];return l(E),e=e.slice(E.length),w}}function c(){a(Ox)}function d(v){var w;for(v=v||[];w=f();)w!==!1&&v.push(w);return v}function f(){var v=i();if(!(Ac!=e.charAt(0)||Dc!=e.charAt(1))){for(var w=2;Cn!=e.charAt(w)&&(Dc!=e.charAt(w)||Ac!=e.charAt(w+1));)++w;if(w+=2,Cn===e.charAt(w-1))return s("End of comment missing");var E=e.slice(2,w-2);return r+=2,l(E),e=e.slice(w),r+=2,v({type:Ux,comment:E})}}function p(){var v=i(),w=a(Rx);if(w){if(f(),!a(Ax))return s("property missing ':'");var E=a(Dx),m=v({type:$x,property:Mc(w[0].replace(Rc,Cn)),value:E?Mc(E[0].replace(Rc,Cn)):Cn});return a(Mx),m}}function h(){var v=[];d(v);for(var w;w=p();)w!==!1&&(v.push(w),d(v));return v}return c(),h()}function Mc(e){return e?e.replace(Fx,Cn):Cn}var Hx=Vx,Wx=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Za,"__esModule",{value:!0});Za.default=Qx;const Yx=Wx(Hx);function Qx(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Yx.default)(e),l=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:s}=i;l?t(o,s,i):s&&(n=n||{},n[o]=s)}),n}var lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.camelCase=void 0;var qx=/^--[a-zA-Z0-9_-]+$/,Kx=/-([a-z])/g,Xx=/^[^-]+$/,Jx=/^-(webkit|moz|ms|o|khtml)-/,Gx=/^-(ms)-/,Zx=function(e){return!e||Xx.test(e)||qx.test(e)},ev=function(e,t){return t.toUpperCase()},Fc=function(e,t){return"".concat(t,"-")},tv=function(e,t){return t===void 0&&(t={}),Zx(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Gx,Fc):e=e.replace(Jx,Fc),e.replace(Kx,ev))};lo.camelCase=tv;var nv=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},rv=nv(Za),lv=lo;function Ks(e,t){var n={};return!e||typeof e!="string"||(0,rv.default)(e,function(r,l){r&&l&&(n[(0,lv.camelCase)(r,t)]=l)}),n}Ks.default=Ks;var iv=Ks;const ov=Di(iv),nh=rh("end"),eu=rh("start");function rh(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function sv(e){const t=eu(e),n=nh(e);if(t&&n)return{start:t,end:n}}function Xr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Bc(e.position):"start"in e||"end"in e?Bc(e):"line"in e||"column"in e?Xs(e):""}function Xs(e){return Uc(e&&e.line)+":"+Uc(e&&e.column)}function Bc(e){return Xs(e&&e.start)+"-"+Xs(e&&e.end)}function Uc(e){return e&&typeof e=="number"?e:1}class $e extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=s?s.line:void 0,this.name=Xr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$e.prototype.file="";$e.prototype.name="";$e.prototype.reason="";$e.prototype.message="";$e.prototype.stack="";$e.prototype.column=void 0;$e.prototype.line=void 0;$e.prototype.ancestors=void 0;$e.prototype.cause=void 0;$e.prototype.fatal=void 0;$e.prototype.place=void 0;$e.prototype.ruleId=void 0;$e.prototype.source=void 0;const tu={}.hasOwnProperty,av=new Map,uv=/[A-Z]/g,cv=new Set(["table","tbody","thead","tfoot","tr"]),dv=new Set(["td","th"]),lh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fv(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=kv(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=vv(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ga:bx,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=ih(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function ih(e,t,n){if(t.type==="element")return pv(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hv(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gv(e,t,n);if(t.type==="mdxjsEsm")return mv(e,t);if(t.type==="root")return yv(e,t,n);if(t.type==="text")return xv(e,t)}function pv(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=Ga,e.schema=l),e.ancestors.push(t);const i=sh(e,t.tagName,!1),o=wv(e,t);let s=ru(e,t);return cv.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!wx(a):!0})),oh(e,o,i,t),nu(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function hv(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}vl(e,t.position)}function mv(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vl(e,t.position)}function gv(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=Ga,e.schema=l),e.ancestors.push(t);const i=t.name===null?e.Fragment:sh(e,t.name,!0),o=Sv(e,t),s=ru(e,t);return oh(e,o,i,t),nu(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function yv(e,t,n){const r={};return nu(r,ru(e,t)),e.create(t,e.Fragment,r,n)}function xv(e,t){return t.value}function oh(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vv(e,t,n){return r;function r(l,i,o,s){const c=Array.isArray(o.children)?n:t;return s?c(i,o,s):c(i,o)}}function kv(e,t){return n;function n(r,l,i,o){const s=Array.isArray(i.children),a=eu(r);return t(l,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function wv(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&tu.call(t.properties,l)){const i=Cv(e,l,t.properties[l]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&dv.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Sv(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else vl(e,t.position);else{const l=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else vl(e,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function ru(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:av;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const c=l.get(a)||0;o=a+"-"+c,l.set(a,c+1)}}const s=ih(e,i,o);s!==void 0&&n.push(s)}return n}function Cv(e,t,n){const r=Tx(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?gx(n):Lx(n)),r.property==="style"){let l=typeof n=="object"?n:jv(e,String(n));return e.stylePropertyNameCase==="css"&&(l=Ev(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?Ex[r.property]||r.property:r.attribute,n]}}function jv(e,t){try{return ov(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new $e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=lh+"#cannot-parse-style-attribute",l}}function sh(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let i=-1,o;for(;++i<l.length;){const s=bc(l[i])?{type:"Identifier",name:l[i]}:{type:"Literal",value:l[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=bc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return tu.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);vl(e)}function vl(e,t){const n=new $e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=lh+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ev(e){const t={};let n;for(n in e)tu.call(e,n)&&(t[Nv(n)]=e[n]);return t}function Nv(e){let t=e.replace(uv,Pv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Pv(e){return"-"+e.toLowerCase()}const Do={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"]},Tv={};function Iv(e,t){const n=Tv,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ah(e,r,l)}function ah(e,t,n){if(_v(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $c(e.children,t,n)}return Array.isArray(e)?$c(e,t,n):""}function $c(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=ah(e[l],t,n);return r.join("")}function _v(e){return!!(e&&typeof e=="object")}const Vc=document.createElement("i");function lu(e){const t="&"+e+";";Vc.innerHTML=t;const n=Vc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zt(e,t,n,r){const l=e.length;let i=0,o;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function ft(e,t){return e.length>0?(zt(e,e.length,0,t),e):t}const Hc={}.hasOwnProperty;function bv(e){const t={};let n=-1;for(;++n<e.length;)Lv(t,e[n]);return t}function Lv(e,t){let n;for(n in t){const l=(Hc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Hc.call(l,o)||(l[o]=[]);const s=i[o];zv(l[o],Array.isArray(s)?s:s?[s]:[])}}}function zv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);zt(e,0,0,r)}function uh(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function cr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _t=yn(/[A-Za-z]/),it=yn(/[\dA-Za-z]/),Ov=yn(/[#-'*+\--9=?A-Z^-~]/);function Js(e){return e!==null&&(e<32||e===127)}const Gs=yn(/\d/),Rv=yn(/[\dA-Fa-f]/),Av=yn(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function oe(e){return e===-2||e===-1||e===32}const Dv=yn(new RegExp("\\p{P}|\\p{S}","u")),Mv=yn(/\s/);function yn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Cr(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&it(e.charCodeAt(n+1))&&it(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(a){return oe(a)?(e.enter(n),s(a)):t(a)}function s(a){return oe(a)&&i++<l?(e.consume(a),s):(e.exit(n),t(a))}}const Fv={tokenize:Bv};function Bv(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),pe(e,t,"linePrefix")}function l(s){return e.enter("paragraph"),i(s)}function i(s){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return K(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const Uv={tokenize:$v},Wc={tokenize:Vv};function $v(e){const t=this,n=[];let r=0,l,i,o;return s;function s(x){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,a,c)(x)}return c(x)}function a(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&y();const C=t.events.length;let P=C,S;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){S=t.events[P][1].end;break}m(r);let L=C;for(;L<t.events.length;)t.events[L][1].end={...S},L++;return zt(t.events,P+1,0,t.events.slice(C)),t.events.length=L,c(x)}return s(x)}function c(x){if(r===n.length){if(!l)return p(x);if(l.currentConstruct&&l.currentConstruct.concrete)return v(x);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wc,d,f)(x)}function d(x){return l&&y(),m(r),p(x)}function f(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,v(x)}function p(x){return t.containerState={},e.attempt(Wc,h,v)(x)}function h(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function v(x){if(x===null){l&&y(),m(0),e.consume(x);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),w(x)}function w(x){if(x===null){E(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return K(x)?(e.consume(x),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),w)}function E(x,C){const P=t.sliceStream(x);if(C&&P.push(null),x.previous=i,i&&(i.next=x),i=x,l.defineSkip(x.start),l.write(P),t.parser.lazy[x.start.line]){let S=l.events.length;for(;S--;)if(l.events[S][1].start.offset<o&&(!l.events[S][1].end||l.events[S][1].end.offset>o))return;const L=t.events.length;let D=L,W,R;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(W){R=t.events[D][1].end;break}W=!0}for(m(r),S=L;S<t.events.length;)t.events[S][1].end={...R},S++;zt(t.events,D+1,0,t.events.slice(L)),t.events.length=S}}function m(x){let C=n.length;for(;C-- >x;){const P=n[C];t.containerState=P[1],P[0].exit.call(t,e)}n.length=x}function y(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Vv(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yc(e){if(e===null||Ze(e)||Mv(e))return 1;if(Dv(e))return 2}function iu(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Zs={name:"attention",resolveAll:Hv,tokenize:Wv};function Hv(e,t){let n=-1,r,l,i,o,s,a,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};Qc(f,-a),Qc(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ft(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ft(c,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=ft(c,iu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ft(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=ft(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,zt(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Wv(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Yc(r);let i;return o;function o(a){return i=a,e.enter("attentionSequence"),s(a)}function s(a){if(a===i)return e.consume(a),s;const c=e.exit("attentionSequence"),d=Yc(a),f=!d||d===2&&l||n.includes(a),p=!l||l===2&&d||n.includes(r);return c._open=!!(i===42?f:f&&(l||!p)),c._close=!!(i===42?p:p&&(d||!f)),t(a)}}function Qc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Yv={name:"autolink",tokenize:Qv};function Qv(e,t,n){let r=0;return l;function l(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return _t(h)?(e.consume(h),o):h===64?n(h):c(h)}function o(h){return h===43||h===45||h===46||it(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||it(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Js(h)?n(h):(e.consume(h),a)}function c(h){return h===64?(e.consume(h),d):Ov(h)?(e.consume(h),c):n(h)}function d(h){return it(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||it(h))&&r++<63){const v=h===45?p:f;return e.consume(h),v}return n(h)}}const io={partial:!0,tokenize:qv};function qv(e,t,n){return r;function r(i){return oe(i)?pe(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||K(i)?t(i):n(i)}}const ch={continuation:{tokenize:Xv},exit:Jv,name:"blockQuote",tokenize:Kv};function Kv(e,t,n){const r=this;return l;function l(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return oe(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Xv(e,t,n){const r=this;return l;function l(o){return oe(o)?pe(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(ch,t,n)(o)}}function Jv(e){e.exit("blockQuote")}const dh={name:"characterEscape",tokenize:Gv};function Gv(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),l}function l(i){return Av(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const fh={name:"characterReference",tokenize:Zv};function Zv(e,t,n){const r=this;let l=0,i,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=it,d(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Rv,d):(e.enter("characterReferenceValue"),i=7,o=Gs,d(f))}function d(f){if(f===59&&l){const p=e.exit("characterReferenceValue");return o===it&&!lu(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&l++<i?(e.consume(f),d):n(f)}}const qc={partial:!0,tokenize:t1},Kc={concrete:!0,name:"codeFenced",tokenize:e1};function e1(e,t,n){const r=this,l={partial:!0,tokenize:P};let i=0,o=0,s;return a;function a(S){return c(S)}function c(S){const L=r.events[r.events.length-1];return i=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(S)}function d(S){return S===s?(o++,e.consume(S),d):o<3?n(S):(e.exit("codeFencedFenceSequence"),oe(S)?pe(e,f,"whitespace")(S):f(S))}function f(S){return S===null||K(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(qc,w,C)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||K(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):oe(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,h,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),p)}function h(S){return S===null||K(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(S))}function v(S){return S===null||K(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===s?n(S):(e.consume(S),v)}function w(S){return e.attempt(l,C,E)(S)}function E(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),m}function m(S){return i>0&&oe(S)?pe(e,y,"linePrefix",i+1)(S):y(S)}function y(S){return S===null||K(S)?e.check(qc,w,C)(S):(e.enter("codeFlowValue"),x(S))}function x(S){return S===null||K(S)?(e.exit("codeFlowValue"),y(S)):(e.consume(S),x)}function C(S){return e.exit("codeFenced"),t(S)}function P(S,L,D){let W=0;return R;function R(I){return S.enter("lineEnding"),S.consume(I),S.exit("lineEnding"),z}function z(I){return S.enter("codeFencedFence"),oe(I)?pe(S,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):H(I)}function H(I){return I===s?(S.enter("codeFencedFenceSequence"),O(I)):D(I)}function O(I){return I===s?(W++,S.consume(I),O):W>=o?(S.exit("codeFencedFenceSequence"),oe(I)?pe(S,F,"whitespace")(I):F(I)):D(I)}function F(I){return I===null||K(I)?(S.exit("codeFencedFence"),L(I)):D(I)}}}function t1(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Mo={name:"codeIndented",tokenize:r1},n1={partial:!0,tokenize:l1};function r1(e,t,n){const r=this;return l;function l(c){return e.enter("codeIndented"),pe(e,i,"linePrefix",5)(c)}function i(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?a(c):K(c)?e.attempt(n1,o,a)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||K(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function a(c){return e.exit("codeIndented"),t(c)}}function l1(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):K(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):pe(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):K(o)?l(o):n(o)}}const i1={name:"codeText",previous:s1,resolve:o1,tokenize:a1};function o1(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function s1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function a1(e,t,n){let r=0,l,i;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(i=e.enter("codeTextSequence"),l=0,d(f)):K(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||K(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),l++,d):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}class u1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const l=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&Rr(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Rr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rr(this.left,n.reverse())}}}function Rr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ph(e){const t={};let n=-1,r,l,i,o,s,a,c;const d=new u1(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,c1(d,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(l&&(d.get(l)[1].type="lineEndingBlank"),o[1].type="lineEnding",l=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;l&&(r[1].end={...d.get(l)[1].start},s=d.slice(l,n),s.unshift(r),d.splice(l,n-l+1,s))}}return zt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function c1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,a=[],c={};let d,f,p=-1,h=n,v=0,w=0;const E=[w];for(;h;){for(;e.get(++l)[1]!==h;);i.push(l),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(w=p+1,E.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):E.pop(),p=E.length;p--;){const m=s.slice(E[p],E[p+1]),y=i.pop();a.push([y,y+m.length-1]),e.splice(y,2,m)}for(a.reverse(),p=-1;++p<a.length;)c[v+a[p][0]]=v+a[p][1],v+=a[p][1]-a[p][0]-1;return c}const d1={resolve:p1,tokenize:h1},f1={partial:!0,tokenize:m1};function p1(e){return ph(e),e}function h1(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(s)}function l(s){return s===null?i(s):K(s)?e.check(f1,o,i)(s):(e.consume(s),l)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function m1(e,t,n){const r=this;return l;function l(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),pe(e,i,"linePrefix")}function i(o){if(o===null||K(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function hh(e,t,n,r,l,i,o,s,a){const c=a||Number.POSITIVE_INFINITY;let d=0;return f;function f(m){return m===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(m),e.exit(i),p):m===null||m===32||m===41||Js(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(m))}function p(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),p(m)):m===null||m===60||K(m)?n(m):(e.consume(m),m===92?v:h)}function v(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function w(m){return!d&&(m===null||m===41||Ze(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):d<c&&m===40?(e.consume(m),d++,w):m===41?(e.consume(m),d--,w):m===null||m===32||m===40||Js(m)?n(m):(e.consume(m),m===92?E:w)}function E(m){return m===40||m===41||m===92?(e.consume(m),w):w(m)}}function mh(e,t,n,r,l,i){const o=this;let s=0,a;return c;function c(h){return e.enter(r),e.enter(l),e.consume(h),e.exit(l),e.enter(i),d}function d(h){return s>999||h===null||h===91||h===93&&!a||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(l),e.consume(h),e.exit(l),e.exit(r),t):K(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||K(h)||s++>999?(e.exit("chunkString"),d(h)):(e.consume(h),a||(a=!oe(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function gh(e,t,n,r,l,i){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(l),e.consume(p),e.exit(l),o=p===40?41:p,a):n(p)}function a(p){return p===o?(e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===o?(e.exit(i),a(o)):p===null?n(p):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),pe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===o||p===null||K(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:d)}function f(p){return p===o||p===92?(e.consume(p),d):d(p)}}function Jr(e,t){let n;return r;function r(l){return K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):oe(l)?pe(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const g1={name:"definition",tokenize:x1},y1={partial:!0,tokenize:v1};function x1(e,t,n){const r=this;let l;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return mh.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return l=cr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return Ze(h)?Jr(e,c)(h):c(h)}function c(h){return hh(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(y1,f,f)(h)}function f(h){return oe(h)?pe(e,p,"whitespace")(h):p(h)}function p(h){return h===null||K(h)?(e.exit("definition"),r.parser.defined.push(l),t(h)):n(h)}}function v1(e,t,n){return r;function r(s){return Ze(s)?Jr(e,l)(s):n(s)}function l(s){return gh(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return oe(s)?pe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||K(s)?t(s):n(s)}}const k1={name:"hardBreakEscape",tokenize:w1};function w1(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return K(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const S1={name:"headingAtx",resolve:C1,tokenize:j1};function C1(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},zt(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function j1(e,t,n){let r=0;return l;function l(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Ze(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),a(d)):d===null||K(d)?(e.exit("atxHeading"),t(d)):oe(d)?pe(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function a(d){return d===35?(e.consume(d),a):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Ze(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const E1=["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"],Xc=["pre","script","style","textarea"],N1={concrete:!0,name:"htmlFlow",resolveTo:I1,tokenize:_1},P1={partial:!0,tokenize:L1},T1={partial:!0,tokenize:b1};function I1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function _1(e,t,n){const r=this;let l,i,o,s,a;return c;function c(k){return d(k)}function d(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),f}function f(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),i=!0,w):k===63?(e.consume(k),l=3,r.interrupt?t:g):_t(k)?(e.consume(k),o=String.fromCharCode(k),E):n(k)}function p(k){return k===45?(e.consume(k),l=2,h):k===91?(e.consume(k),l=5,s=0,v):_t(k)?(e.consume(k),l=4,r.interrupt?t:g):n(k)}function h(k){return k===45?(e.consume(k),r.interrupt?t:g):n(k)}function v(k){const Z="CDATA[";return k===Z.charCodeAt(s++)?(e.consume(k),s===Z.length?r.interrupt?t:H:v):n(k)}function w(k){return _t(k)?(e.consume(k),o=String.fromCharCode(k),E):n(k)}function E(k){if(k===null||k===47||k===62||Ze(k)){const Z=k===47,ae=o.toLowerCase();return!Z&&!i&&Xc.includes(ae)?(l=1,r.interrupt?t(k):H(k)):E1.includes(o.toLowerCase())?(l=6,Z?(e.consume(k),m):r.interrupt?t(k):H(k)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):i?y(k):x(k))}return k===45||it(k)?(e.consume(k),o+=String.fromCharCode(k),E):n(k)}function m(k){return k===62?(e.consume(k),r.interrupt?t:H):n(k)}function y(k){return oe(k)?(e.consume(k),y):R(k)}function x(k){return k===47?(e.consume(k),R):k===58||k===95||_t(k)?(e.consume(k),C):oe(k)?(e.consume(k),x):R(k)}function C(k){return k===45||k===46||k===58||k===95||it(k)?(e.consume(k),C):P(k)}function P(k){return k===61?(e.consume(k),S):oe(k)?(e.consume(k),P):x(k)}function S(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,L):oe(k)?(e.consume(k),S):D(k)}function L(k){return k===a?(e.consume(k),a=null,W):k===null||K(k)?n(k):(e.consume(k),L)}function D(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ze(k)?P(k):(e.consume(k),D)}function W(k){return k===47||k===62||oe(k)?x(k):n(k)}function R(k){return k===62?(e.consume(k),z):n(k)}function z(k){return k===null||K(k)?H(k):oe(k)?(e.consume(k),z):n(k)}function H(k){return k===45&&l===2?(e.consume(k),M):k===60&&l===1?(e.consume(k),$):k===62&&l===4?(e.consume(k),Q):k===63&&l===3?(e.consume(k),g):k===93&&l===5?(e.consume(k),A):K(k)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(P1,q,O)(k)):k===null||K(k)?(e.exit("htmlFlowData"),O(k)):(e.consume(k),H)}function O(k){return e.check(T1,F,q)(k)}function F(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),I}function I(k){return k===null||K(k)?O(k):(e.enter("htmlFlowData"),H(k))}function M(k){return k===45?(e.consume(k),g):H(k)}function $(k){return k===47?(e.consume(k),o="",j):H(k)}function j(k){if(k===62){const Z=o.toLowerCase();return Xc.includes(Z)?(e.consume(k),Q):H(k)}return _t(k)&&o.length<8?(e.consume(k),o+=String.fromCharCode(k),j):H(k)}function A(k){return k===93?(e.consume(k),g):H(k)}function g(k){return k===62?(e.consume(k),Q):k===45&&l===2?(e.consume(k),g):H(k)}function Q(k){return k===null||K(k)?(e.exit("htmlFlowData"),q(k)):(e.consume(k),Q)}function q(k){return e.exit("htmlFlow"),t(k)}}function b1(e,t,n){const r=this;return l;function l(o){return K(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function L1(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(io,t,n)}}const z1={name:"htmlText",tokenize:O1};function O1(e,t,n){const r=this;let l,i,o;return s;function s(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),a}function a(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),P):g===63?(e.consume(g),x):_t(g)?(e.consume(g),D):n(g)}function c(g){return g===45?(e.consume(g),d):g===91?(e.consume(g),i=0,v):_t(g)?(e.consume(g),y):n(g)}function d(g){return g===45?(e.consume(g),h):n(g)}function f(g){return g===null?n(g):g===45?(e.consume(g),p):K(g)?(o=f,$(g)):(e.consume(g),f)}function p(g){return g===45?(e.consume(g),h):f(g)}function h(g){return g===62?M(g):g===45?p(g):f(g)}function v(g){const Q="CDATA[";return g===Q.charCodeAt(i++)?(e.consume(g),i===Q.length?w:v):n(g)}function w(g){return g===null?n(g):g===93?(e.consume(g),E):K(g)?(o=w,$(g)):(e.consume(g),w)}function E(g){return g===93?(e.consume(g),m):w(g)}function m(g){return g===62?M(g):g===93?(e.consume(g),m):w(g)}function y(g){return g===null||g===62?M(g):K(g)?(o=y,$(g)):(e.consume(g),y)}function x(g){return g===null?n(g):g===63?(e.consume(g),C):K(g)?(o=x,$(g)):(e.consume(g),x)}function C(g){return g===62?M(g):x(g)}function P(g){return _t(g)?(e.consume(g),S):n(g)}function S(g){return g===45||it(g)?(e.consume(g),S):L(g)}function L(g){return K(g)?(o=L,$(g)):oe(g)?(e.consume(g),L):M(g)}function D(g){return g===45||it(g)?(e.consume(g),D):g===47||g===62||Ze(g)?W(g):n(g)}function W(g){return g===47?(e.consume(g),M):g===58||g===95||_t(g)?(e.consume(g),R):K(g)?(o=W,$(g)):oe(g)?(e.consume(g),W):M(g)}function R(g){return g===45||g===46||g===58||g===95||it(g)?(e.consume(g),R):z(g)}function z(g){return g===61?(e.consume(g),H):K(g)?(o=z,$(g)):oe(g)?(e.consume(g),z):W(g)}function H(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,O):K(g)?(o=H,$(g)):oe(g)?(e.consume(g),H):(e.consume(g),F)}function O(g){return g===l?(e.consume(g),l=void 0,I):g===null?n(g):K(g)?(o=O,$(g)):(e.consume(g),O)}function F(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||Ze(g)?W(g):(e.consume(g),F)}function I(g){return g===47||g===62||Ze(g)?W(g):n(g)}function M(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function $(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),j}function j(g){return oe(g)?pe(e,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):A(g)}function A(g){return e.enter("htmlTextData"),o(g)}}const ou={name:"labelEnd",resolveAll:M1,resolveTo:F1,tokenize:B1},R1={tokenize:U1},A1={tokenize:$1},D1={tokenize:V1};function M1(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&zt(e,0,e.length,n),e}function F1(e,t){let n=e.length,r=0,l,i,o,s;for(;n--;)if(l=e[n][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(o=n);const a={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",a,t],["enter",c,t]],s=ft(s,e.slice(i+1,i+r+3)),s=ft(s,[["enter",d,t]]),s=ft(s,iu(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=ft(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=ft(s,e.slice(o+1)),s=ft(s,[["exit",a,t]]),zt(e,i,e.length,s),e}function B1(e,t,n){const r=this;let l=r.events.length,i,o;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return s;function s(p){return i?i._inactive?f(p):(o=r.parser.defined.includes(cr(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(R1,d,o?d:f)(p):p===91?e.attempt(A1,d,o?c:f)(p):o?d(p):f(p)}function c(p){return e.attempt(D1,d,f)(p)}function d(p){return t(p)}function f(p){return i._balanced=!0,n(p)}}function U1(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),l}function l(f){return Ze(f)?Jr(e,i)(f):i(f)}function i(f){return f===41?d(f):hh(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Ze(f)?Jr(e,a)(f):d(f)}function s(f){return n(f)}function a(f){return f===34||f===39||f===40?gh(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function c(f){return Ze(f)?Jr(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function $1(e,t,n){const r=this;return l;function l(s){return mh.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(cr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function V1(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),l}function l(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const H1={name:"labelStartImage",resolveAll:ou.resolveAll,tokenize:W1};function W1(e,t,n){const r=this;return l;function l(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Y1={name:"labelStartLink",resolveAll:ou.resolveAll,tokenize:Q1};function Q1(e,t,n){const r=this;return l;function l(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Fo={name:"lineEnding",tokenize:q1};function q1(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const si={name:"thematicBreak",tokenize:K1};function K1(e,t,n){let r=0,l;return i;function i(c){return e.enter("thematicBreak"),o(c)}function o(c){return l=c,s(c)}function s(c){return c===l?(e.enter("thematicBreakSequence"),a(c)):r>=3&&(c===null||K(c))?(e.exit("thematicBreak"),t(c)):n(c)}function a(c){return c===l?(e.consume(c),r++,a):(e.exit("thematicBreakSequence"),oe(c)?pe(e,s,"whitespace")(c):s(c))}}const Qe={continuation:{tokenize:Z1},exit:t0,name:"list",tokenize:G1},X1={partial:!0,tokenize:n0},J1={partial:!0,tokenize:e0};function G1(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return s;function s(h){const v=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Gs(h)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(si,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return Gs(h)&&++o<10?(e.consume(h),a):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(io,r.interrupt?n:d,e.attempt(X1,p,f))}function d(h){return r.containerState.initialBlankLine=!0,i++,p(h)}function f(h){return oe(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Z1(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(io,l,i);function l(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!oe(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(J1,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(Qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function e0(e,t,n){const r=this;return pe(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function t0(e){e.exit(this.containerState.type)}function n0(e,t,n){const r=this;return pe(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!oe(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Jc={name:"setextUnderline",resolveTo:r0,tokenize:l0};function r0(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function l0(e,t,n){const r=this;let l;return i;function i(c){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),l=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===l?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),oe(c)?pe(e,a,"lineSuffix")(c):a(c))}function a(c){return c===null||K(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const i0={tokenize:o0};function o0(e){const t=this,n=e.attempt(io,r,e.attempt(this.parser.constructs.flowInitial,l,pe(e,e.attempt(this.parser.constructs.flow,l,e.attempt(d1,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const s0={resolveAll:xh()},a0=yh("string"),u0=yh("text");function yh(e){return{resolveAll:xh(e==="text"?c0:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,s);return o;function o(d){return c(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),a}function a(d){return c(d)?(n.exit("data"),i(d)):(n.consume(d),a)}function c(d){if(d===null)return!0;const f=l[d];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function xh(e){return t;function t(n,r){let l=-1,i;for(;++l<=n.length;)i===void 0?n[l]&&n[l][1].type==="data"&&(i=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==i+2&&(n[i][1].end=n[l-1][1].end,n.splice(i+2,l-i-2),l=i+2),i=void 0);return e?e(n,r):n}}function c0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],l=t.sliceStream(r);let i=l.length,o=-1,s=0,a;for(;i--;){const c=l[i];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)a=!0,s++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const d0={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:ch},f0={91:g1},p0={[-2]:Mo,[-1]:Mo,32:Mo},h0={35:S1,42:si,45:[Jc,si],60:N1,61:Jc,95:si,96:Kc,126:Kc},m0={38:fh,92:dh},g0={[-5]:Fo,[-4]:Fo,[-3]:Fo,33:H1,38:fh,42:Zs,60:[Yv,z1],91:Y1,92:[k1,dh],93:ou,95:Zs,96:i1},y0={null:[Zs,s0]},x0={null:[42,95]},v0={null:[]},k0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:x0,contentInitial:f0,disable:v0,document:d0,flow:h0,flowInitial:p0,insideSpan:y0,string:m0,text:g0},Symbol.toStringTag,{value:"Module"}));function w0(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},i=[];let o=[],s=[];const a={attempt:L(P),check:L(S),consume:y,enter:x,exit:C,interrupt:L(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let d=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function f(z){return o=ft(o,z),E(),o[o.length-1]!==null?[]:(D(t,0),c.events=iu(i,c.events,c),c.events)}function p(z,H){return C0(h(z),H)}function h(z){return S0(o,z)}function v(){const{_bufferIndex:z,_index:H,line:O,column:F,offset:I}=r;return{_bufferIndex:z,_index:H,line:O,column:F,offset:I}}function w(z){l[z.line]=z.column,R()}function E(){let z;for(;r._index<o.length;){const H=o[r._index];if(typeof H=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<H.length;)m(H.charCodeAt(r._bufferIndex));else m(H)}}function m(z){d=d(z)}function y(z){K(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,R()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=z}function x(z,H){const O=H||{};return O.type=z,O.start=v(),c.events.push(["enter",O,c]),s.push(O),O}function C(z){const H=s.pop();return H.end=v(),c.events.push(["exit",H,c]),H}function P(z,H){D(z,H.from)}function S(z,H){H.restore()}function L(z,H){return O;function O(F,I,M){let $,j,A,g;return Array.isArray(F)?q(F):"tokenize"in F?q([F]):Q(F);function Q(te){return _;function _(ue){const Ae=ue!==null&&te[ue],ye=ue!==null&&te.null,De=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return q(De)(ue)}}function q(te){return $=te,j=0,te.length===0?M:k(te[j])}function k(te){return _;function _(ue){return g=W(),A=te,te.partial||(c.currentConstruct=te),te.name&&c.parser.constructs.disable.null.includes(te.name)?ae():te.tokenize.call(H?Object.assign(Object.create(c),H):c,a,Z,ae)(ue)}}function Z(te){return z(A,g),I}function ae(te){return g.restore(),++j<$.length?k($[j]):M}}}function D(z,H){z.resolveAll&&!i.includes(z)&&i.push(z),z.resolve&&zt(c.events,H,c.events.length-H,z.resolve(c.events.slice(H),c)),z.resolveTo&&(c.events=z.resolveTo(c.events,c))}function W(){const z=v(),H=c.previous,O=c.currentConstruct,F=c.events.length,I=Array.from(s);return{from:F,restore:M};function M(){r=z,c.previous=H,c.currentConstruct=O,c.events.length=F,s=I,R()}}function R(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function S0(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;let o;if(n===l)o=[e[n].slice(r,i)];else{if(o=e.slice(n,l),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function C0(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
69
69
|
`;break}case-3:{o=`\r
|
|
70
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&l)continue;o=" ";break}default:o=String.fromCharCode(i)}l=i===-2,r.push(o)}return r.join("")}function j0(e){const r={constructs:bv([k0,...(e||{}).extensions||[]]),content:l(Fv),defined:[],document:l(Uv),flow:l(i0),lazy:{},string:l(a0),text:l(u0)};return r;function l(i){return o;function o(s){return w0(r,i,s)}}}function E0(e){for(;!ph(e););return e}const Zc=/[\0\t\n\r]/g;function N0(){let e=1,t="",n=!0,r;return l;function l(i,o,s){const a=[];let c,d,f,p,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(Zc.lastIndex=f,c=Zc.exec(i),p=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(p),!c){t=i.slice(f);break}if(h===10&&f===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),f<p&&(a.push(i.slice(f,p)),e+=p-f),h){case 0:{a.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,a.push(-2);e++<d;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return s&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const P0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function T0(e){return e.replace(P0,I0)}function I0(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return uh(n.slice(i?2:1),i?16:10)}return iu(n)||e}const vh={}.hasOwnProperty;function _0(e,t,n){return typeof t!="string"&&(n=t,t=void 0),b0(n)(E0(j0(n).document().write(N0()(e,t,!0))))}function b0(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(pu),autolinkProtocol:W,autolinkEmail:W,atxHeading:i(_e),blockQuote:i(xe),characterEscape:W,characterReference:W,codeFenced:i(De),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(De,o),codeText:i(Et,o),codeTextData:W,data:W,codeFlowValue:W,definition:i(b),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(ce),hardBreakEscape:i(Ee),hardBreakTrailing:i(Ee),htmlFlow:i(jr,o),htmlFlowData:W,htmlText:i(jr,o),htmlTextData:W,image:i(xn),label:o,link:i(pu),listItem:i(zh),listItemValue:p,listOrdered:i(hu,f),listUnordered:i(hu),paragraph:i(Oh),reference:k,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(_e),strong:i(Rh),thematicBreak:i(Dh)},exit:{atxHeading:a(),atxHeadingSequence:P,autolink:a(),autolinkEmail:Ae,autolinkProtocol:ue,blockQuote:a(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:te,characterReference:_,codeFenced:a(E),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:v,codeFlowValue:R,codeIndented:a(m),codeText:a(I),codeTextData:R,data:R,definition:a(),definitionDestinationString:C,definitionLabelString:y,definitionTitleString:x,emphasis:a(),hardBreakEscape:a(H),hardBreakTrailing:a(H),htmlFlow:a(O),htmlFlowData:R,htmlText:a(F),htmlTextData:R,image:a($),label:A,labelText:j,lineEnding:z,link:a(M),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:Z,resourceDestinationString:g,resourceTitleString:Q,resource:q,setextHeading:a(D),setextHeadingLineSequence:L,setextHeadingText:S,strong:a(),thematicBreak:a()}};kh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let V={type:"root",children:[]};const X={stack:[V],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:n},le=[];let de=-1;for(;++de<T.length;)if(T[de][1].type==="listOrdered"||T[de][1].type==="listUnordered")if(T[de][0]==="enter")le.push(de);else{const yt=le.pop();de=l(T,yt,de)}for(de=-1;++de<T.length;){const yt=t[T[de][0]];vh.call(yt,T[de][1].type)&&yt[T[de][1].type].call(Object.assign({sliceSerialize:T[de][2].sliceSerialize},X),T[de][1])}if(X.tokenStack.length>0){const yt=X.tokenStack[X.tokenStack.length-1];(yt[1]||ed).call(X,void 0,yt[0])}for(V.position={start:Qt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Qt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de<t.transforms.length;)V=t.transforms[de](V)||V;return V}function l(T,V,X){let le=V-1,de=-1,yt=!1,vn,Ot,Er,Nr;for(;++le<=X;){const tt=T[le];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?de++:de--,Nr=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(vn&&!Nr&&!de&&!Er&&(Er=le),Nr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nr=void 0}if(!de&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||de===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(vn){let Fn=le;for(Ot=void 0;Fn--;){const Rt=T[Fn];if(Rt[1].type==="lineEnding"||Rt[1].type==="lineEndingBlank"){if(Rt[0]==="exit")continue;Ot&&(T[Ot][1].type="lineEndingBlank",yt=!0),Rt[1].type="lineEnding",Ot=Fn}else if(!(Rt[1].type==="linePrefix"||Rt[1].type==="blockQuotePrefix"||Rt[1].type==="blockQuotePrefixWhitespace"||Rt[1].type==="blockQuoteMarker"||Rt[1].type==="listItemIndent"))break}Er&&(!Ot||Er<Ot)&&(vn._spread=!0),vn.end=Object.assign({},Ot?T[Ot][1].start:tt[1].end),T.splice(Ot||le,0,["exit",vn,tt[2]]),le++,X++}if(tt[1].type==="listItemPrefix"){const Fn={type:"listItem",_spread:!1,start:Object.assign({},tt[1].start),end:void 0};vn=Fn,T.splice(le,0,["enter",Fn,tt[2]]),le++,X++,Er=void 0,Nr=!0}}}return T[V][1]._spread=yt,X}function i(T,V){return X;function X(le){s.call(this,T(le),le),V&&V.call(this,le)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,V,X){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([V,X||void 0]),T.position={start:Qt(V.start),end:void 0}}function a(T){return V;function V(X){T&&T.call(this,X),c.call(this,X)}}function c(T,V){const X=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==T.type&&(V?V.call(this,T,le[0]):(le[1]||ed).call(this,T,le[0]));else throw new Error("Cannot close `"+T.type+"` ("+Xr({start:T.start,end:T.end})+"): it’s not open");X.position.end=Qt(T.end)}function d(){return Iv(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),V=this.stack[this.stack.length-1];V.lang=T}function v(){const T=this.resume(),V=this.stack[this.stack.length-1];V.meta=T}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T.replace(/(\r?\n|\r)$/g,"")}function y(T){const V=this.resume(),X=this.stack[this.stack.length-1];X.label=V,X.identifier=cr(this.sliceSerialize(T)).toLowerCase()}function x(){const T=this.resume(),V=this.stack[this.stack.length-1];V.title=T}function C(){const T=this.resume(),V=this.stack[this.stack.length-1];V.url=T}function P(T){const V=this.stack[this.stack.length-1];if(!V.depth){const X=this.sliceSerialize(T).length;V.depth=X}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function L(T){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function W(T){const X=this.stack[this.stack.length-1].children;let le=X[X.length-1];(!le||le.type!=="text")&&(le=Ah(),le.position={start:Qt(T.start),end:void 0},X.push(le)),this.stack.push(le)}function R(T){const V=this.stack.pop();V.value+=this.sliceSerialize(T),V.position.end=Qt(T.end)}function z(T){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=V.children[V.children.length-1];X.position.end=Qt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(W.call(this,T),R.call(this,T))}function H(){this.data.atHardBreak=!0}function O(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T}function F(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T}function I(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T}function M(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=V,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function $(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=V,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function j(T){const V=this.sliceSerialize(T),X=this.stack[this.stack.length-2];X.label=T0(V),X.identifier=cr(V).toLowerCase()}function A(){const T=this.stack[this.stack.length-1],V=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const le=T.children;X.children=le}else X.alt=V}function g(){const T=this.resume(),V=this.stack[this.stack.length-1];V.url=T}function Q(){const T=this.resume(),V=this.stack[this.stack.length-1];V.title=T}function q(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Z(T){const V=this.resume(),X=this.stack[this.stack.length-1];X.label=V,X.identifier=cr(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ae(T){this.data.characterReferenceType=T.type}function te(T){const V=this.sliceSerialize(T),X=this.data.characterReferenceType;let le;X?(le=uh(V,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=iu(V);const de=this.stack[this.stack.length-1];de.value+=le}function _(T){const V=this.stack.pop();V.position.end=Qt(T.end)}function ue(T){R.call(this,T);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(T)}function Ae(T){R.call(this,T);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(T)}function xe(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function Et(){return{type:"inlineCode",value:""}}function b(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function _e(){return{type:"heading",depth:0,children:[]}}function Ee(){return{type:"break"}}function jr(){return{type:"html",value:""}}function xn(){return{type:"image",title:null,url:"",alt:null}}function pu(){return{type:"link",title:null,url:"",children:[]}}function hu(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function zh(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Oh(){return{type:"paragraph",children:[]}}function Rh(){return{type:"strong",children:[]}}function Ah(){return{type:"text",value:""}}function Dh(){return{type:"thematicBreak"}}}function Qt(e){return{line:e.line,column:e.column,offset:e.offset}}function kh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?kh(e,r):L0(e,r)}}function L0(e,t){let n;for(n in t)if(vh.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ed(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xr({start:t.start,end:t.end})+") is still open")}function z0(e){const t=this;t.parser=n;function n(r){return _0(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function O0(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function R0(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
70
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&l)continue;o=" ";break}default:o=String.fromCharCode(i)}l=i===-2,r.push(o)}return r.join("")}function j0(e){const r={constructs:bv([k0,...(e||{}).extensions||[]]),content:l(Fv),defined:[],document:l(Uv),flow:l(i0),lazy:{},string:l(a0),text:l(u0)};return r;function l(i){return o;function o(s){return w0(r,i,s)}}}function E0(e){for(;!ph(e););return e}const Gc=/[\0\t\n\r]/g;function N0(){let e=1,t="",n=!0,r;return l;function l(i,o,s){const a=[];let c,d,f,p,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(Gc.lastIndex=f,c=Gc.exec(i),p=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(p),!c){t=i.slice(f);break}if(h===10&&f===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),f<p&&(a.push(i.slice(f,p)),e+=p-f),h){case 0:{a.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,a.push(-2);e++<d;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return s&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const P0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function T0(e){return e.replace(P0,I0)}function I0(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return uh(n.slice(i?2:1),i?16:10)}return lu(n)||e}const vh={}.hasOwnProperty;function _0(e,t,n){return typeof t!="string"&&(n=t,t=void 0),b0(n)(E0(j0(n).document().write(N0()(e,t,!0))))}function b0(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(fu),autolinkProtocol:W,autolinkEmail:W,atxHeading:i(_e),blockQuote:i(ye),characterEscape:W,characterReference:W,codeFenced:i(De),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(De,o),codeText:i(Et,o),codeTextData:W,data:W,codeFlowValue:W,definition:i(b),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(xe),hardBreakEscape:i(Ee),hardBreakTrailing:i(Ee),htmlFlow:i(jr,o),htmlFlowData:W,htmlText:i(jr,o),htmlTextData:W,image:i(xn),label:o,link:i(fu),listItem:i(zh),listItemValue:p,listOrdered:i(pu,f),listUnordered:i(pu),paragraph:i(Oh),reference:k,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(_e),strong:i(Rh),thematicBreak:i(Dh)},exit:{atxHeading:a(),atxHeadingSequence:P,autolink:a(),autolinkEmail:Ae,autolinkProtocol:ue,blockQuote:a(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:te,characterReference:_,codeFenced:a(E),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:v,codeFlowValue:R,codeIndented:a(m),codeText:a(I),codeTextData:R,data:R,definition:a(),definitionDestinationString:C,definitionLabelString:y,definitionTitleString:x,emphasis:a(),hardBreakEscape:a(H),hardBreakTrailing:a(H),htmlFlow:a(O),htmlFlowData:R,htmlText:a(F),htmlTextData:R,image:a($),label:A,labelText:j,lineEnding:z,link:a(M),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:Z,resourceDestinationString:g,resourceTitleString:Q,resource:q,setextHeading:a(D),setextHeadingLineSequence:L,setextHeadingText:S,strong:a(),thematicBreak:a()}};kh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let V={type:"root",children:[]};const X={stack:[V],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:n},le=[];let ce=-1;for(;++ce<T.length;)if(T[ce][1].type==="listOrdered"||T[ce][1].type==="listUnordered")if(T[ce][0]==="enter")le.push(ce);else{const yt=le.pop();ce=l(T,yt,ce)}for(ce=-1;++ce<T.length;){const yt=t[T[ce][0]];vh.call(yt,T[ce][1].type)&&yt[T[ce][1].type].call(Object.assign({sliceSerialize:T[ce][2].sliceSerialize},X),T[ce][1])}if(X.tokenStack.length>0){const yt=X.tokenStack[X.tokenStack.length-1];(yt[1]||Zc).call(X,void 0,yt[0])}for(V.position={start:Qt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Qt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)V=t.transforms[ce](V)||V;return V}function l(T,V,X){let le=V-1,ce=-1,yt=!1,vn,Ot,Er,Nr;for(;++le<=X;){const tt=T[le];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?ce++:ce--,Nr=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(vn&&!Nr&&!ce&&!Er&&(Er=le),Nr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nr=void 0}if(!ce&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||ce===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(vn){let Fn=le;for(Ot=void 0;Fn--;){const Rt=T[Fn];if(Rt[1].type==="lineEnding"||Rt[1].type==="lineEndingBlank"){if(Rt[0]==="exit")continue;Ot&&(T[Ot][1].type="lineEndingBlank",yt=!0),Rt[1].type="lineEnding",Ot=Fn}else if(!(Rt[1].type==="linePrefix"||Rt[1].type==="blockQuotePrefix"||Rt[1].type==="blockQuotePrefixWhitespace"||Rt[1].type==="blockQuoteMarker"||Rt[1].type==="listItemIndent"))break}Er&&(!Ot||Er<Ot)&&(vn._spread=!0),vn.end=Object.assign({},Ot?T[Ot][1].start:tt[1].end),T.splice(Ot||le,0,["exit",vn,tt[2]]),le++,X++}if(tt[1].type==="listItemPrefix"){const Fn={type:"listItem",_spread:!1,start:Object.assign({},tt[1].start),end:void 0};vn=Fn,T.splice(le,0,["enter",Fn,tt[2]]),le++,X++,Er=void 0,Nr=!0}}}return T[V][1]._spread=yt,X}function i(T,V){return X;function X(le){s.call(this,T(le),le),V&&V.call(this,le)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,V,X){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([V,X||void 0]),T.position={start:Qt(V.start),end:void 0}}function a(T){return V;function V(X){T&&T.call(this,X),c.call(this,X)}}function c(T,V){const X=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==T.type&&(V?V.call(this,T,le[0]):(le[1]||Zc).call(this,T,le[0]));else throw new Error("Cannot close `"+T.type+"` ("+Xr({start:T.start,end:T.end})+"): it’s not open");X.position.end=Qt(T.end)}function d(){return Iv(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),V=this.stack[this.stack.length-1];V.lang=T}function v(){const T=this.resume(),V=this.stack[this.stack.length-1];V.meta=T}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T.replace(/(\r?\n|\r)$/g,"")}function y(T){const V=this.resume(),X=this.stack[this.stack.length-1];X.label=V,X.identifier=cr(this.sliceSerialize(T)).toLowerCase()}function x(){const T=this.resume(),V=this.stack[this.stack.length-1];V.title=T}function C(){const T=this.resume(),V=this.stack[this.stack.length-1];V.url=T}function P(T){const V=this.stack[this.stack.length-1];if(!V.depth){const X=this.sliceSerialize(T).length;V.depth=X}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function L(T){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function W(T){const X=this.stack[this.stack.length-1].children;let le=X[X.length-1];(!le||le.type!=="text")&&(le=Ah(),le.position={start:Qt(T.start),end:void 0},X.push(le)),this.stack.push(le)}function R(T){const V=this.stack.pop();V.value+=this.sliceSerialize(T),V.position.end=Qt(T.end)}function z(T){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=V.children[V.children.length-1];X.position.end=Qt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(W.call(this,T),R.call(this,T))}function H(){this.data.atHardBreak=!0}function O(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T}function F(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T}function I(){const T=this.resume(),V=this.stack[this.stack.length-1];V.value=T}function M(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=V,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function $(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=V,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function j(T){const V=this.sliceSerialize(T),X=this.stack[this.stack.length-2];X.label=T0(V),X.identifier=cr(V).toLowerCase()}function A(){const T=this.stack[this.stack.length-1],V=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const le=T.children;X.children=le}else X.alt=V}function g(){const T=this.resume(),V=this.stack[this.stack.length-1];V.url=T}function Q(){const T=this.resume(),V=this.stack[this.stack.length-1];V.title=T}function q(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Z(T){const V=this.resume(),X=this.stack[this.stack.length-1];X.label=V,X.identifier=cr(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ae(T){this.data.characterReferenceType=T.type}function te(T){const V=this.sliceSerialize(T),X=this.data.characterReferenceType;let le;X?(le=uh(V,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=lu(V);const ce=this.stack[this.stack.length-1];ce.value+=le}function _(T){const V=this.stack.pop();V.position.end=Qt(T.end)}function ue(T){R.call(this,T);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(T)}function Ae(T){R.call(this,T);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(T)}function ye(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function Et(){return{type:"inlineCode",value:""}}function b(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xe(){return{type:"emphasis",children:[]}}function _e(){return{type:"heading",depth:0,children:[]}}function Ee(){return{type:"break"}}function jr(){return{type:"html",value:""}}function xn(){return{type:"image",title:null,url:"",alt:null}}function fu(){return{type:"link",title:null,url:"",children:[]}}function pu(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function zh(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Oh(){return{type:"paragraph",children:[]}}function Rh(){return{type:"strong",children:[]}}function Ah(){return{type:"text",value:""}}function Dh(){return{type:"thematicBreak"}}}function Qt(e){return{line:e.line,column:e.column,offset:e.offset}}function kh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?kh(e,r):L0(e,r)}}function L0(e,t){let n;for(n in t)if(vh.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Zc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xr({start:t.start,end:t.end})+") is still open")}function z0(e){const t=this;t.parser=n;function n(r){return _0(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function O0(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function R0(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
71
71
|
`}]}function A0(e,t){const n=t.value?t.value+`
|
|
72
72
|
`:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function D0(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function M0(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function F0(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=Cr(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,a);const c={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,c),e.applyData(t,c)}function B0(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function U0(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function wh(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function $0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return wh(e,t);const l={src:Cr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function V0(e,t){const n={src:Cr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function H0(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function W0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return wh(e,t);const l={href:Cr(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Y0(e,t){const n={href:Cr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Q0(e,t,n){const r=e.all(t),l=n?q0(n):Sh(t),i={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(l||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
73
73
|
`}),d.type==="element"&&d.tagName==="p"&&!l?o.push(...d.children):o.push(d)}const a=r[r.length-1];a&&(l||a.type!=="element"||a.tagName!=="p")&&o.push({type:"text",value:`
|
|
74
|
-
`});const c={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,c),e.applyData(t,c)}function q0(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Sh(n[r])}return t}function Sh(e){const t=e.spread;return t??e.children.length>1}function K0(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const o=r[l];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function X0(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function J0(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function G0(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Z0(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),l.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=
|
|
74
|
+
`});const c={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,c),e.applyData(t,c)}function q0(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Sh(n[r])}return t}function Sh(e){const t=e.spread;return t??e.children.length>1}function K0(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const o=r[l];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function X0(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function J0(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function G0(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Z0(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),l.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=eu(t.children[1]),a=nh(t.children[t.children.length-1]);s&&a&&(o.position={start:s,end:a}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function ek(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const c=[];for(;++a<s;){const f=t.children[a],p={},h=o?o[a]:void 0;h&&(p.align=h);let v={type:"element",tagName:i,properties:p,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),c.push(v)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function tk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ed=9,td=32;function nk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const i=[];for(;r;)i.push(nd(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(nd(t.slice(l),l>0,!1)),i.join("")}function nd(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===ed||i===td;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===ed||i===td;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function rk(e,t){const n={type:"text",value:nk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function lk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ik={blockquote:O0,break:R0,code:A0,delete:D0,emphasis:M0,footnoteReference:F0,heading:B0,html:U0,imageReference:$0,image:V0,inlineCode:H0,linkReference:W0,link:Y0,listItem:Q0,list:K0,paragraph:X0,root:J0,strong:G0,table:Z0,tableCell:tk,tableRow:ek,text:rk,thematicBreak:lk,toml:Yl,yaml:Yl,definition:Yl,footnoteDefinition:Yl};function Yl(){}const Ch=-1,oo=0,Gr=1,Ri=2,su=3,au=4,uu=5,cu=6,jh=7,Eh=8,rd=typeof self=="object"?self:globalThis,ok=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case oo:case Ch:return n(o,l);case Gr:{const s=n([],l);for(const a of o)s.push(r(a));return s}case Ri:{const s=n({},l);for(const[a,c]of o)s[r(a)]=r(c);return s}case su:return n(new Date(o),l);case au:{const{source:s,flags:a}=o;return n(new RegExp(s,a),l)}case uu:{const s=n(new Map,l);for(const[a,c]of o)s.set(r(a),r(c));return s}case cu:{const s=n(new Set,l);for(const a of o)s.add(r(a));return s}case jh:{const{name:s,message:a}=o;return n(new rd[s](a),l)}case Eh:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new rd[i](o),l)};return r},ld=e=>ok(new Map,e)(0),$n="",{toString:sk}={},{keys:ak}=Object,Ar=e=>{const t=typeof e;if(t!=="object"||!e)return[oo,t];const n=sk.call(e).slice(8,-1);switch(n){case"Array":return[Gr,$n];case"Object":return[Ri,$n];case"Date":return[su,$n];case"RegExp":return[au,$n];case"Map":return[uu,$n];case"Set":return[cu,$n];case"DataView":return[Gr,n]}return n.includes("Array")?[Gr,n]:n.includes("Error")?[jh,n]:[Ri,n]},Ql=([e,t])=>e===oo&&(t==="function"||t==="symbol"),uk=(e,t,n,r)=>{const l=(o,s)=>{const a=r.push(o)-1;return n.set(s,a),a},i=o=>{if(n.has(o))return n.get(o);let[s,a]=Ar(o);switch(s){case oo:{let d=o;switch(a){case"bigint":s=Eh,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);d=null;break;case"undefined":return l([Ch],o)}return l([s,d],o)}case Gr:{if(a){let p=o;return a==="DataView"?p=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(o)),l([a,[...p]],o)}const d=[],f=l([s,d],o);for(const p of o)d.push(i(p));return f}case Ri:{if(a)switch(a){case"BigInt":return l([a,o.toString()],o);case"Boolean":case"Number":case"String":return l([a,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const d=[],f=l([s,d],o);for(const p of ak(o))(e||!Ql(Ar(o[p])))&&d.push([i(p),i(o[p])]);return f}case su:return l([s,o.toISOString()],o);case au:{const{source:d,flags:f}=o;return l([s,{source:d,flags:f}],o)}case uu:{const d=[],f=l([s,d],o);for(const[p,h]of o)(e||!(Ql(Ar(p))||Ql(Ar(h))))&&d.push([i(p),i(h)]);return f}case cu:{const d=[],f=l([s,d],o);for(const p of o)(e||!Ql(Ar(p)))&&d.push(i(p));return f}}const{message:c}=o;return l([s,{name:a,message:c}],o)};return i},id=(e,{json:t,lossy:n}={})=>{const r=[];return uk(!(t||n),!!t,new Map,r)(e),r},Ai=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ld(id(e,t)):structuredClone(e):(e,t)=>ld(id(e,t));function ck(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function dk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ck,r=e.options.footnoteBackLabel||dk,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[a]);if(!c)continue;const d=e.all(c),f=String(c.identifier).toUpperCase(),p=Cr(f.toLowerCase());let h=0;const v=[],w=e.footnoteCounts.get(f);for(;w!==void 0&&++h<=w;){v.length>0&&v.push({type:"text",value:" "});let y=typeof n=="string"?n:n(a,h);typeof y=="string"&&(y={type:"text",value:y}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const E=d[d.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const y=E.children[E.children.length-1];y&&y.type==="text"?y.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...v)}else d.push(...v);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(c,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ai(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
75
75
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
76
|
-
`}]}}const Nh=function(e){if(e==null)return gk;if(typeof e=="function")return so(e);if(typeof e=="object")return Array.isArray(e)?pk(e):hk(e);if(typeof e=="string")return mk(e);throw new Error("Expected function, string, or object as test")};function pk(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Nh(e[n]);return so(r);function r(...l){let i=-1;for(;++i<t.length;)if(t[i].apply(this,l))return!0;return!1}}function hk(e){const t=e;return so(n);function n(r){const l=r;let i;for(i in e)if(l[i]!==t[i])return!1;return!0}}function mk(e){return so(t);function t(n){return n&&n.type===e}}function so(e){return t;function t(n,r,l){return!!(yk(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function gk(){return!0}function yk(e){return e!==null&&typeof e=="object"&&"type"in e}const Ph=[],xk=!0,
|
|
76
|
+
`}]}}const Nh=function(e){if(e==null)return gk;if(typeof e=="function")return so(e);if(typeof e=="object")return Array.isArray(e)?pk(e):hk(e);if(typeof e=="string")return mk(e);throw new Error("Expected function, string, or object as test")};function pk(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Nh(e[n]);return so(r);function r(...l){let i=-1;for(;++i<t.length;)if(t[i].apply(this,l))return!0;return!1}}function hk(e){const t=e;return so(n);function n(r){const l=r;let i;for(i in e)if(l[i]!==t[i])return!1;return!0}}function mk(e){return so(t);function t(n){return n&&n.type===e}}function so(e){return t;function t(n,r,l){return!!(yk(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function gk(){return!0}function yk(e){return e!==null&&typeof e=="object"&&"type"in e}const Ph=[],xk=!0,od=!1,vk="skip";function kk(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const i=Nh(l),o=r?-1:1;s(e,void 0,[])();function s(a,c,d){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Ph,v,w,E;if((!t||i(a,c,d[d.length-1]||void 0))&&(h=wk(n(a,d)),h[0]===od))return h;if("children"in a&&a.children){const m=a;if(m.children&&h[0]!==vk)for(w=(r?m.children.length:-1)+o,E=d.concat(m);w>-1&&w<m.children.length;){const y=m.children[w];if(v=s(y,w,E)(),v[0]===od)return v;w=typeof v[1]=="number"?v[1]:w+o}}return h}}}function wk(e){return Array.isArray(e)?e:typeof e=="number"?[xk,e]:e==null?Ph:[e]}function Th(e,t,n,r){let l,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,l=n):(i=t,o=n,l=r),kk(e,i,s,l);function s(a,c){const d=c[c.length-1],f=d?d.children.indexOf(a):void 0;return o(a,f,d)}}const ea={}.hasOwnProperty,Sk={};function Ck(e,t){const n=t||Sk,r=new Map,l=new Map,i=new Map,o={...ik,...n.handlers},s={all:c,applyData:Ek,definitionById:r,footnoteById:l,footnoteCounts:i,footnoteOrder:[],handlers:o,one:a,options:n,patch:jk,wrap:Pk};return Th(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:l,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),s;function a(d,f){const p=d.type,h=s.handlers[p];if(ea.call(s.handlers,p)&&h)return h(s,d,f);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in d){const{children:w,...E}=d,m=Ai(E);return m.children=s.all(d),m}return Ai(d)}return(s.options.unknownHandler||Nk)(s,d,f)}function c(d){const f=[];if("children"in d){const p=d.children;let h=-1;for(;++h<p.length;){const v=s.one(p[h],d);if(v){if(h&&p[h-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=sd(v.value)),!Array.isArray(v)&&v.type==="element")){const w=v.children[0];w&&w.type==="text"&&(w.value=sd(w.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function jk(e,t){e.position&&(t.position=sv(e))}function Ek(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,Ai(i)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function Nk(e,t){const n=t.data||{},r="value"in t&&!(ea.call(n,"hProperties")||ea.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Pk(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
77
77
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
78
78
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
79
|
-
`}),n}function
|
|
80
|
-
`},l),i}function Tk(e,t){return e&&"run"in e?async function(n,r){const l=ud(n,{file:r,...t});await e.run(l,r)}:function(n,r){return ud(n,{file:r,...e||t})}}function cd(e){if(e)throw e}var ai=Object.prototype.hasOwnProperty,Ih=Object.prototype.toString,dd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,pd=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Ih.call(t)==="[object Array]"},hd=function(t){if(!t||Ih.call(t)!=="[object Object]")return!1;var n=ai.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ai.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||ai.call(t,l)},md=function(t,n){dd&&n.name==="__proto__"?dd(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},gd=function(t,n){if(n==="__proto__")if(ai.call(t,n)){if(fd)return fd(t,n).value}else return;return t[n]},Ik=function e(){var t,n,r,l,i,o,s=arguments[0],a=1,c=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},a=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});a<c;++a)if(t=arguments[a],t!=null)for(n in t)r=gd(s,n),l=gd(t,n),s!==l&&(d&&l&&(hd(l)||(i=pd(l)))?(i?(i=!1,o=r&&pd(r)?r:[]):o=r&&hd(r)?r:{},md(s,{name:n,newValue:e(d,o,l)})):typeof l<"u"&&md(s,{name:n,newValue:l}));return s};const Bo=Di(Ik);function na(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _k(){const e=[],t={run:n,use:r};return t;function n(...l){let i=-1;const o=l.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...l);function s(a,...c){const d=e[++i];let f=-1;if(a){o(a);return}for(;++f<l.length;)(c[f]===null||c[f]===void 0)&&(c[f]=l[f]);l=c,d?bk(d,s)(...c):o(null,...c)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function bk(e,t){let n;return r;function r(...o){const s=e.length>o.length;let a;s&&o.push(l);try{a=e.apply(this,o)}catch(c){const d=c;if(s&&n)throw d;return l(d)}s||(a&&a.then&&typeof a.then=="function"?a.then(i,l):a instanceof Error?l(a):i(a))}function l(o,...s){n||(n=!0,t(o,...s))}function i(o){l(null,o)}}const Tt={basename:Lk,dirname:zk,extname:Ok,join:Rk,sep:"/"};function Lk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tl(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),s>-1&&(e.codePointAt(l)===t.codePointAt(s--)?s<0&&(r=l):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function zk(e){if(Tl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ok(e){Tl(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function Rk(...e){let t=-1,n;for(;++t<e.length;)Tl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ak(n)}function Ak(e){Tl(e);const t=e.codePointAt(0)===47;let n=Dk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Dk(e,t){let n="",r=0,l=-1,i=0,o=-1,s,a;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(l===o-1||i===1))if(l!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function Tl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Mk={cwd:Fk};function Fk(){return"/"}function ra(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Bk(e){if(typeof e=="string")e=new URL(e);else if(!ra(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Uk(e)}function Uk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Uo=["history","path","basename","stem","extname","dirname"];class _h{constructor(t){let n;t?ra(t)?n={path:t}:typeof t=="string"||$k(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Mk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Uo.length;){const i=Uo[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let l;for(l in n)Uo.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Tt.basename(this.path):void 0}set basename(t){Vo(t,"basename"),$o(t,"basename"),this.path=Tt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tt.dirname(this.path):void 0}set dirname(t){yd(this.basename,"dirname"),this.path=Tt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tt.extname(this.path):void 0}set extname(t){if($o(t,"extname"),yd(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ra(t)&&(t=Bk(t)),Vo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tt.basename(this.path,this.extname):void 0}set stem(t){Vo(t,"stem"),$o(t,"stem"),this.path=Tt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new $e(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function $o(e,t){if(e&&e.includes(Tt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tt.sep+"`")}function Vo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function yd(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $k(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vk=function(e){const r=this.constructor.prototype,l=r[e],i=function(){return l.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},Hk={}.hasOwnProperty;class fu extends Vk{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=_k()}copy(){const t=new fu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Bo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Yo("data",this.frozen),this.namespace[t]=n,this):Hk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Yo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ql(t),r=this.parser||this.Parser;return Ho("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ho("process",this.parser||this.Parser),Wo("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(i,o){const s=ql(t),a=r.parse(s);r.run(a,s,function(d,f,p){if(d||!f||!p)return c(d);const h=f,v=r.stringify(h,p);Qk(v)?p.value=v:p.result=v,c(d,p)});function c(d,f){d||!f?o(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Ho("processSync",this.parser||this.Parser),Wo("processSync",this.compiler||this.Compiler),this.process(t,l),vd("processSync","process",n),r;function l(i,o){n=!0,cd(i),r=o}}run(t,n,r){xd(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const a=ql(n);l.run(t,a,c);function c(d,f,p){const h=f||t;d?s(d):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,l;return this.run(t,n,i),vd("runSync","run",r),l;function i(o,s){cd(o),l=s,r=!0}}stringify(t,n){this.freeze();const r=ql(n),l=this.compiler||this.Compiler;return Wo("stringify",l),xd(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Yo("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")a(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...f]=c;a(d,f)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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");s(c.plugins),c.settings&&(l.settings=Bo(!0,l.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const f=c[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function a(c,d){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===c){p=f;break}if(p===-1)r.push([c,...d]);else if(d.length>0){let[h,...v]=d;const w=r[p][1];na(w)&&na(h)&&(h=Bo(!0,w,h)),r[p]=[c,h,...v]}}}}const Wk=new fu().freeze();function Ho(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Wo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xd(e){if(!na(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ql(e){return Yk(e)?e:new _h(e)}function Yk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Qk(e){return typeof e=="string"||qk(e)}function qk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",kd=[],wd={allowDangerousHtml:!0},Xk=/^(https?|ircs?|mailto|xmpp)$/i,Jk=[{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 bh(e){const t=Gk(e),n=Zk(e);return ew(t.runSync(t.parse(n),n),e)}function Gk(e){const t=e.rehypePlugins||kd,n=e.remarkPlugins||kd,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wd}:wd;return Wk().use(z0).use(n).use(Tk,r).use(t)}function Zk(e){const t=e.children||"",n=new _h;return typeof t=="string"&&(n.value=t),n}function ew(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,a=t.urlTransform||tw;for(const d of Jk)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Kk+d.id,void 0);return Th(e,c),fv(e,{Fragment:u.Fragment,components:l,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function c(d,f,p){if(d.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let h;for(h in Do)if(Object.hasOwn(Do,h)&&Object.hasOwn(d.properties,h)){const v=d.properties[h],w=Do[h];(w===null||w.includes(d.tagName))&&(d.properties[h]=a(String(v||""),h,d))}}if(d.type==="element"){let h=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(d,f,p)),h&&p&&typeof f=="number")return s&&d.children?p.children.splice(f,1,...d.children):p.children.splice(f,1),f}}}function tw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||Xk.test(e.slice(0,t))?e:""}const nw=`#### 🚀 智谱 GLM Coding Plan
|
|
79
|
+
`}),n}function sd(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ad(e,t){const n=Ck(e,t),r=n.one(e,void 0),l=fk(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:`
|
|
80
|
+
`},l),i}function Tk(e,t){return e&&"run"in e?async function(n,r){const l=ad(n,{file:r,...t});await e.run(l,r)}:function(n,r){return ad(n,{file:r,...e||t})}}function ud(e){if(e)throw e}var ai=Object.prototype.hasOwnProperty,Ih=Object.prototype.toString,cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,fd=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Ih.call(t)==="[object Array]"},pd=function(t){if(!t||Ih.call(t)!=="[object Object]")return!1;var n=ai.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ai.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||ai.call(t,l)},hd=function(t,n){cd&&n.name==="__proto__"?cd(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},md=function(t,n){if(n==="__proto__")if(ai.call(t,n)){if(dd)return dd(t,n).value}else return;return t[n]},Ik=function e(){var t,n,r,l,i,o,s=arguments[0],a=1,c=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},a=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});a<c;++a)if(t=arguments[a],t!=null)for(n in t)r=md(s,n),l=md(t,n),s!==l&&(d&&l&&(pd(l)||(i=fd(l)))?(i?(i=!1,o=r&&fd(r)?r:[]):o=r&&pd(r)?r:{},hd(s,{name:n,newValue:e(d,o,l)})):typeof l<"u"&&hd(s,{name:n,newValue:l}));return s};const Bo=Di(Ik);function ta(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _k(){const e=[],t={run:n,use:r};return t;function n(...l){let i=-1;const o=l.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...l);function s(a,...c){const d=e[++i];let f=-1;if(a){o(a);return}for(;++f<l.length;)(c[f]===null||c[f]===void 0)&&(c[f]=l[f]);l=c,d?bk(d,s)(...c):o(null,...c)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function bk(e,t){let n;return r;function r(...o){const s=e.length>o.length;let a;s&&o.push(l);try{a=e.apply(this,o)}catch(c){const d=c;if(s&&n)throw d;return l(d)}s||(a&&a.then&&typeof a.then=="function"?a.then(i,l):a instanceof Error?l(a):i(a))}function l(o,...s){n||(n=!0,t(o,...s))}function i(o){l(null,o)}}const Tt={basename:Lk,dirname:zk,extname:Ok,join:Rk,sep:"/"};function Lk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tl(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),s>-1&&(e.codePointAt(l)===t.codePointAt(s--)?s<0&&(r=l):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function zk(e){if(Tl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ok(e){Tl(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function Rk(...e){let t=-1,n;for(;++t<e.length;)Tl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ak(n)}function Ak(e){Tl(e);const t=e.codePointAt(0)===47;let n=Dk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Dk(e,t){let n="",r=0,l=-1,i=0,o=-1,s,a;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(l===o-1||i===1))if(l!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function Tl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Mk={cwd:Fk};function Fk(){return"/"}function na(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Bk(e){if(typeof e=="string")e=new URL(e);else if(!na(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Uk(e)}function Uk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Uo=["history","path","basename","stem","extname","dirname"];class _h{constructor(t){let n;t?na(t)?n={path:t}:typeof t=="string"||$k(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Mk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Uo.length;){const i=Uo[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let l;for(l in n)Uo.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Tt.basename(this.path):void 0}set basename(t){Vo(t,"basename"),$o(t,"basename"),this.path=Tt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tt.dirname(this.path):void 0}set dirname(t){gd(this.basename,"dirname"),this.path=Tt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tt.extname(this.path):void 0}set extname(t){if($o(t,"extname"),gd(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){na(t)&&(t=Bk(t)),Vo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tt.basename(this.path,this.extname):void 0}set stem(t){Vo(t,"stem"),$o(t,"stem"),this.path=Tt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new $e(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function $o(e,t){if(e&&e.includes(Tt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tt.sep+"`")}function Vo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function gd(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $k(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vk=function(e){const r=this.constructor.prototype,l=r[e],i=function(){return l.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},Hk={}.hasOwnProperty;class du extends Vk{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=_k()}copy(){const t=new du;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Bo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Yo("data",this.frozen),this.namespace[t]=n,this):Hk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Yo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ql(t),r=this.parser||this.Parser;return Ho("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ho("process",this.parser||this.Parser),Wo("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(i,o){const s=ql(t),a=r.parse(s);r.run(a,s,function(d,f,p){if(d||!f||!p)return c(d);const h=f,v=r.stringify(h,p);Qk(v)?p.value=v:p.result=v,c(d,p)});function c(d,f){d||!f?o(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Ho("processSync",this.parser||this.Parser),Wo("processSync",this.compiler||this.Compiler),this.process(t,l),xd("processSync","process",n),r;function l(i,o){n=!0,ud(i),r=o}}run(t,n,r){yd(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const a=ql(n);l.run(t,a,c);function c(d,f,p){const h=f||t;d?s(d):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,l;return this.run(t,n,i),xd("runSync","run",r),l;function i(o,s){ud(o),l=s,r=!0}}stringify(t,n){this.freeze();const r=ql(n),l=this.compiler||this.Compiler;return Wo("stringify",l),yd(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Yo("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")a(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...f]=c;a(d,f)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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");s(c.plugins),c.settings&&(l.settings=Bo(!0,l.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const f=c[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function a(c,d){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===c){p=f;break}if(p===-1)r.push([c,...d]);else if(d.length>0){let[h,...v]=d;const w=r[p][1];ta(w)&&ta(h)&&(h=Bo(!0,w,h)),r[p]=[c,h,...v]}}}}const Wk=new du().freeze();function Ho(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Wo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yd(e){if(!ta(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ql(e){return Yk(e)?e:new _h(e)}function Yk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Qk(e){return typeof e=="string"||qk(e)}function qk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vd=[],kd={allowDangerousHtml:!0},Xk=/^(https?|ircs?|mailto|xmpp)$/i,Jk=[{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 bh(e){const t=Gk(e),n=Zk(e);return ew(t.runSync(t.parse(n),n),e)}function Gk(e){const t=e.rehypePlugins||vd,n=e.remarkPlugins||vd,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kd}:kd;return Wk().use(z0).use(n).use(Tk,r).use(t)}function Zk(e){const t=e.children||"",n=new _h;return typeof t=="string"&&(n.value=t),n}function ew(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,a=t.urlTransform||tw;for(const d of Jk)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Kk+d.id,void 0);return Th(e,c),fv(e,{Fragment:u.Fragment,components:l,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function c(d,f,p){if(d.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let h;for(h in Do)if(Object.hasOwn(Do,h)&&Object.hasOwn(d.properties,h)){const v=d.properties[h],w=Do[h];(w===null||w.includes(d.tagName))&&(d.properties[h]=a(String(v||""),h,d))}}if(d.type==="element"){let h=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(d,f,p)),h&&p&&typeof f=="number")return s&&d.children?p.children.splice(f,1,...d.children):p.children.splice(f,1),f}}}function tw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||Xk.test(e.slice(0,t))?e:""}const nw=`#### 🚀 智谱 GLM Coding Plan
|
|
81
81
|
|
|
82
82
|
> 价格便宜,国内速度快,支持多工具(Claude Code等 20+ 大编程工具),而且其中的GLM-4.7是目前国内最强编程模型。适合对模型有一定要求,同时又无法获取国外模型的朋友入手。
|
|
83
83
|
>
|
|
@@ -90,7 +90,7 @@ Error generating stack: `+i.message+`
|
|
|
90
90
|
>
|
|
91
91
|
> 链接:[https://aicodewith.com/](https://aicodewith.com/login?tab=register&invitation=QCA74W)
|
|
92
92
|
|
|
93
|
-
`;function rw({value:e=[],onChange:t,placeholder:n}){const[r,l]=N.useState(""),i=s=>{if(s.key==="Enter"||s.key===","){s.preventDefault();const a=r.trim();a&&!e.includes(a)&&(t([...e,a]),l(""))}else s.key==="Backspace"&&!r&&e.length>0&&t(e.slice(0,-1))},o=s=>{t(e.filter((a,c)=>c!==s))};return u.jsx("div",{style:{border:"1px solid var(--border-primary)",borderRadius:"4px",padding:"8px",minHeight:"40px",background:"var(--bg-secondary)"},children:u.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center"},children:[e.map((s,a)=>u.jsxs("span",{style:{backgroundColor:"var(--accent-light)",color:"var(--text-primary)",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",display:"flex",alignItems:"center",gap:"4px"},children:[s,u.jsx("button",{type:"button",onClick:()=>o(a),style:{background:"none",border:"none",color:"var(--text-primary)",cursor:"pointer",fontSize:"16px",lineHeight:"1",padding:"0",marginLeft:"4px"},onMouseOver:c=>c.currentTarget.style.color="var(--accent-danger)",onMouseOut:c=>c.currentTarget.style.color="var(--text-primary)",children:"×"})]},a)),u.jsx("input",{type:"text",value:r,onChange:s=>l(s.target.value),onKeyDown:i,placeholder:n,style:{border:"none",outline:"none",flex:"1",minWidth:"120px",fontSize:"14px"}})]})})}const lw={"openai-chat":"OpenAI Chat","openai-code":"OpenAI Code","openai-responses":"OpenAI Responses","claude-chat":"Claude Chat","claude-code":"Claude Code","deepseek-chat":"DeepSeek Chat"};function iw(){const[e,t]=N.useState([]),[n,r]=N.useState([]),[l,i]=N.useState(null),[o,s]=N.useState(!1),[a,c]=N.useState(!1),[d,f]=N.useState(!1),[p,h]=N.useState(null),[v,w]=N.useState(null),[E,m]=N.useState([]);N.useEffect(()=>{y()},[]),N.useEffect(()=>{l&&x(l.id)},[l]);const y=async()=>{const O=await J.getVendors();t(O),O.length>0&&!l&&i(O[0])},x=async O=>{const F=await J.getAPIServices(O);r(F)},C=()=>{h(null),s(!0)},P=()=>{f(!0)},S=O=>{h(O),s(!0)},L=async O=>{confirm("确定要删除此供应商吗")&&(await J.deleteVendor(O),y(),l&&l.id===O&&(i(null),r([])))},D=async O=>{O.preventDefault();const F=new FormData(O.currentTarget),I={name:F.get("name"),description:F.get("description")};p?await J.updateVendor(p.id,I):await J.createVendor(I),s(!1),y()},W=()=>{w(null),m([]),c(!0)},R=O=>{w(O),m(O.supportedModels||[]),c(!0)},z=async O=>{confirm("确定要删除此API服务吗")&&(await J.deleteAPIService(O),l&&x(l.id))},H=async O=>{O.preventDefault();const F=new FormData(O.currentTarget),I={vendorId:l.id,name:F.get("name"),apiUrl:F.get("apiUrl"),apiKey:F.get("apiKey"),timeout:parseInt(F.get("timeout"))||3e4,sourceType:F.get("sourceType"),supportedModels:E.length>0?E:void 0};v?await J.updateAPIService(v.id,I):await J.createAPIService(I),c(!1),m([]),l&&x(l.id)};return u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"供应商管理"}),u.jsx("p",{children:"管理API供应商和服务配置"})]}),u.jsxs("div",{style:{display:"flex",gap:"20px"},children:[u.jsxs("div",{className:"card",style:{flex:"0 0 33%"},children:[u.jsxs("div",{className:"toolbar",children:[u.jsx("h3",{children:"供应商列表"}),u.jsxs("div",{style:{display:"flex",gap:"10px"},children:[u.jsx("button",{className:"btn btn-secondary",style:{background:"linear-gradient(135deg, #2563EB 0%, #F97316 100%)",color:"#FFFFFF",boxShadow:"0 4px 12px rgba(37, 99, 235, 0.3)",border:"none",transition:"all 0.3s ease",cursor:"pointer",fontWeight:"600",letterSpacing:"0.5px"},onClick:P,onMouseEnter:O=>{O.currentTarget.style.transform="translateY(-2px)",O.currentTarget.style.boxShadow="0 8px 20px rgba(37, 99, 235, 0.4)"},onMouseLeave:O=>{O.currentTarget.style.transform="translateY(0)",O.currentTarget.style.boxShadow="0 4px 12px rgba(37, 99, 235, 0.3)"},onFocus:O=>{O.currentTarget.style.outline="2px solid #2563EB",O.currentTarget.style.outlineOffset="2px"},onBlur:O=>{O.currentTarget.style.outline="none"},children:"推荐"}),u.jsx("button",{className:"btn btn-primary",onClick:C,children:"新增"})]})]}),e.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无供应商"})}):u.jsx("div",{style:{marginTop:"10px"},children:e.map(O=>u.jsx("div",{onClick:()=>i(O),style:{padding:"12px",marginBottom:"8px",backgroundColor:l&&l.id===O.id?"var(--accent-light)":"var(--bg-secondary)",borderRadius:"4px",cursor:"pointer",border:"1px solid var(--border-secondary)",color:"var(--text-primary)"},children:u.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:500},children:O.name}),O.description&&u.jsx("div",{style:{fontSize:"12px",color:"var(--text-muted)",marginTop:"4px"},children:O.description})]}),u.jsxs("div",{className:"action-buttons",children:[u.jsx("button",{className:"btn btn-secondary",style:{padding:"4px 8px",fontSize:"12px"},onClick:F=>{F.stopPropagation(),S(O)},children:"编辑"}),u.jsx("button",{className:"btn btn-danger",style:{padding:"4px 8px",fontSize:"12px"},onClick:F=>{F.stopPropagation(),L(O.id)},children:"删除"})]})]})},O.id))})]}),u.jsxs("div",{className:"card",style:{flex:1},children:[u.jsxs("div",{className:"toolbar",children:[u.jsxs("h3",{children:["供应商API服务",l&&` - ${l.name}`]}),l&&u.jsx("button",{className:"btn btn-primary",onClick:W,children:"新增服务"})]}),l?n.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无API服务"})}):u.jsxs("table",{style:{fontSize:"smaller"},children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{style:{whiteSpace:"nowrap"},children:"服务名称"}),u.jsx("th",{children:"源类型"}),u.jsx("th",{children:"API地址"}),u.jsx("th",{children:"模型列表"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:n.map(O=>{var F;return u.jsxs("tr",{children:[u.jsx("td",{children:O.name}),u.jsx("td",{children:O.sourceType?lw[O.sourceType]:"-"}),u.jsx("td",{style:{maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:O.apiUrl,children:O.apiUrl}),u.jsx("td",{children:((F=O.supportedModels)==null?void 0:F.join(", "))||"-"}),u.jsx("td",{children:u.jsxs("div",{className:"action-buttons",children:[u.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>R(O),children:"编辑"}),u.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>z(O.id),children:"删除"})]})})]},O.id)})})]}):u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"请先选择一个供应商"})})]})]}),o&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:O=>O.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:p?"编辑供应商":"新增供应商"})}),u.jsxs("form",{onSubmit:D,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商名称"}),u.jsx("input",{type:"text",name:"name",defaultValue:p?p.name:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"描述"}),u.jsx("textarea",{name:"description",rows:3,defaultValue:p?p.description:""})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>s(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})}),a&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:O=>O.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:v?"编辑供应商API服务":"新增供应商API服务"})}),u.jsxs("form",{onSubmit:H,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"服务名称"}),u.jsx("input",{type:"text",name:"name",defaultValue:v?v.name:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsxs("label",{children:["源类型 ",u.jsx("small",{children:"供应商接口返回的数据格式标准类型"})]}),u.jsxs("select",{name:"sourceType",defaultValue:v&&v.sourceType||"",required:!0,children:[u.jsx("option",{value:"",children:"请选择源类型"}),u.jsx("option",{value:"openai-chat",children:"OpenAI Chat"}),u.jsx("option",{value:"openai-code",children:"OpenAI Code"}),u.jsx("option",{value:"openai-responses",children:"OpenAI Responses"}),u.jsx("option",{value:"claude-chat",children:"Claude Chat"}),u.jsx("option",{value:"claude-code",children:"Claude Code"}),u.jsx("option",{value:"deepseek-chat",children:"DeepSeek Chat"})]})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商API地址"}),u.jsx("input",{type:"url",name:"apiUrl",defaultValue:v?v.apiUrl:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商API密钥"}),u.jsx("input",{type:"password",name:"apiKey",defaultValue:v?v.apiKey:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"超时时间(ms)"}),u.jsx("input",{type:"number",name:"timeout",defaultValue:v?v.timeout:3e4})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"支持的模型列表"}),u.jsx(rw,{value:E,onChange:m,placeholder:"输入模型名,按Enter或逗号添加"},(v==null?void 0:v.id)||"new")]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>c(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})}),d&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",style:{maxWidth:"800px"},onClick:O=>O.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"供应商推荐"})}),u.jsx("div",{className:"modal-body",children:u.jsx("div",{className:"markdown-content",children:u.jsx(bh,{components:{a:({href:O,children:F})=>u.jsx("a",{href:O,style:{color:"#2563EB",borderBottom:"solid 1px #2563EB"},target:"_blank",rel:"noopener noreferrer",children:F})},children:nw})})}),u.jsx("div",{className:"modal-footer",children:u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>f(!1),children:"关闭"})})]})})]})}const Qo=[{value:"default",label:"默认"},{value:"background",label:"后台"},{value:"thinking",label:"思考"},{value:"long-context",label:"长上下文"},{value:"image-understanding",label:"图像理解"},{value:"model-mapping",label:"模型顶替"}],qo=[{value:"claude-code",label:"Claude Code"},{value:"codex",label:"Codex"}];function ow(){var De,Et;const[e,t]=N.useState([]),[n,r]=N.useState([]),[l,i]=N.useState([]),[o,s]=N.useState([]),[a,c]=N.useState([]),[d,f]=N.useState(null),[p,h]=N.useState(!1),[v,w]=N.useState(!1),[E,m]=N.useState(null),[y,x]=N.useState(null),[C,P]=N.useState(""),[S,L]=N.useState(""),[D,W]=N.useState(""),[R,z]=N.useState(""),[H,O]=N.useState(0),[F,I]=N.useState((y==null?void 0:y.contentType)||""),[M,$]=N.useState(null);N.useEffect(()=>{j(),g(),Q()},[]),N.useEffect(()=>{d&&A(d.id)},[d]),N.useEffect(()=>{c(C?o.filter(b=>b.vendorId===C):[]),L(""),W("")},[C,o]);const j=async()=>{const b=await J.getRoutes();t(b),b.length>0&&!d&&f(b[0])},A=async b=>{const ce=await J.getRules(b);r(ce)},g=async()=>{const b=await J.getVendors();i(b)},Q=async()=>{const b=await J.getAPIServices();s(b)},q=async b=>{await J.activateRoute(b),j()},k=async b=>{await J.deactivateRoute(b),j()},Z=async b=>{b.preventDefault();const ce=new FormData(b.currentTarget),_e={name:ce.get("name"),description:ce.get("description"),targetType:ce.get("targetType"),isActive:!1};E?await J.updateRoute(E.id,_e):await J.createRoute(_e),h(!1),j()},ae=async b=>{confirm("确定要删除此路由吗")&&(await J.deleteRoute(b),j(),d&&d.id===b&&(f(null),r([])))},te=async b=>{b.preventDefault();const ce=new FormData(b.currentTarget),_e={routeId:d.id,contentType:ce.get("contentType"),targetServiceId:S,targetModel:D||void 0,replacedModel:R||void 0,sortOrder:H};y?await J.updateRule(y.id,_e):await J.createRule(_e),w(!1),d&&A(d.id)},_=async b=>{confirm("确定要删除此路由吗")&&(await J.deleteRule(b),d&&A(d.id))},ue=()=>{if(y&&y.contentType==="model-mapping")return Qo;const b=new Set(n.map(ce=>ce.contentType));return Qo.filter(ce=>ce.value==="model-mapping"?!0:!b.has(ce.value))},Ae=b=>{x(b),I(b.contentType);const ce=o.find(_e=>_e.id===b.targetServiceId);ce&&(P(ce.vendorId),c(o.filter(_e=>_e.vendorId===ce.vendorId)),setTimeout(()=>{L(ce.id),W(b.targetModel||""),z(b.replacedModel||""),O(b.sortOrder||0)},0)),w(!0)},xe=()=>{x(null),I(""),P(""),L(""),W(""),z(""),O(0),w(!0)};return u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"路由管理"}),u.jsx("p",{children:"管理API路由和路由配置"})]}),u.jsxs("div",{style:{display:"flex",gap:"20px"},children:[u.jsxs("div",{className:"card",style:{flex:"0 0 33%"},children:[u.jsxs("div",{className:"toolbar",children:[u.jsx("h3",{children:"路由"}),u.jsx("button",{className:"btn btn-primary",onClick:()=>h(!0),children:"新建"})]}),e.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无路由"})}):u.jsx("div",{style:{marginTop:"10px"},children:e.map(b=>{var ce,_e;return u.jsx("div",{onClick:()=>f(b),style:{padding:"12px",marginBottom:"8px",backgroundColor:d&&d.id===b.id?"var(--bg-route-item-selected)":"var(--bg-route-item)",borderRadius:"8px",cursor:"pointer",border:"1px solid var(--border-primary)",transition:"all 0.2s ease"},onMouseEnter:Ee=>{(d==null?void 0:d.id)!==b.id&&(Ee.currentTarget.style.backgroundColor="var(--bg-route-item-hover)")},onMouseLeave:Ee=>{(d==null?void 0:d.id)!==b.id&&(Ee.currentTarget.style.backgroundColor="var(--bg-route-item)")},children:u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[u.jsx("div",{style:{fontWeight:500},children:b.name}),b.isActive&&u.jsxs("span",{className:"badge badge-success",children:[(ce=qo.find(Ee=>Ee.value===b.targetType))==null?void 0:ce.label," 已激活"]})]}),u.jsxs("div",{style:{fontSize:"12px",color:"var(--text-route-muted)",marginTop:"2px"},children:["路由对象: ",(_e=qo.find(Ee=>Ee.value===b.targetType))==null?void 0:_e.label]}),u.jsxs("div",{className:"action-buttons",style:{marginTop:"8px"},children:[b.isActive?u.jsx("button",{className:"btn btn-warning",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),k(b.id)},children:"停用"}):u.jsx("button",{className:"btn btn-success",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),q(b.id)},children:"激活"}),u.jsx("button",{className:"btn btn-secondary",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),m(b),h(!0)},children:"编辑"}),u.jsx("button",{className:"btn btn-danger",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),ae(b.id)},disabled:b.isActive,children:"删除"})]})]})},b.id)})})]}),u.jsxs("div",{className:"card",style:{flex:1},children:[u.jsxs("div",{className:"toolbar",children:[u.jsx("h3",{children:"规则列表"}),d&&u.jsx("button",{className:"btn btn-primary",onClick:xe,children:"新建规则"})]}),d?n.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无路由"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"排序"}),u.jsx("th",{children:"请求类型"}),u.jsx("th",{children:"供应商"}),u.jsx("th",{children:"API服务"}),u.jsx("th",{children:"模型"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:n.map(b=>{var jr;const ce=o.find(xn=>xn.id===b.targetServiceId),_e=l.find(xn=>xn.id===(ce==null?void 0:ce.vendorId)),Ee=(jr=Qo.find(xn=>xn.value===b.contentType))==null?void 0:jr.label;return u.jsxs("tr",{children:[u.jsx("td",{children:b.sortOrder||0}),u.jsx("td",{children:u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[u.jsx("span",{children:Ee}),b.contentType==="model-mapping"&&b.replacedModel&&u.jsxs("div",{style:{position:"relative",display:"inline-block"},onMouseEnter:()=>$(b.id),onMouseLeave:()=>$(null),children:[u.jsx("span",{style:{cursor:"help",fontSize:"14px",color:"var(--text-info)",fontWeight:"bold"},children:"ⓘ"}),M===b.id&&u.jsxs("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"calc(100% + 8px)",backgroundColor:"var(--bg-popover, #333)",color:"var(--text-popover, #fff)",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",zIndex:1e3,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:["被顶替的模型是: ",b.replacedModel,u.jsx("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"-4px",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid var(--bg-popover, #333)"}})]})]})]})}),u.jsx("td",{children:_e?_e.name:"Unknown"}),u.jsx("td",{children:ce?ce.name:"Unknown"}),u.jsx("td",{children:b.targetModel||"-"}),u.jsx("td",{children:u.jsxs("div",{className:"action-buttons",children:[u.jsx("button",{className:"btn btn-secondary",onClick:()=>Ae(b),children:"编辑"}),u.jsx("button",{className:"btn btn-danger",onClick:()=>_(b.id),children:"删除"})]})})]},b.id)})})]}):u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"请先选择一个路由"})})]})]}),p&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:b=>b.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:E?"编辑路由":"新建路由"})}),u.jsxs("form",{onSubmit:Z,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"路由名称"}),u.jsx("input",{type:"text",name:"name",defaultValue:E?E.name:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"描述"}),u.jsx("textarea",{name:"description",rows:3,defaultValue:E?E.description:""})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"路由对象"}),u.jsx("select",{name:"targetType",defaultValue:E?E.targetType:"claude-code",required:!0,children:qo.map(b=>u.jsx("option",{value:b.value,children:b.label},b.value))})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>h(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})}),v&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:b=>b.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:y?"编辑规则":"新建规则"})}),u.jsxs("form",{onSubmit:te,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"对象请求类型"}),u.jsxs("select",{name:"contentType",value:F,required:!0,onChange:b=>{I(b.target.value)},children:[u.jsx("option",{value:"",disabled:!0,children:"请选择对象请求类型"}),ue().map(b=>u.jsx("option",{value:b.value,children:b.label},b.value))]})]}),F==="model-mapping"&&u.jsxs("div",{className:"form-group",children:[u.jsxs("label",{children:["被顶替模型 ",u.jsx("small",{children:"(可在日志中找出想要顶替的模型名)"})]}),u.jsx("input",{type:"text",value:R,onChange:b=>z(b.target.value),placeholder:"例如:gpt-4"})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"排序(值越大优先级越高)"}),u.jsx("input",{type:"number",value:H,onChange:b=>O(parseInt(b.target.value)||0),min:"0",max:"1000"})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商"}),u.jsxs("select",{value:C,onChange:b=>P(b.target.value),required:!0,children:[u.jsx("option",{value:"",disabled:!0,children:"请选择供应商"}),l.map(b=>u.jsx("option",{value:b.id,children:b.name},b.id))]})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"API服务"}),u.jsxs("select",{value:S,onChange:b=>{L(b.target.value),W("")},required:!0,disabled:!C,children:[u.jsx("option",{value:"",disabled:!0,children:"请选择API服务"}),a.map(b=>u.jsx("option",{value:b.id,children:b.name},b.id))]})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"模型"}),u.jsxs("select",{value:D,onChange:b=>W(b.target.value),disabled:!S,children:[u.jsx("option",{value:"",disabled:!0,children:"请选择模型"}),(Et=(De=o.find(b=>b.id===S))==null?void 0:De.supportedModels)==null?void 0:Et.map(b=>u.jsx("option",{value:b,children:b},b))]})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>w(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})})]})}var Lh={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Zr,function(){var n=1e3,r=6e4,l=36e5,i="millisecond",o="second",s="minute",a="hour",c="day",d="week",f="month",p="quarter",h="year",v="date",w="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var I=["th","st","nd","rd"],M=F%100;return"["+F+(I[(M-20)%10]||I[M]||I[0])+"]"}},x=function(F,I,M){var $=String(F);return!$||$.length>=I?F:""+Array(I+1-$.length).join(M)+F},C={s:x,z:function(F){var I=-F.utcOffset(),M=Math.abs(I),$=Math.floor(M/60),j=M%60;return(I<=0?"+":"-")+x($,2,"0")+":"+x(j,2,"0")},m:function F(I,M){if(I.date()<M.date())return-F(M,I);var $=12*(M.year()-I.year())+(M.month()-I.month()),j=I.clone().add($,f),A=M-j<0,g=I.clone().add($+(A?-1:1),f);return+(-($+(M-j)/(A?j-g:g-j))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:h,w:d,d:c,D:v,h:a,m:s,s:o,ms:i,Q:p}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},P="en",S={};S[P]=y;var L="$isDayjsObject",D=function(F){return F instanceof H||!(!F||!F[L])},W=function F(I,M,$){var j;if(!I)return P;if(typeof I=="string"){var A=I.toLowerCase();S[A]&&(j=A),M&&(S[A]=M,j=A);var g=I.split("-");if(!j&&g.length>1)return F(g[0])}else{var Q=I.name;S[Q]=I,j=Q}return!$&&j&&(P=j),j||!$&&P},R=function(F,I){if(D(F))return F.clone();var M=typeof I=="object"?I:{};return M.date=F,M.args=arguments,new H(M)},z=C;z.l=W,z.i=D,z.w=function(F,I){return R(F,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var H=function(){function F(M){this.$L=W(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[L]=!0}var I=F.prototype;return I.parse=function(M){this.$d=function($){var j=$.date,A=$.utc;if(j===null)return new Date(NaN);if(z.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var g=j.match(E);if(g){var Q=g[2]-1||0,q=(g[7]||"0").substring(0,3);return A?new Date(Date.UTC(g[1],Q,g[3]||1,g[4]||0,g[5]||0,g[6]||0,q)):new Date(g[1],Q,g[3]||1,g[4]||0,g[5]||0,g[6]||0,q)}}return new Date(j)}(M),this.init()},I.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},I.$utils=function(){return z},I.isValid=function(){return this.$d.toString()!==w},I.isSame=function(M,$){var j=R(M);return this.startOf($)<=j&&j<=this.endOf($)},I.isAfter=function(M,$){return R(M)<this.startOf($)},I.isBefore=function(M,$){return this.endOf($)<R(M)},I.$g=function(M,$,j){return z.u(M)?this[$]:this.set(j,M)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(M,$){var j=this,A=!!z.u($)||$,g=z.p(M),Q=function(Ae,xe){var De=z.w(j.$u?Date.UTC(j.$y,xe,Ae):new Date(j.$y,xe,Ae),j);return A?De:De.endOf(c)},q=function(Ae,xe){return z.w(j.toDate()[Ae].apply(j.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(xe)),j)},k=this.$W,Z=this.$M,ae=this.$D,te="set"+(this.$u?"UTC":"");switch(g){case h:return A?Q(1,0):Q(31,11);case f:return A?Q(1,Z):Q(0,Z+1);case d:var _=this.$locale().weekStart||0,ue=(k<_?k+7:k)-_;return Q(A?ae-ue:ae+(6-ue),Z);case c:case v:return q(te+"Hours",0);case a:return q(te+"Minutes",1);case s:return q(te+"Seconds",2);case o:return q(te+"Milliseconds",3);default:return this.clone()}},I.endOf=function(M){return this.startOf(M,!1)},I.$set=function(M,$){var j,A=z.p(M),g="set"+(this.$u?"UTC":""),Q=(j={},j[c]=g+"Date",j[v]=g+"Date",j[f]=g+"Month",j[h]=g+"FullYear",j[a]=g+"Hours",j[s]=g+"Minutes",j[o]=g+"Seconds",j[i]=g+"Milliseconds",j)[A],q=A===c?this.$D+($-this.$W):$;if(A===f||A===h){var k=this.clone().set(v,1);k.$d[Q](q),k.init(),this.$d=k.set(v,Math.min(this.$D,k.daysInMonth())).$d}else Q&&this.$d[Q](q);return this.init(),this},I.set=function(M,$){return this.clone().$set(M,$)},I.get=function(M){return this[z.p(M)]()},I.add=function(M,$){var j,A=this;M=Number(M);var g=z.p($),Q=function(Z){var ae=R(A);return z.w(ae.date(ae.date()+Math.round(Z*M)),A)};if(g===f)return this.set(f,this.$M+M);if(g===h)return this.set(h,this.$y+M);if(g===c)return Q(1);if(g===d)return Q(7);var q=(j={},j[s]=r,j[a]=l,j[o]=n,j)[g]||1,k=this.$d.getTime()+M*q;return z.w(k,this)},I.subtract=function(M,$){return this.add(-1*M,$)},I.format=function(M){var $=this,j=this.$locale();if(!this.isValid())return j.invalidDate||w;var A=M||"YYYY-MM-DDTHH:mm:ssZ",g=z.z(this),Q=this.$H,q=this.$m,k=this.$M,Z=j.weekdays,ae=j.months,te=j.meridiem,_=function(xe,De,Et,b){return xe&&(xe[De]||xe($,A))||Et[De].slice(0,b)},ue=function(xe){return z.s(Q%12||12,xe,"0")},Ae=te||function(xe,De,Et){var b=xe<12?"AM":"PM";return Et?b.toLowerCase():b};return A.replace(m,function(xe,De){return De||function(Et){switch(Et){case"YY":return String($.$y).slice(-2);case"YYYY":return z.s($.$y,4,"0");case"M":return k+1;case"MM":return z.s(k+1,2,"0");case"MMM":return _(j.monthsShort,k,ae,3);case"MMMM":return _(ae,k);case"D":return $.$D;case"DD":return z.s($.$D,2,"0");case"d":return String($.$W);case"dd":return _(j.weekdaysMin,$.$W,Z,2);case"ddd":return _(j.weekdaysShort,$.$W,Z,3);case"dddd":return Z[$.$W];case"H":return String(Q);case"HH":return z.s(Q,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return Ae(Q,q,!0);case"A":return Ae(Q,q,!1);case"m":return String(q);case"mm":return z.s(q,2,"0");case"s":return String($.$s);case"ss":return z.s($.$s,2,"0");case"SSS":return z.s($.$ms,3,"0");case"Z":return g}return null}(xe)||g.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(M,$,j){var A,g=this,Q=z.p($),q=R(M),k=(q.utcOffset()-this.utcOffset())*r,Z=this-q,ae=function(){return z.m(g,q)};switch(Q){case h:A=ae()/12;break;case f:A=ae();break;case p:A=ae()/3;break;case d:A=(Z-k)/6048e5;break;case c:A=(Z-k)/864e5;break;case a:A=Z/l;break;case s:A=Z/r;break;case o:A=Z/n;break;default:A=Z}return j?A:z.a(A)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return S[this.$L]},I.locale=function(M,$){if(!M)return this.$L;var j=this.clone(),A=W(M,$,!0);return A&&(j.$L=A),j},I.clone=function(){return z.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},F}(),O=H.prototype;return R.prototype=O,[["$ms",i],["$s",o],["$m",s],["$H",a],["$W",c],["$M",f],["$y",h],["$D",v]].forEach(function(F){O[F[1]]=function(I){return this.$g(I,F[0],F[1])}}),R.extend=function(F,I){return F.$i||(F(I,H,R),F.$i=!0),R},R.locale=W,R.isDayjs=D,R.unix=function(F){return R(1e3*F)},R.en=S[P],R.Ls=S,R.p={},R})})(Lh);var sw=Lh.exports;const Vn=Di(sw),Hn=({data:e,title:t,collapsed:n=!1})=>{const[r,l]=N.useState(!n),[i,o]=N.useState(!1),s=d=>{try{let f;return typeof d=="string"?f=JSON.parse(d):f=d,JSON.stringify(f,null,2)}catch{return typeof d=="string"?d:String(d)}},a=()=>{const d=s(e);navigator.clipboard.writeText(d).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)}).catch(f=>{console.error("Failed to copy JSON:",f)})},c=s(e);return u.jsxs("div",{className:"json-viewer",children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[t&&u.jsx("h4",{style:{margin:0,fontSize:"14px",color:"var(--text-primary)"},children:t}),u.jsxs("div",{style:{display:"flex",gap:"8px"},children:[u.jsx("button",{onClick:()=>l(!r),className:"btn btn-sm btn-secondary",style:{fontSize:"12px",padding:"2px 8px"},children:r?"折叠":"展开"}),u.jsx("button",{onClick:a,className:"btn btn-sm btn-primary",style:{fontSize:"12px",padding:"2px 8px"},children:i?"已复制":"复制"})]})]}),r&&u.jsx("pre",{style:{background:"var(--bg-code)",border:"1px solid var(--border-primary)",borderRadius:"8px",padding:"12px",overflowX:"auto",fontSize:"12px",lineHeight:"1.4",color:"var(--text-primary)",maxHeight:"400px",overflowY:"auto",margin:0},children:u.jsx("code",{children:c})})]})},Ko={"claude-code":"Claude Code",codex:"Codex"};function aw(){const[e,t]=N.useState("request"),[n,r]=N.useState([]),[l,i]=N.useState([]),[o,s]=N.useState([]),[a,c]=N.useState(null),[d,f]=N.useState(null),[p,h]=N.useState(null),[v,w]=N.useState(!1),E=100,m=0,[y,x]=N.useState([]),[C,P]=N.useState([]),[S,L]=N.useState(""),[D,W]=N.useState(""),[R,z]=N.useState(""),[H,O]=N.useState("");N.useEffect(()=>{F(),I()},[e]);const F=async()=>{if(e==="request"){const _=await J.getLogs(E,m);r(_)}else if(e==="access"){const _=await J.getAccessLogs(E,m);i(_)}else if(e==="error"){const _=await J.getErrorLogs(E,m);s(_)}},I=async()=>{try{const[_,ue]=await Promise.all([J.getVendors(),J.getAPIServices()]);x(_),P(ue)}catch(_){console.error("Failed to load vendors and services:",_)}},M=async()=>{confirm("确定要清空当前类型的所有日志吗?")&&(e==="request"?(await J.clearLogs(),r([]),c(null)):e==="access"?(await J.clearAccessLogs(),i([]),f(null)):e==="error"&&(await J.clearErrorLogs(),s([]),h(null)))},$=_=>_?_>=200&&_<300?"badge-success":_>=400&&_<500?"badge-warning":"badge-danger":"badge-danger",j=_=>{W(_),z(""),O("")},A=_=>{z(_),O("")},g=()=>D?C.filter(_=>_.vendorId===D):[],Q=()=>{if(!R)return[];const _=C.find(ue=>ue.id===R);return(_==null?void 0:_.supportedModels)||[]},k=(_=>_.filter(ue=>!(S&&ue.targetType!==S||D&&ue.vendorId!==D||R&&ue.targetServiceId!==R||H&&ue.targetModel!==H)))(n),Z=()=>k.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无请求日志"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"时间"}),u.jsx("th",{children:"来源对象类型"}),u.jsx("th",{children:"路径"}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:"响应时间"}),u.jsx("th",{children:"Tokens信息"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:k.map(_=>u.jsxs("tr",{children:[u.jsx("td",{children:Vn(_.timestamp).format("YYYY-MM-DD HH:mm:ss")}),u.jsx("td",{children:Ko[_.targetType]?u.jsx("span",{className:"badge badge-info",children:Ko[_.targetType]}):"-"}),u.jsx("td",{children:_.path}),u.jsx("td",{children:u.jsx("span",{className:`badge ${$(_.statusCode)}`,children:_.statusCode||"Error"})}),u.jsx("td",{children:_.responseTime?`${_.responseTime}ms`:"-"}),u.jsx("td",{children:_.usage?u.jsxs("span",{children:[_.usage.totalTokens?_.usage.totalTokens:_.usage.inputTokens+_.usage.outputTokens," tokens"]}):"-"}),u.jsx("td",{children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>c(_),children:"详情"})})]},_.id))})]}),ae=()=>l.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无访问日志"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"时间"}),u.jsx("th",{children:"方法"}),u.jsx("th",{children:"路径"}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:"响应时间"}),u.jsx("th",{children:"客户端IP"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:l.map(_=>u.jsxs("tr",{children:[u.jsx("td",{children:Vn(_.timestamp).format("YYYY-MM-DD HH:mm:ss")}),u.jsx("td",{children:u.jsx("span",{className:"badge badge-success",children:_.method})}),u.jsx("td",{children:_.path}),u.jsx("td",{children:u.jsx("span",{className:`badge ${$(_.statusCode)}`,children:_.statusCode||"-"})}),u.jsx("td",{children:_.responseTime?`${_.responseTime}ms`:"-"}),u.jsx("td",{style:{fontSize:"12px"},children:_.clientIp||"-"}),u.jsx("td",{children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>f(_),children:"详情"})})]},_.id))})]}),te=()=>o.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无错误日志"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"时间"}),u.jsx("th",{children:"方法"}),u.jsx("th",{children:"路径"}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:"错误信息"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:o.map(_=>u.jsxs("tr",{children:[u.jsx("td",{children:Vn(_.timestamp).format("YYYY-MM-DD HH:mm:ss")}),u.jsx("td",{children:u.jsx("span",{className:"badge badge-danger",children:_.method})}),u.jsx("td",{children:_.path}),u.jsx("td",{children:u.jsx("span",{className:"badge badge-danger",children:_.statusCode||"-"})}),u.jsx("td",{style:{maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#e74c3c"},children:_.errorMessage}),u.jsx("td",{children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>h(_),children:"详情"})})]},_.id))})]});return u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"请求日志"}),u.jsx("p",{children:"查看所有API请求日志"})]}),u.jsxs("div",{className:"card",children:[u.jsx("div",{style:{borderBottom:"1px solid #ecf0f1",marginBottom:"20px"},children:u.jsxs("div",{style:{display:"flex",gap:"0"},children:[u.jsxs("button",{onClick:()=>t("request"),style:{padding:"12px 24px",border:"none",background:e==="request"?"#3498db":"transparent",color:e==="request"?"white":"#7f8c8d",cursor:"pointer",borderBottom:e==="request"?"2px solid #2980b9":"2px solid transparent",fontWeight:e==="request"?"bold":"normal"},children:["请求日志 (",n.length,")"]}),u.jsxs("button",{onClick:()=>t("access"),style:{padding:"12px 24px",border:"none",background:e==="access"?"#3498db":"transparent",color:e==="access"?"white":"#7f8c8d",cursor:"pointer",borderBottom:e==="access"?"2px solid #2980b9":"2px solid transparent",fontWeight:e==="access"?"bold":"normal"},children:["访问日志 (",l.length,")"]}),u.jsxs("button",{onClick:()=>t("error"),style:{padding:"12px 24px",border:"none",background:e==="error"?"#e74c3c":"transparent",color:e==="error"?"white":"#7f8c8d",cursor:"pointer",borderBottom:e==="error"?"2px solid #c0392b":"2px solid transparent",fontWeight:e==="error"?"bold":"normal"},children:["错误日志 (",o.length,")"]})]})}),u.jsxs("div",{className:"toolbar",children:[u.jsxs("h3",{children:[e==="access"&&"访问日志列表",e==="error"&&"错误日志列表",e==="request"&&"请求日志列表"]}),u.jsxs("div",{style:{display:"flex",gap:"10px"},children:[u.jsx("button",{className:"btn btn-primary",onClick:F,children:"刷新"}),u.jsx("button",{className:"btn btn-danger",onClick:M,children:"清空日志"})]})]}),e==="request"&&u.jsxs("div",{style:{padding:"15px",background:"var(--bg-secondary)",borderRadius:"12px",marginBottom:"20px",display:"flex",gap:"15px",alignItems:"center",flexWrap:"wrap",border:"1px solid var(--border-primary)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"来源类型:"}),u.jsxs("select",{value:S,onChange:_=>L(_.target.value),style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",background:"var(--bg-card)",color:"var(--text-primary)"},children:[u.jsx("option",{value:"",children:"全部"}),u.jsx("option",{value:"claude-code",children:"Claude Code"}),u.jsx("option",{value:"codex",children:"Codex"})]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"供应商:"}),u.jsxs("select",{value:D,onChange:_=>j(_.target.value),style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",minWidth:"150px",background:"var(--bg-card)",color:"var(--text-primary)"},children:[u.jsx("option",{value:"",children:"全部供应商"}),y.map(_=>u.jsx("option",{value:_.id,children:_.name},_.id))]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"API服务:"}),u.jsxs("select",{value:R,onChange:_=>A(_.target.value),disabled:!D,style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",minWidth:"150px",background:D?"var(--bg-card)":"var(--bg-secondary)",color:"var(--text-primary)",cursor:D?"pointer":"not-allowed",opacity:D?1:.6},children:[u.jsx("option",{value:"",children:"全部服务"}),g().map(_=>u.jsx("option",{value:_.id,children:_.name},_.id))]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"模型:"}),u.jsxs("select",{value:H,onChange:_=>O(_.target.value),disabled:!R,style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",minWidth:"150px",background:R?"var(--bg-card)":"var(--bg-secondary)",color:"var(--text-primary)",cursor:R?"pointer":"not-allowed",opacity:R?1:.6},children:[u.jsx("option",{value:"",children:"全部模型"}),Q().map(_=>u.jsx("option",{value:_,children:_},_))]})]}),(S||D||R||H)&&u.jsx("button",{onClick:()=>{L(""),W(""),z(""),O("")},style:{padding:"6px 12px",borderRadius:"8px",border:"1px solid var(--accent-danger)",background:"var(--accent-danger)",color:"white",cursor:"pointer",fontSize:"14px"},children:"清除筛选"}),u.jsxs("div",{style:{marginLeft:"auto",color:"var(--text-muted)",fontSize:"14px"},children:["显示 ",k.length," / ",n.length," 条"]})]}),e==="request"&&Z(),e==="access"&&ae(),e==="error"&&te()]}),a&&u.jsx("div",{className:"modal-overlay",onClick:()=>c(null),children:u.jsxs("div",{className:"modal",onClick:_=>_.stopPropagation(),style:{minWidth:"600px",maxHeight:"90vh",overflowY:"auto"},children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"请求详情"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"日志ID"}),u.jsx("input",{type:"text",value:a.id,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"时间"}),u.jsx("input",{type:"text",value:Vn(a.timestamp).format("YYYY-MM-DD HH:mm:ss"),readOnly:!0})]}),a.targetType&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"来源对象类型"}),u.jsx("input",{type:"text",value:Ko[a.targetType]||"-",readOnly:!0})]}),a.requestModel&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求模型"}),u.jsx("input",{type:"text",value:a.requestModel,readOnly:!0})]}),a.vendorName&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商"}),u.jsx("input",{type:"text",value:a.vendorName,readOnly:!0})]}),a.targetServiceName&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商API服务"}),u.jsx("input",{type:"text",value:a.targetServiceName,readOnly:!0})]}),a.targetModel&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商模型"}),u.jsx("input",{type:"text",value:a.targetModel,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求方法"}),u.jsx("input",{type:"text",value:a.method,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求路径"}),u.jsx("input",{type:"text",value:a.path,readOnly:!0})]}),a.body&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求体"}),u.jsx(Hn,{data:a.body})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"状态码"}),u.jsx("input",{type:"text",value:a.statusCode||"Error",readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"响应时间"}),u.jsx("input",{type:"text",value:a.responseTime?`${a.responseTime}ms`:"-",readOnly:!0})]}),a.responseHeaders&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"响应头"}),u.jsx(Hn,{data:a.responseHeaders,collapsed:!0})]}),a.responseBody&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"响应体"}),u.jsx(Hn,{data:a.responseBody})]}),a.streamChunks&&a.streamChunks.length>0&&u.jsxs("div",{className:"form-group",children:[u.jsxs("label",{children:["Stream Chunks (",a.streamChunks.length,"个)",u.jsx("button",{onClick:()=>w(!v),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},className:"btn btn-sm btn-primary",children:v?"折叠":"展开"})]}),v&&u.jsx("div",{style:{maxHeight:"400px",overflowY:"auto",border:"1px solid #ddd",padding:"10px",borderRadius:"4px"},children:a.streamChunks.map((_,ue)=>u.jsxs("div",{style:{marginBottom:"10px"},children:[u.jsxs("div",{style:{fontWeight:"bold",fontSize:"12px",color:"#7f8c8d",marginBottom:"4px"},children:["Chunk #",ue+1]}),u.jsx(Hn,{data:_,collapsed:!0})]},ue))})]}),a.usage&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"Token 使用"}),u.jsx("textarea",{rows:4,value:`输入: ${a.usage.inputTokens}
|
|
93
|
+
`;function rw({value:e=[],onChange:t,placeholder:n}){const[r,l]=N.useState(""),i=s=>{if(s.key==="Enter"||s.key===","){s.preventDefault();const a=r.trim();a&&!e.includes(a)&&(t([...e,a]),l(""))}else s.key==="Backspace"&&!r&&e.length>0&&t(e.slice(0,-1))},o=s=>{t(e.filter((a,c)=>c!==s))};return u.jsx("div",{style:{border:"1px solid var(--border-primary)",borderRadius:"4px",padding:"8px",minHeight:"40px",background:"var(--bg-secondary)"},children:u.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center"},children:[e.map((s,a)=>u.jsxs("span",{style:{backgroundColor:"var(--accent-light)",color:"var(--text-primary)",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",display:"flex",alignItems:"center",gap:"4px"},children:[s,u.jsx("button",{type:"button",onClick:()=>o(a),style:{background:"none",border:"none",color:"var(--text-primary)",cursor:"pointer",fontSize:"16px",lineHeight:"1",padding:"0",marginLeft:"4px"},onMouseOver:c=>c.currentTarget.style.color="var(--accent-danger)",onMouseOut:c=>c.currentTarget.style.color="var(--text-primary)",children:"×"})]},a)),u.jsx("input",{type:"text",value:r,onChange:s=>l(s.target.value),onKeyDown:i,placeholder:n,style:{border:"none",outline:"none",flex:"1",minWidth:"120px",fontSize:"14px"}})]})})}const lw={"openai-chat":"OpenAI Chat","openai-code":"OpenAI Code","openai-responses":"OpenAI Responses","claude-chat":"Claude Chat","claude-code":"Claude Code","deepseek-chat":"DeepSeek Chat"};function iw(){const[e,t]=N.useState([]),[n,r]=N.useState([]),[l,i]=N.useState(null),[o,s]=N.useState(!1),[a,c]=N.useState(!1),[d,f]=N.useState(!1),[p,h]=N.useState(null),[v,w]=N.useState(null),[E,m]=N.useState([]);N.useEffect(()=>{y()},[]),N.useEffect(()=>{l&&x(l.id)},[l]);const y=async()=>{const O=await J.getVendors();t(O),O.length>0&&!l&&i(O[0])},x=async O=>{const F=await J.getAPIServices(O);r(F)},C=()=>{h(null),s(!0)},P=()=>{f(!0)},S=O=>{h(O),s(!0)},L=async O=>{confirm("确定要删除此供应商吗")&&(await J.deleteVendor(O),y(),l&&l.id===O&&(i(null),r([])))},D=async O=>{O.preventDefault();const F=new FormData(O.currentTarget),I={name:F.get("name"),description:F.get("description")};p?await J.updateVendor(p.id,I):await J.createVendor(I),s(!1),y()},W=()=>{w(null),m([]),c(!0)},R=O=>{w(O),m(O.supportedModels||[]),c(!0)},z=async O=>{confirm("确定要删除此API服务吗")&&(await J.deleteAPIService(O),l&&x(l.id))},H=async O=>{O.preventDefault();const F=new FormData(O.currentTarget),I={vendorId:l.id,name:F.get("name"),apiUrl:F.get("apiUrl"),apiKey:F.get("apiKey"),timeout:parseInt(F.get("timeout"))||3e4,sourceType:F.get("sourceType"),supportedModels:E.length>0?E:void 0};v?await J.updateAPIService(v.id,I):await J.createAPIService(I),c(!1),m([]),l&&x(l.id)};return u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"供应商管理"}),u.jsx("p",{children:"管理API供应商和服务配置"})]}),u.jsxs("div",{style:{display:"flex",gap:"20px"},children:[u.jsxs("div",{className:"card",style:{flex:"0 0 33%"},children:[u.jsxs("div",{className:"toolbar",children:[u.jsx("h3",{children:"供应商列表"}),u.jsxs("div",{style:{display:"flex",gap:"10px"},children:[u.jsx("button",{className:"btn btn-secondary",style:{background:"linear-gradient(135deg, #2563EB 0%, #F97316 100%)",color:"#FFFFFF",boxShadow:"0 4px 12px rgba(37, 99, 235, 0.3)",border:"none",transition:"all 0.3s ease",cursor:"pointer",fontWeight:"600",letterSpacing:"0.5px"},onClick:P,onMouseEnter:O=>{O.currentTarget.style.transform="translateY(-2px)",O.currentTarget.style.boxShadow="0 8px 20px rgba(37, 99, 235, 0.4)"},onMouseLeave:O=>{O.currentTarget.style.transform="translateY(0)",O.currentTarget.style.boxShadow="0 4px 12px rgba(37, 99, 235, 0.3)"},onFocus:O=>{O.currentTarget.style.outline="2px solid #2563EB",O.currentTarget.style.outlineOffset="2px"},onBlur:O=>{O.currentTarget.style.outline="none"},children:"推荐"}),u.jsx("button",{className:"btn btn-primary",onClick:C,children:"新增"})]})]}),e.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无供应商"})}):u.jsx("div",{style:{marginTop:"10px"},children:e.map(O=>u.jsx("div",{onClick:()=>i(O),style:{padding:"12px",marginBottom:"8px",backgroundColor:l&&l.id===O.id?"var(--accent-light)":"var(--bg-secondary)",borderRadius:"4px",cursor:"pointer",border:"1px solid var(--border-secondary)",color:"var(--text-primary)"},children:u.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:500},children:O.name}),O.description&&u.jsx("div",{style:{fontSize:"12px",color:"var(--text-muted)",marginTop:"4px"},children:O.description})]}),u.jsxs("div",{className:"action-buttons",children:[u.jsx("button",{className:"btn btn-secondary",style:{padding:"4px 8px",fontSize:"12px"},onClick:F=>{F.stopPropagation(),S(O)},children:"编辑"}),u.jsx("button",{className:"btn btn-danger",style:{padding:"4px 8px",fontSize:"12px"},onClick:F=>{F.stopPropagation(),L(O.id)},children:"删除"})]})]})},O.id))})]}),u.jsxs("div",{className:"card",style:{flex:1},children:[u.jsxs("div",{className:"toolbar",children:[u.jsxs("h3",{children:["供应商API服务",l&&` - ${l.name}`]}),l&&u.jsx("button",{className:"btn btn-primary",onClick:W,children:"新增服务"})]}),l?n.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无API服务"})}):u.jsxs("table",{style:{fontSize:"smaller"},children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{style:{whiteSpace:"nowrap"},children:"服务名称"}),u.jsx("th",{children:"源类型"}),u.jsx("th",{children:"API地址"}),u.jsx("th",{children:"模型列表"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:n.map(O=>{var F;return u.jsxs("tr",{children:[u.jsx("td",{children:O.name}),u.jsx("td",{children:O.sourceType?lw[O.sourceType]:"-"}),u.jsx("td",{style:{maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:O.apiUrl,children:O.apiUrl}),u.jsx("td",{children:((F=O.supportedModels)==null?void 0:F.join(", "))||"-"}),u.jsx("td",{children:u.jsxs("div",{className:"action-buttons",children:[u.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>R(O),children:"编辑"}),u.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>z(O.id),children:"删除"})]})})]},O.id)})})]}):u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"请先选择一个供应商"})})]})]}),o&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:O=>O.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:p?"编辑供应商":"新增供应商"})}),u.jsxs("form",{onSubmit:D,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商名称"}),u.jsx("input",{type:"text",name:"name",defaultValue:p?p.name:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"描述"}),u.jsx("textarea",{name:"description",rows:3,defaultValue:p?p.description:""})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>s(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})}),a&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:O=>O.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:v?"编辑供应商API服务":"新增供应商API服务"})}),u.jsxs("form",{onSubmit:H,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"服务名称"}),u.jsx("input",{type:"text",name:"name",defaultValue:v?v.name:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsxs("label",{children:["源类型 ",u.jsx("small",{children:"供应商接口返回的数据格式标准类型"})]}),u.jsxs("select",{name:"sourceType",defaultValue:v&&v.sourceType||"",required:!0,children:[u.jsx("option",{value:"",children:"请选择源类型"}),u.jsx("option",{value:"openai-chat",children:"OpenAI Chat"}),u.jsx("option",{value:"openai-code",children:"OpenAI Code"}),u.jsx("option",{value:"openai-responses",children:"OpenAI Responses"}),u.jsx("option",{value:"claude-chat",children:"Claude Chat"}),u.jsx("option",{value:"claude-code",children:"Claude Code"}),u.jsx("option",{value:"deepseek-chat",children:"DeepSeek Chat"})]})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商API地址"}),u.jsx("input",{type:"url",name:"apiUrl",defaultValue:v?v.apiUrl:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商API密钥"}),u.jsx("input",{type:"password",name:"apiKey",defaultValue:v?v.apiKey:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"超时时间(ms)"}),u.jsx("input",{type:"number",name:"timeout",defaultValue:v?v.timeout:3e4})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"支持的模型列表"}),u.jsx(rw,{value:E,onChange:m,placeholder:"输入模型名,按Enter或逗号添加"},(v==null?void 0:v.id)||"new")]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>c(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})}),d&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",style:{maxWidth:"800px"},onClick:O=>O.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"供应商推荐"})}),u.jsx("div",{className:"modal-body",children:u.jsx("div",{className:"markdown-content",children:u.jsx(bh,{components:{a:({href:O,children:F})=>u.jsx("a",{href:O,style:{color:"#2563EB",borderBottom:"solid 1px #2563EB"},target:"_blank",rel:"noopener noreferrer",children:F})},children:nw})})}),u.jsx("div",{className:"modal-footer",children:u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>f(!1),children:"关闭"})})]})})]})}const wd=[{value:"default",label:"默认"},{value:"background",label:"后台"},{value:"thinking",label:"思考"},{value:"long-context",label:"长上下文"},{value:"image-understanding",label:"图像理解"},{value:"model-mapping",label:"模型顶替"}],Qo=[{value:"claude-code",label:"Claude Code"},{value:"codex",label:"Codex"}];function ow(){var De,Et;const[e,t]=N.useState([]),[n,r]=N.useState([]),[l,i]=N.useState([]),[o,s]=N.useState([]),[a,c]=N.useState([]),[d,f]=N.useState(null),[p,h]=N.useState(!1),[v,w]=N.useState(!1),[E,m]=N.useState(null),[y,x]=N.useState(null),[C,P]=N.useState(""),[S,L]=N.useState(""),[D,W]=N.useState(""),[R,z]=N.useState(""),[H,O]=N.useState(0),[F,I]=N.useState((y==null?void 0:y.contentType)||""),[M,$]=N.useState(null);N.useEffect(()=>{j(),g(),Q()},[]),N.useEffect(()=>{d&&A(d.id)},[d]),N.useEffect(()=>{c(C?o.filter(b=>b.vendorId===C):[]),L(""),W("")},[C,o]);const j=async()=>{const b=await J.getRoutes();t(b),b.length>0&&!d&&f(b[0])},A=async b=>{const xe=await J.getRules(b);r(xe)},g=async()=>{const b=await J.getVendors();i(b)},Q=async()=>{const b=await J.getAPIServices();s(b)},q=async b=>{await J.activateRoute(b),j()},k=async b=>{await J.deactivateRoute(b),j()},Z=async b=>{b.preventDefault();const xe=new FormData(b.currentTarget),_e={name:xe.get("name"),description:xe.get("description"),targetType:xe.get("targetType"),isActive:!1};E?await J.updateRoute(E.id,_e):await J.createRoute(_e),h(!1),j()},ae=async b=>{confirm("确定要删除此路由吗")&&(await J.deleteRoute(b),j(),d&&d.id===b&&(f(null),r([])))},te=async b=>{b.preventDefault();const xe=new FormData(b.currentTarget),_e={routeId:d.id,contentType:xe.get("contentType"),targetServiceId:S,targetModel:D||void 0,replacedModel:R||void 0,sortOrder:H};y?await J.updateRule(y.id,_e):await J.createRule(_e),w(!1),d&&A(d.id)},_=async b=>{confirm("确定要删除此路由吗")&&(await J.deleteRule(b),d&&A(d.id))},ue=()=>wd,Ae=b=>{x(b),I(b.contentType);const xe=o.find(_e=>_e.id===b.targetServiceId);xe&&(P(xe.vendorId),c(o.filter(_e=>_e.vendorId===xe.vendorId)),setTimeout(()=>{L(xe.id),W(b.targetModel||""),z(b.replacedModel||""),O(b.sortOrder||0)},0)),w(!0)},ye=()=>{x(null),I(""),P(""),L(""),W(""),z(""),O(0),w(!0)};return u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"路由管理"}),u.jsx("p",{children:"管理API路由和路由配置"})]}),u.jsxs("div",{style:{display:"flex",gap:"20px"},children:[u.jsxs("div",{className:"card",style:{flex:"0 0 33%"},children:[u.jsxs("div",{className:"toolbar",children:[u.jsx("h3",{children:"路由"}),u.jsx("button",{className:"btn btn-primary",onClick:()=>h(!0),children:"新建"})]}),e.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无路由"})}):u.jsx("div",{style:{marginTop:"10px"},children:e.map(b=>{var xe,_e;return u.jsx("div",{onClick:()=>f(b),style:{padding:"12px",marginBottom:"8px",backgroundColor:d&&d.id===b.id?"var(--bg-route-item-selected)":"var(--bg-route-item)",borderRadius:"8px",cursor:"pointer",border:"1px solid var(--border-primary)",transition:"all 0.2s ease"},onMouseEnter:Ee=>{(d==null?void 0:d.id)!==b.id&&(Ee.currentTarget.style.backgroundColor="var(--bg-route-item-hover)")},onMouseLeave:Ee=>{(d==null?void 0:d.id)!==b.id&&(Ee.currentTarget.style.backgroundColor="var(--bg-route-item)")},children:u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[u.jsx("div",{style:{fontWeight:500},children:b.name}),b.isActive&&u.jsxs("span",{className:"badge badge-success",children:[(xe=Qo.find(Ee=>Ee.value===b.targetType))==null?void 0:xe.label," 已激活"]})]}),u.jsxs("div",{style:{fontSize:"12px",color:"var(--text-route-muted)",marginTop:"2px"},children:["路由对象: ",(_e=Qo.find(Ee=>Ee.value===b.targetType))==null?void 0:_e.label]}),u.jsxs("div",{className:"action-buttons",style:{marginTop:"8px"},children:[b.isActive?u.jsx("button",{className:"btn btn-warning",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),k(b.id)},children:"停用"}):u.jsx("button",{className:"btn btn-success",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),q(b.id)},children:"激活"}),u.jsx("button",{className:"btn btn-secondary",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),m(b),h(!0)},children:"编辑"}),u.jsx("button",{className:"btn btn-danger",style:{padding:"4px 8px",fontSize:"12px"},onClick:Ee=>{Ee.stopPropagation(),ae(b.id)},disabled:b.isActive,children:"删除"})]})]})},b.id)})})]}),u.jsxs("div",{className:"card",style:{flex:1},children:[u.jsxs("div",{className:"toolbar",children:[u.jsx("h3",{children:"规则列表"}),d&&u.jsx("button",{className:"btn btn-primary",onClick:ye,children:"新建规则"})]}),d?n.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无路由"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"排序"}),u.jsx("th",{children:"请求类型"}),u.jsx("th",{children:"供应商"}),u.jsx("th",{children:"API服务"}),u.jsx("th",{children:"模型"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:n.map(b=>{var jr;const xe=o.find(xn=>xn.id===b.targetServiceId),_e=l.find(xn=>xn.id===(xe==null?void 0:xe.vendorId)),Ee=(jr=wd.find(xn=>xn.value===b.contentType))==null?void 0:jr.label;return u.jsxs("tr",{children:[u.jsx("td",{children:b.sortOrder||0}),u.jsx("td",{children:u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[u.jsx("span",{children:Ee}),b.contentType==="model-mapping"&&b.replacedModel&&u.jsxs("div",{style:{position:"relative",display:"inline-block"},onMouseEnter:()=>$(b.id),onMouseLeave:()=>$(null),children:[u.jsx("span",{style:{cursor:"help",fontSize:"14px",color:"var(--text-info)",fontWeight:"bold"},children:"ⓘ"}),M===b.id&&u.jsxs("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"calc(100% + 8px)",backgroundColor:"var(--bg-popover, #333)",color:"var(--text-popover, #fff)",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",zIndex:1e3,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:["被顶替的模型是: ",b.replacedModel,u.jsx("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"-4px",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid var(--bg-popover, #333)"}})]})]})]})}),u.jsx("td",{children:_e?_e.name:"Unknown"}),u.jsx("td",{children:xe?xe.name:"Unknown"}),u.jsx("td",{children:b.targetModel||"-"}),u.jsx("td",{children:u.jsxs("div",{className:"action-buttons",children:[u.jsx("button",{className:"btn btn-secondary",onClick:()=>Ae(b),children:"编辑"}),u.jsx("button",{className:"btn btn-danger",onClick:()=>_(b.id),children:"删除"})]})})]},b.id)})})]}):u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"请先选择一个路由"})})]})]}),p&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:b=>b.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:E?"编辑路由":"新建路由"})}),u.jsxs("form",{onSubmit:Z,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"路由名称"}),u.jsx("input",{type:"text",name:"name",defaultValue:E?E.name:"",required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"描述"}),u.jsx("textarea",{name:"description",rows:3,defaultValue:E?E.description:""})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"路由对象"}),u.jsx("select",{name:"targetType",defaultValue:E?E.targetType:"claude-code",required:!0,children:Qo.map(b=>u.jsx("option",{value:b.value,children:b.label},b.value))})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>h(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})}),v&&u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",onClick:b=>b.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:y?"编辑规则":"新建规则"})}),u.jsxs("form",{onSubmit:te,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"对象请求类型"}),u.jsxs("select",{name:"contentType",value:F,required:!0,onChange:b=>{I(b.target.value)},children:[u.jsx("option",{value:"",disabled:!0,children:"请选择对象请求类型"}),ue().map(b=>u.jsx("option",{value:b.value,children:b.label},b.value))]})]}),F==="model-mapping"&&u.jsxs("div",{className:"form-group",children:[u.jsxs("label",{children:["被顶替模型 ",u.jsx("small",{children:"(可在日志中找出想要顶替的模型名)"})]}),u.jsx("input",{type:"text",value:R,onChange:b=>z(b.target.value),placeholder:"例如:gpt-4"})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"排序(值越大优先级越高)"}),u.jsx("input",{type:"number",value:H,onChange:b=>O(parseInt(b.target.value)||0),min:"0",max:"1000"})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商"}),u.jsxs("select",{value:C,onChange:b=>P(b.target.value),required:!0,children:[u.jsx("option",{value:"",disabled:!0,children:"请选择供应商"}),l.map(b=>u.jsx("option",{value:b.id,children:b.name},b.id))]})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"API服务"}),u.jsxs("select",{value:S,onChange:b=>{L(b.target.value),W("")},required:!0,disabled:!C,children:[u.jsx("option",{value:"",disabled:!0,children:"请选择API服务"}),a.map(b=>u.jsx("option",{value:b.id,children:b.name},b.id))]})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"模型"}),u.jsxs("select",{value:D,onChange:b=>W(b.target.value),disabled:!S,children:[u.jsx("option",{value:"",disabled:!0,children:"请选择模型"}),(Et=(De=o.find(b=>b.id===S))==null?void 0:De.supportedModels)==null?void 0:Et.map(b=>u.jsx("option",{value:b,children:b},b))]})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>w(!1),children:"取消"}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存"})]})]})]})})]})}var Lh={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Zr,function(){var n=1e3,r=6e4,l=36e5,i="millisecond",o="second",s="minute",a="hour",c="day",d="week",f="month",p="quarter",h="year",v="date",w="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var I=["th","st","nd","rd"],M=F%100;return"["+F+(I[(M-20)%10]||I[M]||I[0])+"]"}},x=function(F,I,M){var $=String(F);return!$||$.length>=I?F:""+Array(I+1-$.length).join(M)+F},C={s:x,z:function(F){var I=-F.utcOffset(),M=Math.abs(I),$=Math.floor(M/60),j=M%60;return(I<=0?"+":"-")+x($,2,"0")+":"+x(j,2,"0")},m:function F(I,M){if(I.date()<M.date())return-F(M,I);var $=12*(M.year()-I.year())+(M.month()-I.month()),j=I.clone().add($,f),A=M-j<0,g=I.clone().add($+(A?-1:1),f);return+(-($+(M-j)/(A?j-g:g-j))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:h,w:d,d:c,D:v,h:a,m:s,s:o,ms:i,Q:p}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},P="en",S={};S[P]=y;var L="$isDayjsObject",D=function(F){return F instanceof H||!(!F||!F[L])},W=function F(I,M,$){var j;if(!I)return P;if(typeof I=="string"){var A=I.toLowerCase();S[A]&&(j=A),M&&(S[A]=M,j=A);var g=I.split("-");if(!j&&g.length>1)return F(g[0])}else{var Q=I.name;S[Q]=I,j=Q}return!$&&j&&(P=j),j||!$&&P},R=function(F,I){if(D(F))return F.clone();var M=typeof I=="object"?I:{};return M.date=F,M.args=arguments,new H(M)},z=C;z.l=W,z.i=D,z.w=function(F,I){return R(F,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var H=function(){function F(M){this.$L=W(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[L]=!0}var I=F.prototype;return I.parse=function(M){this.$d=function($){var j=$.date,A=$.utc;if(j===null)return new Date(NaN);if(z.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var g=j.match(E);if(g){var Q=g[2]-1||0,q=(g[7]||"0").substring(0,3);return A?new Date(Date.UTC(g[1],Q,g[3]||1,g[4]||0,g[5]||0,g[6]||0,q)):new Date(g[1],Q,g[3]||1,g[4]||0,g[5]||0,g[6]||0,q)}}return new Date(j)}(M),this.init()},I.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},I.$utils=function(){return z},I.isValid=function(){return this.$d.toString()!==w},I.isSame=function(M,$){var j=R(M);return this.startOf($)<=j&&j<=this.endOf($)},I.isAfter=function(M,$){return R(M)<this.startOf($)},I.isBefore=function(M,$){return this.endOf($)<R(M)},I.$g=function(M,$,j){return z.u(M)?this[$]:this.set(j,M)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(M,$){var j=this,A=!!z.u($)||$,g=z.p(M),Q=function(Ae,ye){var De=z.w(j.$u?Date.UTC(j.$y,ye,Ae):new Date(j.$y,ye,Ae),j);return A?De:De.endOf(c)},q=function(Ae,ye){return z.w(j.toDate()[Ae].apply(j.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(ye)),j)},k=this.$W,Z=this.$M,ae=this.$D,te="set"+(this.$u?"UTC":"");switch(g){case h:return A?Q(1,0):Q(31,11);case f:return A?Q(1,Z):Q(0,Z+1);case d:var _=this.$locale().weekStart||0,ue=(k<_?k+7:k)-_;return Q(A?ae-ue:ae+(6-ue),Z);case c:case v:return q(te+"Hours",0);case a:return q(te+"Minutes",1);case s:return q(te+"Seconds",2);case o:return q(te+"Milliseconds",3);default:return this.clone()}},I.endOf=function(M){return this.startOf(M,!1)},I.$set=function(M,$){var j,A=z.p(M),g="set"+(this.$u?"UTC":""),Q=(j={},j[c]=g+"Date",j[v]=g+"Date",j[f]=g+"Month",j[h]=g+"FullYear",j[a]=g+"Hours",j[s]=g+"Minutes",j[o]=g+"Seconds",j[i]=g+"Milliseconds",j)[A],q=A===c?this.$D+($-this.$W):$;if(A===f||A===h){var k=this.clone().set(v,1);k.$d[Q](q),k.init(),this.$d=k.set(v,Math.min(this.$D,k.daysInMonth())).$d}else Q&&this.$d[Q](q);return this.init(),this},I.set=function(M,$){return this.clone().$set(M,$)},I.get=function(M){return this[z.p(M)]()},I.add=function(M,$){var j,A=this;M=Number(M);var g=z.p($),Q=function(Z){var ae=R(A);return z.w(ae.date(ae.date()+Math.round(Z*M)),A)};if(g===f)return this.set(f,this.$M+M);if(g===h)return this.set(h,this.$y+M);if(g===c)return Q(1);if(g===d)return Q(7);var q=(j={},j[s]=r,j[a]=l,j[o]=n,j)[g]||1,k=this.$d.getTime()+M*q;return z.w(k,this)},I.subtract=function(M,$){return this.add(-1*M,$)},I.format=function(M){var $=this,j=this.$locale();if(!this.isValid())return j.invalidDate||w;var A=M||"YYYY-MM-DDTHH:mm:ssZ",g=z.z(this),Q=this.$H,q=this.$m,k=this.$M,Z=j.weekdays,ae=j.months,te=j.meridiem,_=function(ye,De,Et,b){return ye&&(ye[De]||ye($,A))||Et[De].slice(0,b)},ue=function(ye){return z.s(Q%12||12,ye,"0")},Ae=te||function(ye,De,Et){var b=ye<12?"AM":"PM";return Et?b.toLowerCase():b};return A.replace(m,function(ye,De){return De||function(Et){switch(Et){case"YY":return String($.$y).slice(-2);case"YYYY":return z.s($.$y,4,"0");case"M":return k+1;case"MM":return z.s(k+1,2,"0");case"MMM":return _(j.monthsShort,k,ae,3);case"MMMM":return _(ae,k);case"D":return $.$D;case"DD":return z.s($.$D,2,"0");case"d":return String($.$W);case"dd":return _(j.weekdaysMin,$.$W,Z,2);case"ddd":return _(j.weekdaysShort,$.$W,Z,3);case"dddd":return Z[$.$W];case"H":return String(Q);case"HH":return z.s(Q,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return Ae(Q,q,!0);case"A":return Ae(Q,q,!1);case"m":return String(q);case"mm":return z.s(q,2,"0");case"s":return String($.$s);case"ss":return z.s($.$s,2,"0");case"SSS":return z.s($.$ms,3,"0");case"Z":return g}return null}(ye)||g.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(M,$,j){var A,g=this,Q=z.p($),q=R(M),k=(q.utcOffset()-this.utcOffset())*r,Z=this-q,ae=function(){return z.m(g,q)};switch(Q){case h:A=ae()/12;break;case f:A=ae();break;case p:A=ae()/3;break;case d:A=(Z-k)/6048e5;break;case c:A=(Z-k)/864e5;break;case a:A=Z/l;break;case s:A=Z/r;break;case o:A=Z/n;break;default:A=Z}return j?A:z.a(A)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return S[this.$L]},I.locale=function(M,$){if(!M)return this.$L;var j=this.clone(),A=W(M,$,!0);return A&&(j.$L=A),j},I.clone=function(){return z.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},F}(),O=H.prototype;return R.prototype=O,[["$ms",i],["$s",o],["$m",s],["$H",a],["$W",c],["$M",f],["$y",h],["$D",v]].forEach(function(F){O[F[1]]=function(I){return this.$g(I,F[0],F[1])}}),R.extend=function(F,I){return F.$i||(F(I,H,R),F.$i=!0),R},R.locale=W,R.isDayjs=D,R.unix=function(F){return R(1e3*F)},R.en=S[P],R.Ls=S,R.p={},R})})(Lh);var sw=Lh.exports;const Vn=Di(sw),Hn=({data:e,title:t,collapsed:n=!1})=>{const[r,l]=N.useState(!n),[i,o]=N.useState(!1),s=d=>{try{let f;return typeof d=="string"?f=JSON.parse(d):f=d,JSON.stringify(f,null,2)}catch{return typeof d=="string"?d:String(d)}},a=()=>{const d=s(e);navigator.clipboard.writeText(d).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)}).catch(f=>{console.error("Failed to copy JSON:",f)})},c=s(e);return u.jsxs("div",{className:"json-viewer",children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[t&&u.jsx("h4",{style:{margin:0,fontSize:"14px",color:"var(--text-primary)"},children:t}),u.jsxs("div",{style:{display:"flex",gap:"8px"},children:[u.jsx("button",{onClick:()=>l(!r),className:"btn btn-sm btn-secondary",style:{fontSize:"12px",padding:"2px 8px"},children:r?"折叠":"展开"}),u.jsx("button",{onClick:a,className:"btn btn-sm btn-primary",style:{fontSize:"12px",padding:"2px 8px"},children:i?"已复制":"复制"})]})]}),r&&u.jsx("pre",{style:{background:"var(--bg-code)",border:"1px solid var(--border-primary)",borderRadius:"8px",padding:"12px",overflowX:"auto",fontSize:"12px",lineHeight:"1.4",color:"var(--text-primary)",maxHeight:"400px",overflowY:"auto",margin:0},children:u.jsx("code",{children:c})})]})},qo={"claude-code":"Claude Code",codex:"Codex"};function aw(){const[e,t]=N.useState("request"),[n,r]=N.useState([]),[l,i]=N.useState([]),[o,s]=N.useState([]),[a,c]=N.useState(null),[d,f]=N.useState(null),[p,h]=N.useState(null),[v,w]=N.useState(!1),E=100,m=0,[y,x]=N.useState([]),[C,P]=N.useState([]),[S,L]=N.useState(""),[D,W]=N.useState(""),[R,z]=N.useState(""),[H,O]=N.useState("");N.useEffect(()=>{F(),I()},[e]);const F=async()=>{if(e==="request"){const _=await J.getLogs(E,m);r(_)}else if(e==="access"){const _=await J.getAccessLogs(E,m);i(_)}else if(e==="error"){const _=await J.getErrorLogs(E,m);s(_)}},I=async()=>{try{const[_,ue]=await Promise.all([J.getVendors(),J.getAPIServices()]);x(_),P(ue)}catch(_){console.error("Failed to load vendors and services:",_)}},M=async()=>{confirm("确定要清空当前类型的所有日志吗?")&&(e==="request"?(await J.clearLogs(),r([]),c(null)):e==="access"?(await J.clearAccessLogs(),i([]),f(null)):e==="error"&&(await J.clearErrorLogs(),s([]),h(null)))},$=_=>_?_>=200&&_<300?"badge-success":_>=400&&_<500?"badge-warning":"badge-danger":"badge-danger",j=_=>{W(_),z(""),O("")},A=_=>{z(_),O("")},g=()=>D?C.filter(_=>_.vendorId===D):[],Q=()=>{if(!R)return[];const _=C.find(ue=>ue.id===R);return(_==null?void 0:_.supportedModels)||[]},k=(_=>_.filter(ue=>!(S&&ue.targetType!==S||D&&ue.vendorId!==D||R&&ue.targetServiceId!==R||H&&ue.targetModel!==H)))(n),Z=()=>k.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无请求日志"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"时间"}),u.jsx("th",{children:"来源对象类型"}),u.jsx("th",{children:"路径"}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:"响应时间"}),u.jsx("th",{children:"Tokens信息"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:k.map(_=>u.jsxs("tr",{children:[u.jsx("td",{children:Vn(_.timestamp).format("YYYY-MM-DD HH:mm:ss")}),u.jsx("td",{children:qo[_.targetType]?u.jsx("span",{className:"badge badge-info",children:qo[_.targetType]}):"-"}),u.jsx("td",{children:_.path}),u.jsx("td",{children:u.jsx("span",{className:`badge ${$(_.statusCode)}`,children:_.statusCode||"Error"})}),u.jsx("td",{children:_.responseTime?`${_.responseTime}ms`:"-"}),u.jsx("td",{children:_.usage?u.jsxs("span",{children:[_.usage.totalTokens?_.usage.totalTokens:_.usage.inputTokens+_.usage.outputTokens," tokens"]}):"-"}),u.jsx("td",{children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>c(_),children:"详情"})})]},_.id))})]}),ae=()=>l.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无访问日志"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"时间"}),u.jsx("th",{children:"方法"}),u.jsx("th",{children:"路径"}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:"响应时间"}),u.jsx("th",{children:"客户端IP"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:l.map(_=>u.jsxs("tr",{children:[u.jsx("td",{children:Vn(_.timestamp).format("YYYY-MM-DD HH:mm:ss")}),u.jsx("td",{children:u.jsx("span",{className:"badge badge-success",children:_.method})}),u.jsx("td",{children:_.path}),u.jsx("td",{children:u.jsx("span",{className:`badge ${$(_.statusCode)}`,children:_.statusCode||"-"})}),u.jsx("td",{children:_.responseTime?`${_.responseTime}ms`:"-"}),u.jsx("td",{style:{fontSize:"12px"},children:_.clientIp||"-"}),u.jsx("td",{children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>f(_),children:"详情"})})]},_.id))})]}),te=()=>o.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("p",{children:"暂无错误日志"})}):u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"时间"}),u.jsx("th",{children:"方法"}),u.jsx("th",{children:"路径"}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:"错误信息"}),u.jsx("th",{children:"操作"})]})}),u.jsx("tbody",{children:o.map(_=>u.jsxs("tr",{children:[u.jsx("td",{children:Vn(_.timestamp).format("YYYY-MM-DD HH:mm:ss")}),u.jsx("td",{children:u.jsx("span",{className:"badge badge-danger",children:_.method})}),u.jsx("td",{children:_.path}),u.jsx("td",{children:u.jsx("span",{className:"badge badge-danger",children:_.statusCode||"-"})}),u.jsx("td",{style:{maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#e74c3c"},children:_.errorMessage}),u.jsx("td",{children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>h(_),children:"详情"})})]},_.id))})]});return u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"请求日志"}),u.jsx("p",{children:"查看所有API请求日志"})]}),u.jsxs("div",{className:"card",children:[u.jsx("div",{style:{borderBottom:"1px solid #ecf0f1",marginBottom:"20px"},children:u.jsxs("div",{style:{display:"flex",gap:"0"},children:[u.jsxs("button",{onClick:()=>t("request"),style:{padding:"12px 24px",border:"none",background:e==="request"?"#3498db":"transparent",color:e==="request"?"white":"#7f8c8d",cursor:"pointer",borderBottom:e==="request"?"2px solid #2980b9":"2px solid transparent",fontWeight:e==="request"?"bold":"normal"},children:["请求日志 (",n.length,")"]}),u.jsxs("button",{onClick:()=>t("access"),style:{padding:"12px 24px",border:"none",background:e==="access"?"#3498db":"transparent",color:e==="access"?"white":"#7f8c8d",cursor:"pointer",borderBottom:e==="access"?"2px solid #2980b9":"2px solid transparent",fontWeight:e==="access"?"bold":"normal"},children:["访问日志 (",l.length,")"]}),u.jsxs("button",{onClick:()=>t("error"),style:{padding:"12px 24px",border:"none",background:e==="error"?"#e74c3c":"transparent",color:e==="error"?"white":"#7f8c8d",cursor:"pointer",borderBottom:e==="error"?"2px solid #c0392b":"2px solid transparent",fontWeight:e==="error"?"bold":"normal"},children:["错误日志 (",o.length,")"]})]})}),u.jsxs("div",{className:"toolbar",children:[u.jsxs("h3",{children:[e==="access"&&"访问日志列表",e==="error"&&"错误日志列表",e==="request"&&"请求日志列表"]}),u.jsxs("div",{style:{display:"flex",gap:"10px"},children:[u.jsx("button",{className:"btn btn-primary",onClick:F,children:"刷新"}),u.jsx("button",{className:"btn btn-danger",onClick:M,children:"清空日志"})]})]}),e==="request"&&u.jsxs("div",{style:{padding:"15px",background:"var(--bg-secondary)",borderRadius:"12px",marginBottom:"20px",display:"flex",gap:"15px",alignItems:"center",flexWrap:"wrap",border:"1px solid var(--border-primary)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"来源类型:"}),u.jsxs("select",{value:S,onChange:_=>L(_.target.value),style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",background:"var(--bg-card)",color:"var(--text-primary)"},children:[u.jsx("option",{value:"",children:"全部"}),u.jsx("option",{value:"claude-code",children:"Claude Code"}),u.jsx("option",{value:"codex",children:"Codex"})]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"供应商:"}),u.jsxs("select",{value:D,onChange:_=>j(_.target.value),style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",minWidth:"150px",background:"var(--bg-card)",color:"var(--text-primary)"},children:[u.jsx("option",{value:"",children:"全部供应商"}),y.map(_=>u.jsx("option",{value:_.id,children:_.name},_.id))]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"API服务:"}),u.jsxs("select",{value:R,onChange:_=>A(_.target.value),disabled:!D,style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",minWidth:"150px",background:D?"var(--bg-card)":"var(--bg-secondary)",color:"var(--text-primary)",cursor:D?"pointer":"not-allowed",opacity:D?1:.6},children:[u.jsx("option",{value:"",children:"全部服务"}),g().map(_=>u.jsx("option",{value:_.id,children:_.name},_.id))]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u.jsx("label",{style:{fontWeight:"bold",minWidth:"80px",color:"var(--text-primary)"},children:"模型:"}),u.jsxs("select",{value:H,onChange:_=>O(_.target.value),disabled:!R,style:{padding:"6px 10px",borderRadius:"8px",border:"1px solid var(--border-primary)",minWidth:"150px",background:R?"var(--bg-card)":"var(--bg-secondary)",color:"var(--text-primary)",cursor:R?"pointer":"not-allowed",opacity:R?1:.6},children:[u.jsx("option",{value:"",children:"全部模型"}),Q().map(_=>u.jsx("option",{value:_,children:_},_))]})]}),(S||D||R||H)&&u.jsx("button",{onClick:()=>{L(""),W(""),z(""),O("")},style:{padding:"6px 12px",borderRadius:"8px",border:"1px solid var(--accent-danger)",background:"var(--accent-danger)",color:"white",cursor:"pointer",fontSize:"14px"},children:"清除筛选"}),u.jsxs("div",{style:{marginLeft:"auto",color:"var(--text-muted)",fontSize:"14px"},children:["显示 ",k.length," / ",n.length," 条"]})]}),e==="request"&&Z(),e==="access"&&ae(),e==="error"&&te()]}),a&&u.jsx("div",{className:"modal-overlay",onClick:()=>c(null),children:u.jsxs("div",{className:"modal",onClick:_=>_.stopPropagation(),style:{minWidth:"600px",maxHeight:"90vh",overflowY:"auto"},children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"请求详情"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"日志ID"}),u.jsx("input",{type:"text",value:a.id,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"时间"}),u.jsx("input",{type:"text",value:Vn(a.timestamp).format("YYYY-MM-DD HH:mm:ss"),readOnly:!0})]}),a.targetType&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"来源对象类型"}),u.jsx("input",{type:"text",value:qo[a.targetType]||"-",readOnly:!0})]}),a.requestModel&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求模型"}),u.jsx("input",{type:"text",value:a.requestModel,readOnly:!0})]}),a.vendorName&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商"}),u.jsx("input",{type:"text",value:a.vendorName,readOnly:!0})]}),a.targetServiceName&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商API服务"}),u.jsx("input",{type:"text",value:a.targetServiceName,readOnly:!0})]}),a.targetModel&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"供应商模型"}),u.jsx("input",{type:"text",value:a.targetModel,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求方法"}),u.jsx("input",{type:"text",value:a.method,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求路径"}),u.jsx("input",{type:"text",value:a.path,readOnly:!0})]}),a.body&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求体"}),u.jsx(Hn,{data:a.body})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"状态码"}),u.jsx("input",{type:"text",value:a.statusCode||"Error",readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"响应时间"}),u.jsx("input",{type:"text",value:a.responseTime?`${a.responseTime}ms`:"-",readOnly:!0})]}),a.responseHeaders&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"响应头"}),u.jsx(Hn,{data:a.responseHeaders,collapsed:!0})]}),a.responseBody&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"响应体"}),u.jsx(Hn,{data:a.responseBody})]}),a.streamChunks&&a.streamChunks.length>0&&u.jsxs("div",{className:"form-group",children:[u.jsxs("label",{children:["Stream Chunks (",a.streamChunks.length,"个)",u.jsx("button",{onClick:()=>w(!v),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},className:"btn btn-sm btn-primary",children:v?"折叠":"展开"})]}),v&&u.jsx("div",{style:{maxHeight:"400px",overflowY:"auto",border:"1px solid #ddd",padding:"10px",borderRadius:"4px"},children:a.streamChunks.map((_,ue)=>u.jsxs("div",{style:{marginBottom:"10px"},children:[u.jsxs("div",{style:{fontWeight:"bold",fontSize:"12px",color:"#7f8c8d",marginBottom:"4px"},children:["Chunk #",ue+1]}),u.jsx(Hn,{data:_,collapsed:!0})]},ue))})]}),a.usage&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"Token 使用"}),u.jsx("textarea",{rows:4,value:`输入: ${a.usage.inputTokens}
|
|
94
94
|
输出: ${a.usage.outputTokens}
|
|
95
95
|
`+(a.usage.totalTokens!==void 0?`总计: ${a.usage.totalTokens}
|
|
96
96
|
`:"")+(a.usage.cacheReadInputTokens!==void 0?`缓存读取: ${a.usage.cacheReadInputTokens}`:""),readOnly:!0})]}),a.error&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"错误信息"}),u.jsx("textarea",{rows:4,value:a.error,readOnly:!0,style:{color:"red"}})]})]}),u.jsx("div",{className:"modal-footer",children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>c(null),children:"关闭"})})]})}),d&&u.jsx("div",{className:"modal-overlay",onClick:()=>f(null),children:u.jsxs("div",{className:"modal",onClick:_=>_.stopPropagation(),style:{minWidth:"600px"},children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"访问日志详情"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"时间"}),u.jsx("input",{type:"text",value:Vn(d.timestamp).format("YYYY-MM-DD HH:mm:ss"),readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求方法"}),u.jsx("input",{type:"text",value:d.method,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求路径"}),u.jsx("input",{type:"text",value:d.path,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"状态码"}),u.jsx("input",{type:"text",value:d.statusCode||"-",readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"响应时间"}),u.jsx("input",{type:"text",value:d.responseTime?`${d.responseTime}ms`:"-",readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"客户端IP"}),u.jsx("input",{type:"text",value:d.clientIp||"-",readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"User Agent"}),u.jsx("textarea",{rows:2,value:d.userAgent||"-",readOnly:!0})]}),d.error&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"错误信息"}),u.jsx("textarea",{rows:6,value:d.error,readOnly:!0,style:{color:"#e74c3c"}})]})]}),u.jsx("div",{className:"modal-footer",children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>f(null),children:"关闭"})})]})}),p&&u.jsx("div",{className:"modal-overlay",onClick:()=>h(null),children:u.jsxs("div",{className:"modal",onClick:_=>_.stopPropagation(),style:{minWidth:"600px"},children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"错误日志详情"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"时间"}),u.jsx("input",{type:"text",value:Vn(p.timestamp).format("YYYY-MM-DD HH:mm:ss"),readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求方法"}),u.jsx("input",{type:"text",value:p.method,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求路径"}),u.jsx("input",{type:"text",value:p.path,readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"状态码"}),u.jsx("input",{type:"text",value:p.statusCode||"-",readOnly:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"错误信息"}),u.jsx("textarea",{rows:4,value:p.errorMessage,readOnly:!0,style:{color:"#e74c3c"}})]}),p.errorStack&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"错误堆栈"}),u.jsx("textarea",{rows:8,value:p.errorStack,readOnly:!0,style:{fontSize:"12px",color:"#7f8c8d"}})]}),p.requestBody&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求体"}),u.jsx(Hn,{data:p.requestBody})]}),p.requestHeaders&&u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"请求头"}),u.jsx(Hn,{data:p.requestHeaders})]})]}),u.jsx("div",{className:"modal-footer",children:u.jsx("button",{className:"btn btn-secondary",onClick:()=>h(null),children:"关闭"})})]})})]})}function uw(){const[e,t]=N.useState(null),[n,r]=N.useState(""),[l,i]=N.useState(""),[o,s]=N.useState("");N.useEffect(()=>{a()},[]);const a=async()=>{const p=await J.getConfig();t(p)},c=async p=>{p.preventDefault();const h=new FormData(p.currentTarget),v={enableLogging:h.get("enableLogging")==="true",logRetentionDays:parseInt(h.get("logRetentionDays")),maxLogSize:parseInt(h.get("maxLogSize")),apiKey:h.get("apiKey")};await J.updateConfig(v)?(alert("配置保存成功"),a()):alert("配置保存失败")},d=async()=>{if(!n){alert("请输入密码");return}try{const p=await J.exportData(n);s(p),alert("导出成功,请复制下方数据")}catch(p){alert("导出失败: "+p.message)}},f=async()=>{if(!n||!l){alert("请输入密码和导入数据");return}try{await J.importData(l,n)?(alert("导入成功"),i(""),r("")):alert("导入失败,请检查密码是否正确")}catch(p){alert("导入失败: "+p.message)}};return e?u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"设置"}),u.jsx("p",{children:"管理应用配置和数据导入导出"})]}),u.jsxs("div",{className:"card",children:[u.jsx("h3",{children:"应用配置"}),u.jsxs("form",{onSubmit:c,children:[u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"API Key"}),u.jsx("input",{type:"password",name:"apiKey",defaultValue:e.apiKey})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"启用日志"}),u.jsxs("select",{name:"enableLogging",defaultValue:e.enableLogging?"true":"false",children:[u.jsx("option",{value:"true",children:"是"}),u.jsx("option",{value:"false",children:"否"})]})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"日志保留天数"}),u.jsx("input",{type:"number",name:"logRetentionDays",defaultValue:e.logRetentionDays,required:!0})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"最大日志数量"}),u.jsx("input",{type:"number",name:"maxLogSize",defaultValue:e.maxLogSize,required:!0})]}),u.jsx("button",{type:"submit",className:"btn btn-primary",children:"保存配置"})]})]}),u.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[u.jsx("h3",{children:"数据导出"}),u.jsx("p",{style:{color:"#7f8c8d",fontSize:"14px"},children:"导出所有配置数据,包括供应商、API服务、路由等。数据将使用密码加密。"}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"加密密码"}),u.jsx("input",{type:"password",value:n,onChange:p=>r(p.target.value),placeholder:"用于加密导出数据"})]}),u.jsx("button",{className:"btn btn-primary",onClick:d,children:"导出数据"}),o&&u.jsxs("div",{className:"form-group",style:{marginTop:"20px"},children:[u.jsx("label",{children:"导出的数据(请复制保存)"}),u.jsx("textarea",{rows:6,value:o,readOnly:!0,style:{fontFamily:"monospace",fontSize:"12px"}}),u.jsx("button",{className:"btn btn-secondary",style:{marginTop:"10px"},onClick:()=>{navigator.clipboard.writeText(o),alert("已复制到剪贴板")},children:"复制到剪贴板"})]})]}),u.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[u.jsx("h3",{children:"数据导入"}),u.jsx("p",{style:{color:"#e74c3c",fontSize:"14px",fontWeight:500},children:"警告:导入数据将覆盖所有现有配置!请确保已备份重要数据。"}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"解密密码"}),u.jsx("input",{type:"password",value:n,onChange:p=>r(p.target.value),placeholder:"用于解密导入数据"})]}),u.jsxs("div",{className:"form-group",children:[u.jsx("label",{children:"导入数据"}),u.jsx("textarea",{rows:6,value:l,onChange:p=>i(p.target.value),placeholder:"粘贴导出的加密数据",style:{fontFamily:"monospace",fontSize:"12px"}})]}),u.jsx("button",{className:"btn btn-danger",onClick:f,children:"导入数据"})]})]}):u.jsx("div",{children:"加载中..."})}function cw(){const[e,t]=N.useState({claude:!1,codex:!1}),[n,r]=N.useState({claude:!1,codex:!1}),[l,i]=N.useState({claude:!1,codex:!1}),[o,s]=N.useState("");N.useEffect(()=>{a()},[]);const a=async()=>{try{const[f,p]=await Promise.all([J.checkClaudeBackup(),J.checkCodexBackup()]);i({claude:f.exists,codex:p.exists})}catch(f){console.error("Failed to check backups:",f)}},c=async f=>{t(p=>({...p,[f]:!0})),s("");try{(f==="claude"?await J.writeClaudeConfig():await J.writeCodexConfig())?(s(`${f==="claude"?"Claude Code":"Codex"}配置文件写入成功!原始文件已备份为 .bak 文件。`),await a()):s("写入失败: 操作未成功")}catch(p){s(`写入失败: ${p.message}`)}finally{t(p=>({...p,[f]:!1}))}},d=async f=>{r(p=>({...p,[f]:!0})),s("");try{(f==="claude"?await J.restoreClaudeConfig():await J.restoreCodexConfig())?(s(`${f==="claude"?"Claude Code":"Codex"}配置文件已从备份恢复!`),await a()):s("恢复失败: 操作未成功")}catch(p){s(`恢复失败: ${p.message}`)}finally{r(p=>({...p,[f]:!1}))}};return u.jsxs("div",{children:[u.jsxs("div",{className:"page-header",children:[u.jsx("h1",{children:"写入配置"}),u.jsx("p",{children:"将Claude Code和Codex的配置文件写入到用户目录"})]}),u.jsxs("div",{className:"card",style:{marginBottom:"20px"},children:[u.jsx("h3",{children:"Claude Code配置"}),u.jsx("p",{style:{color:"#7f8c8d",marginBottom:"15px"},children:"为Claude Code工具写入配置文件。原始文件将被备份为.bak文件。"}),u.jsxs("div",{style:{marginBottom:"15px"},children:[u.jsx("h4",{children:"配置文件:"}),u.jsxs("ul",{style:{color:"#7f8c8d",lineHeight:"1.6"},children:[u.jsxs("li",{children:[u.jsx("code",{children:"~/.claude/settings.json"})," - Claude Code设置"]}),u.jsxs("li",{children:[u.jsx("code",{children:"~/.claude.json"})," - Claude Code初始化设置"]})]})]}),u.jsxs("div",{style:{display:"flex",gap:"10px"},children:[u.jsx("button",{className:"btn btn-primary",onClick:()=>c("claude"),disabled:e.claude,children:e.claude?"写入中...":"写入Claude Code配置"}),u.jsx("button",{className:"btn btn-secondary",onClick:()=>d("claude"),disabled:n.claude||!l.claude,children:n.claude?"恢复中...":"恢复Claude Code配置"})]}),!l.claude&&u.jsx("p",{style:{color:"#95a5a6",fontSize:"12px",marginTop:"10px"},children:"没有找到备份文件,恢复功能不可用"})]}),u.jsxs("div",{className:"card",children:[u.jsx("h3",{children:"Codex配置"}),u.jsx("p",{style:{color:"#7f8c8d",marginBottom:"15px"},children:"为Codex工具写入配置文件。原始文件将被备份为.bak文件。"}),u.jsxs("div",{style:{marginBottom:"15px"},children:[u.jsx("h4",{children:"配置文件:"}),u.jsxs("ul",{style:{color:"#7f8c8d",lineHeight:"1.6"},children:[u.jsxs("li",{children:[u.jsx("code",{children:"~/.codex/config.toml"})," - Codex配置"]}),u.jsxs("li",{children:[u.jsx("code",{children:"~/.codex/auth.json"})," - Codex认证信息"]})]})]}),u.jsxs("div",{style:{display:"flex",gap:"10px"},children:[u.jsx("button",{className:"btn btn-primary",onClick:()=>c("codex"),disabled:e.codex,children:e.codex?"写入中...":"写入Codex配置"}),u.jsx("button",{className:"btn btn-secondary",onClick:()=>d("codex"),disabled:n.codex||!l.codex,children:n.codex?"恢复中...":"恢复Codex配置"})]}),!l.codex&&u.jsx("p",{style:{color:"#95a5a6",fontSize:"12px",marginTop:"10px"},children:"没有找到备份文件,恢复功能不可用"})]}),o&&u.jsx("div",{style:{marginTop:"20px",padding:"10px",borderRadius:"4px",backgroundColor:o.includes("成功")?"#d4edda":"#f8d7da",color:o.includes("成功")?"#155724":"#721c24",border:`1px solid ${o.includes("成功")?"#c3e6cb":"#f5c6cb"}`},children:o})]})}const dw=`# AI Code Switch
|
|
@@ -282,4 +282,4 @@ PORT=4567
|
|
|
282
282
|
## 技术支持
|
|
283
283
|
|
|
284
284
|
如有问题或建议,请访问项目 [GitHub 仓库](https://github.com/tangshuang/aicodeswitch/issues)提交 Issue。
|
|
285
|
-
`,fw=()=>u.jsx("div",{className:"markdown-content",children:u.jsx(bh,{children:dw})});function pw(){const e=Hp(),[t,n]=N.useState("light"),[r,l]=N.useState(!1),[i,o]=N.useState(!1),[s,a]=N.useState(!1),[c,d]=N.useState(!1),[f,p]=N.useState(""),[h,v]=N.useState(""),[w,E]=N.useState(!0);N.useEffect(()=>{const C=localStorage.getItem("theme")||"light";n(C),document.documentElement.setAttribute("data-theme",C)},[]),N.useEffect(()=>{(async()=>{try{const P=await J.getAuthStatus();if(a(P.enabled),!P.enabled){d(!0),E(!1);return}if(!localStorage.getItem("auth_token")){E(!1);return}try{await J.getVendors(),d(!0)}catch{}}catch(P){console.error("Failed to check auth status:",P)}finally{E(!1)}})()},[]),N.useEffect(()=>{(async()=>{try{(await J.getVendors()).length===0&&!i&&(l(!0),o(!0))}catch(P){console.error("Failed to check vendors:",P)}})()},[i]);const m=()=>{const C=t==="light"?"dark":"light";n(C),document.documentElement.setAttribute("data-theme",C),localStorage.setItem("theme",C)},y=()=>{l(!1),e("/vendors")},x=async C=>{if(C.preventDefault(),v(""),!f.trim()){v("请输入鉴权码");return}try{const P=await J.login(f);localStorage.setItem("auth_token",P.token),d(!0),p("")}catch(P){P instanceof Error?v(P.message||"登录失败,请检查鉴权码"):v("登录失败,请检查鉴权码")}};return w?u.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontSize:"18px",color:"var(--text-secondary)"},children:"加载中..."}):s&&!c?u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",style:{maxWidth:"400px"},children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"🔐 系统鉴权"})}),u.jsxs("form",{onSubmit:x,children:[u.jsxs("div",{style:{padding:"20px 0"},children:[u.jsx("p",{style:{marginBottom:"16px",lineHeight:"1.6",color:"var(--text-secondary)"},children:"系统已启用鉴权保护,请输入鉴权码以继续访问。"}),u.jsxs("div",{style:{marginBottom:"16px"},children:[u.jsx("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:"鉴权码"}),u.jsx("input",{type:"password",value:f,onChange:C=>p(C.target.value),placeholder:"请输入鉴权码",style:{width:"100%",padding:"10px 12px",border:"1px solid var(--border-color)",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},autoFocus:!0})]}),h&&u.jsx("div",{style:{padding:"10px 12px",backgroundColor:"#fee",border:"1px solid #fcc",borderRadius:"6px",color:"#c33",fontSize:"14px",marginBottom:"16px"},children:h})]}),u.jsx("div",{className:"modal-footer",children:u.jsx("button",{type:"submit",className:"btn btn-primary",style:{width:"100%"},children:"登录"})})]})]})}):u.jsxs("div",{className:"app",children:[u.jsxs("nav",{className:"sidebar",children:[u.jsx("div",{className:"logo",children:u.jsx("h2",{children:"AI Code Switch"})}),u.jsxs("ul",{className:"nav-menu",children:[u.jsx("li",{children:u.jsx(Un,{to:"/",children:"路由管理"})}),u.jsx("li",{children:u.jsx(Un,{to:"/vendors",children:"供应商管理"})}),u.jsx("li",{children:u.jsx(Un,{to:"/write-config",children:"覆盖配置文件"})}),u.jsx("li",{children:u.jsx(Un,{to:"/logs",children:"请求日志"})}),u.jsx("li",{children:u.jsx(Un,{to:"/settings",children:"设置"})}),u.jsx("li",{children:u.jsx(Un,{to:"/usage",children:"使用说明"})})]}),u.jsxs("div",{className:"theme-toggle",children:[u.jsx("button",{onClick:m,className:t==="light"?"active":"",title:"浅色模式",children:"☀️"}),u.jsx("button",{onClick:m,className:t==="dark"?"active":"",title:"深色模式",children:"🌙"})]})]}),u.jsx("main",{className:"main-content",children:u.jsxs(tx,{children:[u.jsx(Sn,{path:"/",element:u.jsx(ow,{})}),u.jsx(Sn,{path:"/vendors",element:u.jsx(iw,{})}),u.jsx(Sn,{path:"/logs",element:u.jsx(aw,{})}),u.jsx(Sn,{path:"/write-config",element:u.jsx(cw,{})}),u.jsx(Sn,{path:"/settings",element:u.jsx(uw,{})}),u.jsx(Sn,{path:"/usage",element:u.jsx(fw,{})})]})}),r&&u.jsx("div",{className:"modal-overlay",onClick:()=>l(!1),children:u.jsxs("div",{className:"modal",onClick:C=>C.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"⚠️ 需要配置供应商"})}),u.jsxs("div",{style:{padding:"20px 0"},children:[u.jsx("p",{style:{marginBottom:"16px",lineHeight:"1.6"},children:"检测到系统中没有配置任何API供应商。在没有供应商的情况下,路由将无法正常工作。"}),u.jsx("p",{style:{marginBottom:"0",lineHeight:"1.6",fontWeight:"500"},children:"请先添加至少一个供应商,然后再配置路由规则。"})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>l(!1),children:"稍后"}),u.jsx("button",{type:"button",className:"btn btn-primary",onClick:y,children:"前往供应商管理"})]})]})})]})}function hw(){return u.jsx(ux,{children:u.jsx(pw,{})})}
|
|
285
|
+
`,fw=()=>u.jsx("div",{className:"markdown-content",children:u.jsx(bh,{children:dw})});function pw(){const e=Hp(),[t,n]=N.useState("light"),[r,l]=N.useState(!1),[i,o]=N.useState(!1),[s,a]=N.useState(!1),[c,d]=N.useState(!1),[f,p]=N.useState(""),[h,v]=N.useState(""),[w,E]=N.useState(!0);N.useEffect(()=>{const C=localStorage.getItem("theme")||"light";n(C),document.documentElement.setAttribute("data-theme",C)},[]),N.useEffect(()=>{(async()=>{try{const P=await J.getAuthStatus();if(a(P.enabled),!P.enabled){d(!0),E(!1);return}if(!localStorage.getItem("auth_token")){E(!1);return}try{await J.getVendors(),d(!0)}catch{}}catch(P){console.error("Failed to check auth status:",P)}finally{E(!1)}})()},[]),N.useEffect(()=>{(async()=>{try{(await J.getVendors()).length===0&&!i&&(l(!0),o(!0))}catch(P){console.error("Failed to check vendors:",P)}})()},[i]);const m=()=>{const C=t==="light"?"dark":"light";n(C),document.documentElement.setAttribute("data-theme",C),localStorage.setItem("theme",C)},y=()=>{l(!1),e("/vendors")},x=async C=>{if(C.preventDefault(),v(""),!f.trim()){v("请输入鉴权码");return}try{const P=await J.login(f);localStorage.setItem("auth_token",P.token),d(!0),p("")}catch(P){P instanceof Error?v(P.message||"登录失败,请检查鉴权码"):v("登录失败,请检查鉴权码")}};return w?u.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontSize:"18px",color:"var(--text-secondary)"},children:"加载中..."}):s&&!c?u.jsx("div",{className:"modal-overlay",children:u.jsxs("div",{className:"modal",style:{maxWidth:"400px"},children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"🔐 系统鉴权"})}),u.jsxs("form",{onSubmit:x,children:[u.jsxs("div",{style:{padding:"20px 0"},children:[u.jsx("p",{style:{marginBottom:"16px",lineHeight:"1.6",color:"var(--text-secondary)"},children:"系统已启用鉴权保护,请输入鉴权码以继续访问。"}),u.jsxs("div",{style:{marginBottom:"16px"},children:[u.jsx("label",{style:{display:"block",marginBottom:"8px",fontWeight:"500"},children:"鉴权码"}),u.jsx("input",{type:"password",value:f,onChange:C=>p(C.target.value),placeholder:"请输入鉴权码",style:{width:"100%",padding:"10px 12px",border:"1px solid var(--border-color)",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},autoFocus:!0})]}),h&&u.jsx("div",{style:{padding:"10px 12px",backgroundColor:"#fee",border:"1px solid #fcc",borderRadius:"6px",color:"#c33",fontSize:"14px",marginBottom:"16px"},children:h})]}),u.jsx("div",{className:"modal-footer",children:u.jsx("button",{type:"submit",className:"btn btn-primary",style:{width:"100%"},children:"登录"})})]})]})}):u.jsxs("div",{className:"app",children:[u.jsxs("nav",{className:"sidebar",children:[u.jsx("div",{className:"logo",children:u.jsx("h2",{children:"AI Code Switch"})}),u.jsxs("ul",{className:"nav-menu",children:[u.jsx("li",{children:u.jsx(Un,{to:"/",children:"路由管理"})}),u.jsx("li",{children:u.jsx(Un,{to:"/vendors",children:"供应商管理"})}),u.jsx("li",{children:u.jsx(Un,{to:"/write-config",children:"覆盖配置文件"})}),u.jsx("li",{children:u.jsx(Un,{to:"/logs",children:"请求日志"})}),u.jsx("li",{children:u.jsx(Un,{to:"/settings",children:"设置"})}),u.jsx("li",{children:u.jsx(Un,{to:"/usage",children:"使用说明"})})]}),u.jsxs("div",{className:"theme-toggle",children:[u.jsx("button",{onClick:m,className:t==="light"?"active":"",title:"浅色模式",children:"☀️"}),u.jsx("button",{onClick:m,className:t==="dark"?"active":"",title:"深色模式",children:"🌙"})]})]}),u.jsx("main",{className:"main-content",children:u.jsxs(tx,{children:[u.jsx(Sn,{path:"/",element:u.jsx(ow,{})}),u.jsx(Sn,{path:"/vendors",element:u.jsx(iw,{})}),u.jsx(Sn,{path:"/logs",element:u.jsx(aw,{})}),u.jsx(Sn,{path:"/write-config",element:u.jsx(cw,{})}),u.jsx(Sn,{path:"/settings",element:u.jsx(uw,{})}),u.jsx(Sn,{path:"/usage",element:u.jsx(fw,{})})]})}),r&&u.jsx("div",{className:"modal-overlay",onClick:()=>l(!1),children:u.jsxs("div",{className:"modal",onClick:C=>C.stopPropagation(),children:[u.jsx("div",{className:"modal-header",children:u.jsx("h2",{children:"⚠️ 需要配置供应商"})}),u.jsxs("div",{style:{padding:"20px 0"},children:[u.jsx("p",{style:{marginBottom:"16px",lineHeight:"1.6"},children:"检测到系统中没有配置任何API供应商。在没有供应商的情况下,路由将无法正常工作。"}),u.jsx("p",{style:{marginBottom:"0",lineHeight:"1.6",fontWeight:"500"},children:"请先添加至少一个供应商,然后再配置路由规则。"})]}),u.jsxs("div",{className:"modal-footer",children:[u.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>l(!1),children:"稍后"}),u.jsx("button",{type:"button",className:"btn btn-primary",onClick:y,children:"前往供应商管理"})]})]})})]})}function hw(){return u.jsx(ux,{children:u.jsx(pw,{})})}Ko.createRoot(document.getElementById("root")).render(u.jsx(Ld.StrictMode,{children:u.jsx(hw,{})}));
|